From be59ae480b571ce7831d76335d27030ad34c36c8 Mon Sep 17 00:00:00 2001 From: MiaoWoo Date: Thu, 7 Nov 2019 15:13:28 +0800 Subject: [PATCH] feat: add bukkit sponge jdk type --- packages/types/dist/typings/bukkit/index.d.ts | 958 ++++++ .../bukkit/org.bukkit.Achievement.d.ts | 90 + .../dist/typings/bukkit/org.bukkit.Art.d.ts | 93 + .../dist/typings/bukkit/org.bukkit.Axis.d.ts | 18 + .../typings/bukkit/org.bukkit.BanEntry.d.ts | 69 + .../bukkit/org.bukkit.BanList.Type.d.ts | 18 + .../typings/bukkit/org.bukkit.BanList.d.ts | 36 + .../org.bukkit.BlockChangeDelegate.d.ts | 28 + .../typings/bukkit/org.bukkit.Bukkit.d.ts | 772 +++++ .../typings/bukkit/org.bukkit.ChatColor.d.ts | 103 + .../dist/typings/bukkit/org.bukkit.Chunk.d.ts | 127 + .../bukkit/org.bukkit.ChunkSnapshot.d.ts | 74 + .../typings/bukkit/org.bukkit.CoalType.d.ts | 26 + .../dist/typings/bukkit/org.bukkit.Color.d.ts | 120 + .../typings/bukkit/org.bukkit.CropState.d.ts | 38 + .../typings/bukkit/org.bukkit.Difficulty.d.ts | 30 + .../typings/bukkit/org.bukkit.DyeColor.d.ts | 89 + .../bukkit/org.bukkit.Effect.Type.d.ts | 18 + .../typings/bukkit/org.bukkit.Effect.d.ts | 116 + .../bukkit/org.bukkit.EntityEffect.d.ts | 81 + .../org.bukkit.FireworkEffect.Builder.d.ts | 73 + .../org.bukkit.FireworkEffect.Type.d.ts | 24 + .../bukkit/org.bukkit.FireworkEffect.d.ts | 48 + .../bukkit/org.bukkit.FluidCollisionMode.d.ts | 18 + .../typings/bukkit/org.bukkit.GameMode.d.ts | 30 + .../typings/bukkit/org.bukkit.GameRule.d.ts | 80 + .../bukkit/org.bukkit.GrassSpecies.d.ts | 28 + .../typings/bukkit/org.bukkit.Instrument.d.ts | 51 + .../dist/typings/bukkit/org.bukkit.Keyed.d.ts | 13 + .../typings/bukkit/org.bukkit.Location.d.ts | 270 ++ .../typings/bukkit/org.bukkit.Material.d.ts | 3045 +++++++++++++++++ .../typings/bukkit/org.bukkit.Nameable.d.ts | 28 + .../bukkit/org.bukkit.NamespacedKey.d.ts | 48 + .../bukkit/org.bukkit.NetherWartsState.d.ts | 20 + .../typings/bukkit/org.bukkit.Note.Tone.d.ts | 57 + .../dist/typings/bukkit/org.bukkit.Note.d.ts | 63 + .../bukkit/org.bukkit.OfflinePlayer.d.ts | 80 + .../org.bukkit.Particle.DustOptions.d.ts | 22 + .../typings/bukkit/org.bukkit.Particle.d.ts | 145 + .../typings/bukkit/org.bukkit.PortalType.d.ts | 18 + .../org.bukkit.Registry.SimpleRegistry.d.ts | 18 + .../typings/bukkit/org.bukkit.Registry.d.ts | 37 + .../typings/bukkit/org.bukkit.Rotation.d.ts | 38 + .../bukkit/org.bukkit.SandstoneType.d.ts | 28 + .../typings/bukkit/org.bukkit.Server.d.ts | 767 +++++ .../typings/bukkit/org.bukkit.SkullType.d.ts | 24 + .../dist/typings/bukkit/org.bukkit.Sound.d.ts | 1602 +++++++++ .../bukkit/org.bukkit.SoundCategory.d.ts | 32 + .../bukkit/org.bukkit.Statistic.Type.d.ts | 22 + .../typings/bukkit/org.bukkit.Statistic.d.ts | 192 ++ .../bukkit/org.bukkit.StructureType.d.ts | 61 + .../dist/typings/bukkit/org.bukkit.Tag.d.ts | 130 + .../bukkit/org.bukkit.TreeSpecies.d.ts | 34 + .../typings/bukkit/org.bukkit.TreeType.d.ts | 46 + .../org.bukkit.UndefinedNullability.d.ts | 14 + .../bukkit/org.bukkit.UnsafeValues.d.ts | 53 + .../typings/bukkit/org.bukkit.Utility.d.ts | 8 + .../org.bukkit.Warning.WarningState.d.ts | 32 + .../typings/bukkit/org.bukkit.Warning.d.ts | 19 + .../bukkit/org.bukkit.WeatherType.d.ts | 16 + .../bukkit/org.bukkit.World.Environment.d.ts | 30 + .../dist/typings/bukkit/org.bukkit.World.d.ts | 1142 +++++++ .../bukkit/org.bukkit.WorldBorder.d.ts | 88 + .../bukkit/org.bukkit.WorldCreator.d.ts | 145 + .../typings/bukkit/org.bukkit.WorldType.d.ts | 36 + .../org.bukkit.advancement.Advancement.d.ts | 15 + ...ukkit.advancement.AdvancementProgress.d.ts | 45 + .../org.bukkit.attribute.Attributable.d.ts | 16 + .../org.bukkit.attribute.Attribute.d.ts | 38 + ...rg.bukkit.attribute.AttributeInstance.d.ts | 51 + ...attribute.AttributeModifier.Operation.d.ts | 22 + ...rg.bukkit.attribute.AttributeModifier.d.ts | 52 + .../bukkit/org.bukkit.block.Banner.d.ts | 59 + .../bukkit/org.bukkit.block.Barrel.d.ts | 10 + .../bukkit/org.bukkit.block.Beacon.d.ts | 46 + .../typings/bukkit/org.bukkit.block.Bed.d.ts | 10 + .../typings/bukkit/org.bukkit.block.Bell.d.ts | 10 + .../bukkit/org.bukkit.block.Biome.d.ts | 166 + .../bukkit/org.bukkit.block.BlastFurnace.d.ts | 10 + .../bukkit/org.bukkit.block.Block.d.ts | 301 ++ .../bukkit/org.bukkit.block.BlockFace.d.ts | 74 + .../bukkit/org.bukkit.block.BlockState.d.ts | 142 + .../bukkit/org.bukkit.block.BrewingStand.d.ts | 34 + .../bukkit/org.bukkit.block.Campfire.d.ts | 40 + .../bukkit/org.bukkit.block.Chest.d.ts | 24 + .../bukkit/org.bukkit.block.CommandBlock.d.ts | 38 + .../bukkit/org.bukkit.block.Comparator.d.ts | 10 + .../bukkit/org.bukkit.block.Conduit.d.ts | 10 + .../bukkit/org.bukkit.block.Container.d.ts | 31 + .../org.bukkit.block.CreatureSpawner.d.ts | 152 + .../org.bukkit.block.DaylightDetector.d.ts | 10 + .../bukkit/org.bukkit.block.Dispenser.d.ts | 26 + .../bukkit/org.bukkit.block.DoubleChest.d.ts | 28 + .../bukkit/org.bukkit.block.Dropper.d.ts | 30 + .../org.bukkit.block.EnchantingTable.d.ts | 10 + .../bukkit/org.bukkit.block.EndGateway.d.ts | 54 + .../bukkit/org.bukkit.block.EnderChest.d.ts | 10 + .../bukkit/org.bukkit.block.FlowerPot.d.ts | 22 + .../bukkit/org.bukkit.block.Furnace.d.ts | 50 + .../bukkit/org.bukkit.block.Hopper.d.ts | 10 + .../bukkit/org.bukkit.block.Jigsaw.d.ts | 10 + .../bukkit/org.bukkit.block.Jukebox.d.ts | 43 + .../bukkit/org.bukkit.block.Lectern.d.ts | 26 + .../bukkit/org.bukkit.block.Lockable.d.ts | 26 + .../bukkit/org.bukkit.block.NoteBlock.d.ts | 54 + .../org.bukkit.block.PistonMoveReaction.d.ts | 28 + .../bukkit/org.bukkit.block.ShulkerBox.d.ts | 15 + .../typings/bukkit/org.bukkit.block.Sign.d.ts | 48 + .../bukkit/org.bukkit.block.Skull.d.ts | 62 + .../bukkit/org.bukkit.block.Smoker.d.ts | 10 + .../bukkit/org.bukkit.block.Structure.d.ts | 172 + .../bukkit/org.bukkit.block.TileState.d.ts | 24 + .../org.bukkit.block.banner.Pattern.d.ts | 39 + .../org.bukkit.block.banner.PatternType.d.ts | 108 + .../bukkit/org.bukkit.block.data.Ageable.d.ts | 27 + ...g.bukkit.block.data.AnaloguePowerable.d.ts | 27 + .../org.bukkit.block.data.Attachable.d.ts | 22 + .../org.bukkit.block.data.Bisected.Half.d.ts | 22 + .../org.bukkit.block.data.Bisected.d.ts | 22 + .../org.bukkit.block.data.BlockData.d.ts | 77 + .../org.bukkit.block.data.Directional.d.ts | 27 + .../org.bukkit.block.data.Levelled.d.ts | 27 + .../org.bukkit.block.data.Lightable.d.ts | 22 + .../org.bukkit.block.data.MultipleFacing.d.ts | 32 + .../org.bukkit.block.data.Openable.d.ts | 22 + .../org.bukkit.block.data.Orientable.d.ts | 27 + .../org.bukkit.block.data.Powerable.d.ts | 22 + .../org.bukkit.block.data.Rail.Shape.d.ts | 38 + .../bukkit/org.bukkit.block.data.Rail.d.ts | 27 + .../org.bukkit.block.data.Rotatable.d.ts | 22 + .../org.bukkit.block.data.Snowable.d.ts | 22 + .../org.bukkit.block.data.Waterlogged.d.ts | 22 + ....bukkit.block.data.type.Bamboo.Leaves.d.ts | 26 + .../org.bukkit.block.data.type.Bamboo.d.ts | 24 + .../org.bukkit.block.data.type.Bed.Part.d.ts | 24 + .../org.bukkit.block.data.type.Bed.d.ts | 29 + ...ukkit.block.data.type.Bell.Attachment.d.ts | 28 + .../org.bukkit.block.data.type.Bell.d.ts | 24 + ...g.bukkit.block.data.type.BrewingStand.d.ts | 34 + ...g.bukkit.block.data.type.BubbleColumn.d.ts | 24 + .../org.bukkit.block.data.type.Cake.d.ts | 29 + .../org.bukkit.block.data.type.Campfire.d.ts | 24 + ...org.bukkit.block.data.type.Chest.Type.d.ts | 26 + .../org.bukkit.block.data.type.Chest.d.ts | 24 + .../org.bukkit.block.data.type.Cocoa.d.ts | 14 + ...g.bukkit.block.data.type.CommandBlock.d.ts | 24 + ...ukkit.block.data.type.Comparator.Mode.d.ts | 24 + ...org.bukkit.block.data.type.Comparator.d.ts | 24 + ...g.bukkit.block.data.type.CoralWallFan.d.ts | 14 + ...kkit.block.data.type.DaylightDetector.d.ts | 24 + .../org.bukkit.block.data.type.Dispenser.d.ts | 24 + ...org.bukkit.block.data.type.Door.Hinge.d.ts | 24 + .../org.bukkit.block.data.type.Door.d.ts | 24 + ...bukkit.block.data.type.EndPortalFrame.d.ts | 24 + ...org.bukkit.block.data.type.EnderChest.d.ts | 14 + .../org.bukkit.block.data.type.Farmland.d.ts | 29 + .../org.bukkit.block.data.type.Fence.d.ts | 14 + .../org.bukkit.block.data.type.Fire.d.ts | 14 + .../org.bukkit.block.data.type.Furnace.d.ts | 14 + .../org.bukkit.block.data.type.Gate.d.ts | 24 + .../org.bukkit.block.data.type.GlassPane.d.ts | 14 + .../org.bukkit.block.data.type.Hopper.d.ts | 24 + .../org.bukkit.block.data.type.Jukebox.d.ts | 19 + .../org.bukkit.block.data.type.Ladder.d.ts | 14 + .../org.bukkit.block.data.type.Lantern.d.ts | 24 + .../org.bukkit.block.data.type.Leaves.d.ts | 34 + .../org.bukkit.block.data.type.Lectern.d.ts | 19 + .../org.bukkit.block.data.type.NoteBlock.d.ts | 34 + .../org.bukkit.block.data.type.Observer.d.ts | 14 + .../org.bukkit.block.data.type.Piston.d.ts | 24 + ...org.bukkit.block.data.type.PistonHead.d.ts | 24 + ...g.bukkit.block.data.type.RedstoneRail.d.ts | 14 + ...kit.block.data.type.RedstoneWallTorch.d.ts | 14 + ...ock.data.type.RedstoneWire.Connection.d.ts | 26 + ...g.bukkit.block.data.type.RedstoneWire.d.ts | 29 + .../org.bukkit.block.data.type.Repeater.d.ts | 44 + .../org.bukkit.block.data.type.Sapling.d.ts | 29 + ...rg.bukkit.block.data.type.Scaffolding.d.ts | 39 + .../org.bukkit.block.data.type.SeaPickle.d.ts | 34 + .../org.bukkit.block.data.type.Sign.d.ts | 14 + .../org.bukkit.block.data.type.Slab.Type.d.ts | 26 + .../org.bukkit.block.data.type.Slab.d.ts | 24 + .../org.bukkit.block.data.type.Snow.d.ts | 34 + ...g.bukkit.block.data.type.Stairs.Shape.d.ts | 30 + .../org.bukkit.block.data.type.Stairs.d.ts | 24 + ...t.block.data.type.StructureBlock.Mode.d.ts | 28 + ...bukkit.block.data.type.StructureBlock.d.ts | 24 + ...rg.bukkit.block.data.type.Switch.Face.d.ts | 26 + .../org.bukkit.block.data.type.Switch.d.ts | 24 + .../org.bukkit.block.data.type.TNT.d.ts | 24 + ....block.data.type.TechnicalPiston.Type.d.ts | 24 + ...ukkit.block.data.type.TechnicalPiston.d.ts | 24 + .../org.bukkit.block.data.type.TrapDoor.d.ts | 14 + .../org.bukkit.block.data.type.Tripwire.d.ts | 24 + ...g.bukkit.block.data.type.TripwireHook.d.ts | 14 + .../org.bukkit.block.data.type.TurtleEgg.d.ts | 49 + .../org.bukkit.block.data.type.WallSign.d.ts | 14 + .../org.bukkit.block.structure.Mirror.d.ts | 22 + ...kit.block.structure.StructureRotation.d.ts | 24 + .../org.bukkit.block.structure.UsageMode.d.ts | 24 + .../bukkit/org.bukkit.boss.BarColor.d.ts | 28 + .../bukkit/org.bukkit.boss.BarFlag.d.ts | 20 + .../bukkit/org.bukkit.boss.BarStyle.d.ts | 24 + .../bukkit/org.bukkit.boss.BossBar.d.ts | 107 + .../bukkit/org.bukkit.boss.KeyedBossBar.d.ts | 10 + ...org.bukkit.command.BlockCommandSender.d.ts | 15 + .../bukkit/org.bukkit.command.Command.d.ts | 161 + .../org.bukkit.command.CommandException.d.ts | 24 + .../org.bukkit.command.CommandExecutor.d.ts | 18 + .../bukkit/org.bukkit.command.CommandMap.d.ts | 80 + .../org.bukkit.command.CommandSender.d.ts | 30 + ...g.bukkit.command.ConsoleCommandSender.d.ts | 10 + ....bukkit.command.FormattedCommandAlias.d.ts | 14 + ...g.bukkit.command.MultipleCommandAlias.d.ts | 19 + .../org.bukkit.command.PluginCommand.d.ts | 62 + ...ukkit.command.PluginCommandYamlParser.d.ts | 14 + ...kit.command.PluginIdentifiableCommand.d.ts | 15 + ...g.bukkit.command.ProxiedCommandSender.d.ts | 20 + ...it.command.RemoteConsoleCommandSender.d.ts | 10 + .../org.bukkit.command.SimpleCommandMap.d.ts | 48 + .../org.bukkit.command.TabCompleter.d.ts | 15 + .../org.bukkit.command.TabExecutor.d.ts | 10 + ...bukkit.command.defaults.BukkitCommand.d.ts | 16 + ...g.bukkit.command.defaults.HelpCommand.d.ts | 26 + ...ukkit.command.defaults.PluginsCommand.d.ts | 18 + ...bukkit.command.defaults.ReloadCommand.d.ts | 18 + ...ukkit.command.defaults.TimingsCommand.d.ts | 18 + ...ukkit.command.defaults.VersionCommand.d.ts | 18 + ...rg.bukkit.configuration.Configuration.d.ts | 69 + ...it.configuration.ConfigurationOptions.d.ts | 63 + ...it.configuration.ConfigurationSection.d.ts | 665 ++++ ...uration.InvalidConfigurationException.d.ts | 34 + ...kit.configuration.MemoryConfiguration.d.ts | 37 + ...figuration.MemoryConfigurationOptions.d.ts | 18 + ...rg.bukkit.configuration.MemorySection.d.ts | 176 + ....configuration.file.FileConfiguration.d.ts | 109 + ...uration.file.FileConfigurationOptions.d.ts | 84 + ....configuration.file.YamlConfiguration.d.ts | 50 + ...uration.file.YamlConfigurationOptions.d.ts | 38 + ...it.configuration.file.YamlConstructor.d.ts | 14 + ...it.configuration.file.YamlRepresenter.d.ts | 14 + ...rialization.ConfigurationSerializable.d.ts | 20 + ...ialization.ConfigurationSerialization.d.ts | 87 + ...serialization.DelegateDeserialization.d.ts | 18 + ...guration.serialization.SerializableAs.d.ts | 20 + ...rg.bukkit.conversations.BooleanPrompt.d.ts | 16 + .../org.bukkit.conversations.Conversable.d.ts | 42 + ...ations.Conversation.ConversationState.d.ts | 22 + ...org.bukkit.conversations.Conversation.d.ts | 121 + ...versations.ConversationAbandonedEvent.d.ts | 30 + ...sations.ConversationAbandonedListener.d.ts | 15 + ...t.conversations.ConversationCanceller.d.ts | 28 + ...kit.conversations.ConversationContext.d.ts | 42 + ...kit.conversations.ConversationFactory.d.ts | 107 + ...kkit.conversations.ConversationPrefix.d.ts | 15 + ...tions.ExactMatchConversationCanceller.d.ts | 21 + ...g.bukkit.conversations.FixedSetPrompt.d.ts | 27 + ...tions.InactivityConversationCanceller.d.ts | 34 + ...anuallyAbandonedConversationCanceller.d.ts | 18 + ...rg.bukkit.conversations.MessagePrompt.d.ts | 28 + ....conversations.NullConversationPrefix.d.ts | 17 + ...rg.bukkit.conversations.NumericPrompt.d.ts | 36 + ...bukkit.conversations.PlayerNamePrompt.d.ts | 16 + ...rsations.PluginNameConversationPrefix.d.ts | 25 + .../org.bukkit.conversations.Prompt.d.ts | 30 + .../org.bukkit.conversations.RegexPrompt.d.ts | 16 + ...org.bukkit.conversations.StringPrompt.d.ts | 17 + ...bukkit.conversations.ValidatingPrompt.d.ts | 42 + .../org.bukkit.enchantments.Enchantment.d.ts | 175 + ....bukkit.enchantments.EnchantmentOffer.d.ts | 44 + ...bukkit.enchantments.EnchantmentTarget.d.ts | 52 + ...ukkit.enchantments.EnchantmentWrapper.d.ts | 33 + ...kit.entity.AbstractArrow.PickupStatus.d.ts | 22 + .../org.bukkit.entity.AbstractArrow.d.ts | 83 + .../org.bukkit.entity.AbstractHorse.d.ts | 81 + .../org.bukkit.entity.AbstractVillager.d.ts | 19 + .../bukkit/org.bukkit.entity.Ageable.d.ts | 57 + .../bukkit/org.bukkit.entity.Ambient.d.ts | 10 + .../bukkit/org.bukkit.entity.AnimalTamer.d.ts | 20 + .../bukkit/org.bukkit.entity.Animals.d.ts | 42 + .../org.bukkit.entity.AreaEffectCloud.d.ts | 165 + .../bukkit/org.bukkit.entity.ArmorStand.d.ts | 200 ++ .../bukkit/org.bukkit.entity.Arrow.d.ts | 64 + .../typings/bukkit/org.bukkit.entity.Bat.d.ts | 25 + .../bukkit/org.bukkit.entity.Blaze.d.ts | 10 + .../bukkit/org.bukkit.entity.Boat.d.ts | 69 + .../bukkit/org.bukkit.entity.Boss.d.ts | 15 + .../bukkit/org.bukkit.entity.Cat.Type.d.ts | 38 + .../typings/bukkit/org.bukkit.entity.Cat.d.ts | 30 + .../bukkit/org.bukkit.entity.CaveSpider.d.ts | 10 + .../org.bukkit.entity.ChestedHorse.d.ts | 21 + .../bukkit/org.bukkit.entity.Chicken.d.ts | 10 + .../typings/bukkit/org.bukkit.entity.Cod.d.ts | 10 + .../org.bukkit.entity.ComplexEntityPart.d.ts | 15 + ...org.bukkit.entity.ComplexLivingEntity.d.ts | 15 + .../typings/bukkit/org.bukkit.entity.Cow.d.ts | 10 + .../bukkit/org.bukkit.entity.Creature.d.ts | 10 + .../bukkit/org.bukkit.entity.Creeper.d.ts | 62 + .../bukkit/org.bukkit.entity.Damageable.d.ts | 53 + .../bukkit/org.bukkit.entity.Dolphin.d.ts | 10 + .../bukkit/org.bukkit.entity.Donkey.d.ts | 10 + .../org.bukkit.entity.DragonFireball.d.ts | 10 + .../bukkit/org.bukkit.entity.Drowned.d.ts | 10 + .../typings/bukkit/org.bukkit.entity.Egg.d.ts | 10 + .../org.bukkit.entity.ElderGuardian.d.ts | 10 + .../org.bukkit.entity.EnderCrystal.d.ts | 33 + .../org.bukkit.entity.EnderDragon.Phase.d.ts | 38 + .../bukkit/org.bukkit.entity.EnderDragon.d.ts | 20 + .../org.bukkit.entity.EnderDragonPart.d.ts | 12 + .../bukkit/org.bukkit.entity.EnderPearl.d.ts | 10 + .../bukkit/org.bukkit.entity.EnderSignal.d.ts | 49 + .../bukkit/org.bukkit.entity.Enderman.d.ts | 30 + .../bukkit/org.bukkit.entity.Endermite.d.ts | 22 + .../bukkit/org.bukkit.entity.Entity.d.ts | 393 +++ .../bukkit/org.bukkit.entity.EntityType.d.ts | 242 ++ .../org.bukkit.entity.Evoker.Spell.d.ts | 28 + .../bukkit/org.bukkit.entity.Evoker.d.ts | 20 + .../bukkit/org.bukkit.entity.EvokerFangs.d.ts | 20 + .../org.bukkit.entity.ExperienceOrb.d.ts | 20 + .../bukkit/org.bukkit.entity.Explosive.d.ts | 30 + .../org.bukkit.entity.FallingBlock.d.ts | 40 + .../bukkit/org.bukkit.entity.Fireball.d.ts | 20 + .../bukkit/org.bukkit.entity.Firework.d.ts | 38 + .../bukkit/org.bukkit.entity.Fish.d.ts | 10 + .../bukkit/org.bukkit.entity.FishHook.d.ts | 26 + .../bukkit/org.bukkit.entity.Flying.d.ts | 10 + .../bukkit/org.bukkit.entity.Fox.Type.d.ts | 20 + .../typings/bukkit/org.bukkit.entity.Fox.d.ts | 35 + .../bukkit/org.bukkit.entity.Ghast.d.ts | 10 + .../bukkit/org.bukkit.entity.Giant.d.ts | 10 + .../bukkit/org.bukkit.entity.Golem.d.ts | 10 + .../bukkit/org.bukkit.entity.Guardian.d.ts | 17 + .../bukkit/org.bukkit.entity.Hanging.d.ts | 17 + .../bukkit/org.bukkit.entity.Horse.Color.d.ts | 30 + .../bukkit/org.bukkit.entity.Horse.Style.d.ts | 26 + .../org.bukkit.entity.Horse.Variant.d.ts | 28 + .../bukkit/org.bukkit.entity.Horse.d.ts | 50 + .../bukkit/org.bukkit.entity.HumanEntity.d.ts | 268 ++ .../bukkit/org.bukkit.entity.Husk.d.ts | 32 + .../bukkit/org.bukkit.entity.Illager.d.ts | 10 + .../bukkit/org.bukkit.entity.Illusioner.d.ts | 10 + .../bukkit/org.bukkit.entity.IronGolem.d.ts | 20 + .../bukkit/org.bukkit.entity.Item.d.ts | 30 + .../bukkit/org.bukkit.entity.ItemFrame.d.ts | 35 + .../org.bukkit.entity.LargeFireball.d.ts | 10 + .../bukkit/org.bukkit.entity.LeashHitch.d.ts | 10 + .../org.bukkit.entity.LightningStrike.d.ts | 15 + .../org.bukkit.entity.LingeringPotion.d.ts | 10 + .../org.bukkit.entity.LivingEntity.d.ts | 335 ++ .../bukkit/org.bukkit.entity.Llama.Color.d.ts | 24 + .../bukkit/org.bukkit.entity.Llama.d.ts | 35 + .../bukkit/org.bukkit.entity.LlamaSpit.d.ts | 10 + .../bukkit/org.bukkit.entity.MagmaCube.d.ts | 10 + .../bukkit/org.bukkit.entity.Minecart.d.ts | 107 + .../typings/bukkit/org.bukkit.entity.Mob.d.ts | 23 + .../bukkit/org.bukkit.entity.Monster.d.ts | 10 + .../bukkit/org.bukkit.entity.Mule.d.ts | 10 + ...org.bukkit.entity.MushroomCow.Variant.d.ts | 20 + .../bukkit/org.bukkit.entity.MushroomCow.d.ts | 20 + .../typings/bukkit/org.bukkit.entity.NPC.d.ts | 10 + .../bukkit/org.bukkit.entity.Ocelot.Type.d.ts | 34 + .../bukkit/org.bukkit.entity.Ocelot.d.ts | 20 + .../bukkit/org.bukkit.entity.Painting.d.ts | 25 + .../bukkit/org.bukkit.entity.Panda.Gene.d.ts | 36 + .../bukkit/org.bukkit.entity.Panda.d.ts | 30 + .../org.bukkit.entity.Parrot.Variant.d.ts | 26 + .../bukkit/org.bukkit.entity.Parrot.d.ts | 20 + .../bukkit/org.bukkit.entity.Phantom.d.ts | 14 + .../typings/bukkit/org.bukkit.entity.Pig.d.ts | 20 + .../bukkit/org.bukkit.entity.PigZombie.d.ts | 45 + .../bukkit/org.bukkit.entity.Pillager.d.ts | 10 + .../bukkit/org.bukkit.entity.Player.d.ts | 904 +++++ .../bukkit/org.bukkit.entity.PolarBear.d.ts | 10 + .../bukkit/org.bukkit.entity.Pose.d.ts | 28 + .../bukkit/org.bukkit.entity.Projectile.d.ts | 33 + .../bukkit/org.bukkit.entity.PufferFish.d.ts | 20 + .../bukkit/org.bukkit.entity.Rabbit.Type.d.ts | 30 + .../bukkit/org.bukkit.entity.Rabbit.d.ts | 14 + .../bukkit/org.bukkit.entity.Raider.d.ts | 30 + .../bukkit/org.bukkit.entity.Ravager.d.ts | 10 + .../bukkit/org.bukkit.entity.Salmon.d.ts | 10 + .../bukkit/org.bukkit.entity.Sheep.d.ts | 14 + .../bukkit/org.bukkit.entity.Shulker.d.ts | 10 + .../org.bukkit.entity.ShulkerBullet.d.ts | 20 + .../bukkit/org.bukkit.entity.Silverfish.d.ts | 10 + .../bukkit/org.bukkit.entity.Sittable.d.ts | 21 + ...g.bukkit.entity.Skeleton.SkeletonType.d.ts | 22 + .../bukkit/org.bukkit.entity.Skeleton.d.ts | 17 + .../org.bukkit.entity.SkeletonHorse.d.ts | 10 + .../bukkit/org.bukkit.entity.Slime.d.ts | 14 + .../org.bukkit.entity.SmallFireball.d.ts | 10 + .../bukkit/org.bukkit.entity.Snowball.d.ts | 10 + .../bukkit/org.bukkit.entity.Snowman.d.ts | 23 + .../org.bukkit.entity.SpectralArrow.d.ts | 21 + .../org.bukkit.entity.Spellcaster.Spell.d.ts | 28 + .../bukkit/org.bukkit.entity.Spellcaster.d.ts | 20 + .../bukkit/org.bukkit.entity.Spider.d.ts | 10 + .../org.bukkit.entity.SplashPotion.d.ts | 10 + .../bukkit/org.bukkit.entity.Squid.d.ts | 10 + .../bukkit/org.bukkit.entity.Stray.d.ts | 10 + .../bukkit/org.bukkit.entity.TNTPrimed.d.ts | 35 + .../bukkit/org.bukkit.entity.Tameable.d.ts | 41 + .../org.bukkit.entity.ThrownExpBottle.d.ts | 10 + .../org.bukkit.entity.ThrownPotion.d.ts | 33 + .../bukkit/org.bukkit.entity.TippedArrow.d.ts | 10 + .../bukkit/org.bukkit.entity.TraderLlama.d.ts | 10 + .../bukkit/org.bukkit.entity.Trident.d.ts | 10 + ...rg.bukkit.entity.TropicalFish.Pattern.d.ts | 40 + .../org.bukkit.entity.TropicalFish.d.ts | 40 + .../bukkit/org.bukkit.entity.Turtle.d.ts | 10 + .../bukkit/org.bukkit.entity.Vehicle.d.ts | 20 + .../typings/bukkit/org.bukkit.entity.Vex.d.ts | 22 + ...org.bukkit.entity.Villager.Profession.d.ts | 48 + .../org.bukkit.entity.Villager.Type.d.ts | 32 + .../bukkit/org.bukkit.entity.Villager.d.ts | 68 + .../bukkit/org.bukkit.entity.Vindicator.d.ts | 10 + .../org.bukkit.entity.WanderingTrader.d.ts | 10 + .../bukkit/org.bukkit.entity.WaterMob.d.ts | 10 + .../bukkit/org.bukkit.entity.Witch.d.ts | 10 + .../bukkit/org.bukkit.entity.Wither.d.ts | 10 + .../org.bukkit.entity.WitherSkeleton.d.ts | 10 + .../bukkit/org.bukkit.entity.WitherSkull.d.ts | 20 + .../bukkit/org.bukkit.entity.Wolf.d.ts | 32 + .../bukkit/org.bukkit.entity.Zombie.d.ts | 53 + .../bukkit/org.bukkit.entity.ZombieHorse.d.ts | 10 + .../org.bukkit.entity.ZombieVillager.d.ts | 54 + .../org.bukkit.entity.memory.MemoryKey.d.ts | 39 + ...ukkit.entity.minecart.CommandMinecart.d.ts | 33 + ...kit.entity.minecart.ExplosiveMinecart.d.ts | 12 + ...bukkit.entity.minecart.HopperMinecart.d.ts | 23 + ...ukkit.entity.minecart.PoweredMinecart.d.ts | 12 + ...kkit.entity.minecart.RideableMinecart.d.ts | 12 + ...ukkit.entity.minecart.SpawnerMinecart.d.ts | 12 + ...ukkit.entity.minecart.StorageMinecart.d.ts | 12 + .../bukkit/org.bukkit.event.Cancellable.d.ts | 22 + .../bukkit/org.bukkit.event.Event.Result.d.ts | 22 + .../bukkit/org.bukkit.event.Event.d.ts | 53 + .../org.bukkit.event.EventException.d.ts | 35 + .../bukkit/org.bukkit.event.EventHandler.d.ts | 33 + .../org.bukkit.event.EventPriority.d.ts | 28 + .../bukkit/org.bukkit.event.HandlerList.d.ts | 85 + .../bukkit/org.bukkit.event.Listener.d.ts | 10 + .../bukkit/org.bukkit.event.block.Action.d.ts | 26 + ...rg.bukkit.event.block.BlockBreakEvent.d.ts | 33 + ...org.bukkit.event.block.BlockBurnEvent.d.ts | 29 + ...bukkit.event.block.BlockCanBuildEvent.d.ts | 54 + ...org.bukkit.event.block.BlockCookEvent.d.ts | 37 + ...g.bukkit.event.block.BlockDamageEvent.d.ts | 42 + ...t.event.block.BlockDispenseArmorEvent.d.ts | 19 + ...bukkit.event.block.BlockDispenseEvent.d.ts | 47 + ...bukkit.event.block.BlockDropItemEvent.d.ts | 40 + .../org.bukkit.event.block.BlockEvent.d.ts | 21 + .../org.bukkit.event.block.BlockExpEvent.d.ts | 29 + ....bukkit.event.block.BlockExplodeEvent.d.ts | 38 + ...org.bukkit.event.block.BlockFadeEvent.d.ts | 28 + ...ukkit.event.block.BlockFertilizeEvent.d.ts | 32 + ...org.bukkit.event.block.BlockFormEvent.d.ts | 18 + ...g.bukkit.event.block.BlockFromToEvent.d.ts | 40 + ...org.bukkit.event.block.BlockGrowEvent.d.ts | 27 + ...nt.block.BlockIgniteEvent.IgniteCause.d.ts | 32 + ...g.bukkit.event.block.BlockIgniteEvent.d.ts | 46 + ...kkit.event.block.BlockMultiPlaceEvent.d.ts | 21 + ....bukkit.event.block.BlockPhysicsEvent.d.ts | 35 + ...g.bukkit.event.block.BlockPistonEvent.d.ts | 28 + ...it.event.block.BlockPistonExtendEvent.d.ts | 31 + ...t.event.block.BlockPistonRetractEvent.d.ts | 30 + ...rg.bukkit.event.block.BlockPlaceEvent.d.ts | 83 + ...bukkit.event.block.BlockRedstoneEvent.d.ts | 33 + ...kit.event.block.BlockShearEntityEvent.d.ts | 32 + ...g.bukkit.event.block.BlockSpreadEvent.d.ts | 23 + ...CauldronLevelChangeEvent.ChangeReason.d.ts | 36 + ....event.block.CauldronLevelChangeEvent.d.ts | 35 + ...kkit.event.block.EntityBlockFormEvent.d.ts | 19 + ...kit.event.block.FluidLevelChangeEvent.d.ts | 33 + ...g.bukkit.event.block.LeavesDecayEvent.d.ts | 22 + ...ukkit.event.block.MoistureChangeEvent.d.ts | 27 + .../org.bukkit.event.block.NotePlayEvent.d.ts | 42 + ...rg.bukkit.event.block.SignChangeEvent.d.ts | 42 + ....bukkit.event.block.SpongeAbsorbEvent.d.ts | 30 + ...it.event.enchantment.EnchantItemEvent.d.ts | 59 + ...t.enchantment.PrepareItemEnchantEvent.d.ts | 55 + ...vent.entity.AreaEffectCloudApplyEvent.d.ts | 34 + ...kkit.event.entity.BatToggleSleepEvent.d.ts | 27 + ...entity.CreatureSpawnEvent.SpawnReason.d.ts | 78 + ...ukkit.event.entity.CreatureSpawnEvent.d.ts | 21 + ...t.entity.CreeperPowerEvent.PowerCause.d.ts | 24 + ...bukkit.event.entity.CreeperPowerEvent.d.ts | 36 + ...nt.entity.EnderDragonChangePhaseEvent.d.ts | 40 + ...kit.event.entity.EntityAirChangeEvent.d.ts | 32 + ...kit.event.entity.EntityBreakDoorEvent.d.ts | 16 + ....bukkit.event.entity.EntityBreedEvent.d.ts | 55 + ...t.event.entity.EntityChangeBlockEvent.d.ts | 37 + ...vent.entity.EntityCombustByBlockEvent.d.ts | 21 + ...ent.entity.EntityCombustByEntityEvent.d.ts | 19 + ...ukkit.event.entity.EntityCombustEvent.d.ts | 32 + ....event.entity.EntityCreatePortalEvent.d.ts | 34 + ...event.entity.EntityDamageByBlockEvent.d.ts | 21 + ...vent.entity.EntityDamageByEntityEvent.d.ts | 21 + ....entity.EntityDamageEvent.DamageCause.d.ts | 74 + ...tity.EntityDamageEvent.DamageModifier.d.ts | 32 + ...bukkit.event.entity.EntityDamageEvent.d.ts | 74 + ....bukkit.event.entity.EntityDeathEvent.d.ts | 43 + ...kkit.event.entity.EntityDropItemEvent.d.ts | 27 + .../org.bukkit.event.entity.EntityEvent.d.ts | 26 + ...ukkit.event.entity.EntityExplodeEvent.d.ts | 46 + ...kkit.event.entity.EntityInteractEvent.d.ts | 29 + ...it.event.entity.EntityPickupItemEvent.d.ts | 34 + ....bukkit.event.entity.EntityPlaceEvent.d.ts | 37 + ...t.event.entity.EntityPortalEnterEvent.d.ts | 23 + ...bukkit.event.entity.EntityPortalEvent.d.ts | 18 + ...it.event.entity.EntityPortalExitEvent.d.ts | 35 + ...it.event.entity.EntityPoseChangeEvent.d.ts | 23 + ...entity.EntityPotionEffectEvent.Action.d.ts | 26 + ....entity.EntityPotionEffectEvent.Cause.d.ts | 60 + ....event.entity.EntityPotionEffectEvent.d.ts | 59 + ....EntityRegainHealthEvent.RegainReason.d.ts | 36 + ....event.entity.EntityRegainHealthEvent.d.ts | 37 + ...kit.event.entity.EntityResurrectEvent.d.ts | 24 + ...kkit.event.entity.EntityShootBowEvent.d.ts | 44 + ....bukkit.event.entity.EntitySpawnEvent.d.ts | 27 + ...g.bukkit.event.entity.EntityTameEvent.d.ts | 29 + ...entity.EntityTargetEvent.TargetReason.d.ts | 52 + ...bukkit.event.entity.EntityTargetEvent.d.ts | 47 + ....entity.EntityTargetLivingEntityEvent.d.ts | 26 + ...kkit.event.entity.EntityTeleportEvent.d.ts | 42 + ...t.event.entity.EntityToggleGlideEvent.d.ts | 24 + ...it.event.entity.EntityToggleSwimEvent.d.ts | 24 + ....EntityTransformEvent.TransformReason.d.ts | 30 + ...kit.event.entity.EntityTransformEvent.d.ts | 38 + ...tity.EntityUnleashEvent.UnleashReason.d.ts | 26 + ...ukkit.event.entity.EntityUnleashEvent.d.ts | 23 + ...rg.bukkit.event.entity.ExpBottleEvent.d.ts | 46 + ...kkit.event.entity.ExplosionPrimeEvent.d.ts | 44 + ...kit.event.entity.FireworkExplodeEvent.d.ts | 29 + ...kit.event.entity.FoodLevelChangeEvent.d.ts | 45 + ...rg.bukkit.event.entity.HorseJumpEvent.d.ts | 53 + ....bukkit.event.entity.ItemDespawnEvent.d.ts | 29 + ...rg.bukkit.event.entity.ItemMergeEvent.d.ts | 29 + ...rg.bukkit.event.entity.ItemSpawnEvent.d.ts | 18 + ...ent.entity.LingeringPotionSplashEvent.d.ts | 29 + .../org.bukkit.event.entity.PigZapEvent.d.ts | 35 + ...kkit.event.entity.PigZombieAngerEvent.d.ts | 39 + ....bukkit.event.entity.PlayerDeathEvent.d.ts | 98 + ...t.event.entity.PlayerLeashEntityEvent.d.ts | 37 + ...bukkit.event.entity.PotionSplashEvent.d.ts | 45 + ...ukkit.event.entity.ProjectileHitEvent.d.ts | 44 + ...it.event.entity.ProjectileLaunchEvent.d.ts | 20 + ...bukkit.event.entity.SheepDyeWoolEvent.d.ts | 34 + ...kit.event.entity.SheepRegrowWoolEvent.d.ts | 24 + ...g.bukkit.event.entity.SlimeSplitEvent.d.ts | 34 + ...vent.entity.VillagerAcquireTradeEvent.d.ts | 34 + ...illagerCareerChangeEvent.ChangeReason.d.ts | 22 + ...vent.entity.VillagerCareerChangeEvent.d.ts | 39 + ...nt.entity.VillagerReplenishTradeEvent.d.ts | 45 + ...ent.hanging.HangingBreakByEntityEvent.d.ts | 22 + ...hanging.HangingBreakEvent.RemoveCause.d.ts | 28 + ...ukkit.event.hanging.HangingBreakEvent.d.ts | 27 + ...org.bukkit.event.hanging.HangingEvent.d.ts | 21 + ...ukkit.event.hanging.HangingPlaceEvent.d.ts | 37 + .../org.bukkit.event.inventory.BrewEvent.d.ts | 32 + ...event.inventory.BrewingStandFuelEvent.d.ts | 49 + .../org.bukkit.event.inventory.ClickType.d.ts | 70 + ...bukkit.event.inventory.CraftItemEvent.d.ts | 20 + .../org.bukkit.event.inventory.DragType.d.ts | 20 + ...kkit.event.inventory.FurnaceBurnEvent.d.ts | 47 + ...t.event.inventory.FurnaceExtractEvent.d.ts | 29 + ...kit.event.inventory.FurnaceSmeltEvent.d.ts | 14 + ...ukkit.event.inventory.InventoryAction.d.ts | 54 + ...t.event.inventory.InventoryClickEvent.d.ts | 103 + ...t.event.inventory.InventoryCloseEvent.d.ts | 23 + ...vent.inventory.InventoryCreativeEvent.d.ts | 18 + ...it.event.inventory.InventoryDragEvent.d.ts | 63 + ...bukkit.event.inventory.InventoryEvent.d.ts | 36 + ...vent.inventory.InventoryInteractEvent.d.ts | 51 + ...vent.inventory.InventoryMoveItemEvent.d.ts | 51 + ...it.event.inventory.InventoryOpenEvent.d.ts | 41 + ...nt.inventory.InventoryPickupItemEvent.d.ts | 32 + ...vent.inventory.InventoryType.SlotType.d.ts | 32 + ....bukkit.event.inventory.InventoryType.d.ts | 74 + ...kit.event.inventory.PrepareAnvilEvent.d.ts | 27 + ...event.inventory.PrepareItemCraftEvent.d.ts | 33 + ...kkit.event.inventory.TradeSelectEvent.d.ts | 30 + ...kit.event.player.AsyncPlayerChatEvent.d.ts | 65 + ...layer.AsyncPlayerPreLoginEvent.Result.d.ts | 28 + ...event.player.AsyncPlayerPreLoginEvent.d.ts | 81 + ....player.PlayerAchievementAwardedEvent.d.ts | 27 + ...ent.player.PlayerAdvancementDoneEvent.d.ts | 23 + ...kit.event.player.PlayerAnimationEvent.d.ts | 30 + ...kkit.event.player.PlayerAnimationType.d.ts | 18 + ...layer.PlayerArmorStandManipulateEvent.d.ts | 45 + ...er.PlayerBedEnterEvent.BedEnterResult.d.ts | 30 + ...kkit.event.player.PlayerBedEnterEvent.d.ts | 73 + ...kkit.event.player.PlayerBedLeaveEvent.d.ts | 47 + ...t.event.player.PlayerBucketEmptyEvent.d.ts | 20 + ...bukkit.event.player.PlayerBucketEvent.d.ts | 50 + ...it.event.player.PlayerBucketFillEvent.d.ts | 20 + ...ent.player.PlayerChangedMainHandEvent.d.ts | 24 + ....event.player.PlayerChangedWorldEvent.d.ts | 23 + ...ukkit.event.player.PlayerChannelEvent.d.ts | 20 + ...g.bukkit.event.player.PlayerChatEvent.d.ts | 55 + ...ent.player.PlayerChatTabCompleteEvent.d.ts | 36 + ...t.player.PlayerCommandPreprocessEvent.d.ts | 57 + ...t.event.player.PlayerCommandSendEvent.d.ts | 26 + ...kkit.event.player.PlayerDropItemEvent.d.ts | 27 + ...kkit.event.player.PlayerEditBookEvent.d.ts | 65 + ...kkit.event.player.PlayerEggThrowEvent.d.ts | 63 + .../org.bukkit.event.player.PlayerEvent.d.ts | 21 + ...kit.event.player.PlayerExpChangeEvent.d.ts | 28 + ...it.event.player.PlayerFishEvent.State.d.ts | 32 + ...g.bukkit.event.player.PlayerFishEvent.d.ts | 56 + ...vent.player.PlayerGameModeChangeEvent.d.ts | 27 + ...nt.player.PlayerInteractAtEntityEvent.d.ts | 22 + ...vent.player.PlayerInteractEntityEvent.d.ts | 36 + ...kkit.event.player.PlayerInteractEvent.d.ts | 111 + ...kit.event.player.PlayerItemBreakEvent.d.ts | 23 + ...t.event.player.PlayerItemConsumeEvent.d.ts | 34 + ...it.event.player.PlayerItemDamageEvent.d.ts | 34 + ...kkit.event.player.PlayerItemHeldEvent.d.ts | 32 + ...kkit.event.player.PlayerItemMendEvent.d.ts | 46 + ...g.bukkit.event.player.PlayerJoinEvent.d.ts | 28 + ...g.bukkit.event.player.PlayerKickEvent.d.ts | 42 + ...t.event.player.PlayerLevelChangeEvent.d.ts | 28 + ....event.player.PlayerLocaleChangeEvent.d.ts | 20 + ....event.player.PlayerLoginEvent.Result.d.ts | 28 + ....bukkit.event.player.PlayerLoginEvent.d.ts | 71 + ...g.bukkit.event.player.PlayerMoveEvent.d.ts | 58 + ...t.event.player.PlayerPickupArrowEvent.d.ts | 19 + ...it.event.player.PlayerPickupItemEvent.d.ts | 32 + ...bukkit.event.player.PlayerPortalEvent.d.ts | 20 + ...ent.player.PlayerPreLoginEvent.Result.d.ts | 28 + ...kkit.event.player.PlayerPreLoginEvent.d.ts | 66 + ...g.bukkit.event.player.PlayerQuitEvent.d.ts | 28 + ...vent.player.PlayerRecipeDiscoverEvent.d.ts | 27 + ...ent.player.PlayerRegisterChannelEvent.d.ts | 14 + ....PlayerResourcePackStatusEvent.Status.d.ts | 26 + ....player.PlayerResourcePackStatusEvent.d.ts | 23 + ...ukkit.event.player.PlayerRespawnEvent.d.ts | 33 + ...ukkit.event.player.PlayerRiptideEvent.d.ts | 23 + ...t.event.player.PlayerShearEntityEvent.d.ts | 27 + ....player.PlayerStatisticIncrementEvent.d.ts | 55 + ...event.player.PlayerSwapHandItemsEvent.d.ts | 42 + ...ent.player.PlayerTakeLecternBookEvent.d.ts | 32 + ...yer.PlayerTeleportEvent.TeleportCause.d.ts | 36 + ...kkit.event.player.PlayerTeleportEvent.d.ts | 25 + ....event.player.PlayerToggleFlightEvent.d.ts | 27 + ...t.event.player.PlayerToggleSneakEvent.d.ts | 27 + ....event.player.PlayerToggleSprintEvent.d.ts | 27 + ...event.player.PlayerUnleashEntityEvent.d.ts | 23 + ...t.player.PlayerUnregisterChannelEvent.d.ts | 14 + ...kkit.event.player.PlayerVelocityEvent.d.ts | 32 + ...it.event.server.BroadcastMessageEvent.d.ts | 47 + ...ukkit.event.server.MapInitializeEvent.d.ts | 23 + ...ukkit.event.server.PluginDisableEvent.d.ts | 18 + ...bukkit.event.server.PluginEnableEvent.d.ts | 18 + .../org.bukkit.event.server.PluginEvent.d.ts | 19 + ...event.server.RemoteServerCommandEvent.d.ts | 18 + ...ukkit.event.server.ServerCommandEvent.d.ts | 38 + .../org.bukkit.event.server.ServerEvent.d.ts | 16 + ...kkit.event.server.ServerListPingEvent.d.ts | 70 + ...event.server.ServerLoadEvent.LoadType.d.ts | 22 + ...g.bukkit.event.server.ServerLoadEvent.d.ts | 26 + .../org.bukkit.event.server.ServiceEvent.d.ts | 16 + ...kit.event.server.ServiceRegisterEvent.d.ts | 18 + ...t.event.server.ServiceUnregisterEvent.d.ts | 18 + ....bukkit.event.server.TabCompleteEvent.d.ts | 43 + ...nt.vehicle.VehicleBlockCollisionEvent.d.ts | 23 + ...t.event.vehicle.VehicleCollisionEvent.d.ts | 14 + ...kkit.event.vehicle.VehicleCreateEvent.d.ts | 22 + ...kkit.event.vehicle.VehicleDamageEvent.d.ts | 37 + ...kit.event.vehicle.VehicleDestroyEvent.d.ts | 27 + ...ukkit.event.vehicle.VehicleEnterEvent.d.ts | 27 + ...t.vehicle.VehicleEntityCollisionEvent.d.ts | 32 + ...org.bukkit.event.vehicle.VehicleEvent.d.ts | 21 + ...bukkit.event.vehicle.VehicleExitEvent.d.ts | 27 + ...bukkit.event.vehicle.VehicleMoveEvent.d.ts | 28 + ...kkit.event.vehicle.VehicleUpdateEvent.d.ts | 18 + ...nt.weather.LightningStrikeEvent.Cause.d.ts | 28 + ...it.event.weather.LightningStrikeEvent.d.ts | 34 + ...kkit.event.weather.ThunderChangeEvent.d.ts | 27 + ...kkit.event.weather.WeatherChangeEvent.d.ts | 27 + ...org.bukkit.event.weather.WeatherEvent.d.ts | 21 + .../org.bukkit.event.world.ChunkEvent.d.ts | 21 + ...org.bukkit.event.world.ChunkLoadEvent.d.ts | 25 + ...bukkit.event.world.ChunkPopulateEvent.d.ts | 18 + ...g.bukkit.event.world.ChunkUnloadEvent.d.ts | 30 + ....world.PortalCreateEvent.CreateReason.d.ts | 24 + ....bukkit.event.world.PortalCreateEvent.d.ts | 39 + ...g.bukkit.event.world.SpawnChangeEvent.d.ts | 23 + ...bukkit.event.world.StructureGrowEvent.d.ts | 48 + .../org.bukkit.event.world.WorldEvent.d.ts | 19 + ...org.bukkit.event.world.WorldInitEvent.d.ts | 18 + ...org.bukkit.event.world.WorldLoadEvent.d.ts | 18 + ...org.bukkit.event.world.WorldSaveEvent.d.ts | 18 + ...g.bukkit.event.world.WorldUnloadEvent.d.ts | 22 + .../org.bukkit.generator.BlockPopulator.d.ts | 23 + ...it.generator.ChunkGenerator.BiomeGrid.d.ts | 22 + ...it.generator.ChunkGenerator.ChunkData.d.ts | 81 + .../org.bukkit.generator.ChunkGenerator.d.ts | 58 + ...g.bukkit.help.GenericCommandHelpTopic.d.ts | 16 + .../bukkit/org.bukkit.help.HelpMap.d.ts | 52 + .../bukkit/org.bukkit.help.HelpTopic.d.ts | 75 + ...lpTopicComparator.TopicNameComparator.d.ts | 14 + .../org.bukkit.help.HelpTopicComparator.d.ts | 16 + .../org.bukkit.help.HelpTopicFactory.d.ts | 16 + .../org.bukkit.help.IndexHelpTopic.d.ts | 43 + ...kkit.inventory.AbstractHorseInventory.d.ts | 20 + .../org.bukkit.inventory.AnvilInventory.d.ts | 42 + .../org.bukkit.inventory.BeaconInventory.d.ts | 20 + .../org.bukkit.inventory.BlastingRecipe.d.ts | 14 + ...bukkit.inventory.BlockInventoryHolder.d.ts | 15 + .../org.bukkit.inventory.BrewerInventory.d.ts | 33 + .../org.bukkit.inventory.CampfireRecipe.d.ts | 14 + ...bukkit.inventory.CartographyInventory.d.ts | 10 + .../org.bukkit.inventory.CookingRecipe.d.ts | 79 + ...rg.bukkit.inventory.CraftingInventory.d.ts | 35 + ...bukkit.inventory.DoubleChestInventory.d.ts | 22 + ....bukkit.inventory.EnchantingInventory.d.ts | 30 + .../org.bukkit.inventory.EntityEquipment.d.ts | 222 ++ .../org.bukkit.inventory.EquipmentSlot.d.ts | 26 + ...org.bukkit.inventory.FurnaceInventory.d.ts | 42 + .../org.bukkit.inventory.FurnaceRecipe.d.ts | 44 + ....bukkit.inventory.GrindstoneInventory.d.ts | 10 + .../org.bukkit.inventory.HorseInventory.d.ts | 20 + .../org.bukkit.inventory.Inventory.d.ts | 247 ++ .../org.bukkit.inventory.InventoryHolder.d.ts | 15 + ...kkit.inventory.InventoryView.Property.d.ts | 60 + .../org.bukkit.inventory.InventoryView.d.ts | 112 + .../org.bukkit.inventory.ItemFactory.d.ts | 79 + .../bukkit/org.bukkit.inventory.ItemFlag.d.ts | 26 + .../org.bukkit.inventory.ItemStack.d.ts | 176 + ...org.bukkit.inventory.LecternInventory.d.ts | 12 + .../org.bukkit.inventory.LlamaInventory.d.ts | 20 + .../org.bukkit.inventory.LoomInventory.d.ts | 10 + .../bukkit/org.bukkit.inventory.MainHand.d.ts | 18 + .../bukkit/org.bukkit.inventory.Merchant.d.ts | 49 + ...rg.bukkit.inventory.MerchantInventory.d.ts | 31 + .../org.bukkit.inventory.MerchantRecipe.d.ts | 79 + .../org.bukkit.inventory.PlayerInventory.d.ts | 144 + .../bukkit/org.bukkit.inventory.Recipe.d.ts | 15 + ...it.inventory.RecipeChoice.ExactChoice.d.ts | 32 + ...inventory.RecipeChoice.MaterialChoice.d.ts | 38 + .../org.bukkit.inventory.RecipeChoice.d.ts | 19 + .../org.bukkit.inventory.ShapedRecipe.d.ts | 77 + .../org.bukkit.inventory.ShapelessRecipe.d.ts | 124 + .../org.bukkit.inventory.SmokingRecipe.d.ts | 14 + ...bukkit.inventory.StonecutterInventory.d.ts | 10 + ...g.bukkit.inventory.StonecuttingRecipe.d.ts | 59 + .../org.bukkit.inventory.meta.BannerMeta.d.ts | 59 + ...g.bukkit.inventory.meta.BlockDataMeta.d.ts | 30 + ....bukkit.inventory.meta.BlockStateMeta.d.ts | 31 + ...it.inventory.meta.BookMeta.Generation.d.ts | 26 + .../org.bukkit.inventory.meta.BookMeta.d.ts | 121 + ...rg.bukkit.inventory.meta.CrossbowMeta.d.ts | 33 + .../org.bukkit.inventory.meta.Damageable.d.ts | 29 + ...inventory.meta.EnchantmentStorageMeta.d.ts | 50 + ...kit.inventory.meta.FireworkEffectMeta.d.ts | 29 + ...rg.bukkit.inventory.meta.FireworkMeta.d.ts | 65 + .../org.bukkit.inventory.meta.ItemMeta.d.ts | 248 ++ ...kkit.inventory.meta.KnowledgeBookMeta.d.ts | 35 + ...ukkit.inventory.meta.LeatherArmorMeta.d.ts | 25 + .../org.bukkit.inventory.meta.MapMeta.d.ts | 104 + .../org.bukkit.inventory.meta.PotionMeta.d.ts | 85 + .../org.bukkit.inventory.meta.Repairable.d.ts | 29 + .../org.bukkit.inventory.meta.SkullMeta.d.ts | 42 + ...rg.bukkit.inventory.meta.SpawnEggMeta.d.ts | 24 + ...inventory.meta.TropicalFishBucketMeta.d.ts | 68 + ...tory.meta.tags.CustomItemTagContainer.d.ts | 59 + ...ntory.meta.tags.ItemTagAdapterContext.d.ts | 19 + ...eta.tags.ItemTagType.PrimitiveTagType.d.ts | 24 + ...ukkit.inventory.meta.tags.ItemTagType.d.ts | 57 + .../org.bukkit.loot.LootContext.Builder.d.ts | 49 + .../bukkit/org.bukkit.loot.LootContext.d.ts | 45 + .../bukkit/org.bukkit.loot.LootTable.d.ts | 20 + .../bukkit/org.bukkit.loot.LootTables.d.ts | 294 ++ .../bukkit/org.bukkit.loot.Lootable.d.ts | 38 + .../bukkit/org.bukkit.map.MapCanvas.d.ts | 55 + .../bukkit/org.bukkit.map.MapCursor.Type.d.ts | 74 + .../bukkit/org.bukkit.map.MapCursor.d.ts | 100 + .../org.bukkit.map.MapCursorCollection.d.ts | 52 + ...rg.bukkit.map.MapFont.CharacterSprite.d.ts | 29 + .../bukkit/org.bukkit.map.MapFont.d.ts | 40 + .../bukkit/org.bukkit.map.MapPalette.d.ts | 65 + .../bukkit/org.bukkit.map.MapRenderer.d.ts | 37 + .../bukkit/org.bukkit.map.MapView.Scale.d.ts | 36 + .../bukkit/org.bukkit.map.MapView.d.ts | 115 + .../bukkit/org.bukkit.map.MinecraftFont.d.ts | 17 + .../org.bukkit.material.Attachable.d.ts | 15 + .../bukkit/org.bukkit.material.Banner.d.ts | 28 + .../bukkit/org.bukkit.material.Bed.d.ts | 49 + .../bukkit/org.bukkit.material.Button.d.ts | 41 + .../bukkit/org.bukkit.material.Cake.d.ts | 40 + .../bukkit/org.bukkit.material.Cauldron.d.ts | 30 + .../bukkit/org.bukkit.material.Chest.d.ts | 23 + .../bukkit/org.bukkit.material.Coal.d.ts | 32 + ...it.material.CocoaPlant.CocoaPlantSize.d.ts | 22 + .../org.bukkit.material.CocoaPlant.d.ts | 38 + .../bukkit/org.bukkit.material.Colorable.d.ts | 26 + .../bukkit/org.bukkit.material.Command.d.ts | 31 + .../org.bukkit.material.Comparator.d.ts | 74 + .../bukkit/org.bukkit.material.Crops.d.ts | 58 + .../org.bukkit.material.DetectorRail.d.ts | 22 + .../bukkit/org.bukkit.material.Diode.d.ts | 75 + .../org.bukkit.material.Directional.d.ts | 20 + ....bukkit.material.DirectionalContainer.d.ts | 22 + .../bukkit/org.bukkit.material.Dispenser.d.ts | 24 + .../bukkit/org.bukkit.material.Door.d.ts | 101 + .../bukkit/org.bukkit.material.Dye.d.ts | 32 + .../org.bukkit.material.EnderChest.d.ts | 23 + .../org.bukkit.material.ExtendedRails.d.ts | 22 + .../bukkit/org.bukkit.material.FlowerPot.d.ts | 33 + .../bukkit/org.bukkit.material.Furnace.d.ts | 23 + ...g.bukkit.material.FurnaceAndDispenser.d.ts | 16 + .../bukkit/org.bukkit.material.Gate.d.ts | 28 + .../bukkit/org.bukkit.material.Hopper.d.ts | 64 + .../bukkit/org.bukkit.material.Ladder.d.ts | 28 + .../bukkit/org.bukkit.material.Leaves.d.ts | 73 + .../bukkit/org.bukkit.material.Lever.d.ts | 41 + .../bukkit/org.bukkit.material.LongGrass.d.ts | 32 + .../org.bukkit.material.MaterialData.d.ts | 47 + .../org.bukkit.material.MonsterEggs.d.ts | 20 + .../bukkit/org.bukkit.material.Mushroom.d.ts | 66 + .../org.bukkit.material.NetherWarts.d.ts | 32 + .../bukkit/org.bukkit.material.Observer.d.ts | 28 + .../bukkit/org.bukkit.material.Openable.d.ts | 20 + ...rg.bukkit.material.PistonBaseMaterial.d.ts | 35 + ...kkit.material.PistonExtensionMaterial.d.ts | 32 + .../org.bukkit.material.PoweredRail.d.ts | 25 + .../org.bukkit.material.PressurePlate.d.ts | 22 + .../org.bukkit.material.PressureSensor.d.ts | 12 + .../bukkit/org.bukkit.material.Pumpkin.d.ts | 31 + .../bukkit/org.bukkit.material.Rails.d.ts | 42 + .../bukkit/org.bukkit.material.Redstone.d.ts | 16 + .../org.bukkit.material.RedstoneTorch.d.ts | 26 + .../org.bukkit.material.RedstoneWire.d.ts | 26 + .../bukkit/org.bukkit.material.Sandstone.d.ts | 32 + .../bukkit/org.bukkit.material.Sapling.d.ts | 58 + .../bukkit/org.bukkit.material.Sign.d.ts | 37 + ...material.SimpleAttachableMaterialData.d.ts | 22 + .../bukkit/org.bukkit.material.Skull.d.ts | 29 + .../org.bukkit.material.SmoothBrick.d.ts | 20 + .../bukkit/org.bukkit.material.SpawnEgg.d.ts | 32 + .../bukkit/org.bukkit.material.Stairs.d.ts | 39 + .../bukkit/org.bukkit.material.Step.d.ts | 36 + .../org.bukkit.material.TexturedMaterial.d.ts | 44 + .../bukkit/org.bukkit.material.Torch.d.ts | 25 + .../bukkit/org.bukkit.material.TrapDoor.d.ts | 38 + .../bukkit/org.bukkit.material.Tree.d.ts | 62 + .../bukkit/org.bukkit.material.Tripwire.d.ts | 38 + .../org.bukkit.material.TripwireHook.d.ts | 46 + .../bukkit/org.bukkit.material.Vine.d.ts | 41 + .../bukkit/org.bukkit.material.Wood.d.ts | 50 + .../org.bukkit.material.WoodenStep.d.ts | 46 + .../bukkit/org.bukkit.material.Wool.d.ts | 32 + ...t.material.types.MushroomBlockTexture.d.ts | 62 + ...rg.bukkit.metadata.FixedMetadataValue.d.ts | 19 + ...adata.LazyMetadataValue.CacheStrategy.d.ts | 22 + ...org.bukkit.metadata.LazyMetadataValue.d.ts | 31 + ....metadata.MetadataConversionException.d.ts | 10 + ....metadata.MetadataEvaluationException.d.ts | 10 + .../org.bukkit.metadata.MetadataStore.d.ts | 38 + ...org.bukkit.metadata.MetadataStoreBase.d.ts | 63 + .../org.bukkit.metadata.MetadataValue.d.ts | 66 + ....bukkit.metadata.MetadataValueAdapter.d.ts | 32 + .../org.bukkit.metadata.Metadatable.d.ts | 33 + .../org.bukkit.permissions.Permissible.d.ts | 80 + ...rg.bukkit.permissions.PermissibleBase.d.ts | 40 + .../org.bukkit.permissions.Permission.d.ts | 144 + ...kkit.permissions.PermissionAttachment.d.ts | 74 + ....permissions.PermissionAttachmentInfo.d.ts | 33 + ....bukkit.permissions.PermissionDefault.d.ts | 35 + ...permissions.PermissionRemovedExecutor.d.ts | 16 + ...org.bukkit.permissions.ServerOperator.d.ts | 20 + ...sistence.PersistentDataAdapterContext.d.ts | 15 + ...t.persistence.PersistentDataContainer.d.ts | 69 + ...kkit.persistence.PersistentDataHolder.d.ts | 18 + ...tDataType.PrimitivePersistentDataType.d.ts | 20 + ...bukkit.persistence.PersistentDataType.d.ts | 53 + .../org.bukkit.plugin.AuthorNagException.d.ts | 17 + .../org.bukkit.plugin.EventExecutor.d.ts | 12 + ...t.plugin.IllegalPluginAccessException.d.ts | 22 + ...it.plugin.InvalidDescriptionException.d.ts | 32 + ....bukkit.plugin.InvalidPluginException.d.ts | 32 + .../bukkit/org.bukkit.plugin.Plugin.d.ts | 127 + ...g.bukkit.plugin.PluginAwareness.Flags.d.ts | 18 + .../org.bukkit.plugin.PluginAwareness.d.ts | 10 + .../bukkit/org.bukkit.plugin.PluginBase.d.ts | 18 + ...g.bukkit.plugin.PluginDescriptionFile.d.ts | 557 +++ .../org.bukkit.plugin.PluginLoadOrder.d.ts | 18 + .../org.bukkit.plugin.PluginLoader.d.ts | 46 + .../org.bukkit.plugin.PluginLogger.d.ts | 17 + .../org.bukkit.plugin.PluginManager.d.ts | 196 ++ .../org.bukkit.plugin.RegisteredListener.d.ts | 37 + ...kkit.plugin.RegisteredServiceProvider.d.ts | 22 + .../org.bukkit.plugin.ServicePriority.d.ts | 24 + .../org.bukkit.plugin.ServicesManager.d.ts | 66 + ...org.bukkit.plugin.SimplePluginManager.d.ts | 112 + ...g.bukkit.plugin.SimpleServicesManager.d.ts | 66 + ...bukkit.plugin.TimedRegisteredListener.d.ts | 46 + ...kit.plugin.UnknownDependencyException.d.ts | 32 + .../org.bukkit.plugin.java.JavaPlugin.d.ts | 127 + ...g.bukkit.plugin.java.JavaPluginLoader.d.ts | 29 + ...messaging.ChannelNameTooLongException.d.ts | 16 + ...ssaging.ChannelNotRegisteredException.d.ts | 16 + ...in.messaging.MessageTooLargeException.d.ts | 20 + ...org.bukkit.plugin.messaging.Messenger.d.ts | 134 + ...ugin.messaging.PluginChannelDirection.d.ts | 20 + ...lugin.messaging.PluginMessageListener.d.ts | 18 + ...ing.PluginMessageListenerRegistration.d.ts | 38 + ...ugin.messaging.PluginMessageRecipient.d.ts | 28 + ...in.messaging.ReservedChannelException.d.ts | 16 + ...it.plugin.messaging.StandardMessenger.d.ts | 68 + .../bukkit/org.bukkit.potion.Potion.d.ts | 136 + .../org.bukkit.potion.PotionBrewer.d.ts | 28 + .../bukkit/org.bukkit.potion.PotionData.d.ts | 40 + .../org.bukkit.potion.PotionEffect.d.ts | 78 + .../org.bukkit.potion.PotionEffectType.d.ts | 141 + ...bukkit.potion.PotionEffectTypeWrapper.d.ts | 25 + .../bukkit/org.bukkit.potion.PotionType.d.ts | 77 + ...kit.projectiles.BlockProjectileSource.d.ts | 15 + ...g.bukkit.projectiles.ProjectileSource.d.ts | 21 + .../org.bukkit.scheduler.BukkitRunnable.d.ts | 69 + .../org.bukkit.scheduler.BukkitScheduler.d.ts | 220 ++ .../org.bukkit.scheduler.BukkitTask.d.ts | 35 + .../org.bukkit.scheduler.BukkitWorker.d.ts | 25 + .../org.bukkit.scoreboard.Criterias.d.ts | 18 + .../org.bukkit.scoreboard.DisplaySlot.d.ts | 20 + ...g.bukkit.scoreboard.NameTagVisibility.d.ts | 22 + .../org.bukkit.scoreboard.Objective.d.ts | 76 + .../org.bukkit.scoreboard.RenderType.d.ts | 18 + .../bukkit/org.bukkit.scoreboard.Score.d.ts | 45 + .../org.bukkit.scoreboard.Scoreboard.d.ts | 106 + ...g.bukkit.scoreboard.ScoreboardManager.d.ts | 25 + .../org.bukkit.scoreboard.Team.Option.d.ts | 22 + ...g.bukkit.scoreboard.Team.OptionStatus.d.ts | 24 + .../bukkit/org.bukkit.scoreboard.Team.d.ts | 162 + .../bukkit/org.bukkit.util.BlockIterator.d.ts | 64 + .../bukkit/org.bukkit.util.BlockVector.d.ts | 52 + .../bukkit/org.bukkit.util.BoundingBox.d.ts | 344 ++ .../org.bukkit.util.CachedServerIcon.d.ts | 10 + ...rg.bukkit.util.ChatPaginator.ChatPage.d.ts | 20 + .../bukkit/org.bukkit.util.ChatPaginator.d.ts | 40 + .../bukkit/org.bukkit.util.Consumer.d.ts | 15 + .../bukkit/org.bukkit.util.EulerAngle.d.ts | 67 + .../bukkit/org.bukkit.util.FileUtil.d.ts | 17 + .../org.bukkit.util.NumberConversions.d.ts | 38 + .../org.bukkit.util.RayTraceResult.d.ts | 61 + .../bukkit/org.bukkit.util.StringUtil.d.ts | 25 + .../bukkit/org.bukkit.util.Vector.d.ts | 383 +++ ...ukkit.util.io.BukkitObjectInputStream.d.ts | 24 + ...kkit.util.io.BukkitObjectOutputStream.d.ts | 24 + .../org.bukkit.util.noise.NoiseGenerator.d.ts | 79 + ...org.bukkit.util.noise.OctaveGenerator.d.ts | 101 + ...ukkit.util.noise.PerlinNoiseGenerator.d.ts | 74 + ...kkit.util.noise.PerlinOctaveGenerator.d.ts | 27 + ...kkit.util.noise.SimplexNoiseGenerator.d.ts | 104 + ...kit.util.noise.SimplexOctaveGenerator.d.ts | 51 + ...util.permissions.BroadcastPermissions.d.ts | 14 + ...t.util.permissions.CommandPermissions.d.ts | 14 + ...t.util.permissions.DefaultPermissions.d.ts | 32 + packages/types/dist/typings/jdk/index.d.ts | 1743 ++++++++++ .../java.applet.Applet.AccessibleApplet.d.ts | 22 + .../dist/typings/jdk/java.applet.Applet.d.ts | 288 ++ .../jdk/java.applet.AppletContext.d.ts | 117 + .../typings/jdk/java.applet.AppletStub.d.ts | 58 + .../typings/jdk/java.applet.AudioClip.d.ts | 24 + .../dist/typings/jdk/java.awt.AWTError.d.ts | 14 + .../dist/typings/jdk/java.awt.AWTEvent.d.ts | 103 + .../jdk/java.awt.AWTEventMulticaster.d.ts | 495 +++ .../typings/jdk/java.awt.AWTException.d.ts | 16 + .../typings/jdk/java.awt.AWTKeyStroke.d.ts | 246 ++ .../typings/jdk/java.awt.AWTPermission.d.ts | 23 + .../typings/jdk/java.awt.ActiveEvent.d.ts | 14 + .../dist/typings/jdk/java.awt.Adjustable.d.ts | 97 + .../typings/jdk/java.awt.AlphaComposite.d.ts | 119 + .../typings/jdk/java.awt.BasicStroke.d.ts | 119 + .../typings/jdk/java.awt.BorderLayout.d.ts | 187 + ...a.awt.BufferCapabilities.FlipContents.d.ts | 18 + .../jdk/java.awt.BufferCapabilities.d.ts | 27 + .../java.awt.Button.AccessibleAWTButton.d.ts | 75 + .../dist/typings/jdk/java.awt.Button.d.ts | 142 + .../java.awt.Canvas.AccessibleAWTCanvas.d.ts | 17 + .../dist/typings/jdk/java.awt.Canvas.d.ts | 90 + .../dist/typings/jdk/java.awt.CardLayout.d.ts | 145 + ...va.awt.Checkbox.AccessibleAWTCheckbox.d.ts | 82 + .../dist/typings/jdk/java.awt.Checkbox.d.ts | 191 ++ .../typings/jdk/java.awt.CheckboxGroup.d.ts | 45 + ...enuItem.AccessibleAWTCheckboxMenuItem.d.ts | 71 + .../jdk/java.awt.CheckboxMenuItem.d.ts | 151 + .../java.awt.Choice.AccessibleAWTChoice.d.ts | 42 + .../dist/typings/jdk/java.awt.Choice.d.ts | 228 ++ .../dist/typings/jdk/java.awt.Color.d.ts | 392 +++ ...mponent.AccessibleAWTComponentHandler.d.ts | 22 + ...WTComponent.AccessibleAWTFocusHandler.d.ts | 18 + ....awt.Component.AccessibleAWTComponent.d.ts | 269 ++ ....awt.Component.BaselineResizeBehavior.d.ts | 22 + .../java.awt.Component.BltBufferStrategy.d.ts | 53 + ...java.awt.Component.FlipBufferStrategy.d.ts | 69 + .../dist/typings/jdk/java.awt.Component.d.ts | 2203 ++++++++++++ .../jdk/java.awt.ComponentOrientation.d.ts | 47 + .../dist/typings/jdk/java.awt.Composite.d.ts | 16 + .../jdk/java.awt.CompositeContext.d.ts | 26 + ...TContainer.AccessibleContainerHandler.d.ts | 18 + ....awt.Container.AccessibleAWTContainer.d.ts | 44 + .../dist/typings/jdk/java.awt.Container.d.ts | 877 +++++ ...wt.ContainerOrderFocusTraversalPolicy.d.ts | 83 + .../dist/typings/jdk/java.awt.Cursor.d.ts | 86 + .../java.awt.DefaultFocusTraversalPolicy.d.ts | 25 + .../java.awt.DefaultKeyboardFocusManager.d.ts | 114 + .../typings/jdk/java.awt.Desktop.Action.d.ts | 24 + .../dist/typings/jdk/java.awt.Desktop.d.ts | 90 + .../java.awt.Dialog.AccessibleAWTDialog.d.ts | 22 + .../java.awt.Dialog.ModalExclusionType.d.ts | 20 + .../jdk/java.awt.Dialog.ModalityType.d.ts | 22 + .../dist/typings/jdk/java.awt.Dialog.d.ts | 248 ++ .../dist/typings/jdk/java.awt.Dimension.d.ts | 91 + .../typings/jdk/java.awt.DisplayMode.d.ts | 55 + .../dist/typings/jdk/java.awt.Event.d.ts | 255 ++ .../dist/typings/jdk/java.awt.EventQueue.d.ts | 157 + .../dist/typings/jdk/java.awt.FileDialog.d.ts | 170 + .../dist/typings/jdk/java.awt.FlowLayout.d.ts | 146 + .../jdk/java.awt.FocusTraversalPolicy.d.ts | 57 + .../types/dist/typings/jdk/java.awt.Font.d.ts | 690 ++++ .../jdk/java.awt.FontFormatException.d.ts | 13 + .../typings/jdk/java.awt.FontMetrics.d.ts | 261 ++ .../java.awt.Frame.AccessibleAWTFrame.d.ts | 22 + .../dist/typings/jdk/java.awt.Frame.d.ts | 356 ++ .../typings/jdk/java.awt.GradientPaint.d.ts | 70 + .../dist/typings/jdk/java.awt.Graphics.d.ts | 520 +++ .../dist/typings/jdk/java.awt.Graphics2D.d.ts | 433 +++ .../jdk/java.awt.GraphicsConfigTemplate.d.ts | 34 + .../jdk/java.awt.GraphicsConfiguration.d.ts | 167 + ...awt.GraphicsDevice.WindowTranslucency.d.ts | 20 + .../typings/jdk/java.awt.GraphicsDevice.d.ts | 226 ++ .../jdk/java.awt.GraphicsEnvironment.d.ts | 176 + .../jdk/java.awt.GridBagConstraints.d.ts | 112 + .../typings/jdk/java.awt.GridBagLayout.d.ts | 268 ++ .../jdk/java.awt.GridBagLayoutInfo.d.ts | 8 + .../dist/typings/jdk/java.awt.GridLayout.d.ts | 149 + .../jdk/java.awt.HeadlessException.d.ts | 14 + ...va.awt.IllegalComponentStateException.d.ts | 21 + .../dist/typings/jdk/java.awt.Image.d.ts | 157 + .../jdk/java.awt.ImageCapabilities.d.ts | 29 + .../dist/typings/jdk/java.awt.Insets.d.ts | 54 + .../typings/jdk/java.awt.ItemSelectable.d.ts | 29 + ...wt.JobAttributes.DefaultSelectionType.d.ts | 16 + ...ava.awt.JobAttributes.DestinationType.d.ts | 14 + .../java.awt.JobAttributes.DialogType.d.ts | 16 + ...tributes.MultipleDocumentHandlingType.d.ts | 14 + .../jdk/java.awt.JobAttributes.SidesType.d.ts | 16 + .../typings/jdk/java.awt.JobAttributes.d.ts | 327 ++ .../jdk/java.awt.KeyEventDispatcher.d.ts | 37 + .../jdk/java.awt.KeyEventPostProcessor.d.ts | 38 + .../jdk/java.awt.KeyboardFocusManager.d.ts | 772 +++++ .../java.awt.Label.AccessibleAWTLabel.d.ts | 22 + .../dist/typings/jdk/java.awt.Label.d.ts | 82 + .../typings/jdk/java.awt.LayoutManager.d.ts | 38 + .../typings/jdk/java.awt.LayoutManager2.d.ts | 44 + .../jdk/java.awt.LinearGradientPaint.d.ts | 56 + ...essibleAWTList.AccessibleAWTListChild.d.ts | 230 ++ .../jdk/java.awt.List.AccessibleAWTList.d.ts | 99 + .../types/dist/typings/jdk/java.awt.List.d.ts | 386 +++ .../typings/jdk/java.awt.MediaTracker.d.ts | 219 ++ .../jdk/java.awt.Menu.AccessibleAWTMenu.d.ts | 17 + .../types/dist/typings/jdk/java.awt.Menu.d.ts | 130 + ...java.awt.MenuBar.AccessibleAWTMenuBar.d.ts | 17 + .../dist/typings/jdk/java.awt.MenuBar.d.ts | 97 + ...uComponent.AccessibleAWTMenuComponent.d.ts | 307 ++ .../typings/jdk/java.awt.MenuComponent.d.ts | 109 + .../typings/jdk/java.awt.MenuContainer.d.ts | 14 + ...va.awt.MenuItem.AccessibleAWTMenuItem.d.ts | 74 + .../dist/typings/jdk/java.awt.MenuItem.d.ts | 205 ++ .../typings/jdk/java.awt.MenuShortcut.d.ts | 58 + .../dist/typings/jdk/java.awt.MouseInfo.d.ts | 34 + ....MultipleGradientPaint.ColorSpaceType.d.ts | 18 + ...awt.MultipleGradientPaint.CycleMethod.d.ts | 20 + .../jdk/java.awt.MultipleGradientPaint.d.ts | 47 + .../java.awt.PageAttributes.ColorType.d.ts | 14 + .../java.awt.PageAttributes.MediaType.d.ts | 304 ++ ...geAttributes.OrientationRequestedType.d.ts | 14 + .../java.awt.PageAttributes.OriginType.d.ts | 14 + ...a.awt.PageAttributes.PrintQualityType.d.ts | 16 + .../typings/jdk/java.awt.PageAttributes.d.ts | 218 ++ .../dist/typings/jdk/java.awt.Paint.d.ts | 27 + .../typings/jdk/java.awt.PaintContext.d.ts | 31 + .../java.awt.Panel.AccessibleAWTPanel.d.ts | 17 + .../dist/typings/jdk/java.awt.Panel.d.ts | 34 + .../dist/typings/jdk/java.awt.Point.d.ts | 105 + .../typings/jdk/java.awt.PointerInfo.d.ts | 21 + .../dist/typings/jdk/java.awt.Polygon.d.ts | 161 + ....awt.PopupMenu.AccessibleAWTPopupMenu.d.ts | 17 + .../dist/typings/jdk/java.awt.PopupMenu.d.ts | 49 + .../typings/jdk/java.awt.PrintGraphics.d.ts | 14 + .../dist/typings/jdk/java.awt.PrintJob.d.ts | 47 + .../jdk/java.awt.RadialGradientPaint.d.ts | 107 + .../dist/typings/jdk/java.awt.Rectangle.d.ts | 420 +++ .../jdk/java.awt.RenderingHints.Key.d.ts | 46 + .../typings/jdk/java.awt.RenderingHints.d.ts | 277 ++ .../dist/typings/jdk/java.awt.Robot.d.ts | 121 + ...wt.ScrollPane.AccessibleAWTScrollPane.d.ts | 17 + .../dist/typings/jdk/java.awt.ScrollPane.d.ts | 177 + .../jdk/java.awt.ScrollPaneAdjustable.d.ts | 110 + ....awt.Scrollbar.AccessibleAWTScrollBar.d.ts | 51 + .../dist/typings/jdk/java.awt.Scrollbar.d.ts | 435 +++ .../typings/jdk/java.awt.SecondaryLoop.d.ts | 48 + .../dist/typings/jdk/java.awt.Shape.d.ts | 256 ++ .../typings/jdk/java.awt.SplashScreen.d.ts | 94 + .../dist/typings/jdk/java.awt.Stroke.d.ts | 16 + .../typings/jdk/java.awt.SystemColor.d.ts | 123 + .../dist/typings/jdk/java.awt.SystemTray.d.ts | 139 + ...va.awt.TextArea.AccessibleAWTTextArea.d.ts | 17 + .../dist/typings/jdk/java.awt.TextArea.d.ts | 199 ++ ...tComponent.AccessibleAWTTextComponent.d.ts | 114 + .../typings/jdk/java.awt.TextComponent.d.ts | 264 ++ ....awt.TextField.AccessibleAWTTextField.d.ts | 17 + .../dist/typings/jdk/java.awt.TextField.d.ts | 225 ++ .../typings/jdk/java.awt.TexturePaint.d.ts | 39 + .../dist/typings/jdk/java.awt.Toolkit.d.ts | 824 +++++ .../typings/jdk/java.awt.Transparency.d.ts | 19 + .../jdk/java.awt.TrayIcon.MessageType.d.ts | 22 + .../dist/typings/jdk/java.awt.TrayIcon.d.ts | 220 ++ .../java.awt.Window.AccessibleAWTWindow.d.ts | 22 + .../typings/jdk/java.awt.Window.Type.d.ts | 20 + .../dist/typings/jdk/java.awt.Window.d.ts | 1201 +++++++ .../jdk/java.awt.color.CMMException.d.ts | 15 + .../jdk/java.awt.color.ColorSpace.d.ts | 203 ++ .../jdk/java.awt.color.ICC_ColorSpace.d.ts | 274 ++ .../jdk/java.awt.color.ICC_Profile.d.ts | 378 ++ .../jdk/java.awt.color.ICC_ProfileGray.d.ts | 46 + .../jdk/java.awt.color.ICC_ProfileRGB.d.ts | 74 + .../java.awt.color.ProfileDataException.d.ts | 15 + .../jdk/java.awt.datatransfer.Clipboard.d.ts | 103 + .../java.awt.datatransfer.ClipboardOwner.d.ts | 17 + .../jdk/java.awt.datatransfer.DataFlavor.d.ts | 493 +++ .../java.awt.datatransfer.FlavorEvent.d.ts | 15 + .../java.awt.datatransfer.FlavorListener.d.ts | 27 + .../jdk/java.awt.datatransfer.FlavorMap.d.ts | 28 + .../java.awt.datatransfer.FlavorTable.d.ts | 33 + ...t.datatransfer.MimeTypeParseException.d.ts | 20 + ...java.awt.datatransfer.StringSelection.d.ts | 48 + ...java.awt.datatransfer.SystemFlavorMap.d.ts | 207 ++ .../java.awt.datatransfer.Transferable.d.ts | 29 + ...tatransfer.UnsupportedFlavorException.d.ts | 15 + .../typings/jdk/java.awt.dnd.Autoscroll.d.ts | 28 + .../jdk/java.awt.dnd.DnDConstants.d.ts | 22 + .../jdk/java.awt.dnd.DragGestureEvent.d.ts | 111 + .../jdk/java.awt.dnd.DragGestureListener.d.ts | 20 + .../java.awt.dnd.DragGestureRecognizer.d.ts | 165 + .../typings/jdk/java.awt.dnd.DragSource.d.ts | 218 ++ .../jdk/java.awt.dnd.DragSourceAdapter.d.ts | 83 + .../jdk/java.awt.dnd.DragSourceContext.d.ts | 180 + .../jdk/java.awt.dnd.DragSourceDragEvent.d.ts | 86 + .../jdk/java.awt.dnd.DragSourceDropEvent.d.ts | 57 + .../jdk/java.awt.dnd.DragSourceEvent.d.ts | 55 + .../jdk/java.awt.dnd.DragSourceListener.d.ts | 76 + ...java.awt.dnd.DragSourceMotionListener.d.ts | 15 + ...dnd.DropTarget.DropTargetAutoScroller.d.ts | 35 + .../typings/jdk/java.awt.dnd.DropTarget.d.ts | 246 ++ .../jdk/java.awt.dnd.DropTargetAdapter.d.ts | 39 + ...d.DropTargetContext.TransferableProxy.d.ts | 40 + .../jdk/java.awt.dnd.DropTargetContext.d.ts | 116 + .../jdk/java.awt.dnd.DropTargetDragEvent.d.ts | 84 + .../jdk/java.awt.dnd.DropTargetDropEvent.d.ts | 110 + .../jdk/java.awt.dnd.DropTargetEvent.d.ts | 26 + .../jdk/java.awt.dnd.DropTargetListener.d.ts | 79 + ....awt.dnd.InvalidDnDOperationException.d.ts | 21 + ...va.awt.dnd.MouseDragGestureRecognizer.d.ts | 103 + ...va.awt.dnd.peer.DragSourceContextPeer.d.ts | 32 + ...va.awt.dnd.peer.DropTargetContextPeer.d.ts | 64 + .../jdk/java.awt.dnd.peer.DropTargetPeer.d.ts | 22 + .../jdk/java.awt.event.AWTEventListener.d.ts | 15 + .../java.awt.event.AWTEventListenerProxy.d.ts | 26 + .../jdk/java.awt.event.ActionEvent.d.ts | 90 + .../jdk/java.awt.event.ActionListener.d.ts | 15 + .../jdk/java.awt.event.AdjustmentEvent.d.ts | 76 + .../java.awt.event.AdjustmentListener.d.ts | 15 + .../jdk/java.awt.event.ComponentAdapter.d.ts | 32 + .../jdk/java.awt.event.ComponentEvent.d.ts | 41 + .../jdk/java.awt.event.ComponentListener.d.ts | 30 + .../jdk/java.awt.event.ContainerAdapter.d.ts | 22 + .../jdk/java.awt.event.ContainerEvent.d.ts | 42 + .../jdk/java.awt.event.ContainerListener.d.ts | 20 + .../jdk/java.awt.event.FocusAdapter.d.ts | 22 + .../jdk/java.awt.event.FocusEvent.d.ts | 75 + .../jdk/java.awt.event.FocusListener.d.ts | 20 + ...java.awt.event.HierarchyBoundsAdapter.d.ts | 22 + ...ava.awt.event.HierarchyBoundsListener.d.ts | 20 + .../jdk/java.awt.event.HierarchyEvent.d.ts | 81 + .../jdk/java.awt.event.HierarchyListener.d.ts | 16 + .../jdk/java.awt.event.InputEvent.d.ts | 151 + .../jdk/java.awt.event.InputMethodEvent.d.ts | 135 + .../java.awt.event.InputMethodListener.d.ts | 20 + .../jdk/java.awt.event.InvocationEvent.d.ts | 128 + .../typings/jdk/java.awt.event.ItemEvent.d.ts | 49 + .../jdk/java.awt.event.ItemListener.d.ts | 17 + .../jdk/java.awt.event.KeyAdapter.d.ts | 28 + .../typings/jdk/java.awt.event.KeyEvent.d.ts | 523 +++ .../jdk/java.awt.event.KeyListener.d.ts | 31 + .../jdk/java.awt.event.MouseAdapter.d.ts | 52 + .../jdk/java.awt.event.MouseEvent.d.ts | 242 ++ .../jdk/java.awt.event.MouseListener.d.ts | 36 + .../java.awt.event.MouseMotionAdapter.d.ts | 27 + .../java.awt.event.MouseMotionListener.d.ts | 29 + .../jdk/java.awt.event.MouseWheelEvent.d.ts | 127 + .../java.awt.event.MouseWheelListener.d.ts | 15 + .../jdk/java.awt.event.PaintEvent.d.ts | 41 + .../typings/jdk/java.awt.event.TextEvent.d.ts | 30 + .../jdk/java.awt.event.TextListener.d.ts | 17 + .../jdk/java.awt.event.WindowAdapter.d.ts | 67 + .../jdk/java.awt.event.WindowEvent.d.ts | 135 + .../java.awt.event.WindowFocusListener.d.ts | 24 + .../jdk/java.awt.event.WindowListener.d.ts | 61 + .../java.awt.event.WindowStateListener.d.ts | 15 + .../jdk/java.awt.font.FontRenderContext.d.ts | 107 + .../java.awt.font.GlyphJustificationInfo.d.ts | 42 + .../jdk/java.awt.font.GlyphMetrics.d.ts | 101 + .../jdk/java.awt.font.GlyphVector.d.ts | 260 ++ .../jdk/java.awt.font.GraphicAttribute.d.ts | 91 + .../java.awt.font.ImageGraphicAttribute.d.ts | 77 + .../typings/jdk/java.awt.font.LayoutPath.d.ts | 30 + .../jdk/java.awt.font.LineBreakMeasurer.d.ts | 66 + .../jdk/java.awt.font.LineMetrics.d.ts | 97 + .../jdk/java.awt.font.MultipleMaster.d.ts | 55 + .../java.awt.font.NumericShaper.Range.d.ts | 86 + .../jdk/java.awt.font.NumericShaper.d.ts | 181 + .../typings/jdk/java.awt.font.OpenType.d.ts | 164 + .../java.awt.font.ShapeGraphicAttribute.d.ts | 84 + .../jdk/java.awt.font.TextAttribute.d.ts | 138 + .../jdk/java.awt.font.TextHitInfo.d.ts | 91 + .../java.awt.font.TextLayout.CaretPolicy.d.ts | 23 + .../typings/jdk/java.awt.font.TextLayout.d.ts | 488 +++ .../jdk/java.awt.font.TextMeasurer.d.ts | 62 + .../jdk/java.awt.font.TransformAttribute.d.ts | 41 + .../jdk/java.awt.geom.AffineTransform.d.ts | 858 +++++ .../jdk/java.awt.geom.Arc2D.Double.d.ts | 116 + .../jdk/java.awt.geom.Arc2D.Float.d.ts | 116 + .../dist/typings/jdk/java.awt.geom.Arc2D.d.ts | 240 ++ .../dist/typings/jdk/java.awt.geom.Area.d.ts | 252 ++ .../java.awt.geom.CubicCurve2D.Double.d.ts | 110 + .../jdk/java.awt.geom.CubicCurve2D.Float.d.ts | 116 + .../jdk/java.awt.geom.CubicCurve2D.d.ts | 282 ++ .../jdk/java.awt.geom.Dimension2D.d.ts | 53 + .../jdk/java.awt.geom.Ellipse2D.Double.d.ts | 67 + .../jdk/java.awt.geom.Ellipse2D.Float.d.ts | 73 + .../typings/jdk/java.awt.geom.Ellipse2D.d.ts | 59 + .../java.awt.geom.FlatteningPathIterator.d.ts | 85 + .../jdk/java.awt.geom.GeneralPath.d.ts | 41 + ...va.awt.geom.IllegalPathStateException.d.ts | 22 + .../jdk/java.awt.geom.Line2D.Double.d.ts | 77 + .../jdk/java.awt.geom.Line2D.Float.d.ts | 82 + .../typings/jdk/java.awt.geom.Line2D.d.ts | 319 ++ ....geom.NoninvertibleTransformException.d.ts | 17 + .../jdk/java.awt.geom.Path2D.Double.d.ts | 104 + .../jdk/java.awt.geom.Path2D.Float.d.ts | 153 + .../typings/jdk/java.awt.geom.Path2D.d.ts | 339 ++ .../jdk/java.awt.geom.PathIterator.d.ts | 72 + .../jdk/java.awt.geom.Point2D.Double.d.ts | 49 + .../jdk/java.awt.geom.Point2D.Float.d.ts | 55 + .../typings/jdk/java.awt.geom.Point2D.d.ts | 96 + .../jdk/java.awt.geom.QuadCurve2D.Double.d.ts | 91 + .../jdk/java.awt.geom.QuadCurve2D.Float.d.ts | 97 + .../jdk/java.awt.geom.QuadCurve2D.d.ts | 280 ++ .../jdk/java.awt.geom.Rectangle2D.Double.d.ts | 93 + .../jdk/java.awt.geom.Rectangle2D.Float.d.ts | 99 + .../jdk/java.awt.geom.Rectangle2D.d.ts | 210 ++ .../jdk/java.awt.geom.RectangularShape.d.ts | 194 ++ ...java.awt.geom.RoundRectangle2D.Double.d.ts | 87 + .../java.awt.geom.RoundRectangle2D.Float.d.ts | 94 + .../jdk/java.awt.geom.RoundRectangle2D.d.ts | 88 + .../typings/jdk/java.awt.im.InputContext.d.ts | 189 + .../jdk/java.awt.im.InputMethodHighlight.d.ts | 60 + .../jdk/java.awt.im.InputMethodRequests.d.ts | 117 + .../typings/jdk/java.awt.im.InputSubset.d.ts | 28 + .../jdk/java.awt.im.spi.InputMethod.d.ts | 304 ++ .../java.awt.im.spi.InputMethodContext.d.ts | 78 + ...java.awt.im.spi.InputMethodDescriptor.d.ts | 80 + .../jdk/java.awt.image.AffineTransformOp.d.ts | 139 + ...va.awt.image.AreaAveragingScaleFilter.d.ts | 63 + .../jdk/java.awt.image.BandCombineOp.d.ts | 76 + .../jdk/java.awt.image.BandedSampleModel.d.ts | 214 ++ .../jdk/java.awt.image.BufferStrategy.d.ts | 61 + .../jdk/java.awt.image.BufferedImage.d.ts | 448 +++ .../java.awt.image.BufferedImageFilter.d.ts | 96 + .../jdk/java.awt.image.BufferedImageOp.d.ts | 54 + .../jdk/java.awt.image.ByteLookupTable.d.ts | 50 + .../jdk/java.awt.image.ColorConvertOp.d.ts | 136 + .../jdk/java.awt.image.ColorModel.d.ts | 711 ++++ .../java.awt.image.ComponentColorModel.d.ts | 419 +++ .../java.awt.image.ComponentSampleModel.d.ts | 297 ++ .../jdk/java.awt.image.ConvolveOp.d.ts | 98 + .../jdk/java.awt.image.CropImageFilter.d.ts | 73 + .../jdk/java.awt.image.DataBuffer.d.ts | 168 + .../jdk/java.awt.image.DataBufferByte.d.ts | 132 + .../jdk/java.awt.image.DataBufferDouble.d.ts | 182 + .../jdk/java.awt.image.DataBufferFloat.d.ts | 183 + .../jdk/java.awt.image.DataBufferInt.d.ts | 132 + .../jdk/java.awt.image.DataBufferShort.d.ts | 132 + .../jdk/java.awt.image.DataBufferUShort.d.ts | 132 + .../jdk/java.awt.image.DirectColorModel.d.ts | 388 +++ .../java.awt.image.FilteredImageSource.d.ts | 95 + .../jdk/java.awt.image.ImageConsumer.d.ts | 106 + .../jdk/java.awt.image.ImageFilter.d.ts | 154 + .../jdk/java.awt.image.ImageObserver.d.ts | 53 + .../jdk/java.awt.image.ImageProducer.d.ts | 71 + .../java.awt.image.ImagingOpException.d.ts | 16 + .../jdk/java.awt.image.IndexColorModel.d.ts | 444 +++ .../typings/jdk/java.awt.image.Kernel.d.ts | 52 + .../typings/jdk/java.awt.image.LookupOp.d.ts | 90 + .../jdk/java.awt.image.LookupTable.d.ts | 35 + .../jdk/java.awt.image.MemoryImageSource.d.ts | 156 + ...awt.image.MultiPixelPackedSampleModel.d.ts | 220 ++ .../jdk/java.awt.image.PackedColorModel.d.ts | 103 + .../jdk/java.awt.image.PixelGrabber.d.ts | 223 ++ ...awt.image.PixelInterleavedSampleModel.d.ts | 39 + .../jdk/java.awt.image.RGBImageFilter.d.ts | 99 + .../typings/jdk/java.awt.image.Raster.d.ts | 501 +++ .../java.awt.image.RasterFormatException.d.ts | 16 + .../typings/jdk/java.awt.image.RasterOp.d.ts | 49 + .../jdk/java.awt.image.RenderedImage.d.ts | 147 + .../java.awt.image.ReplicateScaleFilter.d.ts | 86 + .../typings/jdk/java.awt.image.RescaleOp.d.ts | 110 + .../jdk/java.awt.image.SampleModel.d.ts | 424 +++ .../jdk/java.awt.image.ShortLookupTable.d.ts | 50 + ...wt.image.SinglePixelPackedSampleModel.d.ts | 232 ++ .../jdk/java.awt.image.TileObserver.d.ts | 16 + .../jdk/java.awt.image.VolatileImage.d.ts | 119 + .../jdk/java.awt.image.WritableRaster.d.ts | 283 ++ .../java.awt.image.WritableRenderedImage.d.ts | 68 + ...erable.ContextualRenderedImageFactory.d.ts | 65 + ...a.awt.image.renderable.ParameterBlock.d.ts | 280 ++ ...va.awt.image.renderable.RenderContext.d.ts | 120 + ....awt.image.renderable.RenderableImage.d.ts | 109 + ...wt.image.renderable.RenderableImageOp.d.ts | 149 + ...ge.renderable.RenderableImageProducer.d.ts | 61 + ...image.renderable.RenderedImageFactory.d.ts | 34 + .../typings/jdk/java.awt.peer.ButtonPeer.d.ts | 16 + .../typings/jdk/java.awt.peer.CanvasPeer.d.ts | 17 + .../java.awt.peer.CheckboxMenuItemPeer.d.ts | 16 + .../jdk/java.awt.peer.CheckboxPeer.d.ts | 29 + .../typings/jdk/java.awt.peer.ChoicePeer.d.ts | 31 + .../jdk/java.awt.peer.ComponentPeer.d.ts | 254 ++ .../jdk/java.awt.peer.ContainerPeer.d.ts | 39 + .../jdk/java.awt.peer.DesktopPeer.d.ts | 47 + .../typings/jdk/java.awt.peer.DialogPeer.d.ts | 25 + .../jdk/java.awt.peer.FileDialogPeer.d.ts | 25 + .../typings/jdk/java.awt.peer.FontPeer.d.ts | 10 + .../typings/jdk/java.awt.peer.FramePeer.d.ts | 59 + ...ava.awt.peer.KeyboardFocusManagerPeer.d.ts | 35 + .../typings/jdk/java.awt.peer.LabelPeer.d.ts | 20 + .../jdk/java.awt.peer.LightweightPeer.d.ts | 10 + .../typings/jdk/java.awt.peer.ListPeer.d.ts | 64 + .../jdk/java.awt.peer.MenuBarPeer.d.ts | 25 + .../jdk/java.awt.peer.MenuComponentPeer.d.ts | 20 + .../jdk/java.awt.peer.MenuItemPeer.d.ts | 20 + .../typings/jdk/java.awt.peer.MenuPeer.d.ts | 25 + .../jdk/java.awt.peer.MouseInfoPeer.d.ts | 36 + .../typings/jdk/java.awt.peer.PanelPeer.d.ts | 10 + .../jdk/java.awt.peer.PopupMenuPeer.d.ts | 15 + .../typings/jdk/java.awt.peer.RobotPeer.d.ts | 55 + .../jdk/java.awt.peer.ScrollPanePeer.d.ts | 40 + .../jdk/java.awt.peer.ScrollbarPeer.d.ts | 25 + .../jdk/java.awt.peer.SystemTrayPeer.d.ts | 15 + .../jdk/java.awt.peer.TextAreaPeer.d.ts | 32 + .../jdk/java.awt.peer.TextComponentPeer.d.ts | 55 + .../jdk/java.awt.peer.TextFieldPeer.d.ts | 27 + .../jdk/java.awt.peer.TrayIconPeer.d.ts | 36 + .../typings/jdk/java.awt.peer.WindowPeer.d.ts | 67 + .../dist/typings/jdk/java.awt.print.Book.d.ts | 50 + .../jdk/java.awt.print.PageFormat.d.ts | 116 + .../typings/jdk/java.awt.print.Pageable.d.ts | 34 + .../typings/jdk/java.awt.print.Paper.d.ts | 73 + .../typings/jdk/java.awt.print.Printable.d.ts | 32 + .../java.awt.print.PrinterAbortException.d.ts | 22 + .../jdk/java.awt.print.PrinterException.d.ts | 22 + .../jdk/java.awt.print.PrinterGraphics.d.ts | 16 + .../java.awt.print.PrinterIOException.d.ts | 32 + .../jdk/java.awt.print.PrinterJob.d.ts | 309 ++ .../jdk/java.beans.AppletInitializer.d.ts | 40 + .../jdk/java.beans.BeanDescriptor.d.ts | 28 + .../dist/typings/jdk/java.beans.BeanInfo.d.ts | 83 + .../dist/typings/jdk/java.beans.Beans.d.ts | 117 + .../jdk/java.beans.ConstructorProperties.d.ts | 10 + .../typings/jdk/java.beans.Customizer.d.ts | 27 + ...java.beans.DefaultPersistenceDelegate.d.ts | 89 + .../typings/jdk/java.beans.DesignMode.d.ts | 33 + .../dist/typings/jdk/java.beans.Encoder.d.ts | 163 + .../typings/jdk/java.beans.EventHandler.d.ts | 180 + .../jdk/java.beans.EventSetDescriptor.d.ts | 102 + .../jdk/java.beans.ExceptionListener.d.ts | 14 + .../typings/jdk/java.beans.Expression.d.ts | 84 + .../jdk/java.beans.FeatureDescriptor.d.ts | 101 + ...java.beans.IndexedPropertyChangeEvent.d.ts | 18 + .../java.beans.IndexedPropertyDescriptor.d.ts | 77 + .../java.beans.IntrospectionException.d.ts | 14 + .../typings/jdk/java.beans.Introspector.d.ts | 114 + .../jdk/java.beans.MethodDescriptor.d.ts | 32 + .../jdk/java.beans.ParameterDescriptor.d.ts | 13 + .../jdk/java.beans.PersistenceDelegate.d.ts | 94 + .../jdk/java.beans.PropertyChangeEvent.d.ts | 47 + .../java.beans.PropertyChangeListener.d.ts | 13 + ...ava.beans.PropertyChangeListenerProxy.d.ts | 24 + .../jdk/java.beans.PropertyChangeSupport.d.ts | 179 + .../jdk/java.beans.PropertyDescriptor.d.ts | 124 + .../jdk/java.beans.PropertyEditor.d.ts | 123 + .../jdk/java.beans.PropertyEditorManager.d.ts | 41 + .../jdk/java.beans.PropertyEditorSupport.d.ts | 141 + .../jdk/java.beans.PropertyVetoException.d.ts | 19 + .../jdk/java.beans.SimpleBeanInfo.d.ts | 68 + .../typings/jdk/java.beans.Statement.d.ts | 80 + .../typings/jdk/java.beans.Transient.d.ts | 14 + .../java.beans.VetoableChangeListener.d.ts | 13 + ...ava.beans.VetoableChangeListenerProxy.d.ts | 24 + .../jdk/java.beans.VetoableChangeSupport.d.ts | 167 + .../typings/jdk/java.beans.Visibility.d.ts | 28 + .../typings/jdk/java.beans.XMLDecoder.d.ts | 88 + .../typings/jdk/java.beans.XMLEncoder.d.ts | 76 + .../java.beans.beancontext.BeanContext.d.ts | 53 + ...va.beans.beancontext.BeanContextChild.d.ts | 61 + ...ontext.BeanContextChildComponentProxy.d.ts | 16 + ...s.beancontext.BeanContextChildSupport.d.ts | 153 + ...beancontext.BeanContextContainerProxy.d.ts | 16 + ...va.beans.beancontext.BeanContextEvent.d.ts | 38 + ...eancontext.BeanContextMembershipEvent.d.ts | 42 + ...context.BeanContextMembershipListener.d.ts | 23 + ...va.beans.beancontext.BeanContextProxy.d.ts | 16 + ...text.BeanContextServiceAvailableEvent.d.ts | 32 + ...eancontext.BeanContextServiceProvider.d.ts | 36 + ...xt.BeanContextServiceProviderBeanInfo.d.ts | 17 + ...ontext.BeanContextServiceRevokedEvent.d.ts | 39 + ...ext.BeanContextServiceRevokedListener.d.ts | 16 + ...beans.beancontext.BeanContextServices.d.ts | 87 + ...ancontext.BeanContextServicesListener.d.ts | 16 + ....BeanContextServicesSupport.BCSSChild.d.ts | 12 + ...vicesSupport.BCSSProxyServiceProvider.d.ts | 20 + ...xtServicesSupport.BCSSServiceProvider.d.ts | 19 + ...eancontext.BeanContextServicesSupport.d.ts | 214 ++ ...ancontext.BeanContextSupport.BCSChild.d.ts | 12 + ...ontext.BeanContextSupport.BCSIterator.d.ts | 18 + ....beans.beancontext.BeanContextSupport.d.ts | 403 +++ .../jdk/java.io.BufferedInputStream.d.ts | 121 + .../jdk/java.io.BufferedOutputStream.d.ts | 48 + .../typings/jdk/java.io.BufferedReader.d.ts | 115 + .../typings/jdk/java.io.BufferedWriter.d.ts | 60 + .../jdk/java.io.ByteArrayInputStream.d.ts | 125 + .../jdk/java.io.ByteArrayOutputStream.d.ts | 106 + .../typings/jdk/java.io.CharArrayReader.d.ts | 80 + .../typings/jdk/java.io.CharArrayWriter.d.ts | 108 + .../jdk/java.io.CharConversionException.d.ts | 18 + .../dist/typings/jdk/java.io.Closeable.d.ts | 20 + .../dist/typings/jdk/java.io.Console.d.ts | 88 + .../dist/typings/jdk/java.io.DataInput.d.ts | 366 ++ .../typings/jdk/java.io.DataInputStream.d.ts | 226 ++ .../dist/typings/jdk/java.io.DataOutput.d.ts | 268 ++ .../typings/jdk/java.io.DataOutputStream.d.ts | 152 + .../typings/jdk/java.io.EOFException.d.ts | 22 + .../typings/jdk/java.io.Externalizable.d.ts | 25 + .../types/dist/typings/jdk/java.io.File.d.ts | 727 ++++ .../typings/jdk/java.io.FileDescriptor.d.ts | 47 + .../dist/typings/jdk/java.io.FileFilter.d.ts | 14 + .../typings/jdk/java.io.FileInputStream.d.ts | 153 + .../jdk/java.io.FileNotFoundException.d.ts | 23 + .../typings/jdk/java.io.FileOutputStream.d.ts | 142 + .../typings/jdk/java.io.FilePermission.d.ts | 91 + .../dist/typings/jdk/java.io.FileReader.d.ts | 26 + .../dist/typings/jdk/java.io.FileWriter.d.ts | 36 + .../typings/jdk/java.io.FilenameFilter.d.ts | 13 + .../jdk/java.io.FilterInputStream.d.ts | 127 + .../jdk/java.io.FilterOutputStream.d.ts | 76 + .../typings/jdk/java.io.FilterReader.d.ts | 52 + .../typings/jdk/java.io.FilterWriter.d.ts | 37 + .../dist/typings/jdk/java.io.Flushable.d.ts | 14 + .../dist/typings/jdk/java.io.IOError.d.ts | 16 + .../dist/typings/jdk/java.io.IOException.d.ts | 37 + .../dist/typings/jdk/java.io.InputStream.d.ts | 188 + .../jdk/java.io.InputStreamReader.d.ts | 60 + .../jdk/java.io.InterruptedIOException.d.ts | 25 + .../jdk/java.io.InvalidClassException.d.ts | 25 + .../jdk/java.io.InvalidObjectException.d.ts | 13 + .../jdk/java.io.LineNumberInputStream.d.ts | 115 + .../typings/jdk/java.io.LineNumberReader.d.ts | 67 + .../jdk/java.io.NotActiveException.d.ts | 18 + .../jdk/java.io.NotSerializableException.d.ts | 18 + .../dist/typings/jdk/java.io.ObjectInput.d.ts | 50 + .../java.io.ObjectInputStream.GetField.d.ts | 28 + .../jdk/java.io.ObjectInputStream.d.ts | 346 ++ .../jdk/java.io.ObjectInputValidation.d.ts | 13 + .../typings/jdk/java.io.ObjectOutput.d.ts | 45 + .../java.io.ObjectOutputStream.PutField.d.ts | 24 + .../jdk/java.io.ObjectOutputStream.d.ts | 324 ++ .../jdk/java.io.ObjectStreamClass.d.ts | 60 + .../jdk/java.io.ObjectStreamConstants.d.ts | 66 + .../jdk/java.io.ObjectStreamException.d.ts | 18 + .../jdk/java.io.ObjectStreamField.d.ts | 96 + .../jdk/java.io.OptionalDataException.d.ts | 12 + .../typings/jdk/java.io.OutputStream.d.ts | 81 + .../jdk/java.io.OutputStreamWriter.d.ts | 62 + .../typings/jdk/java.io.PipedInputStream.d.ts | 114 + .../jdk/java.io.PipedOutputStream.d.ts | 68 + .../dist/typings/jdk/java.io.PipedReader.d.ts | 93 + .../dist/typings/jdk/java.io.PipedWriter.d.ts | 74 + .../dist/typings/jdk/java.io.PrintStream.d.ts | 347 ++ .../dist/typings/jdk/java.io.PrintWriter.d.ts | 357 ++ .../jdk/java.io.PushbackInputStream.d.ts | 136 + .../typings/jdk/java.io.PushbackReader.d.ts | 89 + .../typings/jdk/java.io.RandomAccessFile.d.ts | 504 +++ .../dist/typings/jdk/java.io.Reader.d.ts | 87 + .../jdk/java.io.SequenceInputStream.d.ts | 90 + .../typings/jdk/java.io.Serializable.d.ts | 8 + .../jdk/java.io.SerializablePermission.d.ts | 22 + .../jdk/java.io.StreamCorruptedException.d.ts | 18 + .../typings/jdk/java.io.StreamTokenizer.d.ts | 233 ++ .../jdk/java.io.StringBufferInputStream.d.ts | 61 + .../typings/jdk/java.io.StringReader.d.ts | 67 + .../typings/jdk/java.io.StringWriter.d.ts | 95 + .../jdk/java.io.SyncFailedException.d.ts | 14 + .../jdk/java.io.UTFDataFormatException.d.ts | 23 + .../jdk/java.io.UncheckedIOException.d.ts | 23 + .../java.io.UnsupportedEncodingException.d.ts | 18 + .../jdk/java.io.WriteAbortedException.d.ts | 27 + .../dist/typings/jdk/java.io.Writer.d.ts | 101 + .../jdk/java.lang.AbstractMethodError.d.ts | 19 + .../typings/jdk/java.lang.Appendable.d.ts | 33 + .../jdk/java.lang.ArithmeticException.d.ts | 20 + ...a.lang.ArrayIndexOutOfBoundsException.d.ts | 26 + .../jdk/java.lang.ArrayStoreException.d.ts | 19 + .../typings/jdk/java.lang.AssertionError.d.ts | 81 + .../typings/jdk/java.lang.AutoCloseable.d.ts | 46 + .../dist/typings/jdk/java.lang.Boolean.d.ts | 153 + .../jdk/java.lang.BootstrapMethodError.d.ts | 31 + .../dist/typings/jdk/java.lang.Byte.d.ts | 262 ++ .../typings/jdk/java.lang.CharSequence.d.ts | 64 + .../jdk/java.lang.Character.Subset.d.ts | 38 + .../jdk/java.lang.Character.UnicodeBlock.d.ts | 501 +++ .../java.lang.Character.UnicodeScript.d.ts | 242 ++ .../dist/typings/jdk/java.lang.Character.d.ts | 1509 ++++++++ .../dist/typings/jdk/java.lang.Class.d.ts | 454 +++ .../jdk/java.lang.ClassCastException.d.ts | 19 + .../jdk/java.lang.ClassCircularityError.d.ts | 19 + .../jdk/java.lang.ClassFormatError.d.ts | 19 + .../typings/jdk/java.lang.ClassLoader.d.ts | 223 ++ .../jdk/java.lang.ClassNotFoundException.d.ts | 42 + .../typings/jdk/java.lang.ClassValue.d.ts | 103 + .../java.lang.CloneNotSupportedException.d.ts | 20 + .../dist/typings/jdk/java.lang.Cloneable.d.ts | 8 + .../typings/jdk/java.lang.Comparable.d.ts | 36 + .../dist/typings/jdk/java.lang.Compiler.d.ts | 39 + .../typings/jdk/java.lang.Deprecated.d.ts | 8 + .../dist/typings/jdk/java.lang.Double.d.ts | 607 ++++ .../dist/typings/jdk/java.lang.Enum.d.ts | 103 + ....lang.EnumConstantNotPresentException.d.ts | 24 + .../dist/typings/jdk/java.lang.Error.d.ts | 46 + .../dist/typings/jdk/java.lang.Exception.d.ts | 47 + ...java.lang.ExceptionInInitializerError.d.ts | 48 + .../dist/typings/jdk/java.lang.Float.d.ts | 564 +++ .../jdk/java.lang.FunctionalInterface.d.ts | 8 + .../jdk/java.lang.IllegalAccessError.d.ts | 19 + .../jdk/java.lang.IllegalAccessException.d.ts | 19 + .../java.lang.IllegalArgumentException.d.ts | 39 + ...ava.lang.IllegalMonitorStateException.d.ts | 20 + .../jdk/java.lang.IllegalStateException.d.ts | 40 + ...java.lang.IllegalThreadStateException.d.ts | 20 + ...ava.lang.IncompatibleClassChangeError.d.ts | 20 + .../java.lang.IndexOutOfBoundsException.d.ts | 20 + .../jdk/java.lang.InheritableThreadLocal.d.ts | 21 + .../jdk/java.lang.InstantiationError.d.ts | 20 + .../jdk/java.lang.InstantiationException.d.ts | 20 + .../dist/typings/jdk/java.lang.Integer.d.ts | 663 ++++ .../typings/jdk/java.lang.InternalError.d.ts | 35 + .../jdk/java.lang.InterruptedException.d.ts | 19 + .../dist/typings/jdk/java.lang.Iterable.d.ts | 29 + .../typings/jdk/java.lang.LinkageError.d.ts | 25 + .../dist/typings/jdk/java.lang.Long.d.ts | 676 ++++ .../dist/typings/jdk/java.lang.Math.d.ts | 1146 +++++++ .../java.lang.NegativeArraySizeException.d.ts | 20 + .../jdk/java.lang.NoClassDefFoundError.d.ts | 19 + .../jdk/java.lang.NoSuchFieldError.d.ts | 19 + .../jdk/java.lang.NoSuchFieldException.d.ts | 18 + .../jdk/java.lang.NoSuchMethodError.d.ts | 19 + .../jdk/java.lang.NoSuchMethodException.d.ts | 18 + .../jdk/java.lang.NullPointerException.d.ts | 19 + .../dist/typings/jdk/java.lang.Number.d.ts | 50 + .../jdk/java.lang.NumberFormatException.d.ts | 19 + .../dist/typings/jdk/java.lang.Object.d.ts | 133 + .../jdk/java.lang.OutOfMemoryError.d.ts | 19 + .../dist/typings/jdk/java.lang.Override.d.ts | 8 + .../dist/typings/jdk/java.lang.Package.d.ts | 137 + .../dist/typings/jdk/java.lang.Process.d.ts | 119 + ...ava.lang.ProcessBuilder.Redirect.Type.d.ts | 26 + .../java.lang.ProcessBuilder.Redirect.d.ts | 76 + .../typings/jdk/java.lang.ProcessBuilder.d.ts | 307 ++ .../dist/typings/jdk/java.lang.Readable.d.ts | 16 + ...ava.lang.ReflectiveOperationException.d.ts | 38 + .../dist/typings/jdk/java.lang.Runnable.d.ts | 19 + .../dist/typings/jdk/java.lang.Runtime.d.ts | 414 +++ .../jdk/java.lang.RuntimeException.d.ts | 46 + .../jdk/java.lang.RuntimePermission.d.ts | 19 + .../typings/jdk/java.lang.SafeVarargs.d.ts | 8 + .../jdk/java.lang.SecurityException.d.ts | 33 + .../jdk/java.lang.SecurityManager.d.ts | 751 ++++ .../dist/typings/jdk/java.lang.Short.d.ts | 270 ++ .../jdk/java.lang.StackOverflowError.d.ts | 19 + .../jdk/java.lang.StackTraceElement.d.ts | 60 + .../typings/jdk/java.lang.StrictMath.d.ts | 1018 ++++++ .../dist/typings/jdk/java.lang.String.d.ts | 447 +++ .../typings/jdk/java.lang.StringBuffer.d.ts | 309 ++ .../typings/jdk/java.lang.StringBuilder.d.ts | 309 ++ ....lang.StringIndexOutOfBoundsException.d.ts | 26 + .../jdk/java.lang.SuppressWarnings.d.ts | 24 + .../dist/typings/jdk/java.lang.System.d.ts | 211 ++ .../typings/jdk/java.lang.Thread.State.d.ts | 26 + ....lang.Thread.UncaughtExceptionHandler.d.ts | 15 + .../dist/typings/jdk/java.lang.Thread.d.ts | 321 ++ .../typings/jdk/java.lang.ThreadDeath.d.ts | 10 + .../typings/jdk/java.lang.ThreadGroup.d.ts | 176 + .../typings/jdk/java.lang.ThreadLocal.d.ts | 63 + .../dist/typings/jdk/java.lang.Throwable.d.ts | 138 + .../java.lang.TypeNotPresentException.d.ts | 19 + .../typings/jdk/java.lang.UnknownError.d.ts | 19 + .../jdk/java.lang.UnsatisfiedLinkError.d.ts | 19 + ...ava.lang.UnsupportedClassVersionError.d.ts | 20 + ...va.lang.UnsupportedOperationException.d.ts | 38 + .../typings/jdk/java.lang.VerifyError.d.ts | 18 + .../jdk/java.lang.VirtualMachineError.d.ts | 35 + .../dist/typings/jdk/java.lang.Void.d.ts | 10 + .../jdk/java.lang.annotation.Annotation.d.ts | 85 + ...lang.annotation.AnnotationFormatError.d.ts | 32 + ...ation.AnnotationTypeMismatchException.d.ts | 28 + .../jdk/java.lang.annotation.Documented.d.ts | 10 + .../jdk/java.lang.annotation.ElementType.d.ts | 34 + ...otation.IncompleteAnnotationException.d.ts | 27 + .../jdk/java.lang.annotation.Inherited.d.ts | 10 + .../jdk/java.lang.annotation.Native.d.ts | 10 + .../jdk/java.lang.annotation.Repeatable.d.ts | 16 + .../jdk/java.lang.annotation.Retention.d.ts | 15 + .../java.lang.annotation.RetentionPolicy.d.ts | 20 + .../jdk/java.lang.annotation.Target.d.ts | 16 + .../java.lang.instrument.ClassDefinition.d.ts | 26 + ....lang.instrument.ClassFileTransformer.d.ts | 117 + ...nstrument.IllegalClassFormatException.d.ts | 22 + .../java.lang.instrument.Instrumentation.d.ts | 424 +++ ...instrument.UnmodifiableClassException.d.ts | 22 + .../jdk/java.lang.invoke.CallSite.d.ts | 33 + .../java.lang.invoke.ConstantCallSite.d.ts | 47 + ...lang.invoke.LambdaConversionException.d.ts | 36 + .../java.lang.invoke.LambdaMetafactory.d.ts | 122 + .../jdk/java.lang.invoke.MethodHandle.d.ts | 104 + .../java.lang.invoke.MethodHandleInfo.d.ts | 78 + .../java.lang.invoke.MethodHandleProxies.d.ts | 103 + ...java.lang.invoke.MethodHandles.Lookup.d.ts | 170 + .../jdk/java.lang.invoke.MethodHandles.d.ts | 206 ++ .../jdk/java.lang.invoke.MethodType.d.ts | 210 ++ .../jdk/java.lang.invoke.MutableCallSite.d.ts | 40 + .../java.lang.invoke.SerializedLambda.d.ts | 80 + .../jdk/java.lang.invoke.SwitchPoint.d.ts | 84 + .../java.lang.invoke.VolatileCallSite.d.ts | 36 + ....lang.invoke.WrongMethodTypeException.d.ts | 20 + ...java.lang.management.BufferPoolMXBean.d.ts | 30 + ...va.lang.management.ClassLoadingMXBean.d.ts | 39 + ...ava.lang.management.CompilationMXBean.d.ts | 29 + ...ang.management.GarbageCollectorMXBean.d.ts | 22 + .../jdk/java.lang.management.LockInfo.d.ts | 59 + ...ava.lang.management.ManagementFactory.d.ts | 171 + ....lang.management.ManagementPermission.d.ts | 22 + .../java.lang.management.MemoryMXBean.d.ts | 44 + ...a.lang.management.MemoryManagerMXBean.d.ts | 28 + ...ang.management.MemoryNotificationInfo.d.ts | 50 + ...java.lang.management.MemoryPoolMXBean.d.ts | 127 + .../jdk/java.lang.management.MemoryType.d.ts | 23 + .../jdk/java.lang.management.MemoryUsage.d.ts | 67 + .../jdk/java.lang.management.MonitorInfo.d.ts | 33 + ...lang.management.OperatingSystemMXBean.d.ts | 54 + ...lang.management.PlatformLoggingMXBean.d.ts | 40 + ...lang.management.PlatformManagedObject.d.ts | 15 + .../java.lang.management.RuntimeMXBean.d.ts | 128 + .../jdk/java.lang.management.ThreadInfo.d.ts | 161 + .../java.lang.management.ThreadMXBean.d.ts | 318 ++ .../jdk/java.lang.ref.PhantomReference.d.ts | 21 + .../typings/jdk/java.lang.ref.Reference.d.ts | 30 + .../jdk/java.lang.ref.ReferenceQueue.d.ts | 35 + .../jdk/java.lang.ref.SoftReference.d.ts | 25 + .../jdk/java.lang.ref.WeakReference.d.ts | 20 + .../java.lang.reflect.AccessibleObject.d.ts | 74 + .../java.lang.reflect.AnnotatedArrayType.d.ts | 15 + .../java.lang.reflect.AnnotatedElement.d.ts | 86 + ...ng.reflect.AnnotatedParameterizedType.d.ts | 15 + .../jdk/java.lang.reflect.AnnotatedType.d.ts | 15 + ...va.lang.reflect.AnnotatedTypeVariable.d.ts | 15 + ...va.lang.reflect.AnnotatedWildcardType.d.ts | 20 + .../typings/jdk/java.lang.reflect.Array.d.ts | 149 + .../jdk/java.lang.reflect.Constructor.d.ts | 170 + .../jdk/java.lang.reflect.Executable.d.ts | 200 ++ .../typings/jdk/java.lang.reflect.Field.d.ts | 317 ++ .../java.lang.reflect.GenericArrayType.d.ts | 21 + .../java.lang.reflect.GenericDeclaration.d.ts | 19 + ...g.reflect.GenericSignatureFormatError.d.ts | 21 + .../java.lang.reflect.InvocationHandler.d.ts | 18 + ...ang.reflect.InvocationTargetException.d.ts | 41 + ...t.MalformedParameterizedTypeException.d.ts | 12 + ....reflect.MalformedParametersException.d.ts | 21 + .../typings/jdk/java.lang.reflect.Member.d.ts | 40 + .../typings/jdk/java.lang.reflect.Method.d.ts | 224 ++ .../jdk/java.lang.reflect.Modifier.d.ts | 172 + .../jdk/java.lang.reflect.Parameter.d.ts | 125 + .../java.lang.reflect.ParameterizedType.d.ts | 33 + .../typings/jdk/java.lang.reflect.Proxy.d.ts | 101 + .../java.lang.reflect.ReflectPermission.d.ts | 21 + .../typings/jdk/java.lang.reflect.Type.d.ts | 16 + .../jdk/java.lang.reflect.TypeVariable.d.ts | 42 + ....reflect.UndeclaredThrowableException.d.ts | 38 + .../jdk/java.lang.reflect.WildcardType.d.ts | 39 + .../typings/jdk/java.math.BigDecimal.d.ts | 1028 ++++++ .../typings/jdk/java.math.BigInteger.d.ts | 441 +++ .../typings/jdk/java.math.MathContext.d.ts | 100 + .../typings/jdk/java.math.RoundingMode.d.ts | 34 + .../java.net.Authenticator.RequestorType.d.ts | 18 + .../typings/jdk/java.net.Authenticator.d.ts | 110 + .../typings/jdk/java.net.BindException.d.ts | 21 + .../typings/jdk/java.net.CacheRequest.d.ts | 23 + .../typings/jdk/java.net.CacheResponse.d.ts | 20 + .../jdk/java.net.ConnectException.d.ts | 21 + .../typings/jdk/java.net.ContentHandler.d.ts | 26 + .../jdk/java.net.ContentHandlerFactory.d.ts | 14 + .../typings/jdk/java.net.CookieHandler.d.ts | 45 + .../typings/jdk/java.net.CookieManager.d.ts | 38 + .../typings/jdk/java.net.CookiePolicy.d.ts | 19 + .../typings/jdk/java.net.CookieStore.d.ts | 48 + .../typings/jdk/java.net.DatagramPacket.d.ts | 137 + .../typings/jdk/java.net.DatagramSocket.d.ts | 429 +++ .../jdk/java.net.DatagramSocketImpl.d.ts | 122 + .../java.net.DatagramSocketImplFactory.d.ts | 13 + .../typings/jdk/java.net.FileNameMap.d.ts | 13 + .../dist/typings/jdk/java.net.HttpCookie.d.ts | 276 ++ .../jdk/java.net.HttpRetryException.d.ts | 37 + .../jdk/java.net.HttpURLConnection.d.ts | 295 ++ .../types/dist/typings/jdk/java.net.IDN.d.ts | 64 + .../typings/jdk/java.net.Inet4Address.d.ts | 90 + .../typings/jdk/java.net.Inet6Address.d.ts | 132 + .../typings/jdk/java.net.InetAddress.d.ts | 265 ++ .../jdk/java.net.InetSocketAddress.d.ts | 119 + .../jdk/java.net.InterfaceAddress.d.ts | 54 + .../jdk/java.net.JarURLConnection.d.ts | 66 + .../jdk/java.net.MalformedURLException.d.ts | 19 + .../typings/jdk/java.net.MulticastSocket.d.ts | 182 + .../typings/jdk/java.net.NetPermission.d.ts | 24 + .../jdk/java.net.NetworkInterface.d.ts | 160 + .../jdk/java.net.NoRouteToHostException.d.ts | 21 + .../jdk/java.net.PasswordAuthentication.d.ts | 29 + .../java.net.PortUnreachableException.d.ts | 20 + .../jdk/java.net.ProtocolException.d.ts | 19 + .../typings/jdk/java.net.ProtocolFamily.d.ts | 13 + .../dist/typings/jdk/java.net.Proxy.Type.d.ts | 20 + .../dist/typings/jdk/java.net.Proxy.d.ts | 55 + .../typings/jdk/java.net.ProxySelector.d.ts | 44 + .../typings/jdk/java.net.ResponseCache.d.ts | 41 + .../jdk/java.net.SecureCacheResponse.d.ts | 48 + .../typings/jdk/java.net.ServerSocket.d.ts | 350 ++ .../dist/typings/jdk/java.net.Socket.d.ts | 639 ++++ .../typings/jdk/java.net.SocketAddress.d.ts | 10 + .../typings/jdk/java.net.SocketException.d.ts | 19 + .../dist/typings/jdk/java.net.SocketImpl.d.ts | 148 + .../jdk/java.net.SocketImplFactory.d.ts | 13 + .../typings/jdk/java.net.SocketOption.d.ts | 18 + .../typings/jdk/java.net.SocketOptions.d.ts | 102 + .../jdk/java.net.SocketPermission.d.ts | 95 + .../jdk/java.net.SocketTimeoutException.d.ts | 19 + .../jdk/java.net.StandardProtocolFamily.d.ts | 16 + .../jdk/java.net.StandardSocketOptions.d.ts | 30 + .../types/dist/typings/jdk/java.net.URI.d.ts | 596 ++++ .../jdk/java.net.URISyntaxException.d.ts | 46 + .../types/dist/typings/jdk/java.net.URL.d.ts | 346 ++ .../typings/jdk/java.net.URLClassLoader.d.ts | 161 + .../typings/jdk/java.net.URLConnection.d.ts | 495 +++ .../dist/typings/jdk/java.net.URLDecoder.d.ts | 33 + .../dist/typings/jdk/java.net.URLEncoder.d.ts | 29 + .../typings/jdk/java.net.URLPermission.d.ts | 87 + .../jdk/java.net.URLStreamHandler.d.ts | 110 + .../jdk/java.net.URLStreamHandlerFactory.d.ts | 14 + .../jdk/java.net.UnknownHostException.d.ts | 20 + .../jdk/java.net.UnknownServiceException.d.ts | 20 + .../dist/typings/jdk/java.nio.Buffer.d.ts | 150 + .../jdk/java.nio.BufferOverflowException.d.ts | 13 + .../java.nio.BufferUnderflowException.d.ts | 13 + .../dist/typings/jdk/java.nio.ByteBuffer.d.ts | 489 +++ .../dist/typings/jdk/java.nio.ByteOrder.d.ts | 29 + .../dist/typings/jdk/java.nio.CharBuffer.d.ts | 412 +++ .../typings/jdk/java.nio.DoubleBuffer.d.ts | 289 ++ .../typings/jdk/java.nio.FloatBuffer.d.ts | 289 ++ .../dist/typings/jdk/java.nio.IntBuffer.d.ts | 280 ++ .../jdk/java.nio.InvalidMarkException.d.ts | 13 + .../dist/typings/jdk/java.nio.LongBuffer.d.ts | 280 ++ .../jdk/java.nio.MappedByteBuffer.d.ts | 47 + .../jdk/java.nio.ReadOnlyBufferException.d.ts | 13 + .../typings/jdk/java.nio.ShortBuffer.d.ts | 280 ++ ...a.nio.channels.AcceptPendingException.d.ts | 15 + ...va.nio.channels.AlreadyBoundException.d.ts | 15 + ...io.channels.AlreadyConnectedException.d.ts | 15 + ....nio.channels.AsynchronousByteChannel.d.ts | 98 + ...java.nio.channels.AsynchronousChannel.d.ts | 21 + ...nio.channels.AsynchronousChannelGroup.d.ts | 125 + ...o.channels.AsynchronousCloseException.d.ts | 15 + ....nio.channels.AsynchronousFileChannel.d.ts | 271 ++ ...nnels.AsynchronousServerSocketChannel.d.ts | 94 + ...io.channels.AsynchronousSocketChannel.d.ts | 148 + .../jdk/java.nio.channels.ByteChannel.d.ts | 10 + ...va.nio.channels.CancelledKeyException.d.ts | 15 + .../jdk/java.nio.channels.Channel.d.ts | 29 + .../jdk/java.nio.channels.Channels.d.ts | 122 + ...o.channels.ClosedByInterruptException.d.ts | 15 + ...a.nio.channels.ClosedChannelException.d.ts | 15 + ....nio.channels.ClosedSelectorException.d.ts | 15 + .../java.nio.channels.CompletionHandler.d.ts | 20 + ...o.channels.ConnectionPendingException.d.ts | 15 + .../java.nio.channels.DatagramChannel.d.ts | 223 ++ ...java.nio.channels.FileChannel.MapMode.d.ts | 23 + .../jdk/java.nio.channels.FileChannel.d.ts | 379 ++ .../jdk/java.nio.channels.FileLock.d.ts | 86 + ...hannels.FileLockInterruptionException.d.ts | 15 + ...ava.nio.channels.GatheringByteChannel.d.ts | 51 + ...channels.IllegalBlockingModeException.d.ts | 15 + ...channels.IllegalChannelGroupException.d.ts | 15 + ...nio.channels.IllegalSelectorException.d.ts | 15 + ...hannels.InterruptedByTimeoutException.d.ts | 15 + ...ava.nio.channels.InterruptibleChannel.d.ts | 19 + .../jdk/java.nio.channels.MembershipKey.d.ts | 87 + .../java.nio.channels.MulticastChannel.d.ts | 50 + .../jdk/java.nio.channels.NetworkChannel.d.ts | 45 + ...channels.NoConnectionPendingException.d.ts | 15 + ....channels.NonReadableChannelException.d.ts | 15 + ....channels.NonWritableChannelException.d.ts | 15 + ...ava.nio.channels.NotYetBoundException.d.ts | 15 + ...nio.channels.NotYetConnectedException.d.ts | 15 + ...channels.OverlappingFileLockException.d.ts | 15 + .../java.nio.channels.Pipe.SinkChannel.d.ts | 25 + .../java.nio.channels.Pipe.SourceChannel.d.ts | 25 + .../typings/jdk/java.nio.channels.Pipe.d.ts | 34 + ...ava.nio.channels.ReadPendingException.d.ts | 15 + ...java.nio.channels.ReadableByteChannel.d.ts | 39 + ...va.nio.channels.ScatteringByteChannel.d.ts | 47 + ...java.nio.channels.SeekableByteChannel.d.ts | 72 + .../java.nio.channels.SelectableChannel.d.ts | 115 + .../jdk/java.nio.channels.SelectionKey.d.ts | 136 + .../jdk/java.nio.channels.Selector.d.ts | 110 + ...java.nio.channels.ServerSocketChannel.d.ts | 86 + ...hannels.ShutdownChannelGroupException.d.ts | 15 + .../jdk/java.nio.channels.SocketChannel.d.ts | 160 + ...o.channels.UnresolvedAddressException.d.ts | 15 + ...nnels.UnsupportedAddressTypeException.d.ts | 15 + ...java.nio.channels.WritableByteChannel.d.ts | 35 + ...va.nio.channels.WritePendingException.d.ts | 15 + ...nels.spi.AbstractInterruptibleChannel.d.ts | 59 + ...hannels.spi.AbstractSelectableChannel.d.ts | 87 + ...nio.channels.spi.AbstractSelectionKey.d.ts | 26 + ...ava.nio.channels.spi.AbstractSelector.d.ts | 89 + ...nnels.spi.AsynchronousChannelProvider.d.ts | 60 + ...ava.nio.channels.spi.SelectorProvider.d.ts | 110 + ....nio.charset.CharacterCodingException.d.ts | 15 + .../typings/jdk/java.nio.charset.Charset.d.ts | 202 ++ .../jdk/java.nio.charset.CharsetDecoder.d.ts | 285 ++ .../jdk/java.nio.charset.CharsetEncoder.d.ts | 290 ++ ...ava.nio.charset.CoderMalfunctionError.d.ts | 15 + .../jdk/java.nio.charset.CoderResult.d.ts | 68 + .../java.nio.charset.CodingErrorAction.d.ts | 21 + ...o.charset.IllegalCharsetNameException.d.ts | 20 + ...a.nio.charset.MalformedInputException.d.ts | 26 + .../java.nio.charset.StandardCharsets.d.ts | 22 + ....charset.UnmappableCharacterException.d.ts | 26 + ...o.charset.UnsupportedCharsetException.d.ts | 20 + .../java.nio.charset.spi.CharsetProvider.d.ts | 30 + .../java.nio.file.AccessDeniedException.d.ts | 20 + .../typings/jdk/java.nio.file.AccessMode.d.ts | 20 + ....file.AtomicMoveNotSupportedException.d.ts | 15 + ...o.file.ClosedDirectoryStreamException.d.ts | 15 + ...va.nio.file.ClosedFileSystemException.d.ts | 15 + ....nio.file.ClosedWatchServiceException.d.ts | 15 + .../typings/jdk/java.nio.file.CopyOption.d.ts | 10 + ...a.nio.file.DirectoryIteratorException.d.ts | 20 + ...a.nio.file.DirectoryNotEmptyException.d.ts | 15 + .../java.nio.file.DirectoryStream.Filter.d.ts | 17 + .../jdk/java.nio.file.DirectoryStream.d.ts | 15 + ...a.nio.file.FileAlreadyExistsException.d.ts | 20 + .../typings/jdk/java.nio.file.FileStore.d.ts | 108 + .../typings/jdk/java.nio.file.FileSystem.d.ts | 282 ++ ...file.FileSystemAlreadyExistsException.d.ts | 20 + .../java.nio.file.FileSystemException.d.ts | 44 + ...java.nio.file.FileSystemLoopException.d.ts | 15 + ....nio.file.FileSystemNotFoundException.d.ts | 20 + .../jdk/java.nio.file.FileSystems.d.ts | 121 + .../jdk/java.nio.file.FileVisitOption.d.ts | 16 + .../jdk/java.nio.file.FileVisitResult.d.ts | 22 + .../jdk/java.nio.file.FileVisitor.d.ts | 41 + .../dist/typings/jdk/java.nio.file.Files.d.ts | 1463 ++++++++ .../java.nio.file.InvalidPathException.d.ts | 48 + .../typings/jdk/java.nio.file.LinkOption.d.ts | 16 + .../jdk/java.nio.file.LinkPermission.d.ts | 20 + .../java.nio.file.NoSuchFileException.d.ts | 20 + .../java.nio.file.NotDirectoryException.d.ts | 15 + .../jdk/java.nio.file.NotLinkException.d.ts | 20 + .../typings/jdk/java.nio.file.OpenOption.d.ts | 10 + .../dist/typings/jdk/java.nio.file.Path.d.ts | 416 +++ .../jdk/java.nio.file.PathMatcher.d.ts | 15 + .../dist/typings/jdk/java.nio.file.Paths.d.ts | 67 + ...va.nio.file.ProviderMismatchException.d.ts | 20 + ...va.nio.file.ProviderNotFoundException.d.ts | 20 + ....nio.file.ReadOnlyFileSystemException.d.ts | 15 + .../java.nio.file.SecureDirectoryStream.d.ts | 117 + .../jdk/java.nio.file.SimpleFileVisitor.d.ts | 46 + .../jdk/java.nio.file.StandardCopyOption.d.ts | 20 + .../jdk/java.nio.file.StandardOpenOption.d.ts | 34 + ...java.nio.file.StandardWatchEventKinds.d.ts | 18 + .../jdk/java.nio.file.WatchEvent.Kind.d.ts | 22 + .../java.nio.file.WatchEvent.Modifier.d.ts | 17 + .../typings/jdk/java.nio.file.WatchEvent.d.ts | 32 + .../typings/jdk/java.nio.file.WatchKey.d.ts | 60 + .../jdk/java.nio.file.WatchService.d.ts | 41 + .../typings/jdk/java.nio.file.Watchable.d.ts | 38 + ...a.nio.file.attribute.AclEntry.Builder.d.ts | 57 + .../jdk/java.nio.file.attribute.AclEntry.d.ts | 70 + .../java.nio.file.attribute.AclEntryFlag.d.ts | 24 + ...nio.file.attribute.AclEntryPermission.d.ts | 50 + .../java.nio.file.attribute.AclEntryType.d.ts | 24 + ...o.file.attribute.AclFileAttributeView.d.ts | 51 + ...java.nio.file.attribute.AttributeView.d.ts | 17 + ...file.attribute.BasicFileAttributeView.d.ts | 55 + ...io.file.attribute.BasicFileAttributes.d.ts | 93 + ...o.file.attribute.DosFileAttributeView.d.ts | 56 + ....nio.file.attribute.DosFileAttributes.d.ts | 41 + ...java.nio.file.attribute.FileAttribute.d.ts | 22 + ....nio.file.attribute.FileAttributeView.d.ts | 12 + ...file.attribute.FileOwnerAttributeView.d.ts | 34 + ...file.attribute.FileStoreAttributeView.d.ts | 12 + .../jdk/java.nio.file.attribute.FileTime.d.ts | 101 + ...ava.nio.file.attribute.GroupPrincipal.d.ts | 12 + ...file.attribute.PosixFileAttributeView.d.ts | 30 + ...io.file.attribute.PosixFileAttributes.d.ts | 31 + ...io.file.attribute.PosixFilePermission.d.ts | 34 + ...o.file.attribute.PosixFilePermissions.d.ts | 50 + ...ttribute.UserDefinedFileAttributeView.d.ts | 86 + ...java.nio.file.attribute.UserPrincipal.d.ts | 12 + ....attribute.UserPrincipalLookupService.d.ts | 32 + ...ribute.UserPrincipalNotFoundException.d.ts | 23 + .../java.nio.file.spi.FileSystemProvider.d.ts | 316 ++ .../java.nio.file.spi.FileTypeDetector.d.ts | 32 + .../typings/jdk/java.rmi.AccessException.d.ts | 20 + .../jdk/java.rmi.AlreadyBoundException.d.ts | 20 + .../jdk/java.rmi.ConnectException.d.ts | 20 + .../jdk/java.rmi.ConnectIOException.d.ts | 20 + .../jdk/java.rmi.MarshalException.d.ts | 20 + .../jdk/java.rmi.MarshalledObject.d.ts | 40 + .../dist/typings/jdk/java.rmi.Naming.d.ts | 39 + .../jdk/java.rmi.NoSuchObjectException.d.ts | 14 + .../jdk/java.rmi.NotBoundException.d.ts | 20 + .../jdk/java.rmi.RMISecurityException.d.ts | 18 + .../jdk/java.rmi.RMISecurityManager.d.ts | 13 + .../dist/typings/jdk/java.rmi.Remote.d.ts | 8 + .../typings/jdk/java.rmi.RemoteException.d.ts | 40 + .../typings/jdk/java.rmi.ServerError.d.ts | 14 + .../typings/jdk/java.rmi.ServerException.d.ts | 20 + .../jdk/java.rmi.ServerRuntimeException.d.ts | 14 + .../jdk/java.rmi.StubNotFoundException.d.ts | 20 + .../jdk/java.rmi.UnexpectedException.d.ts | 20 + .../jdk/java.rmi.UnknownHostException.d.ts | 20 + .../jdk/java.rmi.UnmarshalException.d.ts | 20 + .../jdk/java.rmi.activation.Activatable.d.ts | 213 ++ ...mi.activation.ActivateFailedException.d.ts | 22 + .../java.rmi.activation.ActivationDesc.d.ts | 110 + ...va.rmi.activation.ActivationException.d.ts | 42 + .../java.rmi.activation.ActivationGroup.d.ts | 156 + ...ctivationGroupDesc.CommandEnvironment.d.ts | 39 + ...va.rmi.activation.ActivationGroupDesc.d.ts | 67 + ...java.rmi.activation.ActivationGroupID.d.ts | 36 + .../jdk/java.rmi.activation.ActivationID.d.ts | 39 + ...rmi.activation.ActivationInstantiator.d.ts | 29 + ...java.rmi.activation.ActivationMonitor.d.ts | 44 + .../java.rmi.activation.ActivationSystem.d.ts | 92 + .../jdk/java.rmi.activation.Activator.d.ts | 45 + ....rmi.activation.UnknownGroupException.d.ts | 16 + ...rmi.activation.UnknownObjectException.d.ts | 16 + .../dist/typings/jdk/java.rmi.dgc.DGC.d.ts | 55 + .../dist/typings/jdk/java.rmi.dgc.Lease.d.ts | 26 + .../dist/typings/jdk/java.rmi.dgc.VMID.d.ts | 42 + .../jdk/java.rmi.registry.LocateRegistry.d.ts | 79 + .../jdk/java.rmi.registry.Registry.d.ts | 45 + .../java.rmi.registry.RegistryHandler.d.ts | 22 + .../jdk/java.rmi.server.ExportException.d.ts | 22 + .../jdk/java.rmi.server.LoaderHandler.d.ts | 28 + .../jdk/java.rmi.server.LogStream.d.ts | 67 + .../typings/jdk/java.rmi.server.ObjID.d.ts | 79 + .../jdk/java.rmi.server.Operation.d.ts | 25 + .../jdk/java.rmi.server.RMIClassLoader.d.ts | 284 ++ .../java.rmi.server.RMIClassLoaderSpi.d.ts | 63 + ...ava.rmi.server.RMIClientSocketFactory.d.ts | 15 + .../java.rmi.server.RMIFailureHandler.d.ts | 21 + ...ava.rmi.server.RMIServerSocketFactory.d.ts | 16 + .../jdk/java.rmi.server.RMISocketFactory.d.ts | 69 + .../jdk/java.rmi.server.RemoteCall.d.ts | 51 + .../jdk/java.rmi.server.RemoteObject.d.ts | 67 + ....server.RemoteObjectInvocationHandler.d.ts | 57 + .../jdk/java.rmi.server.RemoteRef.d.ts | 81 + .../jdk/java.rmi.server.RemoteServer.d.ts | 41 + .../jdk/java.rmi.server.RemoteStub.d.ts | 26 + .../java.rmi.server.ServerCloneException.d.ts | 36 + ...a.rmi.server.ServerNotActiveException.d.ts | 22 + .../jdk/java.rmi.server.ServerRef.d.ts | 26 + .../typings/jdk/java.rmi.server.Skeleton.d.ts | 21 + ....rmi.server.SkeletonMismatchException.d.ts | 16 + ....rmi.server.SkeletonNotFoundException.d.ts | 22 + ...va.rmi.server.SocketSecurityException.d.ts | 22 + .../dist/typings/jdk/java.rmi.server.UID.d.ts | 74 + .../java.rmi.server.UnicastRemoteObject.d.ts | 78 + .../jdk/java.rmi.server.Unreferenced.d.ts | 17 + .../java.security.AccessControlContext.d.ts | 47 + .../java.security.AccessControlException.d.ts | 27 + .../jdk/java.security.AccessController.d.ts | 138 + .../java.security.AlgorithmConstraints.d.ts | 28 + ....security.AlgorithmParameterGenerator.d.ts | 99 + ...curity.AlgorithmParameterGeneratorSpi.d.ts | 21 + .../java.security.AlgorithmParameters.d.ts | 119 + .../java.security.AlgorithmParametersSpi.d.ts | 39 + .../jdk/java.security.AllPermission.d.ts | 49 + .../jdk/java.security.AuthProvider.d.ts | 50 + .../jdk/java.security.BasicPermission.d.ts | 70 + .../jdk/java.security.Certificate.d.ts | 55 + .../typings/jdk/java.security.CodeSigner.d.ts | 43 + .../typings/jdk/java.security.CodeSource.d.ts | 128 + .../jdk/java.security.CryptoPrimitive.d.ts | 32 + .../jdk/java.security.DigestException.d.ts | 36 + .../jdk/java.security.DigestInputStream.d.ts | 63 + .../jdk/java.security.DigestOutputStream.d.ts | 64 + .../jdk/java.security.DomainCombiner.d.ts | 18 + ...ava.security.DomainLoadStoreParameter.d.ts | 31 + ...ava.security.GeneralSecurityException.d.ts | 35 + .../dist/typings/jdk/java.security.Guard.d.ts | 15 + .../jdk/java.security.GuardedObject.d.ts | 21 + .../typings/jdk/java.security.Identity.d.ts | 127 + .../jdk/java.security.IdentityScope.d.ts | 76 + ...ty.InvalidAlgorithmParameterException.d.ts | 39 + .../java.security.InvalidKeyException.d.ts | 36 + ...va.security.InvalidParameterException.d.ts | 22 + .../dist/typings/jdk/java.security.Key.d.ts | 43 + .../jdk/java.security.KeyException.d.ts | 35 + .../typings/jdk/java.security.KeyFactory.d.ts | 87 + .../jdk/java.security.KeyFactorySpi.d.ts | 40 + .../java.security.KeyManagementException.d.ts | 36 + .../typings/jdk/java.security.KeyPair.d.ts | 26 + .../jdk/java.security.KeyPairGenerator.d.ts | 139 + .../java.security.KeyPairGeneratorSpi.d.ts | 38 + .../jdk/java.security.KeyRep.Type.d.ts | 20 + .../typings/jdk/java.security.KeyRep.d.ts | 31 + .../jdk/java.security.KeyStore.Builder.d.ts | 86 + ...ty.KeyStore.CallbackHandlerProtection.d.ts | 21 + ...ava.security.KeyStore.Entry.Attribute.d.ts | 23 + .../jdk/java.security.KeyStore.Entry.d.ts | 17 + ....security.KeyStore.LoadStoreParameter.d.ts | 15 + ....security.KeyStore.PasswordProtection.d.ts | 64 + ...ava.security.KeyStore.PrivateKeyEntry.d.ts | 54 + ...security.KeyStore.ProtectionParameter.d.ts | 10 + ...java.security.KeyStore.SecretKeyEntry.d.ts | 40 + ...rity.KeyStore.TrustedCertificateEntry.d.ts | 40 + .../typings/jdk/java.security.KeyStore.d.ts | 256 ++ .../jdk/java.security.KeyStoreException.d.ts | 36 + .../jdk/java.security.KeyStoreSpi.d.ts | 178 + .../jdk/java.security.MessageDigest.d.ts | 136 + .../jdk/java.security.MessageDigestSpi.d.ts | 67 + ...ava.security.NoSuchAlgorithmException.d.ts | 37 + ...java.security.NoSuchProviderException.d.ts | 22 + .../jdk/java.security.PKCS12Attribute.d.ts | 88 + .../typings/jdk/java.security.Permission.d.ts | 106 + .../java.security.PermissionCollection.d.ts | 62 + .../jdk/java.security.Permissions.d.ts | 52 + .../jdk/java.security.Policy.Parameters.d.ts | 10 + .../typings/jdk/java.security.Policy.d.ts | 140 + .../typings/jdk/java.security.PolicySpi.d.ts | 45 + .../typings/jdk/java.security.Principal.d.ts | 40 + .../typings/jdk/java.security.PrivateKey.d.ts | 10 + .../jdk/java.security.PrivilegedAction.d.ts | 14 + ...va.security.PrivilegedActionException.d.ts | 32 + ...va.security.PrivilegedExceptionAction.d.ts | 14 + .../jdk/java.security.ProtectionDomain.d.ts | 88 + .../jdk/java.security.Provider.Service.d.ts | 82 + .../typings/jdk/java.security.Provider.d.ts | 266 ++ .../jdk/java.security.ProviderException.d.ts | 36 + .../typings/jdk/java.security.PublicKey.d.ts | 10 + .../jdk/java.security.SecureClassLoader.d.ts | 59 + .../jdk/java.security.SecureRandom.d.ts | 195 ++ .../jdk/java.security.SecureRandomSpi.d.ts | 32 + .../typings/jdk/java.security.Security.d.ts | 202 ++ .../jdk/java.security.SecurityPermission.d.ts | 23 + .../typings/jdk/java.security.Signature.d.ts | 223 ++ .../jdk/java.security.SignatureException.d.ts | 36 + .../jdk/java.security.SignatureSpi.d.ts | 133 + .../jdk/java.security.SignedObject.d.ts | 39 + .../typings/jdk/java.security.Signer.d.ts | 45 + .../typings/jdk/java.security.Timestamp.d.ts | 42 + .../jdk/java.security.URIParameter.d.ts | 19 + ....security.UnrecoverableEntryException.d.ts | 20 + ...va.security.UnrecoverableKeyException.d.ts | 20 + .../java.security.UnresolvedPermission.d.ts | 86 + .../typings/jdk/java.security.acl.Acl.d.ts | 94 + .../jdk/java.security.acl.AclEntry.d.ts | 73 + ...ava.security.acl.AclNotFoundException.d.ts | 15 + .../typings/jdk/java.security.acl.Group.d.ts | 34 + .../java.security.acl.LastOwnerException.d.ts | 15 + .../java.security.acl.NotOwnerException.d.ts | 15 + .../typings/jdk/java.security.acl.Owner.d.ts | 31 + .../jdk/java.security.acl.Permission.d.ts | 21 + .../typings/jdk/java.security.cert.CRL.d.ts | 30 + .../jdk/java.security.cert.CRLException.d.ts | 38 + .../jdk/java.security.cert.CRLReason.d.ts | 36 + .../jdk/java.security.cert.CRLSelector.d.ts | 21 + ...va.security.cert.CertPath.CertPathRep.d.ts | 23 + .../jdk/java.security.cert.CertPath.d.ts | 87 + .../java.security.cert.CertPathBuilder.d.ts | 93 + ...ecurity.cert.CertPathBuilderException.d.ts | 40 + ...a.security.cert.CertPathBuilderResult.d.ts | 21 + ...java.security.cert.CertPathBuilderSpi.d.ts | 35 + .../java.security.cert.CertPathChecker.d.ts | 32 + ...java.security.cert.CertPathParameters.d.ts | 16 + .../java.security.cert.CertPathValidator.d.ts | 100 + ...ertPathValidatorException.BasicReason.d.ts | 30 + ...ert.CertPathValidatorException.Reason.d.ts | 12 + ...urity.cert.CertPathValidatorException.d.ts | 73 + ...security.cert.CertPathValidatorResult.d.ts | 16 + ...va.security.cert.CertPathValidatorSpi.d.ts | 41 + .../jdk/java.security.cert.CertSelector.d.ts | 21 + .../jdk/java.security.cert.CertStore.d.ts | 138 + ...java.security.cert.CertStoreException.d.ts | 39 + ...ava.security.cert.CertStoreParameters.d.ts | 38 + .../jdk/java.security.cert.CertStoreSpi.d.ts | 55 + ...urity.cert.Certificate.CertificateRep.d.ts | 25 + .../jdk/java.security.cert.Certificate.d.ts | 77 + ...ity.cert.CertificateEncodingException.d.ts | 39 + ...va.security.cert.CertificateException.d.ts | 37 + ...rity.cert.CertificateExpiredException.d.ts | 24 + ...java.security.cert.CertificateFactory.d.ts | 206 ++ ...a.security.cert.CertificateFactorySpi.d.ts | 167 + ....cert.CertificateNotYetValidException.d.ts | 24 + ...rity.cert.CertificateParsingException.d.ts | 39 + ...rity.cert.CertificateRevokedException.d.ts | 58 + ...ty.cert.CollectionCertStoreParameters.d.ts | 60 + .../jdk/java.security.cert.Extension.d.ts | 33 + ...security.cert.LDAPCertStoreParameters.d.ts | 54 + ...a.security.cert.PKIXBuilderParameters.d.ts | 63 + ...curity.cert.PKIXCertPathBuilderResult.d.ts | 31 + ...ava.security.cert.PKIXCertPathChecker.d.ts | 72 + ...rity.cert.PKIXCertPathValidatorResult.d.ts | 54 + .../java.security.cert.PKIXParameters.d.ts | 303 ++ .../jdk/java.security.cert.PKIXReason.d.ts | 30 + ...ity.cert.PKIXRevocationChecker.Option.d.ts | 24 + ...a.security.cert.PKIXRevocationChecker.d.ts | 97 + .../jdk/java.security.cert.PolicyNode.d.ts | 52 + ...ava.security.cert.PolicyQualifierInfo.d.ts | 42 + .../jdk/java.security.cert.TrustAnchor.d.ts | 130 + .../jdk/java.security.cert.X509CRL.d.ts | 211 ++ .../jdk/java.security.cert.X509CRLEntry.d.ts | 71 + .../java.security.cert.X509CRLSelector.d.ts | 272 ++ .../java.security.cert.X509CertSelector.d.ts | 900 +++++ .../java.security.cert.X509Certificate.d.ts | 420 +++ .../jdk/java.security.cert.X509Extension.d.ts | 103 + .../jdk/java.security.interfaces.DSAKey.d.ts | 16 + ...curity.interfaces.DSAKeyPairGenerator.d.ts | 32 + .../java.security.interfaces.DSAParams.d.ts | 25 + ...ava.security.interfaces.DSAPrivateKey.d.ts | 17 + ...java.security.interfaces.DSAPublicKey.d.ts | 17 + .../jdk/java.security.interfaces.ECKey.d.ts | 18 + ...java.security.interfaces.ECPrivateKey.d.ts | 17 + .../java.security.interfaces.ECPublicKey.d.ts | 17 + .../jdk/java.security.interfaces.RSAKey.d.ts | 15 + ...interfaces.RSAMultiPrimePrivateCrtKey.d.ts | 48 + ....security.interfaces.RSAPrivateCrtKey.d.ts | 42 + ...ava.security.interfaces.RSAPrivateKey.d.ts | 17 + ...java.security.interfaces.RSAPublicKey.d.ts | 17 + ....security.spec.AlgorithmParameterSpec.d.ts | 10 + ...ava.security.spec.DSAGenParameterSpec.d.ts | 42 + .../java.security.spec.DSAParameterSpec.d.ts | 30 + .../java.security.spec.DSAPrivateKeySpec.d.ts | 35 + .../java.security.spec.DSAPublicKeySpec.d.ts | 35 + .../jdk/java.security.spec.ECField.d.ts | 17 + .../jdk/java.security.spec.ECFieldF2m.d.ts | 89 + .../jdk/java.security.spec.ECFieldFp.d.ts | 38 + ...java.security.spec.ECGenParameterSpec.d.ts | 26 + .../java.security.spec.ECParameterSpec.d.ts | 36 + .../jdk/java.security.spec.ECPoint.d.ts | 41 + .../java.security.spec.ECPrivateKeySpec.d.ts | 27 + .../java.security.spec.ECPublicKeySpec.d.ts | 27 + .../jdk/java.security.spec.EllipticCurve.d.ts | 59 + .../java.security.spec.EncodedKeySpec.d.ts | 34 + ...security.spec.InvalidKeySpecException.d.ts | 38 + ...ty.spec.InvalidParameterSpecException.d.ts | 24 + .../jdk/java.security.spec.KeySpec.d.ts | 10 + .../java.security.spec.MGF1ParameterSpec.d.ts | 32 + ...ava.security.spec.PKCS8EncodedKeySpec.d.ts | 26 + .../java.security.spec.PSSParameterSpec.d.ts | 52 + ....security.spec.RSAKeyGenParameterSpec.d.ts | 30 + ...y.spec.RSAMultiPrimePrivateCrtKeySpec.d.ts | 57 + .../java.security.spec.RSAOtherPrimeInfo.d.ts | 32 + ...va.security.spec.RSAPrivateCrtKeySpec.d.ts | 48 + .../java.security.spec.RSAPrivateKeySpec.d.ts | 25 + .../java.security.spec.RSAPublicKeySpec.d.ts | 25 + ...java.security.spec.X509EncodedKeySpec.d.ts | 26 + .../dist/typings/jdk/java.sql.Array.d.ts | 181 + .../jdk/java.sql.BatchUpdateException.d.ts | 189 + .../types/dist/typings/jdk/java.sql.Blob.d.ts | 132 + .../jdk/java.sql.CallableStatement.d.ts | 1292 +++++++ .../jdk/java.sql.ClientInfoStatus.d.ts | 20 + .../types/dist/typings/jdk/java.sql.Clob.d.ts | 156 + .../dist/typings/jdk/java.sql.Connection.d.ts | 768 +++++ .../typings/jdk/java.sql.DataTruncation.d.ts | 66 + .../jdk/java.sql.DatabaseMetaData.d.ts | 2024 +++++++++++ .../types/dist/typings/jdk/java.sql.Date.d.ts | 108 + .../dist/typings/jdk/java.sql.Driver.d.ts | 88 + .../typings/jdk/java.sql.DriverAction.d.ts | 27 + .../typings/jdk/java.sql.DriverManager.d.ts | 160 + .../jdk/java.sql.DriverPropertyInfo.d.ts | 26 + .../dist/typings/jdk/java.sql.JDBCType.d.ts | 111 + .../dist/typings/jdk/java.sql.NClob.d.ts | 8 + .../jdk/java.sql.ParameterMetaData.d.ts | 77 + .../jdk/java.sql.PreparedStatement.d.ts | 659 ++++ .../jdk/java.sql.PseudoColumnUsage.d.ts | 20 + .../types/dist/typings/jdk/java.sql.Ref.d.ts | 37 + .../dist/typings/jdk/java.sql.ResultSet.d.ts | 2071 +++++++++++ .../jdk/java.sql.ResultSetMetaData.d.ts | 133 + .../dist/typings/jdk/java.sql.RowId.d.ts | 49 + .../typings/jdk/java.sql.RowIdLifetime.d.ts | 22 + .../jdk/java.sql.SQLClientInfoException.d.ts | 113 + .../dist/typings/jdk/java.sql.SQLData.d.ts | 56 + .../jdk/java.sql.SQLDataException.d.ts | 90 + .../typings/jdk/java.sql.SQLException.d.ts | 117 + ...a.sql.SQLFeatureNotSupportedException.d.ts | 93 + .../dist/typings/jdk/java.sql.SQLInput.d.ts | 198 ++ ...IntegrityConstraintViolationException.d.ts | 93 + ....SQLInvalidAuthorizationSpecException.d.ts | 93 + ...ql.SQLNonTransientConnectionException.d.ts | 93 + .../java.sql.SQLNonTransientException.d.ts | 93 + .../dist/typings/jdk/java.sql.SQLOutput.d.ts | 210 ++ .../typings/jdk/java.sql.SQLPermission.d.ts | 22 + .../jdk/java.sql.SQLRecoverableException.d.ts | 93 + .../jdk/java.sql.SQLSyntaxErrorException.d.ts | 93 + .../jdk/java.sql.SQLTimeoutException.d.ts | 93 + ...a.sql.SQLTransactionRollbackException.d.ts | 93 + ...a.sql.SQLTransientConnectionException.d.ts | 93 + .../jdk/java.sql.SQLTransientException.d.ts | 93 + .../dist/typings/jdk/java.sql.SQLType.d.ts | 24 + .../dist/typings/jdk/java.sql.SQLWarning.d.ts | 103 + .../dist/typings/jdk/java.sql.SQLXML.d.ts | 147 + .../dist/typings/jdk/java.sql.Savepoint.d.ts | 20 + .../dist/typings/jdk/java.sql.Statement.d.ts | 709 ++++ .../dist/typings/jdk/java.sql.Struct.d.ts | 50 + .../types/dist/typings/jdk/java.sql.Time.d.ts | 104 + .../dist/typings/jdk/java.sql.Timestamp.d.ts | 145 + .../dist/typings/jdk/java.sql.Types.d.ts | 86 + .../dist/typings/jdk/java.sql.Wrapper.d.ts | 32 + .../typings/jdk/java.text.Annotation.d.ts | 24 + ...AttributedCharacterIterator.Attribute.d.ts | 51 + ...java.text.AttributedCharacterIterator.d.ts | 69 + .../jdk/java.text.AttributedString.d.ts | 87 + .../dist/typings/jdk/java.text.Bidi.d.ts | 144 + .../typings/jdk/java.text.BreakIterator.d.ts | 169 + .../jdk/java.text.CharacterIterator.d.ts | 69 + .../typings/jdk/java.text.ChoiceFormat.d.ts | 103 + .../java.text.CollationElementIterator.d.ts | 105 + .../typings/jdk/java.text.CollationKey.d.ts | 33 + .../dist/typings/jdk/java.text.Collator.d.ts | 141 + .../jdk/java.text.DateFormat.Field.d.ts | 73 + .../typings/jdk/java.text.DateFormat.d.ts | 278 ++ .../jdk/java.text.DateFormatSymbols.d.ts | 234 ++ .../typings/jdk/java.text.DecimalFormat.d.ts | 423 +++ .../jdk/java.text.DecimalFormatSymbols.d.ts | 278 ++ .../typings/jdk/java.text.FieldPosition.d.ts | 85 + .../typings/jdk/java.text.Format.Field.d.ts | 15 + .../dist/typings/jdk/java.text.Format.d.ts | 68 + .../jdk/java.text.MessageFormat.Field.d.ts | 22 + .../typings/jdk/java.text.MessageFormat.d.ts | 353 ++ .../jdk/java.text.Normalizer.Form.d.ts | 22 + .../typings/jdk/java.text.Normalizer.d.ts | 20 + .../jdk/java.text.NumberFormat.Field.d.ts | 43 + .../typings/jdk/java.text.NumberFormat.d.ts | 322 ++ .../typings/jdk/java.text.ParseException.d.ts | 20 + .../typings/jdk/java.text.ParsePosition.d.ts | 53 + .../jdk/java.text.RuleBasedCollator.d.ts | 60 + .../jdk/java.text.SimpleDateFormat.d.ts | 152 + .../java.text.StringCharacterIterator.d.ts | 92 + .../java.text.spi.BreakIteratorProvider.d.ts | 44 + .../jdk/java.text.spi.CollatorProvider.d.ts | 21 + .../jdk/java.text.spi.DateFormatProvider.d.ts | 34 + ...va.text.spi.DateFormatSymbolsProvider.d.ts | 22 + ...text.spi.DecimalFormatSymbolsProvider.d.ts | 22 + .../java.text.spi.NumberFormatProvider.d.ts | 46 + .../dist/typings/jdk/java.time.Clock.d.ts | 210 ++ .../jdk/java.time.DateTimeException.d.ts | 18 + .../dist/typings/jdk/java.time.DayOfWeek.d.ts | 212 ++ .../dist/typings/jdk/java.time.Duration.d.ts | 552 +++ .../dist/typings/jdk/java.time.Instant.d.ts | 590 ++++ .../dist/typings/jdk/java.time.LocalDate.d.ts | 1049 ++++++ .../typings/jdk/java.time.LocalDateTime.d.ts | 1027 ++++++ .../dist/typings/jdk/java.time.LocalTime.d.ts | 738 ++++ .../dist/typings/jdk/java.time.Month.d.ts | 269 ++ .../dist/typings/jdk/java.time.MonthDay.d.ts | 336 ++ .../typings/jdk/java.time.OffsetDateTime.d.ts | 1078 ++++++ .../typings/jdk/java.time.OffsetTime.d.ts | 744 ++++ .../dist/typings/jdk/java.time.Period.d.ts | 464 +++ .../dist/typings/jdk/java.time.Year.d.ts | 571 ++++ .../dist/typings/jdk/java.time.YearMonth.d.ts | 611 ++++ .../dist/typings/jdk/java.time.ZoneId.d.ts | 176 + .../typings/jdk/java.time.ZoneOffset.d.ts | 260 ++ .../typings/jdk/java.time.ZonedDateTime.d.ts | 1256 +++++++ .../java.time.chrono.AbstractChronology.d.ts | 131 + .../jdk/java.time.chrono.ChronoLocalDate.d.ts | 366 ++ .../java.time.chrono.ChronoLocalDateTime.d.ts | 310 ++ .../jdk/java.time.chrono.ChronoPeriod.d.ts | 187 + .../java.time.chrono.ChronoZonedDateTime.d.ts | 336 ++ .../jdk/java.time.chrono.Chronology.d.ts | 361 ++ .../typings/jdk/java.time.chrono.Era.d.ts | 149 + .../java.time.chrono.HijrahChronology.d.ts | 84 + .../jdk/java.time.chrono.HijrahDate.d.ts | 162 + .../jdk/java.time.chrono.HijrahEra.d.ts | 51 + .../jdk/java.time.chrono.IsoChronology.d.ts | 238 ++ .../typings/jdk/java.time.chrono.IsoEra.d.ts | 33 + .../java.time.chrono.JapaneseChronology.d.ts | 127 + .../jdk/java.time.chrono.JapaneseDate.d.ts | 188 + .../jdk/java.time.chrono.JapaneseEra.d.ts | 84 + .../java.time.chrono.MinguoChronology.d.ts | 93 + .../jdk/java.time.chrono.MinguoDate.d.ts | 136 + .../jdk/java.time.chrono.MinguoEra.d.ts | 33 + ...va.time.chrono.ThaiBuddhistChronology.d.ts | 93 + .../java.time.chrono.ThaiBuddhistDate.d.ts | 136 + .../jdk/java.time.chrono.ThaiBuddhistEra.d.ts | 33 + .../java.time.format.DateTimeFormatter.d.ts | 623 ++++ ....time.format.DateTimeFormatterBuilder.d.ts | 1102 ++++++ ...va.time.format.DateTimeParseException.d.ts | 30 + .../jdk/java.time.format.DecimalStyle.d.ts | 117 + .../jdk/java.time.format.FormatStyle.d.ts | 22 + .../jdk/java.time.format.ResolverStyle.d.ts | 20 + .../jdk/java.time.format.SignStyle.d.ts | 24 + .../jdk/java.time.format.TextStyle.d.ts | 41 + .../jdk/java.time.temporal.ChronoField.d.ts | 148 + .../jdk/java.time.temporal.ChronoUnit.d.ts | 89 + .../jdk/java.time.temporal.IsoFields.d.ts | 22 + .../jdk/java.time.temporal.JulianFields.d.ts | 16 + .../jdk/java.time.temporal.Temporal.d.ts | 156 + .../java.time.temporal.TemporalAccessor.d.ts | 71 + .../java.time.temporal.TemporalAdjuster.d.ts | 31 + .../java.time.temporal.TemporalAdjusters.d.ts | 247 ++ .../java.time.temporal.TemporalAmount.d.ts | 66 + .../jdk/java.time.temporal.TemporalField.d.ts | 202 ++ .../java.time.temporal.TemporalQueries.d.ts | 185 + .../jdk/java.time.temporal.TemporalQuery.d.ts | 31 + .../jdk/java.time.temporal.TemporalUnit.d.ts | 145 + ...oral.UnsupportedTemporalTypeException.d.ts | 20 + .../jdk/java.time.temporal.ValueRange.d.ts | 141 + .../jdk/java.time.temporal.WeekFields.d.ts | 261 ++ .../java.time.zone.ZoneOffsetTransition.d.ts | 131 + ...neOffsetTransitionRule.TimeDefinition.d.ts | 36 + ...va.time.zone.ZoneOffsetTransitionRule.d.ts | 120 + .../typings/jdk/java.time.zone.ZoneRules.d.ts | 252 ++ .../java.time.zone.ZoneRulesException.d.ts | 20 + .../jdk/java.time.zone.ZoneRulesProvider.d.ts | 157 + .../jdk/java.util.AbstractCollection.d.ts | 167 + .../typings/jdk/java.util.AbstractList.d.ts | 213 ++ .../java.util.AbstractMap.SimpleEntry.d.ts | 76 + ...util.AbstractMap.SimpleImmutableEntry.d.ts | 78 + .../typings/jdk/java.util.AbstractMap.d.ts | 110 + .../typings/jdk/java.util.AbstractQueue.d.ts | 65 + .../jdk/java.util.AbstractSequentialList.d.ts | 99 + .../typings/jdk/java.util.AbstractSet.d.ts | 66 + .../typings/jdk/java.util.ArrayDeque.d.ts | 240 ++ .../dist/typings/jdk/java.util.ArrayList.d.ts | 268 ++ .../dist/typings/jdk/java.util.Arrays.d.ts | 1808 ++++++++++ .../typings/jdk/java.util.Base64.Decoder.d.ts | 62 + .../typings/jdk/java.util.Base64.Encoder.d.ts | 72 + .../dist/typings/jdk/java.util.Base64.d.ts | 53 + .../dist/typings/jdk/java.util.BitSet.d.ts | 330 ++ .../jdk/java.util.Calendar.Builder.d.ts | 172 + .../dist/typings/jdk/java.util.Calendar.d.ts | 646 ++++ .../typings/jdk/java.util.Collection.d.ts | 237 ++ .../typings/jdk/java.util.Collections.d.ts | 1113 ++++++ .../typings/jdk/java.util.Comparator.d.ts | 179 + ....util.ConcurrentModificationException.d.ts | 36 + .../dist/typings/jdk/java.util.Currency.d.ts | 99 + .../dist/typings/jdk/java.util.Date.d.ts | 464 +++ .../dist/typings/jdk/java.util.Deque.d.ts | 229 ++ .../typings/jdk/java.util.Dictionary.d.ts | 76 + .../java.util.DoubleSummaryStatistics.d.ts | 85 + ...va.util.DuplicateFormatFlagsException.d.ts | 20 + .../jdk/java.util.EmptyStackException.d.ts | 14 + .../dist/typings/jdk/java.util.EnumMap.d.ts | 132 + .../dist/typings/jdk/java.util.EnumSet.d.ts | 113 + .../typings/jdk/java.util.Enumeration.d.ts | 19 + .../typings/jdk/java.util.EventListener.d.ts | 8 + .../jdk/java.util.EventListenerProxy.d.ts | 18 + .../typings/jdk/java.util.EventObject.d.ts | 25 + ...ormatFlagsConversionMismatchException.d.ts | 26 + .../typings/jdk/java.util.Formattable.d.ts | 13 + .../jdk/java.util.FormattableFlags.d.ts | 14 + ...a.util.Formatter.BigDecimalLayoutForm.d.ts | 18 + .../dist/typings/jdk/java.util.Formatter.d.ts | 212 ++ .../java.util.FormatterClosedException.d.ts | 13 + .../jdk/java.util.GregorianCalendar.d.ts | 363 ++ .../dist/typings/jdk/java.util.HashMap.d.ts | 170 + .../dist/typings/jdk/java.util.HashSet.d.ts | 101 + .../dist/typings/jdk/java.util.Hashtable.d.ts | 220 ++ .../jdk/java.util.IdentityHashMap.d.ts | 221 ++ ....util.IllegalFormatCodePointException.d.ts | 22 + ...util.IllegalFormatConversionException.d.ts | 26 + .../jdk/java.util.IllegalFormatException.d.ts | 8 + ...java.util.IllegalFormatFlagsException.d.ts | 20 + ....util.IllegalFormatPrecisionException.d.ts | 20 + ...java.util.IllegalFormatWidthException.d.ts | 20 + .../java.util.IllformedLocaleException.d.ts | 35 + .../jdk/java.util.InputMismatchException.d.ts | 21 + .../jdk/java.util.IntSummaryStatistics.d.ts | 56 + ...util.InvalidPropertiesFormatException.d.ts | 20 + .../dist/typings/jdk/java.util.Iterator.d.ts | 38 + .../typings/jdk/java.util.LinkedHashMap.d.ts | 158 + .../typings/jdk/java.util.LinkedHashSet.d.ts | 43 + .../typings/jdk/java.util.LinkedList.d.ts | 308 ++ .../dist/typings/jdk/java.util.List.d.ts | 290 ++ .../typings/jdk/java.util.ListIterator.d.ts | 89 + .../jdk/java.util.ListResourceBundle.d.ts | 37 + .../typings/jdk/java.util.Locale.Builder.d.ts | 157 + .../jdk/java.util.Locale.Category.d.ts | 18 + .../jdk/java.util.Locale.FilteringMode.d.ts | 24 + .../jdk/java.util.Locale.LanguageRange.d.ts | 143 + .../dist/typings/jdk/java.util.Locale.d.ts | 700 ++++ .../jdk/java.util.LongSummaryStatistics.d.ts | 62 + .../dist/typings/jdk/java.util.Map.Entry.d.ts | 89 + .../types/dist/typings/jdk/java.util.Map.d.ts | 273 ++ ...a.util.MissingFormatArgumentException.d.ts | 21 + ...java.util.MissingFormatWidthException.d.ts | 21 + .../java.util.MissingResourceException.d.ts | 24 + .../typings/jdk/java.util.NavigableMap.d.ts | 180 + .../typings/jdk/java.util.NavigableSet.d.ts | 122 + .../jdk/java.util.NoSuchElementException.d.ts | 21 + .../dist/typings/jdk/java.util.Objects.d.ts | 132 + .../typings/jdk/java.util.Observable.d.ts | 82 + .../dist/typings/jdk/java.util.Observer.d.ts | 16 + .../dist/typings/jdk/java.util.Optional.d.ts | 107 + .../typings/jdk/java.util.OptionalDouble.d.ts | 78 + .../typings/jdk/java.util.OptionalInt.d.ts | 78 + .../typings/jdk/java.util.OptionalLong.d.ts | 78 + .../java.util.PrimitiveIterator.OfDouble.d.ts | 33 + .../java.util.PrimitiveIterator.OfInt.d.ts | 33 + .../java.util.PrimitiveIterator.OfLong.d.ts | 33 + .../jdk/java.util.PrimitiveIterator.d.ts | 16 + .../typings/jdk/java.util.PriorityQueue.d.ts | 157 + .../typings/jdk/java.util.Properties.d.ts | 339 ++ .../jdk/java.util.PropertyPermission.d.ts | 63 + .../jdk/java.util.PropertyResourceBundle.d.ts | 37 + .../dist/typings/jdk/java.util.Queue.d.ts | 51 + .../dist/typings/jdk/java.util.Random.d.ts | 464 +++ .../typings/jdk/java.util.RandomAccess.d.ts | 8 + .../jdk/java.util.ResourceBundle.Control.d.ts | 389 +++ .../typings/jdk/java.util.ResourceBundle.d.ts | 492 +++ .../dist/typings/jdk/java.util.Scanner.d.ts | 663 ++++ .../java.util.ServiceConfigurationError.d.ts | 18 + .../typings/jdk/java.util.ServiceLoader.d.ts | 95 + .../types/dist/typings/jdk/java.util.Set.d.ts | 181 + .../typings/jdk/java.util.SimpleTimeZone.d.ts | 217 ++ .../dist/typings/jdk/java.util.SortedMap.d.ts | 110 + .../dist/typings/jdk/java.util.SortedSet.d.ts | 74 + .../jdk/java.util.Spliterator.OfDouble.d.ts | 26 + .../jdk/java.util.Spliterator.OfInt.d.ts | 26 + .../jdk/java.util.Spliterator.OfLong.d.ts | 26 + .../java.util.Spliterator.OfPrimitive.d.ts | 30 + .../typings/jdk/java.util.Spliterator.d.ts | 115 + ...pliterators.AbstractDoubleSpliterator.d.ts | 32 + ...l.Spliterators.AbstractIntSpliterator.d.ts | 32 + ....Spliterators.AbstractLongSpliterator.d.ts | 32 + ...util.Spliterators.AbstractSpliterator.d.ts | 32 + .../typings/jdk/java.util.Spliterators.d.ts | 328 ++ .../jdk/java.util.SplittableRandom.d.ts | 179 + .../dist/typings/jdk/java.util.Stack.d.ts | 49 + .../typings/jdk/java.util.StringJoiner.d.ts | 78 + .../jdk/java.util.StringTokenizer.d.ts | 94 + .../dist/typings/jdk/java.util.TimeZone.d.ts | 242 ++ .../dist/typings/jdk/java.util.Timer.d.ts | 175 + .../dist/typings/jdk/java.util.TimerTask.d.ts | 55 + .../java.util.TooManyListenersException.d.ts | 20 + .../dist/typings/jdk/java.util.TreeMap.d.ts | 244 ++ .../dist/typings/jdk/java.util.TreeSet.d.ts | 165 + .../dist/typings/jdk/java.util.UUID.d.ts | 150 + ...util.UnknownFormatConversionException.d.ts | 20 + ...java.util.UnknownFormatFlagsException.d.ts | 20 + .../dist/typings/jdk/java.util.Vector.d.ts | 457 +++ .../typings/jdk/java.util.WeakHashMap.d.ts | 163 + ...il.concurrent.AbstractExecutorService.d.ts | 37 + ...va.util.concurrent.ArrayBlockingQueue.d.ts | 170 + .../java.util.concurrent.BlockingDeque.d.ts | 253 ++ .../java.util.concurrent.BlockingQueue.d.ts | 110 + ...til.concurrent.BrokenBarrierException.d.ts | 22 + .../jdk/java.util.concurrent.Callable.d.ts | 15 + ...util.concurrent.CancellationException.d.ts | 21 + ...ableFuture.AsynchronousCompletionTask.d.ts | 12 + ...ava.util.concurrent.CompletableFuture.d.ts | 275 ++ ...a.util.concurrent.CompletionException.d.ts | 38 + ...ava.util.concurrent.CompletionService.d.ts | 43 + .../java.util.concurrent.CompletionStage.d.ts | 377 ++ ...ncurrent.ConcurrentHashMap.KeySetView.d.ts | 52 + ...ava.util.concurrent.ConcurrentHashMap.d.ts | 512 +++ ...util.concurrent.ConcurrentLinkedDeque.d.ts | 213 ++ ...util.concurrent.ConcurrentLinkedQueue.d.ts | 135 + .../java.util.concurrent.ConcurrentMap.d.ts | 100 + ...til.concurrent.ConcurrentNavigableMap.d.ts | 79 + ...util.concurrent.ConcurrentSkipListMap.d.ts | 340 ++ ...util.concurrent.ConcurrentSkipListSet.d.ts | 177 + ....util.concurrent.CopyOnWriteArrayList.d.ts | 303 ++ ...a.util.concurrent.CopyOnWriteArraySet.d.ts | 184 + .../java.util.concurrent.CountDownLatch.d.ts | 92 + ...java.util.concurrent.CountedCompleter.d.ts | 192 ++ .../java.util.concurrent.CyclicBarrier.d.ts | 136 + .../jdk/java.util.concurrent.DelayQueue.d.ts | 140 + .../jdk/java.util.concurrent.Delayed.d.ts | 16 + .../jdk/java.util.concurrent.Exchanger.d.ts | 75 + ...va.util.concurrent.ExecutionException.d.ts | 38 + .../jdk/java.util.concurrent.Executor.d.ts | 17 + ....concurrent.ExecutorCompletionService.d.ts | 34 + .../java.util.concurrent.ExecutorService.d.ts | 130 + .../jdk/java.util.concurrent.Executors.d.ts | 261 ++ ...kJoinPool.ForkJoinWorkerThreadFactory.d.ts | 17 + ...oncurrent.ForkJoinPool.ManagedBlocker.d.ts | 23 + .../java.util.concurrent.ForkJoinPool.d.ts | 294 ++ .../java.util.concurrent.ForkJoinTask.d.ts | 368 ++ ....util.concurrent.ForkJoinWorkerThread.d.ts | 55 + .../jdk/java.util.concurrent.Future.d.ts | 51 + .../jdk/java.util.concurrent.FutureTask.d.ts | 72 + ...a.util.concurrent.LinkedBlockingDeque.d.ts | 223 ++ ...a.util.concurrent.LinkedBlockingQueue.d.ts | 157 + ...a.util.concurrent.LinkedTransferQueue.d.ts | 152 + .../jdk/java.util.concurrent.Phaser.d.ts | 217 ++ ...util.concurrent.PriorityBlockingQueue.d.ts | 169 + .../java.util.concurrent.RecursiveAction.d.ts | 32 + .../java.util.concurrent.RecursiveTask.d.ts | 26 + ...concurrent.RejectedExecutionException.d.ts | 39 + ...l.concurrent.RejectedExecutionHandler.d.ts | 22 + .../java.util.concurrent.RunnableFuture.d.ts | 16 + ...il.concurrent.RunnableScheduledFuture.d.ts | 17 + ...l.concurrent.ScheduledExecutorService.d.ts | 48 + .../java.util.concurrent.ScheduledFuture.d.ts | 10 + ...oncurrent.ScheduledThreadPoolExecutor.d.ts | 174 + .../jdk/java.util.concurrent.Semaphore.d.ts | 318 ++ ...java.util.concurrent.SynchronousQueue.d.ts | 145 + .../java.util.concurrent.ThreadFactory.d.ts | 16 + ...ava.util.concurrent.ThreadLocalRandom.d.ts | 168 + ...urrent.ThreadPoolExecutor.AbortPolicy.d.ts | 22 + ...t.ThreadPoolExecutor.CallerRunsPolicy.d.ts | 23 + ...hreadPoolExecutor.DiscardOldestPolicy.d.ts | 25 + ...rent.ThreadPoolExecutor.DiscardPolicy.d.ts | 22 + ...va.util.concurrent.ThreadPoolExecutor.d.ts | 330 ++ .../jdk/java.util.concurrent.TimeUnit.d.ts | 118 + ...java.util.concurrent.TimeoutException.d.ts | 22 + .../java.util.concurrent.TransferQueue.d.ts | 61 + ....util.concurrent.atomic.AtomicBoolean.d.ts | 62 + ....util.concurrent.atomic.AtomicInteger.d.ts | 153 + ....concurrent.atomic.AtomicIntegerArray.d.ts | 138 + ...rent.atomic.AtomicIntegerFieldUpdater.d.ts | 144 + ...ava.util.concurrent.atomic.AtomicLong.d.ts | 153 + ...til.concurrent.atomic.AtomicLongArray.d.ts | 138 + ...current.atomic.AtomicLongFieldUpdater.d.ts | 144 + ...urrent.atomic.AtomicMarkableReference.d.ts | 69 + ...til.concurrent.atomic.AtomicReference.d.ts | 100 + ...oncurrent.atomic.AtomicReferenceArray.d.ts | 108 + ...nt.atomic.AtomicReferenceFieldUpdater.d.ts | 108 + ...current.atomic.AtomicStampedReference.d.ts | 69 + ...l.concurrent.atomic.DoubleAccumulator.d.ts | 80 + ...va.util.concurrent.atomic.DoubleAdder.d.ts | 81 + ...til.concurrent.atomic.LongAccumulator.d.ts | 80 + ...java.util.concurrent.atomic.LongAdder.d.ts | 88 + ...ent.locks.AbstractOwnableSynchronizer.d.ts | 32 + ...ueuedLongSynchronizer.ConditionObject.d.ts | 127 + ....locks.AbstractQueuedLongSynchronizer.d.ts | 322 ++ ...actQueuedSynchronizer.ConditionObject.d.ts | 127 + ...rent.locks.AbstractQueuedSynchronizer.d.ts | 322 ++ .../java.util.concurrent.locks.Condition.d.ts | 258 ++ .../jdk/java.util.concurrent.locks.Lock.d.ts | 154 + ...ava.util.concurrent.locks.LockSupport.d.ts | 165 + ...a.util.concurrent.locks.ReadWriteLock.d.ts | 22 + ...a.util.concurrent.locks.ReentrantLock.d.ts | 340 ++ ...locks.ReentrantReadWriteLock.ReadLock.d.ts | 145 + ...ocks.ReentrantReadWriteLock.WriteLock.d.ts | 216 ++ ...ncurrent.locks.ReentrantReadWriteLock.d.ts | 181 + ...ava.util.concurrent.locks.StampedLock.d.ts | 203 ++ .../jdk/java.util.function.BiConsumer.d.ts | 24 + .../jdk/java.util.function.BiFunction.d.ts | 23 + .../jdk/java.util.function.BiPredicate.d.ts | 43 + .../java.util.function.BinaryOperator.d.ts | 22 + .../java.util.function.BooleanSupplier.d.ts | 15 + .../jdk/java.util.function.Consumer.d.ts | 24 + ...va.util.function.DoubleBinaryOperator.d.ts | 15 + .../java.util.function.DoubleConsumer.d.ts | 24 + .../java.util.function.DoubleFunction.d.ts | 15 + .../java.util.function.DoublePredicate.d.ts | 43 + .../java.util.function.DoubleSupplier.d.ts | 15 + ...ava.util.function.DoubleToIntFunction.d.ts | 15 + ...va.util.function.DoubleToLongFunction.d.ts | 15 + ...ava.util.function.DoubleUnaryOperator.d.ts | 36 + .../jdk/java.util.function.Function.d.ts | 36 + .../java.util.function.IntBinaryOperator.d.ts | 15 + .../jdk/java.util.function.IntConsumer.d.ts | 24 + .../jdk/java.util.function.IntFunction.d.ts | 15 + .../jdk/java.util.function.IntPredicate.d.ts | 43 + .../jdk/java.util.function.IntSupplier.d.ts | 15 + ...ava.util.function.IntToDoubleFunction.d.ts | 15 + .../java.util.function.IntToLongFunction.d.ts | 15 + .../java.util.function.IntUnaryOperator.d.ts | 36 + ...java.util.function.LongBinaryOperator.d.ts | 15 + .../jdk/java.util.function.LongConsumer.d.ts | 24 + .../jdk/java.util.function.LongFunction.d.ts | 15 + .../jdk/java.util.function.LongPredicate.d.ts | 43 + .../jdk/java.util.function.LongSupplier.d.ts | 15 + ...va.util.function.LongToDoubleFunction.d.ts | 15 + .../java.util.function.LongToIntFunction.d.ts | 15 + .../java.util.function.LongUnaryOperator.d.ts | 36 + .../java.util.function.ObjDoubleConsumer.d.ts | 15 + .../java.util.function.ObjIntConsumer.d.ts | 15 + .../java.util.function.ObjLongConsumer.d.ts | 15 + .../jdk/java.util.function.Predicate.d.ts | 49 + .../jdk/java.util.function.Supplier.d.ts | 15 + ...java.util.function.ToDoubleBiFunction.d.ts | 15 + .../java.util.function.ToDoubleFunction.d.ts | 15 + .../java.util.function.ToIntBiFunction.d.ts | 15 + .../jdk/java.util.function.ToIntFunction.d.ts | 15 + .../java.util.function.ToLongBiFunction.d.ts | 15 + .../java.util.function.ToLongFunction.d.ts | 15 + .../jdk/java.util.function.UnaryOperator.d.ts | 15 + .../jdk/java.util.jar.Attributes.Name.d.ts | 66 + .../typings/jdk/java.util.jar.Attributes.d.ts | 153 + .../typings/jdk/java.util.jar.JarEntry.d.ts | 60 + .../jdk/java.util.jar.JarException.d.ts | 20 + .../typings/jdk/java.util.jar.JarFile.d.ts | 75 + .../jdk/java.util.jar.JarInputStream.d.ts | 65 + .../jdk/java.util.jar.JarOutputStream.d.ts | 32 + .../typings/jdk/java.util.jar.Manifest.d.ts | 99 + .../jdk/java.util.jar.Pack200.Packer.d.ts | 114 + .../jdk/java.util.jar.Pack200.Unpacker.d.ts | 87 + .../typings/jdk/java.util.jar.Pack200.d.ts | 48 + .../jdk/java.util.logging.ConsoleHandler.d.ts | 34 + .../jdk/java.util.logging.ErrorManager.d.ts | 33 + .../jdk/java.util.logging.FileHandler.d.ts | 88 + .../typings/jdk/java.util.logging.Filter.d.ts | 15 + .../jdk/java.util.logging.Formatter.d.ts | 61 + .../jdk/java.util.logging.Handler.d.ts | 137 + .../typings/jdk/java.util.logging.Level.d.ts | 102 + .../jdk/java.util.logging.LogManager.d.ts | 156 + .../jdk/java.util.logging.LogRecord.d.ts | 194 ++ .../typings/jdk/java.util.logging.Logger.d.ts | 746 ++++ .../jdk/java.util.logging.LoggingMXBean.d.ts | 40 + .../java.util.logging.LoggingPermission.d.ts | 15 + .../jdk/java.util.logging.MemoryHandler.d.ts | 84 + .../java.util.logging.SimpleFormatter.d.ts | 85 + .../jdk/java.util.logging.SocketHandler.d.ts | 35 + .../jdk/java.util.logging.StreamHandler.d.ts | 80 + .../jdk/java.util.logging.XMLFormatter.d.ts | 31 + .../java.util.prefs.AbstractPreferences.d.ts | 526 +++ ...java.util.prefs.BackingStoreException.d.ts | 20 + ...efs.InvalidPreferencesFormatException.d.ts | 28 + .../jdk/java.util.prefs.NodeChangeEvent.d.ts | 25 + .../java.util.prefs.NodeChangeListener.d.ts | 20 + ...java.util.prefs.PreferenceChangeEvent.d.ts | 30 + ...a.util.prefs.PreferenceChangeListener.d.ts | 17 + .../jdk/java.util.prefs.Preferences.d.ts | 529 +++ .../java.util.prefs.PreferencesFactory.d.ts | 23 + .../jdk/java.util.regex.MatchResult.d.ts | 81 + .../typings/jdk/java.util.regex.Matcher.d.ts | 422 +++ .../typings/jdk/java.util.regex.Pattern.d.ts | 185 + ...ava.util.regex.PatternSyntaxException.d.ts | 37 + .../java.util.spi.CalendarDataProvider.d.ts | 32 + .../java.util.spi.CalendarNameProvider.d.ts | 69 + .../java.util.spi.CurrencyNameProvider.d.ts | 30 + .../jdk/java.util.spi.LocaleNameProvider.d.ts | 63 + .../java.util.spi.LocaleServiceProvider.d.ts | 45 + ...til.spi.ResourceBundleControlProvider.d.ts | 18 + .../java.util.spi.TimeZoneNameProvider.d.ts | 45 + .../jdk/java.util.stream.BaseStream.d.ts | 81 + ...util.stream.Collector.Characteristics.d.ts | 22 + .../jdk/java.util.stream.Collector.d.ts | 56 + .../jdk/java.util.stream.Collectors.d.ts | 400 +++ ...java.util.stream.DoubleStream.Builder.d.ts | 30 + .../jdk/java.util.stream.DoubleStream.d.ts | 428 +++ .../java.util.stream.IntStream.Builder.d.ts | 30 + .../jdk/java.util.stream.IntStream.d.ts | 421 +++ .../java.util.stream.LongStream.Builder.d.ts | 30 + .../jdk/java.util.stream.LongStream.d.ts | 413 +++ .../jdk/java.util.stream.Stream.Builder.d.ts | 29 + .../typings/jdk/java.util.stream.Stream.d.ts | 454 +++ .../jdk/java.util.stream.StreamSupport.d.ts | 154 + .../typings/jdk/java.util.zip.Adler32.d.ts | 52 + .../dist/typings/jdk/java.util.zip.CRC32.d.ts | 52 + .../jdk/java.util.zip.CheckedInputStream.d.ts | 37 + .../java.util.zip.CheckedOutputStream.d.ts | 31 + .../typings/jdk/java.util.zip.Checksum.d.ts | 30 + .../java.util.zip.DataFormatException.d.ts | 21 + .../typings/jdk/java.util.zip.Deflater.d.ts | 224 ++ .../java.util.zip.DeflaterInputStream.d.ts | 83 + .../java.util.zip.DeflaterOutputStream.d.ts | 97 + .../jdk/java.util.zip.GZIPInputStream.d.ts | 39 + .../jdk/java.util.zip.GZIPOutputStream.d.ts | 51 + .../typings/jdk/java.util.zip.Inflater.d.ts | 151 + .../java.util.zip.InflaterInputStream.d.ts | 94 + .../java.util.zip.InflaterOutputStream.d.ts | 61 + .../typings/jdk/java.util.zip.ZipEntry.d.ts | 198 ++ .../typings/jdk/java.util.zip.ZipError.d.ts | 15 + .../jdk/java.util.zip.ZipException.d.ts | 22 + .../typings/jdk/java.util.zip.ZipFile.d.ts | 127 + .../jdk/java.util.zip.ZipInputStream.d.ts | 68 + .../jdk/java.util.zip.ZipOutputStream.d.ts | 77 + packages/types/dist/typings/sponge/index.d.ts | 1927 +++++++++++ .../org.spongepowered.api.CatalogType.d.ts | 29 + .../org.spongepowered.api.CatalogTypes.d.ts | 258 ++ .../sponge/org.spongepowered.api.Game.d.ts | 130 + ...pongepowered.api.GameDictionary.Entry.d.ts | 43 + .../org.spongepowered.api.GameDictionary.d.ts | 28 + .../org.spongepowered.api.GameRegistry.d.ts | 207 ++ .../org.spongepowered.api.GameState.d.ts | 38 + ...rg.spongepowered.api.MinecraftVersion.d.ts | 31 + .../org.spongepowered.api.Nameable.d.ts | 15 + ....spongepowered.api.Platform.Component.d.ts | 22 + .../org.spongepowered.api.Platform.Type.d.ts | 37 + .../org.spongepowered.api.Platform.d.ts | 57 + .../sponge/org.spongepowered.api.Server.d.ts | 282 ++ .../sponge/org.spongepowered.api.Sponge.d.ts | 125 + ...d.api.advancement.Advancement.Builder.d.ts | 44 + ...gepowered.api.advancement.Advancement.d.ts | 54 + ...d.api.advancement.AdvancementProgress.d.ts | 49 + ...i.advancement.AdvancementTree.Builder.d.ts | 41 + ...wered.api.advancement.AdvancementTree.d.ts | 27 + ...wered.api.advancement.AdvancementType.d.ts | 17 + ...ered.api.advancement.AdvancementTypes.d.ts | 18 + ...d.api.advancement.DisplayInfo.Builder.d.ts | 74 + ...gepowered.api.advancement.DisplayInfo.d.ts | 57 + ...epowered.api.advancement.Progressable.d.ts | 35 + ...ngepowered.api.advancement.TreeLayout.d.ts | 30 + ...red.api.advancement.TreeLayoutElement.d.ts | 32 + ...eria.AdvancementCriterion.BaseBuilder.d.ts | 33 + ...criteria.AdvancementCriterion.Builder.d.ts | 16 + ...ncement.criteria.AdvancementCriterion.d.ts | 70 + ...api.advancement.criteria.AndCriterion.d.ts | 32 + ...dvancement.criteria.CriterionProgress.d.ts | 19 + ...dvancement.criteria.OperatorCriterion.d.ts | 39 + ....api.advancement.criteria.OrCriterion.d.ts | 32 + ...ria.ScoreAdvancementCriterion.Builder.d.ts | 22 + ...nt.criteria.ScoreAdvancementCriterion.d.ts | 25 + ...ement.criteria.ScoreCriterionProgress.d.ts | 46 + ...teria.trigger.FilteredTrigger.Builder.d.ts | 33 + ...ment.criteria.trigger.FilteredTrigger.d.ts | 31 + ...er.FilteredTriggerConfiguration.Empty.d.ts | 20 + ....trigger.FilteredTriggerConfiguration.d.ts | 16 + ...ment.criteria.trigger.Trigger.Builder.d.ts | 90 + ....advancement.criteria.trigger.Trigger.d.ts | 45 + ...advancement.criteria.trigger.Triggers.d.ts | 70 + .../org.spongepowered.api.asset.Asset.d.ts | 87 + .../org.spongepowered.api.asset.AssetId.d.ts | 17 + ....spongepowered.api.asset.AssetManager.d.ts | 26 + ...wered.api.block.BlockSnapshot.Builder.d.ts | 49 + ...spongepowered.api.block.BlockSnapshot.d.ts | 83 + ...ongepowered.api.block.BlockSoundGroup.d.ts | 47 + ...epowered.api.block.BlockState.Builder.d.ts | 23 + ...d.api.block.BlockState.MatcherBuilder.d.ts | 40 + ...red.api.block.BlockState.StateMatcher.d.ts | 37 + ...rg.spongepowered.api.block.BlockState.d.ts | 105 + ...org.spongepowered.api.block.BlockType.d.ts | 66 + ...rg.spongepowered.api.block.BlockTypes.d.ts | 520 +++ ...owered.api.block.ScheduledBlockUpdate.d.ts | 32 + ...gepowered.api.block.tileentity.Banner.d.ts | 30 + ...pongepowered.api.block.tileentity.Bed.d.ts | 29 + ...red.api.block.tileentity.CommandBlock.d.ts | 19 + ...wered.api.block.tileentity.Comparator.d.ts | 14 + ...api.block.tileentity.DaylightDetector.d.ts | 14 + ...api.block.tileentity.EnchantmentTable.d.ts | 14 + ...wered.api.block.tileentity.EndGateway.d.ts | 20 + ...owered.api.block.tileentity.EndPortal.d.ts | 14 + ...wered.api.block.tileentity.EnderChest.d.ts | 14 + ...owered.api.block.tileentity.FlowerPot.d.ts | 14 + ...epowered.api.block.tileentity.Jukebox.d.ts | 35 + ...wered.api.block.tileentity.MobSpawner.d.ts | 93 + ...ongepowered.api.block.tileentity.Note.d.ts | 30 + ...gepowered.api.block.tileentity.Piston.d.ts | 14 + ...ongepowered.api.block.tileentity.Sign.d.ts | 25 + ...ngepowered.api.block.tileentity.Skull.d.ts | 25 + ...owered.api.block.tileentity.Structure.d.ts | 20 + ...wered.api.block.tileentity.TileEntity.d.ts | 57 + ...ileentity.TileEntityArchetype.Builder.d.ts | 44 + ....block.tileentity.TileEntityArchetype.d.ts | 46 + ...d.api.block.tileentity.TileEntityType.d.ts | 19 + ....api.block.tileentity.TileEntityTypes.d.ts | 62 + ...d.api.block.tileentity.carrier.Beacon.d.ts | 39 + ...block.tileentity.carrier.BrewingStand.d.ts | 22 + ...ed.api.block.tileentity.carrier.Chest.d.ts | 29 + ...pi.block.tileentity.carrier.Dispenser.d.ts | 16 + ....api.block.tileentity.carrier.Dropper.d.ts | 16 + ....api.block.tileentity.carrier.Furnace.d.ts | 50 + ...d.api.block.tileentity.carrier.Hopper.d.ts | 24 + ...i.block.tileentity.carrier.ShulkerBox.d.ts | 28 + ....tileentity.carrier.TileEntityCarrier.d.ts | 18 + ...ngepowered.api.block.trait.BlockTrait.d.ts | 44 + ...epowered.api.block.trait.BooleanTrait.d.ts | 14 + ...powered.api.block.trait.BooleanTraits.d.ts | 282 ++ ...ongepowered.api.block.trait.EnumTrait.d.ts | 14 + ...ngepowered.api.block.trait.EnumTraits.d.ts | 334 ++ ...epowered.api.block.trait.IntegerTrait.d.ts | 14 + ...powered.api.block.trait.IntegerTraits.d.ts | 76 + .../org.spongepowered.api.boss.BossBar.d.ts | 83 + ...g.spongepowered.api.boss.BossBarColor.d.ts | 12 + ....spongepowered.api.boss.BossBarColors.d.ts | 26 + ...spongepowered.api.boss.BossBarOverlay.d.ts | 12 + ...pongepowered.api.boss.BossBarOverlays.d.ts | 22 + ...owered.api.boss.ServerBossBar.Builder.d.ts | 60 + ....spongepowered.api.boss.ServerBossBar.d.ts | 66 + ...gepowered.api.command.CommandCallable.d.ts | 60 + ...epowered.api.command.CommandException.d.ts | 40 + ...ngepowered.api.command.CommandManager.d.ts | 87 + ...ngepowered.api.command.CommandMapping.d.ts | 32 + ....api.command.CommandMessageFormatting.d.ts | 35 + ....api.command.CommandNotFoundException.d.ts | 27 + ...pi.command.CommandPermissionException.d.ts | 27 + ...red.api.command.CommandResult.Builder.d.ts | 45 + ...ongepowered.api.command.CommandResult.d.ts | 85 + ...ongepowered.api.command.CommandSource.d.ts | 24 + ...d.api.command.ImmutableCommandMapping.d.ts | 30 + ...pi.command.InvocationCommandException.d.ts | 17 + ...args.ArgumentParseException.WithUsage.d.ts | 23 + ...i.command.args.ArgumentParseException.d.ts | 43 + ...mand.args.ChildCommandElementExecutor.d.ts | 46 + ...api.command.args.CommandArgs.Snapshot.d.ts | 20 + ...epowered.api.command.args.CommandArgs.d.ts | 118 + ....command.args.CommandContext.Snapshot.d.ts | 16 + ...wered.api.command.args.CommandContext.d.ts | 105 + ...wered.api.command.args.CommandElement.d.ts | 57 + ...api.command.args.CommandFlags.Builder.d.ts | 86 + ...args.CommandFlags.UnknownFlagBehavior.d.ts | 28 + ...powered.api.command.args.CommandFlags.d.ts | 24 + ...red.api.command.args.GenericArguments.d.ts | 633 ++++ ...nd.args.PatternMatchingCommandElement.d.ts | 38 + ...i.command.args.SelectorCommandElement.d.ts | 20 + ...i.command.args.parsing.InputTokenizer.d.ts | 45 + ...ed.api.command.args.parsing.SingleArg.d.ts | 42 + ....api.command.dispatcher.Disambiguator.d.ts | 20 + ...red.api.command.dispatcher.Dispatcher.d.ts | 69 + ...i.command.dispatcher.SimpleDispatcher.d.ts | 117 + ...api.command.source.CommandBlockSource.d.ts | 48 + ...ered.api.command.source.ConsoleSource.d.ts | 14 + ...owered.api.command.source.ProxySource.d.ts | 19 + ...powered.api.command.source.RconSource.d.ts | 24 + ...wered.api.command.source.RemoteSource.d.ts | 19 + ...powered.api.command.source.SignSource.d.ts | 19 + ...ered.api.command.spec.CommandExecutor.d.ts | 19 + ....api.command.spec.CommandSpec.Builder.d.ts | 96 + ...epowered.api.command.spec.CommandSpec.d.ts | 85 + ...rg.spongepowered.api.config.ConfigDir.d.ts | 18 + ...pongepowered.api.config.ConfigManager.d.ts | 31 + ...g.spongepowered.api.config.ConfigRoot.d.ts | 37 + ...pongepowered.api.config.DefaultConfig.d.ts | 17 + .../org.spongepowered.api.data.Archetype.d.ts | 22 + ...i.data.DataAlreadyRegisteredException.d.ts | 49 + ....spongepowered.api.data.DataContainer.d.ts | 31 + ....spongepowered.api.data.DataException.d.ts | 32 + ...org.spongepowered.api.data.DataHolder.d.ts | 34 + ...rg.spongepowered.api.data.DataManager.d.ts | 123 + .../org.spongepowered.api.data.DataQuery.d.ts | 96 + ...red.api.data.DataRegistration.Builder.d.ts | 113 + ...ongepowered.api.data.DataRegistration.d.ts | 55 + ...ata.DataRegistrationNotFoundException.d.ts | 70 + ...ongepowered.api.data.DataSerializable.d.ts | 28 + ...pi.data.DataTransactionResult.Builder.d.ts | 103 + ...d.api.data.DataTransactionResult.Type.d.ts | 28 + ...owered.api.data.DataTransactionResult.d.ts | 165 + ...epowered.api.data.DataView.SafetyMode.d.ts | 24 + .../org.spongepowered.api.data.DataView.d.ts | 392 +++ ...powered.api.data.ImmutableDataBuilder.d.ts | 43 + ...epowered.api.data.ImmutableDataHolder.d.ts | 18 + ...ngepowered.api.data.LocatableSnapshot.d.ts | 36 + ...epowered.api.data.MemoryDataContainer.d.ts | 35 + ...spongepowered.api.data.MemoryDataView.d.ts | 114 + ...ngepowered.api.data.Property.Operator.d.ts | 55 + .../org.spongepowered.api.data.Property.d.ts | 46 + .../org.spongepowered.api.data.Queries.d.ts | 86 + ...rg.spongepowered.api.data.Transaction.d.ts | 91 + ...pongepowered.api.data.key.Key.Builder.d.ts | 49 + .../org.spongepowered.api.data.key.Key.d.ts | 48 + ...spongepowered.api.data.key.KeyFactory.d.ts | 50 + .../org.spongepowered.api.data.key.Keys.d.ts | 540 +++ ....api.data.manipulator.DataManipulator.d.ts | 104 + ...ta.manipulator.DataManipulatorBuilder.d.ts | 31 + ....manipulator.ImmutableDataManipulator.d.ts | 41 + ...lator.ImmutableDataManipulatorBuilder.d.ts | 39 + ....manipulator.catalog.CatalogBlockData.d.ts | 104 + ...manipulator.catalog.CatalogEntityData.d.ts | 150 + ...a.manipulator.catalog.CatalogItemData.d.ts | 64 + ...pulator.catalog.CatalogTileEntityData.d.ts | 44 + ...ulator.immutable.ImmutableColoredData.d.ts | 21 + ...ulator.immutable.ImmutableCommandData.d.ts | 45 + ...or.immutable.ImmutableDisplayNameData.d.ts | 22 + ...ulator.immutable.ImmutableDyeableData.d.ts | 16 + ...immutable.ImmutableFireworkEffectData.d.ts | 23 + ...immutable.ImmutableFireworkRocketData.d.ts | 26 + ...nipulator.immutable.ImmutableListData.d.ts | 37 + ...pulator.immutable.ImmutableMappedData.d.ts | 41 + ...tor.immutable.ImmutableMobSpawnerData.d.ts | 81 + ...r.immutable.ImmutablePotionEffectData.d.ts | 21 + ...tor.immutable.ImmutablePotionTypeData.d.ts | 21 + ...mmutable.ImmutableRepresentedItemData.d.ts | 22 + ...utable.ImmutableRepresentedPlayerData.d.ts | 22 + ...tor.immutable.ImmutableRotationalData.d.ts | 16 + ...ipulator.immutable.ImmutableSkullData.d.ts | 16 + ...mutable.ImmutableTargetedLocationData.d.ts | 21 + ...ulator.immutable.ImmutableVariantData.d.ts | 21 + ...anipulator.immutable.ImmutableWetData.d.ts | 21 + ...immutable.block.ImmutableAttachedData.d.ts | 23 + ...tor.immutable.block.ImmutableAxisData.d.ts | 23 + ...utable.block.ImmutableBigMushroomData.d.ts | 18 + ...or.immutable.block.ImmutableBrickData.d.ts | 18 + ...mutable.block.ImmutableComparatorData.d.ts | 18 + ...block.ImmutableConnectedDirectionData.d.ts | 48 + ...mmutable.block.ImmutableDecayableData.d.ts | 24 + ...mmutable.block.ImmutableDelayableData.d.ts | 23 + ...utable.block.ImmutableDirectionalData.d.ts | 24 + ...tor.immutable.block.ImmutableDirtData.d.ts | 18 + ...immutable.block.ImmutableDisarmedData.d.ts | 23 + ...ble.block.ImmutableDisguisedBlockData.d.ts | 18 + ...utable.block.ImmutableDoublePlantData.d.ts | 18 + ...tor.immutable.block.ImmutableDropData.d.ts | 23 + ...immutable.block.ImmutableExtendedData.d.ts | 23 + ...r.immutable.block.ImmutableFilledData.d.ts | 23 + ...mutable.block.ImmutableFluidLevelData.d.ts | 23 + ...r.immutable.block.ImmutableGrowthData.d.ts | 23 + ...or.immutable.block.ImmutableHingeData.d.ts | 18 + ...r.immutable.block.ImmutableInWallData.d.ts | 23 + ....immutable.block.ImmutableLayeredData.d.ts | 23 + ....immutable.block.ImmutableLogAxisData.d.ts | 18 + ...immutable.block.ImmutableMoistureData.d.ts | 23 + ...immutable.block.ImmutableOccupiedData.d.ts | 23 + ...tor.immutable.block.ImmutableOpenData.d.ts | 23 + ...r.immutable.block.ImmutablePistonData.d.ts | 18 + ...or.immutable.block.ImmutablePlantData.d.ts | 18 + ....immutable.block.ImmutablePortionData.d.ts | 18 + ....immutable.block.ImmutablePoweredData.d.ts | 23 + ...mutable.block.ImmutablePrismarineData.d.ts | 18 + ...r.immutable.block.ImmutableQuartzData.d.ts | 18 + ...able.block.ImmutableRailDirectionData.d.ts | 18 + ...le.block.ImmutableRedstonePoweredData.d.ts | 24 + ...tor.immutable.block.ImmutableSandData.d.ts | 18 + ...mmutable.block.ImmutableSandstoneData.d.ts | 18 + ...immutable.block.ImmutableSeamlessData.d.ts | 23 + ...or.immutable.block.ImmutableShrubData.d.ts | 18 + ...tor.immutable.block.ImmutableSlabData.d.ts | 18 + ...r.immutable.block.ImmutableSnowedData.d.ts | 23 + ...mutable.block.ImmutableStairShapeData.d.ts | 18 + ...or.immutable.block.ImmutableStoneData.d.ts | 18 + ...tor.immutable.block.ImmutableTreeData.d.ts | 18 + ...tor.immutable.block.ImmutableWallData.d.ts | 18 + ...ble.block.ImmutableWireAttachmentData.d.ts | 48 + ...e.common.AbstractImmutableBooleanData.d.ts | 26 + ...bstractImmutableBoundedComparableData.d.ts | 38 + ...mmutable.common.AbstractImmutableData.d.ts | 59 + ...able.common.AbstractImmutableListData.d.ts | 30 + ...le.common.AbstractImmutableMappedData.d.ts | 32 + ...on.AbstractImmutableSingleCatalogData.d.ts | 30 + ...le.common.AbstractImmutableSingleData.d.ts | 48 + ...ommon.AbstractImmutableSingleEnumData.d.ts | 32 + ...utable.entity.ImmutableAbsorptionData.d.ts | 23 + ...able.entity.ImmutableAccelerationData.d.ts | 24 + ...utable.entity.ImmutableActiveItemData.d.ts | 25 + ...e.entity.ImmutableAffectsSpawningData.d.ts | 23 + ...immutable.entity.ImmutableAgeableData.d.ts | 29 + ...r.immutable.entity.ImmutableAgentData.d.ts | 23 + ...utable.entity.ImmutableAggressiveData.d.ts | 23 + ...mutable.entity.ImmutableAngerableData.d.ts | 23 + ...e.entity.ImmutableAreaEffectCloudData.d.ts | 86 + ...utable.entity.ImmutableArmorStandData.d.ts | 41 + ...tor.immutable.entity.ImmutableArtData.d.ts | 18 + ...ntity.ImmutableBodyPartRotationalData.d.ts | 60 + ...mutable.entity.ImmutableBreathingData.d.ts | 31 + ...mutable.entity.ImmutableBreedableData.d.ts | 23 + ....immutable.entity.ImmutableCareerData.d.ts | 23 + ...immutable.entity.ImmutableChargedData.d.ts | 23 + ...table.entity.ImmutableCriticalHitData.d.ts | 23 + ...entity.ImmutableCustomNameVisibleData.d.ts | 23 + ...utable.entity.ImmutableDamageableData.d.ts | 33 + ...mmutable.entity.ImmutableDamagingData.d.ts | 32 + ...able.entity.ImmutableDespawnDelayData.d.ts | 29 + ...ble.entity.ImmutableDisabledSlotsData.d.ts | 28 + ...able.entity.ImmutableDominantHandData.d.ts | 24 + ...able.entity.ImmutableElytraFlyingData.d.ts | 23 + ....immutable.entity.ImmutableExpOrbData.d.ts | 23 + ....entity.ImmutableExperienceHolderData.d.ts | 47 + ...mutable.entity.ImmutableExpirableData.d.ts | 24 + ...e.entity.ImmutableExplosionRadiusData.d.ts | 26 + ...able.entity.ImmutableFallDistanceData.d.ts | 23 + ...able.entity.ImmutableFallingBlockData.d.ts | 58 + ...mutable.entity.ImmutableFlammableData.d.ts | 23 + ...ble.entity.ImmutableFlyingAbilityData.d.ts | 23 + ....immutable.entity.ImmutableFlyingData.d.ts | 23 + ...or.immutable.entity.ImmutableFoodData.d.ts | 45 + ...or.immutable.entity.ImmutableFuseData.d.ts | 32 + ...mmutable.entity.ImmutableGameModeData.d.ts | 18 + ...immutable.entity.ImmutableGlowingData.d.ts | 23 + ...immutable.entity.ImmutableGravityData.d.ts | 24 + ...mmutable.entity.ImmutableGriefingData.d.ts | 23 + ....immutable.entity.ImmutableHealthData.d.ts | 36 + ...ble.entity.ImmutableHealthScalingData.d.ts | 28 + ...r.immutable.entity.ImmutableHorseData.d.ts | 28 + ...utable.entity.ImmutableIgniteableData.d.ts | 30 + ...able.entity.ImmutableInvisibilityData.d.ts | 47 + ...e.entity.ImmutableInvulnerabilityData.d.ts | 33 + ....immutable.entity.ImmutableJohnnyData.d.ts | 24 + ...or.immutable.entity.ImmutableJoinData.d.ts | 30 + ...mutable.entity.ImmutableKnockbackData.d.ts | 23 + ...r.immutable.entity.ImmutableLeashData.d.ts | 23 + ...ble.entity.ImmutableMinecartBlockData.d.ts | 30 + ...ble.entity.ImmutableMovementSpeedData.d.ts | 28 + ....immutable.entity.ImmutableOcelotData.d.ts | 18 + ....immutable.entity.ImmutableParrotData.d.ts | 18 + ...mutable.entity.ImmutablePassengerData.d.ts | 24 + ...utable.entity.ImmutablePersistingData.d.ts | 24 + ...table.entity.ImmutablePickupDelayData.d.ts | 29 + ...utable.entity.ImmutablePickupRuleData.d.ts | 18 + ...mutable.entity.ImmutablePigSaddleData.d.ts | 23 + ...ble.entity.ImmutablePlayerCreatedData.d.ts | 24 + ...immutable.entity.ImmutablePlayingData.d.ts | 23 + ....immutable.entity.ImmutableRabbitData.d.ts | 18 + ...table.entity.ImmutableRespawnLocation.d.ts | 33 + ...mutable.entity.ImmutableScreamingData.d.ts | 23 + ...utable.entity.ImmutableShatteringData.d.ts | 24 + ...immutable.entity.ImmutableShearedData.d.ts | 23 + ....immutable.entity.ImmutableSilentData.d.ts | 23 + ...immutable.entity.ImmutableSittingData.d.ts | 23 + ...or.immutable.entity.ImmutableSizeData.d.ts | 33 + ...or.immutable.entity.ImmutableSkinData.d.ts | 24 + ...mmutable.entity.ImmutableSleepingData.d.ts | 30 + ...r.immutable.entity.ImmutableSlimeData.d.ts | 23 + ...mmutable.entity.ImmutableSneakingData.d.ts | 23 + ....immutable.entity.ImmutableSprintData.d.ts | 23 + ...mutable.entity.ImmutableStatisticData.d.ts | 18 + ...table.entity.ImmutableStuckArrowsData.d.ts | 23 + ...mmutable.entity.ImmutableTameableData.d.ts | 24 + ...le.entity.ImmutableTargetedEntityData.d.ts | 23 + ...utable.entity.ImmutableTradeOfferData.d.ts | 24 + ...immutable.entity.ImmutableVehicleData.d.ts | 30 + ...mmutable.entity.ImmutableVelocityData.d.ts | 24 + ...or.immutable.item.ImmutableAuthorData.d.ts | 23 + ...immutable.item.ImmutableBlockItemData.d.ts | 24 + ...immutable.item.ImmutableBreakableData.d.ts | 24 + ...ator.immutable.item.ImmutableCoalData.d.ts | 18 + ...mmutable.item.ImmutableCookedFishData.d.ts | 18 + ...mmutable.item.ImmutableDurabilityData.d.ts | 32 + ...mutable.item.ImmutableEnchantmentData.d.ts | 24 + ...ator.immutable.item.ImmutableFishData.d.ts | 18 + ...mmutable.item.ImmutableGenerationData.d.ts | 24 + ...mutable.item.ImmutableGoldenAppleData.d.ts | 18 + ...ator.immutable.item.ImmutableHideData.d.ts | 48 + ...table.item.ImmutableInventoryItemData.d.ts | 18 + ...ator.immutable.item.ImmutableLoreData.d.ts | 23 + ...r.immutable.item.ImmutableMapItemData.d.ts | 18 + ...tor.immutable.item.ImmutablePagedData.d.ts | 23 + ...immutable.item.ImmutablePlaceableData.d.ts | 24 + ...mmutable.item.ImmutablePlainPagedData.d.ts | 23 + ...immutable.item.ImmutableSpawnableData.d.ts | 18 + ...e.item.ImmutableStoredEnchantmentData.d.ts | 24 + ...utable.tileentity.ImmutableBannerData.d.ts | 29 + ...utable.tileentity.ImmutableBeaconData.d.ts | 36 + ...immutable.tileentity.ImmutableBedData.d.ts | 23 + ....tileentity.ImmutableBrewingStandData.d.ts | 24 + ...able.tileentity.ImmutableCooldownData.d.ts | 23 + ...le.tileentity.ImmutableEndGatewayData.d.ts | 41 + ...table.tileentity.ImmutableFurnaceData.d.ts | 47 + ...able.tileentity.ImmutableLockableData.d.ts | 23 + ...mmutable.tileentity.ImmutableNoteData.d.ts | 23 + ...mmutable.tileentity.ImmutableSignData.d.ts | 24 + ...ble.tileentity.ImmutableStructureData.d.ts | 68 + ....data.manipulator.mutable.ColoredData.d.ts | 21 + ....data.manipulator.mutable.CommandData.d.ts | 45 + ...a.manipulator.mutable.DisplayNameData.d.ts | 22 + ....data.manipulator.mutable.DyeableData.d.ts | 16 + ...anipulator.mutable.FireworkEffectData.d.ts | 23 + ...anipulator.mutable.FireworkRocketData.d.ts | 26 + ...api.data.manipulator.mutable.ListData.d.ts | 89 + ...i.data.manipulator.mutable.MappedData.d.ts | 57 + ...ta.manipulator.mutable.MobSpawnerData.d.ts | 82 + ....manipulator.mutable.PotionEffectData.d.ts | 21 + ...ta.manipulator.mutable.PotionTypeData.d.ts | 21 + ...nipulator.mutable.RepresentedItemData.d.ts | 22 + ...pulator.mutable.RepresentedPlayerData.d.ts | 22 + ...ta.manipulator.mutable.RotationalData.d.ts | 16 + ...pi.data.manipulator.mutable.SkullData.d.ts | 16 + ...ipulator.mutable.TargetedLocationData.d.ts | 21 + ....data.manipulator.mutable.VariantData.d.ts | 21 + ....api.data.manipulator.mutable.WetData.d.ts | 21 + ...anipulator.mutable.block.AttachedData.d.ts | 23 + ...ta.manipulator.mutable.block.AxisData.d.ts | 18 + ...pulator.mutable.block.BigMushroomData.d.ts | 18 + ...a.manipulator.mutable.block.BrickData.d.ts | 18 + ...ipulator.mutable.block.ComparatorData.d.ts | 18 + ....mutable.block.ConnectedDirectionData.d.ts | 48 + ...nipulator.mutable.block.DecayableData.d.ts | 24 + ...nipulator.mutable.block.DelayableData.d.ts | 23 + ...pulator.mutable.block.DirectionalData.d.ts | 23 + ...ta.manipulator.mutable.block.DirtData.d.ts | 18 + ...anipulator.mutable.block.DisarmedData.d.ts | 23 + ...ator.mutable.block.DisguisedBlockData.d.ts | 18 + ...pulator.mutable.block.DoublePlantData.d.ts | 18 + ...ta.manipulator.mutable.block.DropData.d.ts | 23 + ...anipulator.mutable.block.ExtendedData.d.ts | 23 + ....manipulator.mutable.block.FilledData.d.ts | 23 + ...ipulator.mutable.block.FluidLevelData.d.ts | 23 + ....manipulator.mutable.block.GrowthData.d.ts | 23 + ...a.manipulator.mutable.block.HingeData.d.ts | 18 + ....manipulator.mutable.block.InWallData.d.ts | 23 + ...manipulator.mutable.block.LayeredData.d.ts | 23 + ...manipulator.mutable.block.LogAxisData.d.ts | 18 + ...anipulator.mutable.block.MoistureData.d.ts | 23 + ...anipulator.mutable.block.OccupiedData.d.ts | 23 + ...ta.manipulator.mutable.block.OpenData.d.ts | 23 + ....manipulator.mutable.block.PistonData.d.ts | 18 + ...a.manipulator.mutable.block.PlantData.d.ts | 18 + ...manipulator.mutable.block.PortionData.d.ts | 18 + ...manipulator.mutable.block.PoweredData.d.ts | 23 + ...ipulator.mutable.block.PrismarineData.d.ts | 18 + ....manipulator.mutable.block.QuartzData.d.ts | 18 + ...lator.mutable.block.RailDirectionData.d.ts | 18 + ...tor.mutable.block.RedstonePoweredData.d.ts | 24 + ...ta.manipulator.mutable.block.SandData.d.ts | 18 + ...nipulator.mutable.block.SandstoneData.d.ts | 18 + ...anipulator.mutable.block.SeamlessData.d.ts | 23 + ...a.manipulator.mutable.block.ShrubData.d.ts | 18 + ...ta.manipulator.mutable.block.SlabData.d.ts | 18 + ....manipulator.mutable.block.SnowedData.d.ts | 23 + ...ipulator.mutable.block.StairShapeData.d.ts | 18 + ...a.manipulator.mutable.block.StoneData.d.ts | 18 + ...ta.manipulator.mutable.block.TreeData.d.ts | 18 + ...ta.manipulator.mutable.block.WallData.d.ts | 18 + ...ator.mutable.block.WireAttachmentData.d.ts | 48 + ...or.mutable.common.AbstractBooleanData.d.ts | 28 + ....common.AbstractBoundedComparableData.d.ts | 42 + ...nipulator.mutable.common.AbstractData.d.ts | 74 + ...ulator.mutable.common.AbstractIntData.d.ts | 20 + ...lator.mutable.common.AbstractListData.d.ts | 44 + ...tor.mutable.common.AbstractMappedData.d.ts | 38 + ...able.common.AbstractSingleCatalogData.d.ts | 30 + ...tor.mutable.common.AbstractSingleData.d.ts | 62 + ...mutable.common.AbstractSingleEnumData.d.ts | 30 + ...pulator.mutable.entity.AbsorptionData.d.ts | 23 + ...lator.mutable.entity.AccelerationData.d.ts | 24 + ...pulator.mutable.entity.ActiveItemData.d.ts | 25 + ...or.mutable.entity.AffectsSpawningData.d.ts | 27 + ...anipulator.mutable.entity.AgeableData.d.ts | 29 + ....manipulator.mutable.entity.AgentData.d.ts | 23 + ...pulator.mutable.entity.AggressiveData.d.ts | 23 + ...ipulator.mutable.entity.AngerableData.d.ts | 23 + ...or.mutable.entity.AreaEffectCloudData.d.ts | 92 + ...pulator.mutable.entity.ArmorStandData.d.ts | 41 + ...ta.manipulator.mutable.entity.ArtData.d.ts | 18 + ...mutable.entity.BodyPartRotationalData.d.ts | 54 + ...ipulator.mutable.entity.BreathingData.d.ts | 31 + ...ipulator.mutable.entity.BreedableData.d.ts | 23 + ...manipulator.mutable.entity.CareerData.d.ts | 18 + ...anipulator.mutable.entity.ChargedData.d.ts | 23 + ...ulator.mutable.entity.CriticalHitData.d.ts | 23 + ....mutable.entity.CustomNameVisibleData.d.ts | 23 + ...pulator.mutable.entity.DamageableData.d.ts | 33 + ...nipulator.mutable.entity.DamagingData.d.ts | 33 + ...lator.mutable.entity.DespawnDelayData.d.ts | 29 + ...ator.mutable.entity.DisabledSlotsData.d.ts | 28 + ...lator.mutable.entity.DominantHandData.d.ts | 24 + ...lator.mutable.entity.ElytraFlyingData.d.ts | 23 + ...manipulator.mutable.entity.ExpOrbData.d.ts | 23 + ...r.mutable.entity.ExperienceHolderData.d.ts | 47 + ...ipulator.mutable.entity.ExpirableData.d.ts | 24 + ...or.mutable.entity.ExplosionRadiusData.d.ts | 26 + ...lator.mutable.entity.FallDistanceData.d.ts | 23 + ...lator.mutable.entity.FallingBlockData.d.ts | 57 + ...ipulator.mutable.entity.FlammableData.d.ts | 23 + ...ator.mutable.entity.FlyingAbilityData.d.ts | 23 + ...manipulator.mutable.entity.FlyingData.d.ts | 23 + ...a.manipulator.mutable.entity.FoodData.d.ts | 45 + ...a.manipulator.mutable.entity.FuseData.d.ts | 35 + ...nipulator.mutable.entity.GameModeData.d.ts | 18 + ...anipulator.mutable.entity.GlowingData.d.ts | 23 + ...anipulator.mutable.entity.GravityData.d.ts | 24 + ...nipulator.mutable.entity.GriefingData.d.ts | 23 + ...manipulator.mutable.entity.HealthData.d.ts | 36 + ...ator.mutable.entity.HealthScalingData.d.ts | 28 + ....manipulator.mutable.entity.HorseData.d.ts | 28 + ...pulator.mutable.entity.IgniteableData.d.ts | 30 + ...lator.mutable.entity.InvisibilityData.d.ts | 51 + ...or.mutable.entity.InvulnerabilityData.d.ts | 33 + ...manipulator.mutable.entity.JohnnyData.d.ts | 24 + ...a.manipulator.mutable.entity.JoinData.d.ts | 30 + ...ipulator.mutable.entity.KnockbackData.d.ts | 23 + ....manipulator.mutable.entity.LeashData.d.ts | 23 + ...ator.mutable.entity.MinecartBlockData.d.ts | 30 + ...ator.mutable.entity.MovementSpeedData.d.ts | 28 + ...manipulator.mutable.entity.OcelotData.d.ts | 18 + ...manipulator.mutable.entity.ParrotData.d.ts | 18 + ...ipulator.mutable.entity.PassengerData.d.ts | 24 + ...pulator.mutable.entity.PersistingData.d.ts | 24 + ...ulator.mutable.entity.PickupDelayData.d.ts | 29 + ...pulator.mutable.entity.PickupRuleData.d.ts | 18 + ...ipulator.mutable.entity.PigSaddleData.d.ts | 23 + ...ator.mutable.entity.PlayerCreatedData.d.ts | 24 + ...anipulator.mutable.entity.PlayingData.d.ts | 23 + ...manipulator.mutable.entity.RabbitData.d.ts | 18 + ...or.mutable.entity.RespawnLocationData.d.ts | 33 + ...ipulator.mutable.entity.ScreamingData.d.ts | 23 + ...pulator.mutable.entity.ShatteringData.d.ts | 24 + ...anipulator.mutable.entity.ShearedData.d.ts | 23 + ...manipulator.mutable.entity.SilentData.d.ts | 23 + ...anipulator.mutable.entity.SittingData.d.ts | 23 + ...a.manipulator.mutable.entity.SizeData.d.ts | 33 + ...a.manipulator.mutable.entity.SkinData.d.ts | 24 + ...nipulator.mutable.entity.SleepingData.d.ts | 25 + ....manipulator.mutable.entity.SlimeData.d.ts | 23 + ...nipulator.mutable.entity.SneakingData.d.ts | 23 + ...manipulator.mutable.entity.SprintData.d.ts | 23 + ...ipulator.mutable.entity.StatisticData.d.ts | 18 + ...ulator.mutable.entity.StuckArrowsData.d.ts | 23 + ...nipulator.mutable.entity.TameableData.d.ts | 24 + ...tor.mutable.entity.TargetedEntityData.d.ts | 23 + ...pulator.mutable.entity.TradeOfferData.d.ts | 24 + ...anipulator.mutable.entity.VehicleData.d.ts | 30 + ...nipulator.mutable.entity.VelocityData.d.ts | 24 + ...a.manipulator.mutable.item.AuthorData.d.ts | 23 + ...anipulator.mutable.item.BlockItemData.d.ts | 24 + ...anipulator.mutable.item.BreakableData.d.ts | 24 + ...ata.manipulator.mutable.item.CoalData.d.ts | 18 + ...nipulator.mutable.item.CookedFishData.d.ts | 18 + ...nipulator.mutable.item.DurabilityData.d.ts | 32 + ...ipulator.mutable.item.EnchantmentData.d.ts | 23 + ...ata.manipulator.mutable.item.FishData.d.ts | 18 + ...nipulator.mutable.item.GenerationData.d.ts | 24 + ...ipulator.mutable.item.GoldenAppleData.d.ts | 18 + ...ata.manipulator.mutable.item.HideData.d.ts | 48 + ...ulator.mutable.item.InventoryItemData.d.ts | 18 + ...ata.manipulator.mutable.item.LoreData.d.ts | 23 + ....manipulator.mutable.item.MapItemData.d.ts | 18 + ...ta.manipulator.mutable.item.PagedData.d.ts | 23 + ...anipulator.mutable.item.PlaceableData.d.ts | 24 + ...nipulator.mutable.item.PlainPagedData.d.ts | 23 + ...anipulator.mutable.item.SpawnableData.d.ts | 18 + ...or.mutable.item.StoredEnchantmentData.d.ts | 24 + ...pulator.mutable.tileentity.BannerData.d.ts | 29 + ...pulator.mutable.tileentity.BeaconData.d.ts | 36 + ...anipulator.mutable.tileentity.BedData.d.ts | 23 + ...r.mutable.tileentity.BrewingStandData.d.ts | 24 + ...lator.mutable.tileentity.CooldownData.d.ts | 23 + ...tor.mutable.tileentity.EndGatewayData.d.ts | 40 + ...ulator.mutable.tileentity.FurnaceData.d.ts | 50 + ...lator.mutable.tileentity.LockableData.d.ts | 23 + ...nipulator.mutable.tileentity.NoteData.d.ts | 23 + ...nipulator.mutable.tileentity.SignData.d.ts | 24 + ...ator.mutable.tileentity.StructureData.d.ts | 68 + ...epowered.api.data.merge.MergeFunction.d.ts | 56 + ...ed.api.data.meta.PatternLayer.Builder.d.ts | 34 + ...ngepowered.api.data.meta.PatternLayer.d.ts | 30 + ....data.persistence.AbstractDataBuilder.d.ts | 26 + ...ered.api.data.persistence.DataBuilder.d.ts | 26 + ...i.data.persistence.DataContentUpdater.d.ts | 14 + ...wered.api.data.persistence.DataFormat.d.ts | 26 + ...ered.api.data.persistence.DataFormats.d.ts | 20 + ...d.api.data.persistence.DataTranslator.d.ts | 37 + ....api.data.persistence.DataTranslators.d.ts | 64 + ...data.persistence.InvalidDataException.d.ts | 36 + ...ersistence.InvalidDataFormatException.d.ts | 36 + ...api.data.persistence.StringDataFormat.d.ts | 38 + ...ed.api.data.property.AbstractProperty.d.ts | 75 + ...red.api.data.property.BooleanProperty.d.ts | 33 + ...perty.DirectionRelativePropertyHolder.d.ts | 20 + ...pi.data.property.DisplacementProperty.d.ts | 28 + ...ered.api.data.property.DoubleProperty.d.ts | 33 + ...powered.api.data.property.IntProperty.d.ts | 33 + ...a.property.LocationBasePropertyHolder.d.ts | 84 + ...ered.api.data.property.PropertyHolder.d.ts | 33 + ...ed.api.data.property.PropertyRegistry.d.ts | 28 + ...wered.api.data.property.PropertyStore.d.ts | 47 + ...roperty.block.BlastResistanceProperty.d.ts | 26 + ...ata.property.block.CollectiveProperty.d.ts | 18 + ...data.property.block.FlammableProperty.d.ts | 28 + ...y.block.FullBlockSelectionBoxProperty.d.ts | 28 + ...roperty.block.GravityAffectedProperty.d.ts | 27 + ...roperty.block.GroundLuminanceProperty.d.ts | 33 + ....data.property.block.HardnessProperty.d.ts | 26 + ....data.property.block.HeldItemProperty.d.ts | 29 + ...perty.block.IndirectlyPoweredProperty.d.ts | 26 + ...ata.property.block.InstrumentProperty.d.ts | 24 + ....property.block.LightEmissionProperty.d.ts | 33 + ....property.block.MatterProperty.Matter.d.ts | 28 + ...pi.data.property.block.MatterProperty.d.ts | 30 + ....data.property.block.PassableProperty.d.ts | 26 + ...i.data.property.block.PoweredProperty.d.ts | 26 + ...ta.property.block.ReplaceableProperty.d.ts | 30 + ...a.property.block.SkyLuminanceProperty.d.ts | 33 + ...data.property.block.SolidCubeProperty.d.ts | 26 + ...perty.block.StatisticsTrackedProperty.d.ts | 31 + ...property.block.SurrogateBlockProperty.d.ts | 26 + ...ta.property.block.TemperatureProperty.d.ts | 26 + ...ta.property.block.UnbreakableProperty.d.ts | 29 + ....property.entity.DominantHandProperty.d.ts | 31 + ...ata.property.entity.EyeHeightProperty.d.ts | 28 + ...a.property.entity.EyeLocationProperty.d.ts | 31 + ...roperty.item.ApplicableEffectProperty.d.ts | 28 + ....data.property.item.ArmorTypeProperty.d.ts | 31 + ...ata.property.item.BurningFuelProperty.d.ts | 28 + ...roperty.item.DamageAbsorptionProperty.d.ts | 34 + ...data.property.item.EfficiencyProperty.d.ts | 33 + ....data.property.item.EquipmentProperty.d.ts | 33 + ...property.item.FoodRestorationProperty.d.ts | 31 + ...data.property.item.HarvestingProperty.d.ts | 28 + ...api.data.property.item.RecordProperty.d.ts | 23 + ...data.property.item.SaturationProperty.d.ts | 26 + ....data.property.item.SmeltableProperty.d.ts | 31 + ...i.data.property.item.ToolTypeProperty.d.ts | 32 + ...i.data.property.item.UseLimitProperty.d.ts | 31 + ...spongepowered.api.data.type.ArmorType.d.ts | 20 + ...pongepowered.api.data.type.ArmorTypes.d.ts | 24 + .../org.spongepowered.api.data.type.Art.d.ts | 24 + .../org.spongepowered.api.data.type.Arts.d.ts | 66 + ...ered.api.data.type.BannerPatternShape.d.ts | 14 + ...red.api.data.type.BannerPatternShapes.d.ts | 92 + ...powered.api.data.type.BigMushroomType.d.ts | 14 + ...owered.api.data.type.BigMushroomTypes.d.ts | 40 + ....spongepowered.api.data.type.BodyPart.d.ts | 14 + ...spongepowered.api.data.type.BodyParts.d.ts | 26 + ...spongepowered.api.data.type.BrickType.d.ts | 14 + ...pongepowered.api.data.type.BrickTypes.d.ts | 22 + ...rg.spongepowered.api.data.type.Career.d.ts | 20 + ...g.spongepowered.api.data.type.Careers.d.ts | 38 + ....spongepowered.api.data.type.CoalType.d.ts | 14 + ...spongepowered.api.data.type.CoalTypes.d.ts | 18 + ...epowered.api.data.type.ComparatorType.d.ts | 14 + ...powered.api.data.type.ComparatorTypes.d.ts | 18 + ...pongepowered.api.data.type.CookedFish.d.ts | 19 + ...ngepowered.api.data.type.CookedFishes.d.ts | 18 + ....spongepowered.api.data.type.DirtType.d.ts | 14 + ...spongepowered.api.data.type.DirtTypes.d.ts | 20 + ...ered.api.data.type.DisguisedBlockType.d.ts | 14 + ...red.api.data.type.DisguisedBlockTypes.d.ts | 26 + ...powered.api.data.type.DoublePlantType.d.ts | 14 + ...owered.api.data.type.DoublePlantTypes.d.ts | 26 + ....spongepowered.api.data.type.DyeColor.d.ts | 19 + ...spongepowered.api.data.type.DyeColors.d.ts | 46 + .../org.spongepowered.api.data.type.Fish.d.ts | 19 + ...rg.spongepowered.api.data.type.Fishes.d.ts | 22 + ...ongepowered.api.data.type.GoldenApple.d.ts | 14 + ...ngepowered.api.data.type.GoldenApples.d.ts | 18 + ...epowered.api.data.type.HandPreference.d.ts | 14 + ...powered.api.data.type.HandPreferences.d.ts | 18 + ....spongepowered.api.data.type.HandType.d.ts | 14 + ...spongepowered.api.data.type.HandTypes.d.ts | 18 + ...org.spongepowered.api.data.type.Hinge.d.ts | 14 + ...rg.spongepowered.api.data.type.Hinges.d.ts | 18 + ...pongepowered.api.data.type.HorseColor.d.ts | 14 + ...ongepowered.api.data.type.HorseColors.d.ts | 28 + ...pongepowered.api.data.type.HorseStyle.d.ts | 14 + ...ongepowered.api.data.type.HorseStyles.d.ts | 24 + ...epowered.api.data.type.InstrumentType.d.ts | 20 + ...powered.api.data.type.InstrumentTypes.d.ts | 34 + ...ngepowered.api.data.type.LlamaVariant.d.ts | 14 + ...gepowered.api.data.type.LlamaVariants.d.ts | 22 + ...g.spongepowered.api.data.type.LogAxes.d.ts | 22 + ...g.spongepowered.api.data.type.LogAxis.d.ts | 14 + ...spongepowered.api.data.type.NotePitch.d.ts | 14 + ...ongepowered.api.data.type.NotePitches.d.ts | 64 + ...pongepowered.api.data.type.OcelotType.d.ts | 14 + ...ongepowered.api.data.type.OcelotTypes.d.ts | 22 + ...gepowered.api.data.type.ParrotVariant.d.ts | 14 + ...epowered.api.data.type.ParrotVariants.d.ts | 24 + ...pongepowered.api.data.type.PickupRule.d.ts | 14 + ...ongepowered.api.data.type.PickupRules.d.ts | 20 + ...pongepowered.api.data.type.PistonType.d.ts | 14 + ...ongepowered.api.data.type.PistonTypes.d.ts | 18 + ...spongepowered.api.data.type.PlantType.d.ts | 14 + ...pongepowered.api.data.type.PlantTypes.d.ts | 34 + ...ongepowered.api.data.type.PortionType.d.ts | 14 + ...ngepowered.api.data.type.PortionTypes.d.ts | 18 + ...epowered.api.data.type.PrismarineType.d.ts | 14 + ...powered.api.data.type.PrismarineTypes.d.ts | 20 + ...pongepowered.api.data.type.Profession.d.ts | 19 + ...ongepowered.api.data.type.Professions.d.ts | 24 + ...pongepowered.api.data.type.QuartzType.d.ts | 14 + ...ongepowered.api.data.type.QuartzTypes.d.ts | 24 + ...pongepowered.api.data.type.RabbitType.d.ts | 14 + ...ongepowered.api.data.type.RabbitTypes.d.ts | 28 + ...gepowered.api.data.type.RailDirection.d.ts | 14 + ...epowered.api.data.type.RailDirections.d.ts | 34 + ....spongepowered.api.data.type.SandType.d.ts | 14 + ...spongepowered.api.data.type.SandTypes.d.ts | 18 + ...gepowered.api.data.type.SandstoneType.d.ts | 14 + ...epowered.api.data.type.SandstoneTypes.d.ts | 20 + ...spongepowered.api.data.type.ShrubType.d.ts | 14 + ...pongepowered.api.data.type.ShrubTypes.d.ts | 20 + ....spongepowered.api.data.type.SkinPart.d.ts | 14 + ...spongepowered.api.data.type.SkinParts.d.ts | 28 + ...spongepowered.api.data.type.SkullType.d.ts | 14 + ...pongepowered.api.data.type.SkullTypes.d.ts | 26 + ....spongepowered.api.data.type.SlabType.d.ts | 14 + ...spongepowered.api.data.type.SlabTypes.d.ts | 32 + ...pongepowered.api.data.type.StairShape.d.ts | 14 + ...ongepowered.api.data.type.StairShapes.d.ts | 24 + ...spongepowered.api.data.type.StoneType.d.ts | 14 + ...pongepowered.api.data.type.StoneTypes.d.ts | 28 + ...gepowered.api.data.type.StructureMode.d.ts | 14 + ...epowered.api.data.type.StructureModes.d.ts | 22 + ....spongepowered.api.data.type.ToolType.d.ts | 14 + ...spongepowered.api.data.type.ToolTypes.d.ts | 24 + ....spongepowered.api.data.type.TreeType.d.ts | 14 + ...spongepowered.api.data.type.TreeTypes.d.ts | 26 + ....spongepowered.api.data.type.WallType.d.ts | 14 + ...spongepowered.api.data.type.WallTypes.d.ts | 18 + ...ered.api.data.type.WireAttachmentType.d.ts | 14 + ...red.api.data.type.WireAttachmentTypes.d.ts | 20 + ...pongepowered.api.data.value.BaseValue.d.ts | 46 + ...gepowered.api.data.value.BoundedValue.d.ts | 37 + ...powered.api.data.value.ValueContainer.d.ts | 84 + ...alue.ValueFactory.BoundedValueBuilder.d.ts | 57 + ...gepowered.api.data.value.ValueFactory.d.ts | 83 + ...value.immutable.ImmutableBoundedValue.d.ts | 20 + ...ue.immutable.ImmutableCollectionValue.d.ts | 85 + ...ta.value.immutable.ImmutableListValue.d.ts | 56 + ...ata.value.immutable.ImmutableMapValue.d.ts | 88 + ...alue.immutable.ImmutableOptionalValue.d.ts | 36 + ...e.immutable.ImmutablePatternListValue.d.ts | 60 + ...ata.value.immutable.ImmutableSetValue.d.ts | 16 + ...i.data.value.immutable.ImmutableValue.d.ts | 40 + ...a.value.immutable.ImmutableValueStore.d.ts | 159 + ...able.ImmutableWeightedCollectionValue.d.ts | 22 + ...pi.data.value.mutable.CollectionValue.d.ts | 93 + ...ata.value.mutable.CompositeValueStore.d.ts | 262 ++ ...ered.api.data.value.mutable.ListValue.d.ts | 55 + ...wered.api.data.value.mutable.MapValue.d.ts | 83 + ...ata.value.mutable.MutableBoundedValue.d.ts | 20 + ....api.data.value.mutable.OptionalValue.d.ts | 35 + ...i.data.value.mutable.PatternListValue.d.ts | 55 + ...wered.api.data.value.mutable.SetValue.d.ts | 16 + ...epowered.api.data.value.mutable.Value.d.ts | 42 + ...value.mutable.WeightedCollectionValue.d.ts | 22 + .../org.spongepowered.api.effect.Viewer.d.ts | 150 + ...ffect.particle.ParticleEffect.Builder.d.ts | 53 + ...ed.api.effect.particle.ParticleEffect.d.ts | 41 + ...ed.api.effect.particle.ParticleOption.d.ts | 19 + ...d.api.effect.particle.ParticleOptions.d.ts | 38 + ...ered.api.effect.particle.ParticleType.d.ts | 29 + ...red.api.effect.particle.ParticleTypes.d.ts | 122 + ...pi.effect.potion.PotionEffect.Builder.d.ts | 51 + ...owered.api.effect.potion.PotionEffect.d.ts | 54 + ...ed.api.effect.potion.PotionEffectType.d.ts | 25 + ...d.api.effect.potion.PotionEffectTypes.d.ts | 68 + ...ered.api.effect.sound.PitchModulation.d.ts | 94 + ...ered.api.effect.sound.SoundCategories.d.ts | 34 + ...owered.api.effect.sound.SoundCategory.d.ts | 14 + ...ed.api.effect.sound.SoundType.Builder.d.ts | 23 + ...ngepowered.api.effect.sound.SoundType.d.ts | 25 + ...gepowered.api.effect.sound.SoundTypes.d.ts | 1112 ++++++ ...ed.api.effect.sound.record.RecordType.d.ts | 22 + ...d.api.effect.sound.record.RecordTypes.d.ts | 40 + ...ngepowered.api.entity.AreaEffectCloud.d.ts | 84 + ...ongepowered.api.entity.ArmorEquipable.d.ts | 82 + ...spongepowered.api.entity.EnderCrystal.d.ts | 12 + .../org.spongepowered.api.entity.Entity.d.ts | 294 ++ ...ed.api.entity.EntityArchetype.Builder.d.ts | 53 + ...ngepowered.api.entity.EntityArchetype.d.ts | 41 + ...red.api.entity.EntitySnapshot.Builder.d.ts | 37 + ...ongepowered.api.entity.EntitySnapshot.d.ts | 52 + ...g.spongepowered.api.entity.EntityType.d.ts | 17 + ....spongepowered.api.entity.EntityTypes.d.ts | 192 ++ ...rg.spongepowered.api.entity.Equipable.d.ts | 38 + ...pongepowered.api.entity.ExperienceOrb.d.ts | 23 + ...spongepowered.api.entity.FallingBlock.d.ts | 55 + .../org.spongepowered.api.entity.Item.d.ts | 29 + ...pongepowered.api.entity.ShulkerBullet.d.ts | 24 + .../org.spongepowered.api.entity.Tamer.d.ts | 17 + ...rg.spongepowered.api.entity.Transform.d.ts | 212 ++ .../org.spongepowered.api.entity.ai.Goal.d.ts | 56 + ....spongepowered.api.entity.ai.GoalType.d.ts | 19 + ...spongepowered.api.entity.ai.GoalTypes.d.ts | 18 + ...ongepowered.api.entity.ai.task.AITask.d.ts | 67 + ...ered.api.entity.ai.task.AITaskBuilder.d.ts | 21 + ...powered.api.entity.ai.task.AITaskType.d.ts | 21 + ...owered.api.entity.ai.task.AITaskTypes.d.ts | 26 + ...red.api.entity.ai.task.AbstractAITask.d.ts | 66 + ...i.task.builtin.LookIdleAITask.Builder.d.ts | 20 + ...entity.ai.task.builtin.LookIdleAITask.d.ts | 23 + ...i.task.builtin.SwimmingAITask.Builder.d.ts | 22 + ...entity.ai.task.builtin.SwimmingAITask.d.ts | 40 + ...sk.builtin.WatchClosestAITask.Builder.d.ts | 26 + ...ty.ai.task.builtin.WatchClosestAITask.d.ts | 57 + ...n.creature.AttackLivingAITask.Builder.d.ts | 35 + ...k.builtin.creature.AttackLivingAITask.d.ts | 55 + ...in.creature.AvoidEntityAITask.Builder.d.ts | 48 + ...sk.builtin.creature.AvoidEntityAITask.d.ts | 79 + ...tin.creature.RangeAgentAITask.Builder.d.ts | 28 + ...ask.builtin.creature.RangeAgentAITask.d.ts | 61 + ...builtin.creature.WanderAITask.Builder.d.ts | 26 + ...ai.task.builtin.creature.WanderAITask.d.ts | 49 + ...orse.RunAroundLikeCrazyAITask.Builder.d.ts | 26 + ...eature.horse.RunAroundLikeCrazyAITask.d.ts | 40 + ...NearestAttackableTargetAITask.Builder.d.ts | 30 + ...get.FindNearestAttackableTargetAITask.d.ts | 61 + ....creature.target.TargetAITask.Builder.d.ts | 30 + ....builtin.creature.target.TargetAITask.d.ts | 50 + ...owered.api.entity.explosive.Explosive.d.ts | 32 + ...d.api.entity.explosive.FusedExplosive.d.ts | 35 + ...owered.api.entity.explosive.PrimedTNT.d.ts | 19 + ...ngepowered.api.entity.hanging.Hanging.d.ts | 25 + ...epowered.api.entity.hanging.ItemFrame.d.ts | 14 + ...powered.api.entity.hanging.LeashHitch.d.ts | 22 + ...gepowered.api.entity.hanging.Painting.d.ts | 24 + ...pongepowered.api.entity.living.Aerial.d.ts | 14 + ...ongepowered.api.entity.living.Ageable.d.ts | 36 + ...spongepowered.api.entity.living.Agent.d.ts | 41 + ...ongepowered.api.entity.living.Ambient.d.ts | 14 + ...ongepowered.api.entity.living.Aquatic.d.ts | 14 + ...epowered.api.entity.living.ArmorStand.d.ts | 59 + ...g.spongepowered.api.entity.living.Bat.d.ts | 14 + ...ngepowered.api.entity.living.Creature.d.ts | 14 + ...ongepowered.api.entity.living.Hostile.d.ts | 14 + ...spongepowered.api.entity.living.Human.d.ts | 14 + ...ngepowered.api.entity.living.Humanoid.d.ts | 46 + ...pongepowered.api.entity.living.Living.d.ts | 79 + ...pongepowered.api.entity.living.Ranger.d.ts | 14 + ...spongepowered.api.entity.living.Squid.d.ts | 14 + ...ngepowered.api.entity.living.Villager.d.ts | 32 + ...wered.api.entity.living.animal.Animal.d.ts | 16 + ...ered.api.entity.living.animal.Chicken.d.ts | 16 + ...epowered.api.entity.living.animal.Cow.d.ts | 16 + ...wered.api.entity.living.animal.Donkey.d.ts | 16 + ...owered.api.entity.living.animal.Horse.d.ts | 16 + ...owered.api.entity.living.animal.Llama.d.ts | 27 + ...ed.api.entity.living.animal.Mooshroom.d.ts | 16 + ...powered.api.entity.living.animal.Mule.d.ts | 16 + ...wered.api.entity.living.animal.Ocelot.d.ts | 28 + ...wered.api.entity.living.animal.Parrot.d.ts | 28 + ...epowered.api.entity.living.animal.Pig.d.ts | 26 + ...ed.api.entity.living.animal.PolarBear.d.ts | 16 + ...wered.api.entity.living.animal.Rabbit.d.ts | 27 + ...pi.entity.living.animal.RideableHorse.d.ts | 31 + ...owered.api.entity.living.animal.Sheep.d.ts | 28 + ...pi.entity.living.animal.SkeletonHorse.d.ts | 16 + ...powered.api.entity.living.animal.Wolf.d.ts | 38 + ....api.entity.living.animal.ZombieHorse.d.ts | 16 + ...i.entity.living.complex.ComplexLiving.d.ts | 21 + ...tity.living.complex.ComplexLivingPart.d.ts | 21 + ...api.entity.living.complex.EnderDragon.d.ts | 36 + ...entity.living.complex.EnderDragonPart.d.ts | 18 + ...complex.dragon.phase.EnderDragonPhase.d.ts | 30 + ....dragon.phase.EnderDragonPhaseManager.d.ts | 30 + ...lex.dragon.phase.EnderDragonPhaseType.d.ts | 20 + ...ex.dragon.phase.EnderDragonPhaseTypes.d.ts | 42 + ...powered.api.entity.living.golem.Golem.d.ts | 16 + ...red.api.entity.living.golem.IronGolem.d.ts | 22 + ...wered.api.entity.living.golem.Shulker.d.ts | 44 + ...red.api.entity.living.golem.SnowGolem.d.ts | 16 + ...wered.api.entity.living.monster.Blaze.d.ts | 22 + ...owered.api.entity.living.monster.Boss.d.ts | 16 + ....api.entity.living.monster.CaveSpider.d.ts | 16 + ...red.api.entity.living.monster.Creeper.d.ts | 23 + ...ed.api.entity.living.monster.Enderman.d.ts | 16 + ...d.api.entity.living.monster.Endermite.d.ts | 27 + ...ered.api.entity.living.monster.Evoker.d.ts | 16 + ...wered.api.entity.living.monster.Ghast.d.ts | 16 + ...wered.api.entity.living.monster.Giant.d.ts | 16 + ...ed.api.entity.living.monster.Guardian.d.ts | 27 + ...owered.api.entity.living.monster.Husk.d.ts | 16 + ....api.entity.living.monster.Illusioner.d.ts | 16 + ...d.api.entity.living.monster.MagmaCube.d.ts | 16 + ...red.api.entity.living.monster.Monster.d.ts | 16 + ....api.entity.living.monster.Silverfish.d.ts | 16 + ...ed.api.entity.living.monster.Skeleton.d.ts | 16 + ...wered.api.entity.living.monster.Slime.d.ts | 27 + ...ered.api.entity.living.monster.Spider.d.ts | 21 + ...wered.api.entity.living.monster.Stray.d.ts | 16 + ...powered.api.entity.living.monster.Vex.d.ts | 16 + ....api.entity.living.monster.Vindicator.d.ts | 23 + ...i.entity.living.monster.WhiteSkeleton.d.ts | 16 + ...wered.api.entity.living.monster.Witch.d.ts | 16 + ...ered.api.entity.living.monster.Wither.d.ts | 34 + ....entity.living.monster.WitherSkeleton.d.ts | 16 + ...ered.api.entity.living.monster.Zombie.d.ts | 16 + ...pi.entity.living.monster.ZombiePigman.d.ts | 27 + ....entity.living.monster.ZombieVillager.d.ts | 16 + ....entity.living.player.CooldownTracker.d.ts | 48 + ...wered.api.entity.living.player.Player.d.ts | 229 ++ ...powered.api.entity.living.player.User.d.ts | 80 + ...ntity.living.player.gamemode.GameMode.d.ts | 18 + ...tity.living.player.gamemode.GameModes.d.ts | 28 + ....api.entity.living.player.tab.TabList.d.ts | 77 + ...iving.player.tab.TabListEntry.Builder.d.ts | 50 + ...entity.living.player.tab.TabListEntry.d.ts | 101 + ....entity.projectile.DamagingProjectile.d.ts | 36 + ...ongepowered.api.entity.projectile.Egg.d.ts | 14 + ...ered.api.entity.projectile.EnderPearl.d.ts | 14 + ....projectile.EntityTargetingProjectile.d.ts | 25 + ...ered.api.entity.projectile.EyeOfEnder.d.ts | 25 + ...owered.api.entity.projectile.Firework.d.ts | 26 + ...owered.api.entity.projectile.FishHook.d.ts | 28 + ...wered.api.entity.projectile.LlamaSpit.d.ts | 14 + ...ered.api.entity.projectile.Projectile.d.ts | 28 + ....entity.projectile.ProjectileLauncher.d.ts | 14 + ...owered.api.entity.projectile.Snowball.d.ts | 14 + ...api.entity.projectile.ThrownExpBottle.d.ts | 14 + ...ed.api.entity.projectile.ThrownPotion.d.ts | 25 + ...red.api.entity.projectile.arrow.Arrow.d.ts | 28 + ...entity.projectile.arrow.SpectralArrow.d.ts | 16 + ...i.entity.projectile.arrow.TippedArrow.d.ts | 16 + ...y.projectile.explosive.DragonFireball.d.ts | 16 + ...tity.projectile.explosive.WitherSkull.d.ts | 16 + ...rojectile.explosive.fireball.Fireball.d.ts | 20 + ...tile.explosive.fireball.LargeFireball.d.ts | 18 + ...tile.explosive.fireball.SmallFireball.d.ts | 18 + ...ojectile.source.BlockProjectileSource.d.ts | 26 + ...ty.projectile.source.ProjectileSource.d.ts | 28 + ...ectile.source.UnknownProjectileSource.d.ts | 20 + ...spongepowered.api.entity.vehicle.Boat.d.ts | 61 + ...entity.vehicle.minecart.ChestMinecart.d.ts | 16 + ...vehicle.minecart.CommandBlockMinecart.d.ts | 16 + ...ty.vehicle.minecart.ContainerMinecart.d.ts | 18 + ...tity.vehicle.minecart.FurnaceMinecart.d.ts | 30 + ...ntity.vehicle.minecart.HopperMinecart.d.ts | 23 + ....api.entity.vehicle.minecart.Minecart.d.ts | 72 + ...y.vehicle.minecart.MobSpawnerMinecart.d.ts | 21 + ...ity.vehicle.minecart.RideableMinecart.d.ts | 16 + ...i.entity.vehicle.minecart.TNTMinecart.d.ts | 16 + ...epowered.api.entity.weather.Lightning.d.ts | 14 + ...ered.api.entity.weather.WeatherEffect.d.ts | 35 + ...g.spongepowered.api.event.Cancellable.d.ts | 22 + ...pi.event.CauseStackManager.StackFrame.d.ts | 50 + ...gepowered.api.event.CauseStackManager.d.ts | 82 + .../org.spongepowered.api.event.Event.d.ts | 33 + ...spongepowered.api.event.EventListener.d.ts | 17 + ....spongepowered.api.event.EventManager.d.ts | 93 + ....spongepowered.api.event.GenericEvent.d.ts | 18 + .../org.spongepowered.api.event.Listener.d.ts | 25 + .../org.spongepowered.api.event.Order.d.ts | 34 + ...wered.api.event.TristateResult.Result.d.ts | 24 + ...pongepowered.api.event.TristateResult.d.ts | 36 + ....api.event.action.CollideEvent.Impact.d.ts | 21 + ...powered.api.event.action.CollideEvent.d.ts | 14 + ....event.action.FishingEvent.HookEntity.d.ts | 16 + ...d.api.event.action.FishingEvent.Start.d.ts | 16 + ...ed.api.event.action.FishingEvent.Stop.d.ts | 28 + ...powered.api.event.action.FishingEvent.d.ts | 19 + ...owered.api.event.action.InteractEvent.d.ts | 20 + ....api.event.action.LightningEvent.Post.d.ts | 16 + ...d.api.event.action.LightningEvent.Pre.d.ts | 16 + ...pi.event.action.LightningEvent.Strike.d.ts | 16 + ...wered.api.event.action.LightningEvent.d.ts | 14 + ...api.event.action.SleepingEvent.Finish.d.ts | 16 + ...d.api.event.action.SleepingEvent.Post.d.ts | 39 + ...ed.api.event.action.SleepingEvent.Pre.d.ts | 16 + ...d.api.event.action.SleepingEvent.Tick.d.ts | 16 + ...owered.api.event.action.SleepingEvent.d.ts | 19 + ...nt.advancement.AdvancementEvent.Grant.d.ts | 22 + ...t.advancement.AdvancementEvent.Revoke.d.ts | 16 + ...pi.event.advancement.AdvancementEvent.d.ts | 19 + ...t.AdvancementTreeEvent.GenerateLayout.d.ts | 21 + ...vent.advancement.AdvancementTreeEvent.d.ts | 19 + ...vent.advancement.CriterionEvent.Grant.d.ts | 22 + ...ent.advancement.CriterionEvent.Revoke.d.ts | 16 + ...vancement.CriterionEvent.Score.Change.d.ts | 28 + ...dvancement.CriterionEvent.Score.Grant.d.ts | 18 + ...vancement.CriterionEvent.Score.Revoke.d.ts | 18 + ...vent.advancement.CriterionEvent.Score.d.ts | 18 + ...nt.advancement.CriterionEvent.Trigger.d.ts | 32 + ....api.event.advancement.CriterionEvent.d.ts | 19 + ...pi.event.block.ChangeBlockEvent.Break.d.ts | 16 + ...pi.event.block.ChangeBlockEvent.Decay.d.ts | 16 + ...api.event.block.ChangeBlockEvent.Grow.d.ts | 16 + ...i.event.block.ChangeBlockEvent.Modify.d.ts | 16 + ...pi.event.block.ChangeBlockEvent.Place.d.ts | 16 + ...api.event.block.ChangeBlockEvent.Post.d.ts | 16 + ....api.event.block.ChangeBlockEvent.Pre.d.ts | 27 + ...ered.api.event.block.ChangeBlockEvent.d.ts | 37 + ....event.block.CollideBlockEvent.Impact.d.ts | 16 + ...red.api.event.block.CollideBlockEvent.d.ts | 30 + ...k.InteractBlockEvent.Primary.MainHand.d.ts | 18 + ...ck.InteractBlockEvent.Primary.OffHand.d.ts | 18 + ...vent.block.InteractBlockEvent.Primary.d.ts | 16 + ...InteractBlockEvent.Secondary.MainHand.d.ts | 18 + ....InteractBlockEvent.Secondary.OffHand.d.ts | 18 + ...nt.block.InteractBlockEvent.Secondary.d.ts | 69 + ...ed.api.event.block.InteractBlockEvent.d.ts | 20 + ....event.block.NotifyNeighborBlockEvent.d.ts | 38 + ...ered.api.event.block.TargetBlockEvent.d.ts | 19 + ...api.event.block.TickBlockEvent.Random.d.ts | 16 + ....event.block.TickBlockEvent.Scheduled.d.ts | 16 + ...owered.api.event.block.TickBlockEvent.d.ts | 14 + ....block.tileentity.BrewingEvent.Finish.d.ts | 24 + ...ock.tileentity.BrewingEvent.Interrupt.d.ts | 24 + ...t.block.tileentity.BrewingEvent.Start.d.ts | 18 + ...nt.block.tileentity.BrewingEvent.Tick.d.ts | 18 + ...i.event.block.tileentity.BrewingEvent.d.ts | 23 + ...vent.block.tileentity.ChangeSignEvent.d.ts | 31 + ...ock.tileentity.SmeltEvent.ConsumeFuel.d.ts | 18 + ...nt.block.tileentity.SmeltEvent.Finish.d.ts | 24 + ...block.tileentity.SmeltEvent.Interrupt.d.ts | 24 + ...ent.block.tileentity.SmeltEvent.Start.d.ts | 18 + ...vent.block.tileentity.SmeltEvent.Tick.d.ts | 18 + ...api.event.block.tileentity.SmeltEvent.d.ts | 23 + ...lock.tileentity.TargetTileEntityEvent.d.ts | 21 + ...powered.api.event.cause.Cause.Builder.d.ts | 40 + ...g.spongepowered.api.event.cause.Cause.d.ts | 128 + ....api.event.cause.EventContext.Builder.d.ts | 30 + ...epowered.api.event.cause.EventContext.d.ts | 63 + ...i.event.cause.EventContextKey.Builder.d.ts | 28 + ...wered.api.event.cause.EventContextKey.d.ts | 24 + ...ered.api.event.cause.EventContextKeys.d.ts | 92 + ...i.event.cause.entity.ModifierFunction.d.ts | 26 + ...nt.cause.entity.damage.DamageFunction.d.ts | 55 + ....entity.damage.DamageModifier.Builder.d.ts | 45 + ...nt.cause.entity.damage.DamageModifier.d.ts | 45 + ...ause.entity.damage.DamageModifierType.d.ts | 18 + ...use.entity.damage.DamageModifierTypes.d.ts | 48 + ....event.cause.entity.damage.DamageType.d.ts | 18 + ...event.cause.entity.damage.DamageTypes.d.ts | 48 + ...mage.source.BlockDamageSource.Builder.d.ts | 32 + ...ntity.damage.source.BlockDamageSource.d.ts | 36 + ...ty.damage.source.DamageSource.Builder.d.ts | 22 + ...urce.DamageSource.DamageSourceBuilder.d.ts | 88 + ...use.entity.damage.source.DamageSource.d.ts | 75 + ...se.entity.damage.source.DamageSources.d.ts | 42 + ...age.source.EntityDamageSource.Builder.d.ts | 22 + ...amageSource.EntityDamageSourceBuilder.d.ts | 27 + ...tity.damage.source.EntityDamageSource.d.ts | 30 + ...urce.FallingBlockDamageSource.Builder.d.ts | 27 + ...amage.source.FallingBlockDamageSource.d.ts | 33 + ...ectEntityDamageSource.AbstractBuilder.d.ts | 27 + ...ce.IndirectEntityDamageSource.Builder.d.ts | 22 + ...age.source.IndirectEntityDamageSource.d.ts | 32 + ...ge.source.common.AbstractDamageSource.d.ts | 40 + ...ce.common.AbstractDamageSourceBuilder.d.ts | 50 + ...rce.AbstractEntityDamageSourceBuilder.d.ts | 32 + ...rce.common.AbstractEntityDamageSource.d.ts | 42 + ...ractIndirectEntityDamageSourceBuilder.d.ts | 36 + ...on.AbstractIndirectEntityDamageSource.d.ts | 44 + ...nt.cause.entity.dismount.DismountType.d.ts | 18 + ...t.cause.entity.dismount.DismountTypes.d.ts | 24 + ...event.cause.entity.health.HealingType.d.ts | 18 + ...vent.cause.entity.health.HealingTypes.d.ts | 28 + ...nt.cause.entity.health.HealthFunction.d.ts | 55 + ....entity.health.HealthModifier.Builder.d.ts | 46 + ...nt.cause.entity.health.HealthModifier.d.ts | 33 + ...ause.entity.health.HealthModifierType.d.ts | 18 + ...use.entity.health.HealthModifierTypes.d.ts | 32 + ...lth.source.BlockHealingSource.Builder.d.ts | 26 + ...tity.health.source.BlockHealingSource.d.ts | 35 + ...th.source.EntityHealingSource.Builder.d.ts | 22 + ...lingSource.EntityHealingSourceBuilder.d.ts | 24 + ...ity.health.source.EntityHealingSource.d.ts | 30 + ...y.health.source.HealingSource.Builder.d.ts | 22 + ...ce.HealingSource.HealingSourceBuilder.d.ts | 41 + ...se.entity.health.source.HealingSource.d.ts | 42 + ...e.entity.health.source.HealingSources.d.ts | 26 + ...e.IndirectEntityHealingSource.Builder.d.ts | 22 + ...ce.IndirectEntityHealingSourceBuilder.d.ts | 27 + ...th.source.IndirectEntityHealingSource.d.ts | 30 + ...ce.common.AbstractEntityHealingSource.d.ts | 29 + ...on.AbstractEntityHealingSourceBuilder.d.ts | 30 + ...h.source.common.AbstractHealingSource.d.ts | 30 + ...e.common.AbstractHealingSourceBuilder.d.ts | 38 + ...n.AbstractIndirectEntityHealingSource.d.ts | 24 + ...pi.event.cause.entity.spawn.SpawnType.d.ts | 18 + ...i.event.cause.entity.spawn.SpawnTypes.d.ts | 54 + ...nt.cause.entity.teleport.TeleportType.d.ts | 18 + ...t.cause.entity.teleport.TeleportTypes.d.ts | 28 + ...ed.api.event.command.SendCommandEvent.d.ts | 52 + ...i.event.command.TabCompleteEvent.Chat.d.ts | 16 + ...vent.command.TabCompleteEvent.Command.d.ts | 30 + ...ed.api.event.command.TabCompleteEvent.d.ts | 57 + ...ata.ChangeDataHolderEvent.ValueChange.d.ts | 39 + ....api.event.data.ChangeDataHolderEvent.d.ts | 19 + ...event.economy.EconomyTransactionEvent.d.ts | 19 + ...ed.api.event.entity.AffectEntityEvent.d.ts | 46 + ...ed.api.event.entity.AttackEntityEvent.d.ts | 160 + ...i.event.entity.BreedEntityEvent.Breed.d.ts | 21 + ...vent.entity.BreedEntityEvent.FindMate.d.ts | 21 + ...t.entity.BreedEntityEvent.ReadyToMate.d.ts | 18 + ...red.api.event.entity.BreedEntityEvent.d.ts | 14 + ...tity.ChangeEntityEquipmentEvent.Break.d.ts | 16 + ...geEntityEquipmentEvent.TargetHumanoid.d.ts | 16 + ...angeEntityEquipmentEvent.TargetLiving.d.ts | 16 + ...angeEntityEquipmentEvent.TargetPlayer.d.ts | 16 + ...ent.entity.ChangeEntityEquipmentEvent.d.ts | 35 + ...nt.entity.ChangeEntityExperienceEvent.d.ts | 47 + ....ChangeEntityPotionEffectEvent.Expire.d.ts | 16 + ...ty.ChangeEntityPotionEffectEvent.Gain.d.ts | 26 + ....ChangeEntityPotionEffectEvent.Remove.d.ts | 16 + ....entity.ChangeEntityPotionEffectEvent.d.ts | 24 + ...vent.entity.CollideEntityEvent.Impact.d.ts | 16 + ...d.api.event.entity.CollideEntityEvent.d.ts | 14 + ...vent.entity.ConstructEntityEvent.Post.d.ts | 16 + ...event.entity.ConstructEntityEvent.Pre.d.ts | 16 + ...api.event.entity.ConstructEntityEvent.d.ts | 25 + ...ed.api.event.entity.DamageEntityEvent.d.ts | 129 + ...vent.entity.DestructEntityEvent.Death.d.ts | 30 + ....api.event.entity.DestructEntityEvent.d.ts | 14 + ...t.entity.ExpireEntityEvent.TargetItem.d.ts | 16 + ...ed.api.event.entity.ExpireEntityEvent.d.ts | 14 + ...ity.HarvestEntityEvent.TargetHumanoid.d.ts | 16 + ...ntity.HarvestEntityEvent.TargetLiving.d.ts | 16 + ...ntity.HarvestEntityEvent.TargetPlayer.d.ts | 46 + ...d.api.event.entity.HarvestEntityEvent.d.ts | 14 + ...ered.api.event.entity.HealEntityEvent.d.ts | 107 + ...ed.api.event.entity.IgniteEntityEvent.d.ts | 29 + ....InteractEntityEvent.Primary.MainHand.d.ts | 18 + ...y.InteractEntityEvent.Primary.OffHand.d.ts | 18 + ...nt.entity.InteractEntityEvent.Primary.d.ts | 16 + ...nteractEntityEvent.Secondary.MainHand.d.ts | 18 + ...InteractEntityEvent.Secondary.OffHand.d.ts | 18 + ....entity.InteractEntityEvent.Secondary.d.ts | 16 + ....api.event.entity.InteractEntityEvent.d.ts | 14 + ...red.api.event.entity.LeashEntityEvent.d.ts | 14 + ...event.entity.MoveEntityEvent.Position.d.ts | 16 + ...ntity.MoveEntityEvent.Teleport.Portal.d.ts | 65 + ...event.entity.MoveEntityEvent.Teleport.d.ts | 35 + ...ered.api.event.entity.MoveEntityEvent.d.ts | 29 + ...event.entity.RideEntityEvent.Dismount.d.ts | 21 + ...pi.event.entity.RideEntityEvent.Mount.d.ts | 16 + ...ered.api.event.entity.RideEntityEvent.d.ts | 14 + ...ed.api.event.entity.RotateEntityEvent.d.ts | 29 + ...ent.entity.SpawnEntityEvent.ChunkLoad.d.ts | 16 + ....event.entity.SpawnEntityEvent.Custom.d.ts | 16 + ...event.entity.SpawnEntityEvent.Spawner.d.ts | 16 + ...red.api.event.entity.SpawnEntityEvent.d.ts | 14 + ...ered.api.event.entity.TameEntityEvent.d.ts | 16 + ...ed.api.event.entity.TargetEntityEvent.d.ts | 19 + ...d.api.event.entity.UnleashEntityEvent.d.ts | 14 + ...d.api.event.entity.ai.AITaskEvent.Add.d.ts | 30 + ...pi.event.entity.ai.AITaskEvent.Remove.d.ts | 18 + ...wered.api.event.entity.ai.AITaskEvent.d.ts | 32 + ....api.event.entity.ai.SetAITargetEvent.d.ts | 28 + ...y.explosive.DefuseExplosiveEvent.Post.d.ts | 18 + ...ty.explosive.DefuseExplosiveEvent.Pre.d.ts | 18 + ...entity.explosive.DefuseExplosiveEvent.d.ts | 16 + ...tity.explosive.DetonateExplosiveEvent.d.ts | 28 + ...ty.explosive.PrimeExplosiveEvent.Post.d.ts | 18 + ...ity.explosive.PrimeExplosiveEvent.Pre.d.ts | 18 + ....entity.explosive.PrimeExplosiveEvent.d.ts | 16 + ...entity.explosive.TargetExplosiveEvent.d.ts | 18 + ...y.explosive.TargetFusedExplosiveEvent.d.ts | 18 + ....event.entity.item.ItemMergeItemEvent.d.ts | 21 + ...api.event.entity.item.TargetItemEvent.d.ts | 18 + ....event.entity.living.TargetAgentEvent.d.ts | 18 + ...event.entity.living.TargetLivingEvent.d.ts | 18 + ...tity.living.humanoid.AnimateHandEvent.d.ts | 23 + ...noid.ChangeGameModeEvent.TargetPlayer.d.ts | 20 + ...y.living.humanoid.ChangeGameModeEvent.d.ts | 33 + ...umanoid.ChangeLevelEvent.TargetPlayer.d.ts | 20 + ...tity.living.humanoid.ChangeLevelEvent.d.ts | 35 + ...ity.living.humanoid.HandInteractEvent.d.ts | 23 + ...y.living.humanoid.TargetHumanoidEvent.d.ts | 23 + ...ing.humanoid.player.CooldownEvent.End.d.ts | 22 + ...ing.humanoid.player.CooldownEvent.Set.d.ts | 42 + ....living.humanoid.player.CooldownEvent.d.ts | 25 + ...iving.humanoid.player.KickPlayerEvent.d.ts | 20 + ...layer.PlayerChangeClientSettingsEvent.d.ts | 46 + ...rcePackStatusEvent.ResourcePackStatus.d.ts | 39 + ...manoid.player.ResourcePackStatusEvent.d.ts | 35 + ...ng.humanoid.player.RespawnPlayerEvent.d.ts | 51 + ...ing.humanoid.player.TargetPlayerEvent.d.ts | 25 + ...tity.projectile.LaunchProjectileEvent.d.ts | 16 + ...tity.projectile.TargetProjectileEvent.d.ts | 18 + ...spongepowered.api.event.filter.Getter.d.ts | 19 + ...epowered.api.event.filter.IsCancelled.d.ts | 20 + ...epowered.api.event.filter.cause.After.d.ts | 38 + ...ngepowered.api.event.filter.cause.All.d.ts | 21 + ...powered.api.event.filter.cause.Before.d.ts | 38 + ...d.api.event.filter.cause.ContextValue.d.ts | 38 + ...epowered.api.event.filter.cause.First.d.ts | 33 + ...gepowered.api.event.filter.cause.Last.d.ts | 33 + ...gepowered.api.event.filter.cause.Root.d.ts | 33 + ...ongepowered.api.event.filter.data.Has.d.ts | 28 + ...owered.api.event.filter.data.Supports.d.ts | 28 + ...powered.api.event.filter.type.Exclude.d.ts | 21 + ...powered.api.event.filter.type.Include.d.ts | 21 + ...event.game.GameRegistryEvent.Register.d.ts | 32 + ...ered.api.event.game.GameRegistryEvent.d.ts | 14 + ...owered.api.event.game.GameReloadEvent.d.ts | 14 + ...ame.state.GameAboutToStartServerEvent.d.ts | 18 + ...vent.game.state.GameConstructionEvent.d.ts | 18 + ...nt.game.state.GameInitializationEvent.d.ts | 18 + ...vent.game.state.GameLoadCompleteEvent.d.ts | 18 + ...ame.state.GamePostInitializationEvent.d.ts | 18 + ...game.state.GamePreInitializationEvent.d.ts | 18 + ...ent.game.state.GameStartedServerEvent.d.ts | 18 + ...nt.game.state.GameStartingServerEvent.d.ts | 18 + ...d.api.event.game.state.GameStateEvent.d.ts | 21 + ...api.event.game.state.GameStoppedEvent.d.ts | 18 + ...ent.game.state.GameStoppedServerEvent.d.ts | 18 + ...pi.event.game.state.GameStoppingEvent.d.ts | 18 + ...nt.game.state.GameStoppingServerEvent.d.ts | 18 + ...ed.api.event.impl.AbstractAITaskEvent.d.ts | 18 + ....event.impl.AbstractAffectEntityEvent.d.ts | 22 + ....event.impl.AbstractAttackEntityEvent.d.ts | 50 + ...pl.AbstractChangeEntityEquipmentEvent.d.ts | 24 + ....event.impl.AbstractDamageEntityEvent.d.ts | 52 + ...epowered.api.event.impl.AbstractEvent.d.ts | 27 + ...mpl.AbstractGameRegistryRegisterEvent.d.ts | 18 + ...pi.event.impl.AbstractHealEntityEvent.d.ts | 44 + ...d.api.event.impl.AbstractMessageEvent.d.ts | 22 + ....api.event.impl.AbstractModifierEvent.d.ts | 39 + ...i.event.impl.AbstractSpawnEntityEvent.d.ts | 18 + ...i.event.impl.AbstractValueChangeEvent.d.ts | 24 + ...t.item.inventory.AffectItemStackEvent.d.ts | 34 + ....event.item.inventory.AffectSlotEvent.d.ts | 20 + ...entory.ChangeInventoryEvent.Equipment.d.ts | 18 + ...m.inventory.ChangeInventoryEvent.Held.d.ts | 28 + ...ntory.ChangeInventoryEvent.Pickup.Pre.d.ts | 45 + ...inventory.ChangeInventoryEvent.Pickup.d.ts | 18 + ...ventory.ChangeInventoryEvent.SwapHand.d.ts | 18 + ...ry.ChangeInventoryEvent.Transfer.Post.d.ts | 20 + ...ory.ChangeInventoryEvent.Transfer.Pre.d.ts | 30 + ...ventory.ChangeInventoryEvent.Transfer.d.ts | 23 + ...t.item.inventory.ChangeInventoryEvent.d.ts | 16 + ...nventory.ClickInventoryEvent.Creative.d.ts | 18 + ....inventory.ClickInventoryEvent.Double.d.ts | 18 + ...ntory.ClickInventoryEvent.Drag.Middle.d.ts | 20 + ...tory.ClickInventoryEvent.Drag.Primary.d.ts | 20 + ...ry.ClickInventoryEvent.Drag.Secondary.d.ts | 20 + ...em.inventory.ClickInventoryEvent.Drag.d.ts | 18 + ...ventory.ClickInventoryEvent.Drop.Full.d.ts | 20 + ...kInventoryEvent.Drop.Outside.Creative.d.ts | 22 + ...ckInventoryEvent.Drop.Outside.Primary.d.ts | 22 + ...InventoryEvent.Drop.Outside.Secondary.d.ts | 22 + ...tory.ClickInventoryEvent.Drop.Outside.d.ts | 20 + ...ntory.ClickInventoryEvent.Drop.Single.d.ts | 20 + ...em.inventory.ClickInventoryEvent.Drop.d.ts | 18 + ....inventory.ClickInventoryEvent.Middle.d.ts | 18 + ...ntory.ClickInventoryEvent.NumberPress.d.ts | 20 + ...inventory.ClickInventoryEvent.Primary.d.ts | 18 + ...entory.ClickInventoryEvent.Recipe.All.d.ts | 20 + ...ory.ClickInventoryEvent.Recipe.Single.d.ts | 20 + ....inventory.ClickInventoryEvent.Recipe.d.ts | 23 + ...ventory.ClickInventoryEvent.Secondary.d.ts | 18 + ...ory.ClickInventoryEvent.Shift.Primary.d.ts | 20 + ...y.ClickInventoryEvent.Shift.Secondary.d.ts | 20 + ...m.inventory.ClickInventoryEvent.Shift.d.ts | 18 + ...nt.item.inventory.ClickInventoryEvent.d.ts | 22 + ...t.item.inventory.CraftItemEvent.Craft.d.ts | 28 + ...item.inventory.CraftItemEvent.Preview.d.ts | 24 + ...i.event.item.inventory.CraftItemEvent.d.ts | 27 + ...nt.item.inventory.DropItemEvent.Close.d.ts | 18 + ...t.item.inventory.DropItemEvent.Custom.d.ts | 18 + ...item.inventory.DropItemEvent.Destruct.d.ts | 18 + ...item.inventory.DropItemEvent.Dispense.d.ts | 18 + ...vent.item.inventory.DropItemEvent.Pre.d.ts | 29 + ...pi.event.item.inventory.DropItemEvent.d.ts | 16 + ...EnchantItemEvent.CalculateEnchantment.d.ts | 50 + ...ntItemEvent.CalculateLevelRequirement.d.ts | 46 + ....item.inventory.EnchantItemEvent.Post.d.ts | 23 + ...event.item.inventory.EnchantItemEvent.d.ts | 26 + ...nventory.InteractInventoryEvent.Close.d.ts | 18 + ...inventory.InteractInventoryEvent.Open.d.ts | 18 + ...item.inventory.InteractInventoryEvent.d.ts | 21 + ...ry.InteractItemEvent.Primary.MainHand.d.ts | 20 + ...ory.InteractItemEvent.Primary.OffHand.d.ts | 20 + ...m.inventory.InteractItemEvent.Primary.d.ts | 18 + ....InteractItemEvent.Secondary.MainHand.d.ts | 20 + ...y.InteractItemEvent.Secondary.OffHand.d.ts | 20 + ...inventory.InteractItemEvent.Secondary.d.ts | 18 + ...vent.item.inventory.InteractItemEvent.d.ts | 21 + ...t.item.inventory.TargetContainerEvent.d.ts | 18 + ...t.item.inventory.TargetInventoryEvent.d.ts | 21 + ...event.item.inventory.UpdateAnvilEvent.d.ts | 41 + ...em.inventory.UseItemStackEvent.Finish.d.ts | 18 + ...m.inventory.UseItemStackEvent.Replace.d.ts | 24 + ...tem.inventory.UseItemStackEvent.Reset.d.ts | 18 + ...tem.inventory.UseItemStackEvent.Start.d.ts | 18 + ...item.inventory.UseItemStackEvent.Stop.d.ts | 18 + ...item.inventory.UseItemStackEvent.Tick.d.ts | 18 + ...vent.item.inventory.UseItemStackEvent.d.ts | 36 + ...vent.message.MessageChannelEvent.Chat.d.ts | 25 + ...api.event.message.MessageChannelEvent.d.ts | 33 + ...ssage.MessageEvent.DefaultBodyApplier.d.ts | 18 + ...age.MessageEvent.DefaultHeaderApplier.d.ts | 18 + ...message.MessageEvent.MessageFormatter.d.ts | 58 + ...owered.api.event.message.MessageEvent.d.ts | 69 + ...epowered.api.event.network.BanIpEvent.d.ts | 19 + ...ork.ChannelRegistrationEvent.Register.d.ts | 16 + ...k.ChannelRegistrationEvent.Unregister.d.ts | 16 + ...vent.network.ChannelRegistrationEvent.d.ts | 19 + ...nt.network.ClientConnectionEvent.Auth.d.ts | 26 + ...work.ClientConnectionEvent.Disconnect.d.ts | 16 + ...nt.network.ClientConnectionEvent.Join.d.ts | 16 + ...t.network.ClientConnectionEvent.Login.d.ts | 41 + ...i.event.network.ClientConnectionEvent.d.ts | 14 + ...wered.api.event.network.PardonIpEvent.d.ts | 19 + ...work.rcon.RconConnectionEvent.Connect.d.ts | 18 + ...k.rcon.RconConnectionEvent.Disconnect.d.ts | 18 + ...etwork.rcon.RconConnectionEvent.Login.d.ts | 18 + ...vent.network.rcon.RconConnectionEvent.d.ts | 21 + ...lientPingServerEvent.Response.Players.d.ts | 35 + ...server.ClientPingServerEvent.Response.d.ts | 39 + ...pi.event.server.ClientPingServerEvent.d.ts | 24 + ...t.server.query.QueryServerEvent.Basic.d.ts | 115 + ...nt.server.query.QueryServerEvent.Full.d.ts | 63 + ...i.event.server.query.QueryServerEvent.d.ts | 16 + ...nt.service.ChangeServiceProviderEvent.d.ts | 44 + ...i.event.sound.PlaySoundEvent.AtEntity.d.ts | 18 + ....event.sound.PlaySoundEvent.Broadcast.d.ts | 16 + ...ent.sound.PlaySoundEvent.Record.Start.d.ts | 18 + ...vent.sound.PlaySoundEvent.Record.Stop.d.ts | 18 + ...api.event.sound.PlaySoundEvent.Record.d.ts | 26 + ...owered.api.event.sound.PlaySoundEvent.d.ts | 39 + ...tic.ChangeStatisticEvent.TargetPlayer.d.ts | 16 + ....event.statistic.ChangeStatisticEvent.d.ts | 34 + ....event.user.BanUserEvent.TargetPlayer.d.ts | 16 + ...gepowered.api.event.user.BanUserEvent.d.ts | 19 + ...ent.user.PardonUserEvent.TargetPlayer.d.ts | 18 + ...owered.api.event.user.PardonUserEvent.d.ts | 19 + ...owered.api.event.user.TargetUserEvent.d.ts | 19 + ...d.ChangeWorldBorderEvent.TargetPlayer.d.ts | 16 + ...ld.ChangeWorldBorderEvent.TargetWorld.d.ts | 16 + ...pi.event.world.ChangeWorldBorderEvent.d.ts | 29 + ....event.world.ChangeWorldGameRuleEvent.d.ts | 29 + ...i.event.world.ChangeWorldWeatherEvent.d.ts | 49 + ...rld.ChunkPreGenerationEvent.Cancelled.d.ts | 16 + ...orld.ChunkPreGenerationEvent.Complete.d.ts | 16 + ...nt.world.ChunkPreGenerationEvent.Post.d.ts | 32 + ...ent.world.ChunkPreGenerationEvent.Pre.d.ts | 31 + ...i.event.world.ChunkPreGenerationEvent.d.ts | 20 + ....api.event.world.ConstructPortalEvent.d.ts | 19 + ...t.world.ConstructWorldPropertiesEvent.d.ts | 24 + ...i.event.world.ExplosionEvent.Detonate.d.ts | 23 + ...d.api.event.world.ExplosionEvent.Post.d.ts | 16 + ...ed.api.event.world.ExplosionEvent.Pre.d.ts | 23 + ...owered.api.event.world.ExplosionEvent.d.ts | 19 + ...i.event.world.GenerateChunkEvent.Post.d.ts | 16 + ...pi.event.world.GenerateChunkEvent.Pre.d.ts | 16 + ...ed.api.event.world.GenerateChunkEvent.d.ts | 14 + ...owered.api.event.world.LoadWorldEvent.d.ts | 14 + ...d.api.event.world.SaveWorldEvent.Post.d.ts | 16 + ...ed.api.event.world.SaveWorldEvent.Pre.d.ts | 16 + ...owered.api.event.world.SaveWorldEvent.d.ts | 14 + ...ered.api.event.world.TargetWorldEvent.d.ts | 19 + ...ered.api.event.world.UnloadWorldEvent.d.ts | 14 + ...pi.event.world.chunk.ForcedChunkEvent.d.ts | 26 + ....api.event.world.chunk.LoadChunkEvent.d.ts | 16 + ...rld.chunk.PopulateChunkEvent.Populate.d.ts | 23 + ...t.world.chunk.PopulateChunkEvent.Post.d.ts | 24 + ...nt.world.chunk.PopulateChunkEvent.Pre.d.ts | 23 + ....event.world.chunk.PopulateChunkEvent.d.ts | 16 + ...pi.event.world.chunk.TargetChunkEvent.d.ts | 21 + ....event.world.chunk.UnforcedChunkEvent.d.ts | 26 + ...pi.event.world.chunk.UnloadChunkEvent.d.ts | 16 + ...ed.api.extra.fluid.FluidStack.Builder.d.ts | 46 + ...ngepowered.api.extra.fluid.FluidStack.d.ts | 45 + ...xtra.fluid.FluidStackSnapshot.Builder.d.ts | 25 + ...ed.api.extra.fluid.FluidStackSnapshot.d.ts | 37 + ...ongepowered.api.extra.fluid.FluidType.d.ts | 20 + ...ngepowered.api.extra.fluid.FluidTypes.d.ts | 18 + ...ator.immutable.ImmutableFluidItemData.d.ts | 25 + ...ator.immutable.ImmutableFluidTankData.d.ts | 33 + ...ata.manipulator.mutable.FluidItemData.d.ts | 25 + ...ata.manipulator.mutable.FluidTankData.d.ts | 33 + ...ata.property.FluidTemperatureProperty.d.ts | 29 + ....data.property.FluidViscosityProperty.d.ts | 29 + ...fier.empty.VoidWorldGeneratorModifier.d.ts | 24 + ...ifier.skylands.SkylandsBiomeGenerator.d.ts | 20 + ...ifier.skylands.SkylandsGrassPopulator.d.ts | 23 + ...skylands.SkylandsGroundCoverPopulator.d.ts | 20 + ...ier.skylands.SkylandsTerrainGenerator.d.ts | 27 + ...ylands.SkylandsWorldGeneratorModifier.d.ts | 24 + ...wered.api.item.FireworkEffect.Builder.d.ts | 79 + ...spongepowered.api.item.FireworkEffect.d.ts | 48 + ....spongepowered.api.item.FireworkShape.d.ts | 12 + ...spongepowered.api.item.FireworkShapes.d.ts | 22 + .../org.spongepowered.api.item.ItemType.d.ts | 49 + .../org.spongepowered.api.item.ItemTypes.d.ts | 836 +++++ ....item.enchantment.Enchantment.Builder.d.ts | 38 + ...antment.Enchantment.RandomListBuilder.d.ts | 53 + ...ered.api.item.enchantment.Enchantment.d.ts | 37 + ....api.item.enchantment.EnchantmentType.d.ts | 74 + ...api.item.enchantment.EnchantmentTypes.d.ts | 74 + ...epowered.api.item.inventory.AnvilCost.d.ts | 34 + ...wered.api.item.inventory.BlockCarrier.d.ts | 27 + ...ngepowered.api.item.inventory.Carrier.d.ts | 19 + ...epowered.api.item.inventory.Container.d.ts | 43 + ...red.api.item.inventory.EmptyInventory.d.ts | 14 + ....api.item.inventory.Inventory.Builder.d.ts | 58 + ...epowered.api.item.inventory.Inventory.d.ts | 385 +++ ....inventory.InventoryArchetype.Builder.d.ts | 46 + ...api.item.inventory.InventoryArchetype.d.ts | 44 + ...pi.item.inventory.InventoryArchetypes.d.ts | 68 + ....api.item.inventory.InventoryProperty.d.ts | 14 + ...ntory.InventoryTransformation.Builder.d.ts | 26 + ...tem.inventory.InventoryTransformation.d.ts | 26 + ...em.inventory.InventoryTransformations.d.ts | 24 + ....api.item.inventory.ItemStack.Builder.d.ts | 100 + ...epowered.api.item.inventory.ItemStack.d.ts | 90 + ....inventory.ItemStackBuilderPopulators.d.ts | 271 ++ ...i.item.inventory.ItemStackComparators.d.ts | 32 + ....inventory.ItemStackGenerator.Builder.d.ts | 38 + ...api.item.inventory.ItemStackGenerator.d.ts | 19 + ....api.item.inventory.ItemStackSnapshot.d.ts | 54 + ....api.item.inventory.MultiBlockCarrier.d.ts | 32 + ...api.item.inventory.SingleBlockCarrier.d.ts | 14 + ...epowered.api.item.inventory.Slot.Type.d.ts | 22 + ...spongepowered.api.item.inventory.Slot.d.ts | 36 + ...entory.crafting.CraftingGridInventory.d.ts | 21 + ....inventory.crafting.CraftingInventory.d.ts | 31 + ...tem.inventory.crafting.CraftingOutput.d.ts | 16 + ...ered.api.item.inventory.entity.Hotbar.d.ts | 26 + ....inventory.entity.MainPlayerInventory.d.ts | 26 + ...item.inventory.entity.PlayerInventory.d.ts | 16 + ...i.item.inventory.entity.UserInventory.d.ts | 41 + ...nventory.equipment.EquipmentInventory.d.ts | 84 + ...tem.inventory.equipment.EquipmentType.d.ts | 16 + ...em.inventory.equipment.EquipmentTypes.d.ts | 36 + ...inventory.equipment.HeldEquipmentType.d.ts | 16 + ...inventory.equipment.WornEquipmentType.d.ts | 16 + ...ry.property.AbstractInventoryProperty.d.ts | 80 + ....item.inventory.property.AcceptsItems.d.ts | 48 + ...item.inventory.property.ArmorSlotType.d.ts | 46 + ....inventory.property.EquipmentSlotType.d.ts | 48 + ...red.api.item.inventory.property.GuiId.d.ts | 16 + ...item.inventory.property.GuiIdProperty.d.ts | 23 + ...ed.api.item.inventory.property.GuiIds.d.ts | 42 + ....item.inventory.property.Identifiable.d.ts | 33 + ...i.item.inventory.property.IntProperty.d.ts | 71 + ....inventory.property.InventoryCapacity.d.ts | 32 + ...inventory.property.InventoryDimension.d.ts | 92 + ...tem.inventory.property.InventoryTitle.d.ts | 30 + ....inventory.property.MappedIntProperty.d.ts | 70 + ...api.item.inventory.property.SlotIndex.d.ts | 67 + ...d.api.item.inventory.property.SlotPos.d.ts | 92 + ....api.item.inventory.property.SlotSide.d.ts | 47 + ...tem.inventory.property.StringProperty.d.ts | 72 + ...i.item.inventory.query.QueryOperation.d.ts | 22 + ...em.inventory.query.QueryOperationType.d.ts | 21 + ...m.inventory.query.QueryOperationTypes.d.ts | 32 + ...api.item.inventory.slot.EquipmentSlot.d.ts | 23 + ...api.item.inventory.slot.FilteringSlot.d.ts | 30 + ...ered.api.item.inventory.slot.FuelSlot.d.ts | 16 + ...red.api.item.inventory.slot.InputSlot.d.ts | 16 + ...ed.api.item.inventory.slot.OutputSlot.d.ts | 16 + ...red.api.item.inventory.slot.SidedSlot.d.ts | 34 + ...on.InventoryTransactionResult.Builder.d.ts | 44 + ...ction.InventoryTransactionResult.Type.d.ts | 32 + ...ransaction.InventoryTransactionResult.d.ts | 50 + ...inventory.transaction.SlotTransaction.d.ts | 36 + ....item.inventory.type.CarriedInventory.d.ts | 22 + ...api.item.inventory.type.GridInventory.d.ts | 73 + ....api.item.inventory.type.Interactable.d.ts | 21 + ...d.api.item.inventory.type.Inventory2D.d.ts | 48 + ...i.item.inventory.type.InventoryColumn.d.ts | 16 + ....api.item.inventory.type.InventoryRow.d.ts | 16 + ....item.inventory.type.OrderedInventory.d.ts | 46 + ...em.inventory.type.PersistentInventory.d.ts | 22 + ...em.inventory.type.TileEntityInventory.d.ts | 21 + ...ngepowered.api.item.merchant.Merchant.d.ts | 32 + ....api.item.merchant.TradeOffer.Builder.d.ts | 67 + ...epowered.api.item.merchant.TradeOffer.d.ts | 75 + ....merchant.TradeOfferGenerator.Builder.d.ts | 59 + ...api.item.merchant.TradeOfferGenerator.d.ts | 21 + ...i.item.merchant.TradeOfferListMutator.d.ts | 21 + ...ed.api.item.merchant.VillagerRegistry.d.ts | 76 + ...ngepowered.api.item.potion.PotionType.d.ts | 16 + ...gepowered.api.item.potion.PotionTypes.d.ts | 86 + ....spongepowered.api.item.recipe.Recipe.d.ts | 20 + ...owered.api.item.recipe.RecipeRegistry.d.ts | 24 + ...i.item.recipe.crafting.CraftingRecipe.d.ts | 69 + ...ecipe.crafting.CraftingRecipeRegistry.d.ts | 28 + ....item.recipe.crafting.CraftingRecipes.d.ts | 902 +++++ ...i.item.recipe.crafting.CraftingResult.d.ts | 46 + ...em.recipe.crafting.Ingredient.Builder.d.ts | 79 + ...d.api.item.recipe.crafting.Ingredient.d.ts | 52 + ...ngRecipe.Builder.AisleStep.ResultStep.d.ts | 22 + ...hapedCraftingRecipe.Builder.AisleStep.d.ts | 32 + ....ShapedCraftingRecipe.Builder.EndStep.d.ts | 36 + ...apedCraftingRecipe.Builder.ResultStep.d.ts | 32 + ...ingRecipe.Builder.RowsStep.ResultStep.d.ts | 22 + ...ShapedCraftingRecipe.Builder.RowsStep.d.ts | 31 + ...crafting.ShapedCraftingRecipe.Builder.d.ts | 35 + ....recipe.crafting.ShapedCraftingRecipe.d.ts | 37 + ...apelessCraftingRecipe.Builder.EndStep.d.ts | 36 + ...lessCraftingRecipe.Builder.ResultStep.d.ts | 32 + ...fting.ShapelessCraftingRecipe.Builder.d.ts | 24 + ...cipe.crafting.ShapelessCraftingRecipe.d.ts | 26 + ...elting.SmeltingRecipe.Builder.EndStep.d.ts | 35 + ...ing.SmeltingRecipe.Builder.ResultStep.d.ts | 32 + ...ecipe.smelting.SmeltingRecipe.Builder.d.ts | 48 + ...i.item.recipe.smelting.SmeltingRecipe.d.ts | 49 + ...ecipe.smelting.SmeltingRecipeRegistry.d.ts | 27 + ...i.item.recipe.smelting.SmeltingResult.d.ts | 44 + ....ChannelBinding.IndexedMessageChannel.d.ts | 66 + ...network.ChannelBinding.RawDataChannel.d.ts | 49 + ...ngepowered.api.network.ChannelBinding.d.ts | 27 + ....spongepowered.api.network.ChannelBuf.d.ts | 556 +++ ...g.spongepowered.api.network.ChannelId.d.ts | 17 + ...epowered.api.network.ChannelRegistrar.d.ts | 65 + ....network.ChannelRegistrationException.d.ts | 34 + ...org.spongepowered.api.network.Message.d.ts | 22 + ...ngepowered.api.network.MessageHandler.d.ts | 17 + ...epowered.api.network.PlayerConnection.d.ts | 22 + ...gepowered.api.network.RawDataListener.d.ts | 17 + ...epowered.api.network.RemoteConnection.d.ts | 25 + ...ngepowered.api.network.status.Favicon.d.ts | 19 + ...wered.api.network.status.StatusClient.d.ts | 29 + ...network.status.StatusResponse.Players.d.ts | 32 + ...red.api.network.status.StatusResponse.d.ts | 36 + ...g.spongepowered.api.plugin.Dependency.d.ts | 41 + .../org.spongepowered.api.plugin.Plugin.d.ts | 52 + ...ngepowered.api.plugin.PluginContainer.d.ts | 75 + ...pongepowered.api.plugin.PluginManager.d.ts | 37 + ...spongepowered.api.profile.GameProfile.d.ts | 64 + ...epowered.api.profile.GameProfileCache.d.ts | 147 + ...owered.api.profile.GameProfileManager.d.ts | 118 + ....api.profile.ProfileNotFoundException.d.ts | 35 + ....api.profile.property.ProfileProperty.d.ts | 48 + ...istry.AdditionalCatalogRegistryModule.d.ts | 18 + ...gistry.AlternateCatalogRegistryModule.d.ts | 18 + ...ed.api.registry.CatalogRegistryModule.d.ts | 25 + ...CatalogTypeAlreadyRegisteredException.d.ts | 23 + ...istry.ExtraClassCatalogRegistryModule.d.ts | 22 + ...epowered.api.registry.FactoryRegistry.d.ts | 28 + ...owered.api.registry.RegistrationPhase.d.ts | 26 + ...owered.api.registry.RegistryException.d.ts | 33 + ...gepowered.api.registry.RegistryModule.d.ts | 21 + ...istryModuleAlreadyRegisteredException.d.ts | 26 + ....registry.util.AdditionalRegistration.d.ts | 20 + ...gistry.util.CustomCatalogRegistration.d.ts | 14 + ...api.registry.util.DelayedRegistration.d.ts | 20 + ...pi.registry.util.OverrideRegistration.d.ts | 19 + ...try.util.PluginProvidedRegistryModule.d.ts | 14 + ...red.api.registry.util.RegisterCatalog.d.ts | 25 + ....registry.util.RegistrationDependency.d.ts | 27 + ...powered.api.resourcepack.ResourcePack.d.ts | 39 + ....api.resourcepack.ResourcePackFactory.d.ts | 23 + ...owered.api.resourcepack.ResourcePacks.d.ts | 26 + ...ed.api.scheduler.AsynchronousExecutor.d.ts | 12 + ...spongepowered.api.scheduler.Scheduler.d.ts | 61 + ...er.SpongeExecutorService.SpongeFuture.d.ts | 20 + ...d.api.scheduler.SpongeExecutorService.d.ts | 20 + ...red.api.scheduler.SynchronousExecutor.d.ts | 12 + ...ngepowered.api.scheduler.Task.Builder.d.ts | 92 + .../org.spongepowered.api.scheduler.Task.d.ts | 55 + ...epowered.api.scoreboard.CollisionRule.d.ts | 12 + ...powered.api.scoreboard.CollisionRules.d.ts | 20 + ...rg.spongepowered.api.scoreboard.Score.d.ts | 33 + ...red.api.scoreboard.Scoreboard.Builder.d.ts | 31 + ...ongepowered.api.scoreboard.Scoreboard.d.ts | 101 + ...gepowered.api.scoreboard.Team.Builder.d.ts | 93 + ...org.spongepowered.api.scoreboard.Team.d.ts | 164 + ...ongepowered.api.scoreboard.TeamMember.d.ts | 18 + ...gepowered.api.scoreboard.Visibilities.d.ts | 20 + ...ongepowered.api.scoreboard.Visibility.d.ts | 12 + ...red.api.scoreboard.critieria.Criteria.d.ts | 26 + ...ed.api.scoreboard.critieria.Criterion.d.ts | 19 + ...board.displayslot.DisplaySlot.Builder.d.ts | 26 + ...pi.scoreboard.displayslot.DisplaySlot.d.ts | 19 + ...i.scoreboard.displayslot.DisplaySlots.d.ts | 20 + ...coreboard.objective.Objective.Builder.d.ts | 41 + ...ed.api.scoreboard.objective.Objective.d.ts | 91 + ...tive.displaymode.ObjectiveDisplayMode.d.ts | 16 + ...ive.displaymode.ObjectiveDisplayModes.d.ts | 20 + ...ered.api.service.ProviderRegistration.d.ts | 28 + ...red.api.service.ProvisioningException.d.ts | 40 + ...ngepowered.api.service.ServiceManager.d.ts | 46 + ...ered.api.service.SimpleServiceManager.d.ts | 25 + ...ngepowered.api.service.ban.BanService.d.ts | 76 + ...gepowered.api.service.context.Context.d.ts | 61 + ...api.service.context.ContextCalculator.d.ts | 42 + ...red.api.service.context.ContextSource.d.ts | 20 + ...owered.api.service.context.Contextual.d.ts | 43 + ...api.service.context.ContextualService.d.ts | 21 + ...epowered.api.service.economy.Currency.d.ts | 57 + ...ed.api.service.economy.EconomyService.d.ts | 60 + ...d.api.service.economy.account.Account.d.ts | 191 ++ ...service.economy.account.UniqueAccount.d.ts | 16 + ...ervice.economy.account.VirtualAccount.d.ts | 16 + ...ervice.economy.transaction.ResultType.d.ts | 30 + ...economy.transaction.TransactionResult.d.ts | 47 + ...e.economy.transaction.TransactionType.d.ts | 16 + ....economy.transaction.TransactionTypes.d.ts | 22 + ...ce.economy.transaction.TransferResult.d.ts | 23 + ...ice.pagination.PaginationList.Builder.d.ts | 82 + ...api.service.pagination.PaginationList.d.ts | 82 + ....service.pagination.PaginationService.d.ts | 19 + ....service.permission.MemorySubjectData.d.ts | 59 + ...wered.api.service.permission.NodeTree.d.ts | 47 + ...mission.PermissionDescription.Builder.d.ts | 50 + ...vice.permission.PermissionDescription.d.ts | 104 + ....service.permission.PermissionService.d.ts | 142 + ...owered.api.service.permission.Subject.d.ts | 147 + ....service.permission.SubjectCollection.d.ts | 190 + ...ed.api.service.permission.SubjectData.d.ts | 118 + ...i.service.permission.SubjectReference.d.ts | 32 + ...epowered.api.service.rcon.RconService.d.ts | 27 + ...ngepowered.api.service.sql.SqlService.d.ts | 40 + ...d.api.service.user.UserStorageService.d.ts | 71 + ...pi.service.whitelist.WhitelistService.d.ts | 35 + ...epowered.api.statistic.BlockStatistic.d.ts | 17 + ...powered.api.statistic.EntityStatistic.d.ts | 17 + ...gepowered.api.statistic.ItemStatistic.d.ts | 17 + ...spongepowered.api.statistic.Statistic.d.ts | 28 + ...gepowered.api.statistic.StatisticType.d.ts | 12 + ...epowered.api.statistic.StatisticTypes.d.ts | 30 + ...pongepowered.api.statistic.Statistics.d.ts | 110 + ...ongepowered.api.text.BookView.Builder.d.ts | 93 + .../org.spongepowered.api.text.BookView.d.ts | 42 + ...epowered.api.text.LiteralText.Builder.d.ts | 68 + ...rg.spongepowered.api.text.LiteralText.d.ts | 23 + ...ngepowered.api.text.ScoreText.Builder.d.ts | 78 + .../org.spongepowered.api.text.ScoreText.d.ts | 28 + ...powered.api.text.SelectorText.Builder.d.ts | 68 + ...g.spongepowered.api.text.SelectorText.d.ts | 23 + ...g.spongepowered.api.text.Text.Builder.d.ts | 185 + .../org.spongepowered.api.text.Text.d.ts | 312 ++ ...rg.spongepowered.api.text.TextElement.d.ts | 17 + ...ngepowered.api.text.TextRepresentable.d.ts | 23 + ...red.api.text.TextTemplate.Arg.Builder.d.ts | 59 + ...ongepowered.api.text.TextTemplate.Arg.d.ts | 56 + ...g.spongepowered.api.text.TextTemplate.d.ts | 113 + ...pi.text.TextTemplateArgumentException.d.ts | 17 + ...red.api.text.TranslatableText.Builder.d.ts | 78 + ...ongepowered.api.text.TranslatableText.d.ts | 29 + ...pi.text.action.ClickAction.ChangePage.d.ts | 16 + ...xt.action.ClickAction.ExecuteCallback.d.ts | 16 + ...d.api.text.action.ClickAction.OpenUrl.d.ts | 16 + ...pi.text.action.ClickAction.RunCommand.d.ts | 16 + ...ext.action.ClickAction.SuggestCommand.d.ts | 16 + ...gepowered.api.text.action.ClickAction.d.ts | 16 + ...ext.action.HoverAction.ShowEntity.Ref.d.ts | 59 + ...pi.text.action.HoverAction.ShowEntity.d.ts | 16 + ....api.text.action.HoverAction.ShowItem.d.ts | 16 + ....api.text.action.HoverAction.ShowText.d.ts | 16 + ...gepowered.api.text.action.HoverAction.d.ts | 16 + ...xt.action.ShiftClickAction.InsertText.d.ts | 16 + ...ered.api.text.action.ShiftClickAction.d.ts | 16 + ...ngepowered.api.text.action.TextAction.d.ts | 32 + ...gepowered.api.text.action.TextActions.d.ts | 87 + ...channel.AbstractMutableMessageChannel.d.ts | 40 + ....text.channel.ChatTypeMessageReceiver.d.ts | 51 + ...wered.api.text.channel.MessageChannel.d.ts | 102 + ...ered.api.text.channel.MessageReceiver.d.ts | 63 + ...pi.text.channel.MutableMessageChannel.d.ts | 31 + ...t.channel.impl.DelegateMessageChannel.d.ts | 28 + ...el.impl.DelegateMutableMessageChannel.d.ts | 27 + ...nnel.impl.SimpleMutableMessageChannel.d.ts | 27 + ...t.channel.type.CombinedMessageChannel.d.ts | 34 + ...text.channel.type.FixedMessageChannel.d.ts | 32 + ...channel.type.PermissionMessageChannel.d.ts | 32 + ...text.channel.type.WorldMessageChannel.d.ts | 24 + ....spongepowered.api.text.chat.ChatType.d.ts | 14 + ...spongepowered.api.text.chat.ChatTypes.d.ts | 20 + ...owered.api.text.chat.ChatVisibilities.d.ts | 20 + ...epowered.api.text.chat.ChatVisibility.d.ts | 19 + ...ongepowered.api.text.format.TextColor.d.ts | 21 + ...ngepowered.api.text.format.TextColors.d.ts | 50 + ...ngepowered.api.text.format.TextFormat.d.ts | 80 + ...owered.api.text.format.TextStyle.Base.d.ts | 23 + ...ongepowered.api.text.format.TextStyle.d.ts | 120 + ...ngepowered.api.text.format.TextStyles.d.ts | 40 + ...api.text.selector.Argument.Invertible.d.ts | 29 + ...ngepowered.api.text.selector.Argument.d.ts | 55 + ...pi.text.selector.ArgumentHolder.Limit.d.ts | 26 + ....text.selector.ArgumentHolder.Vector3.d.ts | 34 + ...ered.api.text.selector.ArgumentHolder.d.ts | 25 + ...text.selector.ArgumentType.Invertible.d.ts | 16 + ...owered.api.text.selector.ArgumentType.d.ts | 29 + ...wered.api.text.selector.ArgumentTypes.d.ts | 60 + ...ed.api.text.selector.Selector.Builder.d.ts | 59 + ...ngepowered.api.text.selector.Selector.d.ts | 135 + ...red.api.text.selector.SelectorFactory.d.ts | 79 + ...owered.api.text.selector.SelectorType.d.ts | 14 + ...wered.api.text.selector.SelectorTypes.d.ts | 24 + ...i.text.serializer.BookViewDataBuilder.d.ts | 26 + ...rializer.FormattingCodeTextSerializer.d.ts | 39 + ...pi.text.serializer.SafeTextSerializer.d.ts | 18 + ....text.serializer.TextConfigSerializer.d.ts | 26 + ...serializer.TextFormatConfigSerializer.d.ts | 20 + ...pi.text.serializer.TextParseException.d.ts | 35 + ...ed.api.text.serializer.TextSerializer.d.ts | 41 + ...text.serializer.TextSerializerFactory.d.ts | 20 + ...d.api.text.serializer.TextSerializers.d.ts | 28 + ...rializer.TextTemplateConfigSerializer.d.ts | 20 + ...epowered.api.text.title.Title.Builder.d.ts | 129 + ...rg.spongepowered.api.text.title.Title.d.ts | 127 + ...sform.DynamicPartitionedTextFormatter.d.ts | 54 + ...ansform.FixedPartitionedTextFormatter.d.ts | 60 + ...xt.transform.PartitionedTextFormatter.d.ts | 14 + ...pi.text.transform.SimpleTextFormatter.d.ts | 55 + ...t.transform.SimpleTextTemplateApplier.d.ts | 38 + ...ered.api.text.transform.TextFormatter.d.ts | 166 + ...pi.text.transform.TextTemplateApplier.d.ts | 41 + ...api.text.translation.FixedTranslation.d.ts | 25 + ...translation.ResourceBundleTranslation.d.ts | 26 + ...red.api.text.translation.Translatable.d.ts | 19 + ...ered.api.text.translation.Translation.d.ts | 39 + ...d.api.text.translation.locale.Locales.d.ts | 173 + ....text.translation.locale.NamedLocales.d.ts | 168 + .../org.spongepowered.api.util.AABB.d.ts | 118 + .../org.spongepowered.api.util.Axis.d.ts | 58 + ....spongepowered.api.util.AxisDirection.d.ts | 31 + ...spongepowered.api.util.CatalogBuilder.d.ts | 36 + .../org.spongepowered.api.util.Coerce.d.ts | 153 + ...pongepowered.api.util.CollectionUtils.d.ts | 26 + ....spongepowered.api.util.Color.Builder.d.ts | 22 + .../org.spongepowered.api.util.Color.d.ts | 163 + .../org.spongepowered.api.util.Cycleable.d.ts | 18 + ...gepowered.api.util.Direction.Division.d.ts | 26 + .../org.spongepowered.api.util.Direction.d.ts | 148 + ...gepowered.api.util.DiscreteTransform2.d.ts | 204 ++ ...gepowered.api.util.DiscreteTransform3.d.ts | 229 ++ ...org.spongepowered.api.util.Functional.d.ts | 69 + ...pongepowered.api.util.GuavaCollectors.d.ts | 22 + ...g.spongepowered.api.util.Identifiable.d.ts | 17 + ...pongepowered.api.util.InformativeMain.d.ts | 20 + .../org.spongepowered.api.util.OptBool.d.ts | 34 + ...pongepowered.api.util.PEBKACException.d.ts | 33 + ...api.util.PositionOutOfBoundsException.d.ts | 27 + ...ngepowered.api.util.RelativePositions.d.ts | 26 + ...ngepowered.api.util.ResettableBuilder.d.ts | 24 + ...ered.api.util.RespawnLocation.Builder.d.ts | 60 + ...pongepowered.api.util.RespawnLocation.d.ts | 50 + ...d.api.util.SpongeApiTranslationHelper.d.ts | 17 + ...epowered.api.util.StartsWithPredicate.d.ts | 19 + ...powered.api.util.TextMessageException.d.ts | 43 + .../org.spongepowered.api.util.Tristate.d.ts | 42 + .../org.spongepowered.api.util.Tuple.d.ts | 39 + ...org.spongepowered.api.util.TypeTokens.d.ts | 386 +++ .../org.spongepowered.api.util.Updater.d.ts | 31 + ...wered.api.util.annotation.CatalogedBy.d.ts | 24 + ....api.util.annotation.NonnullByDefault.d.ts | 14 + ...otation.eventgen.AbsoluteSortPosition.d.ts | 21 + ...til.annotation.eventgen.FactoryMethod.d.ts | 16 + ...tation.eventgen.GenerateFactoryMethod.d.ts | 16 + ...til.annotation.eventgen.ImplementedBy.d.ts | 29 + ....annotation.eventgen.PropertySettings.d.ts | 31 + ...l.annotation.eventgen.TransformResult.d.ts | 25 + ...til.annotation.eventgen.TransformWith.d.ts | 24 + ...api.util.annotation.eventgen.UseField.d.ts | 26 + ...pongepowered.api.util.ban.Ban.Builder.d.ts | 67 + ...org.spongepowered.api.util.ban.Ban.Ip.d.ts | 21 + ...pongepowered.api.util.ban.Ban.Profile.d.ts | 21 + .../org.spongepowered.api.util.ban.Ban.d.ts | 76 + ...rg.spongepowered.api.util.ban.BanType.d.ts | 19 + ...g.spongepowered.api.util.ban.BanTypes.d.ts | 18 + ...til.blockray.BlockRay.BlockRayBuilder.d.ts | 96 + ...ngepowered.api.util.blockray.BlockRay.d.ts | 73 + ...powered.api.util.blockray.BlockRayHit.d.ts | 101 + ...powered.api.util.file.CopyFileVisitor.d.ts | 26 + ...wered.api.util.file.DeleteFileVisitor.d.ts | 22 + ...d.api.util.file.ForwardingFileVisitor.d.ts | 24 + ...rator.GeneratorUtils.LocalClassLoader.d.ts | 26 + ...red.api.util.generator.GeneratorUtils.d.ts | 31 + ...l.generator.dummy.DummyClassGenerator.d.ts | 23 + ...tor.dummy.DummyClassGeneratorProvider.d.ts | 28 + ...l.generator.dummy.DummyObjectProvider.d.ts | 28 + ....api.util.metric.MetricsConfigManager.d.ts | 54 + ...ngepowered.api.util.rotation.Rotation.d.ts | 19 + ...gepowered.api.util.rotation.Rotations.d.ts | 30 + ...powered.api.util.weighted.ChanceTable.d.ts | 32 + ...powered.api.util.weighted.EmptyObject.d.ts | 29 + ...gepowered.api.util.weighted.LootTable.d.ts | 55 + ...ed.api.util.weighted.NestedTableEntry.d.ts | 31 + ...d.api.util.weighted.RandomObjectTable.d.ts | 103 + ...dVariableAmount.WrappedVariableAmount.d.ts | 30 + ...pi.util.weighted.SeededVariableAmount.d.ts | 38 + ...epowered.api.util.weighted.TableEntry.d.ts | 24 + ...il.weighted.UnmodifiableWeightedTable.d.ts | 92 + ...ighted.VariableAmount.BaseAndAddition.d.ts | 28 + ...ighted.VariableAmount.BaseAndVariance.d.ts | 28 + ...pi.util.weighted.VariableAmount.Fixed.d.ts | 28 + ...eighted.VariableAmount.OptionalAmount.d.ts | 28 + ...ered.api.util.weighted.VariableAmount.d.ts | 112 + ...ered.api.util.weighted.WeightedObject.d.ts | 31 + ...l.weighted.WeightedSerializableObject.d.ts | 28 + ...wered.api.util.weighted.WeightedTable.d.ts | 63 + ...ongepowered.api.world.BlockChangeFlag.d.ts | 95 + ...ngepowered.api.world.BlockChangeFlags.d.ts | 30 + .../org.spongepowered.api.world.Chunk.d.ts | 99 + ...ed.api.world.ChunkPreGenerate.Builder.d.ts | 68 + ...ngepowered.api.world.ChunkPreGenerate.d.ts | 51 + ...powered.api.world.ChunkRegenerateFlag.d.ts | 64 + ...owered.api.world.ChunkRegenerateFlags.d.ts | 20 + ...rg.spongepowered.api.world.ChunkState.d.ts | 24 + ...api.world.ChunkTicketManager.Callback.d.ts | 28 + ...hunkTicketManager.EntityLoadingTicket.d.ts | 26 + ...orld.ChunkTicketManager.LoadingTicket.d.ts | 97 + ...ld.ChunkTicketManager.OrderedCallback.d.ts | 23 + ...cketManager.PlayerEntityLoadingTicket.d.ts | 14 + ...hunkTicketManager.PlayerLoadingTicket.d.ts | 19 + ...nkTicketManager.PlayerOrderedCallback.d.ts | 22 + ...epowered.api.world.ChunkTicketManager.d.ts | 79 + ...org.spongepowered.api.world.Dimension.d.ts | 54 + ...spongepowered.api.world.DimensionType.d.ts | 17 + ...pongepowered.api.world.DimensionTypes.d.ts | 18 + ...spongepowered.api.world.GeneratorType.d.ts | 23 + ...pongepowered.api.world.GeneratorTypes.d.ts | 28 + ...org.spongepowered.api.world.Locatable.d.ts | 22 + ...ered.api.world.LocatableBlock.Builder.d.ts | 50 + ...pongepowered.api.world.LocatableBlock.d.ts | 27 + .../org.spongepowered.api.world.Location.d.ts | 392 +++ ...g.spongepowered.api.world.PortalAgent.d.ts | 63 + ...ongepowered.api.world.PortalAgentType.d.ts | 17 + ...ngepowered.api.world.PortalAgentTypes.d.ts | 14 + ...wered.api.world.SerializationBehavior.d.ts | 12 + ...ered.api.world.SerializationBehaviors.d.ts | 24 + ...pongepowered.api.world.TeleportHelper.d.ts | 76 + .../org.spongepowered.api.world.World.d.ts | 267 ++ ...ered.api.world.WorldArchetype.Builder.d.ts | 134 + ...pongepowered.api.world.WorldArchetype.d.ts | 118 + ...ongepowered.api.world.WorldArchetypes.d.ts | 22 + ...powered.api.world.WorldBorder.Builder.d.ts | 55 + ...g.spongepowered.api.world.WorldBorder.d.ts | 143 + ...biome.BiomeGenerationSettings.Builder.d.ts | 61 + ...i.world.biome.BiomeGenerationSettings.d.ts | 79 + ...ongepowered.api.world.biome.BiomeType.d.ts | 29 + ...ngepowered.api.world.biome.BiomeTypes.d.ts | 138 + ...ered.api.world.biome.GroundCoverLayer.d.ts | 76 + ....world.biome.VirtualBiomeType.Builder.d.ts | 48 + ...ered.api.world.biome.VirtualBiomeType.d.ts | 24 + ...red.api.world.difficulty.Difficulties.d.ts | 22 + ...wered.api.world.difficulty.Difficulty.d.ts | 14 + ...api.world.explosion.Explosion.Builder.d.ts | 56 + ...powered.api.world.explosion.Explosion.d.ts | 49 + ...ered.api.world.extent.ArchetypeVolume.d.ts | 47 + ...epowered.api.world.extent.BiomeVolume.d.ts | 106 + ...epowered.api.world.extent.BlockVolume.d.ts | 120 + ...world.extent.EntityUniverse.EntityHit.d.ts | 48 + ...wered.api.world.extent.EntityUniverse.d.ts | 188 + ...spongepowered.api.world.extent.Extent.d.ts | 284 ++ ....api.world.extent.ExtentBufferFactory.d.ts | 112 + ...api.world.extent.ImmutableBiomeVolume.d.ts | 38 + ...api.world.extent.ImmutableBlockVolume.d.ts | 38 + ...d.api.world.extent.InteractableVolume.d.ts | 100 + ...ld.extent.LocationCompositeValueStore.d.ts | 443 +++ ...d.api.world.extent.MutableBiomeVolume.d.ts | 46 + ...d.api.world.extent.MutableBlockVolume.d.ts | 58 + ...epowered.api.world.extent.StorageType.d.ts | 22 + ...red.api.world.extent.TileEntityVolume.d.ts | 46 + ....world.extent.UnmodifiableBiomeVolume.d.ts | 38 + ....world.extent.UnmodifiableBlockVolume.d.ts | 38 + ...world.extent.worker.BiomeVolumeWorker.d.ts | 46 + ...world.extent.worker.BlockVolumeWorker.d.ts | 47 + ...xtent.worker.MutableBiomeVolumeWorker.d.ts | 39 + ...xtent.worker.MutableBlockVolumeWorker.d.ts | 39 + ...nt.worker.procedure.BiomeVolumeFiller.d.ts | 23 + ...nt.worker.procedure.BiomeVolumeMapper.d.ts | 24 + ...nt.worker.procedure.BiomeVolumeMerger.d.ts | 24 + ...t.worker.procedure.BiomeVolumeReducer.d.ts | 24 + ...t.worker.procedure.BiomeVolumeVisitor.d.ts | 23 + ...nt.worker.procedure.BlockVolumeFiller.d.ts | 23 + ...nt.worker.procedure.BlockVolumeMapper.d.ts | 24 + ...nt.worker.procedure.BlockVolumeMerger.d.ts | 24 + ...t.worker.procedure.BlockVolumeReducer.d.ts | 24 + ...t.worker.procedure.BlockVolumeVisitor.d.ts | 23 + ...d.api.world.gamerule.DefaultGameRules.d.ts | 64 + ...epowered.api.world.gen.BiomeGenerator.d.ts | 24 + ...red.api.world.gen.GenerationPopulator.d.ts | 20 + ...spongepowered.api.world.gen.Populator.d.ts | 42 + ...powered.api.world.gen.PopulatorObject.d.ts | 25 + ...owered.api.world.gen.PopulatorObjects.d.ts | 48 + ...gepowered.api.world.gen.PopulatorType.d.ts | 14 + ...epowered.api.world.gen.PopulatorTypes.d.ts | 70 + ...epowered.api.world.gen.WorldGenerator.d.ts | 72 + ....api.world.gen.WorldGeneratorModifier.d.ts | 29 + ...api.world.gen.WorldGeneratorModifiers.d.ts | 18 + ...rld.gen.populator.BigMushroom.Builder.d.ts | 58 + ...d.api.world.gen.populator.BigMushroom.d.ts | 73 + ...world.gen.populator.BlockBlob.Builder.d.ts | 52 + ...red.api.world.gen.populator.BlockBlob.d.ts | 63 + ...pi.world.gen.populator.Cactus.Builder.d.ts | 50 + ...owered.api.world.gen.populator.Cactus.d.ts | 57 + ...ld.gen.populator.ChorusFlower.Builder.d.ts | 31 + ....api.world.gen.populator.ChorusFlower.d.ts | 36 + ....world.gen.populator.DeadBush.Builder.d.ts | 36 + ...ered.api.world.gen.populator.DeadBush.d.ts | 39 + ...orld.gen.populator.DesertWell.Builder.d.ts | 34 + ...ed.api.world.gen.populator.DesertWell.d.ts | 41 + ...rld.gen.populator.DoublePlant.Builder.d.ts | 57 + ...d.api.world.gen.populator.DoublePlant.d.ts | 68 + ...i.world.gen.populator.Dungeon.Builder.d.ts | 62 + ...wered.api.world.gen.populator.Dungeon.d.ts | 78 + ...world.gen.populator.EndIsland.Builder.d.ts | 56 + ...red.api.world.gen.populator.EndIsland.d.ts | 76 + ...pi.world.gen.populator.Flower.Builder.d.ts | 59 + ...owered.api.world.gen.populator.Flower.d.ts | 70 + ...pi.world.gen.populator.Forest.Builder.d.ts | 52 + ...owered.api.world.gen.populator.Forest.d.ts | 65 + ...pi.world.gen.populator.Fossil.Builder.d.ts | 29 + ...owered.api.world.gen.populator.Fossil.d.ts | 31 + ...world.gen.populator.Glowstone.Builder.d.ts | 63 + ...red.api.world.gen.populator.Glowstone.d.ts | 82 + ...i.world.gen.populator.IcePath.Builder.d.ts | 46 + ...wered.api.world.gen.populator.IcePath.d.ts | 54 + ....world.gen.populator.IceSpike.Builder.d.ts | 59 + ...ered.api.world.gen.populator.IceSpike.d.ts | 76 + ....api.world.gen.populator.Lake.Builder.d.ts | 39 + ...epowered.api.world.gen.populator.Lake.d.ts | 51 + ...api.world.gen.populator.Melon.Builder.d.ts | 34 + ...powered.api.world.gen.populator.Melon.d.ts | 39 + ....world.gen.populator.Mushroom.Builder.d.ts | 58 + ...ered.api.world.gen.populator.Mushroom.d.ts | 75 + ...orld.gen.populator.NetherFire.Builder.d.ts | 48 + ...ed.api.world.gen.populator.NetherFire.d.ts | 57 + ...d.api.world.gen.populator.Ore.Builder.d.ts | 64 + ...gepowered.api.world.gen.populator.Ore.d.ts | 87 + ...i.world.gen.populator.Pumpkin.Builder.d.ts | 41 + ...wered.api.world.gen.populator.Pumpkin.d.ts | 49 + ...rld.gen.populator.RandomBlock.Builder.d.ts | 54 + ...d.api.world.gen.populator.RandomBlock.d.ts | 71 + ...ld.gen.populator.RandomObject.Builder.d.ts | 56 + ....api.world.gen.populator.RandomObject.d.ts | 78 + ....api.world.gen.populator.Reed.Builder.d.ts | 41 + ...epowered.api.world.gen.populator.Reed.d.ts | 49 + ....world.gen.populator.SeaFloor.Builder.d.ts | 68 + ...ered.api.world.gen.populator.SeaFloor.d.ts | 92 + ...api.world.gen.populator.Shrub.Builder.d.ts | 52 + ...powered.api.world.gen.populator.Shrub.d.ts | 63 + ....api.world.gen.populator.Vine.Builder.d.ts | 34 + ...epowered.api.world.gen.populator.Vine.d.ts | 39 + ...world.gen.populator.WaterLily.Builder.d.ts | 36 + ...red.api.world.gen.populator.WaterLily.d.ts | 39 + ...ered.api.world.gen.type.BiomeTreeType.d.ts | 45 + ...red.api.world.gen.type.BiomeTreeTypes.d.ts | 34 + ...wered.api.world.gen.type.MushroomType.d.ts | 28 + ...ered.api.world.gen.type.MushroomTypes.d.ts | 20 + ...ered.api.world.schematic.BlockPalette.d.ts | 54 + ....api.world.schematic.BlockPaletteType.d.ts | 21 + ...api.world.schematic.BlockPaletteTypes.d.ts | 18 + ...gepowered.api.world.schematic.Palette.d.ts | 53 + ...wered.api.world.schematic.PaletteType.d.ts | 16 + ...ered.api.world.schematic.PaletteTypes.d.ts | 24 + ...api.world.schematic.Schematic.Builder.d.ts | 93 + ...powered.api.world.schematic.Schematic.d.ts | 61 + ...red.api.world.storage.ChunkDataStream.d.ts | 40 + ...powered.api.world.storage.ChunkLayout.d.ts | 173 + ...red.api.world.storage.WorldProperties.d.ts | 432 +++ ...owered.api.world.storage.WorldStorage.d.ts | 53 + ...i.world.teleport.TeleportHelperFilter.d.ts | 59 + ....world.teleport.TeleportHelperFilters.d.ts | 24 + ...ongepowered.api.world.weather.Weather.d.ts | 14 + ...red.api.world.weather.WeatherUniverse.d.ts | 39 + ...ngepowered.api.world.weather.Weathers.d.ts | 20 + packages/types/package.json | 19 + 4632 files changed, 319971 insertions(+) create mode 100644 packages/types/dist/typings/bukkit/index.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.Achievement.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.Art.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.Axis.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.BanEntry.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.BanList.Type.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.BanList.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.BlockChangeDelegate.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.Bukkit.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.ChatColor.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.Chunk.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.ChunkSnapshot.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.CoalType.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.Color.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.CropState.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.Difficulty.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.DyeColor.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.Effect.Type.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.Effect.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.EntityEffect.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.FireworkEffect.Builder.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.FireworkEffect.Type.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.FireworkEffect.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.FluidCollisionMode.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.GameMode.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.GameRule.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.GrassSpecies.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.Instrument.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.Keyed.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.Location.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.Material.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.Nameable.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.NamespacedKey.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.NetherWartsState.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.Note.Tone.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.Note.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.OfflinePlayer.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.Particle.DustOptions.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.Particle.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.PortalType.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.Registry.SimpleRegistry.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.Registry.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.Rotation.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.SandstoneType.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.Server.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.SkullType.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.Sound.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.SoundCategory.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.Statistic.Type.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.Statistic.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.StructureType.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.Tag.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.TreeSpecies.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.TreeType.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.UndefinedNullability.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.UnsafeValues.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.Utility.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.Warning.WarningState.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.Warning.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.WeatherType.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.World.Environment.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.World.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.WorldBorder.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.WorldCreator.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.WorldType.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.advancement.Advancement.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.advancement.AdvancementProgress.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.attribute.Attributable.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.attribute.Attribute.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.attribute.AttributeInstance.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.attribute.AttributeModifier.Operation.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.attribute.AttributeModifier.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.Banner.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.Barrel.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.Beacon.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.Bed.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.Bell.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.Biome.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.BlastFurnace.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.Block.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.BlockFace.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.BlockState.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.BrewingStand.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.Campfire.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.Chest.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.CommandBlock.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.Comparator.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.Conduit.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.Container.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.CreatureSpawner.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.DaylightDetector.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.Dispenser.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.DoubleChest.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.Dropper.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.EnchantingTable.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.EndGateway.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.EnderChest.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.FlowerPot.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.Furnace.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.Hopper.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.Jigsaw.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.Jukebox.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.Lectern.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.Lockable.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.NoteBlock.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.PistonMoveReaction.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.ShulkerBox.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.Sign.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.Skull.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.Smoker.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.Structure.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.TileState.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.banner.Pattern.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.banner.PatternType.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.Ageable.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.AnaloguePowerable.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.Attachable.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.Bisected.Half.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.Bisected.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.BlockData.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.Directional.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.Levelled.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.Lightable.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.MultipleFacing.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.Openable.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.Orientable.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.Powerable.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.Rail.Shape.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.Rail.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.Rotatable.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.Snowable.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.Waterlogged.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Bamboo.Leaves.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Bamboo.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Bed.Part.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Bed.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Bell.Attachment.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Bell.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.BrewingStand.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.BubbleColumn.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Cake.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Campfire.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Chest.Type.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Chest.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Cocoa.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.CommandBlock.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Comparator.Mode.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Comparator.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.CoralWallFan.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.DaylightDetector.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Dispenser.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Door.Hinge.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Door.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.EndPortalFrame.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.EnderChest.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Farmland.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Fence.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Fire.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Furnace.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Gate.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.GlassPane.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Hopper.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Jukebox.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Ladder.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Lantern.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Leaves.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Lectern.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.NoteBlock.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Observer.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Piston.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.PistonHead.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.RedstoneRail.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.RedstoneWallTorch.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.RedstoneWire.Connection.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.RedstoneWire.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Repeater.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Sapling.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Scaffolding.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.SeaPickle.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Sign.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Slab.Type.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Slab.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Snow.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Stairs.Shape.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Stairs.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.StructureBlock.Mode.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.StructureBlock.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Switch.Face.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Switch.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.TNT.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.TechnicalPiston.Type.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.TechnicalPiston.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.TrapDoor.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Tripwire.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.TripwireHook.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.TurtleEgg.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.data.type.WallSign.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.structure.Mirror.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.structure.StructureRotation.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.block.structure.UsageMode.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.boss.BarColor.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.boss.BarFlag.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.boss.BarStyle.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.boss.BossBar.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.boss.KeyedBossBar.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.command.BlockCommandSender.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.command.Command.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.command.CommandException.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.command.CommandExecutor.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.command.CommandMap.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.command.CommandSender.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.command.ConsoleCommandSender.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.command.FormattedCommandAlias.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.command.MultipleCommandAlias.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.command.PluginCommand.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.command.PluginCommandYamlParser.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.command.PluginIdentifiableCommand.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.command.ProxiedCommandSender.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.command.RemoteConsoleCommandSender.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.command.SimpleCommandMap.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.command.TabCompleter.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.command.TabExecutor.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.command.defaults.BukkitCommand.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.command.defaults.HelpCommand.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.command.defaults.PluginsCommand.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.command.defaults.ReloadCommand.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.command.defaults.TimingsCommand.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.command.defaults.VersionCommand.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.configuration.Configuration.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.configuration.ConfigurationOptions.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.configuration.ConfigurationSection.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.configuration.InvalidConfigurationException.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.configuration.MemoryConfiguration.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.configuration.MemoryConfigurationOptions.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.configuration.MemorySection.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.configuration.file.FileConfiguration.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.configuration.file.FileConfigurationOptions.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.configuration.file.YamlConfiguration.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.configuration.file.YamlConfigurationOptions.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.configuration.file.YamlConstructor.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.configuration.file.YamlRepresenter.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.configuration.serialization.ConfigurationSerializable.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.configuration.serialization.ConfigurationSerialization.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.configuration.serialization.DelegateDeserialization.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.configuration.serialization.SerializableAs.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.conversations.BooleanPrompt.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.conversations.Conversable.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.conversations.Conversation.ConversationState.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.conversations.Conversation.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.conversations.ConversationAbandonedEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.conversations.ConversationAbandonedListener.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.conversations.ConversationCanceller.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.conversations.ConversationContext.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.conversations.ConversationFactory.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.conversations.ConversationPrefix.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.conversations.ExactMatchConversationCanceller.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.conversations.FixedSetPrompt.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.conversations.InactivityConversationCanceller.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.conversations.ManuallyAbandonedConversationCanceller.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.conversations.MessagePrompt.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.conversations.NullConversationPrefix.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.conversations.NumericPrompt.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.conversations.PlayerNamePrompt.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.conversations.PluginNameConversationPrefix.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.conversations.Prompt.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.conversations.RegexPrompt.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.conversations.StringPrompt.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.conversations.ValidatingPrompt.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.enchantments.Enchantment.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.enchantments.EnchantmentOffer.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.enchantments.EnchantmentTarget.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.enchantments.EnchantmentWrapper.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.AbstractArrow.PickupStatus.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.AbstractArrow.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.AbstractHorse.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.AbstractVillager.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Ageable.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Ambient.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.AnimalTamer.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Animals.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.AreaEffectCloud.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.ArmorStand.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Arrow.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Bat.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Blaze.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Boat.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Boss.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Cat.Type.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Cat.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.CaveSpider.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.ChestedHorse.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Chicken.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Cod.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.ComplexEntityPart.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.ComplexLivingEntity.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Cow.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Creature.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Creeper.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Damageable.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Dolphin.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Donkey.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.DragonFireball.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Drowned.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Egg.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.ElderGuardian.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.EnderCrystal.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.EnderDragon.Phase.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.EnderDragon.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.EnderDragonPart.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.EnderPearl.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.EnderSignal.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Enderman.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Endermite.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Entity.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.EntityType.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Evoker.Spell.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Evoker.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.EvokerFangs.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.ExperienceOrb.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Explosive.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.FallingBlock.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Fireball.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Firework.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Fish.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.FishHook.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Flying.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Fox.Type.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Fox.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Ghast.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Giant.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Golem.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Guardian.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Hanging.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Horse.Color.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Horse.Style.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Horse.Variant.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Horse.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.HumanEntity.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Husk.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Illager.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Illusioner.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.IronGolem.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Item.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.ItemFrame.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.LargeFireball.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.LeashHitch.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.LightningStrike.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.LingeringPotion.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.LivingEntity.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Llama.Color.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Llama.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.LlamaSpit.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.MagmaCube.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Minecart.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Mob.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Monster.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Mule.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.MushroomCow.Variant.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.MushroomCow.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.NPC.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Ocelot.Type.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Ocelot.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Painting.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Panda.Gene.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Panda.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Parrot.Variant.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Parrot.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Phantom.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Pig.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.PigZombie.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Pillager.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Player.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.PolarBear.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Pose.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Projectile.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.PufferFish.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Rabbit.Type.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Rabbit.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Raider.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Ravager.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Salmon.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Sheep.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Shulker.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.ShulkerBullet.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Silverfish.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Sittable.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Skeleton.SkeletonType.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Skeleton.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.SkeletonHorse.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Slime.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.SmallFireball.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Snowball.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Snowman.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.SpectralArrow.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Spellcaster.Spell.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Spellcaster.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Spider.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.SplashPotion.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Squid.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Stray.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.TNTPrimed.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Tameable.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.ThrownExpBottle.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.ThrownPotion.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.TippedArrow.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.TraderLlama.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Trident.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.TropicalFish.Pattern.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.TropicalFish.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Turtle.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Vehicle.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Vex.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Villager.Profession.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Villager.Type.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Villager.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Vindicator.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.WanderingTrader.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.WaterMob.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Witch.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Wither.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.WitherSkeleton.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.WitherSkull.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Wolf.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.Zombie.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.ZombieHorse.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.ZombieVillager.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.memory.MemoryKey.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.minecart.CommandMinecart.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.minecart.ExplosiveMinecart.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.minecart.HopperMinecart.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.minecart.PoweredMinecart.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.minecart.RideableMinecart.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.minecart.SpawnerMinecart.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.entity.minecart.StorageMinecart.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.Cancellable.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.Event.Result.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.Event.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.EventException.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.EventHandler.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.EventPriority.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.HandlerList.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.Listener.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.Action.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockBreakEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockBurnEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockCanBuildEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockCookEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockDamageEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockDispenseArmorEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockDispenseEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockDropItemEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockExpEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockExplodeEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockFadeEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockFertilizeEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockFormEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockFromToEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockGrowEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockIgniteEvent.IgniteCause.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockIgniteEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockMultiPlaceEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockPhysicsEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockPistonEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockPistonExtendEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockPistonRetractEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockPlaceEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockRedstoneEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockShearEntityEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockSpreadEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.CauldronLevelChangeEvent.ChangeReason.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.CauldronLevelChangeEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.EntityBlockFormEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.FluidLevelChangeEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.LeavesDecayEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.MoistureChangeEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.NotePlayEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.SignChangeEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.block.SpongeAbsorbEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.enchantment.EnchantItemEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.enchantment.PrepareItemEnchantEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.AreaEffectCloudApplyEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.BatToggleSleepEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.CreatureSpawnEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.CreeperPowerEvent.PowerCause.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.CreeperPowerEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EnderDragonChangePhaseEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityAirChangeEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityBreakDoorEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityBreedEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityChangeBlockEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityCombustByBlockEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityCombustByEntityEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityCombustEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityCreatePortalEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityDamageByBlockEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityDamageByEntityEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityDamageEvent.DamageCause.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityDamageEvent.DamageModifier.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityDamageEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityDeathEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityDropItemEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityExplodeEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityInteractEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPickupItemEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPlaceEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPortalEnterEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPortalEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPortalExitEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPoseChangeEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPotionEffectEvent.Action.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPotionEffectEvent.Cause.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPotionEffectEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityRegainHealthEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityResurrectEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityShootBowEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntitySpawnEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityTameEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityTargetEvent.TargetReason.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityTargetEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityTargetLivingEntityEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityTeleportEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityToggleGlideEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityToggleSwimEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityTransformEvent.TransformReason.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityTransformEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityUnleashEvent.UnleashReason.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityUnleashEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.ExpBottleEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.ExplosionPrimeEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.FireworkExplodeEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.FoodLevelChangeEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.HorseJumpEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.ItemDespawnEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.ItemMergeEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.ItemSpawnEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.LingeringPotionSplashEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.PigZapEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.PigZombieAngerEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.PlayerDeathEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.PlayerLeashEntityEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.PotionSplashEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.ProjectileHitEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.ProjectileLaunchEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.SheepDyeWoolEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.SheepRegrowWoolEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.SlimeSplitEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.VillagerAcquireTradeEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.VillagerCareerChangeEvent.ChangeReason.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.VillagerCareerChangeEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.entity.VillagerReplenishTradeEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.hanging.HangingBreakByEntityEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.hanging.HangingBreakEvent.RemoveCause.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.hanging.HangingBreakEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.hanging.HangingEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.hanging.HangingPlaceEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.inventory.BrewEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.inventory.BrewingStandFuelEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.inventory.ClickType.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.inventory.CraftItemEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.inventory.DragType.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.inventory.FurnaceBurnEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.inventory.FurnaceExtractEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.inventory.FurnaceSmeltEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryAction.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryClickEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryCloseEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryCreativeEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryDragEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryInteractEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryMoveItemEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryOpenEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryPickupItemEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryType.SlotType.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryType.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.inventory.PrepareAnvilEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.inventory.PrepareItemCraftEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.inventory.TradeSelectEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.AsyncPlayerChatEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.AsyncPlayerPreLoginEvent.Result.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.AsyncPlayerPreLoginEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerAchievementAwardedEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerAdvancementDoneEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerAnimationEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerAnimationType.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerArmorStandManipulateEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerBedEnterEvent.BedEnterResult.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerBedEnterEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerBedLeaveEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerBucketEmptyEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerBucketEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerBucketFillEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerChangedMainHandEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerChangedWorldEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerChannelEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerChatEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerChatTabCompleteEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerCommandPreprocessEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerCommandSendEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerDropItemEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerEditBookEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerEggThrowEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerExpChangeEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerFishEvent.State.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerFishEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerGameModeChangeEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerInteractAtEntityEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerInteractEntityEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerInteractEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerItemBreakEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerItemConsumeEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerItemDamageEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerItemHeldEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerItemMendEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerJoinEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerKickEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerLevelChangeEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerLocaleChangeEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerLoginEvent.Result.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerLoginEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerMoveEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerPickupArrowEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerPickupItemEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerPortalEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerPreLoginEvent.Result.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerPreLoginEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerQuitEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerRecipeDiscoverEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerRegisterChannelEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerResourcePackStatusEvent.Status.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerResourcePackStatusEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerRespawnEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerRiptideEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerShearEntityEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerStatisticIncrementEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerSwapHandItemsEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerTakeLecternBookEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerTeleportEvent.TeleportCause.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerTeleportEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerToggleFlightEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerToggleSneakEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerToggleSprintEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerUnleashEntityEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerUnregisterChannelEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerVelocityEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.server.BroadcastMessageEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.server.MapInitializeEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.server.PluginDisableEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.server.PluginEnableEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.server.PluginEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.server.RemoteServerCommandEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.server.ServerCommandEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.server.ServerEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.server.ServerListPingEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.server.ServerLoadEvent.LoadType.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.server.ServerLoadEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.server.ServiceEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.server.ServiceRegisterEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.server.ServiceUnregisterEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.server.TabCompleteEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleBlockCollisionEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleCollisionEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleCreateEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleDamageEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleDestroyEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleEnterEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleEntityCollisionEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleExitEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleMoveEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleUpdateEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.weather.LightningStrikeEvent.Cause.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.weather.LightningStrikeEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.weather.ThunderChangeEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.weather.WeatherChangeEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.weather.WeatherEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.world.ChunkEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.world.ChunkLoadEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.world.ChunkPopulateEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.world.ChunkUnloadEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.world.PortalCreateEvent.CreateReason.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.world.PortalCreateEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.world.SpawnChangeEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.world.StructureGrowEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.world.WorldEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.world.WorldInitEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.world.WorldLoadEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.world.WorldSaveEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.event.world.WorldUnloadEvent.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.generator.BlockPopulator.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.generator.ChunkGenerator.BiomeGrid.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.generator.ChunkGenerator.ChunkData.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.generator.ChunkGenerator.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.help.GenericCommandHelpTopic.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.help.HelpMap.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.help.HelpTopic.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.help.HelpTopicComparator.TopicNameComparator.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.help.HelpTopicComparator.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.help.HelpTopicFactory.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.help.IndexHelpTopic.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.AbstractHorseInventory.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.AnvilInventory.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.BeaconInventory.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.BlastingRecipe.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.BlockInventoryHolder.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.BrewerInventory.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.CampfireRecipe.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.CartographyInventory.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.CookingRecipe.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.CraftingInventory.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.DoubleChestInventory.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.EnchantingInventory.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.EntityEquipment.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.EquipmentSlot.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.FurnaceInventory.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.FurnaceRecipe.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.GrindstoneInventory.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.HorseInventory.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.Inventory.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.InventoryHolder.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.InventoryView.Property.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.InventoryView.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.ItemFactory.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.ItemFlag.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.ItemStack.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.LecternInventory.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.LlamaInventory.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.LoomInventory.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.MainHand.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.Merchant.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.MerchantInventory.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.MerchantRecipe.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.PlayerInventory.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.Recipe.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.RecipeChoice.ExactChoice.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.RecipeChoice.MaterialChoice.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.RecipeChoice.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.ShapedRecipe.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.ShapelessRecipe.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.SmokingRecipe.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.StonecutterInventory.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.StonecuttingRecipe.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.BannerMeta.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.BlockDataMeta.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.BlockStateMeta.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.BookMeta.Generation.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.BookMeta.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.CrossbowMeta.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.Damageable.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.EnchantmentStorageMeta.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.FireworkEffectMeta.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.FireworkMeta.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.ItemMeta.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.KnowledgeBookMeta.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.LeatherArmorMeta.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.MapMeta.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.PotionMeta.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.Repairable.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.SkullMeta.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.SpawnEggMeta.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.TropicalFishBucketMeta.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.tags.CustomItemTagContainer.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.tags.ItemTagAdapterContext.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.tags.ItemTagType.PrimitiveTagType.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.tags.ItemTagType.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.loot.LootContext.Builder.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.loot.LootContext.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.loot.LootTable.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.loot.LootTables.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.loot.Lootable.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.map.MapCanvas.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.map.MapCursor.Type.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.map.MapCursor.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.map.MapCursorCollection.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.map.MapFont.CharacterSprite.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.map.MapFont.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.map.MapPalette.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.map.MapRenderer.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.map.MapView.Scale.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.map.MapView.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.map.MinecraftFont.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Attachable.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Banner.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Bed.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Button.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Cake.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Cauldron.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Chest.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Coal.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.CocoaPlant.CocoaPlantSize.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.CocoaPlant.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Colorable.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Command.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Comparator.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Crops.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.DetectorRail.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Diode.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Directional.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.DirectionalContainer.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Dispenser.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Door.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Dye.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.EnderChest.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.ExtendedRails.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.FlowerPot.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Furnace.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.FurnaceAndDispenser.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Gate.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Hopper.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Ladder.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Leaves.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Lever.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.LongGrass.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.MaterialData.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.MonsterEggs.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Mushroom.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.NetherWarts.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Observer.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Openable.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.PistonBaseMaterial.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.PistonExtensionMaterial.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.PoweredRail.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.PressurePlate.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.PressureSensor.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Pumpkin.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Rails.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Redstone.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.RedstoneTorch.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.RedstoneWire.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Sandstone.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Sapling.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Sign.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.SimpleAttachableMaterialData.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Skull.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.SmoothBrick.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.SpawnEgg.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Stairs.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Step.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.TexturedMaterial.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Torch.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.TrapDoor.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Tree.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Tripwire.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.TripwireHook.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Vine.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Wood.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.WoodenStep.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.Wool.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.material.types.MushroomBlockTexture.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.metadata.FixedMetadataValue.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.metadata.LazyMetadataValue.CacheStrategy.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.metadata.LazyMetadataValue.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.metadata.MetadataConversionException.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.metadata.MetadataEvaluationException.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.metadata.MetadataStore.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.metadata.MetadataStoreBase.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.metadata.MetadataValue.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.metadata.MetadataValueAdapter.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.metadata.Metadatable.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.permissions.Permissible.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.permissions.PermissibleBase.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.permissions.Permission.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.permissions.PermissionAttachment.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.permissions.PermissionAttachmentInfo.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.permissions.PermissionDefault.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.permissions.PermissionRemovedExecutor.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.permissions.ServerOperator.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.persistence.PersistentDataAdapterContext.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.persistence.PersistentDataContainer.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.persistence.PersistentDataHolder.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.persistence.PersistentDataType.PrimitivePersistentDataType.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.persistence.PersistentDataType.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.AuthorNagException.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.EventExecutor.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.IllegalPluginAccessException.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.InvalidDescriptionException.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.InvalidPluginException.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.Plugin.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.PluginAwareness.Flags.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.PluginAwareness.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.PluginBase.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.PluginDescriptionFile.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.PluginLoadOrder.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.PluginLoader.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.PluginLogger.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.PluginManager.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.RegisteredListener.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.RegisteredServiceProvider.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.ServicePriority.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.ServicesManager.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.SimplePluginManager.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.SimpleServicesManager.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.TimedRegisteredListener.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.UnknownDependencyException.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.java.JavaPlugin.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.java.JavaPluginLoader.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.ChannelNameTooLongException.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.ChannelNotRegisteredException.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.MessageTooLargeException.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.Messenger.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.PluginChannelDirection.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.PluginMessageListener.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.PluginMessageListenerRegistration.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.PluginMessageRecipient.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.ReservedChannelException.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.StandardMessenger.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.potion.Potion.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.potion.PotionBrewer.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.potion.PotionData.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.potion.PotionEffect.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.potion.PotionEffectType.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.potion.PotionEffectTypeWrapper.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.potion.PotionType.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.projectiles.BlockProjectileSource.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.projectiles.ProjectileSource.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.scheduler.BukkitRunnable.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.scheduler.BukkitScheduler.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.scheduler.BukkitTask.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.scheduler.BukkitWorker.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.scoreboard.Criterias.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.scoreboard.DisplaySlot.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.scoreboard.NameTagVisibility.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.scoreboard.Objective.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.scoreboard.RenderType.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.scoreboard.Score.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.scoreboard.Scoreboard.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.scoreboard.ScoreboardManager.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.scoreboard.Team.Option.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.scoreboard.Team.OptionStatus.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.scoreboard.Team.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.util.BlockIterator.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.util.BlockVector.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.util.BoundingBox.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.util.CachedServerIcon.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.util.ChatPaginator.ChatPage.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.util.ChatPaginator.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.util.Consumer.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.util.EulerAngle.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.util.FileUtil.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.util.NumberConversions.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.util.RayTraceResult.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.util.StringUtil.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.util.Vector.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.util.io.BukkitObjectInputStream.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.util.io.BukkitObjectOutputStream.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.util.noise.NoiseGenerator.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.util.noise.OctaveGenerator.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.util.noise.PerlinNoiseGenerator.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.util.noise.PerlinOctaveGenerator.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.util.noise.SimplexNoiseGenerator.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.util.noise.SimplexOctaveGenerator.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.util.permissions.BroadcastPermissions.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.util.permissions.CommandPermissions.d.ts create mode 100644 packages/types/dist/typings/bukkit/org.bukkit.util.permissions.DefaultPermissions.d.ts create mode 100644 packages/types/dist/typings/jdk/index.d.ts create mode 100644 packages/types/dist/typings/jdk/java.applet.Applet.AccessibleApplet.d.ts create mode 100644 packages/types/dist/typings/jdk/java.applet.Applet.d.ts create mode 100644 packages/types/dist/typings/jdk/java.applet.AppletContext.d.ts create mode 100644 packages/types/dist/typings/jdk/java.applet.AppletStub.d.ts create mode 100644 packages/types/dist/typings/jdk/java.applet.AudioClip.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.AWTError.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.AWTEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.AWTEventMulticaster.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.AWTException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.AWTKeyStroke.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.AWTPermission.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.ActiveEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Adjustable.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.AlphaComposite.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.BasicStroke.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.BorderLayout.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.BufferCapabilities.FlipContents.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.BufferCapabilities.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Button.AccessibleAWTButton.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Button.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Canvas.AccessibleAWTCanvas.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Canvas.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.CardLayout.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Checkbox.AccessibleAWTCheckbox.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Checkbox.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.CheckboxGroup.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.CheckboxMenuItem.AccessibleAWTCheckboxMenuItem.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.CheckboxMenuItem.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Choice.AccessibleAWTChoice.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Choice.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Color.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Component.AccessibleAWTComponent.AccessibleAWTComponentHandler.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Component.AccessibleAWTComponent.AccessibleAWTFocusHandler.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Component.AccessibleAWTComponent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Component.BaselineResizeBehavior.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Component.BltBufferStrategy.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Component.FlipBufferStrategy.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Component.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.ComponentOrientation.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Composite.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.CompositeContext.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Container.AccessibleAWTContainer.AccessibleContainerHandler.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Container.AccessibleAWTContainer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Container.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.ContainerOrderFocusTraversalPolicy.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Cursor.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.DefaultFocusTraversalPolicy.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.DefaultKeyboardFocusManager.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Desktop.Action.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Desktop.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Dialog.AccessibleAWTDialog.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Dialog.ModalExclusionType.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Dialog.ModalityType.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Dialog.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Dimension.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.DisplayMode.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Event.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.EventQueue.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.FileDialog.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.FlowLayout.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.FocusTraversalPolicy.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Font.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.FontFormatException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.FontMetrics.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Frame.AccessibleAWTFrame.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Frame.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.GradientPaint.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Graphics.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Graphics2D.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.GraphicsConfigTemplate.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.GraphicsConfiguration.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.GraphicsDevice.WindowTranslucency.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.GraphicsDevice.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.GraphicsEnvironment.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.GridBagConstraints.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.GridBagLayout.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.GridBagLayoutInfo.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.GridLayout.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.HeadlessException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.IllegalComponentStateException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Image.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.ImageCapabilities.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Insets.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.ItemSelectable.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.JobAttributes.DefaultSelectionType.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.JobAttributes.DestinationType.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.JobAttributes.DialogType.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.JobAttributes.MultipleDocumentHandlingType.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.JobAttributes.SidesType.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.JobAttributes.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.KeyEventDispatcher.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.KeyEventPostProcessor.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.KeyboardFocusManager.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Label.AccessibleAWTLabel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Label.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.LayoutManager.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.LayoutManager2.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.LinearGradientPaint.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.List.AccessibleAWTList.AccessibleAWTListChild.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.List.AccessibleAWTList.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.List.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.MediaTracker.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Menu.AccessibleAWTMenu.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Menu.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.MenuBar.AccessibleAWTMenuBar.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.MenuBar.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.MenuComponent.AccessibleAWTMenuComponent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.MenuComponent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.MenuContainer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.MenuItem.AccessibleAWTMenuItem.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.MenuItem.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.MenuShortcut.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.MouseInfo.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.MultipleGradientPaint.ColorSpaceType.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.MultipleGradientPaint.CycleMethod.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.MultipleGradientPaint.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.PageAttributes.ColorType.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.PageAttributes.MediaType.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.PageAttributes.OrientationRequestedType.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.PageAttributes.OriginType.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.PageAttributes.PrintQualityType.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.PageAttributes.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Paint.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.PaintContext.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Panel.AccessibleAWTPanel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Panel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Point.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.PointerInfo.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Polygon.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.PopupMenu.AccessibleAWTPopupMenu.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.PopupMenu.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.PrintGraphics.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.PrintJob.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.RadialGradientPaint.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Rectangle.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.RenderingHints.Key.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.RenderingHints.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Robot.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.ScrollPane.AccessibleAWTScrollPane.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.ScrollPane.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.ScrollPaneAdjustable.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Scrollbar.AccessibleAWTScrollBar.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Scrollbar.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.SecondaryLoop.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Shape.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.SplashScreen.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Stroke.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.SystemColor.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.SystemTray.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.TextArea.AccessibleAWTTextArea.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.TextArea.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.TextComponent.AccessibleAWTTextComponent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.TextComponent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.TextField.AccessibleAWTTextField.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.TextField.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.TexturePaint.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Toolkit.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Transparency.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.TrayIcon.MessageType.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.TrayIcon.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Window.AccessibleAWTWindow.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Window.Type.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.Window.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.color.CMMException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.color.ColorSpace.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.color.ICC_ColorSpace.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.color.ICC_Profile.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.color.ICC_ProfileGray.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.color.ICC_ProfileRGB.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.color.ProfileDataException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.datatransfer.Clipboard.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.datatransfer.ClipboardOwner.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.datatransfer.DataFlavor.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.datatransfer.FlavorEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.datatransfer.FlavorListener.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.datatransfer.FlavorMap.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.datatransfer.FlavorTable.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.datatransfer.MimeTypeParseException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.datatransfer.StringSelection.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.datatransfer.SystemFlavorMap.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.datatransfer.Transferable.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.datatransfer.UnsupportedFlavorException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.dnd.Autoscroll.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.dnd.DnDConstants.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.dnd.DragGestureEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.dnd.DragGestureListener.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.dnd.DragGestureRecognizer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.dnd.DragSource.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.dnd.DragSourceAdapter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.dnd.DragSourceContext.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.dnd.DragSourceDragEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.dnd.DragSourceDropEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.dnd.DragSourceEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.dnd.DragSourceListener.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.dnd.DragSourceMotionListener.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.dnd.DropTarget.DropTargetAutoScroller.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.dnd.DropTarget.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.dnd.DropTargetAdapter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.dnd.DropTargetContext.TransferableProxy.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.dnd.DropTargetContext.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.dnd.DropTargetDragEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.dnd.DropTargetDropEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.dnd.DropTargetEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.dnd.DropTargetListener.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.dnd.InvalidDnDOperationException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.dnd.MouseDragGestureRecognizer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.dnd.peer.DragSourceContextPeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.dnd.peer.DropTargetContextPeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.dnd.peer.DropTargetPeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.AWTEventListener.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.AWTEventListenerProxy.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.ActionEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.ActionListener.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.AdjustmentEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.AdjustmentListener.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.ComponentAdapter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.ComponentEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.ComponentListener.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.ContainerAdapter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.ContainerEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.ContainerListener.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.FocusAdapter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.FocusEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.FocusListener.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.HierarchyBoundsAdapter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.HierarchyBoundsListener.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.HierarchyEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.HierarchyListener.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.InputEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.InputMethodEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.InputMethodListener.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.InvocationEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.ItemEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.ItemListener.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.KeyAdapter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.KeyEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.KeyListener.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.MouseAdapter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.MouseEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.MouseListener.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.MouseMotionAdapter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.MouseMotionListener.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.MouseWheelEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.MouseWheelListener.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.PaintEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.TextEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.TextListener.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.WindowAdapter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.WindowEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.WindowFocusListener.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.WindowListener.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.event.WindowStateListener.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.font.FontRenderContext.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.font.GlyphJustificationInfo.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.font.GlyphMetrics.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.font.GlyphVector.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.font.GraphicAttribute.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.font.ImageGraphicAttribute.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.font.LayoutPath.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.font.LineBreakMeasurer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.font.LineMetrics.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.font.MultipleMaster.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.font.NumericShaper.Range.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.font.NumericShaper.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.font.OpenType.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.font.ShapeGraphicAttribute.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.font.TextAttribute.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.font.TextHitInfo.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.font.TextLayout.CaretPolicy.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.font.TextLayout.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.font.TextMeasurer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.font.TransformAttribute.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.AffineTransform.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.Arc2D.Double.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.Arc2D.Float.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.Arc2D.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.Area.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.CubicCurve2D.Double.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.CubicCurve2D.Float.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.CubicCurve2D.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.Dimension2D.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.Ellipse2D.Double.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.Ellipse2D.Float.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.Ellipse2D.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.FlatteningPathIterator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.GeneralPath.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.IllegalPathStateException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.Line2D.Double.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.Line2D.Float.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.Line2D.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.NoninvertibleTransformException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.Path2D.Double.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.Path2D.Float.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.Path2D.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.PathIterator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.Point2D.Double.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.Point2D.Float.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.Point2D.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.QuadCurve2D.Double.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.QuadCurve2D.Float.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.QuadCurve2D.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.Rectangle2D.Double.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.Rectangle2D.Float.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.Rectangle2D.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.RectangularShape.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.RoundRectangle2D.Double.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.RoundRectangle2D.Float.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.geom.RoundRectangle2D.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.im.InputContext.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.im.InputMethodHighlight.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.im.InputMethodRequests.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.im.InputSubset.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.im.spi.InputMethod.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.im.spi.InputMethodContext.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.im.spi.InputMethodDescriptor.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.AffineTransformOp.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.AreaAveragingScaleFilter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.BandCombineOp.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.BandedSampleModel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.BufferStrategy.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.BufferedImage.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.BufferedImageFilter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.BufferedImageOp.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.ByteLookupTable.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.ColorConvertOp.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.ColorModel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.ComponentColorModel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.ComponentSampleModel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.ConvolveOp.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.CropImageFilter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.DataBuffer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.DataBufferByte.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.DataBufferDouble.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.DataBufferFloat.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.DataBufferInt.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.DataBufferShort.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.DataBufferUShort.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.DirectColorModel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.FilteredImageSource.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.ImageConsumer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.ImageFilter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.ImageObserver.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.ImageProducer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.ImagingOpException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.IndexColorModel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.Kernel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.LookupOp.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.LookupTable.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.MemoryImageSource.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.MultiPixelPackedSampleModel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.PackedColorModel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.PixelGrabber.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.PixelInterleavedSampleModel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.RGBImageFilter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.Raster.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.RasterFormatException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.RasterOp.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.RenderedImage.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.ReplicateScaleFilter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.RescaleOp.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.SampleModel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.ShortLookupTable.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.SinglePixelPackedSampleModel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.TileObserver.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.VolatileImage.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.WritableRaster.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.WritableRenderedImage.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.renderable.ContextualRenderedImageFactory.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.renderable.ParameterBlock.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.renderable.RenderContext.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.renderable.RenderableImage.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.renderable.RenderableImageOp.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.renderable.RenderableImageProducer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.image.renderable.RenderedImageFactory.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.peer.ButtonPeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.peer.CanvasPeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.peer.CheckboxMenuItemPeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.peer.CheckboxPeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.peer.ChoicePeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.peer.ComponentPeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.peer.ContainerPeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.peer.DesktopPeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.peer.DialogPeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.peer.FileDialogPeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.peer.FontPeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.peer.FramePeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.peer.KeyboardFocusManagerPeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.peer.LabelPeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.peer.LightweightPeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.peer.ListPeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.peer.MenuBarPeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.peer.MenuComponentPeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.peer.MenuItemPeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.peer.MenuPeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.peer.MouseInfoPeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.peer.PanelPeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.peer.PopupMenuPeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.peer.RobotPeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.peer.ScrollPanePeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.peer.ScrollbarPeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.peer.SystemTrayPeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.peer.TextAreaPeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.peer.TextComponentPeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.peer.TextFieldPeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.peer.TrayIconPeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.peer.WindowPeer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.print.Book.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.print.PageFormat.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.print.Pageable.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.print.Paper.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.print.Printable.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.print.PrinterAbortException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.print.PrinterException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.print.PrinterGraphics.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.print.PrinterIOException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.awt.print.PrinterJob.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.AppletInitializer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.BeanDescriptor.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.BeanInfo.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.Beans.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.ConstructorProperties.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.Customizer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.DefaultPersistenceDelegate.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.DesignMode.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.Encoder.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.EventHandler.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.EventSetDescriptor.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.ExceptionListener.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.Expression.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.FeatureDescriptor.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.IndexedPropertyChangeEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.IndexedPropertyDescriptor.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.IntrospectionException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.Introspector.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.MethodDescriptor.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.ParameterDescriptor.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.PersistenceDelegate.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.PropertyChangeEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.PropertyChangeListener.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.PropertyChangeListenerProxy.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.PropertyChangeSupport.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.PropertyDescriptor.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.PropertyEditor.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.PropertyEditorManager.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.PropertyEditorSupport.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.PropertyVetoException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.SimpleBeanInfo.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.Statement.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.Transient.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.VetoableChangeListener.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.VetoableChangeListenerProxy.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.VetoableChangeSupport.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.Visibility.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.XMLDecoder.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.XMLEncoder.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.beancontext.BeanContext.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextChild.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextChildComponentProxy.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextChildSupport.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextContainerProxy.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextMembershipEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextMembershipListener.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextProxy.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServiceAvailableEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServiceProvider.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServiceProviderBeanInfo.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServiceRevokedEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServiceRevokedListener.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServices.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServicesListener.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServicesSupport.BCSSChild.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServicesSupport.BCSSProxyServiceProvider.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServicesSupport.BCSSServiceProvider.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServicesSupport.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextSupport.BCSChild.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextSupport.BCSIterator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextSupport.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.BufferedInputStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.BufferedOutputStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.BufferedReader.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.BufferedWriter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.ByteArrayInputStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.ByteArrayOutputStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.CharArrayReader.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.CharArrayWriter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.CharConversionException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.Closeable.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.Console.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.DataInput.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.DataInputStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.DataOutput.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.DataOutputStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.EOFException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.Externalizable.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.File.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.FileDescriptor.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.FileFilter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.FileInputStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.FileNotFoundException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.FileOutputStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.FilePermission.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.FileReader.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.FileWriter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.FilenameFilter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.FilterInputStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.FilterOutputStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.FilterReader.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.FilterWriter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.Flushable.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.IOError.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.IOException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.InputStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.InputStreamReader.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.InterruptedIOException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.InvalidClassException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.InvalidObjectException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.LineNumberInputStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.LineNumberReader.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.NotActiveException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.NotSerializableException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.ObjectInput.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.ObjectInputStream.GetField.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.ObjectInputStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.ObjectInputValidation.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.ObjectOutput.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.ObjectOutputStream.PutField.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.ObjectOutputStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.ObjectStreamClass.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.ObjectStreamConstants.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.ObjectStreamException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.ObjectStreamField.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.OptionalDataException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.OutputStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.OutputStreamWriter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.PipedInputStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.PipedOutputStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.PipedReader.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.PipedWriter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.PrintStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.PrintWriter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.PushbackInputStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.PushbackReader.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.RandomAccessFile.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.Reader.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.SequenceInputStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.Serializable.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.SerializablePermission.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.StreamCorruptedException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.StreamTokenizer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.StringBufferInputStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.StringReader.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.StringWriter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.SyncFailedException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.UTFDataFormatException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.UncheckedIOException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.UnsupportedEncodingException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.WriteAbortedException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.io.Writer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.AbstractMethodError.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Appendable.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.ArithmeticException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.ArrayIndexOutOfBoundsException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.ArrayStoreException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.AssertionError.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.AutoCloseable.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Boolean.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.BootstrapMethodError.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Byte.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.CharSequence.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Character.Subset.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Character.UnicodeBlock.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Character.UnicodeScript.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Character.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Class.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.ClassCastException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.ClassCircularityError.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.ClassFormatError.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.ClassLoader.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.ClassNotFoundException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.ClassValue.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.CloneNotSupportedException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Cloneable.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Comparable.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Compiler.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Deprecated.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Double.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Enum.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.EnumConstantNotPresentException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Error.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Exception.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.ExceptionInInitializerError.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Float.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.FunctionalInterface.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.IllegalAccessError.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.IllegalAccessException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.IllegalArgumentException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.IllegalMonitorStateException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.IllegalStateException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.IllegalThreadStateException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.IncompatibleClassChangeError.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.IndexOutOfBoundsException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.InheritableThreadLocal.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.InstantiationError.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.InstantiationException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Integer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.InternalError.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.InterruptedException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Iterable.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.LinkageError.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Long.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Math.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.NegativeArraySizeException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.NoClassDefFoundError.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.NoSuchFieldError.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.NoSuchFieldException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.NoSuchMethodError.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.NoSuchMethodException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.NullPointerException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Number.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.NumberFormatException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Object.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.OutOfMemoryError.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Override.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Package.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Process.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.ProcessBuilder.Redirect.Type.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.ProcessBuilder.Redirect.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.ProcessBuilder.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Readable.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.ReflectiveOperationException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Runnable.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Runtime.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.RuntimeException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.RuntimePermission.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.SafeVarargs.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.SecurityException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.SecurityManager.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Short.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.StackOverflowError.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.StackTraceElement.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.StrictMath.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.String.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.StringBuffer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.StringBuilder.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.StringIndexOutOfBoundsException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.SuppressWarnings.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.System.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Thread.State.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Thread.UncaughtExceptionHandler.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Thread.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.ThreadDeath.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.ThreadGroup.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.ThreadLocal.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Throwable.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.TypeNotPresentException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.UnknownError.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.UnsatisfiedLinkError.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.UnsupportedClassVersionError.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.UnsupportedOperationException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.VerifyError.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.VirtualMachineError.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.Void.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.annotation.Annotation.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.annotation.AnnotationFormatError.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.annotation.AnnotationTypeMismatchException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.annotation.Documented.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.annotation.ElementType.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.annotation.IncompleteAnnotationException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.annotation.Inherited.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.annotation.Native.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.annotation.Repeatable.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.annotation.Retention.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.annotation.RetentionPolicy.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.annotation.Target.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.instrument.ClassDefinition.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.instrument.ClassFileTransformer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.instrument.IllegalClassFormatException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.instrument.Instrumentation.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.instrument.UnmodifiableClassException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.invoke.CallSite.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.invoke.ConstantCallSite.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.invoke.LambdaConversionException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.invoke.LambdaMetafactory.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.invoke.MethodHandle.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.invoke.MethodHandleInfo.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.invoke.MethodHandleProxies.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.invoke.MethodHandles.Lookup.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.invoke.MethodHandles.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.invoke.MethodType.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.invoke.MutableCallSite.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.invoke.SerializedLambda.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.invoke.SwitchPoint.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.invoke.VolatileCallSite.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.invoke.WrongMethodTypeException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.management.BufferPoolMXBean.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.management.ClassLoadingMXBean.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.management.CompilationMXBean.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.management.GarbageCollectorMXBean.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.management.LockInfo.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.management.ManagementFactory.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.management.ManagementPermission.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.management.MemoryMXBean.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.management.MemoryManagerMXBean.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.management.MemoryNotificationInfo.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.management.MemoryPoolMXBean.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.management.MemoryType.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.management.MemoryUsage.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.management.MonitorInfo.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.management.OperatingSystemMXBean.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.management.PlatformLoggingMXBean.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.management.PlatformManagedObject.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.management.RuntimeMXBean.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.management.ThreadInfo.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.management.ThreadMXBean.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.ref.PhantomReference.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.ref.Reference.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.ref.ReferenceQueue.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.ref.SoftReference.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.ref.WeakReference.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.reflect.AccessibleObject.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.reflect.AnnotatedArrayType.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.reflect.AnnotatedElement.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.reflect.AnnotatedParameterizedType.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.reflect.AnnotatedType.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.reflect.AnnotatedTypeVariable.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.reflect.AnnotatedWildcardType.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.reflect.Array.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.reflect.Constructor.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.reflect.Executable.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.reflect.Field.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.reflect.GenericArrayType.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.reflect.GenericDeclaration.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.reflect.GenericSignatureFormatError.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.reflect.InvocationHandler.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.reflect.InvocationTargetException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.reflect.MalformedParameterizedTypeException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.reflect.MalformedParametersException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.reflect.Member.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.reflect.Method.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.reflect.Modifier.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.reflect.Parameter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.reflect.ParameterizedType.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.reflect.Proxy.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.reflect.ReflectPermission.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.reflect.Type.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.reflect.TypeVariable.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.reflect.UndeclaredThrowableException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.lang.reflect.WildcardType.d.ts create mode 100644 packages/types/dist/typings/jdk/java.math.BigDecimal.d.ts create mode 100644 packages/types/dist/typings/jdk/java.math.BigInteger.d.ts create mode 100644 packages/types/dist/typings/jdk/java.math.MathContext.d.ts create mode 100644 packages/types/dist/typings/jdk/java.math.RoundingMode.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.Authenticator.RequestorType.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.Authenticator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.BindException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.CacheRequest.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.CacheResponse.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.ConnectException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.ContentHandler.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.ContentHandlerFactory.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.CookieHandler.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.CookieManager.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.CookiePolicy.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.CookieStore.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.DatagramPacket.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.DatagramSocket.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.DatagramSocketImpl.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.DatagramSocketImplFactory.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.FileNameMap.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.HttpCookie.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.HttpRetryException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.HttpURLConnection.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.IDN.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.Inet4Address.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.Inet6Address.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.InetAddress.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.InetSocketAddress.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.InterfaceAddress.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.JarURLConnection.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.MalformedURLException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.MulticastSocket.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.NetPermission.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.NetworkInterface.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.NoRouteToHostException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.PasswordAuthentication.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.PortUnreachableException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.ProtocolException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.ProtocolFamily.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.Proxy.Type.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.Proxy.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.ProxySelector.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.ResponseCache.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.SecureCacheResponse.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.ServerSocket.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.Socket.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.SocketAddress.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.SocketException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.SocketImpl.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.SocketImplFactory.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.SocketOption.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.SocketOptions.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.SocketPermission.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.SocketTimeoutException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.StandardProtocolFamily.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.StandardSocketOptions.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.URI.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.URISyntaxException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.URL.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.URLClassLoader.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.URLConnection.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.URLDecoder.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.URLEncoder.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.URLPermission.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.URLStreamHandler.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.URLStreamHandlerFactory.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.UnknownHostException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.net.UnknownServiceException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.Buffer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.BufferOverflowException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.BufferUnderflowException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.ByteBuffer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.ByteOrder.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.CharBuffer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.DoubleBuffer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.FloatBuffer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.IntBuffer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.InvalidMarkException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.LongBuffer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.MappedByteBuffer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.ReadOnlyBufferException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.ShortBuffer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.AcceptPendingException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.AlreadyBoundException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.AlreadyConnectedException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.AsynchronousByteChannel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.AsynchronousChannel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.AsynchronousChannelGroup.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.AsynchronousCloseException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.AsynchronousFileChannel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.AsynchronousServerSocketChannel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.AsynchronousSocketChannel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.ByteChannel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.CancelledKeyException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.Channel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.Channels.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.ClosedByInterruptException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.ClosedChannelException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.ClosedSelectorException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.CompletionHandler.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.ConnectionPendingException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.DatagramChannel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.FileChannel.MapMode.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.FileChannel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.FileLock.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.FileLockInterruptionException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.GatheringByteChannel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.IllegalBlockingModeException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.IllegalChannelGroupException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.IllegalSelectorException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.InterruptedByTimeoutException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.InterruptibleChannel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.MembershipKey.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.MulticastChannel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.NetworkChannel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.NoConnectionPendingException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.NonReadableChannelException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.NonWritableChannelException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.NotYetBoundException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.NotYetConnectedException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.OverlappingFileLockException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.Pipe.SinkChannel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.Pipe.SourceChannel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.Pipe.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.ReadPendingException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.ReadableByteChannel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.ScatteringByteChannel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.SeekableByteChannel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.SelectableChannel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.SelectionKey.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.Selector.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.ServerSocketChannel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.ShutdownChannelGroupException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.SocketChannel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.UnresolvedAddressException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.UnsupportedAddressTypeException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.WritableByteChannel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.WritePendingException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.spi.AbstractInterruptibleChannel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.spi.AbstractSelectableChannel.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.spi.AbstractSelectionKey.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.spi.AbstractSelector.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.spi.AsynchronousChannelProvider.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.channels.spi.SelectorProvider.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.charset.CharacterCodingException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.charset.Charset.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.charset.CharsetDecoder.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.charset.CharsetEncoder.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.charset.CoderMalfunctionError.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.charset.CoderResult.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.charset.CodingErrorAction.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.charset.IllegalCharsetNameException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.charset.MalformedInputException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.charset.StandardCharsets.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.charset.UnmappableCharacterException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.charset.UnsupportedCharsetException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.charset.spi.CharsetProvider.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.AccessDeniedException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.AccessMode.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.AtomicMoveNotSupportedException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.ClosedDirectoryStreamException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.ClosedFileSystemException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.ClosedWatchServiceException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.CopyOption.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.DirectoryIteratorException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.DirectoryNotEmptyException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.DirectoryStream.Filter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.DirectoryStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.FileAlreadyExistsException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.FileStore.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.FileSystem.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.FileSystemAlreadyExistsException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.FileSystemException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.FileSystemLoopException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.FileSystemNotFoundException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.FileSystems.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.FileVisitOption.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.FileVisitResult.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.FileVisitor.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.Files.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.InvalidPathException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.LinkOption.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.LinkPermission.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.NoSuchFileException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.NotDirectoryException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.NotLinkException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.OpenOption.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.Path.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.PathMatcher.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.Paths.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.ProviderMismatchException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.ProviderNotFoundException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.ReadOnlyFileSystemException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.SecureDirectoryStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.SimpleFileVisitor.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.StandardCopyOption.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.StandardOpenOption.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.StandardWatchEventKinds.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.WatchEvent.Kind.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.WatchEvent.Modifier.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.WatchEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.WatchKey.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.WatchService.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.Watchable.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.attribute.AclEntry.Builder.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.attribute.AclEntry.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.attribute.AclEntryFlag.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.attribute.AclEntryPermission.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.attribute.AclEntryType.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.attribute.AclFileAttributeView.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.attribute.AttributeView.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.attribute.BasicFileAttributeView.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.attribute.BasicFileAttributes.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.attribute.DosFileAttributeView.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.attribute.DosFileAttributes.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.attribute.FileAttribute.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.attribute.FileAttributeView.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.attribute.FileOwnerAttributeView.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.attribute.FileStoreAttributeView.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.attribute.FileTime.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.attribute.GroupPrincipal.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.attribute.PosixFileAttributeView.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.attribute.PosixFileAttributes.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.attribute.PosixFilePermission.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.attribute.PosixFilePermissions.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.attribute.UserDefinedFileAttributeView.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.attribute.UserPrincipal.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.attribute.UserPrincipalLookupService.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.attribute.UserPrincipalNotFoundException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.spi.FileSystemProvider.d.ts create mode 100644 packages/types/dist/typings/jdk/java.nio.file.spi.FileTypeDetector.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.AccessException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.AlreadyBoundException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.ConnectException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.ConnectIOException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.MarshalException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.MarshalledObject.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.Naming.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.NoSuchObjectException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.NotBoundException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.RMISecurityException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.RMISecurityManager.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.Remote.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.RemoteException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.ServerError.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.ServerException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.ServerRuntimeException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.StubNotFoundException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.UnexpectedException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.UnknownHostException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.UnmarshalException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.activation.Activatable.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.activation.ActivateFailedException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.activation.ActivationDesc.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.activation.ActivationException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.activation.ActivationGroup.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.activation.ActivationGroupDesc.CommandEnvironment.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.activation.ActivationGroupDesc.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.activation.ActivationGroupID.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.activation.ActivationID.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.activation.ActivationInstantiator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.activation.ActivationMonitor.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.activation.ActivationSystem.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.activation.Activator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.activation.UnknownGroupException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.activation.UnknownObjectException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.dgc.DGC.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.dgc.Lease.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.dgc.VMID.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.registry.LocateRegistry.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.registry.Registry.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.registry.RegistryHandler.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.server.ExportException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.server.LoaderHandler.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.server.LogStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.server.ObjID.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.server.Operation.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.server.RMIClassLoader.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.server.RMIClassLoaderSpi.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.server.RMIClientSocketFactory.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.server.RMIFailureHandler.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.server.RMIServerSocketFactory.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.server.RMISocketFactory.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.server.RemoteCall.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.server.RemoteObject.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.server.RemoteObjectInvocationHandler.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.server.RemoteRef.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.server.RemoteServer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.server.RemoteStub.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.server.ServerCloneException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.server.ServerNotActiveException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.server.ServerRef.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.server.Skeleton.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.server.SkeletonMismatchException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.server.SkeletonNotFoundException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.server.SocketSecurityException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.server.UID.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.server.UnicastRemoteObject.d.ts create mode 100644 packages/types/dist/typings/jdk/java.rmi.server.Unreferenced.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.AccessControlContext.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.AccessControlException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.AccessController.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.AlgorithmConstraints.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.AlgorithmParameterGenerator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.AlgorithmParameterGeneratorSpi.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.AlgorithmParameters.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.AlgorithmParametersSpi.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.AllPermission.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.AuthProvider.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.BasicPermission.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.Certificate.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.CodeSigner.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.CodeSource.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.CryptoPrimitive.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.DigestException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.DigestInputStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.DigestOutputStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.DomainCombiner.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.DomainLoadStoreParameter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.GeneralSecurityException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.Guard.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.GuardedObject.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.Identity.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.IdentityScope.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.InvalidAlgorithmParameterException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.InvalidKeyException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.InvalidParameterException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.Key.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.KeyException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.KeyFactory.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.KeyFactorySpi.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.KeyManagementException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.KeyPair.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.KeyPairGenerator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.KeyPairGeneratorSpi.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.KeyRep.Type.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.KeyRep.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.KeyStore.Builder.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.KeyStore.CallbackHandlerProtection.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.KeyStore.Entry.Attribute.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.KeyStore.Entry.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.KeyStore.LoadStoreParameter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.KeyStore.PasswordProtection.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.KeyStore.PrivateKeyEntry.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.KeyStore.ProtectionParameter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.KeyStore.SecretKeyEntry.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.KeyStore.TrustedCertificateEntry.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.KeyStore.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.KeyStoreException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.KeyStoreSpi.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.MessageDigest.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.MessageDigestSpi.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.NoSuchAlgorithmException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.NoSuchProviderException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.PKCS12Attribute.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.Permission.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.PermissionCollection.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.Permissions.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.Policy.Parameters.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.Policy.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.PolicySpi.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.Principal.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.PrivateKey.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.PrivilegedAction.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.PrivilegedActionException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.PrivilegedExceptionAction.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.ProtectionDomain.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.Provider.Service.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.Provider.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.ProviderException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.PublicKey.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.SecureClassLoader.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.SecureRandom.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.SecureRandomSpi.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.Security.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.SecurityPermission.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.Signature.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.SignatureException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.SignatureSpi.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.SignedObject.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.Signer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.Timestamp.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.URIParameter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.UnrecoverableEntryException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.UnrecoverableKeyException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.UnresolvedPermission.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.acl.Acl.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.acl.AclEntry.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.acl.AclNotFoundException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.acl.Group.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.acl.LastOwnerException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.acl.NotOwnerException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.acl.Owner.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.acl.Permission.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.CRL.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.CRLException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.CRLReason.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.CRLSelector.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.CertPath.CertPathRep.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.CertPath.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.CertPathBuilder.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.CertPathBuilderException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.CertPathBuilderResult.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.CertPathBuilderSpi.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.CertPathChecker.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.CertPathParameters.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.CertPathValidator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.CertPathValidatorException.BasicReason.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.CertPathValidatorException.Reason.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.CertPathValidatorException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.CertPathValidatorResult.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.CertPathValidatorSpi.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.CertSelector.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.CertStore.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.CertStoreException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.CertStoreParameters.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.CertStoreSpi.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.Certificate.CertificateRep.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.Certificate.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.CertificateEncodingException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.CertificateException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.CertificateExpiredException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.CertificateFactory.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.CertificateFactorySpi.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.CertificateNotYetValidException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.CertificateParsingException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.CertificateRevokedException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.CollectionCertStoreParameters.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.Extension.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.LDAPCertStoreParameters.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.PKIXBuilderParameters.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.PKIXCertPathBuilderResult.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.PKIXCertPathChecker.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.PKIXCertPathValidatorResult.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.PKIXParameters.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.PKIXReason.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.PKIXRevocationChecker.Option.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.PKIXRevocationChecker.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.PolicyNode.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.PolicyQualifierInfo.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.TrustAnchor.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.X509CRL.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.X509CRLEntry.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.X509CRLSelector.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.X509CertSelector.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.X509Certificate.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.cert.X509Extension.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.interfaces.DSAKey.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.interfaces.DSAKeyPairGenerator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.interfaces.DSAParams.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.interfaces.DSAPrivateKey.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.interfaces.DSAPublicKey.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.interfaces.ECKey.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.interfaces.ECPrivateKey.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.interfaces.ECPublicKey.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.interfaces.RSAKey.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.interfaces.RSAMultiPrimePrivateCrtKey.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.interfaces.RSAPrivateCrtKey.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.interfaces.RSAPrivateKey.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.interfaces.RSAPublicKey.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.spec.AlgorithmParameterSpec.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.spec.DSAGenParameterSpec.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.spec.DSAParameterSpec.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.spec.DSAPrivateKeySpec.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.spec.DSAPublicKeySpec.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.spec.ECField.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.spec.ECFieldF2m.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.spec.ECFieldFp.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.spec.ECGenParameterSpec.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.spec.ECParameterSpec.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.spec.ECPoint.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.spec.ECPrivateKeySpec.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.spec.ECPublicKeySpec.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.spec.EllipticCurve.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.spec.EncodedKeySpec.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.spec.InvalidKeySpecException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.spec.InvalidParameterSpecException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.spec.KeySpec.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.spec.MGF1ParameterSpec.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.spec.PKCS8EncodedKeySpec.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.spec.PSSParameterSpec.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.spec.RSAKeyGenParameterSpec.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.spec.RSAMultiPrimePrivateCrtKeySpec.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.spec.RSAOtherPrimeInfo.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.spec.RSAPrivateCrtKeySpec.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.spec.RSAPrivateKeySpec.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.spec.RSAPublicKeySpec.d.ts create mode 100644 packages/types/dist/typings/jdk/java.security.spec.X509EncodedKeySpec.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.Array.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.BatchUpdateException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.Blob.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.CallableStatement.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.ClientInfoStatus.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.Clob.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.Connection.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.DataTruncation.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.DatabaseMetaData.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.Date.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.Driver.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.DriverAction.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.DriverManager.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.DriverPropertyInfo.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.JDBCType.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.NClob.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.ParameterMetaData.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.PreparedStatement.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.PseudoColumnUsage.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.Ref.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.ResultSet.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.ResultSetMetaData.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.RowId.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.RowIdLifetime.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.SQLClientInfoException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.SQLData.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.SQLDataException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.SQLException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.SQLFeatureNotSupportedException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.SQLInput.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.SQLIntegrityConstraintViolationException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.SQLInvalidAuthorizationSpecException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.SQLNonTransientConnectionException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.SQLNonTransientException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.SQLOutput.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.SQLPermission.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.SQLRecoverableException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.SQLSyntaxErrorException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.SQLTimeoutException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.SQLTransactionRollbackException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.SQLTransientConnectionException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.SQLTransientException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.SQLType.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.SQLWarning.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.SQLXML.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.Savepoint.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.Statement.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.Struct.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.Time.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.Timestamp.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.Types.d.ts create mode 100644 packages/types/dist/typings/jdk/java.sql.Wrapper.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.Annotation.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.AttributedCharacterIterator.Attribute.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.AttributedCharacterIterator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.AttributedString.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.Bidi.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.BreakIterator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.CharacterIterator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.ChoiceFormat.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.CollationElementIterator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.CollationKey.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.Collator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.DateFormat.Field.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.DateFormat.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.DateFormatSymbols.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.DecimalFormat.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.DecimalFormatSymbols.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.FieldPosition.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.Format.Field.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.Format.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.MessageFormat.Field.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.MessageFormat.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.Normalizer.Form.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.Normalizer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.NumberFormat.Field.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.NumberFormat.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.ParseException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.ParsePosition.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.RuleBasedCollator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.SimpleDateFormat.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.StringCharacterIterator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.spi.BreakIteratorProvider.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.spi.CollatorProvider.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.spi.DateFormatProvider.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.spi.DateFormatSymbolsProvider.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.spi.DecimalFormatSymbolsProvider.d.ts create mode 100644 packages/types/dist/typings/jdk/java.text.spi.NumberFormatProvider.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.Clock.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.DateTimeException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.DayOfWeek.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.Duration.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.Instant.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.LocalDate.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.LocalDateTime.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.LocalTime.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.Month.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.MonthDay.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.OffsetDateTime.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.OffsetTime.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.Period.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.Year.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.YearMonth.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.ZoneId.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.ZoneOffset.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.ZonedDateTime.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.chrono.AbstractChronology.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.chrono.ChronoLocalDate.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.chrono.ChronoLocalDateTime.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.chrono.ChronoPeriod.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.chrono.ChronoZonedDateTime.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.chrono.Chronology.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.chrono.Era.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.chrono.HijrahChronology.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.chrono.HijrahDate.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.chrono.HijrahEra.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.chrono.IsoChronology.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.chrono.IsoEra.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.chrono.JapaneseChronology.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.chrono.JapaneseDate.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.chrono.JapaneseEra.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.chrono.MinguoChronology.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.chrono.MinguoDate.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.chrono.MinguoEra.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.chrono.ThaiBuddhistChronology.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.chrono.ThaiBuddhistDate.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.chrono.ThaiBuddhistEra.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.format.DateTimeFormatter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.format.DateTimeFormatterBuilder.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.format.DateTimeParseException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.format.DecimalStyle.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.format.FormatStyle.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.format.ResolverStyle.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.format.SignStyle.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.format.TextStyle.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.temporal.ChronoField.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.temporal.ChronoUnit.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.temporal.IsoFields.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.temporal.JulianFields.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.temporal.Temporal.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.temporal.TemporalAccessor.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.temporal.TemporalAdjuster.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.temporal.TemporalAdjusters.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.temporal.TemporalAmount.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.temporal.TemporalField.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.temporal.TemporalQueries.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.temporal.TemporalQuery.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.temporal.TemporalUnit.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.temporal.UnsupportedTemporalTypeException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.temporal.ValueRange.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.temporal.WeekFields.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.zone.ZoneOffsetTransition.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.zone.ZoneOffsetTransitionRule.TimeDefinition.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.zone.ZoneOffsetTransitionRule.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.zone.ZoneRules.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.zone.ZoneRulesException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.time.zone.ZoneRulesProvider.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.AbstractCollection.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.AbstractList.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.AbstractMap.SimpleEntry.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.AbstractMap.SimpleImmutableEntry.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.AbstractMap.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.AbstractQueue.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.AbstractSequentialList.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.AbstractSet.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.ArrayDeque.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.ArrayList.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Arrays.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Base64.Decoder.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Base64.Encoder.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Base64.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.BitSet.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Calendar.Builder.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Calendar.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Collection.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Collections.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Comparator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.ConcurrentModificationException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Currency.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Date.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Deque.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Dictionary.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.DoubleSummaryStatistics.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.DuplicateFormatFlagsException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.EmptyStackException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.EnumMap.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.EnumSet.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Enumeration.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.EventListener.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.EventListenerProxy.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.EventObject.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.FormatFlagsConversionMismatchException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Formattable.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.FormattableFlags.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Formatter.BigDecimalLayoutForm.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Formatter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.FormatterClosedException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.GregorianCalendar.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.HashMap.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.HashSet.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Hashtable.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.IdentityHashMap.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.IllegalFormatCodePointException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.IllegalFormatConversionException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.IllegalFormatException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.IllegalFormatFlagsException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.IllegalFormatPrecisionException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.IllegalFormatWidthException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.IllformedLocaleException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.InputMismatchException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.IntSummaryStatistics.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.InvalidPropertiesFormatException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Iterator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.LinkedHashMap.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.LinkedHashSet.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.LinkedList.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.List.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.ListIterator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.ListResourceBundle.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Locale.Builder.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Locale.Category.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Locale.FilteringMode.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Locale.LanguageRange.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Locale.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.LongSummaryStatistics.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Map.Entry.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Map.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.MissingFormatArgumentException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.MissingFormatWidthException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.MissingResourceException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.NavigableMap.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.NavigableSet.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.NoSuchElementException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Objects.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Observable.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Observer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Optional.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.OptionalDouble.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.OptionalInt.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.OptionalLong.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.PrimitiveIterator.OfDouble.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.PrimitiveIterator.OfInt.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.PrimitiveIterator.OfLong.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.PrimitiveIterator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.PriorityQueue.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Properties.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.PropertyPermission.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.PropertyResourceBundle.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Queue.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Random.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.RandomAccess.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.ResourceBundle.Control.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.ResourceBundle.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Scanner.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.ServiceConfigurationError.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.ServiceLoader.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Set.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.SimpleTimeZone.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.SortedMap.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.SortedSet.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Spliterator.OfDouble.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Spliterator.OfInt.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Spliterator.OfLong.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Spliterator.OfPrimitive.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Spliterator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Spliterators.AbstractDoubleSpliterator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Spliterators.AbstractIntSpliterator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Spliterators.AbstractLongSpliterator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Spliterators.AbstractSpliterator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Spliterators.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.SplittableRandom.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Stack.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.StringJoiner.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.StringTokenizer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.TimeZone.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Timer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.TimerTask.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.TooManyListenersException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.TreeMap.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.TreeSet.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.UUID.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.UnknownFormatConversionException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.UnknownFormatFlagsException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.Vector.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.WeakHashMap.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.AbstractExecutorService.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.ArrayBlockingQueue.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.BlockingDeque.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.BlockingQueue.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.BrokenBarrierException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.Callable.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.CancellationException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.CompletableFuture.AsynchronousCompletionTask.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.CompletableFuture.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.CompletionException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.CompletionService.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.CompletionStage.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.ConcurrentHashMap.KeySetView.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.ConcurrentHashMap.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.ConcurrentLinkedDeque.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.ConcurrentLinkedQueue.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.ConcurrentMap.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.ConcurrentNavigableMap.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.ConcurrentSkipListMap.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.ConcurrentSkipListSet.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.CopyOnWriteArrayList.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.CopyOnWriteArraySet.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.CountDownLatch.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.CountedCompleter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.CyclicBarrier.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.DelayQueue.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.Delayed.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.Exchanger.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.ExecutionException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.Executor.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.ExecutorCompletionService.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.ExecutorService.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.Executors.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.ForkJoinPool.ManagedBlocker.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.ForkJoinPool.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.ForkJoinTask.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.ForkJoinWorkerThread.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.Future.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.FutureTask.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.LinkedBlockingDeque.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.LinkedBlockingQueue.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.LinkedTransferQueue.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.Phaser.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.PriorityBlockingQueue.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.RecursiveAction.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.RecursiveTask.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.RejectedExecutionException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.RejectedExecutionHandler.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.RunnableFuture.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.RunnableScheduledFuture.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.ScheduledExecutorService.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.ScheduledFuture.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.ScheduledThreadPoolExecutor.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.Semaphore.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.SynchronousQueue.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.ThreadFactory.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.ThreadLocalRandom.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.ThreadPoolExecutor.AbortPolicy.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.ThreadPoolExecutor.DiscardPolicy.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.ThreadPoolExecutor.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.TimeUnit.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.TimeoutException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.TransferQueue.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicBoolean.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicInteger.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicIntegerArray.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicIntegerFieldUpdater.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicLong.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicLongArray.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicLongFieldUpdater.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicMarkableReference.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicReference.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicReferenceArray.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicReferenceFieldUpdater.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicStampedReference.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.atomic.DoubleAccumulator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.atomic.DoubleAdder.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.atomic.LongAccumulator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.atomic.LongAdder.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.locks.AbstractOwnableSynchronizer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.locks.AbstractQueuedLongSynchronizer.ConditionObject.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.locks.AbstractQueuedLongSynchronizer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.locks.AbstractQueuedSynchronizer.ConditionObject.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.locks.AbstractQueuedSynchronizer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.locks.Condition.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.locks.Lock.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.locks.LockSupport.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.locks.ReadWriteLock.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.locks.ReentrantLock.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.locks.ReentrantReadWriteLock.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.concurrent.locks.StampedLock.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.BiConsumer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.BiFunction.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.BiPredicate.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.BinaryOperator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.BooleanSupplier.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.Consumer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.DoubleBinaryOperator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.DoubleConsumer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.DoubleFunction.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.DoublePredicate.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.DoubleSupplier.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.DoubleToIntFunction.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.DoubleToLongFunction.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.DoubleUnaryOperator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.Function.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.IntBinaryOperator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.IntConsumer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.IntFunction.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.IntPredicate.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.IntSupplier.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.IntToDoubleFunction.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.IntToLongFunction.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.IntUnaryOperator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.LongBinaryOperator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.LongConsumer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.LongFunction.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.LongPredicate.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.LongSupplier.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.LongToDoubleFunction.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.LongToIntFunction.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.LongUnaryOperator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.ObjDoubleConsumer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.ObjIntConsumer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.ObjLongConsumer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.Predicate.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.Supplier.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.ToDoubleBiFunction.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.ToDoubleFunction.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.ToIntBiFunction.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.ToIntFunction.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.ToLongBiFunction.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.ToLongFunction.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.function.UnaryOperator.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.jar.Attributes.Name.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.jar.Attributes.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.jar.JarEntry.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.jar.JarException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.jar.JarFile.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.jar.JarInputStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.jar.JarOutputStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.jar.Manifest.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.jar.Pack200.Packer.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.jar.Pack200.Unpacker.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.jar.Pack200.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.logging.ConsoleHandler.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.logging.ErrorManager.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.logging.FileHandler.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.logging.Filter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.logging.Formatter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.logging.Handler.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.logging.Level.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.logging.LogManager.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.logging.LogRecord.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.logging.Logger.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.logging.LoggingMXBean.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.logging.LoggingPermission.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.logging.MemoryHandler.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.logging.SimpleFormatter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.logging.SocketHandler.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.logging.StreamHandler.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.logging.XMLFormatter.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.prefs.AbstractPreferences.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.prefs.BackingStoreException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.prefs.InvalidPreferencesFormatException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.prefs.NodeChangeEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.prefs.NodeChangeListener.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.prefs.PreferenceChangeEvent.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.prefs.PreferenceChangeListener.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.prefs.Preferences.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.prefs.PreferencesFactory.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.regex.MatchResult.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.regex.Matcher.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.regex.Pattern.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.regex.PatternSyntaxException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.spi.CalendarDataProvider.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.spi.CalendarNameProvider.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.spi.CurrencyNameProvider.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.spi.LocaleNameProvider.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.spi.LocaleServiceProvider.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.spi.ResourceBundleControlProvider.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.spi.TimeZoneNameProvider.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.stream.BaseStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.stream.Collector.Characteristics.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.stream.Collector.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.stream.Collectors.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.stream.DoubleStream.Builder.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.stream.DoubleStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.stream.IntStream.Builder.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.stream.IntStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.stream.LongStream.Builder.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.stream.LongStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.stream.Stream.Builder.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.stream.Stream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.stream.StreamSupport.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.zip.Adler32.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.zip.CRC32.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.zip.CheckedInputStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.zip.CheckedOutputStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.zip.Checksum.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.zip.DataFormatException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.zip.Deflater.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.zip.DeflaterInputStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.zip.DeflaterOutputStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.zip.GZIPInputStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.zip.GZIPOutputStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.zip.Inflater.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.zip.InflaterInputStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.zip.InflaterOutputStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.zip.ZipEntry.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.zip.ZipError.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.zip.ZipException.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.zip.ZipFile.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.zip.ZipInputStream.d.ts create mode 100644 packages/types/dist/typings/jdk/java.util.zip.ZipOutputStream.d.ts create mode 100644 packages/types/dist/typings/sponge/index.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.CatalogType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.CatalogTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.Game.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.GameDictionary.Entry.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.GameDictionary.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.GameRegistry.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.GameState.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.MinecraftVersion.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.Nameable.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.Platform.Component.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.Platform.Type.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.Platform.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.Server.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.Sponge.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.advancement.Advancement.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.advancement.Advancement.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.advancement.AdvancementProgress.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.advancement.AdvancementTree.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.advancement.AdvancementTree.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.advancement.AdvancementType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.advancement.AdvancementTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.advancement.DisplayInfo.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.advancement.DisplayInfo.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.advancement.Progressable.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.advancement.TreeLayout.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.advancement.TreeLayoutElement.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.AdvancementCriterion.BaseBuilder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.AdvancementCriterion.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.AdvancementCriterion.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.AndCriterion.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.CriterionProgress.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.OperatorCriterion.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.OrCriterion.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.ScoreAdvancementCriterion.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.ScoreAdvancementCriterion.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.ScoreCriterionProgress.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.trigger.FilteredTrigger.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.trigger.FilteredTrigger.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.trigger.FilteredTriggerConfiguration.Empty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.trigger.FilteredTriggerConfiguration.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.trigger.Trigger.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.trigger.Trigger.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.trigger.Triggers.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.asset.Asset.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.asset.AssetId.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.asset.AssetManager.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockSnapshot.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockSnapshot.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockSoundGroup.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockState.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockState.MatcherBuilder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockState.StateMatcher.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockState.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.ScheduledBlockUpdate.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Banner.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Bed.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.CommandBlock.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Comparator.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.DaylightDetector.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.EnchantmentTable.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.EndGateway.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.EndPortal.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.EnderChest.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.FlowerPot.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Jukebox.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.MobSpawner.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Note.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Piston.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Sign.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Skull.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Structure.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.TileEntity.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.TileEntityArchetype.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.TileEntityArchetype.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.TileEntityType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.TileEntityTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.Beacon.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.BrewingStand.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.Chest.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.Dispenser.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.Dropper.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.Furnace.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.Hopper.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.ShulkerBox.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.TileEntityCarrier.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.trait.BlockTrait.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.trait.BooleanTrait.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.trait.BooleanTraits.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.trait.EnumTrait.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.trait.EnumTraits.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.trait.IntegerTrait.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.block.trait.IntegerTraits.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.boss.BossBar.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.boss.BossBarColor.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.boss.BossBarColors.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.boss.BossBarOverlay.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.boss.BossBarOverlays.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.boss.ServerBossBar.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.boss.ServerBossBar.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandCallable.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandException.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandManager.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandMapping.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandMessageFormatting.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandNotFoundException.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandPermissionException.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandResult.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandResult.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandSource.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.ImmutableCommandMapping.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.InvocationCommandException.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.args.ArgumentParseException.WithUsage.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.args.ArgumentParseException.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.args.ChildCommandElementExecutor.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.args.CommandArgs.Snapshot.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.args.CommandArgs.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.args.CommandContext.Snapshot.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.args.CommandContext.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.args.CommandElement.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.args.CommandFlags.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.args.CommandFlags.UnknownFlagBehavior.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.args.CommandFlags.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.args.GenericArguments.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.args.PatternMatchingCommandElement.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.args.SelectorCommandElement.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.args.parsing.InputTokenizer.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.args.parsing.SingleArg.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.dispatcher.Disambiguator.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.dispatcher.Dispatcher.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.dispatcher.SimpleDispatcher.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.source.CommandBlockSource.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.source.ConsoleSource.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.source.ProxySource.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.source.RconSource.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.source.RemoteSource.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.source.SignSource.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.spec.CommandExecutor.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.spec.CommandSpec.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.command.spec.CommandSpec.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.config.ConfigDir.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.config.ConfigManager.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.config.ConfigRoot.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.config.DefaultConfig.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.Archetype.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.DataAlreadyRegisteredException.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.DataContainer.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.DataException.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.DataHolder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.DataManager.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.DataQuery.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.DataRegistration.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.DataRegistration.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.DataRegistrationNotFoundException.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.DataSerializable.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.DataTransactionResult.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.DataTransactionResult.Type.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.DataTransactionResult.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.DataView.SafetyMode.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.DataView.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.ImmutableDataBuilder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.ImmutableDataHolder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.LocatableSnapshot.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.MemoryDataContainer.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.MemoryDataView.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.Property.Operator.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.Property.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.Queries.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.Transaction.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.key.Key.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.key.Key.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.key.KeyFactory.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.key.Keys.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.DataManipulator.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.DataManipulatorBuilder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.ImmutableDataManipulator.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.ImmutableDataManipulatorBuilder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.catalog.CatalogBlockData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.catalog.CatalogEntityData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.catalog.CatalogItemData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.catalog.CatalogTileEntityData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableColoredData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableCommandData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableDisplayNameData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableDyeableData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableFireworkEffectData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableFireworkRocketData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableListData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableMappedData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableMobSpawnerData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutablePotionEffectData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutablePotionTypeData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableRepresentedItemData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableRepresentedPlayerData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableRotationalData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableSkullData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableTargetedLocationData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableWetData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableAttachedData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableAxisData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableBigMushroomData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableBrickData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableComparatorData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableConnectedDirectionData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableDecayableData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableDelayableData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableDirectionalData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableDirtData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableDisarmedData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableDisguisedBlockData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableDoublePlantData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableDropData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableExtendedData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableFilledData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableFluidLevelData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableGrowthData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableHingeData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableInWallData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableLayeredData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableLogAxisData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableMoistureData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableOccupiedData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableOpenData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutablePistonData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutablePlantData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutablePortionData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutablePoweredData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutablePrismarineData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableQuartzData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableRailDirectionData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableRedstonePoweredData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableSandData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableSandstoneData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableSeamlessData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableShrubData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableSlabData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableSnowedData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableStairShapeData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableStoneData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableTreeData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableWallData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableWireAttachmentData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableBooleanData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableBoundedComparableData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableListData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableMappedData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableSingleCatalogData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableSingleData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableSingleEnumData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAbsorptionData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAccelerationData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableActiveItemData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAffectsSpawningData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAgeableData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAgentData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAggressiveData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAngerableData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAreaEffectCloudData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableArmorStandData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableArtData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableBodyPartRotationalData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableBreathingData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableBreedableData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableCareerData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableChargedData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableCriticalHitData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableCustomNameVisibleData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDamageableData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDamagingData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDespawnDelayData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDisabledSlotsData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDominantHandData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableElytraFlyingData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableExpOrbData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableExperienceHolderData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableExpirableData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableExplosionRadiusData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFallDistanceData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFallingBlockData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFlammableData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFlyingAbilityData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFlyingData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFoodData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFuseData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableGameModeData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableGlowingData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableGravityData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableGriefingData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableHealthData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableHealthScalingData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableHorseData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableIgniteableData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableInvisibilityData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableInvulnerabilityData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableJohnnyData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableJoinData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableKnockbackData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableLeashData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableMinecartBlockData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableMovementSpeedData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableOcelotData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableParrotData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePassengerData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePersistingData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePickupDelayData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePickupRuleData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePigSaddleData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePlayerCreatedData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePlayingData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableRabbitData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableRespawnLocation.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableScreamingData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableShatteringData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableShearedData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSilentData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSittingData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSizeData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSkinData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSleepingData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSlimeData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSneakingData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSprintData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableStatisticData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableStuckArrowsData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableTameableData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableTargetedEntityData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableTradeOfferData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableVehicleData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableVelocityData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableAuthorData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableBlockItemData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableBreakableData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableCoalData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableCookedFishData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableDurabilityData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableEnchantmentData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableFishData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableGenerationData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableGoldenAppleData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableHideData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableInventoryItemData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableLoreData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableMapItemData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutablePagedData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutablePlaceableData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutablePlainPagedData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableSpawnableData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableStoredEnchantmentData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableBannerData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableBeaconData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableBedData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableBrewingStandData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableCooldownData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableEndGatewayData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableFurnaceData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableLockableData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableNoteData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableSignData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableStructureData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.ColoredData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.CommandData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.DisplayNameData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.DyeableData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.FireworkEffectData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.FireworkRocketData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.ListData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.MappedData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.MobSpawnerData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.PotionEffectData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.PotionTypeData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.RepresentedItemData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.RepresentedPlayerData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.RotationalData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.SkullData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.TargetedLocationData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.VariantData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.WetData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.AttachedData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.AxisData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.BigMushroomData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.BrickData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.ComparatorData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.ConnectedDirectionData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.DecayableData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.DelayableData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.DirectionalData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.DirtData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.DisarmedData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.DisguisedBlockData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.DoublePlantData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.DropData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.ExtendedData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.FilledData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.FluidLevelData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.GrowthData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.HingeData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.InWallData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.LayeredData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.LogAxisData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.MoistureData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.OccupiedData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.OpenData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.PistonData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.PlantData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.PortionData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.PoweredData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.PrismarineData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.QuartzData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.RailDirectionData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.RedstonePoweredData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.SandData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.SandstoneData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.SeamlessData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.ShrubData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.SlabData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.SnowedData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.StairShapeData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.StoneData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.TreeData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.WallData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.WireAttachmentData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractBooleanData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractBoundedComparableData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractIntData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractListData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractMappedData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractSingleCatalogData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractSingleData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractSingleEnumData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.AbsorptionData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.AccelerationData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ActiveItemData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.AffectsSpawningData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.AgeableData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.AgentData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.AggressiveData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.AngerableData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.AreaEffectCloudData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ArmorStandData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ArtData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.BodyPartRotationalData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.BreathingData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.BreedableData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.CareerData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ChargedData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.CriticalHitData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.CustomNameVisibleData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.DamageableData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.DamagingData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.DespawnDelayData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.DisabledSlotsData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.DominantHandData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ElytraFlyingData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ExpOrbData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ExperienceHolderData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ExpirableData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ExplosionRadiusData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.FallDistanceData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.FallingBlockData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.FlammableData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.FlyingAbilityData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.FlyingData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.FoodData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.FuseData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.GameModeData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.GlowingData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.GravityData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.GriefingData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.HealthData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.HealthScalingData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.HorseData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.IgniteableData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.InvisibilityData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.InvulnerabilityData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.JohnnyData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.JoinData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.KnockbackData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.LeashData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.MinecartBlockData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.MovementSpeedData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.OcelotData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ParrotData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.PassengerData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.PersistingData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.PickupDelayData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.PickupRuleData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.PigSaddleData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.PlayerCreatedData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.PlayingData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.RabbitData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.RespawnLocationData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ScreamingData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ShatteringData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ShearedData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.SilentData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.SittingData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.SizeData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.SkinData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.SleepingData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.SlimeData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.SneakingData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.SprintData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.StatisticData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.StuckArrowsData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.TameableData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.TargetedEntityData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.TradeOfferData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.VehicleData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.VelocityData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.AuthorData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.BlockItemData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.BreakableData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.CoalData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.CookedFishData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.DurabilityData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.EnchantmentData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.FishData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.GenerationData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.GoldenAppleData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.HideData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.InventoryItemData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.LoreData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.MapItemData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.PagedData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.PlaceableData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.PlainPagedData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.SpawnableData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.StoredEnchantmentData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.BannerData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.BeaconData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.BedData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.BrewingStandData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.CooldownData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.EndGatewayData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.FurnaceData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.LockableData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.NoteData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.SignData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.StructureData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.merge.MergeFunction.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.meta.PatternLayer.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.meta.PatternLayer.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.AbstractDataBuilder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.DataBuilder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.DataContentUpdater.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.DataFormat.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.DataFormats.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.DataTranslator.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.DataTranslators.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.InvalidDataException.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.InvalidDataFormatException.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.StringDataFormat.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.AbstractProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.BooleanProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.DirectionRelativePropertyHolder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.DisplacementProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.DoubleProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.IntProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.LocationBasePropertyHolder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.PropertyHolder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.PropertyRegistry.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.PropertyStore.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.BlastResistanceProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.CollectiveProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.FlammableProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.FullBlockSelectionBoxProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.GravityAffectedProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.GroundLuminanceProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.HardnessProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.HeldItemProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.IndirectlyPoweredProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.InstrumentProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.LightEmissionProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.MatterProperty.Matter.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.MatterProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.PassableProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.PoweredProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.ReplaceableProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.SkyLuminanceProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.SolidCubeProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.StatisticsTrackedProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.SurrogateBlockProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.TemperatureProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.UnbreakableProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.entity.DominantHandProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.entity.EyeHeightProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.entity.EyeLocationProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.ApplicableEffectProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.ArmorTypeProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.BurningFuelProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.DamageAbsorptionProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.EfficiencyProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.EquipmentProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.FoodRestorationProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.HarvestingProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.RecordProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.SaturationProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.SmeltableProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.ToolTypeProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.UseLimitProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ArmorType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ArmorTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Art.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Arts.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.BannerPatternShape.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.BannerPatternShapes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.BigMushroomType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.BigMushroomTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.BodyPart.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.BodyParts.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.BrickType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.BrickTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Career.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Careers.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.CoalType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.CoalTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ComparatorType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ComparatorTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.CookedFish.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.CookedFishes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.DirtType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.DirtTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.DisguisedBlockType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.DisguisedBlockTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.DoublePlantType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.DoublePlantTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.DyeColor.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.DyeColors.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Fish.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Fishes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.GoldenApple.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.GoldenApples.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.HandPreference.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.HandPreferences.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.HandType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.HandTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Hinge.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Hinges.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.HorseColor.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.HorseColors.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.HorseStyle.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.HorseStyles.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.InstrumentType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.InstrumentTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.LlamaVariant.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.LlamaVariants.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.LogAxes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.LogAxis.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.NotePitch.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.NotePitches.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.OcelotType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.OcelotTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ParrotVariant.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ParrotVariants.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PickupRule.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PickupRules.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PistonType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PistonTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PlantType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PlantTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PortionType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PortionTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PrismarineType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PrismarineTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Profession.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Professions.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.QuartzType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.QuartzTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.RabbitType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.RabbitTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.RailDirection.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.RailDirections.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SandType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SandTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SandstoneType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SandstoneTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ShrubType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ShrubTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SkinPart.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SkinParts.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SkullType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SkullTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SlabType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SlabTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.StairShape.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.StairShapes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.StoneType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.StoneTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.StructureMode.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.StructureModes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ToolType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ToolTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.TreeType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.TreeTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.WallType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.WallTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.WireAttachmentType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.type.WireAttachmentTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.value.BaseValue.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.value.BoundedValue.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.value.ValueContainer.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.value.ValueFactory.BoundedValueBuilder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.value.ValueFactory.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableBoundedValue.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableCollectionValue.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableListValue.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableMapValue.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableOptionalValue.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutablePatternListValue.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableSetValue.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableValue.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableValueStore.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableWeightedCollectionValue.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.CollectionValue.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.CompositeValueStore.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.ListValue.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.MapValue.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.MutableBoundedValue.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.OptionalValue.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.PatternListValue.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.SetValue.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.Value.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.WeightedCollectionValue.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.effect.Viewer.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.effect.particle.ParticleEffect.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.effect.particle.ParticleEffect.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.effect.particle.ParticleOption.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.effect.particle.ParticleOptions.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.effect.particle.ParticleType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.effect.particle.ParticleTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.effect.potion.PotionEffect.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.effect.potion.PotionEffect.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.effect.potion.PotionEffectType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.effect.potion.PotionEffectTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.effect.sound.PitchModulation.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.effect.sound.SoundCategories.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.effect.sound.SoundCategory.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.effect.sound.SoundType.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.effect.sound.SoundType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.effect.sound.SoundTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.effect.sound.record.RecordType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.effect.sound.record.RecordTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.AreaEffectCloud.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.ArmorEquipable.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.EnderCrystal.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.Entity.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.EntityArchetype.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.EntityArchetype.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.EntitySnapshot.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.EntitySnapshot.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.EntityType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.EntityTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.Equipable.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.ExperienceOrb.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.FallingBlock.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.Item.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.ShulkerBullet.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.Tamer.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.Transform.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.Goal.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.GoalType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.GoalTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.AITask.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.AITaskBuilder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.AITaskType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.AITaskTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.AbstractAITask.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.LookIdleAITask.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.LookIdleAITask.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.SwimmingAITask.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.SwimmingAITask.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.WatchClosestAITask.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.WatchClosestAITask.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.AttackLivingAITask.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.AttackLivingAITask.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.AvoidEntityAITask.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.AvoidEntityAITask.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.RangeAgentAITask.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.RangeAgentAITask.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.WanderAITask.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.WanderAITask.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.horse.RunAroundLikeCrazyAITask.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.horse.RunAroundLikeCrazyAITask.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.target.FindNearestAttackableTargetAITask.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.target.FindNearestAttackableTargetAITask.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.target.TargetAITask.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.target.TargetAITask.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.explosive.Explosive.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.explosive.FusedExplosive.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.explosive.PrimedTNT.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.hanging.Hanging.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.hanging.ItemFrame.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.hanging.LeashHitch.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.hanging.Painting.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Aerial.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Ageable.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Agent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Ambient.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Aquatic.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.ArmorStand.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Bat.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Creature.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Hostile.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Human.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Humanoid.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Living.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Ranger.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Squid.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Villager.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Animal.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Chicken.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Cow.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Donkey.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Horse.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Llama.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Mooshroom.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Mule.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Ocelot.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Parrot.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Pig.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.PolarBear.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Rabbit.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.RideableHorse.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Sheep.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.SkeletonHorse.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Wolf.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.ZombieHorse.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.complex.ComplexLiving.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.complex.ComplexLivingPart.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.complex.EnderDragon.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.complex.EnderDragonPart.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhase.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseManager.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.golem.Golem.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.golem.IronGolem.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.golem.Shulker.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.golem.SnowGolem.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Blaze.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Boss.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.CaveSpider.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Creeper.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Enderman.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Endermite.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Evoker.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Ghast.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Giant.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Guardian.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Husk.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Illusioner.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.MagmaCube.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Monster.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Silverfish.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Skeleton.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Slime.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Spider.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Stray.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Vex.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Vindicator.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.WhiteSkeleton.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Witch.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Wither.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.WitherSkeleton.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Zombie.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.ZombiePigman.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.ZombieVillager.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.player.CooldownTracker.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.player.Player.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.player.User.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.player.gamemode.GameMode.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.player.gamemode.GameModes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.player.tab.TabList.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.player.tab.TabListEntry.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.player.tab.TabListEntry.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.DamagingProjectile.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.Egg.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.EnderPearl.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.EntityTargetingProjectile.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.EyeOfEnder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.Firework.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.FishHook.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.LlamaSpit.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.Projectile.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.ProjectileLauncher.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.Snowball.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.ThrownExpBottle.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.ThrownPotion.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.arrow.Arrow.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.arrow.SpectralArrow.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.arrow.TippedArrow.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.explosive.DragonFireball.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.explosive.WitherSkull.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.explosive.fireball.Fireball.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.explosive.fireball.LargeFireball.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.explosive.fireball.SmallFireball.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.source.BlockProjectileSource.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.source.ProjectileSource.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.source.UnknownProjectileSource.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.Boat.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.ChestMinecart.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.CommandBlockMinecart.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.ContainerMinecart.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.FurnaceMinecart.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.HopperMinecart.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.Minecart.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.MobSpawnerMinecart.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.RideableMinecart.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.TNTMinecart.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.weather.Lightning.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.entity.weather.WeatherEffect.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.Cancellable.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.CauseStackManager.StackFrame.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.CauseStackManager.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.Event.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.EventListener.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.EventManager.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.GenericEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.Listener.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.Order.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.TristateResult.Result.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.TristateResult.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.action.CollideEvent.Impact.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.action.CollideEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.action.FishingEvent.HookEntity.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.action.FishingEvent.Start.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.action.FishingEvent.Stop.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.action.FishingEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.action.InteractEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.action.LightningEvent.Post.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.action.LightningEvent.Pre.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.action.LightningEvent.Strike.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.action.LightningEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.action.SleepingEvent.Finish.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.action.SleepingEvent.Post.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.action.SleepingEvent.Pre.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.action.SleepingEvent.Tick.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.action.SleepingEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.AdvancementEvent.Grant.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.AdvancementEvent.Revoke.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.AdvancementEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.AdvancementTreeEvent.GenerateLayout.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.AdvancementTreeEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.CriterionEvent.Grant.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.CriterionEvent.Revoke.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.CriterionEvent.Score.Change.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.CriterionEvent.Score.Grant.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.CriterionEvent.Score.Revoke.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.CriterionEvent.Score.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.CriterionEvent.Trigger.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.CriterionEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.ChangeBlockEvent.Break.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.ChangeBlockEvent.Decay.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.ChangeBlockEvent.Grow.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.ChangeBlockEvent.Modify.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.ChangeBlockEvent.Place.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.ChangeBlockEvent.Post.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.ChangeBlockEvent.Pre.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.ChangeBlockEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.CollideBlockEvent.Impact.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.CollideBlockEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.InteractBlockEvent.Primary.MainHand.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.InteractBlockEvent.Primary.OffHand.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.InteractBlockEvent.Primary.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.InteractBlockEvent.Secondary.MainHand.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.InteractBlockEvent.Secondary.OffHand.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.InteractBlockEvent.Secondary.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.InteractBlockEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.NotifyNeighborBlockEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.TargetBlockEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.TickBlockEvent.Random.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.TickBlockEvent.Scheduled.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.TickBlockEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.BrewingEvent.Finish.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.BrewingEvent.Interrupt.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.BrewingEvent.Start.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.BrewingEvent.Tick.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.BrewingEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.ChangeSignEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.SmeltEvent.ConsumeFuel.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.SmeltEvent.Finish.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.SmeltEvent.Interrupt.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.SmeltEvent.Start.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.SmeltEvent.Tick.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.SmeltEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.TargetTileEntityEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.Cause.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.Cause.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.EventContext.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.EventContext.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.EventContextKey.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.EventContextKey.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.EventContextKeys.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.ModifierFunction.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.DamageFunction.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.DamageModifier.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.DamageModifier.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.DamageModifierType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.DamageModifierTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.DamageType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.DamageTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.BlockDamageSource.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.BlockDamageSource.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.DamageSource.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.DamageSource.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.DamageSources.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.EntityDamageSourceBuilder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.FallingBlockDamageSource.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.FallingBlockDamageSource.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.AbstractBuilder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractDamageSource.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractDamageSourceBuilder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractEntityDamageSource.AbstractEntityDamageSourceBuilder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractEntityDamageSource.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractIndirectEntityDamageSource.AbstractIndirectEntityDamageSourceBuilder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractIndirectEntityDamageSource.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.dismount.DismountType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.dismount.DismountTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.HealingType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.HealingTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.HealthFunction.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.HealthModifier.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.HealthModifier.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.HealthModifierType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.HealthModifierTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.BlockHealingSource.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.BlockHealingSource.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.EntityHealingSourceBuilder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.HealingSource.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.HealingSource.HealingSourceBuilder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.HealingSource.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.HealingSources.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.IndirectEntityHealingSource.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.IndirectEntityHealingSource.IndirectEntityHealingSourceBuilder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.IndirectEntityHealingSource.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.common.AbstractEntityHealingSource.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.common.AbstractEntityHealingSourceBuilder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.common.AbstractHealingSource.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.common.AbstractHealingSourceBuilder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.common.AbstractIndirectEntityHealingSource.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.spawn.SpawnType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.spawn.SpawnTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.teleport.TeleportType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.teleport.TeleportTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.command.SendCommandEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.command.TabCompleteEvent.Chat.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.command.TabCompleteEvent.Command.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.command.TabCompleteEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.data.ChangeDataHolderEvent.ValueChange.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.data.ChangeDataHolderEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.economy.EconomyTransactionEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.AffectEntityEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.AttackEntityEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.BreedEntityEvent.Breed.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.BreedEntityEvent.FindMate.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.BreedEntityEvent.ReadyToMate.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.BreedEntityEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.Break.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.TargetHumanoid.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.TargetLiving.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.TargetPlayer.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityExperienceEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent.Expire.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent.Gain.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent.Remove.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.CollideEntityEvent.Impact.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.CollideEntityEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ConstructEntityEvent.Post.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ConstructEntityEvent.Pre.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ConstructEntityEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.DamageEntityEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.DestructEntityEvent.Death.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.DestructEntityEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ExpireEntityEvent.TargetItem.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ExpireEntityEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.HarvestEntityEvent.TargetHumanoid.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.HarvestEntityEvent.TargetLiving.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.HarvestEntityEvent.TargetPlayer.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.HarvestEntityEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.HealEntityEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.IgniteEntityEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.InteractEntityEvent.Primary.MainHand.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.InteractEntityEvent.Primary.OffHand.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.InteractEntityEvent.Primary.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.InteractEntityEvent.Secondary.MainHand.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.InteractEntityEvent.Secondary.OffHand.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.InteractEntityEvent.Secondary.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.InteractEntityEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.LeashEntityEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.MoveEntityEvent.Position.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.MoveEntityEvent.Teleport.Portal.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.MoveEntityEvent.Teleport.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.MoveEntityEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.RideEntityEvent.Dismount.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.RideEntityEvent.Mount.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.RideEntityEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.RotateEntityEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.SpawnEntityEvent.ChunkLoad.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.SpawnEntityEvent.Custom.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.SpawnEntityEvent.Spawner.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.SpawnEntityEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.TameEntityEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.TargetEntityEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.UnleashEntityEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ai.AITaskEvent.Add.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ai.AITaskEvent.Remove.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ai.AITaskEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ai.SetAITargetEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.DefuseExplosiveEvent.Post.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.DefuseExplosiveEvent.Pre.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.DefuseExplosiveEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.DetonateExplosiveEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.PrimeExplosiveEvent.Post.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.PrimeExplosiveEvent.Pre.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.PrimeExplosiveEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.TargetExplosiveEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.TargetFusedExplosiveEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.item.ItemMergeItemEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.item.TargetItemEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.TargetAgentEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.TargetLivingEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.AnimateHandEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.ChangeGameModeEvent.TargetPlayer.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.ChangeGameModeEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.ChangeLevelEvent.TargetPlayer.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.ChangeLevelEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.HandInteractEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.TargetHumanoidEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.CooldownEvent.End.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.CooldownEvent.Set.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.CooldownEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.KickPlayerEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.PlayerChangeClientSettingsEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.ResourcePackStatusEvent.ResourcePackStatus.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.ResourcePackStatusEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.RespawnPlayerEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.projectile.LaunchProjectileEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.projectile.TargetProjectileEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.Getter.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.IsCancelled.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.cause.After.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.cause.All.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.cause.Before.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.cause.ContextValue.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.cause.First.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.cause.Last.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.cause.Root.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.data.Has.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.data.Supports.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.type.Exclude.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.type.Include.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.game.GameRegistryEvent.Register.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.game.GameRegistryEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.game.GameReloadEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameAboutToStartServerEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameConstructionEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameInitializationEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameLoadCompleteEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GamePostInitializationEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GamePreInitializationEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameStartedServerEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameStartingServerEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameStateEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameStoppedEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameStoppedServerEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameStoppingEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameStoppingServerEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractAITaskEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractAffectEntityEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractAttackEntityEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractChangeEntityEquipmentEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractDamageEntityEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractGameRegistryRegisterEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractHealEntityEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractMessageEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractModifierEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractSpawnEntityEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractValueChangeEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.AffectItemStackEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.AffectSlotEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Equipment.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Held.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Pickup.Pre.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Pickup.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.SwapHand.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Transfer.Post.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Transfer.Pre.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Transfer.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Creative.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Double.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag.Middle.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag.Primary.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag.Secondary.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Full.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside.Creative.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside.Primary.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside.Secondary.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Single.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Middle.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.NumberPress.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Primary.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Recipe.All.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Recipe.Single.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Recipe.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Secondary.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Shift.Primary.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Shift.Secondary.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Shift.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.CraftItemEvent.Craft.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.CraftItemEvent.Preview.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.CraftItemEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.DropItemEvent.Close.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.DropItemEvent.Custom.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.DropItemEvent.Destruct.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.DropItemEvent.Dispense.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.DropItemEvent.Pre.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.DropItemEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.EnchantItemEvent.CalculateEnchantment.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.EnchantItemEvent.CalculateLevelRequirement.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.EnchantItemEvent.Post.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.EnchantItemEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractInventoryEvent.Close.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractInventoryEvent.Open.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractInventoryEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractItemEvent.Primary.MainHand.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractItemEvent.Primary.OffHand.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractItemEvent.Primary.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractItemEvent.Secondary.MainHand.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractItemEvent.Secondary.OffHand.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractItemEvent.Secondary.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractItemEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.TargetContainerEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.TargetInventoryEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.UpdateAnvilEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Finish.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Replace.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Reset.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Start.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Stop.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Tick.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.UseItemStackEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.message.MessageChannelEvent.Chat.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.message.MessageChannelEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.message.MessageEvent.DefaultBodyApplier.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.message.MessageEvent.DefaultHeaderApplier.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.message.MessageEvent.MessageFormatter.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.message.MessageEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.network.BanIpEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.network.ChannelRegistrationEvent.Register.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.network.ChannelRegistrationEvent.Unregister.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.network.ChannelRegistrationEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.network.ClientConnectionEvent.Auth.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.network.ClientConnectionEvent.Disconnect.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.network.ClientConnectionEvent.Join.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.network.ClientConnectionEvent.Login.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.network.ClientConnectionEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.network.PardonIpEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.network.rcon.RconConnectionEvent.Connect.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.network.rcon.RconConnectionEvent.Disconnect.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.network.rcon.RconConnectionEvent.Login.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.network.rcon.RconConnectionEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.server.ClientPingServerEvent.Response.Players.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.server.ClientPingServerEvent.Response.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.server.ClientPingServerEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.server.query.QueryServerEvent.Basic.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.server.query.QueryServerEvent.Full.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.server.query.QueryServerEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.service.ChangeServiceProviderEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.sound.PlaySoundEvent.AtEntity.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.sound.PlaySoundEvent.Broadcast.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.sound.PlaySoundEvent.Record.Start.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.sound.PlaySoundEvent.Record.Stop.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.sound.PlaySoundEvent.Record.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.sound.PlaySoundEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.statistic.ChangeStatisticEvent.TargetPlayer.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.statistic.ChangeStatisticEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.user.BanUserEvent.TargetPlayer.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.user.BanUserEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.user.PardonUserEvent.TargetPlayer.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.user.PardonUserEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.user.TargetUserEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChangeWorldBorderEvent.TargetPlayer.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChangeWorldBorderEvent.TargetWorld.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChangeWorldBorderEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChangeWorldGameRuleEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChangeWorldWeatherEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChunkPreGenerationEvent.Cancelled.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChunkPreGenerationEvent.Complete.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChunkPreGenerationEvent.Post.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChunkPreGenerationEvent.Pre.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChunkPreGenerationEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ConstructPortalEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ConstructWorldPropertiesEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ExplosionEvent.Detonate.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ExplosionEvent.Post.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ExplosionEvent.Pre.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ExplosionEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.GenerateChunkEvent.Post.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.GenerateChunkEvent.Pre.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.GenerateChunkEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.LoadWorldEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.SaveWorldEvent.Post.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.SaveWorldEvent.Pre.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.SaveWorldEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.TargetWorldEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.UnloadWorldEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.ForcedChunkEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.LoadChunkEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.PopulateChunkEvent.Populate.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.PopulateChunkEvent.Post.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.PopulateChunkEvent.Pre.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.PopulateChunkEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.TargetChunkEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.UnforcedChunkEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.UnloadChunkEvent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.FluidStack.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.FluidStack.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.FluidStackSnapshot.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.FluidStackSnapshot.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.FluidType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.FluidTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.data.manipulator.immutable.ImmutableFluidItemData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.data.manipulator.immutable.ImmutableFluidTankData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.data.manipulator.mutable.FluidItemData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.data.manipulator.mutable.FluidTankData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.data.property.FluidTemperatureProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.data.property.FluidViscosityProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.extra.modifier.empty.VoidWorldGeneratorModifier.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.extra.modifier.skylands.SkylandsBiomeGenerator.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.extra.modifier.skylands.SkylandsGrassPopulator.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.extra.modifier.skylands.SkylandsGroundCoverPopulator.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.extra.modifier.skylands.SkylandsTerrainGenerator.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.extra.modifier.skylands.SkylandsWorldGeneratorModifier.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.FireworkEffect.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.FireworkEffect.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.FireworkShape.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.FireworkShapes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.ItemType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.ItemTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.enchantment.Enchantment.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.enchantment.Enchantment.RandomListBuilder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.enchantment.Enchantment.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.enchantment.EnchantmentType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.enchantment.EnchantmentTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.AnvilCost.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.BlockCarrier.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.Carrier.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.Container.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.EmptyInventory.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.Inventory.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.Inventory.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.InventoryArchetype.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.InventoryArchetype.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.InventoryArchetypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.InventoryProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.InventoryTransformation.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.InventoryTransformation.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.InventoryTransformations.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.ItemStack.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.ItemStack.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.ItemStackBuilderPopulators.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.ItemStackComparators.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.ItemStackGenerator.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.ItemStackGenerator.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.ItemStackSnapshot.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.MultiBlockCarrier.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.SingleBlockCarrier.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.Slot.Type.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.Slot.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.crafting.CraftingGridInventory.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.crafting.CraftingInventory.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.crafting.CraftingOutput.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.entity.Hotbar.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.entity.MainPlayerInventory.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.entity.PlayerInventory.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.entity.UserInventory.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.equipment.EquipmentInventory.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.equipment.EquipmentType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.equipment.EquipmentTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.equipment.HeldEquipmentType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.equipment.WornEquipmentType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.AbstractInventoryProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.AcceptsItems.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.ArmorSlotType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.EquipmentSlotType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.GuiId.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.GuiIdProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.GuiIds.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.Identifiable.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.IntProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.InventoryCapacity.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.InventoryDimension.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.InventoryTitle.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.MappedIntProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.SlotIndex.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.SlotPos.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.SlotSide.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.StringProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.query.QueryOperation.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.query.QueryOperationType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.query.QueryOperationTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.slot.EquipmentSlot.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.slot.FilteringSlot.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.slot.FuelSlot.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.slot.InputSlot.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.slot.OutputSlot.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.slot.SidedSlot.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult.Type.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.transaction.SlotTransaction.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.CarriedInventory.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.GridInventory.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.Interactable.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.Inventory2D.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.InventoryColumn.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.InventoryRow.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.OrderedInventory.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.PersistentInventory.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.TileEntityInventory.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.merchant.Merchant.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.merchant.TradeOffer.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.merchant.TradeOffer.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.merchant.TradeOfferGenerator.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.merchant.TradeOfferGenerator.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.merchant.TradeOfferListMutator.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.merchant.VillagerRegistry.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.potion.PotionType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.potion.PotionTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.Recipe.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.RecipeRegistry.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.CraftingRecipe.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.CraftingRecipeRegistry.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.CraftingRecipes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.CraftingResult.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.Ingredient.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.Ingredient.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.AisleStep.ResultStep.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.AisleStep.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.EndStep.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.ResultStep.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.RowsStep.ResultStep.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.RowsStep.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.EndStep.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.ResultStep.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.EndStep.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.ResultStep.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.smelting.SmeltingRecipeRegistry.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.smelting.SmeltingResult.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.network.ChannelBinding.IndexedMessageChannel.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.network.ChannelBinding.RawDataChannel.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.network.ChannelBinding.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.network.ChannelBuf.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.network.ChannelId.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.network.ChannelRegistrar.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.network.ChannelRegistrationException.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.network.Message.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.network.MessageHandler.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.network.PlayerConnection.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.network.RawDataListener.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.network.RemoteConnection.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.network.status.Favicon.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.network.status.StatusClient.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.network.status.StatusResponse.Players.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.network.status.StatusResponse.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.plugin.Dependency.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.plugin.Plugin.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.plugin.PluginContainer.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.plugin.PluginManager.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.profile.GameProfile.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.profile.GameProfileCache.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.profile.GameProfileManager.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.profile.ProfileNotFoundException.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.profile.property.ProfileProperty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.registry.AdditionalCatalogRegistryModule.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.registry.AlternateCatalogRegistryModule.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.registry.CatalogRegistryModule.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.registry.CatalogTypeAlreadyRegisteredException.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.registry.ExtraClassCatalogRegistryModule.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.registry.FactoryRegistry.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.registry.RegistrationPhase.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.registry.RegistryException.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.registry.RegistryModule.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.registry.RegistryModuleAlreadyRegisteredException.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.registry.util.AdditionalRegistration.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.registry.util.CustomCatalogRegistration.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.registry.util.DelayedRegistration.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.registry.util.OverrideRegistration.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.registry.util.PluginProvidedRegistryModule.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.registry.util.RegisterCatalog.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.registry.util.RegistrationDependency.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.resourcepack.ResourcePack.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.resourcepack.ResourcePackFactory.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.resourcepack.ResourcePacks.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.scheduler.AsynchronousExecutor.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.scheduler.Scheduler.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.scheduler.SpongeExecutorService.SpongeFuture.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.scheduler.SpongeExecutorService.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.scheduler.SynchronousExecutor.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.scheduler.Task.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.scheduler.Task.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.CollisionRule.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.CollisionRules.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.Score.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.Scoreboard.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.Scoreboard.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.Team.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.Team.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.TeamMember.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.Visibilities.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.Visibility.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.critieria.Criteria.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.critieria.Criterion.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.displayslot.DisplaySlot.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.displayslot.DisplaySlot.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.displayslot.DisplaySlots.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.objective.Objective.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.objective.Objective.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.objective.displaymode.ObjectiveDisplayMode.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.objective.displaymode.ObjectiveDisplayModes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.ProviderRegistration.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.ProvisioningException.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.ServiceManager.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.SimpleServiceManager.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.ban.BanService.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.context.Context.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.context.ContextCalculator.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.context.ContextSource.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.context.Contextual.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.context.ContextualService.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.Currency.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.EconomyService.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.account.Account.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.account.UniqueAccount.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.account.VirtualAccount.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.transaction.ResultType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.transaction.TransactionResult.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.transaction.TransactionType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.transaction.TransactionTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.transaction.TransferResult.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.pagination.PaginationList.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.pagination.PaginationList.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.pagination.PaginationService.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.MemorySubjectData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.NodeTree.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.PermissionDescription.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.PermissionDescription.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.PermissionService.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.Subject.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.SubjectCollection.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.SubjectData.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.SubjectReference.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.rcon.RconService.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.sql.SqlService.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.user.UserStorageService.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.service.whitelist.WhitelistService.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.statistic.BlockStatistic.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.statistic.EntityStatistic.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.statistic.ItemStatistic.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.statistic.Statistic.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.statistic.StatisticType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.statistic.StatisticTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.statistic.Statistics.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.BookView.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.BookView.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.LiteralText.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.LiteralText.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.ScoreText.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.ScoreText.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.SelectorText.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.SelectorText.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.Text.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.Text.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.TextElement.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.TextRepresentable.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.TextTemplate.Arg.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.TextTemplate.Arg.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.TextTemplate.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.TextTemplateArgumentException.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.TranslatableText.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.TranslatableText.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.action.ClickAction.ChangePage.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.action.ClickAction.ExecuteCallback.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.action.ClickAction.OpenUrl.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.action.ClickAction.RunCommand.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.action.ClickAction.SuggestCommand.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.action.ClickAction.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.action.HoverAction.ShowEntity.Ref.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.action.HoverAction.ShowEntity.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.action.HoverAction.ShowItem.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.action.HoverAction.ShowText.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.action.HoverAction.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.action.ShiftClickAction.InsertText.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.action.ShiftClickAction.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.action.TextAction.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.action.TextActions.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.AbstractMutableMessageChannel.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.ChatTypeMessageReceiver.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.MessageChannel.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.MessageReceiver.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.MutableMessageChannel.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.impl.DelegateMessageChannel.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.impl.DelegateMutableMessageChannel.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.impl.SimpleMutableMessageChannel.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.type.CombinedMessageChannel.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.type.FixedMessageChannel.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.type.PermissionMessageChannel.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.type.WorldMessageChannel.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.chat.ChatType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.chat.ChatTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.chat.ChatVisibilities.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.chat.ChatVisibility.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.format.TextColor.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.format.TextColors.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.format.TextFormat.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.format.TextStyle.Base.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.format.TextStyle.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.format.TextStyles.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.Argument.Invertible.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.Argument.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.ArgumentHolder.Limit.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.ArgumentHolder.Vector3.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.ArgumentHolder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.ArgumentType.Invertible.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.ArgumentType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.ArgumentTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.Selector.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.Selector.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.SelectorFactory.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.SelectorType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.SelectorTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.BookViewDataBuilder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.FormattingCodeTextSerializer.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.SafeTextSerializer.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.TextConfigSerializer.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.TextFormatConfigSerializer.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.TextParseException.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.TextSerializer.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.TextSerializerFactory.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.TextSerializers.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.TextTemplateConfigSerializer.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.title.Title.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.title.Title.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.transform.DynamicPartitionedTextFormatter.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.transform.FixedPartitionedTextFormatter.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.transform.PartitionedTextFormatter.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.transform.SimpleTextFormatter.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.transform.SimpleTextTemplateApplier.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.transform.TextFormatter.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.transform.TextTemplateApplier.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.translation.FixedTranslation.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.translation.ResourceBundleTranslation.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.translation.Translatable.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.translation.Translation.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.translation.locale.Locales.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.text.translation.locale.NamedLocales.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.AABB.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.Axis.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.AxisDirection.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.CatalogBuilder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.Coerce.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.CollectionUtils.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.Color.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.Color.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.Cycleable.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.Direction.Division.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.Direction.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.DiscreteTransform2.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.DiscreteTransform3.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.Functional.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.GuavaCollectors.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.Identifiable.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.InformativeMain.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.OptBool.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.PEBKACException.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.PositionOutOfBoundsException.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.RelativePositions.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.ResettableBuilder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.RespawnLocation.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.RespawnLocation.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.SpongeApiTranslationHelper.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.StartsWithPredicate.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.TextMessageException.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.Tristate.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.Tuple.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.TypeTokens.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.Updater.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.CatalogedBy.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.NonnullByDefault.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.eventgen.AbsoluteSortPosition.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.eventgen.FactoryMethod.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.eventgen.GenerateFactoryMethod.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.eventgen.ImplementedBy.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.eventgen.PropertySettings.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.eventgen.TransformResult.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.eventgen.TransformWith.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.eventgen.UseField.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.ban.Ban.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.ban.Ban.Ip.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.ban.Ban.Profile.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.ban.Ban.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.ban.BanType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.ban.BanTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.blockray.BlockRay.BlockRayBuilder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.blockray.BlockRay.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.blockray.BlockRayHit.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.file.CopyFileVisitor.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.file.DeleteFileVisitor.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.file.ForwardingFileVisitor.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.generator.GeneratorUtils.LocalClassLoader.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.generator.GeneratorUtils.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.generator.dummy.DummyClassGenerator.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.generator.dummy.DummyClassGeneratorProvider.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.generator.dummy.DummyObjectProvider.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.metric.MetricsConfigManager.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.rotation.Rotation.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.rotation.Rotations.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.ChanceTable.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.EmptyObject.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.LootTable.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.NestedTableEntry.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.RandomObjectTable.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.SeededVariableAmount.WrappedVariableAmount.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.SeededVariableAmount.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.TableEntry.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.UnmodifiableWeightedTable.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.VariableAmount.BaseAndAddition.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.VariableAmount.BaseAndVariance.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.VariableAmount.Fixed.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.VariableAmount.OptionalAmount.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.VariableAmount.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.WeightedObject.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.WeightedSerializableObject.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.WeightedTable.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.BlockChangeFlag.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.BlockChangeFlags.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.Chunk.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkPreGenerate.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkPreGenerate.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkRegenerateFlag.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkRegenerateFlags.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkState.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkTicketManager.Callback.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkTicketManager.EntityLoadingTicket.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkTicketManager.LoadingTicket.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkTicketManager.OrderedCallback.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkTicketManager.PlayerEntityLoadingTicket.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkTicketManager.PlayerLoadingTicket.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkTicketManager.PlayerOrderedCallback.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkTicketManager.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.Dimension.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.DimensionType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.DimensionTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.GeneratorType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.GeneratorTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.Locatable.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.LocatableBlock.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.LocatableBlock.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.Location.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.PortalAgent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.PortalAgentType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.PortalAgentTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.SerializationBehavior.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.SerializationBehaviors.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.TeleportHelper.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.World.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.WorldArchetype.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.WorldArchetype.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.WorldArchetypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.WorldBorder.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.WorldBorder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.biome.BiomeGenerationSettings.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.biome.BiomeGenerationSettings.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.biome.BiomeType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.biome.BiomeTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.biome.GroundCoverLayer.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.biome.VirtualBiomeType.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.biome.VirtualBiomeType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.difficulty.Difficulties.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.difficulty.Difficulty.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.explosion.Explosion.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.explosion.Explosion.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.ArchetypeVolume.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.BiomeVolume.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.BlockVolume.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.EntityUniverse.EntityHit.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.EntityUniverse.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.Extent.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.ExtentBufferFactory.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.ImmutableBiomeVolume.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.ImmutableBlockVolume.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.InteractableVolume.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.LocationCompositeValueStore.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.MutableBiomeVolume.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.MutableBlockVolume.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.StorageType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.TileEntityVolume.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.UnmodifiableBiomeVolume.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.UnmodifiableBlockVolume.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.BiomeVolumeWorker.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.BlockVolumeWorker.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.MutableBiomeVolumeWorker.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.MutableBlockVolumeWorker.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeFiller.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeMapper.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeMerger.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeReducer.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeVisitor.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeFiller.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeMapper.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeMerger.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeReducer.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeVisitor.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gamerule.DefaultGameRules.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.BiomeGenerator.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.GenerationPopulator.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.Populator.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.PopulatorObject.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.PopulatorObjects.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.PopulatorType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.PopulatorTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.WorldGenerator.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.WorldGeneratorModifier.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.WorldGeneratorModifiers.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.BigMushroom.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.BigMushroom.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.BlockBlob.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.BlockBlob.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Cactus.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Cactus.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.ChorusFlower.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.ChorusFlower.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.DeadBush.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.DeadBush.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.DesertWell.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.DesertWell.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.DoublePlant.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.DoublePlant.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Dungeon.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Dungeon.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.EndIsland.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.EndIsland.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Flower.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Flower.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Forest.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Forest.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Fossil.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Fossil.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Glowstone.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Glowstone.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.IcePath.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.IcePath.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.IceSpike.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.IceSpike.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Lake.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Lake.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Melon.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Melon.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Mushroom.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Mushroom.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.NetherFire.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.NetherFire.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Ore.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Ore.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Pumpkin.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Pumpkin.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.RandomBlock.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.RandomBlock.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.RandomObject.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.RandomObject.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Reed.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Reed.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.SeaFloor.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.SeaFloor.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Shrub.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Shrub.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Vine.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Vine.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.WaterLily.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.WaterLily.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.type.BiomeTreeType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.type.BiomeTreeTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.type.MushroomType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.type.MushroomTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.schematic.BlockPalette.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.schematic.BlockPaletteType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.schematic.BlockPaletteTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.schematic.Palette.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.schematic.PaletteType.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.schematic.PaletteTypes.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.schematic.Schematic.Builder.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.schematic.Schematic.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.storage.ChunkDataStream.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.storage.ChunkLayout.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.storage.WorldProperties.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.storage.WorldStorage.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.teleport.TeleportHelperFilter.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.teleport.TeleportHelperFilters.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.weather.Weather.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.weather.WeatherUniverse.d.ts create mode 100644 packages/types/dist/typings/sponge/org.spongepowered.api.world.weather.Weathers.d.ts create mode 100644 packages/types/package.json diff --git a/packages/types/dist/typings/bukkit/index.d.ts b/packages/types/dist/typings/bukkit/index.d.ts new file mode 100644 index 00000000..736785e8 --- /dev/null +++ b/packages/types/dist/typings/bukkit/index.d.ts @@ -0,0 +1,958 @@ +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// diff --git a/packages/types/dist/typings/bukkit/org.bukkit.Achievement.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.Achievement.d.ts new file mode 100644 index 00000000..fac37089 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.Achievement.d.ts @@ -0,0 +1,90 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class Achievement extends java.lang.Enum { + // @ts-ignore + public static OPEN_INVENTORY: org.bukkit.Achievement; + // @ts-ignore + public static MINE_WOOD: org.bukkit.Achievement; + // @ts-ignore + public static BUILD_WORKBENCH: org.bukkit.Achievement; + // @ts-ignore + public static BUILD_PICKAXE: org.bukkit.Achievement; + // @ts-ignore + public static BUILD_FURNACE: org.bukkit.Achievement; + // @ts-ignore + public static ACQUIRE_IRON: org.bukkit.Achievement; + // @ts-ignore + public static BUILD_HOE: org.bukkit.Achievement; + // @ts-ignore + public static MAKE_BREAD: org.bukkit.Achievement; + // @ts-ignore + public static BAKE_CAKE: org.bukkit.Achievement; + // @ts-ignore + public static BUILD_BETTER_PICKAXE: org.bukkit.Achievement; + // @ts-ignore + public static COOK_FISH: org.bukkit.Achievement; + // @ts-ignore + public static ON_A_RAIL: org.bukkit.Achievement; + // @ts-ignore + public static BUILD_SWORD: org.bukkit.Achievement; + // @ts-ignore + public static KILL_ENEMY: org.bukkit.Achievement; + // @ts-ignore + public static KILL_COW: org.bukkit.Achievement; + // @ts-ignore + public static FLY_PIG: org.bukkit.Achievement; + // @ts-ignore + public static SNIPE_SKELETON: org.bukkit.Achievement; + // @ts-ignore + public static GET_DIAMONDS: org.bukkit.Achievement; + // @ts-ignore + public static NETHER_PORTAL: org.bukkit.Achievement; + // @ts-ignore + public static GHAST_RETURN: org.bukkit.Achievement; + // @ts-ignore + public static GET_BLAZE_ROD: org.bukkit.Achievement; + // @ts-ignore + public static BREW_POTION: org.bukkit.Achievement; + // @ts-ignore + public static END_PORTAL: org.bukkit.Achievement; + // @ts-ignore + public static THE_END: org.bukkit.Achievement; + // @ts-ignore + public static ENCHANTMENTS: org.bukkit.Achievement; + // @ts-ignore + public static OVERKILL: org.bukkit.Achievement; + // @ts-ignore + public static BOOKCASE: org.bukkit.Achievement; + // @ts-ignore + public static EXPLORE_ALL_BIOMES: org.bukkit.Achievement; + // @ts-ignore + public static SPAWN_WITHER: org.bukkit.Achievement; + // @ts-ignore + public static KILL_WITHER: org.bukkit.Achievement; + // @ts-ignore + public static FULL_BEACON: org.bukkit.Achievement; + // @ts-ignore + public static BREED_COW: org.bukkit.Achievement; + // @ts-ignore + public static DIAMONDS_TO_YOU: org.bukkit.Achievement; + // @ts-ignore + public static OVERPOWERED: org.bukkit.Achievement; + // @ts-ignore + public static values(): org.bukkit.Achievement[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.Achievement; + /** + * Returns whether or not this achievement has a parent achievement. + */ + // @ts-ignore + public hasParent(): boolean; + /** + * Returns the parent achievement of this achievement, or null if none. + */ + // @ts-ignore + public getParent(): org.bukkit.Achievement; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.Art.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.Art.d.ts new file mode 100644 index 00000000..efb2451d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.Art.d.ts @@ -0,0 +1,93 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class Art extends java.lang.Enum implements org.bukkit.Keyed { + // @ts-ignore + public static KEBAB: org.bukkit.Art; + // @ts-ignore + public static AZTEC: org.bukkit.Art; + // @ts-ignore + public static ALBAN: org.bukkit.Art; + // @ts-ignore + public static AZTEC2: org.bukkit.Art; + // @ts-ignore + public static BOMB: org.bukkit.Art; + // @ts-ignore + public static PLANT: org.bukkit.Art; + // @ts-ignore + public static WASTELAND: org.bukkit.Art; + // @ts-ignore + public static POOL: org.bukkit.Art; + // @ts-ignore + public static COURBET: org.bukkit.Art; + // @ts-ignore + public static SEA: org.bukkit.Art; + // @ts-ignore + public static SUNSET: org.bukkit.Art; + // @ts-ignore + public static CREEBET: org.bukkit.Art; + // @ts-ignore + public static WANDERER: org.bukkit.Art; + // @ts-ignore + public static GRAHAM: org.bukkit.Art; + // @ts-ignore + public static MATCH: org.bukkit.Art; + // @ts-ignore + public static BUST: org.bukkit.Art; + // @ts-ignore + public static STAGE: org.bukkit.Art; + // @ts-ignore + public static VOID: org.bukkit.Art; + // @ts-ignore + public static SKULL_AND_ROSES: org.bukkit.Art; + // @ts-ignore + public static WITHER: org.bukkit.Art; + // @ts-ignore + public static FIGHTERS: org.bukkit.Art; + // @ts-ignore + public static POINTER: org.bukkit.Art; + // @ts-ignore + public static PIGSCENE: org.bukkit.Art; + // @ts-ignore + public static BURNING_SKULL: org.bukkit.Art; + // @ts-ignore + public static SKELETON: org.bukkit.Art; + // @ts-ignore + public static DONKEY_KONG: org.bukkit.Art; + // @ts-ignore + public static values(): org.bukkit.Art[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.Art; + /** + * Gets the width of the painting, in blocks + */ + // @ts-ignore + public getBlockWidth(): number; + /** + * Gets the height of the painting, in blocks + */ + // @ts-ignore + public getBlockHeight(): number; + /** + * Get the ID of this painting. + */ + // @ts-ignore + public getId(): number; + // @ts-ignore + public getKey(): org.bukkit.NamespacedKey; + /** + * Get a painting by its numeric ID + */ + // @ts-ignore + public static getById(id: number): org.bukkit.Art; + /** + * Get a painting by its unique name + *

+ * This ignores underscores and capitalization + */ + // @ts-ignore + public static getByName(name: string): org.bukkit.Art; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.Axis.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.Axis.d.ts new file mode 100644 index 00000000..5000fe89 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.Axis.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class Axis extends java.lang.Enum { + // @ts-ignore + public static X: org.bukkit.Axis; + // @ts-ignore + public static Y: org.bukkit.Axis; + // @ts-ignore + public static Z: org.bukkit.Axis; + // @ts-ignore + public static values(): org.bukkit.Axis[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.Axis; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.BanEntry.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.BanEntry.d.ts new file mode 100644 index 00000000..c823b6f1 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.BanEntry.d.ts @@ -0,0 +1,69 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + interface BanEntry { + /** + * Gets the target involved. This may be in the form of an IP or a player + * name. + */ + // @ts-ignore + getTarget(): string; + /** + * Gets the date this ban entry was created. + */ + // @ts-ignore + getCreated(): java.util.Date; + /** + * Sets the date this ban entry was created. + */ + // @ts-ignore + setCreated(created: java.util.Date): void; + /** + * Gets the source of this ban. + *

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

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

+ * Saving the ban entry of an unbanned player will cause the player to be + * banned once again. + */ + // @ts-ignore + save(): void; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.BanList.Type.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.BanList.Type.d.ts new file mode 100644 index 00000000..98fd39f0 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.BanList.Type.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace BanList { + // @ts-ignore + class Type extends java.lang.Enum { + // @ts-ignore + public static NAME: org.bukkit.BanList.Type; + // @ts-ignore + public static IP: org.bukkit.BanList.Type; + // @ts-ignore + public static values(): org.bukkit.BanList.Type[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.BanList.Type; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.BanList.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.BanList.d.ts new file mode 100644 index 00000000..84559d4a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.BanList.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + interface BanList { + /** + * Gets a {@link BanEntry} by target. + */ + // @ts-ignore + getBanEntry(target: string): org.bukkit.BanEntry; + /** + * Adds a ban to the this list. If a previous ban exists, this will + * update the previous entry. + */ + // @ts-ignore + addBan(target: string, reason: string, expires: java.util.Date, source: string): org.bukkit.BanEntry; + /** + * Gets a set containing every {@link BanEntry} in this list. + */ + // @ts-ignore + getBanEntries(): java.util.Set; + /** + * Gets if a {@link BanEntry} exists for the target, indicating an active + * ban status. + */ + // @ts-ignore + isBanned(target: string): boolean; + /** + * Removes the specified target from this list, therefore indicating a + * "not banned" status. + */ + // @ts-ignore + pardon(target: string): void; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.BlockChangeDelegate.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.BlockChangeDelegate.d.ts new file mode 100644 index 00000000..5c221636 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.BlockChangeDelegate.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + interface BlockChangeDelegate { + /** + * Set a block data at the specified coordinates. + */ + // @ts-ignore + setBlockData(x: number, y: number, z: number, blockData: org.bukkit.block.data.BlockData): boolean; + /** + * Get the block data at the location. + */ + // @ts-ignore + getBlockData(x: number, y: number, z: number): org.bukkit.block.data.BlockData; + /** + * Gets the height of the world. + */ + // @ts-ignore + getHeight(): number; + /** + * Checks if the specified block is empty (air) or not. + */ + // @ts-ignore + isEmpty(x: number, y: number, z: number): boolean; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.Bukkit.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.Bukkit.d.ts new file mode 100644 index 00000000..42f5e432 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.Bukkit.d.ts @@ -0,0 +1,772 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class Bukkit extends java.lang.Object { + /** + * Gets the current {@link Server} singleton + */ + // @ts-ignore + public static getServer(): org.bukkit.Server; + /** + * Attempts to set the {@link Server} singleton. + *

+ * This cannot be done if the Server is already set. + */ + // @ts-ignore + public static setServer(server: org.bukkit.Server): void; + /** + * Gets the name of this server implementation. + */ + // @ts-ignore + public static getName(): string; + /** + * Gets the version string of this server implementation. + */ + // @ts-ignore + public static getVersion(): string; + /** + * Gets the Bukkit version that this server is running. + */ + // @ts-ignore + public static getBukkitVersion(): string; + /** + * Gets a view of all currently logged in players. This {@linkplain + * Collections#unmodifiableCollection(Collection) view} is a reused + * object, making some operations like {@link Collection#size()} + * zero-allocation. + *

+ * The collection is a view backed by the internal representation, such + * that, changes to the internal state of the server will be reflected + * immediately. However, the reuse of the returned collection (identity) + * is not strictly guaranteed for future or all implementations. Casting + * the collection, or relying on interface implementations (like {@link + * Serializable} or {@link List}), is deprecated. + *

+ * Iteration behavior is undefined outside of self-contained main-thread + * uses. Normal and immediate iterator use without consequences that + * affect the collection are fully supported. The effects following + * (non-exhaustive) {@link Entity#teleport(Location) teleportation}, + * {@link Player#setHealth(double) death}, and {@link Player#kickPlayer( + * String) kicking} are undefined. Any use of this collection from + * asynchronous threads is unsafe. + *

+ * For safe consequential iteration or mimicking the old array behavior, + * using {@link Collection#toArray(Object[])} is recommended. For making + * snapshots, {@link ImmutableList#copyOf(Collection)} is recommended. + */ + // @ts-ignore + public static getOnlinePlayers(): java.util.Collection; + /** + * Get the maximum amount of players which can login to this server. + */ + // @ts-ignore + public static getMaxPlayers(): number; + /** + * Get the game port that the server runs on. + */ + // @ts-ignore + public static getPort(): number; + /** + * Get the view distance from this server. + */ + // @ts-ignore + public static getViewDistance(): number; + /** + * Get the IP that this server is bound to, or empty string if not + * specified. + */ + // @ts-ignore + public static getIp(): string; + /** + * Get world type (level-type setting) for default world. + */ + // @ts-ignore + public static getWorldType(): string; + /** + * Get generate-structures setting. + */ + // @ts-ignore + public static getGenerateStructures(): boolean; + /** + * Gets whether this server allows the End or not. + */ + // @ts-ignore + public static getAllowEnd(): boolean; + /** + * Gets whether this server allows the Nether or not. + */ + // @ts-ignore + public static getAllowNether(): boolean; + /** + * Gets whether this server has a whitelist or not. + */ + // @ts-ignore + public static hasWhitelist(): boolean; + /** + * Sets if the server is whitelisted. + */ + // @ts-ignore + public static setWhitelist(value: boolean): void; + /** + * Gets a list of whitelisted players. + */ + // @ts-ignore + public static getWhitelistedPlayers(): java.util.Set; + /** + * Reloads the whitelist from disk. + */ + // @ts-ignore + public static reloadWhitelist(): void; + /** + * Broadcast a message to all players. + *

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

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

+ * Example Usage: + *

    + *
  • A value of 1 will mean the server will attempt to spawn monsters + * every tick. + *
  • A value of 400 will mean the server will attempt to spawn monsters + * every 400th tick. + *
  • A value below 0 will be reset back to Minecraft's default. + *
+ *

+ * Note: If set to 0, animal spawning will be disabled. We + * recommend using spawn-animals to control this instead. + *

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

+ * Example Usage: + *

    + *
  • A value of 1 will mean the server will attempt to spawn monsters + * every tick. + *
  • A value of 400 will mean the server will attempt to spawn monsters + * every 400th tick. + *
  • A value below 0 will be reset back to Minecraft's default. + *
+ *

+ * Note: If set to 0, monsters spawning will be disabled. We + * recommend using spawn-monsters to control this instead. + *

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

+ * This method may not return objects for offline players. + */ + // @ts-ignore + public static getPlayer(name: string): org.bukkit.entity.Player; + /** + * Gets the player with the exact given name, case insensitive. + */ + // @ts-ignore + public static getPlayerExact(name: string): org.bukkit.entity.Player; + /** + * Attempts to match any players with the given name, and returns a list + * of all possibly matches. + *

+ * This list is not sorted in any particular order. If an exact match is + * found, the returned list will only contain a single result. + */ + // @ts-ignore + public static matchPlayer(name: string): java.util.List; + /** + * Gets the player with the given UUID. + */ + // @ts-ignore + public static getPlayer(id: java.util.UUID): org.bukkit.entity.Player; + /** + * Gets the plugin manager for interfacing with plugins. + */ + // @ts-ignore + public static getPluginManager(): org.bukkit.plugin.PluginManager; + /** + * Gets the scheduler for managing scheduled events. + */ + // @ts-ignore + public static getScheduler(): org.bukkit.scheduler.BukkitScheduler; + /** + * Gets a services manager. + */ + // @ts-ignore + public static getServicesManager(): org.bukkit.plugin.ServicesManager; + /** + * Gets a list of all worlds on this server. + */ + // @ts-ignore + public static getWorlds(): java.util.List; + /** + * Creates or loads a world with the given name using the specified + * options. + *

+ * If the world is already loaded, it will just return the equivalent of + * getWorld(creator.name()). + */ + // @ts-ignore + public static createWorld(creator: org.bukkit.WorldCreator): org.bukkit.World; + /** + * Unloads a world with the given name. + */ + // @ts-ignore + public static unloadWorld(name: string, save: boolean): boolean; + /** + * Unloads the given world. + */ + // @ts-ignore + public static unloadWorld(world: org.bukkit.World, save: boolean): boolean; + /** + * Gets the world with the given name. + */ + // @ts-ignore + public static getWorld(name: string): org.bukkit.World; + /** + * Gets the world from the given Unique ID. + */ + // @ts-ignore + public static getWorld(uid: java.util.UUID): org.bukkit.World; + /** + * Gets the map from the given item ID. + */ + // @ts-ignore + public static getMap(id: number): org.bukkit.map.MapView; + /** + * Create a new map with an automatically assigned ID. + */ + // @ts-ignore + public static createMap(world: org.bukkit.World): org.bukkit.map.MapView; + /** + * Create a new explorer map targeting the closest nearby structure of a + * given {@link StructureType}. + *
+ * This method uses implementation default values for radius and + * findUnexplored (usually 100, true). + */ + // @ts-ignore + public static createExplorerMap(world: org.bukkit.World, location: org.bukkit.Location, structureType: org.bukkit.StructureType): org.bukkit.inventory.ItemStack; + /** + * Create a new explorer map targeting the closest nearby structure of a + * given {@link StructureType}. + *
+ * This method uses implementation default values for radius and + * findUnexplored (usually 100, true). + */ + // @ts-ignore + public static createExplorerMap(world: org.bukkit.World, location: org.bukkit.Location, structureType: org.bukkit.StructureType, radius: number, findUnexplored: boolean): org.bukkit.inventory.ItemStack; + /** + * Reloads the server, refreshing settings and plugin information. + */ + // @ts-ignore + public static reload(): void; + /** + * Reload only the Minecraft data for the server. This includes custom + * advancements and loot tables. + */ + // @ts-ignore + public static reloadData(): void; + /** + * Returns the primary logger associated with this server instance. + */ + // @ts-ignore + public static getLogger(): java.util.logging.Logger; + /** + * Gets a {@link PluginCommand} with the given name or alias. + */ + // @ts-ignore + public static getPluginCommand(name: string): org.bukkit.command.PluginCommand; + /** + * Writes loaded players to disk. + */ + // @ts-ignore + public static savePlayers(): void; + /** + * Dispatches a command on this server, and executes it if found. + */ + // @ts-ignore + public static dispatchCommand(sender: org.bukkit.command.CommandSender, commandLine: string): boolean; + /** + * Adds a recipe to the crafting manager. + */ + // @ts-ignore + public static addRecipe(recipe: org.bukkit.inventory.Recipe): boolean; + /** + * Get a list of all recipes for a given item. The stack size is ignored + * in comparisons. If the durability is -1, it will match any data value. + */ + // @ts-ignore + public static getRecipesFor(result: org.bukkit.inventory.ItemStack): java.util.List; + /** + * Get an iterator through the list of crafting recipes. + */ + // @ts-ignore + public static recipeIterator(): java.util.Iterator; + /** + * Clears the list of crafting recipes. + */ + // @ts-ignore + public static clearRecipes(): void; + /** + * Resets the list of crafting recipes to the default. + */ + // @ts-ignore + public static resetRecipes(): void; + /** + * Gets a list of command aliases defined in the server properties. + */ + // @ts-ignore + public static getCommandAliases(): java.util.Map; + /** + * Gets the radius, in blocks, around each worlds spawn point to protect. + */ + // @ts-ignore + public static getSpawnRadius(): number; + /** + * Sets the radius, in blocks, around each worlds spawn point to protect. + */ + // @ts-ignore + public static setSpawnRadius(value: number): void; + /** + * Gets whether the Server is in online mode or not. + */ + // @ts-ignore + public static getOnlineMode(): boolean; + /** + * Gets whether this server allows flying or not. + */ + // @ts-ignore + public static getAllowFlight(): boolean; + /** + * Gets whether the server is in hardcore mode or not. + */ + // @ts-ignore + public static isHardcore(): boolean; + /** + * Shutdowns the server, stopping everything. + */ + // @ts-ignore + public static shutdown(): void; + /** + * Broadcasts the specified message to every user with the given + * permission name. + */ + // @ts-ignore + public static broadcast(message: string, permission: string): number; + /** + * Gets the player by the given name, regardless if they are offline or + * online. + *

+ * This method may involve a blocking web request to get the UUID for the + * given name. + *

+ * This will return an object even if the player does not exist. To this + * method, all players will exist. + */ + // @ts-ignore + public static getOfflinePlayer(name: string): org.bukkit.OfflinePlayer; + /** + * Gets the player by the given UUID, regardless if they are offline or + * online. + *

+ * This will return an object even if the player does not exist. To this + * method, all players will exist. + */ + // @ts-ignore + public static getOfflinePlayer(id: java.util.UUID): org.bukkit.OfflinePlayer; + /** + * Gets a set containing all current IPs that are banned. + */ + // @ts-ignore + public static getIPBans(): java.util.Set; + /** + * Bans the specified address from the server. + */ + // @ts-ignore + public static banIP(address: string): void; + /** + * Unbans the specified address from the server. + */ + // @ts-ignore + public static unbanIP(address: string): void; + /** + * Gets a set containing all banned players. + */ + // @ts-ignore + public static getBannedPlayers(): java.util.Set; + /** + * Gets a ban list for the supplied type. + *

+ * Bans by name are no longer supported and this method will return + * null when trying to request them. The replacement is bans by UUID. + */ + // @ts-ignore + public static getBanList(type: org.bukkit.BanList.Type): org.bukkit.BanList; + /** + * Gets a set containing all player operators. + */ + // @ts-ignore + public static getOperators(): java.util.Set; + /** + * Gets the default {@link GameMode} for new players. + */ + // @ts-ignore + public static getDefaultGameMode(): org.bukkit.GameMode; + /** + * Sets the default {@link GameMode} for new players. + */ + // @ts-ignore + public static setDefaultGameMode(mode: org.bukkit.GameMode): void; + /** + * Gets a {@link ConsoleCommandSender} that may be used as an input source + * for this server. + */ + // @ts-ignore + public static getConsoleSender(): org.bukkit.command.ConsoleCommandSender; + /** + * Gets the folder that contains all of the various {@link World}s. + */ + // @ts-ignore + public static getWorldContainer(): java.io.File; + /** + * Gets every player that has ever played on this server. + */ + // @ts-ignore + public static getOfflinePlayers(): org.bukkit.OfflinePlayer[]; + /** + * Gets the {@link Messenger} responsible for this server. + */ + // @ts-ignore + public static getMessenger(): org.bukkit.plugin.messaging.Messenger; + /** + * Gets the {@link HelpMap} providing help topics for this server. + */ + // @ts-ignore + public static getHelpMap(): org.bukkit.help.HelpMap; + /** + * Creates an empty inventory with the specified type. If the type + * is {@link InventoryType#CHEST}, the new inventory has a size of 27; + * otherwise the new inventory has the normal size for its type. + *
+ * {@link InventoryType#WORKBENCH} will not process crafting recipes if + * created with this method. Use + * {@link Player#openWorkbench(Location, boolean)} instead. + *
+ * {@link InventoryType#ENCHANTING} will not process {@link ItemStack}s + * for possible enchanting results. Use + * {@link Player#openEnchanting(Location, boolean)} instead. + */ + // @ts-ignore + public static createInventory(owner: org.bukkit.inventory.InventoryHolder, type: org.bukkit.event.inventory.InventoryType): org.bukkit.inventory.Inventory; + /** + * Creates an empty inventory with the specified type and title. If the type + * is {@link InventoryType#CHEST}, the new inventory has a size of 27; + * otherwise the new inventory has the normal size for its type.
+ * It should be noted that some inventory types do not support titles and + * may not render with said titles on the Minecraft client. + *
+ * {@link InventoryType#WORKBENCH} will not process crafting recipes if + * created with this method. Use + * {@link Player#openWorkbench(Location, boolean)} instead. + *
+ * {@link InventoryType#ENCHANTING} will not process {@link ItemStack}s + * for possible enchanting results. Use + * {@link Player#openEnchanting(Location, boolean)} instead. + */ + // @ts-ignore + public static createInventory(owner: org.bukkit.inventory.InventoryHolder, type: org.bukkit.event.inventory.InventoryType, title: string): org.bukkit.inventory.Inventory; + /** + * Creates an empty inventory of type {@link InventoryType#CHEST} with the + * specified size. + */ + // @ts-ignore + public static createInventory(owner: org.bukkit.inventory.InventoryHolder, size: number): org.bukkit.inventory.Inventory; + /** + * Creates an empty inventory of type {@link InventoryType#CHEST} with the + * specified size and title. + */ + // @ts-ignore + public static createInventory(owner: org.bukkit.inventory.InventoryHolder, size: number, title: string): org.bukkit.inventory.Inventory; + /** + * Creates an empty merchant. + */ + // @ts-ignore + public static createMerchant(title: string): org.bukkit.inventory.Merchant; + /** + * Gets user-specified limit for number of monsters that can spawn in a + * chunk. + */ + // @ts-ignore + public static getMonsterSpawnLimit(): number; + /** + * Gets user-specified limit for number of animals that can spawn in a + * chunk. + */ + // @ts-ignore + public static getAnimalSpawnLimit(): number; + /** + * Gets user-specified limit for number of water animals that can spawn in + * a chunk. + */ + // @ts-ignore + public static getWaterAnimalSpawnLimit(): number; + /** + * Gets user-specified limit for number of ambient mobs that can spawn in + * a chunk. + */ + // @ts-ignore + public static getAmbientSpawnLimit(): number; + /** + * Checks the current thread against the expected primary thread for the + * server. + *

+ * Note: this method should not be used to indicate the current + * synchronized state of the runtime. A current thread matching the main + * thread indicates that it is synchronized, but a mismatch does not + * preclude the same assumption. + */ + // @ts-ignore + public static isPrimaryThread(): boolean; + /** + * Gets the message that is displayed on the server list. + */ + // @ts-ignore + public static getMotd(): string; + /** + * Gets the default message that is displayed when the server is stopped. + */ + // @ts-ignore + public static getShutdownMessage(): string; + /** + * Gets the current warning state for the server. + */ + // @ts-ignore + public static getWarningState(): org.bukkit.Warning.WarningState; + /** + * Gets the instance of the item factory (for {@link ItemMeta}). + */ + // @ts-ignore + public static getItemFactory(): org.bukkit.inventory.ItemFactory; + /** + * Gets the instance of the scoreboard manager. + *

+ * This will only exist after the first world has loaded. + */ + // @ts-ignore + public static getScoreboardManager(): org.bukkit.scoreboard.ScoreboardManager; + /** + * Gets an instance of the server's default server-icon. + */ + // @ts-ignore + public static getServerIcon(): org.bukkit.util.CachedServerIcon; + /** + * Loads an image from a file, and returns a cached image for the specific + * server-icon. + *

+ * Size and type are implementation defined. An incompatible file is + * guaranteed to throw an implementation-defined {@link Exception}. + */ + // @ts-ignore + public static loadServerIcon(file: java.io.File): org.bukkit.util.CachedServerIcon; + /** + * Creates a cached server-icon for the specific image. + *

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

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

    + *
  • not bound to a {@link org.bukkit.entity.Boss}
  • + *
  • + * not created using + * {@link #createBossBar(String, BarColor, BarStyle, BarFlag...)} + *
  • + *
+ * e.g. bossbars created using the bossbar command + */ + // @ts-ignore + public static getBossBars(): java.util.Iterator; + /** + * Gets the {@link KeyedBossBar} specified by this key. + *
    + *
  • not bound to a {@link org.bukkit.entity.Boss}
  • + *
  • + * not created using + * {@link #createBossBar(String, BarColor, BarStyle, BarFlag...)} + *
  • + *
+ * e.g. bossbars created using the bossbar command + */ + // @ts-ignore + public static getBossBar(key: org.bukkit.NamespacedKey): org.bukkit.boss.KeyedBossBar; + /** + * Removes a {@link KeyedBossBar} specified by this key. + *
    + *
  • not bound to a {@link org.bukkit.entity.Boss}
  • + *
  • + * not created using + * {@link #createBossBar(String, BarColor, BarStyle, BarFlag...)} + *
  • + *
+ * e.g. bossbars created using the bossbar command + */ + // @ts-ignore + public static removeBossBar(key: org.bukkit.NamespacedKey): boolean; + /** + * Gets an entity on the server by its UUID + */ + // @ts-ignore + public static getEntity(uuid: java.util.UUID): org.bukkit.entity.Entity; + /** + * Get the advancement specified by this key. + */ + // @ts-ignore + public static getAdvancement(key: org.bukkit.NamespacedKey): org.bukkit.advancement.Advancement; + /** + * Get an iterator through all advancements. Advancements cannot be removed + * from this iterator, + */ + // @ts-ignore + public static advancementIterator(): java.util.Iterator; + /** + * Creates a new {@link BlockData} instance for the specified Material, with + * all properties initialized to unspecified defaults. + */ + // @ts-ignore + public static createBlockData(material: org.bukkit.Material): org.bukkit.block.data.BlockData; + /** + * Creates a new {@link BlockData} instance for the specified Material, with + * all properties initialized to unspecified defaults. + */ + // @ts-ignore + public static createBlockData(material: org.bukkit.Material, consumer: java.util.function$.Consumer): org.bukkit.block.data.BlockData; + /** + * Creates a new {@link BlockData} instance with material and properties + * parsed from provided data. + */ + // @ts-ignore + public static createBlockData(data: string): org.bukkit.block.data.BlockData; + /** + * Creates a new {@link BlockData} instance for the specified Material, with + * all properties initialized to unspecified defaults, except for those + * provided in data. + */ + // @ts-ignore + public static createBlockData(material: org.bukkit.Material, data: string): org.bukkit.block.data.BlockData; + /** + * Gets a tag which has already been defined within the server. Plugins are + * suggested to use the concrete tags in {@link Tag} rather than this method + * which makes no guarantees about which tags are available, and may also be + * less performant due to lack of caching. + *
+ * Tags will be searched for in an implementation specific manner, but a + * path consisting of namespace/tags/registry/key is expected. + *
+ * Server implementations are allowed to handle only the registries + * indicated in {@link Tag}. + */ + // @ts-ignore + public static getTag(registry: string, tag: org.bukkit.NamespacedKey, clazz: java.lang.Class): org.bukkit.Tag; + /** + * Gets a all tags which have been defined within the server. + *
+ * Server implementations are allowed to handle only the registries + * indicated in {@link Tag}. + *
+ * No guarantees are made about the mutability of the returned iterator. + */ + // @ts-ignore + public static getTags(registry: string, clazz: java.lang.Class): java.lang.Iterable; + /** + * Gets the specified {@link LootTable}. + */ + // @ts-ignore + public static getLootTable(key: org.bukkit.NamespacedKey): org.bukkit.loot.LootTable; + /** + * Selects entities using the given Vanilla selector. + *
+ * No guarantees are made about the selector format, other than they match + * the Vanilla format for the active Minecraft version. + *
+ * Usually a selector will start with '@', unless selecting a Player in + * which case it may simply be the Player's name or UUID. + *
+ * Note that in Vanilla, elevated permissions are usually required to use + * '@' selectors, but this method should not check such permissions from the + * sender. + */ + // @ts-ignore + public static selectEntities(sender: org.bukkit.command.CommandSender, selector: string): java.util.List; + // @ts-ignore + public static getUnsafe(): org.bukkit.UnsafeValues; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.ChatColor.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.ChatColor.d.ts new file mode 100644 index 00000000..5bb393d1 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.ChatColor.d.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class ChatColor extends java.lang.Enum { + // @ts-ignore + public static BLACK: org.bukkit.ChatColor; + // @ts-ignore + public static DARK_BLUE: org.bukkit.ChatColor; + // @ts-ignore + public static DARK_GREEN: org.bukkit.ChatColor; + // @ts-ignore + public static DARK_AQUA: org.bukkit.ChatColor; + // @ts-ignore + public static DARK_RED: org.bukkit.ChatColor; + // @ts-ignore + public static DARK_PURPLE: org.bukkit.ChatColor; + // @ts-ignore + public static GOLD: org.bukkit.ChatColor; + // @ts-ignore + public static GRAY: org.bukkit.ChatColor; + // @ts-ignore + public static DARK_GRAY: org.bukkit.ChatColor; + // @ts-ignore + public static BLUE: org.bukkit.ChatColor; + // @ts-ignore + public static GREEN: org.bukkit.ChatColor; + // @ts-ignore + public static AQUA: org.bukkit.ChatColor; + // @ts-ignore + public static RED: org.bukkit.ChatColor; + // @ts-ignore + public static LIGHT_PURPLE: org.bukkit.ChatColor; + // @ts-ignore + public static YELLOW: org.bukkit.ChatColor; + // @ts-ignore + public static WHITE: org.bukkit.ChatColor; + // @ts-ignore + public static MAGIC: org.bukkit.ChatColor; + // @ts-ignore + public static BOLD: org.bukkit.ChatColor; + // @ts-ignore + public static STRIKETHROUGH: org.bukkit.ChatColor; + // @ts-ignore + public static UNDERLINE: org.bukkit.ChatColor; + // @ts-ignore + public static ITALIC: org.bukkit.ChatColor; + // @ts-ignore + public static RESET: org.bukkit.ChatColor; + // @ts-ignore + public static COLOR_CHAR: string; + // @ts-ignore + public static values(): org.bukkit.ChatColor[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.ChatColor; + /** + * Gets the char value associated with this color + */ + // @ts-ignore + public getChar(): string; + // @ts-ignore + public toString(): string; + /** + * Checks if this code is a format code as opposed to a color code. + */ + // @ts-ignore + public isFormat(): boolean; + /** + * Checks if this code is a color code as opposed to a format code. + */ + // @ts-ignore + public isColor(): boolean; + /** + * Gets the color represented by the specified color code + */ + // @ts-ignore + public static getByChar(code: string): org.bukkit.ChatColor; + /** + * Gets the color represented by the specified color code + */ + // @ts-ignore + public static getByChar(code: string): org.bukkit.ChatColor; + /** + * Strips the given message of all color codes + */ + // @ts-ignore + public static stripColor(input: string): string; + /** + * Translates a string using an alternate color code character into a + * string that uses the internal ChatColor.COLOR_CODE color code + * character. The alternate color code character will only be replaced if + * it is immediately followed by 0-9, A-F, a-f, K-O, k-o, R or r. + */ + // @ts-ignore + public static translateAlternateColorCodes(altColorChar: string, textToTranslate: string): string; + /** + * Gets the ChatColors used at the end of the given input string. + */ + // @ts-ignore + public static getLastColors(input: string): string; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.Chunk.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.Chunk.d.ts new file mode 100644 index 00000000..c9f4f9b8 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.Chunk.d.ts @@ -0,0 +1,127 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + interface Chunk { + /** + * Gets the X-coordinate of this chunk + */ + // @ts-ignore + getX(): number; + /** + * Gets the Z-coordinate of this chunk + */ + // @ts-ignore + getZ(): number; + /** + * Gets the world containing this chunk + */ + // @ts-ignore + getWorld(): org.bukkit.World; + /** + * Gets a block from this chunk + */ + // @ts-ignore + getBlock(x: number, y: number, z: number): org.bukkit.block.Block; + /** + * Capture thread-safe read-only snapshot of chunk data + */ + // @ts-ignore + getChunkSnapshot(): org.bukkit.ChunkSnapshot; + /** + * Capture thread-safe read-only snapshot of chunk data + */ + // @ts-ignore + getChunkSnapshot(includeMaxblocky: boolean, includeBiome: boolean, includeBiomeTempRain: boolean): org.bukkit.ChunkSnapshot; + /** + * Get a list of all entities in the chunk. + */ + // @ts-ignore + getEntities(): org.bukkit.entity.Entity[]; + /** + * Get a list of all tile entities in the chunk. + */ + // @ts-ignore + getTileEntities(): org.bukkit.block.BlockState[]; + /** + * Checks if the chunk is loaded. + */ + // @ts-ignore + isLoaded(): boolean; + /** + * Loads the chunk. + */ + // @ts-ignore + load(generate: boolean): boolean; + /** + * Loads the chunk. + */ + // @ts-ignore + load(): boolean; + /** + * Unloads and optionally saves the Chunk + */ + // @ts-ignore + unload(save: boolean): boolean; + /** + * Unloads and optionally saves the Chunk + */ + // @ts-ignore + unload(): boolean; + /** + * Checks if this chunk can spawn slimes without being a swamp biome. + */ + // @ts-ignore + isSlimeChunk(): boolean; + /** + * Gets whether the chunk at the specified chunk coordinates is force + * loaded. + *

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

+ * A force loaded chunk will not be unloaded due to lack of player activity. + */ + // @ts-ignore + setForceLoaded(forced: boolean): void; + /** + * Adds a plugin ticket for this chunk, loading this chunk if it is not + * already loaded. + *

+ * A plugin ticket will prevent a chunk from unloading until it is + * explicitly removed. A plugin instance may only have one ticket per chunk, + * but each chunk can have multiple plugin tickets. + *

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

+ * A plugin ticket will prevent a chunk from unloading until it is + * explicitly removed. A plugin instance may only have one ticket per chunk, + * but each chunk can have multiple plugin tickets. + *

+ */ + // @ts-ignore + removePluginChunkTicket(plugin: org.bukkit.plugin.Plugin): boolean; + /** + * Retrieves a collection specifying which plugins have tickets for this + * chunk. This collection is not updated when plugin tickets are added or + * removed to this chunk. + *

+ * A plugin ticket will prevent a chunk from unloading until it is + * explicitly removed. A plugin instance may only have one ticket per chunk, + * but each chunk can have multiple plugin tickets. + *

+ */ + // @ts-ignore + getPluginChunkTickets(): java.util.Collection; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.ChunkSnapshot.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.ChunkSnapshot.d.ts new file mode 100644 index 00000000..6453c832 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.ChunkSnapshot.d.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + interface ChunkSnapshot { + /** + * Gets the X-coordinate of this chunk + */ + // @ts-ignore + getX(): number; + /** + * Gets the Z-coordinate of this chunk + */ + // @ts-ignore + getZ(): number; + /** + * Gets name of the world containing this chunk + */ + // @ts-ignore + getWorldName(): string; + /** + * Get block type for block at corresponding coordinate in the chunk + */ + // @ts-ignore + getBlockType(x: number, y: number, z: number): org.bukkit.Material; + /** + * Get block data for block at corresponding coordinate in the chunk + */ + // @ts-ignore + getBlockData(x: number, y: number, z: number): org.bukkit.block.data.BlockData; + /** + * Get block data for block at corresponding coordinate in the chunk + */ + // @ts-ignore + getData(x: number, y: number, z: number): number; + /** + * Get sky light level for block at corresponding coordinate in the chunk + */ + // @ts-ignore + getBlockSkyLight(x: number, y: number, z: number): number; + /** + * Get light level emitted by block at corresponding coordinate in the + * chunk + */ + // @ts-ignore + getBlockEmittedLight(x: number, y: number, z: number): number; + /** + * Gets the highest non-air coordinate at the given coordinates + */ + // @ts-ignore + getHighestBlockYAt(x: number, z: number): number; + /** + * Get biome at given coordinates + */ + // @ts-ignore + getBiome(x: number, z: number): org.bukkit.block.Biome; + /** + * Get raw biome temperature (0.0-1.0) at given coordinate + */ + // @ts-ignore + getRawBiomeTemperature(x: number, z: number): number; + /** + * Get world full time when chunk snapshot was captured + */ + // @ts-ignore + getCaptureFullTime(): number; + /** + * Test if section is empty + */ + // @ts-ignore + isSectionEmpty(sy: number): boolean; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.CoalType.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.CoalType.d.ts new file mode 100644 index 00000000..32aacc86 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.CoalType.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class CoalType extends java.lang.Enum { + // @ts-ignore + public static COAL: org.bukkit.CoalType; + // @ts-ignore + public static CHARCOAL: org.bukkit.CoalType; + // @ts-ignore + public static values(): org.bukkit.CoalType[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.CoalType; + /** + * Gets the associated data value representing this type of coal + */ + // @ts-ignore + public getData(): number; + /** + * Gets the type of coal with the given data value + */ + // @ts-ignore + public static getByData(data: number): org.bukkit.CoalType; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.Color.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.Color.d.ts new file mode 100644 index 00000000..81f9df37 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.Color.d.ts @@ -0,0 +1,120 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class Color extends java.lang.Object implements org.bukkit.configuration.serialization.ConfigurationSerializable { + // @ts-ignore + public static WHITE: org.bukkit.Color; + // @ts-ignore + public static SILVER: org.bukkit.Color; + // @ts-ignore + public static GRAY: org.bukkit.Color; + // @ts-ignore + public static BLACK: org.bukkit.Color; + // @ts-ignore + public static RED: org.bukkit.Color; + // @ts-ignore + public static MAROON: org.bukkit.Color; + // @ts-ignore + public static YELLOW: org.bukkit.Color; + // @ts-ignore + public static OLIVE: org.bukkit.Color; + // @ts-ignore + public static LIME: org.bukkit.Color; + // @ts-ignore + public static GREEN: org.bukkit.Color; + // @ts-ignore + public static AQUA: org.bukkit.Color; + // @ts-ignore + public static TEAL: org.bukkit.Color; + // @ts-ignore + public static BLUE: org.bukkit.Color; + // @ts-ignore + public static NAVY: org.bukkit.Color; + // @ts-ignore + public static FUCHSIA: org.bukkit.Color; + // @ts-ignore + public static PURPLE: org.bukkit.Color; + // @ts-ignore + public static ORANGE: org.bukkit.Color; + /** + * Creates a new Color object from a red, green, and blue + */ + // @ts-ignore + public static fromRGB(red: number, green: number, blue: number): org.bukkit.Color; + /** + * Creates a new Color object from a blue, green, and red + */ + // @ts-ignore + public static fromBGR(blue: number, green: number, red: number): org.bukkit.Color; + /** + * Creates a new color object from an integer that contains the red, + * green, and blue bytes in the lowest order 24 bits. + */ + // @ts-ignore + public static fromRGB(rgb: number): org.bukkit.Color; + /** + * Creates a new color object from an integer that contains the blue, + * green, and red bytes in the lowest order 24 bits. + */ + // @ts-ignore + public static fromBGR(bgr: number): org.bukkit.Color; + /** + * Gets the red component + */ + // @ts-ignore + public getRed(): number; + /** + * Creates a new Color object with specified component + */ + // @ts-ignore + public setRed(red: number): org.bukkit.Color; + /** + * Gets the green component + */ + // @ts-ignore + public getGreen(): number; + /** + * Creates a new Color object with specified component + */ + // @ts-ignore + public setGreen(green: number): org.bukkit.Color; + /** + * Gets the blue component + */ + // @ts-ignore + public getBlue(): number; + /** + * Creates a new Color object with specified component + */ + // @ts-ignore + public setBlue(blue: number): org.bukkit.Color; + // @ts-ignore + public asRGB(): number; + // @ts-ignore + public asBGR(): number; + /** + * Creates a new color with its RGB components changed as if it was dyed + * with the colors passed in, replicating vanilla workbench dyeing + */ + // @ts-ignore + public mixDyes(colors: org.bukkit.DyeColor): org.bukkit.Color; + /** + * Creates a new color with its RGB components changed as if it was dyed + * with the colors passed in, replicating vanilla workbench dyeing + */ + // @ts-ignore + public mixColors(colors: org.bukkit.Color): org.bukkit.Color; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public serialize(): java.util.Map; + // @ts-ignore + public static deserialize(map: java.util.Map): org.bukkit.Color; + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.CropState.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.CropState.d.ts new file mode 100644 index 00000000..24227e5f --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.CropState.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class CropState extends java.lang.Enum { + // @ts-ignore + public static SEEDED: org.bukkit.CropState; + // @ts-ignore + public static GERMINATED: org.bukkit.CropState; + // @ts-ignore + public static VERY_SMALL: org.bukkit.CropState; + // @ts-ignore + public static SMALL: org.bukkit.CropState; + // @ts-ignore + public static MEDIUM: org.bukkit.CropState; + // @ts-ignore + public static TALL: org.bukkit.CropState; + // @ts-ignore + public static VERY_TALL: org.bukkit.CropState; + // @ts-ignore + public static RIPE: org.bukkit.CropState; + // @ts-ignore + public static values(): org.bukkit.CropState[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.CropState; + /** + * Gets the associated data value representing this growth state + */ + // @ts-ignore + public getData(): number; + /** + * Gets the CropState with the given data value + */ + // @ts-ignore + public static getByData(data: number): org.bukkit.CropState; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.Difficulty.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.Difficulty.d.ts new file mode 100644 index 00000000..a2f08265 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.Difficulty.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class Difficulty extends java.lang.Enum { + // @ts-ignore + public static PEACEFUL: org.bukkit.Difficulty; + // @ts-ignore + public static EASY: org.bukkit.Difficulty; + // @ts-ignore + public static NORMAL: org.bukkit.Difficulty; + // @ts-ignore + public static HARD: org.bukkit.Difficulty; + // @ts-ignore + public static values(): org.bukkit.Difficulty[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.Difficulty; + /** + * Gets the difficulty value associated with this Difficulty. + */ + // @ts-ignore + public getValue(): number; + /** + * Gets the Difficulty represented by the specified value + */ + // @ts-ignore + public static getByValue(value: number): org.bukkit.Difficulty; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.DyeColor.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.DyeColor.d.ts new file mode 100644 index 00000000..9eb5cb7d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.DyeColor.d.ts @@ -0,0 +1,89 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class DyeColor extends java.lang.Enum { + // @ts-ignore + public static WHITE: org.bukkit.DyeColor; + // @ts-ignore + public static ORANGE: org.bukkit.DyeColor; + // @ts-ignore + public static MAGENTA: org.bukkit.DyeColor; + // @ts-ignore + public static LIGHT_BLUE: org.bukkit.DyeColor; + // @ts-ignore + public static YELLOW: org.bukkit.DyeColor; + // @ts-ignore + public static LIME: org.bukkit.DyeColor; + // @ts-ignore + public static PINK: org.bukkit.DyeColor; + // @ts-ignore + public static GRAY: org.bukkit.DyeColor; + // @ts-ignore + public static LIGHT_GRAY: org.bukkit.DyeColor; + // @ts-ignore + public static CYAN: org.bukkit.DyeColor; + // @ts-ignore + public static PURPLE: org.bukkit.DyeColor; + // @ts-ignore + public static BLUE: org.bukkit.DyeColor; + // @ts-ignore + public static BROWN: org.bukkit.DyeColor; + // @ts-ignore + public static GREEN: org.bukkit.DyeColor; + // @ts-ignore + public static RED: org.bukkit.DyeColor; + // @ts-ignore + public static BLACK: org.bukkit.DyeColor; + // @ts-ignore + public static values(): org.bukkit.DyeColor[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.DyeColor; + /** + * Gets the associated wool data value representing this color. + */ + // @ts-ignore + public getWoolData(): number; + /** + * Gets the associated dye data value representing this color. + */ + // @ts-ignore + public getDyeData(): number; + /** + * Gets the color that this dye represents. + */ + // @ts-ignore + public getColor(): org.bukkit.Color; + /** + * Gets the firework color that this dye represents. + */ + // @ts-ignore + public getFireworkColor(): org.bukkit.Color; + /** + * Gets the DyeColor with the given wool data value. + */ + // @ts-ignore + public static getByWoolData(data: number): org.bukkit.DyeColor; + /** + * Gets the DyeColor with the given dye data value. + */ + // @ts-ignore + public static getByDyeData(data: number): org.bukkit.DyeColor; + /** + * Gets the DyeColor with the given color value. + */ + // @ts-ignore + public static getByColor(color: org.bukkit.Color): org.bukkit.DyeColor; + /** + * Gets the DyeColor with the given firework color value. + */ + // @ts-ignore + public static getByFireworkColor(color: org.bukkit.Color): org.bukkit.DyeColor; + /** + * Gets the DyeColor for the given name, possibly doing legacy transformations. + */ + // @ts-ignore + public static legacyValueOf(name: string): org.bukkit.DyeColor; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.Effect.Type.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.Effect.Type.d.ts new file mode 100644 index 00000000..3d09d753 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.Effect.Type.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace Effect { + // @ts-ignore + class Type extends java.lang.Enum { + // @ts-ignore + public static SOUND: org.bukkit.Effect.Type; + // @ts-ignore + public static VISUAL: org.bukkit.Effect.Type; + // @ts-ignore + public static values(): org.bukkit.Effect.Type[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.Effect.Type; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.Effect.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.Effect.d.ts new file mode 100644 index 00000000..6da49714 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.Effect.d.ts @@ -0,0 +1,116 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class Effect extends java.lang.Enum { + // @ts-ignore + public static CLICK2: org.bukkit.Effect; + // @ts-ignore + public static CLICK1: org.bukkit.Effect; + // @ts-ignore + public static BOW_FIRE: org.bukkit.Effect; + // @ts-ignore + public static DOOR_TOGGLE: org.bukkit.Effect; + // @ts-ignore + public static IRON_DOOR_TOGGLE: org.bukkit.Effect; + // @ts-ignore + public static TRAPDOOR_TOGGLE: org.bukkit.Effect; + // @ts-ignore + public static IRON_TRAPDOOR_TOGGLE: org.bukkit.Effect; + // @ts-ignore + public static FENCE_GATE_TOGGLE: org.bukkit.Effect; + // @ts-ignore + public static DOOR_CLOSE: org.bukkit.Effect; + // @ts-ignore + public static IRON_DOOR_CLOSE: org.bukkit.Effect; + // @ts-ignore + public static TRAPDOOR_CLOSE: org.bukkit.Effect; + // @ts-ignore + public static IRON_TRAPDOOR_CLOSE: org.bukkit.Effect; + // @ts-ignore + public static FENCE_GATE_CLOSE: org.bukkit.Effect; + // @ts-ignore + public static EXTINGUISH: org.bukkit.Effect; + // @ts-ignore + public static RECORD_PLAY: org.bukkit.Effect; + // @ts-ignore + public static GHAST_SHRIEK: org.bukkit.Effect; + // @ts-ignore + public static GHAST_SHOOT: org.bukkit.Effect; + // @ts-ignore + public static BLAZE_SHOOT: org.bukkit.Effect; + // @ts-ignore + public static ZOMBIE_CHEW_WOODEN_DOOR: org.bukkit.Effect; + // @ts-ignore + public static ZOMBIE_CHEW_IRON_DOOR: org.bukkit.Effect; + // @ts-ignore + public static ZOMBIE_DESTROY_DOOR: org.bukkit.Effect; + // @ts-ignore + public static SMOKE: org.bukkit.Effect; + // @ts-ignore + public static STEP_SOUND: org.bukkit.Effect; + // @ts-ignore + public static POTION_BREAK: org.bukkit.Effect; + // @ts-ignore + public static ENDER_SIGNAL: org.bukkit.Effect; + // @ts-ignore + public static MOBSPAWNER_FLAMES: org.bukkit.Effect; + // @ts-ignore + public static BREWING_STAND_BREW: org.bukkit.Effect; + // @ts-ignore + public static CHORUS_FLOWER_GROW: org.bukkit.Effect; + // @ts-ignore + public static CHORUS_FLOWER_DEATH: org.bukkit.Effect; + // @ts-ignore + public static PORTAL_TRAVEL: org.bukkit.Effect; + // @ts-ignore + public static ENDEREYE_LAUNCH: org.bukkit.Effect; + // @ts-ignore + public static FIREWORK_SHOOT: org.bukkit.Effect; + // @ts-ignore + public static VILLAGER_PLANT_GROW: org.bukkit.Effect; + // @ts-ignore + public static DRAGON_BREATH: org.bukkit.Effect; + // @ts-ignore + public static ANVIL_BREAK: org.bukkit.Effect; + // @ts-ignore + public static ANVIL_USE: org.bukkit.Effect; + // @ts-ignore + public static ANVIL_LAND: org.bukkit.Effect; + // @ts-ignore + public static ENDERDRAGON_SHOOT: org.bukkit.Effect; + // @ts-ignore + public static WITHER_BREAK_BLOCK: org.bukkit.Effect; + // @ts-ignore + public static WITHER_SHOOT: org.bukkit.Effect; + // @ts-ignore + public static ZOMBIE_INFECT: org.bukkit.Effect; + // @ts-ignore + public static ZOMBIE_CONVERTED_VILLAGER: org.bukkit.Effect; + // @ts-ignore + public static BAT_TAKEOFF: org.bukkit.Effect; + // @ts-ignore + public static END_GATEWAY_SPAWN: org.bukkit.Effect; + // @ts-ignore + public static ENDERDRAGON_GROWL: org.bukkit.Effect; + // @ts-ignore + public static values(): org.bukkit.Effect[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.Effect; + /** + * Gets the ID for this effect. + */ + // @ts-ignore + public getId(): number; + // @ts-ignore + public getType(): org.bukkit.Effect.Type; + // @ts-ignore + public getData(): java.lang.Class; + /** + * Gets the Effect associated with the given ID. + */ + // @ts-ignore + public static getById(id: number): org.bukkit.Effect; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.EntityEffect.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.EntityEffect.d.ts new file mode 100644 index 00000000..cf5068a1 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.EntityEffect.d.ts @@ -0,0 +1,81 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class EntityEffect extends java.lang.Enum { + // @ts-ignore + public static ARROW_PARTICLES: org.bukkit.EntityEffect; + // @ts-ignore + public static RABBIT_JUMP: org.bukkit.EntityEffect; + // @ts-ignore + public static HURT: org.bukkit.EntityEffect; + // @ts-ignore + public static DEATH: org.bukkit.EntityEffect; + // @ts-ignore + public static WOLF_SMOKE: org.bukkit.EntityEffect; + // @ts-ignore + public static WOLF_HEARTS: org.bukkit.EntityEffect; + // @ts-ignore + public static WOLF_SHAKE: org.bukkit.EntityEffect; + // @ts-ignore + public static SHEEP_EAT: org.bukkit.EntityEffect; + // @ts-ignore + public static IRON_GOLEM_ROSE: org.bukkit.EntityEffect; + // @ts-ignore + public static VILLAGER_HEART: org.bukkit.EntityEffect; + // @ts-ignore + public static VILLAGER_ANGRY: org.bukkit.EntityEffect; + // @ts-ignore + public static VILLAGER_HAPPY: org.bukkit.EntityEffect; + // @ts-ignore + public static WITCH_MAGIC: org.bukkit.EntityEffect; + // @ts-ignore + public static ZOMBIE_TRANSFORM: org.bukkit.EntityEffect; + // @ts-ignore + public static FIREWORK_EXPLODE: org.bukkit.EntityEffect; + // @ts-ignore + public static LOVE_HEARTS: org.bukkit.EntityEffect; + // @ts-ignore + public static SQUID_ROTATE: org.bukkit.EntityEffect; + // @ts-ignore + public static ENTITY_POOF: org.bukkit.EntityEffect; + // @ts-ignore + public static GUARDIAN_TARGET: org.bukkit.EntityEffect; + // @ts-ignore + public static SHIELD_BLOCK: org.bukkit.EntityEffect; + // @ts-ignore + public static SHIELD_BREAK: org.bukkit.EntityEffect; + // @ts-ignore + public static ARMOR_STAND_HIT: org.bukkit.EntityEffect; + // @ts-ignore + public static THORNS_HURT: org.bukkit.EntityEffect; + // @ts-ignore + public static IRON_GOLEM_SHEATH: org.bukkit.EntityEffect; + // @ts-ignore + public static TOTEM_RESURRECT: org.bukkit.EntityEffect; + // @ts-ignore + public static HURT_DROWN: org.bukkit.EntityEffect; + // @ts-ignore + public static HURT_EXPLOSION: org.bukkit.EntityEffect; + // @ts-ignore + public static values(): org.bukkit.EntityEffect[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.EntityEffect; + /** + * Gets the data value of this EntityEffect + */ + // @ts-ignore + public getData(): number; + /** + * Gets entity superclass which this affect is applicable to. + */ + // @ts-ignore + public getApplicable(): java.lang.Class; + /** + * Gets the EntityEffect with the given data value + */ + // @ts-ignore + public static getByData(data: number): org.bukkit.EntityEffect; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.FireworkEffect.Builder.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.FireworkEffect.Builder.d.ts new file mode 100644 index 00000000..94e8c852 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.FireworkEffect.Builder.d.ts @@ -0,0 +1,73 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace FireworkEffect { + // @ts-ignore + class Builder extends java.lang.Object { + /** + * Specify the type of the firework effect. + */ + // @ts-ignore + public with(type: org.bukkit.FireworkEffect.Type): org.bukkit.FireworkEffect.Builder; + /** + * Add a flicker to the firework effect. + */ + // @ts-ignore + public withFlicker(): org.bukkit.FireworkEffect.Builder; + /** + * Set whether the firework effect should flicker. + */ + // @ts-ignore + public flicker(flicker: boolean): org.bukkit.FireworkEffect.Builder; + /** + * Add a trail to the firework effect. + */ + // @ts-ignore + public withTrail(): org.bukkit.FireworkEffect.Builder; + /** + * Set whether the firework effect should have a trail. + */ + // @ts-ignore + public trail(trail: boolean): org.bukkit.FireworkEffect.Builder; + /** + * Add a primary color to the firework effect. + */ + // @ts-ignore + public withColor(color: org.bukkit.Color): org.bukkit.FireworkEffect.Builder; + /** + * Add several primary colors to the firework effect. + */ + // @ts-ignore + public withColor(colors: org.bukkit.Color): org.bukkit.FireworkEffect.Builder; + /** + * Add several primary colors to the firework effect. + */ + // @ts-ignore + public withColor(colors: java.lang.Iterable): org.bukkit.FireworkEffect.Builder; + /** + * Add a fade color to the firework effect. + */ + // @ts-ignore + public withFade(color: org.bukkit.Color): org.bukkit.FireworkEffect.Builder; + /** + * Add several fade colors to the firework effect. + */ + // @ts-ignore + public withFade(colors: org.bukkit.Color): org.bukkit.FireworkEffect.Builder; + /** + * Add several fade colors to the firework effect. + */ + // @ts-ignore + public withFade(colors: java.lang.Iterable): org.bukkit.FireworkEffect.Builder; + /** + * Create a {@link FireworkEffect} from the current contents of this + * builder. + *

+ * To successfully build, you must have specified at least one color. + */ + // @ts-ignore + public build(): org.bukkit.FireworkEffect; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.FireworkEffect.Type.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.FireworkEffect.Type.d.ts new file mode 100644 index 00000000..2269ffc1 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.FireworkEffect.Type.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace FireworkEffect { + // @ts-ignore + class Type extends java.lang.Enum { + // @ts-ignore + public static BALL: org.bukkit.FireworkEffect.Type; + // @ts-ignore + public static BALL_LARGE: org.bukkit.FireworkEffect.Type; + // @ts-ignore + public static STAR: org.bukkit.FireworkEffect.Type; + // @ts-ignore + public static BURST: org.bukkit.FireworkEffect.Type; + // @ts-ignore + public static CREEPER: org.bukkit.FireworkEffect.Type; + // @ts-ignore + public static values(): org.bukkit.FireworkEffect.Type[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.FireworkEffect.Type; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.FireworkEffect.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.FireworkEffect.d.ts new file mode 100644 index 00000000..473acf74 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.FireworkEffect.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class FireworkEffect extends java.lang.Object implements org.bukkit.configuration.serialization.ConfigurationSerializable { + /** + * Construct a firework effect. + */ + // @ts-ignore + public static builder(): org.bukkit.FireworkEffect.Builder; + /** + * Get whether the firework effect flickers. + */ + // @ts-ignore + public hasFlicker(): boolean; + /** + * Get whether the firework effect has a trail. + */ + // @ts-ignore + public hasTrail(): boolean; + /** + * Get the primary colors of the firework effect. + */ + // @ts-ignore + public getColors(): java.util.List; + /** + * Get the fade colors of the firework effect. + */ + // @ts-ignore + public getFadeColors(): java.util.List; + /** + * Get the type of the firework effect. + */ + // @ts-ignore + public getType(): org.bukkit.FireworkEffect.Type; + // @ts-ignore + public static deserialize(map: java.util.Map): org.bukkit.configuration.serialization.ConfigurationSerializable; + // @ts-ignore + public serialize(): java.util.Map; + // @ts-ignore + public toString(): string; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.FluidCollisionMode.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.FluidCollisionMode.d.ts new file mode 100644 index 00000000..a6c54636 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.FluidCollisionMode.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class FluidCollisionMode extends java.lang.Enum { + // @ts-ignore + public static NEVER: org.bukkit.FluidCollisionMode; + // @ts-ignore + public static SOURCE_ONLY: org.bukkit.FluidCollisionMode; + // @ts-ignore + public static ALWAYS: org.bukkit.FluidCollisionMode; + // @ts-ignore + public static values(): org.bukkit.FluidCollisionMode[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.FluidCollisionMode; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.GameMode.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.GameMode.d.ts new file mode 100644 index 00000000..707f83ab --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.GameMode.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class GameMode extends java.lang.Enum { + // @ts-ignore + public static CREATIVE: org.bukkit.GameMode; + // @ts-ignore + public static SURVIVAL: org.bukkit.GameMode; + // @ts-ignore + public static ADVENTURE: org.bukkit.GameMode; + // @ts-ignore + public static SPECTATOR: org.bukkit.GameMode; + // @ts-ignore + public static values(): org.bukkit.GameMode[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.GameMode; + /** + * Gets the mode value associated with this GameMode + */ + // @ts-ignore + public getValue(): number; + /** + * Gets the GameMode represented by the specified value + */ + // @ts-ignore + public static getByValue(value: number): org.bukkit.GameMode; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.GameRule.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.GameRule.d.ts new file mode 100644 index 00000000..c79131c4 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.GameRule.d.ts @@ -0,0 +1,80 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class GameRule extends java.lang.Object { + // @ts-ignore + public static ANNOUNCE_ADVANCEMENTS: org.bukkit.GameRule; + // @ts-ignore + public static COMMAND_BLOCK_OUTPUT: org.bukkit.GameRule; + // @ts-ignore + public static DISABLE_ELYTRA_MOVEMENT_CHECK: org.bukkit.GameRule; + // @ts-ignore + public static DO_DAYLIGHT_CYCLE: org.bukkit.GameRule; + // @ts-ignore + public static DO_ENTITY_DROPS: org.bukkit.GameRule; + // @ts-ignore + public static DO_FIRE_TICK: org.bukkit.GameRule; + // @ts-ignore + public static DO_LIMITED_CRAFTING: org.bukkit.GameRule; + // @ts-ignore + public static DO_MOB_LOOT: org.bukkit.GameRule; + // @ts-ignore + public static DO_MOB_SPAWNING: org.bukkit.GameRule; + // @ts-ignore + public static DO_TILE_DROPS: org.bukkit.GameRule; + // @ts-ignore + public static DO_WEATHER_CYCLE: org.bukkit.GameRule; + // @ts-ignore + public static KEEP_INVENTORY: org.bukkit.GameRule; + // @ts-ignore + public static LOG_ADMIN_COMMANDS: org.bukkit.GameRule; + // @ts-ignore + public static MOB_GRIEFING: org.bukkit.GameRule; + // @ts-ignore + public static NATURAL_REGENERATION: org.bukkit.GameRule; + // @ts-ignore + public static REDUCED_DEBUG_INFO: org.bukkit.GameRule; + // @ts-ignore + public static SEND_COMMAND_FEEDBACK: org.bukkit.GameRule; + // @ts-ignore + public static SHOW_DEATH_MESSAGES: org.bukkit.GameRule; + // @ts-ignore + public static SPECTATORS_GENERATE_CHUNKS: org.bukkit.GameRule; + // @ts-ignore + public static DISABLE_RAIDS: org.bukkit.GameRule; + // @ts-ignore + public static RANDOM_TICK_SPEED: org.bukkit.GameRule; + // @ts-ignore + public static SPAWN_RADIUS: org.bukkit.GameRule; + // @ts-ignore + public static MAX_ENTITY_CRAMMING: org.bukkit.GameRule; + // @ts-ignore + public static MAX_COMMAND_CHAIN_LENGTH: org.bukkit.GameRule; + /** + * Get the name of this GameRule. + */ + // @ts-ignore + public getName(): string; + /** + * Get the type of this rule. + */ + // @ts-ignore + public getType(): java.lang.Class; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public toString(): string; + /** + * Get a {@link GameRule} by its name. + */ + // @ts-ignore + public static getByName(rule: string): org.bukkit.GameRule; + /** + * Get an immutable collection of {@link GameRule}s. + */ + // @ts-ignore + public static values(): org.bukkit.GameRule[]; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.GrassSpecies.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.GrassSpecies.d.ts new file mode 100644 index 00000000..c106b529 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.GrassSpecies.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class GrassSpecies extends java.lang.Enum { + // @ts-ignore + public static DEAD: org.bukkit.GrassSpecies; + // @ts-ignore + public static NORMAL: org.bukkit.GrassSpecies; + // @ts-ignore + public static FERN_LIKE: org.bukkit.GrassSpecies; + // @ts-ignore + public static values(): org.bukkit.GrassSpecies[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.GrassSpecies; + /** + * Gets the associated data value representing this species + */ + // @ts-ignore + public getData(): number; + /** + * Gets the GrassSpecies with the given data value + */ + // @ts-ignore + public static getByData(data: number): org.bukkit.GrassSpecies; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.Instrument.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.Instrument.d.ts new file mode 100644 index 00000000..0dea9f64 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.Instrument.d.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class Instrument extends java.lang.Enum { + // @ts-ignore + public static PIANO: org.bukkit.Instrument; + // @ts-ignore + public static BASS_DRUM: org.bukkit.Instrument; + // @ts-ignore + public static SNARE_DRUM: org.bukkit.Instrument; + // @ts-ignore + public static STICKS: org.bukkit.Instrument; + // @ts-ignore + public static BASS_GUITAR: org.bukkit.Instrument; + // @ts-ignore + public static FLUTE: org.bukkit.Instrument; + // @ts-ignore + public static BELL: org.bukkit.Instrument; + // @ts-ignore + public static GUITAR: org.bukkit.Instrument; + // @ts-ignore + public static CHIME: org.bukkit.Instrument; + // @ts-ignore + public static XYLOPHONE: org.bukkit.Instrument; + // @ts-ignore + public static IRON_XYLOPHONE: org.bukkit.Instrument; + // @ts-ignore + public static COW_BELL: org.bukkit.Instrument; + // @ts-ignore + public static DIDGERIDOO: org.bukkit.Instrument; + // @ts-ignore + public static BIT: org.bukkit.Instrument; + // @ts-ignore + public static BANJO: org.bukkit.Instrument; + // @ts-ignore + public static PLING: org.bukkit.Instrument; + // @ts-ignore + public static values(): org.bukkit.Instrument[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.Instrument; + // @ts-ignore + public getType(): number; + /** + * Get an instrument by its type ID. + */ + // @ts-ignore + public static getByType(type: number): org.bukkit.Instrument; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.Keyed.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.Keyed.d.ts new file mode 100644 index 00000000..ca1524a9 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.Keyed.d.ts @@ -0,0 +1,13 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + interface Keyed { + /** + * Return the namespaced identifier for this object. + */ + // @ts-ignore + getKey(): org.bukkit.NamespacedKey; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.Location.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.Location.d.ts new file mode 100644 index 00000000..05a3405d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.Location.d.ts @@ -0,0 +1,270 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class Location extends java.lang.Object implements org.bukkit.configuration.serialization.ConfigurationSerializable { + /** + * Constructs a new Location with the given coordinates + */ + // @ts-ignore + constructor(world: org.bukkit.World, x: number, y: number, z: number) + /** + * Constructs a new Location with the given coordinates and direction + */ + // @ts-ignore + constructor(world: org.bukkit.World, x: number, y: number, z: number, yaw: number, pitch: number) + /** + * Sets the world that this location resides in + */ + // @ts-ignore + public setWorld(world: org.bukkit.World): void; + /** + * Checks if world in this location is present and loaded. + */ + // @ts-ignore + public isWorldLoaded(): boolean; + /** + * Gets the world that this location resides in + */ + // @ts-ignore + public getWorld(): org.bukkit.World; + /** + * Gets the chunk at the represented location + */ + // @ts-ignore + public getChunk(): org.bukkit.Chunk; + /** + * Gets the block at the represented location + */ + // @ts-ignore + public getBlock(): org.bukkit.block.Block; + /** + * Sets the x-coordinate of this location + */ + // @ts-ignore + public setX(x: number): void; + /** + * Gets the x-coordinate of this location + */ + // @ts-ignore + public getX(): number; + /** + * Gets the floored value of the X component, indicating the block that + * this location is contained with. + */ + // @ts-ignore + public getBlockX(): number; + /** + * Sets the y-coordinate of this location + */ + // @ts-ignore + public setY(y: number): void; + /** + * Gets the y-coordinate of this location + */ + // @ts-ignore + public getY(): number; + /** + * Gets the floored value of the Y component, indicating the block that + * this location is contained with. + */ + // @ts-ignore + public getBlockY(): number; + /** + * Sets the z-coordinate of this location + */ + // @ts-ignore + public setZ(z: number): void; + /** + * Gets the z-coordinate of this location + */ + // @ts-ignore + public getZ(): number; + /** + * Gets the floored value of the Z component, indicating the block that + * this location is contained with. + */ + // @ts-ignore + public getBlockZ(): number; + /** + * Sets the yaw of this location, measured in degrees. + *

    + *
  • A yaw of 0 or 360 represents the positive z direction. + *
  • A yaw of 180 represents the negative z direction. + *
  • A yaw of 90 represents the negative x direction. + *
  • A yaw of 270 represents the positive x direction. + *
+ * Increasing yaw values are the equivalent of turning to your + * right-facing, increasing the scale of the next respective axis, and + * decreasing the scale of the previous axis. + */ + // @ts-ignore + public setYaw(yaw: number): void; + /** + * Gets the yaw of this location, measured in degrees. + *
    + *
  • A yaw of 0 or 360 represents the positive z direction. + *
  • A yaw of 180 represents the negative z direction. + *
  • A yaw of 90 represents the negative x direction. + *
  • A yaw of 270 represents the positive x direction. + *
+ * Increasing yaw values are the equivalent of turning to your + * right-facing, increasing the scale of the next respective axis, and + * decreasing the scale of the previous axis. + */ + // @ts-ignore + public getYaw(): number; + /** + * Sets the pitch of this location, measured in degrees. + *
    + *
  • A pitch of 0 represents level forward facing. + *
  • A pitch of 90 represents downward facing, or negative y + * direction. + *
  • A pitch of -90 represents upward facing, or positive y direction. + *
+ * Increasing pitch values the equivalent of looking down. + */ + // @ts-ignore + public setPitch(pitch: number): void; + /** + * Gets the pitch of this location, measured in degrees. + *
    + *
  • A pitch of 0 represents level forward facing. + *
  • A pitch of 90 represents downward facing, or negative y + * direction. + *
  • A pitch of -90 represents upward facing, or positive y direction. + *
+ * Increasing pitch values the equivalent of looking down. + */ + // @ts-ignore + public getPitch(): number; + /** + * Gets a unit-vector pointing in the direction that this Location is + * facing. + */ + // @ts-ignore + public getDirection(): org.bukkit.util.Vector; + /** + * Sets the {@link #getYaw() yaw} and {@link #getPitch() pitch} to point + * in the direction of the vector. + */ + // @ts-ignore + public setDirection(vector: org.bukkit.util.Vector): org.bukkit.Location; + /** + * Adds the location by another. + */ + // @ts-ignore + public add(vec: org.bukkit.Location): org.bukkit.Location; + /** + * Adds the location by a vector. + */ + // @ts-ignore + public add(vec: org.bukkit.util.Vector): org.bukkit.Location; + /** + * Adds the location by another. Not world-aware. + */ + // @ts-ignore + public add(x: number, y: number, z: number): org.bukkit.Location; + /** + * Subtracts the location by another. + */ + // @ts-ignore + public subtract(vec: org.bukkit.Location): org.bukkit.Location; + /** + * Subtracts the location by a vector. + */ + // @ts-ignore + public subtract(vec: org.bukkit.util.Vector): org.bukkit.Location; + /** + * Subtracts the location by another. Not world-aware and + * orientation independent. + */ + // @ts-ignore + public subtract(x: number, y: number, z: number): org.bukkit.Location; + /** + * Gets the magnitude of the location, defined as sqrt(x^2+y^2+z^2). The + * value of this method is not cached and uses a costly square-root + * function, so do not repeatedly call this method to get the location's + * magnitude. NaN will be returned if the inner result of the sqrt() + * function overflows, which will be caused if the length is too long. Not + * world-aware and orientation independent. + */ + // @ts-ignore + public length(): number; + /** + * Gets the magnitude of the location squared. Not world-aware and + * orientation independent. + */ + // @ts-ignore + public lengthSquared(): number; + /** + * Get the distance between this location and another. The value of this + * method is not cached and uses a costly square-root function, so do not + * repeatedly call this method to get the location's magnitude. NaN will + * be returned if the inner result of the sqrt() function overflows, which + * will be caused if the distance is too long. + */ + // @ts-ignore + public distance(o: org.bukkit.Location): number; + /** + * Get the squared distance between this location and another. + */ + // @ts-ignore + public distanceSquared(o: org.bukkit.Location): number; + /** + * Performs scalar multiplication, multiplying all components with a + * scalar. Not world-aware. + */ + // @ts-ignore + public multiply(m: number): org.bukkit.Location; + /** + * Zero this location's components. Not world-aware. + */ + // @ts-ignore + public zero(): org.bukkit.Location; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + /** + * Constructs a new {@link Vector} based on this Location + */ + // @ts-ignore + public toVector(): org.bukkit.util.Vector; + // @ts-ignore + public clone(): org.bukkit.Location; + /** + * Check if each component of this Location is finite. + */ + // @ts-ignore + public checkFinite(): void; + /** + * Safely converts a double (location coordinate) to an int (block + * coordinate) + */ + // @ts-ignore + public static locToBlock(loc: number): number; + // @ts-ignore + public serialize(): java.util.Map; + /** + * Required method for deserialization + */ + // @ts-ignore + public static deserialize(args: java.util.Map): org.bukkit.Location; + /** + * Normalizes the given yaw angle to a value between +/-180 + * degrees. + */ + // @ts-ignore + public static normalizeYaw(yaw: number): number; + /** + * Normalizes the given pitch angle to a value between +/-90 + * degrees. + */ + // @ts-ignore + public static normalizePitch(pitch: number): number; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.Material.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.Material.d.ts new file mode 100644 index 00000000..30fe186b --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.Material.d.ts @@ -0,0 +1,3045 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class Material extends java.lang.Enum implements org.bukkit.Keyed { + // @ts-ignore + public static ACACIA_BOAT: org.bukkit.Material; + // @ts-ignore + public static ACACIA_BUTTON: org.bukkit.Material; + // @ts-ignore + public static ACACIA_DOOR: org.bukkit.Material; + // @ts-ignore + public static ACACIA_FENCE: org.bukkit.Material; + // @ts-ignore + public static ACACIA_FENCE_GATE: org.bukkit.Material; + // @ts-ignore + public static ACACIA_LEAVES: org.bukkit.Material; + // @ts-ignore + public static ACACIA_LOG: org.bukkit.Material; + // @ts-ignore + public static ACACIA_PLANKS: org.bukkit.Material; + // @ts-ignore + public static ACACIA_PRESSURE_PLATE: org.bukkit.Material; + // @ts-ignore + public static ACACIA_SAPLING: org.bukkit.Material; + // @ts-ignore + public static ACACIA_SIGN: org.bukkit.Material; + // @ts-ignore + public static ACACIA_SLAB: org.bukkit.Material; + // @ts-ignore + public static ACACIA_STAIRS: org.bukkit.Material; + // @ts-ignore + public static ACACIA_TRAPDOOR: org.bukkit.Material; + // @ts-ignore + public static ACACIA_WALL_SIGN: org.bukkit.Material; + // @ts-ignore + public static ACACIA_WOOD: org.bukkit.Material; + // @ts-ignore + public static ACTIVATOR_RAIL: org.bukkit.Material; + // @ts-ignore + public static AIR: org.bukkit.Material; + // @ts-ignore + public static ALLIUM: org.bukkit.Material; + // @ts-ignore + public static ANDESITE: org.bukkit.Material; + // @ts-ignore + public static ANDESITE_SLAB: org.bukkit.Material; + // @ts-ignore + public static ANDESITE_STAIRS: org.bukkit.Material; + // @ts-ignore + public static ANDESITE_WALL: org.bukkit.Material; + // @ts-ignore + public static ANVIL: org.bukkit.Material; + // @ts-ignore + public static APPLE: org.bukkit.Material; + // @ts-ignore + public static ARMOR_STAND: org.bukkit.Material; + // @ts-ignore + public static ARROW: org.bukkit.Material; + // @ts-ignore + public static ATTACHED_MELON_STEM: org.bukkit.Material; + // @ts-ignore + public static ATTACHED_PUMPKIN_STEM: org.bukkit.Material; + // @ts-ignore + public static AZURE_BLUET: org.bukkit.Material; + // @ts-ignore + public static BAKED_POTATO: org.bukkit.Material; + // @ts-ignore + public static BAMBOO: org.bukkit.Material; + // @ts-ignore + public static BAMBOO_SAPLING: org.bukkit.Material; + // @ts-ignore + public static BARREL: org.bukkit.Material; + // @ts-ignore + public static BARRIER: org.bukkit.Material; + // @ts-ignore + public static BAT_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static BEACON: org.bukkit.Material; + // @ts-ignore + public static BEDROCK: org.bukkit.Material; + // @ts-ignore + public static BEEF: org.bukkit.Material; + // @ts-ignore + public static BEETROOT: org.bukkit.Material; + // @ts-ignore + public static BEETROOTS: org.bukkit.Material; + // @ts-ignore + public static BEETROOT_SEEDS: org.bukkit.Material; + // @ts-ignore + public static BEETROOT_SOUP: org.bukkit.Material; + // @ts-ignore + public static BELL: org.bukkit.Material; + // @ts-ignore + public static BIRCH_BOAT: org.bukkit.Material; + // @ts-ignore + public static BIRCH_BUTTON: org.bukkit.Material; + // @ts-ignore + public static BIRCH_DOOR: org.bukkit.Material; + // @ts-ignore + public static BIRCH_FENCE: org.bukkit.Material; + // @ts-ignore + public static BIRCH_FENCE_GATE: org.bukkit.Material; + // @ts-ignore + public static BIRCH_LEAVES: org.bukkit.Material; + // @ts-ignore + public static BIRCH_LOG: org.bukkit.Material; + // @ts-ignore + public static BIRCH_PLANKS: org.bukkit.Material; + // @ts-ignore + public static BIRCH_PRESSURE_PLATE: org.bukkit.Material; + // @ts-ignore + public static BIRCH_SAPLING: org.bukkit.Material; + // @ts-ignore + public static BIRCH_SIGN: org.bukkit.Material; + // @ts-ignore + public static BIRCH_SLAB: org.bukkit.Material; + // @ts-ignore + public static BIRCH_STAIRS: org.bukkit.Material; + // @ts-ignore + public static BIRCH_TRAPDOOR: org.bukkit.Material; + // @ts-ignore + public static BIRCH_WALL_SIGN: org.bukkit.Material; + // @ts-ignore + public static BIRCH_WOOD: org.bukkit.Material; + // @ts-ignore + public static BLACK_BANNER: org.bukkit.Material; + // @ts-ignore + public static BLACK_BED: org.bukkit.Material; + // @ts-ignore + public static BLACK_CARPET: org.bukkit.Material; + // @ts-ignore + public static BLACK_CONCRETE: org.bukkit.Material; + // @ts-ignore + public static BLACK_CONCRETE_POWDER: org.bukkit.Material; + // @ts-ignore + public static BLACK_DYE: org.bukkit.Material; + // @ts-ignore + public static BLACK_GLAZED_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static BLACK_SHULKER_BOX: org.bukkit.Material; + // @ts-ignore + public static BLACK_STAINED_GLASS: org.bukkit.Material; + // @ts-ignore + public static BLACK_STAINED_GLASS_PANE: org.bukkit.Material; + // @ts-ignore + public static BLACK_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static BLACK_WALL_BANNER: org.bukkit.Material; + // @ts-ignore + public static BLACK_WOOL: org.bukkit.Material; + // @ts-ignore + public static BLAST_FURNACE: org.bukkit.Material; + // @ts-ignore + public static BLAZE_POWDER: org.bukkit.Material; + // @ts-ignore + public static BLAZE_ROD: org.bukkit.Material; + // @ts-ignore + public static BLAZE_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static BLUE_BANNER: org.bukkit.Material; + // @ts-ignore + public static BLUE_BED: org.bukkit.Material; + // @ts-ignore + public static BLUE_CARPET: org.bukkit.Material; + // @ts-ignore + public static BLUE_CONCRETE: org.bukkit.Material; + // @ts-ignore + public static BLUE_CONCRETE_POWDER: org.bukkit.Material; + // @ts-ignore + public static BLUE_DYE: org.bukkit.Material; + // @ts-ignore + public static BLUE_GLAZED_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static BLUE_ICE: org.bukkit.Material; + // @ts-ignore + public static BLUE_ORCHID: org.bukkit.Material; + // @ts-ignore + public static BLUE_SHULKER_BOX: org.bukkit.Material; + // @ts-ignore + public static BLUE_STAINED_GLASS: org.bukkit.Material; + // @ts-ignore + public static BLUE_STAINED_GLASS_PANE: org.bukkit.Material; + // @ts-ignore + public static BLUE_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static BLUE_WALL_BANNER: org.bukkit.Material; + // @ts-ignore + public static BLUE_WOOL: org.bukkit.Material; + // @ts-ignore + public static BONE: org.bukkit.Material; + // @ts-ignore + public static BONE_BLOCK: org.bukkit.Material; + // @ts-ignore + public static BONE_MEAL: org.bukkit.Material; + // @ts-ignore + public static BOOK: org.bukkit.Material; + // @ts-ignore + public static BOOKSHELF: org.bukkit.Material; + // @ts-ignore + public static BOW: org.bukkit.Material; + // @ts-ignore + public static BOWL: org.bukkit.Material; + // @ts-ignore + public static BRAIN_CORAL: org.bukkit.Material; + // @ts-ignore + public static BRAIN_CORAL_BLOCK: org.bukkit.Material; + // @ts-ignore + public static BRAIN_CORAL_FAN: org.bukkit.Material; + // @ts-ignore + public static BRAIN_CORAL_WALL_FAN: org.bukkit.Material; + // @ts-ignore + public static BREAD: org.bukkit.Material; + // @ts-ignore + public static BREWING_STAND: org.bukkit.Material; + // @ts-ignore + public static BRICK: org.bukkit.Material; + // @ts-ignore + public static BRICKS: org.bukkit.Material; + // @ts-ignore + public static BRICK_SLAB: org.bukkit.Material; + // @ts-ignore + public static BRICK_STAIRS: org.bukkit.Material; + // @ts-ignore + public static BRICK_WALL: org.bukkit.Material; + // @ts-ignore + public static BROWN_BANNER: org.bukkit.Material; + // @ts-ignore + public static BROWN_BED: org.bukkit.Material; + // @ts-ignore + public static BROWN_CARPET: org.bukkit.Material; + // @ts-ignore + public static BROWN_CONCRETE: org.bukkit.Material; + // @ts-ignore + public static BROWN_CONCRETE_POWDER: org.bukkit.Material; + // @ts-ignore + public static BROWN_DYE: org.bukkit.Material; + // @ts-ignore + public static BROWN_GLAZED_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static BROWN_MUSHROOM: org.bukkit.Material; + // @ts-ignore + public static BROWN_MUSHROOM_BLOCK: org.bukkit.Material; + // @ts-ignore + public static BROWN_SHULKER_BOX: org.bukkit.Material; + // @ts-ignore + public static BROWN_STAINED_GLASS: org.bukkit.Material; + // @ts-ignore + public static BROWN_STAINED_GLASS_PANE: org.bukkit.Material; + // @ts-ignore + public static BROWN_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static BROWN_WALL_BANNER: org.bukkit.Material; + // @ts-ignore + public static BROWN_WOOL: org.bukkit.Material; + // @ts-ignore + public static BUBBLE_COLUMN: org.bukkit.Material; + // @ts-ignore + public static BUBBLE_CORAL: org.bukkit.Material; + // @ts-ignore + public static BUBBLE_CORAL_BLOCK: org.bukkit.Material; + // @ts-ignore + public static BUBBLE_CORAL_FAN: org.bukkit.Material; + // @ts-ignore + public static BUBBLE_CORAL_WALL_FAN: org.bukkit.Material; + // @ts-ignore + public static BUCKET: org.bukkit.Material; + // @ts-ignore + public static CACTUS: org.bukkit.Material; + // @ts-ignore + public static CAKE: org.bukkit.Material; + // @ts-ignore + public static CAMPFIRE: org.bukkit.Material; + // @ts-ignore + public static CARROT: org.bukkit.Material; + // @ts-ignore + public static CARROTS: org.bukkit.Material; + // @ts-ignore + public static CARROT_ON_A_STICK: org.bukkit.Material; + // @ts-ignore + public static CARTOGRAPHY_TABLE: org.bukkit.Material; + // @ts-ignore + public static CARVED_PUMPKIN: org.bukkit.Material; + // @ts-ignore + public static CAT_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static CAULDRON: org.bukkit.Material; + // @ts-ignore + public static CAVE_AIR: org.bukkit.Material; + // @ts-ignore + public static CAVE_SPIDER_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static CHAINMAIL_BOOTS: org.bukkit.Material; + // @ts-ignore + public static CHAINMAIL_CHESTPLATE: org.bukkit.Material; + // @ts-ignore + public static CHAINMAIL_HELMET: org.bukkit.Material; + // @ts-ignore + public static CHAINMAIL_LEGGINGS: org.bukkit.Material; + // @ts-ignore + public static CHAIN_COMMAND_BLOCK: org.bukkit.Material; + // @ts-ignore + public static CHARCOAL: org.bukkit.Material; + // @ts-ignore + public static CHEST: org.bukkit.Material; + // @ts-ignore + public static CHEST_MINECART: org.bukkit.Material; + // @ts-ignore + public static CHICKEN: org.bukkit.Material; + // @ts-ignore + public static CHICKEN_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static CHIPPED_ANVIL: org.bukkit.Material; + // @ts-ignore + public static CHISELED_QUARTZ_BLOCK: org.bukkit.Material; + // @ts-ignore + public static CHISELED_RED_SANDSTONE: org.bukkit.Material; + // @ts-ignore + public static CHISELED_SANDSTONE: org.bukkit.Material; + // @ts-ignore + public static CHISELED_STONE_BRICKS: org.bukkit.Material; + // @ts-ignore + public static CHORUS_FLOWER: org.bukkit.Material; + // @ts-ignore + public static CHORUS_FRUIT: org.bukkit.Material; + // @ts-ignore + public static CHORUS_PLANT: org.bukkit.Material; + // @ts-ignore + public static CLAY: org.bukkit.Material; + // @ts-ignore + public static CLAY_BALL: org.bukkit.Material; + // @ts-ignore + public static CLOCK: org.bukkit.Material; + // @ts-ignore + public static COAL: org.bukkit.Material; + // @ts-ignore + public static COAL_BLOCK: org.bukkit.Material; + // @ts-ignore + public static COAL_ORE: org.bukkit.Material; + // @ts-ignore + public static COARSE_DIRT: org.bukkit.Material; + // @ts-ignore + public static COBBLESTONE: org.bukkit.Material; + // @ts-ignore + public static COBBLESTONE_SLAB: org.bukkit.Material; + // @ts-ignore + public static COBBLESTONE_STAIRS: org.bukkit.Material; + // @ts-ignore + public static COBBLESTONE_WALL: org.bukkit.Material; + // @ts-ignore + public static COBWEB: org.bukkit.Material; + // @ts-ignore + public static COCOA: org.bukkit.Material; + // @ts-ignore + public static COCOA_BEANS: org.bukkit.Material; + // @ts-ignore + public static COD: org.bukkit.Material; + // @ts-ignore + public static COD_BUCKET: org.bukkit.Material; + // @ts-ignore + public static COD_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static COMMAND_BLOCK: org.bukkit.Material; + // @ts-ignore + public static COMMAND_BLOCK_MINECART: org.bukkit.Material; + // @ts-ignore + public static COMPARATOR: org.bukkit.Material; + // @ts-ignore + public static COMPASS: org.bukkit.Material; + // @ts-ignore + public static COMPOSTER: org.bukkit.Material; + // @ts-ignore + public static CONDUIT: org.bukkit.Material; + // @ts-ignore + public static COOKED_BEEF: org.bukkit.Material; + // @ts-ignore + public static COOKED_CHICKEN: org.bukkit.Material; + // @ts-ignore + public static COOKED_COD: org.bukkit.Material; + // @ts-ignore + public static COOKED_MUTTON: org.bukkit.Material; + // @ts-ignore + public static COOKED_PORKCHOP: org.bukkit.Material; + // @ts-ignore + public static COOKED_RABBIT: org.bukkit.Material; + // @ts-ignore + public static COOKED_SALMON: org.bukkit.Material; + // @ts-ignore + public static COOKIE: org.bukkit.Material; + // @ts-ignore + public static CORNFLOWER: org.bukkit.Material; + // @ts-ignore + public static COW_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static CRACKED_STONE_BRICKS: org.bukkit.Material; + // @ts-ignore + public static CRAFTING_TABLE: org.bukkit.Material; + // @ts-ignore + public static CREEPER_BANNER_PATTERN: org.bukkit.Material; + // @ts-ignore + public static CREEPER_HEAD: org.bukkit.Material; + // @ts-ignore + public static CREEPER_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static CREEPER_WALL_HEAD: org.bukkit.Material; + // @ts-ignore + public static CROSSBOW: org.bukkit.Material; + // @ts-ignore + public static CUT_RED_SANDSTONE: org.bukkit.Material; + // @ts-ignore + public static CUT_RED_SANDSTONE_SLAB: org.bukkit.Material; + // @ts-ignore + public static CUT_SANDSTONE: org.bukkit.Material; + // @ts-ignore + public static CUT_SANDSTONE_SLAB: org.bukkit.Material; + // @ts-ignore + public static CYAN_BANNER: org.bukkit.Material; + // @ts-ignore + public static CYAN_BED: org.bukkit.Material; + // @ts-ignore + public static CYAN_CARPET: org.bukkit.Material; + // @ts-ignore + public static CYAN_CONCRETE: org.bukkit.Material; + // @ts-ignore + public static CYAN_CONCRETE_POWDER: org.bukkit.Material; + // @ts-ignore + public static CYAN_DYE: org.bukkit.Material; + // @ts-ignore + public static CYAN_GLAZED_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static CYAN_SHULKER_BOX: org.bukkit.Material; + // @ts-ignore + public static CYAN_STAINED_GLASS: org.bukkit.Material; + // @ts-ignore + public static CYAN_STAINED_GLASS_PANE: org.bukkit.Material; + // @ts-ignore + public static CYAN_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static CYAN_WALL_BANNER: org.bukkit.Material; + // @ts-ignore + public static CYAN_WOOL: org.bukkit.Material; + // @ts-ignore + public static DAMAGED_ANVIL: org.bukkit.Material; + // @ts-ignore + public static DANDELION: org.bukkit.Material; + // @ts-ignore + public static DARK_OAK_BOAT: org.bukkit.Material; + // @ts-ignore + public static DARK_OAK_BUTTON: org.bukkit.Material; + // @ts-ignore + public static DARK_OAK_DOOR: org.bukkit.Material; + // @ts-ignore + public static DARK_OAK_FENCE: org.bukkit.Material; + // @ts-ignore + public static DARK_OAK_FENCE_GATE: org.bukkit.Material; + // @ts-ignore + public static DARK_OAK_LEAVES: org.bukkit.Material; + // @ts-ignore + public static DARK_OAK_LOG: org.bukkit.Material; + // @ts-ignore + public static DARK_OAK_PLANKS: org.bukkit.Material; + // @ts-ignore + public static DARK_OAK_PRESSURE_PLATE: org.bukkit.Material; + // @ts-ignore + public static DARK_OAK_SAPLING: org.bukkit.Material; + // @ts-ignore + public static DARK_OAK_SIGN: org.bukkit.Material; + // @ts-ignore + public static DARK_OAK_SLAB: org.bukkit.Material; + // @ts-ignore + public static DARK_OAK_STAIRS: org.bukkit.Material; + // @ts-ignore + public static DARK_OAK_TRAPDOOR: org.bukkit.Material; + // @ts-ignore + public static DARK_OAK_WALL_SIGN: org.bukkit.Material; + // @ts-ignore + public static DARK_OAK_WOOD: org.bukkit.Material; + // @ts-ignore + public static DARK_PRISMARINE: org.bukkit.Material; + // @ts-ignore + public static DARK_PRISMARINE_SLAB: org.bukkit.Material; + // @ts-ignore + public static DARK_PRISMARINE_STAIRS: org.bukkit.Material; + // @ts-ignore + public static DAYLIGHT_DETECTOR: org.bukkit.Material; + // @ts-ignore + public static DEAD_BRAIN_CORAL: org.bukkit.Material; + // @ts-ignore + public static DEAD_BRAIN_CORAL_BLOCK: org.bukkit.Material; + // @ts-ignore + public static DEAD_BRAIN_CORAL_FAN: org.bukkit.Material; + // @ts-ignore + public static DEAD_BRAIN_CORAL_WALL_FAN: org.bukkit.Material; + // @ts-ignore + public static DEAD_BUBBLE_CORAL: org.bukkit.Material; + // @ts-ignore + public static DEAD_BUBBLE_CORAL_BLOCK: org.bukkit.Material; + // @ts-ignore + public static DEAD_BUBBLE_CORAL_FAN: org.bukkit.Material; + // @ts-ignore + public static DEAD_BUBBLE_CORAL_WALL_FAN: org.bukkit.Material; + // @ts-ignore + public static DEAD_BUSH: org.bukkit.Material; + // @ts-ignore + public static DEAD_FIRE_CORAL: org.bukkit.Material; + // @ts-ignore + public static DEAD_FIRE_CORAL_BLOCK: org.bukkit.Material; + // @ts-ignore + public static DEAD_FIRE_CORAL_FAN: org.bukkit.Material; + // @ts-ignore + public static DEAD_FIRE_CORAL_WALL_FAN: org.bukkit.Material; + // @ts-ignore + public static DEAD_HORN_CORAL: org.bukkit.Material; + // @ts-ignore + public static DEAD_HORN_CORAL_BLOCK: org.bukkit.Material; + // @ts-ignore + public static DEAD_HORN_CORAL_FAN: org.bukkit.Material; + // @ts-ignore + public static DEAD_HORN_CORAL_WALL_FAN: org.bukkit.Material; + // @ts-ignore + public static DEAD_TUBE_CORAL: org.bukkit.Material; + // @ts-ignore + public static DEAD_TUBE_CORAL_BLOCK: org.bukkit.Material; + // @ts-ignore + public static DEAD_TUBE_CORAL_FAN: org.bukkit.Material; + // @ts-ignore + public static DEAD_TUBE_CORAL_WALL_FAN: org.bukkit.Material; + // @ts-ignore + public static DEBUG_STICK: org.bukkit.Material; + // @ts-ignore + public static DETECTOR_RAIL: org.bukkit.Material; + // @ts-ignore + public static DIAMOND: org.bukkit.Material; + // @ts-ignore + public static DIAMOND_AXE: org.bukkit.Material; + // @ts-ignore + public static DIAMOND_BLOCK: org.bukkit.Material; + // @ts-ignore + public static DIAMOND_BOOTS: org.bukkit.Material; + // @ts-ignore + public static DIAMOND_CHESTPLATE: org.bukkit.Material; + // @ts-ignore + public static DIAMOND_HELMET: org.bukkit.Material; + // @ts-ignore + public static DIAMOND_HOE: org.bukkit.Material; + // @ts-ignore + public static DIAMOND_HORSE_ARMOR: org.bukkit.Material; + // @ts-ignore + public static DIAMOND_LEGGINGS: org.bukkit.Material; + // @ts-ignore + public static DIAMOND_ORE: org.bukkit.Material; + // @ts-ignore + public static DIAMOND_PICKAXE: org.bukkit.Material; + // @ts-ignore + public static DIAMOND_SHOVEL: org.bukkit.Material; + // @ts-ignore + public static DIAMOND_SWORD: org.bukkit.Material; + // @ts-ignore + public static DIORITE: org.bukkit.Material; + // @ts-ignore + public static DIORITE_SLAB: org.bukkit.Material; + // @ts-ignore + public static DIORITE_STAIRS: org.bukkit.Material; + // @ts-ignore + public static DIORITE_WALL: org.bukkit.Material; + // @ts-ignore + public static DIRT: org.bukkit.Material; + // @ts-ignore + public static DISPENSER: org.bukkit.Material; + // @ts-ignore + public static DOLPHIN_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static DONKEY_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static DRAGON_BREATH: org.bukkit.Material; + // @ts-ignore + public static DRAGON_EGG: org.bukkit.Material; + // @ts-ignore + public static DRAGON_HEAD: org.bukkit.Material; + // @ts-ignore + public static DRAGON_WALL_HEAD: org.bukkit.Material; + // @ts-ignore + public static DRIED_KELP: org.bukkit.Material; + // @ts-ignore + public static DRIED_KELP_BLOCK: org.bukkit.Material; + // @ts-ignore + public static DROPPER: org.bukkit.Material; + // @ts-ignore + public static DROWNED_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static EGG: org.bukkit.Material; + // @ts-ignore + public static ELDER_GUARDIAN_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static ELYTRA: org.bukkit.Material; + // @ts-ignore + public static EMERALD: org.bukkit.Material; + // @ts-ignore + public static EMERALD_BLOCK: org.bukkit.Material; + // @ts-ignore + public static EMERALD_ORE: org.bukkit.Material; + // @ts-ignore + public static ENCHANTED_BOOK: org.bukkit.Material; + // @ts-ignore + public static ENCHANTED_GOLDEN_APPLE: org.bukkit.Material; + // @ts-ignore + public static ENCHANTING_TABLE: org.bukkit.Material; + // @ts-ignore + public static ENDERMAN_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static ENDERMITE_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static ENDER_CHEST: org.bukkit.Material; + // @ts-ignore + public static ENDER_EYE: org.bukkit.Material; + // @ts-ignore + public static ENDER_PEARL: org.bukkit.Material; + // @ts-ignore + public static END_CRYSTAL: org.bukkit.Material; + // @ts-ignore + public static END_GATEWAY: org.bukkit.Material; + // @ts-ignore + public static END_PORTAL: org.bukkit.Material; + // @ts-ignore + public static END_PORTAL_FRAME: org.bukkit.Material; + // @ts-ignore + public static END_ROD: org.bukkit.Material; + // @ts-ignore + public static END_STONE: org.bukkit.Material; + // @ts-ignore + public static END_STONE_BRICKS: org.bukkit.Material; + // @ts-ignore + public static END_STONE_BRICK_SLAB: org.bukkit.Material; + // @ts-ignore + public static END_STONE_BRICK_STAIRS: org.bukkit.Material; + // @ts-ignore + public static END_STONE_BRICK_WALL: org.bukkit.Material; + // @ts-ignore + public static EVOKER_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static EXPERIENCE_BOTTLE: org.bukkit.Material; + // @ts-ignore + public static FARMLAND: org.bukkit.Material; + // @ts-ignore + public static FEATHER: org.bukkit.Material; + // @ts-ignore + public static FERMENTED_SPIDER_EYE: org.bukkit.Material; + // @ts-ignore + public static FERN: org.bukkit.Material; + // @ts-ignore + public static FILLED_MAP: org.bukkit.Material; + // @ts-ignore + public static FIRE: org.bukkit.Material; + // @ts-ignore + public static FIREWORK_ROCKET: org.bukkit.Material; + // @ts-ignore + public static FIREWORK_STAR: org.bukkit.Material; + // @ts-ignore + public static FIRE_CHARGE: org.bukkit.Material; + // @ts-ignore + public static FIRE_CORAL: org.bukkit.Material; + // @ts-ignore + public static FIRE_CORAL_BLOCK: org.bukkit.Material; + // @ts-ignore + public static FIRE_CORAL_FAN: org.bukkit.Material; + // @ts-ignore + public static FIRE_CORAL_WALL_FAN: org.bukkit.Material; + // @ts-ignore + public static FISHING_ROD: org.bukkit.Material; + // @ts-ignore + public static FLETCHING_TABLE: org.bukkit.Material; + // @ts-ignore + public static FLINT: org.bukkit.Material; + // @ts-ignore + public static FLINT_AND_STEEL: org.bukkit.Material; + // @ts-ignore + public static FLOWER_BANNER_PATTERN: org.bukkit.Material; + // @ts-ignore + public static FLOWER_POT: org.bukkit.Material; + // @ts-ignore + public static FOX_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static FROSTED_ICE: org.bukkit.Material; + // @ts-ignore + public static FURNACE: org.bukkit.Material; + // @ts-ignore + public static FURNACE_MINECART: org.bukkit.Material; + // @ts-ignore + public static GHAST_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static GHAST_TEAR: org.bukkit.Material; + // @ts-ignore + public static GLASS: org.bukkit.Material; + // @ts-ignore + public static GLASS_BOTTLE: org.bukkit.Material; + // @ts-ignore + public static GLASS_PANE: org.bukkit.Material; + // @ts-ignore + public static GLISTERING_MELON_SLICE: org.bukkit.Material; + // @ts-ignore + public static GLOBE_BANNER_PATTERN: org.bukkit.Material; + // @ts-ignore + public static GLOWSTONE: org.bukkit.Material; + // @ts-ignore + public static GLOWSTONE_DUST: org.bukkit.Material; + // @ts-ignore + public static GOLDEN_APPLE: org.bukkit.Material; + // @ts-ignore + public static GOLDEN_AXE: org.bukkit.Material; + // @ts-ignore + public static GOLDEN_BOOTS: org.bukkit.Material; + // @ts-ignore + public static GOLDEN_CARROT: org.bukkit.Material; + // @ts-ignore + public static GOLDEN_CHESTPLATE: org.bukkit.Material; + // @ts-ignore + public static GOLDEN_HELMET: org.bukkit.Material; + // @ts-ignore + public static GOLDEN_HOE: org.bukkit.Material; + // @ts-ignore + public static GOLDEN_HORSE_ARMOR: org.bukkit.Material; + // @ts-ignore + public static GOLDEN_LEGGINGS: org.bukkit.Material; + // @ts-ignore + public static GOLDEN_PICKAXE: org.bukkit.Material; + // @ts-ignore + public static GOLDEN_SHOVEL: org.bukkit.Material; + // @ts-ignore + public static GOLDEN_SWORD: org.bukkit.Material; + // @ts-ignore + public static GOLD_BLOCK: org.bukkit.Material; + // @ts-ignore + public static GOLD_INGOT: org.bukkit.Material; + // @ts-ignore + public static GOLD_NUGGET: org.bukkit.Material; + // @ts-ignore + public static GOLD_ORE: org.bukkit.Material; + // @ts-ignore + public static GRANITE: org.bukkit.Material; + // @ts-ignore + public static GRANITE_SLAB: org.bukkit.Material; + // @ts-ignore + public static GRANITE_STAIRS: org.bukkit.Material; + // @ts-ignore + public static GRANITE_WALL: org.bukkit.Material; + // @ts-ignore + public static GRASS: org.bukkit.Material; + // @ts-ignore + public static GRASS_BLOCK: org.bukkit.Material; + // @ts-ignore + public static GRASS_PATH: org.bukkit.Material; + // @ts-ignore + public static GRAVEL: org.bukkit.Material; + // @ts-ignore + public static GRAY_BANNER: org.bukkit.Material; + // @ts-ignore + public static GRAY_BED: org.bukkit.Material; + // @ts-ignore + public static GRAY_CARPET: org.bukkit.Material; + // @ts-ignore + public static GRAY_CONCRETE: org.bukkit.Material; + // @ts-ignore + public static GRAY_CONCRETE_POWDER: org.bukkit.Material; + // @ts-ignore + public static GRAY_DYE: org.bukkit.Material; + // @ts-ignore + public static GRAY_GLAZED_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static GRAY_SHULKER_BOX: org.bukkit.Material; + // @ts-ignore + public static GRAY_STAINED_GLASS: org.bukkit.Material; + // @ts-ignore + public static GRAY_STAINED_GLASS_PANE: org.bukkit.Material; + // @ts-ignore + public static GRAY_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static GRAY_WALL_BANNER: org.bukkit.Material; + // @ts-ignore + public static GRAY_WOOL: org.bukkit.Material; + // @ts-ignore + public static GREEN_BANNER: org.bukkit.Material; + // @ts-ignore + public static GREEN_BED: org.bukkit.Material; + // @ts-ignore + public static GREEN_CARPET: org.bukkit.Material; + // @ts-ignore + public static GREEN_CONCRETE: org.bukkit.Material; + // @ts-ignore + public static GREEN_CONCRETE_POWDER: org.bukkit.Material; + // @ts-ignore + public static GREEN_DYE: org.bukkit.Material; + // @ts-ignore + public static GREEN_GLAZED_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static GREEN_SHULKER_BOX: org.bukkit.Material; + // @ts-ignore + public static GREEN_STAINED_GLASS: org.bukkit.Material; + // @ts-ignore + public static GREEN_STAINED_GLASS_PANE: org.bukkit.Material; + // @ts-ignore + public static GREEN_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static GREEN_WALL_BANNER: org.bukkit.Material; + // @ts-ignore + public static GREEN_WOOL: org.bukkit.Material; + // @ts-ignore + public static GRINDSTONE: org.bukkit.Material; + // @ts-ignore + public static GUARDIAN_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static GUNPOWDER: org.bukkit.Material; + // @ts-ignore + public static HAY_BLOCK: org.bukkit.Material; + // @ts-ignore + public static HEART_OF_THE_SEA: org.bukkit.Material; + // @ts-ignore + public static HEAVY_WEIGHTED_PRESSURE_PLATE: org.bukkit.Material; + // @ts-ignore + public static HOPPER: org.bukkit.Material; + // @ts-ignore + public static HOPPER_MINECART: org.bukkit.Material; + // @ts-ignore + public static HORN_CORAL: org.bukkit.Material; + // @ts-ignore + public static HORN_CORAL_BLOCK: org.bukkit.Material; + // @ts-ignore + public static HORN_CORAL_FAN: org.bukkit.Material; + // @ts-ignore + public static HORN_CORAL_WALL_FAN: org.bukkit.Material; + // @ts-ignore + public static HORSE_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static HUSK_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static ICE: org.bukkit.Material; + // @ts-ignore + public static INFESTED_CHISELED_STONE_BRICKS: org.bukkit.Material; + // @ts-ignore + public static INFESTED_COBBLESTONE: org.bukkit.Material; + // @ts-ignore + public static INFESTED_CRACKED_STONE_BRICKS: org.bukkit.Material; + // @ts-ignore + public static INFESTED_MOSSY_STONE_BRICKS: org.bukkit.Material; + // @ts-ignore + public static INFESTED_STONE: org.bukkit.Material; + // @ts-ignore + public static INFESTED_STONE_BRICKS: org.bukkit.Material; + // @ts-ignore + public static INK_SAC: org.bukkit.Material; + // @ts-ignore + public static IRON_AXE: org.bukkit.Material; + // @ts-ignore + public static IRON_BARS: org.bukkit.Material; + // @ts-ignore + public static IRON_BLOCK: org.bukkit.Material; + // @ts-ignore + public static IRON_BOOTS: org.bukkit.Material; + // @ts-ignore + public static IRON_CHESTPLATE: org.bukkit.Material; + // @ts-ignore + public static IRON_DOOR: org.bukkit.Material; + // @ts-ignore + public static IRON_HELMET: org.bukkit.Material; + // @ts-ignore + public static IRON_HOE: org.bukkit.Material; + // @ts-ignore + public static IRON_HORSE_ARMOR: org.bukkit.Material; + // @ts-ignore + public static IRON_INGOT: org.bukkit.Material; + // @ts-ignore + public static IRON_LEGGINGS: org.bukkit.Material; + // @ts-ignore + public static IRON_NUGGET: org.bukkit.Material; + // @ts-ignore + public static IRON_ORE: org.bukkit.Material; + // @ts-ignore + public static IRON_PICKAXE: org.bukkit.Material; + // @ts-ignore + public static IRON_SHOVEL: org.bukkit.Material; + // @ts-ignore + public static IRON_SWORD: org.bukkit.Material; + // @ts-ignore + public static IRON_TRAPDOOR: org.bukkit.Material; + // @ts-ignore + public static ITEM_FRAME: org.bukkit.Material; + // @ts-ignore + public static JACK_O_LANTERN: org.bukkit.Material; + // @ts-ignore + public static JIGSAW: org.bukkit.Material; + // @ts-ignore + public static JUKEBOX: org.bukkit.Material; + // @ts-ignore + public static JUNGLE_BOAT: org.bukkit.Material; + // @ts-ignore + public static JUNGLE_BUTTON: org.bukkit.Material; + // @ts-ignore + public static JUNGLE_DOOR: org.bukkit.Material; + // @ts-ignore + public static JUNGLE_FENCE: org.bukkit.Material; + // @ts-ignore + public static JUNGLE_FENCE_GATE: org.bukkit.Material; + // @ts-ignore + public static JUNGLE_LEAVES: org.bukkit.Material; + // @ts-ignore + public static JUNGLE_LOG: org.bukkit.Material; + // @ts-ignore + public static JUNGLE_PLANKS: org.bukkit.Material; + // @ts-ignore + public static JUNGLE_PRESSURE_PLATE: org.bukkit.Material; + // @ts-ignore + public static JUNGLE_SAPLING: org.bukkit.Material; + // @ts-ignore + public static JUNGLE_SIGN: org.bukkit.Material; + // @ts-ignore + public static JUNGLE_SLAB: org.bukkit.Material; + // @ts-ignore + public static JUNGLE_STAIRS: org.bukkit.Material; + // @ts-ignore + public static JUNGLE_TRAPDOOR: org.bukkit.Material; + // @ts-ignore + public static JUNGLE_WALL_SIGN: org.bukkit.Material; + // @ts-ignore + public static JUNGLE_WOOD: org.bukkit.Material; + // @ts-ignore + public static KELP: org.bukkit.Material; + // @ts-ignore + public static KELP_PLANT: org.bukkit.Material; + // @ts-ignore + public static KNOWLEDGE_BOOK: org.bukkit.Material; + // @ts-ignore + public static LADDER: org.bukkit.Material; + // @ts-ignore + public static LANTERN: org.bukkit.Material; + // @ts-ignore + public static LAPIS_BLOCK: org.bukkit.Material; + // @ts-ignore + public static LAPIS_LAZULI: org.bukkit.Material; + // @ts-ignore + public static LAPIS_ORE: org.bukkit.Material; + // @ts-ignore + public static LARGE_FERN: org.bukkit.Material; + // @ts-ignore + public static LAVA: org.bukkit.Material; + // @ts-ignore + public static LAVA_BUCKET: org.bukkit.Material; + // @ts-ignore + public static LEAD: org.bukkit.Material; + // @ts-ignore + public static LEATHER: org.bukkit.Material; + // @ts-ignore + public static LEATHER_BOOTS: org.bukkit.Material; + // @ts-ignore + public static LEATHER_CHESTPLATE: org.bukkit.Material; + // @ts-ignore + public static LEATHER_HELMET: org.bukkit.Material; + // @ts-ignore + public static LEATHER_HORSE_ARMOR: org.bukkit.Material; + // @ts-ignore + public static LEATHER_LEGGINGS: org.bukkit.Material; + // @ts-ignore + public static LECTERN: org.bukkit.Material; + // @ts-ignore + public static LEVER: org.bukkit.Material; + // @ts-ignore + public static LIGHT_BLUE_BANNER: org.bukkit.Material; + // @ts-ignore + public static LIGHT_BLUE_BED: org.bukkit.Material; + // @ts-ignore + public static LIGHT_BLUE_CARPET: org.bukkit.Material; + // @ts-ignore + public static LIGHT_BLUE_CONCRETE: org.bukkit.Material; + // @ts-ignore + public static LIGHT_BLUE_CONCRETE_POWDER: org.bukkit.Material; + // @ts-ignore + public static LIGHT_BLUE_DYE: org.bukkit.Material; + // @ts-ignore + public static LIGHT_BLUE_GLAZED_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static LIGHT_BLUE_SHULKER_BOX: org.bukkit.Material; + // @ts-ignore + public static LIGHT_BLUE_STAINED_GLASS: org.bukkit.Material; + // @ts-ignore + public static LIGHT_BLUE_STAINED_GLASS_PANE: org.bukkit.Material; + // @ts-ignore + public static LIGHT_BLUE_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static LIGHT_BLUE_WALL_BANNER: org.bukkit.Material; + // @ts-ignore + public static LIGHT_BLUE_WOOL: org.bukkit.Material; + // @ts-ignore + public static LIGHT_GRAY_BANNER: org.bukkit.Material; + // @ts-ignore + public static LIGHT_GRAY_BED: org.bukkit.Material; + // @ts-ignore + public static LIGHT_GRAY_CARPET: org.bukkit.Material; + // @ts-ignore + public static LIGHT_GRAY_CONCRETE: org.bukkit.Material; + // @ts-ignore + public static LIGHT_GRAY_CONCRETE_POWDER: org.bukkit.Material; + // @ts-ignore + public static LIGHT_GRAY_DYE: org.bukkit.Material; + // @ts-ignore + public static LIGHT_GRAY_GLAZED_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static LIGHT_GRAY_SHULKER_BOX: org.bukkit.Material; + // @ts-ignore + public static LIGHT_GRAY_STAINED_GLASS: org.bukkit.Material; + // @ts-ignore + public static LIGHT_GRAY_STAINED_GLASS_PANE: org.bukkit.Material; + // @ts-ignore + public static LIGHT_GRAY_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static LIGHT_GRAY_WALL_BANNER: org.bukkit.Material; + // @ts-ignore + public static LIGHT_GRAY_WOOL: org.bukkit.Material; + // @ts-ignore + public static LIGHT_WEIGHTED_PRESSURE_PLATE: org.bukkit.Material; + // @ts-ignore + public static LILAC: org.bukkit.Material; + // @ts-ignore + public static LILY_OF_THE_VALLEY: org.bukkit.Material; + // @ts-ignore + public static LILY_PAD: org.bukkit.Material; + // @ts-ignore + public static LIME_BANNER: org.bukkit.Material; + // @ts-ignore + public static LIME_BED: org.bukkit.Material; + // @ts-ignore + public static LIME_CARPET: org.bukkit.Material; + // @ts-ignore + public static LIME_CONCRETE: org.bukkit.Material; + // @ts-ignore + public static LIME_CONCRETE_POWDER: org.bukkit.Material; + // @ts-ignore + public static LIME_DYE: org.bukkit.Material; + // @ts-ignore + public static LIME_GLAZED_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static LIME_SHULKER_BOX: org.bukkit.Material; + // @ts-ignore + public static LIME_STAINED_GLASS: org.bukkit.Material; + // @ts-ignore + public static LIME_STAINED_GLASS_PANE: org.bukkit.Material; + // @ts-ignore + public static LIME_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static LIME_WALL_BANNER: org.bukkit.Material; + // @ts-ignore + public static LIME_WOOL: org.bukkit.Material; + // @ts-ignore + public static LINGERING_POTION: org.bukkit.Material; + // @ts-ignore + public static LLAMA_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static LOOM: org.bukkit.Material; + // @ts-ignore + public static MAGENTA_BANNER: org.bukkit.Material; + // @ts-ignore + public static MAGENTA_BED: org.bukkit.Material; + // @ts-ignore + public static MAGENTA_CARPET: org.bukkit.Material; + // @ts-ignore + public static MAGENTA_CONCRETE: org.bukkit.Material; + // @ts-ignore + public static MAGENTA_CONCRETE_POWDER: org.bukkit.Material; + // @ts-ignore + public static MAGENTA_DYE: org.bukkit.Material; + // @ts-ignore + public static MAGENTA_GLAZED_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static MAGENTA_SHULKER_BOX: org.bukkit.Material; + // @ts-ignore + public static MAGENTA_STAINED_GLASS: org.bukkit.Material; + // @ts-ignore + public static MAGENTA_STAINED_GLASS_PANE: org.bukkit.Material; + // @ts-ignore + public static MAGENTA_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static MAGENTA_WALL_BANNER: org.bukkit.Material; + // @ts-ignore + public static MAGENTA_WOOL: org.bukkit.Material; + // @ts-ignore + public static MAGMA_BLOCK: org.bukkit.Material; + // @ts-ignore + public static MAGMA_CREAM: org.bukkit.Material; + // @ts-ignore + public static MAGMA_CUBE_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static MAP: org.bukkit.Material; + // @ts-ignore + public static MELON: org.bukkit.Material; + // @ts-ignore + public static MELON_SEEDS: org.bukkit.Material; + // @ts-ignore + public static MELON_SLICE: org.bukkit.Material; + // @ts-ignore + public static MELON_STEM: org.bukkit.Material; + // @ts-ignore + public static MILK_BUCKET: org.bukkit.Material; + // @ts-ignore + public static MINECART: org.bukkit.Material; + // @ts-ignore + public static MOJANG_BANNER_PATTERN: org.bukkit.Material; + // @ts-ignore + public static MOOSHROOM_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static MOSSY_COBBLESTONE: org.bukkit.Material; + // @ts-ignore + public static MOSSY_COBBLESTONE_SLAB: org.bukkit.Material; + // @ts-ignore + public static MOSSY_COBBLESTONE_STAIRS: org.bukkit.Material; + // @ts-ignore + public static MOSSY_COBBLESTONE_WALL: org.bukkit.Material; + // @ts-ignore + public static MOSSY_STONE_BRICKS: org.bukkit.Material; + // @ts-ignore + public static MOSSY_STONE_BRICK_SLAB: org.bukkit.Material; + // @ts-ignore + public static MOSSY_STONE_BRICK_STAIRS: org.bukkit.Material; + // @ts-ignore + public static MOSSY_STONE_BRICK_WALL: org.bukkit.Material; + // @ts-ignore + public static MOVING_PISTON: org.bukkit.Material; + // @ts-ignore + public static MULE_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static MUSHROOM_STEM: org.bukkit.Material; + // @ts-ignore + public static MUSHROOM_STEW: org.bukkit.Material; + // @ts-ignore + public static MUSIC_DISC_11: org.bukkit.Material; + // @ts-ignore + public static MUSIC_DISC_13: org.bukkit.Material; + // @ts-ignore + public static MUSIC_DISC_BLOCKS: org.bukkit.Material; + // @ts-ignore + public static MUSIC_DISC_CAT: org.bukkit.Material; + // @ts-ignore + public static MUSIC_DISC_CHIRP: org.bukkit.Material; + // @ts-ignore + public static MUSIC_DISC_FAR: org.bukkit.Material; + // @ts-ignore + public static MUSIC_DISC_MALL: org.bukkit.Material; + // @ts-ignore + public static MUSIC_DISC_MELLOHI: org.bukkit.Material; + // @ts-ignore + public static MUSIC_DISC_STAL: org.bukkit.Material; + // @ts-ignore + public static MUSIC_DISC_STRAD: org.bukkit.Material; + // @ts-ignore + public static MUSIC_DISC_WAIT: org.bukkit.Material; + // @ts-ignore + public static MUSIC_DISC_WARD: org.bukkit.Material; + // @ts-ignore + public static MUTTON: org.bukkit.Material; + // @ts-ignore + public static MYCELIUM: org.bukkit.Material; + // @ts-ignore + public static NAME_TAG: org.bukkit.Material; + // @ts-ignore + public static NAUTILUS_SHELL: org.bukkit.Material; + // @ts-ignore + public static NETHERRACK: org.bukkit.Material; + // @ts-ignore + public static NETHER_BRICK: org.bukkit.Material; + // @ts-ignore + public static NETHER_BRICKS: org.bukkit.Material; + // @ts-ignore + public static NETHER_BRICK_FENCE: org.bukkit.Material; + // @ts-ignore + public static NETHER_BRICK_SLAB: org.bukkit.Material; + // @ts-ignore + public static NETHER_BRICK_STAIRS: org.bukkit.Material; + // @ts-ignore + public static NETHER_BRICK_WALL: org.bukkit.Material; + // @ts-ignore + public static NETHER_PORTAL: org.bukkit.Material; + // @ts-ignore + public static NETHER_QUARTZ_ORE: org.bukkit.Material; + // @ts-ignore + public static NETHER_STAR: org.bukkit.Material; + // @ts-ignore + public static NETHER_WART: org.bukkit.Material; + // @ts-ignore + public static NETHER_WART_BLOCK: org.bukkit.Material; + // @ts-ignore + public static NOTE_BLOCK: org.bukkit.Material; + // @ts-ignore + public static OAK_BOAT: org.bukkit.Material; + // @ts-ignore + public static OAK_BUTTON: org.bukkit.Material; + // @ts-ignore + public static OAK_DOOR: org.bukkit.Material; + // @ts-ignore + public static OAK_FENCE: org.bukkit.Material; + // @ts-ignore + public static OAK_FENCE_GATE: org.bukkit.Material; + // @ts-ignore + public static OAK_LEAVES: org.bukkit.Material; + // @ts-ignore + public static OAK_LOG: org.bukkit.Material; + // @ts-ignore + public static OAK_PLANKS: org.bukkit.Material; + // @ts-ignore + public static OAK_PRESSURE_PLATE: org.bukkit.Material; + // @ts-ignore + public static OAK_SAPLING: org.bukkit.Material; + // @ts-ignore + public static OAK_SIGN: org.bukkit.Material; + // @ts-ignore + public static OAK_SLAB: org.bukkit.Material; + // @ts-ignore + public static OAK_STAIRS: org.bukkit.Material; + // @ts-ignore + public static OAK_TRAPDOOR: org.bukkit.Material; + // @ts-ignore + public static OAK_WALL_SIGN: org.bukkit.Material; + // @ts-ignore + public static OAK_WOOD: org.bukkit.Material; + // @ts-ignore + public static OBSERVER: org.bukkit.Material; + // @ts-ignore + public static OBSIDIAN: org.bukkit.Material; + // @ts-ignore + public static OCELOT_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static ORANGE_BANNER: org.bukkit.Material; + // @ts-ignore + public static ORANGE_BED: org.bukkit.Material; + // @ts-ignore + public static ORANGE_CARPET: org.bukkit.Material; + // @ts-ignore + public static ORANGE_CONCRETE: org.bukkit.Material; + // @ts-ignore + public static ORANGE_CONCRETE_POWDER: org.bukkit.Material; + // @ts-ignore + public static ORANGE_DYE: org.bukkit.Material; + // @ts-ignore + public static ORANGE_GLAZED_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static ORANGE_SHULKER_BOX: org.bukkit.Material; + // @ts-ignore + public static ORANGE_STAINED_GLASS: org.bukkit.Material; + // @ts-ignore + public static ORANGE_STAINED_GLASS_PANE: org.bukkit.Material; + // @ts-ignore + public static ORANGE_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static ORANGE_TULIP: org.bukkit.Material; + // @ts-ignore + public static ORANGE_WALL_BANNER: org.bukkit.Material; + // @ts-ignore + public static ORANGE_WOOL: org.bukkit.Material; + // @ts-ignore + public static OXEYE_DAISY: org.bukkit.Material; + // @ts-ignore + public static PACKED_ICE: org.bukkit.Material; + // @ts-ignore + public static PAINTING: org.bukkit.Material; + // @ts-ignore + public static PANDA_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static PAPER: org.bukkit.Material; + // @ts-ignore + public static PARROT_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static PEONY: org.bukkit.Material; + // @ts-ignore + public static PETRIFIED_OAK_SLAB: org.bukkit.Material; + // @ts-ignore + public static PHANTOM_MEMBRANE: org.bukkit.Material; + // @ts-ignore + public static PHANTOM_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static PIG_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static PILLAGER_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static PINK_BANNER: org.bukkit.Material; + // @ts-ignore + public static PINK_BED: org.bukkit.Material; + // @ts-ignore + public static PINK_CARPET: org.bukkit.Material; + // @ts-ignore + public static PINK_CONCRETE: org.bukkit.Material; + // @ts-ignore + public static PINK_CONCRETE_POWDER: org.bukkit.Material; + // @ts-ignore + public static PINK_DYE: org.bukkit.Material; + // @ts-ignore + public static PINK_GLAZED_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static PINK_SHULKER_BOX: org.bukkit.Material; + // @ts-ignore + public static PINK_STAINED_GLASS: org.bukkit.Material; + // @ts-ignore + public static PINK_STAINED_GLASS_PANE: org.bukkit.Material; + // @ts-ignore + public static PINK_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static PINK_TULIP: org.bukkit.Material; + // @ts-ignore + public static PINK_WALL_BANNER: org.bukkit.Material; + // @ts-ignore + public static PINK_WOOL: org.bukkit.Material; + // @ts-ignore + public static PISTON: org.bukkit.Material; + // @ts-ignore + public static PISTON_HEAD: org.bukkit.Material; + // @ts-ignore + public static PLAYER_HEAD: org.bukkit.Material; + // @ts-ignore + public static PLAYER_WALL_HEAD: org.bukkit.Material; + // @ts-ignore + public static PODZOL: org.bukkit.Material; + // @ts-ignore + public static POISONOUS_POTATO: org.bukkit.Material; + // @ts-ignore + public static POLAR_BEAR_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static POLISHED_ANDESITE: org.bukkit.Material; + // @ts-ignore + public static POLISHED_ANDESITE_SLAB: org.bukkit.Material; + // @ts-ignore + public static POLISHED_ANDESITE_STAIRS: org.bukkit.Material; + // @ts-ignore + public static POLISHED_DIORITE: org.bukkit.Material; + // @ts-ignore + public static POLISHED_DIORITE_SLAB: org.bukkit.Material; + // @ts-ignore + public static POLISHED_DIORITE_STAIRS: org.bukkit.Material; + // @ts-ignore + public static POLISHED_GRANITE: org.bukkit.Material; + // @ts-ignore + public static POLISHED_GRANITE_SLAB: org.bukkit.Material; + // @ts-ignore + public static POLISHED_GRANITE_STAIRS: org.bukkit.Material; + // @ts-ignore + public static POPPED_CHORUS_FRUIT: org.bukkit.Material; + // @ts-ignore + public static POPPY: org.bukkit.Material; + // @ts-ignore + public static PORKCHOP: org.bukkit.Material; + // @ts-ignore + public static POTATO: org.bukkit.Material; + // @ts-ignore + public static POTATOES: org.bukkit.Material; + // @ts-ignore + public static POTION: org.bukkit.Material; + // @ts-ignore + public static POTTED_ACACIA_SAPLING: org.bukkit.Material; + // @ts-ignore + public static POTTED_ALLIUM: org.bukkit.Material; + // @ts-ignore + public static POTTED_AZURE_BLUET: org.bukkit.Material; + // @ts-ignore + public static POTTED_BAMBOO: org.bukkit.Material; + // @ts-ignore + public static POTTED_BIRCH_SAPLING: org.bukkit.Material; + // @ts-ignore + public static POTTED_BLUE_ORCHID: org.bukkit.Material; + // @ts-ignore + public static POTTED_BROWN_MUSHROOM: org.bukkit.Material; + // @ts-ignore + public static POTTED_CACTUS: org.bukkit.Material; + // @ts-ignore + public static POTTED_CORNFLOWER: org.bukkit.Material; + // @ts-ignore + public static POTTED_DANDELION: org.bukkit.Material; + // @ts-ignore + public static POTTED_DARK_OAK_SAPLING: org.bukkit.Material; + // @ts-ignore + public static POTTED_DEAD_BUSH: org.bukkit.Material; + // @ts-ignore + public static POTTED_FERN: org.bukkit.Material; + // @ts-ignore + public static POTTED_JUNGLE_SAPLING: org.bukkit.Material; + // @ts-ignore + public static POTTED_LILY_OF_THE_VALLEY: org.bukkit.Material; + // @ts-ignore + public static POTTED_OAK_SAPLING: org.bukkit.Material; + // @ts-ignore + public static POTTED_ORANGE_TULIP: org.bukkit.Material; + // @ts-ignore + public static POTTED_OXEYE_DAISY: org.bukkit.Material; + // @ts-ignore + public static POTTED_PINK_TULIP: org.bukkit.Material; + // @ts-ignore + public static POTTED_POPPY: org.bukkit.Material; + // @ts-ignore + public static POTTED_RED_MUSHROOM: org.bukkit.Material; + // @ts-ignore + public static POTTED_RED_TULIP: org.bukkit.Material; + // @ts-ignore + public static POTTED_SPRUCE_SAPLING: org.bukkit.Material; + // @ts-ignore + public static POTTED_WHITE_TULIP: org.bukkit.Material; + // @ts-ignore + public static POTTED_WITHER_ROSE: org.bukkit.Material; + // @ts-ignore + public static POWERED_RAIL: org.bukkit.Material; + // @ts-ignore + public static PRISMARINE: org.bukkit.Material; + // @ts-ignore + public static PRISMARINE_BRICKS: org.bukkit.Material; + // @ts-ignore + public static PRISMARINE_BRICK_SLAB: org.bukkit.Material; + // @ts-ignore + public static PRISMARINE_BRICK_STAIRS: org.bukkit.Material; + // @ts-ignore + public static PRISMARINE_CRYSTALS: org.bukkit.Material; + // @ts-ignore + public static PRISMARINE_SHARD: org.bukkit.Material; + // @ts-ignore + public static PRISMARINE_SLAB: org.bukkit.Material; + // @ts-ignore + public static PRISMARINE_STAIRS: org.bukkit.Material; + // @ts-ignore + public static PRISMARINE_WALL: org.bukkit.Material; + // @ts-ignore + public static PUFFERFISH: org.bukkit.Material; + // @ts-ignore + public static PUFFERFISH_BUCKET: org.bukkit.Material; + // @ts-ignore + public static PUFFERFISH_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static PUMPKIN: org.bukkit.Material; + // @ts-ignore + public static PUMPKIN_PIE: org.bukkit.Material; + // @ts-ignore + public static PUMPKIN_SEEDS: org.bukkit.Material; + // @ts-ignore + public static PUMPKIN_STEM: org.bukkit.Material; + // @ts-ignore + public static PURPLE_BANNER: org.bukkit.Material; + // @ts-ignore + public static PURPLE_BED: org.bukkit.Material; + // @ts-ignore + public static PURPLE_CARPET: org.bukkit.Material; + // @ts-ignore + public static PURPLE_CONCRETE: org.bukkit.Material; + // @ts-ignore + public static PURPLE_CONCRETE_POWDER: org.bukkit.Material; + // @ts-ignore + public static PURPLE_DYE: org.bukkit.Material; + // @ts-ignore + public static PURPLE_GLAZED_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static PURPLE_SHULKER_BOX: org.bukkit.Material; + // @ts-ignore + public static PURPLE_STAINED_GLASS: org.bukkit.Material; + // @ts-ignore + public static PURPLE_STAINED_GLASS_PANE: org.bukkit.Material; + // @ts-ignore + public static PURPLE_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static PURPLE_WALL_BANNER: org.bukkit.Material; + // @ts-ignore + public static PURPLE_WOOL: org.bukkit.Material; + // @ts-ignore + public static PURPUR_BLOCK: org.bukkit.Material; + // @ts-ignore + public static PURPUR_PILLAR: org.bukkit.Material; + // @ts-ignore + public static PURPUR_SLAB: org.bukkit.Material; + // @ts-ignore + public static PURPUR_STAIRS: org.bukkit.Material; + // @ts-ignore + public static QUARTZ: org.bukkit.Material; + // @ts-ignore + public static QUARTZ_BLOCK: org.bukkit.Material; + // @ts-ignore + public static QUARTZ_PILLAR: org.bukkit.Material; + // @ts-ignore + public static QUARTZ_SLAB: org.bukkit.Material; + // @ts-ignore + public static QUARTZ_STAIRS: org.bukkit.Material; + // @ts-ignore + public static RABBIT: org.bukkit.Material; + // @ts-ignore + public static RABBIT_FOOT: org.bukkit.Material; + // @ts-ignore + public static RABBIT_HIDE: org.bukkit.Material; + // @ts-ignore + public static RABBIT_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static RABBIT_STEW: org.bukkit.Material; + // @ts-ignore + public static RAIL: org.bukkit.Material; + // @ts-ignore + public static RAVAGER_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static REDSTONE: org.bukkit.Material; + // @ts-ignore + public static REDSTONE_BLOCK: org.bukkit.Material; + // @ts-ignore + public static REDSTONE_LAMP: org.bukkit.Material; + // @ts-ignore + public static REDSTONE_ORE: org.bukkit.Material; + // @ts-ignore + public static REDSTONE_TORCH: org.bukkit.Material; + // @ts-ignore + public static REDSTONE_WALL_TORCH: org.bukkit.Material; + // @ts-ignore + public static REDSTONE_WIRE: org.bukkit.Material; + // @ts-ignore + public static RED_BANNER: org.bukkit.Material; + // @ts-ignore + public static RED_BED: org.bukkit.Material; + // @ts-ignore + public static RED_CARPET: org.bukkit.Material; + // @ts-ignore + public static RED_CONCRETE: org.bukkit.Material; + // @ts-ignore + public static RED_CONCRETE_POWDER: org.bukkit.Material; + // @ts-ignore + public static RED_DYE: org.bukkit.Material; + // @ts-ignore + public static RED_GLAZED_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static RED_MUSHROOM: org.bukkit.Material; + // @ts-ignore + public static RED_MUSHROOM_BLOCK: org.bukkit.Material; + // @ts-ignore + public static RED_NETHER_BRICKS: org.bukkit.Material; + // @ts-ignore + public static RED_NETHER_BRICK_SLAB: org.bukkit.Material; + // @ts-ignore + public static RED_NETHER_BRICK_STAIRS: org.bukkit.Material; + // @ts-ignore + public static RED_NETHER_BRICK_WALL: org.bukkit.Material; + // @ts-ignore + public static RED_SAND: org.bukkit.Material; + // @ts-ignore + public static RED_SANDSTONE: org.bukkit.Material; + // @ts-ignore + public static RED_SANDSTONE_SLAB: org.bukkit.Material; + // @ts-ignore + public static RED_SANDSTONE_STAIRS: org.bukkit.Material; + // @ts-ignore + public static RED_SANDSTONE_WALL: org.bukkit.Material; + // @ts-ignore + public static RED_SHULKER_BOX: org.bukkit.Material; + // @ts-ignore + public static RED_STAINED_GLASS: org.bukkit.Material; + // @ts-ignore + public static RED_STAINED_GLASS_PANE: org.bukkit.Material; + // @ts-ignore + public static RED_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static RED_TULIP: org.bukkit.Material; + // @ts-ignore + public static RED_WALL_BANNER: org.bukkit.Material; + // @ts-ignore + public static RED_WOOL: org.bukkit.Material; + // @ts-ignore + public static REPEATER: org.bukkit.Material; + // @ts-ignore + public static REPEATING_COMMAND_BLOCK: org.bukkit.Material; + // @ts-ignore + public static ROSE_BUSH: org.bukkit.Material; + // @ts-ignore + public static ROTTEN_FLESH: org.bukkit.Material; + // @ts-ignore + public static SADDLE: org.bukkit.Material; + // @ts-ignore + public static SALMON: org.bukkit.Material; + // @ts-ignore + public static SALMON_BUCKET: org.bukkit.Material; + // @ts-ignore + public static SALMON_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static SAND: org.bukkit.Material; + // @ts-ignore + public static SANDSTONE: org.bukkit.Material; + // @ts-ignore + public static SANDSTONE_SLAB: org.bukkit.Material; + // @ts-ignore + public static SANDSTONE_STAIRS: org.bukkit.Material; + // @ts-ignore + public static SANDSTONE_WALL: org.bukkit.Material; + // @ts-ignore + public static SCAFFOLDING: org.bukkit.Material; + // @ts-ignore + public static SCUTE: org.bukkit.Material; + // @ts-ignore + public static SEAGRASS: org.bukkit.Material; + // @ts-ignore + public static SEA_LANTERN: org.bukkit.Material; + // @ts-ignore + public static SEA_PICKLE: org.bukkit.Material; + // @ts-ignore + public static SHEARS: org.bukkit.Material; + // @ts-ignore + public static SHEEP_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static SHIELD: org.bukkit.Material; + // @ts-ignore + public static SHULKER_BOX: org.bukkit.Material; + // @ts-ignore + public static SHULKER_SHELL: org.bukkit.Material; + // @ts-ignore + public static SHULKER_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static SILVERFISH_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static SKELETON_HORSE_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static SKELETON_SKULL: org.bukkit.Material; + // @ts-ignore + public static SKELETON_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static SKELETON_WALL_SKULL: org.bukkit.Material; + // @ts-ignore + public static SKULL_BANNER_PATTERN: org.bukkit.Material; + // @ts-ignore + public static SLIME_BALL: org.bukkit.Material; + // @ts-ignore + public static SLIME_BLOCK: org.bukkit.Material; + // @ts-ignore + public static SLIME_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static SMITHING_TABLE: org.bukkit.Material; + // @ts-ignore + public static SMOKER: org.bukkit.Material; + // @ts-ignore + public static SMOOTH_QUARTZ: org.bukkit.Material; + // @ts-ignore + public static SMOOTH_QUARTZ_SLAB: org.bukkit.Material; + // @ts-ignore + public static SMOOTH_QUARTZ_STAIRS: org.bukkit.Material; + // @ts-ignore + public static SMOOTH_RED_SANDSTONE: org.bukkit.Material; + // @ts-ignore + public static SMOOTH_RED_SANDSTONE_SLAB: org.bukkit.Material; + // @ts-ignore + public static SMOOTH_RED_SANDSTONE_STAIRS: org.bukkit.Material; + // @ts-ignore + public static SMOOTH_SANDSTONE: org.bukkit.Material; + // @ts-ignore + public static SMOOTH_SANDSTONE_SLAB: org.bukkit.Material; + // @ts-ignore + public static SMOOTH_SANDSTONE_STAIRS: org.bukkit.Material; + // @ts-ignore + public static SMOOTH_STONE: org.bukkit.Material; + // @ts-ignore + public static SMOOTH_STONE_SLAB: org.bukkit.Material; + // @ts-ignore + public static SNOW: org.bukkit.Material; + // @ts-ignore + public static SNOWBALL: org.bukkit.Material; + // @ts-ignore + public static SNOW_BLOCK: org.bukkit.Material; + // @ts-ignore + public static SOUL_SAND: org.bukkit.Material; + // @ts-ignore + public static SPAWNER: org.bukkit.Material; + // @ts-ignore + public static SPECTRAL_ARROW: org.bukkit.Material; + // @ts-ignore + public static SPIDER_EYE: org.bukkit.Material; + // @ts-ignore + public static SPIDER_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static SPLASH_POTION: org.bukkit.Material; + // @ts-ignore + public static SPONGE: org.bukkit.Material; + // @ts-ignore + public static SPRUCE_BOAT: org.bukkit.Material; + // @ts-ignore + public static SPRUCE_BUTTON: org.bukkit.Material; + // @ts-ignore + public static SPRUCE_DOOR: org.bukkit.Material; + // @ts-ignore + public static SPRUCE_FENCE: org.bukkit.Material; + // @ts-ignore + public static SPRUCE_FENCE_GATE: org.bukkit.Material; + // @ts-ignore + public static SPRUCE_LEAVES: org.bukkit.Material; + // @ts-ignore + public static SPRUCE_LOG: org.bukkit.Material; + // @ts-ignore + public static SPRUCE_PLANKS: org.bukkit.Material; + // @ts-ignore + public static SPRUCE_PRESSURE_PLATE: org.bukkit.Material; + // @ts-ignore + public static SPRUCE_SAPLING: org.bukkit.Material; + // @ts-ignore + public static SPRUCE_SIGN: org.bukkit.Material; + // @ts-ignore + public static SPRUCE_SLAB: org.bukkit.Material; + // @ts-ignore + public static SPRUCE_STAIRS: org.bukkit.Material; + // @ts-ignore + public static SPRUCE_TRAPDOOR: org.bukkit.Material; + // @ts-ignore + public static SPRUCE_WALL_SIGN: org.bukkit.Material; + // @ts-ignore + public static SPRUCE_WOOD: org.bukkit.Material; + // @ts-ignore + public static SQUID_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static STICK: org.bukkit.Material; + // @ts-ignore + public static STICKY_PISTON: org.bukkit.Material; + // @ts-ignore + public static STONE: org.bukkit.Material; + // @ts-ignore + public static STONECUTTER: org.bukkit.Material; + // @ts-ignore + public static STONE_AXE: org.bukkit.Material; + // @ts-ignore + public static STONE_BRICKS: org.bukkit.Material; + // @ts-ignore + public static STONE_BRICK_SLAB: org.bukkit.Material; + // @ts-ignore + public static STONE_BRICK_STAIRS: org.bukkit.Material; + // @ts-ignore + public static STONE_BRICK_WALL: org.bukkit.Material; + // @ts-ignore + public static STONE_BUTTON: org.bukkit.Material; + // @ts-ignore + public static STONE_HOE: org.bukkit.Material; + // @ts-ignore + public static STONE_PICKAXE: org.bukkit.Material; + // @ts-ignore + public static STONE_PRESSURE_PLATE: org.bukkit.Material; + // @ts-ignore + public static STONE_SHOVEL: org.bukkit.Material; + // @ts-ignore + public static STONE_SLAB: org.bukkit.Material; + // @ts-ignore + public static STONE_STAIRS: org.bukkit.Material; + // @ts-ignore + public static STONE_SWORD: org.bukkit.Material; + // @ts-ignore + public static STRAY_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static STRING: org.bukkit.Material; + // @ts-ignore + public static STRIPPED_ACACIA_LOG: org.bukkit.Material; + // @ts-ignore + public static STRIPPED_ACACIA_WOOD: org.bukkit.Material; + // @ts-ignore + public static STRIPPED_BIRCH_LOG: org.bukkit.Material; + // @ts-ignore + public static STRIPPED_BIRCH_WOOD: org.bukkit.Material; + // @ts-ignore + public static STRIPPED_DARK_OAK_LOG: org.bukkit.Material; + // @ts-ignore + public static STRIPPED_DARK_OAK_WOOD: org.bukkit.Material; + // @ts-ignore + public static STRIPPED_JUNGLE_LOG: org.bukkit.Material; + // @ts-ignore + public static STRIPPED_JUNGLE_WOOD: org.bukkit.Material; + // @ts-ignore + public static STRIPPED_OAK_LOG: org.bukkit.Material; + // @ts-ignore + public static STRIPPED_OAK_WOOD: org.bukkit.Material; + // @ts-ignore + public static STRIPPED_SPRUCE_LOG: org.bukkit.Material; + // @ts-ignore + public static STRIPPED_SPRUCE_WOOD: org.bukkit.Material; + // @ts-ignore + public static STRUCTURE_BLOCK: org.bukkit.Material; + // @ts-ignore + public static STRUCTURE_VOID: org.bukkit.Material; + // @ts-ignore + public static SUGAR: org.bukkit.Material; + // @ts-ignore + public static SUGAR_CANE: org.bukkit.Material; + // @ts-ignore + public static SUNFLOWER: org.bukkit.Material; + // @ts-ignore + public static SUSPICIOUS_STEW: org.bukkit.Material; + // @ts-ignore + public static SWEET_BERRIES: org.bukkit.Material; + // @ts-ignore + public static SWEET_BERRY_BUSH: org.bukkit.Material; + // @ts-ignore + public static TALL_GRASS: org.bukkit.Material; + // @ts-ignore + public static TALL_SEAGRASS: org.bukkit.Material; + // @ts-ignore + public static TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static TIPPED_ARROW: org.bukkit.Material; + // @ts-ignore + public static TNT: org.bukkit.Material; + // @ts-ignore + public static TNT_MINECART: org.bukkit.Material; + // @ts-ignore + public static TORCH: org.bukkit.Material; + // @ts-ignore + public static TOTEM_OF_UNDYING: org.bukkit.Material; + // @ts-ignore + public static TRADER_LLAMA_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static TRAPPED_CHEST: org.bukkit.Material; + // @ts-ignore + public static TRIDENT: org.bukkit.Material; + // @ts-ignore + public static TRIPWIRE: org.bukkit.Material; + // @ts-ignore + public static TRIPWIRE_HOOK: org.bukkit.Material; + // @ts-ignore + public static TROPICAL_FISH: org.bukkit.Material; + // @ts-ignore + public static TROPICAL_FISH_BUCKET: org.bukkit.Material; + // @ts-ignore + public static TROPICAL_FISH_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static TUBE_CORAL: org.bukkit.Material; + // @ts-ignore + public static TUBE_CORAL_BLOCK: org.bukkit.Material; + // @ts-ignore + public static TUBE_CORAL_FAN: org.bukkit.Material; + // @ts-ignore + public static TUBE_CORAL_WALL_FAN: org.bukkit.Material; + // @ts-ignore + public static TURTLE_EGG: org.bukkit.Material; + // @ts-ignore + public static TURTLE_HELMET: org.bukkit.Material; + // @ts-ignore + public static TURTLE_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static VEX_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static VILLAGER_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static VINDICATOR_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static VINE: org.bukkit.Material; + // @ts-ignore + public static VOID_AIR: org.bukkit.Material; + // @ts-ignore + public static WALL_TORCH: org.bukkit.Material; + // @ts-ignore + public static WANDERING_TRADER_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static WATER: org.bukkit.Material; + // @ts-ignore + public static WATER_BUCKET: org.bukkit.Material; + // @ts-ignore + public static WET_SPONGE: org.bukkit.Material; + // @ts-ignore + public static WHEAT: org.bukkit.Material; + // @ts-ignore + public static WHEAT_SEEDS: org.bukkit.Material; + // @ts-ignore + public static WHITE_BANNER: org.bukkit.Material; + // @ts-ignore + public static WHITE_BED: org.bukkit.Material; + // @ts-ignore + public static WHITE_CARPET: org.bukkit.Material; + // @ts-ignore + public static WHITE_CONCRETE: org.bukkit.Material; + // @ts-ignore + public static WHITE_CONCRETE_POWDER: org.bukkit.Material; + // @ts-ignore + public static WHITE_DYE: org.bukkit.Material; + // @ts-ignore + public static WHITE_GLAZED_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static WHITE_SHULKER_BOX: org.bukkit.Material; + // @ts-ignore + public static WHITE_STAINED_GLASS: org.bukkit.Material; + // @ts-ignore + public static WHITE_STAINED_GLASS_PANE: org.bukkit.Material; + // @ts-ignore + public static WHITE_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static WHITE_TULIP: org.bukkit.Material; + // @ts-ignore + public static WHITE_WALL_BANNER: org.bukkit.Material; + // @ts-ignore + public static WHITE_WOOL: org.bukkit.Material; + // @ts-ignore + public static WITCH_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static WITHER_ROSE: org.bukkit.Material; + // @ts-ignore + public static WITHER_SKELETON_SKULL: org.bukkit.Material; + // @ts-ignore + public static WITHER_SKELETON_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static WITHER_SKELETON_WALL_SKULL: org.bukkit.Material; + // @ts-ignore + public static WOLF_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static WOODEN_AXE: org.bukkit.Material; + // @ts-ignore + public static WOODEN_HOE: org.bukkit.Material; + // @ts-ignore + public static WOODEN_PICKAXE: org.bukkit.Material; + // @ts-ignore + public static WOODEN_SHOVEL: org.bukkit.Material; + // @ts-ignore + public static WOODEN_SWORD: org.bukkit.Material; + // @ts-ignore + public static WRITABLE_BOOK: org.bukkit.Material; + // @ts-ignore + public static WRITTEN_BOOK: org.bukkit.Material; + // @ts-ignore + public static YELLOW_BANNER: org.bukkit.Material; + // @ts-ignore + public static YELLOW_BED: org.bukkit.Material; + // @ts-ignore + public static YELLOW_CARPET: org.bukkit.Material; + // @ts-ignore + public static YELLOW_CONCRETE: org.bukkit.Material; + // @ts-ignore + public static YELLOW_CONCRETE_POWDER: org.bukkit.Material; + // @ts-ignore + public static YELLOW_DYE: org.bukkit.Material; + // @ts-ignore + public static YELLOW_GLAZED_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static YELLOW_SHULKER_BOX: org.bukkit.Material; + // @ts-ignore + public static YELLOW_STAINED_GLASS: org.bukkit.Material; + // @ts-ignore + public static YELLOW_STAINED_GLASS_PANE: org.bukkit.Material; + // @ts-ignore + public static YELLOW_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static YELLOW_WALL_BANNER: org.bukkit.Material; + // @ts-ignore + public static YELLOW_WOOL: org.bukkit.Material; + // @ts-ignore + public static ZOMBIE_HEAD: org.bukkit.Material; + // @ts-ignore + public static ZOMBIE_HORSE_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static ZOMBIE_PIGMAN_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static ZOMBIE_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static ZOMBIE_VILLAGER_SPAWN_EGG: org.bukkit.Material; + // @ts-ignore + public static ZOMBIE_WALL_HEAD: org.bukkit.Material; + // @ts-ignore + public static LEGACY_AIR: org.bukkit.Material; + // @ts-ignore + public static LEGACY_STONE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_GRASS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_DIRT: org.bukkit.Material; + // @ts-ignore + public static LEGACY_COBBLESTONE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_WOOD: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SAPLING: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BEDROCK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_WATER: org.bukkit.Material; + // @ts-ignore + public static LEGACY_STATIONARY_WATER: org.bukkit.Material; + // @ts-ignore + public static LEGACY_LAVA: org.bukkit.Material; + // @ts-ignore + public static LEGACY_STATIONARY_LAVA: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SAND: org.bukkit.Material; + // @ts-ignore + public static LEGACY_GRAVEL: org.bukkit.Material; + // @ts-ignore + public static LEGACY_GOLD_ORE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_IRON_ORE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_COAL_ORE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_LOG: org.bukkit.Material; + // @ts-ignore + public static LEGACY_LEAVES: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SPONGE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_GLASS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_LAPIS_ORE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_LAPIS_BLOCK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_DISPENSER: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SANDSTONE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_NOTE_BLOCK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BED_BLOCK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_POWERED_RAIL: org.bukkit.Material; + // @ts-ignore + public static LEGACY_DETECTOR_RAIL: org.bukkit.Material; + // @ts-ignore + public static LEGACY_PISTON_STICKY_BASE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_WEB: org.bukkit.Material; + // @ts-ignore + public static LEGACY_LONG_GRASS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_DEAD_BUSH: org.bukkit.Material; + // @ts-ignore + public static LEGACY_PISTON_BASE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_PISTON_EXTENSION: org.bukkit.Material; + // @ts-ignore + public static LEGACY_WOOL: org.bukkit.Material; + // @ts-ignore + public static LEGACY_PISTON_MOVING_PIECE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_YELLOW_FLOWER: org.bukkit.Material; + // @ts-ignore + public static LEGACY_RED_ROSE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BROWN_MUSHROOM: org.bukkit.Material; + // @ts-ignore + public static LEGACY_RED_MUSHROOM: org.bukkit.Material; + // @ts-ignore + public static LEGACY_GOLD_BLOCK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_IRON_BLOCK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_DOUBLE_STEP: org.bukkit.Material; + // @ts-ignore + public static LEGACY_STEP: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BRICK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_TNT: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BOOKSHELF: org.bukkit.Material; + // @ts-ignore + public static LEGACY_MOSSY_COBBLESTONE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_OBSIDIAN: org.bukkit.Material; + // @ts-ignore + public static LEGACY_TORCH: org.bukkit.Material; + // @ts-ignore + public static LEGACY_FIRE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_MOB_SPAWNER: org.bukkit.Material; + // @ts-ignore + public static LEGACY_WOOD_STAIRS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_CHEST: org.bukkit.Material; + // @ts-ignore + public static LEGACY_REDSTONE_WIRE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_DIAMOND_ORE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_DIAMOND_BLOCK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_WORKBENCH: org.bukkit.Material; + // @ts-ignore + public static LEGACY_CROPS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SOIL: org.bukkit.Material; + // @ts-ignore + public static LEGACY_FURNACE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BURNING_FURNACE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SIGN_POST: org.bukkit.Material; + // @ts-ignore + public static LEGACY_WOODEN_DOOR: org.bukkit.Material; + // @ts-ignore + public static LEGACY_LADDER: org.bukkit.Material; + // @ts-ignore + public static LEGACY_RAILS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_COBBLESTONE_STAIRS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_WALL_SIGN: org.bukkit.Material; + // @ts-ignore + public static LEGACY_LEVER: org.bukkit.Material; + // @ts-ignore + public static LEGACY_STONE_PLATE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_IRON_DOOR_BLOCK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_WOOD_PLATE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_REDSTONE_ORE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_GLOWING_REDSTONE_ORE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_REDSTONE_TORCH_OFF: org.bukkit.Material; + // @ts-ignore + public static LEGACY_REDSTONE_TORCH_ON: org.bukkit.Material; + // @ts-ignore + public static LEGACY_STONE_BUTTON: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SNOW: org.bukkit.Material; + // @ts-ignore + public static LEGACY_ICE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SNOW_BLOCK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_CACTUS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_CLAY: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SUGAR_CANE_BLOCK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_JUKEBOX: org.bukkit.Material; + // @ts-ignore + public static LEGACY_FENCE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_PUMPKIN: org.bukkit.Material; + // @ts-ignore + public static LEGACY_NETHERRACK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SOUL_SAND: org.bukkit.Material; + // @ts-ignore + public static LEGACY_GLOWSTONE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_PORTAL: org.bukkit.Material; + // @ts-ignore + public static LEGACY_JACK_O_LANTERN: org.bukkit.Material; + // @ts-ignore + public static LEGACY_CAKE_BLOCK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_DIODE_BLOCK_OFF: org.bukkit.Material; + // @ts-ignore + public static LEGACY_DIODE_BLOCK_ON: org.bukkit.Material; + // @ts-ignore + public static LEGACY_STAINED_GLASS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_TRAP_DOOR: org.bukkit.Material; + // @ts-ignore + public static LEGACY_MONSTER_EGGS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SMOOTH_BRICK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_HUGE_MUSHROOM_1: org.bukkit.Material; + // @ts-ignore + public static LEGACY_HUGE_MUSHROOM_2: org.bukkit.Material; + // @ts-ignore + public static LEGACY_IRON_FENCE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_THIN_GLASS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_MELON_BLOCK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_PUMPKIN_STEM: org.bukkit.Material; + // @ts-ignore + public static LEGACY_MELON_STEM: org.bukkit.Material; + // @ts-ignore + public static LEGACY_VINE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_FENCE_GATE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BRICK_STAIRS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SMOOTH_STAIRS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_MYCEL: org.bukkit.Material; + // @ts-ignore + public static LEGACY_WATER_LILY: org.bukkit.Material; + // @ts-ignore + public static LEGACY_NETHER_BRICK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_NETHER_FENCE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_NETHER_BRICK_STAIRS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_NETHER_WARTS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_ENCHANTMENT_TABLE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BREWING_STAND: org.bukkit.Material; + // @ts-ignore + public static LEGACY_CAULDRON: org.bukkit.Material; + // @ts-ignore + public static LEGACY_ENDER_PORTAL: org.bukkit.Material; + // @ts-ignore + public static LEGACY_ENDER_PORTAL_FRAME: org.bukkit.Material; + // @ts-ignore + public static LEGACY_ENDER_STONE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_DRAGON_EGG: org.bukkit.Material; + // @ts-ignore + public static LEGACY_REDSTONE_LAMP_OFF: org.bukkit.Material; + // @ts-ignore + public static LEGACY_REDSTONE_LAMP_ON: org.bukkit.Material; + // @ts-ignore + public static LEGACY_WOOD_DOUBLE_STEP: org.bukkit.Material; + // @ts-ignore + public static LEGACY_WOOD_STEP: org.bukkit.Material; + // @ts-ignore + public static LEGACY_COCOA: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SANDSTONE_STAIRS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_EMERALD_ORE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_ENDER_CHEST: org.bukkit.Material; + // @ts-ignore + public static LEGACY_TRIPWIRE_HOOK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_TRIPWIRE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_EMERALD_BLOCK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SPRUCE_WOOD_STAIRS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BIRCH_WOOD_STAIRS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_JUNGLE_WOOD_STAIRS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_COMMAND: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BEACON: org.bukkit.Material; + // @ts-ignore + public static LEGACY_COBBLE_WALL: org.bukkit.Material; + // @ts-ignore + public static LEGACY_FLOWER_POT: org.bukkit.Material; + // @ts-ignore + public static LEGACY_CARROT: org.bukkit.Material; + // @ts-ignore + public static LEGACY_POTATO: org.bukkit.Material; + // @ts-ignore + public static LEGACY_WOOD_BUTTON: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SKULL: org.bukkit.Material; + // @ts-ignore + public static LEGACY_ANVIL: org.bukkit.Material; + // @ts-ignore + public static LEGACY_TRAPPED_CHEST: org.bukkit.Material; + // @ts-ignore + public static LEGACY_GOLD_PLATE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_IRON_PLATE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_REDSTONE_COMPARATOR_OFF: org.bukkit.Material; + // @ts-ignore + public static LEGACY_REDSTONE_COMPARATOR_ON: org.bukkit.Material; + // @ts-ignore + public static LEGACY_DAYLIGHT_DETECTOR: org.bukkit.Material; + // @ts-ignore + public static LEGACY_REDSTONE_BLOCK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_QUARTZ_ORE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_HOPPER: org.bukkit.Material; + // @ts-ignore + public static LEGACY_QUARTZ_BLOCK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_QUARTZ_STAIRS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_ACTIVATOR_RAIL: org.bukkit.Material; + // @ts-ignore + public static LEGACY_DROPPER: org.bukkit.Material; + // @ts-ignore + public static LEGACY_STAINED_CLAY: org.bukkit.Material; + // @ts-ignore + public static LEGACY_STAINED_GLASS_PANE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_LEAVES_2: org.bukkit.Material; + // @ts-ignore + public static LEGACY_LOG_2: org.bukkit.Material; + // @ts-ignore + public static LEGACY_ACACIA_STAIRS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_DARK_OAK_STAIRS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SLIME_BLOCK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BARRIER: org.bukkit.Material; + // @ts-ignore + public static LEGACY_IRON_TRAPDOOR: org.bukkit.Material; + // @ts-ignore + public static LEGACY_PRISMARINE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SEA_LANTERN: org.bukkit.Material; + // @ts-ignore + public static LEGACY_HAY_BLOCK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_CARPET: org.bukkit.Material; + // @ts-ignore + public static LEGACY_HARD_CLAY: org.bukkit.Material; + // @ts-ignore + public static LEGACY_COAL_BLOCK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_PACKED_ICE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_DOUBLE_PLANT: org.bukkit.Material; + // @ts-ignore + public static LEGACY_STANDING_BANNER: org.bukkit.Material; + // @ts-ignore + public static LEGACY_WALL_BANNER: org.bukkit.Material; + // @ts-ignore + public static LEGACY_DAYLIGHT_DETECTOR_INVERTED: org.bukkit.Material; + // @ts-ignore + public static LEGACY_RED_SANDSTONE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_RED_SANDSTONE_STAIRS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_DOUBLE_STONE_SLAB2: org.bukkit.Material; + // @ts-ignore + public static LEGACY_STONE_SLAB2: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SPRUCE_FENCE_GATE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BIRCH_FENCE_GATE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_JUNGLE_FENCE_GATE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_DARK_OAK_FENCE_GATE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_ACACIA_FENCE_GATE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SPRUCE_FENCE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BIRCH_FENCE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_JUNGLE_FENCE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_DARK_OAK_FENCE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_ACACIA_FENCE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SPRUCE_DOOR: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BIRCH_DOOR: org.bukkit.Material; + // @ts-ignore + public static LEGACY_JUNGLE_DOOR: org.bukkit.Material; + // @ts-ignore + public static LEGACY_ACACIA_DOOR: org.bukkit.Material; + // @ts-ignore + public static LEGACY_DARK_OAK_DOOR: org.bukkit.Material; + // @ts-ignore + public static LEGACY_END_ROD: org.bukkit.Material; + // @ts-ignore + public static LEGACY_CHORUS_PLANT: org.bukkit.Material; + // @ts-ignore + public static LEGACY_CHORUS_FLOWER: org.bukkit.Material; + // @ts-ignore + public static LEGACY_PURPUR_BLOCK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_PURPUR_PILLAR: org.bukkit.Material; + // @ts-ignore + public static LEGACY_PURPUR_STAIRS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_PURPUR_DOUBLE_SLAB: org.bukkit.Material; + // @ts-ignore + public static LEGACY_PURPUR_SLAB: org.bukkit.Material; + // @ts-ignore + public static LEGACY_END_BRICKS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BEETROOT_BLOCK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_GRASS_PATH: org.bukkit.Material; + // @ts-ignore + public static LEGACY_END_GATEWAY: org.bukkit.Material; + // @ts-ignore + public static LEGACY_COMMAND_REPEATING: org.bukkit.Material; + // @ts-ignore + public static LEGACY_COMMAND_CHAIN: org.bukkit.Material; + // @ts-ignore + public static LEGACY_FROSTED_ICE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_MAGMA: org.bukkit.Material; + // @ts-ignore + public static LEGACY_NETHER_WART_BLOCK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_RED_NETHER_BRICK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BONE_BLOCK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_STRUCTURE_VOID: org.bukkit.Material; + // @ts-ignore + public static LEGACY_OBSERVER: org.bukkit.Material; + // @ts-ignore + public static LEGACY_WHITE_SHULKER_BOX: org.bukkit.Material; + // @ts-ignore + public static LEGACY_ORANGE_SHULKER_BOX: org.bukkit.Material; + // @ts-ignore + public static LEGACY_MAGENTA_SHULKER_BOX: org.bukkit.Material; + // @ts-ignore + public static LEGACY_LIGHT_BLUE_SHULKER_BOX: org.bukkit.Material; + // @ts-ignore + public static LEGACY_YELLOW_SHULKER_BOX: org.bukkit.Material; + // @ts-ignore + public static LEGACY_LIME_SHULKER_BOX: org.bukkit.Material; + // @ts-ignore + public static LEGACY_PINK_SHULKER_BOX: org.bukkit.Material; + // @ts-ignore + public static LEGACY_GRAY_SHULKER_BOX: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SILVER_SHULKER_BOX: org.bukkit.Material; + // @ts-ignore + public static LEGACY_CYAN_SHULKER_BOX: org.bukkit.Material; + // @ts-ignore + public static LEGACY_PURPLE_SHULKER_BOX: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BLUE_SHULKER_BOX: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BROWN_SHULKER_BOX: org.bukkit.Material; + // @ts-ignore + public static LEGACY_GREEN_SHULKER_BOX: org.bukkit.Material; + // @ts-ignore + public static LEGACY_RED_SHULKER_BOX: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BLACK_SHULKER_BOX: org.bukkit.Material; + // @ts-ignore + public static LEGACY_WHITE_GLAZED_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static LEGACY_ORANGE_GLAZED_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static LEGACY_MAGENTA_GLAZED_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static LEGACY_LIGHT_BLUE_GLAZED_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static LEGACY_YELLOW_GLAZED_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static LEGACY_LIME_GLAZED_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static LEGACY_PINK_GLAZED_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static LEGACY_GRAY_GLAZED_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SILVER_GLAZED_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static LEGACY_CYAN_GLAZED_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static LEGACY_PURPLE_GLAZED_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BLUE_GLAZED_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BROWN_GLAZED_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static LEGACY_GREEN_GLAZED_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static LEGACY_RED_GLAZED_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BLACK_GLAZED_TERRACOTTA: org.bukkit.Material; + // @ts-ignore + public static LEGACY_CONCRETE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_CONCRETE_POWDER: org.bukkit.Material; + // @ts-ignore + public static LEGACY_STRUCTURE_BLOCK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_IRON_SPADE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_IRON_PICKAXE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_IRON_AXE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_FLINT_AND_STEEL: org.bukkit.Material; + // @ts-ignore + public static LEGACY_APPLE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BOW: org.bukkit.Material; + // @ts-ignore + public static LEGACY_ARROW: org.bukkit.Material; + // @ts-ignore + public static LEGACY_COAL: org.bukkit.Material; + // @ts-ignore + public static LEGACY_DIAMOND: org.bukkit.Material; + // @ts-ignore + public static LEGACY_IRON_INGOT: org.bukkit.Material; + // @ts-ignore + public static LEGACY_GOLD_INGOT: org.bukkit.Material; + // @ts-ignore + public static LEGACY_IRON_SWORD: org.bukkit.Material; + // @ts-ignore + public static LEGACY_WOOD_SWORD: org.bukkit.Material; + // @ts-ignore + public static LEGACY_WOOD_SPADE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_WOOD_PICKAXE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_WOOD_AXE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_STONE_SWORD: org.bukkit.Material; + // @ts-ignore + public static LEGACY_STONE_SPADE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_STONE_PICKAXE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_STONE_AXE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_DIAMOND_SWORD: org.bukkit.Material; + // @ts-ignore + public static LEGACY_DIAMOND_SPADE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_DIAMOND_PICKAXE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_DIAMOND_AXE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_STICK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BOWL: org.bukkit.Material; + // @ts-ignore + public static LEGACY_MUSHROOM_SOUP: org.bukkit.Material; + // @ts-ignore + public static LEGACY_GOLD_SWORD: org.bukkit.Material; + // @ts-ignore + public static LEGACY_GOLD_SPADE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_GOLD_PICKAXE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_GOLD_AXE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_STRING: org.bukkit.Material; + // @ts-ignore + public static LEGACY_FEATHER: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SULPHUR: org.bukkit.Material; + // @ts-ignore + public static LEGACY_WOOD_HOE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_STONE_HOE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_IRON_HOE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_DIAMOND_HOE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_GOLD_HOE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SEEDS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_WHEAT: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BREAD: org.bukkit.Material; + // @ts-ignore + public static LEGACY_LEATHER_HELMET: org.bukkit.Material; + // @ts-ignore + public static LEGACY_LEATHER_CHESTPLATE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_LEATHER_LEGGINGS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_LEATHER_BOOTS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_CHAINMAIL_HELMET: org.bukkit.Material; + // @ts-ignore + public static LEGACY_CHAINMAIL_CHESTPLATE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_CHAINMAIL_LEGGINGS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_CHAINMAIL_BOOTS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_IRON_HELMET: org.bukkit.Material; + // @ts-ignore + public static LEGACY_IRON_CHESTPLATE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_IRON_LEGGINGS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_IRON_BOOTS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_DIAMOND_HELMET: org.bukkit.Material; + // @ts-ignore + public static LEGACY_DIAMOND_CHESTPLATE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_DIAMOND_LEGGINGS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_DIAMOND_BOOTS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_GOLD_HELMET: org.bukkit.Material; + // @ts-ignore + public static LEGACY_GOLD_CHESTPLATE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_GOLD_LEGGINGS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_GOLD_BOOTS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_FLINT: org.bukkit.Material; + // @ts-ignore + public static LEGACY_PORK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_GRILLED_PORK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_PAINTING: org.bukkit.Material; + // @ts-ignore + public static LEGACY_GOLDEN_APPLE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SIGN: org.bukkit.Material; + // @ts-ignore + public static LEGACY_WOOD_DOOR: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BUCKET: org.bukkit.Material; + // @ts-ignore + public static LEGACY_WATER_BUCKET: org.bukkit.Material; + // @ts-ignore + public static LEGACY_LAVA_BUCKET: org.bukkit.Material; + // @ts-ignore + public static LEGACY_MINECART: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SADDLE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_IRON_DOOR: org.bukkit.Material; + // @ts-ignore + public static LEGACY_REDSTONE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SNOW_BALL: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BOAT: org.bukkit.Material; + // @ts-ignore + public static LEGACY_LEATHER: org.bukkit.Material; + // @ts-ignore + public static LEGACY_MILK_BUCKET: org.bukkit.Material; + // @ts-ignore + public static LEGACY_CLAY_BRICK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_CLAY_BALL: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SUGAR_CANE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_PAPER: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BOOK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SLIME_BALL: org.bukkit.Material; + // @ts-ignore + public static LEGACY_STORAGE_MINECART: org.bukkit.Material; + // @ts-ignore + public static LEGACY_POWERED_MINECART: org.bukkit.Material; + // @ts-ignore + public static LEGACY_EGG: org.bukkit.Material; + // @ts-ignore + public static LEGACY_COMPASS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_FISHING_ROD: org.bukkit.Material; + // @ts-ignore + public static LEGACY_WATCH: org.bukkit.Material; + // @ts-ignore + public static LEGACY_GLOWSTONE_DUST: org.bukkit.Material; + // @ts-ignore + public static LEGACY_RAW_FISH: org.bukkit.Material; + // @ts-ignore + public static LEGACY_COOKED_FISH: org.bukkit.Material; + // @ts-ignore + public static LEGACY_INK_SACK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BONE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SUGAR: org.bukkit.Material; + // @ts-ignore + public static LEGACY_CAKE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BED: org.bukkit.Material; + // @ts-ignore + public static LEGACY_DIODE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_COOKIE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_MAP: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SHEARS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_MELON: org.bukkit.Material; + // @ts-ignore + public static LEGACY_PUMPKIN_SEEDS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_MELON_SEEDS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_RAW_BEEF: org.bukkit.Material; + // @ts-ignore + public static LEGACY_COOKED_BEEF: org.bukkit.Material; + // @ts-ignore + public static LEGACY_RAW_CHICKEN: org.bukkit.Material; + // @ts-ignore + public static LEGACY_COOKED_CHICKEN: org.bukkit.Material; + // @ts-ignore + public static LEGACY_ROTTEN_FLESH: org.bukkit.Material; + // @ts-ignore + public static LEGACY_ENDER_PEARL: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BLAZE_ROD: org.bukkit.Material; + // @ts-ignore + public static LEGACY_GHAST_TEAR: org.bukkit.Material; + // @ts-ignore + public static LEGACY_GOLD_NUGGET: org.bukkit.Material; + // @ts-ignore + public static LEGACY_NETHER_STALK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_POTION: org.bukkit.Material; + // @ts-ignore + public static LEGACY_GLASS_BOTTLE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SPIDER_EYE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_FERMENTED_SPIDER_EYE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BLAZE_POWDER: org.bukkit.Material; + // @ts-ignore + public static LEGACY_MAGMA_CREAM: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BREWING_STAND_ITEM: org.bukkit.Material; + // @ts-ignore + public static LEGACY_CAULDRON_ITEM: org.bukkit.Material; + // @ts-ignore + public static LEGACY_EYE_OF_ENDER: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SPECKLED_MELON: org.bukkit.Material; + // @ts-ignore + public static LEGACY_MONSTER_EGG: org.bukkit.Material; + // @ts-ignore + public static LEGACY_EXP_BOTTLE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_FIREBALL: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BOOK_AND_QUILL: org.bukkit.Material; + // @ts-ignore + public static LEGACY_WRITTEN_BOOK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_EMERALD: org.bukkit.Material; + // @ts-ignore + public static LEGACY_ITEM_FRAME: org.bukkit.Material; + // @ts-ignore + public static LEGACY_FLOWER_POT_ITEM: org.bukkit.Material; + // @ts-ignore + public static LEGACY_CARROT_ITEM: org.bukkit.Material; + // @ts-ignore + public static LEGACY_POTATO_ITEM: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BAKED_POTATO: org.bukkit.Material; + // @ts-ignore + public static LEGACY_POISONOUS_POTATO: org.bukkit.Material; + // @ts-ignore + public static LEGACY_EMPTY_MAP: org.bukkit.Material; + // @ts-ignore + public static LEGACY_GOLDEN_CARROT: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SKULL_ITEM: org.bukkit.Material; + // @ts-ignore + public static LEGACY_CARROT_STICK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_NETHER_STAR: org.bukkit.Material; + // @ts-ignore + public static LEGACY_PUMPKIN_PIE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_FIREWORK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_FIREWORK_CHARGE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_ENCHANTED_BOOK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_REDSTONE_COMPARATOR: org.bukkit.Material; + // @ts-ignore + public static LEGACY_NETHER_BRICK_ITEM: org.bukkit.Material; + // @ts-ignore + public static LEGACY_QUARTZ: org.bukkit.Material; + // @ts-ignore + public static LEGACY_EXPLOSIVE_MINECART: org.bukkit.Material; + // @ts-ignore + public static LEGACY_HOPPER_MINECART: org.bukkit.Material; + // @ts-ignore + public static LEGACY_PRISMARINE_SHARD: org.bukkit.Material; + // @ts-ignore + public static LEGACY_PRISMARINE_CRYSTALS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_RABBIT: org.bukkit.Material; + // @ts-ignore + public static LEGACY_COOKED_RABBIT: org.bukkit.Material; + // @ts-ignore + public static LEGACY_RABBIT_STEW: org.bukkit.Material; + // @ts-ignore + public static LEGACY_RABBIT_FOOT: org.bukkit.Material; + // @ts-ignore + public static LEGACY_RABBIT_HIDE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_ARMOR_STAND: org.bukkit.Material; + // @ts-ignore + public static LEGACY_IRON_BARDING: org.bukkit.Material; + // @ts-ignore + public static LEGACY_GOLD_BARDING: org.bukkit.Material; + // @ts-ignore + public static LEGACY_DIAMOND_BARDING: org.bukkit.Material; + // @ts-ignore + public static LEGACY_LEASH: org.bukkit.Material; + // @ts-ignore + public static LEGACY_NAME_TAG: org.bukkit.Material; + // @ts-ignore + public static LEGACY_COMMAND_MINECART: org.bukkit.Material; + // @ts-ignore + public static LEGACY_MUTTON: org.bukkit.Material; + // @ts-ignore + public static LEGACY_COOKED_MUTTON: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BANNER: org.bukkit.Material; + // @ts-ignore + public static LEGACY_END_CRYSTAL: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SPRUCE_DOOR_ITEM: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BIRCH_DOOR_ITEM: org.bukkit.Material; + // @ts-ignore + public static LEGACY_JUNGLE_DOOR_ITEM: org.bukkit.Material; + // @ts-ignore + public static LEGACY_ACACIA_DOOR_ITEM: org.bukkit.Material; + // @ts-ignore + public static LEGACY_DARK_OAK_DOOR_ITEM: org.bukkit.Material; + // @ts-ignore + public static LEGACY_CHORUS_FRUIT: org.bukkit.Material; + // @ts-ignore + public static LEGACY_CHORUS_FRUIT_POPPED: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BEETROOT: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BEETROOT_SEEDS: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BEETROOT_SOUP: org.bukkit.Material; + // @ts-ignore + public static LEGACY_DRAGONS_BREATH: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SPLASH_POTION: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SPECTRAL_ARROW: org.bukkit.Material; + // @ts-ignore + public static LEGACY_TIPPED_ARROW: org.bukkit.Material; + // @ts-ignore + public static LEGACY_LINGERING_POTION: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SHIELD: org.bukkit.Material; + // @ts-ignore + public static LEGACY_ELYTRA: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BOAT_SPRUCE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BOAT_BIRCH: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BOAT_JUNGLE: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BOAT_ACACIA: org.bukkit.Material; + // @ts-ignore + public static LEGACY_BOAT_DARK_OAK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_TOTEM: org.bukkit.Material; + // @ts-ignore + public static LEGACY_SHULKER_SHELL: org.bukkit.Material; + // @ts-ignore + public static LEGACY_IRON_NUGGET: org.bukkit.Material; + // @ts-ignore + public static LEGACY_KNOWLEDGE_BOOK: org.bukkit.Material; + // @ts-ignore + public static LEGACY_GOLD_RECORD: org.bukkit.Material; + // @ts-ignore + public static LEGACY_GREEN_RECORD: org.bukkit.Material; + // @ts-ignore + public static LEGACY_RECORD_3: org.bukkit.Material; + // @ts-ignore + public static LEGACY_RECORD_4: org.bukkit.Material; + // @ts-ignore + public static LEGACY_RECORD_5: org.bukkit.Material; + // @ts-ignore + public static LEGACY_RECORD_6: org.bukkit.Material; + // @ts-ignore + public static LEGACY_RECORD_7: org.bukkit.Material; + // @ts-ignore + public static LEGACY_RECORD_8: org.bukkit.Material; + // @ts-ignore + public static LEGACY_RECORD_9: org.bukkit.Material; + // @ts-ignore + public static LEGACY_RECORD_10: org.bukkit.Material; + // @ts-ignore + public static LEGACY_RECORD_11: org.bukkit.Material; + // @ts-ignore + public static LEGACY_RECORD_12: org.bukkit.Material; + // @ts-ignore + public static LEGACY_PREFIX: string; + // @ts-ignore + public data: java.lang.Class; + // @ts-ignore + public static values(): org.bukkit.Material[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.Material; + /** + * Do not use for any reason. + */ + // @ts-ignore + public getId(): number; + /** + * Do not use for any reason. + */ + // @ts-ignore + public isLegacy(): boolean; + // @ts-ignore + public getKey(): org.bukkit.NamespacedKey; + /** + * Gets the maximum amount of this material that can be held in a stack + */ + // @ts-ignore + public getMaxStackSize(): number; + /** + * Gets the maximum durability of this material + */ + // @ts-ignore + public getMaxDurability(): number; + /** + * Creates a new {@link BlockData} instance for this Material, with all + * properties initialized to unspecified defaults. + */ + // @ts-ignore + public createBlockData(): org.bukkit.block.data.BlockData; + /** + * Creates a new {@link BlockData} instance for this Material, with + * all properties initialized to unspecified defaults. + */ + // @ts-ignore + public createBlockData(consumer: java.util.function$.Consumer): org.bukkit.block.data.BlockData; + /** + * Creates a new {@link BlockData} instance for this Material, with all + * properties initialized to unspecified defaults, except for those provided + * in data. + */ + // @ts-ignore + public createBlockData(data: string): org.bukkit.block.data.BlockData; + /** + * Gets the MaterialData class associated with this Material + */ + // @ts-ignore + public getData(): java.lang.Class; + /** + * Constructs a new MaterialData relevant for this Material, with the + * given initial data + */ + // @ts-ignore + public getNewData(raw: number): org.bukkit.material.MaterialData; + /** + * Checks if this Material is a placable block + */ + // @ts-ignore + public isBlock(): boolean; + /** + * Checks if this Material is edible. + */ + // @ts-ignore + public isEdible(): boolean; + /** + * Attempts to get the Material with the given name. + *

+ * This is a normal lookup, names must be the precise name they are given + * in the enum. + */ + // @ts-ignore + public static getMaterial(name: string): org.bukkit.Material; + /** + * Attempts to get the Material with the given name. + *

+ * This is a normal lookup, names must be the precise name they are given + * in the enum. + */ + // @ts-ignore + public static getMaterial(name: string, legacyName: boolean): org.bukkit.Material; + /** + * Attempts to match the Material with the given name. + *

+ * This is a match lookup; names will be stripped of the "minecraft:" + * namespace, converted to uppercase, then stripped of special characters in + * an attempt to format it like the enum. + */ + // @ts-ignore + public static matchMaterial(name: string): org.bukkit.Material; + /** + * Attempts to match the Material with the given name. + *

+ * This is a match lookup; names will be stripped of the "minecraft:" + * namespace, converted to uppercase, then stripped of special characters in + * an attempt to format it like the enum. + */ + // @ts-ignore + public static matchMaterial(name: string, legacyName: boolean): org.bukkit.Material; + // @ts-ignore + public isRecord(): boolean; + /** + * Check if the material is a block and solid (can be built upon) + */ + // @ts-ignore + public isSolid(): boolean; + /** + * Check if the material is a block and does not block any light + */ + // @ts-ignore + public isTransparent(): boolean; + /** + * Check if the material is a block and can catch fire + */ + // @ts-ignore + public isFlammable(): boolean; + /** + * Check if the material is a block and can burn away + */ + // @ts-ignore + public isBurnable(): boolean; + /** + * Checks if this Material can be used as fuel in a Furnace + */ + // @ts-ignore + public isFuel(): boolean; + /** + * Check if the material is a block and completely blocks vision + */ + // @ts-ignore + public isOccluding(): boolean; + // @ts-ignore + public hasGravity(): boolean; + /** + * Checks if this Material is an obtainable item. + */ + // @ts-ignore + public isItem(): boolean; + /** + * Checks if this Material can be interacted with. + * Interactable materials include those with functionality when they are + * interacted with by a player such as chests, furnaces, etc. + * Some blocks such as piston heads and stairs are considered interactable + * though may not perform any additional functionality. + * Note that the interactability of some materials may be dependant on their + * state as well. This method will return true if there is at least one + * state in which additional interact handling is performed for the + * material. + */ + // @ts-ignore + public isInteractable(): boolean; + /** + * Obtains the block's hardness level (also known as "strength"). + *
+ * This number is used to calculate the time required to break each block. + *
+ * Only available when {@link #isBlock()} is true. + */ + // @ts-ignore + public getHardness(): number; + /** + * Obtains the blast resistance value (also known as block "durability"). + *
+ * This value is used in explosions to calculate whether a block should be + * broken or not. + *
+ * Only available when {@link #isBlock()} is true. + */ + // @ts-ignore + public getBlastResistance(): number; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.Nameable.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.Nameable.d.ts new file mode 100644 index 00000000..e3516f6e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.Nameable.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + interface Nameable { + /** + * Gets the custom name on a mob or block. If there is no name this method + * will return null. + *

+ * This value has no effect on players, they will always use their real + * name. + */ + // @ts-ignore + getCustomName(): string; + /** + * Sets a custom name on a mob or block. This name will be used in death + * messages and can be sent to the client as a nameplate over the mob. + *

+ * Setting the name to null or an empty string will clear it. + *

+ * This value has no effect on players, they will always use their real + * name. + */ + // @ts-ignore + setCustomName(name: string): void; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.NamespacedKey.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.NamespacedKey.d.ts new file mode 100644 index 00000000..13b511a1 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.NamespacedKey.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class NamespacedKey extends java.lang.Object { + /** + * Create a key in a specific namespace. + */ + // @ts-ignore + constructor(namespace: string, key: string) + /** + * Create a key in the plugin's namespace. + *

+ * Namespaces may only contain lowercase alphanumeric characters, periods, + * underscores, and hyphens. + *

+ * Keys may only contain lowercase alphanumeric characters, periods, + * underscores, hyphens, and forward slashes. + */ + // @ts-ignore + constructor(plugin: org.bukkit.plugin.Plugin, key: string) + // @ts-ignore + public static MINECRAFT: string; + // @ts-ignore + public static BUKKIT: string; + // @ts-ignore + public getNamespace(): string; + // @ts-ignore + public getKey(): string; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public toString(): string; + /** + * Return a new random key in the {@link #BUKKIT} namespace. + */ + // @ts-ignore + public static randomKey(): org.bukkit.NamespacedKey; + /** + * Get a key in the Minecraft namespace. + */ + // @ts-ignore + public static minecraft(key: string): org.bukkit.NamespacedKey; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.NetherWartsState.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.NetherWartsState.d.ts new file mode 100644 index 00000000..5bddd613 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.NetherWartsState.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class NetherWartsState extends java.lang.Enum { + // @ts-ignore + public static SEEDED: org.bukkit.NetherWartsState; + // @ts-ignore + public static STAGE_ONE: org.bukkit.NetherWartsState; + // @ts-ignore + public static STAGE_TWO: org.bukkit.NetherWartsState; + // @ts-ignore + public static RIPE: org.bukkit.NetherWartsState; + // @ts-ignore + public static values(): org.bukkit.NetherWartsState[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.NetherWartsState; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.Note.Tone.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.Note.Tone.d.ts new file mode 100644 index 00000000..573c0a07 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.Note.Tone.d.ts @@ -0,0 +1,57 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace Note { + // @ts-ignore + class Tone extends java.lang.Enum { + // @ts-ignore + public static G: org.bukkit.Note.Tone; + // @ts-ignore + public static A: org.bukkit.Note.Tone; + // @ts-ignore + public static B: org.bukkit.Note.Tone; + // @ts-ignore + public static C: org.bukkit.Note.Tone; + // @ts-ignore + public static D: org.bukkit.Note.Tone; + // @ts-ignore + public static E: org.bukkit.Note.Tone; + // @ts-ignore + public static F: org.bukkit.Note.Tone; + // @ts-ignore + public static TONES_COUNT: number; + // @ts-ignore + public static values(): org.bukkit.Note.Tone[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.Note.Tone; + /** + * Returns the not sharped id of this tone. + */ + // @ts-ignore + public getId(): number; + /** + * Returns the id of this tone. These method allows to return the + * sharped id of the tone. If the tone couldn't be sharped it always + * return the not sharped id of this tone. + */ + // @ts-ignore + public getId(sharped: boolean): number; + /** + * Returns if this tone could be sharped. + */ + // @ts-ignore + public isSharpable(): boolean; + /** + * Returns if this tone id is the sharped id of the tone. + */ + // @ts-ignore + public isSharped(id: number): boolean; + /** + * Returns the tone to id. Also returning the semitones. + */ + // @ts-ignore + public static getById(id: number): org.bukkit.Note.Tone; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.Note.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.Note.d.ts new file mode 100644 index 00000000..c6e11175 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.Note.d.ts @@ -0,0 +1,63 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class Note extends java.lang.Object { + /** + * Creates a new note. + */ + // @ts-ignore + constructor(note: number) + /** + * Creates a new note. + */ + // @ts-ignore + constructor(octave: number, tone: org.bukkit.Note.Tone, sharped: boolean) + /** + * Creates a new note for a flat tone, such as A-flat. + */ + // @ts-ignore + public static flat(octave: number, tone: org.bukkit.Note.Tone): org.bukkit.Note; + /** + * Creates a new note for a sharp tone, such as A-sharp. + */ + // @ts-ignore + public static sharp(octave: number, tone: org.bukkit.Note.Tone): org.bukkit.Note; + /** + * Creates a new note for a natural tone, such as A-natural. + */ + // @ts-ignore + public static natural(octave: number, tone: org.bukkit.Note.Tone): org.bukkit.Note; + // @ts-ignore + public sharped(): org.bukkit.Note; + // @ts-ignore + public flattened(): org.bukkit.Note; + /** + * Returns the internal id of this note. + */ + // @ts-ignore + public getId(): number; + /** + * Returns the octave of this note. + */ + // @ts-ignore + public getOctave(): number; + /** + * Returns the tone of this note. + */ + // @ts-ignore + public getTone(): org.bukkit.Note.Tone; + /** + * Returns if this note is sharped. + */ + // @ts-ignore + public isSharped(): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.OfflinePlayer.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.OfflinePlayer.d.ts new file mode 100644 index 00000000..27a489ac --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.OfflinePlayer.d.ts @@ -0,0 +1,80 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + interface OfflinePlayer extends org.bukkit.permissions.ServerOperator, org.bukkit.entity.AnimalTamer, org.bukkit.configuration.serialization.ConfigurationSerializable { + /** + * Checks if this player is currently online + */ + // @ts-ignore + isOnline(): boolean; + /** + * Returns the name of this player + *

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

+ * If the player is online, this will return that player. Otherwise, + * it will return null. + */ + // @ts-ignore + getPlayer(): org.bukkit.entity.Player; + /** + * Gets the first date and time that this player was witnessed on this + * server. + *

+ * If the player has never played before, this will return 0. Otherwise, + * it will be the amount of milliseconds since midnight, January 1, 1970 + * UTC. + */ + // @ts-ignore + getFirstPlayed(): number; + /** + * Gets the last date and time that this player was witnessed on this + * server. + *

+ * If the player has never played before, this will return 0. Otherwise, + * it will be the amount of milliseconds since midnight, January 1, 1970 + * UTC. + */ + // @ts-ignore + getLastPlayed(): number; + /** + * Checks if this player has played on this server before. + */ + // @ts-ignore + hasPlayedBefore(): boolean; + /** + * Gets the Location where the player will spawn at their bed, null if + * they have not slept in one or their current bed spawn is invalid. + */ + // @ts-ignore + getBedSpawnLocation(): org.bukkit.Location; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.Particle.DustOptions.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.Particle.DustOptions.d.ts new file mode 100644 index 00000000..82eab15c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.Particle.DustOptions.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace Particle { + // @ts-ignore + class DustOptions extends java.lang.Object { + // @ts-ignore + constructor(color: org.bukkit.Color, size: number) + /** + * The color of the particles to be displayed. + */ + // @ts-ignore + public getColor(): org.bukkit.Color; + /** + * Relative size of the particle. + */ + // @ts-ignore + public getSize(): number; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.Particle.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.Particle.d.ts new file mode 100644 index 00000000..30b6cc45 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.Particle.d.ts @@ -0,0 +1,145 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class Particle extends java.lang.Enum { + // @ts-ignore + public static EXPLOSION_NORMAL: org.bukkit.Particle; + // @ts-ignore + public static EXPLOSION_LARGE: org.bukkit.Particle; + // @ts-ignore + public static EXPLOSION_HUGE: org.bukkit.Particle; + // @ts-ignore + public static FIREWORKS_SPARK: org.bukkit.Particle; + // @ts-ignore + public static WATER_BUBBLE: org.bukkit.Particle; + // @ts-ignore + public static WATER_SPLASH: org.bukkit.Particle; + // @ts-ignore + public static WATER_WAKE: org.bukkit.Particle; + // @ts-ignore + public static SUSPENDED: org.bukkit.Particle; + // @ts-ignore + public static SUSPENDED_DEPTH: org.bukkit.Particle; + // @ts-ignore + public static CRIT: org.bukkit.Particle; + // @ts-ignore + public static CRIT_MAGIC: org.bukkit.Particle; + // @ts-ignore + public static SMOKE_NORMAL: org.bukkit.Particle; + // @ts-ignore + public static SMOKE_LARGE: org.bukkit.Particle; + // @ts-ignore + public static SPELL: org.bukkit.Particle; + // @ts-ignore + public static SPELL_INSTANT: org.bukkit.Particle; + // @ts-ignore + public static SPELL_MOB: org.bukkit.Particle; + // @ts-ignore + public static SPELL_MOB_AMBIENT: org.bukkit.Particle; + // @ts-ignore + public static SPELL_WITCH: org.bukkit.Particle; + // @ts-ignore + public static DRIP_WATER: org.bukkit.Particle; + // @ts-ignore + public static DRIP_LAVA: org.bukkit.Particle; + // @ts-ignore + public static VILLAGER_ANGRY: org.bukkit.Particle; + // @ts-ignore + public static VILLAGER_HAPPY: org.bukkit.Particle; + // @ts-ignore + public static TOWN_AURA: org.bukkit.Particle; + // @ts-ignore + public static NOTE: org.bukkit.Particle; + // @ts-ignore + public static PORTAL: org.bukkit.Particle; + // @ts-ignore + public static ENCHANTMENT_TABLE: org.bukkit.Particle; + // @ts-ignore + public static FLAME: org.bukkit.Particle; + // @ts-ignore + public static LAVA: org.bukkit.Particle; + // @ts-ignore + public static CLOUD: org.bukkit.Particle; + // @ts-ignore + public static REDSTONE: org.bukkit.Particle; + // @ts-ignore + public static SNOWBALL: org.bukkit.Particle; + // @ts-ignore + public static SNOW_SHOVEL: org.bukkit.Particle; + // @ts-ignore + public static SLIME: org.bukkit.Particle; + // @ts-ignore + public static HEART: org.bukkit.Particle; + // @ts-ignore + public static BARRIER: org.bukkit.Particle; + // @ts-ignore + public static ITEM_CRACK: org.bukkit.Particle; + // @ts-ignore + public static BLOCK_CRACK: org.bukkit.Particle; + // @ts-ignore + public static BLOCK_DUST: org.bukkit.Particle; + // @ts-ignore + public static WATER_DROP: org.bukkit.Particle; + // @ts-ignore + public static MOB_APPEARANCE: org.bukkit.Particle; + // @ts-ignore + public static DRAGON_BREATH: org.bukkit.Particle; + // @ts-ignore + public static END_ROD: org.bukkit.Particle; + // @ts-ignore + public static DAMAGE_INDICATOR: org.bukkit.Particle; + // @ts-ignore + public static SWEEP_ATTACK: org.bukkit.Particle; + // @ts-ignore + public static FALLING_DUST: org.bukkit.Particle; + // @ts-ignore + public static TOTEM: org.bukkit.Particle; + // @ts-ignore + public static SPIT: org.bukkit.Particle; + // @ts-ignore + public static SQUID_INK: org.bukkit.Particle; + // @ts-ignore + public static BUBBLE_POP: org.bukkit.Particle; + // @ts-ignore + public static CURRENT_DOWN: org.bukkit.Particle; + // @ts-ignore + public static BUBBLE_COLUMN_UP: org.bukkit.Particle; + // @ts-ignore + public static NAUTILUS: org.bukkit.Particle; + // @ts-ignore + public static DOLPHIN: org.bukkit.Particle; + // @ts-ignore + public static SNEEZE: org.bukkit.Particle; + // @ts-ignore + public static CAMPFIRE_COSY_SMOKE: org.bukkit.Particle; + // @ts-ignore + public static CAMPFIRE_SIGNAL_SMOKE: org.bukkit.Particle; + // @ts-ignore + public static COMPOSTER: org.bukkit.Particle; + // @ts-ignore + public static FLASH: org.bukkit.Particle; + // @ts-ignore + public static FALLING_LAVA: org.bukkit.Particle; + // @ts-ignore + public static LANDING_LAVA: org.bukkit.Particle; + // @ts-ignore + public static FALLING_WATER: org.bukkit.Particle; + // @ts-ignore + public static LEGACY_BLOCK_CRACK: org.bukkit.Particle; + // @ts-ignore + public static LEGACY_BLOCK_DUST: org.bukkit.Particle; + // @ts-ignore + public static LEGACY_FALLING_DUST: org.bukkit.Particle; + // @ts-ignore + public static values(): org.bukkit.Particle[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.Particle; + /** + * Returns the required data type for the particle + */ + // @ts-ignore + public getDataType(): java.lang.Class; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.PortalType.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.PortalType.d.ts new file mode 100644 index 00000000..50b54370 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.PortalType.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class PortalType extends java.lang.Enum { + // @ts-ignore + public static NETHER: org.bukkit.PortalType; + // @ts-ignore + public static ENDER: org.bukkit.PortalType; + // @ts-ignore + public static CUSTOM: org.bukkit.PortalType; + // @ts-ignore + public static values(): org.bukkit.PortalType[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.PortalType; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.Registry.SimpleRegistry.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.Registry.SimpleRegistry.d.ts new file mode 100644 index 00000000..e5254f95 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.Registry.SimpleRegistry.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace Registry { + // @ts-ignore + class SimpleRegistry extends java.lang.Object implements org.bukkit.Registry { + // @ts-ignore + constructor(type: java.lang.Class) + // @ts-ignore + constructor(type: java.lang.Class, predicate: java.util.function$.Predicate) + // @ts-ignore + public get(key: org.bukkit.NamespacedKey): java.lang.Enum; + // @ts-ignore + public iterator(): java.util.Iterator; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.Registry.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.Registry.d.ts new file mode 100644 index 00000000..85028eab --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.Registry.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + interface Registry { + // @ts-ignore + ADVANCEMENT: org.bukkit.Registry; + // @ts-ignore + ART: org.bukkit.Registry; + // @ts-ignore + BIOME: org.bukkit.Registry; + // @ts-ignore + BOSS_BARS: org.bukkit.Registry; + // @ts-ignore + ENCHANTMENT: org.bukkit.Registry; + // @ts-ignore + ENTITY_TYPE: org.bukkit.Registry; + // @ts-ignore + LOOT_TABLES: org.bukkit.Registry; + // @ts-ignore + MATERIAL: org.bukkit.Registry; + // @ts-ignore + STATISTIC: org.bukkit.Registry; + // @ts-ignore + VILLAGER_PROFESSION: org.bukkit.Registry; + // @ts-ignore + VILLAGER_TYPE: org.bukkit.Registry; + // @ts-ignore + MEMORY_MODULE_TYPE: org.bukkit.Registry; + /** + * Get the object by its key. + */ + // @ts-ignore + get(key: org.bukkit.NamespacedKey): org.bukkit.Keyed; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.Rotation.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.Rotation.d.ts new file mode 100644 index 00000000..4ca5e0dc --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.Rotation.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class Rotation extends java.lang.Enum { + // @ts-ignore + public static NONE: org.bukkit.Rotation; + // @ts-ignore + public static CLOCKWISE_45: org.bukkit.Rotation; + // @ts-ignore + public static CLOCKWISE: org.bukkit.Rotation; + // @ts-ignore + public static CLOCKWISE_135: org.bukkit.Rotation; + // @ts-ignore + public static FLIPPED: org.bukkit.Rotation; + // @ts-ignore + public static FLIPPED_45: org.bukkit.Rotation; + // @ts-ignore + public static COUNTER_CLOCKWISE: org.bukkit.Rotation; + // @ts-ignore + public static COUNTER_CLOCKWISE_45: org.bukkit.Rotation; + // @ts-ignore + public static values(): org.bukkit.Rotation[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.Rotation; + /** + * Rotate clockwise by 90 degrees. + */ + // @ts-ignore + public rotateClockwise(): org.bukkit.Rotation; + /** + * Rotate counter-clockwise by 90 degrees. + */ + // @ts-ignore + public rotateCounterClockwise(): org.bukkit.Rotation; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.SandstoneType.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.SandstoneType.d.ts new file mode 100644 index 00000000..2876f7d0 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.SandstoneType.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class SandstoneType extends java.lang.Enum { + // @ts-ignore + public static CRACKED: org.bukkit.SandstoneType; + // @ts-ignore + public static GLYPHED: org.bukkit.SandstoneType; + // @ts-ignore + public static SMOOTH: org.bukkit.SandstoneType; + // @ts-ignore + public static values(): org.bukkit.SandstoneType[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.SandstoneType; + /** + * Gets the associated data value representing this type of sandstone + */ + // @ts-ignore + public getData(): number; + /** + * Gets the type of sandstone with the given data value + */ + // @ts-ignore + public static getByData(data: number): org.bukkit.SandstoneType; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.Server.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.Server.d.ts new file mode 100644 index 00000000..ee5800db --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.Server.d.ts @@ -0,0 +1,767 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + interface Server extends org.bukkit.plugin.messaging.PluginMessageRecipient { + // @ts-ignore + BROADCAST_CHANNEL_ADMINISTRATIVE: string; + // @ts-ignore + BROADCAST_CHANNEL_USERS: string; + /** + * Gets the name of this server implementation. + */ + // @ts-ignore + getName(): string; + /** + * Gets the version string of this server implementation. + */ + // @ts-ignore + getVersion(): string; + /** + * Gets the Bukkit version that this server is running. + */ + // @ts-ignore + getBukkitVersion(): string; + /** + * Gets a view of all currently logged in players. This {@linkplain + * Collections#unmodifiableCollection(Collection) view} is a reused + * object, making some operations like {@link Collection#size()} + * zero-allocation. + *

+ * The collection is a view backed by the internal representation, such + * that, changes to the internal state of the server will be reflected + * immediately. However, the reuse of the returned collection (identity) + * is not strictly guaranteed for future or all implementations. Casting + * the collection, or relying on interface implementations (like {@link + * Serializable} or {@link List}), is deprecated. + *

+ * Iteration behavior is undefined outside of self-contained main-thread + * uses. Normal and immediate iterator use without consequences that + * affect the collection are fully supported. The effects following + * (non-exhaustive) {@link Entity#teleport(Location) teleportation}, + * {@link Player#setHealth(double) death}, and {@link Player#kickPlayer( + * String) kicking} are undefined. Any use of this collection from + * asynchronous threads is unsafe. + *

+ * For safe consequential iteration or mimicking the old array behavior, + * using {@link Collection#toArray(Object[])} is recommended. For making + * snapshots, {@link ImmutableList#copyOf(Collection)} is recommended. + */ + // @ts-ignore + getOnlinePlayers(): java.util.Collection; + /** + * Get the maximum amount of players which can login to this server. + */ + // @ts-ignore + getMaxPlayers(): number; + /** + * Get the game port that the server runs on. + */ + // @ts-ignore + getPort(): number; + /** + * Get the view distance from this server. + */ + // @ts-ignore + getViewDistance(): number; + /** + * Get the IP that this server is bound to, or empty string if not + * specified. + */ + // @ts-ignore + getIp(): string; + /** + * Get world type (level-type setting) for default world. + */ + // @ts-ignore + getWorldType(): string; + /** + * Get generate-structures setting. + */ + // @ts-ignore + getGenerateStructures(): boolean; + /** + * Gets whether this server allows the End or not. + */ + // @ts-ignore + getAllowEnd(): boolean; + /** + * Gets whether this server allows the Nether or not. + */ + // @ts-ignore + getAllowNether(): boolean; + /** + * Gets whether this server has a whitelist or not. + */ + // @ts-ignore + hasWhitelist(): boolean; + /** + * Sets if the server is whitelisted. + */ + // @ts-ignore + setWhitelist(value: boolean): void; + /** + * Gets a list of whitelisted players. + */ + // @ts-ignore + getWhitelistedPlayers(): java.util.Set; + /** + * Reloads the whitelist from disk. + */ + // @ts-ignore + reloadWhitelist(): void; + /** + * Broadcast a message to all players. + *

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

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

+ * Example Usage: + *

    + *
  • A value of 1 will mean the server will attempt to spawn monsters + * every tick. + *
  • A value of 400 will mean the server will attempt to spawn monsters + * every 400th tick. + *
  • A value below 0 will be reset back to Minecraft's default. + *
+ *

+ * Note: If set to 0, animal spawning will be disabled. We + * recommend using spawn-animals to control this instead. + *

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

+ * Example Usage: + *

    + *
  • A value of 1 will mean the server will attempt to spawn monsters + * every tick. + *
  • A value of 400 will mean the server will attempt to spawn monsters + * every 400th tick. + *
  • A value below 0 will be reset back to Minecraft's default. + *
+ *

+ * Note: If set to 0, monsters spawning will be disabled. We + * recommend using spawn-monsters to control this instead. + *

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

+ * This method may not return objects for offline players. + */ + // @ts-ignore + getPlayer(name: string): org.bukkit.entity.Player; + /** + * Gets the player with the exact given name, case insensitive. + */ + // @ts-ignore + getPlayerExact(name: string): org.bukkit.entity.Player; + /** + * Attempts to match any players with the given name, and returns a list + * of all possibly matches. + *

+ * This list is not sorted in any particular order. If an exact match is + * found, the returned list will only contain a single result. + */ + // @ts-ignore + matchPlayer(name: string): java.util.List; + /** + * Gets the player with the given UUID. + */ + // @ts-ignore + getPlayer(id: java.util.UUID): org.bukkit.entity.Player; + /** + * Gets the plugin manager for interfacing with plugins. + */ + // @ts-ignore + getPluginManager(): org.bukkit.plugin.PluginManager; + /** + * Gets the scheduler for managing scheduled events. + */ + // @ts-ignore + getScheduler(): org.bukkit.scheduler.BukkitScheduler; + /** + * Gets a services manager. + */ + // @ts-ignore + getServicesManager(): org.bukkit.plugin.ServicesManager; + /** + * Gets a list of all worlds on this server. + */ + // @ts-ignore + getWorlds(): java.util.List; + /** + * Creates or loads a world with the given name using the specified + * options. + *

+ * If the world is already loaded, it will just return the equivalent of + * getWorld(creator.name()). + */ + // @ts-ignore + createWorld(creator: org.bukkit.WorldCreator): org.bukkit.World; + /** + * Unloads a world with the given name. + */ + // @ts-ignore + unloadWorld(name: string, save: boolean): boolean; + /** + * Unloads the given world. + */ + // @ts-ignore + unloadWorld(world: org.bukkit.World, save: boolean): boolean; + /** + * Gets the world with the given name. + */ + // @ts-ignore + getWorld(name: string): org.bukkit.World; + /** + * Gets the world from the given Unique ID. + */ + // @ts-ignore + getWorld(uid: java.util.UUID): org.bukkit.World; + /** + * Gets the map from the given item ID. + */ + // @ts-ignore + getMap(id: number): org.bukkit.map.MapView; + /** + * Create a new map with an automatically assigned ID. + */ + // @ts-ignore + createMap(world: org.bukkit.World): org.bukkit.map.MapView; + /** + * Create a new explorer map targeting the closest nearby structure of a + * given {@link StructureType}. + *
+ * This method uses implementation default values for radius and + * findUnexplored (usually 100, true). + */ + // @ts-ignore + createExplorerMap(world: org.bukkit.World, location: org.bukkit.Location, structureType: org.bukkit.StructureType): org.bukkit.inventory.ItemStack; + /** + * Create a new explorer map targeting the closest nearby structure of a + * given {@link StructureType}. + *
+ * This method uses implementation default values for radius and + * findUnexplored (usually 100, true). + */ + // @ts-ignore + createExplorerMap(world: org.bukkit.World, location: org.bukkit.Location, structureType: org.bukkit.StructureType, radius: number, findUnexplored: boolean): org.bukkit.inventory.ItemStack; + /** + * Reloads the server, refreshing settings and plugin information. + */ + // @ts-ignore + reload(): void; + /** + * Reload only the Minecraft data for the server. This includes custom + * advancements and loot tables. + */ + // @ts-ignore + reloadData(): void; + /** + * Returns the primary logger associated with this server instance. + */ + // @ts-ignore + getLogger(): java.util.logging.Logger; + /** + * Gets a {@link PluginCommand} with the given name or alias. + */ + // @ts-ignore + getPluginCommand(name: string): org.bukkit.command.PluginCommand; + /** + * Writes loaded players to disk. + */ + // @ts-ignore + savePlayers(): void; + /** + * Dispatches a command on this server, and executes it if found. + */ + // @ts-ignore + dispatchCommand(sender: org.bukkit.command.CommandSender, commandLine: string): boolean; + /** + * Adds a recipe to the crafting manager. + */ + // @ts-ignore + addRecipe(recipe: org.bukkit.inventory.Recipe): boolean; + /** + * Get a list of all recipes for a given item. The stack size is ignored + * in comparisons. If the durability is -1, it will match any data value. + */ + // @ts-ignore + getRecipesFor(result: org.bukkit.inventory.ItemStack): java.util.List; + /** + * Get an iterator through the list of crafting recipes. + */ + // @ts-ignore + recipeIterator(): java.util.Iterator; + /** + * Clears the list of crafting recipes. + */ + // @ts-ignore + clearRecipes(): void; + /** + * Resets the list of crafting recipes to the default. + */ + // @ts-ignore + resetRecipes(): void; + /** + * Gets a list of command aliases defined in the server properties. + */ + // @ts-ignore + getCommandAliases(): java.util.Map; + /** + * Gets the radius, in blocks, around each worlds spawn point to protect. + */ + // @ts-ignore + getSpawnRadius(): number; + /** + * Sets the radius, in blocks, around each worlds spawn point to protect. + */ + // @ts-ignore + setSpawnRadius(value: number): void; + /** + * Gets whether the Server is in online mode or not. + */ + // @ts-ignore + getOnlineMode(): boolean; + /** + * Gets whether this server allows flying or not. + */ + // @ts-ignore + getAllowFlight(): boolean; + /** + * Gets whether the server is in hardcore mode or not. + */ + // @ts-ignore + isHardcore(): boolean; + /** + * Shutdowns the server, stopping everything. + */ + // @ts-ignore + shutdown(): void; + /** + * Broadcasts the specified message to every user with the given + * permission name. + */ + // @ts-ignore + broadcast(message: string, permission: string): number; + /** + * Gets the player by the given name, regardless if they are offline or + * online. + *

+ * This method may involve a blocking web request to get the UUID for the + * given name. + *

+ * This will return an object even if the player does not exist. To this + * method, all players will exist. + */ + // @ts-ignore + getOfflinePlayer(name: string): org.bukkit.OfflinePlayer; + /** + * Gets the player by the given UUID, regardless if they are offline or + * online. + *

+ * This will return an object even if the player does not exist. To this + * method, all players will exist. + */ + // @ts-ignore + getOfflinePlayer(id: java.util.UUID): org.bukkit.OfflinePlayer; + /** + * Gets a set containing all current IPs that are banned. + */ + // @ts-ignore + getIPBans(): java.util.Set; + /** + * Bans the specified address from the server. + */ + // @ts-ignore + banIP(address: string): void; + /** + * Unbans the specified address from the server. + */ + // @ts-ignore + unbanIP(address: string): void; + /** + * Gets a set containing all banned players. + */ + // @ts-ignore + getBannedPlayers(): java.util.Set; + /** + * Gets a ban list for the supplied type. + *

+ * Bans by name are no longer supported and this method will return + * null when trying to request them. The replacement is bans by UUID. + */ + // @ts-ignore + getBanList(type: org.bukkit.BanList.Type): org.bukkit.BanList; + /** + * Gets a set containing all player operators. + */ + // @ts-ignore + getOperators(): java.util.Set; + /** + * Gets the default {@link GameMode} for new players. + */ + // @ts-ignore + getDefaultGameMode(): org.bukkit.GameMode; + /** + * Sets the default {@link GameMode} for new players. + */ + // @ts-ignore + setDefaultGameMode(mode: org.bukkit.GameMode): void; + /** + * Gets a {@link ConsoleCommandSender} that may be used as an input source + * for this server. + */ + // @ts-ignore + getConsoleSender(): org.bukkit.command.ConsoleCommandSender; + /** + * Gets the folder that contains all of the various {@link World}s. + */ + // @ts-ignore + getWorldContainer(): java.io.File; + /** + * Gets every player that has ever played on this server. + */ + // @ts-ignore + getOfflinePlayers(): org.bukkit.OfflinePlayer[]; + /** + * Gets the {@link Messenger} responsible for this server. + */ + // @ts-ignore + getMessenger(): org.bukkit.plugin.messaging.Messenger; + /** + * Gets the {@link HelpMap} providing help topics for this server. + */ + // @ts-ignore + getHelpMap(): org.bukkit.help.HelpMap; + /** + * Creates an empty inventory with the specified type. If the type + * is {@link InventoryType#CHEST}, the new inventory has a size of 27; + * otherwise the new inventory has the normal size for its type. + *
+ * {@link InventoryType#WORKBENCH} will not process crafting recipes if + * created with this method. Use + * {@link Player#openWorkbench(Location, boolean)} instead. + *
+ * {@link InventoryType#ENCHANTING} will not process {@link ItemStack}s + * for possible enchanting results. Use + * {@link Player#openEnchanting(Location, boolean)} instead. + */ + // @ts-ignore + createInventory(owner: org.bukkit.inventory.InventoryHolder, type: org.bukkit.event.inventory.InventoryType): org.bukkit.inventory.Inventory; + /** + * Creates an empty inventory with the specified type and title. If the type + * is {@link InventoryType#CHEST}, the new inventory has a size of 27; + * otherwise the new inventory has the normal size for its type.
+ * It should be noted that some inventory types do not support titles and + * may not render with said titles on the Minecraft client. + *
+ * {@link InventoryType#WORKBENCH} will not process crafting recipes if + * created with this method. Use + * {@link Player#openWorkbench(Location, boolean)} instead. + *
+ * {@link InventoryType#ENCHANTING} will not process {@link ItemStack}s + * for possible enchanting results. Use + * {@link Player#openEnchanting(Location, boolean)} instead. + */ + // @ts-ignore + createInventory(owner: org.bukkit.inventory.InventoryHolder, type: org.bukkit.event.inventory.InventoryType, title: string): org.bukkit.inventory.Inventory; + /** + * Creates an empty inventory of type {@link InventoryType#CHEST} with the + * specified size. + */ + // @ts-ignore + createInventory(owner: org.bukkit.inventory.InventoryHolder, size: number): org.bukkit.inventory.Inventory; + /** + * Creates an empty inventory of type {@link InventoryType#CHEST} with the + * specified size and title. + */ + // @ts-ignore + createInventory(owner: org.bukkit.inventory.InventoryHolder, size: number, title: string): org.bukkit.inventory.Inventory; + /** + * Creates an empty merchant. + */ + // @ts-ignore + createMerchant(title: string): org.bukkit.inventory.Merchant; + /** + * Gets user-specified limit for number of monsters that can spawn in a + * chunk. + */ + // @ts-ignore + getMonsterSpawnLimit(): number; + /** + * Gets user-specified limit for number of animals that can spawn in a + * chunk. + */ + // @ts-ignore + getAnimalSpawnLimit(): number; + /** + * Gets user-specified limit for number of water animals that can spawn in + * a chunk. + */ + // @ts-ignore + getWaterAnimalSpawnLimit(): number; + /** + * Gets user-specified limit for number of ambient mobs that can spawn in + * a chunk. + */ + // @ts-ignore + getAmbientSpawnLimit(): number; + /** + * Checks the current thread against the expected primary thread for the + * server. + *

+ * Note: this method should not be used to indicate the current + * synchronized state of the runtime. A current thread matching the main + * thread indicates that it is synchronized, but a mismatch does not + * preclude the same assumption. + */ + // @ts-ignore + isPrimaryThread(): boolean; + /** + * Gets the message that is displayed on the server list. + */ + // @ts-ignore + getMotd(): string; + /** + * Gets the default message that is displayed when the server is stopped. + */ + // @ts-ignore + getShutdownMessage(): string; + /** + * Gets the current warning state for the server. + */ + // @ts-ignore + getWarningState(): org.bukkit.Warning.WarningState; + /** + * Gets the instance of the item factory (for {@link ItemMeta}). + */ + // @ts-ignore + getItemFactory(): org.bukkit.inventory.ItemFactory; + /** + * Gets the instance of the scoreboard manager. + *

+ * This will only exist after the first world has loaded. + */ + // @ts-ignore + getScoreboardManager(): org.bukkit.scoreboard.ScoreboardManager; + /** + * Gets an instance of the server's default server-icon. + */ + // @ts-ignore + getServerIcon(): org.bukkit.util.CachedServerIcon; + /** + * Loads an image from a file, and returns a cached image for the specific + * server-icon. + *

+ * Size and type are implementation defined. An incompatible file is + * guaranteed to throw an implementation-defined {@link Exception}. + */ + // @ts-ignore + loadServerIcon(file: java.io.File): org.bukkit.util.CachedServerIcon; + /** + * Creates a cached server-icon for the specific image. + *

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

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

    + *
  • not bound to a {@link org.bukkit.entity.Boss}
  • + *
  • + * not created using + * {@link #createBossBar(String, BarColor, BarStyle, BarFlag...)} + *
  • + *
+ * e.g. bossbars created using the bossbar command + */ + // @ts-ignore + getBossBars(): java.util.Iterator; + /** + * Gets the {@link KeyedBossBar} specified by this key. + *
    + *
  • not bound to a {@link org.bukkit.entity.Boss}
  • + *
  • + * not created using + * {@link #createBossBar(String, BarColor, BarStyle, BarFlag...)} + *
  • + *
+ * e.g. bossbars created using the bossbar command + */ + // @ts-ignore + getBossBar(key: org.bukkit.NamespacedKey): org.bukkit.boss.KeyedBossBar; + /** + * Removes a {@link KeyedBossBar} specified by this key. + *
    + *
  • not bound to a {@link org.bukkit.entity.Boss}
  • + *
  • + * not created using + * {@link #createBossBar(String, BarColor, BarStyle, BarFlag...)} + *
  • + *
+ * e.g. bossbars created using the bossbar command + */ + // @ts-ignore + removeBossBar(key: org.bukkit.NamespacedKey): boolean; + /** + * Gets an entity on the server by its UUID + */ + // @ts-ignore + getEntity(uuid: java.util.UUID): org.bukkit.entity.Entity; + /** + * Get the advancement specified by this key. + */ + // @ts-ignore + getAdvancement(key: org.bukkit.NamespacedKey): org.bukkit.advancement.Advancement; + /** + * Get an iterator through all advancements. Advancements cannot be removed + * from this iterator, + */ + // @ts-ignore + advancementIterator(): java.util.Iterator; + /** + * Creates a new {@link BlockData} instance for the specified Material, with + * all properties initialized to unspecified defaults. + */ + // @ts-ignore + createBlockData(material: org.bukkit.Material): org.bukkit.block.data.BlockData; + /** + * Creates a new {@link BlockData} instance for the specified Material, with + * all properties initialized to unspecified defaults. + */ + // @ts-ignore + createBlockData(material: org.bukkit.Material, consumer: java.util.function$.Consumer): org.bukkit.block.data.BlockData; + /** + * Creates a new {@link BlockData} instance with material and properties + * parsed from provided data. + */ + // @ts-ignore + createBlockData(data: string): org.bukkit.block.data.BlockData; + /** + * Creates a new {@link BlockData} instance for the specified Material, with + * all properties initialized to unspecified defaults, except for those + * provided in data. + *
+ * If material is specified, then the data string must not also + * contain the material. + */ + // @ts-ignore + createBlockData(material: org.bukkit.Material, data: string): org.bukkit.block.data.BlockData; + /** + * Gets a tag which has already been defined within the server. Plugins are + * suggested to use the concrete tags in {@link Tag} rather than this method + * which makes no guarantees about which tags are available, and may also be + * less performant due to lack of caching. + *
+ * Tags will be searched for in an implementation specific manner, but a + * path consisting of namespace/tags/registry/key is expected. + *
+ * Server implementations are allowed to handle only the registries + * indicated in {@link Tag}. + */ + // @ts-ignore + getTag(registry: string, tag: org.bukkit.NamespacedKey, clazz: java.lang.Class): org.bukkit.Tag; + /** + * Gets a all tags which have been defined within the server. + *
+ * Server implementations are allowed to handle only the registries + * indicated in {@link Tag}. + *
+ * No guarantees are made about the mutability of the returned iterator. + */ + // @ts-ignore + getTags(registry: string, clazz: java.lang.Class): java.lang.Iterable; + /** + * Gets the specified {@link LootTable}. + */ + // @ts-ignore + getLootTable(key: org.bukkit.NamespacedKey): org.bukkit.loot.LootTable; + /** + * Selects entities using the given Vanilla selector. + *
+ * No guarantees are made about the selector format, other than they match + * the Vanilla format for the active Minecraft version. + *
+ * Usually a selector will start with '@', unless selecting a Player in + * which case it may simply be the Player's name or UUID. + *
+ * Note that in Vanilla, elevated permissions are usually required to use + * '@' selectors, but this method should not check such permissions from the + * sender. + */ + // @ts-ignore + selectEntities(sender: org.bukkit.command.CommandSender, selector: string): java.util.List; + // @ts-ignore + getUnsafe(): org.bukkit.UnsafeValues; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.SkullType.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.SkullType.d.ts new file mode 100644 index 00000000..3931521a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.SkullType.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class SkullType extends java.lang.Enum { + // @ts-ignore + public static SKELETON: org.bukkit.SkullType; + // @ts-ignore + public static WITHER: org.bukkit.SkullType; + // @ts-ignore + public static ZOMBIE: org.bukkit.SkullType; + // @ts-ignore + public static PLAYER: org.bukkit.SkullType; + // @ts-ignore + public static CREEPER: org.bukkit.SkullType; + // @ts-ignore + public static DRAGON: org.bukkit.SkullType; + // @ts-ignore + public static values(): org.bukkit.SkullType[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.SkullType; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.Sound.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.Sound.d.ts new file mode 100644 index 00000000..32c371a1 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.Sound.d.ts @@ -0,0 +1,1602 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class Sound { + // @ts-ignore + public static AMBIENT_CAVE: any; + // @ts-ignore + public static AMBIENT_UNDERWATER_ENTER: any; + // @ts-ignore + public static AMBIENT_UNDERWATER_EXIT: any; + // @ts-ignore + public static AMBIENT_UNDERWATER_LOOP: any; + // @ts-ignore + public static AMBIENT_UNDERWATER_LOOP_ADDITIONS: any; + // @ts-ignore + public static AMBIENT_UNDERWATER_LOOP_ADDITIONS_RARE: any; + // @ts-ignore + public static AMBIENT_UNDERWATER_LOOP_ADDITIONS_ULTRA_RARE: any; + // @ts-ignore + public static BLOCK_ANVIL_BREAK: any; + // @ts-ignore + public static BLOCK_ANVIL_DESTROY: any; + // @ts-ignore + public static BLOCK_ANVIL_FALL: any; + // @ts-ignore + public static BLOCK_ANVIL_HIT: any; + // @ts-ignore + public static BLOCK_ANVIL_LAND: any; + // @ts-ignore + public static BLOCK_ANVIL_PLACE: any; + // @ts-ignore + public static BLOCK_ANVIL_STEP: any; + // @ts-ignore + public static BLOCK_ANVIL_USE: any; + // @ts-ignore + public static BLOCK_BAMBOO_BREAK: any; + // @ts-ignore + public static BLOCK_BAMBOO_FALL: any; + // @ts-ignore + public static BLOCK_BAMBOO_HIT: any; + // @ts-ignore + public static BLOCK_BAMBOO_PLACE: any; + // @ts-ignore + public static BLOCK_BAMBOO_SAPLING_BREAK: any; + // @ts-ignore + public static BLOCK_BAMBOO_SAPLING_HIT: any; + // @ts-ignore + public static BLOCK_BAMBOO_SAPLING_PLACE: any; + // @ts-ignore + public static BLOCK_BAMBOO_STEP: any; + // @ts-ignore + public static BLOCK_BARREL_CLOSE: any; + // @ts-ignore + public static BLOCK_BARREL_OPEN: any; + // @ts-ignore + public static BLOCK_BEACON_ACTIVATE: any; + // @ts-ignore + public static BLOCK_BEACON_AMBIENT: any; + // @ts-ignore + public static BLOCK_BEACON_DEACTIVATE: any; + // @ts-ignore + public static BLOCK_BEACON_POWER_SELECT: any; + // @ts-ignore + public static BLOCK_BELL_RESONATE: any; + // @ts-ignore + public static BLOCK_BELL_USE: any; + // @ts-ignore + public static BLOCK_BLASTFURNACE_FIRE_CRACKLE: any; + // @ts-ignore + public static BLOCK_BREWING_STAND_BREW: any; + // @ts-ignore + public static BLOCK_BUBBLE_COLUMN_BUBBLE_POP: any; + // @ts-ignore + public static BLOCK_BUBBLE_COLUMN_UPWARDS_AMBIENT: any; + // @ts-ignore + public static BLOCK_BUBBLE_COLUMN_UPWARDS_INSIDE: any; + // @ts-ignore + public static BLOCK_BUBBLE_COLUMN_WHIRLPOOL_AMBIENT: any; + // @ts-ignore + public static BLOCK_BUBBLE_COLUMN_WHIRLPOOL_INSIDE: any; + // @ts-ignore + public static BLOCK_CAMPFIRE_CRACKLE: any; + // @ts-ignore + public static BLOCK_CHEST_CLOSE: any; + // @ts-ignore + public static BLOCK_CHEST_LOCKED: any; + // @ts-ignore + public static BLOCK_CHEST_OPEN: any; + // @ts-ignore + public static BLOCK_CHORUS_FLOWER_DEATH: any; + // @ts-ignore + public static BLOCK_CHORUS_FLOWER_GROW: any; + // @ts-ignore + public static BLOCK_COMPARATOR_CLICK: any; + // @ts-ignore + public static BLOCK_COMPOSTER_EMPTY: any; + // @ts-ignore + public static BLOCK_COMPOSTER_FILL: any; + // @ts-ignore + public static BLOCK_COMPOSTER_FILL_SUCCESS: any; + // @ts-ignore + public static BLOCK_COMPOSTER_READY: any; + // @ts-ignore + public static BLOCK_CONDUIT_ACTIVATE: any; + // @ts-ignore + public static BLOCK_CONDUIT_AMBIENT: any; + // @ts-ignore + public static BLOCK_CONDUIT_AMBIENT_SHORT: any; + // @ts-ignore + public static BLOCK_CONDUIT_ATTACK_TARGET: any; + // @ts-ignore + public static BLOCK_CONDUIT_DEACTIVATE: any; + // @ts-ignore + public static BLOCK_CORAL_BLOCK_BREAK: any; + // @ts-ignore + public static BLOCK_CORAL_BLOCK_FALL: any; + // @ts-ignore + public static BLOCK_CORAL_BLOCK_HIT: any; + // @ts-ignore + public static BLOCK_CORAL_BLOCK_PLACE: any; + // @ts-ignore + public static BLOCK_CORAL_BLOCK_STEP: any; + // @ts-ignore + public static BLOCK_CROP_BREAK: any; + // @ts-ignore + public static BLOCK_DISPENSER_DISPENSE: any; + // @ts-ignore + public static BLOCK_DISPENSER_FAIL: any; + // @ts-ignore + public static BLOCK_DISPENSER_LAUNCH: any; + // @ts-ignore + public static BLOCK_ENCHANTMENT_TABLE_USE: any; + // @ts-ignore + public static BLOCK_ENDER_CHEST_CLOSE: any; + // @ts-ignore + public static BLOCK_ENDER_CHEST_OPEN: any; + // @ts-ignore + public static BLOCK_END_GATEWAY_SPAWN: any; + // @ts-ignore + public static BLOCK_END_PORTAL_FRAME_FILL: any; + // @ts-ignore + public static BLOCK_END_PORTAL_SPAWN: any; + // @ts-ignore + public static BLOCK_FENCE_GATE_CLOSE: any; + // @ts-ignore + public static BLOCK_FENCE_GATE_OPEN: any; + // @ts-ignore + public static BLOCK_FIRE_AMBIENT: any; + // @ts-ignore + public static BLOCK_FIRE_EXTINGUISH: any; + // @ts-ignore + public static BLOCK_FURNACE_FIRE_CRACKLE: any; + // @ts-ignore + public static BLOCK_GLASS_BREAK: any; + // @ts-ignore + public static BLOCK_GLASS_FALL: any; + // @ts-ignore + public static BLOCK_GLASS_HIT: any; + // @ts-ignore + public static BLOCK_GLASS_PLACE: any; + // @ts-ignore + public static BLOCK_GLASS_STEP: any; + // @ts-ignore + public static BLOCK_GRASS_BREAK: any; + // @ts-ignore + public static BLOCK_GRASS_FALL: any; + // @ts-ignore + public static BLOCK_GRASS_HIT: any; + // @ts-ignore + public static BLOCK_GRASS_PLACE: any; + // @ts-ignore + public static BLOCK_GRASS_STEP: any; + // @ts-ignore + public static BLOCK_GRAVEL_BREAK: any; + // @ts-ignore + public static BLOCK_GRAVEL_FALL: any; + // @ts-ignore + public static BLOCK_GRAVEL_HIT: any; + // @ts-ignore + public static BLOCK_GRAVEL_PLACE: any; + // @ts-ignore + public static BLOCK_GRAVEL_STEP: any; + // @ts-ignore + public static BLOCK_GRINDSTONE_USE: any; + // @ts-ignore + public static BLOCK_IRON_DOOR_CLOSE: any; + // @ts-ignore + public static BLOCK_IRON_DOOR_OPEN: any; + // @ts-ignore + public static BLOCK_IRON_TRAPDOOR_CLOSE: any; + // @ts-ignore + public static BLOCK_IRON_TRAPDOOR_OPEN: any; + // @ts-ignore + public static BLOCK_LADDER_BREAK: any; + // @ts-ignore + public static BLOCK_LADDER_FALL: any; + // @ts-ignore + public static BLOCK_LADDER_HIT: any; + // @ts-ignore + public static BLOCK_LADDER_PLACE: any; + // @ts-ignore + public static BLOCK_LADDER_STEP: any; + // @ts-ignore + public static BLOCK_LANTERN_BREAK: any; + // @ts-ignore + public static BLOCK_LANTERN_FALL: any; + // @ts-ignore + public static BLOCK_LANTERN_HIT: any; + // @ts-ignore + public static BLOCK_LANTERN_PLACE: any; + // @ts-ignore + public static BLOCK_LANTERN_STEP: any; + // @ts-ignore + public static BLOCK_LAVA_AMBIENT: any; + // @ts-ignore + public static BLOCK_LAVA_EXTINGUISH: any; + // @ts-ignore + public static BLOCK_LAVA_POP: any; + // @ts-ignore + public static BLOCK_LEVER_CLICK: any; + // @ts-ignore + public static BLOCK_LILY_PAD_PLACE: any; + // @ts-ignore + public static BLOCK_METAL_BREAK: any; + // @ts-ignore + public static BLOCK_METAL_FALL: any; + // @ts-ignore + public static BLOCK_METAL_HIT: any; + // @ts-ignore + public static BLOCK_METAL_PLACE: any; + // @ts-ignore + public static BLOCK_METAL_PRESSURE_PLATE_CLICK_OFF: any; + // @ts-ignore + public static BLOCK_METAL_PRESSURE_PLATE_CLICK_ON: any; + // @ts-ignore + public static BLOCK_METAL_STEP: any; + // @ts-ignore + public static BLOCK_NETHER_WART_BREAK: any; + // @ts-ignore + public static BLOCK_NOTE_BLOCK_BANJO: any; + // @ts-ignore + public static BLOCK_NOTE_BLOCK_BASEDRUM: any; + // @ts-ignore + public static BLOCK_NOTE_BLOCK_BASS: any; + // @ts-ignore + public static BLOCK_NOTE_BLOCK_BELL: any; + // @ts-ignore + public static BLOCK_NOTE_BLOCK_BIT: any; + // @ts-ignore + public static BLOCK_NOTE_BLOCK_CHIME: any; + // @ts-ignore + public static BLOCK_NOTE_BLOCK_COW_BELL: any; + // @ts-ignore + public static BLOCK_NOTE_BLOCK_DIDGERIDOO: any; + // @ts-ignore + public static BLOCK_NOTE_BLOCK_FLUTE: any; + // @ts-ignore + public static BLOCK_NOTE_BLOCK_GUITAR: any; + // @ts-ignore + public static BLOCK_NOTE_BLOCK_HARP: any; + // @ts-ignore + public static BLOCK_NOTE_BLOCK_HAT: any; + // @ts-ignore + public static BLOCK_NOTE_BLOCK_IRON_XYLOPHONE: any; + // @ts-ignore + public static BLOCK_NOTE_BLOCK_PLING: any; + // @ts-ignore + public static BLOCK_NOTE_BLOCK_SNARE: any; + // @ts-ignore + public static BLOCK_NOTE_BLOCK_XYLOPHONE: any; + // @ts-ignore + public static BLOCK_PISTON_CONTRACT: any; + // @ts-ignore + public static BLOCK_PISTON_EXTEND: any; + // @ts-ignore + public static BLOCK_PORTAL_AMBIENT: any; + // @ts-ignore + public static BLOCK_PORTAL_TRAVEL: any; + // @ts-ignore + public static BLOCK_PORTAL_TRIGGER: any; + // @ts-ignore + public static BLOCK_PUMPKIN_CARVE: any; + // @ts-ignore + public static BLOCK_REDSTONE_TORCH_BURNOUT: any; + // @ts-ignore + public static BLOCK_SAND_BREAK: any; + // @ts-ignore + public static BLOCK_SAND_FALL: any; + // @ts-ignore + public static BLOCK_SAND_HIT: any; + // @ts-ignore + public static BLOCK_SAND_PLACE: any; + // @ts-ignore + public static BLOCK_SAND_STEP: any; + // @ts-ignore + public static BLOCK_SCAFFOLDING_BREAK: any; + // @ts-ignore + public static BLOCK_SCAFFOLDING_FALL: any; + // @ts-ignore + public static BLOCK_SCAFFOLDING_HIT: any; + // @ts-ignore + public static BLOCK_SCAFFOLDING_PLACE: any; + // @ts-ignore + public static BLOCK_SCAFFOLDING_STEP: any; + // @ts-ignore + public static BLOCK_SHULKER_BOX_CLOSE: any; + // @ts-ignore + public static BLOCK_SHULKER_BOX_OPEN: any; + // @ts-ignore + public static BLOCK_SLIME_BLOCK_BREAK: any; + // @ts-ignore + public static BLOCK_SLIME_BLOCK_FALL: any; + // @ts-ignore + public static BLOCK_SLIME_BLOCK_HIT: any; + // @ts-ignore + public static BLOCK_SLIME_BLOCK_PLACE: any; + // @ts-ignore + public static BLOCK_SLIME_BLOCK_STEP: any; + // @ts-ignore + public static BLOCK_SMOKER_SMOKE: any; + // @ts-ignore + public static BLOCK_SNOW_BREAK: any; + // @ts-ignore + public static BLOCK_SNOW_FALL: any; + // @ts-ignore + public static BLOCK_SNOW_HIT: any; + // @ts-ignore + public static BLOCK_SNOW_PLACE: any; + // @ts-ignore + public static BLOCK_SNOW_STEP: any; + // @ts-ignore + public static BLOCK_STONE_BREAK: any; + // @ts-ignore + public static BLOCK_STONE_BUTTON_CLICK_OFF: any; + // @ts-ignore + public static BLOCK_STONE_BUTTON_CLICK_ON: any; + // @ts-ignore + public static BLOCK_STONE_FALL: any; + // @ts-ignore + public static BLOCK_STONE_HIT: any; + // @ts-ignore + public static BLOCK_STONE_PLACE: any; + // @ts-ignore + public static BLOCK_STONE_PRESSURE_PLATE_CLICK_OFF: any; + // @ts-ignore + public static BLOCK_STONE_PRESSURE_PLATE_CLICK_ON: any; + // @ts-ignore + public static BLOCK_STONE_STEP: any; + // @ts-ignore + public static BLOCK_SWEET_BERRY_BUSH_BREAK: any; + // @ts-ignore + public static BLOCK_SWEET_BERRY_BUSH_PLACE: any; + // @ts-ignore + public static BLOCK_TRIPWIRE_ATTACH: any; + // @ts-ignore + public static BLOCK_TRIPWIRE_CLICK_OFF: any; + // @ts-ignore + public static BLOCK_TRIPWIRE_CLICK_ON: any; + // @ts-ignore + public static BLOCK_TRIPWIRE_DETACH: any; + // @ts-ignore + public static BLOCK_WATER_AMBIENT: any; + // @ts-ignore + public static BLOCK_WET_GRASS_BREAK: any; + // @ts-ignore + public static BLOCK_WET_GRASS_FALL: any; + // @ts-ignore + public static BLOCK_WET_GRASS_HIT: any; + // @ts-ignore + public static BLOCK_WET_GRASS_PLACE: any; + // @ts-ignore + public static BLOCK_WET_GRASS_STEP: any; + // @ts-ignore + public static BLOCK_WOODEN_BUTTON_CLICK_OFF: any; + // @ts-ignore + public static BLOCK_WOODEN_BUTTON_CLICK_ON: any; + // @ts-ignore + public static BLOCK_WOODEN_DOOR_CLOSE: any; + // @ts-ignore + public static BLOCK_WOODEN_DOOR_OPEN: any; + // @ts-ignore + public static BLOCK_WOODEN_PRESSURE_PLATE_CLICK_OFF: any; + // @ts-ignore + public static BLOCK_WOODEN_PRESSURE_PLATE_CLICK_ON: any; + // @ts-ignore + public static BLOCK_WOODEN_TRAPDOOR_CLOSE: any; + // @ts-ignore + public static BLOCK_WOODEN_TRAPDOOR_OPEN: any; + // @ts-ignore + public static BLOCK_WOOD_BREAK: any; + // @ts-ignore + public static BLOCK_WOOD_FALL: any; + // @ts-ignore + public static BLOCK_WOOD_HIT: any; + // @ts-ignore + public static BLOCK_WOOD_PLACE: any; + // @ts-ignore + public static BLOCK_WOOD_STEP: any; + // @ts-ignore + public static BLOCK_WOOL_BREAK: any; + // @ts-ignore + public static BLOCK_WOOL_FALL: any; + // @ts-ignore + public static BLOCK_WOOL_HIT: any; + // @ts-ignore + public static BLOCK_WOOL_PLACE: any; + // @ts-ignore + public static BLOCK_WOOL_STEP: any; + // @ts-ignore + public static ENCHANT_THORNS_HIT: any; + // @ts-ignore + public static ENTITY_ARMOR_STAND_BREAK: any; + // @ts-ignore + public static ENTITY_ARMOR_STAND_FALL: any; + // @ts-ignore + public static ENTITY_ARMOR_STAND_HIT: any; + // @ts-ignore + public static ENTITY_ARMOR_STAND_PLACE: any; + // @ts-ignore + public static ENTITY_ARROW_HIT: any; + // @ts-ignore + public static ENTITY_ARROW_HIT_PLAYER: any; + // @ts-ignore + public static ENTITY_ARROW_SHOOT: any; + // @ts-ignore + public static ENTITY_BAT_AMBIENT: any; + // @ts-ignore + public static ENTITY_BAT_DEATH: any; + // @ts-ignore + public static ENTITY_BAT_HURT: any; + // @ts-ignore + public static ENTITY_BAT_LOOP: any; + // @ts-ignore + public static ENTITY_BAT_TAKEOFF: any; + // @ts-ignore + public static ENTITY_BLAZE_AMBIENT: any; + // @ts-ignore + public static ENTITY_BLAZE_BURN: any; + // @ts-ignore + public static ENTITY_BLAZE_DEATH: any; + // @ts-ignore + public static ENTITY_BLAZE_HURT: any; + // @ts-ignore + public static ENTITY_BLAZE_SHOOT: any; + // @ts-ignore + public static ENTITY_BOAT_PADDLE_LAND: any; + // @ts-ignore + public static ENTITY_BOAT_PADDLE_WATER: any; + // @ts-ignore + public static ENTITY_CAT_AMBIENT: any; + // @ts-ignore + public static ENTITY_CAT_BEG_FOR_FOOD: any; + // @ts-ignore + public static ENTITY_CAT_DEATH: any; + // @ts-ignore + public static ENTITY_CAT_EAT: any; + // @ts-ignore + public static ENTITY_CAT_HISS: any; + // @ts-ignore + public static ENTITY_CAT_HURT: any; + // @ts-ignore + public static ENTITY_CAT_PURR: any; + // @ts-ignore + public static ENTITY_CAT_PURREOW: any; + // @ts-ignore + public static ENTITY_CAT_STRAY_AMBIENT: any; + // @ts-ignore + public static ENTITY_CHICKEN_AMBIENT: any; + // @ts-ignore + public static ENTITY_CHICKEN_DEATH: any; + // @ts-ignore + public static ENTITY_CHICKEN_EGG: any; + // @ts-ignore + public static ENTITY_CHICKEN_HURT: any; + // @ts-ignore + public static ENTITY_CHICKEN_STEP: any; + // @ts-ignore + public static ENTITY_COD_AMBIENT: any; + // @ts-ignore + public static ENTITY_COD_DEATH: any; + // @ts-ignore + public static ENTITY_COD_FLOP: any; + // @ts-ignore + public static ENTITY_COD_HURT: any; + // @ts-ignore + public static ENTITY_COW_AMBIENT: any; + // @ts-ignore + public static ENTITY_COW_DEATH: any; + // @ts-ignore + public static ENTITY_COW_HURT: any; + // @ts-ignore + public static ENTITY_COW_MILK: any; + // @ts-ignore + public static ENTITY_COW_STEP: any; + // @ts-ignore + public static ENTITY_CREEPER_DEATH: any; + // @ts-ignore + public static ENTITY_CREEPER_HURT: any; + // @ts-ignore + public static ENTITY_CREEPER_PRIMED: any; + // @ts-ignore + public static ENTITY_DOLPHIN_AMBIENT: any; + // @ts-ignore + public static ENTITY_DOLPHIN_AMBIENT_WATER: any; + // @ts-ignore + public static ENTITY_DOLPHIN_ATTACK: any; + // @ts-ignore + public static ENTITY_DOLPHIN_DEATH: any; + // @ts-ignore + public static ENTITY_DOLPHIN_EAT: any; + // @ts-ignore + public static ENTITY_DOLPHIN_HURT: any; + // @ts-ignore + public static ENTITY_DOLPHIN_JUMP: any; + // @ts-ignore + public static ENTITY_DOLPHIN_PLAY: any; + // @ts-ignore + public static ENTITY_DOLPHIN_SPLASH: any; + // @ts-ignore + public static ENTITY_DOLPHIN_SWIM: any; + // @ts-ignore + public static ENTITY_DONKEY_AMBIENT: any; + // @ts-ignore + public static ENTITY_DONKEY_ANGRY: any; + // @ts-ignore + public static ENTITY_DONKEY_CHEST: any; + // @ts-ignore + public static ENTITY_DONKEY_DEATH: any; + // @ts-ignore + public static ENTITY_DONKEY_HURT: any; + // @ts-ignore + public static ENTITY_DRAGON_FIREBALL_EXPLODE: any; + // @ts-ignore + public static ENTITY_DROWNED_AMBIENT: any; + // @ts-ignore + public static ENTITY_DROWNED_AMBIENT_WATER: any; + // @ts-ignore + public static ENTITY_DROWNED_DEATH: any; + // @ts-ignore + public static ENTITY_DROWNED_DEATH_WATER: any; + // @ts-ignore + public static ENTITY_DROWNED_HURT: any; + // @ts-ignore + public static ENTITY_DROWNED_HURT_WATER: any; + // @ts-ignore + public static ENTITY_DROWNED_SHOOT: any; + // @ts-ignore + public static ENTITY_DROWNED_STEP: any; + // @ts-ignore + public static ENTITY_DROWNED_SWIM: any; + // @ts-ignore + public static ENTITY_EGG_THROW: any; + // @ts-ignore + public static ENTITY_ELDER_GUARDIAN_AMBIENT: any; + // @ts-ignore + public static ENTITY_ELDER_GUARDIAN_AMBIENT_LAND: any; + // @ts-ignore + public static ENTITY_ELDER_GUARDIAN_CURSE: any; + // @ts-ignore + public static ENTITY_ELDER_GUARDIAN_DEATH: any; + // @ts-ignore + public static ENTITY_ELDER_GUARDIAN_DEATH_LAND: any; + // @ts-ignore + public static ENTITY_ELDER_GUARDIAN_FLOP: any; + // @ts-ignore + public static ENTITY_ELDER_GUARDIAN_HURT: any; + // @ts-ignore + public static ENTITY_ELDER_GUARDIAN_HURT_LAND: any; + // @ts-ignore + public static ENTITY_ENDERMAN_AMBIENT: any; + // @ts-ignore + public static ENTITY_ENDERMAN_DEATH: any; + // @ts-ignore + public static ENTITY_ENDERMAN_HURT: any; + // @ts-ignore + public static ENTITY_ENDERMAN_SCREAM: any; + // @ts-ignore + public static ENTITY_ENDERMAN_STARE: any; + // @ts-ignore + public static ENTITY_ENDERMAN_TELEPORT: any; + // @ts-ignore + public static ENTITY_ENDERMITE_AMBIENT: any; + // @ts-ignore + public static ENTITY_ENDERMITE_DEATH: any; + // @ts-ignore + public static ENTITY_ENDERMITE_HURT: any; + // @ts-ignore + public static ENTITY_ENDERMITE_STEP: any; + // @ts-ignore + public static ENTITY_ENDER_DRAGON_AMBIENT: any; + // @ts-ignore + public static ENTITY_ENDER_DRAGON_DEATH: any; + // @ts-ignore + public static ENTITY_ENDER_DRAGON_FLAP: any; + // @ts-ignore + public static ENTITY_ENDER_DRAGON_GROWL: any; + // @ts-ignore + public static ENTITY_ENDER_DRAGON_HURT: any; + // @ts-ignore + public static ENTITY_ENDER_DRAGON_SHOOT: any; + // @ts-ignore + public static ENTITY_ENDER_EYE_DEATH: any; + // @ts-ignore + public static ENTITY_ENDER_EYE_LAUNCH: any; + // @ts-ignore + public static ENTITY_ENDER_PEARL_THROW: any; + // @ts-ignore + public static ENTITY_EVOKER_AMBIENT: any; + // @ts-ignore + public static ENTITY_EVOKER_CAST_SPELL: any; + // @ts-ignore + public static ENTITY_EVOKER_CELEBRATE: any; + // @ts-ignore + public static ENTITY_EVOKER_DEATH: any; + // @ts-ignore + public static ENTITY_EVOKER_FANGS_ATTACK: any; + // @ts-ignore + public static ENTITY_EVOKER_HURT: any; + // @ts-ignore + public static ENTITY_EVOKER_PREPARE_ATTACK: any; + // @ts-ignore + public static ENTITY_EVOKER_PREPARE_SUMMON: any; + // @ts-ignore + public static ENTITY_EVOKER_PREPARE_WOLOLO: any; + // @ts-ignore + public static ENTITY_EXPERIENCE_BOTTLE_THROW: any; + // @ts-ignore + public static ENTITY_EXPERIENCE_ORB_PICKUP: any; + // @ts-ignore + public static ENTITY_FIREWORK_ROCKET_BLAST: any; + // @ts-ignore + public static ENTITY_FIREWORK_ROCKET_BLAST_FAR: any; + // @ts-ignore + public static ENTITY_FIREWORK_ROCKET_LARGE_BLAST: any; + // @ts-ignore + public static ENTITY_FIREWORK_ROCKET_LARGE_BLAST_FAR: any; + // @ts-ignore + public static ENTITY_FIREWORK_ROCKET_LAUNCH: any; + // @ts-ignore + public static ENTITY_FIREWORK_ROCKET_SHOOT: any; + // @ts-ignore + public static ENTITY_FIREWORK_ROCKET_TWINKLE: any; + // @ts-ignore + public static ENTITY_FIREWORK_ROCKET_TWINKLE_FAR: any; + // @ts-ignore + public static ENTITY_FISHING_BOBBER_RETRIEVE: any; + // @ts-ignore + public static ENTITY_FISHING_BOBBER_SPLASH: any; + // @ts-ignore + public static ENTITY_FISHING_BOBBER_THROW: any; + // @ts-ignore + public static ENTITY_FISH_SWIM: any; + // @ts-ignore + public static ENTITY_FOX_AGGRO: any; + // @ts-ignore + public static ENTITY_FOX_AMBIENT: any; + // @ts-ignore + public static ENTITY_FOX_BITE: any; + // @ts-ignore + public static ENTITY_FOX_DEATH: any; + // @ts-ignore + public static ENTITY_FOX_EAT: any; + // @ts-ignore + public static ENTITY_FOX_HURT: any; + // @ts-ignore + public static ENTITY_FOX_SCREECH: any; + // @ts-ignore + public static ENTITY_FOX_SLEEP: any; + // @ts-ignore + public static ENTITY_FOX_SNIFF: any; + // @ts-ignore + public static ENTITY_FOX_SPIT: any; + // @ts-ignore + public static ENTITY_GENERIC_BIG_FALL: any; + // @ts-ignore + public static ENTITY_GENERIC_BURN: any; + // @ts-ignore + public static ENTITY_GENERIC_DEATH: any; + // @ts-ignore + public static ENTITY_GENERIC_DRINK: any; + // @ts-ignore + public static ENTITY_GENERIC_EAT: any; + // @ts-ignore + public static ENTITY_GENERIC_EXPLODE: any; + // @ts-ignore + public static ENTITY_GENERIC_EXTINGUISH_FIRE: any; + // @ts-ignore + public static ENTITY_GENERIC_HURT: any; + // @ts-ignore + public static ENTITY_GENERIC_SMALL_FALL: any; + // @ts-ignore + public static ENTITY_GENERIC_SPLASH: any; + // @ts-ignore + public static ENTITY_GENERIC_SWIM: any; + // @ts-ignore + public static ENTITY_GHAST_AMBIENT: any; + // @ts-ignore + public static ENTITY_GHAST_DEATH: any; + // @ts-ignore + public static ENTITY_GHAST_HURT: any; + // @ts-ignore + public static ENTITY_GHAST_SCREAM: any; + // @ts-ignore + public static ENTITY_GHAST_SHOOT: any; + // @ts-ignore + public static ENTITY_GHAST_WARN: any; + // @ts-ignore + public static ENTITY_GUARDIAN_AMBIENT: any; + // @ts-ignore + public static ENTITY_GUARDIAN_AMBIENT_LAND: any; + // @ts-ignore + public static ENTITY_GUARDIAN_ATTACK: any; + // @ts-ignore + public static ENTITY_GUARDIAN_DEATH: any; + // @ts-ignore + public static ENTITY_GUARDIAN_DEATH_LAND: any; + // @ts-ignore + public static ENTITY_GUARDIAN_FLOP: any; + // @ts-ignore + public static ENTITY_GUARDIAN_HURT: any; + // @ts-ignore + public static ENTITY_GUARDIAN_HURT_LAND: any; + // @ts-ignore + public static ENTITY_HORSE_AMBIENT: any; + // @ts-ignore + public static ENTITY_HORSE_ANGRY: any; + // @ts-ignore + public static ENTITY_HORSE_ARMOR: any; + // @ts-ignore + public static ENTITY_HORSE_BREATHE: any; + // @ts-ignore + public static ENTITY_HORSE_DEATH: any; + // @ts-ignore + public static ENTITY_HORSE_EAT: any; + // @ts-ignore + public static ENTITY_HORSE_GALLOP: any; + // @ts-ignore + public static ENTITY_HORSE_HURT: any; + // @ts-ignore + public static ENTITY_HORSE_JUMP: any; + // @ts-ignore + public static ENTITY_HORSE_LAND: any; + // @ts-ignore + public static ENTITY_HORSE_SADDLE: any; + // @ts-ignore + public static ENTITY_HORSE_STEP: any; + // @ts-ignore + public static ENTITY_HORSE_STEP_WOOD: any; + // @ts-ignore + public static ENTITY_HOSTILE_BIG_FALL: any; + // @ts-ignore + public static ENTITY_HOSTILE_DEATH: any; + // @ts-ignore + public static ENTITY_HOSTILE_HURT: any; + // @ts-ignore + public static ENTITY_HOSTILE_SMALL_FALL: any; + // @ts-ignore + public static ENTITY_HOSTILE_SPLASH: any; + // @ts-ignore + public static ENTITY_HOSTILE_SWIM: any; + // @ts-ignore + public static ENTITY_HUSK_AMBIENT: any; + // @ts-ignore + public static ENTITY_HUSK_CONVERTED_TO_ZOMBIE: any; + // @ts-ignore + public static ENTITY_HUSK_DEATH: any; + // @ts-ignore + public static ENTITY_HUSK_HURT: any; + // @ts-ignore + public static ENTITY_HUSK_STEP: any; + // @ts-ignore + public static ENTITY_ILLUSIONER_AMBIENT: any; + // @ts-ignore + public static ENTITY_ILLUSIONER_CAST_SPELL: any; + // @ts-ignore + public static ENTITY_ILLUSIONER_DEATH: any; + // @ts-ignore + public static ENTITY_ILLUSIONER_HURT: any; + // @ts-ignore + public static ENTITY_ILLUSIONER_MIRROR_MOVE: any; + // @ts-ignore + public static ENTITY_ILLUSIONER_PREPARE_BLINDNESS: any; + // @ts-ignore + public static ENTITY_ILLUSIONER_PREPARE_MIRROR: any; + // @ts-ignore + public static ENTITY_IRON_GOLEM_ATTACK: any; + // @ts-ignore + public static ENTITY_IRON_GOLEM_DEATH: any; + // @ts-ignore + public static ENTITY_IRON_GOLEM_HURT: any; + // @ts-ignore + public static ENTITY_IRON_GOLEM_STEP: any; + // @ts-ignore + public static ENTITY_ITEM_BREAK: any; + // @ts-ignore + public static ENTITY_ITEM_FRAME_ADD_ITEM: any; + // @ts-ignore + public static ENTITY_ITEM_FRAME_BREAK: any; + // @ts-ignore + public static ENTITY_ITEM_FRAME_PLACE: any; + // @ts-ignore + public static ENTITY_ITEM_FRAME_REMOVE_ITEM: any; + // @ts-ignore + public static ENTITY_ITEM_FRAME_ROTATE_ITEM: any; + // @ts-ignore + public static ENTITY_ITEM_PICKUP: any; + // @ts-ignore + public static ENTITY_LEASH_KNOT_BREAK: any; + // @ts-ignore + public static ENTITY_LEASH_KNOT_PLACE: any; + // @ts-ignore + public static ENTITY_LIGHTNING_BOLT_IMPACT: any; + // @ts-ignore + public static ENTITY_LIGHTNING_BOLT_THUNDER: any; + // @ts-ignore + public static ENTITY_LINGERING_POTION_THROW: any; + // @ts-ignore + public static ENTITY_LLAMA_AMBIENT: any; + // @ts-ignore + public static ENTITY_LLAMA_ANGRY: any; + // @ts-ignore + public static ENTITY_LLAMA_CHEST: any; + // @ts-ignore + public static ENTITY_LLAMA_DEATH: any; + // @ts-ignore + public static ENTITY_LLAMA_EAT: any; + // @ts-ignore + public static ENTITY_LLAMA_HURT: any; + // @ts-ignore + public static ENTITY_LLAMA_SPIT: any; + // @ts-ignore + public static ENTITY_LLAMA_STEP: any; + // @ts-ignore + public static ENTITY_LLAMA_SWAG: any; + // @ts-ignore + public static ENTITY_MAGMA_CUBE_DEATH: any; + // @ts-ignore + public static ENTITY_MAGMA_CUBE_DEATH_SMALL: any; + // @ts-ignore + public static ENTITY_MAGMA_CUBE_HURT: any; + // @ts-ignore + public static ENTITY_MAGMA_CUBE_HURT_SMALL: any; + // @ts-ignore + public static ENTITY_MAGMA_CUBE_JUMP: any; + // @ts-ignore + public static ENTITY_MAGMA_CUBE_SQUISH: any; + // @ts-ignore + public static ENTITY_MAGMA_CUBE_SQUISH_SMALL: any; + // @ts-ignore + public static ENTITY_MINECART_INSIDE: any; + // @ts-ignore + public static ENTITY_MINECART_RIDING: any; + // @ts-ignore + public static ENTITY_MOOSHROOM_CONVERT: any; + // @ts-ignore + public static ENTITY_MOOSHROOM_EAT: any; + // @ts-ignore + public static ENTITY_MOOSHROOM_MILK: any; + // @ts-ignore + public static ENTITY_MOOSHROOM_SHEAR: any; + // @ts-ignore + public static ENTITY_MOOSHROOM_SUSPICIOUS_MILK: any; + // @ts-ignore + public static ENTITY_MULE_AMBIENT: any; + // @ts-ignore + public static ENTITY_MULE_CHEST: any; + // @ts-ignore + public static ENTITY_MULE_DEATH: any; + // @ts-ignore + public static ENTITY_MULE_HURT: any; + // @ts-ignore + public static ENTITY_OCELOT_AMBIENT: any; + // @ts-ignore + public static ENTITY_OCELOT_DEATH: any; + // @ts-ignore + public static ENTITY_OCELOT_HURT: any; + // @ts-ignore + public static ENTITY_PAINTING_BREAK: any; + // @ts-ignore + public static ENTITY_PAINTING_PLACE: any; + // @ts-ignore + public static ENTITY_PANDA_AGGRESSIVE_AMBIENT: any; + // @ts-ignore + public static ENTITY_PANDA_AMBIENT: any; + // @ts-ignore + public static ENTITY_PANDA_BITE: any; + // @ts-ignore + public static ENTITY_PANDA_CANT_BREED: any; + // @ts-ignore + public static ENTITY_PANDA_DEATH: any; + // @ts-ignore + public static ENTITY_PANDA_EAT: any; + // @ts-ignore + public static ENTITY_PANDA_HURT: any; + // @ts-ignore + public static ENTITY_PANDA_PRE_SNEEZE: any; + // @ts-ignore + public static ENTITY_PANDA_SNEEZE: any; + // @ts-ignore + public static ENTITY_PANDA_STEP: any; + // @ts-ignore + public static ENTITY_PANDA_WORRIED_AMBIENT: any; + // @ts-ignore + public static ENTITY_PARROT_AMBIENT: any; + // @ts-ignore + public static ENTITY_PARROT_DEATH: any; + // @ts-ignore + public static ENTITY_PARROT_EAT: any; + // @ts-ignore + public static ENTITY_PARROT_FLY: any; + // @ts-ignore + public static ENTITY_PARROT_HURT: any; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_BLAZE: any; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_CREEPER: any; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_DROWNED: any; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_ELDER_GUARDIAN: any; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_ENDERMAN: any; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_ENDERMITE: any; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_ENDER_DRAGON: any; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_EVOKER: any; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_GHAST: any; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_GUARDIAN: any; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_HUSK: any; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_ILLUSIONER: any; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_MAGMA_CUBE: any; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_PANDA: any; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_PHANTOM: any; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_PILLAGER: any; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_POLAR_BEAR: any; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_RAVAGER: any; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_SHULKER: any; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_SILVERFISH: any; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_SKELETON: any; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_SLIME: any; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_SPIDER: any; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_STRAY: any; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_VEX: any; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_VINDICATOR: any; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_WITCH: any; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_WITHER: any; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_WITHER_SKELETON: any; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_WOLF: any; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_ZOMBIE: any; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_ZOMBIE_PIGMAN: any; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_ZOMBIE_VILLAGER: any; + // @ts-ignore + public static ENTITY_PARROT_STEP: any; + // @ts-ignore + public static ENTITY_PHANTOM_AMBIENT: any; + // @ts-ignore + public static ENTITY_PHANTOM_BITE: any; + // @ts-ignore + public static ENTITY_PHANTOM_DEATH: any; + // @ts-ignore + public static ENTITY_PHANTOM_FLAP: any; + // @ts-ignore + public static ENTITY_PHANTOM_HURT: any; + // @ts-ignore + public static ENTITY_PHANTOM_SWOOP: any; + // @ts-ignore + public static ENTITY_PIG_AMBIENT: any; + // @ts-ignore + public static ENTITY_PIG_DEATH: any; + // @ts-ignore + public static ENTITY_PIG_HURT: any; + // @ts-ignore + public static ENTITY_PIG_SADDLE: any; + // @ts-ignore + public static ENTITY_PIG_STEP: any; + // @ts-ignore + public static ENTITY_PILLAGER_AMBIENT: any; + // @ts-ignore + public static ENTITY_PILLAGER_CELEBRATE: any; + // @ts-ignore + public static ENTITY_PILLAGER_DEATH: any; + // @ts-ignore + public static ENTITY_PILLAGER_HURT: any; + // @ts-ignore + public static ENTITY_PLAYER_ATTACK_CRIT: any; + // @ts-ignore + public static ENTITY_PLAYER_ATTACK_KNOCKBACK: any; + // @ts-ignore + public static ENTITY_PLAYER_ATTACK_NODAMAGE: any; + // @ts-ignore + public static ENTITY_PLAYER_ATTACK_STRONG: any; + // @ts-ignore + public static ENTITY_PLAYER_ATTACK_SWEEP: any; + // @ts-ignore + public static ENTITY_PLAYER_ATTACK_WEAK: any; + // @ts-ignore + public static ENTITY_PLAYER_BIG_FALL: any; + // @ts-ignore + public static ENTITY_PLAYER_BREATH: any; + // @ts-ignore + public static ENTITY_PLAYER_BURP: any; + // @ts-ignore + public static ENTITY_PLAYER_DEATH: any; + // @ts-ignore + public static ENTITY_PLAYER_HURT: any; + // @ts-ignore + public static ENTITY_PLAYER_HURT_DROWN: any; + // @ts-ignore + public static ENTITY_PLAYER_HURT_ON_FIRE: any; + // @ts-ignore + public static ENTITY_PLAYER_HURT_SWEET_BERRY_BUSH: any; + // @ts-ignore + public static ENTITY_PLAYER_LEVELUP: any; + // @ts-ignore + public static ENTITY_PLAYER_SMALL_FALL: any; + // @ts-ignore + public static ENTITY_PLAYER_SPLASH: any; + // @ts-ignore + public static ENTITY_PLAYER_SPLASH_HIGH_SPEED: any; + // @ts-ignore + public static ENTITY_PLAYER_SWIM: any; + // @ts-ignore + public static ENTITY_POLAR_BEAR_AMBIENT: any; + // @ts-ignore + public static ENTITY_POLAR_BEAR_AMBIENT_BABY: any; + // @ts-ignore + public static ENTITY_POLAR_BEAR_DEATH: any; + // @ts-ignore + public static ENTITY_POLAR_BEAR_HURT: any; + // @ts-ignore + public static ENTITY_POLAR_BEAR_STEP: any; + // @ts-ignore + public static ENTITY_POLAR_BEAR_WARNING: any; + // @ts-ignore + public static ENTITY_PUFFER_FISH_AMBIENT: any; + // @ts-ignore + public static ENTITY_PUFFER_FISH_BLOW_OUT: any; + // @ts-ignore + public static ENTITY_PUFFER_FISH_BLOW_UP: any; + // @ts-ignore + public static ENTITY_PUFFER_FISH_DEATH: any; + // @ts-ignore + public static ENTITY_PUFFER_FISH_FLOP: any; + // @ts-ignore + public static ENTITY_PUFFER_FISH_HURT: any; + // @ts-ignore + public static ENTITY_PUFFER_FISH_STING: any; + // @ts-ignore + public static ENTITY_RABBIT_AMBIENT: any; + // @ts-ignore + public static ENTITY_RABBIT_ATTACK: any; + // @ts-ignore + public static ENTITY_RABBIT_DEATH: any; + // @ts-ignore + public static ENTITY_RABBIT_HURT: any; + // @ts-ignore + public static ENTITY_RABBIT_JUMP: any; + // @ts-ignore + public static ENTITY_RAVAGER_AMBIENT: any; + // @ts-ignore + public static ENTITY_RAVAGER_ATTACK: any; + // @ts-ignore + public static ENTITY_RAVAGER_CELEBRATE: any; + // @ts-ignore + public static ENTITY_RAVAGER_DEATH: any; + // @ts-ignore + public static ENTITY_RAVAGER_HURT: any; + // @ts-ignore + public static ENTITY_RAVAGER_ROAR: any; + // @ts-ignore + public static ENTITY_RAVAGER_STEP: any; + // @ts-ignore + public static ENTITY_RAVAGER_STUNNED: any; + // @ts-ignore + public static ENTITY_SALMON_AMBIENT: any; + // @ts-ignore + public static ENTITY_SALMON_DEATH: any; + // @ts-ignore + public static ENTITY_SALMON_FLOP: any; + // @ts-ignore + public static ENTITY_SALMON_HURT: any; + // @ts-ignore + public static ENTITY_SHEEP_AMBIENT: any; + // @ts-ignore + public static ENTITY_SHEEP_DEATH: any; + // @ts-ignore + public static ENTITY_SHEEP_HURT: any; + // @ts-ignore + public static ENTITY_SHEEP_SHEAR: any; + // @ts-ignore + public static ENTITY_SHEEP_STEP: any; + // @ts-ignore + public static ENTITY_SHULKER_AMBIENT: any; + // @ts-ignore + public static ENTITY_SHULKER_BULLET_HIT: any; + // @ts-ignore + public static ENTITY_SHULKER_BULLET_HURT: any; + // @ts-ignore + public static ENTITY_SHULKER_CLOSE: any; + // @ts-ignore + public static ENTITY_SHULKER_DEATH: any; + // @ts-ignore + public static ENTITY_SHULKER_HURT: any; + // @ts-ignore + public static ENTITY_SHULKER_HURT_CLOSED: any; + // @ts-ignore + public static ENTITY_SHULKER_OPEN: any; + // @ts-ignore + public static ENTITY_SHULKER_SHOOT: any; + // @ts-ignore + public static ENTITY_SHULKER_TELEPORT: any; + // @ts-ignore + public static ENTITY_SILVERFISH_AMBIENT: any; + // @ts-ignore + public static ENTITY_SILVERFISH_DEATH: any; + // @ts-ignore + public static ENTITY_SILVERFISH_HURT: any; + // @ts-ignore + public static ENTITY_SILVERFISH_STEP: any; + // @ts-ignore + public static ENTITY_SKELETON_AMBIENT: any; + // @ts-ignore + public static ENTITY_SKELETON_DEATH: any; + // @ts-ignore + public static ENTITY_SKELETON_HORSE_AMBIENT: any; + // @ts-ignore + public static ENTITY_SKELETON_HORSE_AMBIENT_WATER: any; + // @ts-ignore + public static ENTITY_SKELETON_HORSE_DEATH: any; + // @ts-ignore + public static ENTITY_SKELETON_HORSE_GALLOP_WATER: any; + // @ts-ignore + public static ENTITY_SKELETON_HORSE_HURT: any; + // @ts-ignore + public static ENTITY_SKELETON_HORSE_JUMP_WATER: any; + // @ts-ignore + public static ENTITY_SKELETON_HORSE_STEP_WATER: any; + // @ts-ignore + public static ENTITY_SKELETON_HORSE_SWIM: any; + // @ts-ignore + public static ENTITY_SKELETON_HURT: any; + // @ts-ignore + public static ENTITY_SKELETON_SHOOT: any; + // @ts-ignore + public static ENTITY_SKELETON_STEP: any; + // @ts-ignore + public static ENTITY_SLIME_ATTACK: any; + // @ts-ignore + public static ENTITY_SLIME_DEATH: any; + // @ts-ignore + public static ENTITY_SLIME_DEATH_SMALL: any; + // @ts-ignore + public static ENTITY_SLIME_HURT: any; + // @ts-ignore + public static ENTITY_SLIME_HURT_SMALL: any; + // @ts-ignore + public static ENTITY_SLIME_JUMP: any; + // @ts-ignore + public static ENTITY_SLIME_JUMP_SMALL: any; + // @ts-ignore + public static ENTITY_SLIME_SQUISH: any; + // @ts-ignore + public static ENTITY_SLIME_SQUISH_SMALL: any; + // @ts-ignore + public static ENTITY_SNOWBALL_THROW: any; + // @ts-ignore + public static ENTITY_SNOW_GOLEM_AMBIENT: any; + // @ts-ignore + public static ENTITY_SNOW_GOLEM_DEATH: any; + // @ts-ignore + public static ENTITY_SNOW_GOLEM_HURT: any; + // @ts-ignore + public static ENTITY_SNOW_GOLEM_SHOOT: any; + // @ts-ignore + public static ENTITY_SPIDER_AMBIENT: any; + // @ts-ignore + public static ENTITY_SPIDER_DEATH: any; + // @ts-ignore + public static ENTITY_SPIDER_HURT: any; + // @ts-ignore + public static ENTITY_SPIDER_STEP: any; + // @ts-ignore + public static ENTITY_SPLASH_POTION_BREAK: any; + // @ts-ignore + public static ENTITY_SPLASH_POTION_THROW: any; + // @ts-ignore + public static ENTITY_SQUID_AMBIENT: any; + // @ts-ignore + public static ENTITY_SQUID_DEATH: any; + // @ts-ignore + public static ENTITY_SQUID_HURT: any; + // @ts-ignore + public static ENTITY_SQUID_SQUIRT: any; + // @ts-ignore + public static ENTITY_STRAY_AMBIENT: any; + // @ts-ignore + public static ENTITY_STRAY_DEATH: any; + // @ts-ignore + public static ENTITY_STRAY_HURT: any; + // @ts-ignore + public static ENTITY_STRAY_STEP: any; + // @ts-ignore + public static ENTITY_TNT_PRIMED: any; + // @ts-ignore + public static ENTITY_TROPICAL_FISH_AMBIENT: any; + // @ts-ignore + public static ENTITY_TROPICAL_FISH_DEATH: any; + // @ts-ignore + public static ENTITY_TROPICAL_FISH_FLOP: any; + // @ts-ignore + public static ENTITY_TROPICAL_FISH_HURT: any; + // @ts-ignore + public static ENTITY_TURTLE_AMBIENT_LAND: any; + // @ts-ignore + public static ENTITY_TURTLE_DEATH: any; + // @ts-ignore + public static ENTITY_TURTLE_DEATH_BABY: any; + // @ts-ignore + public static ENTITY_TURTLE_EGG_BREAK: any; + // @ts-ignore + public static ENTITY_TURTLE_EGG_CRACK: any; + // @ts-ignore + public static ENTITY_TURTLE_EGG_HATCH: any; + // @ts-ignore + public static ENTITY_TURTLE_HURT: any; + // @ts-ignore + public static ENTITY_TURTLE_HURT_BABY: any; + // @ts-ignore + public static ENTITY_TURTLE_LAY_EGG: any; + // @ts-ignore + public static ENTITY_TURTLE_SHAMBLE: any; + // @ts-ignore + public static ENTITY_TURTLE_SHAMBLE_BABY: any; + // @ts-ignore + public static ENTITY_TURTLE_SWIM: any; + // @ts-ignore + public static ENTITY_VEX_AMBIENT: any; + // @ts-ignore + public static ENTITY_VEX_CHARGE: any; + // @ts-ignore + public static ENTITY_VEX_DEATH: any; + // @ts-ignore + public static ENTITY_VEX_HURT: any; + // @ts-ignore + public static ENTITY_VILLAGER_AMBIENT: any; + // @ts-ignore + public static ENTITY_VILLAGER_CELEBRATE: any; + // @ts-ignore + public static ENTITY_VILLAGER_DEATH: any; + // @ts-ignore + public static ENTITY_VILLAGER_HURT: any; + // @ts-ignore + public static ENTITY_VILLAGER_NO: any; + // @ts-ignore + public static ENTITY_VILLAGER_TRADE: any; + // @ts-ignore + public static ENTITY_VILLAGER_WORK_ARMORER: any; + // @ts-ignore + public static ENTITY_VILLAGER_WORK_BUTCHER: any; + // @ts-ignore + public static ENTITY_VILLAGER_WORK_CARTOGRAPHER: any; + // @ts-ignore + public static ENTITY_VILLAGER_WORK_CLERIC: any; + // @ts-ignore + public static ENTITY_VILLAGER_WORK_FARMER: any; + // @ts-ignore + public static ENTITY_VILLAGER_WORK_FISHERMAN: any; + // @ts-ignore + public static ENTITY_VILLAGER_WORK_FLETCHER: any; + // @ts-ignore + public static ENTITY_VILLAGER_WORK_LEATHERWORKER: any; + // @ts-ignore + public static ENTITY_VILLAGER_WORK_LIBRARIAN: any; + // @ts-ignore + public static ENTITY_VILLAGER_WORK_MASON: any; + // @ts-ignore + public static ENTITY_VILLAGER_WORK_SHEPHERD: any; + // @ts-ignore + public static ENTITY_VILLAGER_WORK_TOOLSMITH: any; + // @ts-ignore + public static ENTITY_VILLAGER_WORK_WEAPONSMITH: any; + // @ts-ignore + public static ENTITY_VILLAGER_YES: any; + // @ts-ignore + public static ENTITY_VINDICATOR_AMBIENT: any; + // @ts-ignore + public static ENTITY_VINDICATOR_CELEBRATE: any; + // @ts-ignore + public static ENTITY_VINDICATOR_DEATH: any; + // @ts-ignore + public static ENTITY_VINDICATOR_HURT: any; + // @ts-ignore + public static ENTITY_WANDERING_TRADER_AMBIENT: any; + // @ts-ignore + public static ENTITY_WANDERING_TRADER_DEATH: any; + // @ts-ignore + public static ENTITY_WANDERING_TRADER_DISAPPEARED: any; + // @ts-ignore + public static ENTITY_WANDERING_TRADER_DRINK_MILK: any; + // @ts-ignore + public static ENTITY_WANDERING_TRADER_DRINK_POTION: any; + // @ts-ignore + public static ENTITY_WANDERING_TRADER_HURT: any; + // @ts-ignore + public static ENTITY_WANDERING_TRADER_NO: any; + // @ts-ignore + public static ENTITY_WANDERING_TRADER_REAPPEARED: any; + // @ts-ignore + public static ENTITY_WANDERING_TRADER_TRADE: any; + // @ts-ignore + public static ENTITY_WANDERING_TRADER_YES: any; + // @ts-ignore + public static ENTITY_WITCH_AMBIENT: any; + // @ts-ignore + public static ENTITY_WITCH_CELEBRATE: any; + // @ts-ignore + public static ENTITY_WITCH_DEATH: any; + // @ts-ignore + public static ENTITY_WITCH_DRINK: any; + // @ts-ignore + public static ENTITY_WITCH_HURT: any; + // @ts-ignore + public static ENTITY_WITCH_THROW: any; + // @ts-ignore + public static ENTITY_WITHER_AMBIENT: any; + // @ts-ignore + public static ENTITY_WITHER_BREAK_BLOCK: any; + // @ts-ignore + public static ENTITY_WITHER_DEATH: any; + // @ts-ignore + public static ENTITY_WITHER_HURT: any; + // @ts-ignore + public static ENTITY_WITHER_SHOOT: any; + // @ts-ignore + public static ENTITY_WITHER_SKELETON_AMBIENT: any; + // @ts-ignore + public static ENTITY_WITHER_SKELETON_DEATH: any; + // @ts-ignore + public static ENTITY_WITHER_SKELETON_HURT: any; + // @ts-ignore + public static ENTITY_WITHER_SKELETON_STEP: any; + // @ts-ignore + public static ENTITY_WITHER_SPAWN: any; + // @ts-ignore + public static ENTITY_WOLF_AMBIENT: any; + // @ts-ignore + public static ENTITY_WOLF_DEATH: any; + // @ts-ignore + public static ENTITY_WOLF_GROWL: any; + // @ts-ignore + public static ENTITY_WOLF_HOWL: any; + // @ts-ignore + public static ENTITY_WOLF_HURT: any; + // @ts-ignore + public static ENTITY_WOLF_PANT: any; + // @ts-ignore + public static ENTITY_WOLF_SHAKE: any; + // @ts-ignore + public static ENTITY_WOLF_STEP: any; + // @ts-ignore + public static ENTITY_WOLF_WHINE: any; + // @ts-ignore + public static ENTITY_ZOMBIE_AMBIENT: any; + // @ts-ignore + public static ENTITY_ZOMBIE_ATTACK_IRON_DOOR: any; + // @ts-ignore + public static ENTITY_ZOMBIE_ATTACK_WOODEN_DOOR: any; + // @ts-ignore + public static ENTITY_ZOMBIE_BREAK_WOODEN_DOOR: any; + // @ts-ignore + public static ENTITY_ZOMBIE_CONVERTED_TO_DROWNED: any; + // @ts-ignore + public static ENTITY_ZOMBIE_DEATH: any; + // @ts-ignore + public static ENTITY_ZOMBIE_DESTROY_EGG: any; + // @ts-ignore + public static ENTITY_ZOMBIE_HORSE_AMBIENT: any; + // @ts-ignore + public static ENTITY_ZOMBIE_HORSE_DEATH: any; + // @ts-ignore + public static ENTITY_ZOMBIE_HORSE_HURT: any; + // @ts-ignore + public static ENTITY_ZOMBIE_HURT: any; + // @ts-ignore + public static ENTITY_ZOMBIE_INFECT: any; + // @ts-ignore + public static ENTITY_ZOMBIE_PIGMAN_AMBIENT: any; + // @ts-ignore + public static ENTITY_ZOMBIE_PIGMAN_ANGRY: any; + // @ts-ignore + public static ENTITY_ZOMBIE_PIGMAN_DEATH: any; + // @ts-ignore + public static ENTITY_ZOMBIE_PIGMAN_HURT: any; + // @ts-ignore + public static ENTITY_ZOMBIE_STEP: any; + // @ts-ignore + public static ENTITY_ZOMBIE_VILLAGER_AMBIENT: any; + // @ts-ignore + public static ENTITY_ZOMBIE_VILLAGER_CONVERTED: any; + // @ts-ignore + public static ENTITY_ZOMBIE_VILLAGER_CURE: any; + // @ts-ignore + public static ENTITY_ZOMBIE_VILLAGER_DEATH: any; + // @ts-ignore + public static ENTITY_ZOMBIE_VILLAGER_HURT: any; + // @ts-ignore + public static ENTITY_ZOMBIE_VILLAGER_STEP: any; + // @ts-ignore + public static EVENT_RAID_HORN: any; + // @ts-ignore + public static ITEM_ARMOR_EQUIP_CHAIN: any; + // @ts-ignore + public static ITEM_ARMOR_EQUIP_DIAMOND: any; + // @ts-ignore + public static ITEM_ARMOR_EQUIP_ELYTRA: any; + // @ts-ignore + public static ITEM_ARMOR_EQUIP_GENERIC: any; + // @ts-ignore + public static ITEM_ARMOR_EQUIP_GOLD: any; + // @ts-ignore + public static ITEM_ARMOR_EQUIP_IRON: any; + // @ts-ignore + public static ITEM_ARMOR_EQUIP_LEATHER: any; + // @ts-ignore + public static ITEM_ARMOR_EQUIP_TURTLE: any; + // @ts-ignore + public static ITEM_AXE_STRIP: any; + // @ts-ignore + public static ITEM_BOOK_PAGE_TURN: any; + // @ts-ignore + public static ITEM_BOOK_PUT: any; + // @ts-ignore + public static ITEM_BOTTLE_EMPTY: any; + // @ts-ignore + public static ITEM_BOTTLE_FILL: any; + // @ts-ignore + public static ITEM_BOTTLE_FILL_DRAGONBREATH: any; + // @ts-ignore + public static ITEM_BUCKET_EMPTY: any; + // @ts-ignore + public static ITEM_BUCKET_EMPTY_FISH: any; + // @ts-ignore + public static ITEM_BUCKET_EMPTY_LAVA: any; + // @ts-ignore + public static ITEM_BUCKET_FILL: any; + // @ts-ignore + public static ITEM_BUCKET_FILL_FISH: any; + // @ts-ignore + public static ITEM_BUCKET_FILL_LAVA: any; + // @ts-ignore + public static ITEM_CHORUS_FRUIT_TELEPORT: any; + // @ts-ignore + public static ITEM_CROP_PLANT: any; + // @ts-ignore + public static ITEM_CROSSBOW_HIT: any; + // @ts-ignore + public static ITEM_CROSSBOW_LOADING_END: any; + // @ts-ignore + public static ITEM_CROSSBOW_LOADING_MIDDLE: any; + // @ts-ignore + public static ITEM_CROSSBOW_LOADING_START: any; + // @ts-ignore + public static ITEM_CROSSBOW_QUICK_CHARGE_1: any; + // @ts-ignore + public static ITEM_CROSSBOW_QUICK_CHARGE_2: any; + // @ts-ignore + public static ITEM_CROSSBOW_QUICK_CHARGE_3: any; + // @ts-ignore + public static ITEM_CROSSBOW_SHOOT: any; + // @ts-ignore + public static ITEM_ELYTRA_FLYING: any; + // @ts-ignore + public static ITEM_FIRECHARGE_USE: any; + // @ts-ignore + public static ITEM_FLINTANDSTEEL_USE: any; + // @ts-ignore + public static ITEM_HOE_TILL: any; + // @ts-ignore + public static ITEM_NETHER_WART_PLANT: any; + // @ts-ignore + public static ITEM_SHIELD_BLOCK: any; + // @ts-ignore + public static ITEM_SHIELD_BREAK: any; + // @ts-ignore + public static ITEM_SHOVEL_FLATTEN: any; + // @ts-ignore + public static ITEM_SWEET_BERRIES_PICK_FROM_BUSH: any; + // @ts-ignore + public static ITEM_TOTEM_USE: any; + // @ts-ignore + public static ITEM_TRIDENT_HIT: any; + // @ts-ignore + public static ITEM_TRIDENT_HIT_GROUND: any; + // @ts-ignore + public static ITEM_TRIDENT_RETURN: any; + // @ts-ignore + public static ITEM_TRIDENT_RIPTIDE_1: any; + // @ts-ignore + public static ITEM_TRIDENT_RIPTIDE_2: any; + // @ts-ignore + public static ITEM_TRIDENT_RIPTIDE_3: any; + // @ts-ignore + public static ITEM_TRIDENT_THROW: any; + // @ts-ignore + public static ITEM_TRIDENT_THUNDER: any; + // @ts-ignore + public static MUSIC_CREATIVE: any; + // @ts-ignore + public static MUSIC_CREDITS: any; + // @ts-ignore + public static MUSIC_DISC_11: any; + // @ts-ignore + public static MUSIC_DISC_13: any; + // @ts-ignore + public static MUSIC_DISC_BLOCKS: any; + // @ts-ignore + public static MUSIC_DISC_CAT: any; + // @ts-ignore + public static MUSIC_DISC_CHIRP: any; + // @ts-ignore + public static MUSIC_DISC_FAR: any; + // @ts-ignore + public static MUSIC_DISC_MALL: any; + // @ts-ignore + public static MUSIC_DISC_MELLOHI: any; + // @ts-ignore + public static MUSIC_DISC_STAL: any; + // @ts-ignore + public static MUSIC_DISC_STRAD: any; + // @ts-ignore + public static MUSIC_DISC_WAIT: any; + // @ts-ignore + public static MUSIC_DISC_WARD: any; + // @ts-ignore + public static MUSIC_DRAGON: any; + // @ts-ignore + public static MUSIC_END: any; + // @ts-ignore + public static MUSIC_GAME: any; + // @ts-ignore + public static MUSIC_MENU: any; + // @ts-ignore + public static MUSIC_NETHER: any; + // @ts-ignore + public static MUSIC_UNDER_WATER: any; + // @ts-ignore + public static UI_BUTTON_CLICK: any; + // @ts-ignore + public static UI_CARTOGRAPHY_TABLE_TAKE_RESULT: any; + // @ts-ignore + public static UI_LOOM_SELECT_PATTERN: any; + // @ts-ignore + public static UI_LOOM_TAKE_RESULT: any; + // @ts-ignore + public static UI_STONECUTTER_SELECT_RECIPE: any; + // @ts-ignore + public static UI_STONECUTTER_TAKE_RESULT: any; + // @ts-ignore + public static UI_TOAST_CHALLENGE_COMPLETE: any; + // @ts-ignore + public static UI_TOAST_IN: any; + // @ts-ignore + public static UI_TOAST_OUT: any; + // @ts-ignore + public static WEATHER_RAIN: any; + // @ts-ignore + public static WEATHER_RAIN_ABOVE: any; + // @ts-ignore + public static values(): any; + // @ts-ignore + public static valueOf(name: any): any; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.SoundCategory.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.SoundCategory.d.ts new file mode 100644 index 00000000..342265b2 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.SoundCategory.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class SoundCategory extends java.lang.Enum { + // @ts-ignore + public static MASTER: org.bukkit.SoundCategory; + // @ts-ignore + public static MUSIC: org.bukkit.SoundCategory; + // @ts-ignore + public static RECORDS: org.bukkit.SoundCategory; + // @ts-ignore + public static WEATHER: org.bukkit.SoundCategory; + // @ts-ignore + public static BLOCKS: org.bukkit.SoundCategory; + // @ts-ignore + public static HOSTILE: org.bukkit.SoundCategory; + // @ts-ignore + public static NEUTRAL: org.bukkit.SoundCategory; + // @ts-ignore + public static PLAYERS: org.bukkit.SoundCategory; + // @ts-ignore + public static AMBIENT: org.bukkit.SoundCategory; + // @ts-ignore + public static VOICE: org.bukkit.SoundCategory; + // @ts-ignore + public static values(): org.bukkit.SoundCategory[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.SoundCategory; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.Statistic.Type.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.Statistic.Type.d.ts new file mode 100644 index 00000000..cec993b5 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.Statistic.Type.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace Statistic { + // @ts-ignore + class Type extends java.lang.Enum { + // @ts-ignore + public static UNTYPED: org.bukkit.Statistic.Type; + // @ts-ignore + public static ITEM: org.bukkit.Statistic.Type; + // @ts-ignore + public static BLOCK: org.bukkit.Statistic.Type; + // @ts-ignore + public static ENTITY: org.bukkit.Statistic.Type; + // @ts-ignore + public static values(): org.bukkit.Statistic.Type[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.Statistic.Type; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.Statistic.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.Statistic.d.ts new file mode 100644 index 00000000..75278dbd --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.Statistic.d.ts @@ -0,0 +1,192 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class Statistic extends java.lang.Enum implements org.bukkit.Keyed { + // @ts-ignore + public static DAMAGE_DEALT: org.bukkit.Statistic; + // @ts-ignore + public static DAMAGE_TAKEN: org.bukkit.Statistic; + // @ts-ignore + public static DEATHS: org.bukkit.Statistic; + // @ts-ignore + public static MOB_KILLS: org.bukkit.Statistic; + // @ts-ignore + public static PLAYER_KILLS: org.bukkit.Statistic; + // @ts-ignore + public static FISH_CAUGHT: org.bukkit.Statistic; + // @ts-ignore + public static ANIMALS_BRED: org.bukkit.Statistic; + // @ts-ignore + public static LEAVE_GAME: org.bukkit.Statistic; + // @ts-ignore + public static JUMP: org.bukkit.Statistic; + // @ts-ignore + public static DROP_COUNT: org.bukkit.Statistic; + // @ts-ignore + public static DROP: org.bukkit.Statistic; + // @ts-ignore + public static PICKUP: org.bukkit.Statistic; + // @ts-ignore + public static PLAY_ONE_MINUTE: org.bukkit.Statistic; + // @ts-ignore + public static WALK_ONE_CM: org.bukkit.Statistic; + // @ts-ignore + public static WALK_ON_WATER_ONE_CM: org.bukkit.Statistic; + // @ts-ignore + public static FALL_ONE_CM: org.bukkit.Statistic; + // @ts-ignore + public static SNEAK_TIME: org.bukkit.Statistic; + // @ts-ignore + public static CLIMB_ONE_CM: org.bukkit.Statistic; + // @ts-ignore + public static FLY_ONE_CM: org.bukkit.Statistic; + // @ts-ignore + public static WALK_UNDER_WATER_ONE_CM: org.bukkit.Statistic; + // @ts-ignore + public static MINECART_ONE_CM: org.bukkit.Statistic; + // @ts-ignore + public static BOAT_ONE_CM: org.bukkit.Statistic; + // @ts-ignore + public static PIG_ONE_CM: org.bukkit.Statistic; + // @ts-ignore + public static HORSE_ONE_CM: org.bukkit.Statistic; + // @ts-ignore + public static SPRINT_ONE_CM: org.bukkit.Statistic; + // @ts-ignore + public static CROUCH_ONE_CM: org.bukkit.Statistic; + // @ts-ignore + public static AVIATE_ONE_CM: org.bukkit.Statistic; + // @ts-ignore + public static MINE_BLOCK: org.bukkit.Statistic; + // @ts-ignore + public static USE_ITEM: org.bukkit.Statistic; + // @ts-ignore + public static BREAK_ITEM: org.bukkit.Statistic; + // @ts-ignore + public static CRAFT_ITEM: org.bukkit.Statistic; + // @ts-ignore + public static KILL_ENTITY: org.bukkit.Statistic; + // @ts-ignore + public static ENTITY_KILLED_BY: org.bukkit.Statistic; + // @ts-ignore + public static TIME_SINCE_DEATH: org.bukkit.Statistic; + // @ts-ignore + public static TALKED_TO_VILLAGER: org.bukkit.Statistic; + // @ts-ignore + public static TRADED_WITH_VILLAGER: org.bukkit.Statistic; + // @ts-ignore + public static CAKE_SLICES_EATEN: org.bukkit.Statistic; + // @ts-ignore + public static CAULDRON_FILLED: org.bukkit.Statistic; + // @ts-ignore + public static CAULDRON_USED: org.bukkit.Statistic; + // @ts-ignore + public static ARMOR_CLEANED: org.bukkit.Statistic; + // @ts-ignore + public static BANNER_CLEANED: org.bukkit.Statistic; + // @ts-ignore + public static BREWINGSTAND_INTERACTION: org.bukkit.Statistic; + // @ts-ignore + public static BEACON_INTERACTION: org.bukkit.Statistic; + // @ts-ignore + public static DROPPER_INSPECTED: org.bukkit.Statistic; + // @ts-ignore + public static HOPPER_INSPECTED: org.bukkit.Statistic; + // @ts-ignore + public static DISPENSER_INSPECTED: org.bukkit.Statistic; + // @ts-ignore + public static NOTEBLOCK_PLAYED: org.bukkit.Statistic; + // @ts-ignore + public static NOTEBLOCK_TUNED: org.bukkit.Statistic; + // @ts-ignore + public static FLOWER_POTTED: org.bukkit.Statistic; + // @ts-ignore + public static TRAPPED_CHEST_TRIGGERED: org.bukkit.Statistic; + // @ts-ignore + public static ENDERCHEST_OPENED: org.bukkit.Statistic; + // @ts-ignore + public static ITEM_ENCHANTED: org.bukkit.Statistic; + // @ts-ignore + public static RECORD_PLAYED: org.bukkit.Statistic; + // @ts-ignore + public static FURNACE_INTERACTION: org.bukkit.Statistic; + // @ts-ignore + public static CRAFTING_TABLE_INTERACTION: org.bukkit.Statistic; + // @ts-ignore + public static CHEST_OPENED: org.bukkit.Statistic; + // @ts-ignore + public static SLEEP_IN_BED: org.bukkit.Statistic; + // @ts-ignore + public static SHULKER_BOX_OPENED: org.bukkit.Statistic; + // @ts-ignore + public static TIME_SINCE_REST: org.bukkit.Statistic; + // @ts-ignore + public static SWIM_ONE_CM: org.bukkit.Statistic; + // @ts-ignore + public static DAMAGE_DEALT_ABSORBED: org.bukkit.Statistic; + // @ts-ignore + public static DAMAGE_DEALT_RESISTED: org.bukkit.Statistic; + // @ts-ignore + public static DAMAGE_BLOCKED_BY_SHIELD: org.bukkit.Statistic; + // @ts-ignore + public static DAMAGE_ABSORBED: org.bukkit.Statistic; + // @ts-ignore + public static DAMAGE_RESISTED: org.bukkit.Statistic; + // @ts-ignore + public static CLEAN_SHULKER_BOX: org.bukkit.Statistic; + // @ts-ignore + public static OPEN_BARREL: org.bukkit.Statistic; + // @ts-ignore + public static INTERACT_WITH_BLAST_FURNACE: org.bukkit.Statistic; + // @ts-ignore + public static INTERACT_WITH_SMOKER: org.bukkit.Statistic; + // @ts-ignore + public static INTERACT_WITH_LECTERN: org.bukkit.Statistic; + // @ts-ignore + public static INTERACT_WITH_CAMPFIRE: org.bukkit.Statistic; + // @ts-ignore + public static INTERACT_WITH_CARTOGRAPHY_TABLE: org.bukkit.Statistic; + // @ts-ignore + public static INTERACT_WITH_LOOM: org.bukkit.Statistic; + // @ts-ignore + public static INTERACT_WITH_STONECUTTER: org.bukkit.Statistic; + // @ts-ignore + public static BELL_RING: org.bukkit.Statistic; + // @ts-ignore + public static RAID_TRIGGER: org.bukkit.Statistic; + // @ts-ignore + public static RAID_WIN: org.bukkit.Statistic; + // @ts-ignore + public static values(): org.bukkit.Statistic[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.Statistic; + /** + * Gets the type of this statistic. + */ + // @ts-ignore + public getType(): org.bukkit.Statistic.Type; + /** + * Checks if this is a substatistic. + *

+ * A substatistic exists en masse for each block, item, or entitytype, depending on + * {@link #getType()}. + *

+ * This is a redundant method and equivalent to checking + * getType() != Type.UNTYPED + */ + // @ts-ignore + public isSubstatistic(): boolean; + /** + * Checks if this is a substatistic dealing with blocks. + *

+ * This is a redundant method and equivalent to checking + * getType() == Type.BLOCK + */ + // @ts-ignore + public isBlock(): boolean; + // @ts-ignore + public getKey(): org.bukkit.NamespacedKey; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.StructureType.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.StructureType.d.ts new file mode 100644 index 00000000..f9607f13 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.StructureType.d.ts @@ -0,0 +1,61 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class StructureType extends java.lang.Object { + // @ts-ignore + public static MINESHAFT: org.bukkit.StructureType; + // @ts-ignore + public static VILLAGE: org.bukkit.StructureType; + // @ts-ignore + public static NETHER_FORTRESS: org.bukkit.StructureType; + // @ts-ignore + public static STRONGHOLD: org.bukkit.StructureType; + // @ts-ignore + public static JUNGLE_PYRAMID: org.bukkit.StructureType; + // @ts-ignore + public static OCEAN_RUIN: org.bukkit.StructureType; + // @ts-ignore + public static DESERT_PYRAMID: org.bukkit.StructureType; + // @ts-ignore + public static IGLOO: org.bukkit.StructureType; + // @ts-ignore + public static SWAMP_HUT: org.bukkit.StructureType; + // @ts-ignore + public static OCEAN_MONUMENT: org.bukkit.StructureType; + // @ts-ignore + public static END_CITY: org.bukkit.StructureType; + // @ts-ignore + public static WOODLAND_MANSION: org.bukkit.StructureType; + // @ts-ignore + public static BURIED_TREASURE: org.bukkit.StructureType; + // @ts-ignore + public static SHIPWRECK: org.bukkit.StructureType; + // @ts-ignore + public static PILLAGER_OUTPOST: org.bukkit.StructureType; + /** + * Get the name of this structure. This is case-sensitive when used in + * commands. + */ + // @ts-ignore + public getName(): string; + /** + * Get the {@link org.bukkit.map.MapCursor.Type} that this structure can use on maps. If + * this is null, this structure will not appear on explorer maps. + */ + // @ts-ignore + public getMapIcon(): org.bukkit.map.MapCursor.Type; + // @ts-ignore + public equals(other: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + /** + * Get all registered {@link StructureType}s. + */ + // @ts-ignore + public static getStructureTypes(): java.util.Map; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.Tag.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.Tag.d.ts new file mode 100644 index 00000000..5335a619 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.Tag.d.ts @@ -0,0 +1,130 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + interface Tag extends org.bukkit.Keyed { + // @ts-ignore + REGISTRY_BLOCKS: string; + // @ts-ignore + WOOL: org.bukkit.Tag; + // @ts-ignore + PLANKS: org.bukkit.Tag; + // @ts-ignore + STONE_BRICKS: org.bukkit.Tag; + // @ts-ignore + WOODEN_BUTTONS: org.bukkit.Tag; + // @ts-ignore + BUTTONS: org.bukkit.Tag; + // @ts-ignore + CARPETS: org.bukkit.Tag; + // @ts-ignore + WOODEN_DOORS: org.bukkit.Tag; + // @ts-ignore + WOODEN_STAIRS: org.bukkit.Tag; + // @ts-ignore + WOODEN_SLABS: org.bukkit.Tag; + // @ts-ignore + WOODEN_FENCES: org.bukkit.Tag; + // @ts-ignore + WOODEN_PRESSURE_PLATES: org.bukkit.Tag; + // @ts-ignore + WOODEN_TRAPDOORS: org.bukkit.Tag; + // @ts-ignore + DOORS: org.bukkit.Tag; + // @ts-ignore + SAPLINGS: org.bukkit.Tag; + // @ts-ignore + LOGS: org.bukkit.Tag; + // @ts-ignore + DARK_OAK_LOGS: org.bukkit.Tag; + // @ts-ignore + OAK_LOGS: org.bukkit.Tag; + // @ts-ignore + BIRCH_LOGS: org.bukkit.Tag; + // @ts-ignore + ACACIA_LOGS: org.bukkit.Tag; + // @ts-ignore + JUNGLE_LOGS: org.bukkit.Tag; + // @ts-ignore + SPRUCE_LOGS: org.bukkit.Tag; + // @ts-ignore + BANNERS: org.bukkit.Tag; + // @ts-ignore + SAND: org.bukkit.Tag; + // @ts-ignore + STAIRS: org.bukkit.Tag; + // @ts-ignore + SLABS: org.bukkit.Tag; + // @ts-ignore + WALLS: org.bukkit.Tag; + // @ts-ignore + ANVIL: org.bukkit.Tag; + // @ts-ignore + RAILS: org.bukkit.Tag; + // @ts-ignore + LEAVES: org.bukkit.Tag; + // @ts-ignore + TRAPDOORS: org.bukkit.Tag; + // @ts-ignore + FLOWER_POTS: org.bukkit.Tag; + // @ts-ignore + SMALL_FLOWERS: org.bukkit.Tag; + // @ts-ignore + BEDS: org.bukkit.Tag; + // @ts-ignore + FENCES: org.bukkit.Tag; + // @ts-ignore + ENDERMAN_HOLDABLE: org.bukkit.Tag; + // @ts-ignore + ICE: org.bukkit.Tag; + // @ts-ignore + VALID_SPAWN: org.bukkit.Tag; + // @ts-ignore + IMPERMEABLE: org.bukkit.Tag; + // @ts-ignore + UNDERWATER_BONEMEALS: org.bukkit.Tag; + // @ts-ignore + CORAL_BLOCKS: org.bukkit.Tag; + // @ts-ignore + WALL_CORALS: org.bukkit.Tag; + // @ts-ignore + CORAL_PLANTS: org.bukkit.Tag; + // @ts-ignore + CORALS: org.bukkit.Tag; + // @ts-ignore + BAMBOO_PLANTABLE_ON: org.bukkit.Tag; + // @ts-ignore + DIRT_LIKE: org.bukkit.Tag; + // @ts-ignore + STANDING_SIGNS: org.bukkit.Tag; + // @ts-ignore + WALL_SIGNS: org.bukkit.Tag; + // @ts-ignore + SIGNS: org.bukkit.Tag; + // @ts-ignore + REGISTRY_ITEMS: string; + // @ts-ignore + ITEMS_BANNERS: org.bukkit.Tag; + // @ts-ignore + ITEMS_BOATS: org.bukkit.Tag; + // @ts-ignore + ITEMS_FISHES: org.bukkit.Tag; + // @ts-ignore + ITEMS_MUSIC_DISCS: org.bukkit.Tag; + // @ts-ignore + ITEMS_COALS: org.bukkit.Tag; + // @ts-ignore + ITEMS_ARROWS: org.bukkit.Tag; + /** + * Returns whether or not this tag has an entry for the specified item. + */ + // @ts-ignore + isTagged(item: org.bukkit.Keyed): boolean; + /** + * Gets an immutable set of all tagged items. + */ + // @ts-ignore + getValues(): java.util.Set; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.TreeSpecies.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.TreeSpecies.d.ts new file mode 100644 index 00000000..16a20e6c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.TreeSpecies.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class TreeSpecies extends java.lang.Enum { + // @ts-ignore + public static GENERIC: org.bukkit.TreeSpecies; + // @ts-ignore + public static REDWOOD: org.bukkit.TreeSpecies; + // @ts-ignore + public static BIRCH: org.bukkit.TreeSpecies; + // @ts-ignore + public static JUNGLE: org.bukkit.TreeSpecies; + // @ts-ignore + public static ACACIA: org.bukkit.TreeSpecies; + // @ts-ignore + public static DARK_OAK: org.bukkit.TreeSpecies; + // @ts-ignore + public static values(): org.bukkit.TreeSpecies[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.TreeSpecies; + /** + * Gets the associated data value representing this species + */ + // @ts-ignore + public getData(): number; + /** + * Gets the TreeSpecies with the given data value + */ + // @ts-ignore + public static getByData(data: number): org.bukkit.TreeSpecies; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.TreeType.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.TreeType.d.ts new file mode 100644 index 00000000..43503cc3 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.TreeType.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class TreeType extends java.lang.Enum { + // @ts-ignore + public static TREE: org.bukkit.TreeType; + // @ts-ignore + public static BIG_TREE: org.bukkit.TreeType; + // @ts-ignore + public static REDWOOD: org.bukkit.TreeType; + // @ts-ignore + public static TALL_REDWOOD: org.bukkit.TreeType; + // @ts-ignore + public static BIRCH: org.bukkit.TreeType; + // @ts-ignore + public static JUNGLE: org.bukkit.TreeType; + // @ts-ignore + public static SMALL_JUNGLE: org.bukkit.TreeType; + // @ts-ignore + public static COCOA_TREE: org.bukkit.TreeType; + // @ts-ignore + public static JUNGLE_BUSH: org.bukkit.TreeType; + // @ts-ignore + public static RED_MUSHROOM: org.bukkit.TreeType; + // @ts-ignore + public static BROWN_MUSHROOM: org.bukkit.TreeType; + // @ts-ignore + public static SWAMP: org.bukkit.TreeType; + // @ts-ignore + public static ACACIA: org.bukkit.TreeType; + // @ts-ignore + public static DARK_OAK: org.bukkit.TreeType; + // @ts-ignore + public static MEGA_REDWOOD: org.bukkit.TreeType; + // @ts-ignore + public static TALL_BIRCH: org.bukkit.TreeType; + // @ts-ignore + public static CHORUS_PLANT: org.bukkit.TreeType; + // @ts-ignore + public static values(): org.bukkit.TreeType[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.TreeType; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.UndefinedNullability.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.UndefinedNullability.d.ts new file mode 100644 index 00000000..f493f186 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.UndefinedNullability.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + interface UndefinedNullability { + /** + * Human readable description of the circumstances, in which the type is + * nullable. + */ + // @ts-ignore + value(): string; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.UnsafeValues.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.UnsafeValues.d.ts new file mode 100644 index 00000000..ea3bf61f --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.UnsafeValues.d.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + interface UnsafeValues { + // @ts-ignore + toLegacy(material: org.bukkit.Material): org.bukkit.Material; + // @ts-ignore + fromLegacy(material: org.bukkit.Material): org.bukkit.Material; + // @ts-ignore + fromLegacy(material: org.bukkit.material.MaterialData): org.bukkit.Material; + // @ts-ignore + fromLegacy(material: org.bukkit.material.MaterialData, itemPriority: boolean): org.bukkit.Material; + // @ts-ignore + fromLegacy(material: org.bukkit.Material, data: number): org.bukkit.block.data.BlockData; + // @ts-ignore + getMaterial(material: string, version: number): org.bukkit.Material; + // @ts-ignore + getDataVersion(): number; + // @ts-ignore + modifyItemStack(stack: org.bukkit.inventory.ItemStack, arguments: string): org.bukkit.inventory.ItemStack; + // @ts-ignore + checkSupported(pdf: org.bukkit.plugin.PluginDescriptionFile): void; + // @ts-ignore + processClass(pdf: org.bukkit.plugin.PluginDescriptionFile, path: string, clazz: number): number[]; + /** + * Load an advancement represented by the specified string into the server. + * The advancement format is governed by Minecraft and has no specified + * layout. + *
+ * It is currently a JSON object, as described by the Minecraft Wiki: + * http://minecraft.gamepedia.com/Advancements + *
+ * Loaded advancements will be stored and persisted across server restarts + * and reloads. + *
+ * Callers should be prepared for {@link Exception} to be thrown. + */ + // @ts-ignore + loadAdvancement(key: org.bukkit.NamespacedKey, advancement: string): org.bukkit.advancement.Advancement; + /** + * Delete an advancement which was loaded and saved by + * {@link #loadAdvancement(org.bukkit.NamespacedKey, java.lang.String)}. + *
+ * This method will only remove advancement from persistent storage. It + * should be accompanied by a call to {@link Server#reloadData()} in order + * to fully remove it from the running instance. + */ + // @ts-ignore + removeAdvancement(key: org.bukkit.NamespacedKey): boolean; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.Utility.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.Utility.d.ts new file mode 100644 index 00000000..96a4df35 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.Utility.d.ts @@ -0,0 +1,8 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + interface Utility { + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.Warning.WarningState.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.Warning.WarningState.d.ts new file mode 100644 index 00000000..329d8f60 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.Warning.WarningState.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace Warning { + // @ts-ignore + class WarningState extends java.lang.Enum { + // @ts-ignore + public static ON: org.bukkit.Warning.WarningState; + // @ts-ignore + public static OFF: org.bukkit.Warning.WarningState; + // @ts-ignore + public static DEFAULT: org.bukkit.Warning.WarningState; + // @ts-ignore + public static values(): org.bukkit.Warning.WarningState[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.Warning.WarningState; + /** + * This method checks the provided warning should be printed for this + * state + */ + // @ts-ignore + public printFor(warning: org.bukkit.Warning): boolean; + /** + * This method returns the corresponding warning state for the given + * string value. + */ + // @ts-ignore + public static value(value: string): org.bukkit.Warning.WarningState; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.Warning.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.Warning.d.ts new file mode 100644 index 00000000..6b993029 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.Warning.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + interface Warning { + /** + * This sets if the deprecation warnings when registering events gets + * printed when the setting is in the default state. + */ + // @ts-ignore + value(): boolean; + /** + * This can provide detailed information on why the event is deprecated. + */ + // @ts-ignore + reason(): string; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.WeatherType.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.WeatherType.d.ts new file mode 100644 index 00000000..abc46414 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.WeatherType.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class WeatherType extends java.lang.Enum { + // @ts-ignore + public static DOWNFALL: org.bukkit.WeatherType; + // @ts-ignore + public static CLEAR: org.bukkit.WeatherType; + // @ts-ignore + public static values(): org.bukkit.WeatherType[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.WeatherType; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.World.Environment.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.World.Environment.d.ts new file mode 100644 index 00000000..bf6d174b --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.World.Environment.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace World { + // @ts-ignore + class Environment extends java.lang.Enum { + // @ts-ignore + public static NORMAL: org.bukkit.World.Environment; + // @ts-ignore + public static NETHER: org.bukkit.World.Environment; + // @ts-ignore + public static THE_END: org.bukkit.World.Environment; + // @ts-ignore + public static values(): org.bukkit.World.Environment[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.World.Environment; + /** + * Gets the dimension ID of this environment + */ + // @ts-ignore + public getId(): number; + /** + * Get an environment by ID + */ + // @ts-ignore + public static getEnvironment(id: number): org.bukkit.World.Environment; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.World.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.World.d.ts new file mode 100644 index 00000000..5fd08796 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.World.d.ts @@ -0,0 +1,1142 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + interface World extends org.bukkit.plugin.messaging.PluginMessageRecipient, org.bukkit.metadata.Metadatable { + /** + * Gets the {@link Block} at the given coordinates + */ + // @ts-ignore + getBlockAt(x: number, y: number, z: number): org.bukkit.block.Block; + /** + * Gets the {@link Block} at the given {@link Location} + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getHighestBlockAt(location: org.bukkit.Location): org.bukkit.block.Block; + /** + * Gets the {@link Chunk} at the given coordinates + */ + // @ts-ignore + getChunkAt(x: number, z: number): org.bukkit.Chunk; + /** + * Gets the {@link Chunk} at the given {@link Location} + */ + // @ts-ignore + getChunkAt(location: org.bukkit.Location): org.bukkit.Chunk; + /** + * Gets the {@link Chunk} that contains the given {@link Block} + */ + // @ts-ignore + getChunkAt(block: org.bukkit.block.Block): org.bukkit.Chunk; + /** + * Checks if the specified {@link Chunk} is loaded + */ + // @ts-ignore + isChunkLoaded(chunk: org.bukkit.Chunk): boolean; + /** + * Gets an array of all loaded {@link Chunk}s + */ + // @ts-ignore + getLoadedChunks(): org.bukkit.Chunk[]; + /** + * Loads the specified {@link Chunk}. + *

+ * This method will keep the specified chunk loaded until one of the + * unload methods is manually called. Callers are advised to instead use + * getChunkAt which will only temporarily load the requested chunk. + */ + // @ts-ignore + loadChunk(chunk: org.bukkit.Chunk): void; + /** + * Checks if the {@link Chunk} at the specified coordinates is loaded + */ + // @ts-ignore + isChunkLoaded(x: number, z: number): boolean; + /** + * Checks if the {@link Chunk} at the specified coordinates is generated + */ + // @ts-ignore + 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 + */ + // @ts-ignore + isChunkInUse(x: number, z: number): boolean; + /** + * Loads the {@link Chunk} at the specified coordinates. + *

+ * This method will keep the specified chunk loaded until one of the + * unload methods is manually called. Callers are advised to instead use + * getChunkAt which will only temporarily load the requested chunk. + *

+ * If the chunk does not exist, it will be generated. + *

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

+ * This method will keep the specified chunk loaded until one of the + * unload methods is manually called. Callers are advised to instead use + * getChunkAt which will only temporarily load the requested chunk. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + unloadChunk(x: number, z: number): boolean; + /** + * Safely unloads and optionally saves the {@link Chunk} at the specified + * coordinates. + */ + // @ts-ignore + unloadChunk(x: number, z: number, save: boolean): boolean; + /** + * Safely queues the {@link Chunk} at the specified coordinates for + * unloading. + */ + // @ts-ignore + unloadChunkRequest(x: number, z: number): boolean; + /** + * Regenerates the {@link Chunk} at the specified coordinates + */ + // @ts-ignore + regenerateChunk(x: number, z: number): boolean; + /** + * Resends the {@link Chunk} to all clients + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getForceLoadedChunks(): java.util.Collection; + /** + * Adds a plugin ticket for the specified chunk, loading the chunk if it is + * not already loaded. + *

+ * A plugin ticket will prevent a chunk from unloading until it is + * explicitly removed. A plugin instance may only have one ticket per chunk, + * but each chunk can have multiple plugin tickets. + *

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

+ * A plugin ticket will prevent a chunk from unloading until it is + * explicitly removed. A plugin instance may only have one ticket per chunk, + * but each chunk can have multiple plugin tickets. + *

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

+ * A plugin ticket will prevent a chunk from unloading until it is + * explicitly removed. A plugin instance may only have one ticket per chunk, + * but each chunk can have multiple plugin tickets. + *

+ */ + // @ts-ignore + 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 + * added or removed to the chunk. + *

+ * A plugin ticket will prevent a chunk from unloading until it is + * explicitly removed. A plugin instance may only have one ticket per chunk, + * but each chunk can have multiple plugin tickets. + *

+ */ + // @ts-ignore + getPluginChunkTickets(x: number, z: number): 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 + * a plugin has no tickets, it will be absent from the map. + *

+ * A plugin ticket will prevent a chunk from unloading until it is + * explicitly removed. A plugin instance may only have one ticket per chunk, + * but each chunk can have multiple plugin tickets. + *

+ */ + // @ts-ignore + getPluginChunkTickets(): java.util.Map; + /** + * Drops an item at the specified {@link Location} + */ + // @ts-ignore + 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 + */ + // @ts-ignore + dropItemNaturally(location: org.bukkit.Location, item: org.bukkit.inventory.ItemStack): org.bukkit.entity.Item; + /** + * Creates an {@link Arrow} entity at the given {@link Location} + */ + // @ts-ignore + 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} + */ + // @ts-ignore + spawnArrow(location: org.bukkit.Location, direction: org.bukkit.util.Vector, speed: number, spread: number, clazz: java.lang.Class): org.bukkit.entity.AbstractArrow; + /** + * Creates a tree at the given {@link Location} + */ + // @ts-ignore + generateTree(location: org.bukkit.Location, type: org.bukkit.TreeType): boolean; + /** + * Creates a tree at the given {@link Location} + */ + // @ts-ignore + generateTree(loc: org.bukkit.Location, type: org.bukkit.TreeType, delegate: org.bukkit.BlockChangeDelegate): boolean; + /** + * Creates a entity at the given {@link Location} + */ + // @ts-ignore + spawnEntity(loc: org.bukkit.Location, type: org.bukkit.entity.EntityType): org.bukkit.entity.Entity; + /** + * Strikes lightning at the given {@link Location} + */ + // @ts-ignore + strikeLightning(loc: org.bukkit.Location): org.bukkit.entity.LightningStrike; + /** + * Strikes lightning at the given {@link Location} without doing damage + */ + // @ts-ignore + strikeLightningEffect(loc: org.bukkit.Location): org.bukkit.entity.LightningStrike; + /** + * Get a list of all entities in this World + */ + // @ts-ignore + getEntities(): java.util.List; + /** + * Get a list of all living entities in this World + */ + // @ts-ignore + getLivingEntities(): java.util.List; + /** + * Get a collection of all entities in this World matching the given + * class/interface + */ + // @ts-ignore + getEntitiesByClass(classes: java.lang.Class): java.util.Collection; + /** + * Get a collection of all entities in this World matching the given + * class/interface + */ + // @ts-ignore + getEntitiesByClass(cls: java.lang.Class): java.util.Collection; + /** + * Get a collection of all entities in this World matching any of the + * given classes/interfaces + */ + // @ts-ignore + getEntitiesByClasses(classes: java.lang.Class): java.util.Collection; + /** + * Get a list of all players in this World + */ + // @ts-ignore + getPlayers(): java.util.List; + /** + * Returns a list of entities within a bounding box centered around a + * Location. + *

+ * This may not consider entities in currently unloaded chunks. Some + * implementations may impose artificial restrictions on the size of the + * search bounding box. + */ + // @ts-ignore + getNearbyEntities(location: org.bukkit.Location, x: number, y: number, z: number): java.util.Collection; + /** + * Returns a list of entities within a bounding box centered around a + * Location. + *

+ * This may not consider entities in currently unloaded chunks. Some + * implementations may impose artificial restrictions on the size of the + * search bounding box. + */ + // @ts-ignore + getNearbyEntities(location: org.bukkit.Location, x: number, y: number, z: number, filter: java.util.function$.Predicate): java.util.Collection; + /** + * Returns a list of entities within the given bounding box. + *

+ * This may not consider entities in currently unloaded chunks. Some + * implementations may impose artificial restrictions on the size of the + * search bounding box. + */ + // @ts-ignore + getNearbyEntities(boundingBox: org.bukkit.util.BoundingBox): java.util.Collection; + /** + * Returns a list of entities within the given bounding box. + *

+ * This may not consider entities in currently unloaded chunks. Some + * implementations may impose artificial restrictions on the size of the + * search bounding box. + */ + // @ts-ignore + getNearbyEntities(boundingBox: org.bukkit.util.BoundingBox, filter: java.util.function$.Predicate): java.util.Collection; + /** + * Performs a ray trace that checks for entity collisions. + *

+ * This may not consider entities in currently unloaded chunks. Some + * implementations may impose artificial restrictions on the maximum + * distance. + */ + // @ts-ignore + 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. + *

+ * This may not consider entities in currently unloaded chunks. Some + * implementations may impose artificial restrictions on the maximum + * distance. + */ + // @ts-ignore + 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. + *

+ * This may not consider entities in currently unloaded chunks. Some + * implementations may impose artificial restrictions on the maximum + * distance. + */ + // @ts-ignore + rayTraceEntities(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number, filter: java.util.function$.Predicate): org.bukkit.util.RayTraceResult; + /** + * Performs a ray trace that checks for entity collisions. + *

+ * This may not consider entities in currently unloaded chunks. Some + * implementations may impose artificial restrictions on the maximum + * distance. + */ + // @ts-ignore + rayTraceEntities(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number, raySize: number, filter: java.util.function$.Predicate): org.bukkit.util.RayTraceResult; + /** + * Performs a ray trace that checks for block collisions using the blocks' + * precise collision shapes. + *

+ * This takes collisions with passable blocks into account, but ignores + * fluids. + *

+ * This may cause loading of chunks! Some implementations may impose + * artificial restrictions on the maximum distance. + */ + // @ts-ignore + 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. + *

+ * This takes collisions with passable blocks into account. + *

+ * This may cause loading of chunks! Some implementations may impose + * artificial restrictions on the maximum distance. + */ + // @ts-ignore + 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. + *

+ * If collisions with passable blocks are ignored, fluid collisions are + * ignored as well regardless of the fluid collision mode. + *

+ * Portal blocks are only considered passable if the ray starts within + * them. Apart from that collisions with portal blocks will be considered + * even if collisions with passable blocks are otherwise ignored. + *

+ * This may cause loading of chunks! Some implementations may impose + * artificial restrictions on the maximum distance. + */ + // @ts-ignore + 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. + *

+ * Block collisions use the blocks' precise collision shapes. The + * raySize parameter is only taken into account for entity + * collision checks. + *

+ * If collisions with passable blocks are ignored, fluid collisions are + * ignored as well regardless of the fluid collision mode. + *

+ * Portal blocks are only considered passable if the ray starts within them. + * Apart from that collisions with portal blocks will be considered even if + * collisions with passable blocks are otherwise ignored. + *

+ * This may cause loading of chunks! Some implementations may impose + * artificial restrictions on the maximum distance. + */ + // @ts-ignore + rayTrace(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number, fluidCollisionMode: org.bukkit.FluidCollisionMode, ignorePassableBlocks: boolean, raySize: number, filter: java.util.function$.Predicate): org.bukkit.util.RayTraceResult; + /** + * Gets the unique name of this world + */ + // @ts-ignore + getName(): string; + /** + * Gets the Unique ID of this world + */ + // @ts-ignore + getUID(): java.util.UUID; + /** + * Gets the default spawn {@link Location} of this world + */ + // @ts-ignore + getSpawnLocation(): org.bukkit.Location; + /** + * Sets the spawn location of the world. + *
+ * The location provided must be equal to this world. + */ + // @ts-ignore + setSpawnLocation(location: org.bukkit.Location): boolean; + /** + * Sets the spawn location of the world + */ + // @ts-ignore + 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 + */ + // @ts-ignore + getTime(): number; + /** + * Sets the relative in-game time on the server. + *

+ * The relative time is analogous to hours * 1000 + *

+ * Note that setting the relative time below the current relative time + * will actually move the clock forward a day. If you require to rewind + * time, please see {@link #setFullTime(long)} + */ + // @ts-ignore + setTime(time: number): void; + /** + * Gets the full in-game time on this world + */ + // @ts-ignore + 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 + */ + // @ts-ignore + setFullTime(time: number): void; + /** + * Returns whether the world has an ongoing storm. + */ + // @ts-ignore + hasStorm(): boolean; + /** + * Set whether there is a storm. A duration will be set for the new + * current conditions. + */ + // @ts-ignore + setStorm(hasStorm: boolean): void; + /** + * Get the remaining time in ticks of the current conditions. + */ + // @ts-ignore + getWeatherDuration(): number; + /** + * Set the remaining time in ticks of the current conditions. + */ + // @ts-ignore + setWeatherDuration(duration: number): void; + /** + * Returns whether there is thunder. + */ + // @ts-ignore + isThundering(): boolean; + /** + * Set whether it is thundering. + */ + // @ts-ignore + setThundering(thundering: boolean): void; + /** + * Get the thundering duration. + */ + // @ts-ignore + getThunderDuration(): number; + /** + * Set the thundering duration. + */ + // @ts-ignore + setThunderDuration(duration: number): void; + /** + * Creates explosion at given coordinates with given power + */ + // @ts-ignore + createExplosion(x: number, y: number, z: number, power: number): boolean; + /** + * Creates explosion at given coordinates with given power and optionally + * setting blocks on fire. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + createExplosion(x: number, y: number, z: number, power: number, setFire: boolean, breakBlocks: boolean): boolean; + /** + * Creates explosion at given coordinates with given power + */ + // @ts-ignore + createExplosion(loc: org.bukkit.Location, power: number): boolean; + /** + * Creates explosion at given coordinates with given power and optionally + * setting blocks on fire. + */ + // @ts-ignore + createExplosion(loc: org.bukkit.Location, power: number, setFire: boolean): boolean; + /** + * Gets the {@link Environment} type of this world + */ + // @ts-ignore + getEnvironment(): org.bukkit.World.Environment; + /** + * Gets the Seed for this world. + */ + // @ts-ignore + getSeed(): number; + /** + * Gets the current PVP setting for this world. + */ + // @ts-ignore + getPVP(): boolean; + /** + * Sets the PVP setting for this world. + */ + // @ts-ignore + setPVP(pvp: boolean): void; + /** + * Gets the chunk generator for this world + */ + // @ts-ignore + getGenerator(): org.bukkit.generator.ChunkGenerator; + /** + * Saves world to disk + */ + // @ts-ignore + save(): void; + /** + * Gets a list of all applied {@link BlockPopulator}s for this World + */ + // @ts-ignore + getPopulators(): java.util.List; + /** + * Spawn an entity of a specific class at the given {@link Location} + */ + // @ts-ignore + spawn(location: org.bukkit.Location, clazz: java.lang.Class): 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. + *
+ * Note that when the function is run, the entity will not be actually in + * the world. Any operation involving such as teleporting the entity is undefined + * until after this function returns. + */ + // @ts-ignore + spawn(location: org.bukkit.Location, clazz: java.lang.Class, 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. + * When the FallingBlock hits the ground, it will place that block. + *

+ * The Material must be a block type, check with {@link Material#isBlock() + * material.isBlock()}. The Material may not be air. + */ + // @ts-ignore + 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. + * When the FallingBlock hits the ground, it will place that block. + *

+ * The Material must be a block type, check with {@link Material#isBlock() + * material.isBlock()}. The Material may not be air. + */ + // @ts-ignore + 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. + * When the FallingBlock hits the ground, it will place that block. + *

+ * The Material must be a block type, check with {@link Material#isBlock() + * material.isBlock()}. The Material may not be air. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + playEffect(location: org.bukkit.Location, effect: org.bukkit.Effect, data: java.lang.Object): void; + /** + * Plays an effect to all players within a given radius around a location. + */ + // @ts-ignore + playEffect(location: org.bukkit.Location, effect: org.bukkit.Effect, data: java.lang.Object, 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. + */ + // @ts-ignore + getEmptyChunkSnapshot(x: number, z: number, includeBiome: boolean, includeBiomeTemp: boolean): org.bukkit.ChunkSnapshot; + /** + * Sets the spawn flags for this. + */ + // @ts-ignore + setSpawnFlags(allowMonsters: boolean, allowAnimals: boolean): void; + /** + * Gets whether animals can spawn in this world. + */ + // @ts-ignore + getAllowAnimals(): boolean; + /** + * Gets whether monsters can spawn in this world. + */ + // @ts-ignore + getAllowMonsters(): boolean; + /** + * Gets the biome for the given block coordinates. + */ + // @ts-ignore + getBiome(x: number, z: number): org.bukkit.block.Biome; + /** + * Sets the biome for the given block coordinates + */ + // @ts-ignore + setBiome(x: number, z: number, bio: org.bukkit.block.Biome): void; + /** + * Gets the temperature for the given block coordinates. + *

+ * It is safe to run this method when the block does not exist, it will + * not create the block. + *

+ * This method will return the raw temperature without adjusting for block + * height effects. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getMaxHeight(): number; + /** + * Gets the sea level for this world. + *

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

+ * This value determines how many ticks there are between attempts to + * spawn animals. + *

+ * Example Usage: + *

    + *
  • A value of 1 will mean the server will attempt to spawn animals in + * this world every tick. + *
  • A value of 400 will mean the server will attempt to spawn animals + * in this world every 400th tick. + *
  • A value below 0 will be reset back to Minecraft's default. + *
+ *

+ * Note: + * If set to 0, animal spawning will be disabled for this world. We + * recommend using {@link #setSpawnFlags(boolean, boolean)} to control + * this instead. + *

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

+ * This value determines how many ticks there are between attempts to + * spawn animals. + *

+ * Example Usage: + *

    + *
  • A value of 1 will mean the server will attempt to spawn animals in + * this world every tick. + *
  • A value of 400 will mean the server will attempt to spawn animals + * in this world every 400th tick. + *
  • A value below 0 will be reset back to Minecraft's default. + *
+ *

+ * Note: + * If set to 0, animal spawning will be disabled for this world. We + * recommend using {@link #setSpawnFlags(boolean, boolean)} to control + * this instead. + *

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

+ * This value determines how many ticks there are between attempts to + * spawn monsters. + *

+ * Example Usage: + *

    + *
  • A value of 1 will mean the server will attempt to spawn monsters in + * this world every tick. + *
  • A value of 400 will mean the server will attempt to spawn monsters + * in this world every 400th tick. + *
  • A value below 0 will be reset back to Minecraft's default. + *
+ *

+ * Note: + * If set to 0, monsters spawning will be disabled for this world. We + * recommend using {@link #setSpawnFlags(boolean, boolean)} to control + * this instead. + *

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

+ * This value determines how many ticks there are between attempts to + * spawn monsters. + *

+ * Example Usage: + *

    + *
  • A value of 1 will mean the server will attempt to spawn monsters in + * this world on every tick. + *
  • A value of 400 will mean the server will attempt to spawn monsters + * in this world every 400th tick. + *
  • A value below 0 will be reset back to Minecraft's default. + *
+ *

+ * Note: + * If set to 0, monsters spawning will be disabled for this world. We + * recommend using {@link #setSpawnFlags(boolean, boolean)} to control + * this instead. + *

+ * Minecraft default: 1. + */ + // @ts-ignore + setTicksPerMonsterSpawns(ticksPerMonsterSpawns: number): void; + /** + * Gets limit for number of monsters that can spawn in a chunk in this + * world + */ + // @ts-ignore + getMonsterSpawnLimit(): number; + /** + * Sets the limit for number of monsters that can spawn in a chunk in this + * world + *

+ * Note: If set to a negative number the world will use the + * server-wide spawn limit instead. + */ + // @ts-ignore + setMonsterSpawnLimit(limit: number): void; + /** + * Gets the limit for number of animals that can spawn in a chunk in this + * world + */ + // @ts-ignore + getAnimalSpawnLimit(): number; + /** + * Sets the limit for number of animals that can spawn in a chunk in this + * world + *

+ * Note: If set to a negative number the world will use the + * server-wide spawn limit instead. + */ + // @ts-ignore + setAnimalSpawnLimit(limit: number): void; + /** + * Gets the limit for number of water animals that can spawn in a chunk in + * this world + */ + // @ts-ignore + getWaterAnimalSpawnLimit(): number; + /** + * Sets the limit for number of water animals that can spawn in a chunk in + * this world + *

+ * Note: If set to a negative number the world will use the + * server-wide spawn limit instead. + */ + // @ts-ignore + setWaterAnimalSpawnLimit(limit: number): void; + /** + * Gets the limit for number of ambient mobs that can spawn in a chunk in + * this world + */ + // @ts-ignore + getAmbientSpawnLimit(): number; + /** + * Sets the limit for number of ambient mobs that can spawn in a chunk in + * this world + *

+ * Note: If set to a negative number the world will use the + * server-wide spawn limit instead. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + playSound(location: org.bukkit.Location, sound: org.bukkit.Sound, 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. No + * sound will be heard by the players if their clients do not have the + * respective sound for the value passed. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + *

+ * This function will fail silently if Location or Sound are null. No sound + * will be heard by the players if their clients do not have the respective + * sound for the value passed. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getGameRules(): java.lang.String[]; + /** + * Gets the current state of the specified rule + *

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

+ * The rule may attempt to validate the value passed, will return true if + * value was set. + *

+ * If rule is null, the function will return false. + */ + // @ts-ignore + setGameRuleValue(rule: string, value: string): boolean; + /** + * Checks if string is a valid game rule + */ + // @ts-ignore + isGameRule(rule: string): boolean; + /** + * Get the current value for a given {@link GameRule}. + */ + // @ts-ignore + getGameRuleValue(rule: org.bukkit.GameRule): java.lang.Object; + /** + * Get the default value for a given {@link GameRule}. This value is not + * guaranteed to match the current value. + */ + // @ts-ignore + getGameRuleDefault(rule: org.bukkit.GameRule): java.lang.Object; + /** + * Set the given {@link GameRule}'s new value. + */ + // @ts-ignore + setGameRule(rule: org.bukkit.GameRule, newValue: java.lang.Object): boolean; + /** + * Gets the world border for this world. + */ + // @ts-ignore + getWorldBorder(): org.bukkit.WorldBorder; + /** + * Spawns the particle (the number of times specified by count) + * at the target location. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, data: java.lang.Object): void; + /** + * Spawns the particle (the number of times specified by count) + * at the target location. + */ + // @ts-ignore + spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, data: java.lang.Object): 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, offsetX: number, offsetY: number, offsetZ: number, data: java.lang.Object): 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. + */ + // @ts-ignore + spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, offsetX: number, offsetY: number, offsetZ: number, data: java.lang.Object): 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number, data: java.lang.Object): 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. + */ + // @ts-ignore + spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number, data: java.lang.Object): 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. + */ + // @ts-ignore + spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number, data: java.lang.Object, 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. + */ + // @ts-ignore + spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number, data: java.lang.Object, force: boolean): void; + /** + * Find the closest nearby structure of a given {@link StructureType}. + * Finding unexplored structures can, and will, block if the world is + * looking in chunks that gave not generated yet. This can lead to the world + * temporarily freezing while locating an unexplored structure. + *

+ * The {@code radius} is not a rigid square radius. Each structure may alter + * how many chunks to check for each iteration. Do not assume that only a + * radius x radius chunk area will be checked. For example, + * {@link StructureType#WOODLAND_MANSION} can potentially check up to 20,000 + * blocks away (or more) regardless of the radius used. + *

+ * This will not load or generate chunks. This can also lead to + * instances where the server can hang if you are only looking for + * unexplored structures. This is because it will keep looking further and + * further out in order to find the structure. + */ + // @ts-ignore + locateNearestStructure(origin: org.bukkit.Location, structureType: org.bukkit.StructureType, radius: number, findUnexplored: boolean): org.bukkit.Location; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.WorldBorder.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.WorldBorder.d.ts new file mode 100644 index 00000000..93ea69ca --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.WorldBorder.d.ts @@ -0,0 +1,88 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + interface WorldBorder { + /** + * Resets the border to default values. + */ + // @ts-ignore + reset(): void; + /** + * Gets the current side length of the border. + */ + // @ts-ignore + getSize(): number; + /** + * Sets the border to a square region with the specified side length in blocks. + */ + // @ts-ignore + setSize(newSize: number): void; + /** + * Sets the border to a square region with the specified side length in blocks. + */ + // @ts-ignore + setSize(newSize: number, seconds: number): void; + /** + * Gets the current border center. + */ + // @ts-ignore + getCenter(): org.bukkit.Location; + /** + * Sets the new border center. + */ + // @ts-ignore + setCenter(x: number, z: number): void; + /** + * Sets the new border center. + */ + // @ts-ignore + setCenter(location: org.bukkit.Location): void; + /** + * Gets the current border damage buffer. + */ + // @ts-ignore + getDamageBuffer(): number; + /** + * Sets the amount of blocks a player may safely be outside the border before taking damage. + */ + // @ts-ignore + setDamageBuffer(blocks: number): void; + /** + * Gets the current border damage amount. + */ + // @ts-ignore + getDamageAmount(): number; + /** + * Sets the amount of damage a player takes when outside the border plus the border buffer. + */ + // @ts-ignore + setDamageAmount(damage: number): void; + /** + * Gets the current border warning time in seconds. + */ + // @ts-ignore + getWarningTime(): number; + /** + * Sets the warning time that causes the screen to be tinted red when a contracting border will reach the player within the specified time. + */ + // @ts-ignore + setWarningTime(seconds: number): void; + /** + * Gets the current border warning distance. + */ + // @ts-ignore + getWarningDistance(): number; + /** + * Sets the warning distance that causes the screen to be tinted red when the player is within the specified number of blocks from the border. + */ + // @ts-ignore + setWarningDistance(distance: number): void; + /** + * Check if the specified location is inside this border. + */ + // @ts-ignore + isInside(location: org.bukkit.Location): boolean; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.WorldCreator.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.WorldCreator.d.ts new file mode 100644 index 00000000..64ca50b6 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.WorldCreator.d.ts @@ -0,0 +1,145 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class WorldCreator extends java.lang.Object { + /** + * Creates an empty WorldCreationOptions for the given world name + */ + // @ts-ignore + constructor(name: string) + /** + * Copies the options from the specified world + */ + // @ts-ignore + public copy(world: org.bukkit.World): org.bukkit.WorldCreator; + /** + * Copies the options from the specified {@link WorldCreator} + */ + // @ts-ignore + public copy(creator: org.bukkit.WorldCreator): org.bukkit.WorldCreator; + /** + * Gets the name of the world that is to be loaded or created. + */ + // @ts-ignore + public name(): string; + /** + * Gets the seed that will be used to create this world + */ + // @ts-ignore + public seed(): number; + /** + * Sets the seed that will be used to create this world + */ + // @ts-ignore + public seed(seed: number): org.bukkit.WorldCreator; + /** + * Gets the environment that will be used to create or load the world + */ + // @ts-ignore + public environment(): org.bukkit.World.Environment; + /** + * Sets the environment that will be used to create or load the world + */ + // @ts-ignore + public environment(env: org.bukkit.World.Environment): org.bukkit.WorldCreator; + /** + * Gets the type of the world that will be created or loaded + */ + // @ts-ignore + public type(): org.bukkit.WorldType; + /** + * Sets the type of the world that will be created or loaded + */ + // @ts-ignore + public type(type: org.bukkit.WorldType): org.bukkit.WorldCreator; + /** + * Gets the generator that will be used to create or load the world. + *

+ * This may be null, in which case the "natural" generator for this + * environment will be used. + */ + // @ts-ignore + public generator(): org.bukkit.generator.ChunkGenerator; + /** + * Sets the generator that will be used to create or load the world. + *

+ * This may be null, in which case the "natural" generator for this + * environment will be used. + */ + // @ts-ignore + public generator(generator: org.bukkit.generator.ChunkGenerator): org.bukkit.WorldCreator; + /** + * Sets the generator that will be used to create or load the world. + *

+ * This may be null, in which case the "natural" generator for this + * environment will be used. + *

+ * If the generator cannot be found for the given name, the natural + * environment generator will be used instead and a warning will be + * printed to the console. + */ + // @ts-ignore + public generator(generator: string): org.bukkit.WorldCreator; + /** + * Sets the generator that will be used to create or load the world. + *

+ * This may be null, in which case the "natural" generator for this + * environment will be used. + *

+ * If the generator cannot be found for the given name, the natural + * environment generator will be used instead and a warning will be + * printed to the specified output + */ + // @ts-ignore + public generator(generator: string, output: org.bukkit.command.CommandSender): org.bukkit.WorldCreator; + /** + * Sets the generator settings of the world that will be created or loaded + */ + // @ts-ignore + public generatorSettings(generatorSettings: string): org.bukkit.WorldCreator; + /** + * Gets the generator settings of the world that will be created or loaded + */ + // @ts-ignore + public generatorSettings(): string; + /** + * Sets whether or not worlds created or loaded with this creator will + * have structures. + */ + // @ts-ignore + public generateStructures(generate: boolean): org.bukkit.WorldCreator; + /** + * Gets whether or not structures will be generated in the world. + */ + // @ts-ignore + public generateStructures(): boolean; + /** + * Creates a world with the specified options. + *

+ * If the world already exists, it will be loaded from disk and some + * options may be ignored. + */ + // @ts-ignore + public createWorld(): org.bukkit.World; + /** + * Creates a new {@link WorldCreator} for the given world name + */ + // @ts-ignore + public static name(name: string): org.bukkit.WorldCreator; + /** + * Attempts to get the {@link ChunkGenerator} with the given name. + *

+ * If the generator is not found, null will be returned and a message will + * be printed to the specified {@link CommandSender} explaining why. + *

+ * The name must be in the "plugin:id" notation, or optionally just + * "plugin", where "plugin" is the safe-name of a plugin and "id" is an + * optional unique identifier for the generator you wish to request from + * the plugin. + */ + // @ts-ignore + public static getGeneratorForName(world: string, name: string, output: org.bukkit.command.CommandSender): org.bukkit.generator.ChunkGenerator; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.WorldType.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.WorldType.d.ts new file mode 100644 index 00000000..2084b694 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.WorldType.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + // @ts-ignore + class WorldType extends java.lang.Enum { + // @ts-ignore + public static NORMAL: org.bukkit.WorldType; + // @ts-ignore + public static FLAT: org.bukkit.WorldType; + // @ts-ignore + public static VERSION_1_1: org.bukkit.WorldType; + // @ts-ignore + public static LARGE_BIOMES: org.bukkit.WorldType; + // @ts-ignore + public static AMPLIFIED: org.bukkit.WorldType; + // @ts-ignore + public static CUSTOMIZED: org.bukkit.WorldType; + // @ts-ignore + public static BUFFET: org.bukkit.WorldType; + // @ts-ignore + public static values(): org.bukkit.WorldType[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.WorldType; + /** + * Gets the name of this WorldType + */ + // @ts-ignore + public getName(): string; + /** + * Gets a WorldType by its name + */ + // @ts-ignore + public static getByName(name: string): org.bukkit.WorldType; + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.advancement.Advancement.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.advancement.Advancement.d.ts new file mode 100644 index 00000000..4b7cd0ba --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.advancement.Advancement.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace advancement { + // @ts-ignore + interface Advancement extends org.bukkit.Keyed { + /** + * Get all the criteria present in this advancement. + */ + // @ts-ignore + getCriteria(): java.util.Collection; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.advancement.AdvancementProgress.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.advancement.AdvancementProgress.d.ts new file mode 100644 index 00000000..95bed5aa --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.advancement.AdvancementProgress.d.ts @@ -0,0 +1,45 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace advancement { + // @ts-ignore + interface AdvancementProgress { + /** + * The advancement this progress is concerning. + */ + // @ts-ignore + getAdvancement(): org.bukkit.advancement.Advancement; + /** + * Check if all criteria for this advancement have been met. + */ + // @ts-ignore + isDone(): boolean; + /** + * Mark the specified criteria as awarded at the current time. + */ + // @ts-ignore + awardCriteria(criteria: string): boolean; + /** + * Mark the specified criteria as uncompleted. + */ + // @ts-ignore + revokeCriteria(criteria: string): boolean; + /** + * Get the date the specified criteria was awarded. + */ + // @ts-ignore + getDateAwarded(criteria: string): java.util.Date; + /** + * Get the criteria which have not been awarded. + */ + // @ts-ignore + getRemainingCriteria(): java.util.Collection; + /** + * Gets the criteria which have been awarded. + */ + // @ts-ignore + getAwardedCriteria(): java.util.Collection; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.attribute.Attributable.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.attribute.Attributable.d.ts new file mode 100644 index 00000000..3896ea20 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.attribute.Attributable.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace attribute { + // @ts-ignore + interface Attributable { + /** + * Gets the specified attribute instance from the object. This instance will + * be backed directly to the object and any changes will be visible at once. + */ + // @ts-ignore + getAttribute(attribute: org.bukkit.attribute.Attribute): org.bukkit.attribute.AttributeInstance; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.attribute.Attribute.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.attribute.Attribute.d.ts new file mode 100644 index 00000000..564bf200 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.attribute.Attribute.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace attribute { + // @ts-ignore + class Attribute extends java.lang.Enum { + // @ts-ignore + public static GENERIC_MAX_HEALTH: org.bukkit.attribute.Attribute; + // @ts-ignore + public static GENERIC_FOLLOW_RANGE: org.bukkit.attribute.Attribute; + // @ts-ignore + public static GENERIC_KNOCKBACK_RESISTANCE: org.bukkit.attribute.Attribute; + // @ts-ignore + public static GENERIC_MOVEMENT_SPEED: org.bukkit.attribute.Attribute; + // @ts-ignore + public static GENERIC_FLYING_SPEED: org.bukkit.attribute.Attribute; + // @ts-ignore + public static GENERIC_ATTACK_DAMAGE: org.bukkit.attribute.Attribute; + // @ts-ignore + public static GENERIC_ATTACK_SPEED: org.bukkit.attribute.Attribute; + // @ts-ignore + public static GENERIC_ARMOR: org.bukkit.attribute.Attribute; + // @ts-ignore + public static GENERIC_ARMOR_TOUGHNESS: org.bukkit.attribute.Attribute; + // @ts-ignore + public static GENERIC_LUCK: org.bukkit.attribute.Attribute; + // @ts-ignore + public static HORSE_JUMP_STRENGTH: org.bukkit.attribute.Attribute; + // @ts-ignore + public static ZOMBIE_SPAWN_REINFORCEMENTS: org.bukkit.attribute.Attribute; + // @ts-ignore + public static values(): org.bukkit.attribute.Attribute[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.attribute.Attribute; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.attribute.AttributeInstance.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.attribute.AttributeInstance.d.ts new file mode 100644 index 00000000..14d1cfc5 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.attribute.AttributeInstance.d.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace attribute { + // @ts-ignore + interface AttributeInstance { + /** + * The attribute pertaining to this instance. + */ + // @ts-ignore + getAttribute(): org.bukkit.attribute.Attribute; + /** + * Base value of this instance before modifiers are applied. + */ + // @ts-ignore + getBaseValue(): number; + /** + * Set the base value of this instance. + */ + // @ts-ignore + setBaseValue(value: number): void; + /** + * Get all modifiers present on this instance. + */ + // @ts-ignore + getModifiers(): java.util.Collection; + /** + * Add a modifier to this instance. + */ + // @ts-ignore + addModifier(modifier: org.bukkit.attribute.AttributeModifier): void; + /** + * Remove a modifier from this instance. + */ + // @ts-ignore + removeModifier(modifier: org.bukkit.attribute.AttributeModifier): void; + /** + * Get the value of this instance after all associated modifiers have been + * applied. + */ + // @ts-ignore + getValue(): number; + /** + * Gets the default value of the Attribute attached to this instance. + */ + // @ts-ignore + getDefaultValue(): number; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.attribute.AttributeModifier.Operation.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.attribute.AttributeModifier.Operation.d.ts new file mode 100644 index 00000000..47a44908 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.attribute.AttributeModifier.Operation.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace attribute { + namespace AttributeModifier { + // @ts-ignore + class Operation extends java.lang.Enum { + // @ts-ignore + public static ADD_NUMBER: org.bukkit.attribute.AttributeModifier.Operation; + // @ts-ignore + public static ADD_SCALAR: org.bukkit.attribute.AttributeModifier.Operation; + // @ts-ignore + public static MULTIPLY_SCALAR_1: org.bukkit.attribute.AttributeModifier.Operation; + // @ts-ignore + public static values(): org.bukkit.attribute.AttributeModifier.Operation[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.attribute.AttributeModifier.Operation; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.attribute.AttributeModifier.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.attribute.AttributeModifier.d.ts new file mode 100644 index 00000000..052df9ae --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.attribute.AttributeModifier.d.ts @@ -0,0 +1,52 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace attribute { + // @ts-ignore + class AttributeModifier extends java.lang.Object implements org.bukkit.configuration.serialization.ConfigurationSerializable { + // @ts-ignore + constructor(name: string, amount: number, operation: org.bukkit.attribute.AttributeModifier.Operation) + // @ts-ignore + constructor(uuid: java.util.UUID, name: string, amount: number, operation: org.bukkit.attribute.AttributeModifier.Operation) + // @ts-ignore + constructor(uuid: java.util.UUID, name: string, amount: number, operation: org.bukkit.attribute.AttributeModifier.Operation, slot: org.bukkit.inventory.EquipmentSlot) + /** + * Get the unique ID for this modifier. + */ + // @ts-ignore + public getUniqueId(): java.util.UUID; + /** + * Get the name of this modifier. + */ + // @ts-ignore + public getName(): string; + /** + * Get the amount by which this modifier will apply its {@link Operation}. + */ + // @ts-ignore + public getAmount(): number; + /** + * Get the operation this modifier will apply. + */ + // @ts-ignore + public getOperation(): org.bukkit.attribute.AttributeModifier.Operation; + /** + * Get the {@link EquipmentSlot} this AttributeModifier is active on, + * or null if this modifier is applicable for any slot. + */ + // @ts-ignore + public getSlot(): org.bukkit.inventory.EquipmentSlot; + // @ts-ignore + public serialize(): java.util.Map; + // @ts-ignore + public equals(other: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + // @ts-ignore + public static deserialize(args: java.util.Map): org.bukkit.attribute.AttributeModifier; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.Banner.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.Banner.d.ts new file mode 100644 index 00000000..ea4b2983 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.Banner.d.ts @@ -0,0 +1,59 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface Banner extends org.bukkit.block.TileState { + /** + * Returns the base color for this banner + */ + // @ts-ignore + getBaseColor(): org.bukkit.DyeColor; + /** + * Sets the base color for this banner. + * Only valid for shield pseudo banners, otherwise base depends on block + * type + */ + // @ts-ignore + setBaseColor(color: org.bukkit.DyeColor): void; + /** + * Returns a list of patterns on this banner + */ + // @ts-ignore + getPatterns(): java.util.List; + /** + * Sets the patterns used on this banner + */ + // @ts-ignore + setPatterns(patterns: java.util.List): void; + /** + * Adds a new pattern on top of the existing + * patterns + */ + // @ts-ignore + addPattern(pattern: org.bukkit.block.banner.Pattern): void; + /** + * Returns the pattern at the specified index + */ + // @ts-ignore + getPattern(i: number): org.bukkit.block.banner.Pattern; + /** + * Removes the pattern at the specified index + */ + // @ts-ignore + removePattern(i: number): org.bukkit.block.banner.Pattern; + /** + * Sets the pattern at the specified index + */ + // @ts-ignore + setPattern(i: number, pattern: org.bukkit.block.banner.Pattern): void; + /** + * Returns the number of patterns on this + * banner + */ + // @ts-ignore + numberOfPatterns(): number; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.Barrel.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.Barrel.d.ts new file mode 100644 index 00000000..66587831 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.Barrel.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface Barrel extends org.bukkit.block.Container, org.bukkit.loot.Lootable { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.Beacon.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.Beacon.d.ts new file mode 100644 index 00000000..f9a032e6 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.Beacon.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface Beacon extends org.bukkit.block.TileState, org.bukkit.block.Lockable, org.bukkit.Nameable { + /** + * Returns the list of players within the beacon's range of effect. + *

+ * This will return an empty list if the block represented by this state is + * no longer a beacon. + */ + // @ts-ignore + getEntitiesInRange(): java.util.Collection; + /** + * Returns the tier of the beacon pyramid (0-4). The tier refers to the + * beacon's power level, based on how many layers of blocks are in the + * pyramid. Tier 1 refers to a beacon with one layer of 9 blocks under it. + */ + // @ts-ignore + getTier(): number; + /** + * Returns the primary effect set on the beacon + */ + // @ts-ignore + getPrimaryEffect(): org.bukkit.potion.PotionEffect; + /** + * Set the primary effect on this beacon, or null to clear. + */ + // @ts-ignore + setPrimaryEffect(effect: org.bukkit.potion.PotionEffectType): void; + /** + * Returns the secondary effect set on the beacon. + */ + // @ts-ignore + getSecondaryEffect(): org.bukkit.potion.PotionEffect; + /** + * Set the secondary effect on this beacon, or null to clear. Note that tier + * must be >= 4 for this effect to be active. + */ + // @ts-ignore + setSecondaryEffect(effect: org.bukkit.potion.PotionEffectType): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.Bed.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.Bed.d.ts new file mode 100644 index 00000000..8a5caeff --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.Bed.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface Bed extends org.bukkit.block.TileState, org.bukkit.material.Colorable { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.Bell.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.Bell.d.ts new file mode 100644 index 00000000..816d9069 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.Bell.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface Bell extends org.bukkit.block.TileState { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.Biome.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.Biome.d.ts new file mode 100644 index 00000000..d6deabed --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.Biome.d.ts @@ -0,0 +1,166 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + class Biome extends java.lang.Enum implements org.bukkit.Keyed { + // @ts-ignore + public static OCEAN: org.bukkit.block.Biome; + // @ts-ignore + public static PLAINS: org.bukkit.block.Biome; + // @ts-ignore + public static DESERT: org.bukkit.block.Biome; + // @ts-ignore + public static MOUNTAINS: org.bukkit.block.Biome; + // @ts-ignore + public static FOREST: org.bukkit.block.Biome; + // @ts-ignore + public static TAIGA: org.bukkit.block.Biome; + // @ts-ignore + public static SWAMP: org.bukkit.block.Biome; + // @ts-ignore + public static RIVER: org.bukkit.block.Biome; + // @ts-ignore + public static NETHER: org.bukkit.block.Biome; + // @ts-ignore + public static THE_END: org.bukkit.block.Biome; + // @ts-ignore + public static FROZEN_OCEAN: org.bukkit.block.Biome; + // @ts-ignore + public static FROZEN_RIVER: org.bukkit.block.Biome; + // @ts-ignore + public static SNOWY_TUNDRA: org.bukkit.block.Biome; + // @ts-ignore + public static SNOWY_MOUNTAINS: org.bukkit.block.Biome; + // @ts-ignore + public static MUSHROOM_FIELDS: org.bukkit.block.Biome; + // @ts-ignore + public static MUSHROOM_FIELD_SHORE: org.bukkit.block.Biome; + // @ts-ignore + public static BEACH: org.bukkit.block.Biome; + // @ts-ignore + public static DESERT_HILLS: org.bukkit.block.Biome; + // @ts-ignore + public static WOODED_HILLS: org.bukkit.block.Biome; + // @ts-ignore + public static TAIGA_HILLS: org.bukkit.block.Biome; + // @ts-ignore + public static MOUNTAIN_EDGE: org.bukkit.block.Biome; + // @ts-ignore + public static JUNGLE: org.bukkit.block.Biome; + // @ts-ignore + public static JUNGLE_HILLS: org.bukkit.block.Biome; + // @ts-ignore + public static JUNGLE_EDGE: org.bukkit.block.Biome; + // @ts-ignore + public static DEEP_OCEAN: org.bukkit.block.Biome; + // @ts-ignore + public static STONE_SHORE: org.bukkit.block.Biome; + // @ts-ignore + public static SNOWY_BEACH: org.bukkit.block.Biome; + // @ts-ignore + public static BIRCH_FOREST: org.bukkit.block.Biome; + // @ts-ignore + public static BIRCH_FOREST_HILLS: org.bukkit.block.Biome; + // @ts-ignore + public static DARK_FOREST: org.bukkit.block.Biome; + // @ts-ignore + public static SNOWY_TAIGA: org.bukkit.block.Biome; + // @ts-ignore + public static SNOWY_TAIGA_HILLS: org.bukkit.block.Biome; + // @ts-ignore + public static GIANT_TREE_TAIGA: org.bukkit.block.Biome; + // @ts-ignore + public static GIANT_TREE_TAIGA_HILLS: org.bukkit.block.Biome; + // @ts-ignore + public static WOODED_MOUNTAINS: org.bukkit.block.Biome; + // @ts-ignore + public static SAVANNA: org.bukkit.block.Biome; + // @ts-ignore + public static SAVANNA_PLATEAU: org.bukkit.block.Biome; + // @ts-ignore + public static BADLANDS: org.bukkit.block.Biome; + // @ts-ignore + public static WOODED_BADLANDS_PLATEAU: org.bukkit.block.Biome; + // @ts-ignore + public static BADLANDS_PLATEAU: org.bukkit.block.Biome; + // @ts-ignore + public static SMALL_END_ISLANDS: org.bukkit.block.Biome; + // @ts-ignore + public static END_MIDLANDS: org.bukkit.block.Biome; + // @ts-ignore + public static END_HIGHLANDS: org.bukkit.block.Biome; + // @ts-ignore + public static END_BARRENS: org.bukkit.block.Biome; + // @ts-ignore + public static WARM_OCEAN: org.bukkit.block.Biome; + // @ts-ignore + public static LUKEWARM_OCEAN: org.bukkit.block.Biome; + // @ts-ignore + public static COLD_OCEAN: org.bukkit.block.Biome; + // @ts-ignore + public static DEEP_WARM_OCEAN: org.bukkit.block.Biome; + // @ts-ignore + public static DEEP_LUKEWARM_OCEAN: org.bukkit.block.Biome; + // @ts-ignore + public static DEEP_COLD_OCEAN: org.bukkit.block.Biome; + // @ts-ignore + public static DEEP_FROZEN_OCEAN: org.bukkit.block.Biome; + // @ts-ignore + public static THE_VOID: org.bukkit.block.Biome; + // @ts-ignore + public static SUNFLOWER_PLAINS: org.bukkit.block.Biome; + // @ts-ignore + public static DESERT_LAKES: org.bukkit.block.Biome; + // @ts-ignore + public static GRAVELLY_MOUNTAINS: org.bukkit.block.Biome; + // @ts-ignore + public static FLOWER_FOREST: org.bukkit.block.Biome; + // @ts-ignore + public static TAIGA_MOUNTAINS: org.bukkit.block.Biome; + // @ts-ignore + public static SWAMP_HILLS: org.bukkit.block.Biome; + // @ts-ignore + public static ICE_SPIKES: org.bukkit.block.Biome; + // @ts-ignore + public static MODIFIED_JUNGLE: org.bukkit.block.Biome; + // @ts-ignore + public static MODIFIED_JUNGLE_EDGE: org.bukkit.block.Biome; + // @ts-ignore + public static TALL_BIRCH_FOREST: org.bukkit.block.Biome; + // @ts-ignore + public static TALL_BIRCH_HILLS: org.bukkit.block.Biome; + // @ts-ignore + public static DARK_FOREST_HILLS: org.bukkit.block.Biome; + // @ts-ignore + public static SNOWY_TAIGA_MOUNTAINS: org.bukkit.block.Biome; + // @ts-ignore + public static GIANT_SPRUCE_TAIGA: org.bukkit.block.Biome; + // @ts-ignore + public static GIANT_SPRUCE_TAIGA_HILLS: org.bukkit.block.Biome; + // @ts-ignore + public static MODIFIED_GRAVELLY_MOUNTAINS: org.bukkit.block.Biome; + // @ts-ignore + public static SHATTERED_SAVANNA: org.bukkit.block.Biome; + // @ts-ignore + public static SHATTERED_SAVANNA_PLATEAU: org.bukkit.block.Biome; + // @ts-ignore + public static ERODED_BADLANDS: org.bukkit.block.Biome; + // @ts-ignore + public static MODIFIED_WOODED_BADLANDS_PLATEAU: org.bukkit.block.Biome; + // @ts-ignore + public static MODIFIED_BADLANDS_PLATEAU: org.bukkit.block.Biome; + // @ts-ignore + public static BAMBOO_JUNGLE: org.bukkit.block.Biome; + // @ts-ignore + public static BAMBOO_JUNGLE_HILLS: org.bukkit.block.Biome; + // @ts-ignore + public static values(): org.bukkit.block.Biome[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.block.Biome; + // @ts-ignore + public getKey(): org.bukkit.NamespacedKey; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.BlastFurnace.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.BlastFurnace.d.ts new file mode 100644 index 00000000..73ac9e30 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.BlastFurnace.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface BlastFurnace extends org.bukkit.block.Furnace { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.Block.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.Block.d.ts new file mode 100644 index 00000000..ae291e20 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.Block.d.ts @@ -0,0 +1,301 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface Block extends org.bukkit.metadata.Metadatable { + /** + * Gets the metadata for this block + */ + // @ts-ignore + getData(): number; + /** + * Gets the complete block data for this block + */ + // @ts-ignore + getBlockData(): org.bukkit.block.data.BlockData; + /** + * Gets the block at the given offsets + */ + // @ts-ignore + getRelative(modX: number, modY: number, modZ: number): org.bukkit.block.Block; + /** + * Gets the block at the given face + *

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

+ * For example, the following method places water at 100,102,100; two + * blocks above 100,100,100. + *

+                 * Block block = world.getBlockAt(100, 100, 100);
+                 * Block shower = block.getRelative(BlockFace.UP, 2);
+                 * shower.setType(Material.WATER);
+                 * 
+ */ + // @ts-ignore + getRelative(face: org.bukkit.block.BlockFace, distance: number): org.bukkit.block.Block; + /** + * Gets the type of this block + */ + // @ts-ignore + getType(): org.bukkit.Material; + /** + * Gets the light level between 0-15 + */ + // @ts-ignore + getLightLevel(): number; + /** + * Get the amount of light at this block from the sky. + *

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

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

+ * If the provided Location is null this method does nothing and returns + * null. + */ + // @ts-ignore + getLocation(loc: org.bukkit.Location): org.bukkit.Location; + /** + * Gets the chunk which contains this block + */ + // @ts-ignore + getChunk(): org.bukkit.Chunk; + /** + * Sets the complete data for this block + */ + // @ts-ignore + setBlockData(data: org.bukkit.block.data.BlockData): void; + /** + * Sets the complete data for this block + *
+ * Note that applyPhysics = false is not in general safe. It should only be + * used when you need to avoid triggering a physics update of neighboring + * blocks, for example when creating a {@link Bisected} block. If you are + * using a custom populator, then this parameter may also be required to + * prevent triggering infinite chunk loads on border blocks. This method + * should NOT be used to "hack" physics by placing blocks in impossible + * locations. Such blocks are liable to be removed on various events such as + * world upgrades. Furthermore setting large amounts of such blocks in close + * proximity may overload the server physics engine if an update is + * triggered at a later point. If this occurs, the resulting behavior is + * undefined. + */ + // @ts-ignore + setBlockData(data: org.bukkit.block.data.BlockData, applyPhysics: boolean): void; + /** + * Sets the type of this block + */ + // @ts-ignore + setType(type: org.bukkit.Material): void; + /** + * Sets the type of this block + *
+ * Note that applyPhysics = false is not in general safe. It should only be + * used when you need to avoid triggering a physics update of neighboring + * blocks, for example when creating a {@link Bisected} block. If you are + * using a custom populator, then this parameter may also be required to + * prevent triggering infinite chunk loads on border blocks. This method + * should NOT be used to "hack" physics by placing blocks in impossible + * locations. Such blocks are liable to be removed on various events such as + * world upgrades. Furthermore setting large amounts of such blocks in close + * proximity may overload the server physics engine if an update is + * triggered at a later point. If this occurs, the resulting behavior is + * undefined. + */ + // @ts-ignore + setType(type: org.bukkit.Material, applyPhysics: boolean): void; + /** + * Gets the face relation of this block compared to the given block. + *

+ * For example: + *

{@code
+                 * Block current = world.getBlockAt(100, 100, 100);
+                 * Block target = world.getBlockAt(100, 101, 100);
+                 * current.getFace(target) == BlockFace.Up;
+                 * }
+ *
+ * If the given block is not connected to this block, null may be returned + */ + // @ts-ignore + getFace(block: org.bukkit.block.Block): org.bukkit.block.BlockFace; + /** + * Captures the current state of this block. You may then cast that state + * into any accepted type, such as Furnace or Sign. + *

+ * The returned object will never be updated, and you are not guaranteed + * that (for example) a sign is still a sign after you capture its state. + */ + // @ts-ignore + getState(): org.bukkit.block.BlockState; + /** + * Returns the biome that this block resides in + */ + // @ts-ignore + getBiome(): org.bukkit.block.Biome; + /** + * Sets the biome that this block resides in + */ + // @ts-ignore + setBiome(bio: org.bukkit.block.Biome): void; + /** + * Returns true if the block is being powered by Redstone. + */ + // @ts-ignore + isBlockPowered(): boolean; + /** + * Returns true if the block is being indirectly powered by Redstone. + */ + // @ts-ignore + isBlockIndirectlyPowered(): boolean; + /** + * Returns true if the block face is being powered by Redstone. + */ + // @ts-ignore + isBlockFacePowered(face: org.bukkit.block.BlockFace): boolean; + /** + * Returns true if the block face is being indirectly powered by Redstone. + */ + // @ts-ignore + isBlockFaceIndirectlyPowered(face: org.bukkit.block.BlockFace): boolean; + /** + * Returns the redstone power being provided to this block face + */ + // @ts-ignore + getBlockPower(face: org.bukkit.block.BlockFace): number; + /** + * Returns the redstone power being provided to this block + */ + // @ts-ignore + getBlockPower(): number; + /** + * Checks if this block is empty. + *

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

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

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

+ * A block is passable if it has no colliding parts that would prevent + * players from moving through it. + *

+ * Examples: Tall grass, flowers, signs, etc. are passable, but open doors, + * fence gates, trap doors, etc. are not because they still have parts that + * can be collided with. + */ + // @ts-ignore + isPassable(): boolean; + /** + * Performs a ray trace that checks for collision with this specific block + * in its current state using its precise collision shape. + */ + // @ts-ignore + rayTrace(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number, fluidCollisionMode: org.bukkit.FluidCollisionMode): org.bukkit.util.RayTraceResult; + /** + * Gets the approximate bounding box for this block. + *

+ * This isn't exact as some blocks {@link org.bukkit.block.data.type.Stairs} + * contain many bounding boxes to establish their complete form. + * Also, the box may not be exactly the same as the collision shape (such as + * cactus, which is 16/16 of a block with 15/16 collisional bounds). + * This method will return an empty bounding box if the geometric shape of + * the block is empty (such as air blocks). + */ + // @ts-ignore + getBoundingBox(): org.bukkit.util.BoundingBox; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.BlockFace.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.BlockFace.d.ts new file mode 100644 index 00000000..4424a83e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.BlockFace.d.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + class BlockFace extends java.lang.Enum { + // @ts-ignore + public static NORTH: org.bukkit.block.BlockFace; + // @ts-ignore + public static EAST: org.bukkit.block.BlockFace; + // @ts-ignore + public static SOUTH: org.bukkit.block.BlockFace; + // @ts-ignore + public static WEST: org.bukkit.block.BlockFace; + // @ts-ignore + public static UP: org.bukkit.block.BlockFace; + // @ts-ignore + public static DOWN: org.bukkit.block.BlockFace; + // @ts-ignore + public static NORTH_EAST: org.bukkit.block.BlockFace; + // @ts-ignore + public static NORTH_WEST: org.bukkit.block.BlockFace; + // @ts-ignore + public static SOUTH_EAST: org.bukkit.block.BlockFace; + // @ts-ignore + public static SOUTH_WEST: org.bukkit.block.BlockFace; + // @ts-ignore + public static WEST_NORTH_WEST: org.bukkit.block.BlockFace; + // @ts-ignore + public static NORTH_NORTH_WEST: org.bukkit.block.BlockFace; + // @ts-ignore + public static NORTH_NORTH_EAST: org.bukkit.block.BlockFace; + // @ts-ignore + public static EAST_NORTH_EAST: org.bukkit.block.BlockFace; + // @ts-ignore + public static EAST_SOUTH_EAST: org.bukkit.block.BlockFace; + // @ts-ignore + public static SOUTH_SOUTH_EAST: org.bukkit.block.BlockFace; + // @ts-ignore + public static SOUTH_SOUTH_WEST: org.bukkit.block.BlockFace; + // @ts-ignore + public static WEST_SOUTH_WEST: org.bukkit.block.BlockFace; + // @ts-ignore + public static SELF: org.bukkit.block.BlockFace; + // @ts-ignore + public static values(): org.bukkit.block.BlockFace[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.block.BlockFace; + /** + * Get the amount of X-coordinates to modify to get the represented block + */ + // @ts-ignore + public getModX(): number; + /** + * Get the amount of Y-coordinates to modify to get the represented block + */ + // @ts-ignore + public getModY(): number; + /** + * Get the amount of Z-coordinates to modify to get the represented block + */ + // @ts-ignore + public getModZ(): number; + /** + * Gets the normal vector corresponding to this block face. + */ + // @ts-ignore + public getDirection(): org.bukkit.util.Vector; + // @ts-ignore + public getOppositeFace(): org.bukkit.block.BlockFace; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.BlockState.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.BlockState.d.ts new file mode 100644 index 00000000..b74c2a44 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.BlockState.d.ts @@ -0,0 +1,142 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface BlockState extends org.bukkit.metadata.Metadatable { + /** + * Gets the block represented by this block state. + */ + // @ts-ignore + getBlock(): org.bukkit.block.Block; + /** + * Gets the metadata for this block state. + */ + // @ts-ignore + getData(): org.bukkit.material.MaterialData; + /** + * Gets the data for this block state. + */ + // @ts-ignore + getBlockData(): org.bukkit.block.data.BlockData; + /** + * Gets the type of this block state. + */ + // @ts-ignore + getType(): org.bukkit.Material; + /** + * Gets the current light level of the block represented by this block state. + */ + // @ts-ignore + getLightLevel(): number; + /** + * Gets the world which contains the block represented by this block state. + */ + // @ts-ignore + getWorld(): org.bukkit.World; + /** + * Gets the x-coordinate of this block state. + */ + // @ts-ignore + getX(): number; + /** + * Gets the y-coordinate of this block state. + */ + // @ts-ignore + getY(): number; + /** + * Gets the z-coordinate of this block state. + */ + // @ts-ignore + getZ(): number; + /** + * Gets the location of this block state. + *

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

+ * If the provided Location is null this method does nothing and returns + * null. + *

+ * If this block state is not placed the location's world will be null! + */ + // @ts-ignore + getLocation(loc: org.bukkit.Location): org.bukkit.Location; + /** + * Gets the chunk which contains the block represented by this block state. + */ + // @ts-ignore + getChunk(): org.bukkit.Chunk; + /** + * Sets the metadata for this block state. + */ + // @ts-ignore + setData(data: org.bukkit.material.MaterialData): void; + /** + * Sets the data for this block state. + */ + // @ts-ignore + setBlockData(data: org.bukkit.block.data.BlockData): void; + /** + * Sets the type of this block state. + */ + // @ts-ignore + setType(type: org.bukkit.Material): void; + /** + * Attempts to update the block represented by this state, setting it to + * the new values as defined by this state. + *

+ * This has the same effect as calling update(false). That is to say, + * this will not modify the state of a block if it is no longer the same + * type as it was when this state was taken. It will return false in this + * eventuality. + */ + // @ts-ignore + update(): boolean; + /** + * Attempts to update the block represented by this state, setting it to + * the new values as defined by this state. + *

+ * This has the same effect as calling update(force, true). That is to + * say, this will trigger a physics update to surrounding blocks. + */ + // @ts-ignore + update(force: boolean): boolean; + /** + * Attempts to update the block represented by this state, setting it to + * the new values as defined by this state. + *

+ * If this state is not placed, this will have no effect and return true. + *

+ * Unless force is true, this will not modify the state of a block if it + * is no longer the same type as it was when this state was taken. It will + * return false in this eventuality. + *

+ * If force is true, it will set the type of the block to match the new + * state, set the state data and then return true. + *

+ * If applyPhysics is true, it will trigger a physics update on + * surrounding blocks which could cause them to update or disappear. + */ + // @ts-ignore + update(force: boolean, applyPhysics: boolean): boolean; + // @ts-ignore + getRawData(): number; + // @ts-ignore + setRawData(data: number): void; + /** + * Returns whether this state is placed in the world. + *

+ * Some methods will not work if the block state isn't + * placed in the world. + */ + // @ts-ignore + isPlaced(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.BrewingStand.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.BrewingStand.d.ts new file mode 100644 index 00000000..0fa7c45b --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.BrewingStand.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface BrewingStand extends org.bukkit.block.Container { + /** + * How much time is left in the brewing cycle. + */ + // @ts-ignore + getBrewingTime(): number; + /** + * Set the time left before brewing completes. + */ + // @ts-ignore + setBrewingTime(brewTime: number): void; + /** + * Get the level of current fuel for brewing. + */ + // @ts-ignore + getFuelLevel(): number; + /** + * Set the level of current fuel for brewing. + */ + // @ts-ignore + setFuelLevel(level: number): void; + // @ts-ignore + getInventory(): org.bukkit.inventory.BrewerInventory; + // @ts-ignore + getSnapshotInventory(): org.bukkit.inventory.BrewerInventory; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.Campfire.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.Campfire.d.ts new file mode 100644 index 00000000..f4862f9e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.Campfire.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface Campfire extends org.bukkit.block.TileState { + // @ts-ignore + getSize(): number; + // @ts-ignore + getItem(index: number): org.bukkit.inventory.ItemStack; + // @ts-ignore + setItem(index: number, item: org.bukkit.inventory.ItemStack): void; + /** + * Get cook time. + * This is the amount of time the item has been cooking for. + */ + // @ts-ignore + getCookTime(index: number): number; + /** + * Set cook time. + * This is the amount of time the item has been cooking for. + */ + // @ts-ignore + setCookTime(index: number, cookTime: number): void; + /** + * Get cook time total. + * This is the amount of time the item is required to cook for. + */ + // @ts-ignore + getCookTimeTotal(index: number): number; + /** + * Set cook time. + * This is the amount of time the item is required to cook for. + */ + // @ts-ignore + setCookTimeTotal(index: number, cookTimeTotal: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.Chest.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.Chest.d.ts new file mode 100644 index 00000000..61c3eff0 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.Chest.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface Chest extends org.bukkit.block.Container, org.bukkit.loot.Lootable { + /** + * Gets the inventory of the chest block represented by this block state. + *

+ * If the chest is a double chest, it returns just the portion of the + * inventory linked to the half of the chest corresponding to this block state. + *

+ * If the block was changed to a different type in the meantime, the + * returned inventory might no longer be valid. + *

+ * If this block state is not placed this will return the captured + * inventory snapshot instead. + */ + // @ts-ignore + getBlockInventory(): org.bukkit.inventory.Inventory; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.CommandBlock.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.CommandBlock.d.ts new file mode 100644 index 00000000..595a6634 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.CommandBlock.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface CommandBlock extends org.bukkit.block.TileState { + /** + * Gets the command that this CommandBlock will run when powered. + * This will never return null. If the CommandBlock does not have a + * command, an empty String will be returned instead. + */ + // @ts-ignore + getCommand(): string; + /** + * Sets the command that this CommandBlock will run when powered. + * Setting the command to null is the same as setting it to an empty + * String. + */ + // @ts-ignore + setCommand(command: string): void; + /** + * Gets the name of this CommandBlock. The name is used with commands + * that this CommandBlock executes. This name will never be null, and + * by default is "@". + */ + // @ts-ignore + getName(): string; + /** + * Sets the name of this CommandBlock. The name is used with commands + * that this CommandBlock executes. Setting the name to null is the + * same as setting it to "@". + */ + // @ts-ignore + setName(name: string): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.Comparator.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.Comparator.d.ts new file mode 100644 index 00000000..9517c465 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.Comparator.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface Comparator extends org.bukkit.block.TileState { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.Conduit.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.Conduit.d.ts new file mode 100644 index 00000000..64ce5ecf --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.Conduit.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface Conduit extends org.bukkit.block.TileState { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.Container.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.Container.d.ts new file mode 100644 index 00000000..3eac159b --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.Container.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface Container extends org.bukkit.block.TileState, org.bukkit.inventory.BlockInventoryHolder, org.bukkit.block.Lockable, org.bukkit.Nameable { + /** + * Gets the inventory of the block represented by this block state. + *

+ * If the block was changed to a different type in the meantime, the + * returned inventory might no longer be valid. + *

+ * If this block state is not placed this will return the captured inventory + * snapshot instead. + */ + // @ts-ignore + getInventory(): org.bukkit.inventory.Inventory; + /** + * Gets the captured inventory snapshot of this container. + *

+ * The returned inventory is not linked to any block. Any modifications to + * the returned inventory will not be applied to the block represented by + * this block state up until {@link #update(boolean, boolean)} has been + * called. + */ + // @ts-ignore + getSnapshotInventory(): org.bukkit.inventory.Inventory; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.CreatureSpawner.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.CreatureSpawner.d.ts new file mode 100644 index 00000000..d0d53650 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.CreatureSpawner.d.ts @@ -0,0 +1,152 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface CreatureSpawner extends org.bukkit.block.TileState { + /** + * Get the spawner's creature type. + */ + // @ts-ignore + getSpawnedType(): org.bukkit.entity.EntityType; + /** + * Set the spawner's creature type. + */ + // @ts-ignore + setSpawnedType(creatureType: org.bukkit.entity.EntityType): void; + /** + * Set the spawner mob type. + */ + // @ts-ignore + setCreatureTypeByName(creatureType: string): void; + /** + * Get the spawner's creature type. + */ + // @ts-ignore + getCreatureTypeName(): string; + /** + * Get the spawner's delay. + *
+ * This is the delay, in ticks, until the spawner will spawn its next mob. + */ + // @ts-ignore + 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()}. + */ + // @ts-ignore + setDelay(delay: number): void; + /** + * The minimum spawn delay amount (in ticks). + *
+ * This value is used when the spawner resets its delay (for any reason). + * It will choose a random number between {@link #getMinSpawnDelay()} + * and {@link #getMaxSpawnDelay()} for its next {@link #getDelay()}. + * Default value is 200 ticks. + */ + // @ts-ignore + getMinSpawnDelay(): number; + /** + * Set the minimum spawn delay amount (in ticks). + */ + // @ts-ignore + setMinSpawnDelay(delay: number): void; + /** + * The maximum spawn delay amount (in ticks). + *
+ * This value is used when the spawner resets its delay (for any reason). + * It will choose a random number between {@link #getMinSpawnDelay()} + * and {@link #getMaxSpawnDelay()} for its next {@link #getDelay()}. + *
+ * This value must be greater than 0 and less than or equal to + * {@link #getMaxSpawnDelay()}. + * Default value is 800 ticks. + */ + // @ts-ignore + getMaxSpawnDelay(): number; + /** + * Set the maximum spawn delay amount (in ticks). + *
+ * This value must be greater than 0, as well as greater than or + * equal to {@link #getMinSpawnDelay()} + */ + // @ts-ignore + setMaxSpawnDelay(delay: number): void; + /** + * Get how many mobs attempt to spawn. + *
+ * Default value is 4. + */ + // @ts-ignore + getSpawnCount(): number; + /** + * Set how many mobs attempt to spawn. + */ + // @ts-ignore + setSpawnCount(spawnCount: number): void; + /** + * Set the new maximum amount of similar entities that are allowed to be + * within spawning range of this spawner. + *
+ * If more than the maximum number of entities are within range, the spawner + * will not spawn and try again with a new {@link #getDelay()}. + *
+ * Default value is 16. + */ + // @ts-ignore + getMaxNearbyEntities(): number; + /** + * Set the maximum number of similar entities that are allowed to be within + * spawning range of this spawner. + *
+ * Similar entities are entities that are of the same {@link EntityType} + */ + // @ts-ignore + setMaxNearbyEntities(maxNearbyEntities: number): void; + /** + * Get the maximum distance(squared) a player can be in order for this + * spawner to be active. + *
+ * If this value is less than or equal to 0, this spawner is always active + * (given that there are players online). + *
+ * Default value is 16. + */ + // @ts-ignore + getRequiredPlayerRange(): number; + /** + * Set the maximum distance (squared) a player can be in order for this + * spawner to be active. + *
+ * Setting this value to less than or equal to 0 will make this spawner + * always active (given that there are players online). + */ + // @ts-ignore + setRequiredPlayerRange(requiredPlayerRange: number): void; + /** + * Get the radius around which the spawner will attempt to spawn mobs in. + *
+ * This area is square, includes the block the spawner is in, and is + * centered on the spawner's x,z coordinates - not the spawner itself. + *
+ * It is 2 blocks high, centered on the spawner's y-coordinate (its bottom); + * thus allowing mobs to spawn as high as its top surface and as low + * as 1 block below its bottom surface. + *
+ * Default value is 4. + */ + // @ts-ignore + getSpawnRange(): number; + /** + * Set the new spawn range. + *
+ */ + // @ts-ignore + setSpawnRange(spawnRange: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.DaylightDetector.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.DaylightDetector.d.ts new file mode 100644 index 00000000..163c995b --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.DaylightDetector.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface DaylightDetector extends org.bukkit.block.TileState { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.Dispenser.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.Dispenser.d.ts new file mode 100644 index 00000000..b994b1b4 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.Dispenser.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface Dispenser extends org.bukkit.block.Container, org.bukkit.Nameable, org.bukkit.loot.Lootable { + /** + * Gets the BlockProjectileSource object for the dispenser. + *

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

+ * If the block represented by this state is no longer a dispenser, this + * will return false. + */ + // @ts-ignore + dispense(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.DoubleChest.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.DoubleChest.d.ts new file mode 100644 index 00000000..c086718f --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.DoubleChest.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + class DoubleChest extends java.lang.Object implements org.bukkit.inventory.InventoryHolder { + // @ts-ignore + constructor(chest: org.bukkit.inventory.DoubleChestInventory) + // @ts-ignore + public getInventory(): org.bukkit.inventory.Inventory; + // @ts-ignore + public getLeftSide(): org.bukkit.inventory.InventoryHolder; + // @ts-ignore + public getRightSide(): org.bukkit.inventory.InventoryHolder; + // @ts-ignore + public getLocation(): org.bukkit.Location; + // @ts-ignore + public getWorld(): org.bukkit.World; + // @ts-ignore + public getX(): number; + // @ts-ignore + public getY(): number; + // @ts-ignore + public getZ(): number; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.Dropper.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.Dropper.d.ts new file mode 100644 index 00000000..4475ce1d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.Dropper.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface Dropper extends org.bukkit.block.Container, org.bukkit.loot.Lootable { + /** + * Tries to drop a randomly selected item from the dropper's inventory, + * following the normal behavior of a dropper. + *

+ * Normal behavior of a dropper is as follows: + *

+ * If the block that the dropper is facing is an InventoryHolder, + * the randomly selected ItemStack is placed within that + * Inventory in the first slot that's available, starting with 0 and + * counting up. If the inventory is full, nothing happens. + *

+ * If the block that the dropper is facing is not an InventoryHolder, + * the randomly selected ItemStack is dropped on + * the ground in the form of an {@link org.bukkit.entity.Item Item}. + *

+ * If the block represented by this state is no longer a dropper, this will + * do nothing. + */ + // @ts-ignore + drop(): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.EnchantingTable.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.EnchantingTable.d.ts new file mode 100644 index 00000000..2e5f5170 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.EnchantingTable.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface EnchantingTable extends org.bukkit.block.TileState, org.bukkit.Nameable { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.EndGateway.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.EndGateway.d.ts new file mode 100644 index 00000000..75b524da --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.EndGateway.d.ts @@ -0,0 +1,54 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface EndGateway extends org.bukkit.block.TileState { + /** + * Gets the location that entities are teleported to when + * entering the gateway portal. + *

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

+ * If this block state is not placed the location's world has to be null. + */ + // @ts-ignore + setExitLocation(location: org.bukkit.Location): void; + /** + * Gets whether this gateway will teleport entities directly to + * the exit location instead of finding a nearby location. + */ + // @ts-ignore + isExactTeleport(): boolean; + /** + * Sets whether this gateway will teleport entities directly to + * the exit location instead of finding a nearby location. + */ + // @ts-ignore + setExactTeleport(exact: boolean): void; + /** + * Gets the age in ticks of the gateway. + *
+ * If the age is less than 200 ticks a magenta beam will be emitted, whilst + * if it is a multiple of 2400 ticks a purple beam will be emitted. + */ + // @ts-ignore + getAge(): number; + /** + * Sets the age in ticks of the gateway. + *
+ * If the age is less than 200 ticks a magenta beam will be emitted, whilst + * if it is a multiple of 2400 ticks a purple beam will be emitted. + */ + // @ts-ignore + setAge(age: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.EnderChest.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.EnderChest.d.ts new file mode 100644 index 00000000..261bc90e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.EnderChest.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface EnderChest extends org.bukkit.block.TileState { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.FlowerPot.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.FlowerPot.d.ts new file mode 100644 index 00000000..5a9846c9 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.FlowerPot.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface FlowerPot extends org.bukkit.block.BlockState { + /** + * Gets the item present in this flower pot. + */ + // @ts-ignore + getContents(): org.bukkit.material.MaterialData; + /** + * Sets the item present in this flower pot. + * NOTE: The Vanilla Minecraft client will currently not refresh this until + * a block update is triggered. + */ + // @ts-ignore + setContents(item: org.bukkit.material.MaterialData): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.Furnace.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.Furnace.d.ts new file mode 100644 index 00000000..7d651b2e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.Furnace.d.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface Furnace extends org.bukkit.block.Container { + /** + * Get burn time. + */ + // @ts-ignore + getBurnTime(): number; + /** + * Set burn time. + * A burn time greater than 0 will cause this block to be lit, whilst a time + * less than 0 will extinguish it. + */ + // @ts-ignore + setBurnTime(burnTime: number): void; + /** + * Get cook time. + * This is the amount of time the item has been cooking for. + */ + // @ts-ignore + getCookTime(): number; + /** + * Set cook time. + * This is the amount of time the item has been cooking for. + */ + // @ts-ignore + setCookTime(cookTime: number): void; + /** + * Get cook time total. + * This is the amount of time the item is required to cook for. + */ + // @ts-ignore + getCookTimeTotal(): number; + /** + * Set cook time. + * This is the amount of time the item is required to cook for. + */ + // @ts-ignore + setCookTimeTotal(cookTimeTotal: number): void; + // @ts-ignore + getInventory(): org.bukkit.inventory.FurnaceInventory; + // @ts-ignore + getSnapshotInventory(): org.bukkit.inventory.FurnaceInventory; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.Hopper.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.Hopper.d.ts new file mode 100644 index 00000000..c9c9203a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.Hopper.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface Hopper extends org.bukkit.block.Container, org.bukkit.loot.Lootable { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.Jigsaw.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.Jigsaw.d.ts new file mode 100644 index 00000000..e719eccc --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.Jigsaw.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface Jigsaw extends org.bukkit.block.TileState { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.Jukebox.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.Jukebox.d.ts new file mode 100644 index 00000000..6f72c7bf --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.Jukebox.d.ts @@ -0,0 +1,43 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface Jukebox extends org.bukkit.block.TileState { + /** + * Gets the record inserted into the jukebox. + */ + // @ts-ignore + getPlaying(): org.bukkit.Material; + /** + * Sets the record being played. + */ + // @ts-ignore + setPlaying(record: org.bukkit.Material): void; + /** + * Gets the record item inserted into the jukebox. + */ + // @ts-ignore + getRecord(): org.bukkit.inventory.ItemStack; + /** + * Sets the record being played. + */ + // @ts-ignore + setRecord(record: org.bukkit.inventory.ItemStack): void; + /** + * Checks if the jukebox is playing a record. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + eject(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.Lectern.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.Lectern.d.ts new file mode 100644 index 00000000..70c9c476 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.Lectern.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface Lectern extends org.bukkit.block.TileState, org.bukkit.inventory.BlockInventoryHolder { + /** + * Get the current lectern page. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + setPage(page: number): void; + // @ts-ignore + getInventory(): org.bukkit.inventory.Inventory; + // @ts-ignore + getSnapshotInventory(): org.bukkit.inventory.Inventory; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.Lockable.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.Lockable.d.ts new file mode 100644 index 00000000..519b02db --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.Lockable.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface Lockable { + /** + * Checks if the container has a valid (non empty) key. + */ + // @ts-ignore + isLocked(): boolean; + /** + * Gets the key needed to access the container. + */ + // @ts-ignore + getLock(): string; + /** + * Sets the key required to access this container. Set to null (or empty + * string) to remove key. + */ + // @ts-ignore + setLock(key: string): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.NoteBlock.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.NoteBlock.d.ts new file mode 100644 index 00000000..2c63c165 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.NoteBlock.d.ts @@ -0,0 +1,54 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface NoteBlock extends org.bukkit.block.BlockState { + /** + * Gets the note. + */ + // @ts-ignore + getNote(): org.bukkit.Note; + /** + * Gets the note. + */ + // @ts-ignore + getRawNote(): number; + /** + * Set the note. + */ + // @ts-ignore + setNote(note: org.bukkit.Note): void; + /** + * Set the note. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + play(instrument: org.bukkit.Instrument, note: org.bukkit.Note): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.PistonMoveReaction.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.PistonMoveReaction.d.ts new file mode 100644 index 00000000..a96fd506 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.PistonMoveReaction.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + class PistonMoveReaction extends java.lang.Enum { + // @ts-ignore + public static MOVE: org.bukkit.block.PistonMoveReaction; + // @ts-ignore + public static BREAK: org.bukkit.block.PistonMoveReaction; + // @ts-ignore + public static BLOCK: org.bukkit.block.PistonMoveReaction; + // @ts-ignore + public static IGNORE: org.bukkit.block.PistonMoveReaction; + // @ts-ignore + public static PUSH_ONLY: org.bukkit.block.PistonMoveReaction; + // @ts-ignore + public static values(): org.bukkit.block.PistonMoveReaction[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.block.PistonMoveReaction; + // @ts-ignore + public getId(): number; + // @ts-ignore + public static getById(id: number): org.bukkit.block.PistonMoveReaction; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.ShulkerBox.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.ShulkerBox.d.ts new file mode 100644 index 00000000..3438380a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.ShulkerBox.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface ShulkerBox extends org.bukkit.block.Container, org.bukkit.loot.Lootable { + /** + * Get the {@link DyeColor} corresponding to this ShulkerBox + */ + // @ts-ignore + getColor(): org.bukkit.DyeColor; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.Sign.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.Sign.d.ts new file mode 100644 index 00000000..1a90959d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.Sign.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface Sign extends org.bukkit.block.TileState, org.bukkit.material.Colorable { + /** + * Gets all the lines of text currently on this sign. + */ + // @ts-ignore + getLines(): java.lang.String[]; + /** + * Gets the line of text at the specified index. + *

+ * For example, getLine(0) will return the first line of text. + */ + // @ts-ignore + 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". + */ + // @ts-ignore + setLine(index: number, line: string): void; + /** + * Marks whether this sign can be edited by players. + *
+ * This is a special value, which is not persisted. It should only be set if + * a placed sign is manipulated during the BlockPlaceEvent. Behaviour + * outside of this event is undefined. + */ + // @ts-ignore + isEditable(): boolean; + /** + * Marks whether this sign can be edited by players. + *
+ * This is a special value, which is not persisted. It should only be set if + * a placed sign is manipulated during the BlockPlaceEvent. Behaviour + * outside of this event is undefined. + */ + // @ts-ignore + setEditable(editable: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.Skull.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.Skull.d.ts new file mode 100644 index 00000000..6c52fa30 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.Skull.d.ts @@ -0,0 +1,62 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface Skull extends org.bukkit.block.TileState { + /** + * Checks to see if the skull has an owner + */ + // @ts-ignore + hasOwner(): boolean; + /** + * Gets the owner of the skull, if one exists + */ + // @ts-ignore + getOwner(): string; + /** + * Sets the owner of the skull + *

+ * Involves a potentially blocking web request to acquire the profile data for + * the provided name. + */ + // @ts-ignore + setOwner(name: string): boolean; + /** + * Get the player which owns the skull. This player may appear as the + * texture depending on skull type. + */ + // @ts-ignore + getOwningPlayer(): org.bukkit.OfflinePlayer; + /** + * Set the player which owns the skull. This player may appear as the + * texture depending on skull type. + */ + // @ts-ignore + 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). + */ + // @ts-ignore + getRotation(): org.bukkit.block.BlockFace; + /** + * Sets the rotation of the skull in the world (or facing direction if this + * is a wall mounted skull). + */ + // @ts-ignore + setRotation(rotation: org.bukkit.block.BlockFace): void; + /** + * Gets the type of skull + */ + // @ts-ignore + getSkullType(): org.bukkit.SkullType; + /** + * Sets the type of skull + */ + // @ts-ignore + setSkullType(skullType: org.bukkit.SkullType): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.Smoker.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.Smoker.d.ts new file mode 100644 index 00000000..270441c2 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.Smoker.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface Smoker extends org.bukkit.block.Furnace { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.Structure.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.Structure.d.ts new file mode 100644 index 00000000..de5ce9e9 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.Structure.d.ts @@ -0,0 +1,172 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @ts-ignore + interface Structure extends org.bukkit.block.TileState { + /** + * The name of this structure. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + setStructureName(name: string): void; + /** + * Get the name of who created this structure. + */ + // @ts-ignore + getAuthor(): string; + /** + * Set the name of whoever created this structure. + */ + // @ts-ignore + setAuthor(author: string): void; + /** + * Set the name of whoever created this structure using a + * {@link LivingEntity}. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getRelativePosition(): org.bukkit.util.BlockVector; + /** + * Set the relative position from the structure block. Maximum allowed + * distance is 32 blocks in any direction. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getStructureSize(): org.bukkit.util.BlockVector; + /** + * Set the maximum size of this structure from the origin point. Maximum + * allowed size is 32x32x32. + */ + // @ts-ignore + setStructureSize(vector: org.bukkit.util.BlockVector): void; + /** + * Sets the mirroring of the structure. + */ + // @ts-ignore + setMirror(mirror: org.bukkit.block.structure.Mirror): void; + /** + * How this structure is mirrored. + */ + // @ts-ignore + getMirror(): org.bukkit.block.structure.Mirror; + /** + * Set how this structure is rotated. + */ + // @ts-ignore + setRotation(rotation: org.bukkit.block.structure.StructureRotation): void; + /** + * Get how this structure is rotated. + */ + // @ts-ignore + getRotation(): org.bukkit.block.structure.StructureRotation; + /** + * Set the {@link UsageMode} of this structure block. + */ + // @ts-ignore + setUsageMode(mode: org.bukkit.block.structure.UsageMode): void; + /** + * Get the {@link UsageMode} of this structure block. + */ + // @ts-ignore + getUsageMode(): org.bukkit.block.structure.UsageMode; + /** + * While in {@link UsageMode#SAVE} mode, this will ignore any entities when + * saving the structure. + *
+ * While in {@link UsageMode#LOAD} mode this will ignore any entities that + * were saved to file. + */ + // @ts-ignore + setIgnoreEntities(ignoreEntities: boolean): void; + /** + * Get if this structure block should ignore entities. + */ + // @ts-ignore + isIgnoreEntities(): boolean; + /** + * Set if the structure outline should show air blocks. + */ + // @ts-ignore + setShowAir(showAir: boolean): void; + /** + * Check if this structure block is currently showing all air blocks + */ + // @ts-ignore + isShowAir(): boolean; + /** + * Set if this structure box should show the bounding box. + */ + // @ts-ignore + setBoundingBoxVisible(showBoundingBox: boolean): void; + /** + * Get if this structure block is currently showing the bounding box. + */ + // @ts-ignore + 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." + */ + // @ts-ignore + setIntegrity(integrity: number): void; + /** + * Get the integrity of this structure. + */ + // @ts-ignore + 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." + */ + // @ts-ignore + setSeed(seed: number): void; + /** + * The seed used to determine how many blocks are removed upon loading of + * this structure. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + setMetadata(metadata: string): void; + /** + * Get the metadata function this structure block will perform when + * activated. Consult the + * Minecraft + * Wiki for more information. + */ + // @ts-ignore + getMetadata(): string; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.TileState.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.TileState.d.ts new file mode 100644 index 00000000..334ebdcd --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.TileState.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + // @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 + * own custom namespace therefore modifying default tags using this + * {@link PersistentDataHolder} is impossible. + *

+ * This {@link PersistentDataHolder} is only linked to the snapshot instance + * stored by the {@link BlockState}. + * When storing changes on the {@link PersistentDataHolder}, the updated + * content will only be applied to the actual tile entity after one of the + * {@link #update()} methods is called. + */ + // @ts-ignore + getPersistentDataContainer(): org.bukkit.persistence.PersistentDataContainer; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.banner.Pattern.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.banner.Pattern.d.ts new file mode 100644 index 00000000..5fd86522 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.banner.Pattern.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace banner { + // @ts-ignore + class Pattern extends java.lang.Object implements org.bukkit.configuration.serialization.ConfigurationSerializable { + /** + * Creates a new pattern from the specified color and + * pattern type + */ + // @ts-ignore + constructor(color: org.bukkit.DyeColor, pattern: org.bukkit.block.banner.PatternType) + /** + * Constructor for deserialization. + */ + // @ts-ignore + constructor(map: java.util.Map) + // @ts-ignore + public serialize(): java.util.Map; + /** + * Returns the color of the pattern + */ + // @ts-ignore + public getColor(): org.bukkit.DyeColor; + /** + * Returns the type of pattern + */ + // @ts-ignore + public getPattern(): org.bukkit.block.banner.PatternType; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.banner.PatternType.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.banner.PatternType.d.ts new file mode 100644 index 00000000..28bd5129 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.banner.PatternType.d.ts @@ -0,0 +1,108 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace banner { + // @ts-ignore + class PatternType extends java.lang.Enum { + // @ts-ignore + public static BASE: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static SQUARE_BOTTOM_LEFT: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static SQUARE_BOTTOM_RIGHT: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static SQUARE_TOP_LEFT: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static SQUARE_TOP_RIGHT: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static STRIPE_BOTTOM: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static STRIPE_TOP: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static STRIPE_LEFT: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static STRIPE_RIGHT: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static STRIPE_CENTER: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static STRIPE_MIDDLE: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static STRIPE_DOWNRIGHT: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static STRIPE_DOWNLEFT: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static STRIPE_SMALL: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static CROSS: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static STRAIGHT_CROSS: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static TRIANGLE_BOTTOM: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static TRIANGLE_TOP: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static TRIANGLES_BOTTOM: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static TRIANGLES_TOP: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static DIAGONAL_LEFT: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static DIAGONAL_RIGHT: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static DIAGONAL_LEFT_MIRROR: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static DIAGONAL_RIGHT_MIRROR: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static CIRCLE_MIDDLE: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static RHOMBUS_MIDDLE: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static HALF_VERTICAL: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static HALF_HORIZONTAL: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static HALF_VERTICAL_MIRROR: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static HALF_HORIZONTAL_MIRROR: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static BORDER: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static CURLY_BORDER: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static CREEPER: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static GRADIENT: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static GRADIENT_UP: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static BRICKS: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static SKULL: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static FLOWER: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static MOJANG: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static GLOBE: org.bukkit.block.banner.PatternType; + // @ts-ignore + public static values(): org.bukkit.block.banner.PatternType[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.block.banner.PatternType; + /** + * Returns the identifier used to represent + * this pattern type + */ + // @ts-ignore + public getIdentifier(): string; + /** + * Returns the pattern type which matches the passed + * identifier or null if no matches are found + */ + // @ts-ignore + public static getByIdentifier(identifier: string): org.bukkit.block.banner.PatternType; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.Ageable.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.Ageable.d.ts new file mode 100644 index 00000000..654a5133 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.Ageable.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + // @ts-ignore + interface Ageable extends org.bukkit.block.data.BlockData { + /** + * Gets the value of the 'age' property. + */ + // @ts-ignore + getAge(): number; + /** + * Sets the value of the 'age' property. + */ + // @ts-ignore + setAge(age: number): void; + /** + * Gets the maximum allowed value of the 'age' property. + */ + // @ts-ignore + getMaximumAge(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.AnaloguePowerable.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.AnaloguePowerable.d.ts new file mode 100644 index 00000000..b670d485 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.AnaloguePowerable.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + // @ts-ignore + interface AnaloguePowerable extends org.bukkit.block.data.BlockData { + /** + * Gets the value of the 'power' property. + */ + // @ts-ignore + getPower(): number; + /** + * Sets the value of the 'power' property. + */ + // @ts-ignore + setPower(power: number): void; + /** + * Gets the maximum allowed value of the 'power' property. + */ + // @ts-ignore + getMaximumPower(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.Attachable.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.Attachable.d.ts new file mode 100644 index 00000000..090a32fa --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.Attachable.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + // @ts-ignore + interface Attachable extends org.bukkit.block.data.BlockData { + /** + * Gets the value of the 'attached' property. + */ + // @ts-ignore + isAttached(): boolean; + /** + * Sets the value of the 'attached' property. + */ + // @ts-ignore + setAttached(attached: boolean): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.Bisected.Half.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.Bisected.Half.d.ts new file mode 100644 index 00000000..a3c8ac5a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.Bisected.Half.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace Bisected { + // @ts-ignore + class Half extends java.lang.Enum { + // @ts-ignore + public static TOP: org.bukkit.block.data.Bisected.Half; + // @ts-ignore + public static BOTTOM: org.bukkit.block.data.Bisected.Half; + // @ts-ignore + public static values(): org.bukkit.block.data.Bisected.Half[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.block.data.Bisected.Half; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.Bisected.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.Bisected.d.ts new file mode 100644 index 00000000..3fb7b52f --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.Bisected.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + // @ts-ignore + interface Bisected extends org.bukkit.block.data.BlockData { + /** + * Gets the value of the 'half' property. + */ + // @ts-ignore + getHalf(): org.bukkit.block.data.Bisected.Half; + /** + * Sets the value of the 'half' property. + */ + // @ts-ignore + setHalf(half: org.bukkit.block.data.Bisected.Half): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.BlockData.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.BlockData.d.ts new file mode 100644 index 00000000..cf7825c2 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.BlockData.d.ts @@ -0,0 +1,77 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + // @ts-ignore + interface BlockData { + /** + * Get the Material represented by this block data. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getAsString(): string; + /** + * Gets a string, which when passed into a method such as + * {@link Server#createBlockData(java.lang.String)} will recreate this or a + * similar instance where unspecified states (if any) may be optionally + * omitted. If this instance was parsed and states are omitted, this exact + * instance will be creatable when parsed again, else their equality cannot + * be guaranteed. + *

+ * This method will only take effect for BlockData instances created by + * methods such as {@link Server#createBlockData(String)} or any similar + * method whereby states are optionally defined. If otherwise, the result of + * {@link #getAsString()} will be returned. The following behaviour would be + * expected: + *

{@code
+                     * String dataString = "minecraft:chest[waterlogged=true]"
+                     * BlockData data = Bukkit.createBlockData(dataString);
+                     * dataString.equals(data.getAsString(true)); // This would return true
+                     * dataString.equals(data.getAsString(false)); // This would return false as all states are present
+                     * dataString.equals(data.getAsString()); // This is equivalent to the above, "getAsString(false)"
+                     * }
+ */ + // @ts-ignore + getAsString(hideUnspecified: boolean): string; + /** + * Merges all explicitly set states from the given data with this BlockData. + *
+ * Note that the given data MUST have been created from one of the String + * parse methods, e.g. {@link Server#createBlockData(java.lang.String)} and + * not have been subsequently modified. + *
+ * Note also that the block types must match identically. + */ + // @ts-ignore + merge(data: org.bukkit.block.data.BlockData): org.bukkit.block.data.BlockData; + /** + * Checks if the specified BlockData matches this block data. + *
+ * The semantics of this method are such that for manually created or + * modified BlockData it has the same effect as + * {@link Object#equals(java.lang.Object)}, whilst for parsed data (that to + * which {@link #merge(org.bukkit.block.data.BlockData)} applies, it will + * return true when the type and all explicitly set states match. + *
+ * Note that these semantics mean that a.matches(b) may not be the same + * as b.matches(a) + */ + // @ts-ignore + matches(data: org.bukkit.block.data.BlockData): boolean; + /** + * Returns a copy of this BlockData. + */ + // @ts-ignore + clone(): org.bukkit.block.data.BlockData; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.Directional.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.Directional.d.ts new file mode 100644 index 00000000..52e595b8 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.Directional.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + // @ts-ignore + interface Directional extends org.bukkit.block.data.BlockData { + /** + * Gets the value of the 'facing' property. + */ + // @ts-ignore + getFacing(): org.bukkit.block.BlockFace; + /** + * Sets the value of the 'facing' property. + */ + // @ts-ignore + setFacing(facing: org.bukkit.block.BlockFace): void; + /** + * Gets the faces which are applicable to this block. + */ + // @ts-ignore + getFaces(): java.util.Set; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.Levelled.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.Levelled.d.ts new file mode 100644 index 00000000..f01f75d1 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.Levelled.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + // @ts-ignore + interface Levelled extends org.bukkit.block.data.BlockData { + /** + * Gets the value of the 'level' property. + */ + // @ts-ignore + getLevel(): number; + /** + * Sets the value of the 'level' property. + */ + // @ts-ignore + setLevel(level: number): void; + /** + * Gets the maximum allowed value of the 'level' property. + */ + // @ts-ignore + getMaximumLevel(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.Lightable.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.Lightable.d.ts new file mode 100644 index 00000000..7d4ee6ec --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.Lightable.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + // @ts-ignore + interface Lightable extends org.bukkit.block.data.BlockData { + /** + * Gets the value of the 'lit' property. + */ + // @ts-ignore + isLit(): boolean; + /** + * Sets the value of the 'lit' property. + */ + // @ts-ignore + setLit(lit: boolean): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.MultipleFacing.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.MultipleFacing.d.ts new file mode 100644 index 00000000..d0d7bb36 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.MultipleFacing.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + // @ts-ignore + interface MultipleFacing extends org.bukkit.block.data.BlockData { + /** + * Checks if this block has the specified face enabled. + */ + // @ts-ignore + hasFace(face: org.bukkit.block.BlockFace): boolean; + /** + * Set whether this block has the specified face enabled. + */ + // @ts-ignore + setFace(face: org.bukkit.block.BlockFace, has: boolean): void; + /** + * Get all of the faces which are enabled on this block. + */ + // @ts-ignore + getFaces(): java.util.Set; + /** + * Gets all of this faces which may be set on this block. + */ + // @ts-ignore + getAllowedFaces(): java.util.Set; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.Openable.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.Openable.d.ts new file mode 100644 index 00000000..3e22bb13 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.Openable.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + // @ts-ignore + interface Openable extends org.bukkit.block.data.BlockData { + /** + * Gets the value of the 'open' property. + */ + // @ts-ignore + isOpen(): boolean; + /** + * Sets the value of the 'open' property. + */ + // @ts-ignore + setOpen(open: boolean): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.Orientable.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.Orientable.d.ts new file mode 100644 index 00000000..48118236 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.Orientable.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + // @ts-ignore + interface Orientable extends org.bukkit.block.data.BlockData { + /** + * Gets the value of the 'axis' property. + */ + // @ts-ignore + getAxis(): org.bukkit.Axis; + /** + * Sets the value of the 'axis' property. + */ + // @ts-ignore + setAxis(axis: org.bukkit.Axis): void; + /** + * Gets the axes which are applicable to this block. + */ + // @ts-ignore + getAxes(): java.util.Set; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.Powerable.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.Powerable.d.ts new file mode 100644 index 00000000..42dae135 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.Powerable.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + // @ts-ignore + interface Powerable extends org.bukkit.block.data.BlockData { + /** + * Gets the value of the 'powered' property. + */ + // @ts-ignore + isPowered(): boolean; + /** + * Sets the value of the 'powered' property. + */ + // @ts-ignore + setPowered(powered: boolean): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.Rail.Shape.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.Rail.Shape.d.ts new file mode 100644 index 00000000..f796f446 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.Rail.Shape.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace Rail { + // @ts-ignore + class Shape extends java.lang.Enum { + // @ts-ignore + public static NORTH_SOUTH: org.bukkit.block.data.Rail.Shape; + // @ts-ignore + public static EAST_WEST: org.bukkit.block.data.Rail.Shape; + // @ts-ignore + public static ASCENDING_EAST: org.bukkit.block.data.Rail.Shape; + // @ts-ignore + public static ASCENDING_WEST: org.bukkit.block.data.Rail.Shape; + // @ts-ignore + public static ASCENDING_NORTH: org.bukkit.block.data.Rail.Shape; + // @ts-ignore + public static ASCENDING_SOUTH: org.bukkit.block.data.Rail.Shape; + // @ts-ignore + public static SOUTH_EAST: org.bukkit.block.data.Rail.Shape; + // @ts-ignore + public static SOUTH_WEST: org.bukkit.block.data.Rail.Shape; + // @ts-ignore + public static NORTH_WEST: org.bukkit.block.data.Rail.Shape; + // @ts-ignore + public static NORTH_EAST: org.bukkit.block.data.Rail.Shape; + // @ts-ignore + public static values(): org.bukkit.block.data.Rail.Shape[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.block.data.Rail.Shape; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.Rail.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.Rail.d.ts new file mode 100644 index 00000000..a6296028 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.Rail.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + // @ts-ignore + interface Rail extends org.bukkit.block.data.BlockData { + /** + * Gets the value of the 'shape' property. + */ + // @ts-ignore + getShape(): org.bukkit.block.data.Rail.Shape; + /** + * Sets the value of the 'shape' property. + */ + // @ts-ignore + setShape(shape: org.bukkit.block.data.Rail.Shape): void; + /** + * Gets the shapes which are applicable to this block. + */ + // @ts-ignore + getShapes(): java.util.Set; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.Rotatable.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.Rotatable.d.ts new file mode 100644 index 00000000..1a7ceec7 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.Rotatable.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + // @ts-ignore + interface Rotatable extends org.bukkit.block.data.BlockData { + /** + * Gets the value of the 'rotation' property. + */ + // @ts-ignore + getRotation(): org.bukkit.block.BlockFace; + /** + * Sets the value of the 'rotation' property. + */ + // @ts-ignore + setRotation(rotation: org.bukkit.block.BlockFace): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.Snowable.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.Snowable.d.ts new file mode 100644 index 00000000..ac1035f2 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.Snowable.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + // @ts-ignore + interface Snowable extends org.bukkit.block.data.BlockData { + /** + * Gets the value of the 'snowy' property. + */ + // @ts-ignore + isSnowy(): boolean; + /** + * Sets the value of the 'snowy' property. + */ + // @ts-ignore + setSnowy(snowy: boolean): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.Waterlogged.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.Waterlogged.d.ts new file mode 100644 index 00000000..2dc2d802 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.Waterlogged.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + // @ts-ignore + interface Waterlogged extends org.bukkit.block.data.BlockData { + /** + * Gets the value of the 'waterlogged' property. + */ + // @ts-ignore + isWaterlogged(): boolean; + /** + * Sets the value of the 'waterlogged' property. + */ + // @ts-ignore + setWaterlogged(waterlogged: boolean): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Bamboo.Leaves.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Bamboo.Leaves.d.ts new file mode 100644 index 00000000..87976bcf --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Bamboo.Leaves.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + namespace Bamboo { + // @ts-ignore + class Leaves extends java.lang.Enum { + // @ts-ignore + public static NONE: org.bukkit.block.data.type.Bamboo.Leaves; + // @ts-ignore + public static SMALL: org.bukkit.block.data.type.Bamboo.Leaves; + // @ts-ignore + public static LARGE: org.bukkit.block.data.type.Bamboo.Leaves; + // @ts-ignore + public static values(): org.bukkit.block.data.type.Bamboo.Leaves[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.block.data.type.Bamboo.Leaves; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Bamboo.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Bamboo.d.ts new file mode 100644 index 00000000..96c10fab --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Bamboo.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface Bamboo extends org.bukkit.block.data.Ageable, org.bukkit.block.data.type.Sapling { + /** + * Gets the value of the 'leaves' property. + */ + // @ts-ignore + getLeaves(): org.bukkit.block.data.type.Bamboo.Leaves; + /** + * Sets the value of the 'leaves' property. + */ + // @ts-ignore + setLeaves(leaves: org.bukkit.block.data.type.Bamboo.Leaves): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Bed.Part.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Bed.Part.d.ts new file mode 100644 index 00000000..965217b3 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Bed.Part.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + namespace Bed { + // @ts-ignore + class Part extends java.lang.Enum { + // @ts-ignore + public static HEAD: org.bukkit.block.data.type.Bed.Part; + // @ts-ignore + public static FOOT: org.bukkit.block.data.type.Bed.Part; + // @ts-ignore + public static values(): org.bukkit.block.data.type.Bed.Part[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.block.data.type.Bed.Part; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Bed.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Bed.d.ts new file mode 100644 index 00000000..d1b73365 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Bed.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface Bed extends org.bukkit.block.data.Directional { + /** + * Gets the value of the 'part' property. + */ + // @ts-ignore + getPart(): org.bukkit.block.data.type.Bed.Part; + /** + * Sets the value of the 'part' property. + */ + // @ts-ignore + setPart(part: org.bukkit.block.data.type.Bed.Part): void; + /** + * Gets the value of the 'occupied' property. + */ + // @ts-ignore + isOccupied(): boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Bell.Attachment.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Bell.Attachment.d.ts new file mode 100644 index 00000000..be296a5a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Bell.Attachment.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + namespace Bell { + // @ts-ignore + class Attachment extends java.lang.Enum { + // @ts-ignore + public static FLOOR: org.bukkit.block.data.type.Bell.Attachment; + // @ts-ignore + public static CEILING: org.bukkit.block.data.type.Bell.Attachment; + // @ts-ignore + public static SINGLE_WALL: org.bukkit.block.data.type.Bell.Attachment; + // @ts-ignore + public static DOUBLE_WALL: org.bukkit.block.data.type.Bell.Attachment; + // @ts-ignore + public static values(): org.bukkit.block.data.type.Bell.Attachment[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.block.data.type.Bell.Attachment; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Bell.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Bell.d.ts new file mode 100644 index 00000000..9b5ef805 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Bell.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface Bell extends org.bukkit.block.data.Directional { + /** + * Gets the value of the 'attachment' property. + */ + // @ts-ignore + getAttachment(): org.bukkit.block.data.type.Bell.Attachment; + /** + * Sets the value of the 'attachment' property. + */ + // @ts-ignore + setAttachment(attachment: org.bukkit.block.data.type.Bell.Attachment): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.BrewingStand.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.BrewingStand.d.ts new file mode 100644 index 00000000..626693ca --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.BrewingStand.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface BrewingStand extends org.bukkit.block.data.BlockData { + /** + * Checks if the stand has the following bottle + */ + // @ts-ignore + hasBottle(bottle: number): boolean; + /** + * Set whether the stand has this bottle present. + */ + // @ts-ignore + setBottle(bottle: number, has: boolean): void; + /** + * Get the indexes of all the bottles present on this block. + */ + // @ts-ignore + getBottles(): java.util.Set; + /** + * Get the maximum amount of bottles present on this stand. + */ + // @ts-ignore + getMaximumBottles(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.BubbleColumn.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.BubbleColumn.d.ts new file mode 100644 index 00000000..99d05dc6 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.BubbleColumn.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface BubbleColumn extends org.bukkit.block.data.BlockData { + /** + * Gets the value of the 'drag' property. + */ + // @ts-ignore + isDrag(): boolean; + /** + * Sets the value of the 'drag' property. + */ + // @ts-ignore + setDrag(drag: boolean): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Cake.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Cake.d.ts new file mode 100644 index 00000000..59c022ed --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Cake.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface Cake extends org.bukkit.block.data.BlockData { + /** + * Gets the value of the 'bites' property. + */ + // @ts-ignore + getBites(): number; + /** + * Sets the value of the 'bites' property. + */ + // @ts-ignore + setBites(bites: number): void; + /** + * Gets the maximum allowed value of the 'bites' property. + */ + // @ts-ignore + getMaximumBites(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Campfire.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Campfire.d.ts new file mode 100644 index 00000000..b6df3cf7 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Campfire.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface Campfire extends org.bukkit.block.data.Lightable, org.bukkit.block.data.Waterlogged { + /** + * Gets the value of the 'signal_fire' property. + */ + // @ts-ignore + isSignalFire(): boolean; + /** + * Sets the value of the 'signal_fire' property. + */ + // @ts-ignore + setSignalFire(signalFire: boolean): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Chest.Type.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Chest.Type.d.ts new file mode 100644 index 00000000..42081a96 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Chest.Type.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + namespace Chest { + // @ts-ignore + class Type extends java.lang.Enum { + // @ts-ignore + public static SINGLE: org.bukkit.block.data.type.Chest.Type; + // @ts-ignore + public static LEFT: org.bukkit.block.data.type.Chest.Type; + // @ts-ignore + public static RIGHT: org.bukkit.block.data.type.Chest.Type; + // @ts-ignore + public static values(): org.bukkit.block.data.type.Chest.Type[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.block.data.type.Chest.Type; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Chest.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Chest.d.ts new file mode 100644 index 00000000..918b238f --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Chest.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface Chest extends org.bukkit.block.data.Directional, org.bukkit.block.data.Waterlogged { + /** + * Gets the value of the 'type' property. + */ + // @ts-ignore + getType(): org.bukkit.block.data.type.Chest.Type; + /** + * Sets the value of the 'type' property. + */ + // @ts-ignore + setType(type: org.bukkit.block.data.type.Chest.Type): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Cocoa.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Cocoa.d.ts new file mode 100644 index 00000000..68b64f2e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Cocoa.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface Cocoa extends org.bukkit.block.data.Ageable, org.bukkit.block.data.Directional { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.CommandBlock.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.CommandBlock.d.ts new file mode 100644 index 00000000..b9460a9c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.CommandBlock.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface CommandBlock extends org.bukkit.block.data.Directional { + /** + * Gets the value of the 'conditional' property. + */ + // @ts-ignore + isConditional(): boolean; + /** + * Sets the value of the 'conditional' property. + */ + // @ts-ignore + setConditional(conditional: boolean): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Comparator.Mode.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Comparator.Mode.d.ts new file mode 100644 index 00000000..10a87874 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Comparator.Mode.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + namespace Comparator { + // @ts-ignore + class Mode extends java.lang.Enum { + // @ts-ignore + public static COMPARE: org.bukkit.block.data.type.Comparator.Mode; + // @ts-ignore + public static SUBTRACT: org.bukkit.block.data.type.Comparator.Mode; + // @ts-ignore + public static values(): org.bukkit.block.data.type.Comparator.Mode[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.block.data.type.Comparator.Mode; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Comparator.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Comparator.d.ts new file mode 100644 index 00000000..87811077 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Comparator.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface Comparator extends org.bukkit.block.data.Directional, org.bukkit.block.data.Powerable { + /** + * Gets the value of the 'mode' property. + */ + // @ts-ignore + getMode(): org.bukkit.block.data.type.Comparator.Mode; + /** + * Sets the value of the 'mode' property. + */ + // @ts-ignore + setMode(mode: org.bukkit.block.data.type.Comparator.Mode): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.CoralWallFan.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.CoralWallFan.d.ts new file mode 100644 index 00000000..657af428 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.CoralWallFan.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface CoralWallFan extends org.bukkit.block.data.Directional, org.bukkit.block.data.Waterlogged { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.DaylightDetector.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.DaylightDetector.d.ts new file mode 100644 index 00000000..222b95b3 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.DaylightDetector.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface DaylightDetector extends org.bukkit.block.data.AnaloguePowerable { + /** + * Gets the value of the 'inverted' property. + */ + // @ts-ignore + isInverted(): boolean; + /** + * Sets the value of the 'inverted' property. + */ + // @ts-ignore + setInverted(inverted: boolean): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Dispenser.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Dispenser.d.ts new file mode 100644 index 00000000..e91ef7a5 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Dispenser.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface Dispenser extends org.bukkit.block.data.Directional { + /** + * Gets the value of the 'triggered' property. + */ + // @ts-ignore + isTriggered(): boolean; + /** + * Sets the value of the 'triggered' property. + */ + // @ts-ignore + setTriggered(triggered: boolean): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Door.Hinge.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Door.Hinge.d.ts new file mode 100644 index 00000000..3001cc01 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Door.Hinge.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + namespace Door { + // @ts-ignore + class Hinge extends java.lang.Enum { + // @ts-ignore + public static LEFT: org.bukkit.block.data.type.Door.Hinge; + // @ts-ignore + public static RIGHT: org.bukkit.block.data.type.Door.Hinge; + // @ts-ignore + public static values(): org.bukkit.block.data.type.Door.Hinge[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.block.data.type.Door.Hinge; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Door.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Door.d.ts new file mode 100644 index 00000000..abc48918 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Door.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @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. + */ + // @ts-ignore + getHinge(): org.bukkit.block.data.type.Door.Hinge; + /** + * Sets the value of the 'hinge' property. + */ + // @ts-ignore + setHinge(hinge: org.bukkit.block.data.type.Door.Hinge): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.EndPortalFrame.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.EndPortalFrame.d.ts new file mode 100644 index 00000000..3dff211d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.EndPortalFrame.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface EndPortalFrame extends org.bukkit.block.data.Directional { + /** + * Gets the value of the 'eye' property. + */ + // @ts-ignore + hasEye(): boolean; + /** + * Sets the value of the 'eye' property. + */ + // @ts-ignore + setEye(eye: boolean): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.EnderChest.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.EnderChest.d.ts new file mode 100644 index 00000000..e879cde9 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.EnderChest.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface EnderChest extends org.bukkit.block.data.Directional, org.bukkit.block.data.Waterlogged { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Farmland.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Farmland.d.ts new file mode 100644 index 00000000..b32bfd47 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Farmland.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface Farmland extends org.bukkit.block.data.BlockData { + /** + * Gets the value of the 'moisture' property. + */ + // @ts-ignore + getMoisture(): number; + /** + * Sets the value of the 'moisture' property. + */ + // @ts-ignore + setMoisture(moisture: number): void; + /** + * Gets the maximum allowed value of the 'moisture' property. + */ + // @ts-ignore + getMaximumMoisture(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Fence.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Fence.d.ts new file mode 100644 index 00000000..5e203901 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Fence.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface Fence extends org.bukkit.block.data.MultipleFacing, org.bukkit.block.data.Waterlogged { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Fire.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Fire.d.ts new file mode 100644 index 00000000..a07938ef --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Fire.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface Fire extends org.bukkit.block.data.Ageable, org.bukkit.block.data.MultipleFacing { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Furnace.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Furnace.d.ts new file mode 100644 index 00000000..d094bd66 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Furnace.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface Furnace extends org.bukkit.block.data.Directional, org.bukkit.block.data.Lightable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Gate.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Gate.d.ts new file mode 100644 index 00000000..dc9ae49a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Gate.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @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. + */ + // @ts-ignore + isInWall(): boolean; + /** + * Sets the value of the 'in_wall' property. + */ + // @ts-ignore + setInWall(inWall: boolean): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.GlassPane.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.GlassPane.d.ts new file mode 100644 index 00000000..f9776384 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.GlassPane.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface GlassPane extends org.bukkit.block.data.MultipleFacing, org.bukkit.block.data.Waterlogged { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Hopper.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Hopper.d.ts new file mode 100644 index 00000000..3f1d6ed0 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Hopper.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface Hopper extends org.bukkit.block.data.Directional { + /** + * Gets the value of the 'enabled' property. + */ + // @ts-ignore + isEnabled(): boolean; + /** + * Sets the value of the 'enabled' property. + */ + // @ts-ignore + setEnabled(enabled: boolean): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Jukebox.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Jukebox.d.ts new file mode 100644 index 00000000..66185fff --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Jukebox.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface Jukebox extends org.bukkit.block.data.BlockData { + /** + * Gets the value of the 'has_record' property. + */ + // @ts-ignore + hasRecord(): boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Ladder.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Ladder.d.ts new file mode 100644 index 00000000..ae09ae10 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Ladder.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface Ladder extends org.bukkit.block.data.Directional, org.bukkit.block.data.Waterlogged { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Lantern.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Lantern.d.ts new file mode 100644 index 00000000..c3a66edb --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Lantern.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface Lantern { + /** + * Gets the value of the 'hanging' property. + */ + // @ts-ignore + isHanging(): boolean; + /** + * Sets the value of the 'hanging' property. + */ + // @ts-ignore + setHanging(hanging: boolean): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Leaves.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Leaves.d.ts new file mode 100644 index 00000000..e2d0d3b1 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Leaves.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface Leaves extends org.bukkit.block.data.BlockData { + /** + * Gets the value of the 'persistent' property. + */ + // @ts-ignore + isPersistent(): boolean; + /** + * Sets the value of the 'persistent' property. + */ + // @ts-ignore + setPersistent(persistent: boolean): void; + /** + * Gets the value of the 'distance' property. + */ + // @ts-ignore + getDistance(): number; + /** + * Sets the value of the 'distance' property. + */ + // @ts-ignore + setDistance(distance: number): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Lectern.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Lectern.d.ts new file mode 100644 index 00000000..9024794e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Lectern.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface Lectern extends org.bukkit.block.data.Directional, org.bukkit.block.data.Powerable { + /** + * Gets the value of the 'has_book' property. + */ + // @ts-ignore + hasBook(): boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.NoteBlock.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.NoteBlock.d.ts new file mode 100644 index 00000000..9c1c69bf --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.NoteBlock.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface NoteBlock extends org.bukkit.block.data.Powerable { + /** + * Gets the value of the 'instrument' property. + */ + // @ts-ignore + getInstrument(): org.bukkit.Instrument; + /** + * Sets the value of the 'instrument' property. + */ + // @ts-ignore + setInstrument(instrument: org.bukkit.Instrument): void; + /** + * Gets the value of the 'note' property. + */ + // @ts-ignore + getNote(): org.bukkit.Note; + /** + * Sets the value of the 'note' property. + */ + // @ts-ignore + setNote(note: org.bukkit.Note): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Observer.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Observer.d.ts new file mode 100644 index 00000000..d6696892 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Observer.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface Observer extends org.bukkit.block.data.Directional, org.bukkit.block.data.Powerable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Piston.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Piston.d.ts new file mode 100644 index 00000000..06516020 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Piston.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface Piston extends org.bukkit.block.data.Directional { + /** + * Gets the value of the 'extended' property. + */ + // @ts-ignore + isExtended(): boolean; + /** + * Sets the value of the 'extended' property. + */ + // @ts-ignore + setExtended(extended: boolean): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.PistonHead.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.PistonHead.d.ts new file mode 100644 index 00000000..f264cb38 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.PistonHead.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface PistonHead extends org.bukkit.block.data.type.TechnicalPiston { + /** + * Gets the value of the 'short' property. + */ + // @ts-ignore + isShort(): boolean; + /** + * Sets the value of the 'short' property. + */ + // @ts-ignore + setShort(_short: boolean): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.RedstoneRail.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.RedstoneRail.d.ts new file mode 100644 index 00000000..3f2c7a63 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.RedstoneRail.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface RedstoneRail extends org.bukkit.block.data.Powerable, org.bukkit.block.data.Rail { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.RedstoneWallTorch.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.RedstoneWallTorch.d.ts new file mode 100644 index 00000000..a7da6735 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.RedstoneWallTorch.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface RedstoneWallTorch extends org.bukkit.block.data.Directional, org.bukkit.block.data.Lightable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.RedstoneWire.Connection.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.RedstoneWire.Connection.d.ts new file mode 100644 index 00000000..0ec0fcce --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.RedstoneWire.Connection.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + namespace RedstoneWire { + // @ts-ignore + class Connection extends java.lang.Enum { + // @ts-ignore + public static UP: org.bukkit.block.data.type.RedstoneWire.Connection; + // @ts-ignore + public static SIDE: org.bukkit.block.data.type.RedstoneWire.Connection; + // @ts-ignore + public static NONE: org.bukkit.block.data.type.RedstoneWire.Connection; + // @ts-ignore + public static values(): org.bukkit.block.data.type.RedstoneWire.Connection[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.block.data.type.RedstoneWire.Connection; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.RedstoneWire.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.RedstoneWire.d.ts new file mode 100644 index 00000000..b02f0051 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.RedstoneWire.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface RedstoneWire extends org.bukkit.block.data.AnaloguePowerable { + /** + * Checks the type of connection on the specified face. + */ + // @ts-ignore + getFace(face: org.bukkit.block.BlockFace): org.bukkit.block.data.type.RedstoneWire.Connection; + /** + * Sets the type of connection on the specified face. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getAllowedFaces(): java.util.Set; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Repeater.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Repeater.d.ts new file mode 100644 index 00000000..f28bf9f1 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Repeater.d.ts @@ -0,0 +1,44 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface Repeater extends org.bukkit.block.data.Directional, org.bukkit.block.data.Powerable { + /** + * Gets the value of the 'delay' property. + */ + // @ts-ignore + getDelay(): number; + /** + * Sets the value of the 'delay' property. + */ + // @ts-ignore + setDelay(delay: number): void; + /** + * Gets the minimum allowed value of the 'delay' property. + */ + // @ts-ignore + getMinimumDelay(): number; + /** + * Gets the maximum allowed value of the 'delay' property. + */ + // @ts-ignore + getMaximumDelay(): number; + /** + * Gets the value of the 'locked' property. + */ + // @ts-ignore + isLocked(): boolean; + /** + * Sets the value of the 'locked' property. + */ + // @ts-ignore + setLocked(locked: boolean): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Sapling.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Sapling.d.ts new file mode 100644 index 00000000..9ccc8422 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Sapling.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface Sapling extends org.bukkit.block.data.BlockData { + /** + * Gets the value of the 'stage' property. + */ + // @ts-ignore + getStage(): number; + /** + * Sets the value of the 'stage' property. + */ + // @ts-ignore + setStage(stage: number): void; + /** + * Gets the maximum allowed value of the 'stage' property. + */ + // @ts-ignore + getMaximumStage(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Scaffolding.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Scaffolding.d.ts new file mode 100644 index 00000000..a7f44d81 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Scaffolding.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface Scaffolding extends org.bukkit.block.data.Waterlogged { + /** + * Gets the value of the 'bottom' property. + */ + // @ts-ignore + isBottom(): boolean; + /** + * Sets the value of the 'bottom' property. + */ + // @ts-ignore + setBottom(bottom: boolean): void; + /** + * Gets the value of the 'distance' property. + */ + // @ts-ignore + getDistance(): number; + /** + * Sets the value of the 'distance' property. + */ + // @ts-ignore + setDistance(distance: number): void; + /** + * Gets the maximum allowed value of the 'distance' property. + */ + // @ts-ignore + getMaximumDistance(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.SeaPickle.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.SeaPickle.d.ts new file mode 100644 index 00000000..03abbe94 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.SeaPickle.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface SeaPickle extends org.bukkit.block.data.Waterlogged { + /** + * Gets the value of the 'pickles' property. + */ + // @ts-ignore + getPickles(): number; + /** + * Sets the value of the 'pickles' property. + */ + // @ts-ignore + setPickles(pickles: number): void; + /** + * Gets the minimum allowed value of the 'pickles' property. + */ + // @ts-ignore + getMinimumPickles(): number; + /** + * Gets the maximum allowed value of the 'pickles' property. + */ + // @ts-ignore + getMaximumPickles(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Sign.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Sign.d.ts new file mode 100644 index 00000000..e0a2544d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Sign.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface Sign extends org.bukkit.block.data.Rotatable, org.bukkit.block.data.Waterlogged { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Slab.Type.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Slab.Type.d.ts new file mode 100644 index 00000000..a57ce611 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Slab.Type.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + namespace Slab { + // @ts-ignore + class Type extends java.lang.Enum { + // @ts-ignore + public static TOP: org.bukkit.block.data.type.Slab.Type; + // @ts-ignore + public static BOTTOM: org.bukkit.block.data.type.Slab.Type; + // @ts-ignore + public static DOUBLE: org.bukkit.block.data.type.Slab.Type; + // @ts-ignore + public static values(): org.bukkit.block.data.type.Slab.Type[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.block.data.type.Slab.Type; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Slab.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Slab.d.ts new file mode 100644 index 00000000..7d2a7202 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Slab.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface Slab extends org.bukkit.block.data.Waterlogged { + /** + * Gets the value of the 'type' property. + */ + // @ts-ignore + getType(): org.bukkit.block.data.type.Slab.Type; + /** + * Sets the value of the 'type' property. + */ + // @ts-ignore + setType(type: org.bukkit.block.data.type.Slab.Type): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Snow.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Snow.d.ts new file mode 100644 index 00000000..af1f96f0 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Snow.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface Snow extends org.bukkit.block.data.BlockData { + /** + * Gets the value of the 'layers' property. + */ + // @ts-ignore + getLayers(): number; + /** + * Sets the value of the 'layers' property. + */ + // @ts-ignore + setLayers(layers: number): void; + /** + * Gets the minimum allowed value of the 'layers' property. + */ + // @ts-ignore + getMinimumLayers(): number; + /** + * Gets the maximum allowed value of the 'layers' property. + */ + // @ts-ignore + getMaximumLayers(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Stairs.Shape.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Stairs.Shape.d.ts new file mode 100644 index 00000000..0ea2afa2 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Stairs.Shape.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + namespace Stairs { + // @ts-ignore + class Shape extends java.lang.Enum { + // @ts-ignore + public static STRAIGHT: org.bukkit.block.data.type.Stairs.Shape; + // @ts-ignore + public static INNER_LEFT: org.bukkit.block.data.type.Stairs.Shape; + // @ts-ignore + public static INNER_RIGHT: org.bukkit.block.data.type.Stairs.Shape; + // @ts-ignore + public static OUTER_LEFT: org.bukkit.block.data.type.Stairs.Shape; + // @ts-ignore + public static OUTER_RIGHT: org.bukkit.block.data.type.Stairs.Shape; + // @ts-ignore + public static values(): org.bukkit.block.data.type.Stairs.Shape[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.block.data.type.Stairs.Shape; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Stairs.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Stairs.d.ts new file mode 100644 index 00000000..00591fac --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Stairs.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @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. + */ + // @ts-ignore + getShape(): org.bukkit.block.data.type.Stairs.Shape; + /** + * Sets the value of the 'shape' property. + */ + // @ts-ignore + setShape(shape: org.bukkit.block.data.type.Stairs.Shape): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.StructureBlock.Mode.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.StructureBlock.Mode.d.ts new file mode 100644 index 00000000..a0d72b6a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.StructureBlock.Mode.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + namespace StructureBlock { + // @ts-ignore + class Mode extends java.lang.Enum { + // @ts-ignore + public static SAVE: org.bukkit.block.data.type.StructureBlock.Mode; + // @ts-ignore + public static LOAD: org.bukkit.block.data.type.StructureBlock.Mode; + // @ts-ignore + public static CORNER: org.bukkit.block.data.type.StructureBlock.Mode; + // @ts-ignore + public static DATA: org.bukkit.block.data.type.StructureBlock.Mode; + // @ts-ignore + public static values(): org.bukkit.block.data.type.StructureBlock.Mode[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.block.data.type.StructureBlock.Mode; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.StructureBlock.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.StructureBlock.d.ts new file mode 100644 index 00000000..7ea64ece --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.StructureBlock.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface StructureBlock extends org.bukkit.block.data.BlockData { + /** + * Gets the value of the 'mode' property. + */ + // @ts-ignore + getMode(): org.bukkit.block.data.type.StructureBlock.Mode; + /** + * Sets the value of the 'mode' property. + */ + // @ts-ignore + setMode(mode: org.bukkit.block.data.type.StructureBlock.Mode): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Switch.Face.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Switch.Face.d.ts new file mode 100644 index 00000000..f2a2f34c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Switch.Face.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + namespace Switch { + // @ts-ignore + class Face extends java.lang.Enum { + // @ts-ignore + public static FLOOR: org.bukkit.block.data.type.Switch.Face; + // @ts-ignore + public static WALL: org.bukkit.block.data.type.Switch.Face; + // @ts-ignore + public static CEILING: org.bukkit.block.data.type.Switch.Face; + // @ts-ignore + public static values(): org.bukkit.block.data.type.Switch.Face[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.block.data.type.Switch.Face; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Switch.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Switch.d.ts new file mode 100644 index 00000000..2596ab42 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Switch.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface Switch extends org.bukkit.block.data.Directional, org.bukkit.block.data.Powerable { + /** + * Gets the value of the 'face' property. + */ + // @ts-ignore + getFace(): org.bukkit.block.data.type.Switch.Face; + /** + * Sets the value of the 'face' property. + */ + // @ts-ignore + setFace(face: org.bukkit.block.data.type.Switch.Face): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.TNT.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.TNT.d.ts new file mode 100644 index 00000000..26fdb9c0 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.TNT.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface TNT extends org.bukkit.block.data.BlockData { + /** + * Gets the value of the 'unstable' property. + */ + // @ts-ignore + isUnstable(): boolean; + /** + * Sets the value of the 'unstable' property. + */ + // @ts-ignore + setUnstable(unstable: boolean): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.TechnicalPiston.Type.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.TechnicalPiston.Type.d.ts new file mode 100644 index 00000000..1ced8a9d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.TechnicalPiston.Type.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + namespace TechnicalPiston { + // @ts-ignore + class Type extends java.lang.Enum { + // @ts-ignore + public static NORMAL: org.bukkit.block.data.type.TechnicalPiston.Type; + // @ts-ignore + public static STICKY: org.bukkit.block.data.type.TechnicalPiston.Type; + // @ts-ignore + public static values(): org.bukkit.block.data.type.TechnicalPiston.Type[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.block.data.type.TechnicalPiston.Type; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.TechnicalPiston.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.TechnicalPiston.d.ts new file mode 100644 index 00000000..475ff418 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.TechnicalPiston.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface TechnicalPiston extends org.bukkit.block.data.Directional { + /** + * Gets the value of the 'type' property. + */ + // @ts-ignore + getType(): org.bukkit.block.data.type.TechnicalPiston.Type; + /** + * Sets the value of the 'type' property. + */ + // @ts-ignore + setType(type: org.bukkit.block.data.type.TechnicalPiston.Type): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.TrapDoor.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.TrapDoor.d.ts new file mode 100644 index 00000000..1b2612bd --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.TrapDoor.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @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/types/dist/typings/bukkit/org.bukkit.block.data.type.Tripwire.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Tripwire.d.ts new file mode 100644 index 00000000..803ed3c2 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.Tripwire.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @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. + */ + // @ts-ignore + isDisarmed(): boolean; + /** + * Sets the value of the 'disarmed' property. + */ + // @ts-ignore + setDisarmed(disarmed: boolean): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.TripwireHook.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.TripwireHook.d.ts new file mode 100644 index 00000000..fb7dcd62 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.TripwireHook.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface TripwireHook extends org.bukkit.block.data.Attachable, org.bukkit.block.data.Directional, org.bukkit.block.data.Powerable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.TurtleEgg.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.TurtleEgg.d.ts new file mode 100644 index 00000000..f8282981 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.TurtleEgg.d.ts @@ -0,0 +1,49 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface TurtleEgg extends org.bukkit.block.data.BlockData { + /** + * Gets the value of the 'eggs' property. + */ + // @ts-ignore + getEggs(): number; + /** + * Sets the value of the 'eggs' property. + */ + // @ts-ignore + setEggs(eggs: number): void; + /** + * Gets the minimum allowed value of the 'eggs' property. + */ + // @ts-ignore + getMinimumEggs(): number; + /** + * Gets the maximum allowed value of the 'eggs' property. + */ + // @ts-ignore + getMaximumEggs(): number; + /** + * Gets the value of the 'hatch' property. + */ + // @ts-ignore + getHatch(): number; + /** + * Sets the value of the 'hatch' property. + */ + // @ts-ignore + setHatch(hatch: number): void; + /** + * Gets the maximum allowed value of the 'hatch' property. + */ + // @ts-ignore + getMaximumHatch(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.WallSign.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.WallSign.d.ts new file mode 100644 index 00000000..aeff0d48 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.data.type.WallSign.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace data { + namespace type { + // @ts-ignore + interface WallSign extends org.bukkit.block.data.Directional, org.bukkit.block.data.Waterlogged { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.structure.Mirror.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.structure.Mirror.d.ts new file mode 100644 index 00000000..8fa3cc18 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.structure.Mirror.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace structure { + // @ts-ignore + class Mirror extends java.lang.Enum { + // @ts-ignore + public static NONE: org.bukkit.block.structure.Mirror; + // @ts-ignore + public static LEFT_RIGHT: org.bukkit.block.structure.Mirror; + // @ts-ignore + public static FRONT_BACK: org.bukkit.block.structure.Mirror; + // @ts-ignore + public static values(): org.bukkit.block.structure.Mirror[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.block.structure.Mirror; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.structure.StructureRotation.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.structure.StructureRotation.d.ts new file mode 100644 index 00000000..a893d64b --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.structure.StructureRotation.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace structure { + // @ts-ignore + class StructureRotation extends java.lang.Enum { + // @ts-ignore + public static NONE: org.bukkit.block.structure.StructureRotation; + // @ts-ignore + public static CLOCKWISE_90: org.bukkit.block.structure.StructureRotation; + // @ts-ignore + public static CLOCKWISE_180: org.bukkit.block.structure.StructureRotation; + // @ts-ignore + public static COUNTERCLOCKWISE_90: org.bukkit.block.structure.StructureRotation; + // @ts-ignore + public static values(): org.bukkit.block.structure.StructureRotation[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.block.structure.StructureRotation; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.block.structure.UsageMode.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.block.structure.UsageMode.d.ts new file mode 100644 index 00000000..9f4d1666 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.block.structure.UsageMode.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace block { + namespace structure { + // @ts-ignore + class UsageMode extends java.lang.Enum { + // @ts-ignore + public static SAVE: org.bukkit.block.structure.UsageMode; + // @ts-ignore + public static LOAD: org.bukkit.block.structure.UsageMode; + // @ts-ignore + public static CORNER: org.bukkit.block.structure.UsageMode; + // @ts-ignore + public static DATA: org.bukkit.block.structure.UsageMode; + // @ts-ignore + public static values(): org.bukkit.block.structure.UsageMode[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.block.structure.UsageMode; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.boss.BarColor.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.boss.BarColor.d.ts new file mode 100644 index 00000000..401d3bc1 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.boss.BarColor.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace boss { + // @ts-ignore + class BarColor extends java.lang.Enum { + // @ts-ignore + public static PINK: org.bukkit.boss.BarColor; + // @ts-ignore + public static BLUE: org.bukkit.boss.BarColor; + // @ts-ignore + public static RED: org.bukkit.boss.BarColor; + // @ts-ignore + public static GREEN: org.bukkit.boss.BarColor; + // @ts-ignore + public static YELLOW: org.bukkit.boss.BarColor; + // @ts-ignore + public static PURPLE: org.bukkit.boss.BarColor; + // @ts-ignore + public static WHITE: org.bukkit.boss.BarColor; + // @ts-ignore + public static values(): org.bukkit.boss.BarColor[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.boss.BarColor; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.boss.BarFlag.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.boss.BarFlag.d.ts new file mode 100644 index 00000000..94e9c505 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.boss.BarFlag.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace boss { + // @ts-ignore + class BarFlag extends java.lang.Enum { + // @ts-ignore + public static DARKEN_SKY: org.bukkit.boss.BarFlag; + // @ts-ignore + public static PLAY_BOSS_MUSIC: org.bukkit.boss.BarFlag; + // @ts-ignore + public static CREATE_FOG: org.bukkit.boss.BarFlag; + // @ts-ignore + public static values(): org.bukkit.boss.BarFlag[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.boss.BarFlag; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.boss.BarStyle.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.boss.BarStyle.d.ts new file mode 100644 index 00000000..322b84fa --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.boss.BarStyle.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace boss { + // @ts-ignore + class BarStyle extends java.lang.Enum { + // @ts-ignore + public static SOLID: org.bukkit.boss.BarStyle; + // @ts-ignore + public static SEGMENTED_6: org.bukkit.boss.BarStyle; + // @ts-ignore + public static SEGMENTED_10: org.bukkit.boss.BarStyle; + // @ts-ignore + public static SEGMENTED_12: org.bukkit.boss.BarStyle; + // @ts-ignore + public static SEGMENTED_20: org.bukkit.boss.BarStyle; + // @ts-ignore + public static values(): org.bukkit.boss.BarStyle[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.boss.BarStyle; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.boss.BossBar.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.boss.BossBar.d.ts new file mode 100644 index 00000000..de7a5b93 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.boss.BossBar.d.ts @@ -0,0 +1,107 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace boss { + // @ts-ignore + interface BossBar { + /** + * Returns the title of this boss bar + */ + // @ts-ignore + getTitle(): string; + /** + * Sets the title of this boss bar + */ + // @ts-ignore + setTitle(title: string): void; + /** + * Returns the color of this boss bar + */ + // @ts-ignore + getColor(): org.bukkit.boss.BarColor; + /** + * Sets the color of this boss bar. + */ + // @ts-ignore + setColor(color: org.bukkit.boss.BarColor): void; + /** + * Returns the style of this boss bar + */ + // @ts-ignore + getStyle(): org.bukkit.boss.BarStyle; + /** + * Sets the bar style of this boss bar + */ + // @ts-ignore + setStyle(style: org.bukkit.boss.BarStyle): void; + /** + * Remove an existing flag on this boss bar + */ + // @ts-ignore + removeFlag(flag: org.bukkit.boss.BarFlag): void; + /** + * Add an optional flag to this boss bar + */ + // @ts-ignore + addFlag(flag: org.bukkit.boss.BarFlag): void; + /** + * Returns whether this boss bar as the passed flag set + */ + // @ts-ignore + hasFlag(flag: org.bukkit.boss.BarFlag): boolean; + /** + * Sets the progress of the bar. Values should be between 0.0 (empty) and + * 1.0 (full) + */ + // @ts-ignore + setProgress(progress: number): void; + /** + * Returns the progress of the bar between 0.0 and 1.0 + */ + // @ts-ignore + getProgress(): number; + /** + * Adds the player to this boss bar causing it to display on their screen. + */ + // @ts-ignore + addPlayer(player: org.bukkit.entity.Player): void; + /** + * Removes the player from this boss bar causing it to be removed from their + * screen. + */ + // @ts-ignore + removePlayer(player: org.bukkit.entity.Player): void; + /** + * Removes all players from this boss bar + */ + // @ts-ignore + removeAll(): void; + /** + * Returns all players viewing this boss bar + */ + // @ts-ignore + getPlayers(): java.util.List; + /** + * Set if the boss bar is displayed to attached players. + */ + // @ts-ignore + setVisible(visible: boolean): void; + /** + * Return if the boss bar is displayed to attached players. + */ + // @ts-ignore + isVisible(): boolean; + /** + * Shows the previously hidden boss bar to all attached players + */ + // @ts-ignore + show(): void; + /** + * Hides this boss bar from all attached players + */ + // @ts-ignore + hide(): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.boss.KeyedBossBar.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.boss.KeyedBossBar.d.ts new file mode 100644 index 00000000..c4311570 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.boss.KeyedBossBar.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace boss { + // @ts-ignore + interface KeyedBossBar extends org.bukkit.boss.BossBar, org.bukkit.Keyed { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.command.BlockCommandSender.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.command.BlockCommandSender.d.ts new file mode 100644 index 00000000..0e7979bb --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.command.BlockCommandSender.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace command { + // @ts-ignore + interface BlockCommandSender extends org.bukkit.command.CommandSender { + /** + * Returns the block this command sender belongs to + */ + // @ts-ignore + getBlock(): org.bukkit.block.Block; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.command.Command.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.command.Command.d.ts new file mode 100644 index 00000000..6e5edb8c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.command.Command.d.ts @@ -0,0 +1,161 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace command { + // @ts-ignore + abstract class Command extends java.lang.Object { + // @ts-ignore + constructor(name: string) + // @ts-ignore + constructor(name: string, description: string, usageMessage: string, aliases: java.util.List) + // @ts-ignore + protected description: string; + // @ts-ignore + protected usageMessage: string; + /** + * Executes the command, returning its success + */ + // @ts-ignore + public abstract execute(sender: org.bukkit.command.CommandSender, commandLabel: string, args: string): boolean; + /** + * Executed on tab completion for this command, returning a list of + * options the player can tab through. + */ + // @ts-ignore + public tabComplete(sender: org.bukkit.command.CommandSender, alias: string, args: string): java.util.List; + /** + * Executed on tab completion for this command, returning a list of + * options the player can tab through. + */ + // @ts-ignore + public tabComplete(sender: org.bukkit.command.CommandSender, alias: string, args: string, location: org.bukkit.Location): java.util.List; + /** + * Returns the name of this command + */ + // @ts-ignore + public getName(): string; + /** + * Sets the name of this command. + *

+ * May only be used before registering the command. + * Will return true if the new name is set, and false + * if the command has already been registered. + */ + // @ts-ignore + public setName(name: string): boolean; + /** + * Gets the permission required by users to be able to perform this + * command + */ + // @ts-ignore + public getPermission(): string; + /** + * Sets the permission required by users to be able to perform this + * command + */ + // @ts-ignore + public setPermission(permission: string): void; + /** + * Tests the given {@link CommandSender} to see if they can perform this + * command. + *

+ * If they do not have permission, they will be informed that they cannot + * do this. + */ + // @ts-ignore + public testPermission(target: org.bukkit.command.CommandSender): boolean; + /** + * Tests the given {@link CommandSender} to see if they can perform this + * command. + *

+ * No error is sent to the sender. + */ + // @ts-ignore + public testPermissionSilent(target: org.bukkit.command.CommandSender): boolean; + /** + * Returns the label for this command + */ + // @ts-ignore + public getLabel(): string; + /** + * Sets the label of this command. + *

+ * May only be used before registering the command. + * Will return true if the new name is set, and false + * if the command has already been registered. + */ + // @ts-ignore + public setLabel(name: string): boolean; + /** + * Registers this command to a CommandMap. + * Once called it only allows changes the registered CommandMap + */ + // @ts-ignore + public register(commandMap: org.bukkit.command.CommandMap): boolean; + /** + * Unregisters this command from the passed CommandMap applying any + * outstanding changes + */ + // @ts-ignore + public unregister(commandMap: org.bukkit.command.CommandMap): boolean; + /** + * Returns the current registered state of this command + */ + // @ts-ignore + public isRegistered(): boolean; + /** + * Returns a list of active aliases of this command + */ + // @ts-ignore + public getAliases(): java.util.List; + /** + * Returns a message to be displayed on a failed permission check for this + * command + */ + // @ts-ignore + public getPermissionMessage(): string; + /** + * Gets a brief description of this command + */ + // @ts-ignore + public getDescription(): string; + /** + * Gets an example usage of this command + */ + // @ts-ignore + public getUsage(): string; + /** + * Sets the list of aliases to request on registration for this command. + * This is not effective outside of defining aliases in the {@link + * PluginDescriptionFile#getCommands()} (under the + * `aliases' node) is equivalent to this method. + */ + // @ts-ignore + public setAliases(aliases: java.util.List): org.bukkit.command.Command; + /** + * Sets a brief description of this command. Defining a description in the + * {@link PluginDescriptionFile#getCommands()} (under the + * `description' node) is equivalent to this method. + */ + // @ts-ignore + public setDescription(description: string): org.bukkit.command.Command; + /** + * Sets the message sent when a permission check fails + */ + // @ts-ignore + public setPermissionMessage(permissionMessage: string): org.bukkit.command.Command; + /** + * Sets the example usage of this command + */ + // @ts-ignore + public setUsage(usage: string): org.bukkit.command.Command; + // @ts-ignore + public static broadcastCommandMessage(source: org.bukkit.command.CommandSender, message: string): void; + // @ts-ignore + public static broadcastCommandMessage(source: org.bukkit.command.CommandSender, message: string, sendToSource: boolean): void; + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.command.CommandException.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.command.CommandException.d.ts new file mode 100644 index 00000000..6a467f96 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.command.CommandException.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace command { + // @ts-ignore + class CommandException extends java.lang.RuntimeException { + /** + * Creates a new instance of CommandException without detail + * message. + */ + // @ts-ignore + constructor() + /** + * Constructs an instance of CommandException with the + * specified detail message. + */ + // @ts-ignore + constructor(msg: string) + // @ts-ignore + constructor(msg: string, cause: java.lang.Throwable) + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.command.CommandExecutor.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.command.CommandExecutor.d.ts new file mode 100644 index 00000000..99857547 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.command.CommandExecutor.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace command { + // @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. + */ + // @ts-ignore + onCommand(sender: org.bukkit.command.CommandSender, command: org.bukkit.command.Command, label: string, args: string): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.command.CommandMap.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.command.CommandMap.d.ts new file mode 100644 index 00000000..7e965f0d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.command.CommandMap.d.ts @@ -0,0 +1,80 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace command { + // @ts-ignore + interface CommandMap { + /** + * Registers all the commands belonging to a certain plugin. + *

+ * Caller can use:- + *

    + *
  • command.getName() to determine the label registered for this + * command + *
  • command.getAliases() to determine the aliases which where + * registered + *
+ */ + // @ts-ignore + registerAll(fallbackPrefix: string, commands: java.util.List): void; + /** + * Registers a command. Returns true on success; false if name is already + * taken and fallback had to be used. + *

+ * Caller can use:- + *

    + *
  • command.getName() to determine the label registered for this + * command + *
  • command.getAliases() to determine the aliases which where + * registered + *
+ */ + // @ts-ignore + 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. + *

+ * Caller can use:- + *

    + *
  • command.getName() to determine the label registered for this + * command + *
  • command.getAliases() to determine the aliases which where + * registered + *
+ */ + // @ts-ignore + register(fallbackPrefix: string, command: org.bukkit.command.Command): boolean; + /** + * Looks for the requested command and executes it if found. + */ + // @ts-ignore + dispatch(sender: org.bukkit.command.CommandSender, cmdLine: string): boolean; + /** + * Clears all registered commands. + */ + // @ts-ignore + clearCommands(): void; + /** + * Gets the command registered to the specified name + */ + // @ts-ignore + 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. + */ + // @ts-ignore + tabComplete(sender: org.bukkit.command.CommandSender, cmdLine: string): java.util.List; + /** + * Looks for the requested command and executes an appropriate + * tab-completer if found. This method will also tab-complete partial + * commands. + */ + // @ts-ignore + tabComplete(sender: org.bukkit.command.CommandSender, cmdLine: string, location: org.bukkit.Location): java.util.List; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.command.CommandSender.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.command.CommandSender.d.ts new file mode 100644 index 00000000..110f7d74 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.command.CommandSender.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace command { + // @ts-ignore + interface CommandSender extends org.bukkit.permissions.Permissible { + /** + * Sends this sender a message + */ + // @ts-ignore + sendMessage(message: string): void; + /** + * Sends this sender multiple messages + */ + // @ts-ignore + sendMessage(messages: string): void; + /** + * Returns the server instance that this command is running on + */ + // @ts-ignore + getServer(): org.bukkit.Server; + /** + * Gets the name of this command sender + */ + // @ts-ignore + getName(): string; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.command.ConsoleCommandSender.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.command.ConsoleCommandSender.d.ts new file mode 100644 index 00000000..3bd16c24 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.command.ConsoleCommandSender.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace command { + // @ts-ignore + interface ConsoleCommandSender extends org.bukkit.command.CommandSender, org.bukkit.conversations.Conversable { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.command.FormattedCommandAlias.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.command.FormattedCommandAlias.d.ts new file mode 100644 index 00000000..ea19c26d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.command.FormattedCommandAlias.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace command { + // @ts-ignore + class FormattedCommandAlias extends org.bukkit.command.Command { + // @ts-ignore + constructor(alias: string, formatStrings: string) + // @ts-ignore + public execute(sender: org.bukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.command.MultipleCommandAlias.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.command.MultipleCommandAlias.d.ts new file mode 100644 index 00000000..5bc9ae30 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.command.MultipleCommandAlias.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace command { + // @ts-ignore + class MultipleCommandAlias extends org.bukkit.command.Command { + // @ts-ignore + constructor(name: string, commands: org.bukkit.command.Command) + /** + * Gets the commands associated with the multi-command alias. + */ + // @ts-ignore + public getCommands(): org.bukkit.command.Command[]; + // @ts-ignore + public execute(sender: org.bukkit.command.CommandSender, commandLabel: string, args: string): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.command.PluginCommand.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.command.PluginCommand.d.ts new file mode 100644 index 00000000..10fa4a18 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.command.PluginCommand.d.ts @@ -0,0 +1,62 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace command { + // @ts-ignore + class PluginCommand extends org.bukkit.command.Command implements org.bukkit.command.PluginIdentifiableCommand { + // @ts-ignore + constructor(name: string, owner: org.bukkit.plugin.Plugin) + /** + * Executes the command, returning its success + */ + // @ts-ignore + public execute(sender: org.bukkit.command.CommandSender, commandLabel: string, args: string): boolean; + /** + * Sets the {@link CommandExecutor} to run when parsing this command + */ + // @ts-ignore + public setExecutor(executor: org.bukkit.command.CommandExecutor): void; + /** + * Gets the {@link CommandExecutor} associated with this command + */ + // @ts-ignore + public getExecutor(): org.bukkit.command.CommandExecutor; + /** + * Sets the {@link TabCompleter} to run when tab-completing this command. + *

+ * If no TabCompleter is specified, and the command's executor implements + * TabCompleter, then the executor will be used for tab completion. + */ + // @ts-ignore + public setTabCompleter(completer: org.bukkit.command.TabCompleter): void; + /** + * Gets the {@link TabCompleter} associated with this command. + */ + // @ts-ignore + public getTabCompleter(): org.bukkit.command.TabCompleter; + /** + * Gets the owner of this PluginCommand + */ + // @ts-ignore + public getPlugin(): org.bukkit.plugin.Plugin; + /** + * {@inheritDoc} + *

+ * Delegates to the tab completer if present. + *

+ * If it is not present or returns null, will delegate to the current + * command executor if it implements {@link TabCompleter}. If a non-null + * list has not been found, will default to standard player name + * completion in {@link + * Command#tabComplete(CommandSender, String, String[])}. + *

+ * This method does not consider permissions. + */ + // @ts-ignore + public tabComplete(sender: org.bukkit.command.CommandSender, alias: string, args: string): java.util.List; + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.command.PluginCommandYamlParser.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.command.PluginCommandYamlParser.d.ts new file mode 100644 index 00000000..861e42a9 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.command.PluginCommandYamlParser.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace command { + // @ts-ignore + class PluginCommandYamlParser extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static parse(plugin: org.bukkit.plugin.Plugin): java.util.List; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.command.PluginIdentifiableCommand.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.command.PluginIdentifiableCommand.d.ts new file mode 100644 index 00000000..f839e69d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.command.PluginIdentifiableCommand.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace command { + // @ts-ignore + interface PluginIdentifiableCommand { + /** + * Gets the owner of this PluginIdentifiableCommand. + */ + // @ts-ignore + getPlugin(): org.bukkit.plugin.Plugin; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.command.ProxiedCommandSender.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.command.ProxiedCommandSender.d.ts new file mode 100644 index 00000000..e2794a90 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.command.ProxiedCommandSender.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace command { + // @ts-ignore + interface ProxiedCommandSender extends org.bukkit.command.CommandSender { + /** + * Returns the CommandSender which triggered this proxied command + */ + // @ts-ignore + getCaller(): org.bukkit.command.CommandSender; + /** + * Returns the CommandSender which is being used to call the command + */ + // @ts-ignore + getCallee(): org.bukkit.command.CommandSender; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.command.RemoteConsoleCommandSender.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.command.RemoteConsoleCommandSender.d.ts new file mode 100644 index 00000000..b3ff96b9 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.command.RemoteConsoleCommandSender.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace command { + // @ts-ignore + interface RemoteConsoleCommandSender extends org.bukkit.command.CommandSender { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.command.SimpleCommandMap.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.command.SimpleCommandMap.d.ts new file mode 100644 index 00000000..c5b6e587 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.command.SimpleCommandMap.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace command { + // @ts-ignore + class SimpleCommandMap extends java.lang.Object implements org.bukkit.command.CommandMap { + // @ts-ignore + constructor(server: org.bukkit.Server) + // @ts-ignore + protected knownCommands: java.util.Map; + // @ts-ignore + public setFallbackCommands(): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public registerAll(fallbackPrefix: string, commands: java.util.List): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public register(fallbackPrefix: string, command: org.bukkit.command.Command): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public register(label: string, fallbackPrefix: string, command: org.bukkit.command.Command): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public dispatch(sender: org.bukkit.command.CommandSender, commandLine: string): boolean; + // @ts-ignore + public clearCommands(): void; + // @ts-ignore + public getCommand(name: string): org.bukkit.command.Command; + // @ts-ignore + public tabComplete(sender: org.bukkit.command.CommandSender, cmdLine: string): java.util.List; + // @ts-ignore + public tabComplete(sender: org.bukkit.command.CommandSender, cmdLine: string, location: org.bukkit.Location): java.util.List; + // @ts-ignore + public getCommands(): java.util.Collection; + // @ts-ignore + public registerServerAliases(): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.command.TabCompleter.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.command.TabCompleter.d.ts new file mode 100644 index 00000000..232f4f96 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.command.TabCompleter.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace command { + // @ts-ignore + interface TabCompleter { + /** + * Requests a list of possible completions for a command argument. + */ + // @ts-ignore + onTabComplete(sender: org.bukkit.command.CommandSender, command: org.bukkit.command.Command, alias: string, args: string): java.util.List; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.command.TabExecutor.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.command.TabExecutor.d.ts new file mode 100644 index 00000000..e2306ade --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.command.TabExecutor.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace command { + // @ts-ignore + interface TabExecutor extends org.bukkit.command.TabCompleter, org.bukkit.command.CommandExecutor { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.command.defaults.BukkitCommand.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.command.defaults.BukkitCommand.d.ts new file mode 100644 index 00000000..892f1aab --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.command.defaults.BukkitCommand.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace command { + namespace defaults { + // @ts-ignore + abstract class BukkitCommand extends org.bukkit.command.Command { + // @ts-ignore + constructor(name: string) + // @ts-ignore + constructor(name: string, description: string, usageMessage: string, aliases: java.util.List) + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.command.defaults.HelpCommand.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.command.defaults.HelpCommand.d.ts new file mode 100644 index 00000000..2c0954e4 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.command.defaults.HelpCommand.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace command { + namespace defaults { + // @ts-ignore + class HelpCommand extends org.bukkit.command.defaults.BukkitCommand { + // @ts-ignore + constructor() + // @ts-ignore + public execute(sender: org.bukkit.command.CommandSender, currentAlias: string, args: string): boolean; + // @ts-ignore + public tabComplete(sender: org.bukkit.command.CommandSender, alias: string, args: string): java.util.List; + // @ts-ignore + protected findPossibleMatches(searchString: string): org.bukkit.help.HelpTopic; + /** + * Computes the Dameraur-Levenshtein Distance between two strings. Adapted + * from the algorithm at Wikipedia: Damerau–Levenshtein distance + */ + // @ts-ignore + protected static damerauLevenshteinDistance(s1: string, s2: string): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.command.defaults.PluginsCommand.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.command.defaults.PluginsCommand.d.ts new file mode 100644 index 00000000..a051f97f --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.command.defaults.PluginsCommand.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace command { + namespace defaults { + // @ts-ignore + class PluginsCommand extends org.bukkit.command.defaults.BukkitCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: org.bukkit.command.CommandSender, currentAlias: string, args: string): boolean; + // @ts-ignore + public tabComplete(sender: org.bukkit.command.CommandSender, alias: string, args: string): java.util.List; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.command.defaults.ReloadCommand.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.command.defaults.ReloadCommand.d.ts new file mode 100644 index 00000000..7c9c8ec5 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.command.defaults.ReloadCommand.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace command { + namespace defaults { + // @ts-ignore + class ReloadCommand extends org.bukkit.command.defaults.BukkitCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: org.bukkit.command.CommandSender, currentAlias: string, args: string): boolean; + // @ts-ignore + public tabComplete(sender: org.bukkit.command.CommandSender, alias: string, args: string): java.util.List; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.command.defaults.TimingsCommand.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.command.defaults.TimingsCommand.d.ts new file mode 100644 index 00000000..1e502613 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.command.defaults.TimingsCommand.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace command { + namespace defaults { + // @ts-ignore + class TimingsCommand extends org.bukkit.command.defaults.BukkitCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: org.bukkit.command.CommandSender, currentAlias: string, args: string): boolean; + // @ts-ignore + public tabComplete(sender: org.bukkit.command.CommandSender, alias: string, args: string): java.util.List; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.command.defaults.VersionCommand.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.command.defaults.VersionCommand.d.ts new file mode 100644 index 00000000..5d90d717 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.command.defaults.VersionCommand.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace command { + namespace defaults { + // @ts-ignore + class VersionCommand extends org.bukkit.command.defaults.BukkitCommand { + // @ts-ignore + constructor(name: string) + // @ts-ignore + public execute(sender: org.bukkit.command.CommandSender, currentAlias: string, args: string): boolean; + // @ts-ignore + public tabComplete(sender: org.bukkit.command.CommandSender, alias: string, args: string): java.util.List; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.configuration.Configuration.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.configuration.Configuration.d.ts new file mode 100644 index 00000000..28db496a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.configuration.Configuration.d.ts @@ -0,0 +1,69 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace configuration { + // @ts-ignore + interface Configuration extends org.bukkit.configuration.ConfigurationSection { + /** + * Sets the default value of the given path as provided. + *

+ * If no source {@link Configuration} was provided as a default + * collection, then a new {@link MemoryConfiguration} will be created to + * hold the new default value. + *

+ * If value is null, the value will be removed from the default + * Configuration source. + */ + // @ts-ignore + addDefault(path: string, value: java.lang.Object): void; + /** + * Sets the default values of the given paths as provided. + *

+ * If no source {@link Configuration} was provided as a default + * collection, then a new {@link MemoryConfiguration} will be created to + * hold the new default values. + */ + // @ts-ignore + addDefaults(defaults: java.util.Map): void; + /** + * Sets the default values of the given paths as provided. + *

+ * If no source {@link Configuration} was provided as a default + * collection, then a new {@link MemoryConfiguration} will be created to + * hold the new default value. + *

+ * This method will not hold a reference to the specified Configuration, + * nor will it automatically update if that Configuration ever changes. If + * you require this, you should set the default source with {@link + * #setDefaults(org.bukkit.configuration.Configuration)}. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + setDefaults(defaults: org.bukkit.configuration.Configuration): void; + /** + * Gets the source {@link Configuration} for this configuration. + *

+ * If no configuration source was set, but default values were added, then + * a {@link MemoryConfiguration} will be returned. If no source was set + * and no defaults were set, then this method will return null. + */ + // @ts-ignore + getDefaults(): org.bukkit.configuration.Configuration; + /** + * Gets the {@link ConfigurationOptions} for this {@link Configuration}. + *

+ * All setters through this method are chainable. + */ + // @ts-ignore + options(): org.bukkit.configuration.ConfigurationOptions; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.configuration.ConfigurationOptions.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.configuration.ConfigurationOptions.d.ts new file mode 100644 index 00000000..7465ed1f --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.configuration.ConfigurationOptions.d.ts @@ -0,0 +1,63 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace configuration { + // @ts-ignore + class ConfigurationOptions extends java.lang.Object { + // @ts-ignore + constructor(configuration: org.bukkit.configuration.Configuration) + /** + * Returns the {@link Configuration} that this object is responsible for. + */ + // @ts-ignore + public configuration(): org.bukkit.configuration.Configuration; + /** + * Gets the char that will be used to separate {@link + * ConfigurationSection}s + *

+ * This value does not affect how the {@link Configuration} is stored, + * only in how you access the data. The default value is '.'. + */ + // @ts-ignore + public pathSeparator(): string; + /** + * Sets the char that will be used to separate {@link + * ConfigurationSection}s + *

+ * This value does not affect how the {@link Configuration} is stored, + * only in how you access the data. The default value is '.'. + */ + // @ts-ignore + public pathSeparator(value: string): org.bukkit.configuration.ConfigurationOptions; + /** + * Checks if the {@link Configuration} should copy values from its default + * {@link Configuration} directly. + *

+ * If this is true, all values in the default Configuration will be + * directly copied, making it impossible to distinguish between values + * that were set and values that are provided by default. As a result, + * {@link ConfigurationSection#contains(java.lang.String)} will always + * return the same value as {@link + * ConfigurationSection#isSet(java.lang.String)}. The default value is + * false. + */ + // @ts-ignore + public copyDefaults(): boolean; + /** + * Sets if the {@link Configuration} should copy values from its default + * {@link Configuration} directly. + *

+ * If this is true, all values in the default Configuration will be + * directly copied, making it impossible to distinguish between values + * that were set and values that are provided by default. As a result, + * {@link ConfigurationSection#contains(java.lang.String)} will always + * return the same value as {@link + * ConfigurationSection#isSet(java.lang.String)}. The default value is + * false. + */ + // @ts-ignore + public copyDefaults(value: boolean): org.bukkit.configuration.ConfigurationOptions; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.configuration.ConfigurationSection.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.configuration.ConfigurationSection.d.ts new file mode 100644 index 00000000..ad50a736 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.configuration.ConfigurationSection.d.ts @@ -0,0 +1,665 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace configuration { + // @ts-ignore + interface ConfigurationSection { + /** + * Gets a set containing all keys in this section. + *

+ * If deep is set to true, then this will contain all the keys within any + * child {@link ConfigurationSection}s (and their children, etc). These + * will be in a valid path notation for you to use. + *

+ * If deep is set to false, then this will contain only the keys of any + * direct children, and not their own children. + */ + // @ts-ignore + getKeys(deep: boolean): java.util.Set; + /** + * Gets a Map containing all keys and their values for this section. + *

+ * If deep is set to true, then this will contain all the keys and values + * within any child {@link ConfigurationSection}s (and their children, + * etc). These keys will be in a valid path notation for you to use. + *

+ * If deep is set to false, then this will contain only the keys and + * values of any direct children, and not their own children. + */ + // @ts-ignore + getValues(deep: boolean): 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. + */ + // @ts-ignore + contains(path: string): boolean; + /** + * Checks if this {@link ConfigurationSection} contains the given path. + *

+ * If the value for the requested path does not exist, the boolean parameter + * of true has been specified, a default value for the path exists, this + * will return true. + *

+ * If a boolean parameter of false has been specified, true will only be + * returned if there is a set value for the specified path. + */ + // @ts-ignore + contains(path: string, ignoreDefault: boolean): boolean; + /** + * Checks if this {@link ConfigurationSection} has a value set for the + * given path. + *

+ * If the value for the requested path does not exist but a default value + * has been specified, this will still return false. + */ + // @ts-ignore + isSet(path: string): boolean; + /** + * Gets the path of this {@link ConfigurationSection} from its root {@link + * Configuration} + *

+ * For any {@link Configuration} themselves, this will return an empty + * string. + *

+ * 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. + *

+ * 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()}. + */ + // @ts-ignore + getCurrentPath(): string; + /** + * Gets the name of this individual {@link ConfigurationSection}, in the + * path. + *

+ * This will always be the final part of {@link #getCurrentPath()}, unless + * the section is orphaned. + */ + // @ts-ignore + getName(): string; + /** + * Gets the root {@link Configuration} that contains this {@link + * ConfigurationSection} + *

+ * For any {@link Configuration} themselves, this will return its own + * object. + *

+ * 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. + */ + // @ts-ignore + getRoot(): org.bukkit.configuration.Configuration; + /** + * Gets the parent {@link ConfigurationSection} that directly contains + * this {@link ConfigurationSection}. + *

+ * For any {@link Configuration} themselves, this will return null. + *

+ * 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. + */ + // @ts-ignore + getParent(): org.bukkit.configuration.ConfigurationSection; + /** + * Gets the requested Object by path. + *

+ * If the Object does not exist but a default value has been specified, + * this will return the default value. If the Object does not exist and no + * default value was specified, this will return null. + */ + // @ts-ignore + get(path: string): java.lang.Object; + /** + * Gets the requested Object by path, returning a default value if not + * found. + *

+ * If the Object does not exist then the specified default value will + * returned regardless of if a default has been identified in the root + * {@link Configuration}. + */ + // @ts-ignore + get(path: string, def: java.lang.Object): java.lang.Object; + /** + * Sets the specified path to the given value. + *

+ * If value is null, the entry will be removed. Any existing entry will be + * replaced, regardless of what the new value is. + *

+ * Some implementations may have limitations on what you may store. See + * their individual javadocs for details. No implementations should allow + * you to store {@link Configuration}s or {@link ConfigurationSection}s, + * please use {@link #createSection(java.lang.String)} for that. + */ + // @ts-ignore + set(path: string, value: java.lang.Object): void; + /** + * Creates an empty {@link ConfigurationSection} at the specified path. + *

+ * Any value that was previously set at this path will be overwritten. If + * the previous value was itself a {@link ConfigurationSection}, it will + * be orphaned. + */ + // @ts-ignore + createSection(path: string): org.bukkit.configuration.ConfigurationSection; + /** + * Creates a {@link ConfigurationSection} at the specified path, with + * specified values. + *

+ * Any value that was previously set at this path will be overwritten. If + * the previous value was itself a {@link ConfigurationSection}, it will + * be orphaned. + */ + // @ts-ignore + createSection(path: string, map: java.util.Map): org.bukkit.configuration.ConfigurationSection; + /** + * Gets the requested String by path. + *

+ * If the String does not exist but a default value has been specified, + * this will return the default value. If the String does not exist and no + * default value was specified, this will return null. + */ + // @ts-ignore + getString(path: string): string; + /** + * Gets the requested String by path, returning a default value if not + * found. + *

+ * If the String does not exist then the specified default value will + * returned regardless of if a default has been identified in the root + * {@link Configuration}. + */ + // @ts-ignore + getString(path: string, def: string): string; + /** + * Checks if the specified path is a String. + *

+ * If the path exists but is not a String, this will return false. If the + * path does not exist, this will return false. If the path does not exist + * but a default value has been specified, this will check if that default + * value is a String and return appropriately. + */ + // @ts-ignore + isString(path: string): boolean; + /** + * Gets the requested int by path. + *

+ * If the int does not exist but a default value has been specified, this + * will return the default value. If the int does not exist and no default + * value was specified, this will return 0. + */ + // @ts-ignore + getInt(path: string): number; + /** + * Gets the requested int by path, returning a default value if not found. + *

+ * If the int does not exist then the specified default value will + * returned regardless of if a default has been identified in the root + * {@link Configuration}. + */ + // @ts-ignore + getInt(path: string, def: number): number; + /** + * Checks if the specified path is an int. + *

+ * If the path exists but is not a int, this will return false. If the + * path does not exist, this will return false. If the path does not exist + * but a default value has been specified, this will check if that default + * value is a int and return appropriately. + */ + // @ts-ignore + isInt(path: string): boolean; + /** + * Gets the requested boolean by path. + *

+ * If the boolean does not exist but a default value has been specified, + * this will return the default value. If the boolean does not exist and + * no default value was specified, this will return false. + */ + // @ts-ignore + getBoolean(path: string): boolean; + /** + * Gets the requested boolean by path, returning a default value if not + * found. + *

+ * If the boolean does not exist then the specified default value will + * returned regardless of if a default has been identified in the root + * {@link Configuration}. + */ + // @ts-ignore + getBoolean(path: string, def: boolean): boolean; + /** + * Checks if the specified path is a boolean. + *

+ * If the path exists but is not a boolean, this will return false. If the + * path does not exist, this will return false. If the path does not exist + * but a default value has been specified, this will check if that default + * value is a boolean and return appropriately. + */ + // @ts-ignore + isBoolean(path: string): boolean; + /** + * Gets the requested double by path. + *

+ * If the double does not exist but a default value has been specified, + * this will return the default value. If the double does not exist and no + * default value was specified, this will return 0. + */ + // @ts-ignore + getDouble(path: string): number; + /** + * Gets the requested double by path, returning a default value if not + * found. + *

+ * If the double does not exist then the specified default value will + * returned regardless of if a default has been identified in the root + * {@link Configuration}. + */ + // @ts-ignore + getDouble(path: string, def: number): number; + /** + * Checks if the specified path is a double. + *

+ * If the path exists but is not a double, this will return false. If the + * path does not exist, this will return false. If the path does not exist + * but a default value has been specified, this will check if that default + * value is a double and return appropriately. + */ + // @ts-ignore + isDouble(path: string): boolean; + /** + * Gets the requested long by path. + *

+ * If the long does not exist but a default value has been specified, this + * will return the default value. If the long does not exist and no + * default value was specified, this will return 0. + */ + // @ts-ignore + getLong(path: string): number; + /** + * Gets the requested long by path, returning a default value if not + * found. + *

+ * If the long does not exist then the specified default value will + * returned regardless of if a default has been identified in the root + * {@link Configuration}. + */ + // @ts-ignore + getLong(path: string, def: number): number; + /** + * Checks if the specified path is a long. + *

+ * If the path exists but is not a long, this will return false. If the + * path does not exist, this will return false. If the path does not exist + * but a default value has been specified, this will check if that default + * value is a long and return appropriately. + */ + // @ts-ignore + isLong(path: string): boolean; + /** + * Gets the requested List by path. + *

+ * If the List does not exist but a default value has been specified, this + * will return the default value. If the List does not exist and no + * default value was specified, this will return null. + */ + // @ts-ignore + getList(path: string): java.util.List; + /** + * Gets the requested List by path, returning a default value if not + * found. + *

+ * If the List does not exist then the specified default value will + * returned regardless of if a default has been identified in the root + * {@link Configuration}. + */ + // @ts-ignore + getList(path: string, def: java.util.List): java.util.List; + /** + * Checks if the specified path is a List. + *

+ * If the path exists but is not a List, this will return false. If the + * path does not exist, this will return false. If the path does not exist + * but a default value has been specified, this will check if that default + * value is a List and return appropriately. + */ + // @ts-ignore + isList(path: string): boolean; + /** + * Gets the requested List of String by path. + *

+ * If the List does not exist but a default value has been specified, this + * will return the default value. If the List does not exist and no + * default value was specified, this will return an empty List. + *

+ * This method will attempt to cast any values into a String if possible, + * but may miss any values out if they are not compatible. + */ + // @ts-ignore + getStringList(path: string): java.util.List; + /** + * Gets the requested List of Integer by path. + *

+ * If the List does not exist but a default value has been specified, this + * will return the default value. If the List does not exist and no + * default value was specified, this will return an empty List. + *

+ * This method will attempt to cast any values into a Integer if possible, + * but may miss any values out if they are not compatible. + */ + // @ts-ignore + getIntegerList(path: string): java.util.List; + /** + * Gets the requested List of Boolean by path. + *

+ * If the List does not exist but a default value has been specified, this + * will return the default value. If the List does not exist and no + * default value was specified, this will return an empty List. + *

+ * This method will attempt to cast any values into a Boolean if possible, + * but may miss any values out if they are not compatible. + */ + // @ts-ignore + getBooleanList(path: string): java.util.List; + /** + * Gets the requested List of Double by path. + *

+ * If the List does not exist but a default value has been specified, this + * will return the default value. If the List does not exist and no + * default value was specified, this will return an empty List. + *

+ * This method will attempt to cast any values into a Double if possible, + * but may miss any values out if they are not compatible. + */ + // @ts-ignore + getDoubleList(path: string): java.util.List; + /** + * Gets the requested List of Float by path. + *

+ * If the List does not exist but a default value has been specified, this + * will return the default value. If the List does not exist and no + * default value was specified, this will return an empty List. + *

+ * This method will attempt to cast any values into a Float if possible, + * but may miss any values out if they are not compatible. + */ + // @ts-ignore + getFloatList(path: string): java.util.List; + /** + * Gets the requested List of Long by path. + *

+ * If the List does not exist but a default value has been specified, this + * will return the default value. If the List does not exist and no + * default value was specified, this will return an empty List. + *

+ * This method will attempt to cast any values into a Long if possible, + * but may miss any values out if they are not compatible. + */ + // @ts-ignore + getLongList(path: string): java.util.List; + /** + * Gets the requested List of Byte by path. + *

+ * If the List does not exist but a default value has been specified, this + * will return the default value. If the List does not exist and no + * default value was specified, this will return an empty List. + *

+ * This method will attempt to cast any values into a Byte if possible, + * but may miss any values out if they are not compatible. + */ + // @ts-ignore + getByteList(path: string): java.util.List; + /** + * Gets the requested List of Character by path. + *

+ * If the List does not exist but a default value has been specified, this + * will return the default value. If the List does not exist and no + * default value was specified, this will return an empty List. + *

+ * This method will attempt to cast any values into a Character if + * possible, but may miss any values out if they are not compatible. + */ + // @ts-ignore + getCharacterList(path: string): java.util.List; + /** + * Gets the requested List of Short by path. + *

+ * If the List does not exist but a default value has been specified, this + * will return the default value. If the List does not exist and no + * default value was specified, this will return an empty List. + *

+ * This method will attempt to cast any values into a Short if possible, + * but may miss any values out if they are not compatible. + */ + // @ts-ignore + getShortList(path: string): java.util.List; + /** + * Gets the requested List of Maps by path. + *

+ * If the List does not exist but a default value has been specified, this + * will return the default value. If the List does not exist and no + * default value was specified, this will return an empty List. + *

+ * This method will attempt to cast any values into a Map if possible, but + * may miss any values out if they are not compatible. + */ + // @ts-ignore + getMapList(path: string): 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 + * will return the default value. If the Object does not exist and no + * default value was specified, this will return null. + * Note: For example #getObject(path, String.class) is not + * equivalent to {@link #getString(String) #getString(path)} because + * {@link #getString(String) #getString(path)} converts internally all + * Objects to Strings. However, #getObject(path, Boolean.class) is + * equivalent to {@link #getBoolean(String) #getBoolean(path)} for example. + */ + // @ts-ignore + getObject(path: string, clazz: java.lang.Class): java.lang.Object; + /** + * Gets the requested object at the given path, returning a default value if + * not found + * If the Object does not exist then the specified default value will + * returned regardless of if a default has been identified in the root + * {@link Configuration}. + * Note: For example #getObject(path, String.class, def) is + * not equivalent to + * {@link #getString(String, String) #getString(path, def)} because + * {@link #getString(String, String) #getString(path, def)} converts + * internally all Objects to Strings. However, #getObject(path, + * Boolean.class, def) is equivalent to {@link #getBoolean(String, boolean) #getBoolean(path, + * def)} for example. + */ + // @ts-ignore + getObject(path: string, clazz: java.lang.Class, def: java.lang.Object): java.lang.Object; + /** + * Gets the requested {@link ConfigurationSerializable} object at the given + * path. + * If the Object does not exist but a default value has been specified, this + * will return the default value. If the Object does not exist and no + * default value was specified, this will return null. + */ + // @ts-ignore + getSerializable(path: string, clazz: java.lang.Class): org.bukkit.configuration.serialization.ConfigurationSerializable; + /** + * Gets the requested {@link ConfigurationSerializable} object at the given + * path, returning a default value if not found + * If the Object does not exist then the specified default value will + * returned regardless of if a default has been identified in the root + * {@link Configuration}. + */ + // @ts-ignore + getSerializable(path: string, clazz: java.lang.Class, def: org.bukkit.configuration.serialization.ConfigurationSerializable): org.bukkit.configuration.serialization.ConfigurationSerializable; + /** + * Gets the requested Vector by path. + *

+ * If the Vector does not exist but a default value has been specified, + * this will return the default value. If the Vector does not exist and no + * default value was specified, this will return null. + */ + // @ts-ignore + getVector(path: string): org.bukkit.util.Vector; + /** + * Gets the requested {@link Vector} by path, returning a default value if + * not found. + *

+ * If the Vector does not exist then the specified default value will + * returned regardless of if a default has been identified in the root + * {@link Configuration}. + */ + // @ts-ignore + getVector(path: string, def: org.bukkit.util.Vector): org.bukkit.util.Vector; + /** + * Checks if the specified path is a Vector. + *

+ * If the path exists but is not a Vector, this will return false. If the + * path does not exist, this will return false. If the path does not exist + * but a default value has been specified, this will check if that default + * value is a Vector and return appropriately. + */ + // @ts-ignore + isVector(path: string): boolean; + /** + * Gets the requested OfflinePlayer by path. + *

+ * If the OfflinePlayer does not exist but a default value has been + * specified, this will return the default value. If the OfflinePlayer + * does not exist and no default value was specified, this will return + * null. + */ + // @ts-ignore + getOfflinePlayer(path: string): org.bukkit.OfflinePlayer; + /** + * Gets the requested {@link OfflinePlayer} by path, returning a default + * value if not found. + *

+ * If the OfflinePlayer does not exist then the specified default value + * will returned regardless of if a default has been identified in the + * root {@link Configuration}. + */ + // @ts-ignore + getOfflinePlayer(path: string, def: org.bukkit.OfflinePlayer): org.bukkit.OfflinePlayer; + /** + * Checks if the specified path is an OfflinePlayer. + *

+ * If the path exists but is not a OfflinePlayer, this will return false. + * If the path does not exist, this will return false. If the path does + * not exist but a default value has been specified, this will check if + * that default value is a OfflinePlayer and return appropriately. + */ + // @ts-ignore + isOfflinePlayer(path: string): boolean; + /** + * Gets the requested ItemStack by path. + *

+ * If the ItemStack does not exist but a default value has been specified, + * this will return the default value. If the ItemStack does not exist and + * no default value was specified, this will return null. + */ + // @ts-ignore + getItemStack(path: string): org.bukkit.inventory.ItemStack; + /** + * Gets the requested {@link ItemStack} by path, returning a default value + * if not found. + *

+ * If the ItemStack does not exist then the specified default value will + * returned regardless of if a default has been identified in the root + * {@link Configuration}. + */ + // @ts-ignore + getItemStack(path: string, def: org.bukkit.inventory.ItemStack): org.bukkit.inventory.ItemStack; + /** + * Checks if the specified path is an ItemStack. + *

+ * If the path exists but is not a ItemStack, this will return false. If + * the path does not exist, this will return false. If the path does not + * exist but a default value has been specified, this will check if that + * default value is a ItemStack and return appropriately. + */ + // @ts-ignore + isItemStack(path: string): boolean; + /** + * Gets the requested Color by path. + *

+ * If the Color does not exist but a default value has been specified, + * this will return the default value. If the Color does not exist and no + * default value was specified, this will return null. + */ + // @ts-ignore + getColor(path: string): org.bukkit.Color; + /** + * Gets the requested {@link Color} by path, returning a default value if + * not found. + *

+ * If the Color does not exist then the specified default value will + * returned regardless of if a default has been identified in the root + * {@link Configuration}. + */ + // @ts-ignore + getColor(path: string, def: org.bukkit.Color): org.bukkit.Color; + /** + * Checks if the specified path is a Color. + *

+ * If the path exists but is not a Color, this will return false. If the + * path does not exist, this will return false. If the path does not exist + * but a default value has been specified, this will check if that default + * value is a Color and return appropriately. + */ + // @ts-ignore + isColor(path: string): boolean; + /** + * Gets the requested ConfigurationSection by path. + *

+ * If the ConfigurationSection does not exist but a default value has been + * specified, this will return the default value. If the + * ConfigurationSection does not exist and no default value was specified, + * this will return null. + */ + // @ts-ignore + getConfigurationSection(path: string): org.bukkit.configuration.ConfigurationSection; + /** + * Checks if the specified path is a ConfigurationSection. + *

+ * If the path exists but is not a ConfigurationSection, this will return + * false. If the path does not exist, this will return false. If the path + * does not exist but a default value has been specified, this will check + * if that default value is a ConfigurationSection and return + * appropriately. + */ + // @ts-ignore + isConfigurationSection(path: string): boolean; + /** + * Gets the equivalent {@link ConfigurationSection} from the default + * {@link Configuration} defined in {@link #getRoot()}. + *

+ * If the root contains no defaults, or the defaults doesn't contain a + * value for this path, or the value at this path is not a {@link + * ConfigurationSection} then this will return null. + */ + // @ts-ignore + getDefaultSection(): org.bukkit.configuration.ConfigurationSection; + /** + * Sets the default value in the root at the given path as provided. + *

+ * If no source {@link Configuration} was provided as a default + * collection, then a new {@link MemoryConfiguration} will be created to + * hold the new default value. + *

+ * If value is null, the value will be removed from the default + * Configuration source. + *

+ * If the value as returned by {@link #getDefaultSection()} is null, then + * this will create a new section at the path, replacing anything that may + * have existed there previously. + */ + // @ts-ignore + addDefault(path: string, value: java.lang.Object): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.configuration.InvalidConfigurationException.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.configuration.InvalidConfigurationException.d.ts new file mode 100644 index 00000000..f25ee516 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.configuration.InvalidConfigurationException.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace configuration { + // @ts-ignore + class InvalidConfigurationException extends java.lang.Exception { + /** + * Creates a new instance of InvalidConfigurationException without a + * message or cause. + */ + // @ts-ignore + constructor() + /** + * Constructs an instance of InvalidConfigurationException with the + * specified message. + */ + // @ts-ignore + constructor(msg: string) + /** + * Constructs an instance of InvalidConfigurationException with the + * specified cause. + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + /** + * Constructs an instance of InvalidConfigurationException with the + * specified message and cause. + */ + // @ts-ignore + constructor(msg: string, cause: java.lang.Throwable) + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.configuration.MemoryConfiguration.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.configuration.MemoryConfiguration.d.ts new file mode 100644 index 00000000..4e1cef32 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.configuration.MemoryConfiguration.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace configuration { + // @ts-ignore + class MemoryConfiguration extends org.bukkit.configuration.MemorySection implements org.bukkit.configuration.Configuration { + /** + * Creates an empty {@link MemoryConfiguration} with no default values. + */ + // @ts-ignore + constructor() + /** + * Creates an empty {@link MemoryConfiguration} using the specified {@link + * Configuration} as a source for all default values. + */ + // @ts-ignore + constructor(defaults: org.bukkit.configuration.Configuration) + // @ts-ignore + protected defaults: org.bukkit.configuration.Configuration; + // @ts-ignore + public addDefault(path: string, value: java.lang.Object): void; + // @ts-ignore + public addDefaults(defaults: java.util.Map): void; + // @ts-ignore + public addDefaults(defaults: org.bukkit.configuration.Configuration): void; + // @ts-ignore + public setDefaults(defaults: org.bukkit.configuration.Configuration): void; + // @ts-ignore + public getDefaults(): org.bukkit.configuration.Configuration; + // @ts-ignore + public getParent(): org.bukkit.configuration.ConfigurationSection; + // @ts-ignore + public options(): org.bukkit.configuration.MemoryConfigurationOptions; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.configuration.MemoryConfigurationOptions.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.configuration.MemoryConfigurationOptions.d.ts new file mode 100644 index 00000000..9a07bdf9 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.configuration.MemoryConfigurationOptions.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace configuration { + // @ts-ignore + class MemoryConfigurationOptions extends org.bukkit.configuration.ConfigurationOptions { + // @ts-ignore + constructor(configuration: org.bukkit.configuration.MemoryConfiguration) + // @ts-ignore + public configuration(): org.bukkit.configuration.MemoryConfiguration; + // @ts-ignore + public copyDefaults(value: boolean): org.bukkit.configuration.MemoryConfigurationOptions; + // @ts-ignore + public pathSeparator(value: string): org.bukkit.configuration.MemoryConfigurationOptions; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.configuration.MemorySection.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.configuration.MemorySection.d.ts new file mode 100644 index 00000000..15a32e37 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.configuration.MemorySection.d.ts @@ -0,0 +1,176 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace configuration { + // @ts-ignore + class MemorySection extends java.lang.Object implements org.bukkit.configuration.ConfigurationSection { + /** + * Creates an empty MemorySection for use as a root {@link Configuration} + * section. + *

+ * Note that calling this without being yourself a {@link Configuration} + * will throw an exception! + */ + // @ts-ignore + constructor() + /** + * Creates an empty MemorySection with the specified parent and path. + */ + // @ts-ignore + constructor(parent: org.bukkit.configuration.ConfigurationSection, path: string) + // @ts-ignore + public getKeys(deep: boolean): java.util.Set; + // @ts-ignore + public getValues(deep: boolean): java.util.Map; + // @ts-ignore + public contains(path: string): boolean; + // @ts-ignore + public contains(path: string, ignoreDefault: boolean): boolean; + // @ts-ignore + public isSet(path: string): boolean; + // @ts-ignore + public getCurrentPath(): string; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getRoot(): org.bukkit.configuration.Configuration; + // @ts-ignore + public getParent(): org.bukkit.configuration.ConfigurationSection; + // @ts-ignore + public addDefault(path: string, value: java.lang.Object): void; + // @ts-ignore + public getDefaultSection(): org.bukkit.configuration.ConfigurationSection; + // @ts-ignore + public set(path: string, value: java.lang.Object): void; + // @ts-ignore + public get(path: string): java.lang.Object; + // @ts-ignore + public get(path: string, def: java.lang.Object): java.lang.Object; + // @ts-ignore + public createSection(path: string): org.bukkit.configuration.ConfigurationSection; + // @ts-ignore + public createSection(path: string, map: java.util.Map): org.bukkit.configuration.ConfigurationSection; + // @ts-ignore + public getString(path: string): string; + // @ts-ignore + public getString(path: string, def: string): string; + // @ts-ignore + public isString(path: string): boolean; + // @ts-ignore + public getInt(path: string): number; + // @ts-ignore + public getInt(path: string, def: number): number; + // @ts-ignore + public isInt(path: string): boolean; + // @ts-ignore + public getBoolean(path: string): boolean; + // @ts-ignore + public getBoolean(path: string, def: boolean): boolean; + // @ts-ignore + public isBoolean(path: string): boolean; + // @ts-ignore + public getDouble(path: string): number; + // @ts-ignore + public getDouble(path: string, def: number): number; + // @ts-ignore + public isDouble(path: string): boolean; + // @ts-ignore + public getLong(path: string): number; + // @ts-ignore + public getLong(path: string, def: number): number; + // @ts-ignore + public isLong(path: string): boolean; + // @ts-ignore + public getList(path: string): java.util.List; + // @ts-ignore + public getList(path: string, def: java.util.List): java.util.List; + // @ts-ignore + public isList(path: string): boolean; + // @ts-ignore + public getStringList(path: string): java.util.List; + // @ts-ignore + public getIntegerList(path: string): java.util.List; + // @ts-ignore + public getBooleanList(path: string): java.util.List; + // @ts-ignore + public getDoubleList(path: string): java.util.List; + // @ts-ignore + public getFloatList(path: string): java.util.List; + // @ts-ignore + public getLongList(path: string): java.util.List; + // @ts-ignore + public getByteList(path: string): java.util.List; + // @ts-ignore + public getCharacterList(path: string): java.util.List; + // @ts-ignore + public getShortList(path: string): java.util.List; + // @ts-ignore + public getMapList(path: string): java.util.List; + // @ts-ignore + public getObject(path: string, clazz: java.lang.Class): java.lang.Object; + // @ts-ignore + public getObject(path: string, clazz: java.lang.Class, def: java.lang.Object): java.lang.Object; + // @ts-ignore + public getSerializable(path: string, clazz: java.lang.Class): org.bukkit.configuration.serialization.ConfigurationSerializable; + // @ts-ignore + public getSerializable(path: string, clazz: java.lang.Class, def: org.bukkit.configuration.serialization.ConfigurationSerializable): org.bukkit.configuration.serialization.ConfigurationSerializable; + // @ts-ignore + public getVector(path: string): org.bukkit.util.Vector; + // @ts-ignore + public getVector(path: string, def: org.bukkit.util.Vector): org.bukkit.util.Vector; + // @ts-ignore + public isVector(path: string): boolean; + // @ts-ignore + public getOfflinePlayer(path: string): org.bukkit.OfflinePlayer; + // @ts-ignore + public getOfflinePlayer(path: string, def: org.bukkit.OfflinePlayer): org.bukkit.OfflinePlayer; + // @ts-ignore + public isOfflinePlayer(path: string): boolean; + // @ts-ignore + public getItemStack(path: string): org.bukkit.inventory.ItemStack; + // @ts-ignore + public getItemStack(path: string, def: org.bukkit.inventory.ItemStack): org.bukkit.inventory.ItemStack; + // @ts-ignore + public isItemStack(path: string): boolean; + // @ts-ignore + public getColor(path: string): org.bukkit.Color; + // @ts-ignore + public getColor(path: string, def: org.bukkit.Color): org.bukkit.Color; + // @ts-ignore + public isColor(path: string): boolean; + // @ts-ignore + public getConfigurationSection(path: string): org.bukkit.configuration.ConfigurationSection; + // @ts-ignore + public isConfigurationSection(path: string): boolean; + // @ts-ignore + protected isPrimitiveWrapper(input: java.lang.Object): boolean; + // @ts-ignore + protected getDefault(path: string): java.lang.Object; + // @ts-ignore + protected mapChildrenKeys(output: java.util.Set, section: org.bukkit.configuration.ConfigurationSection, deep: boolean): void; + // @ts-ignore + protected mapChildrenValues(output: java.util.Map, section: org.bukkit.configuration.ConfigurationSection, deep: boolean): void; + /** + * Creates a full path to the given {@link ConfigurationSection} from its + * root {@link Configuration}. + *

+ * You may use this method for any given {@link ConfigurationSection}, not + * only {@link MemorySection}. + */ + // @ts-ignore + public static createPath(section: org.bukkit.configuration.ConfigurationSection, key: string): string; + /** + * Creates a relative path to the given {@link ConfigurationSection} from + * the given relative section. + *

+ * You may use this method for any given {@link ConfigurationSection}, not + * only {@link MemorySection}. + */ + // @ts-ignore + public static createPath(section: org.bukkit.configuration.ConfigurationSection, key: string, relativeTo: org.bukkit.configuration.ConfigurationSection): string; + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.configuration.file.FileConfiguration.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.configuration.file.FileConfiguration.d.ts new file mode 100644 index 00000000..fac109f9 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.configuration.file.FileConfiguration.d.ts @@ -0,0 +1,109 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace configuration { + namespace file { + // @ts-ignore + abstract class FileConfiguration extends org.bukkit.configuration.MemoryConfiguration { + /** + * Creates an empty {@link FileConfiguration} with no default values. + */ + // @ts-ignore + constructor() + /** + * Creates an empty {@link FileConfiguration} using the specified {@link + * Configuration} as a source for all default values. + */ + // @ts-ignore + constructor(defaults: org.bukkit.configuration.Configuration) + /** + * Saves this {@link FileConfiguration} to the specified location. + *

+ * If the file does not exist, it will be created. If already exists, it + * will be overwritten. If it cannot be overwritten or created, an + * exception will be thrown. + *

+ * This method will save using the system default encoding, or possibly + * using UTF8. + */ + // @ts-ignore + public save(file: java.io.File): void; + /** + * Saves this {@link FileConfiguration} to the specified location. + *

+ * If the file does not exist, it will be created. If already exists, it + * will be overwritten. If it cannot be overwritten or created, an + * exception will be thrown. + *

+ * This method will save using the system default encoding, or possibly + * using UTF8. + */ + // @ts-ignore + public save(file: string): void; + /** + * Saves this {@link FileConfiguration} to a string, and returns it. + */ + // @ts-ignore + public abstract saveToString(): string; + /** + * Loads this {@link FileConfiguration} from the specified location. + *

+ * All the values contained within this configuration will be removed, + * leaving only settings and defaults, and the new values will be loaded + * from the given file. + *

+ * If the file cannot be loaded for any reason, an exception will be + * thrown. + */ + // @ts-ignore + public load(file: java.io.File): void; + /** + * Loads this {@link FileConfiguration} from the specified reader. + *

+ * All the values contained within this configuration will be removed, + * leaving only settings and defaults, and the new values will be loaded + * from the given stream. + */ + // @ts-ignore + public load(reader: java.io.Reader): void; + /** + * Loads this {@link FileConfiguration} from the specified location. + *

+ * All the values contained within this configuration will be removed, + * leaving only settings and defaults, and the new values will be loaded + * from the given file. + *

+ * If the file cannot be loaded for any reason, an exception will be + * thrown. + */ + // @ts-ignore + public load(file: string): void; + /** + * Loads this {@link FileConfiguration} from the specified string, as + * opposed to from file. + *

+ * All the values contained within this configuration will be removed, + * leaving only settings and defaults, and the new values will be loaded + * from the given string. + *

+ * If the string is invalid in any way, an exception will be thrown. + */ + // @ts-ignore + public abstract loadFromString(contents: string): void; + /** + * Compiles the header for this {@link FileConfiguration} and returns the + * result. + *

+ * This will use the header from {@link #options()} -> {@link + * FileConfigurationOptions#header()}, respecting the rules of {@link + * FileConfigurationOptions#copyHeader()} if set. + */ + // @ts-ignore + protected abstract buildHeader(): string; + // @ts-ignore + public options(): org.bukkit.configuration.file.FileConfigurationOptions; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.configuration.file.FileConfigurationOptions.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.configuration.file.FileConfigurationOptions.d.ts new file mode 100644 index 00000000..3c8056d3 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.configuration.file.FileConfigurationOptions.d.ts @@ -0,0 +1,84 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace configuration { + namespace file { + // @ts-ignore + class FileConfigurationOptions extends org.bukkit.configuration.MemoryConfigurationOptions { + // @ts-ignore + constructor(configuration: org.bukkit.configuration.MemoryConfiguration) + // @ts-ignore + public configuration(): org.bukkit.configuration.file.FileConfiguration; + // @ts-ignore + public copyDefaults(value: boolean): org.bukkit.configuration.file.FileConfigurationOptions; + // @ts-ignore + public pathSeparator(value: string): org.bukkit.configuration.file.FileConfigurationOptions; + /** + * Gets the header that will be applied to the top of the saved output. + *

+ * This header will be commented out and applied directly at the top of + * the generated output of the {@link FileConfiguration}. It is not + * required to include a newline at the end of the header as it will + * automatically be applied, but you may include one if you wish for extra + * spacing. + *

+ * Null is a valid value which will indicate that no header is to be + * applied. The default value is null. + */ + // @ts-ignore + public header(): string; + /** + * Sets the header that will be applied to the top of the saved output. + *

+ * This header will be commented out and applied directly at the top of + * the generated output of the {@link FileConfiguration}. It is not + * required to include a newline at the end of the header as it will + * automatically be applied, but you may include one if you wish for extra + * spacing. + *

+ * Null is a valid value which will indicate that no header is to be + * applied. + */ + // @ts-ignore + public header(value: string): org.bukkit.configuration.file.FileConfigurationOptions; + /** + * Gets whether or not the header should be copied from a default source. + *

+ * If this is true, if a default {@link FileConfiguration} is passed to + * {@link + * FileConfiguration#setDefaults(org.bukkit.configuration.Configuration)} + * then upon saving it will use the header from that config, instead of + * the one provided here. + *

+ * If no default is set on the configuration, or the default is not of + * type FileConfiguration, or that config has no header ({@link #header()} + * returns null) then the header specified in this configuration will be + * used. + *

+ * Defaults to true. + */ + // @ts-ignore + public copyHeader(): boolean; + /** + * Sets whether or not the header should be copied from a default source. + *

+ * If this is true, if a default {@link FileConfiguration} is passed to + * {@link + * FileConfiguration#setDefaults(org.bukkit.configuration.Configuration)} + * then upon saving it will use the header from that config, instead of + * the one provided here. + *

+ * If no default is set on the configuration, or the default is not of + * type FileConfiguration, or that config has no header ({@link #header()} + * returns null) then the header specified in this configuration will be + * used. + *

+ * Defaults to true. + */ + // @ts-ignore + public copyHeader(value: boolean): org.bukkit.configuration.file.FileConfigurationOptions; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.configuration.file.YamlConfiguration.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.configuration.file.YamlConfiguration.d.ts new file mode 100644 index 00000000..06b2633b --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.configuration.file.YamlConfiguration.d.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace configuration { + namespace file { + // @ts-ignore + class YamlConfiguration extends org.bukkit.configuration.file.FileConfiguration { + // @ts-ignore + constructor() + // @ts-ignore + protected static COMMENT_PREFIX: string; + // @ts-ignore + protected static BLANK_CONFIG: string; + // @ts-ignore + public saveToString(): string; + // @ts-ignore + public loadFromString(contents: string): void; + // @ts-ignore + protected convertMapsToSections(input: java.util.Map, section: org.bukkit.configuration.ConfigurationSection): void; + // @ts-ignore + protected parseHeader(input: string): string; + // @ts-ignore + protected buildHeader(): string; + // @ts-ignore + public options(): org.bukkit.configuration.file.YamlConfigurationOptions; + /** + * Creates a new {@link YamlConfiguration}, loading from the given file. + *

+ * Any errors loading the Configuration will be logged and then ignored. + * If the specified input is not a valid config, a blank config will be + * returned. + *

+ * The encoding used may follow the system dependent default. + */ + // @ts-ignore + public static loadConfiguration(file: java.io.File): org.bukkit.configuration.file.YamlConfiguration; + /** + * Creates a new {@link YamlConfiguration}, loading from the given reader. + *

+ * Any errors loading the Configuration will be logged and then ignored. + * If the specified input is not a valid config, a blank config will be + * returned. + */ + // @ts-ignore + public static loadConfiguration(reader: java.io.Reader): org.bukkit.configuration.file.YamlConfiguration; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.configuration.file.YamlConfigurationOptions.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.configuration.file.YamlConfigurationOptions.d.ts new file mode 100644 index 00000000..fc3996a8 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.configuration.file.YamlConfigurationOptions.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace configuration { + namespace file { + // @ts-ignore + class YamlConfigurationOptions extends org.bukkit.configuration.file.FileConfigurationOptions { + // @ts-ignore + constructor(configuration: org.bukkit.configuration.file.YamlConfiguration) + // @ts-ignore + public configuration(): org.bukkit.configuration.file.YamlConfiguration; + // @ts-ignore + public copyDefaults(value: boolean): org.bukkit.configuration.file.YamlConfigurationOptions; + // @ts-ignore + public pathSeparator(value: string): org.bukkit.configuration.file.YamlConfigurationOptions; + // @ts-ignore + public header(value: string): org.bukkit.configuration.file.YamlConfigurationOptions; + // @ts-ignore + public copyHeader(value: boolean): org.bukkit.configuration.file.YamlConfigurationOptions; + /** + * Gets how much spaces should be used to indent each line. + *

+ * The minimum value this may be is 2, and the maximum is 9. + */ + // @ts-ignore + public indent(): number; + /** + * Sets how much spaces should be used to indent each line. + *

+ * The minimum value this may be is 2, and the maximum is 9. + */ + // @ts-ignore + public indent(value: number): org.bukkit.configuration.file.YamlConfigurationOptions; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.configuration.file.YamlConstructor.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.configuration.file.YamlConstructor.d.ts new file mode 100644 index 00000000..d99ef95d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.configuration.file.YamlConstructor.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace configuration { + namespace file { + // @ts-ignore + class YamlConstructor extends SafeConstructor { + // @ts-ignore + constructor() + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.configuration.file.YamlRepresenter.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.configuration.file.YamlRepresenter.d.ts new file mode 100644 index 00000000..dff35c2d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.configuration.file.YamlRepresenter.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace configuration { + namespace file { + // @ts-ignore + class YamlRepresenter extends Representer { + // @ts-ignore + constructor() + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.configuration.serialization.ConfigurationSerializable.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.configuration.serialization.ConfigurationSerializable.d.ts new file mode 100644 index 00000000..381ccf9b --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.configuration.serialization.ConfigurationSerializable.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace configuration { + namespace serialization { + // @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. + */ + // @ts-ignore + serialize(): java.util.Map; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.configuration.serialization.ConfigurationSerialization.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.configuration.serialization.ConfigurationSerialization.d.ts new file mode 100644 index 00000000..6b6b59c4 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.configuration.serialization.ConfigurationSerialization.d.ts @@ -0,0 +1,87 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace configuration { + namespace serialization { + // @ts-ignore + class ConfigurationSerialization extends java.lang.Object { + // @ts-ignore + constructor(clazz: java.lang.Class) + // @ts-ignore + public static SERIALIZED_TYPE_KEY: string; + // @ts-ignore + protected getMethod(name: string, isStatic: boolean): java.lang.reflect.Method; + // @ts-ignore + protected getConstructor(): java.lang.reflect.Constructor; + // @ts-ignore + protected deserializeViaMethod(method: java.lang.reflect.Method, args: java.util.Map): org.bukkit.configuration.serialization.ConfigurationSerializable; + // @ts-ignore + protected deserializeViaCtor(ctor: java.lang.reflect.Constructor, args: java.util.Map): org.bukkit.configuration.serialization.ConfigurationSerializable; + // @ts-ignore + public deserialize(args: java.util.Map): org.bukkit.configuration.serialization.ConfigurationSerializable; + /** + * Attempts to deserialize the given arguments into a new instance of the + * given class. + *

+ * The class must implement {@link ConfigurationSerializable}, including + * the extra methods as specified in the javadoc of + * ConfigurationSerializable. + *

+ * If a new instance could not be made, an example being the class not + * fully implementing the interface, null will be returned. + */ + // @ts-ignore + public static deserializeObject(args: java.util.Map, clazz: java.lang.Class): org.bukkit.configuration.serialization.ConfigurationSerializable; + /** + * Attempts to deserialize the given arguments into a new instance of the + * given class. + *

+ * The class must implement {@link ConfigurationSerializable}, including + * the extra methods as specified in the javadoc of + * ConfigurationSerializable. + *

+ * If a new instance could not be made, an example being the class not + * fully implementing the interface, null will be returned. + */ + // @ts-ignore + public static deserializeObject(args: java.util.Map): org.bukkit.configuration.serialization.ConfigurationSerializable; + /** + * Registers the given {@link ConfigurationSerializable} class by its + * alias + */ + // @ts-ignore + public static registerClass(clazz: java.lang.Class): void; + /** + * Registers the given alias to the specified {@link + * ConfigurationSerializable} class + */ + // @ts-ignore + public static registerClass(clazz: java.lang.Class, alias: string): void; + /** + * Unregisters the specified alias to a {@link ConfigurationSerializable} + */ + // @ts-ignore + public static unregisterClass(alias: string): void; + /** + * Unregisters any aliases for the specified {@link + * ConfigurationSerializable} class + */ + // @ts-ignore + public static unregisterClass(clazz: java.lang.Class): void; + /** + * Attempts to get a registered {@link ConfigurationSerializable} class by + * its alias + */ + // @ts-ignore + public static getClassByAlias(alias: string): java.lang.Class; + /** + * Gets the correct alias for the given {@link ConfigurationSerializable} + * class + */ + // @ts-ignore + public static getAlias(clazz: java.lang.Class): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.configuration.serialization.DelegateDeserialization.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.configuration.serialization.DelegateDeserialization.d.ts new file mode 100644 index 00000000..e49094e7 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.configuration.serialization.DelegateDeserialization.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace configuration { + namespace serialization { + // @ts-ignore + interface DelegateDeserialization { + /** + * Which class should be used as a delegate for this classes + * deserialization + */ + // @ts-ignore + value(): java.lang.Class; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.configuration.serialization.SerializableAs.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.configuration.serialization.SerializableAs.d.ts new file mode 100644 index 00000000..cf2debee --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.configuration.serialization.SerializableAs.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace configuration { + namespace serialization { + // @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". + */ + // @ts-ignore + value(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.conversations.BooleanPrompt.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.conversations.BooleanPrompt.d.ts new file mode 100644 index 00000000..267d498e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.conversations.BooleanPrompt.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace conversations { + // @ts-ignore + abstract class BooleanPrompt extends org.bukkit.conversations.ValidatingPrompt { + // @ts-ignore + constructor() + // @ts-ignore + protected isInputValid(context: org.bukkit.conversations.ConversationContext, input: string): boolean; + // @ts-ignore + protected acceptValidatedInput(context: org.bukkit.conversations.ConversationContext, input: string): org.bukkit.conversations.Prompt; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.conversations.Conversable.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.conversations.Conversable.d.ts new file mode 100644 index 00000000..bc575399 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.conversations.Conversable.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace conversations { + // @ts-ignore + interface Conversable { + /** + * Tests to see of a Conversable object is actively engaged in a + * conversation. + */ + // @ts-ignore + isConversing(): boolean; + /** + * Accepts input into the active conversation. If no conversation is in + * progress, this method does nothing. + */ + // @ts-ignore + acceptConversationInput(input: string): void; + /** + * Enters into a dialog with a Conversation object. + */ + // @ts-ignore + beginConversation(conversation: org.bukkit.conversations.Conversation): boolean; + /** + * Abandons an active conversation. + */ + // @ts-ignore + abandonConversation(conversation: org.bukkit.conversations.Conversation): void; + /** + * Abandons an active conversation. + */ + // @ts-ignore + abandonConversation(conversation: org.bukkit.conversations.Conversation, details: org.bukkit.conversations.ConversationAbandonedEvent): void; + /** + * Sends this sender a message raw + */ + // @ts-ignore + sendRawMessage(message: string): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.conversations.Conversation.ConversationState.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.conversations.Conversation.ConversationState.d.ts new file mode 100644 index 00000000..3e550d28 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.conversations.Conversation.ConversationState.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace conversations { + namespace Conversation { + // @ts-ignore + class ConversationState extends java.lang.Enum { + // @ts-ignore + public static UNSTARTED: org.bukkit.conversations.Conversation.ConversationState; + // @ts-ignore + public static STARTED: org.bukkit.conversations.Conversation.ConversationState; + // @ts-ignore + public static ABANDONED: org.bukkit.conversations.Conversation.ConversationState; + // @ts-ignore + public static values(): org.bukkit.conversations.Conversation.ConversationState[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.conversations.Conversation.ConversationState; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.conversations.Conversation.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.conversations.Conversation.d.ts new file mode 100644 index 00000000..eb46cda4 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.conversations.Conversation.d.ts @@ -0,0 +1,121 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace conversations { + // @ts-ignore + class Conversation extends java.lang.Object { + /** + * Initializes a new Conversation. + */ + // @ts-ignore + constructor(plugin: org.bukkit.plugin.Plugin, forWhom: org.bukkit.conversations.Conversable, firstPrompt: org.bukkit.conversations.Prompt) + /** + * Initializes a new Conversation. + */ + // @ts-ignore + constructor(plugin: org.bukkit.plugin.Plugin, forWhom: org.bukkit.conversations.Conversable, firstPrompt: org.bukkit.conversations.Prompt, initialSessionData: java.util.Map) + // @ts-ignore + protected currentPrompt: org.bukkit.conversations.Prompt; + // @ts-ignore + protected context: org.bukkit.conversations.ConversationContext; + // @ts-ignore + protected modal: boolean; + // @ts-ignore + protected localEchoEnabled: boolean; + // @ts-ignore + protected prefix: org.bukkit.conversations.ConversationPrefix; + // @ts-ignore + protected cancellers: java.util.List; + // @ts-ignore + protected abandonedListeners: java.util.List; + /** + * Gets the entity for whom this conversation is mediating. + */ + // @ts-ignore + public getForWhom(): org.bukkit.conversations.Conversable; + /** + * Gets the modality of this conversation. If a conversation is modal, all + * messages directed to the player are suppressed for the duration of the + * conversation. + */ + // @ts-ignore + public isModal(): boolean; + /** + * Gets the status of local echo for this conversation. If local echo is + * enabled, any text submitted to a conversation gets echoed back into the + * submitter's chat window. + */ + // @ts-ignore + public isLocalEchoEnabled(): boolean; + /** + * Sets the status of local echo for this conversation. If local echo is + * enabled, any text submitted to a conversation gets echoed back into the + * submitter's chat window. + */ + // @ts-ignore + public setLocalEchoEnabled(localEchoEnabled: boolean): void; + /** + * Gets the {@link ConversationPrefix} that prepends all output from this + * conversation. + */ + // @ts-ignore + public getPrefix(): org.bukkit.conversations.ConversationPrefix; + /** + * Gets the list of {@link ConversationCanceller}s + */ + // @ts-ignore + public getCancellers(): java.util.List; + /** + * Returns the Conversation's {@link ConversationContext}. + */ + // @ts-ignore + public getContext(): org.bukkit.conversations.ConversationContext; + /** + * Displays the first prompt of this conversation and begins redirecting + * the user's chat responses. + */ + // @ts-ignore + public begin(): void; + /** + * Returns Returns the current state of the conversation. + */ + // @ts-ignore + public getState(): org.bukkit.conversations.Conversation.ConversationState; + /** + * Passes player input into the current prompt. The next prompt (as + * determined by the current prompt) is then displayed to the user. + */ + // @ts-ignore + public acceptInput(input: string): void; + /** + * Adds a {@link ConversationAbandonedListener}. + */ + // @ts-ignore + public addConversationAbandonedListener(listener: org.bukkit.conversations.ConversationAbandonedListener): void; + /** + * Removes a {@link ConversationAbandonedListener}. + */ + // @ts-ignore + public removeConversationAbandonedListener(listener: org.bukkit.conversations.ConversationAbandonedListener): void; + /** + * Abandons and resets the current conversation. Restores the user's + * normal chat behavior. + */ + // @ts-ignore + public abandon(): void; + /** + * Abandons and resets the current conversation. Restores the user's + * normal chat behavior. + */ + // @ts-ignore + public abandon(details: org.bukkit.conversations.ConversationAbandonedEvent): void; + /** + * Displays the next user prompt and abandons the conversation if the next + * prompt is null. + */ + // @ts-ignore + public outputNextPrompt(): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.conversations.ConversationAbandonedEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.conversations.ConversationAbandonedEvent.d.ts new file mode 100644 index 00000000..d7e34fac --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.conversations.ConversationAbandonedEvent.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace conversations { + // @ts-ignore + class ConversationAbandonedEvent extends java.util.EventObject { + // @ts-ignore + constructor(conversation: org.bukkit.conversations.Conversation) + // @ts-ignore + constructor(conversation: org.bukkit.conversations.Conversation, canceller: org.bukkit.conversations.ConversationCanceller) + /** + * Gets the object that caused the conversation to be abandoned. + */ + // @ts-ignore + public getCanceller(): org.bukkit.conversations.ConversationCanceller; + /** + * Gets the abandoned conversation's conversation context. + */ + // @ts-ignore + public getContext(): org.bukkit.conversations.ConversationContext; + /** + * Indicates how the conversation was abandoned - naturally as part of the + * prompt chain or prematurely via a {@link ConversationCanceller}. + */ + // @ts-ignore + public gracefulExit(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.conversations.ConversationAbandonedListener.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.conversations.ConversationAbandonedListener.d.ts new file mode 100644 index 00000000..55e2dc59 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.conversations.ConversationAbandonedListener.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace conversations { + // @ts-ignore + interface ConversationAbandonedListener { + /** + * Called whenever a {@link Conversation} is abandoned. + */ + // @ts-ignore + conversationAbandoned(abandonedEvent: org.bukkit.conversations.ConversationAbandonedEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.conversations.ConversationCanceller.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.conversations.ConversationCanceller.d.ts new file mode 100644 index 00000000..acd90e2f --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.conversations.ConversationCanceller.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace conversations { + // @ts-ignore + interface ConversationCanceller { + /** + * Sets the conversation this ConversationCanceller can optionally cancel. + */ + // @ts-ignore + setConversation(conversation: org.bukkit.conversations.Conversation): void; + /** + * Cancels a conversation based on user input. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + clone(): org.bukkit.conversations.ConversationCanceller; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.conversations.ConversationContext.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.conversations.ConversationContext.d.ts new file mode 100644 index 00000000..046e516e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.conversations.ConversationContext.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace conversations { + // @ts-ignore + class ConversationContext extends java.lang.Object { + // @ts-ignore + constructor(plugin: org.bukkit.plugin.Plugin, forWhom: org.bukkit.conversations.Conversable, initialSessionData: java.util.Map) + /** + * Gets the plugin that owns this conversation. + */ + // @ts-ignore + public getPlugin(): org.bukkit.plugin.Plugin; + /** + * Gets the subject of the conversation. + */ + // @ts-ignore + public getForWhom(): org.bukkit.conversations.Conversable; + /** + * Gets the underlying sessionData map. + * May be directly modified to manipulate session data. + */ + // @ts-ignore + public getAllSessionData(): java.util.Map; + /** + * Gets session data shared between all {@link Prompt} invocations. Use + * this as a way to pass data through each Prompt as the conversation + * develops. + */ + // @ts-ignore + public getSessionData(key: java.lang.Object): java.lang.Object; + /** + * Sets session data shared between all {@link Prompt} invocations. Use + * this as a way to pass data through each prompt as the conversation + * develops. + */ + // @ts-ignore + public setSessionData(key: java.lang.Object, value: java.lang.Object): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.conversations.ConversationFactory.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.conversations.ConversationFactory.d.ts new file mode 100644 index 00000000..3aa26496 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.conversations.ConversationFactory.d.ts @@ -0,0 +1,107 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace conversations { + // @ts-ignore + class ConversationFactory extends java.lang.Object { + /** + * Constructs a ConversationFactory. + */ + // @ts-ignore + constructor(plugin: org.bukkit.plugin.Plugin) + // @ts-ignore + protected plugin: org.bukkit.plugin.Plugin; + // @ts-ignore + protected isModal: boolean; + // @ts-ignore + protected localEchoEnabled: boolean; + // @ts-ignore + protected prefix: org.bukkit.conversations.ConversationPrefix; + // @ts-ignore + protected firstPrompt: org.bukkit.conversations.Prompt; + // @ts-ignore + protected initialSessionData: java.util.Map; + // @ts-ignore + protected playerOnlyMessage: string; + // @ts-ignore + protected cancellers: java.util.List; + // @ts-ignore + protected abandonedListeners: java.util.List; + /** + * Sets the modality of all {@link Conversation}s created by this factory. + * If a conversation is modal, all messages directed to the player are + * suppressed for the duration of the conversation. + *

+ * The default is True. + */ + // @ts-ignore + public withModality(modal: boolean): org.bukkit.conversations.ConversationFactory; + /** + * Sets the local echo status for all {@link Conversation}s created by + * this factory. If local echo is enabled, any text submitted to a + * conversation gets echoed back into the submitter's chat window. + */ + // @ts-ignore + public withLocalEcho(localEchoEnabled: boolean): org.bukkit.conversations.ConversationFactory; + /** + * Sets the {@link ConversationPrefix} that prepends all output from all + * generated conversations. + *

+ * The default is a {@link NullConversationPrefix}; + */ + // @ts-ignore + public withPrefix(prefix: org.bukkit.conversations.ConversationPrefix): org.bukkit.conversations.ConversationFactory; + /** + * Sets the number of inactive seconds to wait before automatically + * abandoning all generated conversations. + *

+ * The default is 600 seconds (5 minutes). + */ + // @ts-ignore + public withTimeout(timeoutSeconds: number): org.bukkit.conversations.ConversationFactory; + /** + * Sets the first prompt to use in all generated conversations. + *

+ * The default is Prompt.END_OF_CONVERSATION. + */ + // @ts-ignore + public withFirstPrompt(firstPrompt: org.bukkit.conversations.Prompt): org.bukkit.conversations.ConversationFactory; + /** + * Sets any initial data with which to populate the conversation context + * sessionData map. + */ + // @ts-ignore + public withInitialSessionData(initialSessionData: java.util.Map): org.bukkit.conversations.ConversationFactory; + /** + * Sets the player input that, when received, will immediately terminate + * the conversation. + */ + // @ts-ignore + public withEscapeSequence(escapeSequence: string): org.bukkit.conversations.ConversationFactory; + /** + * Adds a {@link ConversationCanceller} to constructed conversations. + */ + // @ts-ignore + public withConversationCanceller(canceller: org.bukkit.conversations.ConversationCanceller): org.bukkit.conversations.ConversationFactory; + /** + * Prevents this factory from creating a conversation for non-player + * {@link Conversable} objects. + */ + // @ts-ignore + public thatExcludesNonPlayersWithMessage(playerOnlyMessage: string): org.bukkit.conversations.ConversationFactory; + /** + * Adds a {@link ConversationAbandonedListener} to all conversations + * constructed by this factory. + */ + // @ts-ignore + public addConversationAbandonedListener(listener: org.bukkit.conversations.ConversationAbandonedListener): org.bukkit.conversations.ConversationFactory; + /** + * Constructs a {@link Conversation} in accordance with the defaults set + * for this factory. + */ + // @ts-ignore + public buildConversation(forWhom: org.bukkit.conversations.Conversable): org.bukkit.conversations.Conversation; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.conversations.ConversationPrefix.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.conversations.ConversationPrefix.d.ts new file mode 100644 index 00000000..98d1e0de --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.conversations.ConversationPrefix.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace conversations { + // @ts-ignore + interface ConversationPrefix { + /** + * Gets the prefix to use before each message to the player. + */ + // @ts-ignore + getPrefix(context: org.bukkit.conversations.ConversationContext): string; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.conversations.ExactMatchConversationCanceller.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.conversations.ExactMatchConversationCanceller.d.ts new file mode 100644 index 00000000..b4413884 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.conversations.ExactMatchConversationCanceller.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace conversations { + // @ts-ignore + class ExactMatchConversationCanceller extends java.lang.Object implements org.bukkit.conversations.ConversationCanceller { + /** + * Builds an ExactMatchConversationCanceller. + */ + // @ts-ignore + constructor(escapeSequence: string) + // @ts-ignore + public setConversation(conversation: org.bukkit.conversations.Conversation): void; + // @ts-ignore + public cancelBasedOnInput(context: org.bukkit.conversations.ConversationContext, input: string): boolean; + // @ts-ignore + public clone(): org.bukkit.conversations.ConversationCanceller; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.conversations.FixedSetPrompt.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.conversations.FixedSetPrompt.d.ts new file mode 100644 index 00000000..d1fd33b4 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.conversations.FixedSetPrompt.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace conversations { + // @ts-ignore + abstract class FixedSetPrompt extends org.bukkit.conversations.ValidatingPrompt { + /** + * Creates a FixedSetPrompt from a set of strings. + *

+ * foo = new FixedSetPrompt("bar", "cheese", "panda"); + */ + // @ts-ignore + constructor(fixedSet: string) + // @ts-ignore + protected fixedSet: java.util.List; + // @ts-ignore + protected isInputValid(context: org.bukkit.conversations.ConversationContext, input: string): boolean; + /** + * Utility function to create a formatted string containing all the + * options declared in the constructor. + */ + // @ts-ignore + protected formatFixedSet(): string; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.conversations.InactivityConversationCanceller.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.conversations.InactivityConversationCanceller.d.ts new file mode 100644 index 00000000..23ef3cee --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.conversations.InactivityConversationCanceller.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace conversations { + // @ts-ignore + class InactivityConversationCanceller extends java.lang.Object implements org.bukkit.conversations.ConversationCanceller { + /** + * Creates an InactivityConversationCanceller. + */ + // @ts-ignore + constructor(plugin: org.bukkit.plugin.Plugin, timeoutSeconds: number) + // @ts-ignore + protected plugin: org.bukkit.plugin.Plugin; + // @ts-ignore + protected timeoutSeconds: number; + // @ts-ignore + protected conversation: org.bukkit.conversations.Conversation; + // @ts-ignore + public setConversation(conversation: org.bukkit.conversations.Conversation): void; + // @ts-ignore + public cancelBasedOnInput(context: org.bukkit.conversations.ConversationContext, input: string): boolean; + // @ts-ignore + public clone(): org.bukkit.conversations.ConversationCanceller; + /** + * Subclasses of InactivityConversationCanceller can override this method + * to take additional actions when the inactivity timer abandons the + * conversation. + */ + // @ts-ignore + protected cancelling(conversation: org.bukkit.conversations.Conversation): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.conversations.ManuallyAbandonedConversationCanceller.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.conversations.ManuallyAbandonedConversationCanceller.d.ts new file mode 100644 index 00000000..49ba73a2 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.conversations.ManuallyAbandonedConversationCanceller.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace conversations { + // @ts-ignore + class ManuallyAbandonedConversationCanceller extends java.lang.Object implements org.bukkit.conversations.ConversationCanceller { + // @ts-ignore + constructor() + // @ts-ignore + public setConversation(conversation: org.bukkit.conversations.Conversation): void; + // @ts-ignore + public cancelBasedOnInput(context: org.bukkit.conversations.ConversationContext, input: string): boolean; + // @ts-ignore + public clone(): org.bukkit.conversations.ConversationCanceller; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.conversations.MessagePrompt.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.conversations.MessagePrompt.d.ts new file mode 100644 index 00000000..8393e549 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.conversations.MessagePrompt.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace conversations { + // @ts-ignore + abstract class MessagePrompt extends java.lang.Object implements org.bukkit.conversations.Prompt { + // @ts-ignore + constructor() + /** + * Message prompts never wait for user input before continuing. + */ + // @ts-ignore + public blocksForInput(context: org.bukkit.conversations.ConversationContext): boolean; + /** + * Accepts and ignores any user input, returning the next prompt in the + * prompt graph instead. + */ + // @ts-ignore + public acceptInput(context: org.bukkit.conversations.ConversationContext, input: string): org.bukkit.conversations.Prompt; + /** + * Override this method to return the next prompt in the prompt graph. + */ + // @ts-ignore + protected abstract getNextPrompt(context: org.bukkit.conversations.ConversationContext): org.bukkit.conversations.Prompt; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.conversations.NullConversationPrefix.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.conversations.NullConversationPrefix.d.ts new file mode 100644 index 00000000..af04d3db --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.conversations.NullConversationPrefix.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace conversations { + // @ts-ignore + class NullConversationPrefix extends java.lang.Object implements org.bukkit.conversations.ConversationPrefix { + // @ts-ignore + constructor() + /** + * Prepends each conversation message with an empty string. + */ + // @ts-ignore + public getPrefix(context: org.bukkit.conversations.ConversationContext): string; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.conversations.NumericPrompt.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.conversations.NumericPrompt.d.ts new file mode 100644 index 00000000..b828dbd2 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.conversations.NumericPrompt.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace conversations { + // @ts-ignore + abstract class NumericPrompt extends org.bukkit.conversations.ValidatingPrompt { + // @ts-ignore + constructor() + // @ts-ignore + protected isInputValid(context: org.bukkit.conversations.ConversationContext, input: string): boolean; + /** + * Override this method to do further validation on the numeric player + * input after the input has been determined to actually be a number. + */ + // @ts-ignore + protected isNumberValid(context: org.bukkit.conversations.ConversationContext, input: java.lang.Number): boolean; + // @ts-ignore + protected acceptValidatedInput(context: org.bukkit.conversations.ConversationContext, input: string): org.bukkit.conversations.Prompt; + // @ts-ignore + protected getFailedValidationText(context: org.bukkit.conversations.ConversationContext, invalidInput: string): string; + /** + * Optionally override this method to display an additional message if the + * user enters an invalid number. + */ + // @ts-ignore + protected getInputNotNumericText(context: org.bukkit.conversations.ConversationContext, invalidInput: string): string; + /** + * Optionally override this method to display an additional message if the + * user enters an invalid numeric input. + */ + // @ts-ignore + protected getFailedValidationText(context: org.bukkit.conversations.ConversationContext, invalidInput: java.lang.Number): string; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.conversations.PlayerNamePrompt.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.conversations.PlayerNamePrompt.d.ts new file mode 100644 index 00000000..92473eba --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.conversations.PlayerNamePrompt.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace conversations { + // @ts-ignore + abstract class PlayerNamePrompt extends org.bukkit.conversations.ValidatingPrompt { + // @ts-ignore + constructor(plugin: org.bukkit.plugin.Plugin) + // @ts-ignore + protected isInputValid(context: org.bukkit.conversations.ConversationContext, input: string): boolean; + // @ts-ignore + protected acceptValidatedInput(context: org.bukkit.conversations.ConversationContext, input: string): org.bukkit.conversations.Prompt; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.conversations.PluginNameConversationPrefix.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.conversations.PluginNameConversationPrefix.d.ts new file mode 100644 index 00000000..2f985e09 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.conversations.PluginNameConversationPrefix.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace conversations { + // @ts-ignore + class PluginNameConversationPrefix extends java.lang.Object implements org.bukkit.conversations.ConversationPrefix { + // @ts-ignore + constructor(plugin: org.bukkit.plugin.Plugin) + // @ts-ignore + constructor(plugin: org.bukkit.plugin.Plugin, separator: string, prefixColor: org.bukkit.ChatColor) + // @ts-ignore + protected separator: string; + // @ts-ignore + protected prefixColor: org.bukkit.ChatColor; + // @ts-ignore + protected plugin: org.bukkit.plugin.Plugin; + /** + * Prepends each conversation message with the plugin name. + */ + // @ts-ignore + public getPrefix(context: org.bukkit.conversations.ConversationContext): string; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.conversations.Prompt.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.conversations.Prompt.d.ts new file mode 100644 index 00000000..b4c0da97 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.conversations.Prompt.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace conversations { + // @ts-ignore + interface Prompt { + // @ts-ignore + END_OF_CONVERSATION: org.bukkit.conversations.Prompt; + /** + * Gets the text to display to the user when this prompt is first + * presented. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + acceptInput(context: org.bukkit.conversations.ConversationContext, input: string): org.bukkit.conversations.Prompt; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.conversations.RegexPrompt.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.conversations.RegexPrompt.d.ts new file mode 100644 index 00000000..e3ff473d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.conversations.RegexPrompt.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace conversations { + // @ts-ignore + abstract class RegexPrompt extends org.bukkit.conversations.ValidatingPrompt { + // @ts-ignore + constructor(regex: string) + // @ts-ignore + constructor(pattern: java.util.regex.Pattern) + // @ts-ignore + protected isInputValid(context: org.bukkit.conversations.ConversationContext, input: string): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.conversations.StringPrompt.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.conversations.StringPrompt.d.ts new file mode 100644 index 00000000..87def123 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.conversations.StringPrompt.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace conversations { + // @ts-ignore + abstract class StringPrompt extends java.lang.Object implements org.bukkit.conversations.Prompt { + // @ts-ignore + constructor() + /** + * Ensures that the prompt waits for the user to provide input. + */ + // @ts-ignore + public blocksForInput(context: org.bukkit.conversations.ConversationContext): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.conversations.ValidatingPrompt.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.conversations.ValidatingPrompt.d.ts new file mode 100644 index 00000000..4e1d3e63 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.conversations.ValidatingPrompt.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace conversations { + // @ts-ignore + abstract class ValidatingPrompt extends java.lang.Object implements org.bukkit.conversations.Prompt { + // @ts-ignore + constructor() + /** + * Accepts and processes input from the user and validates it. If + * validation fails, this prompt is returned for re-execution, otherwise + * the next Prompt in the prompt graph is returned. + */ + // @ts-ignore + public acceptInput(context: org.bukkit.conversations.ConversationContext, input: string): org.bukkit.conversations.Prompt; + /** + * Ensures that the prompt waits for the user to provide input. + */ + // @ts-ignore + public blocksForInput(context: org.bukkit.conversations.ConversationContext): boolean; + /** + * Override this method to check the validity of the player's input. + */ + // @ts-ignore + protected abstract isInputValid(context: org.bukkit.conversations.ConversationContext, input: string): boolean; + /** + * Override this method to accept and processes the validated input from + * the user. Using the input, the next Prompt in the prompt graph should + * be returned. + */ + // @ts-ignore + protected abstract acceptValidatedInput(context: org.bukkit.conversations.ConversationContext, input: string): org.bukkit.conversations.Prompt; + /** + * Optionally override this method to display an additional message if the + * user enters an invalid input. + */ + // @ts-ignore + protected getFailedValidationText(context: org.bukkit.conversations.ConversationContext, invalidInput: string): string; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.enchantments.Enchantment.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.enchantments.Enchantment.d.ts new file mode 100644 index 00000000..5864f7ff --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.enchantments.Enchantment.d.ts @@ -0,0 +1,175 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace enchantments { + // @ts-ignore + abstract class Enchantment extends java.lang.Object implements org.bukkit.Keyed { + // @ts-ignore + constructor(key: org.bukkit.NamespacedKey) + // @ts-ignore + public static PROTECTION_ENVIRONMENTAL: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static PROTECTION_FIRE: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static PROTECTION_FALL: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static PROTECTION_EXPLOSIONS: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static PROTECTION_PROJECTILE: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static OXYGEN: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static WATER_WORKER: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static THORNS: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static DEPTH_STRIDER: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static FROST_WALKER: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static BINDING_CURSE: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static DAMAGE_ALL: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static DAMAGE_UNDEAD: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static DAMAGE_ARTHROPODS: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static KNOCKBACK: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static FIRE_ASPECT: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static LOOT_BONUS_MOBS: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static SWEEPING_EDGE: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static DIG_SPEED: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static SILK_TOUCH: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static DURABILITY: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static LOOT_BONUS_BLOCKS: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static ARROW_DAMAGE: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static ARROW_KNOCKBACK: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static ARROW_FIRE: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static ARROW_INFINITE: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static LUCK: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static LURE: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static LOYALTY: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static IMPALING: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static RIPTIDE: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static CHANNELING: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static MULTISHOT: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static QUICK_CHARGE: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static PIERCING: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static MENDING: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public static VANISHING_CURSE: org.bukkit.enchantments.Enchantment; + // @ts-ignore + public getKey(): org.bukkit.NamespacedKey; + /** + * Gets the unique name of this enchantment + */ + // @ts-ignore + public abstract getName(): string; + /** + * Gets the maximum level that this Enchantment may become. + */ + // @ts-ignore + public abstract getMaxLevel(): number; + /** + * Gets the level that this Enchantment should start at + */ + // @ts-ignore + public abstract getStartLevel(): number; + /** + * Gets the type of {@link ItemStack} that may fit this Enchantment. + */ + // @ts-ignore + public abstract getItemTarget(): org.bukkit.enchantments.EnchantmentTarget; + /** + * Checks if this enchantment is a treasure enchantment. + *
+ * Treasure enchantments can only be received via looting, trading, or + * fishing. + */ + // @ts-ignore + public abstract isTreasure(): boolean; + /** + * Checks if this enchantment is a cursed enchantment + *
+ * Cursed enchantments are found the same way treasure enchantments are + */ + // @ts-ignore + public abstract isCursed(): boolean; + /** + * Check if this enchantment conflicts with another enchantment. + */ + // @ts-ignore + public abstract conflictsWith(other: org.bukkit.enchantments.Enchantment): boolean; + /** + * Checks if this Enchantment may be applied to the given {@link + * ItemStack}. + *

+ * This does not check if it conflicts with any enchantments already + * applied to the item. + */ + // @ts-ignore + public abstract canEnchantItem(item: org.bukkit.inventory.ItemStack): boolean; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + /** + * Registers an enchantment with the given ID and object. + *

+ * Generally not to be used from within a plugin. + */ + // @ts-ignore + public static registerEnchantment(enchantment: org.bukkit.enchantments.Enchantment): void; + /** + * Checks if this is accepting Enchantment registrations. + */ + // @ts-ignore + public static isAcceptingRegistrations(): boolean; + /** + * Stops accepting any enchantment registrations + */ + // @ts-ignore + public static stopAcceptingRegistrations(): void; + /** + * Gets the Enchantment at the specified key + */ + // @ts-ignore + public static getByKey(key: org.bukkit.NamespacedKey): org.bukkit.enchantments.Enchantment; + /** + * Gets the Enchantment at the specified name + */ + // @ts-ignore + public static getByName(name: string): org.bukkit.enchantments.Enchantment; + /** + * Gets an array of all the registered {@link Enchantment}s + */ + // @ts-ignore + public static values(): org.bukkit.enchantments.Enchantment[]; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.enchantments.EnchantmentOffer.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.enchantments.EnchantmentOffer.d.ts new file mode 100644 index 00000000..aeed925c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.enchantments.EnchantmentOffer.d.ts @@ -0,0 +1,44 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace enchantments { + // @ts-ignore + class EnchantmentOffer extends java.lang.Object { + // @ts-ignore + constructor(enchantment: org.bukkit.enchantments.Enchantment, enchantmentLevel: number, cost: number) + /** + * Get the type of the enchantment. + */ + // @ts-ignore + public getEnchantment(): org.bukkit.enchantments.Enchantment; + /** + * Sets the type of the enchantment. + */ + // @ts-ignore + public setEnchantment(enchantment: org.bukkit.enchantments.Enchantment): void; + /** + * Gets the level of the enchantment. + */ + // @ts-ignore + public getEnchantmentLevel(): number; + /** + * Sets the level of the enchantment. + */ + // @ts-ignore + public setEnchantmentLevel(enchantmentLevel: number): void; + /** + * Gets the cost which is displayed as a number on the right hand side of + * the enchantment offer. + */ + // @ts-ignore + public getCost(): number; + /** + * Sets the the cost which is displayed as a number on the right hand side + * of the enchantment offer. + */ + // @ts-ignore + public setCost(cost: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.enchantments.EnchantmentTarget.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.enchantments.EnchantmentTarget.d.ts new file mode 100644 index 00000000..44d9f5ee --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.enchantments.EnchantmentTarget.d.ts @@ -0,0 +1,52 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace enchantments { + // @ts-ignore + class EnchantmentTarget extends java.lang.Enum { + // @ts-ignore + public static ALL: org.bukkit.enchantments.EnchantmentTarget; + // @ts-ignore + public static ARMOR: org.bukkit.enchantments.EnchantmentTarget; + // @ts-ignore + public static ARMOR_FEET: org.bukkit.enchantments.EnchantmentTarget; + // @ts-ignore + public static ARMOR_LEGS: org.bukkit.enchantments.EnchantmentTarget; + // @ts-ignore + public static ARMOR_TORSO: org.bukkit.enchantments.EnchantmentTarget; + // @ts-ignore + public static ARMOR_HEAD: org.bukkit.enchantments.EnchantmentTarget; + // @ts-ignore + public static WEAPON: org.bukkit.enchantments.EnchantmentTarget; + // @ts-ignore + public static TOOL: org.bukkit.enchantments.EnchantmentTarget; + // @ts-ignore + public static BOW: org.bukkit.enchantments.EnchantmentTarget; + // @ts-ignore + public static FISHING_ROD: org.bukkit.enchantments.EnchantmentTarget; + // @ts-ignore + public static BREAKABLE: org.bukkit.enchantments.EnchantmentTarget; + // @ts-ignore + public static WEARABLE: org.bukkit.enchantments.EnchantmentTarget; + // @ts-ignore + public static TRIDENT: org.bukkit.enchantments.EnchantmentTarget; + // @ts-ignore + public static CROSSBOW: org.bukkit.enchantments.EnchantmentTarget; + // @ts-ignore + public static values(): org.bukkit.enchantments.EnchantmentTarget[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.enchantments.EnchantmentTarget; + /** + * Check whether this target includes the specified item. + */ + // @ts-ignore + public includes(item: org.bukkit.Material): boolean; + /** + * Check whether this target includes the specified item. + */ + // @ts-ignore + public includes(item: org.bukkit.inventory.ItemStack): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.enchantments.EnchantmentWrapper.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.enchantments.EnchantmentWrapper.d.ts new file mode 100644 index 00000000..bc4dcd9b --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.enchantments.EnchantmentWrapper.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace enchantments { + // @ts-ignore + class EnchantmentWrapper extends org.bukkit.enchantments.Enchantment { + // @ts-ignore + constructor(name: string) + /** + * Gets the enchantment bound to this wrapper + */ + // @ts-ignore + public getEnchantment(): org.bukkit.enchantments.Enchantment; + // @ts-ignore + public getMaxLevel(): number; + // @ts-ignore + public getStartLevel(): number; + // @ts-ignore + public getItemTarget(): org.bukkit.enchantments.EnchantmentTarget; + // @ts-ignore + public canEnchantItem(item: org.bukkit.inventory.ItemStack): boolean; + // @ts-ignore + public getName(): string; + // @ts-ignore + public isTreasure(): boolean; + // @ts-ignore + public isCursed(): boolean; + // @ts-ignore + public conflictsWith(other: org.bukkit.enchantments.Enchantment): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.AbstractArrow.PickupStatus.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.AbstractArrow.PickupStatus.d.ts new file mode 100644 index 00000000..15ab4b9f --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.AbstractArrow.PickupStatus.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + namespace AbstractArrow { + // @ts-ignore + class PickupStatus extends java.lang.Enum { + // @ts-ignore + public static DISALLOWED: org.bukkit.entity.AbstractArrow.PickupStatus; + // @ts-ignore + public static ALLOWED: org.bukkit.entity.AbstractArrow.PickupStatus; + // @ts-ignore + public static CREATIVE_ONLY: org.bukkit.entity.AbstractArrow.PickupStatus; + // @ts-ignore + public static values(): org.bukkit.entity.AbstractArrow.PickupStatus[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.entity.AbstractArrow.PickupStatus; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.AbstractArrow.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.AbstractArrow.d.ts new file mode 100644 index 00000000..e44cf034 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.AbstractArrow.d.ts @@ -0,0 +1,83 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @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. + */ + // @ts-ignore + getKnockbackStrength(): number; + /** + * Sets the knockback strength for an arrow. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getDamage(): number; + /** + * Sets the base amount of damage this arrow will do. + */ + // @ts-ignore + setDamage(damage: number): void; + /** + * Gets the number of times this arrow can pierce through an entity. + */ + // @ts-ignore + getPierceLevel(): number; + /** + * Sets the number of times this arrow can pierce through an entity. + * Must be between 0 and 127 times. + */ + // @ts-ignore + setPierceLevel(pierceLevel: number): void; + /** + * Gets whether this arrow is critical. + *

+ * Critical arrows have increased damage and cause particle effects. + *

+ * Critical arrows generally occur when a player fully draws a bow before + * firing. + */ + // @ts-ignore + isCritical(): boolean; + /** + * Sets whether or not this arrow should be critical. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + isInBlock(): boolean; + /** + * Gets the block to which this arrow is attached. + */ + // @ts-ignore + getAttachedBlock(): org.bukkit.block.Block; + /** + * Gets the current pickup status of this arrow. + */ + // @ts-ignore + getPickupStatus(): org.bukkit.entity.AbstractArrow.PickupStatus; + /** + * Sets the current pickup status of this arrow. + */ + // @ts-ignore + setPickupStatus(status: org.bukkit.entity.AbstractArrow.PickupStatus): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.AbstractHorse.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.AbstractHorse.d.ts new file mode 100644 index 00000000..aef5de52 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.AbstractHorse.d.ts @@ -0,0 +1,81 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @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. + *

+ * A horse's variant defines its physical appearance and capabilities. + * Whether a horse is a regular horse, donkey, mule, or other kind of horse + * is determined using the variant. + */ + // @ts-ignore + getVariant(): org.bukkit.entity.Horse.Variant; + // @ts-ignore + setVariant(variant: org.bukkit.entity.Horse.Variant): void; + /** + * Gets the domestication level of this horse. + *

+ * A higher domestication level indicates that the horse is closer to + * becoming tame. As the domestication level gets closer to the max + * domestication level, the chance of the horse becoming tame increases. + */ + // @ts-ignore + getDomestication(): number; + /** + * Sets the domestication level of this horse. + *

+ * Setting the domestication level to a high value will increase the + * horse's chances of becoming tame. + *

+ * Domestication level must be greater than zero and no greater than + * the max domestication level of the horse, determined with + * {@link #getMaxDomestication()} + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getMaxDomestication(): number; + /** + * Sets the maximum domestication level of this horse. + *

+ * Setting a higher max domestication will increase the amount of + * domesticating (feeding, riding, etc.) necessary in order to tame it, + * while setting a lower max value will have the opposite effect. + *

+ * Maximum domestication must be greater than zero. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getJumpStrength(): number; + /** + * Sets the jump strength of this horse. + *

+ * A higher jump strength increases how high a jump will go. + * Setting a jump strength to 0 will result in no jump. + * You cannot set a jump strength to a value below 0 or + * above 2. + */ + // @ts-ignore + setJumpStrength(strength: number): void; + // @ts-ignore + getInventory(): org.bukkit.inventory.AbstractHorseInventory; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.AbstractVillager.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.AbstractVillager.d.ts new file mode 100644 index 00000000..449438d4 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.AbstractVillager.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @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. + *
+ * Note that this inventory is not the Merchant inventory, rather, it is the + * items that a villager might have collected (from harvesting crops, etc.) + * {@inheritDoc} + */ + // @ts-ignore + getInventory(): org.bukkit.inventory.Inventory; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Ageable.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Ageable.d.ts new file mode 100644 index 00000000..03a7cef5 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Ageable.d.ts @@ -0,0 +1,57 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Ageable extends org.bukkit.entity.Creature { + /** + * Gets the age of this animal. + */ + // @ts-ignore + getAge(): number; + /** + * Sets the age of this animal. + */ + // @ts-ignore + setAge(age: number): void; + /** + * Lock the age of the animal, setting this will prevent the animal from + * maturing or getting ready for mating. + */ + // @ts-ignore + setAgeLock(lock: boolean): void; + /** + * Gets the current agelock. + */ + // @ts-ignore + getAgeLock(): boolean; + /** + * Sets the age of the animal to a baby + */ + // @ts-ignore + setBaby(): void; + /** + * Sets the age of the animal to an adult + */ + // @ts-ignore + setAdult(): void; + /** + * Returns true if the animal is an adult. + */ + // @ts-ignore + isAdult(): boolean; + /** + * Return the ability to breed of the animal. + */ + // @ts-ignore + canBreed(): boolean; + /** + * Set breedability of the animal, if the animal is a baby and set to + * breed it will instantly grow up. + */ + // @ts-ignore + setBreed(breed: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Ambient.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Ambient.d.ts new file mode 100644 index 00000000..bfc7550d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Ambient.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Ambient extends org.bukkit.entity.Mob { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.AnimalTamer.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.AnimalTamer.d.ts new file mode 100644 index 00000000..5a7330e1 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.AnimalTamer.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface AnimalTamer { + /** + * This is the name of the specified AnimalTamer. + */ + // @ts-ignore + getName(): string; + /** + * This is the UUID of the specified AnimalTamer. + */ + // @ts-ignore + getUniqueId(): java.util.UUID; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Animals.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Animals.d.ts new file mode 100644 index 00000000..aad2f9e3 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Animals.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @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. + */ + // @ts-ignore + getBreedCause(): java.util.UUID; + /** + * Set the UUID of the entity that caused this entity to enter the + * {@link #canBreed()} state. + */ + // @ts-ignore + setBreedCause(uuid: java.util.UUID): 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + setLoveModeTicks(ticks: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.AreaEffectCloud.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.AreaEffectCloud.d.ts new file mode 100644 index 00000000..12a49f38 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.AreaEffectCloud.d.ts @@ -0,0 +1,165 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface AreaEffectCloud extends org.bukkit.entity.Entity { + /** + * Gets the duration which this cloud will exist for (in ticks). + */ + // @ts-ignore + getDuration(): number; + /** + * Sets the duration which this cloud will exist for (in ticks). + */ + // @ts-ignore + setDuration(duration: number): void; + /** + * Gets the time which an entity has to be exposed to the cloud before the + * effect is applied. + */ + // @ts-ignore + getWaitTime(): number; + /** + * Sets the time which an entity has to be exposed to the cloud before the + * effect is applied. + */ + // @ts-ignore + setWaitTime(waitTime: number): void; + /** + * Gets the time that an entity will be immune from subsequent exposure. + */ + // @ts-ignore + getReapplicationDelay(): number; + /** + * Sets the time that an entity will be immune from subsequent exposure. + */ + // @ts-ignore + setReapplicationDelay(delay: number): void; + /** + * Gets the amount that the duration of this cloud will decrease by when it + * applies an effect to an entity. + */ + // @ts-ignore + getDurationOnUse(): number; + /** + * Sets the amount that the duration of this cloud will decrease by when it + * applies an effect to an entity. + */ + // @ts-ignore + setDurationOnUse(duration: number): void; + /** + * Gets the initial radius of the cloud. + */ + // @ts-ignore + getRadius(): number; + /** + * Sets the initial radius of the cloud. + */ + // @ts-ignore + setRadius(radius: number): void; + /** + * Gets the amount that the radius of this cloud will decrease by when it + * applies an effect to an entity. + */ + // @ts-ignore + getRadiusOnUse(): number; + /** + * Sets the amount that the radius of this cloud will decrease by when it + * applies an effect to an entity. + */ + // @ts-ignore + setRadiusOnUse(radius: number): void; + /** + * Gets the amount that the radius of this cloud will decrease by each tick. + */ + // @ts-ignore + getRadiusPerTick(): number; + /** + * Gets the amount that the radius of this cloud will decrease by each tick. + */ + // @ts-ignore + setRadiusPerTick(radius: number): void; + /** + * Gets the particle which this cloud will be composed of + */ + // @ts-ignore + getParticle(): org.bukkit.Particle; + /** + * Sets the particle which this cloud will be composed of + */ + // @ts-ignore + setParticle(particle: org.bukkit.Particle): void; + /** + * Sets the particle which this cloud will be composed of + */ + // @ts-ignore + setParticle(particle: org.bukkit.Particle, data: java.lang.Object): void; + /** + * Sets the underlying potion data + */ + // @ts-ignore + setBasePotionData(data: org.bukkit.potion.PotionData): void; + /** + * Returns the potion data about the base potion + */ + // @ts-ignore + getBasePotionData(): org.bukkit.potion.PotionData; + /** + * Checks for the presence of custom potion effects. + */ + // @ts-ignore + hasCustomEffects(): boolean; + /** + * Gets an immutable list containing all custom potion effects applied to + * this cloud. + *

+ * Plugins should check that hasCustomEffects() returns true before calling + * this method. + */ + // @ts-ignore + getCustomEffects(): java.util.List; + /** + * Adds a custom potion effect to this cloud. + */ + // @ts-ignore + addCustomEffect(effect: org.bukkit.potion.PotionEffect, overwrite: boolean): boolean; + /** + * Removes a custom potion effect from this cloud. + */ + // @ts-ignore + removeCustomEffect(type: org.bukkit.potion.PotionEffectType): boolean; + /** + * Checks for a specific custom potion effect type on this cloud. + */ + // @ts-ignore + hasCustomEffect(type: org.bukkit.potion.PotionEffectType): boolean; + /** + * Removes all custom potion effects from this cloud. + */ + // @ts-ignore + clearCustomEffects(): void; + /** + * Gets the color of this cloud. Will be applied as a tint to its particles. + */ + // @ts-ignore + getColor(): org.bukkit.Color; + /** + * Sets the color of this cloud. Will be applied as a tint to its particles. + */ + // @ts-ignore + setColor(color: org.bukkit.Color): void; + /** + * Retrieve the original source of this cloud. + */ + // @ts-ignore + getSource(): org.bukkit.projectiles.ProjectileSource; + /** + * Set the original source of this cloud. + */ + // @ts-ignore + setSource(source: org.bukkit.projectiles.ProjectileSource): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.ArmorStand.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.ArmorStand.d.ts new file mode 100644 index 00000000..b0e25a69 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.ArmorStand.d.ts @@ -0,0 +1,200 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface ArmorStand extends org.bukkit.entity.LivingEntity { + /** + * Returns the item the armor stand is + * currently holding + */ + // @ts-ignore + getItemInHand(): org.bukkit.inventory.ItemStack; + /** + * Sets the item the armor stand is currently + * holding + */ + // @ts-ignore + setItemInHand(item: org.bukkit.inventory.ItemStack): void; + /** + * Returns the item currently being worn + * by the armor stand on its feet + */ + // @ts-ignore + getBoots(): org.bukkit.inventory.ItemStack; + /** + * Sets the item currently being worn + * by the armor stand on its feet + */ + // @ts-ignore + setBoots(item: org.bukkit.inventory.ItemStack): void; + /** + * Returns the item currently being worn + * by the armor stand on its legs + */ + // @ts-ignore + getLeggings(): org.bukkit.inventory.ItemStack; + /** + * Sets the item currently being worn + * by the armor stand on its legs + */ + // @ts-ignore + setLeggings(item: org.bukkit.inventory.ItemStack): void; + /** + * Returns the item currently being worn + * by the armor stand on its chest + */ + // @ts-ignore + getChestplate(): org.bukkit.inventory.ItemStack; + /** + * Sets the item currently being worn + * by the armor stand on its chest + */ + // @ts-ignore + setChestplate(item: org.bukkit.inventory.ItemStack): void; + /** + * Returns the item currently being worn + * by the armor stand on its head + */ + // @ts-ignore + getHelmet(): org.bukkit.inventory.ItemStack; + /** + * Sets the item currently being worn + * by the armor stand on its head + */ + // @ts-ignore + setHelmet(item: org.bukkit.inventory.ItemStack): void; + /** + * Returns the armor stand's body's + * current pose as a {@link org.bukkit.util.EulerAngle} + */ + // @ts-ignore + getBodyPose(): org.bukkit.util.EulerAngle; + /** + * Sets the armor stand's body's + * current pose as a {@link org.bukkit.util.EulerAngle} + */ + // @ts-ignore + setBodyPose(pose: org.bukkit.util.EulerAngle): void; + /** + * Returns the armor stand's left arm's + * current pose as a {@link org.bukkit.util.EulerAngle} + */ + // @ts-ignore + getLeftArmPose(): org.bukkit.util.EulerAngle; + /** + * Sets the armor stand's left arm's + * current pose as a {@link org.bukkit.util.EulerAngle} + */ + // @ts-ignore + setLeftArmPose(pose: org.bukkit.util.EulerAngle): void; + /** + * Returns the armor stand's right arm's + * current pose as a {@link org.bukkit.util.EulerAngle} + */ + // @ts-ignore + getRightArmPose(): org.bukkit.util.EulerAngle; + /** + * Sets the armor stand's right arm's + * current pose as a {@link org.bukkit.util.EulerAngle} + */ + // @ts-ignore + setRightArmPose(pose: org.bukkit.util.EulerAngle): void; + /** + * Returns the armor stand's left leg's + * current pose as a {@link org.bukkit.util.EulerAngle} + */ + // @ts-ignore + getLeftLegPose(): org.bukkit.util.EulerAngle; + /** + * Sets the armor stand's left leg's + * current pose as a {@link org.bukkit.util.EulerAngle} + */ + // @ts-ignore + setLeftLegPose(pose: org.bukkit.util.EulerAngle): void; + /** + * Returns the armor stand's right leg's + * current pose as a {@link org.bukkit.util.EulerAngle} + */ + // @ts-ignore + getRightLegPose(): org.bukkit.util.EulerAngle; + /** + * Sets the armor stand's right leg's + * current pose as a {@link org.bukkit.util.EulerAngle} + */ + // @ts-ignore + setRightLegPose(pose: org.bukkit.util.EulerAngle): void; + /** + * Returns the armor stand's head's + * current pose as a {@link org.bukkit.util.EulerAngle} + */ + // @ts-ignore + getHeadPose(): org.bukkit.util.EulerAngle; + /** + * Sets the armor stand's head's + * current pose as a {@link org.bukkit.util.EulerAngle} + */ + // @ts-ignore + setHeadPose(pose: org.bukkit.util.EulerAngle): void; + /** + * Returns whether the armor stand has + * a base plate + */ + // @ts-ignore + hasBasePlate(): boolean; + /** + * Sets whether the armor stand has a + * base plate + */ + // @ts-ignore + setBasePlate(basePlate: boolean): void; + /** + * Returns whether the armor stand should be + * visible or not + */ + // @ts-ignore + isVisible(): boolean; + /** + * Sets whether the armor stand should be + * visible or not + */ + // @ts-ignore + setVisible(visible: boolean): void; + /** + * Returns whether this armor stand has arms + */ + // @ts-ignore + hasArms(): boolean; + /** + * Sets whether this armor stand has arms + */ + // @ts-ignore + setArms(arms: boolean): void; + /** + * Returns whether this armor stand is scaled + * down + */ + // @ts-ignore + isSmall(): boolean; + /** + * Sets whether this armor stand is scaled + * down + */ + // @ts-ignore + setSmall(small: boolean): void; + /** + * Returns whether this armor stand is a marker, + * meaning it has a very small collision box + */ + // @ts-ignore + isMarker(): boolean; + /** + * Sets whether this armor stand is a marker, + * meaning it has a very small collision box + */ + // @ts-ignore + setMarker(marker: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Arrow.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Arrow.d.ts new file mode 100644 index 00000000..88cd8338 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Arrow.d.ts @@ -0,0 +1,64 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Arrow extends org.bukkit.entity.AbstractArrow { + /** + * Sets the underlying potion data + */ + // @ts-ignore + setBasePotionData(data: org.bukkit.potion.PotionData): void; + /** + * Returns the potion data about the base potion + */ + // @ts-ignore + getBasePotionData(): org.bukkit.potion.PotionData; + /** + * Gets the color of this arrow. + */ + // @ts-ignore + getColor(): org.bukkit.Color; + /** + * Sets the color of this arrow. Will be applied as a tint to its particles. + */ + // @ts-ignore + setColor(color: org.bukkit.Color): void; + /** + * Checks for the presence of custom potion effects. + */ + // @ts-ignore + hasCustomEffects(): boolean; + /** + * Gets an immutable list containing all custom potion effects applied to + * this arrow. + *

+ * Plugins should check that hasCustomEffects() returns true before calling + * this method. + */ + // @ts-ignore + getCustomEffects(): java.util.List; + /** + * Adds a custom potion effect to this arrow. + */ + // @ts-ignore + addCustomEffect(effect: org.bukkit.potion.PotionEffect, overwrite: boolean): boolean; + /** + * Removes a custom potion effect from this arrow. + */ + // @ts-ignore + removeCustomEffect(type: org.bukkit.potion.PotionEffectType): boolean; + /** + * Checks for a specific custom potion effect type on this arrow. + */ + // @ts-ignore + hasCustomEffect(type: org.bukkit.potion.PotionEffectType): boolean; + /** + * Removes all custom potion effects from this arrow. + */ + // @ts-ignore + clearCustomEffects(): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Bat.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Bat.d.ts new file mode 100644 index 00000000..351bf6f1 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Bat.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + setAwake(state: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Blaze.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Blaze.d.ts new file mode 100644 index 00000000..9096c7e4 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Blaze.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Blaze extends org.bukkit.entity.Monster { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Boat.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Boat.d.ts new file mode 100644 index 00000000..4842e9a3 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Boat.d.ts @@ -0,0 +1,69 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Boat extends org.bukkit.entity.Vehicle { + /** + * Gets the wood type of the boat. + */ + // @ts-ignore + getWoodType(): org.bukkit.TreeSpecies; + /** + * Sets the wood type of the boat. + */ + // @ts-ignore + setWoodType(species: org.bukkit.TreeSpecies): void; + /** + * Gets the maximum speed of a boat. The speed is unrelated to the + * velocity. + */ + // @ts-ignore + getMaxSpeed(): number; + /** + * Sets the maximum speed of a boat. Must be nonnegative. Default is 0.4D. + */ + // @ts-ignore + setMaxSpeed(speed: number): void; + /** + * Gets the deceleration rate (newSpeed = curSpeed * rate) of occupied + * boats. The default is 0.2. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + setUnoccupiedDeceleration(rate: number): void; + /** + * Get whether boats can work on land. + */ + // @ts-ignore + getWorkOnLand(): boolean; + /** + * Set whether boats can work on land. + */ + // @ts-ignore + setWorkOnLand(workOnLand: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Boss.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Boss.d.ts new file mode 100644 index 00000000..9928aafb --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Boss.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Boss extends org.bukkit.entity.Entity { + /** + * Returns the {@link BossBar} of the {@link Boss} + */ + // @ts-ignore + getBossBar(): org.bukkit.boss.BossBar; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Cat.Type.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Cat.Type.d.ts new file mode 100644 index 00000000..8051df8d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Cat.Type.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + namespace Cat { + // @ts-ignore + class Type extends java.lang.Enum { + // @ts-ignore + public static TABBY: org.bukkit.entity.Cat.Type; + // @ts-ignore + public static BLACK: org.bukkit.entity.Cat.Type; + // @ts-ignore + public static RED: org.bukkit.entity.Cat.Type; + // @ts-ignore + public static SIAMESE: org.bukkit.entity.Cat.Type; + // @ts-ignore + public static BRITISH_SHORTHAIR: org.bukkit.entity.Cat.Type; + // @ts-ignore + public static CALICO: org.bukkit.entity.Cat.Type; + // @ts-ignore + public static PERSIAN: org.bukkit.entity.Cat.Type; + // @ts-ignore + public static RAGDOLL: org.bukkit.entity.Cat.Type; + // @ts-ignore + public static WHITE: org.bukkit.entity.Cat.Type; + // @ts-ignore + public static JELLIE: org.bukkit.entity.Cat.Type; + // @ts-ignore + public static ALL_BLACK: org.bukkit.entity.Cat.Type; + // @ts-ignore + public static values(): org.bukkit.entity.Cat.Type[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.entity.Cat.Type; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Cat.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Cat.d.ts new file mode 100644 index 00000000..235d5d78 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Cat.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Cat extends org.bukkit.entity.Animals, org.bukkit.entity.Tameable, org.bukkit.entity.Sittable { + /** + * Gets the current type of this cat. + */ + // @ts-ignore + getCatType(): org.bukkit.entity.Cat.Type; + /** + * Sets the current type of this cat. + */ + // @ts-ignore + setCatType(type: org.bukkit.entity.Cat.Type): void; + /** + * Get the collar color of this cat + */ + // @ts-ignore + getCollarColor(): org.bukkit.DyeColor; + /** + * Set the collar color of this cat + */ + // @ts-ignore + setCollarColor(color: org.bukkit.DyeColor): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.CaveSpider.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.CaveSpider.d.ts new file mode 100644 index 00000000..99fdfa8d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.CaveSpider.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface CaveSpider extends org.bukkit.entity.Spider { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.ChestedHorse.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.ChestedHorse.d.ts new file mode 100644 index 00000000..a7c67445 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.ChestedHorse.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface ChestedHorse extends org.bukkit.entity.AbstractHorse { + /** + * Gets whether the horse has a chest equipped. + */ + // @ts-ignore + isCarryingChest(): boolean; + /** + * Sets whether the horse has a chest equipped. Removing a chest will also + * clear the chest's inventory. + */ + // @ts-ignore + setCarryingChest(chest: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Chicken.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Chicken.d.ts new file mode 100644 index 00000000..96a393d9 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Chicken.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Chicken extends org.bukkit.entity.Animals { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Cod.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Cod.d.ts new file mode 100644 index 00000000..0ebad3b0 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Cod.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Cod extends org.bukkit.entity.Fish { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.ComplexEntityPart.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.ComplexEntityPart.d.ts new file mode 100644 index 00000000..11563d14 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.ComplexEntityPart.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface ComplexEntityPart extends org.bukkit.entity.Entity { + /** + * Gets the parent {@link ComplexLivingEntity} of this part. + */ + // @ts-ignore + getParent(): org.bukkit.entity.ComplexLivingEntity; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.ComplexLivingEntity.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.ComplexLivingEntity.d.ts new file mode 100644 index 00000000..7b7fb4c5 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.ComplexLivingEntity.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface ComplexLivingEntity extends org.bukkit.entity.LivingEntity { + /** + * Gets a list of parts that belong to this complex entity + */ + // @ts-ignore + getParts(): java.util.Set; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Cow.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Cow.d.ts new file mode 100644 index 00000000..e012cf7c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Cow.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Cow extends org.bukkit.entity.Animals { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Creature.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Creature.d.ts new file mode 100644 index 00000000..b910f60a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Creature.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Creature extends org.bukkit.entity.Mob { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Creeper.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Creeper.d.ts new file mode 100644 index 00000000..ceb61cbf --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Creeper.d.ts @@ -0,0 +1,62 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Creeper extends org.bukkit.entity.Monster { + /** + * Checks if this Creeper is powered (Electrocuted) + */ + // @ts-ignore + isPowered(): boolean; + /** + * Sets the Powered status of this Creeper + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getMaxFuseTicks(): number; + /** + * Set the explosion radius in which this Creeper's explosion will affect. + */ + // @ts-ignore + setExplosionRadius(radius: number): void; + /** + * Get the explosion radius in which this Creeper's explosion will affect. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + explode(): void; + /** + * Ignites this Creeper, beginning its fuse. + * The amount of time the Creeper takes to explode will depend on what + * {@link #setMaxFuseTicks} is set as. + * The resulting explosion can be cancelled by an + * {@link org.bukkit.event.entity.ExplosionPrimeEvent} and obeys the mob + * griefing gamerule. + */ + // @ts-ignore + ignite(): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Damageable.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Damageable.d.ts new file mode 100644 index 00000000..37288de1 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Damageable.d.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Damageable extends org.bukkit.entity.Entity { + /** + * Deals the given amount of damage to this entity. + */ + // @ts-ignore + damage(amount: number): void; + /** + * Deals the given amount of damage to this entity, from a specified + * entity. + */ + // @ts-ignore + damage(amount: number, source: org.bukkit.entity.Entity): void; + /** + * Gets the entity's health from 0 to {@link #getMaxHealth()}, where 0 is dead. + */ + // @ts-ignore + getHealth(): number; + /** + * Sets the entity's health from 0 to {@link #getMaxHealth()}, where 0 is + * dead. + */ + // @ts-ignore + setHealth(health: number): void; + /** + * Gets the maximum health this entity has. + */ + // @ts-ignore + getMaxHealth(): number; + /** + * Sets the maximum health this entity can have. + *

+ * If the health of the entity is above the value provided it will be set + * to that value. + *

+ * Note: An entity with a health bar ({@link Player}, {@link EnderDragon}, + * {@link Wither}, etc...} will have their bar scaled accordingly. + */ + // @ts-ignore + setMaxHealth(health: number): void; + /** + * Resets the max health to the original amount. + */ + // @ts-ignore + resetMaxHealth(): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Dolphin.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Dolphin.d.ts new file mode 100644 index 00000000..4468a2e4 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Dolphin.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Dolphin extends org.bukkit.entity.WaterMob { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Donkey.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Donkey.d.ts new file mode 100644 index 00000000..7236f10b --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Donkey.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Donkey extends org.bukkit.entity.ChestedHorse { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.DragonFireball.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.DragonFireball.d.ts new file mode 100644 index 00000000..18244e20 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.DragonFireball.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface DragonFireball extends org.bukkit.entity.Fireball { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Drowned.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Drowned.d.ts new file mode 100644 index 00000000..17c17970 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Drowned.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Drowned extends org.bukkit.entity.Zombie { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Egg.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Egg.d.ts new file mode 100644 index 00000000..e07f21e1 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Egg.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Egg extends org.bukkit.entity.Projectile { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.ElderGuardian.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.ElderGuardian.d.ts new file mode 100644 index 00000000..deaf6b6d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.ElderGuardian.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface ElderGuardian extends org.bukkit.entity.Guardian { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.EnderCrystal.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.EnderCrystal.d.ts new file mode 100644 index 00000000..e318feb5 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.EnderCrystal.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface EnderCrystal extends org.bukkit.entity.Entity { + /** + * Return whether or not this end crystal is showing the + * bedrock slate underneath it. + */ + // @ts-ignore + isShowingBottom(): boolean; + /** + * Sets whether or not this end crystal is showing the + * bedrock slate underneath it. + */ + // @ts-ignore + setShowingBottom(showing: boolean): void; + /** + * Gets the location that this end crystal is pointing its beam to. + */ + // @ts-ignore + getBeamTarget(): org.bukkit.Location; + /** + * Sets the location that this end crystal is pointing to. Passing a null + * value will remove the current beam. + */ + // @ts-ignore + setBeamTarget(location: org.bukkit.Location): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.EnderDragon.Phase.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.EnderDragon.Phase.d.ts new file mode 100644 index 00000000..36c78530 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.EnderDragon.Phase.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + namespace EnderDragon { + // @ts-ignore + class Phase extends java.lang.Enum { + // @ts-ignore + public static CIRCLING: org.bukkit.entity.EnderDragon.Phase; + // @ts-ignore + public static STRAFING: org.bukkit.entity.EnderDragon.Phase; + // @ts-ignore + public static FLY_TO_PORTAL: org.bukkit.entity.EnderDragon.Phase; + // @ts-ignore + public static LAND_ON_PORTAL: org.bukkit.entity.EnderDragon.Phase; + // @ts-ignore + public static LEAVE_PORTAL: org.bukkit.entity.EnderDragon.Phase; + // @ts-ignore + public static BREATH_ATTACK: org.bukkit.entity.EnderDragon.Phase; + // @ts-ignore + public static SEARCH_FOR_BREATH_ATTACK_TARGET: org.bukkit.entity.EnderDragon.Phase; + // @ts-ignore + public static ROAR_BEFORE_ATTACK: org.bukkit.entity.EnderDragon.Phase; + // @ts-ignore + public static CHARGE_PLAYER: org.bukkit.entity.EnderDragon.Phase; + // @ts-ignore + public static DYING: org.bukkit.entity.EnderDragon.Phase; + // @ts-ignore + public static HOVER: org.bukkit.entity.EnderDragon.Phase; + // @ts-ignore + public static values(): org.bukkit.entity.EnderDragon.Phase[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.entity.EnderDragon.Phase; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.EnderDragon.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.EnderDragon.d.ts new file mode 100644 index 00000000..4ed24d4d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.EnderDragon.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface EnderDragon extends org.bukkit.entity.ComplexLivingEntity, org.bukkit.entity.Boss { + /** + * Gets the current phase that the dragon is performing. + */ + // @ts-ignore + getPhase(): org.bukkit.entity.EnderDragon.Phase; + /** + * Sets the next phase for the dragon to perform. + */ + // @ts-ignore + setPhase(phase: org.bukkit.entity.EnderDragon.Phase): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.EnderDragonPart.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.EnderDragonPart.d.ts new file mode 100644 index 00000000..7ccf9dde --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.EnderDragonPart.d.ts @@ -0,0 +1,12 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface EnderDragonPart extends org.bukkit.entity.ComplexEntityPart, org.bukkit.entity.Damageable { + // @ts-ignore + getParent(): org.bukkit.entity.EnderDragon; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.EnderPearl.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.EnderPearl.d.ts new file mode 100644 index 00000000..7fffd1b0 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.EnderPearl.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface EnderPearl extends org.bukkit.entity.Projectile { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.EnderSignal.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.EnderSignal.d.ts new file mode 100644 index 00000000..5418b095 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.EnderSignal.d.ts @@ -0,0 +1,49 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface EnderSignal extends org.bukkit.entity.Entity { + /** + * Get the location this EnderSignal is moving towards. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getDropItem(): boolean; + /** + * Sets if the EnderSignal should drop an item on death; or if it should + * shatter. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + setDespawnTimer(timer: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Enderman.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Enderman.d.ts new file mode 100644 index 00000000..9e91b203 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Enderman.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Enderman extends org.bukkit.entity.Monster { + /** + * Gets the id and data of the block that the Enderman is carrying. + */ + // @ts-ignore + getCarriedMaterial(): org.bukkit.material.MaterialData; + /** + * Sets the id and data of the block that the Enderman is carrying. + */ + // @ts-ignore + setCarriedMaterial(material: org.bukkit.material.MaterialData): void; + /** + * Gets the data of the block that the Enderman is carrying. + */ + // @ts-ignore + getCarriedBlock(): org.bukkit.block.data.BlockData; + /** + * Sets the data of the block that the Enderman is carrying. + */ + // @ts-ignore + setCarriedBlock(blockData: org.bukkit.block.data.BlockData): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Endermite.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Endermite.d.ts new file mode 100644 index 00000000..933b33e8 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Endermite.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @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. + */ + // @ts-ignore + isPlayerSpawned(): boolean; + /** + * Sets whether this Endermite was spawned by a player. + * An Endermite spawned by a player will be attacked by nearby Enderman. + */ + // @ts-ignore + setPlayerSpawned(playerSpawned: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Entity.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Entity.d.ts new file mode 100644 index 00000000..232f5162 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Entity.d.ts @@ -0,0 +1,393 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace 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 + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getLocation(loc: org.bukkit.Location): org.bukkit.Location; + /** + * Sets this entity's velocity + */ + // @ts-ignore + setVelocity(velocity: org.bukkit.util.Vector): void; + /** + * Gets this entity's current velocity + */ + // @ts-ignore + getVelocity(): org.bukkit.util.Vector; + /** + * Gets the entity's height + */ + // @ts-ignore + getHeight(): number; + /** + * Gets the entity's width + */ + // @ts-ignore + getWidth(): number; + /** + * Gets the entity's current bounding box. + *

+ * The returned bounding box reflects the entity's current location and + * size. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + isOnGround(): boolean; + /** + * Gets the current world this entity resides in + */ + // @ts-ignore + getWorld(): org.bukkit.World; + /** + * Sets the entity's rotation. + *

+ * Note that if the entity is affected by AI, it may override this rotation. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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 + */ + // @ts-ignore + getNearbyEntities(x: number, y: number, z: number): java.util.List; + /** + * Returns a unique id for this entity + */ + // @ts-ignore + getEntityId(): number; + /** + * Returns the entity's current fire ticks (ticks before the entity stops + * being on fire). + */ + // @ts-ignore + getFireTicks(): number; + /** + * Returns the entity's maximum fire ticks. + */ + // @ts-ignore + getMaxFireTicks(): number; + /** + * Sets the entity's current fire ticks (ticks before the entity stops + * being on fire). + */ + // @ts-ignore + setFireTicks(ticks: number): void; + /** + * Mark the entity's removal. + */ + // @ts-ignore + remove(): void; + /** + * Returns true if this entity has been marked for removal. + */ + // @ts-ignore + isDead(): boolean; + /** + * Returns false if the entity has died or been despawned for some other + * reason. + */ + // @ts-ignore + isValid(): boolean; + /** + * Gets the {@link Server} that contains this Entity + */ + // @ts-ignore + getServer(): org.bukkit.Server; + /** + * Returns true if the entity gets persisted. + *

+ * By default all entities are persistent. An entity will also not get + * persisted, if it is riding an entity that is not persistent. + *

+ * The persistent flag on players controls whether or not to save their + * playerdata file when they quit. If a player is directly or indirectly + * riding a non-persistent entity, the vehicle at the root and all its + * passengers won't get persisted. + *

+ * This should not be confused with + * {@link LivingEntity#setRemoveWhenFarAway(boolean)} which controls + * despawning of living entities. + */ + // @ts-ignore + isPersistent(): boolean; + /** + * Sets whether or not the entity gets persisted. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getPassenger(): org.bukkit.entity.Entity; + /** + * Set the passenger of a vehicle. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getPassengers(): java.util.List; + /** + * Add a passenger to the vehicle. + */ + // @ts-ignore + addPassenger(passenger: org.bukkit.entity.Entity): boolean; + /** + * Remove a passenger from the vehicle. + */ + // @ts-ignore + removePassenger(passenger: org.bukkit.entity.Entity): boolean; + /** + * Check if a vehicle has passengers. + */ + // @ts-ignore + isEmpty(): boolean; + /** + * Eject any passenger. + */ + // @ts-ignore + eject(): boolean; + /** + * Returns the distance this entity has fallen + */ + // @ts-ignore + getFallDistance(): number; + /** + * Sets the fall distance for this entity + */ + // @ts-ignore + setFallDistance(distance: number): void; + /** + * Record the last {@link EntityDamageEvent} inflicted on this entity + */ + // @ts-ignore + setLastDamageCause(event: org.bukkit.event.entity.EntityDamageEvent): void; + /** + * Retrieve the last {@link EntityDamageEvent} inflicted on this entity. + * This event may have been cancelled. + */ + // @ts-ignore + getLastDamageCause(): org.bukkit.event.entity.EntityDamageEvent; + /** + * Returns a unique and persistent id for this entity + */ + // @ts-ignore + getUniqueId(): java.util.UUID; + /** + * Gets the amount of ticks this entity has lived for. + *

+ * This is the equivalent to "age" in entities. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + setTicksLived(value: number): void; + /** + * Performs the specified {@link EntityEffect} for this entity. + *

+ * This will be viewable to all players near the entity. + *

+ * If the effect is not applicable to this class of entity, it will not play. + */ + // @ts-ignore + playEffect(type: org.bukkit.EntityEffect): void; + /** + * Get the type of the entity. + */ + // @ts-ignore + getType(): org.bukkit.entity.EntityType; + /** + * Returns whether this entity is inside a vehicle. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + leaveVehicle(): boolean; + /** + * Get the vehicle that this player is inside. If there is no vehicle, + * null will be returned. + */ + // @ts-ignore + 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. + *

+ * This value has no effect on players, they will always display their + * name. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + isCustomNameVisible(): boolean; + /** + * Sets whether the entity has a team colored (default: white) glow. + */ + // @ts-ignore + setGlowing(flag: boolean): void; + /** + * Gets whether the entity is glowing or not. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + setInvulnerable(flag: boolean): void; + /** + * Gets whether the entity is invulnerable or not. + */ + // @ts-ignore + isInvulnerable(): boolean; + /** + * Gets whether the entity is silent or not. + */ + // @ts-ignore + isSilent(): boolean; + /** + * Sets whether the entity is silent or not. + *

+ * When an entity is silent it will not produce any sound. + */ + // @ts-ignore + setSilent(flag: boolean): void; + /** + * Returns whether gravity applies to this entity. + */ + // @ts-ignore + hasGravity(): boolean; + /** + * Sets whether gravity applies to this entity. + */ + // @ts-ignore + setGravity(gravity: boolean): void; + /** + * Gets the period of time (in ticks) before this entity can use a portal. + */ + // @ts-ignore + getPortalCooldown(): number; + /** + * Sets the period of time (in ticks) before this entity can use a portal. + */ + // @ts-ignore + setPortalCooldown(cooldown: number): void; + /** + * Returns a set of tags for this entity. + *
+ * Entities can have no more than 1024 tags. + */ + // @ts-ignore + getScoreboardTags(): java.util.Set; + /** + * Add a tag to this entity. + *
+ * Entities can have no more than 1024 tags. + */ + // @ts-ignore + addScoreboardTag(tag: string): boolean; + /** + * Removes a given tag from this entity. + */ + // @ts-ignore + removeScoreboardTag(tag: string): boolean; + /** + * Returns the reaction of the entity when moved by a piston. + */ + // @ts-ignore + getPistonMoveReaction(): org.bukkit.block.PistonMoveReaction; + /** + * Get the closest cardinal {@link BlockFace} direction an entity is + * currently facing. + *
+ * This will not return any non-cardinal directions such as + * {@link BlockFace#UP} or {@link BlockFace#DOWN}. + *
+ * {@link Hanging} entities will override this call and thus their behavior + * may be different. + */ + // @ts-ignore + 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} + */ + // @ts-ignore + getPose(): org.bukkit.entity.Pose; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.EntityType.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.EntityType.d.ts new file mode 100644 index 00000000..80ef41a3 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.EntityType.d.ts @@ -0,0 +1,242 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + class EntityType extends java.lang.Enum implements org.bukkit.Keyed { + // @ts-ignore + public static DROPPED_ITEM: org.bukkit.entity.EntityType; + // @ts-ignore + public static EXPERIENCE_ORB: org.bukkit.entity.EntityType; + // @ts-ignore + public static AREA_EFFECT_CLOUD: org.bukkit.entity.EntityType; + // @ts-ignore + public static ELDER_GUARDIAN: org.bukkit.entity.EntityType; + // @ts-ignore + public static WITHER_SKELETON: org.bukkit.entity.EntityType; + // @ts-ignore + public static STRAY: org.bukkit.entity.EntityType; + // @ts-ignore + public static EGG: org.bukkit.entity.EntityType; + // @ts-ignore + public static LEASH_HITCH: org.bukkit.entity.EntityType; + // @ts-ignore + public static PAINTING: org.bukkit.entity.EntityType; + // @ts-ignore + public static ARROW: org.bukkit.entity.EntityType; + // @ts-ignore + public static SNOWBALL: org.bukkit.entity.EntityType; + // @ts-ignore + public static FIREBALL: org.bukkit.entity.EntityType; + // @ts-ignore + public static SMALL_FIREBALL: org.bukkit.entity.EntityType; + // @ts-ignore + public static ENDER_PEARL: org.bukkit.entity.EntityType; + // @ts-ignore + public static ENDER_SIGNAL: org.bukkit.entity.EntityType; + // @ts-ignore + public static SPLASH_POTION: org.bukkit.entity.EntityType; + // @ts-ignore + public static THROWN_EXP_BOTTLE: org.bukkit.entity.EntityType; + // @ts-ignore + public static ITEM_FRAME: org.bukkit.entity.EntityType; + // @ts-ignore + public static WITHER_SKULL: org.bukkit.entity.EntityType; + // @ts-ignore + public static PRIMED_TNT: org.bukkit.entity.EntityType; + // @ts-ignore + public static FALLING_BLOCK: org.bukkit.entity.EntityType; + // @ts-ignore + public static FIREWORK: org.bukkit.entity.EntityType; + // @ts-ignore + public static HUSK: org.bukkit.entity.EntityType; + // @ts-ignore + public static SPECTRAL_ARROW: org.bukkit.entity.EntityType; + // @ts-ignore + public static SHULKER_BULLET: org.bukkit.entity.EntityType; + // @ts-ignore + public static DRAGON_FIREBALL: org.bukkit.entity.EntityType; + // @ts-ignore + public static ZOMBIE_VILLAGER: org.bukkit.entity.EntityType; + // @ts-ignore + public static SKELETON_HORSE: org.bukkit.entity.EntityType; + // @ts-ignore + public static ZOMBIE_HORSE: org.bukkit.entity.EntityType; + // @ts-ignore + public static ARMOR_STAND: org.bukkit.entity.EntityType; + // @ts-ignore + public static DONKEY: org.bukkit.entity.EntityType; + // @ts-ignore + public static MULE: org.bukkit.entity.EntityType; + // @ts-ignore + public static EVOKER_FANGS: org.bukkit.entity.EntityType; + // @ts-ignore + public static EVOKER: org.bukkit.entity.EntityType; + // @ts-ignore + public static VEX: org.bukkit.entity.EntityType; + // @ts-ignore + public static VINDICATOR: org.bukkit.entity.EntityType; + // @ts-ignore + public static ILLUSIONER: org.bukkit.entity.EntityType; + // @ts-ignore + public static MINECART_COMMAND: org.bukkit.entity.EntityType; + // @ts-ignore + public static BOAT: org.bukkit.entity.EntityType; + // @ts-ignore + public static MINECART: org.bukkit.entity.EntityType; + // @ts-ignore + public static MINECART_CHEST: org.bukkit.entity.EntityType; + // @ts-ignore + public static MINECART_FURNACE: org.bukkit.entity.EntityType; + // @ts-ignore + public static MINECART_TNT: org.bukkit.entity.EntityType; + // @ts-ignore + public static MINECART_HOPPER: org.bukkit.entity.EntityType; + // @ts-ignore + public static MINECART_MOB_SPAWNER: org.bukkit.entity.EntityType; + // @ts-ignore + public static CREEPER: org.bukkit.entity.EntityType; + // @ts-ignore + public static SKELETON: org.bukkit.entity.EntityType; + // @ts-ignore + public static SPIDER: org.bukkit.entity.EntityType; + // @ts-ignore + public static GIANT: org.bukkit.entity.EntityType; + // @ts-ignore + public static ZOMBIE: org.bukkit.entity.EntityType; + // @ts-ignore + public static SLIME: org.bukkit.entity.EntityType; + // @ts-ignore + public static GHAST: org.bukkit.entity.EntityType; + // @ts-ignore + public static PIG_ZOMBIE: org.bukkit.entity.EntityType; + // @ts-ignore + public static ENDERMAN: org.bukkit.entity.EntityType; + // @ts-ignore + public static CAVE_SPIDER: org.bukkit.entity.EntityType; + // @ts-ignore + public static SILVERFISH: org.bukkit.entity.EntityType; + // @ts-ignore + public static BLAZE: org.bukkit.entity.EntityType; + // @ts-ignore + public static MAGMA_CUBE: org.bukkit.entity.EntityType; + // @ts-ignore + public static ENDER_DRAGON: org.bukkit.entity.EntityType; + // @ts-ignore + public static WITHER: org.bukkit.entity.EntityType; + // @ts-ignore + public static BAT: org.bukkit.entity.EntityType; + // @ts-ignore + public static WITCH: org.bukkit.entity.EntityType; + // @ts-ignore + public static ENDERMITE: org.bukkit.entity.EntityType; + // @ts-ignore + public static GUARDIAN: org.bukkit.entity.EntityType; + // @ts-ignore + public static SHULKER: org.bukkit.entity.EntityType; + // @ts-ignore + public static PIG: org.bukkit.entity.EntityType; + // @ts-ignore + public static SHEEP: org.bukkit.entity.EntityType; + // @ts-ignore + public static COW: org.bukkit.entity.EntityType; + // @ts-ignore + public static CHICKEN: org.bukkit.entity.EntityType; + // @ts-ignore + public static SQUID: org.bukkit.entity.EntityType; + // @ts-ignore + public static WOLF: org.bukkit.entity.EntityType; + // @ts-ignore + public static MUSHROOM_COW: org.bukkit.entity.EntityType; + // @ts-ignore + public static SNOWMAN: org.bukkit.entity.EntityType; + // @ts-ignore + public static OCELOT: org.bukkit.entity.EntityType; + // @ts-ignore + public static IRON_GOLEM: org.bukkit.entity.EntityType; + // @ts-ignore + public static HORSE: org.bukkit.entity.EntityType; + // @ts-ignore + public static RABBIT: org.bukkit.entity.EntityType; + // @ts-ignore + public static POLAR_BEAR: org.bukkit.entity.EntityType; + // @ts-ignore + public static LLAMA: org.bukkit.entity.EntityType; + // @ts-ignore + public static LLAMA_SPIT: org.bukkit.entity.EntityType; + // @ts-ignore + public static PARROT: org.bukkit.entity.EntityType; + // @ts-ignore + public static VILLAGER: org.bukkit.entity.EntityType; + // @ts-ignore + public static ENDER_CRYSTAL: org.bukkit.entity.EntityType; + // @ts-ignore + public static TURTLE: org.bukkit.entity.EntityType; + // @ts-ignore + public static PHANTOM: org.bukkit.entity.EntityType; + // @ts-ignore + public static TRIDENT: org.bukkit.entity.EntityType; + // @ts-ignore + public static COD: org.bukkit.entity.EntityType; + // @ts-ignore + public static SALMON: org.bukkit.entity.EntityType; + // @ts-ignore + public static PUFFERFISH: org.bukkit.entity.EntityType; + // @ts-ignore + public static TROPICAL_FISH: org.bukkit.entity.EntityType; + // @ts-ignore + public static DROWNED: org.bukkit.entity.EntityType; + // @ts-ignore + public static DOLPHIN: org.bukkit.entity.EntityType; + // @ts-ignore + public static CAT: org.bukkit.entity.EntityType; + // @ts-ignore + public static PANDA: org.bukkit.entity.EntityType; + // @ts-ignore + public static PILLAGER: org.bukkit.entity.EntityType; + // @ts-ignore + public static RAVAGER: org.bukkit.entity.EntityType; + // @ts-ignore + public static TRADER_LLAMA: org.bukkit.entity.EntityType; + // @ts-ignore + public static WANDERING_TRADER: org.bukkit.entity.EntityType; + // @ts-ignore + public static FOX: org.bukkit.entity.EntityType; + // @ts-ignore + public static FISHING_HOOK: org.bukkit.entity.EntityType; + // @ts-ignore + public static LIGHTNING: org.bukkit.entity.EntityType; + // @ts-ignore + public static PLAYER: org.bukkit.entity.EntityType; + // @ts-ignore + public static UNKNOWN: org.bukkit.entity.EntityType; + // @ts-ignore + public static values(): org.bukkit.entity.EntityType[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.entity.EntityType; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getKey(): org.bukkit.NamespacedKey; + // @ts-ignore + public getEntityClass(): java.lang.Class; + // @ts-ignore + public getTypeId(): number; + // @ts-ignore + public static fromName(name: string): org.bukkit.entity.EntityType; + // @ts-ignore + public static fromId(id: number): org.bukkit.entity.EntityType; + /** + * Some entities cannot be spawned using {@link + * World#spawnEntity(Location, EntityType)} or {@link + * World#spawn(Location, Class)}, usually because they require additional + * information in order to spawn. + */ + // @ts-ignore + public isSpawnable(): boolean; + // @ts-ignore + public isAlive(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Evoker.Spell.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Evoker.Spell.d.ts new file mode 100644 index 00000000..3db6e324 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Evoker.Spell.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + namespace Evoker { + // @ts-ignore + class Spell extends java.lang.Enum { + // @ts-ignore + public static NONE: org.bukkit.entity.Evoker.Spell; + // @ts-ignore + public static SUMMON: org.bukkit.entity.Evoker.Spell; + // @ts-ignore + public static FANGS: org.bukkit.entity.Evoker.Spell; + // @ts-ignore + public static WOLOLO: org.bukkit.entity.Evoker.Spell; + // @ts-ignore + public static DISAPPEAR: org.bukkit.entity.Evoker.Spell; + // @ts-ignore + public static BLINDNESS: org.bukkit.entity.Evoker.Spell; + // @ts-ignore + public static values(): org.bukkit.entity.Evoker.Spell[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.entity.Evoker.Spell; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Evoker.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Evoker.d.ts new file mode 100644 index 00000000..6a2c68c2 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Evoker.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Evoker extends org.bukkit.entity.Spellcaster { + /** + * Gets the {@link Spell} the Evoker is currently using. + */ + // @ts-ignore + getCurrentSpell(): org.bukkit.entity.Evoker.Spell; + /** + * Sets the {@link Spell} the Evoker is currently using. + */ + // @ts-ignore + setCurrentSpell(spell: org.bukkit.entity.Evoker.Spell): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.EvokerFangs.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.EvokerFangs.d.ts new file mode 100644 index 00000000..647406f6 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.EvokerFangs.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface EvokerFangs extends org.bukkit.entity.Entity { + /** + * Gets the {@link LivingEntity} which summoned the fangs. + */ + // @ts-ignore + getOwner(): org.bukkit.entity.LivingEntity; + /** + * Sets the {@link LivingEntity} which summoned the fangs. + */ + // @ts-ignore + setOwner(owner: org.bukkit.entity.LivingEntity): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.ExperienceOrb.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.ExperienceOrb.d.ts new file mode 100644 index 00000000..362ad6cd --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.ExperienceOrb.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface ExperienceOrb extends org.bukkit.entity.Entity { + /** + * Gets how much experience is contained within this orb + */ + // @ts-ignore + getExperience(): number; + /** + * Sets how much experience is contained within this orb + */ + // @ts-ignore + setExperience(value: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Explosive.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Explosive.d.ts new file mode 100644 index 00000000..c7c5535b --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Explosive.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Explosive extends org.bukkit.entity.Entity { + /** + * Set the radius affected by this explosive's explosion + */ + // @ts-ignore + setYield(yield: number): void; + /** + * Return the radius or yield of this explosive's explosion + */ + // @ts-ignore + getYield(): number; + /** + * Set whether or not this explosive's explosion causes fire + */ + // @ts-ignore + setIsIncendiary(isIncendiary: boolean): void; + /** + * Return whether or not this explosive creates a fire when exploding + */ + // @ts-ignore + isIncendiary(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.FallingBlock.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.FallingBlock.d.ts new file mode 100644 index 00000000..09140637 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.FallingBlock.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface FallingBlock extends org.bukkit.entity.Entity { + /** + * Get the Material of the falling block + */ + // @ts-ignore + getMaterial(): org.bukkit.Material; + /** + * Get the data for the falling block + */ + // @ts-ignore + getBlockData(): org.bukkit.block.data.BlockData; + /** + * Get if the falling block will break into an item if it cannot be placed + */ + // @ts-ignore + getDropItem(): boolean; + /** + * Set if the falling block will break into an item if it cannot be placed + */ + // @ts-ignore + setDropItem(drop: boolean): void; + /** + * Get the HurtEntities state of this block. + */ + // @ts-ignore + canHurtEntities(): boolean; + /** + * Set the HurtEntities state of this block. + */ + // @ts-ignore + setHurtEntities(hurtEntities: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Fireball.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Fireball.d.ts new file mode 100644 index 00000000..0207b9b1 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Fireball.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Fireball extends org.bukkit.entity.Projectile, org.bukkit.entity.Explosive { + /** + * Fireballs fly straight and do not take setVelocity(...) well. + */ + // @ts-ignore + setDirection(direction: org.bukkit.util.Vector): void; + /** + * Retrieve the direction this fireball is heading toward + */ + // @ts-ignore + getDirection(): org.bukkit.util.Vector; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Firework.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Firework.d.ts new file mode 100644 index 00000000..50d7bdea --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Firework.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Firework extends org.bukkit.entity.Entity { + /** + * Get a copy of the fireworks meta + */ + // @ts-ignore + getFireworkMeta(): org.bukkit.inventory.meta.FireworkMeta; + /** + * Apply the provided meta to the fireworks + */ + // @ts-ignore + setFireworkMeta(meta: org.bukkit.inventory.meta.FireworkMeta): void; + /** + * Cause this firework to explode at earliest opportunity, as if it has no + * remaining fuse. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + setShotAtAngle(shotAtAngle: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Fish.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Fish.d.ts new file mode 100644 index 00000000..9d68ae63 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Fish.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Fish extends org.bukkit.entity.WaterMob { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.FishHook.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.FishHook.d.ts new file mode 100644 index 00000000..fdfb0011 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.FishHook.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface FishHook extends org.bukkit.entity.Projectile { + /** + * Gets the chance of a fish biting. + *

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

+ * 0.0 = No Chance.
+ * 1.0 = Instant catch. + */ + // @ts-ignore + setBiteChance(chance: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Flying.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Flying.d.ts new file mode 100644 index 00000000..5f77613b --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Flying.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Flying extends org.bukkit.entity.Mob { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Fox.Type.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Fox.Type.d.ts new file mode 100644 index 00000000..767f40fa --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Fox.Type.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + namespace Fox { + // @ts-ignore + class Type extends java.lang.Enum { + // @ts-ignore + public static RED: org.bukkit.entity.Fox.Type; + // @ts-ignore + public static SNOW: org.bukkit.entity.Fox.Type; + // @ts-ignore + public static values(): org.bukkit.entity.Fox.Type[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.entity.Fox.Type; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Fox.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Fox.d.ts new file mode 100644 index 00000000..86103262 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Fox.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Fox extends org.bukkit.entity.Animals, org.bukkit.entity.Sittable { + /** + * Gets the current type of this fox. + */ + // @ts-ignore + getFoxType(): org.bukkit.entity.Fox.Type; + /** + * Sets the current type of this fox. + */ + // @ts-ignore + setFoxType(type: org.bukkit.entity.Fox.Type): void; + /** + * Checks if this animal is crouching + */ + // @ts-ignore + isCrouching(): boolean; + /** + * Sets if this animal is crouching. + */ + // @ts-ignore + setCrouching(crouching: boolean): void; + /** + * Sets if this animal is sleeping. + */ + // @ts-ignore + setSleeping(sleeping: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Ghast.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Ghast.d.ts new file mode 100644 index 00000000..1be7b33e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Ghast.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Ghast extends org.bukkit.entity.Flying { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Giant.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Giant.d.ts new file mode 100644 index 00000000..257c3586 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Giant.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Giant extends org.bukkit.entity.Monster { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Golem.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Golem.d.ts new file mode 100644 index 00000000..434ecd64 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Golem.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Golem extends org.bukkit.entity.Creature { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Guardian.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Guardian.d.ts new file mode 100644 index 00000000..6bf4f1cf --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Guardian.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Guardian extends org.bukkit.entity.Monster { + /** + * Check if the Guardian is an elder Guardian + */ + // @ts-ignore + isElder(): boolean; + // @ts-ignore + setElder(shouldBeElder: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Hanging.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Hanging.d.ts new file mode 100644 index 00000000..644d58ad --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Hanging.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @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. + */ + // @ts-ignore + setFacingDirection(face: org.bukkit.block.BlockFace, force: boolean): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Horse.Color.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Horse.Color.d.ts new file mode 100644 index 00000000..c0f823e0 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Horse.Color.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + namespace Horse { + // @ts-ignore + class Color extends java.lang.Enum { + // @ts-ignore + public static WHITE: org.bukkit.entity.Horse.Color; + // @ts-ignore + public static CREAMY: org.bukkit.entity.Horse.Color; + // @ts-ignore + public static CHESTNUT: org.bukkit.entity.Horse.Color; + // @ts-ignore + public static BROWN: org.bukkit.entity.Horse.Color; + // @ts-ignore + public static BLACK: org.bukkit.entity.Horse.Color; + // @ts-ignore + public static GRAY: org.bukkit.entity.Horse.Color; + // @ts-ignore + public static DARK_BROWN: org.bukkit.entity.Horse.Color; + // @ts-ignore + public static values(): org.bukkit.entity.Horse.Color[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.entity.Horse.Color; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Horse.Style.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Horse.Style.d.ts new file mode 100644 index 00000000..2ffbf81f --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Horse.Style.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + namespace Horse { + // @ts-ignore + class Style extends java.lang.Enum { + // @ts-ignore + public static NONE: org.bukkit.entity.Horse.Style; + // @ts-ignore + public static WHITE: org.bukkit.entity.Horse.Style; + // @ts-ignore + public static WHITEFIELD: org.bukkit.entity.Horse.Style; + // @ts-ignore + public static WHITE_DOTS: org.bukkit.entity.Horse.Style; + // @ts-ignore + public static BLACK_DOTS: org.bukkit.entity.Horse.Style; + // @ts-ignore + public static values(): org.bukkit.entity.Horse.Style[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.entity.Horse.Style; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Horse.Variant.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Horse.Variant.d.ts new file mode 100644 index 00000000..de994182 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Horse.Variant.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + namespace Horse { + // @ts-ignore + class Variant extends java.lang.Enum { + // @ts-ignore + public static HORSE: org.bukkit.entity.Horse.Variant; + // @ts-ignore + public static DONKEY: org.bukkit.entity.Horse.Variant; + // @ts-ignore + public static MULE: org.bukkit.entity.Horse.Variant; + // @ts-ignore + public static UNDEAD_HORSE: org.bukkit.entity.Horse.Variant; + // @ts-ignore + public static SKELETON_HORSE: org.bukkit.entity.Horse.Variant; + // @ts-ignore + public static LLAMA: org.bukkit.entity.Horse.Variant; + // @ts-ignore + public static values(): org.bukkit.entity.Horse.Variant[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.entity.Horse.Variant; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Horse.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Horse.d.ts new file mode 100644 index 00000000..1b387530 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Horse.d.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + setColor(color: org.bukkit.entity.Horse.Color): void; + /** + * Gets the horse's style. + * Styles determine what kind of markings or patterns a horse has. + *

+ * Styles only apply to horses, not to donkeys, mules, skeleton horses + * or undead horses. + */ + // @ts-ignore + getStyle(): org.bukkit.entity.Horse.Style; + /** + * Sets the style of this horse. + * Styles determine what kind of markings or patterns a horse has. + *

+ * Attempting to set a style for any donkey, mule, skeleton horse or + * undead horse will not result in a change. + */ + // @ts-ignore + setStyle(style: org.bukkit.entity.Horse.Style): void; + // @ts-ignore + isCarryingChest(): boolean; + // @ts-ignore + setCarryingChest(chest: boolean): void; + // @ts-ignore + getInventory(): org.bukkit.inventory.HorseInventory; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.HumanEntity.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.HumanEntity.d.ts new file mode 100644 index 00000000..aeeb6974 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.HumanEntity.d.ts @@ -0,0 +1,268 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface HumanEntity extends org.bukkit.entity.LivingEntity, org.bukkit.entity.AnimalTamer, org.bukkit.inventory.InventoryHolder { + /** + * Returns the name of this player + */ + // @ts-ignore + getName(): string; + /** + * Get the player's inventory. + */ + // @ts-ignore + getInventory(): org.bukkit.inventory.PlayerInventory; + /** + * Get the player's EnderChest inventory + */ + // @ts-ignore + getEnderChest(): org.bukkit.inventory.Inventory; + /** + * Gets the player's selected main hand + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getOpenInventory(): org.bukkit.inventory.InventoryView; + /** + * Opens an inventory window with the specified inventory on the top and + * the player's inventory on the bottom. + */ + // @ts-ignore + openInventory(inventory: org.bukkit.inventory.Inventory): org.bukkit.inventory.InventoryView; + /** + * Opens an empty workbench inventory window with the player's inventory + * on the bottom. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + openEnchanting(location: org.bukkit.Location, force: boolean): org.bukkit.inventory.InventoryView; + /** + * Opens an inventory window to the specified inventory view. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + openMerchant(merchant: org.bukkit.inventory.Merchant, force: boolean): org.bukkit.inventory.InventoryView; + /** + * Force-closes the currently open inventory view for this player, if any. + */ + // @ts-ignore + closeInventory(): void; + /** + * Returns the ItemStack currently in your hand, can be empty. + */ + // @ts-ignore + getItemInHand(): org.bukkit.inventory.ItemStack; + /** + * Sets the item to the given ItemStack, this will replace whatever the + * user was holding. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + setItemOnCursor(item: org.bukkit.inventory.ItemStack): void; + /** + * Check whether a cooldown is active on the specified material. + */ + // @ts-ignore + hasCooldown(material: org.bukkit.Material): boolean; + /** + * Get the cooldown time in ticks remaining for the specified material. + */ + // @ts-ignore + 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. + *

+ * Cooldowns are used by the server for items such as ender pearls and + * shields to prevent them from being used repeatedly. + *

+ * Note that cooldowns will not by themselves stop an item from being used + * for attacking. + */ + // @ts-ignore + setCooldown(material: org.bukkit.Material, ticks: number): void; + /** + * Get the sleep ticks of the player. This value may be capped. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getBedSpawnLocation(): org.bukkit.Location; + /** + * Sets the Location where the player will spawn at their bed. + */ + // @ts-ignore + setBedSpawnLocation(location: org.bukkit.Location): void; + /** + * Sets the Location where the player will spawn at their bed. + */ + // @ts-ignore + setBedSpawnLocation(location: org.bukkit.Location, force: boolean): void; + /** + * Attempts to make the entity sleep at the given location. + *
+ * The location must be in the current world and have a bed placed at the + * location. The game may also enforce other requirements such as proximity + * to bed, monsters, and dimension type if force is not set. + */ + // @ts-ignore + sleep(location: org.bukkit.Location, force: boolean): boolean; + /** + * Causes the player to wakeup if they are currently sleeping. + */ + // @ts-ignore + wakeup(setSpawnLocation: boolean): void; + /** + * Gets the location of the bed the player is currently sleeping in + */ + // @ts-ignore + getBedLocation(): org.bukkit.Location; + /** + * Gets this human's current {@link GameMode} + */ + // @ts-ignore + getGameMode(): org.bukkit.GameMode; + /** + * Sets this human's current {@link GameMode} + */ + // @ts-ignore + setGameMode(mode: org.bukkit.GameMode): void; + /** + * Check if the player is currently blocking (ie with a shield). + */ + // @ts-ignore + isBlocking(): boolean; + /** + * Check if the player currently has their hand raised (ie about to begin + * blocking). + */ + // @ts-ignore + isHandRaised(): boolean; + /** + * Get the total amount of experience required for the player to level + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + discoverRecipes(recipes: 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + undiscoverRecipes(recipes: java.util.Collection): number; + /** + * Gets the entity currently perched on the left shoulder or null if no + * entity. + *
+ * The returned entity will not be spawned within the world, so most + * operations are invalid unless the entity is first spawned in. + */ + // @ts-ignore + 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. + *
+ * Note that only a copy of the entity will be set to display on the + * shoulder. + *
+ * Also note that the client will currently only render {@link Parrot} + * entities. + */ + // @ts-ignore + setShoulderEntityLeft(entity: org.bukkit.entity.Entity): void; + /** + * Gets the entity currently perched on the right shoulder or null if no + * entity. + *
+ * The returned entity will not be spawned within the world, so most + * operations are invalid unless the entity is first spawned in. + */ + // @ts-ignore + 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. + *
+ * Note that only a copy of the entity will be set to display on the + * shoulder. + *
+ * Also note that the client will currently only render {@link Parrot} + * entities. + */ + // @ts-ignore + setShoulderEntityRight(entity: org.bukkit.entity.Entity): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Husk.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Husk.d.ts new file mode 100644 index 00000000..77d79058 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Husk.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getConversionTime(): number; + /** + * Sets 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. A value of less than 0 + * will stop the current conversion process without converting the current + * entity. + */ + // @ts-ignore + setConversionTime(time: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Illager.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Illager.d.ts new file mode 100644 index 00000000..a09afb5c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Illager.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Illager extends org.bukkit.entity.Raider { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Illusioner.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Illusioner.d.ts new file mode 100644 index 00000000..b679128b --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Illusioner.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Illusioner extends org.bukkit.entity.Spellcaster { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.IronGolem.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.IronGolem.d.ts new file mode 100644 index 00000000..3ad7cb7c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.IronGolem.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface IronGolem extends org.bukkit.entity.Golem { + /** + * Gets whether this iron golem was built by a player. + */ + // @ts-ignore + isPlayerCreated(): boolean; + /** + * Sets whether this iron golem was built by a player or not. + */ + // @ts-ignore + setPlayerCreated(playerCreated: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Item.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Item.d.ts new file mode 100644 index 00000000..22515b5f --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Item.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Item extends org.bukkit.entity.Entity { + /** + * Gets the item stack associated with this item drop. + */ + // @ts-ignore + getItemStack(): org.bukkit.inventory.ItemStack; + /** + * Sets the item stack associated with this item drop. + */ + // @ts-ignore + setItemStack(stack: org.bukkit.inventory.ItemStack): void; + /** + * Gets the delay before this Item is available to be picked up by players + */ + // @ts-ignore + getPickupDelay(): number; + /** + * Sets the delay before this Item is available to be picked up by players + */ + // @ts-ignore + setPickupDelay(delay: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.ItemFrame.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.ItemFrame.d.ts new file mode 100644 index 00000000..20443846 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.ItemFrame.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface ItemFrame extends org.bukkit.entity.Hanging { + /** + * Get the item in this frame + */ + // @ts-ignore + getItem(): org.bukkit.inventory.ItemStack; + /** + * Set the item in this frame + */ + // @ts-ignore + setItem(item: org.bukkit.inventory.ItemStack): void; + /** + * Set the item in this frame + */ + // @ts-ignore + setItem(item: org.bukkit.inventory.ItemStack, playSound: boolean): void; + /** + * Get the rotation of the frame's item + */ + // @ts-ignore + getRotation(): org.bukkit.Rotation; + /** + * Set the rotation of the frame's item + */ + // @ts-ignore + setRotation(rotation: org.bukkit.Rotation): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.LargeFireball.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.LargeFireball.d.ts new file mode 100644 index 00000000..5f79f994 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.LargeFireball.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface LargeFireball extends org.bukkit.entity.Fireball { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.LeashHitch.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.LeashHitch.d.ts new file mode 100644 index 00000000..b15b79f4 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.LeashHitch.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface LeashHitch extends org.bukkit.entity.Hanging { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.LightningStrike.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.LightningStrike.d.ts new file mode 100644 index 00000000..2adcb431 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.LightningStrike.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface LightningStrike extends org.bukkit.entity.Entity { + /** + * Returns whether the strike is an effect that does no damage. + */ + // @ts-ignore + isEffect(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.LingeringPotion.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.LingeringPotion.d.ts new file mode 100644 index 00000000..636800e4 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.LingeringPotion.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface LingeringPotion extends org.bukkit.entity.ThrownPotion { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.LivingEntity.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.LivingEntity.d.ts new file mode 100644 index 00000000..a6d02b80 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.LivingEntity.d.ts @@ -0,0 +1,335 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @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. + */ + // @ts-ignore + getEyeHeight(): number; + /** + * Gets the height of the living entity's eyes above its Location. + */ + // @ts-ignore + getEyeHeight(ignorePose: boolean): number; + /** + * Get a Location detailing the current eye position of the living entity. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getLineOfSight(transparent: java.util.Set, maxDistance: number): java.util.List; + /** + * Gets the block that the living entity has targeted. + *

+ * This method considers all blocks as 1x1x1 in size. To take exact block + * collision shapes into account, see {@link #getTargetBlockExact(int, + * FluidCollisionMode)}. + */ + // @ts-ignore + getTargetBlock(transparent: 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. + */ + // @ts-ignore + getLastTwoTargetBlocks(transparent: java.util.Set, maxDistance: number): java.util.List; + /** + * Gets the block that the living entity has targeted. + *

+ * This takes the blocks' precise collision shapes into account. Fluids are + * ignored. + *

+ * This may cause loading of chunks! Some implementations may impose + * artificial restrictions on the maximum distance. + */ + // @ts-ignore + getTargetBlockExact(maxDistance: number): org.bukkit.block.Block; + /** + * Gets the block that the living entity has targeted. + *

+ * This takes the blocks' precise collision shapes into account. + *

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

+ * This takes the blocks' precise collision shapes into account. Fluids are + * ignored. + *

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

+ * This takes the blocks' precise collision shapes into account. + *

+ * This may cause loading of chunks! Some implementations may impose + * artificial restrictions on the maximum distance. + */ + // @ts-ignore + rayTraceBlocks(maxDistance: number, fluidCollisionMode: org.bukkit.FluidCollisionMode): org.bukkit.util.RayTraceResult; + /** + * Returns the amount of air that the living entity has remaining, in + * ticks. + */ + // @ts-ignore + getRemainingAir(): number; + /** + * Sets the amount of air that the living entity has remaining, in ticks. + */ + // @ts-ignore + setRemainingAir(ticks: number): void; + /** + * Returns the maximum amount of air the living entity can have, in ticks. + */ + // @ts-ignore + getMaximumAir(): number; + /** + * Sets the maximum amount of air the living entity can have, in ticks. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getMaximumNoDamageTicks(): number; + /** + * Sets the living entity's current maximum no damage ticks. + */ + // @ts-ignore + setMaximumNoDamageTicks(ticks: number): void; + /** + * Returns the living entity's last damage taken in the current no damage + * ticks time. + *

+ * Only damage higher than this amount will further damage the living + * entity. + */ + // @ts-ignore + getLastDamage(): number; + /** + * Sets the damage dealt within the current no damage ticks time period. + */ + // @ts-ignore + setLastDamage(damage: number): void; + /** + * Returns the living entity's current no damage ticks. + */ + // @ts-ignore + getNoDamageTicks(): number; + /** + * Sets the living entity's current no damage ticks. + */ + // @ts-ignore + setNoDamageTicks(ticks: number): void; + /** + * Gets the player identified as the killer of the living entity. + *

+ * May be null. + */ + // @ts-ignore + 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}. + */ + // @ts-ignore + 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}. + */ + // @ts-ignore + addPotionEffect(effect: org.bukkit.potion.PotionEffect, force: boolean): boolean; + /** + * Attempts to add all of the given {@link PotionEffect} to the living + * entity. + */ + // @ts-ignore + addPotionEffects(effects: java.util.Collection): boolean; + /** + * Returns whether the living entity already has an existing effect of + * the given {@link PotionEffectType} applied to it. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getPotionEffect(type: org.bukkit.potion.PotionEffectType): org.bukkit.potion.PotionEffect; + /** + * Removes any effects present of the given {@link PotionEffectType}. + */ + // @ts-ignore + removePotionEffect(type: org.bukkit.potion.PotionEffectType): void; + /** + * Returns all currently active {@link PotionEffect}s on the living + * entity. + */ + // @ts-ignore + getActivePotionEffects(): 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getRemoveWhenFarAway(): boolean; + /** + * Sets whether or not the living entity despawns when away from players + * or not. + */ + // @ts-ignore + setRemoveWhenFarAway(remove: boolean): void; + /** + * Gets the inventory with the equipment worn by the living entity. + */ + // @ts-ignore + getEquipment(): org.bukkit.inventory.EntityEquipment; + /** + * Sets whether or not the living entity can pick up items. + */ + // @ts-ignore + setCanPickupItems(pickup: boolean): void; + /** + * Gets if the living entity can pick up items. + */ + // @ts-ignore + getCanPickupItems(): boolean; + /** + * Returns whether the entity is currently leashed. + */ + // @ts-ignore + isLeashed(): boolean; + /** + * Gets the entity that is currently leading this entity. + */ + // @ts-ignore + getLeashHolder(): org.bukkit.entity.Entity; + /** + * Sets the leash on this entity to be held by the supplied entity. + *

+ * This method has no effect on EnderDragons, Withers, Players, or Bats. + * Non-living entities excluding leashes will not persist as leash + * holders. + */ + // @ts-ignore + setLeashHolder(holder: org.bukkit.entity.Entity): boolean; + /** + * Checks to see if an entity is gliding, such as using an Elytra. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + setGliding(gliding: boolean): void; + /** + * Checks to see if an entity is swimming. + */ + // @ts-ignore + isSwimming(): boolean; + /** + * Makes entity start or stop swimming. + * This may have unexpected results if the entity is not in water. + */ + // @ts-ignore + setSwimming(swimming: boolean): void; + /** + * Checks to see if an entity is currently using the Riptide enchantment. + */ + // @ts-ignore + isRiptiding(): boolean; + /** + * Returns whether this entity is slumbering. + */ + // @ts-ignore + isSleeping(): boolean; + /** + * Sets whether an entity will have AI. + */ + // @ts-ignore + setAI(ai: boolean): void; + /** + * Checks whether an entity has AI. + */ + // @ts-ignore + hasAI(): boolean; + /** + * Set if this entity will be subject to collisions other entities. + *

+ * Note that collisions are bidirectional, so this method would need to be + * set to false on both the collidee and the collidant to ensure no + * collisions take place. + */ + // @ts-ignore + setCollidable(collidable: boolean): void; + /** + * Gets if this entity is subject to collisions with other entities. + *

+ * Please note that this method returns only the custom collidable state, + * not whether the entity is non-collidable for other reasons such as being + * dead. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getMemory(memoryKey: org.bukkit.entity.memory.MemoryKey): java.lang.Object; + /** + * 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. + */ + // @ts-ignore + setMemory(memoryKey: org.bukkit.entity.memory.MemoryKey, memoryValue: java.lang.Object): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Llama.Color.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Llama.Color.d.ts new file mode 100644 index 00000000..22a31455 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Llama.Color.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + namespace Llama { + // @ts-ignore + class Color extends java.lang.Enum { + // @ts-ignore + public static CREAMY: org.bukkit.entity.Llama.Color; + // @ts-ignore + public static WHITE: org.bukkit.entity.Llama.Color; + // @ts-ignore + public static BROWN: org.bukkit.entity.Llama.Color; + // @ts-ignore + public static GRAY: org.bukkit.entity.Llama.Color; + // @ts-ignore + public static values(): org.bukkit.entity.Llama.Color[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.entity.Llama.Color; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Llama.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Llama.d.ts new file mode 100644 index 00000000..2dfa1016 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Llama.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Llama extends org.bukkit.entity.ChestedHorse { + /** + * Gets the llama's color. + */ + // @ts-ignore + getColor(): org.bukkit.entity.Llama.Color; + /** + * Sets the llama's color. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + setStrength(strength: number): void; + // @ts-ignore + getInventory(): org.bukkit.inventory.LlamaInventory; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.LlamaSpit.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.LlamaSpit.d.ts new file mode 100644 index 00000000..4df0ce20 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.LlamaSpit.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface LlamaSpit extends org.bukkit.entity.Projectile { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.MagmaCube.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.MagmaCube.d.ts new file mode 100644 index 00000000..39f5143b --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.MagmaCube.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface MagmaCube extends org.bukkit.entity.Slime { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Minecart.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Minecart.d.ts new file mode 100644 index 00000000..ad93ce91 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Minecart.d.ts @@ -0,0 +1,107 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Minecart extends org.bukkit.entity.Vehicle { + /** + * Sets a minecart's damage. + */ + // @ts-ignore + setDamage(damage: number): void; + /** + * Gets a minecart's damage. + */ + // @ts-ignore + getDamage(): number; + /** + * Gets the maximum speed of a minecart. The speed is unrelated to the + * velocity. + */ + // @ts-ignore + getMaxSpeed(): number; + /** + * Sets the maximum speed of a minecart. Must be nonnegative. Default is + * 0.4D. + */ + // @ts-ignore + setMaxSpeed(speed: number): void; + /** + * Returns whether this minecart will slow down faster without a passenger + * occupying it + */ + // @ts-ignore + isSlowWhenEmpty(): boolean; + /** + * Sets whether this minecart will slow down faster without a passenger + * occupying it + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getDisplayBlockData(): org.bukkit.block.data.BlockData; + /** + * Sets the offset of the display block. + */ + // @ts-ignore + setDisplayBlockOffset(offset: number): void; + /** + * Gets the offset of the display block. + */ + // @ts-ignore + getDisplayBlockOffset(): number; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Mob.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Mob.d.ts new file mode 100644 index 00000000..7d8ecc72 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Mob.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @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. + */ + // @ts-ignore + setTarget(target: org.bukkit.entity.LivingEntity): void; + /** + * Gets the current target of this Mob + */ + // @ts-ignore + getTarget(): org.bukkit.entity.LivingEntity; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Monster.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Monster.d.ts new file mode 100644 index 00000000..d4a9cb95 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Monster.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Monster extends org.bukkit.entity.Creature { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Mule.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Mule.d.ts new file mode 100644 index 00000000..01c1edaa --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Mule.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Mule extends org.bukkit.entity.ChestedHorse { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.MushroomCow.Variant.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.MushroomCow.Variant.d.ts new file mode 100644 index 00000000..0e48dada --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.MushroomCow.Variant.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + namespace MushroomCow { + // @ts-ignore + class Variant extends java.lang.Enum { + // @ts-ignore + public static RED: org.bukkit.entity.MushroomCow.Variant; + // @ts-ignore + public static BROWN: org.bukkit.entity.MushroomCow.Variant; + // @ts-ignore + public static values(): org.bukkit.entity.MushroomCow.Variant[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.entity.MushroomCow.Variant; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.MushroomCow.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.MushroomCow.d.ts new file mode 100644 index 00000000..91bd233e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.MushroomCow.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface MushroomCow extends org.bukkit.entity.Cow { + /** + * Get the variant of this cow. + */ + // @ts-ignore + getVariant(): org.bukkit.entity.MushroomCow.Variant; + /** + * Set the variant of this cow. + */ + // @ts-ignore + setVariant(variant: org.bukkit.entity.MushroomCow.Variant): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.NPC.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.NPC.d.ts new file mode 100644 index 00000000..2cd63d47 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.NPC.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface NPC extends org.bukkit.entity.Creature { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Ocelot.Type.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Ocelot.Type.d.ts new file mode 100644 index 00000000..ac714035 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Ocelot.Type.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + namespace Ocelot { + // @ts-ignore + class Type extends java.lang.Enum { + // @ts-ignore + public static WILD_OCELOT: org.bukkit.entity.Ocelot.Type; + // @ts-ignore + public static BLACK_CAT: org.bukkit.entity.Ocelot.Type; + // @ts-ignore + public static RED_CAT: org.bukkit.entity.Ocelot.Type; + // @ts-ignore + public static SIAMESE_CAT: org.bukkit.entity.Ocelot.Type; + // @ts-ignore + public static values(): org.bukkit.entity.Ocelot.Type[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.entity.Ocelot.Type; + /** + * Gets the ID of this cat type. + */ + // @ts-ignore + public getId(): number; + /** + * Gets a cat type by its ID. + */ + // @ts-ignore + public static getType(id: number): org.bukkit.entity.Ocelot.Type; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Ocelot.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Ocelot.d.ts new file mode 100644 index 00000000..00e56596 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Ocelot.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Ocelot extends org.bukkit.entity.Animals { + /** + * Gets the current type of this cat. + */ + // @ts-ignore + getCatType(): org.bukkit.entity.Ocelot.Type; + /** + * Sets the current type of this cat. + */ + // @ts-ignore + setCatType(type: org.bukkit.entity.Ocelot.Type): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Painting.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Painting.d.ts new file mode 100644 index 00000000..b8a57d30 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Painting.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Painting extends org.bukkit.entity.Hanging { + /** + * Get the art on this painting + */ + // @ts-ignore + getArt(): org.bukkit.Art; + /** + * Set the art on this painting + */ + // @ts-ignore + setArt(art: org.bukkit.Art): boolean; + /** + * Set the art on this painting + */ + // @ts-ignore + setArt(art: org.bukkit.Art, force: boolean): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Panda.Gene.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Panda.Gene.d.ts new file mode 100644 index 00000000..995d6f4a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Panda.Gene.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + namespace Panda { + // @ts-ignore + class Gene extends java.lang.Enum { + // @ts-ignore + public static NORMAL: org.bukkit.entity.Panda.Gene; + // @ts-ignore + public static LAZY: org.bukkit.entity.Panda.Gene; + // @ts-ignore + public static WORRIED: org.bukkit.entity.Panda.Gene; + // @ts-ignore + public static PLAYFUL: org.bukkit.entity.Panda.Gene; + // @ts-ignore + public static BROWN: org.bukkit.entity.Panda.Gene; + // @ts-ignore + public static WEAK: org.bukkit.entity.Panda.Gene; + // @ts-ignore + public static AGGRESSIVE: org.bukkit.entity.Panda.Gene; + // @ts-ignore + public static values(): org.bukkit.entity.Panda.Gene[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.entity.Panda.Gene; + /** + * Gets whether this gene is recessive, i.e. required in both parents to + * propagate to children. + */ + // @ts-ignore + public isRecessive(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Panda.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Panda.d.ts new file mode 100644 index 00000000..7a974dee --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Panda.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Panda extends org.bukkit.entity.Animals { + /** + * Gets this Panda's main gene. + */ + // @ts-ignore + getMainGene(): org.bukkit.entity.Panda.Gene; + /** + * Sets this Panda's main gene. + */ + // @ts-ignore + setMainGene(gene: org.bukkit.entity.Panda.Gene): void; + /** + * Gets this Panda's hidden gene. + */ + // @ts-ignore + getHiddenGene(): org.bukkit.entity.Panda.Gene; + /** + * Sets this Panda's hidden gene. + */ + // @ts-ignore + setHiddenGene(gene: org.bukkit.entity.Panda.Gene): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Parrot.Variant.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Parrot.Variant.d.ts new file mode 100644 index 00000000..d445b196 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Parrot.Variant.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + namespace Parrot { + // @ts-ignore + class Variant extends java.lang.Enum { + // @ts-ignore + public static RED: org.bukkit.entity.Parrot.Variant; + // @ts-ignore + public static BLUE: org.bukkit.entity.Parrot.Variant; + // @ts-ignore + public static GREEN: org.bukkit.entity.Parrot.Variant; + // @ts-ignore + public static CYAN: org.bukkit.entity.Parrot.Variant; + // @ts-ignore + public static GRAY: org.bukkit.entity.Parrot.Variant; + // @ts-ignore + public static values(): org.bukkit.entity.Parrot.Variant[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.entity.Parrot.Variant; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Parrot.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Parrot.d.ts new file mode 100644 index 00000000..acc916a5 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Parrot.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Parrot extends org.bukkit.entity.Animals, org.bukkit.entity.Tameable, org.bukkit.entity.Sittable { + /** + * Get the variant of this parrot. + */ + // @ts-ignore + getVariant(): org.bukkit.entity.Parrot.Variant; + /** + * Set the variant of this parrot. + */ + // @ts-ignore + setVariant(variant: org.bukkit.entity.Parrot.Variant): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Phantom.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Phantom.d.ts new file mode 100644 index 00000000..35e7567c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Phantom.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Phantom extends org.bukkit.entity.Flying { + // @ts-ignore + getSize(): number; + // @ts-ignore + setSize(sz: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Pig.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Pig.d.ts new file mode 100644 index 00000000..293f5f46 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Pig.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Pig extends org.bukkit.entity.Animals, org.bukkit.entity.Vehicle { + /** + * Check if the pig has a saddle. + */ + // @ts-ignore + hasSaddle(): boolean; + /** + * Sets if the pig has a saddle or not + */ + // @ts-ignore + setSaddle(saddled: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.PigZombie.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.PigZombie.d.ts new file mode 100644 index 00000000..61ec41a9 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.PigZombie.d.ts @@ -0,0 +1,45 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface PigZombie extends org.bukkit.entity.Zombie { + /** + * Get the pig zombie's current anger level. + */ + // @ts-ignore + getAnger(): number; + /** + * Set the pig zombie's current anger level. + */ + // @ts-ignore + setAnger(level: number): void; + /** + * Shorthand; sets to either 0 or the default level. + */ + // @ts-ignore + setAngry(angry: boolean): void; + /** + * Shorthand; gets whether the zombie is angry. + */ + // @ts-ignore + isAngry(): boolean; + /** + * Not applicable to this entity + */ + // @ts-ignore + isConverting(): boolean; + /** + * Not applicable to this entity + */ + // @ts-ignore + getConversionTime(): number; + /** + * Not applicable to this entity + */ + // @ts-ignore + setConversionTime(time: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Pillager.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Pillager.d.ts new file mode 100644 index 00000000..47f7055e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Pillager.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Pillager extends org.bukkit.entity.Illager, org.bukkit.inventory.InventoryHolder { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Player.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Player.d.ts new file mode 100644 index 00000000..09e96db8 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Player.d.ts @@ -0,0 +1,904 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @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. + *

+ * Note that this name will not be displayed in game, only in chat and + * places defined by plugins. + */ + // @ts-ignore + getDisplayName(): string; + /** + * Sets the "friendly" name to display of this player. This may include + * color. + *

+ * Note that this name will not be displayed in game, only in chat and + * places defined by plugins. + */ + // @ts-ignore + setDisplayName(name: string): void; + /** + * Gets the name that is shown on the player list. + */ + // @ts-ignore + 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()}. + */ + // @ts-ignore + setPlayerListName(name: string): void; + /** + * Gets the currently displayed player list header for this player. + */ + // @ts-ignore + getPlayerListHeader(): string; + /** + * Gets the currently displayed player list footer for this player. + */ + // @ts-ignore + getPlayerListFooter(): string; + /** + * Sets the currently displayed player list header for this player. + */ + // @ts-ignore + setPlayerListHeader(header: string): void; + /** + * Sets the currently displayed player list footer for this player. + */ + // @ts-ignore + setPlayerListFooter(footer: string): void; + /** + * Sets the currently displayed player list header and footer for this + * player. + */ + // @ts-ignore + setPlayerListHeaderFooter(header: string, footer: string): void; + /** + * Set the target of the player's compass. + */ + // @ts-ignore + setCompassTarget(loc: org.bukkit.Location): void; + /** + * Get the previously set compass target. + */ + // @ts-ignore + getCompassTarget(): org.bukkit.Location; + /** + * Gets the socket address of this player + */ + // @ts-ignore + getAddress(): java.net.InetSocketAddress; + /** + * Sends this sender a message raw + */ + // @ts-ignore + sendRawMessage(message: string): void; + /** + * Kicks player with custom kick message. + */ + // @ts-ignore + kickPlayer(message: string): void; + /** + * Says a message (or runs a command). + */ + // @ts-ignore + chat(msg: string): void; + /** + * Makes the player perform the given command + */ + // @ts-ignore + performCommand(command: string): boolean; + /** + * Returns if the player is in sneak mode + */ + // @ts-ignore + isSneaking(): boolean; + /** + * Sets the sneak mode the player + */ + // @ts-ignore + setSneaking(sneak: boolean): void; + /** + * Gets whether the player is sprinting or not. + */ + // @ts-ignore + isSprinting(): boolean; + /** + * Sets whether the player is sprinting or not. + */ + // @ts-ignore + 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 + */ + // @ts-ignore + saveData(): void; + /** + * Loads the players current location, health, inventory, motion, and + * other information from the username.dat file, in the world/player + * folder. + *

+ * Note: This will overwrite the players current inventory, health, + * motion, etc, with the state from the saved dat file. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + setSleepingIgnored(isSleeping: boolean): void; + /** + * Returns whether the player is sleeping ignored. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + playSound(location: org.bukkit.Location, sound: org.bukkit.Sound, 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. No + * sound will be heard by the player if their client does not have the + * respective sound for the value passed. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + *

+ * This function will fail silently if Location or Sound are null. No sound + * will be heard by the player if their client does not have the respective + * sound for the value passed. + */ + // @ts-ignore + playSound(location: org.bukkit.Location, sound: string, category: org.bukkit.SoundCategory, volume: number, pitch: number): void; + /** + * Stop the specified sound from playing. + */ + // @ts-ignore + stopSound(sound: org.bukkit.Sound): void; + /** + * Stop the specified sound from playing. + */ + // @ts-ignore + stopSound(sound: string): void; + /** + * Stop the specified sound from playing. + */ + // @ts-ignore + stopSound(sound: org.bukkit.Sound, category: org.bukkit.SoundCategory): void; + /** + * Stop the specified sound from playing. + */ + // @ts-ignore + stopSound(sound: string, category: org.bukkit.SoundCategory): void; + /** + * Plays an effect to just this player. + */ + // @ts-ignore + playEffect(loc: org.bukkit.Location, effect: org.bukkit.Effect, data: number): void; + /** + * Plays an effect to just this player. + */ + // @ts-ignore + playEffect(loc: org.bukkit.Location, effect: org.bukkit.Effect, data: java.lang.Object): 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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 + * chunk. This will not actually change the world in any way. + *

+ * At least one of the dimensions of the cuboid must be even. The size of + * the data buffer must be 2.5*sx*sy*sz and formatted in accordance with + * the Packet51 format. + */ + // @ts-ignore + 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. + * This method will use a sign at the location's block or a faked sign + * sent via + * {@link #sendBlockChange(org.bukkit.Location, org.bukkit.Material, byte)}. + *

+ * If the client does not have a sign at the given location it will + * display an error message to the user. + */ + // @ts-ignore + 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. + * This method will use a sign at the location's block or a faked sign + * sent via + * {@link #sendBlockChange(org.bukkit.Location, org.bukkit.Material, byte)}. + *

+ * If the client does not have a sign at the given location it will + * display an error message to the user. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + sendMap(map: org.bukkit.map.MapView): void; + /** + * Forces an update of the player's entire inventory. + */ + // @ts-ignore + updateInventory(): void; + /** + * Awards the given achievement and any parent achievements that the + * player does not have. + */ + // @ts-ignore + awardAchievement(achievement: org.bukkit.Achievement): void; + /** + * Removes the given achievement and any children achievements that the + * player has. + */ + // @ts-ignore + removeAchievement(achievement: org.bukkit.Achievement): void; + /** + * Gets whether this player has the given achievement. + */ + // @ts-ignore + hasAchievement(achievement: org.bukkit.Achievement): boolean; + /** + * Increments the given statistic for this player. + *

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

+ * This is equivalent to the following code: + * decrementStatistic(Statistic, 1) + */ + // @ts-ignore + decrementStatistic(statistic: org.bukkit.Statistic): void; + /** + * Increments the given statistic for this player. + */ + // @ts-ignore + incrementStatistic(statistic: org.bukkit.Statistic, amount: number): void; + /** + * Decrements the given statistic for this player. + */ + // @ts-ignore + decrementStatistic(statistic: org.bukkit.Statistic, amount: number): void; + /** + * Sets the given statistic for this player. + */ + // @ts-ignore + setStatistic(statistic: org.bukkit.Statistic, newValue: number): void; + /** + * Gets the value of the given statistic for this player. + */ + // @ts-ignore + 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) + */ + // @ts-ignore + 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) + */ + // @ts-ignore + decrementStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material): void; + /** + * Gets the value of the given statistic for this player. + */ + // @ts-ignore + getStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material): number; + /** + * Increments the given statistic for this player for the given material. + */ + // @ts-ignore + incrementStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material, amount: number): void; + /** + * Decrements the given statistic for this player for the given material. + */ + // @ts-ignore + decrementStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material, amount: number): void; + /** + * Sets the given statistic for this player for the given material. + */ + // @ts-ignore + 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) + */ + // @ts-ignore + 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) + */ + // @ts-ignore + decrementStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType): void; + /** + * Gets the value of the given statistic for this player. + */ + // @ts-ignore + getStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType): number; + /** + * Increments the given statistic for this player for the given entity. + */ + // @ts-ignore + incrementStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType, amount: number): void; + /** + * Decrements the given statistic for this player for the given entity. + */ + // @ts-ignore + decrementStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType, amount: number): void; + /** + * Sets the given statistic for this player for the given entity. + */ + // @ts-ignore + 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 + * specified offset. + *

+ * When using non relative time the player's time will stay fixed at the + * specified time parameter. It's up to the caller to continue updating + * the player's time. To restore player time to normal use + * resetPlayerTime(). + */ + // @ts-ignore + setPlayerTime(time: number, relative: boolean): void; + /** + * Returns the player's current timestamp. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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(). + */ + // @ts-ignore + isPlayerTimeRelative(): boolean; + /** + * Restores the normal condition where the player's time is synchronized + * with the server time. + *

+ * Equivalent to calling setPlayerTime(0, true). + */ + // @ts-ignore + 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. + */ + // @ts-ignore + setPlayerWeather(type: org.bukkit.WeatherType): void; + /** + * Returns the type of weather the player is currently experiencing. + */ + // @ts-ignore + getPlayerWeather(): org.bukkit.WeatherType; + /** + * Restores the normal condition where the player's weather is controlled + * by server conditions. + */ + // @ts-ignore + resetPlayerWeather(): void; + /** + * Gives the player the amount of experience specified. + */ + // @ts-ignore + giveExp(amount: number): void; + /** + * Gives the player the amount of experience levels specified. Levels can + * be taken by specifying a negative amount. + */ + // @ts-ignore + 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". + */ + // @ts-ignore + 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". + */ + // @ts-ignore + setExp(exp: number): void; + /** + * Gets the players current experience level + */ + // @ts-ignore + getLevel(): number; + /** + * Sets the players current experience level + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + setTotalExperience(exp: number): void; + /** + * Gets the players current exhaustion level. + *

+ * Exhaustion controls how fast the food level drops. While you have a + * certain amount of exhaustion, your saturation will drop to zero, and + * then your food will drop to zero. + */ + // @ts-ignore + getExhaustion(): number; + /** + * Sets the players current exhaustion level + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getSaturation(): number; + /** + * Sets the players current saturation level + */ + // @ts-ignore + setSaturation(value: number): void; + /** + * Gets the players current food level + */ + // @ts-ignore + getFoodLevel(): number; + /** + * Sets the players current food level + */ + // @ts-ignore + setFoodLevel(value: number): void; + /** + * Determines if the Player is allowed to fly via jump key double-tap like + * in creative mode. + */ + // @ts-ignore + getAllowFlight(): boolean; + /** + * Sets if the Player is allowed to fly via jump key double-tap like in + * creative mode. + */ + // @ts-ignore + setAllowFlight(flight: boolean): void; + /** + * Hides a player from this player + */ + // @ts-ignore + hidePlayer(player: org.bukkit.entity.Player): void; + /** + * Hides a player from this player + */ + // @ts-ignore + hidePlayer(plugin: org.bukkit.plugin.Plugin, player: org.bukkit.entity.Player): void; + /** + * Allows this player to see a player that was previously hidden + */ + // @ts-ignore + 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. + */ + // @ts-ignore + showPlayer(plugin: org.bukkit.plugin.Plugin, player: org.bukkit.entity.Player): void; + /** + * Checks to see if a player has been hidden from this player + */ + // @ts-ignore + canSee(player: org.bukkit.entity.Player): boolean; + /** + * Checks to see if this player is currently flying or not. + */ + // @ts-ignore + isFlying(): boolean; + /** + * Makes this player start or stop flying. + */ + // @ts-ignore + setFlying(value: boolean): void; + /** + * Sets the speed at which a client will fly. Negative values indicate + * reverse directions. + */ + // @ts-ignore + setFlySpeed(value: number): void; + /** + * Sets the speed at which a client will walk. Negative values indicate + * reverse directions. + */ + // @ts-ignore + setWalkSpeed(value: number): void; + /** + * Gets the current allowed speed that a client can fly. + */ + // @ts-ignore + getFlySpeed(): number; + /** + * Gets the current allowed speed that a client can walk. + */ + // @ts-ignore + getWalkSpeed(): number; + /** + * Request that the player's client download and switch texture packs. + *

+ * The player's client will download the new texture pack asynchronously + * in the background, and will automatically switch to it once the + * download is complete. If the client has downloaded and cached the same + * texture pack in the past, it will perform a file size check against + * the response content to determine if the texture pack has changed and + * needs to be downloaded again. When this request is sent for the very + * first time from a given server, the client will first display a + * confirmation GUI to the player before proceeding with the download. + *

+ * Notes: + *

    + *
  • Players can disable server textures on their client, in which + * case this method will have no affect on them. Use the + * {@link PlayerResourcePackStatusEvent} to figure out whether or not + * the player loaded the pack! + *
  • There is no concept of resetting texture packs back to default + * within Minecraft, so players will have to relog to do so or you + * have to send an empty pack. + *
  • The request is send with "null" as the hash. This might result + * in newer versions not loading the pack correctly. + *
+ */ + // @ts-ignore + setTexturePack(url: string): void; + /** + * Request that the player's client download and switch resource packs. + *

+ * The player's client will download the new resource pack asynchronously + * in the background, and will automatically switch to it once the + * download is complete. If the client has downloaded and cached the same + * resource pack in the past, it will perform a file size check against + * the response content to determine if the resource pack has changed and + * needs to be downloaded again. When this request is sent for the very + * first time from a given server, the client will first display a + * confirmation GUI to the player before proceeding with the download. + *

+ * Notes: + *

    + *
  • Players can disable server resources on their client, in which + * case this method will have no affect on them. Use the + * {@link PlayerResourcePackStatusEvent} to figure out whether or not + * the player loaded the pack! + *
  • There is no concept of resetting resource packs back to default + * within Minecraft, so players will have to relog to do so or you + * have to send an empty pack. + *
  • The request is send with "null" as the hash. This might result + * in newer versions not loading the pack correctly. + *
+ */ + // @ts-ignore + setResourcePack(url: string): void; + /** + * Request that the player's client download and switch resource packs. + *

+ * The player's client will download the new resource pack asynchronously + * in the background, and will automatically switch to it once the + * download is complete. If the client has downloaded and cached a + * resource pack with the same hash in the past it will not download but + * directly apply the cached pack. When this request is sent for the very + * first time from a given server, the client will first display a + * confirmation GUI to the player before proceeding with the download. + *

+ * Notes: + *

    + *
  • Players can disable server resources on their client, in which + * case this method will have no affect on them. Use the + * {@link PlayerResourcePackStatusEvent} to figure out whether or not + * the player loaded the pack! + *
  • There is no concept of resetting resource packs back to default + * within Minecraft, so players will have to relog to do so or you + * have to send an empty pack. + *
+ */ + // @ts-ignore + setResourcePack(url: string, hash: number): void; + /** + * Gets the Scoreboard displayed to this player + */ + // @ts-ignore + getScoreboard(): org.bukkit.scoreboard.Scoreboard; + /** + * Sets the player's visible Scoreboard. + */ + // @ts-ignore + 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()}. + */ + // @ts-ignore + isHealthScaled(): boolean; + /** + * Sets if the client is displayed a 'scaled' health, that is, health on a + * scale from 0-{@link #getHealthScale()}. + *

+ * Displayed health follows a simple formula displayedHealth = + * getHealth() / getMaxHealth() * getHealthScale(). + */ + // @ts-ignore + setHealthScaled(scale: boolean): void; + /** + * Sets the number to scale health to for the client; this will also + * {@link #setHealthScaled(boolean) setHealthScaled(true)}. + *

+ * Displayed health follows a simple formula displayedHealth = + * getHealth() / getMaxHealth() * getHealthScale(). + */ + // @ts-ignore + setHealthScale(scale: number): void; + /** + * Gets the number that health is scaled to for the client. + */ + // @ts-ignore + getHealthScale(): number; + /** + * Gets the entity which is followed by the camera when in + * {@link GameMode#SPECTATOR}. + */ + // @ts-ignore + getSpectatorTarget(): org.bukkit.entity.Entity; + /** + * Sets the entity which is followed by the camera when in + * {@link GameMode#SPECTATOR}. + */ + // @ts-ignore + 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 + * unchanged. If they are empty strings, the display will be updated as + * 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. + */ + // @ts-ignore + 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 + * unchanged. If they are empty strings, the display will be updated as + * such. If the strings contain a new line, only the first line will be + * sent. All timings values may take a value of -1 to indicate that they + * will use the last value sent (or the defaults if no title has been + * displayed). + */ + // @ts-ignore + 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. + */ + // @ts-ignore + resetTitle(): void; + /** + * Spawns the particle (the number of times specified by count) + * at the target location. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, data: java.lang.Object): void; + /** + * Spawns the particle (the number of times specified by count) + * at the target location. + */ + // @ts-ignore + spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, data: java.lang.Object): 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, offsetX: number, offsetY: number, offsetZ: number, data: java.lang.Object): 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. + */ + // @ts-ignore + spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, offsetX: number, offsetY: number, offsetZ: number, data: java.lang.Object): 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number, data: java.lang.Object): 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. + */ + // @ts-ignore + spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number, data: java.lang.Object): void; + /** + * Return the player's progression on the specified advancement. + */ + // @ts-ignore + 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, + */ + // @ts-ignore + getClientViewDistance(): number; + /** + * Gets the player's current locale. + * The value of the locale String is not defined properly. + *
+ * The vanilla Minecraft client will use lowercase language / country pairs + * separated by an underscore, but custom resource packs may use any format + * they wish. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + updateCommands(): void; + /** + * Open a {@link Material#WRITTEN_BOOK} for a Player + */ + // @ts-ignore + openBook(book: org.bukkit.inventory.ItemStack): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.PolarBear.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.PolarBear.d.ts new file mode 100644 index 00000000..437a0814 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.PolarBear.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface PolarBear extends org.bukkit.entity.Animals { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Pose.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Pose.d.ts new file mode 100644 index 00000000..da8d401a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Pose.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + class Pose extends java.lang.Enum { + // @ts-ignore + public static STANDING: org.bukkit.entity.Pose; + // @ts-ignore + public static FALL_FLYING: org.bukkit.entity.Pose; + // @ts-ignore + public static SLEEPING: org.bukkit.entity.Pose; + // @ts-ignore + public static SWIMMING: org.bukkit.entity.Pose; + // @ts-ignore + public static SPIN_ATTACK: org.bukkit.entity.Pose; + // @ts-ignore + public static SNEAKING: org.bukkit.entity.Pose; + // @ts-ignore + public static DYING: org.bukkit.entity.Pose; + // @ts-ignore + public static values(): org.bukkit.entity.Pose[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.entity.Pose; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Projectile.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Projectile.d.ts new file mode 100644 index 00000000..fa875ff1 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Projectile.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Projectile extends org.bukkit.entity.Entity { + /** + * Retrieve the shooter of this projectile. + */ + // @ts-ignore + getShooter(): org.bukkit.projectiles.ProjectileSource; + /** + * Set the shooter of this projectile. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + doesBounce(): boolean; + /** + * Set whether or not this projectile should bounce or not when it hits + * something. + */ + // @ts-ignore + setBounce(doesBounce: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.PufferFish.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.PufferFish.d.ts new file mode 100644 index 00000000..b401852b --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.PufferFish.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface PufferFish extends org.bukkit.entity.Fish { + /** + * Returns the current puff state of this fish (i.e. how inflated it is). + */ + // @ts-ignore + getPuffState(): number; + /** + * Sets the current puff state of this fish (i.e. how inflated it is). + */ + // @ts-ignore + setPuffState(state: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Rabbit.Type.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Rabbit.Type.d.ts new file mode 100644 index 00000000..e70db55f --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Rabbit.Type.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + namespace Rabbit { + // @ts-ignore + class Type extends java.lang.Enum { + // @ts-ignore + public static BROWN: org.bukkit.entity.Rabbit.Type; + // @ts-ignore + public static WHITE: org.bukkit.entity.Rabbit.Type; + // @ts-ignore + public static BLACK: org.bukkit.entity.Rabbit.Type; + // @ts-ignore + public static BLACK_AND_WHITE: org.bukkit.entity.Rabbit.Type; + // @ts-ignore + public static GOLD: org.bukkit.entity.Rabbit.Type; + // @ts-ignore + public static SALT_AND_PEPPER: org.bukkit.entity.Rabbit.Type; + // @ts-ignore + public static THE_KILLER_BUNNY: org.bukkit.entity.Rabbit.Type; + // @ts-ignore + public static values(): org.bukkit.entity.Rabbit.Type[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.entity.Rabbit.Type; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Rabbit.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Rabbit.d.ts new file mode 100644 index 00000000..139e083d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Rabbit.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Rabbit extends org.bukkit.entity.Animals { + // @ts-ignore + getRabbitType(): org.bukkit.entity.Rabbit.Type; + // @ts-ignore + setRabbitType(type: org.bukkit.entity.Rabbit.Type): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Raider.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Raider.d.ts new file mode 100644 index 00000000..7a5996f1 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Raider.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Raider extends org.bukkit.entity.Monster { + /** + * Gets the block the raider is targeting to patrol. + */ + // @ts-ignore + getPatrolTarget(): org.bukkit.block.Block; + /** + * Sets the block the raider is targeting to patrol. + */ + // @ts-ignore + setPatrolTarget(block: org.bukkit.block.Block): void; + /** + * Gets whether this entity is a patrol leader. + */ + // @ts-ignore + isPatrolLeader(): boolean; + /** + * Sets whether this entity is a patrol leader. + */ + // @ts-ignore + setPatrolLeader(leader: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Ravager.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Ravager.d.ts new file mode 100644 index 00000000..b95081a6 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Ravager.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Ravager extends org.bukkit.entity.Raider { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Salmon.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Salmon.d.ts new file mode 100644 index 00000000..550331dc --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Salmon.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Salmon extends org.bukkit.entity.Fish { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Sheep.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Sheep.d.ts new file mode 100644 index 00000000..8a2d23db --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Sheep.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Sheep extends org.bukkit.entity.Animals, org.bukkit.material.Colorable { + // @ts-ignore + isSheared(): boolean; + // @ts-ignore + setSheared(flag: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Shulker.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Shulker.d.ts new file mode 100644 index 00000000..330a489f --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Shulker.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Shulker extends org.bukkit.entity.Golem, org.bukkit.material.Colorable { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.ShulkerBullet.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.ShulkerBullet.d.ts new file mode 100644 index 00000000..d04cc23c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.ShulkerBullet.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface ShulkerBullet extends org.bukkit.entity.Projectile { + /** + * Retrieve the target of this bullet. + */ + // @ts-ignore + getTarget(): org.bukkit.entity.Entity; + /** + * Sets the target of this bullet + */ + // @ts-ignore + setTarget(target: org.bukkit.entity.Entity): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Silverfish.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Silverfish.d.ts new file mode 100644 index 00000000..c1ecdfdd --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Silverfish.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Silverfish extends org.bukkit.entity.Monster { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Sittable.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Sittable.d.ts new file mode 100644 index 00000000..6561523e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Sittable.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Sittable { + /** + * Checks if this animal is sitting + */ + // @ts-ignore + isSitting(): boolean; + /** + * Sets if this animal is sitting. Will remove any path that the animal + * was following beforehand. + */ + // @ts-ignore + setSitting(sitting: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Skeleton.SkeletonType.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Skeleton.SkeletonType.d.ts new file mode 100644 index 00000000..c9a74c93 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Skeleton.SkeletonType.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + namespace Skeleton { + // @ts-ignore + class SkeletonType extends java.lang.Enum { + // @ts-ignore + public static NORMAL: org.bukkit.entity.Skeleton.SkeletonType; + // @ts-ignore + public static WITHER: org.bukkit.entity.Skeleton.SkeletonType; + // @ts-ignore + public static STRAY: org.bukkit.entity.Skeleton.SkeletonType; + // @ts-ignore + public static values(): org.bukkit.entity.Skeleton.SkeletonType[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.entity.Skeleton.SkeletonType; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Skeleton.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Skeleton.d.ts new file mode 100644 index 00000000..dccdeb27 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Skeleton.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Skeleton extends org.bukkit.entity.Monster { + /** + * Gets the current type of this skeleton. + */ + // @ts-ignore + getSkeletonType(): org.bukkit.entity.Skeleton.SkeletonType; + // @ts-ignore + setSkeletonType(type: org.bukkit.entity.Skeleton.SkeletonType): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.SkeletonHorse.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.SkeletonHorse.d.ts new file mode 100644 index 00000000..5c991a3e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.SkeletonHorse.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface SkeletonHorse extends org.bukkit.entity.AbstractHorse { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Slime.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Slime.d.ts new file mode 100644 index 00000000..8154a516 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Slime.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Slime extends org.bukkit.entity.Mob { + // @ts-ignore + getSize(): number; + // @ts-ignore + setSize(sz: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.SmallFireball.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.SmallFireball.d.ts new file mode 100644 index 00000000..22f5c4f7 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.SmallFireball.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface SmallFireball extends org.bukkit.entity.Fireball { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Snowball.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Snowball.d.ts new file mode 100644 index 00000000..2a9be541 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Snowball.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Snowball extends org.bukkit.entity.Projectile { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Snowman.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Snowman.d.ts new file mode 100644 index 00000000..719321d9 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Snowman.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Snowman extends org.bukkit.entity.Golem { + /** + * Gets whether this snowman is in "derp mode", meaning it is not wearing a + * pumpkin. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + setDerp(derpMode: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.SpectralArrow.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.SpectralArrow.d.ts new file mode 100644 index 00000000..5426f3fb --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.SpectralArrow.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface SpectralArrow extends org.bukkit.entity.AbstractArrow { + /** + * Returns the amount of time that this arrow will apply + * the glowing effect for. + */ + // @ts-ignore + getGlowingTicks(): number; + /** + * Sets the amount of time to apply the glowing effect for. + */ + // @ts-ignore + setGlowingTicks(duration: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Spellcaster.Spell.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Spellcaster.Spell.d.ts new file mode 100644 index 00000000..1a98d76d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Spellcaster.Spell.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + namespace Spellcaster { + // @ts-ignore + class Spell extends java.lang.Enum { + // @ts-ignore + public static NONE: org.bukkit.entity.Spellcaster.Spell; + // @ts-ignore + public static SUMMON_VEX: org.bukkit.entity.Spellcaster.Spell; + // @ts-ignore + public static FANGS: org.bukkit.entity.Spellcaster.Spell; + // @ts-ignore + public static WOLOLO: org.bukkit.entity.Spellcaster.Spell; + // @ts-ignore + public static DISAPPEAR: org.bukkit.entity.Spellcaster.Spell; + // @ts-ignore + public static BLINDNESS: org.bukkit.entity.Spellcaster.Spell; + // @ts-ignore + public static values(): org.bukkit.entity.Spellcaster.Spell[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.entity.Spellcaster.Spell; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Spellcaster.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Spellcaster.d.ts new file mode 100644 index 00000000..a5143e6a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Spellcaster.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Spellcaster extends org.bukkit.entity.Illager { + /** + * Gets the {@link Spell} the entity is currently using. + */ + // @ts-ignore + getSpell(): org.bukkit.entity.Spellcaster.Spell; + /** + * Sets the {@link Spell} the entity is currently using. + */ + // @ts-ignore + setSpell(spell: org.bukkit.entity.Spellcaster.Spell): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Spider.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Spider.d.ts new file mode 100644 index 00000000..87b523cc --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Spider.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Spider extends org.bukkit.entity.Monster { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.SplashPotion.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.SplashPotion.d.ts new file mode 100644 index 00000000..03df36d8 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.SplashPotion.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface SplashPotion extends org.bukkit.entity.ThrownPotion { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Squid.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Squid.d.ts new file mode 100644 index 00000000..f500d61e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Squid.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Squid extends org.bukkit.entity.WaterMob { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Stray.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Stray.d.ts new file mode 100644 index 00000000..d8e30354 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Stray.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Stray extends org.bukkit.entity.Skeleton { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.TNTPrimed.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.TNTPrimed.d.ts new file mode 100644 index 00000000..12e91cce --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.TNTPrimed.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface TNTPrimed extends org.bukkit.entity.Explosive { + /** + * Set the number of ticks until the TNT blows up after being primed. + */ + // @ts-ignore + setFuseTicks(fuseTicks: number): void; + /** + * Retrieve the number of ticks until the explosion of this TNTPrimed + * entity + */ + // @ts-ignore + 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 + * TNT with flint and steel.) Take note that this can be null if there is + * no suitable source. (created by the {@link + * org.bukkit.World#spawn(Location, Class)} method, for example.) + *

+ * The source will become null if the chunk this primed TNT is in is + * unloaded then reloaded. The source entity may be invalid if for example + * it has since died or been unloaded. Callers should check + * {@link Entity#isValid()}. + */ + // @ts-ignore + getSource(): org.bukkit.entity.Entity; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Tameable.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Tameable.d.ts new file mode 100644 index 00000000..4d02131d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Tameable.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @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. + */ + // @ts-ignore + isTamed(): boolean; + /** + * Sets if this has been tamed. Not necessary if the method setOwner has + * been used, as it tames automatically. + *

+ * If something is tamed then a player can not tame it through normal + * methods, even if it does not belong to anyone in particular. + */ + // @ts-ignore + setTamed(tame: boolean): void; + /** + * Gets the current owning AnimalTamer + */ + // @ts-ignore + getOwner(): org.bukkit.entity.AnimalTamer; + /** + * Set this to be owned by given AnimalTamer. + *

+ * If the owner is not null, this will be tamed and will have any current + * path it is following removed. If the owner is set to null, this will be + * untamed, and the current owner removed. + */ + // @ts-ignore + setOwner(tamer: org.bukkit.entity.AnimalTamer): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.ThrownExpBottle.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.ThrownExpBottle.d.ts new file mode 100644 index 00000000..2742702c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.ThrownExpBottle.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface ThrownExpBottle extends org.bukkit.entity.Projectile { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.ThrownPotion.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.ThrownPotion.d.ts new file mode 100644 index 00000000..c1b086fa --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.ThrownPotion.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface ThrownPotion extends org.bukkit.entity.Projectile { + /** + * Returns the effects that are applied by this potion. + */ + // @ts-ignore + getEffects(): java.util.Collection; + /** + * Returns a copy of the ItemStack for this thrown potion. + *

+ * Altering this copy will not alter the thrown potion directly. If you want + * to alter the thrown potion, you must use the {@link + * #setItem(ItemStack) setItemStack} method. + */ + // @ts-ignore + getItem(): org.bukkit.inventory.ItemStack; + /** + * Set the ItemStack for this thrown potion. + *

+ * The ItemStack must be of type {@link org.bukkit.Material#SPLASH_POTION} + * or {@link org.bukkit.Material#LINGERING_POTION}, otherwise an exception + * is thrown. + */ + // @ts-ignore + setItem(item: org.bukkit.inventory.ItemStack): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.TippedArrow.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.TippedArrow.d.ts new file mode 100644 index 00000000..0d21c792 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.TippedArrow.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface TippedArrow extends org.bukkit.entity.Arrow { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.TraderLlama.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.TraderLlama.d.ts new file mode 100644 index 00000000..378c25ae --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.TraderLlama.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface TraderLlama extends org.bukkit.entity.Llama { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Trident.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Trident.d.ts new file mode 100644 index 00000000..9de6e9b4 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Trident.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Trident extends org.bukkit.entity.AbstractArrow { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.TropicalFish.Pattern.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.TropicalFish.Pattern.d.ts new file mode 100644 index 00000000..7b21f2aa --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.TropicalFish.Pattern.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + namespace TropicalFish { + // @ts-ignore + class Pattern extends java.lang.Enum { + // @ts-ignore + public static KOB: org.bukkit.entity.TropicalFish.Pattern; + // @ts-ignore + public static SUNSTREAK: org.bukkit.entity.TropicalFish.Pattern; + // @ts-ignore + public static SNOOPER: org.bukkit.entity.TropicalFish.Pattern; + // @ts-ignore + public static DASHER: org.bukkit.entity.TropicalFish.Pattern; + // @ts-ignore + public static BRINELY: org.bukkit.entity.TropicalFish.Pattern; + // @ts-ignore + public static SPOTTY: org.bukkit.entity.TropicalFish.Pattern; + // @ts-ignore + public static FLOPPER: org.bukkit.entity.TropicalFish.Pattern; + // @ts-ignore + public static STRIPEY: org.bukkit.entity.TropicalFish.Pattern; + // @ts-ignore + public static GLITTER: org.bukkit.entity.TropicalFish.Pattern; + // @ts-ignore + public static BLOCKFISH: org.bukkit.entity.TropicalFish.Pattern; + // @ts-ignore + public static BETTY: org.bukkit.entity.TropicalFish.Pattern; + // @ts-ignore + public static CLAYFISH: org.bukkit.entity.TropicalFish.Pattern; + // @ts-ignore + public static values(): org.bukkit.entity.TropicalFish.Pattern[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.entity.TropicalFish.Pattern; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.TropicalFish.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.TropicalFish.d.ts new file mode 100644 index 00000000..e27aeb85 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.TropicalFish.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface TropicalFish extends org.bukkit.entity.Fish { + /** + * Gets the color of the fish's pattern. + */ + // @ts-ignore + getPatternColor(): org.bukkit.DyeColor; + /** + * Sets the color of the fish's pattern + */ + // @ts-ignore + setPatternColor(color: org.bukkit.DyeColor): void; + /** + * Gets the color of the fish's body. + */ + // @ts-ignore + getBodyColor(): org.bukkit.DyeColor; + /** + * Sets the color of the fish's body + */ + // @ts-ignore + setBodyColor(color: org.bukkit.DyeColor): void; + /** + * Gets the fish's pattern. + */ + // @ts-ignore + getPattern(): org.bukkit.entity.TropicalFish.Pattern; + /** + * Sets the fish's pattern + */ + // @ts-ignore + setPattern(pattern: org.bukkit.entity.TropicalFish.Pattern): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Turtle.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Turtle.d.ts new file mode 100644 index 00000000..bd7676a6 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Turtle.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Turtle extends org.bukkit.entity.Animals { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Vehicle.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Vehicle.d.ts new file mode 100644 index 00000000..4468c732 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Vehicle.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Vehicle extends org.bukkit.entity.Entity { + /** + * Gets the vehicle's velocity. + */ + // @ts-ignore + getVelocity(): org.bukkit.util.Vector; + /** + * Sets the vehicle's velocity. + */ + // @ts-ignore + setVelocity(vel: org.bukkit.util.Vector): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Vex.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Vex.d.ts new file mode 100644 index 00000000..0cb356b2 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Vex.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @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. + */ + // @ts-ignore + isCharging(): boolean; + /** + * Sets the charging state of this entity. + * When this entity is charging it will having a glowing red texture. + */ + // @ts-ignore + setCharging(charging: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Villager.Profession.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Villager.Profession.d.ts new file mode 100644 index 00000000..0c2a0b2b --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Villager.Profession.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + namespace Villager { + // @ts-ignore + class Profession extends java.lang.Enum implements org.bukkit.Keyed { + // @ts-ignore + public static NONE: org.bukkit.entity.Villager.Profession; + // @ts-ignore + public static ARMORER: org.bukkit.entity.Villager.Profession; + // @ts-ignore + public static BUTCHER: org.bukkit.entity.Villager.Profession; + // @ts-ignore + public static CARTOGRAPHER: org.bukkit.entity.Villager.Profession; + // @ts-ignore + public static CLERIC: org.bukkit.entity.Villager.Profession; + // @ts-ignore + public static FARMER: org.bukkit.entity.Villager.Profession; + // @ts-ignore + public static FISHERMAN: org.bukkit.entity.Villager.Profession; + // @ts-ignore + public static FLETCHER: org.bukkit.entity.Villager.Profession; + // @ts-ignore + public static LEATHERWORKER: org.bukkit.entity.Villager.Profession; + // @ts-ignore + public static LIBRARIAN: org.bukkit.entity.Villager.Profession; + // @ts-ignore + public static MASON: org.bukkit.entity.Villager.Profession; + // @ts-ignore + public static NITWIT: org.bukkit.entity.Villager.Profession; + // @ts-ignore + public static SHEPHERD: org.bukkit.entity.Villager.Profession; + // @ts-ignore + public static TOOLSMITH: org.bukkit.entity.Villager.Profession; + // @ts-ignore + public static WEAPONSMITH: org.bukkit.entity.Villager.Profession; + // @ts-ignore + public static values(): org.bukkit.entity.Villager.Profession[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.entity.Villager.Profession; + // @ts-ignore + public getKey(): org.bukkit.NamespacedKey; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Villager.Type.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Villager.Type.d.ts new file mode 100644 index 00000000..1cdf3cc7 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Villager.Type.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + namespace Villager { + // @ts-ignore + class Type extends java.lang.Enum implements org.bukkit.Keyed { + // @ts-ignore + public static DESERT: org.bukkit.entity.Villager.Type; + // @ts-ignore + public static JUNGLE: org.bukkit.entity.Villager.Type; + // @ts-ignore + public static PLAINS: org.bukkit.entity.Villager.Type; + // @ts-ignore + public static SAVANNA: org.bukkit.entity.Villager.Type; + // @ts-ignore + public static SNOW: org.bukkit.entity.Villager.Type; + // @ts-ignore + public static SWAMP: org.bukkit.entity.Villager.Type; + // @ts-ignore + public static TAIGA: org.bukkit.entity.Villager.Type; + // @ts-ignore + public static values(): org.bukkit.entity.Villager.Type[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.entity.Villager.Type; + // @ts-ignore + public getKey(): org.bukkit.NamespacedKey; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Villager.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Villager.d.ts new file mode 100644 index 00000000..9e81f3af --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Villager.d.ts @@ -0,0 +1,68 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Villager extends org.bukkit.entity.AbstractVillager { + /** + * Gets the current profession of this villager. + */ + // @ts-ignore + getProfession(): org.bukkit.entity.Villager.Profession; + /** + * Sets the new profession of this villager. + */ + // @ts-ignore + setProfession(profession: org.bukkit.entity.Villager.Profession): void; + /** + * Gets the current type of this villager. + */ + // @ts-ignore + getVillagerType(): org.bukkit.entity.Villager.Type; + /** + * Sets the new type of this villager. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getVillagerLevel(): number; + /** + * Sets the level of this villager. + * A villager with a level of 1 and no experience is liable to lose its + * profession. + */ + // @ts-ignore + setVillagerLevel(level: number): void; + /** + * Gets the trading experience of this villager. + */ + // @ts-ignore + getVillagerExperience(): number; + /** + * Sets the trading experience of this villager. + */ + // @ts-ignore + setVillagerExperience(experience: number): void; + /** + * Attempts to make this villager sleep at the given location. + *
+ * The location must be in the current world and have a bed placed at the + * location. The villager will put its head on the specified block while + * sleeping. + */ + // @ts-ignore + sleep(location: org.bukkit.Location): boolean; + /** + * Causes this villager to wake up if he's currently sleeping. + */ + // @ts-ignore + wakeup(): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Vindicator.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Vindicator.d.ts new file mode 100644 index 00000000..710c4d8b --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Vindicator.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Vindicator extends org.bukkit.entity.Illager { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.WanderingTrader.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.WanderingTrader.d.ts new file mode 100644 index 00000000..83b294ec --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.WanderingTrader.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface WanderingTrader extends org.bukkit.entity.AbstractVillager { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.WaterMob.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.WaterMob.d.ts new file mode 100644 index 00000000..ae36ff93 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.WaterMob.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface WaterMob extends org.bukkit.entity.Creature { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Witch.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Witch.d.ts new file mode 100644 index 00000000..9c1e0ef9 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Witch.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Witch extends org.bukkit.entity.Raider { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Wither.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Wither.d.ts new file mode 100644 index 00000000..222e1eb6 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Wither.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Wither extends org.bukkit.entity.Monster, org.bukkit.entity.Boss { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.WitherSkeleton.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.WitherSkeleton.d.ts new file mode 100644 index 00000000..9c6acba5 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.WitherSkeleton.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface WitherSkeleton extends org.bukkit.entity.Skeleton { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.WitherSkull.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.WitherSkull.d.ts new file mode 100644 index 00000000..03270c72 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.WitherSkull.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface WitherSkull extends org.bukkit.entity.Fireball { + /** + * Sets the charged status of the wither skull. + */ + // @ts-ignore + setCharged(charged: boolean): void; + /** + * Gets whether or not the wither skull is charged. + */ + // @ts-ignore + isCharged(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Wolf.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Wolf.d.ts new file mode 100644 index 00000000..3ffd7514 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Wolf.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Wolf extends org.bukkit.entity.Animals, org.bukkit.entity.Tameable, org.bukkit.entity.Sittable { + /** + * Checks if this wolf is angry + */ + // @ts-ignore + isAngry(): boolean; + /** + * Sets the anger of this wolf. + *

+ * An angry wolf can not be fed or tamed. + */ + // @ts-ignore + setAngry(angry: boolean): void; + /** + * Get the collar color of this wolf + */ + // @ts-ignore + getCollarColor(): org.bukkit.DyeColor; + /** + * Set the collar color of this wolf + */ + // @ts-ignore + setCollarColor(color: org.bukkit.DyeColor): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.Zombie.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.Zombie.d.ts new file mode 100644 index 00000000..5ee58197 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.Zombie.d.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface Zombie extends org.bukkit.entity.Monster { + /** + * Gets whether the zombie is a baby + */ + // @ts-ignore + isBaby(): boolean; + /** + * Sets whether the zombie is a baby + */ + // @ts-ignore + setBaby(flag: boolean): void; + /** + * Gets whether the zombie is a villager + */ + // @ts-ignore + isVillager(): boolean; + // @ts-ignore + setVillager(flag: boolean): void; + // @ts-ignore + setVillagerProfession(profession: org.bukkit.entity.Villager.Profession): void; + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getConversionTime(): number; + /** + * Sets 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. A value of less than 0 + * will stop the current conversion process without converting the current + * entity. + */ + // @ts-ignore + setConversionTime(time: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.ZombieHorse.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.ZombieHorse.d.ts new file mode 100644 index 00000000..209b60ee --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.ZombieHorse.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface ZombieHorse extends org.bukkit.entity.AbstractHorse { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.ZombieVillager.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.ZombieVillager.d.ts new file mode 100644 index 00000000..53be8f50 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.ZombieVillager.d.ts @@ -0,0 +1,54 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + // @ts-ignore + interface ZombieVillager extends org.bukkit.entity.Zombie { + /** + * Sets the villager profession of this zombie. + */ + // @ts-ignore + setVillagerProfession(profession: org.bukkit.entity.Villager.Profession): void; + /** + * Returns the villager profession of this zombie. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getConversionTime(): number; + /** + * Sets 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. A value of less than 0 + * will stop the current conversion process without converting the current + * entity. + */ + // @ts-ignore + setConversionTime(time: number): void; + /** + * Gets the player who initiated the conversion. + */ + // @ts-ignore + getConversionPlayer(): org.bukkit.OfflinePlayer; + /** + * Sets the player who initiated the conversion. + *

+ * This has no effect if this entity isn't converting currently. + */ + // @ts-ignore + setConversionPlayer(conversionPlayer: org.bukkit.OfflinePlayer): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.memory.MemoryKey.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.memory.MemoryKey.d.ts new file mode 100644 index 00000000..2ab960ab --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.memory.MemoryKey.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + namespace memory { + // @ts-ignore + class MemoryKey extends java.lang.Object implements org.bukkit.Keyed { + // @ts-ignore + public static HOME: org.bukkit.entity.memory.MemoryKey; + // @ts-ignore + public static MEETING_POINT: org.bukkit.entity.memory.MemoryKey; + // @ts-ignore + public static JOB_SITE: org.bukkit.entity.memory.MemoryKey; + // @ts-ignore + public static LAST_SLEPT: org.bukkit.entity.memory.MemoryKey; + // @ts-ignore + public static LAST_WORKED_AT_POI: org.bukkit.entity.memory.MemoryKey; + // @ts-ignore + public getKey(): org.bukkit.NamespacedKey; + /** + * Gets the class of values associated with this memory. + */ + // @ts-ignore + public getMemoryClass(): java.lang.Class; + /** + * Returns a {@link MemoryKey} by a {@link NamespacedKey}. + */ + // @ts-ignore + public static getByKey(namespacedKey: org.bukkit.NamespacedKey): org.bukkit.entity.memory.MemoryKey; + /** + * Returns the set of all MemoryKeys. + */ + // @ts-ignore + public static values(): java.util.Set; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.minecart.CommandMinecart.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.minecart.CommandMinecart.d.ts new file mode 100644 index 00000000..f1f84a41 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.minecart.CommandMinecart.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + namespace minecart { + // @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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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 "@". + */ + // @ts-ignore + setName(name: string): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.minecart.ExplosiveMinecart.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.minecart.ExplosiveMinecart.d.ts new file mode 100644 index 00000000..40d4d369 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.minecart.ExplosiveMinecart.d.ts @@ -0,0 +1,12 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + namespace minecart { + // @ts-ignore + interface ExplosiveMinecart extends org.bukkit.entity.Minecart { + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.minecart.HopperMinecart.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.minecart.HopperMinecart.d.ts new file mode 100644 index 00000000..ba8197a1 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.minecart.HopperMinecart.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + namespace minecart { + // @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. + */ + // @ts-ignore + isEnabled(): boolean; + /** + * Sets whether this Minecart will pick up items. + */ + // @ts-ignore + setEnabled(enabled: boolean): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.minecart.PoweredMinecart.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.minecart.PoweredMinecart.d.ts new file mode 100644 index 00000000..c5348dea --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.minecart.PoweredMinecart.d.ts @@ -0,0 +1,12 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + namespace minecart { + // @ts-ignore + interface PoweredMinecart extends org.bukkit.entity.Minecart { + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.minecart.RideableMinecart.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.minecart.RideableMinecart.d.ts new file mode 100644 index 00000000..7f380301 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.minecart.RideableMinecart.d.ts @@ -0,0 +1,12 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + namespace minecart { + // @ts-ignore + interface RideableMinecart extends org.bukkit.entity.Minecart { + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.minecart.SpawnerMinecart.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.minecart.SpawnerMinecart.d.ts new file mode 100644 index 00000000..49bc8321 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.minecart.SpawnerMinecart.d.ts @@ -0,0 +1,12 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + namespace minecart { + // @ts-ignore + interface SpawnerMinecart extends org.bukkit.entity.Minecart { + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.entity.minecart.StorageMinecart.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.entity.minecart.StorageMinecart.d.ts new file mode 100644 index 00000000..553ba42c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.entity.minecart.StorageMinecart.d.ts @@ -0,0 +1,12 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace entity { + namespace minecart { + // @ts-ignore + interface StorageMinecart extends org.bukkit.entity.Minecart, org.bukkit.inventory.InventoryHolder, org.bukkit.loot.Lootable { + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.Cancellable.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.Cancellable.d.ts new file mode 100644 index 00000000..8161601f --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.Cancellable.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + // @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 + */ + // @ts-ignore + 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. + */ + // @ts-ignore + setCancelled(cancel: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.Event.Result.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.Event.Result.d.ts new file mode 100644 index 00000000..762127fe --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.Event.Result.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace Event { + // @ts-ignore + class Result extends java.lang.Enum { + // @ts-ignore + public static DENY: org.bukkit.event.Event.Result; + // @ts-ignore + public static DEFAULT: org.bukkit.event.Event.Result; + // @ts-ignore + public static ALLOW: org.bukkit.event.Event.Result; + // @ts-ignore + public static values(): org.bukkit.event.Event.Result[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.event.Event.Result; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.Event.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.Event.d.ts new file mode 100644 index 00000000..b3827a87 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.Event.d.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + // @ts-ignore + abstract class Event extends java.lang.Object { + /** + * The default constructor is defined for cleaner code. This constructor + * assumes the event is synchronous. + */ + // @ts-ignore + constructor() + /** + * This constructor is used to explicitly declare an event as synchronous + * or asynchronous. + */ + // @ts-ignore + constructor(isAsync: boolean) + /** + * Convenience method for providing a user-friendly identifier. By + * default, it is the event's class's {@linkplain Class#getSimpleName() + * simple name}. + */ + // @ts-ignore + public getEventName(): string; + // @ts-ignore + public abstract getHandlers(): org.bukkit.event.HandlerList; + /** + * Any custom event that should not by synchronized with other events must + * use the specific constructor. These are the caveats of using an + * asynchronous event: + *

    + *
  • The event is never fired from inside code triggered by a + * synchronous event. Attempting to do so results in an {@link + * java.lang.IllegalStateException}. + *
  • However, asynchronous event handlers may fire synchronous or + * asynchronous events + *
  • The event may be fired multiple times simultaneously and in any + * order. + *
  • Any newly registered or unregistered handler is ignored after an + * event starts execution. + *
  • The handlers for this event may block for any length of time. + *
  • Some implementations may selectively declare a specific event use + * as asynchronous. This behavior should be clearly defined. + *
  • Asynchronous calls are not calculated in the plugin timing system. + *
+ */ + // @ts-ignore + public isAsynchronous(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.EventException.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.EventException.d.ts new file mode 100644 index 00000000..4ded6d98 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.EventException.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + // @ts-ignore + class EventException extends java.lang.Exception { + /** + * Constructs a new EventException based on the given Exception + */ + // @ts-ignore + constructor(throwable: java.lang.Throwable) + /** + * Constructs a new EventException + */ + // @ts-ignore + constructor() + /** + * Constructs a new EventException with the given message + */ + // @ts-ignore + constructor(cause: java.lang.Throwable, message: string) + /** + * Constructs a new EventException with the given message + */ + // @ts-ignore + constructor(message: string) + /** + * If applicable, returns the Exception that triggered this Exception + */ + // @ts-ignore + public getCause(): java.lang.Throwable; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.EventHandler.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.EventHandler.d.ts new file mode 100644 index 00000000..77f394d2 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.EventHandler.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + // @ts-ignore + interface EventHandler { + /** + * Define the priority of the event. + *

+ * First priority to the last priority executed: + *

    + *
  1. LOWEST + *
  2. LOW + *
  3. NORMAL + *
  4. HIGH + *
  5. HIGHEST + *
  6. MONITOR + *
+ */ + // @ts-ignore + 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. + */ + // @ts-ignore + ignoreCancelled(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.EventPriority.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.EventPriority.d.ts new file mode 100644 index 00000000..993c232b --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.EventPriority.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + // @ts-ignore + class EventPriority extends java.lang.Enum { + // @ts-ignore + public static LOWEST: org.bukkit.event.EventPriority; + // @ts-ignore + public static LOW: org.bukkit.event.EventPriority; + // @ts-ignore + public static NORMAL: org.bukkit.event.EventPriority; + // @ts-ignore + public static HIGH: org.bukkit.event.EventPriority; + // @ts-ignore + public static HIGHEST: org.bukkit.event.EventPriority; + // @ts-ignore + public static MONITOR: org.bukkit.event.EventPriority; + // @ts-ignore + public static values(): org.bukkit.event.EventPriority[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.event.EventPriority; + // @ts-ignore + public getSlot(): number; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.HandlerList.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.HandlerList.d.ts new file mode 100644 index 00000000..5a9700ba --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.HandlerList.d.ts @@ -0,0 +1,85 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + // @ts-ignore + class HandlerList extends java.lang.Object { + /** + * Create a new handler list and initialize using EventPriority. + *

+ * The HandlerList is then added to meta-list for use in bakeAll() + */ + // @ts-ignore + constructor() + /** + * Bake all handler lists. Best used just after all normal event + * registration is complete, ie just after all plugins are loaded if + * you're using fevents in a plugin system. + */ + // @ts-ignore + public static bakeAll(): void; + /** + * Unregister all listeners from all handler lists. + */ + // @ts-ignore + public static unregisterAll(): void; + /** + * Unregister a specific plugin's listeners from all handler lists. + */ + // @ts-ignore + public static unregisterAll(plugin: org.bukkit.plugin.Plugin): void; + /** + * Unregister a specific listener from all handler lists. + */ + // @ts-ignore + public static unregisterAll(listener: org.bukkit.event.Listener): void; + /** + * Register a new listener in this handler list + */ + // @ts-ignore + public register(listener: org.bukkit.plugin.RegisteredListener): void; + /** + * Register a collection of new listeners in this handler list + */ + // @ts-ignore + public registerAll(listeners: java.util.Collection): void; + /** + * Remove a listener from a specific order slot + */ + // @ts-ignore + public unregister(listener: org.bukkit.plugin.RegisteredListener): void; + /** + * Remove a specific plugin's listeners from this handler + */ + // @ts-ignore + public unregister(plugin: org.bukkit.plugin.Plugin): void; + /** + * Remove a specific listener from this handler + */ + // @ts-ignore + public unregister(listener: org.bukkit.event.Listener): void; + /** + * Bake HashMap and ArrayLists to 2d array - does nothing if not necessary + */ + // @ts-ignore + public bake(): void; + /** + * Get the baked registered listeners associated with this handler list + */ + // @ts-ignore + public getRegisteredListeners(): org.bukkit.plugin.RegisteredListener[]; + /** + * Get a specific plugin's registered listeners associated with this + * handler list + */ + // @ts-ignore + public static getRegisteredListeners(plugin: org.bukkit.plugin.Plugin): java.util.ArrayList; + /** + * Get a list of all handler lists for every event type + */ + // @ts-ignore + public static getHandlerLists(): java.util.ArrayList; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.Listener.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.Listener.d.ts new file mode 100644 index 00000000..ae1ed70e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.Listener.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + // @ts-ignore + interface Listener { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.Action.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.Action.d.ts new file mode 100644 index 00000000..cd91b458 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.Action.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + class Action extends java.lang.Enum { + // @ts-ignore + public static LEFT_CLICK_BLOCK: org.bukkit.event.block.Action; + // @ts-ignore + public static RIGHT_CLICK_BLOCK: org.bukkit.event.block.Action; + // @ts-ignore + public static LEFT_CLICK_AIR: org.bukkit.event.block.Action; + // @ts-ignore + public static RIGHT_CLICK_AIR: org.bukkit.event.block.Action; + // @ts-ignore + public static PHYSICAL: org.bukkit.event.block.Action; + // @ts-ignore + public static values(): org.bukkit.event.block.Action[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.event.block.Action; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockBreakEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockBreakEvent.d.ts new file mode 100644 index 00000000..abd2a78f --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockBreakEvent.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockBreakEvent extends org.bukkit.event.block.BlockExpEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(theBlock: org.bukkit.block.Block, player: org.bukkit.entity.Player) + /** + * Gets the Player that is breaking the block involved in this event. + */ + // @ts-ignore + public getPlayer(): org.bukkit.entity.Player; + /** + * Sets whether or not the block will drop items as it normally would. + */ + // @ts-ignore + public setDropItems(dropItems: boolean): void; + /** + * Gets whether or not the block will drop items. + */ + // @ts-ignore + public isDropItems(): boolean; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockBurnEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockBurnEvent.d.ts new file mode 100644 index 00000000..554fabd4 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockBurnEvent.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockBurnEvent extends org.bukkit.event.block.BlockEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(block: org.bukkit.block.Block) + // @ts-ignore + constructor(block: org.bukkit.block.Block, ignitingBlock: org.bukkit.block.Block) + /** + * Gets the block which ignited this block. + */ + // @ts-ignore + public getIgnitingBlock(): org.bukkit.block.Block; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockCanBuildEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockCanBuildEvent.d.ts new file mode 100644 index 00000000..055cccd8 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockCanBuildEvent.d.ts @@ -0,0 +1,54 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockCanBuildEvent extends org.bukkit.event.block.BlockEvent { + // @ts-ignore + constructor(block: org.bukkit.block.Block, type: org.bukkit.block.data.BlockData, canBuild: boolean) + // @ts-ignore + constructor(block: org.bukkit.block.Block, player: org.bukkit.entity.Player, type: org.bukkit.block.data.BlockData, canBuild: boolean) + // @ts-ignore + protected buildable: boolean; + // @ts-ignore + protected blockData: org.bukkit.block.data.BlockData; + /** + * Gets whether or not the block can be built here. + *

+ * By default, returns Minecraft's answer on whether the block can be + * built here or not. + */ + // @ts-ignore + public isBuildable(): boolean; + /** + * Sets whether the block can be built here or not. + */ + // @ts-ignore + public setBuildable(cancel: boolean): void; + /** + * Gets the Material that we are trying to place. + */ + // @ts-ignore + public getMaterial(): org.bukkit.Material; + /** + * Gets the BlockData that we are trying to place. + */ + // @ts-ignore + public getBlockData(): org.bukkit.block.data.BlockData; + /** + * Gets the player who placed the block involved in this event. + *
+ * May be null for legacy calls of the event. + */ + // @ts-ignore + public getPlayer(): org.bukkit.entity.Player; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockCookEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockCookEvent.d.ts new file mode 100644 index 00000000..488bdb05 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockCookEvent.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockCookEvent extends org.bukkit.event.block.BlockEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(block: org.bukkit.block.Block, source: org.bukkit.inventory.ItemStack, result: org.bukkit.inventory.ItemStack) + /** + * Gets the smelted ItemStack for this event + */ + // @ts-ignore + public getSource(): org.bukkit.inventory.ItemStack; + /** + * Gets the resultant ItemStack for this event + */ + // @ts-ignore + public getResult(): org.bukkit.inventory.ItemStack; + /** + * Sets the resultant ItemStack for this event + */ + // @ts-ignore + public setResult(result: org.bukkit.inventory.ItemStack): void; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockDamageEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockDamageEvent.d.ts new file mode 100644 index 00000000..b7fe7745 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockDamageEvent.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockDamageEvent extends org.bukkit.event.block.BlockEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + 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. + */ + // @ts-ignore + public getPlayer(): org.bukkit.entity.Player; + /** + * Gets if the block is set to instantly break when damaged by the player. + */ + // @ts-ignore + public getInstaBreak(): boolean; + /** + * Sets if the block should instantly break when damaged by the player. + */ + // @ts-ignore + public setInstaBreak(bool: boolean): void; + /** + * Gets the ItemStack for the item currently in the player's hand. + */ + // @ts-ignore + public getItemInHand(): org.bukkit.inventory.ItemStack; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockDispenseArmorEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockDispenseArmorEvent.d.ts new file mode 100644 index 00000000..3760454c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockDispenseArmorEvent.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockDispenseArmorEvent extends org.bukkit.event.block.BlockDispenseEvent { + // @ts-ignore + 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. + */ + // @ts-ignore + public getTargetEntity(): org.bukkit.entity.LivingEntity; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockDispenseEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockDispenseEvent.d.ts new file mode 100644 index 00000000..eba42b02 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockDispenseEvent.d.ts @@ -0,0 +1,47 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockDispenseEvent extends org.bukkit.event.block.BlockEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + 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 + * have no effect, you must use {@link + * #setItem(org.bukkit.inventory.ItemStack)} instead. + */ + // @ts-ignore + public getItem(): org.bukkit.inventory.ItemStack; + /** + * Sets the item being dispensed. + */ + // @ts-ignore + public setItem(item: org.bukkit.inventory.ItemStack): void; + /** + * Gets the velocity. + *

+ * Note: Modifying the returned Vector will not change the velocity, you + * must use {@link #setVelocity(org.bukkit.util.Vector)} instead. + */ + // @ts-ignore + public getVelocity(): org.bukkit.util.Vector; + /** + * Sets the velocity of the item being dispensed. + */ + // @ts-ignore + public setVelocity(vel: org.bukkit.util.Vector): void; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockDropItemEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockDropItemEvent.d.ts new file mode 100644 index 00000000..d965bf9c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockDropItemEvent.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockDropItemEvent extends org.bukkit.event.block.BlockEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(block: org.bukkit.block.Block, blockState: org.bukkit.block.BlockState, player: org.bukkit.entity.Player, items: java.util.List) + /** + * Gets the Player that is breaking the block involved in this event. + */ + // @ts-ignore + public getPlayer(): org.bukkit.entity.Player; + /** + * Gets the BlockState of the block involved in this event before it was + * broken. + */ + // @ts-ignore + public getBlockState(): org.bukkit.block.BlockState; + /** + * Gets list of the Item drops caused by the block break. + * This list is mutable - removing an item from it will cause it to not + * drop. It is not legal however to add new items to the list. + */ + // @ts-ignore + public getItems(): java.util.List; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockEvent.d.ts new file mode 100644 index 00000000..f1791ce6 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockEvent.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + abstract class BlockEvent extends org.bukkit.event.Event { + // @ts-ignore + constructor(theBlock: org.bukkit.block.Block) + // @ts-ignore + protected block: org.bukkit.block.Block; + /** + * Gets the block involved in this event. + */ + // @ts-ignore + public getBlock(): org.bukkit.block.Block; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockExpEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockExpEvent.d.ts new file mode 100644 index 00000000..d4e164e9 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockExpEvent.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockExpEvent extends org.bukkit.event.block.BlockEvent { + // @ts-ignore + constructor(block: org.bukkit.block.Block, exp: number) + /** + * Get the experience dropped by the block after the event has processed + */ + // @ts-ignore + public getExpToDrop(): number; + /** + * Set the amount of experience dropped by the block after the event has + * processed + */ + // @ts-ignore + public setExpToDrop(exp: number): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockExplodeEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockExplodeEvent.d.ts new file mode 100644 index 00000000..38740319 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockExplodeEvent.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockExplodeEvent extends org.bukkit.event.block.BlockEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(what: org.bukkit.block.Block, blocks: java.util.List, yield: number) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + /** + * Returns the list of blocks that would have been removed or were removed + * from the explosion event. + */ + // @ts-ignore + public blockList(): java.util.List; + /** + * Returns the percentage of blocks to drop from this explosion + */ + // @ts-ignore + public getYield(): number; + /** + * Sets the percentage of blocks to drop from this explosion + */ + // @ts-ignore + public setYield(yield: number): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockFadeEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockFadeEvent.d.ts new file mode 100644 index 00000000..a750a216 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockFadeEvent.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockFadeEvent extends org.bukkit.event.block.BlockEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(block: org.bukkit.block.Block, newState: org.bukkit.block.BlockState) + /** + * Gets the state of the block that will be fading, melting or + * disappearing. + */ + // @ts-ignore + public getNewState(): org.bukkit.block.BlockState; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockFertilizeEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockFertilizeEvent.d.ts new file mode 100644 index 00000000..a380da36 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockFertilizeEvent.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockFertilizeEvent extends org.bukkit.event.block.BlockEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(theBlock: org.bukkit.block.Block, player: org.bukkit.entity.Player, blocks: java.util.List) + /** + * Gets the player that triggered the fertilization. + */ + // @ts-ignore + public getPlayer(): org.bukkit.entity.Player; + /** + * Gets a list of all blocks changed by the fertilization. + */ + // @ts-ignore + public getBlocks(): java.util.List; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancelled: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockFormEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockFormEvent.d.ts new file mode 100644 index 00000000..6cc96d7c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockFormEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockFormEvent extends org.bukkit.event.block.BlockGrowEvent { + // @ts-ignore + constructor(block: org.bukkit.block.Block, newState: org.bukkit.block.BlockState) + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockFromToEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockFromToEvent.d.ts new file mode 100644 index 00000000..28adba4d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockFromToEvent.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockFromToEvent extends org.bukkit.event.block.BlockEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(block: org.bukkit.block.Block, face: org.bukkit.block.BlockFace) + // @ts-ignore + constructor(block: org.bukkit.block.Block, toBlock: org.bukkit.block.Block) + // @ts-ignore + protected to: org.bukkit.block.Block; + // @ts-ignore + protected face: org.bukkit.block.BlockFace; + // @ts-ignore + protected cancel: boolean; + /** + * Gets the BlockFace that the block is moving to. + */ + // @ts-ignore + public getFace(): org.bukkit.block.BlockFace; + /** + * Convenience method for getting the faced Block. + */ + // @ts-ignore + public getToBlock(): org.bukkit.block.Block; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockGrowEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockGrowEvent.d.ts new file mode 100644 index 00000000..a3b9bfe6 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockGrowEvent.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockGrowEvent extends org.bukkit.event.block.BlockEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(block: org.bukkit.block.Block, newState: org.bukkit.block.BlockState) + /** + * Gets the state of the block where it will form or spread to. + */ + // @ts-ignore + public getNewState(): org.bukkit.block.BlockState; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockIgniteEvent.IgniteCause.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockIgniteEvent.IgniteCause.d.ts new file mode 100644 index 00000000..809b6dcd --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockIgniteEvent.IgniteCause.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + namespace BlockIgniteEvent { + // @ts-ignore + class IgniteCause extends java.lang.Enum { + // @ts-ignore + public static LAVA: org.bukkit.event.block.BlockIgniteEvent.IgniteCause; + // @ts-ignore + public static FLINT_AND_STEEL: org.bukkit.event.block.BlockIgniteEvent.IgniteCause; + // @ts-ignore + public static SPREAD: org.bukkit.event.block.BlockIgniteEvent.IgniteCause; + // @ts-ignore + public static LIGHTNING: org.bukkit.event.block.BlockIgniteEvent.IgniteCause; + // @ts-ignore + public static FIREBALL: org.bukkit.event.block.BlockIgniteEvent.IgniteCause; + // @ts-ignore + public static ENDER_CRYSTAL: org.bukkit.event.block.BlockIgniteEvent.IgniteCause; + // @ts-ignore + public static EXPLOSION: org.bukkit.event.block.BlockIgniteEvent.IgniteCause; + // @ts-ignore + public static values(): org.bukkit.event.block.BlockIgniteEvent.IgniteCause[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.event.block.BlockIgniteEvent.IgniteCause; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockIgniteEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockIgniteEvent.d.ts new file mode 100644 index 00000000..bcadd2c7 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockIgniteEvent.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockIgniteEvent extends org.bukkit.event.block.BlockEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(theBlock: org.bukkit.block.Block, cause: org.bukkit.event.block.BlockIgniteEvent.IgniteCause, ignitingEntity: org.bukkit.entity.Entity) + // @ts-ignore + constructor(theBlock: org.bukkit.block.Block, cause: org.bukkit.event.block.BlockIgniteEvent.IgniteCause, ignitingBlock: org.bukkit.block.Block) + // @ts-ignore + constructor(theBlock: org.bukkit.block.Block, cause: org.bukkit.event.block.BlockIgniteEvent.IgniteCause, ignitingEntity: org.bukkit.entity.Entity, ignitingBlock: org.bukkit.block.Block) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + /** + * Gets the cause of block ignite. + */ + // @ts-ignore + public getCause(): org.bukkit.event.block.BlockIgniteEvent.IgniteCause; + /** + * Gets the player who ignited this block + */ + // @ts-ignore + public getPlayer(): org.bukkit.entity.Player; + /** + * Gets the entity who ignited this block + */ + // @ts-ignore + public getIgnitingEntity(): org.bukkit.entity.Entity; + /** + * Gets the block which ignited this block + */ + // @ts-ignore + public getIgnitingBlock(): org.bukkit.block.Block; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockMultiPlaceEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockMultiPlaceEvent.d.ts new file mode 100644 index 00000000..28be5b37 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockMultiPlaceEvent.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockMultiPlaceEvent extends org.bukkit.event.block.BlockPlaceEvent { + // @ts-ignore + constructor(states: 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 + * placement of the new blocks. Most of these blocks will just have a + * Material type of AIR. + */ + // @ts-ignore + public getReplacedBlockStates(): java.util.List; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockPhysicsEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockPhysicsEvent.d.ts new file mode 100644 index 00000000..284ce79e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockPhysicsEvent.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockPhysicsEvent extends org.bukkit.event.block.BlockEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(block: org.bukkit.block.Block, changed: org.bukkit.block.data.BlockData) + // @ts-ignore + constructor(block: org.bukkit.block.Block, changed: org.bukkit.block.data.BlockData, sourceBlock: org.bukkit.block.Block) + /** + * Gets the source block that triggered this event. + * Note: This will default to block if not set. + */ + // @ts-ignore + public getSourceBlock(): org.bukkit.block.Block; + /** + * Gets the type of block that changed, causing this event + */ + // @ts-ignore + public getChangedType(): org.bukkit.Material; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockPistonEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockPistonEvent.d.ts new file mode 100644 index 00000000..8f4259ec --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockPistonEvent.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + abstract class BlockPistonEvent extends org.bukkit.event.block.BlockEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(block: org.bukkit.block.Block, direction: org.bukkit.block.BlockFace) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancelled: boolean): void; + /** + * Returns true if the Piston in the event is sticky. + */ + // @ts-ignore + public isSticky(): boolean; + /** + * Return the direction in which the piston will operate. + */ + // @ts-ignore + public getDirection(): org.bukkit.block.BlockFace; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockPistonExtendEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockPistonExtendEvent.d.ts new file mode 100644 index 00000000..cd67af8a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockPistonExtendEvent.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockPistonExtendEvent extends org.bukkit.event.block.BlockPistonEvent { + // @ts-ignore + constructor(block: org.bukkit.block.Block, length: number, direction: org.bukkit.block.BlockFace) + // @ts-ignore + constructor(block: org.bukkit.block.Block, blocks: java.util.List, direction: org.bukkit.block.BlockFace) + /** + * Get the amount of blocks which will be moved while extending. + */ + // @ts-ignore + public getLength(): number; + /** + * Get an immutable list of the blocks which will be moved by the + * extending. + */ + // @ts-ignore + public getBlocks(): java.util.List; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockPistonRetractEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockPistonRetractEvent.d.ts new file mode 100644 index 00000000..68828473 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockPistonRetractEvent.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockPistonRetractEvent extends org.bukkit.event.block.BlockPistonEvent { + // @ts-ignore + constructor(block: org.bukkit.block.Block, blocks: java.util.List, direction: org.bukkit.block.BlockFace) + /** + * Gets the location where the possible moving block might be if the + * retracting piston is sticky. + */ + // @ts-ignore + public getRetractLocation(): org.bukkit.Location; + /** + * Get an immutable list of the blocks which will be moved by the + * extending. + */ + // @ts-ignore + public getBlocks(): java.util.List; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockPlaceEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockPlaceEvent.d.ts new file mode 100644 index 00000000..a2b2ade8 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockPlaceEvent.d.ts @@ -0,0 +1,83 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockPlaceEvent extends org.bukkit.event.block.BlockEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + 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) + // @ts-ignore + 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) + // @ts-ignore + protected cancel: boolean; + // @ts-ignore + protected placedAgainst: org.bukkit.block.Block; + // @ts-ignore + protected replacedBlockState: org.bukkit.block.BlockState; + // @ts-ignore + protected itemInHand: org.bukkit.inventory.ItemStack; + // @ts-ignore + protected player: org.bukkit.entity.Player; + // @ts-ignore + protected hand: org.bukkit.inventory.EquipmentSlot; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + /** + * Gets the player who placed the block involved in this event. + */ + // @ts-ignore + public getPlayer(): org.bukkit.entity.Player; + /** + * Clarity method for getting the placed block. Not really needed except + * for reasons of clarity. + */ + // @ts-ignore + public getBlockPlaced(): org.bukkit.block.Block; + /** + * Gets the BlockState for the block which was replaced. Material type air + * mostly. + */ + // @ts-ignore + public getBlockReplacedState(): org.bukkit.block.BlockState; + /** + * Gets the block that this block was placed against + */ + // @ts-ignore + public getBlockAgainst(): org.bukkit.block.Block; + /** + * Gets the item in the player's hand when they placed the block. + */ + // @ts-ignore + public getItemInHand(): org.bukkit.inventory.ItemStack; + /** + * Gets the hand which placed the block + */ + // @ts-ignore + public getHand(): org.bukkit.inventory.EquipmentSlot; + /** + * Gets the value whether the player would be allowed to build here. + * Defaults to spawn if the server was going to stop them (such as, the + * player is in Spawn). Note that this is an entirely different check + * than BLOCK_CANBUILD, as this refers to a player, not universe-physics + * rule like cactus on dirt. + */ + // @ts-ignore + public canBuild(): boolean; + /** + * Sets the canBuild state of this event. Set to true if you want the + * player to be able to build. + */ + // @ts-ignore + public setBuild(canBuild: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockRedstoneEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockRedstoneEvent.d.ts new file mode 100644 index 00000000..16bcf07f --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockRedstoneEvent.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockRedstoneEvent extends org.bukkit.event.block.BlockEvent { + // @ts-ignore + constructor(block: org.bukkit.block.Block, oldCurrent: number, newCurrent: number) + /** + * Gets the old current of this block + */ + // @ts-ignore + public getOldCurrent(): number; + /** + * Gets the new current of this block + */ + // @ts-ignore + public getNewCurrent(): number; + /** + * Sets the new current of this block + */ + // @ts-ignore + public setNewCurrent(newCurrent: number): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockShearEntityEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockShearEntityEvent.d.ts new file mode 100644 index 00000000..dcb0ac3e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockShearEntityEvent.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockShearEntityEvent extends org.bukkit.event.block.BlockEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(dispenser: org.bukkit.block.Block, sheared: org.bukkit.entity.Entity, tool: org.bukkit.inventory.ItemStack) + /** + * Gets the entity that was sheared. + */ + // @ts-ignore + public getEntity(): org.bukkit.entity.Entity; + /** + * Gets the item used to shear this sheep. + */ + // @ts-ignore + public getTool(): org.bukkit.inventory.ItemStack; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancelled: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockSpreadEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockSpreadEvent.d.ts new file mode 100644 index 00000000..be885935 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.BlockSpreadEvent.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + class BlockSpreadEvent extends org.bukkit.event.block.BlockFormEvent { + // @ts-ignore + constructor(block: org.bukkit.block.Block, source: org.bukkit.block.Block, newState: org.bukkit.block.BlockState) + /** + * Gets the source block involved in this event. + */ + // @ts-ignore + public getSource(): org.bukkit.block.Block; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.CauldronLevelChangeEvent.ChangeReason.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.CauldronLevelChangeEvent.ChangeReason.d.ts new file mode 100644 index 00000000..194409dc --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.CauldronLevelChangeEvent.ChangeReason.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + namespace CauldronLevelChangeEvent { + // @ts-ignore + class ChangeReason extends java.lang.Enum { + // @ts-ignore + public static BUCKET_FILL: org.bukkit.event.block.CauldronLevelChangeEvent.ChangeReason; + // @ts-ignore + public static BUCKET_EMPTY: org.bukkit.event.block.CauldronLevelChangeEvent.ChangeReason; + // @ts-ignore + public static BOTTLE_FILL: org.bukkit.event.block.CauldronLevelChangeEvent.ChangeReason; + // @ts-ignore + public static BOTTLE_EMPTY: org.bukkit.event.block.CauldronLevelChangeEvent.ChangeReason; + // @ts-ignore + public static BANNER_WASH: org.bukkit.event.block.CauldronLevelChangeEvent.ChangeReason; + // @ts-ignore + public static ARMOR_WASH: org.bukkit.event.block.CauldronLevelChangeEvent.ChangeReason; + // @ts-ignore + public static EXTINGUISH: org.bukkit.event.block.CauldronLevelChangeEvent.ChangeReason; + // @ts-ignore + public static EVAPORATE: org.bukkit.event.block.CauldronLevelChangeEvent.ChangeReason; + // @ts-ignore + public static UNKNOWN: org.bukkit.event.block.CauldronLevelChangeEvent.ChangeReason; + // @ts-ignore + public static values(): org.bukkit.event.block.CauldronLevelChangeEvent.ChangeReason[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.event.block.CauldronLevelChangeEvent.ChangeReason; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.CauldronLevelChangeEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.CauldronLevelChangeEvent.d.ts new file mode 100644 index 00000000..296020b6 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.CauldronLevelChangeEvent.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + class CauldronLevelChangeEvent extends org.bukkit.event.block.BlockEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + 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. + */ + // @ts-ignore + public getEntity(): org.bukkit.entity.Entity; + // @ts-ignore + public getReason(): org.bukkit.event.block.CauldronLevelChangeEvent.ChangeReason; + // @ts-ignore + public getOldLevel(): number; + // @ts-ignore + public getNewLevel(): number; + // @ts-ignore + public setNewLevel(newLevel: number): void; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancelled: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.EntityBlockFormEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.EntityBlockFormEvent.d.ts new file mode 100644 index 00000000..1f67bb40 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.EntityBlockFormEvent.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + class EntityBlockFormEvent extends org.bukkit.event.block.BlockFormEvent { + // @ts-ignore + constructor(entity: org.bukkit.entity.Entity, block: org.bukkit.block.Block, blockstate: org.bukkit.block.BlockState) + /** + * Get the entity that formed the block. + */ + // @ts-ignore + public getEntity(): org.bukkit.entity.Entity; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.FluidLevelChangeEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.FluidLevelChangeEvent.d.ts new file mode 100644 index 00000000..d4e81fbb --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.FluidLevelChangeEvent.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + class FluidLevelChangeEvent extends org.bukkit.event.block.BlockEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(theBlock: org.bukkit.block.Block, newData: org.bukkit.block.data.BlockData) + /** + * Gets the new data of the changed block. + */ + // @ts-ignore + public getNewData(): org.bukkit.block.data.BlockData; + /** + * Sets the new data of the changed block. Must be of the same Material as + * the old one. + */ + // @ts-ignore + public setNewData(newData: org.bukkit.block.data.BlockData): void; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancelled: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.LeavesDecayEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.LeavesDecayEvent.d.ts new file mode 100644 index 00000000..80d43dcf --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.LeavesDecayEvent.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + class LeavesDecayEvent extends org.bukkit.event.block.BlockEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(block: org.bukkit.block.Block) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.MoistureChangeEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.MoistureChangeEvent.d.ts new file mode 100644 index 00000000..ce499bf3 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.MoistureChangeEvent.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + class MoistureChangeEvent extends org.bukkit.event.block.BlockEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(block: org.bukkit.block.Block, newState: org.bukkit.block.BlockState) + /** + * Gets the new state of the affected block. + */ + // @ts-ignore + public getNewState(): org.bukkit.block.BlockState; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.NotePlayEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.NotePlayEvent.d.ts new file mode 100644 index 00000000..c268460e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.NotePlayEvent.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + class NotePlayEvent extends org.bukkit.event.block.BlockEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(block: org.bukkit.block.Block, instrument: org.bukkit.Instrument, note: org.bukkit.Note) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + /** + * Gets the {@link Instrument} to be used. + */ + // @ts-ignore + public getInstrument(): org.bukkit.Instrument; + /** + * Gets the {@link Note} to be played. + */ + // @ts-ignore + public getNote(): org.bukkit.Note; + /** + * Overrides the {@link Instrument} to be used. + */ + // @ts-ignore + public setInstrument(instrument: org.bukkit.Instrument): void; + /** + * Overrides the {@link Note} to be played. + */ + // @ts-ignore + public setNote(note: org.bukkit.Note): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.SignChangeEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.SignChangeEvent.d.ts new file mode 100644 index 00000000..18b25482 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.SignChangeEvent.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + class SignChangeEvent extends org.bukkit.event.block.BlockEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(theBlock: org.bukkit.block.Block, thePlayer: org.bukkit.entity.Player, theLines: string) + /** + * Gets the player changing the sign involved in this event. + */ + // @ts-ignore + public getPlayer(): org.bukkit.entity.Player; + /** + * Gets all of the lines of text from the sign involved in this event. + */ + // @ts-ignore + public getLines(): java.lang.String[]; + /** + * Gets a single line of text from the sign involved in this event. + */ + // @ts-ignore + public getLine(index: number): string; + /** + * Sets a single line for the sign involved in this event + */ + // @ts-ignore + public setLine(index: number, line: string): void; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.block.SpongeAbsorbEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.block.SpongeAbsorbEvent.d.ts new file mode 100644 index 00000000..42a0a67f --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.block.SpongeAbsorbEvent.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace block { + // @ts-ignore + class SpongeAbsorbEvent extends org.bukkit.event.block.BlockEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(block: org.bukkit.block.Block, waterblocks: java.util.List) + /** + * Get a list of all blocks to be removed by the sponge. + *
+ * This list is mutable and contains the blocks in their removed state, i.e. + * having a type of {@link Material#AIR}. + */ + // @ts-ignore + public getBlocks(): java.util.List; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.enchantment.EnchantItemEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.enchantment.EnchantItemEvent.d.ts new file mode 100644 index 00000000..e80090f3 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.enchantment.EnchantItemEvent.d.ts @@ -0,0 +1,59 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace enchantment { + // @ts-ignore + class EnchantItemEvent extends org.bukkit.event.inventory.InventoryEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(enchanter: org.bukkit.entity.Player, view: org.bukkit.inventory.InventoryView, table: org.bukkit.block.Block, item: org.bukkit.inventory.ItemStack, level: number, enchants: java.util.Map, i: number) + /** + * Gets the player enchanting the item + */ + // @ts-ignore + public getEnchanter(): org.bukkit.entity.Player; + /** + * Gets the block being used to enchant the item + */ + // @ts-ignore + public getEnchantBlock(): org.bukkit.block.Block; + /** + * Gets the item to be enchanted (can be modified) + */ + // @ts-ignore + public getItem(): org.bukkit.inventory.ItemStack; + /** + * Get cost in exp levels of the enchantment + */ + // @ts-ignore + public getExpLevelCost(): number; + /** + * Set cost in exp levels of the enchantment + */ + // @ts-ignore + public setExpLevelCost(level: number): void; + /** + * Get map of enchantment (levels, keyed by type) to be added to item + * (modify map returned to change values). Note: Any enchantments not + * allowed for the item will be ignored + */ + // @ts-ignore + public getEnchantsToAdd(): java.util.Map; + /** + * Which button was pressed to initiate the enchanting. + */ + // @ts-ignore + public whichButton(): number; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.enchantment.PrepareItemEnchantEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.enchantment.PrepareItemEnchantEvent.d.ts new file mode 100644 index 00000000..e822ff68 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.enchantment.PrepareItemEnchantEvent.d.ts @@ -0,0 +1,55 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace enchantment { + // @ts-ignore + class PrepareItemEnchantEvent extends org.bukkit.event.inventory.InventoryEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + 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 + */ + // @ts-ignore + public getEnchanter(): org.bukkit.entity.Player; + /** + * Gets the block being used to enchant the item + */ + // @ts-ignore + public getEnchantBlock(): org.bukkit.block.Block; + /** + * Gets the item to be enchanted. + */ + // @ts-ignore + public getItem(): org.bukkit.inventory.ItemStack; + /** + * Get a list of offered experience level costs of the enchantment. + */ + // @ts-ignore + public getExpLevelCostsOffered(): number[]; + /** + * Get a list of available {@link EnchantmentOffer} for the player. You can + * modify the values to change the available offers for the player. An offer + * may be null, if there isn't a enchantment offer at a specific slot. There + * are 3 slots in the enchantment table available to modify. + */ + // @ts-ignore + public getOffers(): org.bukkit.enchantments.EnchantmentOffer[]; + /** + * Get enchantment bonus in effect - corresponds to number of bookshelves + */ + // @ts-ignore + public getEnchantmentBonus(): number; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.AreaEffectCloudApplyEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.AreaEffectCloudApplyEvent.d.ts new file mode 100644 index 00000000..bc7801e3 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.AreaEffectCloudApplyEvent.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class AreaEffectCloudApplyEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(entity: org.bukkit.entity.AreaEffectCloud, affectedEntities: java.util.List) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getEntity(): org.bukkit.entity.AreaEffectCloud; + /** + * Retrieves a mutable list of the effected entities + *

+ * It is important to note that not every entity in this list + * is guaranteed to be effected. The cloud may die during the + * application of its effects due to the depletion of {@link AreaEffectCloud#getDurationOnUse()} + * or {@link AreaEffectCloud#getRadiusOnUse()} + */ + // @ts-ignore + public getAffectedEntities(): java.util.List; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.BatToggleSleepEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.BatToggleSleepEvent.d.ts new file mode 100644 index 00000000..82ee1780 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.BatToggleSleepEvent.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class BatToggleSleepEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(what: org.bukkit.entity.Bat, awake: boolean) + /** + * Get whether or not the bat is attempting to awaken. + */ + // @ts-ignore + public isAwake(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.d.ts new file mode 100644 index 00000000..a6d8f36e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.d.ts @@ -0,0 +1,78 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + namespace CreatureSpawnEvent { + // @ts-ignore + class SpawnReason extends java.lang.Enum { + // @ts-ignore + public static NATURAL: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static JOCKEY: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static CHUNK_GEN: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static SPAWNER: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static EGG: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static SPAWNER_EGG: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static LIGHTNING: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static BUILD_SNOWMAN: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static BUILD_IRONGOLEM: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static BUILD_WITHER: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static VILLAGE_DEFENSE: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static VILLAGE_INVASION: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static BREEDING: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static SLIME_SPLIT: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static REINFORCEMENTS: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static NETHER_PORTAL: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static DISPENSE_EGG: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static INFECTION: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static CURED: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static OCELOT_BABY: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static SILVERFISH_BLOCK: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static MOUNT: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static TRAP: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static ENDER_PEARL: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static SHOULDER_ENTITY: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static DROWNED: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static SHEARED: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static EXPLOSION: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static CUSTOM: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static DEFAULT: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; + // @ts-ignore + public static values(): org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.CreatureSpawnEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.CreatureSpawnEvent.d.ts new file mode 100644 index 00000000..d8cc737d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.CreatureSpawnEvent.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class CreatureSpawnEvent extends org.bukkit.event.entity.EntitySpawnEvent { + // @ts-ignore + constructor(spawnee: org.bukkit.entity.LivingEntity, spawnReason: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason) + // @ts-ignore + public getEntity(): org.bukkit.entity.LivingEntity; + /** + * Gets the reason for why the creature is being spawned. + */ + // @ts-ignore + public getSpawnReason(): org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.CreeperPowerEvent.PowerCause.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.CreeperPowerEvent.PowerCause.d.ts new file mode 100644 index 00000000..bda2e445 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.CreeperPowerEvent.PowerCause.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + namespace CreeperPowerEvent { + // @ts-ignore + class PowerCause extends java.lang.Enum { + // @ts-ignore + public static LIGHTNING: org.bukkit.event.entity.CreeperPowerEvent.PowerCause; + // @ts-ignore + public static SET_ON: org.bukkit.event.entity.CreeperPowerEvent.PowerCause; + // @ts-ignore + public static SET_OFF: org.bukkit.event.entity.CreeperPowerEvent.PowerCause; + // @ts-ignore + public static values(): org.bukkit.event.entity.CreeperPowerEvent.PowerCause[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.event.entity.CreeperPowerEvent.PowerCause; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.CreeperPowerEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.CreeperPowerEvent.d.ts new file mode 100644 index 00000000..774d7863 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.CreeperPowerEvent.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class CreeperPowerEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(creeper: org.bukkit.entity.Creeper, bolt: org.bukkit.entity.LightningStrike, cause: org.bukkit.event.entity.CreeperPowerEvent.PowerCause) + // @ts-ignore + constructor(creeper: org.bukkit.entity.Creeper, cause: org.bukkit.event.entity.CreeperPowerEvent.PowerCause) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getEntity(): org.bukkit.entity.Creeper; + /** + * Gets the lightning bolt which is striking the Creeper. + */ + // @ts-ignore + public getLightning(): org.bukkit.entity.LightningStrike; + /** + * Gets the cause of the creeper being (un)powered. + */ + // @ts-ignore + public getCause(): org.bukkit.event.entity.CreeperPowerEvent.PowerCause; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EnderDragonChangePhaseEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EnderDragonChangePhaseEvent.d.ts new file mode 100644 index 00000000..85bd7f58 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EnderDragonChangePhaseEvent.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EnderDragonChangePhaseEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(enderDragon: org.bukkit.entity.EnderDragon, currentPhase: org.bukkit.entity.EnderDragon.Phase, newPhase: org.bukkit.entity.EnderDragon.Phase) + // @ts-ignore + public getEntity(): org.bukkit.entity.EnderDragon; + /** + * Gets the current phase that the dragon is in. This method will return null + * when a dragon is first spawned and hasn't yet been assigned a phase. + */ + // @ts-ignore + public getCurrentPhase(): org.bukkit.entity.EnderDragon.Phase; + /** + * Gets the new phase that the dragon will switch to. + */ + // @ts-ignore + public getNewPhase(): org.bukkit.entity.EnderDragon.Phase; + /** + * Sets the new phase for the ender dragon. + */ + // @ts-ignore + public setNewPhase(newPhase: org.bukkit.entity.EnderDragon.Phase): void; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityAirChangeEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityAirChangeEvent.d.ts new file mode 100644 index 00000000..fa8f7b45 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityAirChangeEvent.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityAirChangeEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(what: org.bukkit.entity.Entity, amount: number) + /** + * Gets the amount of air the entity has left (measured in ticks). + */ + // @ts-ignore + public getAmount(): number; + /** + * Sets the amount of air remaining for the entity (measured in ticks. + */ + // @ts-ignore + public setAmount(amount: number): void; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancelled: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityBreakDoorEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityBreakDoorEvent.d.ts new file mode 100644 index 00000000..f130fb7f --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityBreakDoorEvent.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityBreakDoorEvent extends org.bukkit.event.entity.EntityChangeBlockEvent { + // @ts-ignore + constructor(entity: org.bukkit.entity.LivingEntity, targetBlock: org.bukkit.block.Block) + // @ts-ignore + public getEntity(): org.bukkit.entity.LivingEntity; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityBreedEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityBreedEvent.d.ts new file mode 100644 index 00000000..a9b14947 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityBreedEvent.d.ts @@ -0,0 +1,55 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityBreedEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + 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) + // @ts-ignore + public getEntity(): org.bukkit.entity.LivingEntity; + /** + * Gets the parent creating this entity. + */ + // @ts-ignore + public getMother(): org.bukkit.entity.LivingEntity; + /** + * Gets the other parent of the newly born entity. + */ + // @ts-ignore + public getFather(): org.bukkit.entity.LivingEntity; + /** + * Gets the Entity responsible for breeding. Breeder is null for spontaneous + * conception. + */ + // @ts-ignore + public getBreeder(): org.bukkit.entity.LivingEntity; + /** + * The ItemStack that was used to initiate breeding, if present. + */ + // @ts-ignore + public getBredWith(): org.bukkit.inventory.ItemStack; + /** + * Get the amount of experience granted by breeding. + */ + // @ts-ignore + public getExperience(): number; + /** + * Set the amount of experience granted by breeding. + */ + // @ts-ignore + public setExperience(experience: number): void; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityChangeBlockEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityChangeBlockEvent.d.ts new file mode 100644 index 00000000..16dc73ba --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityChangeBlockEvent.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityChangeBlockEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(what: org.bukkit.entity.Entity, block: org.bukkit.block.Block, to: org.bukkit.block.data.BlockData) + /** + * Gets the block the entity is changing + */ + // @ts-ignore + public getBlock(): org.bukkit.block.Block; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + /** + * Gets the Material that the block is changing into + */ + // @ts-ignore + public getTo(): org.bukkit.Material; + /** + * Gets the data for the block that would be changed into + */ + // @ts-ignore + public getBlockData(): org.bukkit.block.data.BlockData; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityCombustByBlockEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityCombustByBlockEvent.d.ts new file mode 100644 index 00000000..9e649b0c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityCombustByBlockEvent.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityCombustByBlockEvent extends org.bukkit.event.entity.EntityCombustEvent { + // @ts-ignore + 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. + *

+ * WARNING: block may be null. + */ + // @ts-ignore + public getCombuster(): org.bukkit.block.Block; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityCombustByEntityEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityCombustByEntityEvent.d.ts new file mode 100644 index 00000000..1c2722fb --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityCombustByEntityEvent.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityCombustByEntityEvent extends org.bukkit.event.entity.EntityCombustEvent { + // @ts-ignore + constructor(combuster: org.bukkit.entity.Entity, combustee: org.bukkit.entity.Entity, duration: number) + /** + * Get the entity that caused the combustion event. + */ + // @ts-ignore + public getCombuster(): org.bukkit.entity.Entity; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityCombustEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityCombustEvent.d.ts new file mode 100644 index 00000000..445c59e6 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityCombustEvent.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityCombustEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(combustee: org.bukkit.entity.Entity, duration: number) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getDuration(): number; + /** + * The number of seconds the combustee should be alight for. + *

+ * This value will only ever increase the combustion time, not decrease + * existing combustion times. + */ + // @ts-ignore + public setDuration(duration: number): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityCreatePortalEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityCreatePortalEvent.d.ts new file mode 100644 index 00000000..3991e168 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityCreatePortalEvent.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityCreatePortalEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(what: org.bukkit.entity.LivingEntity, blocks: java.util.List, type: org.bukkit.PortalType) + // @ts-ignore + public getEntity(): org.bukkit.entity.LivingEntity; + /** + * Gets a list of all blocks associated with the portal. + */ + // @ts-ignore + public getBlocks(): java.util.List; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + /** + * Gets the type of portal that is trying to be created. + */ + // @ts-ignore + public getPortalType(): org.bukkit.PortalType; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityDamageByBlockEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityDamageByBlockEvent.d.ts new file mode 100644 index 00000000..afa5ef47 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityDamageByBlockEvent.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityDamageByBlockEvent extends org.bukkit.event.entity.EntityDamageEvent { + // @ts-ignore + constructor(damager: org.bukkit.block.Block, damagee: org.bukkit.entity.Entity, cause: org.bukkit.event.entity.EntityDamageEvent.DamageCause, damage: number) + // @ts-ignore + constructor(damager: org.bukkit.block.Block, damagee: org.bukkit.entity.Entity, cause: org.bukkit.event.entity.EntityDamageEvent.DamageCause, modifiers: java.util.Map, modifierFunctions: java.util.Map) + /** + * Returns the block that damaged the player. + */ + // @ts-ignore + public getDamager(): org.bukkit.block.Block; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityDamageByEntityEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityDamageByEntityEvent.d.ts new file mode 100644 index 00000000..7f36bebe --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityDamageByEntityEvent.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityDamageByEntityEvent extends org.bukkit.event.entity.EntityDamageEvent { + // @ts-ignore + constructor(damager: org.bukkit.entity.Entity, damagee: org.bukkit.entity.Entity, cause: org.bukkit.event.entity.EntityDamageEvent.DamageCause, damage: number) + // @ts-ignore + constructor(damager: org.bukkit.entity.Entity, damagee: org.bukkit.entity.Entity, cause: org.bukkit.event.entity.EntityDamageEvent.DamageCause, modifiers: java.util.Map, modifierFunctions: java.util.Map) + /** + * Returns the entity that damaged the defender. + */ + // @ts-ignore + public getDamager(): org.bukkit.entity.Entity; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityDamageEvent.DamageCause.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityDamageEvent.DamageCause.d.ts new file mode 100644 index 00000000..f2d9c99e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityDamageEvent.DamageCause.d.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + namespace EntityDamageEvent { + // @ts-ignore + class DamageCause extends java.lang.Enum { + // @ts-ignore + public static CONTACT: org.bukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static ENTITY_ATTACK: org.bukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static ENTITY_SWEEP_ATTACK: org.bukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static PROJECTILE: org.bukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static SUFFOCATION: org.bukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static FALL: org.bukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static FIRE: org.bukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static FIRE_TICK: org.bukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static MELTING: org.bukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static LAVA: org.bukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static DROWNING: org.bukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static BLOCK_EXPLOSION: org.bukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static ENTITY_EXPLOSION: org.bukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static VOID: org.bukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static LIGHTNING: org.bukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static SUICIDE: org.bukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static STARVATION: org.bukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static POISON: org.bukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static MAGIC: org.bukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static WITHER: org.bukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static FALLING_BLOCK: org.bukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static THORNS: org.bukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static DRAGON_BREATH: org.bukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static CUSTOM: org.bukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static FLY_INTO_WALL: org.bukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static HOT_FLOOR: org.bukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static CRAMMING: org.bukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static DRYOUT: org.bukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public static values(): org.bukkit.event.entity.EntityDamageEvent.DamageCause[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.event.entity.EntityDamageEvent.DamageCause; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityDamageEvent.DamageModifier.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityDamageEvent.DamageModifier.d.ts new file mode 100644 index 00000000..1317ea91 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityDamageEvent.DamageModifier.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + namespace EntityDamageEvent { + // @ts-ignore + class DamageModifier extends java.lang.Enum { + // @ts-ignore + public static BASE: org.bukkit.event.entity.EntityDamageEvent.DamageModifier; + // @ts-ignore + public static HARD_HAT: org.bukkit.event.entity.EntityDamageEvent.DamageModifier; + // @ts-ignore + public static BLOCKING: org.bukkit.event.entity.EntityDamageEvent.DamageModifier; + // @ts-ignore + public static ARMOR: org.bukkit.event.entity.EntityDamageEvent.DamageModifier; + // @ts-ignore + public static RESISTANCE: org.bukkit.event.entity.EntityDamageEvent.DamageModifier; + // @ts-ignore + public static MAGIC: org.bukkit.event.entity.EntityDamageEvent.DamageModifier; + // @ts-ignore + public static ABSORPTION: org.bukkit.event.entity.EntityDamageEvent.DamageModifier; + // @ts-ignore + public static values(): org.bukkit.event.entity.EntityDamageEvent.DamageModifier[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.event.entity.EntityDamageEvent.DamageModifier; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityDamageEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityDamageEvent.d.ts new file mode 100644 index 00000000..8c41d189 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityDamageEvent.d.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityDamageEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(damagee: org.bukkit.entity.Entity, cause: org.bukkit.event.entity.EntityDamageEvent.DamageCause, damage: number) + // @ts-ignore + constructor(damagee: org.bukkit.entity.Entity, cause: org.bukkit.event.entity.EntityDamageEvent.DamageCause, modifiers: java.util.Map, modifierFunctions: java.util.Map) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + /** + * Gets the original damage for the specified modifier, as defined at this + * event's construction. + */ + // @ts-ignore + public getOriginalDamage(type: org.bukkit.event.entity.EntityDamageEvent.DamageModifier): number; + /** + * Sets the damage for the specified modifier. + */ + // @ts-ignore + public setDamage(type: org.bukkit.event.entity.EntityDamageEvent.DamageModifier, damage: number): void; + /** + * Gets the damage change for some modifier + */ + // @ts-ignore + public getDamage(type: org.bukkit.event.entity.EntityDamageEvent.DamageModifier): number; + /** + * This checks to see if a particular modifier is valid for this event's + * caller, such that, {@link #setDamage(DamageModifier, double)} will not + * throw an {@link UnsupportedOperationException}. + *

+ * {@link DamageModifier#BASE} is always applicable. + */ + // @ts-ignore + public isApplicable(type: org.bukkit.event.entity.EntityDamageEvent.DamageModifier): boolean; + /** + * Gets the raw amount of damage caused by the event + */ + // @ts-ignore + public getDamage(): number; + /** + * Gets the amount of damage caused by the event after all damage + * reduction is applied. + */ + // @ts-ignore + public getFinalDamage(): number; + /** + * Sets the raw amount of damage caused by the event. + *

+ * For compatibility this also recalculates the modifiers and scales + * them by the difference between the modifier for the previous damage + * value and the new one. + */ + // @ts-ignore + public setDamage(damage: number): void; + /** + * Gets the cause of the damage. + */ + // @ts-ignore + public getCause(): org.bukkit.event.entity.EntityDamageEvent.DamageCause; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityDeathEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityDeathEvent.d.ts new file mode 100644 index 00000000..b1ae0b30 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityDeathEvent.d.ts @@ -0,0 +1,43 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityDeathEvent extends org.bukkit.event.entity.EntityEvent { + // @ts-ignore + constructor(entity: org.bukkit.entity.LivingEntity, drops: java.util.List) + // @ts-ignore + constructor(what: org.bukkit.entity.LivingEntity, drops: java.util.List, droppedExp: number) + // @ts-ignore + public getEntity(): org.bukkit.entity.LivingEntity; + /** + * Gets how much EXP should be dropped from this death. + *

+ * This does not indicate how much EXP should be taken from the entity in + * question, merely how much should be created after its death. + */ + // @ts-ignore + public getDroppedExp(): number; + /** + * Sets how much EXP should be dropped from this death. + *

+ * This does not indicate how much EXP should be taken from the entity in + * question, merely how much should be created after its death. + */ + // @ts-ignore + public setDroppedExp(exp: number): void; + /** + * Gets all the items which will drop when the entity dies + */ + // @ts-ignore + public getDrops(): java.util.List; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityDropItemEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityDropItemEvent.d.ts new file mode 100644 index 00000000..748efad8 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityDropItemEvent.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityDropItemEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(entity: org.bukkit.entity.Entity, drop: org.bukkit.entity.Item) + /** + * Gets the Item created by the entity + */ + // @ts-ignore + public getItemDrop(): org.bukkit.entity.Item; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityEvent.d.ts new file mode 100644 index 00000000..4be1730b --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityEvent.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + abstract class EntityEvent extends org.bukkit.event.Event { + // @ts-ignore + constructor(what: org.bukkit.entity.Entity) + // @ts-ignore + protected entity: org.bukkit.entity.Entity; + /** + * Returns the Entity involved in this event + */ + // @ts-ignore + public getEntity(): org.bukkit.entity.Entity; + /** + * Gets the EntityType of the Entity involved in this event. + */ + // @ts-ignore + public getEntityType(): org.bukkit.entity.EntityType; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityExplodeEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityExplodeEvent.d.ts new file mode 100644 index 00000000..c7eca83c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityExplodeEvent.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityExplodeEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(what: org.bukkit.entity.Entity, location: org.bukkit.Location, blocks: java.util.List, yield: number) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + /** + * Returns the list of blocks that would have been removed or were removed + * from the explosion event. + */ + // @ts-ignore + public blockList(): java.util.List; + /** + * Returns the location where the explosion happened. + *

+ * It is not possible to get this value from the Entity as the Entity no + * longer exists in the world. + */ + // @ts-ignore + public getLocation(): org.bukkit.Location; + /** + * Returns the percentage of blocks to drop from this explosion + */ + // @ts-ignore + public getYield(): number; + /** + * Sets the percentage of blocks to drop from this explosion + */ + // @ts-ignore + public setYield(yield: number): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityInteractEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityInteractEvent.d.ts new file mode 100644 index 00000000..f82fc8e9 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityInteractEvent.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityInteractEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(entity: org.bukkit.entity.Entity, block: org.bukkit.block.Block) + // @ts-ignore + protected block: org.bukkit.block.Block; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + /** + * Returns the involved block + */ + // @ts-ignore + public getBlock(): org.bukkit.block.Block; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPickupItemEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPickupItemEvent.d.ts new file mode 100644 index 00000000..0d89582f --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPickupItemEvent.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityPickupItemEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(entity: org.bukkit.entity.LivingEntity, item: org.bukkit.entity.Item, remaining: number) + // @ts-ignore + public getEntity(): org.bukkit.entity.LivingEntity; + /** + * Gets the Item picked up by the entity. + */ + // @ts-ignore + public getItem(): org.bukkit.entity.Item; + /** + * Gets the amount remaining on the ground, if any + */ + // @ts-ignore + public getRemaining(): number; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPlaceEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPlaceEvent.d.ts new file mode 100644 index 00000000..31c50bb1 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPlaceEvent.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityPlaceEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + 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 + */ + // @ts-ignore + public getPlayer(): org.bukkit.entity.Player; + /** + * Returns the block that the entity was placed on + */ + // @ts-ignore + public getBlock(): org.bukkit.block.Block; + /** + * Returns the face of the block that the entity was placed on + */ + // @ts-ignore + public getBlockFace(): org.bukkit.block.BlockFace; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPortalEnterEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPortalEnterEvent.d.ts new file mode 100644 index 00000000..21fcd504 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPortalEnterEvent.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityPortalEnterEvent extends org.bukkit.event.entity.EntityEvent { + // @ts-ignore + constructor(entity: org.bukkit.entity.Entity, location: org.bukkit.Location) + /** + * Gets the portal block the entity is touching + */ + // @ts-ignore + public getLocation(): org.bukkit.Location; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPortalEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPortalEvent.d.ts new file mode 100644 index 00000000..93eccfcc --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPortalEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityPortalEvent extends org.bukkit.event.entity.EntityTeleportEvent { + // @ts-ignore + constructor(entity: org.bukkit.entity.Entity, from: org.bukkit.Location, to: org.bukkit.Location) + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPortalExitEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPortalExitEvent.d.ts new file mode 100644 index 00000000..acd6b351 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPortalExitEvent.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityPortalExitEvent extends org.bukkit.event.entity.EntityTeleportEvent { + // @ts-ignore + 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 + * portal. + */ + // @ts-ignore + public getBefore(): org.bukkit.util.Vector; + /** + * Gets a copy of the velocity that the entity will have after exiting the + * portal. + */ + // @ts-ignore + public getAfter(): org.bukkit.util.Vector; + /** + * Sets the velocity that the entity will have after exiting the portal. + */ + // @ts-ignore + public setAfter(after: org.bukkit.util.Vector): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPoseChangeEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPoseChangeEvent.d.ts new file mode 100644 index 00000000..a35f5842 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPoseChangeEvent.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityPoseChangeEvent extends org.bukkit.event.entity.EntityEvent { + // @ts-ignore + constructor(who: org.bukkit.entity.Entity, pose: org.bukkit.entity.Pose) + /** + * Gets the entity's new pose. + */ + // @ts-ignore + public getPose(): org.bukkit.entity.Pose; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPotionEffectEvent.Action.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPotionEffectEvent.Action.d.ts new file mode 100644 index 00000000..0ba2f0bf --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPotionEffectEvent.Action.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + namespace EntityPotionEffectEvent { + // @ts-ignore + class Action extends java.lang.Enum { + // @ts-ignore + public static ADDED: org.bukkit.event.entity.EntityPotionEffectEvent.Action; + // @ts-ignore + public static CHANGED: org.bukkit.event.entity.EntityPotionEffectEvent.Action; + // @ts-ignore + public static CLEARED: org.bukkit.event.entity.EntityPotionEffectEvent.Action; + // @ts-ignore + public static REMOVED: org.bukkit.event.entity.EntityPotionEffectEvent.Action; + // @ts-ignore + public static values(): org.bukkit.event.entity.EntityPotionEffectEvent.Action[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.event.entity.EntityPotionEffectEvent.Action; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPotionEffectEvent.Cause.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPotionEffectEvent.Cause.d.ts new file mode 100644 index 00000000..131c24e8 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPotionEffectEvent.Cause.d.ts @@ -0,0 +1,60 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + namespace EntityPotionEffectEvent { + // @ts-ignore + class Cause extends java.lang.Enum { + // @ts-ignore + public static AREA_EFFECT_CLOUD: org.bukkit.event.entity.EntityPotionEffectEvent.Cause; + // @ts-ignore + public static ARROW: org.bukkit.event.entity.EntityPotionEffectEvent.Cause; + // @ts-ignore + public static ATTACK: org.bukkit.event.entity.EntityPotionEffectEvent.Cause; + // @ts-ignore + public static BEACON: org.bukkit.event.entity.EntityPotionEffectEvent.Cause; + // @ts-ignore + public static COMMAND: org.bukkit.event.entity.EntityPotionEffectEvent.Cause; + // @ts-ignore + public static CONDUIT: org.bukkit.event.entity.EntityPotionEffectEvent.Cause; + // @ts-ignore + public static CONVERSION: org.bukkit.event.entity.EntityPotionEffectEvent.Cause; + // @ts-ignore + public static DEATH: org.bukkit.event.entity.EntityPotionEffectEvent.Cause; + // @ts-ignore + public static DOLPHIN: org.bukkit.event.entity.EntityPotionEffectEvent.Cause; + // @ts-ignore + public static EXPIRATION: org.bukkit.event.entity.EntityPotionEffectEvent.Cause; + // @ts-ignore + public static FOOD: org.bukkit.event.entity.EntityPotionEffectEvent.Cause; + // @ts-ignore + public static ILLUSION: org.bukkit.event.entity.EntityPotionEffectEvent.Cause; + // @ts-ignore + public static MILK: org.bukkit.event.entity.EntityPotionEffectEvent.Cause; + // @ts-ignore + public static PLUGIN: org.bukkit.event.entity.EntityPotionEffectEvent.Cause; + // @ts-ignore + public static POTION_DRINK: org.bukkit.event.entity.EntityPotionEffectEvent.Cause; + // @ts-ignore + public static POTION_SPLASH: org.bukkit.event.entity.EntityPotionEffectEvent.Cause; + // @ts-ignore + public static SPIDER_SPAWN: org.bukkit.event.entity.EntityPotionEffectEvent.Cause; + // @ts-ignore + public static TOTEM: org.bukkit.event.entity.EntityPotionEffectEvent.Cause; + // @ts-ignore + public static TURTLE_HELMET: org.bukkit.event.entity.EntityPotionEffectEvent.Cause; + // @ts-ignore + public static UNKNOWN: org.bukkit.event.entity.EntityPotionEffectEvent.Cause; + // @ts-ignore + public static VILLAGER_TRADE: org.bukkit.event.entity.EntityPotionEffectEvent.Cause; + // @ts-ignore + public static values(): org.bukkit.event.entity.EntityPotionEffectEvent.Cause[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.event.entity.EntityPotionEffectEvent.Cause; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPotionEffectEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPotionEffectEvent.d.ts new file mode 100644 index 00000000..89f0dd01 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityPotionEffectEvent.d.ts @@ -0,0 +1,59 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityPotionEffectEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + 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. + */ + // @ts-ignore + public getOldEffect(): org.bukkit.potion.PotionEffect; + /** + * Gets new potion effect of the changed type to be applied. + */ + // @ts-ignore + public getNewEffect(): org.bukkit.potion.PotionEffect; + /** + * Gets the cause why the effect has changed. + */ + // @ts-ignore + public getCause(): org.bukkit.event.entity.EntityPotionEffectEvent.Cause; + /** + * Gets the action which will be performed on the potion effect type. + */ + // @ts-ignore + public getAction(): org.bukkit.event.entity.EntityPotionEffectEvent.Action; + /** + * Gets the modified potion effect type. + */ + // @ts-ignore + public getModifiedType(): org.bukkit.potion.PotionEffectType; + /** + * Returns if the new potion effect will override the old potion effect + * (Only applicable for the CHANGED Action). + */ + // @ts-ignore + public isOverride(): boolean; + /** + * Sets if the new potion effect will override the old potion effect (Only + * applicable for the CHANGED action). + */ + // @ts-ignore + public setOverride(override: boolean): void; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason.d.ts new file mode 100644 index 00000000..eba13937 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + namespace EntityRegainHealthEvent { + // @ts-ignore + class RegainReason extends java.lang.Enum { + // @ts-ignore + public static REGEN: org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason; + // @ts-ignore + public static SATIATED: org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason; + // @ts-ignore + public static EATING: org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason; + // @ts-ignore + public static ENDER_CRYSTAL: org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason; + // @ts-ignore + public static MAGIC: org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason; + // @ts-ignore + public static MAGIC_REGEN: org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason; + // @ts-ignore + public static WITHER_SPAWN: org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason; + // @ts-ignore + public static WITHER: org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason; + // @ts-ignore + public static CUSTOM: org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason; + // @ts-ignore + public static values(): org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityRegainHealthEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityRegainHealthEvent.d.ts new file mode 100644 index 00000000..d1c95fd2 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityRegainHealthEvent.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityRegainHealthEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(entity: org.bukkit.entity.Entity, amount: number, regainReason: org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason) + /** + * Gets the amount of regained health + */ + // @ts-ignore + public getAmount(): number; + /** + * Sets the amount of regained health + */ + // @ts-ignore + public setAmount(amount: number): void; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + /** + * Gets the reason for why the entity is regaining health + */ + // @ts-ignore + public getRegainReason(): org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityResurrectEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityResurrectEvent.d.ts new file mode 100644 index 00000000..4d8df749 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityResurrectEvent.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityResurrectEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(what: org.bukkit.entity.LivingEntity) + // @ts-ignore + public getEntity(): org.bukkit.entity.LivingEntity; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancelled: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityShootBowEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityShootBowEvent.d.ts new file mode 100644 index 00000000..2b7c3b93 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityShootBowEvent.d.ts @@ -0,0 +1,44 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityShootBowEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(shooter: org.bukkit.entity.LivingEntity, bow: org.bukkit.inventory.ItemStack, projectile: org.bukkit.entity.Entity, force: number) + // @ts-ignore + public getEntity(): org.bukkit.entity.LivingEntity; + /** + * Gets the bow ItemStack used to fire the arrow. + */ + // @ts-ignore + public getBow(): org.bukkit.inventory.ItemStack; + /** + * Gets the projectile which will be launched by this event + */ + // @ts-ignore + public getProjectile(): org.bukkit.entity.Entity; + /** + * Replaces the projectile which will be launched + */ + // @ts-ignore + public setProjectile(projectile: org.bukkit.entity.Entity): void; + /** + * Gets the force the arrow was launched with + */ + // @ts-ignore + public getForce(): number; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntitySpawnEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntitySpawnEvent.d.ts new file mode 100644 index 00000000..923c335c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntitySpawnEvent.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntitySpawnEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(spawnee: org.bukkit.entity.Entity) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + /** + * Gets the location at which the entity is spawning. + */ + // @ts-ignore + public getLocation(): org.bukkit.Location; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityTameEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityTameEvent.d.ts new file mode 100644 index 00000000..c6af2a8a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityTameEvent.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityTameEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(entity: org.bukkit.entity.LivingEntity, owner: org.bukkit.entity.AnimalTamer) + // @ts-ignore + public getEntity(): org.bukkit.entity.LivingEntity; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + /** + * Gets the owning AnimalTamer + */ + // @ts-ignore + public getOwner(): org.bukkit.entity.AnimalTamer; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityTargetEvent.TargetReason.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityTargetEvent.TargetReason.d.ts new file mode 100644 index 00000000..ff9cb6ff --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityTargetEvent.TargetReason.d.ts @@ -0,0 +1,52 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + namespace EntityTargetEvent { + // @ts-ignore + class TargetReason extends java.lang.Enum { + // @ts-ignore + public static TARGET_DIED: org.bukkit.event.entity.EntityTargetEvent.TargetReason; + // @ts-ignore + public static CLOSEST_PLAYER: org.bukkit.event.entity.EntityTargetEvent.TargetReason; + // @ts-ignore + public static TARGET_ATTACKED_ENTITY: org.bukkit.event.entity.EntityTargetEvent.TargetReason; + // @ts-ignore + public static PIG_ZOMBIE_TARGET: org.bukkit.event.entity.EntityTargetEvent.TargetReason; + // @ts-ignore + public static FORGOT_TARGET: org.bukkit.event.entity.EntityTargetEvent.TargetReason; + // @ts-ignore + public static TARGET_ATTACKED_OWNER: org.bukkit.event.entity.EntityTargetEvent.TargetReason; + // @ts-ignore + public static OWNER_ATTACKED_TARGET: org.bukkit.event.entity.EntityTargetEvent.TargetReason; + // @ts-ignore + public static RANDOM_TARGET: org.bukkit.event.entity.EntityTargetEvent.TargetReason; + // @ts-ignore + public static DEFEND_VILLAGE: org.bukkit.event.entity.EntityTargetEvent.TargetReason; + // @ts-ignore + public static TARGET_ATTACKED_NEARBY_ENTITY: org.bukkit.event.entity.EntityTargetEvent.TargetReason; + // @ts-ignore + public static REINFORCEMENT_TARGET: org.bukkit.event.entity.EntityTargetEvent.TargetReason; + // @ts-ignore + public static COLLISION: org.bukkit.event.entity.EntityTargetEvent.TargetReason; + // @ts-ignore + public static CUSTOM: org.bukkit.event.entity.EntityTargetEvent.TargetReason; + // @ts-ignore + public static CLOSEST_ENTITY: org.bukkit.event.entity.EntityTargetEvent.TargetReason; + // @ts-ignore + public static FOLLOW_LEADER: org.bukkit.event.entity.EntityTargetEvent.TargetReason; + // @ts-ignore + public static TEMPT: org.bukkit.event.entity.EntityTargetEvent.TargetReason; + // @ts-ignore + public static UNKNOWN: org.bukkit.event.entity.EntityTargetEvent.TargetReason; + // @ts-ignore + public static values(): org.bukkit.event.entity.EntityTargetEvent.TargetReason[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.event.entity.EntityTargetEvent.TargetReason; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityTargetEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityTargetEvent.d.ts new file mode 100644 index 00000000..3fd7e9bf --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityTargetEvent.d.ts @@ -0,0 +1,47 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityTargetEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(entity: org.bukkit.entity.Entity, target: org.bukkit.entity.Entity, reason: org.bukkit.event.entity.EntityTargetEvent.TargetReason) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + /** + * Returns the reason for the targeting + */ + // @ts-ignore + public getReason(): org.bukkit.event.entity.EntityTargetEvent.TargetReason; + /** + * Get the entity that this is targeting. + *

+ * This will be null in the case that the event is called when the mob + * forgets its target. + */ + // @ts-ignore + public getTarget(): org.bukkit.entity.Entity; + /** + * Set the entity that you want the mob to target instead. + *

+ * It is possible to be null, null will cause the entity to be + * target-less. + *

+ * This is different from cancelling the event. Cancelling the event will + * cause the entity to keep an original target, while setting to be null + * will cause the entity to be reset. + */ + // @ts-ignore + public setTarget(target: org.bukkit.entity.Entity): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityTargetLivingEntityEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityTargetLivingEntityEvent.d.ts new file mode 100644 index 00000000..33f5f02c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityTargetLivingEntityEvent.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityTargetLivingEntityEvent extends org.bukkit.event.entity.EntityTargetEvent { + // @ts-ignore + constructor(entity: org.bukkit.entity.Entity, target: org.bukkit.entity.LivingEntity, reason: org.bukkit.event.entity.EntityTargetEvent.TargetReason) + // @ts-ignore + public getTarget(): org.bukkit.entity.LivingEntity; + /** + * Set the Entity that you want the mob to target. + *

+ * It is possible to be null, null will cause the entity to be + * target-less. + *

+ * Must be a LivingEntity, or null. + */ + // @ts-ignore + public setTarget(target: org.bukkit.entity.Entity): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityTeleportEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityTeleportEvent.d.ts new file mode 100644 index 00000000..c0dcb33b --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityTeleportEvent.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityTeleportEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(what: org.bukkit.entity.Entity, from: org.bukkit.Location, to: org.bukkit.Location) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + /** + * Gets the location that this entity moved from + */ + // @ts-ignore + public getFrom(): org.bukkit.Location; + /** + * Sets the location that this entity moved from + */ + // @ts-ignore + public setFrom(from: org.bukkit.Location): void; + /** + * Gets the location that this entity moved to + */ + // @ts-ignore + public getTo(): org.bukkit.Location; + /** + * Sets the location that this entity moved to + */ + // @ts-ignore + public setTo(to: org.bukkit.Location): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityToggleGlideEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityToggleGlideEvent.d.ts new file mode 100644 index 00000000..4cf46ad6 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityToggleGlideEvent.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityToggleGlideEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(who: org.bukkit.entity.LivingEntity, isGliding: boolean) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public isGliding(): boolean; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityToggleSwimEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityToggleSwimEvent.d.ts new file mode 100644 index 00000000..a6b71e58 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityToggleSwimEvent.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityToggleSwimEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(who: org.bukkit.entity.LivingEntity, isSwimming: boolean) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public isSwimming(): boolean; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityTransformEvent.TransformReason.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityTransformEvent.TransformReason.d.ts new file mode 100644 index 00000000..8a09782e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityTransformEvent.TransformReason.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + namespace EntityTransformEvent { + // @ts-ignore + class TransformReason extends java.lang.Enum { + // @ts-ignore + public static CURED: org.bukkit.event.entity.EntityTransformEvent.TransformReason; + // @ts-ignore + public static INFECTION: org.bukkit.event.entity.EntityTransformEvent.TransformReason; + // @ts-ignore + public static DROWNED: org.bukkit.event.entity.EntityTransformEvent.TransformReason; + // @ts-ignore + public static SHEARED: org.bukkit.event.entity.EntityTransformEvent.TransformReason; + // @ts-ignore + public static LIGHTNING: org.bukkit.event.entity.EntityTransformEvent.TransformReason; + // @ts-ignore + public static SPLIT: org.bukkit.event.entity.EntityTransformEvent.TransformReason; + // @ts-ignore + public static values(): org.bukkit.event.entity.EntityTransformEvent.TransformReason[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.event.entity.EntityTransformEvent.TransformReason; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityTransformEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityTransformEvent.d.ts new file mode 100644 index 00000000..ec67521f --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityTransformEvent.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityTransformEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(original: org.bukkit.entity.Entity, convertedList: java.util.List, transformReason: org.bukkit.event.entity.EntityTransformEvent.TransformReason) + /** + * Gets the entity that the original entity was transformed to. + * This returns the first entity in the transformed entity list. + */ + // @ts-ignore + public getTransformedEntity(): org.bukkit.entity.Entity; + /** + * Gets the entities that the original entity was transformed to. + */ + // @ts-ignore + public getTransformedEntities(): java.util.List; + /** + * Gets the reason for the conversion that has occurred. + */ + // @ts-ignore + public getTransformReason(): org.bukkit.event.entity.EntityTransformEvent.TransformReason; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityUnleashEvent.UnleashReason.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityUnleashEvent.UnleashReason.d.ts new file mode 100644 index 00000000..367c15a8 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityUnleashEvent.UnleashReason.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + namespace EntityUnleashEvent { + // @ts-ignore + class UnleashReason extends java.lang.Enum { + // @ts-ignore + public static HOLDER_GONE: org.bukkit.event.entity.EntityUnleashEvent.UnleashReason; + // @ts-ignore + public static PLAYER_UNLEASH: org.bukkit.event.entity.EntityUnleashEvent.UnleashReason; + // @ts-ignore + public static DISTANCE: org.bukkit.event.entity.EntityUnleashEvent.UnleashReason; + // @ts-ignore + public static UNKNOWN: org.bukkit.event.entity.EntityUnleashEvent.UnleashReason; + // @ts-ignore + public static values(): org.bukkit.event.entity.EntityUnleashEvent.UnleashReason[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.event.entity.EntityUnleashEvent.UnleashReason; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityUnleashEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityUnleashEvent.d.ts new file mode 100644 index 00000000..89d69688 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.EntityUnleashEvent.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class EntityUnleashEvent extends org.bukkit.event.entity.EntityEvent { + // @ts-ignore + constructor(entity: org.bukkit.entity.Entity, reason: org.bukkit.event.entity.EntityUnleashEvent.UnleashReason) + /** + * Returns the reason for the unleashing. + */ + // @ts-ignore + public getReason(): org.bukkit.event.entity.EntityUnleashEvent.UnleashReason; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.ExpBottleEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.ExpBottleEvent.d.ts new file mode 100644 index 00000000..d347af35 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.ExpBottleEvent.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class ExpBottleEvent extends org.bukkit.event.entity.ProjectileHitEvent { + // @ts-ignore + constructor(bottle: org.bukkit.entity.ThrownExpBottle, exp: number) + // @ts-ignore + public getEntity(): org.bukkit.entity.ThrownExpBottle; + /** + * This method indicates if the particle effect should be shown. + */ + // @ts-ignore + public getShowEffect(): boolean; + /** + * This method sets if the particle effect will be shown. + *

+ * This does not change the experience created. + */ + // @ts-ignore + public setShowEffect(showEffect: boolean): void; + /** + * This method retrieves the amount of experience to be created. + *

+ * The number indicates a total amount to be divided into orbs. + */ + // @ts-ignore + public getExperience(): number; + /** + * This method sets the amount of experience to be created. + *

+ * The number indicates a total amount to be divided into orbs. + */ + // @ts-ignore + public setExperience(exp: number): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.ExplosionPrimeEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.ExplosionPrimeEvent.d.ts new file mode 100644 index 00000000..8a9e1e96 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.ExplosionPrimeEvent.d.ts @@ -0,0 +1,44 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class ExplosionPrimeEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(what: org.bukkit.entity.Entity, radius: number, fire: boolean) + // @ts-ignore + constructor(explosive: org.bukkit.entity.Explosive) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + /** + * Gets the radius of the explosion + */ + // @ts-ignore + public getRadius(): number; + /** + * Sets the radius of the explosion + */ + // @ts-ignore + public setRadius(radius: number): void; + /** + * Gets whether this explosion will create fire or not + */ + // @ts-ignore + public getFire(): boolean; + /** + * Sets whether this explosion will create fire or not + */ + // @ts-ignore + public setFire(fire: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.FireworkExplodeEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.FireworkExplodeEvent.d.ts new file mode 100644 index 00000000..e3fd3059 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.FireworkExplodeEvent.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class FireworkExplodeEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(what: org.bukkit.entity.Firework) + // @ts-ignore + public isCancelled(): boolean; + /** + * Set the cancelled state of this event. If the firework explosion is + * cancelled, the firework will still be removed, but no particles will be + * displayed. + */ + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getEntity(): org.bukkit.entity.Firework; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.FoodLevelChangeEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.FoodLevelChangeEvent.d.ts new file mode 100644 index 00000000..aba147b3 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.FoodLevelChangeEvent.d.ts @@ -0,0 +1,45 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class FoodLevelChangeEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(what: org.bukkit.entity.HumanEntity, level: number) + // @ts-ignore + constructor(what: org.bukkit.entity.HumanEntity, level: number, item: org.bukkit.inventory.ItemStack) + // @ts-ignore + public getEntity(): org.bukkit.entity.HumanEntity; + /** + * Gets the item that triggered this event, if any. + */ + // @ts-ignore + public getItem(): org.bukkit.inventory.ItemStack; + /** + * Gets the resultant food level that the entity involved in this event + * should be set to. + *

+ * Where 20 is a full food bar and 0 is an empty one. + */ + // @ts-ignore + public getFoodLevel(): number; + /** + * Sets the resultant food level that the entity involved in this event + * should be set to + */ + // @ts-ignore + public setFoodLevel(level: number): void; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.HorseJumpEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.HorseJumpEvent.d.ts new file mode 100644 index 00000000..11668472 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.HorseJumpEvent.d.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class HorseJumpEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(horse: org.bukkit.entity.AbstractHorse, power: number) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getEntity(): org.bukkit.entity.AbstractHorse; + /** + * Gets the power of the jump. + *

+ * Power is a value that defines how much of the horse's jump strength + * should be used for the jump. Power is effectively multiplied times + * the horse's jump strength to determine how high the jump is; 0 + * represents no jump strength while 1 represents full jump strength. + * Setting power to a value above 1 will use additional jump strength + * that the horse does not usually have. + *

+ * Power does not affect how high the horse is capable of jumping, only + * how much of its jumping capability will be used in this jump. To set + * the horse's overall jump strength, see {@link + * AbstractHorse#setJumpStrength(double)}. + */ + // @ts-ignore + public getPower(): number; + /** + * Sets the power of the jump. + *

+ * Jump power can be set to a value above 1.0 which will increase the + * strength of this jump above the horse's actual jump strength. + *

+ * Setting the jump power to 0 will result in the jump animation still + * playing, but the horse not leaving the ground. Only canceling this + * event will result in no jump animation at all. + */ + // @ts-ignore + public setPower(power: number): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.ItemDespawnEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.ItemDespawnEvent.d.ts new file mode 100644 index 00000000..b68d8ff7 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.ItemDespawnEvent.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class ItemDespawnEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(despawnee: org.bukkit.entity.Item, loc: org.bukkit.Location) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getEntity(): org.bukkit.entity.Item; + /** + * Gets the location at which the item is despawning. + */ + // @ts-ignore + public getLocation(): org.bukkit.Location; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.ItemMergeEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.ItemMergeEvent.d.ts new file mode 100644 index 00000000..46c325f5 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.ItemMergeEvent.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class ItemMergeEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(item: org.bukkit.entity.Item, target: org.bukkit.entity.Item) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancelled: boolean): void; + // @ts-ignore + public getEntity(): org.bukkit.entity.Item; + /** + * Gets the Item entity the main Item is being merged into. + */ + // @ts-ignore + public getTarget(): org.bukkit.entity.Item; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.ItemSpawnEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.ItemSpawnEvent.d.ts new file mode 100644 index 00000000..52fb4f15 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.ItemSpawnEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class ItemSpawnEvent extends org.bukkit.event.entity.EntitySpawnEvent { + // @ts-ignore + constructor(spawnee: org.bukkit.entity.Item, loc: org.bukkit.Location) + // @ts-ignore + constructor(spawnee: org.bukkit.entity.Item) + // @ts-ignore + public getEntity(): org.bukkit.entity.Item; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.LingeringPotionSplashEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.LingeringPotionSplashEvent.d.ts new file mode 100644 index 00000000..a5e3983e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.LingeringPotionSplashEvent.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class LingeringPotionSplashEvent extends org.bukkit.event.entity.ProjectileHitEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(potion: org.bukkit.entity.ThrownPotion, entity: org.bukkit.entity.AreaEffectCloud) + // @ts-ignore + public getEntity(): org.bukkit.entity.ThrownPotion; + /** + * Gets the AreaEffectCloud spawned + */ + // @ts-ignore + public getAreaEffectCloud(): org.bukkit.entity.AreaEffectCloud; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.PigZapEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.PigZapEvent.d.ts new file mode 100644 index 00000000..b4b637c1 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.PigZapEvent.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class PigZapEvent extends org.bukkit.event.entity.EntityTransformEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(pig: org.bukkit.entity.Pig, bolt: org.bukkit.entity.LightningStrike, pigzombie: org.bukkit.entity.PigZombie) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getEntity(): org.bukkit.entity.Pig; + /** + * Gets the bolt which is striking the pig. + */ + // @ts-ignore + public getLightning(): org.bukkit.entity.LightningStrike; + /** + * Gets the zombie pig that will replace the pig, provided the event is + * not cancelled first. + */ + // @ts-ignore + public getPigZombie(): org.bukkit.entity.PigZombie; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.PigZombieAngerEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.PigZombieAngerEvent.d.ts new file mode 100644 index 00000000..ad3bc946 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.PigZombieAngerEvent.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class PigZombieAngerEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(pigZombie: org.bukkit.entity.PigZombie, target: org.bukkit.entity.Entity, newAnger: number) + /** + * Gets the entity (if any) which triggered this anger update. + */ + // @ts-ignore + public getTarget(): org.bukkit.entity.Entity; + /** + * Gets the new anger resulting from this event. + */ + // @ts-ignore + public getNewAnger(): number; + /** + * Sets the new anger resulting from this event. + */ + // @ts-ignore + public setNewAnger(newAnger: number): void; + // @ts-ignore + public getEntity(): org.bukkit.entity.PigZombie; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.PlayerDeathEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.PlayerDeathEvent.d.ts new file mode 100644 index 00000000..d69cd4ca --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.PlayerDeathEvent.d.ts @@ -0,0 +1,98 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class PlayerDeathEvent extends org.bukkit.event.entity.EntityDeathEvent { + // @ts-ignore + constructor(player: org.bukkit.entity.Player, drops: java.util.List, droppedExp: number, deathMessage: string) + // @ts-ignore + constructor(player: org.bukkit.entity.Player, drops: java.util.List, droppedExp: number, newExp: number, deathMessage: string) + // @ts-ignore + constructor(player: org.bukkit.entity.Player, drops: java.util.List, droppedExp: number, newExp: number, newTotalExp: number, newLevel: number, deathMessage: string) + // @ts-ignore + public getEntity(): org.bukkit.entity.Player; + /** + * Set the death message that will appear to everyone on the server. + */ + // @ts-ignore + public setDeathMessage(deathMessage: string): void; + /** + * Get the death message that will appear to everyone on the server. + */ + // @ts-ignore + public getDeathMessage(): string; + /** + * Gets how much EXP the Player should have at respawn. + *

+ * This does not indicate how much EXP should be dropped, please see + * {@link #getDroppedExp()} for that. + */ + // @ts-ignore + public getNewExp(): number; + /** + * Sets how much EXP the Player should have at respawn. + *

+ * This does not indicate how much EXP should be dropped, please see + * {@link #setDroppedExp(int)} for that. + */ + // @ts-ignore + public setNewExp(exp: number): void; + /** + * Gets the Level the Player should have at respawn. + */ + // @ts-ignore + public getNewLevel(): number; + /** + * Sets the Level the Player should have at respawn. + */ + // @ts-ignore + public setNewLevel(level: number): void; + /** + * Gets the Total EXP the Player should have at respawn. + */ + // @ts-ignore + public getNewTotalExp(): number; + /** + * Sets the Total EXP the Player should have at respawn. + */ + // @ts-ignore + public setNewTotalExp(totalExp: number): void; + /** + * Gets if the Player should keep all EXP at respawn. + *

+ * This flag overrides other EXP settings + */ + // @ts-ignore + public getKeepLevel(): boolean; + /** + * Sets if the Player should keep all EXP at respawn. + *

+ * This overrides all other EXP settings + *

+ * This doesn't prevent prevent the EXP from dropping. + * {@link #setDroppedExp(int)} should be used stop the + * EXP from dropping. + */ + // @ts-ignore + public setKeepLevel(keepLevel: boolean): void; + /** + * Sets if the Player keeps inventory on death. + *

+ * This doesn't prevent prevent the items from dropping. + * {@code getDrops().clear()} should be used stop the + * items from dropping. + */ + // @ts-ignore + public setKeepInventory(keepInventory: boolean): void; + /** + * Gets if the Player keeps inventory on death. + */ + // @ts-ignore + public getKeepInventory(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.PlayerLeashEntityEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.PlayerLeashEntityEvent.d.ts new file mode 100644 index 00000000..e5cb9305 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.PlayerLeashEntityEvent.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class PlayerLeashEntityEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(what: org.bukkit.entity.Entity, leashHolder: org.bukkit.entity.Entity, leasher: org.bukkit.entity.Player) + /** + * Returns the entity that is holding the leash. + */ + // @ts-ignore + public getLeashHolder(): org.bukkit.entity.Entity; + /** + * Returns the entity being leashed. + */ + // @ts-ignore + public getEntity(): org.bukkit.entity.Entity; + /** + * Returns the player involved in this event + */ + // @ts-ignore + public getPlayer(): org.bukkit.entity.Player; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.PotionSplashEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.PotionSplashEvent.d.ts new file mode 100644 index 00000000..7cd2d5d5 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.PotionSplashEvent.d.ts @@ -0,0 +1,45 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class PotionSplashEvent extends org.bukkit.event.entity.ProjectileHitEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(potion: org.bukkit.entity.ThrownPotion, affectedEntities: java.util.Map) + // @ts-ignore + public getEntity(): org.bukkit.entity.ThrownPotion; + /** + * Gets the potion which caused this event + */ + // @ts-ignore + public getPotion(): org.bukkit.entity.ThrownPotion; + /** + * Retrieves a list of all effected entities + */ + // @ts-ignore + public getAffectedEntities(): java.util.Collection; + /** + * Gets the intensity of the potion's effects for given entity; This + * depends on the distance to the impact center + */ + // @ts-ignore + public getIntensity(entity: org.bukkit.entity.LivingEntity): number; + /** + * Overwrites the intensity for a given entity + */ + // @ts-ignore + public setIntensity(entity: org.bukkit.entity.LivingEntity, intensity: number): void; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.ProjectileHitEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.ProjectileHitEvent.d.ts new file mode 100644 index 00000000..462efabe --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.ProjectileHitEvent.d.ts @@ -0,0 +1,44 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class ProjectileHitEvent extends org.bukkit.event.entity.EntityEvent { + // @ts-ignore + constructor(projectile: org.bukkit.entity.Projectile) + // @ts-ignore + constructor(projectile: org.bukkit.entity.Projectile, hitEntity: org.bukkit.entity.Entity) + // @ts-ignore + constructor(projectile: org.bukkit.entity.Projectile, hitBlock: org.bukkit.block.Block) + // @ts-ignore + constructor(projectile: org.bukkit.entity.Projectile, hitEntity: org.bukkit.entity.Entity, hitBlock: org.bukkit.block.Block) + // @ts-ignore + constructor(projectile: org.bukkit.entity.Projectile, hitEntity: org.bukkit.entity.Entity, hitBlock: org.bukkit.block.Block, hitFace: org.bukkit.block.BlockFace) + // @ts-ignore + public getEntity(): org.bukkit.entity.Projectile; + /** + * Gets the block that was hit, if it was a block that was hit. + */ + // @ts-ignore + public getHitBlock(): org.bukkit.block.Block; + /** + * Gets the block face that was hit, if it was a block that was hit and the + * face was provided in the vent. + */ + // @ts-ignore + public getHitBlockFace(): org.bukkit.block.BlockFace; + /** + * Gets the entity that was hit, if it was an entity that was hit. + */ + // @ts-ignore + public getHitEntity(): org.bukkit.entity.Entity; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.ProjectileLaunchEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.ProjectileLaunchEvent.d.ts new file mode 100644 index 00000000..31f84219 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.ProjectileLaunchEvent.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class ProjectileLaunchEvent extends org.bukkit.event.entity.EntitySpawnEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(what: org.bukkit.entity.Entity) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getEntity(): org.bukkit.entity.Projectile; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.SheepDyeWoolEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.SheepDyeWoolEvent.d.ts new file mode 100644 index 00000000..0a05d061 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.SheepDyeWoolEvent.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class SheepDyeWoolEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(sheep: org.bukkit.entity.Sheep, color: org.bukkit.DyeColor) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getEntity(): org.bukkit.entity.Sheep; + /** + * Gets the DyeColor the sheep is being dyed + */ + // @ts-ignore + public getColor(): org.bukkit.DyeColor; + /** + * Sets the DyeColor the sheep is being dyed + */ + // @ts-ignore + public setColor(color: org.bukkit.DyeColor): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.SheepRegrowWoolEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.SheepRegrowWoolEvent.d.ts new file mode 100644 index 00000000..512700a0 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.SheepRegrowWoolEvent.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class SheepRegrowWoolEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(sheep: org.bukkit.entity.Sheep) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getEntity(): org.bukkit.entity.Sheep; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.SlimeSplitEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.SlimeSplitEvent.d.ts new file mode 100644 index 00000000..6d9144e4 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.SlimeSplitEvent.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class SlimeSplitEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(slime: org.bukkit.entity.Slime, count: number) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getEntity(): org.bukkit.entity.Slime; + /** + * Gets the amount of smaller slimes to spawn + */ + // @ts-ignore + public getCount(): number; + /** + * Sets how many smaller slimes will spawn on the split + */ + // @ts-ignore + public setCount(count: number): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.VillagerAcquireTradeEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.VillagerAcquireTradeEvent.d.ts new file mode 100644 index 00000000..37ebb705 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.VillagerAcquireTradeEvent.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class VillagerAcquireTradeEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(what: org.bukkit.entity.AbstractVillager, recipe: org.bukkit.inventory.MerchantRecipe) + /** + * Get the recipe to be acquired. + */ + // @ts-ignore + public getRecipe(): org.bukkit.inventory.MerchantRecipe; + /** + * Set the recipe to be acquired. + */ + // @ts-ignore + public setRecipe(recipe: org.bukkit.inventory.MerchantRecipe): void; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getEntity(): org.bukkit.entity.AbstractVillager; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.VillagerCareerChangeEvent.ChangeReason.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.VillagerCareerChangeEvent.ChangeReason.d.ts new file mode 100644 index 00000000..22265cfa --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.VillagerCareerChangeEvent.ChangeReason.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + namespace VillagerCareerChangeEvent { + // @ts-ignore + class ChangeReason extends java.lang.Enum { + // @ts-ignore + public static LOSING_JOB: org.bukkit.event.entity.VillagerCareerChangeEvent.ChangeReason; + // @ts-ignore + public static EMPLOYED: org.bukkit.event.entity.VillagerCareerChangeEvent.ChangeReason; + // @ts-ignore + public static values(): org.bukkit.event.entity.VillagerCareerChangeEvent.ChangeReason[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.event.entity.VillagerCareerChangeEvent.ChangeReason; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.VillagerCareerChangeEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.VillagerCareerChangeEvent.d.ts new file mode 100644 index 00000000..c8eb3563 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.VillagerCareerChangeEvent.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class VillagerCareerChangeEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(what: org.bukkit.entity.Villager, profession: org.bukkit.entity.Villager.Profession, reason: org.bukkit.event.entity.VillagerCareerChangeEvent.ChangeReason) + // @ts-ignore + public getEntity(): org.bukkit.entity.Villager; + /** + * Gets the future profession of the villager. + */ + // @ts-ignore + public getProfession(): org.bukkit.entity.Villager.Profession; + /** + * Sets the profession the villager will become from this event. + */ + // @ts-ignore + public setProfession(profession: org.bukkit.entity.Villager.Profession): void; + /** + * Gets the reason for why the villager's career is changing. + */ + // @ts-ignore + public getReason(): org.bukkit.event.entity.VillagerCareerChangeEvent.ChangeReason; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.entity.VillagerReplenishTradeEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.VillagerReplenishTradeEvent.d.ts new file mode 100644 index 00000000..2d6c62d7 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.entity.VillagerReplenishTradeEvent.d.ts @@ -0,0 +1,45 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace entity { + // @ts-ignore + class VillagerReplenishTradeEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(what: org.bukkit.entity.AbstractVillager, recipe: org.bukkit.inventory.MerchantRecipe, bonus: number) + /** + * Get the recipe to replenish. + */ + // @ts-ignore + public getRecipe(): org.bukkit.inventory.MerchantRecipe; + /** + * Set the recipe to replenish. + */ + // @ts-ignore + public setRecipe(recipe: org.bukkit.inventory.MerchantRecipe): void; + /** + * Get the bonus uses added. The maximum uses of the recipe will be + * increased by this number. + */ + // @ts-ignore + public getBonus(): number; + /** + * Set the bonus uses added. + */ + // @ts-ignore + public setBonus(bonus: number): void; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getEntity(): org.bukkit.entity.AbstractVillager; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.hanging.HangingBreakByEntityEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.hanging.HangingBreakByEntityEvent.d.ts new file mode 100644 index 00000000..9921fa16 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.hanging.HangingBreakByEntityEvent.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace hanging { + // @ts-ignore + class HangingBreakByEntityEvent extends org.bukkit.event.hanging.HangingBreakEvent { + // @ts-ignore + constructor(hanging: org.bukkit.entity.Hanging, remover: org.bukkit.entity.Entity) + // @ts-ignore + constructor(hanging: org.bukkit.entity.Hanging, remover: org.bukkit.entity.Entity, cause: org.bukkit.event.hanging.HangingBreakEvent.RemoveCause) + /** + * Gets the entity that removed the hanging entity. + * May be null, for example when broken by an explosion. + */ + // @ts-ignore + public getRemover(): org.bukkit.entity.Entity; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.hanging.HangingBreakEvent.RemoveCause.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.hanging.HangingBreakEvent.RemoveCause.d.ts new file mode 100644 index 00000000..f740fe09 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.hanging.HangingBreakEvent.RemoveCause.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace hanging { + namespace HangingBreakEvent { + // @ts-ignore + class RemoveCause extends java.lang.Enum { + // @ts-ignore + public static ENTITY: org.bukkit.event.hanging.HangingBreakEvent.RemoveCause; + // @ts-ignore + public static EXPLOSION: org.bukkit.event.hanging.HangingBreakEvent.RemoveCause; + // @ts-ignore + public static OBSTRUCTION: org.bukkit.event.hanging.HangingBreakEvent.RemoveCause; + // @ts-ignore + public static PHYSICS: org.bukkit.event.hanging.HangingBreakEvent.RemoveCause; + // @ts-ignore + public static DEFAULT: org.bukkit.event.hanging.HangingBreakEvent.RemoveCause; + // @ts-ignore + public static values(): org.bukkit.event.hanging.HangingBreakEvent.RemoveCause[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.event.hanging.HangingBreakEvent.RemoveCause; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.hanging.HangingBreakEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.hanging.HangingBreakEvent.d.ts new file mode 100644 index 00000000..84ab34f2 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.hanging.HangingBreakEvent.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace hanging { + // @ts-ignore + class HangingBreakEvent extends org.bukkit.event.hanging.HangingEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(hanging: org.bukkit.entity.Hanging, cause: org.bukkit.event.hanging.HangingBreakEvent.RemoveCause) + /** + * Gets the cause for the hanging entity's removal + */ + // @ts-ignore + public getCause(): org.bukkit.event.hanging.HangingBreakEvent.RemoveCause; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.hanging.HangingEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.hanging.HangingEvent.d.ts new file mode 100644 index 00000000..a545f289 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.hanging.HangingEvent.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace hanging { + // @ts-ignore + abstract class HangingEvent extends org.bukkit.event.Event { + // @ts-ignore + constructor(painting: org.bukkit.entity.Hanging) + // @ts-ignore + protected hanging: org.bukkit.entity.Hanging; + /** + * Gets the hanging entity involved in this event. + */ + // @ts-ignore + public getEntity(): org.bukkit.entity.Hanging; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.hanging.HangingPlaceEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.hanging.HangingPlaceEvent.d.ts new file mode 100644 index 00000000..0ba0fa4c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.hanging.HangingPlaceEvent.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace hanging { + // @ts-ignore + class HangingPlaceEvent extends org.bukkit.event.hanging.HangingEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + 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 + */ + // @ts-ignore + public getPlayer(): org.bukkit.entity.Player; + /** + * Returns the block that the hanging entity was placed on + */ + // @ts-ignore + public getBlock(): org.bukkit.block.Block; + /** + * Returns the face of the block that the hanging entity was placed on + */ + // @ts-ignore + public getBlockFace(): org.bukkit.block.BlockFace; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.BrewEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.BrewEvent.d.ts new file mode 100644 index 00000000..61ef1fcd --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.BrewEvent.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace inventory { + // @ts-ignore + class BrewEvent extends org.bukkit.event.block.BlockEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(brewer: org.bukkit.block.Block, contents: org.bukkit.inventory.BrewerInventory, fuelLevel: number) + /** + * Gets the contents of the Brewing Stand. + */ + // @ts-ignore + public getContents(): org.bukkit.inventory.BrewerInventory; + /** + * Gets the remaining fuel level. + */ + // @ts-ignore + public getFuelLevel(): number; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.BrewingStandFuelEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.BrewingStandFuelEvent.d.ts new file mode 100644 index 00000000..d12bd8b4 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.BrewingStandFuelEvent.d.ts @@ -0,0 +1,49 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace inventory { + // @ts-ignore + class BrewingStandFuelEvent extends org.bukkit.event.block.BlockEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(brewingStand: org.bukkit.block.Block, fuel: org.bukkit.inventory.ItemStack, fuelPower: number) + /** + * Gets the ItemStack of the fuel before the amount was subtracted. + */ + // @ts-ignore + public getFuel(): org.bukkit.inventory.ItemStack; + /** + * Gets the fuel power for this fuel. Each unit of power can fuel one + * brewing operation. + */ + // @ts-ignore + public getFuelPower(): number; + /** + * Sets the fuel power for this fuel. Each unit of power can fuel one + * brewing operation. + */ + // @ts-ignore + public setFuelPower(fuelPower: number): void; + /** + * Gets whether the brewing stand's fuel will be reduced / consumed or not. + */ + // @ts-ignore + public isConsuming(): boolean; + /** + * Sets whether the brewing stand's fuel will be reduced / consumed or not. + */ + // @ts-ignore + public setConsuming(consuming: boolean): void; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.ClickType.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.ClickType.d.ts new file mode 100644 index 00000000..f939e563 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.ClickType.d.ts @@ -0,0 +1,70 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace inventory { + // @ts-ignore + class ClickType extends java.lang.Enum { + // @ts-ignore + public static LEFT: org.bukkit.event.inventory.ClickType; + // @ts-ignore + public static SHIFT_LEFT: org.bukkit.event.inventory.ClickType; + // @ts-ignore + public static RIGHT: org.bukkit.event.inventory.ClickType; + // @ts-ignore + public static SHIFT_RIGHT: org.bukkit.event.inventory.ClickType; + // @ts-ignore + public static WINDOW_BORDER_LEFT: org.bukkit.event.inventory.ClickType; + // @ts-ignore + public static WINDOW_BORDER_RIGHT: org.bukkit.event.inventory.ClickType; + // @ts-ignore + public static MIDDLE: org.bukkit.event.inventory.ClickType; + // @ts-ignore + public static NUMBER_KEY: org.bukkit.event.inventory.ClickType; + // @ts-ignore + public static DOUBLE_CLICK: org.bukkit.event.inventory.ClickType; + // @ts-ignore + public static DROP: org.bukkit.event.inventory.ClickType; + // @ts-ignore + public static CONTROL_DROP: org.bukkit.event.inventory.ClickType; + // @ts-ignore + public static CREATIVE: org.bukkit.event.inventory.ClickType; + // @ts-ignore + public static UNKNOWN: org.bukkit.event.inventory.ClickType; + // @ts-ignore + public static values(): org.bukkit.event.inventory.ClickType[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.event.inventory.ClickType; + /** + * Gets whether this ClickType represents the pressing of a key on a + * keyboard. + */ + // @ts-ignore + public isKeyboardClick(): boolean; + /** + * Gets whether this ClickType represents an action that can only be + * performed by a Player in creative mode. + */ + // @ts-ignore + public isCreativeAction(): boolean; + /** + * Gets whether this ClickType represents a right click. + */ + // @ts-ignore + public isRightClick(): boolean; + /** + * Gets whether this ClickType represents a left click. + */ + // @ts-ignore + public isLeftClick(): boolean; + /** + * Gets whether this ClickType indicates that the shift key was pressed + * down when the click was made. + */ + // @ts-ignore + public isShiftClick(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.CraftItemEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.CraftItemEvent.d.ts new file mode 100644 index 00000000..d71fc19d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.CraftItemEvent.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace inventory { + // @ts-ignore + class CraftItemEvent extends org.bukkit.event.inventory.InventoryClickEvent { + // @ts-ignore + 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) + // @ts-ignore + 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) + // @ts-ignore + public getRecipe(): org.bukkit.inventory.Recipe; + // @ts-ignore + public getInventory(): org.bukkit.inventory.CraftingInventory; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.DragType.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.DragType.d.ts new file mode 100644 index 00000000..e88b9469 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.DragType.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace inventory { + // @ts-ignore + class DragType extends java.lang.Enum { + // @ts-ignore + public static SINGLE: org.bukkit.event.inventory.DragType; + // @ts-ignore + public static EVEN: org.bukkit.event.inventory.DragType; + // @ts-ignore + public static values(): org.bukkit.event.inventory.DragType[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.event.inventory.DragType; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.FurnaceBurnEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.FurnaceBurnEvent.d.ts new file mode 100644 index 00000000..c35423f1 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.FurnaceBurnEvent.d.ts @@ -0,0 +1,47 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace inventory { + // @ts-ignore + class FurnaceBurnEvent extends org.bukkit.event.block.BlockEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(furnace: org.bukkit.block.Block, fuel: org.bukkit.inventory.ItemStack, burnTime: number) + /** + * Gets the fuel ItemStack for this event + */ + // @ts-ignore + public getFuel(): org.bukkit.inventory.ItemStack; + /** + * Gets the burn time for this fuel + */ + // @ts-ignore + public getBurnTime(): number; + /** + * Sets the burn time for this fuel + */ + // @ts-ignore + public setBurnTime(burnTime: number): void; + /** + * Gets whether the furnace's fuel is burning or not. + */ + // @ts-ignore + public isBurning(): boolean; + /** + * Sets whether the furnace's fuel is burning or not. + */ + // @ts-ignore + public setBurning(burning: boolean): void; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.FurnaceExtractEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.FurnaceExtractEvent.d.ts new file mode 100644 index 00000000..0306c937 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.FurnaceExtractEvent.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace inventory { + // @ts-ignore + class FurnaceExtractEvent extends org.bukkit.event.block.BlockExpEvent { + // @ts-ignore + 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 + */ + // @ts-ignore + public getPlayer(): org.bukkit.entity.Player; + /** + * Get the Material of the item being retrieved + */ + // @ts-ignore + public getItemType(): org.bukkit.Material; + /** + * Get the item count being retrieved + */ + // @ts-ignore + public getItemAmount(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.FurnaceSmeltEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.FurnaceSmeltEvent.d.ts new file mode 100644 index 00000000..99a28e85 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.FurnaceSmeltEvent.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace inventory { + // @ts-ignore + class FurnaceSmeltEvent extends org.bukkit.event.block.BlockCookEvent { + // @ts-ignore + constructor(furnace: org.bukkit.block.Block, source: org.bukkit.inventory.ItemStack, result: org.bukkit.inventory.ItemStack) + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryAction.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryAction.d.ts new file mode 100644 index 00000000..03c68c82 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryAction.d.ts @@ -0,0 +1,54 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace inventory { + // @ts-ignore + class InventoryAction extends java.lang.Enum { + // @ts-ignore + public static NOTHING: org.bukkit.event.inventory.InventoryAction; + // @ts-ignore + public static PICKUP_ALL: org.bukkit.event.inventory.InventoryAction; + // @ts-ignore + public static PICKUP_SOME: org.bukkit.event.inventory.InventoryAction; + // @ts-ignore + public static PICKUP_HALF: org.bukkit.event.inventory.InventoryAction; + // @ts-ignore + public static PICKUP_ONE: org.bukkit.event.inventory.InventoryAction; + // @ts-ignore + public static PLACE_ALL: org.bukkit.event.inventory.InventoryAction; + // @ts-ignore + public static PLACE_SOME: org.bukkit.event.inventory.InventoryAction; + // @ts-ignore + public static PLACE_ONE: org.bukkit.event.inventory.InventoryAction; + // @ts-ignore + public static SWAP_WITH_CURSOR: org.bukkit.event.inventory.InventoryAction; + // @ts-ignore + public static DROP_ALL_CURSOR: org.bukkit.event.inventory.InventoryAction; + // @ts-ignore + public static DROP_ONE_CURSOR: org.bukkit.event.inventory.InventoryAction; + // @ts-ignore + public static DROP_ALL_SLOT: org.bukkit.event.inventory.InventoryAction; + // @ts-ignore + public static DROP_ONE_SLOT: org.bukkit.event.inventory.InventoryAction; + // @ts-ignore + public static MOVE_TO_OTHER_INVENTORY: org.bukkit.event.inventory.InventoryAction; + // @ts-ignore + public static HOTBAR_MOVE_AND_READD: org.bukkit.event.inventory.InventoryAction; + // @ts-ignore + public static HOTBAR_SWAP: org.bukkit.event.inventory.InventoryAction; + // @ts-ignore + public static CLONE_STACK: org.bukkit.event.inventory.InventoryAction; + // @ts-ignore + public static COLLECT_TO_CURSOR: org.bukkit.event.inventory.InventoryAction; + // @ts-ignore + public static UNKNOWN: org.bukkit.event.inventory.InventoryAction; + // @ts-ignore + public static values(): org.bukkit.event.inventory.InventoryAction[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.event.inventory.InventoryAction; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryClickEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryClickEvent.d.ts new file mode 100644 index 00000000..acd5d66d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryClickEvent.d.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace inventory { + // @ts-ignore + class InventoryClickEvent extends org.bukkit.event.inventory.InventoryInteractEvent { + // @ts-ignore + 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) + // @ts-ignore + 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) + /** + * Gets the type of slot that was clicked. + */ + // @ts-ignore + public getSlotType(): org.bukkit.event.inventory.InventoryType.SlotType; + /** + * Gets the current ItemStack on the cursor. + */ + // @ts-ignore + public getCursor(): org.bukkit.inventory.ItemStack; + /** + * Gets the ItemStack currently in the clicked slot. + */ + // @ts-ignore + public getCurrentItem(): org.bukkit.inventory.ItemStack; + /** + * Gets whether or not the ClickType for this event represents a right + * click. + */ + // @ts-ignore + public isRightClick(): boolean; + /** + * Gets whether or not the ClickType for this event represents a left + * click. + */ + // @ts-ignore + public isLeftClick(): boolean; + /** + * Gets whether the ClickType for this event indicates that the key was + * pressed down when the click was made. + */ + // @ts-ignore + public isShiftClick(): boolean; + /** + * Sets the item on the cursor. + */ + // @ts-ignore + public setCursor(stack: org.bukkit.inventory.ItemStack): void; + /** + * Sets the ItemStack currently in the clicked slot. + */ + // @ts-ignore + public setCurrentItem(stack: org.bukkit.inventory.ItemStack): void; + /** + * Gets the inventory corresponding to the clicked slot. + */ + // @ts-ignore + public getClickedInventory(): org.bukkit.inventory.Inventory; + /** + * The slot number that was clicked, ready for passing to + * {@link Inventory#getItem(int)}. Note that there may be two slots with + * the same slot number, since a view links two different inventories. + */ + // @ts-ignore + public getSlot(): number; + /** + * The raw slot number clicked, ready for passing to {@link InventoryView + * #getItem(int)} This slot number is unique for the view. + */ + // @ts-ignore + public getRawSlot(): number; + /** + * If the ClickType is NUMBER_KEY, this method will return the index of + * the pressed key (0-8). + */ + // @ts-ignore + public getHotbarButton(): number; + /** + * Gets the InventoryAction that triggered this event. + *

+ * This action cannot be changed, and represents what the normal outcome + * of the event will be. To change the behavior of this + * InventoryClickEvent, changes must be manually applied. + */ + // @ts-ignore + public getAction(): org.bukkit.event.inventory.InventoryAction; + /** + * Gets the ClickType for this event. + *

+ * This is insulated against changes to the inventory by other plugins. + */ + // @ts-ignore + public getClick(): org.bukkit.event.inventory.ClickType; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryCloseEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryCloseEvent.d.ts new file mode 100644 index 00000000..0d94adba --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryCloseEvent.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace inventory { + // @ts-ignore + class InventoryCloseEvent extends org.bukkit.event.inventory.InventoryEvent { + // @ts-ignore + constructor(transaction: org.bukkit.inventory.InventoryView) + /** + * Returns the player involved in this event + */ + // @ts-ignore + public getPlayer(): org.bukkit.entity.HumanEntity; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryCreativeEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryCreativeEvent.d.ts new file mode 100644 index 00000000..a5d52775 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryCreativeEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace inventory { + // @ts-ignore + class InventoryCreativeEvent extends org.bukkit.event.inventory.InventoryClickEvent { + // @ts-ignore + constructor(what: org.bukkit.inventory.InventoryView, type: org.bukkit.event.inventory.InventoryType.SlotType, slot: number, newItem: org.bukkit.inventory.ItemStack) + // @ts-ignore + public getCursor(): org.bukkit.inventory.ItemStack; + // @ts-ignore + public setCursor(item: org.bukkit.inventory.ItemStack): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryDragEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryDragEvent.d.ts new file mode 100644 index 00000000..3ec4cf00 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryDragEvent.d.ts @@ -0,0 +1,63 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace inventory { + // @ts-ignore + class InventoryDragEvent extends org.bukkit.event.inventory.InventoryInteractEvent { + // @ts-ignore + constructor(what: org.bukkit.inventory.InventoryView, newCursor: org.bukkit.inventory.ItemStack, oldCursor: org.bukkit.inventory.ItemStack, right: boolean, slots: java.util.Map) + /** + * Gets all items to be added to the inventory in this drag. + */ + // @ts-ignore + public getNewItems(): java.util.Map; + /** + * Gets the raw slot ids to be changed in this drag. + */ + // @ts-ignore + public getRawSlots(): java.util.Set; + /** + * Gets the slots to be changed in this drag. + */ + // @ts-ignore + public getInventorySlots(): java.util.Set; + /** + * Gets the result cursor after the drag is done. The returned value is + * mutable. + */ + // @ts-ignore + public getCursor(): org.bukkit.inventory.ItemStack; + /** + * Sets the result cursor after the drag is done. + *

+ * Changing this item stack changes the cursor item. Note that changing + * the affected "dragged" slots does not change this ItemStack, nor does + * changing this ItemStack affect the "dragged" slots. + */ + // @ts-ignore + public setCursor(newCursor: org.bukkit.inventory.ItemStack): void; + /** + * Gets an ItemStack representing the cursor prior to any modifications + * as a result of this drag. + */ + // @ts-ignore + public getOldCursor(): org.bukkit.inventory.ItemStack; + /** + * Gets the DragType that describes the behavior of ItemStacks placed + * after this InventoryDragEvent. + *

+ * The ItemStacks and the raw slots that they're being applied to can be + * found using {@link #getNewItems()}. + */ + // @ts-ignore + public getType(): org.bukkit.event.inventory.DragType; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryEvent.d.ts new file mode 100644 index 00000000..6aca4991 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryEvent.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace inventory { + // @ts-ignore + class InventoryEvent extends org.bukkit.event.Event { + // @ts-ignore + constructor(transaction: org.bukkit.inventory.InventoryView) + // @ts-ignore + protected transaction: org.bukkit.inventory.InventoryView; + /** + * Gets the primary Inventory involved in this transaction + */ + // @ts-ignore + public getInventory(): org.bukkit.inventory.Inventory; + /** + * Gets the list of players viewing the primary (upper) inventory involved + * in this event + */ + // @ts-ignore + public getViewers(): java.util.List; + /** + * Gets the view object itself + */ + // @ts-ignore + public getView(): org.bukkit.inventory.InventoryView; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryInteractEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryInteractEvent.d.ts new file mode 100644 index 00000000..18011f5d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryInteractEvent.d.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace inventory { + // @ts-ignore + abstract class InventoryInteractEvent extends org.bukkit.event.inventory.InventoryEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(transaction: org.bukkit.inventory.InventoryView) + /** + * Gets the player who performed the click. + */ + // @ts-ignore + public getWhoClicked(): org.bukkit.entity.HumanEntity; + /** + * Sets the result of this event. This will change whether or not this + * event is considered cancelled. + */ + // @ts-ignore + public setResult(newResult: org.bukkit.event.Event.Result): void; + /** + * Gets the {@link org.bukkit.event.Event.Result} of this event. The Result describes the + * behavior that will be applied to the inventory in relation to this + * event. + */ + // @ts-ignore + public getResult(): org.bukkit.event.Event.Result; + /** + * Gets whether or not this event is cancelled. This is based off of the + * Result value returned by {@link #getResult()}. Result.ALLOW and + * Result.DEFAULT will result in a returned value of false, but + * Result.DENY will result in a returned value of true. + *

+ * {@inheritDoc} + */ + // @ts-ignore + public isCancelled(): boolean; + /** + * Proxy method to {@link #setResult(org.bukkit.event.Event.Result)} for the Cancellable + * interface. {@link #setResult(org.bukkit.event.Event.Result)} is preferred, as it allows + * you to specify the Result beyond Result.DENY and Result.ALLOW. + *

+ * {@inheritDoc} + */ + // @ts-ignore + public setCancelled(toCancel: boolean): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryMoveItemEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryMoveItemEvent.d.ts new file mode 100644 index 00000000..ef2ecca9 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryMoveItemEvent.d.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace inventory { + // @ts-ignore + class InventoryMoveItemEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable { + // @ts-ignore + 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 + */ + // @ts-ignore + public getSource(): org.bukkit.inventory.Inventory; + /** + * Gets the ItemStack being moved; if modified, the original item will not + * be removed from the source inventory. + */ + // @ts-ignore + public getItem(): org.bukkit.inventory.ItemStack; + /** + * Sets the ItemStack being moved; if this is different from the original + * ItemStack, the original item will not be removed from the source + * inventory. + */ + // @ts-ignore + public setItem(itemStack: org.bukkit.inventory.ItemStack): void; + /** + * Gets the Inventory that the ItemStack is being put into + */ + // @ts-ignore + public getDestination(): org.bukkit.inventory.Inventory; + /** + * Gets the Inventory that initiated the transfer. This will always be + * either the destination or source Inventory. + */ + // @ts-ignore + public getInitiator(): org.bukkit.inventory.Inventory; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryOpenEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryOpenEvent.d.ts new file mode 100644 index 00000000..ef1c89f5 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryOpenEvent.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace inventory { + // @ts-ignore + class InventoryOpenEvent extends org.bukkit.event.inventory.InventoryEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(transaction: org.bukkit.inventory.InventoryView) + /** + * Returns the player involved in this event + */ + // @ts-ignore + public getPlayer(): org.bukkit.entity.HumanEntity; + /** + * Gets the cancellation state of this event. A cancelled event will not + * be executed in the server, but will still pass to other plugins. + *

+ * If an inventory open event is cancelled, the inventory screen will not + * show. + */ + // @ts-ignore + public 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. + *

+ * If an inventory open event is cancelled, the inventory screen will not + * show. + */ + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryPickupItemEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryPickupItemEvent.d.ts new file mode 100644 index 00000000..8b08fd94 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryPickupItemEvent.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace inventory { + // @ts-ignore + class InventoryPickupItemEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(inventory: org.bukkit.inventory.Inventory, item: org.bukkit.entity.Item) + /** + * Gets the Inventory that picked up the item + */ + // @ts-ignore + public getInventory(): org.bukkit.inventory.Inventory; + /** + * Gets the Item entity that was picked up + */ + // @ts-ignore + public getItem(): org.bukkit.entity.Item; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryType.SlotType.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryType.SlotType.d.ts new file mode 100644 index 00000000..0d36f3e9 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryType.SlotType.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace inventory { + namespace InventoryType { + // @ts-ignore + class SlotType extends java.lang.Enum { + // @ts-ignore + public static RESULT: org.bukkit.event.inventory.InventoryType.SlotType; + // @ts-ignore + public static CRAFTING: org.bukkit.event.inventory.InventoryType.SlotType; + // @ts-ignore + public static ARMOR: org.bukkit.event.inventory.InventoryType.SlotType; + // @ts-ignore + public static CONTAINER: org.bukkit.event.inventory.InventoryType.SlotType; + // @ts-ignore + public static QUICKBAR: org.bukkit.event.inventory.InventoryType.SlotType; + // @ts-ignore + public static OUTSIDE: org.bukkit.event.inventory.InventoryType.SlotType; + // @ts-ignore + public static FUEL: org.bukkit.event.inventory.InventoryType.SlotType; + // @ts-ignore + public static values(): org.bukkit.event.inventory.InventoryType.SlotType[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.event.inventory.InventoryType.SlotType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryType.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryType.d.ts new file mode 100644 index 00000000..c4bb429d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.InventoryType.d.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace inventory { + // @ts-ignore + class InventoryType extends java.lang.Enum { + // @ts-ignore + public static CHEST: org.bukkit.event.inventory.InventoryType; + // @ts-ignore + public static DISPENSER: org.bukkit.event.inventory.InventoryType; + // @ts-ignore + public static DROPPER: org.bukkit.event.inventory.InventoryType; + // @ts-ignore + public static FURNACE: org.bukkit.event.inventory.InventoryType; + // @ts-ignore + public static WORKBENCH: org.bukkit.event.inventory.InventoryType; + // @ts-ignore + public static CRAFTING: org.bukkit.event.inventory.InventoryType; + // @ts-ignore + public static ENCHANTING: org.bukkit.event.inventory.InventoryType; + // @ts-ignore + public static BREWING: org.bukkit.event.inventory.InventoryType; + // @ts-ignore + public static PLAYER: org.bukkit.event.inventory.InventoryType; + // @ts-ignore + public static CREATIVE: org.bukkit.event.inventory.InventoryType; + // @ts-ignore + public static MERCHANT: org.bukkit.event.inventory.InventoryType; + // @ts-ignore + public static ENDER_CHEST: org.bukkit.event.inventory.InventoryType; + // @ts-ignore + public static ANVIL: org.bukkit.event.inventory.InventoryType; + // @ts-ignore + public static BEACON: org.bukkit.event.inventory.InventoryType; + // @ts-ignore + public static HOPPER: org.bukkit.event.inventory.InventoryType; + // @ts-ignore + public static SHULKER_BOX: org.bukkit.event.inventory.InventoryType; + // @ts-ignore + public static BARREL: org.bukkit.event.inventory.InventoryType; + // @ts-ignore + public static BLAST_FURNACE: org.bukkit.event.inventory.InventoryType; + // @ts-ignore + public static LECTERN: org.bukkit.event.inventory.InventoryType; + // @ts-ignore + public static SMOKER: org.bukkit.event.inventory.InventoryType; + // @ts-ignore + public static LOOM: org.bukkit.event.inventory.InventoryType; + // @ts-ignore + public static CARTOGRAPHY: org.bukkit.event.inventory.InventoryType; + // @ts-ignore + public static GRINDSTONE: org.bukkit.event.inventory.InventoryType; + // @ts-ignore + public static STONECUTTER: org.bukkit.event.inventory.InventoryType; + // @ts-ignore + public static values(): org.bukkit.event.inventory.InventoryType[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.event.inventory.InventoryType; + // @ts-ignore + public getDefaultSize(): number; + // @ts-ignore + public getDefaultTitle(): string; + /** + * Denotes that this InventoryType can be created via the normal + * {@link org.bukkit.Bukkit#createInventory} methods. + */ + // @ts-ignore + public isCreatable(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.PrepareAnvilEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.PrepareAnvilEvent.d.ts new file mode 100644 index 00000000..e049ff2d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.PrepareAnvilEvent.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace inventory { + // @ts-ignore + class PrepareAnvilEvent extends org.bukkit.event.inventory.InventoryEvent { + // @ts-ignore + constructor(inventory: org.bukkit.inventory.InventoryView, result: org.bukkit.inventory.ItemStack) + // @ts-ignore + public getInventory(): org.bukkit.inventory.AnvilInventory; + /** + * Get result item, may be null. + */ + // @ts-ignore + public getResult(): org.bukkit.inventory.ItemStack; + // @ts-ignore + public setResult(result: org.bukkit.inventory.ItemStack): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.PrepareItemCraftEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.PrepareItemCraftEvent.d.ts new file mode 100644 index 00000000..f4c46aa0 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.PrepareItemCraftEvent.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace inventory { + // @ts-ignore + class PrepareItemCraftEvent extends org.bukkit.event.inventory.InventoryEvent { + // @ts-ignore + 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 + * tool repair, this will be a temporary shapeless recipe representing the + * repair. + */ + // @ts-ignore + public getRecipe(): org.bukkit.inventory.Recipe; + // @ts-ignore + public getInventory(): org.bukkit.inventory.CraftingInventory; + /** + * Check if this event was triggered by a tool repair operation rather + * than a crafting recipe. + */ + // @ts-ignore + public isRepair(): boolean; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.TradeSelectEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.TradeSelectEvent.d.ts new file mode 100644 index 00000000..d7e991ff --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.inventory.TradeSelectEvent.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace inventory { + // @ts-ignore + class TradeSelectEvent extends org.bukkit.event.inventory.InventoryInteractEvent { + // @ts-ignore + constructor(transaction: org.bukkit.inventory.InventoryView, newIndex: number) + /** + * Used to get the index of the trade the player clicked on. + */ + // @ts-ignore + public getIndex(): number; + // @ts-ignore + public getInventory(): org.bukkit.inventory.MerchantInventory; + /** + * Get the Merchant involved. + */ + // @ts-ignore + public getMerchant(): org.bukkit.inventory.Merchant; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.AsyncPlayerChatEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.AsyncPlayerChatEvent.d.ts new file mode 100644 index 00000000..e4f96cde --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.AsyncPlayerChatEvent.d.ts @@ -0,0 +1,65 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class AsyncPlayerChatEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(async: boolean, who: org.bukkit.entity.Player, message: string, players: java.util.Set) + /** + * Gets the message that the player is attempting to send. This message + * will be used with {@link #getFormat()}. + */ + // @ts-ignore + public getMessage(): string; + /** + * Sets the message that the player will send. This message will be used + * with {@link #getFormat()}. + */ + // @ts-ignore + public setMessage(message: string): void; + /** + * Gets the format to use to display this chat message. + *

+ * When this event finishes execution, the first format parameter is the + * {@link Player#getDisplayName()} and the second parameter is {@link + * #getMessage()} + */ + // @ts-ignore + public getFormat(): string; + /** + * Sets the format to use to display this chat message. + *

+ * When this event finishes execution, the first format parameter is the + * {@link Player#getDisplayName()} and the second parameter is {@link + * #getMessage()} + */ + // @ts-ignore + public setFormat(format: string): void; + /** + * Gets a set of recipients that this chat message will be displayed to. + *

+ * The set returned is not guaranteed to be mutable and may auto-populate + * on access. Any listener accessing the returned set should be aware that + * it may reduce performance for a lazy set implementation. + *

+ * Listeners should be aware that modifying the list may throw {@link + * UnsupportedOperationException} if the event caller provides an + * unmodifiable set. + */ + // @ts-ignore + public getRecipients(): java.util.Set; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.AsyncPlayerPreLoginEvent.Result.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.AsyncPlayerPreLoginEvent.Result.d.ts new file mode 100644 index 00000000..51d48e40 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.AsyncPlayerPreLoginEvent.Result.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + namespace AsyncPlayerPreLoginEvent { + // @ts-ignore + class Result extends java.lang.Enum { + // @ts-ignore + public static ALLOWED: org.bukkit.event.player.AsyncPlayerPreLoginEvent.Result; + // @ts-ignore + public static KICK_FULL: org.bukkit.event.player.AsyncPlayerPreLoginEvent.Result; + // @ts-ignore + public static KICK_BANNED: org.bukkit.event.player.AsyncPlayerPreLoginEvent.Result; + // @ts-ignore + public static KICK_WHITELIST: org.bukkit.event.player.AsyncPlayerPreLoginEvent.Result; + // @ts-ignore + public static KICK_OTHER: org.bukkit.event.player.AsyncPlayerPreLoginEvent.Result; + // @ts-ignore + public static values(): org.bukkit.event.player.AsyncPlayerPreLoginEvent.Result[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.event.player.AsyncPlayerPreLoginEvent.Result; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.AsyncPlayerPreLoginEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.AsyncPlayerPreLoginEvent.d.ts new file mode 100644 index 00000000..8ad186f6 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.AsyncPlayerPreLoginEvent.d.ts @@ -0,0 +1,81 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class AsyncPlayerPreLoginEvent extends org.bukkit.event.Event { + // @ts-ignore + constructor(name: string, ipAddress: java.net.InetAddress) + // @ts-ignore + constructor(name: string, ipAddress: java.net.InetAddress, uniqueId: java.util.UUID) + /** + * Gets the current result of the login, as an enum + */ + // @ts-ignore + public getLoginResult(): org.bukkit.event.player.AsyncPlayerPreLoginEvent.Result; + /** + * Gets the current result of the login, as an enum + */ + // @ts-ignore + public getResult(): org.bukkit.event.player.PlayerPreLoginEvent.Result; + /** + * Sets the new result of the login, as an enum + */ + // @ts-ignore + public setLoginResult(result: org.bukkit.event.player.AsyncPlayerPreLoginEvent.Result): void; + /** + * Sets the new result of the login, as an enum + */ + // @ts-ignore + public setResult(result: org.bukkit.event.player.PlayerPreLoginEvent.Result): void; + /** + * Gets the current kick message that will be used if getResult() != + * Result.ALLOWED + */ + // @ts-ignore + public getKickMessage(): string; + /** + * Sets the kick message to display if getResult() != Result.ALLOWED + */ + // @ts-ignore + public setKickMessage(message: string): void; + /** + * Allows the player to log in + */ + // @ts-ignore + public allow(): void; + /** + * Disallows the player from logging in, with the given reason + */ + // @ts-ignore + public disallow(result: org.bukkit.event.player.AsyncPlayerPreLoginEvent.Result, message: string): void; + /** + * Disallows the player from logging in, with the given reason + */ + // @ts-ignore + public disallow(result: org.bukkit.event.player.PlayerPreLoginEvent.Result, message: string): void; + /** + * Gets the player's name. + */ + // @ts-ignore + public getName(): string; + /** + * Gets the player IP address. + */ + // @ts-ignore + public getAddress(): java.net.InetAddress; + /** + * Gets the player's unique ID. + */ + // @ts-ignore + public getUniqueId(): java.util.UUID; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerAchievementAwardedEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerAchievementAwardedEvent.d.ts new file mode 100644 index 00000000..00fd58f5 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerAchievementAwardedEvent.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerAchievementAwardedEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(player: org.bukkit.entity.Player, achievement: org.bukkit.Achievement) + /** + * Gets the Achievement being awarded. + */ + // @ts-ignore + public getAchievement(): org.bukkit.Achievement; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerAdvancementDoneEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerAdvancementDoneEvent.d.ts new file mode 100644 index 00000000..cfafcc6a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerAdvancementDoneEvent.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerAdvancementDoneEvent extends org.bukkit.event.player.PlayerEvent { + // @ts-ignore + constructor(who: org.bukkit.entity.Player, advancement: org.bukkit.advancement.Advancement) + /** + * Get the advancement which has been completed. + */ + // @ts-ignore + public getAdvancement(): org.bukkit.advancement.Advancement; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerAnimationEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerAnimationEvent.d.ts new file mode 100644 index 00000000..a7b95e91 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerAnimationEvent.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerAnimationEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable { + /** + * Construct a new PlayerAnimation event + */ + // @ts-ignore + constructor(player: org.bukkit.entity.Player) + /** + * Get the type of this animation event + */ + // @ts-ignore + public getAnimationType(): org.bukkit.event.player.PlayerAnimationType; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerAnimationType.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerAnimationType.d.ts new file mode 100644 index 00000000..95b6220a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerAnimationType.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerAnimationType extends java.lang.Enum { + // @ts-ignore + public static ARM_SWING: org.bukkit.event.player.PlayerAnimationType; + // @ts-ignore + public static values(): org.bukkit.event.player.PlayerAnimationType[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.event.player.PlayerAnimationType; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerArmorStandManipulateEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerArmorStandManipulateEvent.d.ts new file mode 100644 index 00000000..8dade45b --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerArmorStandManipulateEvent.d.ts @@ -0,0 +1,45 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerArmorStandManipulateEvent extends org.bukkit.event.player.PlayerInteractEntityEvent { + // @ts-ignore + 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, + * there will be no transaction between the player and the armor stand. + * If the Player's item is null, but the armor stand item is not then the player will obtain the armor stand item. + * In the case that the Player's item is not null, but the armor stand item is null, the players item will be placed on the armor stand. + * If both items are not null, the items will be swapped. + * In the case that the event is cancelled the original items will remain the same. + */ + // @ts-ignore + public getPlayerItem(): org.bukkit.inventory.ItemStack; + /** + * Returns the item held by the armor stand. + * If this Item is null and the player's Item is also null, there will be no transaction between the player and the armor stand. + * If the Player's item is null, but the armor stand item is not then the player will obtain the armor stand item. + * In the case that the Player's item is not null, but the armor stand item is null, the players item will be placed on the armor stand. + * If both items are not null, the items will be swapped. + * In the case that the event is cancelled the original items will remain the same. + */ + // @ts-ignore + public getArmorStandItem(): org.bukkit.inventory.ItemStack; + /** + * Returns the raw item slot of the armor stand in this event. + */ + // @ts-ignore + public getSlot(): org.bukkit.inventory.EquipmentSlot; + // @ts-ignore + public getRightClicked(): org.bukkit.entity.ArmorStand; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerBedEnterEvent.BedEnterResult.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerBedEnterEvent.BedEnterResult.d.ts new file mode 100644 index 00000000..817186a3 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerBedEnterEvent.BedEnterResult.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + namespace PlayerBedEnterEvent { + // @ts-ignore + class BedEnterResult extends java.lang.Enum { + // @ts-ignore + public static OK: org.bukkit.event.player.PlayerBedEnterEvent.BedEnterResult; + // @ts-ignore + public static NOT_POSSIBLE_HERE: org.bukkit.event.player.PlayerBedEnterEvent.BedEnterResult; + // @ts-ignore + public static NOT_POSSIBLE_NOW: org.bukkit.event.player.PlayerBedEnterEvent.BedEnterResult; + // @ts-ignore + public static TOO_FAR_AWAY: org.bukkit.event.player.PlayerBedEnterEvent.BedEnterResult; + // @ts-ignore + public static NOT_SAFE: org.bukkit.event.player.PlayerBedEnterEvent.BedEnterResult; + // @ts-ignore + public static OTHER_PROBLEM: org.bukkit.event.player.PlayerBedEnterEvent.BedEnterResult; + // @ts-ignore + public static values(): org.bukkit.event.player.PlayerBedEnterEvent.BedEnterResult[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.event.player.PlayerBedEnterEvent.BedEnterResult; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerBedEnterEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerBedEnterEvent.d.ts new file mode 100644 index 00000000..bcf7ea2a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerBedEnterEvent.d.ts @@ -0,0 +1,73 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerBedEnterEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(who: org.bukkit.entity.Player, bed: org.bukkit.block.Block, bedEnterResult: org.bukkit.event.player.PlayerBedEnterEvent.BedEnterResult) + // @ts-ignore + constructor(who: org.bukkit.entity.Player, bed: org.bukkit.block.Block) + /** + * This describes the default outcome of this event. + */ + // @ts-ignore + public getBedEnterResult(): org.bukkit.event.player.PlayerBedEnterEvent.BedEnterResult; + /** + * This controls the action to take with the bed that was clicked on. + *

+ * In case of {@link org.bukkit.event.Event.Result#DEFAULT}, the default outcome is described by + * {@link #getBedEnterResult()}. + */ + // @ts-ignore + public useBed(): org.bukkit.event.Event.Result; + /** + * Sets the action to take with the interacted bed. + *

+ * {@link org.bukkit.event.Event.Result#ALLOW} will result in the player sleeping, regardless of + * the default outcome described by {@link #getBedEnterResult()}. + *
+ * {@link org.bukkit.event.Event.Result#DENY} will prevent the player from sleeping. This has the + * same effect as canceling the event via {@link #setCancelled(boolean)}. + *
+ * {@link org.bukkit.event.Event.Result#DEFAULT} will result in the outcome described by + * {@link #getBedEnterResult()}. + */ + // @ts-ignore + public setUseBed(useBed: org.bukkit.event.Event.Result): void; + /** + * Gets the cancellation state of this event. Set to true if you want to + * prevent the player from sleeping. + *

+ * Canceling the event has the same effect as setting {@link #useBed()} to + * {@link org.bukkit.event.Event.Result#DENY}. + *

+ * For backwards compatibility reasons this also returns true if + * {@link #useBed()} is {@link org.bukkit.event.Event.Result#DEFAULT} and the + * {@link #getBedEnterResult() default action} is to prevent bed entering. + */ + // @ts-ignore + public isCancelled(): boolean; + /** + * Sets the cancellation state of this event. A canceled event will not be + * executed in the server, but will still pass to other plugins. + *

+ * Canceling this event will prevent use of the bed. + */ + // @ts-ignore + public setCancelled(cancel: boolean): void; + /** + * Returns the bed block involved in this event. + */ + // @ts-ignore + public getBed(): org.bukkit.block.Block; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerBedLeaveEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerBedLeaveEvent.d.ts new file mode 100644 index 00000000..913c4636 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerBedLeaveEvent.d.ts @@ -0,0 +1,47 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerBedLeaveEvent extends org.bukkit.event.player.PlayerEvent { + // @ts-ignore + constructor(who: org.bukkit.entity.Player, bed: org.bukkit.block.Block, setBedSpawn: boolean) + /** + * Returns the bed block involved in this event. + */ + // @ts-ignore + public getBed(): org.bukkit.block.Block; + /** + * Get if this event should set the new spawn location for the + * {@link Player}. + *
+ * This does not remove any existing spawn location, only prevent it from + * being changed (if true). + *
+ * To change a {@link Player}'s spawn location, use + * {@link Player#setBedSpawnLocation(Location)}. + */ + // @ts-ignore + public shouldSetSpawnLocation(): boolean; + /** + * Set if this event should set the new spawn location for the + * {@link Player}. + *
+ * This will not remove any existing spawn location, only prevent it from + * being changed (if true). + *
+ * To change a {@link Player}'s spawn location, use + * {@link Player#setBedSpawnLocation(Location)}. + */ + // @ts-ignore + public setSpawnLocation(setBedSpawn: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerBucketEmptyEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerBucketEmptyEvent.d.ts new file mode 100644 index 00000000..af1f0c52 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerBucketEmptyEvent.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerBucketEmptyEvent extends org.bukkit.event.player.PlayerBucketEvent { + // @ts-ignore + 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) + // @ts-ignore + 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) + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerBucketEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerBucketEvent.d.ts new file mode 100644 index 00000000..8a7716ce --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerBucketEvent.d.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + abstract class PlayerBucketEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + 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) + // @ts-ignore + 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) + /** + * Returns the bucket used in this event + */ + // @ts-ignore + public getBucket(): org.bukkit.Material; + /** + * Get the resulting item in hand after the bucket event + */ + // @ts-ignore + public getItemStack(): org.bukkit.inventory.ItemStack; + /** + * Set the item in hand after the event + */ + // @ts-ignore + public setItemStack(itemStack: org.bukkit.inventory.ItemStack): void; + /** + * Gets the block involved in this event. + */ + // @ts-ignore + public getBlock(): org.bukkit.block.Block; + /** + * Return the block clicked + */ + // @ts-ignore + public getBlockClicked(): org.bukkit.block.Block; + /** + * Get the face on the clicked block + */ + // @ts-ignore + public getBlockFace(): org.bukkit.block.BlockFace; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerBucketFillEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerBucketFillEvent.d.ts new file mode 100644 index 00000000..5a948b32 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerBucketFillEvent.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerBucketFillEvent extends org.bukkit.event.player.PlayerBucketEvent { + // @ts-ignore + 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) + // @ts-ignore + 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) + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerChangedMainHandEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerChangedMainHandEvent.d.ts new file mode 100644 index 00000000..5bb5bcb4 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerChangedMainHandEvent.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerChangedMainHandEvent extends org.bukkit.event.player.PlayerEvent { + // @ts-ignore + 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 + * available via {@link Player#getMainHand()}. + */ + // @ts-ignore + public getMainHand(): org.bukkit.inventory.MainHand; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerChangedWorldEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerChangedWorldEvent.d.ts new file mode 100644 index 00000000..8052e9a6 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerChangedWorldEvent.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerChangedWorldEvent extends org.bukkit.event.player.PlayerEvent { + // @ts-ignore + constructor(player: org.bukkit.entity.Player, from: org.bukkit.World) + /** + * Gets the world the player is switching from. + */ + // @ts-ignore + public getFrom(): org.bukkit.World; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerChannelEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerChannelEvent.d.ts new file mode 100644 index 00000000..3831b679 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerChannelEvent.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + abstract class PlayerChannelEvent extends org.bukkit.event.player.PlayerEvent { + // @ts-ignore + constructor(player: org.bukkit.entity.Player, channel: string) + // @ts-ignore + public getChannel(): string; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerChatEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerChatEvent.d.ts new file mode 100644 index 00000000..76970e12 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerChatEvent.d.ts @@ -0,0 +1,55 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerChatEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(player: org.bukkit.entity.Player, message: string) + // @ts-ignore + constructor(player: org.bukkit.entity.Player, message: string, format: string, recipients: java.util.Set) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + /** + * Gets the message that the player is attempting to send + */ + // @ts-ignore + public getMessage(): string; + /** + * Sets the message that the player will send + */ + // @ts-ignore + public setMessage(message: string): void; + /** + * Sets the player that this message will display as, or command will be + * executed as + */ + // @ts-ignore + public setPlayer(player: org.bukkit.entity.Player): void; + /** + * Gets the format to use to display this chat message + */ + // @ts-ignore + public getFormat(): string; + /** + * Sets the format to use to display this chat message + */ + // @ts-ignore + public setFormat(format: string): void; + /** + * Gets a set of recipients that this chat message will be displayed to + */ + // @ts-ignore + public getRecipients(): java.util.Set; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerChatTabCompleteEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerChatTabCompleteEvent.d.ts new file mode 100644 index 00000000..7c633170 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerChatTabCompleteEvent.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerChatTabCompleteEvent extends org.bukkit.event.player.PlayerEvent { + // @ts-ignore + constructor(who: org.bukkit.entity.Player, message: string, completions: java.util.Collection) + /** + * Gets the chat message being tab-completed. + */ + // @ts-ignore + public getChatMessage(): string; + /** + * Gets the last 'token' of the message being tab-completed. + *

+ * The token is the substring starting with the character after the last + * space in the message. + */ + // @ts-ignore + public getLastToken(): string; + /** + * This is the collection of completions for this event. + */ + // @ts-ignore + public getTabCompletions(): java.util.Collection; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerCommandPreprocessEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerCommandPreprocessEvent.d.ts new file mode 100644 index 00000000..9a382bbf --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerCommandPreprocessEvent.d.ts @@ -0,0 +1,57 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerCommandPreprocessEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(player: org.bukkit.entity.Player, message: string) + // @ts-ignore + constructor(player: org.bukkit.entity.Player, message: string, recipients: java.util.Set) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + /** + * Gets the command that the player is attempting to send. + *

+ * All commands begin with a special character; implementations do not + * consider the first character when executing the content. + */ + // @ts-ignore + public getMessage(): string; + /** + * Sets the command that the player will send. + *

+ * All commands begin with a special character; implementations do not + * consider the first character when executing the content. + */ + // @ts-ignore + public setMessage(command: string): void; + /** + * Sets the player that this command will be executed as. + */ + // @ts-ignore + public setPlayer(player: org.bukkit.entity.Player): void; + /** + * Gets a set of recipients that this chat message will be displayed to. + *

+ * The set returned is not guaranteed to be mutable and may auto-populate + * on access. Any listener accessing the returned set should be aware that + * it may reduce performance for a lazy set implementation. Listeners + * should be aware that modifying the list may throw {@link + * UnsupportedOperationException} if the event caller provides an + * unmodifiable set. + */ + // @ts-ignore + public getRecipients(): java.util.Set; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerCommandSendEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerCommandSendEvent.d.ts new file mode 100644 index 00000000..8c3887ca --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerCommandSendEvent.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerCommandSendEvent extends org.bukkit.event.player.PlayerEvent { + // @ts-ignore + constructor(player: org.bukkit.entity.Player, commands: java.util.Collection) + /** + * Returns a mutable collection of all top level commands to be sent. + *
+ * It is not legal to add entries to this collection, only remove them. + * Behaviour of adding entries is undefined. + */ + // @ts-ignore + public getCommands(): java.util.Collection; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerDropItemEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerDropItemEvent.d.ts new file mode 100644 index 00000000..8281437d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerDropItemEvent.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerDropItemEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(player: org.bukkit.entity.Player, drop: org.bukkit.entity.Item) + /** + * Gets the ItemDrop created by the player + */ + // @ts-ignore + public getItemDrop(): org.bukkit.entity.Item; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerEditBookEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerEditBookEvent.d.ts new file mode 100644 index 00000000..bcb39e0c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerEditBookEvent.d.ts @@ -0,0 +1,65 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerEditBookEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + 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. + *

+ * Note: this is a copy of the book meta. You cannot use this object to + * change the existing book meta. + */ + // @ts-ignore + public getPreviousBookMeta(): org.bukkit.inventory.meta.BookMeta; + /** + * Gets the book meta that the player is attempting to add to the book. + *

+ * Note: this is a copy of the proposed new book meta. Use {@link + * #setNewBookMeta(BookMeta)} to change what will actually be added to the + * book. + */ + // @ts-ignore + public getNewBookMeta(): org.bukkit.inventory.meta.BookMeta; + /** + * Gets the inventory slot number for the book item that triggered this + * event. + *

+ * This is a slot number on the player's hotbar in the range 0-8, or -1 for + * off hand. + */ + // @ts-ignore + public getSlot(): number; + /** + * Sets the book meta that will actually be added to the book. + */ + // @ts-ignore + public setNewBookMeta(newBookMeta: org.bukkit.inventory.meta.BookMeta): void; + /** + * Gets whether or not the book is being signed. If a book is signed the + * Material changes from BOOK_AND_QUILL to WRITTEN_BOOK. + */ + // @ts-ignore + public isSigning(): boolean; + /** + * Sets whether or not the book is being signed. If a book is signed the + * Material changes from BOOK_AND_QUILL to WRITTEN_BOOK. + */ + // @ts-ignore + public setSigning(signing: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerEggThrowEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerEggThrowEvent.d.ts new file mode 100644 index 00000000..14df839c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerEggThrowEvent.d.ts @@ -0,0 +1,63 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerEggThrowEvent extends org.bukkit.event.player.PlayerEvent { + // @ts-ignore + 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. + */ + // @ts-ignore + public getEgg(): org.bukkit.entity.Egg; + /** + * Gets whether the egg is hatching or not. Will be what the server + * would've done without interaction. + */ + // @ts-ignore + public isHatching(): boolean; + /** + * Sets whether the egg will hatch or not. + */ + // @ts-ignore + public setHatching(hatching: boolean): void; + /** + * Get the type of the mob being hatched (EntityType.CHICKEN by default) + */ + // @ts-ignore + public getHatchingType(): org.bukkit.entity.EntityType; + /** + * Change the type of mob being hatched by the egg + */ + // @ts-ignore + public setHatchingType(hatchType: org.bukkit.entity.EntityType): void; + /** + * Get the number of mob hatches from the egg. By default the number will + * be the number the server would've done + *

    + *
  • 7/8 chance of being 0 + *
  • 31/256 ~= 1/8 chance to be 1 + *
  • 1/256 chance to be 4 + *
+ */ + // @ts-ignore + public getNumHatches(): number; + /** + * Change the number of mobs coming out of the hatched egg + *

+ * The boolean hatching will override this number. Ie. If hatching = + * false, this number will not matter + */ + // @ts-ignore + public setNumHatches(numHatches: number): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerEvent.d.ts new file mode 100644 index 00000000..95c9b0bf --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerEvent.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + abstract class PlayerEvent extends org.bukkit.event.Event { + // @ts-ignore + constructor(who: org.bukkit.entity.Player) + // @ts-ignore + protected player: org.bukkit.entity.Player; + /** + * Returns the player involved in this event + */ + // @ts-ignore + public getPlayer(): org.bukkit.entity.Player; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerExpChangeEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerExpChangeEvent.d.ts new file mode 100644 index 00000000..002c7bb6 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerExpChangeEvent.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerExpChangeEvent extends org.bukkit.event.player.PlayerEvent { + // @ts-ignore + constructor(player: org.bukkit.entity.Player, expAmount: number) + /** + * Get the amount of experience the player will receive + */ + // @ts-ignore + public getAmount(): number; + /** + * Set the amount of experience the player will receive + */ + // @ts-ignore + public setAmount(amount: number): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerFishEvent.State.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerFishEvent.State.d.ts new file mode 100644 index 00000000..def0e19f --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerFishEvent.State.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + namespace PlayerFishEvent { + // @ts-ignore + class State extends java.lang.Enum { + // @ts-ignore + public static FISHING: org.bukkit.event.player.PlayerFishEvent.State; + // @ts-ignore + public static CAUGHT_FISH: org.bukkit.event.player.PlayerFishEvent.State; + // @ts-ignore + public static CAUGHT_ENTITY: org.bukkit.event.player.PlayerFishEvent.State; + // @ts-ignore + public static IN_GROUND: org.bukkit.event.player.PlayerFishEvent.State; + // @ts-ignore + public static FAILED_ATTEMPT: org.bukkit.event.player.PlayerFishEvent.State; + // @ts-ignore + public static REEL_IN: org.bukkit.event.player.PlayerFishEvent.State; + // @ts-ignore + public static BITE: org.bukkit.event.player.PlayerFishEvent.State; + // @ts-ignore + public static values(): org.bukkit.event.player.PlayerFishEvent.State[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.event.player.PlayerFishEvent.State; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerFishEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerFishEvent.d.ts new file mode 100644 index 00000000..1a6a96f0 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerFishEvent.d.ts @@ -0,0 +1,56 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerFishEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + 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. + *

+ * If player has fished successfully, the result may be cast to {@link + * org.bukkit.entity.Item}. + */ + // @ts-ignore + public getCaught(): org.bukkit.entity.Entity; + /** + * Gets the fishing hook. + */ + // @ts-ignore + public getHook(): org.bukkit.entity.FishHook; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + /** + * Gets the amount of experience received when fishing. + *

+ * Note: This value has no default effect unless the event state is {@link + * State#CAUGHT_FISH}. + */ + // @ts-ignore + public getExpToDrop(): number; + /** + * Sets the amount of experience received when fishing. + *

+ * Note: This value has no default effect unless the event state is {@link + * State#CAUGHT_FISH}. + */ + // @ts-ignore + public setExpToDrop(amount: number): void; + /** + * Gets the state of the fishing + */ + // @ts-ignore + public getState(): org.bukkit.event.player.PlayerFishEvent.State; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerGameModeChangeEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerGameModeChangeEvent.d.ts new file mode 100644 index 00000000..fb561615 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerGameModeChangeEvent.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerGameModeChangeEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(player: org.bukkit.entity.Player, newGameMode: org.bukkit.GameMode) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + /** + * Gets the GameMode the player is switched to. + */ + // @ts-ignore + public getNewGameMode(): org.bukkit.GameMode; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerInteractAtEntityEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerInteractAtEntityEvent.d.ts new file mode 100644 index 00000000..19e7683d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerInteractAtEntityEvent.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerInteractAtEntityEvent extends org.bukkit.event.player.PlayerInteractEntityEvent { + // @ts-ignore + constructor(who: org.bukkit.entity.Player, clickedEntity: org.bukkit.entity.Entity, position: org.bukkit.util.Vector) + // @ts-ignore + constructor(who: org.bukkit.entity.Player, clickedEntity: org.bukkit.entity.Entity, position: org.bukkit.util.Vector, hand: org.bukkit.inventory.EquipmentSlot) + // @ts-ignore + public getClickedPosition(): org.bukkit.util.Vector; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerInteractEntityEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerInteractEntityEvent.d.ts new file mode 100644 index 00000000..30f1e61b --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerInteractEntityEvent.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerInteractEntityEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(who: org.bukkit.entity.Player, clickedEntity: org.bukkit.entity.Entity) + // @ts-ignore + constructor(who: org.bukkit.entity.Player, clickedEntity: org.bukkit.entity.Entity, hand: org.bukkit.inventory.EquipmentSlot) + // @ts-ignore + protected clickedEntity: org.bukkit.entity.Entity; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + /** + * Gets the entity that was right-clicked by the player. + */ + // @ts-ignore + public getRightClicked(): org.bukkit.entity.Entity; + /** + * The hand used to perform this interaction. + */ + // @ts-ignore + public getHand(): org.bukkit.inventory.EquipmentSlot; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerInteractEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerInteractEvent.d.ts new file mode 100644 index 00000000..b3632b5d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerInteractEvent.d.ts @@ -0,0 +1,111 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerInteractEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + 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) + // @ts-ignore + 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) + // @ts-ignore + protected item: org.bukkit.inventory.ItemStack; + // @ts-ignore + protected action: org.bukkit.event.block.Action; + // @ts-ignore + protected blockClicked: org.bukkit.block.Block; + // @ts-ignore + protected blockFace: org.bukkit.block.BlockFace; + /** + * Returns the action type + */ + // @ts-ignore + public getAction(): org.bukkit.event.block.Action; + /** + * Gets the cancellation state of this event. Set to true if you want to + * prevent buckets from placing water and so forth + */ + // @ts-ignore + public isCancelled(): boolean; + /** + * Sets the cancellation state of this event. A canceled event will not be + * executed in the server, but will still pass to other plugins + *

+ * Canceling this event will prevent use of food (player won't lose the + * food item), prevent bows/snowballs/eggs from firing, etc. (player won't + * lose the ammo) + */ + // @ts-ignore + public setCancelled(cancel: boolean): void; + /** + * Returns the item in hand represented by this event + */ + // @ts-ignore + public getItem(): org.bukkit.inventory.ItemStack; + /** + * Convenience method. Returns the material of the item represented by + * this event + */ + // @ts-ignore + public getMaterial(): org.bukkit.Material; + /** + * Check if this event involved a block + */ + // @ts-ignore + public hasBlock(): boolean; + /** + * Check if this event involved an item + */ + // @ts-ignore + public hasItem(): boolean; + /** + * Convenience method to inform the user whether this was a block + * placement event. + */ + // @ts-ignore + public isBlockInHand(): boolean; + /** + * Returns the clicked block + */ + // @ts-ignore + public getClickedBlock(): org.bukkit.block.Block; + /** + * Returns the face of the block that was clicked + */ + // @ts-ignore + public getBlockFace(): org.bukkit.block.BlockFace; + /** + * This controls the action to take with the block (if any) that was + * clicked on. This event gets processed for all blocks, but most don't + * have a default action + */ + // @ts-ignore + public useInteractedBlock(): org.bukkit.event.Event.Result; + // @ts-ignore + public setUseInteractedBlock(useInteractedBlock: org.bukkit.event.Event.Result): void; + /** + * This controls the action to take with the item the player is holding. + * This includes both blocks and items (such as flint and steel or + * records). When this is set to default, it will be allowed if no action + * is taken on the interacted block. + */ + // @ts-ignore + public useItemInHand(): org.bukkit.event.Event.Result; + // @ts-ignore + public setUseItemInHand(useItemInHand: org.bukkit.event.Event.Result): void; + /** + * The hand used to perform this interaction. May be null in the case of + * {@link Action#PHYSICAL}. + */ + // @ts-ignore + public getHand(): org.bukkit.inventory.EquipmentSlot; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerItemBreakEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerItemBreakEvent.d.ts new file mode 100644 index 00000000..04b57c2c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerItemBreakEvent.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerItemBreakEvent extends org.bukkit.event.player.PlayerEvent { + // @ts-ignore + constructor(player: org.bukkit.entity.Player, brokenItem: org.bukkit.inventory.ItemStack) + /** + * Gets the item that broke + */ + // @ts-ignore + public getBrokenItem(): org.bukkit.inventory.ItemStack; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerItemConsumeEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerItemConsumeEvent.d.ts new file mode 100644 index 00000000..a518d05d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerItemConsumeEvent.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerItemConsumeEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(player: org.bukkit.entity.Player, item: org.bukkit.inventory.ItemStack) + /** + * Gets the item that is being consumed. Modifying the returned item will + * have no effect, you must use {@link + * #setItem(org.bukkit.inventory.ItemStack)} instead. + */ + // @ts-ignore + public getItem(): org.bukkit.inventory.ItemStack; + /** + * Set the item being consumed + */ + // @ts-ignore + public setItem(item: org.bukkit.inventory.ItemStack): void; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerItemDamageEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerItemDamageEvent.d.ts new file mode 100644 index 00000000..7a34755d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerItemDamageEvent.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerItemDamageEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(player: org.bukkit.entity.Player, what: org.bukkit.inventory.ItemStack, damage: number) + /** + * Gets the item being damaged. + */ + // @ts-ignore + public getItem(): org.bukkit.inventory.ItemStack; + /** + * Gets the amount of durability damage this item will be taking. + */ + // @ts-ignore + public getDamage(): number; + // @ts-ignore + public setDamage(damage: number): void; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerItemHeldEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerItemHeldEvent.d.ts new file mode 100644 index 00000000..1c615f3f --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerItemHeldEvent.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerItemHeldEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(player: org.bukkit.entity.Player, previous: number, current: number) + /** + * Gets the previous held slot index + */ + // @ts-ignore + public getPreviousSlot(): number; + /** + * Gets the new held slot index + */ + // @ts-ignore + public getNewSlot(): number; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerItemMendEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerItemMendEvent.d.ts new file mode 100644 index 00000000..be9ca109 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerItemMendEvent.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerItemMendEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + 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. + * This is not necessarily the item the player is holding. + */ + // @ts-ignore + public getItem(): org.bukkit.inventory.ItemStack; + /** + * Get the experience orb triggering the event. + */ + // @ts-ignore + public getExperienceOrb(): org.bukkit.entity.ExperienceOrb; + /** + * Get the amount the item is to be repaired. + * The default value is twice the value of the consumed experience orb + * or the remaining damage left on the item, whichever is smaller. + */ + // @ts-ignore + public getRepairAmount(): number; + /** + * Set the amount the item will be repaired. + * Half of this value will be subtracted from the experience orb which initiated this event. + */ + // @ts-ignore + public setRepairAmount(amount: number): void; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancelled: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerJoinEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerJoinEvent.d.ts new file mode 100644 index 00000000..7359bbdc --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerJoinEvent.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerJoinEvent extends org.bukkit.event.player.PlayerEvent { + // @ts-ignore + constructor(playerJoined: org.bukkit.entity.Player, joinMessage: string) + /** + * Gets the join message to send to all online players + */ + // @ts-ignore + public getJoinMessage(): string; + /** + * Sets the join message to send to all online players + */ + // @ts-ignore + public setJoinMessage(joinMessage: string): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerKickEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerKickEvent.d.ts new file mode 100644 index 00000000..c84b76a5 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerKickEvent.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerKickEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(playerKicked: org.bukkit.entity.Player, kickReason: string, leaveMessage: string) + /** + * Gets the reason why the player is getting kicked + */ + // @ts-ignore + public getReason(): string; + /** + * Gets the leave message send to all online players + */ + // @ts-ignore + public getLeaveMessage(): string; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + /** + * Sets the reason why the player is getting kicked + */ + // @ts-ignore + public setReason(kickReason: string): void; + /** + * Sets the leave message send to all online players + */ + // @ts-ignore + public setLeaveMessage(leaveMessage: string): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerLevelChangeEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerLevelChangeEvent.d.ts new file mode 100644 index 00000000..32863230 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerLevelChangeEvent.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerLevelChangeEvent extends org.bukkit.event.player.PlayerEvent { + // @ts-ignore + constructor(player: org.bukkit.entity.Player, oldLevel: number, newLevel: number) + /** + * Gets the old level of the player + */ + // @ts-ignore + public getOldLevel(): number; + /** + * Gets the new level of the player + */ + // @ts-ignore + public getNewLevel(): number; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerLocaleChangeEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerLocaleChangeEvent.d.ts new file mode 100644 index 00000000..677ad87e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerLocaleChangeEvent.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerLocaleChangeEvent extends org.bukkit.event.player.PlayerEvent { + // @ts-ignore + constructor(who: org.bukkit.entity.Player, locale: string) + // @ts-ignore + public getLocale(): string; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerLoginEvent.Result.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerLoginEvent.Result.d.ts new file mode 100644 index 00000000..7877d83e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerLoginEvent.Result.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + namespace PlayerLoginEvent { + // @ts-ignore + class Result extends java.lang.Enum { + // @ts-ignore + public static ALLOWED: org.bukkit.event.player.PlayerLoginEvent.Result; + // @ts-ignore + public static KICK_FULL: org.bukkit.event.player.PlayerLoginEvent.Result; + // @ts-ignore + public static KICK_BANNED: org.bukkit.event.player.PlayerLoginEvent.Result; + // @ts-ignore + public static KICK_WHITELIST: org.bukkit.event.player.PlayerLoginEvent.Result; + // @ts-ignore + public static KICK_OTHER: org.bukkit.event.player.PlayerLoginEvent.Result; + // @ts-ignore + public static values(): org.bukkit.event.player.PlayerLoginEvent.Result[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.event.player.PlayerLoginEvent.Result; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerLoginEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerLoginEvent.d.ts new file mode 100644 index 00000000..21834a8c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerLoginEvent.d.ts @@ -0,0 +1,71 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerLoginEvent extends org.bukkit.event.player.PlayerEvent { + /** + * This constructor defaults message to an empty string, and result to + * ALLOWED + */ + // @ts-ignore + constructor(player: org.bukkit.entity.Player, hostname: string, address: java.net.InetAddress) + /** + * This constructor pre-configures the event with a result and message + */ + // @ts-ignore + constructor(player: org.bukkit.entity.Player, hostname: string, address: java.net.InetAddress, result: org.bukkit.event.player.PlayerLoginEvent.Result, message: string) + /** + * Gets the current result of the login, as an enum + */ + // @ts-ignore + public getResult(): org.bukkit.event.player.PlayerLoginEvent.Result; + /** + * Sets the new result of the login, as an enum + */ + // @ts-ignore + public setResult(result: org.bukkit.event.player.PlayerLoginEvent.Result): void; + /** + * Gets the current kick message that will be used if getResult() != + * Result.ALLOWED + */ + // @ts-ignore + public getKickMessage(): string; + /** + * Sets the kick message to display if getResult() != Result.ALLOWED + */ + // @ts-ignore + public setKickMessage(message: string): void; + /** + * Gets the hostname that the player used to connect to the server, or + * blank if unknown + */ + // @ts-ignore + public getHostname(): string; + /** + * Allows the player to log in + */ + // @ts-ignore + public allow(): void; + /** + * Disallows the player from logging in, with the given reason + */ + // @ts-ignore + public disallow(result: org.bukkit.event.player.PlayerLoginEvent.Result, message: string): void; + /** + * Gets the {@link InetAddress} for the Player associated with this event. + * This method is provided as a workaround for player.getAddress() + * returning null during PlayerLoginEvent. + */ + // @ts-ignore + public getAddress(): java.net.InetAddress; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerMoveEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerMoveEvent.d.ts new file mode 100644 index 00000000..f413620f --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerMoveEvent.d.ts @@ -0,0 +1,58 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerMoveEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + 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 + * be executed in the server, but will still pass to other plugins + *

+ * If a move or teleport event is cancelled, the player will be moved or + * teleported back to the Location as defined by getFrom(). This will not + * fire an event + */ + // @ts-ignore + public 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 + *

+ * If a move or teleport event is cancelled, the player will be moved or + * teleported back to the Location as defined by getFrom(). This will not + * fire an event + */ + // @ts-ignore + public setCancelled(cancel: boolean): void; + /** + * Gets the location this player moved from + */ + // @ts-ignore + public getFrom(): org.bukkit.Location; + /** + * Sets the location to mark as where the player moved from + */ + // @ts-ignore + public setFrom(from: org.bukkit.Location): void; + /** + * Gets the location this player moved to + */ + // @ts-ignore + public getTo(): org.bukkit.Location; + /** + * Sets the location that this player will move to + */ + // @ts-ignore + public setTo(to: org.bukkit.Location): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerPickupArrowEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerPickupArrowEvent.d.ts new file mode 100644 index 00000000..8807d5e5 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerPickupArrowEvent.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerPickupArrowEvent extends org.bukkit.event.player.PlayerPickupItemEvent { + // @ts-ignore + 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 + */ + // @ts-ignore + public getArrow(): org.bukkit.entity.AbstractArrow; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerPickupItemEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerPickupItemEvent.d.ts new file mode 100644 index 00000000..c1cae040 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerPickupItemEvent.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerPickupItemEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(player: org.bukkit.entity.Player, item: org.bukkit.entity.Item, remaining: number) + /** + * Gets the Item picked up by the player. + */ + // @ts-ignore + public getItem(): org.bukkit.entity.Item; + /** + * Gets the amount remaining on the ground, if any + */ + // @ts-ignore + public getRemaining(): number; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerPortalEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerPortalEvent.d.ts new file mode 100644 index 00000000..a47cf6ed --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerPortalEvent.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerPortalEvent extends org.bukkit.event.player.PlayerTeleportEvent { + // @ts-ignore + constructor(player: org.bukkit.entity.Player, from: org.bukkit.Location, to: org.bukkit.Location) + // @ts-ignore + constructor(player: org.bukkit.entity.Player, from: org.bukkit.Location, to: org.bukkit.Location, cause: org.bukkit.event.player.PlayerTeleportEvent.TeleportCause) + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerPreLoginEvent.Result.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerPreLoginEvent.Result.d.ts new file mode 100644 index 00000000..1bc8e190 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerPreLoginEvent.Result.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + namespace PlayerPreLoginEvent { + // @ts-ignore + class Result extends java.lang.Enum { + // @ts-ignore + public static ALLOWED: org.bukkit.event.player.PlayerPreLoginEvent.Result; + // @ts-ignore + public static KICK_FULL: org.bukkit.event.player.PlayerPreLoginEvent.Result; + // @ts-ignore + public static KICK_BANNED: org.bukkit.event.player.PlayerPreLoginEvent.Result; + // @ts-ignore + public static KICK_WHITELIST: org.bukkit.event.player.PlayerPreLoginEvent.Result; + // @ts-ignore + public static KICK_OTHER: org.bukkit.event.player.PlayerPreLoginEvent.Result; + // @ts-ignore + public static values(): org.bukkit.event.player.PlayerPreLoginEvent.Result[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.event.player.PlayerPreLoginEvent.Result; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerPreLoginEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerPreLoginEvent.d.ts new file mode 100644 index 00000000..6a11e9e3 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerPreLoginEvent.d.ts @@ -0,0 +1,66 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerPreLoginEvent extends org.bukkit.event.Event { + // @ts-ignore + constructor(name: string, ipAddress: java.net.InetAddress) + // @ts-ignore + constructor(name: string, ipAddress: java.net.InetAddress, uniqueId: java.util.UUID) + /** + * Gets the current result of the login, as an enum + */ + // @ts-ignore + public getResult(): org.bukkit.event.player.PlayerPreLoginEvent.Result; + /** + * Sets the new result of the login, as an enum + */ + // @ts-ignore + public setResult(result: org.bukkit.event.player.PlayerPreLoginEvent.Result): void; + /** + * Gets the current kick message that will be used if getResult() != + * Result.ALLOWED + */ + // @ts-ignore + public getKickMessage(): string; + /** + * Sets the kick message to display if getResult() != Result.ALLOWED + */ + // @ts-ignore + public setKickMessage(message: string): void; + /** + * Allows the player to log in + */ + // @ts-ignore + public allow(): void; + /** + * Disallows the player from logging in, with the given reason + */ + // @ts-ignore + public disallow(result: org.bukkit.event.player.PlayerPreLoginEvent.Result, message: string): void; + /** + * Gets the player's name. + */ + // @ts-ignore + public getName(): string; + /** + * Gets the player IP address. + */ + // @ts-ignore + public getAddress(): java.net.InetAddress; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + /** + * Gets the player's unique ID. + */ + // @ts-ignore + public getUniqueId(): java.util.UUID; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerQuitEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerQuitEvent.d.ts new file mode 100644 index 00000000..3520bf41 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerQuitEvent.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerQuitEvent extends org.bukkit.event.player.PlayerEvent { + // @ts-ignore + constructor(who: org.bukkit.entity.Player, quitMessage: string) + /** + * Gets the quit message to send to all online players + */ + // @ts-ignore + public getQuitMessage(): string; + /** + * Sets the quit message to send to all online players + */ + // @ts-ignore + public setQuitMessage(quitMessage: string): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerRecipeDiscoverEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerRecipeDiscoverEvent.d.ts new file mode 100644 index 00000000..eaaf016a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerRecipeDiscoverEvent.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerRecipeDiscoverEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(who: org.bukkit.entity.Player, recipe: org.bukkit.NamespacedKey) + /** + * Get the namespaced key of the discovered recipe. + */ + // @ts-ignore + public getRecipe(): org.bukkit.NamespacedKey; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerRegisterChannelEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerRegisterChannelEvent.d.ts new file mode 100644 index 00000000..5cdcdb9a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerRegisterChannelEvent.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerRegisterChannelEvent extends org.bukkit.event.player.PlayerChannelEvent { + // @ts-ignore + constructor(player: org.bukkit.entity.Player, channel: string) + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerResourcePackStatusEvent.Status.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerResourcePackStatusEvent.Status.d.ts new file mode 100644 index 00000000..cbcf7738 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerResourcePackStatusEvent.Status.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + namespace PlayerResourcePackStatusEvent { + // @ts-ignore + class Status extends java.lang.Enum { + // @ts-ignore + public static SUCCESSFULLY_LOADED: org.bukkit.event.player.PlayerResourcePackStatusEvent.Status; + // @ts-ignore + public static DECLINED: org.bukkit.event.player.PlayerResourcePackStatusEvent.Status; + // @ts-ignore + public static FAILED_DOWNLOAD: org.bukkit.event.player.PlayerResourcePackStatusEvent.Status; + // @ts-ignore + public static ACCEPTED: org.bukkit.event.player.PlayerResourcePackStatusEvent.Status; + // @ts-ignore + public static values(): org.bukkit.event.player.PlayerResourcePackStatusEvent.Status[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.event.player.PlayerResourcePackStatusEvent.Status; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerResourcePackStatusEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerResourcePackStatusEvent.d.ts new file mode 100644 index 00000000..db3ed4cd --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerResourcePackStatusEvent.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerResourcePackStatusEvent extends org.bukkit.event.player.PlayerEvent { + // @ts-ignore + constructor(who: org.bukkit.entity.Player, resourcePackStatus: org.bukkit.event.player.PlayerResourcePackStatusEvent.Status) + /** + * Gets the status of this pack. + */ + // @ts-ignore + public getStatus(): org.bukkit.event.player.PlayerResourcePackStatusEvent.Status; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerRespawnEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerRespawnEvent.d.ts new file mode 100644 index 00000000..e3f1f671 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerRespawnEvent.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerRespawnEvent extends org.bukkit.event.player.PlayerEvent { + // @ts-ignore + constructor(respawnPlayer: org.bukkit.entity.Player, respawnLocation: org.bukkit.Location, isBedSpawn: boolean) + /** + * Gets the current respawn location + */ + // @ts-ignore + public getRespawnLocation(): org.bukkit.Location; + /** + * Sets the new respawn location + */ + // @ts-ignore + public setRespawnLocation(respawnLocation: org.bukkit.Location): void; + /** + * Gets whether the respawn location is the player's bed. + */ + // @ts-ignore + public isBedSpawn(): boolean; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerRiptideEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerRiptideEvent.d.ts new file mode 100644 index 00000000..9158a8bb --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerRiptideEvent.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerRiptideEvent extends org.bukkit.event.player.PlayerEvent { + // @ts-ignore + constructor(who: org.bukkit.entity.Player, item: org.bukkit.inventory.ItemStack) + /** + * Gets the item containing the used enchantment. + */ + // @ts-ignore + public getItem(): org.bukkit.inventory.ItemStack; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerShearEntityEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerShearEntityEvent.d.ts new file mode 100644 index 00000000..bbab74f0 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerShearEntityEvent.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerShearEntityEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(who: org.bukkit.entity.Player, what: org.bukkit.entity.Entity) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + /** + * Gets the entity the player is shearing + */ + // @ts-ignore + public getEntity(): org.bukkit.entity.Entity; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerStatisticIncrementEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerStatisticIncrementEvent.d.ts new file mode 100644 index 00000000..91b75990 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerStatisticIncrementEvent.d.ts @@ -0,0 +1,55 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerStatisticIncrementEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(player: org.bukkit.entity.Player, statistic: org.bukkit.Statistic, initialValue: number, newValue: number) + // @ts-ignore + constructor(player: org.bukkit.entity.Player, statistic: org.bukkit.Statistic, initialValue: number, newValue: number, entityType: org.bukkit.entity.EntityType) + // @ts-ignore + constructor(player: org.bukkit.entity.Player, statistic: org.bukkit.Statistic, initialValue: number, newValue: number, material: org.bukkit.Material) + // @ts-ignore + protected statistic: org.bukkit.Statistic; + /** + * Gets the statistic that is being incremented. + */ + // @ts-ignore + public getStatistic(): org.bukkit.Statistic; + /** + * Gets the previous value of the statistic. + */ + // @ts-ignore + public getPreviousValue(): number; + /** + * Gets the new value of the statistic. + */ + // @ts-ignore + public getNewValue(): number; + /** + * Gets the EntityType if {@link #getStatistic() getStatistic()} is an + * entity statistic otherwise returns null. + */ + // @ts-ignore + public getEntityType(): org.bukkit.entity.EntityType; + /** + * Gets the Material if {@link #getStatistic() getStatistic()} is a block + * or item statistic otherwise returns null. + */ + // @ts-ignore + public getMaterial(): org.bukkit.Material; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerSwapHandItemsEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerSwapHandItemsEvent.d.ts new file mode 100644 index 00000000..bb9eb0e7 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerSwapHandItemsEvent.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerSwapHandItemsEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(player: org.bukkit.entity.Player, mainHandItem: org.bukkit.inventory.ItemStack, offHandItem: org.bukkit.inventory.ItemStack) + /** + * Gets the item switched to the main hand. + */ + // @ts-ignore + public getMainHandItem(): org.bukkit.inventory.ItemStack; + /** + * Sets the item in the main hand. + */ + // @ts-ignore + public setMainHandItem(mainHandItem: org.bukkit.inventory.ItemStack): void; + /** + * Gets the item switched to the off hand. + */ + // @ts-ignore + public getOffHandItem(): org.bukkit.inventory.ItemStack; + /** + * Sets the item in the off hand. + */ + // @ts-ignore + public setOffHandItem(offHandItem: org.bukkit.inventory.ItemStack): void; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerTakeLecternBookEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerTakeLecternBookEvent.d.ts new file mode 100644 index 00000000..6fad5950 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerTakeLecternBookEvent.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerTakeLecternBookEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(who: org.bukkit.entity.Player, lectern: org.bukkit.block.Lectern) + /** + * Gets the lectern involved. + */ + // @ts-ignore + public getLectern(): org.bukkit.block.Lectern; + /** + * Gets the current ItemStack on the lectern. + */ + // @ts-ignore + public getBook(): org.bukkit.inventory.ItemStack; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerTeleportEvent.TeleportCause.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerTeleportEvent.TeleportCause.d.ts new file mode 100644 index 00000000..3067335a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerTeleportEvent.TeleportCause.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + namespace PlayerTeleportEvent { + // @ts-ignore + class TeleportCause extends java.lang.Enum { + // @ts-ignore + public static ENDER_PEARL: org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; + // @ts-ignore + public static COMMAND: org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; + // @ts-ignore + public static PLUGIN: org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; + // @ts-ignore + public static NETHER_PORTAL: org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; + // @ts-ignore + public static END_PORTAL: org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; + // @ts-ignore + public static SPECTATE: org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; + // @ts-ignore + public static END_GATEWAY: org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; + // @ts-ignore + public static CHORUS_FRUIT: org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; + // @ts-ignore + public static UNKNOWN: org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; + // @ts-ignore + public static values(): org.bukkit.event.player.PlayerTeleportEvent.TeleportCause[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerTeleportEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerTeleportEvent.d.ts new file mode 100644 index 00000000..021d6cad --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerTeleportEvent.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerTeleportEvent extends org.bukkit.event.player.PlayerMoveEvent { + // @ts-ignore + constructor(player: org.bukkit.entity.Player, from: org.bukkit.Location, to: org.bukkit.Location) + // @ts-ignore + constructor(player: org.bukkit.entity.Player, from: org.bukkit.Location, to: org.bukkit.Location, cause: org.bukkit.event.player.PlayerTeleportEvent.TeleportCause) + /** + * Gets the cause of this teleportation event + */ + // @ts-ignore + public getCause(): org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerToggleFlightEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerToggleFlightEvent.d.ts new file mode 100644 index 00000000..194e3ef7 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerToggleFlightEvent.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerToggleFlightEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(player: org.bukkit.entity.Player, isFlying: boolean) + /** + * Returns whether the player is trying to start or stop flying. + */ + // @ts-ignore + public isFlying(): boolean; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerToggleSneakEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerToggleSneakEvent.d.ts new file mode 100644 index 00000000..dcbe5240 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerToggleSneakEvent.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerToggleSneakEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(player: org.bukkit.entity.Player, isSneaking: boolean) + /** + * Returns whether the player is now sneaking or not. + */ + // @ts-ignore + public isSneaking(): boolean; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerToggleSprintEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerToggleSprintEvent.d.ts new file mode 100644 index 00000000..943f395c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerToggleSprintEvent.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerToggleSprintEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(player: org.bukkit.entity.Player, isSprinting: boolean) + /** + * Gets whether the player is now sprinting or not. + */ + // @ts-ignore + public isSprinting(): boolean; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerUnleashEntityEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerUnleashEntityEvent.d.ts new file mode 100644 index 00000000..324ac0a1 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerUnleashEntityEvent.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerUnleashEntityEvent extends org.bukkit.event.entity.EntityUnleashEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(entity: org.bukkit.entity.Entity, player: org.bukkit.entity.Player) + /** + * Returns the player who is unleashing the entity. + */ + // @ts-ignore + public getPlayer(): org.bukkit.entity.Player; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerUnregisterChannelEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerUnregisterChannelEvent.d.ts new file mode 100644 index 00000000..70525ab2 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerUnregisterChannelEvent.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerUnregisterChannelEvent extends org.bukkit.event.player.PlayerChannelEvent { + // @ts-ignore + constructor(player: org.bukkit.entity.Player, channel: string) + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerVelocityEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerVelocityEvent.d.ts new file mode 100644 index 00000000..0cc3b483 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.player.PlayerVelocityEvent.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace player { + // @ts-ignore + class PlayerVelocityEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(player: org.bukkit.entity.Player, velocity: org.bukkit.util.Vector) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + /** + * Gets the velocity vector that will be sent to the player + */ + // @ts-ignore + public getVelocity(): org.bukkit.util.Vector; + /** + * Sets the velocity vector that will be sent to the player + */ + // @ts-ignore + public setVelocity(velocity: org.bukkit.util.Vector): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.server.BroadcastMessageEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.server.BroadcastMessageEvent.d.ts new file mode 100644 index 00000000..eb396243 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.server.BroadcastMessageEvent.d.ts @@ -0,0 +1,47 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace server { + // @ts-ignore + class BroadcastMessageEvent extends org.bukkit.event.server.ServerEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(message: string, recipients: java.util.Set) + // @ts-ignore + constructor(isAsync: boolean, message: string, recipients: java.util.Set) + /** + * Get the message to broadcast. + */ + // @ts-ignore + public getMessage(): string; + /** + * Set the message to broadcast. + */ + // @ts-ignore + public setMessage(message: string): void; + /** + * Gets a set of recipients that this chat message will be displayed to. + *

+ * The set returned is not guaranteed to be mutable and may auto-populate + * on access. Any listener accessing the returned set should be aware that + * it may reduce performance for a lazy set implementation. + *

+ * Listeners should be aware that modifying the list may throw {@link + * UnsupportedOperationException} if the event caller provides an + * unmodifiable set. + */ + // @ts-ignore + public getRecipients(): java.util.Set; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancelled: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.server.MapInitializeEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.server.MapInitializeEvent.d.ts new file mode 100644 index 00000000..3946d22d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.server.MapInitializeEvent.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace server { + // @ts-ignore + class MapInitializeEvent extends org.bukkit.event.server.ServerEvent { + // @ts-ignore + constructor(mapView: org.bukkit.map.MapView) + /** + * Gets the map initialized in this event. + */ + // @ts-ignore + public getMap(): org.bukkit.map.MapView; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.server.PluginDisableEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.server.PluginDisableEvent.d.ts new file mode 100644 index 00000000..90b54a31 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.server.PluginDisableEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace server { + // @ts-ignore + class PluginDisableEvent extends org.bukkit.event.server.PluginEvent { + // @ts-ignore + constructor(plugin: org.bukkit.plugin.Plugin) + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.server.PluginEnableEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.server.PluginEnableEvent.d.ts new file mode 100644 index 00000000..612e88c3 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.server.PluginEnableEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace server { + // @ts-ignore + class PluginEnableEvent extends org.bukkit.event.server.PluginEvent { + // @ts-ignore + constructor(plugin: org.bukkit.plugin.Plugin) + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.server.PluginEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.server.PluginEvent.d.ts new file mode 100644 index 00000000..1635d0ac --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.server.PluginEvent.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace server { + // @ts-ignore + abstract class PluginEvent extends org.bukkit.event.server.ServerEvent { + // @ts-ignore + constructor(plugin: org.bukkit.plugin.Plugin) + /** + * Gets the plugin involved in this event + */ + // @ts-ignore + public getPlugin(): org.bukkit.plugin.Plugin; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.server.RemoteServerCommandEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.server.RemoteServerCommandEvent.d.ts new file mode 100644 index 00000000..1263aaf3 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.server.RemoteServerCommandEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace server { + // @ts-ignore + class RemoteServerCommandEvent extends org.bukkit.event.server.ServerCommandEvent { + // @ts-ignore + constructor(sender: org.bukkit.command.CommandSender, command: string) + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.server.ServerCommandEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.server.ServerCommandEvent.d.ts new file mode 100644 index 00000000..51d85e9a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.server.ServerCommandEvent.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace server { + // @ts-ignore + class ServerCommandEvent extends org.bukkit.event.server.ServerEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(sender: org.bukkit.command.CommandSender, command: string) + /** + * Gets the command that the user is attempting to execute from the + * console + */ + // @ts-ignore + public getCommand(): string; + /** + * Sets the command that the server will execute + */ + // @ts-ignore + public setCommand(message: string): void; + /** + * Get the command sender. + */ + // @ts-ignore + public getSender(): org.bukkit.command.CommandSender; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.server.ServerEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.server.ServerEvent.d.ts new file mode 100644 index 00000000..8d64d8c3 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.server.ServerEvent.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace server { + // @ts-ignore + abstract class ServerEvent extends org.bukkit.event.Event { + // @ts-ignore + constructor() + // @ts-ignore + constructor(isAsync: boolean) + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.server.ServerListPingEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.server.ServerListPingEvent.d.ts new file mode 100644 index 00000000..17d7064a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.server.ServerListPingEvent.d.ts @@ -0,0 +1,70 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace server { + // @ts-ignore + class ServerListPingEvent extends org.bukkit.event.server.ServerEvent { + // @ts-ignore + constructor(address: java.net.InetAddress, motd: string, numPlayers: number, maxPlayers: number) + /** + * This constructor is intended for implementations that provide the + * {@link #iterator()} method, thus provided the {@link #getNumPlayers()} + * count. + */ + // @ts-ignore + constructor(address: java.net.InetAddress, motd: string, maxPlayers: number) + /** + * Get the address the ping is coming from. + */ + // @ts-ignore + public getAddress(): java.net.InetAddress; + /** + * Get the message of the day message. + */ + // @ts-ignore + public getMotd(): string; + /** + * Change the message of the day message. + */ + // @ts-ignore + public setMotd(motd: string): void; + /** + * Get the number of players sent. + */ + // @ts-ignore + public getNumPlayers(): number; + /** + * Get the maximum number of players sent. + */ + // @ts-ignore + public getMaxPlayers(): number; + /** + * Set the maximum number of players sent. + */ + // @ts-ignore + public setMaxPlayers(maxPlayers: number): void; + /** + * Sets the server-icon sent to the client. + */ + // @ts-ignore + public setServerIcon(icon: org.bukkit.util.CachedServerIcon): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + /** + * {@inheritDoc} + *

+ * Calling the {@link Iterator#remove()} method will force that particular + * player to not be displayed on the player list, decrease the size + * returned by {@link #getNumPlayers()}, and will not be returned again by + * any new iterator. + */ + // @ts-ignore + public iterator(): java.util.Iterator; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.server.ServerLoadEvent.LoadType.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.server.ServerLoadEvent.LoadType.d.ts new file mode 100644 index 00000000..383d83a5 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.server.ServerLoadEvent.LoadType.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace server { + namespace ServerLoadEvent { + // @ts-ignore + class LoadType extends java.lang.Enum { + // @ts-ignore + public static STARTUP: org.bukkit.event.server.ServerLoadEvent.LoadType; + // @ts-ignore + public static RELOAD: org.bukkit.event.server.ServerLoadEvent.LoadType; + // @ts-ignore + public static values(): org.bukkit.event.server.ServerLoadEvent.LoadType[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.event.server.ServerLoadEvent.LoadType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.server.ServerLoadEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.server.ServerLoadEvent.d.ts new file mode 100644 index 00000000..e4b186de --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.server.ServerLoadEvent.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace server { + // @ts-ignore + class ServerLoadEvent extends org.bukkit.event.server.ServerEvent { + /** + * Creates a {@code ServerLoadEvent} with a given loading type. + */ + // @ts-ignore + constructor(type: org.bukkit.event.server.ServerLoadEvent.LoadType) + /** + * Gets the context in which the server was loaded. + */ + // @ts-ignore + public getType(): org.bukkit.event.server.ServerLoadEvent.LoadType; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.server.ServiceEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.server.ServiceEvent.d.ts new file mode 100644 index 00000000..17649002 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.server.ServiceEvent.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace server { + // @ts-ignore + abstract class ServiceEvent extends org.bukkit.event.server.ServerEvent { + // @ts-ignore + constructor(provider: org.bukkit.plugin.RegisteredServiceProvider) + // @ts-ignore + public getProvider(): org.bukkit.plugin.RegisteredServiceProvider; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.server.ServiceRegisterEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.server.ServiceRegisterEvent.d.ts new file mode 100644 index 00000000..fb997217 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.server.ServiceRegisterEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace server { + // @ts-ignore + class ServiceRegisterEvent extends org.bukkit.event.server.ServiceEvent { + // @ts-ignore + constructor(registeredProvider: org.bukkit.plugin.RegisteredServiceProvider) + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.server.ServiceUnregisterEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.server.ServiceUnregisterEvent.d.ts new file mode 100644 index 00000000..14651b3a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.server.ServiceUnregisterEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace server { + // @ts-ignore + class ServiceUnregisterEvent extends org.bukkit.event.server.ServiceEvent { + // @ts-ignore + constructor(serviceProvider: org.bukkit.plugin.RegisteredServiceProvider) + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.server.TabCompleteEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.server.TabCompleteEvent.d.ts new file mode 100644 index 00000000..7a8c229c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.server.TabCompleteEvent.d.ts @@ -0,0 +1,43 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace server { + // @ts-ignore + class TabCompleteEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(sender: org.bukkit.command.CommandSender, buffer: string, completions: java.util.List) + /** + * Get the sender completing this command. + */ + // @ts-ignore + public getSender(): org.bukkit.command.CommandSender; + /** + * Return the entire buffer which formed the basis of this completion. + */ + // @ts-ignore + public getBuffer(): string; + /** + * The list of completions which will be offered to the sender, in order. + * This list is mutable and reflects what will be offered. + */ + // @ts-ignore + public getCompletions(): java.util.List; + /** + * Set the completions offered, overriding any already set. + */ + // @ts-ignore + public setCompletions(completions: java.util.List): void; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancelled: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleBlockCollisionEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleBlockCollisionEvent.d.ts new file mode 100644 index 00000000..884ac457 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleBlockCollisionEvent.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace vehicle { + // @ts-ignore + class VehicleBlockCollisionEvent extends org.bukkit.event.vehicle.VehicleCollisionEvent { + // @ts-ignore + constructor(vehicle: org.bukkit.entity.Vehicle, block: org.bukkit.block.Block) + /** + * Gets the block the vehicle collided with + */ + // @ts-ignore + public getBlock(): org.bukkit.block.Block; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleCollisionEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleCollisionEvent.d.ts new file mode 100644 index 00000000..5538cf73 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleCollisionEvent.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace vehicle { + // @ts-ignore + abstract class VehicleCollisionEvent extends org.bukkit.event.vehicle.VehicleEvent { + // @ts-ignore + constructor(vehicle: org.bukkit.entity.Vehicle) + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleCreateEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleCreateEvent.d.ts new file mode 100644 index 00000000..7ec65aab --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleCreateEvent.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace vehicle { + // @ts-ignore + class VehicleCreateEvent extends org.bukkit.event.vehicle.VehicleEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(vehicle: org.bukkit.entity.Vehicle) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancelled: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleDamageEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleDamageEvent.d.ts new file mode 100644 index 00000000..b57a3688 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleDamageEvent.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace vehicle { + // @ts-ignore + class VehicleDamageEvent extends org.bukkit.event.vehicle.VehicleEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(vehicle: org.bukkit.entity.Vehicle, attacker: org.bukkit.entity.Entity, damage: number) + /** + * Gets the Entity that is attacking the vehicle + */ + // @ts-ignore + public getAttacker(): org.bukkit.entity.Entity; + /** + * Gets the damage done to the vehicle + */ + // @ts-ignore + public getDamage(): number; + /** + * Sets the damage done to the vehicle + */ + // @ts-ignore + public setDamage(damage: number): void; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleDestroyEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleDestroyEvent.d.ts new file mode 100644 index 00000000..90f64410 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleDestroyEvent.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace vehicle { + // @ts-ignore + class VehicleDestroyEvent extends org.bukkit.event.vehicle.VehicleEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(vehicle: org.bukkit.entity.Vehicle, attacker: org.bukkit.entity.Entity) + /** + * Gets the Entity that has destroyed the vehicle, potentially null + */ + // @ts-ignore + public getAttacker(): org.bukkit.entity.Entity; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleEnterEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleEnterEvent.d.ts new file mode 100644 index 00000000..2aafc676 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleEnterEvent.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace vehicle { + // @ts-ignore + class VehicleEnterEvent extends org.bukkit.event.vehicle.VehicleEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(vehicle: org.bukkit.entity.Vehicle, entered: org.bukkit.entity.Entity) + /** + * Gets the Entity that entered the vehicle. + */ + // @ts-ignore + public getEntered(): org.bukkit.entity.Entity; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleEntityCollisionEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleEntityCollisionEvent.d.ts new file mode 100644 index 00000000..3a59bc87 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleEntityCollisionEvent.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace vehicle { + // @ts-ignore + class VehicleEntityCollisionEvent extends org.bukkit.event.vehicle.VehicleCollisionEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(vehicle: org.bukkit.entity.Vehicle, entity: org.bukkit.entity.Entity) + // @ts-ignore + public getEntity(): org.bukkit.entity.Entity; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public isPickupCancelled(): boolean; + // @ts-ignore + public setPickupCancelled(cancel: boolean): void; + // @ts-ignore + public isCollisionCancelled(): boolean; + // @ts-ignore + public setCollisionCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleEvent.d.ts new file mode 100644 index 00000000..7145fe01 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleEvent.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace vehicle { + // @ts-ignore + abstract class VehicleEvent extends org.bukkit.event.Event { + // @ts-ignore + constructor(vehicle: org.bukkit.entity.Vehicle) + // @ts-ignore + protected vehicle: org.bukkit.entity.Vehicle; + /** + * Get the vehicle. + */ + // @ts-ignore + public getVehicle(): org.bukkit.entity.Vehicle; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleExitEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleExitEvent.d.ts new file mode 100644 index 00000000..dc5dcb50 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleExitEvent.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace vehicle { + // @ts-ignore + class VehicleExitEvent extends org.bukkit.event.vehicle.VehicleEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(vehicle: org.bukkit.entity.Vehicle, exited: org.bukkit.entity.LivingEntity) + /** + * Get the living entity that exited the vehicle. + */ + // @ts-ignore + public getExited(): org.bukkit.entity.LivingEntity; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleMoveEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleMoveEvent.d.ts new file mode 100644 index 00000000..686c0b24 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleMoveEvent.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace vehicle { + // @ts-ignore + class VehicleMoveEvent extends org.bukkit.event.vehicle.VehicleEvent { + // @ts-ignore + constructor(vehicle: org.bukkit.entity.Vehicle, from: org.bukkit.Location, to: org.bukkit.Location) + /** + * Get the previous position. + */ + // @ts-ignore + public getFrom(): org.bukkit.Location; + /** + * Get the next position. + */ + // @ts-ignore + public getTo(): org.bukkit.Location; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleUpdateEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleUpdateEvent.d.ts new file mode 100644 index 00000000..12f1fcb1 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.vehicle.VehicleUpdateEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace vehicle { + // @ts-ignore + class VehicleUpdateEvent extends org.bukkit.event.vehicle.VehicleEvent { + // @ts-ignore + constructor(vehicle: org.bukkit.entity.Vehicle) + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.weather.LightningStrikeEvent.Cause.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.weather.LightningStrikeEvent.Cause.d.ts new file mode 100644 index 00000000..853dc116 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.weather.LightningStrikeEvent.Cause.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace weather { + namespace LightningStrikeEvent { + // @ts-ignore + class Cause extends java.lang.Enum { + // @ts-ignore + public static COMMAND: org.bukkit.event.weather.LightningStrikeEvent.Cause; + // @ts-ignore + public static TRIDENT: org.bukkit.event.weather.LightningStrikeEvent.Cause; + // @ts-ignore + public static TRAP: org.bukkit.event.weather.LightningStrikeEvent.Cause; + // @ts-ignore + public static WEATHER: org.bukkit.event.weather.LightningStrikeEvent.Cause; + // @ts-ignore + public static UNKNOWN: org.bukkit.event.weather.LightningStrikeEvent.Cause; + // @ts-ignore + public static values(): org.bukkit.event.weather.LightningStrikeEvent.Cause[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.event.weather.LightningStrikeEvent.Cause; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.weather.LightningStrikeEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.weather.LightningStrikeEvent.d.ts new file mode 100644 index 00000000..b69ab3fd --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.weather.LightningStrikeEvent.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace weather { + // @ts-ignore + class LightningStrikeEvent extends org.bukkit.event.weather.WeatherEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(world: org.bukkit.World, bolt: org.bukkit.entity.LightningStrike) + // @ts-ignore + constructor(world: org.bukkit.World, bolt: org.bukkit.entity.LightningStrike, cause: org.bukkit.event.weather.LightningStrikeEvent.Cause) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + /** + * Gets the bolt which is striking the earth. + */ + // @ts-ignore + public getLightning(): org.bukkit.entity.LightningStrike; + /** + * Gets the cause of this lightning strike. + */ + // @ts-ignore + public getCause(): org.bukkit.event.weather.LightningStrikeEvent.Cause; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.weather.ThunderChangeEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.weather.ThunderChangeEvent.d.ts new file mode 100644 index 00000000..ea845f70 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.weather.ThunderChangeEvent.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace weather { + // @ts-ignore + class ThunderChangeEvent extends org.bukkit.event.weather.WeatherEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(world: org.bukkit.World, to: boolean) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + /** + * Gets the state of thunder that the world is being set to + */ + // @ts-ignore + public toThunderState(): boolean; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.weather.WeatherChangeEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.weather.WeatherChangeEvent.d.ts new file mode 100644 index 00000000..b26a72d8 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.weather.WeatherChangeEvent.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace weather { + // @ts-ignore + class WeatherChangeEvent extends org.bukkit.event.weather.WeatherEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(world: org.bukkit.World, to: boolean) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + /** + * Gets the state of weather that the world is being set to + */ + // @ts-ignore + public toWeatherState(): boolean; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.weather.WeatherEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.weather.WeatherEvent.d.ts new file mode 100644 index 00000000..dd7f0909 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.weather.WeatherEvent.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace weather { + // @ts-ignore + abstract class WeatherEvent extends org.bukkit.event.Event { + // @ts-ignore + constructor(where: org.bukkit.World) + // @ts-ignore + protected world: org.bukkit.World; + /** + * Returns the World where this event is occurring + */ + // @ts-ignore + public getWorld(): org.bukkit.World; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.world.ChunkEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.world.ChunkEvent.d.ts new file mode 100644 index 00000000..5779292a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.world.ChunkEvent.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace world { + // @ts-ignore + abstract class ChunkEvent extends org.bukkit.event.world.WorldEvent { + // @ts-ignore + constructor(chunk: org.bukkit.Chunk) + // @ts-ignore + protected chunk: org.bukkit.Chunk; + /** + * Gets the chunk being loaded/unloaded + */ + // @ts-ignore + public getChunk(): org.bukkit.Chunk; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.world.ChunkLoadEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.world.ChunkLoadEvent.d.ts new file mode 100644 index 00000000..4b5141d3 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.world.ChunkLoadEvent.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace world { + // @ts-ignore + class ChunkLoadEvent extends org.bukkit.event.world.ChunkEvent { + // @ts-ignore + constructor(chunk: org.bukkit.Chunk, newChunk: boolean) + /** + * Gets if this chunk was newly created or not. + *

+ * Note that if this chunk is new, it will not be populated at this time. + */ + // @ts-ignore + public isNewChunk(): boolean; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.world.ChunkPopulateEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.world.ChunkPopulateEvent.d.ts new file mode 100644 index 00000000..4771be0b --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.world.ChunkPopulateEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace world { + // @ts-ignore + class ChunkPopulateEvent extends org.bukkit.event.world.ChunkEvent { + // @ts-ignore + constructor(chunk: org.bukkit.Chunk) + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.world.ChunkUnloadEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.world.ChunkUnloadEvent.d.ts new file mode 100644 index 00000000..ab26de1e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.world.ChunkUnloadEvent.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace world { + // @ts-ignore + class ChunkUnloadEvent extends org.bukkit.event.world.ChunkEvent { + // @ts-ignore + constructor(chunk: org.bukkit.Chunk) + // @ts-ignore + constructor(chunk: org.bukkit.Chunk, save: boolean) + /** + * Return whether this chunk will be saved to disk. + */ + // @ts-ignore + public isSaveChunk(): boolean; + /** + * Set whether this chunk will be saved to disk. + */ + // @ts-ignore + public setSaveChunk(saveChunk: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.world.PortalCreateEvent.CreateReason.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.world.PortalCreateEvent.CreateReason.d.ts new file mode 100644 index 00000000..fa5b09da --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.world.PortalCreateEvent.CreateReason.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace world { + namespace PortalCreateEvent { + // @ts-ignore + class CreateReason extends java.lang.Enum { + // @ts-ignore + public static FIRE: org.bukkit.event.world.PortalCreateEvent.CreateReason; + // @ts-ignore + public static NETHER_PAIR: org.bukkit.event.world.PortalCreateEvent.CreateReason; + // @ts-ignore + public static END_PLATFORM: org.bukkit.event.world.PortalCreateEvent.CreateReason; + // @ts-ignore + public static values(): org.bukkit.event.world.PortalCreateEvent.CreateReason[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.event.world.PortalCreateEvent.CreateReason; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.world.PortalCreateEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.world.PortalCreateEvent.d.ts new file mode 100644 index 00000000..563fce06 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.world.PortalCreateEvent.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace world { + // @ts-ignore + class PortalCreateEvent extends org.bukkit.event.world.WorldEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(blocks: java.util.List, world: org.bukkit.World, reason: org.bukkit.event.world.PortalCreateEvent.CreateReason) + // @ts-ignore + constructor(blocks: java.util.List, world: org.bukkit.World, entity: org.bukkit.entity.Entity, reason: org.bukkit.event.world.PortalCreateEvent.CreateReason) + /** + * Gets an array list of all the blocks associated with the created portal + */ + // @ts-ignore + public getBlocks(): java.util.List; + /** + * Returns the Entity that triggered this portal creation (if available) + */ + // @ts-ignore + public getEntity(): org.bukkit.entity.Entity; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + /** + * Gets the reason for the portal's creation + */ + // @ts-ignore + public getReason(): org.bukkit.event.world.PortalCreateEvent.CreateReason; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.world.SpawnChangeEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.world.SpawnChangeEvent.d.ts new file mode 100644 index 00000000..47f3d86b --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.world.SpawnChangeEvent.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace world { + // @ts-ignore + class SpawnChangeEvent extends org.bukkit.event.world.WorldEvent { + // @ts-ignore + constructor(world: org.bukkit.World, previousLocation: org.bukkit.Location) + /** + * Gets the previous spawn location + */ + // @ts-ignore + public getPreviousLocation(): org.bukkit.Location; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.world.StructureGrowEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.world.StructureGrowEvent.d.ts new file mode 100644 index 00000000..07ae4643 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.world.StructureGrowEvent.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace world { + // @ts-ignore + class StructureGrowEvent extends org.bukkit.event.world.WorldEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(location: org.bukkit.Location, species: org.bukkit.TreeType, bonemeal: boolean, player: org.bukkit.entity.Player, blocks: java.util.List) + /** + * Gets the location of the structure. + */ + // @ts-ignore + public getLocation(): org.bukkit.Location; + /** + * Gets the species type (birch, normal, pine, red mushroom, brown + * mushroom) + */ + // @ts-ignore + public getSpecies(): org.bukkit.TreeType; + /** + * Checks if structure was grown using bonemeal. + */ + // @ts-ignore + public isFromBonemeal(): boolean; + /** + * Gets the player that created the structure. + */ + // @ts-ignore + public getPlayer(): org.bukkit.entity.Player; + /** + * Gets a list of all blocks associated with the structure. + */ + // @ts-ignore + public getBlocks(): java.util.List; + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.world.WorldEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.world.WorldEvent.d.ts new file mode 100644 index 00000000..a615733d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.world.WorldEvent.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace world { + // @ts-ignore + abstract class WorldEvent extends org.bukkit.event.Event { + // @ts-ignore + constructor(world: org.bukkit.World) + /** + * Gets the world primarily involved with this event + */ + // @ts-ignore + public getWorld(): org.bukkit.World; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.world.WorldInitEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.world.WorldInitEvent.d.ts new file mode 100644 index 00000000..cdef8721 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.world.WorldInitEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace world { + // @ts-ignore + class WorldInitEvent extends org.bukkit.event.world.WorldEvent { + // @ts-ignore + constructor(world: org.bukkit.World) + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.world.WorldLoadEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.world.WorldLoadEvent.d.ts new file mode 100644 index 00000000..ee05e23c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.world.WorldLoadEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace world { + // @ts-ignore + class WorldLoadEvent extends org.bukkit.event.world.WorldEvent { + // @ts-ignore + constructor(world: org.bukkit.World) + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.world.WorldSaveEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.world.WorldSaveEvent.d.ts new file mode 100644 index 00000000..83afa49e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.world.WorldSaveEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace world { + // @ts-ignore + class WorldSaveEvent extends org.bukkit.event.world.WorldEvent { + // @ts-ignore + constructor(world: org.bukkit.World) + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.event.world.WorldUnloadEvent.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.event.world.WorldUnloadEvent.d.ts new file mode 100644 index 00000000..2a2692f0 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.event.world.WorldUnloadEvent.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace event { + namespace world { + // @ts-ignore + class WorldUnloadEvent extends org.bukkit.event.world.WorldEvent implements org.bukkit.event.Cancellable { + // @ts-ignore + constructor(world: org.bukkit.World) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public setCancelled(cancel: boolean): void; + // @ts-ignore + public getHandlers(): org.bukkit.event.HandlerList; + // @ts-ignore + public static getHandlerList(): org.bukkit.event.HandlerList; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.generator.BlockPopulator.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.generator.BlockPopulator.d.ts new file mode 100644 index 00000000..286af54c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.generator.BlockPopulator.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace generator { + // @ts-ignore + abstract class BlockPopulator extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Populates an area of blocks at or around the given chunk. + *

+ * The chunks on each side of the specified chunk must already exist; that + * is, there must be one north, east, south and west of the specified + * chunk. The "corner" chunks may not exist, in which scenario the + * populator should record any changes required for those chunks and + * perform the changes when they are ready. + */ + // @ts-ignore + public abstract populate(world: org.bukkit.World, random: java.util.Random, source: org.bukkit.Chunk): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.generator.ChunkGenerator.BiomeGrid.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.generator.ChunkGenerator.BiomeGrid.d.ts new file mode 100644 index 00000000..7ff78541 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.generator.ChunkGenerator.BiomeGrid.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace generator { + namespace ChunkGenerator { + // @ts-ignore + interface BiomeGrid { + /** + * Get biome at x, z within chunk being generated + */ + // @ts-ignore + getBiome(x: number, z: number): org.bukkit.block.Biome; + /** + * Set biome at x, z within chunk being generated + */ + // @ts-ignore + setBiome(x: number, z: number, bio: org.bukkit.block.Biome): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.generator.ChunkGenerator.ChunkData.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.generator.ChunkGenerator.ChunkData.d.ts new file mode 100644 index 00000000..495152ff --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.generator.ChunkGenerator.ChunkData.d.ts @@ -0,0 +1,81 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace generator { + namespace ChunkGenerator { + // @ts-ignore + interface ChunkData { + /** + * Get the maximum height for the chunk. + * Setting blocks at or above this height will do nothing. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getData(x: number, y: number, z: number): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.generator.ChunkGenerator.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.generator.ChunkGenerator.d.ts new file mode 100644 index 00000000..5772fb70 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.generator.ChunkGenerator.d.ts @@ -0,0 +1,58 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace generator { + // @ts-ignore + abstract class ChunkGenerator extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Shapes the chunk for the given coordinates. + * This method must return a ChunkData. + *

+ * Notes: + *

+ * This method should never attempt to get the Chunk at + * the passed coordinates, as doing so may cause an infinite loop + *

+ * This method should never modify a ChunkData after it has + * been returned. + *

+ * This method must return a ChunkData returned by {@link ChunkGenerator#createChunkData(org.bukkit.World)} + */ + // @ts-ignore + public generateChunkData(world: org.bukkit.World, random: java.util.Random, x: number, z: number, biome: org.bukkit.generator.ChunkGenerator.BiomeGrid): org.bukkit.generator.ChunkGenerator.ChunkData; + /** + * Create a ChunkData for a world. + */ + // @ts-ignore + protected createChunkData(world: org.bukkit.World): org.bukkit.generator.ChunkGenerator.ChunkData; + /** + * Tests if the specified location is valid for a natural spawn position + */ + // @ts-ignore + public canSpawn(world: org.bukkit.World, x: number, z: number): boolean; + /** + * Gets a list of default {@link BlockPopulator}s to apply to a given + * world + */ + // @ts-ignore + public getDefaultPopulators(world: org.bukkit.World): java.util.List; + /** + * Gets a fixed spawn location to use for a given world. + *

+ * A null value is returned if a world should not use a fixed spawn point, + * and will instead attempt to find one randomly. + */ + // @ts-ignore + public getFixedSpawnLocation(world: org.bukkit.World, random: java.util.Random): org.bukkit.Location; + /** + * Gets if this ChunkGenerator is parallel capable. + * See {@link ChunkGenerator} for more information. + */ + // @ts-ignore + public isParallelCapable(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.help.GenericCommandHelpTopic.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.help.GenericCommandHelpTopic.d.ts new file mode 100644 index 00000000..29724066 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.help.GenericCommandHelpTopic.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace help { + // @ts-ignore + class GenericCommandHelpTopic extends org.bukkit.help.HelpTopic { + // @ts-ignore + constructor(command: org.bukkit.command.Command) + // @ts-ignore + protected command: org.bukkit.command.Command; + // @ts-ignore + public canSee(sender: org.bukkit.command.CommandSender): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.help.HelpMap.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.help.HelpMap.d.ts new file mode 100644 index 00000000..19eaefbb --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.help.HelpMap.d.ts @@ -0,0 +1,52 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace help { + // @ts-ignore + interface HelpMap { + /** + * Returns a help topic for a given topic name. + */ + // @ts-ignore + getHelpTopic(topicName: string): org.bukkit.help.HelpTopic; + /** + * Returns a collection of all the registered help topics. + */ + // @ts-ignore + getHelpTopics(): java.util.Collection; + /** + * Adds a topic to the server's help index. + */ + // @ts-ignore + addTopic(topic: org.bukkit.help.HelpTopic): void; + /** + * Clears out the contents of the help index. Normally called during + * server reload. + */ + // @ts-ignore + clear(): void; + /** + * Associates a {@link HelpTopicFactory} object with given command base + * class. Plugins typically call this method during {@code onLoad()}. Once + * registered, the custom HelpTopicFactory will be used to create a custom + * {@link HelpTopic} for all commands deriving from the {@code + * commandClass} base class, or all commands deriving from {@link + * org.bukkit.command.PluginCommand} who's executor derives from {@code + * commandClass} base class. + */ + // @ts-ignore + registerHelpTopicFactory(commandClass: java.lang.Class, 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 + * {@link org.bukkit.command.Command} instead of {@link + * org.bukkit.command.PluginCommand} will need to check this collection in + * their {@link HelpTopicFactory} implementations to ensure they meet the + * server administrator's expectations. + */ + // @ts-ignore + getIgnoredPlugins(): java.util.List; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.help.HelpTopic.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.help.HelpTopic.d.ts new file mode 100644 index 00000000..87cd2f90 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.help.HelpTopic.d.ts @@ -0,0 +1,75 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace help { + // @ts-ignore + abstract class HelpTopic extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + protected name: string; + // @ts-ignore + protected shortText: string; + // @ts-ignore + protected fullText: string; + // @ts-ignore + protected amendedPermission: string; + /** + * Determines if a {@link Player} is allowed to see this help topic. + *

+ * HelpTopic implementations should take server administrator wishes into + * account as set by the {@link HelpTopic#amendCanSee(String)} function. + */ + // @ts-ignore + public abstract canSee(player: org.bukkit.command.CommandSender): boolean; + /** + * Allows the server administrator to override the permission required to + * see a help topic. + *

+ * HelpTopic implementations should take this into account when + * determining topic visibility on the {@link + * HelpTopic#canSee(org.bukkit.command.CommandSender)} function. + */ + // @ts-ignore + public amendCanSee(amendedPermission: string): void; + /** + * Returns the name of this help topic. + */ + // @ts-ignore + public getName(): string; + /** + * Returns a brief description that will be displayed in the topic index. + */ + // @ts-ignore + public getShortText(): string; + /** + * Returns the full description of this help topic that is displayed when + * the user requests this topic's details. + *

+ * The result will be paginated to properly fit the user's client. + */ + // @ts-ignore + public getFullText(forWho: org.bukkit.command.CommandSender): string; + /** + * Allows the server admin (or another plugin) to add or replace the + * contents of a help topic. + *

+ * A null in either parameter will leave that part of the topic unchanged. + * In either amending parameter, the string {@literal } is replaced + * with the existing contents in the help topic. Use this to append or + * prepend additional content into an automatically generated help topic. + */ + // @ts-ignore + public amendTopic(amendedShortText: string, amendedFullText: string): void; + /** + * Developers implementing their own custom HelpTopic implementations can + * use this utility method to ensure their implementations comply with the + * expected behavior of the {@link HelpTopic#amendTopic(String, String)} + * method. + */ + // @ts-ignore + protected applyAmendment(baseText: string, amendment: string): string; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.help.HelpTopicComparator.TopicNameComparator.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.help.HelpTopicComparator.TopicNameComparator.d.ts new file mode 100644 index 00000000..b967090e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.help.HelpTopicComparator.TopicNameComparator.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace help { + namespace HelpTopicComparator { + // @ts-ignore + class TopicNameComparator extends java.lang.Object { + // @ts-ignore + public compare(lhs: string, rhs: string): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.help.HelpTopicComparator.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.help.HelpTopicComparator.d.ts new file mode 100644 index 00000000..4c18bee2 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.help.HelpTopicComparator.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace help { + // @ts-ignore + class HelpTopicComparator extends java.lang.Object { + // @ts-ignore + public static topicNameComparatorInstance(): org.bukkit.help.HelpTopicComparator.TopicNameComparator; + // @ts-ignore + public static helpTopicComparatorInstance(): org.bukkit.help.HelpTopicComparator; + // @ts-ignore + public compare(lhs: org.bukkit.help.HelpTopic, rhs: org.bukkit.help.HelpTopic): number; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.help.HelpTopicFactory.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.help.HelpTopicFactory.d.ts new file mode 100644 index 00000000..ad42a344 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.help.HelpTopicFactory.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace help { + // @ts-ignore + interface HelpTopicFactory { + /** + * This method accepts a command deriving from a custom command base class + * and constructs a custom HelpTopic for it. + */ + // @ts-ignore + createTopic(command: org.bukkit.command.Command): org.bukkit.help.HelpTopic; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.help.IndexHelpTopic.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.help.IndexHelpTopic.d.ts new file mode 100644 index 00000000..b66c44e8 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.help.IndexHelpTopic.d.ts @@ -0,0 +1,43 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace help { + // @ts-ignore + class IndexHelpTopic extends org.bukkit.help.HelpTopic { + // @ts-ignore + constructor(name: string, shortText: string, permission: string, topics: java.util.Collection) + // @ts-ignore + constructor(name: string, shortText: string, permission: string, topics: java.util.Collection, preamble: string) + // @ts-ignore + protected permission: string; + // @ts-ignore + protected preamble: string; + // @ts-ignore + protected allTopics: java.util.Collection; + /** + * Sets the contents of the internal allTopics collection. + */ + // @ts-ignore + protected setTopicsCollection(topics: java.util.Collection): void; + // @ts-ignore + public canSee(sender: org.bukkit.command.CommandSender): boolean; + // @ts-ignore + public amendCanSee(amendedPermission: string): void; + // @ts-ignore + public getFullText(sender: org.bukkit.command.CommandSender): string; + /** + * Builds the topic preamble. Override this method to change how the index + * preamble looks. + */ + // @ts-ignore + protected buildPreamble(sender: org.bukkit.command.CommandSender): string; + /** + * Builds individual lines in the index topic. Override this method to + * change how index lines are rendered. + */ + // @ts-ignore + protected buildIndexLine(sender: org.bukkit.command.CommandSender, topic: org.bukkit.help.HelpTopic): string; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.AbstractHorseInventory.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.AbstractHorseInventory.d.ts new file mode 100644 index 00000000..3a9fe7b2 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.AbstractHorseInventory.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + interface AbstractHorseInventory extends org.bukkit.inventory.Inventory { + /** + * Gets the item in the horse's saddle slot. + */ + // @ts-ignore + getSaddle(): org.bukkit.inventory.ItemStack; + /** + * Sets the item in the horse's saddle slot. + */ + // @ts-ignore + setSaddle(stack: org.bukkit.inventory.ItemStack): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.AnvilInventory.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.AnvilInventory.d.ts new file mode 100644 index 00000000..8b94becd --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.AnvilInventory.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @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. + */ + // @ts-ignore + getRenameText(): string; + /** + * Get the experience cost (in levels) to complete the current repair. + */ + // @ts-ignore + getRepairCost(): number; + /** + * Set the experience cost (in levels) to complete the current repair. + */ + // @ts-ignore + 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 + * value, the repair result will be air to due being "too expensive". + *

+ * By default, this level is set to 40. Players in creative mode ignore the + * maximum repair cost. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + setMaximumRepairCost(levels: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.BeaconInventory.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.BeaconInventory.d.ts new file mode 100644 index 00000000..b29adea2 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.BeaconInventory.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + interface BeaconInventory extends org.bukkit.inventory.Inventory { + /** + * Set the item powering the beacon. + */ + // @ts-ignore + setItem(item: org.bukkit.inventory.ItemStack): void; + /** + * Get the item powering the beacon. + */ + // @ts-ignore + getItem(): org.bukkit.inventory.ItemStack; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.BlastingRecipe.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.BlastingRecipe.d.ts new file mode 100644 index 00000000..5f15e42d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.BlastingRecipe.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + class BlastingRecipe extends org.bukkit.inventory.CookingRecipe { + // @ts-ignore + constructor(key: org.bukkit.NamespacedKey, result: org.bukkit.inventory.ItemStack, source: org.bukkit.Material, experience: number, cookingTime: number) + // @ts-ignore + constructor(key: org.bukkit.NamespacedKey, result: org.bukkit.inventory.ItemStack, input: org.bukkit.inventory.RecipeChoice, experience: number, cookingTime: number) + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.BlockInventoryHolder.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.BlockInventoryHolder.d.ts new file mode 100644 index 00000000..f7b60373 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.BlockInventoryHolder.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + interface BlockInventoryHolder extends org.bukkit.inventory.InventoryHolder { + /** + * Gets the block associated with this holder. + */ + // @ts-ignore + getBlock(): org.bukkit.block.Block; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.BrewerInventory.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.BrewerInventory.d.ts new file mode 100644 index 00000000..46481d0e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.BrewerInventory.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + interface BrewerInventory extends org.bukkit.inventory.Inventory { + /** + * Get the current ingredient for brewing. + */ + // @ts-ignore + getIngredient(): org.bukkit.inventory.ItemStack; + /** + * Set the current ingredient for brewing. + */ + // @ts-ignore + setIngredient(ingredient: org.bukkit.inventory.ItemStack): void; + /** + * Get the current fuel for brewing. + */ + // @ts-ignore + getFuel(): org.bukkit.inventory.ItemStack; + /** + * Set the current fuel for brewing. Generally only + * {@link Material#BLAZE_POWDER} will be of use. + */ + // @ts-ignore + setFuel(fuel: org.bukkit.inventory.ItemStack): void; + // @ts-ignore + getHolder(): org.bukkit.block.BrewingStand; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.CampfireRecipe.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.CampfireRecipe.d.ts new file mode 100644 index 00000000..fa85c967 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.CampfireRecipe.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + class CampfireRecipe extends org.bukkit.inventory.CookingRecipe { + // @ts-ignore + constructor(key: org.bukkit.NamespacedKey, result: org.bukkit.inventory.ItemStack, source: org.bukkit.Material, experience: number, cookingTime: number) + // @ts-ignore + constructor(key: org.bukkit.NamespacedKey, result: org.bukkit.inventory.ItemStack, input: org.bukkit.inventory.RecipeChoice, experience: number, cookingTime: number) + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.CartographyInventory.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.CartographyInventory.d.ts new file mode 100644 index 00000000..44d5011e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.CartographyInventory.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + interface CartographyInventory extends org.bukkit.inventory.Inventory { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.CookingRecipe.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.CookingRecipe.d.ts new file mode 100644 index 00000000..a7c58529 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.CookingRecipe.d.ts @@ -0,0 +1,79 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + abstract class CookingRecipe extends java.lang.Object implements org.bukkit.inventory.Recipe, org.bukkit.Keyed { + /** + * Create a cooking recipe to craft the specified ItemStack. + */ + // @ts-ignore + constructor(key: org.bukkit.NamespacedKey, result: org.bukkit.inventory.ItemStack, source: org.bukkit.Material, experience: number, cookingTime: number) + /** + * Create a cooking recipe to craft the specified ItemStack. + */ + // @ts-ignore + constructor(key: org.bukkit.NamespacedKey, result: org.bukkit.inventory.ItemStack, input: org.bukkit.inventory.RecipeChoice, experience: number, cookingTime: number) + /** + * Sets the input of this cooking recipe. + */ + // @ts-ignore + public setInput(input: org.bukkit.Material): org.bukkit.inventory.CookingRecipe; + /** + * Get the input material. + */ + // @ts-ignore + public getInput(): org.bukkit.inventory.ItemStack; + /** + * Sets the input of this cooking recipe. + */ + // @ts-ignore + public setInputChoice(input: org.bukkit.inventory.RecipeChoice): org.bukkit.inventory.CookingRecipe; + /** + * Get the input choice. + */ + // @ts-ignore + public getInputChoice(): org.bukkit.inventory.RecipeChoice; + /** + * Get the result of this recipe. + */ + // @ts-ignore + public getResult(): org.bukkit.inventory.ItemStack; + /** + * Sets the experience given by this recipe. + */ + // @ts-ignore + public setExperience(experience: number): void; + /** + * Get the experience given by this recipe. + */ + // @ts-ignore + public getExperience(): number; + /** + * Set the cooking time for this recipe in ticks. + */ + // @ts-ignore + public setCookingTime(cookingTime: number): void; + /** + * Get the cooking time for this recipe in ticks. + */ + // @ts-ignore + public getCookingTime(): number; + // @ts-ignore + public getKey(): org.bukkit.NamespacedKey; + /** + * Get the group of this recipe. Recipes with the same group may be grouped + * together when displayed in the client. + */ + // @ts-ignore + public getGroup(): string; + /** + * Set the group of this recipe. Recipes with the same group may be grouped + * together when displayed in the client. + */ + // @ts-ignore + public setGroup(group: string): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.CraftingInventory.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.CraftingInventory.d.ts new file mode 100644 index 00000000..7618c35b --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.CraftingInventory.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + interface CraftingInventory extends org.bukkit.inventory.Inventory { + /** + * Check what item is in the result slot of this crafting inventory. + */ + // @ts-ignore + getResult(): org.bukkit.inventory.ItemStack; + /** + * Get the contents of the crafting matrix. + */ + // @ts-ignore + getMatrix(): org.bukkit.inventory.ItemStack[]; + /** + * Set the item in the result slot of the crafting inventory. + */ + // @ts-ignore + setResult(newResult: org.bukkit.inventory.ItemStack): void; + /** + * Replace the contents of the crafting matrix + */ + // @ts-ignore + setMatrix(contents: org.bukkit.inventory.ItemStack): void; + /** + * Get the current recipe formed on the crafting inventory, if any. + */ + // @ts-ignore + getRecipe(): org.bukkit.inventory.Recipe; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.DoubleChestInventory.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.DoubleChestInventory.d.ts new file mode 100644 index 00000000..a1c99436 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.DoubleChestInventory.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + interface DoubleChestInventory extends org.bukkit.inventory.Inventory { + /** + * Get the left half of this double chest. + */ + // @ts-ignore + getLeftSide(): org.bukkit.inventory.Inventory; + /** + * Get the right side of this double chest. + */ + // @ts-ignore + getRightSide(): org.bukkit.inventory.Inventory; + // @ts-ignore + getHolder(): org.bukkit.block.DoubleChest; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.EnchantingInventory.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.EnchantingInventory.d.ts new file mode 100644 index 00000000..dfe1938a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.EnchantingInventory.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + interface EnchantingInventory extends org.bukkit.inventory.Inventory { + /** + * Set the item being enchanted. + */ + // @ts-ignore + setItem(item: org.bukkit.inventory.ItemStack): void; + /** + * Get the item being enchanted. + */ + // @ts-ignore + getItem(): org.bukkit.inventory.ItemStack; + /** + * Set the secondary item being used for the enchant. + */ + // @ts-ignore + setSecondary(item: org.bukkit.inventory.ItemStack): void; + /** + * Get the secondary item being used for the enchant. + */ + // @ts-ignore + getSecondary(): org.bukkit.inventory.ItemStack; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.EntityEquipment.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.EntityEquipment.d.ts new file mode 100644 index 00000000..73c4ff4a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.EntityEquipment.d.ts @@ -0,0 +1,222 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + interface EntityEquipment { + /** + * Gets a copy of the item the entity is currently holding + * in their main hand. + */ + // @ts-ignore + getItemInMainHand(): org.bukkit.inventory.ItemStack; + /** + * Sets the item the entity is holding in their main hand. + */ + // @ts-ignore + setItemInMainHand(item: org.bukkit.inventory.ItemStack): void; + /** + * Gets a copy of the item the entity is currently holding + * in their off hand. + */ + // @ts-ignore + getItemInOffHand(): org.bukkit.inventory.ItemStack; + /** + * Sets the item the entity is holding in their off hand. + */ + // @ts-ignore + setItemInOffHand(item: org.bukkit.inventory.ItemStack): void; + /** + * Gets a copy of the item the entity is currently holding + */ + // @ts-ignore + getItemInHand(): org.bukkit.inventory.ItemStack; + /** + * Sets the item the entity is holding + */ + // @ts-ignore + setItemInHand(stack: org.bukkit.inventory.ItemStack): void; + /** + * Gets a copy of the helmet currently being worn by the entity + */ + // @ts-ignore + getHelmet(): org.bukkit.inventory.ItemStack; + /** + * Sets the helmet worn by the entity + */ + // @ts-ignore + setHelmet(helmet: org.bukkit.inventory.ItemStack): void; + /** + * Gets a copy of the chest plate currently being worn by the entity + */ + // @ts-ignore + getChestplate(): org.bukkit.inventory.ItemStack; + /** + * Sets the chest plate worn by the entity + */ + // @ts-ignore + setChestplate(chestplate: org.bukkit.inventory.ItemStack): void; + /** + * Gets a copy of the leggings currently being worn by the entity + */ + // @ts-ignore + getLeggings(): org.bukkit.inventory.ItemStack; + /** + * Sets the leggings worn by the entity + */ + // @ts-ignore + setLeggings(leggings: org.bukkit.inventory.ItemStack): void; + /** + * Gets a copy of the boots currently being worn by the entity + */ + // @ts-ignore + getBoots(): org.bukkit.inventory.ItemStack; + /** + * Sets the boots worn by the entity + */ + // @ts-ignore + setBoots(boots: org.bukkit.inventory.ItemStack): void; + /** + * Gets a copy of all worn armor + */ + // @ts-ignore + getArmorContents(): org.bukkit.inventory.ItemStack[]; + /** + * Sets the entities armor to the provided array of ItemStacks + */ + // @ts-ignore + setArmorContents(items: org.bukkit.inventory.ItemStack): void; + /** + * Clears the entity of all armor and held items + */ + // @ts-ignore + clear(): void; + // @ts-ignore + getItemInHandDropChance(): number; + // @ts-ignore + setItemInHandDropChance(chance: number): void; + /** + * Gets the chance of the main hand item being dropped upon this creature's + * death. + *

    + *
  • A drop chance of 0.0F will never drop + *
  • A drop chance of 1.0F will always drop + *
+ */ + // @ts-ignore + getItemInMainHandDropChance(): number; + /** + * Sets the chance of the item this creature is currently holding in their + * main hand being dropped upon this creature's death. + *
    + *
  • A drop chance of 0.0F will never drop + *
  • A drop chance of 1.0F will always drop + *
+ */ + // @ts-ignore + setItemInMainHandDropChance(chance: number): void; + /** + * Gets the chance of the off hand item being dropped upon this creature's + * death. + *
    + *
  • A drop chance of 0.0F will never drop + *
  • A drop chance of 1.0F will always drop + *
+ */ + // @ts-ignore + getItemInOffHandDropChance(): number; + /** + * Sets the chance of the off hand item being dropped upon this creature's + * death. + *
    + *
  • A drop chance of 0.0F will never drop + *
  • A drop chance of 1.0F will always drop + *
+ */ + // @ts-ignore + setItemInOffHandDropChance(chance: number): void; + /** + * Gets the chance of the helmet being dropped upon this creature's death. + *
    + *
  • A drop chance of 0.0F will never drop + *
  • A drop chance of 1.0F will always drop + *
+ */ + // @ts-ignore + getHelmetDropChance(): number; + /** + * Sets the chance of the helmet being dropped upon this creature's death. + *
    + *
  • A drop chance of 0.0F will never drop + *
  • A drop chance of 1.0F will always drop + *
+ */ + // @ts-ignore + setHelmetDropChance(chance: number): void; + /** + * Gets the chance of the chest plate being dropped upon this creature's + * death. + *
    + *
  • A drop chance of 0.0F will never drop + *
  • A drop chance of 1.0F will always drop + *
+ */ + // @ts-ignore + getChestplateDropChance(): number; + /** + * Sets the chance of the chest plate being dropped upon this creature's + * death. + *
    + *
  • A drop chance of 0.0F will never drop + *
  • A drop chance of 1.0F will always drop + *
+ */ + // @ts-ignore + setChestplateDropChance(chance: number): void; + /** + * Gets the chance of the leggings being dropped upon this creature's + * death. + *
    + *
  • A drop chance of 0.0F will never drop + *
  • A drop chance of 1.0F will always drop + *
+ */ + // @ts-ignore + getLeggingsDropChance(): number; + /** + * Sets the chance of the leggings being dropped upon this creature's + * death. + *
    + *
  • A drop chance of 0.0F will never drop + *
  • A drop chance of 1.0F will always drop + *
+ */ + // @ts-ignore + setLeggingsDropChance(chance: number): void; + /** + * Gets the chance of the boots being dropped upon this creature's death. + *
    + *
  • A drop chance of 0.0F will never drop + *
  • A drop chance of 1.0F will always drop + *
+ */ + // @ts-ignore + getBootsDropChance(): number; + /** + * Sets the chance of the boots being dropped upon this creature's death. + *
    + *
  • A drop chance of 0.0F will never drop + *
  • A drop chance of 1.0F will always drop + *
+ */ + // @ts-ignore + setBootsDropChance(chance: number): void; + /** + * Get the entity this EntityEquipment belongs to + */ + // @ts-ignore + getHolder(): org.bukkit.entity.Entity; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.EquipmentSlot.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.EquipmentSlot.d.ts new file mode 100644 index 00000000..7dd2cbd3 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.EquipmentSlot.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + class EquipmentSlot extends java.lang.Enum { + // @ts-ignore + public static HAND: org.bukkit.inventory.EquipmentSlot; + // @ts-ignore + public static OFF_HAND: org.bukkit.inventory.EquipmentSlot; + // @ts-ignore + public static FEET: org.bukkit.inventory.EquipmentSlot; + // @ts-ignore + public static LEGS: org.bukkit.inventory.EquipmentSlot; + // @ts-ignore + public static CHEST: org.bukkit.inventory.EquipmentSlot; + // @ts-ignore + public static HEAD: org.bukkit.inventory.EquipmentSlot; + // @ts-ignore + public static values(): org.bukkit.inventory.EquipmentSlot[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.inventory.EquipmentSlot; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.FurnaceInventory.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.FurnaceInventory.d.ts new file mode 100644 index 00000000..ce2ea795 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.FurnaceInventory.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + interface FurnaceInventory extends org.bukkit.inventory.Inventory { + /** + * Get the current item in the result slot. + */ + // @ts-ignore + getResult(): org.bukkit.inventory.ItemStack; + /** + * Get the current fuel. + */ + // @ts-ignore + getFuel(): org.bukkit.inventory.ItemStack; + /** + * Get the item currently smelting. + */ + // @ts-ignore + getSmelting(): org.bukkit.inventory.ItemStack; + /** + * Set the current fuel. + */ + // @ts-ignore + setFuel(stack: org.bukkit.inventory.ItemStack): void; + /** + * Set the current item in the result slot. + */ + // @ts-ignore + setResult(stack: org.bukkit.inventory.ItemStack): void; + /** + * Set the item currently smelting. + */ + // @ts-ignore + setSmelting(stack: org.bukkit.inventory.ItemStack): void; + // @ts-ignore + getHolder(): org.bukkit.block.Furnace; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.FurnaceRecipe.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.FurnaceRecipe.d.ts new file mode 100644 index 00000000..5713a8a5 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.FurnaceRecipe.d.ts @@ -0,0 +1,44 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + class FurnaceRecipe extends org.bukkit.inventory.CookingRecipe { + // @ts-ignore + constructor(result: org.bukkit.inventory.ItemStack, source: org.bukkit.Material) + // @ts-ignore + constructor(result: org.bukkit.inventory.ItemStack, source: org.bukkit.material.MaterialData) + // @ts-ignore + constructor(result: org.bukkit.inventory.ItemStack, source: org.bukkit.material.MaterialData, experience: number) + // @ts-ignore + constructor(result: org.bukkit.inventory.ItemStack, source: org.bukkit.Material, data: number) + /** + * Create a furnace recipe to craft the specified ItemStack. + */ + // @ts-ignore + constructor(key: org.bukkit.NamespacedKey, result: org.bukkit.inventory.ItemStack, source: org.bukkit.Material, experience: number, cookingTime: number) + // @ts-ignore + constructor(key: org.bukkit.NamespacedKey, result: org.bukkit.inventory.ItemStack, source: org.bukkit.Material, data: number, experience: number, cookingTime: number) + /** + * Create a furnace recipe to craft the specified ItemStack. + */ + // @ts-ignore + constructor(key: org.bukkit.NamespacedKey, result: org.bukkit.inventory.ItemStack, input: org.bukkit.inventory.RecipeChoice, experience: number, cookingTime: number) + /** + * Sets the input of this furnace recipe. + */ + // @ts-ignore + public setInput(input: org.bukkit.material.MaterialData): org.bukkit.inventory.FurnaceRecipe; + // @ts-ignore + public setInput(input: org.bukkit.Material): org.bukkit.inventory.FurnaceRecipe; + /** + * Sets the input of this furnace recipe. + */ + // @ts-ignore + public setInput(input: org.bukkit.Material, data: number): org.bukkit.inventory.FurnaceRecipe; + // @ts-ignore + public setInputChoice(input: org.bukkit.inventory.RecipeChoice): org.bukkit.inventory.FurnaceRecipe; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.GrindstoneInventory.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.GrindstoneInventory.d.ts new file mode 100644 index 00000000..eeb66c05 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.GrindstoneInventory.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + interface GrindstoneInventory extends org.bukkit.inventory.Inventory { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.HorseInventory.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.HorseInventory.d.ts new file mode 100644 index 00000000..3382d58a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.HorseInventory.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + interface HorseInventory extends org.bukkit.inventory.AbstractHorseInventory { + /** + * Gets the item in the horse's armor slot. + */ + // @ts-ignore + getArmor(): org.bukkit.inventory.ItemStack; + /** + * Sets the item in the horse's armor slot. + */ + // @ts-ignore + setArmor(stack: org.bukkit.inventory.ItemStack): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.Inventory.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.Inventory.d.ts new file mode 100644 index 00000000..9468e019 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.Inventory.d.ts @@ -0,0 +1,247 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + interface Inventory { + /** + * Returns the size of the inventory + */ + // @ts-ignore + getSize(): number; + /** + * Returns the maximum stack size for an ItemStack in this inventory. + */ + // @ts-ignore + getMaxStackSize(): number; + /** + * This method allows you to change the maximum stack size for an + * inventory. + *

+ * Caveats: + *

    + *
  • Not all inventories respect this value. + *
  • Stacks larger than 127 may be clipped when the world is saved. + *
  • This value is not guaranteed to be preserved; be sure to set it + * before every time you want to set a slot over the max stack size. + *
  • Stacks larger than the default max size for this type of inventory + * may not display correctly in the client. + *
+ */ + // @ts-ignore + setMaxStackSize(size: number): void; + /** + * Returns the ItemStack found in the slot at the given index + */ + // @ts-ignore + getItem(index: number): org.bukkit.inventory.ItemStack; + /** + * Stores the ItemStack at the given index of the inventory. + */ + // @ts-ignore + 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. + *

+ * The returned HashMap contains what it couldn't store, where the key is + * the index of the parameter, and the value is the ItemStack at that + * index of the varargs parameter. If all items are stored, it will return + * an empty HashMap. + *

+ * If you pass in ItemStacks which exceed the maximum stack size for the + * Material, first they will be added to partial stacks where + * Material.getMaxStackSize() is not exceeded, up to + * Material.getMaxStackSize(). When there are no partial stacks left + * stacks will be split on Inventory.getMaxStackSize() allowing you to + * exceed the maximum stack size for that material. + *

+ * It is known that in some implementations this method will also set + * the inputted argument amount to the number of that item not placed in + * slots. + */ + // @ts-ignore + addItem(items: org.bukkit.inventory.ItemStack): java.util.HashMap; + /** + * Removes the given ItemStacks from the inventory. + *

+ * It will try to remove 'as much as possible' from the types and amounts + * you give as arguments. + *

+ * The returned HashMap contains what it couldn't remove, where the key is + * the index of the parameter, and the value is the ItemStack at that + * index of the varargs parameter. If all the given ItemStacks are + * removed, it will return an empty HashMap. + *

+ * It is known that in some implementations this method will also set the + * inputted argument amount to the number of that item not removed from + * slots. + */ + // @ts-ignore + removeItem(items: org.bukkit.inventory.ItemStack): java.util.HashMap; + /** + * Returns all ItemStacks from the inventory + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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 + * the entire inventory, but in some cases it may exclude armor or result + * slots. + *
+ * It is these contents which will be used for add / contains / remove + * methods which look for a specific stack. + */ + // @ts-ignore + getStorageContents(): org.bukkit.inventory.ItemStack[]; + /** + * Put the given ItemStacks into the storage slots + */ + // @ts-ignore + setStorageContents(items: org.bukkit.inventory.ItemStack): void; + /** + * Checks if the inventory contains any ItemStacks with the given + * material. + */ + // @ts-ignore + contains(material: org.bukkit.Material): boolean; + /** + * Checks if the inventory contains any ItemStacks matching the given + * ItemStack. + *

+ * This will only return true if both the type and the amount of the stack + * match. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + contains(material: org.bukkit.Material, amount: number): boolean; + /** + * Checks if the inventory contains at least the minimum amount specified + * of exactly matching ItemStacks. + *

+ * An ItemStack only counts if both the type and the amount of the stack + * match. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + containsAtLeast(item: org.bukkit.inventory.ItemStack, amount: number): boolean; + /** + * Returns a HashMap with all slots and ItemStacks in the inventory with + * the given Material. + *

+ * The HashMap contains entries where, the key is the slot index, and the + * value is the ItemStack in that slot. If no matching ItemStack with the + * given Material is found, an empty map is returned. + */ + // @ts-ignore + all(material: org.bukkit.Material): java.util.HashMap; + /** + * Finds all slots in the inventory containing any ItemStacks with the + * given ItemStack. This will only match slots if both the type and the + * amount of the stack match + *

+ * The HashMap contains entries where, the key is the slot index, and the + * value is the ItemStack in that slot. If no matching ItemStack with the + * given Material is found, an empty map is returned. + */ + // @ts-ignore + all(item: org.bukkit.inventory.ItemStack): java.util.HashMap; + /** + * Finds the first slot in the inventory containing an ItemStack with the + * given material + */ + // @ts-ignore + 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 + */ + // @ts-ignore + first(item: org.bukkit.inventory.ItemStack): number; + /** + * Returns the first empty Slot. + */ + // @ts-ignore + firstEmpty(): number; + /** + * Removes all stacks in the inventory matching the given material. + */ + // @ts-ignore + 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 + */ + // @ts-ignore + remove(item: org.bukkit.inventory.ItemStack): void; + /** + * Clears out a particular slot in the index. + */ + // @ts-ignore + clear(index: number): void; + /** + * Clears out the whole Inventory. + */ + // @ts-ignore + 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 + * screen even when said inventory is not open. They will normally be + * considered to be viewing their inventory even when they have a + * different inventory screen open, but it's possible for customized + * inventory screens to exclude the viewer's inventory, so this should + * never be assumed to be non-empty. + */ + // @ts-ignore + getViewers(): java.util.List; + /** + * Returns what type of inventory this is. + */ + // @ts-ignore + getType(): org.bukkit.event.inventory.InventoryType; + /** + * Gets the block or entity belonging to the open inventory + */ + // @ts-ignore + getHolder(): org.bukkit.inventory.InventoryHolder; + // @ts-ignore + iterator(): java.util.ListIterator; + /** + * 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). + */ + // @ts-ignore + iterator(index: number): java.util.ListIterator; + /** + * 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. + */ + // @ts-ignore + getLocation(): org.bukkit.Location; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.InventoryHolder.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.InventoryHolder.d.ts new file mode 100644 index 00000000..abc2e07d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.InventoryHolder.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + interface InventoryHolder { + /** + * Get the object's inventory. + */ + // @ts-ignore + getInventory(): org.bukkit.inventory.Inventory; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.InventoryView.Property.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.InventoryView.Property.d.ts new file mode 100644 index 00000000..153095c7 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.InventoryView.Property.d.ts @@ -0,0 +1,60 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + namespace InventoryView { + // @ts-ignore + class Property extends java.lang.Enum { + // @ts-ignore + public static BREW_TIME: org.bukkit.inventory.InventoryView.Property; + // @ts-ignore + public static BURN_TIME: org.bukkit.inventory.InventoryView.Property; + // @ts-ignore + public static TICKS_FOR_CURRENT_FUEL: org.bukkit.inventory.InventoryView.Property; + // @ts-ignore + public static COOK_TIME: org.bukkit.inventory.InventoryView.Property; + // @ts-ignore + public static TICKS_FOR_CURRENT_SMELTING: org.bukkit.inventory.InventoryView.Property; + // @ts-ignore + public static ENCHANT_BUTTON1: org.bukkit.inventory.InventoryView.Property; + // @ts-ignore + public static ENCHANT_BUTTON2: org.bukkit.inventory.InventoryView.Property; + // @ts-ignore + public static ENCHANT_BUTTON3: org.bukkit.inventory.InventoryView.Property; + // @ts-ignore + public static ENCHANT_XP_SEED: org.bukkit.inventory.InventoryView.Property; + // @ts-ignore + public static ENCHANT_ID1: org.bukkit.inventory.InventoryView.Property; + // @ts-ignore + public static ENCHANT_ID2: org.bukkit.inventory.InventoryView.Property; + // @ts-ignore + public static ENCHANT_ID3: org.bukkit.inventory.InventoryView.Property; + // @ts-ignore + public static ENCHANT_LEVEL1: org.bukkit.inventory.InventoryView.Property; + // @ts-ignore + public static ENCHANT_LEVEL2: org.bukkit.inventory.InventoryView.Property; + // @ts-ignore + public static ENCHANT_LEVEL3: org.bukkit.inventory.InventoryView.Property; + // @ts-ignore + public static LEVELS: org.bukkit.inventory.InventoryView.Property; + // @ts-ignore + public static PRIMARY_EFFECT: org.bukkit.inventory.InventoryView.Property; + // @ts-ignore + public static SECONDARY_EFFECT: org.bukkit.inventory.InventoryView.Property; + // @ts-ignore + public static REPAIR_COST: org.bukkit.inventory.InventoryView.Property; + // @ts-ignore + public static BOOK_PAGE: org.bukkit.inventory.InventoryView.Property; + // @ts-ignore + public static values(): org.bukkit.inventory.InventoryView.Property[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.inventory.InventoryView.Property; + // @ts-ignore + public getType(): org.bukkit.event.inventory.InventoryType; + // @ts-ignore + public getId(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.InventoryView.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.InventoryView.d.ts new file mode 100644 index 00000000..ad61b5c0 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.InventoryView.d.ts @@ -0,0 +1,112 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + abstract class InventoryView extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static OUTSIDE: number; + /** + * Get the upper inventory involved in this transaction. + */ + // @ts-ignore + public abstract getTopInventory(): org.bukkit.inventory.Inventory; + /** + * Get the lower inventory involved in this transaction. + */ + // @ts-ignore + public abstract getBottomInventory(): org.bukkit.inventory.Inventory; + /** + * Get the player viewing. + */ + // @ts-ignore + public abstract getPlayer(): org.bukkit.entity.HumanEntity; + /** + * Determine the type of inventory involved in the transaction. This + * indicates the window style being shown. It will never return PLAYER, + * since that is common to all windows. + */ + // @ts-ignore + public abstract getType(): org.bukkit.event.inventory.InventoryType; + /** + * Sets one item in this inventory view by its raw slot ID. + *

+ * Note: If slot ID -999 is chosen, it may be expected that the item is + * dropped on the ground. This is not required behaviour, however. + */ + // @ts-ignore + public setItem(slot: number, item: org.bukkit.inventory.ItemStack): void; + /** + * Gets one item in this inventory view by its raw slot ID. + */ + // @ts-ignore + public getItem(slot: number): org.bukkit.inventory.ItemStack; + /** + * Sets the item on the cursor of one of the viewing players. + */ + // @ts-ignore + public setCursor(item: org.bukkit.inventory.ItemStack): void; + /** + * Get the item on the cursor of one of the viewing players. + */ + // @ts-ignore + public getCursor(): org.bukkit.inventory.ItemStack; + /** + * Gets the inventory corresponding to the given raw slot ID. + * If the slot ID is {@link #OUTSIDE} null will be returned, otherwise + * behaviour for illegal and negative slot IDs is undefined. + * May be used with {@link #convertSlot(int)} to directly index an + * underlying inventory. + */ + // @ts-ignore + public getInventory(rawSlot: number): org.bukkit.inventory.Inventory; + /** + * Converts a raw slot ID into its local slot ID into whichever of the two + * inventories the slot points to. + *

+ * If the raw slot refers to the upper inventory, it will be returned + * unchanged and thus be suitable for getTopInventory().getItem(); if it + * refers to the lower inventory, the output will differ from the input + * and be suitable for getBottomInventory().getItem(). + */ + // @ts-ignore + public convertSlot(rawSlot: number): number; + /** + * Determine the type of the slot by its raw slot ID. + *

+ * If the type of the slot is unknown, then + * {@link InventoryType.SlotType#CONTAINER} will be returned. + */ + // @ts-ignore + public getSlotType(slot: number): org.bukkit.event.inventory.InventoryType.SlotType; + /** + * Closes the inventory view. + */ + // @ts-ignore + public close(): void; + /** + * Check the total number of slots in this view, combining the upper and + * lower inventories. + *

+ * Note though that it's possible for this to be greater than the sum of + * the two inventories if for example some slots are not being used. + */ + // @ts-ignore + public countSlots(): number; + /** + * Sets an extra property of this inventory if supported by that + * inventory, for example the state of a progress bar. + */ + // @ts-ignore + public setProperty(prop: org.bukkit.inventory.InventoryView.Property, value: number): boolean; + /** + * Get the title of this inventory window. + */ + // @ts-ignore + public abstract getTitle(): string; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.ItemFactory.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.ItemFactory.d.ts new file mode 100644 index 00000000..d67c93e7 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.ItemFactory.d.ts @@ -0,0 +1,79 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + interface ItemFactory { + /** + * This creates a new item meta for the material. + */ + // @ts-ignore + 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. + *

+ * A {@link SkullMeta} would not be valid for a sword, but a normal {@link + * ItemMeta} from an enchanted dirt block would. + */ + // @ts-ignore + 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. + *

+ * A {@link SkullMeta} would not be valid for a sword, but a normal {@link + * ItemMeta} from an enchanted dirt block would. + */ + // @ts-ignore + isApplicable(meta: org.bukkit.inventory.meta.ItemMeta, material: org.bukkit.Material): boolean; + /** + * This method is used to compare two item meta data objects. + */ + // @ts-ignore + equals(meta1: org.bukkit.inventory.meta.ItemMeta, meta2: org.bukkit.inventory.meta.ItemMeta): boolean; + /** + * Returns an appropriate item meta for the specified stack. + *

+ * The item meta returned will always be a valid meta for a given + * ItemStack of the specified material. It may be a more or less specific + * meta, and could also be the same meta or meta type as the parameter. + * The item meta returned will also always be the most appropriate meta. + *

+ * Example, if a {@link SkullMeta} is being applied to a book, this method + * would return a {@link BookMeta} containing all information in the + * specified meta that is applicable to an {@link ItemMeta}, the highest + * common interface. + */ + // @ts-ignore + 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. + *

+ * The item meta returned will always be a valid meta for a given + * ItemStack of the specified material. It may be a more or less specific + * meta, and could also be the same meta or meta type as the parameter. + * The item meta returned will also always be the most appropriate meta. + *

+ * Example, if a {@link SkullMeta} is being applied to a book, this method + * would return a {@link BookMeta} containing all information in the + * specified meta that is applicable to an {@link ItemMeta}, the highest + * common interface. + */ + // @ts-ignore + asMetaFor(meta: org.bukkit.inventory.meta.ItemMeta, material: org.bukkit.Material): org.bukkit.inventory.meta.ItemMeta; + /** + * Returns the default color for all leather armor. + */ + // @ts-ignore + getDefaultLeatherColor(): org.bukkit.Color; + /** + * Apply a material change for an item meta. Do not use under any + * circumstances. + */ + // @ts-ignore + updateMaterial(meta: org.bukkit.inventory.meta.ItemMeta, material: org.bukkit.Material): org.bukkit.Material; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.ItemFlag.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.ItemFlag.d.ts new file mode 100644 index 00000000..cb80fd99 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.ItemFlag.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + class ItemFlag extends java.lang.Enum { + // @ts-ignore + public static HIDE_ENCHANTS: org.bukkit.inventory.ItemFlag; + // @ts-ignore + public static HIDE_ATTRIBUTES: org.bukkit.inventory.ItemFlag; + // @ts-ignore + public static HIDE_UNBREAKABLE: org.bukkit.inventory.ItemFlag; + // @ts-ignore + public static HIDE_DESTROYS: org.bukkit.inventory.ItemFlag; + // @ts-ignore + public static HIDE_PLACED_ON: org.bukkit.inventory.ItemFlag; + // @ts-ignore + public static HIDE_POTION_EFFECTS: org.bukkit.inventory.ItemFlag; + // @ts-ignore + public static values(): org.bukkit.inventory.ItemFlag[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.inventory.ItemFlag; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.ItemStack.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.ItemStack.d.ts new file mode 100644 index 00000000..f4240e44 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.ItemStack.d.ts @@ -0,0 +1,176 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + class ItemStack extends java.lang.Object implements org.bukkit.configuration.serialization.ConfigurationSerializable { + // @ts-ignore + constructor() + /** + * Defaults stack size to 1, with no extra data + */ + // @ts-ignore + constructor(type: org.bukkit.Material) + /** + * An item stack with no extra data + */ + // @ts-ignore + constructor(type: org.bukkit.Material, amount: number) + /** + * An item stack with the specified damage / durability + */ + // @ts-ignore + constructor(type: org.bukkit.Material, amount: number, damage: number) + // @ts-ignore + constructor(type: org.bukkit.Material, amount: number, damage: number, data: java.lang.Byte) + /** + * Creates a new item stack derived from the specified stack + */ + // @ts-ignore + constructor(stack: org.bukkit.inventory.ItemStack) + /** + * Gets the type of this item + */ + // @ts-ignore + public getType(): org.bukkit.Material; + /** + * Sets the type of this item + *

+ * Note that in doing so you will reset the MaterialData for this stack + */ + // @ts-ignore + public setType(type: org.bukkit.Material): void; + /** + * Gets the amount of items in this stack + */ + // @ts-ignore + public getAmount(): number; + /** + * Sets the amount of items in this stack + */ + // @ts-ignore + public setAmount(amount: number): void; + /** + * Gets the MaterialData for this stack of items + */ + // @ts-ignore + public getData(): org.bukkit.material.MaterialData; + /** + * Sets the MaterialData for this stack of items + */ + // @ts-ignore + public setData(data: org.bukkit.material.MaterialData): void; + /** + * Sets the durability of this item + */ + // @ts-ignore + public setDurability(durability: number): void; + /** + * Gets the durability of this item + */ + // @ts-ignore + public getDurability(): number; + /** + * Get the maximum stacksize for the material hold in this ItemStack. + * (Returns -1 if it has no idea) + */ + // @ts-ignore + public getMaxStackSize(): number; + // @ts-ignore + public toString(): string; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * This method is the same as equals, but does not consider stack size + * (amount). + */ + // @ts-ignore + public isSimilar(stack: org.bukkit.inventory.ItemStack): boolean; + // @ts-ignore + public clone(): org.bukkit.inventory.ItemStack; + // @ts-ignore + public hashCode(): number; + /** + * Checks if this ItemStack contains the given {@link Enchantment} + */ + // @ts-ignore + public containsEnchantment(ench: org.bukkit.enchantments.Enchantment): boolean; + /** + * Gets the level of the specified enchantment on this item stack + */ + // @ts-ignore + public getEnchantmentLevel(ench: org.bukkit.enchantments.Enchantment): number; + /** + * Gets a map containing all enchantments and their levels on this item. + */ + // @ts-ignore + public getEnchantments(): java.util.Map; + /** + * Adds the specified enchantments to this item stack. + *

+ * This method is the same as calling {@link + * #addEnchantment(org.bukkit.enchantments.Enchantment, int)} for each + * element of the map. + */ + // @ts-ignore + public addEnchantments(enchantments: java.util.Map): void; + /** + * Adds the specified {@link Enchantment} to this item stack. + *

+ * If this item stack already contained the given enchantment (at any + * level), it will be replaced. + */ + // @ts-ignore + public addEnchantment(ench: org.bukkit.enchantments.Enchantment, level: number): void; + /** + * Adds the specified enchantments to this item stack in an unsafe manner. + *

+ * This method is the same as calling {@link + * #addUnsafeEnchantment(org.bukkit.enchantments.Enchantment, int)} for + * each element of the map. + */ + // @ts-ignore + public addUnsafeEnchantments(enchantments: java.util.Map): void; + /** + * Adds the specified {@link Enchantment} to this item stack. + *

+ * If this item stack already contained the given enchantment (at any + * level), it will be replaced. + *

+ * This method is unsafe and will ignore level restrictions or item type. + * Use at your own discretion. + */ + // @ts-ignore + public addUnsafeEnchantment(ench: org.bukkit.enchantments.Enchantment, level: number): void; + /** + * Removes the specified {@link Enchantment} if it exists on this + * ItemStack + */ + // @ts-ignore + public removeEnchantment(ench: org.bukkit.enchantments.Enchantment): number; + // @ts-ignore + public serialize(): java.util.Map; + /** + * Required method for configuration serialization + */ + // @ts-ignore + public static deserialize(args: java.util.Map): org.bukkit.inventory.ItemStack; + /** + * Get a copy of this ItemStack's {@link ItemMeta}. + */ + // @ts-ignore + public getItemMeta(): org.bukkit.inventory.meta.ItemMeta; + /** + * Checks to see if any meta data has been defined. + */ + // @ts-ignore + public hasItemMeta(): boolean; + /** + * Set the ItemMeta of this ItemStack. + */ + // @ts-ignore + public setItemMeta(itemMeta: org.bukkit.inventory.meta.ItemMeta): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.LecternInventory.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.LecternInventory.d.ts new file mode 100644 index 00000000..87085db6 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.LecternInventory.d.ts @@ -0,0 +1,12 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + interface LecternInventory extends org.bukkit.inventory.Inventory { + // @ts-ignore + getHolder(): org.bukkit.block.Lectern; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.LlamaInventory.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.LlamaInventory.d.ts new file mode 100644 index 00000000..395e8594 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.LlamaInventory.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + interface LlamaInventory extends org.bukkit.inventory.AbstractHorseInventory { + /** + * Gets the item in the llama's decor slot. + */ + // @ts-ignore + getDecor(): org.bukkit.inventory.ItemStack; + /** + * Sets the item in the llama's decor slot. + */ + // @ts-ignore + setDecor(stack: org.bukkit.inventory.ItemStack): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.LoomInventory.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.LoomInventory.d.ts new file mode 100644 index 00000000..f3558cb6 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.LoomInventory.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + interface LoomInventory extends org.bukkit.inventory.Inventory { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.MainHand.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.MainHand.d.ts new file mode 100644 index 00000000..dfc90605 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.MainHand.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + class MainHand extends java.lang.Enum { + // @ts-ignore + public static LEFT: org.bukkit.inventory.MainHand; + // @ts-ignore + public static RIGHT: org.bukkit.inventory.MainHand; + // @ts-ignore + public static values(): org.bukkit.inventory.MainHand[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.inventory.MainHand; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.Merchant.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.Merchant.d.ts new file mode 100644 index 00000000..90379c6d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.Merchant.d.ts @@ -0,0 +1,49 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + interface Merchant { + /** + * Get a list of trades currently available from this merchant. + */ + // @ts-ignore + getRecipes(): 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. + */ + // @ts-ignore + setRecipes(recipes: java.util.List): void; + /** + * Get the recipe at a certain index of this merchant's trade list. + */ + // @ts-ignore + getRecipe(i: number): org.bukkit.inventory.MerchantRecipe; + /** + * Set the recipe at a certain index of this merchant's trade list. + */ + // @ts-ignore + setRecipe(i: number, recipe: org.bukkit.inventory.MerchantRecipe): void; + /** + * Get the number of trades this merchant currently has available. + */ + // @ts-ignore + getRecipeCount(): number; + /** + * Gets whether this merchant is currently trading. + */ + // @ts-ignore + isTrading(): boolean; + /** + * Gets the player this merchant is trading with, or null if it is not + * currently trading. + */ + // @ts-ignore + getTrader(): org.bukkit.entity.HumanEntity; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.MerchantInventory.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.MerchantInventory.d.ts new file mode 100644 index 00000000..28014c05 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.MerchantInventory.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + interface MerchantInventory extends org.bukkit.inventory.Inventory { + /** + * Get the index of the currently selected recipe. + */ + // @ts-ignore + getSelectedRecipeIndex(): number; + /** + * Get the currently active recipe. + *

+ * This will be null if the items provided by the player do + * not match the ingredients of the selected recipe. This does not + * necessarily match the recipe selected by the player: If the player has + * selected the first recipe, the merchant will search all of its offers + * for a matching recipe to activate. + */ + // @ts-ignore + getSelectedRecipe(): org.bukkit.inventory.MerchantRecipe; + /** + * Gets the Merchant associated with this inventory. + */ + // @ts-ignore + getMerchant(): org.bukkit.inventory.Merchant; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.MerchantRecipe.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.MerchantRecipe.d.ts new file mode 100644 index 00000000..01022f75 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.MerchantRecipe.d.ts @@ -0,0 +1,79 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + class MerchantRecipe extends java.lang.Object implements org.bukkit.inventory.Recipe { + // @ts-ignore + constructor(result: org.bukkit.inventory.ItemStack, maxUses: number) + // @ts-ignore + constructor(result: org.bukkit.inventory.ItemStack, uses: number, maxUses: number, experienceReward: boolean) + // @ts-ignore + constructor(result: org.bukkit.inventory.ItemStack, uses: number, maxUses: number, experienceReward: boolean, villagerExperience: number, priceMultiplier: number) + // @ts-ignore + public getResult(): org.bukkit.inventory.ItemStack; + // @ts-ignore + public addIngredient(item: org.bukkit.inventory.ItemStack): void; + // @ts-ignore + public removeIngredient(index: number): void; + // @ts-ignore + public setIngredients(ingredients: java.util.List): void; + // @ts-ignore + public getIngredients(): java.util.List; + /** + * Get the number of times this trade has been used. + */ + // @ts-ignore + public getUses(): number; + /** + * Set the number of times this trade has been used. + */ + // @ts-ignore + public setUses(uses: number): void; + /** + * Get the maximum number of uses this trade has. + *
+ * The maximum uses of this trade may increase when a player trades with the + * owning merchant. + */ + // @ts-ignore + public getMaxUses(): number; + /** + * Set the maximum number of uses this trade has. + */ + // @ts-ignore + public setMaxUses(maxUses: number): void; + /** + * Whether to reward experience to the player for the trade. + */ + // @ts-ignore + public hasExperienceReward(): boolean; + /** + * Set whether to reward experience to the player for the trade. + */ + // @ts-ignore + public setExperienceReward(flag: boolean): void; + /** + * Gets the amount of experience the villager earns from this trade. + */ + // @ts-ignore + public getVillagerExperience(): number; + /** + * Sets the amount of experience the villager earns from this trade. + */ + // @ts-ignore + public setVillagerExperience(villagerExperience: number): void; + /** + * Gets the additive price multiplier for the cost of this trade. + */ + // @ts-ignore + public getPriceMultiplier(): number; + /** + * Sets the additive price multiplier for the cost of this trade. + */ + // @ts-ignore + public setPriceMultiplier(priceMultiplier: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.PlayerInventory.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.PlayerInventory.d.ts new file mode 100644 index 00000000..66fdeffa --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.PlayerInventory.d.ts @@ -0,0 +1,144 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + interface PlayerInventory extends org.bukkit.inventory.Inventory { + /** + * Get all ItemStacks from the armor slots + */ + // @ts-ignore + getArmorContents(): org.bukkit.inventory.ItemStack[]; + /** + * Get all additional ItemStacks stored in this inventory. + *
+ * NB: What defines an extra slot is up to the implementation, however it + * will not be contained within {@link #getStorageContents()} or + * {@link #getArmorContents()} + */ + // @ts-ignore + getExtraContents(): org.bukkit.inventory.ItemStack[]; + /** + * Return the ItemStack from the helmet slot + */ + // @ts-ignore + getHelmet(): org.bukkit.inventory.ItemStack; + /** + * Return the ItemStack from the chestplate slot + */ + // @ts-ignore + getChestplate(): org.bukkit.inventory.ItemStack; + /** + * Return the ItemStack from the leg slot + */ + // @ts-ignore + getLeggings(): org.bukkit.inventory.ItemStack; + /** + * Return the ItemStack from the boots slot + */ + // @ts-ignore + getBoots(): org.bukkit.inventory.ItemStack; + /** + * Stores the ItemStack at the given index of the inventory. + *

+ * Indexes 0 through 8 refer to the hotbar. 9 through 35 refer to the main inventory, counting up from 9 at the top + * left corner of the inventory, moving to the right, and moving to the row below it back on the left side when it + * reaches the end of the row. It follows the same path in the inventory like you would read a book. + *

+ * Indexes 36 through 39 refer to the armor slots. Though you can set armor with this method using these indexes, + * you are encouraged to use the provided methods for those slots. + *

+ * Index 40 refers to the off hand (shield) item slot. Though you can set off hand with this method using this index, + * you are encouraged to use the provided method for this slot. + *

+ * If you attempt to use this method with an index less than 0 or greater than 40, an ArrayIndexOutOfBounds + * exception will be thrown. + */ + // @ts-ignore + setItem(index: number, item: org.bukkit.inventory.ItemStack): void; + /** + * Put the given ItemStacks into the armor slots + */ + // @ts-ignore + setArmorContents(items: org.bukkit.inventory.ItemStack): void; + /** + * Put the given ItemStacks into the extra slots + *
+ * See {@link #getExtraContents()} for an explanation of extra slots. + */ + // @ts-ignore + 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 + */ + // @ts-ignore + 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 + */ + // @ts-ignore + 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 + */ + // @ts-ignore + 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 + */ + // @ts-ignore + setBoots(boots: org.bukkit.inventory.ItemStack): void; + /** + * Gets a copy of the item the player is currently holding + * in their main hand. + */ + // @ts-ignore + getItemInMainHand(): org.bukkit.inventory.ItemStack; + /** + * Sets the item the player is holding in their main hand. + */ + // @ts-ignore + setItemInMainHand(item: org.bukkit.inventory.ItemStack): void; + /** + * Gets a copy of the item the player is currently holding + * in their off hand. + */ + // @ts-ignore + getItemInOffHand(): org.bukkit.inventory.ItemStack; + /** + * Sets the item the player is holding in their off hand. + */ + // @ts-ignore + setItemInOffHand(item: org.bukkit.inventory.ItemStack): void; + /** + * Gets a copy of the item the player is currently holding + */ + // @ts-ignore + getItemInHand(): org.bukkit.inventory.ItemStack; + /** + * Sets the item the player is holding + */ + // @ts-ignore + setItemInHand(stack: org.bukkit.inventory.ItemStack): void; + /** + * Get the slot number of the currently held item + */ + // @ts-ignore + getHeldItemSlot(): number; + /** + * Set the slot number of the currently held item. + *

+ * This validates whether the slot is between 0 and 8 inclusive. + */ + // @ts-ignore + setHeldItemSlot(slot: number): void; + // @ts-ignore + getHolder(): org.bukkit.entity.HumanEntity; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.Recipe.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.Recipe.d.ts new file mode 100644 index 00000000..42ad54a0 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.Recipe.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + interface Recipe { + /** + * Get the result of this recipe. + */ + // @ts-ignore + getResult(): org.bukkit.inventory.ItemStack; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.RecipeChoice.ExactChoice.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.RecipeChoice.ExactChoice.d.ts new file mode 100644 index 00000000..591c4aef --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.RecipeChoice.ExactChoice.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + namespace RecipeChoice { + // @ts-ignore + class ExactChoice extends java.lang.Object implements org.bukkit.inventory.RecipeChoice { + // @ts-ignore + constructor(stack: org.bukkit.inventory.ItemStack) + // @ts-ignore + constructor(stacks: org.bukkit.inventory.ItemStack) + // @ts-ignore + constructor(choices: java.util.List) + // @ts-ignore + public getItemStack(): org.bukkit.inventory.ItemStack; + // @ts-ignore + public getChoices(): java.util.List; + // @ts-ignore + public clone(): org.bukkit.inventory.RecipeChoice.ExactChoice; + // @ts-ignore + public test(t: org.bukkit.inventory.ItemStack): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public toString(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.RecipeChoice.MaterialChoice.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.RecipeChoice.MaterialChoice.d.ts new file mode 100644 index 00000000..566d17ec --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.RecipeChoice.MaterialChoice.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + namespace RecipeChoice { + // @ts-ignore + class MaterialChoice extends java.lang.Object implements org.bukkit.inventory.RecipeChoice { + // @ts-ignore + constructor(choice: org.bukkit.Material) + // @ts-ignore + constructor(choices: org.bukkit.Material) + /** + * Constructs a MaterialChoice with the current values of the specified + * tag. + */ + // @ts-ignore + constructor(choices: org.bukkit.Tag) + // @ts-ignore + constructor(choices: java.util.List) + // @ts-ignore + public test(t: org.bukkit.inventory.ItemStack): boolean; + // @ts-ignore + public getItemStack(): org.bukkit.inventory.ItemStack; + // @ts-ignore + public getChoices(): java.util.List; + // @ts-ignore + public clone(): org.bukkit.inventory.RecipeChoice.MaterialChoice; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public toString(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.RecipeChoice.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.RecipeChoice.d.ts new file mode 100644 index 00000000..d78503be --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.RecipeChoice.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + interface RecipeChoice { + /** + * Gets a single item stack representative of this stack choice. + */ + // @ts-ignore + getItemStack(): org.bukkit.inventory.ItemStack; + // @ts-ignore + clone(): org.bukkit.inventory.RecipeChoice; + // @ts-ignore + test(itemStack: org.bukkit.inventory.ItemStack): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.ShapedRecipe.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.ShapedRecipe.d.ts new file mode 100644 index 00000000..4ec48042 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.ShapedRecipe.d.ts @@ -0,0 +1,77 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + class ShapedRecipe extends java.lang.Object implements org.bukkit.inventory.Recipe, org.bukkit.Keyed { + // @ts-ignore + constructor(result: org.bukkit.inventory.ItemStack) + /** + * Create a shaped recipe to craft the specified ItemStack. The + * constructor merely determines the result and type; to set the actual + * recipe, you'll need to call the appropriate methods. + */ + // @ts-ignore + constructor(key: org.bukkit.NamespacedKey, result: org.bukkit.inventory.ItemStack) + /** + * Set the shape of this recipe to the specified rows. Each character + * represents a different ingredient; exactly what each character + * represents is set separately. The first row supplied corresponds with + * the upper most part of the recipe on the workbench e.g. if all three + * rows are supplies the first string represents the top row on the + * workbench. + */ + // @ts-ignore + public shape(shape: string): org.bukkit.inventory.ShapedRecipe; + /** + * Sets the material that a character in the recipe shape refers to. + */ + // @ts-ignore + public setIngredient(key: string, ingredient: org.bukkit.material.MaterialData): org.bukkit.inventory.ShapedRecipe; + /** + * Sets the material that a character in the recipe shape refers to. + */ + // @ts-ignore + public setIngredient(key: string, ingredient: org.bukkit.Material): org.bukkit.inventory.ShapedRecipe; + /** + * Sets the material that a character in the recipe shape refers to. + */ + // @ts-ignore + public setIngredient(key: string, ingredient: org.bukkit.Material, raw: number): org.bukkit.inventory.ShapedRecipe; + // @ts-ignore + public setIngredient(key: string, ingredient: org.bukkit.inventory.RecipeChoice): org.bukkit.inventory.ShapedRecipe; + /** + * Get a copy of the ingredients map. + */ + // @ts-ignore + public getIngredientMap(): java.util.Map; + // @ts-ignore + public getChoiceMap(): java.util.Map; + /** + * Get the shape. + */ + // @ts-ignore + public getShape(): java.lang.String[]; + /** + * Get the result. + */ + // @ts-ignore + public getResult(): org.bukkit.inventory.ItemStack; + // @ts-ignore + public getKey(): org.bukkit.NamespacedKey; + /** + * Get the group of this recipe. Recipes with the same group may be grouped + * together when displayed in the client. + */ + // @ts-ignore + public getGroup(): string; + /** + * Set the group of this recipe. Recipes with the same group may be grouped + * together when displayed in the client. + */ + // @ts-ignore + public setGroup(group: string): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.ShapelessRecipe.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.ShapelessRecipe.d.ts new file mode 100644 index 00000000..1eb63174 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.ShapelessRecipe.d.ts @@ -0,0 +1,124 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + class ShapelessRecipe extends java.lang.Object implements org.bukkit.inventory.Recipe, org.bukkit.Keyed { + // @ts-ignore + constructor(result: org.bukkit.inventory.ItemStack) + /** + * Create a shapeless recipe to craft the specified ItemStack. The + * constructor merely determines the result and type; to set the actual + * recipe, you'll need to call the appropriate methods. + */ + // @ts-ignore + constructor(key: org.bukkit.NamespacedKey, result: org.bukkit.inventory.ItemStack) + /** + * Adds the specified ingredient. + */ + // @ts-ignore + public addIngredient(ingredient: org.bukkit.material.MaterialData): org.bukkit.inventory.ShapelessRecipe; + /** + * Adds the specified ingredient. + */ + // @ts-ignore + public addIngredient(ingredient: org.bukkit.Material): org.bukkit.inventory.ShapelessRecipe; + /** + * Adds the specified ingredient. + */ + // @ts-ignore + public addIngredient(ingredient: org.bukkit.Material, rawdata: number): org.bukkit.inventory.ShapelessRecipe; + /** + * Adds multiples of the specified ingredient. + */ + // @ts-ignore + public addIngredient(count: number, ingredient: org.bukkit.material.MaterialData): org.bukkit.inventory.ShapelessRecipe; + /** + * Adds multiples of the specified ingredient. + */ + // @ts-ignore + public addIngredient(count: number, ingredient: org.bukkit.Material): org.bukkit.inventory.ShapelessRecipe; + /** + * Adds multiples of the specified ingredient. + */ + // @ts-ignore + public addIngredient(count: number, ingredient: org.bukkit.Material, rawdata: number): org.bukkit.inventory.ShapelessRecipe; + // @ts-ignore + public addIngredient(ingredient: org.bukkit.inventory.RecipeChoice): org.bukkit.inventory.ShapelessRecipe; + /** + * Removes an ingredient from the list. + */ + // @ts-ignore + public removeIngredient(ingredient: org.bukkit.inventory.RecipeChoice): org.bukkit.inventory.ShapelessRecipe; + /** + * Removes an ingredient from the list. If the ingredient occurs multiple + * times, only one instance of it is removed. Only removes exact matches, + * with a data value of 0. + */ + // @ts-ignore + public removeIngredient(ingredient: org.bukkit.Material): org.bukkit.inventory.ShapelessRecipe; + /** + * Removes an ingredient from the list. If the ingredient occurs multiple + * times, only one instance of it is removed. If the data value is -1, + * only ingredients with a -1 data value will be removed. + */ + // @ts-ignore + public removeIngredient(ingredient: org.bukkit.material.MaterialData): org.bukkit.inventory.ShapelessRecipe; + /** + * Removes multiple instances of an ingredient from the list. If there are + * less instances then specified, all will be removed. Only removes exact + * matches, with a data value of 0. + */ + // @ts-ignore + public removeIngredient(count: number, ingredient: org.bukkit.Material): org.bukkit.inventory.ShapelessRecipe; + /** + * Removes multiple instances of an ingredient from the list. If there are + * less instances then specified, all will be removed. If the data value + * is -1, only ingredients with a -1 data value will be removed. + */ + // @ts-ignore + public removeIngredient(count: number, ingredient: org.bukkit.material.MaterialData): org.bukkit.inventory.ShapelessRecipe; + /** + * Removes an ingredient from the list. If the ingredient occurs multiple + * times, only one instance of it is removed. If the data value is -1, + * only ingredients with a -1 data value will be removed. + */ + // @ts-ignore + public removeIngredient(ingredient: org.bukkit.Material, rawdata: number): org.bukkit.inventory.ShapelessRecipe; + /** + * Removes multiple instances of an ingredient from the list. If there are + * less instances then specified, all will be removed. If the data value + * is -1, only ingredients with a -1 data value will be removed. + */ + // @ts-ignore + public removeIngredient(count: number, ingredient: org.bukkit.Material, rawdata: number): org.bukkit.inventory.ShapelessRecipe; + /** + * Get the result of this recipe. + */ + // @ts-ignore + public getResult(): org.bukkit.inventory.ItemStack; + /** + * Get the list of ingredients used for this recipe. + */ + // @ts-ignore + public getIngredientList(): java.util.List; + // @ts-ignore + public getChoiceList(): java.util.List; + // @ts-ignore + public getKey(): org.bukkit.NamespacedKey; + /** + * Get the group of this recipe. Recipes with the same group may be grouped + * together when displayed in the client. + */ + // @ts-ignore + public getGroup(): string; + /** + * Set the group of this recipe. Recipes with the same group may be grouped + * together when displayed in the client. + */ + // @ts-ignore + public setGroup(group: string): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.SmokingRecipe.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.SmokingRecipe.d.ts new file mode 100644 index 00000000..01b7952f --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.SmokingRecipe.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + class SmokingRecipe extends org.bukkit.inventory.CookingRecipe { + // @ts-ignore + constructor(key: org.bukkit.NamespacedKey, result: org.bukkit.inventory.ItemStack, source: org.bukkit.Material, experience: number, cookingTime: number) + // @ts-ignore + constructor(key: org.bukkit.NamespacedKey, result: org.bukkit.inventory.ItemStack, input: org.bukkit.inventory.RecipeChoice, experience: number, cookingTime: number) + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.StonecutterInventory.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.StonecutterInventory.d.ts new file mode 100644 index 00000000..cc423436 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.StonecutterInventory.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + interface StonecutterInventory extends org.bukkit.inventory.Inventory { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.StonecuttingRecipe.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.StonecuttingRecipe.d.ts new file mode 100644 index 00000000..62b1927d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.StonecuttingRecipe.d.ts @@ -0,0 +1,59 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + // @ts-ignore + class StonecuttingRecipe extends java.lang.Object implements org.bukkit.inventory.Recipe, org.bukkit.Keyed { + /** + * Create a Stonecutting recipe to craft the specified ItemStack. + */ + // @ts-ignore + constructor(key: org.bukkit.NamespacedKey, result: org.bukkit.inventory.ItemStack, source: org.bukkit.Material) + /** + * Create a cooking recipe to craft the specified ItemStack. + */ + // @ts-ignore + constructor(key: org.bukkit.NamespacedKey, result: org.bukkit.inventory.ItemStack, input: org.bukkit.inventory.RecipeChoice) + /** + * Sets the input of this cooking recipe. + */ + // @ts-ignore + public setInput(input: org.bukkit.Material): org.bukkit.inventory.StonecuttingRecipe; + /** + * Get the input material. + */ + // @ts-ignore + public getInput(): org.bukkit.inventory.ItemStack; + /** + * Sets the input of this cooking recipe. + */ + // @ts-ignore + public setInputChoice(input: org.bukkit.inventory.RecipeChoice): org.bukkit.inventory.StonecuttingRecipe; + /** + * Get the input choice. + */ + // @ts-ignore + public getInputChoice(): org.bukkit.inventory.RecipeChoice; + /** + * Get the result of this recipe. + */ + // @ts-ignore + public getResult(): org.bukkit.inventory.ItemStack; + // @ts-ignore + public getKey(): org.bukkit.NamespacedKey; + /** + * Get the group of this recipe. Recipes with the same group may be grouped + * together when displayed in the client. + */ + // @ts-ignore + public getGroup(): string; + /** + * Set the group of this recipe. Recipes with the same group may be grouped + * together when displayed in the client. + */ + // @ts-ignore + public setGroup(group: string): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.BannerMeta.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.BannerMeta.d.ts new file mode 100644 index 00000000..9f51b81b --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.BannerMeta.d.ts @@ -0,0 +1,59 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + namespace meta { + // @ts-ignore + interface BannerMeta extends org.bukkit.inventory.meta.ItemMeta { + /** + * Returns the base color for this banner + */ + // @ts-ignore + getBaseColor(): org.bukkit.DyeColor; + /** + * Sets the base color for this banner + */ + // @ts-ignore + setBaseColor(color: org.bukkit.DyeColor): void; + /** + * Returns a list of patterns on this banner + */ + // @ts-ignore + getPatterns(): java.util.List; + /** + * Sets the patterns used on this banner + */ + // @ts-ignore + setPatterns(patterns: java.util.List): void; + /** + * Adds a new pattern on top of the existing + * patterns + */ + // @ts-ignore + addPattern(pattern: org.bukkit.block.banner.Pattern): void; + /** + * Returns the pattern at the specified index + */ + // @ts-ignore + getPattern(i: number): org.bukkit.block.banner.Pattern; + /** + * Removes the pattern at the specified index + */ + // @ts-ignore + removePattern(i: number): org.bukkit.block.banner.Pattern; + /** + * Sets the pattern at the specified index + */ + // @ts-ignore + setPattern(i: number, pattern: org.bukkit.block.banner.Pattern): void; + /** + * Returns the number of patterns on this + * banner + */ + // @ts-ignore + numberOfPatterns(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.BlockDataMeta.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.BlockDataMeta.d.ts new file mode 100644 index 00000000..d552ea69 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.BlockDataMeta.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + namespace meta { + // @ts-ignore + interface BlockDataMeta extends org.bukkit.inventory.meta.ItemMeta { + /** + * Returns whether the item has block data currently attached to it. + */ + // @ts-ignore + 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)} + */ + // @ts-ignore + getBlockData(material: org.bukkit.Material): org.bukkit.block.data.BlockData; + /** + * Attaches a copy of the passed block data to the item. + */ + // @ts-ignore + setBlockData(blockData: org.bukkit.block.data.BlockData): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.BlockStateMeta.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.BlockStateMeta.d.ts new file mode 100644 index 00000000..6a5fb458 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.BlockStateMeta.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + namespace meta { + // @ts-ignore + interface BlockStateMeta extends org.bukkit.inventory.meta.ItemMeta { + /** + * Returns whether the item has a block state currently + * attached to it. + */ + // @ts-ignore + 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)} + */ + // @ts-ignore + getBlockState(): org.bukkit.block.BlockState; + /** + * Attaches a copy of the passed block state to the item. + */ + // @ts-ignore + setBlockState(blockState: org.bukkit.block.BlockState): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.BookMeta.Generation.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.BookMeta.Generation.d.ts new file mode 100644 index 00000000..c092f436 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.BookMeta.Generation.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + namespace meta { + namespace BookMeta { + // @ts-ignore + class Generation extends java.lang.Enum { + // @ts-ignore + public static ORIGINAL: org.bukkit.inventory.meta.BookMeta.Generation; + // @ts-ignore + public static COPY_OF_ORIGINAL: org.bukkit.inventory.meta.BookMeta.Generation; + // @ts-ignore + public static COPY_OF_COPY: org.bukkit.inventory.meta.BookMeta.Generation; + // @ts-ignore + public static TATTERED: org.bukkit.inventory.meta.BookMeta.Generation; + // @ts-ignore + public static values(): org.bukkit.inventory.meta.BookMeta.Generation[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.inventory.meta.BookMeta.Generation; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.BookMeta.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.BookMeta.d.ts new file mode 100644 index 00000000..e6ad543b --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.BookMeta.d.ts @@ -0,0 +1,121 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + namespace meta { + // @ts-ignore + interface BookMeta extends org.bukkit.inventory.meta.ItemMeta { + /** + * Checks for the existence of a title in the book. + */ + // @ts-ignore + hasTitle(): boolean; + /** + * Gets the title of the book. + *

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

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

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

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

+ * Pages are 1-indexed. + */ + // @ts-ignore + getPage(page: number): string; + /** + * Sets the specified page in the book. Pages of the book must be + * contiguous. + *

+ * The data can be up to 256 characters in length, additional characters + * are truncated. + *

+ * Pages are 1-indexed. + */ + // @ts-ignore + setPage(page: number, data: string): void; + /** + * Gets all the pages in the book. + */ + // @ts-ignore + getPages(): 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. + */ + // @ts-ignore + setPages(pages: 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + addPage(pages: string): void; + /** + * Gets the number of pages in the book. + */ + // @ts-ignore + getPageCount(): number; + // @ts-ignore + clone(): org.bukkit.inventory.meta.BookMeta; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.CrossbowMeta.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.CrossbowMeta.d.ts new file mode 100644 index 00000000..c2290285 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.CrossbowMeta.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + namespace meta { + // @ts-ignore + interface CrossbowMeta extends org.bukkit.inventory.meta.ItemMeta { + /** + * Returns whether the item has any charged projectiles. + */ + // @ts-ignore + hasChargedProjectiles(): boolean; + /** + * Returns an immutable list of the projectiles charged on this item. + */ + // @ts-ignore + getChargedProjectiles(): java.util.List; + /** + * Sets the projectiles charged on this item. + * Removes all projectiles when given null. + */ + // @ts-ignore + setChargedProjectiles(projectiles: java.util.List): void; + /** + * Adds a charged projectile to this item. + */ + // @ts-ignore + addChargedProjectile(item: org.bukkit.inventory.ItemStack): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.Damageable.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.Damageable.d.ts new file mode 100644 index 00000000..c4962ec1 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.Damageable.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + namespace meta { + // @ts-ignore + interface Damageable { + /** + * Checks to see if this item has damage + */ + // @ts-ignore + hasDamage(): boolean; + /** + * Gets the damage + */ + // @ts-ignore + getDamage(): number; + /** + * Sets the damage + */ + // @ts-ignore + setDamage(damage: number): void; + // @ts-ignore + clone(): org.bukkit.inventory.meta.Damageable; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.EnchantmentStorageMeta.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.EnchantmentStorageMeta.d.ts new file mode 100644 index 00000000..f1beb864 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.EnchantmentStorageMeta.d.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + namespace meta { + // @ts-ignore + interface EnchantmentStorageMeta extends org.bukkit.inventory.meta.ItemMeta { + /** + * Checks for the existence of any stored enchantments. + */ + // @ts-ignore + hasStoredEnchants(): boolean; + /** + * Checks for storage of the specified enchantment. + */ + // @ts-ignore + hasStoredEnchant(ench: org.bukkit.enchantments.Enchantment): boolean; + /** + * Checks for the level of the stored enchantment. + */ + // @ts-ignore + getStoredEnchantLevel(ench: org.bukkit.enchantments.Enchantment): number; + /** + * Gets a copy the stored enchantments in this ItemMeta. + */ + // @ts-ignore + getStoredEnchants(): java.util.Map; + /** + * Stores the specified enchantment in this item meta. + */ + // @ts-ignore + addStoredEnchant(ench: org.bukkit.enchantments.Enchantment, level: number, ignoreLevelRestriction: boolean): boolean; + /** + * Remove the specified stored enchantment from this item meta. + */ + // @ts-ignore + removeStoredEnchant(ench: org.bukkit.enchantments.Enchantment): boolean; + /** + * Checks if the specified enchantment conflicts with any enchantments in + * this ItemMeta. + */ + // @ts-ignore + hasConflictingStoredEnchant(ench: org.bukkit.enchantments.Enchantment): boolean; + // @ts-ignore + clone(): org.bukkit.inventory.meta.EnchantmentStorageMeta; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.FireworkEffectMeta.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.FireworkEffectMeta.d.ts new file mode 100644 index 00000000..32ab207b --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.FireworkEffectMeta.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + namespace meta { + // @ts-ignore + interface FireworkEffectMeta extends org.bukkit.inventory.meta.ItemMeta { + /** + * Sets the firework effect for this meta. + */ + // @ts-ignore + setEffect(effect: org.bukkit.FireworkEffect): void; + /** + * Checks if this meta has an effect. + */ + // @ts-ignore + hasEffect(): boolean; + /** + * Gets the firework effect for this meta. + */ + // @ts-ignore + getEffect(): org.bukkit.FireworkEffect; + // @ts-ignore + clone(): org.bukkit.inventory.meta.FireworkEffectMeta; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.FireworkMeta.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.FireworkMeta.d.ts new file mode 100644 index 00000000..6c0b30f5 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.FireworkMeta.d.ts @@ -0,0 +1,65 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + namespace meta { + // @ts-ignore + interface FireworkMeta extends org.bukkit.inventory.meta.ItemMeta { + /** + * Add another effect to this firework. + */ + // @ts-ignore + addEffect(effect: org.bukkit.FireworkEffect): void; + /** + * Add several effects to this firework. + */ + // @ts-ignore + addEffects(effects: org.bukkit.FireworkEffect): void; + /** + * Add several firework effects to this firework. + */ + // @ts-ignore + addEffects(effects: java.lang.Iterable): void; + /** + * Get the effects in this firework. + */ + // @ts-ignore + getEffects(): java.util.List; + /** + * Get the number of effects in this firework. + */ + // @ts-ignore + getEffectsSize(): number; + /** + * Remove an effect from this firework. + */ + // @ts-ignore + removeEffect(index: number): void; + /** + * Remove all effects from this firework. + */ + // @ts-ignore + clearEffects(): void; + /** + * Get whether this firework has any effects. + */ + // @ts-ignore + hasEffects(): boolean; + /** + * Gets the approximate height the firework will fly. + */ + // @ts-ignore + getPower(): number; + /** + * Sets the approximate power of the firework. Each level of power is half + * a second of flight time. + */ + // @ts-ignore + setPower(power: number): void; + // @ts-ignore + clone(): org.bukkit.inventory.meta.FireworkMeta; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.ItemMeta.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.ItemMeta.d.ts new file mode 100644 index 00000000..5329bf16 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.ItemMeta.d.ts @@ -0,0 +1,248 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + namespace meta { + // @ts-ignore + interface ItemMeta extends org.bukkit.configuration.serialization.ConfigurationSerializable, org.bukkit.persistence.PersistentDataHolder { + /** + * Checks for existence of a display name. + */ + // @ts-ignore + hasDisplayName(): boolean; + /** + * Gets the display name that is set. + *

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

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

+ * Plugins should check if hasLore() returns true before + * calling this method. + */ + // @ts-ignore + getLore(): java.util.List; + /** + * Sets the lore for this item. + * Removes lore when given null. + */ + // @ts-ignore + setLore(lore: 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. + */ + // @ts-ignore + hasCustomModelData(): boolean; + /** + * Gets the custom model data that is set. + *

+ * CustomModelData is an integer that may be associated client side with a + * custom item model. + *

+ * Plugins should check that hasCustomModelData() returns true + * before calling this method. + */ + // @ts-ignore + getCustomModelData(): number; + /** + * Sets the custom model data. + *

+ * CustomModelData is an integer that may be associated client side with a + * custom item model. + */ + // @ts-ignore + setCustomModelData(data: java.lang.Integer): void; + /** + * Checks for the existence of any enchantments. + */ + // @ts-ignore + hasEnchants(): boolean; + /** + * Checks for existence of the specified enchantment. + */ + // @ts-ignore + hasEnchant(ench: org.bukkit.enchantments.Enchantment): boolean; + /** + * Checks for the level of the specified enchantment. + */ + // @ts-ignore + getEnchantLevel(ench: org.bukkit.enchantments.Enchantment): number; + /** + * Returns a copy the enchantments in this ItemMeta.
+ * Returns an empty map if none. + */ + // @ts-ignore + getEnchants(): java.util.Map; + /** + * Adds the specified enchantment to this item meta. + */ + // @ts-ignore + addEnchant(ench: org.bukkit.enchantments.Enchantment, level: number, ignoreLevelRestriction: boolean): boolean; + /** + * Removes the specified enchantment from this item meta. + */ + // @ts-ignore + removeEnchant(ench: org.bukkit.enchantments.Enchantment): boolean; + /** + * Checks if the specified enchantment conflicts with any enchantments in + * this ItemMeta. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + removeItemFlags(itemFlags: org.bukkit.inventory.ItemFlag): void; + /** + * Get current set itemFlags. The collection returned is unmodifiable. + */ + // @ts-ignore + getItemFlags(): java.util.Set; + /** + * Check if the specified flag is present on this item. + */ + // @ts-ignore + hasItemFlag(flag: org.bukkit.inventory.ItemFlag): boolean; + /** + * Return if the unbreakable tag is true. An unbreakable item will not lose + * durability. + */ + // @ts-ignore + isUnbreakable(): boolean; + /** + * Sets the unbreakable tag. An unbreakable item will not lose durability. + */ + // @ts-ignore + setUnbreakable(unbreakable: boolean): void; + /** + * Checks for the existence of any AttributeModifiers. + */ + // @ts-ignore + hasAttributeModifiers(): boolean; + /** + * Return an immutable copy of all Attributes and + * their modifiers in this ItemMeta.
+ * Returns null if none exist. + */ + // @ts-ignore + getAttributeModifiers(): any; + /** + * Return an immutable copy of all {@link Attribute}s and their + * {@link AttributeModifier}s for a given {@link EquipmentSlot}.
+ * Any {@link AttributeModifier} that does have have a given + * {@link EquipmentSlot} will be returned. This is because + * AttributeModifiers without a slot are active in any slot.
+ * If there are no attributes set for the given slot, an empty map + * will be returned. + */ + // @ts-ignore + getAttributeModifiers(slot: org.bukkit.inventory.EquipmentSlot): any; + /** + * Return an immutable copy of all {@link AttributeModifier}s + * for a given {@link Attribute} + */ + // @ts-ignore + getAttributeModifiers(attribute: org.bukkit.attribute.Attribute): java.util.Collection; + /** + * Add an Attribute and it's Modifier. + * AttributeModifiers can now support {@link EquipmentSlot}s. + * If not set, the {@link AttributeModifier} will be active in ALL slots. + *
+ * Two {@link AttributeModifier}s that have the same {@link java.util.UUID} + * cannot exist on the same Attribute. + */ + // @ts-ignore + 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 + * null or an empty Multimap. + * If not null nor empty, this will filter all entries that are not-null + * and add them to the ItemStack. + */ + // @ts-ignore + setAttributeModifiers(attributeModifiers: any): void; + /** + * Remove all {@link AttributeModifier}s associated with the given + * {@link Attribute}. + * This will return false if nothing was removed. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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}. + */ + // @ts-ignore + 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. + * Those tags will be sent to the client with all of their content, so the + * client is capable of reading them. This will result in the player seeing + * a NBT Tag notification on the item. + * These tags can also be modified by the client once in creative mode + */ + // @ts-ignore + getCustomTagContainer(): org.bukkit.inventory.meta.tags.CustomItemTagContainer; + /** + * Internal use only! Do not use under any circumstances! + */ + // @ts-ignore + setVersion(version: number): void; + // @ts-ignore + clone(): org.bukkit.inventory.meta.ItemMeta; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.KnowledgeBookMeta.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.KnowledgeBookMeta.d.ts new file mode 100644 index 00000000..21bc6e90 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.KnowledgeBookMeta.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + namespace meta { + // @ts-ignore + interface KnowledgeBookMeta extends org.bukkit.inventory.meta.ItemMeta { + /** + * Checks for the existence of recipes in the book. + */ + // @ts-ignore + hasRecipes(): boolean; + /** + * Gets all the recipes in the book. + */ + // @ts-ignore + getRecipes(): java.util.List; + /** + * Clears the existing book recipes, and sets the book to use the provided + * recipes. + */ + // @ts-ignore + setRecipes(recipes: java.util.List): void; + /** + * Adds new recipe to the end of the book. + */ + // @ts-ignore + addRecipe(recipes: org.bukkit.NamespacedKey): void; + // @ts-ignore + clone(): org.bukkit.inventory.meta.KnowledgeBookMeta; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.LeatherArmorMeta.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.LeatherArmorMeta.d.ts new file mode 100644 index 00000000..34421e3a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.LeatherArmorMeta.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + namespace meta { + // @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()}. + */ + // @ts-ignore + getColor(): org.bukkit.Color; + /** + * Sets the color of the armor. + */ + // @ts-ignore + setColor(color: org.bukkit.Color): void; + // @ts-ignore + clone(): org.bukkit.inventory.meta.LeatherArmorMeta; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.MapMeta.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.MapMeta.d.ts new file mode 100644 index 00000000..e0dd2627 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.MapMeta.d.ts @@ -0,0 +1,104 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + namespace meta { + // @ts-ignore + interface MapMeta extends org.bukkit.inventory.meta.ItemMeta { + /** + * Checks for existence of a map ID number. + */ + // @ts-ignore + hasMapId(): boolean; + /** + * Gets the map ID that is set. This is used to determine what map is + * displayed. + *

+ * Plugins should check that hasMapId() returns true before + * calling this method. + */ + // @ts-ignore + getMapId(): number; + /** + * Sets the map ID. This is used to determine what map is displayed. + */ + // @ts-ignore + setMapId(id: number): void; + /** + * Checks for existence of an associated map. + */ + // @ts-ignore + hasMapView(): boolean; + /** + * Gets the map view that is associated with this map item. + *

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

+ * The implementation may allow null to clear the associated map, but + * this is not required and is liable to generate a new (undefined) map when + * the item is first used. + */ + // @ts-ignore + setMapView(map: org.bukkit.map.MapView): void; + /** + * Checks to see if this map is scaling. + */ + // @ts-ignore + isScaling(): boolean; + /** + * Sets if this map is scaling or not. + */ + // @ts-ignore + setScaling(value: boolean): void; + /** + * Checks for existence of a location name. + */ + // @ts-ignore + hasLocationName(): boolean; + /** + * Gets the location name that is set. + *

+ * Plugins should check that hasLocationName() returns true + * before calling this method. + */ + // @ts-ignore + getLocationName(): string; + /** + * Sets the location name. A custom map color will alter the display of the + * map in an inventory slot. + */ + // @ts-ignore + setLocationName(name: string): void; + /** + * Checks for existence of a map color. + */ + // @ts-ignore + hasColor(): boolean; + /** + * Gets the map color that is set. A custom map color will alter the display + * of the map in an inventory slot. + *

+ * Plugins should check that hasColor() returns true before + * calling this method. + */ + // @ts-ignore + getColor(): org.bukkit.Color; + /** + * Sets the map color. A custom map color will alter the display of the map + * in an inventory slot. + */ + // @ts-ignore + setColor(color: org.bukkit.Color): void; + // @ts-ignore + clone(): org.bukkit.inventory.meta.MapMeta; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.PotionMeta.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.PotionMeta.d.ts new file mode 100644 index 00000000..809ecc33 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.PotionMeta.d.ts @@ -0,0 +1,85 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + namespace meta { + // @ts-ignore + interface PotionMeta extends org.bukkit.inventory.meta.ItemMeta { + /** + * Sets the underlying potion data + */ + // @ts-ignore + setBasePotionData(data: org.bukkit.potion.PotionData): void; + /** + * Returns the potion data about the base potion + */ + // @ts-ignore + getBasePotionData(): org.bukkit.potion.PotionData; + /** + * Checks for the presence of custom potion effects. + */ + // @ts-ignore + hasCustomEffects(): boolean; + /** + * Gets an immutable list containing all custom potion effects applied to + * this potion. + *

+ * Plugins should check that hasCustomEffects() returns true before calling + * this method. + */ + // @ts-ignore + getCustomEffects(): java.util.List; + /** + * Adds a custom potion effect to this potion. + */ + // @ts-ignore + addCustomEffect(effect: org.bukkit.potion.PotionEffect, overwrite: boolean): boolean; + /** + * Removes a custom potion effect from this potion. + */ + // @ts-ignore + removeCustomEffect(type: org.bukkit.potion.PotionEffectType): boolean; + /** + * Checks for a specific custom potion effect type on this potion. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + setMainEffect(type: org.bukkit.potion.PotionEffectType): boolean; + /** + * Removes all custom potion effects from this potion. + */ + // @ts-ignore + clearCustomEffects(): boolean; + /** + * Checks for existence of a potion color. + */ + // @ts-ignore + hasColor(): boolean; + /** + * Gets the potion color that is set. A custom potion color will alter the + * display of the potion in an inventory slot. + *

+ * Plugins should check that hasColor() returns true before + * calling this method. + */ + // @ts-ignore + getColor(): org.bukkit.Color; + /** + * Sets the potion color. A custom potion color will alter the display of + * the potion in an inventory slot. + */ + // @ts-ignore + setColor(color: org.bukkit.Color): void; + // @ts-ignore + clone(): org.bukkit.inventory.meta.PotionMeta; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.Repairable.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.Repairable.d.ts new file mode 100644 index 00000000..58159ee9 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.Repairable.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + namespace meta { + // @ts-ignore + interface Repairable { + /** + * Checks to see if this has a repair penalty + */ + // @ts-ignore + hasRepairCost(): boolean; + /** + * Gets the repair penalty + */ + // @ts-ignore + getRepairCost(): number; + /** + * Sets the repair penalty + */ + // @ts-ignore + setRepairCost(cost: number): void; + // @ts-ignore + clone(): org.bukkit.inventory.meta.Repairable; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.SkullMeta.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.SkullMeta.d.ts new file mode 100644 index 00000000..d89c20d1 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.SkullMeta.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + namespace meta { + // @ts-ignore + interface SkullMeta extends org.bukkit.inventory.meta.ItemMeta { + /** + * Gets the owner of the skull. + */ + // @ts-ignore + getOwner(): string; + /** + * Checks to see if the skull has an owner. + */ + // @ts-ignore + hasOwner(): boolean; + /** + * Sets the owner of the skull. + */ + // @ts-ignore + setOwner(owner: string): boolean; + /** + * Gets the owner of the skull. + */ + // @ts-ignore + getOwningPlayer(): org.bukkit.OfflinePlayer; + /** + * Sets the owner of the skull. + *

+ * Plugins should check that hasOwner() returns true before calling this + * plugin. + */ + // @ts-ignore + setOwningPlayer(owner: org.bukkit.OfflinePlayer): boolean; + // @ts-ignore + clone(): org.bukkit.inventory.meta.SkullMeta; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.SpawnEggMeta.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.SpawnEggMeta.d.ts new file mode 100644 index 00000000..685e469d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.SpawnEggMeta.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + namespace meta { + // @ts-ignore + interface SpawnEggMeta extends org.bukkit.inventory.meta.ItemMeta { + /** + * Get the type of entity this egg will spawn. + */ + // @ts-ignore + getSpawnedType(): org.bukkit.entity.EntityType; + /** + * Set the type of entity this egg will spawn. + */ + // @ts-ignore + setSpawnedType(type: org.bukkit.entity.EntityType): void; + // @ts-ignore + clone(): org.bukkit.inventory.meta.SpawnEggMeta; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.TropicalFishBucketMeta.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.TropicalFishBucketMeta.d.ts new file mode 100644 index 00000000..890a498a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.TropicalFishBucketMeta.d.ts @@ -0,0 +1,68 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + namespace meta { + // @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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + setBodyColor(color: org.bukkit.DyeColor): void; + /** + * Gets the fish's pattern. + *

+ * Plugins should check that hasVariant() returns true before + * calling this method. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + setPattern(pattern: org.bukkit.entity.TropicalFish.Pattern): void; + /** + * Checks for existence of a variant tag indicating a specific fish will be + * spawned. + */ + // @ts-ignore + hasVariant(): boolean; + // @ts-ignore + clone(): org.bukkit.inventory.meta.TropicalFishBucketMeta; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.tags.CustomItemTagContainer.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.tags.CustomItemTagContainer.d.ts new file mode 100644 index 00000000..224b7c8e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.tags.CustomItemTagContainer.d.ts @@ -0,0 +1,59 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + namespace meta { + namespace tags { + // @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. + */ + // @ts-ignore + setCustomTag(key: org.bukkit.NamespacedKey, type: org.bukkit.inventory.meta.tags.ItemTagType, value: java.lang.Object): void; + /** + * Returns if the item meta has a custom tag registered matching the + * provided parameters. + * This method will only return if the found value has the same primitive + * data type as the provided key. + * Storing a value using a custom {@link ItemTagType} implementation will + * not store the complex data type. Therefore storing a UUID (by storing a + * byte[]) will match hasCustomTag("key" , {@link ItemTagType#BYTE_ARRAY}). + * Likewise a stored byte[] will always match your UUID {@link ItemTagType} + * even if it is not 16 bytes long. + * This method is only usable for custom object keys. Overwriting existing + * tags, like the the display name, will not work as the values are stored + * using your namespace. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getCustomTag(key: org.bukkit.NamespacedKey, type: org.bukkit.inventory.meta.tags.ItemTagType): java.lang.Object; + /** + * Removes a custom key from the item meta. + */ + // @ts-ignore + removeCustomTag(key: org.bukkit.NamespacedKey): void; + /** + * Returns if the container instance is empty, therefore has no entries + * inside it. + */ + // @ts-ignore + isEmpty(): boolean; + /** + * Returns the adapter context this tag container uses. + */ + // @ts-ignore + getAdapterContext(): org.bukkit.inventory.meta.tags.ItemTagAdapterContext; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.tags.ItemTagAdapterContext.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.tags.ItemTagAdapterContext.d.ts new file mode 100644 index 00000000..9174b76f --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.tags.ItemTagAdapterContext.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + namespace meta { + namespace tags { + // @ts-ignore + interface ItemTagAdapterContext { + /** + * Creates a new and empty tag container instance. + */ + // @ts-ignore + newTagContainer(): org.bukkit.inventory.meta.tags.CustomItemTagContainer; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.tags.ItemTagType.PrimitiveTagType.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.tags.ItemTagType.PrimitiveTagType.d.ts new file mode 100644 index 00000000..c65b584e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.tags.ItemTagType.PrimitiveTagType.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + namespace meta { + namespace tags { + namespace ItemTagType { + // @ts-ignore + class PrimitiveTagType extends java.lang.Object implements org.bukkit.inventory.meta.tags.ItemTagType { + // @ts-ignore + public getPrimitiveType(): java.lang.Class; + // @ts-ignore + public getComplexType(): java.lang.Class; + // @ts-ignore + public toPrimitive(complex: java.lang.Object, context: org.bukkit.inventory.meta.tags.ItemTagAdapterContext): java.lang.Object; + // @ts-ignore + public fromPrimitive(primitive: java.lang.Object, context: org.bukkit.inventory.meta.tags.ItemTagAdapterContext): java.lang.Object; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.tags.ItemTagType.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.tags.ItemTagType.d.ts new file mode 100644 index 00000000..043e75f7 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.inventory.meta.tags.ItemTagType.d.ts @@ -0,0 +1,57 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace inventory { + namespace meta { + namespace tags { + // @ts-ignore + interface ItemTagType { + // @ts-ignore + BYTE: org.bukkit.inventory.meta.tags.ItemTagType; + // @ts-ignore + SHORT: org.bukkit.inventory.meta.tags.ItemTagType; + // @ts-ignore + INTEGER: org.bukkit.inventory.meta.tags.ItemTagType; + // @ts-ignore + LONG: org.bukkit.inventory.meta.tags.ItemTagType; + // @ts-ignore + FLOAT: org.bukkit.inventory.meta.tags.ItemTagType; + // @ts-ignore + DOUBLE: org.bukkit.inventory.meta.tags.ItemTagType; + // @ts-ignore + STRING: org.bukkit.inventory.meta.tags.ItemTagType; + // @ts-ignore + BYTE_ARRAY: org.bukkit.inventory.meta.tags.ItemTagType; + // @ts-ignore + INTEGER_ARRAY: org.bukkit.inventory.meta.tags.ItemTagType; + // @ts-ignore + LONG_ARRAY: org.bukkit.inventory.meta.tags.ItemTagType; + // @ts-ignore + TAG_CONTAINER: org.bukkit.inventory.meta.tags.ItemTagType; + /** + * Returns the primitive data type of this tag. + */ + // @ts-ignore + getPrimitiveType(): java.lang.Class; + /** + * Returns the complex object type the primitive value resembles. + */ + // @ts-ignore + getComplexType(): java.lang.Class; + /** + * Returns the primitive data that resembles the complex object passed to + * this method. + */ + // @ts-ignore + toPrimitive(complex: java.lang.Object, context: org.bukkit.inventory.meta.tags.ItemTagAdapterContext): java.lang.Object; + /** + * Creates a complex object based of the passed primitive value + */ + // @ts-ignore + fromPrimitive(primitive: java.lang.Object, context: org.bukkit.inventory.meta.tags.ItemTagAdapterContext): java.lang.Object; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.loot.LootContext.Builder.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.loot.LootContext.Builder.d.ts new file mode 100644 index 00000000..8b1f3202 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.loot.LootContext.Builder.d.ts @@ -0,0 +1,49 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace loot { + namespace LootContext { + // @ts-ignore + class Builder extends java.lang.Object { + /** + * Creates a new LootContext.Builder instance to facilitate easy + * creation of {@link LootContext}s. + */ + // @ts-ignore + constructor(location: org.bukkit.Location) + /** + * Set how much luck to have when generating loot. + */ + // @ts-ignore + public luck(luck: number): org.bukkit.loot.LootContext.Builder; + /** + * Set the {@link org.bukkit.enchantments.Enchantment#LOOT_BONUS_MOBS} + * level equivalent to use when generating loot. Values less than or + * equal to 0 will force the {@link LootTable} to only return a single + * {@link org.bukkit.inventory.ItemStack} per pool. + */ + // @ts-ignore + public lootingModifier(modifier: number): org.bukkit.loot.LootContext.Builder; + /** + * The entity that was killed. + */ + // @ts-ignore + public lootedEntity(lootedEntity: org.bukkit.entity.Entity): org.bukkit.loot.LootContext.Builder; + /** + * Set the {@link org.bukkit.entity.HumanEntity} that killed + * {@link #getLootedEntity()}. This entity will be used to get the + * looting level if {@link #lootingModifier(int)} is not set. + */ + // @ts-ignore + public killer(killer: org.bukkit.entity.HumanEntity): org.bukkit.loot.LootContext.Builder; + /** + * Create a new {@link LootContext} instance using the supplied + * parameters. + */ + // @ts-ignore + public build(): org.bukkit.loot.LootContext; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.loot.LootContext.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.loot.LootContext.d.ts new file mode 100644 index 00000000..67076761 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.loot.LootContext.d.ts @@ -0,0 +1,45 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace loot { + // @ts-ignore + class LootContext extends java.lang.Object { + // @ts-ignore + public static DEFAULT_LOOT_MODIFIER: number; + /** + * The {@link Location} to store where the loot will be generated. + */ + // @ts-ignore + public getLocation(): org.bukkit.Location; + /** + * Represents the {@link org.bukkit.potion.PotionEffectType#LUCK} that an + * entity can have. The higher the value the better chance of receiving more + * loot. + */ + // @ts-ignore + public getLuck(): number; + /** + * Represents the + * {@link org.bukkit.enchantments.Enchantment#LOOT_BONUS_MOBS} the + * {@link #getKiller()} entity has on their equipped item. + * This value is only set via + * {@link LootContext.Builder#lootingModifier(int)}. If not set, the + * {@link #getKiller()} entity's looting level will be used instead. + */ + // @ts-ignore + public getLootingModifier(): number; + /** + * Get the {@link Entity} that was killed. Can be null. + */ + // @ts-ignore + public getLootedEntity(): org.bukkit.entity.Entity; + /** + * Get the {@link HumanEntity} who killed the {@link #getLootedEntity()}. + * Can be null. + */ + // @ts-ignore + public getKiller(): org.bukkit.entity.HumanEntity; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.loot.LootTable.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.loot.LootTable.d.ts new file mode 100644 index 00000000..a6e31522 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.loot.LootTable.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace loot { + // @ts-ignore + interface LootTable extends org.bukkit.Keyed { + /** + * Returns a mutable list of loot generated by this LootTable. + */ + // @ts-ignore + populateLoot(random: java.util.Random, context: org.bukkit.loot.LootContext): java.util.Collection; + /** + * Attempt to fill an inventory with this LootTable's loot. + */ + // @ts-ignore + fillInventory(inventory: org.bukkit.inventory.Inventory, random: java.util.Random, context: org.bukkit.loot.LootContext): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.loot.LootTables.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.loot.LootTables.d.ts new file mode 100644 index 00000000..d43b11c6 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.loot.LootTables.d.ts @@ -0,0 +1,294 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace loot { + // @ts-ignore + class LootTables extends java.lang.Enum implements org.bukkit.Keyed { + // @ts-ignore + public static EMPTY: org.bukkit.loot.LootTables; + // @ts-ignore + public static ABANDONED_MINESHAFT: org.bukkit.loot.LootTables; + // @ts-ignore + public static BURIED_TREASURE: org.bukkit.loot.LootTables; + // @ts-ignore + public static DESERT_PYRAMID: org.bukkit.loot.LootTables; + // @ts-ignore + public static END_CITY_TREASURE: org.bukkit.loot.LootTables; + // @ts-ignore + public static IGLOO_CHEST: org.bukkit.loot.LootTables; + // @ts-ignore + public static JUNGLE_TEMPLE: org.bukkit.loot.LootTables; + // @ts-ignore + public static JUNGLE_TEMPLE_DISPENSER: org.bukkit.loot.LootTables; + // @ts-ignore + public static NETHER_BRIDGE: org.bukkit.loot.LootTables; + // @ts-ignore + public static PILLAGER_OUTPOST: org.bukkit.loot.LootTables; + // @ts-ignore + public static SHIPWRECK_MAP: org.bukkit.loot.LootTables; + // @ts-ignore + public static SHIPWRECK_SUPPLY: org.bukkit.loot.LootTables; + // @ts-ignore + public static SHIPWRECK_TREASURE: org.bukkit.loot.LootTables; + // @ts-ignore + public static SIMPLE_DUNGEON: org.bukkit.loot.LootTables; + // @ts-ignore + public static SPAWN_BONUS_CHEST: org.bukkit.loot.LootTables; + // @ts-ignore + public static STRONGHOLD_CORRIDOR: org.bukkit.loot.LootTables; + // @ts-ignore + public static STRONGHOLD_CROSSING: org.bukkit.loot.LootTables; + // @ts-ignore + public static STRONGHOLD_LIBRARY: org.bukkit.loot.LootTables; + // @ts-ignore + public static UNDERWATER_RUIN_BIG: org.bukkit.loot.LootTables; + // @ts-ignore + public static UNDERWATER_RUIN_SMALL: org.bukkit.loot.LootTables; + // @ts-ignore + public static VILLAGE_ARMORER: org.bukkit.loot.LootTables; + // @ts-ignore + public static VILLAGE_BUTCHER: org.bukkit.loot.LootTables; + // @ts-ignore + public static VILLAGE_CARTOGRAPHER: org.bukkit.loot.LootTables; + // @ts-ignore + public static VILLAGE_DESERT_HOUSE: org.bukkit.loot.LootTables; + // @ts-ignore + public static VILLAGE_FISHER: org.bukkit.loot.LootTables; + // @ts-ignore + public static VILLAGE_FLETCHER: org.bukkit.loot.LootTables; + // @ts-ignore + public static VILLAGE_MASON: org.bukkit.loot.LootTables; + // @ts-ignore + public static VILLAGE_PLAINS_HOUSE: org.bukkit.loot.LootTables; + // @ts-ignore + public static VILLAGE_SAVANNA_HOUSE: org.bukkit.loot.LootTables; + // @ts-ignore + public static VILLAGE_SHEPHERD: org.bukkit.loot.LootTables; + // @ts-ignore + public static VILLAGE_SNOWY_HOUSE: org.bukkit.loot.LootTables; + // @ts-ignore + public static VILLAGE_TAIGA_HOUSE: org.bukkit.loot.LootTables; + // @ts-ignore + public static VILLAGE_TANNERY: org.bukkit.loot.LootTables; + // @ts-ignore + public static VILLAGE_TEMPLE: org.bukkit.loot.LootTables; + // @ts-ignore + public static VILLAGE_TOOLSMITH: org.bukkit.loot.LootTables; + // @ts-ignore + public static VILLAGE_WEAPONSMITH: org.bukkit.loot.LootTables; + // @ts-ignore + public static WOODLAND_MANSION: org.bukkit.loot.LootTables; + // @ts-ignore + public static ARMOR_STAND: org.bukkit.loot.LootTables; + // @ts-ignore + public static BAT: org.bukkit.loot.LootTables; + // @ts-ignore + public static BLAZE: org.bukkit.loot.LootTables; + // @ts-ignore + public static CAT: org.bukkit.loot.LootTables; + // @ts-ignore + public static CAVE_SPIDER: org.bukkit.loot.LootTables; + // @ts-ignore + public static CHICKEN: org.bukkit.loot.LootTables; + // @ts-ignore + public static COD: org.bukkit.loot.LootTables; + // @ts-ignore + public static COW: org.bukkit.loot.LootTables; + // @ts-ignore + public static CREEPER: org.bukkit.loot.LootTables; + // @ts-ignore + public static DOLPHIN: org.bukkit.loot.LootTables; + // @ts-ignore + public static DONKEY: org.bukkit.loot.LootTables; + // @ts-ignore + public static DROWNED: org.bukkit.loot.LootTables; + // @ts-ignore + public static ELDER_GUARDIAN: org.bukkit.loot.LootTables; + // @ts-ignore + public static ENDERMAN: org.bukkit.loot.LootTables; + // @ts-ignore + public static ENDERMITE: org.bukkit.loot.LootTables; + // @ts-ignore + public static ENDER_DRAGON: org.bukkit.loot.LootTables; + // @ts-ignore + public static EVOKER: org.bukkit.loot.LootTables; + // @ts-ignore + public static FOX: org.bukkit.loot.LootTables; + // @ts-ignore + public static GHAST: org.bukkit.loot.LootTables; + // @ts-ignore + public static GIANT: org.bukkit.loot.LootTables; + // @ts-ignore + public static GUARDIAN: org.bukkit.loot.LootTables; + // @ts-ignore + public static HORSE: org.bukkit.loot.LootTables; + // @ts-ignore + public static HUSK: org.bukkit.loot.LootTables; + // @ts-ignore + public static ILLUSIONER: org.bukkit.loot.LootTables; + // @ts-ignore + public static IRON_GOLEM: org.bukkit.loot.LootTables; + // @ts-ignore + public static LLAMA: org.bukkit.loot.LootTables; + // @ts-ignore + public static MAGMA_CUBE: org.bukkit.loot.LootTables; + // @ts-ignore + public static MOOSHROOM: org.bukkit.loot.LootTables; + // @ts-ignore + public static MULE: org.bukkit.loot.LootTables; + // @ts-ignore + public static OCELOT: org.bukkit.loot.LootTables; + // @ts-ignore + public static PANDA: org.bukkit.loot.LootTables; + // @ts-ignore + public static PARROT: org.bukkit.loot.LootTables; + // @ts-ignore + public static PHANTOM: org.bukkit.loot.LootTables; + // @ts-ignore + public static PIG: org.bukkit.loot.LootTables; + // @ts-ignore + public static PILLAGER: org.bukkit.loot.LootTables; + // @ts-ignore + public static POLAR_BEAR: org.bukkit.loot.LootTables; + // @ts-ignore + public static PUFFERFISH: org.bukkit.loot.LootTables; + // @ts-ignore + public static RABBIT: org.bukkit.loot.LootTables; + // @ts-ignore + public static RAVAGER: org.bukkit.loot.LootTables; + // @ts-ignore + public static SALMON: org.bukkit.loot.LootTables; + // @ts-ignore + public static SHULKER: org.bukkit.loot.LootTables; + // @ts-ignore + public static SILVERFISH: org.bukkit.loot.LootTables; + // @ts-ignore + public static SKELETON: org.bukkit.loot.LootTables; + // @ts-ignore + public static SKELETON_HORSE: org.bukkit.loot.LootTables; + // @ts-ignore + public static SLIME: org.bukkit.loot.LootTables; + // @ts-ignore + public static SNOW_GOLEM: org.bukkit.loot.LootTables; + // @ts-ignore + public static SPIDER: org.bukkit.loot.LootTables; + // @ts-ignore + public static SQUID: org.bukkit.loot.LootTables; + // @ts-ignore + public static STRAY: org.bukkit.loot.LootTables; + // @ts-ignore + public static TRADER_LLAMA: org.bukkit.loot.LootTables; + // @ts-ignore + public static TROPICAL_FISH: org.bukkit.loot.LootTables; + // @ts-ignore + public static TURTLE: org.bukkit.loot.LootTables; + // @ts-ignore + public static VEX: org.bukkit.loot.LootTables; + // @ts-ignore + public static VILLAGER: org.bukkit.loot.LootTables; + // @ts-ignore + public static VINDICATOR: org.bukkit.loot.LootTables; + // @ts-ignore + public static WANDERING_TRADER: org.bukkit.loot.LootTables; + // @ts-ignore + public static WITCH: org.bukkit.loot.LootTables; + // @ts-ignore + public static WITHER: org.bukkit.loot.LootTables; + // @ts-ignore + public static WITHER_SKELETON: org.bukkit.loot.LootTables; + // @ts-ignore + public static WOLF: org.bukkit.loot.LootTables; + // @ts-ignore + public static ZOMBIE: org.bukkit.loot.LootTables; + // @ts-ignore + public static ZOMBIE_HORSE: org.bukkit.loot.LootTables; + // @ts-ignore + public static ZOMBIE_PIGMAN: org.bukkit.loot.LootTables; + // @ts-ignore + public static ZOMBIE_VILLAGER: org.bukkit.loot.LootTables; + // @ts-ignore + public static ARMORER_GIFT: org.bukkit.loot.LootTables; + // @ts-ignore + public static BUTCHER_GIFT: org.bukkit.loot.LootTables; + // @ts-ignore + public static CARTOGRAPHER_GIFT: org.bukkit.loot.LootTables; + // @ts-ignore + public static CAT_MORNING_GIFT: org.bukkit.loot.LootTables; + // @ts-ignore + public static CLERIC_GIFT: org.bukkit.loot.LootTables; + // @ts-ignore + public static FARMER_GIFT: org.bukkit.loot.LootTables; + // @ts-ignore + public static FISHERMAN_GIFT: org.bukkit.loot.LootTables; + // @ts-ignore + public static FISHING: org.bukkit.loot.LootTables; + // @ts-ignore + public static FISHING_FISH: org.bukkit.loot.LootTables; + // @ts-ignore + public static FISHING_JUNK: org.bukkit.loot.LootTables; + // @ts-ignore + public static FISHING_TREASURE: org.bukkit.loot.LootTables; + // @ts-ignore + public static FLETCHER_GIFT: org.bukkit.loot.LootTables; + // @ts-ignore + public static LEATHERWORKER_GIFT: org.bukkit.loot.LootTables; + // @ts-ignore + public static LIBRARIAN_GIFT: org.bukkit.loot.LootTables; + // @ts-ignore + public static MASON_GIFT: org.bukkit.loot.LootTables; + // @ts-ignore + public static SHEPHERD_GIFT: org.bukkit.loot.LootTables; + // @ts-ignore + public static TOOLSMITH_GIFT: org.bukkit.loot.LootTables; + // @ts-ignore + public static WEAPONSMITH_GIFT: org.bukkit.loot.LootTables; + // @ts-ignore + public static SHEEP: org.bukkit.loot.LootTables; + // @ts-ignore + public static SHEEP_BLACK: org.bukkit.loot.LootTables; + // @ts-ignore + public static SHEEP_BLUE: org.bukkit.loot.LootTables; + // @ts-ignore + public static SHEEP_BROWN: org.bukkit.loot.LootTables; + // @ts-ignore + public static SHEEP_CYAN: org.bukkit.loot.LootTables; + // @ts-ignore + public static SHEEP_GRAY: org.bukkit.loot.LootTables; + // @ts-ignore + public static SHEEP_GREEN: org.bukkit.loot.LootTables; + // @ts-ignore + public static SHEEP_LIGHT_BLUE: org.bukkit.loot.LootTables; + // @ts-ignore + public static SHEEP_LIGHT_GRAY: org.bukkit.loot.LootTables; + // @ts-ignore + public static SHEEP_LIME: org.bukkit.loot.LootTables; + // @ts-ignore + public static SHEEP_MAGENTA: org.bukkit.loot.LootTables; + // @ts-ignore + public static SHEEP_ORANGE: org.bukkit.loot.LootTables; + // @ts-ignore + public static SHEEP_PINK: org.bukkit.loot.LootTables; + // @ts-ignore + public static SHEEP_PURPLE: org.bukkit.loot.LootTables; + // @ts-ignore + public static SHEEP_RED: org.bukkit.loot.LootTables; + // @ts-ignore + public static SHEEP_WHITE: org.bukkit.loot.LootTables; + // @ts-ignore + public static SHEEP_YELLOW: org.bukkit.loot.LootTables; + // @ts-ignore + public static values(): org.bukkit.loot.LootTables[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.loot.LootTables; + // @ts-ignore + public getKey(): org.bukkit.NamespacedKey; + /** + * Get the {@link LootTable} corresponding to this constant. This is + * equivalent to calling {@code Bukkit.getLootTable(this.getKey());}. + */ + // @ts-ignore + public getLootTable(): org.bukkit.loot.LootTable; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.loot.Lootable.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.loot.Lootable.d.ts new file mode 100644 index 00000000..1c91a8a1 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.loot.Lootable.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace loot { + // @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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getLootTable(): org.bukkit.loot.LootTable; + /** + * Set the seed used when this Loot Table generates loot. + */ + // @ts-ignore + setSeed(seed: number): void; + /** + * Get the Loot Table's seed. + *
+ * The seed is used when generating loot. + */ + // @ts-ignore + getSeed(): number; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.map.MapCanvas.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.map.MapCanvas.d.ts new file mode 100644 index 00000000..68995aed --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.map.MapCanvas.d.ts @@ -0,0 +1,55 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace map { + // @ts-ignore + interface MapCanvas { + /** + * Get the map this canvas is attached to. + */ + // @ts-ignore + getMapView(): org.bukkit.map.MapView; + /** + * Get the cursor collection associated with this canvas. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + setCursors(cursors: org.bukkit.map.MapCursorCollection): void; + /** + * Draw a pixel to the canvas. + */ + // @ts-ignore + setPixel(x: number, y: number, color: number): void; + /** + * Get a pixel from the canvas. + */ + // @ts-ignore + getPixel(x: number, y: number): number; + /** + * Get a pixel from the layers below this canvas. + */ + // @ts-ignore + getBasePixel(x: number, y: number): number; + /** + * Draw an image to the map. The image will be clipped if necessary. + */ + // @ts-ignore + drawImage(x: number, y: number, image: java.awt.Image): 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}). + */ + // @ts-ignore + drawText(x: number, y: number, font: org.bukkit.map.MapFont, text: string): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.map.MapCursor.Type.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.map.MapCursor.Type.d.ts new file mode 100644 index 00000000..e43d86dd --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.map.MapCursor.Type.d.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace map { + namespace MapCursor { + // @ts-ignore + class Type extends java.lang.Enum { + // @ts-ignore + public static WHITE_POINTER: org.bukkit.map.MapCursor.Type; + // @ts-ignore + public static GREEN_POINTER: org.bukkit.map.MapCursor.Type; + // @ts-ignore + public static RED_POINTER: org.bukkit.map.MapCursor.Type; + // @ts-ignore + public static BLUE_POINTER: org.bukkit.map.MapCursor.Type; + // @ts-ignore + public static WHITE_CROSS: org.bukkit.map.MapCursor.Type; + // @ts-ignore + public static RED_MARKER: org.bukkit.map.MapCursor.Type; + // @ts-ignore + public static WHITE_CIRCLE: org.bukkit.map.MapCursor.Type; + // @ts-ignore + public static SMALL_WHITE_CIRCLE: org.bukkit.map.MapCursor.Type; + // @ts-ignore + public static MANSION: org.bukkit.map.MapCursor.Type; + // @ts-ignore + public static TEMPLE: org.bukkit.map.MapCursor.Type; + // @ts-ignore + public static BANNER_WHITE: org.bukkit.map.MapCursor.Type; + // @ts-ignore + public static BANNER_ORANGE: org.bukkit.map.MapCursor.Type; + // @ts-ignore + public static BANNER_MAGENTA: org.bukkit.map.MapCursor.Type; + // @ts-ignore + public static BANNER_LIGHT_BLUE: org.bukkit.map.MapCursor.Type; + // @ts-ignore + public static BANNER_YELLOW: org.bukkit.map.MapCursor.Type; + // @ts-ignore + public static BANNER_LIME: org.bukkit.map.MapCursor.Type; + // @ts-ignore + public static BANNER_PINK: org.bukkit.map.MapCursor.Type; + // @ts-ignore + public static BANNER_GRAY: org.bukkit.map.MapCursor.Type; + // @ts-ignore + public static BANNER_LIGHT_GRAY: org.bukkit.map.MapCursor.Type; + // @ts-ignore + public static BANNER_CYAN: org.bukkit.map.MapCursor.Type; + // @ts-ignore + public static BANNER_PURPLE: org.bukkit.map.MapCursor.Type; + // @ts-ignore + public static BANNER_BLUE: org.bukkit.map.MapCursor.Type; + // @ts-ignore + public static BANNER_BROWN: org.bukkit.map.MapCursor.Type; + // @ts-ignore + public static BANNER_GREEN: org.bukkit.map.MapCursor.Type; + // @ts-ignore + public static BANNER_RED: org.bukkit.map.MapCursor.Type; + // @ts-ignore + public static BANNER_BLACK: org.bukkit.map.MapCursor.Type; + // @ts-ignore + public static RED_X: org.bukkit.map.MapCursor.Type; + // @ts-ignore + public static values(): org.bukkit.map.MapCursor.Type[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.map.MapCursor.Type; + // @ts-ignore + public getValue(): number; + // @ts-ignore + public static byValue(value: number): org.bukkit.map.MapCursor.Type; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.map.MapCursor.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.map.MapCursor.d.ts new file mode 100644 index 00000000..757b513d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.map.MapCursor.d.ts @@ -0,0 +1,100 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace map { + // @ts-ignore + class MapCursor extends java.lang.Object { + /** + * Initialize the map cursor. + */ + // @ts-ignore + constructor(x: number, y: number, direction: number, type: number, visible: boolean) + /** + * Initialize the map cursor. + */ + // @ts-ignore + constructor(x: number, y: number, direction: number, type: org.bukkit.map.MapCursor.Type, visible: boolean) + /** + * Initialize the map cursor. + */ + // @ts-ignore + constructor(x: number, y: number, direction: number, type: number, visible: boolean, caption: string) + /** + * Initialize the map cursor. + */ + // @ts-ignore + constructor(x: number, y: number, direction: number, type: org.bukkit.map.MapCursor.Type, visible: boolean, caption: string) + /** + * Get the X position of this cursor. + */ + // @ts-ignore + public getX(): number; + /** + * Get the Y position of this cursor. + */ + // @ts-ignore + public getY(): number; + /** + * Get the direction of this cursor. + */ + // @ts-ignore + public getDirection(): number; + /** + * Get the type of this cursor. + */ + // @ts-ignore + public getType(): org.bukkit.map.MapCursor.Type; + /** + * Get the type of this cursor. + */ + // @ts-ignore + public getRawType(): number; + /** + * Get the visibility status of this cursor. + */ + // @ts-ignore + public isVisible(): boolean; + /** + * Set the X position of this cursor. + */ + // @ts-ignore + public setX(x: number): void; + /** + * Set the Y position of this cursor. + */ + // @ts-ignore + public setY(y: number): void; + /** + * Set the direction of this cursor. + */ + // @ts-ignore + public setDirection(direction: number): void; + /** + * Set the type of this cursor. + */ + // @ts-ignore + public setType(type: org.bukkit.map.MapCursor.Type): void; + /** + * Set the type of this cursor. + */ + // @ts-ignore + public setRawType(type: number): void; + /** + * Set the visibility status of this cursor. + */ + // @ts-ignore + public setVisible(visible: boolean): void; + /** + * Gets the caption on this cursor. + */ + // @ts-ignore + public getCaption(): string; + /** + * Sets the caption on this cursor. + */ + // @ts-ignore + public setCaption(caption: string): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.map.MapCursorCollection.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.map.MapCursorCollection.d.ts new file mode 100644 index 00000000..d56aad4e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.map.MapCursorCollection.d.ts @@ -0,0 +1,52 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace map { + // @ts-ignore + class MapCursorCollection extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Get the amount of cursors in this collection. + */ + // @ts-ignore + public size(): number; + /** + * Get a cursor from this collection. + */ + // @ts-ignore + public getCursor(index: number): org.bukkit.map.MapCursor; + /** + * Remove a cursor from the collection. + */ + // @ts-ignore + public removeCursor(cursor: org.bukkit.map.MapCursor): boolean; + /** + * Add a cursor to the collection. + */ + // @ts-ignore + public addCursor(cursor: org.bukkit.map.MapCursor): org.bukkit.map.MapCursor; + /** + * Add a cursor to the collection. + */ + // @ts-ignore + public addCursor(x: number, y: number, direction: number): org.bukkit.map.MapCursor; + /** + * Add a cursor to the collection. + */ + // @ts-ignore + public addCursor(x: number, y: number, direction: number, type: number): org.bukkit.map.MapCursor; + /** + * Add a cursor to the collection. + */ + // @ts-ignore + public addCursor(x: number, y: number, direction: number, type: number, visible: boolean): org.bukkit.map.MapCursor; + /** + * Add a cursor to the collection. + */ + // @ts-ignore + public addCursor(x: number, y: number, direction: number, type: number, visible: boolean, caption: string): org.bukkit.map.MapCursor; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.map.MapFont.CharacterSprite.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.map.MapFont.CharacterSprite.d.ts new file mode 100644 index 00000000..70d23102 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.map.MapFont.CharacterSprite.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace map { + namespace MapFont { + // @ts-ignore + class CharacterSprite extends java.lang.Object { + // @ts-ignore + constructor(width: number, height: number, data: boolean) + /** + * Get the value of a pixel of the character. + */ + // @ts-ignore + public get(row: number, col: number): boolean; + /** + * Get the width of the character sprite. + */ + // @ts-ignore + public getWidth(): number; + /** + * Get the height of the character sprite. + */ + // @ts-ignore + public getHeight(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.map.MapFont.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.map.MapFont.d.ts new file mode 100644 index 00000000..aa9aed04 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.map.MapFont.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace map { + // @ts-ignore + class MapFont extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + protected malleable: boolean; + /** + * Set the sprite for a given character. + */ + // @ts-ignore + public setChar(ch: string, sprite: org.bukkit.map.MapFont.CharacterSprite): void; + /** + * Get the sprite for a given character. + */ + // @ts-ignore + public getChar(ch: string): org.bukkit.map.MapFont.CharacterSprite; + /** + * Get the width of the given text as it would be rendered using this + * font. + */ + // @ts-ignore + public getWidth(text: string): number; + /** + * Get the height of this font. + */ + // @ts-ignore + public getHeight(): number; + /** + * Check whether the given text is valid. + */ + // @ts-ignore + public isValid(text: string): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.map.MapPalette.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.map.MapPalette.d.ts new file mode 100644 index 00000000..e6916410 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.map.MapPalette.d.ts @@ -0,0 +1,65 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace map { + // @ts-ignore + class MapPalette extends java.lang.Object { + // @ts-ignore + public static TRANSPARENT: number; + // @ts-ignore + public static LIGHT_GREEN: number; + // @ts-ignore + public static LIGHT_BROWN: number; + // @ts-ignore + public static GRAY_1: number; + // @ts-ignore + public static RED: number; + // @ts-ignore + public static PALE_BLUE: number; + // @ts-ignore + public static GRAY_2: number; + // @ts-ignore + public static DARK_GREEN: number; + // @ts-ignore + public static WHITE: number; + // @ts-ignore + public static LIGHT_GRAY: number; + // @ts-ignore + public static BROWN: number; + // @ts-ignore + public static DARK_GRAY: number; + // @ts-ignore + public static BLUE: number; + // @ts-ignore + public static DARK_BROWN: number; + /** + * Resize an image to 128x128. + */ + // @ts-ignore + public static resizeImage(image: java.awt.Image): java.awt.image.BufferedImage; + /** + * Convert an Image to a byte[] using the palette. + */ + // @ts-ignore + public static imageToBytes(image: java.awt.Image): number[]; + /** + * Get the index of the closest matching color in the palette to the given + * color. + */ + // @ts-ignore + public static matchColor(r: number, g: number, b: number): number; + /** + * Get the index of the closest matching color in the palette to the given + * color. + */ + // @ts-ignore + public static matchColor(color: java.awt.Color): number; + /** + * Get the value of the given color in the palette. + */ + // @ts-ignore + public static getColor(index: number): java.awt.Color; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.map.MapRenderer.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.map.MapRenderer.d.ts new file mode 100644 index 00000000..0d6e05f5 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.map.MapRenderer.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace map { + // @ts-ignore + abstract class MapRenderer extends java.lang.Object { + /** + * Initialize the map renderer base to be non-contextual. See {@link + * #isContextual()}. + */ + // @ts-ignore + constructor() + /** + * Initialize the map renderer base with the given contextual status. + */ + // @ts-ignore + constructor(contextual: boolean) + /** + * Get whether the renderer is contextual, i.e. has different canvases for + * different players. + */ + // @ts-ignore + public isContextual(): boolean; + /** + * Initialize this MapRenderer for the given map. + */ + // @ts-ignore + public initialize(map: org.bukkit.map.MapView): void; + /** + * Render to the given map. + */ + // @ts-ignore + public abstract render(map: org.bukkit.map.MapView, canvas: org.bukkit.map.MapCanvas, player: org.bukkit.entity.Player): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.map.MapView.Scale.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.map.MapView.Scale.d.ts new file mode 100644 index 00000000..15b51e6d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.map.MapView.Scale.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace map { + namespace MapView { + // @ts-ignore + class Scale extends java.lang.Enum { + // @ts-ignore + public static CLOSEST: org.bukkit.map.MapView.Scale; + // @ts-ignore + public static CLOSE: org.bukkit.map.MapView.Scale; + // @ts-ignore + public static NORMAL: org.bukkit.map.MapView.Scale; + // @ts-ignore + public static FAR: org.bukkit.map.MapView.Scale; + // @ts-ignore + public static FARTHEST: org.bukkit.map.MapView.Scale; + // @ts-ignore + public static values(): org.bukkit.map.MapView.Scale[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.map.MapView.Scale; + /** + * Get the scale given the raw value. + */ + // @ts-ignore + public static valueOf(value: number): org.bukkit.map.MapView.Scale; + /** + * Get the raw value of this scale level. + */ + // @ts-ignore + public getValue(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.map.MapView.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.map.MapView.d.ts new file mode 100644 index 00000000..e92c63bb --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.map.MapView.d.ts @@ -0,0 +1,115 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace map { + // @ts-ignore + interface MapView { + /** + * Get the ID of this map item for use with {@link MapMeta}. + */ + // @ts-ignore + getId(): number; + /** + * Check whether this map is virtual. A map is virtual if its lowermost + * MapRenderer is plugin-provided. + */ + // @ts-ignore + isVirtual(): boolean; + /** + * Get the scale of this map. + */ + // @ts-ignore + getScale(): org.bukkit.map.MapView.Scale; + /** + * Set the scale of this map. + */ + // @ts-ignore + setScale(scale: org.bukkit.map.MapView.Scale): void; + /** + * Get the center X position of this map. + */ + // @ts-ignore + getCenterX(): number; + /** + * Get the center Z position of this map. + */ + // @ts-ignore + getCenterZ(): number; + /** + * Set the center X position of this map. + */ + // @ts-ignore + setCenterX(x: number): void; + /** + * Set the center Z position of this map. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + setWorld(world: org.bukkit.World): void; + /** + * Get a list of MapRenderers currently in effect. + */ + // @ts-ignore + getRenderers(): java.util.List; + /** + * Add a renderer to this map. + */ + // @ts-ignore + addRenderer(renderer: org.bukkit.map.MapRenderer): void; + /** + * Remove a renderer from this map. + */ + // @ts-ignore + removeRenderer(renderer: org.bukkit.map.MapRenderer): boolean; + /** + * Gets whether a position cursor should be shown when the map is near its + * center. + */ + // @ts-ignore + isTrackingPosition(): boolean; + /** + * Sets whether a position cursor should be shown when the map is near its + * center. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + setUnlimitedTracking(unlimited: boolean): void; + /** + * Gets whether the map is locked or not. + * A locked map may not be explored further. + */ + // @ts-ignore + isLocked(): boolean; + /** + * Gets whether the map is locked or not. + * A locked map may not be explored further. + */ + // @ts-ignore + setLocked(locked: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.map.MinecraftFont.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.map.MinecraftFont.d.ts new file mode 100644 index 00000000..2470d8b9 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.map.MinecraftFont.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace map { + // @ts-ignore + class MinecraftFont extends org.bukkit.map.MapFont { + /** + * Initialize a new MinecraftFont. + */ + // @ts-ignore + constructor() + // @ts-ignore + public static Font: org.bukkit.map.MinecraftFont; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Attachable.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Attachable.d.ts new file mode 100644 index 00000000..8fd555e1 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Attachable.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + interface Attachable extends org.bukkit.material.Directional { + /** + * Gets the face that this block is attached on + */ + // @ts-ignore + getAttachedFace(): org.bukkit.block.BlockFace; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Banner.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Banner.d.ts new file mode 100644 index 00000000..7f4cffdd --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Banner.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Banner extends org.bukkit.material.MaterialData implements org.bukkit.material.Attachable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + public isWallBanner(): boolean; + // @ts-ignore + public getAttachedFace(): org.bukkit.block.BlockFace; + // @ts-ignore + public getFacing(): org.bukkit.block.BlockFace; + // @ts-ignore + public setFacingDirection(face: org.bukkit.block.BlockFace): void; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.Banner; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Bed.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Bed.d.ts new file mode 100644 index 00000000..09eff1ea --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Bed.d.ts @@ -0,0 +1,49 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Bed extends org.bukkit.material.MaterialData implements org.bukkit.material.Directional { + /** + * Default constructor for a bed. + */ + // @ts-ignore + constructor() + /** + * Instantiate a bed facing in a particular direction. + */ + // @ts-ignore + constructor(direction: org.bukkit.block.BlockFace) + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + /** + * Determine if this block represents the head of the bed + */ + // @ts-ignore + public isHeadOfBed(): boolean; + /** + * Configure this to be either the head or the foot of the bed + */ + // @ts-ignore + public setHeadOfBed(isHeadOfBed: boolean): void; + /** + * Set which direction the head of the bed is facing. Note that this will + * only affect one of the two blocks the bed is made of. + */ + // @ts-ignore + public setFacingDirection(face: org.bukkit.block.BlockFace): void; + /** + * Get the direction that this bed's head is facing toward + */ + // @ts-ignore + public getFacing(): org.bukkit.block.BlockFace; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.Bed; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Button.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Button.d.ts new file mode 100644 index 00000000..d3744fdc --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Button.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Button extends org.bukkit.material.SimpleAttachableMaterialData implements org.bukkit.material.Redstone { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + /** + * Gets the current state of this Material, indicating if it's powered or + * unpowered + */ + // @ts-ignore + public isPowered(): boolean; + /** + * Sets the current state of this button + */ + // @ts-ignore + public setPowered(bool: boolean): void; + /** + * Gets the face that this block is attached on + */ + // @ts-ignore + public getAttachedFace(): org.bukkit.block.BlockFace; + /** + * Sets the direction this button is pointing toward + */ + // @ts-ignore + public setFacingDirection(face: org.bukkit.block.BlockFace): void; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.Button; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Cake.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Cake.d.ts new file mode 100644 index 00000000..ecdcca06 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Cake.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Cake extends org.bukkit.material.MaterialData { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + /** + * Gets the number of slices eaten from this cake + */ + // @ts-ignore + public getSlicesEaten(): number; + /** + * Gets the number of slices remaining on this cake + */ + // @ts-ignore + public getSlicesRemaining(): number; + /** + * Sets the number of slices eaten from this cake + */ + // @ts-ignore + public setSlicesEaten(n: number): void; + /** + * Sets the number of slices remaining on this cake + */ + // @ts-ignore + public setSlicesRemaining(n: number): void; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.Cake; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Cauldron.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Cauldron.d.ts new file mode 100644 index 00000000..49bbff89 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Cauldron.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Cauldron extends org.bukkit.material.MaterialData { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + constructor(data: number) + /** + * Check if the cauldron is full. + */ + // @ts-ignore + public isFull(): boolean; + /** + * Check if the cauldron is empty. + */ + // @ts-ignore + public isEmpty(): boolean; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.Cauldron; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Chest.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Chest.d.ts new file mode 100644 index 00000000..e48fd4b0 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Chest.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Chest extends org.bukkit.material.DirectionalContainer { + // @ts-ignore + constructor() + /** + * Instantiate a chest facing in a particular direction. + */ + // @ts-ignore + constructor(direction: org.bukkit.block.BlockFace) + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + public clone(): org.bukkit.material.Chest; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Coal.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Coal.d.ts new file mode 100644 index 00000000..c1fcffd8 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Coal.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Coal extends org.bukkit.material.MaterialData { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: org.bukkit.CoalType) + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + /** + * Gets the current type of this coal + */ + // @ts-ignore + public getType(): org.bukkit.CoalType; + /** + * Sets the type of this coal + */ + // @ts-ignore + public setType(type: org.bukkit.CoalType): void; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.Coal; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.CocoaPlant.CocoaPlantSize.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.CocoaPlant.CocoaPlantSize.d.ts new file mode 100644 index 00000000..834b78bd --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.CocoaPlant.CocoaPlantSize.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + namespace CocoaPlant { + // @ts-ignore + class CocoaPlantSize extends java.lang.Enum { + // @ts-ignore + public static SMALL: org.bukkit.material.CocoaPlant.CocoaPlantSize; + // @ts-ignore + public static MEDIUM: org.bukkit.material.CocoaPlant.CocoaPlantSize; + // @ts-ignore + public static LARGE: org.bukkit.material.CocoaPlant.CocoaPlantSize; + // @ts-ignore + public static values(): org.bukkit.material.CocoaPlant.CocoaPlantSize[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.material.CocoaPlant.CocoaPlantSize; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.CocoaPlant.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.CocoaPlant.d.ts new file mode 100644 index 00000000..17f8fe70 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.CocoaPlant.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class CocoaPlant extends org.bukkit.material.MaterialData implements org.bukkit.material.Directional, org.bukkit.material.Attachable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + constructor(sz: org.bukkit.material.CocoaPlant.CocoaPlantSize) + // @ts-ignore + constructor(sz: org.bukkit.material.CocoaPlant.CocoaPlantSize, dir: org.bukkit.block.BlockFace) + /** + * Get size of plant + */ + // @ts-ignore + public getSize(): org.bukkit.material.CocoaPlant.CocoaPlantSize; + /** + * Set size of plant + */ + // @ts-ignore + public setSize(sz: org.bukkit.material.CocoaPlant.CocoaPlantSize): void; + // @ts-ignore + public getAttachedFace(): org.bukkit.block.BlockFace; + // @ts-ignore + public setFacingDirection(face: org.bukkit.block.BlockFace): void; + // @ts-ignore + public getFacing(): org.bukkit.block.BlockFace; + // @ts-ignore + public clone(): org.bukkit.material.CocoaPlant; + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Colorable.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Colorable.d.ts new file mode 100644 index 00000000..fb3358ab --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Colorable.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @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). + */ + // @ts-ignore + 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). + */ + // @ts-ignore + setColor(color: org.bukkit.DyeColor): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Command.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Command.d.ts new file mode 100644 index 00000000..f2c23bbc --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Command.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Command extends org.bukkit.material.MaterialData implements org.bukkit.material.Redstone { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + /** + * Gets the current state of this Material, indicating if it's powered or + * unpowered + */ + // @ts-ignore + public isPowered(): boolean; + /** + * Sets the current state of this Material + */ + // @ts-ignore + public setPowered(bool: boolean): void; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.Command; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Comparator.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Comparator.d.ts new file mode 100644 index 00000000..ddcdb306 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Comparator.d.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Comparator extends org.bukkit.material.MaterialData 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). + */ + // @ts-ignore + constructor() + /** + * Constructs a comparator switched off, with the default mode (normal) and facing the specified direction. + */ + // @ts-ignore + constructor(facingDirection: org.bukkit.block.BlockFace) + /** + * Constructs a comparator switched off, with the specified mode and facing the specified direction. + */ + // @ts-ignore + constructor(facingDirection: org.bukkit.block.BlockFace, isSubtraction: boolean) + /** + * Constructs a comparator switched on or off, with the specified mode and facing the specified direction. + */ + // @ts-ignore + constructor(facingDirection: org.bukkit.block.BlockFace, isSubtraction: boolean, state: boolean) + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + protected static DEFAULT_DIRECTION: org.bukkit.block.BlockFace; + // @ts-ignore + protected static DEFAULT_SUBTRACTION_MODE: boolean; + // @ts-ignore + protected static DEFAULT_STATE: boolean; + /** + * Sets whether the comparator is in subtraction mode. + */ + // @ts-ignore + public setSubtractionMode(isSubtraction: boolean): void; + /** + * Checks whether the comparator is in subtraction mode + */ + // @ts-ignore + public isSubtractionMode(): boolean; + /** + * Sets the direction this comparator is facing + */ + // @ts-ignore + public setFacingDirection(face: org.bukkit.block.BlockFace): void; + /** + * Gets the direction this comparator is facing + */ + // @ts-ignore + public getFacing(): org.bukkit.block.BlockFace; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.Comparator; + /** + * Checks if the comparator is powered + */ + // @ts-ignore + public isPowered(): boolean; + /** + * Checks if the comparator is being powered + */ + // @ts-ignore + public isBeingPowered(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Crops.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Crops.d.ts new file mode 100644 index 00000000..c9e10c06 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Crops.d.ts @@ -0,0 +1,58 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Crops extends org.bukkit.material.MaterialData { + /** + * Constructs a wheat crop block in the seeded state. + */ + // @ts-ignore + constructor() + /** + * Constructs a wheat crop block in the given growth state + */ + // @ts-ignore + constructor(state: org.bukkit.CropState) + /** + * Constructs a crop block of the given type and in the given growth state + */ + // @ts-ignore + constructor(type: org.bukkit.Material, state: org.bukkit.CropState) + /** + * Constructs a crop block of the given type and in the seeded state + */ + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + protected static DEFAULT_TYPE: org.bukkit.Material; + // @ts-ignore + protected static DEFAULT_STATE: org.bukkit.CropState; + /** + * Gets the current growth state of this crop + * For crops with only four growth states such as beetroot, only the values SEEDED, SMALL, TALL and RIPE will be + * returned. + */ + // @ts-ignore + public getState(): org.bukkit.CropState; + /** + * Sets the growth state of this crop + * For crops with only four growth states such as beetroot, the 8 CropStates are mapped into four states: + * SEEDED, SMALL, TALL and RIPE + * GERMINATED will change to SEEDED + * VERY_SMALL will change to SMALL + * MEDIUM will change to TALL + * VERY_TALL will change to RIPE + */ + // @ts-ignore + public setState(state: org.bukkit.CropState): void; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.Crops; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.DetectorRail.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.DetectorRail.d.ts new file mode 100644 index 00000000..b7c57462 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.DetectorRail.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class DetectorRail extends org.bukkit.material.ExtendedRails implements org.bukkit.material.PressureSensor { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + public isPressed(): boolean; + // @ts-ignore + public setPressed(isPressed: boolean): void; + // @ts-ignore + public clone(): org.bukkit.material.DetectorRail; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Diode.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Diode.d.ts new file mode 100644 index 00000000..3ecfd59d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Diode.d.ts @@ -0,0 +1,75 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Diode extends org.bukkit.material.MaterialData 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). + * By default this constructor creates a diode that is switched on for + * backwards compatibility with past implementations. + */ + // @ts-ignore + constructor() + /** + * Constructs a diode switched off, with a delay of 1 and facing the + * specified direction. + */ + // @ts-ignore + constructor(facingDirection: org.bukkit.block.BlockFace) + /** + * Constructs a diode switched off, with the specified delay and facing the + * specified direction. + */ + // @ts-ignore + constructor(facingDirection: org.bukkit.block.BlockFace, delay: number) + /** + * Constructs a diode switched on or off, with the specified delay and + * facing the specified direction. + */ + // @ts-ignore + constructor(facingDirection: org.bukkit.block.BlockFace, delay: number, state: boolean) + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + protected static DEFAULT_DIRECTION: org.bukkit.block.BlockFace; + // @ts-ignore + protected static DEFAULT_DELAY: number; + // @ts-ignore + protected static DEFAULT_STATE: boolean; + /** + * Sets the delay of the repeater. + */ + // @ts-ignore + public setDelay(delay: number): void; + /** + * Gets the delay of the repeater in ticks. + */ + // @ts-ignore + public getDelay(): number; + /** + * Sets the direction this diode is facing. + */ + // @ts-ignore + public setFacingDirection(face: org.bukkit.block.BlockFace): void; + /** + * Gets the direction this diode is facing + */ + // @ts-ignore + public getFacing(): org.bukkit.block.BlockFace; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.Diode; + /** + * Checks if the diode is powered. + */ + // @ts-ignore + public isPowered(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Directional.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Directional.d.ts new file mode 100644 index 00000000..c9fe451d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Directional.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + interface Directional { + /** + * Sets the direction that this block is facing in + */ + // @ts-ignore + setFacingDirection(face: org.bukkit.block.BlockFace): void; + /** + * Gets the direction this block is facing + */ + // @ts-ignore + getFacing(): org.bukkit.block.BlockFace; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.DirectionalContainer.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.DirectionalContainer.d.ts new file mode 100644 index 00000000..dbafa10b --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.DirectionalContainer.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class DirectionalContainer extends org.bukkit.material.MaterialData implements org.bukkit.material.Directional { + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + public setFacingDirection(face: org.bukkit.block.BlockFace): void; + // @ts-ignore + public getFacing(): org.bukkit.block.BlockFace; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.DirectionalContainer; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Dispenser.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Dispenser.d.ts new file mode 100644 index 00000000..0372d2c4 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Dispenser.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Dispenser extends org.bukkit.material.FurnaceAndDispenser { + // @ts-ignore + constructor() + // @ts-ignore + constructor(direction: org.bukkit.block.BlockFace) + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + public setFacingDirection(face: org.bukkit.block.BlockFace): void; + // @ts-ignore + public getFacing(): org.bukkit.block.BlockFace; + // @ts-ignore + public clone(): org.bukkit.material.Dispenser; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Door.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Door.d.ts new file mode 100644 index 00000000..7aa05f99 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Door.d.ts @@ -0,0 +1,101 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Door extends org.bukkit.material.MaterialData implements org.bukkit.material.Directional, org.bukkit.material.Openable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: org.bukkit.Material) + /** + * Constructs the bottom half of a door of the given material type, facing the specified direction and set to closed + */ + // @ts-ignore + constructor(type: org.bukkit.Material, face: org.bukkit.block.BlockFace) + /** + * Constructs the bottom half of a door of the given material type, facing the specified direction and set to open + * or closed + */ + // @ts-ignore + constructor(type: org.bukkit.Material, face: org.bukkit.block.BlockFace, isOpen: boolean) + /** + * Constructs the top half of door of the given material type and with the hinge on the left or right + */ + // @ts-ignore + constructor(type: org.bukkit.Material, isHingeRight: boolean) + /** + * Constructs the bottom half of a wooden door of the given species, facing the specified direction and set to + * closed + */ + // @ts-ignore + constructor(species: org.bukkit.TreeSpecies, face: org.bukkit.block.BlockFace) + /** + * Constructs the bottom half of a wooden door of the given species, facing the specified direction and set to open + * or closed + */ + // @ts-ignore + constructor(species: org.bukkit.TreeSpecies, face: org.bukkit.block.BlockFace, isOpen: boolean) + /** + * Constructs the top half of a wooden door of the given species and with the hinge on the left or right + */ + // @ts-ignore + constructor(species: org.bukkit.TreeSpecies, isHingeRight: boolean) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + /** + * Returns the item type of a wooden door for the given tree species. + */ + // @ts-ignore + public static getWoodDoorOfSpecies(species: org.bukkit.TreeSpecies): org.bukkit.Material; + /** + * Result is undefined if isTopHalf() is true. + */ + // @ts-ignore + public isOpen(): boolean; + /** + * Set whether the door is open. Undefined if isTopHalf() is true. + */ + // @ts-ignore + public setOpen(isOpen: boolean): void; + // @ts-ignore + public isTopHalf(): boolean; + /** + * Configure this part of the door to be either the top or the bottom half + */ + // @ts-ignore + public setTopHalf(isTopHalf: boolean): void; + // @ts-ignore + public getHingeCorner(): org.bukkit.block.BlockFace; + // @ts-ignore + public toString(): string; + /** + * Set the direction that this door should is facing. + * Undefined if isTopHalf() is true. + */ + // @ts-ignore + public setFacingDirection(face: org.bukkit.block.BlockFace): void; + /** + * Get the direction that this door is facing. + * Undefined if isTopHalf() is true. + */ + // @ts-ignore + public getFacing(): org.bukkit.block.BlockFace; + /** + * Returns the side of the door the hinge is on. + * Undefined if isTopHalf() is false. + */ + // @ts-ignore + public getHinge(): boolean; + /** + * Set whether the hinge is on the left or right side. Left is false, right is true. + * Undefined if isTopHalf() is false. + */ + // @ts-ignore + public setHinge(isHingeRight: boolean): void; + // @ts-ignore + public clone(): org.bukkit.material.Door; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Dye.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Dye.d.ts new file mode 100644 index 00000000..ff781280 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Dye.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Dye extends org.bukkit.material.MaterialData implements org.bukkit.material.Colorable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + constructor(color: org.bukkit.DyeColor) + /** + * Gets the current color of this dye + */ + // @ts-ignore + public getColor(): org.bukkit.DyeColor; + /** + * Sets the color of this dye + */ + // @ts-ignore + public setColor(color: org.bukkit.DyeColor): void; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.Dye; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.EnderChest.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.EnderChest.d.ts new file mode 100644 index 00000000..60ae8db2 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.EnderChest.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class EnderChest extends org.bukkit.material.DirectionalContainer { + // @ts-ignore + constructor() + /** + * Instantiate an ender chest facing in a particular direction. + */ + // @ts-ignore + constructor(direction: org.bukkit.block.BlockFace) + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + public clone(): org.bukkit.material.EnderChest; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.ExtendedRails.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.ExtendedRails.d.ts new file mode 100644 index 00000000..f59feee8 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.ExtendedRails.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class ExtendedRails extends org.bukkit.material.Rails { + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + public isCurve(): boolean; + // @ts-ignore + protected getConvertedData(): number; + // @ts-ignore + public setDirection(face: org.bukkit.block.BlockFace, isOnSlope: boolean): void; + // @ts-ignore + public clone(): org.bukkit.material.ExtendedRails; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.FlowerPot.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.FlowerPot.d.ts new file mode 100644 index 00000000..c80879a3 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.FlowerPot.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class FlowerPot extends org.bukkit.material.MaterialData { + /** + * Default constructor for a flower pot. + */ + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + /** + * Get the material in the flower pot + */ + // @ts-ignore + public getContents(): org.bukkit.material.MaterialData; + /** + * Set the contents of the flower pot + */ + // @ts-ignore + public setContents(materialData: org.bukkit.material.MaterialData): void; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.FlowerPot; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Furnace.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Furnace.d.ts new file mode 100644 index 00000000..54422812 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Furnace.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Furnace extends org.bukkit.material.FurnaceAndDispenser { + // @ts-ignore + constructor() + /** + * Instantiate a furnace facing in a particular direction. + */ + // @ts-ignore + constructor(direction: org.bukkit.block.BlockFace) + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + public clone(): org.bukkit.material.Furnace; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.FurnaceAndDispenser.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.FurnaceAndDispenser.d.ts new file mode 100644 index 00000000..c7f632a2 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.FurnaceAndDispenser.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class FurnaceAndDispenser extends org.bukkit.material.DirectionalContainer { + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + public clone(): org.bukkit.material.FurnaceAndDispenser; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Gate.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Gate.d.ts new file mode 100644 index 00000000..4cb6f3cf --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Gate.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Gate extends org.bukkit.material.MaterialData implements org.bukkit.material.Directional, org.bukkit.material.Openable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + constructor(data: number) + // @ts-ignore + public setFacingDirection(face: org.bukkit.block.BlockFace): void; + // @ts-ignore + public getFacing(): org.bukkit.block.BlockFace; + // @ts-ignore + public isOpen(): boolean; + // @ts-ignore + public setOpen(isOpen: boolean): void; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.Gate; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Hopper.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Hopper.d.ts new file mode 100644 index 00000000..614fae1d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Hopper.d.ts @@ -0,0 +1,64 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Hopper extends org.bukkit.material.MaterialData implements org.bukkit.material.Directional, org.bukkit.material.Redstone { + /** + * Constructs a hopper facing the default direction (down) and initially + * active. + */ + // @ts-ignore + constructor() + /** + * Constructs a hopper facing the specified direction and initially active. + */ + // @ts-ignore + constructor(facingDirection: org.bukkit.block.BlockFace) + /** + * Constructs a hopper facing the specified direction and either active or + * not. + */ + // @ts-ignore + constructor(facingDirection: org.bukkit.block.BlockFace, isActive: boolean) + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + protected static DEFAULT_DIRECTION: org.bukkit.block.BlockFace; + // @ts-ignore + protected static DEFAULT_ACTIVE: boolean; + /** + * Sets whether the hopper is active or not. + */ + // @ts-ignore + public setActive(isActive: boolean): void; + /** + * Checks whether the hopper is active or not. + */ + // @ts-ignore + public isActive(): boolean; + /** + * Sets the direction this hopper is facing + */ + // @ts-ignore + public setFacingDirection(face: org.bukkit.block.BlockFace): void; + /** + * Gets the direction this hopper is facing + */ + // @ts-ignore + public getFacing(): org.bukkit.block.BlockFace; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.Hopper; + /** + * Checks if the hopper is powered. + */ + // @ts-ignore + public isPowered(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Ladder.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Ladder.d.ts new file mode 100644 index 00000000..57bc890b --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Ladder.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Ladder extends org.bukkit.material.SimpleAttachableMaterialData { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + /** + * Gets the face that this block is attached on + */ + // @ts-ignore + public getAttachedFace(): org.bukkit.block.BlockFace; + /** + * Sets the direction this ladder is facing + */ + // @ts-ignore + public setFacingDirection(face: org.bukkit.block.BlockFace): void; + // @ts-ignore + public clone(): org.bukkit.material.Ladder; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Leaves.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Leaves.d.ts new file mode 100644 index 00000000..5487d782 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Leaves.d.ts @@ -0,0 +1,73 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Leaves extends org.bukkit.material.Wood { + /** + * Constructs a leaf block. + */ + // @ts-ignore + constructor() + /** + * Constructs a leaf block of the given tree species. + */ + // @ts-ignore + constructor(species: org.bukkit.TreeSpecies) + /** + * Constructs a leaf block of the given tree species and flag for whether + * this leaf block will disappear when too far from a log. + */ + // @ts-ignore + constructor(species: org.bukkit.TreeSpecies, isDecayable: boolean) + /** + * Constructs a leaf block of the given type. + */ + // @ts-ignore + constructor(type: org.bukkit.Material) + /** + * Constructs a leaf block of the given type and tree species. + */ + // @ts-ignore + constructor(type: org.bukkit.Material, species: org.bukkit.TreeSpecies) + /** + * Constructs a leaf block of the given type and tree species and flag for + * whether this leaf block will disappear when too far from a log. + */ + // @ts-ignore + constructor(type: org.bukkit.Material, species: org.bukkit.TreeSpecies, isDecayable: boolean) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + protected static DEFAULT_TYPE: org.bukkit.Material; + // @ts-ignore + protected static DEFAULT_DECAYABLE: boolean; + /** + * Checks if this leaf block is in the process of decaying + */ + // @ts-ignore + public isDecaying(): boolean; + /** + * Set whether this leaf block is in the process of decaying + */ + // @ts-ignore + public setDecaying(isDecaying: boolean): void; + /** + * Checks if this leaf block is permanent or can decay when too far from a + * log + */ + // @ts-ignore + public isDecayable(): boolean; + /** + * Set whether this leaf block will disappear when too far from a log + */ + // @ts-ignore + public setDecayable(isDecayable: boolean): void; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.Leaves; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Lever.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Lever.d.ts new file mode 100644 index 00000000..70356205 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Lever.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Lever extends org.bukkit.material.SimpleAttachableMaterialData implements org.bukkit.material.Redstone { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + /** + * Gets the current state of this Material, indicating if it's powered or + * unpowered + */ + // @ts-ignore + public isPowered(): boolean; + /** + * Set this lever to be powered or not. + */ + // @ts-ignore + public setPowered(isPowered: boolean): void; + /** + * Gets the face that this block is attached on + */ + // @ts-ignore + public getAttachedFace(): org.bukkit.block.BlockFace; + /** + * Sets the direction this lever is pointing in + */ + // @ts-ignore + public setFacingDirection(face: org.bukkit.block.BlockFace): void; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.Lever; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.LongGrass.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.LongGrass.d.ts new file mode 100644 index 00000000..bcefa8b1 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.LongGrass.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class LongGrass extends org.bukkit.material.MaterialData { + // @ts-ignore + constructor() + // @ts-ignore + constructor(species: org.bukkit.GrassSpecies) + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + /** + * Gets the current species of this grass + */ + // @ts-ignore + public getSpecies(): org.bukkit.GrassSpecies; + /** + * Sets the species of this grass + */ + // @ts-ignore + public setSpecies(species: org.bukkit.GrassSpecies): void; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.LongGrass; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.MaterialData.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.MaterialData.d.ts new file mode 100644 index 00000000..3c5fdfe0 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.MaterialData.d.ts @@ -0,0 +1,47 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class MaterialData extends java.lang.Object { + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + /** + * Gets the raw data in this material + */ + // @ts-ignore + public getData(): number; + /** + * Sets the raw data of this material + */ + // @ts-ignore + public setData(data: number): void; + /** + * Gets the Material that this MaterialData represents + */ + // @ts-ignore + public getItemType(): org.bukkit.Material; + /** + * Creates a new ItemStack based on this MaterialData + */ + // @ts-ignore + public toItemStack(): org.bukkit.inventory.ItemStack; + /** + * Creates a new ItemStack based on this MaterialData + */ + // @ts-ignore + public toItemStack(amount: number): org.bukkit.inventory.ItemStack; + // @ts-ignore + public toString(): string; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public clone(): org.bukkit.material.MaterialData; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.MonsterEggs.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.MonsterEggs.d.ts new file mode 100644 index 00000000..cb3332dd --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.MonsterEggs.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class MonsterEggs extends org.bukkit.material.TexturedMaterial { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + public getTextures(): java.util.List; + // @ts-ignore + public clone(): org.bukkit.material.MonsterEggs; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Mushroom.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Mushroom.d.ts new file mode 100644 index 00000000..4cc02be0 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Mushroom.d.ts @@ -0,0 +1,66 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Mushroom extends org.bukkit.material.MaterialData { + /** + * Constructs a brown/red mushroom block with all sides set to pores. + */ + // @ts-ignore + constructor(shroom: org.bukkit.Material) + /** + * Constructs a brown/red mushroom cap block with the specified face or + * faces set to cap texture. + * Setting any of the four sides will also set the top to cap. + * To set two side faces at once use e.g. north-west. + * Specify self to set all six faces at once. + */ + // @ts-ignore + constructor(shroom: org.bukkit.Material, capFace: org.bukkit.block.BlockFace) + /** + * Constructs a brown/red mushroom block with the specified textures. + */ + // @ts-ignore + constructor(shroom: org.bukkit.Material, texture: org.bukkit.material.types.MushroomBlockTexture) + // @ts-ignore + constructor(shroom: org.bukkit.Material, data: number) + // @ts-ignore + public isStem(): boolean; + /** + * Sets this to be a mushroom stem. + */ + // @ts-ignore + public setStem(): void; + /** + * Gets the mushroom texture of this block. + */ + // @ts-ignore + public getBlockTexture(): org.bukkit.material.types.MushroomBlockTexture; + /** + * Sets the mushroom texture of this block. + */ + // @ts-ignore + public setBlockTexture(texture: org.bukkit.material.types.MushroomBlockTexture): void; + /** + * Checks whether a face of the block is painted with cap texture. + */ + // @ts-ignore + public isFacePainted(face: org.bukkit.block.BlockFace): boolean; + /** + * Set a face of the block to be painted or not. Note that due to the + * nature of how the data is stored, setting a face painted or not is not + * guaranteed to leave the other faces unchanged. + */ + // @ts-ignore + public setFacePainted(face: org.bukkit.block.BlockFace, painted: boolean): void; + // @ts-ignore + public getPaintedFaces(): java.util.Set; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.Mushroom; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.NetherWarts.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.NetherWarts.d.ts new file mode 100644 index 00000000..5f94dc61 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.NetherWarts.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class NetherWarts extends org.bukkit.material.MaterialData { + // @ts-ignore + constructor() + // @ts-ignore + constructor(state: org.bukkit.NetherWartsState) + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + /** + * Gets the current growth state of this nether wart + */ + // @ts-ignore + public getState(): org.bukkit.NetherWartsState; + /** + * Sets the growth state of this nether wart + */ + // @ts-ignore + public setState(state: org.bukkit.NetherWartsState): void; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.NetherWarts; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Observer.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Observer.d.ts new file mode 100644 index 00000000..af9314bb --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Observer.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Observer extends org.bukkit.material.MaterialData implements org.bukkit.material.Directional, org.bukkit.material.Redstone { + // @ts-ignore + constructor() + // @ts-ignore + constructor(direction: org.bukkit.block.BlockFace) + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + public isPowered(): boolean; + // @ts-ignore + public setFacingDirection(face: org.bukkit.block.BlockFace): void; + // @ts-ignore + public getFacing(): org.bukkit.block.BlockFace; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.Observer; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Openable.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Openable.d.ts new file mode 100644 index 00000000..49873172 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Openable.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + interface Openable { + /** + * Check to see if the door is open. + */ + // @ts-ignore + isOpen(): boolean; + /** + * Configure this door to be either open or closed; + */ + // @ts-ignore + setOpen(isOpen: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.PistonBaseMaterial.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.PistonBaseMaterial.d.ts new file mode 100644 index 00000000..15d0b8f5 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.PistonBaseMaterial.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class PistonBaseMaterial extends org.bukkit.material.MaterialData implements org.bukkit.material.Directional, org.bukkit.material.Redstone { + // @ts-ignore + constructor(type: org.bukkit.Material) + /** + * Constructs a PistonBaseMaterial. + */ + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + public setFacingDirection(face: org.bukkit.block.BlockFace): void; + // @ts-ignore + public getFacing(): org.bukkit.block.BlockFace; + // @ts-ignore + public isPowered(): boolean; + /** + * Sets the current state of this piston + */ + // @ts-ignore + public setPowered(powered: boolean): void; + /** + * Checks if this piston base is sticky, and returns true if so + */ + // @ts-ignore + public isSticky(): boolean; + // @ts-ignore + public clone(): org.bukkit.material.PistonBaseMaterial; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.PistonExtensionMaterial.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.PistonExtensionMaterial.d.ts new file mode 100644 index 00000000..48c076b5 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.PistonExtensionMaterial.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class PistonExtensionMaterial extends org.bukkit.material.MaterialData implements org.bukkit.material.Attachable { + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + public setFacingDirection(face: org.bukkit.block.BlockFace): void; + // @ts-ignore + public getFacing(): org.bukkit.block.BlockFace; + /** + * Checks if this piston extension is sticky, and returns true if so + */ + // @ts-ignore + public isSticky(): boolean; + /** + * Sets whether or not this extension is sticky + */ + // @ts-ignore + public setSticky(sticky: boolean): void; + // @ts-ignore + public getAttachedFace(): org.bukkit.block.BlockFace; + // @ts-ignore + public clone(): org.bukkit.material.PistonExtensionMaterial; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.PoweredRail.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.PoweredRail.d.ts new file mode 100644 index 00000000..312691b6 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.PoweredRail.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class PoweredRail extends org.bukkit.material.ExtendedRails implements org.bukkit.material.Redstone { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + public isPowered(): boolean; + /** + * Set whether this PoweredRail should be powered or not. + */ + // @ts-ignore + public setPowered(isPowered: boolean): void; + // @ts-ignore + public clone(): org.bukkit.material.PoweredRail; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.PressurePlate.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.PressurePlate.d.ts new file mode 100644 index 00000000..dea16196 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.PressurePlate.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class PressurePlate extends org.bukkit.material.MaterialData implements org.bukkit.material.PressureSensor { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + public isPressed(): boolean; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.PressurePlate; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.PressureSensor.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.PressureSensor.d.ts new file mode 100644 index 00000000..11777cef --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.PressureSensor.d.ts @@ -0,0 +1,12 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + interface PressureSensor { + // @ts-ignore + isPressed(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Pumpkin.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Pumpkin.d.ts new file mode 100644 index 00000000..69480fa1 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Pumpkin.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Pumpkin extends org.bukkit.material.MaterialData implements org.bukkit.material.Directional { + // @ts-ignore + constructor() + /** + * Instantiate a pumpkin facing in a particular direction. + */ + // @ts-ignore + constructor(direction: org.bukkit.block.BlockFace) + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + public isLit(): boolean; + // @ts-ignore + public setFacingDirection(face: org.bukkit.block.BlockFace): void; + // @ts-ignore + public getFacing(): org.bukkit.block.BlockFace; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.Pumpkin; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Rails.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Rails.d.ts new file mode 100644 index 00000000..be3e1b34 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Rails.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Rails extends org.bukkit.material.MaterialData { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + public isOnSlope(): boolean; + // @ts-ignore + public isCurve(): boolean; + // @ts-ignore + public getDirection(): org.bukkit.block.BlockFace; + // @ts-ignore + public toString(): string; + /** + * Return the data without the extended properties used by {@link + * PoweredRail} and {@link DetectorRail}. Overridden in {@link + * ExtendedRails} + */ + // @ts-ignore + protected getConvertedData(): number; + /** + * Set the direction of these tracks + *

+ * Note that tracks are bidirectional and that the direction returned is + * the ascending direction if the track is set on a slope. If it is set as + * a curve, the corner of the track should be supplied. + */ + // @ts-ignore + public setDirection(face: org.bukkit.block.BlockFace, isOnSlope: boolean): void; + // @ts-ignore + public clone(): org.bukkit.material.Rails; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Redstone.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Redstone.d.ts new file mode 100644 index 00000000..eba1dfe9 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Redstone.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + interface Redstone { + /** + * Gets the current state of this Material, indicating if it's powered or + * unpowered + */ + // @ts-ignore + isPowered(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.RedstoneTorch.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.RedstoneTorch.d.ts new file mode 100644 index 00000000..7656b6f9 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.RedstoneTorch.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class RedstoneTorch extends org.bukkit.material.Torch implements org.bukkit.material.Redstone { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + /** + * Gets the current state of this Material, indicating if it's powered or + * unpowered + */ + // @ts-ignore + public isPowered(): boolean; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.RedstoneTorch; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.RedstoneWire.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.RedstoneWire.d.ts new file mode 100644 index 00000000..2414a084 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.RedstoneWire.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class RedstoneWire extends org.bukkit.material.MaterialData implements org.bukkit.material.Redstone { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + /** + * Gets the current state of this Material, indicating if it's powered or + * unpowered + */ + // @ts-ignore + public isPowered(): boolean; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.RedstoneWire; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Sandstone.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Sandstone.d.ts new file mode 100644 index 00000000..64f2008d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Sandstone.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Sandstone extends org.bukkit.material.MaterialData { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: org.bukkit.SandstoneType) + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + /** + * Gets the current type of this sandstone + */ + // @ts-ignore + public getType(): org.bukkit.SandstoneType; + /** + * Sets the type of this sandstone + */ + // @ts-ignore + public setType(type: org.bukkit.SandstoneType): void; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.Sandstone; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Sapling.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Sapling.d.ts new file mode 100644 index 00000000..26b20e86 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Sapling.d.ts @@ -0,0 +1,58 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Sapling extends org.bukkit.material.Wood { + /** + * Constructs a sapling. + */ + // @ts-ignore + constructor() + /** + * Constructs a sapling of the given tree species. + */ + // @ts-ignore + constructor(species: org.bukkit.TreeSpecies) + /** + * Constructs a sapling of the given tree species and if is it instant + * growable + */ + // @ts-ignore + constructor(species: org.bukkit.TreeSpecies, isInstantGrowable: boolean) + /** + * Constructs a sapling of the given type. + */ + // @ts-ignore + constructor(type: org.bukkit.Material) + /** + * Constructs a sapling of the given type and tree species. + */ + // @ts-ignore + constructor(type: org.bukkit.Material, species: org.bukkit.TreeSpecies) + /** + * Constructs a sapling of the given type and tree species and if is it + * instant growable + */ + // @ts-ignore + constructor(type: org.bukkit.Material, species: org.bukkit.TreeSpecies, isInstantGrowable: boolean) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + /** + * Checks if the Sapling would grow when next ticked with bonemeal + */ + // @ts-ignore + public isInstantGrowable(): boolean; + /** + * Set whether this sapling will grow when next ticked with bonemeal + */ + // @ts-ignore + public setIsInstantGrowable(isInstantGrowable: boolean): void; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.Sapling; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Sign.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Sign.d.ts new file mode 100644 index 00000000..de105cf3 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Sign.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Sign extends org.bukkit.material.MaterialData implements org.bukkit.material.Attachable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + /** + * Check if this sign is attached to a wall + */ + // @ts-ignore + public isWallSign(): boolean; + /** + * Gets the face that this block is attached on + */ + // @ts-ignore + public getAttachedFace(): org.bukkit.block.BlockFace; + /** + * Gets the direction that this sign is currently facing + */ + // @ts-ignore + public getFacing(): org.bukkit.block.BlockFace; + // @ts-ignore + public setFacingDirection(face: org.bukkit.block.BlockFace): void; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.Sign; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.SimpleAttachableMaterialData.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.SimpleAttachableMaterialData.d.ts new file mode 100644 index 00000000..2c83413c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.SimpleAttachableMaterialData.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + abstract class SimpleAttachableMaterialData extends org.bukkit.material.MaterialData implements org.bukkit.material.Attachable { + // @ts-ignore + constructor(type: org.bukkit.Material, direction: org.bukkit.block.BlockFace) + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + public getFacing(): org.bukkit.block.BlockFace; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.SimpleAttachableMaterialData; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Skull.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Skull.d.ts new file mode 100644 index 00000000..39cf2dc5 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Skull.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Skull extends org.bukkit.material.MaterialData implements org.bukkit.material.Directional { + // @ts-ignore + constructor() + /** + * Instantiate a skull facing in a particular direction. + */ + // @ts-ignore + constructor(direction: org.bukkit.block.BlockFace) + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + public setFacingDirection(face: org.bukkit.block.BlockFace): void; + // @ts-ignore + public getFacing(): org.bukkit.block.BlockFace; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.Skull; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.SmoothBrick.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.SmoothBrick.d.ts new file mode 100644 index 00000000..81126fba --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.SmoothBrick.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class SmoothBrick extends org.bukkit.material.TexturedMaterial { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + public getTextures(): java.util.List; + // @ts-ignore + public clone(): org.bukkit.material.SmoothBrick; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.SpawnEgg.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.SpawnEgg.d.ts new file mode 100644 index 00000000..26cff35e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.SpawnEgg.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class SpawnEgg extends org.bukkit.material.MaterialData { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + constructor(data: number) + // @ts-ignore + constructor(type: org.bukkit.entity.EntityType) + /** + * Get the type of entity this egg will spawn. + */ + // @ts-ignore + public getSpawnedType(): org.bukkit.entity.EntityType; + /** + * Set the type of entity this egg will spawn. + */ + // @ts-ignore + public setSpawnedType(type: org.bukkit.entity.EntityType): void; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.SpawnEgg; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Stairs.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Stairs.d.ts new file mode 100644 index 00000000..c09e8b10 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Stairs.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Stairs extends org.bukkit.material.MaterialData implements org.bukkit.material.Directional { + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + public getAscendingDirection(): org.bukkit.block.BlockFace; + // @ts-ignore + public getDescendingDirection(): org.bukkit.block.BlockFace; + /** + * Set the direction the stair part of the block is facing + */ + // @ts-ignore + public setFacingDirection(face: org.bukkit.block.BlockFace): void; + // @ts-ignore + public getFacing(): org.bukkit.block.BlockFace; + /** + * Test if step is inverted + */ + // @ts-ignore + public isInverted(): boolean; + /** + * Set step inverted state + */ + // @ts-ignore + public setInverted(inv: boolean): void; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.Stairs; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Step.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Step.d.ts new file mode 100644 index 00000000..81d2de31 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Step.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Step extends org.bukkit.material.TexturedMaterial { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + public getTextures(): java.util.List; + /** + * Test if step is inverted + */ + // @ts-ignore + public isInverted(): boolean; + /** + * Set step inverted state + */ + // @ts-ignore + public setInverted(inv: boolean): void; + // @ts-ignore + protected getTextureIndex(): number; + // @ts-ignore + protected setTextureIndex(idx: number): void; + // @ts-ignore + public clone(): org.bukkit.material.Step; + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.TexturedMaterial.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.TexturedMaterial.d.ts new file mode 100644 index 00000000..24b93349 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.TexturedMaterial.d.ts @@ -0,0 +1,44 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + abstract class TexturedMaterial extends org.bukkit.material.MaterialData { + // @ts-ignore + constructor(m: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + /** + * Retrieve a list of possible textures. The first element of the list + * will be used as a default. + */ + // @ts-ignore + public abstract getTextures(): java.util.List; + /** + * Gets the current Material this block is made of + */ + // @ts-ignore + public getMaterial(): org.bukkit.Material; + /** + * Sets the material this block is made of + */ + // @ts-ignore + public setMaterial(material: org.bukkit.Material): void; + /** + * Get material index from data + */ + // @ts-ignore + protected getTextureIndex(): number; + /** + * Set material index + */ + // @ts-ignore + protected setTextureIndex(idx: number): void; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.TexturedMaterial; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Torch.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Torch.d.ts new file mode 100644 index 00000000..6592fddd --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Torch.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Torch extends org.bukkit.material.SimpleAttachableMaterialData { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + /** + * Gets the face that this block is attached on + */ + // @ts-ignore + public getAttachedFace(): org.bukkit.block.BlockFace; + // @ts-ignore + public setFacingDirection(face: org.bukkit.block.BlockFace): void; + // @ts-ignore + public clone(): org.bukkit.material.Torch; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.TrapDoor.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.TrapDoor.d.ts new file mode 100644 index 00000000..732799d0 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.TrapDoor.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class TrapDoor extends org.bukkit.material.SimpleAttachableMaterialData implements org.bukkit.material.Openable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + public isOpen(): boolean; + // @ts-ignore + public setOpen(isOpen: boolean): void; + /** + * Test if trapdoor is inverted + */ + // @ts-ignore + public isInverted(): boolean; + /** + * Set trapdoor inverted state + */ + // @ts-ignore + public setInverted(inv: boolean): void; + // @ts-ignore + public getAttachedFace(): org.bukkit.block.BlockFace; + // @ts-ignore + public setFacingDirection(face: org.bukkit.block.BlockFace): void; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.TrapDoor; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Tree.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Tree.d.ts new file mode 100644 index 00000000..f71ed46e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Tree.d.ts @@ -0,0 +1,62 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Tree extends org.bukkit.material.Wood { + /** + * Constructs a tree block. + */ + // @ts-ignore + constructor() + /** + * Constructs a tree block of the given tree species. + */ + // @ts-ignore + constructor(species: org.bukkit.TreeSpecies) + /** + * Constructs a tree block of the given tree species, and facing the given + * direction. + */ + // @ts-ignore + constructor(species: org.bukkit.TreeSpecies, dir: org.bukkit.block.BlockFace) + /** + * Constructs a tree block of the given type. + */ + // @ts-ignore + constructor(type: org.bukkit.Material) + /** + * Constructs a tree block of the given type and tree species. + */ + // @ts-ignore + constructor(type: org.bukkit.Material, species: org.bukkit.TreeSpecies) + /** + * Constructs a tree block of the given type and tree species, and facing + * the given direction. + */ + // @ts-ignore + constructor(type: org.bukkit.Material, species: org.bukkit.TreeSpecies, dir: org.bukkit.block.BlockFace) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + protected static DEFAULT_TYPE: org.bukkit.Material; + // @ts-ignore + protected static DEFAULT_DIRECTION: org.bukkit.block.BlockFace; + /** + * Get direction of the log + */ + // @ts-ignore + public getDirection(): org.bukkit.block.BlockFace; + /** + * Set direction of the log + */ + // @ts-ignore + public setDirection(dir: org.bukkit.block.BlockFace): void; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.Tree; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Tripwire.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Tripwire.d.ts new file mode 100644 index 00000000..2d440b20 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Tripwire.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Tripwire extends org.bukkit.material.MaterialData { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + /** + * Test if tripwire is currently activated + */ + // @ts-ignore + public isActivated(): boolean; + /** + * Set tripwire activated state + */ + // @ts-ignore + public setActivated(act: boolean): void; + /** + * Test if object triggering this tripwire directly + */ + // @ts-ignore + public isObjectTriggering(): boolean; + /** + * Set object triggering state for this tripwire + */ + // @ts-ignore + public setObjectTriggering(trig: boolean): void; + // @ts-ignore + public clone(): org.bukkit.material.Tripwire; + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.TripwireHook.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.TripwireHook.d.ts new file mode 100644 index 00000000..47f035a5 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.TripwireHook.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class TripwireHook extends org.bukkit.material.SimpleAttachableMaterialData implements org.bukkit.material.Redstone { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + constructor(dir: org.bukkit.block.BlockFace) + /** + * Test if tripwire is connected + */ + // @ts-ignore + public isConnected(): boolean; + /** + * Set tripwire connection state + */ + // @ts-ignore + public setConnected(connected: boolean): void; + /** + * Test if hook is currently activated + */ + // @ts-ignore + public isActivated(): boolean; + /** + * Set hook activated state + */ + // @ts-ignore + public setActivated(act: boolean): void; + // @ts-ignore + public setFacingDirection(face: org.bukkit.block.BlockFace): void; + // @ts-ignore + public getAttachedFace(): org.bukkit.block.BlockFace; + // @ts-ignore + public isPowered(): boolean; + // @ts-ignore + public clone(): org.bukkit.material.TripwireHook; + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Vine.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Vine.d.ts new file mode 100644 index 00000000..80364e61 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Vine.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Vine extends org.bukkit.material.MaterialData { + // @ts-ignore + constructor() + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + constructor(data: number) + // @ts-ignore + constructor(faces: org.bukkit.block.BlockFace) + // @ts-ignore + constructor(faces: java.util.EnumSet) + /** + * Check if the vine is attached to the specified face of an adjacent + * block. You can check two faces at once by passing e.g. {@link + * BlockFace#NORTH_EAST}. + */ + // @ts-ignore + public isOnFace(face: org.bukkit.block.BlockFace): boolean; + /** + * Attach the vine to the specified face of an adjacent block. + */ + // @ts-ignore + public putOnFace(face: org.bukkit.block.BlockFace): void; + /** + * Detach the vine from the specified face of an adjacent block. + */ + // @ts-ignore + public removeFromFace(face: org.bukkit.block.BlockFace): void; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.Vine; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Wood.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Wood.d.ts new file mode 100644 index 00000000..45fa40ae --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Wood.d.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Wood extends org.bukkit.material.MaterialData { + /** + * Constructs a wood block. + */ + // @ts-ignore + constructor() + /** + * Constructs a wood block of the given tree species. + */ + // @ts-ignore + constructor(species: org.bukkit.TreeSpecies) + /** + * Constructs a wood block of the given type. + */ + // @ts-ignore + constructor(type: org.bukkit.Material) + /** + * Constructs a wood block of the given type and tree species. + */ + // @ts-ignore + constructor(type: org.bukkit.Material, species: org.bukkit.TreeSpecies) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + protected static DEFAULT_TYPE: org.bukkit.Material; + // @ts-ignore + protected static DEFAULT_SPECIES: org.bukkit.TreeSpecies; + /** + * Gets the current species of this wood block + */ + // @ts-ignore + public getSpecies(): org.bukkit.TreeSpecies; + /** + * Sets the species of this wood block + */ + // @ts-ignore + public setSpecies(species: org.bukkit.TreeSpecies): void; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.Wood; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.WoodenStep.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.WoodenStep.d.ts new file mode 100644 index 00000000..aadb14c9 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.WoodenStep.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class WoodenStep extends org.bukkit.material.Wood { + /** + * Constructs a wooden step. + */ + // @ts-ignore + constructor() + /** + * Constructs a wooden step of the given tree species. + */ + // @ts-ignore + constructor(species: org.bukkit.TreeSpecies) + /** + * Constructs a wooden step of the given type and tree species, either + * inverted or not. + */ + // @ts-ignore + constructor(species: org.bukkit.TreeSpecies, inv: boolean) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + // @ts-ignore + protected static DEFAULT_TYPE: org.bukkit.Material; + // @ts-ignore + protected static DEFAULT_INVERTED: boolean; + /** + * Test if step is inverted + */ + // @ts-ignore + public isInverted(): boolean; + /** + * Set step inverted state + */ + // @ts-ignore + public setInverted(inv: boolean): void; + // @ts-ignore + public clone(): org.bukkit.material.WoodenStep; + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.Wool.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.Wool.d.ts new file mode 100644 index 00000000..ca71f34d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.Wool.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + // @ts-ignore + class Wool extends org.bukkit.material.MaterialData implements org.bukkit.material.Colorable { + // @ts-ignore + constructor() + // @ts-ignore + constructor(color: org.bukkit.DyeColor) + // @ts-ignore + constructor(type: org.bukkit.Material) + // @ts-ignore + constructor(type: org.bukkit.Material, data: number) + /** + * Gets the current color of this dye + */ + // @ts-ignore + public getColor(): org.bukkit.DyeColor; + /** + * Sets the color of this dye + */ + // @ts-ignore + public setColor(color: org.bukkit.DyeColor): void; + // @ts-ignore + public toString(): string; + // @ts-ignore + public clone(): org.bukkit.material.Wool; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.material.types.MushroomBlockTexture.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.material.types.MushroomBlockTexture.d.ts new file mode 100644 index 00000000..96d22de2 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.material.types.MushroomBlockTexture.d.ts @@ -0,0 +1,62 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace material { + namespace types { + // @ts-ignore + class MushroomBlockTexture extends java.lang.Enum { + // @ts-ignore + public static ALL_PORES: org.bukkit.material.types.MushroomBlockTexture; + // @ts-ignore + public static CAP_NORTH_WEST: org.bukkit.material.types.MushroomBlockTexture; + // @ts-ignore + public static CAP_NORTH: org.bukkit.material.types.MushroomBlockTexture; + // @ts-ignore + public static CAP_NORTH_EAST: org.bukkit.material.types.MushroomBlockTexture; + // @ts-ignore + public static CAP_WEST: org.bukkit.material.types.MushroomBlockTexture; + // @ts-ignore + public static CAP_TOP: org.bukkit.material.types.MushroomBlockTexture; + // @ts-ignore + public static CAP_EAST: org.bukkit.material.types.MushroomBlockTexture; + // @ts-ignore + public static CAP_SOUTH_WEST: org.bukkit.material.types.MushroomBlockTexture; + // @ts-ignore + public static CAP_SOUTH: org.bukkit.material.types.MushroomBlockTexture; + // @ts-ignore + public static CAP_SOUTH_EAST: org.bukkit.material.types.MushroomBlockTexture; + // @ts-ignore + public static STEM_SIDES: org.bukkit.material.types.MushroomBlockTexture; + // @ts-ignore + public static ALL_CAP: org.bukkit.material.types.MushroomBlockTexture; + // @ts-ignore + public static ALL_STEM: org.bukkit.material.types.MushroomBlockTexture; + // @ts-ignore + public static values(): org.bukkit.material.types.MushroomBlockTexture[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.material.types.MushroomBlockTexture; + /** + * Gets the associated data value representing this mushroom block face. + */ + // @ts-ignore + public getData(): number; + /** + * Gets the face that has cap texture. + */ + // @ts-ignore + public getCapFace(): org.bukkit.block.BlockFace; + /** + * Gets the MushroomBlockType with the given data value. + */ + // @ts-ignore + public static getByData(data: number): org.bukkit.material.types.MushroomBlockTexture; + /** + * Gets the MushroomBlockType with cap texture on the given block face. + */ + // @ts-ignore + public static getCapByFace(face: org.bukkit.block.BlockFace): org.bukkit.material.types.MushroomBlockTexture; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.metadata.FixedMetadataValue.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.metadata.FixedMetadataValue.d.ts new file mode 100644 index 00000000..6cf4ae0c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.metadata.FixedMetadataValue.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace metadata { + // @ts-ignore + class FixedMetadataValue extends org.bukkit.metadata.LazyMetadataValue { + /** + * Initializes a FixedMetadataValue with an Object + */ + // @ts-ignore + constructor(owningPlugin: org.bukkit.plugin.Plugin, value: java.lang.Object) + // @ts-ignore + public invalidate(): void; + // @ts-ignore + public value(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.metadata.LazyMetadataValue.CacheStrategy.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.metadata.LazyMetadataValue.CacheStrategy.d.ts new file mode 100644 index 00000000..9ea65aee --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.metadata.LazyMetadataValue.CacheStrategy.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace metadata { + namespace LazyMetadataValue { + // @ts-ignore + class CacheStrategy extends java.lang.Enum { + // @ts-ignore + public static CACHE_AFTER_FIRST_EVAL: org.bukkit.metadata.LazyMetadataValue.CacheStrategy; + // @ts-ignore + public static NEVER_CACHE: org.bukkit.metadata.LazyMetadataValue.CacheStrategy; + // @ts-ignore + public static CACHE_ETERNALLY: org.bukkit.metadata.LazyMetadataValue.CacheStrategy; + // @ts-ignore + public static values(): org.bukkit.metadata.LazyMetadataValue.CacheStrategy[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.metadata.LazyMetadataValue.CacheStrategy; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.metadata.LazyMetadataValue.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.metadata.LazyMetadataValue.d.ts new file mode 100644 index 00000000..3137922c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.metadata.LazyMetadataValue.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace metadata { + // @ts-ignore + class LazyMetadataValue extends org.bukkit.metadata.MetadataValueAdapter { + /** + * Initialized a LazyMetadataValue object with the default + * CACHE_AFTER_FIRST_EVAL cache strategy. + */ + // @ts-ignore + constructor(owningPlugin: org.bukkit.plugin.Plugin, lazyValue: java.util.concurrent.Callable) + /** + * Initializes a LazyMetadataValue object with a specific cache strategy. + */ + // @ts-ignore + constructor(owningPlugin: org.bukkit.plugin.Plugin, cacheStrategy: org.bukkit.metadata.LazyMetadataValue.CacheStrategy, lazyValue: java.util.concurrent.Callable) + /** + * Protected special constructor used by FixedMetadataValue to bypass + * standard setup. + */ + // @ts-ignore + constructor(owningPlugin: org.bukkit.plugin.Plugin) + // @ts-ignore + public value(): java.lang.Object; + // @ts-ignore + public invalidate(): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.metadata.MetadataConversionException.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.metadata.MetadataConversionException.d.ts new file mode 100644 index 00000000..f6cc6ccc --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.metadata.MetadataConversionException.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace metadata { + // @ts-ignore + class MetadataConversionException extends java.lang.RuntimeException { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.metadata.MetadataEvaluationException.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.metadata.MetadataEvaluationException.d.ts new file mode 100644 index 00000000..448d0f20 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.metadata.MetadataEvaluationException.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace metadata { + // @ts-ignore + class MetadataEvaluationException extends java.lang.RuntimeException { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.metadata.MetadataStore.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.metadata.MetadataStore.d.ts new file mode 100644 index 00000000..8a762b2b --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.metadata.MetadataStore.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace metadata { + // @ts-ignore + interface MetadataStore { + /** + * Adds a metadata value to an object. + */ + // @ts-ignore + setMetadata(subject: java.lang.Object, 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. + */ + // @ts-ignore + getMetadata(subject: java.lang.Object, metadataKey: string): java.util.List; + /** + * Tests to see if a metadata attribute has been set on an object. + */ + // @ts-ignore + hasMetadata(subject: java.lang.Object, metadataKey: string): boolean; + /** + * Removes a metadata item owned by a plugin from a subject. + */ + // @ts-ignore + removeMetadata(subject: java.lang.Object, 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. + */ + // @ts-ignore + invalidateAll(owningPlugin: org.bukkit.plugin.Plugin): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.metadata.MetadataStoreBase.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.metadata.MetadataStoreBase.d.ts new file mode 100644 index 00000000..38f301a0 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.metadata.MetadataStoreBase.d.ts @@ -0,0 +1,63 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace metadata { + // @ts-ignore + abstract class MetadataStoreBase extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Adds a metadata value to an object. Each metadata value is owned by a + * specific {@link Plugin}. If a plugin has already added a metadata value + * to an object, that value will be replaced with the value of {@code + * newMetadataValue}. Multiple plugins can set independent values for the + * same {@code metadataKey} without conflict. + *

+ * Implementation note: I considered using a {@link + * java.util.concurrent.locks.ReadWriteLock} for controlling access to + * {@code metadataMap}, but decided that the added overhead wasn't worth + * the finer grained access control. + *

+ * Bukkit is almost entirely single threaded so locking overhead shouldn't + * pose a problem. + */ + // @ts-ignore + public setMetadata(subject: java.lang.Object, metadataKey: string, newMetadataValue: org.bukkit.metadata.MetadataValue): void; + /** + * Returns all metadata values attached to an object. If multiple + * have attached metadata, each will value will be included. + */ + // @ts-ignore + public getMetadata(subject: java.lang.Object, metadataKey: string): java.util.List; + /** + * Tests to see if a metadata attribute has been set on an object. + */ + // @ts-ignore + public hasMetadata(subject: java.lang.Object, metadataKey: string): boolean; + /** + * Removes a metadata item owned by a plugin from a subject. + */ + // @ts-ignore + public removeMetadata(subject: java.lang.Object, 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. + */ + // @ts-ignore + public invalidateAll(owningPlugin: org.bukkit.plugin.Plugin): void; + /** + * Creates a unique name for the object receiving metadata by combining + * unique data from the subject with a metadataKey. + *

+ * The name created must be globally unique for the given object and any + * two equivalent objects must generate the same unique name. For example, + * two Player objects must generate the same string if they represent the + * same player, even if the objects would fail a reference equality test. + */ + // @ts-ignore + protected abstract disambiguate(subject: java.lang.Object, metadataKey: string): string; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.metadata.MetadataValue.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.metadata.MetadataValue.d.ts new file mode 100644 index 00000000..6643e52c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.metadata.MetadataValue.d.ts @@ -0,0 +1,66 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace metadata { + // @ts-ignore + interface MetadataValue { + /** + * Fetches the value of this metadata item. + */ + // @ts-ignore + value(): java.lang.Object; + /** + * Attempts to convert the value of this metadata item into an int. + */ + // @ts-ignore + asInt(): number; + /** + * Attempts to convert the value of this metadata item into a float. + */ + // @ts-ignore + asFloat(): number; + /** + * Attempts to convert the value of this metadata item into a double. + */ + // @ts-ignore + asDouble(): number; + /** + * Attempts to convert the value of this metadata item into a long. + */ + // @ts-ignore + asLong(): number; + /** + * Attempts to convert the value of this metadata item into a short. + */ + // @ts-ignore + asShort(): number; + /** + * Attempts to convert the value of this metadata item into a byte. + */ + // @ts-ignore + asByte(): number; + /** + * Attempts to convert the value of this metadata item into a boolean. + */ + // @ts-ignore + asBoolean(): boolean; + /** + * Attempts to convert the value of this metadata item into a string. + */ + // @ts-ignore + asString(): string; + /** + * Returns the {@link Plugin} that created this metadata item. + */ + // @ts-ignore + getOwningPlugin(): org.bukkit.plugin.Plugin; + /** + * Invalidates this metadata item, forcing it to recompute when next + * accessed. + */ + // @ts-ignore + invalidate(): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.metadata.MetadataValueAdapter.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.metadata.MetadataValueAdapter.d.ts new file mode 100644 index 00000000..b49f1c83 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.metadata.MetadataValueAdapter.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace metadata { + // @ts-ignore + abstract class MetadataValueAdapter extends java.lang.Object implements org.bukkit.metadata.MetadataValue { + // @ts-ignore + constructor(owningPlugin: org.bukkit.plugin.Plugin) + // @ts-ignore + protected owningPlugin: java.lang.ref.WeakReference; + // @ts-ignore + public getOwningPlugin(): org.bukkit.plugin.Plugin; + // @ts-ignore + public asInt(): number; + // @ts-ignore + public asFloat(): number; + // @ts-ignore + public asDouble(): number; + // @ts-ignore + public asLong(): number; + // @ts-ignore + public asShort(): number; + // @ts-ignore + public asByte(): number; + // @ts-ignore + public asBoolean(): boolean; + // @ts-ignore + public asString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.metadata.Metadatable.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.metadata.Metadatable.d.ts new file mode 100644 index 00000000..576dfffe --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.metadata.Metadatable.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace metadata { + // @ts-ignore + interface Metadatable { + /** + * Sets a metadata value in the implementing object's metadata store. + */ + // @ts-ignore + setMetadata(metadataKey: string, newMetadataValue: org.bukkit.metadata.MetadataValue): void; + /** + * Returns a list of previously set metadata values from the implementing + * object's metadata store. + */ + // @ts-ignore + getMetadata(metadataKey: string): java.util.List; + /** + * Tests to see whether the implementing object contains the given + * metadata value in its metadata store. + */ + // @ts-ignore + hasMetadata(metadataKey: string): boolean; + /** + * Removes the given metadata value from the implementing object's + * metadata store. + */ + // @ts-ignore + removeMetadata(metadataKey: string, owningPlugin: org.bukkit.plugin.Plugin): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.permissions.Permissible.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.permissions.Permissible.d.ts new file mode 100644 index 00000000..47673da7 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.permissions.Permissible.d.ts @@ -0,0 +1,80 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace permissions { + // @ts-ignore + interface Permissible extends org.bukkit.permissions.ServerOperator { + /** + * Checks if this object contains an override for the specified + * permission, by fully qualified name + */ + // @ts-ignore + isPermissionSet(name: string): boolean; + /** + * Checks if this object contains an override for the specified {@link + * Permission} + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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 + */ + // @ts-ignore + hasPermission(perm: org.bukkit.permissions.Permission): boolean; + /** + * Adds a new {@link PermissionAttachment} with a single permission by + * name and value + */ + // @ts-ignore + addAttachment(plugin: org.bukkit.plugin.Plugin, name: string, value: boolean): org.bukkit.permissions.PermissionAttachment; + /** + * Adds a new empty {@link PermissionAttachment} to this object + */ + // @ts-ignore + addAttachment(plugin: org.bukkit.plugin.Plugin): org.bukkit.permissions.PermissionAttachment; + /** + * Temporarily adds a new {@link PermissionAttachment} with a single + * permission by name and value + */ + // @ts-ignore + 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 + */ + // @ts-ignore + addAttachment(plugin: org.bukkit.plugin.Plugin, ticks: number): org.bukkit.permissions.PermissionAttachment; + /** + * Removes the given {@link PermissionAttachment} from this object + */ + // @ts-ignore + 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. + */ + // @ts-ignore + recalculatePermissions(): void; + /** + * Gets a set containing all of the permissions currently in effect by + * this object + */ + // @ts-ignore + getEffectivePermissions(): java.util.Set; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.permissions.PermissibleBase.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.permissions.PermissibleBase.d.ts new file mode 100644 index 00000000..7b98dfa8 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.permissions.PermissibleBase.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace permissions { + // @ts-ignore + class PermissibleBase extends java.lang.Object implements org.bukkit.permissions.Permissible { + // @ts-ignore + constructor(opable: org.bukkit.permissions.ServerOperator) + // @ts-ignore + public isOp(): boolean; + // @ts-ignore + public setOp(value: boolean): void; + // @ts-ignore + public isPermissionSet(name: string): boolean; + // @ts-ignore + public isPermissionSet(perm: org.bukkit.permissions.Permission): boolean; + // @ts-ignore + public hasPermission(inName: string): boolean; + // @ts-ignore + public hasPermission(perm: org.bukkit.permissions.Permission): boolean; + // @ts-ignore + public addAttachment(plugin: org.bukkit.plugin.Plugin, name: string, value: boolean): org.bukkit.permissions.PermissionAttachment; + // @ts-ignore + public addAttachment(plugin: org.bukkit.plugin.Plugin): org.bukkit.permissions.PermissionAttachment; + // @ts-ignore + public removeAttachment(attachment: org.bukkit.permissions.PermissionAttachment): void; + // @ts-ignore + public recalculatePermissions(): void; + // @ts-ignore + public clearPermissions(): void; + // @ts-ignore + public addAttachment(plugin: org.bukkit.plugin.Plugin, name: string, value: boolean, ticks: number): org.bukkit.permissions.PermissionAttachment; + // @ts-ignore + public addAttachment(plugin: org.bukkit.plugin.Plugin, ticks: number): org.bukkit.permissions.PermissionAttachment; + // @ts-ignore + public getEffectivePermissions(): java.util.Set; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.permissions.Permission.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.permissions.Permission.d.ts new file mode 100644 index 00000000..7ee7e1e7 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.permissions.Permission.d.ts @@ -0,0 +1,144 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace permissions { + // @ts-ignore + class Permission extends java.lang.Object { + // @ts-ignore + constructor(name: string) + // @ts-ignore + constructor(name: string, description: string) + // @ts-ignore + constructor(name: string, defaultValue: org.bukkit.permissions.PermissionDefault) + // @ts-ignore + constructor(name: string, description: string, defaultValue: org.bukkit.permissions.PermissionDefault) + // @ts-ignore + constructor(name: string, children: java.util.Map) + // @ts-ignore + constructor(name: string, description: string, children: java.util.Map) + // @ts-ignore + constructor(name: string, defaultValue: org.bukkit.permissions.PermissionDefault, children: java.util.Map) + // @ts-ignore + constructor(name: string, description: string, defaultValue: org.bukkit.permissions.PermissionDefault, children: java.util.Map) + // @ts-ignore + public static DEFAULT_PERMISSION: org.bukkit.permissions.PermissionDefault; + /** + * Returns the unique fully qualified name of this Permission + */ + // @ts-ignore + public getName(): string; + /** + * Gets the children of this permission. + *

+ * If you change this map in any form, you must call {@link + * #recalculatePermissibles()} to recalculate all {@link Permissible}s + */ + // @ts-ignore + public getChildren(): java.util.Map; + /** + * Gets the default value of this permission. + */ + // @ts-ignore + public getDefault(): org.bukkit.permissions.PermissionDefault; + /** + * Sets the default value of this permission. + *

+ * This will not be saved to disk, and is a temporary operation until the + * server reloads permissions. Changing this default will cause all {@link + * Permissible}s that contain this permission to recalculate their + * permissions + */ + // @ts-ignore + public setDefault(value: org.bukkit.permissions.PermissionDefault): void; + /** + * Gets a brief description of this permission, may be empty + */ + // @ts-ignore + public getDescription(): string; + /** + * Sets the description of this permission. + *

+ * This will not be saved to disk, and is a temporary operation until the + * server reloads permissions. + */ + // @ts-ignore + public setDescription(value: string): void; + /** + * Gets a set containing every {@link Permissible} that has this + * permission. + *

+ * This set cannot be modified. + */ + // @ts-ignore + public getPermissibles(): java.util.Set; + /** + * Recalculates all {@link Permissible}s that contain this permission. + *

+ * This should be called after modifying the children, and is + * automatically called after modifying the default value + */ + // @ts-ignore + public recalculatePermissibles(): void; + /** + * Adds this permission to the specified parent permission. + *

+ * If the parent permission does not exist, it will be created and + * registered. + */ + // @ts-ignore + public addParent(name: string, value: boolean): org.bukkit.permissions.Permission; + /** + * Adds this permission to the specified parent permission. + */ + // @ts-ignore + public addParent(perm: org.bukkit.permissions.Permission, value: boolean): void; + /** + * Loads a list of Permissions from a map of data, usually used from + * retrieval from a yaml file. + *

+ * The data may contain a list of name:data, where the data contains the + * following keys: + *

    + *
  • default: Boolean true or false. If not specified, false. + *
  • children: {@code Map} of child permissions. If not + * specified, empty list. + *
  • description: Short string containing a very small description of + * this description. If not specified, empty string. + *
+ */ + // @ts-ignore + public static loadPermissions(data: java.util.Map, error: string, def: org.bukkit.permissions.PermissionDefault): java.util.List; + /** + * Loads a Permission from a map of data, usually used from retrieval from + * a yaml file. + *

+ * The data may contain the following keys: + *

    + *
  • default: Boolean true or false. If not specified, false. + *
  • children: {@code Map} of child permissions. If not + * specified, empty list. + *
  • description: Short string containing a very small description of + * this description. If not specified, empty string. + *
+ */ + // @ts-ignore + public static loadPermission(name: string, data: java.util.Map): org.bukkit.permissions.Permission; + /** + * Loads a Permission from a map of data, usually used from retrieval from + * a yaml file. + *

+ * The data may contain the following keys: + *

    + *
  • default: Boolean true or false. If not specified, false. + *
  • children: {@code Map} of child permissions. If not + * specified, empty list. + *
  • description: Short string containing a very small description of + * this description. If not specified, empty string. + *
+ */ + // @ts-ignore + public static loadPermission(name: string, data: java.util.Map, def: org.bukkit.permissions.PermissionDefault, output: java.util.List): org.bukkit.permissions.Permission; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.permissions.PermissionAttachment.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.permissions.PermissionAttachment.d.ts new file mode 100644 index 00000000..9dd120c7 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.permissions.PermissionAttachment.d.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace permissions { + // @ts-ignore + class PermissionAttachment extends java.lang.Object { + // @ts-ignore + constructor(plugin: org.bukkit.plugin.Plugin, permissible: org.bukkit.permissions.Permissible) + /** + * Gets the plugin responsible for this attachment + */ + // @ts-ignore + public getPlugin(): org.bukkit.plugin.Plugin; + /** + * Sets an object to be called for when this attachment is removed from a + * {@link Permissible}. May be null. + */ + // @ts-ignore + public setRemovalCallback(ex: org.bukkit.permissions.PermissionRemovedExecutor): void; + /** + * Gets the class that was previously set to be called when this + * attachment was removed from a {@link Permissible}. May be null. + */ + // @ts-ignore + public getRemovalCallback(): org.bukkit.permissions.PermissionRemovedExecutor; + /** + * Gets the Permissible that this is attached to + */ + // @ts-ignore + public getPermissible(): org.bukkit.permissions.Permissible; + /** + * Gets a copy of all set permissions and values contained within this + * attachment. + *

+ * This map may be modified but will not affect the attachment, as it is a + * copy. + */ + // @ts-ignore + public getPermissions(): java.util.Map; + /** + * Sets a permission to the given value, by its fully qualified name + */ + // @ts-ignore + public setPermission(name: string, value: boolean): void; + /** + * Sets a permission to the given value + */ + // @ts-ignore + public setPermission(perm: org.bukkit.permissions.Permission, value: boolean): void; + /** + * Removes the specified permission from this attachment. + *

+ * If the permission does not exist in this attachment, nothing will + * happen. + */ + // @ts-ignore + public unsetPermission(name: string): void; + /** + * Removes the specified permission from this attachment. + *

+ * If the permission does not exist in this attachment, nothing will + * happen. + */ + // @ts-ignore + public unsetPermission(perm: org.bukkit.permissions.Permission): void; + /** + * Removes this attachment from its registered {@link Permissible} + */ + // @ts-ignore + public remove(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.permissions.PermissionAttachmentInfo.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.permissions.PermissionAttachmentInfo.d.ts new file mode 100644 index 00000000..9a557f52 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.permissions.PermissionAttachmentInfo.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace permissions { + // @ts-ignore + class PermissionAttachmentInfo extends java.lang.Object { + // @ts-ignore + constructor(permissible: org.bukkit.permissions.Permissible, permission: string, attachment: org.bukkit.permissions.PermissionAttachment, value: boolean) + /** + * Gets the permissible this is attached to + */ + // @ts-ignore + public getPermissible(): org.bukkit.permissions.Permissible; + /** + * Gets the permission being set + */ + // @ts-ignore + public getPermission(): string; + /** + * Gets the attachment providing this permission. This may be null for + * default permissions (usually parent permissions). + */ + // @ts-ignore + public getAttachment(): org.bukkit.permissions.PermissionAttachment; + /** + * Gets the value of this permission + */ + // @ts-ignore + public getValue(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.permissions.PermissionDefault.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.permissions.PermissionDefault.d.ts new file mode 100644 index 00000000..842ae04c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.permissions.PermissionDefault.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace permissions { + // @ts-ignore + class PermissionDefault extends java.lang.Enum { + // @ts-ignore + public static TRUE: org.bukkit.permissions.PermissionDefault; + // @ts-ignore + public static FALSE: org.bukkit.permissions.PermissionDefault; + // @ts-ignore + public static OP: org.bukkit.permissions.PermissionDefault; + // @ts-ignore + public static NOT_OP: org.bukkit.permissions.PermissionDefault; + // @ts-ignore + public static values(): org.bukkit.permissions.PermissionDefault[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.permissions.PermissionDefault; + /** + * Calculates the value of this PermissionDefault for the given operator + * value + */ + // @ts-ignore + public getValue(op: boolean): boolean; + /** + * Looks up a PermissionDefault by name + */ + // @ts-ignore + public static getByName(name: string): org.bukkit.permissions.PermissionDefault; + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.permissions.PermissionRemovedExecutor.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.permissions.PermissionRemovedExecutor.d.ts new file mode 100644 index 00000000..11c77ffa --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.permissions.PermissionRemovedExecutor.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace permissions { + // @ts-ignore + interface PermissionRemovedExecutor { + /** + * Called when a {@link PermissionAttachment} is removed from a {@link + * Permissible} + */ + // @ts-ignore + attachmentRemoved(attachment: org.bukkit.permissions.PermissionAttachment): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.permissions.ServerOperator.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.permissions.ServerOperator.d.ts new file mode 100644 index 00000000..e843429f --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.permissions.ServerOperator.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace permissions { + // @ts-ignore + interface ServerOperator { + /** + * Checks if this object is a server operator + */ + // @ts-ignore + isOp(): boolean; + /** + * Sets the operator status of this object + */ + // @ts-ignore + setOp(value: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.persistence.PersistentDataAdapterContext.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.persistence.PersistentDataAdapterContext.d.ts new file mode 100644 index 00000000..58abef2c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.persistence.PersistentDataAdapterContext.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace persistence { + // @ts-ignore + interface PersistentDataAdapterContext { + /** + * Creates a new and empty meta container instance. + */ + // @ts-ignore + newPersistentDataContainer(): org.bukkit.persistence.PersistentDataContainer; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.persistence.PersistentDataContainer.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.persistence.PersistentDataContainer.d.ts new file mode 100644 index 00000000..3556ac55 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.persistence.PersistentDataContainer.d.ts @@ -0,0 +1,69 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace persistence { + // @ts-ignore + interface PersistentDataContainer { + /** + * Stores a metadata value on the {@link PersistentDataHolder} instance. + *

+ * This API cannot be used to manipulate minecraft data, as the values will + * be stored using your namespace. This method will override any existing + * value the {@link PersistentDataHolder} may have stored under the provided + * key. + */ + // @ts-ignore + set(key: org.bukkit.NamespacedKey, type: org.bukkit.persistence.PersistentDataType, value: java.lang.Object): void; + /** + * Returns if the persistent metadata provider has metadata registered + * matching the provided parameters. + *

+ * This method will only return if the found value has the same primitive + * data type as the provided key. + *

+ * Storing a value using a custom {@link PersistentDataType} implementation + * will not store the complex data type. Therefore storing a UUID (by + * storing a byte[]) will match has("key" , + * {@link PersistentDataType#BYTE_ARRAY}). Likewise a stored byte[] will + * always match your UUID {@link PersistentDataType} even if it is not 16 + * bytes long. + *

+ * This method is only usable for custom object keys. Overwriting existing + * tags, like the the display name, will not work as the values are stored + * using your namespace. + */ + // @ts-ignore + has(key: org.bukkit.NamespacedKey, type: org.bukkit.persistence.PersistentDataType): boolean; + /** + * Returns the metadata value that is stored on the + * {@link PersistentDataHolder} instance. + */ + // @ts-ignore + get(key: org.bukkit.NamespacedKey, type: org.bukkit.persistence.PersistentDataType): java.lang.Object; + /** + * 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. + */ + // @ts-ignore + getOrDefault(key: org.bukkit.NamespacedKey, type: org.bukkit.persistence.PersistentDataType, defaultValue: java.lang.Object): java.lang.Object; + /** + * Removes a custom key from the {@link PersistentDataHolder} instance. + */ + // @ts-ignore + remove(key: org.bukkit.NamespacedKey): void; + /** + * Returns if the container instance is empty, therefore has no entries + * inside it. + */ + // @ts-ignore + isEmpty(): boolean; + /** + * Returns the adapter context this tag container uses. + */ + // @ts-ignore + getAdapterContext(): org.bukkit.persistence.PersistentDataAdapterContext; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.persistence.PersistentDataHolder.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.persistence.PersistentDataHolder.d.ts new file mode 100644 index 00000000..faa665c2 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.persistence.PersistentDataHolder.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace persistence { + // @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. + */ + // @ts-ignore + getPersistentDataContainer(): org.bukkit.persistence.PersistentDataContainer; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.persistence.PersistentDataType.PrimitivePersistentDataType.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.persistence.PersistentDataType.PrimitivePersistentDataType.d.ts new file mode 100644 index 00000000..4c6294ea --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.persistence.PersistentDataType.PrimitivePersistentDataType.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace persistence { + namespace PersistentDataType { + // @ts-ignore + class PrimitivePersistentDataType extends java.lang.Object implements org.bukkit.persistence.PersistentDataType { + // @ts-ignore + public getPrimitiveType(): java.lang.Class; + // @ts-ignore + public getComplexType(): java.lang.Class; + // @ts-ignore + public toPrimitive(complex: java.lang.Object, context: org.bukkit.persistence.PersistentDataAdapterContext): java.lang.Object; + // @ts-ignore + public fromPrimitive(primitive: java.lang.Object, context: org.bukkit.persistence.PersistentDataAdapterContext): java.lang.Object; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.persistence.PersistentDataType.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.persistence.PersistentDataType.d.ts new file mode 100644 index 00000000..62bfd1ed --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.persistence.PersistentDataType.d.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace persistence { + // @ts-ignore + interface PersistentDataType { + // @ts-ignore + BYTE: org.bukkit.persistence.PersistentDataType; + // @ts-ignore + SHORT: org.bukkit.persistence.PersistentDataType; + // @ts-ignore + INTEGER: org.bukkit.persistence.PersistentDataType; + // @ts-ignore + LONG: org.bukkit.persistence.PersistentDataType; + // @ts-ignore + FLOAT: org.bukkit.persistence.PersistentDataType; + // @ts-ignore + DOUBLE: org.bukkit.persistence.PersistentDataType; + // @ts-ignore + STRING: org.bukkit.persistence.PersistentDataType; + // @ts-ignore + BYTE_ARRAY: org.bukkit.persistence.PersistentDataType; + // @ts-ignore + INTEGER_ARRAY: org.bukkit.persistence.PersistentDataType; + // @ts-ignore + LONG_ARRAY: org.bukkit.persistence.PersistentDataType; + // @ts-ignore + TAG_CONTAINER: org.bukkit.persistence.PersistentDataType; + /** + * Returns the primitive data type of this tag. + */ + // @ts-ignore + getPrimitiveType(): java.lang.Class; + /** + * Returns the complex object type the primitive value resembles. + */ + // @ts-ignore + getComplexType(): java.lang.Class; + /** + * Returns the primitive data that resembles the complex object passed to + * this method. + */ + // @ts-ignore + toPrimitive(complex: java.lang.Object, context: org.bukkit.persistence.PersistentDataAdapterContext): java.lang.Object; + /** + * Creates a complex object based of the passed primitive value + */ + // @ts-ignore + fromPrimitive(primitive: java.lang.Object, context: org.bukkit.persistence.PersistentDataAdapterContext): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.AuthorNagException.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.AuthorNagException.d.ts new file mode 100644 index 00000000..80b39745 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.AuthorNagException.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace plugin { + // @ts-ignore + class AuthorNagException extends java.lang.RuntimeException { + /** + * Constructs a new AuthorNagException based on the given Exception + */ + // @ts-ignore + constructor(message: string) + // @ts-ignore + public getMessage(): string; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.EventExecutor.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.EventExecutor.d.ts new file mode 100644 index 00000000..a87207f9 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.EventExecutor.d.ts @@ -0,0 +1,12 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace plugin { + // @ts-ignore + interface EventExecutor { + // @ts-ignore + execute(listener: org.bukkit.event.Listener, event: org.bukkit.event.Event): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.IllegalPluginAccessException.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.IllegalPluginAccessException.d.ts new file mode 100644 index 00000000..54bd0b21 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.IllegalPluginAccessException.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace plugin { + // @ts-ignore + class IllegalPluginAccessException extends java.lang.RuntimeException { + /** + * Creates a new instance of IllegalPluginAccessException + * without detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs an instance of IllegalPluginAccessException + * with the specified detail message. + */ + // @ts-ignore + constructor(msg: string) + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.InvalidDescriptionException.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.InvalidDescriptionException.d.ts new file mode 100644 index 00000000..41c0e005 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.InvalidDescriptionException.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace plugin { + // @ts-ignore + class InvalidDescriptionException extends java.lang.Exception { + /** + * Constructs a new InvalidDescriptionException based on the given + * Exception + */ + // @ts-ignore + constructor(cause: java.lang.Throwable, message: string) + /** + * Constructs a new InvalidDescriptionException based on the given + * Exception + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + /** + * Constructs a new InvalidDescriptionException with the given message + */ + // @ts-ignore + constructor(message: string) + /** + * Constructs a new InvalidDescriptionException + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.InvalidPluginException.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.InvalidPluginException.d.ts new file mode 100644 index 00000000..ca27b395 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.InvalidPluginException.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace plugin { + // @ts-ignore + class InvalidPluginException extends java.lang.Exception { + /** + * Constructs a new InvalidPluginException based on the given Exception + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + /** + * Constructs a new InvalidPluginException + */ + // @ts-ignore + constructor() + /** + * Constructs a new InvalidPluginException with the specified detail + * message and cause. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Constructs a new InvalidPluginException with the specified detail + * message + */ + // @ts-ignore + constructor(message: string) + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.Plugin.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.Plugin.d.ts new file mode 100644 index 00000000..896718c0 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.Plugin.d.ts @@ -0,0 +1,127 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace 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. + */ + // @ts-ignore + getDataFolder(): java.io.File; + /** + * Returns the plugin.yaml file containing the details for this plugin + */ + // @ts-ignore + getDescription(): org.bukkit.plugin.PluginDescriptionFile; + /** + * Gets a {@link FileConfiguration} for this plugin, read through + * "config.yml" + *

+ * If there is a default config.yml embedded in this plugin, it will be + * provided as a default for this Configuration. + */ + // @ts-ignore + getConfig(): org.bukkit.configuration.file.FileConfiguration; + /** + * Gets an embedded resource in this plugin + */ + // @ts-ignore + getResource(filename: string): java.io.InputStream; + /** + * Saves the {@link FileConfiguration} retrievable by {@link #getConfig()}. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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)}. + *

+ * The resource is saved into the plugin's data folder using the same + * hierarchy as the .jar file (subdirectories are preserved). + */ + // @ts-ignore + saveResource(resourcePath: string, replace: boolean): void; + /** + * Discards any data in {@link #getConfig()} and reloads from disk. + */ + // @ts-ignore + reloadConfig(): void; + /** + * Gets the associated PluginLoader responsible for this plugin + */ + // @ts-ignore + getPluginLoader(): org.bukkit.plugin.PluginLoader; + /** + * Returns the Server instance currently running this plugin + */ + // @ts-ignore + getServer(): org.bukkit.Server; + /** + * Returns a value indicating whether or not this plugin is currently + * enabled + */ + // @ts-ignore + isEnabled(): boolean; + /** + * Called when this plugin is disabled + */ + // @ts-ignore + 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. + */ + // @ts-ignore + onLoad(): void; + /** + * Called when this plugin is enabled + */ + // @ts-ignore + onEnable(): void; + /** + * Simple boolean if we can still nag to the logs about things + */ + // @ts-ignore + isNaggable(): boolean; + /** + * Set naggable state + */ + // @ts-ignore + setNaggable(canNag: boolean): void; + /** + * Gets a {@link ChunkGenerator} for use in a default world, as specified + * in the server configuration + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getLogger(): java.util.logging.Logger; + /** + * Returns the name of the plugin. + *

+ * This should return the bare name of the plugin and should be used for + * comparison. + */ + // @ts-ignore + getName(): string; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.PluginAwareness.Flags.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.PluginAwareness.Flags.d.ts new file mode 100644 index 00000000..8359ff87 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.PluginAwareness.Flags.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace plugin { + namespace PluginAwareness { + // @ts-ignore + class Flags extends java.lang.Enum implements org.bukkit.plugin.PluginAwareness { + // @ts-ignore + public static UTF8: org.bukkit.plugin.PluginAwareness.Flags; + // @ts-ignore + public static values(): org.bukkit.plugin.PluginAwareness.Flags[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.plugin.PluginAwareness.Flags; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.PluginAwareness.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.PluginAwareness.d.ts new file mode 100644 index 00000000..08b312fe --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.PluginAwareness.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace plugin { + // @ts-ignore + interface PluginAwareness { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.PluginBase.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.PluginBase.d.ts new file mode 100644 index 00000000..cb629cd9 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.PluginBase.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace plugin { + // @ts-ignore + abstract class PluginBase extends java.lang.Object implements org.bukkit.plugin.Plugin { + // @ts-ignore + constructor() + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public getName(): string; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.PluginDescriptionFile.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.PluginDescriptionFile.d.ts new file mode 100644 index 00000000..9788639c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.PluginDescriptionFile.d.ts @@ -0,0 +1,557 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace plugin { + // @ts-ignore + class PluginDescriptionFile extends java.lang.Object { + // @ts-ignore + constructor(stream: java.io.InputStream) + /** + * Loads a PluginDescriptionFile from the specified reader + */ + // @ts-ignore + constructor(reader: java.io.Reader) + /** + * Creates a new PluginDescriptionFile with the given detailed + */ + // @ts-ignore + constructor(pluginName: string, pluginVersion: string, mainClass: string) + /** + * Gives the name of the plugin. This name is a unique identifier for + * plugins. + *

    + *
  • Must consist of all alphanumeric characters, underscores, hyphon, + * and period (a-z,A-Z,0-9, _.-). Any other character will cause the + * plugin.yml to fail loading. + *
  • Used to determine the name of the plugin's data folder. Data + * folders are placed in the ./plugins/ directory by default, but this + * behavior should not be relied on. {@link Plugin#getDataFolder()} + * should be used to reference the data folder. + *
  • It is good practice to name your jar the same as this, for example + * 'MyPlugin.jar'. + *
  • Case sensitive. + *
  • The is the token referenced in {@link #getDepend()}, {@link + * #getSoftDepend()}, and {@link #getLoadBefore()}. + *
  • Using spaces in the plugin's name is deprecated. + *
+ *

+ * In the plugin.yml, this entry is named name. + *

+ * Example:

name: MyPlugin
+ */ + // @ts-ignore + public getName(): string; + /** + * Gives the version of the plugin. + *
    + *
  • Version is an arbitrary string, however the most common format is + * MajorRelease.MinorRelease.Build (eg: 1.4.1). + *
  • Typically you will increment this every time you release a new + * feature or bug fix. + *
  • Displayed when a user types /version PluginName + *
+ *

+ * In the plugin.yml, this entry is named version. + *

+ * Example:

version: 1.4.1
+ */ + // @ts-ignore + public getVersion(): string; + /** + * Gives the fully qualified name of the main class for a plugin. The + * format should follow the {@link ClassLoader#loadClass(String)} syntax + * to successfully be resolved at runtime. For most plugins, this is the + * class that extends {@link JavaPlugin}. + *
    + *
  • This must contain the full namespace including the class file + * itself. + *
  • If your namespace is org.bukkit.plugin, and your class + * file is called MyPlugin then this must be + * org.bukkit.plugin.MyPlugin + *
  • No plugin can use org.bukkit. as a base package for + * any class, including the main class. + *
+ *

+ * In the plugin.yml, this entry is named main. + *

+ * Example: + *

main: org.bukkit.plugin.MyPlugin
+ */ + // @ts-ignore + public getMain(): string; + /** + * Gives a human-friendly description of the functionality the plugin + * provides. + *
    + *
  • The description can have multiple lines. + *
  • Displayed when a user types /version PluginName + *
+ *

+ * In the plugin.yml, this entry is named description. + *

+ * Example: + *

description: This plugin is so 31337. You can set yourself on fire.
+ */ + // @ts-ignore + public getDescription(): string; + /** + * Gives the phase of server startup that the plugin should be loaded. + *
    + *
  • Possible values are in {@link PluginLoadOrder}. + *
  • Defaults to {@link PluginLoadOrder#POSTWORLD}. + *
  • Certain caveats apply to each phase. + *
  • When different, {@link #getDepend()}, {@link #getSoftDepend()}, and + * {@link #getLoadBefore()} become relative in order loaded per-phase. + * If a plugin loads at STARTUP, but a dependency loads + * at POSTWORLD, the dependency will not be loaded before + * the plugin is loaded. + *
+ *

+ * In the plugin.yml, this entry is named load. + *

+ * Example:

load: STARTUP
+ */ + // @ts-ignore + public getLoad(): org.bukkit.plugin.PluginLoadOrder; + /** + * Gives the list of authors for the plugin. + *
    + *
  • Gives credit to the developer. + *
  • Used in some server error messages to provide helpful feedback on + * who to contact when an error occurs. + *
  • A bukkit.org forum handle or email address is recommended. + *
  • Is displayed when a user types /version PluginName + *
  • authors must be in YAML list + * format. + *
+ *

+ * In the plugin.yml, this has two entries, author and + * authors. + *

+ * Single author example: + *

author: CaptainInflamo
+ * Multiple author example: + *
authors: [Cogito, verrier, EvilSeph]
+ * When both are specified, author will be the first entry in the list, so + * this example: + *
author: Grum
+                 * authors:
+                 * - feildmaster
+                 * - amaranth
+ * Is equivilant to this example: + *
authors: [Grum, feildmaster, aramanth]
+ */ + // @ts-ignore + public getAuthors(): java.util.List; + /** + * Gives the plugin's or plugin's author's website. + *
    + *
  • A link to the Curse page that includes documentation and downloads + * is highly recommended. + *
  • Displayed when a user types /version PluginName + *
+ *

+ * In the plugin.yml, this entry is named website. + *

+ * Example: + *

website: http://www.curse.com/server-mods/minecraft/myplugin
+ */ + // @ts-ignore + public getWebsite(): string; + /** + * Gives a list of other plugins that the plugin requires. + *
    + *
  • Use the value in the {@link #getName()} of the target plugin to + * specify the dependency. + *
  • If any plugin listed here is not found, your plugin will fail to + * load at startup. + *
  • If multiple plugins list each other in depend, + * creating a network with no individual plugin does not list another + * plugin in the network, + * all plugins in that network will fail. + *
  • depend must be in must be in YAML list + * format. + *
+ *

+ * In the plugin.yml, this entry is named depend. + *

+ * Example: + *

depend:
+                 * - OnePlugin
+                 * - AnotherPlugin
+ */ + // @ts-ignore + public getDepend(): java.util.List; + /** + * Gives a list of other plugins that the plugin requires for full + * functionality. The {@link PluginManager} will make best effort to treat + * all entries here as if they were a {@link #getDepend() dependency}, but + * will never fail because of one of these entries. + *
    + *
  • Use the value in the {@link #getName()} of the target plugin to + * specify the dependency. + *
  • When an unresolvable plugin is listed, it will be ignored and does + * not affect load order. + *
  • When a circular dependency occurs (a network of plugins depending + * or soft-dependending each other), it will arbitrarily choose a + * plugin that can be resolved when ignoring soft-dependencies. + *
  • softdepend must be in YAML list + * format. + *
+ *

+ * In the plugin.yml, this entry is named softdepend. + *

+ * Example: + *

softdepend: [OnePlugin, AnotherPlugin]
+ */ + // @ts-ignore + public getSoftDepend(): java.util.List; + /** + * Gets the list of plugins that should consider this plugin a + * soft-dependency. + *
    + *
  • Use the value in the {@link #getName()} of the target plugin to + * specify the dependency. + *
  • The plugin should load before any other plugins listed here. + *
  • Specifying another plugin here is strictly equivalent to having the + * specified plugin's {@link #getSoftDepend()} include {@link + * #getName() this plugin}. + *
  • loadbefore must be in YAML list + * format. + *
+ *

+ * In the plugin.yml, this entry is named loadbefore. + *

+ * Example: + *

loadbefore:
+                 * - OnePlugin
+                 * - AnotherPlugin
+ */ + // @ts-ignore + public getLoadBefore(): java.util.List; + /** + * Gives the token to prefix plugin-specific logging messages with. + *
    + *
  • This includes all messages using {@link Plugin#getLogger()}. + *
  • If not specified, the server uses the plugin's {@link #getName() + * name}. + *
  • This should clearly indicate what plugin is being logged. + *
+ *

+ * In the plugin.yml, this entry is named prefix. + *

+ * Example:

prefix: ex-why-zee
+ */ + // @ts-ignore + public getPrefix(): string; + /** + * Gives the map of command-name to command-properties. Each entry in this + * map corresponds to a single command and the respective values are the + * properties of the command. Each property, with the exception of + * aliases, can be defined at runtime using methods in {@link + * PluginCommand} and are defined here only as a convenience. + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
The command section's description
NodeMethodTypeDescriptionExample
description{@link PluginCommand#setDescription(String)}StringA user-friendly description for a command. It is useful for + * documentation purposes as well as in-game help.
description: Set yourself on fire
aliases{@link PluginCommand#setAliases(List)}String or List of + * stringsAlternative command names, with special usefulness for commands + * that are already registered. Aliases are not effective when + * defined at runtime, so the plugin description file is the + * only way to have them properly defined. + *

+ * Note: Command aliases may not have a colon in them.

Single alias format: + *
aliases: combust_me
or + * multiple alias format: + *
aliases: [combust_me, combustMe]
permission{@link PluginCommand#setPermission(String)}StringThe name of the {@link Permission} required to use the command. + * A user without the permission will receive the specified + * message (see {@linkplain + * PluginCommand#setPermissionMessage(String) below}), or a + * standard one if no specific message is defined. Without the + * permission node, no {@link + * PluginCommand#setExecutor(CommandExecutor) CommandExecutor} or + * {@link PluginCommand#setTabCompleter(TabCompleter)} will be called.
permission: inferno.flagrate
permission-message{@link PluginCommand#setPermissionMessage(String)}String
    + *
  • Displayed to a player that attempts to use a command, but + * does not have the required permission. See {@link + * PluginCommand#getPermission() above}. + *
  • <permission> is a macro that is replaced with the + * permission node required to use the command. + *
  • Using empty quotes is a valid way to indicate nothing + * should be displayed to a player. + *
permission-message: You do not have /<permission>
usage{@link PluginCommand#setUsage(String)}StringThis message is displayed to a player when the {@link + * PluginCommand#setExecutor(CommandExecutor)} {@linkplain + * CommandExecutor#onCommand(CommandSender, Command, String, String[]) returns false}. + * <command> is a macro that is replaced the command issued.
usage: Syntax error! Perhaps you meant /<command> PlayerName?
+ * It is worth noting that to use a colon in a yaml, like + * `usage: Usage: /god [player]', you need to + * surround + * the message with double-quote: + *
usage: "Usage: /god [player]"
+ * The commands are structured as a hiearchy of nested mappings. + * The primary (top-level, no intendentation) node is + * `commands', while each individual command name is + * indented, indicating it maps to some value (in our case, the + * properties of the table above). + *

+ * Here is an example bringing together the piecemeal examples above, as + * well as few more definitions:

+                 * commands:
+                 * flagrate:
+                 * description: Set yourself on fire.
+                 * aliases: [combust_me, combustMe]
+                 * permission: inferno.flagrate
+                 * permission-message: You do not have /<permission>
+                 * usage: Syntax error! Perhaps you meant /<command> PlayerName?
+                 * burningdeaths:
+                 * description: List how many times you have died by fire.
+                 * aliases:
+                 * - burning_deaths
+                 * - burningDeaths
+                 * permission: inferno.burningdeaths
+                 * usage: |
+                 * /<command> [player]
+                 * Example: /<command> - see how many times you have burned to death
+                 * Example: /<command> CaptainIce - see how many times CaptainIce has burned to death
+                 * # The next command has no description, aliases, etc. defined, but is still valid
+                 * # Having an empty declaration is useful for defining the description, permission, and messages from a configuration dynamically
+                 * apocalypse:
+                 * 
+ * Note: Command names may not have a colon in their name. + */ + // @ts-ignore + public getCommands(): java.util.Map; + /** + * Gives the list of permissions the plugin will register at runtime, + * immediately proceding enabling. The format for defining permissions is + * a map from permission name to properties. To represent a map without + * any specific property, empty curly-braces ( + * {} ) may be used (as a null value is not + * accepted, unlike the {@link #getCommands() commands} above). + *

+ * A list of optional properties for permissions: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
The permission section's description
NodeDescriptionExample
descriptionPlaintext (user-friendly) description of what the permission + * is for.
description: Allows you to set yourself on fire
defaultThe default state for the permission, as defined by {@link + * Permission#getDefault()}. If not defined, it will be set to + * the value of {@link PluginDescriptionFile#getPermissionDefault()}. + *

+ * For reference:

    + *
  • true - Represents a positive assignment to + * {@link Permissible permissibles}. + *
  • false - Represents no assignment to {@link + * Permissible permissibles}. + *
  • op - Represents a positive assignment to + * {@link Permissible#isOp() operator permissibles}. + *
  • notop - Represents a positive assignment to + * {@link Permissible#isOp() non-operator permissibiles}. + *
default: true
childrenAllows other permissions to be set as a {@linkplain + * Permission#getChildren() relation} to the parent permission. + * When a parent permissions is assigned, child permissions are + * respectively assigned as well. + *
    + *
  • When a parent permission is assigned negatively, child + * permissions are assigned based on an inversion of their + * association. + *
  • When a parent permission is assigned positively, child + * permissions are assigned based on their association. + *
+ *

+ * Child permissions may be defined in a number of ways:

    + *
  • Children may be defined as a list of + * names. Using a list will treat all children associated + * positively to their parent. + *
  • Children may be defined as a map. Each permission name maps + * to either a boolean (representing the association), or a + * nested permission definition (just as another permission). + * Using a nested definition treats the child as a positive + * association. + *
  • A nested permission definition must be a map of these same + * properties. To define a valid nested permission without + * defining any specific property, empty curly-braces ( + * {} ) must be used. + *
  • A nested permission may carry it's own nested permissions + * as children, as they may also have nested permissions, and + * so forth. There is no direct limit to how deep the + * permission tree is defined. + *
As a list: + *
children: [inferno.flagrate, inferno.burningdeaths]
+ * Or as a mapping: + *
children:
+                 * inferno.flagrate: true
+                 * inferno.burningdeaths: true
+ * An additional example showing basic nested values can be seen + * here. + *
+ * The permissions are structured as a hiearchy of nested mappings. + * The primary (top-level, no intendentation) node is + * `permissions', while each individual permission name is + * indented, indicating it maps to some value (in our case, the + * properties of the table above). + *

+ * Here is an example using some of the properties:

+                 * permissions:
+                 * inferno.*:
+                 * description: Gives access to all Inferno commands
+                 * children:
+                 * inferno.flagrate: true
+                 * inferno.burningdeaths: true
+                 * inferno.flagate:
+                 * description: Allows you to ignite yourself
+                 * default: true
+                 * inferno.burningdeaths:
+                 * description: Allows you to see how many times you have burned to death
+                 * default: true
+                 * 
+ * Another example, with nested definitions, can be found here. + */ + // @ts-ignore + public getPermissions(): java.util.List; + /** + * Gives the default {@link Permission#getDefault() default} state of + * {@link #getPermissions() permissions} registered for the plugin. + *
    + *
  • If not specified, it will be {@link PermissionDefault#OP}. + *
  • It is matched using {@link PermissionDefault#getByName(String)} + *
  • It only affects permissions that do not define the + * default node. + *
  • It may be any value in {@link PermissionDefault}. + *
+ *

+ * In the plugin.yml, this entry is named default-permission. + *

+ * Example:

default-permission: NOT_OP
+ */ + // @ts-ignore + public getPermissionDefault(): org.bukkit.permissions.PermissionDefault; + /** + * Gives a set of every {@link PluginAwareness} for a plugin. An awareness + * dictates something that a plugin developer acknowledges when the plugin + * is compiled. Some implementions may define extra awarenesses that are + * not included in the API. Any unrecognized + * awareness (one unsupported or in a future version) will cause a dummy + * object to be created instead of failing. + *
    + *
  • Currently only supports the enumerated values in {@link + * PluginAwareness.Flags}. + *
  • Each awareness starts the identifier with bang-at + * (!@). + *
  • Unrecognized (future / unimplemented) entries are quietly replaced + * by a generic object that implements PluginAwareness. + *
  • A type of awareness must be defined by the runtime and acknowledged + * by the API, effectively discluding any derived type from any + * plugin's classpath. + *
  • awareness must be in YAML list + * format. + *
+ *

+ * In the plugin.yml, this entry is named awareness. + *

+ * Example:

awareness:
+                 * - !@UTF8
+ *

+ * Note: Although unknown versions of some future awareness are + * gracefully substituted, previous versions of Bukkit (ones prior to the + * first implementation of awareness) will fail to load a plugin that + * defines any awareness. + */ + // @ts-ignore + public getAwareness(): java.util.Set; + /** + * Returns the name of a plugin, including the version. This method is + * provided for convenience; it uses the {@link #getName()} and {@link + * #getVersion()} entries. + */ + // @ts-ignore + public getFullName(): string; + /** + * Gives the API version which this plugin is designed to support. No + * specific format is guaranteed. + *

    + *
  • Refer to release notes for supported API versions. + *
+ *

+ * In the plugin.yml, this entry is named api-version. + *

+ * Example:

api-version: 1.13
+ */ + // @ts-ignore + public getAPIVersion(): string; + // @ts-ignore + public getClassLoaderOf(): string; + /** + * Saves this PluginDescriptionFile to the given writer + */ + // @ts-ignore + public save(writer: java.io.Writer): void; + // @ts-ignore + public getRawName(): string; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.PluginLoadOrder.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.PluginLoadOrder.d.ts new file mode 100644 index 00000000..acdd294f --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.PluginLoadOrder.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace plugin { + // @ts-ignore + class PluginLoadOrder extends java.lang.Enum { + // @ts-ignore + public static STARTUP: org.bukkit.plugin.PluginLoadOrder; + // @ts-ignore + public static POSTWORLD: org.bukkit.plugin.PluginLoadOrder; + // @ts-ignore + public static values(): org.bukkit.plugin.PluginLoadOrder[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.plugin.PluginLoadOrder; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.PluginLoader.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.PluginLoader.d.ts new file mode 100644 index 00000000..4ea075c0 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.PluginLoader.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace plugin { + // @ts-ignore + interface PluginLoader { + /** + * Loads the plugin contained in the specified file + */ + // @ts-ignore + loadPlugin(file: java.io.File): org.bukkit.plugin.Plugin; + /** + * Loads a PluginDescriptionFile from the specified file + */ + // @ts-ignore + getPluginDescription(file: java.io.File): org.bukkit.plugin.PluginDescriptionFile; + /** + * Returns a list of all filename filters expected by this PluginLoader + */ + // @ts-ignore + getPluginFileFilters(): java.util.regex.Pattern[]; + /** + * Creates and returns registered listeners for the event classes used in + * this listener + */ + // @ts-ignore + createRegisteredListeners(listener: org.bukkit.event.Listener, plugin: org.bukkit.plugin.Plugin): java.util.Map; + /** + * Enables the specified plugin + *

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

+ * Attempting to disable a plugin that is not enabled will have no effect + */ + // @ts-ignore + disablePlugin(plugin: org.bukkit.plugin.Plugin): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.PluginLogger.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.PluginLogger.d.ts new file mode 100644 index 00000000..f36b662e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.PluginLogger.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace plugin { + // @ts-ignore + class PluginLogger extends java.util.logging.Logger { + /** + * Creates a new PluginLogger that extracts the name from a plugin. + */ + // @ts-ignore + constructor(context: org.bukkit.plugin.Plugin) + // @ts-ignore + public log(logRecord: java.util.logging.LogRecord): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.PluginManager.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.PluginManager.d.ts new file mode 100644 index 00000000..0991940d --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.PluginManager.d.ts @@ -0,0 +1,196 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace plugin { + // @ts-ignore + interface PluginManager { + /** + * Registers the specified plugin loader + */ + // @ts-ignore + registerInterface(loader: java.lang.Class): void; + /** + * Checks if the given plugin is loaded and returns it when applicable + *

+ * Please note that the name of the plugin is case-sensitive + */ + // @ts-ignore + getPlugin(name: string): org.bukkit.plugin.Plugin; + /** + * Gets a list of all currently loaded plugins + */ + // @ts-ignore + 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. + */ + // @ts-ignore + isPluginEnabled(name: string): boolean; + /** + * Checks if the given plugin is enabled or not + */ + // @ts-ignore + 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 + */ + // @ts-ignore + loadPlugin(file: java.io.File): org.bukkit.plugin.Plugin; + /** + * Loads the plugins contained within the specified directory + */ + // @ts-ignore + loadPlugins(directory: java.io.File): org.bukkit.plugin.Plugin[]; + /** + * Disables all the loaded plugins + */ + // @ts-ignore + disablePlugins(): void; + /** + * Disables and removes all plugins + */ + // @ts-ignore + clearPlugins(): void; + /** + * Calls an event with the given details + */ + // @ts-ignore + callEvent(event: org.bukkit.event.Event): void; + /** + * Registers all the events in the given listener class + */ + // @ts-ignore + registerEvents(listener: org.bukkit.event.Listener, plugin: org.bukkit.plugin.Plugin): void; + /** + * Registers the specified executor to the given event class + */ + // @ts-ignore + registerEvent(event: java.lang.Class, 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 + */ + // @ts-ignore + registerEvent(event: java.lang.Class, 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 + */ + // @ts-ignore + enablePlugin(plugin: org.bukkit.plugin.Plugin): void; + /** + * Disables the specified plugin + *

+ * Attempting to disable a plugin that is not enabled will have no effect + */ + // @ts-ignore + disablePlugin(plugin: org.bukkit.plugin.Plugin): void; + /** + * Gets a {@link Permission} from its fully qualified name + */ + // @ts-ignore + 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. + */ + // @ts-ignore + addPermission(perm: org.bukkit.permissions.Permission): void; + /** + * Removes a {@link Permission} registration from this plugin manager. + *

+ * If the specified permission does not exist in this plugin manager, + * nothing will happen. + *

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

+ * If the specified permission does not exist in this plugin manager, + * nothing will happen. + *

+ * Removing a permission registration will not remove the + * permission from any {@link Permissible}s that have it. + */ + // @ts-ignore + removePermission(name: string): void; + /** + * Gets the default permissions for the given op status + */ + // @ts-ignore + getDefaultPermissions(op: boolean): java.util.Set; + /** + * Recalculates the defaults for the given {@link Permission}. + *

+ * This will have no effect if the specified permission is not registered + * here. + */ + // @ts-ignore + recalculatePermissionDefaults(perm: org.bukkit.permissions.Permission): void; + /** + * Subscribes the given Permissible for information about the requested + * Permission, by name. + *

+ * If the specified Permission changes in any form, the Permissible will + * be asked to recalculate. + */ + // @ts-ignore + subscribeToPermission(permission: string, permissible: org.bukkit.permissions.Permissible): void; + /** + * Unsubscribes the given Permissible for information about the requested + * Permission, by name. + */ + // @ts-ignore + unsubscribeFromPermission(permission: string, permissible: org.bukkit.permissions.Permissible): void; + /** + * Gets a set containing all subscribed {@link Permissible}s to the given + * permission, by name + */ + // @ts-ignore + getPermissionSubscriptions(permission: string): 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. + */ + // @ts-ignore + subscribeToDefaultPerms(op: boolean, permissible: org.bukkit.permissions.Permissible): void; + /** + * Unsubscribes from the given Default permissions by operator status + */ + // @ts-ignore + 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 + */ + // @ts-ignore + getDefaultPermSubscriptions(op: boolean): java.util.Set; + /** + * Gets a set of all registered permissions. + *

+ * This set is a copy and will not be modified live. + */ + // @ts-ignore + getPermissions(): java.util.Set; + /** + * Returns whether or not timing code should be used for event calls + */ + // @ts-ignore + useTimings(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.RegisteredListener.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.RegisteredListener.d.ts new file mode 100644 index 00000000..f0dffb05 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.RegisteredListener.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace plugin { + // @ts-ignore + class RegisteredListener extends java.lang.Object { + // @ts-ignore + 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 + */ + // @ts-ignore + public getListener(): org.bukkit.event.Listener; + /** + * Gets the plugin for this registration + */ + // @ts-ignore + public getPlugin(): org.bukkit.plugin.Plugin; + /** + * Gets the priority for this registration + */ + // @ts-ignore + public getPriority(): org.bukkit.event.EventPriority; + /** + * Calls the event executor + */ + // @ts-ignore + public callEvent(event: org.bukkit.event.Event): void; + /** + * Whether this listener accepts cancelled events + */ + // @ts-ignore + public isIgnoringCancelled(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.RegisteredServiceProvider.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.RegisteredServiceProvider.d.ts new file mode 100644 index 00000000..aae6e7ce --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.RegisteredServiceProvider.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace plugin { + // @ts-ignore + class RegisteredServiceProvider extends java.lang.Object { + // @ts-ignore + constructor(service: java.lang.Class, provider: java.lang.Object, priority: org.bukkit.plugin.ServicePriority, plugin: org.bukkit.plugin.Plugin) + // @ts-ignore + public getService(): java.lang.Class; + // @ts-ignore + public getPlugin(): org.bukkit.plugin.Plugin; + // @ts-ignore + public getProvider(): java.lang.Object; + // @ts-ignore + public getPriority(): org.bukkit.plugin.ServicePriority; + // @ts-ignore + public compareTo(other: org.bukkit.plugin.RegisteredServiceProvider): number; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.ServicePriority.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.ServicePriority.d.ts new file mode 100644 index 00000000..82f6e2e2 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.ServicePriority.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace plugin { + // @ts-ignore + class ServicePriority extends java.lang.Enum { + // @ts-ignore + public static Lowest: org.bukkit.plugin.ServicePriority; + // @ts-ignore + public static Low: org.bukkit.plugin.ServicePriority; + // @ts-ignore + public static Normal: org.bukkit.plugin.ServicePriority; + // @ts-ignore + public static High: org.bukkit.plugin.ServicePriority; + // @ts-ignore + public static Highest: org.bukkit.plugin.ServicePriority; + // @ts-ignore + public static values(): org.bukkit.plugin.ServicePriority[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.plugin.ServicePriority; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.ServicesManager.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.ServicesManager.d.ts new file mode 100644 index 00000000..84c291af --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.ServicesManager.d.ts @@ -0,0 +1,66 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace plugin { + // @ts-ignore + interface ServicesManager { + /** + * Register a provider of a service. + */ + // @ts-ignore + register(service: java.lang.Class, provider: java.lang.Object, plugin: org.bukkit.plugin.Plugin, priority: org.bukkit.plugin.ServicePriority): void; + /** + * Unregister all the providers registered by a particular plugin. + */ + // @ts-ignore + unregisterAll(plugin: org.bukkit.plugin.Plugin): void; + /** + * Unregister a particular provider for a particular service. + */ + // @ts-ignore + unregister(service: java.lang.Class, provider: java.lang.Object): void; + /** + * Unregister a particular provider. + */ + // @ts-ignore + unregister(provider: java.lang.Object): void; + /** + * Queries for a provider. This may return if no provider has been + * registered for a service. The highest priority provider is returned. + */ + // @ts-ignore + load(service: java.lang.Class): java.lang.Object; + /** + * Queries for a provider registration. This may return if no provider + * has been registered for a service. + */ + // @ts-ignore + getRegistration(service: java.lang.Class): org.bukkit.plugin.RegisteredServiceProvider; + /** + * Get registrations of providers for a plugin. + */ + // @ts-ignore + getRegistrations(plugin: org.bukkit.plugin.Plugin): java.util.List; + /** + * Get registrations of providers for a service. The returned list is + * unmodifiable. + */ + // @ts-ignore + getRegistrations(service: java.lang.Class): java.util.Collection; + /** + * Get a list of known services. A service is known if it has registered + * providers for it. + */ + // @ts-ignore + getKnownServices(): 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. + */ + // @ts-ignore + isProvidedFor(service: java.lang.Class): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.SimplePluginManager.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.SimplePluginManager.d.ts new file mode 100644 index 00000000..554e8fec --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.SimplePluginManager.d.ts @@ -0,0 +1,112 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace plugin { + // @ts-ignore + class SimplePluginManager extends java.lang.Object implements org.bukkit.plugin.PluginManager { + // @ts-ignore + constructor(instance: org.bukkit.Server, commandMap: org.bukkit.command.SimpleCommandMap) + /** + * Registers the specified plugin loader + */ + // @ts-ignore + public registerInterface(loader: java.lang.Class): void; + /** + * Loads the plugins contained within the specified directory + */ + // @ts-ignore + public loadPlugins(directory: java.io.File): org.bukkit.plugin.Plugin[]; + /** + * Loads the plugin in the specified file + *

+ * File must be valid according to the current enabled Plugin interfaces + */ + // @ts-ignore + public loadPlugin(file: java.io.File): org.bukkit.plugin.Plugin; + /** + * Checks if the given plugin is loaded and returns it when applicable + *

+ * Please note that the name of the plugin is case-sensitive + */ + // @ts-ignore + public getPlugin(name: string): org.bukkit.plugin.Plugin; + // @ts-ignore + public 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. + */ + // @ts-ignore + public isPluginEnabled(name: string): boolean; + /** + * Checks if the given plugin is enabled or not + */ + // @ts-ignore + public isPluginEnabled(plugin: org.bukkit.plugin.Plugin): boolean; + // @ts-ignore + public enablePlugin(plugin: org.bukkit.plugin.Plugin): void; + // @ts-ignore + public disablePlugins(): void; + // @ts-ignore + public disablePlugin(plugin: org.bukkit.plugin.Plugin): void; + // @ts-ignore + public clearPlugins(): void; + /** + * Calls an event with the given details. + *

+ * This method only synchronizes when the event is not asynchronous. + */ + // @ts-ignore + public callEvent(event: org.bukkit.event.Event): void; + // @ts-ignore + public registerEvents(listener: org.bukkit.event.Listener, plugin: org.bukkit.plugin.Plugin): void; + // @ts-ignore + public registerEvent(event: java.lang.Class, listener: org.bukkit.event.Listener, priority: org.bukkit.event.EventPriority, executor: org.bukkit.plugin.EventExecutor, plugin: org.bukkit.plugin.Plugin): void; + /** + * Registers the given event to the specified listener using a directly + * passed EventExecutor + */ + // @ts-ignore + public registerEvent(event: java.lang.Class, listener: org.bukkit.event.Listener, priority: org.bukkit.event.EventPriority, executor: org.bukkit.plugin.EventExecutor, plugin: org.bukkit.plugin.Plugin, ignoreCancelled: boolean): void; + // @ts-ignore + public getPermission(name: string): org.bukkit.permissions.Permission; + // @ts-ignore + public addPermission(perm: org.bukkit.permissions.Permission): void; + // @ts-ignore + public addPermission(perm: org.bukkit.permissions.Permission, dirty: boolean): void; + // @ts-ignore + public getDefaultPermissions(op: boolean): java.util.Set; + // @ts-ignore + public removePermission(perm: org.bukkit.permissions.Permission): void; + // @ts-ignore + public removePermission(name: string): void; + // @ts-ignore + public recalculatePermissionDefaults(perm: org.bukkit.permissions.Permission): void; + // @ts-ignore + public dirtyPermissibles(): void; + // @ts-ignore + public subscribeToPermission(permission: string, permissible: org.bukkit.permissions.Permissible): void; + // @ts-ignore + public unsubscribeFromPermission(permission: string, permissible: org.bukkit.permissions.Permissible): void; + // @ts-ignore + public getPermissionSubscriptions(permission: string): java.util.Set; + // @ts-ignore + public subscribeToDefaultPerms(op: boolean, permissible: org.bukkit.permissions.Permissible): void; + // @ts-ignore + public unsubscribeFromDefaultPerms(op: boolean, permissible: org.bukkit.permissions.Permissible): void; + // @ts-ignore + public getDefaultPermSubscriptions(op: boolean): java.util.Set; + // @ts-ignore + public getPermissions(): java.util.Set; + // @ts-ignore + public useTimings(): boolean; + /** + * Sets whether or not per event timing code should be used + */ + // @ts-ignore + public useTimings(use: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.SimpleServicesManager.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.SimpleServicesManager.d.ts new file mode 100644 index 00000000..b079cd60 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.SimpleServicesManager.d.ts @@ -0,0 +1,66 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace plugin { + // @ts-ignore + class SimpleServicesManager extends java.lang.Object implements org.bukkit.plugin.ServicesManager { + // @ts-ignore + constructor() + /** + * Register a provider of a service. + */ + // @ts-ignore + public register(service: java.lang.Class, provider: java.lang.Object, plugin: org.bukkit.plugin.Plugin, priority: org.bukkit.plugin.ServicePriority): void; + /** + * Unregister all the providers registered by a particular plugin. + */ + // @ts-ignore + public unregisterAll(plugin: org.bukkit.plugin.Plugin): void; + /** + * Unregister a particular provider for a particular service. + */ + // @ts-ignore + public unregister(service: java.lang.Class, provider: java.lang.Object): void; + /** + * Unregister a particular provider. + */ + // @ts-ignore + public unregister(provider: java.lang.Object): void; + /** + * Queries for a provider. This may return if no provider has been + * registered for a service. The highest priority provider is returned. + */ + // @ts-ignore + public load(service: java.lang.Class): java.lang.Object; + /** + * Queries for a provider registration. This may return if no provider + * has been registered for a service. + */ + // @ts-ignore + public getRegistration(service: java.lang.Class): org.bukkit.plugin.RegisteredServiceProvider; + /** + * Get registrations of providers for a plugin. + */ + // @ts-ignore + public getRegistrations(plugin: org.bukkit.plugin.Plugin): java.util.List; + /** + * Get registrations of providers for a service. The returned list is + * an unmodifiable copy. + */ + // @ts-ignore + public getRegistrations(service: java.lang.Class): java.util.List; + /** + * Get a list of known services. A service is known if it has registered + * providers for it. + */ + // @ts-ignore + public getKnownServices(): java.util.Set; + /** + * Returns whether a provider has been registered for a service. + */ + // @ts-ignore + public isProvidedFor(service: java.lang.Class): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.TimedRegisteredListener.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.TimedRegisteredListener.d.ts new file mode 100644 index 00000000..854cd752 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.TimedRegisteredListener.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace plugin { + // @ts-ignore + class TimedRegisteredListener extends org.bukkit.plugin.RegisteredListener { + // @ts-ignore + constructor(pluginListener: org.bukkit.event.Listener, eventExecutor: org.bukkit.plugin.EventExecutor, eventPriority: org.bukkit.event.EventPriority, registeredPlugin: org.bukkit.plugin.Plugin, listenCancelled: boolean) + // @ts-ignore + public callEvent(event: org.bukkit.event.Event): void; + /** + * Resets the call count and total time for this listener + */ + // @ts-ignore + public reset(): void; + /** + * Gets the total times this listener has been called + */ + // @ts-ignore + public getCount(): number; + /** + * Gets the total time calls to this listener have taken + */ + // @ts-ignore + public getTotalTime(): number; + /** + * Gets the class of the events this listener handled. If it handled + * multiple classes of event, the closest shared superclass will be + * returned, such that for any event this listener has handled, + * this.getEventClass().isAssignableFrom(event.getClass()) + * and no class this.getEventClass().isAssignableFrom(clazz) + * {@literal && this.getEventClass() != clazz &&} + * event.getClass().isAssignableFrom(clazz) for all handled events. + */ + // @ts-ignore + public getEventClass(): java.lang.Class; + /** + * Gets whether this listener has handled multiple events, such that for + * some two events, eventA.getClass() != eventB.getClass(). + */ + // @ts-ignore + public hasMultiple(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.UnknownDependencyException.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.UnknownDependencyException.d.ts new file mode 100644 index 00000000..20e81dfc --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.UnknownDependencyException.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace plugin { + // @ts-ignore + class UnknownDependencyException extends java.lang.RuntimeException { + /** + * Constructs a new UnknownDependencyException based on the given + * Exception + */ + // @ts-ignore + constructor(throwable: java.lang.Throwable) + /** + * Constructs a new UnknownDependencyException with the given message + */ + // @ts-ignore + constructor(message: string) + /** + * Constructs a new UnknownDependencyException based on the given + * Exception + */ + // @ts-ignore + constructor(throwable: java.lang.Throwable, message: string) + /** + * Constructs a new UnknownDependencyException + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.java.JavaPlugin.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.java.JavaPlugin.d.ts new file mode 100644 index 00000000..294fa6ec --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.java.JavaPlugin.d.ts @@ -0,0 +1,127 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace plugin { + namespace java { + // @ts-ignore + abstract class JavaPlugin extends org.bukkit.plugin.PluginBase { + // @ts-ignore + constructor() + // @ts-ignore + constructor(loader: org.bukkit.plugin.java.JavaPluginLoader, description: org.bukkit.plugin.PluginDescriptionFile, dataFolder: java.io.File, file: java.io.File) + /** + * Returns the folder that the plugin data's files are located in. The + * folder may not yet exist. + */ + // @ts-ignore + public getDataFolder(): java.io.File; + /** + * Gets the associated PluginLoader responsible for this plugin + */ + // @ts-ignore + public getPluginLoader(): org.bukkit.plugin.PluginLoader; + /** + * Returns the Server instance currently running this plugin + */ + // @ts-ignore + public getServer(): org.bukkit.Server; + /** + * Returns a value indicating whether or not this plugin is currently + * enabled + */ + // @ts-ignore + public isEnabled(): boolean; + /** + * Returns the file which contains this plugin + */ + // @ts-ignore + protected getFile(): java.io.File; + /** + * Returns the plugin.yaml file containing the details for this plugin + */ + // @ts-ignore + public getDescription(): org.bukkit.plugin.PluginDescriptionFile; + // @ts-ignore + public getConfig(): org.bukkit.configuration.file.FileConfiguration; + /** + * Provides a reader for a text file located inside the jar. + *

+ * The returned reader will read text with the UTF-8 charset. + */ + // @ts-ignore + protected getTextResource(file: string): java.io.Reader; + // @ts-ignore + public reloadConfig(): void; + // @ts-ignore + public saveConfig(): void; + // @ts-ignore + public saveDefaultConfig(): void; + // @ts-ignore + public saveResource(resourcePath: string, replace: boolean): void; + // @ts-ignore + public getResource(filename: string): java.io.InputStream; + /** + * Returns the ClassLoader which holds this plugin + */ + // @ts-ignore + protected getClassLoader(): java.lang.ClassLoader; + /** + * Sets the enabled state of this plugin + */ + // @ts-ignore + protected setEnabled(enabled: boolean): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public onCommand(sender: org.bukkit.command.CommandSender, command: org.bukkit.command.Command, label: string, args: string): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public onTabComplete(sender: org.bukkit.command.CommandSender, command: org.bukkit.command.Command, alias: string, args: string): java.util.List; + /** + * Gets the command with the given name, specific to this plugin. Commands + * need to be registered in the {@link PluginDescriptionFile#getCommands() + * PluginDescriptionFile} to exist at runtime. + */ + // @ts-ignore + public getCommand(name: string): org.bukkit.command.PluginCommand; + // @ts-ignore + public onLoad(): void; + // @ts-ignore + public onDisable(): void; + // @ts-ignore + public onEnable(): void; + // @ts-ignore + public getDefaultWorldGenerator(worldName: string, id: string): org.bukkit.generator.ChunkGenerator; + // @ts-ignore + public isNaggable(): boolean; + // @ts-ignore + public setNaggable(canNag: boolean): void; + // @ts-ignore + public getLogger(): java.util.logging.Logger; + // @ts-ignore + public toString(): string; + /** + * This method provides fast access to the plugin that has {@link + * #getProvidingPlugin(Class) provided} the given plugin class, which is + * usually the plugin that implemented it. + *

+ * An exception to this would be if plugin's jar that contained the class + * does not extend the class, where the intended plugin would have + * resided in a different jar / classloader. + */ + // @ts-ignore + public static getPlugin(clazz: java.lang.Class): org.bukkit.plugin.java.JavaPlugin; + /** + * This method provides fast access to the plugin that has provided the + * given class. + */ + // @ts-ignore + public static getProvidingPlugin(clazz: java.lang.Class): org.bukkit.plugin.java.JavaPlugin; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.java.JavaPluginLoader.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.java.JavaPluginLoader.d.ts new file mode 100644 index 00000000..a4dffe94 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.java.JavaPluginLoader.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace plugin { + namespace java { + // @ts-ignore + class JavaPluginLoader extends java.lang.Object implements org.bukkit.plugin.PluginLoader { + /** + * This class was not meant to be constructed explicitly + */ + // @ts-ignore + constructor(instance: org.bukkit.Server) + // @ts-ignore + public loadPlugin(file: java.io.File): org.bukkit.plugin.Plugin; + // @ts-ignore + public getPluginDescription(file: java.io.File): org.bukkit.plugin.PluginDescriptionFile; + // @ts-ignore + public getPluginFileFilters(): java.util.regex.Pattern[]; + // @ts-ignore + public createRegisteredListeners(listener: org.bukkit.event.Listener, plugin: org.bukkit.plugin.Plugin): java.util.Map; + // @ts-ignore + public enablePlugin(plugin: org.bukkit.plugin.Plugin): void; + // @ts-ignore + public disablePlugin(plugin: org.bukkit.plugin.Plugin): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.ChannelNameTooLongException.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.ChannelNameTooLongException.d.ts new file mode 100644 index 00000000..177c6a12 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.ChannelNameTooLongException.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace plugin { + namespace messaging { + // @ts-ignore + class ChannelNameTooLongException extends java.lang.RuntimeException { + // @ts-ignore + constructor() + // @ts-ignore + constructor(channel: string) + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.ChannelNotRegisteredException.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.ChannelNotRegisteredException.d.ts new file mode 100644 index 00000000..3e521c37 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.ChannelNotRegisteredException.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace plugin { + namespace messaging { + // @ts-ignore + class ChannelNotRegisteredException extends java.lang.RuntimeException { + // @ts-ignore + constructor() + // @ts-ignore + constructor(channel: string) + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.MessageTooLargeException.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.MessageTooLargeException.d.ts new file mode 100644 index 00000000..d885e5e0 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.MessageTooLargeException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace plugin { + namespace messaging { + // @ts-ignore + class MessageTooLargeException extends java.lang.RuntimeException { + // @ts-ignore + constructor() + // @ts-ignore + constructor(message: number) + // @ts-ignore + constructor(length: number) + // @ts-ignore + constructor(msg: string) + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.Messenger.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.Messenger.d.ts new file mode 100644 index 00000000..423880c6 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.Messenger.d.ts @@ -0,0 +1,134 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace plugin { + namespace messaging { + // @ts-ignore + interface Messenger { + // @ts-ignore + MAX_MESSAGE_SIZE: number; + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + unregisterIncomingPluginChannel(plugin: org.bukkit.plugin.Plugin, channel: string): void; + /** + * Unregisters the specific plugin from listening on all plugin channels + * through all listeners. + */ + // @ts-ignore + unregisterIncomingPluginChannel(plugin: org.bukkit.plugin.Plugin): void; + /** + * Gets a set containing all the outgoing plugin channels. + */ + // @ts-ignore + getOutgoingChannels(): java.util.Set; + /** + * Gets a set containing all the outgoing plugin channels that the + * specified plugin is registered to. + */ + // @ts-ignore + getOutgoingChannels(plugin: org.bukkit.plugin.Plugin): java.util.Set; + /** + * Gets a set containing all the incoming plugin channels. + */ + // @ts-ignore + getIncomingChannels(): java.util.Set; + /** + * Gets a set containing all the incoming plugin channels that the + * specified plugin is registered for. + */ + // @ts-ignore + getIncomingChannels(plugin: org.bukkit.plugin.Plugin): java.util.Set; + /** + * Gets a set containing all the incoming plugin channel registrations + * that the specified plugin has. + */ + // @ts-ignore + getIncomingChannelRegistrations(plugin: org.bukkit.plugin.Plugin): java.util.Set; + /** + * Gets a set containing all the incoming plugin channel registrations + * that are on the requested channel. + */ + // @ts-ignore + getIncomingChannelRegistrations(channel: string): java.util.Set; + /** + * Gets a set containing all the incoming plugin channel registrations + * that the specified plugin has on the requested channel. + */ + // @ts-ignore + getIncomingChannelRegistrations(plugin: org.bukkit.plugin.Plugin, channel: string): 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. + */ + // @ts-ignore + isRegistrationValid(registration: org.bukkit.plugin.messaging.PluginMessageListenerRegistration): boolean; + /** + * Checks if the specified plugin has registered to receive incoming + * messages through the requested channel. + */ + // @ts-ignore + isIncomingChannelRegistered(plugin: org.bukkit.plugin.Plugin, channel: string): boolean; + /** + * Checks if the specified plugin has registered to send outgoing messages + * through the requested channel. + */ + // @ts-ignore + isOutgoingChannelRegistered(plugin: org.bukkit.plugin.Plugin, channel: string): boolean; + /** + * Dispatches the specified incoming message to any registered listeners. + */ + // @ts-ignore + dispatchIncomingMessage(source: org.bukkit.entity.Player, channel: string, message: number): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.PluginChannelDirection.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.PluginChannelDirection.d.ts new file mode 100644 index 00000000..a07f33c3 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.PluginChannelDirection.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace plugin { + namespace messaging { + // @ts-ignore + class PluginChannelDirection extends java.lang.Enum { + // @ts-ignore + public static INCOMING: org.bukkit.plugin.messaging.PluginChannelDirection; + // @ts-ignore + public static OUTGOING: org.bukkit.plugin.messaging.PluginChannelDirection; + // @ts-ignore + public static values(): org.bukkit.plugin.messaging.PluginChannelDirection[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.plugin.messaging.PluginChannelDirection; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.PluginMessageListener.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.PluginMessageListener.d.ts new file mode 100644 index 00000000..32132f2b --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.PluginMessageListener.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace plugin { + namespace messaging { + // @ts-ignore + interface PluginMessageListener { + /** + * A method that will be thrown when a PluginMessageSource sends a plugin + * message on a registered channel. + */ + // @ts-ignore + onPluginMessageReceived(channel: string, player: org.bukkit.entity.Player, message: number): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.PluginMessageListenerRegistration.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.PluginMessageListenerRegistration.d.ts new file mode 100644 index 00000000..5e78bdf3 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.PluginMessageListenerRegistration.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace plugin { + namespace messaging { + // @ts-ignore + class PluginMessageListenerRegistration extends java.lang.Object { + // @ts-ignore + 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. + */ + // @ts-ignore + public getChannel(): string; + /** + * Gets the registered listener described by this registration. + */ + // @ts-ignore + public getListener(): org.bukkit.plugin.messaging.PluginMessageListener; + /** + * Gets the plugin that this registration is for. + */ + // @ts-ignore + public getPlugin(): org.bukkit.plugin.Plugin; + /** + * Checks if this registration is still valid. + */ + // @ts-ignore + public isValid(): boolean; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.PluginMessageRecipient.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.PluginMessageRecipient.d.ts new file mode 100644 index 00000000..070c5c8c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.PluginMessageRecipient.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace plugin { + namespace messaging { + // @ts-ignore + interface PluginMessageRecipient { + /** + * Sends this recipient a Plugin Message on the specified outgoing + * channel. + *

+ * The message may not be larger than {@link Messenger#MAX_MESSAGE_SIZE} + * bytes, and the plugin must be registered to send messages on the + * specified channel. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getListeningPluginChannels(): java.util.Set; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.ReservedChannelException.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.ReservedChannelException.d.ts new file mode 100644 index 00000000..785fb2b7 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.ReservedChannelException.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace plugin { + namespace messaging { + // @ts-ignore + class ReservedChannelException extends java.lang.RuntimeException { + // @ts-ignore + constructor() + // @ts-ignore + constructor(name: string) + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.StandardMessenger.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.StandardMessenger.d.ts new file mode 100644 index 00000000..94748214 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.plugin.messaging.StandardMessenger.d.ts @@ -0,0 +1,68 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace plugin { + namespace messaging { + // @ts-ignore + class StandardMessenger extends java.lang.Object implements org.bukkit.plugin.messaging.Messenger { + // @ts-ignore + constructor() + // @ts-ignore + public isReservedChannel(channel: string): boolean; + // @ts-ignore + public registerOutgoingPluginChannel(plugin: org.bukkit.plugin.Plugin, channel: string): void; + // @ts-ignore + public unregisterOutgoingPluginChannel(plugin: org.bukkit.plugin.Plugin, channel: string): void; + // @ts-ignore + public unregisterOutgoingPluginChannel(plugin: org.bukkit.plugin.Plugin): void; + // @ts-ignore + public registerIncomingPluginChannel(plugin: org.bukkit.plugin.Plugin, channel: string, listener: org.bukkit.plugin.messaging.PluginMessageListener): org.bukkit.plugin.messaging.PluginMessageListenerRegistration; + // @ts-ignore + public unregisterIncomingPluginChannel(plugin: org.bukkit.plugin.Plugin, channel: string, listener: org.bukkit.plugin.messaging.PluginMessageListener): void; + // @ts-ignore + public unregisterIncomingPluginChannel(plugin: org.bukkit.plugin.Plugin, channel: string): void; + // @ts-ignore + public unregisterIncomingPluginChannel(plugin: org.bukkit.plugin.Plugin): void; + // @ts-ignore + public getOutgoingChannels(): java.util.Set; + // @ts-ignore + public getOutgoingChannels(plugin: org.bukkit.plugin.Plugin): java.util.Set; + // @ts-ignore + public getIncomingChannels(): java.util.Set; + // @ts-ignore + public getIncomingChannels(plugin: org.bukkit.plugin.Plugin): java.util.Set; + // @ts-ignore + public getIncomingChannelRegistrations(plugin: org.bukkit.plugin.Plugin): java.util.Set; + // @ts-ignore + public getIncomingChannelRegistrations(channel: string): java.util.Set; + // @ts-ignore + public getIncomingChannelRegistrations(plugin: org.bukkit.plugin.Plugin, channel: string): java.util.Set; + // @ts-ignore + public isRegistrationValid(registration: org.bukkit.plugin.messaging.PluginMessageListenerRegistration): boolean; + // @ts-ignore + public isIncomingChannelRegistered(plugin: org.bukkit.plugin.Plugin, channel: string): boolean; + // @ts-ignore + public isOutgoingChannelRegistered(plugin: org.bukkit.plugin.Plugin, channel: string): boolean; + // @ts-ignore + public dispatchIncomingMessage(source: org.bukkit.entity.Player, channel: string, message: number): void; + /** + * Validates a Plugin Channel name. + */ + // @ts-ignore + public static validateChannel(channel: string): void; + /** + * Validates and corrects a Plugin Channel name. Method is not reentrant / idempotent. + */ + // @ts-ignore + public static validateAndCorrectChannel(channel: string): string; + /** + * Validates the input of a Plugin Message, ensuring the arguments are all + * valid. + */ + // @ts-ignore + public static validatePluginMessage(messenger: org.bukkit.plugin.messaging.Messenger, source: org.bukkit.plugin.Plugin, channel: string, message: number): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.potion.Potion.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.potion.Potion.d.ts new file mode 100644 index 00000000..d9494da6 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.potion.Potion.d.ts @@ -0,0 +1,136 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace potion { + // @ts-ignore + class Potion extends java.lang.Object { + /** + * Construct a new potion of the given type. Unless the type is {@link + * PotionType#WATER}, it will be level one, without extended duration. + * Don't use this constructor to create a no-effect potion other than + * water bottle. + */ + // @ts-ignore + constructor(type: org.bukkit.potion.PotionType) + /** + * Create a new potion of the given type and level. + */ + // @ts-ignore + constructor(type: org.bukkit.potion.PotionType, level: number) + /** + * Create a new potion of the given type and level. + */ + // @ts-ignore + constructor(type: org.bukkit.potion.PotionType, level: number, splash: boolean) + /** + * Create a new potion of the given type and level. + */ + // @ts-ignore + constructor(type: org.bukkit.potion.PotionType, level: number, splash: boolean, extended: boolean) + /** + * Chain this to the constructor to make the potion a splash potion. + */ + // @ts-ignore + public splash(): org.bukkit.potion.Potion; + /** + * Chain this to the constructor to extend the potion's duration. + */ + // @ts-ignore + public extend(): org.bukkit.potion.Potion; + /** + * Applies the effects of this potion to the given {@link ItemStack}. The + * ItemStack must be a potion. + */ + // @ts-ignore + public apply(to: org.bukkit.inventory.ItemStack): void; + /** + * Applies the effects that would be applied by this potion to the given + * {@link LivingEntity}. + */ + // @ts-ignore + public apply(to: org.bukkit.entity.LivingEntity): void; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a collection of {@link PotionEffect}s that this {@link Potion} + * would confer upon a {@link LivingEntity}. + */ + // @ts-ignore + public getEffects(): java.util.Collection; + /** + * Returns the level of this potion. + */ + // @ts-ignore + public getLevel(): number; + /** + * Returns the {@link PotionType} of this potion. + */ + // @ts-ignore + public getType(): org.bukkit.potion.PotionType; + /** + * Returns whether this potion has an extended duration. + */ + // @ts-ignore + public hasExtendedDuration(): boolean; + // @ts-ignore + public hashCode(): number; + /** + * Returns whether this potion is a splash potion. + */ + // @ts-ignore + public isSplash(): boolean; + /** + * Set whether this potion has extended duration. This will cause the + * potion to have roughly 8/3 more duration than a regular potion. + */ + // @ts-ignore + public setHasExtendedDuration(isExtended: boolean): void; + /** + * Sets whether this potion is a splash potion. Splash potions can be + * thrown for a radius effect. + */ + // @ts-ignore + public setSplash(isSplash: boolean): void; + /** + * Sets the {@link PotionType} of this potion. + */ + // @ts-ignore + public setType(type: org.bukkit.potion.PotionType): void; + /** + * Sets the level of this potion. + */ + // @ts-ignore + public setLevel(level: number): void; + /** + * Converts this potion to a valid potion damage short, usable for potion + * item stacks. + */ + // @ts-ignore + public toDamageValue(): number; + /** + * Converts this potion to an {@link ItemStack} with the specified amount + * and a correct damage value. + */ + // @ts-ignore + public toItemStack(amount: number): org.bukkit.inventory.ItemStack; + // @ts-ignore + public static fromDamage(damage: number): org.bukkit.potion.Potion; + // @ts-ignore + public static fromItemStack(item: org.bukkit.inventory.ItemStack): org.bukkit.potion.Potion; + /** + * Returns an instance of {@link PotionBrewer}. + */ + // @ts-ignore + public static getBrewer(): org.bukkit.potion.PotionBrewer; + /** + * Sets the current instance of {@link PotionBrewer}. Generally not to be + * used from within a plugin. + */ + // @ts-ignore + public static setPotionBrewer(other: org.bukkit.potion.PotionBrewer): void; + // @ts-ignore + public getNameId(): number; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.potion.PotionBrewer.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.potion.PotionBrewer.d.ts new file mode 100644 index 00000000..9c4d2ee7 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.potion.PotionBrewer.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace potion { + // @ts-ignore + interface PotionBrewer { + /** + * Creates a {@link PotionEffect} from the given {@link PotionEffectType}, + * applying duration modifiers and checks. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getEffectsFromDamage(damage: number): java.util.Collection; + /** + * Returns a collection of {@link PotionEffect} that would be applied from + * a potion with the given type. + */ + // @ts-ignore + getEffects(type: org.bukkit.potion.PotionType, upgraded: boolean, extended: boolean): java.util.Collection; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.potion.PotionData.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.potion.PotionData.d.ts new file mode 100644 index 00000000..54938187 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.potion.PotionData.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace potion { + // @ts-ignore + class PotionData extends java.lang.Object { + /** + * Instantiates a final PotionData object to contain information about a + * Potion + */ + // @ts-ignore + constructor(type: org.bukkit.potion.PotionType, extended: boolean, upgraded: boolean) + // @ts-ignore + constructor(type: org.bukkit.potion.PotionType) + /** + * Gets the type of the potion, Type matches up with each kind of craftable + * potion + */ + // @ts-ignore + public getType(): org.bukkit.potion.PotionType; + /** + * Checks if the potion is in an upgraded state. This refers to whether or + * not the potion is Tier 2, such as Potion of Fire Resistance II. + */ + // @ts-ignore + public isUpgraded(): boolean; + /** + * Checks if the potion is in an extended state. This refers to the extended + * duration potions + */ + // @ts-ignore + public isExtended(): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.potion.PotionEffect.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.potion.PotionEffect.d.ts new file mode 100644 index 00000000..f4366add --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.potion.PotionEffect.d.ts @@ -0,0 +1,78 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace potion { + // @ts-ignore + class PotionEffect extends java.lang.Object implements org.bukkit.configuration.serialization.ConfigurationSerializable { + /** + * Creates a potion effect. + */ + // @ts-ignore + constructor(type: org.bukkit.potion.PotionEffectType, duration: number, amplifier: number, ambient: boolean, particles: boolean, icon: boolean) + /** + * Creates a potion effect with no defined color. + */ + // @ts-ignore + constructor(type: org.bukkit.potion.PotionEffectType, duration: number, amplifier: number, ambient: boolean, particles: boolean) + /** + * Creates a potion effect. Assumes that particles are visible + */ + // @ts-ignore + constructor(type: org.bukkit.potion.PotionEffectType, duration: number, amplifier: number, ambient: boolean) + /** + * Creates a potion effect. Assumes ambient is true. + */ + // @ts-ignore + constructor(type: org.bukkit.potion.PotionEffectType, duration: number, amplifier: number) + /** + * Constructor for deserialization. + */ + // @ts-ignore + constructor(map: java.util.Map) + // @ts-ignore + public serialize(): java.util.Map; + /** + * Attempts to add the effect represented by this object to the given + * {@link LivingEntity}. + */ + // @ts-ignore + public apply(entity: org.bukkit.entity.LivingEntity): boolean; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns the amplifier of this effect. A higher amplifier means the + * potion effect happens more often over its duration and in some cases + * has more effect on its target. + */ + // @ts-ignore + public getAmplifier(): number; + /** + * Returns the duration (in ticks) that this effect will run for when + * applied to a {@link LivingEntity}. + */ + // @ts-ignore + public getDuration(): number; + /** + * Returns the {@link PotionEffectType} of this effect. + */ + // @ts-ignore + public getType(): org.bukkit.potion.PotionEffectType; + /** + * Makes potion effect produce more, translucent, particles. + */ + // @ts-ignore + public isAmbient(): boolean; + // @ts-ignore + public hasParticles(): boolean; + // @ts-ignore + public getColor(): org.bukkit.Color; + // @ts-ignore + public hasIcon(): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.potion.PotionEffectType.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.potion.PotionEffectType.d.ts new file mode 100644 index 00000000..b943de44 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.potion.PotionEffectType.d.ts @@ -0,0 +1,141 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace potion { + // @ts-ignore + abstract class PotionEffectType extends java.lang.Object { + // @ts-ignore + constructor(id: number) + // @ts-ignore + public static SPEED: org.bukkit.potion.PotionEffectType; + // @ts-ignore + public static SLOW: org.bukkit.potion.PotionEffectType; + // @ts-ignore + public static FAST_DIGGING: org.bukkit.potion.PotionEffectType; + // @ts-ignore + public static SLOW_DIGGING: org.bukkit.potion.PotionEffectType; + // @ts-ignore + public static INCREASE_DAMAGE: org.bukkit.potion.PotionEffectType; + // @ts-ignore + public static HEAL: org.bukkit.potion.PotionEffectType; + // @ts-ignore + public static HARM: org.bukkit.potion.PotionEffectType; + // @ts-ignore + public static JUMP: org.bukkit.potion.PotionEffectType; + // @ts-ignore + public static CONFUSION: org.bukkit.potion.PotionEffectType; + // @ts-ignore + public static REGENERATION: org.bukkit.potion.PotionEffectType; + // @ts-ignore + public static DAMAGE_RESISTANCE: org.bukkit.potion.PotionEffectType; + // @ts-ignore + public static FIRE_RESISTANCE: org.bukkit.potion.PotionEffectType; + // @ts-ignore + public static WATER_BREATHING: org.bukkit.potion.PotionEffectType; + // @ts-ignore + public static INVISIBILITY: org.bukkit.potion.PotionEffectType; + // @ts-ignore + public static BLINDNESS: org.bukkit.potion.PotionEffectType; + // @ts-ignore + public static NIGHT_VISION: org.bukkit.potion.PotionEffectType; + // @ts-ignore + public static HUNGER: org.bukkit.potion.PotionEffectType; + // @ts-ignore + public static WEAKNESS: org.bukkit.potion.PotionEffectType; + // @ts-ignore + public static POISON: org.bukkit.potion.PotionEffectType; + // @ts-ignore + public static WITHER: org.bukkit.potion.PotionEffectType; + // @ts-ignore + public static HEALTH_BOOST: org.bukkit.potion.PotionEffectType; + // @ts-ignore + public static ABSORPTION: org.bukkit.potion.PotionEffectType; + // @ts-ignore + public static SATURATION: org.bukkit.potion.PotionEffectType; + // @ts-ignore + public static GLOWING: org.bukkit.potion.PotionEffectType; + // @ts-ignore + public static LEVITATION: org.bukkit.potion.PotionEffectType; + // @ts-ignore + public static LUCK: org.bukkit.potion.PotionEffectType; + // @ts-ignore + public static UNLUCK: org.bukkit.potion.PotionEffectType; + // @ts-ignore + public static SLOW_FALLING: org.bukkit.potion.PotionEffectType; + // @ts-ignore + public static CONDUIT_POWER: org.bukkit.potion.PotionEffectType; + // @ts-ignore + public static DOLPHINS_GRACE: org.bukkit.potion.PotionEffectType; + // @ts-ignore + public static BAD_OMEN: org.bukkit.potion.PotionEffectType; + // @ts-ignore + public static HERO_OF_THE_VILLAGE: org.bukkit.potion.PotionEffectType; + /** + * Creates a PotionEffect from this PotionEffectType, applying duration + * modifiers and checks. + */ + // @ts-ignore + public createEffect(duration: number, amplifier: number): org.bukkit.potion.PotionEffect; + /** + * Returns the duration modifier applied to effects of this type. + */ + // @ts-ignore + public abstract getDurationModifier(): number; + /** + * Returns the unique ID of this type. + */ + // @ts-ignore + public getId(): number; + /** + * Returns the name of this effect type. + */ + // @ts-ignore + public abstract getName(): string; + /** + * Returns whether the effect of this type happens once, immediately. + */ + // @ts-ignore + public abstract isInstant(): boolean; + /** + * Returns the color of this effect type. + */ + // @ts-ignore + public abstract getColor(): org.bukkit.Color; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + /** + * Gets the effect type specified by the unique id. + */ + // @ts-ignore + public static getById(id: number): org.bukkit.potion.PotionEffectType; + /** + * Gets the effect type specified by the given name. + */ + // @ts-ignore + public static getByName(name: string): org.bukkit.potion.PotionEffectType; + /** + * Registers an effect type with the given object. + *

+ * Generally not to be used from within a plugin. + */ + // @ts-ignore + public static registerPotionEffectType(type: org.bukkit.potion.PotionEffectType): void; + /** + * Stops accepting any effect type registrations. + */ + // @ts-ignore + public static stopAcceptingRegistrations(): void; + /** + * Returns an array of all the registered {@link PotionEffectType}s. + * This array is not necessarily in any particular order. + */ + // @ts-ignore + public static values(): org.bukkit.potion.PotionEffectType[]; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.potion.PotionEffectTypeWrapper.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.potion.PotionEffectTypeWrapper.d.ts new file mode 100644 index 00000000..5fae45d5 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.potion.PotionEffectTypeWrapper.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace potion { + // @ts-ignore + class PotionEffectTypeWrapper extends org.bukkit.potion.PotionEffectType { + // @ts-ignore + constructor(id: number) + // @ts-ignore + public getDurationModifier(): number; + // @ts-ignore + public getName(): string; + /** + * Get the potion type bound to this wrapper. + */ + // @ts-ignore + public getType(): org.bukkit.potion.PotionEffectType; + // @ts-ignore + public isInstant(): boolean; + // @ts-ignore + public getColor(): org.bukkit.Color; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.potion.PotionType.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.potion.PotionType.d.ts new file mode 100644 index 00000000..d06721dd --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.potion.PotionType.d.ts @@ -0,0 +1,77 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace potion { + // @ts-ignore + class PotionType extends java.lang.Enum { + // @ts-ignore + public static UNCRAFTABLE: org.bukkit.potion.PotionType; + // @ts-ignore + public static WATER: org.bukkit.potion.PotionType; + // @ts-ignore + public static MUNDANE: org.bukkit.potion.PotionType; + // @ts-ignore + public static THICK: org.bukkit.potion.PotionType; + // @ts-ignore + public static AWKWARD: org.bukkit.potion.PotionType; + // @ts-ignore + public static NIGHT_VISION: org.bukkit.potion.PotionType; + // @ts-ignore + public static INVISIBILITY: org.bukkit.potion.PotionType; + // @ts-ignore + public static JUMP: org.bukkit.potion.PotionType; + // @ts-ignore + public static FIRE_RESISTANCE: org.bukkit.potion.PotionType; + // @ts-ignore + public static SPEED: org.bukkit.potion.PotionType; + // @ts-ignore + public static SLOWNESS: org.bukkit.potion.PotionType; + // @ts-ignore + public static WATER_BREATHING: org.bukkit.potion.PotionType; + // @ts-ignore + public static INSTANT_HEAL: org.bukkit.potion.PotionType; + // @ts-ignore + public static INSTANT_DAMAGE: org.bukkit.potion.PotionType; + // @ts-ignore + public static POISON: org.bukkit.potion.PotionType; + // @ts-ignore + public static REGEN: org.bukkit.potion.PotionType; + // @ts-ignore + public static STRENGTH: org.bukkit.potion.PotionType; + // @ts-ignore + public static WEAKNESS: org.bukkit.potion.PotionType; + // @ts-ignore + public static LUCK: org.bukkit.potion.PotionType; + // @ts-ignore + public static TURTLE_MASTER: org.bukkit.potion.PotionType; + // @ts-ignore + public static SLOW_FALLING: org.bukkit.potion.PotionType; + // @ts-ignore + public static values(): org.bukkit.potion.PotionType[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.potion.PotionType; + // @ts-ignore + public getEffectType(): org.bukkit.potion.PotionEffectType; + // @ts-ignore + public isInstant(): boolean; + /** + * Checks if the potion type has an upgraded state. + * This refers to whether or not the potion type can be Tier 2, + * such as Potion of Fire Resistance II. + */ + // @ts-ignore + public isUpgradeable(): boolean; + /** + * Checks if the potion type has an extended state. + * This refers to the extended duration potions + */ + // @ts-ignore + public isExtendable(): boolean; + // @ts-ignore + public getMaxLevel(): number; + // @ts-ignore + public static getByEffect(effectType: org.bukkit.potion.PotionEffectType): org.bukkit.potion.PotionType; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.projectiles.BlockProjectileSource.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.projectiles.BlockProjectileSource.d.ts new file mode 100644 index 00000000..543d0147 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.projectiles.BlockProjectileSource.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace projectiles { + // @ts-ignore + interface BlockProjectileSource extends org.bukkit.projectiles.ProjectileSource { + /** + * Gets the block this projectile source belongs to. + */ + // @ts-ignore + getBlock(): org.bukkit.block.Block; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.projectiles.ProjectileSource.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.projectiles.ProjectileSource.d.ts new file mode 100644 index 00000000..cc9a5829 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.projectiles.ProjectileSource.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace projectiles { + // @ts-ignore + interface ProjectileSource { + /** + * Launches a {@link Projectile} from the ProjectileSource. + */ + // @ts-ignore + launchProjectile(projectile: java.lang.Class): org.bukkit.entity.Projectile; + /** + * Launches a {@link Projectile} from the ProjectileSource with an + * initial velocity. + */ + // @ts-ignore + launchProjectile(projectile: java.lang.Class, velocity: org.bukkit.util.Vector): org.bukkit.entity.Projectile; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.scheduler.BukkitRunnable.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.scheduler.BukkitRunnable.d.ts new file mode 100644 index 00000000..107d4cde --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.scheduler.BukkitRunnable.d.ts @@ -0,0 +1,69 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace scheduler { + // @ts-ignore + abstract class BukkitRunnable extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Returns true if this task has been cancelled. + */ + // @ts-ignore + public isCancelled(): boolean; + /** + * Attempts to cancel this task. + */ + // @ts-ignore + public cancel(): void; + /** + * Schedules this in the Bukkit scheduler to run on next tick. + */ + // @ts-ignore + public runTask(plugin: org.bukkit.plugin.Plugin): 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. + *

+ * Schedules this in the Bukkit scheduler to run asynchronously. + */ + // @ts-ignore + public runTaskAsynchronously(plugin: org.bukkit.plugin.Plugin): org.bukkit.scheduler.BukkitTask; + /** + * Schedules this to run after the specified number of server ticks. + */ + // @ts-ignore + public runTaskLater(plugin: org.bukkit.plugin.Plugin, 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. + *

+ * Schedules this to run asynchronously after the specified number of + * server ticks. + */ + // @ts-ignore + public runTaskLaterAsynchronously(plugin: org.bukkit.plugin.Plugin, delay: number): org.bukkit.scheduler.BukkitTask; + /** + * Schedules this to repeatedly run until cancelled, starting after the + * specified number of server ticks. + */ + // @ts-ignore + public runTaskTimer(plugin: org.bukkit.plugin.Plugin, 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. + *

+ * Schedules this to repeatedly run asynchronously until cancelled, + * starting after the specified number of server ticks. + */ + // @ts-ignore + public runTaskTimerAsynchronously(plugin: org.bukkit.plugin.Plugin, delay: number, period: number): org.bukkit.scheduler.BukkitTask; + /** + * Gets the task id for this runnable. + */ + // @ts-ignore + public getTaskId(): number; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.scheduler.BukkitScheduler.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.scheduler.BukkitScheduler.d.ts new file mode 100644 index 00000000..f296e3f9 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.scheduler.BukkitScheduler.d.ts @@ -0,0 +1,220 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace scheduler { + // @ts-ignore + interface BukkitScheduler { + /** + * Schedules a once off task to occur after a delay. + *

+ * This task will be executed by the main server thread. + */ + // @ts-ignore + scheduleSyncDelayedTask(plugin: org.bukkit.plugin.Plugin, task: java.lang.Runnable, delay: number): number; + // @ts-ignore + 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. + */ + // @ts-ignore + scheduleSyncDelayedTask(plugin: org.bukkit.plugin.Plugin, task: java.lang.Runnable): number; + // @ts-ignore + 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. + */ + // @ts-ignore + scheduleSyncRepeatingTask(plugin: org.bukkit.plugin.Plugin, task: java.lang.Runnable, delay: number, period: number): number; + // @ts-ignore + 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. + *

+ * Schedules a once off task to occur after a delay. This task will be + * executed by a thread managed by the scheduler. + */ + // @ts-ignore + scheduleAsyncDelayedTask(plugin: org.bukkit.plugin.Plugin, task: java.lang.Runnable, 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. + *

+ * Schedules a once off task to occur as soon as possible. This task will + * be executed by a thread managed by the scheduler. + */ + // @ts-ignore + scheduleAsyncDelayedTask(plugin: org.bukkit.plugin.Plugin, task: java.lang.Runnable): number; + /** + * Asynchronous tasks should never access any API in Bukkit. Great care + * should be taken to assure the thread-safety of asynchronous tasks. + *

+ * Schedules a repeating task. This task will be executed by a thread + * managed by the scheduler. + */ + // @ts-ignore + scheduleAsyncRepeatingTask(plugin: org.bukkit.plugin.Plugin, task: java.lang.Runnable, 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. + *

    + *
  • Note: The Future.get() methods must NOT be called from the main + * thread. + *
  • Note2: There is at least an average of 10ms latency until the + * isDone() method returns true. + *
+ */ + // @ts-ignore + callSyncMethod(plugin: org.bukkit.plugin.Plugin, task: java.util.concurrent.Callable): java.util.concurrent.Future; + /** + * Removes task from scheduler. + */ + // @ts-ignore + cancelTask(taskId: number): void; + /** + * Removes all tasks associated with a particular plugin from the + * scheduler. + */ + // @ts-ignore + cancelTasks(plugin: org.bukkit.plugin.Plugin): void; + /** + * Check if the task currently running. + *

+ * A repeating task might not be running currently, but will be running in + * the future. A task that has finished, and does not repeat, will not be + * running ever again. + *

+ * Explicitly, a task is running if there exists a thread for it, and that + * thread is alive. + */ + // @ts-ignore + isCurrentlyRunning(taskId: number): boolean; + /** + * Check if the task queued to be run later. + *

+ * If a repeating task is currently running, it might not be queued now + * but could be in the future. A task that is not queued, and not running, + * will not be queued again. + */ + // @ts-ignore + isQueued(taskId: number): boolean; + /** + * Returns a list of all active workers. + *

+ * This list contains asynch tasks that are being executed by separate + * threads. + */ + // @ts-ignore + getActiveWorkers(): java.util.List; + /** + * Returns a list of all pending tasks. The ordering of the tasks is not + * related to their order of execution. + */ + // @ts-ignore + getPendingTasks(): java.util.List; + /** + * Returns a task that will run on the next server tick. + */ + // @ts-ignore + runTask(plugin: org.bukkit.plugin.Plugin, task: java.lang.Runnable): org.bukkit.scheduler.BukkitTask; + /** + * Returns a task that will run on the next server tick. + */ + // @ts-ignore + runTask(plugin: org.bukkit.plugin.Plugin, task: java.util.function$.Consumer): void; + // @ts-ignore + 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. + */ + // @ts-ignore + runTaskAsynchronously(plugin: org.bukkit.plugin.Plugin, task: java.lang.Runnable): 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. + */ + // @ts-ignore + runTaskAsynchronously(plugin: org.bukkit.plugin.Plugin, task: java.util.function$.Consumer): void; + // @ts-ignore + 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. + */ + // @ts-ignore + runTaskLater(plugin: org.bukkit.plugin.Plugin, task: java.lang.Runnable, delay: number): org.bukkit.scheduler.BukkitTask; + /** + * Returns a task that will run after the specified number of server + * ticks. + */ + // @ts-ignore + runTaskLater(plugin: org.bukkit.plugin.Plugin, task: java.util.function$.Consumer, delay: number): void; + // @ts-ignore + 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. + *

+ * Returns a task that will run asynchronously after the specified number + * of server ticks. + */ + // @ts-ignore + runTaskLaterAsynchronously(plugin: org.bukkit.plugin.Plugin, task: java.lang.Runnable, 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. + *

+ * Returns a task that will run asynchronously after the specified number + * of server ticks. + */ + // @ts-ignore + runTaskLaterAsynchronously(plugin: org.bukkit.plugin.Plugin, task: java.util.function$.Consumer, delay: number): void; + // @ts-ignore + 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. + */ + // @ts-ignore + runTaskTimer(plugin: org.bukkit.plugin.Plugin, task: java.lang.Runnable, 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. + */ + // @ts-ignore + runTaskTimer(plugin: org.bukkit.plugin.Plugin, task: java.util.function$.Consumer, delay: number, period: number): void; + // @ts-ignore + 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. + *

+ * Returns a task that will repeatedly run asynchronously until cancelled, + * starting after the specified number of server ticks. + */ + // @ts-ignore + runTaskTimerAsynchronously(plugin: org.bukkit.plugin.Plugin, task: java.lang.Runnable, 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. + *

+ * Returns a task that will repeatedly run asynchronously until cancelled, + * starting after the specified number of server ticks. + */ + // @ts-ignore + runTaskTimerAsynchronously(plugin: org.bukkit.plugin.Plugin, task: java.util.function$.Consumer, delay: number, period: number): void; + // @ts-ignore + runTaskTimerAsynchronously(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable, delay: number, period: number): org.bukkit.scheduler.BukkitTask; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.scheduler.BukkitTask.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.scheduler.BukkitTask.d.ts new file mode 100644 index 00000000..8f91a539 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.scheduler.BukkitTask.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace scheduler { + // @ts-ignore + interface BukkitTask { + /** + * Returns the taskId for the task. + */ + // @ts-ignore + getTaskId(): number; + /** + * Returns the Plugin that owns this task. + */ + // @ts-ignore + getOwner(): org.bukkit.plugin.Plugin; + /** + * Returns true if the Task is a sync task. + */ + // @ts-ignore + isSync(): boolean; + /** + * Returns true if this task has been cancelled. + */ + // @ts-ignore + isCancelled(): boolean; + /** + * Will attempt to cancel this task. + */ + // @ts-ignore + cancel(): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.scheduler.BukkitWorker.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.scheduler.BukkitWorker.d.ts new file mode 100644 index 00000000..7b3b5a1b --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.scheduler.BukkitWorker.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace scheduler { + // @ts-ignore + interface BukkitWorker { + /** + * Returns the taskId for the task being executed by this worker. + */ + // @ts-ignore + getTaskId(): number; + /** + * Returns the Plugin that owns this task. + */ + // @ts-ignore + getOwner(): org.bukkit.plugin.Plugin; + /** + * Returns the thread for the worker. + */ + // @ts-ignore + getThread(): java.lang.Thread; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.scoreboard.Criterias.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.scoreboard.Criterias.d.ts new file mode 100644 index 00000000..d213aa6f --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.scoreboard.Criterias.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace scoreboard { + // @ts-ignore + class Criterias extends java.lang.Object { + // @ts-ignore + public static HEALTH: string; + // @ts-ignore + public static PLAYER_KILLS: string; + // @ts-ignore + public static TOTAL_KILLS: string; + // @ts-ignore + public static DEATHS: string; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.scoreboard.DisplaySlot.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.scoreboard.DisplaySlot.d.ts new file mode 100644 index 00000000..9822363a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.scoreboard.DisplaySlot.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace scoreboard { + // @ts-ignore + class DisplaySlot extends java.lang.Enum { + // @ts-ignore + public static BELOW_NAME: org.bukkit.scoreboard.DisplaySlot; + // @ts-ignore + public static PLAYER_LIST: org.bukkit.scoreboard.DisplaySlot; + // @ts-ignore + public static SIDEBAR: org.bukkit.scoreboard.DisplaySlot; + // @ts-ignore + public static values(): org.bukkit.scoreboard.DisplaySlot[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.scoreboard.DisplaySlot; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.scoreboard.NameTagVisibility.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.scoreboard.NameTagVisibility.d.ts new file mode 100644 index 00000000..c3562c2f --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.scoreboard.NameTagVisibility.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace scoreboard { + // @ts-ignore + class NameTagVisibility extends java.lang.Enum { + // @ts-ignore + public static ALWAYS: org.bukkit.scoreboard.NameTagVisibility; + // @ts-ignore + public static NEVER: org.bukkit.scoreboard.NameTagVisibility; + // @ts-ignore + public static HIDE_FOR_OTHER_TEAMS: org.bukkit.scoreboard.NameTagVisibility; + // @ts-ignore + public static HIDE_FOR_OWN_TEAM: org.bukkit.scoreboard.NameTagVisibility; + // @ts-ignore + public static values(): org.bukkit.scoreboard.NameTagVisibility[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.scoreboard.NameTagVisibility; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.scoreboard.Objective.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.scoreboard.Objective.d.ts new file mode 100644 index 00000000..46b7d096 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.scoreboard.Objective.d.ts @@ -0,0 +1,76 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace scoreboard { + // @ts-ignore + interface Objective { + /** + * Gets the name of this Objective + */ + // @ts-ignore + getName(): string; + /** + * Gets the name displayed to players for this objective + */ + // @ts-ignore + getDisplayName(): string; + /** + * Sets the name displayed to players for this objective. + */ + // @ts-ignore + setDisplayName(displayName: string): void; + /** + * Gets the criteria this objective tracks. + */ + // @ts-ignore + getCriteria(): string; + /** + * Gets if the objective's scores can be modified directly by a plugin. + */ + // @ts-ignore + isModifiable(): boolean; + /** + * Gets the scoreboard to which this objective is attached. + */ + // @ts-ignore + getScoreboard(): org.bukkit.scoreboard.Scoreboard; + /** + * Unregisters this objective from the {@link Scoreboard scoreboard.} + */ + // @ts-ignore + unregister(): void; + /** + * Sets this objective to display on the specified slot for the + * scoreboard, removing it from any other display slot. + */ + // @ts-ignore + setDisplaySlot(slot: org.bukkit.scoreboard.DisplaySlot): void; + /** + * Gets the display slot this objective is displayed at. + */ + // @ts-ignore + getDisplaySlot(): org.bukkit.scoreboard.DisplaySlot; + /** + * Sets manner in which this objective will be rendered. + */ + // @ts-ignore + setRenderType(renderType: org.bukkit.scoreboard.RenderType): void; + /** + * Sets manner in which this objective will be rendered. + */ + // @ts-ignore + getRenderType(): org.bukkit.scoreboard.RenderType; + /** + * Gets a player's Score for an Objective on this Scoreboard + */ + // @ts-ignore + getScore(player: org.bukkit.OfflinePlayer): org.bukkit.scoreboard.Score; + /** + * Gets an entry's Score for an Objective on this Scoreboard. + */ + // @ts-ignore + getScore(entry: string): org.bukkit.scoreboard.Score; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.scoreboard.RenderType.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.scoreboard.RenderType.d.ts new file mode 100644 index 00000000..76c77bb6 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.scoreboard.RenderType.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace scoreboard { + // @ts-ignore + class RenderType extends java.lang.Enum { + // @ts-ignore + public static INTEGER: org.bukkit.scoreboard.RenderType; + // @ts-ignore + public static HEARTS: org.bukkit.scoreboard.RenderType; + // @ts-ignore + public static values(): org.bukkit.scoreboard.RenderType[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.scoreboard.RenderType; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.scoreboard.Score.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.scoreboard.Score.d.ts new file mode 100644 index 00000000..7fab832e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.scoreboard.Score.d.ts @@ -0,0 +1,45 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace scoreboard { + // @ts-ignore + interface Score { + /** + * Gets the OfflinePlayer being tracked by this Score + */ + // @ts-ignore + getPlayer(): org.bukkit.OfflinePlayer; + /** + * Gets the entry being tracked by this Score + */ + // @ts-ignore + getEntry(): string; + /** + * Gets the Objective being tracked by this Score + */ + // @ts-ignore + getObjective(): org.bukkit.scoreboard.Objective; + /** + * Gets the current score + */ + // @ts-ignore + getScore(): number; + /** + * Sets the current score. + */ + // @ts-ignore + setScore(score: number): void; + /** + * Shows if this score has been set at any point in time. + */ + // @ts-ignore + isScoreSet(): boolean; + /** + * Gets the scoreboard for the associated objective. + */ + // @ts-ignore + getScoreboard(): org.bukkit.scoreboard.Scoreboard; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.scoreboard.Scoreboard.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.scoreboard.Scoreboard.d.ts new file mode 100644 index 00000000..fe7de313 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.scoreboard.Scoreboard.d.ts @@ -0,0 +1,106 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace scoreboard { + // @ts-ignore + interface Scoreboard { + /** + * Registers an Objective on this Scoreboard + */ + // @ts-ignore + registerNewObjective(name: string, criteria: string): org.bukkit.scoreboard.Objective; + /** + * Registers an Objective on this Scoreboard + */ + // @ts-ignore + registerNewObjective(name: string, criteria: string, displayName: string): org.bukkit.scoreboard.Objective; + /** + * Registers an Objective on this Scoreboard + */ + // @ts-ignore + registerNewObjective(name: string, criteria: string, displayName: string, renderType: org.bukkit.scoreboard.RenderType): org.bukkit.scoreboard.Objective; + /** + * Gets an Objective on this Scoreboard by name + */ + // @ts-ignore + getObjective(name: string): org.bukkit.scoreboard.Objective; + /** + * Gets all Objectives of a Criteria on the Scoreboard + */ + // @ts-ignore + getObjectivesByCriteria(criteria: string): java.util.Set; + /** + * Gets all Objectives on this Scoreboard + */ + // @ts-ignore + getObjectives(): java.util.Set; + /** + * Gets the Objective currently displayed in a DisplaySlot on this + * Scoreboard + */ + // @ts-ignore + getObjective(slot: org.bukkit.scoreboard.DisplaySlot): org.bukkit.scoreboard.Objective; + /** + * Gets all scores for a player on this Scoreboard + */ + // @ts-ignore + getScores(player: org.bukkit.OfflinePlayer): java.util.Set; + /** + * Gets all scores for an entry on this Scoreboard + */ + // @ts-ignore + getScores(entry: string): java.util.Set; + /** + * Removes all scores for a player on this Scoreboard + */ + // @ts-ignore + resetScores(player: org.bukkit.OfflinePlayer): void; + /** + * Removes all scores for an entry on this Scoreboard + */ + // @ts-ignore + resetScores(entry: string): void; + /** + * Gets a player's Team on this Scoreboard + */ + // @ts-ignore + getPlayerTeam(player: org.bukkit.OfflinePlayer): org.bukkit.scoreboard.Team; + /** + * Gets a entries Team on this Scoreboard + */ + // @ts-ignore + getEntryTeam(entry: string): org.bukkit.scoreboard.Team; + /** + * Gets a Team by name on this Scoreboard + */ + // @ts-ignore + getTeam(teamName: string): org.bukkit.scoreboard.Team; + /** + * Gets all teams on this Scoreboard + */ + // @ts-ignore + getTeams(): java.util.Set; + /** + * Registers a Team on this Scoreboard + */ + // @ts-ignore + registerNewTeam(name: string): org.bukkit.scoreboard.Team; + /** + * Gets all players tracked by this Scoreboard + */ + // @ts-ignore + getPlayers(): java.util.Set; + /** + * Gets all entries tracked by this Scoreboard + */ + // @ts-ignore + getEntries(): java.util.Set; + /** + * Clears any objective in the specified slot. + */ + // @ts-ignore + clearSlot(slot: org.bukkit.scoreboard.DisplaySlot): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.scoreboard.ScoreboardManager.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.scoreboard.ScoreboardManager.d.ts new file mode 100644 index 00000000..d061e0f8 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.scoreboard.ScoreboardManager.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace scoreboard { + // @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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + getNewScoreboard(): org.bukkit.scoreboard.Scoreboard; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.scoreboard.Team.Option.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.scoreboard.Team.Option.d.ts new file mode 100644 index 00000000..e9b6acd4 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.scoreboard.Team.Option.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace scoreboard { + namespace Team { + // @ts-ignore + class Option extends java.lang.Enum { + // @ts-ignore + public static NAME_TAG_VISIBILITY: org.bukkit.scoreboard.Team.Option; + // @ts-ignore + public static DEATH_MESSAGE_VISIBILITY: org.bukkit.scoreboard.Team.Option; + // @ts-ignore + public static COLLISION_RULE: org.bukkit.scoreboard.Team.Option; + // @ts-ignore + public static values(): org.bukkit.scoreboard.Team.Option[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.scoreboard.Team.Option; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.scoreboard.Team.OptionStatus.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.scoreboard.Team.OptionStatus.d.ts new file mode 100644 index 00000000..cb6acb54 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.scoreboard.Team.OptionStatus.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace scoreboard { + namespace Team { + // @ts-ignore + class OptionStatus extends java.lang.Enum { + // @ts-ignore + public static ALWAYS: org.bukkit.scoreboard.Team.OptionStatus; + // @ts-ignore + public static NEVER: org.bukkit.scoreboard.Team.OptionStatus; + // @ts-ignore + public static FOR_OTHER_TEAMS: org.bukkit.scoreboard.Team.OptionStatus; + // @ts-ignore + public static FOR_OWN_TEAM: org.bukkit.scoreboard.Team.OptionStatus; + // @ts-ignore + public static values(): org.bukkit.scoreboard.Team.OptionStatus[]; + // @ts-ignore + public static valueOf(name: string): org.bukkit.scoreboard.Team.OptionStatus; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.scoreboard.Team.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.scoreboard.Team.d.ts new file mode 100644 index 00000000..7fea470a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.scoreboard.Team.d.ts @@ -0,0 +1,162 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace scoreboard { + // @ts-ignore + interface Team { + /** + * Gets the name of this Team + */ + // @ts-ignore + getName(): string; + /** + * Gets the name displayed to entries for this team + */ + // @ts-ignore + getDisplayName(): string; + /** + * Sets the name displayed to entries for this team + */ + // @ts-ignore + setDisplayName(displayName: string): void; + /** + * Gets the prefix prepended to the display of entries on this team. + */ + // @ts-ignore + getPrefix(): string; + /** + * Sets the prefix prepended to the display of entries on this team. + */ + // @ts-ignore + setPrefix(prefix: string): void; + /** + * Gets the suffix appended to the display of entries on this team. + */ + // @ts-ignore + getSuffix(): string; + /** + * Sets the suffix appended to the display of entries on this team. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + setColor(color: org.bukkit.ChatColor): void; + /** + * Gets the team friendly fire state + */ + // @ts-ignore + allowFriendlyFire(): boolean; + /** + * Sets the team friendly fire state + */ + // @ts-ignore + setAllowFriendlyFire(enabled: boolean): void; + /** + * Gets the team's ability to see {@link PotionEffectType#INVISIBILITY + * invisible} teammates. + */ + // @ts-ignore + canSeeFriendlyInvisibles(): boolean; + /** + * Sets the team's ability to see {@link PotionEffectType#INVISIBILITY + * invisible} teammates. + */ + // @ts-ignore + setCanSeeFriendlyInvisibles(enabled: boolean): void; + /** + * Gets the team's ability to see name tags + */ + // @ts-ignore + getNameTagVisibility(): org.bukkit.scoreboard.NameTagVisibility; + /** + * Set's the team's ability to see name tags + */ + // @ts-ignore + setNameTagVisibility(visibility: org.bukkit.scoreboard.NameTagVisibility): void; + /** + * Gets the Set of players on the team + */ + // @ts-ignore + getPlayers(): java.util.Set; + /** + * Gets the Set of entries on the team + */ + // @ts-ignore + getEntries(): java.util.Set; + /** + * Gets the size of the team + */ + // @ts-ignore + getSize(): number; + /** + * Gets the Scoreboard to which this team is attached + */ + // @ts-ignore + 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. + */ + // @ts-ignore + 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. + */ + // @ts-ignore + addEntry(entry: string): void; + /** + * Removes the player from this team. + */ + // @ts-ignore + removePlayer(player: org.bukkit.OfflinePlayer): boolean; + /** + * Removes the entry from this team. + */ + // @ts-ignore + removeEntry(entry: string): boolean; + /** + * Unregisters this team from the Scoreboard + */ + // @ts-ignore + unregister(): void; + /** + * Checks to see if the specified player is a member of this team. + */ + // @ts-ignore + hasPlayer(player: org.bukkit.OfflinePlayer): boolean; + /** + * Checks to see if the specified entry is a member of this team. + */ + // @ts-ignore + hasEntry(entry: string): boolean; + /** + * Get an option for this team + */ + // @ts-ignore + getOption(option: org.bukkit.scoreboard.Team.Option): org.bukkit.scoreboard.Team.OptionStatus; + /** + * Set an option for this team + */ + // @ts-ignore + setOption(option: org.bukkit.scoreboard.Team.Option, status: org.bukkit.scoreboard.Team.OptionStatus): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.util.BlockIterator.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.util.BlockIterator.d.ts new file mode 100644 index 00000000..576b9fe0 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.util.BlockIterator.d.ts @@ -0,0 +1,64 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace util { + // @ts-ignore + class BlockIterator extends java.lang.Object { + /** + * Constructs the BlockIterator. + *

+ * This considers all blocks as 1x1x1 in size. + */ + // @ts-ignore + constructor(world: org.bukkit.World, start: org.bukkit.util.Vector, direction: org.bukkit.util.Vector, yOffset: number, maxDistance: number) + /** + * Constructs the BlockIterator. + *

+ * This considers all blocks as 1x1x1 in size. + */ + // @ts-ignore + constructor(loc: org.bukkit.Location, yOffset: number, maxDistance: number) + /** + * Constructs the BlockIterator. + *

+ * This considers all blocks as 1x1x1 in size. + */ + // @ts-ignore + constructor(loc: org.bukkit.Location, yOffset: number) + /** + * Constructs the BlockIterator. + *

+ * This considers all blocks as 1x1x1 in size. + */ + // @ts-ignore + constructor(loc: org.bukkit.Location) + /** + * Constructs the BlockIterator. + *

+ * This considers all blocks as 1x1x1 in size. + */ + // @ts-ignore + constructor(entity: org.bukkit.entity.LivingEntity, maxDistance: number) + /** + * Constructs the BlockIterator. + *

+ * This considers all blocks as 1x1x1 in size. + */ + // @ts-ignore + constructor(entity: org.bukkit.entity.LivingEntity) + /** + * Returns true if the iteration has more elements + */ + // @ts-ignore + public hasNext(): boolean; + /** + * Returns the next Block in the trace + */ + // @ts-ignore + public next(): org.bukkit.block.Block; + // @ts-ignore + public remove(): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.util.BlockVector.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.util.BlockVector.d.ts new file mode 100644 index 00000000..81978325 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.util.BlockVector.d.ts @@ -0,0 +1,52 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace util { + // @ts-ignore + class BlockVector extends org.bukkit.util.Vector { + /** + * Construct the vector with all components as 0. + */ + // @ts-ignore + constructor() + /** + * Construct the vector with another vector. + */ + // @ts-ignore + constructor(vec: org.bukkit.util.Vector) + /** + * Construct the vector with provided integer components. + */ + // @ts-ignore + constructor(x: number, y: number, z: number) + /** + * Construct the vector with provided double components. + */ + // @ts-ignore + constructor(x: number, y: number, z: number) + /** + * Construct the vector with provided float components. + */ + // @ts-ignore + constructor(x: number, y: number, z: number) + /** + * Checks if another object is equivalent. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a hash code for this vector. + */ + // @ts-ignore + public hashCode(): number; + /** + * Get a new block vector. + */ + // @ts-ignore + public clone(): org.bukkit.util.BlockVector; + // @ts-ignore + public static deserialize(args: java.util.Map): org.bukkit.util.BlockVector; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.util.BoundingBox.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.util.BoundingBox.d.ts new file mode 100644 index 00000000..24e5ae5c --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.util.BoundingBox.d.ts @@ -0,0 +1,344 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace util { + // @ts-ignore + class BoundingBox extends java.lang.Object implements org.bukkit.configuration.serialization.ConfigurationSerializable { + /** + * Creates a new (degenerate) bounding box with all corner coordinates at + * 0. + */ + // @ts-ignore + constructor() + /** + * Creates a new bounding box from the given corner coordinates. + */ + // @ts-ignore + constructor(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number) + /** + * Creates a new bounding box using the coordinates of the given vectors as + * corners. + */ + // @ts-ignore + public static of(corner1: org.bukkit.util.Vector, corner2: org.bukkit.util.Vector): org.bukkit.util.BoundingBox; + /** + * Creates a new bounding box using the coordinates of the given locations + * as corners. + */ + // @ts-ignore + public static of(corner1: org.bukkit.Location, corner2: org.bukkit.Location): org.bukkit.util.BoundingBox; + /** + * Creates a new bounding box using the coordinates of the given blocks as + * corners. + *

+ * The bounding box will be sized to fully contain both blocks. + */ + // @ts-ignore + public static of(corner1: org.bukkit.block.Block, corner2: org.bukkit.block.Block): org.bukkit.util.BoundingBox; + /** + * Creates a new 1x1x1 sized bounding box containing the given block. + */ + // @ts-ignore + public static of(block: org.bukkit.block.Block): org.bukkit.util.BoundingBox; + /** + * Creates a new bounding box using the given center and extents. + */ + // @ts-ignore + public static of(center: org.bukkit.util.Vector, x: number, y: number, z: number): org.bukkit.util.BoundingBox; + /** + * Creates a new bounding box using the given center and extents. + */ + // @ts-ignore + public static of(center: org.bukkit.Location, x: number, y: number, z: number): org.bukkit.util.BoundingBox; + /** + * Resizes this bounding box. + */ + // @ts-ignore + public resize(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number): org.bukkit.util.BoundingBox; + /** + * Gets the minimum x value. + */ + // @ts-ignore + public getMinX(): number; + /** + * Gets the minimum y value. + */ + // @ts-ignore + public getMinY(): number; + /** + * Gets the minimum z value. + */ + // @ts-ignore + public getMinZ(): number; + /** + * Gets the minimum corner as vector. + */ + // @ts-ignore + public getMin(): org.bukkit.util.Vector; + /** + * Gets the maximum x value. + */ + // @ts-ignore + public getMaxX(): number; + /** + * Gets the maximum y value. + */ + // @ts-ignore + public getMaxY(): number; + /** + * Gets the maximum z value. + */ + // @ts-ignore + public getMaxZ(): number; + /** + * Gets the maximum corner as vector. + */ + // @ts-ignore + public getMax(): org.bukkit.util.Vector; + /** + * Gets the width of the bounding box in the x direction. + */ + // @ts-ignore + public getWidthX(): number; + /** + * Gets the width of the bounding box in the z direction. + */ + // @ts-ignore + public getWidthZ(): number; + /** + * Gets the height of the bounding box. + */ + // @ts-ignore + public getHeight(): number; + /** + * Gets the volume of the bounding box. + */ + // @ts-ignore + public getVolume(): number; + /** + * Gets the x coordinate of the center of the bounding box. + */ + // @ts-ignore + public getCenterX(): number; + /** + * Gets the y coordinate of the center of the bounding box. + */ + // @ts-ignore + public getCenterY(): number; + /** + * Gets the z coordinate of the center of the bounding box. + */ + // @ts-ignore + public getCenterZ(): number; + /** + * Gets the center of the bounding box. + */ + // @ts-ignore + public getCenter(): org.bukkit.util.Vector; + /** + * Copies another bounding box. + */ + // @ts-ignore + public copy(other: org.bukkit.util.BoundingBox): org.bukkit.util.BoundingBox; + /** + * Expands this bounding box by the given values in the corresponding + * directions. + *

+ * Negative values will shrink the bounding box in the corresponding + * direction. Shrinking will be limited to the point where the affected + * opposite faces would meet if the they shrank at uniform speeds. + */ + // @ts-ignore + public expand(negativeX: number, negativeY: number, negativeZ: number, positiveX: number, positiveY: number, positiveZ: number): org.bukkit.util.BoundingBox; + /** + * Expands this bounding box uniformly by the given values in both positive + * and negative directions. + *

+ * Negative values will shrink the bounding box. Shrinking will be limited + * to the bounding box's current size. + */ + // @ts-ignore + public expand(x: number, y: number, z: number): org.bukkit.util.BoundingBox; + /** + * Expands this bounding box uniformly by the given values in both positive + * and negative directions. + *

+ * Negative values will shrink the bounding box. Shrinking will be limited + * to the bounding box's current size. + */ + // @ts-ignore + public expand(expansion: org.bukkit.util.Vector): org.bukkit.util.BoundingBox; + /** + * Expands this bounding box uniformly by the given value in all directions. + *

+ * A negative value will shrink the bounding box. Shrinking will be limited + * to the bounding box's current size. + */ + // @ts-ignore + public expand(expansion: number): org.bukkit.util.BoundingBox; + /** + * Expands this bounding box in the specified direction. + *

+ * The magnitude of the direction will scale the expansion. A negative + * expansion value will shrink the bounding box in this direction. Shrinking + * will be limited to the bounding box's current size. + */ + // @ts-ignore + public expand(dirX: number, dirY: number, dirZ: number, expansion: number): org.bukkit.util.BoundingBox; + /** + * Expands this bounding box in the specified direction. + *

+ * The magnitude of the direction will scale the expansion. A negative + * expansion value will shrink the bounding box in this direction. Shrinking + * will be limited to the bounding box's current size. + */ + // @ts-ignore + public expand(direction: org.bukkit.util.Vector, expansion: number): org.bukkit.util.BoundingBox; + /** + * Expands this bounding box in the direction specified by the given block + * face. + *

+ * A negative expansion value will shrink the bounding box in this + * direction. Shrinking will be limited to the bounding box's current size. + */ + // @ts-ignore + public expand(blockFace: org.bukkit.block.BlockFace, expansion: number): org.bukkit.util.BoundingBox; + /** + * Expands this bounding box in the specified direction. + *

+ * Negative values will expand the bounding box in the negative direction, + * positive values will expand it in the positive direction. The magnitudes + * of the direction components determine the corresponding amounts of + * expansion. + */ + // @ts-ignore + public expandDirectional(dirX: number, dirY: number, dirZ: number): org.bukkit.util.BoundingBox; + /** + * Expands this bounding box in the specified direction. + *

+ * Negative values will expand the bounding box in the negative direction, + * positive values will expand it in the positive direction. The magnitude + * of the direction vector determines the amount of expansion. + */ + // @ts-ignore + public expandDirectional(direction: org.bukkit.util.Vector): org.bukkit.util.BoundingBox; + /** + * Expands this bounding box to contain (or border) the specified position. + */ + // @ts-ignore + public union(posX: number, posY: number, posZ: number): org.bukkit.util.BoundingBox; + /** + * Expands this bounding box to contain (or border) the specified position. + */ + // @ts-ignore + public union(position: org.bukkit.util.Vector): org.bukkit.util.BoundingBox; + /** + * Expands this bounding box to contain (or border) the specified position. + */ + // @ts-ignore + public union(position: org.bukkit.Location): org.bukkit.util.BoundingBox; + /** + * Expands this bounding box to contain both this and the given bounding + * box. + */ + // @ts-ignore + public union(other: org.bukkit.util.BoundingBox): org.bukkit.util.BoundingBox; + /** + * Resizes this bounding box to represent the intersection of this and the + * given bounding box. + */ + // @ts-ignore + public intersection(other: org.bukkit.util.BoundingBox): org.bukkit.util.BoundingBox; + /** + * Shifts this bounding box by the given amounts. + */ + // @ts-ignore + public shift(shiftX: number, shiftY: number, shiftZ: number): org.bukkit.util.BoundingBox; + /** + * Shifts this bounding box by the given amounts. + */ + // @ts-ignore + public shift(shift: org.bukkit.util.Vector): org.bukkit.util.BoundingBox; + /** + * Shifts this bounding box by the given amounts. + */ + // @ts-ignore + public shift(shift: org.bukkit.Location): org.bukkit.util.BoundingBox; + /** + * Checks if this bounding box overlaps with the given bounding box. + *

+ * Bounding boxes that are only intersecting at the borders are not + * considered overlapping. + */ + // @ts-ignore + public overlaps(other: org.bukkit.util.BoundingBox): boolean; + /** + * Checks if this bounding box overlaps with the bounding box that is + * defined by the given corners. + *

+ * Bounding boxes that are only intersecting at the borders are not + * considered overlapping. + */ + // @ts-ignore + public overlaps(min: org.bukkit.util.Vector, max: org.bukkit.util.Vector): boolean; + /** + * Checks if this bounding box contains the specified position. + *

+ * Positions exactly on the minimum borders of the bounding box are + * considered to be inside the bounding box, while positions exactly on the + * maximum borders are considered to be outside. This allows bounding boxes + * to reside directly next to each other with positions always only residing + * in exactly one of them. + */ + // @ts-ignore + public contains(x: number, y: number, z: number): boolean; + /** + * Checks if this bounding box contains the specified position. + *

+ * Positions exactly on the minimum borders of the bounding box are + * considered to be inside the bounding box, while positions exactly on the + * maximum borders are considered to be outside. This allows bounding boxes + * to reside directly next to each other with positions always only residing + * in exactly one of them. + */ + // @ts-ignore + public contains(position: org.bukkit.util.Vector): boolean; + /** + * Checks if this bounding box fully contains the given bounding box. + */ + // @ts-ignore + public contains(other: org.bukkit.util.BoundingBox): boolean; + /** + * Checks if this bounding box fully contains the bounding box that is + * defined by the given corners. + */ + // @ts-ignore + public contains(min: org.bukkit.util.Vector, max: org.bukkit.util.Vector): boolean; + /** + * Calculates the intersection of this bounding box with the specified line + * segment. + *

+ * Intersections at edges and corners yield one of the affected block faces + * as hit result, but it is not defined which of them. + */ + // @ts-ignore + public rayTrace(start: org.bukkit.util.Vector, direction: org.bukkit.util.Vector, maxDistance: number): org.bukkit.util.RayTraceResult; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public toString(): string; + /** + * Creates a copy of this bounding box. + */ + // @ts-ignore + public clone(): org.bukkit.util.BoundingBox; + // @ts-ignore + public serialize(): java.util.Map; + // @ts-ignore + public static deserialize(args: java.util.Map): org.bukkit.util.BoundingBox; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.util.CachedServerIcon.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.util.CachedServerIcon.d.ts new file mode 100644 index 00000000..f80ddb73 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.util.CachedServerIcon.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace util { + // @ts-ignore + interface CachedServerIcon { + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.util.ChatPaginator.ChatPage.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.util.ChatPaginator.ChatPage.d.ts new file mode 100644 index 00000000..5f8400c3 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.util.ChatPaginator.ChatPage.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace util { + namespace ChatPaginator { + // @ts-ignore + class ChatPage extends java.lang.Object { + // @ts-ignore + constructor(lines: string, pageNumber: number, totalPages: number) + // @ts-ignore + public getPageNumber(): number; + // @ts-ignore + public getTotalPages(): number; + // @ts-ignore + public getLines(): java.lang.String[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.util.ChatPaginator.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.util.ChatPaginator.d.ts new file mode 100644 index 00000000..5341eded --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.util.ChatPaginator.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace util { + // @ts-ignore + class ChatPaginator extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static GUARANTEED_NO_WRAP_CHAT_PAGE_WIDTH: number; + // @ts-ignore + public static AVERAGE_CHAT_PAGE_WIDTH: number; + // @ts-ignore + public static UNBOUNDED_PAGE_WIDTH: number; + // @ts-ignore + public static OPEN_CHAT_PAGE_HEIGHT: number; + // @ts-ignore + public static CLOSED_CHAT_PAGE_HEIGHT: number; + // @ts-ignore + public static UNBOUNDED_PAGE_HEIGHT: number; + /** + * Breaks a raw string up into pages using the default width and height. + */ + // @ts-ignore + public static paginate(unpaginatedString: string, pageNumber: number): org.bukkit.util.ChatPaginator.ChatPage; + /** + * Breaks a raw string up into pages using a provided width and height. + */ + // @ts-ignore + public static paginate(unpaginatedString: string, pageNumber: number, lineLength: number, pageHeight: number): org.bukkit.util.ChatPaginator.ChatPage; + /** + * Breaks a raw string up into a series of lines. Words are wrapped using + * spaces as decimeters and the newline character is respected. + */ + // @ts-ignore + public static wordWrap(rawString: string, lineLength: number): java.lang.String[]; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.util.Consumer.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.util.Consumer.d.ts new file mode 100644 index 00000000..b29333e1 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.util.Consumer.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace util { + // @ts-ignore + interface Consumer { + /** + * Performs this operation on the given argument. + */ + // @ts-ignore + accept(t: java.lang.Object): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.util.EulerAngle.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.util.EulerAngle.d.ts new file mode 100644 index 00000000..883ddf90 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.util.EulerAngle.d.ts @@ -0,0 +1,67 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace util { + // @ts-ignore + class EulerAngle extends java.lang.Object { + /** + * Creates a EularAngle with each axis set to the + * passed angle in radians + */ + // @ts-ignore + constructor(x: number, y: number, z: number) + // @ts-ignore + public static ZERO: org.bukkit.util.EulerAngle; + /** + * Returns the angle on the x axis in radians + */ + // @ts-ignore + public getX(): number; + /** + * Returns the angle on the y axis in radians + */ + // @ts-ignore + public getY(): number; + /** + * Returns the angle on the z axis in radians + */ + // @ts-ignore + public getZ(): number; + /** + * Return a EulerAngle which is the result of changing + * the x axis to the passed angle + */ + // @ts-ignore + public setX(x: number): org.bukkit.util.EulerAngle; + /** + * Return a EulerAngle which is the result of changing + * the y axis to the passed angle + */ + // @ts-ignore + public setY(y: number): org.bukkit.util.EulerAngle; + /** + * Return a EulerAngle which is the result of changing + * the z axis to the passed angle + */ + // @ts-ignore + public setZ(z: number): org.bukkit.util.EulerAngle; + /** + * Creates a new EulerAngle which is the result of adding + * the x, y, z components to this EulerAngle + */ + // @ts-ignore + public add(x: number, y: number, z: number): org.bukkit.util.EulerAngle; + /** + * Creates a new EulerAngle which is the result of subtracting + * the x, y, z components to this EulerAngle + */ + // @ts-ignore + public subtract(x: number, y: number, z: number): org.bukkit.util.EulerAngle; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.util.FileUtil.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.util.FileUtil.d.ts new file mode 100644 index 00000000..64d89c65 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.util.FileUtil.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace util { + // @ts-ignore + class FileUtil extends java.lang.Object { + // @ts-ignore + constructor() + /** + * This method copies one file to another location + */ + // @ts-ignore + public static copy(inFile: java.io.File, outFile: java.io.File): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.util.NumberConversions.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.util.NumberConversions.d.ts new file mode 100644 index 00000000..9291d242 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.util.NumberConversions.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace util { + // @ts-ignore + class NumberConversions extends java.lang.Object { + // @ts-ignore + public static floor(num: number): number; + // @ts-ignore + public static ceil(num: number): number; + // @ts-ignore + public static round(num: number): number; + // @ts-ignore + public static square(num: number): number; + // @ts-ignore + public static toInt(object: java.lang.Object): number; + // @ts-ignore + public static toFloat(object: java.lang.Object): number; + // @ts-ignore + public static toDouble(object: java.lang.Object): number; + // @ts-ignore + public static toLong(object: java.lang.Object): number; + // @ts-ignore + public static toShort(object: java.lang.Object): number; + // @ts-ignore + public static toByte(object: java.lang.Object): number; + // @ts-ignore + public static isFinite(d: number): boolean; + // @ts-ignore + public static isFinite(f: number): boolean; + // @ts-ignore + public static checkFinite(d: number, message: string): void; + // @ts-ignore + public static checkFinite(d: number, message: string): void; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.util.RayTraceResult.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.util.RayTraceResult.d.ts new file mode 100644 index 00000000..2558e664 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.util.RayTraceResult.d.ts @@ -0,0 +1,61 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace util { + // @ts-ignore + class RayTraceResult extends java.lang.Object { + /** + * Creates a RayTraceResult. + */ + // @ts-ignore + constructor(hitPosition: org.bukkit.util.Vector) + /** + * Creates a RayTraceResult. + */ + // @ts-ignore + constructor(hitPosition: org.bukkit.util.Vector, hitBlockFace: org.bukkit.block.BlockFace) + /** + * Creates a RayTraceResult. + */ + // @ts-ignore + constructor(hitPosition: org.bukkit.util.Vector, hitBlock: org.bukkit.block.Block, hitBlockFace: org.bukkit.block.BlockFace) + /** + * Creates a RayTraceResult. + */ + // @ts-ignore + constructor(hitPosition: org.bukkit.util.Vector, hitEntity: org.bukkit.entity.Entity) + /** + * Creates a RayTraceResult. + */ + // @ts-ignore + constructor(hitPosition: org.bukkit.util.Vector, hitEntity: org.bukkit.entity.Entity, hitBlockFace: org.bukkit.block.BlockFace) + /** + * Gets the exact position of the hit. + */ + // @ts-ignore + public getHitPosition(): org.bukkit.util.Vector; + /** + * Gets the hit block. + */ + // @ts-ignore + public getHitBlock(): org.bukkit.block.Block; + /** + * Gets the hit block face. + */ + // @ts-ignore + public getHitBlockFace(): org.bukkit.block.BlockFace; + /** + * Gets the hit entity. + */ + // @ts-ignore + public getHitEntity(): org.bukkit.entity.Entity; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.util.StringUtil.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.util.StringUtil.d.ts new file mode 100644 index 00000000..bd120040 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.util.StringUtil.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace util { + // @ts-ignore + class StringUtil extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Copies all elements from the iterable collection of originals to the + * collection provided. + */ + // @ts-ignore + public static copyPartialMatches(token: string, originals: java.lang.Iterable, collection: java.util.Collection): java.util.Collection; + /** + * This method uses a region to check case-insensitive equality. This + * means the internal array does not need to be copied like a + * toLowerCase() call would. + */ + // @ts-ignore + public static startsWithIgnoreCase(string: string, prefix: string): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.util.Vector.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.util.Vector.d.ts new file mode 100644 index 00000000..d4ce6dd4 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.util.Vector.d.ts @@ -0,0 +1,383 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace util { + // @ts-ignore + class Vector extends java.lang.Object implements org.bukkit.configuration.serialization.ConfigurationSerializable { + /** + * Construct the vector with all components as 0. + */ + // @ts-ignore + constructor() + /** + * Construct the vector with provided integer components. + */ + // @ts-ignore + constructor(x: number, y: number, z: number) + /** + * Construct the vector with provided double components. + */ + // @ts-ignore + constructor(x: number, y: number, z: number) + /** + * Construct the vector with provided float components. + */ + // @ts-ignore + constructor(x: number, y: number, z: number) + // @ts-ignore + protected x: number; + // @ts-ignore + protected y: number; + // @ts-ignore + protected z: number; + /** + * Adds a vector to this one + */ + // @ts-ignore + public add(vec: org.bukkit.util.Vector): org.bukkit.util.Vector; + /** + * Subtracts a vector from this one. + */ + // @ts-ignore + public subtract(vec: org.bukkit.util.Vector): org.bukkit.util.Vector; + /** + * Multiplies the vector by another. + */ + // @ts-ignore + public multiply(vec: org.bukkit.util.Vector): org.bukkit.util.Vector; + /** + * Divides the vector by another. + */ + // @ts-ignore + public divide(vec: org.bukkit.util.Vector): org.bukkit.util.Vector; + /** + * Copies another vector + */ + // @ts-ignore + public copy(vec: org.bukkit.util.Vector): org.bukkit.util.Vector; + /** + * Gets the magnitude of the vector, defined as sqrt(x^2+y^2+z^2). The + * value of this method is not cached and uses a costly square-root + * function, so do not repeatedly call this method to get the vector's + * magnitude. NaN will be returned if the inner result of the sqrt() + * function overflows, which will be caused if the length is too long. + */ + // @ts-ignore + public length(): number; + /** + * Gets the magnitude of the vector squared. + */ + // @ts-ignore + public lengthSquared(): number; + /** + * Get the distance between this vector and another. The value of this + * method is not cached and uses a costly square-root function, so do not + * repeatedly call this method to get the vector's magnitude. NaN will be + * returned if the inner result of the sqrt() function overflows, which + * will be caused if the distance is too long. + */ + // @ts-ignore + public distance(o: org.bukkit.util.Vector): number; + /** + * Get the squared distance between this vector and another. + */ + // @ts-ignore + public distanceSquared(o: org.bukkit.util.Vector): number; + /** + * Gets the angle between this vector and another in radians. + */ + // @ts-ignore + public angle(other: org.bukkit.util.Vector): number; + /** + * Sets this vector to the midpoint between this vector and another. + */ + // @ts-ignore + public midpoint(other: org.bukkit.util.Vector): org.bukkit.util.Vector; + /** + * Gets a new midpoint vector between this vector and another. + */ + // @ts-ignore + public getMidpoint(other: org.bukkit.util.Vector): org.bukkit.util.Vector; + /** + * Performs scalar multiplication, multiplying all components with a + * scalar. + */ + // @ts-ignore + public multiply(m: number): org.bukkit.util.Vector; + /** + * Performs scalar multiplication, multiplying all components with a + * scalar. + */ + // @ts-ignore + public multiply(m: number): org.bukkit.util.Vector; + /** + * Performs scalar multiplication, multiplying all components with a + * scalar. + */ + // @ts-ignore + public multiply(m: number): org.bukkit.util.Vector; + /** + * Calculates the dot product of this vector with another. The dot product + * is defined as x1*x2+y1*y2+z1*z2. The returned value is a scalar. + */ + // @ts-ignore + public dot(other: org.bukkit.util.Vector): number; + /** + * Calculates the cross product of this vector with another. The cross + * product is defined as: + *

    + *
  • x = y1 * z2 - y2 * z1 + *
  • y = z1 * x2 - z2 * x1 + *
  • z = x1 * y2 - x2 * y1 + *
+ */ + // @ts-ignore + public crossProduct(o: org.bukkit.util.Vector): org.bukkit.util.Vector; + /** + * Calculates the cross product of this vector with another without mutating + * the original. The cross product is defined as: + *
    + *
  • x = y1 * z2 - y2 * z1 + *
  • y = z1 * x2 - z2 * x1 + *
  • z = x1 * y2 - x2 * y1 + *
+ */ + // @ts-ignore + public getCrossProduct(o: org.bukkit.util.Vector): org.bukkit.util.Vector; + /** + * Converts this vector to a unit vector (a vector with length of 1). + */ + // @ts-ignore + public normalize(): org.bukkit.util.Vector; + /** + * Zero this vector's components. + */ + // @ts-ignore + public zero(): org.bukkit.util.Vector; + /** + * Returns whether this vector is in an axis-aligned bounding box. + *

+ * The minimum and maximum vectors given must be truly the minimum and + * maximum X, Y and Z components. + */ + // @ts-ignore + public isInAABB(min: org.bukkit.util.Vector, max: org.bukkit.util.Vector): boolean; + /** + * Returns whether this vector is within a sphere. + */ + // @ts-ignore + public isInSphere(origin: org.bukkit.util.Vector, radius: number): boolean; + /** + * Returns if a vector is normalized + */ + // @ts-ignore + public isNormalized(): boolean; + /** + * Rotates the vector around the x axis. + *

+ * This piece of math is based on the standard rotation matrix for vectors + * in three dimensional space. This matrix can be found here: + * Rotation + * Matrix. + */ + // @ts-ignore + public rotateAroundX(angle: number): org.bukkit.util.Vector; + /** + * Rotates the vector around the y axis. + *

+ * This piece of math is based on the standard rotation matrix for vectors + * in three dimensional space. This matrix can be found here: + * Rotation + * Matrix. + */ + // @ts-ignore + public rotateAroundY(angle: number): org.bukkit.util.Vector; + /** + * Rotates the vector around the z axis + *

+ * This piece of math is based on the standard rotation matrix for vectors + * in three dimensional space. This matrix can be found here: + * Rotation + * Matrix. + */ + // @ts-ignore + public rotateAroundZ(angle: number): org.bukkit.util.Vector; + /** + * Rotates the vector around a given arbitrary axis in 3 dimensional space. + *

+ * Rotation will follow the general Right-Hand-Rule, which means rotation + * will be counterclockwise when the axis is pointing towards the observer. + *

+ * This method will always make sure the provided axis is a unit vector, to + * not modify the length of the vector when rotating. If you are experienced + * with the scaling of a non-unit axis vector, you can use + * {@link Vector#rotateAroundNonUnitAxis(Vector, double)}. + */ + // @ts-ignore + public rotateAroundAxis(axis: org.bukkit.util.Vector, angle: number): org.bukkit.util.Vector; + /** + * Rotates the vector around a given arbitrary axis in 3 dimensional space. + *

+ * Rotation will follow the general Right-Hand-Rule, which means rotation + * will be counterclockwise when the axis is pointing towards the observer. + *

+ * Note that the vector length will change accordingly to the axis vector + * length. If the provided axis is not a unit vector, the rotated vector + * will not have its previous length. The scaled length of the resulting + * vector will be related to the axis vector. If you are not perfectly sure + * about the scaling of the vector, use + * {@link Vector#rotateAroundAxis(Vector, double)} + */ + // @ts-ignore + public rotateAroundNonUnitAxis(axis: org.bukkit.util.Vector, angle: number): org.bukkit.util.Vector; + /** + * Gets the X component. + */ + // @ts-ignore + public getX(): number; + /** + * Gets the floored value of the X component, indicating the block that + * this vector is contained with. + */ + // @ts-ignore + public getBlockX(): number; + /** + * Gets the Y component. + */ + // @ts-ignore + public getY(): number; + /** + * Gets the floored value of the Y component, indicating the block that + * this vector is contained with. + */ + // @ts-ignore + public getBlockY(): number; + /** + * Gets the Z component. + */ + // @ts-ignore + public getZ(): number; + /** + * Gets the floored value of the Z component, indicating the block that + * this vector is contained with. + */ + // @ts-ignore + public getBlockZ(): number; + /** + * Set the X component. + */ + // @ts-ignore + public setX(x: number): org.bukkit.util.Vector; + /** + * Set the X component. + */ + // @ts-ignore + public setX(x: number): org.bukkit.util.Vector; + /** + * Set the X component. + */ + // @ts-ignore + public setX(x: number): org.bukkit.util.Vector; + /** + * Set the Y component. + */ + // @ts-ignore + public setY(y: number): org.bukkit.util.Vector; + /** + * Set the Y component. + */ + // @ts-ignore + public setY(y: number): org.bukkit.util.Vector; + /** + * Set the Y component. + */ + // @ts-ignore + public setY(y: number): org.bukkit.util.Vector; + /** + * Set the Z component. + */ + // @ts-ignore + public setZ(z: number): org.bukkit.util.Vector; + /** + * Set the Z component. + */ + // @ts-ignore + public setZ(z: number): org.bukkit.util.Vector; + /** + * Set the Z component. + */ + // @ts-ignore + public setZ(z: number): org.bukkit.util.Vector; + /** + * Checks to see if two objects are equal. + *

+ * Only two Vectors can ever return true. This method uses a fuzzy match + * to account for floating point errors. The epsilon can be retrieved + * with epsilon. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a hash code for this vector + */ + // @ts-ignore + public hashCode(): number; + /** + * Get a new vector. + */ + // @ts-ignore + public clone(): org.bukkit.util.Vector; + /** + * Returns this vector's components as x,y,z. + */ + // @ts-ignore + public toString(): string; + /** + * Gets a Location version of this vector with yaw and pitch being 0. + */ + // @ts-ignore + public toLocation(world: org.bukkit.World): org.bukkit.Location; + /** + * Gets a Location version of this vector. + */ + // @ts-ignore + public toLocation(world: org.bukkit.World, yaw: number, pitch: number): org.bukkit.Location; + /** + * Get the block vector of this vector. + */ + // @ts-ignore + public toBlockVector(): org.bukkit.util.BlockVector; + /** + * Check if each component of this Vector is finite. + */ + // @ts-ignore + public checkFinite(): void; + /** + * Get the threshold used for equals(). + */ + // @ts-ignore + public static getEpsilon(): number; + /** + * Gets the minimum components of two vectors. + */ + // @ts-ignore + public static getMinimum(v1: org.bukkit.util.Vector, v2: org.bukkit.util.Vector): org.bukkit.util.Vector; + /** + * Gets the maximum components of two vectors. + */ + // @ts-ignore + public static getMaximum(v1: org.bukkit.util.Vector, v2: org.bukkit.util.Vector): org.bukkit.util.Vector; + /** + * Gets a random vector with components having a random value between 0 + * and 1. + */ + // @ts-ignore + public static getRandom(): org.bukkit.util.Vector; + // @ts-ignore + public serialize(): java.util.Map; + // @ts-ignore + public static deserialize(args: java.util.Map): org.bukkit.util.Vector; + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.util.io.BukkitObjectInputStream.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.util.io.BukkitObjectInputStream.d.ts new file mode 100644 index 00000000..66fa3a1a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.util.io.BukkitObjectInputStream.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace util { + namespace io { + // @ts-ignore + class BukkitObjectInputStream extends java.io.ObjectInputStream { + /** + * Constructor provided to mirror super functionality. + */ + // @ts-ignore + constructor() + /** + * Object input stream decoration constructor. + */ + // @ts-ignore + constructor(input: java.io.InputStream) + // @ts-ignore + protected resolveObject(obj: java.lang.Object): java.lang.Object; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.util.io.BukkitObjectOutputStream.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.util.io.BukkitObjectOutputStream.d.ts new file mode 100644 index 00000000..2740ee37 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.util.io.BukkitObjectOutputStream.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace util { + namespace io { + // @ts-ignore + class BukkitObjectOutputStream extends java.io.ObjectOutputStream { + /** + * Constructor provided to mirror super functionality. + */ + // @ts-ignore + constructor() + /** + * Object output stream decoration constructor. + */ + // @ts-ignore + constructor(out: java.io.OutputStream) + // @ts-ignore + protected replaceObject(obj: java.lang.Object): java.lang.Object; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.util.noise.NoiseGenerator.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.util.noise.NoiseGenerator.d.ts new file mode 100644 index 00000000..dc48c375 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.util.noise.NoiseGenerator.d.ts @@ -0,0 +1,79 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace util { + namespace noise { + // @ts-ignore + abstract class NoiseGenerator extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + protected perm: number[]; + // @ts-ignore + protected offsetX: number; + // @ts-ignore + protected offsetY: number; + // @ts-ignore + protected offsetZ: number; + /** + * Speedy floor, faster than (int)Math.floor(x) + */ + // @ts-ignore + public static floor(x: number): number; + // @ts-ignore + protected static fade(x: number): number; + // @ts-ignore + protected static lerp(x: number, y: number, z: number): number; + // @ts-ignore + protected static grad(hash: number, x: number, y: number, z: number): number; + /** + * Computes and returns the 1D noise for the given coordinate in 1D space + */ + // @ts-ignore + public noise(x: number): number; + /** + * Computes and returns the 2D noise for the given coordinates in 2D space + */ + // @ts-ignore + public noise(x: number, y: number): number; + /** + * Generates noise for the 1D coordinates using the specified number of + * octaves and parameters + */ + // @ts-ignore + public noise(x: number, octaves: number, frequency: number, amplitude: number): number; + /** + * Generates noise for the 1D coordinates using the specified number of + * octaves and parameters + */ + // @ts-ignore + public noise(x: number, octaves: number, frequency: number, amplitude: number, normalized: boolean): number; + /** + * Generates noise for the 2D coordinates using the specified number of + * octaves and parameters + */ + // @ts-ignore + public noise(x: number, y: number, octaves: number, frequency: number, amplitude: number): number; + /** + * Generates noise for the 2D coordinates using the specified number of + * octaves and parameters + */ + // @ts-ignore + public noise(x: number, y: number, octaves: number, frequency: number, amplitude: number, normalized: boolean): number; + /** + * Generates noise for the 3D coordinates using the specified number of + * octaves and parameters + */ + // @ts-ignore + public noise(x: number, y: number, z: number, octaves: number, frequency: number, amplitude: number): number; + /** + * Generates noise for the 3D coordinates using the specified number of + * octaves and parameters + */ + // @ts-ignore + public noise(x: number, y: number, z: number, octaves: number, frequency: number, amplitude: number, normalized: boolean): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.util.noise.OctaveGenerator.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.util.noise.OctaveGenerator.d.ts new file mode 100644 index 00000000..5a73adf0 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.util.noise.OctaveGenerator.d.ts @@ -0,0 +1,101 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace util { + namespace noise { + // @ts-ignore + abstract class OctaveGenerator extends java.lang.Object { + // @ts-ignore + constructor(octaves: org.bukkit.util.noise.NoiseGenerator) + // @ts-ignore + protected octaves: org.bukkit.util.noise.NoiseGenerator[]; + // @ts-ignore + protected xScale: number; + // @ts-ignore + protected yScale: number; + // @ts-ignore + protected zScale: number; + /** + * Sets the scale used for all coordinates passed to this generator. + *

+ * This is the equivalent to setting each coordinate to the specified + * value. + */ + // @ts-ignore + public setScale(scale: number): void; + /** + * Gets the scale used for each X-coordinates passed + */ + // @ts-ignore + public getXScale(): number; + /** + * Sets the scale used for each X-coordinates passed + */ + // @ts-ignore + public setXScale(scale: number): void; + /** + * Gets the scale used for each Y-coordinates passed + */ + // @ts-ignore + public getYScale(): number; + /** + * Sets the scale used for each Y-coordinates passed + */ + // @ts-ignore + public setYScale(scale: number): void; + /** + * Gets the scale used for each Z-coordinates passed + */ + // @ts-ignore + public getZScale(): number; + /** + * Sets the scale used for each Z-coordinates passed + */ + // @ts-ignore + public setZScale(scale: number): void; + /** + * Gets a clone of the individual octaves used within this generator + */ + // @ts-ignore + public getOctaves(): org.bukkit.util.noise.NoiseGenerator[]; + /** + * Generates noise for the 1D coordinates using the specified number of + * octaves and parameters + */ + // @ts-ignore + public noise(x: number, frequency: number, amplitude: number): number; + /** + * Generates noise for the 1D coordinates using the specified number of + * octaves and parameters + */ + // @ts-ignore + public noise(x: number, frequency: number, amplitude: number, normalized: boolean): number; + /** + * Generates noise for the 2D coordinates using the specified number of + * octaves and parameters + */ + // @ts-ignore + public noise(x: number, y: number, frequency: number, amplitude: number): number; + /** + * Generates noise for the 2D coordinates using the specified number of + * octaves and parameters + */ + // @ts-ignore + public noise(x: number, y: number, frequency: number, amplitude: number, normalized: boolean): number; + /** + * Generates noise for the 3D coordinates using the specified number of + * octaves and parameters + */ + // @ts-ignore + public noise(x: number, y: number, z: number, frequency: number, amplitude: number): number; + /** + * Generates noise for the 3D coordinates using the specified number of + * octaves and parameters + */ + // @ts-ignore + public noise(x: number, y: number, z: number, frequency: number, amplitude: number, normalized: boolean): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.util.noise.PerlinNoiseGenerator.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.util.noise.PerlinNoiseGenerator.d.ts new file mode 100644 index 00000000..5c260306 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.util.noise.PerlinNoiseGenerator.d.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace util { + namespace noise { + // @ts-ignore + class PerlinNoiseGenerator extends org.bukkit.util.noise.NoiseGenerator { + // @ts-ignore + constructor() + /** + * Creates a seeded perlin noise generator for the given world + */ + // @ts-ignore + constructor(world: org.bukkit.World) + /** + * Creates a seeded perlin noise generator for the given seed + */ + // @ts-ignore + constructor(seed: number) + /** + * Creates a seeded perlin noise generator with the given Random + */ + // @ts-ignore + constructor(rand: java.util.Random) + // @ts-ignore + protected static grad3: number[][]; + /** + * Computes and returns the 1D unseeded perlin noise for the given + * coordinates in 1D space + */ + // @ts-ignore + public static getNoise(x: number): number; + /** + * Computes and returns the 2D unseeded perlin noise for the given + * coordinates in 2D space + */ + // @ts-ignore + public static getNoise(x: number, y: number): number; + /** + * Computes and returns the 3D unseeded perlin noise for the given + * coordinates in 3D space + */ + // @ts-ignore + public static getNoise(x: number, y: number, z: number): number; + /** + * Gets the singleton unseeded instance of this generator + */ + // @ts-ignore + public static getInstance(): org.bukkit.util.noise.PerlinNoiseGenerator; + // @ts-ignore + public noise(x: number, y: number, z: number): number; + /** + * Generates noise for the 1D coordinates using the specified number of + * octaves and parameters + */ + // @ts-ignore + public static getNoise(x: number, octaves: number, frequency: number, amplitude: number): number; + /** + * Generates noise for the 2D coordinates using the specified number of + * octaves and parameters + */ + // @ts-ignore + public static getNoise(x: number, y: number, octaves: number, frequency: number, amplitude: number): number; + /** + * Generates noise for the 3D coordinates using the specified number of + * octaves and parameters + */ + // @ts-ignore + public static getNoise(x: number, y: number, z: number, octaves: number, frequency: number, amplitude: number): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.util.noise.PerlinOctaveGenerator.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.util.noise.PerlinOctaveGenerator.d.ts new file mode 100644 index 00000000..347b1006 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.util.noise.PerlinOctaveGenerator.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace util { + namespace noise { + // @ts-ignore + class PerlinOctaveGenerator extends org.bukkit.util.noise.OctaveGenerator { + /** + * Creates a perlin octave generator for the given world + */ + // @ts-ignore + constructor(world: org.bukkit.World, octaves: number) + /** + * Creates a perlin octave generator for the given world + */ + // @ts-ignore + constructor(seed: number, octaves: number) + /** + * Creates a perlin octave generator for the given {@link Random} + */ + // @ts-ignore + constructor(rand: java.util.Random, octaves: number) + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.util.noise.SimplexNoiseGenerator.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.util.noise.SimplexNoiseGenerator.d.ts new file mode 100644 index 00000000..37ad5555 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.util.noise.SimplexNoiseGenerator.d.ts @@ -0,0 +1,104 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace util { + namespace noise { + // @ts-ignore + class SimplexNoiseGenerator extends org.bukkit.util.noise.PerlinNoiseGenerator { + // @ts-ignore + constructor() + /** + * Creates a seeded simplex noise generator for the given world + */ + // @ts-ignore + constructor(world: org.bukkit.World) + /** + * Creates a seeded simplex noise generator for the given seed + */ + // @ts-ignore + constructor(seed: number) + /** + * Creates a seeded simplex noise generator with the given Random + */ + // @ts-ignore + constructor(rand: java.util.Random) + // @ts-ignore + protected static SQRT_3: number; + // @ts-ignore + protected static SQRT_5: number; + // @ts-ignore + protected static F2: number; + // @ts-ignore + protected static G2: number; + // @ts-ignore + protected static G22: number; + // @ts-ignore + protected static F3: number; + // @ts-ignore + protected static G3: number; + // @ts-ignore + protected static F4: number; + // @ts-ignore + protected static G4: number; + // @ts-ignore + protected static G42: number; + // @ts-ignore + protected static G43: number; + // @ts-ignore + protected static G44: number; + // @ts-ignore + protected static grad4: number[][]; + // @ts-ignore + protected static simplex: number[][]; + // @ts-ignore + protected offsetW: number; + // @ts-ignore + protected static dot(g: number, x: number, y: number): number; + // @ts-ignore + protected static dot(g: number, x: number, y: number, z: number): number; + // @ts-ignore + protected static dot(g: number, x: number, y: number, z: number, w: number): number; + /** + * Computes and returns the 1D unseeded simplex noise for the given + * coordinates in 1D space + */ + // @ts-ignore + public static getNoise(xin: number): number; + /** + * Computes and returns the 2D unseeded simplex noise for the given + * coordinates in 2D space + */ + // @ts-ignore + public static getNoise(xin: number, yin: number): number; + /** + * Computes and returns the 3D unseeded simplex noise for the given + * coordinates in 3D space + */ + // @ts-ignore + public static getNoise(xin: number, yin: number, zin: number): number; + /** + * Computes and returns the 4D simplex noise for the given coordinates in + * 4D space + */ + // @ts-ignore + public static getNoise(x: number, y: number, z: number, w: number): number; + // @ts-ignore + public noise(xin: number, yin: number, zin: number): number; + // @ts-ignore + public noise(xin: number, yin: number): number; + /** + * Computes and returns the 4D simplex noise for the given coordinates in + * 4D space + */ + // @ts-ignore + public noise(x: number, y: number, z: number, w: number): number; + /** + * Gets the singleton unseeded instance of this generator + */ + // @ts-ignore + public static getInstance(): org.bukkit.util.noise.SimplexNoiseGenerator; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.util.noise.SimplexOctaveGenerator.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.util.noise.SimplexOctaveGenerator.d.ts new file mode 100644 index 00000000..a6a1bd7e --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.util.noise.SimplexOctaveGenerator.d.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace util { + namespace noise { + // @ts-ignore + class SimplexOctaveGenerator extends org.bukkit.util.noise.OctaveGenerator { + /** + * Creates a simplex octave generator for the given world + */ + // @ts-ignore + constructor(world: org.bukkit.World, octaves: number) + /** + * Creates a simplex octave generator for the given world + */ + // @ts-ignore + constructor(seed: number, octaves: number) + /** + * Creates a simplex octave generator for the given {@link Random} + */ + // @ts-ignore + constructor(rand: java.util.Random, octaves: number) + // @ts-ignore + public setScale(scale: number): void; + /** + * Gets the scale used for each W-coordinates passed + */ + // @ts-ignore + public getWScale(): number; + /** + * Sets the scale used for each W-coordinates passed + */ + // @ts-ignore + public setWScale(scale: number): void; + /** + * Generates noise for the 3D coordinates using the specified number of + * octaves and parameters + */ + // @ts-ignore + public noise(x: number, y: number, z: number, w: number, frequency: number, amplitude: number): number; + /** + * Generates noise for the 3D coordinates using the specified number of + * octaves and parameters + */ + // @ts-ignore + public noise(x: number, y: number, z: number, w: number, frequency: number, amplitude: number, normalized: boolean): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.util.permissions.BroadcastPermissions.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.util.permissions.BroadcastPermissions.d.ts new file mode 100644 index 00000000..29962781 --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.util.permissions.BroadcastPermissions.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace util { + namespace permissions { + // @ts-ignore + class BroadcastPermissions extends java.lang.Object { + // @ts-ignore + public static registerPermissions(parent: org.bukkit.permissions.Permission): org.bukkit.permissions.Permission; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.util.permissions.CommandPermissions.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.util.permissions.CommandPermissions.d.ts new file mode 100644 index 00000000..a6bb2eab --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.util.permissions.CommandPermissions.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace util { + namespace permissions { + // @ts-ignore + class CommandPermissions extends java.lang.Object { + // @ts-ignore + public static registerPermissions(parent: org.bukkit.permissions.Permission): org.bukkit.permissions.Permission; + } + } + } + } +} diff --git a/packages/types/dist/typings/bukkit/org.bukkit.util.permissions.DefaultPermissions.d.ts b/packages/types/dist/typings/bukkit/org.bukkit.util.permissions.DefaultPermissions.d.ts new file mode 100644 index 00000000..e28f913a --- /dev/null +++ b/packages/types/dist/typings/bukkit/org.bukkit.util.permissions.DefaultPermissions.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace bukkit { + namespace util { + namespace permissions { + // @ts-ignore + class DefaultPermissions extends java.lang.Object { + // @ts-ignore + public static registerPermission(perm: org.bukkit.permissions.Permission): org.bukkit.permissions.Permission; + // @ts-ignore + public static registerPermission(perm: org.bukkit.permissions.Permission, withLegacy: boolean): org.bukkit.permissions.Permission; + // @ts-ignore + public static registerPermission(perm: org.bukkit.permissions.Permission, parent: org.bukkit.permissions.Permission): org.bukkit.permissions.Permission; + // @ts-ignore + public static registerPermission(name: string, desc: string): org.bukkit.permissions.Permission; + // @ts-ignore + public static registerPermission(name: string, desc: string, parent: org.bukkit.permissions.Permission): org.bukkit.permissions.Permission; + // @ts-ignore + public static registerPermission(name: string, desc: string, def: org.bukkit.permissions.PermissionDefault): org.bukkit.permissions.Permission; + // @ts-ignore + public static registerPermission(name: string, desc: string, def: org.bukkit.permissions.PermissionDefault, parent: org.bukkit.permissions.Permission): org.bukkit.permissions.Permission; + // @ts-ignore + public static registerPermission(name: string, desc: string, def: org.bukkit.permissions.PermissionDefault, children: java.util.Map): org.bukkit.permissions.Permission; + // @ts-ignore + public static registerPermission(name: string, desc: string, def: org.bukkit.permissions.PermissionDefault, children: java.util.Map, parent: org.bukkit.permissions.Permission): org.bukkit.permissions.Permission; + // @ts-ignore + public static registerCorePermissions(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/index.d.ts b/packages/types/dist/typings/jdk/index.d.ts new file mode 100644 index 00000000..4c3bbfea --- /dev/null +++ b/packages/types/dist/typings/jdk/index.d.ts @@ -0,0 +1,1743 @@ +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// diff --git a/packages/types/dist/typings/jdk/java.applet.Applet.AccessibleApplet.d.ts b/packages/types/dist/typings/jdk/java.applet.Applet.AccessibleApplet.d.ts new file mode 100644 index 00000000..ab268163 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.applet.Applet.AccessibleApplet.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace applet { + namespace Applet { + // @ts-ignore + protected class AccessibleApplet extends java.awt.Panel.AccessibleAWTPanel { + // @ts-ignore + constructor() + /** + * Get the role of this object. + */ + // @ts-ignore + public getAccessibleRole(): any /*javax.accessibility.AccessibleRole*/; + /** + * Get the state of this object. + */ + // @ts-ignore + public getAccessibleStateSet(): any /*javax.accessibility.AccessibleStateSet*/; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.applet.Applet.d.ts b/packages/types/dist/typings/jdk/java.applet.Applet.d.ts new file mode 100644 index 00000000..34bdca46 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.applet.Applet.d.ts @@ -0,0 +1,288 @@ +// @ts-nocheck +declare namespace java { + namespace applet { + // @ts-ignore + class Applet extends java.awt.Panel { + /** + * Constructs a new Applet. + *

+ * Note: Many methods in java.applet.Applet + * may be invoked by the applet only after the applet is + * fully constructed; applet should avoid calling methods + * in java.applet.Applet in the constructor. + */ + // @ts-ignore + constructor() + /** + * Sets this applet's stub. This is done automatically by the system. + *

If there is a security manager, its checkPermission + * method is called with the + * AWTPermission("setAppletStub") + * permission if a stub has already been set. + */ + // @ts-ignore + public setStub(stub: java.applet.AppletStub): void; + /** + * Determines if this applet is active. An applet is marked active + * just before its start method is called. It becomes + * inactive just before its stop method is called. + */ + // @ts-ignore + public isActive(): boolean; + /** + * Gets the URL of the document in which this applet is embedded. + * For example, suppose an applet is contained + * within the document: + *

+             * http://www.oracle.com/technetwork/java/index.html
+             * 
+ * The document base is: + *
+             * http://www.oracle.com/technetwork/java/index.html
+             * 
+ */ + // @ts-ignore + public getDocumentBase(): java.net.URL; + /** + * Gets the base URL. This is the URL of the directory which contains this applet. + */ + // @ts-ignore + public getCodeBase(): java.net.URL; + /** + * Returns the value of the named parameter in the HTML tag. For + * example, if this applet is specified as + *
+             * <applet code="Clock" width=50 height=50>
+             * <param name=Color value="blue">
+             * </applet>
+             * 
+ *

+ * then a call to getParameter("Color") returns the + * value "blue". + *

+ * The name argument is case insensitive. + */ + // @ts-ignore + public getParameter(name: string): string; + /** + * Determines this applet's context, which allows the applet to + * query and affect the environment in which it runs. + *

+ * This environment of an applet represents the document that + * contains the applet. + */ + // @ts-ignore + public getAppletContext(): java.applet.AppletContext; + /** + * Requests that this applet be resized. + */ + // @ts-ignore + public resize(width: number, height: number): void; + /** + * Requests that this applet be resized. + */ + // @ts-ignore + public resize(d: java.awt.Dimension): void; + /** + * Indicates if this container is a validate root. + *

+ * {@code Applet} objects are the validate roots, and, therefore, they + * override this method to return {@code true}. + */ + // @ts-ignore + public isValidateRoot(): boolean; + /** + * Requests that the argument string be displayed in the + * "status window". Many browsers and applet viewers + * provide such a window, where the application can inform users of + * its current state. + */ + // @ts-ignore + public showStatus(msg: string): void; + /** + * Returns an Image object that can then be painted on + * the screen. The url that is passed as an argument + * must specify an absolute URL. + *

+ * This method always returns immediately, whether or not the image + * exists. When this applet attempts to draw the image on the screen, + * the data will be loaded. The graphics primitives that draw the + * image will incrementally paint on the screen. + */ + // @ts-ignore + public getImage(url: java.net.URL): java.awt.Image; + /** + * Returns an Image object that can then be painted on + * the screen. The url argument must specify an absolute + * URL. The name argument is a specifier that is + * relative to the url argument. + *

+ * This method always returns immediately, whether or not the image + * exists. When this applet attempts to draw the image on the screen, + * the data will be loaded. The graphics primitives that draw the + * image will incrementally paint on the screen. + */ + // @ts-ignore + public getImage(url: java.net.URL, name: string): java.awt.Image; + /** + * Get an audio clip from the given URL. + */ + // @ts-ignore + public static newAudioClip(url: java.net.URL): java.applet.AudioClip; + /** + * Returns the AudioClip object specified by the + * URL argument. + *

+ * This method always returns immediately, whether or not the audio + * clip exists. When this applet attempts to play the audio clip, the + * data will be loaded. + */ + // @ts-ignore + public getAudioClip(url: java.net.URL): java.applet.AudioClip; + /** + * Returns the AudioClip object specified by the + * URL and name arguments. + *

+ * This method always returns immediately, whether or not the audio + * clip exists. When this applet attempts to play the audio clip, the + * data will be loaded. + */ + // @ts-ignore + public getAudioClip(url: java.net.URL, name: string): java.applet.AudioClip; + /** + * Returns information about this applet. An applet should override + * this method to return a String containing information + * about the author, version, and copyright of the applet. + *

+ * The implementation of this method provided by the + * Applet class returns null. + */ + // @ts-ignore + public getAppletInfo(): string; + /** + * Gets the locale of the applet. It allows the applet + * to maintain its own locale separated from the locale + * of the browser or appletviewer. + */ + // @ts-ignore + public getLocale(): java.util.Locale; + /** + * Returns information about the parameters that are understood by + * this applet. An applet should override this method to return an + * array of Strings describing these parameters. + *

+ * Each element of the array should be a set of three + * Strings containing the name, the type, and a + * description. For example: + *

+             * String pinfo[][] = {
+             * {"fps",    "1-10",    "frames per second"},
+             * {"repeat", "boolean", "repeat image loop"},
+             * {"imgs",   "url",     "images directory"}
+             * };
+             * 
+ *

+ * The implementation of this method provided by the + * Applet class returns null. + */ + // @ts-ignore + public getParameterInfo(): java.lang.String[][]; + /** + * Plays the audio clip at the specified absolute URL. Nothing + * happens if the audio clip cannot be found. + */ + // @ts-ignore + public play(url: java.net.URL): void; + /** + * Plays the audio clip given the URL and a specifier that is + * relative to it. Nothing happens if the audio clip cannot be found. + */ + // @ts-ignore + public play(url: java.net.URL, name: string): void; + /** + * Called by the browser or applet viewer to inform + * this applet that it has been loaded into the system. It is always + * called before the first time that the start method is + * called. + *

+ * A subclass of Applet should override this method if + * it has initialization to perform. For example, an applet with + * threads would use the init method to create the + * threads and the destroy method to kill them. + *

+ * The implementation of this method provided by the + * Applet class does nothing. + */ + // @ts-ignore + public init(): void; + /** + * Called by the browser or applet viewer to inform + * this applet that it should start its execution. It is called after + * the init method and each time the applet is revisited + * in a Web page. + *

+ * A subclass of Applet should override this method if + * it has any operation that it wants to perform each time the Web + * page containing it is visited. For example, an applet with + * animation might want to use the start method to + * resume animation, and the stop method to suspend the + * animation. + *

+ * Note: some methods, such as getLocationOnScreen, can only + * provide meaningful results if the applet is showing. Because + * isShowing returns false when the applet's + * start is first called, methods requiring + * isShowing to return true should be called from + * a ComponentListener. + *

+ * The implementation of this method provided by the + * Applet class does nothing. + */ + // @ts-ignore + public start(): void; + /** + * Called by the browser or applet viewer to inform + * this applet that it should stop its execution. It is called when + * the Web page that contains this applet has been replaced by + * another page, and also just before the applet is to be destroyed. + *

+ * A subclass of Applet should override this method if + * it has any operation that it wants to perform each time the Web + * page containing it is no longer visible. For example, an applet + * with animation might want to use the start method to + * resume animation, and the stop method to suspend the + * animation. + *

+ * The implementation of this method provided by the + * Applet class does nothing. + */ + // @ts-ignore + public stop(): void; + /** + * Called by the browser or applet viewer to inform + * this applet that it is being reclaimed and that it should destroy + * any resources that it has allocated. The stop method + * will always be called before destroy. + *

+ * A subclass of Applet should override this method if + * it has any operation that it wants to perform before it is + * destroyed. For example, an applet with threads would use the + * init method to create the threads and the + * destroy method to kill them. + *

+ * The implementation of this method provided by the + * Applet class does nothing. + */ + // @ts-ignore + public destroy(): void; + /** + * Gets the AccessibleContext associated with this Applet. + * For applets, the AccessibleContext takes the form of an + * AccessibleApplet. + * A new AccessibleApplet instance is created if necessary. + */ + // @ts-ignore + public getAccessibleContext(): any /*javax.accessibility.AccessibleContext*/; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.applet.AppletContext.d.ts b/packages/types/dist/typings/jdk/java.applet.AppletContext.d.ts new file mode 100644 index 00000000..30640db3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.applet.AppletContext.d.ts @@ -0,0 +1,117 @@ +// @ts-nocheck +declare namespace java { + namespace applet { + // @ts-ignore + interface AppletContext { + /** + * Creates an audio clip. + */ + // @ts-ignore + getAudioClip(url: java.net.URL): java.applet.AudioClip; + /** + * Returns an Image object that can then be painted on + * the screen. The url argument that is + * passed as an argument must specify an absolute URL. + *

+ * This method always returns immediately, whether or not the image + * exists. When the applet attempts to draw the image on the screen, + * the data will be loaded. The graphics primitives that draw the + * image will incrementally paint on the screen. + */ + // @ts-ignore + getImage(url: java.net.URL): java.awt.Image; + /** + * Finds and returns the applet in the document represented by this + * applet context with the given name. The name can be set in the + * HTML tag by setting the name attribute. + */ + // @ts-ignore + getApplet(name: string): java.applet.Applet; + /** + * Finds all the applets in the document represented by this applet + * context. + */ + // @ts-ignore + getApplets(): java.util.Enumeration; + /** + * Requests that the browser or applet viewer show the Web page + * indicated by the url argument. The browser or + * applet viewer determines which window or frame to display the + * Web page. This method may be ignored by applet contexts that + * are not browsers. + */ + // @ts-ignore + showDocument(url: java.net.URL): void; + /** + * Requests that the browser or applet viewer show the Web page + * indicated by the url argument. The + * target argument indicates in which HTML frame the + * document is to be displayed. + * The target argument is interpreted as follows: + *

+ * + * + * + * + * + * + *
Target ArgumentDescription
"_self" Show in the window and frame that + * contain the applet.
"_parent"Show in the applet's parent frame. If + * the applet's frame has no parent frame, + * acts the same as "_self".
"_top" Show in the top-level frame of the applet's + * window. If the applet's frame is the + * top-level frame, acts the same as "_self".
"_blank" Show in a new, unnamed + * top-level window.
nameShow in the frame or window named name. If + * a target named name does not already exist, a + * new top-level window with the specified name is created, + * and the document is shown there.
+ *

+ * An applet viewer or browser is free to ignore showDocument. + */ + // @ts-ignore + showDocument(url: java.net.URL, target: string): void; + /** + * Requests that the argument string be displayed in the + * "status window". Many browsers and applet viewers + * provide such a window, where the application can inform users of + * its current state. + */ + // @ts-ignore + showStatus(status: string): void; + /** + * Associates the specified stream with the specified key in this + * applet context. If the applet context previously contained a mapping + * for this key, the old value is replaced. + *

+ * For security reasons, mapping of streams and keys exists for each + * codebase. In other words, applet from one codebase cannot access + * the streams created by an applet from a different codebase + *

+ */ + // @ts-ignore + setStream(key: string, stream: java.io.InputStream): void; + /** + * Returns the stream to which specified key is associated within this + * applet context. Returns null if the applet context contains + * no stream for this key. + *

+ * For security reasons, mapping of streams and keys exists for each + * codebase. In other words, applet from one codebase cannot access + * the streams created by an applet from a different codebase + *

+ */ + // @ts-ignore + getStream(key: string): java.io.InputStream; + /** + * Finds all the keys of the streams in this applet context. + *

+ * For security reasons, mapping of streams and keys exists for each + * codebase. In other words, applet from one codebase cannot access + * the streams created by an applet from a different codebase + *

+ */ + // @ts-ignore + getStreamKeys(): java.util.Iterator; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.applet.AppletStub.d.ts b/packages/types/dist/typings/jdk/java.applet.AppletStub.d.ts new file mode 100644 index 00000000..ba7f953b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.applet.AppletStub.d.ts @@ -0,0 +1,58 @@ +// @ts-nocheck +declare namespace java { + namespace applet { + // @ts-ignore + interface AppletStub { + /** + * Determines if the applet is active. An applet is active just + * before its start method is called. It becomes + * inactive just before its stop method is called. + */ + // @ts-ignore + isActive(): boolean; + /** + * Gets the URL of the document in which the applet is embedded. + * For example, suppose an applet is contained + * within the document: + *

+             * http://www.oracle.com/technetwork/java/index.html
+             * 
+ * The document base is: + *
+             * http://www.oracle.com/technetwork/java/index.html
+             * 
+ */ + // @ts-ignore + getDocumentBase(): java.net.URL; + /** + * Gets the base URL. This is the URL of the directory which contains the applet. + */ + // @ts-ignore + getCodeBase(): java.net.URL; + /** + * Returns the value of the named parameter in the HTML tag. For + * example, if an applet is specified as + *
+             * <applet code="Clock" width=50 height=50>
+             * <param name=Color value="blue">
+             * </applet>
+             * 
+ *

+ * then a call to getParameter("Color") returns the + * value "blue". + */ + // @ts-ignore + getParameter(name: string): string; + /** + * Returns the applet's context. + */ + // @ts-ignore + getAppletContext(): java.applet.AppletContext; + /** + * Called when the applet wants to be resized. + */ + // @ts-ignore + appletResize(width: number, height: number): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.applet.AudioClip.d.ts b/packages/types/dist/typings/jdk/java.applet.AudioClip.d.ts new file mode 100644 index 00000000..f508d171 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.applet.AudioClip.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace java { + namespace applet { + // @ts-ignore + interface AudioClip { + /** + * Starts playing this audio clip. Each time this method is called, + * the clip is restarted from the beginning. + */ + // @ts-ignore + play(): void; + /** + * Starts playing this audio clip in a loop. + */ + // @ts-ignore + loop(): void; + /** + * Stops playing this audio clip. + */ + // @ts-ignore + stop(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.AWTError.d.ts b/packages/types/dist/typings/jdk/java.awt.AWTError.d.ts new file mode 100644 index 00000000..4b000a12 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.AWTError.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class AWTError extends java.lang.Error { + /** + * Constructs an instance of AWTError with the specified + * detail message. + */ + // @ts-ignore + constructor(msg: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.AWTEvent.d.ts b/packages/types/dist/typings/jdk/java.awt.AWTEvent.d.ts new file mode 100644 index 00000000..05070861 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.AWTEvent.d.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + abstract class AWTEvent extends java.util.EventObject { + /** + * Constructs an AWTEvent object from the parameters of a 1.0-style event. + */ + // @ts-ignore + constructor(event: java.awt.Event) + /** + * Constructs an AWTEvent object with the specified source object and type. + */ + // @ts-ignore + constructor(source: java.lang.Object, id: number) + // @ts-ignore + protected id: number; + // @ts-ignore + protected consumed: boolean; + // @ts-ignore + public static COMPONENT_EVENT_MASK: number; + // @ts-ignore + public static CONTAINER_EVENT_MASK: number; + // @ts-ignore + public static FOCUS_EVENT_MASK: number; + // @ts-ignore + public static KEY_EVENT_MASK: number; + // @ts-ignore + public static MOUSE_EVENT_MASK: number; + // @ts-ignore + public static MOUSE_MOTION_EVENT_MASK: number; + // @ts-ignore + public static WINDOW_EVENT_MASK: number; + // @ts-ignore + public static ACTION_EVENT_MASK: number; + // @ts-ignore + public static ADJUSTMENT_EVENT_MASK: number; + // @ts-ignore + public static ITEM_EVENT_MASK: number; + // @ts-ignore + public static TEXT_EVENT_MASK: number; + // @ts-ignore + public static INPUT_METHOD_EVENT_MASK: number; + // @ts-ignore + public static PAINT_EVENT_MASK: number; + // @ts-ignore + public static INVOCATION_EVENT_MASK: number; + // @ts-ignore + public static HIERARCHY_EVENT_MASK: number; + // @ts-ignore + public static HIERARCHY_BOUNDS_EVENT_MASK: number; + // @ts-ignore + public static MOUSE_WHEEL_EVENT_MASK: number; + // @ts-ignore + public static WINDOW_STATE_EVENT_MASK: number; + // @ts-ignore + public static WINDOW_FOCUS_EVENT_MASK: number; + // @ts-ignore + public static RESERVED_ID_MAX: number; + /** + * Retargets an event to a new source. This method is typically used to + * retarget an event to a lightweight child Component of the original + * heavyweight source. + *

+ * This method is intended to be used only by event targeting subsystems, + * such as client-defined KeyboardFocusManagers. It is not for general + * client use. + */ + // @ts-ignore + public setSource(newSource: java.lang.Object): void; + /** + * Returns the event type. + */ + // @ts-ignore + public getID(): number; + /** + * Returns a String representation of this object. + */ + // @ts-ignore + public toString(): string; + /** + * Returns a string representing the state of this Event. + * This method is intended to be used only for debugging purposes, and the + * content and format of the returned string may vary between + * implementations. The returned string may be empty but may not be + * null. + */ + // @ts-ignore + public paramString(): string; + /** + * Consumes this event, if this event can be consumed. Only low-level, + * system events can be consumed + */ + // @ts-ignore + protected consume(): void; + /** + * Returns whether this event has been consumed. + */ + // @ts-ignore + protected isConsumed(): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.AWTEventMulticaster.d.ts b/packages/types/dist/typings/jdk/java.awt.AWTEventMulticaster.d.ts new file mode 100644 index 00000000..b6d6c8e6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.AWTEventMulticaster.d.ts @@ -0,0 +1,495 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class AWTEventMulticaster extends java.lang.Object { + /** + * Creates an event multicaster instance which chains listener-a + * with listener-b. Input parameters a and b + * should not be null, though implementations may vary in + * choosing whether or not to throw NullPointerException + * in that case. + */ + // @ts-ignore + constructor(a: java.util.EventListener, b: java.util.EventListener) + // @ts-ignore + protected a: java.util.EventListener; + // @ts-ignore + protected b: java.util.EventListener; + /** + * Removes a listener from this multicaster. + *

+ * The returned multicaster contains all the listeners in this + * multicaster with the exception of all occurrences of {@code oldl}. + * If the resulting multicaster contains only one regular listener + * the regular listener may be returned. If the resulting multicaster + * is empty, then {@code null} may be returned instead. + *

+ * No exception is thrown if {@code oldl} is {@code null}. + */ + // @ts-ignore + protected remove(oldl: java.util.EventListener): java.util.EventListener; + /** + * Handles the componentResized event by invoking the + * componentResized methods on listener-a and listener-b. + */ + // @ts-ignore + public componentResized(e: java.awt.event.ComponentEvent): void; + /** + * Handles the componentMoved event by invoking the + * componentMoved methods on listener-a and listener-b. + */ + // @ts-ignore + public componentMoved(e: java.awt.event.ComponentEvent): void; + /** + * Handles the componentShown event by invoking the + * componentShown methods on listener-a and listener-b. + */ + // @ts-ignore + public componentShown(e: java.awt.event.ComponentEvent): void; + /** + * Handles the componentHidden event by invoking the + * componentHidden methods on listener-a and listener-b. + */ + // @ts-ignore + public componentHidden(e: java.awt.event.ComponentEvent): void; + /** + * Handles the componentAdded container event by invoking the + * componentAdded methods on listener-a and listener-b. + */ + // @ts-ignore + public componentAdded(e: java.awt.event.ContainerEvent): void; + /** + * Handles the componentRemoved container event by invoking the + * componentRemoved methods on listener-a and listener-b. + */ + // @ts-ignore + public componentRemoved(e: java.awt.event.ContainerEvent): void; + /** + * Handles the focusGained event by invoking the + * focusGained methods on listener-a and listener-b. + */ + // @ts-ignore + public focusGained(e: java.awt.event.FocusEvent): void; + /** + * Handles the focusLost event by invoking the + * focusLost methods on listener-a and listener-b. + */ + // @ts-ignore + public focusLost(e: java.awt.event.FocusEvent): void; + /** + * Handles the keyTyped event by invoking the + * keyTyped methods on listener-a and listener-b. + */ + // @ts-ignore + public keyTyped(e: java.awt.event.KeyEvent): void; + /** + * Handles the keyPressed event by invoking the + * keyPressed methods on listener-a and listener-b. + */ + // @ts-ignore + public keyPressed(e: java.awt.event.KeyEvent): void; + /** + * Handles the keyReleased event by invoking the + * keyReleased methods on listener-a and listener-b. + */ + // @ts-ignore + public keyReleased(e: java.awt.event.KeyEvent): void; + /** + * Handles the mouseClicked event by invoking the + * mouseClicked methods on listener-a and listener-b. + */ + // @ts-ignore + public mouseClicked(e: java.awt.event.MouseEvent): void; + /** + * Handles the mousePressed event by invoking the + * mousePressed methods on listener-a and listener-b. + */ + // @ts-ignore + public mousePressed(e: java.awt.event.MouseEvent): void; + /** + * Handles the mouseReleased event by invoking the + * mouseReleased methods on listener-a and listener-b. + */ + // @ts-ignore + public mouseReleased(e: java.awt.event.MouseEvent): void; + /** + * Handles the mouseEntered event by invoking the + * mouseEntered methods on listener-a and listener-b. + */ + // @ts-ignore + public mouseEntered(e: java.awt.event.MouseEvent): void; + /** + * Handles the mouseExited event by invoking the + * mouseExited methods on listener-a and listener-b. + */ + // @ts-ignore + public mouseExited(e: java.awt.event.MouseEvent): void; + /** + * Handles the mouseDragged event by invoking the + * mouseDragged methods on listener-a and listener-b. + */ + // @ts-ignore + public mouseDragged(e: java.awt.event.MouseEvent): void; + /** + * Handles the mouseMoved event by invoking the + * mouseMoved methods on listener-a and listener-b. + */ + // @ts-ignore + public mouseMoved(e: java.awt.event.MouseEvent): void; + /** + * Handles the windowOpened event by invoking the + * windowOpened methods on listener-a and listener-b. + */ + // @ts-ignore + public windowOpened(e: java.awt.event.WindowEvent): void; + /** + * Handles the windowClosing event by invoking the + * windowClosing methods on listener-a and listener-b. + */ + // @ts-ignore + public windowClosing(e: java.awt.event.WindowEvent): void; + /** + * Handles the windowClosed event by invoking the + * windowClosed methods on listener-a and listener-b. + */ + // @ts-ignore + public windowClosed(e: java.awt.event.WindowEvent): void; + /** + * Handles the windowIconified event by invoking the + * windowIconified methods on listener-a and listener-b. + */ + // @ts-ignore + public windowIconified(e: java.awt.event.WindowEvent): void; + /** + * Handles the windowDeiconfied event by invoking the + * windowDeiconified methods on listener-a and listener-b. + */ + // @ts-ignore + public windowDeiconified(e: java.awt.event.WindowEvent): void; + /** + * Handles the windowActivated event by invoking the + * windowActivated methods on listener-a and listener-b. + */ + // @ts-ignore + public windowActivated(e: java.awt.event.WindowEvent): void; + /** + * Handles the windowDeactivated event by invoking the + * windowDeactivated methods on listener-a and listener-b. + */ + // @ts-ignore + public windowDeactivated(e: java.awt.event.WindowEvent): void; + /** + * Handles the windowStateChanged event by invoking the + * windowStateChanged methods on listener-a and listener-b. + */ + // @ts-ignore + public windowStateChanged(e: java.awt.event.WindowEvent): void; + /** + * Handles the windowGainedFocus event by invoking the windowGainedFocus + * methods on listener-a and listener-b. + */ + // @ts-ignore + public windowGainedFocus(e: java.awt.event.WindowEvent): void; + /** + * Handles the windowLostFocus event by invoking the windowLostFocus + * methods on listener-a and listener-b. + */ + // @ts-ignore + public windowLostFocus(e: java.awt.event.WindowEvent): void; + /** + * Handles the actionPerformed event by invoking the + * actionPerformed methods on listener-a and listener-b. + */ + // @ts-ignore + public actionPerformed(e: java.awt.event.ActionEvent): void; + /** + * Handles the itemStateChanged event by invoking the + * itemStateChanged methods on listener-a and listener-b. + */ + // @ts-ignore + public itemStateChanged(e: java.awt.event.ItemEvent): void; + /** + * Handles the adjustmentValueChanged event by invoking the + * adjustmentValueChanged methods on listener-a and listener-b. + */ + // @ts-ignore + public adjustmentValueChanged(e: java.awt.event.AdjustmentEvent): void; + // @ts-ignore + public textValueChanged(e: java.awt.event.TextEvent): void; + /** + * Handles the inputMethodTextChanged event by invoking the + * inputMethodTextChanged methods on listener-a and listener-b. + */ + // @ts-ignore + public inputMethodTextChanged(e: java.awt.event.InputMethodEvent): void; + /** + * Handles the caretPositionChanged event by invoking the + * caretPositionChanged methods on listener-a and listener-b. + */ + // @ts-ignore + public caretPositionChanged(e: java.awt.event.InputMethodEvent): void; + /** + * Handles the hierarchyChanged event by invoking the + * hierarchyChanged methods on listener-a and listener-b. + */ + // @ts-ignore + public hierarchyChanged(e: java.awt.event.HierarchyEvent): void; + /** + * Handles the ancestorMoved event by invoking the + * ancestorMoved methods on listener-a and listener-b. + */ + // @ts-ignore + public ancestorMoved(e: java.awt.event.HierarchyEvent): void; + /** + * Handles the ancestorResized event by invoking the + * ancestorResized methods on listener-a and listener-b. + */ + // @ts-ignore + public ancestorResized(e: java.awt.event.HierarchyEvent): void; + /** + * Handles the mouseWheelMoved event by invoking the + * mouseWheelMoved methods on listener-a and listener-b. + */ + // @ts-ignore + public mouseWheelMoved(e: java.awt.event.MouseWheelEvent): void; + /** + * Adds component-listener-a with component-listener-b and + * returns the resulting multicast listener. + */ + // @ts-ignore + public static add(a: java.awt.event.ComponentListener, b: java.awt.event.ComponentListener): java.awt.event.ComponentListener; + /** + * Adds container-listener-a with container-listener-b and + * returns the resulting multicast listener. + */ + // @ts-ignore + public static add(a: java.awt.event.ContainerListener, b: java.awt.event.ContainerListener): java.awt.event.ContainerListener; + /** + * Adds focus-listener-a with focus-listener-b and + * returns the resulting multicast listener. + */ + // @ts-ignore + public static add(a: java.awt.event.FocusListener, b: java.awt.event.FocusListener): java.awt.event.FocusListener; + /** + * Adds key-listener-a with key-listener-b and + * returns the resulting multicast listener. + */ + // @ts-ignore + public static add(a: java.awt.event.KeyListener, b: java.awt.event.KeyListener): java.awt.event.KeyListener; + /** + * Adds mouse-listener-a with mouse-listener-b and + * returns the resulting multicast listener. + */ + // @ts-ignore + public static add(a: java.awt.event.MouseListener, b: java.awt.event.MouseListener): java.awt.event.MouseListener; + /** + * Adds mouse-motion-listener-a with mouse-motion-listener-b and + * returns the resulting multicast listener. + */ + // @ts-ignore + public static add(a: java.awt.event.MouseMotionListener, b: java.awt.event.MouseMotionListener): java.awt.event.MouseMotionListener; + /** + * Adds window-listener-a with window-listener-b and + * returns the resulting multicast listener. + */ + // @ts-ignore + public static add(a: java.awt.event.WindowListener, b: java.awt.event.WindowListener): java.awt.event.WindowListener; + /** + * Adds window-state-listener-a with window-state-listener-b + * and returns the resulting multicast listener. + */ + // @ts-ignore + public static add(a: java.awt.event.WindowStateListener, b: java.awt.event.WindowStateListener): java.awt.event.WindowStateListener; + /** + * Adds window-focus-listener-a with window-focus-listener-b + * and returns the resulting multicast listener. + */ + // @ts-ignore + public static add(a: java.awt.event.WindowFocusListener, b: java.awt.event.WindowFocusListener): java.awt.event.WindowFocusListener; + /** + * Adds action-listener-a with action-listener-b and + * returns the resulting multicast listener. + */ + // @ts-ignore + public static add(a: java.awt.event.ActionListener, b: java.awt.event.ActionListener): java.awt.event.ActionListener; + /** + * Adds item-listener-a with item-listener-b and + * returns the resulting multicast listener. + */ + // @ts-ignore + public static add(a: java.awt.event.ItemListener, b: java.awt.event.ItemListener): java.awt.event.ItemListener; + /** + * Adds adjustment-listener-a with adjustment-listener-b and + * returns the resulting multicast listener. + */ + // @ts-ignore + public static add(a: java.awt.event.AdjustmentListener, b: java.awt.event.AdjustmentListener): java.awt.event.AdjustmentListener; + // @ts-ignore + public static add(a: java.awt.event.TextListener, b: java.awt.event.TextListener): java.awt.event.TextListener; + /** + * Adds input-method-listener-a with input-method-listener-b and + * returns the resulting multicast listener. + */ + // @ts-ignore + public static add(a: java.awt.event.InputMethodListener, b: java.awt.event.InputMethodListener): java.awt.event.InputMethodListener; + /** + * Adds hierarchy-listener-a with hierarchy-listener-b and + * returns the resulting multicast listener. + */ + // @ts-ignore + public static add(a: java.awt.event.HierarchyListener, b: java.awt.event.HierarchyListener): java.awt.event.HierarchyListener; + /** + * Adds hierarchy-bounds-listener-a with hierarchy-bounds-listener-b and + * returns the resulting multicast listener. + */ + // @ts-ignore + public static add(a: java.awt.event.HierarchyBoundsListener, b: java.awt.event.HierarchyBoundsListener): java.awt.event.HierarchyBoundsListener; + /** + * Adds mouse-wheel-listener-a with mouse-wheel-listener-b and + * returns the resulting multicast listener. + */ + // @ts-ignore + public static add(a: java.awt.event.MouseWheelListener, b: java.awt.event.MouseWheelListener): java.awt.event.MouseWheelListener; + /** + * Removes the old component-listener from component-listener-l and + * returns the resulting multicast listener. + */ + // @ts-ignore + public static remove(l: java.awt.event.ComponentListener, oldl: java.awt.event.ComponentListener): java.awt.event.ComponentListener; + /** + * Removes the old container-listener from container-listener-l and + * returns the resulting multicast listener. + */ + // @ts-ignore + public static remove(l: java.awt.event.ContainerListener, oldl: java.awt.event.ContainerListener): java.awt.event.ContainerListener; + /** + * Removes the old focus-listener from focus-listener-l and + * returns the resulting multicast listener. + */ + // @ts-ignore + public static remove(l: java.awt.event.FocusListener, oldl: java.awt.event.FocusListener): java.awt.event.FocusListener; + /** + * Removes the old key-listener from key-listener-l and + * returns the resulting multicast listener. + */ + // @ts-ignore + public static remove(l: java.awt.event.KeyListener, oldl: java.awt.event.KeyListener): java.awt.event.KeyListener; + /** + * Removes the old mouse-listener from mouse-listener-l and + * returns the resulting multicast listener. + */ + // @ts-ignore + public static remove(l: java.awt.event.MouseListener, oldl: java.awt.event.MouseListener): java.awt.event.MouseListener; + /** + * Removes the old mouse-motion-listener from mouse-motion-listener-l + * and returns the resulting multicast listener. + */ + // @ts-ignore + public static remove(l: java.awt.event.MouseMotionListener, oldl: java.awt.event.MouseMotionListener): java.awt.event.MouseMotionListener; + /** + * Removes the old window-listener from window-listener-l and + * returns the resulting multicast listener. + */ + // @ts-ignore + public static remove(l: java.awt.event.WindowListener, oldl: java.awt.event.WindowListener): java.awt.event.WindowListener; + /** + * Removes the old window-state-listener from window-state-listener-l + * and returns the resulting multicast listener. + */ + // @ts-ignore + public static remove(l: java.awt.event.WindowStateListener, oldl: java.awt.event.WindowStateListener): java.awt.event.WindowStateListener; + /** + * Removes the old window-focus-listener from window-focus-listener-l + * and returns the resulting multicast listener. + */ + // @ts-ignore + public static remove(l: java.awt.event.WindowFocusListener, oldl: java.awt.event.WindowFocusListener): java.awt.event.WindowFocusListener; + /** + * Removes the old action-listener from action-listener-l and + * returns the resulting multicast listener. + */ + // @ts-ignore + public static remove(l: java.awt.event.ActionListener, oldl: java.awt.event.ActionListener): java.awt.event.ActionListener; + /** + * Removes the old item-listener from item-listener-l and + * returns the resulting multicast listener. + */ + // @ts-ignore + public static remove(l: java.awt.event.ItemListener, oldl: java.awt.event.ItemListener): java.awt.event.ItemListener; + /** + * Removes the old adjustment-listener from adjustment-listener-l and + * returns the resulting multicast listener. + */ + // @ts-ignore + public static remove(l: java.awt.event.AdjustmentListener, oldl: java.awt.event.AdjustmentListener): java.awt.event.AdjustmentListener; + // @ts-ignore + public static remove(l: java.awt.event.TextListener, oldl: java.awt.event.TextListener): java.awt.event.TextListener; + /** + * Removes the old input-method-listener from input-method-listener-l and + * returns the resulting multicast listener. + */ + // @ts-ignore + public static remove(l: java.awt.event.InputMethodListener, oldl: java.awt.event.InputMethodListener): java.awt.event.InputMethodListener; + /** + * Removes the old hierarchy-listener from hierarchy-listener-l and + * returns the resulting multicast listener. + */ + // @ts-ignore + public static remove(l: java.awt.event.HierarchyListener, oldl: java.awt.event.HierarchyListener): java.awt.event.HierarchyListener; + /** + * Removes the old hierarchy-bounds-listener from + * hierarchy-bounds-listener-l and returns the resulting multicast + * listener. + */ + // @ts-ignore + public static remove(l: java.awt.event.HierarchyBoundsListener, oldl: java.awt.event.HierarchyBoundsListener): java.awt.event.HierarchyBoundsListener; + /** + * Removes the old mouse-wheel-listener from mouse-wheel-listener-l + * and returns the resulting multicast listener. + */ + // @ts-ignore + public static remove(l: java.awt.event.MouseWheelListener, oldl: java.awt.event.MouseWheelListener): java.awt.event.MouseWheelListener; + /** + * Returns the resulting multicast listener from adding listener-a + * and listener-b together. + * If listener-a is null, it returns listener-b; + * If listener-b is null, it returns listener-a + * If neither are null, then it creates and returns + * a new AWTEventMulticaster instance which chains a with b. + */ + // @ts-ignore + protected static addInternal(a: java.util.EventListener, b: java.util.EventListener): java.util.EventListener; + /** + * Returns the resulting multicast listener after removing the + * old listener from listener-l. + * If listener-l equals the old listener OR listener-l is null, + * returns null. + * Else if listener-l is an instance of AWTEventMulticaster, + * then it removes the old listener from it. + * Else, returns listener l. + */ + // @ts-ignore + protected static removeInternal(l: java.util.EventListener, oldl: java.util.EventListener): java.util.EventListener; + // @ts-ignore + protected saveInternal(s: java.io.ObjectOutputStream, k: string): void; + // @ts-ignore + protected static save(s: java.io.ObjectOutputStream, k: string, l: java.util.EventListener): void; + /** + * Returns an array of all the objects chained as + * FooListeners by the specified + * java.util.EventListener. + * FooListeners are chained by the + * AWTEventMulticaster using the + * addFooListener method. + * If a null listener is specified, this method returns an + * empty array. If the specified listener is not an instance of + * AWTEventMulticaster, this method returns an array which + * contains only the specified listener. If no such listeners are chained, + * this method returns an empty array. + */ + // @ts-ignore + public static getListeners(l: java.util.EventListener, listenerType: java.lang.Class): java.util.EventListener[]; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.AWTException.d.ts b/packages/types/dist/typings/jdk/java.awt.AWTException.d.ts new file mode 100644 index 00000000..3d3d0979 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.AWTException.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class AWTException extends java.lang.Exception { + /** + * Constructs an instance of AWTException with the + * specified detail message. A detail message is an + * instance of String that describes this particular + * exception. + */ + // @ts-ignore + constructor(msg: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.AWTKeyStroke.d.ts b/packages/types/dist/typings/jdk/java.awt.AWTKeyStroke.d.ts new file mode 100644 index 00000000..5c0f99ba --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.AWTKeyStroke.d.ts @@ -0,0 +1,246 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class AWTKeyStroke extends java.lang.Object { + /** + * Constructs an AWTKeyStroke with default values. + * The default values used are: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
PropertyDefault Value
Key CharKeyEvent.CHAR_UNDEFINED
Key CodeKeyEvent.VK_UNDEFINED
Modifiersnone
On key release?false
+ * AWTKeyStrokes should not be constructed + * by client code. Use a variant of getAWTKeyStroke + * instead. + */ + // @ts-ignore + constructor() + /** + * Constructs an AWTKeyStroke with the specified + * values. AWTKeyStrokes should not be constructed + * by client code. Use a variant of getAWTKeyStroke + * instead. + */ + // @ts-ignore + constructor(keyChar: string, keyCode: number, modifiers: number, onKeyRelease: boolean) + /** + * Registers a new class which the factory methods in + * AWTKeyStroke will use when generating new + * instances of AWTKeyStrokes. After invoking this + * method, the factory methods will return instances of the specified + * Class. The specified Class must be either AWTKeyStroke + * or derived from AWTKeyStroke, and it must have a + * no-arg constructor. The constructor can be of any accessibility, + * including private. This operation + * flushes the current AWTKeyStroke cache. + */ + // @ts-ignore + protected static registerSubclass(subclass: java.lang.Class): void; + /** + * Returns a shared instance of an AWTKeyStroke + * that represents a KEY_TYPED event for the + * specified character. + */ + // @ts-ignore + public static getAWTKeyStroke(keyChar: string): java.awt.AWTKeyStroke; + /** + * Returns a shared instance of an {@code AWTKeyStroke} + * that represents a {@code KEY_TYPED} event for the + * specified Character object and a set of modifiers. Note + * that the first parameter is of type Character rather than + * char. This is to avoid inadvertent clashes with + * calls to getAWTKeyStroke(int keyCode, int modifiers). + * The modifiers consist of any combination of following:

    + *
  • java.awt.event.InputEvent.SHIFT_DOWN_MASK + *
  • java.awt.event.InputEvent.CTRL_DOWN_MASK + *
  • java.awt.event.InputEvent.META_DOWN_MASK + *
  • java.awt.event.InputEvent.ALT_DOWN_MASK + *
  • java.awt.event.InputEvent.ALT_GRAPH_DOWN_MASK + *
+ * The old modifiers listed below also can be used, but they are + * mapped to _DOWN_ modifiers.
    + *
  • java.awt.event.InputEvent.SHIFT_MASK + *
  • java.awt.event.InputEvent.CTRL_MASK + *
  • java.awt.event.InputEvent.META_MASK + *
  • java.awt.event.InputEvent.ALT_MASK + *
  • java.awt.event.InputEvent.ALT_GRAPH_MASK + *
+ * also can be used, but they are mapped to _DOWN_ modifiers. + * Since these numbers are all different powers of two, any combination of + * them is an integer in which each bit represents a different modifier + * key. Use 0 to specify no modifiers. + */ + // @ts-ignore + public static getAWTKeyStroke(keyChar: java.lang.Character, modifiers: number): java.awt.AWTKeyStroke; + /** + * Returns a shared instance of an AWTKeyStroke, + * given a numeric key code and a set of modifiers, specifying + * whether the key is activated when it is pressed or released. + *

+ * The "virtual key" constants defined in + * java.awt.event.KeyEvent can be + * used to specify the key code. For example:

    + *
  • java.awt.event.KeyEvent.VK_ENTER + *
  • java.awt.event.KeyEvent.VK_TAB + *
  • java.awt.event.KeyEvent.VK_SPACE + *
+ * Alternatively, the key code may be obtained by calling + * java.awt.event.KeyEvent.getExtendedKeyCodeForChar. + * The modifiers consist of any combination of:
    + *
  • java.awt.event.InputEvent.SHIFT_DOWN_MASK + *
  • java.awt.event.InputEvent.CTRL_DOWN_MASK + *
  • java.awt.event.InputEvent.META_DOWN_MASK + *
  • java.awt.event.InputEvent.ALT_DOWN_MASK + *
  • java.awt.event.InputEvent.ALT_GRAPH_DOWN_MASK + *
+ * The old modifiers
    + *
  • java.awt.event.InputEvent.SHIFT_MASK + *
  • java.awt.event.InputEvent.CTRL_MASK + *
  • java.awt.event.InputEvent.META_MASK + *
  • java.awt.event.InputEvent.ALT_MASK + *
  • java.awt.event.InputEvent.ALT_GRAPH_MASK + *
+ * also can be used, but they are mapped to _DOWN_ modifiers. + * Since these numbers are all different powers of two, any combination of + * them is an integer in which each bit represents a different modifier + * key. Use 0 to specify no modifiers. + */ + // @ts-ignore + public static getAWTKeyStroke(keyCode: number, modifiers: number, onKeyRelease: boolean): java.awt.AWTKeyStroke; + /** + * Returns a shared instance of an AWTKeyStroke, + * given a numeric key code and a set of modifiers. The returned + * AWTKeyStroke will correspond to a key press. + *

+ * The "virtual key" constants defined in + * java.awt.event.KeyEvent can be + * used to specify the key code. For example:

    + *
  • java.awt.event.KeyEvent.VK_ENTER + *
  • java.awt.event.KeyEvent.VK_TAB + *
  • java.awt.event.KeyEvent.VK_SPACE + *
+ * The modifiers consist of any combination of:
    + *
  • java.awt.event.InputEvent.SHIFT_DOWN_MASK + *
  • java.awt.event.InputEvent.CTRL_DOWN_MASK + *
  • java.awt.event.InputEvent.META_DOWN_MASK + *
  • java.awt.event.InputEvent.ALT_DOWN_MASK + *
  • java.awt.event.InputEvent.ALT_GRAPH_DOWN_MASK + *
+ * The old modifiers
    + *
  • java.awt.event.InputEvent.SHIFT_MASK + *
  • java.awt.event.InputEvent.CTRL_MASK + *
  • java.awt.event.InputEvent.META_MASK + *
  • java.awt.event.InputEvent.ALT_MASK + *
  • java.awt.event.InputEvent.ALT_GRAPH_MASK + *
+ * also can be used, but they are mapped to _DOWN_ modifiers. + * Since these numbers are all different powers of two, any combination of + * them is an integer in which each bit represents a different modifier + * key. Use 0 to specify no modifiers. + */ + // @ts-ignore + public static getAWTKeyStroke(keyCode: number, modifiers: number): java.awt.AWTKeyStroke; + /** + * Returns an AWTKeyStroke which represents the + * stroke which generated a given KeyEvent. + *

+ * This method obtains the keyChar from a KeyTyped + * event, and the keyCode from a KeyPressed or + * KeyReleased event. The KeyEvent modifiers are + * obtained for all three types of KeyEvent. + */ + // @ts-ignore + public static getAWTKeyStrokeForEvent(anEvent: java.awt.event.KeyEvent): java.awt.AWTKeyStroke; + /** + * Parses a string and returns an AWTKeyStroke. + * The string must have the following syntax: + *

+             * <modifiers>* (<typedID> | <pressedReleasedID>)
+             * modifiers := shift | control | ctrl | meta | alt | altGraph
+             * typedID := typed <typedKey>
+             * typedKey := string of length 1 giving Unicode character.
+             * pressedReleasedID := (pressed | released) key
+             * key := KeyEvent key code name, i.e. the name following "VK_".
+             * 
+ * If typed, pressed or released is not specified, pressed is assumed. Here + * are some examples: + *
+             * "INSERT" => getAWTKeyStroke(KeyEvent.VK_INSERT, 0);
+             * "control DELETE" => getAWTKeyStroke(KeyEvent.VK_DELETE, InputEvent.CTRL_MASK);
+             * "alt shift X" => getAWTKeyStroke(KeyEvent.VK_X, InputEvent.ALT_MASK | InputEvent.SHIFT_MASK);
+             * "alt shift released X" => getAWTKeyStroke(KeyEvent.VK_X, InputEvent.ALT_MASK | InputEvent.SHIFT_MASK, true);
+             * "typed a" => getAWTKeyStroke('a');
+             * 
+ */ + // @ts-ignore + public static getAWTKeyStroke(s: string): java.awt.AWTKeyStroke; + /** + * Returns the character for this AWTKeyStroke. + */ + // @ts-ignore + public getKeyChar(): string; + /** + * Returns the numeric key code for this AWTKeyStroke. + */ + // @ts-ignore + public getKeyCode(): number; + /** + * Returns the modifier keys for this AWTKeyStroke. + */ + // @ts-ignore + public getModifiers(): number; + /** + * Returns whether this AWTKeyStroke represents a key release. + */ + // @ts-ignore + public isOnKeyRelease(): boolean; + /** + * Returns the type of KeyEvent which corresponds to + * this AWTKeyStroke. + */ + // @ts-ignore + public getKeyEventType(): number; + /** + * Returns a numeric value for this object that is likely to be unique, + * making it a good choice as the index value in a hash table. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns true if this object is identical to the specified object. + */ + // @ts-ignore + public equals(anObject: java.lang.Object): boolean; + /** + * Returns a string that displays and identifies this object's properties. + * The String returned by this method can be passed + * as a parameter to getAWTKeyStroke(String) to produce + * a key stroke equal to this key stroke. + */ + // @ts-ignore + public toString(): string; + /** + * Returns a cached instance of AWTKeyStroke (or a subclass of + * AWTKeyStroke) which is equal to this instance. + */ + // @ts-ignore + protected readResolve(): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.AWTPermission.d.ts b/packages/types/dist/typings/jdk/java.awt.AWTPermission.d.ts new file mode 100644 index 00000000..d2f57839 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.AWTPermission.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class AWTPermission extends java.security.BasicPermission { + /** + * Creates a new AWTPermission with the specified name. + * The name is the symbolic name of the AWTPermission, + * such as "topLevelWindow", "systemClipboard", etc. An asterisk + * may be used to indicate all AWT permissions. + */ + // @ts-ignore + constructor(name: string) + /** + * Creates a new AWTPermission object with the specified name. + * The name is the symbolic name of the AWTPermission, and the + * actions string is currently unused and should be null. + */ + // @ts-ignore + constructor(name: string, actions: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.ActiveEvent.d.ts b/packages/types/dist/typings/jdk/java.awt.ActiveEvent.d.ts new file mode 100644 index 00000000..25e4887a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.ActiveEvent.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + interface ActiveEvent { + /** + * Dispatch the event to its target, listeners of the events source, + * or do whatever it is this event is supposed to do. + */ + // @ts-ignore + dispatch(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Adjustable.d.ts b/packages/types/dist/typings/jdk/java.awt.Adjustable.d.ts new file mode 100644 index 00000000..1b68aeeb --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Adjustable.d.ts @@ -0,0 +1,97 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + interface Adjustable { + // @ts-ignore + HORIZONTAL: number; + // @ts-ignore + VERTICAL: number; + // @ts-ignore + NO_ORIENTATION: number; + /** + * Gets the orientation of the adjustable object. + */ + // @ts-ignore + getOrientation(): number; + /** + * Sets the minimum value of the adjustable object. + */ + // @ts-ignore + setMinimum(min: number): void; + /** + * Gets the minimum value of the adjustable object. + */ + // @ts-ignore + getMinimum(): number; + /** + * Sets the maximum value of the adjustable object. + */ + // @ts-ignore + setMaximum(max: number): void; + /** + * Gets the maximum value of the adjustable object. + */ + // @ts-ignore + getMaximum(): number; + /** + * Sets the unit value increment for the adjustable object. + */ + // @ts-ignore + setUnitIncrement(u: number): void; + /** + * Gets the unit value increment for the adjustable object. + */ + // @ts-ignore + getUnitIncrement(): number; + /** + * Sets the block value increment for the adjustable object. + */ + // @ts-ignore + setBlockIncrement(b: number): void; + /** + * Gets the block value increment for the adjustable object. + */ + // @ts-ignore + getBlockIncrement(): number; + /** + * Sets the length of the proportional indicator of the + * adjustable object. + */ + // @ts-ignore + setVisibleAmount(v: number): void; + /** + * Gets the length of the proportional indicator. + */ + // @ts-ignore + getVisibleAmount(): number; + /** + * Sets the current value of the adjustable object. If + * the value supplied is less than minimum + * or greater than maximum - visibleAmount, + * then one of those values is substituted, as appropriate. + *

+ * Calling this method does not fire an + * AdjustmentEvent. + */ + // @ts-ignore + setValue(v: number): void; + /** + * Gets the current value of the adjustable object. + */ + // @ts-ignore + getValue(): number; + /** + * Adds a listener to receive adjustment events when the value of + * the adjustable object changes. + */ + // @ts-ignore + addAdjustmentListener(l: java.awt.event.AdjustmentListener): void; + /** + * Removes an adjustment listener. + */ + // @ts-ignore + removeAdjustmentListener(l: java.awt.event.AdjustmentListener): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.AlphaComposite.d.ts b/packages/types/dist/typings/jdk/java.awt.AlphaComposite.d.ts new file mode 100644 index 00000000..1326c4fc --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.AlphaComposite.d.ts @@ -0,0 +1,119 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class AlphaComposite extends java.lang.Object { + // @ts-ignore + public static CLEAR: number; + // @ts-ignore + public static SRC: number; + // @ts-ignore + public static DST: number; + // @ts-ignore + public static SRC_OVER: number; + // @ts-ignore + public static DST_OVER: number; + // @ts-ignore + public static SRC_IN: number; + // @ts-ignore + public static DST_IN: number; + // @ts-ignore + public static SRC_OUT: number; + // @ts-ignore + public static DST_OUT: number; + // @ts-ignore + public static SRC_ATOP: number; + // @ts-ignore + public static DST_ATOP: number; + // @ts-ignore + public static XOR: number; + // @ts-ignore + public static Clear: java.awt.AlphaComposite; + // @ts-ignore + public static Src: java.awt.AlphaComposite; + // @ts-ignore + public static Dst: java.awt.AlphaComposite; + // @ts-ignore + public static SrcOver: java.awt.AlphaComposite; + // @ts-ignore + public static DstOver: java.awt.AlphaComposite; + // @ts-ignore + public static SrcIn: java.awt.AlphaComposite; + // @ts-ignore + public static DstIn: java.awt.AlphaComposite; + // @ts-ignore + public static SrcOut: java.awt.AlphaComposite; + // @ts-ignore + public static DstOut: java.awt.AlphaComposite; + // @ts-ignore + public static SrcAtop: java.awt.AlphaComposite; + // @ts-ignore + public static DstAtop: java.awt.AlphaComposite; + // @ts-ignore + public static Xor: java.awt.AlphaComposite; + /** + * Creates an AlphaComposite object with the specified rule. + */ + // @ts-ignore + public static getInstance(rule: number): java.awt.AlphaComposite; + /** + * Creates an AlphaComposite object with the specified rule and + * the constant alpha to multiply with the alpha of the source. + * The source is multiplied with the specified alpha before being composited + * with the destination. + */ + // @ts-ignore + public static getInstance(rule: number, alpha: number): java.awt.AlphaComposite; + /** + * Creates a context for the compositing operation. + * The context contains state that is used in performing + * the compositing operation. + */ + // @ts-ignore + public createContext(srcColorModel: java.awt.image.ColorModel, dstColorModel: java.awt.image.ColorModel, hints: java.awt.RenderingHints): java.awt.CompositeContext; + /** + * Returns the alpha value of this AlphaComposite. If this + * AlphaComposite does not have an alpha value, 1.0 is returned. + */ + // @ts-ignore + public getAlpha(): number; + /** + * Returns the compositing rule of this AlphaComposite. + */ + // @ts-ignore + public getRule(): number; + /** + * Returns a similar AlphaComposite object that uses + * the specified compositing rule. + * If this object already uses the specified compositing rule, + * this object is returned. + */ + // @ts-ignore + public derive(rule: number): java.awt.AlphaComposite; + /** + * Returns a similar AlphaComposite object that uses + * the specified alpha value. + * If this object already has the specified alpha value, + * this object is returned. + */ + // @ts-ignore + public derive(alpha: number): java.awt.AlphaComposite; + /** + * Returns the hashcode for this composite. + */ + // @ts-ignore + public hashCode(): number; + /** + * Determines whether the specified object is equal to this + * AlphaComposite. + *

+ * The result is true if and only if + * the argument is not null and is an + * AlphaComposite object that has the same + * compositing rule and alpha value as this object. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.BasicStroke.d.ts b/packages/types/dist/typings/jdk/java.awt.BasicStroke.d.ts new file mode 100644 index 00000000..c87e5e6d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.BasicStroke.d.ts @@ -0,0 +1,119 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class BasicStroke extends java.lang.Object { + /** + * Constructs a new BasicStroke with the specified + * attributes. + */ + // @ts-ignore + constructor(width: number, cap: number, join: number, miterlimit: number, dash: number, dash_phase: number) + /** + * Constructs a solid BasicStroke with the specified + * attributes. + */ + // @ts-ignore + constructor(width: number, cap: number, join: number, miterlimit: number) + /** + * Constructs a solid BasicStroke with the specified + * attributes. The miterlimit parameter is + * unnecessary in cases where the default is allowable or the + * line joins are not specified as JOIN_MITER. + */ + // @ts-ignore + constructor(width: number, cap: number, join: number) + /** + * Constructs a solid BasicStroke with the specified + * line width and with default values for the cap and join + * styles. + */ + // @ts-ignore + constructor(width: number) + /** + * Constructs a new BasicStroke with defaults for all + * attributes. + * The default attributes are a solid line of width 1.0, CAP_SQUARE, + * JOIN_MITER, a miter limit of 10.0. + */ + // @ts-ignore + constructor() + // @ts-ignore + public static JOIN_MITER: number; + // @ts-ignore + public static JOIN_ROUND: number; + // @ts-ignore + public static JOIN_BEVEL: number; + // @ts-ignore + public static CAP_BUTT: number; + // @ts-ignore + public static CAP_ROUND: number; + // @ts-ignore + public static CAP_SQUARE: number; + /** + * Returns a Shape whose interior defines the + * stroked outline of a specified Shape. + */ + // @ts-ignore + public createStrokedShape(s: java.awt.Shape): java.awt.Shape; + /** + * Returns the line width. Line width is represented in user space, + * which is the default-coordinate space used by Java 2D. See the + * Graphics2D class comments for more information on + * the user space coordinate system. + */ + // @ts-ignore + public getLineWidth(): number; + /** + * Returns the end cap style. + */ + // @ts-ignore + public getEndCap(): number; + /** + * Returns the line join style. + */ + // @ts-ignore + public getLineJoin(): number; + /** + * Returns the limit of miter joins. + */ + // @ts-ignore + public getMiterLimit(): number; + /** + * Returns the array representing the lengths of the dash segments. + * Alternate entries in the array represent the user space lengths + * of the opaque and transparent segments of the dashes. + * As the pen moves along the outline of the Shape + * to be stroked, the user space + * distance that the pen travels is accumulated. The distance + * value is used to index into the dash array. + * The pen is opaque when its current cumulative distance maps + * to an even element of the dash array and transparent otherwise. + */ + // @ts-ignore + public getDashArray(): number[]; + /** + * Returns the current dash phase. + * The dash phase is a distance specified in user coordinates that + * represents an offset into the dashing pattern. In other words, the dash + * phase defines the point in the dashing pattern that will correspond to + * the beginning of the stroke. + */ + // @ts-ignore + public getDashPhase(): number; + /** + * Returns the hashcode for this stroke. + */ + // @ts-ignore + public hashCode(): number; + /** + * Tests if a specified object is equal to this BasicStroke + * by first testing if it is a BasicStroke and then comparing + * its width, join, cap, miter limit, dash, and dash phase attributes with + * those of this BasicStroke. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.BorderLayout.d.ts b/packages/types/dist/typings/jdk/java.awt.BorderLayout.d.ts new file mode 100644 index 00000000..63ac7ec3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.BorderLayout.d.ts @@ -0,0 +1,187 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class BorderLayout extends java.lang.Object { + /** + * Constructs a new border layout with + * no gaps between components. + */ + // @ts-ignore + constructor() + /** + * Constructs a border layout with the specified gaps + * between components. + * The horizontal gap is specified by hgap + * and the vertical gap is specified by vgap. + */ + // @ts-ignore + constructor(hgap: number, vgap: number) + // @ts-ignore + public static NORTH: string; + // @ts-ignore + public static SOUTH: string; + // @ts-ignore + public static EAST: string; + // @ts-ignore + public static WEST: string; + // @ts-ignore + public static CENTER: string; + // @ts-ignore + public static BEFORE_FIRST_LINE: string; + // @ts-ignore + public static AFTER_LAST_LINE: string; + // @ts-ignore + public static BEFORE_LINE_BEGINS: string; + // @ts-ignore + public static AFTER_LINE_ENDS: string; + // @ts-ignore + public static PAGE_START: string; + // @ts-ignore + public static PAGE_END: string; + // @ts-ignore + public static LINE_START: string; + // @ts-ignore + public static LINE_END: string; + /** + * Returns the horizontal gap between components. + */ + // @ts-ignore + public getHgap(): number; + /** + * Sets the horizontal gap between components. + */ + // @ts-ignore + public setHgap(hgap: number): void; + /** + * Returns the vertical gap between components. + */ + // @ts-ignore + public getVgap(): number; + /** + * Sets the vertical gap between components. + */ + // @ts-ignore + public setVgap(vgap: number): void; + /** + * Adds the specified component to the layout, using the specified + * constraint object. For border layouts, the constraint must be + * one of the following constants: NORTH, + * SOUTH, EAST, + * WEST, or CENTER. + *

+ * Most applications do not call this method directly. This method + * is called when a component is added to a container using the + * Container.add method with the same argument types. + */ + // @ts-ignore + public addLayoutComponent(comp: java.awt.Component, constraints: java.lang.Object): void; + // @ts-ignore + public addLayoutComponent(name: string, comp: java.awt.Component): void; + /** + * Removes the specified component from this border layout. This + * method is called when a container calls its remove or + * removeAll methods. Most applications do not call this + * method directly. + */ + // @ts-ignore + public removeLayoutComponent(comp: java.awt.Component): void; + /** + * Gets the component that was added using the given constraint + */ + // @ts-ignore + public getLayoutComponent(constraints: java.lang.Object): java.awt.Component; + /** + * Returns the component that corresponds to the given constraint location + * based on the target Container's component orientation. + * Components added with the relative constraints PAGE_START, + * PAGE_END, LINE_START, and LINE_END + * take precedence over components added with the explicit constraints + * NORTH, SOUTH, WEST, and EAST. + * The Container's component orientation is used to determine the location of components + * added with LINE_START and LINE_END. + */ + // @ts-ignore + public getLayoutComponent(target: java.awt.Container, constraints: java.lang.Object): java.awt.Component; + /** + * Gets the constraints for the specified component + */ + // @ts-ignore + public getConstraints(comp: java.awt.Component): java.lang.Object; + /** + * Determines the minimum size of the target container + * using this layout manager. + *

+ * This method is called when a container calls its + * getMinimumSize method. Most applications do not call + * this method directly. + */ + // @ts-ignore + public minimumLayoutSize(target: java.awt.Container): java.awt.Dimension; + /** + * Determines the preferred size of the target + * container using this layout manager, based on the components + * in the container. + *

+ * Most applications do not call this method directly. This method + * is called when a container calls its getPreferredSize + * method. + */ + // @ts-ignore + public preferredLayoutSize(target: java.awt.Container): java.awt.Dimension; + /** + * Returns the maximum dimensions for this layout given the components + * in the specified target container. + */ + // @ts-ignore + public maximumLayoutSize(target: java.awt.Container): java.awt.Dimension; + /** + * Returns the alignment along the x axis. This specifies how + * the component would like to be aligned relative to other + * components. The value should be a number between 0 and 1 + * where 0 represents alignment along the origin, 1 is aligned + * the furthest away from the origin, 0.5 is centered, etc. + */ + // @ts-ignore + public getLayoutAlignmentX(parent: java.awt.Container): number; + /** + * Returns the alignment along the y axis. This specifies how + * the component would like to be aligned relative to other + * components. The value should be a number between 0 and 1 + * where 0 represents alignment along the origin, 1 is aligned + * the furthest away from the origin, 0.5 is centered, etc. + */ + // @ts-ignore + public getLayoutAlignmentY(parent: java.awt.Container): number; + /** + * Invalidates the layout, indicating that if the layout manager + * has cached information it should be discarded. + */ + // @ts-ignore + public invalidateLayout(target: java.awt.Container): void; + /** + * Lays out the container argument using this border layout. + *

+ * This method actually reshapes the components in the specified + * container in order to satisfy the constraints of this + * BorderLayout object. The NORTH + * and SOUTH components, if any, are placed at + * the top and bottom of the container, respectively. The + * WEST and EAST components are + * then placed on the left and right, respectively. Finally, + * the CENTER object is placed in any remaining + * space in the middle. + *

+ * Most applications do not call this method directly. This method + * is called when a container calls its doLayout method. + */ + // @ts-ignore + public layoutContainer(target: java.awt.Container): void; + /** + * Returns a string representation of the state of this border layout. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.BufferCapabilities.FlipContents.d.ts b/packages/types/dist/typings/jdk/java.awt.BufferCapabilities.FlipContents.d.ts new file mode 100644 index 00000000..f25eb8b6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.BufferCapabilities.FlipContents.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace BufferCapabilities { + // @ts-ignore + class FlipContents extends java.awt.AttributeValue { + // @ts-ignore + public static UNDEFINED: java.awt.BufferCapabilities.FlipContents; + // @ts-ignore + public static BACKGROUND: java.awt.BufferCapabilities.FlipContents; + // @ts-ignore + public static PRIOR: java.awt.BufferCapabilities.FlipContents; + // @ts-ignore + public static COPIED: java.awt.BufferCapabilities.FlipContents; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.BufferCapabilities.d.ts b/packages/types/dist/typings/jdk/java.awt.BufferCapabilities.d.ts new file mode 100644 index 00000000..20c05a94 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.BufferCapabilities.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class BufferCapabilities extends java.lang.Object { + /** + * Creates a new object for specifying buffering capabilities + */ + // @ts-ignore + constructor(frontCaps: java.awt.ImageCapabilities, backCaps: java.awt.ImageCapabilities, flipContents: java.awt.BufferCapabilities.FlipContents) + // @ts-ignore + public getFrontBufferCapabilities(): java.awt.ImageCapabilities; + // @ts-ignore + public getBackBufferCapabilities(): java.awt.ImageCapabilities; + // @ts-ignore + public isPageFlipping(): boolean; + // @ts-ignore + public getFlipContents(): java.awt.BufferCapabilities.FlipContents; + // @ts-ignore + public isFullScreenRequired(): boolean; + // @ts-ignore + public isMultiBufferAvailable(): boolean; + // @ts-ignore + public clone(): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Button.AccessibleAWTButton.d.ts b/packages/types/dist/typings/jdk/java.awt.Button.AccessibleAWTButton.d.ts new file mode 100644 index 00000000..382add5f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Button.AccessibleAWTButton.d.ts @@ -0,0 +1,75 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace Button { + // @ts-ignore + protected class AccessibleAWTButton extends java.awt.Component.AccessibleAWTComponent { + // @ts-ignore + constructor() + /** + * Get the accessible name of this object. + */ + // @ts-ignore + public getAccessibleName(): string; + /** + * Get the AccessibleAction associated with this object. In the + * implementation of the Java Accessibility API for this class, + * return this object, which is responsible for implementing the + * AccessibleAction interface on behalf of itself. + */ + // @ts-ignore + public getAccessibleAction(): any /*javax.accessibility.AccessibleAction*/; + /** + * Get the AccessibleValue associated with this object. In the + * implementation of the Java Accessibility API for this class, + * return this object, which is responsible for implementing the + * AccessibleValue interface on behalf of itself. + */ + // @ts-ignore + public getAccessibleValue(): any /*javax.accessibility.AccessibleValue*/; + /** + * Returns the number of Actions available in this object. The + * default behavior of a button is to have one action - toggle + * the button. + */ + // @ts-ignore + public getAccessibleActionCount(): number; + /** + * Return a description of the specified action of the object. + */ + // @ts-ignore + public getAccessibleActionDescription(i: number): string; + /** + * Perform the specified Action on the object + */ + // @ts-ignore + public doAccessibleAction(i: number): boolean; + /** + * Get the value of this object as a Number. + */ + // @ts-ignore + public getCurrentAccessibleValue(): java.lang.Number; + /** + * Set the value of this object as a Number. + */ + // @ts-ignore + public setCurrentAccessibleValue(n: java.lang.Number): boolean; + /** + * Get the minimum value of this object as a Number. + */ + // @ts-ignore + public getMinimumAccessibleValue(): java.lang.Number; + /** + * Get the maximum value of this object as a Number. + */ + // @ts-ignore + public getMaximumAccessibleValue(): java.lang.Number; + /** + * Get the role of this object. + */ + // @ts-ignore + public getAccessibleRole(): any /*javax.accessibility.AccessibleRole*/; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Button.d.ts b/packages/types/dist/typings/jdk/java.awt.Button.d.ts new file mode 100644 index 00000000..7023c52a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Button.d.ts @@ -0,0 +1,142 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class Button extends java.awt.Component { + /** + * Constructs a button with an empty string for its label. + */ + // @ts-ignore + constructor() + /** + * Constructs a button with the specified label. + */ + // @ts-ignore + constructor(label: string) + /** + * Creates the peer of the button. The button's peer allows the + * application to change the look of the button without changing + * its functionality. + */ + // @ts-ignore + public addNotify(): void; + /** + * Gets the label of this button. + */ + // @ts-ignore + public getLabel(): string; + /** + * Sets the button's label to be the specified string. + */ + // @ts-ignore + public setLabel(label: string): void; + /** + * Sets the command name for the action event fired + * by this button. By default this action command is + * set to match the label of the button. + */ + // @ts-ignore + public setActionCommand(command: string): void; + /** + * Returns the command name of the action event fired by this button. + * If the command name is null (default) then this method + * returns the label of the button. + */ + // @ts-ignore + public getActionCommand(): string; + /** + * Adds the specified action listener to receive action events from + * this button. Action events occur when a user presses or releases + * the mouse over this button. + * If l is null, no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public addActionListener(l: java.awt.event.ActionListener): void; + /** + * Removes the specified action listener so that it no longer + * receives action events from this button. Action events occur + * when a user presses or releases the mouse over this button. + * If l is null, no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public removeActionListener(l: java.awt.event.ActionListener): void; + /** + * Returns an array of all the action listeners + * registered on this button. + */ + // @ts-ignore + public getActionListeners(): java.awt.event.ActionListener[]; + /** + * Returns an array of all the objects currently registered + * as FooListeners + * upon this Button. + * FooListeners are registered using the + * addFooListener method. + *

+ * You can specify the listenerType argument + * with a class literal, such as + * FooListener.class. + * For example, you can query a + * Button b + * for its action listeners with the following code: + *

ActionListener[] als = (ActionListener[])(b.getListeners(ActionListener.class));
+ * If no such listeners exist, this method returns an empty array. + */ + // @ts-ignore + public getListeners(listenerType: java.lang.Class): java.util.EventListener[]; + /** + * Processes events on this button. If an event is + * an instance of ActionEvent, this method invokes + * the processActionEvent method. Otherwise, + * it invokes processEvent on the superclass. + *

Note that if the event parameter is null + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processEvent(e: java.awt.AWTEvent): void; + /** + * Processes action events occurring on this button + * by dispatching them to any registered + * ActionListener objects. + *

+ * This method is not called unless action events are + * enabled for this button. Action events are enabled + * when one of the following occurs: + *

    + *
  • An ActionListener object is registered + * via addActionListener. + *
  • Action events are enabled via enableEvents. + *
+ *

Note that if the event parameter is null + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processActionEvent(e: java.awt.event.ActionEvent): void; + /** + * Returns a string representing the state of this Button. + * This method is intended to be used only for debugging purposes, and the + * content and format of the returned string may vary between + * implementations. The returned string may be empty but may not be + * null. + */ + // @ts-ignore + protected paramString(): string; + /** + * Gets the AccessibleContext associated with + * this Button. For buttons, the + * AccessibleContext takes the form of an + * AccessibleAWTButton. + * A new AccessibleAWTButton instance is + * created if necessary. + */ + // @ts-ignore + public getAccessibleContext(): any /*javax.accessibility.AccessibleContext*/; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Canvas.AccessibleAWTCanvas.d.ts b/packages/types/dist/typings/jdk/java.awt.Canvas.AccessibleAWTCanvas.d.ts new file mode 100644 index 00000000..dc7bf4f9 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Canvas.AccessibleAWTCanvas.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace Canvas { + // @ts-ignore + protected class AccessibleAWTCanvas extends java.awt.Component.AccessibleAWTComponent { + // @ts-ignore + constructor() + /** + * Get the role of this object. + */ + // @ts-ignore + public getAccessibleRole(): any /*javax.accessibility.AccessibleRole*/; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Canvas.d.ts b/packages/types/dist/typings/jdk/java.awt.Canvas.d.ts new file mode 100644 index 00000000..55bcb2a3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Canvas.d.ts @@ -0,0 +1,90 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class Canvas extends java.awt.Component { + /** + * Constructs a new Canvas. + */ + // @ts-ignore + constructor() + /** + * Constructs a new Canvas given a GraphicsConfiguration object. + */ + // @ts-ignore + constructor(config: java.awt.GraphicsConfiguration) + /** + * Creates the peer of the canvas. This peer allows you to change the + * user interface of the canvas without changing its functionality. + */ + // @ts-ignore + public addNotify(): void; + /** + * Paints this canvas. + *

+ * Most applications that subclass Canvas should + * override this method in order to perform some useful operation + * (typically, custom painting of the canvas). + * The default operation is simply to clear the canvas. + * Applications that override this method need not call + * super.paint(g). + */ + // @ts-ignore + public paint(g: java.awt.Graphics): void; + /** + * Updates this canvas. + *

+ * This method is called in response to a call to repaint. + * The canvas is first cleared by filling it with the background + * color, and then completely redrawn by calling this canvas's + * paint method. + * Note: applications that override this method should either call + * super.update(g) or incorporate the functionality described + * above into their own code. + */ + // @ts-ignore + public update(g: java.awt.Graphics): void; + /** + * Creates a new strategy for multi-buffering on this component. + * Multi-buffering is useful for rendering performance. This method + * attempts to create the best strategy available with the number of + * buffers supplied. It will always create a BufferStrategy + * with that number of buffers. + * A page-flipping strategy is attempted first, then a blitting strategy + * using accelerated buffers. Finally, an unaccelerated blitting + * strategy is used. + *

+ * Each time this method is called, + * the existing buffer strategy for this component is discarded. + */ + // @ts-ignore + public createBufferStrategy(numBuffers: number): void; + /** + * Creates a new strategy for multi-buffering on this component with the + * required buffer capabilities. This is useful, for example, if only + * accelerated memory or page flipping is desired (as specified by the + * buffer capabilities). + *

+ * Each time this method + * is called, the existing buffer strategy for this component is discarded. + */ + // @ts-ignore + public createBufferStrategy(numBuffers: number, caps: java.awt.BufferCapabilities): void; + /** + * Returns the BufferStrategy used by this component. This + * method will return null if a BufferStrategy has not yet + * been created or has been disposed. + */ + // @ts-ignore + public getBufferStrategy(): java.awt.image.BufferStrategy; + /** + * Gets the AccessibleContext associated with this Canvas. + * For canvases, the AccessibleContext takes the form of an + * AccessibleAWTCanvas. + * A new AccessibleAWTCanvas instance is created if necessary. + */ + // @ts-ignore + public getAccessibleContext(): any /*javax.accessibility.AccessibleContext*/; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.CardLayout.d.ts b/packages/types/dist/typings/jdk/java.awt.CardLayout.d.ts new file mode 100644 index 00000000..1fdfb5b6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.CardLayout.d.ts @@ -0,0 +1,145 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class CardLayout extends java.lang.Object { + /** + * Creates a new card layout with gaps of size zero. + */ + // @ts-ignore + constructor() + /** + * Creates a new card layout with the specified horizontal and + * vertical gaps. The horizontal gaps are placed at the left and + * right edges. The vertical gaps are placed at the top and bottom + * edges. + */ + // @ts-ignore + constructor(hgap: number, vgap: number) + /** + * Gets the horizontal gap between components. + */ + // @ts-ignore + public getHgap(): number; + /** + * Sets the horizontal gap between components. + */ + // @ts-ignore + public setHgap(hgap: number): void; + /** + * Gets the vertical gap between components. + */ + // @ts-ignore + public getVgap(): number; + /** + * Sets the vertical gap between components. + */ + // @ts-ignore + public setVgap(vgap: number): void; + /** + * Adds the specified component to this card layout's internal + * table of names. The object specified by constraints + * must be a string. The card layout stores this string as a key-value + * pair that can be used for random access to a particular card. + * By calling the show method, an application can + * display the component with the specified name. + */ + // @ts-ignore + public addLayoutComponent(comp: java.awt.Component, constraints: java.lang.Object): void; + // @ts-ignore + public addLayoutComponent(name: string, comp: java.awt.Component): void; + /** + * Removes the specified component from the layout. + * If the card was visible on top, the next card underneath it is shown. + */ + // @ts-ignore + public removeLayoutComponent(comp: java.awt.Component): void; + /** + * Determines the preferred size of the container argument using + * this card layout. + */ + // @ts-ignore + public preferredLayoutSize(parent: java.awt.Container): java.awt.Dimension; + /** + * Calculates the minimum size for the specified panel. + */ + // @ts-ignore + public minimumLayoutSize(parent: java.awt.Container): java.awt.Dimension; + /** + * Returns the maximum dimensions for this layout given the components + * in the specified target container. + */ + // @ts-ignore + public maximumLayoutSize(target: java.awt.Container): java.awt.Dimension; + /** + * Returns the alignment along the x axis. This specifies how + * the component would like to be aligned relative to other + * components. The value should be a number between 0 and 1 + * where 0 represents alignment along the origin, 1 is aligned + * the furthest away from the origin, 0.5 is centered, etc. + */ + // @ts-ignore + public getLayoutAlignmentX(parent: java.awt.Container): number; + /** + * Returns the alignment along the y axis. This specifies how + * the component would like to be aligned relative to other + * components. The value should be a number between 0 and 1 + * where 0 represents alignment along the origin, 1 is aligned + * the furthest away from the origin, 0.5 is centered, etc. + */ + // @ts-ignore + public getLayoutAlignmentY(parent: java.awt.Container): number; + /** + * Invalidates the layout, indicating that if the layout manager + * has cached information it should be discarded. + */ + // @ts-ignore + public invalidateLayout(target: java.awt.Container): void; + /** + * Lays out the specified container using this card layout. + *

+ * Each component in the parent container is reshaped + * to be the size of the container, minus space for surrounding + * insets, horizontal gaps, and vertical gaps. + */ + // @ts-ignore + public layoutContainer(parent: java.awt.Container): void; + /** + * Flips to the first card of the container. + */ + // @ts-ignore + public first(parent: java.awt.Container): void; + /** + * Flips to the next card of the specified container. If the + * currently visible card is the last one, this method flips to the + * first card in the layout. + */ + // @ts-ignore + public next(parent: java.awt.Container): void; + /** + * Flips to the previous card of the specified container. If the + * currently visible card is the first one, this method flips to the + * last card in the layout. + */ + // @ts-ignore + public previous(parent: java.awt.Container): void; + /** + * Flips to the last card of the container. + */ + // @ts-ignore + public last(parent: java.awt.Container): void; + /** + * Flips to the component that was added to this layout with the + * specified name, using addLayoutComponent. + * If no such component exists, then nothing happens. + */ + // @ts-ignore + public show(parent: java.awt.Container, name: string): void; + /** + * Returns a string representation of the state of this card layout. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Checkbox.AccessibleAWTCheckbox.d.ts b/packages/types/dist/typings/jdk/java.awt.Checkbox.AccessibleAWTCheckbox.d.ts new file mode 100644 index 00000000..6dad587a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Checkbox.AccessibleAWTCheckbox.d.ts @@ -0,0 +1,82 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace Checkbox { + // @ts-ignore + protected class AccessibleAWTCheckbox extends java.awt.Component.AccessibleAWTComponent { + // @ts-ignore + constructor() + /** + * Fire accessible property change events when the state of the + * toggle button changes. + */ + // @ts-ignore + public itemStateChanged(e: java.awt.event.ItemEvent): void; + /** + * Get the AccessibleAction associated with this object. In the + * implementation of the Java Accessibility API for this class, + * return this object, which is responsible for implementing the + * AccessibleAction interface on behalf of itself. + */ + // @ts-ignore + public getAccessibleAction(): any /*javax.accessibility.AccessibleAction*/; + /** + * Get the AccessibleValue associated with this object. In the + * implementation of the Java Accessibility API for this class, + * return this object, which is responsible for implementing the + * AccessibleValue interface on behalf of itself. + */ + // @ts-ignore + public getAccessibleValue(): any /*javax.accessibility.AccessibleValue*/; + /** + * Returns the number of Actions available in this object. + * If there is more than one, the first one is the "default" + * action. + */ + // @ts-ignore + public getAccessibleActionCount(): number; + /** + * Return a description of the specified action of the object. + */ + // @ts-ignore + public getAccessibleActionDescription(i: number): string; + /** + * Perform the specified Action on the object + */ + // @ts-ignore + public doAccessibleAction(i: number): boolean; + /** + * Get the value of this object as a Number. If the value has not been + * set, the return value will be null. + */ + // @ts-ignore + public getCurrentAccessibleValue(): java.lang.Number; + /** + * Set the value of this object as a Number. + */ + // @ts-ignore + public setCurrentAccessibleValue(n: java.lang.Number): boolean; + /** + * Get the minimum value of this object as a Number. + */ + // @ts-ignore + public getMinimumAccessibleValue(): java.lang.Number; + /** + * Get the maximum value of this object as a Number. + */ + // @ts-ignore + public getMaximumAccessibleValue(): java.lang.Number; + /** + * Get the role of this object. + */ + // @ts-ignore + public getAccessibleRole(): any /*javax.accessibility.AccessibleRole*/; + /** + * Get the state set of this object. + */ + // @ts-ignore + public getAccessibleStateSet(): any /*javax.accessibility.AccessibleStateSet*/; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Checkbox.d.ts b/packages/types/dist/typings/jdk/java.awt.Checkbox.d.ts new file mode 100644 index 00000000..29bb582f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Checkbox.d.ts @@ -0,0 +1,191 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class Checkbox extends java.awt.Component { + /** + * Creates a check box with an empty string for its label. + * The state of this check box is set to "off," and it is not + * part of any check box group. + */ + // @ts-ignore + constructor() + /** + * Creates a check box with the specified label. The state + * of this check box is set to "off," and it is not part of + * any check box group. + */ + // @ts-ignore + constructor(label: string) + /** + * Creates a check box with the specified label + * and sets the specified state. + * This check box is not part of any check box group. + */ + // @ts-ignore + constructor(label: string, state: boolean) + /** + * Constructs a Checkbox with the specified label, set to the + * specified state, and in the specified check box group. + */ + // @ts-ignore + constructor(label: string, state: boolean, group: java.awt.CheckboxGroup) + /** + * Creates a check box with the specified label, in the specified + * check box group, and set to the specified state. + */ + // @ts-ignore + constructor(label: string, group: java.awt.CheckboxGroup, state: boolean) + /** + * Creates the peer of the Checkbox. The peer allows you to change the + * look of the Checkbox without changing its functionality. + */ + // @ts-ignore + public addNotify(): void; + /** + * Gets the label of this check box. + */ + // @ts-ignore + public getLabel(): string; + /** + * Sets this check box's label to be the string argument. + */ + // @ts-ignore + public setLabel(label: string): void; + /** + * Determines whether this check box is in the "on" or "off" state. + * The boolean value true indicates the "on" state, + * and false indicates the "off" state. + */ + // @ts-ignore + public getState(): boolean; + /** + * Sets the state of this check box to the specified state. + * The boolean value true indicates the "on" state, + * and false indicates the "off" state. + *

Note that this method should be primarily used to + * initialize the state of the checkbox. Programmatically + * setting the state of the checkbox will not trigger + * an ItemEvent. The only way to trigger an + * ItemEvent is by user interaction. + */ + // @ts-ignore + public setState(state: boolean): void; + /** + * Returns an array (length 1) containing the checkbox + * label or null if the checkbox is not selected. + */ + // @ts-ignore + public getSelectedObjects(): java.lang.Object[]; + /** + * Determines this check box's group. + */ + // @ts-ignore + public getCheckboxGroup(): java.awt.CheckboxGroup; + /** + * Sets this check box's group to the specified check box group. + * If this check box is already in a different check box group, + * it is first taken out of that group. + *

+ * If the state of this check box is true and the new + * group already has a check box selected, this check box's state + * is changed to false. If the state of this check + * box is true and the new group has no check box + * selected, this check box becomes the selected checkbox for + * the new group and its state is true. + */ + // @ts-ignore + public setCheckboxGroup(g: java.awt.CheckboxGroup): void; + /** + * Adds the specified item listener to receive item events from + * this check box. Item events are sent to listeners in response + * to user input, but not in response to calls to setState(). + * If l is null, no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public addItemListener(l: java.awt.event.ItemListener): void; + /** + * Removes the specified item listener so that the item listener + * no longer receives item events from this check box. + * If l is null, no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public removeItemListener(l: java.awt.event.ItemListener): void; + /** + * Returns an array of all the item listeners + * registered on this checkbox. + */ + // @ts-ignore + public getItemListeners(): java.awt.event.ItemListener[]; + /** + * Returns an array of all the objects currently registered + * as FooListeners + * upon this Checkbox. + * FooListeners are registered using the + * addFooListener method. + *

+ * You can specify the listenerType argument + * with a class literal, such as + * FooListener.class. + * For example, you can query a + * Checkbox c + * for its item listeners with the following code: + *

ItemListener[] ils = (ItemListener[])(c.getListeners(ItemListener.class));
+ * If no such listeners exist, this method returns an empty array. + */ + // @ts-ignore + public getListeners(listenerType: java.lang.Class): java.util.EventListener[]; + /** + * Processes events on this check box. + * If the event is an instance of ItemEvent, + * this method invokes the processItemEvent method. + * Otherwise, it calls its superclass's processEvent method. + *

Note that if the event parameter is null + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processEvent(e: java.awt.AWTEvent): void; + /** + * Processes item events occurring on this check box by + * dispatching them to any registered + * ItemListener objects. + *

+ * This method is not called unless item events are + * enabled for this component. Item events are enabled + * when one of the following occurs: + *

    + *
  • An ItemListener object is registered + * via addItemListener. + *
  • Item events are enabled via enableEvents. + *
+ *

Note that if the event parameter is null + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processItemEvent(e: java.awt.event.ItemEvent): void; + /** + * Returns a string representing the state of this Checkbox. + * This method is intended to be used only for debugging purposes, and the + * content and format of the returned string may vary between + * implementations. The returned string may be empty but may not be + * null. + */ + // @ts-ignore + protected paramString(): string; + /** + * Gets the AccessibleContext associated with this Checkbox. + * For checkboxes, the AccessibleContext takes the form of an + * AccessibleAWTCheckbox. + * A new AccessibleAWTCheckbox is created if necessary. + */ + // @ts-ignore + public getAccessibleContext(): any /*javax.accessibility.AccessibleContext*/; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.CheckboxGroup.d.ts b/packages/types/dist/typings/jdk/java.awt.CheckboxGroup.d.ts new file mode 100644 index 00000000..5a837072 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.CheckboxGroup.d.ts @@ -0,0 +1,45 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class CheckboxGroup extends java.lang.Object { + /** + * Creates a new instance of CheckboxGroup. + */ + // @ts-ignore + constructor() + /** + * Gets the current choice from this check box group. + * The current choice is the check box in this + * group that is currently in the "on" state, + * or null if all check boxes in the + * group are off. + */ + // @ts-ignore + public getSelectedCheckbox(): java.awt.Checkbox; + // @ts-ignore + public getCurrent(): java.awt.Checkbox; + /** + * Sets the currently selected check box in this group + * to be the specified check box. + * This method sets the state of that check box to "on" and + * sets all other check boxes in the group to be off. + *

+ * If the check box argument is null, all check boxes + * in this check box group are deselected. If the check box argument + * belongs to a different check box group, this method does + * nothing. + */ + // @ts-ignore + public setSelectedCheckbox(box: java.awt.Checkbox): void; + // @ts-ignore + public setCurrent(box: java.awt.Checkbox): void; + /** + * Returns a string representation of this check box group, + * including the value of its current selection. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.CheckboxMenuItem.AccessibleAWTCheckboxMenuItem.d.ts b/packages/types/dist/typings/jdk/java.awt.CheckboxMenuItem.AccessibleAWTCheckboxMenuItem.d.ts new file mode 100644 index 00000000..a6cce6c5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.CheckboxMenuItem.AccessibleAWTCheckboxMenuItem.d.ts @@ -0,0 +1,71 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace CheckboxMenuItem { + // @ts-ignore + protected class AccessibleAWTCheckboxMenuItem extends java.awt.MenuItem.AccessibleAWTMenuItem { + // @ts-ignore + constructor() + /** + * Get the AccessibleAction associated with this object. In the + * implementation of the Java Accessibility API for this class, + * return this object, which is responsible for implementing the + * AccessibleAction interface on behalf of itself. + */ + // @ts-ignore + public getAccessibleAction(): any /*javax.accessibility.AccessibleAction*/; + /** + * Get the AccessibleValue associated with this object. In the + * implementation of the Java Accessibility API for this class, + * return this object, which is responsible for implementing the + * AccessibleValue interface on behalf of itself. + */ + // @ts-ignore + public getAccessibleValue(): any /*javax.accessibility.AccessibleValue*/; + /** + * Returns the number of Actions available in this object. + * If there is more than one, the first one is the "default" + * action. + */ + // @ts-ignore + public getAccessibleActionCount(): number; + /** + * Return a description of the specified action of the object. + */ + // @ts-ignore + public getAccessibleActionDescription(i: number): string; + /** + * Perform the specified Action on the object + */ + // @ts-ignore + public doAccessibleAction(i: number): boolean; + /** + * Get the value of this object as a Number. If the value has not been + * set, the return value will be null. + */ + // @ts-ignore + public getCurrentAccessibleValue(): java.lang.Number; + /** + * Set the value of this object as a Number. + */ + // @ts-ignore + public setCurrentAccessibleValue(n: java.lang.Number): boolean; + /** + * Get the minimum value of this object as a Number. + */ + // @ts-ignore + public getMinimumAccessibleValue(): java.lang.Number; + /** + * Get the maximum value of this object as a Number. + */ + // @ts-ignore + public getMaximumAccessibleValue(): java.lang.Number; + /** + * Get the role of this object. + */ + // @ts-ignore + public getAccessibleRole(): any /*javax.accessibility.AccessibleRole*/; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.CheckboxMenuItem.d.ts b/packages/types/dist/typings/jdk/java.awt.CheckboxMenuItem.d.ts new file mode 100644 index 00000000..01d64d44 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.CheckboxMenuItem.d.ts @@ -0,0 +1,151 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class CheckboxMenuItem extends java.awt.MenuItem { + /** + * Create a check box menu item with an empty label. + * The item's state is initially set to "off." + */ + // @ts-ignore + constructor() + /** + * Create a check box menu item with the specified label. + * The item's state is initially set to "off." + */ + // @ts-ignore + constructor(label: string) + /** + * Create a check box menu item with the specified label and state. + */ + // @ts-ignore + constructor(label: string, state: boolean) + /** + * Creates the peer of the checkbox item. This peer allows us to + * change the look of the checkbox item without changing its + * functionality. + * Most applications do not call this method directly. + */ + // @ts-ignore + public addNotify(): void; + /** + * Determines whether the state of this check box menu item + * is "on" or "off." + */ + // @ts-ignore + public getState(): boolean; + /** + * Sets this check box menu item to the specified state. + * The boolean value true indicates "on" while + * false indicates "off." + *

Note that this method should be primarily used to + * initialize the state of the check box menu item. + * Programmatically setting the state of the check box + * menu item will not trigger + * an ItemEvent. The only way to trigger an + * ItemEvent is by user interaction. + */ + // @ts-ignore + public setState(b: boolean): void; + /** + * Returns the an array (length 1) containing the checkbox menu item + * label or null if the checkbox is not selected. + */ + // @ts-ignore + public getSelectedObjects(): java.lang.Object[]; + /** + * Adds the specified item listener to receive item events from + * this check box menu item. Item events are sent in response to user + * actions, but not in response to calls to setState(). + * If l is null, no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public addItemListener(l: java.awt.event.ItemListener): void; + /** + * Removes the specified item listener so that it no longer receives + * item events from this check box menu item. + * If l is null, no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public removeItemListener(l: java.awt.event.ItemListener): void; + /** + * Returns an array of all the item listeners + * registered on this checkbox menuitem. + */ + // @ts-ignore + public getItemListeners(): java.awt.event.ItemListener[]; + /** + * Returns an array of all the objects currently registered + * as FooListeners + * upon this CheckboxMenuItem. + * FooListeners are registered using the + * addFooListener method. + *

+ * You can specify the listenerType argument + * with a class literal, such as + * FooListener.class. + * For example, you can query a + * CheckboxMenuItem c + * for its item listeners with the following code: + *

ItemListener[] ils = (ItemListener[])(c.getListeners(ItemListener.class));
+ * If no such listeners exist, this method returns an empty array. + */ + // @ts-ignore + public getListeners(listenerType: java.lang.Class): java.util.EventListener[]; + /** + * Processes events on this check box menu item. + * If the event is an instance of ItemEvent, + * this method invokes the processItemEvent method. + * If the event is not an item event, + * it invokes processEvent on the superclass. + *

+ * Check box menu items currently support only item events. + *

Note that if the event parameter is null + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processEvent(e: java.awt.AWTEvent): void; + /** + * Processes item events occurring on this check box menu item by + * dispatching them to any registered ItemListener objects. + *

+ * This method is not called unless item events are + * enabled for this menu item. Item events are enabled + * when one of the following occurs: + *

    + *
  • An ItemListener object is registered + * via addItemListener. + *
  • Item events are enabled via enableEvents. + *
+ *

Note that if the event parameter is null + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processItemEvent(e: java.awt.event.ItemEvent): void; + /** + * Returns a string representing the state of this + * CheckBoxMenuItem. This + * method is intended to be used only for debugging purposes, and the + * content and format of the returned string may vary between + * implementations. The returned string may be empty but may not be + * null. + */ + // @ts-ignore + public paramString(): string; + /** + * Gets the AccessibleContext associated with this CheckboxMenuItem. + * For checkbox menu items, the AccessibleContext takes the + * form of an AccessibleAWTCheckboxMenuItem. + * A new AccessibleAWTCheckboxMenuItem is created if necessary. + */ + // @ts-ignore + public getAccessibleContext(): any /*javax.accessibility.AccessibleContext*/; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Choice.AccessibleAWTChoice.d.ts b/packages/types/dist/typings/jdk/java.awt.Choice.AccessibleAWTChoice.d.ts new file mode 100644 index 00000000..1057ee94 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Choice.AccessibleAWTChoice.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace Choice { + // @ts-ignore + protected class AccessibleAWTChoice extends java.awt.Component.AccessibleAWTComponent { + // @ts-ignore + constructor() + /** + * Get the AccessibleAction associated with this object. In the + * implementation of the Java Accessibility API for this class, + * return this object, which is responsible for implementing the + * AccessibleAction interface on behalf of itself. + */ + // @ts-ignore + public getAccessibleAction(): any /*javax.accessibility.AccessibleAction*/; + /** + * Get the role of this object. + */ + // @ts-ignore + public getAccessibleRole(): any /*javax.accessibility.AccessibleRole*/; + /** + * Returns the number of accessible actions available in this object + * If there are more than one, the first one is considered the "default" + * action of the object. + */ + // @ts-ignore + public getAccessibleActionCount(): number; + /** + * Returns a description of the specified action of the object. + */ + // @ts-ignore + public getAccessibleActionDescription(i: number): string; + /** + * Perform the specified Action on the object + */ + // @ts-ignore + public doAccessibleAction(i: number): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Choice.d.ts b/packages/types/dist/typings/jdk/java.awt.Choice.d.ts new file mode 100644 index 00000000..3811dd4b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Choice.d.ts @@ -0,0 +1,228 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class Choice extends java.awt.Component { + /** + * Creates a new choice menu. The menu initially has no items in it. + *

+ * By default, the first item added to the choice menu becomes the + * selected item, until a different selection is made by the user + * by calling one of the select methods. + */ + // @ts-ignore + constructor() + /** + * Creates the Choice's peer. This peer allows us + * to change the look + * of the Choice without changing its functionality. + */ + // @ts-ignore + public addNotify(): void; + /** + * Returns the number of items in this Choice menu. + */ + // @ts-ignore + public getItemCount(): number; + // @ts-ignore + public countItems(): number; + /** + * Gets the string at the specified index in this + * Choice menu. + */ + // @ts-ignore + public getItem(index: number): string; + /** + * Adds an item to this Choice menu. + */ + // @ts-ignore + public add(item: string): void; + /** + * Obsolete as of Java 2 platform v1.1. Please use the + * add method instead. + *

+ * Adds an item to this Choice menu. + */ + // @ts-ignore + public addItem(item: string): void; + /** + * Inserts the item into this choice at the specified position. + * Existing items at an index greater than or equal to + * index are shifted up by one to accommodate + * the new item. If index is greater than or + * equal to the number of items in this choice, + * item is added to the end of this choice. + *

+ * If the item is the first one being added to the choice, + * then the item becomes selected. Otherwise, if the + * selected item was one of the items shifted, the first + * item in the choice becomes the selected item. If the + * selected item was no among those shifted, it remains + * the selected item. + */ + // @ts-ignore + public insert(item: string, index: number): void; + /** + * Removes the first occurrence of item + * from the Choice menu. If the item + * being removed is the currently selected item, + * then the first item in the choice becomes the + * selected item. Otherwise, the currently selected + * item remains selected (and the selected index is + * updated accordingly). + */ + // @ts-ignore + public remove(item: string): void; + /** + * Removes an item from the choice menu + * at the specified position. If the item + * being removed is the currently selected item, + * then the first item in the choice becomes the + * selected item. Otherwise, the currently selected + * item remains selected (and the selected index is + * updated accordingly). + */ + // @ts-ignore + public remove(position: number): void; + /** + * Removes all items from the choice menu. + */ + // @ts-ignore + public removeAll(): void; + /** + * Gets a representation of the current choice as a string. + */ + // @ts-ignore + public getSelectedItem(): string; + /** + * Returns an array (length 1) containing the currently selected + * item. If this choice has no items, returns null. + */ + // @ts-ignore + public getSelectedObjects(): java.lang.Object[]; + /** + * Returns the index of the currently selected item. + * If nothing is selected, returns -1. + */ + // @ts-ignore + public getSelectedIndex(): number; + /** + * Sets the selected item in this Choice menu to be the + * item at the specified position. + *

Note that this method should be primarily used to + * initially select an item in this component. + * Programmatically calling this method will not trigger + * an ItemEvent. The only way to trigger an + * ItemEvent is by user interaction. + */ + // @ts-ignore + public select(pos: number): void; + /** + * Sets the selected item in this Choice menu + * to be the item whose name is equal to the specified string. + * If more than one item matches (is equal to) the specified string, + * the one with the smallest index is selected. + *

Note that this method should be primarily used to + * initially select an item in this component. + * Programmatically calling this method will not trigger + * an ItemEvent. The only way to trigger an + * ItemEvent is by user interaction. + */ + // @ts-ignore + public select(str: string): void; + /** + * Adds the specified item listener to receive item events from + * this Choice menu. Item events are sent in response + * to user input, but not in response to calls to select. + * If l is null, no exception is thrown and no action + * is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public addItemListener(l: java.awt.event.ItemListener): void; + /** + * Removes the specified item listener so that it no longer receives + * item events from this Choice menu. + * If l is null, no exception is thrown and no + * action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public removeItemListener(l: java.awt.event.ItemListener): void; + /** + * Returns an array of all the item listeners + * registered on this choice. + */ + // @ts-ignore + public getItemListeners(): java.awt.event.ItemListener[]; + /** + * Returns an array of all the objects currently registered + * as FooListeners + * upon this Choice. + * FooListeners are registered using the + * addFooListener method. + *

+ * You can specify the listenerType argument + * with a class literal, such as + * FooListener.class. + * For example, you can query a + * Choice c + * for its item listeners with the following code: + *

ItemListener[] ils = (ItemListener[])(c.getListeners(ItemListener.class));
+ * If no such listeners exist, this method returns an empty array. + */ + // @ts-ignore + public getListeners(listenerType: java.lang.Class): java.util.EventListener[]; + /** + * Processes events on this choice. If the event is an + * instance of ItemEvent, it invokes the + * processItemEvent method. Otherwise, it calls its + * superclass's processEvent method. + *

Note that if the event parameter is null + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processEvent(e: java.awt.AWTEvent): void; + /** + * Processes item events occurring on this Choice + * menu by dispatching them to any registered + * ItemListener objects. + *

+ * This method is not called unless item events are + * enabled for this component. Item events are enabled + * when one of the following occurs: + *

    + *
  • An ItemListener object is registered + * via addItemListener. + *
  • Item events are enabled via enableEvents. + *
+ *

Note that if the event parameter is null + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processItemEvent(e: java.awt.event.ItemEvent): void; + /** + * Returns a string representing the state of this Choice + * menu. This method is intended to be used only for debugging purposes, + * and the content and format of the returned string may vary between + * implementations. The returned string may be empty but may not be + * null. + */ + // @ts-ignore + protected paramString(): string; + /** + * Gets the AccessibleContext associated with this + * Choice. For Choice components, + * the AccessibleContext takes the form of an + * AccessibleAWTChoice. A new AccessibleAWTChoice + * instance is created if necessary. + */ + // @ts-ignore + public getAccessibleContext(): any /*javax.accessibility.AccessibleContext*/; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Color.d.ts b/packages/types/dist/typings/jdk/java.awt.Color.d.ts new file mode 100644 index 00000000..fd681817 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Color.d.ts @@ -0,0 +1,392 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class Color extends java.lang.Object { + /** + * Creates an opaque sRGB color with the specified red, green, + * and blue values in the range (0 - 255). + * The actual color used in rendering depends + * on finding the best match given the color space + * available for a given output device. + * Alpha is defaulted to 255. + */ + // @ts-ignore + constructor(r: number, g: number, b: number) + /** + * Creates an sRGB color with the specified red, green, blue, and alpha + * values in the range (0 - 255). + */ + // @ts-ignore + constructor(r: number, g: number, b: number, a: number) + /** + * Creates an opaque sRGB color with the specified combined RGB value + * consisting of the red component in bits 16-23, the green component + * in bits 8-15, and the blue component in bits 0-7. The actual color + * used in rendering depends on finding the best match given the + * color space available for a particular output device. Alpha is + * defaulted to 255. + */ + // @ts-ignore + constructor(rgb: number) + /** + * Creates an sRGB color with the specified combined RGBA value consisting + * of the alpha component in bits 24-31, the red component in bits 16-23, + * the green component in bits 8-15, and the blue component in bits 0-7. + * If the hasalpha argument is false, alpha + * is defaulted to 255. + */ + // @ts-ignore + constructor(rgba: number, hasalpha: boolean) + /** + * Creates an opaque sRGB color with the specified red, green, and blue + * values in the range (0.0 - 1.0). Alpha is defaulted to 1.0. The + * actual color used in rendering depends on finding the best + * match given the color space available for a particular output + * device. + */ + // @ts-ignore + constructor(r: number, g: number, b: number) + /** + * Creates an sRGB color with the specified red, green, blue, and + * alpha values in the range (0.0 - 1.0). The actual color + * used in rendering depends on finding the best match given the + * color space available for a particular output device. + */ + // @ts-ignore + constructor(r: number, g: number, b: number, a: number) + /** + * Creates a color in the specified ColorSpace + * with the color components specified in the float + * array and the specified alpha. The number of components is + * determined by the type of the ColorSpace. For + * example, RGB requires 3 components, but CMYK requires 4 + * components. + */ + // @ts-ignore + constructor(cspace: java.awt.color.ColorSpace, components: number, alpha: number) + // @ts-ignore + public static white: java.awt.Color; + // @ts-ignore + public static WHITE: java.awt.Color; + // @ts-ignore + public static lightGray: java.awt.Color; + // @ts-ignore + public static LIGHT_GRAY: java.awt.Color; + // @ts-ignore + public static gray: java.awt.Color; + // @ts-ignore + public static GRAY: java.awt.Color; + // @ts-ignore + public static darkGray: java.awt.Color; + // @ts-ignore + public static DARK_GRAY: java.awt.Color; + // @ts-ignore + public static black: java.awt.Color; + // @ts-ignore + public static BLACK: java.awt.Color; + // @ts-ignore + public static red: java.awt.Color; + // @ts-ignore + public static RED: java.awt.Color; + // @ts-ignore + public static pink: java.awt.Color; + // @ts-ignore + public static PINK: java.awt.Color; + // @ts-ignore + public static orange: java.awt.Color; + // @ts-ignore + public static ORANGE: java.awt.Color; + // @ts-ignore + public static yellow: java.awt.Color; + // @ts-ignore + public static YELLOW: java.awt.Color; + // @ts-ignore + public static green: java.awt.Color; + // @ts-ignore + public static GREEN: java.awt.Color; + // @ts-ignore + public static magenta: java.awt.Color; + // @ts-ignore + public static MAGENTA: java.awt.Color; + // @ts-ignore + public static cyan: java.awt.Color; + // @ts-ignore + public static CYAN: java.awt.Color; + // @ts-ignore + public static blue: java.awt.Color; + // @ts-ignore + public static BLUE: java.awt.Color; + /** + * Returns the red component in the range 0-255 in the default sRGB + * space. + */ + // @ts-ignore + public getRed(): number; + /** + * Returns the green component in the range 0-255 in the default sRGB + * space. + */ + // @ts-ignore + public getGreen(): number; + /** + * Returns the blue component in the range 0-255 in the default sRGB + * space. + */ + // @ts-ignore + public getBlue(): number; + /** + * Returns the alpha component in the range 0-255. + */ + // @ts-ignore + public getAlpha(): number; + /** + * Returns the RGB value representing the color in the default sRGB + * {@link ColorModel}. + * (Bits 24-31 are alpha, 16-23 are red, 8-15 are green, 0-7 are + * blue). + */ + // @ts-ignore + public getRGB(): number; + /** + * Creates a new Color that is a brighter version of this + * Color. + *

+ * This method applies an arbitrary scale factor to each of the three RGB + * components of this Color to create a brighter version + * of this Color. + * The {@code alpha} value is preserved. + * Although brighter and + * darker are inverse operations, the results of a + * series of invocations of these two methods might be inconsistent + * because of rounding errors. + */ + // @ts-ignore + public brighter(): java.awt.Color; + /** + * Creates a new Color that is a darker version of this + * Color. + *

+ * This method applies an arbitrary scale factor to each of the three RGB + * components of this Color to create a darker version of + * this Color. + * The {@code alpha} value is preserved. + * Although brighter and + * darker are inverse operations, the results of a series + * of invocations of these two methods might be inconsistent because + * of rounding errors. + */ + // @ts-ignore + public darker(): java.awt.Color; + /** + * Computes the hash code for this Color. + */ + // @ts-ignore + public hashCode(): number; + /** + * Determines whether another object is equal to this + * Color. + *

+ * The result is true if and only if the argument is not + * null and is a Color object that has the same + * red, green, blue, and alpha values as this object. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a string representation of this Color. This + * method is intended to be used only for debugging purposes. The + * content and format of the returned string might vary between + * implementations. The returned string might be empty but cannot + * be null. + */ + // @ts-ignore + public toString(): string; + /** + * Converts a String to an integer and returns the + * specified opaque Color. This method handles string + * formats that are used to represent octal and hexadecimal numbers. + */ + // @ts-ignore + public static decode(nm: string): java.awt.Color; + /** + * Finds a color in the system properties. + *

+ * The argument is treated as the name of a system property to + * be obtained. The string value of this property is then interpreted + * as an integer which is then converted to a Color + * object. + *

+ * If the specified property is not found or could not be parsed as + * an integer then null is returned. + */ + // @ts-ignore + public static getColor(nm: string): java.awt.Color; + /** + * Finds a color in the system properties. + *

+ * The first argument is treated as the name of a system property to + * be obtained. The string value of this property is then interpreted + * as an integer which is then converted to a Color + * object. + *

+ * If the specified property is not found or cannot be parsed as + * an integer then the Color specified by the second + * argument is returned instead. + */ + // @ts-ignore + public static getColor(nm: string, v: java.awt.Color): java.awt.Color; + /** + * Finds a color in the system properties. + *

+ * The first argument is treated as the name of a system property to + * be obtained. The string value of this property is then interpreted + * as an integer which is then converted to a Color + * object. + *

+ * If the specified property is not found or could not be parsed as + * an integer then the integer value v is used instead, + * and is converted to a Color object. + */ + // @ts-ignore + public static getColor(nm: string, v: number): java.awt.Color; + /** + * Converts the components of a color, as specified by the HSB + * model, to an equivalent set of values for the default RGB model. + *

+ * The saturation and brightness components + * should be floating-point values between zero and one + * (numbers in the range 0.0-1.0). The hue component + * can be any floating-point number. The floor of this number is + * subtracted from it to create a fraction between 0 and 1. This + * fractional number is then multiplied by 360 to produce the hue + * angle in the HSB color model. + *

+ * The integer that is returned by HSBtoRGB encodes the + * value of a color in bits 0-23 of an integer value that is the same + * format used by the method {@link #getRGB() getRGB}. + * This integer can be supplied as an argument to the + * Color constructor that takes a single integer argument. + */ + // @ts-ignore + public static HSBtoRGB(hue: number, saturation: number, brightness: number): number; + /** + * Converts the components of a color, as specified by the default RGB + * model, to an equivalent set of values for hue, saturation, and + * brightness that are the three components of the HSB model. + *

+ * If the hsbvals argument is null, then a + * new array is allocated to return the result. Otherwise, the method + * returns the array hsbvals, with the values put into + * that array. + */ + // @ts-ignore + public static RGBtoHSB(r: number, g: number, b: number, hsbvals: number): number[]; + /** + * Creates a Color object based on the specified values + * for the HSB color model. + *

+ * The s and b components should be + * floating-point values between zero and one + * (numbers in the range 0.0-1.0). The h component + * can be any floating-point number. The floor of this number is + * subtracted from it to create a fraction between 0 and 1. This + * fractional number is then multiplied by 360 to produce the hue + * angle in the HSB color model. + */ + // @ts-ignore + public static getHSBColor(h: number, s: number, b: number): java.awt.Color; + /** + * Returns a float array containing the color and alpha + * components of the Color, as represented in the default + * sRGB color space. + * If compArray is null, an array of length + * 4 is created for the return value. Otherwise, + * compArray must have length 4 or greater, + * and it is filled in with the components and returned. + */ + // @ts-ignore + public getRGBComponents(compArray: number): number[]; + /** + * Returns a float array containing only the color + * components of the Color, in the default sRGB color + * space. If compArray is null, an array of + * length 3 is created for the return value. Otherwise, + * compArray must have length 3 or greater, and it is + * filled in with the components and returned. + */ + // @ts-ignore + public getRGBColorComponents(compArray: number): number[]; + /** + * Returns a float array containing the color and alpha + * components of the Color, in the + * ColorSpace of the Color. + * If compArray is null, an array with + * length equal to the number of components in the associated + * ColorSpace plus one is created for + * the return value. Otherwise, compArray must have at + * least this length and it is filled in with the components and + * returned. + */ + // @ts-ignore + public getComponents(compArray: number): number[]; + /** + * Returns a float array containing only the color + * components of the Color, in the + * ColorSpace of the Color. + * If compArray is null, an array with + * length equal to the number of components in the associated + * ColorSpace is created for + * the return value. Otherwise, compArray must have at + * least this length and it is filled in with the components and + * returned. + */ + // @ts-ignore + public getColorComponents(compArray: number): number[]; + /** + * Returns a float array containing the color and alpha + * components of the Color, in the + * ColorSpace specified by the cspace + * parameter. If compArray is null, an + * array with length equal to the number of components in + * cspace plus one is created for the return value. + * Otherwise, compArray must have at least this + * length, and it is filled in with the components and returned. + */ + // @ts-ignore + public getComponents(cspace: java.awt.color.ColorSpace, compArray: number): number[]; + /** + * Returns a float array containing only the color + * components of the Color in the + * ColorSpace specified by the cspace + * parameter. If compArray is null, an array + * with length equal to the number of components in + * cspace is created for the return value. Otherwise, + * compArray must have at least this length, and it is + * filled in with the components and returned. + */ + // @ts-ignore + public getColorComponents(cspace: java.awt.color.ColorSpace, compArray: number): number[]; + /** + * Returns the ColorSpace of this Color. + */ + // @ts-ignore + public getColorSpace(): java.awt.color.ColorSpace; + /** + * Creates and returns a {@link PaintContext} used to + * generate a solid color field pattern. + * See the {@link Paint#createContext specification} of the + * method in the {@link Paint} interface for information + * on null parameter handling. + */ + // @ts-ignore + public createContext(cm: java.awt.image.ColorModel, r: java.awt.Rectangle, r2d: java.awt.geom.Rectangle2D, xform: java.awt.geom.AffineTransform, hints: java.awt.RenderingHints): java.awt.PaintContext; + /** + * Returns the transparency mode for this Color. This is + * required to implement the Paint interface. + */ + // @ts-ignore + public getTransparency(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Component.AccessibleAWTComponent.AccessibleAWTComponentHandler.d.ts b/packages/types/dist/typings/jdk/java.awt.Component.AccessibleAWTComponent.AccessibleAWTComponentHandler.d.ts new file mode 100644 index 00000000..b61f6d7a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Component.AccessibleAWTComponent.AccessibleAWTComponentHandler.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace Component { + namespace AccessibleAWTComponent { + // @ts-ignore + protected class AccessibleAWTComponentHandler extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public componentHidden(e: java.awt.event.ComponentEvent): void; + // @ts-ignore + public componentShown(e: java.awt.event.ComponentEvent): void; + // @ts-ignore + public componentMoved(e: java.awt.event.ComponentEvent): void; + // @ts-ignore + public componentResized(e: java.awt.event.ComponentEvent): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Component.AccessibleAWTComponent.AccessibleAWTFocusHandler.d.ts b/packages/types/dist/typings/jdk/java.awt.Component.AccessibleAWTComponent.AccessibleAWTFocusHandler.d.ts new file mode 100644 index 00000000..3ff6681d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Component.AccessibleAWTComponent.AccessibleAWTFocusHandler.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace Component { + namespace AccessibleAWTComponent { + // @ts-ignore + protected class AccessibleAWTFocusHandler extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public focusGained(event: java.awt.event.FocusEvent): void; + // @ts-ignore + public focusLost(event: java.awt.event.FocusEvent): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Component.AccessibleAWTComponent.d.ts b/packages/types/dist/typings/jdk/java.awt.Component.AccessibleAWTComponent.d.ts new file mode 100644 index 00000000..180f930d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Component.AccessibleAWTComponent.d.ts @@ -0,0 +1,269 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace Component { + // @ts-ignore + protected abstract class AccessibleAWTComponent extends javax.accessibility.AccessibleContext { + /** + * Though the class is abstract, this should be called by + * all sub-classes. + */ + // @ts-ignore + constructor() + // @ts-ignore + protected accessibleAWTComponentHandler: java.awt.event.ComponentListener; + // @ts-ignore + protected accessibleAWTFocusHandler: java.awt.event.FocusListener; + /** + * Adds a PropertyChangeListener to the listener list. + */ + // @ts-ignore + public addPropertyChangeListener(listener: java.beans.PropertyChangeListener): void; + /** + * Remove a PropertyChangeListener from the listener list. + * This removes a PropertyChangeListener that was registered + * for all properties. + */ + // @ts-ignore + public removePropertyChangeListener(listener: java.beans.PropertyChangeListener): void; + /** + * Gets the accessible name of this object. This should almost never + * return java.awt.Component.getName(), + * as that generally isn't a localized name, + * and doesn't have meaning for the user. If the + * object is fundamentally a text object (e.g. a menu item), the + * accessible name should be the text of the object (e.g. "save"). + * If the object has a tooltip, the tooltip text may also be an + * appropriate String to return. + */ + // @ts-ignore + public getAccessibleName(): string; + /** + * Gets the accessible description of this object. This should be + * a concise, localized description of what this object is - what + * is its meaning to the user. If the object has a tooltip, the + * tooltip text may be an appropriate string to return, assuming + * it contains a concise description of the object (instead of just + * the name of the object - e.g. a "Save" icon on a toolbar that + * had "save" as the tooltip text shouldn't return the tooltip + * text as the description, but something like "Saves the current + * text document" instead). + */ + // @ts-ignore + public getAccessibleDescription(): string; + /** + * Gets the role of this object. + */ + // @ts-ignore + public getAccessibleRole(): any /*javax.accessibility.AccessibleRole*/; + /** + * Gets the state of this object. + */ + // @ts-ignore + public getAccessibleStateSet(): any /*javax.accessibility.AccessibleStateSet*/; + /** + * Gets the Accessible parent of this object. + * If the parent of this object implements Accessible, + * this method should simply return getParent. + */ + // @ts-ignore + public getAccessibleParent(): any /*javax.accessibility.Accessible*/; + /** + * Gets the index of this object in its accessible parent. + */ + // @ts-ignore + public getAccessibleIndexInParent(): number; + /** + * Returns the number of accessible children in the object. If all + * of the children of this object implement Accessible, + * then this method should return the number of children of this object. + */ + // @ts-ignore + public getAccessibleChildrenCount(): number; + /** + * Returns the nth Accessible child of the object. + */ + // @ts-ignore + public getAccessibleChild(i: number): any /*javax.accessibility.Accessible*/; + /** + * Returns the locale of this object. + */ + // @ts-ignore + public getLocale(): java.util.Locale; + /** + * Gets the AccessibleComponent associated + * with this object if one exists. + * Otherwise return null. + */ + // @ts-ignore + public getAccessibleComponent(): any /*javax.accessibility.AccessibleComponent*/; + /** + * Gets the background color of this object. + */ + // @ts-ignore + public getBackground(): java.awt.Color; + /** + * Sets the background color of this object. + * (For transparency, see isOpaque.) + */ + // @ts-ignore + public setBackground(c: java.awt.Color): void; + /** + * Gets the foreground color of this object. + */ + // @ts-ignore + public getForeground(): java.awt.Color; + /** + * Sets the foreground color of this object. + */ + // @ts-ignore + public setForeground(c: java.awt.Color): void; + /** + * Gets the Cursor of this object. + */ + // @ts-ignore + public getCursor(): java.awt.Cursor; + /** + * Sets the Cursor of this object. + *

+ * The method may have no visual effect if the Java platform + * implementation and/or the native system do not support + * changing the mouse cursor shape. + */ + // @ts-ignore + public setCursor(cursor: java.awt.Cursor): void; + /** + * Gets the Font of this object. + */ + // @ts-ignore + public getFont(): java.awt.Font; + /** + * Sets the Font of this object. + */ + // @ts-ignore + public setFont(f: java.awt.Font): void; + /** + * Gets the FontMetrics of this object. + */ + // @ts-ignore + public getFontMetrics(f: java.awt.Font): java.awt.FontMetrics; + /** + * Determines if the object is enabled. + */ + // @ts-ignore + public isEnabled(): boolean; + /** + * Sets the enabled state of the object. + */ + // @ts-ignore + public setEnabled(b: boolean): void; + /** + * Determines if the object is visible. Note: this means that the + * object intends to be visible; however, it may not in fact be + * showing on the screen because one of the objects that this object + * is contained by is not visible. To determine if an object is + * showing on the screen, use isShowing. + */ + // @ts-ignore + public isVisible(): boolean; + /** + * Sets the visible state of the object. + */ + // @ts-ignore + public setVisible(b: boolean): void; + /** + * Determines if the object is showing. This is determined by checking + * the visibility of the object and ancestors of the object. Note: + * this will return true even if the object is obscured by another + * (for example, it happens to be underneath a menu that was pulled + * down). + */ + // @ts-ignore + public isShowing(): boolean; + /** + * Checks whether the specified point is within this object's bounds, + * where the point's x and y coordinates are defined to be relative to + * the coordinate system of the object. + */ + // @ts-ignore + public contains(p: java.awt.Point): boolean; + /** + * Returns the location of the object on the screen. + */ + // @ts-ignore + public getLocationOnScreen(): java.awt.Point; + /** + * Gets the location of the object relative to the parent in the form + * of a point specifying the object's top-left corner in the screen's + * coordinate space. + */ + // @ts-ignore + public getLocation(): java.awt.Point; + /** + * Sets the location of the object relative to the parent. + */ + // @ts-ignore + public setLocation(p: java.awt.Point): void; + /** + * Gets the bounds of this object in the form of a Rectangle object. + * The bounds specify this object's width, height, and location + * relative to its parent. + */ + // @ts-ignore + public getBounds(): java.awt.Rectangle; + /** + * Sets the bounds of this object in the form of a + * Rectangle object. + * The bounds specify this object's width, height, and location + * relative to its parent. + */ + // @ts-ignore + public setBounds(r: java.awt.Rectangle): void; + /** + * Returns the size of this object in the form of a + * Dimension object. The height field of the + * Dimension object contains this objects's + * height, and the width field of the Dimension + * object contains this object's width. + */ + // @ts-ignore + public getSize(): java.awt.Dimension; + /** + * Resizes this object so that it has width and height. + */ + // @ts-ignore + public setSize(d: java.awt.Dimension): void; + /** + * Returns the Accessible child, + * if one exists, contained at the local + * coordinate Point. Otherwise returns + * null. + */ + // @ts-ignore + public getAccessibleAt(p: java.awt.Point): any /*javax.accessibility.Accessible*/; + /** + * Returns whether this object can accept focus or not. + */ + // @ts-ignore + public isFocusTraversable(): boolean; + /** + * Requests focus for this object. + */ + // @ts-ignore + public requestFocus(): void; + /** + * Adds the specified focus listener to receive focus events from this + * component. + */ + // @ts-ignore + public addFocusListener(l: java.awt.event.FocusListener): void; + /** + * Removes the specified focus listener so it no longer receives focus + * events from this component. + */ + // @ts-ignore + public removeFocusListener(l: java.awt.event.FocusListener): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Component.BaselineResizeBehavior.d.ts b/packages/types/dist/typings/jdk/java.awt.Component.BaselineResizeBehavior.d.ts new file mode 100644 index 00000000..3a09fb02 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Component.BaselineResizeBehavior.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace Component { + // @ts-ignore + class BaselineResizeBehavior extends java.lang.Enum { + // @ts-ignore + public static CONSTANT_ASCENT: java.awt.Component.BaselineResizeBehavior; + // @ts-ignore + public static CONSTANT_DESCENT: java.awt.Component.BaselineResizeBehavior; + // @ts-ignore + public static CENTER_OFFSET: java.awt.Component.BaselineResizeBehavior; + // @ts-ignore + public static OTHER: java.awt.Component.BaselineResizeBehavior; + // @ts-ignore + public static values(): java.awt.Component.BaselineResizeBehavior[]; + // @ts-ignore + public static valueOf(name: string): java.awt.Component.BaselineResizeBehavior; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Component.BltBufferStrategy.d.ts b/packages/types/dist/typings/jdk/java.awt.Component.BltBufferStrategy.d.ts new file mode 100644 index 00000000..8f047d9d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Component.BltBufferStrategy.d.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace Component { + // @ts-ignore + protected class BltBufferStrategy extends java.awt.image.BufferStrategy { + /** + * Creates a new blt buffer strategy around a component + */ + // @ts-ignore + constructor(numBuffers: number, caps: java.awt.BufferCapabilities) + // @ts-ignore + protected caps: java.awt.BufferCapabilities; + // @ts-ignore + protected backBuffers: java.awt.image.VolatileImage[]; + // @ts-ignore + protected validatedContents: boolean; + // @ts-ignore + protected width: number; + // @ts-ignore + protected height: number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public dispose(): void; + /** + * Creates the back buffers + */ + // @ts-ignore + protected createBackBuffers(numBuffers: number): void; + // @ts-ignore + public getCapabilities(): java.awt.BufferCapabilities; + // @ts-ignore + public getDrawGraphics(): java.awt.Graphics; + /** + * Makes the next available buffer visible. + */ + // @ts-ignore + public show(): void; + /** + * Restore the drawing buffer if it has been lost + */ + // @ts-ignore + protected revalidate(): void; + // @ts-ignore + public contentsLost(): boolean; + // @ts-ignore + public contentsRestored(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Component.FlipBufferStrategy.d.ts b/packages/types/dist/typings/jdk/java.awt.Component.FlipBufferStrategy.d.ts new file mode 100644 index 00000000..97ef8554 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Component.FlipBufferStrategy.d.ts @@ -0,0 +1,69 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace Component { + // @ts-ignore + protected class FlipBufferStrategy extends java.awt.image.BufferStrategy { + /** + * Creates a new flipping buffer strategy for this component. + * The component must be a Canvas or Window. + */ + // @ts-ignore + constructor(numBuffers: number, caps: java.awt.BufferCapabilities) + // @ts-ignore + protected numBuffers: number; + // @ts-ignore + protected caps: java.awt.BufferCapabilities; + // @ts-ignore + protected drawBuffer: java.awt.Image; + // @ts-ignore + protected drawVBuffer: java.awt.image.VolatileImage; + // @ts-ignore + protected validatedContents: boolean; + /** + * Creates one or more complex, flipping buffers with the given + * capabilities. + */ + // @ts-ignore + protected createBuffers(numBuffers: number, caps: java.awt.BufferCapabilities): void; + // @ts-ignore + protected getBackBuffer(): java.awt.Image; + /** + * Flipping moves the contents of the back buffer to the front buffer, + * either by copying or by moving the video pointer. + */ + // @ts-ignore + protected flip(flipAction: java.awt.BufferCapabilities.FlipContents): void; + /** + * Destroys the buffers created through this object + */ + // @ts-ignore + protected destroyBuffers(): void; + // @ts-ignore + public getCapabilities(): java.awt.BufferCapabilities; + // @ts-ignore + public getDrawGraphics(): java.awt.Graphics; + /** + * Restore the drawing buffer if it has been lost + */ + // @ts-ignore + protected revalidate(): void; + // @ts-ignore + public contentsLost(): boolean; + // @ts-ignore + public contentsRestored(): boolean; + /** + * Makes the next available buffer visible by either blitting or + * flipping. + */ + // @ts-ignore + public show(): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public dispose(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Component.d.ts b/packages/types/dist/typings/jdk/java.awt.Component.d.ts new file mode 100644 index 00000000..fde5ea7f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Component.d.ts @@ -0,0 +1,2203 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + abstract class Component extends java.lang.Object { + /** + * Constructs a new component. Class Component can be + * extended directly to create a lightweight component that does not + * utilize an opaque native window. A lightweight component must be + * hosted by a native container somewhere higher up in the component + * tree (for example, by a Frame object). + */ + // @ts-ignore + constructor() + // @ts-ignore + public static TOP_ALIGNMENT: number; + // @ts-ignore + public static CENTER_ALIGNMENT: number; + // @ts-ignore + public static BOTTOM_ALIGNMENT: number; + // @ts-ignore + public static LEFT_ALIGNMENT: number; + // @ts-ignore + public static RIGHT_ALIGNMENT: number; + // @ts-ignore + protected accessibleContext: any /*javax.accessibility.AccessibleContext*/; + /** + * Gets the name of the component. + */ + // @ts-ignore + public getName(): string; + /** + * Sets the name of the component to the specified string. + */ + // @ts-ignore + public setName(name: string): void; + /** + * Gets the parent of this component. + */ + // @ts-ignore + public getParent(): java.awt.Container; + // @ts-ignore + public getPeer(): java.awt.peer.ComponentPeer; + /** + * Associate a DropTarget with this component. + * The Component will receive drops only if it + * is enabled. + */ + // @ts-ignore + public setDropTarget(dt: java.awt.dnd.DropTarget): void; + /** + * Gets the DropTarget associated with this + * Component. + */ + // @ts-ignore + public getDropTarget(): java.awt.dnd.DropTarget; + /** + * Gets the GraphicsConfiguration associated with this + * Component. + * If the Component has not been assigned a specific + * GraphicsConfiguration, + * the GraphicsConfiguration of the + * Component object's top-level container is + * returned. + * If the Component has been created, but not yet added + * to a Container, this method returns null. + */ + // @ts-ignore + public getGraphicsConfiguration(): java.awt.GraphicsConfiguration; + /** + * Gets this component's locking object (the object that owns the thread + * synchronization monitor) for AWT component-tree and layout + * operations. + */ + // @ts-ignore + public getTreeLock(): java.lang.Object; + /** + * Gets the toolkit of this component. Note that + * the frame that contains a component controls which + * toolkit is used by that component. Therefore if the component + * is moved from one frame to another, the toolkit it uses may change. + */ + // @ts-ignore + public getToolkit(): java.awt.Toolkit; + /** + * Determines whether this component is valid. A component is valid + * when it is correctly sized and positioned within its parent + * container and all its children are also valid. + * In order to account for peers' size requirements, components are invalidated + * before they are first shown on the screen. By the time the parent container + * is fully realized, all its components will be valid. + */ + // @ts-ignore + public isValid(): boolean; + /** + * Determines whether this component is displayable. A component is + * displayable when it is connected to a native screen resource. + *

+ * A component is made displayable either when it is added to + * a displayable containment hierarchy or when its containment + * hierarchy is made displayable. + * A containment hierarchy is made displayable when its ancestor + * window is either packed or made visible. + *

+ * A component is made undisplayable either when it is removed from + * a displayable containment hierarchy or when its containment hierarchy + * is made undisplayable. A containment hierarchy is made + * undisplayable when its ancestor window is disposed. + */ + // @ts-ignore + public isDisplayable(): boolean; + /** + * Determines whether this component should be visible when its + * parent is visible. Components are + * initially visible, with the exception of top level components such + * as Frame objects. + */ + // @ts-ignore + public isVisible(): boolean; + /** + * Returns the position of the mouse pointer in this Component's + * coordinate space if the Component is directly under the mouse + * pointer, otherwise returns null. + * If the Component is not showing on the screen, this method + * returns null even if the mouse pointer is above the area + * where the Component would be displayed. + * If the Component is partially or fully obscured by other + * Components or native windows, this method returns a non-null + * value only if the mouse pointer is located above the unobscured part of the + * Component. + *

+ * For Containers it returns a non-null value if the mouse is + * above the Container itself or above any of its descendants. + * Use {@link Container#getMousePosition(boolean)} if you need to exclude children. + *

+ * Sometimes the exact mouse coordinates are not important, and the only thing + * that matters is whether a specific Component is under the mouse + * pointer. If the return value of this method is null, mouse + * pointer is not directly above the Component. + */ + // @ts-ignore + public getMousePosition(): java.awt.Point; + /** + * Determines whether this component is showing on screen. This means + * that the component must be visible, and it must be in a container + * that is visible and showing. + *

+ * Note: sometimes there is no way to detect whether the + * {@code Component} is actually visible to the user. This can happen when: + *

    + *
  • the component has been added to a visible {@code ScrollPane} but + * the {@code Component} is not currently in the scroll pane's view port. + *
  • the {@code Component} is obscured by another {@code Component} or + * {@code Container}. + *
+ */ + // @ts-ignore + public isShowing(): boolean; + /** + * Determines whether this component is enabled. An enabled component + * can respond to user input and generate events. Components are + * enabled initially by default. A component may be enabled or disabled by + * calling its setEnabled method. + */ + // @ts-ignore + public isEnabled(): boolean; + /** + * Enables or disables this component, depending on the value of the + * parameter b. An enabled component can respond to user + * input and generate events. Components are enabled initially by default. + *

Note: Disabling a lightweight component does not prevent it from + * receiving MouseEvents. + *

Note: Disabling a heavyweight container prevents all components + * in this container from receiving any input events. But disabling a + * lightweight container affects only this container. + */ + // @ts-ignore + public setEnabled(b: boolean): void; + // @ts-ignore + public enable(): void; + // @ts-ignore + public enable(b: boolean): void; + // @ts-ignore + public disable(): void; + /** + * Returns true if this component is painted to an offscreen image + * ("buffer") that's copied to the screen later. Component + * subclasses that support double buffering should override this + * method to return true if double buffering is enabled. + */ + // @ts-ignore + public isDoubleBuffered(): boolean; + /** + * Enables or disables input method support for this component. If input + * method support is enabled and the component also processes key events, + * incoming events are offered to + * the current input method and will only be processed by the component or + * dispatched to its listeners if the input method does not consume them. + * By default, input method support is enabled. + */ + // @ts-ignore + public enableInputMethods(enable: boolean): void; + /** + * Shows or hides this component depending on the value of parameter + * b. + *

+ * This method changes layout-related information, and therefore, + * invalidates the component hierarchy. + */ + // @ts-ignore + public setVisible(b: boolean): void; + // @ts-ignore + public show(): void; + // @ts-ignore + public show(b: boolean): void; + // @ts-ignore + public hide(): void; + /** + * Gets the foreground color of this component. + */ + // @ts-ignore + public getForeground(): java.awt.Color; + /** + * Sets the foreground color of this component. + */ + // @ts-ignore + public setForeground(c: java.awt.Color): void; + /** + * Returns whether the foreground color has been explicitly set for this + * Component. If this method returns false, this Component is + * inheriting its foreground color from an ancestor. + */ + // @ts-ignore + public isForegroundSet(): boolean; + /** + * Gets the background color of this component. + */ + // @ts-ignore + public getBackground(): java.awt.Color; + /** + * Sets the background color of this component. + *

+ * The background color affects each component differently and the + * parts of the component that are affected by the background color + * may differ between operating systems. + */ + // @ts-ignore + public setBackground(c: java.awt.Color): void; + /** + * Returns whether the background color has been explicitly set for this + * Component. If this method returns false, this Component is + * inheriting its background color from an ancestor. + */ + // @ts-ignore + public isBackgroundSet(): boolean; + /** + * Gets the font of this component. + */ + // @ts-ignore + public getFont(): java.awt.Font; + /** + * Sets the font of this component. + *

+ * This method changes layout-related information, and therefore, + * invalidates the component hierarchy. + */ + // @ts-ignore + public setFont(f: java.awt.Font): void; + /** + * Returns whether the font has been explicitly set for this Component. If + * this method returns false, this Component is inheriting its + * font from an ancestor. + */ + // @ts-ignore + public isFontSet(): boolean; + /** + * Gets the locale of this component. + */ + // @ts-ignore + public getLocale(): java.util.Locale; + /** + * Sets the locale of this component. This is a bound property. + *

+ * This method changes layout-related information, and therefore, + * invalidates the component hierarchy. + */ + // @ts-ignore + public setLocale(l: java.util.Locale): void; + /** + * Gets the instance of ColorModel used to display + * the component on the output device. + */ + // @ts-ignore + public getColorModel(): java.awt.image.ColorModel; + /** + * Gets the location of this component in the form of a + * point specifying the component's top-left corner. + * The location will be relative to the parent's coordinate space. + *

+ * Due to the asynchronous nature of native event handling, this + * method can return outdated values (for instance, after several calls + * of setLocation() in rapid succession). For this + * reason, the recommended method of obtaining a component's position is + * within java.awt.event.ComponentListener.componentMoved(), + * which is called after the operating system has finished moving the + * component. + *

+ */ + // @ts-ignore + public getLocation(): java.awt.Point; + /** + * Gets the location of this component in the form of a point + * specifying the component's top-left corner in the screen's + * coordinate space. + */ + // @ts-ignore + public getLocationOnScreen(): java.awt.Point; + // @ts-ignore + public location(): java.awt.Point; + /** + * Moves this component to a new location. The top-left corner of + * the new location is specified by the x and y + * parameters in the coordinate space of this component's parent. + *

+ * This method changes layout-related information, and therefore, + * invalidates the component hierarchy. + */ + // @ts-ignore + public setLocation(x: number, y: number): void; + // @ts-ignore + public move(x: number, y: number): void; + /** + * Moves this component to a new location. The top-left corner of + * the new location is specified by point p. Point + * p is given in the parent's coordinate space. + *

+ * This method changes layout-related information, and therefore, + * invalidates the component hierarchy. + */ + // @ts-ignore + public setLocation(p: java.awt.Point): void; + /** + * Returns the size of this component in the form of a + * Dimension object. The height + * field of the Dimension object contains + * this component's height, and the width + * field of the Dimension object contains + * this component's width. + */ + // @ts-ignore + public getSize(): java.awt.Dimension; + // @ts-ignore + public size(): java.awt.Dimension; + /** + * Resizes this component so that it has width width + * and height height. + *

+ * This method changes layout-related information, and therefore, + * invalidates the component hierarchy. + */ + // @ts-ignore + public setSize(width: number, height: number): void; + // @ts-ignore + public resize(width: number, height: number): void; + /** + * Resizes this component so that it has width d.width + * and height d.height. + *

+ * This method changes layout-related information, and therefore, + * invalidates the component hierarchy. + */ + // @ts-ignore + public setSize(d: java.awt.Dimension): void; + // @ts-ignore + public resize(d: java.awt.Dimension): void; + /** + * Gets the bounds of this component in the form of a + * Rectangle object. The bounds specify this + * component's width, height, and location relative to + * its parent. + */ + // @ts-ignore + public getBounds(): java.awt.Rectangle; + // @ts-ignore + public bounds(): java.awt.Rectangle; + /** + * Moves and resizes this component. The new location of the top-left + * corner is specified by x and y, and the + * new size is specified by width and height. + *

+ * This method changes layout-related information, and therefore, + * invalidates the component hierarchy. + */ + // @ts-ignore + public setBounds(x: number, y: number, width: number, height: number): void; + // @ts-ignore + public reshape(x: number, y: number, width: number, height: number): void; + /** + * Moves and resizes this component to conform to the new + * bounding rectangle r. This component's new + * position is specified by r.x and r.y, + * and its new size is specified by r.width and + * r.height + *

+ * This method changes layout-related information, and therefore, + * invalidates the component hierarchy. + */ + // @ts-ignore + public setBounds(r: java.awt.Rectangle): void; + /** + * Returns the current x coordinate of the components origin. + * This method is preferable to writing + * component.getBounds().x, + * or component.getLocation().x because it doesn't + * cause any heap allocations. + */ + // @ts-ignore + public getX(): number; + /** + * Returns the current y coordinate of the components origin. + * This method is preferable to writing + * component.getBounds().y, + * or component.getLocation().y because it + * doesn't cause any heap allocations. + */ + // @ts-ignore + public getY(): number; + /** + * Returns the current width of this component. + * This method is preferable to writing + * component.getBounds().width, + * or component.getSize().width because it + * doesn't cause any heap allocations. + */ + // @ts-ignore + public getWidth(): number; + /** + * Returns the current height of this component. + * This method is preferable to writing + * component.getBounds().height, + * or component.getSize().height because it + * doesn't cause any heap allocations. + */ + // @ts-ignore + public getHeight(): number; + /** + * Stores the bounds of this component into "return value" rv and + * return rv. If rv is null a new + * Rectangle is allocated. + * This version of getBounds is useful if the caller + * wants to avoid allocating a new Rectangle object + * on the heap. + */ + // @ts-ignore + public getBounds(rv: java.awt.Rectangle): java.awt.Rectangle; + /** + * Stores the width/height of this component into "return value" rv + * and return rv. If rv is null a new + * Dimension object is allocated. This version of + * getSize is useful if the caller wants to avoid + * allocating a new Dimension object on the heap. + */ + // @ts-ignore + public getSize(rv: java.awt.Dimension): java.awt.Dimension; + /** + * Stores the x,y origin of this component into "return value" rv + * and return rv. If rv is null a new + * Point is allocated. + * This version of getLocation is useful if the + * caller wants to avoid allocating a new Point + * object on the heap. + */ + // @ts-ignore + public getLocation(rv: java.awt.Point): java.awt.Point; + /** + * Returns true if this component is completely opaque, returns + * false by default. + *

+ * An opaque component paints every pixel within its + * rectangular region. A non-opaque component paints only some of + * its pixels, allowing the pixels underneath it to "show through". + * A component that does not fully paint its pixels therefore + * provides a degree of transparency. + *

+ * Subclasses that guarantee to always completely paint their + * contents should override this method and return true. + */ + // @ts-ignore + public isOpaque(): boolean; + /** + * A lightweight component doesn't have a native toolkit peer. + * Subclasses of Component and Container, + * other than the ones defined in this package like Button + * or Scrollbar, are lightweight. + * All of the Swing components are lightweights. + *

+ * This method will always return false if this component + * is not displayable because it is impossible to determine the + * weight of an undisplayable component. + */ + // @ts-ignore + public isLightweight(): boolean; + /** + * Sets the preferred size of this component to a constant + * value. Subsequent calls to getPreferredSize will always + * return this value. Setting the preferred size to null + * restores the default behavior. + */ + // @ts-ignore + public setPreferredSize(preferredSize: java.awt.Dimension): void; + /** + * Returns true if the preferred size has been set to a + * non-null value otherwise returns false. + */ + // @ts-ignore + public isPreferredSizeSet(): boolean; + /** + * Gets the preferred size of this component. + */ + // @ts-ignore + public getPreferredSize(): java.awt.Dimension; + // @ts-ignore + public preferredSize(): java.awt.Dimension; + /** + * Sets the minimum size of this component to a constant + * value. Subsequent calls to getMinimumSize will always + * return this value. Setting the minimum size to null + * restores the default behavior. + */ + // @ts-ignore + public setMinimumSize(minimumSize: java.awt.Dimension): void; + /** + * Returns whether or not setMinimumSize has been + * invoked with a non-null value. + */ + // @ts-ignore + public isMinimumSizeSet(): boolean; + /** + * Gets the minimum size of this component. + */ + // @ts-ignore + public getMinimumSize(): java.awt.Dimension; + // @ts-ignore + public minimumSize(): java.awt.Dimension; + /** + * Sets the maximum size of this component to a constant + * value. Subsequent calls to getMaximumSize will always + * return this value. Setting the maximum size to null + * restores the default behavior. + */ + // @ts-ignore + public setMaximumSize(maximumSize: java.awt.Dimension): void; + /** + * Returns true if the maximum size has been set to a non-null + * value otherwise returns false. + */ + // @ts-ignore + public isMaximumSizeSet(): boolean; + /** + * Gets the maximum size of this component. + */ + // @ts-ignore + public getMaximumSize(): java.awt.Dimension; + /** + * Returns the alignment along the x axis. This specifies how + * the component would like to be aligned relative to other + * components. The value should be a number between 0 and 1 + * where 0 represents alignment along the origin, 1 is aligned + * the furthest away from the origin, 0.5 is centered, etc. + */ + // @ts-ignore + public getAlignmentX(): number; + /** + * Returns the alignment along the y axis. This specifies how + * the component would like to be aligned relative to other + * components. The value should be a number between 0 and 1 + * where 0 represents alignment along the origin, 1 is aligned + * the furthest away from the origin, 0.5 is centered, etc. + */ + // @ts-ignore + public getAlignmentY(): number; + /** + * Returns the baseline. The baseline is measured from the top of + * the component. This method is primarily meant for + * LayoutManagers to align components along their + * baseline. A return value less than 0 indicates this component + * does not have a reasonable baseline and that + * LayoutManagers should not align this component on + * its baseline. + *

+ * The default implementation returns -1. Subclasses that support + * baseline should override appropriately. If a value >= 0 is + * returned, then the component has a valid baseline for any + * size >= the minimum size and getBaselineResizeBehavior + * can be used to determine how the baseline changes with size. + */ + // @ts-ignore + public getBaseline(width: number, height: number): number; + /** + * Returns an enum indicating how the baseline of the component + * changes as the size changes. This method is primarily meant for + * layout managers and GUI builders. + *

+ * The default implementation returns + * BaselineResizeBehavior.OTHER. Subclasses that have a + * baseline should override appropriately. Subclasses should + * never return null; if the baseline can not be + * calculated return BaselineResizeBehavior.OTHER. Callers + * should first ask for the baseline using + * getBaseline and if a value >= 0 is returned use + * this method. It is acceptable for this method to return a + * value other than BaselineResizeBehavior.OTHER even if + * getBaseline returns a value less than 0. + */ + // @ts-ignore + public getBaselineResizeBehavior(): java.awt.Component.BaselineResizeBehavior; + /** + * Prompts the layout manager to lay out this component. This is + * usually called when the component (more specifically, container) + * is validated. + */ + // @ts-ignore + public doLayout(): void; + // @ts-ignore + public layout(): void; + /** + * Validates this component. + *

+ * The meaning of the term validating is defined by the ancestors of + * this class. See {@link Container#validate} for more details. + */ + // @ts-ignore + public validate(): void; + /** + * Invalidates this component and its ancestors. + *

+ * By default, all the ancestors of the component up to the top-most + * container of the hierarchy are marked invalid. If the {@code + * java.awt.smartInvalidate} system property is set to {@code true}, + * invalidation stops on the nearest validate root of this component. + * Marking a container invalid indicates that the container needs to + * be laid out. + *

+ * This method is called automatically when any layout-related information + * changes (e.g. setting the bounds of the component, or adding the + * component to a container). + *

+ * This method might be called often, so it should work fast. + */ + // @ts-ignore + public invalidate(): void; + /** + * Revalidates the component hierarchy up to the nearest validate root. + *

+ * This method first invalidates the component hierarchy starting from this + * component up to the nearest validate root. Afterwards, the component + * hierarchy is validated starting from the nearest validate root. + *

+ * This is a convenience method supposed to help application developers + * avoid looking for validate roots manually. Basically, it's equivalent to + * first calling the {@link #invalidate()} method on this component, and + * then calling the {@link #validate()} method on the nearest validate + * root. + */ + // @ts-ignore + public revalidate(): void; + /** + * Creates a graphics context for this component. This method will + * return null if this component is currently not + * displayable. + */ + // @ts-ignore + public getGraphics(): java.awt.Graphics; + /** + * Gets the font metrics for the specified font. + * Warning: Since Font metrics are affected by the + * {@link java.awt.font.FontRenderContext FontRenderContext} and + * this method does not provide one, it can return only metrics for + * the default render context which may not match that used when + * rendering on the Component if {@link Graphics2D} functionality is being + * used. Instead metrics can be obtained at rendering time by calling + * {@link Graphics#getFontMetrics()} or text measurement APIs on the + * {@link Font Font} class. + */ + // @ts-ignore + public getFontMetrics(font: java.awt.Font): java.awt.FontMetrics; + /** + * Sets the cursor image to the specified cursor. This cursor + * image is displayed when the contains method for + * this component returns true for the current cursor location, and + * this Component is visible, displayable, and enabled. Setting the + * cursor of a Container causes that cursor to be displayed + * within all of the container's subcomponents, except for those + * that have a non-null cursor. + *

+ * The method may have no visual effect if the Java platform + * implementation and/or the native system do not support + * changing the mouse cursor shape. + */ + // @ts-ignore + public setCursor(cursor: java.awt.Cursor): void; + /** + * Gets the cursor set in the component. If the component does + * not have a cursor set, the cursor of its parent is returned. + * If no cursor is set in the entire hierarchy, + * Cursor.DEFAULT_CURSOR is returned. + */ + // @ts-ignore + public getCursor(): java.awt.Cursor; + /** + * Returns whether the cursor has been explicitly set for this Component. + * If this method returns false, this Component is inheriting + * its cursor from an ancestor. + */ + // @ts-ignore + public isCursorSet(): boolean; + /** + * Paints this component. + *

+ * This method is called when the contents of the component should + * be painted; such as when the component is first being shown or + * is damaged and in need of repair. The clip rectangle in the + * Graphics parameter is set to the area + * which needs to be painted. + * Subclasses of Component that override this + * method need not call super.paint(g). + *

+ * For performance reasons, Components with zero width + * or height aren't considered to need painting when they are first shown, + * and also aren't considered to need repair. + *

+ * Note: For more information on the paint mechanisms utilitized + * by AWT and Swing, including information on how to write the most + * efficient painting code, see + * Painting in AWT and Swing. + */ + // @ts-ignore + public paint(g: java.awt.Graphics): void; + /** + * Updates this component. + *

+ * If this component is not a lightweight component, the + * AWT calls the update method in response to + * a call to repaint. You can assume that + * the background is not cleared. + *

+ * The update method of Component + * calls this component's paint method to redraw + * this component. This method is commonly overridden by subclasses + * which need to do additional work in response to a call to + * repaint. + * Subclasses of Component that override this method should either + * call super.update(g), or call paint(g) + * directly from their update method. + *

+ * The origin of the graphics context, its + * (00) coordinate point, is the + * top-left corner of this component. The clipping region of the + * graphics context is the bounding rectangle of this component. + *

+ * Note: For more information on the paint mechanisms utilitized + * by AWT and Swing, including information on how to write the most + * efficient painting code, see + * Painting in AWT and Swing. + */ + // @ts-ignore + public update(g: java.awt.Graphics): void; + /** + * Paints this component and all of its subcomponents. + *

+ * The origin of the graphics context, its + * (00) coordinate point, is the + * top-left corner of this component. The clipping region of the + * graphics context is the bounding rectangle of this component. + */ + // @ts-ignore + public paintAll(g: java.awt.Graphics): void; + /** + * Repaints this component. + *

+ * If this component is a lightweight component, this method + * causes a call to this component's paint + * method as soon as possible. Otherwise, this method causes + * a call to this component's update method as soon + * as possible. + *

+ * Note: For more information on the paint mechanisms utilitized + * by AWT and Swing, including information on how to write the most + * efficient painting code, see + * Painting in AWT and Swing. + */ + // @ts-ignore + public repaint(): void; + /** + * Repaints the component. If this component is a lightweight + * component, this results in a call to paint + * within tm milliseconds. + *

+ * Note: For more information on the paint mechanisms utilitized + * by AWT and Swing, including information on how to write the most + * efficient painting code, see + * Painting in AWT and Swing. + */ + // @ts-ignore + public repaint(tm: number): void; + /** + * Repaints the specified rectangle of this component. + *

+ * If this component is a lightweight component, this method + * causes a call to this component's paint method + * as soon as possible. Otherwise, this method causes a call to + * this component's update method as soon as possible. + *

+ * Note: For more information on the paint mechanisms utilitized + * by AWT and Swing, including information on how to write the most + * efficient painting code, see + * Painting in AWT and Swing. + */ + // @ts-ignore + public repaint(x: number, y: number, width: number, height: number): void; + /** + * Repaints the specified rectangle of this component within + * tm milliseconds. + *

+ * If this component is a lightweight component, this method causes + * a call to this component's paint method. + * Otherwise, this method causes a call to this component's + * update method. + *

+ * Note: For more information on the paint mechanisms utilitized + * by AWT and Swing, including information on how to write the most + * efficient painting code, see + * Painting in AWT and Swing. + */ + // @ts-ignore + public repaint(tm: number, x: number, y: number, width: number, height: number): void; + /** + * Prints this component. Applications should override this method + * for components that must do special processing before being + * printed or should be printed differently than they are painted. + *

+ * The default implementation of this method calls the + * paint method. + *

+ * The origin of the graphics context, its + * (00) coordinate point, is the + * top-left corner of this component. The clipping region of the + * graphics context is the bounding rectangle of this component. + */ + // @ts-ignore + public print(g: java.awt.Graphics): void; + /** + * Prints this component and all of its subcomponents. + *

+ * The origin of the graphics context, its + * (00) coordinate point, is the + * top-left corner of this component. The clipping region of the + * graphics context is the bounding rectangle of this component. + */ + // @ts-ignore + public printAll(g: java.awt.Graphics): void; + /** + * Repaints the component when the image has changed. + * This imageUpdate method of an ImageObserver + * is called when more information about an + * image which had been previously requested using an asynchronous + * routine such as the drawImage method of + * Graphics becomes available. + * See the definition of imageUpdate for + * more information on this method and its arguments. + *

+ * The imageUpdate method of Component + * incrementally draws an image on the component as more of the bits + * of the image are available. + *

+ * If the system property awt.image.incrementaldraw + * is missing or has the value true, the image is + * incrementally drawn. If the system property has any other value, + * then the image is not drawn until it has been completely loaded. + *

+ * Also, if incremental drawing is in effect, the value of the + * system property awt.image.redrawrate is interpreted + * as an integer to give the maximum redraw rate, in milliseconds. If + * the system property is missing or cannot be interpreted as an + * integer, the redraw rate is once every 100ms. + *

+ * The interpretation of the x, y, + * width, and height arguments depends on + * the value of the infoflags argument. + */ + // @ts-ignore + public imageUpdate(img: java.awt.Image, infoflags: number, x: number, y: number, w: number, h: number): boolean; + /** + * Creates an image from the specified image producer. + */ + // @ts-ignore + public createImage(producer: java.awt.image.ImageProducer): java.awt.Image; + /** + * Creates an off-screen drawable image + * to be used for double buffering. + */ + // @ts-ignore + public createImage(width: number, height: number): java.awt.Image; + /** + * Creates a volatile off-screen drawable image + * to be used for double buffering. + */ + // @ts-ignore + public createVolatileImage(width: number, height: number): java.awt.image.VolatileImage; + /** + * Creates a volatile off-screen drawable image, with the given capabilities. + * The contents of this image may be lost at any time due + * to operating system issues, so the image must be managed + * via the VolatileImage interface. + */ + // @ts-ignore + public createVolatileImage(width: number, height: number, caps: java.awt.ImageCapabilities): java.awt.image.VolatileImage; + /** + * Prepares an image for rendering on this component. The image + * data is downloaded asynchronously in another thread and the + * appropriate screen representation of the image is generated. + */ + // @ts-ignore + public prepareImage(image: java.awt.Image, observer: java.awt.image.ImageObserver): boolean; + /** + * Prepares an image for rendering on this component at the + * specified width and height. + *

+ * The image data is downloaded asynchronously in another thread, + * and an appropriately scaled screen representation of the image is + * generated. + */ + // @ts-ignore + public prepareImage(image: java.awt.Image, width: number, height: number, observer: java.awt.image.ImageObserver): boolean; + /** + * Returns the status of the construction of a screen representation + * of the specified image. + *

+ * This method does not cause the image to begin loading. An + * application must use the prepareImage method + * to force the loading of an image. + *

+ * Information on the flags returned by this method can be found + * with the discussion of the ImageObserver interface. + */ + // @ts-ignore + public checkImage(image: java.awt.Image, observer: java.awt.image.ImageObserver): number; + /** + * Returns the status of the construction of a screen representation + * of the specified image. + *

+ * This method does not cause the image to begin loading. An + * application must use the prepareImage method + * to force the loading of an image. + *

+ * The checkImage method of Component + * calls its peer's checkImage method to calculate + * the flags. If this component does not yet have a peer, the + * component's toolkit's checkImage method is called + * instead. + *

+ * Information on the flags returned by this method can be found + * with the discussion of the ImageObserver interface. + */ + // @ts-ignore + public checkImage(image: java.awt.Image, width: number, height: number, observer: java.awt.image.ImageObserver): number; + /** + * Sets whether or not paint messages received from the operating system + * should be ignored. This does not affect paint events generated in + * software by the AWT, unless they are an immediate response to an + * OS-level paint message. + *

+ * This is useful, for example, if running under full-screen mode and + * better performance is desired, or if page-flipping is used as the + * buffer strategy. + */ + // @ts-ignore + public setIgnoreRepaint(ignoreRepaint: boolean): void; + // @ts-ignore + public getIgnoreRepaint(): boolean; + /** + * Checks whether this component "contains" the specified point, + * where x and y are defined to be + * relative to the coordinate system of this component. + */ + // @ts-ignore + public contains(x: number, y: number): boolean; + // @ts-ignore + public inside(x: number, y: number): boolean; + /** + * Checks whether this component "contains" the specified point, + * where the point's x and y coordinates are defined + * to be relative to the coordinate system of this component. + */ + // @ts-ignore + public contains(p: java.awt.Point): boolean; + /** + * Determines if this component or one of its immediate + * subcomponents contains the (xy) location, + * and if so, returns the containing component. This method only + * looks one level deep. If the point (xy) is + * inside a subcomponent that itself has subcomponents, it does not + * go looking down the subcomponent tree. + *

+ * The locate method of Component simply + * returns the component itself if the (xy) + * coordinate location is inside its bounding box, and null + * otherwise. + */ + // @ts-ignore + public getComponentAt(x: number, y: number): java.awt.Component; + // @ts-ignore + public locate(x: number, y: number): java.awt.Component; + /** + * Returns the component or subcomponent that contains the + * specified point. + */ + // @ts-ignore + public getComponentAt(p: java.awt.Point): java.awt.Component; + // @ts-ignore + public deliverEvent(e: java.awt.Event): void; + /** + * Dispatches an event to this component or one of its sub components. + * Calls processEvent before returning for 1.1-style + * events which have been enabled for the Component. + */ + // @ts-ignore + public dispatchEvent(e: java.awt.AWTEvent): void; + // @ts-ignore + public postEvent(e: java.awt.Event): boolean; + /** + * Adds the specified component listener to receive component events from + * this component. + * If listener l is null, + * no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public addComponentListener(l: java.awt.event.ComponentListener): void; + /** + * Removes the specified component listener so that it no longer + * receives component events from this component. This method performs + * no function, nor does it throw an exception, if the listener + * specified by the argument was not previously added to this component. + * If listener l is null, + * no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public removeComponentListener(l: java.awt.event.ComponentListener): void; + /** + * Returns an array of all the component listeners + * registered on this component. + */ + // @ts-ignore + public getComponentListeners(): java.awt.event.ComponentListener[]; + /** + * Adds the specified focus listener to receive focus events from + * this component when this component gains input focus. + * If listener l is null, + * no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public addFocusListener(l: java.awt.event.FocusListener): void; + /** + * Removes the specified focus listener so that it no longer + * receives focus events from this component. This method performs + * no function, nor does it throw an exception, if the listener + * specified by the argument was not previously added to this component. + * If listener l is null, + * no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public removeFocusListener(l: java.awt.event.FocusListener): void; + /** + * Returns an array of all the focus listeners + * registered on this component. + */ + // @ts-ignore + public getFocusListeners(): java.awt.event.FocusListener[]; + /** + * Adds the specified hierarchy listener to receive hierarchy changed + * events from this component when the hierarchy to which this container + * belongs changes. + * If listener l is null, + * no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public addHierarchyListener(l: java.awt.event.HierarchyListener): void; + /** + * Removes the specified hierarchy listener so that it no longer + * receives hierarchy changed events from this component. This method + * performs no function, nor does it throw an exception, if the listener + * specified by the argument was not previously added to this component. + * If listener l is null, + * no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public removeHierarchyListener(l: java.awt.event.HierarchyListener): void; + /** + * Returns an array of all the hierarchy listeners + * registered on this component. + */ + // @ts-ignore + public getHierarchyListeners(): java.awt.event.HierarchyListener[]; + /** + * Adds the specified hierarchy bounds listener to receive hierarchy + * bounds events from this component when the hierarchy to which this + * container belongs changes. + * If listener l is null, + * no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public addHierarchyBoundsListener(l: java.awt.event.HierarchyBoundsListener): void; + /** + * Removes the specified hierarchy bounds listener so that it no longer + * receives hierarchy bounds events from this component. This method + * performs no function, nor does it throw an exception, if the listener + * specified by the argument was not previously added to this component. + * If listener l is null, + * no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public removeHierarchyBoundsListener(l: java.awt.event.HierarchyBoundsListener): void; + /** + * Returns an array of all the hierarchy bounds listeners + * registered on this component. + */ + // @ts-ignore + public getHierarchyBoundsListeners(): java.awt.event.HierarchyBoundsListener[]; + /** + * Adds the specified key listener to receive key events from + * this component. + * If l is null, no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public addKeyListener(l: java.awt.event.KeyListener): void; + /** + * Removes the specified key listener so that it no longer + * receives key events from this component. This method performs + * no function, nor does it throw an exception, if the listener + * specified by the argument was not previously added to this component. + * If listener l is null, + * no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public removeKeyListener(l: java.awt.event.KeyListener): void; + /** + * Returns an array of all the key listeners + * registered on this component. + */ + // @ts-ignore + public getKeyListeners(): java.awt.event.KeyListener[]; + /** + * Adds the specified mouse listener to receive mouse events from + * this component. + * If listener l is null, + * no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public addMouseListener(l: java.awt.event.MouseListener): void; + /** + * Removes the specified mouse listener so that it no longer + * receives mouse events from this component. This method performs + * no function, nor does it throw an exception, if the listener + * specified by the argument was not previously added to this component. + * If listener l is null, + * no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public removeMouseListener(l: java.awt.event.MouseListener): void; + /** + * Returns an array of all the mouse listeners + * registered on this component. + */ + // @ts-ignore + public getMouseListeners(): java.awt.event.MouseListener[]; + /** + * Adds the specified mouse motion listener to receive mouse motion + * events from this component. + * If listener l is null, + * no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public addMouseMotionListener(l: java.awt.event.MouseMotionListener): void; + /** + * Removes the specified mouse motion listener so that it no longer + * receives mouse motion events from this component. This method performs + * no function, nor does it throw an exception, if the listener + * specified by the argument was not previously added to this component. + * If listener l is null, + * no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public removeMouseMotionListener(l: java.awt.event.MouseMotionListener): void; + /** + * Returns an array of all the mouse motion listeners + * registered on this component. + */ + // @ts-ignore + public getMouseMotionListeners(): java.awt.event.MouseMotionListener[]; + /** + * Adds the specified mouse wheel listener to receive mouse wheel events + * from this component. Containers also receive mouse wheel events from + * sub-components. + *

+ * For information on how mouse wheel events are dispatched, see + * the class description for {@link MouseWheelEvent}. + *

+ * If l is null, no exception is thrown and no + * action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public addMouseWheelListener(l: java.awt.event.MouseWheelListener): void; + /** + * Removes the specified mouse wheel listener so that it no longer + * receives mouse wheel events from this component. This method performs + * no function, nor does it throw an exception, if the listener + * specified by the argument was not previously added to this component. + * If l is null, no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public removeMouseWheelListener(l: java.awt.event.MouseWheelListener): void; + /** + * Returns an array of all the mouse wheel listeners + * registered on this component. + */ + // @ts-ignore + public getMouseWheelListeners(): java.awt.event.MouseWheelListener[]; + /** + * Adds the specified input method listener to receive + * input method events from this component. A component will + * only receive input method events from input methods + * if it also overrides getInputMethodRequests to return an + * InputMethodRequests instance. + * If listener l is null, + * no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public addInputMethodListener(l: java.awt.event.InputMethodListener): void; + /** + * Removes the specified input method listener so that it no longer + * receives input method events from this component. This method performs + * no function, nor does it throw an exception, if the listener + * specified by the argument was not previously added to this component. + * If listener l is null, + * no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public removeInputMethodListener(l: java.awt.event.InputMethodListener): void; + /** + * Returns an array of all the input method listeners + * registered on this component. + */ + // @ts-ignore + public getInputMethodListeners(): java.awt.event.InputMethodListener[]; + /** + * Returns an array of all the objects currently registered + * as FooListeners + * upon this Component. + * FooListeners are registered using the + * addFooListener method. + *

+ * You can specify the listenerType argument + * with a class literal, such as + * FooListener.class. + * For example, you can query a + * Component c + * for its mouse listeners with the following code: + *

MouseListener[] mls = (MouseListener[])(c.getListeners(MouseListener.class));
+ * If no such listeners exist, this method returns an empty array. + */ + // @ts-ignore + public getListeners(listenerType: java.lang.Class): java.util.EventListener[]; + /** + * Gets the input method request handler which supports + * requests from input methods for this component. A component + * that supports on-the-spot text input must override this + * method to return an InputMethodRequests instance. + * At the same time, it also has to handle input method events. + */ + // @ts-ignore + public getInputMethodRequests(): java.awt.im.InputMethodRequests; + /** + * Gets the input context used by this component for handling + * the communication with input methods when text is entered + * in this component. By default, the input context used for + * the parent component is returned. Components may + * override this to return a private input context. + */ + // @ts-ignore + public getInputContext(): java.awt.im.InputContext; + /** + * Enables the events defined by the specified event mask parameter + * to be delivered to this component. + *

+ * Event types are automatically enabled when a listener for + * that event type is added to the component. + *

+ * This method only needs to be invoked by subclasses of + * Component which desire to have the specified event + * types delivered to processEvent regardless of whether + * or not a listener is registered. + */ + // @ts-ignore + protected enableEvents(eventsToEnable: number): void; + /** + * Disables the events defined by the specified event mask parameter + * from being delivered to this component. + */ + // @ts-ignore + protected disableEvents(eventsToDisable: number): void; + /** + * Potentially coalesce an event being posted with an existing + * event. This method is called by EventQueue.postEvent + * if an event with the same ID as the event to be posted is found in + * the queue (both events must have this component as their source). + * This method either returns a coalesced event which replaces + * the existing event (and the new event is then discarded), or + * null to indicate that no combining should be done + * (add the second event to the end of the queue). Either event + * parameter may be modified and returned, as the other one is discarded + * unless null is returned. + *

+ * This implementation of coalesceEvents coalesces + * two event types: mouse move (and drag) events, + * and paint (and update) events. + * For mouse move events the last event is always returned, causing + * intermediate moves to be discarded. For paint events, the new + * event is coalesced into a complex RepaintArea in the peer. + * The new AWTEvent is always returned. + */ + // @ts-ignore + protected coalesceEvents(existingEvent: java.awt.AWTEvent, newEvent: java.awt.AWTEvent): java.awt.AWTEvent; + /** + * Processes events occurring on this component. By default this + * method calls the appropriate + * process<event type>Event + * method for the given class of event. + *

Note that if the event parameter is null + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processEvent(e: java.awt.AWTEvent): void; + /** + * Processes component events occurring on this component by + * dispatching them to any registered + * ComponentListener objects. + *

+ * This method is not called unless component events are + * enabled for this component. Component events are enabled + * when one of the following occurs: + *

    + *
  • A ComponentListener object is registered + * via addComponentListener. + *
  • Component events are enabled via enableEvents. + *
+ *

Note that if the event parameter is null + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processComponentEvent(e: java.awt.event.ComponentEvent): void; + /** + * Processes focus events occurring on this component by + * dispatching them to any registered + * FocusListener objects. + *

+ * This method is not called unless focus events are + * enabled for this component. Focus events are enabled + * when one of the following occurs: + *

    + *
  • A FocusListener object is registered + * via addFocusListener. + *
  • Focus events are enabled via enableEvents. + *
+ *

+ * If focus events are enabled for a Component, + * the current KeyboardFocusManager determines + * whether or not a focus event should be dispatched to + * registered FocusListener objects. If the + * events are to be dispatched, the KeyboardFocusManager + * calls the Component's dispatchEvent + * method, which results in a call to the Component's + * processFocusEvent method. + *

+ * If focus events are enabled for a Component, calling + * the Component's dispatchEvent method + * with a FocusEvent as the argument will result in a + * call to the Component's processFocusEvent + * method regardless of the current KeyboardFocusManager. + *

Note that if the event parameter is null + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processFocusEvent(e: java.awt.event.FocusEvent): void; + /** + * Processes key events occurring on this component by + * dispatching them to any registered + * KeyListener objects. + *

+ * This method is not called unless key events are + * enabled for this component. Key events are enabled + * when one of the following occurs: + *

    + *
  • A KeyListener object is registered + * via addKeyListener. + *
  • Key events are enabled via enableEvents. + *
+ *

+ * If key events are enabled for a Component, + * the current KeyboardFocusManager determines + * whether or not a key event should be dispatched to + * registered KeyListener objects. The + * DefaultKeyboardFocusManager will not dispatch + * key events to a Component that is not the focus + * owner or is not showing. + *

+ * As of J2SE 1.4, KeyEvents are redirected to + * the focus owner. Please see the + * Focus Specification + * for further information. + *

+ * Calling a Component's dispatchEvent + * method with a KeyEvent as the argument will + * result in a call to the Component's + * processKeyEvent method regardless of the + * current KeyboardFocusManager as long as the + * component is showing, focused, and enabled, and key events + * are enabled on it. + *

If the event parameter is null + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processKeyEvent(e: java.awt.event.KeyEvent): void; + /** + * Processes mouse events occurring on this component by + * dispatching them to any registered + * MouseListener objects. + *

+ * This method is not called unless mouse events are + * enabled for this component. Mouse events are enabled + * when one of the following occurs: + *

    + *
  • A MouseListener object is registered + * via addMouseListener. + *
  • Mouse events are enabled via enableEvents. + *
+ *

Note that if the event parameter is null + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processMouseEvent(e: java.awt.event.MouseEvent): void; + /** + * Processes mouse motion events occurring on this component by + * dispatching them to any registered + * MouseMotionListener objects. + *

+ * This method is not called unless mouse motion events are + * enabled for this component. Mouse motion events are enabled + * when one of the following occurs: + *

    + *
  • A MouseMotionListener object is registered + * via addMouseMotionListener. + *
  • Mouse motion events are enabled via enableEvents. + *
+ *

Note that if the event parameter is null + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processMouseMotionEvent(e: java.awt.event.MouseEvent): void; + /** + * Processes mouse wheel events occurring on this component by + * dispatching them to any registered + * MouseWheelListener objects. + *

+ * This method is not called unless mouse wheel events are + * enabled for this component. Mouse wheel events are enabled + * when one of the following occurs: + *

    + *
  • A MouseWheelListener object is registered + * via addMouseWheelListener. + *
  • Mouse wheel events are enabled via enableEvents. + *
+ *

+ * For information on how mouse wheel events are dispatched, see + * the class description for {@link MouseWheelEvent}. + *

+ * Note that if the event parameter is null + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processMouseWheelEvent(e: java.awt.event.MouseWheelEvent): void; + /** + * Processes input method events occurring on this component by + * dispatching them to any registered + * InputMethodListener objects. + *

+ * This method is not called unless input method events + * are enabled for this component. Input method events are enabled + * when one of the following occurs: + *

    + *
  • An InputMethodListener object is registered + * via addInputMethodListener. + *
  • Input method events are enabled via enableEvents. + *
+ *

Note that if the event parameter is null + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processInputMethodEvent(e: java.awt.event.InputMethodEvent): void; + /** + * Processes hierarchy events occurring on this component by + * dispatching them to any registered + * HierarchyListener objects. + *

+ * This method is not called unless hierarchy events + * are enabled for this component. Hierarchy events are enabled + * when one of the following occurs: + *

    + *
  • An HierarchyListener object is registered + * via addHierarchyListener. + *
  • Hierarchy events are enabled via enableEvents. + *
+ *

Note that if the event parameter is null + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processHierarchyEvent(e: java.awt.event.HierarchyEvent): void; + /** + * Processes hierarchy bounds events occurring on this component by + * dispatching them to any registered + * HierarchyBoundsListener objects. + *

+ * This method is not called unless hierarchy bounds events + * are enabled for this component. Hierarchy bounds events are enabled + * when one of the following occurs: + *

    + *
  • An HierarchyBoundsListener object is registered + * via addHierarchyBoundsListener. + *
  • Hierarchy bounds events are enabled via enableEvents. + *
+ *

Note that if the event parameter is null + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processHierarchyBoundsEvent(e: java.awt.event.HierarchyEvent): void; + // @ts-ignore + public handleEvent(evt: java.awt.Event): boolean; + // @ts-ignore + public mouseDown(evt: java.awt.Event, x: number, y: number): boolean; + // @ts-ignore + public mouseDrag(evt: java.awt.Event, x: number, y: number): boolean; + // @ts-ignore + public mouseUp(evt: java.awt.Event, x: number, y: number): boolean; + // @ts-ignore + public mouseMove(evt: java.awt.Event, x: number, y: number): boolean; + // @ts-ignore + public mouseEnter(evt: java.awt.Event, x: number, y: number): boolean; + // @ts-ignore + public mouseExit(evt: java.awt.Event, x: number, y: number): boolean; + // @ts-ignore + public keyDown(evt: java.awt.Event, key: number): boolean; + // @ts-ignore + public keyUp(evt: java.awt.Event, key: number): boolean; + // @ts-ignore + public action(evt: java.awt.Event, what: java.lang.Object): boolean; + /** + * Makes this Component displayable by connecting it to a + * native screen resource. + * This method is called internally by the toolkit and should + * not be called directly by programs. + *

+ * This method changes layout-related information, and therefore, + * invalidates the component hierarchy. + */ + // @ts-ignore + public addNotify(): void; + /** + * Makes this Component undisplayable by destroying it native + * screen resource. + *

+ * This method is called by the toolkit internally and should + * not be called directly by programs. Code overriding + * this method should call super.removeNotify as + * the first line of the overriding method. + */ + // @ts-ignore + public removeNotify(): void; + // @ts-ignore + public gotFocus(evt: java.awt.Event, what: java.lang.Object): boolean; + // @ts-ignore + public lostFocus(evt: java.awt.Event, what: java.lang.Object): boolean; + /** + * Returns whether this Component can become the focus + * owner. + */ + // @ts-ignore + public isFocusTraversable(): boolean; + /** + * Returns whether this Component can be focused. + */ + // @ts-ignore + public isFocusable(): boolean; + /** + * Sets the focusable state of this Component to the specified value. This + * value overrides the Component's default focusability. + */ + // @ts-ignore + public setFocusable(focusable: boolean): void; + /** + * Sets the focus traversal keys for a given traversal operation for this + * Component. + *

+ * The default values for a Component's focus traversal keys are + * implementation-dependent. Sun recommends that all implementations for a + * particular native platform use the same default values. The + * recommendations for Windows and Unix are listed below. These + * recommendations are used in the Sun AWT implementations. + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
IdentifierMeaningDefault
KeyboardFocusManager.FORWARD_TRAVERSAL_KEYSNormal forward keyboard traversalTAB on KEY_PRESSED, CTRL-TAB on KEY_PRESSED
KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYSNormal reverse keyboard traversalSHIFT-TAB on KEY_PRESSED, CTRL-SHIFT-TAB on KEY_PRESSED
KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYSGo up one focus traversal cyclenone
+ * To disable a traversal key, use an empty Set; Collections.EMPTY_SET is + * recommended. + *

+ * Using the AWTKeyStroke API, client code can specify on which of two + * specific KeyEvents, KEY_PRESSED or KEY_RELEASED, the focus traversal + * operation will occur. Regardless of which KeyEvent is specified, + * however, all KeyEvents related to the focus traversal key, including the + * associated KEY_TYPED event, will be consumed, and will not be dispatched + * to any Component. It is a runtime error to specify a KEY_TYPED event as + * mapping to a focus traversal operation, or to map the same event to + * multiple default focus traversal operations. + *

+ * If a value of null is specified for the Set, this Component inherits the + * Set from its parent. If all ancestors of this Component have null + * specified for the Set, then the current KeyboardFocusManager's default + * Set is used. + *

+ * This method may throw a {@code ClassCastException} if any {@code Object} + * in {@code keystrokes} is not an {@code AWTKeyStroke}. + */ + // @ts-ignore + public setFocusTraversalKeys(id: number, keystrokes: java.util.Set): void; + /** + * Returns the Set of focus traversal keys for a given traversal operation + * for this Component. (See + * setFocusTraversalKeys for a full description of each key.) + *

+ * If a Set of traversal keys has not been explicitly defined for this + * Component, then this Component's parent's Set is returned. If no Set + * has been explicitly defined for any of this Component's ancestors, then + * the current KeyboardFocusManager's default Set is returned. + */ + // @ts-ignore + public getFocusTraversalKeys(id: number): java.util.Set; + /** + * Returns whether the Set of focus traversal keys for the given focus + * traversal operation has been explicitly defined for this Component. If + * this method returns false, this Component is inheriting the + * Set from an ancestor, or from the current KeyboardFocusManager. + */ + // @ts-ignore + public areFocusTraversalKeysSet(id: number): boolean; + /** + * Sets whether focus traversal keys are enabled for this Component. + * Components for which focus traversal keys are disabled receive key + * events for focus traversal keys. Components for which focus traversal + * keys are enabled do not see these events; instead, the events are + * automatically converted to traversal operations. + */ + // @ts-ignore + public setFocusTraversalKeysEnabled(focusTraversalKeysEnabled: boolean): void; + /** + * Returns whether focus traversal keys are enabled for this Component. + * Components for which focus traversal keys are disabled receive key + * events for focus traversal keys. Components for which focus traversal + * keys are enabled do not see these events; instead, the events are + * automatically converted to traversal operations. + */ + // @ts-ignore + public getFocusTraversalKeysEnabled(): boolean; + /** + * Requests that this Component get the input focus, and that this + * Component's top-level ancestor become the focused Window. This + * component must be displayable, focusable, visible and all of + * its ancestors (with the exception of the top-level Window) must + * be visible for the request to be granted. Every effort will be + * made to honor the request; however, in some cases it may be + * impossible to do so. Developers must never assume that this + * Component is the focus owner until this Component receives a + * FOCUS_GAINED event. If this request is denied because this + * Component's top-level Window cannot become the focused Window, + * the request will be remembered and will be granted when the + * Window is later focused by the user. + *

+ * This method cannot be used to set the focus owner to no Component at + * all. Use KeyboardFocusManager.clearGlobalFocusOwner() + * instead. + *

+ * Because the focus behavior of this method is platform-dependent, + * developers are strongly encouraged to use + * requestFocusInWindow when possible. + *

Note: Not all focus transfers result from invoking this method. As + * such, a component may receive focus without this or any of the other + * {@code requestFocus} methods of {@code Component} being invoked. + */ + // @ts-ignore + public requestFocus(): void; + /** + * Requests that this Component get the input focus, + * and that this Component's top-level ancestor + * become the focused Window. This component must be + * displayable, focusable, visible and all of its ancestors (with + * the exception of the top-level Window) must be visible for the + * request to be granted. Every effort will be made to honor the + * request; however, in some cases it may be impossible to do + * so. Developers must never assume that this component is the + * focus owner until this component receives a FOCUS_GAINED + * event. If this request is denied because this component's + * top-level window cannot become the focused window, the request + * will be remembered and will be granted when the window is later + * focused by the user. + *

+ * This method returns a boolean value. If false is returned, + * the request is guaranteed to fail. If true is + * returned, the request will succeed unless it is vetoed, or an + * extraordinary event, such as disposal of the component's peer, occurs + * before the request can be granted by the native windowing system. Again, + * while a return value of true indicates that the request is + * likely to succeed, developers must never assume that this component is + * the focus owner until this component receives a FOCUS_GAINED event. + *

+ * This method cannot be used to set the focus owner to no component at + * all. Use KeyboardFocusManager.clearGlobalFocusOwner + * instead. + *

+ * Because the focus behavior of this method is platform-dependent, + * developers are strongly encouraged to use + * requestFocusInWindow when possible. + *

+ * Every effort will be made to ensure that FocusEvents + * generated as a + * result of this request will have the specified temporary value. However, + * because specifying an arbitrary temporary state may not be implementable + * on all native windowing systems, correct behavior for this method can be + * guaranteed only for lightweight Components. + * This method is not intended + * for general use, but exists instead as a hook for lightweight component + * libraries, such as Swing. + *

Note: Not all focus transfers result from invoking this method. As + * such, a component may receive focus without this or any of the other + * {@code requestFocus} methods of {@code Component} being invoked. + */ + // @ts-ignore + protected requestFocus(temporary: boolean): boolean; + /** + * Requests that this Component get the input focus, if this + * Component's top-level ancestor is already the focused + * Window. This component must be displayable, focusable, visible + * and all of its ancestors (with the exception of the top-level + * Window) must be visible for the request to be granted. Every + * effort will be made to honor the request; however, in some + * cases it may be impossible to do so. Developers must never + * assume that this Component is the focus owner until this + * Component receives a FOCUS_GAINED event. + *

+ * This method returns a boolean value. If false is returned, + * the request is guaranteed to fail. If true is + * returned, the request will succeed unless it is vetoed, or an + * extraordinary event, such as disposal of the Component's peer, occurs + * before the request can be granted by the native windowing system. Again, + * while a return value of true indicates that the request is + * likely to succeed, developers must never assume that this Component is + * the focus owner until this Component receives a FOCUS_GAINED event. + *

+ * This method cannot be used to set the focus owner to no Component at + * all. Use KeyboardFocusManager.clearGlobalFocusOwner() + * instead. + *

+ * The focus behavior of this method can be implemented uniformly across + * platforms, and thus developers are strongly encouraged to use this + * method over requestFocus when possible. Code which relies + * on requestFocus may exhibit different focus behavior on + * different platforms. + *

Note: Not all focus transfers result from invoking this method. As + * such, a component may receive focus without this or any of the other + * {@code requestFocus} methods of {@code Component} being invoked. + */ + // @ts-ignore + public requestFocusInWindow(): boolean; + /** + * Requests that this Component get the input focus, + * if this Component's top-level ancestor is already + * the focused Window. This component must be + * displayable, focusable, visible and all of its ancestors (with + * the exception of the top-level Window) must be visible for the + * request to be granted. Every effort will be made to honor the + * request; however, in some cases it may be impossible to do + * so. Developers must never assume that this component is the + * focus owner until this component receives a FOCUS_GAINED event. + *

+ * This method returns a boolean value. If false is returned, + * the request is guaranteed to fail. If true is + * returned, the request will succeed unless it is vetoed, or an + * extraordinary event, such as disposal of the component's peer, occurs + * before the request can be granted by the native windowing system. Again, + * while a return value of true indicates that the request is + * likely to succeed, developers must never assume that this component is + * the focus owner until this component receives a FOCUS_GAINED event. + *

+ * This method cannot be used to set the focus owner to no component at + * all. Use KeyboardFocusManager.clearGlobalFocusOwner + * instead. + *

+ * The focus behavior of this method can be implemented uniformly across + * platforms, and thus developers are strongly encouraged to use this + * method over requestFocus when possible. Code which relies + * on requestFocus may exhibit different focus behavior on + * different platforms. + *

+ * Every effort will be made to ensure that FocusEvents + * generated as a + * result of this request will have the specified temporary value. However, + * because specifying an arbitrary temporary state may not be implementable + * on all native windowing systems, correct behavior for this method can be + * guaranteed only for lightweight components. This method is not intended + * for general use, but exists instead as a hook for lightweight component + * libraries, such as Swing. + *

Note: Not all focus transfers result from invoking this method. As + * such, a component may receive focus without this or any of the other + * {@code requestFocus} methods of {@code Component} being invoked. + */ + // @ts-ignore + protected requestFocusInWindow(temporary: boolean): boolean; + /** + * Returns the Container which is the focus cycle root of this Component's + * focus traversal cycle. Each focus traversal cycle has only a single + * focus cycle root and each Component which is not a Container belongs to + * only a single focus traversal cycle. Containers which are focus cycle + * roots belong to two cycles: one rooted at the Container itself, and one + * rooted at the Container's nearest focus-cycle-root ancestor. For such + * Containers, this method will return the Container's nearest focus-cycle- + * root ancestor. + */ + // @ts-ignore + public getFocusCycleRootAncestor(): java.awt.Container; + /** + * Returns whether the specified Container is the focus cycle root of this + * Component's focus traversal cycle. Each focus traversal cycle has only + * a single focus cycle root and each Component which is not a Container + * belongs to only a single focus traversal cycle. + */ + // @ts-ignore + public isFocusCycleRoot(container: java.awt.Container): boolean; + /** + * Transfers the focus to the next component, as though this Component were + * the focus owner. + */ + // @ts-ignore + public transferFocus(): void; + // @ts-ignore + public nextFocus(): void; + /** + * Transfers the focus to the previous component, as though this Component + * were the focus owner. + */ + // @ts-ignore + public transferFocusBackward(): void; + /** + * Transfers the focus up one focus traversal cycle. Typically, the focus + * owner is set to this Component's focus cycle root, and the current focus + * cycle root is set to the new focus owner's focus cycle root. If, + * however, this Component's focus cycle root is a Window, then the focus + * owner is set to the focus cycle root's default Component to focus, and + * the current focus cycle root is unchanged. + */ + // @ts-ignore + public transferFocusUpCycle(): void; + /** + * Returns true if this Component is the + * focus owner. This method is obsolete, and has been replaced by + * isFocusOwner(). + */ + // @ts-ignore + public hasFocus(): boolean; + /** + * Returns true if this Component is the + * focus owner. + */ + // @ts-ignore + public isFocusOwner(): boolean; + /** + * Adds the specified popup menu to the component. + */ + // @ts-ignore + public add(popup: java.awt.PopupMenu): void; + /** + * Removes the specified popup menu from the component. + */ + // @ts-ignore + public remove(popup: java.awt.MenuComponent): void; + /** + * Returns a string representing the state of this component. This + * method is intended to be used only for debugging purposes, and the + * content and format of the returned string may vary between + * implementations. The returned string may be empty but may not be + * null. + */ + // @ts-ignore + protected paramString(): string; + /** + * Returns a string representation of this component and its values. + */ + // @ts-ignore + public toString(): string; + /** + * Prints a listing of this component to the standard system output + * stream System.out. + */ + // @ts-ignore + public list(): void; + /** + * Prints a listing of this component to the specified output + * stream. + */ + // @ts-ignore + public list(out: java.io.PrintStream): void; + /** + * Prints out a list, starting at the specified indentation, to the + * specified print stream. + */ + // @ts-ignore + public list(out: java.io.PrintStream, indent: number): void; + /** + * Prints a listing to the specified print writer. + */ + // @ts-ignore + public list(out: java.io.PrintWriter): void; + /** + * Prints out a list, starting at the specified indentation, to + * the specified print writer. + */ + // @ts-ignore + public list(out: java.io.PrintWriter, indent: number): void; + /** + * Adds a PropertyChangeListener to the listener list. The listener is + * registered for all bound properties of this class, including the + * following: + *

    + *
  • this Component's font ("font")
  • + *
  • this Component's background color ("background")
  • + *
  • this Component's foreground color ("foreground")
  • + *
  • this Component's focusability ("focusable")
  • + *
  • this Component's focus traversal keys enabled state + * ("focusTraversalKeysEnabled")
  • + *
  • this Component's Set of FORWARD_TRAVERSAL_KEYS + * ("forwardFocusTraversalKeys")
  • + *
  • this Component's Set of BACKWARD_TRAVERSAL_KEYS + * ("backwardFocusTraversalKeys")
  • + *
  • this Component's Set of UP_CYCLE_TRAVERSAL_KEYS + * ("upCycleFocusTraversalKeys")
  • + *
  • this Component's preferred size ("preferredSize")
  • + *
  • this Component's minimum size ("minimumSize")
  • + *
  • this Component's maximum size ("maximumSize")
  • + *
  • this Component's name ("name")
  • + *
+ * Note that if this Component is inheriting a bound property, then no + * event will be fired in response to a change in the inherited property. + *

+ * If listener is null, + * no exception is thrown and no action is performed. + */ + // @ts-ignore + public addPropertyChangeListener(listener: java.beans.PropertyChangeListener): void; + /** + * Removes a PropertyChangeListener from the listener list. This method + * should be used to remove PropertyChangeListeners that were registered + * for all bound properties of this class. + *

+ * If listener is null, no exception is thrown and no action is performed. + */ + // @ts-ignore + public removePropertyChangeListener(listener: java.beans.PropertyChangeListener): void; + /** + * Returns an array of all the property change listeners + * registered on this component. + */ + // @ts-ignore + public getPropertyChangeListeners(): java.beans.PropertyChangeListener[]; + /** + * Adds a PropertyChangeListener to the listener list for a specific + * property. The specified property may be user-defined, or one of the + * following: + *

    + *
  • this Component's font ("font")
  • + *
  • this Component's background color ("background")
  • + *
  • this Component's foreground color ("foreground")
  • + *
  • this Component's focusability ("focusable")
  • + *
  • this Component's focus traversal keys enabled state + * ("focusTraversalKeysEnabled")
  • + *
  • this Component's Set of FORWARD_TRAVERSAL_KEYS + * ("forwardFocusTraversalKeys")
  • + *
  • this Component's Set of BACKWARD_TRAVERSAL_KEYS + * ("backwardFocusTraversalKeys")
  • + *
  • this Component's Set of UP_CYCLE_TRAVERSAL_KEYS + * ("upCycleFocusTraversalKeys")
  • + *
+ * Note that if this Component is inheriting a bound property, then no + * event will be fired in response to a change in the inherited property. + *

+ * If propertyName or listener is null, + * no exception is thrown and no action is taken. + */ + // @ts-ignore + public addPropertyChangeListener(propertyName: string, listener: java.beans.PropertyChangeListener): void; + /** + * Removes a PropertyChangeListener from the listener + * list for a specific property. This method should be used to remove + * PropertyChangeListeners + * that were registered for a specific bound property. + *

+ * If propertyName or listener is null, + * no exception is thrown and no action is taken. + */ + // @ts-ignore + public removePropertyChangeListener(propertyName: string, listener: java.beans.PropertyChangeListener): void; + /** + * Returns an array of all the listeners which have been associated + * with the named property. + */ + // @ts-ignore + public getPropertyChangeListeners(propertyName: string): java.beans.PropertyChangeListener[]; + /** + * Support for reporting bound property changes for Object properties. + * This method can be called when a bound property has changed and it will + * send the appropriate PropertyChangeEvent to any registered + * PropertyChangeListeners. + */ + // @ts-ignore + protected firePropertyChange(propertyName: string, oldValue: java.lang.Object, newValue: java.lang.Object): void; + /** + * Support for reporting bound property changes for boolean properties. + * This method can be called when a bound property has changed and it will + * send the appropriate PropertyChangeEvent to any registered + * PropertyChangeListeners. + */ + // @ts-ignore + protected firePropertyChange(propertyName: string, oldValue: boolean, newValue: boolean): void; + /** + * Support for reporting bound property changes for integer properties. + * This method can be called when a bound property has changed and it will + * send the appropriate PropertyChangeEvent to any registered + * PropertyChangeListeners. + */ + // @ts-ignore + protected firePropertyChange(propertyName: string, oldValue: number, newValue: number): void; + /** + * Reports a bound property change. + */ + // @ts-ignore + public firePropertyChange(propertyName: string, oldValue: number, newValue: number): void; + /** + * Reports a bound property change. + */ + // @ts-ignore + public firePropertyChange(propertyName: string, oldValue: string, newValue: string): void; + /** + * Reports a bound property change. + */ + // @ts-ignore + public firePropertyChange(propertyName: string, oldValue: number, newValue: number): void; + /** + * Reports a bound property change. + */ + // @ts-ignore + public firePropertyChange(propertyName: string, oldValue: number, newValue: number): void; + /** + * Reports a bound property change. + */ + // @ts-ignore + public firePropertyChange(propertyName: string, oldValue: number, newValue: number): void; + /** + * Reports a bound property change. + */ + // @ts-ignore + public firePropertyChange(propertyName: string, oldValue: number, newValue: number): void; + /** + * Sets the language-sensitive orientation that is to be used to order + * the elements or text within this component. Language-sensitive + * LayoutManager and Component + * subclasses will use this property to + * determine how to lay out and draw components. + *

+ * At construction time, a component's orientation is set to + * ComponentOrientation.UNKNOWN, + * indicating that it has not been specified + * explicitly. The UNKNOWN orientation behaves the same as + * ComponentOrientation.LEFT_TO_RIGHT. + *

+ * To set the orientation of a single component, use this method. + * To set the orientation of an entire component + * hierarchy, use + * {@link #applyComponentOrientation applyComponentOrientation}. + *

+ * This method changes layout-related information, and therefore, + * invalidates the component hierarchy. + */ + // @ts-ignore + public setComponentOrientation(o: java.awt.ComponentOrientation): void; + /** + * Retrieves the language-sensitive orientation that is to be used to order + * the elements or text within this component. LayoutManager + * and Component + * subclasses that wish to respect orientation should call this method to + * get the component's orientation before performing layout or drawing. + */ + // @ts-ignore + public getComponentOrientation(): java.awt.ComponentOrientation; + /** + * Sets the ComponentOrientation property of this component + * and all components contained within it. + *

+ * This method changes layout-related information, and therefore, + * invalidates the component hierarchy. + */ + // @ts-ignore + public applyComponentOrientation(orientation: java.awt.ComponentOrientation): void; + /** + * Gets the AccessibleContext associated + * with this Component. + * The method implemented by this base + * class returns null. Classes that extend Component + * should implement this method to return the + * AccessibleContext associated with the subclass. + */ + // @ts-ignore + public getAccessibleContext(): any /*javax.accessibility.AccessibleContext*/; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.ComponentOrientation.d.ts b/packages/types/dist/typings/jdk/java.awt.ComponentOrientation.d.ts new file mode 100644 index 00000000..e124c3d1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.ComponentOrientation.d.ts @@ -0,0 +1,47 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class ComponentOrientation extends java.lang.Object { + // @ts-ignore + public static LEFT_TO_RIGHT: java.awt.ComponentOrientation; + // @ts-ignore + public static RIGHT_TO_LEFT: java.awt.ComponentOrientation; + // @ts-ignore + public static UNKNOWN: java.awt.ComponentOrientation; + /** + * Are lines horizontal? + * This will return true for horizontal, left-to-right writing + * systems such as Roman. + */ + // @ts-ignore + public isHorizontal(): boolean; + /** + * HorizontalLines: Do items run left-to-right?
+ * Vertical Lines: Do lines run left-to-right?
+ * This will return true for horizontal, left-to-right writing + * systems such as Roman. + */ + // @ts-ignore + public isLeftToRight(): boolean; + /** + * Returns the orientation that is appropriate for the given locale. + */ + // @ts-ignore + public static getOrientation(locale: java.util.Locale): java.awt.ComponentOrientation; + /** + * Returns the orientation appropriate for the given ResourceBundle's + * localization. Three approaches are tried, in the following order: + *

    + *
  1. Retrieve a ComponentOrientation object from the ResourceBundle + * using the string "Orientation" as the key. + *
  2. Use the ResourceBundle.getLocale to determine the bundle's + * locale, then return the orientation for that locale. + *
  3. Return the default locale's orientation. + *
+ */ + // @ts-ignore + public static getOrientation(bdl: java.util.ResourceBundle): java.awt.ComponentOrientation; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Composite.d.ts b/packages/types/dist/typings/jdk/java.awt.Composite.d.ts new file mode 100644 index 00000000..ae216447 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Composite.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + interface Composite { + /** + * Creates a context containing state that is used to perform + * the compositing operation. In a multi-threaded environment, + * several contexts can exist simultaneously for a single + * Composite object. + */ + // @ts-ignore + createContext(srcColorModel: java.awt.image.ColorModel, dstColorModel: java.awt.image.ColorModel, hints: java.awt.RenderingHints): java.awt.CompositeContext; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.CompositeContext.d.ts b/packages/types/dist/typings/jdk/java.awt.CompositeContext.d.ts new file mode 100644 index 00000000..6a31dfa2 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.CompositeContext.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + interface CompositeContext { + /** + * Releases resources allocated for a context. + */ + // @ts-ignore + dispose(): void; + /** + * Composes the two source {@link Raster} objects and + * places the result in the destination + * {@link WritableRaster}. Note that the destination + * can be the same object as either the first or second + * source. Note that dstIn and + * dstOut must be compatible with the + * dstColorModel passed to the + * {@link Composite#createContext(java.awt.image.ColorModel, java.awt.image.ColorModel, java.awt.RenderingHints) createContext} + * method of the Composite interface. + */ + // @ts-ignore + compose(src: java.awt.image.Raster, dstIn: java.awt.image.Raster, dstOut: java.awt.image.WritableRaster): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Container.AccessibleAWTContainer.AccessibleContainerHandler.d.ts b/packages/types/dist/typings/jdk/java.awt.Container.AccessibleAWTContainer.AccessibleContainerHandler.d.ts new file mode 100644 index 00000000..f0d9575d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Container.AccessibleAWTContainer.AccessibleContainerHandler.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace Container { + namespace AccessibleAWTContainer { + // @ts-ignore + protected class AccessibleContainerHandler extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public componentAdded(e: java.awt.event.ContainerEvent): void; + // @ts-ignore + public componentRemoved(e: java.awt.event.ContainerEvent): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Container.AccessibleAWTContainer.d.ts b/packages/types/dist/typings/jdk/java.awt.Container.AccessibleAWTContainer.d.ts new file mode 100644 index 00000000..f85c8111 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Container.AccessibleAWTContainer.d.ts @@ -0,0 +1,44 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace Container { + // @ts-ignore + protected class AccessibleAWTContainer extends java.awt.Component.AccessibleAWTComponent { + // @ts-ignore + constructor() + // @ts-ignore + protected accessibleContainerHandler: java.awt.event.ContainerListener; + /** + * Returns the number of accessible children in the object. If all + * of the children of this object implement Accessible, + * then this method should return the number of children of this object. + */ + // @ts-ignore + public getAccessibleChildrenCount(): number; + /** + * Returns the nth Accessible child of the object. + */ + // @ts-ignore + public getAccessibleChild(i: number): any /*javax.accessibility.Accessible*/; + /** + * Returns the Accessible child, if one exists, + * contained at the local coordinate Point. + */ + // @ts-ignore + public getAccessibleAt(p: java.awt.Point): any /*javax.accessibility.Accessible*/; + /** + * Adds a PropertyChangeListener to the listener list. + */ + // @ts-ignore + public addPropertyChangeListener(listener: java.beans.PropertyChangeListener): void; + /** + * Remove a PropertyChangeListener from the listener list. + * This removes a PropertyChangeListener that was registered + * for all properties. + */ + // @ts-ignore + public removePropertyChangeListener(listener: java.beans.PropertyChangeListener): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Container.d.ts b/packages/types/dist/typings/jdk/java.awt.Container.d.ts new file mode 100644 index 00000000..a07baa77 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Container.d.ts @@ -0,0 +1,877 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class Container extends java.awt.Component { + /** + * Constructs a new Container. Containers can be extended directly, + * but are lightweight in this case and must be contained by a parent + * somewhere higher up in the component tree that is native. + * (such as Frame for example). + */ + // @ts-ignore + constructor() + /** + * Gets the number of components in this panel. + *

+ * Note: This method should be called under AWT tree lock. + */ + // @ts-ignore + public getComponentCount(): number; + // @ts-ignore + public countComponents(): number; + /** + * Gets the nth component in this container. + *

+ * Note: This method should be called under AWT tree lock. + */ + // @ts-ignore + public getComponent(n: number): java.awt.Component; + /** + * Gets all the components in this container. + *

+ * Note: This method should be called under AWT tree lock. + */ + // @ts-ignore + public getComponents(): java.awt.Component[]; + /** + * Determines the insets of this container, which indicate the size + * of the container's border. + *

+ * A Frame object, for example, has a top inset that + * corresponds to the height of the frame's title bar. + */ + // @ts-ignore + public getInsets(): java.awt.Insets; + // @ts-ignore + public insets(): java.awt.Insets; + /** + * Appends the specified component to the end of this container. + * This is a convenience method for {@link #addImpl}. + *

+ * This method changes layout-related information, and therefore, + * invalidates the component hierarchy. If the container has already been + * displayed, the hierarchy must be validated thereafter in order to + * display the added component. + */ + // @ts-ignore + public add(comp: java.awt.Component): java.awt.Component; + /** + * Adds the specified component to this container. + * This is a convenience method for {@link #addImpl}. + *

+ * This method is obsolete as of 1.1. Please use the + * method add(Component, Object) instead. + *

+ * This method changes layout-related information, and therefore, + * invalidates the component hierarchy. If the container has already been + * displayed, the hierarchy must be validated thereafter in order to + * display the added component. + */ + // @ts-ignore + public add(name: string, comp: java.awt.Component): java.awt.Component; + /** + * Adds the specified component to this container at the given + * position. + * This is a convenience method for {@link #addImpl}. + *

+ * This method changes layout-related information, and therefore, + * invalidates the component hierarchy. If the container has already been + * displayed, the hierarchy must be validated thereafter in order to + * display the added component. + */ + // @ts-ignore + public add(comp: java.awt.Component, index: number): java.awt.Component; + /** + * Moves the specified component to the specified z-order index in + * the container. The z-order determines the order that components + * are painted; the component with the highest z-order paints first + * and the component with the lowest z-order paints last. + * Where components overlap, the component with the lower + * z-order paints over the component with the higher z-order. + *

+ * If the component is a child of some other container, it is + * removed from that container before being added to this container. + * The important difference between this method and + * java.awt.Container.add(Component, int) is that this method + * doesn't call removeNotify on the component while + * removing it from its previous container unless necessary and when + * allowed by the underlying native windowing system. This way, if the + * component has the keyboard focus, it maintains the focus when + * moved to the new position. + *

+ * This property is guaranteed to apply only to lightweight + * non-Container components. + *

+ * This method changes layout-related information, and therefore, + * invalidates the component hierarchy. + *

+ * Note: Not all platforms support changing the z-order of + * heavyweight components from one container into another without + * the call to removeNotify. There is no way to detect + * whether a platform supports this, so developers shouldn't make + * any assumptions. + */ + // @ts-ignore + public setComponentZOrder(comp: java.awt.Component, index: number): void; + /** + * Returns the z-order index of the component inside the container. + * The higher a component is in the z-order hierarchy, the lower + * its index. The component with the lowest z-order index is + * painted last, above all other child components. + */ + // @ts-ignore + public getComponentZOrder(comp: java.awt.Component): number; + /** + * Adds the specified component to the end of this container. + * Also notifies the layout manager to add the component to + * this container's layout using the specified constraints object. + * This is a convenience method for {@link #addImpl}. + *

+ * This method changes layout-related information, and therefore, + * invalidates the component hierarchy. If the container has already been + * displayed, the hierarchy must be validated thereafter in order to + * display the added component. + */ + // @ts-ignore + public add(comp: java.awt.Component, constraints: java.lang.Object): void; + /** + * Adds the specified component to this container with the specified + * constraints at the specified index. Also notifies the layout + * manager to add the component to the this container's layout using + * the specified constraints object. + * This is a convenience method for {@link #addImpl}. + *

+ * This method changes layout-related information, and therefore, + * invalidates the component hierarchy. If the container has already been + * displayed, the hierarchy must be validated thereafter in order to + * display the added component. + */ + // @ts-ignore + public add(comp: java.awt.Component, constraints: java.lang.Object, index: number): void; + /** + * Adds the specified component to this container at the specified + * index. This method also notifies the layout manager to add + * the component to this container's layout using the specified + * constraints object via the addLayoutComponent + * method. + *

+ * The constraints are + * defined by the particular layout manager being used. For + * example, the BorderLayout class defines five + * constraints: BorderLayout.NORTH, + * BorderLayout.SOUTH, BorderLayout.EAST, + * BorderLayout.WEST, and BorderLayout.CENTER. + *

+ * The GridBagLayout class requires a + * GridBagConstraints object. Failure to pass + * the correct type of constraints object results in an + * IllegalArgumentException. + *

+ * If the current layout manager implements {@code LayoutManager2}, then + * {@link LayoutManager2#addLayoutComponent(Component,Object)} is invoked on + * it. If the current layout manager does not implement + * {@code LayoutManager2}, and constraints is a {@code String}, then + * {@link LayoutManager#addLayoutComponent(String,Component)} is invoked on it. + *

+ * If the component is not an ancestor of this container and has a non-null + * parent, it is removed from its current parent before it is added to this + * container. + *

+ * This is the method to override if a program needs to track + * every add request to a container as all other add methods defer + * to this one. An overriding method should + * usually include a call to the superclass's version of the method: + *

+ * super.addImpl(comp, constraints, index) + *
+ *

+ * This method changes layout-related information, and therefore, + * invalidates the component hierarchy. If the container has already been + * displayed, the hierarchy must be validated thereafter in order to + * display the added component. + */ + // @ts-ignore + protected addImpl(comp: java.awt.Component, constraints: java.lang.Object, index: number): void; + /** + * Removes the component, specified by index, + * from this container. + * This method also notifies the layout manager to remove the + * component from this container's layout via the + * removeLayoutComponent method. + *

+ * This method changes layout-related information, and therefore, + * invalidates the component hierarchy. If the container has already been + * displayed, the hierarchy must be validated thereafter in order to + * reflect the changes. + */ + // @ts-ignore + public remove(index: number): void; + /** + * Removes the specified component from this container. + * This method also notifies the layout manager to remove the + * component from this container's layout via the + * removeLayoutComponent method. + *

+ * This method changes layout-related information, and therefore, + * invalidates the component hierarchy. If the container has already been + * displayed, the hierarchy must be validated thereafter in order to + * reflect the changes. + */ + // @ts-ignore + public remove(comp: java.awt.Component): void; + /** + * Removes all the components from this container. + * This method also notifies the layout manager to remove the + * components from this container's layout via the + * removeLayoutComponent method. + *

+ * This method changes layout-related information, and therefore, + * invalidates the component hierarchy. If the container has already been + * displayed, the hierarchy must be validated thereafter in order to + * reflect the changes. + */ + // @ts-ignore + public removeAll(): void; + /** + * Gets the layout manager for this container. + */ + // @ts-ignore + public getLayout(): java.awt.LayoutManager; + /** + * Sets the layout manager for this container. + *

+ * This method changes layout-related information, and therefore, + * invalidates the component hierarchy. + */ + // @ts-ignore + public setLayout(mgr: java.awt.LayoutManager): void; + /** + * Causes this container to lay out its components. Most programs + * should not call this method directly, but should invoke + * the validate method instead. + */ + // @ts-ignore + public doLayout(): void; + // @ts-ignore + public layout(): void; + /** + * Indicates if this container is a validate root. + *

+ * Layout-related changes, such as bounds of the validate root descendants, + * do not affect the layout of the validate root parent. This peculiarity + * enables the {@code invalidate()} method to stop invalidating the + * component hierarchy when the method encounters a validate root. However, + * to preserve backward compatibility this new optimized behavior is + * enabled only when the {@code java.awt.smartInvalidate} system property + * value is set to {@code true}. + *

+ * If a component hierarchy contains validate roots and the new optimized + * {@code invalidate()} behavior is enabled, the {@code validate()} method + * must be invoked on the validate root of a previously invalidated + * component to restore the validity of the hierarchy later. Otherwise, + * calling the {@code validate()} method on the top-level container (such + * as a {@code Frame} object) should be used to restore the validity of the + * component hierarchy. + *

+ * The {@code Window} class and the {@code Applet} class are the validate + * roots in AWT. Swing introduces more validate roots. + */ + // @ts-ignore + public isValidateRoot(): boolean; + /** + * Invalidates the container. + *

+ * If the {@code LayoutManager} installed on this container is an instance + * of the {@code LayoutManager2} interface, then + * the {@link LayoutManager2#invalidateLayout(Container)} method is invoked + * on it supplying this {@code Container} as the argument. + *

+ * Afterwards this method marks this container invalid, and invalidates its + * ancestors. See the {@link Component#invalidate} method for more details. + */ + // @ts-ignore + public invalidate(): void; + /** + * Validates this container and all of its subcomponents. + *

+ * Validating a container means laying out its subcomponents. + * Layout-related changes, such as setting the bounds of a component, or + * adding a component to the container, invalidate the container + * automatically. Note that the ancestors of the container may be + * invalidated also (see {@link Component#invalidate} for details.) + * Therefore, to restore the validity of the hierarchy, the {@code + * validate()} method should be invoked on the top-most invalid + * container of the hierarchy. + *

+ * Validating the container may be a quite time-consuming operation. For + * performance reasons a developer may postpone the validation of the + * hierarchy till a set of layout-related operations completes, e.g. after + * adding all the children to the container. + *

+ * If this {@code Container} is not valid, this method invokes + * the {@code validateTree} method and marks this {@code Container} + * as valid. Otherwise, no action is performed. + */ + // @ts-ignore + public validate(): void; + /** + * Recursively descends the container tree and recomputes the + * layout for any subtrees marked as needing it (those marked as + * invalid). Synchronization should be provided by the method + * that calls this one: validate. + */ + // @ts-ignore + protected validateTree(): void; + /** + * Sets the font of this container. + *

+ * This method changes layout-related information, and therefore, + * invalidates the component hierarchy. + */ + // @ts-ignore + public setFont(f: java.awt.Font): void; + /** + * Returns the preferred size of this container. If the preferred size has + * not been set explicitly by {@link Component#setPreferredSize(Dimension)} + * and this {@code Container} has a {@code non-null} {@link LayoutManager}, + * then {@link LayoutManager#preferredLayoutSize(Container)} + * is used to calculate the preferred size. + *

Note: some implementations may cache the value returned from the + * {@code LayoutManager}. Implementations that cache need not invoke + * {@code preferredLayoutSize} on the {@code LayoutManager} every time + * this method is invoked, rather the {@code LayoutManager} will only + * be queried after the {@code Container} becomes invalid. + */ + // @ts-ignore + public getPreferredSize(): java.awt.Dimension; + // @ts-ignore + public preferredSize(): java.awt.Dimension; + /** + * Returns the minimum size of this container. If the minimum size has + * not been set explicitly by {@link Component#setMinimumSize(Dimension)} + * and this {@code Container} has a {@code non-null} {@link LayoutManager}, + * then {@link LayoutManager#minimumLayoutSize(Container)} + * is used to calculate the minimum size. + *

Note: some implementations may cache the value returned from the + * {@code LayoutManager}. Implementations that cache need not invoke + * {@code minimumLayoutSize} on the {@code LayoutManager} every time + * this method is invoked, rather the {@code LayoutManager} will only + * be queried after the {@code Container} becomes invalid. + */ + // @ts-ignore + public getMinimumSize(): java.awt.Dimension; + // @ts-ignore + public minimumSize(): java.awt.Dimension; + /** + * Returns the maximum size of this container. If the maximum size has + * not been set explicitly by {@link Component#setMaximumSize(Dimension)} + * and the {@link LayoutManager} installed on this {@code Container} + * is an instance of {@link LayoutManager2}, then + * {@link LayoutManager2#maximumLayoutSize(Container)} + * is used to calculate the maximum size. + *

Note: some implementations may cache the value returned from the + * {@code LayoutManager2}. Implementations that cache need not invoke + * {@code maximumLayoutSize} on the {@code LayoutManager2} every time + * this method is invoked, rather the {@code LayoutManager2} will only + * be queried after the {@code Container} becomes invalid. + */ + // @ts-ignore + public getMaximumSize(): java.awt.Dimension; + /** + * Returns the alignment along the x axis. This specifies how + * the component would like to be aligned relative to other + * components. The value should be a number between 0 and 1 + * where 0 represents alignment along the origin, 1 is aligned + * the furthest away from the origin, 0.5 is centered, etc. + */ + // @ts-ignore + public getAlignmentX(): number; + /** + * Returns the alignment along the y axis. This specifies how + * the component would like to be aligned relative to other + * components. The value should be a number between 0 and 1 + * where 0 represents alignment along the origin, 1 is aligned + * the furthest away from the origin, 0.5 is centered, etc. + */ + // @ts-ignore + public getAlignmentY(): number; + /** + * Paints the container. This forwards the paint to any lightweight + * components that are children of this container. If this method is + * reimplemented, super.paint(g) should be called so that lightweight + * components are properly rendered. If a child component is entirely + * clipped by the current clipping setting in g, paint() will not be + * forwarded to that child. + */ + // @ts-ignore + public paint(g: java.awt.Graphics): void; + /** + * Updates the container. This forwards the update to any lightweight + * components that are children of this container. If this method is + * reimplemented, super.update(g) should be called so that lightweight + * components are properly rendered. If a child component is entirely + * clipped by the current clipping setting in g, update() will not be + * forwarded to that child. + */ + // @ts-ignore + public update(g: java.awt.Graphics): void; + /** + * Prints the container. This forwards the print to any lightweight + * components that are children of this container. If this method is + * reimplemented, super.print(g) should be called so that lightweight + * components are properly rendered. If a child component is entirely + * clipped by the current clipping setting in g, print() will not be + * forwarded to that child. + */ + // @ts-ignore + public print(g: java.awt.Graphics): void; + /** + * Paints each of the components in this container. + */ + // @ts-ignore + public paintComponents(g: java.awt.Graphics): void; + /** + * Prints each of the components in this container. + */ + // @ts-ignore + public printComponents(g: java.awt.Graphics): void; + /** + * Adds the specified container listener to receive container events + * from this container. + * If l is null, no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public addContainerListener(l: java.awt.event.ContainerListener): void; + /** + * Removes the specified container listener so it no longer receives + * container events from this container. + * If l is null, no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public removeContainerListener(l: java.awt.event.ContainerListener): void; + /** + * Returns an array of all the container listeners + * registered on this container. + */ + // @ts-ignore + public getContainerListeners(): java.awt.event.ContainerListener[]; + /** + * Returns an array of all the objects currently registered + * as FooListeners + * upon this Container. + * FooListeners are registered using the + * addFooListener method. + *

+ * You can specify the listenerType argument + * with a class literal, such as + * FooListener.class. + * For example, you can query a + * Container c + * for its container listeners with the following code: + *

ContainerListener[] cls = (ContainerListener[])(c.getListeners(ContainerListener.class));
+ * If no such listeners exist, this method returns an empty array. + */ + // @ts-ignore + public getListeners(listenerType: java.lang.Class): java.util.EventListener[]; + /** + * Processes events on this container. If the event is a + * ContainerEvent, it invokes the + * processContainerEvent method, else it invokes + * its superclass's processEvent. + *

Note that if the event parameter is null + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processEvent(e: java.awt.AWTEvent): void; + /** + * Processes container events occurring on this container by + * dispatching them to any registered ContainerListener objects. + * NOTE: This method will not be called unless container events + * are enabled for this component; this happens when one of the + * following occurs: + *

    + *
  • A ContainerListener object is registered via + * addContainerListener + *
  • Container events are enabled via enableEvents + *
+ *

Note that if the event parameter is null + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processContainerEvent(e: java.awt.event.ContainerEvent): void; + // @ts-ignore + public deliverEvent(e: java.awt.Event): void; + /** + * Locates the component that contains the x,y position. The + * top-most child component is returned in the case where there + * is overlap in the components. This is determined by finding + * the component closest to the index 0 that claims to contain + * the given point via Component.contains(), except that Components + * which have native peers take precedence over those which do not + * (i.e., lightweight Components). + */ + // @ts-ignore + public getComponentAt(x: number, y: number): java.awt.Component; + // @ts-ignore + public locate(x: number, y: number): java.awt.Component; + /** + * Gets the component that contains the specified point. + */ + // @ts-ignore + public getComponentAt(p: java.awt.Point): java.awt.Component; + /** + * Returns the position of the mouse pointer in this Container's + * coordinate space if the Container is under the mouse pointer, + * otherwise returns null. + * This method is similar to {@link Component#getMousePosition()} with the exception + * that it can take the Container's children into account. + * If allowChildren is false, this method will return + * a non-null value only if the mouse pointer is above the Container + * directly, not above the part obscured by children. + * If allowChildren is true, this method returns + * a non-null value if the mouse pointer is above Container or any + * of its descendants. + */ + // @ts-ignore + public getMousePosition(allowChildren: boolean): java.awt.Point; + /** + * Locates the visible child component that contains the specified + * position. The top-most child component is returned in the case + * where there is overlap in the components. If the containing child + * component is a Container, this method will continue searching for + * the deepest nested child component. Components which are not + * visible are ignored during the search.

+ * The findComponentAt method is different from getComponentAt in + * that getComponentAt only searches the Container's immediate + * children; if the containing component is a Container, + * findComponentAt will search that child to find a nested component. + */ + // @ts-ignore + public findComponentAt(x: number, y: number): java.awt.Component; + /** + * Locates the visible child component that contains the specified + * point. The top-most child component is returned in the case + * where there is overlap in the components. If the containing child + * component is a Container, this method will continue searching for + * the deepest nested child component. Components which are not + * visible are ignored during the search.

+ * The findComponentAt method is different from getComponentAt in + * that getComponentAt only searches the Container's immediate + * children; if the containing component is a Container, + * findComponentAt will search that child to find a nested component. + */ + // @ts-ignore + public findComponentAt(p: java.awt.Point): java.awt.Component; + /** + * Makes this Container displayable by connecting it to + * a native screen resource. Making a container displayable will + * cause all of its children to be made displayable. + * This method is called internally by the toolkit and should + * not be called directly by programs. + */ + // @ts-ignore + public addNotify(): void; + /** + * Makes this Container undisplayable by removing its connection + * to its native screen resource. Making a container undisplayable + * will cause all of its children to be made undisplayable. + * This method is called by the toolkit internally and should + * not be called directly by programs. + */ + // @ts-ignore + public removeNotify(): void; + /** + * Checks if the component is contained in the component hierarchy of + * this container. + */ + // @ts-ignore + public isAncestorOf(c: java.awt.Component): boolean; + /** + * Returns a string representing the state of this Container. + * This method is intended to be used only for debugging purposes, and the + * content and format of the returned string may vary between + * implementations. The returned string may be empty but may not be + * null. + */ + // @ts-ignore + protected paramString(): string; + /** + * Prints a listing of this container to the specified output + * stream. The listing starts at the specified indentation. + *

+ * The immediate children of the container are printed with + * an indentation of indent+1. The children + * of those children are printed at indent+2 + * and so on. + */ + // @ts-ignore + public list(out: java.io.PrintStream, indent: number): void; + /** + * Prints out a list, starting at the specified indentation, + * to the specified print writer. + *

+ * The immediate children of the container are printed with + * an indentation of indent+1. The children + * of those children are printed at indent+2 + * and so on. + */ + // @ts-ignore + public list(out: java.io.PrintWriter, indent: number): void; + /** + * Sets the focus traversal keys for a given traversal operation for this + * Container. + *

+ * The default values for a Container's focus traversal keys are + * implementation-dependent. Sun recommends that all implementations for a + * particular native platform use the same default values. The + * recommendations for Windows and Unix are listed below. These + * recommendations are used in the Sun AWT implementations. + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
IdentifierMeaningDefault
KeyboardFocusManager.FORWARD_TRAVERSAL_KEYSNormal forward keyboard traversalTAB on KEY_PRESSED, CTRL-TAB on KEY_PRESSED
KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYSNormal reverse keyboard traversalSHIFT-TAB on KEY_PRESSED, CTRL-SHIFT-TAB on KEY_PRESSED
KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYSGo up one focus traversal cyclenone
KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS + * Go down one focus traversal cyclenone
+ * To disable a traversal key, use an empty Set; Collections.EMPTY_SET is + * recommended. + *

+ * Using the AWTKeyStroke API, client code can specify on which of two + * specific KeyEvents, KEY_PRESSED or KEY_RELEASED, the focus traversal + * operation will occur. Regardless of which KeyEvent is specified, + * however, all KeyEvents related to the focus traversal key, including the + * associated KEY_TYPED event, will be consumed, and will not be dispatched + * to any Container. It is a runtime error to specify a KEY_TYPED event as + * mapping to a focus traversal operation, or to map the same event to + * multiple default focus traversal operations. + *

+ * If a value of null is specified for the Set, this Container inherits the + * Set from its parent. If all ancestors of this Container have null + * specified for the Set, then the current KeyboardFocusManager's default + * Set is used. + *

+ * This method may throw a {@code ClassCastException} if any {@code Object} + * in {@code keystrokes} is not an {@code AWTKeyStroke}. + */ + // @ts-ignore + public setFocusTraversalKeys(id: number, keystrokes: java.util.Set): void; + /** + * Returns the Set of focus traversal keys for a given traversal operation + * for this Container. (See + * setFocusTraversalKeys for a full description of each key.) + *

+ * If a Set of traversal keys has not been explicitly defined for this + * Container, then this Container's parent's Set is returned. If no Set + * has been explicitly defined for any of this Container's ancestors, then + * the current KeyboardFocusManager's default Set is returned. + */ + // @ts-ignore + public getFocusTraversalKeys(id: number): java.util.Set; + /** + * Returns whether the Set of focus traversal keys for the given focus + * traversal operation has been explicitly defined for this Container. If + * this method returns false, this Container is inheriting the + * Set from an ancestor, or from the current KeyboardFocusManager. + */ + // @ts-ignore + public areFocusTraversalKeysSet(id: number): boolean; + /** + * Returns whether the specified Container is the focus cycle root of this + * Container's focus traversal cycle. Each focus traversal cycle has only + * a single focus cycle root and each Container which is not a focus cycle + * root belongs to only a single focus traversal cycle. Containers which + * are focus cycle roots belong to two cycles: one rooted at the Container + * itself, and one rooted at the Container's nearest focus-cycle-root + * ancestor. This method will return true for both such + * Containers in this case. + */ + // @ts-ignore + public isFocusCycleRoot(container: java.awt.Container): boolean; + /** + * Sets the focus traversal policy that will manage keyboard traversal of + * this Container's children, if this Container is a focus cycle root. If + * the argument is null, this Container inherits its policy from its focus- + * cycle-root ancestor. If the argument is non-null, this policy will be + * inherited by all focus-cycle-root children that have no keyboard- + * traversal policy of their own (as will, recursively, their focus-cycle- + * root children). + *

+ * If this Container is not a focus cycle root, the policy will be + * remembered, but will not be used or inherited by this or any other + * Containers until this Container is made a focus cycle root. + */ + // @ts-ignore + public setFocusTraversalPolicy(policy: java.awt.FocusTraversalPolicy): void; + /** + * Returns the focus traversal policy that will manage keyboard traversal + * of this Container's children, or null if this Container is not a focus + * cycle root. If no traversal policy has been explicitly set for this + * Container, then this Container's focus-cycle-root ancestor's policy is + * returned. + */ + // @ts-ignore + public getFocusTraversalPolicy(): java.awt.FocusTraversalPolicy; + /** + * Returns whether the focus traversal policy has been explicitly set for + * this Container. If this method returns false, this + * Container will inherit its focus traversal policy from an ancestor. + */ + // @ts-ignore + public isFocusTraversalPolicySet(): boolean; + /** + * Sets whether this Container is the root of a focus traversal cycle. Once + * focus enters a traversal cycle, typically it cannot leave it via focus + * traversal unless one of the up- or down-cycle keys is pressed. Normal + * traversal is limited to this Container, and all of this Container's + * descendants that are not descendants of inferior focus cycle roots. Note + * that a FocusTraversalPolicy may bend these restrictions, however. For + * example, ContainerOrderFocusTraversalPolicy supports implicit down-cycle + * traversal. + *

+ * The alternative way to specify the traversal order of this Container's + * children is to make this Container a + * focus traversal policy provider. + */ + // @ts-ignore + public setFocusCycleRoot(focusCycleRoot: boolean): void; + /** + * Returns whether this Container is the root of a focus traversal cycle. + * Once focus enters a traversal cycle, typically it cannot leave it via + * focus traversal unless one of the up- or down-cycle keys is pressed. + * Normal traversal is limited to this Container, and all of this + * Container's descendants that are not descendants of inferior focus + * cycle roots. Note that a FocusTraversalPolicy may bend these + * restrictions, however. For example, ContainerOrderFocusTraversalPolicy + * supports implicit down-cycle traversal. + */ + // @ts-ignore + public isFocusCycleRoot(): boolean; + /** + * Sets whether this container will be used to provide focus + * traversal policy. Container with this property as + * true will be used to acquire focus traversal policy + * instead of closest focus cycle root ancestor. + */ + // @ts-ignore + public setFocusTraversalPolicyProvider(provider: boolean): void; + /** + * Returns whether this container provides focus traversal + * policy. If this property is set to true then when + * keyboard focus manager searches container hierarchy for focus + * traversal policy and encounters this container before any other + * container with this property as true or focus cycle roots then + * its focus traversal policy will be used instead of focus cycle + * root's policy. + */ + // @ts-ignore + public isFocusTraversalPolicyProvider(): boolean; + /** + * Transfers the focus down one focus traversal cycle. If this Container is + * a focus cycle root, then the focus owner is set to this Container's + * default Component to focus, and the current focus cycle root is set to + * this Container. If this Container is not a focus cycle root, then no + * focus traversal operation occurs. + */ + // @ts-ignore + public transferFocusDownCycle(): void; + /** + * Sets the ComponentOrientation property of this container + * and all components contained within it. + *

+ * This method changes layout-related information, and therefore, + * invalidates the component hierarchy. + */ + // @ts-ignore + public applyComponentOrientation(o: java.awt.ComponentOrientation): void; + /** + * Adds a PropertyChangeListener to the listener list. The listener is + * registered for all bound properties of this class, including the + * following: + *

    + *
  • this Container's font ("font")
  • + *
  • this Container's background color ("background")
  • + *
  • this Container's foreground color ("foreground")
  • + *
  • this Container's focusability ("focusable")
  • + *
  • this Container's focus traversal keys enabled state + * ("focusTraversalKeysEnabled")
  • + *
  • this Container's Set of FORWARD_TRAVERSAL_KEYS + * ("forwardFocusTraversalKeys")
  • + *
  • this Container's Set of BACKWARD_TRAVERSAL_KEYS + * ("backwardFocusTraversalKeys")
  • + *
  • this Container's Set of UP_CYCLE_TRAVERSAL_KEYS + * ("upCycleFocusTraversalKeys")
  • + *
  • this Container's Set of DOWN_CYCLE_TRAVERSAL_KEYS + * ("downCycleFocusTraversalKeys")
  • + *
  • this Container's focus traversal policy ("focusTraversalPolicy") + *
  • + *
  • this Container's focus-cycle-root state ("focusCycleRoot")
  • + *
+ * Note that if this Container is inheriting a bound property, then no + * event will be fired in response to a change in the inherited property. + *

+ * If listener is null, no exception is thrown and no action is performed. + */ + // @ts-ignore + public addPropertyChangeListener(listener: java.beans.PropertyChangeListener): void; + /** + * Adds a PropertyChangeListener to the listener list for a specific + * property. The specified property may be user-defined, or one of the + * following defaults: + *

    + *
  • this Container's font ("font")
  • + *
  • this Container's background color ("background")
  • + *
  • this Container's foreground color ("foreground")
  • + *
  • this Container's focusability ("focusable")
  • + *
  • this Container's focus traversal keys enabled state + * ("focusTraversalKeysEnabled")
  • + *
  • this Container's Set of FORWARD_TRAVERSAL_KEYS + * ("forwardFocusTraversalKeys")
  • + *
  • this Container's Set of BACKWARD_TRAVERSAL_KEYS + * ("backwardFocusTraversalKeys")
  • + *
  • this Container's Set of UP_CYCLE_TRAVERSAL_KEYS + * ("upCycleFocusTraversalKeys")
  • + *
  • this Container's Set of DOWN_CYCLE_TRAVERSAL_KEYS + * ("downCycleFocusTraversalKeys")
  • + *
  • this Container's focus traversal policy ("focusTraversalPolicy") + *
  • + *
  • this Container's focus-cycle-root state ("focusCycleRoot")
  • + *
  • this Container's focus-traversal-policy-provider state("focusTraversalPolicyProvider")
  • + *
  • this Container's focus-traversal-policy-provider state("focusTraversalPolicyProvider")
  • + *
+ * Note that if this Container is inheriting a bound property, then no + * event will be fired in response to a change in the inherited property. + *

+ * If listener is null, no exception is thrown and no action is performed. + */ + // @ts-ignore + public addPropertyChangeListener(propertyName: string, listener: java.beans.PropertyChangeListener): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.ContainerOrderFocusTraversalPolicy.d.ts b/packages/types/dist/typings/jdk/java.awt.ContainerOrderFocusTraversalPolicy.d.ts new file mode 100644 index 00000000..235cf9a3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.ContainerOrderFocusTraversalPolicy.d.ts @@ -0,0 +1,83 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class ContainerOrderFocusTraversalPolicy extends java.awt.FocusTraversalPolicy { + // @ts-ignore + constructor() + /** + * Returns the Component that should receive the focus after aComponent. + * aContainer must be a focus cycle root of aComponent or a focus traversal policy provider. + *

+ * By default, ContainerOrderFocusTraversalPolicy implicitly transfers + * focus down-cycle. That is, during normal forward focus traversal, the + * Component traversed after a focus cycle root will be the focus-cycle- + * root's default Component to focus. This behavior can be disabled using + * the setImplicitDownCycleTraversal method. + *

+ * If aContainer is focus + * traversal policy provider, the focus is always transferred down-cycle. + */ + // @ts-ignore + public getComponentAfter(aContainer: java.awt.Container, aComponent: java.awt.Component): java.awt.Component; + /** + * Returns the Component that should receive the focus before aComponent. + * aContainer must be a focus cycle root of aComponent or a focus traversal policy + * provider. + */ + // @ts-ignore + public getComponentBefore(aContainer: java.awt.Container, aComponent: java.awt.Component): java.awt.Component; + /** + * Returns the first Component in the traversal cycle. This method is used + * to determine the next Component to focus when traversal wraps in the + * forward direction. + */ + // @ts-ignore + public getFirstComponent(aContainer: java.awt.Container): java.awt.Component; + /** + * Returns the last Component in the traversal cycle. This method is used + * to determine the next Component to focus when traversal wraps in the + * reverse direction. + */ + // @ts-ignore + public getLastComponent(aContainer: java.awt.Container): java.awt.Component; + /** + * Returns the default Component to focus. This Component will be the first + * to receive focus when traversing down into a new focus traversal cycle + * rooted at aContainer. The default implementation of this method + * returns the same Component as getFirstComponent. + */ + // @ts-ignore + public getDefaultComponent(aContainer: java.awt.Container): java.awt.Component; + /** + * Sets whether this ContainerOrderFocusTraversalPolicy transfers focus + * down-cycle implicitly. If true, during normal forward focus + * traversal, the Component traversed after a focus cycle root will be the + * focus-cycle-root's default Component to focus. If false, + * the next Component in the focus traversal cycle rooted at the specified + * focus cycle root will be traversed instead. The default value for this + * property is true. + */ + // @ts-ignore + public setImplicitDownCycleTraversal(implicitDownCycleTraversal: boolean): void; + /** + * Returns whether this ContainerOrderFocusTraversalPolicy transfers focus + * down-cycle implicitly. If true, during normal forward focus + * traversal, the Component traversed after a focus cycle root will be the + * focus-cycle-root's default Component to focus. If false, + * the next Component in the focus traversal cycle rooted at the specified + * focus cycle root will be traversed instead. + */ + // @ts-ignore + public getImplicitDownCycleTraversal(): boolean; + /** + * Determines whether a Component is an acceptable choice as the new + * focus owner. By default, this method will accept a Component if and + * only if it is visible, displayable, enabled, and focusable. + */ + // @ts-ignore + protected accept(aComponent: java.awt.Component): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Cursor.d.ts b/packages/types/dist/typings/jdk/java.awt.Cursor.d.ts new file mode 100644 index 00000000..fade81fa --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Cursor.d.ts @@ -0,0 +1,86 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class Cursor extends java.lang.Object { + /** + * Creates a new cursor object with the specified type. + */ + // @ts-ignore + constructor(type: number) + /** + * Creates a new custom cursor object with the specified name.

+ * Note: this constructor should only be used by AWT implementations + * as part of their support for custom cursors. Applications should + * use Toolkit.createCustomCursor(). + */ + // @ts-ignore + constructor(name: string) + // @ts-ignore + public static DEFAULT_CURSOR: number; + // @ts-ignore + public static CROSSHAIR_CURSOR: number; + // @ts-ignore + public static TEXT_CURSOR: number; + // @ts-ignore + public static WAIT_CURSOR: number; + // @ts-ignore + public static SW_RESIZE_CURSOR: number; + // @ts-ignore + public static SE_RESIZE_CURSOR: number; + // @ts-ignore + public static NW_RESIZE_CURSOR: number; + // @ts-ignore + public static NE_RESIZE_CURSOR: number; + // @ts-ignore + public static N_RESIZE_CURSOR: number; + // @ts-ignore + public static S_RESIZE_CURSOR: number; + // @ts-ignore + public static W_RESIZE_CURSOR: number; + // @ts-ignore + public static E_RESIZE_CURSOR: number; + // @ts-ignore + public static HAND_CURSOR: number; + // @ts-ignore + public static MOVE_CURSOR: number; + // @ts-ignore + protected static predefined: java.awt.Cursor[]; + // @ts-ignore + public static CUSTOM_CURSOR: number; + // @ts-ignore + protected name: string; + /** + * Returns a cursor object with the specified predefined type. + */ + // @ts-ignore + public static getPredefinedCursor(type: number): java.awt.Cursor; + /** + * Returns a system-specific custom cursor object matching the + * specified name. Cursor names are, for example: "Invalid.16x16" + */ + // @ts-ignore + public static getSystemCustomCursor(name: string): java.awt.Cursor; + /** + * Return the system default cursor. + */ + // @ts-ignore + public static getDefaultCursor(): java.awt.Cursor; + /** + * Returns the type for this cursor. + */ + // @ts-ignore + public getType(): number; + /** + * Returns the name of this cursor. + */ + // @ts-ignore + public getName(): string; + /** + * Returns a string representation of this cursor. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.DefaultFocusTraversalPolicy.d.ts b/packages/types/dist/typings/jdk/java.awt.DefaultFocusTraversalPolicy.d.ts new file mode 100644 index 00000000..05504a51 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.DefaultFocusTraversalPolicy.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class DefaultFocusTraversalPolicy extends java.awt.ContainerOrderFocusTraversalPolicy { + // @ts-ignore + constructor() + /** + * Determines whether a Component is an acceptable choice as the new + * focus owner. The Component must be visible, displayable, and enabled + * to be accepted. If client code has explicitly set the focusability + * of the Component by either overriding + * Component.isFocusTraversable() or + * Component.isFocusable(), or by calling + * Component.setFocusable(), then the Component will be + * accepted if and only if it is focusable. If, however, the Component is + * relying on default focusability, then all Canvases, Labels, Panels, + * Scrollbars, ScrollPanes, Windows, and lightweight Components will be + * rejected. + */ + // @ts-ignore + protected accept(aComponent: java.awt.Component): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.DefaultKeyboardFocusManager.d.ts b/packages/types/dist/typings/jdk/java.awt.DefaultKeyboardFocusManager.d.ts new file mode 100644 index 00000000..3a127330 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.DefaultKeyboardFocusManager.d.ts @@ -0,0 +1,114 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class DefaultKeyboardFocusManager extends java.awt.KeyboardFocusManager { + // @ts-ignore + constructor() + /** + * This method is called by the AWT event dispatcher requesting that the + * current KeyboardFocusManager dispatch the specified event on its behalf. + * DefaultKeyboardFocusManagers dispatch all FocusEvents, all WindowEvents + * related to focus, and all KeyEvents. These events are dispatched based + * on the KeyboardFocusManager's notion of the focus owner and the focused + * and active Windows, sometimes overriding the source of the specified + * AWTEvent. If this method returns false, then the AWT event + * dispatcher will attempt to dispatch the event itself. + */ + // @ts-ignore + public dispatchEvent(e: java.awt.AWTEvent): boolean; + /** + * Called by dispatchEvent if no other + * KeyEventDispatcher in the dispatcher chain dispatched the KeyEvent, or + * if no other KeyEventDispatchers are registered. If the event has not + * been consumed, its target is enabled, and the focus owner is not null, + * this method dispatches the event to its target. This method will also + * subsequently dispatch the event to all registered + * KeyEventPostProcessors. After all this operations are finished, + * the event is passed to peers for processing. + *

+ * In all cases, this method returns true, since + * DefaultKeyboardFocusManager is designed so that neither + * dispatchEvent, nor the AWT event dispatcher, should take + * further action on the event in any situation. + */ + // @ts-ignore + public dispatchKeyEvent(e: java.awt.event.KeyEvent): boolean; + /** + * This method will be called by dispatchKeyEvent. It will + * handle any unconsumed KeyEvents that map to an AWT + * MenuShortcut by consuming the event and activating the + * shortcut. + */ + // @ts-ignore + public postProcessKeyEvent(e: java.awt.event.KeyEvent): boolean; + /** + * This method initiates a focus traversal operation if and only if the + * KeyEvent represents a focus traversal key for the specified + * focusedComponent. It is expected that focusedComponent is the current + * focus owner, although this need not be the case. If it is not, + * focus traversal will nevertheless proceed as if focusedComponent + * were the focus owner. + */ + // @ts-ignore + public processKeyEvent(focusedComponent: java.awt.Component, e: java.awt.event.KeyEvent): void; + /** + * Delays dispatching of KeyEvents until the specified Component becomes + * the focus owner. KeyEvents with timestamps later than the specified + * timestamp will be enqueued until the specified Component receives a + * FOCUS_GAINED event, or the AWT cancels the delay request by invoking + * dequeueKeyEvents or discardKeyEvents. + */ + // @ts-ignore + protected enqueueKeyEvents(after: number, untilFocused: java.awt.Component): void; + /** + * Releases for normal dispatching to the current focus owner all + * KeyEvents which were enqueued because of a call to + * enqueueKeyEvents with the same timestamp and Component. + * If the given timestamp is less than zero, the outstanding enqueue + * request for the given Component with the oldest timestamp (if + * any) should be cancelled. + */ + // @ts-ignore + protected dequeueKeyEvents(after: number, untilFocused: java.awt.Component): void; + /** + * Discards all KeyEvents which were enqueued because of one or more calls + * to enqueueKeyEvents with the specified Component, or one of + * its descendants. + */ + // @ts-ignore + protected discardKeyEvents(comp: java.awt.Component): void; + /** + * Focuses the Component before aComponent, typically based on a + * FocusTraversalPolicy. + */ + // @ts-ignore + public focusPreviousComponent(aComponent: java.awt.Component): void; + /** + * Focuses the Component after aComponent, typically based on a + * FocusTraversalPolicy. + */ + // @ts-ignore + public focusNextComponent(aComponent: java.awt.Component): void; + /** + * Moves the focus up one focus traversal cycle. Typically, the focus owner + * is set to aComponent's focus cycle root, and the current focus cycle + * root is set to the new focus owner's focus cycle root. If, however, + * aComponent's focus cycle root is a Window, then the focus owner is set + * to the focus cycle root's default Component to focus, and the current + * focus cycle root is unchanged. + */ + // @ts-ignore + public upFocusCycle(aComponent: java.awt.Component): void; + /** + * Moves the focus down one focus traversal cycle. If aContainer is a focus + * cycle root, then the focus owner is set to aContainer's default + * Component to focus, and the current focus cycle root is set to + * aContainer. If aContainer is not a focus cycle root, then no focus + * traversal operation occurs. + */ + // @ts-ignore + public downFocusCycle(aContainer: java.awt.Container): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Desktop.Action.d.ts b/packages/types/dist/typings/jdk/java.awt.Desktop.Action.d.ts new file mode 100644 index 00000000..a5a6c425 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Desktop.Action.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace Desktop { + // @ts-ignore + class Action extends java.lang.Enum { + // @ts-ignore + public static OPEN: java.awt.Desktop.Action; + // @ts-ignore + public static EDIT: java.awt.Desktop.Action; + // @ts-ignore + public static PRINT: java.awt.Desktop.Action; + // @ts-ignore + public static MAIL: java.awt.Desktop.Action; + // @ts-ignore + public static BROWSE: java.awt.Desktop.Action; + // @ts-ignore + public static values(): java.awt.Desktop.Action[]; + // @ts-ignore + public static valueOf(name: string): java.awt.Desktop.Action; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Desktop.d.ts b/packages/types/dist/typings/jdk/java.awt.Desktop.d.ts new file mode 100644 index 00000000..022cc0b9 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Desktop.d.ts @@ -0,0 +1,90 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class Desktop extends java.lang.Object { + /** + * Returns the Desktop instance of the current + * browser context. On some platforms the Desktop API may not be + * supported; use the {@link #isDesktopSupported} method to + * determine if the current desktop is supported. + */ + // @ts-ignore + public static getDesktop(): java.awt.Desktop; + /** + * Tests whether this class is supported on the current platform. + * If it's supported, use {@link #getDesktop()} to retrieve an + * instance. + */ + // @ts-ignore + public static isDesktopSupported(): boolean; + /** + * Tests whether an action is supported on the current platform. + *

Even when the platform supports an action, a file or URI may + * not have a registered application for the action. For example, + * most of the platforms support the {@link Desktop.Action#OPEN} + * action. But for a specific file, there may not be an + * application registered to open it. In this case, {@link + * #isSupported} may return {@code true}, but the corresponding + * action method will throw an {@link IOException}. + */ + // @ts-ignore + public isSupported(action: java.awt.Desktop.Action): boolean; + /** + * Launches the associated application to open the file. + *

If the specified file is a directory, the file manager of + * the current platform is launched to open it. + */ + // @ts-ignore + public open(file: java.io.File): void; + /** + * Launches the associated editor application and opens a file for + * editing. + */ + // @ts-ignore + public edit(file: java.io.File): void; + /** + * Prints a file with the native desktop printing facility, using + * the associated application's print command. + */ + // @ts-ignore + public print(file: java.io.File): void; + /** + * Launches the default browser to display a {@code URI}. + * If the default browser is not able to handle the specified + * {@code URI}, the application registered for handling + * {@code URIs} of the specified type is invoked. The application + * is determined from the protocol and path of the {@code URI}, as + * defined by the {@code URI} class. + *

+ * If the calling thread does not have the necessary permissions, + * and this is invoked from within an applet, + * {@code AppletContext.showDocument()} is used. Similarly, if the calling + * does not have the necessary permissions, and this is invoked from within + * a Java Web Started application, {@code BasicService.showDocument()} + * is used. + */ + // @ts-ignore + public browse(uri: java.net.URI): void; + /** + * Launches the mail composing window of the user default mail + * client. + */ + // @ts-ignore + public mail(): void; + /** + * Launches the mail composing window of the user default mail + * client, filling the message fields specified by a {@code + * mailto:} URI. + *

A mailto: URI can specify message fields + * including "to", "cc", "subject", + * "body", etc. See The mailto URL + * scheme (RFC 2368) for the {@code mailto:} URI specification + * details. + */ + // @ts-ignore + public mail(mailtoURI: java.net.URI): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Dialog.AccessibleAWTDialog.d.ts b/packages/types/dist/typings/jdk/java.awt.Dialog.AccessibleAWTDialog.d.ts new file mode 100644 index 00000000..d27952dd --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Dialog.AccessibleAWTDialog.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace Dialog { + // @ts-ignore + protected class AccessibleAWTDialog extends java.awt.Window.AccessibleAWTWindow { + // @ts-ignore + constructor() + /** + * Get the role of this object. + */ + // @ts-ignore + public getAccessibleRole(): any /*javax.accessibility.AccessibleRole*/; + /** + * Get the state of this object. + */ + // @ts-ignore + public getAccessibleStateSet(): any /*javax.accessibility.AccessibleStateSet*/; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Dialog.ModalExclusionType.d.ts b/packages/types/dist/typings/jdk/java.awt.Dialog.ModalExclusionType.d.ts new file mode 100644 index 00000000..54af1237 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Dialog.ModalExclusionType.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace Dialog { + // @ts-ignore + class ModalExclusionType extends java.lang.Enum { + // @ts-ignore + public static NO_EXCLUDE: java.awt.Dialog.ModalExclusionType; + // @ts-ignore + public static APPLICATION_EXCLUDE: java.awt.Dialog.ModalExclusionType; + // @ts-ignore + public static TOOLKIT_EXCLUDE: java.awt.Dialog.ModalExclusionType; + // @ts-ignore + public static values(): java.awt.Dialog.ModalExclusionType[]; + // @ts-ignore + public static valueOf(name: string): java.awt.Dialog.ModalExclusionType; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Dialog.ModalityType.d.ts b/packages/types/dist/typings/jdk/java.awt.Dialog.ModalityType.d.ts new file mode 100644 index 00000000..aff30e2b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Dialog.ModalityType.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace Dialog { + // @ts-ignore + class ModalityType extends java.lang.Enum { + // @ts-ignore + public static MODELESS: java.awt.Dialog.ModalityType; + // @ts-ignore + public static DOCUMENT_MODAL: java.awt.Dialog.ModalityType; + // @ts-ignore + public static APPLICATION_MODAL: java.awt.Dialog.ModalityType; + // @ts-ignore + public static TOOLKIT_MODAL: java.awt.Dialog.ModalityType; + // @ts-ignore + public static values(): java.awt.Dialog.ModalityType[]; + // @ts-ignore + public static valueOf(name: string): java.awt.Dialog.ModalityType; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Dialog.d.ts b/packages/types/dist/typings/jdk/java.awt.Dialog.d.ts new file mode 100644 index 00000000..51582d9e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Dialog.d.ts @@ -0,0 +1,248 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class Dialog extends java.awt.Window { + /** + * Constructs an initially invisible, modeless Dialog with + * the specified owner Frame and an empty title. + */ + // @ts-ignore + constructor(owner: java.awt.Frame) + /** + * Constructs an initially invisible Dialog with the specified + * owner Frame and modality and an empty title. + */ + // @ts-ignore + constructor(owner: java.awt.Frame, modal: boolean) + /** + * Constructs an initially invisible, modeless Dialog with + * the specified owner Frame and title. + */ + // @ts-ignore + constructor(owner: java.awt.Frame, title: string) + /** + * Constructs an initially invisible Dialog with the + * specified owner Frame, title and modality. + */ + // @ts-ignore + constructor(owner: java.awt.Frame, title: string, modal: boolean) + /** + * Constructs an initially invisible Dialog with the specified owner + * Frame, title, modality, and GraphicsConfiguration. + */ + // @ts-ignore + constructor(owner: java.awt.Frame, title: string, modal: boolean, gc: java.awt.GraphicsConfiguration) + /** + * Constructs an initially invisible, modeless Dialog with + * the specified owner Dialog and an empty title. + */ + // @ts-ignore + constructor(owner: java.awt.Dialog) + /** + * Constructs an initially invisible, modeless Dialog + * with the specified owner Dialog and title. + */ + // @ts-ignore + constructor(owner: java.awt.Dialog, title: string) + /** + * Constructs an initially invisible Dialog with the + * specified owner Dialog, title, and modality. + */ + // @ts-ignore + constructor(owner: java.awt.Dialog, title: string, modal: boolean) + /** + * Constructs an initially invisible Dialog with the + * specified owner Dialog, title, modality and + * GraphicsConfiguration. + */ + // @ts-ignore + constructor(owner: java.awt.Dialog, title: string, modal: boolean, gc: java.awt.GraphicsConfiguration) + /** + * Constructs an initially invisible, modeless Dialog with the + * specified owner Window and an empty title. + */ + // @ts-ignore + constructor(owner: java.awt.Window) + /** + * Constructs an initially invisible, modeless Dialog with + * the specified owner Window and title. + */ + // @ts-ignore + constructor(owner: java.awt.Window, title: string) + /** + * Constructs an initially invisible Dialog with the + * specified owner Window and modality and an empty title. + */ + // @ts-ignore + constructor(owner: java.awt.Window, modalityType: java.awt.Dialog.ModalityType) + /** + * Constructs an initially invisible Dialog with the + * specified owner Window, title and modality. + */ + // @ts-ignore + constructor(owner: java.awt.Window, title: string, modalityType: java.awt.Dialog.ModalityType) + /** + * Constructs an initially invisible Dialog with the + * specified owner Window, title, modality and + * GraphicsConfiguration. + */ + // @ts-ignore + constructor(owner: java.awt.Window, title: string, modalityType: java.awt.Dialog.ModalityType, gc: java.awt.GraphicsConfiguration) + // @ts-ignore + public static DEFAULT_MODALITY_TYPE: java.awt.Dialog.ModalityType; + /** + * Makes this Dialog displayable by connecting it to + * a native screen resource. Making a dialog displayable will + * cause any of its children to be made displayable. + * This method is called internally by the toolkit and should + * not be called directly by programs. + */ + // @ts-ignore + public addNotify(): void; + /** + * Indicates whether the dialog is modal. + *

+ * This method is obsolete and is kept for backwards compatibility only. + * Use {@link #getModalityType getModalityType()} instead. + */ + // @ts-ignore + public isModal(): boolean; + /** + * Specifies whether this dialog should be modal. + *

+ * This method is obsolete and is kept for backwards compatibility only. + * Use {@link #setModalityType setModalityType()} instead. + *

+ * Note: changing modality of the visible dialog may have no effect + * until it is hidden and then shown again. + */ + // @ts-ignore + public setModal(modal: boolean): void; + /** + * Returns the modality type of this dialog. + */ + // @ts-ignore + public getModalityType(): java.awt.Dialog.ModalityType; + /** + * Sets the modality type for this dialog. See {@link + * java.awt.Dialog.ModalityType ModalityType} for possible modality types. + *

+ * If the given modality type is not supported, MODELESS + * is used. You may want to call getModalityType() after calling + * this method to ensure that the modality type has been set. + *

+ * Note: changing modality of the visible dialog may have no effect + * until it is hidden and then shown again. + */ + // @ts-ignore + public setModalityType(type: java.awt.Dialog.ModalityType): void; + /** + * Gets the title of the dialog. The title is displayed in the + * dialog's border. + */ + // @ts-ignore + public getTitle(): string; + /** + * Sets the title of the Dialog. + */ + // @ts-ignore + public setTitle(title: string): void; + /** + * Shows or hides this {@code Dialog} depending on the value of parameter + * {@code b}. + */ + // @ts-ignore + public setVisible(b: boolean): void; + /** + * Makes the {@code Dialog} visible. If the dialog and/or its owner + * are not yet displayable, both are made displayable. The + * dialog will be validated prior to being made visible. + * If the dialog is already visible, this will bring the dialog + * to the front. + *

+ * If the dialog is modal and is not already visible, this call + * will not return until the dialog is hidden by calling hide or + * dispose. It is permissible to show modal dialogs from the event + * dispatching thread because the toolkit will ensure that another + * event pump runs while the one which invoked this method is blocked. + */ + // @ts-ignore + public show(): void; + /** + * Hides the Dialog and then causes {@code show} to return if it is currently + * blocked. + */ + // @ts-ignore + public hide(): void; + /** + * {@inheritDoc} + *

+ * If this dialog is modal and blocks some windows, then all of them are + * also sent to the back to keep them below the blocking dialog. + */ + // @ts-ignore + public toBack(): void; + /** + * Indicates whether this dialog is resizable by the user. + * By default, all dialogs are initially resizable. + */ + // @ts-ignore + public isResizable(): boolean; + /** + * Sets whether this dialog is resizable by the user. + */ + // @ts-ignore + public setResizable(resizable: boolean): void; + /** + * Disables or enables decorations for this dialog. + *

+ * This method can only be called while the dialog is not displayable. To + * make this dialog decorated, it must be opaque and have the default shape, + * otherwise the {@code IllegalComponentStateException} will be thrown. + * Refer to {@link Window#setShape}, {@link Window#setOpacity} and {@link + * Window#setBackground} for details + */ + // @ts-ignore + public setUndecorated(undecorated: boolean): void; + /** + * Indicates whether this dialog is undecorated. + * By default, all dialogs are initially decorated. + */ + // @ts-ignore + public isUndecorated(): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public setOpacity(opacity: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public setShape(shape: java.awt.Shape): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public setBackground(bgColor: java.awt.Color): void; + /** + * Returns a string representing the state of this dialog. This + * method is intended to be used only for debugging purposes, and the + * content and format of the returned string may vary between + * implementations. The returned string may be empty but may not be + * null. + */ + // @ts-ignore + protected paramString(): string; + /** + * Gets the AccessibleContext associated with this Dialog. + * For dialogs, the AccessibleContext takes the form of an + * AccessibleAWTDialog. + * A new AccessibleAWTDialog instance is created if necessary. + */ + // @ts-ignore + public getAccessibleContext(): any /*javax.accessibility.AccessibleContext*/; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Dimension.d.ts b/packages/types/dist/typings/jdk/java.awt.Dimension.d.ts new file mode 100644 index 00000000..b1540e0e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Dimension.d.ts @@ -0,0 +1,91 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class Dimension extends java.awt.geom.Dimension2D { + /** + * Creates an instance of Dimension with a width + * of zero and a height of zero. + */ + // @ts-ignore + constructor() + /** + * Creates an instance of Dimension whose width + * and height are the same as for the specified dimension. + */ + // @ts-ignore + constructor(d: java.awt.Dimension) + /** + * Constructs a Dimension and initializes + * it to the specified width and specified height. + */ + // @ts-ignore + constructor(width: number, height: number) + // @ts-ignore + public width: number; + // @ts-ignore + public height: number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getWidth(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getHeight(): number; + /** + * Sets the size of this Dimension object to + * the specified width and height in double precision. + * Note that if width or height + * are larger than Integer.MAX_VALUE, they will + * be reset to Integer.MAX_VALUE. + */ + // @ts-ignore + public setSize(width: number, height: number): void; + /** + * Gets the size of this Dimension object. + * This method is included for completeness, to parallel the + * getSize method defined by Component. + */ + // @ts-ignore + public getSize(): java.awt.Dimension; + /** + * Sets the size of this Dimension object to the specified size. + * This method is included for completeness, to parallel the + * setSize method defined by Component. + */ + // @ts-ignore + public setSize(d: java.awt.Dimension): void; + /** + * Sets the size of this Dimension object + * to the specified width and height. + * This method is included for completeness, to parallel the + * setSize method defined by Component. + */ + // @ts-ignore + public setSize(width: number, height: number): void; + /** + * Checks whether two dimension objects have equal values. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns the hash code for this Dimension. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns a string representation of the values of this + * Dimension object's height and + * width fields. This method is intended to be used only + * for debugging purposes, and the content and format of the returned + * string may vary between implementations. The returned string may be + * empty but may not be null. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.DisplayMode.d.ts b/packages/types/dist/typings/jdk/java.awt.DisplayMode.d.ts new file mode 100644 index 00000000..949f0f6d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.DisplayMode.d.ts @@ -0,0 +1,55 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class DisplayMode extends java.lang.Object { + /** + * Create a new display mode object with the supplied parameters. + */ + // @ts-ignore + constructor(width: number, height: number, bitDepth: number, refreshRate: number) + // @ts-ignore + public static BIT_DEPTH_MULTI: number; + // @ts-ignore + public static REFRESH_RATE_UNKNOWN: number; + /** + * Returns the height of the display, in pixels. + */ + // @ts-ignore + public getHeight(): number; + /** + * Returns the width of the display, in pixels. + */ + // @ts-ignore + public getWidth(): number; + /** + * Returns the bit depth of the display, in bits per pixel. This may be + * BIT_DEPTH_MULTI if multiple bit depths are supported in + * this display mode. + */ + // @ts-ignore + public getBitDepth(): number; + /** + * Returns the refresh rate of the display, in hertz. This may be + * REFRESH_RATE_UNKNOWN if the information is not available. + */ + // @ts-ignore + public getRefreshRate(): number; + /** + * Returns whether the two display modes are equal. + */ + // @ts-ignore + public equals(dm: java.awt.DisplayMode): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public equals(dm: java.lang.Object): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public hashCode(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Event.d.ts b/packages/types/dist/typings/jdk/java.awt.Event.d.ts new file mode 100644 index 00000000..4a4c3c48 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Event.d.ts @@ -0,0 +1,255 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class Event extends java.lang.Object { + /** + * NOTE: The Event class is obsolete and is + * available only for backwards compatibility. It has been replaced + * by the AWTEvent class and its subclasses. + *

+ * Creates an instance of Event with the specified target + * component, time stamp, event type, x and y + * coordinates, keyboard key, state of the modifier keys, and + * argument. + */ + // @ts-ignore + constructor(target: java.lang.Object, when: number, id: number, x: number, y: number, key: number, modifiers: number, arg: java.lang.Object) + /** + * NOTE: The Event class is obsolete and is + * available only for backwards compatibility. It has been replaced + * by the AWTEvent class and its subclasses. + *

+ * Creates an instance of Event, with the specified target + * component, time stamp, event type, x and y + * coordinates, keyboard key, state of the modifier keys, and an + * argument set to null. + */ + // @ts-ignore + constructor(target: java.lang.Object, when: number, id: number, x: number, y: number, key: number, modifiers: number) + /** + * NOTE: The Event class is obsolete and is + * available only for backwards compatibility. It has been replaced + * by the AWTEvent class and its subclasses. + *

+ * Creates an instance of Event with the specified + * target component, event type, and argument. + */ + // @ts-ignore + constructor(target: java.lang.Object, id: number, arg: java.lang.Object) + // @ts-ignore + public static SHIFT_MASK: number; + // @ts-ignore + public static CTRL_MASK: number; + // @ts-ignore + public static META_MASK: number; + // @ts-ignore + public static ALT_MASK: number; + // @ts-ignore + public static HOME: number; + // @ts-ignore + public static END: number; + // @ts-ignore + public static PGUP: number; + // @ts-ignore + public static PGDN: number; + // @ts-ignore + public static UP: number; + // @ts-ignore + public static DOWN: number; + // @ts-ignore + public static LEFT: number; + // @ts-ignore + public static RIGHT: number; + // @ts-ignore + public static F1: number; + // @ts-ignore + public static F2: number; + // @ts-ignore + public static F3: number; + // @ts-ignore + public static F4: number; + // @ts-ignore + public static F5: number; + // @ts-ignore + public static F6: number; + // @ts-ignore + public static F7: number; + // @ts-ignore + public static F8: number; + // @ts-ignore + public static F9: number; + // @ts-ignore + public static F10: number; + // @ts-ignore + public static F11: number; + // @ts-ignore + public static F12: number; + // @ts-ignore + public static PRINT_SCREEN: number; + // @ts-ignore + public static SCROLL_LOCK: number; + // @ts-ignore + public static CAPS_LOCK: number; + // @ts-ignore + public static NUM_LOCK: number; + // @ts-ignore + public static PAUSE: number; + // @ts-ignore + public static INSERT: number; + // @ts-ignore + public static ENTER: number; + // @ts-ignore + public static BACK_SPACE: number; + // @ts-ignore + public static TAB: number; + // @ts-ignore + public static ESCAPE: number; + // @ts-ignore + public static DELETE: number; + // @ts-ignore + public static WINDOW_DESTROY: number; + // @ts-ignore + public static WINDOW_EXPOSE: number; + // @ts-ignore + public static WINDOW_ICONIFY: number; + // @ts-ignore + public static WINDOW_DEICONIFY: number; + // @ts-ignore + public static WINDOW_MOVED: number; + // @ts-ignore + public static KEY_PRESS: number; + // @ts-ignore + public static KEY_RELEASE: number; + // @ts-ignore + public static KEY_ACTION: number; + // @ts-ignore + public static KEY_ACTION_RELEASE: number; + // @ts-ignore + public static MOUSE_DOWN: number; + // @ts-ignore + public static MOUSE_UP: number; + // @ts-ignore + public static MOUSE_MOVE: number; + // @ts-ignore + public static MOUSE_ENTER: number; + // @ts-ignore + public static MOUSE_EXIT: number; + // @ts-ignore + public static MOUSE_DRAG: number; + // @ts-ignore + public static SCROLL_LINE_UP: number; + // @ts-ignore + public static SCROLL_LINE_DOWN: number; + // @ts-ignore + public static SCROLL_PAGE_UP: number; + // @ts-ignore + public static SCROLL_PAGE_DOWN: number; + // @ts-ignore + public static SCROLL_ABSOLUTE: number; + // @ts-ignore + public static SCROLL_BEGIN: number; + // @ts-ignore + public static SCROLL_END: number; + // @ts-ignore + public static LIST_SELECT: number; + // @ts-ignore + public static LIST_DESELECT: number; + // @ts-ignore + public static ACTION_EVENT: number; + // @ts-ignore + public static LOAD_FILE: number; + // @ts-ignore + public static SAVE_FILE: number; + // @ts-ignore + public static GOT_FOCUS: number; + // @ts-ignore + public static LOST_FOCUS: number; + // @ts-ignore + public target: java.lang.Object; + // @ts-ignore + public when: number; + // @ts-ignore + public id: number; + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public key: number; + // @ts-ignore + public modifiers: number; + // @ts-ignore + public clickCount: number; + // @ts-ignore + public arg: java.lang.Object; + // @ts-ignore + public evt: java.awt.Event; + /** + * NOTE: The Event class is obsolete and is + * available only for backwards compatibility. It has been replaced + * by the AWTEvent class and its subclasses. + *

+ * Translates this event so that its x and y + * coordinates are increased by dx and dy, + * respectively. + *

+ * This method translates an event relative to the given component. + * This involves, at a minimum, translating the coordinates into the + * local coordinate system of the given component. It may also involve + * translating a region in the case of an expose event. + */ + // @ts-ignore + public translate(dx: number, dy: number): void; + /** + * NOTE: The Event class is obsolete and is + * available only for backwards compatibility. It has been replaced + * by the AWTEvent class and its subclasses. + *

+ * Checks if the Shift key is down. + */ + // @ts-ignore + public shiftDown(): boolean; + /** + * NOTE: The Event class is obsolete and is + * available only for backwards compatibility. It has been replaced + * by the AWTEvent class and its subclasses. + *

+ * Checks if the Control key is down. + */ + // @ts-ignore + public controlDown(): boolean; + /** + * NOTE: The Event class is obsolete and is + * available only for backwards compatibility. It has been replaced + * by the AWTEvent class and its subclasses. + *

+ * Checks if the Meta key is down. + */ + // @ts-ignore + public metaDown(): boolean; + /** + * NOTE: The Event class is obsolete and is + * available only for backwards compatibility. It has been replaced + * by the AWTEvent class and its subclasses. + *

+ * Returns a string representing the state of this Event. + * This method is intended to be used only for debugging purposes, and the + * content and format of the returned string may vary between + * implementations. The returned string may be empty but may not be + * null. + */ + // @ts-ignore + protected paramString(): string; + /** + * NOTE: The Event class is obsolete and is + * available only for backwards compatibility. It has been replaced + * by the AWTEvent class and its subclasses. + *

+ * Returns a representation of this event's values as a string. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.EventQueue.d.ts b/packages/types/dist/typings/jdk/java.awt.EventQueue.d.ts new file mode 100644 index 00000000..0c6f0004 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.EventQueue.d.ts @@ -0,0 +1,157 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class EventQueue extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Posts a 1.1-style event to the EventQueue. + * If there is an existing event on the queue with the same ID + * and event source, the source Component's + * coalesceEvents method will be called. + */ + // @ts-ignore + public postEvent(theEvent: java.awt.AWTEvent): void; + /** + * Removes an event from the EventQueue and + * returns it. This method will block until an event has + * been posted by another thread. + */ + // @ts-ignore + public getNextEvent(): java.awt.AWTEvent; + /** + * Returns the first event on the EventQueue + * without removing it. + */ + // @ts-ignore + public peekEvent(): java.awt.AWTEvent; + /** + * Returns the first event with the specified id, if any. + */ + // @ts-ignore + public peekEvent(id: number): java.awt.AWTEvent; + /** + * Dispatches an event. The manner in which the event is + * dispatched depends upon the type of the event and the + * type of the event's source object: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Event TypeSource TypeDispatched To
ActiveEventAnyevent.dispatch()
OtherComponentsource.dispatchEvent(AWTEvent)
OtherMenuComponentsource.dispatchEvent(AWTEvent)
OtherOtherNo action (ignored)
+ *

+ */ + // @ts-ignore + protected dispatchEvent(event: java.awt.AWTEvent): void; + /** + * Returns the timestamp of the most recent event that had a timestamp, and + * that was dispatched from the EventQueue associated with the + * calling thread. If an event with a timestamp is currently being + * dispatched, its timestamp will be returned. If no events have yet + * been dispatched, the EventQueue's initialization time will be + * returned instead.In the current version of + * the JDK, only InputEvents, + * ActionEvents, and InvocationEvents have + * timestamps; however, future versions of the JDK may add timestamps to + * additional event types. Note that this method should only be invoked + * from an application's {@link #isDispatchThread event dispatching thread}. + * If this method is + * invoked from another thread, the current system time (as reported by + * System.currentTimeMillis()) will be returned instead. + */ + // @ts-ignore + public static getMostRecentEventTime(): number; + /** + * Returns the the event currently being dispatched by the + * EventQueue associated with the calling thread. This is + * useful if a method needs access to the event, but was not designed to + * receive a reference to it as an argument. Note that this method should + * only be invoked from an application's event dispatching thread. If this + * method is invoked from another thread, null will be returned. + */ + // @ts-ignore + public static getCurrentEvent(): java.awt.AWTEvent; + /** + * Replaces the existing EventQueue with the specified one. + * Any pending events are transferred to the new EventQueue + * for processing by it. + */ + // @ts-ignore + public push(newEventQueue: java.awt.EventQueue): void; + /** + * Stops dispatching events using this EventQueue. + * Any pending events are transferred to the previous + * EventQueue for processing. + *

+ * Warning: To avoid deadlock, do not declare this method + * synchronized in a subclass. + */ + // @ts-ignore + protected pop(): void; + /** + * Creates a new {@code secondary loop} associated with this + * event queue. Use the {@link SecondaryLoop#enter} and + * {@link SecondaryLoop#exit} methods to start and stop the + * event loop and dispatch the events from this queue. + */ + // @ts-ignore + public createSecondaryLoop(): java.awt.SecondaryLoop; + /** + * Returns true if the calling thread is + * {@link Toolkit#getSystemEventQueue the current AWT EventQueue}'s + * dispatch thread. Use this method to ensure that a particular + * task is being executed (or not being) there. + *

+ * Note: use the {@link #invokeLater} or {@link #invokeAndWait} + * methods to execute a task in + * {@link Toolkit#getSystemEventQueue the current AWT EventQueue}'s + * dispatch thread. + *

+ */ + // @ts-ignore + public static isDispatchThread(): boolean; + /** + * Causes runnable to have its run + * method called in the {@link #isDispatchThread dispatch thread} of + * {@link Toolkit#getSystemEventQueue the system EventQueue}. + * This will happen after all pending events are processed. + */ + // @ts-ignore + public static invokeLater(runnable: java.lang.Runnable): void; + /** + * Causes runnable to have its run + * method called in the {@link #isDispatchThread dispatch thread} of + * {@link Toolkit#getSystemEventQueue the system EventQueue}. + * This will happen after all pending events are processed. + * The call blocks until this has happened. This method + * will throw an Error if called from the + * {@link #isDispatchThread event dispatcher thread}. + */ + // @ts-ignore + public static invokeAndWait(runnable: java.lang.Runnable): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.FileDialog.d.ts b/packages/types/dist/typings/jdk/java.awt.FileDialog.d.ts new file mode 100644 index 00000000..8dfd69b0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.FileDialog.d.ts @@ -0,0 +1,170 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class FileDialog extends java.awt.Dialog { + /** + * Creates a file dialog for loading a file. The title of the + * file dialog is initially empty. This is a convenience method for + * FileDialog(parent, "", LOAD). + */ + // @ts-ignore + constructor(parent: java.awt.Frame) + /** + * Creates a file dialog window with the specified title for loading + * a file. The files shown are those in the current directory. + * This is a convenience method for + * FileDialog(parent, title, LOAD). + */ + // @ts-ignore + constructor(parent: java.awt.Frame, title: string) + /** + * Creates a file dialog window with the specified title for loading + * or saving a file. + *

+ * If the value of mode is LOAD, then the + * file dialog is finding a file to read, and the files shown are those + * in the current directory. If the value of + * mode is SAVE, the file dialog is finding + * a place to write a file. + */ + // @ts-ignore + constructor(parent: java.awt.Frame, title: string, mode: number) + /** + * Creates a file dialog for loading a file. The title of the + * file dialog is initially empty. This is a convenience method for + * FileDialog(parent, "", LOAD). + */ + // @ts-ignore + constructor(parent: java.awt.Dialog) + /** + * Creates a file dialog window with the specified title for loading + * a file. The files shown are those in the current directory. + * This is a convenience method for + * FileDialog(parent, title, LOAD). + */ + // @ts-ignore + constructor(parent: java.awt.Dialog, title: string) + /** + * Creates a file dialog window with the specified title for loading + * or saving a file. + *

+ * If the value of mode is LOAD, then the + * file dialog is finding a file to read, and the files shown are those + * in the current directory. If the value of + * mode is SAVE, the file dialog is finding + * a place to write a file. + */ + // @ts-ignore + constructor(parent: java.awt.Dialog, title: string, mode: number) + // @ts-ignore + public static LOAD: number; + // @ts-ignore + public static SAVE: number; + /** + * Creates the file dialog's peer. The peer allows us to change the look + * of the file dialog without changing its functionality. + */ + // @ts-ignore + public addNotify(): void; + /** + * Indicates whether this file dialog box is for loading from a file + * or for saving to a file. + */ + // @ts-ignore + public getMode(): number; + /** + * Sets the mode of the file dialog. If mode is not + * a legal value, an exception will be thrown and mode + * will not be set. + */ + // @ts-ignore + public setMode(mode: number): void; + /** + * Gets the directory of this file dialog. + */ + // @ts-ignore + public getDirectory(): string; + /** + * Sets the directory of this file dialog window to be the + * specified directory. Specifying a null or an + * invalid directory implies an implementation-defined default. + * This default will not be realized, however, until the user + * has selected a file. Until this point, getDirectory() + * will return the value passed into this method. + *

+ * Specifying "" as the directory is exactly equivalent to + * specifying null as the directory. + */ + // @ts-ignore + public setDirectory(dir: string): void; + /** + * Gets the selected file of this file dialog. If the user + * selected CANCEL, the returned file is null. + */ + // @ts-ignore + public getFile(): string; + /** + * Returns files that the user selects. + *

+ * If the user cancels the file dialog, + * then the method returns an empty array. + */ + // @ts-ignore + public getFiles(): java.io.File[]; + /** + * Sets the selected file for this file dialog window to be the + * specified file. This file becomes the default file if it is set + * before the file dialog window is first shown. + *

+ * When the dialog is shown, the specified file is selected. The kind of + * selection depends on the file existence, the dialog type, and the native + * platform. E.g., the file could be highlighted in the file list, or a + * file name editbox could be populated with the file name. + *

+ * This method accepts either a full file path, or a file name with an + * extension if used together with the {@code setDirectory} method. + *

+ * Specifying "" as the file is exactly equivalent to specifying + * {@code null} as the file. + */ + // @ts-ignore + public setFile(file: string): void; + /** + * Enables or disables multiple file selection for the file dialog. + */ + // @ts-ignore + public setMultipleMode(enable: boolean): void; + /** + * Returns whether the file dialog allows the multiple file selection. + */ + // @ts-ignore + public isMultipleMode(): boolean; + /** + * Determines this file dialog's filename filter. A filename filter + * allows the user to specify which files appear in the file dialog + * window. Filename filters do not function in Sun's reference + * implementation for Microsoft Windows. + */ + // @ts-ignore + public getFilenameFilter(): java.io.FilenameFilter; + /** + * Sets the filename filter for this file dialog window to the + * specified filter. + * Filename filters do not function in Sun's reference + * implementation for Microsoft Windows. + */ + // @ts-ignore + public setFilenameFilter(filter: java.io.FilenameFilter): void; + /** + * Returns a string representing the state of this FileDialog + * window. This method is intended to be used only for debugging purposes, + * and the content and format of the returned string may vary between + * implementations. The returned string may be empty but may not be + * null. + */ + // @ts-ignore + protected paramString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.FlowLayout.d.ts b/packages/types/dist/typings/jdk/java.awt.FlowLayout.d.ts new file mode 100644 index 00000000..907637be --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.FlowLayout.d.ts @@ -0,0 +1,146 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class FlowLayout extends java.lang.Object { + /** + * Constructs a new FlowLayout with a centered alignment and a + * default 5-unit horizontal and vertical gap. + */ + // @ts-ignore + constructor() + /** + * Constructs a new FlowLayout with the specified + * alignment and a default 5-unit horizontal and vertical gap. + * The value of the alignment argument must be one of + * FlowLayout.LEFT, FlowLayout.RIGHT, + * FlowLayout.CENTER, FlowLayout.LEADING, + * or FlowLayout.TRAILING. + */ + // @ts-ignore + constructor(align: number) + /** + * Creates a new flow layout manager with the indicated alignment + * and the indicated horizontal and vertical gaps. + *

+ * The value of the alignment argument must be one of + * FlowLayout.LEFT, FlowLayout.RIGHT, + * FlowLayout.CENTER, FlowLayout.LEADING, + * or FlowLayout.TRAILING. + */ + // @ts-ignore + constructor(align: number, hgap: number, vgap: number) + // @ts-ignore + public static LEFT: number; + // @ts-ignore + public static CENTER: number; + // @ts-ignore + public static RIGHT: number; + // @ts-ignore + public static LEADING: number; + // @ts-ignore + public static TRAILING: number; + /** + * Gets the alignment for this layout. + * Possible values are FlowLayout.LEFT, + * FlowLayout.RIGHT, FlowLayout.CENTER, + * FlowLayout.LEADING, + * or FlowLayout.TRAILING. + */ + // @ts-ignore + public getAlignment(): number; + /** + * Sets the alignment for this layout. + * Possible values are + *

    + *
  • FlowLayout.LEFT + *
  • FlowLayout.RIGHT + *
  • FlowLayout.CENTER + *
  • FlowLayout.LEADING + *
  • FlowLayout.TRAILING + *
+ */ + // @ts-ignore + public setAlignment(align: number): void; + /** + * Gets the horizontal gap between components + * and between the components and the borders + * of the Container + */ + // @ts-ignore + public getHgap(): number; + /** + * Sets the horizontal gap between components and + * between the components and the borders of the + * Container. + */ + // @ts-ignore + public setHgap(hgap: number): void; + /** + * Gets the vertical gap between components and + * between the components and the borders of the + * Container. + */ + // @ts-ignore + public getVgap(): number; + /** + * Sets the vertical gap between components and between + * the components and the borders of the Container. + */ + // @ts-ignore + public setVgap(vgap: number): void; + /** + * Sets whether or not components should be vertically aligned along their + * baseline. Components that do not have a baseline will be centered. + * The default is false. + */ + // @ts-ignore + public setAlignOnBaseline(alignOnBaseline: boolean): void; + /** + * Returns true if components are to be vertically aligned along + * their baseline. The default is false. + */ + // @ts-ignore + public getAlignOnBaseline(): boolean; + /** + * Adds the specified component to the layout. + * Not used by this class. + */ + // @ts-ignore + public addLayoutComponent(name: string, comp: java.awt.Component): void; + /** + * Removes the specified component from the layout. + * Not used by this class. + */ + // @ts-ignore + public removeLayoutComponent(comp: java.awt.Component): void; + /** + * Returns the preferred dimensions for this layout given the + * visible components in the specified target container. + */ + // @ts-ignore + public preferredLayoutSize(target: java.awt.Container): java.awt.Dimension; + /** + * Returns the minimum dimensions needed to layout the visible + * components contained in the specified target container. + */ + // @ts-ignore + public minimumLayoutSize(target: java.awt.Container): java.awt.Dimension; + /** + * Lays out the container. This method lets each + * visible component take + * its preferred size by reshaping the components in the + * target container in order to satisfy the alignment of + * this FlowLayout object. + */ + // @ts-ignore + public layoutContainer(target: java.awt.Container): void; + /** + * Returns a string representation of this FlowLayout + * object and its values. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.FocusTraversalPolicy.d.ts b/packages/types/dist/typings/jdk/java.awt.FocusTraversalPolicy.d.ts new file mode 100644 index 00000000..bcc6ea60 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.FocusTraversalPolicy.d.ts @@ -0,0 +1,57 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + abstract class FocusTraversalPolicy extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Returns the Component that should receive the focus after aComponent. + * aContainer must be a focus cycle root of aComponent or a focus traversal + * policy provider. + */ + // @ts-ignore + public abstract getComponentAfter(aContainer: java.awt.Container, aComponent: java.awt.Component): java.awt.Component; + /** + * Returns the Component that should receive the focus before aComponent. + * aContainer must be a focus cycle root of aComponent or a focus traversal + * policy provider. + */ + // @ts-ignore + public abstract getComponentBefore(aContainer: java.awt.Container, aComponent: java.awt.Component): java.awt.Component; + /** + * Returns the first Component in the traversal cycle. This method is used + * to determine the next Component to focus when traversal wraps in the + * forward direction. + */ + // @ts-ignore + public abstract getFirstComponent(aContainer: java.awt.Container): java.awt.Component; + /** + * Returns the last Component in the traversal cycle. This method is used + * to determine the next Component to focus when traversal wraps in the + * reverse direction. + */ + // @ts-ignore + public abstract getLastComponent(aContainer: java.awt.Container): java.awt.Component; + /** + * Returns the default Component to focus. This Component will be the first + * to receive focus when traversing down into a new focus traversal cycle + * rooted at aContainer. + */ + // @ts-ignore + public abstract getDefaultComponent(aContainer: java.awt.Container): java.awt.Component; + /** + * Returns the Component that should receive the focus when a Window is + * made visible for the first time. Once the Window has been made visible + * by a call to show() or setVisible(true), the + * initial Component will not be used again. Instead, if the Window loses + * and subsequently regains focus, or is made invisible or undisplayable + * and subsequently made visible and displayable, the Window's most + * recently focused Component will become the focus owner. The default + * implementation of this method returns the default Component. + */ + // @ts-ignore + public getInitialComponent(window: java.awt.Window): java.awt.Component; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Font.d.ts b/packages/types/dist/typings/jdk/java.awt.Font.d.ts new file mode 100644 index 00000000..08ad2ef0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Font.d.ts @@ -0,0 +1,690 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class Font extends java.lang.Object { + /** + * Creates a new Font from the specified name, style and + * point size. + *

+ * The font name can be a font face name or a font family name. + * It is used together with the style to find an appropriate font face. + * When a font family name is specified, the style argument is used to + * select the most appropriate face from the family. When a font face + * name is specified, the face's style and the style argument are + * merged to locate the best matching font from the same family. + * For example if face name "Arial Bold" is specified with style + * Font.ITALIC, the font system looks for a face in the + * "Arial" family that is bold and italic, and may associate the font + * instance with the physical font face "Arial Bold Italic". + * The style argument is merged with the specified face's style, not + * added or subtracted. + * This means, specifying a bold face and a bold style does not + * double-embolden the font, and specifying a bold face and a plain + * style does not lighten the font. + *

+ * If no face for the requested style can be found, the font system + * may apply algorithmic styling to achieve the desired style. + * For example, if ITALIC is requested, but no italic + * face is available, glyphs from the plain face may be algorithmically + * obliqued (slanted). + *

+ * Font name lookup is case insensitive, using the case folding + * rules of the US locale. + *

+ * If the name parameter represents something other than a + * logical font, i.e. is interpreted as a physical font face or family, and + * this cannot be mapped by the implementation to a physical font or a + * compatible alternative, then the font system will map the Font + * instance to "Dialog", such that for example, the family as reported + * by {@link #getFamily() getFamily} will be "Dialog". + *

+ */ + // @ts-ignore + constructor(name: string, style: number, size: number) + /** + * Creates a new Font with the specified attributes. + * Only keys defined in {@link java.awt.font.TextAttribute TextAttribute} + * are recognized. In addition the FONT attribute is + * not recognized by this constructor + * (see {@link #getAvailableAttributes}). Only attributes that have + * values of valid types will affect the new Font. + *

+ * If attributes is null, a new + * Font is initialized with default values. + */ + // @ts-ignore + constructor(attributes: java.util.Map) + /** + * Creates a new Font from the specified font. + * This constructor is intended for use by subclasses. + */ + // @ts-ignore + constructor(font: java.awt.Font) + // @ts-ignore + public static DIALOG: string; + // @ts-ignore + public static DIALOG_INPUT: string; + // @ts-ignore + public static SANS_SERIF: string; + // @ts-ignore + public static SERIF: string; + // @ts-ignore + public static MONOSPACED: string; + // @ts-ignore + public static PLAIN: number; + // @ts-ignore + public static BOLD: number; + // @ts-ignore + public static ITALIC: number; + // @ts-ignore + public static ROMAN_BASELINE: number; + // @ts-ignore + public static CENTER_BASELINE: number; + // @ts-ignore + public static HANGING_BASELINE: number; + // @ts-ignore + public static TRUETYPE_FONT: number; + // @ts-ignore + public static TYPE1_FONT: number; + // @ts-ignore + protected name: string; + // @ts-ignore + protected style: number; + // @ts-ignore + protected size: number; + // @ts-ignore + protected pointSize: number; + // @ts-ignore + public static LAYOUT_LEFT_TO_RIGHT: number; + // @ts-ignore + public static LAYOUT_RIGHT_TO_LEFT: number; + // @ts-ignore + public static LAYOUT_NO_START_CONTEXT: number; + // @ts-ignore + public static LAYOUT_NO_LIMIT_CONTEXT: number; + /** + * Gets the peer of this Font. + */ + // @ts-ignore + public getPeer(): java.awt.peer.FontPeer; + /** + * Returns a Font appropriate to the attributes. + * If attributescontains a FONT attribute + * with a valid Font as its value, it will be + * merged with any remaining attributes. See + * {@link java.awt.font.TextAttribute#FONT} for more + * information. + */ + // @ts-ignore + public static getFont(attributes: java.util.Map): java.awt.Font; + /** + * Returns a new Font using the specified font type + * and input data. The new Font is + * created with a point size of 1 and style {@link #PLAIN PLAIN}. + * This base font can then be used with the deriveFont + * methods in this class to derive new Font objects with + * varying sizes, styles, transforms and font features. This + * method does not close the {@link InputStream}. + *

+ * To make the Font available to Font constructors the + * returned Font must be registered in the + * GraphicsEnviroment by calling + * {@link GraphicsEnvironment#registerFont(Font) registerFont(Font)}. + */ + // @ts-ignore + public static createFont(fontFormat: number, fontStream: java.io.InputStream): java.awt.Font; + /** + * Returns a new Font using the specified font type + * and the specified font file. The new Font is + * created with a point size of 1 and style {@link #PLAIN PLAIN}. + * This base font can then be used with the deriveFont + * methods in this class to derive new Font objects with + * varying sizes, styles, transforms and font features. + */ + // @ts-ignore + public static createFont(fontFormat: number, fontFile: java.io.File): java.awt.Font; + /** + * Returns a copy of the transform associated with this + * Font. This transform is not necessarily the one + * used to construct the font. If the font has algorithmic + * superscripting or width adjustment, this will be incorporated + * into the returned AffineTransform. + *

+ * Typically, fonts will not be transformed. Clients generally + * should call {@link #isTransformed} first, and only call this + * method if isTransformed returns true. + */ + // @ts-ignore + public getTransform(): java.awt.geom.AffineTransform; + /** + * Returns the family name of this Font. + *

The family name of a font is font specific. Two fonts such as + * Helvetica Italic and Helvetica Bold have the same family name, + * Helvetica, whereas their font face names are + * Helvetica Bold and Helvetica Italic. The list of + * available family names may be obtained by using the + * {@link GraphicsEnvironment#getAvailableFontFamilyNames()} method. + *

Use getName to get the logical name of the font. + * Use getFontName to get the font face name of the font. + */ + // @ts-ignore + public getFamily(): string; + /** + * Returns the family name of this Font, localized for + * the specified locale. + *

The family name of a font is font specific. Two fonts such as + * Helvetica Italic and Helvetica Bold have the same family name, + * Helvetica, whereas their font face names are + * Helvetica Bold and Helvetica Italic. The list of + * available family names may be obtained by using the + * {@link GraphicsEnvironment#getAvailableFontFamilyNames()} method. + *

Use getFontName to get the font face name of the font. + */ + // @ts-ignore + public getFamily(l: java.util.Locale): string; + /** + * Returns the postscript name of this Font. + * Use getFamily to get the family name of the font. + * Use getFontName to get the font face name of the font. + */ + // @ts-ignore + public getPSName(): string; + /** + * Returns the logical name of this Font. + * Use getFamily to get the family name of the font. + * Use getFontName to get the font face name of the font. + */ + // @ts-ignore + public getName(): string; + /** + * Returns the font face name of this Font. For example, + * Helvetica Bold could be returned as a font face name. + * Use getFamily to get the family name of the font. + * Use getName to get the logical name of the font. + */ + // @ts-ignore + public getFontName(): string; + /** + * Returns the font face name of the Font, localized + * for the specified locale. For example, Helvetica Fett could be + * returned as the font face name. + * Use getFamily to get the family name of the font. + */ + // @ts-ignore + public getFontName(l: java.util.Locale): string; + /** + * Returns the style of this Font. The style can be + * PLAIN, BOLD, ITALIC, or BOLD+ITALIC. + */ + // @ts-ignore + public getStyle(): number; + /** + * Returns the point size of this Font, rounded to + * an integer. + * Most users are familiar with the idea of using point size to + * specify the size of glyphs in a font. This point size defines a + * measurement between the baseline of one line to the baseline of the + * following line in a single spaced text document. The point size is + * based on typographic points, approximately 1/72 of an inch. + *

+ * The Java(tm)2D API adopts the convention that one point is + * equivalent to one unit in user coordinates. When using a + * normalized transform for converting user space coordinates to + * device space coordinates 72 user + * space units equal 1 inch in device space. In this case one point + * is 1/72 of an inch. + */ + // @ts-ignore + public getSize(): number; + /** + * Returns the point size of this Font in + * float value. + */ + // @ts-ignore + public getSize2D(): number; + /** + * Indicates whether or not this Font object's style is + * PLAIN. + */ + // @ts-ignore + public isPlain(): boolean; + /** + * Indicates whether or not this Font object's style is + * BOLD. + */ + // @ts-ignore + public isBold(): boolean; + /** + * Indicates whether or not this Font object's style is + * ITALIC. + */ + // @ts-ignore + public isItalic(): boolean; + /** + * Indicates whether or not this Font object has a + * transform that affects its size in addition to the Size + * attribute. + */ + // @ts-ignore + public isTransformed(): boolean; + /** + * Return true if this Font contains attributes that require extra + * layout processing. + */ + // @ts-ignore + public hasLayoutAttributes(): boolean; + /** + * Returns a Font object from the system properties list. + * nm is treated as the name of a system property to be + * obtained. The String value of this property is then + * interpreted as a Font object according to the + * specification of Font.decode(String) + * If the specified property is not found, or the executing code does + * not have permission to read the property, null is returned instead. + */ + // @ts-ignore + public static getFont(nm: string): java.awt.Font; + /** + * Returns the Font that the str + * argument describes. + * To ensure that this method returns the desired Font, + * format the str parameter in + * one of these ways + *

    + *
  • fontname-style-pointsize + *
  • fontname-pointsize + *
  • fontname-style + *
  • fontname + *
  • fontname style pointsize + *
  • fontname pointsize + *
  • fontname style + *
  • fontname + *
+ * in which style is one of the four + * case-insensitive strings: + * "PLAIN", "BOLD", "BOLDITALIC", or + * "ITALIC", and pointsize is a positive decimal integer + * representation of the point size. + * For example, if you want a font that is Arial, bold, with + * a point size of 18, you would call this method with: + * "Arial-BOLD-18". + * This is equivalent to calling the Font constructor : + * new Font("Arial", Font.BOLD, 18); + * and the values are interpreted as specified by that constructor. + *

+ * A valid trailing decimal field is always interpreted as the pointsize. + * Therefore a fontname containing a trailing decimal value should not + * be used in the fontname only form. + *

+ * If a style name field is not one of the valid style strings, it is + * interpreted as part of the font name, and the default style is used. + *

+ * Only one of ' ' or '-' may be used to separate fields in the input. + * The identified separator is the one closest to the end of the string + * which separates a valid pointsize, or a valid style name from + * the rest of the string. + * Null (empty) pointsize and style fields are treated + * as valid fields with the default value for that field. + *

+ * Some font names may include the separator characters ' ' or '-'. + * If str is not formed with 3 components, e.g. such that + * style or pointsize fields are not present in + * str, and fontname also contains a + * character determined to be the separator character + * then these characters where they appear as intended to be part of + * fontname may instead be interpreted as separators + * so the font name may not be properly recognised. + *

+ * The default size is 12 and the default style is PLAIN. + * If str does not specify a valid size, the returned + * Font has a size of 12. If str does not + * specify a valid style, the returned Font has a style of PLAIN. + * If you do not specify a valid font name in + * the str argument, this method will return + * a font with the family name "Dialog". + * To determine what font family names are available on + * your system, use the + * {@link GraphicsEnvironment#getAvailableFontFamilyNames()} method. + * If str is null, a new Font + * is returned with the family name "Dialog", a size of 12 and a + * PLAIN style. + */ + // @ts-ignore + public static decode(str: string): java.awt.Font; + /** + * Gets the specified Font from the system properties + * list. As in the getProperty method of + * System, the first + * argument is treated as the name of a system property to be + * obtained. The String value of this property is then + * interpreted as a Font object. + *

+ * The property value should be one of the forms accepted by + * Font.decode(String) + * If the specified property is not found, or the executing code does not + * have permission to read the property, the font + * argument is returned instead. + */ + // @ts-ignore + public static getFont(nm: string, font: java.awt.Font): java.awt.Font; + /** + * Returns a hashcode for this Font. + */ + // @ts-ignore + public hashCode(): number; + /** + * Compares this Font object to the specified + * Object. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Converts this Font object to a String + * representation. + */ + // @ts-ignore + public toString(): string; + /** + * Returns the number of glyphs in this Font. Glyph codes + * for this Font range from 0 to + * getNumGlyphs() - 1. + */ + // @ts-ignore + public getNumGlyphs(): number; + /** + * Returns the glyphCode which is used when this Font + * does not have a glyph for a specified unicode code point. + */ + // @ts-ignore + public getMissingGlyphCode(): number; + /** + * Returns the baseline appropriate for displaying this character. + *

+ * Large fonts can support different writing systems, and each system can + * use a different baseline. + * The character argument determines the writing system to use. Clients + * should not assume all characters use the same baseline. + */ + // @ts-ignore + public getBaselineFor(c: string): number; + /** + * Returns a map of font attributes available in this + * Font. Attributes include things like ligatures and + * glyph substitution. + */ + // @ts-ignore + public getAttributes(): java.util.Map; + /** + * Returns the keys of all the attributes supported by this + * Font. These attributes can be used to derive other + * fonts. + */ + // @ts-ignore + public getAvailableAttributes(): java.text.AttributedCharacterIterator.Attribute[]; + /** + * Creates a new Font object by replicating this + * Font object and applying a new style and size. + */ + // @ts-ignore + public deriveFont(style: number, size: number): java.awt.Font; + /** + * Creates a new Font object by replicating this + * Font object and applying a new style and transform. + */ + // @ts-ignore + public deriveFont(style: number, trans: java.awt.geom.AffineTransform): java.awt.Font; + /** + * Creates a new Font object by replicating the current + * Font object and applying a new size to it. + */ + // @ts-ignore + public deriveFont(size: number): java.awt.Font; + /** + * Creates a new Font object by replicating the current + * Font object and applying a new transform to it. + */ + // @ts-ignore + public deriveFont(trans: java.awt.geom.AffineTransform): java.awt.Font; + /** + * Creates a new Font object by replicating the current + * Font object and applying a new style to it. + */ + // @ts-ignore + public deriveFont(style: number): java.awt.Font; + /** + * Creates a new Font object by replicating the current + * Font object and applying a new set of font attributes + * to it. + */ + // @ts-ignore + public deriveFont(attributes: java.util.Map): java.awt.Font; + /** + * Checks if this Font has a glyph for the specified + * character. + *

Note: This method cannot handle supplementary + * characters. To support all Unicode characters, including + * supplementary characters, use the {@link #canDisplay(int)} + * method or canDisplayUpTo methods. + */ + // @ts-ignore + public canDisplay(c: string): boolean; + /** + * Checks if this Font has a glyph for the specified + * character. + */ + // @ts-ignore + public canDisplay(codePoint: number): boolean; + /** + * Indicates whether or not this Font can display a + * specified String. For strings with Unicode encoding, + * it is important to know if a particular font can display the + * string. This method returns an offset into the String + * str which is the first character this + * Font cannot display without using the missing glyph + * code. If the Font can display all characters, -1 is + * returned. + */ + // @ts-ignore + public canDisplayUpTo(str: string): number; + /** + * Indicates whether or not this Font can display + * the characters in the specified text + * starting at start and ending at + * limit. This method is a convenience overload. + */ + // @ts-ignore + public canDisplayUpTo(text: string, start: number, limit: number): number; + /** + * Indicates whether or not this Font can display the + * text specified by the iter starting at + * start and ending at limit. + */ + // @ts-ignore + public canDisplayUpTo(iter: java.text.CharacterIterator, start: number, limit: number): number; + /** + * Returns the italic angle of this Font. The italic angle + * is the inverse slope of the caret which best matches the posture of this + * Font. + */ + // @ts-ignore + public getItalicAngle(): number; + /** + * Checks whether or not this Font has uniform + * line metrics. A logical Font might be a + * composite font, which means that it is composed of different + * physical fonts to cover different code ranges. Each of these + * fonts might have different LineMetrics. If the + * logical Font is a single + * font then the metrics would be uniform. + */ + // @ts-ignore + public hasUniformLineMetrics(): boolean; + /** + * Returns a {@link LineMetrics} object created with the specified + * String and {@link FontRenderContext}. + */ + // @ts-ignore + public getLineMetrics(str: string, frc: java.awt.font.FontRenderContext): java.awt.font.LineMetrics; + /** + * Returns a LineMetrics object created with the + * specified arguments. + */ + // @ts-ignore + public getLineMetrics(str: string, beginIndex: number, limit: number, frc: java.awt.font.FontRenderContext): java.awt.font.LineMetrics; + /** + * Returns a LineMetrics object created with the + * specified arguments. + */ + // @ts-ignore + public getLineMetrics(chars: string, beginIndex: number, limit: number, frc: java.awt.font.FontRenderContext): java.awt.font.LineMetrics; + /** + * Returns a LineMetrics object created with the + * specified arguments. + */ + // @ts-ignore + public getLineMetrics(ci: java.text.CharacterIterator, beginIndex: number, limit: number, frc: java.awt.font.FontRenderContext): java.awt.font.LineMetrics; + /** + * Returns the logical bounds of the specified String in + * the specified FontRenderContext. The logical bounds + * contains the origin, ascent, advance, and height, which includes + * the leading. The logical bounds does not always enclose all the + * text. For example, in some languages and in some fonts, accent + * marks can be positioned above the ascent or below the descent. + * To obtain a visual bounding box, which encloses all the text, + * use the {@link TextLayout#getBounds() getBounds} method of + * TextLayout. + *

Note: The returned bounds is in baseline-relative coordinates + * (see {@link java.awt.Font class notes}). + */ + // @ts-ignore + public getStringBounds(str: string, frc: java.awt.font.FontRenderContext): java.awt.geom.Rectangle2D; + /** + * Returns the logical bounds of the specified String in + * the specified FontRenderContext. The logical bounds + * contains the origin, ascent, advance, and height, which includes + * the leading. The logical bounds does not always enclose all the + * text. For example, in some languages and in some fonts, accent + * marks can be positioned above the ascent or below the descent. + * To obtain a visual bounding box, which encloses all the text, + * use the {@link TextLayout#getBounds() getBounds} method of + * TextLayout. + *

Note: The returned bounds is in baseline-relative coordinates + * (see {@link java.awt.Font class notes}). + */ + // @ts-ignore + public getStringBounds(str: string, beginIndex: number, limit: number, frc: java.awt.font.FontRenderContext): java.awt.geom.Rectangle2D; + /** + * Returns the logical bounds of the specified array of characters + * in the specified FontRenderContext. The logical + * bounds contains the origin, ascent, advance, and height, which + * includes the leading. The logical bounds does not always enclose + * all the text. For example, in some languages and in some fonts, + * accent marks can be positioned above the ascent or below the + * descent. To obtain a visual bounding box, which encloses all the + * text, use the {@link TextLayout#getBounds() getBounds} method of + * TextLayout. + *

Note: The returned bounds is in baseline-relative coordinates + * (see {@link java.awt.Font class notes}). + */ + // @ts-ignore + public getStringBounds(chars: string, beginIndex: number, limit: number, frc: java.awt.font.FontRenderContext): java.awt.geom.Rectangle2D; + /** + * Returns the logical bounds of the characters indexed in the + * specified {@link CharacterIterator} in the + * specified FontRenderContext. The logical bounds + * contains the origin, ascent, advance, and height, which includes + * the leading. The logical bounds does not always enclose all the + * text. For example, in some languages and in some fonts, accent + * marks can be positioned above the ascent or below the descent. + * To obtain a visual bounding box, which encloses all the text, + * use the {@link TextLayout#getBounds() getBounds} method of + * TextLayout. + *

Note: The returned bounds is in baseline-relative coordinates + * (see {@link java.awt.Font class notes}). + */ + // @ts-ignore + public getStringBounds(ci: java.text.CharacterIterator, beginIndex: number, limit: number, frc: java.awt.font.FontRenderContext): java.awt.geom.Rectangle2D; + /** + * Returns the bounds for the character with the maximum + * bounds as defined in the specified FontRenderContext. + *

Note: The returned bounds is in baseline-relative coordinates + * (see {@link java.awt.Font class notes}). + */ + // @ts-ignore + public getMaxCharBounds(frc: java.awt.font.FontRenderContext): java.awt.geom.Rectangle2D; + /** + * Creates a {@link java.awt.font.GlyphVector GlyphVector} by + * mapping characters to glyphs one-to-one based on the + * Unicode cmap in this Font. This method does no other + * processing besides the mapping of glyphs to characters. This + * means that this method is not useful for some scripts, such + * as Arabic, Hebrew, Thai, and Indic, that require reordering, + * shaping, or ligature substitution. + */ + // @ts-ignore + public createGlyphVector(frc: java.awt.font.FontRenderContext, str: string): java.awt.font.GlyphVector; + /** + * Creates a {@link java.awt.font.GlyphVector GlyphVector} by + * mapping characters to glyphs one-to-one based on the + * Unicode cmap in this Font. This method does no other + * processing besides the mapping of glyphs to characters. This + * means that this method is not useful for some scripts, such + * as Arabic, Hebrew, Thai, and Indic, that require reordering, + * shaping, or ligature substitution. + */ + // @ts-ignore + public createGlyphVector(frc: java.awt.font.FontRenderContext, chars: string): java.awt.font.GlyphVector; + /** + * Creates a {@link java.awt.font.GlyphVector GlyphVector} by + * mapping the specified characters to glyphs one-to-one based on the + * Unicode cmap in this Font. This method does no other + * processing besides the mapping of glyphs to characters. This + * means that this method is not useful for some scripts, such + * as Arabic, Hebrew, Thai, and Indic, that require reordering, + * shaping, or ligature substitution. + */ + // @ts-ignore + public createGlyphVector(frc: java.awt.font.FontRenderContext, ci: java.text.CharacterIterator): java.awt.font.GlyphVector; + /** + * Creates a {@link java.awt.font.GlyphVector GlyphVector} by + * mapping characters to glyphs one-to-one based on the + * Unicode cmap in this Font. This method does no other + * processing besides the mapping of glyphs to characters. This + * means that this method is not useful for some scripts, such + * as Arabic, Hebrew, Thai, and Indic, that require reordering, + * shaping, or ligature substitution. + */ + // @ts-ignore + public createGlyphVector(frc: java.awt.font.FontRenderContext, glyphCodes: number): java.awt.font.GlyphVector; + /** + * Returns a new GlyphVector object, performing full + * layout of the text if possible. Full layout is required for + * complex text, such as Arabic or Hindi. Support for different + * scripts depends on the font and implementation. + *

+ * Layout requires bidi analysis, as performed by + * Bidi, and should only be performed on text that + * has a uniform direction. The direction is indicated in the + * flags parameter,by using LAYOUT_RIGHT_TO_LEFT to indicate a + * right-to-left (Arabic and Hebrew) run direction, or + * LAYOUT_LEFT_TO_RIGHT to indicate a left-to-right (English) + * run direction. + *

+ * In addition, some operations, such as Arabic shaping, require + * context, so that the characters at the start and limit can have + * the proper shapes. Sometimes the data in the buffer outside + * the provided range does not have valid data. The values + * LAYOUT_NO_START_CONTEXT and LAYOUT_NO_LIMIT_CONTEXT can be + * added to the flags parameter to indicate that the text before + * start, or after limit, respectively, should not be examined + * for context. + *

+ * All other values for the flags parameter are reserved. + */ + // @ts-ignore + public layoutGlyphVector(frc: java.awt.font.FontRenderContext, text: string, start: number, limit: number, flags: number): java.awt.font.GlyphVector; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.FontFormatException.d.ts b/packages/types/dist/typings/jdk/java.awt.FontFormatException.d.ts new file mode 100644 index 00000000..b8e0f877 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.FontFormatException.d.ts @@ -0,0 +1,13 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class FontFormatException extends java.lang.Exception { + /** + * Report a FontFormatException for the reason specified. + */ + // @ts-ignore + constructor(reason: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.FontMetrics.d.ts b/packages/types/dist/typings/jdk/java.awt.FontMetrics.d.ts new file mode 100644 index 00000000..7eee21a1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.FontMetrics.d.ts @@ -0,0 +1,261 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + abstract class FontMetrics extends java.lang.Object { + /** + * Creates a new FontMetrics object for finding out + * height and width information about the specified Font + * and specific character glyphs in that Font. + */ + // @ts-ignore + constructor(font: java.awt.Font) + // @ts-ignore + protected font: java.awt.Font; + /** + * Gets the Font described by this + * FontMetrics object. + */ + // @ts-ignore + public getFont(): java.awt.Font; + /** + * Gets the FontRenderContext used by this + * FontMetrics object to measure text. + *

+ * Note that methods in this class which take a Graphics + * parameter measure text using the FontRenderContext + * of that Graphics object, and not this + * FontRenderContext + */ + // @ts-ignore + public getFontRenderContext(): java.awt.font.FontRenderContext; + /** + * Determines the standard leading of the + * Font described by this FontMetrics + * object. The standard leading, or + * interline spacing, is the logical amount of space to be reserved + * between the descent of one line of text and the ascent of the next + * line. The height metric is calculated to include this extra space. + */ + // @ts-ignore + public getLeading(): number; + /** + * Determines the font ascent of the Font + * described by this FontMetrics object. The font ascent + * is the distance from the font's baseline to the top of most + * alphanumeric characters. Some characters in the Font + * might extend above the font ascent line. + */ + // @ts-ignore + public getAscent(): number; + /** + * Determines the font descent of the Font + * described by this + * FontMetrics object. The font descent is the distance + * from the font's baseline to the bottom of most alphanumeric + * characters with descenders. Some characters in the + * Font might extend + * below the font descent line. + */ + // @ts-ignore + public getDescent(): number; + /** + * Gets the standard height of a line of text in this font. This + * is the distance between the baseline of adjacent lines of text. + * It is the sum of the leading + ascent + descent. Due to rounding + * this may not be the same as getAscent() + getDescent() + getLeading(). + * There is no guarantee that lines of text spaced at this distance are + * disjoint; such lines may overlap if some characters overshoot + * either the standard ascent or the standard descent metric. + */ + // @ts-ignore + public getHeight(): number; + /** + * Determines the maximum ascent of the Font + * described by this FontMetrics object. No character + * extends further above the font's baseline than this height. + */ + // @ts-ignore + public getMaxAscent(): number; + /** + * Determines the maximum descent of the Font + * described by this FontMetrics object. No character + * extends further below the font's baseline than this height. + */ + // @ts-ignore + public getMaxDescent(): number; + /** + * For backward compatibility only. + */ + // @ts-ignore + public getMaxDecent(): number; + /** + * Gets the maximum advance width of any character in this + * Font. The advance is the + * distance from the leftmost point to the rightmost point on the + * string's baseline. The advance of a String is + * not necessarily the sum of the advances of its characters. + */ + // @ts-ignore + public getMaxAdvance(): number; + /** + * Returns the advance width of the specified character in this + * Font. The advance is the + * distance from the leftmost point to the rightmost point on the + * character's baseline. Note that the advance of a + * String is not necessarily the sum of the advances + * of its characters. + *

This method doesn't validate the specified character to be a + * valid Unicode code point. The caller must validate the + * character value using {@link + * java.lang.Character#isValidCodePoint(int) + * Character.isValidCodePoint} if necessary. + */ + // @ts-ignore + public charWidth(codePoint: number): number; + /** + * Returns the advance width of the specified character in this + * Font. The advance is the + * distance from the leftmost point to the rightmost point on the + * character's baseline. Note that the advance of a + * String is not necessarily the sum of the advances + * of its characters. + *

Note: This method cannot handle supplementary + * characters. To support all Unicode characters, including + * supplementary characters, use the {@link #charWidth(int)} method. + */ + // @ts-ignore + public charWidth(ch: string): number; + /** + * Returns the total advance width for showing the specified + * String in this Font. The advance + * is the distance from the leftmost point to the rightmost point + * on the string's baseline. + *

+ * Note that the advance of a String is + * not necessarily the sum of the advances of its characters. + */ + // @ts-ignore + public stringWidth(str: string): number; + /** + * Returns the total advance width for showing the specified array + * of characters in this Font. The advance is the + * distance from the leftmost point to the rightmost point on the + * string's baseline. The advance of a String + * is not necessarily the sum of the advances of its characters. + * This is equivalent to measuring a String of the + * characters in the specified range. + */ + // @ts-ignore + public charsWidth(data: string, off: number, len: number): number; + /** + * Returns the total advance width for showing the specified array + * of bytes in this Font. The advance is the + * distance from the leftmost point to the rightmost point on the + * string's baseline. The advance of a String + * is not necessarily the sum of the advances of its characters. + * This is equivalent to measuring a String of the + * characters in the specified range. + */ + // @ts-ignore + public bytesWidth(data: number, off: number, len: number): number; + /** + * Gets the advance widths of the first 256 characters in the + * Font. The advance is the + * distance from the leftmost point to the rightmost point on the + * character's baseline. Note that the advance of a + * String is not necessarily the sum of the advances + * of its characters. + */ + // @ts-ignore + public getWidths(): number[]; + /** + * Checks to see if the Font has uniform line metrics. A + * composite font may consist of several different fonts to cover + * various character sets. In such cases, the + * FontLineMetrics objects are not uniform. + * Different fonts may have a different ascent, descent, metrics and + * so on. This information is sometimes necessary for line + * measuring and line breaking. + */ + // @ts-ignore + public hasUniformLineMetrics(): boolean; + /** + * Returns the {@link LineMetrics} object for the specified + * String in the specified {@link Graphics} context. + */ + // @ts-ignore + public getLineMetrics(str: string, context: java.awt.Graphics): java.awt.font.LineMetrics; + /** + * Returns the {@link LineMetrics} object for the specified + * String in the specified {@link Graphics} context. + */ + // @ts-ignore + public getLineMetrics(str: string, beginIndex: number, limit: number, context: java.awt.Graphics): java.awt.font.LineMetrics; + /** + * Returns the {@link LineMetrics} object for the specified + * character array in the specified {@link Graphics} context. + */ + // @ts-ignore + public getLineMetrics(chars: string, beginIndex: number, limit: number, context: java.awt.Graphics): java.awt.font.LineMetrics; + /** + * Returns the {@link LineMetrics} object for the specified + * {@link CharacterIterator} in the specified {@link Graphics} + * context. + */ + // @ts-ignore + public getLineMetrics(ci: java.text.CharacterIterator, beginIndex: number, limit: number, context: java.awt.Graphics): java.awt.font.LineMetrics; + /** + * Returns the bounds of the specified String in the + * specified Graphics context. The bounds is used + * to layout the String. + *

Note: The returned bounds is in baseline-relative coordinates + * (see {@link java.awt.FontMetrics class notes}). + */ + // @ts-ignore + public getStringBounds(str: string, context: java.awt.Graphics): java.awt.geom.Rectangle2D; + /** + * Returns the bounds of the specified String in the + * specified Graphics context. The bounds is used + * to layout the String. + *

Note: The returned bounds is in baseline-relative coordinates + * (see {@link java.awt.FontMetrics class notes}). + */ + // @ts-ignore + public getStringBounds(str: string, beginIndex: number, limit: number, context: java.awt.Graphics): java.awt.geom.Rectangle2D; + /** + * Returns the bounds of the specified array of characters + * in the specified Graphics context. + * The bounds is used to layout the String + * created with the specified array of characters, + * beginIndex and limit. + *

Note: The returned bounds is in baseline-relative coordinates + * (see {@link java.awt.FontMetrics class notes}). + */ + // @ts-ignore + public getStringBounds(chars: string, beginIndex: number, limit: number, context: java.awt.Graphics): java.awt.geom.Rectangle2D; + /** + * Returns the bounds of the characters indexed in the specified + * CharacterIterator in the + * specified Graphics context. + *

Note: The returned bounds is in baseline-relative coordinates + * (see {@link java.awt.FontMetrics class notes}). + */ + // @ts-ignore + public getStringBounds(ci: java.text.CharacterIterator, beginIndex: number, limit: number, context: java.awt.Graphics): java.awt.geom.Rectangle2D; + /** + * Returns the bounds for the character with the maximum bounds + * in the specified Graphics context. + */ + // @ts-ignore + public getMaxCharBounds(context: java.awt.Graphics): java.awt.geom.Rectangle2D; + /** + * Returns a representation of this FontMetrics + * object's values as a String. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Frame.AccessibleAWTFrame.d.ts b/packages/types/dist/typings/jdk/java.awt.Frame.AccessibleAWTFrame.d.ts new file mode 100644 index 00000000..a4039d74 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Frame.AccessibleAWTFrame.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace Frame { + // @ts-ignore + protected class AccessibleAWTFrame extends java.awt.Window.AccessibleAWTWindow { + // @ts-ignore + constructor() + /** + * Get the role of this object. + */ + // @ts-ignore + public getAccessibleRole(): any /*javax.accessibility.AccessibleRole*/; + /** + * Get the state of this object. + */ + // @ts-ignore + public getAccessibleStateSet(): any /*javax.accessibility.AccessibleStateSet*/; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Frame.d.ts b/packages/types/dist/typings/jdk/java.awt.Frame.d.ts new file mode 100644 index 00000000..1e55df54 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Frame.d.ts @@ -0,0 +1,356 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class Frame extends java.awt.Window { + /** + * Constructs a new instance of Frame that is + * initially invisible. The title of the Frame + * is empty. + */ + // @ts-ignore + constructor() + /** + * Constructs a new, initially invisible {@code Frame} with the + * specified {@code GraphicsConfiguration}. + */ + // @ts-ignore + constructor(gc: java.awt.GraphicsConfiguration) + /** + * Constructs a new, initially invisible Frame object + * with the specified title. + */ + // @ts-ignore + constructor(title: string) + /** + * Constructs a new, initially invisible Frame object + * with the specified title and a + * GraphicsConfiguration. + */ + // @ts-ignore + constructor(title: string, gc: java.awt.GraphicsConfiguration) + // @ts-ignore + public static DEFAULT_CURSOR: number; + // @ts-ignore + public static CROSSHAIR_CURSOR: number; + // @ts-ignore + public static TEXT_CURSOR: number; + // @ts-ignore + public static WAIT_CURSOR: number; + // @ts-ignore + public static SW_RESIZE_CURSOR: number; + // @ts-ignore + public static SE_RESIZE_CURSOR: number; + // @ts-ignore + public static NW_RESIZE_CURSOR: number; + // @ts-ignore + public static NE_RESIZE_CURSOR: number; + // @ts-ignore + public static N_RESIZE_CURSOR: number; + // @ts-ignore + public static S_RESIZE_CURSOR: number; + // @ts-ignore + public static W_RESIZE_CURSOR: number; + // @ts-ignore + public static E_RESIZE_CURSOR: number; + // @ts-ignore + public static HAND_CURSOR: number; + // @ts-ignore + public static MOVE_CURSOR: number; + // @ts-ignore + public static NORMAL: number; + // @ts-ignore + public static ICONIFIED: number; + // @ts-ignore + public static MAXIMIZED_HORIZ: number; + // @ts-ignore + public static MAXIMIZED_VERT: number; + // @ts-ignore + public static MAXIMIZED_BOTH: number; + /** + * Makes this Frame displayable by connecting it to + * a native screen resource. Making a frame displayable will + * cause any of its children to be made displayable. + * This method is called internally by the toolkit and should + * not be called directly by programs. + */ + // @ts-ignore + public addNotify(): void; + /** + * Gets the title of the frame. The title is displayed in the + * frame's border. + */ + // @ts-ignore + public getTitle(): string; + /** + * Sets the title for this frame to the specified string. + */ + // @ts-ignore + public setTitle(title: string): void; + /** + * Returns the image to be displayed as the icon for this frame. + *

+ * This method is obsolete and kept for backward compatibility + * only. Use {@link Window#getIconImages Window.getIconImages()} instead. + *

+ * If a list of several images was specified as a Window's icon, + * this method will return the first item of the list. + */ + // @ts-ignore + public getIconImage(): java.awt.Image; + /** + * {@inheritDoc} + */ + // @ts-ignore + public setIconImage(image: java.awt.Image): void; + /** + * Gets the menu bar for this frame. + */ + // @ts-ignore + public getMenuBar(): java.awt.MenuBar; + /** + * Sets the menu bar for this frame to the specified menu bar. + */ + // @ts-ignore + public setMenuBar(mb: java.awt.MenuBar): void; + /** + * Indicates whether this frame is resizable by the user. + * By default, all frames are initially resizable. + */ + // @ts-ignore + public isResizable(): boolean; + /** + * Sets whether this frame is resizable by the user. + */ + // @ts-ignore + public setResizable(resizable: boolean): void; + /** + * Sets the state of this frame (obsolete). + *

+ * In older versions of JDK a frame state could only be NORMAL or + * ICONIFIED. Since JDK 1.4 set of supported frame states is + * expanded and frame state is represented as a bitwise mask. + *

+ * For compatibility with applications developed + * earlier this method still accepts + * {@code Frame.NORMAL} and + * {@code Frame.ICONIFIED} only. The iconic + * state of the frame is only changed, other aspects + * of frame state are not affected by this method. If + * the state passed to this method is neither {@code + * Frame.NORMAL} nor {@code Frame.ICONIFIED} the + * method performs no actions at all. + *

Note that if the state is not supported on a + * given platform, neither the state nor the return + * value of the {@link #getState} method will be + * changed. The application may determine whether a + * specific state is supported via the {@link + * java.awt.Toolkit#isFrameStateSupported} method. + *

If the frame is currently visible on the + * screen (the {@link #isShowing} method returns + * {@code true}), the developer should examine the + * return value of the {@link + * java.awt.event.WindowEvent#getNewState} method of + * the {@code WindowEvent} received through the + * {@link java.awt.event.WindowStateListener} to + * determine that the state has actually been + * changed. + *

If the frame is not visible on the + * screen, the events may or may not be + * generated. In this case the developer may assume + * that the state changes immediately after this + * method returns. Later, when the {@code + * setVisible(true)} method is invoked, the frame + * will attempt to apply this state. Receiving any + * {@link + * java.awt.event.WindowEvent#WINDOW_STATE_CHANGED} + * events is not guaranteed in this case also. + */ + // @ts-ignore + public setState(state: number): void; + /** + * Sets the state of this frame. The state is + * represented as a bitwise mask. + *

    + *
  • NORMAL + *
    Indicates that no state bits are set. + *
  • ICONIFIED + *
  • MAXIMIZED_HORIZ + *
  • MAXIMIZED_VERT + *
  • MAXIMIZED_BOTH + *
    Concatenates MAXIMIZED_HORIZ + * and MAXIMIZED_VERT. + *
+ *

Note that if the state is not supported on a + * given platform, neither the state nor the return + * value of the {@link #getExtendedState} method will + * be changed. The application may determine whether + * a specific state is supported via the {@link + * java.awt.Toolkit#isFrameStateSupported} method. + *

If the frame is currently visible on the + * screen (the {@link #isShowing} method returns + * {@code true}), the developer should examine the + * return value of the {@link + * java.awt.event.WindowEvent#getNewState} method of + * the {@code WindowEvent} received through the + * {@link java.awt.event.WindowStateListener} to + * determine that the state has actually been + * changed. + *

If the frame is not visible on the + * screen, the events may or may not be + * generated. In this case the developer may assume + * that the state changes immediately after this + * method returns. Later, when the {@code + * setVisible(true)} method is invoked, the frame + * will attempt to apply this state. Receiving any + * {@link + * java.awt.event.WindowEvent#WINDOW_STATE_CHANGED} + * events is not guaranteed in this case also. + */ + // @ts-ignore + public setExtendedState(state: number): void; + /** + * Gets the state of this frame (obsolete). + *

+ * In older versions of JDK a frame state could only be NORMAL or + * ICONIFIED. Since JDK 1.4 set of supported frame states is + * expanded and frame state is represented as a bitwise mask. + *

+ * For compatibility with old programs this method still returns + * Frame.NORMAL and Frame.ICONIFIED but + * it only reports the iconic state of the frame, other aspects of + * frame state are not reported by this method. + */ + // @ts-ignore + public getState(): number; + /** + * Gets the state of this frame. The state is + * represented as a bitwise mask. + *

    + *
  • NORMAL + *
    Indicates that no state bits are set. + *
  • ICONIFIED + *
  • MAXIMIZED_HORIZ + *
  • MAXIMIZED_VERT + *
  • MAXIMIZED_BOTH + *
    Concatenates MAXIMIZED_HORIZ + * and MAXIMIZED_VERT. + *
+ */ + // @ts-ignore + public getExtendedState(): number; + /** + * Sets the maximized bounds for this frame. + *

+ * When a frame is in maximized state the system supplies some + * defaults bounds. This method allows some or all of those + * system supplied values to be overridden. + *

+ * If bounds is null, accept bounds + * supplied by the system. If non-null you can + * override some of the system supplied values while accepting + * others by setting those fields you want to accept from system + * to Integer.MAX_VALUE. + *

+ * Note, the given maximized bounds are used as a hint for the native + * system, because the underlying platform may not support setting the + * location and/or size of the maximized windows. If that is the case, the + * provided values do not affect the appearance of the frame in the + * maximized state. + */ + // @ts-ignore + public setMaximizedBounds(bounds: java.awt.Rectangle): void; + /** + * Gets maximized bounds for this frame. + * Some fields may contain Integer.MAX_VALUE to indicate + * that system supplied values for this field must be used. + */ + // @ts-ignore + public getMaximizedBounds(): java.awt.Rectangle; + /** + * Disables or enables decorations for this frame. + *

+ * This method can only be called while the frame is not displayable. To + * make this frame decorated, it must be opaque and have the default shape, + * otherwise the {@code IllegalComponentStateException} will be thrown. + * Refer to {@link Window#setShape}, {@link Window#setOpacity} and {@link + * Window#setBackground} for details + */ + // @ts-ignore + public setUndecorated(undecorated: boolean): void; + /** + * Indicates whether this frame is undecorated. + * By default, all frames are initially decorated. + */ + // @ts-ignore + public isUndecorated(): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public setOpacity(opacity: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public setShape(shape: java.awt.Shape): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public setBackground(bgColor: java.awt.Color): void; + /** + * Removes the specified menu bar from this frame. + */ + // @ts-ignore + public remove(m: java.awt.MenuComponent): void; + /** + * Makes this Frame undisplayable by removing its connection + * to its native screen resource. Making a Frame undisplayable + * will cause any of its children to be made undisplayable. + * This method is called by the toolkit internally and should + * not be called directly by programs. + */ + // @ts-ignore + public removeNotify(): void; + /** + * Returns a string representing the state of this Frame. + * This method is intended to be used only for debugging purposes, and the + * content and format of the returned string may vary between + * implementations. The returned string may be empty but may not be + * null. + */ + // @ts-ignore + protected paramString(): string; + // @ts-ignore + public setCursor(cursorType: number): void; + // @ts-ignore + public getCursorType(): number; + /** + * Returns an array of all {@code Frame}s created by this application. + * If called from an applet, the array includes only the {@code Frame}s + * accessible by that applet. + *

+ * Warning: this method may return system created frames, such + * as a shared, hidden frame which is used by Swing. Applications + * should not assume the existence of these frames, nor should an + * application assume anything about these frames such as component + * positions, LayoutManagers or serialization. + *

+ * Note: To obtain a list of all ownerless windows, including + * ownerless {@code Dialog}s (introduced in release 1.6), use {@link + * Window#getOwnerlessWindows Window.getOwnerlessWindows}. + */ + // @ts-ignore + public static getFrames(): java.awt.Frame[]; + /** + * Gets the AccessibleContext associated with this Frame. + * For frames, the AccessibleContext takes the form of an + * AccessibleAWTFrame. + * A new AccessibleAWTFrame instance is created if necessary. + */ + // @ts-ignore + public getAccessibleContext(): any /*javax.accessibility.AccessibleContext*/; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.GradientPaint.d.ts b/packages/types/dist/typings/jdk/java.awt.GradientPaint.d.ts new file mode 100644 index 00000000..6d0ad147 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.GradientPaint.d.ts @@ -0,0 +1,70 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class GradientPaint extends java.lang.Object { + /** + * Constructs a simple acyclic GradientPaint object. + */ + // @ts-ignore + constructor(x1: number, y1: number, color1: java.awt.Color, x2: number, y2: number, color2: java.awt.Color) + /** + * Constructs a simple acyclic GradientPaint object. + */ + // @ts-ignore + constructor(pt1: java.awt.geom.Point2D, color1: java.awt.Color, pt2: java.awt.geom.Point2D, color2: java.awt.Color) + /** + * Constructs either a cyclic or acyclic GradientPaint + * object depending on the boolean parameter. + */ + // @ts-ignore + constructor(x1: number, y1: number, color1: java.awt.Color, x2: number, y2: number, color2: java.awt.Color, cyclic: boolean) + /** + * Constructs either a cyclic or acyclic GradientPaint + * object depending on the boolean parameter. + */ + // @ts-ignore + constructor(pt1: java.awt.geom.Point2D, color1: java.awt.Color, pt2: java.awt.geom.Point2D, color2: java.awt.Color, cyclic: boolean) + /** + * Returns a copy of the point P1 that anchors the first color. + */ + // @ts-ignore + public getPoint1(): java.awt.geom.Point2D; + /** + * Returns the color C1 anchored by the point P1. + */ + // @ts-ignore + public getColor1(): java.awt.Color; + /** + * Returns a copy of the point P2 which anchors the second color. + */ + // @ts-ignore + public getPoint2(): java.awt.geom.Point2D; + /** + * Returns the color C2 anchored by the point P2. + */ + // @ts-ignore + public getColor2(): java.awt.Color; + /** + * Returns true if the gradient cycles repeatedly + * between the two colors C1 and C2. + */ + // @ts-ignore + public isCyclic(): boolean; + /** + * Creates and returns a {@link PaintContext} used to + * generate a linear color gradient pattern. + * See the {@link Paint#createContext specification} of the + * method in the {@link Paint} interface for information + * on null parameter handling. + */ + // @ts-ignore + public createContext(cm: java.awt.image.ColorModel, deviceBounds: java.awt.Rectangle, userBounds: java.awt.geom.Rectangle2D, xform: java.awt.geom.AffineTransform, hints: java.awt.RenderingHints): java.awt.PaintContext; + /** + * Returns the transparency mode for this GradientPaint. + */ + // @ts-ignore + public getTransparency(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Graphics.d.ts b/packages/types/dist/typings/jdk/java.awt.Graphics.d.ts new file mode 100644 index 00000000..82912ce5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Graphics.d.ts @@ -0,0 +1,520 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + abstract class Graphics extends java.lang.Object { + /** + * Constructs a new Graphics object. + * This constructor is the default constructor for a graphics + * context. + *

+ * Since Graphics is an abstract class, applications + * cannot call this constructor directly. Graphics contexts are + * obtained from other graphics contexts or are created by calling + * getGraphics on a component. + */ + // @ts-ignore + constructor() + /** + * Creates a new Graphics object that is + * a copy of this Graphics object. + */ + // @ts-ignore + public abstract create(): java.awt.Graphics; + /** + * Creates a new Graphics object based on this + * Graphics object, but with a new translation and clip area. + * The new Graphics object has its origin + * translated to the specified point (xy). + * Its clip area is determined by the intersection of the original + * clip area with the specified rectangle. The arguments are all + * interpreted in the coordinate system of the original + * Graphics object. The new graphics context is + * identical to the original, except in two respects: + *

    + *
  • + * The new graphics context is translated by (xy). + * That is to say, the point (00) in the + * new graphics context is the same as (xy) in + * the original graphics context. + *
  • + * The new graphics context has an additional clipping rectangle, in + * addition to whatever (translated) clipping rectangle it inherited + * from the original graphics context. The origin of the new clipping + * rectangle is at (00), and its size + * is specified by the width and height + * arguments. + *
+ *

+ */ + // @ts-ignore + public create(x: number, y: number, width: number, height: number): java.awt.Graphics; + /** + * Translates the origin of the graphics context to the point + * (xy) in the current coordinate system. + * Modifies this graphics context so that its new origin corresponds + * to the point (xy) in this graphics context's + * original coordinate system. All coordinates used in subsequent + * rendering operations on this graphics context will be relative + * to this new origin. + */ + // @ts-ignore + public abstract translate(x: number, y: number): void; + /** + * Gets this graphics context's current color. + */ + // @ts-ignore + public abstract getColor(): java.awt.Color; + /** + * Sets this graphics context's current color to the specified + * color. All subsequent graphics operations using this graphics + * context use this specified color. + */ + // @ts-ignore + public abstract setColor(c: java.awt.Color): void; + /** + * Sets the paint mode of this graphics context to overwrite the + * destination with this graphics context's current color. + * This sets the logical pixel operation function to the paint or + * overwrite mode. All subsequent rendering operations will + * overwrite the destination with the current color. + */ + // @ts-ignore + public abstract setPaintMode(): void; + /** + * Sets the paint mode of this graphics context to alternate between + * this graphics context's current color and the new specified color. + * This specifies that logical pixel operations are performed in the + * XOR mode, which alternates pixels between the current color and + * a specified XOR color. + *

+ * When drawing operations are performed, pixels which are the + * current color are changed to the specified color, and vice versa. + *

+ * Pixels that are of colors other than those two colors are changed + * in an unpredictable but reversible manner; if the same figure is + * drawn twice, then all pixels are restored to their original values. + */ + // @ts-ignore + public abstract setXORMode(c1: java.awt.Color): void; + /** + * Gets the current font. + */ + // @ts-ignore + public abstract getFont(): java.awt.Font; + /** + * Sets this graphics context's font to the specified font. + * All subsequent text operations using this graphics context + * use this font. A null argument is silently ignored. + */ + // @ts-ignore + public abstract setFont(font: java.awt.Font): void; + /** + * Gets the font metrics of the current font. + */ + // @ts-ignore + public getFontMetrics(): java.awt.FontMetrics; + /** + * Returns the bounding rectangle of the current clipping area. + * This method refers to the user clip, which is independent of the + * clipping associated with device bounds and window visibility. + * If no clip has previously been set, or if the clip has been + * cleared using setClip(null), this method returns + * null. + * The coordinates in the rectangle are relative to the coordinate + * system origin of this graphics context. + */ + // @ts-ignore + public abstract getClipBounds(): java.awt.Rectangle; + /** + * Intersects the current clip with the specified rectangle. + * The resulting clipping area is the intersection of the current + * clipping area and the specified rectangle. If there is no + * current clipping area, either because the clip has never been + * set, or the clip has been cleared using setClip(null), + * the specified rectangle becomes the new clip. + * This method sets the user clip, which is independent of the + * clipping associated with device bounds and window visibility. + * This method can only be used to make the current clip smaller. + * To set the current clip larger, use any of the setClip methods. + * Rendering operations have no effect outside of the clipping area. + */ + // @ts-ignore + public abstract clipRect(x: number, y: number, width: number, height: number): void; + /** + * Sets the current clip to the rectangle specified by the given + * coordinates. This method sets the user clip, which is + * independent of the clipping associated with device bounds + * and window visibility. + * Rendering operations have no effect outside of the clipping area. + */ + // @ts-ignore + public abstract setClip(x: number, y: number, width: number, height: number): void; + /** + * Gets the current clipping area. + * This method returns the user clip, which is independent of the + * clipping associated with device bounds and window visibility. + * If no clip has previously been set, or if the clip has been + * cleared using setClip(null), this method returns + * null. + */ + // @ts-ignore + public abstract getClip(): java.awt.Shape; + /** + * Copies an area of the component by a distance specified by + * dx and dy. From the point specified + * by x and y, this method + * copies downwards and to the right. To copy an area of the + * component to the left or upwards, specify a negative value for + * dx or dy. + * If a portion of the source rectangle lies outside the bounds + * of the component, or is obscured by another window or component, + * copyArea will be unable to copy the associated + * pixels. The area that is omitted can be refreshed by calling + * the component's paint method. + */ + // @ts-ignore + public abstract copyArea(x: number, y: number, width: number, height: number, dx: number, dy: number): void; + /** + * Draws a line, using the current color, between the points + * (x1, y1) and (x2, y2) + * in this graphics context's coordinate system. + */ + // @ts-ignore + public abstract drawLine(x1: number, y1: number, x2: number, y2: number): void; + /** + * Fills the specified rectangle. + * The left and right edges of the rectangle are at + * x and x + width - 1. + * The top and bottom edges are at + * y and y + height - 1. + * The resulting rectangle covers an area + * width pixels wide by + * height pixels tall. + * The rectangle is filled using the graphics context's current color. + */ + // @ts-ignore + public abstract fillRect(x: number, y: number, width: number, height: number): void; + /** + * Draws the outline of the specified rectangle. + * The left and right edges of the rectangle are at + * x and x + width. + * The top and bottom edges are at + * y and y + height. + * The rectangle is drawn using the graphics context's current color. + */ + // @ts-ignore + public drawRect(x: number, y: number, width: number, height: number): void; + /** + * Clears the specified rectangle by filling it with the background + * color of the current drawing surface. This operation does not + * use the current paint mode. + *

+ * Beginning with Java 1.1, the background color + * of offscreen images may be system dependent. Applications should + * use setColor followed by fillRect to + * ensure that an offscreen image is cleared to a specific color. + */ + // @ts-ignore + public abstract clearRect(x: number, y: number, width: number, height: number): void; + /** + * Draws an outlined round-cornered rectangle using this graphics + * context's current color. The left and right edges of the rectangle + * are at x and x + width, + * respectively. The top and bottom edges of the rectangle are at + * y and y + height. + */ + // @ts-ignore + public abstract drawRoundRect(x: number, y: number, width: number, height: number, arcWidth: number, arcHeight: number): void; + /** + * Fills the specified rounded corner rectangle with the current color. + * The left and right edges of the rectangle + * are at x and x + width - 1, + * respectively. The top and bottom edges of the rectangle are at + * y and y + height - 1. + */ + // @ts-ignore + public abstract fillRoundRect(x: number, y: number, width: number, height: number, arcWidth: number, arcHeight: number): void; + /** + * Draws a 3-D highlighted outline of the specified rectangle. + * The edges of the rectangle are highlighted so that they + * appear to be beveled and lit from the upper left corner. + *

+ * The colors used for the highlighting effect are determined + * based on the current color. + * The resulting rectangle covers an area that is + * width + 1 pixels wide + * by height + 1 pixels tall. + */ + // @ts-ignore + public draw3DRect(x: number, y: number, width: number, height: number, raised: boolean): void; + /** + * Paints a 3-D highlighted rectangle filled with the current color. + * The edges of the rectangle will be highlighted so that it appears + * as if the edges were beveled and lit from the upper left corner. + * The colors used for the highlighting effect will be determined from + * the current color. + */ + // @ts-ignore + public fill3DRect(x: number, y: number, width: number, height: number, raised: boolean): void; + /** + * Draws the outline of an oval. + * The result is a circle or ellipse that fits within the + * rectangle specified by the x, y, + * width, and height arguments. + *

+ * The oval covers an area that is + * width + 1 pixels wide + * and height + 1 pixels tall. + */ + // @ts-ignore + public abstract drawOval(x: number, y: number, width: number, height: number): void; + /** + * Fills an oval bounded by the specified rectangle with the + * current color. + */ + // @ts-ignore + public abstract fillOval(x: number, y: number, width: number, height: number): void; + /** + * Draws the outline of a circular or elliptical arc + * covering the specified rectangle. + *

+ * The resulting arc begins at startAngle and extends + * for arcAngle degrees, using the current color. + * Angles are interpreted such that 0 degrees + * is at the 3 o'clock position. + * A positive value indicates a counter-clockwise rotation + * while a negative value indicates a clockwise rotation. + *

+ * The center of the arc is the center of the rectangle whose origin + * is (xy) and whose size is specified by the + * width and height arguments. + *

+ * The resulting arc covers an area + * width + 1 pixels wide + * by height + 1 pixels tall. + *

+ * The angles are specified relative to the non-square extents of + * the bounding rectangle such that 45 degrees always falls on the + * line from the center of the ellipse to the upper right corner of + * the bounding rectangle. As a result, if the bounding rectangle is + * noticeably longer in one axis than the other, the angles to the + * start and end of the arc segment will be skewed farther along the + * longer axis of the bounds. + */ + // @ts-ignore + public abstract drawArc(x: number, y: number, width: number, height: number, startAngle: number, arcAngle: number): void; + /** + * Fills a circular or elliptical arc covering the specified rectangle. + *

+ * The resulting arc begins at startAngle and extends + * for arcAngle degrees. + * Angles are interpreted such that 0 degrees + * is at the 3 o'clock position. + * A positive value indicates a counter-clockwise rotation + * while a negative value indicates a clockwise rotation. + *

+ * The center of the arc is the center of the rectangle whose origin + * is (xy) and whose size is specified by the + * width and height arguments. + *

+ * The resulting arc covers an area + * width + 1 pixels wide + * by height + 1 pixels tall. + *

+ * The angles are specified relative to the non-square extents of + * the bounding rectangle such that 45 degrees always falls on the + * line from the center of the ellipse to the upper right corner of + * the bounding rectangle. As a result, if the bounding rectangle is + * noticeably longer in one axis than the other, the angles to the + * start and end of the arc segment will be skewed farther along the + * longer axis of the bounds. + */ + // @ts-ignore + public abstract fillArc(x: number, y: number, width: number, height: number, startAngle: number, arcAngle: number): void; + /** + * Draws a sequence of connected lines defined by + * arrays of x and y coordinates. + * Each pair of (xy) coordinates defines a point. + * The figure is not closed if the first point + * differs from the last point. + */ + // @ts-ignore + public abstract drawPolyline(xPoints: number, yPoints: number, nPoints: number): void; + /** + * Draws a closed polygon defined by + * arrays of x and y coordinates. + * Each pair of (xy) coordinates defines a point. + *

+ * This method draws the polygon defined by nPoint line + * segments, where the first nPoint - 1 + * line segments are line segments from + * (xPoints[i - 1], yPoints[i - 1]) + * to (xPoints[i], yPoints[i]), for + * 1 ≤ i ≤ nPoints. + * The figure is automatically closed by drawing a line connecting + * the final point to the first point, if those points are different. + */ + // @ts-ignore + public abstract drawPolygon(xPoints: number, yPoints: number, nPoints: number): void; + /** + * Draws the outline of a polygon defined by the specified + * Polygon object. + */ + // @ts-ignore + public drawPolygon(p: java.awt.Polygon): void; + /** + * Fills a closed polygon defined by + * arrays of x and y coordinates. + *

+ * This method draws the polygon defined by nPoint line + * segments, where the first nPoint - 1 + * line segments are line segments from + * (xPoints[i - 1], yPoints[i - 1]) + * to (xPoints[i], yPoints[i]), for + * 1 ≤ i ≤ nPoints. + * The figure is automatically closed by drawing a line connecting + * the final point to the first point, if those points are different. + *

+ * The area inside the polygon is defined using an + * even-odd fill rule, also known as the alternating rule. + */ + // @ts-ignore + public abstract fillPolygon(xPoints: number, yPoints: number, nPoints: number): void; + /** + * Fills the polygon defined by the specified Polygon object with + * the graphics context's current color. + *

+ * The area inside the polygon is defined using an + * even-odd fill rule, also known as the alternating rule. + */ + // @ts-ignore + public fillPolygon(p: java.awt.Polygon): void; + /** + * Draws the text given by the specified string, using this + * graphics context's current font and color. The baseline of the + * leftmost character is at position (xy) in this + * graphics context's coordinate system. + */ + // @ts-ignore + public abstract drawString(str: string, x: number, y: number): void; + /** + * Draws the text given by the specified character array, using this + * graphics context's current font and color. The baseline of the + * first character is at position (xy) in this + * graphics context's coordinate system. + */ + // @ts-ignore + public drawChars(data: string, offset: number, length: number, x: number, y: number): void; + /** + * Draws the text given by the specified byte array, using this + * graphics context's current font and color. The baseline of the + * first character is at position (xy) in this + * graphics context's coordinate system. + *

+ * Use of this method is not recommended as each byte is interpreted + * as a Unicode code point in the range 0 to 255, and so can only be + * used to draw Latin characters in that range. + */ + // @ts-ignore + public drawBytes(data: number, offset: number, length: number, x: number, y: number): void; + /** + * Draws as much of the specified image as is currently available. + * The image is drawn with its top-left corner at + * (xy) in this graphics context's coordinate + * space. Transparent pixels in the image do not affect whatever + * pixels are already there. + *

+ * This method returns immediately in all cases, even if the + * complete image has not yet been loaded, and it has not been dithered + * and converted for the current output device. + *

+ * If the image has completely loaded and its pixels are + * no longer being changed, then + * drawImage returns true. + * Otherwise, drawImage returns false + * and as more of + * the image becomes available + * or it is time to draw another frame of animation, + * the process that loads the image notifies + * the specified image observer. + */ + // @ts-ignore + public abstract drawImage(img: java.awt.Image, x: number, y: number, observer: java.awt.image.ImageObserver): boolean; + /** + * Disposes of this graphics context and releases + * any system resources that it is using. + * A Graphics object cannot be used after + * disposehas been called. + *

+ * When a Java program runs, a large number of Graphics + * objects can be created within a short time frame. + * Although the finalization process of the garbage collector + * also disposes of the same system resources, it is preferable + * to manually free the associated resources by calling this + * method rather than to rely on a finalization process which + * may not run to completion for a long period of time. + *

+ * Graphics objects which are provided as arguments to the + * paint and update methods + * of components are automatically released by the system when + * those methods return. For efficiency, programmers should + * call dispose when finished using + * a Graphics object only if it was created + * directly from a component or another Graphics object. + */ + // @ts-ignore + public abstract dispose(): void; + /** + * Disposes of this graphics context once it is no longer referenced. + */ + // @ts-ignore + public finalize(): void; + /** + * Returns a String object representing this + * Graphics object's value. + */ + // @ts-ignore + public toString(): string; + /** + * Returns the bounding rectangle of the current clipping area. + */ + // @ts-ignore + public getClipRect(): java.awt.Rectangle; + /** + * Returns true if the specified rectangular area might intersect + * the current clipping area. + * The coordinates of the specified rectangular area are in the + * user coordinate space and are relative to the coordinate + * system origin of this graphics context. + * This method may use an algorithm that calculates a result quickly + * but which sometimes might return true even if the specified + * rectangular area does not intersect the clipping area. + * The specific algorithm employed may thus trade off accuracy for + * speed, but it will never return false unless it can guarantee + * that the specified rectangular area does not intersect the + * current clipping area. + * The clipping area used by this method can represent the + * intersection of the user clip as specified through the clip + * methods of this graphics context as well as the clipping + * associated with the device or image bounds and window visibility. + */ + // @ts-ignore + public hitClip(x: number, y: number, width: number, height: number): boolean; + /** + * Returns the bounding rectangle of the current clipping area. + * The coordinates in the rectangle are relative to the coordinate + * system origin of this graphics context. This method differs + * from {@link #getClipBounds() getClipBounds} in that an existing + * rectangle is used instead of allocating a new one. + * This method refers to the user clip, which is independent of the + * clipping associated with device bounds and window visibility. + * If no clip has previously been set, or if the clip has been + * cleared using setClip(null), this method returns the + * specified Rectangle. + */ + // @ts-ignore + public getClipBounds(r: java.awt.Rectangle): java.awt.Rectangle; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Graphics2D.d.ts b/packages/types/dist/typings/jdk/java.awt.Graphics2D.d.ts new file mode 100644 index 00000000..91ebfbc1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Graphics2D.d.ts @@ -0,0 +1,433 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + abstract class Graphics2D extends java.awt.Graphics { + /** + * Constructs a new Graphics2D object. Since + * Graphics2D is an abstract class, and since it must be + * customized by subclasses for different output devices, + * Graphics2D objects cannot be created directly. + * Instead, Graphics2D objects must be obtained from another + * Graphics2D object, created by a + * Component, or obtained from images such as + * {@link BufferedImage} objects. + */ + // @ts-ignore + constructor() + /** + * Draws a 3-D highlighted outline of the specified rectangle. + * The edges of the rectangle are highlighted so that they + * appear to be beveled and lit from the upper left corner. + *

+ * The colors used for the highlighting effect are determined + * based on the current color. + * The resulting rectangle covers an area that is + * width + 1 pixels wide + * by height + 1 pixels tall. This method + * uses the current Color exclusively and ignores + * the current Paint. + */ + // @ts-ignore + public draw3DRect(x: number, y: number, width: number, height: number, raised: boolean): void; + /** + * Paints a 3-D highlighted rectangle filled with the current color. + * The edges of the rectangle are highlighted so that it appears + * as if the edges were beveled and lit from the upper left corner. + * The colors used for the highlighting effect and for filling are + * determined from the current Color. This method uses + * the current Color exclusively and ignores the current + * Paint. + */ + // @ts-ignore + public fill3DRect(x: number, y: number, width: number, height: number, raised: boolean): void; + /** + * Strokes the outline of a Shape using the settings of the + * current Graphics2D context. The rendering attributes + * applied include the Clip, Transform, + * Paint, Composite and + * Stroke attributes. + */ + // @ts-ignore + public abstract draw(s: java.awt.Shape): void; + /** + * Renders an image, applying a transform from image space into user space + * before drawing. + * The transformation from user space into device space is done with + * the current Transform in the Graphics2D. + * The specified transformation is applied to the image before the + * transform attribute in the Graphics2D context is applied. + * The rendering attributes applied include the Clip, + * Transform, and Composite attributes. + * Note that no rendering is done if the specified transform is + * noninvertible. + */ + // @ts-ignore + public abstract drawImage(img: java.awt.Image, xform: java.awt.geom.AffineTransform, obs: java.awt.image.ImageObserver): boolean; + /** + * Renders a {@link RenderedImage}, + * applying a transform from image + * space into user space before drawing. + * The transformation from user space into device space is done with + * the current Transform in the Graphics2D. + * The specified transformation is applied to the image before the + * transform attribute in the Graphics2D context is applied. + * The rendering attributes applied include the Clip, + * Transform, and Composite attributes. Note + * that no rendering is done if the specified transform is + * noninvertible. + */ + // @ts-ignore + public abstract drawRenderedImage(img: java.awt.image.RenderedImage, xform: java.awt.geom.AffineTransform): void; + /** + * Renders a + * {@link RenderableImage}, + * applying a transform from image space into user space before drawing. + * The transformation from user space into device space is done with + * the current Transform in the Graphics2D. + * The specified transformation is applied to the image before the + * transform attribute in the Graphics2D context is applied. + * The rendering attributes applied include the Clip, + * Transform, and Composite attributes. Note + * that no rendering is done if the specified transform is + * noninvertible. + *

+ * Rendering hints set on the Graphics2D object might + * be used in rendering the RenderableImage. + * If explicit control is required over specific hints recognized by a + * specific RenderableImage, or if knowledge of which hints + * are used is required, then a RenderedImage should be + * obtained directly from the RenderableImage + * and rendered using + * {@link #drawRenderedImage(RenderedImage, AffineTransform) drawRenderedImage}. + */ + // @ts-ignore + public abstract drawRenderableImage(img: java.awt.image.renderable.RenderableImage, xform: java.awt.geom.AffineTransform): void; + /** + * Renders the text of the specified String, using the + * current text attribute state in the Graphics2D context. + * The baseline of the + * first character is at position (xy) in + * the User Space. + * The rendering attributes applied include the Clip, + * Transform, Paint, Font and + * Composite attributes. For characters in script + * systems such as Hebrew and Arabic, the glyphs can be rendered from + * right to left, in which case the coordinate supplied is the + * location of the leftmost character on the baseline. + */ + // @ts-ignore + public abstract drawString(str: string, x: number, y: number): void; + /** + * Renders the text of the specified + * {@link GlyphVector} using + * the Graphics2D context's rendering attributes. + * The rendering attributes applied include the Clip, + * Transform, Paint, and + * Composite attributes. The GlyphVector + * specifies individual glyphs from a {@link Font}. + * The GlyphVector can also contain the glyph positions. + * This is the fastest way to render a set of characters to the + * screen. + */ + // @ts-ignore + public abstract drawGlyphVector(g: java.awt.font.GlyphVector, x: number, y: number): void; + /** + * Fills the interior of a Shape using the settings of the + * Graphics2D context. The rendering attributes applied + * include the Clip, Transform, + * Paint, and Composite. + */ + // @ts-ignore + public abstract fill(s: java.awt.Shape): void; + /** + * Checks whether or not the specified Shape intersects + * the specified {@link Rectangle}, which is in device + * space. If onStroke is false, this method checks + * whether or not the interior of the specified Shape + * intersects the specified Rectangle. If + * onStroke is true, this method checks + * whether or not the Stroke of the specified + * Shape outline intersects the specified + * Rectangle. + * The rendering attributes taken into account include the + * Clip, Transform, and Stroke + * attributes. + */ + // @ts-ignore + public abstract hit(rect: java.awt.Rectangle, s: java.awt.Shape, onStroke: boolean): boolean; + /** + * Returns the device configuration associated with this + * Graphics2D. + */ + // @ts-ignore + public abstract getDeviceConfiguration(): java.awt.GraphicsConfiguration; + /** + * Sets the Composite for the Graphics2D context. + * The Composite is used in all drawing methods such as + * drawImage, drawString, draw, + * and fill. It specifies how new pixels are to be combined + * with the existing pixels on the graphics device during the rendering + * process. + *

If this Graphics2D context is drawing to a + * Component on the display screen and the + * Composite is a custom object rather than an + * instance of the AlphaComposite class, and if + * there is a security manager, its checkPermission + * method is called with an AWTPermission("readDisplayPixels") + * permission. + */ + // @ts-ignore + public abstract setComposite(comp: java.awt.Composite): void; + /** + * Sets the Paint attribute for the + * Graphics2D context. Calling this method + * with a null Paint object does + * not have any effect on the current Paint attribute + * of this Graphics2D. + */ + // @ts-ignore + public abstract setPaint(paint: java.awt.Paint): void; + /** + * Sets the Stroke for the Graphics2D context. + */ + // @ts-ignore + public abstract setStroke(s: java.awt.Stroke): void; + /** + * Sets the value of a single preference for the rendering algorithms. + * Hint categories include controls for rendering quality and overall + * time/quality trade-off in the rendering process. Refer to the + * RenderingHints class for definitions of some common + * keys and values. + */ + // @ts-ignore + public abstract setRenderingHint(hintKey: java.awt.RenderingHints.Key, hintValue: java.lang.Object): void; + /** + * Returns the value of a single preference for the rendering algorithms. + * Hint categories include controls for rendering quality and overall + * time/quality trade-off in the rendering process. Refer to the + * RenderingHints class for definitions of some common + * keys and values. + */ + // @ts-ignore + public abstract getRenderingHint(hintKey: java.awt.RenderingHints.Key): java.lang.Object; + /** + * Replaces the values of all preferences for the rendering + * algorithms with the specified hints. + * The existing values for all rendering hints are discarded and + * the new set of known hints and values are initialized from the + * specified {@link Map} object. + * Hint categories include controls for rendering quality and + * overall time/quality trade-off in the rendering process. + * Refer to the RenderingHints class for definitions of + * some common keys and values. + */ + // @ts-ignore + public abstract setRenderingHints(hints: java.util.Map): void; + /** + * Sets the values of an arbitrary number of preferences for the + * rendering algorithms. + * Only values for the rendering hints that are present in the + * specified Map object are modified. + * All other preferences not present in the specified + * object are left unmodified. + * Hint categories include controls for rendering quality and + * overall time/quality trade-off in the rendering process. + * Refer to the RenderingHints class for definitions of + * some common keys and values. + */ + // @ts-ignore + public abstract addRenderingHints(hints: java.util.Map): void; + /** + * Gets the preferences for the rendering algorithms. Hint categories + * include controls for rendering quality and overall time/quality + * trade-off in the rendering process. + * Returns all of the hint key/value pairs that were ever specified in + * one operation. Refer to the + * RenderingHints class for definitions of some common + * keys and values. + */ + // @ts-ignore + public abstract getRenderingHints(): java.awt.RenderingHints; + /** + * Translates the origin of the Graphics2D context to the + * point (xy) in the current coordinate system. + * Modifies the Graphics2D context so that its new origin + * corresponds to the point (xy) in the + * Graphics2D context's former coordinate system. All + * coordinates used in subsequent rendering operations on this graphics + * context are relative to this new origin. + */ + // @ts-ignore + public abstract translate(x: number, y: number): void; + /** + * Concatenates the current Graphics2D + * Transform with a rotation transform. + * Subsequent rendering is rotated by the specified radians relative + * to the previous origin. + * This is equivalent to calling transform(R), where R is an + * AffineTransform represented by the following matrix: + *

+             * [   cos(theta)    -sin(theta)    0   ]
+             * [   sin(theta)     cos(theta)    0   ]
+             * [       0              0         1   ]
+             * 
+ * Rotating with a positive angle theta rotates points on the positive + * x axis toward the positive y axis. + */ + // @ts-ignore + public abstract rotate(theta: number): void; + /** + * Concatenates the current Graphics2D + * Transform with a scaling transformation + * Subsequent rendering is resized according to the specified scaling + * factors relative to the previous scaling. + * This is equivalent to calling transform(S), where S is an + * AffineTransform represented by the following matrix: + *
+             * [   sx   0    0   ]
+             * [   0    sy   0   ]
+             * [   0    0    1   ]
+             * 
+ */ + // @ts-ignore + public abstract scale(sx: number, sy: number): void; + /** + * Concatenates the current Graphics2D + * Transform with a shearing transform. + * Subsequent renderings are sheared by the specified + * multiplier relative to the previous position. + * This is equivalent to calling transform(SH), where SH + * is an AffineTransform represented by the following + * matrix: + *
+             * [   1   shx   0   ]
+             * [  shy   1    0   ]
+             * [   0    0    1   ]
+             * 
+ */ + // @ts-ignore + public abstract shear(shx: number, shy: number): void; + /** + * Composes an AffineTransform object with the + * Transform in this Graphics2D according + * to the rule last-specified-first-applied. If the current + * Transform is Cx, the result of composition + * with Tx is a new Transform Cx'. Cx' becomes the + * current Transform for this Graphics2D. + * Transforming a point p by the updated Transform Cx' is + * equivalent to first transforming p by Tx and then transforming + * the result by the original Transform Cx. In other + * words, Cx'(p) = Cx(Tx(p)). A copy of the Tx is made, if necessary, + * so further modifications to Tx do not affect rendering. + */ + // @ts-ignore + public abstract transform(Tx: java.awt.geom.AffineTransform): void; + /** + * Overwrites the Transform in the Graphics2D context. + * WARNING: This method should never be used to apply a new + * coordinate transform on top of an existing transform because the + * Graphics2D might already have a transform that is + * needed for other purposes, such as rendering Swing + * components or applying a scaling transformation to adjust for the + * resolution of a printer. + *

To add a coordinate transform, use the + * transform, rotate, scale, + * or shear methods. The setTransform + * method is intended only for restoring the original + * Graphics2D transform after rendering, as shown in this + * example: + *

+             * // Get the current transform
+             * AffineTransform saveAT = g2.getTransform();
+             * // Perform transformation
+             * g2d.transform(...);
+             * // Render
+             * g2d.draw(...);
+             * // Restore original transform
+             * g2d.setTransform(saveAT);
+             * 
+ */ + // @ts-ignore + public abstract setTransform(Tx: java.awt.geom.AffineTransform): void; + /** + * Returns a copy of the current Transform in the + * Graphics2D context. + */ + // @ts-ignore + public abstract getTransform(): java.awt.geom.AffineTransform; + /** + * Returns the current Paint of the + * Graphics2D context. + */ + // @ts-ignore + public abstract getPaint(): java.awt.Paint; + /** + * Returns the current Composite in the + * Graphics2D context. + */ + // @ts-ignore + public abstract getComposite(): java.awt.Composite; + /** + * Sets the background color for the Graphics2D context. + * The background color is used for clearing a region. + * When a Graphics2D is constructed for a + * Component, the background color is + * inherited from the Component. Setting the background color + * in the Graphics2D context only affects the subsequent + * clearRect calls and not the background color of the + * Component. To change the background + * of the Component, use appropriate methods of + * the Component. + */ + // @ts-ignore + public abstract setBackground(color: java.awt.Color): void; + /** + * Returns the background color used for clearing a region. + */ + // @ts-ignore + public abstract getBackground(): java.awt.Color; + /** + * Returns the current Stroke in the + * Graphics2D context. + */ + // @ts-ignore + public abstract getStroke(): java.awt.Stroke; + /** + * Intersects the current Clip with the interior of the + * specified Shape and sets the Clip to the + * resulting intersection. The specified Shape is + * transformed with the current Graphics2D + * Transform before being intersected with the current + * Clip. This method is used to make the current + * Clip smaller. + * To make the Clip larger, use setClip. + * The user clip modified by this method is independent of the + * clipping associated with device bounds and visibility. If no clip has + * previously been set, or if the clip has been cleared using + * {@link Graphics#setClip(Shape) setClip} with a null + * argument, the specified Shape becomes the new + * user clip. + */ + // @ts-ignore + public abstract clip(s: java.awt.Shape): void; + /** + * Get the rendering context of the Font within this + * Graphics2D context. + * The {@link FontRenderContext} + * encapsulates application hints such as anti-aliasing and + * fractional metrics, as well as target device specific information + * such as dots-per-inch. This information should be provided by the + * application when using objects that perform typographical + * formatting, such as Font and + * TextLayout. This information should also be provided + * by applications that perform their own layout and need accurate + * measurements of various characteristics of glyphs such as advance + * and line height when various rendering hints have been applied to + * the text rendering. + */ + // @ts-ignore + public abstract getFontRenderContext(): java.awt.font.FontRenderContext; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.GraphicsConfigTemplate.d.ts b/packages/types/dist/typings/jdk/java.awt.GraphicsConfigTemplate.d.ts new file mode 100644 index 00000000..70b3ea75 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.GraphicsConfigTemplate.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + abstract class GraphicsConfigTemplate extends java.lang.Object { + /** + * This class is an abstract class so only subclasses can be + * instantiated. + */ + // @ts-ignore + constructor() + // @ts-ignore + public static REQUIRED: number; + // @ts-ignore + public static PREFERRED: number; + // @ts-ignore + public static UNNECESSARY: number; + /** + * Returns the "best" configuration possible that passes the + * criteria defined in the GraphicsConfigTemplate. + */ + // @ts-ignore + public abstract getBestConfiguration(gc: java.awt.GraphicsConfiguration): java.awt.GraphicsConfiguration; + /** + * Returns a boolean indicating whether or + * not the specified GraphicsConfiguration can be + * used to create a drawing surface that supports the indicated + * features. + */ + // @ts-ignore + public abstract isGraphicsConfigSupported(gc: java.awt.GraphicsConfiguration): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.GraphicsConfiguration.d.ts b/packages/types/dist/typings/jdk/java.awt.GraphicsConfiguration.d.ts new file mode 100644 index 00000000..75149cb5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.GraphicsConfiguration.d.ts @@ -0,0 +1,167 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + abstract class GraphicsConfiguration extends java.lang.Object { + /** + * This is an abstract class that cannot be instantiated directly. + * Instances must be obtained from a suitable factory or query method. + */ + // @ts-ignore + constructor() + /** + * Returns the {@link GraphicsDevice} associated with this + * GraphicsConfiguration. + */ + // @ts-ignore + public abstract getDevice(): java.awt.GraphicsDevice; + /** + * Returns a {@link BufferedImage} with a data layout and color model + * compatible with this GraphicsConfiguration. This + * method has nothing to do with memory-mapping + * a device. The returned BufferedImage has + * a layout and color model that is closest to this native device + * configuration and can therefore be optimally blitted to this + * device. + */ + // @ts-ignore + public createCompatibleImage(width: number, height: number): java.awt.image.BufferedImage; + /** + * Returns a BufferedImage that supports the specified + * transparency and has a data layout and color model + * compatible with this GraphicsConfiguration. This + * method has nothing to do with memory-mapping + * a device. The returned BufferedImage has a layout and + * color model that can be optimally blitted to a device + * with this GraphicsConfiguration. + */ + // @ts-ignore + public createCompatibleImage(width: number, height: number, transparency: number): java.awt.image.BufferedImage; + /** + * Returns a {@link VolatileImage} with a data layout and color model + * compatible with this GraphicsConfiguration. + * The returned VolatileImage + * may have data that is stored optimally for the underlying graphics + * device and may therefore benefit from platform-specific rendering + * acceleration. + */ + // @ts-ignore + public createCompatibleVolatileImage(width: number, height: number): java.awt.image.VolatileImage; + /** + * Returns a {@link VolatileImage} with a data layout and color model + * compatible with this GraphicsConfiguration. + * The returned VolatileImage + * may have data that is stored optimally for the underlying graphics + * device and may therefore benefit from platform-specific rendering + * acceleration. + */ + // @ts-ignore + public createCompatibleVolatileImage(width: number, height: number, transparency: number): java.awt.image.VolatileImage; + /** + * Returns a {@link VolatileImage} with a data layout and color model + * compatible with this GraphicsConfiguration, using + * the specified image capabilities. + * If the caps parameter is null, it is effectively ignored + * and this method will create a VolatileImage without regard to + * ImageCapabilities constraints. + * The returned VolatileImage has + * a layout and color model that is closest to this native device + * configuration and can therefore be optimally blitted to this + * device. + */ + // @ts-ignore + public createCompatibleVolatileImage(width: number, height: number, caps: java.awt.ImageCapabilities): java.awt.image.VolatileImage; + /** + * Returns a {@link VolatileImage} with a data layout and color model + * compatible with this GraphicsConfiguration, using + * the specified image capabilities and transparency value. + * If the caps parameter is null, it is effectively ignored + * and this method will create a VolatileImage without regard to + * ImageCapabilities constraints. + * The returned VolatileImage has + * a layout and color model that is closest to this native device + * configuration and can therefore be optimally blitted to this + * device. + */ + // @ts-ignore + public createCompatibleVolatileImage(width: number, height: number, caps: java.awt.ImageCapabilities, transparency: number): java.awt.image.VolatileImage; + /** + * Returns the {@link ColorModel} associated with this + * GraphicsConfiguration. + */ + // @ts-ignore + public abstract getColorModel(): java.awt.image.ColorModel; + /** + * Returns the default {@link AffineTransform} for this + * GraphicsConfiguration. This + * AffineTransform is typically the Identity transform + * for most normal screens. The default AffineTransform + * maps coordinates onto the device such that 72 user space + * coordinate units measure approximately 1 inch in device + * space. The normalizing transform can be used to make + * this mapping more exact. Coordinates in the coordinate space + * defined by the default AffineTransform for screen and + * printer devices have the origin in the upper left-hand corner of + * the target region of the device, with X coordinates + * increasing to the right and Y coordinates increasing downwards. + * For image buffers not associated with a device, such as those not + * created by createCompatibleImage, + * this AffineTransform is the Identity transform. + */ + // @ts-ignore + public abstract getDefaultTransform(): java.awt.geom.AffineTransform; + /** + * Returns a AffineTransform that can be concatenated + * with the default AffineTransform + * of a GraphicsConfiguration so that 72 units in user + * space equals 1 inch in device space. + *

+ * For a particular {@link Graphics2D}, g, one + * can reset the transformation to create + * such a mapping by using the following pseudocode: + *

+             * GraphicsConfiguration gc = g.getDeviceConfiguration();
+             * g.setTransform(gc.getDefaultTransform());
+             * g.transform(gc.getNormalizingTransform());
+             * 
+ * Note that sometimes this AffineTransform is identity, + * such as for printers or metafile output, and that this + * AffineTransform is only as accurate as the information + * supplied by the underlying system. For image buffers not + * associated with a device, such as those not created by + * createCompatibleImage, this + * AffineTransform is the Identity transform + * since there is no valid distance measurement. + */ + // @ts-ignore + public abstract getNormalizingTransform(): java.awt.geom.AffineTransform; + /** + * Returns the bounds of the GraphicsConfiguration + * in the device coordinates. In a multi-screen environment + * with a virtual device, the bounds can have negative X + * or Y origins. + */ + // @ts-ignore + public abstract getBounds(): java.awt.Rectangle; + /** + * Returns the buffering capabilities of this + * GraphicsConfiguration. + */ + // @ts-ignore + public getBufferCapabilities(): java.awt.BufferCapabilities; + /** + * Returns the image capabilities of this + * GraphicsConfiguration. + */ + // @ts-ignore + public getImageCapabilities(): java.awt.ImageCapabilities; + /** + * Returns whether this {@code GraphicsConfiguration} supports + * the {@link GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT + * PERPIXEL_TRANSLUCENT} kind of translucency. + */ + // @ts-ignore + public isTranslucencyCapable(): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.GraphicsDevice.WindowTranslucency.d.ts b/packages/types/dist/typings/jdk/java.awt.GraphicsDevice.WindowTranslucency.d.ts new file mode 100644 index 00000000..df6fe8b3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.GraphicsDevice.WindowTranslucency.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace GraphicsDevice { + // @ts-ignore + class WindowTranslucency extends java.lang.Enum { + // @ts-ignore + public static PERPIXEL_TRANSPARENT: java.awt.GraphicsDevice.WindowTranslucency; + // @ts-ignore + public static TRANSLUCENT: java.awt.GraphicsDevice.WindowTranslucency; + // @ts-ignore + public static PERPIXEL_TRANSLUCENT: java.awt.GraphicsDevice.WindowTranslucency; + // @ts-ignore + public static values(): java.awt.GraphicsDevice.WindowTranslucency[]; + // @ts-ignore + public static valueOf(name: string): java.awt.GraphicsDevice.WindowTranslucency; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.GraphicsDevice.d.ts b/packages/types/dist/typings/jdk/java.awt.GraphicsDevice.d.ts new file mode 100644 index 00000000..2d2ed90b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.GraphicsDevice.d.ts @@ -0,0 +1,226 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + abstract class GraphicsDevice extends java.lang.Object { + /** + * This is an abstract class that cannot be instantiated directly. + * Instances must be obtained from a suitable factory or query method. + */ + // @ts-ignore + constructor() + // @ts-ignore + public static TYPE_RASTER_SCREEN: number; + // @ts-ignore + public static TYPE_PRINTER: number; + // @ts-ignore + public static TYPE_IMAGE_BUFFER: number; + /** + * Returns the type of this GraphicsDevice. + */ + // @ts-ignore + public abstract getType(): number; + /** + * Returns the identification string associated with this + * GraphicsDevice. + *

+ * A particular program might use more than one + * GraphicsDevice in a GraphicsEnvironment. + * This method returns a String identifying a + * particular GraphicsDevice in the local + * GraphicsEnvironment. Although there is + * no public method to set this String, a programmer can + * use the String for debugging purposes. Vendors of + * the Java™ Runtime Environment can + * format the return value of the String. To determine + * how to interpret the value of the String, contact the + * vendor of your Java Runtime. To find out who the vendor is, from + * your program, call the + * {@link System#getProperty(String) getProperty} method of the + * System class with "java.vendor". + */ + // @ts-ignore + public abstract getIDstring(): string; + /** + * Returns all of the GraphicsConfiguration + * objects associated with this GraphicsDevice. + */ + // @ts-ignore + public abstract getConfigurations(): java.awt.GraphicsConfiguration[]; + /** + * Returns the default GraphicsConfiguration + * associated with this GraphicsDevice. + */ + // @ts-ignore + public abstract getDefaultConfiguration(): java.awt.GraphicsConfiguration; + /** + * Returns the "best" configuration possible that passes the + * criteria defined in the {@link GraphicsConfigTemplate}. + */ + // @ts-ignore + public getBestConfiguration(gct: java.awt.GraphicsConfigTemplate): java.awt.GraphicsConfiguration; + /** + * Returns true if this GraphicsDevice + * supports full-screen exclusive mode. + * If a SecurityManager is installed, its + * checkPermission method will be called + * with AWTPermission("fullScreenExclusive"). + * isFullScreenSupported returns true only if + * that permission is granted. + */ + // @ts-ignore + public isFullScreenSupported(): boolean; + /** + * Enter full-screen mode, or return to windowed mode. The entered + * full-screen mode may be either exclusive or simulated. Exclusive + * mode is only available if isFullScreenSupported + * returns true. + *

+ * Exclusive mode implies: + *

    + *
  • Windows cannot overlap the full-screen window. All other application + * windows will always appear beneath the full-screen window in the Z-order. + *
  • There can be only one full-screen window on a device at any time, + * so calling this method while there is an existing full-screen Window + * will cause the existing full-screen window to + * return to windowed mode. + *
  • Input method windows are disabled. It is advisable to call + * Component.enableInputMethods(false) to make a component + * a non-client of the input method framework. + *
+ *

+ * The simulated full-screen mode places and resizes the window to the maximum + * possible visible area of the screen. However, the native windowing system + * may modify the requested geometry-related data, so that the {@code Window} object + * is placed and sized in a way that corresponds closely to the desktop settings. + *

+ * When entering full-screen mode, if the window to be used as a + * full-screen window is not visible, this method will make it visible. + * It will remain visible when returning to windowed mode. + *

+ * When entering full-screen mode, all the translucency effects are reset for + * the window. Its shape is set to {@code null}, the opacity value is set to + * 1.0f, and the background color alpha is set to 255 (completely opaque). + * These values are not restored when returning to windowed mode. + *

+ * It is unspecified and platform-dependent how decorated windows operate + * in full-screen mode. For this reason, it is recommended to turn off + * the decorations in a {@code Frame} or {@code Dialog} object by using the + * {@code setUndecorated} method. + *

+ * When returning to windowed mode from an exclusive full-screen window, + * any display changes made by calling {@code setDisplayMode} are + * automatically restored to their original state. + */ + // @ts-ignore + public setFullScreenWindow(w: java.awt.Window): void; + /** + * Returns the Window object representing the + * full-screen window if the device is in full-screen mode. + */ + // @ts-ignore + public getFullScreenWindow(): java.awt.Window; + /** + * Returns true if this GraphicsDevice + * supports low-level display changes. + * On some platforms low-level display changes may only be allowed in + * full-screen exclusive mode (i.e., if {@link #isFullScreenSupported()} + * returns {@code true} and the application has already entered + * full-screen mode using {@link #setFullScreenWindow}). + */ + // @ts-ignore + public isDisplayChangeSupported(): boolean; + /** + * Sets the display mode of this graphics device. This is only allowed + * if {@link #isDisplayChangeSupported()} returns {@code true} and may + * require first entering full-screen exclusive mode using + * {@link #setFullScreenWindow} providing that full-screen exclusive mode is + * supported (i.e., {@link #isFullScreenSupported()} returns + * {@code true}). + *

+ * The display mode must be one of the display modes returned by + * {@link #getDisplayModes()}, with one exception: passing a display mode + * with {@link DisplayMode#REFRESH_RATE_UNKNOWN} refresh rate will result in + * selecting a display mode from the list of available display modes with + * matching width, height and bit depth. + * However, passing a display mode with {@link DisplayMode#BIT_DEPTH_MULTI} + * for bit depth is only allowed if such mode exists in the list returned by + * {@link #getDisplayModes()}. + *

+ * Example code: + *


+             * Frame frame;
+             * DisplayMode newDisplayMode;
+             * GraphicsDevice gd;
+             * // create a Frame, select desired DisplayMode from the list of modes
+             * // returned by gd.getDisplayModes() ...
+             * if (gd.isFullScreenSupported()) {
+             * gd.setFullScreenWindow(frame);
+             * } else {
+             * // proceed in non-full-screen mode
+             * frame.setSize(...);
+             * frame.setLocation(...);
+             * frame.setVisible(true);
+             * }
+             * if (gd.isDisplayChangeSupported()) {
+             * gd.setDisplayMode(newDisplayMode);
+             * }
+             * 
+ */ + // @ts-ignore + public setDisplayMode(dm: java.awt.DisplayMode): void; + /** + * Returns the current display mode of this + * GraphicsDevice. + * The returned display mode is allowed to have a refresh rate + * {@link DisplayMode#REFRESH_RATE_UNKNOWN} if it is indeterminate. + * Likewise, the returned display mode is allowed to have a bit depth + * {@link DisplayMode#BIT_DEPTH_MULTI} if it is indeterminate or if multiple + * bit depths are supported. + */ + // @ts-ignore + public getDisplayMode(): java.awt.DisplayMode; + /** + * Returns all display modes available for this + * GraphicsDevice. + * The returned display modes are allowed to have a refresh rate + * {@link DisplayMode#REFRESH_RATE_UNKNOWN} if it is indeterminate. + * Likewise, the returned display modes are allowed to have a bit depth + * {@link DisplayMode#BIT_DEPTH_MULTI} if it is indeterminate or if multiple + * bit depths are supported. + */ + // @ts-ignore + public getDisplayModes(): java.awt.DisplayMode[]; + /** + * This method returns the number of bytes available in + * accelerated memory on this device. + * Some images are created or cached + * in accelerated memory on a first-come, + * first-served basis. On some operating systems, + * this memory is a finite resource. Calling this method + * and scheduling the creation and flushing of images carefully may + * enable applications to make the most efficient use of + * that finite resource. + *
+ * Note that the number returned is a snapshot of how much + * memory is available; some images may still have problems + * being allocated into that memory. For example, depending + * on operating system, driver, memory configuration, and + * thread situations, the full extent of the size reported + * may not be available for a given image. There are further + * inquiry methods on the {@link ImageCapabilities} object + * associated with a VolatileImage that can be used to determine + * whether a particular VolatileImage has been created in accelerated + * memory. + */ + // @ts-ignore + public getAvailableAcceleratedMemory(): number; + /** + * Returns whether the given level of translucency is supported by + * this graphics device. + */ + // @ts-ignore + public isWindowTranslucencySupported(translucencyKind: java.awt.GraphicsDevice.WindowTranslucency): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.GraphicsEnvironment.d.ts b/packages/types/dist/typings/jdk/java.awt.GraphicsEnvironment.d.ts new file mode 100644 index 00000000..04b97c0f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.GraphicsEnvironment.d.ts @@ -0,0 +1,176 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + abstract class GraphicsEnvironment extends java.lang.Object { + /** + * This is an abstract class and cannot be instantiated directly. + * Instances must be obtained from a suitable factory or query method. + */ + // @ts-ignore + constructor() + /** + * Returns the local GraphicsEnvironment. + */ + // @ts-ignore + public static getLocalGraphicsEnvironment(): java.awt.GraphicsEnvironment; + /** + * Tests whether or not a display, keyboard, and mouse can be + * supported in this environment. If this method returns true, + * a HeadlessException is thrown from areas of the Toolkit + * and GraphicsEnvironment that are dependent on a display, + * keyboard, or mouse. + */ + // @ts-ignore + public static isHeadless(): boolean; + /** + * Returns whether or not a display, keyboard, and mouse can be + * supported in this graphics environment. If this returns true, + * HeadlessException will be thrown from areas of the + * graphics environment that are dependent on a display, keyboard, or + * mouse. + */ + // @ts-ignore + public isHeadlessInstance(): boolean; + /** + * Returns an array of all of the screen GraphicsDevice + * objects. + */ + // @ts-ignore + public abstract getScreenDevices(): java.awt.GraphicsDevice[]; + /** + * Returns the default screen GraphicsDevice. + */ + // @ts-ignore + public abstract getDefaultScreenDevice(): java.awt.GraphicsDevice; + /** + * Returns a Graphics2D object for rendering into the + * specified {@link BufferedImage}. + */ + // @ts-ignore + public abstract createGraphics(img: java.awt.image.BufferedImage): java.awt.Graphics2D; + /** + * Returns an array containing a one-point size instance of all fonts + * available in this GraphicsEnvironment. Typical usage + * would be to allow a user to select a particular font. Then, the + * application can size the font and set various font attributes by + * calling the deriveFont method on the chosen instance. + *

+ * This method provides for the application the most precise control + * over which Font instance is used to render text. + * If a font in this GraphicsEnvironment has multiple + * programmable variations, only one + * instance of that Font is returned in the array, and + * other variations must be derived by the application. + *

+ * If a font in this environment has multiple programmable variations, + * such as Multiple-Master fonts, only one instance of that font is + * returned in the Font array. The other variations + * must be derived by the application. + */ + // @ts-ignore + public abstract getAllFonts(): java.awt.Font[]; + /** + * Returns an array containing the names of all font families in this + * GraphicsEnvironment localized for the default locale, + * as returned by Locale.getDefault(). + *

+ * Typical usage would be for presentation to a user for selection of + * a particular family name. An application can then specify this name + * when creating a font, in conjunction with a style, such as bold or + * italic, giving the font system flexibility in choosing its own best + * match among multiple fonts in the same font family. + */ + // @ts-ignore + public abstract getAvailableFontFamilyNames(): java.lang.String[]; + /** + * Registers a created Fontin this + * GraphicsEnvironment. + * A created font is one that was returned from calling + * {@link Font#createFont}, or derived from a created font by + * calling {@link Font#deriveFont}. + * After calling this method for such a font, it is available to + * be used in constructing new Fonts by name or family name, + * and is enumerated by {@link #getAvailableFontFamilyNames} and + * {@link #getAllFonts} within the execution context of this + * application or applet. This means applets cannot register fonts in + * a way that they are visible to other applets. + *

+ * Reasons that this method might not register the font and therefore + * return false are: + *

    + *
  • The font is not a created Font. + *
  • The font conflicts with a non-created Font already + * in this GraphicsEnvironment. For example if the name + * is that of a system font, or a logical font as described in the + * documentation of the {@link Font} class. It is implementation dependent + * whether a font may also conflict if it has the same family name + * as a system font. + *

    Notice that an application can supersede the registration + * of an earlier created font with a new one. + *

+ */ + // @ts-ignore + public registerFont(font: java.awt.Font): boolean; + /** + * Indicates a preference for locale-specific fonts in the mapping of + * logical fonts to physical fonts. Calling this method indicates that font + * rendering should primarily use fonts specific to the primary writing + * system (the one indicated by the default encoding and the initial + * default locale). For example, if the primary writing system is + * Japanese, then characters should be rendered using a Japanese font + * if possible, and other fonts should only be used for characters for + * which the Japanese font doesn't have glyphs. + *

+ * The actual change in font rendering behavior resulting from a call + * to this method is implementation dependent; it may have no effect at + * all, or the requested behavior may already match the default behavior. + * The behavior may differ between font rendering in lightweight + * and peered components. Since calling this method requests a + * different font, clients should expect different metrics, and may need + * to recalculate window sizes and layout. Therefore this method should + * be called before user interface initialisation. + */ + // @ts-ignore + public preferLocaleFonts(): void; + /** + * Indicates a preference for proportional over non-proportional (e.g. + * dual-spaced CJK fonts) fonts in the mapping of logical fonts to + * physical fonts. If the default mapping contains fonts for which + * proportional and non-proportional variants exist, then calling + * this method indicates the mapping should use a proportional variant. + *

+ * The actual change in font rendering behavior resulting from a call to + * this method is implementation dependent; it may have no effect at all. + * The behavior may differ between font rendering in lightweight and + * peered components. Since calling this method requests a + * different font, clients should expect different metrics, and may need + * to recalculate window sizes and layout. Therefore this method should + * be called before user interface initialisation. + */ + // @ts-ignore + public preferProportionalFonts(): void; + /** + * Returns the Point where Windows should be centered. + * It is recommended that centered Windows be checked to ensure they fit + * within the available display area using getMaximumWindowBounds(). + */ + // @ts-ignore + public getCenterPoint(): java.awt.Point; + /** + * Returns the maximum bounds for centered Windows. + * These bounds account for objects in the native windowing system such as + * task bars and menu bars. The returned bounds will reside on a single + * display with one exception: on multi-screen systems where Windows should + * be centered across all displays, this method returns the bounds of the + * entire display area. + *

+ * To get the usable bounds of a single display, use + * GraphicsConfiguration.getBounds() and + * Toolkit.getScreenInsets(). + */ + // @ts-ignore + public getMaximumWindowBounds(): java.awt.Rectangle; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.GridBagConstraints.d.ts b/packages/types/dist/typings/jdk/java.awt.GridBagConstraints.d.ts new file mode 100644 index 00000000..c3391b1b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.GridBagConstraints.d.ts @@ -0,0 +1,112 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class GridBagConstraints extends java.lang.Object { + /** + * Creates a GridBagConstraint object with + * all of its fields set to their default value. + */ + // @ts-ignore + constructor() + /** + * Creates a GridBagConstraints object with + * all of its fields set to the passed-in arguments. + * Note: Because the use of this constructor hinders readability + * of source code, this constructor should only be used by + * automatic source code generation tools. + */ + // @ts-ignore + constructor(gridx: number, gridy: number, gridwidth: number, gridheight: number, weightx: number, weighty: number, anchor: number, fill: number, insets: java.awt.Insets, ipadx: number, ipady: number) + // @ts-ignore + public static RELATIVE: number; + // @ts-ignore + public static REMAINDER: number; + // @ts-ignore + public static NONE: number; + // @ts-ignore + public static BOTH: number; + // @ts-ignore + public static HORIZONTAL: number; + // @ts-ignore + public static VERTICAL: number; + // @ts-ignore + public static CENTER: number; + // @ts-ignore + public static NORTH: number; + // @ts-ignore + public static NORTHEAST: number; + // @ts-ignore + public static EAST: number; + // @ts-ignore + public static SOUTHEAST: number; + // @ts-ignore + public static SOUTH: number; + // @ts-ignore + public static SOUTHWEST: number; + // @ts-ignore + public static WEST: number; + // @ts-ignore + public static NORTHWEST: number; + // @ts-ignore + public static PAGE_START: number; + // @ts-ignore + public static PAGE_END: number; + // @ts-ignore + public static LINE_START: number; + // @ts-ignore + public static LINE_END: number; + // @ts-ignore + public static FIRST_LINE_START: number; + // @ts-ignore + public static FIRST_LINE_END: number; + // @ts-ignore + public static LAST_LINE_START: number; + // @ts-ignore + public static LAST_LINE_END: number; + // @ts-ignore + public static BASELINE: number; + // @ts-ignore + public static BASELINE_LEADING: number; + // @ts-ignore + public static BASELINE_TRAILING: number; + // @ts-ignore + public static ABOVE_BASELINE: number; + // @ts-ignore + public static ABOVE_BASELINE_LEADING: number; + // @ts-ignore + public static ABOVE_BASELINE_TRAILING: number; + // @ts-ignore + public static BELOW_BASELINE: number; + // @ts-ignore + public static BELOW_BASELINE_LEADING: number; + // @ts-ignore + public static BELOW_BASELINE_TRAILING: number; + // @ts-ignore + public gridx: number; + // @ts-ignore + public gridy: number; + // @ts-ignore + public gridwidth: number; + // @ts-ignore + public gridheight: number; + // @ts-ignore + public weightx: number; + // @ts-ignore + public weighty: number; + // @ts-ignore + public anchor: number; + // @ts-ignore + public insets: java.awt.Insets; + // @ts-ignore + public ipadx: number; + // @ts-ignore + public ipady: number; + /** + * Creates a copy of this grid bag constraint. + */ + // @ts-ignore + public clone(): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.GridBagLayout.d.ts b/packages/types/dist/typings/jdk/java.awt.GridBagLayout.d.ts new file mode 100644 index 00000000..af2d0915 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.GridBagLayout.d.ts @@ -0,0 +1,268 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class GridBagLayout extends java.lang.Object { + /** + * Creates a grid bag layout manager. + */ + // @ts-ignore + constructor() + // @ts-ignore + protected static MAXGRIDSIZE: number; + // @ts-ignore + protected static MINSIZE: number; + // @ts-ignore + protected static PREFERREDSIZE: number; + // @ts-ignore + protected comptable: java.util.Hashtable; + // @ts-ignore + protected defaultConstraints: java.awt.GridBagConstraints; + // @ts-ignore + protected layoutInfo: java.awt.GridBagLayoutInfo; + // @ts-ignore + public columnWidths: number[]; + // @ts-ignore + public rowHeights: number[]; + // @ts-ignore + public columnWeights: number[]; + // @ts-ignore + public rowWeights: number[]; + /** + * Sets the constraints for the specified component in this layout. + */ + // @ts-ignore + public setConstraints(comp: java.awt.Component, constraints: java.awt.GridBagConstraints): void; + /** + * Gets the constraints for the specified component. A copy of + * the actual GridBagConstraints object is returned. + */ + // @ts-ignore + public getConstraints(comp: java.awt.Component): java.awt.GridBagConstraints; + /** + * Retrieves the constraints for the specified component. + * The return value is not a copy, but is the actual + * GridBagConstraints object used by the layout mechanism. + *

+ * If comp is not in the GridBagLayout, + * a set of default GridBagConstraints are returned. + * A comp value of null is invalid + * and returns null. + */ + // @ts-ignore + protected lookupConstraints(comp: java.awt.Component): java.awt.GridBagConstraints; + /** + * Determines the origin of the layout area, in the graphics coordinate + * space of the target container. This value represents the pixel + * coordinates of the top-left corner of the layout area regardless of + * the ComponentOrientation value of the container. This + * is distinct from the grid origin given by the cell coordinates (0,0). + * Most applications do not call this method directly. + */ + // @ts-ignore + public getLayoutOrigin(): java.awt.Point; + /** + * Determines column widths and row heights for the layout grid. + *

+ * Most applications do not call this method directly. + */ + // @ts-ignore + public getLayoutDimensions(): number[][]; + /** + * Determines the weights of the layout grid's columns and rows. + * Weights are used to calculate how much a given column or row + * stretches beyond its preferred size, if the layout has extra + * room to fill. + *

+ * Most applications do not call this method directly. + */ + // @ts-ignore + public getLayoutWeights(): double[][]; + /** + * Determines which cell in the layout grid contains the point + * specified by (x, y). Each cell is identified + * by its column index (ranging from 0 to the number of columns + * minus 1) and its row index (ranging from 0 to the number of + * rows minus 1). + *

+ * If the (x, y) point lies + * outside the grid, the following rules are used. + * The column index is returned as zero if x lies to the + * left of the layout for a left-to-right container or to the right of + * the layout for a right-to-left container. The column index is returned + * as the number of columns if x lies + * to the right of the layout in a left-to-right container or to the left + * in a right-to-left container. + * The row index is returned as zero if y lies above the + * layout, and as the number of rows if y lies + * below the layout. The orientation of a container is determined by its + * ComponentOrientation property. + */ + // @ts-ignore + public location(x: number, y: number): java.awt.Point; + /** + * Has no effect, since this layout manager does not use a per-component string. + */ + // @ts-ignore + public addLayoutComponent(name: string, comp: java.awt.Component): void; + /** + * Adds the specified component to the layout, using the specified + * constraints object. Note that constraints + * are mutable and are, therefore, cloned when cached. + */ + // @ts-ignore + public addLayoutComponent(comp: java.awt.Component, constraints: java.lang.Object): void; + /** + * Removes the specified component from this layout. + *

+ * Most applications do not call this method directly. + */ + // @ts-ignore + public removeLayoutComponent(comp: java.awt.Component): void; + /** + * Determines the preferred size of the parent + * container using this grid bag layout. + *

+ * Most applications do not call this method directly. + */ + // @ts-ignore + public preferredLayoutSize(parent: java.awt.Container): java.awt.Dimension; + /** + * Determines the minimum size of the parent container + * using this grid bag layout. + *

+ * Most applications do not call this method directly. + */ + // @ts-ignore + public minimumLayoutSize(parent: java.awt.Container): java.awt.Dimension; + /** + * Returns the maximum dimensions for this layout given the components + * in the specified target container. + */ + // @ts-ignore + public maximumLayoutSize(target: java.awt.Container): java.awt.Dimension; + /** + * Returns the alignment along the x axis. This specifies how + * the component would like to be aligned relative to other + * components. The value should be a number between 0 and 1 + * where 0 represents alignment along the origin, 1 is aligned + * the furthest away from the origin, 0.5 is centered, etc. + *

+ */ + // @ts-ignore + public getLayoutAlignmentX(parent: java.awt.Container): number; + /** + * Returns the alignment along the y axis. This specifies how + * the component would like to be aligned relative to other + * components. The value should be a number between 0 and 1 + * where 0 represents alignment along the origin, 1 is aligned + * the furthest away from the origin, 0.5 is centered, etc. + *

+ */ + // @ts-ignore + public getLayoutAlignmentY(parent: java.awt.Container): number; + /** + * Invalidates the layout, indicating that if the layout manager + * has cached information it should be discarded. + */ + // @ts-ignore + public invalidateLayout(target: java.awt.Container): void; + /** + * Lays out the specified container using this grid bag layout. + * This method reshapes components in the specified container in + * order to satisfy the constraints of this GridBagLayout + * object. + *

+ * Most applications do not call this method directly. + */ + // @ts-ignore + public layoutContainer(parent: java.awt.Container): void; + /** + * Returns a string representation of this grid bag layout's values. + */ + // @ts-ignore + public toString(): string; + /** + * Fills in an instance of GridBagLayoutInfo for the + * current set of managed children. This requires three passes through the + * set of children: + *

    + *
  1. Figure out the dimensions of the layout grid. + *
  2. Determine which cells the components occupy. + *
  3. Distribute the weights and min sizes among the rows/columns. + *
+ * This also caches the minsizes for all the children when they are + * first encountered (so subsequent loops don't need to ask again). + *

+ * This method should only be used internally by + * GridBagLayout. + */ + // @ts-ignore + protected getLayoutInfo(parent: java.awt.Container, sizeflag: number): java.awt.GridBagLayoutInfo; + /** + * This method is obsolete and supplied for backwards + * compatibility only; new code should call {@link + * #getLayoutInfo(java.awt.Container, int) getLayoutInfo} instead. + * This method is the same as getLayoutInfo; + * refer to getLayoutInfo for details on parameters + * and return value. + */ + // @ts-ignore + protected GetLayoutInfo(parent: java.awt.Container, sizeflag: number): java.awt.GridBagLayoutInfo; + /** + * Adjusts the x, y, width, and height fields to the correct + * values depending on the constraint geometry and pads. + * This method should only be used internally by + * GridBagLayout. + */ + // @ts-ignore + protected adjustForGravity(constraints: java.awt.GridBagConstraints, r: java.awt.Rectangle): void; + /** + * This method is obsolete and supplied for backwards + * compatibility only; new code should call {@link + * #adjustForGravity(java.awt.GridBagConstraints, java.awt.Rectangle) + * adjustForGravity} instead. + * This method is the same as adjustForGravity; + * refer to adjustForGravity for details + * on parameters. + */ + // @ts-ignore + protected AdjustForGravity(constraints: java.awt.GridBagConstraints, r: java.awt.Rectangle): void; + /** + * Figures out the minimum size of the + * master based on the information from getLayoutInfo. + * This method should only be used internally by + * GridBagLayout. + */ + // @ts-ignore + protected getMinSize(parent: java.awt.Container, info: java.awt.GridBagLayoutInfo): java.awt.Dimension; + /** + * This method is obsolete and supplied for backwards + * compatibility only; new code should call {@link + * #getMinSize(java.awt.Container, GridBagLayoutInfo) getMinSize} instead. + * This method is the same as getMinSize; + * refer to getMinSize for details on parameters + * and return value. + */ + // @ts-ignore + protected GetMinSize(parent: java.awt.Container, info: java.awt.GridBagLayoutInfo): java.awt.Dimension; + /** + * Lays out the grid. + * This method should only be used internally by + * GridBagLayout. + */ + // @ts-ignore + protected arrangeGrid(parent: java.awt.Container): void; + /** + * This method is obsolete and supplied for backwards + * compatibility only; new code should call {@link + * #arrangeGrid(Container) arrangeGrid} instead. + * This method is the same as arrangeGrid; + * refer to arrangeGrid for details on the + * parameter. + */ + // @ts-ignore + protected ArrangeGrid(parent: java.awt.Container): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.GridBagLayoutInfo.d.ts b/packages/types/dist/typings/jdk/java.awt.GridBagLayoutInfo.d.ts new file mode 100644 index 00000000..d5f82809 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.GridBagLayoutInfo.d.ts @@ -0,0 +1,8 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class GridBagLayoutInfo extends java.lang.Object { + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.GridLayout.d.ts b/packages/types/dist/typings/jdk/java.awt.GridLayout.d.ts new file mode 100644 index 00000000..55bba253 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.GridLayout.d.ts @@ -0,0 +1,149 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class GridLayout extends java.lang.Object { + /** + * Creates a grid layout with a default of one column per component, + * in a single row. + */ + // @ts-ignore + constructor() + /** + * Creates a grid layout with the specified number of rows and + * columns. All components in the layout are given equal size. + *

+ * One, but not both, of rows and cols can + * be zero, which means that any number of objects can be placed in a + * row or in a column. + */ + // @ts-ignore + constructor(rows: number, cols: number) + /** + * Creates a grid layout with the specified number of rows and + * columns. All components in the layout are given equal size. + *

+ * In addition, the horizontal and vertical gaps are set to the + * specified values. Horizontal gaps are placed between each + * of the columns. Vertical gaps are placed between each of + * the rows. + *

+ * One, but not both, of rows and cols can + * be zero, which means that any number of objects can be placed in a + * row or in a column. + *

+ * All GridLayout constructors defer to this one. + */ + // @ts-ignore + constructor(rows: number, cols: number, hgap: number, vgap: number) + /** + * Gets the number of rows in this layout. + */ + // @ts-ignore + public getRows(): number; + /** + * Sets the number of rows in this layout to the specified value. + */ + // @ts-ignore + public setRows(rows: number): void; + /** + * Gets the number of columns in this layout. + */ + // @ts-ignore + public getColumns(): number; + /** + * Sets the number of columns in this layout to the specified value. + * Setting the number of columns has no affect on the layout + * if the number of rows specified by a constructor or by + * the setRows method is non-zero. In that case, the number + * of columns displayed in the layout is determined by the total + * number of components and the number of rows specified. + */ + // @ts-ignore + public setColumns(cols: number): void; + /** + * Gets the horizontal gap between components. + */ + // @ts-ignore + public getHgap(): number; + /** + * Sets the horizontal gap between components to the specified value. + */ + // @ts-ignore + public setHgap(hgap: number): void; + /** + * Gets the vertical gap between components. + */ + // @ts-ignore + public getVgap(): number; + /** + * Sets the vertical gap between components to the specified value. + */ + // @ts-ignore + public setVgap(vgap: number): void; + /** + * Adds the specified component with the specified name to the layout. + */ + // @ts-ignore + public addLayoutComponent(name: string, comp: java.awt.Component): void; + /** + * Removes the specified component from the layout. + */ + // @ts-ignore + public removeLayoutComponent(comp: java.awt.Component): void; + /** + * Determines the preferred size of the container argument using + * this grid layout. + *

+ * The preferred width of a grid layout is the largest preferred + * width of all of the components in the container times the number of + * columns, plus the horizontal padding times the number of columns + * minus one, plus the left and right insets of the target container. + *

+ * The preferred height of a grid layout is the largest preferred + * height of all of the components in the container times the number of + * rows, plus the vertical padding times the number of rows minus one, + * plus the top and bottom insets of the target container. + */ + // @ts-ignore + public preferredLayoutSize(parent: java.awt.Container): java.awt.Dimension; + /** + * Determines the minimum size of the container argument using this + * grid layout. + *

+ * The minimum width of a grid layout is the largest minimum width + * of all of the components in the container times the number of columns, + * plus the horizontal padding times the number of columns minus one, + * plus the left and right insets of the target container. + *

+ * The minimum height of a grid layout is the largest minimum height + * of all of the components in the container times the number of rows, + * plus the vertical padding times the number of rows minus one, plus + * the top and bottom insets of the target container. + */ + // @ts-ignore + public minimumLayoutSize(parent: java.awt.Container): java.awt.Dimension; + /** + * Lays out the specified container using this layout. + *

+ * This method reshapes the components in the specified target + * container in order to satisfy the constraints of the + * GridLayout object. + *

+ * The grid layout manager determines the size of individual + * components by dividing the free space in the container into + * equal-sized portions according to the number of rows and columns + * in the layout. The container's free space equals the container's + * size minus any insets and any specified horizontal or vertical + * gap. All components in a grid layout are given the same size. + */ + // @ts-ignore + public layoutContainer(parent: java.awt.Container): void; + /** + * Returns the string representation of this grid layout's values. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.HeadlessException.d.ts b/packages/types/dist/typings/jdk/java.awt.HeadlessException.d.ts new file mode 100644 index 00000000..e11f7d1d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.HeadlessException.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class HeadlessException extends java.lang.UnsupportedOperationException { + // @ts-ignore + constructor() + // @ts-ignore + constructor(msg: string) + // @ts-ignore + public getMessage(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.IllegalComponentStateException.d.ts b/packages/types/dist/typings/jdk/java.awt.IllegalComponentStateException.d.ts new file mode 100644 index 00000000..4753fc79 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.IllegalComponentStateException.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class IllegalComponentStateException extends java.lang.IllegalStateException { + /** + * Constructs an IllegalComponentStateException with no detail message. + * A detail message is a String that describes this particular exception. + */ + // @ts-ignore + constructor() + /** + * Constructs an IllegalComponentStateException with the specified detail + * message. A detail message is a String that describes this particular + * exception. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Image.d.ts b/packages/types/dist/typings/jdk/java.awt.Image.d.ts new file mode 100644 index 00000000..95f00e5e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Image.d.ts @@ -0,0 +1,157 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + abstract class Image extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + protected accelerationPriority: number; + // @ts-ignore + public static UndefinedProperty: java.lang.Object; + // @ts-ignore + public static SCALE_DEFAULT: number; + // @ts-ignore + public static SCALE_FAST: number; + // @ts-ignore + public static SCALE_SMOOTH: number; + // @ts-ignore + public static SCALE_REPLICATE: number; + // @ts-ignore + public static SCALE_AREA_AVERAGING: number; + /** + * Determines the width of the image. If the width is not yet known, + * this method returns -1 and the specified + * ImageObserver object is notified later. + */ + // @ts-ignore + public abstract getWidth(observer: java.awt.image.ImageObserver): number; + /** + * Determines the height of the image. If the height is not yet known, + * this method returns -1 and the specified + * ImageObserver object is notified later. + */ + // @ts-ignore + public abstract getHeight(observer: java.awt.image.ImageObserver): number; + /** + * Gets the object that produces the pixels for the image. + * This method is called by the image filtering classes and by + * methods that perform image conversion and scaling. + */ + // @ts-ignore + public abstract getSource(): java.awt.image.ImageProducer; + /** + * Creates a graphics context for drawing to an off-screen image. + * This method can only be called for off-screen images. + */ + // @ts-ignore + public abstract getGraphics(): java.awt.Graphics; + /** + * Gets a property of this image by name. + *

+ * Individual property names are defined by the various image + * formats. If a property is not defined for a particular image, this + * method returns the UndefinedProperty object. + *

+ * If the properties for this image are not yet known, this method + * returns null, and the ImageObserver + * object is notified later. + *

+ * The property name "comment" should be used to store + * an optional comment which can be presented to the application as a + * description of the image, its source, or its author. + */ + // @ts-ignore + public abstract getProperty(name: string, observer: java.awt.image.ImageObserver): java.lang.Object; + /** + * Creates a scaled version of this image. + * A new Image object is returned which will render + * the image at the specified width and + * height by default. The new Image object + * may be loaded asynchronously even if the original source image + * has already been loaded completely. + *

+ * If either width + * or height is a negative number then a value is + * substituted to maintain the aspect ratio of the original image + * dimensions. If both width and height + * are negative, then the original image dimensions are used. + */ + // @ts-ignore + public getScaledInstance(width: number, height: number, hints: number): java.awt.Image; + /** + * Flushes all reconstructable resources being used by this Image object. + * This includes any pixel data that is being cached for rendering to + * the screen as well as any system resources that are being used + * to store data or pixels for the image if they can be recreated. + * The image is reset to a state similar to when it was first created + * so that if it is again rendered, the image data will have to be + * recreated or fetched again from its source. + *

+ * Examples of how this method affects specific types of Image object: + *

    + *
  • + * BufferedImage objects leave the primary Raster which stores their + * pixels untouched, but flush any information cached about those + * pixels such as copies uploaded to the display hardware for + * accelerated blits. + *
  • + * Image objects created by the Component methods which take a + * width and height leave their primary buffer of pixels untouched, + * but have all cached information released much like is done for + * BufferedImage objects. + *
  • + * VolatileImage objects release all of their pixel resources + * including their primary copy which is typically stored on + * the display hardware where resources are scarce. + * These objects can later be restored using their + * {@link java.awt.image.VolatileImage#validate validate} + * method. + *
  • + * Image objects created by the Toolkit and Component classes which are + * loaded from files, URLs or produced by an {@link ImageProducer} + * are unloaded and all local resources are released. + * These objects can later be reloaded from their original source + * as needed when they are rendered, just as when they were first + * created. + *
+ */ + // @ts-ignore + public flush(): void; + /** + * Returns an ImageCapabilities object which can be + * inquired as to the capabilities of this + * Image on the specified GraphicsConfiguration. + * This allows programmers to find + * out more runtime information on the specific Image + * object that they have created. For example, the user + * might create a BufferedImage but the system may have + * no video memory left for creating an image of that + * size on the given GraphicsConfiguration, so although the object + * may be acceleratable in general, it + * does not have that capability on this GraphicsConfiguration. + */ + // @ts-ignore + public getCapabilities(gc: java.awt.GraphicsConfiguration): java.awt.ImageCapabilities; + /** + * Sets a hint for this image about how important acceleration is. + * This priority hint is used to compare to the priorities of other + * Image objects when determining how to use scarce acceleration + * resources such as video memory. When and if it is possible to + * accelerate this Image, if there are not enough resources available + * to provide that acceleration but enough can be freed up by + * de-accelerating some other image of lower priority, then that other + * Image may be de-accelerated in deference to this one. Images + * that have the same priority take up resources on a first-come, + * first-served basis. + */ + // @ts-ignore + public setAccelerationPriority(priority: number): void; + /** + * Returns the current value of the acceleration priority hint. + */ + // @ts-ignore + public getAccelerationPriority(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.ImageCapabilities.d.ts b/packages/types/dist/typings/jdk/java.awt.ImageCapabilities.d.ts new file mode 100644 index 00000000..f027d50a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.ImageCapabilities.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class ImageCapabilities extends java.lang.Object { + /** + * Creates a new object for specifying image capabilities. + */ + // @ts-ignore + constructor(accelerated: boolean) + /** + * Returns true if the object whose capabilities are + * encapsulated in this ImageCapabilities can be or is + * accelerated. + */ + // @ts-ignore + public isAccelerated(): boolean; + /** + * Returns true if the VolatileImage + * described by this ImageCapabilities can lose + * its surfaces. + */ + // @ts-ignore + public isTrueVolatile(): boolean; + // @ts-ignore + public clone(): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Insets.d.ts b/packages/types/dist/typings/jdk/java.awt.Insets.d.ts new file mode 100644 index 00000000..a24ebddf --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Insets.d.ts @@ -0,0 +1,54 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class Insets extends java.lang.Object { + /** + * Creates and initializes a new Insets object with the + * specified top, left, bottom, and right insets. + */ + // @ts-ignore + constructor(top: number, left: number, bottom: number, right: number) + // @ts-ignore + public top: number; + // @ts-ignore + public left: number; + // @ts-ignore + public bottom: number; + // @ts-ignore + public right: number; + /** + * Set top, left, bottom, and right to the specified values + */ + // @ts-ignore + public set(top: number, left: number, bottom: number, right: number): void; + /** + * Checks whether two insets objects are equal. Two instances + * of Insets are equal if the four integer values + * of the fields top, left, + * bottom, and right are all equal. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns the hash code for this Insets. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns a string representation of this Insets object. + * This method is intended to be used only for debugging purposes, and + * the content and format of the returned string may vary between + * implementations. The returned string may be empty but may not be + * null. + */ + // @ts-ignore + public toString(): string; + /** + * Create a copy of this object. + */ + // @ts-ignore + public clone(): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.ItemSelectable.d.ts b/packages/types/dist/typings/jdk/java.awt.ItemSelectable.d.ts new file mode 100644 index 00000000..bf550f2b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.ItemSelectable.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + interface ItemSelectable { + /** + * Returns the selected items or null if no + * items are selected. + */ + // @ts-ignore + getSelectedObjects(): java.lang.Object[]; + /** + * Adds a listener to receive item events when the state of an item is + * changed by the user. Item events are not sent when an item's + * state is set programmatically. If l is + * null, no exception is thrown and no action is performed. + */ + // @ts-ignore + addItemListener(l: java.awt.event.ItemListener): void; + /** + * Removes an item listener. + * If l is null, + * no exception is thrown and no action is performed. + */ + // @ts-ignore + removeItemListener(l: java.awt.event.ItemListener): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.JobAttributes.DefaultSelectionType.d.ts b/packages/types/dist/typings/jdk/java.awt.JobAttributes.DefaultSelectionType.d.ts new file mode 100644 index 00000000..7c1304b1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.JobAttributes.DefaultSelectionType.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace JobAttributes { + // @ts-ignore + class DefaultSelectionType extends java.awt.AttributeValue { + // @ts-ignore + public static ALL: java.awt.JobAttributes.DefaultSelectionType; + // @ts-ignore + public static RANGE: java.awt.JobAttributes.DefaultSelectionType; + // @ts-ignore + public static SELECTION: java.awt.JobAttributes.DefaultSelectionType; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.JobAttributes.DestinationType.d.ts b/packages/types/dist/typings/jdk/java.awt.JobAttributes.DestinationType.d.ts new file mode 100644 index 00000000..e4fdef7e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.JobAttributes.DestinationType.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace JobAttributes { + // @ts-ignore + class DestinationType extends java.awt.AttributeValue { + // @ts-ignore + public static FILE: java.awt.JobAttributes.DestinationType; + // @ts-ignore + public static PRINTER: java.awt.JobAttributes.DestinationType; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.JobAttributes.DialogType.d.ts b/packages/types/dist/typings/jdk/java.awt.JobAttributes.DialogType.d.ts new file mode 100644 index 00000000..4b985c11 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.JobAttributes.DialogType.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace JobAttributes { + // @ts-ignore + class DialogType extends java.awt.AttributeValue { + // @ts-ignore + public static COMMON: java.awt.JobAttributes.DialogType; + // @ts-ignore + public static NATIVE: java.awt.JobAttributes.DialogType; + // @ts-ignore + public static NONE: java.awt.JobAttributes.DialogType; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.JobAttributes.MultipleDocumentHandlingType.d.ts b/packages/types/dist/typings/jdk/java.awt.JobAttributes.MultipleDocumentHandlingType.d.ts new file mode 100644 index 00000000..7956dcf7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.JobAttributes.MultipleDocumentHandlingType.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace JobAttributes { + // @ts-ignore + class MultipleDocumentHandlingType extends java.awt.AttributeValue { + // @ts-ignore + public static SEPARATE_DOCUMENTS_COLLATED_COPIES: java.awt.JobAttributes.MultipleDocumentHandlingType; + // @ts-ignore + public static SEPARATE_DOCUMENTS_UNCOLLATED_COPIES: java.awt.JobAttributes.MultipleDocumentHandlingType; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.JobAttributes.SidesType.d.ts b/packages/types/dist/typings/jdk/java.awt.JobAttributes.SidesType.d.ts new file mode 100644 index 00000000..ae120f3f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.JobAttributes.SidesType.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace JobAttributes { + // @ts-ignore + class SidesType extends java.awt.AttributeValue { + // @ts-ignore + public static ONE_SIDED: java.awt.JobAttributes.SidesType; + // @ts-ignore + public static TWO_SIDED_LONG_EDGE: java.awt.JobAttributes.SidesType; + // @ts-ignore + public static TWO_SIDED_SHORT_EDGE: java.awt.JobAttributes.SidesType; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.JobAttributes.d.ts b/packages/types/dist/typings/jdk/java.awt.JobAttributes.d.ts new file mode 100644 index 00000000..ad98f98e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.JobAttributes.d.ts @@ -0,0 +1,327 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class JobAttributes extends java.lang.Object { + /** + * Constructs a JobAttributes instance with default + * values for every attribute. The dialog defaults to + * DialogType.NATIVE. Min page defaults to + * 1. Max page defaults to Integer.MAX_VALUE. + * Destination defaults to DestinationType.PRINTER. + * Selection defaults to DefaultSelectionType.ALL. + * Number of copies defaults to 1. Multiple document handling defaults + * to MultipleDocumentHandlingType.SEPARATE_DOCUMENTS_UNCOLLATED_COPIES. + * Sides defaults to SidesType.ONE_SIDED. File name defaults + * to null. + */ + // @ts-ignore + constructor() + /** + * Constructs a JobAttributes instance which is a copy + * of the supplied JobAttributes. + */ + // @ts-ignore + constructor(obj: java.awt.JobAttributes) + /** + * Constructs a JobAttributes instance with the + * specified values for every attribute. + */ + // @ts-ignore + constructor(copies: number, defaultSelection: java.awt.JobAttributes.DefaultSelectionType, destination: java.awt.JobAttributes.DestinationType, dialog: java.awt.JobAttributes.DialogType, fileName: string, maxPage: number, minPage: number, multipleDocumentHandling: java.awt.JobAttributes.MultipleDocumentHandlingType, pageRanges: number, printer: string, sides: java.awt.JobAttributes.SidesType) + /** + * Creates and returns a copy of this JobAttributes. + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Sets all of the attributes of this JobAttributes to + * the same values as the attributes of obj. + */ + // @ts-ignore + public set(obj: java.awt.JobAttributes): void; + /** + * Returns the number of copies the application should render for jobs + * using these attributes. This attribute is updated to the value chosen + * by the user. + */ + // @ts-ignore + public getCopies(): number; + /** + * Specifies the number of copies the application should render for jobs + * using these attributes. Not specifying this attribute is equivalent to + * specifying 1. + */ + // @ts-ignore + public setCopies(copies: number): void; + /** + * Sets the number of copies the application should render for jobs using + * these attributes to the default. The default number of copies is 1. + */ + // @ts-ignore + public setCopiesToDefault(): void; + /** + * Specifies whether, for jobs using these attributes, the application + * should print all pages, the range specified by the return value of + * getPageRanges, or the current selection. This attribute + * is updated to the value chosen by the user. + */ + // @ts-ignore + public getDefaultSelection(): java.awt.JobAttributes.DefaultSelectionType; + /** + * Specifies whether, for jobs using these attributes, the application + * should print all pages, the range specified by the return value of + * getPageRanges, or the current selection. Not specifying + * this attribute is equivalent to specifying DefaultSelectionType.ALL. + */ + // @ts-ignore + public setDefaultSelection(defaultSelection: java.awt.JobAttributes.DefaultSelectionType): void; + /** + * Specifies whether output will be to a printer or a file for jobs using + * these attributes. This attribute is updated to the value chosen by the + * user. + */ + // @ts-ignore + public getDestination(): java.awt.JobAttributes.DestinationType; + /** + * Specifies whether output will be to a printer or a file for jobs using + * these attributes. Not specifying this attribute is equivalent to + * specifying DesintationType.PRINTER. + */ + // @ts-ignore + public setDestination(destination: java.awt.JobAttributes.DestinationType): void; + /** + * Returns whether, for jobs using these attributes, the user should see + * a print dialog in which to modify the print settings, and which type of + * print dialog should be displayed. DialogType.COMMON denotes a cross- + * platform, pure Java print dialog. DialogType.NATIVE denotes the + * platform's native print dialog. If a platform does not support a native + * print dialog, the pure Java print dialog is displayed instead. + * DialogType.NONE specifies no print dialog (i.e., background printing). + * This attribute cannot be modified by, and is not subject to any + * limitations of, the implementation or the target printer. + */ + // @ts-ignore + public getDialog(): java.awt.JobAttributes.DialogType; + /** + * Specifies whether, for jobs using these attributes, the user should see + * a print dialog in which to modify the print settings, and which type of + * print dialog should be displayed. DialogType.COMMON denotes a cross- + * platform, pure Java print dialog. DialogType.NATIVE denotes the + * platform's native print dialog. If a platform does not support a native + * print dialog, the pure Java print dialog is displayed instead. + * DialogType.NONE specifies no print dialog (i.e., background printing). + * Not specifying this attribute is equivalent to specifying + * DialogType.NATIVE. + */ + // @ts-ignore + public setDialog(dialog: java.awt.JobAttributes.DialogType): void; + /** + * Specifies the file name for the output file for jobs using these + * attributes. This attribute is updated to the value chosen by the user. + */ + // @ts-ignore + public getFileName(): string; + /** + * Specifies the file name for the output file for jobs using these + * attributes. Default is platform-dependent and implementation-defined. + */ + // @ts-ignore + public setFileName(fileName: string): void; + /** + * Returns, for jobs using these attributes, the first page to be + * printed, if a range of pages is to be printed. This attribute is + * updated to the value chosen by the user. An application should ignore + * this attribute on output, unless the return value of the + * getDefaultSelection method is DefaultSelectionType.RANGE. An + * application should honor the return value of getPageRanges + * over the return value of this method, if possible. + */ + // @ts-ignore + public getFromPage(): number; + /** + * Specifies, for jobs using these attributes, the first page to be + * printed, if a range of pages is to be printed. If this attribute is not + * specified, then the values from the pageRanges attribute are used. If + * pageRanges and either or both of fromPage and toPage are specified, + * pageRanges takes precedence. Specifying none of pageRanges, fromPage, + * or toPage is equivalent to calling + * setPageRanges(new int[][] { new int[] { minPage } }); + */ + // @ts-ignore + public setFromPage(fromPage: number): void; + /** + * Specifies the maximum value the user can specify as the last page to + * be printed for jobs using these attributes. This attribute cannot be + * modified by, and is not subject to any limitations of, the + * implementation or the target printer. + */ + // @ts-ignore + public getMaxPage(): number; + /** + * Specifies the maximum value the user can specify as the last page to + * be printed for jobs using these attributes. Not specifying this + * attribute is equivalent to specifying Integer.MAX_VALUE. + */ + // @ts-ignore + public setMaxPage(maxPage: number): void; + /** + * Specifies the minimum value the user can specify as the first page to + * be printed for jobs using these attributes. This attribute cannot be + * modified by, and is not subject to any limitations of, the + * implementation or the target printer. + */ + // @ts-ignore + public getMinPage(): number; + /** + * Specifies the minimum value the user can specify as the first page to + * be printed for jobs using these attributes. Not specifying this + * attribute is equivalent to specifying 1. + */ + // @ts-ignore + public setMinPage(minPage: number): void; + /** + * Specifies the handling of multiple copies, including collation, for + * jobs using these attributes. This attribute is updated to the value + * chosen by the user. + */ + // @ts-ignore + public getMultipleDocumentHandling(): java.awt.JobAttributes.MultipleDocumentHandlingType; + /** + * Specifies the handling of multiple copies, including collation, for + * jobs using these attributes. Not specifying this attribute is equivalent + * to specifying + * MultipleDocumentHandlingType.SEPARATE_DOCUMENTS_UNCOLLATED_COPIES. + */ + // @ts-ignore + public setMultipleDocumentHandling(multipleDocumentHandling: java.awt.JobAttributes.MultipleDocumentHandlingType): void; + /** + * Sets the handling of multiple copies, including collation, for jobs + * using these attributes to the default. The default handling is + * MultipleDocumentHandlingType.SEPARATE_DOCUMENTS_UNCOLLATED_COPIES. + */ + // @ts-ignore + public setMultipleDocumentHandlingToDefault(): void; + /** + * Specifies, for jobs using these attributes, the ranges of pages to be + * printed, if a range of pages is to be printed. All range numbers are + * inclusive. This attribute is updated to the value chosen by the user. + * An application should ignore this attribute on output, unless the + * return value of the getDefaultSelection method is + * DefaultSelectionType.RANGE. + */ + // @ts-ignore + public getPageRanges(): number[][]; + /** + * Specifies, for jobs using these attributes, the ranges of pages to be + * printed, if a range of pages is to be printed. All range numbers are + * inclusive. If this attribute is not specified, then the values from the + * fromPage and toPages attributes are used. If pageRanges and either or + * both of fromPage and toPage are specified, pageRanges takes precedence. + * Specifying none of pageRanges, fromPage, or toPage is equivalent to + * calling setPageRanges(new int[][] { new int[] { minPage, + * minPage } }); + */ + // @ts-ignore + public setPageRanges(pageRanges: number): void; + /** + * Returns the destination printer for jobs using these attributes. This + * attribute is updated to the value chosen by the user. + */ + // @ts-ignore + public getPrinter(): string; + /** + * Specifies the destination printer for jobs using these attributes. + * Default is platform-dependent and implementation-defined. + */ + // @ts-ignore + public setPrinter(printer: string): void; + /** + * Returns how consecutive pages should be imposed upon the sides of the + * print medium for jobs using these attributes. SidesType.ONE_SIDED + * imposes each consecutive page upon the same side of consecutive media + * sheets. This imposition is sometimes called simplex. + * SidesType.TWO_SIDED_LONG_EDGE imposes each consecutive pair of pages + * upon front and back sides of consecutive media sheets, such that the + * orientation of each pair of pages on the medium would be correct for + * the reader as if for binding on the long edge. This imposition is + * sometimes called duplex. SidesType.TWO_SIDED_SHORT_EDGE imposes + * each consecutive pair of pages upon front and back sides of consecutive + * media sheets, such that the orientation of each pair of pages on the + * medium would be correct for the reader as if for binding on the short + * edge. This imposition is sometimes called tumble. This attribute + * is updated to the value chosen by the user. + */ + // @ts-ignore + public getSides(): java.awt.JobAttributes.SidesType; + /** + * Specifies how consecutive pages should be imposed upon the sides of the + * print medium for jobs using these attributes. SidesType.ONE_SIDED + * imposes each consecutive page upon the same side of consecutive media + * sheets. This imposition is sometimes called simplex. + * SidesType.TWO_SIDED_LONG_EDGE imposes each consecutive pair of pages + * upon front and back sides of consecutive media sheets, such that the + * orientation of each pair of pages on the medium would be correct for + * the reader as if for binding on the long edge. This imposition is + * sometimes called duplex. SidesType.TWO_SIDED_SHORT_EDGE imposes + * each consecutive pair of pages upon front and back sides of consecutive + * media sheets, such that the orientation of each pair of pages on the + * medium would be correct for the reader as if for binding on the short + * edge. This imposition is sometimes called tumble. Not specifying + * this attribute is equivalent to specifying SidesType.ONE_SIDED. + */ + // @ts-ignore + public setSides(sides: java.awt.JobAttributes.SidesType): void; + /** + * Sets how consecutive pages should be imposed upon the sides of the + * print medium for jobs using these attributes to the default. The + * default imposition is SidesType.ONE_SIDED. + */ + // @ts-ignore + public setSidesToDefault(): void; + /** + * Returns, for jobs using these attributes, the last page (inclusive) + * to be printed, if a range of pages is to be printed. This attribute is + * updated to the value chosen by the user. An application should ignore + * this attribute on output, unless the return value of the + * getDefaultSelection method is DefaultSelectionType.RANGE. An + * application should honor the return value of getPageRanges + * over the return value of this method, if possible. + */ + // @ts-ignore + public getToPage(): number; + /** + * Specifies, for jobs using these attributes, the last page (inclusive) + * to be printed, if a range of pages is to be printed. + * If this attribute is not specified, then the values from the pageRanges + * attribute are used. If pageRanges and either or both of fromPage and + * toPage are specified, pageRanges takes precedence. Specifying none of + * pageRanges, fromPage, or toPage is equivalent to calling + * setPageRanges(new int[][] { new int[] { minPage } }); + */ + // @ts-ignore + public setToPage(toPage: number): void; + /** + * Determines whether two JobAttributes are equal to each other. + *

+ * Two JobAttributes are equal if and only if each of their attributes are + * equal. Attributes of enumeration type are equal if and only if the + * fields refer to the same unique enumeration object. A set of page + * ranges is equal if and only if the sets are of equal length, each range + * enumerates the same pages, and the ranges are in the same order. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a hash code value for this JobAttributes. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns a string representation of this JobAttributes. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.KeyEventDispatcher.d.ts b/packages/types/dist/typings/jdk/java.awt.KeyEventDispatcher.d.ts new file mode 100644 index 00000000..e87aa311 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.KeyEventDispatcher.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + interface KeyEventDispatcher { + /** + * This method is called by the current KeyboardFocusManager requesting + * that this KeyEventDispatcher dispatch the specified event on its behalf. + * This KeyEventDispatcher is free to retarget the event, consume it, + * dispatch it itself, or make other changes. This capability is typically + * used to deliver KeyEvents to Components other than the focus owner. This + * can be useful when navigating children of non-focusable Windows in an + * accessible environment, for example. Note that if a KeyEventDispatcher + * dispatches the KeyEvent itself, it must use redispatchEvent + * to prevent the current KeyboardFocusManager from recursively requesting + * that this KeyEventDispatcher dispatch the event again. + *

+ * If an implementation of this method returns false, then + * the KeyEvent is passed to the next KeyEventDispatcher in the chain, + * ending with the current KeyboardFocusManager. If an implementation + * returns true, the KeyEvent is assumed to have been + * dispatched (although this need not be the case), and the current + * KeyboardFocusManager will take no further action with regard to the + * KeyEvent. In such a case, + * KeyboardFocusManager.dispatchEvent should return + * true as well. If an implementation consumes the KeyEvent, + * but returns false, the consumed event will still be passed + * to the next KeyEventDispatcher in the chain. It is important for + * developers to check whether the KeyEvent has been consumed before + * dispatching it to a target. By default, the current KeyboardFocusManager + * will not dispatch a consumed KeyEvent. + */ + // @ts-ignore + dispatchKeyEvent(e: java.awt.event.KeyEvent): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.KeyEventPostProcessor.d.ts b/packages/types/dist/typings/jdk/java.awt.KeyEventPostProcessor.d.ts new file mode 100644 index 00000000..c2244377 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.KeyEventPostProcessor.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + interface KeyEventPostProcessor { + /** + * This method is called by the current KeyboardFocusManager, requesting + * that this KeyEventPostProcessor perform any necessary post-processing + * which should be part of the KeyEvent's final resolution. At the time + * this method is invoked, typically the KeyEvent has already been + * dispatched to and handled by its target. However, if no Component in + * the application currently owns the focus, then the KeyEvent has not + * been dispatched to any Component. Typically, KeyEvent post-processing + * will be used to implement features which require global KeyEvent + * post-handling, such as menu shortcuts. Note that if a + * KeyEventPostProcessor wishes to dispatch the KeyEvent, it must use + * redispatchEvent to prevent the AWT from recursively + * requesting that this KeyEventPostProcessor perform post-processing + * of the event again. + *

+ * If an implementation of this method returns false, then the + * KeyEvent is passed to the next KeyEventPostProcessor in the chain, + * ending with the current KeyboardFocusManager. If an implementation + * returns true, the KeyEvent is assumed to have been fully + * handled (although this need not be the case), and the AWT will take no + * further action with regard to the KeyEvent. If an implementation + * consumes the KeyEvent but returns false, the consumed + * event will still be passed to the next KeyEventPostProcessor in the + * chain. It is important for developers to check whether the KeyEvent has + * been consumed before performing any post-processing of the KeyEvent. By + * default, the current KeyboardFocusManager will perform no post- + * processing in response to a consumed KeyEvent. + */ + // @ts-ignore + postProcessKeyEvent(e: java.awt.event.KeyEvent): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.KeyboardFocusManager.d.ts b/packages/types/dist/typings/jdk/java.awt.KeyboardFocusManager.d.ts new file mode 100644 index 00000000..043f5f74 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.KeyboardFocusManager.d.ts @@ -0,0 +1,772 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + abstract class KeyboardFocusManager extends java.lang.Object { + /** + * Initializes a KeyboardFocusManager. + */ + // @ts-ignore + constructor() + // @ts-ignore + public static FORWARD_TRAVERSAL_KEYS: number; + // @ts-ignore + public static BACKWARD_TRAVERSAL_KEYS: number; + // @ts-ignore + public static UP_CYCLE_TRAVERSAL_KEYS: number; + // @ts-ignore + public static DOWN_CYCLE_TRAVERSAL_KEYS: number; + /** + * Returns the current KeyboardFocusManager instance for the calling + * thread's context. + */ + // @ts-ignore + public static getCurrentKeyboardFocusManager(): java.awt.KeyboardFocusManager; + /** + * Sets the current KeyboardFocusManager instance for the calling thread's + * context. If null is specified, then the current KeyboardFocusManager + * is replaced with a new instance of DefaultKeyboardFocusManager. + *

+ * If a SecurityManager is installed, the calling thread must be granted + * the AWTPermission "replaceKeyboardFocusManager" in order to replace the + * the current KeyboardFocusManager. If this permission is not granted, + * this method will throw a SecurityException, and the current + * KeyboardFocusManager will be unchanged. + */ + // @ts-ignore + public static setCurrentKeyboardFocusManager(newManager: java.awt.KeyboardFocusManager): void; + /** + * Returns the focus owner, if the focus owner is in the same context as + * the calling thread. The focus owner is defined as the Component in an + * application that will typically receive all KeyEvents generated by the + * user. KeyEvents which map to the focus owner's focus traversal keys will + * not be delivered if focus traversal keys are enabled for the focus + * owner. In addition, KeyEventDispatchers may retarget or consume + * KeyEvents before they reach the focus owner. + */ + // @ts-ignore + public getFocusOwner(): java.awt.Component; + /** + * Returns the focus owner, even if the calling thread is in a different + * context than the focus owner. The focus owner is defined as the + * Component in an application that will typically receive all KeyEvents + * generated by the user. KeyEvents which map to the focus owner's focus + * traversal keys will not be delivered if focus traversal keys are enabled + * for the focus owner. In addition, KeyEventDispatchers may retarget or + * consume KeyEvents before they reach the focus owner. + *

+ * This method will throw a SecurityException if this KeyboardFocusManager + * is not the current KeyboardFocusManager for the calling thread's + * context. + */ + // @ts-ignore + protected getGlobalFocusOwner(): java.awt.Component; + /** + * Sets the focus owner. The operation will be cancelled if the Component + * is not focusable. The focus owner is defined as the Component in an + * application that will typically receive all KeyEvents generated by the + * user. KeyEvents which map to the focus owner's focus traversal keys will + * not be delivered if focus traversal keys are enabled for the focus + * owner. In addition, KeyEventDispatchers may retarget or consume + * KeyEvents before they reach the focus owner. + *

+ * This method does not actually set the focus to the specified Component. + * It merely stores the value to be subsequently returned by + * getFocusOwner(). Use Component.requestFocus() + * or Component.requestFocusInWindow() to change the focus + * owner, subject to platform limitations. + */ + // @ts-ignore + protected setGlobalFocusOwner(focusOwner: java.awt.Component): void; + /** + * Clears the focus owner at both the Java and native levels if the + * focus owner exists and resides in the same context as the calling thread, + * otherwise the method returns silently. + *

+ * The focus owner component will receive a permanent FOCUS_LOST event. + * After this operation completes, the native windowing system will discard + * all user-generated KeyEvents until the user selects a new Component to + * receive focus, or a Component is given focus explicitly via a call to + * {@code requestFocus()}. This operation does not change the focused or + * active Windows. + */ + // @ts-ignore + public clearFocusOwner(): void; + /** + * Clears the global focus owner at both the Java and native levels. If + * there exists a focus owner, that Component will receive a permanent + * FOCUS_LOST event. After this operation completes, the native windowing + * system will discard all user-generated KeyEvents until the user selects + * a new Component to receive focus, or a Component is given focus + * explicitly via a call to requestFocus(). This operation + * does not change the focused or active Windows. + *

+ * If a SecurityManager is installed, the calling thread must be granted + * the "replaceKeyboardFocusManager" AWTPermission. If this permission is + * not granted, this method will throw a SecurityException, and the current + * focus owner will not be cleared. + *

+ * This method is intended to be used only by KeyboardFocusManager set as + * current KeyboardFocusManager for the calling thread's context. It is not + * for general client use. + */ + // @ts-ignore + public clearGlobalFocusOwner(): void; + /** + * Returns the permanent focus owner, if the permanent focus owner is in + * the same context as the calling thread. The permanent focus owner is + * defined as the last Component in an application to receive a permanent + * FOCUS_GAINED event. The focus owner and permanent focus owner are + * equivalent unless a temporary focus change is currently in effect. In + * such a situation, the permanent focus owner will again be the focus + * owner when the temporary focus change ends. + */ + // @ts-ignore + public getPermanentFocusOwner(): java.awt.Component; + /** + * Returns the permanent focus owner, even if the calling thread is in a + * different context than the permanent focus owner. The permanent focus + * owner is defined as the last Component in an application to receive a + * permanent FOCUS_GAINED event. The focus owner and permanent focus owner + * are equivalent unless a temporary focus change is currently in effect. + * In such a situation, the permanent focus owner will again be the focus + * owner when the temporary focus change ends. + */ + // @ts-ignore + protected getGlobalPermanentFocusOwner(): java.awt.Component; + /** + * Sets the permanent focus owner. The operation will be cancelled if the + * Component is not focusable. The permanent focus owner is defined as the + * last Component in an application to receive a permanent FOCUS_GAINED + * event. The focus owner and permanent focus owner are equivalent unless + * a temporary focus change is currently in effect. In such a situation, + * the permanent focus owner will again be the focus owner when the + * temporary focus change ends. + *

+ * This method does not actually set the focus to the specified Component. + * It merely stores the value to be subsequently returned by + * getPermanentFocusOwner(). Use + * Component.requestFocus() or + * Component.requestFocusInWindow() to change the focus owner, + * subject to platform limitations. + */ + // @ts-ignore + protected setGlobalPermanentFocusOwner(permanentFocusOwner: java.awt.Component): void; + /** + * Returns the focused Window, if the focused Window is in the same context + * as the calling thread. The focused Window is the Window that is or + * contains the focus owner. + */ + // @ts-ignore + public getFocusedWindow(): java.awt.Window; + /** + * Returns the focused Window, even if the calling thread is in a different + * context than the focused Window. The focused Window is the Window that + * is or contains the focus owner. + */ + // @ts-ignore + protected getGlobalFocusedWindow(): java.awt.Window; + /** + * Sets the focused Window. The focused Window is the Window that is or + * contains the focus owner. The operation will be cancelled if the + * specified Window to focus is not a focusable Window. + *

+ * This method does not actually change the focused Window as far as the + * native windowing system is concerned. It merely stores the value to be + * subsequently returned by getFocusedWindow(). Use + * Component.requestFocus() or + * Component.requestFocusInWindow() to change the focused + * Window, subject to platform limitations. + */ + // @ts-ignore + protected setGlobalFocusedWindow(focusedWindow: java.awt.Window): void; + /** + * Returns the active Window, if the active Window is in the same context + * as the calling thread. Only a Frame or a Dialog can be the active + * Window. The native windowing system may denote the active Window or its + * children with special decorations, such as a highlighted title bar. + * The active Window is always either the focused Window, or the first + * Frame or Dialog that is an owner of the focused Window. + */ + // @ts-ignore + public getActiveWindow(): java.awt.Window; + /** + * Returns the active Window, even if the calling thread is in a different + * context than the active Window. Only a Frame or a Dialog can be the + * active Window. The native windowing system may denote the active Window + * or its children with special decorations, such as a highlighted title + * bar. The active Window is always either the focused Window, or the first + * Frame or Dialog that is an owner of the focused Window. + */ + // @ts-ignore + protected getGlobalActiveWindow(): java.awt.Window; + /** + * Sets the active Window. Only a Frame or a Dialog can be the active + * Window. The native windowing system may denote the active Window or its + * children with special decorations, such as a highlighted title bar. The + * active Window is always either the focused Window, or the first Frame or + * Dialog that is an owner of the focused Window. + *

+ * This method does not actually change the active Window as far as the + * native windowing system is concerned. It merely stores the value to be + * subsequently returned by getActiveWindow(). Use + * Component.requestFocus() or + * Component.requestFocusInWindow()to change the active + * Window, subject to platform limitations. + */ + // @ts-ignore + protected setGlobalActiveWindow(activeWindow: java.awt.Window): void; + /** + * Returns the default FocusTraversalPolicy. Top-level components + * use this value on their creation to initialize their own focus traversal + * policy by explicit call to Container.setFocusTraversalPolicy. + */ + // @ts-ignore + public getDefaultFocusTraversalPolicy(): java.awt.FocusTraversalPolicy; + /** + * Sets the default FocusTraversalPolicy. Top-level components + * use this value on their creation to initialize their own focus traversal + * policy by explicit call to Container.setFocusTraversalPolicy. + * Note: this call doesn't affect already created components as they have + * their policy initialized. Only new components will use this policy as + * their default policy. + */ + // @ts-ignore + public setDefaultFocusTraversalPolicy(defaultPolicy: java.awt.FocusTraversalPolicy): void; + /** + * Sets the default focus traversal keys for a given traversal operation. + * This traversal key {@code Set} will be in effect on all + * {@code Window}s that have no such {@code Set} of + * their own explicitly defined. This {@code Set} will also be + * inherited, recursively, by any child {@code Component} of + * those {@code Windows} that has + * no such {@code Set} of its own explicitly defined. + *

+ * The default values for the default focus traversal keys are + * implementation-dependent. Sun recommends that all implementations for a + * particular native platform use the same default values. The + * recommendations for Windows and Unix are listed below. These + * recommendations are used in the Sun AWT implementations. + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
IdentifierMeaningDefault
{@code KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS}Normal forward keyboard traversal{@code TAB} on {@code KEY_PRESSED}, + * {@code CTRL-TAB} on {@code KEY_PRESSED}
{@code KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS}Normal reverse keyboard traversal{@code SHIFT-TAB} on {@code KEY_PRESSED}, + * {@code CTRL-SHIFT-TAB} on {@code KEY_PRESSED}
{@code KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS}Go up one focus traversal cyclenone
{@code KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS}Go down one focus traversal cyclenone
+ * To disable a traversal key, use an empty {@code Set}; + * {@code Collections.EMPTY_SET} is recommended. + *

+ * Using the {@code AWTKeyStroke} API, client code can + * specify on which of two + * specific {@code KeyEvent}s, {@code KEY_PRESSED} or + * {@code KEY_RELEASED}, the focus traversal operation will + * occur. Regardless of which {@code KeyEvent} is specified, + * however, all {@code KeyEvent}s related to the focus + * traversal key, including the associated {@code KEY_TYPED} + * event, will be consumed, and will not be dispatched + * to any {@code Component}. It is a runtime error to + * specify a {@code KEY_TYPED} event as + * mapping to a focus traversal operation, or to map the same event to + * multiple default focus traversal operations. + *

+ * This method may throw a {@code ClassCastException} if any {@code Object} + * in {@code keystrokes} is not an {@code AWTKeyStroke}. + */ + // @ts-ignore + public setDefaultFocusTraversalKeys(id: number, keystrokes: java.util.Set): void; + /** + * Returns a Set of default focus traversal keys for a given traversal + * operation. This traversal key Set will be in effect on all Windows that + * have no such Set of their own explicitly defined. This Set will also be + * inherited, recursively, by any child Component of those Windows that has + * no such Set of its own explicitly defined. (See + * setDefaultFocusTraversalKeys for a full description of each + * operation.) + */ + // @ts-ignore + public getDefaultFocusTraversalKeys(id: number): java.util.Set; + /** + * Returns the current focus cycle root, if the current focus cycle root is + * in the same context as the calling thread. If the focus owner is itself + * a focus cycle root, then it may be ambiguous as to which Components + * represent the next and previous Components to focus during normal focus + * traversal. In that case, the current focus cycle root is used to + * differentiate among the possibilities. + *

+ * This method is intended to be used only by KeyboardFocusManagers and + * focus implementations. It is not for general client use. + */ + // @ts-ignore + public getCurrentFocusCycleRoot(): java.awt.Container; + /** + * Returns the current focus cycle root, even if the calling thread is in a + * different context than the current focus cycle root. If the focus owner + * is itself a focus cycle root, then it may be ambiguous as to which + * Components represent the next and previous Components to focus during + * normal focus traversal. In that case, the current focus cycle root is + * used to differentiate among the possibilities. + */ + // @ts-ignore + protected getGlobalCurrentFocusCycleRoot(): java.awt.Container; + /** + * Sets the current focus cycle root. If the focus owner is itself a focus + * cycle root, then it may be ambiguous as to which Components represent + * the next and previous Components to focus during normal focus traversal. + * In that case, the current focus cycle root is used to differentiate + * among the possibilities. + *

+ * If a SecurityManager is installed, the calling thread must be granted + * the "replaceKeyboardFocusManager" AWTPermission. If this permission is + * not granted, this method will throw a SecurityException, and the current + * focus cycle root will not be changed. + *

+ * This method is intended to be used only by KeyboardFocusManagers and + * focus implementations. It is not for general client use. + */ + // @ts-ignore + public setGlobalCurrentFocusCycleRoot(newFocusCycleRoot: java.awt.Container): void; + /** + * Adds a PropertyChangeListener to the listener list. The listener is + * registered for all bound properties of this class, including the + * following: + *

    + *
  • whether the KeyboardFocusManager is currently managing focus + * for this application or applet's browser context + * ("managingFocus")
  • + *
  • the focus owner ("focusOwner")
  • + *
  • the permanent focus owner ("permanentFocusOwner")
  • + *
  • the focused Window ("focusedWindow")
  • + *
  • the active Window ("activeWindow")
  • + *
  • the default focus traversal policy + * ("defaultFocusTraversalPolicy")
  • + *
  • the Set of default FORWARD_TRAVERSAL_KEYS + * ("forwardDefaultFocusTraversalKeys")
  • + *
  • the Set of default BACKWARD_TRAVERSAL_KEYS + * ("backwardDefaultFocusTraversalKeys")
  • + *
  • the Set of default UP_CYCLE_TRAVERSAL_KEYS + * ("upCycleDefaultFocusTraversalKeys")
  • + *
  • the Set of default DOWN_CYCLE_TRAVERSAL_KEYS + * ("downCycleDefaultFocusTraversalKeys")
  • + *
  • the current focus cycle root ("currentFocusCycleRoot")
  • + *
+ * If listener is null, no exception is thrown and no action is performed. + */ + // @ts-ignore + public addPropertyChangeListener(listener: java.beans.PropertyChangeListener): void; + /** + * Removes a PropertyChangeListener from the listener list. This method + * should be used to remove the PropertyChangeListeners that were + * registered for all bound properties of this class. + *

+ * If listener is null, no exception is thrown and no action is performed. + */ + // @ts-ignore + public removePropertyChangeListener(listener: java.beans.PropertyChangeListener): void; + /** + * Returns an array of all the property change listeners + * registered on this keyboard focus manager. + */ + // @ts-ignore + public getPropertyChangeListeners(): java.beans.PropertyChangeListener[]; + /** + * Adds a PropertyChangeListener to the listener list for a specific + * property. The specified property may be user-defined, or one of the + * following: + *

    + *
  • whether the KeyboardFocusManager is currently managing focus + * for this application or applet's browser context + * ("managingFocus")
  • + *
  • the focus owner ("focusOwner")
  • + *
  • the permanent focus owner ("permanentFocusOwner")
  • + *
  • the focused Window ("focusedWindow")
  • + *
  • the active Window ("activeWindow")
  • + *
  • the default focus traversal policy + * ("defaultFocusTraversalPolicy")
  • + *
  • the Set of default FORWARD_TRAVERSAL_KEYS + * ("forwardDefaultFocusTraversalKeys")
  • + *
  • the Set of default BACKWARD_TRAVERSAL_KEYS + * ("backwardDefaultFocusTraversalKeys")
  • + *
  • the Set of default UP_CYCLE_TRAVERSAL_KEYS + * ("upCycleDefaultFocusTraversalKeys")
  • + *
  • the Set of default DOWN_CYCLE_TRAVERSAL_KEYS + * ("downCycleDefaultFocusTraversalKeys")
  • + *
  • the current focus cycle root ("currentFocusCycleRoot")
  • + *
+ * If listener is null, no exception is thrown and no action is performed. + */ + // @ts-ignore + public addPropertyChangeListener(propertyName: string, listener: java.beans.PropertyChangeListener): void; + /** + * Removes a PropertyChangeListener from the listener list for a specific + * property. This method should be used to remove PropertyChangeListeners + * that were registered for a specific bound property. + *

+ * If listener is null, no exception is thrown and no action is performed. + */ + // @ts-ignore + public removePropertyChangeListener(propertyName: string, listener: java.beans.PropertyChangeListener): void; + /** + * Returns an array of all the PropertyChangeListeners + * associated with the named property. + */ + // @ts-ignore + public getPropertyChangeListeners(propertyName: string): java.beans.PropertyChangeListener[]; + /** + * Fires a PropertyChangeEvent in response to a change in a bound property. + * The event will be delivered to all registered PropertyChangeListeners. + * No event will be delivered if oldValue and newValue are the same. + */ + // @ts-ignore + protected firePropertyChange(propertyName: string, oldValue: java.lang.Object, newValue: java.lang.Object): void; + /** + * Adds a VetoableChangeListener to the listener list. The listener is + * registered for all vetoable properties of this class, including the + * following: + *

    + *
  • the focus owner ("focusOwner")
  • + *
  • the permanent focus owner ("permanentFocusOwner")
  • + *
  • the focused Window ("focusedWindow")
  • + *
  • the active Window ("activeWindow")
  • + *
+ * If listener is null, no exception is thrown and no action is performed. + */ + // @ts-ignore + public addVetoableChangeListener(listener: java.beans.VetoableChangeListener): void; + /** + * Removes a VetoableChangeListener from the listener list. This method + * should be used to remove the VetoableChangeListeners that were + * registered for all vetoable properties of this class. + *

+ * If listener is null, no exception is thrown and no action is performed. + */ + // @ts-ignore + public removeVetoableChangeListener(listener: java.beans.VetoableChangeListener): void; + /** + * Returns an array of all the vetoable change listeners + * registered on this keyboard focus manager. + */ + // @ts-ignore + public getVetoableChangeListeners(): java.beans.VetoableChangeListener[]; + /** + * Adds a VetoableChangeListener to the listener list for a specific + * property. The specified property may be user-defined, or one of the + * following: + *

    + *
  • the focus owner ("focusOwner")
  • + *
  • the permanent focus owner ("permanentFocusOwner")
  • + *
  • the focused Window ("focusedWindow")
  • + *
  • the active Window ("activeWindow")
  • + *
+ * If listener is null, no exception is thrown and no action is performed. + */ + // @ts-ignore + public addVetoableChangeListener(propertyName: string, listener: java.beans.VetoableChangeListener): void; + /** + * Removes a VetoableChangeListener from the listener list for a specific + * property. This method should be used to remove VetoableChangeListeners + * that were registered for a specific bound property. + *

+ * If listener is null, no exception is thrown and no action is performed. + */ + // @ts-ignore + public removeVetoableChangeListener(propertyName: string, listener: java.beans.VetoableChangeListener): void; + /** + * Returns an array of all the VetoableChangeListeners + * associated with the named property. + */ + // @ts-ignore + public getVetoableChangeListeners(propertyName: string): java.beans.VetoableChangeListener[]; + /** + * Fires a PropertyChangeEvent in response to a change in a vetoable + * property. The event will be delivered to all registered + * VetoableChangeListeners. If a VetoableChangeListener throws a + * PropertyVetoException, a new event is fired reverting all + * VetoableChangeListeners to the old value and the exception is then + * rethrown. No event will be delivered if oldValue and newValue are the + * same. + */ + // @ts-ignore + protected fireVetoableChange(propertyName: string, oldValue: java.lang.Object, newValue: java.lang.Object): void; + /** + * Adds a KeyEventDispatcher to this KeyboardFocusManager's dispatcher + * chain. This KeyboardFocusManager will request that each + * KeyEventDispatcher dispatch KeyEvents generated by the user before + * finally dispatching the KeyEvent itself. KeyEventDispatchers will be + * notified in the order in which they were added. Notifications will halt + * as soon as one KeyEventDispatcher returns true from its + * dispatchKeyEvent method. There is no limit to the total + * number of KeyEventDispatchers which can be added, nor to the number of + * times which a particular KeyEventDispatcher instance can be added. + *

+ * If a null dispatcher is specified, no action is taken and no exception + * is thrown. + *

+ * In a multithreaded application, {@link KeyEventDispatcher} behaves + * the same as other AWT listeners. See + * AWT Threading Issues for more details. + */ + // @ts-ignore + public addKeyEventDispatcher(dispatcher: java.awt.KeyEventDispatcher): void; + /** + * Removes a KeyEventDispatcher which was previously added to this + * KeyboardFocusManager's dispatcher chain. This KeyboardFocusManager + * cannot itself be removed, unless it was explicitly re-registered via a + * call to addKeyEventDispatcher. + *

+ * If a null dispatcher is specified, if the specified dispatcher is not + * in the dispatcher chain, or if this KeyboardFocusManager is specified + * without having been explicitly re-registered, no action is taken and no + * exception is thrown. + *

+ * In a multithreaded application, {@link KeyEventDispatcher} behaves + * the same as other AWT listeners. See + * AWT Threading Issues for more details. + */ + // @ts-ignore + public removeKeyEventDispatcher(dispatcher: java.awt.KeyEventDispatcher): void; + /** + * Returns this KeyboardFocusManager's KeyEventDispatcher chain as a List. + * The List will not include this KeyboardFocusManager unless it was + * explicitly re-registered via a call to + * addKeyEventDispatcher. If no other KeyEventDispatchers are + * registered, implementations are free to return null or a List of length + * 0. Client code should not assume one behavior over another, nor should + * it assume that the behavior, once established, will not change. + */ + // @ts-ignore + protected getKeyEventDispatchers(): java.util.List; + /** + * Adds a KeyEventPostProcessor to this KeyboardFocusManager's post- + * processor chain. After a KeyEvent has been dispatched to and handled by + * its target, KeyboardFocusManager will request that each + * KeyEventPostProcessor perform any necessary post-processing as part + * of the KeyEvent's final resolution. KeyEventPostProcessors + * will be notified in the order in which they were added; the current + * KeyboardFocusManager will be notified last. Notifications will halt + * as soon as one KeyEventPostProcessor returns true from its + * postProcessKeyEvent method. There is no limit to the the + * total number of KeyEventPostProcessors that can be added, nor to the + * number of times that a particular KeyEventPostProcessor instance can be + * added. + *

+ * If a null post-processor is specified, no action is taken and no + * exception is thrown. + *

+ * In a multithreaded application, {@link KeyEventPostProcessor} behaves + * the same as other AWT listeners. See + * AWT Threading Issues for more details. + */ + // @ts-ignore + public addKeyEventPostProcessor(processor: java.awt.KeyEventPostProcessor): void; + /** + * Removes a previously added KeyEventPostProcessor from this + * KeyboardFocusManager's post-processor chain. This KeyboardFocusManager + * cannot itself be entirely removed from the chain. Only additional + * references added via addKeyEventPostProcessor can be + * removed. + *

+ * If a null post-processor is specified, if the specified post-processor + * is not in the post-processor chain, or if this KeyboardFocusManager is + * specified without having been explicitly added, no action is taken and + * no exception is thrown. + *

+ * In a multithreaded application, {@link KeyEventPostProcessor} behaves + * the same as other AWT listeners. See + * AWT Threading Issues for more details. + */ + // @ts-ignore + public removeKeyEventPostProcessor(processor: java.awt.KeyEventPostProcessor): void; + /** + * Returns this KeyboardFocusManager's KeyEventPostProcessor chain as a + * List. The List will not include this KeyboardFocusManager unless it was + * explicitly added via a call to addKeyEventPostProcessor. If + * no KeyEventPostProcessors are registered, implementations are free to + * return null or a List of length 0. Client code should not assume one + * behavior over another, nor should it assume that the behavior, once + * established, will not change. + */ + // @ts-ignore + protected getKeyEventPostProcessors(): java.util.List; + /** + * This method is called by the AWT event dispatcher requesting that the + * current KeyboardFocusManager dispatch the specified event on its behalf. + * It is expected that all KeyboardFocusManagers will dispatch all + * FocusEvents, all WindowEvents related to focus, and all KeyEvents. + * These events should be dispatched based on the KeyboardFocusManager's + * notion of the focus owner and the focused and active Windows, sometimes + * overriding the source of the specified AWTEvent. Dispatching must be + * done using redispatchEvent to prevent the AWT event + * dispatcher from recursively requesting that the KeyboardFocusManager + * dispatch the event again. If this method returns false, + * then the AWT event dispatcher will attempt to dispatch the event itself. + */ + // @ts-ignore + public abstract dispatchEvent(e: java.awt.AWTEvent): boolean; + /** + * Redispatches an AWTEvent in such a way that the AWT event dispatcher + * will not recursively request that the KeyboardFocusManager, or any + * installed KeyEventDispatchers, dispatch the event again. Client + * implementations of dispatchEvent and client-defined + * KeyEventDispatchers must call redispatchEvent(target, e) + * instead of target.dispatchEvent(e) to dispatch an event. + *

+ * This method is intended to be used only by KeyboardFocusManagers and + * KeyEventDispatchers. It is not for general client use. + */ + // @ts-ignore + public redispatchEvent(target: java.awt.Component, e: java.awt.AWTEvent): void; + /** + * Typically this method will be called by dispatchEvent if no + * other KeyEventDispatcher in the dispatcher chain dispatched the + * KeyEvent, or if no other KeyEventDispatchers are registered. If an + * implementation of this method returns false, + * dispatchEvent may try to dispatch the KeyEvent itself, or + * may simply return false. If true is returned, + * dispatchEvent should return true as well. + */ + // @ts-ignore + public abstract dispatchKeyEvent(e: java.awt.event.KeyEvent): boolean; + /** + * This method will be called by dispatchKeyEvent. + * By default, this method will handle any unconsumed KeyEvents that + * map to an AWT MenuShortcut by consuming the event + * and activating the shortcut. + */ + // @ts-ignore + public abstract postProcessKeyEvent(e: java.awt.event.KeyEvent): boolean; + /** + * This method initiates a focus traversal operation if and only if the + * KeyEvent represents a focus traversal key for the specified + * focusedComponent. It is expected that focusedComponent is the current + * focus owner, although this need not be the case. If it is not, + * focus traversal will nevertheless proceed as if focusedComponent + * were the current focus owner. + */ + // @ts-ignore + public abstract processKeyEvent(focusedComponent: java.awt.Component, e: java.awt.event.KeyEvent): void; + /** + * Called by the AWT to notify the KeyboardFocusManager that it should + * delay dispatching of KeyEvents until the specified Component becomes + * the focus owner. If client code requests a focus change, and the AWT + * determines that this request might be granted by the native windowing + * system, then the AWT will call this method. It is the responsibility of + * the KeyboardFocusManager to delay dispatching of KeyEvents with + * timestamps later than the specified time stamp until the specified + * Component receives a FOCUS_GAINED event, or the AWT cancels the delay + * request by invoking dequeueKeyEvents or + * discardKeyEvents. + */ + // @ts-ignore + protected abstract enqueueKeyEvents(after: number, untilFocused: java.awt.Component): void; + /** + * Called by the AWT to notify the KeyboardFocusManager that it should + * cancel delayed dispatching of KeyEvents. All KeyEvents which were + * enqueued because of a call to enqueueKeyEvents with the + * same timestamp and Component should be released for normal dispatching + * to the current focus owner. If the given timestamp is less than zero, + * the outstanding enqueue request for the given Component with the + * oldest timestamp (if any) should be cancelled. + */ + // @ts-ignore + protected abstract dequeueKeyEvents(after: number, untilFocused: java.awt.Component): void; + /** + * Called by the AWT to notify the KeyboardFocusManager that it should + * cancel delayed dispatching of KeyEvents. All KeyEvents which were + * enqueued because of one or more calls to enqueueKeyEvents + * with the same Component should be discarded. + */ + // @ts-ignore + protected abstract discardKeyEvents(comp: java.awt.Component): void; + /** + * Focuses the Component after aComponent, typically based on a + * FocusTraversalPolicy. + */ + // @ts-ignore + public abstract focusNextComponent(aComponent: java.awt.Component): void; + /** + * Focuses the Component before aComponent, typically based on a + * FocusTraversalPolicy. + */ + // @ts-ignore + public abstract focusPreviousComponent(aComponent: java.awt.Component): void; + /** + * Moves the focus up one focus traversal cycle. Typically, the focus owner + * is set to aComponent's focus cycle root, and the current focus cycle + * root is set to the new focus owner's focus cycle root. If, however, + * aComponent's focus cycle root is a Window, then typically the focus + * owner is set to the Window's default Component to focus, and the current + * focus cycle root is unchanged. + */ + // @ts-ignore + public abstract upFocusCycle(aComponent: java.awt.Component): void; + /** + * Moves the focus down one focus traversal cycle. Typically, if + * aContainer is a focus cycle root, then the focus owner is set to + * aContainer's default Component to focus, and the current focus cycle + * root is set to aContainer. If aContainer is not a focus cycle root, then + * no focus traversal operation occurs. + */ + // @ts-ignore + public abstract downFocusCycle(aContainer: java.awt.Container): void; + /** + * Focuses the Component after the current focus owner. + */ + // @ts-ignore + public focusNextComponent(): void; + /** + * Focuses the Component before the current focus owner. + */ + // @ts-ignore + public focusPreviousComponent(): void; + /** + * Moves the focus up one focus traversal cycle from the current focus + * owner. Typically, the new focus owner is set to the current focus + * owner's focus cycle root, and the current focus cycle root is set to the + * new focus owner's focus cycle root. If, however, the current focus + * owner's focus cycle root is a Window, then typically the focus owner is + * set to the focus cycle root's default Component to focus, and the + * current focus cycle root is unchanged. + */ + // @ts-ignore + public upFocusCycle(): void; + /** + * Moves the focus down one focus traversal cycle from the current focus + * owner, if and only if the current focus owner is a Container that is a + * focus cycle root. Typically, the focus owner is set to the current focus + * owner's default Component to focus, and the current focus cycle root is + * set to the current focus owner. If the current focus owner is not a + * Container that is a focus cycle root, then no focus traversal operation + * occurs. + */ + // @ts-ignore + public downFocusCycle(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Label.AccessibleAWTLabel.d.ts b/packages/types/dist/typings/jdk/java.awt.Label.AccessibleAWTLabel.d.ts new file mode 100644 index 00000000..7f03cb4c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Label.AccessibleAWTLabel.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace Label { + // @ts-ignore + protected class AccessibleAWTLabel extends java.awt.Component.AccessibleAWTComponent { + // @ts-ignore + constructor() + /** + * Get the accessible name of this object. + */ + // @ts-ignore + public getAccessibleName(): string; + /** + * Get the role of this object. + */ + // @ts-ignore + public getAccessibleRole(): any /*javax.accessibility.AccessibleRole*/; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Label.d.ts b/packages/types/dist/typings/jdk/java.awt.Label.d.ts new file mode 100644 index 00000000..12a30800 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Label.d.ts @@ -0,0 +1,82 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class Label extends java.awt.Component { + /** + * Constructs an empty label. + * The text of the label is the empty string "". + */ + // @ts-ignore + constructor() + /** + * Constructs a new label with the specified string of text, + * left justified. + */ + // @ts-ignore + constructor(text: string) + /** + * Constructs a new label that presents the specified string of + * text with the specified alignment. + * Possible values for alignment are Label.LEFT, + * Label.RIGHT, and Label.CENTER. + */ + // @ts-ignore + constructor(text: string, alignment: number) + // @ts-ignore + public static LEFT: number; + // @ts-ignore + public static CENTER: number; + // @ts-ignore + public static RIGHT: number; + /** + * Creates the peer for this label. The peer allows us to + * modify the appearance of the label without changing its + * functionality. + */ + // @ts-ignore + public addNotify(): void; + /** + * Gets the current alignment of this label. Possible values are + * Label.LEFT, Label.RIGHT, and + * Label.CENTER. + */ + // @ts-ignore + public getAlignment(): number; + /** + * Sets the alignment for this label to the specified alignment. + * Possible values are Label.LEFT, + * Label.RIGHT, and Label.CENTER. + */ + // @ts-ignore + public setAlignment(alignment: number): void; + /** + * Gets the text of this label. + */ + // @ts-ignore + public getText(): string; + /** + * Sets the text for this label to the specified text. + */ + // @ts-ignore + public setText(text: string): void; + /** + * Returns a string representing the state of this Label. + * This method is intended to be used only for debugging purposes, and the + * content and format of the returned string may vary between + * implementations. The returned string may be empty but may not be + * null. + */ + // @ts-ignore + protected paramString(): string; + /** + * Gets the AccessibleContext associated with this Label. + * For labels, the AccessibleContext takes the form of an + * AccessibleAWTLabel. + * A new AccessibleAWTLabel instance is created if necessary. + */ + // @ts-ignore + public getAccessibleContext(): any /*javax.accessibility.AccessibleContext*/; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.LayoutManager.d.ts b/packages/types/dist/typings/jdk/java.awt.LayoutManager.d.ts new file mode 100644 index 00000000..ed19ae6c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.LayoutManager.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + interface LayoutManager { + /** + * If the layout manager uses a per-component string, + * adds the component comp to the layout, + * associating it + * with the string specified by name. + */ + // @ts-ignore + addLayoutComponent(name: string, comp: java.awt.Component): void; + /** + * Removes the specified component from the layout. + */ + // @ts-ignore + removeLayoutComponent(comp: java.awt.Component): void; + /** + * Calculates the preferred size dimensions for the specified + * container, given the components it contains. + */ + // @ts-ignore + preferredLayoutSize(parent: java.awt.Container): java.awt.Dimension; + /** + * Calculates the minimum size dimensions for the specified + * container, given the components it contains. + */ + // @ts-ignore + minimumLayoutSize(parent: java.awt.Container): java.awt.Dimension; + /** + * Lays out the specified container. + */ + // @ts-ignore + layoutContainer(parent: java.awt.Container): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.LayoutManager2.d.ts b/packages/types/dist/typings/jdk/java.awt.LayoutManager2.d.ts new file mode 100644 index 00000000..623dab13 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.LayoutManager2.d.ts @@ -0,0 +1,44 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + interface LayoutManager2 { + /** + * Adds the specified component to the layout, using the specified + * constraint object. + */ + // @ts-ignore + addLayoutComponent(comp: java.awt.Component, constraints: java.lang.Object): void; + /** + * Calculates the maximum size dimensions for the specified container, + * given the components it contains. + */ + // @ts-ignore + maximumLayoutSize(target: java.awt.Container): java.awt.Dimension; + /** + * Returns the alignment along the x axis. This specifies how + * the component would like to be aligned relative to other + * components. The value should be a number between 0 and 1 + * where 0 represents alignment along the origin, 1 is aligned + * the furthest away from the origin, 0.5 is centered, etc. + */ + // @ts-ignore + getLayoutAlignmentX(target: java.awt.Container): number; + /** + * Returns the alignment along the y axis. This specifies how + * the component would like to be aligned relative to other + * components. The value should be a number between 0 and 1 + * where 0 represents alignment along the origin, 1 is aligned + * the furthest away from the origin, 0.5 is centered, etc. + */ + // @ts-ignore + getLayoutAlignmentY(target: java.awt.Container): number; + /** + * Invalidates the layout, indicating that if the layout manager + * has cached information it should be discarded. + */ + // @ts-ignore + invalidateLayout(target: java.awt.Container): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.LinearGradientPaint.d.ts b/packages/types/dist/typings/jdk/java.awt.LinearGradientPaint.d.ts new file mode 100644 index 00000000..afe5c66f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.LinearGradientPaint.d.ts @@ -0,0 +1,56 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class LinearGradientPaint extends java.awt.MultipleGradientPaint { + /** + * Constructs a {@code LinearGradientPaint} with a default + * {@code NO_CYCLE} repeating method and {@code SRGB} color space. + */ + // @ts-ignore + constructor(startX: number, startY: number, endX: number, endY: number, fractions: number, colors: java.awt.Color) + /** + * Constructs a {@code LinearGradientPaint} with a default {@code SRGB} + * color space. + */ + // @ts-ignore + constructor(startX: number, startY: number, endX: number, endY: number, fractions: number, colors: java.awt.Color, cycleMethod: java.awt.MultipleGradientPaint.CycleMethod) + /** + * Constructs a {@code LinearGradientPaint} with a default + * {@code NO_CYCLE} repeating method and {@code SRGB} color space. + */ + // @ts-ignore + constructor(start: java.awt.geom.Point2D, end: java.awt.geom.Point2D, fractions: number, colors: java.awt.Color) + /** + * Constructs a {@code LinearGradientPaint} with a default {@code SRGB} + * color space. + */ + // @ts-ignore + constructor(start: java.awt.geom.Point2D, end: java.awt.geom.Point2D, fractions: number, colors: java.awt.Color, cycleMethod: java.awt.MultipleGradientPaint.CycleMethod) + /** + * Constructs a {@code LinearGradientPaint}. + */ + // @ts-ignore + constructor(start: java.awt.geom.Point2D, end: java.awt.geom.Point2D, fractions: number, colors: java.awt.Color, cycleMethod: java.awt.MultipleGradientPaint.CycleMethod, colorSpace: java.awt.MultipleGradientPaint.ColorSpaceType, gradientTransform: java.awt.geom.AffineTransform) + /** + * Creates and returns a {@link PaintContext} used to + * generate a linear color gradient pattern. + * See the {@link Paint#createContext specification} of the + * method in the {@link Paint} interface for information + * on null parameter handling. + */ + // @ts-ignore + public createContext(cm: java.awt.image.ColorModel, deviceBounds: java.awt.Rectangle, userBounds: java.awt.geom.Rectangle2D, transform: java.awt.geom.AffineTransform, hints: java.awt.RenderingHints): java.awt.PaintContext; + /** + * Returns a copy of the start point of the gradient axis. + */ + // @ts-ignore + public getStartPoint(): java.awt.geom.Point2D; + /** + * Returns a copy of the end point of the gradient axis. + */ + // @ts-ignore + public getEndPoint(): java.awt.geom.Point2D; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.List.AccessibleAWTList.AccessibleAWTListChild.d.ts b/packages/types/dist/typings/jdk/java.awt.List.AccessibleAWTList.AccessibleAWTListChild.d.ts new file mode 100644 index 00000000..5f6d9a2c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.List.AccessibleAWTList.AccessibleAWTListChild.d.ts @@ -0,0 +1,230 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace List { + namespace AccessibleAWTList { + // @ts-ignore + protected class AccessibleAWTListChild extends java.awt.Component.AccessibleAWTComponent { + // @ts-ignore + constructor(parent: java.awt.List, indexInParent: number) + /** + * Gets the AccessibleContext for this object. In the + * implementation of the Java Accessibility API for this class, + * return this object, which acts as its own AccessibleContext. + */ + // @ts-ignore + public getAccessibleContext(): any /*javax.accessibility.AccessibleContext*/; + /** + * Get the role of this object. + */ + // @ts-ignore + public getAccessibleRole(): any /*javax.accessibility.AccessibleRole*/; + /** + * Get the state set of this object. The AccessibleStateSet of an + * object is composed of a set of unique AccessibleState's. A + * change in the AccessibleStateSet of an object will cause a + * PropertyChangeEvent to be fired for the + * ACCESSIBLE_STATE_PROPERTY property. + */ + // @ts-ignore + public getAccessibleStateSet(): any /*javax.accessibility.AccessibleStateSet*/; + /** + * Gets the locale of the component. If the component does not + * have a locale, then the locale of its parent is returned. + */ + // @ts-ignore + public getLocale(): java.util.Locale; + /** + * Get the 0-based index of this object in its accessible parent. + */ + // @ts-ignore + public getAccessibleIndexInParent(): number; + /** + * Returns the number of accessible children of the object. + */ + // @ts-ignore + public getAccessibleChildrenCount(): number; + /** + * Return the specified Accessible child of the object. The + * Accessible children of an Accessible object are zero-based, + * so the first child of an Accessible child is at index 0, the + * second child is at index 1, and so on. + */ + // @ts-ignore + public getAccessibleChild(i: number): any /*javax.accessibility.Accessible*/; + /** + * Get the background color of this object. + */ + // @ts-ignore + public getBackground(): java.awt.Color; + /** + * Set the background color of this object. + */ + // @ts-ignore + public setBackground(c: java.awt.Color): void; + /** + * Get the foreground color of this object. + */ + // @ts-ignore + public getForeground(): java.awt.Color; + /** + * Set the foreground color of this object. + */ + // @ts-ignore + public setForeground(c: java.awt.Color): void; + /** + * Get the Cursor of this object. + */ + // @ts-ignore + public getCursor(): java.awt.Cursor; + /** + * Set the Cursor of this object. + *

+ * The method may have no visual effect if the Java platform + * implementation and/or the native system do not support + * changing the mouse cursor shape. + */ + // @ts-ignore + public setCursor(cursor: java.awt.Cursor): void; + /** + * Get the Font of this object. + */ + // @ts-ignore + public getFont(): java.awt.Font; + /** + * Set the Font of this object. + */ + // @ts-ignore + public setFont(f: java.awt.Font): void; + /** + * Get the FontMetrics of this object. + */ + // @ts-ignore + public getFontMetrics(f: java.awt.Font): java.awt.FontMetrics; + /** + * Determine if the object is enabled. Objects that are enabled + * will also have the AccessibleState.ENABLED state set in their + * AccessibleStateSet. + */ + // @ts-ignore + public isEnabled(): boolean; + /** + * Set the enabled state of the object. + */ + // @ts-ignore + public setEnabled(b: boolean): void; + /** + * Determine if the object is visible. Note: this means that the + * object intends to be visible; however, it may not be + * showing on the screen because one of the objects that this object + * is contained by is currently not visible. To determine if an + * object is showing on the screen, use isShowing(). + *

Objects that are visible will also have the + * AccessibleState.VISIBLE state set in their AccessibleStateSet. + */ + // @ts-ignore + public isVisible(): boolean; + /** + * Set the visible state of the object. + */ + // @ts-ignore + public setVisible(b: boolean): void; + /** + * Determine if the object is showing. This is determined by + * checking the visibility of the object and visibility of the + * object ancestors. + * Note: this will return true even if the object is obscured + * by another (for example, it to object is underneath a menu + * that was pulled down). + */ + // @ts-ignore + public isShowing(): boolean; + /** + * Checks whether the specified point is within this object's + * bounds, where the point's x and y coordinates are defined to + * be relative to the coordinate system of the object. + */ + // @ts-ignore + public contains(p: java.awt.Point): boolean; + /** + * Returns the location of the object on the screen. + */ + // @ts-ignore + public getLocationOnScreen(): java.awt.Point; + /** + * Gets the location of the object relative to the parent in the + * form of a point specifying the object's top-left corner in the + * screen's coordinate space. + */ + // @ts-ignore + public getLocation(): java.awt.Point; + /** + * Sets the location of the object relative to the parent. + */ + // @ts-ignore + public setLocation(p: java.awt.Point): void; + /** + * Gets the bounds of this object in the form of a Rectangle object. + * The bounds specify this object's width, height, and location + * relative to its parent. + */ + // @ts-ignore + public getBounds(): java.awt.Rectangle; + /** + * Sets the bounds of this object in the form of a Rectangle + * object. The bounds specify this object's width, height, and + * location relative to its parent. + */ + // @ts-ignore + public setBounds(r: java.awt.Rectangle): void; + /** + * Returns the size of this object in the form of a Dimension + * object. The height field of the Dimension object contains this + * objects's height, and the width field of the Dimension object + * contains this object's width. + */ + // @ts-ignore + public getSize(): java.awt.Dimension; + /** + * Resizes this object so that it has width and height. + */ + // @ts-ignore + public setSize(d: java.awt.Dimension): void; + /** + * Returns the Accessible child, if one exists, + * contained at the local coordinate Point. + */ + // @ts-ignore + public getAccessibleAt(p: java.awt.Point): any /*javax.accessibility.Accessible*/; + /** + * Returns whether this object can accept focus or not. Objects + * that can accept focus will also have the + * AccessibleState.FOCUSABLE state set in their + * AccessibleStateSet. + */ + // @ts-ignore + public isFocusTraversable(): boolean; + /** + * Requests focus for this object. If this object cannot accept + * focus, nothing will happen. Otherwise, the object will attempt + * to take focus. + */ + // @ts-ignore + public requestFocus(): void; + /** + * Adds the specified focus listener to receive focus events from + * this component. + */ + // @ts-ignore + public addFocusListener(l: java.awt.event.FocusListener): void; + /** + * Removes the specified focus listener so it no longer receives + * focus events from this component. + */ + // @ts-ignore + public removeFocusListener(l: java.awt.event.FocusListener): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.List.AccessibleAWTList.d.ts b/packages/types/dist/typings/jdk/java.awt.List.AccessibleAWTList.d.ts new file mode 100644 index 00000000..5438133c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.List.AccessibleAWTList.d.ts @@ -0,0 +1,99 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace List { + // @ts-ignore + protected class AccessibleAWTList extends java.awt.Component.AccessibleAWTComponent { + // @ts-ignore + constructor() + // @ts-ignore + public actionPerformed(event: java.awt.event.ActionEvent): void; + // @ts-ignore + public itemStateChanged(event: java.awt.event.ItemEvent): void; + /** + * Get the state set of this object. + */ + // @ts-ignore + public getAccessibleStateSet(): any /*javax.accessibility.AccessibleStateSet*/; + /** + * Get the role of this object. + */ + // @ts-ignore + public getAccessibleRole(): any /*javax.accessibility.AccessibleRole*/; + /** + * Returns the Accessible child contained at the local coordinate + * Point, if one exists. + */ + // @ts-ignore + public getAccessibleAt(p: java.awt.Point): any /*javax.accessibility.Accessible*/; + /** + * Returns the number of accessible children in the object. If all + * of the children of this object implement Accessible, than this + * method should return the number of children of this object. + */ + // @ts-ignore + public getAccessibleChildrenCount(): number; + /** + * Return the nth Accessible child of the object. + */ + // @ts-ignore + public getAccessibleChild(i: number): any /*javax.accessibility.Accessible*/; + /** + * Get the AccessibleSelection associated with this object. In the + * implementation of the Java Accessibility API for this class, + * return this object, which is responsible for implementing the + * AccessibleSelection interface on behalf of itself. + */ + // @ts-ignore + public getAccessibleSelection(): any /*javax.accessibility.AccessibleSelection*/; + /** + * Returns the number of items currently selected. + * If no items are selected, the return value will be 0. + */ + // @ts-ignore + public getAccessibleSelectionCount(): number; + /** + * Returns an Accessible representing the specified selected item + * in the object. If there isn't a selection, or there are + * fewer items selected than the integer passed in, the return + * value will be null. + */ + // @ts-ignore + public getAccessibleSelection(i: number): any /*javax.accessibility.Accessible*/; + /** + * Returns true if the current child of this object is selected. + */ + // @ts-ignore + public isAccessibleChildSelected(i: number): boolean; + /** + * Adds the specified selected item in the object to the object's + * selection. If the object supports multiple selections, + * the specified item is added to any existing selection, otherwise + * it replaces any existing selection in the object. If the + * specified item is already selected, this method has no effect. + */ + // @ts-ignore + public addAccessibleSelection(i: number): void; + /** + * Removes the specified selected item in the object from the object's + * selection. If the specified item isn't currently selected, this + * method has no effect. + */ + // @ts-ignore + public removeAccessibleSelection(i: number): void; + /** + * Clears the selection in the object, so that nothing in the + * object is selected. + */ + // @ts-ignore + public clearAccessibleSelection(): void; + /** + * Causes every selected item in the object to be selected + * if the object supports multiple selections. + */ + // @ts-ignore + public selectAllAccessibleSelection(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.List.d.ts b/packages/types/dist/typings/jdk/java.awt.List.d.ts new file mode 100644 index 00000000..4c3a2293 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.List.d.ts @@ -0,0 +1,386 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class List extends java.awt.Component { + /** + * Creates a new scrolling list. + * By default, there are four visible lines and multiple selections are + * not allowed. Note that this is a convenience method for + * List(0, false). Also note that the number of visible + * lines in the list cannot be changed after it has been created. + */ + // @ts-ignore + constructor() + /** + * Creates a new scrolling list initialized with the specified + * number of visible lines. By default, multiple selections are + * not allowed. Note that this is a convenience method for + * List(rows, false). Also note that the number + * of visible rows in the list cannot be changed after it has + * been created. + */ + // @ts-ignore + constructor(rows: number) + /** + * Creates a new scrolling list initialized to display the specified + * number of rows. Note that if zero rows are specified, then + * the list will be created with a default of four rows. + * Also note that the number of visible rows in the list cannot + * be changed after it has been created. + * If the value of multipleMode is + * true, then the user can select multiple items from + * the list. If it is false, only one item at a time + * can be selected. + */ + // @ts-ignore + constructor(rows: number, multipleMode: boolean) + /** + * Creates the peer for the list. The peer allows us to modify the + * list's appearance without changing its functionality. + */ + // @ts-ignore + public addNotify(): void; + /** + * Removes the peer for this list. The peer allows us to modify the + * list's appearance without changing its functionality. + */ + // @ts-ignore + public removeNotify(): void; + /** + * Gets the number of items in the list. + */ + // @ts-ignore + public getItemCount(): number; + // @ts-ignore + public countItems(): number; + /** + * Gets the item associated with the specified index. + */ + // @ts-ignore + public getItem(index: number): string; + /** + * Gets the items in the list. + */ + // @ts-ignore + public getItems(): java.lang.String[]; + /** + * Adds the specified item to the end of scrolling list. + */ + // @ts-ignore + public add(item: string): void; + // @ts-ignore + public addItem(item: string): void; + /** + * Adds the specified item to the the scrolling list + * at the position indicated by the index. The index is + * zero-based. If the value of the index is less than zero, + * or if the value of the index is greater than or equal to + * the number of items in the list, then the item is added + * to the end of the list. + */ + // @ts-ignore + public add(item: string, index: number): void; + // @ts-ignore + public addItem(item: string, index: number): void; + /** + * Replaces the item at the specified index in the scrolling list + * with the new string. + */ + // @ts-ignore + public replaceItem(newValue: string, index: number): void; + /** + * Removes all items from this list. + */ + // @ts-ignore + public removeAll(): void; + // @ts-ignore + public clear(): void; + /** + * Removes the first occurrence of an item from the list. + * If the specified item is selected, and is the only selected + * item in the list, the list is set to have no selection. + */ + // @ts-ignore + public remove(item: string): void; + /** + * Removes the item at the specified position + * from this scrolling list. + * If the item with the specified position is selected, and is the + * only selected item in the list, the list is set to have no selection. + */ + // @ts-ignore + public remove(position: number): void; + // @ts-ignore + public delItem(position: number): void; + /** + * Gets the index of the selected item on the list, + */ + // @ts-ignore + public getSelectedIndex(): number; + /** + * Gets the selected indexes on the list. + */ + // @ts-ignore + public getSelectedIndexes(): number[]; + /** + * Gets the selected item on this scrolling list. + */ + // @ts-ignore + public getSelectedItem(): string; + /** + * Gets the selected items on this scrolling list. + */ + // @ts-ignore + public getSelectedItems(): java.lang.String[]; + /** + * Gets the selected items on this scrolling list in an array of Objects. + */ + // @ts-ignore + public getSelectedObjects(): java.lang.Object[]; + /** + * Selects the item at the specified index in the scrolling list. + *

+ * Note that passing out of range parameters is invalid, + * and will result in unspecified behavior. + *

Note that this method should be primarily used to + * initially select an item in this component. + * Programmatically calling this method will not trigger + * an ItemEvent. The only way to trigger an + * ItemEvent is by user interaction. + */ + // @ts-ignore + public select(index: number): void; + /** + * Deselects the item at the specified index. + *

+ * Note that passing out of range parameters is invalid, + * and will result in unspecified behavior. + *

+ * If the item at the specified index is not selected, + * then the operation is ignored. + */ + // @ts-ignore + public deselect(index: number): void; + /** + * Determines if the specified item in this scrolling list is + * selected. + */ + // @ts-ignore + public isIndexSelected(index: number): boolean; + // @ts-ignore + public isSelected(index: number): boolean; + /** + * Gets the number of visible lines in this list. Note that + * once the List has been created, this number + * will never change. + */ + // @ts-ignore + public getRows(): number; + /** + * Determines whether this list allows multiple selections. + */ + // @ts-ignore + public isMultipleMode(): boolean; + // @ts-ignore + public allowsMultipleSelections(): boolean; + /** + * Sets the flag that determines whether this list + * allows multiple selections. + * When the selection mode is changed from multiple-selection to + * single-selection, the selected items change as follows: + * If a selected item has the location cursor, only that + * item will remain selected. If no selected item has the + * location cursor, all items will be deselected. + */ + // @ts-ignore + public setMultipleMode(b: boolean): void; + // @ts-ignore + public setMultipleSelections(b: boolean): void; + /** + * Gets the index of the item that was last made visible by + * the method makeVisible. + */ + // @ts-ignore + public getVisibleIndex(): number; + /** + * Makes the item at the specified index visible. + */ + // @ts-ignore + public makeVisible(index: number): void; + /** + * Gets the preferred dimensions for a list with the specified + * number of rows. + */ + // @ts-ignore + public getPreferredSize(rows: number): java.awt.Dimension; + // @ts-ignore + public preferredSize(rows: number): java.awt.Dimension; + /** + * Gets the preferred size of this scrolling list. + */ + // @ts-ignore + public getPreferredSize(): java.awt.Dimension; + // @ts-ignore + public preferredSize(): java.awt.Dimension; + /** + * Gets the minimum dimensions for a list with the specified + * number of rows. + */ + // @ts-ignore + public getMinimumSize(rows: number): java.awt.Dimension; + // @ts-ignore + public minimumSize(rows: number): java.awt.Dimension; + /** + * Determines the minimum size of this scrolling list. + */ + // @ts-ignore + public getMinimumSize(): java.awt.Dimension; + // @ts-ignore + public minimumSize(): java.awt.Dimension; + /** + * Adds the specified item listener to receive item events from + * this list. Item events are sent in response to user input, but not + * in response to calls to select or deselect. + * If listener l is null, + * no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public addItemListener(l: java.awt.event.ItemListener): void; + /** + * Removes the specified item listener so that it no longer + * receives item events from this list. + * If listener l is null, + * no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public removeItemListener(l: java.awt.event.ItemListener): void; + /** + * Returns an array of all the item listeners + * registered on this list. + */ + // @ts-ignore + public getItemListeners(): java.awt.event.ItemListener[]; + /** + * Adds the specified action listener to receive action events from + * this list. Action events occur when a user double-clicks + * on a list item or types Enter when the list has the keyboard + * focus. + *

+ * If listener l is null, + * no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public addActionListener(l: java.awt.event.ActionListener): void; + /** + * Removes the specified action listener so that it no longer + * receives action events from this list. Action events + * occur when a user double-clicks on a list item. + * If listener l is null, + * no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public removeActionListener(l: java.awt.event.ActionListener): void; + /** + * Returns an array of all the action listeners + * registered on this list. + */ + // @ts-ignore + public getActionListeners(): java.awt.event.ActionListener[]; + /** + * Returns an array of all the objects currently registered + * as FooListeners + * upon this List. + * FooListeners are registered using the + * addFooListener method. + *

+ * You can specify the listenerType argument + * with a class literal, such as + * FooListener.class. + * For example, you can query a + * List l + * for its item listeners with the following code: + *

ItemListener[] ils = (ItemListener[])(l.getListeners(ItemListener.class));
+ * If no such listeners exist, this method returns an empty array. + */ + // @ts-ignore + public getListeners(listenerType: java.lang.Class): java.util.EventListener[]; + /** + * Processes events on this scrolling list. If an event is + * an instance of ItemEvent, it invokes the + * processItemEvent method. Else, if the + * event is an instance of ActionEvent, + * it invokes processActionEvent. + * If the event is not an item event or an action event, + * it invokes processEvent on the superclass. + *

Note that if the event parameter is null + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processEvent(e: java.awt.AWTEvent): void; + /** + * Processes item events occurring on this list by + * dispatching them to any registered + * ItemListener objects. + *

+ * This method is not called unless item events are + * enabled for this component. Item events are enabled + * when one of the following occurs: + *

    + *
  • An ItemListener object is registered + * via addItemListener. + *
  • Item events are enabled via enableEvents. + *
+ *

Note that if the event parameter is null + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processItemEvent(e: java.awt.event.ItemEvent): void; + /** + * Processes action events occurring on this component + * by dispatching them to any registered + * ActionListener objects. + *

+ * This method is not called unless action events are + * enabled for this component. Action events are enabled + * when one of the following occurs: + *

    + *
  • An ActionListener object is registered + * via addActionListener. + *
  • Action events are enabled via enableEvents. + *
+ *

Note that if the event parameter is null + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processActionEvent(e: java.awt.event.ActionEvent): void; + /** + * Returns the parameter string representing the state of this + * scrolling list. This string is useful for debugging. + */ + // @ts-ignore + protected paramString(): string; + // @ts-ignore + public delItems(start: number, end: number): void; + /** + * Gets the AccessibleContext associated with this + * List. For lists, the AccessibleContext + * takes the form of an AccessibleAWTList. + * A new AccessibleAWTList instance is created, if necessary. + */ + // @ts-ignore + public getAccessibleContext(): any /*javax.accessibility.AccessibleContext*/; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.MediaTracker.d.ts b/packages/types/dist/typings/jdk/java.awt.MediaTracker.d.ts new file mode 100644 index 00000000..63d49794 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.MediaTracker.d.ts @@ -0,0 +1,219 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class MediaTracker extends java.lang.Object { + /** + * Creates a media tracker to track images for a given component. + */ + // @ts-ignore + constructor(comp: java.awt.Component) + // @ts-ignore + public static LOADING: number; + // @ts-ignore + public static ABORTED: number; + // @ts-ignore + public static ERRORED: number; + // @ts-ignore + public static COMPLETE: number; + /** + * Adds an image to the list of images being tracked by this media + * tracker. The image will eventually be rendered at its default + * (unscaled) size. + */ + // @ts-ignore + public addImage(image: java.awt.Image, id: number): void; + /** + * Adds a scaled image to the list of images being tracked + * by this media tracker. The image will eventually be + * rendered at the indicated width and height. + */ + // @ts-ignore + public addImage(image: java.awt.Image, id: number, w: number, h: number): void; + /** + * Checks to see if all images being tracked by this media tracker + * have finished loading. + *

+ * This method does not start loading the images if they are not + * already loading. + *

+ * If there is an error while loading or scaling an image, then that + * image is considered to have finished loading. Use the + * isErrorAny or isErrorID methods to + * check for errors. + */ + // @ts-ignore + public checkAll(): boolean; + /** + * Checks to see if all images being tracked by this media tracker + * have finished loading. + *

+ * If the value of the load flag is true, + * then this method starts loading any images that are not yet + * being loaded. + *

+ * If there is an error while loading or scaling an image, that + * image is considered to have finished loading. Use the + * isErrorAny and isErrorID methods to + * check for errors. + */ + // @ts-ignore + public checkAll(load: boolean): boolean; + /** + * Checks the error status of all of the images. + */ + // @ts-ignore + public isErrorAny(): boolean; + /** + * Returns a list of all media that have encountered an error. + */ + // @ts-ignore + public getErrorsAny(): java.lang.Object[]; + /** + * Starts loading all images tracked by this media tracker. This + * method waits until all the images being tracked have finished + * loading. + *

+ * If there is an error while loading or scaling an image, then that + * image is considered to have finished loading. Use the + * isErrorAny or isErrorID methods to + * check for errors. + */ + // @ts-ignore + public waitForAll(): void; + /** + * Starts loading all images tracked by this media tracker. This + * method waits until all the images being tracked have finished + * loading, or until the length of time specified in milliseconds + * by the ms argument has passed. + *

+ * If there is an error while loading or scaling an image, then + * that image is considered to have finished loading. Use the + * isErrorAny or isErrorID methods to + * check for errors. + */ + // @ts-ignore + public waitForAll(ms: number): boolean; + /** + * Calculates and returns the bitwise inclusive OR of the + * status of all media that are tracked by this media tracker. + *

+ * Possible flags defined by the + * MediaTracker class are LOADING, + * ABORTED, ERRORED, and + * COMPLETE. An image that hasn't started + * loading has zero as its status. + *

+ * If the value of load is true, then + * this method starts loading any images that are not yet being loaded. + */ + // @ts-ignore + public statusAll(load: boolean): number; + /** + * Checks to see if all images tracked by this media tracker that + * are tagged with the specified identifier have finished loading. + *

+ * This method does not start loading the images if they are not + * already loading. + *

+ * If there is an error while loading or scaling an image, then that + * image is considered to have finished loading. Use the + * isErrorAny or isErrorID methods to + * check for errors. + */ + // @ts-ignore + public checkID(id: number): boolean; + /** + * Checks to see if all images tracked by this media tracker that + * are tagged with the specified identifier have finished loading. + *

+ * If the value of the load flag is true, + * then this method starts loading any images that are not yet + * being loaded. + *

+ * If there is an error while loading or scaling an image, then that + * image is considered to have finished loading. Use the + * isErrorAny or isErrorID methods to + * check for errors. + */ + // @ts-ignore + public checkID(id: number, load: boolean): boolean; + /** + * Checks the error status of all of the images tracked by this + * media tracker with the specified identifier. + */ + // @ts-ignore + public isErrorID(id: number): boolean; + /** + * Returns a list of media with the specified ID that + * have encountered an error. + */ + // @ts-ignore + public getErrorsID(id: number): java.lang.Object[]; + /** + * Starts loading all images tracked by this media tracker with the + * specified identifier. This method waits until all the images with + * the specified identifier have finished loading. + *

+ * If there is an error while loading or scaling an image, then that + * image is considered to have finished loading. Use the + * isErrorAny and isErrorID methods to + * check for errors. + */ + // @ts-ignore + public waitForID(id: number): void; + /** + * Starts loading all images tracked by this media tracker with the + * specified identifier. This method waits until all the images with + * the specified identifier have finished loading, or until the + * length of time specified in milliseconds by the ms + * argument has passed. + *

+ * If there is an error while loading or scaling an image, then that + * image is considered to have finished loading. Use the + * statusID, isErrorID, and + * isErrorAny methods to check for errors. + */ + // @ts-ignore + public waitForID(id: number, ms: number): boolean; + /** + * Calculates and returns the bitwise inclusive OR of the + * status of all media with the specified identifier that are + * tracked by this media tracker. + *

+ * Possible flags defined by the + * MediaTracker class are LOADING, + * ABORTED, ERRORED, and + * COMPLETE. An image that hasn't started + * loading has zero as its status. + *

+ * If the value of load is true, then + * this method starts loading any images that are not yet being loaded. + */ + // @ts-ignore + public statusID(id: number, load: boolean): number; + /** + * Removes the specified image from this media tracker. + * All instances of the specified image are removed, + * regardless of scale or ID. + */ + // @ts-ignore + public removeImage(image: java.awt.Image): void; + /** + * Removes the specified image from the specified tracking + * ID of this media tracker. + * All instances of Image being tracked + * under the specified ID are removed regardless of scale. + */ + // @ts-ignore + public removeImage(image: java.awt.Image, id: number): void; + /** + * Removes the specified image with the specified + * width, height, and ID from this media tracker. + * Only the specified instance (with any duplicates) is removed. + */ + // @ts-ignore + public removeImage(image: java.awt.Image, id: number, width: number, height: number): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Menu.AccessibleAWTMenu.d.ts b/packages/types/dist/typings/jdk/java.awt.Menu.AccessibleAWTMenu.d.ts new file mode 100644 index 00000000..5229f722 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Menu.AccessibleAWTMenu.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace Menu { + // @ts-ignore + protected class AccessibleAWTMenu extends java.awt.MenuItem.AccessibleAWTMenuItem { + // @ts-ignore + constructor() + /** + * Get the role of this object. + */ + // @ts-ignore + public getAccessibleRole(): any /*javax.accessibility.AccessibleRole*/; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Menu.d.ts b/packages/types/dist/typings/jdk/java.awt.Menu.d.ts new file mode 100644 index 00000000..fd386c70 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Menu.d.ts @@ -0,0 +1,130 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class Menu extends java.awt.MenuItem { + /** + * Constructs a new menu with an empty label. This menu is not + * a tear-off menu. + */ + // @ts-ignore + constructor() + /** + * Constructs a new menu with the specified label. This menu is not + * a tear-off menu. + */ + // @ts-ignore + constructor(label: string) + /** + * Constructs a new menu with the specified label, + * indicating whether the menu can be torn off. + *

+ * Tear-off functionality may not be supported by all + * implementations of AWT. If a particular implementation doesn't + * support tear-off menus, this value is silently ignored. + */ + // @ts-ignore + constructor(label: string, tearOff: boolean) + /** + * Creates the menu's peer. The peer allows us to modify the + * appearance of the menu without changing its functionality. + */ + // @ts-ignore + public addNotify(): void; + /** + * Removes the menu's peer. The peer allows us to modify the appearance + * of the menu without changing its functionality. + */ + // @ts-ignore + public removeNotify(): void; + /** + * Indicates whether this menu is a tear-off menu. + *

+ * Tear-off functionality may not be supported by all + * implementations of AWT. If a particular implementation doesn't + * support tear-off menus, this value is silently ignored. + */ + // @ts-ignore + public isTearOff(): boolean; + /** + * Get the number of items in this menu. + */ + // @ts-ignore + public getItemCount(): number; + // @ts-ignore + public countItems(): number; + /** + * Gets the item located at the specified index of this menu. + */ + // @ts-ignore + public getItem(index: number): java.awt.MenuItem; + /** + * Adds the specified menu item to this menu. If the + * menu item has been part of another menu, removes it + * from that menu. + */ + // @ts-ignore + public add(mi: java.awt.MenuItem): java.awt.MenuItem; + /** + * Adds an item with the specified label to this menu. + */ + // @ts-ignore + public add(label: string): void; + /** + * Inserts a menu item into this menu + * at the specified position. + */ + // @ts-ignore + public insert(menuitem: java.awt.MenuItem, index: number): void; + /** + * Inserts a menu item with the specified label into this menu + * at the specified position. This is a convenience method for + * insert(menuItem, index). + */ + // @ts-ignore + public insert(label: string, index: number): void; + /** + * Adds a separator line, or a hypen, to the menu at the current position. + */ + // @ts-ignore + public addSeparator(): void; + /** + * Inserts a separator at the specified position. + */ + // @ts-ignore + public insertSeparator(index: number): void; + /** + * Removes the menu item at the specified index from this menu. + */ + // @ts-ignore + public remove(index: number): void; + /** + * Removes the specified menu item from this menu. + */ + // @ts-ignore + public remove(item: java.awt.MenuComponent): void; + /** + * Removes all items from this menu. + */ + // @ts-ignore + public removeAll(): void; + /** + * Returns a string representing the state of this Menu. + * This method is intended to be used only for debugging purposes, and the + * content and format of the returned string may vary between + * implementations. The returned string may be empty but may not be + * null. + */ + // @ts-ignore + public paramString(): string; + /** + * Gets the AccessibleContext associated with this Menu. + * For menus, the AccessibleContext takes the form of an + * AccessibleAWTMenu. + * A new AccessibleAWTMenu instance is created if necessary. + */ + // @ts-ignore + public getAccessibleContext(): any /*javax.accessibility.AccessibleContext*/; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.MenuBar.AccessibleAWTMenuBar.d.ts b/packages/types/dist/typings/jdk/java.awt.MenuBar.AccessibleAWTMenuBar.d.ts new file mode 100644 index 00000000..6d585f51 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.MenuBar.AccessibleAWTMenuBar.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace MenuBar { + // @ts-ignore + protected class AccessibleAWTMenuBar extends java.awt.MenuComponent.AccessibleAWTMenuComponent { + // @ts-ignore + constructor() + /** + * Get the role of this object. + */ + // @ts-ignore + public getAccessibleRole(): any /*javax.accessibility.AccessibleRole*/; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.MenuBar.d.ts b/packages/types/dist/typings/jdk/java.awt.MenuBar.d.ts new file mode 100644 index 00000000..a6c4a687 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.MenuBar.d.ts @@ -0,0 +1,97 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class MenuBar extends java.awt.MenuComponent { + /** + * Creates a new menu bar. + */ + // @ts-ignore + constructor() + /** + * Creates the menu bar's peer. The peer allows us to change the + * appearance of the menu bar without changing any of the menu bar's + * functionality. + */ + // @ts-ignore + public addNotify(): void; + /** + * Removes the menu bar's peer. The peer allows us to change the + * appearance of the menu bar without changing any of the menu bar's + * functionality. + */ + // @ts-ignore + public removeNotify(): void; + /** + * Gets the help menu on the menu bar. + */ + // @ts-ignore + public getHelpMenu(): java.awt.Menu; + /** + * Sets the specified menu to be this menu bar's help menu. + * If this menu bar has an existing help menu, the old help menu is + * removed from the menu bar, and replaced with the specified menu. + */ + // @ts-ignore + public setHelpMenu(m: java.awt.Menu): void; + /** + * Adds the specified menu to the menu bar. + * If the menu has been part of another menu bar, + * removes it from that menu bar. + */ + // @ts-ignore + public add(m: java.awt.Menu): java.awt.Menu; + /** + * Removes the menu located at the specified + * index from this menu bar. + */ + // @ts-ignore + public remove(index: number): void; + /** + * Removes the specified menu component from this menu bar. + */ + // @ts-ignore + public remove(m: java.awt.MenuComponent): void; + /** + * Gets the number of menus on the menu bar. + */ + // @ts-ignore + public getMenuCount(): number; + // @ts-ignore + public countMenus(): number; + /** + * Gets the specified menu. + */ + // @ts-ignore + public getMenu(i: number): java.awt.Menu; + /** + * Gets an enumeration of all menu shortcuts this menu bar + * is managing. + */ + // @ts-ignore + public shortcuts(): java.util.Enumeration; + /** + * Gets the instance of MenuItem associated + * with the specified MenuShortcut object, + * or null if none of the menu items being managed + * by this menu bar is associated with the specified menu + * shortcut. + */ + // @ts-ignore + public getShortcutMenuItem(s: java.awt.MenuShortcut): java.awt.MenuItem; + /** + * Deletes the specified menu shortcut. + */ + // @ts-ignore + public deleteShortcut(s: java.awt.MenuShortcut): void; + /** + * Gets the AccessibleContext associated with this MenuBar. + * For menu bars, the AccessibleContext takes the form of an + * AccessibleAWTMenuBar. + * A new AccessibleAWTMenuBar instance is created if necessary. + */ + // @ts-ignore + public getAccessibleContext(): any /*javax.accessibility.AccessibleContext*/; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.MenuComponent.AccessibleAWTMenuComponent.d.ts b/packages/types/dist/typings/jdk/java.awt.MenuComponent.AccessibleAWTMenuComponent.d.ts new file mode 100644 index 00000000..1c56b0a3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.MenuComponent.AccessibleAWTMenuComponent.d.ts @@ -0,0 +1,307 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace MenuComponent { + // @ts-ignore + protected abstract class AccessibleAWTMenuComponent extends javax.accessibility.AccessibleContext { + /** + * Although the class is abstract, this should be called by + * all sub-classes. + */ + // @ts-ignore + constructor() + /** + * Gets the AccessibleSelection associated with this + * object which allows its Accessible children to be selected. + */ + // @ts-ignore + public getAccessibleSelection(): any /*javax.accessibility.AccessibleSelection*/; + /** + * Gets the accessible name of this object. This should almost never + * return java.awt.MenuComponent.getName, as that + * generally isn't a localized name, and doesn't have meaning for the + * user. If the object is fundamentally a text object (e.g. a menu item), the + * accessible name should be the text of the object (e.g. "save"). + * If the object has a tooltip, the tooltip text may also be an + * appropriate String to return. + */ + // @ts-ignore + public getAccessibleName(): string; + /** + * Gets the accessible description of this object. This should be + * a concise, localized description of what this object is - what + * is its meaning to the user. If the object has a tooltip, the + * tooltip text may be an appropriate string to return, assuming + * it contains a concise description of the object (instead of just + * the name of the object - e.g. a "Save" icon on a toolbar that + * had "save" as the tooltip text shouldn't return the tooltip + * text as the description, but something like "Saves the current + * text document" instead). + */ + // @ts-ignore + public getAccessibleDescription(): string; + /** + * Gets the role of this object. + */ + // @ts-ignore + public getAccessibleRole(): any /*javax.accessibility.AccessibleRole*/; + /** + * Gets the state of this object. + */ + // @ts-ignore + public getAccessibleStateSet(): any /*javax.accessibility.AccessibleStateSet*/; + /** + * Gets the Accessible parent of this object. + * If the parent of this object implements Accessible, + * this method should simply return getParent. + */ + // @ts-ignore + public getAccessibleParent(): any /*javax.accessibility.Accessible*/; + /** + * Gets the index of this object in its accessible parent. + */ + // @ts-ignore + public getAccessibleIndexInParent(): number; + /** + * Returns the number of accessible children in the object. If all + * of the children of this object implement Accessible, + * then this method should return the number of children of this object. + */ + // @ts-ignore + public getAccessibleChildrenCount(): number; + /** + * Returns the nth Accessible child of the object. + */ + // @ts-ignore + public getAccessibleChild(i: number): any /*javax.accessibility.Accessible*/; + /** + * Returns the locale of this object. + */ + // @ts-ignore + public getLocale(): java.util.Locale; + /** + * Gets the AccessibleComponent associated with + * this object if one exists. Otherwise return null. + */ + // @ts-ignore + public getAccessibleComponent(): any /*javax.accessibility.AccessibleComponent*/; + /** + * Gets the background color of this object. + */ + // @ts-ignore + public getBackground(): java.awt.Color; + /** + * Sets the background color of this object. + * (For transparency, see isOpaque.) + */ + // @ts-ignore + public setBackground(c: java.awt.Color): void; + /** + * Gets the foreground color of this object. + */ + // @ts-ignore + public getForeground(): java.awt.Color; + /** + * Sets the foreground color of this object. + */ + // @ts-ignore + public setForeground(c: java.awt.Color): void; + /** + * Gets the Cursor of this object. + */ + // @ts-ignore + public getCursor(): java.awt.Cursor; + /** + * Sets the Cursor of this object. + *

+ * The method may have no visual effect if the Java platform + * implementation and/or the native system do not support + * changing the mouse cursor shape. + */ + // @ts-ignore + public setCursor(cursor: java.awt.Cursor): void; + /** + * Gets the Font of this object. + */ + // @ts-ignore + public getFont(): java.awt.Font; + /** + * Sets the Font of this object. + */ + // @ts-ignore + public setFont(f: java.awt.Font): void; + /** + * Gets the FontMetrics of this object. + */ + // @ts-ignore + public getFontMetrics(f: java.awt.Font): java.awt.FontMetrics; + /** + * Determines if the object is enabled. + */ + // @ts-ignore + public isEnabled(): boolean; + /** + * Sets the enabled state of the object. + */ + // @ts-ignore + public setEnabled(b: boolean): void; + /** + * Determines if the object is visible. Note: this means that the + * object intends to be visible; however, it may not in fact be + * showing on the screen because one of the objects that this object + * is contained by is not visible. To determine if an object is + * showing on the screen, use isShowing. + */ + // @ts-ignore + public isVisible(): boolean; + /** + * Sets the visible state of the object. + */ + // @ts-ignore + public setVisible(b: boolean): void; + /** + * Determines if the object is showing. This is determined by checking + * the visibility of the object and ancestors of the object. Note: + * this will return true even if the object is obscured by another + * (for example, it happens to be underneath a menu that was pulled + * down). + */ + // @ts-ignore + public isShowing(): boolean; + /** + * Checks whether the specified point is within this object's bounds, + * where the point's x and y coordinates are defined to be relative to + * the coordinate system of the object. + */ + // @ts-ignore + public contains(p: java.awt.Point): boolean; + /** + * Returns the location of the object on the screen. + */ + // @ts-ignore + public getLocationOnScreen(): java.awt.Point; + /** + * Gets the location of the object relative to the parent in the form + * of a point specifying the object's top-left corner in the screen's + * coordinate space. + */ + // @ts-ignore + public getLocation(): java.awt.Point; + /** + * Sets the location of the object relative to the parent. + */ + // @ts-ignore + public setLocation(p: java.awt.Point): void; + /** + * Gets the bounds of this object in the form of a + * Rectangle object. + * The bounds specify this object's width, height, and location + * relative to its parent. + */ + // @ts-ignore + public getBounds(): java.awt.Rectangle; + /** + * Sets the bounds of this object in the form of a + * Rectangle object. + * The bounds specify this object's width, height, and location + * relative to its parent. + */ + // @ts-ignore + public setBounds(r: java.awt.Rectangle): void; + /** + * Returns the size of this object in the form of a + * Dimension object. The height field of + * the Dimension object contains this object's + * height, and the width field of the Dimension + * object contains this object's width. + */ + // @ts-ignore + public getSize(): java.awt.Dimension; + /** + * Resizes this object. + */ + // @ts-ignore + public setSize(d: java.awt.Dimension): void; + /** + * Returns the Accessible child, if one exists, + * contained at the local coordinate Point. + * If there is no Accessible child, null + * is returned. + */ + // @ts-ignore + public getAccessibleAt(p: java.awt.Point): any /*javax.accessibility.Accessible*/; + /** + * Returns whether this object can accept focus or not. + */ + // @ts-ignore + public isFocusTraversable(): boolean; + /** + * Requests focus for this object. + */ + // @ts-ignore + public requestFocus(): void; + /** + * Adds the specified focus listener to receive focus events from this + * component. + */ + // @ts-ignore + public addFocusListener(l: java.awt.event.FocusListener): void; + /** + * Removes the specified focus listener so it no longer receives focus + * events from this component. + */ + // @ts-ignore + public removeFocusListener(l: java.awt.event.FocusListener): void; + /** + * Returns the number of Accessible children currently selected. + * If no children are selected, the return value will be 0. + */ + // @ts-ignore + public getAccessibleSelectionCount(): number; + /** + * Returns an Accessible representing the specified + * selected child in the object. If there isn't a selection, or there are + * fewer children selected than the integer passed in, the return + * value will be null. + *

Note that the index represents the i-th selected child, which + * is different from the i-th child. + */ + // @ts-ignore + public getAccessibleSelection(i: number): any /*javax.accessibility.Accessible*/; + /** + * Determines if the current child of this object is selected. + */ + // @ts-ignore + public isAccessibleChildSelected(i: number): boolean; + /** + * Adds the specified Accessible child of the object + * to the object's selection. If the object supports multiple selections, + * the specified child is added to any existing selection, otherwise + * it replaces any existing selection in the object. If the + * specified child is already selected, this method has no effect. + */ + // @ts-ignore + public addAccessibleSelection(i: number): void; + /** + * Removes the specified child of the object from the object's + * selection. If the specified item isn't currently selected, this + * method has no effect. + */ + // @ts-ignore + public removeAccessibleSelection(i: number): void; + /** + * Clears the selection in the object, so that no children in the + * object are selected. + */ + // @ts-ignore + public clearAccessibleSelection(): void; + /** + * Causes every child of the object to be selected + * if the object supports multiple selections. + */ + // @ts-ignore + public selectAllAccessibleSelection(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.MenuComponent.d.ts b/packages/types/dist/typings/jdk/java.awt.MenuComponent.d.ts new file mode 100644 index 00000000..dc745358 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.MenuComponent.d.ts @@ -0,0 +1,109 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + abstract class MenuComponent extends java.lang.Object { + /** + * Creates a MenuComponent. + */ + // @ts-ignore + constructor() + /** + * Gets the name of the menu component. + */ + // @ts-ignore + public getName(): string; + /** + * Sets the name of the component to the specified string. + */ + // @ts-ignore + public setName(name: string): void; + /** + * Returns the parent container for this menu component. + */ + // @ts-ignore + public getParent(): java.awt.MenuContainer; + // @ts-ignore + public getPeer(): java.awt.peer.MenuComponentPeer; + /** + * Gets the font used for this menu component. + */ + // @ts-ignore + public getFont(): java.awt.Font; + /** + * Sets the font to be used for this menu component to the specified + * font. This font is also used by all subcomponents of this menu + * component, unless those subcomponents specify a different font. + *

+ * Some platforms may not support setting of all font attributes + * of a menu component; in such cases, calling setFont + * will have no effect on the unsupported font attributes of this + * menu component. Unless subcomponents of this menu component + * specify a different font, this font will be used by those + * subcomponents if supported by the underlying platform. + */ + // @ts-ignore + public setFont(f: java.awt.Font): void; + /** + * Removes the menu component's peer. The peer allows us to modify the + * appearance of the menu component without changing the functionality of + * the menu component. + */ + // @ts-ignore + public removeNotify(): void; + /** + * Posts the specified event to the menu. + * This method is part of the Java 1.0 event system + * and it is maintained only for backwards compatibility. + * Its use is discouraged, and it may not be supported + * in the future. + */ + // @ts-ignore + public postEvent(evt: java.awt.Event): boolean; + /** + * Delivers an event to this component or one of its sub components. + */ + // @ts-ignore + public dispatchEvent(e: java.awt.AWTEvent): void; + /** + * Processes events occurring on this menu component. + *

Note that if the event parameter is null + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processEvent(e: java.awt.AWTEvent): void; + /** + * Returns a string representing the state of this + * MenuComponent. This method is intended to be used + * only for debugging purposes, and the content and format of the + * returned string may vary between implementations. The returned + * string may be empty but may not be null. + */ + // @ts-ignore + protected paramString(): string; + /** + * Returns a representation of this menu component as a string. + */ + // @ts-ignore + public toString(): string; + /** + * Gets this component's locking object (the object that owns the thread + * synchronization monitor) for AWT component-tree and layout + * operations. + */ + // @ts-ignore + protected getTreeLock(): java.lang.Object; + /** + * Gets the AccessibleContext associated with + * this MenuComponent. + * The method implemented by this base class returns null. + * Classes that extend MenuComponent + * should implement this method to return the + * AccessibleContext associated with the subclass. + */ + // @ts-ignore + public getAccessibleContext(): any /*javax.accessibility.AccessibleContext*/; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.MenuContainer.d.ts b/packages/types/dist/typings/jdk/java.awt.MenuContainer.d.ts new file mode 100644 index 00000000..635576a8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.MenuContainer.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + interface MenuContainer { + // @ts-ignore + getFont(): java.awt.Font; + // @ts-ignore + remove(comp: java.awt.MenuComponent): void; + // @ts-ignore + postEvent(evt: java.awt.Event): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.MenuItem.AccessibleAWTMenuItem.d.ts b/packages/types/dist/typings/jdk/java.awt.MenuItem.AccessibleAWTMenuItem.d.ts new file mode 100644 index 00000000..afa74c6a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.MenuItem.AccessibleAWTMenuItem.d.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace MenuItem { + // @ts-ignore + protected class AccessibleAWTMenuItem extends java.awt.MenuComponent.AccessibleAWTMenuComponent { + // @ts-ignore + constructor() + /** + * Get the accessible name of this object. + */ + // @ts-ignore + public getAccessibleName(): string; + /** + * Get the role of this object. + */ + // @ts-ignore + public getAccessibleRole(): any /*javax.accessibility.AccessibleRole*/; + /** + * Get the AccessibleAction associated with this object. In the + * implementation of the Java Accessibility API for this class, + * return this object, which is responsible for implementing the + * AccessibleAction interface on behalf of itself. + */ + // @ts-ignore + public getAccessibleAction(): any /*javax.accessibility.AccessibleAction*/; + /** + * Get the AccessibleValue associated with this object. In the + * implementation of the Java Accessibility API for this class, + * return this object, which is responsible for implementing the + * AccessibleValue interface on behalf of itself. + */ + // @ts-ignore + public getAccessibleValue(): any /*javax.accessibility.AccessibleValue*/; + /** + * Returns the number of Actions available in this object. The + * default behavior of a menu item is to have one action. + */ + // @ts-ignore + public getAccessibleActionCount(): number; + /** + * Return a description of the specified action of the object. + */ + // @ts-ignore + public getAccessibleActionDescription(i: number): string; + /** + * Perform the specified Action on the object + */ + // @ts-ignore + public doAccessibleAction(i: number): boolean; + /** + * Get the value of this object as a Number. + */ + // @ts-ignore + public getCurrentAccessibleValue(): java.lang.Number; + /** + * Set the value of this object as a Number. + */ + // @ts-ignore + public setCurrentAccessibleValue(n: java.lang.Number): boolean; + /** + * Get the minimum value of this object as a Number. + */ + // @ts-ignore + public getMinimumAccessibleValue(): java.lang.Number; + /** + * Get the maximum value of this object as a Number. + */ + // @ts-ignore + public getMaximumAccessibleValue(): java.lang.Number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.MenuItem.d.ts b/packages/types/dist/typings/jdk/java.awt.MenuItem.d.ts new file mode 100644 index 00000000..5aec0a3d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.MenuItem.d.ts @@ -0,0 +1,205 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class MenuItem extends java.awt.MenuComponent { + /** + * Constructs a new MenuItem with an empty label and no keyboard + * shortcut. + */ + // @ts-ignore + constructor() + /** + * Constructs a new MenuItem with the specified label + * and no keyboard shortcut. Note that use of "-" in + * a label is reserved to indicate a separator between + * menu items. By default, all menu items except for + * separators are enabled. + */ + // @ts-ignore + constructor(label: string) + /** + * Create a menu item with an associated keyboard shortcut. + * Note that use of "-" in a label is reserved to indicate + * a separator between menu items. By default, all menu + * items except for separators are enabled. + */ + // @ts-ignore + constructor(label: string, s: java.awt.MenuShortcut) + /** + * Creates the menu item's peer. The peer allows us to modify the + * appearance of the menu item without changing its functionality. + */ + // @ts-ignore + public addNotify(): void; + /** + * Gets the label for this menu item. + */ + // @ts-ignore + public getLabel(): string; + /** + * Sets the label for this menu item to the specified label. + */ + // @ts-ignore + public setLabel(label: string): void; + /** + * Checks whether this menu item is enabled. + */ + // @ts-ignore + public isEnabled(): boolean; + /** + * Sets whether or not this menu item can be chosen. + */ + // @ts-ignore + public setEnabled(b: boolean): void; + // @ts-ignore + public enable(): void; + // @ts-ignore + public enable(b: boolean): void; + // @ts-ignore + public disable(): void; + /** + * Get the MenuShortcut object associated with this + * menu item, + */ + // @ts-ignore + public getShortcut(): java.awt.MenuShortcut; + /** + * Set the MenuShortcut object associated with this + * menu item. If a menu shortcut is already associated with + * this menu item, it is replaced. + */ + // @ts-ignore + public setShortcut(s: java.awt.MenuShortcut): void; + /** + * Delete any MenuShortcut object associated + * with this menu item. + */ + // @ts-ignore + public deleteShortcut(): void; + /** + * Enables event delivery to this menu item for events + * to be defined by the specified event mask parameter + *

+ * Since event types are automatically enabled when a listener for + * that type is added to the menu item, this method only needs + * to be invoked by subclasses of MenuItem which desire to + * have the specified event types delivered to processEvent + * regardless of whether a listener is registered. + */ + // @ts-ignore + protected enableEvents(eventsToEnable: number): void; + /** + * Disables event delivery to this menu item for events + * defined by the specified event mask parameter. + */ + // @ts-ignore + protected disableEvents(eventsToDisable: number): void; + /** + * Sets the command name of the action event that is fired + * by this menu item. + *

+ * By default, the action command is set to the label of + * the menu item. + */ + // @ts-ignore + public setActionCommand(command: string): void; + /** + * Gets the command name of the action event that is fired + * by this menu item. + */ + // @ts-ignore + public getActionCommand(): string; + /** + * Adds the specified action listener to receive action events + * from this menu item. + * If l is null, no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public addActionListener(l: java.awt.event.ActionListener): void; + /** + * Removes the specified action listener so it no longer receives + * action events from this menu item. + * If l is null, no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public removeActionListener(l: java.awt.event.ActionListener): void; + /** + * Returns an array of all the action listeners + * registered on this menu item. + */ + // @ts-ignore + public getActionListeners(): java.awt.event.ActionListener[]; + /** + * Returns an array of all the objects currently registered + * as FooListeners + * upon this MenuItem. + * FooListeners are registered using the + * addFooListener method. + *

+ * You can specify the listenerType argument + * with a class literal, such as + * FooListener.class. + * For example, you can query a + * MenuItem m + * for its action listeners with the following code: + *

ActionListener[] als = (ActionListener[])(m.getListeners(ActionListener.class));
+ * If no such listeners exist, this method returns an empty array. + */ + // @ts-ignore + public getListeners(listenerType: java.lang.Class): java.util.EventListener[]; + /** + * Processes events on this menu item. If the event is an + * instance of ActionEvent, it invokes + * processActionEvent, another method + * defined by MenuItem. + *

+ * Currently, menu items only support action events. + *

Note that if the event parameter is null + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processEvent(e: java.awt.AWTEvent): void; + /** + * Processes action events occurring on this menu item, + * by dispatching them to any registered + * ActionListener objects. + * This method is not called unless action events are + * enabled for this component. Action events are enabled + * when one of the following occurs: + *

    + *
  • An ActionListener object is registered + * via addActionListener. + *
  • Action events are enabled via enableEvents. + *
+ *

Note that if the event parameter is null + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processActionEvent(e: java.awt.event.ActionEvent): void; + /** + * Returns a string representing the state of this MenuItem. + * This method is intended to be used only for debugging purposes, and the + * content and format of the returned string may vary between + * implementations. The returned string may be empty but may not be + * null. + */ + // @ts-ignore + public paramString(): string; + /** + * Gets the AccessibleContext associated with this MenuItem. + * For menu items, the AccessibleContext takes the form of an + * AccessibleAWTMenuItem. + * A new AccessibleAWTMenuItem instance is created if necessary. + */ + // @ts-ignore + public getAccessibleContext(): any /*javax.accessibility.AccessibleContext*/; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.MenuShortcut.d.ts b/packages/types/dist/typings/jdk/java.awt.MenuShortcut.d.ts new file mode 100644 index 00000000..086f849b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.MenuShortcut.d.ts @@ -0,0 +1,58 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class MenuShortcut extends java.lang.Object { + /** + * Constructs a new MenuShortcut for the specified virtual keycode. + */ + // @ts-ignore + constructor(key: number) + /** + * Constructs a new MenuShortcut for the specified virtual keycode. + */ + // @ts-ignore + constructor(key: number, useShiftModifier: boolean) + /** + * Returns the raw keycode of this MenuShortcut. + */ + // @ts-ignore + public getKey(): number; + /** + * Returns whether this MenuShortcut must be invoked using the SHIFT key. + */ + // @ts-ignore + public usesShiftModifier(): boolean; + /** + * Returns whether this MenuShortcut is the same as another: + * equality is defined to mean that both MenuShortcuts use the same key + * and both either use or don't use the SHIFT key. + */ + // @ts-ignore + public equals(s: java.awt.MenuShortcut): boolean; + /** + * Returns whether this MenuShortcut is the same as another: + * equality is defined to mean that both MenuShortcuts use the same key + * and both either use or don't use the SHIFT key. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns the hashcode for this MenuShortcut. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns an internationalized description of the MenuShortcut. + */ + // @ts-ignore + public toString(): string; + /** + * Returns the parameter string representing the state of this + * MenuShortcut. This string is useful for debugging. + */ + // @ts-ignore + protected paramString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.MouseInfo.d.ts b/packages/types/dist/typings/jdk/java.awt.MouseInfo.d.ts new file mode 100644 index 00000000..78eb4823 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.MouseInfo.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class MouseInfo extends java.lang.Object { + /** + * Returns a PointerInfo instance that represents the current + * location of the mouse pointer. + * The GraphicsDevice stored in this PointerInfo + * contains the mouse pointer. The coordinate system used for the mouse position + * depends on whether or not the GraphicsDevice is part of a virtual + * screen device. + * For virtual screen devices, the coordinates are given in the virtual + * coordinate system, otherwise they are returned in the coordinate system + * of the GraphicsDevice. See {@link GraphicsConfiguration} + * for more information about the virtual screen devices. + * On systems without a mouse, returns null. + *

+ * If there is a security manager, its checkPermission method + * is called with an AWTPermission("watchMousePointer") + * permission before creating and returning a PointerInfo + * object. This may result in a SecurityException. + */ + // @ts-ignore + public static getPointerInfo(): java.awt.PointerInfo; + /** + * Returns the number of buttons on the mouse. + * On systems without a mouse, returns -1. + */ + // @ts-ignore + public static getNumberOfButtons(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.MultipleGradientPaint.ColorSpaceType.d.ts b/packages/types/dist/typings/jdk/java.awt.MultipleGradientPaint.ColorSpaceType.d.ts new file mode 100644 index 00000000..7ed7de2e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.MultipleGradientPaint.ColorSpaceType.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace MultipleGradientPaint { + // @ts-ignore + class ColorSpaceType extends java.lang.Enum { + // @ts-ignore + public static SRGB: java.awt.MultipleGradientPaint.ColorSpaceType; + // @ts-ignore + public static LINEAR_RGB: java.awt.MultipleGradientPaint.ColorSpaceType; + // @ts-ignore + public static values(): java.awt.MultipleGradientPaint.ColorSpaceType[]; + // @ts-ignore + public static valueOf(name: string): java.awt.MultipleGradientPaint.ColorSpaceType; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.MultipleGradientPaint.CycleMethod.d.ts b/packages/types/dist/typings/jdk/java.awt.MultipleGradientPaint.CycleMethod.d.ts new file mode 100644 index 00000000..a79ff020 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.MultipleGradientPaint.CycleMethod.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace MultipleGradientPaint { + // @ts-ignore + class CycleMethod extends java.lang.Enum { + // @ts-ignore + public static NO_CYCLE: java.awt.MultipleGradientPaint.CycleMethod; + // @ts-ignore + public static REFLECT: java.awt.MultipleGradientPaint.CycleMethod; + // @ts-ignore + public static REPEAT: java.awt.MultipleGradientPaint.CycleMethod; + // @ts-ignore + public static values(): java.awt.MultipleGradientPaint.CycleMethod[]; + // @ts-ignore + public static valueOf(name: string): java.awt.MultipleGradientPaint.CycleMethod; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.MultipleGradientPaint.d.ts b/packages/types/dist/typings/jdk/java.awt.MultipleGradientPaint.d.ts new file mode 100644 index 00000000..58c119ca --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.MultipleGradientPaint.d.ts @@ -0,0 +1,47 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + abstract class MultipleGradientPaint extends java.lang.Object { + /** + * Returns a copy of the array of floats used by this gradient + * to calculate color distribution. + * The returned array always has 0 as its first value and 1 as its + * last value, with increasing values in between. + */ + // @ts-ignore + public getFractions(): number[]; + /** + * Returns a copy of the array of colors used by this gradient. + * The first color maps to the first value in the fractions array, + * and the last color maps to the last value in the fractions array. + */ + // @ts-ignore + public getColors(): java.awt.Color[]; + /** + * Returns the enumerated type which specifies cycling behavior. + */ + // @ts-ignore + public getCycleMethod(): java.awt.MultipleGradientPaint.CycleMethod; + /** + * Returns the enumerated type which specifies color space for + * interpolation. + */ + // @ts-ignore + public getColorSpace(): java.awt.MultipleGradientPaint.ColorSpaceType; + /** + * Returns a copy of the transform applied to the gradient. + *

+ * Note that if no transform is applied to the gradient + * when it is created, the identity transform is used. + */ + // @ts-ignore + public getTransform(): java.awt.geom.AffineTransform; + /** + * Returns the transparency mode for this {@code Paint} object. + */ + // @ts-ignore + public getTransparency(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.PageAttributes.ColorType.d.ts b/packages/types/dist/typings/jdk/java.awt.PageAttributes.ColorType.d.ts new file mode 100644 index 00000000..34b1cacd --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.PageAttributes.ColorType.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace PageAttributes { + // @ts-ignore + class ColorType extends java.awt.AttributeValue { + // @ts-ignore + public static COLOR: java.awt.PageAttributes.ColorType; + // @ts-ignore + public static MONOCHROME: java.awt.PageAttributes.ColorType; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.PageAttributes.MediaType.d.ts b/packages/types/dist/typings/jdk/java.awt.PageAttributes.MediaType.d.ts new file mode 100644 index 00000000..473a96b3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.PageAttributes.MediaType.d.ts @@ -0,0 +1,304 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace PageAttributes { + // @ts-ignore + class MediaType extends java.awt.AttributeValue { + // @ts-ignore + public static ISO_4A0: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_2A0: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_A0: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_A1: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_A2: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_A3: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_A4: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_A5: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_A6: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_A7: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_A8: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_A9: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_A10: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_B0: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_B1: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_B2: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_B3: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_B4: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_B5: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_B6: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_B7: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_B8: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_B9: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_B10: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static JIS_B0: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static JIS_B1: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static JIS_B2: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static JIS_B3: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static JIS_B4: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static JIS_B5: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static JIS_B6: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static JIS_B7: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static JIS_B8: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static JIS_B9: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static JIS_B10: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_C0: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_C1: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_C2: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_C3: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_C4: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_C5: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_C6: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_C7: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_C8: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_C9: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_C10: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_DESIGNATED_LONG: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static EXECUTIVE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static FOLIO: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static INVOICE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static LEDGER: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static NA_LETTER: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static NA_LEGAL: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static QUARTO: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static A: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static B: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static C: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static D: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static E: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static NA_10X15_ENVELOPE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static NA_10X14_ENVELOPE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static NA_10X13_ENVELOPE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static NA_9X12_ENVELOPE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static NA_9X11_ENVELOPE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static NA_7X9_ENVELOPE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static NA_6X9_ENVELOPE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static NA_NUMBER_9_ENVELOPE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static NA_NUMBER_10_ENVELOPE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static NA_NUMBER_11_ENVELOPE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static NA_NUMBER_12_ENVELOPE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static NA_NUMBER_14_ENVELOPE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static INVITE_ENVELOPE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ITALY_ENVELOPE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static MONARCH_ENVELOPE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static PERSONAL_ENVELOPE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static A0: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static A1: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static A2: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static A3: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static A4: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static A5: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static A6: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static A7: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static A8: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static A9: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static A10: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static B0: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static B1: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static B2: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static B3: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static B4: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_B4_ENVELOPE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static B5: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_B5_ENVELOPE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static B6: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static B7: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static B8: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static B9: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static B10: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static C0: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_C0_ENVELOPE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static C1: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_C1_ENVELOPE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static C2: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_C2_ENVELOPE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static C3: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_C3_ENVELOPE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static C4: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_C4_ENVELOPE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static C5: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_C5_ENVELOPE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static C6: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_C6_ENVELOPE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static C7: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_C7_ENVELOPE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static C8: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_C8_ENVELOPE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static C9: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_C9_ENVELOPE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static C10: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_C10_ENVELOPE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ISO_DESIGNATED_LONG_ENVELOPE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static STATEMENT: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static TABLOID: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static LETTER: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static NOTE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static LEGAL: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ENV_10X15: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ENV_10X14: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ENV_10X13: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ENV_9X12: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ENV_9X11: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ENV_7X9: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ENV_6X9: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ENV_9: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ENV_10: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ENV_11: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ENV_12: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ENV_14: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ENV_INVITE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ENV_ITALY: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ENV_MONARCH: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ENV_PERSONAL: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static INVITE: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static ITALY: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static MONARCH: java.awt.PageAttributes.MediaType; + // @ts-ignore + public static PERSONAL: java.awt.PageAttributes.MediaType; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.PageAttributes.OrientationRequestedType.d.ts b/packages/types/dist/typings/jdk/java.awt.PageAttributes.OrientationRequestedType.d.ts new file mode 100644 index 00000000..dcadd287 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.PageAttributes.OrientationRequestedType.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace PageAttributes { + // @ts-ignore + class OrientationRequestedType extends java.awt.AttributeValue { + // @ts-ignore + public static PORTRAIT: java.awt.PageAttributes.OrientationRequestedType; + // @ts-ignore + public static LANDSCAPE: java.awt.PageAttributes.OrientationRequestedType; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.PageAttributes.OriginType.d.ts b/packages/types/dist/typings/jdk/java.awt.PageAttributes.OriginType.d.ts new file mode 100644 index 00000000..50fa0c60 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.PageAttributes.OriginType.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace PageAttributes { + // @ts-ignore + class OriginType extends java.awt.AttributeValue { + // @ts-ignore + public static PHYSICAL: java.awt.PageAttributes.OriginType; + // @ts-ignore + public static PRINTABLE: java.awt.PageAttributes.OriginType; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.PageAttributes.PrintQualityType.d.ts b/packages/types/dist/typings/jdk/java.awt.PageAttributes.PrintQualityType.d.ts new file mode 100644 index 00000000..ff221af5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.PageAttributes.PrintQualityType.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace PageAttributes { + // @ts-ignore + class PrintQualityType extends java.awt.AttributeValue { + // @ts-ignore + public static HIGH: java.awt.PageAttributes.PrintQualityType; + // @ts-ignore + public static NORMAL: java.awt.PageAttributes.PrintQualityType; + // @ts-ignore + public static DRAFT: java.awt.PageAttributes.PrintQualityType; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.PageAttributes.d.ts b/packages/types/dist/typings/jdk/java.awt.PageAttributes.d.ts new file mode 100644 index 00000000..85a07a8e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.PageAttributes.d.ts @@ -0,0 +1,218 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class PageAttributes extends java.lang.Object { + /** + * Constructs a PageAttributes instance with default values for every + * attribute. + */ + // @ts-ignore + constructor() + /** + * Constructs a PageAttributes instance which is a copy of the supplied + * PageAttributes. + */ + // @ts-ignore + constructor(obj: java.awt.PageAttributes) + /** + * Constructs a PageAttributes instance with the specified values for + * every attribute. + */ + // @ts-ignore + constructor(color: java.awt.PageAttributes.ColorType, media: java.awt.PageAttributes.MediaType, orientationRequested: java.awt.PageAttributes.OrientationRequestedType, origin: java.awt.PageAttributes.OriginType, printQuality: java.awt.PageAttributes.PrintQualityType, printerResolution: number) + /** + * Creates and returns a copy of this PageAttributes. + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Sets all of the attributes of this PageAttributes to the same values as + * the attributes of obj. + */ + // @ts-ignore + public set(obj: java.awt.PageAttributes): void; + /** + * Returns whether pages using these attributes will be rendered in + * color or monochrome. This attribute is updated to the value chosen + * by the user. + */ + // @ts-ignore + public getColor(): java.awt.PageAttributes.ColorType; + /** + * Specifies whether pages using these attributes will be rendered in + * color or monochrome. Not specifying this attribute is equivalent to + * specifying ColorType.MONOCHROME. + */ + // @ts-ignore + public setColor(color: java.awt.PageAttributes.ColorType): void; + /** + * Returns the paper size for pages using these attributes. This + * attribute is updated to the value chosen by the user. + */ + // @ts-ignore + public getMedia(): java.awt.PageAttributes.MediaType; + /** + * Specifies the desired paper size for pages using these attributes. The + * actual paper size will be determined by the limitations of the target + * printer. If an exact match cannot be found, an implementation will + * choose the closest possible match. Not specifying this attribute is + * equivalent to specifying the default size for the default locale. The + * default size for locales in the United States and Canada is + * MediaType.NA_LETTER. The default size for all other locales is + * MediaType.ISO_A4. + */ + // @ts-ignore + public setMedia(media: java.awt.PageAttributes.MediaType): void; + /** + * Sets the paper size for pages using these attributes to the default + * size for the default locale. The default size for locales in the + * United States and Canada is MediaType.NA_LETTER. The default size for + * all other locales is MediaType.ISO_A4. + */ + // @ts-ignore + public setMediaToDefault(): void; + /** + * Returns the print orientation for pages using these attributes. This + * attribute is updated to the value chosen by the user. + */ + // @ts-ignore + public getOrientationRequested(): java.awt.PageAttributes.OrientationRequestedType; + /** + * Specifies the print orientation for pages using these attributes. Not + * specifying the property is equivalent to specifying + * OrientationRequestedType.PORTRAIT. + */ + // @ts-ignore + public setOrientationRequested(orientationRequested: java.awt.PageAttributes.OrientationRequestedType): void; + /** + * Specifies the print orientation for pages using these attributes. + * Specifying 3 denotes portrait. Specifying 4 + * denotes landscape. Specifying any other value will generate an + * IllegalArgumentException. Not specifying the property is equivalent + * to calling setOrientationRequested(OrientationRequestedType.PORTRAIT). + */ + // @ts-ignore + public setOrientationRequested(orientationRequested: number): void; + /** + * Sets the print orientation for pages using these attributes to the + * default. The default orientation is portrait. + */ + // @ts-ignore + public setOrientationRequestedToDefault(): void; + /** + * Returns whether drawing at (0, 0) to pages using these attributes + * draws at the upper-left corner of the physical page, or at the + * upper-left corner of the printable area. (Note that these locations + * could be equivalent.) This attribute cannot be modified by, + * and is not subject to any limitations of, the implementation or the + * target printer. + */ + // @ts-ignore + public getOrigin(): java.awt.PageAttributes.OriginType; + /** + * Specifies whether drawing at (0, 0) to pages using these attributes + * draws at the upper-left corner of the physical page, or at the + * upper-left corner of the printable area. (Note that these locations + * could be equivalent.) Not specifying the property is equivalent to + * specifying OriginType.PHYSICAL. + */ + // @ts-ignore + public setOrigin(origin: java.awt.PageAttributes.OriginType): void; + /** + * Returns the print quality for pages using these attributes. This + * attribute is updated to the value chosen by the user. + */ + // @ts-ignore + public getPrintQuality(): java.awt.PageAttributes.PrintQualityType; + /** + * Specifies the print quality for pages using these attributes. Not + * specifying the property is equivalent to specifying + * PrintQualityType.NORMAL. + */ + // @ts-ignore + public setPrintQuality(printQuality: java.awt.PageAttributes.PrintQualityType): void; + /** + * Specifies the print quality for pages using these attributes. + * Specifying 3 denotes draft. Specifying 4 + * denotes normal. Specifying 5 denotes high. Specifying + * any other value will generate an IllegalArgumentException. Not + * specifying the property is equivalent to calling + * setPrintQuality(PrintQualityType.NORMAL). + */ + // @ts-ignore + public setPrintQuality(printQuality: number): void; + /** + * Sets the print quality for pages using these attributes to the default. + * The default print quality is normal. + */ + // @ts-ignore + public setPrintQualityToDefault(): void; + /** + * Returns the print resolution for pages using these attributes. + * Index 0 of the array specifies the cross feed direction resolution + * (typically the horizontal resolution). Index 1 of the array specifies + * the feed direction resolution (typically the vertical resolution). + * Index 2 of the array specifies whether the resolutions are in dots per + * inch or dots per centimeter. 3 denotes dots per inch. + * 4 denotes dots per centimeter. + */ + // @ts-ignore + public getPrinterResolution(): number[]; + /** + * Specifies the desired print resolution for pages using these attributes. + * The actual resolution will be determined by the limitations of the + * implementation and the target printer. Index 0 of the array specifies + * the cross feed direction resolution (typically the horizontal + * resolution). Index 1 of the array specifies the feed direction + * resolution (typically the vertical resolution). Index 2 of the array + * specifies whether the resolutions are in dots per inch or dots per + * centimeter. 3 denotes dots per inch. 4 + * denotes dots per centimeter. Note that the 1.1 printing implementation + * (Toolkit.getPrintJob) requires that the feed and cross feed resolutions + * be the same. Not specifying the property is equivalent to calling + * setPrinterResolution(72). + */ + // @ts-ignore + public setPrinterResolution(printerResolution: number): void; + /** + * Specifies the desired cross feed and feed print resolutions in dots per + * inch for pages using these attributes. The same value is used for both + * resolutions. The actual resolutions will be determined by the + * limitations of the implementation and the target printer. Not + * specifying the property is equivalent to specifying 72. + */ + // @ts-ignore + public setPrinterResolution(printerResolution: number): void; + /** + * Sets the printer resolution for pages using these attributes to the + * default. The default is 72 dpi for both the feed and cross feed + * resolutions. + */ + // @ts-ignore + public setPrinterResolutionToDefault(): void; + /** + * Determines whether two PageAttributes are equal to each other. + *

+ * Two PageAttributes are equal if and only if each of their attributes are + * equal. Attributes of enumeration type are equal if and only if the + * fields refer to the same unique enumeration object. This means that + * an aliased media is equal to its underlying unique media. Printer + * resolutions are equal if and only if the feed resolution, cross feed + * resolution, and units are equal. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a hash code value for this PageAttributes. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns a string representation of this PageAttributes. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Paint.d.ts b/packages/types/dist/typings/jdk/java.awt.Paint.d.ts new file mode 100644 index 00000000..5fed4b97 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Paint.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + interface Paint { + /** + * Creates and returns a {@link PaintContext} used to + * generate the color pattern. + * The arguments to this method convey additional information + * about the rendering operation that may be + * used or ignored on various implementations of the {@code Paint} interface. + * A caller must pass non-{@code null} values for all of the arguments + * except for the {@code ColorModel} argument which may be {@code null} to + * indicate that no specific {@code ColorModel} type is preferred. + * Implementations of the {@code Paint} interface are allowed to use or ignore + * any of the arguments as makes sense for their function, and are + * not constrained to use the specified {@code ColorModel} for the returned + * {@code PaintContext}, even if it is not {@code null}. + * Implementations are allowed to throw {@code NullPointerException} for + * any {@code null} argument other than the {@code ColorModel} argument, + * but are not required to do so. + */ + // @ts-ignore + createContext(cm: java.awt.image.ColorModel, deviceBounds: java.awt.Rectangle, userBounds: java.awt.geom.Rectangle2D, xform: java.awt.geom.AffineTransform, hints: java.awt.RenderingHints): java.awt.PaintContext; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.PaintContext.d.ts b/packages/types/dist/typings/jdk/java.awt.PaintContext.d.ts new file mode 100644 index 00000000..af6b8e2c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.PaintContext.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + interface PaintContext { + /** + * Releases the resources allocated for the operation. + */ + // @ts-ignore + dispose(): void; + /** + * Returns the ColorModel of the output. Note that + * this ColorModel might be different from the hint + * specified in the + * {@link Paint#createContext(ColorModel, Rectangle, Rectangle2D, + * AffineTransform, RenderingHints) createContext} method of + * Paint. Not all PaintContext objects are + * capable of generating color patterns in an arbitrary + * ColorModel. + */ + // @ts-ignore + getColorModel(): java.awt.image.ColorModel; + /** + * Returns a Raster containing the colors generated for + * the graphics operation. + */ + // @ts-ignore + getRaster(x: number, y: number, w: number, h: number): java.awt.image.Raster; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Panel.AccessibleAWTPanel.d.ts b/packages/types/dist/typings/jdk/java.awt.Panel.AccessibleAWTPanel.d.ts new file mode 100644 index 00000000..341c4672 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Panel.AccessibleAWTPanel.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace Panel { + // @ts-ignore + protected class AccessibleAWTPanel extends java.awt.Container.AccessibleAWTContainer { + // @ts-ignore + constructor() + /** + * Get the role of this object. + */ + // @ts-ignore + public getAccessibleRole(): any /*javax.accessibility.AccessibleRole*/; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Panel.d.ts b/packages/types/dist/typings/jdk/java.awt.Panel.d.ts new file mode 100644 index 00000000..b3748072 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Panel.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class Panel extends java.awt.Container { + /** + * Creates a new panel using the default layout manager. + * The default layout manager for all panels is the + * FlowLayout class. + */ + // @ts-ignore + constructor() + /** + * Creates a new panel with the specified layout manager. + */ + // @ts-ignore + constructor(layout: java.awt.LayoutManager) + /** + * Creates the Panel's peer. The peer allows you to modify the + * appearance of the panel without changing its functionality. + */ + // @ts-ignore + public addNotify(): void; + /** + * Gets the AccessibleContext associated with this Panel. + * For panels, the AccessibleContext takes the form of an + * AccessibleAWTPanel. + * A new AccessibleAWTPanel instance is created if necessary. + */ + // @ts-ignore + public getAccessibleContext(): any /*javax.accessibility.AccessibleContext*/; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Point.d.ts b/packages/types/dist/typings/jdk/java.awt.Point.d.ts new file mode 100644 index 00000000..5ae602b6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Point.d.ts @@ -0,0 +1,105 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class Point extends java.awt.geom.Point2D { + /** + * Constructs and initializes a point at the origin + * (0, 0) of the coordinate space. + */ + // @ts-ignore + constructor() + /** + * Constructs and initializes a point with the same location as + * the specified Point object. + */ + // @ts-ignore + constructor(p: java.awt.Point) + /** + * Constructs and initializes a point at the specified + * {@code (x,y)} location in the coordinate space. + */ + // @ts-ignore + constructor(x: number, y: number) + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getX(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getY(): number; + /** + * Returns the location of this point. + * This method is included for completeness, to parallel the + * getLocation method of Component. + */ + // @ts-ignore + public getLocation(): java.awt.Point; + /** + * Sets the location of the point to the specified location. + * This method is included for completeness, to parallel the + * setLocation method of Component. + */ + // @ts-ignore + public setLocation(p: java.awt.Point): void; + /** + * Changes the point to have the specified location. + *

+ * This method is included for completeness, to parallel the + * setLocation method of Component. + * Its behavior is identical with move(int, int). + */ + // @ts-ignore + public setLocation(x: number, y: number): void; + /** + * Sets the location of this point to the specified double coordinates. + * The double values will be rounded to integer values. + * Any number smaller than Integer.MIN_VALUE + * will be reset to MIN_VALUE, and any number + * larger than Integer.MAX_VALUE will be + * reset to MAX_VALUE. + */ + // @ts-ignore + public setLocation(x: number, y: number): void; + /** + * Moves this point to the specified location in the + * {@code (x,y)} coordinate plane. This method + * is identical with setLocation(int, int). + */ + // @ts-ignore + public move(x: number, y: number): void; + /** + * Translates this point, at location {@code (x,y)}, + * by {@code dx} along the {@code x} axis and {@code dy} + * along the {@code y} axis so that it now represents the point + * {@code (x+dx,y+dy)}. + */ + // @ts-ignore + public translate(dx: number, dy: number): void; + /** + * Determines whether or not two points are equal. Two instances of + * Point2D are equal if the values of their + * x and y member fields, representing + * their position in the coordinate space, are the same. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a string representation of this point and its location + * in the {@code (x,y)} coordinate space. This method is + * intended to be used only for debugging purposes, and the content + * and format of the returned string may vary between implementations. + * The returned string may be empty but may not be null. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.PointerInfo.d.ts b/packages/types/dist/typings/jdk/java.awt.PointerInfo.d.ts new file mode 100644 index 00000000..848f8a97 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.PointerInfo.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class PointerInfo extends java.lang.Object { + /** + * Returns the {@code GraphicsDevice} where the mouse pointer was at the + * moment this {@code PointerInfo} was created. + */ + // @ts-ignore + public getDevice(): java.awt.GraphicsDevice; + /** + * Returns the {@code Point} that represents the coordinates of the pointer + * on the screen. See {@link MouseInfo#getPointerInfo} for more information + * about coordinate calculation for multiscreen systems. + */ + // @ts-ignore + public getLocation(): java.awt.Point; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Polygon.d.ts b/packages/types/dist/typings/jdk/java.awt.Polygon.d.ts new file mode 100644 index 00000000..491af173 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Polygon.d.ts @@ -0,0 +1,161 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class Polygon extends java.lang.Object { + /** + * Creates an empty polygon. + */ + // @ts-ignore + constructor() + /** + * Constructs and initializes a Polygon from the specified + * parameters. + */ + // @ts-ignore + constructor(xpoints: number, ypoints: number, npoints: number) + // @ts-ignore + public npoints: number; + // @ts-ignore + public xpoints: number[]; + // @ts-ignore + public ypoints: number[]; + // @ts-ignore + protected bounds: java.awt.Rectangle; + /** + * Resets this Polygon object to an empty polygon. + * The coordinate arrays and the data in them are left untouched + * but the number of points is reset to zero to mark the old + * vertex data as invalid and to start accumulating new vertex + * data at the beginning. + * All internally-cached data relating to the old vertices + * are discarded. + * Note that since the coordinate arrays from before the reset + * are reused, creating a new empty Polygon might + * be more memory efficient than resetting the current one if + * the number of vertices in the new polygon data is significantly + * smaller than the number of vertices in the data from before the + * reset. + */ + // @ts-ignore + public reset(): void; + /** + * Invalidates or flushes any internally-cached data that depends + * on the vertex coordinates of this Polygon. + * This method should be called after any direct manipulation + * of the coordinates in the xpoints or + * ypoints arrays to avoid inconsistent results + * from methods such as getBounds or contains + * that might cache data from earlier computations relating to + * the vertex coordinates. + */ + // @ts-ignore + public invalidate(): void; + /** + * Translates the vertices of the Polygon by + * deltaX along the x axis and by + * deltaY along the y axis. + */ + // @ts-ignore + public translate(deltaX: number, deltaY: number): void; + /** + * Appends the specified coordinates to this Polygon. + *

+ * If an operation that calculates the bounding box of this + * Polygon has already been performed, such as + * getBounds or contains, then this + * method updates the bounding box. + */ + // @ts-ignore + public addPoint(x: number, y: number): void; + /** + * Gets the bounding box of this Polygon. + * The bounding box is the smallest {@link Rectangle} whose + * sides are parallel to the x and y axes of the + * coordinate space, and can completely contain the Polygon. + */ + // @ts-ignore + public getBounds(): java.awt.Rectangle; + /** + * Returns the bounds of this Polygon. + */ + // @ts-ignore + public getBoundingBox(): java.awt.Rectangle; + /** + * Determines whether the specified {@link Point} is inside this + * Polygon. + */ + // @ts-ignore + public contains(p: java.awt.Point): boolean; + /** + * Determines whether the specified coordinates are inside this + * Polygon. + *

+ */ + // @ts-ignore + public contains(x: number, y: number): boolean; + /** + * Determines whether the specified coordinates are contained in this + * Polygon. + */ + // @ts-ignore + public inside(x: number, y: number): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getBounds2D(): java.awt.geom.Rectangle2D; + /** + * {@inheritDoc} + */ + // @ts-ignore + public contains(x: number, y: number): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public contains(p: java.awt.geom.Point2D): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public intersects(x: number, y: number, w: number, h: number): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public intersects(r: java.awt.geom.Rectangle2D): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public contains(x: number, y: number, w: number, h: number): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public contains(r: java.awt.geom.Rectangle2D): boolean; + /** + * Returns an iterator object that iterates along the boundary of this + * Polygon and provides access to the geometry + * of the outline of this Polygon. An optional + * {@link AffineTransform} can be specified so that the coordinates + * returned in the iteration are transformed accordingly. + */ + // @ts-ignore + public getPathIterator(at: java.awt.geom.AffineTransform): java.awt.geom.PathIterator; + /** + * Returns an iterator object that iterates along the boundary of + * the Shape and provides access to the geometry of the + * outline of the Shape. Only SEG_MOVETO, SEG_LINETO, and + * SEG_CLOSE point types are returned by the iterator. + * Since polygons are already flat, the flatness parameter + * is ignored. An optional AffineTransform can be specified + * in which case the coordinates returned in the iteration are transformed + * accordingly. + */ + // @ts-ignore + public getPathIterator(at: java.awt.geom.AffineTransform, flatness: number): java.awt.geom.PathIterator; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.PopupMenu.AccessibleAWTPopupMenu.d.ts b/packages/types/dist/typings/jdk/java.awt.PopupMenu.AccessibleAWTPopupMenu.d.ts new file mode 100644 index 00000000..db9c431e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.PopupMenu.AccessibleAWTPopupMenu.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace PopupMenu { + // @ts-ignore + protected class AccessibleAWTPopupMenu extends java.awt.Menu.AccessibleAWTMenu { + // @ts-ignore + constructor() + /** + * Get the role of this object. + */ + // @ts-ignore + public getAccessibleRole(): any /*javax.accessibility.AccessibleRole*/; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.PopupMenu.d.ts b/packages/types/dist/typings/jdk/java.awt.PopupMenu.d.ts new file mode 100644 index 00000000..497a78e4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.PopupMenu.d.ts @@ -0,0 +1,49 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class PopupMenu extends java.awt.Menu { + /** + * Creates a new popup menu with an empty name. + */ + // @ts-ignore + constructor() + /** + * Creates a new popup menu with the specified name. + */ + // @ts-ignore + constructor(label: string) + /** + * {@inheritDoc} + */ + // @ts-ignore + public getParent(): java.awt.MenuContainer; + /** + * Creates the popup menu's peer. + * The peer allows us to change the appearance of the popup menu without + * changing any of the popup menu's functionality. + */ + // @ts-ignore + public addNotify(): void; + /** + * Shows the popup menu at the x, y position relative to an origin + * component. + * The origin component must be contained within the component + * hierarchy of the popup menu's parent. Both the origin and the parent + * must be showing on the screen for this method to be valid. + *

+ * If this PopupMenu is being used as a Menu + * (i.e., it has a non-Component parent), + * then you cannot call this method on the PopupMenu. + */ + // @ts-ignore + public show(origin: java.awt.Component, x: number, y: number): void; + /** + * Gets the AccessibleContext associated with this + * PopupMenu. + */ + // @ts-ignore + public getAccessibleContext(): any /*javax.accessibility.AccessibleContext*/; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.PrintGraphics.d.ts b/packages/types/dist/typings/jdk/java.awt.PrintGraphics.d.ts new file mode 100644 index 00000000..ebf9fcc2 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.PrintGraphics.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + interface PrintGraphics { + /** + * Returns the PrintJob object from which this PrintGraphics + * object originated. + */ + // @ts-ignore + getPrintJob(): java.awt.PrintJob; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.PrintJob.d.ts b/packages/types/dist/typings/jdk/java.awt.PrintJob.d.ts new file mode 100644 index 00000000..b6c4f27d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.PrintJob.d.ts @@ -0,0 +1,47 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + abstract class PrintJob extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Gets a Graphics object that will draw to the next page. + * The page is sent to the printer when the graphics + * object is disposed. This graphics object will also implement + * the PrintGraphics interface. + */ + // @ts-ignore + public abstract getGraphics(): java.awt.Graphics; + /** + * Returns the dimensions of the page in pixels. + * The resolution of the page is chosen so that it + * is similar to the screen resolution. + */ + // @ts-ignore + public abstract getPageDimension(): java.awt.Dimension; + /** + * Returns the resolution of the page in pixels per inch. + * Note that this doesn't have to correspond to the physical + * resolution of the printer. + */ + // @ts-ignore + public abstract getPageResolution(): number; + /** + * Returns true if the last page will be printed first. + */ + // @ts-ignore + public abstract lastPageFirst(): boolean; + /** + * Ends the print job and does any necessary cleanup. + */ + // @ts-ignore + public abstract end(): void; + /** + * Ends this print job once it is no longer referenced. + */ + // @ts-ignore + public finalize(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.RadialGradientPaint.d.ts b/packages/types/dist/typings/jdk/java.awt.RadialGradientPaint.d.ts new file mode 100644 index 00000000..855921a6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.RadialGradientPaint.d.ts @@ -0,0 +1,107 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class RadialGradientPaint extends java.awt.MultipleGradientPaint { + /** + * Constructs a {@code RadialGradientPaint} with a default + * {@code NO_CYCLE} repeating method and {@code SRGB} color space, + * using the center as the focus point. + */ + // @ts-ignore + constructor(cx: number, cy: number, radius: number, fractions: number, colors: java.awt.Color) + /** + * Constructs a {@code RadialGradientPaint} with a default + * {@code NO_CYCLE} repeating method and {@code SRGB} color space, + * using the center as the focus point. + */ + // @ts-ignore + constructor(center: java.awt.geom.Point2D, radius: number, fractions: number, colors: java.awt.Color) + /** + * Constructs a {@code RadialGradientPaint} with a default + * {@code SRGB} color space, using the center as the focus point. + */ + // @ts-ignore + constructor(cx: number, cy: number, radius: number, fractions: number, colors: java.awt.Color, cycleMethod: java.awt.MultipleGradientPaint.CycleMethod) + /** + * Constructs a {@code RadialGradientPaint} with a default + * {@code SRGB} color space, using the center as the focus point. + */ + // @ts-ignore + constructor(center: java.awt.geom.Point2D, radius: number, fractions: number, colors: java.awt.Color, cycleMethod: java.awt.MultipleGradientPaint.CycleMethod) + /** + * Constructs a {@code RadialGradientPaint} with a default + * {@code SRGB} color space. + */ + // @ts-ignore + constructor(cx: number, cy: number, radius: number, fx: number, fy: number, fractions: number, colors: java.awt.Color, cycleMethod: java.awt.MultipleGradientPaint.CycleMethod) + /** + * Constructs a {@code RadialGradientPaint} with a default + * {@code SRGB} color space. + */ + // @ts-ignore + constructor(center: java.awt.geom.Point2D, radius: number, focus: java.awt.geom.Point2D, fractions: number, colors: java.awt.Color, cycleMethod: java.awt.MultipleGradientPaint.CycleMethod) + /** + * Constructs a {@code RadialGradientPaint}. + */ + // @ts-ignore + constructor(center: java.awt.geom.Point2D, radius: number, focus: java.awt.geom.Point2D, fractions: number, colors: java.awt.Color, cycleMethod: java.awt.MultipleGradientPaint.CycleMethod, colorSpace: java.awt.MultipleGradientPaint.ColorSpaceType, gradientTransform: java.awt.geom.AffineTransform) + /** + * Constructs a {@code RadialGradientPaint} with a default + * {@code SRGB} color space. + * The gradient circle of the {@code RadialGradientPaint} is defined + * by the given bounding box. + *

+ * This constructor is a more convenient way to express the + * following (equivalent) code:
+ *

+             * double gw = gradientBounds.getWidth();
+             * double gh = gradientBounds.getHeight();
+             * double cx = gradientBounds.getCenterX();
+             * double cy = gradientBounds.getCenterY();
+             * Point2D center = new Point2D.Double(cx, cy);
+             * AffineTransform gradientTransform = new AffineTransform();
+             * gradientTransform.translate(cx, cy);
+             * gradientTransform.scale(gw / 2, gh / 2);
+             * gradientTransform.translate(-cx, -cy);
+             * RadialGradientPaint gp =
+             * new RadialGradientPaint(center, 1.0f, center,
+             * fractions, colors,
+             * cycleMethod,
+             * ColorSpaceType.SRGB,
+             * gradientTransform);
+             * 
+ */ + // @ts-ignore + constructor(gradientBounds: java.awt.geom.Rectangle2D, fractions: number, colors: java.awt.Color, cycleMethod: java.awt.MultipleGradientPaint.CycleMethod) + /** + * Creates and returns a {@link PaintContext} used to + * generate a circular radial color gradient pattern. + * See the description of the {@link Paint#createContext createContext} method + * for information on null parameter handling. + */ + // @ts-ignore + public createContext(cm: java.awt.image.ColorModel, deviceBounds: java.awt.Rectangle, userBounds: java.awt.geom.Rectangle2D, transform: java.awt.geom.AffineTransform, hints: java.awt.RenderingHints): java.awt.PaintContext; + /** + * Returns a copy of the center point of the radial gradient. + */ + // @ts-ignore + public getCenterPoint(): java.awt.geom.Point2D; + /** + * Returns a copy of the focus point of the radial gradient. + * Note that if the focus point specified when the radial gradient + * was constructed lies outside of the radius of the circle, this + * method will still return the original focus point even though + * the rendering may center the rings of color on a different + * point that lies inside the radius. + */ + // @ts-ignore + public getFocusPoint(): java.awt.geom.Point2D; + /** + * Returns the radius of the circle defining the radial gradient. + */ + // @ts-ignore + public getRadius(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Rectangle.d.ts b/packages/types/dist/typings/jdk/java.awt.Rectangle.d.ts new file mode 100644 index 00000000..5032cf5c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Rectangle.d.ts @@ -0,0 +1,420 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class Rectangle extends java.awt.geom.Rectangle2D { + /** + * Constructs a new Rectangle whose upper-left corner + * is at (0, 0) in the coordinate space, and whose width and + * height are both zero. + */ + // @ts-ignore + constructor() + /** + * Constructs a new Rectangle, initialized to match + * the values of the specified Rectangle. + */ + // @ts-ignore + constructor(r: java.awt.Rectangle) + /** + * Constructs a new Rectangle whose upper-left corner is + * specified as + * {@code (x,y)} and whose width and height + * are specified by the arguments of the same name. + */ + // @ts-ignore + constructor(x: number, y: number, width: number, height: number) + /** + * Constructs a new Rectangle whose upper-left corner + * is at (0, 0) in the coordinate space, and whose width and + * height are specified by the arguments of the same name. + */ + // @ts-ignore + constructor(width: number, height: number) + /** + * Constructs a new Rectangle whose upper-left corner is + * specified by the {@link Point} argument, and + * whose width and height are specified by the + * {@link Dimension} argument. + */ + // @ts-ignore + constructor(p: java.awt.Point, d: java.awt.Dimension) + /** + * Constructs a new Rectangle whose upper-left corner is the + * specified Point, and whose width and height are both zero. + */ + // @ts-ignore + constructor(p: java.awt.Point) + /** + * Constructs a new Rectangle whose top left corner is + * (0, 0) and whose width and height are specified + * by the Dimension argument. + */ + // @ts-ignore + constructor(d: java.awt.Dimension) + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public width: number; + // @ts-ignore + public height: number; + /** + * Returns the X coordinate of the bounding Rectangle in + * double precision. + */ + // @ts-ignore + public getX(): number; + /** + * Returns the Y coordinate of the bounding Rectangle in + * double precision. + */ + // @ts-ignore + public getY(): number; + /** + * Returns the width of the bounding Rectangle in + * double precision. + */ + // @ts-ignore + public getWidth(): number; + /** + * Returns the height of the bounding Rectangle in + * double precision. + */ + // @ts-ignore + public getHeight(): number; + /** + * Gets the bounding Rectangle of this Rectangle. + *

+ * This method is included for completeness, to parallel the + * getBounds method of + * {@link Component}. + */ + // @ts-ignore + public getBounds(): java.awt.Rectangle; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getBounds2D(): java.awt.geom.Rectangle2D; + /** + * Sets the bounding Rectangle of this Rectangle + * to match the specified Rectangle. + *

+ * This method is included for completeness, to parallel the + * setBounds method of Component. + */ + // @ts-ignore + public setBounds(r: java.awt.Rectangle): void; + /** + * Sets the bounding Rectangle of this + * Rectangle to the specified + * x, y, width, + * and height. + *

+ * This method is included for completeness, to parallel the + * setBounds method of Component. + */ + // @ts-ignore + public setBounds(x: number, y: number, width: number, height: number): void; + /** + * Sets the bounds of this {@code Rectangle} to the integer bounds + * which encompass the specified {@code x}, {@code y}, {@code width}, + * and {@code height}. + * If the parameters specify a {@code Rectangle} that exceeds the + * maximum range of integers, the result will be the best + * representation of the specified {@code Rectangle} intersected + * with the maximum integer bounds. + */ + // @ts-ignore + public setRect(x: number, y: number, width: number, height: number): void; + /** + * Sets the bounding Rectangle of this + * Rectangle to the specified + * x, y, width, + * and height. + *

+ */ + // @ts-ignore + public reshape(x: number, y: number, width: number, height: number): void; + /** + * Returns the location of this Rectangle. + *

+ * This method is included for completeness, to parallel the + * getLocation method of Component. + */ + // @ts-ignore + public getLocation(): java.awt.Point; + /** + * Moves this Rectangle to the specified location. + *

+ * This method is included for completeness, to parallel the + * setLocation method of Component. + */ + // @ts-ignore + public setLocation(p: java.awt.Point): void; + /** + * Moves this Rectangle to the specified location. + *

+ * This method is included for completeness, to parallel the + * setLocation method of Component. + */ + // @ts-ignore + public setLocation(x: number, y: number): void; + /** + * Moves this Rectangle to the specified location. + *

+ */ + // @ts-ignore + public move(x: number, y: number): void; + /** + * Translates this Rectangle the indicated distance, + * to the right along the X coordinate axis, and + * downward along the Y coordinate axis. + */ + // @ts-ignore + public translate(dx: number, dy: number): void; + /** + * Gets the size of this Rectangle, represented by + * the returned Dimension. + *

+ * This method is included for completeness, to parallel the + * getSize method of Component. + */ + // @ts-ignore + public getSize(): java.awt.Dimension; + /** + * Sets the size of this Rectangle to match the + * specified Dimension. + *

+ * This method is included for completeness, to parallel the + * setSize method of Component. + */ + // @ts-ignore + public setSize(d: java.awt.Dimension): void; + /** + * Sets the size of this Rectangle to the specified + * width and height. + *

+ * This method is included for completeness, to parallel the + * setSize method of Component. + */ + // @ts-ignore + public setSize(width: number, height: number): void; + /** + * Sets the size of this Rectangle to the specified + * width and height. + *

+ */ + // @ts-ignore + public resize(width: number, height: number): void; + /** + * Checks whether or not this Rectangle contains the + * specified Point. + */ + // @ts-ignore + public contains(p: java.awt.Point): boolean; + /** + * Checks whether or not this Rectangle contains the + * point at the specified location {@code (x,y)}. + */ + // @ts-ignore + public contains(x: number, y: number): boolean; + /** + * Checks whether or not this Rectangle entirely contains + * the specified Rectangle. + */ + // @ts-ignore + public contains(r: java.awt.Rectangle): boolean; + /** + * Checks whether this Rectangle entirely contains + * the Rectangle + * at the specified location {@code (X,Y)} with the + * specified dimensions {@code (W,H)}. + */ + // @ts-ignore + public contains(X: number, Y: number, W: number, H: number): boolean; + /** + * Checks whether or not this Rectangle contains the + * point at the specified location {@code (X,Y)}. + */ + // @ts-ignore + public inside(X: number, Y: number): boolean; + /** + * Determines whether or not this Rectangle and the specified + * Rectangle intersect. Two rectangles intersect if + * their intersection is nonempty. + */ + // @ts-ignore + public intersects(r: java.awt.Rectangle): boolean; + /** + * Computes the intersection of this Rectangle with the + * specified Rectangle. Returns a new Rectangle + * that represents the intersection of the two rectangles. + * If the two rectangles do not intersect, the result will be + * an empty rectangle. + */ + // @ts-ignore + public intersection(r: java.awt.Rectangle): java.awt.Rectangle; + /** + * Computes the union of this Rectangle with the + * specified Rectangle. Returns a new + * Rectangle that + * represents the union of the two rectangles. + *

+ * If either {@code Rectangle} has any dimension less than zero + * the rules for non-existant rectangles + * apply. + * If only one has a dimension less than zero, then the result + * will be a copy of the other {@code Rectangle}. + * If both have dimension less than zero, then the result will + * have at least one dimension less than zero. + *

+ * If the resulting {@code Rectangle} would have a dimension + * too large to be expressed as an {@code int}, the result + * will have a dimension of {@code Integer.MAX_VALUE} along + * that dimension. + */ + // @ts-ignore + public union(r: java.awt.Rectangle): java.awt.Rectangle; + /** + * Adds a point, specified by the integer arguments {@code newx,newy} + * to the bounds of this {@code Rectangle}. + *

+ * If this {@code Rectangle} has any dimension less than zero, + * the rules for non-existant + * rectangles apply. + * In that case, the new bounds of this {@code Rectangle} will + * have a location equal to the specified coordinates and + * width and height equal to zero. + *

+ * After adding a point, a call to contains with the + * added point as an argument does not necessarily return + * true. The contains method does not + * return true for points on the right or bottom + * edges of a Rectangle. Therefore, if the added point + * falls on the right or bottom edge of the enlarged + * Rectangle, contains returns + * false for that point. + * If the specified point must be contained within the new + * {@code Rectangle}, a 1x1 rectangle should be added instead: + *

+             * r.add(newx, newy, 1, 1);
+             * 
+ */ + // @ts-ignore + public add(newx: number, newy: number): void; + /** + * Adds the specified {@code Point} to the bounds of this + * {@code Rectangle}. + *

+ * If this {@code Rectangle} has any dimension less than zero, + * the rules for non-existant + * rectangles apply. + * In that case, the new bounds of this {@code Rectangle} will + * have a location equal to the coordinates of the specified + * {@code Point} and width and height equal to zero. + *

+ * After adding a Point, a call to contains + * with the added Point as an argument does not + * necessarily return true. The contains + * method does not return true for points on the right + * or bottom edges of a Rectangle. Therefore if the added + * Point falls on the right or bottom edge of the + * enlarged Rectangle, contains returns + * false for that Point. + * If the specified point must be contained within the new + * {@code Rectangle}, a 1x1 rectangle should be added instead: + *

+             * r.add(pt.x, pt.y, 1, 1);
+             * 
+ */ + // @ts-ignore + public add(pt: java.awt.Point): void; + /** + * Adds a Rectangle to this Rectangle. + * The resulting Rectangle is the union of the two + * rectangles. + *

+ * If either {@code Rectangle} has any dimension less than 0, the + * result will have the dimensions of the other {@code Rectangle}. + * If both {@code Rectangle}s have at least one dimension less + * than 0, the result will have at least one dimension less than 0. + *

+ * If either {@code Rectangle} has one or both dimensions equal + * to 0, the result along those axes with 0 dimensions will be + * equivalent to the results obtained by adding the corresponding + * origin coordinate to the result rectangle along that axis, + * similar to the operation of the {@link #add(Point)} method, + * but contribute no further dimension beyond that. + *

+ * If the resulting {@code Rectangle} would have a dimension + * too large to be expressed as an {@code int}, the result + * will have a dimension of {@code Integer.MAX_VALUE} along + * that dimension. + */ + // @ts-ignore + public add(r: java.awt.Rectangle): void; + /** + * Resizes the Rectangle both horizontally and vertically. + *

+ * This method modifies the Rectangle so that it is + * h units larger on both the left and right side, + * and v units larger at both the top and bottom. + *

+ * The new Rectangle has {@code (x - h, y - v)} + * as its upper-left corner, + * width of {@code (width + 2h)}, + * and a height of {@code (height + 2v)}. + *

+ * If negative values are supplied for h and + * v, the size of the Rectangle + * decreases accordingly. + * The {@code grow} method will check for integer overflow + * and underflow, but does not check whether the resulting + * values of {@code width} and {@code height} grow + * from negative to non-negative or shrink from non-negative + * to negative. + */ + // @ts-ignore + public grow(h: number, v: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public outcode(x: number, y: number): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public createIntersection(r: java.awt.geom.Rectangle2D): java.awt.geom.Rectangle2D; + /** + * {@inheritDoc} + */ + // @ts-ignore + public createUnion(r: java.awt.geom.Rectangle2D): java.awt.geom.Rectangle2D; + /** + * Checks whether two rectangles are equal. + *

+ * The result is true if and only if the argument is not + * null and is a Rectangle object that has the + * same upper-left corner, width, and height as + * this Rectangle. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a String representing this + * Rectangle and its values. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.RenderingHints.Key.d.ts b/packages/types/dist/typings/jdk/java.awt.RenderingHints.Key.d.ts new file mode 100644 index 00000000..a3091dea --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.RenderingHints.Key.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace RenderingHints { + // @ts-ignore + abstract class Key extends java.lang.Object { + /** + * Construct a key using the indicated private key. Each + * subclass of Key maintains its own unique domain of integer + * keys. No two objects with the same integer key and of the + * same specific subclass can be constructed. An exception + * will be thrown if an attempt is made to construct another + * object of a given class with the same integer key as a + * pre-existing instance of that subclass of Key. + */ + // @ts-ignore + constructor(privatekey: number) + /** + * Returns true if the specified object is a valid value + * for this Key. + */ + // @ts-ignore + public abstract isCompatibleValue(val: java.lang.Object): boolean; + /** + * Returns the private integer key that the subclass + * instantiated this Key with. + */ + // @ts-ignore + protected intKey(): number; + /** + * The hash code for all Key objects will be the same as the + * system identity code of the object as defined by the + * System.identityHashCode() method. + */ + // @ts-ignore + public hashCode(): number; + /** + * The equals method for all Key objects will return the same + * result as the equality operator '=='. + */ + // @ts-ignore + public equals(o: java.lang.Object): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.RenderingHints.d.ts b/packages/types/dist/typings/jdk/java.awt.RenderingHints.d.ts new file mode 100644 index 00000000..b4c65500 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.RenderingHints.d.ts @@ -0,0 +1,277 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class RenderingHints extends java.lang.Object { + /** + * Constructs a new object with keys and values initialized + * from the specified Map object which may be null. + */ + // @ts-ignore + constructor(init: java.util.Map) + /** + * Constructs a new object with the specified key/value pair. + */ + // @ts-ignore + constructor(key: java.awt.RenderingHints.Key, value: java.lang.Object) + // @ts-ignore + public static KEY_ANTIALIASING: java.awt.RenderingHints.Key; + // @ts-ignore + public static VALUE_ANTIALIAS_ON: java.lang.Object; + // @ts-ignore + public static VALUE_ANTIALIAS_OFF: java.lang.Object; + // @ts-ignore + public static VALUE_ANTIALIAS_DEFAULT: java.lang.Object; + // @ts-ignore + public static KEY_RENDERING: java.awt.RenderingHints.Key; + // @ts-ignore + public static VALUE_RENDER_SPEED: java.lang.Object; + // @ts-ignore + public static VALUE_RENDER_QUALITY: java.lang.Object; + // @ts-ignore + public static VALUE_RENDER_DEFAULT: java.lang.Object; + // @ts-ignore + public static KEY_DITHERING: java.awt.RenderingHints.Key; + // @ts-ignore + public static VALUE_DITHER_DISABLE: java.lang.Object; + // @ts-ignore + public static VALUE_DITHER_ENABLE: java.lang.Object; + // @ts-ignore + public static VALUE_DITHER_DEFAULT: java.lang.Object; + // @ts-ignore + public static KEY_TEXT_ANTIALIASING: java.awt.RenderingHints.Key; + // @ts-ignore + public static VALUE_TEXT_ANTIALIAS_ON: java.lang.Object; + // @ts-ignore + public static VALUE_TEXT_ANTIALIAS_OFF: java.lang.Object; + // @ts-ignore + public static VALUE_TEXT_ANTIALIAS_DEFAULT: java.lang.Object; + // @ts-ignore + public static VALUE_TEXT_ANTIALIAS_GASP: java.lang.Object; + // @ts-ignore + public static VALUE_TEXT_ANTIALIAS_LCD_HRGB: java.lang.Object; + // @ts-ignore + public static VALUE_TEXT_ANTIALIAS_LCD_HBGR: java.lang.Object; + // @ts-ignore + public static VALUE_TEXT_ANTIALIAS_LCD_VRGB: java.lang.Object; + // @ts-ignore + public static VALUE_TEXT_ANTIALIAS_LCD_VBGR: java.lang.Object; + // @ts-ignore + public static KEY_TEXT_LCD_CONTRAST: java.awt.RenderingHints.Key; + // @ts-ignore + public static KEY_FRACTIONALMETRICS: java.awt.RenderingHints.Key; + // @ts-ignore + public static VALUE_FRACTIONALMETRICS_OFF: java.lang.Object; + // @ts-ignore + public static VALUE_FRACTIONALMETRICS_ON: java.lang.Object; + // @ts-ignore + public static VALUE_FRACTIONALMETRICS_DEFAULT: java.lang.Object; + // @ts-ignore + public static KEY_INTERPOLATION: java.awt.RenderingHints.Key; + // @ts-ignore + public static VALUE_INTERPOLATION_NEAREST_NEIGHBOR: java.lang.Object; + // @ts-ignore + public static VALUE_INTERPOLATION_BILINEAR: java.lang.Object; + // @ts-ignore + public static VALUE_INTERPOLATION_BICUBIC: java.lang.Object; + // @ts-ignore + public static KEY_ALPHA_INTERPOLATION: java.awt.RenderingHints.Key; + // @ts-ignore + public static VALUE_ALPHA_INTERPOLATION_SPEED: java.lang.Object; + // @ts-ignore + public static VALUE_ALPHA_INTERPOLATION_QUALITY: java.lang.Object; + // @ts-ignore + public static VALUE_ALPHA_INTERPOLATION_DEFAULT: java.lang.Object; + // @ts-ignore + public static KEY_COLOR_RENDERING: java.awt.RenderingHints.Key; + // @ts-ignore + public static VALUE_COLOR_RENDER_SPEED: java.lang.Object; + // @ts-ignore + public static VALUE_COLOR_RENDER_QUALITY: java.lang.Object; + // @ts-ignore + public static VALUE_COLOR_RENDER_DEFAULT: java.lang.Object; + // @ts-ignore + public static KEY_STROKE_CONTROL: java.awt.RenderingHints.Key; + // @ts-ignore + public static VALUE_STROKE_DEFAULT: java.lang.Object; + // @ts-ignore + public static VALUE_STROKE_NORMALIZE: java.lang.Object; + // @ts-ignore + public static VALUE_STROKE_PURE: java.lang.Object; + /** + * Returns the number of key-value mappings in this + * RenderingHints. + */ + // @ts-ignore + public size(): number; + /** + * Returns true if this + * RenderingHints contains no key-value mappings. + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * Returns {@code true} if this {@code RenderingHints} + * contains a mapping for the specified key. + */ + // @ts-ignore + public containsKey(key: java.lang.Object): boolean; + /** + * Returns true if this RenderingHints maps one or more keys to the + * specified value. + * More formally, returns true if and only + * if this RenderingHints + * contains at least one mapping to a value v such that + *

+             * (value==null ? v==null : value.equals(v))
+             * 
. + * This operation will probably require time linear in the + * RenderingHints size for most implementations + * of RenderingHints. + */ + // @ts-ignore + public containsValue(value: java.lang.Object): boolean; + /** + * Returns the value to which the specified key is mapped. + */ + // @ts-ignore + public get(key: java.lang.Object): java.lang.Object; + /** + * Maps the specified {@code key} to the specified + * {@code value} in this {@code RenderingHints} object. + * Neither the key nor the value can be {@code null}. + * The value can be retrieved by calling the {@code get} method + * with a key that is equal to the original key. + */ + // @ts-ignore + public put(key: java.lang.Object, value: java.lang.Object): java.lang.Object; + /** + * Adds all of the keys and corresponding values from the specified + * RenderingHints object to this + * RenderingHints object. Keys that are present in + * this RenderingHints object, but not in the specified + * RenderingHints object are not affected. + */ + // @ts-ignore + public add(hints: java.awt.RenderingHints): void; + /** + * Clears this RenderingHints object of all key/value + * pairs. + */ + // @ts-ignore + public clear(): void; + /** + * Removes the key and its corresponding value from this + * {@code RenderingHints} object. This method does nothing if the + * key is not in this {@code RenderingHints} object. + */ + // @ts-ignore + public remove(key: java.lang.Object): java.lang.Object; + /** + * Copies all of the mappings from the specified {@code Map} + * to this {@code RenderingHints}. These mappings replace + * any mappings that this {@code RenderingHints} had for any + * of the keys currently in the specified {@code Map}. + */ + // @ts-ignore + public putAll(m: java.util.Map): void; + /** + * Returns a Set view of the Keys contained in this + * RenderingHints. The Set is backed by the + * RenderingHints, so changes to the + * RenderingHints are reflected in the Set, + * and vice-versa. If the RenderingHints is modified + * while an iteration over the Set is in progress, + * the results of the iteration are undefined. The Set + * supports element removal, which removes the corresponding + * mapping from the RenderingHints, via the + * Iterator.remove, Set.remove, + * removeAll retainAll, and + * clear operations. It does not support + * the add or addAll operations. + */ + // @ts-ignore + public keySet(): java.util.Set; + /** + * Returns a Collection view of the values + * contained in this RenderinHints. + * The Collection is backed by the + * RenderingHints, so changes to + * the RenderingHints are reflected in + * the Collection, and vice-versa. + * If the RenderingHints is modified while + * an iteration over the Collection is + * in progress, the results of the iteration are undefined. + * The Collection supports element removal, + * which removes the corresponding mapping from the + * RenderingHints, via the + * Iterator.remove, + * Collection.remove, removeAll, + * retainAll and clear operations. + * It does not support the add or + * addAll operations. + */ + // @ts-ignore + public values(): java.util.Collection; + /** + * Returns a Set view of the mappings contained + * in this RenderingHints. Each element in the + * returned Set is a Map.Entry. + * The Set is backed by the RenderingHints, + * so changes to the RenderingHints are reflected + * in the Set, and vice-versa. If the + * RenderingHints is modified while + * while an iteration over the Set is in progress, + * the results of the iteration are undefined. + *

+ * The entrySet returned from a RenderingHints object + * is not modifiable. + */ + // @ts-ignore + public entrySet(): java.util.Set; + /** + * Compares the specified Object with this + * RenderingHints for equality. + * Returns true if the specified object is also a + * Map and the two Map objects represent + * the same mappings. More formally, two Map objects + * t1 and t2 represent the same mappings + * if t1.keySet().equals(t2.keySet()) and for every + * key k in t1.keySet(), + *

+             * (t1.get(k)==null ? t2.get(k)==null : t1.get(k).equals(t2.get(k)))
+             * 
. + * This ensures that the equals method works properly across + * different implementations of the Map interface. + */ + // @ts-ignore + public equals(o: java.lang.Object): boolean; + /** + * Returns the hash code value for this RenderingHints. + * The hash code of a RenderingHints is defined to be + * the sum of the hashCodes of each Entry in the + * RenderingHints object's entrySet view. This ensures that + * t1.equals(t2) implies that + * t1.hashCode()==t2.hashCode() for any two Map + * objects t1 and t2, as required by the general + * contract of Object.hashCode. + */ + // @ts-ignore + public hashCode(): number; + /** + * Creates a clone of this RenderingHints object + * that has the same contents as this RenderingHints + * object. + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Returns a rather long string representation of the hashmap + * which contains the mappings of keys to values for this + * RenderingHints object. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Robot.d.ts b/packages/types/dist/typings/jdk/java.awt.Robot.d.ts new file mode 100644 index 00000000..2c135a7c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Robot.d.ts @@ -0,0 +1,121 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class Robot extends java.lang.Object { + /** + * Constructs a Robot object in the coordinate system of the primary screen. + *

+ */ + // @ts-ignore + constructor() + /** + * Creates a Robot for the given screen device. Coordinates passed + * to Robot method calls like mouseMove and createScreenCapture will + * be interpreted as being in the same coordinate system as the + * specified screen. Note that depending on the platform configuration, + * multiple screens may either: + *

    + *
  • share the same coordinate system to form a combined virtual screen
  • + *
  • use different coordinate systems to act as independent screens
  • + *
+ * This constructor is meant for the latter case. + *

+ * If screen devices are reconfigured such that the coordinate system is + * affected, the behavior of existing Robot objects is undefined. + */ + // @ts-ignore + constructor(screen: java.awt.GraphicsDevice) + /** + * Moves mouse pointer to given screen coordinates. + */ + // @ts-ignore + public mouseMove(x: number, y: number): void; + /** + * Presses one or more mouse buttons. The mouse buttons should + * be released using the {@link #mouseRelease(int)} method. + */ + // @ts-ignore + public mousePress(buttons: number): void; + /** + * Releases one or more mouse buttons. + */ + // @ts-ignore + public mouseRelease(buttons: number): void; + /** + * Rotates the scroll wheel on wheel-equipped mice. + */ + // @ts-ignore + public mouseWheel(wheelAmt: number): void; + /** + * Presses a given key. The key should be released using the + * keyRelease method. + *

+ * Key codes that have more than one physical key associated with them + * (e.g. KeyEvent.VK_SHIFT could mean either the + * left or right shift key) will map to the left key. + */ + // @ts-ignore + public keyPress(keycode: number): void; + /** + * Releases a given key. + *

+ * Key codes that have more than one physical key associated with them + * (e.g. KeyEvent.VK_SHIFT could mean either the + * left or right shift key) will map to the left key. + */ + // @ts-ignore + public keyRelease(keycode: number): void; + /** + * Returns the color of a pixel at the given screen coordinates. + */ + // @ts-ignore + public getPixelColor(x: number, y: number): java.awt.Color; + /** + * Creates an image containing pixels read from the screen. This image does + * not include the mouse cursor. + */ + // @ts-ignore + public createScreenCapture(screenRect: java.awt.Rectangle): java.awt.image.BufferedImage; + /** + * Returns whether this Robot automatically invokes waitForIdle + * after generating an event. + */ + // @ts-ignore + public isAutoWaitForIdle(): boolean; + /** + * Sets whether this Robot automatically invokes waitForIdle + * after generating an event. + */ + // @ts-ignore + public setAutoWaitForIdle(isOn: boolean): void; + /** + * Returns the number of milliseconds this Robot sleeps after generating an event. + */ + // @ts-ignore + public getAutoDelay(): number; + /** + * Sets the number of milliseconds this Robot sleeps after generating an event. + */ + // @ts-ignore + public setAutoDelay(ms: number): void; + /** + * Sleeps for the specified time. + * To catch any InterruptedExceptions that occur, + * Thread.sleep() may be used instead. + */ + // @ts-ignore + public delay(ms: number): void; + /** + * Waits until all events currently on the event queue have been processed. + */ + // @ts-ignore + public waitForIdle(): void; + /** + * Returns a string representation of this Robot. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.ScrollPane.AccessibleAWTScrollPane.d.ts b/packages/types/dist/typings/jdk/java.awt.ScrollPane.AccessibleAWTScrollPane.d.ts new file mode 100644 index 00000000..3ce2cf19 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.ScrollPane.AccessibleAWTScrollPane.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace ScrollPane { + // @ts-ignore + protected class AccessibleAWTScrollPane extends java.awt.Container.AccessibleAWTContainer { + // @ts-ignore + constructor() + /** + * Get the role of this object. + */ + // @ts-ignore + public getAccessibleRole(): any /*javax.accessibility.AccessibleRole*/; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.ScrollPane.d.ts b/packages/types/dist/typings/jdk/java.awt.ScrollPane.d.ts new file mode 100644 index 00000000..c4a92d45 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.ScrollPane.d.ts @@ -0,0 +1,177 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class ScrollPane extends java.awt.Container { + /** + * Create a new scrollpane container with a scrollbar display + * policy of "as needed". + */ + // @ts-ignore + constructor() + /** + * Create a new scrollpane container. + */ + // @ts-ignore + constructor(scrollbarDisplayPolicy: number) + // @ts-ignore + public static SCROLLBARS_AS_NEEDED: number; + // @ts-ignore + public static SCROLLBARS_ALWAYS: number; + // @ts-ignore + public static SCROLLBARS_NEVER: number; + /** + * Adds the specified component to this scroll pane container. + * If the scroll pane has an existing child component, that + * component is removed and the new one is added. + */ + // @ts-ignore + protected addImpl(comp: java.awt.Component, constraints: java.lang.Object, index: number): void; + /** + * Returns the display policy for the scrollbars. + */ + // @ts-ignore + public getScrollbarDisplayPolicy(): number; + /** + * Returns the current size of the scroll pane's view port. + */ + // @ts-ignore + public getViewportSize(): java.awt.Dimension; + /** + * Returns the height that would be occupied by a horizontal + * scrollbar, which is independent of whether it is currently + * displayed by the scroll pane or not. + */ + // @ts-ignore + public getHScrollbarHeight(): number; + /** + * Returns the width that would be occupied by a vertical + * scrollbar, which is independent of whether it is currently + * displayed by the scroll pane or not. + */ + // @ts-ignore + public getVScrollbarWidth(): number; + /** + * Returns the ScrollPaneAdjustable object which + * represents the state of the vertical scrollbar. + * The declared return type of this method is + * Adjustable to maintain backward compatibility. + */ + // @ts-ignore + public getVAdjustable(): java.awt.Adjustable; + /** + * Returns the ScrollPaneAdjustable object which + * represents the state of the horizontal scrollbar. + * The declared return type of this method is + * Adjustable to maintain backward compatibility. + */ + // @ts-ignore + public getHAdjustable(): java.awt.Adjustable; + /** + * Scrolls to the specified position within the child component. + * A call to this method is only valid if the scroll pane contains + * a child. Specifying a position outside of the legal scrolling bounds + * of the child will scroll to the closest legal position. + * Legal bounds are defined to be the rectangle: + * x = 0, y = 0, width = (child width - view port width), + * height = (child height - view port height). + * This is a convenience method which interfaces with the Adjustable + * objects which represent the state of the scrollbars. + */ + // @ts-ignore + public setScrollPosition(x: number, y: number): void; + /** + * Scrolls to the specified position within the child component. + * A call to this method is only valid if the scroll pane contains + * a child and the specified position is within legal scrolling bounds + * of the child. Specifying a position outside of the legal scrolling + * bounds of the child will scroll to the closest legal position. + * Legal bounds are defined to be the rectangle: + * x = 0, y = 0, width = (child width - view port width), + * height = (child height - view port height). + * This is a convenience method which interfaces with the Adjustable + * objects which represent the state of the scrollbars. + */ + // @ts-ignore + public setScrollPosition(p: java.awt.Point): void; + /** + * Returns the current x,y position within the child which is displayed + * at the 0,0 location of the scrolled panel's view port. + * This is a convenience method which interfaces with the adjustable + * objects which represent the state of the scrollbars. + */ + // @ts-ignore + public getScrollPosition(): java.awt.Point; + /** + * Sets the layout manager for this container. This method is + * overridden to prevent the layout mgr from being set. + */ + // @ts-ignore + public setLayout(mgr: java.awt.LayoutManager): void; + /** + * Lays out this container by resizing its child to its preferred size. + * If the new preferred size of the child causes the current scroll + * position to be invalid, the scroll position is set to the closest + * valid position. + */ + // @ts-ignore + public doLayout(): void; + // @ts-ignore + public layout(): void; + /** + * Prints the component in this scroll pane. + */ + // @ts-ignore + public printComponents(g: java.awt.Graphics): void; + /** + * Creates the scroll pane's peer. + */ + // @ts-ignore + public addNotify(): void; + /** + * Returns a string representing the state of this + * ScrollPane. This + * method is intended to be used only for debugging purposes, and the + * content and format of the returned string may vary between + * implementations. The returned string may be empty but may not be + * null. + */ + // @ts-ignore + public paramString(): string; + /** + * Process mouse wheel events that are delivered to this + * ScrollPane by scrolling an appropriate amount. + *

Note that if the event parameter is null + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processMouseWheelEvent(e: java.awt.event.MouseWheelEvent): void; + /** + * If wheel scrolling is enabled, we return true for MouseWheelEvents + */ + // @ts-ignore + protected eventTypeEnabled(type: number): boolean; + /** + * Enables/disables scrolling in response to movement of the mouse wheel. + * Wheel scrolling is enabled by default. + */ + // @ts-ignore + public setWheelScrollingEnabled(handleWheel: boolean): void; + /** + * Indicates whether or not scrolling will take place in response to + * the mouse wheel. Wheel scrolling is enabled by default. + */ + // @ts-ignore + public isWheelScrollingEnabled(): boolean; + /** + * Gets the AccessibleContext associated with this ScrollPane. + * For scroll panes, the AccessibleContext takes the form of an + * AccessibleAWTScrollPane. + * A new AccessibleAWTScrollPane instance is created if necessary. + */ + // @ts-ignore + public getAccessibleContext(): any /*javax.accessibility.AccessibleContext*/; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.ScrollPaneAdjustable.d.ts b/packages/types/dist/typings/jdk/java.awt.ScrollPaneAdjustable.d.ts new file mode 100644 index 00000000..2834c545 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.ScrollPaneAdjustable.d.ts @@ -0,0 +1,110 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class ScrollPaneAdjustable extends java.lang.Object { + /** + * Returns the orientation of this scrollbar. + */ + // @ts-ignore + public getOrientation(): number; + /** + * This method should NOT be called by user code. + * This method is public for this class to properly implement + * Adjustable interface. + */ + // @ts-ignore + public setMinimum(min: number): void; + // @ts-ignore + public getMinimum(): number; + /** + * This method should NOT be called by user code. + * This method is public for this class to properly implement + * Adjustable interface. + */ + // @ts-ignore + public setMaximum(max: number): void; + // @ts-ignore + public getMaximum(): number; + // @ts-ignore + public setUnitIncrement(u: number): void; + // @ts-ignore + public getUnitIncrement(): number; + // @ts-ignore + public setBlockIncrement(b: number): void; + // @ts-ignore + public getBlockIncrement(): number; + /** + * This method should NOT be called by user code. + * This method is public for this class to properly implement + * Adjustable interface. + */ + // @ts-ignore + public setVisibleAmount(v: number): void; + // @ts-ignore + public getVisibleAmount(): number; + /** + * Sets the valueIsAdjusting property. + */ + // @ts-ignore + public setValueIsAdjusting(b: boolean): void; + /** + * Returns true if the value is in the process of changing as a + * result of actions being taken by the user. + */ + // @ts-ignore + public getValueIsAdjusting(): boolean; + /** + * Sets the value of this scrollbar to the specified value. + *

+ * If the value supplied is less than the current minimum or + * greater than the current maximum, then one of those values is + * substituted, as appropriate. + */ + // @ts-ignore + public setValue(v: number): void; + // @ts-ignore + public getValue(): number; + /** + * Adds the specified adjustment listener to receive adjustment + * events from this ScrollPaneAdjustable. + * If l is null, no exception is thrown + * and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public addAdjustmentListener(l: java.awt.event.AdjustmentListener): void; + /** + * Removes the specified adjustment listener so that it no longer + * receives adjustment events from this ScrollPaneAdjustable. + * If l is null, no exception is thrown + * and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public removeAdjustmentListener(l: java.awt.event.AdjustmentListener): void; + /** + * Returns an array of all the adjustment listeners + * registered on this ScrollPaneAdjustable. + */ + // @ts-ignore + public getAdjustmentListeners(): java.awt.event.AdjustmentListener[]; + /** + * Returns a string representation of this scrollbar and its values. + */ + // @ts-ignore + public toString(): string; + /** + * Returns a string representing the state of this scrollbar. + * This method is intended to be used only for debugging purposes, + * and the content and format of the returned string may vary + * between implementations. The returned string may be empty but + * may not be null. + */ + // @ts-ignore + public paramString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Scrollbar.AccessibleAWTScrollBar.d.ts b/packages/types/dist/typings/jdk/java.awt.Scrollbar.AccessibleAWTScrollBar.d.ts new file mode 100644 index 00000000..446b1207 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Scrollbar.AccessibleAWTScrollBar.d.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace Scrollbar { + // @ts-ignore + protected class AccessibleAWTScrollBar extends java.awt.Component.AccessibleAWTComponent { + // @ts-ignore + constructor() + /** + * Get the state set of this object. + */ + // @ts-ignore + public getAccessibleStateSet(): any /*javax.accessibility.AccessibleStateSet*/; + /** + * Get the role of this object. + */ + // @ts-ignore + public getAccessibleRole(): any /*javax.accessibility.AccessibleRole*/; + /** + * Get the AccessibleValue associated with this + * object. In the implementation of the Java Accessibility + * API for this class, return this object, which is + * responsible for implementing the + * AccessibleValue interface on behalf of itself. + */ + // @ts-ignore + public getAccessibleValue(): any /*javax.accessibility.AccessibleValue*/; + /** + * Get the accessible value of this object. + */ + // @ts-ignore + public getCurrentAccessibleValue(): java.lang.Number; + /** + * Set the value of this object as a Number. + */ + // @ts-ignore + public setCurrentAccessibleValue(n: java.lang.Number): boolean; + /** + * Get the minimum accessible value of this object. + */ + // @ts-ignore + public getMinimumAccessibleValue(): java.lang.Number; + /** + * Get the maximum accessible value of this object. + */ + // @ts-ignore + public getMaximumAccessibleValue(): java.lang.Number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Scrollbar.d.ts b/packages/types/dist/typings/jdk/java.awt.Scrollbar.d.ts new file mode 100644 index 00000000..51cce38e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Scrollbar.d.ts @@ -0,0 +1,435 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class Scrollbar extends java.awt.Component { + /** + * Constructs a new vertical scroll bar. + * The default properties of the scroll bar are listed in + * the following table: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
PropertyDescriptionDefault Value
orientationindicates whether the scroll bar is vertical + *
or horizontal
Scrollbar.VERTICAL
valuevalue which controls the location + *
of the scroll bar's bubble
0
visible amountvisible amount of the scroll bar's range, + *
typically represented by the size of the + *
scroll bar's bubble
10
minimumminimum value of the scroll bar0
maximummaximum value of the scroll bar100
unit incrementamount the value changes when the + *
Line Up or Line Down key is pressed, + *
or when the end arrows of the scrollbar + *
are clicked
1
block incrementamount the value changes when the + *
Page Up or Page Down key is pressed, + *
or when the scrollbar track is clicked + *
on either side of the bubble
10
+ */ + // @ts-ignore + constructor() + /** + * Constructs a new scroll bar with the specified orientation. + *

+ * The orientation argument must take one of the two + * values Scrollbar.HORIZONTAL, + * or Scrollbar.VERTICAL, + * indicating a horizontal or vertical scroll bar, respectively. + */ + // @ts-ignore + constructor(orientation: number) + /** + * Constructs a new scroll bar with the specified orientation, + * initial value, visible amount, and minimum and maximum values. + *

+ * The orientation argument must take one of the two + * values Scrollbar.HORIZONTAL, + * or Scrollbar.VERTICAL, + * indicating a horizontal or vertical scroll bar, respectively. + *

+ * The parameters supplied to this constructor are subject to the + * constraints described in {@link #setValues(int, int, int, int)}. + */ + // @ts-ignore + constructor(orientation: number, value: number, visible: number, minimum: number, maximum: number) + // @ts-ignore + public static HORIZONTAL: number; + // @ts-ignore + public static VERTICAL: number; + /** + * Creates the Scrollbar's peer. The peer allows you to modify + * the appearance of the Scrollbar without changing any of its + * functionality. + */ + // @ts-ignore + public addNotify(): void; + /** + * Returns the orientation of this scroll bar. + */ + // @ts-ignore + public getOrientation(): number; + /** + * Sets the orientation for this scroll bar. + */ + // @ts-ignore + public setOrientation(orientation: number): void; + /** + * Gets the current value of this scroll bar. + */ + // @ts-ignore + public getValue(): number; + /** + * Sets the value of this scroll bar to the specified value. + *

+ * If the value supplied is less than the current minimum + * or greater than the current maximum - visibleAmount, + * then either minimum or maximum - visibleAmount + * is substituted, as appropriate. + *

+ * Normally, a program should change a scroll bar's + * value only by calling setValues. + * The setValues method simultaneously + * and synchronously sets the minimum, maximum, visible amount, + * and value properties of a scroll bar, so that they are + * mutually consistent. + *

+ * Calling this method does not fire an + * AdjustmentEvent. + */ + // @ts-ignore + public setValue(newValue: number): void; + /** + * Gets the minimum value of this scroll bar. + */ + // @ts-ignore + public getMinimum(): number; + /** + * Sets the minimum value of this scroll bar. + *

+ * When setMinimum is called, the minimum value + * is changed, and other values (including the maximum, the + * visible amount, and the current scroll bar value) + * are changed to be consistent with the new minimum. + *

+ * Normally, a program should change a scroll bar's minimum + * value only by calling setValues. + * The setValues method simultaneously + * and synchronously sets the minimum, maximum, visible amount, + * and value properties of a scroll bar, so that they are + * mutually consistent. + *

+ * Note that setting the minimum value to Integer.MAX_VALUE + * will result in the new minimum value being set to + * Integer.MAX_VALUE - 1. + */ + // @ts-ignore + public setMinimum(newMinimum: number): void; + /** + * Gets the maximum value of this scroll bar. + */ + // @ts-ignore + public getMaximum(): number; + /** + * Sets the maximum value of this scroll bar. + *

+ * When setMaximum is called, the maximum value + * is changed, and other values (including the minimum, the + * visible amount, and the current scroll bar value) + * are changed to be consistent with the new maximum. + *

+ * Normally, a program should change a scroll bar's maximum + * value only by calling setValues. + * The setValues method simultaneously + * and synchronously sets the minimum, maximum, visible amount, + * and value properties of a scroll bar, so that they are + * mutually consistent. + *

+ * Note that setting the maximum value to Integer.MIN_VALUE + * will result in the new maximum value being set to + * Integer.MIN_VALUE + 1. + */ + // @ts-ignore + public setMaximum(newMaximum: number): void; + /** + * Gets the visible amount of this scroll bar. + *

+ * When a scroll bar is used to select a range of values, + * the visible amount is used to represent the range of values + * that are currently visible. The size of the scroll bar's + * bubble (also called a thumb or scroll box), usually gives a + * visual representation of the relationship of the visible + * amount to the range of the scroll bar. + * Note that depending on platform, the value of the visible amount property + * may not be visually indicated by the size of the bubble. + *

+ * The scroll bar's bubble may not be displayed when it is not + * moveable (e.g. when it takes up the entire length of the + * scroll bar's track, or when the scroll bar is disabled). + * Whether the bubble is displayed or not will not affect + * the value returned by getVisibleAmount. + */ + // @ts-ignore + public getVisibleAmount(): number; + // @ts-ignore + public getVisible(): number; + /** + * Sets the visible amount of this scroll bar. + *

+ * When a scroll bar is used to select a range of values, + * the visible amount is used to represent the range of values + * that are currently visible. The size of the scroll bar's + * bubble (also called a thumb or scroll box), usually gives a + * visual representation of the relationship of the visible + * amount to the range of the scroll bar. + * Note that depending on platform, the value of the visible amount property + * may not be visually indicated by the size of the bubble. + *

+ * The scroll bar's bubble may not be displayed when it is not + * moveable (e.g. when it takes up the entire length of the + * scroll bar's track, or when the scroll bar is disabled). + * Whether the bubble is displayed or not will not affect + * the value returned by getVisibleAmount. + *

+ * If the visible amount supplied is less than one + * or greater than the current maximum - minimum, + * then either one or maximum - minimum + * is substituted, as appropriate. + *

+ * Normally, a program should change a scroll bar's + * value only by calling setValues. + * The setValues method simultaneously + * and synchronously sets the minimum, maximum, visible amount, + * and value properties of a scroll bar, so that they are + * mutually consistent. + */ + // @ts-ignore + public setVisibleAmount(newAmount: number): void; + /** + * Sets the unit increment for this scroll bar. + *

+ * The unit increment is the value that is added or subtracted + * when the user activates the unit increment area of the + * scroll bar, generally through a mouse or keyboard gesture + * that the scroll bar receives as an adjustment event. + * The unit increment must be greater than zero. + * Attepts to set the unit increment to a value lower than 1 + * will result in a value of 1 being set. + *

+ * In some operating systems, this property + * can be ignored by the underlying controls. + */ + // @ts-ignore + public setUnitIncrement(v: number): void; + // @ts-ignore + public setLineIncrement(v: number): void; + /** + * Gets the unit increment for this scrollbar. + *

+ * The unit increment is the value that is added or subtracted + * when the user activates the unit increment area of the + * scroll bar, generally through a mouse or keyboard gesture + * that the scroll bar receives as an adjustment event. + * The unit increment must be greater than zero. + *

+ * In some operating systems, this property + * can be ignored by the underlying controls. + */ + // @ts-ignore + public getUnitIncrement(): number; + // @ts-ignore + public getLineIncrement(): number; + /** + * Sets the block increment for this scroll bar. + *

+ * The block increment is the value that is added or subtracted + * when the user activates the block increment area of the + * scroll bar, generally through a mouse or keyboard gesture + * that the scroll bar receives as an adjustment event. + * The block increment must be greater than zero. + * Attepts to set the block increment to a value lower than 1 + * will result in a value of 1 being set. + */ + // @ts-ignore + public setBlockIncrement(v: number): void; + // @ts-ignore + public setPageIncrement(v: number): void; + /** + * Gets the block increment of this scroll bar. + *

+ * The block increment is the value that is added or subtracted + * when the user activates the block increment area of the + * scroll bar, generally through a mouse or keyboard gesture + * that the scroll bar receives as an adjustment event. + * The block increment must be greater than zero. + */ + // @ts-ignore + public getBlockIncrement(): number; + // @ts-ignore + public getPageIncrement(): number; + /** + * Sets the values of four properties for this scroll bar: + * value, visibleAmount, + * minimum, and maximum. + * If the values supplied for these properties are inconsistent + * or incorrect, they will be changed to ensure consistency. + *

+ * This method simultaneously and synchronously sets the values + * of four scroll bar properties, assuring that the values of + * these properties are mutually consistent. It enforces the + * following constraints: + * maximum must be greater than minimum, + * maximum - minimum must not be greater + * than Integer.MAX_VALUE, + * visibleAmount must be greater than zero. + * visibleAmount must not be greater than + * maximum - minimum, + * value must not be less than minimum, + * and value must not be greater than + * maximum - visibleAmount + *

+ * Calling this method does not fire an + * AdjustmentEvent. + */ + // @ts-ignore + public setValues(value: number, visible: number, minimum: number, maximum: number): void; + /** + * Returns true if the value is in the process of changing as a + * result of actions being taken by the user. + */ + // @ts-ignore + public getValueIsAdjusting(): boolean; + /** + * Sets the valueIsAdjusting property. + */ + // @ts-ignore + public setValueIsAdjusting(b: boolean): void; + /** + * Adds the specified adjustment listener to receive instances of + * AdjustmentEvent from this scroll bar. + * If l is null, no exception is thrown and no + * action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public addAdjustmentListener(l: java.awt.event.AdjustmentListener): void; + /** + * Removes the specified adjustment listener so that it no longer + * receives instances of AdjustmentEvent from this scroll bar. + * If l is null, no exception is thrown and no action + * is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public removeAdjustmentListener(l: java.awt.event.AdjustmentListener): void; + /** + * Returns an array of all the adjustment listeners + * registered on this scrollbar. + */ + // @ts-ignore + public getAdjustmentListeners(): java.awt.event.AdjustmentListener[]; + /** + * Returns an array of all the objects currently registered + * as FooListeners + * upon this Scrollbar. + * FooListeners are registered using the + * addFooListener method. + *

+ * You can specify the listenerType argument + * with a class literal, such as + * FooListener.class. + * For example, you can query a + * Scrollbar c + * for its mouse listeners with the following code: + *

MouseListener[] mls = (MouseListener[])(c.getListeners(MouseListener.class));
+ * If no such listeners exist, this method returns an empty array. + */ + // @ts-ignore + public getListeners(listenerType: java.lang.Class): java.util.EventListener[]; + /** + * Processes events on this scroll bar. If the event is an + * instance of AdjustmentEvent, it invokes the + * processAdjustmentEvent method. + * Otherwise, it invokes its superclass's + * processEvent method. + *

Note that if the event parameter is null + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processEvent(e: java.awt.AWTEvent): void; + /** + * Processes adjustment events occurring on this + * scrollbar by dispatching them to any registered + * AdjustmentListener objects. + *

+ * This method is not called unless adjustment events are + * enabled for this component. Adjustment events are enabled + * when one of the following occurs: + *

    + *
  • An AdjustmentListener object is registered + * via addAdjustmentListener. + *
  • Adjustment events are enabled via enableEvents. + *
+ *

Note that if the event parameter is null + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processAdjustmentEvent(e: java.awt.event.AdjustmentEvent): void; + /** + * Returns a string representing the state of this Scrollbar. + * This method is intended to be used only for debugging purposes, and the + * content and format of the returned string may vary between + * implementations. The returned string may be empty but may not be + * null. + */ + // @ts-ignore + protected paramString(): string; + /** + * Gets the AccessibleContext associated with this + * Scrollbar. For scrollbars, the + * AccessibleContext takes the form of an + * AccessibleAWTScrollBar. A new + * AccessibleAWTScrollBar instance is created if necessary. + */ + // @ts-ignore + public getAccessibleContext(): any /*javax.accessibility.AccessibleContext*/; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.SecondaryLoop.d.ts b/packages/types/dist/typings/jdk/java.awt.SecondaryLoop.d.ts new file mode 100644 index 00000000..5fae4703 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.SecondaryLoop.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + interface SecondaryLoop { + /** + * Blocks the execution of the current thread and enters a new + * secondary event loop on the event dispatch thread. + *

+ * This method can be called by any thread including the event + * dispatch thread. This thread will be blocked until the {@link + * #exit} method is called or the loop is terminated. A new + * secondary loop will be created on the event dispatch thread + * for dispatching events in either case. + *

+ * This method can only start one new event loop at a time per + * object. If a secondary event loop has already been started + * by this object and is currently still running, this method + * returns {@code false} to indicate that it was not successful + * in starting a new event loop. Otherwise, this method blocks + * the calling thread and later returns {@code true} when the + * new event loop is terminated. At such time, this object can + * again be used to start another new event loop. + */ + // @ts-ignore + enter(): boolean; + /** + * Unblocks the execution of the thread blocked by the {@link + * #enter} method and exits the secondary loop. + *

+ * This method resumes the thread that called the {@link #enter} + * method and exits the secondary loop that was created when + * the {@link #enter} method was invoked. + *

+ * Note that if any other secondary loop is started while this + * loop is running, the blocked thread will not resume execution + * until the nested loop is terminated. + *

+ * If this secondary loop has not been started with the {@link + * #enter} method, or this secondary loop has already finished + * with the {@link #exit} method, this method returns {@code + * false}, otherwise {@code true} is returned. + */ + // @ts-ignore + exit(): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Shape.d.ts b/packages/types/dist/typings/jdk/java.awt.Shape.d.ts new file mode 100644 index 00000000..1a4c0350 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Shape.d.ts @@ -0,0 +1,256 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + interface Shape { + /** + * Returns an integer {@link Rectangle} that completely encloses the + * Shape. Note that there is no guarantee that the + * returned Rectangle is the smallest bounding box that + * encloses the Shape, only that the Shape + * lies entirely within the indicated Rectangle. The + * returned Rectangle might also fail to completely + * enclose the Shape if the Shape overflows + * the limited range of the integer data type. The + * getBounds2D method generally returns a + * tighter bounding box due to its greater flexibility in + * representation. + *

+ * Note that the + * definition of insideness can lead to situations where points + * on the defining outline of the {@code shape} may not be considered + * contained in the returned {@code bounds} object, but only in cases + * where those points are also not considered contained in the original + * {@code shape}. + *

+ *

+ * If a {@code point} is inside the {@code shape} according to the + * {@link #contains(double x, double y) contains(point)} method, then + * it must be inside the returned {@code Rectangle} bounds object + * according to the {@link #contains(double x, double y) contains(point)} + * method of the {@code bounds}. Specifically: + *

+ *

+ * {@code shape.contains(x,y)} requires {@code bounds.contains(x,y)} + *

+ *

+ * If a {@code point} is not inside the {@code shape}, then it might + * still be contained in the {@code bounds} object: + *

+ *

+ * {@code bounds.contains(x,y)} does not imply {@code shape.contains(x,y)} + *

+ */ + // @ts-ignore + getBounds(): java.awt.Rectangle; + /** + * Returns a high precision and more accurate bounding box of + * the Shape than the getBounds method. + * Note that there is no guarantee that the returned + * {@link Rectangle2D} is the smallest bounding box that encloses + * the Shape, only that the Shape lies + * entirely within the indicated Rectangle2D. The + * bounding box returned by this method is usually tighter than that + * returned by the getBounds method and never fails due + * to overflow problems since the return value can be an instance of + * the Rectangle2D that uses double precision values to + * store the dimensions. + *

+ * Note that the + * definition of insideness can lead to situations where points + * on the defining outline of the {@code shape} may not be considered + * contained in the returned {@code bounds} object, but only in cases + * where those points are also not considered contained in the original + * {@code shape}. + *

+ *

+ * If a {@code point} is inside the {@code shape} according to the + * {@link #contains(Point2D p) contains(point)} method, then it must + * be inside the returned {@code Rectangle2D} bounds object according + * to the {@link #contains(Point2D p) contains(point)} method of the + * {@code bounds}. Specifically: + *

+ *

+ * {@code shape.contains(p)} requires {@code bounds.contains(p)} + *

+ *

+ * If a {@code point} is not inside the {@code shape}, then it might + * still be contained in the {@code bounds} object: + *

+ *

+ * {@code bounds.contains(p)} does not imply {@code shape.contains(p)} + *

+ */ + // @ts-ignore + getBounds2D(): java.awt.geom.Rectangle2D; + /** + * Tests if the specified coordinates are inside the boundary of the + * Shape, as described by the + * + * definition of insideness. + */ + // @ts-ignore + contains(x: number, y: number): boolean; + /** + * Tests if a specified {@link Point2D} is inside the boundary + * of the Shape, as described by the + * + * definition of insideness. + */ + // @ts-ignore + contains(p: java.awt.geom.Point2D): boolean; + /** + * Tests if the interior of the Shape intersects the + * interior of a specified rectangular area. + * The rectangular area is considered to intersect the Shape + * if any point is contained in both the interior of the + * Shape and the specified rectangular area. + *

+ * The {@code Shape.intersects()} method allows a {@code Shape} + * implementation to conservatively return {@code true} when: + *

    + *
  • + * there is a high probability that the rectangular area and the + * Shape intersect, but + *
  • + * the calculations to accurately determine this intersection + * are prohibitively expensive. + *
+ * This means that for some {@code Shapes} this method might + * return {@code true} even though the rectangular area does not + * intersect the {@code Shape}. + * The {@link java.awt.geom.Area Area} class performs + * more accurate computations of geometric intersection than most + * {@code Shape} objects and therefore can be used if a more precise + * answer is required. + */ + // @ts-ignore + intersects(x: number, y: number, w: number, h: number): boolean; + /** + * Tests if the interior of the Shape intersects the + * interior of a specified Rectangle2D. + * The {@code Shape.intersects()} method allows a {@code Shape} + * implementation to conservatively return {@code true} when: + *
    + *
  • + * there is a high probability that the Rectangle2D and the + * Shape intersect, but + *
  • + * the calculations to accurately determine this intersection + * are prohibitively expensive. + *
+ * This means that for some {@code Shapes} this method might + * return {@code true} even though the {@code Rectangle2D} does not + * intersect the {@code Shape}. + * The {@link java.awt.geom.Area Area} class performs + * more accurate computations of geometric intersection than most + * {@code Shape} objects and therefore can be used if a more precise + * answer is required. + */ + // @ts-ignore + intersects(r: java.awt.geom.Rectangle2D): boolean; + /** + * Tests if the interior of the Shape entirely contains + * the specified rectangular area. All coordinates that lie inside + * the rectangular area must lie within the Shape for the + * entire rectangular area to be considered contained within the + * Shape. + *

+ * The {@code Shape.contains()} method allows a {@code Shape} + * implementation to conservatively return {@code false} when: + *

    + *
  • + * the intersect method returns true and + *
  • + * the calculations to determine whether or not the + * Shape entirely contains the rectangular area are + * prohibitively expensive. + *
+ * This means that for some {@code Shapes} this method might + * return {@code false} even though the {@code Shape} contains + * the rectangular area. + * The {@link java.awt.geom.Area Area} class performs + * more accurate geometric computations than most + * {@code Shape} objects and therefore can be used if a more precise + * answer is required. + */ + // @ts-ignore + contains(x: number, y: number, w: number, h: number): boolean; + /** + * Tests if the interior of the Shape entirely contains the + * specified Rectangle2D. + * The {@code Shape.contains()} method allows a {@code Shape} + * implementation to conservatively return {@code false} when: + *
    + *
  • + * the intersect method returns true and + *
  • + * the calculations to determine whether or not the + * Shape entirely contains the Rectangle2D + * are prohibitively expensive. + *
+ * This means that for some {@code Shapes} this method might + * return {@code false} even though the {@code Shape} contains + * the {@code Rectangle2D}. + * The {@link java.awt.geom.Area Area} class performs + * more accurate geometric computations than most + * {@code Shape} objects and therefore can be used if a more precise + * answer is required. + */ + // @ts-ignore + contains(r: java.awt.geom.Rectangle2D): boolean; + /** + * Returns an iterator object that iterates along the + * Shape boundary and provides access to the geometry of the + * Shape outline. If an optional {@link AffineTransform} + * is specified, the coordinates returned in the iteration are + * transformed accordingly. + *

+ * Each call to this method returns a fresh PathIterator + * object that traverses the geometry of the Shape object + * independently from any other PathIterator objects in use + * at the same time. + *

+ * It is recommended, but not guaranteed, that objects + * implementing the Shape interface isolate iterations + * that are in process from any changes that might occur to the original + * object's geometry during such iterations. + */ + // @ts-ignore + getPathIterator(at: java.awt.geom.AffineTransform): java.awt.geom.PathIterator; + /** + * Returns an iterator object that iterates along the Shape + * boundary and provides access to a flattened view of the + * Shape outline geometry. + *

+ * Only SEG_MOVETO, SEG_LINETO, and SEG_CLOSE point types are + * returned by the iterator. + *

+ * If an optional AffineTransform is specified, + * the coordinates returned in the iteration are transformed + * accordingly. + *

+ * The amount of subdivision of the curved segments is controlled + * by the flatness parameter, which specifies the + * maximum distance that any point on the unflattened transformed + * curve can deviate from the returned flattened path segments. + * Note that a limit on the accuracy of the flattened path might be + * silently imposed, causing very small flattening parameters to be + * treated as larger values. This limit, if there is one, is + * defined by the particular implementation that is used. + *

+ * Each call to this method returns a fresh PathIterator + * object that traverses the Shape object geometry + * independently from any other PathIterator objects in use at + * the same time. + *

+ * It is recommended, but not guaranteed, that objects + * implementing the Shape interface isolate iterations + * that are in process from any changes that might occur to the original + * object's geometry during such iterations. + */ + // @ts-ignore + getPathIterator(at: java.awt.geom.AffineTransform, flatness: number): java.awt.geom.PathIterator; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.SplashScreen.d.ts b/packages/types/dist/typings/jdk/java.awt.SplashScreen.d.ts new file mode 100644 index 00000000..202676b4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.SplashScreen.d.ts @@ -0,0 +1,94 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class SplashScreen extends java.lang.Object { + /** + * Returns the {@code SplashScreen} object used for + * Java startup splash screen control on systems that support display. + */ + // @ts-ignore + public static getSplashScreen(): java.awt.SplashScreen; + /** + * Changes the splash screen image. The new image is loaded from the + * specified URL; GIF, JPEG and PNG image formats are supported. + * The method returns after the image has finished loading and the window + * has been updated. + * The splash screen window is resized according to the size of + * the image and is centered on the screen. + */ + // @ts-ignore + public setImageURL(imageURL: java.net.URL): void; + /** + * Returns the current splash screen image. + */ + // @ts-ignore + public getImageURL(): java.net.URL; + /** + * Returns the bounds of the splash screen window as a {@link Rectangle}. + * This may be useful if, for example, you want to replace the splash + * screen with your window at the same location. + *

+ * You cannot control the size or position of the splash screen. + * The splash screen size is adjusted automatically when the image changes. + *

+ * The image may contain transparent areas, and thus the reported bounds may + * be larger than the visible splash screen image on the screen. + */ + // @ts-ignore + public getBounds(): java.awt.Rectangle; + /** + * Returns the size of the splash screen window as a {@link Dimension}. + * This may be useful if, for example, + * you want to draw on the splash screen overlay surface. + *

+ * You cannot control the size or position of the splash screen. + * The splash screen size is adjusted automatically when the image changes. + *

+ * The image may contain transparent areas, and thus the reported size may + * be larger than the visible splash screen image on the screen. + */ + // @ts-ignore + public getSize(): java.awt.Dimension; + /** + * Creates a graphics context (as a {@link Graphics2D} object) for the splash + * screen overlay image, which allows you to draw over the splash screen. + * Note that you do not draw on the main image but on the image that is + * displayed over the main image using alpha blending. Also note that drawing + * on the overlay image does not necessarily update the contents of splash + * screen window. You should call {@code update()} on the + * SplashScreen when you want the splash screen to be + * updated immediately. + *

+ * The pixel (0, 0) in the coordinate space of the graphics context + * corresponds to the origin of the splash screen native window bounds (see + * {@link #getBounds()}). + */ + // @ts-ignore + public createGraphics(): java.awt.Graphics2D; + /** + * Updates the splash window with current contents of the overlay image. + */ + // @ts-ignore + public update(): void; + /** + * Hides the splash screen, closes the window, and releases all associated + * resources. + */ + // @ts-ignore + public close(): void; + /** + * Determines whether the splash screen is visible. The splash screen may + * be hidden using {@link #close()}, it is also hidden automatically when + * the first AWT/Swing window is made visible. + *

+ * Note that the native platform may delay presenting the splash screen + * native window on the screen. The return value of {@code true} for this + * method only guarantees that the conditions to hide the splash screen + * window have not occurred yet. + */ + // @ts-ignore + public isVisible(): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Stroke.d.ts b/packages/types/dist/typings/jdk/java.awt.Stroke.d.ts new file mode 100644 index 00000000..c2a7c2ca --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Stroke.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + interface Stroke { + /** + * Returns an outline Shape which encloses the area that + * should be painted when the Shape is stroked according + * to the rules defined by the + * object implementing the Stroke interface. + */ + // @ts-ignore + createStrokedShape(p: java.awt.Shape): java.awt.Shape; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.SystemColor.d.ts b/packages/types/dist/typings/jdk/java.awt.SystemColor.d.ts new file mode 100644 index 00000000..b6158428 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.SystemColor.d.ts @@ -0,0 +1,123 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class SystemColor extends java.awt.Color { + // @ts-ignore + public static DESKTOP: number; + // @ts-ignore + public static ACTIVE_CAPTION: number; + // @ts-ignore + public static ACTIVE_CAPTION_TEXT: number; + // @ts-ignore + public static ACTIVE_CAPTION_BORDER: number; + // @ts-ignore + public static INACTIVE_CAPTION: number; + // @ts-ignore + public static INACTIVE_CAPTION_TEXT: number; + // @ts-ignore + public static INACTIVE_CAPTION_BORDER: number; + // @ts-ignore + public static WINDOW: number; + // @ts-ignore + public static WINDOW_BORDER: number; + // @ts-ignore + public static WINDOW_TEXT: number; + // @ts-ignore + public static MENU: number; + // @ts-ignore + public static MENU_TEXT: number; + // @ts-ignore + public static TEXT: number; + // @ts-ignore + public static TEXT_TEXT: number; + // @ts-ignore + public static TEXT_HIGHLIGHT: number; + // @ts-ignore + public static TEXT_HIGHLIGHT_TEXT: number; + // @ts-ignore + public static TEXT_INACTIVE_TEXT: number; + // @ts-ignore + public static CONTROL: number; + // @ts-ignore + public static CONTROL_TEXT: number; + // @ts-ignore + public static CONTROL_HIGHLIGHT: number; + // @ts-ignore + public static CONTROL_LT_HIGHLIGHT: number; + // @ts-ignore + public static CONTROL_SHADOW: number; + // @ts-ignore + public static CONTROL_DK_SHADOW: number; + // @ts-ignore + public static SCROLLBAR: number; + // @ts-ignore + public static INFO: number; + // @ts-ignore + public static INFO_TEXT: number; + // @ts-ignore + public static NUM_COLORS: number; + // @ts-ignore + public static desktop: java.awt.SystemColor; + // @ts-ignore + public static activeCaption: java.awt.SystemColor; + // @ts-ignore + public static activeCaptionText: java.awt.SystemColor; + // @ts-ignore + public static activeCaptionBorder: java.awt.SystemColor; + // @ts-ignore + public static inactiveCaption: java.awt.SystemColor; + // @ts-ignore + public static inactiveCaptionText: java.awt.SystemColor; + // @ts-ignore + public static inactiveCaptionBorder: java.awt.SystemColor; + // @ts-ignore + public static window: java.awt.SystemColor; + // @ts-ignore + public static windowBorder: java.awt.SystemColor; + // @ts-ignore + public static windowText: java.awt.SystemColor; + // @ts-ignore + public static menu: java.awt.SystemColor; + // @ts-ignore + public static menuText: java.awt.SystemColor; + // @ts-ignore + public static text: java.awt.SystemColor; + // @ts-ignore + public static textText: java.awt.SystemColor; + // @ts-ignore + public static textHighlight: java.awt.SystemColor; + // @ts-ignore + public static textHighlightText: java.awt.SystemColor; + // @ts-ignore + public static textInactiveText: java.awt.SystemColor; + // @ts-ignore + public static control: java.awt.SystemColor; + // @ts-ignore + public static controlText: java.awt.SystemColor; + // @ts-ignore + public static controlHighlight: java.awt.SystemColor; + // @ts-ignore + public static controlLtHighlight: java.awt.SystemColor; + // @ts-ignore + public static controlShadow: java.awt.SystemColor; + // @ts-ignore + public static controlDkShadow: java.awt.SystemColor; + // @ts-ignore + public static scrollbar: java.awt.SystemColor; + // @ts-ignore + public static info: java.awt.SystemColor; + // @ts-ignore + public static infoText: java.awt.SystemColor; + /** + * Returns a string representation of this Color's values. + * This method is intended to be used only for debugging purposes, + * and the content and format of the returned string may vary between + * implementations. + * The returned string may be empty but may not be null. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.SystemTray.d.ts b/packages/types/dist/typings/jdk/java.awt.SystemTray.d.ts new file mode 100644 index 00000000..93fed9ff --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.SystemTray.d.ts @@ -0,0 +1,139 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class SystemTray extends java.lang.Object { + /** + * Gets the SystemTray instance that represents the + * desktop's tray area. This always returns the same instance per + * application. On some platforms the system tray may not be + * supported. You may use the {@link #isSupported} method to + * check if the system tray is supported. + *

If a SecurityManager is installed, the AWTPermission + * {@code accessSystemTray} must be granted in order to get the + * {@code SystemTray} instance. Otherwise this method will throw a + * SecurityException. + */ + // @ts-ignore + public static getSystemTray(): java.awt.SystemTray; + /** + * Returns whether the system tray is supported on the current + * platform. In addition to displaying the tray icon, minimal + * system tray support includes either a popup menu (see {@link + * TrayIcon#setPopupMenu(PopupMenu)}) or an action event (see + * {@link TrayIcon#addActionListener(ActionListener)}). + *

Developers should not assume that all of the system tray + * functionality is supported. To guarantee that the tray icon's + * default action is always accessible, add the default action to + * both the action listener and the popup menu. See the {@link + * SystemTray example} for an example of how to do this. + *

Note: When implementing SystemTray and + * TrayIcon it is strongly recommended that + * you assign different gestures to the popup menu and an action + * event. Overloading a gesture for both purposes is confusing + * and may prevent the user from accessing one or the other. + */ + // @ts-ignore + public static isSupported(): boolean; + /** + * Adds a TrayIcon to the SystemTray. + * The tray icon becomes visible in the system tray once it is + * added. The order in which icons are displayed in a tray is not + * specified - it is platform and implementation-dependent. + *

All icons added by the application are automatically + * removed from the SystemTray upon application exit + * and also when the desktop system tray becomes unavailable. + */ + // @ts-ignore + public add(trayIcon: java.awt.TrayIcon): void; + /** + * Removes the specified TrayIcon from the + * SystemTray. + *

All icons added by the application are automatically + * removed from the SystemTray upon application exit + * and also when the desktop system tray becomes unavailable. + *

If trayIcon is null or was not + * added to the system tray, no exception is thrown and no action + * is performed. + */ + // @ts-ignore + public remove(trayIcon: java.awt.TrayIcon): void; + /** + * Returns an array of all icons added to the tray by this + * application. You can't access the icons added by another + * application. Some browsers partition applets in different + * code bases into separate contexts, and establish walls between + * these contexts. In such a scenario, only the tray icons added + * from this context will be returned. + *

The returned array is a copy of the actual array and may be + * modified in any way without affecting the system tray. To + * remove a TrayIcon from the + * SystemTray, use the {@link + * #remove(TrayIcon)} method. + */ + // @ts-ignore + public getTrayIcons(): java.awt.TrayIcon[]; + /** + * Returns the size, in pixels, of the space that a tray icon will + * occupy in the system tray. Developers may use this methods to + * acquire the preferred size for the image property of a tray icon + * before it is created. For convenience, there is a similar + * method {@link TrayIcon#getSize} in the TrayIcon class. + */ + // @ts-ignore + public getTrayIconSize(): java.awt.Dimension; + /** + * Adds a {@code PropertyChangeListener} to the list of listeners for the + * specific property. The following properties are currently supported: + * + * + * + * + * + * + * + * + * + * + * + * + * + *
PropertyDescription
{@code trayIcons}The {@code SystemTray}'s array of {@code TrayIcon} objects. + * The array is accessed via the {@link #getTrayIcons} method.
+ * This property is changed when a tray icon is added to (or removed + * from) the system tray.
For example, this property is changed + * when the system tray becomes unavailable on the desktop
+ * and the tray icons are automatically removed.
{@code systemTray}This property contains {@code SystemTray} instance when the system tray + * is available or null otherwise.
This property is changed + * when the system tray becomes available or unavailable on the desktop.
+ * The property is accessed by the {@link #getSystemTray} method.
+ *

+ * The {@code listener} listens to property changes only in this context. + *

+ * If {@code listener} is {@code null}, no exception is thrown + * and no action is performed. + */ + // @ts-ignore + public addPropertyChangeListener(propertyName: string, listener: java.beans.PropertyChangeListener): void; + /** + * Removes a {@code PropertyChangeListener} from the listener list + * for a specific property. + *

+ * The {@code PropertyChangeListener} must be from this context. + *

+ * If {@code propertyName} or {@code listener} is {@code null} or invalid, + * no exception is thrown and no action is taken. + */ + // @ts-ignore + public removePropertyChangeListener(propertyName: string, listener: java.beans.PropertyChangeListener): void; + /** + * Returns an array of all the listeners that have been associated + * with the named property. + *

+ * Only the listeners in this context are returned. + */ + // @ts-ignore + public getPropertyChangeListeners(propertyName: string): java.beans.PropertyChangeListener[]; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.TextArea.AccessibleAWTTextArea.d.ts b/packages/types/dist/typings/jdk/java.awt.TextArea.AccessibleAWTTextArea.d.ts new file mode 100644 index 00000000..00c00d4a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.TextArea.AccessibleAWTTextArea.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace TextArea { + // @ts-ignore + protected class AccessibleAWTTextArea extends java.awt.TextComponent.AccessibleAWTTextComponent { + // @ts-ignore + constructor() + /** + * Gets the state set of this object. + */ + // @ts-ignore + public getAccessibleStateSet(): any /*javax.accessibility.AccessibleStateSet*/; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.TextArea.d.ts b/packages/types/dist/typings/jdk/java.awt.TextArea.d.ts new file mode 100644 index 00000000..e9d5aa55 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.TextArea.d.ts @@ -0,0 +1,199 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class TextArea extends java.awt.TextComponent { + /** + * Constructs a new text area with the empty string as text. + * This text area is created with scrollbar visibility equal to + * {@link #SCROLLBARS_BOTH}, so both vertical and horizontal + * scrollbars will be visible for this text area. + */ + // @ts-ignore + constructor() + /** + * Constructs a new text area with the specified text. + * This text area is created with scrollbar visibility equal to + * {@link #SCROLLBARS_BOTH}, so both vertical and horizontal + * scrollbars will be visible for this text area. + */ + // @ts-ignore + constructor(text: string) + /** + * Constructs a new text area with the specified number of + * rows and columns and the empty string as text. + * A column is an approximate average character + * width that is platform-dependent. The text area is created with + * scrollbar visibility equal to {@link #SCROLLBARS_BOTH}, so both + * vertical and horizontal scrollbars will be visible for this + * text area. + */ + // @ts-ignore + constructor(rows: number, columns: number) + /** + * Constructs a new text area with the specified text, + * and with the specified number of rows and columns. + * A column is an approximate average character + * width that is platform-dependent. The text area is created with + * scrollbar visibility equal to {@link #SCROLLBARS_BOTH}, so both + * vertical and horizontal scrollbars will be visible for this + * text area. + */ + // @ts-ignore + constructor(text: string, rows: number, columns: number) + /** + * Constructs a new text area with the specified text, + * and with the rows, columns, and scroll bar visibility + * as specified. All TextArea constructors defer to + * this one. + *

+ * The TextArea class defines several constants + * that can be supplied as values for the + * scrollbars argument: + *

    + *
  • SCROLLBARS_BOTH, + *
  • SCROLLBARS_VERTICAL_ONLY, + *
  • SCROLLBARS_HORIZONTAL_ONLY, + *
  • SCROLLBARS_NONE. + *
+ * Any other value for the + * scrollbars argument is invalid and will result in + * this text area being created with scrollbar visibility equal to + * the default value of {@link #SCROLLBARS_BOTH}. + */ + // @ts-ignore + constructor(text: string, rows: number, columns: number, scrollbars: number) + // @ts-ignore + public static SCROLLBARS_BOTH: number; + // @ts-ignore + public static SCROLLBARS_VERTICAL_ONLY: number; + // @ts-ignore + public static SCROLLBARS_HORIZONTAL_ONLY: number; + // @ts-ignore + public static SCROLLBARS_NONE: number; + /** + * Creates the TextArea's peer. The peer allows us to modify + * the appearance of the TextArea without changing any of its + * functionality. + */ + // @ts-ignore + public addNotify(): void; + /** + * Inserts the specified text at the specified position + * in this text area. + *

Note that passing null or inconsistent + * parameters is invalid and will result in unspecified + * behavior. + */ + // @ts-ignore + public insert(str: string, pos: number): void; + // @ts-ignore + public insertText(str: string, pos: number): void; + /** + * Appends the given text to the text area's current text. + *

Note that passing null or inconsistent + * parameters is invalid and will result in unspecified + * behavior. + */ + // @ts-ignore + public append(str: string): void; + // @ts-ignore + public appendText(str: string): void; + /** + * Replaces text between the indicated start and end positions + * with the specified replacement text. The text at the end + * position will not be replaced. The text at the start + * position will be replaced (unless the start position is the + * same as the end position). + * The text position is zero-based. The inserted substring may be + * of a different length than the text it replaces. + *

Note that passing null or inconsistent + * parameters is invalid and will result in unspecified + * behavior. + */ + // @ts-ignore + public replaceRange(str: string, start: number, end: number): void; + // @ts-ignore + public replaceText(str: string, start: number, end: number): void; + /** + * Returns the number of rows in the text area. + */ + // @ts-ignore + public getRows(): number; + /** + * Sets the number of rows for this text area. + */ + // @ts-ignore + public setRows(rows: number): void; + /** + * Returns the number of columns in this text area. + */ + // @ts-ignore + public getColumns(): number; + /** + * Sets the number of columns for this text area. + */ + // @ts-ignore + public setColumns(columns: number): void; + /** + * Returns an enumerated value that indicates which scroll bars + * the text area uses. + *

+ * The TextArea class defines four integer constants + * that are used to specify which scroll bars are available. + * TextArea has one constructor that gives the + * application discretion over scroll bars. + */ + // @ts-ignore + public getScrollbarVisibility(): number; + /** + * Determines the preferred size of a text area with the specified + * number of rows and columns. + */ + // @ts-ignore + public getPreferredSize(rows: number, columns: number): java.awt.Dimension; + // @ts-ignore + public preferredSize(rows: number, columns: number): java.awt.Dimension; + /** + * Determines the preferred size of this text area. + */ + // @ts-ignore + public getPreferredSize(): java.awt.Dimension; + // @ts-ignore + public preferredSize(): java.awt.Dimension; + /** + * Determines the minimum size of a text area with the specified + * number of rows and columns. + */ + // @ts-ignore + public getMinimumSize(rows: number, columns: number): java.awt.Dimension; + // @ts-ignore + public minimumSize(rows: number, columns: number): java.awt.Dimension; + /** + * Determines the minimum size of this text area. + */ + // @ts-ignore + public getMinimumSize(): java.awt.Dimension; + // @ts-ignore + public minimumSize(): java.awt.Dimension; + /** + * Returns a string representing the state of this TextArea. + * This method is intended to be used only for debugging purposes, and the + * content and format of the returned string may vary between + * implementations. The returned string may be empty but may not be + * null. + */ + // @ts-ignore + protected paramString(): string; + /** + * Returns the AccessibleContext associated with + * this TextArea. For text areas, the + * AccessibleContext takes the form of an + * AccessibleAWTTextArea. + * A new AccessibleAWTTextArea instance is created if necessary. + */ + // @ts-ignore + public getAccessibleContext(): any /*javax.accessibility.AccessibleContext*/; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.TextComponent.AccessibleAWTTextComponent.d.ts b/packages/types/dist/typings/jdk/java.awt.TextComponent.AccessibleAWTTextComponent.d.ts new file mode 100644 index 00000000..c1caa78d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.TextComponent.AccessibleAWTTextComponent.d.ts @@ -0,0 +1,114 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace TextComponent { + // @ts-ignore + protected class AccessibleAWTTextComponent extends java.awt.Component.AccessibleAWTComponent { + /** + * Constructs an AccessibleAWTTextComponent. Adds a listener to track + * caret change. + */ + // @ts-ignore + constructor() + /** + * TextListener notification of a text value change. + */ + // @ts-ignore + public textValueChanged(textEvent: java.awt.event.TextEvent): void; + /** + * Gets the state set of the TextComponent. + * The AccessibleStateSet of an object is composed of a set of + * unique AccessibleStates. A change in the AccessibleStateSet + * of an object will cause a PropertyChangeEvent to be fired + * for the AccessibleContext.ACCESSIBLE_STATE_PROPERTY property. + */ + // @ts-ignore + public getAccessibleStateSet(): any /*javax.accessibility.AccessibleStateSet*/; + /** + * Gets the role of this object. + */ + // @ts-ignore + public getAccessibleRole(): any /*javax.accessibility.AccessibleRole*/; + /** + * Get the AccessibleText associated with this object. In the + * implementation of the Java Accessibility API for this class, + * return this object, which is responsible for implementing the + * AccessibleText interface on behalf of itself. + */ + // @ts-ignore + public getAccessibleText(): any /*javax.accessibility.AccessibleText*/; + /** + * Given a point in local coordinates, return the zero-based index + * of the character under that Point. If the point is invalid, + * this method returns -1. + */ + // @ts-ignore + public getIndexAtPoint(p: java.awt.Point): number; + /** + * Determines the bounding box of the character at the given + * index into the string. The bounds are returned in local + * coordinates. If the index is invalid a null rectangle + * is returned. + */ + // @ts-ignore + public getCharacterBounds(i: number): java.awt.Rectangle; + /** + * Returns the number of characters (valid indicies) + */ + // @ts-ignore + public getCharCount(): number; + /** + * Returns the zero-based offset of the caret. + * Note: The character to the right of the caret will have the + * same index value as the offset (the caret is between + * two characters). + */ + // @ts-ignore + public getCaretPosition(): number; + /** + * Returns the AttributeSet for a given character (at a given index). + */ + // @ts-ignore + public getCharacterAttribute(i: number): any /*javax.swing.text.AttributeSet*/; + /** + * Returns the start offset within the selected text. + * If there is no selection, but there is + * a caret, the start and end offsets will be the same. + * Return 0 if the text is empty, or the caret position + * if no selection. + */ + // @ts-ignore + public getSelectionStart(): number; + /** + * Returns the end offset within the selected text. + * If there is no selection, but there is + * a caret, the start and end offsets will be the same. + * Return 0 if the text is empty, or the caret position + * if no selection. + */ + // @ts-ignore + public getSelectionEnd(): number; + /** + * Returns the portion of the text that is selected. + */ + // @ts-ignore + public getSelectedText(): string; + /** + * Returns the String at a given index. + */ + // @ts-ignore + public getAtIndex(part: number, index: number): string; + /** + * Returns the String after a given index. + */ + // @ts-ignore + public getAfterIndex(part: number, index: number): string; + /** + * Returns the String before a given index. + */ + // @ts-ignore + public getBeforeIndex(part: number, index: number): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.TextComponent.d.ts b/packages/types/dist/typings/jdk/java.awt.TextComponent.d.ts new file mode 100644 index 00000000..57164bf5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.TextComponent.d.ts @@ -0,0 +1,264 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class TextComponent extends java.awt.Component { + // @ts-ignore + protected textListener: java.awt.event.TextListener; + /** + * Enables or disables input method support for this text component. If input + * method support is enabled and the text component also processes key events, + * incoming events are offered to the current input method and will only be + * processed by the component or dispatched to its listeners if the input method + * does not consume them. Whether and how input method support for this text + * component is enabled or disabled by default is implementation dependent. + */ + // @ts-ignore + public enableInputMethods(enable: boolean): void; + // @ts-ignore + public getInputMethodRequests(): java.awt.im.InputMethodRequests; + /** + * Makes this Component displayable by connecting it to a + * native screen resource. + * This method is called internally by the toolkit and should + * not be called directly by programs. + */ + // @ts-ignore + public addNotify(): void; + /** + * Removes the TextComponent's peer. + * The peer allows us to modify the appearance of the + * TextComponent without changing its + * functionality. + */ + // @ts-ignore + public removeNotify(): void; + /** + * Sets the text that is presented by this + * text component to be the specified text. + */ + // @ts-ignore + public setText(t: string): void; + /** + * Returns the text that is presented by this text component. + * By default, this is an empty string. + */ + // @ts-ignore + public getText(): string; + /** + * Returns the selected text from the text that is + * presented by this text component. + */ + // @ts-ignore + public getSelectedText(): string; + /** + * Indicates whether or not this text component is editable. + */ + // @ts-ignore + public isEditable(): boolean; + /** + * Sets the flag that determines whether or not this + * text component is editable. + *

+ * If the flag is set to true, this text component + * becomes user editable. If the flag is set to false, + * the user cannot change the text of this text component. + * By default, non-editable text components have a background color + * of SystemColor.control. This default can be overridden by + * calling setBackground. + */ + // @ts-ignore + public setEditable(b: boolean): void; + /** + * Gets the background color of this text component. + * By default, non-editable text components have a background color + * of SystemColor.control. This default can be overridden by + * calling setBackground. + */ + // @ts-ignore + public getBackground(): java.awt.Color; + /** + * Sets the background color of this text component. + */ + // @ts-ignore + public setBackground(c: java.awt.Color): void; + /** + * Gets the start position of the selected text in + * this text component. + */ + // @ts-ignore + public getSelectionStart(): number; + /** + * Sets the selection start for this text component to + * the specified position. The new start point is constrained + * to be at or before the current selection end. It also + * cannot be set to less than zero, the beginning of the + * component's text. + * If the caller supplies a value for selectionStart + * that is out of bounds, the method enforces these constraints + * silently, and without failure. + */ + // @ts-ignore + public setSelectionStart(selectionStart: number): void; + /** + * Gets the end position of the selected text in + * this text component. + */ + // @ts-ignore + public getSelectionEnd(): number; + /** + * Sets the selection end for this text component to + * the specified position. The new end point is constrained + * to be at or after the current selection start. It also + * cannot be set beyond the end of the component's text. + * If the caller supplies a value for selectionEnd + * that is out of bounds, the method enforces these constraints + * silently, and without failure. + */ + // @ts-ignore + public setSelectionEnd(selectionEnd: number): void; + /** + * Selects the text between the specified start and end positions. + *

+ * This method sets the start and end positions of the + * selected text, enforcing the restriction that the start position + * must be greater than or equal to zero. The end position must be + * greater than or equal to the start position, and less than or + * equal to the length of the text component's text. The + * character positions are indexed starting with zero. + * The length of the selection is + * endPosition - startPosition, so the + * character at endPosition is not selected. + * If the start and end positions of the selected text are equal, + * all text is deselected. + *

+ * If the caller supplies values that are inconsistent or out of + * bounds, the method enforces these constraints silently, and + * without failure. Specifically, if the start position or end + * position is greater than the length of the text, it is reset to + * equal the text length. If the start position is less than zero, + * it is reset to zero, and if the end position is less than the + * start position, it is reset to the start position. + */ + // @ts-ignore + public select(selectionStart: number, selectionEnd: number): void; + /** + * Selects all the text in this text component. + */ + // @ts-ignore + public selectAll(): void; + /** + * Sets the position of the text insertion caret. + * The caret position is constrained to be between 0 + * and the last character of the text, inclusive. + * If the passed-in value is greater than this range, + * the value is set to the last character (or 0 if + * the TextComponent contains no text) + * and no error is returned. If the passed-in value is + * less than 0, an IllegalArgumentException + * is thrown. + */ + // @ts-ignore + public setCaretPosition(position: number): void; + /** + * Returns the position of the text insertion caret. + * The caret position is constrained to be between 0 + * and the last character of the text, inclusive. + * If the text or caret have not been set, the default + * caret position is 0. + */ + // @ts-ignore + public getCaretPosition(): number; + /** + * Adds the specified text event listener to receive text events + * from this text component. + * If l is null, no exception is + * thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public addTextListener(l: java.awt.event.TextListener): void; + /** + * Removes the specified text event listener so that it no longer + * receives text events from this text component + * If l is null, no exception is + * thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public removeTextListener(l: java.awt.event.TextListener): void; + /** + * Returns an array of all the text listeners + * registered on this text component. + */ + // @ts-ignore + public getTextListeners(): java.awt.event.TextListener[]; + /** + * Returns an array of all the objects currently registered + * as FooListeners + * upon this TextComponent. + * FooListeners are registered using the + * addFooListener method. + *

+ * You can specify the listenerType argument + * with a class literal, such as + * FooListener.class. + * For example, you can query a + * TextComponent t + * for its text listeners with the following code: + *

TextListener[] tls = (TextListener[])(t.getListeners(TextListener.class));
+ * If no such listeners exist, this method returns an empty array. + */ + // @ts-ignore + public getListeners(listenerType: java.lang.Class): java.util.EventListener[]; + /** + * Processes events on this text component. If the event is a + * TextEvent, it invokes the processTextEvent + * method else it invokes its superclass's processEvent. + *

Note that if the event parameter is null + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processEvent(e: java.awt.AWTEvent): void; + /** + * Processes text events occurring on this text component by + * dispatching them to any registered TextListener objects. + *

+ * NOTE: This method will not be called unless text events + * are enabled for this component. This happens when one of the + * following occurs: + *

    + *
  • A TextListener object is registered + * via addTextListener + *
  • Text events are enabled via enableEvents + *
+ *

Note that if the event parameter is null + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processTextEvent(e: java.awt.event.TextEvent): void; + /** + * Returns a string representing the state of this + * TextComponent. This + * method is intended to be used only for debugging purposes, and the + * content and format of the returned string may vary between + * implementations. The returned string may be empty but may not be + * null. + */ + // @ts-ignore + protected paramString(): string; + /** + * Gets the AccessibleContext associated with this TextComponent. + * For text components, the AccessibleContext takes the form of an + * AccessibleAWTTextComponent. + * A new AccessibleAWTTextComponent instance is created if necessary. + */ + // @ts-ignore + public getAccessibleContext(): any /*javax.accessibility.AccessibleContext*/; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.TextField.AccessibleAWTTextField.d.ts b/packages/types/dist/typings/jdk/java.awt.TextField.AccessibleAWTTextField.d.ts new file mode 100644 index 00000000..0dcdb0a4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.TextField.AccessibleAWTTextField.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace TextField { + // @ts-ignore + protected class AccessibleAWTTextField extends java.awt.TextComponent.AccessibleAWTTextComponent { + // @ts-ignore + constructor() + /** + * Gets the state set of this object. + */ + // @ts-ignore + public getAccessibleStateSet(): any /*javax.accessibility.AccessibleStateSet*/; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.TextField.d.ts b/packages/types/dist/typings/jdk/java.awt.TextField.d.ts new file mode 100644 index 00000000..eb0ebf5a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.TextField.d.ts @@ -0,0 +1,225 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class TextField extends java.awt.TextComponent { + /** + * Constructs a new text field. + */ + // @ts-ignore + constructor() + /** + * Constructs a new text field initialized with the specified text. + */ + // @ts-ignore + constructor(text: string) + /** + * Constructs a new empty text field with the specified number + * of columns. A column is an approximate average character + * width that is platform-dependent. + */ + // @ts-ignore + constructor(columns: number) + /** + * Constructs a new text field initialized with the specified text + * to be displayed, and wide enough to hold the specified + * number of columns. A column is an approximate average character + * width that is platform-dependent. + */ + // @ts-ignore + constructor(text: string, columns: number) + /** + * Creates the TextField's peer. The peer allows us to modify the + * appearance of the TextField without changing its functionality. + */ + // @ts-ignore + public addNotify(): void; + /** + * Gets the character that is to be used for echoing. + *

+ * An echo character is useful for text fields where + * user input should not be echoed to the screen, as in + * the case of a text field for entering a password. + * If echoChar = 0, user + * input is echoed to the screen unchanged. + *

+ * A Java platform implementation may support only a limited, + * non-empty set of echo characters. This function returns the + * echo character originally requested via setEchoChar(). The echo + * character actually used by the TextField implementation might be + * different. + */ + // @ts-ignore + public getEchoChar(): string; + /** + * Sets the echo character for this text field. + *

+ * An echo character is useful for text fields where + * user input should not be echoed to the screen, as in + * the case of a text field for entering a password. + * Setting echoChar = 0 allows + * user input to be echoed to the screen again. + *

+ * A Java platform implementation may support only a limited, + * non-empty set of echo characters. Attempts to set an + * unsupported echo character will cause the default echo + * character to be used instead. Subsequent calls to getEchoChar() + * will return the echo character originally requested. This might + * or might not be identical to the echo character actually + * used by the TextField implementation. + */ + // @ts-ignore + public setEchoChar(c: string): void; + // @ts-ignore + public setEchoCharacter(c: string): void; + /** + * Sets the text that is presented by this + * text component to be the specified text. + */ + // @ts-ignore + public setText(t: string): void; + /** + * Indicates whether or not this text field has a + * character set for echoing. + *

+ * An echo character is useful for text fields where + * user input should not be echoed to the screen, as in + * the case of a text field for entering a password. + */ + // @ts-ignore + public echoCharIsSet(): boolean; + /** + * Gets the number of columns in this text field. A column is an + * approximate average character width that is platform-dependent. + */ + // @ts-ignore + public getColumns(): number; + /** + * Sets the number of columns in this text field. A column is an + * approximate average character width that is platform-dependent. + */ + // @ts-ignore + public setColumns(columns: number): void; + /** + * Gets the preferred size of this text field + * with the specified number of columns. + */ + // @ts-ignore + public getPreferredSize(columns: number): java.awt.Dimension; + // @ts-ignore + public preferredSize(columns: number): java.awt.Dimension; + /** + * Gets the preferred size of this text field. + */ + // @ts-ignore + public getPreferredSize(): java.awt.Dimension; + // @ts-ignore + public preferredSize(): java.awt.Dimension; + /** + * Gets the minimum dimensions for a text field with + * the specified number of columns. + */ + // @ts-ignore + public getMinimumSize(columns: number): java.awt.Dimension; + // @ts-ignore + public minimumSize(columns: number): java.awt.Dimension; + /** + * Gets the minimum dimensions for this text field. + */ + // @ts-ignore + public getMinimumSize(): java.awt.Dimension; + // @ts-ignore + public minimumSize(): java.awt.Dimension; + /** + * Adds the specified action listener to receive + * action events from this text field. + * If l is null, no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public addActionListener(l: java.awt.event.ActionListener): void; + /** + * Removes the specified action listener so that it no longer + * receives action events from this text field. + * If l is null, no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public removeActionListener(l: java.awt.event.ActionListener): void; + /** + * Returns an array of all the action listeners + * registered on this textfield. + */ + // @ts-ignore + public getActionListeners(): java.awt.event.ActionListener[]; + /** + * Returns an array of all the objects currently registered + * as FooListeners + * upon this TextField. + * FooListeners are registered using the + * addFooListener method. + *

+ * You can specify the listenerType argument + * with a class literal, such as + * FooListener.class. + * For example, you can query a + * TextField t + * for its action listeners with the following code: + *

ActionListener[] als = (ActionListener[])(t.getListeners(ActionListener.class));
+ * If no such listeners exist, this method returns an empty array. + */ + // @ts-ignore + public getListeners(listenerType: java.lang.Class): java.util.EventListener[]; + /** + * Processes events on this text field. If the event + * is an instance of ActionEvent, + * it invokes the processActionEvent + * method. Otherwise, it invokes processEvent + * on the superclass. + *

Note that if the event parameter is null + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processEvent(e: java.awt.AWTEvent): void; + /** + * Processes action events occurring on this text field by + * dispatching them to any registered + * ActionListener objects. + *

+ * This method is not called unless action events are + * enabled for this component. Action events are enabled + * when one of the following occurs: + *

    + *
  • An ActionListener object is registered + * via addActionListener. + *
  • Action events are enabled via enableEvents. + *
+ *

Note that if the event parameter is null + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processActionEvent(e: java.awt.event.ActionEvent): void; + /** + * Returns a string representing the state of this TextField. + * This method is intended to be used only for debugging purposes, and the + * content and format of the returned string may vary between + * implementations. The returned string may be empty but may not be + * null. + */ + // @ts-ignore + protected paramString(): string; + /** + * Gets the AccessibleContext associated with this TextField. + * For text fields, the AccessibleContext takes the form of an + * AccessibleAWTTextField. + * A new AccessibleAWTTextField instance is created if necessary. + */ + // @ts-ignore + public getAccessibleContext(): any /*javax.accessibility.AccessibleContext*/; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.TexturePaint.d.ts b/packages/types/dist/typings/jdk/java.awt.TexturePaint.d.ts new file mode 100644 index 00000000..dc105d08 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.TexturePaint.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class TexturePaint extends java.lang.Object { + /** + * Constructs a TexturePaint object. + */ + // @ts-ignore + constructor(txtr: java.awt.image.BufferedImage, anchor: java.awt.geom.Rectangle2D) + /** + * Returns the BufferedImage texture used to + * fill the shapes. + */ + // @ts-ignore + public getImage(): java.awt.image.BufferedImage; + /** + * Returns a copy of the anchor rectangle which positions and + * sizes the textured image. + */ + // @ts-ignore + public getAnchorRect(): java.awt.geom.Rectangle2D; + /** + * Creates and returns a {@link PaintContext} used to + * generate a tiled image pattern. + * See the {@link Paint#createContext specification} of the + * method in the {@link Paint} interface for information + * on null parameter handling. + */ + // @ts-ignore + public createContext(cm: java.awt.image.ColorModel, deviceBounds: java.awt.Rectangle, userBounds: java.awt.geom.Rectangle2D, xform: java.awt.geom.AffineTransform, hints: java.awt.RenderingHints): java.awt.PaintContext; + /** + * Returns the transparency mode for this TexturePaint. + */ + // @ts-ignore + public getTransparency(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Toolkit.d.ts b/packages/types/dist/typings/jdk/java.awt.Toolkit.d.ts new file mode 100644 index 00000000..08c7ad39 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Toolkit.d.ts @@ -0,0 +1,824 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + abstract class Toolkit extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + protected desktopProperties: java.util.Map; + // @ts-ignore + protected desktopPropsSupport: java.beans.PropertyChangeSupport; + /** + * Creates this toolkit's implementation of the Desktop + * using the specified peer interface. + */ + // @ts-ignore + protected abstract createDesktopPeer(target: java.awt.Desktop): java.awt.peer.DesktopPeer; + /** + * Creates this toolkit's implementation of Button using + * the specified peer interface. + */ + // @ts-ignore + protected abstract createButton(target: java.awt.Button): java.awt.peer.ButtonPeer; + /** + * Creates this toolkit's implementation of TextField using + * the specified peer interface. + */ + // @ts-ignore + protected abstract createTextField(target: java.awt.TextField): java.awt.peer.TextFieldPeer; + /** + * Creates this toolkit's implementation of Label using + * the specified peer interface. + */ + // @ts-ignore + protected abstract createLabel(target: java.awt.Label): java.awt.peer.LabelPeer; + /** + * Creates this toolkit's implementation of List using + * the specified peer interface. + */ + // @ts-ignore + protected abstract createList(target: java.awt.List): java.awt.peer.ListPeer; + /** + * Creates this toolkit's implementation of Checkbox using + * the specified peer interface. + */ + // @ts-ignore + protected abstract createCheckbox(target: java.awt.Checkbox): java.awt.peer.CheckboxPeer; + /** + * Creates this toolkit's implementation of Scrollbar using + * the specified peer interface. + */ + // @ts-ignore + protected abstract createScrollbar(target: java.awt.Scrollbar): java.awt.peer.ScrollbarPeer; + /** + * Creates this toolkit's implementation of ScrollPane using + * the specified peer interface. + */ + // @ts-ignore + protected abstract createScrollPane(target: java.awt.ScrollPane): java.awt.peer.ScrollPanePeer; + /** + * Creates this toolkit's implementation of TextArea using + * the specified peer interface. + */ + // @ts-ignore + protected abstract createTextArea(target: java.awt.TextArea): java.awt.peer.TextAreaPeer; + /** + * Creates this toolkit's implementation of Choice using + * the specified peer interface. + */ + // @ts-ignore + protected abstract createChoice(target: java.awt.Choice): java.awt.peer.ChoicePeer; + /** + * Creates this toolkit's implementation of Frame using + * the specified peer interface. + */ + // @ts-ignore + protected abstract createFrame(target: java.awt.Frame): java.awt.peer.FramePeer; + /** + * Creates this toolkit's implementation of Canvas using + * the specified peer interface. + */ + // @ts-ignore + protected abstract createCanvas(target: java.awt.Canvas): java.awt.peer.CanvasPeer; + /** + * Creates this toolkit's implementation of Panel using + * the specified peer interface. + */ + // @ts-ignore + protected abstract createPanel(target: java.awt.Panel): java.awt.peer.PanelPeer; + /** + * Creates this toolkit's implementation of Window using + * the specified peer interface. + */ + // @ts-ignore + protected abstract createWindow(target: java.awt.Window): java.awt.peer.WindowPeer; + /** + * Creates this toolkit's implementation of Dialog using + * the specified peer interface. + */ + // @ts-ignore + protected abstract createDialog(target: java.awt.Dialog): java.awt.peer.DialogPeer; + /** + * Creates this toolkit's implementation of MenuBar using + * the specified peer interface. + */ + // @ts-ignore + protected abstract createMenuBar(target: java.awt.MenuBar): java.awt.peer.MenuBarPeer; + /** + * Creates this toolkit's implementation of Menu using + * the specified peer interface. + */ + // @ts-ignore + protected abstract createMenu(target: java.awt.Menu): java.awt.peer.MenuPeer; + /** + * Creates this toolkit's implementation of PopupMenu using + * the specified peer interface. + */ + // @ts-ignore + protected abstract createPopupMenu(target: java.awt.PopupMenu): java.awt.peer.PopupMenuPeer; + /** + * Creates this toolkit's implementation of MenuItem using + * the specified peer interface. + */ + // @ts-ignore + protected abstract createMenuItem(target: java.awt.MenuItem): java.awt.peer.MenuItemPeer; + /** + * Creates this toolkit's implementation of FileDialog using + * the specified peer interface. + */ + // @ts-ignore + protected abstract createFileDialog(target: java.awt.FileDialog): java.awt.peer.FileDialogPeer; + /** + * Creates this toolkit's implementation of CheckboxMenuItem using + * the specified peer interface. + */ + // @ts-ignore + protected abstract createCheckboxMenuItem(target: java.awt.CheckboxMenuItem): java.awt.peer.CheckboxMenuItemPeer; + /** + * Obtains this toolkit's implementation of helper class for + * MouseInfo operations. + */ + // @ts-ignore + protected getMouseInfoPeer(): java.awt.peer.MouseInfoPeer; + /** + * Creates a peer for a component or container. This peer is windowless + * and allows the Component and Container classes to be extended directly + * to create windowless components that are defined entirely in java. + */ + // @ts-ignore + protected createComponent(target: java.awt.Component): java.awt.peer.LightweightPeer; + /** + * Creates this toolkit's implementation of Font using + * the specified peer interface. + */ + // @ts-ignore + protected abstract getFontPeer(name: string, style: number): java.awt.peer.FontPeer; + /** + * Fills in the integer array that is supplied as an argument + * with the current system color values. + */ + // @ts-ignore + protected loadSystemColors(systemColors: number): void; + /** + * Controls whether the layout of Containers is validated dynamically + * during resizing, or statically, after resizing is complete. + * Use {@code isDynamicLayoutActive()} to detect if this feature enabled + * in this program and is supported by this operating system + * and/or window manager. + * Note that this feature is supported not on all platforms, and + * conversely, that this feature cannot be turned off on some platforms. + * On these platforms where dynamic layout during resizing is not supported + * (or is always supported), setting this property has no effect. + * Note that this feature can be set or unset as a property of the + * operating system or window manager on some platforms. On such + * platforms, the dynamic resize property must be set at the operating + * system or window manager level before this method can take effect. + * This method does not change support or settings of the underlying + * operating system or + * window manager. The OS/WM support can be + * queried using getDesktopProperty("awt.dynamicLayoutSupported") method. + */ + // @ts-ignore + public setDynamicLayout(dynamic: boolean): void; + /** + * Returns whether the layout of Containers is validated dynamically + * during resizing, or statically, after resizing is complete. + * Note: this method returns the value that was set programmatically; + * it does not reflect support at the level of the operating system + * or window manager for dynamic layout on resizing, or the current + * operating system or window manager settings. The OS/WM support can + * be queried using getDesktopProperty("awt.dynamicLayoutSupported"). + */ + // @ts-ignore + protected isDynamicLayoutSet(): boolean; + /** + * Returns whether dynamic layout of Containers on resize is + * currently active (both set in program + * ( {@code isDynamicLayoutSet()} ) + * , and supported + * by the underlying operating system and/or window manager). + * If dynamic layout is currently inactive then Containers + * re-layout their components when resizing is completed. As a result + * the {@code Component.validate()} method will be invoked only + * once per resize. + * If dynamic layout is currently active then Containers + * re-layout their components on every native resize event and + * the {@code validate()} method will be invoked each time. + * The OS/WM support can be queried using + * the getDesktopProperty("awt.dynamicLayoutSupported") method. + */ + // @ts-ignore + public isDynamicLayoutActive(): boolean; + /** + * Gets the size of the screen. On systems with multiple displays, the + * primary display is used. Multi-screen aware display dimensions are + * available from GraphicsConfiguration and + * GraphicsDevice. + */ + // @ts-ignore + public abstract getScreenSize(): java.awt.Dimension; + /** + * Returns the screen resolution in dots-per-inch. + */ + // @ts-ignore + public abstract getScreenResolution(): number; + /** + * Gets the insets of the screen. + */ + // @ts-ignore + public getScreenInsets(gc: java.awt.GraphicsConfiguration): java.awt.Insets; + /** + * Determines the color model of this toolkit's screen. + *

+ * ColorModel is an abstract class that + * encapsulates the ability to translate between the + * pixel values of an image and its red, green, blue, + * and alpha components. + *

+ * This toolkit method is called by the + * getColorModel method + * of the Component class. + */ + // @ts-ignore + public abstract getColorModel(): java.awt.image.ColorModel; + /** + * Returns the names of the available fonts in this toolkit.

+ * For 1.1, the following font names are deprecated (the replacement + * name follows): + *

    + *
  • TimesRoman (use Serif) + *
  • Helvetica (use SansSerif) + *
  • Courier (use Monospaced) + *

+ * The ZapfDingbats fontname is also deprecated in 1.1 but the characters + * are defined in Unicode starting at 0x2700, and as of 1.1 Java supports + * those characters. + */ + // @ts-ignore + public abstract getFontList(): java.lang.String[]; + /** + * Gets the screen device metrics for rendering of the font. + */ + // @ts-ignore + public abstract getFontMetrics(font: java.awt.Font): java.awt.FontMetrics; + /** + * Synchronizes this toolkit's graphics state. Some window systems + * may do buffering of graphics events. + *

+ * This method ensures that the display is up-to-date. It is useful + * for animation. + */ + // @ts-ignore + public abstract sync(): void; + /** + * Gets the default toolkit. + *

+ * If a system property named "java.awt.headless" is set + * to true then the headless implementation + * of Toolkit is used. + *

+ * If there is no "java.awt.headless" or it is set to + * false and there is a system property named + * "awt.toolkit", + * that property is treated as the name of a class that is a subclass + * of Toolkit; + * otherwise the default platform-specific implementation of + * Toolkit is used. + *

+ * Also loads additional classes into the VM, using the property + * 'assistive_technologies' specified in the Sun reference + * implementation by a line in the 'accessibility.properties' + * file. The form is "assistive_technologies=..." where + * the "..." is a comma-separated list of assistive technology + * classes to load. Each class is loaded in the order given + * and a single instance of each is created using + * Class.forName(class).newInstance(). This is done just after + * the AWT toolkit is created. All errors are handled via an + * AWTError exception. + */ + // @ts-ignore + public static getDefaultToolkit(): java.awt.Toolkit; + /** + * Returns an image which gets pixel data from the specified file, + * whose format can be either GIF, JPEG or PNG. + * The underlying toolkit attempts to resolve multiple requests + * with the same filename to the same returned Image. + *

+ * Since the mechanism required to facilitate this sharing of + * Image objects may continue to hold onto images + * that are no longer in use for an indefinite period of time, + * developers are encouraged to implement their own caching of + * images by using the {@link #createImage(java.lang.String) createImage} + * variant wherever available. + * If the image data contained in the specified file changes, + * the Image object returned from this method may + * still contain stale information which was loaded from the + * file after a prior call. + * Previously loaded image data can be manually discarded by + * calling the {@link Image#flush flush} method on the + * returned Image. + *

+ * This method first checks if there is a security manager installed. + * If so, the method calls the security manager's + * checkRead method with the file specified to ensure + * that the access to the image is allowed. + */ + // @ts-ignore + public abstract getImage(filename: string): java.awt.Image; + /** + * Returns an image which gets pixel data from the specified file. + * The returned Image is a new object which will not be shared + * with any other caller of this method or its getImage variant. + *

+ * This method first checks if there is a security manager installed. + * If so, the method calls the security manager's + * checkRead method with the specified file to ensure + * that the image creation is allowed. + */ + // @ts-ignore + public abstract createImage(filename: string): java.awt.Image; + /** + * Prepares an image for rendering. + *

+ * If the values of the width and height arguments are both + * -1, this method prepares the image for rendering + * on the default screen; otherwise, this method prepares an image + * for rendering on the default screen at the specified width and height. + *

+ * The image data is downloaded asynchronously in another thread, + * and an appropriately scaled screen representation of the image is + * generated. + *

+ * This method is called by components prepareImage + * methods. + *

+ * Information on the flags returned by this method can be found + * with the definition of the ImageObserver interface. + */ + // @ts-ignore + public abstract prepareImage(image: java.awt.Image, width: number, height: number, observer: java.awt.image.ImageObserver): boolean; + /** + * Indicates the construction status of a specified image that is + * being prepared for display. + *

+ * If the values of the width and height arguments are both + * -1, this method returns the construction status of + * a screen representation of the specified image in this toolkit. + * Otherwise, this method returns the construction status of a + * scaled representation of the image at the specified width + * and height. + *

+ * This method does not cause the image to begin loading. + * An application must call prepareImage to force + * the loading of an image. + *

+ * This method is called by the component's checkImage + * methods. + *

+ * Information on the flags returned by this method can be found + * with the definition of the ImageObserver interface. + */ + // @ts-ignore + public abstract checkImage(image: java.awt.Image, width: number, height: number, observer: java.awt.image.ImageObserver): number; + /** + * Creates an image which decodes the image stored in the specified + * byte array. + *

+ * The data must be in some image format, such as GIF or JPEG, + * that is supported by this toolkit. + */ + // @ts-ignore + public createImage(imagedata: number): java.awt.Image; + /** + * Gets a PrintJob object which is the result of initiating + * a print operation on the toolkit's platform. + *

+ * Each actual implementation of this method should first check if there + * is a security manager installed. If there is, the method should call + * the security manager's checkPrintJobAccess method to + * ensure initiation of a print operation is allowed. If the default + * implementation of checkPrintJobAccess is used (that is, + * that method is not overriden), then this results in a call to the + * security manager's checkPermission method with a + * RuntimePermission("queuePrintJob") permission. + */ + // @ts-ignore + public abstract getPrintJob(frame: java.awt.Frame, jobtitle: string, props: java.util.Properties): java.awt.PrintJob; + /** + * Gets a PrintJob object which is the result of initiating + * a print operation on the toolkit's platform. + *

+ * Each actual implementation of this method should first check if there + * is a security manager installed. If there is, the method should call + * the security manager's checkPrintJobAccess method to + * ensure initiation of a print operation is allowed. If the default + * implementation of checkPrintJobAccess is used (that is, + * that method is not overriden), then this results in a call to the + * security manager's checkPermission method with a + * RuntimePermission("queuePrintJob") permission. + */ + // @ts-ignore + public getPrintJob(frame: java.awt.Frame, jobtitle: string, jobAttributes: java.awt.JobAttributes, pageAttributes: java.awt.PageAttributes): java.awt.PrintJob; + /** + * Emits an audio beep depending on native system settings and hardware + * capabilities. + */ + // @ts-ignore + public abstract beep(): void; + /** + * Gets the singleton instance of the system Clipboard which interfaces + * with clipboard facilities provided by the native platform. This + * clipboard enables data transfer between Java programs and native + * applications which use native clipboard facilities. + *

+ * In addition to any and all formats specified in the flavormap.properties + * file, or other file specified by the AWT.DnD.flavorMapFileURL + * Toolkit property, text returned by the system Clipboard's + * getTransferData() method is available in the following flavors: + *

    + *
  • DataFlavor.stringFlavor
  • + *
  • DataFlavor.plainTextFlavor (deprecated)
  • + *
+ * As with java.awt.datatransfer.StringSelection, if the + * requested flavor is DataFlavor.plainTextFlavor, or an + * equivalent flavor, a Reader is returned. Note: The behavior of + * the system Clipboard's getTransferData() method for + * DataFlavor.plainTextFlavor, and equivalent DataFlavors, is + * inconsistent with the definition of DataFlavor.plainTextFlavor + * . Because of this, support for + * DataFlavor.plainTextFlavor, and equivalent flavors, is + * deprecated. + *

+ * Each actual implementation of this method should first check if there + * is a security manager installed. If there is, the method should call + * the security manager's {@link SecurityManager#checkPermission + * checkPermission} method to check {@code AWTPermission("accessClipboard")}. + */ + // @ts-ignore + public abstract getSystemClipboard(): java.awt.datatransfer.Clipboard; + /** + * Gets the singleton instance of the system selection as a + * Clipboard object. This allows an application to read and + * modify the current, system-wide selection. + *

+ * An application is responsible for updating the system selection whenever + * the user selects text, using either the mouse or the keyboard. + * Typically, this is implemented by installing a + * FocusListener on all Components which support + * text selection, and, between FOCUS_GAINED and + * FOCUS_LOST events delivered to that Component, + * updating the system selection Clipboard when the selection + * changes inside the Component. Properly updating the system + * selection ensures that a Java application will interact correctly with + * native applications and other Java applications running simultaneously + * on the system. Note that java.awt.TextComponent and + * javax.swing.text.JTextComponent already adhere to this + * policy. When using these classes, and their subclasses, developers need + * not write any additional code. + *

+ * Some platforms do not support a system selection Clipboard. + * On those platforms, this method will return null. In such a + * case, an application is absolved from its responsibility to update the + * system selection Clipboard as described above. + *

+ * Each actual implementation of this method should first check if there + * is a security manager installed. If there is, the method should call + * the security manager's {@link SecurityManager#checkPermission + * checkPermission} method to check {@code AWTPermission("accessClipboard")}. + */ + // @ts-ignore + public getSystemSelection(): java.awt.datatransfer.Clipboard; + /** + * Determines which modifier key is the appropriate accelerator + * key for menu shortcuts. + *

+ * Menu shortcuts, which are embodied in the + * MenuShortcut class, are handled by the + * MenuBar class. + *

+ * By default, this method returns Event.CTRL_MASK. + * Toolkit implementations should override this method if the + * Control key isn't the correct key for accelerators. + */ + // @ts-ignore + public getMenuShortcutKeyMask(): number; + /** + * Returns whether the given locking key on the keyboard is currently in + * its "on" state. + * Valid key codes are + * {@link java.awt.event.KeyEvent#VK_CAPS_LOCK VK_CAPS_LOCK}, + * {@link java.awt.event.KeyEvent#VK_NUM_LOCK VK_NUM_LOCK}, + * {@link java.awt.event.KeyEvent#VK_SCROLL_LOCK VK_SCROLL_LOCK}, and + * {@link java.awt.event.KeyEvent#VK_KANA_LOCK VK_KANA_LOCK}. + */ + // @ts-ignore + public getLockingKeyState(keyCode: number): boolean; + /** + * Sets the state of the given locking key on the keyboard. + * Valid key codes are + * {@link java.awt.event.KeyEvent#VK_CAPS_LOCK VK_CAPS_LOCK}, + * {@link java.awt.event.KeyEvent#VK_NUM_LOCK VK_NUM_LOCK}, + * {@link java.awt.event.KeyEvent#VK_SCROLL_LOCK VK_SCROLL_LOCK}, and + * {@link java.awt.event.KeyEvent#VK_KANA_LOCK VK_KANA_LOCK}. + *

+ * Depending on the platform, setting the state of a locking key may + * involve event processing and therefore may not be immediately + * observable through getLockingKeyState. + */ + // @ts-ignore + public setLockingKeyState(keyCode: number, on: boolean): void; + /** + * Give native peers the ability to query the native container + * given a native component (eg the direct parent may be lightweight). + */ + // @ts-ignore + protected static getNativeContainer(c: java.awt.Component): java.awt.Container; + /** + * Creates a new custom cursor object. + * If the image to display is invalid, the cursor will be hidden (made + * completely transparent), and the hotspot will be set to (0, 0). + *

Note that multi-frame images are invalid and may cause this + * method to hang. + */ + // @ts-ignore + public createCustomCursor(cursor: java.awt.Image, hotSpot: java.awt.Point, name: string): java.awt.Cursor; + /** + * Returns the supported cursor dimension which is closest to the desired + * sizes. Systems which only support a single cursor size will return that + * size regardless of the desired sizes. Systems which don't support custom + * cursors will return a dimension of 0, 0.

+ * Note: if an image is used whose dimensions don't match a supported size + * (as returned by this method), the Toolkit implementation will attempt to + * resize the image to a supported size. + * Since converting low-resolution images is difficult, + * no guarantees are made as to the quality of a cursor image which isn't a + * supported size. It is therefore recommended that this method + * be called and an appropriate image used so no image conversion is made. + */ + // @ts-ignore + public getBestCursorSize(preferredWidth: number, preferredHeight: number): java.awt.Dimension; + /** + * Returns the maximum number of colors the Toolkit supports in a custom cursor + * palette.

+ * Note: if an image is used which has more colors in its palette than + * the supported maximum, the Toolkit implementation will attempt to flatten the + * palette to the maximum. Since converting low-resolution images is difficult, + * no guarantees are made as to the quality of a cursor image which has more + * colors than the system supports. It is therefore recommended that this method + * be called and an appropriate image used so no image conversion is made. + */ + // @ts-ignore + public getMaximumCursorColors(): number; + /** + * Returns whether Toolkit supports this state for + * Frames. This method tells whether the UI + * concept of, say, maximization or iconification is + * supported. It will always return false for "compound" states + * like Frame.ICONIFIED|Frame.MAXIMIZED_VERT. + * In other words, the rule of thumb is that only queries with a + * single frame state constant as an argument are meaningful. + *

Note that supporting a given concept is a platform- + * dependent feature. Due to native limitations the Toolkit + * object may report a particular state as supported, however at + * the same time the Toolkit object will be unable to apply the + * state to a given frame. This circumstance has two following + * consequences: + *

    + *
  • Only the return value of {@code false} for the present + * method actually indicates that the given state is not + * supported. If the method returns {@code true} the given state + * may still be unsupported and/or unavailable for a particular + * frame. + *
  • The developer should consider examining the value of the + * {@link java.awt.event.WindowEvent#getNewState} method of the + * {@code WindowEvent} received through the {@link + * java.awt.event.WindowStateListener}, rather than assuming + * that the state given to the {@code setExtendedState()} method + * will be definitely applied. For more information see the + * documentation for the {@link Frame#setExtendedState} method. + *
+ */ + // @ts-ignore + public isFrameStateSupported(state: number): boolean; + /** + * Gets a property with the specified key and default. + * This method returns defaultValue if the property is not found. + */ + // @ts-ignore + public static getProperty(key: string, defaultValue: string): string; + /** + * Get the application's or applet's EventQueue instance. + * Depending on the Toolkit implementation, different EventQueues + * may be returned for different applets. Applets should + * therefore not assume that the EventQueue instance returned + * by this method will be shared by other applets or the system. + *

If there is a security manager then its + * {@link SecurityManager#checkPermission checkPermission} method + * is called to check {@code AWTPermission("accessEventQueue")}. + */ + // @ts-ignore + public getSystemEventQueue(): java.awt.EventQueue; + /** + * Gets the application's or applet's EventQueue + * instance, without checking access. For security reasons, + * this can only be called from a Toolkit subclass. + */ + // @ts-ignore + protected abstract getSystemEventQueueImpl(): java.awt.EventQueue; + /** + * Creates the peer for a DragSourceContext. + * Always throws InvalidDndOperationException if + * GraphicsEnvironment.isHeadless() returns true. + */ + // @ts-ignore + public abstract createDragSourceContextPeer(dge: java.awt.dnd.DragGestureEvent): java.awt.dnd.peer.DragSourceContextPeer; + /** + * Creates a concrete, platform dependent, subclass of the abstract + * DragGestureRecognizer class requested, and associates it with the + * DragSource, Component and DragGestureListener specified. + * subclasses should override this to provide their own implementation + */ + // @ts-ignore + public createDragGestureRecognizer(abstractRecognizerClass: java.lang.Class, ds: java.awt.dnd.DragSource, c: java.awt.Component, srcActions: number, dgl: java.awt.dnd.DragGestureListener): java.awt.dnd.DragGestureRecognizer; + /** + * Obtains a value for the specified desktop property. + * A desktop property is a uniquely named value for a resource that + * is Toolkit global in nature. Usually it also is an abstract + * representation for an underlying platform dependent desktop setting. + * For more information on desktop properties supported by the AWT see + * AWT Desktop Properties. + */ + // @ts-ignore + public getDesktopProperty(propertyName: string): java.lang.Object; + /** + * Sets the named desktop property to the specified value and fires a + * property change event to notify any listeners that the value has changed. + */ + // @ts-ignore + protected setDesktopProperty(name: string, newValue: java.lang.Object): void; + /** + * an opportunity to lazily evaluate desktop property values. + */ + // @ts-ignore + protected lazilyLoadDesktopProperty(name: string): java.lang.Object; + /** + * initializeDesktopProperties + */ + // @ts-ignore + protected initializeDesktopProperties(): void; + /** + * Adds the specified property change listener for the named desktop + * property. When a {@link java.beans.PropertyChangeListenerProxy} object is added, + * its property name is ignored, and the wrapped listener is added. + * If {@code name} is {@code null} or {@code pcl} is {@code null}, + * no exception is thrown and no action is performed. + */ + // @ts-ignore + public addPropertyChangeListener(name: string, pcl: java.beans.PropertyChangeListener): void; + /** + * Removes the specified property change listener for the named + * desktop property. When a {@link java.beans.PropertyChangeListenerProxy} object + * is removed, its property name is ignored, and + * the wrapped listener is removed. + * If {@code name} is {@code null} or {@code pcl} is {@code null}, + * no exception is thrown and no action is performed. + */ + // @ts-ignore + public removePropertyChangeListener(name: string, pcl: java.beans.PropertyChangeListener): void; + /** + * Returns an array of all the property change listeners + * registered on this toolkit. The returned array + * contains {@link java.beans.PropertyChangeListenerProxy} objects + * that associate listeners with the names of desktop properties. + */ + // @ts-ignore + public getPropertyChangeListeners(): java.beans.PropertyChangeListener[]; + /** + * Returns an array of all property change listeners + * associated with the specified name of a desktop property. + */ + // @ts-ignore + public getPropertyChangeListeners(propertyName: string): java.beans.PropertyChangeListener[]; + /** + * Returns whether the always-on-top mode is supported by this toolkit. + * To detect whether the always-on-top mode is supported for a + * particular Window, use {@link Window#isAlwaysOnTopSupported}. + */ + // @ts-ignore + public isAlwaysOnTopSupported(): boolean; + /** + * Returns whether the given modality type is supported by this toolkit. If + * a dialog with unsupported modality type is created, then + * Dialog.ModalityType.MODELESS is used instead. + */ + // @ts-ignore + public abstract isModalityTypeSupported(modalityType: java.awt.Dialog.ModalityType): boolean; + /** + * Returns whether the given modal exclusion type is supported by this + * toolkit. If an unsupported modal exclusion type property is set on a window, + * then Dialog.ModalExclusionType.NO_EXCLUDE is used instead. + */ + // @ts-ignore + public abstract isModalExclusionTypeSupported(modalExclusionType: java.awt.Dialog.ModalExclusionType): boolean; + /** + * Adds an AWTEventListener to receive all AWTEvents dispatched + * system-wide that conform to the given eventMask. + *

+ * First, if there is a security manager, its checkPermission + * method is called with an + * AWTPermission("listenToAllAWTEvents") permission. + * This may result in a SecurityException. + *

+ * eventMask is a bitmask of event types to receive. + * It is constructed by bitwise OR-ing together the event masks + * defined in AWTEvent. + *

+ * Note: event listener use is not recommended for normal + * application use, but are intended solely to support special + * purpose facilities including support for accessibility, + * event record/playback, and diagnostic tracing. + * If listener is null, no exception is thrown and no action is performed. + */ + // @ts-ignore + public addAWTEventListener(listener: java.awt.event.AWTEventListener, eventMask: number): void; + /** + * Removes an AWTEventListener from receiving dispatched AWTEvents. + *

+ * First, if there is a security manager, its checkPermission + * method is called with an + * AWTPermission("listenToAllAWTEvents") permission. + * This may result in a SecurityException. + *

+ * Note: event listener use is not recommended for normal + * application use, but are intended solely to support special + * purpose facilities including support for accessibility, + * event record/playback, and diagnostic tracing. + * If listener is null, no exception is thrown and no action is performed. + */ + // @ts-ignore + public removeAWTEventListener(listener: java.awt.event.AWTEventListener): void; + /** + * Returns an array of all the AWTEventListeners + * registered on this toolkit. + * If there is a security manager, its {@code checkPermission} + * method is called with an + * {@code AWTPermission("listenToAllAWTEvents")} permission. + * This may result in a SecurityException. + * Listeners can be returned + * within AWTEventListenerProxy objects, which also contain + * the event mask for the given listener. + * Note that listener objects + * added multiple times appear only once in the returned array. + */ + // @ts-ignore + public getAWTEventListeners(): java.awt.event.AWTEventListener[]; + /** + * Returns an array of all the AWTEventListeners + * registered on this toolkit which listen to all of the event + * types specified in the {@code eventMask} argument. + * If there is a security manager, its {@code checkPermission} + * method is called with an + * {@code AWTPermission("listenToAllAWTEvents")} permission. + * This may result in a SecurityException. + * Listeners can be returned + * within AWTEventListenerProxy objects, which also contain + * the event mask for the given listener. + * Note that listener objects + * added multiple times appear only once in the returned array. + */ + // @ts-ignore + public getAWTEventListeners(eventMask: number): java.awt.event.AWTEventListener[]; + /** + * Returns a map of visual attributes for the abstract level description + * of the given input method highlight, or null if no mapping is found. + * The style field of the input method highlight is ignored. The map + * returned is unmodifiable. + */ + // @ts-ignore + public abstract mapInputMethodHighlight(highlight: java.awt.im.InputMethodHighlight): java.util.Map; + /** + * Reports whether events from extra mouse buttons are allowed to be processed and posted into + * {@code EventQueue}. + *
+ * To change the returned value it is necessary to set the {@code sun.awt.enableExtraMouseButtons} + * property before the {@code Toolkit} class initialization. This setting could be done on the application + * startup by the following command: + *

+             * java -Dsun.awt.enableExtraMouseButtons=false Application
+             * 
+ * Alternatively, the property could be set in the application by using the following code: + *
+             * System.setProperty("sun.awt.enableExtraMouseButtons", "true");
+             * 
+ * before the {@code Toolkit} class initialization. + * If not set by the time of the {@code Toolkit} class initialization, this property will be + * initialized with {@code true}. + * Changing this value after the {@code Toolkit} class initialization will have no effect. + *

+ */ + // @ts-ignore + public areExtraMouseButtonsEnabled(): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Transparency.d.ts b/packages/types/dist/typings/jdk/java.awt.Transparency.d.ts new file mode 100644 index 00000000..a6e221e7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Transparency.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + interface Transparency { + // @ts-ignore + OPAQUE: number; + // @ts-ignore + BITMASK: number; + // @ts-ignore + TRANSLUCENT: number; + /** + * Returns the type of this Transparency. + */ + // @ts-ignore + getTransparency(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.TrayIcon.MessageType.d.ts b/packages/types/dist/typings/jdk/java.awt.TrayIcon.MessageType.d.ts new file mode 100644 index 00000000..2ddbbcec --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.TrayIcon.MessageType.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace TrayIcon { + // @ts-ignore + class MessageType extends java.lang.Enum { + // @ts-ignore + public static ERROR: java.awt.TrayIcon.MessageType; + // @ts-ignore + public static WARNING: java.awt.TrayIcon.MessageType; + // @ts-ignore + public static INFO: java.awt.TrayIcon.MessageType; + // @ts-ignore + public static NONE: java.awt.TrayIcon.MessageType; + // @ts-ignore + public static values(): java.awt.TrayIcon.MessageType[]; + // @ts-ignore + public static valueOf(name: string): java.awt.TrayIcon.MessageType; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.TrayIcon.d.ts b/packages/types/dist/typings/jdk/java.awt.TrayIcon.d.ts new file mode 100644 index 00000000..99344eba --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.TrayIcon.d.ts @@ -0,0 +1,220 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class TrayIcon extends java.lang.Object { + /** + * Creates a TrayIcon with the specified image. + */ + // @ts-ignore + constructor(image: java.awt.Image) + /** + * Creates a TrayIcon with the specified image and + * tooltip text. + */ + // @ts-ignore + constructor(image: java.awt.Image, tooltip: string) + /** + * Creates a TrayIcon with the specified image, + * tooltip and popup menu. + */ + // @ts-ignore + constructor(image: java.awt.Image, tooltip: string, popup: java.awt.PopupMenu) + /** + * Sets the image for this TrayIcon. The previous + * tray icon image is discarded without calling the {@link + * java.awt.Image#flush} method — you will need to call it + * manually. + *

If the image represents an animated image, it will be + * animated automatically. + *

See the {@link #setImageAutoSize(boolean)} property for + * details on the size of the displayed image. + *

Calling this method with the same image that is currently + * being used has no effect. + */ + // @ts-ignore + public setImage(image: java.awt.Image): void; + /** + * Returns the current image used for this TrayIcon. + */ + // @ts-ignore + public getImage(): java.awt.Image; + /** + * Sets the popup menu for this TrayIcon. If + * popup is null, no popup menu will be + * associated with this TrayIcon. + *

Note that this popup must not be added to any + * parent before or after it is set on the tray icon. If you add + * it to some parent, the popup may be removed from + * that parent. + *

The {@code popup} can be set on one {@code TrayIcon} only. + * Setting the same popup on multiple {@code TrayIcon}s will cause + * an {@code IllegalArgumentException}. + *

Note: Some platforms may not support + * showing the user-specified popup menu component when the user + * right-clicks the tray icon. In this situation, either no menu + * will be displayed or, on some systems, a native version of the + * menu may be displayed. + */ + // @ts-ignore + public setPopupMenu(popup: java.awt.PopupMenu): void; + /** + * Returns the popup menu associated with this TrayIcon. + */ + // @ts-ignore + public getPopupMenu(): java.awt.PopupMenu; + /** + * Sets the tooltip string for this TrayIcon. The + * tooltip is displayed automatically when the mouse hovers over + * the icon. Setting the tooltip to null removes any + * tooltip text. + * When displayed, the tooltip string may be truncated on some platforms; + * the number of characters that may be displayed is platform-dependent. + */ + // @ts-ignore + public setToolTip(tooltip: string): void; + /** + * Returns the tooltip string associated with this + * TrayIcon. + */ + // @ts-ignore + public getToolTip(): string; + /** + * Sets the auto-size property. Auto-size determines whether the + * tray image is automatically sized to fit the space allocated + * for the image on the tray. By default, the auto-size property + * is set to false. + *

If auto-size is false, and the image size + * doesn't match the tray icon space, the image is painted as-is + * inside that space — if larger than the allocated space, it will + * be cropped. + *

If auto-size is true, the image is stretched or shrunk to + * fit the tray icon space. + */ + // @ts-ignore + public setImageAutoSize(autosize: boolean): void; + /** + * Returns the value of the auto-size property. + */ + // @ts-ignore + public isImageAutoSize(): boolean; + /** + * Adds the specified mouse listener to receive mouse events from + * this TrayIcon. Calling this method with a + * null value has no effect. + *

Note: The {@code MouseEvent}'s coordinates (received + * from the {@code TrayIcon}) are relative to the screen, not the + * {@code TrayIcon}. + *

Note: The MOUSE_ENTERED and + * MOUSE_EXITED mouse events are not supported. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public addMouseListener(listener: java.awt.event.MouseListener): void; + /** + * Removes the specified mouse listener. Calling this method with + * null or an invalid value has no effect. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public removeMouseListener(listener: java.awt.event.MouseListener): void; + /** + * Returns an array of all the mouse listeners + * registered on this TrayIcon. + */ + // @ts-ignore + public getMouseListeners(): java.awt.event.MouseListener[]; + /** + * Adds the specified mouse listener to receive mouse-motion + * events from this TrayIcon. Calling this method + * with a null value has no effect. + *

Note: The {@code MouseEvent}'s coordinates (received + * from the {@code TrayIcon}) are relative to the screen, not the + * {@code TrayIcon}. + *

Note: The MOUSE_DRAGGED mouse event is not supported. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public addMouseMotionListener(listener: java.awt.event.MouseMotionListener): void; + /** + * Removes the specified mouse-motion listener. Calling this method with + * null or an invalid value has no effect. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public removeMouseMotionListener(listener: java.awt.event.MouseMotionListener): void; + /** + * Returns an array of all the mouse-motion listeners + * registered on this TrayIcon. + */ + // @ts-ignore + public getMouseMotionListeners(): java.awt.event.MouseMotionListener[]; + /** + * Returns the command name of the action event fired by this tray icon. + */ + // @ts-ignore + public getActionCommand(): string; + /** + * Sets the command name for the action event fired by this tray + * icon. By default, this action command is set to + * null. + */ + // @ts-ignore + public setActionCommand(command: string): void; + /** + * Adds the specified action listener to receive + * ActionEvents from this TrayIcon. + * Action events usually occur when a user selects the tray icon, + * using either the mouse or keyboard. The conditions in which + * action events are generated are platform-dependent. + *

Calling this method with a null value has no + * effect. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public addActionListener(listener: java.awt.event.ActionListener): void; + /** + * Removes the specified action listener. Calling this method with + * null or an invalid value has no effect. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public removeActionListener(listener: java.awt.event.ActionListener): void; + /** + * Returns an array of all the action listeners + * registered on this TrayIcon. + */ + // @ts-ignore + public getActionListeners(): java.awt.event.ActionListener[]; + /** + * Displays a popup message near the tray icon. The message will + * disappear after a time or if the user clicks on it. Clicking + * on the message may trigger an {@code ActionEvent}. + *

Either the caption or the text may be null, but an + * NullPointerException is thrown if both are + * null. + * When displayed, the caption or text strings may be truncated on + * some platforms; the number of characters that may be displayed is + * platform-dependent. + *

Note: Some platforms may not support + * showing a message. + */ + // @ts-ignore + public displayMessage(caption: string, text: string, messageType: java.awt.TrayIcon.MessageType): void; + /** + * Returns the size, in pixels, of the space that the tray icon + * occupies in the system tray. For the tray icon that is not yet + * added to the system tray, the returned size is equal to the + * result of the {@link SystemTray#getTrayIconSize}. + */ + // @ts-ignore + public getSize(): java.awt.Dimension; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Window.AccessibleAWTWindow.d.ts b/packages/types/dist/typings/jdk/java.awt.Window.AccessibleAWTWindow.d.ts new file mode 100644 index 00000000..158fef40 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Window.AccessibleAWTWindow.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace Window { + // @ts-ignore + protected class AccessibleAWTWindow extends java.awt.Container.AccessibleAWTContainer { + // @ts-ignore + constructor() + /** + * Get the role of this object. + */ + // @ts-ignore + public getAccessibleRole(): any /*javax.accessibility.AccessibleRole*/; + /** + * Get the state of this object. + */ + // @ts-ignore + public getAccessibleStateSet(): any /*javax.accessibility.AccessibleStateSet*/; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Window.Type.d.ts b/packages/types/dist/typings/jdk/java.awt.Window.Type.d.ts new file mode 100644 index 00000000..df010637 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Window.Type.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace Window { + // @ts-ignore + class Type extends java.lang.Enum { + // @ts-ignore + public static NORMAL: java.awt.Window.Type; + // @ts-ignore + public static UTILITY: java.awt.Window.Type; + // @ts-ignore + public static POPUP: java.awt.Window.Type; + // @ts-ignore + public static values(): java.awt.Window.Type[]; + // @ts-ignore + public static valueOf(name: string): java.awt.Window.Type; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.Window.d.ts b/packages/types/dist/typings/jdk/java.awt.Window.d.ts new file mode 100644 index 00000000..29e57b46 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.Window.d.ts @@ -0,0 +1,1201 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + // @ts-ignore + class Window extends java.awt.Container { + /** + * Constructs a new, initially invisible window with the specified + * {@code Frame} as its owner. The window will not be focusable + * unless its owner is showing on the screen. + *

+ * If there is a security manager set, it is invoked to check + * {@code AWTPermission("showWindowWithoutWarningBanner")}. + * If that check fails with a {@code SecurityException} then a warning + * banner is created. + */ + // @ts-ignore + constructor(owner: java.awt.Frame) + /** + * Constructs a new, initially invisible window with the specified + * {@code Window} as its owner. This window will not be focusable + * unless its nearest owning {@code Frame} or {@code Dialog} + * is showing on the screen. + *

+ * If there is a security manager set, it is invoked to check + * {@code AWTPermission("showWindowWithoutWarningBanner")}. + * If that check fails with a {@code SecurityException} then a + * warning banner is created. + */ + // @ts-ignore + constructor(owner: java.awt.Window) + /** + * Constructs a new, initially invisible window with the specified owner + * {@code Window} and a {@code GraphicsConfiguration} + * of a screen device. The Window will not be focusable unless + * its nearest owning {@code Frame} or {@code Dialog} + * is showing on the screen. + *

+ * If there is a security manager set, it is invoked to check + * {@code AWTPermission("showWindowWithoutWarningBanner")}. If that + * check fails with a {@code SecurityException} then a warning banner + * is created. + */ + // @ts-ignore + constructor(owner: java.awt.Window, gc: java.awt.GraphicsConfiguration) + /** + * Returns the sequence of images to be displayed as the icon for this window. + *

+ * This method returns a copy of the internally stored list, so all operations + * on the returned object will not affect the window's behavior. + */ + // @ts-ignore + public getIconImages(): java.util.List; + /** + * Sets the sequence of images to be displayed as the icon + * for this window. Subsequent calls to {@code getIconImages} will + * always return a copy of the {@code icons} list. + *

+ * Depending on the platform capabilities one or several images + * of different dimensions will be used as the window's icon. + *

+ * The {@code icons} list is scanned for the images of most + * appropriate dimensions from the beginning. If the list contains + * several images of the same size, the first will be used. + *

+ * Ownerless windows with no icon specified use platfrom-default icon. + * The icon of an owned window may be inherited from the owner + * unless explicitly overridden. + * Setting the icon to {@code null} or empty list restores + * the default behavior. + *

+ * Note : Native windowing systems may use different images of differing + * dimensions to represent a window, depending on the context (e.g. + * window decoration, window list, taskbar, etc.). They could also use + * just a single image for all contexts or no image at all. + */ + // @ts-ignore + public setIconImages(icons: java.util.List): void; + /** + * Sets the image to be displayed as the icon for this window. + *

+ * This method can be used instead of {@link #setIconImages setIconImages()} + * to specify a single image as a window's icon. + *

+ * The following statement: + *

+             * setIconImage(image);
+             * 
+ * is equivalent to: + *
+             * ArrayList<Image> imageList = new ArrayList<Image>();
+             * imageList.add(image);
+             * setIconImages(imageList);
+             * 
+ *

+ * Note : Native windowing systems may use different images of differing + * dimensions to represent a window, depending on the context (e.g. + * window decoration, window list, taskbar, etc.). They could also use + * just a single image for all contexts or no image at all. + */ + // @ts-ignore + public setIconImage(image: java.awt.Image): void; + /** + * Makes this Window displayable by creating the connection to its + * native screen resource. + * This method is called internally by the toolkit and should + * not be called directly by programs. + */ + // @ts-ignore + public addNotify(): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public removeNotify(): void; + /** + * Causes this Window to be sized to fit the preferred size + * and layouts of its subcomponents. The resulting width and + * height of the window are automatically enlarged if either + * of dimensions is less than the minimum size as specified + * by the previous call to the {@code setMinimumSize} method. + *

+ * If the window and/or its owner are not displayable yet, + * both of them are made displayable before calculating + * the preferred size. The Window is validated after its + * size is being calculated. + */ + // @ts-ignore + public pack(): void; + /** + * Sets the minimum size of this window to a constant + * value. Subsequent calls to {@code getMinimumSize} + * will always return this value. If current window's + * size is less than {@code minimumSize} the size of the + * window is automatically enlarged to honor the minimum size. + *

+ * If the {@code setSize} or {@code setBounds} methods + * are called afterwards with a width or height less than + * that was specified by the {@code setMinimumSize} method + * the window is automatically enlarged to meet + * the {@code minimumSize} value. The {@code minimumSize} + * value also affects the behaviour of the {@code pack} method. + *

+ * The default behavior is restored by setting the minimum size + * parameter to the {@code null} value. + *

+ * Resizing operation may be restricted if the user tries + * to resize window below the {@code minimumSize} value. + * This behaviour is platform-dependent. + */ + // @ts-ignore + public setMinimumSize(minimumSize: java.awt.Dimension): void; + /** + * {@inheritDoc} + *

+ * The {@code d.width} and {@code d.height} values + * are automatically enlarged if either is less than + * the minimum size as specified by previous call to + * {@code setMinimumSize}. + *

+ * The method changes the geometry-related data. Therefore, + * the native windowing system may ignore such requests, or it may modify + * the requested data, so that the {@code Window} object is placed and sized + * in a way that corresponds closely to the desktop settings. + */ + // @ts-ignore + public setSize(d: java.awt.Dimension): void; + /** + * {@inheritDoc} + *

+ * The {@code width} and {@code height} values + * are automatically enlarged if either is less than + * the minimum size as specified by previous call to + * {@code setMinimumSize}. + *

+ * The method changes the geometry-related data. Therefore, + * the native windowing system may ignore such requests, or it may modify + * the requested data, so that the {@code Window} object is placed and sized + * in a way that corresponds closely to the desktop settings. + */ + // @ts-ignore + public setSize(width: number, height: number): void; + /** + * {@inheritDoc} + *

+ * The method changes the geometry-related data. Therefore, + * the native windowing system may ignore such requests, or it may modify + * the requested data, so that the {@code Window} object is placed and sized + * in a way that corresponds closely to the desktop settings. + */ + // @ts-ignore + public setLocation(x: number, y: number): void; + /** + * {@inheritDoc} + *

+ * The method changes the geometry-related data. Therefore, + * the native windowing system may ignore such requests, or it may modify + * the requested data, so that the {@code Window} object is placed and sized + * in a way that corresponds closely to the desktop settings. + */ + // @ts-ignore + public setLocation(p: java.awt.Point): void; + // @ts-ignore + public reshape(x: number, y: number, width: number, height: number): void; + /** + * Shows or hides this {@code Window} depending on the value of parameter + * {@code b}. + *

+ * If the method shows the window then the window is also made + * focused under the following conditions: + *

    + *
  • The {@code Window} meets the requirements outlined in the + * {@link #isFocusableWindow} method. + *
  • The {@code Window}'s {@code autoRequestFocus} property is of the {@code true} value. + *
  • Native windowing system allows the {@code Window} to get focused. + *
+ * There is an exception for the second condition (the value of the + * {@code autoRequestFocus} property). The property is not taken into account if the + * window is a modal dialog, which blocks the currently focused window. + *

+ * Developers must never assume that the window is the focused or active window + * until it receives a WINDOW_GAINED_FOCUS or WINDOW_ACTIVATED event. + */ + // @ts-ignore + public setVisible(b: boolean): void; + /** + * Makes the Window visible. If the Window and/or its owner + * are not yet displayable, both are made displayable. The + * Window will be validated prior to being made visible. + * If the Window is already visible, this will bring the Window + * to the front. + */ + // @ts-ignore + public show(): void; + /** + * Hide this Window, its subcomponents, and all of its owned children. + * The Window and its subcomponents can be made visible again + * with a call to {@code show}. + */ + // @ts-ignore + public hide(): void; + /** + * Releases all of the native screen resources used by this + * {@code Window}, its subcomponents, and all of its owned + * children. That is, the resources for these {@code Component}s + * will be destroyed, any memory they consume will be returned to the + * OS, and they will be marked as undisplayable. + *

+ * The {@code Window} and its subcomponents can be made displayable + * again by rebuilding the native resources with a subsequent call to + * {@code pack} or {@code show}. The states of the recreated + * {@code Window} and its subcomponents will be identical to the + * states of these objects at the point where the {@code Window} + * was disposed (not accounting for additional modifications between + * those actions). + *

+ * Note: When the last displayable window + * within the Java virtual machine (VM) is disposed of, the VM may + * terminate. See + * AWT Threading Issues for more information. + */ + // @ts-ignore + public dispose(): void; + /** + * If this Window is visible, brings this Window to the front and may make + * it the focused Window. + *

+ * Places this Window at the top of the stacking order and shows it in + * front of any other Windows in this VM. No action will take place if this + * Window is not visible. Some platforms do not allow Windows which own + * other Windows to appear on top of those owned Windows. Some platforms + * may not permit this VM to place its Windows above windows of native + * applications, or Windows of other VMs. This permission may depend on + * whether a Window in this VM is already focused. Every attempt will be + * made to move this Window as high as possible in the stacking order; + * however, developers should not assume that this method will move this + * Window above all other windows in every situation. + *

+ * Developers must never assume that this Window is the focused or active + * Window until this Window receives a WINDOW_GAINED_FOCUS or WINDOW_ACTIVATED + * event. On platforms where the top-most window is the focused window, this + * method will probably focus this Window (if it is not already focused) + * under the following conditions: + *

    + *
  • The window meets the requirements outlined in the + * {@link #isFocusableWindow} method. + *
  • The window's property {@code autoRequestFocus} is of the + * {@code true} value. + *
  • Native windowing system allows the window to get focused. + *
+ * On platforms where the stacking order does not typically affect the focused + * window, this method will probably leave the focused and active + * Windows unchanged. + *

+ * If this method causes this Window to be focused, and this Window is a + * Frame or a Dialog, it will also become activated. If this Window is + * focused, but it is not a Frame or a Dialog, then the first Frame or + * Dialog that is an owner of this Window will be activated. + *

+ * If this window is blocked by modal dialog, then the blocking dialog + * is brought to the front and remains above the blocked window. + */ + // @ts-ignore + public toFront(): void; + /** + * If this Window is visible, sends this Window to the back and may cause + * it to lose focus or activation if it is the focused or active Window. + *

+ * Places this Window at the bottom of the stacking order and shows it + * behind any other Windows in this VM. No action will take place is this + * Window is not visible. Some platforms do not allow Windows which are + * owned by other Windows to appear below their owners. Every attempt will + * be made to move this Window as low as possible in the stacking order; + * however, developers should not assume that this method will move this + * Window below all other windows in every situation. + *

+ * Because of variations in native windowing systems, no guarantees about + * changes to the focused and active Windows can be made. Developers must + * never assume that this Window is no longer the focused or active Window + * until this Window receives a WINDOW_LOST_FOCUS or WINDOW_DEACTIVATED + * event. On platforms where the top-most window is the focused window, + * this method will probably cause this Window to lose focus. In + * that case, the next highest, focusable Window in this VM will receive + * focus. On platforms where the stacking order does not typically affect + * the focused window, this method will probably leave the focused + * and active Windows unchanged. + */ + // @ts-ignore + public toBack(): void; + /** + * Returns the toolkit of this frame. + */ + // @ts-ignore + public getToolkit(): java.awt.Toolkit; + /** + * Gets the warning string that is displayed with this window. + * If this window is insecure, the warning string is displayed + * somewhere in the visible area of the window. A window is + * insecure if there is a security manager and the security + * manager denies + * {@code AWTPermission("showWindowWithoutWarningBanner")}. + *

+ * If the window is secure, then {@code getWarningString} + * returns {@code null}. If the window is insecure, this + * method checks for the system property + * {@code awt.appletWarning} + * and returns the string value of that property. + */ + // @ts-ignore + public getWarningString(): string; + /** + * Gets the {@code Locale} object that is associated + * with this window, if the locale has been set. + * If no locale has been set, then the default locale + * is returned. + */ + // @ts-ignore + public getLocale(): java.util.Locale; + /** + * Gets the input context for this window. A window always has an input context, + * which is shared by subcomponents unless they create and set their own. + */ + // @ts-ignore + public getInputContext(): java.awt.im.InputContext; + /** + * Set the cursor image to a specified cursor. + *

+ * The method may have no visual effect if the Java platform + * implementation and/or the native system do not support + * changing the mouse cursor shape. + */ + // @ts-ignore + public setCursor(cursor: java.awt.Cursor): void; + /** + * Returns the owner of this window. + */ + // @ts-ignore + public getOwner(): java.awt.Window; + /** + * Return an array containing all the windows this + * window currently owns. + */ + // @ts-ignore + public getOwnedWindows(): java.awt.Window[]; + /** + * Returns an array of all {@code Window}s, both owned and ownerless, + * created by this application. + * If called from an applet, the array includes only the {@code Window}s + * accessible by that applet. + *

+ * Warning: this method may return system created windows, such + * as a print dialog. Applications should not assume the existence of + * these dialogs, nor should an application assume anything about these + * dialogs such as component positions, {@code LayoutManager}s + * or serialization. + */ + // @ts-ignore + public static getWindows(): java.awt.Window[]; + /** + * Returns an array of all {@code Window}s created by this application + * that have no owner. They include {@code Frame}s and ownerless + * {@code Dialog}s and {@code Window}s. + * If called from an applet, the array includes only the {@code Window}s + * accessible by that applet. + *

+ * Warning: this method may return system created windows, such + * as a print dialog. Applications should not assume the existence of + * these dialogs, nor should an application assume anything about these + * dialogs such as component positions, {@code LayoutManager}s + * or serialization. + */ + // @ts-ignore + public static getOwnerlessWindows(): java.awt.Window[]; + /** + * Specifies the modal exclusion type for this window. If a window is modal + * excluded, it is not blocked by some modal dialogs. See {@link + * java.awt.Dialog.ModalExclusionType Dialog.ModalExclusionType} for + * possible modal exclusion types. + *

+ * If the given type is not supported, {@code NO_EXCLUDE} is used. + *

+ * Note: changing the modal exclusion type for a visible window may have no + * effect until it is hidden and then shown again. + */ + // @ts-ignore + public setModalExclusionType(exclusionType: java.awt.Dialog.ModalExclusionType): void; + /** + * Returns the modal exclusion type of this window. + */ + // @ts-ignore + public getModalExclusionType(): java.awt.Dialog.ModalExclusionType; + /** + * Adds the specified window listener to receive window events from + * this window. + * If l is null, no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public addWindowListener(l: java.awt.event.WindowListener): void; + /** + * Adds the specified window state listener to receive window + * events from this window. If {@code l} is {@code null}, + * no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public addWindowStateListener(l: java.awt.event.WindowStateListener): void; + /** + * Adds the specified window focus listener to receive window events + * from this window. + * If l is null, no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public addWindowFocusListener(l: java.awt.event.WindowFocusListener): void; + /** + * Removes the specified window listener so that it no longer + * receives window events from this window. + * If l is null, no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public removeWindowListener(l: java.awt.event.WindowListener): void; + /** + * Removes the specified window state listener so that it no + * longer receives window events from this window. If + * {@code l} is {@code null}, no exception is thrown and + * no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public removeWindowStateListener(l: java.awt.event.WindowStateListener): void; + /** + * Removes the specified window focus listener so that it no longer + * receives window events from this window. + * If l is null, no exception is thrown and no action is performed. + *

Refer to AWT Threading Issues for details on AWT's threading model. + */ + // @ts-ignore + public removeWindowFocusListener(l: java.awt.event.WindowFocusListener): void; + /** + * Returns an array of all the window listeners + * registered on this window. + */ + // @ts-ignore + public getWindowListeners(): java.awt.event.WindowListener[]; + /** + * Returns an array of all the window focus listeners + * registered on this window. + */ + // @ts-ignore + public getWindowFocusListeners(): java.awt.event.WindowFocusListener[]; + /** + * Returns an array of all the window state listeners + * registered on this window. + */ + // @ts-ignore + public getWindowStateListeners(): java.awt.event.WindowStateListener[]; + /** + * Returns an array of all the objects currently registered + * as FooListeners + * upon this {@code Window}. + * FooListeners are registered using the + * addFooListener method. + *

+ * You can specify the {@code listenerType} argument + * with a class literal, such as + * FooListener.class. + * For example, you can query a + * {@code Window} {@code w} + * for its window listeners with the following code: + *

WindowListener[] wls = (WindowListener[])(w.getListeners(WindowListener.class));
+ * If no such listeners exist, this method returns an empty array. + */ + // @ts-ignore + public getListeners(listenerType: java.lang.Class): java.util.EventListener[]; + /** + * Processes events on this window. If the event is an + * {@code WindowEvent}, it invokes the + * {@code processWindowEvent} method, else it invokes its + * superclass's {@code processEvent}. + *

Note that if the event parameter is {@code null} + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processEvent(e: java.awt.AWTEvent): void; + /** + * Processes window events occurring on this window by + * dispatching them to any registered WindowListener objects. + * NOTE: This method will not be called unless window events + * are enabled for this component; this happens when one of the + * following occurs: + *

    + *
  • A WindowListener object is registered via + * {@code addWindowListener} + *
  • Window events are enabled via {@code enableEvents} + *
+ *

Note that if the event parameter is {@code null} + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processWindowEvent(e: java.awt.event.WindowEvent): void; + /** + * Processes window focus event occurring on this window by + * dispatching them to any registered WindowFocusListener objects. + * NOTE: this method will not be called unless window focus events + * are enabled for this window. This happens when one of the + * following occurs: + *

    + *
  • a WindowFocusListener is registered via + * {@code addWindowFocusListener} + *
  • Window focus events are enabled via {@code enableEvents} + *
+ *

Note that if the event parameter is {@code null} + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processWindowFocusEvent(e: java.awt.event.WindowEvent): void; + /** + * Processes window state event occurring on this window by + * dispatching them to any registered {@code WindowStateListener} + * objects. + * NOTE: this method will not be called unless window state events + * are enabled for this window. This happens when one of the + * following occurs: + *

    + *
  • a {@code WindowStateListener} is registered via + * {@code addWindowStateListener} + *
  • window state events are enabled via {@code enableEvents} + *
+ *

Note that if the event parameter is {@code null} + * the behavior is unspecified and may result in an + * exception. + */ + // @ts-ignore + protected processWindowStateEvent(e: java.awt.event.WindowEvent): void; + /** + * Sets whether this window should always be above other windows. If + * there are multiple always-on-top windows, their relative order is + * unspecified and platform dependent. + *

+ * If some other window is already always-on-top then the + * relative order between these windows is unspecified (depends on + * platform). No window can be brought to be over the always-on-top + * window except maybe another always-on-top window. + *

+ * All windows owned by an always-on-top window inherit this state and + * automatically become always-on-top. If a window ceases to be + * always-on-top, the windows that it owns will no longer be + * always-on-top. When an always-on-top window is sent {@link #toBack + * toBack}, its always-on-top state is set to {@code false}. + *

When this method is called on a window with a value of + * {@code true}, and the window is visible and the platform + * supports always-on-top for this window, the window is immediately + * brought forward, "sticking" it in the top-most position. If the + * window isn`t currently visible, this method sets the always-on-top + * state to {@code true} but does not bring the window forward. + * When the window is later shown, it will be always-on-top. + *

When this method is called on a window with a value of + * {@code false} the always-on-top state is set to normal. It may also + * cause an unspecified, platform-dependent change in the z-order of + * top-level windows, but other always-on-top windows will remain in + * top-most position. Calling this method with a value of {@code false} + * on a window that has a normal state has no effect. + *

Note: some platforms might not support always-on-top + * windows. To detect if always-on-top windows are supported by the + * current platform, use {@link Toolkit#isAlwaysOnTopSupported()} and + * {@link Window#isAlwaysOnTopSupported()}. If always-on-top mode + * isn't supported for this window or this window's toolkit does not + * support always-on-top windows, calling this method has no effect. + *

+ * If a SecurityManager is installed, the calling thread must be + * granted the AWTPermission "setWindowAlwaysOnTop" in + * order to set the value of this property. If this + * permission is not granted, this method will throw a + * SecurityException, and the current value of the property will + * be left unchanged. + */ + // @ts-ignore + public setAlwaysOnTop(alwaysOnTop: boolean): void; + /** + * Returns whether the always-on-top mode is supported for this + * window. Some platforms may not support always-on-top windows, some + * may support only some kinds of top-level windows; for example, + * a platform may not support always-on-top modal dialogs. + */ + // @ts-ignore + public isAlwaysOnTopSupported(): boolean; + /** + * Returns whether this window is an always-on-top window. + */ + // @ts-ignore + public isAlwaysOnTop(): boolean; + /** + * Returns the child Component of this Window that has focus if this Window + * is focused; returns null otherwise. + */ + // @ts-ignore + public getFocusOwner(): java.awt.Component; + /** + * Returns the child Component of this Window that will receive the focus + * when this Window is focused. If this Window is currently focused, this + * method returns the same Component as {@code getFocusOwner()}. If + * this Window is not focused, then the child Component that most recently + * requested focus will be returned. If no child Component has ever + * requested focus, and this is a focusable Window, then this Window's + * initial focusable Component is returned. If no child Component has ever + * requested focus, and this is a non-focusable Window, null is returned. + */ + // @ts-ignore + public getMostRecentFocusOwner(): java.awt.Component; + /** + * Returns whether this Window is active. Only a Frame or a Dialog may be + * active. The native windowing system may denote the active Window or its + * children with special decorations, such as a highlighted title bar. The + * active Window is always either the focused Window, or the first Frame or + * Dialog that is an owner of the focused Window. + */ + // @ts-ignore + public isActive(): boolean; + /** + * Returns whether this Window is focused. If there exists a focus owner, + * the focused Window is the Window that is, or contains, that focus owner. + * If there is no focus owner, then no Window is focused. + *

+ * If the focused Window is a Frame or a Dialog it is also the active + * Window. Otherwise, the active Window is the first Frame or Dialog that + * is an owner of the focused Window. + */ + // @ts-ignore + public isFocused(): boolean; + /** + * Gets a focus traversal key for this Window. (See {@code + * setFocusTraversalKeys} for a full description of each key.) + *

+ * If the traversal key has not been explicitly set for this Window, + * then this Window's parent's traversal key is returned. If the + * traversal key has not been explicitly set for any of this Window's + * ancestors, then the current KeyboardFocusManager's default traversal key + * is returned. + */ + // @ts-ignore + public getFocusTraversalKeys(id: number): java.util.Set; + /** + * Does nothing because Windows must always be roots of a focus traversal + * cycle. The passed-in value is ignored. + */ + // @ts-ignore + public setFocusCycleRoot(focusCycleRoot: boolean): void; + /** + * Always returns {@code true} because all Windows must be roots of a + * focus traversal cycle. + */ + // @ts-ignore + public isFocusCycleRoot(): boolean; + /** + * Always returns {@code null} because Windows have no ancestors; they + * represent the top of the Component hierarchy. + */ + // @ts-ignore + public getFocusCycleRootAncestor(): java.awt.Container; + /** + * Returns whether this Window can become the focused Window, that is, + * whether this Window or any of its subcomponents can become the focus + * owner. For a Frame or Dialog to be focusable, its focusable Window state + * must be set to {@code true}. For a Window which is not a Frame or + * Dialog to be focusable, its focusable Window state must be set to + * {@code true}, its nearest owning Frame or Dialog must be + * showing on the screen, and it must contain at least one Component in + * its focus traversal cycle. If any of these conditions is not met, then + * neither this Window nor any of its subcomponents can become the focus + * owner. + */ + // @ts-ignore + public isFocusableWindow(): boolean; + /** + * Returns whether this Window can become the focused Window if it meets + * the other requirements outlined in {@code isFocusableWindow}. If + * this method returns {@code false}, then + * {@code isFocusableWindow} will return {@code false} as well. + * If this method returns {@code true}, then + * {@code isFocusableWindow} may return {@code true} or + * {@code false} depending upon the other requirements which must be + * met in order for a Window to be focusable. + *

+ * By default, all Windows have a focusable Window state of + * {@code true}. + */ + // @ts-ignore + public getFocusableWindowState(): boolean; + /** + * Sets whether this Window can become the focused Window if it meets + * the other requirements outlined in {@code isFocusableWindow}. If + * this Window's focusable Window state is set to {@code false}, then + * {@code isFocusableWindow} will return {@code false}. If this + * Window's focusable Window state is set to {@code true}, then + * {@code isFocusableWindow} may return {@code true} or + * {@code false} depending upon the other requirements which must be + * met in order for a Window to be focusable. + *

+ * Setting a Window's focusability state to {@code false} is the + * standard mechanism for an application to identify to the AWT a Window + * which will be used as a floating palette or toolbar, and thus should be + * a non-focusable Window. + * Setting the focusability state on a visible {@code Window} + * can have a delayed effect on some platforms — the actual + * change may happen only when the {@code Window} becomes + * hidden and then visible again. To ensure consistent behavior + * across platforms, set the {@code Window}'s focusable state + * when the {@code Window} is invisible and then show it. + */ + // @ts-ignore + public setFocusableWindowState(focusableWindowState: boolean): void; + /** + * Sets whether this window should receive focus on + * subsequently being shown (with a call to {@link #setVisible setVisible(true)}), + * or being moved to the front (with a call to {@link #toFront}). + *

+ * Note that {@link #setVisible setVisible(true)} may be called indirectly + * (e.g. when showing an owner of the window makes the window to be shown). + * {@link #toFront} may also be called indirectly (e.g. when + * {@link #setVisible setVisible(true)} is called on already visible window). + * In all such cases this property takes effect as well. + *

+ * The value of the property is not inherited by owned windows. + */ + // @ts-ignore + public setAutoRequestFocus(autoRequestFocus: boolean): void; + /** + * Returns whether this window should receive focus on subsequently being shown + * (with a call to {@link #setVisible setVisible(true)}), or being moved to the front + * (with a call to {@link #toFront}). + *

+ * By default, the window has {@code autoRequestFocus} value of {@code true}. + */ + // @ts-ignore + public isAutoRequestFocus(): boolean; + /** + * Adds a PropertyChangeListener to the listener list. The listener is + * registered for all bound properties of this class, including the + * following: + *

    + *
  • this Window's font ("font")
  • + *
  • this Window's background color ("background")
  • + *
  • this Window's foreground color ("foreground")
  • + *
  • this Window's focusability ("focusable")
  • + *
  • this Window's focus traversal keys enabled state + * ("focusTraversalKeysEnabled")
  • + *
  • this Window's Set of FORWARD_TRAVERSAL_KEYS + * ("forwardFocusTraversalKeys")
  • + *
  • this Window's Set of BACKWARD_TRAVERSAL_KEYS + * ("backwardFocusTraversalKeys")
  • + *
  • this Window's Set of UP_CYCLE_TRAVERSAL_KEYS + * ("upCycleFocusTraversalKeys")
  • + *
  • this Window's Set of DOWN_CYCLE_TRAVERSAL_KEYS + * ("downCycleFocusTraversalKeys")
  • + *
  • this Window's focus traversal policy ("focusTraversalPolicy") + *
  • + *
  • this Window's focusable Window state ("focusableWindowState") + *
  • + *
  • this Window's always-on-top state("alwaysOnTop")
  • + *
+ * Note that if this Window is inheriting a bound property, then no + * event will be fired in response to a change in the inherited property. + *

+ * If listener is null, no exception is thrown and no action is performed. + */ + // @ts-ignore + public addPropertyChangeListener(listener: java.beans.PropertyChangeListener): void; + /** + * Adds a PropertyChangeListener to the listener list for a specific + * property. The specified property may be user-defined, or one of the + * following: + *

    + *
  • this Window's font ("font")
  • + *
  • this Window's background color ("background")
  • + *
  • this Window's foreground color ("foreground")
  • + *
  • this Window's focusability ("focusable")
  • + *
  • this Window's focus traversal keys enabled state + * ("focusTraversalKeysEnabled")
  • + *
  • this Window's Set of FORWARD_TRAVERSAL_KEYS + * ("forwardFocusTraversalKeys")
  • + *
  • this Window's Set of BACKWARD_TRAVERSAL_KEYS + * ("backwardFocusTraversalKeys")
  • + *
  • this Window's Set of UP_CYCLE_TRAVERSAL_KEYS + * ("upCycleFocusTraversalKeys")
  • + *
  • this Window's Set of DOWN_CYCLE_TRAVERSAL_KEYS + * ("downCycleFocusTraversalKeys")
  • + *
  • this Window's focus traversal policy ("focusTraversalPolicy") + *
  • + *
  • this Window's focusable Window state ("focusableWindowState") + *
  • + *
  • this Window's always-on-top state("alwaysOnTop")
  • + *
+ * Note that if this Window is inheriting a bound property, then no + * event will be fired in response to a change in the inherited property. + *

+ * If listener is null, no exception is thrown and no action is performed. + */ + // @ts-ignore + public addPropertyChangeListener(propertyName: string, listener: java.beans.PropertyChangeListener): void; + /** + * Indicates if this container is a validate root. + *

+ * {@code Window} objects are the validate roots, and, therefore, they + * override this method to return {@code true}. + */ + // @ts-ignore + public isValidateRoot(): boolean; + // @ts-ignore + public postEvent(e: java.awt.Event): boolean; + /** + * Checks if this Window is showing on screen. + */ + // @ts-ignore + public isShowing(): boolean; + // @ts-ignore + public applyResourceBundle(rb: java.util.ResourceBundle): void; + // @ts-ignore + public applyResourceBundle(rbName: string): void; + /** + * Sets the type of the window. + * This method can only be called while the window is not displayable. + */ + // @ts-ignore + public setType(type: java.awt.Window.Type): void; + /** + * Returns the type of the window. + */ + // @ts-ignore + public getType(): java.awt.Window.Type; + /** + * Gets the AccessibleContext associated with this Window. + * For windows, the AccessibleContext takes the form of an + * AccessibleAWTWindow. + * A new AccessibleAWTWindow instance is created if necessary. + */ + // @ts-ignore + public getAccessibleContext(): any /*javax.accessibility.AccessibleContext*/; + /** + * Sets the location of the window relative to the specified + * component according to the following scenarios. + *

+ * The target screen mentioned below is a screen to which + * the window should be placed after the setLocationRelativeTo + * method is called. + *

    + *
  • If the component is {@code null}, or the {@code + * GraphicsConfiguration} associated with this component is + * {@code null}, the window is placed in the center of the + * screen. The center point can be obtained with the {@link + * GraphicsEnvironment#getCenterPoint + * GraphicsEnvironment.getCenterPoint} method. + *
  • If the component is not {@code null}, but it is not + * currently showing, the window is placed in the center of + * the target screen defined by the {@code + * GraphicsConfiguration} associated with this component. + *
  • If the component is not {@code null} and is shown on + * the screen, then the window is located in such a way that + * the center of the window coincides with the center of the + * component. + *
+ *

+ * If the screens configuration does not allow the window to + * be moved from one screen to another, then the window is + * only placed at the location determined according to the + * above conditions and its {@code GraphicsConfiguration} is + * not changed. + *

+ * Note: If the lower edge of the window is out of the screen, + * then the window is placed to the side of the {@code Component} + * that is closest to the center of the screen. So if the + * component is on the right part of the screen, the window + * is placed to its left, and vice versa. + *

+ * If after the window location has been calculated, the upper, + * left, or right edge of the window is out of the screen, + * then the window is located in such a way that the upper, + * left, or right edge of the window coincides with the + * corresponding edge of the screen. If both left and right + * edges of the window are out of the screen, the window is + * placed at the left side of the screen. The similar placement + * will occur if both top and bottom edges are out of the screen. + * In that case, the window is placed at the top side of the screen. + *

+ * The method changes the geometry-related data. Therefore, + * the native windowing system may ignore such requests, or it may modify + * the requested data, so that the {@code Window} object is placed and sized + * in a way that corresponds closely to the desktop settings. + */ + // @ts-ignore + public setLocationRelativeTo(c: java.awt.Component): void; + /** + * Creates a new strategy for multi-buffering on this component. + * Multi-buffering is useful for rendering performance. This method + * attempts to create the best strategy available with the number of + * buffers supplied. It will always create a {@code BufferStrategy} + * with that number of buffers. + * A page-flipping strategy is attempted first, then a blitting strategy + * using accelerated buffers. Finally, an unaccelerated blitting + * strategy is used. + *

+ * Each time this method is called, + * the existing buffer strategy for this component is discarded. + */ + // @ts-ignore + public createBufferStrategy(numBuffers: number): void; + /** + * Creates a new strategy for multi-buffering on this component with the + * required buffer capabilities. This is useful, for example, if only + * accelerated memory or page flipping is desired (as specified by the + * buffer capabilities). + *

+ * Each time this method + * is called, the existing buffer strategy for this component is discarded. + */ + // @ts-ignore + public createBufferStrategy(numBuffers: number, caps: java.awt.BufferCapabilities): void; + /** + * Returns the {@code BufferStrategy} used by this component. This + * method will return null if a {@code BufferStrategy} has not yet + * been created or has been disposed. + */ + // @ts-ignore + public getBufferStrategy(): java.awt.image.BufferStrategy; + /** + * Sets whether this Window should appear at the default location for the + * native windowing system or at the current location (returned by + * {@code getLocation}) the next time the Window is made visible. + * This behavior resembles a native window shown without programmatically + * setting its location. Most windowing systems cascade windows if their + * locations are not explicitly set. The actual location is determined once the + * window is shown on the screen. + *

+ * This behavior can also be enabled by setting the System Property + * "java.awt.Window.locationByPlatform" to "true", though calls to this method + * take precedence. + *

+ * Calls to {@code setVisible}, {@code setLocation} and + * {@code setBounds} after calling {@code setLocationByPlatform} clear + * this property of the Window. + *

+ * For example, after the following code is executed: + *

+             * setLocationByPlatform(true);
+             * setVisible(true);
+             * boolean flag = isLocationByPlatform();
+             * 
+ * The window will be shown at platform's default location and + * {@code flag} will be {@code false}. + *

+ * In the following sample: + *

+             * setLocationByPlatform(true);
+             * setLocation(10, 10);
+             * boolean flag = isLocationByPlatform();
+             * setVisible(true);
+             * 
+ * The window will be shown at (10, 10) and {@code flag} will be + * {@code false}. + */ + // @ts-ignore + public setLocationByPlatform(locationByPlatform: boolean): void; + /** + * Returns {@code true} if this Window will appear at the default location + * for the native windowing system the next time this Window is made visible. + * This method always returns {@code false} if the Window is showing on the + * screen. + */ + // @ts-ignore + public isLocationByPlatform(): boolean; + /** + * {@inheritDoc} + *

+ * The {@code width} or {@code height} values + * are automatically enlarged if either is less than + * the minimum size as specified by previous call to + * {@code setMinimumSize}. + *

+ * The method changes the geometry-related data. Therefore, + * the native windowing system may ignore such requests, or it may modify + * the requested data, so that the {@code Window} object is placed and sized + * in a way that corresponds closely to the desktop settings. + */ + // @ts-ignore + public setBounds(x: number, y: number, width: number, height: number): void; + /** + * {@inheritDoc} + *

+ * The {@code r.width} or {@code r.height} values + * will be automatically enlarged if either is less than + * the minimum size as specified by previous call to + * {@code setMinimumSize}. + *

+ * The method changes the geometry-related data. Therefore, + * the native windowing system may ignore such requests, or it may modify + * the requested data, so that the {@code Window} object is placed and sized + * in a way that corresponds closely to the desktop settings. + */ + // @ts-ignore + public setBounds(r: java.awt.Rectangle): void; + /** + * Returns the opacity of the window. + */ + // @ts-ignore + public getOpacity(): number; + /** + * Sets the opacity of the window. + *

+ * The opacity value is in the range [0..1]. Note that setting the opacity + * level of 0 may or may not disable the mouse event handling on this + * window. This is a platform-dependent behavior. + *

+ * The following conditions must be met in order to set the opacity value + * less than {@code 1.0f}: + *

    + *
  • The {@link GraphicsDevice.WindowTranslucency#TRANSLUCENT TRANSLUCENT} + * translucency must be supported by the underlying system + *
  • The window must be undecorated (see {@link Frame#setUndecorated} + * and {@link Dialog#setUndecorated}) + *
  • The window must not be in full-screen mode (see {@link + * GraphicsDevice#setFullScreenWindow(Window)}) + *
+ *

+ * If the requested opacity value is less than {@code 1.0f}, and any of the + * above conditions are not met, the window opacity will not change, + * and the {@code IllegalComponentStateException} will be thrown. + *

+ * The translucency levels of individual pixels may also be effected by the + * alpha component of their color (see {@link Window#setBackground(Color)}) and the + * current shape of this window (see {@link #setShape(Shape)}). + */ + // @ts-ignore + public setOpacity(opacity: number): void; + /** + * Returns the shape of the window. + * The value returned by this method may not be the same as + * previously set with {@code setShape(shape)}, but it is guaranteed + * to represent the same shape. + */ + // @ts-ignore + public getShape(): java.awt.Shape; + /** + * Sets the shape of the window. + *

+ * Setting a shape cuts off some parts of the window. Only the parts that + * belong to the given {@link Shape} remain visible and clickable. If + * the shape argument is {@code null}, this method restores the default + * shape, making the window rectangular on most platforms. + *

+ * The following conditions must be met to set a non-null shape: + *

    + *
  • The {@link GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSPARENT + * PERPIXEL_TRANSPARENT} translucency must be supported by the + * underlying system + *
  • The window must be undecorated (see {@link Frame#setUndecorated} + * and {@link Dialog#setUndecorated}) + *
  • The window must not be in full-screen mode (see {@link + * GraphicsDevice#setFullScreenWindow(Window)}) + *
+ *

+ * If the requested shape is not {@code null}, and any of the above + * conditions are not met, the shape of this window will not change, + * and either the {@code UnsupportedOperationException} or {@code + * IllegalComponentStateException} will be thrown. + *

+ * The translucency levels of individual pixels may also be effected by the + * alpha component of their color (see {@link Window#setBackground(Color)}) and the + * opacity value (see {@link #setOpacity(float)}). See {@link + * GraphicsDevice.WindowTranslucency} for more details. + */ + // @ts-ignore + public setShape(shape: java.awt.Shape): void; + /** + * Gets the background color of this window. + *

+ * Note that the alpha component of the returned color indicates whether + * the window is in the non-opaque (per-pixel translucent) mode. + */ + // @ts-ignore + public getBackground(): java.awt.Color; + /** + * Sets the background color of this window. + *

+ * If the windowing system supports the {@link + * GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT PERPIXEL_TRANSLUCENT} + * translucency, the alpha component of the given background color + * may effect the mode of operation for this window: it indicates whether + * this window must be opaque (alpha equals {@code 1.0f}) or per-pixel translucent + * (alpha is less than {@code 1.0f}). If the given background color is + * {@code null}, the window is considered completely opaque. + *

+ * All the following conditions must be met to enable the per-pixel + * transparency mode for this window: + *

    + *
  • The {@link GraphicsDevice.WindowTranslucency#PERPIXEL_TRANSLUCENT + * PERPIXEL_TRANSLUCENT} translucency must be supported by the graphics + * device where this window is located + *
  • The window must be undecorated (see {@link Frame#setUndecorated} + * and {@link Dialog#setUndecorated}) + *
  • The window must not be in full-screen mode (see {@link + * GraphicsDevice#setFullScreenWindow(Window)}) + *
+ *

+ * If the alpha component of the requested background color is less than + * {@code 1.0f}, and any of the above conditions are not met, the background + * color of this window will not change, the alpha component of the given + * background color will not affect the mode of operation for this window, + * and either the {@code UnsupportedOperationException} or {@code + * IllegalComponentStateException} will be thrown. + *

+ * When the window is per-pixel translucent, the drawing sub-system + * respects the alpha value of each individual pixel. If a pixel gets + * painted with the alpha color component equal to zero, it becomes + * visually transparent. If the alpha of the pixel is equal to 1.0f, the + * pixel is fully opaque. Interim values of the alpha color component make + * the pixel semi-transparent. In this mode, the background of the window + * gets painted with the alpha value of the given background color. If the + * alpha value of the argument of this method is equal to {@code 0}, the + * background is not painted at all. + *

+ * The actual level of translucency of a given pixel also depends on window + * opacity (see {@link #setOpacity(float)}), as well as the current shape of + * this window (see {@link #setShape(Shape)}). + *

+ * Note that painting a pixel with the alpha value of {@code 0} may or may + * not disable the mouse event handling on this pixel. This is a + * platform-dependent behavior. To make sure the mouse events do not get + * dispatched to a particular pixel, the pixel must be excluded from the + * shape of the window. + *

+ * Enabling the per-pixel translucency mode may change the graphics + * configuration of this window due to the native platform requirements. + */ + // @ts-ignore + public setBackground(bgColor: java.awt.Color): void; + /** + * Indicates if the window is currently opaque. + *

+ * The method returns {@code false} if the background color of the window + * is not {@code null} and the alpha component of the color is less than + * {@code 1.0f}. The method returns {@code true} otherwise. + */ + // @ts-ignore + public isOpaque(): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public paint(g: java.awt.Graphics): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.color.CMMException.d.ts b/packages/types/dist/typings/jdk/java.awt.color.CMMException.d.ts new file mode 100644 index 00000000..2f1dc58c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.color.CMMException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace color { + // @ts-ignore + class CMMException extends java.lang.RuntimeException { + /** + * Constructs a CMMException with the specified detail message. + */ + // @ts-ignore + constructor(s: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.color.ColorSpace.d.ts b/packages/types/dist/typings/jdk/java.awt.color.ColorSpace.d.ts new file mode 100644 index 00000000..254c189a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.color.ColorSpace.d.ts @@ -0,0 +1,203 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace color { + // @ts-ignore + abstract class ColorSpace extends java.lang.Object { + /** + * Constructs a ColorSpace object given a color space type + * and the number of components. + */ + // @ts-ignore + constructor(type: number, numcomponents: number) + // @ts-ignore + public static TYPE_XYZ: number; + // @ts-ignore + public static TYPE_Lab: number; + // @ts-ignore + public static TYPE_Luv: number; + // @ts-ignore + public static TYPE_YCbCr: number; + // @ts-ignore + public static TYPE_Yxy: number; + // @ts-ignore + public static TYPE_RGB: number; + // @ts-ignore + public static TYPE_GRAY: number; + // @ts-ignore + public static TYPE_HSV: number; + // @ts-ignore + public static TYPE_HLS: number; + // @ts-ignore + public static TYPE_CMYK: number; + // @ts-ignore + public static TYPE_CMY: number; + // @ts-ignore + public static TYPE_2CLR: number; + // @ts-ignore + public static TYPE_3CLR: number; + // @ts-ignore + public static TYPE_4CLR: number; + // @ts-ignore + public static TYPE_5CLR: number; + // @ts-ignore + public static TYPE_6CLR: number; + // @ts-ignore + public static TYPE_7CLR: number; + // @ts-ignore + public static TYPE_8CLR: number; + // @ts-ignore + public static TYPE_9CLR: number; + // @ts-ignore + public static TYPE_ACLR: number; + // @ts-ignore + public static TYPE_BCLR: number; + // @ts-ignore + public static TYPE_CCLR: number; + // @ts-ignore + public static TYPE_DCLR: number; + // @ts-ignore + public static TYPE_ECLR: number; + // @ts-ignore + public static TYPE_FCLR: number; + // @ts-ignore + public static CS_sRGB: number; + // @ts-ignore + public static CS_LINEAR_RGB: number; + // @ts-ignore + public static CS_CIEXYZ: number; + // @ts-ignore + public static CS_PYCC: number; + // @ts-ignore + public static CS_GRAY: number; + /** + * Returns a ColorSpace representing one of the specific + * predefined color spaces. + */ + // @ts-ignore + public static getInstance(colorspace: number): java.awt.color.ColorSpace; + /** + * Returns true if the ColorSpace is CS_sRGB. + */ + // @ts-ignore + public isCS_sRGB(): boolean; + /** + * Transforms a color value assumed to be in this ColorSpace + * into a value in the default CS_sRGB color space. + *

+ * This method transforms color values using algorithms designed + * to produce the best perceptual match between input and output + * colors. In order to do colorimetric conversion of color values, + * you should use the toCIEXYZ + * method of this color space to first convert from the input + * color space to the CS_CIEXYZ color space, and then use the + * fromCIEXYZ method of the CS_sRGB color space to + * convert from CS_CIEXYZ to the output color space. + * See {@link #toCIEXYZ(float[]) toCIEXYZ} and + * {@link #fromCIEXYZ(float[]) fromCIEXYZ} for further information. + *

+ */ + // @ts-ignore + public abstract toRGB(colorvalue: number): number[]; + /** + * Transforms a color value assumed to be in the default CS_sRGB + * color space into this ColorSpace. + *

+ * This method transforms color values using algorithms designed + * to produce the best perceptual match between input and output + * colors. In order to do colorimetric conversion of color values, + * you should use the toCIEXYZ + * method of the CS_sRGB color space to first convert from the input + * color space to the CS_CIEXYZ color space, and then use the + * fromCIEXYZ method of this color space to + * convert from CS_CIEXYZ to the output color space. + * See {@link #toCIEXYZ(float[]) toCIEXYZ} and + * {@link #fromCIEXYZ(float[]) fromCIEXYZ} for further information. + *

+ */ + // @ts-ignore + public abstract fromRGB(rgbvalue: number): number[]; + /** + * Transforms a color value assumed to be in this ColorSpace + * into the CS_CIEXYZ conversion color space. + *

+ * This method transforms color values using relative colorimetry, + * as defined by the International Color Consortium standard. This + * means that the XYZ values returned by this method are represented + * relative to the D50 white point of the CS_CIEXYZ color space. + * This representation is useful in a two-step color conversion + * process in which colors are transformed from an input color + * space to CS_CIEXYZ and then to an output color space. This + * representation is not the same as the XYZ values that would + * be measured from the given color value by a colorimeter. + * A further transformation is necessary to compute the XYZ values + * that would be measured using current CIE recommended practices. + * See the {@link ICC_ColorSpace#toCIEXYZ(float[]) toCIEXYZ} method of + * ICC_ColorSpace for further information. + *

+ */ + // @ts-ignore + public abstract toCIEXYZ(colorvalue: number): number[]; + /** + * Transforms a color value assumed to be in the CS_CIEXYZ conversion + * color space into this ColorSpace. + *

+ * This method transforms color values using relative colorimetry, + * as defined by the International Color Consortium standard. This + * means that the XYZ argument values taken by this method are represented + * relative to the D50 white point of the CS_CIEXYZ color space. + * This representation is useful in a two-step color conversion + * process in which colors are transformed from an input color + * space to CS_CIEXYZ and then to an output color space. The color + * values returned by this method are not those that would produce + * the XYZ value passed to the method when measured by a colorimeter. + * If you have XYZ values corresponding to measurements made using + * current CIE recommended practices, they must be converted to D50 + * relative values before being passed to this method. + * See the {@link ICC_ColorSpace#fromCIEXYZ(float[]) fromCIEXYZ} method of + * ICC_ColorSpace for further information. + *

+ */ + // @ts-ignore + public abstract fromCIEXYZ(colorvalue: number): number[]; + /** + * Returns the color space type of this ColorSpace (for example + * TYPE_RGB, TYPE_XYZ, ...). The type defines the + * number of components of the color space and the interpretation, + * e.g. TYPE_RGB identifies a color space with three components - red, + * green, and blue. It does not define the particular color + * characteristics of the space, e.g. the chromaticities of the + * primaries. + */ + // @ts-ignore + public getType(): number; + /** + * Returns the number of components of this ColorSpace. + */ + // @ts-ignore + public getNumComponents(): number; + /** + * Returns the name of the component given the component index. + */ + // @ts-ignore + public getName(idx: number): string; + /** + * Returns the minimum normalized color component value for the + * specified component. The default implementation in this abstract + * class returns 0.0 for all components. Subclasses should override + * this method if necessary. + */ + // @ts-ignore + public getMinValue(component: number): number; + /** + * Returns the maximum normalized color component value for the + * specified component. The default implementation in this abstract + * class returns 1.0 for all components. Subclasses should override + * this method if necessary. + */ + // @ts-ignore + public getMaxValue(component: number): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.color.ICC_ColorSpace.d.ts b/packages/types/dist/typings/jdk/java.awt.color.ICC_ColorSpace.d.ts new file mode 100644 index 00000000..ef43ab9e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.color.ICC_ColorSpace.d.ts @@ -0,0 +1,274 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace color { + // @ts-ignore + class ICC_ColorSpace extends java.awt.color.ColorSpace { + /** + * Constructs a new ICC_ColorSpace from an ICC_Profile object. + */ + // @ts-ignore + constructor(profile: java.awt.color.ICC_Profile) + /** + * Returns the ICC_Profile for this ICC_ColorSpace. + */ + // @ts-ignore + public getProfile(): java.awt.color.ICC_Profile; + /** + * Transforms a color value assumed to be in this ColorSpace + * into a value in the default CS_sRGB color space. + *

+ * This method transforms color values using algorithms designed + * to produce the best perceptual match between input and output + * colors. In order to do colorimetric conversion of color values, + * you should use the toCIEXYZ + * method of this color space to first convert from the input + * color space to the CS_CIEXYZ color space, and then use the + * fromCIEXYZ method of the CS_sRGB color space to + * convert from CS_CIEXYZ to the output color space. + * See {@link #toCIEXYZ(float[]) toCIEXYZ} and + * {@link #fromCIEXYZ(float[]) fromCIEXYZ} for further information. + *

+ */ + // @ts-ignore + public toRGB(colorvalue: number): number[]; + /** + * Transforms a color value assumed to be in the default CS_sRGB + * color space into this ColorSpace. + *

+ * This method transforms color values using algorithms designed + * to produce the best perceptual match between input and output + * colors. In order to do colorimetric conversion of color values, + * you should use the toCIEXYZ + * method of the CS_sRGB color space to first convert from the input + * color space to the CS_CIEXYZ color space, and then use the + * fromCIEXYZ method of this color space to + * convert from CS_CIEXYZ to the output color space. + * See {@link #toCIEXYZ(float[]) toCIEXYZ} and + * {@link #fromCIEXYZ(float[]) fromCIEXYZ} for further information. + *

+ */ + // @ts-ignore + public fromRGB(rgbvalue: number): number[]; + /** + * Transforms a color value assumed to be in this ColorSpace + * into the CS_CIEXYZ conversion color space. + *

+ * This method transforms color values using relative colorimetry, + * as defined by the ICC Specification. This + * means that the XYZ values returned by this method are represented + * relative to the D50 white point of the CS_CIEXYZ color space. + * This representation is useful in a two-step color conversion + * process in which colors are transformed from an input color + * space to CS_CIEXYZ and then to an output color space. This + * representation is not the same as the XYZ values that would + * be measured from the given color value by a colorimeter. + * A further transformation is necessary to compute the XYZ values + * that would be measured using current CIE recommended practices. + * The paragraphs below explain this in more detail. + *

+ * The ICC standard uses a device independent color space (DICS) as the + * mechanism for converting color from one device to another device. In + * this architecture, colors are converted from the source device's color + * space to the ICC DICS and then from the ICC DICS to the destination + * device's color space. The ICC standard defines device profiles which + * contain transforms which will convert between a device's color space + * and the ICC DICS. The overall conversion of colors from a source + * device to colors of a destination device is done by connecting the + * device-to-DICS transform of the profile for the source device to the + * DICS-to-device transform of the profile for the destination device. + * For this reason, the ICC DICS is commonly referred to as the profile + * connection space (PCS). The color space used in the methods + * toCIEXYZ and fromCIEXYZ is the CIEXYZ PCS defined by the ICC + * Specification. This is also the color space represented by + * ColorSpace.CS_CIEXYZ. + *

+ * The XYZ values of a color are often represented as relative to some + * white point, so the actual meaning of the XYZ values cannot be known + * without knowing the white point of those values. This is known as + * relative colorimetry. The PCS uses a white point of D50, so the XYZ + * values of the PCS are relative to D50. For example, white in the PCS + * will have the XYZ values of D50, which is defined to be X=.9642, + * Y=1.000, and Z=0.8249. This white point is commonly used for graphic + * arts applications, but others are often used in other applications. + *

+ * To quantify the color characteristics of a device such as a printer + * or monitor, measurements of XYZ values for particular device colors + * are typically made. For purposes of this discussion, the term + * device XYZ values is used to mean the XYZ values that would be + * measured from device colors using current CIE recommended practices. + *

+ * Converting between device XYZ values and the PCS XYZ values returned + * by this method corresponds to converting between the device's color + * space, as represented by CIE colorimetric values, and the PCS. There + * are many factors involved in this process, some of which are quite + * subtle. The most important, however, is the adjustment made to account + * for differences between the device's white point and the white point of + * the PCS. There are many techniques for doing this and it is the + * subject of much current research and controversy. Some commonly used + * methods are XYZ scaling, the von Kries transform, and the Bradford + * transform. The proper method to use depends upon each particular + * application. + *

+ * The simplest method is XYZ scaling. In this method each device XYZ + * value is converted to a PCS XYZ value by multiplying it by the ratio + * of the PCS white point (D50) to the device white point. + *

+                 * Xd, Yd, Zd are the device XYZ values
+                 * Xdw, Ydw, Zdw are the device XYZ white point values
+                 * Xp, Yp, Zp are the PCS XYZ values
+                 * Xd50, Yd50, Zd50 are the PCS XYZ white point values
+                 * Xp = Xd * (Xd50 / Xdw)
+                 * Yp = Yd * (Yd50 / Ydw)
+                 * Zp = Zd * (Zd50 / Zdw)
+                 * 
+ *

+ * Conversion from the PCS to the device would be done by inverting these + * equations: + *

+                 * Xd = Xp * (Xdw / Xd50)
+                 * Yd = Yp * (Ydw / Yd50)
+                 * Zd = Zp * (Zdw / Zd50)
+                 * 
+ *

+ * Note that the media white point tag in an ICC profile is not the same + * as the device white point. The media white point tag is expressed in + * PCS values and is used to represent the difference between the XYZ of + * device illuminant and the XYZ of the device media when measured under + * that illuminant. The device white point is expressed as the device + * XYZ values corresponding to white displayed on the device. For + * example, displaying the RGB color (1.0, 1.0, 1.0) on an sRGB device + * will result in a measured device XYZ value of D65. This will not + * be the same as the media white point tag XYZ value in the ICC + * profile for an sRGB device. + *

+ */ + // @ts-ignore + public toCIEXYZ(colorvalue: number): number[]; + /** + * Transforms a color value assumed to be in the CS_CIEXYZ conversion + * color space into this ColorSpace. + *

+ * This method transforms color values using relative colorimetry, + * as defined by the ICC Specification. This + * means that the XYZ argument values taken by this method are represented + * relative to the D50 white point of the CS_CIEXYZ color space. + * This representation is useful in a two-step color conversion + * process in which colors are transformed from an input color + * space to CS_CIEXYZ and then to an output color space. The color + * values returned by this method are not those that would produce + * the XYZ value passed to the method when measured by a colorimeter. + * If you have XYZ values corresponding to measurements made using + * current CIE recommended practices, they must be converted to D50 + * relative values before being passed to this method. + * The paragraphs below explain this in more detail. + *

+ * The ICC standard uses a device independent color space (DICS) as the + * mechanism for converting color from one device to another device. In + * this architecture, colors are converted from the source device's color + * space to the ICC DICS and then from the ICC DICS to the destination + * device's color space. The ICC standard defines device profiles which + * contain transforms which will convert between a device's color space + * and the ICC DICS. The overall conversion of colors from a source + * device to colors of a destination device is done by connecting the + * device-to-DICS transform of the profile for the source device to the + * DICS-to-device transform of the profile for the destination device. + * For this reason, the ICC DICS is commonly referred to as the profile + * connection space (PCS). The color space used in the methods + * toCIEXYZ and fromCIEXYZ is the CIEXYZ PCS defined by the ICC + * Specification. This is also the color space represented by + * ColorSpace.CS_CIEXYZ. + *

+ * The XYZ values of a color are often represented as relative to some + * white point, so the actual meaning of the XYZ values cannot be known + * without knowing the white point of those values. This is known as + * relative colorimetry. The PCS uses a white point of D50, so the XYZ + * values of the PCS are relative to D50. For example, white in the PCS + * will have the XYZ values of D50, which is defined to be X=.9642, + * Y=1.000, and Z=0.8249. This white point is commonly used for graphic + * arts applications, but others are often used in other applications. + *

+ * To quantify the color characteristics of a device such as a printer + * or monitor, measurements of XYZ values for particular device colors + * are typically made. For purposes of this discussion, the term + * device XYZ values is used to mean the XYZ values that would be + * measured from device colors using current CIE recommended practices. + *

+ * Converting between device XYZ values and the PCS XYZ values taken as + * arguments by this method corresponds to converting between the device's + * color space, as represented by CIE colorimetric values, and the PCS. + * There are many factors involved in this process, some of which are quite + * subtle. The most important, however, is the adjustment made to account + * for differences between the device's white point and the white point of + * the PCS. There are many techniques for doing this and it is the + * subject of much current research and controversy. Some commonly used + * methods are XYZ scaling, the von Kries transform, and the Bradford + * transform. The proper method to use depends upon each particular + * application. + *

+ * The simplest method is XYZ scaling. In this method each device XYZ + * value is converted to a PCS XYZ value by multiplying it by the ratio + * of the PCS white point (D50) to the device white point. + *

+                 * Xd, Yd, Zd are the device XYZ values
+                 * Xdw, Ydw, Zdw are the device XYZ white point values
+                 * Xp, Yp, Zp are the PCS XYZ values
+                 * Xd50, Yd50, Zd50 are the PCS XYZ white point values
+                 * Xp = Xd * (Xd50 / Xdw)
+                 * Yp = Yd * (Yd50 / Ydw)
+                 * Zp = Zd * (Zd50 / Zdw)
+                 * 
+ *

+ * Conversion from the PCS to the device would be done by inverting these + * equations: + *

+                 * Xd = Xp * (Xdw / Xd50)
+                 * Yd = Yp * (Ydw / Yd50)
+                 * Zd = Zp * (Zdw / Zd50)
+                 * 
+ *

+ * Note that the media white point tag in an ICC profile is not the same + * as the device white point. The media white point tag is expressed in + * PCS values and is used to represent the difference between the XYZ of + * device illuminant and the XYZ of the device media when measured under + * that illuminant. The device white point is expressed as the device + * XYZ values corresponding to white displayed on the device. For + * example, displaying the RGB color (1.0, 1.0, 1.0) on an sRGB device + * will result in a measured device XYZ value of D65. This will not + * be the same as the media white point tag XYZ value in the ICC + * profile for an sRGB device. + *

+ */ + // @ts-ignore + public fromCIEXYZ(colorvalue: number): number[]; + /** + * Returns the minimum normalized color component value for the + * specified component. For TYPE_XYZ spaces, this method returns + * minimum values of 0.0 for all components. For TYPE_Lab spaces, + * this method returns 0.0 for L and -128.0 for a and b components. + * This is consistent with the encoding of the XYZ and Lab Profile + * Connection Spaces in the ICC specification. For all other types, this + * method returns 0.0 for all components. When using an ICC_ColorSpace + * with a profile that requires different minimum component values, + * it is necessary to subclass this class and override this method. + */ + // @ts-ignore + public getMinValue(component: number): number; + /** + * Returns the maximum normalized color component value for the + * specified component. For TYPE_XYZ spaces, this method returns + * maximum values of 1.0 + (32767.0 / 32768.0) for all components. + * For TYPE_Lab spaces, + * this method returns 100.0 for L and 127.0 for a and b components. + * This is consistent with the encoding of the XYZ and Lab Profile + * Connection Spaces in the ICC specification. For all other types, this + * method returns 1.0 for all components. When using an ICC_ColorSpace + * with a profile that requires different maximum component values, + * it is necessary to subclass this class and override this method. + */ + // @ts-ignore + public getMaxValue(component: number): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.color.ICC_Profile.d.ts b/packages/types/dist/typings/jdk/java.awt.color.ICC_Profile.d.ts new file mode 100644 index 00000000..f5e1e71e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.color.ICC_Profile.d.ts @@ -0,0 +1,378 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace color { + // @ts-ignore + class ICC_Profile extends java.lang.Object { + // @ts-ignore + public static CLASS_INPUT: number; + // @ts-ignore + public static CLASS_DISPLAY: number; + // @ts-ignore + public static CLASS_OUTPUT: number; + // @ts-ignore + public static CLASS_DEVICELINK: number; + // @ts-ignore + public static CLASS_COLORSPACECONVERSION: number; + // @ts-ignore + public static CLASS_ABSTRACT: number; + // @ts-ignore + public static CLASS_NAMEDCOLOR: number; + // @ts-ignore + public static icSigXYZData: number; + // @ts-ignore + public static icSigLabData: number; + // @ts-ignore + public static icSigLuvData: number; + // @ts-ignore + public static icSigYCbCrData: number; + // @ts-ignore + public static icSigYxyData: number; + // @ts-ignore + public static icSigRgbData: number; + // @ts-ignore + public static icSigGrayData: number; + // @ts-ignore + public static icSigHsvData: number; + // @ts-ignore + public static icSigHlsData: number; + // @ts-ignore + public static icSigCmykData: number; + // @ts-ignore + public static icSigCmyData: number; + // @ts-ignore + public static icSigSpace2CLR: number; + // @ts-ignore + public static icSigSpace3CLR: number; + // @ts-ignore + public static icSigSpace4CLR: number; + // @ts-ignore + public static icSigSpace5CLR: number; + // @ts-ignore + public static icSigSpace6CLR: number; + // @ts-ignore + public static icSigSpace7CLR: number; + // @ts-ignore + public static icSigSpace8CLR: number; + // @ts-ignore + public static icSigSpace9CLR: number; + // @ts-ignore + public static icSigSpaceACLR: number; + // @ts-ignore + public static icSigSpaceBCLR: number; + // @ts-ignore + public static icSigSpaceCCLR: number; + // @ts-ignore + public static icSigSpaceDCLR: number; + // @ts-ignore + public static icSigSpaceECLR: number; + // @ts-ignore + public static icSigSpaceFCLR: number; + // @ts-ignore + public static icSigInputClass: number; + // @ts-ignore + public static icSigDisplayClass: number; + // @ts-ignore + public static icSigOutputClass: number; + // @ts-ignore + public static icSigLinkClass: number; + // @ts-ignore + public static icSigAbstractClass: number; + // @ts-ignore + public static icSigColorSpaceClass: number; + // @ts-ignore + public static icSigNamedColorClass: number; + // @ts-ignore + public static icPerceptual: number; + // @ts-ignore + public static icRelativeColorimetric: number; + // @ts-ignore + public static icMediaRelativeColorimetric: number; + // @ts-ignore + public static icSaturation: number; + // @ts-ignore + public static icAbsoluteColorimetric: number; + // @ts-ignore + public static icICCAbsoluteColorimetric: number; + // @ts-ignore + public static icSigHead: number; + // @ts-ignore + public static icSigAToB0Tag: number; + // @ts-ignore + public static icSigAToB1Tag: number; + // @ts-ignore + public static icSigAToB2Tag: number; + // @ts-ignore + public static icSigBlueColorantTag: number; + // @ts-ignore + public static icSigBlueMatrixColumnTag: number; + // @ts-ignore + public static icSigBlueTRCTag: number; + // @ts-ignore + public static icSigBToA0Tag: number; + // @ts-ignore + public static icSigBToA1Tag: number; + // @ts-ignore + public static icSigBToA2Tag: number; + // @ts-ignore + public static icSigCalibrationDateTimeTag: number; + // @ts-ignore + public static icSigCharTargetTag: number; + // @ts-ignore + public static icSigCopyrightTag: number; + // @ts-ignore + public static icSigCrdInfoTag: number; + // @ts-ignore + public static icSigDeviceMfgDescTag: number; + // @ts-ignore + public static icSigDeviceModelDescTag: number; + // @ts-ignore + public static icSigDeviceSettingsTag: number; + // @ts-ignore + public static icSigGamutTag: number; + // @ts-ignore + public static icSigGrayTRCTag: number; + // @ts-ignore + public static icSigGreenColorantTag: number; + // @ts-ignore + public static icSigGreenMatrixColumnTag: number; + // @ts-ignore + public static icSigGreenTRCTag: number; + // @ts-ignore + public static icSigLuminanceTag: number; + // @ts-ignore + public static icSigMeasurementTag: number; + // @ts-ignore + public static icSigMediaBlackPointTag: number; + // @ts-ignore + public static icSigMediaWhitePointTag: number; + // @ts-ignore + public static icSigNamedColor2Tag: number; + // @ts-ignore + public static icSigOutputResponseTag: number; + // @ts-ignore + public static icSigPreview0Tag: number; + // @ts-ignore + public static icSigPreview1Tag: number; + // @ts-ignore + public static icSigPreview2Tag: number; + // @ts-ignore + public static icSigProfileDescriptionTag: number; + // @ts-ignore + public static icSigProfileSequenceDescTag: number; + // @ts-ignore + public static icSigPs2CRD0Tag: number; + // @ts-ignore + public static icSigPs2CRD1Tag: number; + // @ts-ignore + public static icSigPs2CRD2Tag: number; + // @ts-ignore + public static icSigPs2CRD3Tag: number; + // @ts-ignore + public static icSigPs2CSATag: number; + // @ts-ignore + public static icSigPs2RenderingIntentTag: number; + // @ts-ignore + public static icSigRedColorantTag: number; + // @ts-ignore + public static icSigRedMatrixColumnTag: number; + // @ts-ignore + public static icSigRedTRCTag: number; + // @ts-ignore + public static icSigScreeningDescTag: number; + // @ts-ignore + public static icSigScreeningTag: number; + // @ts-ignore + public static icSigTechnologyTag: number; + // @ts-ignore + public static icSigUcrBgTag: number; + // @ts-ignore + public static icSigViewingCondDescTag: number; + // @ts-ignore + public static icSigViewingConditionsTag: number; + // @ts-ignore + public static icSigChromaticityTag: number; + // @ts-ignore + public static icSigChromaticAdaptationTag: number; + // @ts-ignore + public static icSigColorantOrderTag: number; + // @ts-ignore + public static icSigColorantTableTag: number; + // @ts-ignore + public static icHdrSize: number; + // @ts-ignore + public static icHdrCmmId: number; + // @ts-ignore + public static icHdrVersion: number; + // @ts-ignore + public static icHdrDeviceClass: number; + // @ts-ignore + public static icHdrColorSpace: number; + // @ts-ignore + public static icHdrPcs: number; + // @ts-ignore + public static icHdrDate: number; + // @ts-ignore + public static icHdrMagic: number; + // @ts-ignore + public static icHdrPlatform: number; + // @ts-ignore + public static icHdrFlags: number; + // @ts-ignore + public static icHdrManufacturer: number; + // @ts-ignore + public static icHdrModel: number; + // @ts-ignore + public static icHdrAttributes: number; + // @ts-ignore + public static icHdrRenderingIntent: number; + // @ts-ignore + public static icHdrIlluminant: number; + // @ts-ignore + public static icHdrCreator: number; + // @ts-ignore + public static icHdrProfileID: number; + // @ts-ignore + public static icTagType: number; + // @ts-ignore + public static icTagReserved: number; + // @ts-ignore + public static icCurveCount: number; + // @ts-ignore + public static icCurveData: number; + // @ts-ignore + public static icXYZNumberX: number; + /** + * Frees the resources associated with an ICC_Profile object. + */ + // @ts-ignore + protected finalize(): void; + /** + * Constructs an ICC_Profile object corresponding to the data in + * a byte array. Throws an IllegalArgumentException if the data + * does not correspond to a valid ICC Profile. + */ + // @ts-ignore + public static getInstance(data: number): java.awt.color.ICC_Profile; + /** + * Constructs an ICC_Profile corresponding to one of the specific color + * spaces defined by the ColorSpace class (for example CS_sRGB). + * Throws an IllegalArgumentException if cspace is not one of the + * defined color spaces. + */ + // @ts-ignore + public static getInstance(cspace: number): java.awt.color.ICC_Profile; + /** + * Constructs an ICC_Profile corresponding to the data in a file. + * fileName may be an absolute or a relative file specification. + * Relative file names are looked for in several places: first, relative + * to any directories specified by the java.iccprofile.path property; + * second, relative to any directories specified by the java.class.path + * property; finally, in a directory used to store profiles always + * available, such as the profile for sRGB. Built-in profiles use .pf as + * the file name extension for profiles, e.g. sRGB.pf. + * This method throws an IOException if the specified file cannot be + * opened or if an I/O error occurs while reading the file. It throws + * an IllegalArgumentException if the file does not contain valid ICC + * Profile data. + */ + // @ts-ignore + public static getInstance(fileName: string): java.awt.color.ICC_Profile; + /** + * Constructs an ICC_Profile corresponding to the data in an InputStream. + * This method throws an IllegalArgumentException if the stream does not + * contain valid ICC Profile data. It throws an IOException if an I/O + * error occurs while reading the stream. + */ + // @ts-ignore + public static getInstance(s: java.io.InputStream): java.awt.color.ICC_Profile; + /** + * Returns profile major version. + */ + // @ts-ignore + public getMajorVersion(): number; + /** + * Returns profile minor version. + */ + // @ts-ignore + public getMinorVersion(): number; + /** + * Returns the profile class. + */ + // @ts-ignore + public getProfileClass(): number; + /** + * Returns the color space type. Returns one of the color space type + * constants defined by the ColorSpace class. This is the + * "input" color space of the profile. The type defines the + * number of components of the color space and the interpretation, + * e.g. TYPE_RGB identifies a color space with three components - red, + * green, and blue. It does not define the particular color + * characteristics of the space, e.g. the chromaticities of the + * primaries. + */ + // @ts-ignore + public getColorSpaceType(): number; + /** + * Returns the color space type of the Profile Connection Space (PCS). + * Returns one of the color space type constants defined by the + * ColorSpace class. This is the "output" color space of the + * profile. For an input, display, or output profile useful + * for tagging colors or images, this will be either TYPE_XYZ or + * TYPE_Lab and should be interpreted as the corresponding specific + * color space defined in the ICC specification. For a device + * link profile, this could be any of the color space type constants. + */ + // @ts-ignore + public getPCSType(): number; + /** + * Write this ICC_Profile to a file. + */ + // @ts-ignore + public write(fileName: string): void; + /** + * Write this ICC_Profile to an OutputStream. + */ + // @ts-ignore + public write(s: java.io.OutputStream): void; + /** + * Returns a byte array corresponding to the data of this ICC_Profile. + */ + // @ts-ignore + public getData(): number[]; + /** + * Returns a particular tagged data element from the profile as + * a byte array. Elements are identified by signatures + * as defined in the ICC specification. The signature + * icSigHead can be used to get the header. This method is useful + * for advanced applets or applications which need to access + * profile data directly. + */ + // @ts-ignore + public getData(tagSignature: number): number[]; + /** + * Sets a particular tagged data element in the profile from + * a byte array. The array should contain data in a format, corresponded + * to the {@code tagSignature} as defined in the ICC specification, section 10. + * This method is useful for advanced applets or applications which need to + * access profile data directly. + */ + // @ts-ignore + public setData(tagSignature: number, tagData: number): void; + /** + * Returns the number of color components in the "input" color + * space of this profile. For example if the color space type + * of this profile is TYPE_RGB, then this method will return 3. + */ + // @ts-ignore + public getNumComponents(): number; + /** + * Resolves instances being deserialized into instances registered + * with CMM. + */ + // @ts-ignore + protected readResolve(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.color.ICC_ProfileGray.d.ts b/packages/types/dist/typings/jdk/java.awt.color.ICC_ProfileGray.d.ts new file mode 100644 index 00000000..a99cf1af --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.color.ICC_ProfileGray.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace color { + // @ts-ignore + class ICC_ProfileGray extends java.awt.color.ICC_Profile { + /** + * Returns a float array of length 3 containing the X, Y, and Z + * components of the mediaWhitePointTag in the ICC profile. + */ + // @ts-ignore + public getMediaWhitePoint(): number[]; + /** + * Returns a gamma value representing the tone reproduction + * curve (TRC). If the profile represents the TRC as a table rather + * than a single gamma value, then an exception is thrown. In this + * case the actual table can be obtained via getTRC(). When + * using a gamma value, the PCS Y component is computed as follows: + *

+                 *                           gamma
+                 *          PCSY = deviceGray
+                 * 
+ */ + // @ts-ignore + public getGamma(): number; + /** + * Returns the TRC as an array of shorts. If the profile has + * specified the TRC as linear (gamma = 1.0) or as a simple gamma + * value, this method throws an exception, and the getGamma() method + * should be used to get the gamma value. Otherwise the short array + * returned here represents a lookup table where the input Gray value + * is conceptually in the range [0.0, 1.0]. Value 0.0 maps + * to array index 0 and value 1.0 maps to array index length-1. + * Interpolation may be used to generate output values for + * input values which do not map exactly to an index in the + * array. Output values also map linearly to the range [0.0, 1.0]. + * Value 0.0 is represented by an array value of 0x0000 and + * value 1.0 by 0xFFFF, i.e. the values are really unsigned + * short values, although they are returned in a short array. + */ + // @ts-ignore + public getTRC(): number[]; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.color.ICC_ProfileRGB.d.ts b/packages/types/dist/typings/jdk/java.awt.color.ICC_ProfileRGB.d.ts new file mode 100644 index 00000000..b3521394 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.color.ICC_ProfileRGB.d.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace color { + // @ts-ignore + class ICC_ProfileRGB extends java.awt.color.ICC_Profile { + // @ts-ignore + public static REDCOMPONENT: number; + // @ts-ignore + public static GREENCOMPONENT: number; + // @ts-ignore + public static BLUECOMPONENT: number; + /** + * Returns an array that contains the components of the profile's + * mediaWhitePointTag. + */ + // @ts-ignore + public getMediaWhitePoint(): number[]; + /** + * Returns a 3x3 float matrix constructed from the + * X, Y, and Z components of the profile's redColorantTag, + * greenColorantTag, and blueColorantTag. + *

+ * This matrix can be used for color transforms in the forward + * direction of the profile--from the profile color space + * to the CIEXYZ PCS. + */ + // @ts-ignore + public getMatrix(): float[][]; + /** + * Returns a gamma value representing the tone reproduction curve + * (TRC) for a particular component. The component parameter + * must be one of REDCOMPONENT, GREENCOMPONENT, or BLUECOMPONENT. + *

+ * If the profile + * represents the TRC for the corresponding component + * as a table rather than a single gamma value, an + * exception is thrown. In this case the actual table + * can be obtained through the {@link #getTRC(int)} method. + * When using a gamma value, + * the linear component (R, G, or B) is computed as follows: + *

+                 *                                           gamma
+                 *          linearComponent = deviceComponent
+                 * 
+ */ + // @ts-ignore + public getGamma(component: number): number; + /** + * Returns the TRC for a particular component as an array. + * Component must be REDCOMPONENT, + * GREENCOMPONENT, or BLUECOMPONENT. + * Otherwise the returned array + * represents a lookup table where the input component value + * is conceptually in the range [0.0, 1.0]. Value 0.0 maps + * to array index 0 and value 1.0 maps to array index length-1. + * Interpolation might be used to generate output values for + * input values that do not map exactly to an index in the + * array. Output values also map linearly to the range [0.0, 1.0]. + * Value 0.0 is represented by an array value of 0x0000 and + * value 1.0 by 0xFFFF. In other words, the values are really unsigned + * short values even though they are returned in a + * short array. + * If the profile has specified the corresponding TRC + * as linear (gamma = 1.0) or as a simple gamma value, this method + * throws an exception. In this case, the {@link #getGamma(int)} + * method should be used to get the gamma value. + */ + // @ts-ignore + public getTRC(component: number): number[]; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.color.ProfileDataException.d.ts b/packages/types/dist/typings/jdk/java.awt.color.ProfileDataException.d.ts new file mode 100644 index 00000000..b09bb037 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.color.ProfileDataException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace color { + // @ts-ignore + class ProfileDataException extends java.lang.RuntimeException { + /** + * Constructs a ProfileDataException with the specified detail message. + */ + // @ts-ignore + constructor(s: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.datatransfer.Clipboard.d.ts b/packages/types/dist/typings/jdk/java.awt.datatransfer.Clipboard.d.ts new file mode 100644 index 00000000..e21a7375 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.datatransfer.Clipboard.d.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace datatransfer { + // @ts-ignore + class Clipboard extends java.lang.Object { + /** + * Creates a clipboard object. + */ + // @ts-ignore + constructor(name: string) + // @ts-ignore + protected owner: java.awt.datatransfer.ClipboardOwner; + // @ts-ignore + protected contents: java.awt.datatransfer.Transferable; + /** + * Returns the name of this clipboard object. + */ + // @ts-ignore + public getName(): string; + /** + * Sets the current contents of the clipboard to the specified + * transferable object and registers the specified clipboard owner + * as the owner of the new contents. + *

+ * If there is an existing owner different from the argument + * owner, that owner is notified that it no longer + * holds ownership of the clipboard contents via an invocation + * of ClipboardOwner.lostOwnership() on that owner. + * An implementation of setContents() is free not + * to invoke lostOwnership() directly from this method. + * For example, lostOwnership() may be invoked later on + * a different thread. The same applies to FlavorListeners + * registered on this clipboard. + *

+ * The method throws IllegalStateException if the clipboard + * is currently unavailable. For example, on some platforms, the system + * clipboard is unavailable while it is accessed by another application. + */ + // @ts-ignore + public setContents(contents: java.awt.datatransfer.Transferable, owner: java.awt.datatransfer.ClipboardOwner): void; + /** + * Returns a transferable object representing the current contents + * of the clipboard. If the clipboard currently has no contents, + * it returns null. The parameter Object requestor is + * not currently used. The method throws + * IllegalStateException if the clipboard is currently + * unavailable. For example, on some platforms, the system clipboard is + * unavailable while it is accessed by another application. + */ + // @ts-ignore + public getContents(requestor: java.lang.Object): java.awt.datatransfer.Transferable; + /** + * Returns an array of DataFlavors in which the current + * contents of this clipboard can be provided. If there are no + * DataFlavors available, this method returns a zero-length + * array. + */ + // @ts-ignore + public getAvailableDataFlavors(): java.awt.datatransfer.DataFlavor[]; + /** + * Returns whether or not the current contents of this clipboard can be + * provided in the specified DataFlavor. + */ + // @ts-ignore + public isDataFlavorAvailable(flavor: java.awt.datatransfer.DataFlavor): boolean; + /** + * Returns an object representing the current contents of this clipboard + * in the specified DataFlavor. + * The class of the object returned is defined by the representation + * class of flavor. + */ + // @ts-ignore + public getData(flavor: java.awt.datatransfer.DataFlavor): java.lang.Object; + /** + * Registers the specified FlavorListener to receive + * FlavorEvents from this clipboard. + * If listener is null, no exception + * is thrown and no action is performed. + */ + // @ts-ignore + public addFlavorListener(listener: java.awt.datatransfer.FlavorListener): void; + /** + * Removes the specified FlavorListener so that it no longer + * receives FlavorEvents from this Clipboard. + * This method performs no function, nor does it throw an exception, if + * the listener specified by the argument was not previously added to this + * Clipboard. + * If listener is null, no exception + * is thrown and no action is performed. + */ + // @ts-ignore + public removeFlavorListener(listener: java.awt.datatransfer.FlavorListener): void; + /** + * Returns an array of all the FlavorListeners currently + * registered on this Clipboard. + */ + // @ts-ignore + public getFlavorListeners(): java.awt.datatransfer.FlavorListener[]; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.datatransfer.ClipboardOwner.d.ts b/packages/types/dist/typings/jdk/java.awt.datatransfer.ClipboardOwner.d.ts new file mode 100644 index 00000000..3c9c137e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.datatransfer.ClipboardOwner.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace datatransfer { + // @ts-ignore + interface ClipboardOwner { + /** + * Notifies this object that it is no longer the clipboard owner. + * This method will be called when another application or another + * object within this application asserts ownership of the clipboard. + */ + // @ts-ignore + lostOwnership(clipboard: java.awt.datatransfer.Clipboard, contents: java.awt.datatransfer.Transferable): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.datatransfer.DataFlavor.d.ts b/packages/types/dist/typings/jdk/java.awt.datatransfer.DataFlavor.d.ts new file mode 100644 index 00000000..2373694e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.datatransfer.DataFlavor.d.ts @@ -0,0 +1,493 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace datatransfer { + // @ts-ignore + class DataFlavor extends java.lang.Object { + /** + * Constructs a new DataFlavor. This constructor is + * provided only for the purpose of supporting the + * Externalizable interface. It is not + * intended for public (client) use. + */ + // @ts-ignore + constructor() + /** + * Constructs a DataFlavor that represents a Java class. + *

+ * The returned DataFlavor will have the following + * characteristics: + *

+                 * representationClass = representationClass
+                 * mimeType            = application/x-java-serialized-object
+                 * 
+ */ + // @ts-ignore + constructor(representationClass: java.lang.Class, humanPresentableName: string) + /** + * Constructs a DataFlavor that represents a + * MimeType. + *

+ * The returned DataFlavor will have the following + * characteristics: + *

+ * If the mimeType is + * "application/x-java-serialized-object; class=<representation class>", + * the result is the same as calling + * new DataFlavor(Class:forName(<representation class>). + *

+ * Otherwise: + *

+                 * representationClass = InputStream
+                 * mimeType            = mimeType
+                 * 
+ */ + // @ts-ignore + constructor(mimeType: string, humanPresentableName: string) + /** + * Constructs a DataFlavor that represents a + * MimeType. + *

+ * The returned DataFlavor will have the following + * characteristics: + *

+ * If the mimeType is + * "application/x-java-serialized-object; class=<representation class>", + * the result is the same as calling + * new DataFlavor(Class:forName(<representation class>). + *

+ * Otherwise: + *

+                 * representationClass = InputStream
+                 * mimeType            = mimeType
+                 * 
+ */ + // @ts-ignore + constructor(mimeType: string, humanPresentableName: string, classLoader: java.lang.ClassLoader) + /** + * Constructs a DataFlavor from a mimeType string. + * The string can specify a "class=<fully specified Java class name>" + * parameter to create a DataFlavor with the desired + * representation class. If the string does not contain "class=" parameter, + * java.io.InputStream is used as default. + */ + // @ts-ignore + constructor(mimeType: string) + // @ts-ignore + public static stringFlavor: java.awt.datatransfer.DataFlavor; + // @ts-ignore + public static imageFlavor: java.awt.datatransfer.DataFlavor; + // @ts-ignore + public static plainTextFlavor: java.awt.datatransfer.DataFlavor; + // @ts-ignore + public static javaSerializedObjectMimeType: string; + // @ts-ignore + public static javaFileListFlavor: java.awt.datatransfer.DataFlavor; + // @ts-ignore + public static javaJVMLocalObjectMimeType: string; + // @ts-ignore + public static javaRemoteObjectMimeType: string; + // @ts-ignore + public static selectionHtmlFlavor: java.awt.datatransfer.DataFlavor; + // @ts-ignore + public static fragmentHtmlFlavor: java.awt.datatransfer.DataFlavor; + // @ts-ignore + public static allHtmlFlavor: java.awt.datatransfer.DataFlavor; + /** + * Tries to load a class from: the bootstrap loader, the system loader, + * the context loader (if one is present) and finally the loader specified. + */ + // @ts-ignore + protected static tryToLoadClass(className: string, fallback: java.lang.ClassLoader): java.lang.Class; + /** + * String representation of this DataFlavor and its + * parameters. The resulting String contains the name of + * the DataFlavor class, this flavor's MIME type, and its + * representation class. If this flavor has a primary MIME type of "text", + * supports the charset parameter, and has an encoded representation, the + * flavor's charset is also included. See selectBestTextFlavor + * for a list of text flavors which support the charset parameter. + */ + // @ts-ignore + public toString(): string; + /** + * Returns a DataFlavor representing plain text with Unicode + * encoding, where: + *
+                 * representationClass = java.io.InputStream
+                 * mimeType            = "text/plain;
+                 * charset=<platform default Unicode encoding>"
+                 * 
+ * Sun's implementation for Microsoft Windows uses the encoding utf-16le. + * Sun's implementation for Solaris and Linux uses the encoding + * iso-10646-ucs-2. + */ + // @ts-ignore + public static getTextPlainUnicodeFlavor(): java.awt.datatransfer.DataFlavor; + /** + * Selects the best text DataFlavor from an array of + * DataFlavors. Only DataFlavor.stringFlavor, and + * equivalent flavors, and flavors that have a primary MIME type of "text", + * are considered for selection. + *

+ * Flavors are first sorted by their MIME types in the following order: + *

    + *
  • "text/sgml" + *
  • "text/xml" + *
  • "text/html" + *
  • "text/rtf" + *
  • "text/enriched" + *
  • "text/richtext" + *
  • "text/uri-list" + *
  • "text/tab-separated-values" + *
  • "text/t140" + *
  • "text/rfc822-headers" + *
  • "text/parityfec" + *
  • "text/directory" + *
  • "text/css" + *
  • "text/calendar" + *
  • "application/x-java-serialized-object" + *
  • "text/plain" + *
  • "text/<other>" + *
+ *

For example, "text/sgml" will be selected over + * "text/html", and DataFlavor.stringFlavor will be chosen + * over DataFlavor.plainTextFlavor. + *

+ * If two or more flavors share the best MIME type in the array, then that + * MIME type will be checked to see if it supports the charset parameter. + *

+ * The following MIME types support, or are treated as though they support, + * the charset parameter: + *

    + *
  • "text/sgml" + *
  • "text/xml" + *
  • "text/html" + *
  • "text/enriched" + *
  • "text/richtext" + *
  • "text/uri-list" + *
  • "text/directory" + *
  • "text/css" + *
  • "text/calendar" + *
  • "application/x-java-serialized-object" + *
  • "text/plain" + *
+ * The following MIME types do not support, or are treated as though they + * do not support, the charset parameter: + *
    + *
  • "text/rtf" + *
  • "text/tab-separated-values" + *
  • "text/t140" + *
  • "text/rfc822-headers" + *
  • "text/parityfec" + *
+ * For "text/<other>" MIME types, the first time the JRE needs to + * determine whether the MIME type supports the charset parameter, it will + * check whether the parameter is explicitly listed in an arbitrarily + * chosen DataFlavor which uses that MIME type. If so, the JRE + * will assume from that point on that the MIME type supports the charset + * parameter and will not check again. If the parameter is not explicitly + * listed, the JRE will assume from that point on that the MIME type does + * not support the charset parameter and will not check again. Because + * this check is performed on an arbitrarily chosen + * DataFlavor, developers must ensure that all + * DataFlavors with a "text/<other>" MIME type specify + * the charset parameter if it is supported by that MIME type. Developers + * should never rely on the JRE to substitute the platform's default + * charset for a "text/<other>" DataFlavor. Failure to adhere to this + * restriction will lead to undefined behavior. + *

+ * If the best MIME type in the array does not support the charset + * parameter, the flavors which share that MIME type will then be sorted by + * their representation classes in the following order: + * java.io.InputStream, java.nio.ByteBuffer, + * [B, <all others>. + *

+ * If two or more flavors share the best representation class, or if no + * flavor has one of the three specified representations, then one of those + * flavors will be chosen non-deterministically. + *

+ * If the best MIME type in the array does support the charset parameter, + * the flavors which share that MIME type will then be sorted by their + * representation classes in the following order: + * java.io.Reader, java.lang.String, + * java.nio.CharBuffer, [C, <all others>. + *

+ * If two or more flavors share the best representation class, and that + * representation is one of the four explicitly listed, then one of those + * flavors will be chosen non-deterministically. If, however, no flavor has + * one of the four specified representations, the flavors will then be + * sorted by their charsets. Unicode charsets, such as "UTF-16", "UTF-8", + * "UTF-16BE", "UTF-16LE", and their aliases, are considered best. After + * them, the platform default charset and its aliases are selected. + * "US-ASCII" and its aliases are worst. All other charsets are chosen in + * alphabetical order, but only charsets supported by this implementation + * of the Java platform will be considered. + *

+ * If two or more flavors share the best charset, the flavors will then + * again be sorted by their representation classes in the following order: + * java.io.InputStream, java.nio.ByteBuffer, + * [B, <all others>. + *

+ * If two or more flavors share the best representation class, or if no + * flavor has one of the three specified representations, then one of those + * flavors will be chosen non-deterministically. + */ + // @ts-ignore + public static selectBestTextFlavor(availableFlavors: java.awt.datatransfer.DataFlavor): java.awt.datatransfer.DataFlavor; + /** + * Gets a Reader for a text flavor, decoded, if necessary, for the expected + * charset (encoding). The supported representation classes are + * java.io.Reader, java.lang.String, + * java.nio.CharBuffer, [C, + * java.io.InputStream, java.nio.ByteBuffer, + * and [B. + *

+ * Because text flavors which do not support the charset parameter are + * encoded in a non-standard format, this method should not be called for + * such flavors. However, in order to maintain backward-compatibility, + * if this method is called for such a flavor, this method will treat the + * flavor as though it supports the charset parameter and attempt to + * decode it accordingly. See selectBestTextFlavor for a list + * of text flavors which do not support the charset parameter. + */ + // @ts-ignore + public getReaderForText(transferable: java.awt.datatransfer.Transferable): java.io.Reader; + /** + * Returns the MIME type string for this DataFlavor. + */ + // @ts-ignore + public getMimeType(): string; + /** + * Returns the Class which objects supporting this + * DataFlavor will return when this DataFlavor + * is requested. + */ + // @ts-ignore + public getRepresentationClass(): java.lang.Class; + /** + * Returns the human presentable name for the data format that this + * DataFlavor represents. This name would be localized + * for different countries. + */ + // @ts-ignore + public getHumanPresentableName(): string; + /** + * Returns the primary MIME type for this DataFlavor. + */ + // @ts-ignore + public getPrimaryType(): string; + /** + * Returns the sub MIME type of this DataFlavor. + */ + // @ts-ignore + public getSubType(): string; + /** + * Returns the human presentable name for this DataFlavor + * if paramName equals "humanPresentableName". Otherwise + * returns the MIME type value associated with paramName. + */ + // @ts-ignore + public getParameter(paramName: string): string; + /** + * Sets the human presentable name for the data format that this + * DataFlavor represents. This name would be localized + * for different countries. + */ + // @ts-ignore + public setHumanPresentableName(humanPresentableName: string): void; + /** + * {@inheritDoc} + *

+ * The equals comparison for the {@code DataFlavor} class is implemented + * as follows: Two DataFlavors are considered equal if and + * only if their MIME primary type and subtype and representation class are + * equal. Additionally, if the primary type is "text", the subtype denotes + * a text flavor which supports the charset parameter, and the + * representation class is not java.io.Reader, + * java.lang.String, java.nio.CharBuffer, or + * [C, the charset parameter must also be equal. + * If a charset is not explicitly specified for one or both + * DataFlavors, the platform default encoding is assumed. See + * selectBestTextFlavor for a list of text flavors which + * support the charset parameter. + */ + // @ts-ignore + public equals(o: java.lang.Object): boolean; + /** + * This method has the same behavior as {@link #equals(Object)}. + * The only difference being that it takes a {@code DataFlavor} instance + * as a parameter. + */ + // @ts-ignore + public equals(that: java.awt.datatransfer.DataFlavor): boolean; + /** + * Compares only the mimeType against the passed in + * String and representationClass is + * not considered in the comparison. + * If representationClass needs to be compared, then + * equals(new DataFlavor(s)) may be used. + */ + // @ts-ignore + public equals(s: string): boolean; + /** + * Returns hash code for this DataFlavor. + * For two equal DataFlavors, hash codes are equal. + * For the String + * that matches DataFlavor.equals(String), it is not + * guaranteed that DataFlavor's hash code is equal + * to the hash code of the String. + */ + // @ts-ignore + public hashCode(): number; + /** + * Identical to {@link #equals(DataFlavor)}. + */ + // @ts-ignore + public match(that: java.awt.datatransfer.DataFlavor): boolean; + /** + * Returns whether the string representation of the MIME type passed in + * is equivalent to the MIME type of this DataFlavor. + * Parameters are not included in the comparison. + */ + // @ts-ignore + public isMimeTypeEqual(mimeType: string): boolean; + /** + * Compares the mimeType of two DataFlavor + * objects. No parameters are considered. + */ + // @ts-ignore + public isMimeTypeEqual(dataFlavor: java.awt.datatransfer.DataFlavor): boolean; + /** + * Does the DataFlavor represent a serialized object? + */ + // @ts-ignore + public isMimeTypeSerializedObject(): boolean; + // @ts-ignore + public getDefaultRepresentationClass(): java.lang.Class; + // @ts-ignore + public getDefaultRepresentationClassAsString(): string; + /** + * Does the DataFlavor represent a + * java.io.InputStream? + */ + // @ts-ignore + public isRepresentationClassInputStream(): boolean; + /** + * Returns whether the representation class for this + * DataFlavor is java.io.Reader or a subclass + * thereof. + */ + // @ts-ignore + public isRepresentationClassReader(): boolean; + /** + * Returns whether the representation class for this + * DataFlavor is java.nio.CharBuffer or a + * subclass thereof. + */ + // @ts-ignore + public isRepresentationClassCharBuffer(): boolean; + /** + * Returns whether the representation class for this + * DataFlavor is java.nio.ByteBuffer or a + * subclass thereof. + */ + // @ts-ignore + public isRepresentationClassByteBuffer(): boolean; + /** + * Returns true if the representation class can be serialized. + */ + // @ts-ignore + public isRepresentationClassSerializable(): boolean; + /** + * Returns true if the representation class is Remote. + */ + // @ts-ignore + public isRepresentationClassRemote(): boolean; + /** + * Returns true if the DataFlavor specified represents + * a serialized object. + */ + // @ts-ignore + public isFlavorSerializedObjectType(): boolean; + /** + * Returns true if the DataFlavor specified represents + * a remote object. + */ + // @ts-ignore + public isFlavorRemoteObjectType(): boolean; + /** + * Returns true if the DataFlavor specified represents + * a list of file objects. + */ + // @ts-ignore + public isFlavorJavaFileListType(): boolean; + /** + * Returns whether this DataFlavor is a valid text flavor for + * this implementation of the Java platform. Only flavors equivalent to + * DataFlavor.stringFlavor and DataFlavors with + * a primary MIME type of "text" can be valid text flavors. + *

+ * If this flavor supports the charset parameter, it must be equivalent to + * DataFlavor.stringFlavor, or its representation must be + * java.io.Reader, java.lang.String, + * java.nio.CharBuffer, [C, + * java.io.InputStream, java.nio.ByteBuffer, or + * [B. If the representation is + * java.io.InputStream, java.nio.ByteBuffer, or + * [B, then this flavor's charset parameter must + * be supported by this implementation of the Java platform. If a charset + * is not specified, then the platform default charset, which is always + * supported, is assumed. + *

+ * If this flavor does not support the charset parameter, its + * representation must be java.io.InputStream, + * java.nio.ByteBuffer, or [B. + *

+ * See selectBestTextFlavor for a list of text flavors which + * support the charset parameter. + */ + // @ts-ignore + public isFlavorTextType(): boolean; + /** + * Serializes this DataFlavor. + */ + // @ts-ignore + public writeExternal(os: java.io.ObjectOutput): void; + /** + * Restores this DataFlavor from a Serialized state. + */ + // @ts-ignore + public readExternal(is: java.io.ObjectInput): void; + /** + * Returns a clone of this DataFlavor. + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Called on DataFlavor for every MIME Type parameter + * to allow DataFlavor subclasses to handle special + * parameters like the text/plain charset + * parameters, whose values are case insensitive. (MIME type parameter + * values are supposed to be case sensitive. + *

+ * This method is called for each parameter name/value pair and should + * return the normalized representation of the parameterValue. + * This method is never invoked by this implementation from 1.1 onwards. + */ + // @ts-ignore + protected normalizeMimeTypeParameter(parameterName: string, parameterValue: string): string; + /** + * Called for each MIME type string to give DataFlavor subtypes + * the opportunity to change how the normalization of MIME types is + * accomplished. One possible use would be to add default + * parameter/value pairs in cases where none are present in the MIME + * type string passed in. + * This method is never invoked by this implementation from 1.1 onwards. + */ + // @ts-ignore + protected normalizeMimeType(mimeType: string): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.datatransfer.FlavorEvent.d.ts b/packages/types/dist/typings/jdk/java.awt.datatransfer.FlavorEvent.d.ts new file mode 100644 index 00000000..7267bc2e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.datatransfer.FlavorEvent.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace datatransfer { + // @ts-ignore + class FlavorEvent extends java.util.EventObject { + /** + * Constructs a FlavorEvent object. + */ + // @ts-ignore + constructor(source: java.awt.datatransfer.Clipboard) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.datatransfer.FlavorListener.d.ts b/packages/types/dist/typings/jdk/java.awt.datatransfer.FlavorListener.d.ts new file mode 100644 index 00000000..38b0c2ae --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.datatransfer.FlavorListener.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace datatransfer { + // @ts-ignore + interface FlavorListener { + /** + * Invoked when the target {@link Clipboard} of the listener + * has changed its available {@link DataFlavor}s. + *

+ * Some notifications may be redundant — they are not + * caused by a change of the set of DataFlavors available + * on the clipboard. + * For example, if the clipboard subsystem supposes that + * the system clipboard's contents has been changed but it + * can't ascertain whether its DataFlavors have been changed + * because of some exceptional condition when accessing the + * clipboard, the notification is sent to ensure from omitting + * a significant notification. Ordinarily, those redundant + * notifications should be occasional. + */ + // @ts-ignore + flavorsChanged(e: java.awt.datatransfer.FlavorEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.datatransfer.FlavorMap.d.ts b/packages/types/dist/typings/jdk/java.awt.datatransfer.FlavorMap.d.ts new file mode 100644 index 00000000..92cf7768 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.datatransfer.FlavorMap.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace datatransfer { + // @ts-ignore + interface FlavorMap { + /** + * Returns a Map of the specified DataFlavors to + * their corresponding String native. The returned + * Map is a modifiable copy of this FlavorMap's + * internal data. Client code is free to modify the Map + * without affecting this object. + */ + // @ts-ignore + getNativesForFlavors(flavors: java.awt.datatransfer.DataFlavor): java.util.Map; + /** + * Returns a Map of the specified String natives + * to their corresponding DataFlavor. The returned + * Map is a modifiable copy of this FlavorMap's + * internal data. Client code is free to modify the Map + * without affecting this object. + */ + // @ts-ignore + getFlavorsForNatives(natives: string): java.util.Map; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.datatransfer.FlavorTable.d.ts b/packages/types/dist/typings/jdk/java.awt.datatransfer.FlavorTable.d.ts new file mode 100644 index 00000000..1e866c72 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.datatransfer.FlavorTable.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace datatransfer { + // @ts-ignore + interface FlavorTable { + /** + * Returns a List of String natives to which the + * specified DataFlavor corresponds. The List + * will be sorted from best native to worst. That is, the first native will + * best reflect data in the specified flavor to the underlying native + * platform. The returned List is a modifiable copy of this + * FlavorTable's internal data. Client code is free to modify + * the List without affecting this object. + */ + // @ts-ignore + getNativesForFlavor(flav: java.awt.datatransfer.DataFlavor): java.util.List; + /** + * Returns a List of DataFlavors to which the + * specified String corresponds. The List will be + * sorted from best DataFlavor to worst. That is, the first + * DataFlavor will best reflect data in the specified + * native to a Java application. The returned List is a + * modifiable copy of this FlavorTable's internal data. + * Client code is free to modify the List without affecting + * this object. + */ + // @ts-ignore + getFlavorsForNative(nat: string): java.util.List; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.datatransfer.MimeTypeParseException.d.ts b/packages/types/dist/typings/jdk/java.awt.datatransfer.MimeTypeParseException.d.ts new file mode 100644 index 00000000..c8972e16 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.datatransfer.MimeTypeParseException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace datatransfer { + // @ts-ignore + class MimeTypeParseException extends java.lang.Exception { + /** + * Constructs a MimeTypeParseException with no specified detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs a MimeTypeParseException with the specified detail message. + */ + // @ts-ignore + constructor(s: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.datatransfer.StringSelection.d.ts b/packages/types/dist/typings/jdk/java.awt.datatransfer.StringSelection.d.ts new file mode 100644 index 00000000..9568c4d1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.datatransfer.StringSelection.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace datatransfer { + // @ts-ignore + class StringSelection extends java.lang.Object { + /** + * Creates a Transferable capable of transferring + * the specified String. + */ + // @ts-ignore + constructor(data: string) + /** + * Returns an array of flavors in which this Transferable + * can provide the data. DataFlavor.stringFlavor + * is properly supported. + * Support for DataFlavor.plainTextFlavor is + * deprecated. + */ + // @ts-ignore + public getTransferDataFlavors(): java.awt.datatransfer.DataFlavor[]; + /** + * Returns whether the requested flavor is supported by this + * Transferable. + */ + // @ts-ignore + public isDataFlavorSupported(flavor: java.awt.datatransfer.DataFlavor): boolean; + /** + * Returns the Transferable's data in the requested + * DataFlavor if possible. If the desired flavor is + * DataFlavor.stringFlavor, or an equivalent flavor, + * the String representing the selection is + * returned. If the desired flavor is + * DataFlavor.plainTextFlavor, + * or an equivalent flavor, a Reader is returned. + * Note: The behavior of this method for + * DataFlavor.plainTextFlavor + * and equivalent DataFlavors is inconsistent with the + * definition of DataFlavor.plainTextFlavor. + */ + // @ts-ignore + public getTransferData(flavor: java.awt.datatransfer.DataFlavor): java.lang.Object; + // @ts-ignore + public lostOwnership(clipboard: java.awt.datatransfer.Clipboard, contents: java.awt.datatransfer.Transferable): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.datatransfer.SystemFlavorMap.d.ts b/packages/types/dist/typings/jdk/java.awt.datatransfer.SystemFlavorMap.d.ts new file mode 100644 index 00000000..c84ef92e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.datatransfer.SystemFlavorMap.d.ts @@ -0,0 +1,207 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace datatransfer { + // @ts-ignore + class SystemFlavorMap extends java.lang.Object { + /** + * Returns the default FlavorMap for this thread's ClassLoader. + */ + // @ts-ignore + public static getDefaultFlavorMap(): java.awt.datatransfer.FlavorMap; + /** + * Returns a List of String natives to which the + * specified DataFlavor can be translated by the data transfer + * subsystem. The List will be sorted from best native to + * worst. That is, the first native will best reflect data in the specified + * flavor to the underlying native platform. + *

+ * If the specified DataFlavor is previously unknown to the + * data transfer subsystem and the data transfer subsystem is unable to + * translate this DataFlavor to any existing native, then + * invoking this method will establish a + * mapping in both directions between the specified DataFlavor + * and an encoded version of its MIME type as its native. + */ + // @ts-ignore + public getNativesForFlavor(flav: java.awt.datatransfer.DataFlavor): java.util.List; + /** + * Returns a List of DataFlavors to which the + * specified String native can be translated by the data + * transfer subsystem. The List will be sorted from best + * DataFlavor to worst. That is, the first + * DataFlavor will best reflect data in the specified + * native to a Java application. + *

+ * If the specified native is previously unknown to the data transfer + * subsystem, and that native has been properly encoded, then invoking this + * method will establish a mapping in both directions between the specified + * native and a DataFlavor whose MIME type is a decoded + * version of the native. + *

+ * If the specified native is not a properly encoded native and the + * mappings for this native have not been altered with + * setFlavorsForNative, then the contents of the + * List is platform dependent, but null + * cannot be returned. + */ + // @ts-ignore + public getFlavorsForNative(nat: string): java.util.List; + /** + * Returns a Map of the specified DataFlavors to + * their most preferred String native. Each native value will + * be the same as the first native in the List returned by + * getNativesForFlavor for the specified flavor. + *

+ * If a specified DataFlavor is previously unknown to the + * data transfer subsystem, then invoking this method will establish a + * mapping in both directions between the specified DataFlavor + * and an encoded version of its MIME type as its native. + */ + // @ts-ignore + public getNativesForFlavors(flavors: java.awt.datatransfer.DataFlavor): java.util.Map; + /** + * Returns a Map of the specified String natives + * to their most preferred DataFlavor. Each + * DataFlavor value will be the same as the first + * DataFlavor in the List returned by + * getFlavorsForNative for the specified native. + *

+ * If a specified native is previously unknown to the data transfer + * subsystem, and that native has been properly encoded, then invoking this + * method will establish a mapping in both directions between the specified + * native and a DataFlavor whose MIME type is a decoded + * version of the native. + */ + // @ts-ignore + public getFlavorsForNatives(natives: string): java.util.Map; + /** + * Adds a mapping from the specified DataFlavor (and all + * DataFlavors equal to the specified DataFlavor) + * to the specified String native. + * Unlike getNativesForFlavor, the mapping will only be + * established in one direction, and the native will not be encoded. To + * establish a two-way mapping, call + * addFlavorForUnencodedNative as well. The new mapping will + * be of lower priority than any existing mapping. + * This method has no effect if a mapping from the specified or equal + * DataFlavor to the specified String native + * already exists. + */ + // @ts-ignore + public addUnencodedNativeForFlavor(flav: java.awt.datatransfer.DataFlavor, nat: string): void; + /** + * Discards the current mappings for the specified DataFlavor + * and all DataFlavors equal to the specified + * DataFlavor, and creates new mappings to the + * specified String natives. + * Unlike getNativesForFlavor, the mappings will only be + * established in one direction, and the natives will not be encoded. To + * establish two-way mappings, call setFlavorsForNative + * as well. The first native in the array will represent the highest + * priority mapping. Subsequent natives will represent mappings of + * decreasing priority. + *

+ * If the array contains several elements that reference equal + * String natives, this method will establish new mappings + * for the first of those elements and ignore the rest of them. + *

+ * It is recommended that client code not reset mappings established by the + * data transfer subsystem. This method should only be used for + * application-level mappings. + */ + // @ts-ignore + public setNativesForFlavor(flav: java.awt.datatransfer.DataFlavor, natives: string): void; + /** + * Adds a mapping from a single String native to a single + * DataFlavor. Unlike getFlavorsForNative, the + * mapping will only be established in one direction, and the native will + * not be encoded. To establish a two-way mapping, call + * addUnencodedNativeForFlavor as well. The new mapping will + * be of lower priority than any existing mapping. + * This method has no effect if a mapping from the specified + * String native to the specified or equal + * DataFlavor already exists. + */ + // @ts-ignore + public addFlavorForUnencodedNative(nat: string, flav: java.awt.datatransfer.DataFlavor): void; + /** + * Discards the current mappings for the specified String + * native, and creates new mappings to the specified + * DataFlavors. Unlike getFlavorsForNative, the + * mappings will only be established in one direction, and the natives need + * not be encoded. To establish two-way mappings, call + * setNativesForFlavor as well. The first + * DataFlavor in the array will represent the highest priority + * mapping. Subsequent DataFlavors will represent mappings of + * decreasing priority. + *

+ * If the array contains several elements that reference equal + * DataFlavors, this method will establish new mappings + * for the first of those elements and ignore the rest of them. + *

+ * It is recommended that client code not reset mappings established by the + * data transfer subsystem. This method should only be used for + * application-level mappings. + */ + // @ts-ignore + public setFlavorsForNative(nat: string, flavors: java.awt.datatransfer.DataFlavor): void; + /** + * Encodes a MIME type for use as a String native. The format + * of an encoded representation of a MIME type is implementation-dependent. + * The only restrictions are: + *

    + *
  • The encoded representation is null if and only if the + * MIME type String is null.
  • + *
  • The encoded representations for two non-null MIME type + * Strings are equal if and only if these Strings + * are equal according to String.equals(Object).
  • + *
+ *

+ * The reference implementation of this method returns the specified MIME + * type String prefixed with JAVA_DATAFLAVOR:. + */ + // @ts-ignore + public static encodeJavaMIMEType(mimeType: string): string; + /** + * Encodes a DataFlavor for use as a String + * native. The format of an encoded DataFlavor is + * implementation-dependent. The only restrictions are: + *

    + *
  • The encoded representation is null if and only if the + * specified DataFlavor is null or its MIME type + * String is null.
  • + *
  • The encoded representations for two non-null + * DataFlavors with non-null MIME type + * Strings are equal if and only if the MIME type + * Strings of these DataFlavors are equal + * according to String.equals(Object).
  • + *
+ *

+ * The reference implementation of this method returns the MIME type + * String of the specified DataFlavor prefixed + * with JAVA_DATAFLAVOR:. + */ + // @ts-ignore + public static encodeDataFlavor(flav: java.awt.datatransfer.DataFlavor): string; + /** + * Returns whether the specified String is an encoded Java + * MIME type. + */ + // @ts-ignore + public static isJavaMIMEType(str: string): boolean; + /** + * Decodes a String native for use as a Java MIME type. + */ + // @ts-ignore + public static decodeJavaMIMEType(nat: string): string; + /** + * Decodes a String native for use as a + * DataFlavor. + */ + // @ts-ignore + public static decodeDataFlavor(nat: string): java.awt.datatransfer.DataFlavor; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.datatransfer.Transferable.d.ts b/packages/types/dist/typings/jdk/java.awt.datatransfer.Transferable.d.ts new file mode 100644 index 00000000..7d6277a6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.datatransfer.Transferable.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace datatransfer { + // @ts-ignore + interface Transferable { + /** + * Returns an array of DataFlavor objects indicating the flavors the data + * can be provided in. The array should be ordered according to preference + * for providing the data (from most richly descriptive to least descriptive). + */ + // @ts-ignore + getTransferDataFlavors(): java.awt.datatransfer.DataFlavor[]; + /** + * Returns whether or not the specified data flavor is supported for + * this object. + */ + // @ts-ignore + isDataFlavorSupported(flavor: java.awt.datatransfer.DataFlavor): boolean; + /** + * Returns an object which represents the data to be transferred. The class + * of the object returned is defined by the representation class of the flavor. + */ + // @ts-ignore + getTransferData(flavor: java.awt.datatransfer.DataFlavor): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.datatransfer.UnsupportedFlavorException.d.ts b/packages/types/dist/typings/jdk/java.awt.datatransfer.UnsupportedFlavorException.d.ts new file mode 100644 index 00000000..1853f4e9 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.datatransfer.UnsupportedFlavorException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace datatransfer { + // @ts-ignore + class UnsupportedFlavorException extends java.lang.Exception { + /** + * Constructs an UnsupportedFlavorException. + */ + // @ts-ignore + constructor(flavor: java.awt.datatransfer.DataFlavor) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.dnd.Autoscroll.d.ts b/packages/types/dist/typings/jdk/java.awt.dnd.Autoscroll.d.ts new file mode 100644 index 00000000..a9f1547c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.dnd.Autoscroll.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace dnd { + // @ts-ignore + interface Autoscroll { + /** + * This method returns the Insets describing + * the autoscrolling region or border relative + * to the geometry of the implementing Component. + *

+ * This value is read once by the DropTarget + * upon entry of the drag Cursor + * into the associated Component. + *

+ */ + // @ts-ignore + getAutoscrollInsets(): java.awt.Insets; + /** + * notify the Component to autoscroll + *

+ */ + // @ts-ignore + autoscroll(cursorLocn: java.awt.Point): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.dnd.DnDConstants.d.ts b/packages/types/dist/typings/jdk/java.awt.dnd.DnDConstants.d.ts new file mode 100644 index 00000000..5de49c2a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.dnd.DnDConstants.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace dnd { + // @ts-ignore + class DnDConstants extends java.lang.Object { + // @ts-ignore + public static ACTION_NONE: number; + // @ts-ignore + public static ACTION_COPY: number; + // @ts-ignore + public static ACTION_MOVE: number; + // @ts-ignore + public static ACTION_COPY_OR_MOVE: number; + // @ts-ignore + public static ACTION_LINK: number; + // @ts-ignore + public static ACTION_REFERENCE: number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.dnd.DragGestureEvent.d.ts b/packages/types/dist/typings/jdk/java.awt.dnd.DragGestureEvent.d.ts new file mode 100644 index 00000000..b22cb3f5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.dnd.DragGestureEvent.d.ts @@ -0,0 +1,111 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace dnd { + // @ts-ignore + class DragGestureEvent extends java.util.EventObject { + /** + * Constructs a DragGestureEvent object given by the + * DragGestureRecognizer instance firing this event, + * an {@code act} parameter representing + * the user's preferred action, an {@code ori} parameter + * indicating the origin of the drag, and a {@code List} of + * events that comprise the gesture({@code evs} parameter). + *

+ */ + // @ts-ignore + constructor(dgr: java.awt.dnd.DragGestureRecognizer, act: number, ori: java.awt.Point, evs: java.util.List) + /** + * Returns the source as a DragGestureRecognizer. + *

+ */ + // @ts-ignore + public getSourceAsDragGestureRecognizer(): java.awt.dnd.DragGestureRecognizer; + /** + * Returns the Component associated + * with this DragGestureEvent. + *

+ */ + // @ts-ignore + public getComponent(): java.awt.Component; + /** + * Returns the DragSource. + *

+ */ + // @ts-ignore + public getDragSource(): java.awt.dnd.DragSource; + /** + * Returns a Point in the coordinates + * of the Component over which the drag originated. + *

+ */ + // @ts-ignore + public getDragOrigin(): java.awt.Point; + /** + * Returns an Iterator for the events + * comprising the gesture. + *

+ */ + // @ts-ignore + public iterator(): java.util.Iterator; + /** + * Returns an Object array of the + * events comprising the drag gesture. + *

+ */ + // @ts-ignore + public toArray(): java.lang.Object[]; + /** + * Returns an array of the events comprising the drag gesture. + *

+ */ + // @ts-ignore + public toArray(array: java.lang.Object): java.lang.Object[]; + /** + * Returns an int representing the + * action selected by the user. + *

+ */ + // @ts-ignore + public getDragAction(): number; + /** + * Returns the initial event that triggered the gesture. + *

+ */ + // @ts-ignore + public getTriggerEvent(): java.awt.event.InputEvent; + /** + * Starts the drag operation given the Cursor for this drag + * operation and the Transferable representing the source data + * for this drag operation. + *
+ * If a null Cursor is specified no exception will + * be thrown and default drag cursors will be used instead. + *
+ * If a null Transferable is specified + * NullPointerException will be thrown. + */ + // @ts-ignore + public startDrag(dragCursor: java.awt.Cursor, transferable: java.awt.datatransfer.Transferable): void; + /** + * Starts the drag given the initial Cursor to display, + * the Transferable object, + * and the DragSourceListener to use. + *

+ */ + // @ts-ignore + public startDrag(dragCursor: java.awt.Cursor, transferable: java.awt.datatransfer.Transferable, dsl: java.awt.dnd.DragSourceListener): void; + /** + * Start the drag given the initial Cursor to display, + * a drag Image, the offset of + * the Image, + * the Transferable object, and + * the DragSourceListener to use. + *

+ */ + // @ts-ignore + public startDrag(dragCursor: java.awt.Cursor, dragImage: java.awt.Image, imageOffset: java.awt.Point, transferable: java.awt.datatransfer.Transferable, dsl: java.awt.dnd.DragSourceListener): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.dnd.DragGestureListener.d.ts b/packages/types/dist/typings/jdk/java.awt.dnd.DragGestureListener.d.ts new file mode 100644 index 00000000..842afae8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.dnd.DragGestureListener.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace dnd { + // @ts-ignore + interface DragGestureListener { + /** + * This method is invoked by the {@code DragGestureRecognizer} + * when the {@code DragGestureRecognizer} detects a platform-dependent + * drag initiating gesture. To initiate the drag and drop operation, + * if appropriate, {@link DragGestureEvent#startDrag startDrag()} method on + * the {@code DragGestureEvent} has to be invoked. + *

+ */ + // @ts-ignore + dragGestureRecognized(dge: java.awt.dnd.DragGestureEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.dnd.DragGestureRecognizer.d.ts b/packages/types/dist/typings/jdk/java.awt.dnd.DragGestureRecognizer.d.ts new file mode 100644 index 00000000..3083e897 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.dnd.DragGestureRecognizer.d.ts @@ -0,0 +1,165 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace dnd { + // @ts-ignore + abstract class DragGestureRecognizer extends java.lang.Object { + /** + * Construct a new DragGestureRecognizer + * given the DragSource to be used + * in this Drag and Drop operation, the Component + * this DragGestureRecognizer should "observe" + * for drag initiating gestures, the action(s) supported + * for this Drag and Drop operation, and the + * DragGestureListener to notify + * once a drag initiating gesture has been detected. + *

+ */ + // @ts-ignore + constructor(ds: java.awt.dnd.DragSource, c: java.awt.Component, sa: number, dgl: java.awt.dnd.DragGestureListener) + /** + * Construct a new DragGestureRecognizer + * given the DragSource to be used in this + * Drag and Drop + * operation, the Component this + * DragGestureRecognizer should "observe" + * for drag initiating gestures, and the action(s) + * supported for this Drag and Drop operation. + *

+ */ + // @ts-ignore + constructor(ds: java.awt.dnd.DragSource, c: java.awt.Component, sa: number) + /** + * Construct a new DragGestureRecognizer + * given the DragSource to be used + * in this Drag and Drop operation, and + * the Component this + * DragGestureRecognizer + * should "observe" for drag initiating gestures. + *

+ */ + // @ts-ignore + constructor(ds: java.awt.dnd.DragSource, c: java.awt.Component) + /** + * Construct a new DragGestureRecognizer + * given the DragSource to be used in this + * Drag and Drop operation. + *

+ */ + // @ts-ignore + constructor(ds: java.awt.dnd.DragSource) + // @ts-ignore + protected dragSource: java.awt.dnd.DragSource; + // @ts-ignore + protected component: java.awt.Component; + // @ts-ignore + protected dragGestureListener: java.awt.dnd.DragGestureListener; + // @ts-ignore + protected sourceActions: number; + // @ts-ignore + protected events: java.util.ArrayList; + /** + * register this DragGestureRecognizer's Listeners with the Component + * subclasses must override this method + */ + // @ts-ignore + protected abstract registerListeners(): void; + /** + * unregister this DragGestureRecognizer's Listeners with the Component + * subclasses must override this method + */ + // @ts-ignore + protected abstract unregisterListeners(): void; + /** + * This method returns the DragSource + * this DragGestureRecognizer + * will use in order to process the Drag and Drop + * operation. + *

+ */ + // @ts-ignore + public getDragSource(): java.awt.dnd.DragSource; + /** + * This method returns the Component + * that is to be "observed" by the + * DragGestureRecognizer + * for drag initiating gestures. + *

+ */ + // @ts-ignore + public getComponent(): java.awt.Component; + /** + * set the Component that the DragGestureRecognizer is associated with + * registerListeners() and unregisterListeners() are called as a side + * effect as appropriate. + *

+ */ + // @ts-ignore + public setComponent(c: java.awt.Component): void; + /** + * This method returns an int representing the + * type of action(s) this Drag and Drop + * operation will support. + *

+ */ + // @ts-ignore + public getSourceActions(): number; + /** + * This method sets the permitted source drag action(s) + * for this Drag and Drop operation. + *

+ */ + // @ts-ignore + public setSourceActions(actions: number): void; + /** + * This method returns the first event in the + * series of events that initiated + * the Drag and Drop operation. + *

+ */ + // @ts-ignore + public getTriggerEvent(): java.awt.event.InputEvent; + /** + * Reset the Recognizer, if its currently recognizing a gesture, ignore + * it. + */ + // @ts-ignore + public resetRecognizer(): void; + /** + * Register a new DragGestureListener. + *

+ */ + // @ts-ignore + public addDragGestureListener(dgl: java.awt.dnd.DragGestureListener): void; + /** + * unregister the current DragGestureListener + *

+ */ + // @ts-ignore + public removeDragGestureListener(dgl: java.awt.dnd.DragGestureListener): void; + /** + * Notify the DragGestureListener that a Drag and Drop initiating + * gesture has occurred. Then reset the state of the Recognizer. + *

+ */ + // @ts-ignore + protected fireDragGestureRecognized(dragAction: number, p: java.awt.Point): void; + /** + * Listeners registered on the Component by this Recognizer shall record + * all Events that are recognized as part of the series of Events that go + * to comprise a Drag and Drop initiating gesture via this API. + *

+ * This method is used by a DragGestureRecognizer + * implementation to add an InputEvent + * subclass (that it believes is one in a series + * of events that comprise a Drag and Drop operation) + * to the array of events that this + * DragGestureRecognizer maintains internally. + *

+ */ + // @ts-ignore + protected appendEvent(awtie: java.awt.event.InputEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.dnd.DragSource.d.ts b/packages/types/dist/typings/jdk/java.awt.dnd.DragSource.d.ts new file mode 100644 index 00000000..86490745 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.dnd.DragSource.d.ts @@ -0,0 +1,218 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace dnd { + // @ts-ignore + class DragSource extends java.lang.Object { + /** + * Creates a new DragSource. + */ + // @ts-ignore + constructor() + // @ts-ignore + public static DefaultCopyDrop: java.awt.Cursor; + // @ts-ignore + public static DefaultMoveDrop: java.awt.Cursor; + // @ts-ignore + public static DefaultLinkDrop: java.awt.Cursor; + // @ts-ignore + public static DefaultCopyNoDrop: java.awt.Cursor; + // @ts-ignore + public static DefaultMoveNoDrop: java.awt.Cursor; + // @ts-ignore + public static DefaultLinkNoDrop: java.awt.Cursor; + /** + * Gets the DragSource object associated with + * the underlying platform. + */ + // @ts-ignore + public static getDefaultDragSource(): java.awt.dnd.DragSource; + /** + * Reports + * whether or not drag + * Image support + * is available on the underlying platform. + *

+ */ + // @ts-ignore + public static isDragImageSupported(): boolean; + /** + * Start a drag, given the DragGestureEvent + * that initiated the drag, the initial + * Cursor to use, + * the Image to drag, + * the offset of the Image origin + * from the hotspot of the Cursor at + * the instant of the trigger, + * the Transferable subject data + * of the drag, the DragSourceListener, + * and the FlavorMap. + *

+ */ + // @ts-ignore + public startDrag(trigger: java.awt.dnd.DragGestureEvent, dragCursor: java.awt.Cursor, dragImage: java.awt.Image, imageOffset: java.awt.Point, transferable: java.awt.datatransfer.Transferable, dsl: java.awt.dnd.DragSourceListener, flavorMap: java.awt.datatransfer.FlavorMap): void; + /** + * Start a drag, given the DragGestureEvent + * that initiated the drag, the initial + * Cursor to use, + * the Transferable subject data + * of the drag, the DragSourceListener, + * and the FlavorMap. + *

+ */ + // @ts-ignore + public startDrag(trigger: java.awt.dnd.DragGestureEvent, dragCursor: java.awt.Cursor, transferable: java.awt.datatransfer.Transferable, dsl: java.awt.dnd.DragSourceListener, flavorMap: java.awt.datatransfer.FlavorMap): void; + /** + * Start a drag, given the DragGestureEvent + * that initiated the drag, the initial Cursor + * to use, + * the Image to drag, + * the offset of the Image origin + * from the hotspot of the Cursor + * at the instant of the trigger, + * the subject data of the drag, and + * the DragSourceListener. + *

+ */ + // @ts-ignore + public startDrag(trigger: java.awt.dnd.DragGestureEvent, dragCursor: java.awt.Cursor, dragImage: java.awt.Image, dragOffset: java.awt.Point, transferable: java.awt.datatransfer.Transferable, dsl: java.awt.dnd.DragSourceListener): void; + /** + * Start a drag, given the DragGestureEvent + * that initiated the drag, the initial + * Cursor to + * use, + * the Transferable subject data + * of the drag, and the DragSourceListener. + *

+ */ + // @ts-ignore + public startDrag(trigger: java.awt.dnd.DragGestureEvent, dragCursor: java.awt.Cursor, transferable: java.awt.datatransfer.Transferable, dsl: java.awt.dnd.DragSourceListener): void; + /** + * Creates the {@code DragSourceContext} to handle the current drag + * operation. + *

+ * To incorporate a new DragSourceContext + * subclass, subclass DragSource and + * override this method. + *

+ * If dragImage is null, no image is used + * to represent the drag over feedback for this drag operation, but + * NullPointerException is not thrown. + *

+ * If dsl is null, no drag source listener + * is registered with the created DragSourceContext, + * but NullPointerException is not thrown. + */ + // @ts-ignore + protected createDragSourceContext(dscp: java.awt.dnd.peer.DragSourceContextPeer, dgl: java.awt.dnd.DragGestureEvent, dragCursor: java.awt.Cursor, dragImage: java.awt.Image, imageOffset: java.awt.Point, t: java.awt.datatransfer.Transferable, dsl: java.awt.dnd.DragSourceListener): java.awt.dnd.DragSourceContext; + /** + * This method returns the + * FlavorMap for this DragSource. + *

+ */ + // @ts-ignore + public getFlavorMap(): java.awt.datatransfer.FlavorMap; + /** + * Creates a new DragGestureRecognizer + * that implements the specified + * abstract subclass of + * DragGestureRecognizer, and + * sets the specified Component + * and DragGestureListener on + * the newly created object. + *

+ */ + // @ts-ignore + public createDragGestureRecognizer(recognizerAbstractClass: java.lang.Class, c: java.awt.Component, actions: number, dgl: java.awt.dnd.DragGestureListener): java.awt.dnd.DragGestureRecognizer; + /** + * Creates a new DragGestureRecognizer + * that implements the default + * abstract subclass of DragGestureRecognizer + * for this DragSource, + * and sets the specified Component + * and DragGestureListener on the + * newly created object. + * For this DragSource + * the default is MouseDragGestureRecognizer. + *

+ */ + // @ts-ignore + public createDefaultDragGestureRecognizer(c: java.awt.Component, actions: number, dgl: java.awt.dnd.DragGestureListener): java.awt.dnd.DragGestureRecognizer; + /** + * Adds the specified DragSourceListener to this + * DragSource to receive drag source events during drag + * operations intiated with this DragSource. + * If a null listener is specified, no action is taken and no + * exception is thrown. + */ + // @ts-ignore + public addDragSourceListener(dsl: java.awt.dnd.DragSourceListener): void; + /** + * Removes the specified DragSourceListener from this + * DragSource. + * If a null listener is specified, no action is taken and no + * exception is thrown. + * If the listener specified by the argument was not previously added to + * this DragSource, no action is taken and no exception + * is thrown. + */ + // @ts-ignore + public removeDragSourceListener(dsl: java.awt.dnd.DragSourceListener): void; + /** + * Gets all the DragSourceListeners + * registered with this DragSource. + */ + // @ts-ignore + public getDragSourceListeners(): java.awt.dnd.DragSourceListener[]; + /** + * Adds the specified DragSourceMotionListener to this + * DragSource to receive drag motion events during drag + * operations intiated with this DragSource. + * If a null listener is specified, no action is taken and no + * exception is thrown. + */ + // @ts-ignore + public addDragSourceMotionListener(dsml: java.awt.dnd.DragSourceMotionListener): void; + /** + * Removes the specified DragSourceMotionListener from this + * DragSource. + * If a null listener is specified, no action is taken and no + * exception is thrown. + * If the listener specified by the argument was not previously added to + * this DragSource, no action is taken and no exception + * is thrown. + */ + // @ts-ignore + public removeDragSourceMotionListener(dsml: java.awt.dnd.DragSourceMotionListener): void; + /** + * Gets all of the DragSourceMotionListeners + * registered with this DragSource. + */ + // @ts-ignore + public getDragSourceMotionListeners(): java.awt.dnd.DragSourceMotionListener[]; + /** + * Gets all the objects currently registered as + * FooListeners upon this DragSource. + * FooListeners are registered using the + * addFooListener method. + */ + // @ts-ignore + public getListeners(listenerType: java.lang.Class): java.util.EventListener[]; + /** + * Returns the drag gesture motion threshold. The drag gesture motion threshold + * defines the recommended behavior for {@link MouseDragGestureRecognizer}s. + *

+ * If the system property awt.dnd.drag.threshold is set to + * a positive integer, this method returns the value of the system property; + * otherwise if a pertinent desktop property is available and supported by + * the implementation of the Java platform, this method returns the value of + * that property; otherwise this method returns some default value. + * The pertinent desktop property can be queried using + * java.awt.Toolkit.getDesktopProperty("DnD.gestureMotionThreshold"). + */ + // @ts-ignore + public static getDragThreshold(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.dnd.DragSourceAdapter.d.ts b/packages/types/dist/typings/jdk/java.awt.dnd.DragSourceAdapter.d.ts new file mode 100644 index 00000000..2fa1db29 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.dnd.DragSourceAdapter.d.ts @@ -0,0 +1,83 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace dnd { + // @ts-ignore + abstract class DragSourceAdapter extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Called as the cursor's hotspot enters a platform-dependent drop site. + * This method is invoked when all the following conditions are true: + *

    + *
  • The cursor's hotspot enters the operable part of + * a platform-dependent drop site. + *
  • The drop site is active. + *
  • The drop site accepts the drag. + *
+ */ + // @ts-ignore + public dragEnter(dsde: java.awt.dnd.DragSourceDragEvent): void; + /** + * Called as the cursor's hotspot moves over a platform-dependent drop site. + * This method is invoked when all the following conditions are true: + *
    + *
  • The cursor's hotspot has moved, but still intersects the + * operable part of the drop site associated with the previous + * dragEnter() invocation. + *
  • The drop site is still active. + *
  • The drop site accepts the drag. + *
+ */ + // @ts-ignore + public dragOver(dsde: java.awt.dnd.DragSourceDragEvent): void; + /** + * Called whenever the mouse is moved during a drag operation. + */ + // @ts-ignore + public dragMouseMoved(dsde: java.awt.dnd.DragSourceDragEvent): void; + /** + * Called when the user has modified the drop gesture. + * This method is invoked when the state of the input + * device(s) that the user is interacting with changes. + * Such devices are typically the mouse buttons or keyboard + * modifiers that the user is interacting with. + */ + // @ts-ignore + public dropActionChanged(dsde: java.awt.dnd.DragSourceDragEvent): void; + /** + * Called as the cursor's hotspot exits a platform-dependent drop site. + * This method is invoked when any of the following conditions are true: + *
    + *
  • The cursor's hotspot no longer intersects the operable part + * of the drop site associated with the previous dragEnter() invocation. + *
+ * OR + *
    + *
  • The drop site associated with the previous dragEnter() invocation + * is no longer active. + *
+ * OR + *
    + *
  • The drop site associated with the previous dragEnter() invocation + * has rejected the drag. + *
+ */ + // @ts-ignore + public dragExit(dse: java.awt.dnd.DragSourceEvent): void; + /** + * This method is invoked to signify that the Drag and Drop + * operation is complete. The getDropSuccess() method of + * the DragSourceDropEvent can be used to + * determine the termination state. The getDropAction() method + * returns the operation that the drop site selected + * to apply to the Drop operation. Once this method is complete, the + * current DragSourceContext and + * associated resources become invalid. + */ + // @ts-ignore + public dragDropEnd(dsde: java.awt.dnd.DragSourceDropEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.dnd.DragSourceContext.d.ts b/packages/types/dist/typings/jdk/java.awt.dnd.DragSourceContext.d.ts new file mode 100644 index 00000000..49e6f31a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.dnd.DragSourceContext.d.ts @@ -0,0 +1,180 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace dnd { + // @ts-ignore + class DragSourceContext extends java.lang.Object { + /** + * Called from DragSource, this constructor creates a new + * DragSourceContext given the + * DragSourceContextPeer for this Drag, the + * DragGestureEvent that triggered the Drag, the initial + * Cursor to use for the Drag, an (optional) + * Image to display while the Drag is taking place, the offset + * of the Image origin from the hotspot at the instant of the + * triggering event, the Transferable subject data, and the + * DragSourceListener to use during the Drag and Drop + * operation. + *
+ * If DragSourceContextPeer is null + * NullPointerException is thrown. + *
+ * If DragGestureEvent is null + * NullPointerException is thrown. + *
+ * If Cursor is null no exception is thrown and + * the default drag cursor behavior is activated for this drag operation. + *
+ * If Image is null no exception is thrown. + *
+ * If Image is not null and the offset is + * null NullPointerException is thrown. + *
+ * If Transferable is null + * NullPointerException is thrown. + *
+ * If DragSourceListener is null no exception + * is thrown. + */ + // @ts-ignore + constructor(dscp: java.awt.dnd.peer.DragSourceContextPeer, trigger: java.awt.dnd.DragGestureEvent, dragCursor: java.awt.Cursor, dragImage: java.awt.Image, offset: java.awt.Point, t: java.awt.datatransfer.Transferable, dsl: java.awt.dnd.DragSourceListener) + // @ts-ignore + protected static DEFAULT: number; + // @ts-ignore + protected static ENTER: number; + // @ts-ignore + protected static OVER: number; + // @ts-ignore + protected static CHANGED: number; + /** + * Returns the DragSource + * that instantiated this DragSourceContext. + */ + // @ts-ignore + public getDragSource(): java.awt.dnd.DragSource; + /** + * Returns the Component associated with this + * DragSourceContext. + */ + // @ts-ignore + public getComponent(): java.awt.Component; + /** + * Returns the DragGestureEvent + * that initially triggered the drag. + */ + // @ts-ignore + public getTrigger(): java.awt.dnd.DragGestureEvent; + /** + * Returns a bitwise mask of DnDConstants that + * represent the set of drop actions supported by the drag source for the + * drag operation associated with this DragSourceContext. + */ + // @ts-ignore + public getSourceActions(): number; + /** + * Sets the cursor for this drag operation to the specified + * Cursor. If the specified Cursor + * is null, the default drag cursor behavior is + * activated for this drag operation, otherwise it is deactivated. + */ + // @ts-ignore + public setCursor(c: java.awt.Cursor): void; + /** + * Returns the current drag Cursor. + *

+ */ + // @ts-ignore + public getCursor(): java.awt.Cursor; + /** + * Add a DragSourceListener to this + * DragSourceContext if one has not already been added. + * If a DragSourceListener already exists, + * this method throws a TooManyListenersException. + *

+ */ + // @ts-ignore + public addDragSourceListener(dsl: java.awt.dnd.DragSourceListener): void; + /** + * Removes the specified DragSourceListener + * from this DragSourceContext. + */ + // @ts-ignore + public removeDragSourceListener(dsl: java.awt.dnd.DragSourceListener): void; + /** + * Notifies the peer that the Transferable's + * DataFlavors have changed. + */ + // @ts-ignore + public transferablesFlavorsChanged(): void; + /** + * Calls dragEnter on the + * DragSourceListeners registered with this + * DragSourceContext and with the associated + * DragSource, and passes them the specified + * DragSourceDragEvent. + */ + // @ts-ignore + public dragEnter(dsde: java.awt.dnd.DragSourceDragEvent): void; + /** + * Calls dragOver on the + * DragSourceListeners registered with this + * DragSourceContext and with the associated + * DragSource, and passes them the specified + * DragSourceDragEvent. + */ + // @ts-ignore + public dragOver(dsde: java.awt.dnd.DragSourceDragEvent): void; + /** + * Calls dragExit on the + * DragSourceListeners registered with this + * DragSourceContext and with the associated + * DragSource, and passes them the specified + * DragSourceEvent. + */ + // @ts-ignore + public dragExit(dse: java.awt.dnd.DragSourceEvent): void; + /** + * Calls dropActionChanged on the + * DragSourceListeners registered with this + * DragSourceContext and with the associated + * DragSource, and passes them the specified + * DragSourceDragEvent. + */ + // @ts-ignore + public dropActionChanged(dsde: java.awt.dnd.DragSourceDragEvent): void; + /** + * Calls dragDropEnd on the + * DragSourceListeners registered with this + * DragSourceContext and with the associated + * DragSource, and passes them the specified + * DragSourceDropEvent. + */ + // @ts-ignore + public dragDropEnd(dsde: java.awt.dnd.DragSourceDropEvent): void; + /** + * Calls dragMouseMoved on the + * DragSourceMotionListeners registered with the + * DragSource associated with this + * DragSourceContext, and them passes the specified + * DragSourceDragEvent. + */ + // @ts-ignore + public dragMouseMoved(dsde: java.awt.dnd.DragSourceDragEvent): void; + /** + * Returns the Transferable associated with + * this DragSourceContext. + */ + // @ts-ignore + public getTransferable(): java.awt.datatransfer.Transferable; + /** + * If the default drag cursor behavior is active, this method + * sets the default drag cursor for the specified actions + * supported by the drag source, the drop target action, + * and status, otherwise this method does nothing. + */ + // @ts-ignore + protected updateCurrentCursor(sourceAct: number, targetAct: number, status: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.dnd.DragSourceDragEvent.d.ts b/packages/types/dist/typings/jdk/java.awt.dnd.DragSourceDragEvent.d.ts new file mode 100644 index 00000000..68462765 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.dnd.DragSourceDragEvent.d.ts @@ -0,0 +1,86 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace dnd { + // @ts-ignore + class DragSourceDragEvent extends java.awt.dnd.DragSourceEvent { + /** + * Constructs a DragSourceDragEvent. + * This class is typically + * instantiated by the DragSourceContextPeer + * rather than directly + * by client code. + * The coordinates for this DragSourceDragEvent + * are not specified, so getLocation will return + * null for this event. + *

+ * The arguments dropAction and action should + * be one of DnDConstants that represents a single action. + * The argument modifiers should be either a bitwise mask + * of old java.awt.event.InputEvent.*_MASK constants or a + * bitwise mask of extended java.awt.event.InputEvent.*_DOWN_MASK + * constants. + * This constructor does not throw any exception for invalid dropAction, + * action and modifiers. + */ + // @ts-ignore + constructor(dsc: java.awt.dnd.DragSourceContext, dropAction: number, action: number, modifiers: number) + /** + * Constructs a DragSourceDragEvent given the specified + * DragSourceContext, user drop action, target drop action, + * modifiers and coordinates. + *

+ * The arguments dropAction and action should + * be one of DnDConstants that represents a single action. + * The argument modifiers should be either a bitwise mask + * of old java.awt.event.InputEvent.*_MASK constants or a + * bitwise mask of extended java.awt.event.InputEvent.*_DOWN_MASK + * constants. + * This constructor does not throw any exception for invalid dropAction, + * action and modifiers. + */ + // @ts-ignore + constructor(dsc: java.awt.dnd.DragSourceContext, dropAction: number, action: number, modifiers: number, x: number, y: number) + /** + * This method returns the target drop action. + */ + // @ts-ignore + public getTargetActions(): number; + /** + * This method returns an int representing + * the current state of the input device modifiers + * associated with the user's gesture. Typically these + * would be mouse buttons or keyboard modifiers. + *

+ * If the modifiers passed to the constructor + * are invalid, this method returns them unchanged. + */ + // @ts-ignore + public getGestureModifiers(): number; + /** + * This method returns an int representing + * the current state of the input device extended modifiers + * associated with the user's gesture. + * See {@link InputEvent#getModifiersEx} + *

+ * If the modifiers passed to the constructor + * are invalid, this method returns them unchanged. + */ + // @ts-ignore + public getGestureModifiersEx(): number; + /** + * This method returns the user drop action. + */ + // @ts-ignore + public getUserAction(): number; + /** + * This method returns the logical intersection of + * the target drop action and the set of drop actions supported by + * the drag source. + */ + // @ts-ignore + public getDropAction(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.dnd.DragSourceDropEvent.d.ts b/packages/types/dist/typings/jdk/java.awt.dnd.DragSourceDropEvent.d.ts new file mode 100644 index 00000000..4c1f81b8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.dnd.DragSourceDropEvent.d.ts @@ -0,0 +1,57 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace dnd { + // @ts-ignore + class DragSourceDropEvent extends java.awt.dnd.DragSourceEvent { + /** + * Construct a DragSourceDropEvent for a drop, + * given the + * DragSourceContext, the drop action, + * and a boolean indicating if the drop was successful. + * The coordinates for this DragSourceDropEvent + * are not specified, so getLocation will return + * null for this event. + *

+ * The argument action should be one of DnDConstants + * that represents a single action. + * This constructor does not throw any exception for invalid action. + */ + // @ts-ignore + constructor(dsc: java.awt.dnd.DragSourceContext, action: number, success: boolean) + /** + * Construct a DragSourceDropEvent for a drop, given the + * DragSourceContext, the drop action, a boolean + * indicating if the drop was successful, and coordinates. + *

+ * The argument action should be one of DnDConstants + * that represents a single action. + * This constructor does not throw any exception for invalid action. + */ + // @ts-ignore + constructor(dsc: java.awt.dnd.DragSourceContext, action: number, success: boolean, x: number, y: number) + /** + * Construct a DragSourceDropEvent + * for a drag that does not result in a drop. + * The coordinates for this DragSourceDropEvent + * are not specified, so getLocation will return + * null for this event. + */ + // @ts-ignore + constructor(dsc: java.awt.dnd.DragSourceContext) + /** + * This method returns a boolean indicating + * if the drop was successful. + */ + // @ts-ignore + public getDropSuccess(): boolean; + /** + * This method returns an int representing + * the action performed by the target on the subject of the drop. + */ + // @ts-ignore + public getDropAction(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.dnd.DragSourceEvent.d.ts b/packages/types/dist/typings/jdk/java.awt.dnd.DragSourceEvent.d.ts new file mode 100644 index 00000000..0410f298 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.dnd.DragSourceEvent.d.ts @@ -0,0 +1,55 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace dnd { + // @ts-ignore + class DragSourceEvent extends java.util.EventObject { + /** + * Construct a DragSourceEvent + * given a specified DragSourceContext. + * The coordinates for this DragSourceEvent + * are not specified, so getLocation will return + * null for this event. + */ + // @ts-ignore + constructor(dsc: java.awt.dnd.DragSourceContext) + /** + * Construct a DragSourceEvent given a specified + * DragSourceContext, and coordinates of the cursor + * location. + */ + // @ts-ignore + constructor(dsc: java.awt.dnd.DragSourceContext, x: number, y: number) + /** + * This method returns the DragSourceContext that + * originated the event. + *

+ */ + // @ts-ignore + public getDragSourceContext(): java.awt.dnd.DragSourceContext; + /** + * This method returns a Point indicating the cursor + * location in screen coordinates at the moment this event occurred, or + * null if the cursor location is not specified for this + * event. + */ + // @ts-ignore + public getLocation(): java.awt.Point; + /** + * This method returns the horizontal coordinate of the cursor location in + * screen coordinates at the moment this event occurred, or zero if the + * cursor location is not specified for this event. + */ + // @ts-ignore + public getX(): number; + /** + * This method returns the vertical coordinate of the cursor location in + * screen coordinates at the moment this event occurred, or zero if the + * cursor location is not specified for this event. + */ + // @ts-ignore + public getY(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.dnd.DragSourceListener.d.ts b/packages/types/dist/typings/jdk/java.awt.dnd.DragSourceListener.d.ts new file mode 100644 index 00000000..7957f3ea --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.dnd.DragSourceListener.d.ts @@ -0,0 +1,76 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace dnd { + // @ts-ignore + interface DragSourceListener { + /** + * Called as the cursor's hotspot enters a platform-dependent drop site. + * This method is invoked when all the following conditions are true: + *

    + *
  • The cursor's hotspot enters the operable part of a platform- + * dependent drop site. + *
  • The drop site is active. + *
  • The drop site accepts the drag. + *
+ */ + // @ts-ignore + dragEnter(dsde: java.awt.dnd.DragSourceDragEvent): void; + /** + * Called as the cursor's hotspot moves over a platform-dependent drop site. + * This method is invoked when all the following conditions are true: + *
    + *
  • The cursor's hotspot has moved, but still intersects the + * operable part of the drop site associated with the previous + * dragEnter() invocation. + *
  • The drop site is still active. + *
  • The drop site accepts the drag. + *
+ */ + // @ts-ignore + dragOver(dsde: java.awt.dnd.DragSourceDragEvent): void; + /** + * Called when the user has modified the drop gesture. + * This method is invoked when the state of the input + * device(s) that the user is interacting with changes. + * Such devices are typically the mouse buttons or keyboard + * modifiers that the user is interacting with. + */ + // @ts-ignore + dropActionChanged(dsde: java.awt.dnd.DragSourceDragEvent): void; + /** + * Called as the cursor's hotspot exits a platform-dependent drop site. + * This method is invoked when any of the following conditions are true: + *
    + *
  • The cursor's hotspot no longer intersects the operable part + * of the drop site associated with the previous dragEnter() invocation. + *
+ * OR + *
    + *
  • The drop site associated with the previous dragEnter() invocation + * is no longer active. + *
+ * OR + *
    + *
  • The drop site associated with the previous dragEnter() invocation + * has rejected the drag. + *
+ */ + // @ts-ignore + dragExit(dse: java.awt.dnd.DragSourceEvent): void; + /** + * This method is invoked to signify that the Drag and Drop + * operation is complete. The getDropSuccess() method of + * the DragSourceDropEvent can be used to + * determine the termination state. The getDropAction() method + * returns the operation that the drop site selected + * to apply to the Drop operation. Once this method is complete, the + * current DragSourceContext and + * associated resources become invalid. + */ + // @ts-ignore + dragDropEnd(dsde: java.awt.dnd.DragSourceDropEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.dnd.DragSourceMotionListener.d.ts b/packages/types/dist/typings/jdk/java.awt.dnd.DragSourceMotionListener.d.ts new file mode 100644 index 00000000..ada8c3f8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.dnd.DragSourceMotionListener.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace dnd { + // @ts-ignore + interface DragSourceMotionListener { + /** + * Called whenever the mouse is moved during a drag operation. + */ + // @ts-ignore + dragMouseMoved(dsde: java.awt.dnd.DragSourceDragEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.dnd.DropTarget.DropTargetAutoScroller.d.ts b/packages/types/dist/typings/jdk/java.awt.dnd.DropTarget.DropTargetAutoScroller.d.ts new file mode 100644 index 00000000..dd35e6bb --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.dnd.DropTarget.DropTargetAutoScroller.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace dnd { + namespace DropTarget { + // @ts-ignore + protected class DropTargetAutoScroller extends java.lang.Object { + /** + * construct a DropTargetAutoScroller + *

+ */ + // @ts-ignore + constructor(c: java.awt.Component, p: java.awt.Point) + /** + * cause autoscroll to occur + *

+ */ + // @ts-ignore + protected updateLocation(newLocn: java.awt.Point): void; + /** + * cause autoscrolling to stop + */ + // @ts-ignore + protected stop(): void; + /** + * cause autoscroll to occur + *

+ */ + // @ts-ignore + public actionPerformed(e: java.awt.event.ActionEvent): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.dnd.DropTarget.d.ts b/packages/types/dist/typings/jdk/java.awt.dnd.DropTarget.d.ts new file mode 100644 index 00000000..2d02cbe6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.dnd.DropTarget.d.ts @@ -0,0 +1,246 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace dnd { + // @ts-ignore + class DropTarget extends java.lang.Object { + /** + * Creates a new DropTarget given the Component + * to associate itself with, an int representing + * the default acceptable action(s) to + * support, a DropTargetListener + * to handle event processing, a boolean indicating + * if the DropTarget is currently accepting drops, and + * a FlavorMap to use (or null for the default FlavorMap). + *

+ * The Component will receive drops only if it is enabled. + */ + // @ts-ignore + constructor(c: java.awt.Component, ops: number, dtl: java.awt.dnd.DropTargetListener, act: boolean, fm: java.awt.datatransfer.FlavorMap) + /** + * Creates a DropTarget given the Component + * to associate itself with, an int representing + * the default acceptable action(s) + * to support, a DropTargetListener + * to handle event processing, and a boolean indicating + * if the DropTarget is currently accepting drops. + *

+ * The Component will receive drops only if it is enabled. + */ + // @ts-ignore + constructor(c: java.awt.Component, ops: number, dtl: java.awt.dnd.DropTargetListener, act: boolean) + /** + * Creates a DropTarget. + */ + // @ts-ignore + constructor() + /** + * Creates a DropTarget given the Component + * to associate itself with, and the DropTargetListener + * to handle event processing. + *

+ * The Component will receive drops only if it is enabled. + */ + // @ts-ignore + constructor(c: java.awt.Component, dtl: java.awt.dnd.DropTargetListener) + /** + * Creates a DropTarget given the Component + * to associate itself with, an int representing + * the default acceptable action(s) to support, and a + * DropTargetListener to handle event processing. + *

+ * The Component will receive drops only if it is enabled. + */ + // @ts-ignore + constructor(c: java.awt.Component, ops: number, dtl: java.awt.dnd.DropTargetListener) + /** + * Note: this interface is required to permit the safe association + * of a DropTarget with a Component in one of two ways, either: + * component.setDropTarget(droptarget); + * or droptarget.setComponent(component); + *

+ * The Component will receive drops only if it is enabled. + */ + // @ts-ignore + public setComponent(c: java.awt.Component): void; + /** + * Gets the Component associated + * with this DropTarget. + *

+ */ + // @ts-ignore + public getComponent(): java.awt.Component; + /** + * Sets the default acceptable actions for this DropTarget + *

+ */ + // @ts-ignore + public setDefaultActions(ops: number): void; + /** + * Gets an int representing the + * current action(s) supported by this DropTarget. + *

+ */ + // @ts-ignore + public getDefaultActions(): number; + /** + * Sets the DropTarget active if true, + * inactive if false. + *

+ */ + // @ts-ignore + public setActive(isActive: boolean): void; + /** + * Reports whether or not + * this DropTarget + * is currently active (ready to accept drops). + *

+ */ + // @ts-ignore + public isActive(): boolean; + /** + * Adds a new DropTargetListener (UNICAST SOURCE). + *

+ */ + // @ts-ignore + public addDropTargetListener(dtl: java.awt.dnd.DropTargetListener): void; + /** + * Removes the current DropTargetListener (UNICAST SOURCE). + *

+ */ + // @ts-ignore + public removeDropTargetListener(dtl: java.awt.dnd.DropTargetListener): void; + /** + * Calls dragEnter on the registered + * DropTargetListener and passes it + * the specified DropTargetDragEvent. + * Has no effect if this DropTarget + * is not active. + */ + // @ts-ignore + public dragEnter(dtde: java.awt.dnd.DropTargetDragEvent): void; + /** + * Calls dragOver on the registered + * DropTargetListener and passes it + * the specified DropTargetDragEvent. + * Has no effect if this DropTarget + * is not active. + */ + // @ts-ignore + public dragOver(dtde: java.awt.dnd.DropTargetDragEvent): void; + /** + * Calls dropActionChanged on the registered + * DropTargetListener and passes it + * the specified DropTargetDragEvent. + * Has no effect if this DropTarget + * is not active. + */ + // @ts-ignore + public dropActionChanged(dtde: java.awt.dnd.DropTargetDragEvent): void; + /** + * Calls dragExit on the registered + * DropTargetListener and passes it + * the specified DropTargetEvent. + * Has no effect if this DropTarget + * is not active. + *

+ * This method itself does not throw any exception + * for null parameter but for exceptions thrown by + * the respective method of the listener. + */ + // @ts-ignore + public dragExit(dte: java.awt.dnd.DropTargetEvent): void; + /** + * Calls drop on the registered + * DropTargetListener and passes it + * the specified DropTargetDropEvent + * if this DropTarget is active. + */ + // @ts-ignore + public drop(dtde: java.awt.dnd.DropTargetDropEvent): void; + /** + * Gets the FlavorMap + * associated with this DropTarget. + * If no FlavorMap has been set for this + * DropTarget, it is associated with the default + * FlavorMap. + *

+ */ + // @ts-ignore + public getFlavorMap(): java.awt.datatransfer.FlavorMap; + /** + * Sets the FlavorMap associated + * with this DropTarget. + *

+ */ + // @ts-ignore + public setFlavorMap(fm: java.awt.datatransfer.FlavorMap): void; + /** + * Notify the DropTarget that it has been associated with a Component + * This method is usually called from java.awt.Component.addNotify() of + * the Component associated with this DropTarget to notify the DropTarget + * that a ComponentPeer has been associated with that Component. + * Calling this method, other than to notify this DropTarget of the + * association of the ComponentPeer with the Component may result in + * a malfunction of the DnD system. + *

+ */ + // @ts-ignore + public addNotify(peer: java.awt.peer.ComponentPeer): void; + /** + * Notify the DropTarget that it has been disassociated from a Component + * This method is usually called from java.awt.Component.removeNotify() of + * the Component associated with this DropTarget to notify the DropTarget + * that a ComponentPeer has been disassociated with that Component. + * Calling this method, other than to notify this DropTarget of the + * disassociation of the ComponentPeer from the Component may result in + * a malfunction of the DnD system. + *

+ */ + // @ts-ignore + public removeNotify(peer: java.awt.peer.ComponentPeer): void; + /** + * Gets the DropTargetContext associated + * with this DropTarget. + *

+ */ + // @ts-ignore + public getDropTargetContext(): java.awt.dnd.DropTargetContext; + /** + * Creates the DropTargetContext associated with this DropTarget. + * Subclasses may override this method to instantiate their own + * DropTargetContext subclass. + * This call is typically *only* called by the platform's + * DropTargetContextPeer as a drag operation encounters this + * DropTarget. Accessing the Context while no Drag is current + * has undefined results. + */ + // @ts-ignore + protected createDropTargetContext(): java.awt.dnd.DropTargetContext; + /** + * create an embedded autoscroller + *

+ */ + // @ts-ignore + protected createDropTargetAutoScroller(c: java.awt.Component, p: java.awt.Point): java.awt.dnd.DropTarget.DropTargetAutoScroller; + /** + * initialize autoscrolling + *

+ */ + // @ts-ignore + protected initializeAutoscrolling(p: java.awt.Point): void; + /** + * update autoscrolling with current cursor location + *

+ */ + // @ts-ignore + protected updateAutoscroll(dragCursorLocn: java.awt.Point): void; + /** + * clear autoscrolling + */ + // @ts-ignore + protected clearAutoscroll(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.dnd.DropTargetAdapter.d.ts b/packages/types/dist/typings/jdk/java.awt.dnd.DropTargetAdapter.d.ts new file mode 100644 index 00000000..f153dbee --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.dnd.DropTargetAdapter.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace dnd { + // @ts-ignore + abstract class DropTargetAdapter extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Called while a drag operation is ongoing, when the mouse pointer enters + * the operable part of the drop site for the DropTarget + * registered with this listener. + */ + // @ts-ignore + public dragEnter(dtde: java.awt.dnd.DropTargetDragEvent): void; + /** + * Called when a drag operation is ongoing, while the mouse pointer is still + * over the operable part of the drop site for the DropTarget + * registered with this listener. + */ + // @ts-ignore + public dragOver(dtde: java.awt.dnd.DropTargetDragEvent): void; + /** + * Called if the user has modified + * the current drop gesture. + */ + // @ts-ignore + public dropActionChanged(dtde: java.awt.dnd.DropTargetDragEvent): void; + /** + * Called while a drag operation is ongoing, when the mouse pointer has + * exited the operable part of the drop site for the + * DropTarget registered with this listener. + */ + // @ts-ignore + public dragExit(dte: java.awt.dnd.DropTargetEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.dnd.DropTargetContext.TransferableProxy.d.ts b/packages/types/dist/typings/jdk/java.awt.dnd.DropTargetContext.TransferableProxy.d.ts new file mode 100644 index 00000000..0173c1ec --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.dnd.DropTargetContext.TransferableProxy.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace dnd { + namespace DropTargetContext { + // @ts-ignore + protected class TransferableProxy extends java.lang.Object { + // @ts-ignore + protected transferable: java.awt.datatransfer.Transferable; + // @ts-ignore + protected isLocal: boolean; + /** + * Returns an array of DataFlavor objects indicating the flavors + * the data can be provided in by the encapsulated transferable. + *

+ */ + // @ts-ignore + public getTransferDataFlavors(): java.awt.datatransfer.DataFlavor[]; + /** + * Returns whether or not the specified data flavor is supported by + * the encapsulated transferable. + */ + // @ts-ignore + public isDataFlavorSupported(flavor: java.awt.datatransfer.DataFlavor): boolean; + /** + * Returns an object which represents the data provided by + * the encapsulated transferable for the requested data flavor. + *

+ * In case of local transfer a serialized copy of the object + * returned by the encapsulated transferable is provided when + * the data is requested in application/x-java-serialized-object + * data flavor. + */ + // @ts-ignore + public getTransferData(df: java.awt.datatransfer.DataFlavor): java.lang.Object; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.dnd.DropTargetContext.d.ts b/packages/types/dist/typings/jdk/java.awt.dnd.DropTargetContext.d.ts new file mode 100644 index 00000000..b036d340 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.dnd.DropTargetContext.d.ts @@ -0,0 +1,116 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace dnd { + // @ts-ignore + class DropTargetContext extends java.lang.Object { + /** + * This method returns the DropTarget associated with this + * DropTargetContext. + *

+ */ + // @ts-ignore + public getDropTarget(): java.awt.dnd.DropTarget; + /** + * This method returns the Component associated with + * this DropTargetContext. + *

+ */ + // @ts-ignore + public getComponent(): java.awt.Component; + /** + * Called when associated with the DropTargetContextPeer. + *

+ */ + // @ts-ignore + public addNotify(dtcp: java.awt.dnd.peer.DropTargetContextPeer): void; + /** + * Called when disassociated with the DropTargetContextPeer. + */ + // @ts-ignore + public removeNotify(): void; + /** + * This method sets the current actions acceptable to + * this DropTarget. + *

+ */ + // @ts-ignore + protected setTargetActions(actions: number): void; + /** + * This method returns an int representing the + * current actions this DropTarget will accept. + *

+ */ + // @ts-ignore + protected getTargetActions(): number; + /** + * This method signals that the drop is completed and + * if it was successful or not. + *

+ */ + // @ts-ignore + public dropComplete(success: boolean): void; + /** + * accept the Drag. + *

+ */ + // @ts-ignore + protected acceptDrag(dragOperation: number): void; + /** + * reject the Drag. + */ + // @ts-ignore + protected rejectDrag(): void; + /** + * called to signal that the drop is acceptable + * using the specified operation. + * must be called during DropTargetListener.drop method invocation. + *

+ */ + // @ts-ignore + protected acceptDrop(dropOperation: number): void; + /** + * called to signal that the drop is unacceptable. + * must be called during DropTargetListener.drop method invocation. + */ + // @ts-ignore + protected rejectDrop(): void; + /** + * get the available DataFlavors of the + * Transferable operand of this operation. + *

+ */ + // @ts-ignore + protected getCurrentDataFlavors(): java.awt.datatransfer.DataFlavor[]; + /** + * This method returns a the currently available DataFlavors + * of the Transferable operand + * as a java.util.List. + *

+ */ + // @ts-ignore + protected getCurrentDataFlavorsAsList(): java.util.List; + /** + * This method returns a boolean + * indicating if the given DataFlavor is + * supported by this DropTargetContext. + *

+ */ + // @ts-ignore + protected isDataFlavorSupported(df: java.awt.datatransfer.DataFlavor): boolean; + /** + * get the Transferable (proxy) operand of this operation + *

+ */ + // @ts-ignore + protected getTransferable(): java.awt.datatransfer.Transferable; + /** + * Creates a TransferableProxy to proxy for the specified + * Transferable. + */ + // @ts-ignore + protected createTransferableProxy(t: java.awt.datatransfer.Transferable, local: boolean): java.awt.datatransfer.Transferable; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.dnd.DropTargetDragEvent.d.ts b/packages/types/dist/typings/jdk/java.awt.dnd.DropTargetDragEvent.d.ts new file mode 100644 index 00000000..8e61cbbd --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.dnd.DropTargetDragEvent.d.ts @@ -0,0 +1,84 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace dnd { + // @ts-ignore + class DropTargetDragEvent extends java.awt.dnd.DropTargetEvent { + /** + * Construct a DropTargetDragEvent given the + * DropTargetContext for this operation, + * the location of the "Drag" Cursor's hotspot + * in the Component's coordinates, the + * user drop action, and the source drop actions. + *

+ */ + // @ts-ignore + constructor(dtc: java.awt.dnd.DropTargetContext, cursorLocn: java.awt.Point, dropAction: number, srcActions: number) + /** + * This method returns a Point + * indicating the Cursor's current + * location within the Component's + * coordinates. + *

+ */ + // @ts-ignore + public getLocation(): java.awt.Point; + /** + * This method returns the current DataFlavors from the + * DropTargetContext. + *

+ */ + // @ts-ignore + public getCurrentDataFlavors(): java.awt.datatransfer.DataFlavor[]; + /** + * This method returns the current DataFlavors + * as a java.util.List + *

+ */ + // @ts-ignore + public getCurrentDataFlavorsAsList(): java.util.List; + /** + * This method returns a boolean indicating + * if the specified DataFlavor is supported. + *

+ */ + // @ts-ignore + public isDataFlavorSupported(df: java.awt.datatransfer.DataFlavor): boolean; + /** + * This method returns the source drop actions. + */ + // @ts-ignore + public getSourceActions(): number; + /** + * This method returns the user drop action. + */ + // @ts-ignore + public getDropAction(): number; + /** + * This method returns the Transferable object that represents + * the data associated with the current drag operation. + */ + // @ts-ignore + public getTransferable(): java.awt.datatransfer.Transferable; + /** + * Accepts the drag. + * This method should be called from a + * DropTargetListeners dragEnter, + * dragOver, and dropActionChanged + * methods if the implementation wishes to accept an operation + * from the srcActions other than the one selected by + * the user as represented by the dropAction. + */ + // @ts-ignore + public acceptDrag(dragOperation: number): void; + /** + * Rejects the drag as a result of examining either the + * dropAction or the available DataFlavor + * types. + */ + // @ts-ignore + public rejectDrag(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.dnd.DropTargetDropEvent.d.ts b/packages/types/dist/typings/jdk/java.awt.dnd.DropTargetDropEvent.d.ts new file mode 100644 index 00000000..fb95ae8d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.dnd.DropTargetDropEvent.d.ts @@ -0,0 +1,110 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace dnd { + // @ts-ignore + class DropTargetDropEvent extends java.awt.dnd.DropTargetEvent { + /** + * Construct a DropTargetDropEvent given + * the DropTargetContext for this operation, + * the location of the drag Cursor's + * hotspot in the Component's coordinates, + * the currently + * selected user drop action, and the current set of + * actions supported by the source. + * By default, this constructor + * assumes that the target is not in the same virtual machine as + * the source; that is, {@link #isLocalTransfer()} will + * return false. + *

+ */ + // @ts-ignore + constructor(dtc: java.awt.dnd.DropTargetContext, cursorLocn: java.awt.Point, dropAction: number, srcActions: number) + /** + * Construct a DropTargetEvent given the + * DropTargetContext for this operation, + * the location of the drag Cursor's hotspot + * in the Component's + * coordinates, the currently selected user drop action, + * the current set of actions supported by the source, + * and a boolean indicating if the source is in the same JVM + * as the target. + *

+ */ + // @ts-ignore + constructor(dtc: java.awt.dnd.DropTargetContext, cursorLocn: java.awt.Point, dropAction: number, srcActions: number, isLocal: boolean) + /** + * This method returns a Point + * indicating the Cursor's current + * location in the Component's coordinates. + *

+ */ + // @ts-ignore + public getLocation(): java.awt.Point; + /** + * This method returns the current DataFlavors. + *

+ */ + // @ts-ignore + public getCurrentDataFlavors(): java.awt.datatransfer.DataFlavor[]; + /** + * This method returns the currently available + * DataFlavors as a java.util.List. + *

+ */ + // @ts-ignore + public getCurrentDataFlavorsAsList(): java.util.List; + /** + * This method returns a boolean indicating if the + * specified DataFlavor is available + * from the source. + *

+ */ + // @ts-ignore + public isDataFlavorSupported(df: java.awt.datatransfer.DataFlavor): boolean; + /** + * This method returns the source drop actions. + */ + // @ts-ignore + public getSourceActions(): number; + /** + * This method returns the user drop action. + */ + // @ts-ignore + public getDropAction(): number; + /** + * This method returns the Transferable object + * associated with the drop. + *

+ */ + // @ts-ignore + public getTransferable(): java.awt.datatransfer.Transferable; + /** + * accept the drop, using the specified action. + *

+ */ + // @ts-ignore + public acceptDrop(dropAction: number): void; + /** + * reject the Drop. + */ + // @ts-ignore + public rejectDrop(): void; + /** + * This method notifies the DragSource + * that the drop transfer(s) are completed. + *

+ */ + // @ts-ignore + public dropComplete(success: boolean): void; + /** + * This method returns an int indicating if + * the source is in the same JVM as the target. + *

+ */ + // @ts-ignore + public isLocalTransfer(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.dnd.DropTargetEvent.d.ts b/packages/types/dist/typings/jdk/java.awt.dnd.DropTargetEvent.d.ts new file mode 100644 index 00000000..5360f75d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.dnd.DropTargetEvent.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace dnd { + // @ts-ignore + class DropTargetEvent extends java.util.EventObject { + /** + * Construct a DropTargetEvent object with + * the specified DropTargetContext. + *

+ */ + // @ts-ignore + constructor(dtc: java.awt.dnd.DropTargetContext) + // @ts-ignore + protected context: java.awt.dnd.DropTargetContext; + /** + * This method returns the DropTargetContext + * associated with this DropTargetEvent. + *

+ */ + // @ts-ignore + public getDropTargetContext(): java.awt.dnd.DropTargetContext; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.dnd.DropTargetListener.d.ts b/packages/types/dist/typings/jdk/java.awt.dnd.DropTargetListener.d.ts new file mode 100644 index 00000000..a0fb6896 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.dnd.DropTargetListener.d.ts @@ -0,0 +1,79 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace dnd { + // @ts-ignore + interface DropTargetListener { + /** + * Called while a drag operation is ongoing, when the mouse pointer enters + * the operable part of the drop site for the DropTarget + * registered with this listener. + */ + // @ts-ignore + dragEnter(dtde: java.awt.dnd.DropTargetDragEvent): void; + /** + * Called when a drag operation is ongoing, while the mouse pointer is still + * over the operable part of the drop site for the DropTarget + * registered with this listener. + */ + // @ts-ignore + dragOver(dtde: java.awt.dnd.DropTargetDragEvent): void; + /** + * Called if the user has modified + * the current drop gesture. + *

+ */ + // @ts-ignore + dropActionChanged(dtde: java.awt.dnd.DropTargetDragEvent): void; + /** + * Called while a drag operation is ongoing, when the mouse pointer has + * exited the operable part of the drop site for the + * DropTarget registered with this listener. + */ + // @ts-ignore + dragExit(dte: java.awt.dnd.DropTargetEvent): void; + /** + * Called when the drag operation has terminated with a drop on + * the operable part of the drop site for the DropTarget + * registered with this listener. + *

+ * This method is responsible for undertaking + * the transfer of the data associated with the + * gesture. The DropTargetDropEvent + * provides a means to obtain a Transferable + * object that represents the data object(s) to + * be transfered.

+ * From this method, the DropTargetListener + * shall accept or reject the drop via the + * acceptDrop(int dropAction) or rejectDrop() methods of the + * DropTargetDropEvent parameter. + *

+ * Subsequent to acceptDrop(), but not before, + * DropTargetDropEvent's getTransferable() + * method may be invoked, and data transfer may be + * performed via the returned Transferable's + * getTransferData() method. + *

+ * At the completion of a drop, an implementation + * of this method is required to signal the success/failure + * of the drop by passing an appropriate + * boolean to the DropTargetDropEvent's + * dropComplete(boolean success) method. + *

+ * Note: The data transfer should be completed before the call to the + * DropTargetDropEvent's dropComplete(boolean success) method. + * After that, a call to the getTransferData() method of the + * Transferable returned by + * DropTargetDropEvent.getTransferable() is guaranteed to + * succeed only if the data transfer is local; that is, only if + * DropTargetDropEvent.isLocalTransfer() returns + * true. Otherwise, the behavior of the call is + * implementation-dependent. + *

+ */ + // @ts-ignore + drop(dtde: java.awt.dnd.DropTargetDropEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.dnd.InvalidDnDOperationException.d.ts b/packages/types/dist/typings/jdk/java.awt.dnd.InvalidDnDOperationException.d.ts new file mode 100644 index 00000000..22bd6aec --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.dnd.InvalidDnDOperationException.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace dnd { + // @ts-ignore + class InvalidDnDOperationException extends java.lang.IllegalStateException { + /** + * Create a default Exception + */ + // @ts-ignore + constructor() + /** + * Create an Exception with its own descriptive message + *

+ */ + // @ts-ignore + constructor(msg: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.dnd.MouseDragGestureRecognizer.d.ts b/packages/types/dist/typings/jdk/java.awt.dnd.MouseDragGestureRecognizer.d.ts new file mode 100644 index 00000000..20d18c78 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.dnd.MouseDragGestureRecognizer.d.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace dnd { + // @ts-ignore + abstract class MouseDragGestureRecognizer extends java.awt.dnd.DragGestureRecognizer { + /** + * Construct a new MouseDragGestureRecognizer + * given the DragSource for the + * Component c, the Component + * to observe, the action(s) + * permitted for this drag operation, and + * the DragGestureListener to + * notify when a drag gesture is detected. + *

+ */ + // @ts-ignore + constructor(ds: java.awt.dnd.DragSource, c: java.awt.Component, act: number, dgl: java.awt.dnd.DragGestureListener) + /** + * Construct a new MouseDragGestureRecognizer + * given the DragSource for + * the Component c, + * the Component to observe, and the action(s) + * permitted for this drag operation. + *

+ */ + // @ts-ignore + constructor(ds: java.awt.dnd.DragSource, c: java.awt.Component, act: number) + /** + * Construct a new MouseDragGestureRecognizer + * given the DragSource for the + * Component c, and the + * Component to observe. + *

+ */ + // @ts-ignore + constructor(ds: java.awt.dnd.DragSource, c: java.awt.Component) + /** + * Construct a new MouseDragGestureRecognizer + * given the DragSource for the Component. + *

+ */ + // @ts-ignore + constructor(ds: java.awt.dnd.DragSource) + /** + * register this DragGestureRecognizer's Listeners with the Component + */ + // @ts-ignore + protected registerListeners(): void; + /** + * unregister this DragGestureRecognizer's Listeners with the Component + * subclasses must override this method + */ + // @ts-ignore + protected unregisterListeners(): void; + /** + * Invoked when the mouse has been clicked on a component. + *

+ */ + // @ts-ignore + public mouseClicked(e: java.awt.event.MouseEvent): void; + /** + * Invoked when a mouse button has been + * pressed on a Component. + *

+ */ + // @ts-ignore + public mousePressed(e: java.awt.event.MouseEvent): void; + /** + * Invoked when a mouse button has been released on a component. + *

+ */ + // @ts-ignore + public mouseReleased(e: java.awt.event.MouseEvent): void; + /** + * Invoked when the mouse enters a component. + *

+ */ + // @ts-ignore + public mouseEntered(e: java.awt.event.MouseEvent): void; + /** + * Invoked when the mouse exits a component. + *

+ */ + // @ts-ignore + public mouseExited(e: java.awt.event.MouseEvent): void; + /** + * Invoked when a mouse button is pressed on a component. + *

+ */ + // @ts-ignore + public mouseDragged(e: java.awt.event.MouseEvent): void; + /** + * Invoked when the mouse button has been moved on a component + * (with no buttons no down). + *

+ */ + // @ts-ignore + public mouseMoved(e: java.awt.event.MouseEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.dnd.peer.DragSourceContextPeer.d.ts b/packages/types/dist/typings/jdk/java.awt.dnd.peer.DragSourceContextPeer.d.ts new file mode 100644 index 00000000..d3cbd21a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.dnd.peer.DragSourceContextPeer.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace dnd { + namespace peer { + // @ts-ignore + interface DragSourceContextPeer { + /** + * start a drag + */ + // @ts-ignore + startDrag(dsc: java.awt.dnd.DragSourceContext, c: java.awt.Cursor, dragImage: java.awt.Image, imageOffset: java.awt.Point): void; + /** + * return the current drag cursor + */ + // @ts-ignore + getCursor(): java.awt.Cursor; + /** + * set the current drag cursor + */ + // @ts-ignore + setCursor(c: java.awt.Cursor): void; + /** + * notify the peer that the Transferables DataFlavors have changed + */ + // @ts-ignore + transferablesFlavorsChanged(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.dnd.peer.DropTargetContextPeer.d.ts b/packages/types/dist/typings/jdk/java.awt.dnd.peer.DropTargetContextPeer.d.ts new file mode 100644 index 00000000..2c18a4bf --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.dnd.peer.DropTargetContextPeer.d.ts @@ -0,0 +1,64 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace dnd { + namespace peer { + // @ts-ignore + interface DropTargetContextPeer { + /** + * update the peer's notion of the Target's actions + */ + // @ts-ignore + setTargetActions(actions: number): void; + /** + * get the current Target actions + */ + // @ts-ignore + getTargetActions(): number; + /** + * get the DropTarget associated with this peer + */ + // @ts-ignore + getDropTarget(): java.awt.dnd.DropTarget; + /** + * get the (remote) DataFlavors from the peer + */ + // @ts-ignore + getTransferDataFlavors(): java.awt.datatransfer.DataFlavor[]; + /** + * get an input stream to the remote data + */ + // @ts-ignore + getTransferable(): java.awt.datatransfer.Transferable; + // @ts-ignore + isTransferableJVMLocal(): boolean; + /** + * accept the Drag + */ + // @ts-ignore + acceptDrag(dragAction: number): void; + /** + * reject the Drag + */ + // @ts-ignore + rejectDrag(): void; + /** + * accept the Drop + */ + // @ts-ignore + acceptDrop(dropAction: number): void; + /** + * reject the Drop + */ + // @ts-ignore + rejectDrop(): void; + /** + * signal complete + */ + // @ts-ignore + dropComplete(success: boolean): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.dnd.peer.DropTargetPeer.d.ts b/packages/types/dist/typings/jdk/java.awt.dnd.peer.DropTargetPeer.d.ts new file mode 100644 index 00000000..25e2db06 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.dnd.peer.DropTargetPeer.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace dnd { + namespace peer { + // @ts-ignore + interface DropTargetPeer { + /** + * Add the DropTarget to the System + */ + // @ts-ignore + addDropTarget(dt: java.awt.dnd.DropTarget): void; + /** + * Remove the DropTarget from the system + */ + // @ts-ignore + removeDropTarget(dt: java.awt.dnd.DropTarget): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.AWTEventListener.d.ts b/packages/types/dist/typings/jdk/java.awt.event.AWTEventListener.d.ts new file mode 100644 index 00000000..17132cbe --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.AWTEventListener.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + interface AWTEventListener { + /** + * Invoked when an event is dispatched in the AWT. + */ + // @ts-ignore + eventDispatched(event: java.awt.AWTEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.AWTEventListenerProxy.d.ts b/packages/types/dist/typings/jdk/java.awt.event.AWTEventListenerProxy.d.ts new file mode 100644 index 00000000..a24d4b8c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.AWTEventListenerProxy.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + class AWTEventListenerProxy extends java.util.EventListenerProxy { + /** + * Constructor which binds the {@code AWTEventListener} + * to a specific event mask. + */ + // @ts-ignore + constructor(eventMask: number, listener: java.awt.event.AWTEventListener) + /** + * Forwards the AWT event to the listener delegate. + */ + // @ts-ignore + public eventDispatched(event: java.awt.AWTEvent): void; + /** + * Returns the event mask associated with the listener. + */ + // @ts-ignore + public getEventMask(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.ActionEvent.d.ts b/packages/types/dist/typings/jdk/java.awt.event.ActionEvent.d.ts new file mode 100644 index 00000000..3e5d5f1a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.ActionEvent.d.ts @@ -0,0 +1,90 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + class ActionEvent extends java.awt.AWTEvent { + /** + * Constructs an ActionEvent object. + *

+ * This method throws an + * IllegalArgumentException if source + * is null. + * A null command string is legal, + * but not recommended. + */ + // @ts-ignore + constructor(source: java.lang.Object, id: number, command: string) + /** + * Constructs an ActionEvent object with modifier keys. + *

+ * This method throws an + * IllegalArgumentException if source + * is null. + * A null command string is legal, + * but not recommended. + */ + // @ts-ignore + constructor(source: java.lang.Object, id: number, command: string, modifiers: number) + /** + * Constructs an ActionEvent object with the specified + * modifier keys and timestamp. + *

+ * This method throws an + * IllegalArgumentException if source + * is null. + * A null command string is legal, + * but not recommended. + */ + // @ts-ignore + constructor(source: java.lang.Object, id: number, command: string, when: number, modifiers: number) + // @ts-ignore + public static SHIFT_MASK: number; + // @ts-ignore + public static CTRL_MASK: number; + // @ts-ignore + public static META_MASK: number; + // @ts-ignore + public static ALT_MASK: number; + // @ts-ignore + public static ACTION_FIRST: number; + // @ts-ignore + public static ACTION_LAST: number; + // @ts-ignore + public static ACTION_PERFORMED: number; + /** + * Returns the command string associated with this action. + * This string allows a "modal" component to specify one of several + * commands, depending on its state. For example, a single button might + * toggle between "show details" and "hide details". The source object + * and the event would be the same in each case, but the command string + * would identify the intended action. + *

+ * Note that if a null command string was passed + * to the constructor for this ActionEvent, this + * this method returns null. + */ + // @ts-ignore + public getActionCommand(): string; + /** + * Returns the timestamp of when this event occurred. Because an + * ActionEvent is a high-level, semantic event, the timestamp is typically + * the same as an underlying InputEvent. + */ + // @ts-ignore + public getWhen(): number; + /** + * Returns the modifier keys held down during this action event. + */ + // @ts-ignore + public getModifiers(): number; + /** + * Returns a parameter string identifying this action event. + * This method is useful for event-logging and for debugging. + */ + // @ts-ignore + public paramString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.ActionListener.d.ts b/packages/types/dist/typings/jdk/java.awt.event.ActionListener.d.ts new file mode 100644 index 00000000..a6f6fce6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.ActionListener.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + interface ActionListener { + /** + * Invoked when an action occurs. + */ + // @ts-ignore + actionPerformed(e: java.awt.event.ActionEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.AdjustmentEvent.d.ts b/packages/types/dist/typings/jdk/java.awt.event.AdjustmentEvent.d.ts new file mode 100644 index 00000000..dada71fa --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.AdjustmentEvent.d.ts @@ -0,0 +1,76 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + class AdjustmentEvent extends java.awt.AWTEvent { + /** + * Constructs an AdjustmentEvent object with the + * specified Adjustable source, event type, + * adjustment type, and value. + *

This method throws an + * IllegalArgumentException if source + * is null. + */ + // @ts-ignore + constructor(source: java.awt.Adjustable, id: number, type: number, value: number) + /** + * Constructs an AdjustmentEvent object with the + * specified Adjustable source, event type, adjustment type, and value. + *

This method throws an + * IllegalArgumentException if source + * is null. + */ + // @ts-ignore + constructor(source: java.awt.Adjustable, id: number, type: number, value: number, isAdjusting: boolean) + // @ts-ignore + public static ADJUSTMENT_FIRST: number; + // @ts-ignore + public static ADJUSTMENT_LAST: number; + // @ts-ignore + public static ADJUSTMENT_VALUE_CHANGED: number; + // @ts-ignore + public static UNIT_INCREMENT: number; + // @ts-ignore + public static UNIT_DECREMENT: number; + // @ts-ignore + public static BLOCK_DECREMENT: number; + // @ts-ignore + public static BLOCK_INCREMENT: number; + // @ts-ignore + public static TRACK: number; + /** + * Returns the Adjustable object where this event originated. + */ + // @ts-ignore + public getAdjustable(): java.awt.Adjustable; + /** + * Returns the current value in the adjustment event. + */ + // @ts-ignore + public getValue(): number; + /** + * Returns the type of adjustment which caused the value changed + * event. It will have one of the following values: + *

    + *
  • {@link #UNIT_INCREMENT} + *
  • {@link #UNIT_DECREMENT} + *
  • {@link #BLOCK_INCREMENT} + *
  • {@link #BLOCK_DECREMENT} + *
  • {@link #TRACK} + *
+ */ + // @ts-ignore + public getAdjustmentType(): number; + /** + * Returns true if this is one of multiple + * adjustment events. + */ + // @ts-ignore + public getValueIsAdjusting(): boolean; + // @ts-ignore + public paramString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.AdjustmentListener.d.ts b/packages/types/dist/typings/jdk/java.awt.event.AdjustmentListener.d.ts new file mode 100644 index 00000000..274e5e84 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.AdjustmentListener.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + interface AdjustmentListener { + /** + * Invoked when the value of the adjustable has changed. + */ + // @ts-ignore + adjustmentValueChanged(e: java.awt.event.AdjustmentEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.ComponentAdapter.d.ts b/packages/types/dist/typings/jdk/java.awt.event.ComponentAdapter.d.ts new file mode 100644 index 00000000..3f494a92 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.ComponentAdapter.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + abstract class ComponentAdapter extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Invoked when the component's size changes. + */ + // @ts-ignore + public componentResized(e: java.awt.event.ComponentEvent): void; + /** + * Invoked when the component's position changes. + */ + // @ts-ignore + public componentMoved(e: java.awt.event.ComponentEvent): void; + /** + * Invoked when the component has been made visible. + */ + // @ts-ignore + public componentShown(e: java.awt.event.ComponentEvent): void; + /** + * Invoked when the component has been made invisible. + */ + // @ts-ignore + public componentHidden(e: java.awt.event.ComponentEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.ComponentEvent.d.ts b/packages/types/dist/typings/jdk/java.awt.event.ComponentEvent.d.ts new file mode 100644 index 00000000..31c05dad --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.ComponentEvent.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + class ComponentEvent extends java.awt.AWTEvent { + /** + * Constructs a ComponentEvent object. + *

This method throws an + * IllegalArgumentException if source + * is null. + */ + // @ts-ignore + constructor(source: java.awt.Component, id: number) + // @ts-ignore + public static COMPONENT_FIRST: number; + // @ts-ignore + public static COMPONENT_LAST: number; + // @ts-ignore + public static COMPONENT_MOVED: number; + // @ts-ignore + public static COMPONENT_RESIZED: number; + // @ts-ignore + public static COMPONENT_SHOWN: number; + // @ts-ignore + public static COMPONENT_HIDDEN: number; + /** + * Returns the originator of the event. + */ + // @ts-ignore + public getComponent(): java.awt.Component; + /** + * Returns a parameter string identifying this event. + * This method is useful for event-logging and for debugging. + */ + // @ts-ignore + public paramString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.ComponentListener.d.ts b/packages/types/dist/typings/jdk/java.awt.event.ComponentListener.d.ts new file mode 100644 index 00000000..6da719ee --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.ComponentListener.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + interface ComponentListener { + /** + * Invoked when the component's size changes. + */ + // @ts-ignore + componentResized(e: java.awt.event.ComponentEvent): void; + /** + * Invoked when the component's position changes. + */ + // @ts-ignore + componentMoved(e: java.awt.event.ComponentEvent): void; + /** + * Invoked when the component has been made visible. + */ + // @ts-ignore + componentShown(e: java.awt.event.ComponentEvent): void; + /** + * Invoked when the component has been made invisible. + */ + // @ts-ignore + componentHidden(e: java.awt.event.ComponentEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.ContainerAdapter.d.ts b/packages/types/dist/typings/jdk/java.awt.event.ContainerAdapter.d.ts new file mode 100644 index 00000000..13b481d3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.ContainerAdapter.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + abstract class ContainerAdapter extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Invoked when a component has been added to the container. + */ + // @ts-ignore + public componentAdded(e: java.awt.event.ContainerEvent): void; + /** + * Invoked when a component has been removed from the container. + */ + // @ts-ignore + public componentRemoved(e: java.awt.event.ContainerEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.ContainerEvent.d.ts b/packages/types/dist/typings/jdk/java.awt.event.ContainerEvent.d.ts new file mode 100644 index 00000000..65393280 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.ContainerEvent.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + class ContainerEvent extends java.awt.event.ComponentEvent { + /** + * Constructs a ContainerEvent object. + *

This method throws an + * IllegalArgumentException if source + * is null. + */ + // @ts-ignore + constructor(source: java.awt.Component, id: number, child: java.awt.Component) + // @ts-ignore + public static CONTAINER_FIRST: number; + // @ts-ignore + public static CONTAINER_LAST: number; + // @ts-ignore + public static COMPONENT_ADDED: number; + // @ts-ignore + public static COMPONENT_REMOVED: number; + /** + * Returns the originator of the event. + */ + // @ts-ignore + public getContainer(): java.awt.Container; + /** + * Returns the component that was affected by the event. + */ + // @ts-ignore + public getChild(): java.awt.Component; + /** + * Returns a parameter string identifying this event. + * This method is useful for event-logging and for debugging. + */ + // @ts-ignore + public paramString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.ContainerListener.d.ts b/packages/types/dist/typings/jdk/java.awt.event.ContainerListener.d.ts new file mode 100644 index 00000000..6df0cde6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.ContainerListener.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + interface ContainerListener { + /** + * Invoked when a component has been added to the container. + */ + // @ts-ignore + componentAdded(e: java.awt.event.ContainerEvent): void; + /** + * Invoked when a component has been removed from the container. + */ + // @ts-ignore + componentRemoved(e: java.awt.event.ContainerEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.FocusAdapter.d.ts b/packages/types/dist/typings/jdk/java.awt.event.FocusAdapter.d.ts new file mode 100644 index 00000000..8847b991 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.FocusAdapter.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + abstract class FocusAdapter extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Invoked when a component gains the keyboard focus. + */ + // @ts-ignore + public focusGained(e: java.awt.event.FocusEvent): void; + /** + * Invoked when a component loses the keyboard focus. + */ + // @ts-ignore + public focusLost(e: java.awt.event.FocusEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.FocusEvent.d.ts b/packages/types/dist/typings/jdk/java.awt.event.FocusEvent.d.ts new file mode 100644 index 00000000..a812201c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.FocusEvent.d.ts @@ -0,0 +1,75 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + class FocusEvent extends java.awt.event.ComponentEvent { + /** + * Constructs a FocusEvent object with the + * specified temporary state and opposite Component. + * The opposite Component is the other + * Component involved in this focus change. + * For a FOCUS_GAINED event, this is the + * Component that lost focus. For a + * FOCUS_LOST event, this is the Component + * that gained focus. If this focus change occurs with a native + * application, with a Java application in a different VM, + * or with no other Component, then the opposite + * Component is null. + *

This method throws an + * IllegalArgumentException if source + * is null. + */ + // @ts-ignore + constructor(source: java.awt.Component, id: number, temporary: boolean, opposite: java.awt.Component) + /** + * Constructs a FocusEvent object and identifies + * whether or not the change is temporary. + *

This method throws an + * IllegalArgumentException if source + * is null. + */ + // @ts-ignore + constructor(source: java.awt.Component, id: number, temporary: boolean) + /** + * Constructs a FocusEvent object and identifies it + * as a permanent change in focus. + *

This method throws an + * IllegalArgumentException if source + * is null. + */ + // @ts-ignore + constructor(source: java.awt.Component, id: number) + // @ts-ignore + public static FOCUS_FIRST: number; + // @ts-ignore + public static FOCUS_LAST: number; + // @ts-ignore + public static FOCUS_GAINED: number; + // @ts-ignore + public static FOCUS_LOST: number; + /** + * Identifies the focus change event as temporary or permanent. + */ + // @ts-ignore + public isTemporary(): boolean; + /** + * Returns the other Component involved in this focus change. For a + * FOCUS_GAINED event, this is the Component that lost focus. For a + * FOCUS_LOST event, this is the Component that gained focus. If this + * focus change occurs with a native application, with a Java application + * in a different VM or context, or with no other Component, then null is + * returned. + */ + // @ts-ignore + public getOppositeComponent(): java.awt.Component; + /** + * Returns a parameter string identifying this event. + * This method is useful for event-logging and for debugging. + */ + // @ts-ignore + public paramString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.FocusListener.d.ts b/packages/types/dist/typings/jdk/java.awt.event.FocusListener.d.ts new file mode 100644 index 00000000..ad24e6a1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.FocusListener.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + interface FocusListener { + /** + * Invoked when a component gains the keyboard focus. + */ + // @ts-ignore + focusGained(e: java.awt.event.FocusEvent): void; + /** + * Invoked when a component loses the keyboard focus. + */ + // @ts-ignore + focusLost(e: java.awt.event.FocusEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.HierarchyBoundsAdapter.d.ts b/packages/types/dist/typings/jdk/java.awt.event.HierarchyBoundsAdapter.d.ts new file mode 100644 index 00000000..9b089c0e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.HierarchyBoundsAdapter.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + abstract class HierarchyBoundsAdapter extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Called when an ancestor of the source is moved. + */ + // @ts-ignore + public ancestorMoved(e: java.awt.event.HierarchyEvent): void; + /** + * Called when an ancestor of the source is resized. + */ + // @ts-ignore + public ancestorResized(e: java.awt.event.HierarchyEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.HierarchyBoundsListener.d.ts b/packages/types/dist/typings/jdk/java.awt.event.HierarchyBoundsListener.d.ts new file mode 100644 index 00000000..a11da6a3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.HierarchyBoundsListener.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + interface HierarchyBoundsListener { + /** + * Called when an ancestor of the source is moved. + */ + // @ts-ignore + ancestorMoved(e: java.awt.event.HierarchyEvent): void; + /** + * Called when an ancestor of the source is resized. + */ + // @ts-ignore + ancestorResized(e: java.awt.event.HierarchyEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.HierarchyEvent.d.ts b/packages/types/dist/typings/jdk/java.awt.event.HierarchyEvent.d.ts new file mode 100644 index 00000000..6b5bf82a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.HierarchyEvent.d.ts @@ -0,0 +1,81 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + class HierarchyEvent extends java.awt.AWTEvent { + /** + * Constructs an HierarchyEvent object to identify a + * change in the Component hierarchy. + *

This method throws an + * IllegalArgumentException if source + * is null. + */ + // @ts-ignore + constructor(source: java.awt.Component, id: number, changed: java.awt.Component, changedParent: java.awt.Container) + /** + * Constructs an HierarchyEvent object to identify + * a change in the Component hierarchy. + *

This method throws an + * IllegalArgumentException if source + * is null. + */ + // @ts-ignore + constructor(source: java.awt.Component, id: number, changed: java.awt.Component, changedParent: java.awt.Container, changeFlags: number) + // @ts-ignore + public static HIERARCHY_FIRST: number; + // @ts-ignore + public static HIERARCHY_CHANGED: number; + // @ts-ignore + public static ANCESTOR_MOVED: number; + // @ts-ignore + public static ANCESTOR_RESIZED: number; + // @ts-ignore + public static HIERARCHY_LAST: number; + // @ts-ignore + public static PARENT_CHANGED: number; + // @ts-ignore + public static DISPLAYABILITY_CHANGED: number; + // @ts-ignore + public static SHOWING_CHANGED: number; + /** + * Returns the originator of the event. + */ + // @ts-ignore + public getComponent(): java.awt.Component; + /** + * Returns the Component at the top of the hierarchy which was + * changed. + */ + // @ts-ignore + public getChanged(): java.awt.Component; + /** + * Returns the parent of the Component returned by + * getChanged(). For a HIERARCHY_CHANGED event where the + * change was of type PARENT_CHANGED via a call to + * Container.add, the parent returned is the parent + * after the add operation. For a HIERARCHY_CHANGED event where + * the change was of type PARENT_CHANGED via a call to + * Container.remove, the parent returned is the parent + * before the remove operation. For all other events and types, + * the parent returned is the parent during the operation. + */ + // @ts-ignore + public getChangedParent(): java.awt.Container; + /** + * Returns a bitmask which indicates the type(s) of + * HIERARCHY_CHANGED events represented in this event object. + * The bits have been bitwise-ored together. + */ + // @ts-ignore + public getChangeFlags(): number; + /** + * Returns a parameter string identifying this event. + * This method is useful for event-logging and for debugging. + */ + // @ts-ignore + public paramString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.HierarchyListener.d.ts b/packages/types/dist/typings/jdk/java.awt.event.HierarchyListener.d.ts new file mode 100644 index 00000000..d0ef0e69 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.HierarchyListener.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + interface HierarchyListener { + /** + * Called when the hierarchy has been changed. To discern the actual + * type of change, call HierarchyEvent.getChangeFlags(). + */ + // @ts-ignore + hierarchyChanged(e: java.awt.event.HierarchyEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.InputEvent.d.ts b/packages/types/dist/typings/jdk/java.awt.event.InputEvent.d.ts new file mode 100644 index 00000000..5d6ade54 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.InputEvent.d.ts @@ -0,0 +1,151 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + abstract class InputEvent extends java.awt.event.ComponentEvent { + // @ts-ignore + public static SHIFT_MASK: number; + // @ts-ignore + public static CTRL_MASK: number; + // @ts-ignore + public static META_MASK: number; + // @ts-ignore + public static ALT_MASK: number; + // @ts-ignore + public static ALT_GRAPH_MASK: number; + // @ts-ignore + public static BUTTON1_MASK: number; + // @ts-ignore + public static BUTTON2_MASK: number; + // @ts-ignore + public static BUTTON3_MASK: number; + // @ts-ignore + public static SHIFT_DOWN_MASK: number; + // @ts-ignore + public static CTRL_DOWN_MASK: number; + // @ts-ignore + public static META_DOWN_MASK: number; + // @ts-ignore + public static ALT_DOWN_MASK: number; + // @ts-ignore + public static BUTTON1_DOWN_MASK: number; + // @ts-ignore + public static BUTTON2_DOWN_MASK: number; + // @ts-ignore + public static BUTTON3_DOWN_MASK: number; + // @ts-ignore + public static ALT_GRAPH_DOWN_MASK: number; + /** + * A method to obtain a mask for any existing mouse button. + * The returned mask may be used for different purposes. Following are some of them: + *

    + *
  • {@link java.awt.Robot#mousePress(int) mousePress(buttons)} and + * {@link java.awt.Robot#mouseRelease(int) mouseRelease(buttons)} + *
  • as a {@code modifiers} parameter when creating a new {@link MouseEvent} instance + *
  • to check {@link MouseEvent#getModifiersEx() modifiersEx} of existing {@code MouseEvent} + *
+ */ + // @ts-ignore + public static getMaskForButton(button: number): number; + /** + * Returns whether or not the Shift modifier is down on this event. + */ + // @ts-ignore + public isShiftDown(): boolean; + /** + * Returns whether or not the Control modifier is down on this event. + */ + // @ts-ignore + public isControlDown(): boolean; + /** + * Returns whether or not the Meta modifier is down on this event. + */ + // @ts-ignore + public isMetaDown(): boolean; + /** + * Returns whether or not the Alt modifier is down on this event. + */ + // @ts-ignore + public isAltDown(): boolean; + /** + * Returns whether or not the AltGraph modifier is down on this event. + */ + // @ts-ignore + public isAltGraphDown(): boolean; + /** + * Returns the difference in milliseconds between the timestamp of when this event occurred and + * midnight, January 1, 1970 UTC. + */ + // @ts-ignore + public getWhen(): number; + /** + * Returns the modifier mask for this event. + */ + // @ts-ignore + public getModifiers(): number; + /** + * Returns the extended modifier mask for this event. + *

+ * Extended modifiers are the modifiers that ends with the _DOWN_MASK suffix, + * such as ALT_DOWN_MASK, BUTTON1_DOWN_MASK, and others. + *

+ * Extended modifiers represent the state of all modal keys, + * such as ALT, CTRL, META, and the mouse buttons just after + * the event occurred. + *

+ * For example, if the user presses button 1 followed by + * button 2, and then releases them in the same order, + * the following sequence of events is generated: + *

+                 * MOUSE_PRESSED:  BUTTON1_DOWN_MASK
+                 * MOUSE_PRESSED:  BUTTON1_DOWN_MASK | BUTTON2_DOWN_MASK
+                 * MOUSE_RELEASED: BUTTON2_DOWN_MASK
+                 * MOUSE_CLICKED:  BUTTON2_DOWN_MASK
+                 * MOUSE_RELEASED:
+                 * MOUSE_CLICKED:
+                 * 
+ *

+ * It is not recommended to compare the return value of this method + * using == because new modifiers can be added in the future. + * For example, the appropriate way to check that SHIFT and BUTTON1 are + * down, but CTRL is up is demonstrated by the following code: + *

+                 * int onmask = SHIFT_DOWN_MASK | BUTTON1_DOWN_MASK;
+                 * int offmask = CTRL_DOWN_MASK;
+                 * if ((event.getModifiersEx() & (onmask | offmask)) == onmask) {
+                 * ...
+                 * }
+                 * 
+ * The above code will work even if new modifiers are added. + */ + // @ts-ignore + public getModifiersEx(): number; + /** + * Consumes this event so that it will not be processed + * in the default manner by the source which originated it. + */ + // @ts-ignore + public consume(): void; + /** + * Returns whether or not this event has been consumed. + */ + // @ts-ignore + public isConsumed(): boolean; + /** + * Returns a String describing the extended modifier keys and + * mouse buttons, such as "Shift", "Button1", or "Ctrl+Shift". + * These strings can be localized by changing the + * awt.properties file. + *

+ * Note that passing negative parameter is incorrect, + * and will cause the returning an unspecified string. + * Zero parameter means that no modifiers were passed and will + * cause the returning an empty string. + */ + // @ts-ignore + public static getModifiersExText(modifiers: number): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.InputMethodEvent.d.ts b/packages/types/dist/typings/jdk/java.awt.event.InputMethodEvent.d.ts new file mode 100644 index 00000000..3d3c6d6d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.InputMethodEvent.d.ts @@ -0,0 +1,135 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + class InputMethodEvent extends java.awt.AWTEvent { + /** + * Constructs an InputMethodEvent with the specified + * source component, type, time, text, caret, and visiblePosition. + *

+ * The offsets of caret and visiblePosition are relative to the current + * composed text; that is, the composed text within text + * if this is an INPUT_METHOD_TEXT_CHANGED event, + * the composed text within the text of the + * preceding INPUT_METHOD_TEXT_CHANGED event otherwise. + *

Note that passing in an invalid id results in + * unspecified behavior. This method throws an + * IllegalArgumentException if source + * is null. + */ + // @ts-ignore + constructor(source: java.awt.Component, id: number, when: number, text: java.text.AttributedCharacterIterator, committedCharacterCount: number, caret: java.awt.font.TextHitInfo, visiblePosition: java.awt.font.TextHitInfo) + /** + * Constructs an InputMethodEvent with the specified + * source component, type, text, caret, and visiblePosition. + *

+ * The offsets of caret and visiblePosition are relative to the current + * composed text; that is, the composed text within text + * if this is an INPUT_METHOD_TEXT_CHANGED event, + * the composed text within the text of the + * preceding INPUT_METHOD_TEXT_CHANGED event otherwise. + * The time stamp for this event is initialized by invoking + * {@link java.awt.EventQueue#getMostRecentEventTime()}. + *

Note that passing in an invalid id results in + * unspecified behavior. This method throws an + * IllegalArgumentException if source + * is null. + */ + // @ts-ignore + constructor(source: java.awt.Component, id: number, text: java.text.AttributedCharacterIterator, committedCharacterCount: number, caret: java.awt.font.TextHitInfo, visiblePosition: java.awt.font.TextHitInfo) + /** + * Constructs an InputMethodEvent with the + * specified source component, type, caret, and visiblePosition. + * The text is set to null, + * committedCharacterCount to 0. + *

+ * The offsets of caret and visiblePosition + * are relative to the current composed text; that is, + * the composed text within the text of the + * preceding INPUT_METHOD_TEXT_CHANGED event if the + * event being constructed as a CARET_POSITION_CHANGED event. + * For an INPUT_METHOD_TEXT_CHANGED event without text, + * caret and visiblePosition must be + * null. + * The time stamp for this event is initialized by invoking + * {@link java.awt.EventQueue#getMostRecentEventTime()}. + *

Note that passing in an invalid id results in + * unspecified behavior. This method throws an + * IllegalArgumentException if source + * is null. + */ + // @ts-ignore + constructor(source: java.awt.Component, id: number, caret: java.awt.font.TextHitInfo, visiblePosition: java.awt.font.TextHitInfo) + // @ts-ignore + public static INPUT_METHOD_FIRST: number; + // @ts-ignore + public static INPUT_METHOD_TEXT_CHANGED: number; + // @ts-ignore + public static CARET_POSITION_CHANGED: number; + // @ts-ignore + public static INPUT_METHOD_LAST: number; + /** + * Gets the combined committed and composed text. + * Characters from index 0 to index getCommittedCharacterCount() - 1 are committed + * text, the remaining characters are composed text. + */ + // @ts-ignore + public getText(): java.text.AttributedCharacterIterator; + /** + * Gets the number of committed characters in the text. + */ + // @ts-ignore + public getCommittedCharacterCount(): number; + /** + * Gets the caret. + *

+ * The offset of the caret is relative to the current + * composed text; that is, the composed text within getText() + * if this is an INPUT_METHOD_TEXT_CHANGED event, + * the composed text within getText() of the + * preceding INPUT_METHOD_TEXT_CHANGED event otherwise. + */ + // @ts-ignore + public getCaret(): java.awt.font.TextHitInfo; + /** + * Gets the position that's most important to be visible. + *

+ * The offset of the visible position is relative to the current + * composed text; that is, the composed text within getText() + * if this is an INPUT_METHOD_TEXT_CHANGED event, + * the composed text within getText() of the + * preceding INPUT_METHOD_TEXT_CHANGED event otherwise. + */ + // @ts-ignore + public getVisiblePosition(): java.awt.font.TextHitInfo; + /** + * Consumes this event so that it will not be processed + * in the default manner by the source which originated it. + */ + // @ts-ignore + public consume(): void; + /** + * Returns whether or not this event has been consumed. + */ + // @ts-ignore + public isConsumed(): boolean; + /** + * Returns the time stamp of when this event occurred. + */ + // @ts-ignore + public getWhen(): number; + /** + * Returns a parameter string identifying this event. + * This method is useful for event-logging and for debugging. + * It contains the event ID in text form, the characters of the + * committed and composed text + * separated by "+", the number of committed characters, + * the caret, and the visible position. + */ + // @ts-ignore + public paramString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.InputMethodListener.d.ts b/packages/types/dist/typings/jdk/java.awt.event.InputMethodListener.d.ts new file mode 100644 index 00000000..8546e6ea --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.InputMethodListener.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + interface InputMethodListener { + /** + * Invoked when the text entered through an input method has changed. + */ + // @ts-ignore + inputMethodTextChanged(event: java.awt.event.InputMethodEvent): void; + /** + * Invoked when the caret within composed text has changed. + */ + // @ts-ignore + caretPositionChanged(event: java.awt.event.InputMethodEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.InvocationEvent.d.ts b/packages/types/dist/typings/jdk/java.awt.event.InvocationEvent.d.ts new file mode 100644 index 00000000..c74de0a9 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.InvocationEvent.d.ts @@ -0,0 +1,128 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + class InvocationEvent extends java.awt.AWTEvent { + /** + * Constructs an InvocationEvent with the specified + * source which will execute the runnable's run + * method when dispatched. + *

This is a convenience constructor. An invocation of the form + * InvocationEvent(source, runnable) + * behaves in exactly the same way as the invocation of + * {@link #InvocationEvent(Object, Runnable, Object, boolean) InvocationEvent}(source, runnable, null, false). + *

This method throws an IllegalArgumentException + * if source is null. + */ + // @ts-ignore + constructor(source: java.lang.Object, runnable: java.lang.Runnable) + /** + * Constructs an InvocationEvent with the specified + * source which will execute the runnable's run + * method when dispatched. If notifier is non-null, + * notifyAll() will be called on it + * immediately after run has returned or thrown an exception. + *

An invocation of the form InvocationEvent(source, + * runnable, notifier, catchThrowables) + * behaves in exactly the same way as the invocation of + * {@link #InvocationEvent(Object, int, Runnable, Object, boolean) InvocationEvent}(source, InvocationEvent.INVOCATION_DEFAULT, runnable, notifier, catchThrowables). + *

This method throws an IllegalArgumentException + * if source is null. + */ + // @ts-ignore + constructor(source: java.lang.Object, runnable: java.lang.Runnable, notifier: java.lang.Object, catchThrowables: boolean) + /** + * Constructs an InvocationEvent with the specified + * source which will execute the runnable's run + * method when dispatched. If listener is non-null, + * listener.run() will be called immediately after + * run has returned, thrown an exception or the event + * was disposed. + *

This method throws an IllegalArgumentException + * if source is null. + */ + // @ts-ignore + constructor(source: java.lang.Object, runnable: java.lang.Runnable, listener: java.lang.Runnable, catchThrowables: boolean) + /** + * Constructs an InvocationEvent with the specified + * source and ID which will execute the runnable's run + * method when dispatched. If notifier is non-null, + * notifyAll will be called on it immediately after + * run has returned or thrown an exception. + *

This method throws an + * IllegalArgumentException if source + * is null. + */ + // @ts-ignore + constructor(source: java.lang.Object, id: number, runnable: java.lang.Runnable, notifier: java.lang.Object, catchThrowables: boolean) + // @ts-ignore + public static INVOCATION_FIRST: number; + // @ts-ignore + public static INVOCATION_DEFAULT: number; + // @ts-ignore + public static INVOCATION_LAST: number; + // @ts-ignore + protected runnable: java.lang.Runnable; + // @ts-ignore + protected notifier: java.lang.Object; + // @ts-ignore + protected catchExceptions: boolean; + /** + * Executes the Runnable's run() method and notifies the + * notifier (if any) when run() has returned or thrown an exception. + */ + // @ts-ignore + public dispatch(): void; + /** + * Returns any Exception caught while executing the Runnable's run() + * method. + */ + // @ts-ignore + public getException(): java.lang.Exception; + /** + * Returns any Throwable caught while executing the Runnable's run() + * method. + */ + // @ts-ignore + public getThrowable(): java.lang.Throwable; + /** + * Returns the timestamp of when this event occurred. + */ + // @ts-ignore + public getWhen(): number; + /** + * Returns {@code true} if the event is dispatched or any exception is + * thrown while dispatching, {@code false} otherwise. The method should + * be called by a waiting thread that calls the {@code notifier.wait()} method. + * Since spurious wakeups are possible (as explained in {@link Object#wait()}), + * this method should be used in a waiting loop to ensure that the event + * got dispatched: + *

+                 * while (!event.isDispatched()) {
+                 * notifier.wait();
+                 * }
+                 * 
+ * If the waiting thread wakes up without dispatching the event, + * the {@code isDispatched()} method returns {@code false}, and + * the {@code while} loop executes once more, thus, causing + * the awakened thread to revert to the waiting mode. + *

+ * If the {@code notifier.notifyAll()} happens before the waiting thread + * enters the {@code notifier.wait()} method, the {@code while} loop ensures + * that the waiting thread will not enter the {@code notifier.wait()} method. + * Otherwise, there is no guarantee that the waiting thread will ever be woken + * from the wait. + */ + // @ts-ignore + public isDispatched(): boolean; + /** + * Returns a parameter string identifying this event. + * This method is useful for event-logging and for debugging. + */ + // @ts-ignore + public paramString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.ItemEvent.d.ts b/packages/types/dist/typings/jdk/java.awt.event.ItemEvent.d.ts new file mode 100644 index 00000000..de32e798 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.ItemEvent.d.ts @@ -0,0 +1,49 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + class ItemEvent extends java.awt.AWTEvent { + /** + * Constructs an ItemEvent object. + *

This method throws an + * IllegalArgumentException if source + * is null. + */ + // @ts-ignore + constructor(source: java.awt.ItemSelectable, id: number, item: java.lang.Object, stateChange: number) + // @ts-ignore + public static ITEM_FIRST: number; + // @ts-ignore + public static ITEM_LAST: number; + // @ts-ignore + public static ITEM_STATE_CHANGED: number; + // @ts-ignore + public static SELECTED: number; + // @ts-ignore + public static DESELECTED: number; + /** + * Returns the originator of the event. + */ + // @ts-ignore + public getItemSelectable(): java.awt.ItemSelectable; + /** + * Returns the item affected by the event. + */ + // @ts-ignore + public getItem(): java.lang.Object; + /** + * Returns the type of state change (selected or deselected). + */ + // @ts-ignore + public getStateChange(): number; + /** + * Returns a parameter string identifying this item event. + * This method is useful for event-logging and for debugging. + */ + // @ts-ignore + public paramString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.ItemListener.d.ts b/packages/types/dist/typings/jdk/java.awt.event.ItemListener.d.ts new file mode 100644 index 00000000..18b6c464 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.ItemListener.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + interface ItemListener { + /** + * Invoked when an item has been selected or deselected by the user. + * The code written for this method performs the operations + * that need to occur when an item is selected (or deselected). + */ + // @ts-ignore + itemStateChanged(e: java.awt.event.ItemEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.KeyAdapter.d.ts b/packages/types/dist/typings/jdk/java.awt.event.KeyAdapter.d.ts new file mode 100644 index 00000000..c92eca7e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.KeyAdapter.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + abstract class KeyAdapter extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Invoked when a key has been typed. + * This event occurs when a key press is followed by a key release. + */ + // @ts-ignore + public keyTyped(e: java.awt.event.KeyEvent): void; + /** + * Invoked when a key has been pressed. + */ + // @ts-ignore + public keyPressed(e: java.awt.event.KeyEvent): void; + /** + * Invoked when a key has been released. + */ + // @ts-ignore + public keyReleased(e: java.awt.event.KeyEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.KeyEvent.d.ts b/packages/types/dist/typings/jdk/java.awt.event.KeyEvent.d.ts new file mode 100644 index 00000000..972282b0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.KeyEvent.d.ts @@ -0,0 +1,523 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + class KeyEvent extends java.awt.event.InputEvent { + /** + * Constructs a KeyEvent object. + *

This method throws an + * IllegalArgumentException if source + * is null. + */ + // @ts-ignore + constructor(source: java.awt.Component, id: number, when: number, modifiers: number, keyCode: number, keyChar: string, keyLocation: number) + /** + * Constructs a KeyEvent object. + *

This method throws an + * IllegalArgumentException if source + * is null. + */ + // @ts-ignore + constructor(source: java.awt.Component, id: number, when: number, modifiers: number, keyCode: number, keyChar: string) + // @ts-ignore + constructor(source: java.awt.Component, id: number, when: number, modifiers: number, keyCode: number) + // @ts-ignore + public static KEY_FIRST: number; + // @ts-ignore + public static KEY_LAST: number; + // @ts-ignore + public static KEY_TYPED: number; + // @ts-ignore + public static KEY_PRESSED: number; + // @ts-ignore + public static KEY_RELEASED: number; + // @ts-ignore + public static VK_ENTER: number; + // @ts-ignore + public static VK_BACK_SPACE: number; + // @ts-ignore + public static VK_TAB: number; + // @ts-ignore + public static VK_CANCEL: number; + // @ts-ignore + public static VK_CLEAR: number; + // @ts-ignore + public static VK_SHIFT: number; + // @ts-ignore + public static VK_CONTROL: number; + // @ts-ignore + public static VK_ALT: number; + // @ts-ignore + public static VK_PAUSE: number; + // @ts-ignore + public static VK_CAPS_LOCK: number; + // @ts-ignore + public static VK_ESCAPE: number; + // @ts-ignore + public static VK_SPACE: number; + // @ts-ignore + public static VK_PAGE_UP: number; + // @ts-ignore + public static VK_PAGE_DOWN: number; + // @ts-ignore + public static VK_END: number; + // @ts-ignore + public static VK_HOME: number; + // @ts-ignore + public static VK_LEFT: number; + // @ts-ignore + public static VK_UP: number; + // @ts-ignore + public static VK_RIGHT: number; + // @ts-ignore + public static VK_DOWN: number; + // @ts-ignore + public static VK_COMMA: number; + // @ts-ignore + public static VK_MINUS: number; + // @ts-ignore + public static VK_PERIOD: number; + // @ts-ignore + public static VK_SLASH: number; + // @ts-ignore + public static VK_0: number; + // @ts-ignore + public static VK_1: number; + // @ts-ignore + public static VK_2: number; + // @ts-ignore + public static VK_3: number; + // @ts-ignore + public static VK_4: number; + // @ts-ignore + public static VK_5: number; + // @ts-ignore + public static VK_6: number; + // @ts-ignore + public static VK_7: number; + // @ts-ignore + public static VK_8: number; + // @ts-ignore + public static VK_9: number; + // @ts-ignore + public static VK_SEMICOLON: number; + // @ts-ignore + public static VK_EQUALS: number; + // @ts-ignore + public static VK_A: number; + // @ts-ignore + public static VK_B: number; + // @ts-ignore + public static VK_C: number; + // @ts-ignore + public static VK_D: number; + // @ts-ignore + public static VK_E: number; + // @ts-ignore + public static VK_F: number; + // @ts-ignore + public static VK_G: number; + // @ts-ignore + public static VK_H: number; + // @ts-ignore + public static VK_I: number; + // @ts-ignore + public static VK_J: number; + // @ts-ignore + public static VK_K: number; + // @ts-ignore + public static VK_L: number; + // @ts-ignore + public static VK_M: number; + // @ts-ignore + public static VK_N: number; + // @ts-ignore + public static VK_O: number; + // @ts-ignore + public static VK_P: number; + // @ts-ignore + public static VK_Q: number; + // @ts-ignore + public static VK_R: number; + // @ts-ignore + public static VK_S: number; + // @ts-ignore + public static VK_T: number; + // @ts-ignore + public static VK_U: number; + // @ts-ignore + public static VK_V: number; + // @ts-ignore + public static VK_W: number; + // @ts-ignore + public static VK_X: number; + // @ts-ignore + public static VK_Y: number; + // @ts-ignore + public static VK_Z: number; + // @ts-ignore + public static VK_OPEN_BRACKET: number; + // @ts-ignore + public static VK_BACK_SLASH: number; + // @ts-ignore + public static VK_CLOSE_BRACKET: number; + // @ts-ignore + public static VK_NUMPAD0: number; + // @ts-ignore + public static VK_NUMPAD1: number; + // @ts-ignore + public static VK_NUMPAD2: number; + // @ts-ignore + public static VK_NUMPAD3: number; + // @ts-ignore + public static VK_NUMPAD4: number; + // @ts-ignore + public static VK_NUMPAD5: number; + // @ts-ignore + public static VK_NUMPAD6: number; + // @ts-ignore + public static VK_NUMPAD7: number; + // @ts-ignore + public static VK_NUMPAD8: number; + // @ts-ignore + public static VK_NUMPAD9: number; + // @ts-ignore + public static VK_MULTIPLY: number; + // @ts-ignore + public static VK_ADD: number; + // @ts-ignore + public static VK_SEPARATER: number; + // @ts-ignore + public static VK_SEPARATOR: number; + // @ts-ignore + public static VK_SUBTRACT: number; + // @ts-ignore + public static VK_DECIMAL: number; + // @ts-ignore + public static VK_DIVIDE: number; + // @ts-ignore + public static VK_DELETE: number; + // @ts-ignore + public static VK_NUM_LOCK: number; + // @ts-ignore + public static VK_SCROLL_LOCK: number; + // @ts-ignore + public static VK_F1: number; + // @ts-ignore + public static VK_F2: number; + // @ts-ignore + public static VK_F3: number; + // @ts-ignore + public static VK_F4: number; + // @ts-ignore + public static VK_F5: number; + // @ts-ignore + public static VK_F6: number; + // @ts-ignore + public static VK_F7: number; + // @ts-ignore + public static VK_F8: number; + // @ts-ignore + public static VK_F9: number; + // @ts-ignore + public static VK_F10: number; + // @ts-ignore + public static VK_F11: number; + // @ts-ignore + public static VK_F12: number; + // @ts-ignore + public static VK_F13: number; + // @ts-ignore + public static VK_F14: number; + // @ts-ignore + public static VK_F15: number; + // @ts-ignore + public static VK_F16: number; + // @ts-ignore + public static VK_F17: number; + // @ts-ignore + public static VK_F18: number; + // @ts-ignore + public static VK_F19: number; + // @ts-ignore + public static VK_F20: number; + // @ts-ignore + public static VK_F21: number; + // @ts-ignore + public static VK_F22: number; + // @ts-ignore + public static VK_F23: number; + // @ts-ignore + public static VK_F24: number; + // @ts-ignore + public static VK_PRINTSCREEN: number; + // @ts-ignore + public static VK_INSERT: number; + // @ts-ignore + public static VK_HELP: number; + // @ts-ignore + public static VK_META: number; + // @ts-ignore + public static VK_BACK_QUOTE: number; + // @ts-ignore + public static VK_QUOTE: number; + // @ts-ignore + public static VK_KP_UP: number; + // @ts-ignore + public static VK_KP_DOWN: number; + // @ts-ignore + public static VK_KP_LEFT: number; + // @ts-ignore + public static VK_KP_RIGHT: number; + // @ts-ignore + public static VK_DEAD_GRAVE: number; + // @ts-ignore + public static VK_DEAD_ACUTE: number; + // @ts-ignore + public static VK_DEAD_CIRCUMFLEX: number; + // @ts-ignore + public static VK_DEAD_TILDE: number; + // @ts-ignore + public static VK_DEAD_MACRON: number; + // @ts-ignore + public static VK_DEAD_BREVE: number; + // @ts-ignore + public static VK_DEAD_ABOVEDOT: number; + // @ts-ignore + public static VK_DEAD_DIAERESIS: number; + // @ts-ignore + public static VK_DEAD_ABOVERING: number; + // @ts-ignore + public static VK_DEAD_DOUBLEACUTE: number; + // @ts-ignore + public static VK_DEAD_CARON: number; + // @ts-ignore + public static VK_DEAD_CEDILLA: number; + // @ts-ignore + public static VK_DEAD_OGONEK: number; + // @ts-ignore + public static VK_DEAD_IOTA: number; + // @ts-ignore + public static VK_DEAD_VOICED_SOUND: number; + // @ts-ignore + public static VK_DEAD_SEMIVOICED_SOUND: number; + // @ts-ignore + public static VK_AMPERSAND: number; + // @ts-ignore + public static VK_ASTERISK: number; + // @ts-ignore + public static VK_QUOTEDBL: number; + // @ts-ignore + public static VK_LESS: number; + // @ts-ignore + public static VK_GREATER: number; + // @ts-ignore + public static VK_BRACELEFT: number; + // @ts-ignore + public static VK_BRACERIGHT: number; + // @ts-ignore + public static VK_AT: number; + // @ts-ignore + public static VK_COLON: number; + // @ts-ignore + public static VK_CIRCUMFLEX: number; + // @ts-ignore + public static VK_DOLLAR: number; + // @ts-ignore + public static VK_EURO_SIGN: number; + // @ts-ignore + public static VK_EXCLAMATION_MARK: number; + // @ts-ignore + public static VK_INVERTED_EXCLAMATION_MARK: number; + // @ts-ignore + public static VK_LEFT_PARENTHESIS: number; + // @ts-ignore + public static VK_NUMBER_SIGN: number; + // @ts-ignore + public static VK_PLUS: number; + // @ts-ignore + public static VK_RIGHT_PARENTHESIS: number; + // @ts-ignore + public static VK_UNDERSCORE: number; + // @ts-ignore + public static VK_WINDOWS: number; + // @ts-ignore + public static VK_CONTEXT_MENU: number; + // @ts-ignore + public static VK_FINAL: number; + // @ts-ignore + public static VK_CONVERT: number; + // @ts-ignore + public static VK_NONCONVERT: number; + // @ts-ignore + public static VK_ACCEPT: number; + // @ts-ignore + public static VK_MODECHANGE: number; + // @ts-ignore + public static VK_KANA: number; + // @ts-ignore + public static VK_KANJI: number; + // @ts-ignore + public static VK_ALPHANUMERIC: number; + // @ts-ignore + public static VK_KATAKANA: number; + // @ts-ignore + public static VK_HIRAGANA: number; + // @ts-ignore + public static VK_FULL_WIDTH: number; + // @ts-ignore + public static VK_HALF_WIDTH: number; + // @ts-ignore + public static VK_ROMAN_CHARACTERS: number; + // @ts-ignore + public static VK_ALL_CANDIDATES: number; + // @ts-ignore + public static VK_PREVIOUS_CANDIDATE: number; + // @ts-ignore + public static VK_CODE_INPUT: number; + // @ts-ignore + public static VK_JAPANESE_KATAKANA: number; + // @ts-ignore + public static VK_JAPANESE_HIRAGANA: number; + // @ts-ignore + public static VK_JAPANESE_ROMAN: number; + // @ts-ignore + public static VK_KANA_LOCK: number; + // @ts-ignore + public static VK_INPUT_METHOD_ON_OFF: number; + // @ts-ignore + public static VK_CUT: number; + // @ts-ignore + public static VK_COPY: number; + // @ts-ignore + public static VK_PASTE: number; + // @ts-ignore + public static VK_UNDO: number; + // @ts-ignore + public static VK_AGAIN: number; + // @ts-ignore + public static VK_FIND: number; + // @ts-ignore + public static VK_PROPS: number; + // @ts-ignore + public static VK_STOP: number; + // @ts-ignore + public static VK_COMPOSE: number; + // @ts-ignore + public static VK_ALT_GRAPH: number; + // @ts-ignore + public static VK_BEGIN: number; + // @ts-ignore + public static VK_UNDEFINED: number; + // @ts-ignore + public static CHAR_UNDEFINED: string; + // @ts-ignore + public static KEY_LOCATION_UNKNOWN: number; + // @ts-ignore + public static KEY_LOCATION_STANDARD: number; + // @ts-ignore + public static KEY_LOCATION_LEFT: number; + // @ts-ignore + public static KEY_LOCATION_RIGHT: number; + // @ts-ignore + public static KEY_LOCATION_NUMPAD: number; + /** + * Returns the integer keyCode associated with the key in this event. + */ + // @ts-ignore + public getKeyCode(): number; + /** + * Set the keyCode value to indicate a physical key. + */ + // @ts-ignore + public setKeyCode(keyCode: number): void; + /** + * Returns the character associated with the key in this event. + * For example, the KEY_TYPED event for shift + "a" + * returns the value for "A". + *

+ * KEY_PRESSED and KEY_RELEASED events + * are not intended for reporting of character input. Therefore, + * the values returned by this method are guaranteed to be + * meaningful only for KEY_TYPED events. + */ + // @ts-ignore + public getKeyChar(): string; + /** + * Set the keyChar value to indicate a logical character. + */ + // @ts-ignore + public setKeyChar(keyChar: string): void; + /** + * Set the modifiers to indicate additional keys that were held down + * (e.g. shift, ctrl, alt, meta) defined as part of InputEvent. + *

+ * NOTE: use of this method is not recommended, because many AWT + * implementations do not recognize modifier changes. This is + * especially true for KEY_TYPED events where the shift + * modifier is changed. + */ + // @ts-ignore + public setModifiers(modifiers: number): void; + /** + * Returns the location of the key that originated this key event. + * Some keys occur more than once on a keyboard, e.g. the left and + * right shift keys. Additionally, some keys occur on the numeric + * keypad. This provides a way of distinguishing such keys. + */ + // @ts-ignore + public getKeyLocation(): number; + /** + * Returns a String describing the keyCode, such as "HOME", "F1" or "A". + * These strings can be localized by changing the awt.properties file. + */ + // @ts-ignore + public static getKeyText(keyCode: number): string; + /** + * Returns a String describing the modifier key(s), + * such as "Shift", or "Ctrl+Shift". These strings can be + * localized by changing the awt.properties file. + *

+ * Note that InputEvent.ALT_MASK and + * InputEvent.BUTTON2_MASK have the same value, + * so the string "Alt" is returned for both modifiers. Likewise, + * InputEvent.META_MASK and + * InputEvent.BUTTON3_MASK have the same value, + * so the string "Meta" is returned for both modifiers. + */ + // @ts-ignore + public static getKeyModifiersText(modifiers: number): string; + /** + * Returns whether the key in this event is an "action" key. + * Typically an action key does not fire a unicode character and is + * not a modifier key. + */ + // @ts-ignore + public isActionKey(): boolean; + /** + * Returns a parameter string identifying this event. + * This method is useful for event logging and for debugging. + */ + // @ts-ignore + public paramString(): string; + /** + * Returns an extended key code for the event. + * The extended key code is a unique id assigned to a key on the keyboard + * just like {@code keyCode}. However, unlike {@code keyCode}, this value depends on the + * current keyboard layout. For instance, pressing the left topmost letter key + * in a common English layout produces the same value as {@code keyCode}, {@code VK_Q}. + * Pressing the same key in a regular Russian layout gives another code, unique for the + * letter "Cyrillic I short". + */ + // @ts-ignore + public getExtendedKeyCode(): number; + /** + * Returns an extended key code for a unicode character. + */ + // @ts-ignore + public static getExtendedKeyCodeForChar(c: number): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.KeyListener.d.ts b/packages/types/dist/typings/jdk/java.awt.event.KeyListener.d.ts new file mode 100644 index 00000000..9d750c1a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.KeyListener.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + interface KeyListener { + /** + * Invoked when a key has been typed. + * See the class description for {@link KeyEvent} for a definition of + * a key typed event. + */ + // @ts-ignore + keyTyped(e: java.awt.event.KeyEvent): void; + /** + * Invoked when a key has been pressed. + * See the class description for {@link KeyEvent} for a definition of + * a key pressed event. + */ + // @ts-ignore + keyPressed(e: java.awt.event.KeyEvent): void; + /** + * Invoked when a key has been released. + * See the class description for {@link KeyEvent} for a definition of + * a key released event. + */ + // @ts-ignore + keyReleased(e: java.awt.event.KeyEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.MouseAdapter.d.ts b/packages/types/dist/typings/jdk/java.awt.event.MouseAdapter.d.ts new file mode 100644 index 00000000..f4e9ed28 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.MouseAdapter.d.ts @@ -0,0 +1,52 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + abstract class MouseAdapter extends java.lang.Object { + // @ts-ignore + constructor() + /** + * {@inheritDoc} + */ + // @ts-ignore + public mouseClicked(e: java.awt.event.MouseEvent): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public mousePressed(e: java.awt.event.MouseEvent): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public mouseReleased(e: java.awt.event.MouseEvent): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public mouseEntered(e: java.awt.event.MouseEvent): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public mouseExited(e: java.awt.event.MouseEvent): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public mouseWheelMoved(e: java.awt.event.MouseWheelEvent): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public mouseDragged(e: java.awt.event.MouseEvent): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public mouseMoved(e: java.awt.event.MouseEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.MouseEvent.d.ts b/packages/types/dist/typings/jdk/java.awt.event.MouseEvent.d.ts new file mode 100644 index 00000000..b0003da5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.MouseEvent.d.ts @@ -0,0 +1,242 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + class MouseEvent extends java.awt.event.InputEvent { + /** + * Constructs a MouseEvent object with the + * specified source component, + * type, time, modifiers, coordinates, click count, popupTrigger flag, + * and button number. + *

+ * Creating an invalid event (such + * as by using more than one of the old _MASKs, or modifier/button + * values which don't match) results in unspecified behavior. + * An invocation of the form + * MouseEvent(source, id, when, modifiers, x, y, clickCount, popupTrigger, button) + * behaves in exactly the same way as the invocation + * {@link #MouseEvent(Component, int, long, int, int, int, + * int, int, int, boolean, int) MouseEvent}(source, id, when, modifiers, + * x, y, xAbs, yAbs, clickCount, popupTrigger, button) + * where xAbs and yAbs defines as source's location on screen plus + * relative coordinates x and y. + * xAbs and yAbs are set to zero if the source is not showing. + * This method throws an + * IllegalArgumentException if source + * is null. + */ + // @ts-ignore + constructor(source: java.awt.Component, id: number, when: number, modifiers: number, x: number, y: number, clickCount: number, popupTrigger: boolean, button: number) + /** + * Constructs a MouseEvent object with the + * specified source component, + * type, modifiers, coordinates, click count, and popupTrigger flag. + * An invocation of the form + * MouseEvent(source, id, when, modifiers, x, y, clickCount, popupTrigger) + * behaves in exactly the same way as the invocation + * {@link #MouseEvent(Component, int, long, int, int, int, + * int, int, int, boolean, int) MouseEvent}(source, id, when, modifiers, + * x, y, xAbs, yAbs, clickCount, popupTrigger, MouseEvent.NOBUTTON) + * where xAbs and yAbs defines as source's location on screen plus + * relative coordinates x and y. + * xAbs and yAbs are set to zero if the source is not showing. + * This method throws an IllegalArgumentException + * if source is null. + */ + // @ts-ignore + constructor(source: java.awt.Component, id: number, when: number, modifiers: number, x: number, y: number, clickCount: number, popupTrigger: boolean) + /** + * Constructs a MouseEvent object with the + * specified source component, + * type, time, modifiers, coordinates, absolute coordinates, click count, popupTrigger flag, + * and button number. + *

+ * Creating an invalid event (such + * as by using more than one of the old _MASKs, or modifier/button + * values which don't match) results in unspecified behavior. + * Even if inconsistent values for relative and absolute coordinates are + * passed to the constructor, the mouse event instance is still + * created and no exception is thrown. + * This method throws an + * IllegalArgumentException if source + * is null. + */ + // @ts-ignore + constructor(source: java.awt.Component, id: number, when: number, modifiers: number, x: number, y: number, xAbs: number, yAbs: number, clickCount: number, popupTrigger: boolean, button: number) + // @ts-ignore + public static MOUSE_FIRST: number; + // @ts-ignore + public static MOUSE_LAST: number; + // @ts-ignore + public static MOUSE_CLICKED: number; + // @ts-ignore + public static MOUSE_PRESSED: number; + // @ts-ignore + public static MOUSE_RELEASED: number; + // @ts-ignore + public static MOUSE_MOVED: number; + // @ts-ignore + public static MOUSE_ENTERED: number; + // @ts-ignore + public static MOUSE_EXITED: number; + // @ts-ignore + public static MOUSE_DRAGGED: number; + // @ts-ignore + public static MOUSE_WHEEL: number; + // @ts-ignore + public static NOBUTTON: number; + // @ts-ignore + public static BUTTON1: number; + // @ts-ignore + public static BUTTON2: number; + // @ts-ignore + public static BUTTON3: number; + /** + * Returns the absolute x, y position of the event. + * In a virtual device multi-screen environment in which the + * desktop area could span multiple physical screen devices, + * these coordinates are relative to the virtual coordinate system. + * Otherwise, these coordinates are relative to the coordinate system + * associated with the Component's GraphicsConfiguration. + */ + // @ts-ignore + public getLocationOnScreen(): java.awt.Point; + /** + * Returns the absolute horizontal x position of the event. + * In a virtual device multi-screen environment in which the + * desktop area could span multiple physical screen devices, + * this coordinate is relative to the virtual coordinate system. + * Otherwise, this coordinate is relative to the coordinate system + * associated with the Component's GraphicsConfiguration. + */ + // @ts-ignore + public getXOnScreen(): number; + /** + * Returns the absolute vertical y position of the event. + * In a virtual device multi-screen environment in which the + * desktop area could span multiple physical screen devices, + * this coordinate is relative to the virtual coordinate system. + * Otherwise, this coordinate is relative to the coordinate system + * associated with the Component's GraphicsConfiguration. + */ + // @ts-ignore + public getYOnScreen(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getModifiersEx(): number; + /** + * Returns the horizontal x position of the event relative to the + * source component. + */ + // @ts-ignore + public getX(): number; + /** + * Returns the vertical y position of the event relative to the + * source component. + */ + // @ts-ignore + public getY(): number; + /** + * Returns the x,y position of the event relative to the source component. + */ + // @ts-ignore + public getPoint(): java.awt.Point; + /** + * Translates the event's coordinates to a new position + * by adding specified x (horizontal) and y + * (vertical) offsets. + */ + // @ts-ignore + public translatePoint(x: number, y: number): void; + /** + * Returns the number of mouse clicks associated with this event. + */ + // @ts-ignore + public getClickCount(): number; + /** + * Returns which, if any, of the mouse buttons has changed state. + * The returned value is ranged + * from 0 to the {@link java.awt.MouseInfo#getNumberOfButtons() MouseInfo.getNumberOfButtons()} + * value. + * The returned value includes at least the following constants: + *

    + *
  • {@code NOBUTTON} + *
  • {@code BUTTON1} + *
  • {@code BUTTON2} + *
  • {@code BUTTON3} + *
+ * It is allowed to use those constants to compare with the returned button number in the application. + * For example, + *
+                 * if (anEvent.getButton() == MouseEvent.BUTTON1) {
+                 * 
+ * In particular, for a mouse with one, two, or three buttons this method may return the following values: + *
    + *
  • 0 ({@code NOBUTTON}) + *
  • 1 ({@code BUTTON1}) + *
  • 2 ({@code BUTTON2}) + *
  • 3 ({@code BUTTON3}) + *
+ * Button numbers greater then {@code BUTTON3} have no constant identifier. So if a mouse with five buttons is + * installed, this method may return the following values: + *
    + *
  • 0 ({@code NOBUTTON}) + *
  • 1 ({@code BUTTON1}) + *
  • 2 ({@code BUTTON2}) + *
  • 3 ({@code BUTTON3}) + *
  • 4 + *
  • 5 + *
+ *

+ * Note: If support for extended mouse buttons is {@link Toolkit#areExtraMouseButtonsEnabled() disabled} by Java + * then the AWT event subsystem does not produce mouse events for the extended mouse + * buttons. So it is not expected that this method returns anything except {@code NOBUTTON}, {@code BUTTON1}, + * {@code BUTTON2}, {@code BUTTON3}. + */ + // @ts-ignore + public getButton(): number; + /** + * Returns whether or not this mouse event is the popup menu + * trigger event for the platform. + *

Note: Popup menus are triggered differently + * on different systems. Therefore, isPopupTrigger + * should be checked in both mousePressed + * and mouseReleased + * for proper cross-platform functionality. + */ + // @ts-ignore + public isPopupTrigger(): boolean; + /** + * Returns a String instance describing the modifier keys and + * mouse buttons that were down during the event, such as "Shift", + * or "Ctrl+Shift". These strings can be localized by changing + * the awt.properties file. + *

+ * Note that the InputEvent.ALT_MASK and + * InputEvent.BUTTON2_MASK have equal values, + * so the "Alt" string is returned for both modifiers. Likewise, + * the InputEvent.META_MASK and + * InputEvent.BUTTON3_MASK have equal values, + * so the "Meta" string is returned for both modifiers. + *

+ * Note that passing negative parameter is incorrect, + * and will cause the returning an unspecified string. + * Zero parameter means that no modifiers were passed and will + * cause the returning an empty string. + *

+ */ + // @ts-ignore + public static getMouseModifiersText(modifiers: number): string; + /** + * Returns a parameter string identifying this event. + * This method is useful for event-logging and for debugging. + */ + // @ts-ignore + public paramString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.MouseListener.d.ts b/packages/types/dist/typings/jdk/java.awt.event.MouseListener.d.ts new file mode 100644 index 00000000..fac4560d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.MouseListener.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + interface MouseListener { + /** + * Invoked when the mouse button has been clicked (pressed + * and released) on a component. + */ + // @ts-ignore + mouseClicked(e: java.awt.event.MouseEvent): void; + /** + * Invoked when a mouse button has been pressed on a component. + */ + // @ts-ignore + mousePressed(e: java.awt.event.MouseEvent): void; + /** + * Invoked when a mouse button has been released on a component. + */ + // @ts-ignore + mouseReleased(e: java.awt.event.MouseEvent): void; + /** + * Invoked when the mouse enters a component. + */ + // @ts-ignore + mouseEntered(e: java.awt.event.MouseEvent): void; + /** + * Invoked when the mouse exits a component. + */ + // @ts-ignore + mouseExited(e: java.awt.event.MouseEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.MouseMotionAdapter.d.ts b/packages/types/dist/typings/jdk/java.awt.event.MouseMotionAdapter.d.ts new file mode 100644 index 00000000..4f49eb2a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.MouseMotionAdapter.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + abstract class MouseMotionAdapter extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Invoked when a mouse button is pressed on a component and then + * dragged. Mouse drag events will continue to be delivered to + * the component where the first originated until the mouse button is + * released (regardless of whether the mouse position is within the + * bounds of the component). + */ + // @ts-ignore + public mouseDragged(e: java.awt.event.MouseEvent): void; + /** + * Invoked when the mouse button has been moved on a component + * (with no buttons no down). + */ + // @ts-ignore + public mouseMoved(e: java.awt.event.MouseEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.MouseMotionListener.d.ts b/packages/types/dist/typings/jdk/java.awt.event.MouseMotionListener.d.ts new file mode 100644 index 00000000..c58ebcb1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.MouseMotionListener.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + interface MouseMotionListener { + /** + * Invoked when a mouse button is pressed on a component and then + * dragged. MOUSE_DRAGGED events will continue to be + * delivered to the component where the drag originated until the + * mouse button is released (regardless of whether the mouse position + * is within the bounds of the component). + *

+ * Due to platform-dependent Drag&Drop implementations, + * MOUSE_DRAGGED events may not be delivered during a native + * Drag&Drop operation. + */ + // @ts-ignore + mouseDragged(e: java.awt.event.MouseEvent): void; + /** + * Invoked when the mouse cursor has been moved onto a component + * but no buttons have been pushed. + */ + // @ts-ignore + mouseMoved(e: java.awt.event.MouseEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.MouseWheelEvent.d.ts b/packages/types/dist/typings/jdk/java.awt.event.MouseWheelEvent.d.ts new file mode 100644 index 00000000..149fe902 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.MouseWheelEvent.d.ts @@ -0,0 +1,127 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + class MouseWheelEvent extends java.awt.event.MouseEvent { + /** + * Constructs a MouseWheelEvent object with the + * specified source component, type, modifiers, coordinates, + * scroll type, scroll amount, and wheel rotation. + *

Absolute coordinates xAbs and yAbs are set to source's location on screen plus + * relative coordinates x and y. xAbs and yAbs are set to zero if the source is not showing. + *

Note that passing in an invalid id results in + * unspecified behavior. This method throws an + * IllegalArgumentException if source + * is null. + */ + // @ts-ignore + constructor(source: java.awt.Component, id: number, when: number, modifiers: number, x: number, y: number, clickCount: number, popupTrigger: boolean, scrollType: number, scrollAmount: number, wheelRotation: number) + /** + * Constructs a MouseWheelEvent object with the + * specified source component, type, modifiers, coordinates, + * absolute coordinates, scroll type, scroll amount, and wheel rotation. + *

Note that passing in an invalid id results in + * unspecified behavior. This method throws an + * IllegalArgumentException if source + * is null.

+ * Even if inconsistent values for relative and absolute coordinates are + * passed to the constructor, the MouseWheelEvent instance is still + * created and no exception is thrown. + */ + // @ts-ignore + constructor(source: java.awt.Component, id: number, when: number, modifiers: number, x: number, y: number, xAbs: number, yAbs: number, clickCount: number, popupTrigger: boolean, scrollType: number, scrollAmount: number, wheelRotation: number) + /** + * Constructs a MouseWheelEvent object with the specified + * source component, type, modifiers, coordinates, absolute coordinates, + * scroll type, scroll amount, and wheel rotation. + *

Note that passing in an invalid id parameter results + * in unspecified behavior. This method throws an + * IllegalArgumentException if source equals + * null. + *

Even if inconsistent values for relative and absolute coordinates + * are passed to the constructor, a MouseWheelEvent instance + * is still created and no exception is thrown. + */ + // @ts-ignore + constructor(source: java.awt.Component, id: number, when: number, modifiers: number, x: number, y: number, xAbs: number, yAbs: number, clickCount: number, popupTrigger: boolean, scrollType: number, scrollAmount: number, wheelRotation: number, preciseWheelRotation: number) + // @ts-ignore + public static WHEEL_UNIT_SCROLL: number; + // @ts-ignore + public static WHEEL_BLOCK_SCROLL: number; + /** + * Returns the type of scrolling that should take place in response to this + * event. This is determined by the native platform. Legal values are: + *

    + *
  • MouseWheelEvent.WHEEL_UNIT_SCROLL + *
  • MouseWheelEvent.WHEEL_BLOCK_SCROLL + *
+ */ + // @ts-ignore + public getScrollType(): number; + /** + * Returns the number of units that should be scrolled per + * click of mouse wheel rotation. + * Only valid if getScrollType returns + * MouseWheelEvent.WHEEL_UNIT_SCROLL + */ + // @ts-ignore + public getScrollAmount(): number; + /** + * Returns the number of "clicks" the mouse wheel was rotated, as an integer. + * A partial rotation may occur if the mouse supports a high-resolution wheel. + * In this case, the method returns zero until a full "click" has been accumulated. + */ + // @ts-ignore + public getWheelRotation(): number; + /** + * Returns the number of "clicks" the mouse wheel was rotated, as a double. + * A partial rotation may occur if the mouse supports a high-resolution wheel. + * In this case, the return value will include a fractional "click". + */ + // @ts-ignore + public getPreciseWheelRotation(): number; + /** + * This is a convenience method to aid in the implementation of + * the common-case MouseWheelListener - to scroll a ScrollPane or + * JScrollPane by an amount which conforms to the platform settings. + * (Note, however, that ScrollPane and + * JScrollPane already have this functionality built in.) + *

+ * This method returns the number of units to scroll when scroll type is + * MouseWheelEvent.WHEEL_UNIT_SCROLL, and should only be called if + * getScrollType returns MouseWheelEvent.WHEEL_UNIT_SCROLL. + *

+ * Direction of scroll, amount of wheel movement, + * and platform settings for wheel scrolling are all accounted for. + * This method does not and cannot take into account value of the + * Adjustable/Scrollable unit increment, as this will vary among + * scrolling components. + *

+ * A simplified example of how this method might be used in a + * listener: + *

+                 * mouseWheelMoved(MouseWheelEvent event) {
+                 * ScrollPane sp = getScrollPaneFromSomewhere();
+                 * Adjustable adj = sp.getVAdjustable()
+                 * if (MouseWheelEvent.getScrollType() == WHEEL_UNIT_SCROLL) {
+                 * int totalScrollAmount =
+                 * event.getUnitsToScroll() *
+                 * adj.getUnitIncrement();
+                 * adj.setValue(adj.getValue() + totalScrollAmount);
+                 * }
+                 * }
+                 * 
+ */ + // @ts-ignore + public getUnitsToScroll(): number; + /** + * Returns a parameter string identifying this event. + * This method is useful for event-logging and for debugging. + */ + // @ts-ignore + public paramString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.MouseWheelListener.d.ts b/packages/types/dist/typings/jdk/java.awt.event.MouseWheelListener.d.ts new file mode 100644 index 00000000..90268b9f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.MouseWheelListener.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + interface MouseWheelListener { + /** + * Invoked when the mouse wheel is rotated. + */ + // @ts-ignore + mouseWheelMoved(e: java.awt.event.MouseWheelEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.PaintEvent.d.ts b/packages/types/dist/typings/jdk/java.awt.event.PaintEvent.d.ts new file mode 100644 index 00000000..b41df753 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.PaintEvent.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + class PaintEvent extends java.awt.event.ComponentEvent { + /** + * Constructs a PaintEvent object with the specified + * source component and type. + *

This method throws an + * IllegalArgumentException if source + * is null. + */ + // @ts-ignore + constructor(source: java.awt.Component, id: number, updateRect: java.awt.Rectangle) + // @ts-ignore + public static PAINT_FIRST: number; + // @ts-ignore + public static PAINT_LAST: number; + // @ts-ignore + public static PAINT: number; + // @ts-ignore + public static UPDATE: number; + /** + * Returns the rectangle representing the area which needs to be + * repainted in response to this event. + */ + // @ts-ignore + public getUpdateRect(): java.awt.Rectangle; + /** + * Sets the rectangle representing the area which needs to be + * repainted in response to this event. + */ + // @ts-ignore + public setUpdateRect(updateRect: java.awt.Rectangle): void; + // @ts-ignore + public paramString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.TextEvent.d.ts b/packages/types/dist/typings/jdk/java.awt.event.TextEvent.d.ts new file mode 100644 index 00000000..d44aa08a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.TextEvent.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + class TextEvent extends java.awt.AWTEvent { + /** + * Constructs a TextEvent object. + *

This method throws an + * IllegalArgumentException if source + * is null. + */ + // @ts-ignore + constructor(source: java.lang.Object, id: number) + // @ts-ignore + public static TEXT_FIRST: number; + // @ts-ignore + public static TEXT_LAST: number; + // @ts-ignore + public static TEXT_VALUE_CHANGED: number; + /** + * Returns a parameter string identifying this text event. + * This method is useful for event-logging and for debugging. + */ + // @ts-ignore + public paramString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.TextListener.d.ts b/packages/types/dist/typings/jdk/java.awt.event.TextListener.d.ts new file mode 100644 index 00000000..3bfec6e8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.TextListener.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + interface TextListener { + /** + * Invoked when the value of the text has changed. + * The code written for this method performs the operations + * that need to occur when text changes. + */ + // @ts-ignore + textValueChanged(e: java.awt.event.TextEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.WindowAdapter.d.ts b/packages/types/dist/typings/jdk/java.awt.event.WindowAdapter.d.ts new file mode 100644 index 00000000..a75eb668 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.WindowAdapter.d.ts @@ -0,0 +1,67 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + abstract class WindowAdapter extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Invoked when a window has been opened. + */ + // @ts-ignore + public windowOpened(e: java.awt.event.WindowEvent): void; + /** + * Invoked when a window is in the process of being closed. + * The close operation can be overridden at this point. + */ + // @ts-ignore + public windowClosing(e: java.awt.event.WindowEvent): void; + /** + * Invoked when a window has been closed. + */ + // @ts-ignore + public windowClosed(e: java.awt.event.WindowEvent): void; + /** + * Invoked when a window is iconified. + */ + // @ts-ignore + public windowIconified(e: java.awt.event.WindowEvent): void; + /** + * Invoked when a window is de-iconified. + */ + // @ts-ignore + public windowDeiconified(e: java.awt.event.WindowEvent): void; + /** + * Invoked when a window is activated. + */ + // @ts-ignore + public windowActivated(e: java.awt.event.WindowEvent): void; + /** + * Invoked when a window is de-activated. + */ + // @ts-ignore + public windowDeactivated(e: java.awt.event.WindowEvent): void; + /** + * Invoked when a window state is changed. + */ + // @ts-ignore + public windowStateChanged(e: java.awt.event.WindowEvent): void; + /** + * Invoked when the Window is set to be the focused Window, which means + * that the Window, or one of its subcomponents, will receive keyboard + * events. + */ + // @ts-ignore + public windowGainedFocus(e: java.awt.event.WindowEvent): void; + /** + * Invoked when the Window is no longer the focused Window, which means + * that keyboard events will no longer be delivered to the Window or any of + * its subcomponents. + */ + // @ts-ignore + public windowLostFocus(e: java.awt.event.WindowEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.WindowEvent.d.ts b/packages/types/dist/typings/jdk/java.awt.event.WindowEvent.d.ts new file mode 100644 index 00000000..11548d04 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.WindowEvent.d.ts @@ -0,0 +1,135 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + class WindowEvent extends java.awt.event.ComponentEvent { + /** + * Constructs a WindowEvent object. + *

This method throws an + * IllegalArgumentException if source + * is null. + */ + // @ts-ignore + constructor(source: java.awt.Window, id: number, opposite: java.awt.Window, oldState: number, newState: number) + /** + * Constructs a WindowEvent object with the + * specified opposite Window. The opposite + * Window is the other Window + * involved in this focus or activation change. + * For a WINDOW_ACTIVATED or + * WINDOW_GAINED_FOCUS event, this is the + * Window that lost activation or focus. + * For a WINDOW_DEACTIVATED or + * WINDOW_LOST_FOCUS event, this is the + * Window that gained activation or focus. + * If this focus change occurs with a native application, with a + * Java application in a different VM, or with no other + * Window, then the opposite Window is null. + *

This method throws an + * IllegalArgumentException if source + * is null. + */ + // @ts-ignore + constructor(source: java.awt.Window, id: number, opposite: java.awt.Window) + /** + * Constructs a WindowEvent object with the specified + * previous and new window states. + *

This method throws an + * IllegalArgumentException if source + * is null. + */ + // @ts-ignore + constructor(source: java.awt.Window, id: number, oldState: number, newState: number) + /** + * Constructs a WindowEvent object. + *

This method throws an + * IllegalArgumentException if source + * is null. + */ + // @ts-ignore + constructor(source: java.awt.Window, id: number) + // @ts-ignore + public static WINDOW_FIRST: number; + // @ts-ignore + public static WINDOW_OPENED: number; + // @ts-ignore + public static WINDOW_CLOSING: number; + // @ts-ignore + public static WINDOW_CLOSED: number; + // @ts-ignore + public static WINDOW_ICONIFIED: number; + // @ts-ignore + public static WINDOW_DEICONIFIED: number; + // @ts-ignore + public static WINDOW_ACTIVATED: number; + // @ts-ignore + public static WINDOW_DEACTIVATED: number; + // @ts-ignore + public static WINDOW_GAINED_FOCUS: number; + // @ts-ignore + public static WINDOW_LOST_FOCUS: number; + // @ts-ignore + public static WINDOW_STATE_CHANGED: number; + // @ts-ignore + public static WINDOW_LAST: number; + /** + * Returns the originator of the event. + */ + // @ts-ignore + public getWindow(): java.awt.Window; + /** + * Returns the other Window involved in this focus or activation change. + * For a WINDOW_ACTIVATED or WINDOW_GAINED_FOCUS event, this is the Window + * that lost activation or focus. For a WINDOW_DEACTIVATED or + * WINDOW_LOST_FOCUS event, this is the Window that gained activation or + * focus. For any other type of WindowEvent, or if the focus or activation + * change occurs with a native application, with a Java application in a + * different VM or context, or with no other Window, null is returned. + */ + // @ts-ignore + public getOppositeWindow(): java.awt.Window; + /** + * For WINDOW_STATE_CHANGED events returns the + * previous state of the window. The state is + * represented as a bitwise mask. + *

    + *
  • NORMAL + *
    Indicates that no state bits are set. + *
  • ICONIFIED + *
  • MAXIMIZED_HORIZ + *
  • MAXIMIZED_VERT + *
  • MAXIMIZED_BOTH + *
    Concatenates MAXIMIZED_HORIZ + * and MAXIMIZED_VERT. + *
+ */ + // @ts-ignore + public getOldState(): number; + /** + * For WINDOW_STATE_CHANGED events returns the + * new state of the window. The state is + * represented as a bitwise mask. + *
    + *
  • NORMAL + *
    Indicates that no state bits are set. + *
  • ICONIFIED + *
  • MAXIMIZED_HORIZ + *
  • MAXIMIZED_VERT + *
  • MAXIMIZED_BOTH + *
    Concatenates MAXIMIZED_HORIZ + * and MAXIMIZED_VERT. + *
+ */ + // @ts-ignore + public getNewState(): number; + /** + * Returns a parameter string identifying this event. + * This method is useful for event-logging and for debugging. + */ + // @ts-ignore + public paramString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.WindowFocusListener.d.ts b/packages/types/dist/typings/jdk/java.awt.event.WindowFocusListener.d.ts new file mode 100644 index 00000000..a304df15 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.WindowFocusListener.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + interface WindowFocusListener { + /** + * Invoked when the Window is set to be the focused Window, which means + * that the Window, or one of its subcomponents, will receive keyboard + * events. + */ + // @ts-ignore + windowGainedFocus(e: java.awt.event.WindowEvent): void; + /** + * Invoked when the Window is no longer the focused Window, which means + * that keyboard events will no longer be delivered to the Window or any of + * its subcomponents. + */ + // @ts-ignore + windowLostFocus(e: java.awt.event.WindowEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.WindowListener.d.ts b/packages/types/dist/typings/jdk/java.awt.event.WindowListener.d.ts new file mode 100644 index 00000000..683c541e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.WindowListener.d.ts @@ -0,0 +1,61 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + interface WindowListener { + /** + * Invoked the first time a window is made visible. + */ + // @ts-ignore + windowOpened(e: java.awt.event.WindowEvent): void; + /** + * Invoked when the user attempts to close the window + * from the window's system menu. + */ + // @ts-ignore + windowClosing(e: java.awt.event.WindowEvent): void; + /** + * Invoked when a window has been closed as the result + * of calling dispose on the window. + */ + // @ts-ignore + windowClosed(e: java.awt.event.WindowEvent): void; + /** + * Invoked when a window is changed from a normal to a + * minimized state. For many platforms, a minimized window + * is displayed as the icon specified in the window's + * iconImage property. + */ + // @ts-ignore + windowIconified(e: java.awt.event.WindowEvent): void; + /** + * Invoked when a window is changed from a minimized + * to a normal state. + */ + // @ts-ignore + windowDeiconified(e: java.awt.event.WindowEvent): void; + /** + * Invoked when the Window is set to be the active Window. Only a Frame or + * a Dialog can be the active Window. The native windowing system may + * denote the active Window or its children with special decorations, such + * as a highlighted title bar. The active Window is always either the + * focused Window, or the first Frame or Dialog that is an owner of the + * focused Window. + */ + // @ts-ignore + windowActivated(e: java.awt.event.WindowEvent): void; + /** + * Invoked when a Window is no longer the active Window. Only a Frame or a + * Dialog can be the active Window. The native windowing system may denote + * the active Window or its children with special decorations, such as a + * highlighted title bar. The active Window is always either the focused + * Window, or the first Frame or Dialog that is an owner of the focused + * Window. + */ + // @ts-ignore + windowDeactivated(e: java.awt.event.WindowEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.event.WindowStateListener.d.ts b/packages/types/dist/typings/jdk/java.awt.event.WindowStateListener.d.ts new file mode 100644 index 00000000..f9a76590 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.event.WindowStateListener.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace event { + // @ts-ignore + interface WindowStateListener { + /** + * Invoked when window state is changed. + */ + // @ts-ignore + windowStateChanged(e: java.awt.event.WindowEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.font.FontRenderContext.d.ts b/packages/types/dist/typings/jdk/java.awt.font.FontRenderContext.d.ts new file mode 100644 index 00000000..c10120fd --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.font.FontRenderContext.d.ts @@ -0,0 +1,107 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace font { + // @ts-ignore + class FontRenderContext extends java.lang.Object { + /** + * Constructs a new FontRenderContext + * object. + */ + // @ts-ignore + constructor() + /** + * Constructs a FontRenderContext object from an + * optional {@link AffineTransform} and two boolean + * values that determine if the newly constructed object has + * anti-aliasing or fractional metrics. + * In each case the boolean values true and false + * correspond to the rendering hint values ON and + * OFF respectively. + *

+ * To specify other hint values, use the constructor which + * specifies the rendering hint values as parameters : + * {@link #FontRenderContext(AffineTransform, Object, Object)}. + */ + // @ts-ignore + constructor(tx: java.awt.geom.AffineTransform, isAntiAliased: boolean, usesFractionalMetrics: boolean) + /** + * Constructs a FontRenderContext object from an + * optional {@link AffineTransform} and two Object + * values that determine if the newly constructed object has + * anti-aliasing or fractional metrics. + */ + // @ts-ignore + constructor(tx: java.awt.geom.AffineTransform, aaHint: java.lang.Object, fmHint: java.lang.Object) + /** + * Indicates whether or not this FontRenderContext object + * measures text in a transformed render context. + */ + // @ts-ignore + public isTransformed(): boolean; + /** + * Returns the integer type of the affine transform for this + * FontRenderContext as specified by + * {@link java.awt.geom.AffineTransform#getType()} + */ + // @ts-ignore + public getTransformType(): number; + /** + * Gets the transform that is used to scale typographical points + * to pixels in this FontRenderContext. + */ + // @ts-ignore + public getTransform(): java.awt.geom.AffineTransform; + /** + * Returns a boolean which indicates whether or not some form of + * antialiasing is specified by this FontRenderContext. + * Call {@link #getAntiAliasingHint() getAntiAliasingHint()} + * for the specific rendering hint value. + */ + // @ts-ignore + public isAntiAliased(): boolean; + /** + * Returns a boolean which whether text fractional metrics mode + * is used in this FontRenderContext. + * Call {@link #getFractionalMetricsHint() getFractionalMetricsHint()} + * to obtain the corresponding rendering hint value. + */ + // @ts-ignore + public usesFractionalMetrics(): boolean; + /** + * Return the text anti-aliasing rendering mode hint used in this + * FontRenderContext. + * This will be one of the text antialiasing rendering hint values + * defined in {@link java.awt.RenderingHints java.awt.RenderingHints}. + */ + // @ts-ignore + public getAntiAliasingHint(): java.lang.Object; + /** + * Return the text fractional metrics rendering mode hint used in this + * FontRenderContext. + * This will be one of the text fractional metrics rendering hint values + * defined in {@link java.awt.RenderingHints java.awt.RenderingHints}. + */ + // @ts-ignore + public getFractionalMetricsHint(): java.lang.Object; + /** + * Return true if obj is an instance of FontRenderContext and has the same + * transform, antialiasing, and fractional metrics values as this. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Return true if rhs has the same transform, antialiasing, + * and fractional metrics values as this. + */ + // @ts-ignore + public equals(rhs: java.awt.font.FontRenderContext): boolean; + /** + * Return a hashcode for this FontRenderContext. + */ + // @ts-ignore + public hashCode(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.font.GlyphJustificationInfo.d.ts b/packages/types/dist/typings/jdk/java.awt.font.GlyphJustificationInfo.d.ts new file mode 100644 index 00000000..4f3c5ed1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.font.GlyphJustificationInfo.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace font { + // @ts-ignore + class GlyphJustificationInfo extends java.lang.Object { + /** + * Constructs information about the justification properties of a + * glyph. + */ + // @ts-ignore + constructor(weight: number, growAbsorb: boolean, growPriority: number, growLeftLimit: number, growRightLimit: number, shrinkAbsorb: boolean, shrinkPriority: number, shrinkLeftLimit: number, shrinkRightLimit: number) + // @ts-ignore + public static PRIORITY_KASHIDA: number; + // @ts-ignore + public static PRIORITY_WHITESPACE: number; + // @ts-ignore + public static PRIORITY_INTERCHAR: number; + // @ts-ignore + public static PRIORITY_NONE: number; + // @ts-ignore + public weight: number; + // @ts-ignore + public growPriority: number; + // @ts-ignore + public growAbsorb: boolean; + // @ts-ignore + public growLeftLimit: number; + // @ts-ignore + public growRightLimit: number; + // @ts-ignore + public shrinkPriority: number; + // @ts-ignore + public shrinkAbsorb: boolean; + // @ts-ignore + public shrinkLeftLimit: number; + // @ts-ignore + public shrinkRightLimit: number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.font.GlyphMetrics.d.ts b/packages/types/dist/typings/jdk/java.awt.font.GlyphMetrics.d.ts new file mode 100644 index 00000000..77d3ed92 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.font.GlyphMetrics.d.ts @@ -0,0 +1,101 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace font { + // @ts-ignore + class GlyphMetrics extends java.lang.Object { + /** + * Constructs a GlyphMetrics object. + */ + // @ts-ignore + constructor(advance: number, bounds: java.awt.geom.Rectangle2D, glyphType: number) + /** + * Constructs a GlyphMetrics object. + */ + // @ts-ignore + constructor(horizontal: boolean, advanceX: number, advanceY: number, bounds: java.awt.geom.Rectangle2D, glyphType: number) + // @ts-ignore + public static STANDARD: number; + // @ts-ignore + public static LIGATURE: number; + // @ts-ignore + public static COMBINING: number; + // @ts-ignore + public static COMPONENT: number; + // @ts-ignore + public static WHITESPACE: number; + /** + * Returns the advance of the glyph along the baseline (either + * horizontal or vertical). + */ + // @ts-ignore + public getAdvance(): number; + /** + * Returns the x-component of the advance of the glyph. + */ + // @ts-ignore + public getAdvanceX(): number; + /** + * Returns the y-component of the advance of the glyph. + */ + // @ts-ignore + public getAdvanceY(): number; + /** + * Returns the bounds of the glyph. This is the bounding box of the glyph outline. + * Because of rasterization and pixel alignment effects, it does not necessarily + * enclose the pixels that are affected when rendering the glyph. + */ + // @ts-ignore + public getBounds2D(): java.awt.geom.Rectangle2D; + /** + * Returns the left (top) side bearing of the glyph. + *

+ * This is the distance from 0, 0 to the left (top) of the glyph + * bounds. If the bounds of the glyph is to the left of (above) the + * origin, the LSB is negative. + */ + // @ts-ignore + public getLSB(): number; + /** + * Returns the right (bottom) side bearing of the glyph. + *

+ * This is the distance from the right (bottom) of the glyph bounds to + * the advance. If the bounds of the glyph is to the right of (below) + * the advance, the RSB is negative. + */ + // @ts-ignore + public getRSB(): number; + /** + * Returns the raw glyph type code. + */ + // @ts-ignore + public getType(): number; + /** + * Returns true if this is a standard glyph. + */ + // @ts-ignore + public isStandard(): boolean; + /** + * Returns true if this is a ligature glyph. + */ + // @ts-ignore + public isLigature(): boolean; + /** + * Returns true if this is a combining glyph. + */ + // @ts-ignore + public isCombining(): boolean; + /** + * Returns true if this is a component glyph. + */ + // @ts-ignore + public isComponent(): boolean; + /** + * Returns true if this is a whitespace glyph. + */ + // @ts-ignore + public isWhitespace(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.font.GlyphVector.d.ts b/packages/types/dist/typings/jdk/java.awt.font.GlyphVector.d.ts new file mode 100644 index 00000000..8c6fc3cf --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.font.GlyphVector.d.ts @@ -0,0 +1,260 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace font { + // @ts-ignore + abstract class GlyphVector extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static FLAG_HAS_TRANSFORMS: number; + // @ts-ignore + public static FLAG_HAS_POSITION_ADJUSTMENTS: number; + // @ts-ignore + public static FLAG_RUN_RTL: number; + // @ts-ignore + public static FLAG_COMPLEX_GLYPHS: number; + // @ts-ignore + public static FLAG_MASK: number; + /** + * Returns the Font associated with this + * GlyphVector. + */ + // @ts-ignore + public abstract getFont(): java.awt.Font; + /** + * Returns the {@link FontRenderContext} associated with this + * GlyphVector. + */ + // @ts-ignore + public abstract getFontRenderContext(): java.awt.font.FontRenderContext; + /** + * Assigns default positions to each glyph in this + * GlyphVector. This can destroy information + * generated during initial layout of this GlyphVector. + */ + // @ts-ignore + public abstract performDefaultLayout(): void; + /** + * Returns the number of glyphs in this GlyphVector. + */ + // @ts-ignore + public abstract getNumGlyphs(): number; + /** + * Returns the glyphcode of the specified glyph. + * This return value is meaningless to anything other + * than the Font object that created this + * GlyphVector. + */ + // @ts-ignore + public abstract getGlyphCode(glyphIndex: number): number; + /** + * Returns an array of glyphcodes for the specified glyphs. + * The contents of this return value are meaningless to anything other + * than the Font used to create this + * GlyphVector. This method is used + * for convenience and performance when processing glyphcodes. + * If no array is passed in, a new array is created. + */ + // @ts-ignore + public abstract getGlyphCodes(beginGlyphIndex: number, numEntries: number, codeReturn: number): number[]; + /** + * Returns the character index of the specified glyph. + * The character index is the index of the first logical + * character represented by the glyph. The default + * implementation assumes a one-to-one, left-to-right mapping + * of glyphs to characters. + */ + // @ts-ignore + public getGlyphCharIndex(glyphIndex: number): number; + /** + * Returns the character indices of the specified glyphs. + * The character index is the index of the first logical + * character represented by the glyph. Indices are returned + * in glyph order. The default implementation invokes + * getGlyphCharIndex for each glyph, and subclassers will probably + * want to override this implementation for performance reasons. + * Use this method for convenience and performance + * in processing of glyphcodes. If no array is passed in, + * a new array is created. + */ + // @ts-ignore + public getGlyphCharIndices(beginGlyphIndex: number, numEntries: number, codeReturn: number): number[]; + /** + * Returns the logical bounds of this GlyphVector. + * This method is used when positioning this GlyphVector + * in relation to visually adjacent GlyphVector objects. + */ + // @ts-ignore + public abstract getLogicalBounds(): java.awt.geom.Rectangle2D; + /** + * Returns the visual bounds of this GlyphVector + * The visual bounds is the bounding box of the outline of this + * GlyphVector. Because of rasterization and + * alignment of pixels, it is possible that this box does not + * enclose all pixels affected by rendering this GlyphVector. + */ + // @ts-ignore + public abstract getVisualBounds(): java.awt.geom.Rectangle2D; + /** + * Returns the pixel bounds of this GlyphVector when + * rendered in a graphics with the given + * FontRenderContext at the given location. The + * renderFRC need not be the same as the + * FontRenderContext of this + * GlyphVector, and can be null. If it is null, the + * FontRenderContext of this GlyphVector + * is used. The default implementation returns the visual bounds, + * offset to x, y and rounded out to the next integer value (i.e. returns an + * integer rectangle which encloses the visual bounds) and + * ignores the FRC. Subclassers should override this method. + */ + // @ts-ignore + public getPixelBounds(renderFRC: java.awt.font.FontRenderContext, x: number, y: number): java.awt.Rectangle; + /** + * Returns a Shape whose interior corresponds to the + * visual representation of this GlyphVector. + */ + // @ts-ignore + public abstract getOutline(): java.awt.Shape; + /** + * Returns a Shape whose interior corresponds to the + * visual representation of the specified glyph + * within this GlyphVector. + * The outline returned by this method is positioned around the + * origin of each individual glyph. + */ + // @ts-ignore + public abstract getGlyphOutline(glyphIndex: number): java.awt.Shape; + /** + * Returns a Shape whose interior corresponds to the + * visual representation of the specified glyph + * within this GlyphVector, offset to x, y. + * The outline returned by this method is positioned around the + * origin of each individual glyph. + */ + // @ts-ignore + public getGlyphOutline(glyphIndex: number, x: number, y: number): java.awt.Shape; + /** + * Returns the position of the specified glyph relative to the + * origin of this GlyphVector. + * If glyphIndex equals the number of of glyphs in + * this GlyphVector, this method returns the position after + * the last glyph. This position is used to define the advance of + * the entire GlyphVector. + */ + // @ts-ignore + public abstract getGlyphPosition(glyphIndex: number): java.awt.geom.Point2D; + /** + * Sets the position of the specified glyph within this + * GlyphVector. + * If glyphIndex equals the number of of glyphs in + * this GlyphVector, this method sets the position after + * the last glyph. This position is used to define the advance of + * the entire GlyphVector. + */ + // @ts-ignore + public abstract setGlyphPosition(glyphIndex: number, newPos: java.awt.geom.Point2D): void; + /** + * Returns the transform of the specified glyph within this + * GlyphVector. The transform is relative to the + * glyph position. If no special transform has been applied, + * null can be returned. A null return indicates + * an identity transform. + */ + // @ts-ignore + public abstract getGlyphTransform(glyphIndex: number): java.awt.geom.AffineTransform; + /** + * Sets the transform of the specified glyph within this + * GlyphVector. The transform is relative to the glyph + * position. A null argument for newTX + * indicates that no special transform is applied for the specified + * glyph. + * This method can be used to rotate, mirror, translate and scale the + * glyph. Adding a transform can result in significant performance changes. + */ + // @ts-ignore + public abstract setGlyphTransform(glyphIndex: number, newTX: java.awt.geom.AffineTransform): void; + /** + * Returns flags describing the global state of the GlyphVector. + * Flags not described below are reserved. The default + * implementation returns 0 (meaning false) for the position adjustments, + * transforms, rtl, and complex flags. + * Subclassers should override this method, and make sure + * it correctly describes the GlyphVector and corresponds + * to the results of related calls. + */ + // @ts-ignore + public getLayoutFlags(): number; + /** + * Returns an array of glyph positions for the specified glyphs. + * This method is used for convenience and performance when + * processing glyph positions. + * If no array is passed in, a new array is created. + * Even numbered array entries beginning with position zero are the X + * coordinates of the glyph numbered beginGlyphIndex + position/2. + * Odd numbered array entries beginning with position one are the Y + * coordinates of the glyph numbered beginGlyphIndex + (position-1)/2. + * If beginGlyphIndex equals the number of of glyphs in + * this GlyphVector, this method gets the position after + * the last glyph and this position is used to define the advance of + * the entire GlyphVector. + */ + // @ts-ignore + public abstract getGlyphPositions(beginGlyphIndex: number, numEntries: number, positionReturn: number): number[]; + /** + * Returns the logical bounds of the specified glyph within this + * GlyphVector. + * These logical bounds have a total of four edges, with two edges + * parallel to the baseline under the glyph's transform and the other two + * edges are shared with adjacent glyphs if they are present. This + * method is useful for hit-testing of the specified glyph, + * positioning of a caret at the leading or trailing edge of a glyph, + * and for drawing a highlight region around the specified glyph. + */ + // @ts-ignore + public abstract getGlyphLogicalBounds(glyphIndex: number): java.awt.Shape; + /** + * Returns the visual bounds of the specified glyph within the + * GlyphVector. + * The bounds returned by this method is positioned around the + * origin of each individual glyph. + */ + // @ts-ignore + public abstract getGlyphVisualBounds(glyphIndex: number): java.awt.Shape; + /** + * Returns the pixel bounds of the glyph at index when this + * GlyphVector is rendered in a Graphics with the + * given FontRenderContext at the given location. The + * renderFRC need not be the same as the + * FontRenderContext of this + * GlyphVector, and can be null. If it is null, the + * FontRenderContext of this GlyphVector + * is used. The default implementation returns the visual bounds of the glyph, + * offset to x, y and rounded out to the next integer value, and + * ignores the FRC. Subclassers should override this method. + */ + // @ts-ignore + public getGlyphPixelBounds(index: number, renderFRC: java.awt.font.FontRenderContext, x: number, y: number): java.awt.Rectangle; + /** + * Returns the metrics of the glyph at the specified index into + * this GlyphVector. + */ + // @ts-ignore + public abstract getGlyphMetrics(glyphIndex: number): java.awt.font.GlyphMetrics; + /** + * Returns the justification information for the glyph at + * the specified index into this GlyphVector. + */ + // @ts-ignore + public abstract getGlyphJustificationInfo(glyphIndex: number): java.awt.font.GlyphJustificationInfo; + /** + * Tests if the specified GlyphVector exactly + * equals this GlyphVector. + */ + // @ts-ignore + public abstract equals(set: java.awt.font.GlyphVector): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.font.GraphicAttribute.d.ts b/packages/types/dist/typings/jdk/java.awt.font.GraphicAttribute.d.ts new file mode 100644 index 00000000..00c7ab37 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.font.GraphicAttribute.d.ts @@ -0,0 +1,91 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace font { + // @ts-ignore + abstract class GraphicAttribute extends java.lang.Object { + /** + * Constructs a GraphicAttribute. + * Subclasses use this to define the alignment of the graphic. + */ + // @ts-ignore + constructor(alignment: number) + // @ts-ignore + public static TOP_ALIGNMENT: number; + // @ts-ignore + public static BOTTOM_ALIGNMENT: number; + // @ts-ignore + public static ROMAN_BASELINE: number; + // @ts-ignore + public static CENTER_BASELINE: number; + // @ts-ignore + public static HANGING_BASELINE: number; + /** + * Returns the ascent of this GraphicAttribute. A + * graphic can be rendered above its ascent. + */ + // @ts-ignore + public abstract getAscent(): number; + /** + * Returns the descent of this GraphicAttribute. A + * graphic can be rendered below its descent. + */ + // @ts-ignore + public abstract getDescent(): number; + /** + * Returns the advance of this GraphicAttribute. The + * GraphicAttribute object's advance is the distance + * from the point at which the graphic is rendered and the point where + * the next character or graphic is rendered. A graphic can be + * rendered beyond its advance + */ + // @ts-ignore + public abstract getAdvance(): number; + /** + * Returns a {@link Rectangle2D} that encloses all of the + * bits drawn by this GraphicAttribute relative to the + * rendering position. + * A graphic may be rendered beyond its origin, ascent, descent, + * or advance; but if it is, this method's implementation must + * indicate where the graphic is rendered. + * Default bounds is the rectangle (0, -ascent, advance, ascent+descent). + */ + // @ts-ignore + public getBounds(): java.awt.geom.Rectangle2D; + /** + * Return a {@link java.awt.Shape} that represents the region that + * this GraphicAttribute renders. This is used when a + * {@link TextLayout} is requested to return the outline of the text. + * The (untransformed) shape must not extend outside the rectangular + * bounds returned by getBounds. + * The default implementation returns the rectangle returned by + * {@link #getBounds}, transformed by the provided {@link AffineTransform} + * if present. + */ + // @ts-ignore + public getOutline(tx: java.awt.geom.AffineTransform): java.awt.Shape; + /** + * Renders this GraphicAttribute at the specified + * location. + */ + // @ts-ignore + public abstract draw(graphics: java.awt.Graphics2D, x: number, y: number): void; + /** + * Returns the alignment of this GraphicAttribute. + * Alignment can be to a particular baseline, or to the absolute top + * or bottom of a line. + */ + // @ts-ignore + public getAlignment(): number; + /** + * Returns the justification information for this + * GraphicAttribute. Subclasses + * can override this method to provide different justification + * information. + */ + // @ts-ignore + public getJustificationInfo(): java.awt.font.GlyphJustificationInfo; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.font.ImageGraphicAttribute.d.ts b/packages/types/dist/typings/jdk/java.awt.font.ImageGraphicAttribute.d.ts new file mode 100644 index 00000000..b33d6ff3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.font.ImageGraphicAttribute.d.ts @@ -0,0 +1,77 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace font { + // @ts-ignore + class ImageGraphicAttribute extends java.awt.font.GraphicAttribute { + /** + * Constucts an ImageGraphicAttribute from the specified + * {@link Image}. The origin is at (0, 0). + */ + // @ts-ignore + constructor(image: java.awt.Image, alignment: number) + /** + * Constructs an ImageGraphicAttribute from the specified + * Image. The point + * (originXoriginY) in the + * Image appears at the origin of the + * ImageGraphicAttribute within the text. + */ + // @ts-ignore + constructor(image: java.awt.Image, alignment: number, originX: number, originY: number) + /** + * Returns the ascent of this ImageGraphicAttribute. The + * ascent of an ImageGraphicAttribute is the distance + * from the top of the image to the origin. + */ + // @ts-ignore + public getAscent(): number; + /** + * Returns the descent of this ImageGraphicAttribute. + * The descent of an ImageGraphicAttribute is the + * distance from the origin to the bottom of the image. + */ + // @ts-ignore + public getDescent(): number; + /** + * Returns the advance of this ImageGraphicAttribute. + * The advance of an ImageGraphicAttribute is the + * distance from the origin to the right edge of the image. + */ + // @ts-ignore + public getAdvance(): number; + /** + * Returns a {@link Rectangle2D} that encloses all of the + * bits rendered by this ImageGraphicAttribute, relative + * to the rendering position. A graphic can be rendered beyond its + * origin, ascent, descent, or advance; but if it is, this + * method's implementation must indicate where the graphic is rendered. + */ + // @ts-ignore + public getBounds(): java.awt.geom.Rectangle2D; + /** + * {@inheritDoc} + */ + // @ts-ignore + public draw(graphics: java.awt.Graphics2D, x: number, y: number): void; + /** + * Returns a hashcode for this ImageGraphicAttribute. + */ + // @ts-ignore + public hashCode(): number; + /** + * Compares this ImageGraphicAttribute to the specified + * {@link Object}. + */ + // @ts-ignore + public equals(rhs: java.lang.Object): boolean; + /** + * Compares this ImageGraphicAttribute to the specified + * ImageGraphicAttribute. + */ + // @ts-ignore + public equals(rhs: java.awt.font.ImageGraphicAttribute): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.font.LayoutPath.d.ts b/packages/types/dist/typings/jdk/java.awt.font.LayoutPath.d.ts new file mode 100644 index 00000000..0fb0165e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.font.LayoutPath.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace font { + // @ts-ignore + abstract class LayoutPath extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Convert a point in user space to a location relative to the + * path. The location is chosen so as to minimize the distance + * from the point to the path (e.g., the magnitude of the offset + * will be smallest). If there is more than one such location, + * the location with the smallest advance is chosen. + */ + // @ts-ignore + public abstract pointToPath(point: java.awt.geom.Point2D, location: java.awt.geom.Point2D): boolean; + /** + * Convert a location relative to the path to a point in user + * coordinates. The path might bend abruptly or be disjoint at + * the location's advance. If this is the case, the value of + * 'preceding' is used to disambiguate the portion of the path + * whose location and slope is to be used to interpret the offset. + */ + // @ts-ignore + public abstract pathToPoint(location: java.awt.geom.Point2D, preceding: boolean, point: java.awt.geom.Point2D): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.font.LineBreakMeasurer.d.ts b/packages/types/dist/typings/jdk/java.awt.font.LineBreakMeasurer.d.ts new file mode 100644 index 00000000..ae5cd79c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.font.LineBreakMeasurer.d.ts @@ -0,0 +1,66 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace font { + // @ts-ignore + class LineBreakMeasurer extends java.lang.Object { + /** + * Constructs a LineBreakMeasurer for the specified text. + */ + // @ts-ignore + constructor(text: java.text.AttributedCharacterIterator, frc: java.awt.font.FontRenderContext) + /** + * Constructs a LineBreakMeasurer for the specified text. + */ + // @ts-ignore + constructor(text: java.text.AttributedCharacterIterator, breakIter: java.text.BreakIterator, frc: java.awt.font.FontRenderContext) + /** + * Returns the position at the end of the next layout. Does NOT + * update the current position of this LineBreakMeasurer. + */ + // @ts-ignore + public nextOffset(wrappingWidth: number): number; + /** + * Returns the position at the end of the next layout. Does NOT + * update the current position of this LineBreakMeasurer. + */ + // @ts-ignore + public nextOffset(wrappingWidth: number, offsetLimit: number, requireNextWord: boolean): number; + /** + * Returns the next layout, and updates the current position. + */ + // @ts-ignore + public nextLayout(wrappingWidth: number): java.awt.font.TextLayout; + /** + * Returns the next layout, and updates the current position. + */ + // @ts-ignore + public nextLayout(wrappingWidth: number, offsetLimit: number, requireNextWord: boolean): java.awt.font.TextLayout; + /** + * Returns the current position of this LineBreakMeasurer. + */ + // @ts-ignore + public getPosition(): number; + /** + * Sets the current position of this LineBreakMeasurer. + */ + // @ts-ignore + public setPosition(newPosition: number): void; + /** + * Updates this LineBreakMeasurer after a single + * character is inserted into the text, and sets the current + * position to the beginning of the paragraph. + */ + // @ts-ignore + public insertChar(newParagraph: java.text.AttributedCharacterIterator, insertPos: number): void; + /** + * Updates this LineBreakMeasurer after a single + * character is deleted from the text, and sets the current + * position to the beginning of the paragraph. + */ + // @ts-ignore + public deleteChar(newParagraph: java.text.AttributedCharacterIterator, deletePos: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.font.LineMetrics.d.ts b/packages/types/dist/typings/jdk/java.awt.font.LineMetrics.d.ts new file mode 100644 index 00000000..caf8a3b9 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.font.LineMetrics.d.ts @@ -0,0 +1,97 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace font { + // @ts-ignore + abstract class LineMetrics extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Returns the number of characters (char values) in the text whose + * metrics are encapsulated by this LineMetrics + * object. + */ + // @ts-ignore + public abstract getNumChars(): number; + /** + * Returns the ascent of the text. The ascent + * is the distance from the baseline + * to the ascender line. The ascent usually represents the + * the height of the capital letters of the text. Some characters + * can extend above the ascender line. + */ + // @ts-ignore + public abstract getAscent(): number; + /** + * Returns the descent of the text. The descent + * is the distance from the baseline + * to the descender line. The descent usually represents + * the distance to the bottom of lower case letters like + * 'p'. Some characters can extend below the descender + * line. + */ + // @ts-ignore + public abstract getDescent(): number; + /** + * Returns the leading of the text. The + * leading is the recommended + * distance from the bottom of the descender line to the + * top of the next line. + */ + // @ts-ignore + public abstract getLeading(): number; + /** + * Returns the height of the text. The + * height is equal to the sum of the ascent, the + * descent and the leading. + */ + // @ts-ignore + public abstract getHeight(): number; + /** + * Returns the baseline index of the text. + * The index is one of + * {@link java.awt.Font#ROMAN_BASELINE ROMAN_BASELINE}, + * {@link java.awt.Font#CENTER_BASELINE CENTER_BASELINE}, + * {@link java.awt.Font#HANGING_BASELINE HANGING_BASELINE}. + */ + // @ts-ignore + public abstract getBaselineIndex(): number; + /** + * Returns the baseline offsets of the text, + * relative to the baseline of the text. The + * offsets are indexed by baseline index. For + * example, if the baseline index is + * CENTER_BASELINE then + * offsets[HANGING_BASELINE] is usually + * negative, offsets[CENTER_BASELINE] + * is zero, and offsets[ROMAN_BASELINE] + * is usually positive. + */ + // @ts-ignore + public abstract getBaselineOffsets(): number[]; + /** + * Returns the position of the strike-through line + * relative to the baseline. + */ + // @ts-ignore + public abstract getStrikethroughOffset(): number; + /** + * Returns the thickness of the strike-through line. + */ + // @ts-ignore + public abstract getStrikethroughThickness(): number; + /** + * Returns the position of the underline relative to + * the baseline. + */ + // @ts-ignore + public abstract getUnderlineOffset(): number; + /** + * Returns the thickness of the underline. + */ + // @ts-ignore + public abstract getUnderlineThickness(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.font.MultipleMaster.d.ts b/packages/types/dist/typings/jdk/java.awt.font.MultipleMaster.d.ts new file mode 100644 index 00000000..73f1486f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.font.MultipleMaster.d.ts @@ -0,0 +1,55 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace font { + // @ts-ignore + interface MultipleMaster { + /** + * Returns the number of multiple master design controls. + * Design axes include things like width, weight and optical scaling. + */ + // @ts-ignore + getNumDesignAxes(): number; + /** + * Returns an array of design limits interleaved in the form [from→to] + * for each axis. For example, + * design limits for weight could be from 0.1 to 1.0. The values are + * returned in the same order returned by + * getDesignAxisNames. + */ + // @ts-ignore + getDesignAxisRanges(): number[]; + /** + * Returns an array of default design values for each axis. For example, + * the default value for weight could be 1.6. The values are returned + * in the same order returned by getDesignAxisNames. + */ + // @ts-ignore + getDesignAxisDefaults(): number[]; + /** + * Returns the name for each design axis. This also determines the order in + * which the values for each axis are returned. + */ + // @ts-ignore + getDesignAxisNames(): java.lang.String[]; + /** + * Creates a new instance of a multiple master font based on the design + * axis values contained in the specified array. The size of the array + * must correspond to the value returned from + * getNumDesignAxes and the values of the array elements + * must fall within limits specified by + * getDesignAxesLimits. In case of an error, + * null is returned. + */ + // @ts-ignore + deriveMMFont(axes: number): java.awt.Font; + /** + * Creates a new instance of a multiple master font based on detailed metric + * information. In case of an error, null is returned. + */ + // @ts-ignore + deriveMMFont(glyphWidths: number, avgStemWidth: number, typicalCapHeight: number, typicalXHeight: number, italicAngle: number): java.awt.Font; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.font.NumericShaper.Range.d.ts b/packages/types/dist/typings/jdk/java.awt.font.NumericShaper.Range.d.ts new file mode 100644 index 00000000..08c3596e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.font.NumericShaper.Range.d.ts @@ -0,0 +1,86 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace font { + namespace NumericShaper { + // @ts-ignore + class Range extends java.lang.Enum { + // @ts-ignore + public static EUROPEAN: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static ARABIC: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static EASTERN_ARABIC: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static DEVANAGARI: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static BENGALI: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static GURMUKHI: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static GUJARATI: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static ORIYA: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static TAMIL: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static TELUGU: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static KANNADA: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static MALAYALAM: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static THAI: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static LAO: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static TIBETAN: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static MYANMAR: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static ETHIOPIC: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static KHMER: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static MONGOLIAN: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static NKO: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static MYANMAR_SHAN: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static LIMBU: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static NEW_TAI_LUE: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static BALINESE: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static SUNDANESE: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static LEPCHA: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static OL_CHIKI: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static VAI: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static SAURASHTRA: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static KAYAH_LI: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static CHAM: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static TAI_THAM_HORA: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static TAI_THAM_THAM: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static JAVANESE: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static MEETEI_MAYEK: java.awt.font.NumericShaper.Range; + // @ts-ignore + public static values(): java.awt.font.NumericShaper.Range[]; + // @ts-ignore + public static valueOf(name: string): java.awt.font.NumericShaper.Range; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.font.NumericShaper.d.ts b/packages/types/dist/typings/jdk/java.awt.font.NumericShaper.d.ts new file mode 100644 index 00000000..9dccf39c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.font.NumericShaper.d.ts @@ -0,0 +1,181 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace font { + // @ts-ignore + class NumericShaper extends java.lang.Object { + // @ts-ignore + public static EUROPEAN: number; + // @ts-ignore + public static ARABIC: number; + // @ts-ignore + public static EASTERN_ARABIC: number; + // @ts-ignore + public static DEVANAGARI: number; + // @ts-ignore + public static BENGALI: number; + // @ts-ignore + public static GURMUKHI: number; + // @ts-ignore + public static GUJARATI: number; + // @ts-ignore + public static ORIYA: number; + // @ts-ignore + public static TAMIL: number; + // @ts-ignore + public static TELUGU: number; + // @ts-ignore + public static KANNADA: number; + // @ts-ignore + public static MALAYALAM: number; + // @ts-ignore + public static THAI: number; + // @ts-ignore + public static LAO: number; + // @ts-ignore + public static TIBETAN: number; + // @ts-ignore + public static MYANMAR: number; + // @ts-ignore + public static ETHIOPIC: number; + // @ts-ignore + public static KHMER: number; + // @ts-ignore + public static MONGOLIAN: number; + // @ts-ignore + public static ALL_RANGES: number; + /** + * Returns a shaper for the provided unicode range. All + * Latin-1 (EUROPEAN) digits are converted + * to the corresponding decimal unicode digits. + */ + // @ts-ignore + public static getShaper(singleRange: number): java.awt.font.NumericShaper; + /** + * Returns a shaper for the provided Unicode + * range. All Latin-1 (EUROPEAN) digits are converted to the + * corresponding decimal digits of the specified Unicode range. + */ + // @ts-ignore + public static getShaper(singleRange: java.awt.font.NumericShaper.Range): java.awt.font.NumericShaper; + /** + * Returns a contextual shaper for the provided unicode range(s). + * Latin-1 (EUROPEAN) digits are converted to the decimal digits + * corresponding to the range of the preceding text, if the + * range is one of the provided ranges. Multiple ranges are + * represented by or-ing the values together, such as, + * NumericShaper.ARABIC | NumericShaper.THAI. The + * shaper assumes EUROPEAN as the starting context, that is, if + * EUROPEAN digits are encountered before any strong directional + * text in the string, the context is presumed to be EUROPEAN, and + * so the digits will not shape. + */ + // @ts-ignore + public static getContextualShaper(ranges: number): java.awt.font.NumericShaper; + /** + * Returns a contextual shaper for the provided Unicode + * range(s). The Latin-1 (EUROPEAN) digits are converted to the + * decimal digits corresponding to the range of the preceding + * text, if the range is one of the provided ranges. + *

The shaper assumes EUROPEAN as the starting context, that + * is, if EUROPEAN digits are encountered before any strong + * directional text in the string, the context is presumed to be + * EUROPEAN, and so the digits will not shape. + */ + // @ts-ignore + public static getContextualShaper(ranges: java.util.Set): java.awt.font.NumericShaper; + /** + * Returns a contextual shaper for the provided unicode range(s). + * Latin-1 (EUROPEAN) digits will be converted to the decimal digits + * corresponding to the range of the preceding text, if the + * range is one of the provided ranges. Multiple ranges are + * represented by or-ing the values together, for example, + * NumericShaper.ARABIC | NumericShaper.THAI. The + * shaper uses defaultContext as the starting context. + */ + // @ts-ignore + public static getContextualShaper(ranges: number, defaultContext: number): java.awt.font.NumericShaper; + /** + * Returns a contextual shaper for the provided Unicode range(s). + * The Latin-1 (EUROPEAN) digits will be converted to the decimal + * digits corresponding to the range of the preceding text, if the + * range is one of the provided ranges. The shaper uses {@code + * defaultContext} as the starting context. + */ + // @ts-ignore + public static getContextualShaper(ranges: java.util.Set, defaultContext: java.awt.font.NumericShaper.Range): java.awt.font.NumericShaper; + /** + * Converts the digits in the text that occur between start and + * start + count. + */ + // @ts-ignore + public shape(text: string, start: number, count: number): void; + /** + * Converts the digits in the text that occur between start and + * start + count, using the provided context. + * Context is ignored if the shaper is not a contextual shaper. + */ + // @ts-ignore + public shape(text: string, start: number, count: number, context: number): void; + /** + * Converts the digits in the text that occur between {@code + * start} and {@code start + count}, using the provided {@code + * context}. {@code Context} is ignored if the shaper is not a + * contextual shaper. + */ + // @ts-ignore + public shape(text: string, start: number, count: number, context: java.awt.font.NumericShaper.Range): void; + /** + * Returns a boolean indicating whether or not + * this shaper shapes contextually. + */ + // @ts-ignore + public isContextual(): boolean; + /** + * Returns an int that ORs together the values for + * all the ranges that will be shaped. + *

+ * For example, to check if a shaper shapes to Arabic, you would use the + * following: + *

+ * {@code if ((shaper.getRanges() & shaper.ARABIC) != 0) { ... } + *
+ *

Note that this method supports only the bit mask-based + * ranges. Call {@link #getRangeSet()} for the enum-based ranges. + */ + // @ts-ignore + public getRanges(): number; + /** + * Returns a {@code Set} representing all the Unicode ranges in + * this {@code NumericShaper} that will be shaped. + */ + // @ts-ignore + public getRangeSet(): java.util.Set; + /** + * Returns a hash code for this shaper. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns {@code true} if the specified object is an instance of + * NumericShaper and shapes identically to this one, + * regardless of the range representations, the bit mask or the + * enum. For example, the following code produces {@code "true"}. + *

+                 * NumericShaper ns1 = NumericShaper.getShaper(NumericShaper.ARABIC);
+                 * NumericShaper ns2 = NumericShaper.getShaper(NumericShaper.Range.ARABIC);
+                 * System.out.println(ns1.equals(ns2));
+                 * 
+ */ + // @ts-ignore + public equals(o: java.lang.Object): boolean; + /** + * Returns a String that describes this shaper. This method + * is used for debugging purposes only. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.font.OpenType.d.ts b/packages/types/dist/typings/jdk/java.awt.font.OpenType.d.ts new file mode 100644 index 00000000..8e979685 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.font.OpenType.d.ts @@ -0,0 +1,164 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace font { + // @ts-ignore + interface OpenType { + // @ts-ignore + TAG_CMAP: number; + // @ts-ignore + TAG_HEAD: number; + // @ts-ignore + TAG_NAME: number; + // @ts-ignore + TAG_GLYF: number; + // @ts-ignore + TAG_MAXP: number; + // @ts-ignore + TAG_PREP: number; + // @ts-ignore + TAG_HMTX: number; + // @ts-ignore + TAG_KERN: number; + // @ts-ignore + TAG_HDMX: number; + // @ts-ignore + TAG_LOCA: number; + // @ts-ignore + TAG_POST: number; + // @ts-ignore + TAG_OS2: number; + // @ts-ignore + TAG_CVT: number; + // @ts-ignore + TAG_GASP: number; + // @ts-ignore + TAG_VDMX: number; + // @ts-ignore + TAG_VMTX: number; + // @ts-ignore + TAG_VHEA: number; + // @ts-ignore + TAG_HHEA: number; + // @ts-ignore + TAG_TYP1: number; + // @ts-ignore + TAG_BSLN: number; + // @ts-ignore + TAG_GSUB: number; + // @ts-ignore + TAG_DSIG: number; + // @ts-ignore + TAG_FPGM: number; + // @ts-ignore + TAG_FVAR: number; + // @ts-ignore + TAG_GVAR: number; + // @ts-ignore + TAG_CFF: number; + // @ts-ignore + TAG_MMSD: number; + // @ts-ignore + TAG_MMFX: number; + // @ts-ignore + TAG_BASE: number; + // @ts-ignore + TAG_GDEF: number; + // @ts-ignore + TAG_GPOS: number; + // @ts-ignore + TAG_JSTF: number; + // @ts-ignore + TAG_EBDT: number; + // @ts-ignore + TAG_EBLC: number; + // @ts-ignore + TAG_EBSC: number; + // @ts-ignore + TAG_LTSH: number; + // @ts-ignore + TAG_PCLT: number; + // @ts-ignore + TAG_ACNT: number; + // @ts-ignore + TAG_AVAR: number; + // @ts-ignore + TAG_BDAT: number; + // @ts-ignore + TAG_BLOC: number; + // @ts-ignore + TAG_CVAR: number; + // @ts-ignore + TAG_FEAT: number; + // @ts-ignore + TAG_FDSC: number; + // @ts-ignore + TAG_FMTX: number; + // @ts-ignore + TAG_JUST: number; + // @ts-ignore + TAG_LCAR: number; + // @ts-ignore + TAG_MORT: number; + // @ts-ignore + TAG_OPBD: number; + // @ts-ignore + TAG_PROP: number; + // @ts-ignore + TAG_TRAK: number; + /** + * Returns the version of the OpenType font. + * 1.0 is represented as 0x00010000. + */ + // @ts-ignore + getVersion(): number; + /** + * Returns the table as an array of bytes for a specified tag. + * Tags for sfnt tables include items like cmap, + * name and head. The byte array + * returned is a copy of the font data in memory. + */ + // @ts-ignore + getFontTable(sfntTag: number): number[]; + /** + * Returns the table as an array of bytes for a specified tag. + * Tags for sfnt tables include items like cmap, + * name and head. The byte array returned is a + * copy of the font data in memory. + */ + // @ts-ignore + getFontTable(strSfntTag: string): number[]; + /** + * Returns a subset of the table as an array of bytes + * for a specified tag. Tags for sfnt tables include + * items like cmap, name and head. + * The byte array returned is a copy of the font data in + * memory. + */ + // @ts-ignore + getFontTable(sfntTag: number, offset: number, count: number): number[]; + /** + * Returns a subset of the table as an array of bytes + * for a specified tag. Tags for sfnt tables include items + * like cmap, name and head. The + * byte array returned is a copy of the font + * data in memory. + */ + // @ts-ignore + getFontTable(strSfntTag: string, offset: number, count: number): number[]; + /** + * Returns the size of the table for a specified tag. Tags for sfnt + * tables include items like cmap, name and head. + */ + // @ts-ignore + getFontTableSize(sfntTag: number): number; + /** + * Returns the size of the table for a specified tag. Tags for sfnt + * tables include items like cmap, name and head. + */ + // @ts-ignore + getFontTableSize(strSfntTag: string): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.font.ShapeGraphicAttribute.d.ts b/packages/types/dist/typings/jdk/java.awt.font.ShapeGraphicAttribute.d.ts new file mode 100644 index 00000000..2efe2041 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.font.ShapeGraphicAttribute.d.ts @@ -0,0 +1,84 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace font { + // @ts-ignore + class ShapeGraphicAttribute extends java.awt.font.GraphicAttribute { + /** + * Constructs a ShapeGraphicAttribute for the specified + * {@link Shape}. + */ + // @ts-ignore + constructor(shape: java.awt.Shape, alignment: number, stroke: boolean) + // @ts-ignore + public static STROKE: boolean; + // @ts-ignore + public static FILL: boolean; + /** + * Returns the ascent of this ShapeGraphicAttribute. The + * ascent of a ShapeGraphicAttribute is the positive + * distance from the origin of its Shape to the top of + * bounds of its Shape. + */ + // @ts-ignore + public getAscent(): number; + /** + * Returns the descent of this ShapeGraphicAttribute. + * The descent of a ShapeGraphicAttribute is the distance + * from the origin of its Shape to the bottom of the + * bounds of its Shape. + */ + // @ts-ignore + public getDescent(): number; + /** + * Returns the advance of this ShapeGraphicAttribute. + * The advance of a ShapeGraphicAttribute is the distance + * from the origin of its Shape to the right side of the + * bounds of its Shape. + */ + // @ts-ignore + public getAdvance(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public draw(graphics: java.awt.Graphics2D, x: number, y: number): void; + /** + * Returns a {@link Rectangle2D} that encloses all of the + * bits drawn by this ShapeGraphicAttribute relative to + * the rendering position. A graphic can be rendered beyond its + * origin, ascent, descent, or advance; but if it does, this method's + * implementation should indicate where the graphic is rendered. + */ + // @ts-ignore + public getBounds(): java.awt.geom.Rectangle2D; + /** + * Return a {@link java.awt.Shape} that represents the region that + * this ShapeGraphicAttribute renders. This is used when a + * {@link TextLayout} is requested to return the outline of the text. + * The (untransformed) shape must not extend outside the rectangular + * bounds returned by getBounds. + */ + // @ts-ignore + public getOutline(tx: java.awt.geom.AffineTransform): java.awt.Shape; + /** + * Returns a hashcode for this ShapeGraphicAttribute. + */ + // @ts-ignore + public hashCode(): number; + /** + * Compares this ShapeGraphicAttribute to the specified + * Object. + */ + // @ts-ignore + public equals(rhs: java.lang.Object): boolean; + /** + * Compares this ShapeGraphicAttribute to the specified + * ShapeGraphicAttribute. + */ + // @ts-ignore + public equals(rhs: java.awt.font.ShapeGraphicAttribute): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.font.TextAttribute.d.ts b/packages/types/dist/typings/jdk/java.awt.font.TextAttribute.d.ts new file mode 100644 index 00000000..090f2a80 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.font.TextAttribute.d.ts @@ -0,0 +1,138 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace font { + // @ts-ignore + class TextAttribute extends java.text.AttributedCharacterIterator.Attribute { + /** + * Constructs a TextAttribute with the specified name. + */ + // @ts-ignore + constructor(name: string) + // @ts-ignore + public static FAMILY: java.awt.font.TextAttribute; + // @ts-ignore + public static WEIGHT: java.awt.font.TextAttribute; + // @ts-ignore + public static WEIGHT_EXTRA_LIGHT: java.lang.Float; + // @ts-ignore + public static WEIGHT_LIGHT: java.lang.Float; + // @ts-ignore + public static WEIGHT_DEMILIGHT: java.lang.Float; + // @ts-ignore + public static WEIGHT_REGULAR: java.lang.Float; + // @ts-ignore + public static WEIGHT_SEMIBOLD: java.lang.Float; + // @ts-ignore + public static WEIGHT_MEDIUM: java.lang.Float; + // @ts-ignore + public static WEIGHT_DEMIBOLD: java.lang.Float; + // @ts-ignore + public static WEIGHT_BOLD: java.lang.Float; + // @ts-ignore + public static WEIGHT_HEAVY: java.lang.Float; + // @ts-ignore + public static WEIGHT_EXTRABOLD: java.lang.Float; + // @ts-ignore + public static WEIGHT_ULTRABOLD: java.lang.Float; + // @ts-ignore + public static WIDTH: java.awt.font.TextAttribute; + // @ts-ignore + public static WIDTH_CONDENSED: java.lang.Float; + // @ts-ignore + public static WIDTH_SEMI_CONDENSED: java.lang.Float; + // @ts-ignore + public static WIDTH_REGULAR: java.lang.Float; + // @ts-ignore + public static WIDTH_SEMI_EXTENDED: java.lang.Float; + // @ts-ignore + public static WIDTH_EXTENDED: java.lang.Float; + // @ts-ignore + public static POSTURE: java.awt.font.TextAttribute; + // @ts-ignore + public static POSTURE_REGULAR: java.lang.Float; + // @ts-ignore + public static POSTURE_OBLIQUE: java.lang.Float; + // @ts-ignore + public static SIZE: java.awt.font.TextAttribute; + // @ts-ignore + public static TRANSFORM: java.awt.font.TextAttribute; + // @ts-ignore + public static SUPERSCRIPT: java.awt.font.TextAttribute; + // @ts-ignore + public static SUPERSCRIPT_SUPER: java.lang.Integer; + // @ts-ignore + public static SUPERSCRIPT_SUB: java.lang.Integer; + // @ts-ignore + public static FONT: java.awt.font.TextAttribute; + // @ts-ignore + public static CHAR_REPLACEMENT: java.awt.font.TextAttribute; + // @ts-ignore + public static FOREGROUND: java.awt.font.TextAttribute; + // @ts-ignore + public static BACKGROUND: java.awt.font.TextAttribute; + // @ts-ignore + public static UNDERLINE: java.awt.font.TextAttribute; + // @ts-ignore + public static UNDERLINE_ON: java.lang.Integer; + // @ts-ignore + public static STRIKETHROUGH: java.awt.font.TextAttribute; + // @ts-ignore + public static STRIKETHROUGH_ON: java.lang.Boolean; + // @ts-ignore + public static RUN_DIRECTION: java.awt.font.TextAttribute; + // @ts-ignore + public static RUN_DIRECTION_LTR: java.lang.Boolean; + // @ts-ignore + public static RUN_DIRECTION_RTL: java.lang.Boolean; + // @ts-ignore + public static BIDI_EMBEDDING: java.awt.font.TextAttribute; + // @ts-ignore + public static JUSTIFICATION: java.awt.font.TextAttribute; + // @ts-ignore + public static JUSTIFICATION_FULL: java.lang.Float; + // @ts-ignore + public static JUSTIFICATION_NONE: java.lang.Float; + // @ts-ignore + public static INPUT_METHOD_HIGHLIGHT: java.awt.font.TextAttribute; + // @ts-ignore + public static INPUT_METHOD_UNDERLINE: java.awt.font.TextAttribute; + // @ts-ignore + public static UNDERLINE_LOW_ONE_PIXEL: java.lang.Integer; + // @ts-ignore + public static UNDERLINE_LOW_TWO_PIXEL: java.lang.Integer; + // @ts-ignore + public static UNDERLINE_LOW_DOTTED: java.lang.Integer; + // @ts-ignore + public static UNDERLINE_LOW_GRAY: java.lang.Integer; + // @ts-ignore + public static UNDERLINE_LOW_DASHED: java.lang.Integer; + // @ts-ignore + public static SWAP_COLORS: java.awt.font.TextAttribute; + // @ts-ignore + public static SWAP_COLORS_ON: java.lang.Boolean; + // @ts-ignore + public static NUMERIC_SHAPING: java.awt.font.TextAttribute; + // @ts-ignore + public static KERNING: java.awt.font.TextAttribute; + // @ts-ignore + public static KERNING_ON: java.lang.Integer; + // @ts-ignore + public static LIGATURES: java.awt.font.TextAttribute; + // @ts-ignore + public static LIGATURES_ON: java.lang.Integer; + // @ts-ignore + public static TRACKING: java.awt.font.TextAttribute; + // @ts-ignore + public static TRACKING_TIGHT: java.lang.Float; + // @ts-ignore + public static TRACKING_LOOSE: java.lang.Float; + /** + * Resolves instances being deserialized to the predefined constants. + */ + // @ts-ignore + protected readResolve(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.font.TextHitInfo.d.ts b/packages/types/dist/typings/jdk/java.awt.font.TextHitInfo.d.ts new file mode 100644 index 00000000..359bce9d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.font.TextHitInfo.d.ts @@ -0,0 +1,91 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace font { + // @ts-ignore + class TextHitInfo extends java.lang.Object { + /** + * Returns the index of the character hit. + */ + // @ts-ignore + public getCharIndex(): number; + /** + * Returns true if the leading edge of the character was + * hit. + */ + // @ts-ignore + public isLeadingEdge(): boolean; + /** + * Returns the insertion index. This is the character index if + * the leading edge of the character was hit, and one greater + * than the character index if the trailing edge was hit. + */ + // @ts-ignore + public getInsertionIndex(): number; + /** + * Returns the hash code. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns true if the specified Object is a + * TextHitInfo and equals this TextHitInfo. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns true if the specified TextHitInfo + * has the same charIndex and isLeadingEdge + * as this TextHitInfo. This is not the same as having + * the same insertion offset. + */ + // @ts-ignore + public equals(hitInfo: java.awt.font.TextHitInfo): boolean; + /** + * Returns a String representing the hit for debugging + * use only. + */ + // @ts-ignore + public toString(): string; + /** + * Creates a TextHitInfo on the leading edge of the + * character at the specified charIndex. + */ + // @ts-ignore + public static leading(charIndex: number): java.awt.font.TextHitInfo; + /** + * Creates a hit on the trailing edge of the character at + * the specified charIndex. + */ + // @ts-ignore + public static trailing(charIndex: number): java.awt.font.TextHitInfo; + /** + * Creates a TextHitInfo at the specified offset, + * associated with the character before the offset. + */ + // @ts-ignore + public static beforeOffset(offset: number): java.awt.font.TextHitInfo; + /** + * Creates a TextHitInfo at the specified offset, + * associated with the character after the offset. + */ + // @ts-ignore + public static afterOffset(offset: number): java.awt.font.TextHitInfo; + /** + * Creates a TextHitInfo on the other side of the + * insertion point. This TextHitInfo remains unchanged. + */ + // @ts-ignore + public getOtherHit(): java.awt.font.TextHitInfo; + /** + * Creates a TextHitInfo whose character index is offset + * by delta from the charIndex of this + * TextHitInfo. This TextHitInfo remains + * unchanged. + */ + // @ts-ignore + public getOffsetHit(delta: number): java.awt.font.TextHitInfo; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.font.TextLayout.CaretPolicy.d.ts b/packages/types/dist/typings/jdk/java.awt.font.TextLayout.CaretPolicy.d.ts new file mode 100644 index 00000000..995db1b4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.font.TextLayout.CaretPolicy.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace font { + namespace TextLayout { + // @ts-ignore + class CaretPolicy extends java.lang.Object { + /** + * Constructs a CaretPolicy. + */ + // @ts-ignore + constructor() + /** + * Chooses one of the specified TextHitInfo instances as + * a strong caret in the specified TextLayout. + */ + // @ts-ignore + public getStrongCaret(hit1: java.awt.font.TextHitInfo, hit2: java.awt.font.TextHitInfo, layout: java.awt.font.TextLayout): java.awt.font.TextHitInfo; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.font.TextLayout.d.ts b/packages/types/dist/typings/jdk/java.awt.font.TextLayout.d.ts new file mode 100644 index 00000000..9c6eb3a4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.font.TextLayout.d.ts @@ -0,0 +1,488 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace font { + // @ts-ignore + class TextLayout extends java.lang.Object { + /** + * Constructs a TextLayout from a String + * and a {@link Font}. All the text is styled using the specified + * Font. + *

+ * The String must specify a single paragraph of text, + * because an entire paragraph is required for the bidirectional + * algorithm. + */ + // @ts-ignore + constructor(string: string, font: java.awt.Font, frc: java.awt.font.FontRenderContext) + /** + * Constructs a TextLayout from a String + * and an attribute set. + *

+ * All the text is styled using the provided attributes. + *

+ * string must specify a single paragraph of text because an + * entire paragraph is required for the bidirectional algorithm. + */ + // @ts-ignore + constructor(string: string, attributes: java.util.Map, frc: java.awt.font.FontRenderContext) + /** + * Constructs a TextLayout from an iterator over styled text. + *

+ * The iterator must specify a single paragraph of text because an + * entire paragraph is required for the bidirectional + * algorithm. + */ + // @ts-ignore + constructor(text: java.text.AttributedCharacterIterator, frc: java.awt.font.FontRenderContext) + // @ts-ignore + public static DEFAULT_CARET_POLICY: java.awt.font.TextLayout.CaretPolicy; + /** + * Creates a copy of this TextLayout. + */ + // @ts-ignore + protected clone(): java.lang.Object; + /** + * Creates a copy of this TextLayout justified to the + * specified width. + *

+ * If this TextLayout has already been justified, an + * exception is thrown. If this TextLayout object's + * justification ratio is zero, a TextLayout identical + * to this TextLayout is returned. + */ + // @ts-ignore + public getJustifiedLayout(justificationWidth: number): java.awt.font.TextLayout; + /** + * Justify this layout. Overridden by subclassers to control justification + * (if there were subclassers, that is...) + * The layout will only justify if the paragraph attributes (from the + * source text, possibly defaulted by the layout attributes) indicate a + * non-zero justification ratio. The text will be justified to the + * indicated width. The current implementation also adjusts hanging + * punctuation and trailing whitespace to overhang the justification width. + * Once justified, the layout may not be rejustified. + *

+ * Some code may rely on immutablity of layouts. Subclassers should not + * call this directly, but instead should call getJustifiedLayout, which + * will call this method on a clone of this layout, preserving + * the original. + */ + // @ts-ignore + protected handleJustify(justificationWidth: number): void; + /** + * Returns the baseline for this TextLayout. + * The baseline is one of the values defined in Font, + * which are roman, centered and hanging. Ascent and descent are + * relative to this baseline. The baselineOffsets + * are also relative to this baseline. + */ + // @ts-ignore + public getBaseline(): number; + /** + * Returns the offsets array for the baselines used for this + * TextLayout. + *

+ * The array is indexed by one of the values defined in + * Font, which are roman, centered and hanging. The + * values are relative to this TextLayout object's + * baseline, so that getBaselineOffsets[getBaseline()] == 0. + * Offsets are added to the position of the TextLayout + * object's baseline to get the position for the new baseline. + */ + // @ts-ignore + public getBaselineOffsets(): number[]; + /** + * Returns the advance of this TextLayout. + * The advance is the distance from the origin to the advance of the + * rightmost (bottommost) character. This is in baseline-relative + * coordinates. + */ + // @ts-ignore + public getAdvance(): number; + /** + * Returns the advance of this TextLayout, minus trailing + * whitespace. This is in baseline-relative coordinates. + */ + // @ts-ignore + public getVisibleAdvance(): number; + /** + * Returns the ascent of this TextLayout. + * The ascent is the distance from the top (right) of the + * TextLayout to the baseline. It is always either + * positive or zero. The ascent is sufficient to + * accommodate superscripted text and is the maximum of the sum of the + * ascent, offset, and baseline of each glyph. The ascent is + * the maximum ascent from the baseline of all the text in the + * TextLayout. It is in baseline-relative coordinates. + */ + // @ts-ignore + public getAscent(): number; + /** + * Returns the descent of this TextLayout. + * The descent is the distance from the baseline to the bottom (left) of + * the TextLayout. It is always either positive or zero. + * The descent is sufficient to accommodate subscripted text and is the + * maximum of the sum of the descent, offset, and baseline of each glyph. + * This is the maximum descent from the baseline of all the text in + * the TextLayout. It is in baseline-relative coordinates. + */ + // @ts-ignore + public getDescent(): number; + /** + * Returns the leading of the TextLayout. + * The leading is the suggested interline spacing for this + * TextLayout. This is in baseline-relative + * coordinates. + *

+ * The leading is computed from the leading, descent, and baseline + * of all glyphvectors in the TextLayout. The algorithm + * is roughly as follows: + *

+                 * maxD = 0;
+                 * maxDL = 0;
+                 * for (GlyphVector g in all glyphvectors) {
+                 * maxD = max(maxD, g.getDescent() + offsets[g.getBaseline()]);
+                 * maxDL = max(maxDL, g.getDescent() + g.getLeading() +
+                 * offsets[g.getBaseline()]);
+                 * }
+                 * return maxDL - maxD;
+                 * 
+ */ + // @ts-ignore + public getLeading(): number; + /** + * Returns the bounds of this TextLayout. + * The bounds are in standard coordinates. + *

Due to rasterization effects, this bounds might not enclose all of the + * pixels rendered by the TextLayout.

+ * It might not coincide exactly with the ascent, descent, + * origin or advance of the TextLayout. + */ + // @ts-ignore + public getBounds(): java.awt.geom.Rectangle2D; + /** + * Returns the pixel bounds of this TextLayout when + * rendered in a graphics with the given + * FontRenderContext at the given location. The + * graphics render context need not be the same as the + * FontRenderContext used to create this + * TextLayout, and can be null. If it is null, the + * FontRenderContext of this TextLayout + * is used. + */ + // @ts-ignore + public getPixelBounds(frc: java.awt.font.FontRenderContext, x: number, y: number): java.awt.Rectangle; + /** + * Returns true if this TextLayout has + * a left-to-right base direction or false if it has + * a right-to-left base direction. The TextLayout + * has a base direction of either left-to-right (LTR) or + * right-to-left (RTL). The base direction is independent of the + * actual direction of text on the line, which may be either LTR, + * RTL, or mixed. Left-to-right layouts by default should position + * flush left. If the layout is on a tabbed line, the + * tabs run left to right, so that logically successive layouts position + * left to right. The opposite is true for RTL layouts. By default they + * should position flush left, and tabs run right-to-left. + */ + // @ts-ignore + public isLeftToRight(): boolean; + /** + * Returns true if this TextLayout is vertical. + */ + // @ts-ignore + public isVertical(): boolean; + /** + * Returns the number of characters represented by this + * TextLayout. + */ + // @ts-ignore + public getCharacterCount(): number; + /** + * Returns information about the caret corresponding to hit. + * The first element of the array is the intersection of the caret with + * the baseline, as a distance along the baseline. The second element + * of the array is the inverse slope (run/rise) of the caret, measured + * with respect to the baseline at that point. + *

+ * This method is meant for informational use. To display carets, it + * is better to use getCaretShapes. + */ + // @ts-ignore + public getCaretInfo(hit: java.awt.font.TextHitInfo, bounds: java.awt.geom.Rectangle2D): number[]; + /** + * Returns information about the caret corresponding to hit. + * This method is a convenience overload of getCaretInfo and + * uses the natural bounds of this TextLayout. + */ + // @ts-ignore + public getCaretInfo(hit: java.awt.font.TextHitInfo): number[]; + /** + * Returns the hit for the next caret to the right (bottom); if there + * is no such hit, returns null. + * If the hit character index is out of bounds, an + * {@link IllegalArgumentException} is thrown. + */ + // @ts-ignore + public getNextRightHit(hit: java.awt.font.TextHitInfo): java.awt.font.TextHitInfo; + /** + * Returns the hit for the next caret to the right (bottom); if no + * such hit, returns null. The hit is to the right of + * the strong caret at the specified offset, as determined by the + * specified policy. + * The returned hit is the stronger of the two possible + * hits, as determined by the specified policy. + */ + // @ts-ignore + public getNextRightHit(offset: number, policy: java.awt.font.TextLayout.CaretPolicy): java.awt.font.TextHitInfo; + /** + * Returns the hit for the next caret to the right (bottom); if no + * such hit, returns null. The hit is to the right of + * the strong caret at the specified offset, as determined by the + * default policy. + * The returned hit is the stronger of the two possible + * hits, as determined by the default policy. + */ + // @ts-ignore + public getNextRightHit(offset: number): java.awt.font.TextHitInfo; + /** + * Returns the hit for the next caret to the left (top); if no such + * hit, returns null. + * If the hit character index is out of bounds, an + * IllegalArgumentException is thrown. + */ + // @ts-ignore + public getNextLeftHit(hit: java.awt.font.TextHitInfo): java.awt.font.TextHitInfo; + /** + * Returns the hit for the next caret to the left (top); if no + * such hit, returns null. The hit is to the left of + * the strong caret at the specified offset, as determined by the + * specified policy. + * The returned hit is the stronger of the two possible + * hits, as determined by the specified policy. + */ + // @ts-ignore + public getNextLeftHit(offset: number, policy: java.awt.font.TextLayout.CaretPolicy): java.awt.font.TextHitInfo; + /** + * Returns the hit for the next caret to the left (top); if no + * such hit, returns null. The hit is to the left of + * the strong caret at the specified offset, as determined by the + * default policy. + * The returned hit is the stronger of the two possible + * hits, as determined by the default policy. + */ + // @ts-ignore + public getNextLeftHit(offset: number): java.awt.font.TextHitInfo; + /** + * Returns the hit on the opposite side of the specified hit's caret. + */ + // @ts-ignore + public getVisualOtherHit(hit: java.awt.font.TextHitInfo): java.awt.font.TextHitInfo; + /** + * Returns a {@link Shape} representing the caret at the specified + * hit inside the specified bounds. + */ + // @ts-ignore + public getCaretShape(hit: java.awt.font.TextHitInfo, bounds: java.awt.geom.Rectangle2D): java.awt.Shape; + /** + * Returns a Shape representing the caret at the specified + * hit inside the natural bounds of this TextLayout. + */ + // @ts-ignore + public getCaretShape(hit: java.awt.font.TextHitInfo): java.awt.Shape; + /** + * Returns the level of the character at index. + * Indices -1 and characterCount are assigned the base + * level of this TextLayout. + */ + // @ts-ignore + public getCharacterLevel(index: number): number; + /** + * Returns two paths corresponding to the strong and weak caret. + */ + // @ts-ignore + public getCaretShapes(offset: number, bounds: java.awt.geom.Rectangle2D, policy: java.awt.font.TextLayout.CaretPolicy): java.awt.Shape[]; + /** + * Returns two paths corresponding to the strong and weak caret. + * This method is a convenience overload of getCaretShapes + * that uses the default caret policy. + */ + // @ts-ignore + public getCaretShapes(offset: number, bounds: java.awt.geom.Rectangle2D): java.awt.Shape[]; + /** + * Returns two paths corresponding to the strong and weak caret. + * This method is a convenience overload of getCaretShapes + * that uses the default caret policy and this TextLayout + * object's natural bounds. + */ + // @ts-ignore + public getCaretShapes(offset: number): java.awt.Shape[]; + /** + * Returns the logical ranges of text corresponding to a visual selection. + */ + // @ts-ignore + public getLogicalRangesForVisualSelection(firstEndpoint: java.awt.font.TextHitInfo, secondEndpoint: java.awt.font.TextHitInfo): number[]; + /** + * Returns a path enclosing the visual selection in the specified range, + * extended to bounds. + *

+ * If the selection includes the leftmost (topmost) position, the selection + * is extended to the left (top) of bounds. If the + * selection includes the rightmost (bottommost) position, the selection + * is extended to the right (bottom) of the bounds. The height + * (width on vertical lines) of the selection is always extended to + * bounds. + *

+ * Although the selection is always contiguous, the logically selected + * text can be discontiguous on lines with mixed-direction text. The + * logical ranges of text selected can be retrieved using + * getLogicalRangesForVisualSelection. For example, + * consider the text 'ABCdef' where capital letters indicate + * right-to-left text, rendered on a right-to-left line, with a visual + * selection from 0L (the leading edge of 'A') to 3T (the trailing edge + * of 'd'). The text appears as follows, with bold underlined areas + * representing the selection: + *

+                 * defCBA  
+                 * 
+ * The logical selection ranges are 0-3, 4-6 (ABC, ef) because the + * visually contiguous text is logically discontiguous. Also note that + * since the rightmost position on the layout (to the right of 'A') is + * selected, the selection is extended to the right of the bounds. + */ + // @ts-ignore + public getVisualHighlightShape(firstEndpoint: java.awt.font.TextHitInfo, secondEndpoint: java.awt.font.TextHitInfo, bounds: java.awt.geom.Rectangle2D): java.awt.Shape; + /** + * Returns a Shape enclosing the visual selection in the + * specified range, extended to the bounds. This method is a + * convenience overload of getVisualHighlightShape that + * uses the natural bounds of this TextLayout. + */ + // @ts-ignore + public getVisualHighlightShape(firstEndpoint: java.awt.font.TextHitInfo, secondEndpoint: java.awt.font.TextHitInfo): java.awt.Shape; + /** + * Returns a Shape enclosing the logical selection in the + * specified range, extended to the specified bounds. + *

+ * If the selection range includes the first logical character, the + * selection is extended to the portion of bounds before + * the start of this TextLayout. If the range includes + * the last logical character, the selection is extended to the portion + * of bounds after the end of this TextLayout. + * The height (width on vertical lines) of the selection is always + * extended to bounds. + *

+ * The selection can be discontiguous on lines with mixed-direction text. + * Only those characters in the logical range between start and limit + * appear selected. For example, consider the text 'ABCdef' where capital + * letters indicate right-to-left text, rendered on a right-to-left line, + * with a logical selection from 0 to 4 ('ABCd'). The text appears as + * follows, with bold standing in for the selection, and underlining for + * the extension: + *

+                 * defCBA  
+                 * 
+ * The selection is discontiguous because the selected characters are + * visually discontiguous. Also note that since the range includes the + * first logical character (A), the selection is extended to the portion + * of the bounds before the start of the layout, which in + * this case (a right-to-left line) is the right portion of the + * bounds. + */ + // @ts-ignore + public getLogicalHighlightShape(firstEndpoint: number, secondEndpoint: number, bounds: java.awt.geom.Rectangle2D): java.awt.Shape; + /** + * Returns a Shape enclosing the logical selection in the + * specified range, extended to the natural bounds of this + * TextLayout. This method is a convenience overload of + * getLogicalHighlightShape that uses the natural bounds of + * this TextLayout. + */ + // @ts-ignore + public getLogicalHighlightShape(firstEndpoint: number, secondEndpoint: number): java.awt.Shape; + /** + * Returns the black box bounds of the characters in the specified range. + * The black box bounds is an area consisting of the union of the bounding + * boxes of all the glyphs corresponding to the characters between start + * and limit. This area can be disjoint. + */ + // @ts-ignore + public getBlackBoxBounds(firstEndpoint: number, secondEndpoint: number): java.awt.Shape; + /** + * Returns a TextHitInfo corresponding to the + * specified point. + * Coordinates outside the bounds of the TextLayout + * map to hits on the leading edge of the first logical character, + * or the trailing edge of the last logical character, as appropriate, + * regardless of the position of that character in the line. Only the + * direction along the baseline is used to make this evaluation. + */ + // @ts-ignore + public hitTestChar(x: number, y: number, bounds: java.awt.geom.Rectangle2D): java.awt.font.TextHitInfo; + /** + * Returns a TextHitInfo corresponding to the + * specified point. This method is a convenience overload of + * hitTestChar that uses the natural bounds of this + * TextLayout. + */ + // @ts-ignore + public hitTestChar(x: number, y: number): java.awt.font.TextHitInfo; + /** + * Returns the hash code of this TextLayout. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns true if the specified Object is a + * TextLayout object and if the specified Object + * equals this TextLayout. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns true if the two layouts are equal. + * Two layouts are equal if they contain equal glyphvectors in the same order. + */ + // @ts-ignore + public equals(rhs: java.awt.font.TextLayout): boolean; + /** + * Returns debugging information for this TextLayout. + */ + // @ts-ignore + public toString(): string; + /** + * Renders this TextLayout at the specified location in + * the specified {@link java.awt.Graphics2D Graphics2D} context. + * The origin of the layout is placed at x, y. Rendering may touch + * any point within getBounds() of this position. This + * leaves the g2 unchanged. Text is rendered along the + * baseline path. + */ + // @ts-ignore + public draw(g2: java.awt.Graphics2D, x: number, y: number): void; + /** + * Returns a Shape representing the outline of this + * TextLayout. + */ + // @ts-ignore + public getOutline(tx: java.awt.geom.AffineTransform): java.awt.Shape; + /** + * Return the LayoutPath, or null if the layout path is the + * default path (x maps to advance, y maps to offset). + */ + // @ts-ignore + public getLayoutPath(): java.awt.font.LayoutPath; + /** + * Convert a hit to a point in standard coordinates. The point is + * on the baseline of the character at the leading or trailing + * edge of the character, as appropriate. If the path is + * broken at the side of the character represented by the hit, the + * point will be adjacent to the character. + */ + // @ts-ignore + public hitToPoint(hit: java.awt.font.TextHitInfo, point: java.awt.geom.Point2D): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.font.TextMeasurer.d.ts b/packages/types/dist/typings/jdk/java.awt.font.TextMeasurer.d.ts new file mode 100644 index 00000000..99cec454 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.font.TextMeasurer.d.ts @@ -0,0 +1,62 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace font { + // @ts-ignore + class TextMeasurer extends java.lang.Object { + /** + * Constructs a TextMeasurer from the source text. + * The source text should be a single entire paragraph. + */ + // @ts-ignore + constructor(text: java.text.AttributedCharacterIterator, frc: java.awt.font.FontRenderContext) + // @ts-ignore + protected clone(): java.lang.Object; + /** + * Returns the index of the first character which will not fit on + * on a line beginning at start and possible + * measuring up to maxAdvance in graphical width. + */ + // @ts-ignore + public getLineBreakIndex(start: number, maxAdvance: number): number; + /** + * Returns the graphical width of a line beginning at start + * and including characters up to limit. + * start and limit are absolute indices, + * not relative to the start of the paragraph. + */ + // @ts-ignore + public getAdvanceBetween(start: number, limit: number): number; + /** + * Returns a TextLayout on the given character range. + */ + // @ts-ignore + public getLayout(start: number, limit: number): java.awt.font.TextLayout; + /** + * Updates the TextMeasurer after a single character has + * been inserted + * into the paragraph currently represented by this + * TextMeasurer. After this call, this + * TextMeasurer is equivalent to a new + * TextMeasurer created from the text; however, it will + * usually be more efficient to update an existing + * TextMeasurer than to create a new one from scratch. + */ + // @ts-ignore + public insertChar(newParagraph: java.text.AttributedCharacterIterator, insertPos: number): void; + /** + * Updates the TextMeasurer after a single character has + * been deleted + * from the paragraph currently represented by this + * TextMeasurer. After this call, this + * TextMeasurer is equivalent to a new TextMeasurer + * created from the text; however, it will usually be more efficient + * to update an existing TextMeasurer than to create a new one + * from scratch. + */ + // @ts-ignore + public deleteChar(newParagraph: java.text.AttributedCharacterIterator, deletePos: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.font.TransformAttribute.d.ts b/packages/types/dist/typings/jdk/java.awt.font.TransformAttribute.d.ts new file mode 100644 index 00000000..49f47370 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.font.TransformAttribute.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace font { + // @ts-ignore + class TransformAttribute extends java.lang.Object { + /** + * Wraps the specified transform. The transform is cloned and a + * reference to the clone is kept. The original transform is unchanged. + * If null is passed as the argument, this constructor behaves as though + * it were the identity transform. (Note that it is preferable to use + * {@link #IDENTITY} in this case.) + */ + // @ts-ignore + constructor(transform: java.awt.geom.AffineTransform) + // @ts-ignore + public static IDENTITY: java.awt.font.TransformAttribute; + /** + * Returns a copy of the wrapped transform. + */ + // @ts-ignore + public getTransform(): java.awt.geom.AffineTransform; + /** + * Returns true if the wrapped transform is + * an identity transform. + */ + // @ts-ignore + public isIdentity(): boolean; + // @ts-ignore + public hashCode(): number; + /** + * Returns true if rhs is a TransformAttribute + * whose transform is equal to this TransformAttribute's + * transform. + */ + // @ts-ignore + public equals(rhs: java.lang.Object): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.AffineTransform.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.AffineTransform.d.ts new file mode 100644 index 00000000..70a1b24e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.AffineTransform.d.ts @@ -0,0 +1,858 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + // @ts-ignore + class AffineTransform extends java.lang.Object { + /** + * Constructs a new AffineTransform representing the + * Identity transformation. + */ + // @ts-ignore + constructor() + /** + * Constructs a new AffineTransform that is a copy of + * the specified AffineTransform object. + */ + // @ts-ignore + constructor(Tx: java.awt.geom.AffineTransform) + /** + * Constructs a new AffineTransform from 6 floating point + * values representing the 6 specifiable entries of the 3x3 + * transformation matrix. + */ + // @ts-ignore + constructor(m00: number, m10: number, m01: number, m11: number, m02: number, m12: number) + /** + * Constructs a new AffineTransform from an array of + * floating point values representing either the 4 non-translation + * entries or the 6 specifiable entries of the 3x3 transformation + * matrix. The values are retrieved from the array as + * { m00 m10 m01 m11 [m02 m12]}. + */ + // @ts-ignore + constructor(flatmatrix: number) + /** + * Constructs a new AffineTransform from 6 double + * precision values representing the 6 specifiable entries of the 3x3 + * transformation matrix. + */ + // @ts-ignore + constructor(m00: number, m10: number, m01: number, m11: number, m02: number, m12: number) + /** + * Constructs a new AffineTransform from an array of + * double precision values representing either the 4 non-translation + * entries or the 6 specifiable entries of the 3x3 transformation + * matrix. The values are retrieved from the array as + * { m00 m10 m01 m11 [m02 m12]}. + */ + // @ts-ignore + constructor(flatmatrix: number) + // @ts-ignore + public static TYPE_IDENTITY: number; + // @ts-ignore + public static TYPE_TRANSLATION: number; + // @ts-ignore + public static TYPE_UNIFORM_SCALE: number; + // @ts-ignore + public static TYPE_GENERAL_SCALE: number; + // @ts-ignore + public static TYPE_MASK_SCALE: number; + // @ts-ignore + public static TYPE_FLIP: number; + // @ts-ignore + public static TYPE_QUADRANT_ROTATION: number; + // @ts-ignore + public static TYPE_GENERAL_ROTATION: number; + // @ts-ignore + public static TYPE_MASK_ROTATION: number; + // @ts-ignore + public static TYPE_GENERAL_TRANSFORM: number; + /** + * Returns a transform representing a translation transformation. + * The matrix representing the returned transform is: + *
+                 * [   1    0    tx  ]
+                 * [   0    1    ty  ]
+                 * [   0    0    1   ]
+                 * 
+ */ + // @ts-ignore + public static getTranslateInstance(tx: number, ty: number): java.awt.geom.AffineTransform; + /** + * Returns a transform representing a rotation transformation. + * The matrix representing the returned transform is: + *
+                 * [   cos(theta)    -sin(theta)    0   ]
+                 * [   sin(theta)     cos(theta)    0   ]
+                 * [       0              0         1   ]
+                 * 
+ * Rotating by a positive angle theta rotates points on the positive + * X axis toward the positive Y axis. + * Note also the discussion of + * Handling 90-Degree Rotations + * above. + */ + // @ts-ignore + public static getRotateInstance(theta: number): java.awt.geom.AffineTransform; + /** + * Returns a transform that rotates coordinates around an anchor point. + * This operation is equivalent to translating the coordinates so + * that the anchor point is at the origin (S1), then rotating them + * about the new origin (S2), and finally translating so that the + * intermediate origin is restored to the coordinates of the original + * anchor point (S3). + *

+ * This operation is equivalent to the following sequence of calls: + *

+                 * AffineTransform Tx = new AffineTransform();
+                 * Tx.translate(anchorx, anchory);    // S3: final translation
+                 * Tx.rotate(theta);                  // S2: rotate around anchor
+                 * Tx.translate(-anchorx, -anchory);  // S1: translate anchor to origin
+                 * 
+ * The matrix representing the returned transform is: + *
+                 * [   cos(theta)    -sin(theta)    x-x*cos+y*sin  ]
+                 * [   sin(theta)     cos(theta)    y-x*sin-y*cos  ]
+                 * [       0              0               1        ]
+                 * 
+ * Rotating by a positive angle theta rotates points on the positive + * X axis toward the positive Y axis. + * Note also the discussion of + * Handling 90-Degree Rotations + * above. + */ + // @ts-ignore + public static getRotateInstance(theta: number, anchorx: number, anchory: number): java.awt.geom.AffineTransform; + /** + * Returns a transform that rotates coordinates according to + * a rotation vector. + * All coordinates rotate about the origin by the same amount. + * The amount of rotation is such that coordinates along the former + * positive X axis will subsequently align with the vector pointing + * from the origin to the specified vector coordinates. + * If both vecx and vecy are 0.0, + * an identity transform is returned. + * This operation is equivalent to calling: + *
+                 * AffineTransform.getRotateInstance(Math.atan2(vecy, vecx));
+                 * 
+ */ + // @ts-ignore + public static getRotateInstance(vecx: number, vecy: number): java.awt.geom.AffineTransform; + /** + * Returns a transform that rotates coordinates around an anchor + * point according to a rotation vector. + * All coordinates rotate about the specified anchor coordinates + * by the same amount. + * The amount of rotation is such that coordinates along the former + * positive X axis will subsequently align with the vector pointing + * from the origin to the specified vector coordinates. + * If both vecx and vecy are 0.0, + * an identity transform is returned. + * This operation is equivalent to calling: + *
+                 * AffineTransform.getRotateInstance(Math.atan2(vecy, vecx),
+                 * anchorx, anchory);
+                 * 
+ */ + // @ts-ignore + public static getRotateInstance(vecx: number, vecy: number, anchorx: number, anchory: number): java.awt.geom.AffineTransform; + /** + * Returns a transform that rotates coordinates by the specified + * number of quadrants. + * This operation is equivalent to calling: + *
+                 * AffineTransform.getRotateInstance(numquadrants * Math.PI / 2.0);
+                 * 
+ * Rotating by a positive number of quadrants rotates points on + * the positive X axis toward the positive Y axis. + */ + // @ts-ignore + public static getQuadrantRotateInstance(numquadrants: number): java.awt.geom.AffineTransform; + /** + * Returns a transform that rotates coordinates by the specified + * number of quadrants around the specified anchor point. + * This operation is equivalent to calling: + *
+                 * AffineTransform.getRotateInstance(numquadrants * Math.PI / 2.0,
+                 * anchorx, anchory);
+                 * 
+ * Rotating by a positive number of quadrants rotates points on + * the positive X axis toward the positive Y axis. + */ + // @ts-ignore + public static getQuadrantRotateInstance(numquadrants: number, anchorx: number, anchory: number): java.awt.geom.AffineTransform; + /** + * Returns a transform representing a scaling transformation. + * The matrix representing the returned transform is: + *
+                 * [   sx   0    0   ]
+                 * [   0    sy   0   ]
+                 * [   0    0    1   ]
+                 * 
+ */ + // @ts-ignore + public static getScaleInstance(sx: number, sy: number): java.awt.geom.AffineTransform; + /** + * Returns a transform representing a shearing transformation. + * The matrix representing the returned transform is: + *
+                 * [   1   shx   0   ]
+                 * [  shy   1    0   ]
+                 * [   0    0    1   ]
+                 * 
+ */ + // @ts-ignore + public static getShearInstance(shx: number, shy: number): java.awt.geom.AffineTransform; + /** + * Retrieves the flag bits describing the conversion properties of + * this transform. + * The return value is either one of the constants TYPE_IDENTITY + * or TYPE_GENERAL_TRANSFORM, or a combination of the + * appropriate flag bits. + * A valid combination of flag bits is an exclusive OR operation + * that can combine + * the TYPE_TRANSLATION flag bit + * in addition to either of the + * TYPE_UNIFORM_SCALE or TYPE_GENERAL_SCALE flag bits + * as well as either of the + * TYPE_QUADRANT_ROTATION or TYPE_GENERAL_ROTATION flag bits. + */ + // @ts-ignore + public getType(): number; + /** + * Returns the determinant of the matrix representation of the transform. + * The determinant is useful both to determine if the transform can + * be inverted and to get a single value representing the + * combined X and Y scaling of the transform. + *

+ * If the determinant is non-zero, then this transform is + * invertible and the various methods that depend on the inverse + * transform do not need to throw a + * {@link NoninvertibleTransformException}. + * If the determinant is zero then this transform can not be + * inverted since the transform maps all input coordinates onto + * a line or a point. + * If the determinant is near enough to zero then inverse transform + * operations might not carry enough precision to produce meaningful + * results. + *

+ * If this transform represents a uniform scale, as indicated by + * the getType method then the determinant also + * represents the square of the uniform scale factor by which all of + * the points are expanded from or contracted towards the origin. + * If this transform represents a non-uniform scale or more general + * transform then the determinant is not likely to represent a + * value useful for any purpose other than determining if inverse + * transforms are possible. + *

+ * Mathematically, the determinant is calculated using the formula: + *

+                 * |  m00  m01  m02  |
+                 * |  m10  m11  m12  |  =  m00 * m11 - m01 * m10
+                 * |   0    0    1   |
+                 * 
+ */ + // @ts-ignore + public getDeterminant(): number; + /** + * Retrieves the 6 specifiable values in the 3x3 affine transformation + * matrix and places them into an array of double precisions values. + * The values are stored in the array as + * { m00 m10 m01 m11 m02 m12 }. + * An array of 4 doubles can also be specified, in which case only the + * first four elements representing the non-transform + * parts of the array are retrieved and the values are stored into + * the array as { m00 m10 m01 m11 } + */ + // @ts-ignore + public getMatrix(flatmatrix: number): void; + /** + * Returns the X coordinate scaling element (m00) of the 3x3 + * affine transformation matrix. + */ + // @ts-ignore + public getScaleX(): number; + /** + * Returns the Y coordinate scaling element (m11) of the 3x3 + * affine transformation matrix. + */ + // @ts-ignore + public getScaleY(): number; + /** + * Returns the X coordinate shearing element (m01) of the 3x3 + * affine transformation matrix. + */ + // @ts-ignore + public getShearX(): number; + /** + * Returns the Y coordinate shearing element (m10) of the 3x3 + * affine transformation matrix. + */ + // @ts-ignore + public getShearY(): number; + /** + * Returns the X coordinate of the translation element (m02) of the + * 3x3 affine transformation matrix. + */ + // @ts-ignore + public getTranslateX(): number; + /** + * Returns the Y coordinate of the translation element (m12) of the + * 3x3 affine transformation matrix. + */ + // @ts-ignore + public getTranslateY(): number; + /** + * Concatenates this transform with a translation transformation. + * This is equivalent to calling concatenate(T), where T is an + * AffineTransform represented by the following matrix: + *
+                 * [   1    0    tx  ]
+                 * [   0    1    ty  ]
+                 * [   0    0    1   ]
+                 * 
+ */ + // @ts-ignore + public translate(tx: number, ty: number): void; + /** + * Concatenates this transform with a rotation transformation. + * This is equivalent to calling concatenate(R), where R is an + * AffineTransform represented by the following matrix: + *
+                 * [   cos(theta)    -sin(theta)    0   ]
+                 * [   sin(theta)     cos(theta)    0   ]
+                 * [       0              0         1   ]
+                 * 
+ * Rotating by a positive angle theta rotates points on the positive + * X axis toward the positive Y axis. + * Note also the discussion of + * Handling 90-Degree Rotations + * above. + */ + // @ts-ignore + public rotate(theta: number): void; + /** + * Concatenates this transform with a transform that rotates + * coordinates around an anchor point. + * This operation is equivalent to translating the coordinates so + * that the anchor point is at the origin (S1), then rotating them + * about the new origin (S2), and finally translating so that the + * intermediate origin is restored to the coordinates of the original + * anchor point (S3). + *

+ * This operation is equivalent to the following sequence of calls: + *

+                 * translate(anchorx, anchory);      // S3: final translation
+                 * rotate(theta);                    // S2: rotate around anchor
+                 * translate(-anchorx, -anchory);    // S1: translate anchor to origin
+                 * 
+ * Rotating by a positive angle theta rotates points on the positive + * X axis toward the positive Y axis. + * Note also the discussion of + * Handling 90-Degree Rotations + * above. + */ + // @ts-ignore + public rotate(theta: number, anchorx: number, anchory: number): void; + /** + * Concatenates this transform with a transform that rotates + * coordinates according to a rotation vector. + * All coordinates rotate about the origin by the same amount. + * The amount of rotation is such that coordinates along the former + * positive X axis will subsequently align with the vector pointing + * from the origin to the specified vector coordinates. + * If both vecx and vecy are 0.0, + * no additional rotation is added to this transform. + * This operation is equivalent to calling: + *
+                 * rotate(Math.atan2(vecy, vecx));
+                 * 
+ */ + // @ts-ignore + public rotate(vecx: number, vecy: number): void; + /** + * Concatenates this transform with a transform that rotates + * coordinates around an anchor point according to a rotation + * vector. + * All coordinates rotate about the specified anchor coordinates + * by the same amount. + * The amount of rotation is such that coordinates along the former + * positive X axis will subsequently align with the vector pointing + * from the origin to the specified vector coordinates. + * If both vecx and vecy are 0.0, + * the transform is not modified in any way. + * This method is equivalent to calling: + *
+                 * rotate(Math.atan2(vecy, vecx), anchorx, anchory);
+                 * 
+ */ + // @ts-ignore + public rotate(vecx: number, vecy: number, anchorx: number, anchory: number): void; + /** + * Concatenates this transform with a transform that rotates + * coordinates by the specified number of quadrants. + * This is equivalent to calling: + *
+                 * rotate(numquadrants * Math.PI / 2.0);
+                 * 
+ * Rotating by a positive number of quadrants rotates points on + * the positive X axis toward the positive Y axis. + */ + // @ts-ignore + public quadrantRotate(numquadrants: number): void; + /** + * Concatenates this transform with a transform that rotates + * coordinates by the specified number of quadrants around + * the specified anchor point. + * This method is equivalent to calling: + *
+                 * rotate(numquadrants * Math.PI / 2.0, anchorx, anchory);
+                 * 
+ * Rotating by a positive number of quadrants rotates points on + * the positive X axis toward the positive Y axis. + */ + // @ts-ignore + public quadrantRotate(numquadrants: number, anchorx: number, anchory: number): void; + /** + * Concatenates this transform with a scaling transformation. + * This is equivalent to calling concatenate(S), where S is an + * AffineTransform represented by the following matrix: + *
+                 * [   sx   0    0   ]
+                 * [   0    sy   0   ]
+                 * [   0    0    1   ]
+                 * 
+ */ + // @ts-ignore + public scale(sx: number, sy: number): void; + /** + * Concatenates this transform with a shearing transformation. + * This is equivalent to calling concatenate(SH), where SH is an + * AffineTransform represented by the following matrix: + *
+                 * [   1   shx   0   ]
+                 * [  shy   1    0   ]
+                 * [   0    0    1   ]
+                 * 
+ */ + // @ts-ignore + public shear(shx: number, shy: number): void; + /** + * Resets this transform to the Identity transform. + */ + // @ts-ignore + public setToIdentity(): void; + /** + * Sets this transform to a translation transformation. + * The matrix representing this transform becomes: + *
+                 * [   1    0    tx  ]
+                 * [   0    1    ty  ]
+                 * [   0    0    1   ]
+                 * 
+ */ + // @ts-ignore + public setToTranslation(tx: number, ty: number): void; + /** + * Sets this transform to a rotation transformation. + * The matrix representing this transform becomes: + *
+                 * [   cos(theta)    -sin(theta)    0   ]
+                 * [   sin(theta)     cos(theta)    0   ]
+                 * [       0              0         1   ]
+                 * 
+ * Rotating by a positive angle theta rotates points on the positive + * X axis toward the positive Y axis. + * Note also the discussion of + * Handling 90-Degree Rotations + * above. + */ + // @ts-ignore + public setToRotation(theta: number): void; + /** + * Sets this transform to a translated rotation transformation. + * This operation is equivalent to translating the coordinates so + * that the anchor point is at the origin (S1), then rotating them + * about the new origin (S2), and finally translating so that the + * intermediate origin is restored to the coordinates of the original + * anchor point (S3). + *

+ * This operation is equivalent to the following sequence of calls: + *

+                 * setToTranslation(anchorx, anchory); // S3: final translation
+                 * rotate(theta);                      // S2: rotate around anchor
+                 * translate(-anchorx, -anchory);      // S1: translate anchor to origin
+                 * 
+ * The matrix representing this transform becomes: + *
+                 * [   cos(theta)    -sin(theta)    x-x*cos+y*sin  ]
+                 * [   sin(theta)     cos(theta)    y-x*sin-y*cos  ]
+                 * [       0              0               1        ]
+                 * 
+ * Rotating by a positive angle theta rotates points on the positive + * X axis toward the positive Y axis. + * Note also the discussion of + * Handling 90-Degree Rotations + * above. + */ + // @ts-ignore + public setToRotation(theta: number, anchorx: number, anchory: number): void; + /** + * Sets this transform to a rotation transformation that rotates + * coordinates according to a rotation vector. + * All coordinates rotate about the origin by the same amount. + * The amount of rotation is such that coordinates along the former + * positive X axis will subsequently align with the vector pointing + * from the origin to the specified vector coordinates. + * If both vecx and vecy are 0.0, + * the transform is set to an identity transform. + * This operation is equivalent to calling: + *
+                 * setToRotation(Math.atan2(vecy, vecx));
+                 * 
+ */ + // @ts-ignore + public setToRotation(vecx: number, vecy: number): void; + /** + * Sets this transform to a rotation transformation that rotates + * coordinates around an anchor point according to a rotation + * vector. + * All coordinates rotate about the specified anchor coordinates + * by the same amount. + * The amount of rotation is such that coordinates along the former + * positive X axis will subsequently align with the vector pointing + * from the origin to the specified vector coordinates. + * If both vecx and vecy are 0.0, + * the transform is set to an identity transform. + * This operation is equivalent to calling: + *
+                 * setToTranslation(Math.atan2(vecy, vecx), anchorx, anchory);
+                 * 
+ */ + // @ts-ignore + public setToRotation(vecx: number, vecy: number, anchorx: number, anchory: number): void; + /** + * Sets this transform to a rotation transformation that rotates + * coordinates by the specified number of quadrants. + * This operation is equivalent to calling: + *
+                 * setToRotation(numquadrants * Math.PI / 2.0);
+                 * 
+ * Rotating by a positive number of quadrants rotates points on + * the positive X axis toward the positive Y axis. + */ + // @ts-ignore + public setToQuadrantRotation(numquadrants: number): void; + /** + * Sets this transform to a translated rotation transformation + * that rotates coordinates by the specified number of quadrants + * around the specified anchor point. + * This operation is equivalent to calling: + *
+                 * setToRotation(numquadrants * Math.PI / 2.0, anchorx, anchory);
+                 * 
+ * Rotating by a positive number of quadrants rotates points on + * the positive X axis toward the positive Y axis. + */ + // @ts-ignore + public setToQuadrantRotation(numquadrants: number, anchorx: number, anchory: number): void; + /** + * Sets this transform to a scaling transformation. + * The matrix representing this transform becomes: + *
+                 * [   sx   0    0   ]
+                 * [   0    sy   0   ]
+                 * [   0    0    1   ]
+                 * 
+ */ + // @ts-ignore + public setToScale(sx: number, sy: number): void; + /** + * Sets this transform to a shearing transformation. + * The matrix representing this transform becomes: + *
+                 * [   1   shx   0   ]
+                 * [  shy   1    0   ]
+                 * [   0    0    1   ]
+                 * 
+ */ + // @ts-ignore + public setToShear(shx: number, shy: number): void; + /** + * Sets this transform to a copy of the transform in the specified + * AffineTransform object. + */ + // @ts-ignore + public setTransform(Tx: java.awt.geom.AffineTransform): void; + /** + * Sets this transform to the matrix specified by the 6 + * double precision values. + */ + // @ts-ignore + public setTransform(m00: number, m10: number, m01: number, m11: number, m02: number, m12: number): void; + /** + * Concatenates an AffineTransform Tx to + * this AffineTransform Cx in the most commonly useful + * way to provide a new user space + * that is mapped to the former user space by Tx. + * Cx is updated to perform the combined transformation. + * Transforming a point p by the updated transform Cx' is + * equivalent to first transforming p by Tx and then + * transforming the result by the original transform Cx like this: + * Cx'(p) = Cx(Tx(p)) + * In matrix notation, if this transform Cx is + * represented by the matrix [this] and Tx is represented + * by the matrix [Tx] then this method does the following: + *
+                 * [this] = [this] x [Tx]
+                 * 
+ */ + // @ts-ignore + public concatenate(Tx: java.awt.geom.AffineTransform): void; + /** + * Concatenates an AffineTransform Tx to + * this AffineTransform Cx + * in a less commonly used way such that Tx modifies the + * coordinate transformation relative to the absolute pixel + * space rather than relative to the existing user space. + * Cx is updated to perform the combined transformation. + * Transforming a point p by the updated transform Cx' is + * equivalent to first transforming p by the original transform + * Cx and then transforming the result by + * Tx like this: + * Cx'(p) = Tx(Cx(p)) + * In matrix notation, if this transform Cx + * is represented by the matrix [this] and Tx is + * represented by the matrix [Tx] then this method does the + * following: + *
+                 * [this] = [Tx] x [this]
+                 * 
+ */ + // @ts-ignore + public preConcatenate(Tx: java.awt.geom.AffineTransform): void; + /** + * Returns an AffineTransform object representing the + * inverse transformation. + * The inverse transform Tx' of this transform Tx + * maps coordinates transformed by Tx back + * to their original coordinates. + * In other words, Tx'(Tx(p)) = p = Tx(Tx'(p)). + *

+ * If this transform maps all coordinates onto a point or a line + * then it will not have an inverse, since coordinates that do + * not lie on the destination point or line will not have an inverse + * mapping. + * The getDeterminant method can be used to determine if this + * transform has no inverse, in which case an exception will be + * thrown if the createInverse method is called. + */ + // @ts-ignore + public createInverse(): java.awt.geom.AffineTransform; + /** + * Sets this transform to the inverse of itself. + * The inverse transform Tx' of this transform Tx + * maps coordinates transformed by Tx back + * to their original coordinates. + * In other words, Tx'(Tx(p)) = p = Tx(Tx'(p)). + *

+ * If this transform maps all coordinates onto a point or a line + * then it will not have an inverse, since coordinates that do + * not lie on the destination point or line will not have an inverse + * mapping. + * The getDeterminant method can be used to determine if this + * transform has no inverse, in which case an exception will be + * thrown if the invert method is called. + */ + // @ts-ignore + public invert(): void; + /** + * Transforms the specified ptSrc and stores the result + * in ptDst. + * If ptDst is null, a new {@link Point2D} + * object is allocated and then the result of the transformation is + * stored in this object. + * In either case, ptDst, which contains the + * transformed point, is returned for convenience. + * If ptSrc and ptDst are the same + * object, the input point is correctly overwritten with + * the transformed point. + */ + // @ts-ignore + public transform(ptSrc: java.awt.geom.Point2D, ptDst: java.awt.geom.Point2D): java.awt.geom.Point2D; + /** + * Transforms an array of point objects by this transform. + * If any element of the ptDst array is + * null, a new Point2D object is allocated + * and stored into that element before storing the results of the + * transformation. + *

+ * Note that this method does not take any precautions to + * avoid problems caused by storing results into Point2D + * objects that will be used as the source for calculations + * further down the source array. + * This method does guarantee that if a specified Point2D + * object is both the source and destination for the same single point + * transform operation then the results will not be stored until + * the calculations are complete to avoid storing the results on + * top of the operands. + * If, however, the destination Point2D object for one + * operation is the same object as the source Point2D + * object for another operation further down the source array then + * the original coordinates in that point are overwritten before + * they can be converted. + */ + // @ts-ignore + public transform(ptSrc: java.awt.geom.Point2D, srcOff: number, ptDst: java.awt.geom.Point2D, dstOff: number, numPts: number): void; + /** + * Transforms an array of floating point coordinates by this transform. + * The two coordinate array sections can be exactly the same or + * can be overlapping sections of the same array without affecting the + * validity of the results. + * This method ensures that no source coordinates are overwritten by a + * previous operation before they can be transformed. + * The coordinates are stored in the arrays starting at the specified + * offset in the order [x0, y0, x1, y1, ..., xn, yn]. + */ + // @ts-ignore + public transform(srcPts: number, srcOff: number, dstPts: number, dstOff: number, numPts: number): void; + /** + * Transforms an array of double precision coordinates by this transform. + * The two coordinate array sections can be exactly the same or + * can be overlapping sections of the same array without affecting the + * validity of the results. + * This method ensures that no source coordinates are + * overwritten by a previous operation before they can be transformed. + * The coordinates are stored in the arrays starting at the indicated + * offset in the order [x0, y0, x1, y1, ..., xn, yn]. + */ + // @ts-ignore + public transform(srcPts: number, srcOff: number, dstPts: number, dstOff: number, numPts: number): void; + /** + * Transforms an array of floating point coordinates by this transform + * and stores the results into an array of doubles. + * The coordinates are stored in the arrays starting at the specified + * offset in the order [x0, y0, x1, y1, ..., xn, yn]. + */ + // @ts-ignore + public transform(srcPts: number, srcOff: number, dstPts: number, dstOff: number, numPts: number): void; + /** + * Transforms an array of double precision coordinates by this transform + * and stores the results into an array of floats. + * The coordinates are stored in the arrays starting at the specified + * offset in the order [x0, y0, x1, y1, ..., xn, yn]. + */ + // @ts-ignore + public transform(srcPts: number, srcOff: number, dstPts: number, dstOff: number, numPts: number): void; + /** + * Inverse transforms the specified ptSrc and stores the + * result in ptDst. + * If ptDst is null, a new + * Point2D object is allocated and then the result of the + * transform is stored in this object. + * In either case, ptDst, which contains the transformed + * point, is returned for convenience. + * If ptSrc and ptDst are the same + * object, the input point is correctly overwritten with the + * transformed point. + */ + // @ts-ignore + public inverseTransform(ptSrc: java.awt.geom.Point2D, ptDst: java.awt.geom.Point2D): java.awt.geom.Point2D; + /** + * Inverse transforms an array of double precision coordinates by + * this transform. + * The two coordinate array sections can be exactly the same or + * can be overlapping sections of the same array without affecting the + * validity of the results. + * This method ensures that no source coordinates are + * overwritten by a previous operation before they can be transformed. + * The coordinates are stored in the arrays starting at the specified + * offset in the order [x0, y0, x1, y1, ..., xn, yn]. + */ + // @ts-ignore + public inverseTransform(srcPts: number, srcOff: number, dstPts: number, dstOff: number, numPts: number): void; + /** + * Transforms the relative distance vector specified by + * ptSrc and stores the result in ptDst. + * A relative distance vector is transformed without applying the + * translation components of the affine transformation matrix + * using the following equations: + *

+                 * [  x' ]   [  m00  m01 (m02) ] [  x  ]   [ m00x + m01y ]
+                 * [  y' ] = [  m10  m11 (m12) ] [  y  ] = [ m10x + m11y ]
+                 * [ (1) ]   [  (0)  (0) ( 1 ) ] [ (1) ]   [     (1)     ]
+                 * 
+ * If ptDst is null, a new + * Point2D object is allocated and then the result of the + * transform is stored in this object. + * In either case, ptDst, which contains the + * transformed point, is returned for convenience. + * If ptSrc and ptDst are the same object, + * the input point is correctly overwritten with the transformed + * point. + */ + // @ts-ignore + public deltaTransform(ptSrc: java.awt.geom.Point2D, ptDst: java.awt.geom.Point2D): java.awt.geom.Point2D; + /** + * Transforms an array of relative distance vectors by this + * transform. + * A relative distance vector is transformed without applying the + * translation components of the affine transformation matrix + * using the following equations: + *
+                 * [  x' ]   [  m00  m01 (m02) ] [  x  ]   [ m00x + m01y ]
+                 * [  y' ] = [  m10  m11 (m12) ] [  y  ] = [ m10x + m11y ]
+                 * [ (1) ]   [  (0)  (0) ( 1 ) ] [ (1) ]   [     (1)     ]
+                 * 
+ * The two coordinate array sections can be exactly the same or + * can be overlapping sections of the same array without affecting the + * validity of the results. + * This method ensures that no source coordinates are + * overwritten by a previous operation before they can be transformed. + * The coordinates are stored in the arrays starting at the indicated + * offset in the order [x0, y0, x1, y1, ..., xn, yn]. + */ + // @ts-ignore + public deltaTransform(srcPts: number, srcOff: number, dstPts: number, dstOff: number, numPts: number): void; + /** + * Returns a new {@link Shape} object defined by the geometry of the + * specified Shape after it has been transformed by + * this transform. + */ + // @ts-ignore + public createTransformedShape(pSrc: java.awt.Shape): java.awt.Shape; + /** + * Returns a String that represents the value of this + * {@link Object}. + */ + // @ts-ignore + public toString(): string; + /** + * Returns true if this AffineTransform is + * an identity transform. + */ + // @ts-ignore + public isIdentity(): boolean; + /** + * Returns a copy of this AffineTransform object. + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Returns the hashcode for this transform. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns true if this AffineTransform + * represents the same affine coordinate transform as the specified + * argument. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.Arc2D.Double.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.Arc2D.Double.d.ts new file mode 100644 index 00000000..4a03141e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.Arc2D.Double.d.ts @@ -0,0 +1,116 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + namespace Arc2D { + // @ts-ignore + class Double extends java.awt.geom.Arc2D { + /** + * Constructs a new OPEN arc, initialized to location (0, 0), + * size (0, 0), angular extents (start = 0, extent = 0). + */ + // @ts-ignore + constructor() + /** + * Constructs a new arc, initialized to location (0, 0), + * size (0, 0), angular extents (start = 0, extent = 0), and + * the specified closure type. + */ + // @ts-ignore + constructor(type: number) + /** + * Constructs a new arc, initialized to the specified location, + * size, angular extents, and closure type. + */ + // @ts-ignore + constructor(x: number, y: number, w: number, h: number, start: number, extent: number, type: number) + /** + * Constructs a new arc, initialized to the specified location, + * size, angular extents, and closure type. + */ + // @ts-ignore + constructor(ellipseBounds: java.awt.geom.Rectangle2D, start: number, extent: number, type: number) + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public width: number; + // @ts-ignore + public height: number; + // @ts-ignore + public start: number; + // @ts-ignore + public extent: number; + /** + * {@inheritDoc} + * Note that the arc + * partially inscribes + * the framing rectangle of this {@code RectangularShape}. + */ + // @ts-ignore + public getX(): number; + /** + * {@inheritDoc} + * Note that the arc + * partially inscribes + * the framing rectangle of this {@code RectangularShape}. + */ + // @ts-ignore + public getY(): number; + /** + * {@inheritDoc} + * Note that the arc + * partially inscribes + * the framing rectangle of this {@code RectangularShape}. + */ + // @ts-ignore + public getWidth(): number; + /** + * {@inheritDoc} + * Note that the arc + * partially inscribes + * the framing rectangle of this {@code RectangularShape}. + */ + // @ts-ignore + public getHeight(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getAngleStart(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getAngleExtent(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public setArc(x: number, y: number, w: number, h: number, angSt: number, angExt: number, closure: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public setAngleStart(angSt: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public setAngleExtent(angExt: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + protected makeBounds(x: number, y: number, w: number, h: number): java.awt.geom.Rectangle2D; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.Arc2D.Float.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.Arc2D.Float.d.ts new file mode 100644 index 00000000..3c029ccc --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.Arc2D.Float.d.ts @@ -0,0 +1,116 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + namespace Arc2D { + // @ts-ignore + class Float extends java.awt.geom.Arc2D { + /** + * Constructs a new OPEN arc, initialized to location (0, 0), + * size (0, 0), angular extents (start = 0, extent = 0). + */ + // @ts-ignore + constructor() + /** + * Constructs a new arc, initialized to location (0, 0), + * size (0, 0), angular extents (start = 0, extent = 0), and + * the specified closure type. + */ + // @ts-ignore + constructor(type: number) + /** + * Constructs a new arc, initialized to the specified location, + * size, angular extents, and closure type. + */ + // @ts-ignore + constructor(x: number, y: number, w: number, h: number, start: number, extent: number, type: number) + /** + * Constructs a new arc, initialized to the specified location, + * size, angular extents, and closure type. + */ + // @ts-ignore + constructor(ellipseBounds: java.awt.geom.Rectangle2D, start: number, extent: number, type: number) + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public width: number; + // @ts-ignore + public height: number; + // @ts-ignore + public start: number; + // @ts-ignore + public extent: number; + /** + * {@inheritDoc} + * Note that the arc + * partially inscribes + * the framing rectangle of this {@code RectangularShape}. + */ + // @ts-ignore + public getX(): number; + /** + * {@inheritDoc} + * Note that the arc + * partially inscribes + * the framing rectangle of this {@code RectangularShape}. + */ + // @ts-ignore + public getY(): number; + /** + * {@inheritDoc} + * Note that the arc + * partially inscribes + * the framing rectangle of this {@code RectangularShape}. + */ + // @ts-ignore + public getWidth(): number; + /** + * {@inheritDoc} + * Note that the arc + * partially inscribes + * the framing rectangle of this {@code RectangularShape}. + */ + // @ts-ignore + public getHeight(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getAngleStart(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getAngleExtent(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public setArc(x: number, y: number, w: number, h: number, angSt: number, angExt: number, closure: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public setAngleStart(angSt: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public setAngleExtent(angExt: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + protected makeBounds(x: number, y: number, w: number, h: number): java.awt.geom.Rectangle2D; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.Arc2D.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.Arc2D.d.ts new file mode 100644 index 00000000..e5aa23e4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.Arc2D.d.ts @@ -0,0 +1,240 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + // @ts-ignore + abstract class Arc2D extends java.awt.geom.RectangularShape { + /** + * This is an abstract class that cannot be instantiated directly. + * Type-specific implementation subclasses are available for + * instantiation and provide a number of formats for storing + * the information necessary to satisfy the various accessor + * methods below. + *

+ * This constructor creates an object with a default closure + * type of {@link #OPEN}. It is provided only to enable + * serialization of subclasses. + */ + // @ts-ignore + constructor() + /** + * This is an abstract class that cannot be instantiated directly. + * Type-specific implementation subclasses are available for + * instantiation and provide a number of formats for storing + * the information necessary to satisfy the various accessor + * methods below. + */ + // @ts-ignore + constructor(type: number) + // @ts-ignore + public static OPEN: number; + // @ts-ignore + public static CHORD: number; + // @ts-ignore + public static PIE: number; + /** + * Returns the starting angle of the arc. + */ + // @ts-ignore + public abstract getAngleStart(): number; + /** + * Returns the angular extent of the arc. + */ + // @ts-ignore + public abstract getAngleExtent(): number; + /** + * Returns the arc closure type of the arc: {@link #OPEN}, + * {@link #CHORD}, or {@link #PIE}. + */ + // @ts-ignore + public getArcType(): number; + /** + * Returns the starting point of the arc. This point is the + * intersection of the ray from the center defined by the + * starting angle and the elliptical boundary of the arc. + */ + // @ts-ignore + public getStartPoint(): java.awt.geom.Point2D; + /** + * Returns the ending point of the arc. This point is the + * intersection of the ray from the center defined by the + * starting angle plus the angular extent of the arc and the + * elliptical boundary of the arc. + */ + // @ts-ignore + public getEndPoint(): java.awt.geom.Point2D; + /** + * Sets the location, size, angular extents, and closure type of + * this arc to the specified double values. + */ + // @ts-ignore + public abstract setArc(x: number, y: number, w: number, h: number, angSt: number, angExt: number, closure: number): void; + /** + * Sets the location, size, angular extents, and closure type of + * this arc to the specified values. + */ + // @ts-ignore + public setArc(loc: java.awt.geom.Point2D, size: java.awt.geom.Dimension2D, angSt: number, angExt: number, closure: number): void; + /** + * Sets the location, size, angular extents, and closure type of + * this arc to the specified values. + */ + // @ts-ignore + public setArc(rect: java.awt.geom.Rectangle2D, angSt: number, angExt: number, closure: number): void; + /** + * Sets this arc to be the same as the specified arc. + */ + // @ts-ignore + public setArc(a: java.awt.geom.Arc2D): void; + /** + * Sets the position, bounds, angular extents, and closure type of + * this arc to the specified values. The arc is defined by a center + * point and a radius rather than a framing rectangle for the full ellipse. + */ + // @ts-ignore + public setArcByCenter(x: number, y: number, radius: number, angSt: number, angExt: number, closure: number): void; + /** + * Sets the position, bounds, and angular extents of this arc to the + * specified value. The starting angle of the arc is tangent to the + * line specified by points (p1, p2), the ending angle is tangent to + * the line specified by points (p2, p3), and the arc has the + * specified radius. + */ + // @ts-ignore + public setArcByTangent(p1: java.awt.geom.Point2D, p2: java.awt.geom.Point2D, p3: java.awt.geom.Point2D, radius: number): void; + /** + * Sets the starting angle of this arc to the specified double + * value. + */ + // @ts-ignore + public abstract setAngleStart(angSt: number): void; + /** + * Sets the angular extent of this arc to the specified double + * value. + */ + // @ts-ignore + public abstract setAngleExtent(angExt: number): void; + /** + * Sets the starting angle of this arc to the angle that the + * specified point defines relative to the center of this arc. + * The angular extent of the arc will remain the same. + */ + // @ts-ignore + public setAngleStart(p: java.awt.geom.Point2D): void; + /** + * Sets the starting angle and angular extent of this arc using two + * sets of coordinates. The first set of coordinates is used to + * determine the angle of the starting point relative to the arc's + * center. The second set of coordinates is used to determine the + * angle of the end point relative to the arc's center. + * The arc will always be non-empty and extend counterclockwise + * from the first point around to the second point. + */ + // @ts-ignore + public setAngles(x1: number, y1: number, x2: number, y2: number): void; + /** + * Sets the starting angle and angular extent of this arc using + * two points. The first point is used to determine the angle of + * the starting point relative to the arc's center. + * The second point is used to determine the angle of the end point + * relative to the arc's center. + * The arc will always be non-empty and extend counterclockwise + * from the first point around to the second point. + */ + // @ts-ignore + public setAngles(p1: java.awt.geom.Point2D, p2: java.awt.geom.Point2D): void; + /** + * Sets the closure type of this arc to the specified value: + * OPEN, CHORD, or PIE. + */ + // @ts-ignore + public setArcType(type: number): void; + /** + * {@inheritDoc} + * Note that the arc + * partially inscribes + * the framing rectangle of this {@code RectangularShape}. + */ + // @ts-ignore + public setFrame(x: number, y: number, w: number, h: number): void; + /** + * Returns the high-precision framing rectangle of the arc. The framing + * rectangle contains only the part of this Arc2D that is + * in between the starting and ending angles and contains the pie + * wedge, if this Arc2D has a PIE closure type. + *

+ * This method differs from the + * {@link RectangularShape#getBounds() getBounds} in that the + * getBounds method only returns the bounds of the + * enclosing ellipse of this Arc2D without considering + * the starting and ending angles of this Arc2D. + */ + // @ts-ignore + public getBounds2D(): java.awt.geom.Rectangle2D; + /** + * Constructs a Rectangle2D of the appropriate precision + * to hold the parameters calculated to be the framing rectangle + * of this arc. + */ + // @ts-ignore + protected abstract makeBounds(x: number, y: number, w: number, h: number): java.awt.geom.Rectangle2D; + /** + * Determines whether or not the specified angle is within the + * angular extents of the arc. + */ + // @ts-ignore + public containsAngle(angle: number): boolean; + /** + * Determines whether or not the specified point is inside the boundary + * of the arc. + */ + // @ts-ignore + public contains(x: number, y: number): boolean; + /** + * Determines whether or not the interior of the arc intersects + * the interior of the specified rectangle. + */ + // @ts-ignore + public intersects(x: number, y: number, w: number, h: number): boolean; + /** + * Determines whether or not the interior of the arc entirely contains + * the specified rectangle. + */ + // @ts-ignore + public contains(x: number, y: number, w: number, h: number): boolean; + /** + * Determines whether or not the interior of the arc entirely contains + * the specified rectangle. + */ + // @ts-ignore + public contains(r: java.awt.geom.Rectangle2D): boolean; + /** + * Returns an iteration object that defines the boundary of the + * arc. + * This iterator is multithread safe. + * Arc2D guarantees that + * modifications to the geometry of the arc + * do not affect any iterations of that geometry that + * are already in process. + */ + // @ts-ignore + public getPathIterator(at: java.awt.geom.AffineTransform): java.awt.geom.PathIterator; + /** + * Returns the hashcode for this Arc2D. + */ + // @ts-ignore + public hashCode(): number; + /** + * Determines whether or not the specified Object is + * equal to this Arc2D. The specified + * Object is equal to this Arc2D + * if it is an instance of Arc2D and if its + * location, size, arc extents and type are the same as this + * Arc2D. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.Area.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.Area.d.ts new file mode 100644 index 00000000..f34f25b6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.Area.d.ts @@ -0,0 +1,252 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + // @ts-ignore + class Area extends java.lang.Object { + /** + * Default constructor which creates an empty area. + */ + // @ts-ignore + constructor() + /** + * The Area class creates an area geometry from the + * specified {@link Shape} object. The geometry is explicitly + * closed, if the Shape is not already closed. The + * fill rule (even-odd or winding) specified by the geometry of the + * Shape is used to determine the resulting enclosed area. + */ + // @ts-ignore + constructor(s: java.awt.Shape) + /** + * Adds the shape of the specified Area to the + * shape of this Area. + * The resulting shape of this Area will include + * the union of both shapes, or all areas that were contained + * in either this or the specified Area. + *

+                 * // Example:
+                 * Area a1 = new Area([triangle 0,0 => 8,0 => 0,8]);
+                 * Area a2 = new Area([triangle 0,0 => 8,0 => 8,8]);
+                 * a1.add(a2);
+                 * a1(before)     +         a2         =     a1(after)
+                 * ################     ################     ################
+                 * ##############         ##############     ################
+                 * ############             ############     ################
+                 * ##########                 ##########     ################
+                 * ########                     ########     ################
+                 * ######                         ######     ######    ######
+                 * ####                             ####     ####        ####
+                 * ##                                 ##     ##            ##
+                 * 
+ */ + // @ts-ignore + public add(rhs: java.awt.geom.Area): void; + /** + * Subtracts the shape of the specified Area from the + * shape of this Area. + * The resulting shape of this Area will include + * areas that were contained only in this Area + * and not in the specified Area. + *
+                 * // Example:
+                 * Area a1 = new Area([triangle 0,0 => 8,0 => 0,8]);
+                 * Area a2 = new Area([triangle 0,0 => 8,0 => 8,8]);
+                 * a1.subtract(a2);
+                 * a1(before)     -         a2         =     a1(after)
+                 * ################     ################
+                 * ##############         ##############     ##
+                 * ############             ############     ####
+                 * ##########                 ##########     ######
+                 * ########                     ########     ########
+                 * ######                         ######     ######
+                 * ####                             ####     ####
+                 * ##                                 ##     ##
+                 * 
+ */ + // @ts-ignore + public subtract(rhs: java.awt.geom.Area): void; + /** + * Sets the shape of this Area to the intersection of + * its current shape and the shape of the specified Area. + * The resulting shape of this Area will include + * only areas that were contained in both this Area + * and also in the specified Area. + *
+                 * // Example:
+                 * Area a1 = new Area([triangle 0,0 => 8,0 => 0,8]);
+                 * Area a2 = new Area([triangle 0,0 => 8,0 => 8,8]);
+                 * a1.intersect(a2);
+                 * a1(before)   intersect     a2         =     a1(after)
+                 * ################     ################     ################
+                 * ##############         ##############       ############
+                 * ############             ############         ########
+                 * ##########                 ##########           ####
+                 * ########                     ########
+                 * ######                         ######
+                 * ####                             ####
+                 * ##                                 ##
+                 * 
+ */ + // @ts-ignore + public intersect(rhs: java.awt.geom.Area): void; + /** + * Sets the shape of this Area to be the combined area + * of its current shape and the shape of the specified Area, + * minus their intersection. + * The resulting shape of this Area will include + * only areas that were contained in either this Area + * or in the specified Area, but not in both. + *
+                 * // Example:
+                 * Area a1 = new Area([triangle 0,0 => 8,0 => 0,8]);
+                 * Area a2 = new Area([triangle 0,0 => 8,0 => 8,8]);
+                 * a1.exclusiveOr(a2);
+                 * a1(before)    xor        a2         =     a1(after)
+                 * ################     ################
+                 * ##############         ##############     ##            ##
+                 * ############             ############     ####        ####
+                 * ##########                 ##########     ######    ######
+                 * ########                     ########     ################
+                 * ######                         ######     ######    ######
+                 * ####                             ####     ####        ####
+                 * ##                                 ##     ##            ##
+                 * 
+ */ + // @ts-ignore + public exclusiveOr(rhs: java.awt.geom.Area): void; + /** + * Removes all of the geometry from this Area and + * restores it to an empty area. + */ + // @ts-ignore + public reset(): void; + /** + * Tests whether this Area object encloses any area. + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * Tests whether this Area consists entirely of + * straight edged polygonal geometry. + */ + // @ts-ignore + public isPolygonal(): boolean; + /** + * Tests whether this Area is rectangular in shape. + */ + // @ts-ignore + public isRectangular(): boolean; + /** + * Tests whether this Area is comprised of a single + * closed subpath. This method returns true if the + * path contains 0 or 1 subpaths, or false if the path + * contains more than 1 subpath. The subpaths are counted by the + * number of {@link PathIterator#SEG_MOVETO SEG_MOVETO} segments + * that appear in the path. + */ + // @ts-ignore + public isSingular(): boolean; + /** + * Returns a high precision bounding {@link Rectangle2D} that + * completely encloses this Area. + *

+ * The Area class will attempt to return the tightest bounding + * box possible for the Shape. The bounding box will not be + * padded to include the control points of curves in the outline + * of the Shape, but should tightly fit the actual geometry of + * the outline itself. + */ + // @ts-ignore + public getBounds2D(): java.awt.geom.Rectangle2D; + /** + * Returns a bounding {@link Rectangle} that completely encloses + * this Area. + *

+ * The Area class will attempt to return the tightest bounding + * box possible for the Shape. The bounding box will not be + * padded to include the control points of curves in the outline + * of the Shape, but should tightly fit the actual geometry of + * the outline itself. Since the returned object represents + * the bounding box with integers, the bounding box can only be + * as tight as the nearest integer coordinates that encompass + * the geometry of the Shape. + */ + // @ts-ignore + public getBounds(): java.awt.Rectangle; + /** + * Returns an exact copy of this Area object. + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Tests whether the geometries of the two Area objects + * are equal. + * This method will return false if the argument is null. + */ + // @ts-ignore + public equals(other: java.awt.geom.Area): boolean; + /** + * Transforms the geometry of this Area using the specified + * {@link AffineTransform}. The geometry is transformed in place, which + * permanently changes the enclosed area defined by this object. + */ + // @ts-ignore + public transform(t: java.awt.geom.AffineTransform): void; + /** + * Creates a new Area object that contains the same + * geometry as this Area transformed by the specified + * AffineTransform. This Area object + * is unchanged. + */ + // @ts-ignore + public createTransformedArea(t: java.awt.geom.AffineTransform): java.awt.geom.Area; + /** + * {@inheritDoc} + */ + // @ts-ignore + public contains(x: number, y: number): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public contains(p: java.awt.geom.Point2D): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public contains(x: number, y: number, w: number, h: number): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public contains(r: java.awt.geom.Rectangle2D): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public intersects(x: number, y: number, w: number, h: number): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public intersects(r: java.awt.geom.Rectangle2D): boolean; + /** + * Creates a {@link PathIterator} for the outline of this + * Area object. This Area object is unchanged. + */ + // @ts-ignore + public getPathIterator(at: java.awt.geom.AffineTransform): java.awt.geom.PathIterator; + /** + * Creates a PathIterator for the flattened outline of + * this Area object. Only uncurved path segments + * represented by the SEG_MOVETO, SEG_LINETO, and SEG_CLOSE point + * types are returned by the iterator. This Area + * object is unchanged. + */ + // @ts-ignore + public getPathIterator(at: java.awt.geom.AffineTransform, flatness: number): java.awt.geom.PathIterator; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.CubicCurve2D.Double.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.CubicCurve2D.Double.d.ts new file mode 100644 index 00000000..491fe76c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.CubicCurve2D.Double.d.ts @@ -0,0 +1,110 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + namespace CubicCurve2D { + // @ts-ignore + class Double extends java.awt.geom.CubicCurve2D { + /** + * Constructs and initializes a CubicCurve with coordinates + * (0, 0, 0, 0, 0, 0, 0, 0). + */ + // @ts-ignore + constructor() + /** + * Constructs and initializes a {@code CubicCurve2D} from + * the specified {@code double} coordinates. + */ + // @ts-ignore + constructor(x1: number, y1: number, ctrlx1: number, ctrly1: number, ctrlx2: number, ctrly2: number, x2: number, y2: number) + // @ts-ignore + public x1: number; + // @ts-ignore + public y1: number; + // @ts-ignore + public ctrlx1: number; + // @ts-ignore + public ctrly1: number; + // @ts-ignore + public ctrlx2: number; + // @ts-ignore + public ctrly2: number; + // @ts-ignore + public x2: number; + // @ts-ignore + public y2: number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getX1(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getY1(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getP1(): java.awt.geom.Point2D; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getCtrlX1(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getCtrlY1(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getCtrlP1(): java.awt.geom.Point2D; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getCtrlX2(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getCtrlY2(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getCtrlP2(): java.awt.geom.Point2D; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getX2(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getY2(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getP2(): java.awt.geom.Point2D; + /** + * {@inheritDoc} + */ + // @ts-ignore + public setCurve(x1: number, y1: number, ctrlx1: number, ctrly1: number, ctrlx2: number, ctrly2: number, x2: number, y2: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getBounds2D(): java.awt.geom.Rectangle2D; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.CubicCurve2D.Float.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.CubicCurve2D.Float.d.ts new file mode 100644 index 00000000..9d460abf --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.CubicCurve2D.Float.d.ts @@ -0,0 +1,116 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + namespace CubicCurve2D { + // @ts-ignore + class Float extends java.awt.geom.CubicCurve2D { + /** + * Constructs and initializes a CubicCurve with coordinates + * (0, 0, 0, 0, 0, 0, 0, 0). + */ + // @ts-ignore + constructor() + /** + * Constructs and initializes a {@code CubicCurve2D} from + * the specified {@code float} coordinates. + */ + // @ts-ignore + constructor(x1: number, y1: number, ctrlx1: number, ctrly1: number, ctrlx2: number, ctrly2: number, x2: number, y2: number) + // @ts-ignore + public x1: number; + // @ts-ignore + public y1: number; + // @ts-ignore + public ctrlx1: number; + // @ts-ignore + public ctrly1: number; + // @ts-ignore + public ctrlx2: number; + // @ts-ignore + public ctrly2: number; + // @ts-ignore + public x2: number; + // @ts-ignore + public y2: number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getX1(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getY1(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getP1(): java.awt.geom.Point2D; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getCtrlX1(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getCtrlY1(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getCtrlP1(): java.awt.geom.Point2D; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getCtrlX2(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getCtrlY2(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getCtrlP2(): java.awt.geom.Point2D; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getX2(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getY2(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getP2(): java.awt.geom.Point2D; + /** + * {@inheritDoc} + */ + // @ts-ignore + public setCurve(x1: number, y1: number, ctrlx1: number, ctrly1: number, ctrlx2: number, ctrly2: number, x2: number, y2: number): void; + /** + * Sets the location of the end points and control points + * of this curve to the specified {@code float} coordinates. + */ + // @ts-ignore + public setCurve(x1: number, y1: number, ctrlx1: number, ctrly1: number, ctrlx2: number, ctrly2: number, x2: number, y2: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getBounds2D(): java.awt.geom.Rectangle2D; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.CubicCurve2D.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.CubicCurve2D.d.ts new file mode 100644 index 00000000..0b709d25 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.CubicCurve2D.d.ts @@ -0,0 +1,282 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + // @ts-ignore + abstract class CubicCurve2D extends java.lang.Object { + /** + * This is an abstract class that cannot be instantiated directly. + * Type-specific implementation subclasses are available for + * instantiation and provide a number of formats for storing + * the information necessary to satisfy the various accessor + * methods below. + */ + // @ts-ignore + constructor() + /** + * Returns the X coordinate of the start point in double precision. + */ + // @ts-ignore + public abstract getX1(): number; + /** + * Returns the Y coordinate of the start point in double precision. + */ + // @ts-ignore + public abstract getY1(): number; + /** + * Returns the start point. + */ + // @ts-ignore + public abstract getP1(): java.awt.geom.Point2D; + /** + * Returns the X coordinate of the first control point in double precision. + */ + // @ts-ignore + public abstract getCtrlX1(): number; + /** + * Returns the Y coordinate of the first control point in double precision. + */ + // @ts-ignore + public abstract getCtrlY1(): number; + /** + * Returns the first control point. + */ + // @ts-ignore + public abstract getCtrlP1(): java.awt.geom.Point2D; + /** + * Returns the X coordinate of the second control point + * in double precision. + */ + // @ts-ignore + public abstract getCtrlX2(): number; + /** + * Returns the Y coordinate of the second control point + * in double precision. + */ + // @ts-ignore + public abstract getCtrlY2(): number; + /** + * Returns the second control point. + */ + // @ts-ignore + public abstract getCtrlP2(): java.awt.geom.Point2D; + /** + * Returns the X coordinate of the end point in double precision. + */ + // @ts-ignore + public abstract getX2(): number; + /** + * Returns the Y coordinate of the end point in double precision. + */ + // @ts-ignore + public abstract getY2(): number; + /** + * Returns the end point. + */ + // @ts-ignore + public abstract getP2(): java.awt.geom.Point2D; + /** + * Sets the location of the end points and control points of this curve + * to the specified double coordinates. + */ + // @ts-ignore + public abstract setCurve(x1: number, y1: number, ctrlx1: number, ctrly1: number, ctrlx2: number, ctrly2: number, x2: number, y2: number): void; + /** + * Sets the location of the end points and control points of this curve + * to the double coordinates at the specified offset in the specified + * array. + */ + // @ts-ignore + public setCurve(coords: number, offset: number): void; + /** + * Sets the location of the end points and control points of this curve + * to the specified Point2D coordinates. + */ + // @ts-ignore + public setCurve(p1: java.awt.geom.Point2D, cp1: java.awt.geom.Point2D, cp2: java.awt.geom.Point2D, p2: java.awt.geom.Point2D): void; + /** + * Sets the location of the end points and control points of this curve + * to the coordinates of the Point2D objects at the specified + * offset in the specified array. + */ + // @ts-ignore + public setCurve(pts: java.awt.geom.Point2D, offset: number): void; + /** + * Sets the location of the end points and control points of this curve + * to the same as those in the specified CubicCurve2D. + */ + // @ts-ignore + public setCurve(c: java.awt.geom.CubicCurve2D): void; + /** + * Returns the square of the flatness of the cubic curve specified + * by the indicated control points. The flatness is the maximum distance + * of a control point from the line connecting the end points. + */ + // @ts-ignore + public static getFlatnessSq(x1: number, y1: number, ctrlx1: number, ctrly1: number, ctrlx2: number, ctrly2: number, x2: number, y2: number): number; + /** + * Returns the flatness of the cubic curve specified + * by the indicated control points. The flatness is the maximum distance + * of a control point from the line connecting the end points. + */ + // @ts-ignore + public static getFlatness(x1: number, y1: number, ctrlx1: number, ctrly1: number, ctrlx2: number, ctrly2: number, x2: number, y2: number): number; + /** + * Returns the square of the flatness of the cubic curve specified + * by the control points stored in the indicated array at the + * indicated index. The flatness is the maximum distance + * of a control point from the line connecting the end points. + */ + // @ts-ignore + public static getFlatnessSq(coords: number, offset: number): number; + /** + * Returns the flatness of the cubic curve specified + * by the control points stored in the indicated array at the + * indicated index. The flatness is the maximum distance + * of a control point from the line connecting the end points. + */ + // @ts-ignore + public static getFlatness(coords: number, offset: number): number; + /** + * Returns the square of the flatness of this curve. The flatness is the + * maximum distance of a control point from the line connecting the + * end points. + */ + // @ts-ignore + public getFlatnessSq(): number; + /** + * Returns the flatness of this curve. The flatness is the + * maximum distance of a control point from the line connecting the + * end points. + */ + // @ts-ignore + public getFlatness(): number; + /** + * Subdivides this cubic curve and stores the resulting two + * subdivided curves into the left and right curve parameters. + * Either or both of the left and right objects may be the same + * as this object or null. + */ + // @ts-ignore + public subdivide(left: java.awt.geom.CubicCurve2D, right: java.awt.geom.CubicCurve2D): void; + /** + * Subdivides the cubic curve specified by the src parameter + * and stores the resulting two subdivided curves into the + * left and right curve parameters. + * Either or both of the left and right objects + * may be the same as the src object or null. + */ + // @ts-ignore + public static subdivide(src: java.awt.geom.CubicCurve2D, left: java.awt.geom.CubicCurve2D, right: java.awt.geom.CubicCurve2D): void; + /** + * Subdivides the cubic curve specified by the coordinates + * stored in the src array at indices srcoff + * through (srcoff + 7) and stores the + * resulting two subdivided curves into the two result arrays at the + * corresponding indices. + * Either or both of the left and right + * arrays may be null or a reference to the same array + * as the src array. + * Note that the last point in the first subdivided curve is the + * same as the first point in the second subdivided curve. Thus, + * it is possible to pass the same array for left + * and right and to use offsets, such as rightoff + * equals (leftoff + 6), in order + * to avoid allocating extra storage for this common point. + */ + // @ts-ignore + public static subdivide(src: number, srcoff: number, left: number, leftoff: number, right: number, rightoff: number): void; + /** + * Solves the cubic whose coefficients are in the eqn + * array and places the non-complex roots back into the same array, + * returning the number of roots. The solved cubic is represented + * by the equation: + *

+                 * eqn = {c, b, a, d}
+                 * dx^3 + ax^2 + bx + c = 0
+                 * 
+ * A return value of -1 is used to distinguish a constant equation + * that might be always 0 or never 0 from an equation that has no + * zeroes. + */ + // @ts-ignore + public static solveCubic(eqn: number): number; + /** + * Solve the cubic whose coefficients are in the eqn + * array and place the non-complex roots into the res + * array, returning the number of roots. + * The cubic solved is represented by the equation: + * eqn = {c, b, a, d} + * dx^3 + ax^2 + bx + c = 0 + * A return value of -1 is used to distinguish a constant equation, + * which may be always 0 or never 0, from an equation which has no + * zeroes. + */ + // @ts-ignore + public static solveCubic(eqn: number, res: number): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public contains(x: number, y: number): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public contains(p: java.awt.geom.Point2D): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public intersects(x: number, y: number, w: number, h: number): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public intersects(r: java.awt.geom.Rectangle2D): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public contains(x: number, y: number, w: number, h: number): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public contains(r: java.awt.geom.Rectangle2D): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getBounds(): java.awt.Rectangle; + /** + * Returns an iteration object that defines the boundary of the + * shape. + * The iterator for this class is not multi-threaded safe, + * which means that this CubicCurve2D class does not + * guarantee that modifications to the geometry of this + * CubicCurve2D object do not affect any iterations of + * that geometry that are already in process. + */ + // @ts-ignore + public getPathIterator(at: java.awt.geom.AffineTransform): java.awt.geom.PathIterator; + /** + * Return an iteration object that defines the boundary of the + * flattened shape. + * The iterator for this class is not multi-threaded safe, + * which means that this CubicCurve2D class does not + * guarantee that modifications to the geometry of this + * CubicCurve2D object do not affect any iterations of + * that geometry that are already in process. + */ + // @ts-ignore + public getPathIterator(at: java.awt.geom.AffineTransform, flatness: number): java.awt.geom.PathIterator; + /** + * Creates a new object of the same class as this object. + */ + // @ts-ignore + public clone(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.Dimension2D.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.Dimension2D.d.ts new file mode 100644 index 00000000..8f1fc807 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.Dimension2D.d.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + // @ts-ignore + abstract class Dimension2D extends java.lang.Object { + /** + * This is an abstract class that cannot be instantiated directly. + * Type-specific implementation subclasses are available for + * instantiation and provide a number of formats for storing + * the information necessary to satisfy the various accessor + * methods below. + */ + // @ts-ignore + constructor() + /** + * Returns the width of this Dimension in double + * precision. + */ + // @ts-ignore + public abstract getWidth(): number; + /** + * Returns the height of this Dimension in double + * precision. + */ + // @ts-ignore + public abstract getHeight(): number; + /** + * Sets the size of this Dimension object to the + * specified width and height. + * This method is included for completeness, to parallel the + * {@link java.awt.Component#getSize getSize} method of + * {@link java.awt.Component}. + */ + // @ts-ignore + public abstract setSize(width: number, height: number): void; + /** + * Sets the size of this Dimension2D object to + * match the specified size. + * This method is included for completeness, to parallel the + * getSize method of Component. + */ + // @ts-ignore + public setSize(d: java.awt.geom.Dimension2D): void; + /** + * Creates a new object of the same class as this object. + */ + // @ts-ignore + public clone(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.Ellipse2D.Double.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.Ellipse2D.Double.d.ts new file mode 100644 index 00000000..d6aa6b05 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.Ellipse2D.Double.d.ts @@ -0,0 +1,67 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + namespace Ellipse2D { + // @ts-ignore + class Double extends java.awt.geom.Ellipse2D { + /** + * Constructs a new Ellipse2D, initialized to + * location (0, 0) and size (0, 0). + */ + // @ts-ignore + constructor() + /** + * Constructs and initializes an Ellipse2D from the + * specified coordinates. + */ + // @ts-ignore + constructor(x: number, y: number, w: number, h: number) + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public width: number; + // @ts-ignore + public height: number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getX(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getY(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getWidth(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getHeight(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public setFrame(x: number, y: number, w: number, h: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getBounds2D(): java.awt.geom.Rectangle2D; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.Ellipse2D.Float.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.Ellipse2D.Float.d.ts new file mode 100644 index 00000000..a2b4eccc --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.Ellipse2D.Float.d.ts @@ -0,0 +1,73 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + namespace Ellipse2D { + // @ts-ignore + class Float extends java.awt.geom.Ellipse2D { + /** + * Constructs a new Ellipse2D, initialized to + * location (0, 0) and size (0, 0). + */ + // @ts-ignore + constructor() + /** + * Constructs and initializes an Ellipse2D from the + * specified coordinates. + */ + // @ts-ignore + constructor(x: number, y: number, w: number, h: number) + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public width: number; + // @ts-ignore + public height: number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getX(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getY(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getWidth(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getHeight(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * Sets the location and size of the framing rectangle of this + * Shape to the specified rectangular values. + */ + // @ts-ignore + public setFrame(x: number, y: number, w: number, h: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public setFrame(x: number, y: number, w: number, h: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getBounds2D(): java.awt.geom.Rectangle2D; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.Ellipse2D.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.Ellipse2D.d.ts new file mode 100644 index 00000000..d7d3e3da --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.Ellipse2D.d.ts @@ -0,0 +1,59 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + // @ts-ignore + abstract class Ellipse2D extends java.awt.geom.RectangularShape { + /** + * This is an abstract class that cannot be instantiated directly. + * Type-specific implementation subclasses are available for + * instantiation and provide a number of formats for storing + * the information necessary to satisfy the various accessor + * methods below. + */ + // @ts-ignore + constructor() + /** + * {@inheritDoc} + */ + // @ts-ignore + public contains(x: number, y: number): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public intersects(x: number, y: number, w: number, h: number): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public contains(x: number, y: number, w: number, h: number): boolean; + /** + * Returns an iteration object that defines the boundary of this + * Ellipse2D. + * The iterator for this class is multi-threaded safe, which means + * that this Ellipse2D class guarantees that + * modifications to the geometry of this Ellipse2D + * object do not affect any iterations of that geometry that + * are already in process. + */ + // @ts-ignore + public getPathIterator(at: java.awt.geom.AffineTransform): java.awt.geom.PathIterator; + /** + * Returns the hashcode for this Ellipse2D. + */ + // @ts-ignore + public hashCode(): number; + /** + * Determines whether or not the specified Object is + * equal to this Ellipse2D. The specified + * Object is equal to this Ellipse2D + * if it is an instance of Ellipse2D and if its + * location and size are the same as this Ellipse2D. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.FlatteningPathIterator.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.FlatteningPathIterator.d.ts new file mode 100644 index 00000000..198cee5e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.FlatteningPathIterator.d.ts @@ -0,0 +1,85 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + // @ts-ignore + class FlatteningPathIterator extends java.lang.Object { + /** + * Constructs a new FlatteningPathIterator object that + * flattens a path as it iterates over it. The iterator does not + * subdivide any curve read from the source iterator to more than + * 10 levels of subdivision which yields a maximum of 1024 line + * segments per curve. + */ + // @ts-ignore + constructor(src: java.awt.geom.PathIterator, flatness: number) + /** + * Constructs a new FlatteningPathIterator object + * that flattens a path as it iterates over it. + * The limit parameter allows you to control the + * maximum number of recursive subdivisions that the iterator + * can make before it assumes that the curve is flat enough + * without measuring against the flatness parameter. + * The flattened iteration therefore never generates more than + * a maximum of (2^limit) line segments per curve. + */ + // @ts-ignore + constructor(src: java.awt.geom.PathIterator, flatness: number, limit: number) + /** + * Returns the flatness of this iterator. + */ + // @ts-ignore + public getFlatness(): number; + /** + * Returns the recursion limit of this iterator. + */ + // @ts-ignore + public getRecursionLimit(): number; + /** + * Returns the winding rule for determining the interior of the + * path. + */ + // @ts-ignore + public getWindingRule(): number; + /** + * Tests if the iteration is complete. + */ + // @ts-ignore + public isDone(): boolean; + /** + * Moves the iterator to the next segment of the path forwards + * along the primary direction of traversal as long as there are + * more points in that direction. + */ + // @ts-ignore + public next(): void; + /** + * Returns the coordinates and type of the current path segment in + * the iteration. + * The return value is the path segment type: + * SEG_MOVETO, SEG_LINETO, or SEG_CLOSE. + * A float array of length 6 must be passed in and can be used to + * store the coordinates of the point(s). + * Each point is stored as a pair of float x,y coordinates. + * SEG_MOVETO and SEG_LINETO types return one point, + * and SEG_CLOSE does not return any points. + */ + // @ts-ignore + public currentSegment(coords: number): number; + /** + * Returns the coordinates and type of the current path segment in + * the iteration. + * The return value is the path segment type: + * SEG_MOVETO, SEG_LINETO, or SEG_CLOSE. + * A double array of length 6 must be passed in and can be used to + * store the coordinates of the point(s). + * Each point is stored as a pair of double x,y coordinates. + * SEG_MOVETO and SEG_LINETO types return one point, + * and SEG_CLOSE does not return any points. + */ + // @ts-ignore + public currentSegment(coords: number): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.GeneralPath.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.GeneralPath.d.ts new file mode 100644 index 00000000..63ecb5df --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.GeneralPath.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + // @ts-ignore + class GeneralPath extends java.awt.geom.Path2D.Float { + /** + * Constructs a new empty single precision {@code GeneralPath} object + * with a default winding rule of {@link #WIND_NON_ZERO}. + */ + // @ts-ignore + constructor() + /** + * Constructs a new GeneralPath object with the specified + * winding rule to control operations that require the interior of the + * path to be defined. + */ + // @ts-ignore + constructor(rule: number) + /** + * Constructs a new GeneralPath object with the specified + * winding rule and the specified initial capacity to store path + * coordinates. + * This number is an initial guess as to how many path segments + * will be added to the path, but the storage is expanded as + * needed to store whatever path segments are added. + */ + // @ts-ignore + constructor(rule: number, initialCapacity: number) + /** + * Constructs a new GeneralPath object from an arbitrary + * {@link Shape} object. + * All of the initial geometry and the winding rule for this path are + * taken from the specified Shape object. + */ + // @ts-ignore + constructor(s: java.awt.Shape) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.IllegalPathStateException.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.IllegalPathStateException.d.ts new file mode 100644 index 00000000..1deb73c2 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.IllegalPathStateException.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + // @ts-ignore + class IllegalPathStateException extends java.lang.RuntimeException { + /** + * Constructs an IllegalPathStateException with no + * detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs an IllegalPathStateException with the + * specified detail message. + */ + // @ts-ignore + constructor(s: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.Line2D.Double.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.Line2D.Double.d.ts new file mode 100644 index 00000000..11ef5364 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.Line2D.Double.d.ts @@ -0,0 +1,77 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + namespace Line2D { + // @ts-ignore + class Double extends java.awt.geom.Line2D { + /** + * Constructs and initializes a Line with coordinates (0, 0) → (0, 0). + */ + // @ts-ignore + constructor() + /** + * Constructs and initializes a Line2D from the + * specified coordinates. + */ + // @ts-ignore + constructor(x1: number, y1: number, x2: number, y2: number) + /** + * Constructs and initializes a Line2D from the + * specified Point2D objects. + */ + // @ts-ignore + constructor(p1: java.awt.geom.Point2D, p2: java.awt.geom.Point2D) + // @ts-ignore + public x1: number; + // @ts-ignore + public y1: number; + // @ts-ignore + public x2: number; + // @ts-ignore + public y2: number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getX1(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getY1(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getP1(): java.awt.geom.Point2D; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getX2(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getY2(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getP2(): java.awt.geom.Point2D; + /** + * {@inheritDoc} + */ + // @ts-ignore + public setLine(x1: number, y1: number, x2: number, y2: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getBounds2D(): java.awt.geom.Rectangle2D; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.Line2D.Float.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.Line2D.Float.d.ts new file mode 100644 index 00000000..8829e8d0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.Line2D.Float.d.ts @@ -0,0 +1,82 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + namespace Line2D { + // @ts-ignore + class Float extends java.awt.geom.Line2D { + /** + * Constructs and initializes a Line with coordinates (0, 0) → (0, 0). + */ + // @ts-ignore + constructor() + /** + * Constructs and initializes a Line from the specified coordinates. + */ + // @ts-ignore + constructor(x1: number, y1: number, x2: number, y2: number) + /** + * Constructs and initializes a Line2D from the + * specified Point2D objects. + */ + // @ts-ignore + constructor(p1: java.awt.geom.Point2D, p2: java.awt.geom.Point2D) + // @ts-ignore + public x1: number; + // @ts-ignore + public y1: number; + // @ts-ignore + public x2: number; + // @ts-ignore + public y2: number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getX1(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getY1(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getP1(): java.awt.geom.Point2D; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getX2(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getY2(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getP2(): java.awt.geom.Point2D; + /** + * {@inheritDoc} + */ + // @ts-ignore + public setLine(x1: number, y1: number, x2: number, y2: number): void; + /** + * Sets the location of the end points of this Line2D + * to the specified float coordinates. + */ + // @ts-ignore + public setLine(x1: number, y1: number, x2: number, y2: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getBounds2D(): java.awt.geom.Rectangle2D; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.Line2D.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.Line2D.d.ts new file mode 100644 index 00000000..062fb80a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.Line2D.d.ts @@ -0,0 +1,319 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + // @ts-ignore + abstract class Line2D extends java.lang.Object { + /** + * This is an abstract class that cannot be instantiated directly. + * Type-specific implementation subclasses are available for + * instantiation and provide a number of formats for storing + * the information necessary to satisfy the various accessory + * methods below. + */ + // @ts-ignore + constructor() + /** + * Returns the X coordinate of the start point in double precision. + */ + // @ts-ignore + public abstract getX1(): number; + /** + * Returns the Y coordinate of the start point in double precision. + */ + // @ts-ignore + public abstract getY1(): number; + /** + * Returns the start Point2D of this Line2D. + */ + // @ts-ignore + public abstract getP1(): java.awt.geom.Point2D; + /** + * Returns the X coordinate of the end point in double precision. + */ + // @ts-ignore + public abstract getX2(): number; + /** + * Returns the Y coordinate of the end point in double precision. + */ + // @ts-ignore + public abstract getY2(): number; + /** + * Returns the end Point2D of this Line2D. + */ + // @ts-ignore + public abstract getP2(): java.awt.geom.Point2D; + /** + * Sets the location of the end points of this Line2D to + * the specified double coordinates. + */ + // @ts-ignore + public abstract setLine(x1: number, y1: number, x2: number, y2: number): void; + /** + * Sets the location of the end points of this Line2D to + * the specified Point2D coordinates. + */ + // @ts-ignore + public setLine(p1: java.awt.geom.Point2D, p2: java.awt.geom.Point2D): void; + /** + * Sets the location of the end points of this Line2D to + * the same as those end points of the specified Line2D. + */ + // @ts-ignore + public setLine(l: java.awt.geom.Line2D): void; + /** + * Returns an indicator of where the specified point + * {@code (px,py)} lies with respect to the line segment from + * {@code (x1,y1)} to {@code (x2,y2)}. + * The return value can be either 1, -1, or 0 and indicates + * in which direction the specified line must pivot around its + * first end point, {@code (x1,y1)}, in order to point at the + * specified point {@code (px,py)}. + *

A return value of 1 indicates that the line segment must + * turn in the direction that takes the positive X axis towards + * the negative Y axis. In the default coordinate system used by + * Java 2D, this direction is counterclockwise. + *

A return value of -1 indicates that the line segment must + * turn in the direction that takes the positive X axis towards + * the positive Y axis. In the default coordinate system, this + * direction is clockwise. + *

A return value of 0 indicates that the point lies + * exactly on the line segment. Note that an indicator value + * of 0 is rare and not useful for determining collinearity + * because of floating point rounding issues. + *

If the point is colinear with the line segment, but + * not between the end points, then the value will be -1 if the point + * lies "beyond {@code (x1,y1)}" or 1 if the point lies + * "beyond {@code (x2,y2)}". + */ + // @ts-ignore + public static relativeCCW(x1: number, y1: number, x2: number, y2: number, px: number, py: number): number; + /** + * Returns an indicator of where the specified point + * {@code (px,py)} lies with respect to this line segment. + * See the method comments of + * {@link #relativeCCW(double, double, double, double, double, double)} + * to interpret the return value. + */ + // @ts-ignore + public relativeCCW(px: number, py: number): number; + /** + * Returns an indicator of where the specified Point2D + * lies with respect to this line segment. + * See the method comments of + * {@link #relativeCCW(double, double, double, double, double, double)} + * to interpret the return value. + */ + // @ts-ignore + public relativeCCW(p: java.awt.geom.Point2D): number; + /** + * Tests if the line segment from {@code (x1,y1)} to + * {@code (x2,y2)} intersects the line segment from {@code (x3,y3)} + * to {@code (x4,y4)}. + */ + // @ts-ignore + public static linesIntersect(x1: number, y1: number, x2: number, y2: number, x3: number, y3: number, x4: number, y4: number): boolean; + /** + * Tests if the line segment from {@code (x1,y1)} to + * {@code (x2,y2)} intersects this line segment. + */ + // @ts-ignore + public intersectsLine(x1: number, y1: number, x2: number, y2: number): boolean; + /** + * Tests if the specified line segment intersects this line segment. + */ + // @ts-ignore + public intersectsLine(l: java.awt.geom.Line2D): boolean; + /** + * Returns the square of the distance from a point to a line segment. + * The distance measured is the distance between the specified + * point and the closest point between the specified end points. + * If the specified point intersects the line segment in between the + * end points, this method returns 0.0. + */ + // @ts-ignore + public static ptSegDistSq(x1: number, y1: number, x2: number, y2: number, px: number, py: number): number; + /** + * Returns the distance from a point to a line segment. + * The distance measured is the distance between the specified + * point and the closest point between the specified end points. + * If the specified point intersects the line segment in between the + * end points, this method returns 0.0. + */ + // @ts-ignore + public static ptSegDist(x1: number, y1: number, x2: number, y2: number, px: number, py: number): number; + /** + * Returns the square of the distance from a point to this line segment. + * The distance measured is the distance between the specified + * point and the closest point between the current line's end points. + * If the specified point intersects the line segment in between the + * end points, this method returns 0.0. + */ + // @ts-ignore + public ptSegDistSq(px: number, py: number): number; + /** + * Returns the square of the distance from a Point2D to + * this line segment. + * The distance measured is the distance between the specified + * point and the closest point between the current line's end points. + * If the specified point intersects the line segment in between the + * end points, this method returns 0.0. + */ + // @ts-ignore + public ptSegDistSq(pt: java.awt.geom.Point2D): number; + /** + * Returns the distance from a point to this line segment. + * The distance measured is the distance between the specified + * point and the closest point between the current line's end points. + * If the specified point intersects the line segment in between the + * end points, this method returns 0.0. + */ + // @ts-ignore + public ptSegDist(px: number, py: number): number; + /** + * Returns the distance from a Point2D to this line + * segment. + * The distance measured is the distance between the specified + * point and the closest point between the current line's end points. + * If the specified point intersects the line segment in between the + * end points, this method returns 0.0. + */ + // @ts-ignore + public ptSegDist(pt: java.awt.geom.Point2D): number; + /** + * Returns the square of the distance from a point to a line. + * The distance measured is the distance between the specified + * point and the closest point on the infinitely-extended line + * defined by the specified coordinates. If the specified point + * intersects the line, this method returns 0.0. + */ + // @ts-ignore + public static ptLineDistSq(x1: number, y1: number, x2: number, y2: number, px: number, py: number): number; + /** + * Returns the distance from a point to a line. + * The distance measured is the distance between the specified + * point and the closest point on the infinitely-extended line + * defined by the specified coordinates. If the specified point + * intersects the line, this method returns 0.0. + */ + // @ts-ignore + public static ptLineDist(x1: number, y1: number, x2: number, y2: number, px: number, py: number): number; + /** + * Returns the square of the distance from a point to this line. + * The distance measured is the distance between the specified + * point and the closest point on the infinitely-extended line + * defined by this Line2D. If the specified point + * intersects the line, this method returns 0.0. + */ + // @ts-ignore + public ptLineDistSq(px: number, py: number): number; + /** + * Returns the square of the distance from a specified + * Point2D to this line. + * The distance measured is the distance between the specified + * point and the closest point on the infinitely-extended line + * defined by this Line2D. If the specified point + * intersects the line, this method returns 0.0. + */ + // @ts-ignore + public ptLineDistSq(pt: java.awt.geom.Point2D): number; + /** + * Returns the distance from a point to this line. + * The distance measured is the distance between the specified + * point and the closest point on the infinitely-extended line + * defined by this Line2D. If the specified point + * intersects the line, this method returns 0.0. + */ + // @ts-ignore + public ptLineDist(px: number, py: number): number; + /** + * Returns the distance from a Point2D to this line. + * The distance measured is the distance between the specified + * point and the closest point on the infinitely-extended line + * defined by this Line2D. If the specified point + * intersects the line, this method returns 0.0. + */ + // @ts-ignore + public ptLineDist(pt: java.awt.geom.Point2D): number; + /** + * Tests if a specified coordinate is inside the boundary of this + * Line2D. This method is required to implement the + * {@link Shape} interface, but in the case of Line2D + * objects it always returns false since a line contains + * no area. + */ + // @ts-ignore + public contains(x: number, y: number): boolean; + /** + * Tests if a given Point2D is inside the boundary of + * this Line2D. + * This method is required to implement the {@link Shape} interface, + * but in the case of Line2D objects it always returns + * false since a line contains no area. + */ + // @ts-ignore + public contains(p: java.awt.geom.Point2D): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public intersects(x: number, y: number, w: number, h: number): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public intersects(r: java.awt.geom.Rectangle2D): boolean; + /** + * Tests if the interior of this Line2D entirely contains + * the specified set of rectangular coordinates. + * This method is required to implement the Shape interface, + * but in the case of Line2D objects it always returns + * false since a line contains no area. + */ + // @ts-ignore + public contains(x: number, y: number, w: number, h: number): boolean; + /** + * Tests if the interior of this Line2D entirely contains + * the specified Rectangle2D. + * This method is required to implement the Shape interface, + * but in the case of Line2D objects it always returns + * false since a line contains no area. + */ + // @ts-ignore + public contains(r: java.awt.geom.Rectangle2D): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getBounds(): java.awt.Rectangle; + /** + * Returns an iteration object that defines the boundary of this + * Line2D. + * The iterator for this class is not multi-threaded safe, + * which means that this Line2D class does not + * guarantee that modifications to the geometry of this + * Line2D object do not affect any iterations of that + * geometry that are already in process. + */ + // @ts-ignore + public getPathIterator(at: java.awt.geom.AffineTransform): java.awt.geom.PathIterator; + /** + * Returns an iteration object that defines the boundary of this + * flattened Line2D. + * The iterator for this class is not multi-threaded safe, + * which means that this Line2D class does not + * guarantee that modifications to the geometry of this + * Line2D object do not affect any iterations of that + * geometry that are already in process. + */ + // @ts-ignore + public getPathIterator(at: java.awt.geom.AffineTransform, flatness: number): java.awt.geom.PathIterator; + /** + * Creates a new object of the same class as this object. + */ + // @ts-ignore + public clone(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.NoninvertibleTransformException.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.NoninvertibleTransformException.d.ts new file mode 100644 index 00000000..318a41c3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.NoninvertibleTransformException.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + // @ts-ignore + class NoninvertibleTransformException extends java.lang.Exception { + /** + * Constructs an instance of + * NoninvertibleTransformException + * with the specified detail message. + */ + // @ts-ignore + constructor(s: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.Path2D.Double.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.Path2D.Double.d.ts new file mode 100644 index 00000000..0f68c89c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.Path2D.Double.d.ts @@ -0,0 +1,104 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + namespace Path2D { + // @ts-ignore + class Double extends java.awt.geom.Path2D { + /** + * Constructs a new empty double precision {@code Path2D} object + * with a default winding rule of {@link #WIND_NON_ZERO}. + */ + // @ts-ignore + constructor() + /** + * Constructs a new empty double precision {@code Path2D} object + * with the specified winding rule to control operations that + * require the interior of the path to be defined. + */ + // @ts-ignore + constructor(rule: number) + /** + * Constructs a new empty double precision {@code Path2D} object + * with the specified winding rule and the specified initial + * capacity to store path segments. + * This number is an initial guess as to how many path segments + * are in the path, but the storage is expanded as needed to store + * whatever path segments are added to this path. + */ + // @ts-ignore + constructor(rule: number, initialCapacity: number) + /** + * Constructs a new double precision {@code Path2D} object + * from an arbitrary {@link Shape} object. + * All of the initial geometry and the winding rule for this path are + * taken from the specified {@code Shape} object. + */ + // @ts-ignore + constructor(s: java.awt.Shape) + /** + * Constructs a new double precision {@code Path2D} object + * from an arbitrary {@link Shape} object, transformed by an + * {@link AffineTransform} object. + * All of the initial geometry and the winding rule for this path are + * taken from the specified {@code Shape} object and transformed + * by the specified {@code AffineTransform} object. + */ + // @ts-ignore + constructor(s: java.awt.Shape, at: java.awt.geom.AffineTransform) + /** + * {@inheritDoc} + */ + // @ts-ignore + public moveTo(x: number, y: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public lineTo(x: number, y: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public quadTo(x1: number, y1: number, x2: number, y2: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public curveTo(x1: number, y1: number, x2: number, y2: number, x3: number, y3: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public append(pi: java.awt.geom.PathIterator, connect: boolean): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public transform(at: java.awt.geom.AffineTransform): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getBounds2D(): java.awt.geom.Rectangle2D; + /** + * {@inheritDoc} + *

+ * The iterator for this class is not multi-threaded safe, + * which means that the {@code Path2D} class does not + * guarantee that modifications to the geometry of this + * {@code Path2D} object do not affect any iterations of + * that geometry that are already in process. + */ + // @ts-ignore + public getPathIterator(at: java.awt.geom.AffineTransform): java.awt.geom.PathIterator; + /** + * Creates a new object of the same class as this object. + */ + // @ts-ignore + public clone(): java.lang.Object; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.Path2D.Float.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.Path2D.Float.d.ts new file mode 100644 index 00000000..2276cae3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.Path2D.Float.d.ts @@ -0,0 +1,153 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + namespace Path2D { + // @ts-ignore + class Float extends java.awt.geom.Path2D { + /** + * Constructs a new empty single precision {@code Path2D} object + * with a default winding rule of {@link #WIND_NON_ZERO}. + */ + // @ts-ignore + constructor() + /** + * Constructs a new empty single precision {@code Path2D} object + * with the specified winding rule to control operations that + * require the interior of the path to be defined. + */ + // @ts-ignore + constructor(rule: number) + /** + * Constructs a new empty single precision {@code Path2D} object + * with the specified winding rule and the specified initial + * capacity to store path segments. + * This number is an initial guess as to how many path segments + * will be added to the path, but the storage is expanded as + * needed to store whatever path segments are added. + */ + // @ts-ignore + constructor(rule: number, initialCapacity: number) + /** + * Constructs a new single precision {@code Path2D} object + * from an arbitrary {@link Shape} object. + * All of the initial geometry and the winding rule for this path are + * taken from the specified {@code Shape} object. + */ + // @ts-ignore + constructor(s: java.awt.Shape) + /** + * Constructs a new single precision {@code Path2D} object + * from an arbitrary {@link Shape} object, transformed by an + * {@link AffineTransform} object. + * All of the initial geometry and the winding rule for this path are + * taken from the specified {@code Shape} object and transformed + * by the specified {@code AffineTransform} object. + */ + // @ts-ignore + constructor(s: java.awt.Shape, at: java.awt.geom.AffineTransform) + /** + * {@inheritDoc} + */ + // @ts-ignore + public moveTo(x: number, y: number): void; + /** + * Adds a point to the path by moving to the specified + * coordinates specified in float precision. + *

+ * This method provides a single precision variant of + * the double precision {@code moveTo()} method on the + * base {@code Path2D} class. + */ + // @ts-ignore + public moveTo(x: number, y: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public lineTo(x: number, y: number): void; + /** + * Adds a point to the path by drawing a straight line from the + * current coordinates to the new specified coordinates + * specified in float precision. + *

+ * This method provides a single precision variant of + * the double precision {@code lineTo()} method on the + * base {@code Path2D} class. + */ + // @ts-ignore + public lineTo(x: number, y: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public quadTo(x1: number, y1: number, x2: number, y2: number): void; + /** + * Adds a curved segment, defined by two new points, to the path by + * drawing a Quadratic curve that intersects both the current + * coordinates and the specified coordinates {@code (x2,y2)}, + * using the specified point {@code (x1,y1)} as a quadratic + * parametric control point. + * All coordinates are specified in float precision. + *

+ * This method provides a single precision variant of + * the double precision {@code quadTo()} method on the + * base {@code Path2D} class. + */ + // @ts-ignore + public quadTo(x1: number, y1: number, x2: number, y2: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public curveTo(x1: number, y1: number, x2: number, y2: number, x3: number, y3: number): void; + /** + * Adds a curved segment, defined by three new points, to the path by + * drawing a Bézier curve that intersects both the current + * coordinates and the specified coordinates {@code (x3,y3)}, + * using the specified points {@code (x1,y1)} and {@code (x2,y2)} as + * Bézier control points. + * All coordinates are specified in float precision. + *

+ * This method provides a single precision variant of + * the double precision {@code curveTo()} method on the + * base {@code Path2D} class. + */ + // @ts-ignore + public curveTo(x1: number, y1: number, x2: number, y2: number, x3: number, y3: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public append(pi: java.awt.geom.PathIterator, connect: boolean): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public transform(at: java.awt.geom.AffineTransform): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getBounds2D(): java.awt.geom.Rectangle2D; + /** + * {@inheritDoc} + *

+ * The iterator for this class is not multi-threaded safe, + * which means that the {@code Path2D} class does not + * guarantee that modifications to the geometry of this + * {@code Path2D} object do not affect any iterations of + * that geometry that are already in process. + */ + // @ts-ignore + public getPathIterator(at: java.awt.geom.AffineTransform): java.awt.geom.PathIterator; + /** + * Creates a new object of the same class as this object. + */ + // @ts-ignore + public clone(): java.lang.Object; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.Path2D.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.Path2D.d.ts new file mode 100644 index 00000000..0977a0bd --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.Path2D.d.ts @@ -0,0 +1,339 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + // @ts-ignore + abstract class Path2D extends java.lang.Object { + // @ts-ignore + public static WIND_EVEN_ODD: number; + // @ts-ignore + public static WIND_NON_ZERO: number; + /** + * Adds a point to the path by moving to the specified + * coordinates specified in double precision. + */ + // @ts-ignore + public abstract moveTo(x: number, y: number): void; + /** + * Adds a point to the path by drawing a straight line from the + * current coordinates to the new specified coordinates + * specified in double precision. + */ + // @ts-ignore + public abstract lineTo(x: number, y: number): void; + /** + * Adds a curved segment, defined by two new points, to the path by + * drawing a Quadratic curve that intersects both the current + * coordinates and the specified coordinates {@code (x2,y2)}, + * using the specified point {@code (x1,y1)} as a quadratic + * parametric control point. + * All coordinates are specified in double precision. + */ + // @ts-ignore + public abstract quadTo(x1: number, y1: number, x2: number, y2: number): void; + /** + * Adds a curved segment, defined by three new points, to the path by + * drawing a Bézier curve that intersects both the current + * coordinates and the specified coordinates {@code (x3,y3)}, + * using the specified points {@code (x1,y1)} and {@code (x2,y2)} as + * Bézier control points. + * All coordinates are specified in double precision. + */ + // @ts-ignore + public abstract curveTo(x1: number, y1: number, x2: number, y2: number, x3: number, y3: number): void; + /** + * Closes the current subpath by drawing a straight line back to + * the coordinates of the last {@code moveTo}. If the path is already + * closed then this method has no effect. + */ + // @ts-ignore + public closePath(): void; + /** + * Appends the geometry of the specified {@code Shape} object to the + * path, possibly connecting the new geometry to the existing path + * segments with a line segment. + * If the {@code connect} parameter is {@code true} and the + * path is not empty then any initial {@code moveTo} in the + * geometry of the appended {@code Shape} + * is turned into a {@code lineTo} segment. + * If the destination coordinates of such a connecting {@code lineTo} + * segment match the ending coordinates of a currently open + * subpath then the segment is omitted as superfluous. + * The winding rule of the specified {@code Shape} is ignored + * and the appended geometry is governed by the winding + * rule specified for this path. + */ + // @ts-ignore + public append(s: java.awt.Shape, connect: boolean): void; + /** + * Returns the fill style winding rule. + */ + // @ts-ignore + public getWindingRule(): number; + /** + * Sets the winding rule for this path to the specified value. + */ + // @ts-ignore + public setWindingRule(rule: number): void; + /** + * Returns the coordinates most recently added to the end of the path + * as a {@link Point2D} object. + */ + // @ts-ignore + public getCurrentPoint(): java.awt.geom.Point2D; + /** + * Resets the path to empty. The append position is set back to the + * beginning of the path and all coordinates and point types are + * forgotten. + */ + // @ts-ignore + public reset(): void; + /** + * Transforms the geometry of this path using the specified + * {@link AffineTransform}. + * The geometry is transformed in place, which permanently changes the + * boundary defined by this object. + */ + // @ts-ignore + public abstract transform(at: java.awt.geom.AffineTransform): void; + /** + * Returns a new {@code Shape} representing a transformed version + * of this {@code Path2D}. + * Note that the exact type and coordinate precision of the return + * value is not specified for this method. + * The method will return a Shape that contains no less precision + * for the transformed geometry than this {@code Path2D} currently + * maintains, but it may contain no more precision either. + * If the tradeoff of precision vs. storage size in the result is + * important then the convenience constructors in the + * {@link Path2D.Float#Path2D.Float(Shape, AffineTransform) Path2D.Float} + * and + * {@link Path2D.Double#Path2D.Double(Shape, AffineTransform) Path2D.Double} + * subclasses should be used to make the choice explicit. + */ + // @ts-ignore + public createTransformedShape(at: java.awt.geom.AffineTransform): java.awt.Shape; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getBounds(): java.awt.Rectangle; + /** + * Tests if the specified coordinates are inside the closed + * boundary of the specified {@link PathIterator}. + *

+ * This method provides a basic facility for implementors of + * the {@link Shape} interface to implement support for the + * {@link Shape#contains(double, double)} method. + */ + // @ts-ignore + public static contains(pi: java.awt.geom.PathIterator, x: number, y: number): boolean; + /** + * Tests if the specified {@link Point2D} is inside the closed + * boundary of the specified {@link PathIterator}. + *

+ * This method provides a basic facility for implementors of + * the {@link Shape} interface to implement support for the + * {@link Shape#contains(Point2D)} method. + */ + // @ts-ignore + public static contains(pi: java.awt.geom.PathIterator, p: java.awt.geom.Point2D): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public contains(x: number, y: number): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public contains(p: java.awt.geom.Point2D): boolean; + /** + * Tests if the specified rectangular area is entirely inside the + * closed boundary of the specified {@link PathIterator}. + *

+ * This method provides a basic facility for implementors of + * the {@link Shape} interface to implement support for the + * {@link Shape#contains(double, double, double, double)} method. + *

+ * This method object may conservatively return false in + * cases where the specified rectangular area intersects a + * segment of the path, but that segment does not represent a + * boundary between the interior and exterior of the path. + * Such segments could lie entirely within the interior of the + * path if they are part of a path with a {@link #WIND_NON_ZERO} + * winding rule or if the segments are retraced in the reverse + * direction such that the two sets of segments cancel each + * other out without any exterior area falling between them. + * To determine whether segments represent true boundaries of + * the interior of the path would require extensive calculations + * involving all of the segments of the path and the winding + * rule and are thus beyond the scope of this implementation. + */ + // @ts-ignore + public static contains(pi: java.awt.geom.PathIterator, x: number, y: number, w: number, h: number): boolean; + /** + * Tests if the specified {@link Rectangle2D} is entirely inside the + * closed boundary of the specified {@link PathIterator}. + *

+ * This method provides a basic facility for implementors of + * the {@link Shape} interface to implement support for the + * {@link Shape#contains(Rectangle2D)} method. + *

+ * This method object may conservatively return false in + * cases where the specified rectangular area intersects a + * segment of the path, but that segment does not represent a + * boundary between the interior and exterior of the path. + * Such segments could lie entirely within the interior of the + * path if they are part of a path with a {@link #WIND_NON_ZERO} + * winding rule or if the segments are retraced in the reverse + * direction such that the two sets of segments cancel each + * other out without any exterior area falling between them. + * To determine whether segments represent true boundaries of + * the interior of the path would require extensive calculations + * involving all of the segments of the path and the winding + * rule and are thus beyond the scope of this implementation. + */ + // @ts-ignore + public static contains(pi: java.awt.geom.PathIterator, r: java.awt.geom.Rectangle2D): boolean; + /** + * {@inheritDoc} + *

+ * This method object may conservatively return false in + * cases where the specified rectangular area intersects a + * segment of the path, but that segment does not represent a + * boundary between the interior and exterior of the path. + * Such segments could lie entirely within the interior of the + * path if they are part of a path with a {@link #WIND_NON_ZERO} + * winding rule or if the segments are retraced in the reverse + * direction such that the two sets of segments cancel each + * other out without any exterior area falling between them. + * To determine whether segments represent true boundaries of + * the interior of the path would require extensive calculations + * involving all of the segments of the path and the winding + * rule and are thus beyond the scope of this implementation. + */ + // @ts-ignore + public contains(x: number, y: number, w: number, h: number): boolean; + /** + * {@inheritDoc} + *

+ * This method object may conservatively return false in + * cases where the specified rectangular area intersects a + * segment of the path, but that segment does not represent a + * boundary between the interior and exterior of the path. + * Such segments could lie entirely within the interior of the + * path if they are part of a path with a {@link #WIND_NON_ZERO} + * winding rule or if the segments are retraced in the reverse + * direction such that the two sets of segments cancel each + * other out without any exterior area falling between them. + * To determine whether segments represent true boundaries of + * the interior of the path would require extensive calculations + * involving all of the segments of the path and the winding + * rule and are thus beyond the scope of this implementation. + */ + // @ts-ignore + public contains(r: java.awt.geom.Rectangle2D): boolean; + /** + * Tests if the interior of the specified {@link PathIterator} + * intersects the interior of a specified set of rectangular + * coordinates. + *

+ * This method provides a basic facility for implementors of + * the {@link Shape} interface to implement support for the + * {@link Shape#intersects(double, double, double, double)} method. + *

+ * This method object may conservatively return true in + * cases where the specified rectangular area intersects a + * segment of the path, but that segment does not represent a + * boundary between the interior and exterior of the path. + * Such a case may occur if some set of segments of the + * path are retraced in the reverse direction such that the + * two sets of segments cancel each other out without any + * interior area between them. + * To determine whether segments represent true boundaries of + * the interior of the path would require extensive calculations + * involving all of the segments of the path and the winding + * rule and are thus beyond the scope of this implementation. + */ + // @ts-ignore + public static intersects(pi: java.awt.geom.PathIterator, x: number, y: number, w: number, h: number): boolean; + /** + * Tests if the interior of the specified {@link PathIterator} + * intersects the interior of a specified {@link Rectangle2D}. + *

+ * This method provides a basic facility for implementors of + * the {@link Shape} interface to implement support for the + * {@link Shape#intersects(Rectangle2D)} method. + *

+ * This method object may conservatively return true in + * cases where the specified rectangular area intersects a + * segment of the path, but that segment does not represent a + * boundary between the interior and exterior of the path. + * Such a case may occur if some set of segments of the + * path are retraced in the reverse direction such that the + * two sets of segments cancel each other out without any + * interior area between them. + * To determine whether segments represent true boundaries of + * the interior of the path would require extensive calculations + * involving all of the segments of the path and the winding + * rule and are thus beyond the scope of this implementation. + */ + // @ts-ignore + public static intersects(pi: java.awt.geom.PathIterator, r: java.awt.geom.Rectangle2D): boolean; + /** + * {@inheritDoc} + *

+ * This method object may conservatively return true in + * cases where the specified rectangular area intersects a + * segment of the path, but that segment does not represent a + * boundary between the interior and exterior of the path. + * Such a case may occur if some set of segments of the + * path are retraced in the reverse direction such that the + * two sets of segments cancel each other out without any + * interior area between them. + * To determine whether segments represent true boundaries of + * the interior of the path would require extensive calculations + * involving all of the segments of the path and the winding + * rule and are thus beyond the scope of this implementation. + */ + // @ts-ignore + public intersects(x: number, y: number, w: number, h: number): boolean; + /** + * {@inheritDoc} + *

+ * This method object may conservatively return true in + * cases where the specified rectangular area intersects a + * segment of the path, but that segment does not represent a + * boundary between the interior and exterior of the path. + * Such a case may occur if some set of segments of the + * path are retraced in the reverse direction such that the + * two sets of segments cancel each other out without any + * interior area between them. + * To determine whether segments represent true boundaries of + * the interior of the path would require extensive calculations + * involving all of the segments of the path and the winding + * rule and are thus beyond the scope of this implementation. + */ + // @ts-ignore + public intersects(r: java.awt.geom.Rectangle2D): boolean; + /** + * {@inheritDoc} + *

+ * The iterator for this class is not multi-threaded safe, + * which means that this {@code Path2D} class does not + * guarantee that modifications to the geometry of this + * {@code Path2D} object do not affect any iterations of + * that geometry that are already in process. + */ + // @ts-ignore + public getPathIterator(at: java.awt.geom.AffineTransform, flatness: number): java.awt.geom.PathIterator; + /** + * Creates a new object of the same class as this object. + */ + // @ts-ignore + public abstract clone(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.PathIterator.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.PathIterator.d.ts new file mode 100644 index 00000000..666c8d35 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.PathIterator.d.ts @@ -0,0 +1,72 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + // @ts-ignore + interface PathIterator { + // @ts-ignore + WIND_EVEN_ODD: number; + // @ts-ignore + WIND_NON_ZERO: number; + // @ts-ignore + SEG_MOVETO: number; + // @ts-ignore + SEG_LINETO: number; + // @ts-ignore + SEG_QUADTO: number; + // @ts-ignore + SEG_CUBICTO: number; + // @ts-ignore + SEG_CLOSE: number; + /** + * Returns the winding rule for determining the interior of the + * path. + */ + // @ts-ignore + getWindingRule(): number; + /** + * Tests if the iteration is complete. + */ + // @ts-ignore + isDone(): boolean; + /** + * Moves the iterator to the next segment of the path forwards + * along the primary direction of traversal as long as there are + * more points in that direction. + */ + // @ts-ignore + next(): void; + /** + * Returns the coordinates and type of the current path segment in + * the iteration. + * The return value is the path-segment type: + * SEG_MOVETO, SEG_LINETO, SEG_QUADTO, SEG_CUBICTO, or SEG_CLOSE. + * A float array of length 6 must be passed in and can be used to + * store the coordinates of the point(s). + * Each point is stored as a pair of float x,y coordinates. + * SEG_MOVETO and SEG_LINETO types returns one point, + * SEG_QUADTO returns two points, + * SEG_CUBICTO returns 3 points + * and SEG_CLOSE does not return any points. + */ + // @ts-ignore + currentSegment(coords: number): number; + /** + * Returns the coordinates and type of the current path segment in + * the iteration. + * The return value is the path-segment type: + * SEG_MOVETO, SEG_LINETO, SEG_QUADTO, SEG_CUBICTO, or SEG_CLOSE. + * A double array of length 6 must be passed in and can be used to + * store the coordinates of the point(s). + * Each point is stored as a pair of double x,y coordinates. + * SEG_MOVETO and SEG_LINETO types returns one point, + * SEG_QUADTO returns two points, + * SEG_CUBICTO returns 3 points + * and SEG_CLOSE does not return any points. + */ + // @ts-ignore + currentSegment(coords: number): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.Point2D.Double.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.Point2D.Double.d.ts new file mode 100644 index 00000000..b743a1b5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.Point2D.Double.d.ts @@ -0,0 +1,49 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + namespace Point2D { + // @ts-ignore + class Double extends java.awt.geom.Point2D { + /** + * Constructs and initializes a Point2D with + * coordinates (0, 0). + */ + // @ts-ignore + constructor() + /** + * Constructs and initializes a Point2D with the + * specified coordinates. + */ + // @ts-ignore + constructor(x: number, y: number) + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getX(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getY(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public setLocation(x: number, y: number): void; + /** + * Returns a String that represents the value + * of this Point2D. + */ + // @ts-ignore + public toString(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.Point2D.Float.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.Point2D.Float.d.ts new file mode 100644 index 00000000..46c960b9 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.Point2D.Float.d.ts @@ -0,0 +1,55 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + namespace Point2D { + // @ts-ignore + class Float extends java.awt.geom.Point2D { + /** + * Constructs and initializes a Point2D with + * coordinates (0, 0). + */ + // @ts-ignore + constructor() + /** + * Constructs and initializes a Point2D with + * the specified coordinates. + */ + // @ts-ignore + constructor(x: number, y: number) + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getX(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getY(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public setLocation(x: number, y: number): void; + /** + * Sets the location of this Point2D to the + * specified float coordinates. + */ + // @ts-ignore + public setLocation(x: number, y: number): void; + /** + * Returns a String that represents the value + * of this Point2D. + */ + // @ts-ignore + public toString(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.Point2D.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.Point2D.d.ts new file mode 100644 index 00000000..5257ea19 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.Point2D.d.ts @@ -0,0 +1,96 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + // @ts-ignore + abstract class Point2D extends java.lang.Object { + /** + * This is an abstract class that cannot be instantiated directly. + * Type-specific implementation subclasses are available for + * instantiation and provide a number of formats for storing + * the information necessary to satisfy the various accessor + * methods below. + */ + // @ts-ignore + constructor() + /** + * Returns the X coordinate of this Point2D in + * double precision. + */ + // @ts-ignore + public abstract getX(): number; + /** + * Returns the Y coordinate of this Point2D in + * double precision. + */ + // @ts-ignore + public abstract getY(): number; + /** + * Sets the location of this Point2D to the + * specified double coordinates. + */ + // @ts-ignore + public abstract setLocation(x: number, y: number): void; + /** + * Sets the location of this Point2D to the same + * coordinates as the specified Point2D object. + */ + // @ts-ignore + public setLocation(p: java.awt.geom.Point2D): void; + /** + * Returns the square of the distance between two points. + */ + // @ts-ignore + public static distanceSq(x1: number, y1: number, x2: number, y2: number): number; + /** + * Returns the distance between two points. + */ + // @ts-ignore + public static distance(x1: number, y1: number, x2: number, y2: number): number; + /** + * Returns the square of the distance from this + * Point2D to a specified point. + */ + // @ts-ignore + public distanceSq(px: number, py: number): number; + /** + * Returns the square of the distance from this + * Point2D to a specified Point2D. + */ + // @ts-ignore + public distanceSq(pt: java.awt.geom.Point2D): number; + /** + * Returns the distance from this Point2D to + * a specified point. + */ + // @ts-ignore + public distance(px: number, py: number): number; + /** + * Returns the distance from this Point2D to a + * specified Point2D. + */ + // @ts-ignore + public distance(pt: java.awt.geom.Point2D): number; + /** + * Creates a new object of the same class and with the + * same contents as this object. + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Returns the hashcode for this Point2D. + */ + // @ts-ignore + public hashCode(): number; + /** + * Determines whether or not two points are equal. Two instances of + * Point2D are equal if the values of their + * x and y member fields, representing + * their position in the coordinate space, are the same. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.QuadCurve2D.Double.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.QuadCurve2D.Double.d.ts new file mode 100644 index 00000000..fe0bbc8e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.QuadCurve2D.Double.d.ts @@ -0,0 +1,91 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + namespace QuadCurve2D { + // @ts-ignore + class Double extends java.awt.geom.QuadCurve2D { + /** + * Constructs and initializes a QuadCurve2D with + * coordinates (0, 0, 0, 0, 0, 0). + */ + // @ts-ignore + constructor() + /** + * Constructs and initializes a QuadCurve2D from the + * specified {@code double} coordinates. + */ + // @ts-ignore + constructor(x1: number, y1: number, ctrlx: number, ctrly: number, x2: number, y2: number) + // @ts-ignore + public x1: number; + // @ts-ignore + public y1: number; + // @ts-ignore + public ctrlx: number; + // @ts-ignore + public ctrly: number; + // @ts-ignore + public x2: number; + // @ts-ignore + public y2: number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getX1(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getY1(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getP1(): java.awt.geom.Point2D; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getCtrlX(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getCtrlY(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getCtrlPt(): java.awt.geom.Point2D; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getX2(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getY2(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getP2(): java.awt.geom.Point2D; + /** + * {@inheritDoc} + */ + // @ts-ignore + public setCurve(x1: number, y1: number, ctrlx: number, ctrly: number, x2: number, y2: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getBounds2D(): java.awt.geom.Rectangle2D; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.QuadCurve2D.Float.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.QuadCurve2D.Float.d.ts new file mode 100644 index 00000000..264c374c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.QuadCurve2D.Float.d.ts @@ -0,0 +1,97 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + namespace QuadCurve2D { + // @ts-ignore + class Float extends java.awt.geom.QuadCurve2D { + /** + * Constructs and initializes a QuadCurve2D with + * coordinates (0, 0, 0, 0, 0, 0). + */ + // @ts-ignore + constructor() + /** + * Constructs and initializes a QuadCurve2D from the + * specified {@code float} coordinates. + */ + // @ts-ignore + constructor(x1: number, y1: number, ctrlx: number, ctrly: number, x2: number, y2: number) + // @ts-ignore + public x1: number; + // @ts-ignore + public y1: number; + // @ts-ignore + public ctrlx: number; + // @ts-ignore + public ctrly: number; + // @ts-ignore + public x2: number; + // @ts-ignore + public y2: number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getX1(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getY1(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getP1(): java.awt.geom.Point2D; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getCtrlX(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getCtrlY(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getCtrlPt(): java.awt.geom.Point2D; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getX2(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getY2(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getP2(): java.awt.geom.Point2D; + /** + * {@inheritDoc} + */ + // @ts-ignore + public setCurve(x1: number, y1: number, ctrlx: number, ctrly: number, x2: number, y2: number): void; + /** + * Sets the location of the end points and control point of this curve + * to the specified {@code float} coordinates. + */ + // @ts-ignore + public setCurve(x1: number, y1: number, ctrlx: number, ctrly: number, x2: number, y2: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getBounds2D(): java.awt.geom.Rectangle2D; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.QuadCurve2D.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.QuadCurve2D.d.ts new file mode 100644 index 00000000..dab4bc72 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.QuadCurve2D.d.ts @@ -0,0 +1,280 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + // @ts-ignore + abstract class QuadCurve2D extends java.lang.Object { + /** + * This is an abstract class that cannot be instantiated directly. + * Type-specific implementation subclasses are available for + * instantiation and provide a number of formats for storing + * the information necessary to satisfy the various accessor + * methods below. + */ + // @ts-ignore + constructor() + /** + * Returns the X coordinate of the start point in + * double in precision. + */ + // @ts-ignore + public abstract getX1(): number; + /** + * Returns the Y coordinate of the start point in + * double precision. + */ + // @ts-ignore + public abstract getY1(): number; + /** + * Returns the start point. + */ + // @ts-ignore + public abstract getP1(): java.awt.geom.Point2D; + /** + * Returns the X coordinate of the control point in + * double precision. + */ + // @ts-ignore + public abstract getCtrlX(): number; + /** + * Returns the Y coordinate of the control point in + * double precision. + */ + // @ts-ignore + public abstract getCtrlY(): number; + /** + * Returns the control point. + */ + // @ts-ignore + public abstract getCtrlPt(): java.awt.geom.Point2D; + /** + * Returns the X coordinate of the end point in + * double precision. + */ + // @ts-ignore + public abstract getX2(): number; + /** + * Returns the Y coordinate of the end point in + * double precision. + */ + // @ts-ignore + public abstract getY2(): number; + /** + * Returns the end point. + */ + // @ts-ignore + public abstract getP2(): java.awt.geom.Point2D; + /** + * Sets the location of the end points and control point of this curve + * to the specified double coordinates. + */ + // @ts-ignore + public abstract setCurve(x1: number, y1: number, ctrlx: number, ctrly: number, x2: number, y2: number): void; + /** + * Sets the location of the end points and control points of this + * QuadCurve2D to the double coordinates at + * the specified offset in the specified array. + */ + // @ts-ignore + public setCurve(coords: number, offset: number): void; + /** + * Sets the location of the end points and control point of this + * QuadCurve2D to the specified Point2D + * coordinates. + */ + // @ts-ignore + public setCurve(p1: java.awt.geom.Point2D, cp: java.awt.geom.Point2D, p2: java.awt.geom.Point2D): void; + /** + * Sets the location of the end points and control points of this + * QuadCurve2D to the coordinates of the + * Point2D objects at the specified offset in + * the specified array. + */ + // @ts-ignore + public setCurve(pts: java.awt.geom.Point2D, offset: number): void; + /** + * Sets the location of the end points and control point of this + * QuadCurve2D to the same as those in the specified + * QuadCurve2D. + */ + // @ts-ignore + public setCurve(c: java.awt.geom.QuadCurve2D): void; + /** + * Returns the square of the flatness, or maximum distance of a + * control point from the line connecting the end points, of the + * quadratic curve specified by the indicated control points. + */ + // @ts-ignore + public static getFlatnessSq(x1: number, y1: number, ctrlx: number, ctrly: number, x2: number, y2: number): number; + /** + * Returns the flatness, or maximum distance of a + * control point from the line connecting the end points, of the + * quadratic curve specified by the indicated control points. + */ + // @ts-ignore + public static getFlatness(x1: number, y1: number, ctrlx: number, ctrly: number, x2: number, y2: number): number; + /** + * Returns the square of the flatness, or maximum distance of a + * control point from the line connecting the end points, of the + * quadratic curve specified by the control points stored in the + * indicated array at the indicated index. + */ + // @ts-ignore + public static getFlatnessSq(coords: number, offset: number): number; + /** + * Returns the flatness, or maximum distance of a + * control point from the line connecting the end points, of the + * quadratic curve specified by the control points stored in the + * indicated array at the indicated index. + */ + // @ts-ignore + public static getFlatness(coords: number, offset: number): number; + /** + * Returns the square of the flatness, or maximum distance of a + * control point from the line connecting the end points, of this + * QuadCurve2D. + */ + // @ts-ignore + public getFlatnessSq(): number; + /** + * Returns the flatness, or maximum distance of a + * control point from the line connecting the end points, of this + * QuadCurve2D. + */ + // @ts-ignore + public getFlatness(): number; + /** + * Subdivides this QuadCurve2D and stores the resulting + * two subdivided curves into the left and + * right curve parameters. + * Either or both of the left and right + * objects can be the same as this QuadCurve2D or + * null. + */ + // @ts-ignore + public subdivide(left: java.awt.geom.QuadCurve2D, right: java.awt.geom.QuadCurve2D): void; + /** + * Subdivides the quadratic curve specified by the src + * parameter and stores the resulting two subdivided curves into the + * left and right curve parameters. + * Either or both of the left and right + * objects can be the same as the src object or + * null. + */ + // @ts-ignore + public static subdivide(src: java.awt.geom.QuadCurve2D, left: java.awt.geom.QuadCurve2D, right: java.awt.geom.QuadCurve2D): void; + /** + * Subdivides the quadratic curve specified by the coordinates + * stored in the src array at indices + * srcoff through srcoff + 5 + * and stores the resulting two subdivided curves into the two + * result arrays at the corresponding indices. + * Either or both of the left and right + * arrays can be null or a reference to the same array + * and offset as the src array. + * Note that the last point in the first subdivided curve is the + * same as the first point in the second subdivided curve. Thus, + * it is possible to pass the same array for left and + * right and to use offsets such that + * rightoff equals leftoff + 4 in order + * to avoid allocating extra storage for this common point. + */ + // @ts-ignore + public static subdivide(src: number, srcoff: number, left: number, leftoff: number, right: number, rightoff: number): void; + /** + * Solves the quadratic whose coefficients are in the eqn + * array and places the non-complex roots back into the same array, + * returning the number of roots. The quadratic solved is represented + * by the equation: + *

+                 * eqn = {C, B, A};
+                 * ax^2 + bx + c = 0
+                 * 
+ * A return value of -1 is used to distinguish a constant + * equation, which might be always 0 or never 0, from an equation that + * has no zeroes. + */ + // @ts-ignore + public static solveQuadratic(eqn: number): number; + /** + * Solves the quadratic whose coefficients are in the eqn + * array and places the non-complex roots into the res + * array, returning the number of roots. + * The quadratic solved is represented by the equation: + *
+                 * eqn = {C, B, A};
+                 * ax^2 + bx + c = 0
+                 * 
+ * A return value of -1 is used to distinguish a constant + * equation, which might be always 0 or never 0, from an equation that + * has no zeroes. + */ + // @ts-ignore + public static solveQuadratic(eqn: number, res: number): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public contains(x: number, y: number): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public contains(p: java.awt.geom.Point2D): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public intersects(x: number, y: number, w: number, h: number): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public intersects(r: java.awt.geom.Rectangle2D): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public contains(x: number, y: number, w: number, h: number): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public contains(r: java.awt.geom.Rectangle2D): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getBounds(): java.awt.Rectangle; + /** + * Returns an iteration object that defines the boundary of the + * shape of this QuadCurve2D. + * The iterator for this class is not multi-threaded safe, + * which means that this QuadCurve2D class does not + * guarantee that modifications to the geometry of this + * QuadCurve2D object do not affect any iterations of + * that geometry that are already in process. + */ + // @ts-ignore + public getPathIterator(at: java.awt.geom.AffineTransform): java.awt.geom.PathIterator; + /** + * Returns an iteration object that defines the boundary of the + * flattened shape of this QuadCurve2D. + * The iterator for this class is not multi-threaded safe, + * which means that this QuadCurve2D class does not + * guarantee that modifications to the geometry of this + * QuadCurve2D object do not affect any iterations of + * that geometry that are already in process. + */ + // @ts-ignore + public getPathIterator(at: java.awt.geom.AffineTransform, flatness: number): java.awt.geom.PathIterator; + /** + * Creates a new object of the same class and with the same contents + * as this object. + */ + // @ts-ignore + public clone(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.Rectangle2D.Double.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.Rectangle2D.Double.d.ts new file mode 100644 index 00000000..8e4fb971 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.Rectangle2D.Double.d.ts @@ -0,0 +1,93 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + namespace Rectangle2D { + // @ts-ignore + class Double extends java.awt.geom.Rectangle2D { + /** + * Constructs a new Rectangle2D, initialized to + * location (0, 0) and size (0, 0). + */ + // @ts-ignore + constructor() + /** + * Constructs and initializes a Rectangle2D + * from the specified double coordinates. + */ + // @ts-ignore + constructor(x: number, y: number, w: number, h: number) + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public width: number; + // @ts-ignore + public height: number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getX(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getY(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getWidth(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getHeight(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public setRect(x: number, y: number, w: number, h: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public setRect(r: java.awt.geom.Rectangle2D): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public outcode(x: number, y: number): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getBounds2D(): java.awt.geom.Rectangle2D; + /** + * {@inheritDoc} + */ + // @ts-ignore + public createIntersection(r: java.awt.geom.Rectangle2D): java.awt.geom.Rectangle2D; + /** + * {@inheritDoc} + */ + // @ts-ignore + public createUnion(r: java.awt.geom.Rectangle2D): java.awt.geom.Rectangle2D; + /** + * Returns the String representation of this + * Rectangle2D. + */ + // @ts-ignore + public toString(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.Rectangle2D.Float.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.Rectangle2D.Float.d.ts new file mode 100644 index 00000000..3f25b8f1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.Rectangle2D.Float.d.ts @@ -0,0 +1,99 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + namespace Rectangle2D { + // @ts-ignore + class Float extends java.awt.geom.Rectangle2D { + /** + * Constructs a new Rectangle2D, initialized to + * location (0.0, 0.0) and size (0.0, 0.0). + */ + // @ts-ignore + constructor() + /** + * Constructs and initializes a Rectangle2D + * from the specified float coordinates. + */ + // @ts-ignore + constructor(x: number, y: number, w: number, h: number) + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public width: number; + // @ts-ignore + public height: number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getX(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getY(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getWidth(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getHeight(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * Sets the location and size of this Rectangle2D + * to the specified float values. + */ + // @ts-ignore + public setRect(x: number, y: number, w: number, h: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public setRect(x: number, y: number, w: number, h: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public setRect(r: java.awt.geom.Rectangle2D): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public outcode(x: number, y: number): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getBounds2D(): java.awt.geom.Rectangle2D; + /** + * {@inheritDoc} + */ + // @ts-ignore + public createIntersection(r: java.awt.geom.Rectangle2D): java.awt.geom.Rectangle2D; + /** + * {@inheritDoc} + */ + // @ts-ignore + public createUnion(r: java.awt.geom.Rectangle2D): java.awt.geom.Rectangle2D; + /** + * Returns the String representation of this + * Rectangle2D. + */ + // @ts-ignore + public toString(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.Rectangle2D.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.Rectangle2D.d.ts new file mode 100644 index 00000000..43d14d7b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.Rectangle2D.d.ts @@ -0,0 +1,210 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + // @ts-ignore + abstract class Rectangle2D extends java.awt.geom.RectangularShape { + /** + * This is an abstract class that cannot be instantiated directly. + * Type-specific implementation subclasses are available for + * instantiation and provide a number of formats for storing + * the information necessary to satisfy the various accessor + * methods below. + */ + // @ts-ignore + constructor() + // @ts-ignore + public static OUT_LEFT: number; + // @ts-ignore + public static OUT_TOP: number; + // @ts-ignore + public static OUT_RIGHT: number; + // @ts-ignore + public static OUT_BOTTOM: number; + /** + * Sets the location and size of this Rectangle2D + * to the specified double values. + */ + // @ts-ignore + public abstract setRect(x: number, y: number, w: number, h: number): void; + /** + * Sets this Rectangle2D to be the same as the specified + * Rectangle2D. + */ + // @ts-ignore + public setRect(r: java.awt.geom.Rectangle2D): void; + /** + * Tests if the specified line segment intersects the interior of this + * Rectangle2D. + */ + // @ts-ignore + public intersectsLine(x1: number, y1: number, x2: number, y2: number): boolean; + /** + * Tests if the specified line segment intersects the interior of this + * Rectangle2D. + */ + // @ts-ignore + public intersectsLine(l: java.awt.geom.Line2D): boolean; + /** + * Determines where the specified coordinates lie with respect + * to this Rectangle2D. + * This method computes a binary OR of the appropriate mask values + * indicating, for each side of this Rectangle2D, + * whether or not the specified coordinates are on the same side + * of the edge as the rest of this Rectangle2D. + */ + // @ts-ignore + public abstract outcode(x: number, y: number): number; + /** + * Determines where the specified {@link Point2D} lies with + * respect to this Rectangle2D. + * This method computes a binary OR of the appropriate mask values + * indicating, for each side of this Rectangle2D, + * whether or not the specified Point2D is on the same + * side of the edge as the rest of this Rectangle2D. + */ + // @ts-ignore + public outcode(p: java.awt.geom.Point2D): number; + /** + * Sets the location and size of the outer bounds of this + * Rectangle2D to the specified rectangular values. + */ + // @ts-ignore + public setFrame(x: number, y: number, w: number, h: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getBounds2D(): java.awt.geom.Rectangle2D; + /** + * {@inheritDoc} + */ + // @ts-ignore + public contains(x: number, y: number): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public intersects(x: number, y: number, w: number, h: number): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public contains(x: number, y: number, w: number, h: number): boolean; + /** + * Returns a new Rectangle2D object representing the + * intersection of this Rectangle2D with the specified + * Rectangle2D. + */ + // @ts-ignore + public abstract createIntersection(r: java.awt.geom.Rectangle2D): java.awt.geom.Rectangle2D; + /** + * Intersects the pair of specified source Rectangle2D + * objects and puts the result into the specified destination + * Rectangle2D object. One of the source rectangles + * can also be the destination to avoid creating a third Rectangle2D + * object, but in this case the original points of this source + * rectangle will be overwritten by this method. + */ + // @ts-ignore + public static intersect(src1: java.awt.geom.Rectangle2D, src2: java.awt.geom.Rectangle2D, dest: java.awt.geom.Rectangle2D): void; + /** + * Returns a new Rectangle2D object representing the + * union of this Rectangle2D with the specified + * Rectangle2D. + */ + // @ts-ignore + public abstract createUnion(r: java.awt.geom.Rectangle2D): java.awt.geom.Rectangle2D; + /** + * Unions the pair of source Rectangle2D objects + * and puts the result into the specified destination + * Rectangle2D object. One of the source rectangles + * can also be the destination to avoid creating a third Rectangle2D + * object, but in this case the original points of this source + * rectangle will be overwritten by this method. + */ + // @ts-ignore + public static union(src1: java.awt.geom.Rectangle2D, src2: java.awt.geom.Rectangle2D, dest: java.awt.geom.Rectangle2D): void; + /** + * Adds a point, specified by the double precision arguments + * newx and newy, to this + * Rectangle2D. The resulting Rectangle2D + * is the smallest Rectangle2D that + * contains both the original Rectangle2D and the + * specified point. + *

+ * After adding a point, a call to contains with the + * added point as an argument does not necessarily return + * true. The contains method does not + * return true for points on the right or bottom + * edges of a rectangle. Therefore, if the added point falls on + * the left or bottom edge of the enlarged rectangle, + * contains returns false for that point. + */ + // @ts-ignore + public add(newx: number, newy: number): void; + /** + * Adds the Point2D object pt to this + * Rectangle2D. + * The resulting Rectangle2D is the smallest + * Rectangle2D that contains both the original + * Rectangle2D and the specified Point2D. + *

+ * After adding a point, a call to contains with the + * added point as an argument does not necessarily return + * true. The contains + * method does not return true for points on the right + * or bottom edges of a rectangle. Therefore, if the added point falls + * on the left or bottom edge of the enlarged rectangle, + * contains returns false for that point. + */ + // @ts-ignore + public add(pt: java.awt.geom.Point2D): void; + /** + * Adds a Rectangle2D object to this + * Rectangle2D. The resulting Rectangle2D + * is the union of the two Rectangle2D objects. + */ + // @ts-ignore + public add(r: java.awt.geom.Rectangle2D): void; + /** + * Returns an iteration object that defines the boundary of this + * Rectangle2D. + * The iterator for this class is multi-threaded safe, which means + * that this Rectangle2D class guarantees that + * modifications to the geometry of this Rectangle2D + * object do not affect any iterations of that geometry that + * are already in process. + */ + // @ts-ignore + public getPathIterator(at: java.awt.geom.AffineTransform): java.awt.geom.PathIterator; + /** + * Returns an iteration object that defines the boundary of the + * flattened Rectangle2D. Since rectangles are already + * flat, the flatness parameter is ignored. + * The iterator for this class is multi-threaded safe, which means + * that this Rectangle2D class guarantees that + * modifications to the geometry of this Rectangle2D + * object do not affect any iterations of that geometry that + * are already in process. + */ + // @ts-ignore + public getPathIterator(at: java.awt.geom.AffineTransform, flatness: number): java.awt.geom.PathIterator; + /** + * Returns the hashcode for this Rectangle2D. + */ + // @ts-ignore + public hashCode(): number; + /** + * Determines whether or not the specified Object is + * equal to this Rectangle2D. The specified + * Object is equal to this Rectangle2D + * if it is an instance of Rectangle2D and if its + * location and size are the same as this Rectangle2D. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.RectangularShape.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.RectangularShape.d.ts new file mode 100644 index 00000000..34b1d1de --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.RectangularShape.d.ts @@ -0,0 +1,194 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + // @ts-ignore + abstract class RectangularShape extends java.lang.Object { + /** + * This is an abstract class that cannot be instantiated directly. + */ + // @ts-ignore + constructor() + /** + * Returns the X coordinate of the upper-left corner of + * the framing rectangle in double precision. + */ + // @ts-ignore + public abstract getX(): number; + /** + * Returns the Y coordinate of the upper-left corner of + * the framing rectangle in double precision. + */ + // @ts-ignore + public abstract getY(): number; + /** + * Returns the width of the framing rectangle in + * double precision. + */ + // @ts-ignore + public abstract getWidth(): number; + /** + * Returns the height of the framing rectangle + * in double precision. + */ + // @ts-ignore + public abstract getHeight(): number; + /** + * Returns the smallest X coordinate of the framing + * rectangle of the Shape in double + * precision. + */ + // @ts-ignore + public getMinX(): number; + /** + * Returns the smallest Y coordinate of the framing + * rectangle of the Shape in double + * precision. + */ + // @ts-ignore + public getMinY(): number; + /** + * Returns the largest X coordinate of the framing + * rectangle of the Shape in double + * precision. + */ + // @ts-ignore + public getMaxX(): number; + /** + * Returns the largest Y coordinate of the framing + * rectangle of the Shape in double + * precision. + */ + // @ts-ignore + public getMaxY(): number; + /** + * Returns the X coordinate of the center of the framing + * rectangle of the Shape in double + * precision. + */ + // @ts-ignore + public getCenterX(): number; + /** + * Returns the Y coordinate of the center of the framing + * rectangle of the Shape in double + * precision. + */ + // @ts-ignore + public getCenterY(): number; + /** + * Returns the framing {@link Rectangle2D} + * that defines the overall shape of this object. + */ + // @ts-ignore + public getFrame(): java.awt.geom.Rectangle2D; + /** + * Determines whether the RectangularShape is empty. + * When the RectangularShape is empty, it encloses no + * area. + */ + // @ts-ignore + public abstract isEmpty(): boolean; + /** + * Sets the location and size of the framing rectangle of this + * Shape to the specified rectangular values. + */ + // @ts-ignore + public abstract setFrame(x: number, y: number, w: number, h: number): void; + /** + * Sets the location and size of the framing rectangle of this + * Shape to the specified {@link Point2D} and + * {@link Dimension2D}, respectively. The framing rectangle is used + * by the subclasses of RectangularShape to define + * their geometry. + */ + // @ts-ignore + public setFrame(loc: java.awt.geom.Point2D, size: java.awt.geom.Dimension2D): void; + /** + * Sets the framing rectangle of this Shape to + * be the specified Rectangle2D. The framing rectangle is + * used by the subclasses of RectangularShape to define + * their geometry. + */ + // @ts-ignore + public setFrame(r: java.awt.geom.Rectangle2D): void; + /** + * Sets the diagonal of the framing rectangle of this Shape + * based on the two specified coordinates. The framing rectangle is + * used by the subclasses of RectangularShape to define + * their geometry. + */ + // @ts-ignore + public setFrameFromDiagonal(x1: number, y1: number, x2: number, y2: number): void; + /** + * Sets the diagonal of the framing rectangle of this Shape + * based on two specified Point2D objects. The framing + * rectangle is used by the subclasses of RectangularShape + * to define their geometry. + */ + // @ts-ignore + public setFrameFromDiagonal(p1: java.awt.geom.Point2D, p2: java.awt.geom.Point2D): void; + /** + * Sets the framing rectangle of this Shape + * based on the specified center point coordinates and corner point + * coordinates. The framing rectangle is used by the subclasses of + * RectangularShape to define their geometry. + */ + // @ts-ignore + public setFrameFromCenter(centerX: number, centerY: number, cornerX: number, cornerY: number): void; + /** + * Sets the framing rectangle of this Shape based on a + * specified center Point2D and corner + * Point2D. The framing rectangle is used by the subclasses + * of RectangularShape to define their geometry. + */ + // @ts-ignore + public setFrameFromCenter(center: java.awt.geom.Point2D, corner: java.awt.geom.Point2D): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public contains(p: java.awt.geom.Point2D): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public intersects(r: java.awt.geom.Rectangle2D): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public contains(r: java.awt.geom.Rectangle2D): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getBounds(): java.awt.Rectangle; + /** + * Returns an iterator object that iterates along the + * Shape object's boundary and provides access to a + * flattened view of the outline of the Shape + * object's geometry. + *

+ * Only SEG_MOVETO, SEG_LINETO, and SEG_CLOSE point types will + * be returned by the iterator. + *

+ * The amount of subdivision of the curved segments is controlled + * by the flatness parameter, which specifies the + * maximum distance that any point on the unflattened transformed + * curve can deviate from the returned flattened path segments. + * An optional {@link AffineTransform} can + * be specified so that the coordinates returned in the iteration are + * transformed accordingly. + */ + // @ts-ignore + public getPathIterator(at: java.awt.geom.AffineTransform, flatness: number): java.awt.geom.PathIterator; + /** + * Creates a new object of the same class and with the same + * contents as this object. + */ + // @ts-ignore + public clone(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.RoundRectangle2D.Double.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.RoundRectangle2D.Double.d.ts new file mode 100644 index 00000000..e369ad7c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.RoundRectangle2D.Double.d.ts @@ -0,0 +1,87 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + namespace RoundRectangle2D { + // @ts-ignore + class Double extends java.awt.geom.RoundRectangle2D { + /** + * Constructs a new RoundRectangle2D, initialized to + * location (0.0, 0.0), size (0.0, 0.0), and corner arcs + * of radius 0.0. + */ + // @ts-ignore + constructor() + /** + * Constructs and initializes a RoundRectangle2D + * from the specified double coordinates. + */ + // @ts-ignore + constructor(x: number, y: number, w: number, h: number, arcw: number, arch: number) + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public width: number; + // @ts-ignore + public height: number; + // @ts-ignore + public arcwidth: number; + // @ts-ignore + public archeight: number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getX(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getY(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getWidth(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getHeight(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getArcWidth(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getArcHeight(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public setRoundRect(x: number, y: number, w: number, h: number, arcw: number, arch: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public setRoundRect(rr: java.awt.geom.RoundRectangle2D): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getBounds2D(): java.awt.geom.Rectangle2D; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.RoundRectangle2D.Float.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.RoundRectangle2D.Float.d.ts new file mode 100644 index 00000000..f6ed3b89 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.RoundRectangle2D.Float.d.ts @@ -0,0 +1,94 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + namespace RoundRectangle2D { + // @ts-ignore + class Float extends java.awt.geom.RoundRectangle2D { + /** + * Constructs a new RoundRectangle2D, initialized to + * location (0.0, 0.0), size (0.0, 0.0), and corner arcs + * of radius 0.0. + */ + // @ts-ignore + constructor() + /** + * Constructs and initializes a RoundRectangle2D + * from the specified float coordinates. + */ + // @ts-ignore + constructor(x: number, y: number, w: number, h: number, arcw: number, arch: number) + // @ts-ignore + public x: number; + // @ts-ignore + public y: number; + // @ts-ignore + public width: number; + // @ts-ignore + public height: number; + // @ts-ignore + public arcwidth: number; + // @ts-ignore + public archeight: number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getX(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getY(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getWidth(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getHeight(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getArcWidth(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getArcHeight(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * Sets the location, size, and corner radii of this + * RoundRectangle2D to the specified + * float values. + */ + // @ts-ignore + public setRoundRect(x: number, y: number, w: number, h: number, arcw: number, arch: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public setRoundRect(x: number, y: number, w: number, h: number, arcw: number, arch: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public setRoundRect(rr: java.awt.geom.RoundRectangle2D): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getBounds2D(): java.awt.geom.Rectangle2D; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.geom.RoundRectangle2D.d.ts b/packages/types/dist/typings/jdk/java.awt.geom.RoundRectangle2D.d.ts new file mode 100644 index 00000000..c47fb80a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.geom.RoundRectangle2D.d.ts @@ -0,0 +1,88 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace geom { + // @ts-ignore + abstract class RoundRectangle2D extends java.awt.geom.RectangularShape { + /** + * This is an abstract class that cannot be instantiated directly. + * Type-specific implementation subclasses are available for + * instantiation and provide a number of formats for storing + * the information necessary to satisfy the various accessor + * methods below. + */ + // @ts-ignore + constructor() + /** + * Gets the width of the arc that rounds off the corners. + */ + // @ts-ignore + public abstract getArcWidth(): number; + /** + * Gets the height of the arc that rounds off the corners. + */ + // @ts-ignore + public abstract getArcHeight(): number; + /** + * Sets the location, size, and corner radii of this + * RoundRectangle2D to the specified + * double values. + */ + // @ts-ignore + public abstract setRoundRect(x: number, y: number, w: number, h: number, arcWidth: number, arcHeight: number): void; + /** + * Sets this RoundRectangle2D to be the same as the + * specified RoundRectangle2D. + */ + // @ts-ignore + public setRoundRect(rr: java.awt.geom.RoundRectangle2D): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public setFrame(x: number, y: number, w: number, h: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public contains(x: number, y: number): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public intersects(x: number, y: number, w: number, h: number): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public contains(x: number, y: number, w: number, h: number): boolean; + /** + * Returns an iteration object that defines the boundary of this + * RoundRectangle2D. + * The iterator for this class is multi-threaded safe, which means + * that this RoundRectangle2D class guarantees that + * modifications to the geometry of this RoundRectangle2D + * object do not affect any iterations of that geometry that + * are already in process. + */ + // @ts-ignore + public getPathIterator(at: java.awt.geom.AffineTransform): java.awt.geom.PathIterator; + /** + * Returns the hashcode for this RoundRectangle2D. + */ + // @ts-ignore + public hashCode(): number; + /** + * Determines whether or not the specified Object is + * equal to this RoundRectangle2D. The specified + * Object is equal to this RoundRectangle2D + * if it is an instance of RoundRectangle2D and if its + * location, size, and corner arc dimensions are the same as this + * RoundRectangle2D. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.im.InputContext.d.ts b/packages/types/dist/typings/jdk/java.awt.im.InputContext.d.ts new file mode 100644 index 00000000..6d6e8cc0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.im.InputContext.d.ts @@ -0,0 +1,189 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace im { + // @ts-ignore + class InputContext extends java.lang.Object { + /** + * Constructs an InputContext. + * This method is protected so clients cannot instantiate + * InputContext directly. Input contexts are obtained by + * calling {@link #getInstance}. + */ + // @ts-ignore + constructor() + /** + * Returns a new InputContext instance. + */ + // @ts-ignore + public static getInstance(): java.awt.im.InputContext; + /** + * Attempts to select an input method or keyboard layout that + * supports the given locale, and returns a value indicating whether such + * an input method or keyboard layout has been successfully selected. The + * following steps are taken until an input method has been selected: + *

    + *
  • + * If the currently selected input method or keyboard layout supports the + * requested locale, it remains selected.
  • + *
  • + * If there is no input method or keyboard layout available that supports + * the requested locale, the current input method or keyboard layout remains + * selected.
  • + *
  • + * If the user has previously selected an input method or keyboard layout + * for the requested locale from the user interface, then the most recently + * selected such input method or keyboard layout is reselected.
  • + *
  • + * Otherwise, an input method or keyboard layout that supports the requested + * locale is selected in an implementation dependent way.
  • + *
+ * Before switching away from an input method, any currently uncommitted text + * is committed. If no input method or keyboard layout supporting the requested + * locale is available, then false is returned. + *

+ * Not all host operating systems provide API to determine the locale of + * the currently selected native input method or keyboard layout, and to + * select a native input method or keyboard layout by locale. + * For host operating systems that don't provide such API, + * selectInputMethod assumes that native input methods or + * keyboard layouts provided by the host operating system support only the + * system's default locale. + *

+ * A text editing component may call this method, for example, when + * the user changes the insertion point, so that the user can + * immediately continue typing in the language of the surrounding text. + */ + // @ts-ignore + public selectInputMethod(locale: java.util.Locale): boolean; + /** + * Returns the current locale of the current input method or keyboard + * layout. + * Returns null if the input context does not have a current input method + * or keyboard layout or if the current input method's + * {@link java.awt.im.spi.InputMethod#getLocale()} method returns null. + *

+ * Not all host operating systems provide API to determine the locale of + * the currently selected native input method or keyboard layout. + * For host operating systems that don't provide such API, + * getLocale assumes that the current locale of all native + * input methods or keyboard layouts provided by the host operating system + * is the system's default locale. + */ + // @ts-ignore + public getLocale(): java.util.Locale; + /** + * Sets the subsets of the Unicode character set that input methods of this input + * context should be allowed to input. Null may be passed in to + * indicate that all characters are allowed. The initial value + * is null. The setting applies to the current input method as well + * as input methods selected after this call is made. However, + * applications cannot rely on this call having the desired effect, + * since this setting cannot be passed on to all host input methods - + * applications still need to apply their own character validation. + * If no input methods are available, then this method has no effect. + */ + // @ts-ignore + public setCharacterSubsets(subsets: java.lang.Character.Subset): void; + /** + * Enables or disables the current input method for composition, + * depending on the value of the parameter enable. + *

+ * An input method that is enabled for composition interprets incoming + * events for both composition and control purposes, while a + * disabled input method does not interpret events for composition. + * Note however that events are passed on to the input method regardless + * whether it is enabled or not, and that an input method that is disabled + * for composition may still interpret events for control purposes, + * including to enable or disable itself for composition. + *

+ * For input methods provided by host operating systems, it is not always possible to + * determine whether this operation is supported. For example, an input method may enable + * composition only for some locales, and do nothing for other locales. For such input + * methods, it is possible that this method does not throw + * {@link java.lang.UnsupportedOperationException UnsupportedOperationException}, + * but also does not affect whether composition is enabled. + */ + // @ts-ignore + public setCompositionEnabled(enable: boolean): void; + /** + * Determines whether the current input method is enabled for composition. + * An input method that is enabled for composition interprets incoming + * events for both composition and control purposes, while a + * disabled input method does not interpret events for composition. + */ + // @ts-ignore + public isCompositionEnabled(): boolean; + /** + * Asks the current input method to reconvert text from the + * current client component. The input method obtains the text to + * be reconverted from the client component using the + * {@link InputMethodRequests#getSelectedText InputMethodRequests.getSelectedText} + * method. The other InputMethodRequests methods + * must be prepared to deal with further information requests by + * the input method. The composed and/or committed text will be + * sent to the client component as a sequence of + * InputMethodEvents. If the input method cannot + * reconvert the given text, the text is returned as committed + * text in an InputMethodEvent. + */ + // @ts-ignore + public reconvert(): void; + /** + * Dispatches an event to the active input method. Called by AWT. + * If no input method is available, then the event will never be consumed. + */ + // @ts-ignore + public dispatchEvent(event: java.awt.AWTEvent): void; + /** + * Notifies the input context that a client component has been + * removed from its containment hierarchy, or that input method + * support has been disabled for the component. This method is + * usually called from the client component's + * {@link java.awt.Component#removeNotify() Component.removeNotify} + * method. Potentially pending input from input methods + * for this component is discarded. + * If no input methods are available, then this method has no effect. + */ + // @ts-ignore + public removeNotify(client: java.awt.Component): void; + /** + * Ends any input composition that may currently be going on in this + * context. Depending on the platform and possibly user preferences, + * this may commit or delete uncommitted text. Any changes to the text + * are communicated to the active component using an input method event. + * If no input methods are available, then this method has no effect. + *

+ * A text editing component may call this in a variety of situations, + * for example, when the user moves the insertion point within the text + * (but outside the composed text), or when the component's text is + * saved to a file or copied to the clipboard. + */ + // @ts-ignore + public endComposition(): void; + /** + * Releases the resources used by this input context. + * Called by AWT for the default input context of each Window. + * If no input methods are available, then this method + * has no effect. + */ + // @ts-ignore + public dispose(): void; + /** + * Returns a control object from the current input method, or null. A + * control object provides methods that control the behavior of the + * input method or obtain information from the input method. The type + * of the object is an input method specific class. Clients have to + * compare the result against known input method control object + * classes and cast to the appropriate class to invoke the methods + * provided. + *

+ * If no input methods are available or the current input method does + * not provide an input method control object, then null is returned. + */ + // @ts-ignore + public getInputMethodControlObject(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.im.InputMethodHighlight.d.ts b/packages/types/dist/typings/jdk/java.awt.im.InputMethodHighlight.d.ts new file mode 100644 index 00000000..8760804a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.im.InputMethodHighlight.d.ts @@ -0,0 +1,60 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace im { + // @ts-ignore + class InputMethodHighlight extends java.lang.Object { + /** + * Constructs an input method highlight record. + * The variation is set to 0, the style to null. + */ + // @ts-ignore + constructor(selected: boolean, state: number) + /** + * Constructs an input method highlight record. + * The style is set to null. + */ + // @ts-ignore + constructor(selected: boolean, state: number, variation: number) + /** + * Constructs an input method highlight record. + * The style attributes map provided must be unmodifiable. + */ + // @ts-ignore + constructor(selected: boolean, state: number, variation: number, style: java.util.Map) + // @ts-ignore + public static RAW_TEXT: number; + // @ts-ignore + public static CONVERTED_TEXT: number; + // @ts-ignore + public static UNSELECTED_RAW_TEXT_HIGHLIGHT: java.awt.im.InputMethodHighlight; + // @ts-ignore + public static SELECTED_RAW_TEXT_HIGHLIGHT: java.awt.im.InputMethodHighlight; + // @ts-ignore + public static UNSELECTED_CONVERTED_TEXT_HIGHLIGHT: java.awt.im.InputMethodHighlight; + // @ts-ignore + public static SELECTED_CONVERTED_TEXT_HIGHLIGHT: java.awt.im.InputMethodHighlight; + /** + * Returns whether the text range is selected. + */ + // @ts-ignore + public isSelected(): boolean; + /** + * Returns the conversion state of the text range. + */ + // @ts-ignore + public getState(): number; + /** + * Returns the variation of the text range. + */ + // @ts-ignore + public getVariation(): number; + /** + * Returns the rendering style attributes for the text range, or null. + */ + // @ts-ignore + public getStyle(): java.util.Map; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.im.InputMethodRequests.d.ts b/packages/types/dist/typings/jdk/java.awt.im.InputMethodRequests.d.ts new file mode 100644 index 00000000..ca8ba526 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.im.InputMethodRequests.d.ts @@ -0,0 +1,117 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace im { + // @ts-ignore + interface InputMethodRequests { + /** + * Gets the location of a specified offset in the current composed text, + * or of the selection in committed text. + * This information is, for example, used to position the candidate window + * near the composed text, or a composition window near the location + * where committed text will be inserted. + *

+ * If the component has composed text (because the most recent + * InputMethodEvent sent to it contained composed text), then the offset is + * relative to the composed text - offset 0 indicates the first character + * in the composed text. The location returned should be for this character. + *

+ * If the component doesn't have composed text, the offset should be ignored, + * and the location returned should reflect the beginning (in line + * direction) of the highlight in the last line containing selected text. + * For example, for horizontal left-to-right text (such as English), the + * location to the left of the left-most character on the last line + * containing selected text is returned. For vertical top-to-bottom text, + * with lines proceeding from right to left, the location to the top of the + * left-most line containing selected text is returned. + *

+ * The location is represented as a 0-thickness caret, that is, it has 0 + * width if the text is drawn horizontally, and 0 height if the text is + * drawn vertically. Other text orientations need to be mapped to + * horizontal or vertical orientation. The rectangle uses absolute screen + * coordinates. + */ + // @ts-ignore + getTextLocation(offset: java.awt.font.TextHitInfo): java.awt.Rectangle; + /** + * Gets the offset within the composed text for the specified absolute x + * and y coordinates on the screen. This information is used, for example + * to handle mouse clicks and the mouse cursor. The offset is relative to + * the composed text, so offset 0 indicates the beginning of the composed + * text. + *

+ * Return null if the location is outside the area occupied by the composed + * text. + */ + // @ts-ignore + getLocationOffset(x: number, y: number): java.awt.font.TextHitInfo; + /** + * Gets the offset of the insert position in the committed text contained + * in the text editing component. This is the offset at which characters + * entered through an input method are inserted. This information is used + * by an input method, for example, to examine the text surrounding the + * insert position. + */ + // @ts-ignore + getInsertPositionOffset(): number; + /** + * Gets an iterator providing access to the entire text and attributes + * contained in the text editing component except for uncommitted + * text. Uncommitted (composed) text should be ignored for index + * calculations and should not be made accessible through the iterator. + *

+ * The input method may provide a list of attributes that it is + * interested in. In that case, information about other attributes that + * the implementor may have need not be made accessible through the + * iterator. If the list is null, all available attribute information + * should be made accessible. + */ + // @ts-ignore + getCommittedText(beginIndex: number, endIndex: number, attributes: java.text.AttributedCharacterIterator.Attribute): java.text.AttributedCharacterIterator; + /** + * Gets the length of the entire text contained in the text + * editing component except for uncommitted (composed) text. + */ + // @ts-ignore + getCommittedTextLength(): number; + /** + * Gets the latest committed text from the text editing component and + * removes it from the component's text body. + * This is used for the "Undo Commit" feature in some input methods, where + * the committed text reverts to its previous composed state. The composed + * text will be sent to the component using an InputMethodEvent. + *

+ * Generally, this feature should only be supported immediately after the + * text was committed, not after the user performed other operations on the + * text. When the feature is not supported, return null. + *

+ * The input method may provide a list of attributes that it is + * interested in. In that case, information about other attributes that + * the implementor may have need not be made accessible through the + * iterator. If the list is null, all available attribute information + * should be made accessible. + */ + // @ts-ignore + cancelLatestCommittedText(attributes: java.text.AttributedCharacterIterator.Attribute): java.text.AttributedCharacterIterator; + /** + * Gets the currently selected text from the text editing component. + * This may be used for a variety of purposes. + * One of them is the "Reconvert" feature in some input methods. + * In this case, the input method will typically send an input method event + * to replace the selected text with composed text. Depending on the input + * method's capabilities, this may be the original composed text for the + * selected text, the latest composed text entered anywhere in the text, or + * a version of the text that's converted back from the selected text. + *

+ * The input method may provide a list of attributes that it is + * interested in. In that case, information about other attributes that + * the implementor may have need not be made accessible through the + * iterator. If the list is null, all available attribute information + * should be made accessible. + */ + // @ts-ignore + getSelectedText(attributes: java.text.AttributedCharacterIterator.Attribute): java.text.AttributedCharacterIterator; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.im.InputSubset.d.ts b/packages/types/dist/typings/jdk/java.awt.im.InputSubset.d.ts new file mode 100644 index 00000000..30aca91e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.im.InputSubset.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace im { + // @ts-ignore + class InputSubset extends java.lang.Character.Subset { + // @ts-ignore + public static LATIN: java.awt.im.InputSubset; + // @ts-ignore + public static LATIN_DIGITS: java.awt.im.InputSubset; + // @ts-ignore + public static TRADITIONAL_HANZI: java.awt.im.InputSubset; + // @ts-ignore + public static SIMPLIFIED_HANZI: java.awt.im.InputSubset; + // @ts-ignore + public static KANJI: java.awt.im.InputSubset; + // @ts-ignore + public static HANJA: java.awt.im.InputSubset; + // @ts-ignore + public static HALFWIDTH_KATAKANA: java.awt.im.InputSubset; + // @ts-ignore + public static FULLWIDTH_LATIN: java.awt.im.InputSubset; + // @ts-ignore + public static FULLWIDTH_DIGITS: java.awt.im.InputSubset; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.im.spi.InputMethod.d.ts b/packages/types/dist/typings/jdk/java.awt.im.spi.InputMethod.d.ts new file mode 100644 index 00000000..9f37e811 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.im.spi.InputMethod.d.ts @@ -0,0 +1,304 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace im { + namespace spi { + // @ts-ignore + interface InputMethod { + /** + * Sets the input method context, which is used to dispatch input method + * events to the client component and to request information from + * the client component. + *

+ * This method is called once immediately after instantiating this input + * method. + */ + // @ts-ignore + setInputMethodContext(context: java.awt.im.spi.InputMethodContext): void; + /** + * Attempts to set the input locale. If the input method supports the + * desired locale, it changes its behavior to support input for the locale + * and returns true. + * Otherwise, it returns false and does not change its behavior. + *

+ * This method is called + *

    + *
  • by {@link java.awt.im.InputContext#selectInputMethod InputContext.selectInputMethod}, + *
  • when switching to this input method through the user interface if the user + * specified a locale or if the previously selected input method's + * {@link java.awt.im.spi.InputMethod#getLocale getLocale} method + * returns a non-null value. + *
+ */ + // @ts-ignore + setLocale(locale: java.util.Locale): boolean; + /** + * Returns the current input locale. Might return null in exceptional cases. + *

+ * This method is called + *

    + *
  • by {@link java.awt.im.InputContext#getLocale InputContext.getLocale} and + *
  • when switching from this input method to a different one through the + * user interface. + *
+ */ + // @ts-ignore + getLocale(): java.util.Locale; + /** + * Sets the subsets of the Unicode character set that this input method + * is allowed to input. Null may be passed in to indicate that all + * characters are allowed. + *

+ * This method is called + *

    + *
  • immediately after instantiating this input method, + *
  • when switching to this input method from a different one, and + *
  • by {@link java.awt.im.InputContext#setCharacterSubsets InputContext.setCharacterSubsets}. + *
+ */ + // @ts-ignore + setCharacterSubsets(subsets: java.lang.Character.Subset): void; + /** + * Enables or disables this input method for composition, + * depending on the value of the parameter enable. + *

+ * An input method that is enabled for composition interprets incoming + * events for both composition and control purposes, while a + * disabled input method does not interpret events for composition. + * Note however that events are passed on to the input method regardless + * whether it is enabled or not, and that an input method that is disabled + * for composition may still interpret events for control purposes, + * including to enable or disable itself for composition. + *

+ * For input methods provided by host operating systems, it is not always possible to + * determine whether this operation is supported. For example, an input method may enable + * composition only for some locales, and do nothing for other locales. For such input + * methods, it is possible that this method does not throw + * {@link java.lang.UnsupportedOperationException UnsupportedOperationException}, + * but also does not affect whether composition is enabled. + *

+ * This method is called + *

    + *
  • by {@link java.awt.im.InputContext#setCompositionEnabled InputContext.setCompositionEnabled}, + *
  • when switching to this input method from a different one using the + * user interface or + * {@link java.awt.im.InputContext#selectInputMethod InputContext.selectInputMethod}, + * if the previously selected input method's + * {@link java.awt.im.spi.InputMethod#isCompositionEnabled isCompositionEnabled} + * method returns without throwing an exception. + *
+ */ + // @ts-ignore + setCompositionEnabled(enable: boolean): void; + /** + * Determines whether this input method is enabled. + * An input method that is enabled for composition interprets incoming + * events for both composition and control purposes, while a + * disabled input method does not interpret events for composition. + *

+ * This method is called + *

    + *
  • by {@link java.awt.im.InputContext#isCompositionEnabled InputContext.isCompositionEnabled} and + *
  • when switching from this input method to a different one using the + * user interface or + * {@link java.awt.im.InputContext#selectInputMethod InputContext.selectInputMethod}. + *
+ */ + // @ts-ignore + isCompositionEnabled(): boolean; + /** + * Starts the reconversion operation. The input method obtains the + * text to be reconverted from the current client component using the + * {@link java.awt.im.InputMethodRequests#getSelectedText InputMethodRequests.getSelectedText} + * method. It can use other InputMethodRequests + * methods to request additional information required for the + * reconversion operation. The composed and committed text + * produced by the operation is sent to the client component as a + * sequence of InputMethodEvents. If the given text + * cannot be reconverted, the same text should be sent to the + * client component as committed text. + *

+ * This method is called by + * {@link java.awt.im.InputContext#reconvert() InputContext.reconvert}. + */ + // @ts-ignore + reconvert(): void; + /** + * Dispatches the event to the input method. If input method support is + * enabled for the focussed component, incoming events of certain types + * are dispatched to the current input method for this component before + * they are dispatched to the component's methods or event listeners. + * The input method decides whether it needs to handle the event. If it + * does, it also calls the event's consume method; this + * causes the event to not get dispatched to the component's event + * processing methods or event listeners. + *

+ * Events are dispatched if they are instances of InputEvent or its + * subclasses. + * This includes instances of the AWT classes KeyEvent and MouseEvent. + *

+ * This method is called by {@link java.awt.im.InputContext#dispatchEvent InputContext.dispatchEvent}. + */ + // @ts-ignore + dispatchEvent(event: java.awt.AWTEvent): void; + /** + * Notifies this input method of changes in the client window + * location or state. This method is called while this input + * method is the current input method of its input context and + * notifications for it are enabled (see {@link + * InputMethodContext#enableClientWindowNotification + * InputMethodContext.enableClientWindowNotification}). Calls + * to this method are temporarily suspended if the input context's + * {@link java.awt.im.InputContext#removeNotify removeNotify} + * method is called, and resume when the input method is activated + * for a new client component. It is called in the following + * situations: + *

    + *
  • + * when the window containing the current client component changes + * in location, size, visibility, iconification state, or when the + * window is closed.
  • + *
  • + * from enableClientWindowNotification(inputMethod, + * true) if the current client component exists,
  • + *
  • + * when activating the input method for the first time after it + * called + * enableClientWindowNotification(inputMethod, + * true) if during the call no current client component was + * available,
  • + *
  • + * when activating the input method for a new client component + * after the input context's removeNotify method has been + * called.
  • + *
+ */ + // @ts-ignore + notifyClientWindowChange(bounds: java.awt.Rectangle): void; + /** + * Activates the input method for immediate input processing. + *

+ * If an input method provides its own windows, it should make sure + * at this point that all necessary windows are open and visible. + *

+ * This method is called + *

    + *
  • by {@link java.awt.im.InputContext#dispatchEvent InputContext.dispatchEvent} + * when a client component receives a FOCUS_GAINED event, + *
  • when switching to this input method from a different one using the + * user interface or + * {@link java.awt.im.InputContext#selectInputMethod InputContext.selectInputMethod}. + *
+ * The method is only called when the input method is inactive. + * A newly instantiated input method is assumed to be inactive. + */ + // @ts-ignore + activate(): void; + /** + * Deactivates the input method. + * The isTemporary argument has the same meaning as in + * {@link java.awt.event.FocusEvent#isTemporary FocusEvent.isTemporary}. + *

+ * If an input method provides its own windows, only windows that relate + * to the current composition (such as a lookup choice window) should be + * closed at this point. + * It is possible that the input method will be immediately activated again + * for a different client component, and closing and reopening more + * persistent windows (such as a control panel) would create unnecessary + * screen flicker. + * Before an instance of a different input method class is activated, + * {@link #hideWindows} is called on the current input method. + *

+ * This method is called + *

    + *
  • by {@link java.awt.im.InputContext#dispatchEvent InputContext.dispatchEvent} + * when a client component receives a FOCUS_LOST event, + *
  • when switching from this input method to a different one using the + * user interface or + * {@link java.awt.im.InputContext#selectInputMethod InputContext.selectInputMethod}, + *
  • before {@link #removeNotify removeNotify} if the current client component is + * removed. + *
+ * The method is only called when the input method is active. + */ + // @ts-ignore + deactivate(isTemporary: boolean): void; + /** + * Closes or hides all windows opened by this input method instance or + * its class. + *

+ * This method is called + *

    + *
  • before calling {@link #activate activate} on an instance of a different input + * method class, + *
  • before calling {@link #dispose dispose} on this input method. + *
+ * The method is only called when the input method is inactive. + */ + // @ts-ignore + hideWindows(): void; + /** + * Notifies the input method that a client component has been + * removed from its containment hierarchy, or that input method + * support has been disabled for the component. + *

+ * This method is called by {@link java.awt.im.InputContext#removeNotify InputContext.removeNotify}. + *

+ * The method is only called when the input method is inactive. + */ + // @ts-ignore + removeNotify(): void; + /** + * Ends any input composition that may currently be going on in this + * context. Depending on the platform and possibly user preferences, + * this may commit or delete uncommitted text. Any changes to the text + * are communicated to the active component using an input method event. + *

+ * A text editing component may call this in a variety of situations, + * for example, when the user moves the insertion point within the text + * (but outside the composed text), or when the component's text is + * saved to a file or copied to the clipboard. + *

+ * This method is called + *

    + *
  • by {@link java.awt.im.InputContext#endComposition InputContext.endComposition}, + *
  • by {@link java.awt.im.InputContext#dispatchEvent InputContext.dispatchEvent} + * when switching to a different client component + *
  • when switching from this input method to a different one using the + * user interface or + * {@link java.awt.im.InputContext#selectInputMethod InputContext.selectInputMethod}. + *
+ */ + // @ts-ignore + endComposition(): void; + /** + * Releases the resources used by this input method. + * In particular, the input method should dispose windows and close files that are no + * longer needed. + *

+ * This method is called by {@link java.awt.im.InputContext#dispose InputContext.dispose}. + *

+ * The method is only called when the input method is inactive. + * No method of this interface is called on this instance after dispose. + */ + // @ts-ignore + dispose(): void; + /** + * Returns a control object from this input method, or null. A + * control object provides methods that control the behavior of the + * input method or obtain information from the input method. The type + * of the object is an input method specific class. Clients have to + * compare the result against known input method control object + * classes and cast to the appropriate class to invoke the methods + * provided. + *

+ * This method is called by + * {@link java.awt.im.InputContext#getInputMethodControlObject InputContext.getInputMethodControlObject}. + */ + // @ts-ignore + getControlObject(): java.lang.Object; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.im.spi.InputMethodContext.d.ts b/packages/types/dist/typings/jdk/java.awt.im.spi.InputMethodContext.d.ts new file mode 100644 index 00000000..adbafc89 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.im.spi.InputMethodContext.d.ts @@ -0,0 +1,78 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace im { + namespace spi { + // @ts-ignore + interface InputMethodContext { + /** + * Creates an input method event from the arguments given + * and dispatches it to the client component. For arguments, + * see {@link java.awt.event.InputMethodEvent#InputMethodEvent}. + */ + // @ts-ignore + dispatchInputMethodEvent(id: number, text: java.text.AttributedCharacterIterator, committedCharacterCount: number, caret: java.awt.font.TextHitInfo, visiblePosition: java.awt.font.TextHitInfo): void; + /** + * Creates a top-level window for use by the input method. + * The intended behavior of this window is: + *

    + *
  • it floats above all document windows and dialogs + *
  • it and all components that it contains do not receive the focus + *
  • it has lightweight decorations, such as a reduced drag region without title + *
+ * However, the actual behavior with respect to these three items is platform dependent. + *

+ * The title may or may not be displayed, depending on the actual type of window created. + *

+ * If attachToInputContext is true, the new window will share the input context that + * corresponds to this input method context, so that events for components in the window + * are automatically dispatched to the input method. + * Also, when the window is opened using setVisible(true), the input context will prevent + * deactivate and activate calls to the input method that might otherwise be caused. + *

+ * Input methods must call {@link java.awt.Window#dispose() Window.dispose} on the + * returned input method window when it is no longer needed. + *

+ */ + // @ts-ignore + createInputMethodWindow(title: string, attachToInputContext: boolean): java.awt.Window; + /** + * Creates a top-level Swing JFrame for use by the input method. + * The intended behavior of this window is: + *

    + *
  • it floats above all document windows and dialogs + *
  • it and all components that it contains do not receive the focus + *
  • it has lightweight decorations, such as a reduced drag region without title + *
+ * However, the actual behavior with respect to these three items is platform dependent. + *

+ * The title may or may not be displayed, depending on the actual type of window created. + *

+ * If attachToInputContext is true, the new window will share the input context that + * corresponds to this input method context, so that events for components in the window + * are automatically dispatched to the input method. + * Also, when the window is opened using setVisible(true), the input context will prevent + * deactivate and activate calls to the input method that might otherwise be caused. + *

+ * Input methods must call {@link java.awt.Window#dispose() Window.dispose} on the + * returned input method window when it is no longer needed. + *

+ */ + // @ts-ignore + createInputMethodJFrame(title: string, attachToInputContext: boolean): any /*javax.swing.JFrame*/; + /** + * Enables or disables notification of the current client window's + * location and state for the specified input method. When + * notification is enabled, the input method's {@link + * java.awt.im.spi.InputMethod#notifyClientWindowChange + * notifyClientWindowChange} method is called as described in that + * method's specification. Notification is automatically disabled + * when the input method is disposed. + */ + // @ts-ignore + enableClientWindowNotification(inputMethod: java.awt.im.spi.InputMethod, enable: boolean): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.im.spi.InputMethodDescriptor.d.ts b/packages/types/dist/typings/jdk/java.awt.im.spi.InputMethodDescriptor.d.ts new file mode 100644 index 00000000..7cf36e93 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.im.spi.InputMethodDescriptor.d.ts @@ -0,0 +1,80 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace im { + namespace spi { + // @ts-ignore + interface InputMethodDescriptor { + /** + * Returns the locales supported by the corresponding input method. + * The locale may describe just the language, or may also include + * country and variant information if needed. + * The information is used to select input methods by locale + * ({@link java.awt.im.InputContext#selectInputMethod(Locale)}). It may also + * be used to sort input methods by locale in a user-visible + * list of input methods. + *

+ * Only the input method's primary locales should be returned. + * For example, if a Japanese input method also has a pass-through + * mode for Roman characters, typically still only Japanese would + * be returned. Thus, the list of locales returned is typically + * a subset of the locales for which the corresponding input method's + * implementation of {@link java.awt.im.spi.InputMethod#setLocale} returns true. + *

+ * If {@link #hasDynamicLocaleList} returns true, this method is + * called each time the information is needed. This + * gives input methods that depend on network resources the chance + * to add or remove locales as resources become available or + * unavailable. + */ + // @ts-ignore + getAvailableLocales(): java.util.Locale[]; + /** + * Returns whether the list of available locales can change + * at runtime. This may be the case, for example, for adapters + * that access real input methods over the network. + */ + // @ts-ignore + hasDynamicLocaleList(): boolean; + /** + * Returns the user-visible name of the corresponding + * input method for the given input locale in the language in which + * the name will be displayed. + *

+ * The inputLocale parameter specifies the locale for which text + * is input. + * This parameter can only take values obtained from this descriptor's + * {@link #getAvailableLocales} method or null. If it is null, an + * input locale independent name for the input method should be + * returned. + *

+ * If a name for the desired display language is not available, the + * method may fall back to some other language. + */ + // @ts-ignore + getInputMethodDisplayName(inputLocale: java.util.Locale, displayLanguage: java.util.Locale): string; + /** + * Returns an icon for the corresponding input method. + * The icon may be used by a user interface for selecting input methods. + *

+ * The inputLocale parameter specifies the locale for which text + * is input. + * This parameter can only take values obtained from this descriptor's + * {@link #getAvailableLocales} method or null. If it is null, an + * input locale independent icon for the input method should be + * returned. + *

+ * The icon's size should be 16×16 pixels. + */ + // @ts-ignore + getInputMethodIcon(inputLocale: java.util.Locale): java.awt.Image; + /** + * Creates a new instance of the corresponding input method. + */ + // @ts-ignore + createInputMethod(): java.awt.im.spi.InputMethod; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.AffineTransformOp.d.ts b/packages/types/dist/typings/jdk/java.awt.image.AffineTransformOp.d.ts new file mode 100644 index 00000000..6bb38263 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.AffineTransformOp.d.ts @@ -0,0 +1,139 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class AffineTransformOp extends java.lang.Object { + /** + * Constructs an AffineTransformOp given an affine transform. + * The interpolation type is determined from the + * RenderingHints object. If the interpolation hint is + * defined, it will be used. Otherwise, if the rendering quality hint is + * defined, the interpolation type is determined from its value. If no + * hints are specified (hints is null), + * the interpolation type is {@link #TYPE_NEAREST_NEIGHBOR + * TYPE_NEAREST_NEIGHBOR}. + */ + // @ts-ignore + constructor(xform: java.awt.geom.AffineTransform, hints: java.awt.RenderingHints) + /** + * Constructs an AffineTransformOp given an affine transform + * and the interpolation type. + */ + // @ts-ignore + constructor(xform: java.awt.geom.AffineTransform, interpolationType: number) + // @ts-ignore + public static TYPE_NEAREST_NEIGHBOR: number; + // @ts-ignore + public static TYPE_BILINEAR: number; + // @ts-ignore + public static TYPE_BICUBIC: number; + /** + * Returns the interpolation type used by this op. + */ + // @ts-ignore + public getInterpolationType(): number; + /** + * Transforms the source BufferedImage and stores the results + * in the destination BufferedImage. + * If the color models for the two images do not match, a color + * conversion into the destination color model is performed. + * If the destination image is null, + * a BufferedImage is created with the source + * ColorModel. + *

+ * The coordinates of the rectangle returned by + * getBounds2D(BufferedImage) + * are not necessarily the same as the coordinates of the + * BufferedImage returned by this method. If the + * upper-left corner coordinates of the rectangle are + * negative then this part of the rectangle is not drawn. If the + * upper-left corner coordinates of the rectangle are positive + * then the filtered image is drawn at that position in the + * destination BufferedImage. + *

+ * An IllegalArgumentException is thrown if the source is + * the same as the destination. + */ + // @ts-ignore + public filter(src: java.awt.image.BufferedImage, dst: java.awt.image.BufferedImage): java.awt.image.BufferedImage; + /** + * Transforms the source Raster and stores the results in + * the destination Raster. This operation performs the + * transform band by band. + *

+ * If the destination Raster is null, a new + * Raster is created. + * An IllegalArgumentException may be thrown if the source is + * the same as the destination or if the number of bands in + * the source is not equal to the number of bands in the + * destination. + *

+ * The coordinates of the rectangle returned by + * getBounds2D(Raster) + * are not necessarily the same as the coordinates of the + * WritableRaster returned by this method. If the + * upper-left corner coordinates of rectangle are negative then + * this part of the rectangle is not drawn. If the coordinates + * of the rectangle are positive then the filtered image is drawn at + * that position in the destination Raster. + *

+ */ + // @ts-ignore + public filter(src: java.awt.image.Raster, dst: java.awt.image.WritableRaster): java.awt.image.WritableRaster; + /** + * Returns the bounding box of the transformed destination. The + * rectangle returned is the actual bounding box of the + * transformed points. The coordinates of the upper-left corner + * of the returned rectangle might not be (0, 0). + */ + // @ts-ignore + public getBounds2D(src: java.awt.image.BufferedImage): java.awt.geom.Rectangle2D; + /** + * Returns the bounding box of the transformed destination. The + * rectangle returned will be the actual bounding box of the + * transformed points. The coordinates of the upper-left corner + * of the returned rectangle might not be (0, 0). + */ + // @ts-ignore + public getBounds2D(src: java.awt.image.Raster): java.awt.geom.Rectangle2D; + /** + * Creates a zeroed destination image with the correct size and number of + * bands. A RasterFormatException may be thrown if the + * transformed width or height is equal to 0. + *

+ * If destCM is null, + * an appropriate ColorModel is used; this + * ColorModel may have + * an alpha channel even if the source ColorModel is opaque. + */ + // @ts-ignore + public createCompatibleDestImage(src: java.awt.image.BufferedImage, destCM: java.awt.image.ColorModel): java.awt.image.BufferedImage; + /** + * Creates a zeroed destination Raster with the correct size + * and number of bands. A RasterFormatException may be thrown + * if the transformed width or height is equal to 0. + */ + // @ts-ignore + public createCompatibleDestRaster(src: java.awt.image.Raster): java.awt.image.WritableRaster; + /** + * Returns the location of the corresponding destination point given a + * point in the source. If dstPt is specified, it + * is used to hold the return value. + */ + // @ts-ignore + public getPoint2D(srcPt: java.awt.geom.Point2D, dstPt: java.awt.geom.Point2D): java.awt.geom.Point2D; + /** + * Returns the affine transform used by this transform operation. + */ + // @ts-ignore + public getTransform(): java.awt.geom.AffineTransform; + /** + * Returns the rendering hints used by this transform operation. + */ + // @ts-ignore + public getRenderingHints(): java.awt.RenderingHints; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.AreaAveragingScaleFilter.d.ts b/packages/types/dist/typings/jdk/java.awt.image.AreaAveragingScaleFilter.d.ts new file mode 100644 index 00000000..94a06421 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.AreaAveragingScaleFilter.d.ts @@ -0,0 +1,63 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class AreaAveragingScaleFilter extends java.awt.image.ReplicateScaleFilter { + /** + * Constructs an AreaAveragingScaleFilter that scales the pixels from + * its source Image as specified by the width and height parameters. + */ + // @ts-ignore + constructor(width: number, height: number) + /** + * Detect if the data is being delivered with the necessary hints + * to allow the averaging algorithm to do its work. + *

+ * Note: This method is intended to be called by the + * ImageProducer of the Image whose + * pixels are being filtered. Developers using + * this class to filter pixels from an image should avoid calling + * this method directly since that operation could interfere + * with the filtering operation. + */ + // @ts-ignore + public setHints(hints: number): void; + /** + * Combine the components for the delivered byte pixels into the + * accumulation arrays and send on any averaged data for rows of + * pixels that are complete. If the correct hints were not + * specified in the setHints call then relay the work to our + * superclass which is capable of scaling pixels regardless of + * the delivery hints. + *

+ * Note: This method is intended to be called by the + * ImageProducer of the Image + * whose pixels are being filtered. Developers using + * this class to filter pixels from an image should avoid calling + * this method directly since that operation could interfere + * with the filtering operation. + */ + // @ts-ignore + public setPixels(x: number, y: number, w: number, h: number, model: java.awt.image.ColorModel, pixels: number, off: number, scansize: number): void; + /** + * Combine the components for the delivered int pixels into the + * accumulation arrays and send on any averaged data for rows of + * pixels that are complete. If the correct hints were not + * specified in the setHints call then relay the work to our + * superclass which is capable of scaling pixels regardless of + * the delivery hints. + *

+ * Note: This method is intended to be called by the + * ImageProducer of the Image + * whose pixels are being filtered. Developers using + * this class to filter pixels from an image should avoid calling + * this method directly since that operation could interfere + * with the filtering operation. + */ + // @ts-ignore + public setPixels(x: number, y: number, w: number, h: number, model: java.awt.image.ColorModel, pixels: number, off: number, scansize: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.BandCombineOp.d.ts b/packages/types/dist/typings/jdk/java.awt.image.BandCombineOp.d.ts new file mode 100644 index 00000000..2a7a2a2e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.BandCombineOp.d.ts @@ -0,0 +1,76 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class BandCombineOp extends java.lang.Object { + /** + * Constructs a BandCombineOp with the specified matrix. + * The width of the matrix must be equal to the number of bands in + * the source Raster, optionally plus one. If there is one + * more column in the matrix than the number of bands, there is an implied + * 1 at the end of the vector of band samples representing a pixel. The + * height of the matrix must be equal to the number of bands in the + * destination. + *

+ * The first subscript is the row index and the second + * is the column index. This operation uses none of the currently + * defined rendering hints; the RenderingHints argument can be + * null. + */ + // @ts-ignore + constructor(matrix: number, hints: java.awt.RenderingHints) + /** + * Returns a copy of the linear combination matrix. + */ + // @ts-ignore + public getMatrix(): float[][]; + /** + * Transforms the Raster using the matrix specified in the + * constructor. An IllegalArgumentException may be thrown if + * the number of bands in the source or destination is incompatible with + * the matrix. See the class comments for more details. + *

+ * If the destination is null, it will be created with a number of bands + * equalling the number of rows in the matrix. No exception is thrown + * if the operation causes a data overflow. + */ + // @ts-ignore + public filter(src: java.awt.image.Raster, dst: java.awt.image.WritableRaster): java.awt.image.WritableRaster; + /** + * Returns the bounding box of the transformed destination. Since + * this is not a geometric operation, the bounding box is the same for + * the source and destination. + * An IllegalArgumentException may be thrown if the number of + * bands in the source is incompatible with the matrix. See + * the class comments for more details. + */ + // @ts-ignore + public getBounds2D(src: java.awt.image.Raster): java.awt.geom.Rectangle2D; + /** + * Creates a zeroed destination Raster with the correct size + * and number of bands. + * An IllegalArgumentException may be thrown if the number of + * bands in the source is incompatible with the matrix. See + * the class comments for more details. + */ + // @ts-ignore + public createCompatibleDestRaster(src: java.awt.image.Raster): java.awt.image.WritableRaster; + /** + * Returns the location of the corresponding destination point given a + * point in the source Raster. If dstPt is + * specified, it is used to hold the return value. + * Since this is not a geometric operation, the point returned + * is the same as the specified srcPt. + */ + // @ts-ignore + public getPoint2D(srcPt: java.awt.geom.Point2D, dstPt: java.awt.geom.Point2D): java.awt.geom.Point2D; + /** + * Returns the rendering hints for this operation. + */ + // @ts-ignore + public getRenderingHints(): java.awt.RenderingHints; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.BandedSampleModel.d.ts b/packages/types/dist/typings/jdk/java.awt.image.BandedSampleModel.d.ts new file mode 100644 index 00000000..fd55b92c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.BandedSampleModel.d.ts @@ -0,0 +1,214 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class BandedSampleModel extends java.awt.image.ComponentSampleModel { + /** + * Constructs a BandedSampleModel with the specified parameters. + * The pixel stride will be one data element. The scanline stride + * will be the same as the width. Each band will be stored in + * a separate bank and all band offsets will be zero. + */ + // @ts-ignore + constructor(dataType: number, w: number, h: number, numBands: number) + /** + * Constructs a BandedSampleModel with the specified parameters. + * The number of bands will be inferred from the lengths of the + * bandOffsets bankIndices arrays, which must be equal. The pixel + * stride will be one data element. + */ + // @ts-ignore + constructor(dataType: number, w: number, h: number, scanlineStride: number, bankIndices: number, bandOffsets: number) + /** + * Creates a new BandedSampleModel with the specified + * width and height. The new BandedSampleModel will have the same + * number of bands, storage data type, and bank indices + * as this BandedSampleModel. The band offsets will be compressed + * such that the offset between bands will be w*pixelStride and + * the minimum of all of the band offsets is zero. + */ + // @ts-ignore + public createCompatibleSampleModel(w: number, h: number): java.awt.image.SampleModel; + /** + * Creates a new BandedSampleModel with a subset of the bands of this + * BandedSampleModel. The new BandedSampleModel can be + * used with any DataBuffer that the existing BandedSampleModel + * can be used with. The new BandedSampleModel/DataBuffer + * combination will represent an image with a subset of the bands + * of the original BandedSampleModel/DataBuffer combination. + */ + // @ts-ignore + public createSubsetSampleModel(bands: number): java.awt.image.SampleModel; + /** + * Creates a DataBuffer that corresponds to this BandedSampleModel, + * The DataBuffer's data type, number of banks, and size + * will be consistent with this BandedSampleModel. + */ + // @ts-ignore + public createDataBuffer(): java.awt.image.DataBuffer; + /** + * Returns data for a single pixel in a primitive array of type + * TransferType. For a BandedSampleModel, this will be the same + * as the data type, and samples will be returned one per array + * element. Generally, obj + * should be passed in as null, so that the Object will be created + * automatically and will be of the right primitive data type. + *

+ * The following code illustrates transferring data for one pixel from + * DataBuffer db1, whose storage layout is described by + * BandedSampleModel bsm1, to DataBuffer db2, + * whose storage layout is described by + * BandedSampleModel bsm2. + * The transfer will generally be more efficient than using + * getPixel/setPixel. + *

+                 * BandedSampleModel bsm1, bsm2;
+                 * DataBufferInt db1, db2;
+                 * bsm2.setDataElements(x, y, bsm1.getDataElements(x, y, null, db1),
+                 * db2);
+                 * 
+ * Using getDataElements/setDataElements to transfer between two + * DataBuffer/SampleModel pairs is legitimate if the SampleModels have + * the same number of bands, corresponding bands have the same number of + * bits per sample, and the TransferTypes are the same. + *

+ * If obj is non-null, it should be a primitive array of type TransferType. + * Otherwise, a ClassCastException is thrown. An + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds, or if obj is non-null and is not large enough to hold + * the pixel data. + */ + // @ts-ignore + public getDataElements(x: number, y: number, obj: java.lang.Object, data: java.awt.image.DataBuffer): java.lang.Object; + /** + * Returns all samples for the specified pixel in an int array. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public getPixel(x: number, y: number, iArray: number, data: java.awt.image.DataBuffer): number[]; + /** + * Returns all samples for the specified rectangle of pixels in + * an int array, one sample per data array element. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public getPixels(x: number, y: number, w: number, h: number, iArray: number, data: java.awt.image.DataBuffer): number[]; + /** + * Returns as int the sample in a specified band for the pixel + * located at (x,y). + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public getSample(x: number, y: number, b: number, data: java.awt.image.DataBuffer): number; + /** + * Returns the sample in a specified band + * for the pixel located at (x,y) as a float. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public getSampleFloat(x: number, y: number, b: number, data: java.awt.image.DataBuffer): number; + /** + * Returns the sample in a specified band + * for a pixel located at (x,y) as a double. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public getSampleDouble(x: number, y: number, b: number, data: java.awt.image.DataBuffer): number; + /** + * Returns the samples in a specified band for the specified rectangle + * of pixels in an int array, one sample per data array element. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public getSamples(x: number, y: number, w: number, h: number, b: number, iArray: number, data: java.awt.image.DataBuffer): number[]; + /** + * Sets the data for a single pixel in the specified DataBuffer from a + * primitive array of type TransferType. For a BandedSampleModel, + * this will be the same as the data type, and samples are transferred + * one per array element. + *

+ * The following code illustrates transferring data for one pixel from + * DataBuffer db1, whose storage layout is described by + * BandedSampleModel bsm1, to DataBuffer db2, + * whose storage layout is described by + * BandedSampleModel bsm2. + * The transfer will generally be more efficient than using + * getPixel/setPixel. + *

+                 * BandedSampleModel bsm1, bsm2;
+                 * DataBufferInt db1, db2;
+                 * bsm2.setDataElements(x, y, bsm1.getDataElements(x, y, null, db1),
+                 * db2);
+                 * 
+ * Using getDataElements/setDataElements to transfer between two + * DataBuffer/SampleModel pairs is legitimate if the SampleModels have + * the same number of bands, corresponding bands have the same number of + * bits per sample, and the TransferTypes are the same. + *

+ * obj must be a primitive array of type TransferType. Otherwise, + * a ClassCastException is thrown. An + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds, or if obj is not large enough to hold the pixel data. + */ + // @ts-ignore + public setDataElements(x: number, y: number, obj: java.lang.Object, data: java.awt.image.DataBuffer): void; + /** + * Sets a pixel in the DataBuffer using an int array of samples for input. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public setPixel(x: number, y: number, iArray: number, data: java.awt.image.DataBuffer): void; + /** + * Sets all samples for a rectangle of pixels from an int array containing + * one sample per array element. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public setPixels(x: number, y: number, w: number, h: number, iArray: number, data: java.awt.image.DataBuffer): void; + /** + * Sets a sample in the specified band for the pixel located at (x,y) + * in the DataBuffer using an int for input. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public setSample(x: number, y: number, b: number, s: number, data: java.awt.image.DataBuffer): void; + /** + * Sets a sample in the specified band for the pixel located at (x,y) + * in the DataBuffer using a float for input. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public setSample(x: number, y: number, b: number, s: number, data: java.awt.image.DataBuffer): void; + /** + * Sets a sample in the specified band for the pixel located at (x,y) + * in the DataBuffer using a double for input. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public setSample(x: number, y: number, b: number, s: number, data: java.awt.image.DataBuffer): void; + /** + * Sets the samples in the specified band for the specified rectangle + * of pixels from an int array containing one sample per data array element. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public setSamples(x: number, y: number, w: number, h: number, b: number, iArray: number, data: java.awt.image.DataBuffer): void; + // @ts-ignore + public hashCode(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.BufferStrategy.d.ts b/packages/types/dist/typings/jdk/java.awt.image.BufferStrategy.d.ts new file mode 100644 index 00000000..d4b10e6c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.BufferStrategy.d.ts @@ -0,0 +1,61 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + abstract class BufferStrategy extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Returns the BufferCapabilities for this + * BufferStrategy. + */ + // @ts-ignore + public abstract getCapabilities(): java.awt.BufferCapabilities; + /** + * Creates a graphics context for the drawing buffer. This method may not + * be synchronized for performance reasons; use of this method by multiple + * threads should be handled at the application level. Disposal of the + * graphics object obtained must be handled by the application. + */ + // @ts-ignore + public abstract getDrawGraphics(): java.awt.Graphics; + /** + * Returns whether the drawing buffer was lost since the last call to + * getDrawGraphics. Since the buffers in a buffer strategy + * are usually type VolatileImage, they may become lost. + * For a discussion on lost buffers, see VolatileImage. + */ + // @ts-ignore + public abstract contentsLost(): boolean; + /** + * Returns whether the drawing buffer was recently restored from a lost + * state and reinitialized to the default background color (white). + * Since the buffers in a buffer strategy are usually type + * VolatileImage, they may become lost. If a surface has + * been recently restored from a lost state since the last call to + * getDrawGraphics, it may require repainting. + * For a discussion on lost buffers, see VolatileImage. + */ + // @ts-ignore + public abstract contentsRestored(): boolean; + /** + * Makes the next available buffer visible by either copying the memory + * (blitting) or changing the display pointer (flipping). + */ + // @ts-ignore + public abstract show(): void; + /** + * Releases system resources currently consumed by this + * BufferStrategy and + * removes it from the associated Component. After invoking this + * method, getBufferStrategy will return null. Trying + * to use a BufferStrategy after it has been disposed will + * result in undefined behavior. + */ + // @ts-ignore + public dispose(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.BufferedImage.d.ts b/packages/types/dist/typings/jdk/java.awt.image.BufferedImage.d.ts new file mode 100644 index 00000000..01991e53 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.BufferedImage.d.ts @@ -0,0 +1,448 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class BufferedImage extends java.awt.Image { + /** + * Constructs a BufferedImage of one of the predefined + * image types. The ColorSpace for the image is the + * default sRGB space. + */ + // @ts-ignore + constructor(width: number, height: number, imageType: number) + /** + * Constructs a BufferedImage of one of the predefined + * image types: + * TYPE_BYTE_BINARY or TYPE_BYTE_INDEXED. + *

If the image type is TYPE_BYTE_BINARY, the number of + * entries in the color model is used to determine whether the + * image should have 1, 2, or 4 bits per pixel. If the color model + * has 1 or 2 entries, the image will have 1 bit per pixel. If it + * has 3 or 4 entries, the image with have 2 bits per pixel. If + * it has between 5 and 16 entries, the image will have 4 bits per + * pixel. Otherwise, an IllegalArgumentException will be thrown. + */ + // @ts-ignore + constructor(width: number, height: number, imageType: number, cm: java.awt.image.IndexColorModel) + /** + * Constructs a new BufferedImage with a specified + * ColorModel and Raster. If the number and + * types of bands in the SampleModel of the + * Raster do not match the number and types required by + * the ColorModel to represent its color and alpha + * components, a {@link RasterFormatException} is thrown. This + * method can multiply or divide the color Raster data by + * alpha to match the alphaPremultiplied state + * in the ColorModel. Properties for this + * BufferedImage can be established by passing + * in a {@link Hashtable} of String/Object + * pairs. + */ + // @ts-ignore + constructor(cm: java.awt.image.ColorModel, raster: java.awt.image.WritableRaster, isRasterPremultiplied: boolean, properties: java.util.Hashtable) + // @ts-ignore + public static TYPE_CUSTOM: number; + // @ts-ignore + public static TYPE_INT_RGB: number; + // @ts-ignore + public static TYPE_INT_ARGB: number; + // @ts-ignore + public static TYPE_INT_ARGB_PRE: number; + // @ts-ignore + public static TYPE_INT_BGR: number; + // @ts-ignore + public static TYPE_3BYTE_BGR: number; + // @ts-ignore + public static TYPE_4BYTE_ABGR: number; + // @ts-ignore + public static TYPE_4BYTE_ABGR_PRE: number; + // @ts-ignore + public static TYPE_USHORT_565_RGB: number; + // @ts-ignore + public static TYPE_USHORT_555_RGB: number; + // @ts-ignore + public static TYPE_BYTE_GRAY: number; + // @ts-ignore + public static TYPE_USHORT_GRAY: number; + // @ts-ignore + public static TYPE_BYTE_BINARY: number; + // @ts-ignore + public static TYPE_BYTE_INDEXED: number; + /** + * Returns the image type. If it is not one of the known types, + * TYPE_CUSTOM is returned. + */ + // @ts-ignore + public getType(): number; + /** + * Returns the ColorModel. + */ + // @ts-ignore + public getColorModel(): java.awt.image.ColorModel; + /** + * Returns the {@link WritableRaster}. + */ + // @ts-ignore + public getRaster(): java.awt.image.WritableRaster; + /** + * Returns a WritableRaster representing the alpha + * channel for BufferedImage objects + * with ColorModel objects that support a separate + * spatial alpha channel, such as ComponentColorModel and + * DirectColorModel. Returns null if there + * is no alpha channel associated with the ColorModel in + * this image. This method assumes that for all + * ColorModel objects other than + * IndexColorModel, if the ColorModel + * supports alpha, there is a separate alpha channel + * which is stored as the last band of image data. + * If the image uses an IndexColorModel that + * has alpha in the lookup table, this method returns + * null since there is no spatially discrete alpha + * channel. This method creates a new + * WritableRaster, but shares the data array. + */ + // @ts-ignore + public getAlphaRaster(): java.awt.image.WritableRaster; + /** + * Returns an integer pixel in the default RGB color model + * (TYPE_INT_ARGB) and default sRGB colorspace. Color + * conversion takes place if this default model does not match + * the image ColorModel. There are only 8-bits of + * precision for each color component in the returned data when using + * this method. + *

+ * An ArrayOutOfBoundsException may be thrown + * if the coordinates are not in bounds. + * However, explicit bounds checking is not guaranteed. + */ + // @ts-ignore + public getRGB(x: number, y: number): number; + /** + * Returns an array of integer pixels in the default RGB color model + * (TYPE_INT_ARGB) and default sRGB color space, + * from a portion of the image data. Color conversion takes + * place if the default model does not match the image + * ColorModel. There are only 8-bits of precision for + * each color component in the returned data when + * using this method. With a specified coordinate (x, y) in the + * image, the ARGB pixel can be accessed in this way: + *

+                 * pixel   = rgbArray[offset + (y-startY)*scansize + (x-startX)]; 
+ *

+ * An ArrayOutOfBoundsException may be thrown + * if the region is not in bounds. + * However, explicit bounds checking is not guaranteed. + */ + // @ts-ignore + public getRGB(startX: number, startY: number, w: number, h: number, rgbArray: number, offset: number, scansize: number): number[]; + /** + * Sets a pixel in this BufferedImage to the specified + * RGB value. The pixel is assumed to be in the default RGB color + * model, TYPE_INT_ARGB, and default sRGB color space. For images + * with an IndexColorModel, the index with the nearest + * color is chosen. + *

+ * An ArrayOutOfBoundsException may be thrown + * if the coordinates are not in bounds. + * However, explicit bounds checking is not guaranteed. + */ + // @ts-ignore + public setRGB(x: number, y: number, rgb: number): void; + /** + * Sets an array of integer pixels in the default RGB color model + * (TYPE_INT_ARGB) and default sRGB color space, + * into a portion of the image data. Color conversion takes place + * if the default model does not match the image + * ColorModel. There are only 8-bits of precision for + * each color component in the returned data when + * using this method. With a specified coordinate (x, y) in the + * this image, the ARGB pixel can be accessed in this way: + *

+                 * pixel   = rgbArray[offset + (y-startY)*scansize + (x-startX)];
+                 * 
+ * WARNING: No dithering takes place. + *

+ * An ArrayOutOfBoundsException may be thrown + * if the region is not in bounds. + * However, explicit bounds checking is not guaranteed. + */ + // @ts-ignore + public setRGB(startX: number, startY: number, w: number, h: number, rgbArray: number, offset: number, scansize: number): void; + /** + * Returns the width of the BufferedImage. + */ + // @ts-ignore + public getWidth(): number; + /** + * Returns the height of the BufferedImage. + */ + // @ts-ignore + public getHeight(): number; + /** + * Returns the width of the BufferedImage. + */ + // @ts-ignore + public getWidth(observer: java.awt.image.ImageObserver): number; + /** + * Returns the height of the BufferedImage. + */ + // @ts-ignore + public getHeight(observer: java.awt.image.ImageObserver): number; + /** + * Returns the object that produces the pixels for the image. + */ + // @ts-ignore + public getSource(): java.awt.image.ImageProducer; + /** + * Returns a property of the image by name. Individual property names + * are defined by the various image formats. If a property is not + * defined for a particular image, this method returns the + * UndefinedProperty field. If the properties + * for this image are not yet known, then this method returns + * null and the ImageObserver object is + * notified later. The property name "comment" should be used to + * store an optional comment that can be presented to the user as a + * description of the image, its source, or its author. + */ + // @ts-ignore + public getProperty(name: string, observer: java.awt.image.ImageObserver): java.lang.Object; + /** + * Returns a property of the image by name. + */ + // @ts-ignore + public getProperty(name: string): java.lang.Object; + /** + * This method returns a {@link Graphics2D}, but is here + * for backwards compatibility. {@link #createGraphics() createGraphics} is more + * convenient, since it is declared to return a + * Graphics2D. + */ + // @ts-ignore + public getGraphics(): java.awt.Graphics; + /** + * Creates a Graphics2D, which can be used to draw into + * this BufferedImage. + */ + // @ts-ignore + public createGraphics(): java.awt.Graphics2D; + /** + * Returns a subimage defined by a specified rectangular region. + * The returned BufferedImage shares the same + * data array as the original image. + */ + // @ts-ignore + public getSubimage(x: number, y: number, w: number, h: number): java.awt.image.BufferedImage; + /** + * Returns whether or not the alpha has been premultiplied. It + * returns false if there is no alpha. + */ + // @ts-ignore + public isAlphaPremultiplied(): boolean; + /** + * Forces the data to match the state specified in the + * isAlphaPremultiplied variable. It may multiply or + * divide the color raster data by alpha, or do nothing if the data is + * in the correct state. + */ + // @ts-ignore + public coerceData(isAlphaPremultiplied: boolean): void; + /** + * Returns a String representation of this + * BufferedImage object and its values. + */ + // @ts-ignore + public toString(): string; + /** + * Returns a {@link Vector} of {@link RenderedImage} objects that are + * the immediate sources, not the sources of these immediate sources, + * of image data for this BufferedImage. This + * method returns null if the BufferedImage + * has no information about its immediate sources. It returns an + * empty Vector if the BufferedImage has no + * immediate sources. + */ + // @ts-ignore + public getSources(): java.util.Vector; + /** + * Returns an array of names recognized by + * {@link #getProperty(String) getProperty(String)} + * or null, if no property names are recognized. + */ + // @ts-ignore + public getPropertyNames(): java.lang.String[]; + /** + * Returns the minimum x coordinate of this + * BufferedImage. This is always zero. + */ + // @ts-ignore + public getMinX(): number; + /** + * Returns the minimum y coordinate of this + * BufferedImage. This is always zero. + */ + // @ts-ignore + public getMinY(): number; + /** + * Returns the SampleModel associated with this + * BufferedImage. + */ + // @ts-ignore + public getSampleModel(): java.awt.image.SampleModel; + /** + * Returns the number of tiles in the x direction. + * This is always one. + */ + // @ts-ignore + public getNumXTiles(): number; + /** + * Returns the number of tiles in the y direction. + * This is always one. + */ + // @ts-ignore + public getNumYTiles(): number; + /** + * Returns the minimum tile index in the x direction. + * This is always zero. + */ + // @ts-ignore + public getMinTileX(): number; + /** + * Returns the minimum tile index in the y direction. + * This is always zero. + */ + // @ts-ignore + public getMinTileY(): number; + /** + * Returns the tile width in pixels. + */ + // @ts-ignore + public getTileWidth(): number; + /** + * Returns the tile height in pixels. + */ + // @ts-ignore + public getTileHeight(): number; + /** + * Returns the x offset of the tile grid relative to the origin, + * For example, the x coordinate of the location of tile + * (0, 0). This is always zero. + */ + // @ts-ignore + public getTileGridXOffset(): number; + /** + * Returns the y offset of the tile grid relative to the origin, + * For example, the y coordinate of the location of tile + * (0, 0). This is always zero. + */ + // @ts-ignore + public getTileGridYOffset(): number; + /** + * Returns tile (tileXtileY). Note + * that tileX and tileY are indices + * into the tile array, not pixel locations. The Raster + * that is returned is live, which means that it is updated if the + * image is changed. + */ + // @ts-ignore + public getTile(tileX: number, tileY: number): java.awt.image.Raster; + /** + * Returns the image as one large tile. The Raster + * returned is a copy of the image data is not updated if the + * image is changed. + */ + // @ts-ignore + public getData(): java.awt.image.Raster; + /** + * Computes and returns an arbitrary region of the + * BufferedImage. The Raster returned is a + * copy of the image data and is not updated if the image is + * changed. + */ + // @ts-ignore + public getData(rect: java.awt.Rectangle): java.awt.image.Raster; + /** + * Computes an arbitrary rectangular region of the + * BufferedImage and copies it into a specified + * WritableRaster. The region to be computed is + * determined from the bounds of the specified + * WritableRaster. The specified + * WritableRaster must have a + * SampleModel that is compatible with this image. If + * outRaster is null, + * an appropriate WritableRaster is created. + */ + // @ts-ignore + public copyData(outRaster: java.awt.image.WritableRaster): java.awt.image.WritableRaster; + /** + * Sets a rectangular region of the image to the contents of the + * specified Raster r, which is + * assumed to be in the same coordinate space as the + * BufferedImage. The operation is clipped to the bounds + * of the BufferedImage. + */ + // @ts-ignore + public setData(r: java.awt.image.Raster): void; + /** + * Adds a tile observer. If the observer is already present, + * it receives multiple notifications. + */ + // @ts-ignore + public addTileObserver(to: java.awt.image.TileObserver): void; + /** + * Removes a tile observer. If the observer was not registered, + * nothing happens. If the observer was registered for multiple + * notifications, it is now registered for one fewer notification. + */ + // @ts-ignore + public removeTileObserver(to: java.awt.image.TileObserver): void; + /** + * Returns whether or not a tile is currently checked out for writing. + */ + // @ts-ignore + public isTileWritable(tileX: number, tileY: number): boolean; + /** + * Returns an array of {@link Point} objects indicating which tiles + * are checked out for writing. Returns null if none are + * checked out. + */ + // @ts-ignore + public getWritableTileIndices(): java.awt.Point[]; + /** + * Returns whether or not any tile is checked out for writing. + * Semantically equivalent to + *

+                 * (getWritableTileIndices() != null).
+                 * 
+ */ + // @ts-ignore + public hasTileWriters(): boolean; + /** + * Checks out a tile for writing. All registered + * TileObservers are notified when a tile goes from having + * no writers to having one writer. + */ + // @ts-ignore + public getWritableTile(tileX: number, tileY: number): java.awt.image.WritableRaster; + /** + * Relinquishes permission to write to a tile. If the caller + * continues to write to the tile, the results are undefined. + * Calls to this method should only appear in matching pairs + * with calls to {@link #getWritableTile(int, int) getWritableTile(int, int)}. Any other leads + * to undefined results. All registered TileObservers + * are notified when a tile goes from having one writer to having no + * writers. + */ + // @ts-ignore + public releaseWritableTile(tileX: number, tileY: number): void; + /** + * Returns the transparency. Returns either OPAQUE, BITMASK, + * or TRANSLUCENT. + */ + // @ts-ignore + public getTransparency(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.BufferedImageFilter.d.ts b/packages/types/dist/typings/jdk/java.awt.image.BufferedImageFilter.d.ts new file mode 100644 index 00000000..7ed000e0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.BufferedImageFilter.d.ts @@ -0,0 +1,96 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class BufferedImageFilter extends java.awt.image.ImageFilter { + /** + * Constructs a BufferedImageFilter with the + * specified single-source/single-destination operator. + */ + // @ts-ignore + constructor(op: java.awt.image.BufferedImageOp) + /** + * Returns the BufferedImageOp. + */ + // @ts-ignore + public getBufferedImageOp(): java.awt.image.BufferedImageOp; + /** + * Filters the information provided in the + * {@link ImageConsumer#setDimensions(int, int) setDimensions } method + * of the {@link ImageConsumer} interface. + *

+ * Note: This method is intended to be called by the + * {@link ImageProducer} of the Image whose pixels are + * being filtered. Developers using this class to retrieve pixels from + * an image should avoid calling this method directly since that + * operation could result in problems with retrieving the requested + * pixels. + *

+ */ + // @ts-ignore + public setDimensions(width: number, height: number): void; + /** + * Filters the information provided in the + * {@link ImageConsumer#setColorModel(ColorModel) setColorModel} method + * of the ImageConsumer interface. + *

+ * If model is null, this + * method clears the current ColorModel of this + * BufferedImageFilter. + *

+ * Note: This method is intended to be called by the + * ImageProducer of the Image + * whose pixels are being filtered. Developers using this + * class to retrieve pixels from an image + * should avoid calling this method directly since that + * operation could result in problems with retrieving the + * requested pixels. + */ + // @ts-ignore + public setColorModel(model: java.awt.image.ColorModel): void; + /** + * Filters the information provided in the setPixels + * method of the ImageConsumer interface which takes + * an array of bytes. + *

+ * Note: This method is intended to be called by the + * ImageProducer of the Image whose pixels + * are being filtered. Developers using + * this class to retrieve pixels from an image should avoid calling + * this method directly since that operation could result in problems + * with retrieving the requested pixels. + */ + // @ts-ignore + public setPixels(x: number, y: number, w: number, h: number, model: java.awt.image.ColorModel, pixels: number, off: number, scansize: number): void; + /** + * Filters the information provided in the setPixels + * method of the ImageConsumer interface which takes + * an array of integers. + *

+ * Note: This method is intended to be called by the + * ImageProducer of the Image whose + * pixels are being filtered. Developers using this class to + * retrieve pixels from an image should avoid calling this method + * directly since that operation could result in problems + * with retrieving the requested pixels. + */ + // @ts-ignore + public setPixels(x: number, y: number, w: number, h: number, model: java.awt.image.ColorModel, pixels: number, off: number, scansize: number): void; + /** + * Filters the information provided in the imageComplete + * method of the ImageConsumer interface. + *

+ * Note: This method is intended to be called by the + * ImageProducer of the Image whose pixels + * are being filtered. Developers using + * this class to retrieve pixels from an image should avoid calling + * this method directly since that operation could result in problems + * with retrieving the requested pixels. + */ + // @ts-ignore + public imageComplete(status: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.BufferedImageOp.d.ts b/packages/types/dist/typings/jdk/java.awt.image.BufferedImageOp.d.ts new file mode 100644 index 00000000..af9f490d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.BufferedImageOp.d.ts @@ -0,0 +1,54 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + interface BufferedImageOp { + /** + * Performs a single-input/single-output operation on a + * BufferedImage. + * If the color models for the two images do not match, a color + * conversion into the destination color model is performed. + * If the destination image is null, + * a BufferedImage with an appropriate ColorModel + * is created. + *

+ * An IllegalArgumentException may be thrown if the source + * and/or destination image is incompatible with the types of images $ + * allowed by the class implementing this filter. + */ + // @ts-ignore + filter(src: java.awt.image.BufferedImage, dest: java.awt.image.BufferedImage): java.awt.image.BufferedImage; + /** + * Returns the bounding box of the filtered destination image. + * An IllegalArgumentException may be thrown if the source + * image is incompatible with the types of images allowed + * by the class implementing this filter. + */ + // @ts-ignore + getBounds2D(src: java.awt.image.BufferedImage): java.awt.geom.Rectangle2D; + /** + * Creates a zeroed destination image with the correct size and number of + * bands. + * An IllegalArgumentException may be thrown if the source + * image is incompatible with the types of images allowed + * by the class implementing this filter. + */ + // @ts-ignore + createCompatibleDestImage(src: java.awt.image.BufferedImage, destCM: java.awt.image.ColorModel): java.awt.image.BufferedImage; + /** + * Returns the location of the corresponding destination point given a + * point in the source image. If dstPt is specified, it + * is used to hold the return value. + */ + // @ts-ignore + getPoint2D(srcPt: java.awt.geom.Point2D, dstPt: java.awt.geom.Point2D): java.awt.geom.Point2D; + /** + * Returns the rendering hints for this operation. + */ + // @ts-ignore + getRenderingHints(): java.awt.RenderingHints; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.ByteLookupTable.d.ts b/packages/types/dist/typings/jdk/java.awt.image.ByteLookupTable.d.ts new file mode 100644 index 00000000..88b14767 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.ByteLookupTable.d.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class ByteLookupTable extends java.awt.image.LookupTable { + /** + * Constructs a ByteLookupTable object from an array of byte + * arrays representing a lookup table for each + * band. The offset will be subtracted from input + * values before indexing into the arrays. The number of + * bands is the length of the data argument. The + * data array for each band is stored as a reference. + */ + // @ts-ignore + constructor(offset: number, data: number) + /** + * Constructs a ByteLookupTable object from an array + * of bytes representing a lookup table to be applied to all + * bands. The offset will be subtracted from input + * values before indexing into the array. + * The data array is stored as a reference. + */ + // @ts-ignore + constructor(offset: number, data: number) + /** + * Returns the lookup table data by reference. If this ByteLookupTable + * was constructed using a single byte array, the length of the returned + * array is one. + */ + // @ts-ignore + public getTable(): byte[][]; + /** + * Returns an array of samples of a pixel, translated with the lookup + * table. The source and destination array can be the same array. + * Array dst is returned. + */ + // @ts-ignore + public lookupPixel(src: number, dst: number): number[]; + /** + * Returns an array of samples of a pixel, translated with the lookup + * table. The source and destination array can be the same array. + * Array dst is returned. + */ + // @ts-ignore + public lookupPixel(src: number, dst: number): number[]; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.ColorConvertOp.d.ts b/packages/types/dist/typings/jdk/java.awt.image.ColorConvertOp.d.ts new file mode 100644 index 00000000..3893de8d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.ColorConvertOp.d.ts @@ -0,0 +1,136 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class ColorConvertOp extends java.lang.Object { + /** + * Constructs a new ColorConvertOp which will convert + * from a source color space to a destination color space. + * The RenderingHints argument may be null. + * This Op can be used only with BufferedImages, and will convert + * directly from the ColorSpace of the source image to that of the + * destination. The destination argument of the filter method + * cannot be specified as null. + */ + // @ts-ignore + constructor(hints: java.awt.RenderingHints) + /** + * Constructs a new ColorConvertOp from a ColorSpace object. + * The RenderingHints argument may be null. This + * Op can be used only with BufferedImages, and is primarily useful + * when the {@link #filter(BufferedImage, BufferedImage) filter} + * method is invoked with a destination argument of null. + * In that case, the ColorSpace defines the destination color space + * for the destination created by the filter method. Otherwise, the + * ColorSpace defines an intermediate space to which the source is + * converted before being converted to the destination space. + */ + // @ts-ignore + constructor(cspace: java.awt.color.ColorSpace, hints: java.awt.RenderingHints) + /** + * Constructs a new ColorConvertOp from two ColorSpace objects. + * The RenderingHints argument may be null. + * This Op is primarily useful for calling the filter method on + * Rasters, in which case the two ColorSpaces define the operation + * to be performed on the Rasters. In that case, the number of bands + * in the source Raster must match the number of components in + * srcCspace, and the number of bands in the destination Raster + * must match the number of components in dstCspace. For BufferedImages, + * the two ColorSpaces define intermediate spaces through which the + * source is converted before being converted to the destination space. + */ + // @ts-ignore + constructor(srcCspace: java.awt.color.ColorSpace, dstCspace: java.awt.color.ColorSpace, hints: java.awt.RenderingHints) + /** + * Constructs a new ColorConvertOp from an array of ICC_Profiles. + * The RenderingHints argument may be null. + * The sequence of profiles may include profiles that represent color + * spaces, profiles that represent effects, etc. If the whole sequence + * does not represent a well-defined color conversion, an exception is + * thrown. + *

For BufferedImages, if the ColorSpace + * of the source BufferedImage does not match the requirements of the + * first profile in the array, + * the first conversion is to an appropriate ColorSpace. + * If the requirements of the last profile in the array are not met + * by the ColorSpace of the destination BufferedImage, + * the last conversion is to the destination's ColorSpace. + *

For Rasters, the number of bands in the source Raster must match + * the requirements of the first profile in the array, and the + * number of bands in the destination Raster must match the requirements + * of the last profile in the array. The array must have at least two + * elements or calling the filter method for Rasters will throw an + * IllegalArgumentException. + */ + // @ts-ignore + constructor(profiles: java.awt.color.ICC_Profile, hints: java.awt.RenderingHints) + /** + * Returns the array of ICC_Profiles used to construct this ColorConvertOp. + * Returns null if the ColorConvertOp was not constructed from such an + * array. + */ + // @ts-ignore + public getICC_Profiles(): java.awt.color.ICC_Profile[]; + /** + * ColorConverts the source BufferedImage. + * If the destination image is null, + * a BufferedImage will be created with an appropriate ColorModel. + */ + // @ts-ignore + public filter(src: java.awt.image.BufferedImage, dest: java.awt.image.BufferedImage): java.awt.image.BufferedImage; + /** + * ColorConverts the image data in the source Raster. + * If the destination Raster is null, a new Raster will be created. + * The number of bands in the source and destination Rasters must + * meet the requirements explained above. The constructor used to + * create this ColorConvertOp must have provided enough information + * to define both source and destination color spaces. See above. + * Otherwise, an exception is thrown. + */ + // @ts-ignore + public filter(src: java.awt.image.Raster, dest: java.awt.image.WritableRaster): java.awt.image.WritableRaster; + /** + * Returns the bounding box of the destination, given this source. + * Note that this will be the same as the the bounding box of the + * source. + */ + // @ts-ignore + public getBounds2D(src: java.awt.image.BufferedImage): java.awt.geom.Rectangle2D; + /** + * Returns the bounding box of the destination, given this source. + * Note that this will be the same as the the bounding box of the + * source. + */ + // @ts-ignore + public getBounds2D(src: java.awt.image.Raster): java.awt.geom.Rectangle2D; + /** + * Creates a zeroed destination image with the correct size and number of + * bands, given this source. + */ + // @ts-ignore + public createCompatibleDestImage(src: java.awt.image.BufferedImage, destCM: java.awt.image.ColorModel): java.awt.image.BufferedImage; + /** + * Creates a zeroed destination Raster with the correct size and number of + * bands, given this source. + */ + // @ts-ignore + public createCompatibleDestRaster(src: java.awt.image.Raster): java.awt.image.WritableRaster; + /** + * Returns the location of the destination point given a + * point in the source. If dstPt is non-null, + * it will be used to hold the return value. Note that + * for this class, the destination point will be the same + * as the source point. + */ + // @ts-ignore + public getPoint2D(srcPt: java.awt.geom.Point2D, dstPt: java.awt.geom.Point2D): java.awt.geom.Point2D; + /** + * Returns the rendering hints used by this op. + */ + // @ts-ignore + public getRenderingHints(): java.awt.RenderingHints; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.ColorModel.d.ts b/packages/types/dist/typings/jdk/java.awt.image.ColorModel.d.ts new file mode 100644 index 00000000..da90fc04 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.ColorModel.d.ts @@ -0,0 +1,711 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + abstract class ColorModel extends java.lang.Object { + /** + * Constructs a ColorModel that translates pixels of the + * specified number of bits to color/alpha components. The color + * space is the default RGB ColorSpace, which is sRGB. + * Pixel values are assumed to include alpha information. If color + * and alpha information are represented in the pixel value as + * separate spatial bands, the color bands are assumed not to be + * premultiplied with the alpha value. The transparency type is + * java.awt.Transparency.TRANSLUCENT. The transfer type will be the + * smallest of DataBuffer.TYPE_BYTE, DataBuffer.TYPE_USHORT, + * or DataBuffer.TYPE_INT that can hold a single pixel + * (or DataBuffer.TYPE_UNDEFINED if bits is greater + * than 32). Since this constructor has no information about the + * number of bits per color and alpha component, any subclass calling + * this constructor should override any method that requires this + * information. + */ + // @ts-ignore + constructor(bits: number) + /** + * Constructs a ColorModel that translates pixel values + * to color/alpha components. Color components will be in the + * specified ColorSpace. pixel_bits is the + * number of bits in the pixel values. The bits array + * specifies the number of significant bits per color and alpha component. + * Its length should be the number of components in the + * ColorSpace if there is no alpha information in the + * pixel values, or one more than this number if there is alpha + * information. hasAlpha indicates whether or not alpha + * information is present. The boolean + * isAlphaPremultiplied specifies how to interpret pixel + * values in which color and alpha information are represented as + * separate spatial bands. If the boolean + * is true, color samples are assumed to have been + * multiplied by the alpha sample. The transparency + * specifies what alpha values can be represented by this color model. + * The transfer type is the type of primitive array used to represent + * pixel values. Note that the bits array contains the number of + * significant bits per color/alpha component after the translation + * from pixel values. For example, for an + * IndexColorModel with pixel_bits equal to + * 16, the bits array might have four elements with each element set + * to 8. + */ + // @ts-ignore + constructor(pixel_bits: number, bits: number, cspace: java.awt.color.ColorSpace, hasAlpha: boolean, isAlphaPremultiplied: boolean, transparency: number, transferType: number) + // @ts-ignore + protected pixel_bits: number; + // @ts-ignore + protected transferType: number; + /** + * Returns a DirectColorModel that describes the default + * format for integer RGB values used in many of the methods in the + * AWT image interfaces for the convenience of the programmer. + * The color space is the default {@link ColorSpace}, sRGB. + * The format for the RGB values is an integer with 8 bits + * each of alpha, red, green, and blue color components ordered + * correspondingly from the most significant byte to the least + * significant byte, as in: 0xAARRGGBB. Color components are + * not premultiplied by the alpha component. This format does not + * necessarily represent the native or the most efficient + * ColorModel for a particular device or for all images. + * It is merely used as a common color model format. + */ + // @ts-ignore + public static getRGBdefault(): java.awt.image.ColorModel; + /** + * Returns whether or not alpha is supported in this + * ColorModel. + */ + // @ts-ignore + public hasAlpha(): boolean; + /** + * Returns whether or not the alpha has been premultiplied in the + * pixel values to be translated by this ColorModel. + * If the boolean is true, this ColorModel + * is to be used to interpret pixel values in which color and alpha + * information are represented as separate spatial bands, and color + * samples are assumed to have been multiplied by the + * alpha sample. + */ + // @ts-ignore + public isAlphaPremultiplied(): boolean; + /** + * Returns the transfer type of this ColorModel. + * The transfer type is the type of primitive array used to represent + * pixel values as arrays. + */ + // @ts-ignore + public getTransferType(): number; + /** + * Returns the number of bits per pixel described by this + * ColorModel. + */ + // @ts-ignore + public getPixelSize(): number; + /** + * Returns the number of bits for the specified color/alpha component. + * Color components are indexed in the order specified by the + * ColorSpace. Typically, this order reflects the name + * of the color space type. For example, for TYPE_RGB, index 0 + * corresponds to red, index 1 to green, and index 2 + * to blue. If this ColorModel supports alpha, the alpha + * component corresponds to the index following the last color + * component. + */ + // @ts-ignore + public getComponentSize(componentIdx: number): number; + /** + * Returns an array of the number of bits per color/alpha component. + * The array contains the color components in the order specified by the + * ColorSpace, followed by the alpha component, if + * present. + */ + // @ts-ignore + public getComponentSize(): number[]; + /** + * Returns the transparency. Returns either OPAQUE, BITMASK, + * or TRANSLUCENT. + */ + // @ts-ignore + public getTransparency(): number; + /** + * Returns the number of components, including alpha, in this + * ColorModel. This is equal to the number of color + * components, optionally plus one, if there is an alpha component. + */ + // @ts-ignore + public getNumComponents(): number; + /** + * Returns the number of color components in this + * ColorModel. + * This is the number of components returned by + * {@link ColorSpace#getNumComponents}. + */ + // @ts-ignore + public getNumColorComponents(): number; + /** + * Returns the red color component for the specified pixel, scaled + * from 0 to 255 in the default RGB ColorSpace, sRGB. A color conversion + * is done if necessary. The pixel value is specified as an int. + * An IllegalArgumentException is thrown if pixel + * values for this ColorModel are not conveniently + * representable as a single int. The returned value is not a + * pre-multiplied value. For example, if the + * alpha is premultiplied, this method divides it out before returning + * the value. If the alpha value is 0, the red value is 0. + */ + // @ts-ignore + public abstract getRed(pixel: number): number; + /** + * Returns the green color component for the specified pixel, scaled + * from 0 to 255 in the default RGB ColorSpace, sRGB. A color conversion + * is done if necessary. The pixel value is specified as an int. + * An IllegalArgumentException is thrown if pixel + * values for this ColorModel are not conveniently + * representable as a single int. The returned value is a non + * pre-multiplied value. For example, if the alpha is premultiplied, + * this method divides it out before returning + * the value. If the alpha value is 0, the green value is 0. + */ + // @ts-ignore + public abstract getGreen(pixel: number): number; + /** + * Returns the blue color component for the specified pixel, scaled + * from 0 to 255 in the default RGB ColorSpace, sRGB. A color conversion + * is done if necessary. The pixel value is specified as an int. + * An IllegalArgumentException is thrown if pixel values + * for this ColorModel are not conveniently representable + * as a single int. The returned value is a non pre-multiplied + * value, for example, if the alpha is premultiplied, this method + * divides it out before returning the value. If the alpha value is + * 0, the blue value is 0. + */ + // @ts-ignore + public abstract getBlue(pixel: number): number; + /** + * Returns the alpha component for the specified pixel, scaled + * from 0 to 255. The pixel value is specified as an int. + * An IllegalArgumentException is thrown if pixel + * values for this ColorModel are not conveniently + * representable as a single int. + */ + // @ts-ignore + public abstract getAlpha(pixel: number): number; + /** + * Returns the color/alpha components of the pixel in the default + * RGB color model format. A color conversion is done if necessary. + * The pixel value is specified as an int. + * An IllegalArgumentException thrown if pixel values + * for this ColorModel are not conveniently representable + * as a single int. The returned value is in a non + * pre-multiplied format. For example, if the alpha is premultiplied, + * this method divides it out of the color components. If the alpha + * value is 0, the color values are 0. + */ + // @ts-ignore + public getRGB(pixel: number): number; + /** + * Returns the red color component for the specified pixel, scaled + * from 0 to 255 in the default RGB ColorSpace, sRGB. A + * color conversion is done if necessary. The pixel value is + * specified by an array of data elements of type transferType passed + * in as an object reference. The returned value is a non + * pre-multiplied value. For example, if alpha is premultiplied, + * this method divides it out before returning + * the value. If the alpha value is 0, the red value is 0. + * If inData is not a primitive array of type + * transferType, a ClassCastException is thrown. An + * ArrayIndexOutOfBoundsException is thrown if + * inData is not large enough to hold a pixel value for + * this ColorModel. + * If this transferType is not supported, a + * UnsupportedOperationException will be + * thrown. Since + * ColorModel is an abstract class, any instance + * must be an instance of a subclass. Subclasses inherit the + * implementation of this method and if they don't override it, this + * method throws an exception if the subclass uses a + * transferType other than + * DataBuffer.TYPE_BYTE, + * DataBuffer.TYPE_USHORT, or + * DataBuffer.TYPE_INT. + */ + // @ts-ignore + public getRed(inData: java.lang.Object): number; + /** + * Returns the green color component for the specified pixel, scaled + * from 0 to 255 in the default RGB ColorSpace, sRGB. A + * color conversion is done if necessary. The pixel value is + * specified by an array of data elements of type transferType passed + * in as an object reference. The returned value will be a non + * pre-multiplied value. For example, if the alpha is premultiplied, + * this method divides it out before returning the value. If the + * alpha value is 0, the green value is 0. If inData is + * not a primitive array of type transferType, a + * ClassCastException is thrown. An + * ArrayIndexOutOfBoundsException is thrown if + * inData is not large enough to hold a pixel value for + * this ColorModel. + * If this transferType is not supported, a + * UnsupportedOperationException will be + * thrown. Since + * ColorModel is an abstract class, any instance + * must be an instance of a subclass. Subclasses inherit the + * implementation of this method and if they don't override it, this + * method throws an exception if the subclass uses a + * transferType other than + * DataBuffer.TYPE_BYTE, + * DataBuffer.TYPE_USHORT, or + * DataBuffer.TYPE_INT. + */ + // @ts-ignore + public getGreen(inData: java.lang.Object): number; + /** + * Returns the blue color component for the specified pixel, scaled + * from 0 to 255 in the default RGB ColorSpace, sRGB. A + * color conversion is done if necessary. The pixel value is + * specified by an array of data elements of type transferType passed + * in as an object reference. The returned value is a non + * pre-multiplied value. For example, if the alpha is premultiplied, + * this method divides it out before returning the value. If the + * alpha value is 0, the blue value will be 0. If + * inData is not a primitive array of type transferType, + * a ClassCastException is thrown. An + * ArrayIndexOutOfBoundsException is + * thrown if inData is not large enough to hold a pixel + * value for this ColorModel. + * If this transferType is not supported, a + * UnsupportedOperationException will be + * thrown. Since + * ColorModel is an abstract class, any instance + * must be an instance of a subclass. Subclasses inherit the + * implementation of this method and if they don't override it, this + * method throws an exception if the subclass uses a + * transferType other than + * DataBuffer.TYPE_BYTE, + * DataBuffer.TYPE_USHORT, or + * DataBuffer.TYPE_INT. + */ + // @ts-ignore + public getBlue(inData: java.lang.Object): number; + /** + * Returns the alpha component for the specified pixel, scaled + * from 0 to 255. The pixel value is specified by an array of data + * elements of type transferType passed in as an object reference. + * If inData is not a primitive array of type transferType, a + * ClassCastException is thrown. An + * ArrayIndexOutOfBoundsException is thrown if + * inData is not large enough to hold a pixel value for + * this ColorModel. + * If this transferType is not supported, a + * UnsupportedOperationException will be + * thrown. Since + * ColorModel is an abstract class, any instance + * must be an instance of a subclass. Subclasses inherit the + * implementation of this method and if they don't override it, this + * method throws an exception if the subclass uses a + * transferType other than + * DataBuffer.TYPE_BYTE, + * DataBuffer.TYPE_USHORT, or + * DataBuffer.TYPE_INT. + */ + // @ts-ignore + public getAlpha(inData: java.lang.Object): number; + /** + * Returns the color/alpha components for the specified pixel in the + * default RGB color model format. A color conversion is done if + * necessary. The pixel value is specified by an array of data + * elements of type transferType passed in as an object reference. + * If inData is not a primitive array of type transferType, a + * ClassCastException is thrown. An + * ArrayIndexOutOfBoundsException is + * thrown if inData is not large enough to hold a pixel + * value for this ColorModel. + * The returned value will be in a non pre-multiplied format, i.e. if + * the alpha is premultiplied, this method will divide it out of the + * color components (if the alpha value is 0, the color values will be 0). + */ + // @ts-ignore + public getRGB(inData: java.lang.Object): number; + /** + * Returns a data element array representation of a pixel in this + * ColorModel, given an integer pixel representation in + * the default RGB color model. + * This array can then be passed to the + * {@link WritableRaster#setDataElements} method of + * a {@link WritableRaster} object. If the pixel variable is + * null, a new array will be allocated. If + * pixel is not + * null, it must be a primitive array of type + * transferType; otherwise, a + * ClassCastException is thrown. An + * ArrayIndexOutOfBoundsException is thrown if + * pixel is + * not large enough to hold a pixel value for this + * ColorModel. The pixel array is returned. + * If this transferType is not supported, a + * UnsupportedOperationException will be + * thrown. Since ColorModel is an abstract class, + * any instance is an instance of a subclass. Subclasses must + * override this method since the implementation in this abstract + * class throws an UnsupportedOperationException. + */ + // @ts-ignore + public getDataElements(rgb: number, pixel: java.lang.Object): java.lang.Object; + /** + * Returns an array of unnormalized color/alpha components given a pixel + * in this ColorModel. The pixel value is specified as + * an int. An IllegalArgumentException + * will be thrown if pixel values for this ColorModel are + * not conveniently representable as a single int or if + * color component values for this ColorModel are not + * conveniently representable in the unnormalized form. + * For example, this method can be used to retrieve the + * components for a specific pixel value in a + * DirectColorModel. If the components array is + * null, a new array will be allocated. The + * components array will be returned. Color/alpha components are + * stored in the components array starting at offset + * (even if the array is allocated by this method). An + * ArrayIndexOutOfBoundsException is thrown if the + * components array is not null and is not large + * enough to hold all the color and alpha components (starting at offset). + * Since ColorModel is an abstract class, + * any instance is an instance of a subclass. Subclasses must + * override this method since the implementation in this abstract + * class throws an UnsupportedOperationException. + */ + // @ts-ignore + public getComponents(pixel: number, components: number, offset: number): number[]; + /** + * Returns an array of unnormalized color/alpha components given a pixel + * in this ColorModel. The pixel value is specified by + * an array of data elements of type transferType passed in as an + * object reference. If pixel is not a primitive array + * of type transferType, a ClassCastException is thrown. + * An IllegalArgumentException will be thrown if color + * component values for this ColorModel are not + * conveniently representable in the unnormalized form. + * An ArrayIndexOutOfBoundsException is + * thrown if pixel is not large enough to hold a pixel + * value for this ColorModel. + * This method can be used to retrieve the components for a specific + * pixel value in any ColorModel. If the components + * array is null, a new array will be allocated. The + * components array will be returned. Color/alpha components are + * stored in the components array starting at + * offset (even if the array is allocated by this + * method). An ArrayIndexOutOfBoundsException + * is thrown if the components array is not null and is + * not large enough to hold all the color and alpha components + * (starting at offset). + * Since ColorModel is an abstract class, + * any instance is an instance of a subclass. Subclasses must + * override this method since the implementation in this abstract + * class throws an UnsupportedOperationException. + */ + // @ts-ignore + public getComponents(pixel: java.lang.Object, components: number, offset: number): number[]; + /** + * Returns an array of all of the color/alpha components in unnormalized + * form, given a normalized component array. Unnormalized components + * are unsigned integral values between 0 and 2n - 1, where + * n is the number of bits for a particular component. Normalized + * components are float values between a per component minimum and + * maximum specified by the ColorSpace object for this + * ColorModel. An IllegalArgumentException + * will be thrown if color component values for this + * ColorModel are not conveniently representable in the + * unnormalized form. If the + * components array is null, a new array + * will be allocated. The components array will + * be returned. Color/alpha components are stored in the + * components array starting at offset (even + * if the array is allocated by this method). An + * ArrayIndexOutOfBoundsException is thrown if the + * components array is not null and is not + * large enough to hold all the color and alpha + * components (starting at offset). An + * IllegalArgumentException is thrown if the + * normComponents array is not large enough to hold + * all the color and alpha components starting at + * normOffset. + */ + // @ts-ignore + public getUnnormalizedComponents(normComponents: number, normOffset: number, components: number, offset: number): number[]; + /** + * Returns an array of all of the color/alpha components in normalized + * form, given an unnormalized component array. Unnormalized components + * are unsigned integral values between 0 and 2n - 1, where + * n is the number of bits for a particular component. Normalized + * components are float values between a per component minimum and + * maximum specified by the ColorSpace object for this + * ColorModel. An IllegalArgumentException + * will be thrown if color component values for this + * ColorModel are not conveniently representable in the + * unnormalized form. If the + * normComponents array is null, a new array + * will be allocated. The normComponents array + * will be returned. Color/alpha components are stored in the + * normComponents array starting at + * normOffset (even if the array is allocated by this + * method). An ArrayIndexOutOfBoundsException is thrown + * if the normComponents array is not null + * and is not large enough to hold all the color and alpha components + * (starting at normOffset). An + * IllegalArgumentException is thrown if the + * components array is not large enough to hold all the + * color and alpha components starting at offset. + *

+ * Since ColorModel is an abstract class, + * any instance is an instance of a subclass. The default implementation + * of this method in this abstract class assumes that component values + * for this class are conveniently representable in the unnormalized + * form. Therefore, subclasses which may + * have instances which do not support the unnormalized form must + * override this method. + */ + // @ts-ignore + public getNormalizedComponents(components: number, offset: number, normComponents: number, normOffset: number): number[]; + /** + * Returns a pixel value represented as an int in this + * ColorModel, given an array of unnormalized color/alpha + * components. This method will throw an + * IllegalArgumentException if component values for this + * ColorModel are not conveniently representable as a + * single int or if color component values for this + * ColorModel are not conveniently representable in the + * unnormalized form. An + * ArrayIndexOutOfBoundsException is thrown if the + * components array is not large enough to hold all the + * color and alpha components (starting at offset). + * Since ColorModel is an abstract class, + * any instance is an instance of a subclass. Subclasses must + * override this method since the implementation in this abstract + * class throws an UnsupportedOperationException. + */ + // @ts-ignore + public getDataElement(components: number, offset: number): number; + /** + * Returns a data element array representation of a pixel in this + * ColorModel, given an array of unnormalized color/alpha + * components. This array can then be passed to the + * setDataElements method of a WritableRaster + * object. This method will throw an IllegalArgumentException + * if color component values for this ColorModel are not + * conveniently representable in the unnormalized form. + * An ArrayIndexOutOfBoundsException is thrown + * if the components array is not large enough to hold + * all the color and alpha components (starting at + * offset). If the obj variable is + * null, a new array will be allocated. If + * obj is not null, it must be a primitive + * array of type transferType; otherwise, a + * ClassCastException is thrown. An + * ArrayIndexOutOfBoundsException is thrown if + * obj is not large enough to hold a pixel value for this + * ColorModel. + * Since ColorModel is an abstract class, + * any instance is an instance of a subclass. Subclasses must + * override this method since the implementation in this abstract + * class throws an UnsupportedOperationException. + */ + // @ts-ignore + public getDataElements(components: number, offset: number, obj: java.lang.Object): java.lang.Object; + /** + * Returns a pixel value represented as an int in this + * ColorModel, given an array of normalized color/alpha + * components. This method will throw an + * IllegalArgumentException if pixel values for this + * ColorModel are not conveniently representable as a + * single int. An + * ArrayIndexOutOfBoundsException is thrown if the + * normComponents array is not large enough to hold all the + * color and alpha components (starting at normOffset). + * Since ColorModel is an abstract class, + * any instance is an instance of a subclass. The default implementation + * of this method in this abstract class first converts from the + * normalized form to the unnormalized form and then calls + * getDataElement(int[], int). Subclasses which may + * have instances which do not support the unnormalized form must + * override this method. + */ + // @ts-ignore + public getDataElement(normComponents: number, normOffset: number): number; + /** + * Returns a data element array representation of a pixel in this + * ColorModel, given an array of normalized color/alpha + * components. This array can then be passed to the + * setDataElements method of a WritableRaster + * object. An ArrayIndexOutOfBoundsException is thrown + * if the normComponents array is not large enough to hold + * all the color and alpha components (starting at + * normOffset). If the obj variable is + * null, a new array will be allocated. If + * obj is not null, it must be a primitive + * array of type transferType; otherwise, a + * ClassCastException is thrown. An + * ArrayIndexOutOfBoundsException is thrown if + * obj is not large enough to hold a pixel value for this + * ColorModel. + * Since ColorModel is an abstract class, + * any instance is an instance of a subclass. The default implementation + * of this method in this abstract class first converts from the + * normalized form to the unnormalized form and then calls + * getDataElement(int[], int, Object). Subclasses which may + * have instances which do not support the unnormalized form must + * override this method. + */ + // @ts-ignore + public getDataElements(normComponents: number, normOffset: number, obj: java.lang.Object): java.lang.Object; + /** + * Returns an array of all of the color/alpha components in normalized + * form, given a pixel in this ColorModel. The pixel + * value is specified by an array of data elements of type transferType + * passed in as an object reference. If pixel is not a primitive array + * of type transferType, a ClassCastException is thrown. + * An ArrayIndexOutOfBoundsException is thrown if + * pixel is not large enough to hold a pixel value for this + * ColorModel. + * Normalized components are float values between a per component minimum + * and maximum specified by the ColorSpace object for this + * ColorModel. If the + * normComponents array is null, a new array + * will be allocated. The normComponents array + * will be returned. Color/alpha components are stored in the + * normComponents array starting at + * normOffset (even if the array is allocated by this + * method). An ArrayIndexOutOfBoundsException is thrown + * if the normComponents array is not null + * and is not large enough to hold all the color and alpha components + * (starting at normOffset). + * Since ColorModel is an abstract class, + * any instance is an instance of a subclass. The default implementation + * of this method in this abstract class first retrieves color and alpha + * components in the unnormalized form using + * getComponents(Object, int[], int) and then calls + * getNormalizedComponents(int[], int, float[], int). + * Subclasses which may + * have instances which do not support the unnormalized form must + * override this method. + */ + // @ts-ignore + public getNormalizedComponents(pixel: java.lang.Object, normComponents: number, normOffset: number): number[]; + /** + * Tests if the specified Object is an instance of + * ColorModel and if it equals this + * ColorModel. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns the hash code for this ColorModel. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns the ColorSpace associated with this + * ColorModel. + */ + // @ts-ignore + public getColorSpace(): java.awt.color.ColorSpace; + /** + * Forces the raster data to match the state specified in the + * isAlphaPremultiplied variable, assuming the data is + * currently correctly described by this ColorModel. It + * may multiply or divide the color raster data by alpha, or do + * nothing if the data is in the correct state. If the data needs to + * be coerced, this method will also return an instance of this + * ColorModel with the isAlphaPremultiplied + * flag set appropriately. This method will throw a + * UnsupportedOperationException if it is not supported + * by this ColorModel. + * Since ColorModel is an abstract class, + * any instance is an instance of a subclass. Subclasses must + * override this method since the implementation in this abstract + * class throws an UnsupportedOperationException. + */ + // @ts-ignore + public coerceData(raster: java.awt.image.WritableRaster, isAlphaPremultiplied: boolean): java.awt.image.ColorModel; + /** + * Returns true if raster is compatible + * with this ColorModel and false if it is + * not. + * Since ColorModel is an abstract class, + * any instance is an instance of a subclass. Subclasses must + * override this method since the implementation in this abstract + * class throws an UnsupportedOperationException. + */ + // @ts-ignore + public isCompatibleRaster(raster: java.awt.image.Raster): boolean; + /** + * Creates a WritableRaster with the specified width and + * height that has a data layout (SampleModel) compatible + * with this ColorModel. + * Since ColorModel is an abstract class, + * any instance is an instance of a subclass. Subclasses must + * override this method since the implementation in this abstract + * class throws an UnsupportedOperationException. + */ + // @ts-ignore + public createCompatibleWritableRaster(w: number, h: number): java.awt.image.WritableRaster; + /** + * Creates a SampleModel with the specified width and + * height that has a data layout compatible with this + * ColorModel. + * Since ColorModel is an abstract class, + * any instance is an instance of a subclass. Subclasses must + * override this method since the implementation in this abstract + * class throws an UnsupportedOperationException. + */ + // @ts-ignore + public createCompatibleSampleModel(w: number, h: number): java.awt.image.SampleModel; + /** + * Checks if the SampleModel is compatible with this + * ColorModel. + * Since ColorModel is an abstract class, + * any instance is an instance of a subclass. Subclasses must + * override this method since the implementation in this abstract + * class throws an UnsupportedOperationException. + */ + // @ts-ignore + public isCompatibleSampleModel(sm: java.awt.image.SampleModel): boolean; + /** + * Disposes of system resources associated with this + * ColorModel once this ColorModel is no + * longer referenced. + */ + // @ts-ignore + public finalize(): void; + /** + * Returns a Raster representing the alpha channel of an + * image, extracted from the input Raster, provided that + * pixel values of this ColorModel represent color and + * alpha information as separate spatial bands (e.g. + * {@link ComponentColorModel} and DirectColorModel). + * This method assumes that Raster objects associated + * with such a ColorModel store the alpha band, if + * present, as the last band of image data. Returns null + * if there is no separate spatial alpha channel associated with this + * ColorModel. If this is an + * IndexColorModel which has alpha in the lookup table, + * this method will return null since + * there is no spatially discrete alpha channel. + * This method will create a new Raster (but will share + * the data array). + * Since ColorModel is an abstract class, any instance + * is an instance of a subclass. Subclasses must override this + * method to get any behavior other than returning null + * because the implementation in this abstract class returns + * null. + */ + // @ts-ignore + public getAlphaRaster(raster: java.awt.image.WritableRaster): java.awt.image.WritableRaster; + /** + * Returns the String representation of the contents of + * this ColorModelobject. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.ComponentColorModel.d.ts b/packages/types/dist/typings/jdk/java.awt.image.ComponentColorModel.d.ts new file mode 100644 index 00000000..ced50e5c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.ComponentColorModel.d.ts @@ -0,0 +1,419 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class ComponentColorModel extends java.awt.image.ColorModel { + /** + * Constructs a ComponentColorModel from the specified + * parameters. Color components will be in the specified + * ColorSpace. The supported transfer types are + * DataBuffer.TYPE_BYTE, DataBuffer.TYPE_USHORT, + * DataBuffer.TYPE_INT, + * DataBuffer.TYPE_SHORT, DataBuffer.TYPE_FLOAT, + * and DataBuffer.TYPE_DOUBLE. + * If not null, the bits array specifies the + * number of significant bits per color and alpha component and its + * length should be at least the number of components in the + * ColorSpace if there is no alpha + * information in the pixel values, or one more than this number if + * there is alpha information. When the transferType is + * DataBuffer.TYPE_SHORT, DataBuffer.TYPE_FLOAT, + * or DataBuffer.TYPE_DOUBLE the bits array + * argument is ignored. hasAlpha indicates whether alpha + * information is present. If hasAlpha is true, then + * the boolean isAlphaPremultiplied + * specifies how to interpret color and alpha samples in pixel values. + * If the boolean is true, color samples are assumed to have been + * multiplied by the alpha sample. The transparency + * specifies what alpha values can be represented by this color model. + * The acceptable transparency values are + * OPAQUE, BITMASK or TRANSLUCENT. + * The transferType is the type of primitive array used + * to represent pixel values. + */ + // @ts-ignore + constructor(colorSpace: java.awt.color.ColorSpace, bits: number, hasAlpha: boolean, isAlphaPremultiplied: boolean, transparency: number, transferType: number) + /** + * Constructs a ComponentColorModel from the specified + * parameters. Color components will be in the specified + * ColorSpace. The supported transfer types are + * DataBuffer.TYPE_BYTE, DataBuffer.TYPE_USHORT, + * DataBuffer.TYPE_INT, + * DataBuffer.TYPE_SHORT, DataBuffer.TYPE_FLOAT, + * and DataBuffer.TYPE_DOUBLE. The number of significant + * bits per color and alpha component will be 8, 16, 32, 16, 32, or 64, + * respectively. The number of color components will be the + * number of components in the ColorSpace. There will be + * an alpha component if hasAlpha is true. + * If hasAlpha is true, then + * the boolean isAlphaPremultiplied + * specifies how to interpret color and alpha samples in pixel values. + * If the boolean is true, color samples are assumed to have been + * multiplied by the alpha sample. The transparency + * specifies what alpha values can be represented by this color model. + * The acceptable transparency values are + * OPAQUE, BITMASK or TRANSLUCENT. + * The transferType is the type of primitive array used + * to represent pixel values. + */ + // @ts-ignore + constructor(colorSpace: java.awt.color.ColorSpace, hasAlpha: boolean, isAlphaPremultiplied: boolean, transparency: number, transferType: number) + /** + * Returns the red color component for the specified pixel, scaled + * from 0 to 255 in the default RGB ColorSpace, sRGB. A color conversion + * is done if necessary. The pixel value is specified as an int. + * The returned value will be a non pre-multiplied value. + * If the alpha is premultiplied, this method divides + * it out before returning the value (if the alpha value is 0, + * the red value will be 0). + */ + // @ts-ignore + public getRed(pixel: number): number; + /** + * Returns the green color component for the specified pixel, scaled + * from 0 to 255 in the default RGB ColorSpace, sRGB. A color conversion + * is done if necessary. The pixel value is specified as an int. + * The returned value will be a non + * pre-multiplied value. If the alpha is premultiplied, this method + * divides it out before returning the value (if the alpha value is 0, + * the green value will be 0). + */ + // @ts-ignore + public getGreen(pixel: number): number; + /** + * Returns the blue color component for the specified pixel, scaled + * from 0 to 255 in the default RGB ColorSpace, sRGB. A color conversion + * is done if necessary. The pixel value is specified as an int. + * The returned value will be a non + * pre-multiplied value. If the alpha is premultiplied, this method + * divides it out before returning the value (if the alpha value is 0, + * the blue value will be 0). + */ + // @ts-ignore + public getBlue(pixel: number): number; + /** + * Returns the alpha component for the specified pixel, scaled + * from 0 to 255. The pixel value is specified as an int. + */ + // @ts-ignore + public getAlpha(pixel: number): number; + /** + * Returns the color/alpha components of the pixel in the default + * RGB color model format. A color conversion is done if necessary. + * The returned value will be in a non pre-multiplied format. If + * the alpha is premultiplied, this method divides it out of the + * color components (if the alpha value is 0, the color values will be 0). + */ + // @ts-ignore + public getRGB(pixel: number): number; + /** + * Returns the red color component for the specified pixel, scaled + * from 0 to 255 in the default RGB ColorSpace, sRGB. A color conversion + * is done if necessary. The pixel value is specified by an array + * of data elements of type transferType passed in as an object + * reference. The returned value will be a non pre-multiplied value. If the + * alpha is premultiplied, this method divides it out before returning + * the value (if the alpha value is 0, the red value will be 0). Since + * ComponentColorModel can be subclassed, subclasses + * inherit the implementation of this method and if they don't override + * it then they throw an exception if they use an unsupported + * transferType. + */ + // @ts-ignore + public getRed(inData: java.lang.Object): number; + /** + * Returns the green color component for the specified pixel, scaled + * from 0 to 255 in the default RGB ColorSpace, sRGB. + * A color conversion is done if necessary. The pixel value + * is specified by an array of data elements of type transferType + * passed in as an object reference. The returned value is a non pre-multiplied + * value. If the alpha is premultiplied, this method divides it out before + * returning the value (if the alpha value is 0, the green value will be 0). + * Since ComponentColorModel can be subclassed, + * subclasses inherit the implementation of this method and if they + * don't override it then they throw an exception if they use an + * unsupported transferType. + */ + // @ts-ignore + public getGreen(inData: java.lang.Object): number; + /** + * Returns the blue color component for the specified pixel, scaled + * from 0 to 255 in the default RGB ColorSpace, sRGB. + * A color conversion is done if necessary. The pixel value is + * specified by an array of data elements of type transferType + * passed in as an object reference. The returned value is a non pre-multiplied + * value. If the alpha is premultiplied, this method divides it out before + * returning the value (if the alpha value is 0, the blue value will be 0). + * Since ComponentColorModel can be subclassed, + * subclasses inherit the implementation of this method and if they + * don't override it then they throw an exception if they use an + * unsupported transferType. + */ + // @ts-ignore + public getBlue(inData: java.lang.Object): number; + /** + * Returns the alpha component for the specified pixel, scaled from + * 0 to 255. The pixel value is specified by an array of data + * elements of type transferType passed in as an + * object reference. Since ComponentColorModel can be + * subclassed, subclasses inherit the + * implementation of this method and if they don't override it then + * they throw an exception if they use an unsupported + * transferType. + */ + // @ts-ignore + public getAlpha(inData: java.lang.Object): number; + /** + * Returns the color/alpha components for the specified pixel in the + * default RGB color model format. A color conversion is done if + * necessary. The pixel value is specified by an + * array of data elements of type transferType passed + * in as an object reference. + * The returned value is in a non pre-multiplied format. If + * the alpha is premultiplied, this method divides it out of the + * color components (if the alpha value is 0, the color values will be 0). + * Since ComponentColorModel can be subclassed, + * subclasses inherit the implementation of this method and if they + * don't override it then they throw an exception if they use an + * unsupported transferType. + */ + // @ts-ignore + public getRGB(inData: java.lang.Object): number; + /** + * Returns a data element array representation of a pixel in this + * ColorModel, given an integer pixel representation + * in the default RGB color model. + * This array can then be passed to the setDataElements + * method of a WritableRaster object. If the + * pixel + * parameter is null, a new array is allocated. Since + * ComponentColorModel can be subclassed, subclasses + * inherit the implementation of this method and if they don't + * override it then + * they throw an exception if they use an unsupported + * transferType. + */ + // @ts-ignore + public getDataElements(rgb: number, pixel: java.lang.Object): java.lang.Object; + /** + * Returns an array of unnormalized color/alpha components given a pixel + * in this ColorModel. + * An IllegalArgumentException is thrown if the component value for this + * ColorModel is not conveniently representable in the + * unnormalized form. Color/alpha components are stored + * in the components array starting at offset + * (even if the array is allocated by this method). + */ + // @ts-ignore + public getComponents(pixel: number, components: number, offset: number): number[]; + /** + * Returns an array of unnormalized color/alpha components given a pixel + * in this ColorModel. The pixel value is specified by an + * array of data elements of type transferType passed in as + * an object reference. + * An IllegalArgumentException is thrown if the component values for this + * ColorModel are not conveniently representable in the + * unnormalized form. + * Color/alpha components are stored in the components array + * starting at offset (even if the array is allocated by + * this method). Since ComponentColorModel can be + * subclassed, subclasses inherit the + * implementation of this method and if they don't override it then + * this method might throw an exception if they use an unsupported + * transferType. + */ + // @ts-ignore + public getComponents(pixel: java.lang.Object, components: number, offset: number): number[]; + /** + * Returns an array of all of the color/alpha components in unnormalized + * form, given a normalized component array. Unnormalized components + * are unsigned integral values between 0 and 2n - 1, where + * n is the number of bits for a particular component. Normalized + * components are float values between a per component minimum and + * maximum specified by the ColorSpace object for this + * ColorModel. An IllegalArgumentException + * will be thrown if color component values for this + * ColorModel are not conveniently representable in the + * unnormalized form. If the + * components array is null, a new array + * will be allocated. The components array will + * be returned. Color/alpha components are stored in the + * components array starting at offset (even + * if the array is allocated by this method). An + * ArrayIndexOutOfBoundsException is thrown if the + * components array is not null and is not + * large enough to hold all the color and alpha + * components (starting at offset). An + * IllegalArgumentException is thrown if the + * normComponents array is not large enough to hold + * all the color and alpha components starting at + * normOffset. + */ + // @ts-ignore + public getUnnormalizedComponents(normComponents: number, normOffset: number, components: number, offset: number): number[]; + /** + * Returns an array of all of the color/alpha components in normalized + * form, given an unnormalized component array. Unnormalized components + * are unsigned integral values between 0 and 2n - 1, where + * n is the number of bits for a particular component. Normalized + * components are float values between a per component minimum and + * maximum specified by the ColorSpace object for this + * ColorModel. An IllegalArgumentException + * will be thrown if color component values for this + * ColorModel are not conveniently representable in the + * unnormalized form. If the + * normComponents array is null, a new array + * will be allocated. The normComponents array + * will be returned. Color/alpha components are stored in the + * normComponents array starting at + * normOffset (even if the array is allocated by this + * method). An ArrayIndexOutOfBoundsException is thrown + * if the normComponents array is not null + * and is not large enough to hold all the color and alpha components + * (starting at normOffset). An + * IllegalArgumentException is thrown if the + * components array is not large enough to hold all the + * color and alpha components starting at offset. + */ + // @ts-ignore + public getNormalizedComponents(components: number, offset: number, normComponents: number, normOffset: number): number[]; + /** + * Returns a pixel value represented as an int in this ColorModel, + * given an array of unnormalized color/alpha components. + */ + // @ts-ignore + public getDataElement(components: number, offset: number): number; + /** + * Returns a data element array representation of a pixel in this + * ColorModel, given an array of unnormalized color/alpha + * components. This array can then be passed to the setDataElements + * method of a WritableRaster object. + */ + // @ts-ignore + public getDataElements(components: number, offset: number, obj: java.lang.Object): java.lang.Object; + /** + * Returns a pixel value represented as an int in this + * ColorModel, given an array of normalized color/alpha + * components. This method will throw an + * IllegalArgumentException if pixel values for this + * ColorModel are not conveniently representable as a + * single int. An + * ArrayIndexOutOfBoundsException is thrown if the + * normComponents array is not large enough to hold all the + * color and alpha components (starting at normOffset). + */ + // @ts-ignore + public getDataElement(normComponents: number, normOffset: number): number; + /** + * Returns a data element array representation of a pixel in this + * ColorModel, given an array of normalized color/alpha + * components. This array can then be passed to the + * setDataElements method of a WritableRaster + * object. An ArrayIndexOutOfBoundsException is thrown + * if the normComponents array is not large enough to hold + * all the color and alpha components (starting at + * normOffset). If the obj variable is + * null, a new array will be allocated. If + * obj is not null, it must be a primitive + * array of type transferType; otherwise, a + * ClassCastException is thrown. An + * ArrayIndexOutOfBoundsException is thrown if + * obj is not large enough to hold a pixel value for this + * ColorModel. + */ + // @ts-ignore + public getDataElements(normComponents: number, normOffset: number, obj: java.lang.Object): java.lang.Object; + /** + * Returns an array of all of the color/alpha components in normalized + * form, given a pixel in this ColorModel. The pixel + * value is specified by an array of data elements of type transferType + * passed in as an object reference. If pixel is not a primitive array + * of type transferType, a ClassCastException is thrown. + * An ArrayIndexOutOfBoundsException is thrown if + * pixel is not large enough to hold a pixel value for this + * ColorModel. + * Normalized components are float values between a per component minimum + * and maximum specified by the ColorSpace object for this + * ColorModel. If the + * normComponents array is null, a new array + * will be allocated. The normComponents array + * will be returned. Color/alpha components are stored in the + * normComponents array starting at + * normOffset (even if the array is allocated by this + * method). An ArrayIndexOutOfBoundsException is thrown + * if the normComponents array is not null + * and is not large enough to hold all the color and alpha components + * (starting at normOffset). + *

+ * This method must be overridden by a subclass if that subclass + * is designed to translate pixel sample values to color component values + * in a non-default way. The default translations implemented by this + * class is described in the class comments. Any subclass implementing + * a non-default translation must follow the constraints on allowable + * translations defined there. + */ + // @ts-ignore + public getNormalizedComponents(pixel: java.lang.Object, normComponents: number, normOffset: number): number[]; + /** + * Forces the raster data to match the state specified in the + * isAlphaPremultiplied variable, assuming the data + * is currently correctly described by this ColorModel. + * It may multiply or divide the color raster data by alpha, or + * do nothing if the data is in the correct state. If the data needs + * to be coerced, this method also returns an instance of + * this ColorModel with + * the isAlphaPremultiplied flag set appropriately. + * Since ColorModel can be subclassed, subclasses inherit + * the implementation of this method and if they don't override it + * then they throw an exception if they use an unsupported + * transferType. + */ + // @ts-ignore + public coerceData(raster: java.awt.image.WritableRaster, isAlphaPremultiplied: boolean): java.awt.image.ColorModel; + /** + * Returns true if raster is compatible with this + * ColorModel; false if it is not. + */ + // @ts-ignore + public isCompatibleRaster(raster: java.awt.image.Raster): boolean; + /** + * Creates a WritableRaster with the specified width and height, + * that has a data layout (SampleModel) compatible with + * this ColorModel. + */ + // @ts-ignore + public createCompatibleWritableRaster(w: number, h: number): java.awt.image.WritableRaster; + /** + * Creates a SampleModel with the specified width and height, + * that has a data layout compatible with this ColorModel. + */ + // @ts-ignore + public createCompatibleSampleModel(w: number, h: number): java.awt.image.SampleModel; + /** + * Checks whether or not the specified SampleModel + * is compatible with this ColorModel. + */ + // @ts-ignore + public isCompatibleSampleModel(sm: java.awt.image.SampleModel): boolean; + /** + * Returns a Raster representing the alpha channel of an image, + * extracted from the input Raster. + * This method assumes that Raster objects associated with + * this ColorModel store the alpha band, if present, as + * the last band of image data. Returns null if there is no separate spatial + * alpha channel associated with this ColorModel. + * This method creates a new Raster, but will share the data + * array. + */ + // @ts-ignore + public getAlphaRaster(raster: java.awt.image.WritableRaster): java.awt.image.WritableRaster; + /** + * Compares this color model with another for equality. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.ComponentSampleModel.d.ts b/packages/types/dist/typings/jdk/java.awt.image.ComponentSampleModel.d.ts new file mode 100644 index 00000000..21a8dde8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.ComponentSampleModel.d.ts @@ -0,0 +1,297 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class ComponentSampleModel extends java.awt.image.SampleModel { + /** + * Constructs a ComponentSampleModel with the specified parameters. + * The number of bands will be given by the length of the bandOffsets array. + * All bands will be stored in the first bank of the DataBuffer. + */ + // @ts-ignore + constructor(dataType: number, w: number, h: number, pixelStride: number, scanlineStride: number, bandOffsets: number) + /** + * Constructs a ComponentSampleModel with the specified parameters. + * The number of bands will be given by the length of the bandOffsets array. + * Different bands may be stored in different banks of the DataBuffer. + */ + // @ts-ignore + constructor(dataType: number, w: number, h: number, pixelStride: number, scanlineStride: number, bankIndices: number, bandOffsets: number) + // @ts-ignore + protected bandOffsets: number[]; + // @ts-ignore + protected bankIndices: number[]; + // @ts-ignore + protected numBands: number; + // @ts-ignore + protected numBanks: number; + // @ts-ignore + protected scanlineStride: number; + // @ts-ignore + protected pixelStride: number; + /** + * Creates a new ComponentSampleModel with the specified + * width and height. The new SampleModel will have the same + * number of bands, storage data type, interleaving scheme, and + * pixel stride as this SampleModel. + */ + // @ts-ignore + public createCompatibleSampleModel(w: number, h: number): java.awt.image.SampleModel; + /** + * Creates a new ComponentSampleModel with a subset of the bands + * of this ComponentSampleModel. The new ComponentSampleModel can be + * used with any DataBuffer that the existing ComponentSampleModel + * can be used with. The new ComponentSampleModel/DataBuffer + * combination will represent an image with a subset of the bands + * of the original ComponentSampleModel/DataBuffer combination. + */ + // @ts-ignore + public createSubsetSampleModel(bands: number): java.awt.image.SampleModel; + /** + * Creates a DataBuffer that corresponds to this + * ComponentSampleModel. + * The DataBuffer object's data type, number of banks, + * and size are be consistent with this ComponentSampleModel. + */ + // @ts-ignore + public createDataBuffer(): java.awt.image.DataBuffer; + /** + * Gets the offset for the first band of pixel (x,y). + * A sample of the first band can be retrieved from a + * DataBuffer + * data with a ComponentSampleModel + * csm as + *

+                 * data.getElem(csm.getOffset(x, y));
+                 * 
+ */ + // @ts-ignore + public getOffset(x: number, y: number): number; + /** + * Gets the offset for band b of pixel (x,y). + * A sample of band b can be retrieved from a + * DataBuffer data + * with a ComponentSampleModel csm as + *
+                 * data.getElem(csm.getOffset(x, y, b));
+                 * 
+ */ + // @ts-ignore + public getOffset(x: number, y: number, b: number): number; + /** + * Returns the number of bits per sample for all bands. + */ + // @ts-ignore + public getSampleSize(): number[]; + /** + * Returns the number of bits per sample for the specified band. + */ + // @ts-ignore + public getSampleSize(band: number): number; + /** + * Returns the bank indices for all bands. + */ + // @ts-ignore + public getBankIndices(): number[]; + /** + * Returns the band offset for all bands. + */ + // @ts-ignore + public getBandOffsets(): number[]; + /** + * Returns the scanline stride of this ComponentSampleModel. + */ + // @ts-ignore + public getScanlineStride(): number; + /** + * Returns the pixel stride of this ComponentSampleModel. + */ + // @ts-ignore + public getPixelStride(): number; + /** + * Returns the number of data elements needed to transfer a pixel + * with the + * {@link #getDataElements(int, int, Object, DataBuffer) } and + * {@link #setDataElements(int, int, Object, DataBuffer) } + * methods. + * For a ComponentSampleModel, this is identical to the + * number of bands. + */ + // @ts-ignore + public getNumDataElements(): number; + /** + * Returns data for a single pixel in a primitive array of type + * TransferType. For a ComponentSampleModel, + * this is the same as the data type, and samples are returned + * one per array element. Generally, obj should + * be passed in as null, so that the Object + * is created automatically and is the right primitive data type. + *

+ * The following code illustrates transferring data for one pixel from + * DataBuffer db1, whose storage layout is + * described by ComponentSampleModel csm1, + * to DataBuffer db2, whose storage layout + * is described by ComponentSampleModel csm2. + * The transfer is usually more efficient than using + * getPixel and setPixel. + *

+                 * ComponentSampleModel csm1, csm2;
+                 * DataBufferInt db1, db2;
+                 * csm2.setDataElements(x, y,
+                 * csm1.getDataElements(x, y, null, db1), db2);
+                 * 
+ * Using getDataElements and setDataElements + * to transfer between two DataBuffer/SampleModel + * pairs is legitimate if the SampleModel objects have + * the same number of bands, corresponding bands have the same number of + * bits per sample, and the TransferTypes are the same. + *

+ * If obj is not null, it should be a + * primitive array of type TransferType. + * Otherwise, a ClassCastException is thrown. An + * ArrayIndexOutOfBoundsException might be thrown if the + * coordinates are not in bounds, or if obj is not + * null and is not large enough to hold + * the pixel data. + */ + // @ts-ignore + public getDataElements(x: number, y: number, obj: java.lang.Object, data: java.awt.image.DataBuffer): java.lang.Object; + /** + * Returns all samples for the specified pixel in an int array, + * one sample per array element. + * An ArrayIndexOutOfBoundsException might be thrown if + * the coordinates are not in bounds. + */ + // @ts-ignore + public getPixel(x: number, y: number, iArray: number, data: java.awt.image.DataBuffer): number[]; + /** + * Returns all samples for the specified rectangle of pixels in + * an int array, one sample per array element. + * An ArrayIndexOutOfBoundsException might be thrown if + * the coordinates are not in bounds. + */ + // @ts-ignore + public getPixels(x: number, y: number, w: number, h: number, iArray: number, data: java.awt.image.DataBuffer): number[]; + /** + * Returns as int the sample in a specified band for the pixel + * located at (x,y). + * An ArrayIndexOutOfBoundsException might be thrown if + * the coordinates are not in bounds. + */ + // @ts-ignore + public getSample(x: number, y: number, b: number, data: java.awt.image.DataBuffer): number; + /** + * Returns the sample in a specified band + * for the pixel located at (x,y) as a float. + * An ArrayIndexOutOfBoundsException might be + * thrown if the coordinates are not in bounds. + */ + // @ts-ignore + public getSampleFloat(x: number, y: number, b: number, data: java.awt.image.DataBuffer): number; + /** + * Returns the sample in a specified band + * for a pixel located at (x,y) as a double. + * An ArrayIndexOutOfBoundsException might be + * thrown if the coordinates are not in bounds. + */ + // @ts-ignore + public getSampleDouble(x: number, y: number, b: number, data: java.awt.image.DataBuffer): number; + /** + * Returns the samples in a specified band for the specified rectangle + * of pixels in an int array, one sample per data array element. + * An ArrayIndexOutOfBoundsException might be thrown if + * the coordinates are not in bounds. + */ + // @ts-ignore + public getSamples(x: number, y: number, w: number, h: number, b: number, iArray: number, data: java.awt.image.DataBuffer): number[]; + /** + * Sets the data for a single pixel in the specified + * DataBuffer from a primitive array of type + * TransferType. For a ComponentSampleModel, + * this is the same as the data type, and samples are transferred + * one per array element. + *

+ * The following code illustrates transferring data for one pixel from + * DataBuffer db1, whose storage layout is + * described by ComponentSampleModel csm1, + * to DataBuffer db2, whose storage layout + * is described by ComponentSampleModel csm2. + * The transfer is usually more efficient than using + * getPixel and setPixel. + *

+                 * ComponentSampleModel csm1, csm2;
+                 * DataBufferInt db1, db2;
+                 * csm2.setDataElements(x, y, csm1.getDataElements(x, y, null, db1),
+                 * db2);
+                 * 
+ * Using getDataElements and setDataElements + * to transfer between two DataBuffer/SampleModel pairs + * is legitimate if the SampleModel objects have + * the same number of bands, corresponding bands have the same number of + * bits per sample, and the TransferTypes are the same. + *

+ * A ClassCastException is thrown if obj is not + * a primitive array of type TransferType. + * An ArrayIndexOutOfBoundsException might be thrown if + * the coordinates are not in bounds, or if obj is not large + * enough to hold the pixel data. + */ + // @ts-ignore + public setDataElements(x: number, y: number, obj: java.lang.Object, data: java.awt.image.DataBuffer): void; + /** + * Sets a pixel in the DataBuffer using an int array of + * samples for input. An ArrayIndexOutOfBoundsException + * might be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public setPixel(x: number, y: number, iArray: number, data: java.awt.image.DataBuffer): void; + /** + * Sets all samples for a rectangle of pixels from an int array containing + * one sample per array element. + * An ArrayIndexOutOfBoundsException might be thrown if the + * coordinates are not in bounds. + */ + // @ts-ignore + public setPixels(x: number, y: number, w: number, h: number, iArray: number, data: java.awt.image.DataBuffer): void; + /** + * Sets a sample in the specified band for the pixel located at (x,y) + * in the DataBuffer using an int for input. + * An ArrayIndexOutOfBoundsException might be thrown if the + * coordinates are not in bounds. + */ + // @ts-ignore + public setSample(x: number, y: number, b: number, s: number, data: java.awt.image.DataBuffer): void; + /** + * Sets a sample in the specified band for the pixel located at (x,y) + * in the DataBuffer using a float for input. + * An ArrayIndexOutOfBoundsException might be thrown if + * the coordinates are not in bounds. + */ + // @ts-ignore + public setSample(x: number, y: number, b: number, s: number, data: java.awt.image.DataBuffer): void; + /** + * Sets a sample in the specified band for the pixel located at (x,y) + * in the DataBuffer using a double for input. + * An ArrayIndexOutOfBoundsException might be thrown if + * the coordinates are not in bounds. + */ + // @ts-ignore + public setSample(x: number, y: number, b: number, s: number, data: java.awt.image.DataBuffer): void; + /** + * Sets the samples in the specified band for the specified rectangle + * of pixels from an int array containing one sample per data array element. + * An ArrayIndexOutOfBoundsException might be thrown if the + * coordinates are not in bounds. + */ + // @ts-ignore + public setSamples(x: number, y: number, w: number, h: number, b: number, iArray: number, data: java.awt.image.DataBuffer): void; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.ConvolveOp.d.ts b/packages/types/dist/typings/jdk/java.awt.image.ConvolveOp.d.ts new file mode 100644 index 00000000..29adbf7e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.ConvolveOp.d.ts @@ -0,0 +1,98 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class ConvolveOp extends java.lang.Object { + /** + * Constructs a ConvolveOp given a Kernel, an edge condition, and a + * RenderingHints object (which may be null). + */ + // @ts-ignore + constructor(kernel: java.awt.image.Kernel, edgeCondition: number, hints: java.awt.RenderingHints) + /** + * Constructs a ConvolveOp given a Kernel. The edge condition + * will be EDGE_ZERO_FILL. + */ + // @ts-ignore + constructor(kernel: java.awt.image.Kernel) + // @ts-ignore + public static EDGE_ZERO_FILL: number; + // @ts-ignore + public static EDGE_NO_OP: number; + /** + * Returns the edge condition. + */ + // @ts-ignore + public getEdgeCondition(): number; + /** + * Returns the Kernel. + */ + // @ts-ignore + public getKernel(): java.awt.image.Kernel; + /** + * Performs a convolution on BufferedImages. Each component of the + * source image will be convolved (including the alpha component, if + * present). + * If the color model in the source image is not the same as that + * in the destination image, the pixels will be converted + * in the destination. If the destination image is null, + * a BufferedImage will be created with the source ColorModel. + * The IllegalArgumentException may be thrown if the source is the + * same as the destination. + */ + // @ts-ignore + public filter(src: java.awt.image.BufferedImage, dst: java.awt.image.BufferedImage): java.awt.image.BufferedImage; + /** + * Performs a convolution on Rasters. Each band of the source Raster + * will be convolved. + * The source and destination must have the same number of bands. + * If the destination Raster is null, a new Raster will be created. + * The IllegalArgumentException may be thrown if the source is + * the same as the destination. + */ + // @ts-ignore + public filter(src: java.awt.image.Raster, dst: java.awt.image.WritableRaster): java.awt.image.WritableRaster; + /** + * Creates a zeroed destination image with the correct size and number + * of bands. If destCM is null, an appropriate ColorModel will be used. + */ + // @ts-ignore + public createCompatibleDestImage(src: java.awt.image.BufferedImage, destCM: java.awt.image.ColorModel): java.awt.image.BufferedImage; + /** + * Creates a zeroed destination Raster with the correct size and number + * of bands, given this source. + */ + // @ts-ignore + public createCompatibleDestRaster(src: java.awt.image.Raster): java.awt.image.WritableRaster; + /** + * Returns the bounding box of the filtered destination image. Since + * this is not a geometric operation, the bounding box does not + * change. + */ + // @ts-ignore + public getBounds2D(src: java.awt.image.BufferedImage): java.awt.geom.Rectangle2D; + /** + * Returns the bounding box of the filtered destination Raster. Since + * this is not a geometric operation, the bounding box does not + * change. + */ + // @ts-ignore + public getBounds2D(src: java.awt.image.Raster): java.awt.geom.Rectangle2D; + /** + * Returns the location of the destination point given a + * point in the source. If dstPt is non-null, it will + * be used to hold the return value. Since this is not a geometric + * operation, the srcPt will equal the dstPt. + */ + // @ts-ignore + public getPoint2D(srcPt: java.awt.geom.Point2D, dstPt: java.awt.geom.Point2D): java.awt.geom.Point2D; + /** + * Returns the rendering hints for this op. + */ + // @ts-ignore + public getRenderingHints(): java.awt.RenderingHints; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.CropImageFilter.d.ts b/packages/types/dist/typings/jdk/java.awt.image.CropImageFilter.d.ts new file mode 100644 index 00000000..b4018db7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.CropImageFilter.d.ts @@ -0,0 +1,73 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class CropImageFilter extends java.awt.image.ImageFilter { + /** + * Constructs a CropImageFilter that extracts the absolute rectangular + * region of pixels from its source Image as specified by the x, y, + * w, and h parameters. + */ + // @ts-ignore + constructor(x: number, y: number, w: number, h: number) + /** + * Passes along the properties from the source object after adding a + * property indicating the cropped region. + * This method invokes super.setProperties, + * which might result in additional properties being added. + *

+ * Note: This method is intended to be called by the + * ImageProducer of the Image whose pixels + * are being filtered. Developers using + * this class to filter pixels from an image should avoid calling + * this method directly since that operation could interfere + * with the filtering operation. + */ + // @ts-ignore + public setProperties(props: java.util.Hashtable): void; + /** + * Override the source image's dimensions and pass the dimensions + * of the rectangular cropped region to the ImageConsumer. + *

+ * Note: This method is intended to be called by the + * ImageProducer of the Image whose + * pixels are being filtered. Developers using + * this class to filter pixels from an image should avoid calling + * this method directly since that operation could interfere + * with the filtering operation. + */ + // @ts-ignore + public setDimensions(w: number, h: number): void; + /** + * Determine whether the delivered byte pixels intersect the region to + * be extracted and passes through only that subset of pixels that + * appear in the output region. + *

+ * Note: This method is intended to be called by the + * ImageProducer of the Image whose + * pixels are being filtered. Developers using + * this class to filter pixels from an image should avoid calling + * this method directly since that operation could interfere + * with the filtering operation. + */ + // @ts-ignore + public setPixels(x: number, y: number, w: number, h: number, model: java.awt.image.ColorModel, pixels: number, off: number, scansize: number): void; + /** + * Determine if the delivered int pixels intersect the region to + * be extracted and pass through only that subset of pixels that + * appear in the output region. + *

+ * Note: This method is intended to be called by the + * ImageProducer of the Image whose + * pixels are being filtered. Developers using + * this class to filter pixels from an image should avoid calling + * this method directly since that operation could interfere + * with the filtering operation. + */ + // @ts-ignore + public setPixels(x: number, y: number, w: number, h: number, model: java.awt.image.ColorModel, pixels: number, off: number, scansize: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.DataBuffer.d.ts b/packages/types/dist/typings/jdk/java.awt.image.DataBuffer.d.ts new file mode 100644 index 00000000..32834c6f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.DataBuffer.d.ts @@ -0,0 +1,168 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + abstract class DataBuffer extends java.lang.Object { + /** + * Constructs a DataBuffer containing one bank of the specified + * data type and size. + */ + // @ts-ignore + constructor(dataType: number, size: number) + /** + * Constructs a DataBuffer containing the specified number of + * banks. Each bank has the specified size and an offset of 0. + */ + // @ts-ignore + constructor(dataType: number, size: number, numBanks: number) + /** + * Constructs a DataBuffer that contains the specified number + * of banks. Each bank has the specified datatype, size and offset. + */ + // @ts-ignore + constructor(dataType: number, size: number, numBanks: number, offset: number) + /** + * Constructs a DataBuffer which contains the specified number + * of banks. Each bank has the specified datatype and size. The + * offset for each bank is specified by its respective entry in + * the offsets array. + */ + // @ts-ignore + constructor(dataType: number, size: number, numBanks: number, offsets: number) + // @ts-ignore + public static TYPE_BYTE: number; + // @ts-ignore + public static TYPE_USHORT: number; + // @ts-ignore + public static TYPE_SHORT: number; + // @ts-ignore + public static TYPE_INT: number; + // @ts-ignore + public static TYPE_FLOAT: number; + // @ts-ignore + public static TYPE_DOUBLE: number; + // @ts-ignore + public static TYPE_UNDEFINED: number; + // @ts-ignore + protected dataType: number; + // @ts-ignore + protected banks: number; + // @ts-ignore + protected offset: number; + // @ts-ignore + protected size: number; + // @ts-ignore + protected offsets: number[]; + /** + * Returns the size (in bits) of the data type, given a datatype tag. + */ + // @ts-ignore + public static getDataTypeSize(type: number): number; + /** + * Returns the data type of this DataBuffer. + */ + // @ts-ignore + public getDataType(): number; + /** + * Returns the size (in array elements) of all banks. + */ + // @ts-ignore + public getSize(): number; + /** + * Returns the offset of the default bank in array elements. + */ + // @ts-ignore + public getOffset(): number; + /** + * Returns the offsets (in array elements) of all the banks. + */ + // @ts-ignore + public getOffsets(): number[]; + /** + * Returns the number of banks in this DataBuffer. + */ + // @ts-ignore + public getNumBanks(): number; + /** + * Returns the requested data array element from the first (default) bank + * as an integer. + */ + // @ts-ignore + public getElem(i: number): number; + /** + * Sets the requested data array element in the first (default) bank + * from the given integer. + */ + // @ts-ignore + public setElem(i: number, val: number): void; + /** + * Returns the requested data array element from the first (default) bank + * as a float. The implementation in this class is to cast getElem(i) + * to a float. Subclasses may override this method if another + * implementation is needed. + */ + // @ts-ignore + public getElemFloat(i: number): number; + /** + * Returns the requested data array element from the specified bank + * as a float. The implementation in this class is to cast + * {@link #getElem(int, int)} + * to a float. Subclasses can override this method if another + * implementation is needed. + */ + // @ts-ignore + public getElemFloat(bank: number, i: number): number; + /** + * Sets the requested data array element in the first (default) bank + * from the given float. The implementation in this class is to cast + * val to an int and call {@link #setElem(int, int)}. Subclasses + * can override this method if another implementation is needed. + */ + // @ts-ignore + public setElemFloat(i: number, val: number): void; + /** + * Sets the requested data array element in the specified bank + * from the given float. The implementation in this class is to cast + * val to an int and call {@link #setElem(int, int)}. Subclasses can + * override this method if another implementation is needed. + */ + // @ts-ignore + public setElemFloat(bank: number, i: number, val: number): void; + /** + * Returns the requested data array element from the first (default) bank + * as a double. The implementation in this class is to cast + * {@link #getElem(int)} + * to a double. Subclasses can override this method if another + * implementation is needed. + */ + // @ts-ignore + public getElemDouble(i: number): number; + /** + * Returns the requested data array element from the specified bank as + * a double. The implementation in this class is to cast getElem(bank, i) + * to a double. Subclasses may override this method if another + * implementation is needed. + */ + // @ts-ignore + public getElemDouble(bank: number, i: number): number; + /** + * Sets the requested data array element in the first (default) bank + * from the given double. The implementation in this class is to cast + * val to an int and call {@link #setElem(int, int)}. Subclasses can + * override this method if another implementation is needed. + */ + // @ts-ignore + public setElemDouble(i: number, val: number): void; + /** + * Sets the requested data array element in the specified bank + * from the given double. The implementation in this class is to cast + * val to an int and call {@link #setElem(int, int)}. Subclasses can + * override this method if another implementation is needed. + */ + // @ts-ignore + public setElemDouble(bank: number, i: number, val: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.DataBufferByte.d.ts b/packages/types/dist/typings/jdk/java.awt.image.DataBufferByte.d.ts new file mode 100644 index 00000000..a53a352f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.DataBufferByte.d.ts @@ -0,0 +1,132 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class DataBufferByte extends java.awt.image.DataBuffer { + /** + * Constructs a byte-based DataBuffer with a single bank and the + * specified size. + */ + // @ts-ignore + constructor(size: number) + /** + * Constructs a byte based DataBuffer with the specified number of + * banks all of which are the specified size. + */ + // @ts-ignore + constructor(size: number, numBanks: number) + /** + * Constructs a byte-based DataBuffer with a single bank using the + * specified array. + * Only the first size elements should be used by accessors of + * this DataBuffer. dataArray must be large enough to + * hold size elements. + *

+ * Note that {@code DataBuffer} objects created by this constructor + * may be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + constructor(dataArray: number, size: number) + /** + * Constructs a byte-based DataBuffer with a single bank using the + * specified array, size, and offset. dataArray must have at least + * offset + size elements. Only elements offset + * through offset + size - 1 + * should be used by accessors of this DataBuffer. + *

+ * Note that {@code DataBuffer} objects created by this constructor + * may be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + constructor(dataArray: number, size: number, offset: number) + /** + * Constructs a byte-based DataBuffer with the specified arrays. + * The number of banks is equal to dataArray.length. + * Only the first size elements of each array should be used by + * accessors of this DataBuffer. + *

+ * Note that {@code DataBuffer} objects created by this constructor + * may be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + constructor(dataArray: number, size: number) + /** + * Constructs a byte-based DataBuffer with the specified arrays, size, + * and offsets. + * The number of banks is equal to dataArray.length. Each array must + * be at least as large as size + the corresponding offset. + * There must be an entry in the offset array for each dataArray + * entry. For each bank, only elements offset through + * offset + size - 1 should be used by accessors of this + * DataBuffer. + *

+ * Note that {@code DataBuffer} objects created by this constructor + * may be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + constructor(dataArray: number, size: number, offsets: number) + /** + * Returns the default (first) byte data array. + *

+ * Note that calling this method may cause this {@code DataBuffer} + * object to be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + public getData(): number[]; + /** + * Returns the data array for the specified bank. + *

+ * Note that calling this method may cause this {@code DataBuffer} + * object to be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + public getData(bank: number): number[]; + /** + * Returns the data arrays for all banks. + *

+ * Note that calling this method may cause this {@code DataBuffer} + * object to be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + public getBankData(): byte[][]; + /** + * Returns the requested data array element from the first (default) bank. + */ + // @ts-ignore + public getElem(i: number): number; + /** + * Returns the requested data array element from the specified bank. + */ + // @ts-ignore + public getElem(bank: number, i: number): number; + /** + * Sets the requested data array element in the first (default) bank + * to the specified value. + */ + // @ts-ignore + public setElem(i: number, val: number): void; + /** + * Sets the requested data array element in the specified bank + * from the given integer. + */ + // @ts-ignore + public setElem(bank: number, i: number, val: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.DataBufferDouble.d.ts b/packages/types/dist/typings/jdk/java.awt.image.DataBufferDouble.d.ts new file mode 100644 index 00000000..96f230d1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.DataBufferDouble.d.ts @@ -0,0 +1,182 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class DataBufferDouble extends java.awt.image.DataBuffer { + /** + * Constructs a double-based DataBuffer + * with a specified size. + */ + // @ts-ignore + constructor(size: number) + /** + * Constructs a double-based DataBuffer + * with a specified number of banks, all of which are of a + * specified size. + */ + // @ts-ignore + constructor(size: number, numBanks: number) + /** + * Constructs a double-based DataBuffer + * with the specified data array. Only the first + * size elements are available for use by this + * DataBuffer. The array must be large enough to + * hold size elements. + *

+ * Note that {@code DataBuffer} objects created by this constructor + * may be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + constructor(dataArray: number, size: number) + /** + * Constructs a double-based DataBuffer + * with the specified data array. Only the elements between + * offset and offset + size - 1 are + * available for use by this DataBuffer. The array + * must be large enough to hold offset + size elements. + *

+ * Note that {@code DataBuffer} objects created by this constructor + * may be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + constructor(dataArray: number, size: number, offset: number) + /** + * Constructs a double-based DataBuffer + * with the specified data arrays. Only the first + * size elements of each array are available for use + * by this DataBuffer. The number of banks will be + * equal to dataArray.length. + *

+ * Note that {@code DataBuffer} objects created by this constructor + * may be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + constructor(dataArray: number, size: number) + /** + * Constructs a double-based DataBuffer + * with the specified data arrays, size, and per-bank offsets. + * The number of banks is equal to dataArray.length. Each array + * must be at least as large as size plus the + * corresponding offset. There must be an entry in the + * offsets array for each data array. + *

+ * Note that {@code DataBuffer} objects created by this constructor + * may be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + constructor(dataArray: number, size: number, offsets: number) + /** + * Returns the default (first) double data array. + *

+ * Note that calling this method may cause this {@code DataBuffer} + * object to be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + public getData(): number[]; + /** + * Returns the data array for the specified bank. + *

+ * Note that calling this method may cause this {@code DataBuffer} + * object to be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + public getData(bank: number): number[]; + /** + * Returns the data array for all banks. + *

+ * Note that calling this method may cause this {@code DataBuffer} + * object to be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + public getBankData(): double[][]; + /** + * Returns the requested data array element from the first + * (default) bank as an int. + */ + // @ts-ignore + public getElem(i: number): number; + /** + * Returns the requested data array element from the specified + * bank as an int. + */ + // @ts-ignore + public getElem(bank: number, i: number): number; + /** + * Sets the requested data array element in the first (default) + * bank to the given int. + */ + // @ts-ignore + public setElem(i: number, val: number): void; + /** + * Sets the requested data array element in the specified bank + * to the given int. + */ + // @ts-ignore + public setElem(bank: number, i: number, val: number): void; + /** + * Returns the requested data array element from the first + * (default) bank as a float. + */ + // @ts-ignore + public getElemFloat(i: number): number; + /** + * Returns the requested data array element from the specified + * bank as a float. + */ + // @ts-ignore + public getElemFloat(bank: number, i: number): number; + /** + * Sets the requested data array element in the first (default) + * bank to the given float. + */ + // @ts-ignore + public setElemFloat(i: number, val: number): void; + /** + * Sets the requested data array element in the specified bank to + * the given float. + */ + // @ts-ignore + public setElemFloat(bank: number, i: number, val: number): void; + /** + * Returns the requested data array element from the first + * (default) bank as a double. + */ + // @ts-ignore + public getElemDouble(i: number): number; + /** + * Returns the requested data array element from the specified + * bank as a double. + */ + // @ts-ignore + public getElemDouble(bank: number, i: number): number; + /** + * Sets the requested data array element in the first (default) + * bank to the given double. + */ + // @ts-ignore + public setElemDouble(i: number, val: number): void; + /** + * Sets the requested data array element in the specified bank to + * the given double. + */ + // @ts-ignore + public setElemDouble(bank: number, i: number, val: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.DataBufferFloat.d.ts b/packages/types/dist/typings/jdk/java.awt.image.DataBufferFloat.d.ts new file mode 100644 index 00000000..4d06e030 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.DataBufferFloat.d.ts @@ -0,0 +1,183 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class DataBufferFloat extends java.awt.image.DataBuffer { + /** + * Constructs a float-based DataBuffer + * with a specified size. + */ + // @ts-ignore + constructor(size: number) + /** + * Constructs a float-based DataBuffer + * with a specified number of banks, all of which are of a + * specified size. + */ + // @ts-ignore + constructor(size: number, numBanks: number) + /** + * Constructs a float-based DataBuffer + * with the specified data array. Only the first + * size elements are available for use by this + * DataBuffer. The array must be large enough to + * hold size elements. + *

+ * Note that {@code DataBuffer} objects created by this constructor + * may be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + constructor(dataArray: number, size: number) + /** + * Constructs a float-based DataBuffer + * with the specified data array. Only the elements between + * offset and offset + size - 1 are + * available for use by this DataBuffer. The array + * must be large enough to hold offset + size + * elements. + *

+ * Note that {@code DataBuffer} objects created by this constructor + * may be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + constructor(dataArray: number, size: number, offset: number) + /** + * Constructs a float-based DataBuffer + * with the specified data arrays. Only the first + * size elements of each array are available for use + * by this DataBuffer. The number of banks will be + * equal to dataArray.length. + *

+ * Note that {@code DataBuffer} objects created by this constructor + * may be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + constructor(dataArray: number, size: number) + /** + * Constructs a float-based DataBuffer + * with the specified data arrays, size, and per-bank offsets. + * The number of banks is equal to dataArray.length. + * Each array must be at least as large as size plus the + * corresponding offset. There must be an entry in the offsets + * array for each data array. + *

+ * Note that {@code DataBuffer} objects created by this constructor + * may be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + constructor(dataArray: number, size: number, offsets: number) + /** + * Returns the default (first) float data array. + *

+ * Note that calling this method may cause this {@code DataBuffer} + * object to be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + public getData(): number[]; + /** + * Returns the data array for the specified bank. + *

+ * Note that calling this method may cause this {@code DataBuffer} + * object to be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + public getData(bank: number): number[]; + /** + * Returns the data array for all banks. + *

+ * Note that calling this method may cause this {@code DataBuffer} + * object to be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + public getBankData(): float[][]; + /** + * Returns the requested data array element from the first + * (default) bank as an int. + */ + // @ts-ignore + public getElem(i: number): number; + /** + * Returns the requested data array element from the specified + * bank as an int. + */ + // @ts-ignore + public getElem(bank: number, i: number): number; + /** + * Sets the requested data array element in the first (default) + * bank to the given int. + */ + // @ts-ignore + public setElem(i: number, val: number): void; + /** + * Sets the requested data array element in the specified bank to + * the given int. + */ + // @ts-ignore + public setElem(bank: number, i: number, val: number): void; + /** + * Returns the requested data array element from the first + * (default) bank as a float. + */ + // @ts-ignore + public getElemFloat(i: number): number; + /** + * Returns the requested data array element from the specified + * bank as a float. + */ + // @ts-ignore + public getElemFloat(bank: number, i: number): number; + /** + * Sets the requested data array element in the first (default) + * bank to the given float. + */ + // @ts-ignore + public setElemFloat(i: number, val: number): void; + /** + * Sets the requested data array element in the specified bank to + * the given float. + */ + // @ts-ignore + public setElemFloat(bank: number, i: number, val: number): void; + /** + * Returns the requested data array element from the first + * (default) bank as a double. + */ + // @ts-ignore + public getElemDouble(i: number): number; + /** + * Returns the requested data array element from the specified + * bank as a double. + */ + // @ts-ignore + public getElemDouble(bank: number, i: number): number; + /** + * Sets the requested data array element in the first (default) + * bank to the given double. + */ + // @ts-ignore + public setElemDouble(i: number, val: number): void; + /** + * Sets the requested data array element in the specified bank to + * the given double. + */ + // @ts-ignore + public setElemDouble(bank: number, i: number, val: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.DataBufferInt.d.ts b/packages/types/dist/typings/jdk/java.awt.image.DataBufferInt.d.ts new file mode 100644 index 00000000..01050ba5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.DataBufferInt.d.ts @@ -0,0 +1,132 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class DataBufferInt extends java.awt.image.DataBuffer { + /** + * Constructs an integer-based DataBuffer with a single bank + * and the specified size. + */ + // @ts-ignore + constructor(size: number) + /** + * Constructs an integer-based DataBuffer with the specified number of + * banks, all of which are the specified size. + */ + // @ts-ignore + constructor(size: number, numBanks: number) + /** + * Constructs an integer-based DataBuffer with a single bank using the + * specified array. + * Only the first size elements should be used by accessors of + * this DataBuffer. dataArray must be large enough to + * hold size elements. + *

+ * Note that {@code DataBuffer} objects created by this constructor + * may be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + constructor(dataArray: number, size: number) + /** + * Constructs an integer-based DataBuffer with a single bank using the + * specified array, size, and offset. dataArray must have at least + * offset + size elements. Only elements offset + * through offset + size - 1 + * should be used by accessors of this DataBuffer. + *

+ * Note that {@code DataBuffer} objects created by this constructor + * may be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + constructor(dataArray: number, size: number, offset: number) + /** + * Constructs an integer-based DataBuffer with the specified arrays. + * The number of banks will be equal to dataArray.length. + * Only the first size elements of each array should be used by + * accessors of this DataBuffer. + *

+ * Note that {@code DataBuffer} objects created by this constructor + * may be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + constructor(dataArray: number, size: number) + /** + * Constructs an integer-based DataBuffer with the specified arrays, size, + * and offsets. + * The number of banks is equal to dataArray.length. Each array must + * be at least as large as size + the corresponding offset. There must + * be an entry in the offset array for each dataArray entry. For each + * bank, only elements offset through + * offset + size - 1 should be + * used by accessors of this DataBuffer. + *

+ * Note that {@code DataBuffer} objects created by this constructor + * may be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + constructor(dataArray: number, size: number, offsets: number) + /** + * Returns the default (first) int data array in DataBuffer. + *

+ * Note that calling this method may cause this {@code DataBuffer} + * object to be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + public getData(): number[]; + /** + * Returns the data array for the specified bank. + *

+ * Note that calling this method may cause this {@code DataBuffer} + * object to be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + public getData(bank: number): number[]; + /** + * Returns the data arrays for all banks. + *

+ * Note that calling this method may cause this {@code DataBuffer} + * object to be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + public getBankData(): number[][]; + /** + * Returns the requested data array element from the first (default) bank. + */ + // @ts-ignore + public getElem(i: number): number; + /** + * Returns the requested data array element from the specified bank. + */ + // @ts-ignore + public getElem(bank: number, i: number): number; + /** + * Sets the requested data array element in the first (default) bank + * to the specified value. + */ + // @ts-ignore + public setElem(i: number, val: number): void; + /** + * Sets the requested data array element in the specified bank + * to the integer value i. + */ + // @ts-ignore + public setElem(bank: number, i: number, val: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.DataBufferShort.d.ts b/packages/types/dist/typings/jdk/java.awt.image.DataBufferShort.d.ts new file mode 100644 index 00000000..15161c50 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.DataBufferShort.d.ts @@ -0,0 +1,132 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class DataBufferShort extends java.awt.image.DataBuffer { + /** + * Constructs a short-based DataBuffer with a single bank and the + * specified size. + */ + // @ts-ignore + constructor(size: number) + /** + * Constructs a short-based DataBuffer with the specified number of + * banks all of which are the specified size. + */ + // @ts-ignore + constructor(size: number, numBanks: number) + /** + * Constructs a short-based DataBuffer with a single bank using the + * specified array. + * Only the first size elements should be used by accessors of + * this DataBuffer. dataArray must be large enough to + * hold size elements. + *

+ * Note that {@code DataBuffer} objects created by this constructor + * may be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + constructor(dataArray: number, size: number) + /** + * Constructs a short-based DataBuffer with a single bank using the + * specified array, size, and offset. dataArray must have at least + * offset + size elements. Only elements offset + * through offset + size - 1 + * should be used by accessors of this DataBuffer. + *

+ * Note that {@code DataBuffer} objects created by this constructor + * may be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + constructor(dataArray: number, size: number, offset: number) + /** + * Constructs a short-based DataBuffer with the specified arrays. + * The number of banks will be equal to dataArray.length. + * Only the first size elements of each array should be used by + * accessors of this DataBuffer. + *

+ * Note that {@code DataBuffer} objects created by this constructor + * may be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + constructor(dataArray: number, size: number) + /** + * Constructs a short-based DataBuffer with the specified arrays, size, + * and offsets. + * The number of banks is equal to dataArray.length. Each array must + * be at least as large as size + the corresponding offset. There must + * be an entry in the offset array for each dataArray entry. For each + * bank, only elements offset through + * offset + size - 1 should be + * used by accessors of this DataBuffer. + *

+ * Note that {@code DataBuffer} objects created by this constructor + * may be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + constructor(dataArray: number, size: number, offsets: number) + /** + * Returns the default (first) byte data array. + *

+ * Note that calling this method may cause this {@code DataBuffer} + * object to be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + public getData(): number[]; + /** + * Returns the data array for the specified bank. + *

+ * Note that calling this method may cause this {@code DataBuffer} + * object to be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + public getData(bank: number): number[]; + /** + * Returns the data arrays for all banks. + *

+ * Note that calling this method may cause this {@code DataBuffer} + * object to be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + public getBankData(): short[][]; + /** + * Returns the requested data array element from the first (default) bank. + */ + // @ts-ignore + public getElem(i: number): number; + /** + * Returns the requested data array element from the specified bank. + */ + // @ts-ignore + public getElem(bank: number, i: number): number; + /** + * Sets the requested data array element in the first (default) bank + * to the specified value. + */ + // @ts-ignore + public setElem(i: number, val: number): void; + /** + * Sets the requested data array element in the specified bank + * from the given integer. + */ + // @ts-ignore + public setElem(bank: number, i: number, val: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.DataBufferUShort.d.ts b/packages/types/dist/typings/jdk/java.awt.image.DataBufferUShort.d.ts new file mode 100644 index 00000000..f5b1c5d0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.DataBufferUShort.d.ts @@ -0,0 +1,132 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class DataBufferUShort extends java.awt.image.DataBuffer { + /** + * Constructs an unsigned-short based DataBuffer with a single bank and the + * specified size. + */ + // @ts-ignore + constructor(size: number) + /** + * Constructs an unsigned-short based DataBuffer with the specified number of + * banks, all of which are the specified size. + */ + // @ts-ignore + constructor(size: number, numBanks: number) + /** + * Constructs an unsigned-short based DataBuffer with a single bank + * using the specified array. + * Only the first size elements should be used by accessors of + * this DataBuffer. dataArray must be large enough to + * hold size elements. + *

+ * Note that {@code DataBuffer} objects created by this constructor + * may be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + constructor(dataArray: number, size: number) + /** + * Constructs an unsigned-short based DataBuffer with a single bank + * using the specified array, size, and offset. dataArray must have at + * least offset + size elements. Only elements + * offset through offset + size - 1 should + * be used by accessors of this DataBuffer. + *

+ * Note that {@code DataBuffer} objects created by this constructor + * may be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + constructor(dataArray: number, size: number, offset: number) + /** + * Constructs an unsigned-short based DataBuffer with the specified arrays. + * The number of banks will be equal to dataArray.length. + * Only the first size elements of each array should be used by + * accessors of this DataBuffer. + *

+ * Note that {@code DataBuffer} objects created by this constructor + * may be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + constructor(dataArray: number, size: number) + /** + * Constructs an unsigned-short based DataBuffer with specified arrays, + * size, and offsets. + * The number of banks is equal to dataArray.length. Each array must + * be at least as large as size + the corresponding offset. There must + * be an entry in the offset array for each dataArray entry. For each + * bank, only elements offset through + * offset + size - 1 should be + * used by accessors of this DataBuffer. + *

+ * Note that {@code DataBuffer} objects created by this constructor + * may be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + constructor(dataArray: number, size: number, offsets: number) + /** + * Returns the default (first) unsigned-short data array. + *

+ * Note that calling this method may cause this {@code DataBuffer} + * object to be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + public getData(): number[]; + /** + * Returns the data array for the specified bank. + *

+ * Note that calling this method may cause this {@code DataBuffer} + * object to be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + public getData(bank: number): number[]; + /** + * Returns the data arrays for all banks. + *

+ * Note that calling this method may cause this {@code DataBuffer} + * object to be incompatible with performance + * optimizations used by some implementations (such as caching + * an associated image in video memory). + */ + // @ts-ignore + public getBankData(): short[][]; + /** + * Returns the requested data array element from the first (default) bank. + */ + // @ts-ignore + public getElem(i: number): number; + /** + * Returns the requested data array element from the specified bank. + */ + // @ts-ignore + public getElem(bank: number, i: number): number; + /** + * Sets the requested data array element in the first (default) bank + * to the specified value. + */ + // @ts-ignore + public setElem(i: number, val: number): void; + /** + * Sets the requested data array element in the specified bank + * from the given integer. + */ + // @ts-ignore + public setElem(bank: number, i: number, val: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.DirectColorModel.d.ts b/packages/types/dist/typings/jdk/java.awt.image.DirectColorModel.d.ts new file mode 100644 index 00000000..a8213e0f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.DirectColorModel.d.ts @@ -0,0 +1,388 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class DirectColorModel extends java.awt.image.PackedColorModel { + /** + * Constructs a DirectColorModel from the specified masks + * that indicate which bits in an int pixel representation + * contain the red, green and blue color samples. As pixel values do not + * contain alpha information, all pixels are treated as opaque, which + * means that alpha = 1.0. All of the bits + * in each mask must be contiguous and fit in the specified number + * of least significant bits of an int pixel representation. + * The ColorSpace is the default sRGB space. The + * transparency value is Transparency.OPAQUE. The transfer type + * is the smallest of DataBuffer.TYPE_BYTE, DataBuffer.TYPE_USHORT, + * or DataBuffer.TYPE_INT that can hold a single pixel. + */ + // @ts-ignore + constructor(bits: number, rmask: number, gmask: number, bmask: number) + /** + * Constructs a DirectColorModel from the specified masks + * that indicate which bits in an int pixel representation + * contain the red, green and blue color samples and the alpha sample, + * if present. If amask is 0, pixel values do not contain + * alpha information and all pixels are treated as opaque, which means + * that alpha = 1.0. All of the bits in each mask must + * be contiguous and fit in the specified number of least significant bits + * of an int pixel representation. Alpha, if present, is not + * premultiplied. The ColorSpace is the default sRGB space. + * The transparency value is Transparency.OPAQUE if no alpha is + * present, or Transparency.TRANSLUCENT otherwise. The transfer type + * is the smallest of DataBuffer.TYPE_BYTE, DataBuffer.TYPE_USHORT, + * or DataBuffer.TYPE_INT that can hold a single pixel. + */ + // @ts-ignore + constructor(bits: number, rmask: number, gmask: number, bmask: number, amask: number) + /** + * Constructs a DirectColorModel from the specified + * parameters. Color components are in the specified + * ColorSpace, which must be of type ColorSpace.TYPE_RGB + * and have minimum normalized component values which are all 0.0 + * and maximum values which are all 1.0. + * The masks specify which bits in an int pixel + * representation contain the red, green and blue color samples and + * the alpha sample, if present. If amask is 0, pixel + * values do not contain alpha information and all pixels are treated + * as opaque, which means that alpha = 1.0. All of the + * bits in each mask must be contiguous and fit in the specified number + * of least significant bits of an int pixel + * representation. If there is alpha, the boolean + * isAlphaPremultiplied specifies how to interpret + * color and alpha samples in pixel values. If the boolean + * is true, color samples are assumed to have been + * multiplied by the alpha sample. The transparency value is + * Transparency.OPAQUE, if no alpha is present, or + * Transparency.TRANSLUCENT otherwise. The transfer type + * is the type of primitive array used to represent pixel values and + * must be one of DataBuffer.TYPE_BYTE, DataBuffer.TYPE_USHORT, or + * DataBuffer.TYPE_INT. + */ + // @ts-ignore + constructor(space: java.awt.color.ColorSpace, bits: number, rmask: number, gmask: number, bmask: number, amask: number, isAlphaPremultiplied: boolean, transferType: number) + /** + * Returns the mask indicating which bits in an int pixel + * representation contain the red color component. + */ + // @ts-ignore + public getRedMask(): number; + /** + * Returns the mask indicating which bits in an int pixel + * representation contain the green color component. + */ + // @ts-ignore + public getGreenMask(): number; + /** + * Returns the mask indicating which bits in an int pixel + * representation contain the blue color component. + */ + // @ts-ignore + public getBlueMask(): number; + /** + * Returns the mask indicating which bits in an int pixel + * representation contain the alpha component. + */ + // @ts-ignore + public getAlphaMask(): number; + /** + * Returns the red color component for the specified pixel, scaled + * from 0 to 255 in the default RGB ColorSpace, sRGB. A + * color conversion is done if necessary. The pixel value is specified + * as an int. + * The returned value is a non pre-multiplied value. Thus, if the + * alpha is premultiplied, this method divides it out before returning + * the value. If the alpha value is 0, for example, the red value + * is 0. + */ + // @ts-ignore + public getRed(pixel: number): number; + /** + * Returns the green color component for the specified pixel, scaled + * from 0 to 255 in the default RGB ColorSpace, sRGB. A + * color conversion is done if necessary. The pixel value is specified + * as an int. + * The returned value is a non pre-multiplied value. Thus, if the + * alpha is premultiplied, this method divides it out before returning + * the value. If the alpha value is 0, for example, the green value + * is 0. + */ + // @ts-ignore + public getGreen(pixel: number): number; + /** + * Returns the blue color component for the specified pixel, scaled + * from 0 to 255 in the default RGB ColorSpace, sRGB. A + * color conversion is done if necessary. The pixel value is specified + * as an int. + * The returned value is a non pre-multiplied value. Thus, if the + * alpha is premultiplied, this method divides it out before returning + * the value. If the alpha value is 0, for example, the blue value + * is 0. + */ + // @ts-ignore + public getBlue(pixel: number): number; + /** + * Returns the alpha component for the specified pixel, scaled + * from 0 to 255. The pixel value is specified as an int. + */ + // @ts-ignore + public getAlpha(pixel: number): number; + /** + * Returns the color/alpha components of the pixel in the default + * RGB color model format. A color conversion is done if necessary. + * The pixel value is specified as an int. + * The returned value is in a non pre-multiplied format. Thus, if + * the alpha is premultiplied, this method divides it out of the + * color components. If the alpha value is 0, for example, the color + * values are each 0. + */ + // @ts-ignore + public getRGB(pixel: number): number; + /** + * Returns the red color component for the specified pixel, scaled + * from 0 to 255 in the default RGB ColorSpace, sRGB. A + * color conversion is done if necessary. The pixel value is specified + * by an array of data elements of type transferType passed + * in as an object reference. + * The returned value is a non pre-multiplied value. Thus, if the + * alpha is premultiplied, this method divides it out before returning + * the value. If the alpha value is 0, for example, the red value + * is 0. + * If inData is not a primitive array of type + * transferType, a ClassCastException is + * thrown. An ArrayIndexOutOfBoundsException is + * thrown if inData is not large enough to hold a + * pixel value for this ColorModel. Since + * DirectColorModel can be subclassed, subclasses inherit + * the implementation of this method and if they don't override it + * then they throw an exception if they use an unsupported + * transferType. + * An UnsupportedOperationException is thrown if this + * transferType is not supported by this + * ColorModel. + */ + // @ts-ignore + public getRed(inData: java.lang.Object): number; + /** + * Returns the green color component for the specified pixel, scaled + * from 0 to 255 in the default RGB ColorSpace, sRGB. A + * color conversion is done if necessary. The pixel value is specified + * by an array of data elements of type transferType passed + * in as an object reference. + * The returned value is a non pre-multiplied value. Thus, if the + * alpha is premultiplied, this method divides it out before returning + * the value. If the alpha value is 0, for example, the green value + * is 0. If inData is not a primitive array of type + * transferType, a ClassCastException is thrown. + * An ArrayIndexOutOfBoundsException is + * thrown if inData is not large enough to hold a pixel + * value for this ColorModel. Since + * DirectColorModel can be subclassed, subclasses inherit + * the implementation of this method and if they don't override it + * then they throw an exception if they use an unsupported + * transferType. + * An UnsupportedOperationException is + * thrown if this transferType is not supported by this + * ColorModel. + */ + // @ts-ignore + public getGreen(inData: java.lang.Object): number; + /** + * Returns the blue color component for the specified pixel, scaled + * from 0 to 255 in the default RGB ColorSpace, sRGB. A + * color conversion is done if necessary. The pixel value is specified + * by an array of data elements of type transferType passed + * in as an object reference. + * The returned value is a non pre-multiplied value. Thus, if the + * alpha is premultiplied, this method divides it out before returning + * the value. If the alpha value is 0, for example, the blue value + * is 0. If inData is not a primitive array of type + * transferType, a ClassCastException is thrown. + * An ArrayIndexOutOfBoundsException is + * thrown if inData is not large enough to hold a pixel + * value for this ColorModel. Since + * DirectColorModel can be subclassed, subclasses inherit + * the implementation of this method and if they don't override it + * then they throw an exception if they use an unsupported + * transferType. + * An UnsupportedOperationException is + * thrown if this transferType is not supported by this + * ColorModel. + */ + // @ts-ignore + public getBlue(inData: java.lang.Object): number; + /** + * Returns the alpha component for the specified pixel, scaled + * from 0 to 255. The pixel value is specified by an array of data + * elements of type transferType passed in as an object + * reference. + * If inData is not a primitive array of type + * transferType, a ClassCastException is + * thrown. An ArrayIndexOutOfBoundsException is + * thrown if inData is not large enough to hold a pixel + * value for this ColorModel. Since + * DirectColorModel can be subclassed, subclasses inherit + * the implementation of this method and if they don't override it + * then they throw an exception if they use an unsupported + * transferType. + * If this transferType is not supported, an + * UnsupportedOperationException is thrown. + */ + // @ts-ignore + public getAlpha(inData: java.lang.Object): number; + /** + * Returns the color/alpha components for the specified pixel in the + * default RGB color model format. A color conversion is done if + * necessary. The pixel value is specified by an array of data + * elements of type transferType passed in as an object + * reference. If inData is not a primitive array of type + * transferType, a ClassCastException is + * thrown. An ArrayIndexOutOfBoundsException is + * thrown if inData is not large enough to hold a pixel + * value for this ColorModel. + * The returned value is in a non pre-multiplied format. Thus, if + * the alpha is premultiplied, this method divides it out of the + * color components. If the alpha value is 0, for example, the color + * values is 0. Since DirectColorModel can be + * subclassed, subclasses inherit the implementation of this method + * and if they don't override it then + * they throw an exception if they use an unsupported + * transferType. + */ + // @ts-ignore + public getRGB(inData: java.lang.Object): number; + /** + * Returns a data element array representation of a pixel in this + * ColorModel, given an integer pixel representation in the + * default RGB color model. + * This array can then be passed to the setDataElements + * method of a WritableRaster object. If the pixel variable + * is null, a new array is allocated. If pixel + * is not null, it must be a primitive array of type + * transferType; otherwise, a + * ClassCastException is thrown. An + * ArrayIndexOutOfBoundsException is + * thrown if pixel is not large enough to hold a pixel + * value for this ColorModel. The pixel array is returned. + * Since DirectColorModel can be subclassed, subclasses + * inherit the implementation of this method and if they don't + * override it then they throw an exception if they use an unsupported + * transferType. + */ + // @ts-ignore + public getDataElements(rgb: number, pixel: java.lang.Object): java.lang.Object; + /** + * Returns an array of unnormalized color/alpha components given a pixel + * in this ColorModel. The pixel value is specified as an + * int. If the components array is + * null, a new array is allocated. The + * components array is returned. Color/alpha components are + * stored in the components array starting at + * offset, even if the array is allocated by this method. + * An ArrayIndexOutOfBoundsException is thrown if the + * components array is not null and is not large + * enough to hold all the color and alpha components, starting at + * offset. + */ + // @ts-ignore + public getComponents(pixel: number, components: number, offset: number): number[]; + /** + * Returns an array of unnormalized color/alpha components given a pixel + * in this ColorModel. The pixel value is specified by an + * array of data elements of type transferType passed in as + * an object reference. If pixel is not a primitive array + * of type transferType, a ClassCastException + * is thrown. An ArrayIndexOutOfBoundsException is + * thrown if pixel is not large enough to hold a + * pixel value for this ColorModel. If the + * components array is null, a new + * array is allocated. The components array is returned. + * Color/alpha components are stored in the components array + * starting at offset, even if the array is allocated by + * this method. An ArrayIndexOutOfBoundsException + * is thrown if the components array is not + * null and is not large enough to hold all the color and + * alpha components, starting at offset. + * Since DirectColorModel can be subclassed, subclasses + * inherit the implementation of this method and if they don't + * override it then they throw an exception if they use an unsupported + * transferType. + */ + // @ts-ignore + public getComponents(pixel: java.lang.Object, components: number, offset: number): number[]; + /** + * Creates a WritableRaster with the specified width and + * height that has a data layout (SampleModel) compatible + * with this ColorModel. + */ + // @ts-ignore + public createCompatibleWritableRaster(w: number, h: number): java.awt.image.WritableRaster; + /** + * Returns a pixel value represented as an int in this + * ColorModel, given an array of unnormalized color/alpha + * components. An ArrayIndexOutOfBoundsException is + * thrown if the components array is + * not large enough to hold all the color and alpha components, starting + * at offset. + */ + // @ts-ignore + public getDataElement(components: number, offset: number): number; + /** + * Returns a data element array representation of a pixel in this + * ColorModel, given an array of unnormalized color/alpha + * components. + * This array can then be passed to the setDataElements + * method of a WritableRaster object. + * An ArrayIndexOutOfBoundsException is thrown if the + * components array + * is not large enough to hold all the color and alpha components, + * starting at offset. If the obj variable is + * null, a new array is allocated. If obj is + * not null, it must be a primitive array + * of type transferType; otherwise, a + * ClassCastException is thrown. + * An ArrayIndexOutOfBoundsException is thrown if + * obj is not large enough to hold a pixel value for this + * ColorModel. + * Since DirectColorModel can be subclassed, subclasses + * inherit the implementation of this method and if they don't + * override it then they throw an exception if they use an unsupported + * transferType. + */ + // @ts-ignore + public getDataElements(components: number, offset: number, obj: java.lang.Object): java.lang.Object; + /** + * Forces the raster data to match the state specified in the + * isAlphaPremultiplied variable, assuming the data is + * currently correctly described by this ColorModel. It + * may multiply or divide the color raster data by alpha, or do + * nothing if the data is in the correct state. If the data needs to + * be coerced, this method will also return an instance of this + * ColorModel with the isAlphaPremultiplied + * flag set appropriately. This method will throw a + * UnsupportedOperationException if this transferType is + * not supported by this ColorModel. Since + * ColorModel can be subclassed, subclasses inherit the + * implementation of this method and if they don't override it then + * they throw an exception if they use an unsupported transferType. + */ + // @ts-ignore + public coerceData(raster: java.awt.image.WritableRaster, isAlphaPremultiplied: boolean): java.awt.image.ColorModel; + /** + * Returns true if raster is compatible + * with this ColorModel and false if it is + * not. + */ + // @ts-ignore + public isCompatibleRaster(raster: java.awt.image.Raster): boolean; + /** + * Returns a String that represents this + * DirectColorModel. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.FilteredImageSource.d.ts b/packages/types/dist/typings/jdk/java.awt.image.FilteredImageSource.d.ts new file mode 100644 index 00000000..dc0d9f68 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.FilteredImageSource.d.ts @@ -0,0 +1,95 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class FilteredImageSource extends java.lang.Object { + /** + * Constructs an ImageProducer object from an existing ImageProducer + * and a filter object. + */ + // @ts-ignore + constructor(orig: java.awt.image.ImageProducer, imgf: java.awt.image.ImageFilter) + /** + * Adds the specified ImageConsumer + * to the list of consumers interested in data for the filtered image. + * An instance of the original ImageFilter + * is created + * (using the filter's getFilterInstance method) + * to manipulate the image data + * for the specified ImageConsumer. + * The newly created filter instance + * is then passed to the addConsumer method + * of the original ImageProducer. + *

+ * This method is public as a side effect + * of this class implementing + * the ImageProducer interface. + * It should not be called from user code, + * and its behavior if called from user code is unspecified. + */ + // @ts-ignore + public addConsumer(ic: java.awt.image.ImageConsumer): void; + /** + * Determines whether an ImageConsumer is on the list of consumers + * currently interested in data for this image. + *

+ * This method is public as a side effect + * of this class implementing + * the ImageProducer interface. + * It should not be called from user code, + * and its behavior if called from user code is unspecified. + */ + // @ts-ignore + public isConsumer(ic: java.awt.image.ImageConsumer): boolean; + /** + * Removes an ImageConsumer from the list of consumers interested in + * data for this image. + *

+ * This method is public as a side effect + * of this class implementing + * the ImageProducer interface. + * It should not be called from user code, + * and its behavior if called from user code is unspecified. + */ + // @ts-ignore + public removeConsumer(ic: java.awt.image.ImageConsumer): void; + /** + * Starts production of the filtered image. + * If the specified ImageConsumer + * isn't already a consumer of the filtered image, + * an instance of the original ImageFilter + * is created + * (using the filter's getFilterInstance method) + * to manipulate the image data + * for the ImageConsumer. + * The filter instance for the ImageConsumer + * is then passed to the startProduction method + * of the original ImageProducer. + *

+ * This method is public as a side effect + * of this class implementing + * the ImageProducer interface. + * It should not be called from user code, + * and its behavior if called from user code is unspecified. + */ + // @ts-ignore + public startProduction(ic: java.awt.image.ImageConsumer): void; + /** + * Requests that a given ImageConsumer have the image data delivered + * one more time in top-down, left-right order. The request is + * handed to the ImageFilter for further processing, since the + * ability to preserve the pixel ordering depends on the filter. + *

+ * This method is public as a side effect + * of this class implementing + * the ImageProducer interface. + * It should not be called from user code, + * and its behavior if called from user code is unspecified. + */ + // @ts-ignore + public requestTopDownLeftRightResend(ic: java.awt.image.ImageConsumer): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.ImageConsumer.d.ts b/packages/types/dist/typings/jdk/java.awt.image.ImageConsumer.d.ts new file mode 100644 index 00000000..71fe5a68 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.ImageConsumer.d.ts @@ -0,0 +1,106 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + interface ImageConsumer { + // @ts-ignore + RANDOMPIXELORDER: number; + // @ts-ignore + TOPDOWNLEFTRIGHT: number; + // @ts-ignore + COMPLETESCANLINES: number; + // @ts-ignore + SINGLEPASS: number; + // @ts-ignore + SINGLEFRAME: number; + // @ts-ignore + IMAGEERROR: number; + // @ts-ignore + SINGLEFRAMEDONE: number; + // @ts-ignore + STATICIMAGEDONE: number; + // @ts-ignore + IMAGEABORTED: number; + /** + * The dimensions of the source image are reported using the + * setDimensions method call. + */ + // @ts-ignore + setDimensions(width: number, height: number): void; + /** + * Sets the extensible list of properties associated with this image. + */ + // @ts-ignore + setProperties(props: java.util.Hashtable): void; + /** + * Sets the ColorModel object used for the majority of + * the pixels reported using the setPixels method + * calls. Note that each set of pixels delivered using setPixels + * contains its own ColorModel object, so no assumption should + * be made that this model will be the only one used in delivering + * pixel values. A notable case where multiple ColorModel objects + * may be seen is a filtered image when for each set of pixels + * that it filters, the filter + * determines whether the + * pixels can be sent on untouched, using the original ColorModel, + * or whether the pixels should be modified (filtered) and passed + * on using a ColorModel more convenient for the filtering process. + */ + // @ts-ignore + setColorModel(model: java.awt.image.ColorModel): void; + /** + * Sets the hints that the ImageConsumer uses to process the + * pixels delivered by the ImageProducer. + * The ImageProducer can deliver the pixels in any order, but + * the ImageConsumer may be able to scale or convert the pixels + * to the destination ColorModel more efficiently or with higher + * quality if it knows some information about how the pixels will + * be delivered up front. The setHints method should be called + * before any calls to any of the setPixels methods with a bit mask + * of hints about the manner in which the pixels will be delivered. + * If the ImageProducer does not follow the guidelines for the + * indicated hint, the results are undefined. + */ + // @ts-ignore + setHints(hintflags: number): void; + /** + * Delivers the pixels of the image with one or more calls + * to this method. Each call specifies the location and + * size of the rectangle of source pixels that are contained in + * the array of pixels. The specified ColorModel object should + * be used to convert the pixels into their corresponding color + * and alpha components. Pixel (m,n) is stored in the pixels array + * at index (n * scansize + m + off). The pixels delivered using + * this method are all stored as bytes. + */ + // @ts-ignore + setPixels(x: number, y: number, w: number, h: number, model: java.awt.image.ColorModel, pixels: number, off: number, scansize: number): void; + /** + * The pixels of the image are delivered using one or more calls + * to the setPixels method. Each call specifies the location and + * size of the rectangle of source pixels that are contained in + * the array of pixels. The specified ColorModel object should + * be used to convert the pixels into their corresponding color + * and alpha components. Pixel (m,n) is stored in the pixels array + * at index (n * scansize + m + off). The pixels delivered using + * this method are all stored as ints. + * this method are all stored as ints. + */ + // @ts-ignore + setPixels(x: number, y: number, w: number, h: number, model: java.awt.image.ColorModel, pixels: number, off: number, scansize: number): void; + /** + * The imageComplete method is called when the ImageProducer is + * finished delivering all of the pixels that the source image + * contains, or when a single frame of a multi-frame animation has + * been completed, or when an error in loading or producing the + * image has occurred. The ImageConsumer should remove itself from the + * list of consumers registered with the ImageProducer at this time, + * unless it is interested in successive frames. + */ + // @ts-ignore + imageComplete(status: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.ImageFilter.d.ts b/packages/types/dist/typings/jdk/java.awt.image.ImageFilter.d.ts new file mode 100644 index 00000000..ec167030 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.ImageFilter.d.ts @@ -0,0 +1,154 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class ImageFilter extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + protected consumer: java.awt.image.ImageConsumer; + /** + * Returns a unique instance of an ImageFilter object which will + * actually perform the filtering for the specified ImageConsumer. + * The default implementation just clones this object. + *

+ * Note: This method is intended to be called by the ImageProducer + * of the Image whose pixels are being filtered. Developers using + * this class to filter pixels from an image should avoid calling + * this method directly since that operation could interfere + * with the filtering operation. + */ + // @ts-ignore + public getFilterInstance(ic: java.awt.image.ImageConsumer): java.awt.image.ImageFilter; + /** + * Filters the information provided in the setDimensions method + * of the ImageConsumer interface. + *

+ * Note: This method is intended to be called by the ImageProducer + * of the Image whose pixels are being filtered. Developers using + * this class to filter pixels from an image should avoid calling + * this method directly since that operation could interfere + * with the filtering operation. + */ + // @ts-ignore + public setDimensions(width: number, height: number): void; + /** + * Passes the properties from the source object along after adding a + * property indicating the stream of filters it has been run through. + *

+ * Note: This method is intended to be called by the ImageProducer + * of the Image whose pixels are being filtered. Developers using + * this class to filter pixels from an image should avoid calling + * this method directly since that operation could interfere + * with the filtering operation. + */ + // @ts-ignore + public setProperties(props: java.util.Hashtable): void; + /** + * Filter the information provided in the setColorModel method + * of the ImageConsumer interface. + *

+ * Note: This method is intended to be called by the ImageProducer + * of the Image whose pixels are being filtered. Developers using + * this class to filter pixels from an image should avoid calling + * this method directly since that operation could interfere + * with the filtering operation. + */ + // @ts-ignore + public setColorModel(model: java.awt.image.ColorModel): void; + /** + * Filters the information provided in the setHints method + * of the ImageConsumer interface. + *

+ * Note: This method is intended to be called by the ImageProducer + * of the Image whose pixels are being filtered. Developers using + * this class to filter pixels from an image should avoid calling + * this method directly since that operation could interfere + * with the filtering operation. + */ + // @ts-ignore + public setHints(hints: number): void; + /** + * Filters the information provided in the setPixels method of the + * ImageConsumer interface which takes an array of bytes. + *

+ * Note: This method is intended to be called by the ImageProducer + * of the Image whose pixels are being filtered. Developers using + * this class to filter pixels from an image should avoid calling + * this method directly since that operation could interfere + * with the filtering operation. + */ + // @ts-ignore + public setPixels(x: number, y: number, w: number, h: number, model: java.awt.image.ColorModel, pixels: number, off: number, scansize: number): void; + /** + * Filters the information provided in the setPixels method of the + * ImageConsumer interface which takes an array of integers. + *

+ * Note: This method is intended to be called by the ImageProducer + * of the Image whose pixels are being filtered. Developers using + * this class to filter pixels from an image should avoid calling + * this method directly since that operation could interfere + * with the filtering operation. + */ + // @ts-ignore + public setPixels(x: number, y: number, w: number, h: number, model: java.awt.image.ColorModel, pixels: number, off: number, scansize: number): void; + /** + * Filters the information provided in the imageComplete method of + * the ImageConsumer interface. + *

+ * Note: This method is intended to be called by the ImageProducer + * of the Image whose pixels are being filtered. Developers using + * this class to filter pixels from an image should avoid calling + * this method directly since that operation could interfere + * with the filtering operation. + */ + // @ts-ignore + public imageComplete(status: number): void; + /** + * Responds to a request for a TopDownLeftRight (TDLR) ordered resend + * of the pixel data from an ImageConsumer. + * When an ImageConsumer being fed + * by an instance of this ImageFilter + * requests a resend of the data in TDLR order, + * the FilteredImageSource + * invokes this method of the ImageFilter. + *

+ * An ImageFilter subclass might override this method or not, + * depending on if and how it can send data in TDLR order. + * Three possibilities exist: + *

    + *
  • + * Do not override this method. + * This makes the subclass use the default implementation, + * which is to + * forward the request + * to the indicated ImageProducer + * using this filter as the requesting ImageConsumer. + * This behavior + * is appropriate if the filter can determine + * that it will forward the pixels + * in TDLR order if its upstream producer object + * sends them in TDLR order. + *
  • + * Override the method to simply send the data. + * This is appropriate if the filter can handle the request itself — + * for example, + * if the generated pixels have been saved in some sort of buffer. + *
  • + * Override the method to do nothing. + * This is appropriate + * if the filter cannot produce filtered data in TDLR order. + *
+ */ + // @ts-ignore + public resendTopDownLeftRight(ip: java.awt.image.ImageProducer): void; + /** + * Clones this object. + */ + // @ts-ignore + public clone(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.ImageObserver.d.ts b/packages/types/dist/typings/jdk/java.awt.image.ImageObserver.d.ts new file mode 100644 index 00000000..cf7de380 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.ImageObserver.d.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + interface ImageObserver { + // @ts-ignore + WIDTH: number; + // @ts-ignore + HEIGHT: number; + // @ts-ignore + PROPERTIES: number; + // @ts-ignore + SOMEBITS: number; + // @ts-ignore + FRAMEBITS: number; + // @ts-ignore + ALLBITS: number; + // @ts-ignore + ERROR: number; + // @ts-ignore + ABORT: number; + /** + * This method is called when information about an image which was + * previously requested using an asynchronous interface becomes + * available. Asynchronous interfaces are method calls such as + * getWidth(ImageObserver) and drawImage(img, x, y, ImageObserver) + * which take an ImageObserver object as an argument. Those methods + * register the caller as interested either in information about + * the overall image itself (in the case of getWidth(ImageObserver)) + * or about an output version of an image (in the case of the + * drawImage(img, x, y, [w, h,] ImageObserver) call). + *

This method + * should return true if further updates are needed or false if the + * required information has been acquired. The image which was being + * tracked is passed in using the img argument. Various constants + * are combined to form the infoflags argument which indicates what + * information about the image is now available. The interpretation + * of the x, y, width, and height arguments depends on the contents + * of the infoflags argument. + *

+ * The infoflags argument should be the bitwise inclusive + * OR of the following flags: WIDTH, + * HEIGHT, PROPERTIES, SOMEBITS, + * FRAMEBITS, ALLBITS, ERROR, + * ABORT. + */ + // @ts-ignore + imageUpdate(img: java.awt.Image, infoflags: number, x: number, y: number, width: number, height: number): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.ImageProducer.d.ts b/packages/types/dist/typings/jdk/java.awt.image.ImageProducer.d.ts new file mode 100644 index 00000000..b3d57c51 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.ImageProducer.d.ts @@ -0,0 +1,71 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + interface ImageProducer { + /** + * Registers an ImageConsumer with the + * ImageProducer for access to the image data + * during a later reconstruction of the Image. + * The ImageProducer may, at its discretion, + * start delivering the image data to the consumer + * using the ImageConsumer interface immediately, + * or when the next available image reconstruction is triggered + * by a call to the startProduction method. + */ + // @ts-ignore + addConsumer(ic: java.awt.image.ImageConsumer): void; + /** + * Determines if a specified ImageConsumer + * object is currently registered with this + * ImageProducer as one of its consumers. + */ + // @ts-ignore + isConsumer(ic: java.awt.image.ImageConsumer): boolean; + /** + * Removes the specified ImageConsumer object + * from the list of consumers currently registered to + * receive image data. It is not considered an error + * to remove a consumer that is not currently registered. + * The ImageProducer should stop sending data + * to this consumer as soon as is feasible. + */ + // @ts-ignore + removeConsumer(ic: java.awt.image.ImageConsumer): void; + /** + * Registers the specified ImageConsumer object + * as a consumer and starts an immediate reconstruction of + * the image data which will then be delivered to this + * consumer and any other consumer which might have already + * been registered with the producer. This method differs + * from the addConsumer method in that a reproduction of + * the image data should be triggered as soon as possible. + */ + // @ts-ignore + startProduction(ic: java.awt.image.ImageConsumer): void; + /** + * Requests, on behalf of the ImageConsumer, + * that the ImageProducer attempt to resend + * the image data one more time in TOPDOWNLEFTRIGHT order + * so that higher quality conversion algorithms which + * depend on receiving pixels in order can be used to + * produce a better output version of the image. The + * ImageProducer is free to + * ignore this call if it cannot resend the data in that + * order. If the data can be resent, the + * ImageProducer should respond by executing + * the following minimum set of ImageConsumer + * method calls: + *

{@code
+                 * ic.setHints(TOPDOWNLEFTRIGHT | < otherhints >);
+                 * ic.setPixels(...);      // As many times as needed
+                 * ic.imageComplete();
+                 * }
+ */ + // @ts-ignore + requestTopDownLeftRightResend(ic: java.awt.image.ImageConsumer): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.ImagingOpException.d.ts b/packages/types/dist/typings/jdk/java.awt.image.ImagingOpException.d.ts new file mode 100644 index 00000000..aa8fea86 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.ImagingOpException.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class ImagingOpException extends java.lang.RuntimeException { + /** + * Constructs an ImagingOpException object with the + * specified message. + */ + // @ts-ignore + constructor(s: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.IndexColorModel.d.ts b/packages/types/dist/typings/jdk/java.awt.image.IndexColorModel.d.ts new file mode 100644 index 00000000..7d33f281 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.IndexColorModel.d.ts @@ -0,0 +1,444 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class IndexColorModel extends java.awt.image.ColorModel { + /** + * Constructs an IndexColorModel from the specified + * arrays of red, green, and blue components. Pixels described + * by this color model all have alpha components of 255 + * unnormalized (1.0 normalized), which means they + * are fully opaque. All of the arrays specifying the color + * components must have at least the specified number of entries. + * The ColorSpace is the default sRGB space. + * Since there is no alpha information in any of the arguments + * to this constructor, the transparency value is always + * Transparency.OPAQUE. + * The transfer type is the smallest of DataBuffer.TYPE_BYTE + * or DataBuffer.TYPE_USHORT that can hold a single pixel. + */ + // @ts-ignore + constructor(bits: number, size: number, r: number, g: number, b: number) + /** + * Constructs an IndexColorModel from the given arrays + * of red, green, and blue components. Pixels described by this color + * model all have alpha components of 255 unnormalized + * (1.0 normalized), which means they are fully opaque, except + * for the indicated pixel to be made transparent. All of the arrays + * specifying the color components must have at least the specified + * number of entries. + * The ColorSpace is the default sRGB space. + * The transparency value may be Transparency.OPAQUE or + * Transparency.BITMASK depending on the arguments, as + * specified in the class description above. + * The transfer type is the smallest of DataBuffer.TYPE_BYTE + * or DataBuffer.TYPE_USHORT that can hold a + * single pixel. + */ + // @ts-ignore + constructor(bits: number, size: number, r: number, g: number, b: number, trans: number) + /** + * Constructs an IndexColorModel from the given + * arrays of red, green, blue and alpha components. All of the + * arrays specifying the components must have at least the specified + * number of entries. + * The ColorSpace is the default sRGB space. + * The transparency value may be any of Transparency.OPAQUE, + * Transparency.BITMASK, + * or Transparency.TRANSLUCENT + * depending on the arguments, as specified + * in the class description above. + * The transfer type is the smallest of DataBuffer.TYPE_BYTE + * or DataBuffer.TYPE_USHORT that can hold a single pixel. + */ + // @ts-ignore + constructor(bits: number, size: number, r: number, g: number, b: number, a: number) + /** + * Constructs an IndexColorModel from a single + * array of interleaved red, green, blue and optional alpha + * components. The array must have enough values in it to + * fill all of the needed component arrays of the specified + * size. The ColorSpace is the default sRGB space. + * The transparency value may be any of Transparency.OPAQUE, + * Transparency.BITMASK, + * or Transparency.TRANSLUCENT + * depending on the arguments, as specified + * in the class description above. + * The transfer type is the smallest of + * DataBuffer.TYPE_BYTE or DataBuffer.TYPE_USHORT + * that can hold a single pixel. + */ + // @ts-ignore + constructor(bits: number, size: number, cmap: number, start: number, hasalpha: boolean) + /** + * Constructs an IndexColorModel from a single array of + * interleaved red, green, blue and optional alpha components. The + * specified transparent index represents a pixel that is made + * entirely transparent regardless of any alpha value specified + * for it. The array must have enough values in it to fill all + * of the needed component arrays of the specified size. + * The ColorSpace is the default sRGB space. + * The transparency value may be any of Transparency.OPAQUE, + * Transparency.BITMASK, + * or Transparency.TRANSLUCENT + * depending on the arguments, as specified + * in the class description above. + * The transfer type is the smallest of + * DataBuffer.TYPE_BYTE or DataBuffer.TYPE_USHORT + * that can hold a single pixel. + */ + // @ts-ignore + constructor(bits: number, size: number, cmap: number, start: number, hasalpha: boolean, trans: number) + /** + * Constructs an IndexColorModel from an array of + * ints where each int is comprised of red, green, blue, and + * optional alpha components in the default RGB color model format. + * The specified transparent index represents a pixel that is made + * entirely transparent regardless of any alpha value specified + * for it. The array must have enough values in it to fill all + * of the needed component arrays of the specified size. + * The ColorSpace is the default sRGB space. + * The transparency value may be any of Transparency.OPAQUE, + * Transparency.BITMASK, + * or Transparency.TRANSLUCENT + * depending on the arguments, as specified + * in the class description above. + */ + // @ts-ignore + constructor(bits: number, size: number, cmap: number, start: number, hasalpha: boolean, trans: number, transferType: number) + /** + * Constructs an IndexColorModel from an + * int array where each int is + * comprised of red, green, blue, and alpha + * components in the default RGB color model format. + * The array must have enough values in it to fill all + * of the needed component arrays of the specified size. + * The ColorSpace is the default sRGB space. + * The transparency value may be any of Transparency.OPAQUE, + * Transparency.BITMASK, + * or Transparency.TRANSLUCENT + * depending on the arguments, as specified + * in the class description above. + * The transfer type must be one of DataBuffer.TYPE_BYTE + * DataBuffer.TYPE_USHORT. + * The BigInteger object specifies the valid/invalid pixels + * in the cmap array. A pixel is valid if the + * BigInteger value at that index is set, and is invalid + * if the BigInteger bit at that index is not set. + */ + // @ts-ignore + constructor(bits: number, size: number, cmap: number, start: number, transferType: number, validBits: java.math.BigInteger) + /** + * Returns the transparency. Returns either OPAQUE, BITMASK, + * or TRANSLUCENT + */ + // @ts-ignore + public getTransparency(): number; + /** + * Returns an array of the number of bits for each color/alpha component. + * The array contains the color components in the order red, green, + * blue, followed by the alpha component, if present. + */ + // @ts-ignore + public getComponentSize(): number[]; + /** + * Returns the size of the color/alpha component arrays in this + * IndexColorModel. + */ + // @ts-ignore + public getMapSize(): number; + /** + * Returns the index of a transparent pixel in this + * IndexColorModel or -1 if there is no pixel + * with an alpha value of 0. If a transparent pixel was + * explicitly specified in one of the constructors by its + * index, then that index will be preferred, otherwise, + * the index of any pixel which happens to be fully transparent + * may be returned. + */ + // @ts-ignore + public getTransparentPixel(): number; + /** + * Copies the array of red color components into the specified array. + * Only the initial entries of the array as specified by + * {@link #getMapSize() getMapSize} are written. + */ + // @ts-ignore + public getReds(r: number): void; + /** + * Copies the array of green color components into the specified array. + * Only the initial entries of the array as specified by + * getMapSize are written. + */ + // @ts-ignore + public getGreens(g: number): void; + /** + * Copies the array of blue color components into the specified array. + * Only the initial entries of the array as specified by + * getMapSize are written. + */ + // @ts-ignore + public getBlues(b: number): void; + /** + * Copies the array of alpha transparency components into the + * specified array. Only the initial entries of the array as specified + * by getMapSize are written. + */ + // @ts-ignore + public getAlphas(a: number): void; + /** + * Converts data for each index from the color and alpha component + * arrays to an int in the default RGB ColorModel format and copies + * the resulting 32-bit ARGB values into the specified array. Only + * the initial entries of the array as specified by + * getMapSize are + * written. + */ + // @ts-ignore + public getRGBs(rgb: number): void; + /** + * Returns the red color component for the specified pixel, scaled + * from 0 to 255 in the default RGB ColorSpace, sRGB. The pixel value + * is specified as an int. + * Only the lower n bits of the pixel value, as specified in the + * class description above, are used to + * calculate the returned value. + * The returned value is a non pre-multiplied value. + */ + // @ts-ignore + public getRed(pixel: number): number; + /** + * Returns the green color component for the specified pixel, scaled + * from 0 to 255 in the default RGB ColorSpace, sRGB. The pixel value + * is specified as an int. + * Only the lower n bits of the pixel value, as specified in the + * class description above, are used to + * calculate the returned value. + * The returned value is a non pre-multiplied value. + */ + // @ts-ignore + public getGreen(pixel: number): number; + /** + * Returns the blue color component for the specified pixel, scaled + * from 0 to 255 in the default RGB ColorSpace, sRGB. The pixel value + * is specified as an int. + * Only the lower n bits of the pixel value, as specified in the + * class description above, are used to + * calculate the returned value. + * The returned value is a non pre-multiplied value. + */ + // @ts-ignore + public getBlue(pixel: number): number; + /** + * Returns the alpha component for the specified pixel, scaled + * from 0 to 255. The pixel value is specified as an int. + * Only the lower n bits of the pixel value, as specified in the + * class description above, are used to + * calculate the returned value. + */ + // @ts-ignore + public getAlpha(pixel: number): number; + /** + * Returns the color/alpha components of the pixel in the default + * RGB color model format. The pixel value is specified as an int. + * Only the lower n bits of the pixel value, as specified in the + * class description above, are used to + * calculate the returned value. + * The returned value is in a non pre-multiplied format. + */ + // @ts-ignore + public getRGB(pixel: number): number; + /** + * Returns a data element array representation of a pixel in this + * ColorModel, given an integer pixel representation in the + * default RGB color model. This array can then be passed to the + * {@link WritableRaster#setDataElements(int, int, java.lang.Object) setDataElements} + * method of a {@link WritableRaster} object. If the pixel variable is + * null, a new array is allocated. If pixel + * is not null, it must be + * a primitive array of type transferType; otherwise, a + * ClassCastException is thrown. An + * ArrayIndexOutOfBoundsException is + * thrown if pixel is not large enough to hold a pixel + * value for this ColorModel. The pixel array is returned. + *

+ * Since IndexColorModel can be subclassed, subclasses + * inherit the implementation of this method and if they don't + * override it then they throw an exception if they use an + * unsupported transferType. + */ + // @ts-ignore + public getDataElements(rgb: number, pixel: java.lang.Object): java.lang.Object; + /** + * Returns an array of unnormalized color/alpha components for a + * specified pixel in this ColorModel. The pixel value + * is specified as an int. If the components array is null, + * a new array is allocated that contains + * offset + getNumComponents() elements. + * The components array is returned, + * with the alpha component included + * only if hasAlpha returns true. + * Color/alpha components are stored in the components array starting + * at offset even if the array is allocated by this method. + * An ArrayIndexOutOfBoundsException + * is thrown if the components array is not null and is + * not large enough to hold all the color and alpha components + * starting at offset. + */ + // @ts-ignore + public getComponents(pixel: number, components: number, offset: number): number[]; + /** + * Returns an array of unnormalized color/alpha components for + * a specified pixel in this ColorModel. The pixel + * value is specified by an array of data elements of type + * transferType passed in as an object reference. + * If pixel is not a primitive array of type + * transferType, a ClassCastException + * is thrown. An ArrayIndexOutOfBoundsException + * is thrown if pixel is not large enough to hold + * a pixel value for this ColorModel. If the + * components array is null, a new array + * is allocated that contains + * offset + getNumComponents() elements. + * The components array is returned, + * with the alpha component included + * only if hasAlpha returns true. + * Color/alpha components are stored in the components + * array starting at offset even if the array is + * allocated by this method. An + * ArrayIndexOutOfBoundsException is also + * thrown if the components array is not + * null and is not large enough to hold all the color + * and alpha components starting at offset. + *

+ * Since IndexColorModel can be subclassed, subclasses + * inherit the implementation of this method and if they don't + * override it then they throw an exception if they use an + * unsupported transferType. + */ + // @ts-ignore + public getComponents(pixel: java.lang.Object, components: number, offset: number): number[]; + /** + * Returns a pixel value represented as an int in this + * ColorModel given an array of unnormalized + * color/alpha components. An + * ArrayIndexOutOfBoundsException + * is thrown if the components array is not large + * enough to hold all of the color and alpha components starting + * at offset. Since + * ColorModel can be subclassed, subclasses inherit the + * implementation of this method and if they don't override it then + * they throw an exception if they use an unsupported transferType. + */ + // @ts-ignore + public getDataElement(components: number, offset: number): number; + /** + * Returns a data element array representation of a pixel in this + * ColorModel given an array of unnormalized color/alpha + * components. This array can then be passed to the + * setDataElements method of a WritableRaster + * object. An ArrayIndexOutOfBoundsException is + * thrown if the + * components array is not large enough to hold all of the + * color and alpha components starting at offset. + * If the pixel variable is null, a new array + * is allocated. If pixel is not null, + * it must be a primitive array of type transferType; + * otherwise, a ClassCastException is thrown. + * An ArrayIndexOutOfBoundsException is thrown if pixel + * is not large enough to hold a pixel value for this + * ColorModel. + *

+ * Since IndexColorModel can be subclassed, subclasses + * inherit the implementation of this method and if they don't + * override it then they throw an exception if they use an + * unsupported transferType + */ + // @ts-ignore + public getDataElements(components: number, offset: number, pixel: java.lang.Object): java.lang.Object; + /** + * Creates a WritableRaster with the specified width + * and height that has a data layout (SampleModel) + * compatible with this ColorModel. This method + * only works for color models with 16 or fewer bits per pixel. + *

+ * Since IndexColorModel can be subclassed, any + * subclass that supports greater than 16 bits per pixel must + * override this method. + */ + // @ts-ignore + public createCompatibleWritableRaster(w: number, h: number): java.awt.image.WritableRaster; + /** + * Returns true if raster is compatible + * with this ColorModel or false if it + * is not compatible with this ColorModel. + */ + // @ts-ignore + public isCompatibleRaster(raster: java.awt.image.Raster): boolean; + /** + * Creates a SampleModel with the specified + * width and height that has a data layout compatible with + * this ColorModel. + */ + // @ts-ignore + public createCompatibleSampleModel(w: number, h: number): java.awt.image.SampleModel; + /** + * Checks if the specified SampleModel is compatible + * with this ColorModel. If sm is + * null, this method returns false. + */ + // @ts-ignore + public isCompatibleSampleModel(sm: java.awt.image.SampleModel): boolean; + /** + * Returns a new BufferedImage of TYPE_INT_ARGB or + * TYPE_INT_RGB that has a Raster with pixel data + * computed by expanding the indices in the source Raster + * using the color/alpha component arrays of this ColorModel. + * Only the lower n bits of each index value in the source + * Raster, as specified in the + * class description above, are used to + * compute the color/alpha values in the returned image. + * If forceARGB is true, a TYPE_INT_ARGB image is + * returned regardless of whether or not this ColorModel + * has an alpha component array or a transparent pixel. + */ + // @ts-ignore + public convertToIntDiscrete(raster: java.awt.image.Raster, forceARGB: boolean): java.awt.image.BufferedImage; + /** + * Returns whether or not the pixel is valid. + */ + // @ts-ignore + public isValid(pixel: number): boolean; + /** + * Returns whether or not all of the pixels are valid. + */ + // @ts-ignore + public isValid(): boolean; + /** + * Returns a BigInteger that indicates the valid/invalid + * pixels in the colormap. A bit is valid if the + * BigInteger value at that index is set, and is invalid + * if the BigInteger value at that index is not set. + * The only valid ranges to query in the BigInteger are + * between 0 and the map size. + */ + // @ts-ignore + public getValidPixels(): java.math.BigInteger; + /** + * Disposes of system resources associated with this + * ColorModel once this ColorModel is no + * longer referenced. + */ + // @ts-ignore + public finalize(): void; + /** + * Returns the String representation of the contents of + * this ColorModelobject. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.Kernel.d.ts b/packages/types/dist/typings/jdk/java.awt.image.Kernel.d.ts new file mode 100644 index 00000000..3c850c8f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.Kernel.d.ts @@ -0,0 +1,52 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class Kernel extends java.lang.Object { + /** + * Constructs a Kernel object from an array of floats. + * The first width*height elements of + * the data array are copied. + * If the length of the data array is less + * than width*height, an IllegalArgumentException is thrown. + * The X origin is (width-1)/2 and the Y origin is (height-1)/2. + */ + // @ts-ignore + constructor(width: number, height: number, data: number) + /** + * Returns the X origin of this Kernel. + */ + // @ts-ignore + public getXOrigin(): number; + /** + * Returns the Y origin of this Kernel. + */ + // @ts-ignore + public getYOrigin(): number; + /** + * Returns the width of this Kernel. + */ + // @ts-ignore + public getWidth(): number; + /** + * Returns the height of this Kernel. + */ + // @ts-ignore + public getHeight(): number; + /** + * Returns the kernel data in row major order. + * The data array is returned. If data + * is null, a new array is allocated. + */ + // @ts-ignore + public getKernelData(data: number): number[]; + /** + * Clones this object. + */ + // @ts-ignore + public clone(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.LookupOp.d.ts b/packages/types/dist/typings/jdk/java.awt.image.LookupOp.d.ts new file mode 100644 index 00000000..7e247b14 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.LookupOp.d.ts @@ -0,0 +1,90 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class LookupOp extends java.lang.Object { + /** + * Constructs a LookupOp object given the lookup + * table and a RenderingHints object, which might + * be null. + */ + // @ts-ignore + constructor(lookup: java.awt.image.LookupTable, hints: java.awt.RenderingHints) + /** + * Returns the LookupTable. + */ + // @ts-ignore + public getTable(): java.awt.image.LookupTable; + /** + * Performs a lookup operation on a BufferedImage. + * If the color model in the source image is not the same as that + * in the destination image, the pixels will be converted + * in the destination. If the destination image is null, + * a BufferedImage will be created with an appropriate + * ColorModel. An IllegalArgumentException + * might be thrown if the number of arrays in the + * LookupTable does not meet the restrictions + * stated in the class comment above, or if the source image + * has an IndexColorModel. + */ + // @ts-ignore + public filter(src: java.awt.image.BufferedImage, dst: java.awt.image.BufferedImage): java.awt.image.BufferedImage; + /** + * Performs a lookup operation on a Raster. + * If the destination Raster is null, + * a new Raster will be created. + * The IllegalArgumentException might be thrown + * if the source Raster and the destination + * Raster do not have the same + * number of bands or if the number of arrays in the + * LookupTable does not meet the + * restrictions stated in the class comment above. + */ + // @ts-ignore + public filter(src: java.awt.image.Raster, dst: java.awt.image.WritableRaster): java.awt.image.WritableRaster; + /** + * Returns the bounding box of the filtered destination image. Since + * this is not a geometric operation, the bounding box does not + * change. + */ + // @ts-ignore + public getBounds2D(src: java.awt.image.BufferedImage): java.awt.geom.Rectangle2D; + /** + * Returns the bounding box of the filtered destination Raster. Since + * this is not a geometric operation, the bounding box does not + * change. + */ + // @ts-ignore + public getBounds2D(src: java.awt.image.Raster): java.awt.geom.Rectangle2D; + /** + * Creates a zeroed destination image with the correct size and number of + * bands. If destCM is null, an appropriate + * ColorModel will be used. + */ + // @ts-ignore + public createCompatibleDestImage(src: java.awt.image.BufferedImage, destCM: java.awt.image.ColorModel): java.awt.image.BufferedImage; + /** + * Creates a zeroed-destination Raster with the + * correct size and number of bands, given this source. + */ + // @ts-ignore + public createCompatibleDestRaster(src: java.awt.image.Raster): java.awt.image.WritableRaster; + /** + * Returns the location of the destination point given a + * point in the source. If dstPt is not + * null, it will be used to hold the return value. + * Since this is not a geometric operation, the srcPt + * will equal the dstPt. + */ + // @ts-ignore + public getPoint2D(srcPt: java.awt.geom.Point2D, dstPt: java.awt.geom.Point2D): java.awt.geom.Point2D; + /** + * Returns the rendering hints for this op. + */ + // @ts-ignore + public getRenderingHints(): java.awt.RenderingHints; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.LookupTable.d.ts b/packages/types/dist/typings/jdk/java.awt.image.LookupTable.d.ts new file mode 100644 index 00000000..f13e294e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.LookupTable.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + abstract class LookupTable extends java.lang.Object { + /** + * Constructs a new LookupTable from the number of components and an offset + * into the lookup table. + */ + // @ts-ignore + constructor(offset: number, numComponents: number) + /** + * Returns the number of components in the lookup table. + */ + // @ts-ignore + public getNumComponents(): number; + /** + * Returns the offset. + */ + // @ts-ignore + public getOffset(): number; + /** + * Returns an int array of components for + * one pixel. The dest array contains the + * result of the lookup and is returned. If dest is + * null, a new array is allocated. The + * source and destination can be equal. + */ + // @ts-ignore + public abstract lookupPixel(src: number, dest: number): number[]; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.MemoryImageSource.d.ts b/packages/types/dist/typings/jdk/java.awt.image.MemoryImageSource.d.ts new file mode 100644 index 00000000..fe6f4b1d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.MemoryImageSource.d.ts @@ -0,0 +1,156 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class MemoryImageSource extends java.lang.Object { + /** + * Constructs an ImageProducer object which uses an array of bytes + * to produce data for an Image object. + */ + // @ts-ignore + constructor(w: number, h: number, cm: java.awt.image.ColorModel, pix: number, off: number, scan: number) + /** + * Constructs an ImageProducer object which uses an array of bytes + * to produce data for an Image object. + */ + // @ts-ignore + constructor(w: number, h: number, cm: java.awt.image.ColorModel, pix: number, off: number, scan: number, props: java.util.Hashtable) + /** + * Constructs an ImageProducer object which uses an array of integers + * to produce data for an Image object. + */ + // @ts-ignore + constructor(w: number, h: number, cm: java.awt.image.ColorModel, pix: number, off: number, scan: number) + /** + * Constructs an ImageProducer object which uses an array of integers + * to produce data for an Image object. + */ + // @ts-ignore + constructor(w: number, h: number, cm: java.awt.image.ColorModel, pix: number, off: number, scan: number, props: java.util.Hashtable) + /** + * Constructs an ImageProducer object which uses an array of integers + * in the default RGB ColorModel to produce data for an Image object. + */ + // @ts-ignore + constructor(w: number, h: number, pix: number, off: number, scan: number) + /** + * Constructs an ImageProducer object which uses an array of integers + * in the default RGB ColorModel to produce data for an Image object. + */ + // @ts-ignore + constructor(w: number, h: number, pix: number, off: number, scan: number, props: java.util.Hashtable) + /** + * Adds an ImageConsumer to the list of consumers interested in + * data for this image. + */ + // @ts-ignore + public addConsumer(ic: java.awt.image.ImageConsumer): void; + /** + * Determines if an ImageConsumer is on the list of consumers currently + * interested in data for this image. + */ + // @ts-ignore + public isConsumer(ic: java.awt.image.ImageConsumer): boolean; + /** + * Removes an ImageConsumer from the list of consumers interested in + * data for this image. + */ + // @ts-ignore + public removeConsumer(ic: java.awt.image.ImageConsumer): void; + /** + * Adds an ImageConsumer to the list of consumers interested in + * data for this image and immediately starts delivery of the + * image data through the ImageConsumer interface. + */ + // @ts-ignore + public startProduction(ic: java.awt.image.ImageConsumer): void; + /** + * Requests that a given ImageConsumer have the image data delivered + * one more time in top-down, left-right order. + */ + // @ts-ignore + public requestTopDownLeftRightResend(ic: java.awt.image.ImageConsumer): void; + /** + * Changes this memory image into a multi-frame animation or a + * single-frame static image depending on the animated parameter. + *

This method should be called immediately after the + * MemoryImageSource is constructed and before an image is + * created with it to ensure that all ImageConsumers will + * receive the correct multi-frame data. If an ImageConsumer + * is added to this ImageProducer before this flag is set then + * that ImageConsumer will see only a snapshot of the pixel + * data that was available when it connected. + */ + // @ts-ignore + public setAnimated(animated: boolean): void; + /** + * Specifies whether this animated memory image should always be + * updated by sending the complete buffer of pixels whenever + * there is a change. + * This flag is ignored if the animation flag is not turned on + * through the setAnimated() method. + *

This method should be called immediately after the + * MemoryImageSource is constructed and before an image is + * created with it to ensure that all ImageConsumers will + * receive the correct pixel delivery hints. + */ + // @ts-ignore + public setFullBufferUpdates(fullbuffers: boolean): void; + /** + * Sends a whole new buffer of pixels to any ImageConsumers that + * are currently interested in the data for this image and notify + * them that an animation frame is complete. + * This method only has effect if the animation flag has been + * turned on through the setAnimated() method. + */ + // @ts-ignore + public newPixels(): void; + /** + * Sends a rectangular region of the buffer of pixels to any + * ImageConsumers that are currently interested in the data for + * this image and notify them that an animation frame is complete. + * This method only has effect if the animation flag has been + * turned on through the setAnimated() method. + * If the full buffer update flag was turned on with the + * setFullBufferUpdates() method then the rectangle parameters + * will be ignored and the entire buffer will always be sent. + */ + // @ts-ignore + public newPixels(x: number, y: number, w: number, h: number): void; + /** + * Sends a rectangular region of the buffer of pixels to any + * ImageConsumers that are currently interested in the data for + * this image. + * If the framenotify parameter is true then the consumers are + * also notified that an animation frame is complete. + * This method only has effect if the animation flag has been + * turned on through the setAnimated() method. + * If the full buffer update flag was turned on with the + * setFullBufferUpdates() method then the rectangle parameters + * will be ignored and the entire buffer will always be sent. + */ + // @ts-ignore + public newPixels(x: number, y: number, w: number, h: number, framenotify: boolean): void; + /** + * Changes to a new byte array to hold the pixels for this image. + * If the animation flag has been turned on through the setAnimated() + * method, then the new pixels will be immediately delivered to any + * ImageConsumers that are currently interested in the data for + * this image. + */ + // @ts-ignore + public newPixels(newpix: number, newmodel: java.awt.image.ColorModel, offset: number, scansize: number): void; + /** + * Changes to a new int array to hold the pixels for this image. + * If the animation flag has been turned on through the setAnimated() + * method, then the new pixels will be immediately delivered to any + * ImageConsumers that are currently interested in the data for + * this image. + */ + // @ts-ignore + public newPixels(newpix: number, newmodel: java.awt.image.ColorModel, offset: number, scansize: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.MultiPixelPackedSampleModel.d.ts b/packages/types/dist/typings/jdk/java.awt.image.MultiPixelPackedSampleModel.d.ts new file mode 100644 index 00000000..80d32073 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.MultiPixelPackedSampleModel.d.ts @@ -0,0 +1,220 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class MultiPixelPackedSampleModel extends java.awt.image.SampleModel { + /** + * Constructs a MultiPixelPackedSampleModel with the + * specified data type, width, height and number of bits per pixel. + */ + // @ts-ignore + constructor(dataType: number, w: number, h: number, numberOfBits: number) + /** + * Constructs a MultiPixelPackedSampleModel with + * specified data type, width, height, number of bits per pixel, + * scanline stride and data bit offset. + */ + // @ts-ignore + constructor(dataType: number, w: number, h: number, numberOfBits: number, scanlineStride: number, dataBitOffset: number) + /** + * Creates a new MultiPixelPackedSampleModel with the + * specified width and height. The new + * MultiPixelPackedSampleModel has the + * same storage data type and number of bits per pixel as this + * MultiPixelPackedSampleModel. + */ + // @ts-ignore + public createCompatibleSampleModel(w: number, h: number): java.awt.image.SampleModel; + /** + * Creates a DataBuffer that corresponds to this + * MultiPixelPackedSampleModel. The + * DataBuffer object's data type and size + * is consistent with this MultiPixelPackedSampleModel. + * The DataBuffer has a single bank. + */ + // @ts-ignore + public createDataBuffer(): java.awt.image.DataBuffer; + /** + * Returns the number of data elements needed to transfer one pixel + * via the {@link #getDataElements} and {@link #setDataElements} + * methods. For a MultiPixelPackedSampleModel, this is + * one. + */ + // @ts-ignore + public getNumDataElements(): number; + /** + * Returns the number of bits per sample for all bands. + */ + // @ts-ignore + public getSampleSize(): number[]; + /** + * Returns the number of bits per sample for the specified band. + */ + // @ts-ignore + public getSampleSize(band: number): number; + /** + * Returns the offset of pixel (x, y) in data array elements. + */ + // @ts-ignore + public getOffset(x: number, y: number): number; + /** + * Returns the offset, in bits, into the data element in which it is + * stored for the xth pixel of a scanline. + * This offset is the same for all scanlines. + */ + // @ts-ignore + public getBitOffset(x: number): number; + /** + * Returns the scanline stride. + */ + // @ts-ignore + public getScanlineStride(): number; + /** + * Returns the pixel bit stride in bits. This value is the same as + * the number of bits per pixel. + */ + // @ts-ignore + public getPixelBitStride(): number; + /** + * Returns the data bit offset in bits. + */ + // @ts-ignore + public getDataBitOffset(): number; + /** + * Returns the TransferType used to transfer pixels by way of the + * getDataElements and setDataElements + * methods. The TransferType might or might not be the same as the + * storage DataType. The TransferType is one of + * DataBuffer.TYPE_BYTE, DataBuffer.TYPE_USHORT, + * or DataBuffer.TYPE_INT. + */ + // @ts-ignore + public getTransferType(): number; + /** + * Creates a new MultiPixelPackedSampleModel with a + * subset of the bands of this + * MultiPixelPackedSampleModel. Since a + * MultiPixelPackedSampleModel only has one band, the + * bands argument must have a length of one and indicate the zeroth + * band. + */ + // @ts-ignore + public createSubsetSampleModel(bands: number): java.awt.image.SampleModel; + /** + * Returns as int the sample in a specified band for the + * pixel located at (x, y). An + * ArrayIndexOutOfBoundsException is thrown if the + * coordinates are not in bounds. + */ + // @ts-ignore + public getSample(x: number, y: number, b: number, data: java.awt.image.DataBuffer): number; + /** + * Sets a sample in the specified band for the pixel located at + * (x, y) in the DataBuffer using an + * int for input. + * An ArrayIndexOutOfBoundsException is thrown if the + * coordinates are not in bounds. + */ + // @ts-ignore + public setSample(x: number, y: number, b: number, s: number, data: java.awt.image.DataBuffer): void; + /** + * Returns data for a single pixel in a primitive array of type + * TransferType. For a MultiPixelPackedSampleModel, + * the array has one element, and the type is the smallest of + * DataBuffer.TYPE_BYTE, DataBuffer.TYPE_USHORT, or DataBuffer.TYPE_INT + * that can hold a single pixel. Generally, obj + * should be passed in as null, so that the + * Object is created automatically and is the + * correct primitive data type. + *

+ * The following code illustrates transferring data for one pixel from + * DataBuffer db1, whose storage layout is + * described by MultiPixelPackedSampleModel + * mppsm1, to DataBuffer db2, + * whose storage layout is described by + * MultiPixelPackedSampleModel mppsm2. + * The transfer is generally more efficient than using + * getPixel or setPixel. + *

+                 * MultiPixelPackedSampleModel mppsm1, mppsm2;
+                 * DataBufferInt db1, db2;
+                 * mppsm2.setDataElements(x, y, mppsm1.getDataElements(x, y, null,
+                 * db1), db2);
+                 * 
+ * Using getDataElements or setDataElements + * to transfer between two DataBuffer/SampleModel pairs + * is legitimate if the SampleModels have the same number + * of bands, corresponding bands have the same number of + * bits per sample, and the TransferTypes are the same. + *

+ * If obj is not null, it should be a + * primitive array of type TransferType. Otherwise, a + * ClassCastException is thrown. An + * ArrayIndexOutOfBoundsException is thrown if the + * coordinates are not in bounds, or if obj is not + * null and is not large enough to hold the pixel data. + */ + // @ts-ignore + public getDataElements(x: number, y: number, obj: java.lang.Object, data: java.awt.image.DataBuffer): java.lang.Object; + /** + * Returns the specified single band pixel in the first element + * of an int array. + * ArrayIndexOutOfBoundsException is thrown if the + * coordinates are not in bounds. + */ + // @ts-ignore + public getPixel(x: number, y: number, iArray: number, data: java.awt.image.DataBuffer): number[]; + /** + * Sets the data for a single pixel in the specified + * DataBuffer from a primitive array of type + * TransferType. For a MultiPixelPackedSampleModel, + * only the first element of the array holds valid data, + * and the type must be the smallest of + * DataBuffer.TYPE_BYTE, DataBuffer.TYPE_USHORT, or DataBuffer.TYPE_INT + * that can hold a single pixel. + *

+ * The following code illustrates transferring data for one pixel from + * DataBuffer db1, whose storage layout is + * described by MultiPixelPackedSampleModel + * mppsm1, to DataBuffer db2, + * whose storage layout is described by + * MultiPixelPackedSampleModel mppsm2. + * The transfer is generally more efficient than using + * getPixel or setPixel. + *

+                 * MultiPixelPackedSampleModel mppsm1, mppsm2;
+                 * DataBufferInt db1, db2;
+                 * mppsm2.setDataElements(x, y, mppsm1.getDataElements(x, y, null,
+                 * db1), db2);
+                 * 
+ * Using getDataElements or setDataElements to + * transfer between two DataBuffer/SampleModel pairs is + * legitimate if the SampleModel objects have + * the same number of bands, corresponding bands have the same number of + * bits per sample, and the TransferTypes are the same. + *

+ * obj must be a primitive array of type TransferType. + * Otherwise, a ClassCastException is thrown. An + * ArrayIndexOutOfBoundsException is thrown if the + * coordinates are not in bounds, or if obj is not large + * enough to hold the pixel data. + */ + // @ts-ignore + public setDataElements(x: number, y: number, obj: java.lang.Object, data: java.awt.image.DataBuffer): void; + /** + * Sets a pixel in the DataBuffer using an + * int array for input. + * ArrayIndexOutOfBoundsException is thrown if + * the coordinates are not in bounds. + */ + // @ts-ignore + public setPixel(x: number, y: number, iArray: number, data: java.awt.image.DataBuffer): void; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.PackedColorModel.d.ts b/packages/types/dist/typings/jdk/java.awt.image.PackedColorModel.d.ts new file mode 100644 index 00000000..d6930101 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.PackedColorModel.d.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + abstract class PackedColorModel extends java.awt.image.ColorModel { + /** + * Constructs a PackedColorModel from a color mask array, + * which specifies which bits in an int pixel representation + * contain each of the color samples, and an alpha mask. Color + * components are in the specified ColorSpace. The length of + * colorMaskArray should be the number of components in + * the ColorSpace. All of the bits in each mask + * must be contiguous and fit in the specified number of least significant + * bits of an int pixel representation. If the + * alphaMask is 0, there is no alpha. If there is alpha, + * the boolean isAlphaPremultiplied specifies + * how to interpret color and alpha samples in pixel values. If the + * boolean is true, color samples are assumed + * to have been multiplied by the alpha sample. The transparency, + * trans, specifies what alpha values can be represented + * by this color model. The transfer type is the type of primitive + * array used to represent pixel values. + */ + // @ts-ignore + constructor(space: java.awt.color.ColorSpace, bits: number, colorMaskArray: number, alphaMask: number, isAlphaPremultiplied: boolean, trans: number, transferType: number) + /** + * Constructs a PackedColorModel from the specified + * masks which indicate which bits in an int pixel + * representation contain the alpha, red, green and blue color samples. + * Color components are in the specified ColorSpace, which + * must be of type ColorSpace.TYPE_RGB. All of the bits in each + * mask must be contiguous and fit in the specified number of + * least significant bits of an int pixel representation. If + * amask is 0, there is no alpha. If there is alpha, + * the boolean isAlphaPremultiplied + * specifies how to interpret color and alpha samples + * in pixel values. If the boolean is true, + * color samples are assumed to have been multiplied by the alpha sample. + * The transparency, trans, specifies what alpha values + * can be represented by this color model. + * The transfer type is the type of primitive array used to represent + * pixel values. + */ + // @ts-ignore + constructor(space: java.awt.color.ColorSpace, bits: number, rmask: number, gmask: number, bmask: number, amask: number, isAlphaPremultiplied: boolean, trans: number, transferType: number) + /** + * Returns the mask indicating which bits in a pixel + * contain the specified color/alpha sample. For color + * samples, index corresponds to the placement of color + * sample names in the color space. Thus, an index + * equal to 0 for a CMYK ColorSpace would correspond to + * Cyan and an index equal to 1 would correspond to + * Magenta. If there is alpha, the alpha index would be: + *

+                 * alphaIndex = numComponents() - 1;
+                 * 
+ */ + // @ts-ignore + public getMask(index: number): number; + /** + * Returns a mask array indicating which bits in a pixel + * contain the color and alpha samples. + */ + // @ts-ignore + public getMasks(): number[]; + /** + * Creates a SampleModel with the specified width and + * height that has a data layout compatible with this + * ColorModel. + */ + // @ts-ignore + public createCompatibleSampleModel(w: number, h: number): java.awt.image.SampleModel; + /** + * Checks if the specified SampleModel is compatible + * with this ColorModel. If sm is + * null, this method returns false. + */ + // @ts-ignore + public isCompatibleSampleModel(sm: java.awt.image.SampleModel): boolean; + /** + * Returns a {@link WritableRaster} representing the alpha channel of + * an image, extracted from the input WritableRaster. + * This method assumes that WritableRaster objects + * associated with this ColorModel store the alpha band, + * if present, as the last band of image data. Returns null + * if there is no separate spatial alpha channel associated with this + * ColorModel. This method creates a new + * WritableRaster, but shares the data array. + */ + // @ts-ignore + public getAlphaRaster(raster: java.awt.image.WritableRaster): java.awt.image.WritableRaster; + /** + * Tests if the specified Object is an instance + * of PackedColorModel and equals this + * PackedColorModel. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.PixelGrabber.d.ts b/packages/types/dist/typings/jdk/java.awt.image.PixelGrabber.d.ts new file mode 100644 index 00000000..f19e0b51 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.PixelGrabber.d.ts @@ -0,0 +1,223 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class PixelGrabber extends java.lang.Object { + /** + * Create a PixelGrabber object to grab the (x, y, w, h) rectangular + * section of pixels from the specified image into the given array. + * The pixels are stored into the array in the default RGB ColorModel. + * The RGB data for pixel (i, j) where (i, j) is inside the rectangle + * (x, y, w, h) is stored in the array at + * pix[(j - y) * scansize + (i - x) + off]. + */ + // @ts-ignore + constructor(img: java.awt.Image, x: number, y: number, w: number, h: number, pix: number, off: number, scansize: number) + /** + * Create a PixelGrabber object to grab the (x, y, w, h) rectangular + * section of pixels from the image produced by the specified + * ImageProducer into the given array. + * The pixels are stored into the array in the default RGB ColorModel. + * The RGB data for pixel (i, j) where (i, j) is inside the rectangle + * (x, y, w, h) is stored in the array at + * pix[(j - y) * scansize + (i - x) + off]. + */ + // @ts-ignore + constructor(ip: java.awt.image.ImageProducer, x: number, y: number, w: number, h: number, pix: number, off: number, scansize: number) + /** + * Create a PixelGrabber object to grab the (x, y, w, h) rectangular + * section of pixels from the specified image. The pixels are + * accumulated in the original ColorModel if the same ColorModel + * is used for every call to setPixels, otherwise the pixels are + * accumulated in the default RGB ColorModel. If the forceRGB + * parameter is true, then the pixels will be accumulated in the + * default RGB ColorModel anyway. A buffer is allocated by the + * PixelGrabber to hold the pixels in either case. If {@code (w < 0)} or + * {@code (h < 0)}, then they will default to the remaining width and + * height of the source data when that information is delivered. + */ + // @ts-ignore + constructor(img: java.awt.Image, x: number, y: number, w: number, h: number, forceRGB: boolean) + /** + * Request the PixelGrabber to start fetching the pixels. + */ + // @ts-ignore + public startGrabbing(): void; + /** + * Request the PixelGrabber to abort the image fetch. + */ + // @ts-ignore + public abortGrabbing(): void; + /** + * Request the Image or ImageProducer to start delivering pixels and + * wait for all of the pixels in the rectangle of interest to be + * delivered. + */ + // @ts-ignore + public grabPixels(): boolean; + /** + * Request the Image or ImageProducer to start delivering pixels and + * wait for all of the pixels in the rectangle of interest to be + * delivered or until the specified timeout has elapsed. This method + * behaves in the following ways, depending on the value of + * ms: + *
    + *
  • If {@code ms == 0}, waits until all pixels are delivered + *
  • If {@code ms > 0}, waits until all pixels are delivered + * as timeout expires. + *
  • If {@code ms < 0}, returns true if all pixels + * are grabbed, false otherwise and does not wait. + *
+ */ + // @ts-ignore + public grabPixels(ms: number): boolean; + /** + * Return the status of the pixels. The ImageObserver flags + * representing the available pixel information are returned. + */ + // @ts-ignore + public getStatus(): number; + /** + * Get the width of the pixel buffer (after adjusting for image width). + * If no width was specified for the rectangle of pixels to grab then + * then this information will only be available after the image has + * delivered the dimensions. + */ + // @ts-ignore + public getWidth(): number; + /** + * Get the height of the pixel buffer (after adjusting for image height). + * If no width was specified for the rectangle of pixels to grab then + * then this information will only be available after the image has + * delivered the dimensions. + */ + // @ts-ignore + public getHeight(): number; + /** + * Get the pixel buffer. If the PixelGrabber was not constructed + * with an explicit pixel buffer to hold the pixels then this method + * will return null until the size and format of the image data is + * known. + * Since the PixelGrabber may fall back on accumulating the data + * in the default RGB ColorModel at any time if the source image + * uses more than one ColorModel to deliver the data, the array + * object returned by this method may change over time until the + * image grab is complete. + */ + // @ts-ignore + public getPixels(): java.lang.Object; + /** + * Get the ColorModel for the pixels stored in the array. If the + * PixelGrabber was constructed with an explicit pixel buffer then + * this method will always return the default RGB ColorModel, + * otherwise it may return null until the ColorModel used by the + * ImageProducer is known. + * Since the PixelGrabber may fall back on accumulating the data + * in the default RGB ColorModel at any time if the source image + * uses more than one ColorModel to deliver the data, the ColorModel + * object returned by this method may change over time until the + * image grab is complete and may not reflect any of the ColorModel + * objects that was used by the ImageProducer to deliver the pixels. + */ + // @ts-ignore + public getColorModel(): java.awt.image.ColorModel; + /** + * The setDimensions method is part of the ImageConsumer API which + * this class must implement to retrieve the pixels. + *

+ * Note: This method is intended to be called by the ImageProducer + * of the Image whose pixels are being grabbed. Developers using + * this class to retrieve pixels from an image should avoid calling + * this method directly since that operation could result in problems + * with retrieving the requested pixels. + */ + // @ts-ignore + public setDimensions(width: number, height: number): void; + /** + * The setHints method is part of the ImageConsumer API which + * this class must implement to retrieve the pixels. + *

+ * Note: This method is intended to be called by the ImageProducer + * of the Image whose pixels are being grabbed. Developers using + * this class to retrieve pixels from an image should avoid calling + * this method directly since that operation could result in problems + * with retrieving the requested pixels. + */ + // @ts-ignore + public setHints(hints: number): void; + /** + * The setProperties method is part of the ImageConsumer API which + * this class must implement to retrieve the pixels. + *

+ * Note: This method is intended to be called by the ImageProducer + * of the Image whose pixels are being grabbed. Developers using + * this class to retrieve pixels from an image should avoid calling + * this method directly since that operation could result in problems + * with retrieving the requested pixels. + */ + // @ts-ignore + public setProperties(props: java.util.Hashtable): void; + /** + * The setColorModel method is part of the ImageConsumer API which + * this class must implement to retrieve the pixels. + *

+ * Note: This method is intended to be called by the ImageProducer + * of the Image whose pixels are being grabbed. Developers using + * this class to retrieve pixels from an image should avoid calling + * this method directly since that operation could result in problems + * with retrieving the requested pixels. + */ + // @ts-ignore + public setColorModel(model: java.awt.image.ColorModel): void; + /** + * The setPixels method is part of the ImageConsumer API which + * this class must implement to retrieve the pixels. + *

+ * Note: This method is intended to be called by the ImageProducer + * of the Image whose pixels are being grabbed. Developers using + * this class to retrieve pixels from an image should avoid calling + * this method directly since that operation could result in problems + * with retrieving the requested pixels. + */ + // @ts-ignore + public setPixels(srcX: number, srcY: number, srcW: number, srcH: number, model: java.awt.image.ColorModel, pixels: number, srcOff: number, srcScan: number): void; + /** + * The setPixels method is part of the ImageConsumer API which + * this class must implement to retrieve the pixels. + *

+ * Note: This method is intended to be called by the ImageProducer + * of the Image whose pixels are being grabbed. Developers using + * this class to retrieve pixels from an image should avoid calling + * this method directly since that operation could result in problems + * with retrieving the requested pixels. + */ + // @ts-ignore + public setPixels(srcX: number, srcY: number, srcW: number, srcH: number, model: java.awt.image.ColorModel, pixels: number, srcOff: number, srcScan: number): void; + /** + * The imageComplete method is part of the ImageConsumer API which + * this class must implement to retrieve the pixels. + *

+ * Note: This method is intended to be called by the ImageProducer + * of the Image whose pixels are being grabbed. Developers using + * this class to retrieve pixels from an image should avoid calling + * this method directly since that operation could result in problems + * with retrieving the requested pixels. + */ + // @ts-ignore + public imageComplete(status: number): void; + /** + * Returns the status of the pixels. The ImageObserver flags + * representing the available pixel information are returned. + * This method and {@link #getStatus() getStatus} have the + * same implementation, but getStatus is the + * preferred method because it conforms to the convention of + * naming information-retrieval methods with the form + * "getXXX". + */ + // @ts-ignore + public status(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.PixelInterleavedSampleModel.d.ts b/packages/types/dist/typings/jdk/java.awt.image.PixelInterleavedSampleModel.d.ts new file mode 100644 index 00000000..066cc731 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.PixelInterleavedSampleModel.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class PixelInterleavedSampleModel extends java.awt.image.ComponentSampleModel { + /** + * Constructs a PixelInterleavedSampleModel with the specified parameters. + * The number of bands will be given by the length of the bandOffsets + * array. + */ + // @ts-ignore + constructor(dataType: number, w: number, h: number, pixelStride: number, scanlineStride: number, bandOffsets: number) + /** + * Creates a new PixelInterleavedSampleModel with the specified + * width and height. The new PixelInterleavedSampleModel will have the + * same number of bands, storage data type, and pixel stride + * as this PixelInterleavedSampleModel. The band offsets may be + * compressed such that the minimum of all of the band offsets is zero. + */ + // @ts-ignore + public createCompatibleSampleModel(w: number, h: number): java.awt.image.SampleModel; + /** + * Creates a new PixelInterleavedSampleModel with a subset of the + * bands of this PixelInterleavedSampleModel. The new + * PixelInterleavedSampleModel can be used with any DataBuffer that the + * existing PixelInterleavedSampleModel can be used with. The new + * PixelInterleavedSampleModel/DataBuffer combination will represent + * an image with a subset of the bands of the original + * PixelInterleavedSampleModel/DataBuffer combination. + */ + // @ts-ignore + public createSubsetSampleModel(bands: number): java.awt.image.SampleModel; + // @ts-ignore + public hashCode(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.RGBImageFilter.d.ts b/packages/types/dist/typings/jdk/java.awt.image.RGBImageFilter.d.ts new file mode 100644 index 00000000..6b229e5f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.RGBImageFilter.d.ts @@ -0,0 +1,99 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + abstract class RGBImageFilter extends java.awt.image.ImageFilter { + // @ts-ignore + constructor() + // @ts-ignore + protected origmodel: java.awt.image.ColorModel; + // @ts-ignore + protected newmodel: java.awt.image.ColorModel; + // @ts-ignore + protected canFilterIndexColorModel: boolean; + /** + * If the ColorModel is an IndexColorModel and the subclass has + * set the canFilterIndexColorModel flag to true, we substitute + * a filtered version of the color model here and wherever + * that original ColorModel object appears in the setPixels methods. + * If the ColorModel is not an IndexColorModel or is null, this method + * overrides the default ColorModel used by the ImageProducer and + * specifies the default RGB ColorModel instead. + *

+ * Note: This method is intended to be called by the + * ImageProducer of the Image whose pixels + * are being filtered. Developers using + * this class to filter pixels from an image should avoid calling + * this method directly since that operation could interfere + * with the filtering operation. + */ + // @ts-ignore + public setColorModel(model: java.awt.image.ColorModel): void; + /** + * Registers two ColorModel objects for substitution. If the oldcm + * is encountered during any of the setPixels methods, the newcm + * is substituted and the pixels passed through + * untouched (but with the new ColorModel object). + */ + // @ts-ignore + public substituteColorModel(oldcm: java.awt.image.ColorModel, newcm: java.awt.image.ColorModel): void; + /** + * Filters an IndexColorModel object by running each entry in its + * color tables through the filterRGB function that RGBImageFilter + * subclasses must provide. Uses coordinates of -1 to indicate that + * a color table entry is being filtered rather than an actual + * pixel value. + */ + // @ts-ignore + public filterIndexColorModel(icm: java.awt.image.IndexColorModel): java.awt.image.IndexColorModel; + /** + * Filters a buffer of pixels in the default RGB ColorModel by passing + * them one by one through the filterRGB method. + */ + // @ts-ignore + public filterRGBPixels(x: number, y: number, w: number, h: number, pixels: number, off: number, scansize: number): void; + /** + * If the ColorModel object is the same one that has already + * been converted, then simply passes the pixels through with the + * converted ColorModel. Otherwise converts the buffer of byte + * pixels to the default RGB ColorModel and passes the converted + * buffer to the filterRGBPixels method to be converted one by one. + *

+ * Note: This method is intended to be called by the + * ImageProducer of the Image whose pixels + * are being filtered. Developers using + * this class to filter pixels from an image should avoid calling + * this method directly since that operation could interfere + * with the filtering operation. + */ + // @ts-ignore + public setPixels(x: number, y: number, w: number, h: number, model: java.awt.image.ColorModel, pixels: number, off: number, scansize: number): void; + /** + * If the ColorModel object is the same one that has already + * been converted, then simply passes the pixels through with the + * converted ColorModel, otherwise converts the buffer of integer + * pixels to the default RGB ColorModel and passes the converted + * buffer to the filterRGBPixels method to be converted one by one. + * Converts a buffer of integer pixels to the default RGB ColorModel + * and passes the converted buffer to the filterRGBPixels method. + *

+ * Note: This method is intended to be called by the + * ImageProducer of the Image whose pixels + * are being filtered. Developers using + * this class to filter pixels from an image should avoid calling + * this method directly since that operation could interfere + * with the filtering operation. + */ + // @ts-ignore + public setPixels(x: number, y: number, w: number, h: number, model: java.awt.image.ColorModel, pixels: number, off: number, scansize: number): void; + /** + * Subclasses must specify a method to convert a single input pixel + * in the default RGB ColorModel to a single output pixel. + */ + // @ts-ignore + public abstract filterRGB(x: number, y: number, rgb: number): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.Raster.d.ts b/packages/types/dist/typings/jdk/java.awt.image.Raster.d.ts new file mode 100644 index 00000000..e1be072a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.Raster.d.ts @@ -0,0 +1,501 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class Raster extends java.lang.Object { + /** + * Constructs a Raster with the given SampleModel. The Raster's + * upper left corner is origin and it is the same size as the + * SampleModel. A DataBuffer large enough to describe the + * Raster is automatically created. + */ + // @ts-ignore + constructor(sampleModel: java.awt.image.SampleModel, origin: java.awt.Point) + /** + * Constructs a Raster with the given SampleModel and DataBuffer. + * The Raster's upper left corner is origin and it is the same size + * as the SampleModel. The DataBuffer is not initialized and must + * be compatible with SampleModel. + */ + // @ts-ignore + constructor(sampleModel: java.awt.image.SampleModel, dataBuffer: java.awt.image.DataBuffer, origin: java.awt.Point) + /** + * Constructs a Raster with the given SampleModel, DataBuffer, and + * parent. aRegion specifies the bounding rectangle of the new + * Raster. When translated into the base Raster's coordinate + * system, aRegion must be contained by the base Raster. + * (The base Raster is the Raster's ancestor which has no parent.) + * sampleModelTranslate specifies the sampleModelTranslateX and + * sampleModelTranslateY values of the new Raster. + * Note that this constructor should generally be called by other + * constructors or create methods, it should not be used directly. + */ + // @ts-ignore + constructor(sampleModel: java.awt.image.SampleModel, dataBuffer: java.awt.image.DataBuffer, aRegion: java.awt.Rectangle, sampleModelTranslate: java.awt.Point, parent: java.awt.image.Raster) + // @ts-ignore + protected sampleModel: java.awt.image.SampleModel; + // @ts-ignore + protected dataBuffer: java.awt.image.DataBuffer; + // @ts-ignore + protected minX: number; + // @ts-ignore + protected minY: number; + // @ts-ignore + protected width: number; + // @ts-ignore + protected height: number; + // @ts-ignore + protected sampleModelTranslateX: number; + // @ts-ignore + protected sampleModelTranslateY: number; + // @ts-ignore + protected numBands: number; + // @ts-ignore + protected numDataElements: number; + // @ts-ignore + protected parent: java.awt.image.Raster; + /** + * Creates a Raster based on a PixelInterleavedSampleModel with the + * specified data type, width, height, and number of bands. + *

The upper left corner of the Raster is given by the + * location argument. If location is null, (0, 0) will be used. + * The dataType parameter should be one of the enumerated values + * defined in the DataBuffer class. + *

Note that interleaved DataBuffer.TYPE_INT + * Rasters are not supported. To create a 1-band Raster of type + * DataBuffer.TYPE_INT, use + * Raster.createPackedRaster(). + *

The only dataTypes supported currently are TYPE_BYTE + * and TYPE_USHORT. + */ + // @ts-ignore + public static createInterleavedRaster(dataType: number, w: number, h: number, bands: number, location: java.awt.Point): java.awt.image.WritableRaster; + /** + * Creates a Raster based on a PixelInterleavedSampleModel with the + * specified data type, width, height, scanline stride, pixel + * stride, and band offsets. The number of bands is inferred from + * bandOffsets.length. + *

The upper left corner of the Raster is given by the + * location argument. If location is null, (0, 0) will be used. + * The dataType parameter should be one of the enumerated values + * defined in the DataBuffer class. + *

Note that interleaved DataBuffer.TYPE_INT + * Rasters are not supported. To create a 1-band Raster of type + * DataBuffer.TYPE_INT, use + * Raster.createPackedRaster(). + *

The only dataTypes supported currently are TYPE_BYTE + * and TYPE_USHORT. + */ + // @ts-ignore + public static createInterleavedRaster(dataType: number, w: number, h: number, scanlineStride: number, pixelStride: number, bandOffsets: number, location: java.awt.Point): java.awt.image.WritableRaster; + /** + * Creates a Raster based on a BandedSampleModel with the + * specified data type, width, height, and number of bands. + *

The upper left corner of the Raster is given by the + * location argument. If location is null, (0, 0) will be used. + * The dataType parameter should be one of the enumerated values + * defined in the DataBuffer class. + *

The only dataTypes supported currently are TYPE_BYTE, TYPE_USHORT, + * and TYPE_INT. + */ + // @ts-ignore + public static createBandedRaster(dataType: number, w: number, h: number, bands: number, location: java.awt.Point): java.awt.image.WritableRaster; + /** + * Creates a Raster based on a BandedSampleModel with the + * specified data type, width, height, scanline stride, bank + * indices and band offsets. The number of bands is inferred from + * bankIndices.length and bandOffsets.length, which must be the + * same. + *

The upper left corner of the Raster is given by the + * location argument. The dataType parameter should be one of the + * enumerated values defined in the DataBuffer class. + *

The only dataTypes supported currently are TYPE_BYTE, TYPE_USHORT, + * and TYPE_INT. + */ + // @ts-ignore + public static createBandedRaster(dataType: number, w: number, h: number, scanlineStride: number, bankIndices: number, bandOffsets: number, location: java.awt.Point): java.awt.image.WritableRaster; + /** + * Creates a Raster based on a SinglePixelPackedSampleModel with + * the specified data type, width, height, and band masks. + * The number of bands is inferred from bandMasks.length. + *

The upper left corner of the Raster is given by the + * location argument. If location is null, (0, 0) will be used. + * The dataType parameter should be one of the enumerated values + * defined in the DataBuffer class. + *

The only dataTypes supported currently are TYPE_BYTE, TYPE_USHORT, + * and TYPE_INT. + */ + // @ts-ignore + public static createPackedRaster(dataType: number, w: number, h: number, bandMasks: number, location: java.awt.Point): java.awt.image.WritableRaster; + /** + * Creates a Raster based on a packed SampleModel with the + * specified data type, width, height, number of bands, and bits + * per band. If the number of bands is one, the SampleModel will + * be a MultiPixelPackedSampleModel. + *

If the number of bands is more than one, the SampleModel + * will be a SinglePixelPackedSampleModel, with each band having + * bitsPerBand bits. In either case, the requirements on dataType + * and bitsPerBand imposed by the corresponding SampleModel must + * be met. + *

The upper left corner of the Raster is given by the + * location argument. If location is null, (0, 0) will be used. + * The dataType parameter should be one of the enumerated values + * defined in the DataBuffer class. + *

The only dataTypes supported currently are TYPE_BYTE, TYPE_USHORT, + * and TYPE_INT. + */ + // @ts-ignore + public static createPackedRaster(dataType: number, w: number, h: number, bands: number, bitsPerBand: number, location: java.awt.Point): java.awt.image.WritableRaster; + /** + * Creates a Raster based on a PixelInterleavedSampleModel with the + * specified DataBuffer, width, height, scanline stride, pixel + * stride, and band offsets. The number of bands is inferred from + * bandOffsets.length. The upper left corner of the Raster + * is given by the location argument. If location is null, (0, 0) + * will be used. + *

Note that interleaved DataBuffer.TYPE_INT + * Rasters are not supported. To create a 1-band Raster of type + * DataBuffer.TYPE_INT, use + * Raster.createPackedRaster(). + */ + // @ts-ignore + public static createInterleavedRaster(dataBuffer: java.awt.image.DataBuffer, w: number, h: number, scanlineStride: number, pixelStride: number, bandOffsets: number, location: java.awt.Point): java.awt.image.WritableRaster; + /** + * Creates a Raster based on a BandedSampleModel with the + * specified DataBuffer, width, height, scanline stride, bank + * indices, and band offsets. The number of bands is inferred + * from bankIndices.length and bandOffsets.length, which must be + * the same. The upper left corner of the Raster is given by the + * location argument. If location is null, (0, 0) will be used. + */ + // @ts-ignore + public static createBandedRaster(dataBuffer: java.awt.image.DataBuffer, w: number, h: number, scanlineStride: number, bankIndices: number, bandOffsets: number, location: java.awt.Point): java.awt.image.WritableRaster; + /** + * Creates a Raster based on a SinglePixelPackedSampleModel with + * the specified DataBuffer, width, height, scanline stride, and + * band masks. The number of bands is inferred from bandMasks.length. + * The upper left corner of the Raster is given by + * the location argument. If location is null, (0, 0) will be used. + */ + // @ts-ignore + public static createPackedRaster(dataBuffer: java.awt.image.DataBuffer, w: number, h: number, scanlineStride: number, bandMasks: number, location: java.awt.Point): java.awt.image.WritableRaster; + /** + * Creates a Raster based on a MultiPixelPackedSampleModel with the + * specified DataBuffer, width, height, and bits per pixel. The upper + * left corner of the Raster is given by the location argument. If + * location is null, (0, 0) will be used. + */ + // @ts-ignore + public static createPackedRaster(dataBuffer: java.awt.image.DataBuffer, w: number, h: number, bitsPerPixel: number, location: java.awt.Point): java.awt.image.WritableRaster; + /** + * Creates a Raster with the specified SampleModel and DataBuffer. + * The upper left corner of the Raster is given by the location argument. + * If location is null, (0, 0) will be used. + */ + // @ts-ignore + public static createRaster(sm: java.awt.image.SampleModel, db: java.awt.image.DataBuffer, location: java.awt.Point): java.awt.image.Raster; + /** + * Creates a WritableRaster with the specified SampleModel. + * The upper left corner of the Raster is given by the location argument. + * If location is null, (0, 0) will be used. + */ + // @ts-ignore + public static createWritableRaster(sm: java.awt.image.SampleModel, location: java.awt.Point): java.awt.image.WritableRaster; + /** + * Creates a WritableRaster with the specified SampleModel and DataBuffer. + * The upper left corner of the Raster is given by the location argument. + * If location is null, (0, 0) will be used. + */ + // @ts-ignore + public static createWritableRaster(sm: java.awt.image.SampleModel, db: java.awt.image.DataBuffer, location: java.awt.Point): java.awt.image.WritableRaster; + /** + * Returns the parent Raster (if any) of this Raster or null. + */ + // @ts-ignore + public getParent(): java.awt.image.Raster; + /** + * Returns the X translation from the coordinate system of the + * SampleModel to that of the Raster. To convert a pixel's X + * coordinate from the Raster coordinate system to the SampleModel + * coordinate system, this value must be subtracted. + */ + // @ts-ignore + public getSampleModelTranslateX(): number; + /** + * Returns the Y translation from the coordinate system of the + * SampleModel to that of the Raster. To convert a pixel's Y + * coordinate from the Raster coordinate system to the SampleModel + * coordinate system, this value must be subtracted. + */ + // @ts-ignore + public getSampleModelTranslateY(): number; + /** + * Create a compatible WritableRaster the same size as this Raster with + * the same SampleModel and a new initialized DataBuffer. + */ + // @ts-ignore + public createCompatibleWritableRaster(): java.awt.image.WritableRaster; + /** + * Create a compatible WritableRaster with the specified size, a new + * SampleModel, and a new initialized DataBuffer. + */ + // @ts-ignore + public createCompatibleWritableRaster(w: number, h: number): java.awt.image.WritableRaster; + /** + * Create a compatible WritableRaster with location (minX, minY) + * and size (width, height) specified by rect, a + * new SampleModel, and a new initialized DataBuffer. + */ + // @ts-ignore + public createCompatibleWritableRaster(rect: java.awt.Rectangle): java.awt.image.WritableRaster; + /** + * Create a compatible WritableRaster with the specified + * location (minX, minY) and size (width, height), a + * new SampleModel, and a new initialized DataBuffer. + */ + // @ts-ignore + public createCompatibleWritableRaster(x: number, y: number, w: number, h: number): java.awt.image.WritableRaster; + /** + * Create a Raster with the same size, SampleModel and DataBuffer + * as this one, but with a different location. The new Raster + * will possess a reference to the current Raster, accessible + * through its getParent() method. + */ + // @ts-ignore + public createTranslatedChild(childMinX: number, childMinY: number): java.awt.image.Raster; + /** + * Returns a new Raster which shares all or part of this Raster's + * DataBuffer. The new Raster will possess a reference to the + * current Raster, accessible through its getParent() method. + *

The parentX, parentY, width and height parameters + * form a Rectangle in this Raster's coordinate space, + * indicating the area of pixels to be shared. An error will + * be thrown if this Rectangle is not contained with the bounds + * of the current Raster. + *

The new Raster may additionally be translated to a + * different coordinate system for the plane than that used by the current + * Raster. The childMinX and childMinY parameters give the new + * (x, y) coordinate of the upper-left pixel of the returned + * Raster; the coordinate (childMinX, childMinY) in the new Raster + * will map to the same pixel as the coordinate (parentX, parentY) + * in the current Raster. + *

The new Raster may be defined to contain only a subset of + * the bands of the current Raster, possibly reordered, by means + * of the bandList parameter. If bandList is null, it is taken to + * include all of the bands of the current Raster in their current + * order. + *

To create a new Raster that contains a subregion of the current + * Raster, but shares its coordinate system and bands, + * this method should be called with childMinX equal to parentX, + * childMinY equal to parentY, and bandList equal to null. + */ + // @ts-ignore + public createChild(parentX: number, parentY: number, width: number, height: number, childMinX: number, childMinY: number, bandList: number): java.awt.image.Raster; + /** + * Returns the bounding Rectangle of this Raster. This function returns + * the same information as getMinX/MinY/Width/Height. + */ + // @ts-ignore + public getBounds(): java.awt.Rectangle; + /** + * Returns the minimum valid X coordinate of the Raster. + */ + // @ts-ignore + public getMinX(): number; + /** + * Returns the minimum valid Y coordinate of the Raster. + */ + // @ts-ignore + public getMinY(): number; + /** + * Returns the width in pixels of the Raster. + */ + // @ts-ignore + public getWidth(): number; + /** + * Returns the height in pixels of the Raster. + */ + // @ts-ignore + public getHeight(): number; + /** + * Returns the number of bands (samples per pixel) in this Raster. + */ + // @ts-ignore + public getNumBands(): number; + /** + * Returns the number of data elements needed to transfer one pixel + * via the getDataElements and setDataElements methods. When pixels + * are transferred via these methods, they may be transferred in a + * packed or unpacked format, depending on the implementation of the + * underlying SampleModel. Using these methods, pixels are transferred + * as an array of getNumDataElements() elements of a primitive type given + * by getTransferType(). The TransferType may or may not be the same + * as the storage data type of the DataBuffer. + */ + // @ts-ignore + public getNumDataElements(): number; + /** + * Returns the TransferType used to transfer pixels via the + * getDataElements and setDataElements methods. When pixels + * are transferred via these methods, they may be transferred in a + * packed or unpacked format, depending on the implementation of the + * underlying SampleModel. Using these methods, pixels are transferred + * as an array of getNumDataElements() elements of a primitive type given + * by getTransferType(). The TransferType may or may not be the same + * as the storage data type of the DataBuffer. The TransferType will + * be one of the types defined in DataBuffer. + */ + // @ts-ignore + public getTransferType(): number; + /** + * Returns the DataBuffer associated with this Raster. + */ + // @ts-ignore + public getDataBuffer(): java.awt.image.DataBuffer; + /** + * Returns the SampleModel that describes the layout of the image data. + */ + // @ts-ignore + public getSampleModel(): java.awt.image.SampleModel; + /** + * Returns data for a single pixel in a primitive array of type + * TransferType. For image data supported by the Java 2D(tm) API, + * this will be one of DataBuffer.TYPE_BYTE, DataBuffer.TYPE_USHORT, + * DataBuffer.TYPE_INT, DataBuffer.TYPE_SHORT, DataBuffer.TYPE_FLOAT, + * or DataBuffer.TYPE_DOUBLE. Data may be returned in a packed format, + * thus increasing efficiency for data transfers. + * An ArrayIndexOutOfBoundsException may be thrown + * if the coordinates are not in bounds. However, explicit bounds + * checking is not guaranteed. + * A ClassCastException will be thrown if the input object is non null + * and references anything other than an array of TransferType. + */ + // @ts-ignore + public getDataElements(x: number, y: number, outData: java.lang.Object): java.lang.Object; + /** + * Returns the pixel data for the specified rectangle of pixels in a + * primitive array of type TransferType. + * For image data supported by the Java 2D API, this + * will be one of DataBuffer.TYPE_BYTE, DataBuffer.TYPE_USHORT, + * DataBuffer.TYPE_INT, DataBuffer.TYPE_SHORT, DataBuffer.TYPE_FLOAT, + * or DataBuffer.TYPE_DOUBLE. Data may be returned in a packed format, + * thus increasing efficiency for data transfers. + * An ArrayIndexOutOfBoundsException may be thrown + * if the coordinates are not in bounds. However, explicit bounds + * checking is not guaranteed. + * A ClassCastException will be thrown if the input object is non null + * and references anything other than an array of TransferType. + */ + // @ts-ignore + public getDataElements(x: number, y: number, w: number, h: number, outData: java.lang.Object): java.lang.Object; + /** + * Returns the samples in an array of int for the specified pixel. + * An ArrayIndexOutOfBoundsException may be thrown + * if the coordinates are not in bounds. However, explicit bounds + * checking is not guaranteed. + */ + // @ts-ignore + public getPixel(x: number, y: number, iArray: number): number[]; + /** + * Returns the samples in an array of float for the + * specified pixel. + * An ArrayIndexOutOfBoundsException may be thrown + * if the coordinates are not in bounds. However, explicit bounds + * checking is not guaranteed. + */ + // @ts-ignore + public getPixel(x: number, y: number, fArray: number): number[]; + /** + * Returns the samples in an array of double for the specified pixel. + * An ArrayIndexOutOfBoundsException may be thrown + * if the coordinates are not in bounds. However, explicit bounds + * checking is not guaranteed. + */ + // @ts-ignore + public getPixel(x: number, y: number, dArray: number): number[]; + /** + * Returns an int array containing all samples for a rectangle of pixels, + * one sample per array element. + * An ArrayIndexOutOfBoundsException may be thrown + * if the coordinates are not in bounds. However, explicit bounds + * checking is not guaranteed. + */ + // @ts-ignore + public getPixels(x: number, y: number, w: number, h: number, iArray: number): number[]; + /** + * Returns a float array containing all samples for a rectangle of pixels, + * one sample per array element. + * An ArrayIndexOutOfBoundsException may be thrown + * if the coordinates are not in bounds. However, explicit bounds + * checking is not guaranteed. + */ + // @ts-ignore + public getPixels(x: number, y: number, w: number, h: number, fArray: number): number[]; + /** + * Returns a double array containing all samples for a rectangle of pixels, + * one sample per array element. + * An ArrayIndexOutOfBoundsException may be thrown + * if the coordinates are not in bounds. However, explicit bounds + * checking is not guaranteed. + */ + // @ts-ignore + public getPixels(x: number, y: number, w: number, h: number, dArray: number): number[]; + /** + * Returns the sample in a specified band for the pixel located + * at (x,y) as an int. + * An ArrayIndexOutOfBoundsException may be thrown + * if the coordinates are not in bounds. However, explicit bounds + * checking is not guaranteed. + */ + // @ts-ignore + public getSample(x: number, y: number, b: number): number; + /** + * Returns the sample in a specified band + * for the pixel located at (x,y) as a float. + * An ArrayIndexOutOfBoundsException may be thrown + * if the coordinates are not in bounds. However, explicit bounds + * checking is not guaranteed. + */ + // @ts-ignore + public getSampleFloat(x: number, y: number, b: number): number; + /** + * Returns the sample in a specified band + * for a pixel located at (x,y) as a double. + * An ArrayIndexOutOfBoundsException may be thrown + * if the coordinates are not in bounds. However, explicit bounds + * checking is not guaranteed. + */ + // @ts-ignore + public getSampleDouble(x: number, y: number, b: number): number; + /** + * Returns the samples for a specified band for the specified rectangle + * of pixels in an int array, one sample per array element. + * An ArrayIndexOutOfBoundsException may be thrown + * if the coordinates are not in bounds. However, explicit bounds + * checking is not guaranteed. + */ + // @ts-ignore + public getSamples(x: number, y: number, w: number, h: number, b: number, iArray: number): number[]; + /** + * Returns the samples for a specified band for the specified rectangle + * of pixels in a float array, one sample per array element. + * An ArrayIndexOutOfBoundsException may be thrown + * if the coordinates are not in bounds. However, explicit bounds + * checking is not guaranteed. + */ + // @ts-ignore + public getSamples(x: number, y: number, w: number, h: number, b: number, fArray: number): number[]; + /** + * Returns the samples for a specified band for a specified rectangle + * of pixels in a double array, one sample per array element. + * An ArrayIndexOutOfBoundsException may be thrown + * if the coordinates are not in bounds. However, explicit bounds + * checking is not guaranteed. + */ + // @ts-ignore + public getSamples(x: number, y: number, w: number, h: number, b: number, dArray: number): number[]; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.RasterFormatException.d.ts b/packages/types/dist/typings/jdk/java.awt.image.RasterFormatException.d.ts new file mode 100644 index 00000000..3e6bfd83 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.RasterFormatException.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class RasterFormatException extends java.lang.RuntimeException { + /** + * Constructs a new RasterFormatException with the + * specified message. + */ + // @ts-ignore + constructor(s: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.RasterOp.d.ts b/packages/types/dist/typings/jdk/java.awt.image.RasterOp.d.ts new file mode 100644 index 00000000..45f57db4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.RasterOp.d.ts @@ -0,0 +1,49 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + interface RasterOp { + /** + * Performs a single-input/single-output operation from a source Raster + * to a destination Raster. If the destination Raster is null, a + * new Raster will be created. The IllegalArgumentException may be thrown + * if the source and/or destination Raster is incompatible with the types + * of Rasters allowed by the class implementing this filter. + */ + // @ts-ignore + filter(src: java.awt.image.Raster, dest: java.awt.image.WritableRaster): java.awt.image.WritableRaster; + /** + * Returns the bounding box of the filtered destination Raster. + * The IllegalArgumentException may be thrown if the source Raster + * is incompatible with the types of Rasters allowed + * by the class implementing this filter. + */ + // @ts-ignore + getBounds2D(src: java.awt.image.Raster): java.awt.geom.Rectangle2D; + /** + * Creates a zeroed destination Raster with the correct size and number of + * bands. + * The IllegalArgumentException may be thrown if the source Raster + * is incompatible with the types of Rasters allowed + * by the class implementing this filter. + */ + // @ts-ignore + createCompatibleDestRaster(src: java.awt.image.Raster): java.awt.image.WritableRaster; + /** + * Returns the location of the destination point given a + * point in the source Raster. If dstPt is non-null, it + * will be used to hold the return value. + */ + // @ts-ignore + getPoint2D(srcPt: java.awt.geom.Point2D, dstPt: java.awt.geom.Point2D): java.awt.geom.Point2D; + /** + * Returns the rendering hints for this RasterOp. Returns + * null if no hints have been set. + */ + // @ts-ignore + getRenderingHints(): java.awt.RenderingHints; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.RenderedImage.d.ts b/packages/types/dist/typings/jdk/java.awt.image.RenderedImage.d.ts new file mode 100644 index 00000000..4f96ac61 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.RenderedImage.d.ts @@ -0,0 +1,147 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + interface RenderedImage { + /** + * Returns a vector of RenderedImages that are the immediate sources of + * image data for this RenderedImage. This method returns null if + * the RenderedImage object has no information about its immediate + * sources. It returns an empty Vector if the RenderedImage object has + * no immediate sources. + */ + // @ts-ignore + getSources(): java.util.Vector; + /** + * Gets a property from the property set of this image. The set of + * properties and whether it is immutable is determined by the + * implementing class. This method returns + * java.awt.Image.UndefinedProperty if the specified property is + * not defined for this RenderedImage. + */ + // @ts-ignore + getProperty(name: string): java.lang.Object; + /** + * Returns an array of names recognized by + * {@link #getProperty(String) getProperty(String)} + * or null, if no property names are recognized. + */ + // @ts-ignore + getPropertyNames(): java.lang.String[]; + /** + * Returns the ColorModel associated with this image. All Rasters + * returned from this image will have this as their ColorModel. This + * can return null. + */ + // @ts-ignore + getColorModel(): java.awt.image.ColorModel; + /** + * Returns the SampleModel associated with this image. All Rasters + * returned from this image will have this as their SampleModel. + */ + // @ts-ignore + getSampleModel(): java.awt.image.SampleModel; + /** + * Returns the width of the RenderedImage. + */ + // @ts-ignore + getWidth(): number; + /** + * Returns the height of the RenderedImage. + */ + // @ts-ignore + getHeight(): number; + /** + * Returns the minimum X coordinate (inclusive) of the RenderedImage. + */ + // @ts-ignore + getMinX(): number; + /** + * Returns the minimum Y coordinate (inclusive) of the RenderedImage. + */ + // @ts-ignore + getMinY(): number; + /** + * Returns the number of tiles in the X direction. + */ + // @ts-ignore + getNumXTiles(): number; + /** + * Returns the number of tiles in the Y direction. + */ + // @ts-ignore + getNumYTiles(): number; + /** + * Returns the minimum tile index in the X direction. + */ + // @ts-ignore + getMinTileX(): number; + /** + * Returns the minimum tile index in the Y direction. + */ + // @ts-ignore + getMinTileY(): number; + /** + * Returns the tile width in pixels. All tiles must have the same + * width. + */ + // @ts-ignore + getTileWidth(): number; + /** + * Returns the tile height in pixels. All tiles must have the same + * height. + */ + // @ts-ignore + getTileHeight(): number; + /** + * Returns the X offset of the tile grid relative to the origin, + * i.e., the X coordinate of the upper-left pixel of tile (0, 0). + * (Note that tile (0, 0) may not actually exist.) + */ + // @ts-ignore + getTileGridXOffset(): number; + /** + * Returns the Y offset of the tile grid relative to the origin, + * i.e., the Y coordinate of the upper-left pixel of tile (0, 0). + * (Note that tile (0, 0) may not actually exist.) + */ + // @ts-ignore + getTileGridYOffset(): number; + /** + * Returns tile (tileX, tileY). Note that tileX and tileY are indices + * into the tile array, not pixel locations. The Raster that is returned + * is live and will be updated if the image is changed. + */ + // @ts-ignore + getTile(tileX: number, tileY: number): java.awt.image.Raster; + /** + * Returns the image as one large tile (for tile based + * images this will require fetching the whole image + * and copying the image data over). The Raster returned is + * a copy of the image data and will not be updated if the image + * is changed. + */ + // @ts-ignore + getData(): java.awt.image.Raster; + /** + * Computes and returns an arbitrary region of the RenderedImage. + * The Raster returned is a copy of the image data and will not + * be updated if the image is changed. + */ + // @ts-ignore + getData(rect: java.awt.Rectangle): java.awt.image.Raster; + /** + * Computes an arbitrary rectangular region of the RenderedImage + * and copies it into a caller-supplied WritableRaster. The region + * to be computed is determined from the bounds of the supplied + * WritableRaster. The supplied WritableRaster must have a + * SampleModel that is compatible with this image. If raster is null, + * an appropriate WritableRaster is created. + */ + // @ts-ignore + copyData(raster: java.awt.image.WritableRaster): java.awt.image.WritableRaster; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.ReplicateScaleFilter.d.ts b/packages/types/dist/typings/jdk/java.awt.image.ReplicateScaleFilter.d.ts new file mode 100644 index 00000000..fe420636 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.ReplicateScaleFilter.d.ts @@ -0,0 +1,86 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class ReplicateScaleFilter extends java.awt.image.ImageFilter { + /** + * Constructs a ReplicateScaleFilter that scales the pixels from + * its source Image as specified by the width and height parameters. + */ + // @ts-ignore + constructor(width: number, height: number) + // @ts-ignore + protected srcWidth: number; + // @ts-ignore + protected srcHeight: number; + // @ts-ignore + protected destWidth: number; + // @ts-ignore + protected destHeight: number; + // @ts-ignore + protected srcrows: number[]; + // @ts-ignore + protected srccols: number[]; + // @ts-ignore + protected outpixbuf: java.lang.Object; + /** + * Passes along the properties from the source object after adding a + * property indicating the scale applied. + * This method invokes super.setProperties, + * which might result in additional properties being added. + *

+ * Note: This method is intended to be called by the + * ImageProducer of the Image whose pixels + * are being filtered. Developers using + * this class to filter pixels from an image should avoid calling + * this method directly since that operation could interfere + * with the filtering operation. + */ + // @ts-ignore + public setProperties(props: java.util.Hashtable): void; + /** + * Override the dimensions of the source image and pass the dimensions + * of the new scaled size to the ImageConsumer. + *

+ * Note: This method is intended to be called by the + * ImageProducer of the Image whose pixels + * are being filtered. Developers using + * this class to filter pixels from an image should avoid calling + * this method directly since that operation could interfere + * with the filtering operation. + */ + // @ts-ignore + public setDimensions(w: number, h: number): void; + /** + * Choose which rows and columns of the delivered byte pixels are + * needed for the destination scaled image and pass through just + * those rows and columns that are needed, replicated as necessary. + *

+ * Note: This method is intended to be called by the + * ImageProducer of the Image whose pixels + * are being filtered. Developers using + * this class to filter pixels from an image should avoid calling + * this method directly since that operation could interfere + * with the filtering operation. + */ + // @ts-ignore + public setPixels(x: number, y: number, w: number, h: number, model: java.awt.image.ColorModel, pixels: number, off: number, scansize: number): void; + /** + * Choose which rows and columns of the delivered int pixels are + * needed for the destination scaled image and pass through just + * those rows and columns that are needed, replicated as necessary. + *

+ * Note: This method is intended to be called by the + * ImageProducer of the Image whose pixels + * are being filtered. Developers using + * this class to filter pixels from an image should avoid calling + * this method directly since that operation could interfere + * with the filtering operation. + */ + // @ts-ignore + public setPixels(x: number, y: number, w: number, h: number, model: java.awt.image.ColorModel, pixels: number, off: number, scansize: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.RescaleOp.d.ts b/packages/types/dist/typings/jdk/java.awt.image.RescaleOp.d.ts new file mode 100644 index 00000000..e284bd57 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.RescaleOp.d.ts @@ -0,0 +1,110 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class RescaleOp extends java.lang.Object { + /** + * Constructs a new RescaleOp with the desired scale factors + * and offsets. The length of the scaleFactor and offset arrays + * must meet the restrictions stated in the class comments above. + * The RenderingHints argument may be null. + */ + // @ts-ignore + constructor(scaleFactors: number, offsets: number, hints: java.awt.RenderingHints) + /** + * Constructs a new RescaleOp with the desired scale factor + * and offset. The scaleFactor and offset will be applied to + * all bands in a source Raster and to all color (but not alpha) + * components in a BufferedImage. + * The RenderingHints argument may be null. + */ + // @ts-ignore + constructor(scaleFactor: number, offset: number, hints: java.awt.RenderingHints) + /** + * Returns the scale factors in the given array. The array is also + * returned for convenience. If scaleFactors is null, a new array + * will be allocated. + */ + // @ts-ignore + public getScaleFactors(scaleFactors: number): number[]; + /** + * Returns the offsets in the given array. The array is also returned + * for convenience. If offsets is null, a new array + * will be allocated. + */ + // @ts-ignore + public getOffsets(offsets: number): number[]; + /** + * Returns the number of scaling factors and offsets used in this + * RescaleOp. + */ + // @ts-ignore + public getNumFactors(): number; + /** + * Rescales the source BufferedImage. + * If the color model in the source image is not the same as that + * in the destination image, the pixels will be converted + * in the destination. If the destination image is null, + * a BufferedImage will be created with the source ColorModel. + * An IllegalArgumentException may be thrown if the number of + * scaling factors/offsets in this object does not meet the + * restrictions stated in the class comments above, or if the + * source image has an IndexColorModel. + */ + // @ts-ignore + public filter(src: java.awt.image.BufferedImage, dst: java.awt.image.BufferedImage): java.awt.image.BufferedImage; + /** + * Rescales the pixel data in the source Raster. + * If the destination Raster is null, a new Raster will be created. + * The source and destination must have the same number of bands. + * Otherwise, an IllegalArgumentException is thrown. + * Note that the number of scaling factors/offsets in this object must + * meet the restrictions stated in the class comments above. + * Otherwise, an IllegalArgumentException is thrown. + */ + // @ts-ignore + public filter(src: java.awt.image.Raster, dst: java.awt.image.WritableRaster): java.awt.image.WritableRaster; + /** + * Returns the bounding box of the rescaled destination image. Since + * this is not a geometric operation, the bounding box does not + * change. + */ + // @ts-ignore + public getBounds2D(src: java.awt.image.BufferedImage): java.awt.geom.Rectangle2D; + /** + * Returns the bounding box of the rescaled destination Raster. Since + * this is not a geometric operation, the bounding box does not + * change. + */ + // @ts-ignore + public getBounds2D(src: java.awt.image.Raster): java.awt.geom.Rectangle2D; + /** + * Creates a zeroed destination image with the correct size and number of + * bands. + */ + // @ts-ignore + public createCompatibleDestImage(src: java.awt.image.BufferedImage, destCM: java.awt.image.ColorModel): java.awt.image.BufferedImage; + /** + * Creates a zeroed-destination Raster with the correct + * size and number of bands, given this source. + */ + // @ts-ignore + public createCompatibleDestRaster(src: java.awt.image.Raster): java.awt.image.WritableRaster; + /** + * Returns the location of the destination point given a + * point in the source. If dstPt is non-null, it will + * be used to hold the return value. Since this is not a geometric + * operation, the srcPt will equal the dstPt. + */ + // @ts-ignore + public getPoint2D(srcPt: java.awt.geom.Point2D, dstPt: java.awt.geom.Point2D): java.awt.geom.Point2D; + /** + * Returns the rendering hints for this op. + */ + // @ts-ignore + public getRenderingHints(): java.awt.RenderingHints; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.SampleModel.d.ts b/packages/types/dist/typings/jdk/java.awt.image.SampleModel.d.ts new file mode 100644 index 00000000..a18d8556 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.SampleModel.d.ts @@ -0,0 +1,424 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + abstract class SampleModel extends java.lang.Object { + /** + * Constructs a SampleModel with the specified parameters. + */ + // @ts-ignore + constructor(dataType: number, w: number, h: number, numBands: number) + // @ts-ignore + protected width: number; + // @ts-ignore + protected height: number; + // @ts-ignore + protected numBands: number; + // @ts-ignore + protected dataType: number; + /** + * Returns the width in pixels. + */ + // @ts-ignore + public getWidth(): number; + /** + * Returns the height in pixels. + */ + // @ts-ignore + public getHeight(): number; + /** + * Returns the total number of bands of image data. + */ + // @ts-ignore + public getNumBands(): number; + /** + * Returns the number of data elements needed to transfer a pixel + * via the getDataElements and setDataElements methods. When pixels + * are transferred via these methods, they may be transferred in a + * packed or unpacked format, depending on the implementation of the + * SampleModel. Using these methods, pixels are transferred as an + * array of getNumDataElements() elements of a primitive type given + * by getTransferType(). The TransferType may or may not be the same + * as the storage DataType. + */ + // @ts-ignore + public abstract getNumDataElements(): number; + /** + * Returns the data type of the DataBuffer storing the pixel data. + */ + // @ts-ignore + public getDataType(): number; + /** + * Returns the TransferType used to transfer pixels via the + * getDataElements and setDataElements methods. When pixels + * are transferred via these methods, they may be transferred in a + * packed or unpacked format, depending on the implementation of the + * SampleModel. Using these methods, pixels are transferred as an + * array of getNumDataElements() elements of a primitive type given + * by getTransferType(). The TransferType may or may not be the same + * as the storage DataType. The TransferType will be one of the types + * defined in DataBuffer. + */ + // @ts-ignore + public getTransferType(): number; + /** + * Returns the samples for a specified pixel in an int array, + * one sample per array element. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public getPixel(x: number, y: number, iArray: number, data: java.awt.image.DataBuffer): number[]; + /** + * Returns data for a single pixel in a primitive array of type + * TransferType. For image data supported by the Java 2D API, this + * will be one of DataBuffer.TYPE_BYTE, DataBuffer.TYPE_USHORT, + * DataBuffer.TYPE_INT, DataBuffer.TYPE_SHORT, DataBuffer.TYPE_FLOAT, + * or DataBuffer.TYPE_DOUBLE. Data may be returned in a packed format, + * thus increasing efficiency for data transfers. Generally, obj + * should be passed in as null, so that the Object will be created + * automatically and will be of the right primitive data type. + *

+ * The following code illustrates transferring data for one pixel from + * DataBuffer db1, whose storage layout is described by + * SampleModel sm1, to DataBuffer db2, whose + * storage layout is described by SampleModel sm2. + * The transfer will generally be more efficient than using + * getPixel/setPixel. + *

+                 * SampleModel sm1, sm2;
+                 * DataBuffer db1, db2;
+                 * sm2.setDataElements(x, y, sm1.getDataElements(x, y, null, db1), db2);
+                 * 
+ * Using getDataElements/setDataElements to transfer between two + * DataBuffer/SampleModel pairs is legitimate if the SampleModels have + * the same number of bands, corresponding bands have the same number of + * bits per sample, and the TransferTypes are the same. + *

+ * If obj is non-null, it should be a primitive array of type TransferType. + * Otherwise, a ClassCastException is thrown. An + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds, or if obj is non-null and is not large enough to hold + * the pixel data. + */ + // @ts-ignore + public abstract getDataElements(x: number, y: number, obj: java.lang.Object, data: java.awt.image.DataBuffer): java.lang.Object; + /** + * Returns the pixel data for the specified rectangle of pixels in a + * primitive array of type TransferType. + * For image data supported by the Java 2D API, this + * will be one of DataBuffer.TYPE_BYTE, DataBuffer.TYPE_USHORT, + * DataBuffer.TYPE_INT, DataBuffer.TYPE_SHORT, DataBuffer.TYPE_FLOAT, + * or DataBuffer.TYPE_DOUBLE. Data may be returned in a packed format, + * thus increasing efficiency for data transfers. Generally, obj + * should be passed in as null, so that the Object will be created + * automatically and will be of the right primitive data type. + *

+ * The following code illustrates transferring data for a rectangular + * region of pixels from + * DataBuffer db1, whose storage layout is described by + * SampleModel sm1, to DataBuffer db2, whose + * storage layout is described by SampleModel sm2. + * The transfer will generally be more efficient than using + * getPixels/setPixels. + *

+                 * SampleModel sm1, sm2;
+                 * DataBuffer db1, db2;
+                 * sm2.setDataElements(x, y, w, h, sm1.getDataElements(x, y, w,
+                 * h, null, db1), db2);
+                 * 
+ * Using getDataElements/setDataElements to transfer between two + * DataBuffer/SampleModel pairs is legitimate if the SampleModels have + * the same number of bands, corresponding bands have the same number of + * bits per sample, and the TransferTypes are the same. + *

+ * If obj is non-null, it should be a primitive array of type TransferType. + * Otherwise, a ClassCastException is thrown. An + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds, or if obj is non-null and is not large enough to hold + * the pixel data. + */ + // @ts-ignore + public getDataElements(x: number, y: number, w: number, h: number, obj: java.lang.Object, data: java.awt.image.DataBuffer): java.lang.Object; + /** + * Sets the data for a single pixel in the specified DataBuffer from a + * primitive array of type TransferType. For image data supported by + * the Java 2D API, this will be one of DataBuffer.TYPE_BYTE, + * DataBuffer.TYPE_USHORT, DataBuffer.TYPE_INT, DataBuffer.TYPE_SHORT, + * DataBuffer.TYPE_FLOAT, or DataBuffer.TYPE_DOUBLE. Data in the array + * may be in a packed format, thus increasing efficiency for data + * transfers. + *

+ * The following code illustrates transferring data for one pixel from + * DataBuffer db1, whose storage layout is described by + * SampleModel sm1, to DataBuffer db2, whose + * storage layout is described by SampleModel sm2. + * The transfer will generally be more efficient than using + * getPixel/setPixel. + *

+                 * SampleModel sm1, sm2;
+                 * DataBuffer db1, db2;
+                 * sm2.setDataElements(x, y, sm1.getDataElements(x, y, null, db1),
+                 * db2);
+                 * 
+ * Using getDataElements/setDataElements to transfer between two + * DataBuffer/SampleModel pairs is legitimate if the SampleModels have + * the same number of bands, corresponding bands have the same number of + * bits per sample, and the TransferTypes are the same. + *

+ * obj must be a primitive array of type TransferType. Otherwise, + * a ClassCastException is thrown. An + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds, or if obj is not large enough to hold the pixel data. + */ + // @ts-ignore + public abstract setDataElements(x: number, y: number, obj: java.lang.Object, data: java.awt.image.DataBuffer): void; + /** + * Sets the data for a rectangle of pixels in the specified DataBuffer + * from a primitive array of type TransferType. For image data supported + * by the Java 2D API, this will be one of DataBuffer.TYPE_BYTE, + * DataBuffer.TYPE_USHORT, DataBuffer.TYPE_INT, DataBuffer.TYPE_SHORT, + * DataBuffer.TYPE_FLOAT, or DataBuffer.TYPE_DOUBLE. Data in the array + * may be in a packed format, thus increasing efficiency for data + * transfers. + *

+ * The following code illustrates transferring data for a rectangular + * region of pixels from + * DataBuffer db1, whose storage layout is described by + * SampleModel sm1, to DataBuffer db2, whose + * storage layout is described by SampleModel sm2. + * The transfer will generally be more efficient than using + * getPixels/setPixels. + *

+                 * SampleModel sm1, sm2;
+                 * DataBuffer db1, db2;
+                 * sm2.setDataElements(x, y, w, h, sm1.getDataElements(x, y, w, h,
+                 * null, db1), db2);
+                 * 
+ * Using getDataElements/setDataElements to transfer between two + * DataBuffer/SampleModel pairs is legitimate if the SampleModels have + * the same number of bands, corresponding bands have the same number of + * bits per sample, and the TransferTypes are the same. + *

+ * obj must be a primitive array of type TransferType. Otherwise, + * a ClassCastException is thrown. An + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds, or if obj is not large enough to hold the pixel data. + */ + // @ts-ignore + public setDataElements(x: number, y: number, w: number, h: number, obj: java.lang.Object, data: java.awt.image.DataBuffer): void; + /** + * Returns the samples for the specified pixel in an array of float. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public getPixel(x: number, y: number, fArray: number, data: java.awt.image.DataBuffer): number[]; + /** + * Returns the samples for the specified pixel in an array of double. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public getPixel(x: number, y: number, dArray: number, data: java.awt.image.DataBuffer): number[]; + /** + * Returns all samples for a rectangle of pixels in an + * int array, one sample per array element. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public getPixels(x: number, y: number, w: number, h: number, iArray: number, data: java.awt.image.DataBuffer): number[]; + /** + * Returns all samples for a rectangle of pixels in a float + * array, one sample per array element. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public getPixels(x: number, y: number, w: number, h: number, fArray: number, data: java.awt.image.DataBuffer): number[]; + /** + * Returns all samples for a rectangle of pixels in a double + * array, one sample per array element. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public getPixels(x: number, y: number, w: number, h: number, dArray: number, data: java.awt.image.DataBuffer): number[]; + /** + * Returns the sample in a specified band for the pixel located + * at (x,y) as an int. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public abstract getSample(x: number, y: number, b: number, data: java.awt.image.DataBuffer): number; + /** + * Returns the sample in a specified band + * for the pixel located at (x,y) as a float. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public getSampleFloat(x: number, y: number, b: number, data: java.awt.image.DataBuffer): number; + /** + * Returns the sample in a specified band + * for a pixel located at (x,y) as a double. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public getSampleDouble(x: number, y: number, b: number, data: java.awt.image.DataBuffer): number; + /** + * Returns the samples for a specified band for the specified rectangle + * of pixels in an int array, one sample per array element. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public getSamples(x: number, y: number, w: number, h: number, b: number, iArray: number, data: java.awt.image.DataBuffer): number[]; + /** + * Returns the samples for a specified band for the specified rectangle + * of pixels in a float array, one sample per array element. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public getSamples(x: number, y: number, w: number, h: number, b: number, fArray: number, data: java.awt.image.DataBuffer): number[]; + /** + * Returns the samples for a specified band for a specified rectangle + * of pixels in a double array, one sample per array element. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public getSamples(x: number, y: number, w: number, h: number, b: number, dArray: number, data: java.awt.image.DataBuffer): number[]; + /** + * Sets a pixel in the DataBuffer using an int array of samples for input. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public setPixel(x: number, y: number, iArray: number, data: java.awt.image.DataBuffer): void; + /** + * Sets a pixel in the DataBuffer using a float array of samples for input. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public setPixel(x: number, y: number, fArray: number, data: java.awt.image.DataBuffer): void; + /** + * Sets a pixel in the DataBuffer using a double array of samples + * for input. + */ + // @ts-ignore + public setPixel(x: number, y: number, dArray: number, data: java.awt.image.DataBuffer): void; + /** + * Sets all samples for a rectangle of pixels from an int array containing + * one sample per array element. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public setPixels(x: number, y: number, w: number, h: number, iArray: number, data: java.awt.image.DataBuffer): void; + /** + * Sets all samples for a rectangle of pixels from a float array containing + * one sample per array element. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public setPixels(x: number, y: number, w: number, h: number, fArray: number, data: java.awt.image.DataBuffer): void; + /** + * Sets all samples for a rectangle of pixels from a double array + * containing one sample per array element. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public setPixels(x: number, y: number, w: number, h: number, dArray: number, data: java.awt.image.DataBuffer): void; + /** + * Sets a sample in the specified band for the pixel located at (x,y) + * in the DataBuffer using an int for input. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public abstract setSample(x: number, y: number, b: number, s: number, data: java.awt.image.DataBuffer): void; + /** + * Sets a sample in the specified band for the pixel located at (x,y) + * in the DataBuffer using a float for input. + * The default implementation of this method casts the input + * float sample to an int and then calls the + * setSample(int, int, int, DataBuffer) method using + * that int value. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public setSample(x: number, y: number, b: number, s: number, data: java.awt.image.DataBuffer): void; + /** + * Sets a sample in the specified band for the pixel located at (x,y) + * in the DataBuffer using a double for input. + * The default implementation of this method casts the input + * double sample to an int and then calls the + * setSample(int, int, int, DataBuffer) method using + * that int value. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public setSample(x: number, y: number, b: number, s: number, data: java.awt.image.DataBuffer): void; + /** + * Sets the samples in the specified band for the specified rectangle + * of pixels from an int array containing one sample per array element. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public setSamples(x: number, y: number, w: number, h: number, b: number, iArray: number, data: java.awt.image.DataBuffer): void; + /** + * Sets the samples in the specified band for the specified rectangle + * of pixels from a float array containing one sample per array element. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public setSamples(x: number, y: number, w: number, h: number, b: number, fArray: number, data: java.awt.image.DataBuffer): void; + /** + * Sets the samples in the specified band for the specified rectangle + * of pixels from a double array containing one sample per array element. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public setSamples(x: number, y: number, w: number, h: number, b: number, dArray: number, data: java.awt.image.DataBuffer): void; + /** + * Creates a SampleModel which describes data in this SampleModel's + * format, but with a different width and height. + */ + // @ts-ignore + public abstract createCompatibleSampleModel(w: number, h: number): java.awt.image.SampleModel; + /** + * Creates a new SampleModel + * with a subset of the bands of this + * SampleModel. + */ + // @ts-ignore + public abstract createSubsetSampleModel(bands: number): java.awt.image.SampleModel; + /** + * Creates a DataBuffer that corresponds to this SampleModel. + * The DataBuffer's width and height will match this SampleModel's. + */ + // @ts-ignore + public abstract createDataBuffer(): java.awt.image.DataBuffer; + /** + * Returns the size in bits of samples for all bands. + */ + // @ts-ignore + public abstract getSampleSize(): number[]; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.ShortLookupTable.d.ts b/packages/types/dist/typings/jdk/java.awt.image.ShortLookupTable.d.ts new file mode 100644 index 00000000..18f31711 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.ShortLookupTable.d.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class ShortLookupTable extends java.awt.image.LookupTable { + /** + * Constructs a ShortLookupTable object from an array of short + * arrays representing a lookup table for each + * band. The offset will be subtracted from the input + * values before indexing into the arrays. The number of + * bands is the length of the data argument. The + * data array for each band is stored as a reference. + */ + // @ts-ignore + constructor(offset: number, data: number) + /** + * Constructs a ShortLookupTable object from an array + * of shorts representing a lookup table for each + * band. The offset will be subtracted from the input + * values before indexing into the array. The + * data array is stored as a reference. + */ + // @ts-ignore + constructor(offset: number, data: number) + /** + * Returns the lookup table data by reference. If this ShortLookupTable + * was constructed using a single short array, the length of the returned + * array is one. + */ + // @ts-ignore + public getTable(): short[][]; + /** + * Returns an array of samples of a pixel, translated with the lookup + * table. The source and destination array can be the same array. + * Array dst is returned. + */ + // @ts-ignore + public lookupPixel(src: number, dst: number): number[]; + /** + * Returns an array of samples of a pixel, translated with the lookup + * table. The source and destination array can be the same array. + * Array dst is returned. + */ + // @ts-ignore + public lookupPixel(src: number, dst: number): number[]; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.SinglePixelPackedSampleModel.d.ts b/packages/types/dist/typings/jdk/java.awt.image.SinglePixelPackedSampleModel.d.ts new file mode 100644 index 00000000..b111ffec --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.SinglePixelPackedSampleModel.d.ts @@ -0,0 +1,232 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class SinglePixelPackedSampleModel extends java.awt.image.SampleModel { + /** + * Constructs a SinglePixelPackedSampleModel with bitMasks.length bands. + * Each sample is stored in a data array element in the position of + * its corresponding bit mask. Each bit mask must be contiguous and + * masks must not overlap. Bit masks exceeding data type capacity are + * truncated. + */ + // @ts-ignore + constructor(dataType: number, w: number, h: number, bitMasks: number) + /** + * Constructs a SinglePixelPackedSampleModel with bitMasks.length bands + * and a scanline stride equal to scanlineStride data array elements. + * Each sample is stored in a data array element in the position of + * its corresponding bit mask. Each bit mask must be contiguous and + * masks must not overlap. Bit masks exceeding data type capacity are + * truncated. + */ + // @ts-ignore + constructor(dataType: number, w: number, h: number, scanlineStride: number, bitMasks: number) + /** + * Returns the number of data elements needed to transfer one pixel + * via the getDataElements and setDataElements methods. + * For a SinglePixelPackedSampleModel, this is one. + */ + // @ts-ignore + public getNumDataElements(): number; + /** + * Creates a new SinglePixelPackedSampleModel with the specified + * width and height. The new SinglePixelPackedSampleModel will have the + * same storage data type and bit masks as this + * SinglePixelPackedSampleModel. + */ + // @ts-ignore + public createCompatibleSampleModel(w: number, h: number): java.awt.image.SampleModel; + /** + * Creates a DataBuffer that corresponds to this + * SinglePixelPackedSampleModel. The DataBuffer's data type and size + * will be consistent with this SinglePixelPackedSampleModel. The + * DataBuffer will have a single bank. + */ + // @ts-ignore + public createDataBuffer(): java.awt.image.DataBuffer; + /** + * Returns the number of bits per sample for all bands. + */ + // @ts-ignore + public getSampleSize(): number[]; + /** + * Returns the number of bits per sample for the specified band. + */ + // @ts-ignore + public getSampleSize(band: number): number; + /** + * Returns the offset (in data array elements) of pixel (x,y). + * The data element containing pixel x,y + * can be retrieved from a DataBuffer data with a + * SinglePixelPackedSampleModel sppsm as: + *

+                 * data.getElem(sppsm.getOffset(x, y));
+                 * 
+ */ + // @ts-ignore + public getOffset(x: number, y: number): number; + /** + * Returns the bit offsets into the data array element representing + * a pixel for all bands. + */ + // @ts-ignore + public getBitOffsets(): number[]; + /** + * Returns the bit masks for all bands. + */ + // @ts-ignore + public getBitMasks(): number[]; + /** + * Returns the scanline stride of this SinglePixelPackedSampleModel. + */ + // @ts-ignore + public getScanlineStride(): number; + /** + * This creates a new SinglePixelPackedSampleModel with a subset of the + * bands of this SinglePixelPackedSampleModel. The new + * SinglePixelPackedSampleModel can be used with any DataBuffer that the + * existing SinglePixelPackedSampleModel can be used with. The new + * SinglePixelPackedSampleModel/DataBuffer combination will represent + * an image with a subset of the bands of the original + * SinglePixelPackedSampleModel/DataBuffer combination. + */ + // @ts-ignore + public createSubsetSampleModel(bands: number): java.awt.image.SampleModel; + /** + * Returns data for a single pixel in a primitive array of type + * TransferType. For a SinglePixelPackedSampleModel, the array will + * have one element, and the type will be the same as the storage + * data type. Generally, obj + * should be passed in as null, so that the Object will be created + * automatically and will be of the right primitive data type. + *

+ * The following code illustrates transferring data for one pixel from + * DataBuffer db1, whose storage layout is described by + * SinglePixelPackedSampleModel sppsm1, to + * DataBuffer db2, whose storage layout is described by + * SinglePixelPackedSampleModel sppsm2. + * The transfer will generally be more efficient than using + * getPixel/setPixel. + *

+                 * SinglePixelPackedSampleModel sppsm1, sppsm2;
+                 * DataBufferInt db1, db2;
+                 * sppsm2.setDataElements(x, y, sppsm1.getDataElements(x, y, null,
+                 * db1), db2);
+                 * 
+ * Using getDataElements/setDataElements to transfer between two + * DataBuffer/SampleModel pairs is legitimate if the SampleModels have + * the same number of bands, corresponding bands have the same number of + * bits per sample, and the TransferTypes are the same. + *

+ * If obj is non-null, it should be a primitive array of type TransferType. + * Otherwise, a ClassCastException is thrown. An + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds, or if obj is non-null and is not large enough to hold + * the pixel data. + */ + // @ts-ignore + public getDataElements(x: number, y: number, obj: java.lang.Object, data: java.awt.image.DataBuffer): java.lang.Object; + /** + * Returns all samples in for the specified pixel in an int array. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public getPixel(x: number, y: number, iArray: number, data: java.awt.image.DataBuffer): number[]; + /** + * Returns all samples for the specified rectangle of pixels in + * an int array, one sample per array element. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public getPixels(x: number, y: number, w: number, h: number, iArray: number, data: java.awt.image.DataBuffer): number[]; + /** + * Returns as int the sample in a specified band for the pixel + * located at (x,y). + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public getSample(x: number, y: number, b: number, data: java.awt.image.DataBuffer): number; + /** + * Returns the samples for a specified band for the specified rectangle + * of pixels in an int array, one sample per array element. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public getSamples(x: number, y: number, w: number, h: number, b: number, iArray: number, data: java.awt.image.DataBuffer): number[]; + /** + * Sets the data for a single pixel in the specified DataBuffer from a + * primitive array of type TransferType. For a + * SinglePixelPackedSampleModel, only the first element of the array + * will hold valid data, and the type of the array must be the same as + * the storage data type of the SinglePixelPackedSampleModel. + *

+ * The following code illustrates transferring data for one pixel from + * DataBuffer db1, whose storage layout is described by + * SinglePixelPackedSampleModel sppsm1, + * to DataBuffer db2, whose storage layout is described by + * SinglePixelPackedSampleModel sppsm2. + * The transfer will generally be more efficient than using + * getPixel/setPixel. + *

+                 * SinglePixelPackedSampleModel sppsm1, sppsm2;
+                 * DataBufferInt db1, db2;
+                 * sppsm2.setDataElements(x, y, sppsm1.getDataElements(x, y, null,
+                 * db1), db2);
+                 * 
+ * Using getDataElements/setDataElements to transfer between two + * DataBuffer/SampleModel pairs is legitimate if the SampleModels have + * the same number of bands, corresponding bands have the same number of + * bits per sample, and the TransferTypes are the same. + *

+ * obj must be a primitive array of type TransferType. Otherwise, + * a ClassCastException is thrown. An + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds, or if obj is not large enough to hold the pixel data. + */ + // @ts-ignore + public setDataElements(x: number, y: number, obj: java.lang.Object, data: java.awt.image.DataBuffer): void; + /** + * Sets a pixel in the DataBuffer using an int array of samples for input. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public setPixel(x: number, y: number, iArray: number, data: java.awt.image.DataBuffer): void; + /** + * Sets all samples for a rectangle of pixels from an int array containing + * one sample per array element. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public setPixels(x: number, y: number, w: number, h: number, iArray: number, data: java.awt.image.DataBuffer): void; + /** + * Sets a sample in the specified band for the pixel located at (x,y) + * in the DataBuffer using an int for input. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public setSample(x: number, y: number, b: number, s: number, data: java.awt.image.DataBuffer): void; + /** + * Sets the samples in the specified band for the specified rectangle + * of pixels from an int array containing one sample per array element. + * ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + */ + // @ts-ignore + public setSamples(x: number, y: number, w: number, h: number, b: number, iArray: number, data: java.awt.image.DataBuffer): void; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.TileObserver.d.ts b/packages/types/dist/typings/jdk/java.awt.image.TileObserver.d.ts new file mode 100644 index 00000000..d9d9e9ed --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.TileObserver.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + interface TileObserver { + /** + * A tile is about to be updated (it is either about to be grabbed + * for writing, or it is being released from writing). + */ + // @ts-ignore + tileUpdate(source: java.awt.image.WritableRenderedImage, tileX: number, tileY: number, willBeWritable: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.VolatileImage.d.ts b/packages/types/dist/typings/jdk/java.awt.image.VolatileImage.d.ts new file mode 100644 index 00000000..5851f493 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.VolatileImage.d.ts @@ -0,0 +1,119 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + abstract class VolatileImage extends java.awt.Image { + // @ts-ignore + constructor() + // @ts-ignore + public static IMAGE_OK: number; + // @ts-ignore + public static IMAGE_RESTORED: number; + // @ts-ignore + public static IMAGE_INCOMPATIBLE: number; + // @ts-ignore + protected transparency: number; + /** + * Returns a static snapshot image of this object. The + * BufferedImage returned is only current with + * the VolatileImage at the time of the request + * and will not be updated with any future changes to the + * VolatileImage. + */ + // @ts-ignore + public abstract getSnapshot(): java.awt.image.BufferedImage; + /** + * Returns the width of the VolatileImage. + */ + // @ts-ignore + public abstract getWidth(): number; + /** + * Returns the height of the VolatileImage. + */ + // @ts-ignore + public abstract getHeight(): number; + /** + * This returns an ImageProducer for this VolatileImage. + * Note that the VolatileImage object is optimized for + * rendering operations and blitting to the screen or other + * VolatileImage objects, as opposed to reading back the + * pixels of the image. Therefore, operations such as + * getSource may not perform as fast as + * operations that do not rely on reading the pixels. + * Note also that the pixel values read from the image are current + * with those in the image only at the time that they are + * retrieved. This method takes a snapshot + * of the image at the time the request is made and the + * ImageProducer object returned works with + * that static snapshot image, not the original VolatileImage. + * Calling getSource() + * is equivalent to calling getSnapshot().getSource(). + */ + // @ts-ignore + public getSource(): java.awt.image.ImageProducer; + /** + * This method returns a {@link Graphics2D}, but is here + * for backwards compatibility. {@link #createGraphics() createGraphics} is more + * convenient, since it is declared to return a + * Graphics2D. + */ + // @ts-ignore + public getGraphics(): java.awt.Graphics; + /** + * Creates a Graphics2D, which can be used to draw into + * this VolatileImage. + */ + // @ts-ignore + public abstract createGraphics(): java.awt.Graphics2D; + /** + * Attempts to restore the drawing surface of the image if the surface + * had been lost since the last validate call. Also + * validates this image against the given GraphicsConfiguration + * parameter to see whether operations from this image to the + * GraphicsConfiguration are compatible. An example of an + * incompatible combination might be a situation where a VolatileImage + * object was created on one graphics device and then was used + * to render to a different graphics device. Since VolatileImage + * objects tend to be very device-specific, this operation might + * not work as intended, so the return code from this validate + * call would note that incompatibility. A null or incorrect + * value for gc may cause incorrect values to be returned from + * validate and may cause later problems with rendering. + */ + // @ts-ignore + public abstract validate(gc: java.awt.GraphicsConfiguration): number; + /** + * Returns true if rendering data was lost since last + * validate call. This method should be called by the + * application at the end of any series of rendering operations to + * or from the image to see whether + * the image needs to be validated and the rendering redone. + */ + // @ts-ignore + public abstract contentsLost(): boolean; + /** + * Returns an ImageCapabilities object which can be + * inquired as to the specific capabilities of this + * VolatileImage. This would allow programmers to find + * out more runtime information on the specific VolatileImage + * object that they have created. For example, the user + * might create a VolatileImage but the system may have + * no video memory left for creating an image of that + * size, so although the object is a VolatileImage, it is + * not as accelerated as other VolatileImage objects on + * this platform might be. The user might want that + * information to find other solutions to their problem. + */ + // @ts-ignore + public abstract getCapabilities(): java.awt.ImageCapabilities; + /** + * Returns the transparency. Returns either OPAQUE, BITMASK, + * or TRANSLUCENT. + */ + // @ts-ignore + public getTransparency(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.WritableRaster.d.ts b/packages/types/dist/typings/jdk/java.awt.image.WritableRaster.d.ts new file mode 100644 index 00000000..89bbc5ea --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.WritableRaster.d.ts @@ -0,0 +1,283 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + class WritableRaster extends java.awt.image.Raster { + /** + * Constructs a WritableRaster with the given SampleModel. The + * WritableRaster's upper left corner is origin and it is the + * same size as the SampleModel. A DataBuffer large enough to + * describe the WritableRaster is automatically created. + */ + // @ts-ignore + constructor(sampleModel: java.awt.image.SampleModel, origin: java.awt.Point) + /** + * Constructs a WritableRaster with the given SampleModel and DataBuffer. + * The WritableRaster's upper left corner is origin and it is the same + * size as the SampleModel. The DataBuffer is not initialized and must + * be compatible with SampleModel. + */ + // @ts-ignore + constructor(sampleModel: java.awt.image.SampleModel, dataBuffer: java.awt.image.DataBuffer, origin: java.awt.Point) + /** + * Constructs a WritableRaster with the given SampleModel, DataBuffer, + * and parent. aRegion specifies the bounding rectangle of the new + * Raster. When translated into the base Raster's coordinate + * system, aRegion must be contained by the base Raster. + * (The base Raster is the Raster's ancestor which has no parent.) + * sampleModelTranslate specifies the sampleModelTranslateX and + * sampleModelTranslateY values of the new Raster. + * Note that this constructor should generally be called by other + * constructors or create methods, it should not be used directly. + */ + // @ts-ignore + constructor(sampleModel: java.awt.image.SampleModel, dataBuffer: java.awt.image.DataBuffer, aRegion: java.awt.Rectangle, sampleModelTranslate: java.awt.Point, parent: java.awt.image.WritableRaster) + /** + * Returns the parent WritableRaster (if any) of this WritableRaster, + * or else null. + */ + // @ts-ignore + public getWritableParent(): java.awt.image.WritableRaster; + /** + * Create a WritableRaster with the same size, SampleModel and DataBuffer + * as this one, but with a different location. The new WritableRaster + * will possess a reference to the current WritableRaster, accessible + * through its getParent() and getWritableParent() methods. + */ + // @ts-ignore + public createWritableTranslatedChild(childMinX: number, childMinY: number): java.awt.image.WritableRaster; + /** + * Returns a new WritableRaster which shares all or part of this + * WritableRaster's DataBuffer. The new WritableRaster will + * possess a reference to the current WritableRaster, accessible + * through its getParent() and getWritableParent() methods. + *

The parentX, parentY, width and height parameters form a + * Rectangle in this WritableRaster's coordinate space, indicating + * the area of pixels to be shared. An error will be thrown if + * this Rectangle is not contained with the bounds of the current + * WritableRaster. + *

The new WritableRaster may additionally be translated to a + * different coordinate system for the plane than that used by the current + * WritableRaster. The childMinX and childMinY parameters give + * the new (x, y) coordinate of the upper-left pixel of the + * returned WritableRaster; the coordinate (childMinX, childMinY) + * in the new WritableRaster will map to the same pixel as the + * coordinate (parentX, parentY) in the current WritableRaster. + *

The new WritableRaster may be defined to contain only a + * subset of the bands of the current WritableRaster, possibly + * reordered, by means of the bandList parameter. If bandList is + * null, it is taken to include all of the bands of the current + * WritableRaster in their current order. + *

To create a new WritableRaster that contains a subregion of + * the current WritableRaster, but shares its coordinate system + * and bands, this method should be called with childMinX equal to + * parentX, childMinY equal to parentY, and bandList equal to + * null. + */ + // @ts-ignore + public createWritableChild(parentX: number, parentY: number, w: number, h: number, childMinX: number, childMinY: number, bandList: number): java.awt.image.WritableRaster; + /** + * Sets the data for a single pixel from a + * primitive array of type TransferType. For image data supported by + * the Java 2D(tm) API, this will be one of DataBuffer.TYPE_BYTE, + * DataBuffer.TYPE_USHORT, DataBuffer.TYPE_INT, DataBuffer.TYPE_SHORT, + * DataBuffer.TYPE_FLOAT, or DataBuffer.TYPE_DOUBLE. Data in the array + * may be in a packed format, thus increasing efficiency for data + * transfers. + * An ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds, or if inData is not large enough to hold the pixel data. + * However, explicit bounds checking is not guaranteed. + * A ClassCastException will be thrown if the input object is not null + * and references anything other than an array of TransferType. + */ + // @ts-ignore + public setDataElements(x: number, y: number, inData: java.lang.Object): void; + /** + * Sets the data for a rectangle of pixels from an input Raster. + * The input Raster must be compatible with this WritableRaster + * in that they must have the same number of bands, corresponding bands + * must have the same number of bits per sample, the TransferTypes + * and NumDataElements must be the same, and the packing used by + * the getDataElements/setDataElements must be identical. + * An ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + * However, explicit bounds checking is not guaranteed. + */ + // @ts-ignore + public setDataElements(x: number, y: number, inRaster: java.awt.image.Raster): void; + /** + * Sets the data for a rectangle of pixels from a + * primitive array of type TransferType. For image data supported by + * the Java 2D API, this will be one of DataBuffer.TYPE_BYTE, + * DataBuffer.TYPE_USHORT, DataBuffer.TYPE_INT, DataBuffer.TYPE_SHORT, + * DataBuffer.TYPE_FLOAT, or DataBuffer.TYPE_DOUBLE. Data in the array + * may be in a packed format, thus increasing efficiency for data + * transfers. + * An ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds, or if inData is not large enough to hold the pixel data. + * However, explicit bounds checking is not guaranteed. + * A ClassCastException will be thrown if the input object is not null + * and references anything other than an array of TransferType. + */ + // @ts-ignore + public setDataElements(x: number, y: number, w: number, h: number, inData: java.lang.Object): void; + /** + * Copies pixels from Raster srcRaster to this WritableRaster. Each pixel + * in srcRaster is copied to the same x,y address in this raster, unless + * the address falls outside the bounds of this raster. srcRaster + * must have the same number of bands as this WritableRaster. The + * copy is a simple copy of source samples to the corresponding destination + * samples. + *

+ * If all samples of both source and destination Rasters are of + * integral type and less than or equal to 32 bits in size, then calling + * this method is equivalent to executing the following code for all + * x,y addresses valid in both Rasters. + *

{@code
+                 * Raster srcRaster;
+                 * WritableRaster dstRaster;
+                 * for (int b = 0; b < srcRaster.getNumBands(); b++) {
+                 * dstRaster.setSample(x, y, b, srcRaster.getSample(x, y, b));
+                 * }
+                 * }
+ * Thus, when copying an integral type source to an integral type + * destination, if the source sample size is greater than the destination + * sample size for a particular band, the high order bits of the source + * sample are truncated. If the source sample size is less than the + * destination size for a particular band, the high order bits of the + * destination are zero-extended or sign-extended depending on whether + * srcRaster's SampleModel treats the sample as a signed or unsigned + * quantity. + *

+ * When copying a float or double source to an integral type destination, + * each source sample is cast to the destination type. When copying an + * integral type source to a float or double destination, the source + * is first converted to a 32-bit int (if necessary), using the above + * rules for integral types, and then the int is cast to float or + * double. + *

+ */ + // @ts-ignore + public setRect(srcRaster: java.awt.image.Raster): void; + /** + * Copies pixels from Raster srcRaster to this WritableRaster. + * For each (x, y) address in srcRaster, the corresponding pixel + * is copied to address (x+dx, y+dy) in this WritableRaster, + * unless (x+dx, y+dy) falls outside the bounds of this raster. + * srcRaster must have the same number of bands as this WritableRaster. + * The copy is a simple copy of source samples to the corresponding + * destination samples. For details, see + * {@link WritableRaster#setRect(Raster)}. + */ + // @ts-ignore + public setRect(dx: number, dy: number, srcRaster: java.awt.image.Raster): void; + /** + * Sets a pixel in the DataBuffer using an int array of samples for input. + * An ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + * However, explicit bounds checking is not guaranteed. + */ + // @ts-ignore + public setPixel(x: number, y: number, iArray: number): void; + /** + * Sets a pixel in the DataBuffer using a float array of samples for input. + * An ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + * However, explicit bounds checking is not guaranteed. + */ + // @ts-ignore + public setPixel(x: number, y: number, fArray: number): void; + /** + * Sets a pixel in the DataBuffer using a double array of samples for input. + * An ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + * However, explicit bounds checking is not guaranteed. + */ + // @ts-ignore + public setPixel(x: number, y: number, dArray: number): void; + /** + * Sets all samples for a rectangle of pixels from an int array containing + * one sample per array element. + * An ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + * However, explicit bounds checking is not guaranteed. + */ + // @ts-ignore + public setPixels(x: number, y: number, w: number, h: number, iArray: number): void; + /** + * Sets all samples for a rectangle of pixels from a float array containing + * one sample per array element. + * An ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + * However, explicit bounds checking is not guaranteed. + */ + // @ts-ignore + public setPixels(x: number, y: number, w: number, h: number, fArray: number): void; + /** + * Sets all samples for a rectangle of pixels from a double array containing + * one sample per array element. + * An ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + * However, explicit bounds checking is not guaranteed. + */ + // @ts-ignore + public setPixels(x: number, y: number, w: number, h: number, dArray: number): void; + /** + * Sets a sample in the specified band for the pixel located at (x,y) + * in the DataBuffer using an int for input. + * An ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + * However, explicit bounds checking is not guaranteed. + */ + // @ts-ignore + public setSample(x: number, y: number, b: number, s: number): void; + /** + * Sets a sample in the specified band for the pixel located at (x,y) + * in the DataBuffer using a float for input. + * An ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + * However, explicit bounds checking is not guaranteed. + */ + // @ts-ignore + public setSample(x: number, y: number, b: number, s: number): void; + /** + * Sets a sample in the specified band for the pixel located at (x,y) + * in the DataBuffer using a double for input. + * An ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + * However, explicit bounds checking is not guaranteed. + */ + // @ts-ignore + public setSample(x: number, y: number, b: number, s: number): void; + /** + * Sets the samples in the specified band for the specified rectangle + * of pixels from an int array containing one sample per array element. + * An ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + * However, explicit bounds checking is not guaranteed. + */ + // @ts-ignore + public setSamples(x: number, y: number, w: number, h: number, b: number, iArray: number): void; + /** + * Sets the samples in the specified band for the specified rectangle + * of pixels from a float array containing one sample per array element. + * An ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + * However, explicit bounds checking is not guaranteed. + */ + // @ts-ignore + public setSamples(x: number, y: number, w: number, h: number, b: number, fArray: number): void; + /** + * Sets the samples in the specified band for the specified rectangle + * of pixels from a double array containing one sample per array element. + * An ArrayIndexOutOfBoundsException may be thrown if the coordinates are + * not in bounds. + * However, explicit bounds checking is not guaranteed. + */ + // @ts-ignore + public setSamples(x: number, y: number, w: number, h: number, b: number, dArray: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.WritableRenderedImage.d.ts b/packages/types/dist/typings/jdk/java.awt.image.WritableRenderedImage.d.ts new file mode 100644 index 00000000..2b23b6f7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.WritableRenderedImage.d.ts @@ -0,0 +1,68 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + // @ts-ignore + interface WritableRenderedImage { + /** + * Adds an observer. If the observer is already present, + * it will receive multiple notifications. + */ + // @ts-ignore + addTileObserver(to: java.awt.image.TileObserver): void; + /** + * Removes an observer. If the observer was not registered, + * nothing happens. If the observer was registered for multiple + * notifications, it will now be registered for one fewer. + */ + // @ts-ignore + removeTileObserver(to: java.awt.image.TileObserver): void; + /** + * Checks out a tile for writing. + * The WritableRenderedImage is responsible for notifying all + * of its TileObservers when a tile goes from having + * no writers to having one writer. + */ + // @ts-ignore + getWritableTile(tileX: number, tileY: number): java.awt.image.WritableRaster; + /** + * Relinquishes the right to write to a tile. If the caller + * continues to write to the tile, the results are undefined. + * Calls to this method should only appear in matching pairs + * with calls to getWritableTile; any other use will lead + * to undefined results. + * The WritableRenderedImage is responsible for notifying all of + * its TileObservers when a tile goes from having one writer + * to having no writers. + */ + // @ts-ignore + releaseWritableTile(tileX: number, tileY: number): void; + /** + * Returns whether a tile is currently checked out for writing. + */ + // @ts-ignore + isTileWritable(tileX: number, tileY: number): boolean; + /** + * Returns an array of Point objects indicating which tiles + * are checked out for writing. Returns null if none are + * checked out. + */ + // @ts-ignore + getWritableTileIndices(): java.awt.Point[]; + /** + * Returns whether any tile is checked out for writing. + * Semantically equivalent to (getWritableTileIndices() != null). + */ + // @ts-ignore + hasTileWriters(): boolean; + /** + * Sets a rect of the image to the contents of the Raster r, which is + * assumed to be in the same coordinate space as the WritableRenderedImage. + * The operation is clipped to the bounds of the WritableRenderedImage. + */ + // @ts-ignore + setData(r: java.awt.image.Raster): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.renderable.ContextualRenderedImageFactory.d.ts b/packages/types/dist/typings/jdk/java.awt.image.renderable.ContextualRenderedImageFactory.d.ts new file mode 100644 index 00000000..9e0eaf12 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.renderable.ContextualRenderedImageFactory.d.ts @@ -0,0 +1,65 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + namespace renderable { + // @ts-ignore + interface ContextualRenderedImageFactory { + /** + * Maps the operation's output RenderContext into a RenderContext + * for each of the operation's sources. This is useful for + * operations that can be expressed in whole or in part simply as + * alterations in the RenderContext, such as an affine mapping, or + * operations that wish to obtain lower quality renderings of + * their sources in order to save processing effort or + * transmission bandwith. Some operations, such as blur, can also + * use this mechanism to avoid obtaining sources of higher quality + * than necessary. + */ + // @ts-ignore + mapRenderContext(i: number, renderContext: java.awt.image.renderable.RenderContext, paramBlock: java.awt.image.renderable.ParameterBlock, image: java.awt.image.renderable.RenderableImage): java.awt.image.renderable.RenderContext; + /** + * Creates a rendering, given a RenderContext and a ParameterBlock + * containing the operation's sources and parameters. The output + * is a RenderedImage that takes the RenderContext into account to + * determine its dimensions and placement on the image plane. + * This method houses the "intelligence" that allows a + * rendering-independent operation to adapt to a specific + * RenderContext. + */ + // @ts-ignore + create(renderContext: java.awt.image.renderable.RenderContext, paramBlock: java.awt.image.renderable.ParameterBlock): java.awt.image.RenderedImage; + /** + * Returns the bounding box for the output of the operation, + * performed on a given set of sources, in rendering-independent + * space. The bounds are returned as a Rectangle2D, that is, an + * axis-aligned rectangle with floating-point corner coordinates. + */ + // @ts-ignore + getBounds2D(paramBlock: java.awt.image.renderable.ParameterBlock): java.awt.geom.Rectangle2D; + /** + * Gets the appropriate instance of the property specified by the name + * parameter. This method must determine which instance of a property to + * return when there are multiple sources that each specify the property. + */ + // @ts-ignore + getProperty(paramBlock: java.awt.image.renderable.ParameterBlock, name: string): java.lang.Object; + /** + * Returns a list of names recognized by getProperty. + */ + // @ts-ignore + getPropertyNames(): java.lang.String[]; + /** + * Returns true if successive renderings (that is, calls to + * create(RenderContext, ParameterBlock)) with the same arguments + * may produce different results. This method may be used to + * determine whether an existing rendering may be cached and + * reused. It is always safe to return true. + */ + // @ts-ignore + isDynamic(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.renderable.ParameterBlock.d.ts b/packages/types/dist/typings/jdk/java.awt.image.renderable.ParameterBlock.d.ts new file mode 100644 index 00000000..74ff9ca5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.renderable.ParameterBlock.d.ts @@ -0,0 +1,280 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + namespace renderable { + // @ts-ignore + class ParameterBlock extends java.lang.Object { + /** + * A dummy constructor. + */ + // @ts-ignore + constructor() + /** + * Constructs a ParameterBlock with a given Vector + * of sources. + */ + // @ts-ignore + constructor(sources: java.util.Vector) + /** + * Constructs a ParameterBlock with a given Vector of sources and + * Vector of parameters. + */ + // @ts-ignore + constructor(sources: java.util.Vector, parameters: java.util.Vector) + // @ts-ignore + protected sources: java.util.Vector; + // @ts-ignore + protected parameters: java.util.Vector; + /** + * Creates a shallow copy of a ParameterBlock. The source and + * parameter Vectors are copied by reference -- additions or + * changes will be visible to both versions. + */ + // @ts-ignore + public shallowClone(): java.lang.Object; + /** + * Creates a copy of a ParameterBlock. The source and parameter + * Vectors are cloned, but the actual sources and parameters are + * copied by reference. This allows modifications to the order + * and number of sources and parameters in the clone to be invisible + * to the original ParameterBlock. Changes to the shared sources or + * parameters themselves will still be visible. + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Adds an image to end of the list of sources. The image is + * stored as an object in order to allow new node types in the + * future. + */ + // @ts-ignore + public addSource(source: java.lang.Object): java.awt.image.renderable.ParameterBlock; + /** + * Returns a source as a general Object. The caller must cast it into + * an appropriate type. + */ + // @ts-ignore + public getSource(index: number): java.lang.Object; + /** + * Replaces an entry in the list of source with a new source. + * If the index lies beyond the current source list, + * the list is extended with nulls as needed. + */ + // @ts-ignore + public setSource(source: java.lang.Object, index: number): java.awt.image.renderable.ParameterBlock; + /** + * Returns a source as a RenderedImage. This method is + * a convenience method. + * An exception will be thrown if the source is not a RenderedImage. + */ + // @ts-ignore + public getRenderedSource(index: number): java.awt.image.RenderedImage; + /** + * Returns a source as a RenderableImage. This method is a + * convenience method. + * An exception will be thrown if the sources is not a RenderableImage. + */ + // @ts-ignore + public getRenderableSource(index: number): java.awt.image.renderable.RenderableImage; + /** + * Returns the number of source images. + */ + // @ts-ignore + public getNumSources(): number; + /** + * Returns the entire Vector of sources. + */ + // @ts-ignore + public getSources(): java.util.Vector; + /** + * Sets the entire Vector of sources to a given Vector. + */ + // @ts-ignore + public setSources(sources: java.util.Vector): void; + /** + * Clears the list of source images. + */ + // @ts-ignore + public removeSources(): void; + /** + * Returns the number of parameters (not including source images). + */ + // @ts-ignore + public getNumParameters(): number; + /** + * Returns the entire Vector of parameters. + */ + // @ts-ignore + public getParameters(): java.util.Vector; + /** + * Sets the entire Vector of parameters to a given Vector. + */ + // @ts-ignore + public setParameters(parameters: java.util.Vector): void; + /** + * Clears the list of parameters. + */ + // @ts-ignore + public removeParameters(): void; + /** + * Adds an object to the list of parameters. + */ + // @ts-ignore + public add(obj: java.lang.Object): java.awt.image.renderable.ParameterBlock; + /** + * Adds a Byte to the list of parameters. + */ + // @ts-ignore + public add(b: number): java.awt.image.renderable.ParameterBlock; + /** + * Adds a Character to the list of parameters. + */ + // @ts-ignore + public add(c: string): java.awt.image.renderable.ParameterBlock; + /** + * Adds a Short to the list of parameters. + */ + // @ts-ignore + public add(s: number): java.awt.image.renderable.ParameterBlock; + /** + * Adds a Integer to the list of parameters. + */ + // @ts-ignore + public add(i: number): java.awt.image.renderable.ParameterBlock; + /** + * Adds a Long to the list of parameters. + */ + // @ts-ignore + public add(l: number): java.awt.image.renderable.ParameterBlock; + /** + * Adds a Float to the list of parameters. + */ + // @ts-ignore + public add(f: number): java.awt.image.renderable.ParameterBlock; + /** + * Adds a Double to the list of parameters. + */ + // @ts-ignore + public add(d: number): java.awt.image.renderable.ParameterBlock; + /** + * Replaces an Object in the list of parameters. + * If the index lies beyond the current source list, + * the list is extended with nulls as needed. + */ + // @ts-ignore + public set(obj: java.lang.Object, index: number): java.awt.image.renderable.ParameterBlock; + /** + * Replaces an Object in the list of parameters with a Byte. + * If the index lies beyond the current source list, + * the list is extended with nulls as needed. + */ + // @ts-ignore + public set(b: number, index: number): java.awt.image.renderable.ParameterBlock; + /** + * Replaces an Object in the list of parameters with a Character. + * If the index lies beyond the current source list, + * the list is extended with nulls as needed. + */ + // @ts-ignore + public set(c: string, index: number): java.awt.image.renderable.ParameterBlock; + /** + * Replaces an Object in the list of parameters with a Short. + * If the index lies beyond the current source list, + * the list is extended with nulls as needed. + */ + // @ts-ignore + public set(s: number, index: number): java.awt.image.renderable.ParameterBlock; + /** + * Replaces an Object in the list of parameters with an Integer. + * If the index lies beyond the current source list, + * the list is extended with nulls as needed. + */ + // @ts-ignore + public set(i: number, index: number): java.awt.image.renderable.ParameterBlock; + /** + * Replaces an Object in the list of parameters with a Long. + * If the index lies beyond the current source list, + * the list is extended with nulls as needed. + */ + // @ts-ignore + public set(l: number, index: number): java.awt.image.renderable.ParameterBlock; + /** + * Replaces an Object in the list of parameters with a Float. + * If the index lies beyond the current source list, + * the list is extended with nulls as needed. + */ + // @ts-ignore + public set(f: number, index: number): java.awt.image.renderable.ParameterBlock; + /** + * Replaces an Object in the list of parameters with a Double. + * If the index lies beyond the current source list, + * the list is extended with nulls as needed. + */ + // @ts-ignore + public set(d: number, index: number): java.awt.image.renderable.ParameterBlock; + /** + * Gets a parameter as an object. + */ + // @ts-ignore + public getObjectParameter(index: number): java.lang.Object; + /** + * A convenience method to return a parameter as a byte. An + * exception is thrown if the parameter is + * null or not a Byte. + */ + // @ts-ignore + public getByteParameter(index: number): number; + /** + * A convenience method to return a parameter as a char. An + * exception is thrown if the parameter is + * null or not a Character. + */ + // @ts-ignore + public getCharParameter(index: number): string; + /** + * A convenience method to return a parameter as a short. An + * exception is thrown if the parameter is + * null or not a Short. + */ + // @ts-ignore + public getShortParameter(index: number): number; + /** + * A convenience method to return a parameter as an int. An + * exception is thrown if the parameter is + * null or not an Integer. + */ + // @ts-ignore + public getIntParameter(index: number): number; + /** + * A convenience method to return a parameter as a long. An + * exception is thrown if the parameter is + * null or not a Long. + */ + // @ts-ignore + public getLongParameter(index: number): number; + /** + * A convenience method to return a parameter as a float. An + * exception is thrown if the parameter is + * null or not a Float. + */ + // @ts-ignore + public getFloatParameter(index: number): number; + /** + * A convenience method to return a parameter as a double. An + * exception is thrown if the parameter is + * null or not a Double. + */ + // @ts-ignore + public getDoubleParameter(index: number): number; + /** + * Returns an array of Class objects describing the types + * of the parameters. + */ + // @ts-ignore + public getParamClasses(): java.lang.Class[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.renderable.RenderContext.d.ts b/packages/types/dist/typings/jdk/java.awt.image.renderable.RenderContext.d.ts new file mode 100644 index 00000000..70a88306 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.renderable.RenderContext.d.ts @@ -0,0 +1,120 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + namespace renderable { + // @ts-ignore + class RenderContext extends java.lang.Object { + /** + * Constructs a RenderContext with a given transform. + * The area of interest is supplied as a Shape, + * and the rendering hints are supplied as a RenderingHints object. + */ + // @ts-ignore + constructor(usr2dev: java.awt.geom.AffineTransform, aoi: java.awt.Shape, hints: java.awt.RenderingHints) + /** + * Constructs a RenderContext with a given transform. + * The area of interest is taken to be the entire renderable area. + * No rendering hints are used. + */ + // @ts-ignore + constructor(usr2dev: java.awt.geom.AffineTransform) + /** + * Constructs a RenderContext with a given transform and rendering hints. + * The area of interest is taken to be the entire renderable area. + */ + // @ts-ignore + constructor(usr2dev: java.awt.geom.AffineTransform, hints: java.awt.RenderingHints) + /** + * Constructs a RenderContext with a given transform and area of interest. + * The area of interest is supplied as a Shape. + * No rendering hints are used. + */ + // @ts-ignore + constructor(usr2dev: java.awt.geom.AffineTransform, aoi: java.awt.Shape) + /** + * Gets the rendering hints of this RenderContext. + */ + // @ts-ignore + public getRenderingHints(): java.awt.RenderingHints; + /** + * Sets the rendering hints of this RenderContext. + */ + // @ts-ignore + public setRenderingHints(hints: java.awt.RenderingHints): void; + /** + * Sets the current user-to-device AffineTransform contained + * in the RenderContext to a given transform. + */ + // @ts-ignore + public setTransform(newTransform: java.awt.geom.AffineTransform): void; + /** + * Modifies the current user-to-device transform by prepending another + * transform. In matrix notation the operation is: + *

+                     * [this] = [modTransform] x [this]
+                     * 
+ */ + // @ts-ignore + public preConcatenateTransform(modTransform: java.awt.geom.AffineTransform): void; + /** + * Modifies the current user-to-device transform by prepending another + * transform. In matrix notation the operation is: + *
+                     * [this] = [modTransform] x [this]
+                     * 
+ * This method does the same thing as the preConcatenateTransform + * method. It is here for backward compatibility with previous releases + * which misspelled the method name. + */ + // @ts-ignore + public preConcetenateTransform(modTransform: java.awt.geom.AffineTransform): void; + /** + * Modifies the current user-to-device transform by appending another + * transform. In matrix notation the operation is: + *
+                     * [this] = [this] x [modTransform]
+                     * 
+ */ + // @ts-ignore + public concatenateTransform(modTransform: java.awt.geom.AffineTransform): void; + /** + * Modifies the current user-to-device transform by appending another + * transform. In matrix notation the operation is: + *
+                     * [this] = [this] x [modTransform]
+                     * 
+ * This method does the same thing as the concatenateTransform + * method. It is here for backward compatibility with previous releases + * which misspelled the method name. + */ + // @ts-ignore + public concetenateTransform(modTransform: java.awt.geom.AffineTransform): void; + /** + * Gets the current user-to-device AffineTransform. + */ + // @ts-ignore + public getTransform(): java.awt.geom.AffineTransform; + /** + * Sets the current area of interest. The old area is discarded. + */ + // @ts-ignore + public setAreaOfInterest(newAoi: java.awt.Shape): void; + /** + * Gets the ares of interest currently contained in the + * RenderContext. + */ + // @ts-ignore + public getAreaOfInterest(): java.awt.Shape; + /** + * Makes a copy of a RenderContext. The area of interest is copied + * by reference. The usr2dev AffineTransform and hints are cloned, + * while the area of interest is copied by reference. + */ + // @ts-ignore + public clone(): java.lang.Object; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.renderable.RenderableImage.d.ts b/packages/types/dist/typings/jdk/java.awt.image.renderable.RenderableImage.d.ts new file mode 100644 index 00000000..160383b0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.renderable.RenderableImage.d.ts @@ -0,0 +1,109 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + namespace renderable { + // @ts-ignore + interface RenderableImage { + // @ts-ignore + HINTS_OBSERVED: string; + /** + * Returns a vector of RenderableImages that are the sources of + * image data for this RenderableImage. Note that this method may + * return an empty vector, to indicate that the image has no sources, + * or null, to indicate that no information is available. + */ + // @ts-ignore + getSources(): java.util.Vector; + /** + * Gets a property from the property set of this image. + * If the property name is not recognized, java.awt.Image.UndefinedProperty + * will be returned. + */ + // @ts-ignore + getProperty(name: string): java.lang.Object; + /** + * Returns a list of names recognized by getProperty. + */ + // @ts-ignore + getPropertyNames(): java.lang.String[]; + /** + * Returns true if successive renderings (that is, calls to + * createRendering() or createScaledRendering()) with the same arguments + * may produce different results. This method may be used to + * determine whether an existing rendering may be cached and + * reused. It is always safe to return true. + */ + // @ts-ignore + isDynamic(): boolean; + /** + * Gets the width in user coordinate space. By convention, the + * usual width of a RenderableImage is equal to the image's aspect + * ratio (width divided by height). + */ + // @ts-ignore + getWidth(): number; + /** + * Gets the height in user coordinate space. By convention, the + * usual height of a RenderedImage is equal to 1.0F. + */ + // @ts-ignore + getHeight(): number; + /** + * Gets the minimum X coordinate of the rendering-independent image data. + */ + // @ts-ignore + getMinX(): number; + /** + * Gets the minimum Y coordinate of the rendering-independent image data. + */ + // @ts-ignore + getMinY(): number; + /** + * Creates a RenderedImage instance of this image with width w, and + * height h in pixels. The RenderContext is built automatically + * with an appropriate usr2dev transform and an area of interest + * of the full image. All the rendering hints come from hints + * passed in. + *

If w == 0, it will be taken to equal + * Math.round(h*(getWidth()/getHeight())). + * Similarly, if h == 0, it will be taken to equal + * Math.round(w*(getHeight()/getWidth())). One of + * w or h must be non-zero or else an IllegalArgumentException + * will be thrown. + *

The created RenderedImage may have a property identified + * by the String HINTS_OBSERVED to indicate which RenderingHints + * were used to create the image. In addition any RenderedImages + * that are obtained via the getSources() method on the created + * RenderedImage may have such a property. + */ + // @ts-ignore + createScaledRendering(w: number, h: number, hints: java.awt.RenderingHints): java.awt.image.RenderedImage; + /** + * Returnd a RenderedImage instance of this image with a default + * width and height in pixels. The RenderContext is built + * automatically with an appropriate usr2dev transform and an area + * of interest of the full image. The rendering hints are + * empty. createDefaultRendering may make use of a stored + * rendering for speed. + */ + // @ts-ignore + createDefaultRendering(): java.awt.image.RenderedImage; + /** + * Creates a RenderedImage that represented a rendering of this image + * using a given RenderContext. This is the most general way to obtain a + * rendering of a RenderableImage. + *

The created RenderedImage may have a property identified + * by the String HINTS_OBSERVED to indicate which RenderingHints + * (from the RenderContext) were used to create the image. + * In addition any RenderedImages + * that are obtained via the getSources() method on the created + * RenderedImage may have such a property. + */ + // @ts-ignore + createRendering(renderContext: java.awt.image.renderable.RenderContext): java.awt.image.RenderedImage; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.renderable.RenderableImageOp.d.ts b/packages/types/dist/typings/jdk/java.awt.image.renderable.RenderableImageOp.d.ts new file mode 100644 index 00000000..1a29175f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.renderable.RenderableImageOp.d.ts @@ -0,0 +1,149 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + namespace renderable { + // @ts-ignore + class RenderableImageOp extends java.lang.Object { + /** + * Constructs a RenderedImageOp given a + * ContextualRenderedImageFactory object, and + * a ParameterBlock containing RenderableImage sources and other + * parameters. Any RenderedImage sources referenced by the + * ParameterBlock will be ignored. + */ + // @ts-ignore + constructor(CRIF: java.awt.image.renderable.ContextualRenderedImageFactory, paramBlock: java.awt.image.renderable.ParameterBlock) + /** + * Returns a vector of RenderableImages that are the sources of + * image data for this RenderableImage. Note that this method may + * return an empty vector, to indicate that the image has no sources, + * or null, to indicate that no information is available. + */ + // @ts-ignore + public getSources(): java.util.Vector; + /** + * Gets a property from the property set of this image. + * If the property name is not recognized, java.awt.Image.UndefinedProperty + * will be returned. + */ + // @ts-ignore + public getProperty(name: string): java.lang.Object; + /** + * Return a list of names recognized by getProperty. + */ + // @ts-ignore + public getPropertyNames(): java.lang.String[]; + /** + * Returns true if successive renderings (that is, calls to + * createRendering() or createScaledRendering()) with the same arguments + * may produce different results. This method may be used to + * determine whether an existing rendering may be cached and + * reused. The CRIF's isDynamic method will be called. + */ + // @ts-ignore + public isDynamic(): boolean; + /** + * Gets the width in user coordinate space. By convention, the + * usual width of a RenderableImage is equal to the image's aspect + * ratio (width divided by height). + */ + // @ts-ignore + public getWidth(): number; + /** + * Gets the height in user coordinate space. By convention, the + * usual height of a RenderedImage is equal to 1.0F. + */ + // @ts-ignore + public getHeight(): number; + /** + * Gets the minimum X coordinate of the rendering-independent image data. + */ + // @ts-ignore + public getMinX(): number; + /** + * Gets the minimum Y coordinate of the rendering-independent image data. + */ + // @ts-ignore + public getMinY(): number; + /** + * Change the current ParameterBlock of the operation, allowing + * editing of image rendering chains. The effects of such a + * change will be visible when a new rendering is created from + * this RenderableImageOp or any dependent RenderableImageOp. + */ + // @ts-ignore + public setParameterBlock(paramBlock: java.awt.image.renderable.ParameterBlock): java.awt.image.renderable.ParameterBlock; + /** + * Returns a reference to the current parameter block. + */ + // @ts-ignore + public getParameterBlock(): java.awt.image.renderable.ParameterBlock; + /** + * Creates a RenderedImage instance of this image with width w, and + * height h in pixels. The RenderContext is built automatically + * with an appropriate usr2dev transform and an area of interest + * of the full image. All the rendering hints come from hints + * passed in. + *

If w == 0, it will be taken to equal + * Math.round(h*(getWidth()/getHeight())). + * Similarly, if h == 0, it will be taken to equal + * Math.round(w*(getHeight()/getWidth())). One of + * w or h must be non-zero or else an IllegalArgumentException + * will be thrown. + *

The created RenderedImage may have a property identified + * by the String HINTS_OBSERVED to indicate which RenderingHints + * were used to create the image. In addition any RenderedImages + * that are obtained via the getSources() method on the created + * RenderedImage may have such a property. + */ + // @ts-ignore + public createScaledRendering(w: number, h: number, hints: java.awt.RenderingHints): java.awt.image.RenderedImage; + /** + * Gets a RenderedImage instance of this image with a default + * width and height in pixels. The RenderContext is built + * automatically with an appropriate usr2dev transform and an area + * of interest of the full image. All the rendering hints come + * from hints passed in. Implementors of this interface must be + * sure that there is a defined default width and height. + */ + // @ts-ignore + public createDefaultRendering(): java.awt.image.RenderedImage; + /** + * Creates a RenderedImage which represents this + * RenderableImageOp (including its Renderable sources) rendered + * according to the given RenderContext. + *

This method supports chaining of either Renderable or + * RenderedImage operations. If sources in + * the ParameterBlock used to construct the RenderableImageOp are + * RenderableImages, then a three step process is followed: + *

    + *
  1. mapRenderContext() is called on the associated CRIF for + * each RenderableImage source; + *
  2. createRendering() is called on each of the RenderableImage sources + * using the backwards-mapped RenderContexts obtained in step 1, + * resulting in a rendering of each source; + *
  3. ContextualRenderedImageFactory.create() is called + * with a new ParameterBlock containing the parameters of + * the RenderableImageOp and the RenderedImages that were created by the + * createRendering() calls. + *
+ *

If the elements of the source Vector of + * the ParameterBlock used to construct the RenderableImageOp are + * instances of RenderedImage, then the CRIF.create() method is + * called immediately using the original ParameterBlock. + * This provides a basis case for the recursion. + *

The created RenderedImage may have a property identified + * by the String HINTS_OBSERVED to indicate which RenderingHints + * (from the RenderContext) were used to create the image. + * In addition any RenderedImages + * that are obtained via the getSources() method on the created + * RenderedImage may have such a property. + */ + // @ts-ignore + public createRendering(renderContext: java.awt.image.renderable.RenderContext): java.awt.image.RenderedImage; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.renderable.RenderableImageProducer.d.ts b/packages/types/dist/typings/jdk/java.awt.image.renderable.RenderableImageProducer.d.ts new file mode 100644 index 00000000..9c683099 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.renderable.RenderableImageProducer.d.ts @@ -0,0 +1,61 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + namespace renderable { + // @ts-ignore + class RenderableImageProducer extends java.lang.Object { + /** + * Constructs a new RenderableImageProducer from a RenderableImage + * and a RenderContext. + */ + // @ts-ignore + constructor(rdblImage: java.awt.image.renderable.RenderableImage, rc: java.awt.image.renderable.RenderContext) + /** + * Sets a new RenderContext to use for the next startProduction() call. + */ + // @ts-ignore + public setRenderContext(rc: java.awt.image.renderable.RenderContext): void; + /** + * Adds an ImageConsumer to the list of consumers interested in + * data for this image. + */ + // @ts-ignore + public addConsumer(ic: java.awt.image.ImageConsumer): void; + /** + * Determine if an ImageConsumer is on the list of consumers + * currently interested in data for this image. + */ + // @ts-ignore + public isConsumer(ic: java.awt.image.ImageConsumer): boolean; + /** + * Remove an ImageConsumer from the list of consumers interested in + * data for this image. + */ + // @ts-ignore + public removeConsumer(ic: java.awt.image.ImageConsumer): void; + /** + * Adds an ImageConsumer to the list of consumers interested in + * data for this image, and immediately starts delivery of the + * image data through the ImageConsumer interface. + */ + // @ts-ignore + public startProduction(ic: java.awt.image.ImageConsumer): void; + /** + * Requests that a given ImageConsumer have the image data delivered + * one more time in top-down, left-right order. + */ + // @ts-ignore + public requestTopDownLeftRightResend(ic: java.awt.image.ImageConsumer): void; + /** + * The runnable method for this class. This will produce an image using + * the current RenderableImage and RenderContext and send it to all the + * ImageConsumer currently registered with this class. + */ + // @ts-ignore + public run(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.image.renderable.RenderedImageFactory.d.ts b/packages/types/dist/typings/jdk/java.awt.image.renderable.RenderedImageFactory.d.ts new file mode 100644 index 00000000..b7080121 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.image.renderable.RenderedImageFactory.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace image { + namespace renderable { + // @ts-ignore + interface RenderedImageFactory { + /** + * Creates a RenderedImage representing the results of an imaging + * operation (or chain of operations) for a given ParameterBlock and + * RenderingHints. The RIF may also query any source images + * referenced by the ParameterBlock for their dimensions, + * SampleModels, properties, etc., as necessary. + *

The create() method can return null if the + * RenderedImageFactory is not capable of producing output for the + * given set of source images and parameters. For example, if a + * RenderedImageFactory is only capable of performing a 3x3 + * convolution on single-banded image data, and the source image has + * multiple bands or the convolution Kernel is 5x5, null should be + * returned. + *

Hints should be taken into account, but can be ignored. + * The created RenderedImage may have a property identified + * by the String HINTS_OBSERVED to indicate which RenderingHints + * were used to create the image. In addition any RenderedImages + * that are obtained via the getSources() method on the created + * RenderedImage may have such a property. + */ + // @ts-ignore + create(paramBlock: java.awt.image.renderable.ParameterBlock, hints: java.awt.RenderingHints): java.awt.image.RenderedImage; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.peer.ButtonPeer.d.ts b/packages/types/dist/typings/jdk/java.awt.peer.ButtonPeer.d.ts new file mode 100644 index 00000000..345a6f89 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.peer.ButtonPeer.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace peer { + // @ts-ignore + interface ButtonPeer { + /** + * Sets the label that is displayed on the button. Can be {@code null} + * when the button should not display a label. + */ + // @ts-ignore + setLabel(label: string): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.peer.CanvasPeer.d.ts b/packages/types/dist/typings/jdk/java.awt.peer.CanvasPeer.d.ts new file mode 100644 index 00000000..b3557540 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.peer.CanvasPeer.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace peer { + // @ts-ignore + interface CanvasPeer { + /** + * Requests a GC that best suits this Canvas. The returned GC may differ + * from the requested GC passed as the argument to this method. This method + * must return a non-null value (given the argument is non-null as well). + */ + // @ts-ignore + getAppropriateGraphicsConfiguration(gc: java.awt.GraphicsConfiguration): java.awt.GraphicsConfiguration; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.peer.CheckboxMenuItemPeer.d.ts b/packages/types/dist/typings/jdk/java.awt.peer.CheckboxMenuItemPeer.d.ts new file mode 100644 index 00000000..82192e51 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.peer.CheckboxMenuItemPeer.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace peer { + // @ts-ignore + interface CheckboxMenuItemPeer { + /** + * Sets the state of the checkbox to be checked {@code true} or + * unchecked {@code false}. + */ + // @ts-ignore + setState(state: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.peer.CheckboxPeer.d.ts b/packages/types/dist/typings/jdk/java.awt.peer.CheckboxPeer.d.ts new file mode 100644 index 00000000..a8afae1a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.peer.CheckboxPeer.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace peer { + // @ts-ignore + interface CheckboxPeer { + /** + * Sets the state of the checkbox to be checked {@code true} or + * unchecked {@code false}. + */ + // @ts-ignore + setState(state: boolean): void; + /** + * Sets the checkbox group for this checkbox. Checkboxes in one checkbox + * group can only be selected exclusively (like radio buttons). A value + * of {@code null} removes this checkbox from any checkbox group. + */ + // @ts-ignore + setCheckboxGroup(g: java.awt.CheckboxGroup): void; + /** + * Sets the label that should be displayed on the checkbox. A value of + * {@code null} means that no label should be displayed. + */ + // @ts-ignore + setLabel(label: string): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.peer.ChoicePeer.d.ts b/packages/types/dist/typings/jdk/java.awt.peer.ChoicePeer.d.ts new file mode 100644 index 00000000..9378b1fe --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.peer.ChoicePeer.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace peer { + // @ts-ignore + interface ChoicePeer { + /** + * Adds an item with the string {@code item} to the combo box list + * at index {@code index}. + */ + // @ts-ignore + add(item: string, index: number): void; + /** + * Removes the item at index {@code index} from the combo box list. + */ + // @ts-ignore + remove(index: number): void; + /** + * Removes all items from the combo box list. + */ + // @ts-ignore + removeAll(): void; + /** + * Selects the item at index {@code index}. + */ + // @ts-ignore + select(index: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.peer.ComponentPeer.d.ts b/packages/types/dist/typings/jdk/java.awt.peer.ComponentPeer.d.ts new file mode 100644 index 00000000..dce3826f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.peer.ComponentPeer.d.ts @@ -0,0 +1,254 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace peer { + // @ts-ignore + interface ComponentPeer { + // @ts-ignore + SET_LOCATION: number; + // @ts-ignore + SET_SIZE: number; + // @ts-ignore + SET_BOUNDS: number; + // @ts-ignore + SET_CLIENT_SIZE: number; + // @ts-ignore + RESET_OPERATION: number; + // @ts-ignore + NO_EMBEDDED_CHECK: number; + // @ts-ignore + DEFAULT_OPERATION: number; + /** + * Determines if a component has been obscured, i.e. by an overlapping + * window or similar. This is used by JViewport for optimizing performance. + * This doesn't have to be implemented, when + * {@link #canDetermineObscurity()} returns {@code false}. + */ + // @ts-ignore + isObscured(): boolean; + /** + * Returns {@code true} when the peer can determine if a component + * has been obscured, {@code false} false otherwise. + */ + // @ts-ignore + canDetermineObscurity(): boolean; + /** + * Makes a component visible or invisible. + */ + // @ts-ignore + setVisible(v: boolean): void; + /** + * Enables or disables a component. Disabled components are usually grayed + * out and cannot be activated. + */ + // @ts-ignore + setEnabled(e: boolean): void; + /** + * Paints the component to the specified graphics context. This is called + * by {@link Component#paintAll(Graphics)} to paint the component. + */ + // @ts-ignore + paint(g: java.awt.Graphics): void; + /** + * Prints the component to the specified graphics context. This is called + * by {@link Component#printAll(Graphics)} to print the component. + */ + // @ts-ignore + print(g: java.awt.Graphics): void; + /** + * Sets the location or size or both of the component. The location is + * specified relative to the component's parent. The {@code op} + * parameter specifies which properties change. If it is + * {@link #SET_LOCATION}, then only the location changes (and the size + * parameters can be ignored). If {@code op} is {@link #SET_SIZE}, + * then only the size changes (and the location can be ignored). If + * {@code op} is {@link #SET_BOUNDS}, then both change. There is a + * special value {@link #SET_CLIENT_SIZE}, which is used only for + * window-like components to set the size of the client (i.e. the 'inner' + * size, without the insets of the window borders). + */ + // @ts-ignore + setBounds(x: number, y: number, width: number, height: number, op: number): void; + /** + * Called to let the component peer handle events. + */ + // @ts-ignore + handleEvent(e: java.awt.AWTEvent): void; + /** + * Called to coalesce paint events. + */ + // @ts-ignore + coalescePaintEvent(e: java.awt.event.PaintEvent): void; + /** + * Determines the location of the component on the screen. + */ + // @ts-ignore + getLocationOnScreen(): java.awt.Point; + /** + * Determines the preferred size of the component. + */ + // @ts-ignore + getPreferredSize(): java.awt.Dimension; + /** + * Determines the minimum size of the component. + */ + // @ts-ignore + getMinimumSize(): java.awt.Dimension; + /** + * Returns the color model used by the component. + */ + // @ts-ignore + getColorModel(): java.awt.image.ColorModel; + /** + * Returns a graphics object to paint on the component. + */ + // @ts-ignore + getGraphics(): java.awt.Graphics; + /** + * Returns a font metrics object to determine the metrics properties of + * the specified font. + */ + // @ts-ignore + getFontMetrics(font: java.awt.Font): java.awt.FontMetrics; + /** + * Disposes all resources held by the component peer. This is called + * when the component has been disconnected from the component hierarchy + * and is about to be garbage collected. + */ + // @ts-ignore + dispose(): void; + /** + * Sets the foreground color of this component. + */ + // @ts-ignore + setForeground(c: java.awt.Color): void; + /** + * Sets the background color of this component. + */ + // @ts-ignore + setBackground(c: java.awt.Color): void; + /** + * Sets the font of this component. + */ + // @ts-ignore + setFont(f: java.awt.Font): void; + /** + * Updates the cursor of the component. + */ + // @ts-ignore + updateCursorImmediately(): void; + /** + * Requests focus on this component. + */ + // @ts-ignore + requestFocus(lightweightChild: java.awt.Component, temporary: boolean, focusedWindowChangeAllowed: boolean, time: number, cause: any /*sun.awt.CausedFocusEvent.Cause*/): boolean; + /** + * Returns {@code true} when the component takes part in the focus + * traversal, {@code false} otherwise. + */ + // @ts-ignore + isFocusable(): boolean; + /** + * Creates an image using the specified image producer. + */ + // @ts-ignore + createImage(producer: java.awt.image.ImageProducer): java.awt.Image; + /** + * Creates an empty image with the specified width and height. This is + * generally used as a non-accelerated backbuffer for drawing onto the + * component (e.g. by Swing). + */ + // @ts-ignore + createImage(width: number, height: number): java.awt.Image; + /** + * Creates an empty volatile image with the specified width and height. + * This is generally used as an accelerated backbuffer for drawing onto + * the component (e.g. by Swing). + */ + // @ts-ignore + createVolatileImage(width: number, height: number): java.awt.image.VolatileImage; + /** + * Prepare the specified image for rendering on this component. This should + * start loading the image (if not already loaded) and create an + * appropriate screen representation. + */ + // @ts-ignore + prepareImage(img: java.awt.Image, w: number, h: number, o: java.awt.image.ImageObserver): boolean; + /** + * Determines the status of the construction of the screen representaion + * of the specified image. + */ + // @ts-ignore + checkImage(img: java.awt.Image, w: number, h: number, o: java.awt.image.ImageObserver): number; + /** + * Returns the graphics configuration that corresponds to this component. + */ + // @ts-ignore + getGraphicsConfiguration(): java.awt.GraphicsConfiguration; + /** + * Determines if the component handles wheel scrolling itself. Otherwise + * it is delegated to the component's parent. + */ + // @ts-ignore + handlesWheelScrolling(): boolean; + /** + * Create {@code numBuffers} flipping buffers with the specified + * buffer capabilities. + */ + // @ts-ignore + createBuffers(numBuffers: number, caps: java.awt.BufferCapabilities): void; + /** + * Returns the back buffer as image. + */ + // @ts-ignore + getBackBuffer(): java.awt.Image; + /** + * Move the back buffer to the front buffer. + */ + // @ts-ignore + flip(x1: number, y1: number, x2: number, y2: number, flipAction: java.awt.BufferCapabilities.FlipContents): void; + /** + * Destroys all created buffers. + */ + // @ts-ignore + destroyBuffers(): void; + /** + * Reparents this peer to the new parent referenced by + * {@code newContainer} peer. Implementation depends on toolkit and + * container. + */ + // @ts-ignore + reparent(newContainer: java.awt.peer.ContainerPeer): void; + /** + * Returns whether this peer supports reparenting to another parent without + * destroying the peer. + */ + // @ts-ignore + isReparentSupported(): boolean; + /** + * Used by lightweight implementations to tell a ComponentPeer to layout + * its sub-elements. For instance, a lightweight Checkbox needs to layout + * the box, as well as the text label. + */ + // @ts-ignore + layout(): void; + /** + * Applies the shape to the native component window. + */ + // @ts-ignore + applyShape(shape: any /*sun.java2d.pipe.Region*/): void; + /** + * Lowers this component at the bottom of the above HW peer. If the above parameter + * is null then the method places this component at the top of the Z-order. + */ + // @ts-ignore + setZOrder(above: java.awt.peer.ComponentPeer): void; + /** + * Updates internal data structures related to the component's GC. + */ + // @ts-ignore + updateGraphicsData(gc: java.awt.GraphicsConfiguration): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.peer.ContainerPeer.d.ts b/packages/types/dist/typings/jdk/java.awt.peer.ContainerPeer.d.ts new file mode 100644 index 00000000..4c048be1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.peer.ContainerPeer.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace peer { + // @ts-ignore + interface ContainerPeer { + /** + * Returns the insets of this container. Insets usually is the space that + * is occupied by things like borders. + */ + // @ts-ignore + getInsets(): java.awt.Insets; + /** + * Notifies the peer that validation of the component tree is about to + * begin. + */ + // @ts-ignore + beginValidate(): void; + /** + * Notifies the peer that validation of the component tree is finished. + */ + // @ts-ignore + endValidate(): void; + /** + * Notifies the peer that layout is about to begin. This is called + * before the container itself and its children are laid out. + */ + // @ts-ignore + beginLayout(): void; + /** + * Notifies the peer that layout is finished. This is called after the + * container and its children have been laid out. + */ + // @ts-ignore + endLayout(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.peer.DesktopPeer.d.ts b/packages/types/dist/typings/jdk/java.awt.peer.DesktopPeer.d.ts new file mode 100644 index 00000000..50c994b3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.peer.DesktopPeer.d.ts @@ -0,0 +1,47 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace peer { + // @ts-ignore + interface DesktopPeer { + /** + * Returns whether the given action is supported on the current platform. + */ + // @ts-ignore + isSupported(action: java.awt.Desktop.Action): boolean; + /** + * Launches the associated application to open the given file. The + * associated application is registered to be the default file viewer for + * the file type of the given file. + */ + // @ts-ignore + open(file: java.io.File): void; + /** + * Launches the associated editor and opens the given file for editing. The + * associated editor is registered to be the default editor for the file + * type of the given file. + */ + // @ts-ignore + edit(file: java.io.File): void; + /** + * Prints the given file with the native desktop printing facility, using + * the associated application's print command. + */ + // @ts-ignore + print(file: java.io.File): void; + /** + * Launches the mail composing window of the user default mail client, + * filling the message fields including to, cc, etc, with the values + * specified by the given mailto URL. + */ + // @ts-ignore + mail(mailtoURL: java.net.URI): void; + /** + * Launches the user default browser to display the given URI. + */ + // @ts-ignore + browse(uri: java.net.URI): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.peer.DialogPeer.d.ts b/packages/types/dist/typings/jdk/java.awt.peer.DialogPeer.d.ts new file mode 100644 index 00000000..66dbabe5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.peer.DialogPeer.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace peer { + // @ts-ignore + interface DialogPeer { + /** + * Sets the title on the dialog window. + */ + // @ts-ignore + setTitle(title: string): void; + /** + * Sets if the dialog should be resizable or not. + */ + // @ts-ignore + setResizable(resizeable: boolean): void; + /** + * Block the specified windows. This is used for modal dialogs. + */ + // @ts-ignore + blockWindows(windows: java.util.List): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.peer.FileDialogPeer.d.ts b/packages/types/dist/typings/jdk/java.awt.peer.FileDialogPeer.d.ts new file mode 100644 index 00000000..5249aa7e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.peer.FileDialogPeer.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace peer { + // @ts-ignore + interface FileDialogPeer { + /** + * Sets the selected file for this file dialog. + */ + // @ts-ignore + setFile(file: string): void; + /** + * Sets the current directory for this file dialog. + */ + // @ts-ignore + setDirectory(dir: string): void; + /** + * Sets the filename filter for filtering the displayed files. + */ + // @ts-ignore + setFilenameFilter(filter: java.io.FilenameFilter): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.peer.FontPeer.d.ts b/packages/types/dist/typings/jdk/java.awt.peer.FontPeer.d.ts new file mode 100644 index 00000000..5d8564a9 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.peer.FontPeer.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace peer { + // @ts-ignore + interface FontPeer { + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.peer.FramePeer.d.ts b/packages/types/dist/typings/jdk/java.awt.peer.FramePeer.d.ts new file mode 100644 index 00000000..9208a793 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.peer.FramePeer.d.ts @@ -0,0 +1,59 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace peer { + // @ts-ignore + interface FramePeer { + /** + * Sets the title on the frame. + */ + // @ts-ignore + setTitle(title: string): void; + /** + * Sets the menu bar for the frame. + */ + // @ts-ignore + setMenuBar(mb: java.awt.MenuBar): void; + /** + * Sets if the frame should be resizable or not. + */ + // @ts-ignore + setResizable(resizeable: boolean): void; + /** + * Changes the state of the frame. + */ + // @ts-ignore + setState(state: number): void; + /** + * Returns the current state of the frame. + */ + // @ts-ignore + getState(): number; + /** + * Sets the bounds of the frame when it becomes maximized. + */ + // @ts-ignore + setMaximizedBounds(bounds: java.awt.Rectangle): void; + /** + * Sets the size and location for embedded frames. (On embedded frames, + * setLocation() and setBounds() always set the frame to (0,0) for + * backwards compatibility. + */ + // @ts-ignore + setBoundsPrivate(x: number, y: number, width: number, height: number): void; + /** + * Returns the size and location for embedded frames. (On embedded frames, + * setLocation() and setBounds() always set the frame to (0,0) for + * backwards compatibility. + */ + // @ts-ignore + getBoundsPrivate(): java.awt.Rectangle; + /** + * Requests the peer to emulate window activation. + */ + // @ts-ignore + emulateActivation(activate: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.peer.KeyboardFocusManagerPeer.d.ts b/packages/types/dist/typings/jdk/java.awt.peer.KeyboardFocusManagerPeer.d.ts new file mode 100644 index 00000000..7c00336b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.peer.KeyboardFocusManagerPeer.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace peer { + // @ts-ignore + interface KeyboardFocusManagerPeer { + /** + * Sets the window that should become the focused window. + */ + // @ts-ignore + setCurrentFocusedWindow(win: java.awt.Window): void; + /** + * Returns the currently focused window. + */ + // @ts-ignore + getCurrentFocusedWindow(): java.awt.Window; + /** + * Sets the component that should become the focus owner. + */ + // @ts-ignore + setCurrentFocusOwner(comp: java.awt.Component): void; + /** + * Returns the component that currently owns the input focus. + */ + // @ts-ignore + getCurrentFocusOwner(): java.awt.Component; + /** + * Clears the current global focus owner. + */ + // @ts-ignore + clearGlobalFocusOwner(activeWindow: java.awt.Window): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.peer.LabelPeer.d.ts b/packages/types/dist/typings/jdk/java.awt.peer.LabelPeer.d.ts new file mode 100644 index 00000000..665f5b58 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.peer.LabelPeer.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace peer { + // @ts-ignore + interface LabelPeer { + /** + * Sets the text to be displayed on the label. + */ + // @ts-ignore + setText(label: string): void; + /** + * Sets the alignment of the label text. + */ + // @ts-ignore + setAlignment(alignment: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.peer.LightweightPeer.d.ts b/packages/types/dist/typings/jdk/java.awt.peer.LightweightPeer.d.ts new file mode 100644 index 00000000..0af67e9f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.peer.LightweightPeer.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace peer { + // @ts-ignore + interface LightweightPeer { + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.peer.ListPeer.d.ts b/packages/types/dist/typings/jdk/java.awt.peer.ListPeer.d.ts new file mode 100644 index 00000000..e1a2241f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.peer.ListPeer.d.ts @@ -0,0 +1,64 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace peer { + // @ts-ignore + interface ListPeer { + /** + * Returns the indices of the list items that are currently selected. + * The returned array is not required to be a copy, the callers of this + * method already make sure it is not modified. + */ + // @ts-ignore + getSelectedIndexes(): number[]; + /** + * Adds an item to the list at the specified index. + */ + // @ts-ignore + add(item: string, index: number): void; + /** + * Deletes items from the list. All items from start to end should are + * deleted, including the item at the start and end indices. + */ + // @ts-ignore + delItems(start: number, end: number): void; + /** + * Removes all items from the list. + */ + // @ts-ignore + removeAll(): void; + /** + * Selects the item at the specified {@code index}. + */ + // @ts-ignore + select(index: number): void; + /** + * De-selects the item at the specified {@code index}. + */ + // @ts-ignore + deselect(index: number): void; + /** + * Makes sure that the item at the specified {@code index} is visible, + * by scrolling the list or similar. + */ + // @ts-ignore + makeVisible(index: number): void; + /** + * Toggles multiple selection mode on or off. + */ + // @ts-ignore + setMultipleMode(m: boolean): void; + /** + * Returns the preferred size for a list with the specified number of rows. + */ + // @ts-ignore + getPreferredSize(rows: number): java.awt.Dimension; + /** + * Returns the minimum size for a list with the specified number of rows. + */ + // @ts-ignore + getMinimumSize(rows: number): java.awt.Dimension; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.peer.MenuBarPeer.d.ts b/packages/types/dist/typings/jdk/java.awt.peer.MenuBarPeer.d.ts new file mode 100644 index 00000000..d0189854 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.peer.MenuBarPeer.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace peer { + // @ts-ignore + interface MenuBarPeer { + /** + * Adds a menu to the menu bar. + */ + // @ts-ignore + addMenu(m: java.awt.Menu): void; + /** + * Deletes a menu from the menu bar. + */ + // @ts-ignore + delMenu(index: number): void; + /** + * Adds a help menu to the menu bar. + */ + // @ts-ignore + addHelpMenu(m: java.awt.Menu): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.peer.MenuComponentPeer.d.ts b/packages/types/dist/typings/jdk/java.awt.peer.MenuComponentPeer.d.ts new file mode 100644 index 00000000..81b9189b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.peer.MenuComponentPeer.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace peer { + // @ts-ignore + interface MenuComponentPeer { + /** + * Disposes the menu component. + */ + // @ts-ignore + dispose(): void; + /** + * Sets the font for the menu component. + */ + // @ts-ignore + setFont(f: java.awt.Font): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.peer.MenuItemPeer.d.ts b/packages/types/dist/typings/jdk/java.awt.peer.MenuItemPeer.d.ts new file mode 100644 index 00000000..1a8fe98f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.peer.MenuItemPeer.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace peer { + // @ts-ignore + interface MenuItemPeer { + /** + * Sets the label to be displayed in this menu item. + */ + // @ts-ignore + setLabel(label: string): void; + /** + * Enables or disables the menu item. + */ + // @ts-ignore + setEnabled(e: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.peer.MenuPeer.d.ts b/packages/types/dist/typings/jdk/java.awt.peer.MenuPeer.d.ts new file mode 100644 index 00000000..c2fecbd4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.peer.MenuPeer.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace peer { + // @ts-ignore + interface MenuPeer { + /** + * Adds a separator (e.g. a horizontal line or similar) to the menu. + */ + // @ts-ignore + addSeparator(): void; + /** + * Adds the specified menu item to the menu. + */ + // @ts-ignore + addItem(item: java.awt.MenuItem): void; + /** + * Removes the menu item at the specified index. + */ + // @ts-ignore + delItem(index: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.peer.MouseInfoPeer.d.ts b/packages/types/dist/typings/jdk/java.awt.peer.MouseInfoPeer.d.ts new file mode 100644 index 00000000..137074a6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.peer.MouseInfoPeer.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace peer { + // @ts-ignore + interface MouseInfoPeer { + /** + * This method does two things: it fills the point fields with + * the current coordinates of the mouse cursor and returns the + * number of the screen device where the pointer is located. + * The number of the screen device is only returned for independent + * devices (which are not parts of a virtual screen device). + * For virtual screen devices, 0 is returned. + * Mouse coordinates are also calculated depending on whether + * or not the screen device is virtual. For virtual screen + * devices, pointer coordinates are calculated in the virtual + * coordinate system. Otherwise, coordinates are calculated in + * the coordinate system of the screen device where the pointer + * is located. + * See java.awt.GraphicsConfiguration documentation for more + * details about virtual screen devices. + */ + // @ts-ignore + fillPointWithCoords(point: java.awt.Point): number; + /** + * Returns whether or not the window is located under the mouse + * pointer. The window is considered to be under the mouse pointer + * if it is showing on the screen, and the mouse pointer is above + * the part of the window that is not obscured by any other windows. + */ + // @ts-ignore + isWindowUnderMouse(w: java.awt.Window): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.peer.PanelPeer.d.ts b/packages/types/dist/typings/jdk/java.awt.peer.PanelPeer.d.ts new file mode 100644 index 00000000..6293682b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.peer.PanelPeer.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace peer { + // @ts-ignore + interface PanelPeer { + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.peer.PopupMenuPeer.d.ts b/packages/types/dist/typings/jdk/java.awt.peer.PopupMenuPeer.d.ts new file mode 100644 index 00000000..4cf4abbb --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.peer.PopupMenuPeer.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace peer { + // @ts-ignore + interface PopupMenuPeer { + /** + * Shows the popup menu. + */ + // @ts-ignore + show(e: java.awt.Event): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.peer.RobotPeer.d.ts b/packages/types/dist/typings/jdk/java.awt.peer.RobotPeer.d.ts new file mode 100644 index 00000000..da5d9ff7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.peer.RobotPeer.d.ts @@ -0,0 +1,55 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace peer { + // @ts-ignore + interface RobotPeer { + /** + * Moves the mouse pointer to the specified screen location. + */ + // @ts-ignore + mouseMove(x: number, y: number): void; + /** + * Simulates a mouse press with the specified button(s). + */ + // @ts-ignore + mousePress(buttons: number): void; + /** + * Simulates a mouse release with the specified button(s). + */ + // @ts-ignore + mouseRelease(buttons: number): void; + /** + * Simulates mouse wheel action. + */ + // @ts-ignore + mouseWheel(wheelAmt: number): void; + /** + * Simulates a key press of the specified key. + */ + // @ts-ignore + keyPress(keycode: number): void; + /** + * Simulates a key release of the specified key. + */ + // @ts-ignore + keyRelease(keycode: number): void; + /** + * Gets the RGB value of the specified pixel on screen. + */ + // @ts-ignore + getRGBPixel(x: number, y: number): number; + /** + * Gets the RGB values of the specified screen area as an array. + */ + // @ts-ignore + getRGBPixels(bounds: java.awt.Rectangle): number[]; + /** + * Disposes the robot peer when it is not needed anymore. + */ + // @ts-ignore + dispose(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.peer.ScrollPanePeer.d.ts b/packages/types/dist/typings/jdk/java.awt.peer.ScrollPanePeer.d.ts new file mode 100644 index 00000000..479a4785 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.peer.ScrollPanePeer.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace peer { + // @ts-ignore + interface ScrollPanePeer { + /** + * Returns the height of the horizontal scroll bar. + */ + // @ts-ignore + getHScrollbarHeight(): number; + /** + * Returns the width of the vertical scroll bar. + */ + // @ts-ignore + getVScrollbarWidth(): number; + /** + * Sets the scroll position of the child. + */ + // @ts-ignore + setScrollPosition(x: number, y: number): void; + /** + * Called when the child component changes its size. + */ + // @ts-ignore + childResized(w: number, h: number): void; + /** + * Sets the unit increment of one of the scroll pane's adjustables. + */ + // @ts-ignore + setUnitIncrement(adj: java.awt.Adjustable, u: number): void; + /** + * Sets the value for one of the scroll pane's adjustables. + */ + // @ts-ignore + setValue(adj: java.awt.Adjustable, v: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.peer.ScrollbarPeer.d.ts b/packages/types/dist/typings/jdk/java.awt.peer.ScrollbarPeer.d.ts new file mode 100644 index 00000000..09c42250 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.peer.ScrollbarPeer.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace peer { + // @ts-ignore + interface ScrollbarPeer { + /** + * Sets the parameters for the scrollbar. + */ + // @ts-ignore + setValues(value: number, visible: number, minimum: number, maximum: number): void; + /** + * Sets the line increment of the scrollbar. + */ + // @ts-ignore + setLineIncrement(l: number): void; + /** + * Sets the page increment of the scrollbar. + */ + // @ts-ignore + setPageIncrement(l: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.peer.SystemTrayPeer.d.ts b/packages/types/dist/typings/jdk/java.awt.peer.SystemTrayPeer.d.ts new file mode 100644 index 00000000..dd5f5f65 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.peer.SystemTrayPeer.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace peer { + // @ts-ignore + interface SystemTrayPeer { + /** + * Returns the size of the system tray icon. + */ + // @ts-ignore + getTrayIconSize(): java.awt.Dimension; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.peer.TextAreaPeer.d.ts b/packages/types/dist/typings/jdk/java.awt.peer.TextAreaPeer.d.ts new file mode 100644 index 00000000..4eb0e8f7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.peer.TextAreaPeer.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace peer { + // @ts-ignore + interface TextAreaPeer { + /** + * Inserts the specified text at the specified position in the document. + */ + // @ts-ignore + insert(text: string, pos: number): void; + /** + * Replaces a range of text by the specified string. + */ + // @ts-ignore + replaceRange(text: string, start: number, end: number): void; + /** + * Returns the preferred size of a textarea with the specified number of + * columns and rows. + */ + // @ts-ignore + getPreferredSize(rows: number, columns: number): java.awt.Dimension; + /** + * Returns the minimum size of a textarea with the specified number of + * columns and rows. + */ + // @ts-ignore + getMinimumSize(rows: number, columns: number): java.awt.Dimension; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.peer.TextComponentPeer.d.ts b/packages/types/dist/typings/jdk/java.awt.peer.TextComponentPeer.d.ts new file mode 100644 index 00000000..0037f205 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.peer.TextComponentPeer.d.ts @@ -0,0 +1,55 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace peer { + // @ts-ignore + interface TextComponentPeer { + /** + * Sets if the text component should be editable or not. + */ + // @ts-ignore + setEditable(editable: boolean): void; + /** + * Returns the current content of the text component. + */ + // @ts-ignore + getText(): string; + /** + * Sets the content for the text component. + */ + // @ts-ignore + setText(text: string): void; + /** + * Returns the start index of the current selection. + */ + // @ts-ignore + getSelectionStart(): number; + /** + * Returns the end index of the current selection. + */ + // @ts-ignore + getSelectionEnd(): number; + /** + * Selects an area of the text component. + */ + // @ts-ignore + select(selStart: number, selEnd: number): void; + /** + * Sets the caret position of the text component. + */ + // @ts-ignore + setCaretPosition(pos: number): void; + /** + * Returns the current caret position. + */ + // @ts-ignore + getCaretPosition(): number; + /** + * Returns the input method requests. + */ + // @ts-ignore + getInputMethodRequests(): java.awt.im.InputMethodRequests; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.peer.TextFieldPeer.d.ts b/packages/types/dist/typings/jdk/java.awt.peer.TextFieldPeer.d.ts new file mode 100644 index 00000000..9086812e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.peer.TextFieldPeer.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace peer { + // @ts-ignore + interface TextFieldPeer { + /** + * Sets the echo character. + */ + // @ts-ignore + setEchoChar(echoChar: string): void; + /** + * Returns the preferred size of the text field with the specified number + * of columns. + */ + // @ts-ignore + getPreferredSize(columns: number): java.awt.Dimension; + /** + * Returns the minimum size of the text field with the specified number + * of columns. + */ + // @ts-ignore + getMinimumSize(columns: number): java.awt.Dimension; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.peer.TrayIconPeer.d.ts b/packages/types/dist/typings/jdk/java.awt.peer.TrayIconPeer.d.ts new file mode 100644 index 00000000..fb878583 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.peer.TrayIconPeer.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace peer { + // @ts-ignore + interface TrayIconPeer { + /** + * Disposes the tray icon and releases and resources held by it. + */ + // @ts-ignore + dispose(): void; + /** + * Sets the tool tip for the tray icon. + */ + // @ts-ignore + setToolTip(tooltip: string): void; + /** + * Updates the icon image. This is supposed to display the current icon + * from the TrayIcon component in the actual tray icon. + */ + // @ts-ignore + updateImage(): void; + /** + * Displays a message at the tray icon. + */ + // @ts-ignore + displayMessage(caption: string, text: string, messageType: string): void; + /** + * Shows the popup menu of this tray icon at the specified position. + */ + // @ts-ignore + showPopupMenu(x: number, y: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.peer.WindowPeer.d.ts b/packages/types/dist/typings/jdk/java.awt.peer.WindowPeer.d.ts new file mode 100644 index 00000000..3774210f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.peer.WindowPeer.d.ts @@ -0,0 +1,67 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace peer { + // @ts-ignore + interface WindowPeer { + /** + * Makes this window the topmost window on the desktop. + */ + // @ts-ignore + toFront(): void; + /** + * Makes this window the bottommost window on the desktop. + */ + // @ts-ignore + toBack(): void; + /** + * Updates the window's always-on-top state. + * Sets if the window should always stay + * on top of all other windows or not. + */ + // @ts-ignore + updateAlwaysOnTopState(): void; + /** + * Updates the window's focusable state. + */ + // @ts-ignore + updateFocusableWindowState(): void; + /** + * Sets if this window is blocked by a modal dialog or not. + */ + // @ts-ignore + setModalBlocked(blocker: java.awt.Dialog, blocked: boolean): void; + /** + * Updates the minimum size on the peer. + */ + // @ts-ignore + updateMinimumSize(): void; + /** + * Updates the icons for the window. + */ + // @ts-ignore + updateIconImages(): void; + /** + * Sets the level of opacity for the window. + */ + // @ts-ignore + setOpacity(opacity: number): void; + /** + * Enables the per-pixel alpha support for the window. + */ + // @ts-ignore + setOpaque(isOpaque: boolean): void; + /** + * Updates the native part of non-opaque window. + */ + // @ts-ignore + updateWindow(): void; + /** + * Instructs the peer to update the position of the security warning. + */ + // @ts-ignore + repositionSecurityWarning(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.print.Book.d.ts b/packages/types/dist/typings/jdk/java.awt.print.Book.d.ts new file mode 100644 index 00000000..a6d563d1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.print.Book.d.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace print { + // @ts-ignore + class Book extends java.lang.Object { + /** + * Creates a new, empty Book. + */ + // @ts-ignore + constructor() + /** + * Returns the number of pages in this Book. + */ + // @ts-ignore + public getNumberOfPages(): number; + /** + * Returns the {@link PageFormat} of the page specified by + * pageIndex. + */ + // @ts-ignore + public getPageFormat(pageIndex: number): java.awt.print.PageFormat; + /** + * Returns the {@link Printable} instance responsible for rendering + * the page specified by pageIndex. + */ + // @ts-ignore + public getPrintable(pageIndex: number): java.awt.print.Printable; + /** + * Sets the PageFormat and the Painter for a + * specified page number. + */ + // @ts-ignore + public setPage(pageIndex: number, painter: java.awt.print.Printable, page: java.awt.print.PageFormat): void; + /** + * Appends a single page to the end of this Book. + */ + // @ts-ignore + public append(painter: java.awt.print.Printable, page: java.awt.print.PageFormat): void; + /** + * Appends numPages pages to the end of this + * Book. Each of the pages is associated with + * page. + */ + // @ts-ignore + public append(painter: java.awt.print.Printable, page: java.awt.print.PageFormat, numPages: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.print.PageFormat.d.ts b/packages/types/dist/typings/jdk/java.awt.print.PageFormat.d.ts new file mode 100644 index 00000000..ee82fbc7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.print.PageFormat.d.ts @@ -0,0 +1,116 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace print { + // @ts-ignore + class PageFormat extends java.lang.Object { + /** + * Creates a default, portrait-oriented + * PageFormat. + */ + // @ts-ignore + constructor() + // @ts-ignore + public static LANDSCAPE: number; + // @ts-ignore + public static PORTRAIT: number; + // @ts-ignore + public static REVERSE_LANDSCAPE: number; + /** + * Makes a copy of this PageFormat with the same + * contents as this PageFormat. + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Returns the width, in 1/72nds of an inch, of the page. + * This method takes into account the orientation of the + * page when determining the width. + */ + // @ts-ignore + public getWidth(): number; + /** + * Returns the height, in 1/72nds of an inch, of the page. + * This method takes into account the orientation of the + * page when determining the height. + */ + // @ts-ignore + public getHeight(): number; + /** + * Returns the x coordinate of the upper left point of the + * imageable area of the Paper object + * associated with this PageFormat. + * This method takes into account the + * orientation of the page. + */ + // @ts-ignore + public getImageableX(): number; + /** + * Returns the y coordinate of the upper left point of the + * imageable area of the Paper object + * associated with this PageFormat. + * This method takes into account the + * orientation of the page. + */ + // @ts-ignore + public getImageableY(): number; + /** + * Returns the width, in 1/72nds of an inch, of the imageable + * area of the page. This method takes into account the orientation + * of the page. + */ + // @ts-ignore + public getImageableWidth(): number; + /** + * Return the height, in 1/72nds of an inch, of the imageable + * area of the page. This method takes into account the orientation + * of the page. + */ + // @ts-ignore + public getImageableHeight(): number; + /** + * Returns a copy of the {@link Paper} object associated + * with this PageFormat. Changes made to the + * Paper object returned from this method do not + * affect the Paper object of this + * PageFormat. To update the Paper + * object of this PageFormat, create a new + * Paper object and set it into this + * PageFormat by using the {@link #setPaper(Paper)} + * method. + */ + // @ts-ignore + public getPaper(): java.awt.print.Paper; + /** + * Sets the Paper object for this + * PageFormat. + */ + // @ts-ignore + public setPaper(paper: java.awt.print.Paper): void; + /** + * Sets the page orientation. orientation must be + * one of the constants: PORTRAIT, LANDSCAPE, + * or REVERSE_LANDSCAPE. + */ + // @ts-ignore + public setOrientation(orientation: number): void; + /** + * Returns the orientation of this PageFormat. + */ + // @ts-ignore + public getOrientation(): number; + /** + * Returns a transformation matrix that translates user + * space rendering to the requested orientation + * of the page. The values are placed into the + * array as + * { m00, m10, m01, m11, m02, m12} in + * the form required by the {@link AffineTransform} + * constructor. + */ + // @ts-ignore + public getMatrix(): number[]; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.print.Pageable.d.ts b/packages/types/dist/typings/jdk/java.awt.print.Pageable.d.ts new file mode 100644 index 00000000..a3bf8635 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.print.Pageable.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace print { + // @ts-ignore + interface Pageable { + // @ts-ignore + UNKNOWN_NUMBER_OF_PAGES: number; + /** + * Returns the number of pages in the set. + * To enable advanced printing features, + * it is recommended that Pageable + * implementations return the true number of pages + * rather than the + * UNKNOWN_NUMBER_OF_PAGES constant. + */ + // @ts-ignore + getNumberOfPages(): number; + /** + * Returns the PageFormat of the page specified by + * pageIndex. + */ + // @ts-ignore + getPageFormat(pageIndex: number): java.awt.print.PageFormat; + /** + * Returns the Printable instance responsible for + * rendering the page specified by pageIndex. + */ + // @ts-ignore + getPrintable(pageIndex: number): java.awt.print.Printable; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.print.Paper.d.ts b/packages/types/dist/typings/jdk/java.awt.print.Paper.d.ts new file mode 100644 index 00000000..3ef80e0d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.print.Paper.d.ts @@ -0,0 +1,73 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace print { + // @ts-ignore + class Paper extends java.lang.Object { + /** + * Creates a letter sized piece of paper + * with one inch margins. + */ + // @ts-ignore + constructor() + /** + * Creates a copy of this Paper with the same contents + * as this Paper. + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Returns the height of the page in 1/72nds of an inch. + */ + // @ts-ignore + public getHeight(): number; + /** + * Sets the width and height of this Paper + * object, which represents the properties of the page onto + * which printing occurs. + * The dimensions are supplied in 1/72nds of + * an inch. + */ + // @ts-ignore + public setSize(width: number, height: number): void; + /** + * Returns the width of the page in 1/72nds + * of an inch. + */ + // @ts-ignore + public getWidth(): number; + /** + * Sets the imageable area of this Paper. The + * imageable area is the area on the page in which printing + * occurs. + */ + // @ts-ignore + public setImageableArea(x: number, y: number, width: number, height: number): void; + /** + * Returns the x coordinate of the upper-left corner of this + * Paper object's imageable area. + */ + // @ts-ignore + public getImageableX(): number; + /** + * Returns the y coordinate of the upper-left corner of this + * Paper object's imageable area. + */ + // @ts-ignore + public getImageableY(): number; + /** + * Returns the width of this Paper object's imageable + * area. + */ + // @ts-ignore + public getImageableWidth(): number; + /** + * Returns the height of this Paper object's imageable + * area. + */ + // @ts-ignore + public getImageableHeight(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.print.Printable.d.ts b/packages/types/dist/typings/jdk/java.awt.print.Printable.d.ts new file mode 100644 index 00000000..6243d0c3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.print.Printable.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace print { + // @ts-ignore + interface Printable { + // @ts-ignore + PAGE_EXISTS: number; + // @ts-ignore + NO_SUCH_PAGE: number; + /** + * Prints the page at the specified index into the specified + * {@link Graphics} context in the specified + * format. A PrinterJob calls the + * Printable interface to request that a page be + * rendered into the context specified by + * graphics. The format of the page to be drawn is + * specified by pageFormat. The zero based index + * of the requested page is specified by pageIndex. + * If the requested page does not exist then this method returns + * NO_SUCH_PAGE; otherwise PAGE_EXISTS is returned. + * The Graphics class or subclass implements the + * {@link PrinterGraphics} interface to provide additional + * information. If the Printable object + * aborts the print job then it throws a {@link PrinterException}. + */ + // @ts-ignore + print(graphics: java.awt.Graphics, pageFormat: java.awt.print.PageFormat, pageIndex: number): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.print.PrinterAbortException.d.ts b/packages/types/dist/typings/jdk/java.awt.print.PrinterAbortException.d.ts new file mode 100644 index 00000000..d438788f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.print.PrinterAbortException.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace print { + // @ts-ignore + class PrinterAbortException extends java.awt.print.PrinterException { + /** + * Constructs a new PrinterAbortException with no + * detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs a new PrinterAbortException with + * the specified detail message. + */ + // @ts-ignore + constructor(msg: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.print.PrinterException.d.ts b/packages/types/dist/typings/jdk/java.awt.print.PrinterException.d.ts new file mode 100644 index 00000000..69271997 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.print.PrinterException.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace print { + // @ts-ignore + class PrinterException extends java.lang.Exception { + /** + * Constructs a new PrinterException object + * without a detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs a new PrinterException object + * with the specified detail message. + */ + // @ts-ignore + constructor(msg: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.print.PrinterGraphics.d.ts b/packages/types/dist/typings/jdk/java.awt.print.PrinterGraphics.d.ts new file mode 100644 index 00000000..dcbc61f4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.print.PrinterGraphics.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace print { + // @ts-ignore + interface PrinterGraphics { + /** + * Returns the PrinterJob that is controlling the + * current rendering request. + */ + // @ts-ignore + getPrinterJob(): java.awt.print.PrinterJob; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.print.PrinterIOException.d.ts b/packages/types/dist/typings/jdk/java.awt.print.PrinterIOException.d.ts new file mode 100644 index 00000000..52950ff0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.print.PrinterIOException.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace print { + // @ts-ignore + class PrinterIOException extends java.awt.print.PrinterException { + /** + * Constructs a new PrinterIOException + * with the string representation of the specified + * {@link IOException}. + */ + // @ts-ignore + constructor(exception: java.io.IOException) + /** + * Returns the IOException that terminated + * the print job. + *

This method predates the general-purpose exception chaining facility. + * The {@link Throwable#getCause()} method is now the preferred means of + * obtaining this information. + */ + // @ts-ignore + public getIOException(): java.io.IOException; + /** + * Returns the the cause of this exception (the IOException + * that terminated the print job). + */ + // @ts-ignore + public getCause(): java.lang.Throwable; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.awt.print.PrinterJob.d.ts b/packages/types/dist/typings/jdk/java.awt.print.PrinterJob.d.ts new file mode 100644 index 00000000..2d7c5975 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.awt.print.PrinterJob.d.ts @@ -0,0 +1,309 @@ +// @ts-nocheck +declare namespace java { + namespace awt { + namespace print { + // @ts-ignore + abstract class PrinterJob extends java.lang.Object { + /** + * A PrinterJob object should be created using the + * static {@link #getPrinterJob() getPrinterJob} method. + */ + // @ts-ignore + constructor() + /** + * Creates and returns a PrinterJob which is initially + * associated with the default printer. + * If no printers are available on the system, a PrinterJob will still + * be returned from this method, but getPrintService() + * will return null, and calling + * {@link #print() print} with this PrinterJob might + * generate an exception. Applications that need to determine if + * there are suitable printers before creating a PrinterJob + * should ensure that the array returned from + * {@link #lookupPrintServices() lookupPrintServices} is not empty. + */ + // @ts-ignore + public static getPrinterJob(): java.awt.print.PrinterJob; + /** + * A convenience method which looks up 2D print services. + * Services returned from this method may be installed on + * PrinterJobs which support print services. + * Calling this method is equivalent to calling + * {@link javax.print.PrintServiceLookup#lookupPrintServices( + * DocFlavor, AttributeSet) + * PrintServiceLookup.lookupPrintServices()} + * and specifying a Pageable DocFlavor. + */ + // @ts-ignore + public static lookupPrintServices(): any /*javax.print.PrintService[]*/; + /** + * A convenience method which locates factories for stream print + * services which can image 2D graphics. + * Sample usage : + *

{@code
+                 * FileOutputStream outstream;
+                 * StreamPrintService psPrinter;
+                 * String psMimeType = "application/postscript";
+                 * PrinterJob pj = PrinterJob.getPrinterJob();
+                 * StreamPrintServiceFactory[] factories =
+                 * PrinterJob.lookupStreamPrintServices(psMimeType);
+                 * if (factories.length > 0) {
+                 * try {
+                 * outstream = new File("out.ps");
+                 * psPrinter =  factories[0].getPrintService(outstream);
+                 * // psPrinter can now be set as the service on a PrinterJob
+                 * pj.setPrintService(psPrinter)
+                 * } catch (Exception e) {
+                 * e.printStackTrace();
+                 * }
+                 * }
+                 * }
+ * Services returned from this method may be installed on + * PrinterJob instances which support print services. + * Calling this method is equivalent to calling + * {@link javax.print.StreamPrintServiceFactory#lookupStreamPrintServiceFactories(DocFlavor, String) + * StreamPrintServiceFactory.lookupStreamPrintServiceFactories() + * } and specifying a Pageable DocFlavor. + */ + // @ts-ignore + public static lookupStreamPrintServices(mimeType: string): any /*javax.print.StreamPrintServiceFactory[]*/; + /** + * Returns the service (printer) for this printer job. + * Implementations of this class which do not support print services + * may return null. null will also be returned if no printers are + * available. + */ + // @ts-ignore + public getPrintService(): any /*javax.print.PrintService*/; + /** + * Associate this PrinterJob with a new PrintService. + * This method is overridden by subclasses which support + * specifying a Print Service. + * Throws PrinterException if the specified service + * cannot support the Pageable and + * Printable interfaces necessary to support 2D printing. + */ + // @ts-ignore + public setPrintService(service: any /*javax.print.PrintService*/): void; + /** + * Calls painter to render the pages. The pages in the + * document to be printed by this + * PrinterJob are rendered by the {@link Printable} + * object, painter. The {@link PageFormat} for each page + * is the default page format. + */ + // @ts-ignore + public abstract setPrintable(painter: java.awt.print.Printable): void; + /** + * Queries document for the number of pages and + * the PageFormat and Printable for each + * page held in the Pageable instance, + * document. + */ + // @ts-ignore + public abstract setPageable(document: java.awt.print.Pageable): void; + /** + * Presents a dialog to the user for changing the properties of + * the print job. + * This method will display a native dialog if a native print + * service is selected, and user choice of printers will be restricted + * to these native print services. + * To present the cross platform print dialog for all services, + * including native ones instead use + * printDialog(PrintRequestAttributeSet). + *

+ * PrinterJob implementations which can use PrintService's will update + * the PrintService for this PrinterJob to reflect the new service + * selected by the user. + */ + // @ts-ignore + public abstract printDialog(): boolean; + /** + * A convenience method which displays a cross-platform print dialog + * for all services which are capable of printing 2D graphics using the + * Pageable interface. The selected printer when the + * dialog is initially displayed will reflect the print service currently + * attached to this print job. + * If the user changes the print service, the PrinterJob will be + * updated to reflect this, unless the user cancels the dialog. + * As well as allowing the user to select the destination printer, + * the user can also select values of various print request attributes. + *

+ * The attributes parameter on input will reflect the applications + * required initial selections in the user dialog. Attributes not + * specified display using the default for the service. On return it + * will reflect the user's choices. Selections may be updated by + * the implementation to be consistent with the supported values + * for the currently selected print service. + *

+ * As the user scrolls to a new print service selection, the values + * copied are based on the settings for the previous service, together + * with any user changes. The values are not based on the original + * settings supplied by the client. + *

+ * With the exception of selected printer, the PrinterJob state is + * not updated to reflect the user's changes. + * For the selections to affect a printer job, the attributes must + * be specified in the call to the + * print(PrintRequestAttributeSet) method. If using + * the Pageable interface, clients which intend to use media selected + * by the user must create a PageFormat derived from the user's + * selections. + * If the user cancels the dialog, the attributes will not reflect + * any changes made by the user. + */ + // @ts-ignore + public printDialog(attributes: any /*javax.print.attribute.PrintRequestAttributeSet*/): boolean; + /** + * Displays a dialog that allows modification of a + * PageFormat instance. + * The page argument is used to initialize controls + * in the page setup dialog. + * If the user cancels the dialog then this method returns the + * original page object unmodified. + * If the user okays the dialog then this method returns a new + * PageFormat object with the indicated changes. + * In either case, the original page object is + * not modified. + */ + // @ts-ignore + public abstract pageDialog(page: java.awt.print.PageFormat): java.awt.print.PageFormat; + /** + * A convenience method which displays a cross-platform page setup dialog. + * The choices available will reflect the print service currently + * set on this PrinterJob. + *

+ * The attributes parameter on input will reflect the client's + * required initial selections in the user dialog. Attributes which are + * not specified display using the default for the service. On return it + * will reflect the user's choices. Selections may be updated by + * the implementation to be consistent with the supported values + * for the currently selected print service. + *

+ * The return value will be a PageFormat equivalent to the + * selections in the PrintRequestAttributeSet. + * If the user cancels the dialog, the attributes will not reflect + * any changes made by the user, and the return value will be null. + */ + // @ts-ignore + public pageDialog(attributes: any /*javax.print.attribute.PrintRequestAttributeSet*/): java.awt.print.PageFormat; + /** + * Clones the PageFormat argument and alters the + * clone to describe a default page size and orientation. + */ + // @ts-ignore + public abstract defaultPage(page: java.awt.print.PageFormat): java.awt.print.PageFormat; + /** + * Creates a new PageFormat instance and + * sets it to a default size and orientation. + */ + // @ts-ignore + public defaultPage(): java.awt.print.PageFormat; + /** + * Calculates a PageFormat with values consistent with those + * supported by the current PrintService for this job + * (ie the value returned by getPrintService()) and media, + * printable area and orientation contained in attributes. + *

+ * Calling this method does not update the job. + * It is useful for clients that have a set of attributes obtained from + * printDialog(PrintRequestAttributeSet attributes) + * and need a PageFormat to print a Pageable object. + */ + // @ts-ignore + public getPageFormat(attributes: any /*javax.print.attribute.PrintRequestAttributeSet*/): java.awt.print.PageFormat; + /** + * Returns the clone of page with its settings + * adjusted to be compatible with the current printer of this + * PrinterJob. For example, the returned + * PageFormat could have its imageable area + * adjusted to fit within the physical area of the paper that + * is used by the current printer. + */ + // @ts-ignore + public abstract validatePage(page: java.awt.print.PageFormat): java.awt.print.PageFormat; + /** + * Prints a set of pages. + */ + // @ts-ignore + public abstract print(): void; + /** + * Prints a set of pages using the settings in the attribute + * set. The default implementation ignores the attribute set. + *

+ * Note that some attributes may be set directly on the PrinterJob + * by equivalent method calls, (for example), copies: + * setcopies(int), job name: setJobName(String) + * and specifying media size and orientation though the + * PageFormat object. + *

+ * If a supported attribute-value is specified in this attribute set, + * it will take precedence over the API settings for this print() + * operation only. + * The following behaviour is specified for PageFormat: + * If a client uses the Printable interface, then the + * attributes parameter to this method is examined + * for attributes which specify media (by size), orientation, and + * imageable area, and those are used to construct a new PageFormat + * which is passed to the Printable object's print() method. + * See {@link Printable} for an explanation of the required + * behaviour of a Printable to ensure optimal printing via PrinterJob. + * For clients of the Pageable interface, the PageFormat will always + * be as supplied by that interface, on a per page basis. + *

+ * These behaviours allow an application to directly pass the + * user settings returned from + * printDialog(PrintRequestAttributeSet attributes to + * this print() method. + *

+ */ + // @ts-ignore + public print(attributes: any /*javax.print.attribute.PrintRequestAttributeSet*/): void; + /** + * Sets the number of copies to be printed. + */ + // @ts-ignore + public abstract setCopies(copies: number): void; + /** + * Gets the number of copies to be printed. + */ + // @ts-ignore + public abstract getCopies(): number; + /** + * Gets the name of the printing user. + */ + // @ts-ignore + public abstract getUserName(): string; + /** + * Sets the name of the document to be printed. + * The document name can not be null. + */ + // @ts-ignore + public abstract setJobName(jobName: string): void; + /** + * Gets the name of the document to be printed. + */ + // @ts-ignore + public abstract getJobName(): string; + /** + * Cancels a print job that is in progress. If + * {@link #print() print} has been called but has not + * returned then this method signals + * that the job should be cancelled at the next + * chance. If there is no print job in progress then + * this call does nothing. + */ + // @ts-ignore + public abstract cancel(): void; + /** + * Returns true if a print job is + * in progress, but is going to be cancelled + * at the next opportunity; otherwise returns + * false. + */ + // @ts-ignore + public abstract isCancelled(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.AppletInitializer.d.ts b/packages/types/dist/typings/jdk/java.beans.AppletInitializer.d.ts new file mode 100644 index 00000000..892f5d13 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.AppletInitializer.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + interface AppletInitializer { + /** + *

+ * If passed to the appropriate variant of java.beans.Beans.instantiate + * this method will be called in order to associate the newly instantiated + * Applet (JavaBean) with its AppletContext, AppletStub, and Container. + *

+ *

+ * Conformant implementations shall: + *

    + *
  1. Associate the newly instantiated Applet with the appropriate + * AppletContext. + *
  2. Instantiate an AppletStub() and associate that AppletStub with + * the Applet via an invocation of setStub(). + *
  3. If BeanContext parameter is null, then it shall associate the + * Applet with its appropriate Container by adding that Applet to its + * Container via an invocation of add(). If the BeanContext parameter is + * non-null, then it is the responsibility of the BeanContext to associate + * the Applet with its Container during the subsequent invocation of its + * addChildren() method. + *
+ */ + // @ts-ignore + initialize(newAppletBean: java.applet.Applet, bCtxt: java.beans.beancontext.BeanContext): void; + /** + *

+ * Activate, and/or mark Applet active. Implementors of this interface + * shall mark this Applet as active, and optionally invoke its start() + * method. + *

+ */ + // @ts-ignore + activate(newApplet: java.applet.Applet): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.BeanDescriptor.d.ts b/packages/types/dist/typings/jdk/java.beans.BeanDescriptor.d.ts new file mode 100644 index 00000000..fd70762f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.BeanDescriptor.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + class BeanDescriptor extends java.beans.FeatureDescriptor { + /** + * Create a BeanDescriptor for a bean that doesn't have a customizer. + */ + // @ts-ignore + constructor(beanClass: java.lang.Class) + /** + * Create a BeanDescriptor for a bean that has a customizer. + */ + // @ts-ignore + constructor(beanClass: java.lang.Class, customizerClass: java.lang.Class) + /** + * Gets the bean's Class object. + */ + // @ts-ignore + public getBeanClass(): java.lang.Class; + /** + * Gets the Class object for the bean's customizer. + */ + // @ts-ignore + public getCustomizerClass(): java.lang.Class; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.BeanInfo.d.ts b/packages/types/dist/typings/jdk/java.beans.BeanInfo.d.ts new file mode 100644 index 00000000..e05c1c9b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.BeanInfo.d.ts @@ -0,0 +1,83 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + interface BeanInfo { + // @ts-ignore + ICON_COLOR_16x16: number; + // @ts-ignore + ICON_COLOR_32x32: number; + // @ts-ignore + ICON_MONO_16x16: number; + // @ts-ignore + ICON_MONO_32x32: number; + /** + * Returns the bean descriptor + * that provides overall information about the bean, + * such as its display name or its customizer. + */ + // @ts-ignore + getBeanDescriptor(): java.beans.BeanDescriptor; + /** + * Returns the event descriptors of the bean + * that define the types of events fired by this bean. + */ + // @ts-ignore + getEventSetDescriptors(): java.beans.EventSetDescriptor[]; + /** + * A bean may have a default event typically applied when this bean is used. + */ + // @ts-ignore + getDefaultEventIndex(): number; + /** + * Returns descriptors for all properties of the bean. + *

+ * If a property is indexed, then its entry in the result array + * belongs to the {@link IndexedPropertyDescriptor} subclass + * of the {@link PropertyDescriptor} class. + * A client of the {@code getPropertyDescriptors} method + * can use the {@code instanceof} operator to check + * whether a given {@code PropertyDescriptor} + * is an {@code IndexedPropertyDescriptor}. + */ + // @ts-ignore + getPropertyDescriptors(): java.beans.PropertyDescriptor[]; + /** + * A bean may have a default property commonly updated when this bean is customized. + */ + // @ts-ignore + getDefaultPropertyIndex(): number; + /** + * Returns the method descriptors of the bean + * that define the externally visible methods supported by this bean. + */ + // @ts-ignore + getMethodDescriptors(): java.beans.MethodDescriptor[]; + /** + * This method enables the current {@code BeanInfo} object + * to return an arbitrary collection of other {@code BeanInfo} objects + * that provide additional information about the current bean. + *

+ * If there are conflicts or overlaps between the information + * provided by different {@code BeanInfo} objects, + * the current {@code BeanInfo} object takes priority + * over the additional {@code BeanInfo} objects. + * Array elements with higher indices take priority + * over the elements with lower indices. + */ + // @ts-ignore + getAdditionalBeanInfo(): java.beans.BeanInfo[]; + /** + * Returns an image that can be used to represent the bean in toolboxes or toolbars. + *

+ * There are four possible types of icons: + * 16 x 16 color, 32 x 32 color, 16 x 16 mono, and 32 x 32 mono. + * If you implement a bean so that it supports a single icon, + * it is recommended to use 16 x 16 color. + * Another recommendation is to set a transparent background for the icons. + */ + // @ts-ignore + getIcon(iconKind: number): java.awt.Image; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.Beans.d.ts b/packages/types/dist/typings/jdk/java.beans.Beans.d.ts new file mode 100644 index 00000000..9ac295d1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.Beans.d.ts @@ -0,0 +1,117 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + class Beans extends java.lang.Object { + // @ts-ignore + constructor() + /** + *

+ * Instantiate a JavaBean. + *

+ */ + // @ts-ignore + public static instantiate(cls: java.lang.ClassLoader, beanName: string): java.lang.Object; + /** + *

+ * Instantiate a JavaBean. + *

+ */ + // @ts-ignore + public static instantiate(cls: java.lang.ClassLoader, beanName: string, beanContext: java.beans.beancontext.BeanContext): java.lang.Object; + /** + * Instantiate a bean. + *

+ * The bean is created based on a name relative to a class-loader. + * This name should be a dot-separated name such as "a.b.c". + *

+ * In Beans 1.0 the given name can indicate either a serialized object + * or a class. Other mechanisms may be added in the future. In + * beans 1.0 we first try to treat the beanName as a serialized object + * name then as a class name. + *

+ * When using the beanName as a serialized object name we convert the + * given beanName to a resource pathname and add a trailing ".ser" suffix. + * We then try to load a serialized object from that resource. + *

+ * For example, given a beanName of "x.y", Beans.instantiate would first + * try to read a serialized object from the resource "x/y.ser" and if + * that failed it would try to load the class "x.y" and create an + * instance of that class. + *

+ * If the bean is a subtype of java.applet.Applet, then it is given + * some special initialization. First, it is supplied with a default + * AppletStub and AppletContext. Second, if it was instantiated from + * a classname the applet's "init" method is called. (If the bean was + * deserialized this step is skipped.) + *

+ * Note that for beans which are applets, it is the caller's responsiblity + * to call "start" on the applet. For correct behaviour, this should be done + * after the applet has been added into a visible AWT container. + *

+ * Note that applets created via beans.instantiate run in a slightly + * different environment than applets running inside browsers. In + * particular, bean applets have no access to "parameters", so they may + * wish to provide property get/set methods to set parameter values. We + * advise bean-applet developers to test their bean-applets against both + * the JDK appletviewer (for a reference browser environment) and the + * BDK BeanBox (for a reference bean container). + */ + // @ts-ignore + public static instantiate(cls: java.lang.ClassLoader, beanName: string, beanContext: java.beans.beancontext.BeanContext, initializer: java.beans.AppletInitializer): java.lang.Object; + /** + * From a given bean, obtain an object representing a specified + * type view of that source object. + *

+ * The result may be the same object or a different object. If + * the requested target view isn't available then the given + * bean is returned. + *

+ * This method is provided in Beans 1.0 as a hook to allow the + * addition of more flexible bean behaviour in the future. + */ + // @ts-ignore + public static getInstanceOf(bean: java.lang.Object, targetType: java.lang.Class): java.lang.Object; + /** + * Check if a bean can be viewed as a given target type. + * The result will be true if the Beans.getInstanceof method + * can be used on the given bean to obtain an object that + * represents the specified targetType type view. + */ + // @ts-ignore + public static isInstanceOf(bean: java.lang.Object, targetType: java.lang.Class): boolean; + /** + * Test if we are in design-mode. + */ + // @ts-ignore + public static isDesignTime(): boolean; + /** + * Determines whether beans can assume a GUI is available. + */ + // @ts-ignore + public static isGuiAvailable(): boolean; + /** + * Used to indicate whether of not we are running in an application + * builder environment. + *

Note that this method is security checked + * and is not available to (for example) untrusted applets. + * More specifically, if there is a security manager, + * its checkPropertiesAccess + * method is called. This could result in a SecurityException. + */ + // @ts-ignore + public static setDesignTime(isDesignTime: boolean): void; + /** + * Used to indicate whether of not we are running in an environment + * where GUI interaction is available. + *

Note that this method is security checked + * and is not available to (for example) untrusted applets. + * More specifically, if there is a security manager, + * its checkPropertiesAccess + * method is called. This could result in a SecurityException. + */ + // @ts-ignore + public static setGuiAvailable(isGuiAvailable: boolean): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.ConstructorProperties.d.ts b/packages/types/dist/typings/jdk/java.beans.ConstructorProperties.d.ts new file mode 100644 index 00000000..c3a95e02 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.ConstructorProperties.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + interface ConstructorProperties { + // @ts-ignore + value(): java.lang.String[]; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.Customizer.d.ts b/packages/types/dist/typings/jdk/java.beans.Customizer.d.ts new file mode 100644 index 00000000..a6b9abf8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.Customizer.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + interface Customizer { + /** + * Set the object to be customized. This method should be called only + * once, before the Customizer has been added to any parent AWT container. + */ + // @ts-ignore + setObject(bean: java.lang.Object): void; + /** + * Register a listener for the PropertyChange event. The customizer + * should fire a PropertyChange event whenever it changes the target + * bean in a way that might require the displayed properties to be + * refreshed. + */ + // @ts-ignore + addPropertyChangeListener(listener: java.beans.PropertyChangeListener): void; + /** + * Remove a listener for the PropertyChange event. + */ + // @ts-ignore + removePropertyChangeListener(listener: java.beans.PropertyChangeListener): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.DefaultPersistenceDelegate.d.ts b/packages/types/dist/typings/jdk/java.beans.DefaultPersistenceDelegate.d.ts new file mode 100644 index 00000000..7d1491a0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.DefaultPersistenceDelegate.d.ts @@ -0,0 +1,89 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + class DefaultPersistenceDelegate extends java.beans.PersistenceDelegate { + /** + * Creates a persistence delegate for a class with a nullary constructor. + */ + // @ts-ignore + constructor() + /** + * Creates a default persistence delegate for a class with a + * constructor whose arguments are the values of the property + * names as specified by constructorPropertyNames. + * The constructor arguments are created by + * evaluating the property names in the order they are supplied. + * To use this class to specify a single preferred constructor for use + * in the serialization of a particular type, we state the + * names of the properties that make up the constructor's + * arguments. For example, the Font class which + * does not define a nullary constructor can be handled + * with the following persistence delegate: + *

+             * new DefaultPersistenceDelegate(new String[]{"name", "style", "size"});
+             * 
+ */ + // @ts-ignore + constructor(constructorPropertyNames: string) + /** + * If the number of arguments in the specified constructor is non-zero and + * the class of oldInstance explicitly declares an "equals" method + * this method returns the value of oldInstance.equals(newInstance). + * Otherwise, this method uses the superclass's definition which returns true if the + * classes of the two instances are equal. + */ + // @ts-ignore + protected mutatesTo(oldInstance: java.lang.Object, newInstance: java.lang.Object): boolean; + /** + * This default implementation of the instantiate method returns + * an expression containing the predefined method name "new" which denotes a + * call to a constructor with the arguments as specified in + * the DefaultPersistenceDelegate's constructor. + */ + // @ts-ignore + protected instantiate(oldInstance: java.lang.Object, out: java.beans.Encoder): java.beans.Expression; + /** + * This default implementation of the initialize method assumes + * all state held in objects of this type is exposed via the + * matching pairs of "setter" and "getter" methods in the order + * they are returned by the Introspector. If a property descriptor + * defines a "transient" attribute with a value equal to + * Boolean.TRUE the property is ignored by this + * default implementation. Note that this use of the word + * "transient" is quite independent of the field modifier + * that is used by the ObjectOutputStream. + *

+ * For each non-transient property, an expression is created + * in which the nullary "getter" method is applied + * to the oldInstance. The value of this + * expression is the value of the property in the instance that is + * being serialized. If the value of this expression + * in the cloned environment mutatesTo the + * target value, the new value is initialized to make it + * equivalent to the old value. In this case, because + * the property value has not changed there is no need to + * call the corresponding "setter" method and no statement + * is emitted. If not however, the expression for this value + * is replaced with another expression (normally a constructor) + * and the corresponding "setter" method is called to install + * the new property value in the object. This scheme removes + * default information from the output produced by streams + * using this delegate. + *

+ * In passing these statements to the output stream, where they + * will be executed, side effects are made to the newInstance. + * In most cases this allows the problem of properties + * whose values depend on each other to actually help the + * serialization process by making the number of statements + * that need to be written to the output smaller. In general, + * the problem of handling interdependent properties is reduced to + * that of finding an order for the properties in + * a class such that no property value depends on the value of + * a subsequent property. + */ + // @ts-ignore + protected initialize(type: java.lang.Class, oldInstance: java.lang.Object, newInstance: java.lang.Object, out: java.beans.Encoder): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.DesignMode.d.ts b/packages/types/dist/typings/jdk/java.beans.DesignMode.d.ts new file mode 100644 index 00000000..902da4db --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.DesignMode.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + interface DesignMode { + // @ts-ignore + PROPERTYNAME: string; + /** + * Sets the "value" of the "designTime" property. + *

+ * If the implementing object is an instance of java.beans.beancontext.BeanContext, + * or a subinterface thereof, then that BeanContext should fire a + * PropertyChangeEvent, to its registered BeanContextMembershipListeners, with + * parameters: + *

    + *
  • propertyName - java.beans.DesignMode.PROPERTYNAME + *
  • oldValue - previous value of "designTime" + *
  • newValue - current value of "designTime" + *
+ * Note it is illegal for a BeanContextChild to invoke this method + * associated with a BeanContext that it is nested within. + */ + // @ts-ignore + setDesignTime(designTime: boolean): void; + /** + * A value of true denotes that JavaBeans should behave in design time + * mode, a value of false denotes runtime behavior. + */ + // @ts-ignore + isDesignTime(): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.Encoder.d.ts b/packages/types/dist/typings/jdk/java.beans.Encoder.d.ts new file mode 100644 index 00000000..9266421c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.Encoder.d.ts @@ -0,0 +1,163 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + class Encoder extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Write the specified object to the output stream. + * The serialized form will denote a series of + * expressions, the combined effect of which will create + * an equivalent object when the input stream is read. + * By default, the object is assumed to be a JavaBean + * with a nullary constructor, whose state is defined by + * the matching pairs of "setter" and "getter" methods + * returned by the Introspector. + */ + // @ts-ignore + protected writeObject(o: java.lang.Object): void; + /** + * Sets the exception handler for this stream to exceptionListener. + * The exception handler is notified when this stream catches recoverable + * exceptions. + */ + // @ts-ignore + public setExceptionListener(exceptionListener: java.beans.ExceptionListener): void; + /** + * Gets the exception handler for this stream. + */ + // @ts-ignore + public getExceptionListener(): java.beans.ExceptionListener; + /** + * Returns the persistence delegate for the given type. + * The persistence delegate is calculated by applying + * the following rules in order: + *
    + *
  1. + * If a persistence delegate is associated with the given type + * by using the {@link #setPersistenceDelegate} method + * it is returned. + *
  2. + * A persistence delegate is then looked up by the name + * composed of the the fully qualified name of the given type + * and the "PersistenceDelegate" postfix. + * For example, a persistence delegate for the {@code Bean} class + * should be named {@code BeanPersistenceDelegate} + * and located in the same package. + *
    +             * public class Bean { ... }
    +             * public class BeanPersistenceDelegate { ... }
    + * The instance of the {@code BeanPersistenceDelegate} class + * is returned for the {@code Bean} class. + *
  3. + * If the type is {@code null}, + * a shared internal persistence delegate is returned + * that encodes {@code null} value. + *
  4. + * If the type is a {@code enum} declaration, + * a shared internal persistence delegate is returned + * that encodes constants of this enumeration + * by their names. + *
  5. + * If the type is a primitive type or the corresponding wrapper, + * a shared internal persistence delegate is returned + * that encodes values of the given type. + *
  6. + * If the type is an array, + * a shared internal persistence delegate is returned + * that encodes an array of the appropriate type and length, + * and each of its elements as if they are properties. + *
  7. + * If the type is a proxy, + * a shared internal persistence delegate is returned + * that encodes a proxy instance by using + * the {@link java.lang.reflect.Proxy#newProxyInstance} method. + *
  8. + * If the {@link BeanInfo} for this type has a {@link BeanDescriptor} + * which defined a "persistenceDelegate" attribute, + * the value of this named attribute is returned. + *
  9. + * In all other cases the default persistence delegate is returned. + * The default persistence delegate assumes the type is a JavaBean, + * implying that it has a default constructor and that its state + * may be characterized by the matching pairs of "setter" and "getter" + * methods returned by the {@link Introspector} class. + * The default constructor is the constructor with the greatest number + * of parameters that has the {@link ConstructorProperties} annotation. + * If none of the constructors has the {@code ConstructorProperties} annotation, + * then the nullary constructor (constructor with no parameters) will be used. + * For example, in the following code fragment, the nullary constructor + * for the {@code Foo} class will be used, + * while the two-parameter constructor + * for the {@code Bar} class will be used. + *
    +             * public class Foo {
    +             * public Foo() { ... }
    +             * public Foo(int x) { ... }
    +             * }
    +             * public class Bar {
    +             * public Bar() { ... }
    +             * @ConstructorProperties({"x"})
    +             * public Bar(int x) { ... }
    +             * @ConstructorProperties({"x", "y"})
    +             * public Bar(int x, int y) { ... }
    +             * }
    + *
+ */ + // @ts-ignore + public getPersistenceDelegate(type: java.lang.Class): java.beans.PersistenceDelegate; + /** + * Associates the specified persistence delegate with the given type. + */ + // @ts-ignore + public setPersistenceDelegate(type: java.lang.Class, delegate: java.beans.PersistenceDelegate): void; + /** + * Removes the entry for this instance, returning the old entry. + */ + // @ts-ignore + public remove(oldInstance: java.lang.Object): java.lang.Object; + /** + * Returns a tentative value for oldInstance in + * the environment created by this stream. A persistence + * delegate can use its mutatesTo method to + * determine whether this value may be initialized to + * form the equivalent object at the output or whether + * a new object must be instantiated afresh. If the + * stream has not yet seen this value, null is returned. + */ + // @ts-ignore + public get(oldInstance: java.lang.Object): java.lang.Object; + /** + * Writes statement oldStm to the stream. + * The oldStm should be written entirely + * in terms of the callers environment, i.e. the + * target and all arguments should be part of the + * object graph being written. These expressions + * represent a series of "what happened" expressions + * which tell the output stream how to produce an + * object graph like the original. + *

+ * The implementation of this method will produce + * a second expression to represent the same expression in + * an environment that will exist when the stream is read. + * This is achieved simply by calling writeObject + * on the target and all the arguments and building a new + * expression with the results. + */ + // @ts-ignore + public writeStatement(oldStm: java.beans.Statement): void; + /** + * The implementation first checks to see if an + * expression with this value has already been written. + * If not, the expression is cloned, using + * the same procedure as writeStatement, + * and the value of this expression is reconciled + * with the value of the cloned expression + * by calling writeObject. + */ + // @ts-ignore + public writeExpression(oldExp: java.beans.Expression): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.EventHandler.d.ts b/packages/types/dist/typings/jdk/java.beans.EventHandler.d.ts new file mode 100644 index 00000000..1f22c260 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.EventHandler.d.ts @@ -0,0 +1,180 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + class EventHandler extends java.lang.Object { + /** + * Creates a new EventHandler object; + * you generally use one of the create methods + * instead of invoking this constructor directly. Refer to + * {@link java.beans.EventHandler#create(Class, Object, String, String) + * the general version of create} for a complete description of + * the eventPropertyName and listenerMethodName + * parameter. + */ + // @ts-ignore + constructor(target: java.lang.Object, action: string, eventPropertyName: string, listenerMethodName: string) + /** + * Returns the object to which this event handler will send a message. + */ + // @ts-ignore + public getTarget(): java.lang.Object; + /** + * Returns the name of the target's writable property + * that this event handler will set, + * or the name of the method that this event handler + * will invoke on the target. + */ + // @ts-ignore + public getAction(): string; + /** + * Returns the property of the event that should be + * used in the action applied to the target. + */ + // @ts-ignore + public getEventPropertyName(): string; + /** + * Returns the name of the method that will trigger the action. + * A return value of null signifies that all methods in the + * listener interface trigger the action. + */ + // @ts-ignore + public getListenerMethodName(): string; + /** + * Extract the appropriate property value from the event and + * pass it to the action associated with + * this EventHandler. + */ + // @ts-ignore + public invoke(proxy: java.lang.Object, method: java.lang.reflect.Method, arguments: java.lang.Object): java.lang.Object; + /** + * Creates an implementation of listenerInterface in which + * all of the methods in the listener interface apply + * the handler's action to the target. This + * method is implemented by calling the other, more general, + * implementation of the create method with both + * the eventPropertyName and the listenerMethodName + * taking the value null. Refer to + * {@link java.beans.EventHandler#create(Class, Object, String, String) + * the general version of create} for a complete description of + * the action parameter. + *

+ * To create an ActionListener that shows a + * JDialog with dialog.show(), + * one can write: + *

+ *
+             * EventHandler.create(ActionListener.class, dialog, "show")
+             * 
+ *
+ */ + // @ts-ignore + public static create(listenerInterface: java.lang.Class, target: java.lang.Object, action: string): java.lang.Object; + /** + * /** + * Creates an implementation of listenerInterface in which + * all of the methods pass the value of the event + * expression, eventPropertyName, to the final method in the + * statement, action, which is applied to the target. + * This method is implemented by calling the + * more general, implementation of the create method with + * the listenerMethodName taking the value null. + * Refer to + * {@link java.beans.EventHandler#create(Class, Object, String, String) + * the general version of create} for a complete description of + * the action and eventPropertyName parameters. + *

+ * To create an ActionListener that sets the + * the text of a JLabel to the text value of + * the JTextField source of the incoming event, + * you can use the following code: + *

+ *
+             * EventHandler.create(ActionListener.class, label, "text", "source.text");
+             * 
+ *
+ * This is equivalent to the following code: + *
+ *
+             * //Equivalent code using an inner class instead of EventHandler.
+             * new ActionListener() {
+             * public void actionPerformed(ActionEvent event) {
+             * label.setText(((JTextField)(event.getSource())).getText());
+             * }
+             * };
+             * 
+ *
+ */ + // @ts-ignore + public static create(listenerInterface: java.lang.Class, target: java.lang.Object, action: string, eventPropertyName: string): java.lang.Object; + /** + * Creates an implementation of listenerInterface in which + * the method named listenerMethodName + * passes the value of the event expression, eventPropertyName, + * to the final method in the statement, action, which + * is applied to the target. All of the other listener + * methods do nothing. + *

+ * The eventPropertyName string is used to extract a value + * from the incoming event object that is passed to the target + * method. The common case is the target method takes no arguments, in + * which case a value of null should be used for the + * eventPropertyName. Alternatively if you want + * the incoming event object passed directly to the target method use + * the empty string. + * The format of the eventPropertyName string is a sequence of + * methods or properties where each method or + * property is applied to the value returned by the preceding method + * starting from the incoming event object. + * The syntax is: propertyName{.propertyName}* + * where propertyName matches a method or + * property. For example, to extract the point + * property from a MouseEvent, you could use either + * "point" or "getPoint" as the + * eventPropertyName. To extract the "text" property from + * a MouseEvent with a JLabel source use any + * of the following as eventPropertyName: + * "source.text", + * "getSource.text" "getSource.getText" or + * "source.getText". If a method can not be found, or an + * exception is generated as part of invoking a method a + * RuntimeException will be thrown at dispatch time. For + * example, if the incoming event object is null, and + * eventPropertyName is non-null and not empty, a + * RuntimeException will be thrown. + *

+ * The action argument is of the same format as the + * eventPropertyName argument where the last property name + * identifies either a method name or writable property. + *

+ * If the listenerMethodName is null + * all methods in the interface trigger the action to be + * executed on the target. + *

+ * For example, to create a MouseListener that sets the target + * object's origin property to the incoming MouseEvent's + * location (that's the value of mouseEvent.getPoint()) each + * time a mouse button is pressed, one would write: + *

+ *
+             * EventHandler.create(MouseListener.class, target, "origin", "point", "mousePressed");
+             * 
+ *
+ * This is comparable to writing a MouseListener in which all + * of the methods except mousePressed are no-ops: + *
+ *
+             * //Equivalent code using an inner class instead of EventHandler.
+             * new MouseAdapter() {
+             * public void mousePressed(MouseEvent e) {
+             * target.setOrigin(e.getPoint());
+             * }
+             * };
+             * 
+ *
+ */ + // @ts-ignore + public static create(listenerInterface: java.lang.Class, target: java.lang.Object, action: string, eventPropertyName: string, listenerMethodName: string): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.EventSetDescriptor.d.ts b/packages/types/dist/typings/jdk/java.beans.EventSetDescriptor.d.ts new file mode 100644 index 00000000..be149ebc --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.EventSetDescriptor.d.ts @@ -0,0 +1,102 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + class EventSetDescriptor extends java.beans.FeatureDescriptor { + /** + * Creates an EventSetDescriptor assuming that you are + * following the most simple standard design pattern where a named + * event "fred" is (1) delivered as a call on the single method of + * interface FredListener, (2) has a single argument of type FredEvent, + * and (3) where the FredListener may be registered with a call on an + * addFredListener method of the source component and removed with a + * call on a removeFredListener method. + */ + // @ts-ignore + constructor(sourceClass: java.lang.Class, eventSetName: string, listenerType: java.lang.Class, listenerMethodName: string) + /** + * Creates an EventSetDescriptor from scratch using + * string names. + */ + // @ts-ignore + constructor(sourceClass: java.lang.Class, eventSetName: string, listenerType: java.lang.Class, listenerMethodNames: string, addListenerMethodName: string, removeListenerMethodName: string) + /** + * This constructor creates an EventSetDescriptor from scratch using + * string names. + */ + // @ts-ignore + constructor(sourceClass: java.lang.Class, eventSetName: string, listenerType: java.lang.Class, listenerMethodNames: string, addListenerMethodName: string, removeListenerMethodName: string, getListenerMethodName: string) + /** + * Creates an EventSetDescriptor from scratch using + * java.lang.reflect.Method and java.lang.Class objects. + */ + // @ts-ignore + constructor(eventSetName: string, listenerType: java.lang.Class, listenerMethods: java.lang.reflect.Method, addListenerMethod: java.lang.reflect.Method, removeListenerMethod: java.lang.reflect.Method) + /** + * This constructor creates an EventSetDescriptor from scratch using + * java.lang.reflect.Method and java.lang.Class objects. + */ + // @ts-ignore + constructor(eventSetName: string, listenerType: java.lang.Class, listenerMethods: java.lang.reflect.Method, addListenerMethod: java.lang.reflect.Method, removeListenerMethod: java.lang.reflect.Method, getListenerMethod: java.lang.reflect.Method) + /** + * Creates an EventSetDescriptor from scratch using + * java.lang.reflect.MethodDescriptor and java.lang.Class + * objects. + */ + // @ts-ignore + constructor(eventSetName: string, listenerType: java.lang.Class, listenerMethodDescriptors: java.beans.MethodDescriptor, addListenerMethod: java.lang.reflect.Method, removeListenerMethod: java.lang.reflect.Method) + /** + * Gets the Class object for the target interface. + */ + // @ts-ignore + public getListenerType(): java.lang.Class; + /** + * Gets the methods of the target listener interface. + */ + // @ts-ignore + public getListenerMethods(): java.lang.reflect.Method[]; + /** + * Gets the MethodDescriptors of the target listener interface. + */ + // @ts-ignore + public getListenerMethodDescriptors(): java.beans.MethodDescriptor[]; + /** + * Gets the method used to add event listeners. + */ + // @ts-ignore + public getAddListenerMethod(): java.lang.reflect.Method; + /** + * Gets the method used to remove event listeners. + */ + // @ts-ignore + public getRemoveListenerMethod(): java.lang.reflect.Method; + /** + * Gets the method used to access the registered event listeners. + */ + // @ts-ignore + public getGetListenerMethod(): java.lang.reflect.Method; + /** + * Mark an event set as unicast (or not). + */ + // @ts-ignore + public setUnicast(unicast: boolean): void; + /** + * Normally event sources are multicast. However there are some + * exceptions that are strictly unicast. + */ + // @ts-ignore + public isUnicast(): boolean; + /** + * Marks an event set as being in the "default" set (or not). + * By default this is true. + */ + // @ts-ignore + public setInDefaultEventSet(inDefaultEventSet: boolean): void; + /** + * Reports if an event set is in the "default" set. + */ + // @ts-ignore + public isInDefaultEventSet(): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.ExceptionListener.d.ts b/packages/types/dist/typings/jdk/java.beans.ExceptionListener.d.ts new file mode 100644 index 00000000..aa14125d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.ExceptionListener.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + interface ExceptionListener { + /** + * This method is called when a recoverable exception has + * been caught. + */ + // @ts-ignore + exceptionThrown(e: java.lang.Exception): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.Expression.d.ts b/packages/types/dist/typings/jdk/java.beans.Expression.d.ts new file mode 100644 index 00000000..5862338d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.Expression.d.ts @@ -0,0 +1,84 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + class Expression extends java.beans.Statement { + /** + * Creates a new {@link Expression} object + * for the specified target object to invoke the method + * specified by the name and by the array of arguments. + *

+ * The {@code target} and the {@code methodName} values should not be {@code null}. + * Otherwise an attempt to execute this {@code Expression} + * will result in a {@code NullPointerException}. + * If the {@code arguments} value is {@code null}, + * an empty array is used as the value of the {@code arguments} property. + */ + // @ts-ignore + constructor(target: java.lang.Object, methodName: string, arguments: java.lang.Object) + /** + * Creates a new {@link Expression} object with the specified value + * for the specified target object to invoke the method + * specified by the name and by the array of arguments. + * The {@code value} value is used as the value of the {@code value} property, + * so the {@link #getValue} method will return it + * without executing this {@code Expression}. + *

+ * The {@code target} and the {@code methodName} values should not be {@code null}. + * Otherwise an attempt to execute this {@code Expression} + * will result in a {@code NullPointerException}. + * If the {@code arguments} value is {@code null}, + * an empty array is used as the value of the {@code arguments} property. + */ + // @ts-ignore + constructor(value: java.lang.Object, target: java.lang.Object, methodName: string, arguments: java.lang.Object) + /** + * {@inheritDoc} + *

+ * If the invoked method completes normally, + * the value it returns is copied in the {@code value} property. + * Note that the {@code value} property is set to {@code null}, + * if the return type of the underlying method is {@code void}. + */ + // @ts-ignore + public execute(): void; + /** + * If the value property of this instance is not already set, + * this method dynamically finds the method with the specified + * methodName on this target with these arguments and calls it. + * The result of the method invocation is first copied + * into the value property of this expression and then returned + * as the result of getValue. If the value property + * was already set, either by a call to setValue + * or a previous call to getValue then the value + * property is returned without either looking up or calling the method. + *

+ * The value property of an Expression is set to + * a unique private (non-null) value by default and + * this value is used as an internal indication that the method + * has not yet been called. A return value of null + * replaces this default value in the same way that any other value + * would, ensuring that expressions are never evaluated more than once. + *

+ * See the execute method for details on how + * methods are chosen using the dynamic types of the target + * and arguments. + */ + // @ts-ignore + public getValue(): java.lang.Object; + /** + * Sets the value of this expression to value. + * This value will be returned by the getValue method + * without calling the method associated with this + * expression. + */ + // @ts-ignore + public setValue(value: java.lang.Object): void; + /** + * Prints the value of this expression using a Java-style syntax. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.FeatureDescriptor.d.ts b/packages/types/dist/typings/jdk/java.beans.FeatureDescriptor.d.ts new file mode 100644 index 00000000..e4d35fca --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.FeatureDescriptor.d.ts @@ -0,0 +1,101 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + class FeatureDescriptor extends java.lang.Object { + /** + * Constructs a FeatureDescriptor. + */ + // @ts-ignore + constructor() + /** + * Gets the programmatic name of this feature. + */ + // @ts-ignore + public getName(): string; + /** + * Sets the programmatic name of this feature. + */ + // @ts-ignore + public setName(name: string): void; + /** + * Gets the localized display name of this feature. + */ + // @ts-ignore + public getDisplayName(): string; + /** + * Sets the localized display name of this feature. + */ + // @ts-ignore + public setDisplayName(displayName: string): void; + /** + * The "expert" flag is used to distinguish between those features that are + * intended for expert users from those that are intended for normal users. + */ + // @ts-ignore + public isExpert(): boolean; + /** + * The "expert" flag is used to distinguish between features that are + * intended for expert users from those that are intended for normal users. + */ + // @ts-ignore + public setExpert(expert: boolean): void; + /** + * The "hidden" flag is used to identify features that are intended only + * for tool use, and which should not be exposed to humans. + */ + // @ts-ignore + public isHidden(): boolean; + /** + * The "hidden" flag is used to identify features that are intended only + * for tool use, and which should not be exposed to humans. + */ + // @ts-ignore + public setHidden(hidden: boolean): void; + /** + * The "preferred" flag is used to identify features that are particularly + * important for presenting to humans. + */ + // @ts-ignore + public isPreferred(): boolean; + /** + * The "preferred" flag is used to identify features that are particularly + * important for presenting to humans. + */ + // @ts-ignore + public setPreferred(preferred: boolean): void; + /** + * Gets the short description of this feature. + */ + // @ts-ignore + public getShortDescription(): string; + /** + * You can associate a short descriptive string with a feature. Normally + * these descriptive strings should be less than about 40 characters. + */ + // @ts-ignore + public setShortDescription(text: string): void; + /** + * Associate a named attribute with this feature. + */ + // @ts-ignore + public setValue(attributeName: string, value: java.lang.Object): void; + /** + * Retrieve a named attribute with this feature. + */ + // @ts-ignore + public getValue(attributeName: string): java.lang.Object; + /** + * Gets an enumeration of the locale-independent names of this + * feature. + */ + // @ts-ignore + public attributeNames(): java.util.Enumeration; + /** + * Returns a string representation of the object. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.IndexedPropertyChangeEvent.d.ts b/packages/types/dist/typings/jdk/java.beans.IndexedPropertyChangeEvent.d.ts new file mode 100644 index 00000000..40460e8d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.IndexedPropertyChangeEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + class IndexedPropertyChangeEvent extends java.beans.PropertyChangeEvent { + /** + * Constructs a new IndexedPropertyChangeEvent object. + */ + // @ts-ignore + constructor(source: java.lang.Object, propertyName: string, oldValue: java.lang.Object, newValue: java.lang.Object, index: number) + /** + * Gets the index of the property that was changed. + */ + // @ts-ignore + public getIndex(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.IndexedPropertyDescriptor.d.ts b/packages/types/dist/typings/jdk/java.beans.IndexedPropertyDescriptor.d.ts new file mode 100644 index 00000000..83a4cf48 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.IndexedPropertyDescriptor.d.ts @@ -0,0 +1,77 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + class IndexedPropertyDescriptor extends java.beans.PropertyDescriptor { + /** + * This constructor constructs an IndexedPropertyDescriptor for a property + * that follows the standard Java conventions by having getFoo and setFoo + * accessor methods, for both indexed access and array access. + *

+ * Thus if the argument name is "fred", it will assume that there + * is an indexed reader method "getFred", a non-indexed (array) reader + * method also called "getFred", an indexed writer method "setFred", + * and finally a non-indexed writer method "setFred". + */ + // @ts-ignore + constructor(propertyName: string, beanClass: java.lang.Class) + /** + * This constructor takes the name of a simple property, and method + * names for reading and writing the property, both indexed + * and non-indexed. + */ + // @ts-ignore + constructor(propertyName: string, beanClass: java.lang.Class, readMethodName: string, writeMethodName: string, indexedReadMethodName: string, indexedWriteMethodName: string) + /** + * This constructor takes the name of a simple property, and Method + * objects for reading and writing the property. + */ + // @ts-ignore + constructor(propertyName: string, readMethod: java.lang.reflect.Method, writeMethod: java.lang.reflect.Method, indexedReadMethod: java.lang.reflect.Method, indexedWriteMethod: java.lang.reflect.Method) + /** + * Gets the method that should be used to read an indexed + * property value. + */ + // @ts-ignore + public getIndexedReadMethod(): java.lang.reflect.Method; + /** + * Sets the method that should be used to read an indexed property value. + */ + // @ts-ignore + public setIndexedReadMethod(readMethod: java.lang.reflect.Method): void; + /** + * Gets the method that should be used to write an indexed property value. + */ + // @ts-ignore + public getIndexedWriteMethod(): java.lang.reflect.Method; + /** + * Sets the method that should be used to write an indexed property value. + */ + // @ts-ignore + public setIndexedWriteMethod(writeMethod: java.lang.reflect.Method): void; + /** + * Returns the Java type info for the indexed property. + * Note that the {@code Class} object may describe + * primitive Java types such as {@code int}. + * This type is returned by the indexed read method + * or is used as the parameter type of the indexed write method. + */ + // @ts-ignore + public getIndexedPropertyType(): java.lang.Class; + /** + * Compares this PropertyDescriptor against the specified object. + * Returns true if the objects are the same. Two PropertyDescriptors + * are the same if the read, write, property types, property editor and + * flags are equivalent. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a hash code value for the object. + * See {@link java.lang.Object#hashCode} for a complete description. + */ + // @ts-ignore + public hashCode(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.IntrospectionException.d.ts b/packages/types/dist/typings/jdk/java.beans.IntrospectionException.d.ts new file mode 100644 index 00000000..e9b3fd61 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.IntrospectionException.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + class IntrospectionException extends java.lang.Exception { + /** + * Constructs an IntrospectionException with a + * detailed message. + */ + // @ts-ignore + constructor(mess: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.Introspector.d.ts b/packages/types/dist/typings/jdk/java.beans.Introspector.d.ts new file mode 100644 index 00000000..e5088b30 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.Introspector.d.ts @@ -0,0 +1,114 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + class Introspector extends java.lang.Object { + // @ts-ignore + public static USE_ALL_BEANINFO: number; + // @ts-ignore + public static IGNORE_IMMEDIATE_BEANINFO: number; + // @ts-ignore + public static IGNORE_ALL_BEANINFO: number; + /** + * Introspect on a Java Bean and learn about all its properties, exposed + * methods, and events. + *

+ * If the BeanInfo class for a Java Bean has been previously Introspected + * then the BeanInfo class is retrieved from the BeanInfo cache. + */ + // @ts-ignore + public static getBeanInfo(beanClass: java.lang.Class): java.beans.BeanInfo; + /** + * Introspect on a Java bean and learn about all its properties, exposed + * methods, and events, subject to some control flags. + *

+ * If the BeanInfo class for a Java Bean has been previously Introspected + * based on the same arguments then the BeanInfo class is retrieved + * from the BeanInfo cache. + */ + // @ts-ignore + public static getBeanInfo(beanClass: java.lang.Class, flags: number): java.beans.BeanInfo; + /** + * Introspect on a Java bean and learn all about its properties, exposed + * methods, below a given "stop" point. + *

+ * If the BeanInfo class for a Java Bean has been previously Introspected + * based on the same arguments, then the BeanInfo class is retrieved + * from the BeanInfo cache. + */ + // @ts-ignore + public static getBeanInfo(beanClass: java.lang.Class, stopClass: java.lang.Class): java.beans.BeanInfo; + /** + * Introspect on a Java Bean and learn about all its properties, + * exposed methods and events, below a given {@code stopClass} point + * subject to some control {@code flags}. + *

+ *
USE_ALL_BEANINFO
+ *
Any BeanInfo that can be discovered will be used.
+ *
IGNORE_IMMEDIATE_BEANINFO
+ *
Any BeanInfo associated with the specified {@code beanClass} will be ignored.
+ *
IGNORE_ALL_BEANINFO
+ *
Any BeanInfo associated with the specified {@code beanClass} + * or any of its parent classes will be ignored.
+ *
+ * Any methods/properties/events in the {@code stopClass} + * or in its parent classes will be ignored in the analysis. + *

+ * If the BeanInfo class for a Java Bean has been + * previously introspected based on the same arguments then + * the BeanInfo class is retrieved from the BeanInfo cache. + */ + // @ts-ignore + public static getBeanInfo(beanClass: java.lang.Class, stopClass: java.lang.Class, flags: number): java.beans.BeanInfo; + /** + * Utility method to take a string and convert it to normal Java variable + * name capitalization. This normally means converting the first + * character from upper case to lower case, but in the (unusual) special + * case when there is more than one character and both the first and + * second characters are upper case, we leave it alone. + *

+ * Thus "FooBah" becomes "fooBah" and "X" becomes "x", but "URL" stays + * as "URL". + */ + // @ts-ignore + public static decapitalize(name: string): string; + /** + * Gets the list of package names that will be used for + * finding BeanInfo classes. + */ + // @ts-ignore + public static getBeanInfoSearchPath(): java.lang.String[]; + /** + * Change the list of package names that will be used for + * finding BeanInfo classes. The behaviour of + * this method is undefined if parameter path + * is null. + *

First, if there is a security manager, its checkPropertiesAccess + * method is called. This could result in a SecurityException. + */ + // @ts-ignore + public static setBeanInfoSearchPath(path: string): void; + /** + * Flush all of the Introspector's internal caches. This method is + * not normally required. It is normally only needed by advanced + * tools that update existing "Class" objects in-place and need + * to make the Introspector re-analyze existing Class objects. + */ + // @ts-ignore + public static flushCaches(): void; + /** + * Flush the Introspector's internal cached information for a given class. + * This method is not normally required. It is normally only needed + * by advanced tools that update existing "Class" objects in-place + * and need to make the Introspector re-analyze an existing Class object. + * Note that only the direct state associated with the target Class + * object is flushed. We do not flush state for other Class objects + * with the same name, nor do we flush state for any related Class + * objects (such as subclasses), even though their state may include + * information indirectly obtained from the target Class object. + */ + // @ts-ignore + public static flushFromCaches(clz: java.lang.Class): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.MethodDescriptor.d.ts b/packages/types/dist/typings/jdk/java.beans.MethodDescriptor.d.ts new file mode 100644 index 00000000..09199507 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.MethodDescriptor.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + class MethodDescriptor extends java.beans.FeatureDescriptor { + /** + * Constructs a MethodDescriptor from a + * Method. + */ + // @ts-ignore + constructor(method: java.lang.reflect.Method) + /** + * Constructs a MethodDescriptor from a + * Method providing descriptive information for each + * of the method's parameters. + */ + // @ts-ignore + constructor(method: java.lang.reflect.Method, parameterDescriptors: java.beans.ParameterDescriptor) + /** + * Gets the method that this MethodDescriptor encapsulates. + */ + // @ts-ignore + public getMethod(): java.lang.reflect.Method; + /** + * Gets the ParameterDescriptor for each of this MethodDescriptor's + * method's parameters. + */ + // @ts-ignore + public getParameterDescriptors(): java.beans.ParameterDescriptor[]; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.ParameterDescriptor.d.ts b/packages/types/dist/typings/jdk/java.beans.ParameterDescriptor.d.ts new file mode 100644 index 00000000..d1672f46 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.ParameterDescriptor.d.ts @@ -0,0 +1,13 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + class ParameterDescriptor extends java.beans.FeatureDescriptor { + /** + * Public default constructor. + */ + // @ts-ignore + constructor() + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.PersistenceDelegate.d.ts b/packages/types/dist/typings/jdk/java.beans.PersistenceDelegate.d.ts new file mode 100644 index 00000000..512959b9 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.PersistenceDelegate.d.ts @@ -0,0 +1,94 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + abstract class PersistenceDelegate extends java.lang.Object { + // @ts-ignore + constructor() + /** + * The writeObject is a single entry point to the persistence + * and is used by a Encoder in the traditional + * mode of delegation. Although this method is not final, + * it should not need to be subclassed under normal circumstances. + *

+ * This implementation first checks to see if the stream + * has already encountered this object. Next the + * mutatesTo method is called to see if + * that candidate returned from the stream can + * be mutated into an accurate copy of oldInstance. + * If it can, the initialize method is called to + * perform the initialization. If not, the candidate is removed + * from the stream, and the instantiate method + * is called to create a new candidate for this object. + */ + // @ts-ignore + public writeObject(oldInstance: java.lang.Object, out: java.beans.Encoder): void; + /** + * Returns true if an equivalent copy of oldInstance may be + * created by applying a series of statements to newInstance. + * In the specification of this method, we mean by equivalent that the modified instance + * is indistinguishable from oldInstance in the behavior + * of the relevant methods in its public API. [Note: we use the + * phrase relevant methods rather than all methods + * here only because, to be strictly correct, methods like hashCode + * and toString prevent most classes from producing truly + * indistinguishable copies of their instances]. + *

+ * The default behavior returns true + * if the classes of the two instances are the same. + */ + // @ts-ignore + protected mutatesTo(oldInstance: java.lang.Object, newInstance: java.lang.Object): boolean; + /** + * Returns an expression whose value is oldInstance. + * This method is used to characterize the constructor + * or factory method that should be used to create the given object. + * For example, the instantiate method of the persistence + * delegate for the Field class could be defined as follows: + *

+             * Field f = (Field)oldInstance;
+             * return new Expression(f, f.getDeclaringClass(), "getField", new Object[]{f.getName()});
+             * 
+ * Note that we declare the value of the returned expression so that + * the value of the expression (as returned by getValue) + * will be identical to oldInstance. + */ + // @ts-ignore + protected abstract instantiate(oldInstance: java.lang.Object, out: java.beans.Encoder): java.beans.Expression; + /** + * Produce a series of statements with side effects on newInstance + * so that the new instance becomes equivalent to oldInstance. + * In the specification of this method, we mean by equivalent that, after the method + * returns, the modified instance is indistinguishable from + * newInstance in the behavior of all methods in its + * public API. + *

+ * The implementation typically achieves this goal by producing a series of + * "what happened" statements involving the oldInstance + * and its publicly available state. These statements are sent + * to the output stream using its writeExpression + * method which returns an expression involving elements in + * a cloned environment simulating the state of an input stream during + * reading. Each statement returned will have had all instances + * the old environment replaced with objects which exist in the new + * one. In particular, references to the target of these statements, + * which start out as references to oldInstance are returned + * as references to the newInstance instead. + * Executing these statements effects an incremental + * alignment of the state of the two objects as a series of + * modifications to the objects in the new environment. + * By the time the initialize method returns it should be impossible + * to tell the two instances apart by using their public APIs. + * Most importantly, the sequence of steps that were used to make + * these objects appear equivalent will have been recorded + * by the output stream and will form the actual output when + * the stream is flushed. + *

+ * The default implementation, calls the initialize + * method of the type's superclass. + */ + // @ts-ignore + protected initialize(type: java.lang.Class, oldInstance: java.lang.Object, newInstance: java.lang.Object, out: java.beans.Encoder): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.PropertyChangeEvent.d.ts b/packages/types/dist/typings/jdk/java.beans.PropertyChangeEvent.d.ts new file mode 100644 index 00000000..bc62345c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.PropertyChangeEvent.d.ts @@ -0,0 +1,47 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + class PropertyChangeEvent extends java.util.EventObject { + /** + * Constructs a new {@code PropertyChangeEvent}. + */ + // @ts-ignore + constructor(source: java.lang.Object, propertyName: string, oldValue: java.lang.Object, newValue: java.lang.Object) + /** + * Gets the programmatic name of the property that was changed. + */ + // @ts-ignore + public getPropertyName(): string; + /** + * Gets the new value for the property, expressed as an Object. + */ + // @ts-ignore + public getNewValue(): java.lang.Object; + /** + * Gets the old value for the property, expressed as an Object. + */ + // @ts-ignore + public getOldValue(): java.lang.Object; + /** + * Sets the propagationId object for the event. + */ + // @ts-ignore + public setPropagationId(propagationId: java.lang.Object): void; + /** + * The "propagationId" field is reserved for future use. In Beans 1.0 + * the sole requirement is that if a listener catches a PropertyChangeEvent + * and then fires a PropertyChangeEvent of its own, then it should + * make sure that it propagates the propagationId field from its + * incoming event to its outgoing event. + */ + // @ts-ignore + public getPropagationId(): java.lang.Object; + /** + * Returns a string representation of the object. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.PropertyChangeListener.d.ts b/packages/types/dist/typings/jdk/java.beans.PropertyChangeListener.d.ts new file mode 100644 index 00000000..aa7ecc23 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.PropertyChangeListener.d.ts @@ -0,0 +1,13 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + interface PropertyChangeListener { + /** + * This method gets called when a bound property is changed. + */ + // @ts-ignore + propertyChange(evt: java.beans.PropertyChangeEvent): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.PropertyChangeListenerProxy.d.ts b/packages/types/dist/typings/jdk/java.beans.PropertyChangeListenerProxy.d.ts new file mode 100644 index 00000000..2d702796 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.PropertyChangeListenerProxy.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + class PropertyChangeListenerProxy extends java.util.EventListenerProxy { + /** + * Constructor which binds the {@code PropertyChangeListener} + * to a specific property. + */ + // @ts-ignore + constructor(propertyName: string, listener: java.beans.PropertyChangeListener) + /** + * Forwards the property change event to the listener delegate. + */ + // @ts-ignore + public propertyChange(event: java.beans.PropertyChangeEvent): void; + /** + * Returns the name of the named property associated with the listener. + */ + // @ts-ignore + public getPropertyName(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.PropertyChangeSupport.d.ts b/packages/types/dist/typings/jdk/java.beans.PropertyChangeSupport.d.ts new file mode 100644 index 00000000..db26b60f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.PropertyChangeSupport.d.ts @@ -0,0 +1,179 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + class PropertyChangeSupport extends java.lang.Object { + /** + * Constructs a PropertyChangeSupport object. + */ + // @ts-ignore + constructor(sourceBean: java.lang.Object) + /** + * Add a PropertyChangeListener to the listener list. + * The listener is registered for all properties. + * The same listener object may be added more than once, and will be called + * as many times as it is added. + * If listener is null, no exception is thrown and no action + * is taken. + */ + // @ts-ignore + public addPropertyChangeListener(listener: java.beans.PropertyChangeListener): void; + /** + * Remove a PropertyChangeListener from the listener list. + * This removes a PropertyChangeListener that was registered + * for all properties. + * If listener was added more than once to the same event + * source, it will be notified one less time after being removed. + * If listener is null, or was never added, no exception is + * thrown and no action is taken. + */ + // @ts-ignore + public removePropertyChangeListener(listener: java.beans.PropertyChangeListener): void; + /** + * Returns an array of all the listeners that were added to the + * PropertyChangeSupport object with addPropertyChangeListener(). + *

+ * If some listeners have been added with a named property, then + * the returned array will be a mixture of PropertyChangeListeners + * and PropertyChangeListenerProxys. If the calling + * method is interested in distinguishing the listeners then it must + * test each element to see if it's a + * PropertyChangeListenerProxy, perform the cast, and examine + * the parameter. + *

{@code
+             * PropertyChangeListener[] listeners = bean.getPropertyChangeListeners();
+             * for (int i = 0; i < listeners.length; i++) {
+             * if (listeners[i] instanceof PropertyChangeListenerProxy) {
+             * PropertyChangeListenerProxy proxy =
+             * (PropertyChangeListenerProxy)listeners[i];
+             * if (proxy.getPropertyName().equals("foo")) {
+             * // proxy is a PropertyChangeListener which was associated
+             * // with the property named "foo"
+             * }
+             * }
+             * }
+             * }
+ */ + // @ts-ignore + public getPropertyChangeListeners(): java.beans.PropertyChangeListener[]; + /** + * Add a PropertyChangeListener for a specific property. The listener + * will be invoked only when a call on firePropertyChange names that + * specific property. + * The same listener object may be added more than once. For each + * property, the listener will be invoked the number of times it was added + * for that property. + * If propertyName or listener is null, no + * exception is thrown and no action is taken. + */ + // @ts-ignore + public addPropertyChangeListener(propertyName: string, listener: java.beans.PropertyChangeListener): void; + /** + * Remove a PropertyChangeListener for a specific property. + * If listener was added more than once to the same event + * source for the specified property, it will be notified one less time + * after being removed. + * If propertyName is null, no exception is thrown and no + * action is taken. + * If listener is null, or was never added for the specified + * property, no exception is thrown and no action is taken. + */ + // @ts-ignore + public removePropertyChangeListener(propertyName: string, listener: java.beans.PropertyChangeListener): void; + /** + * Returns an array of all the listeners which have been associated + * with the named property. + */ + // @ts-ignore + public getPropertyChangeListeners(propertyName: string): java.beans.PropertyChangeListener[]; + /** + * Reports a bound property update to listeners + * that have been registered to track updates of + * all properties or a property with the specified name. + *

+ * No event is fired if old and new values are equal and non-null. + *

+ * This is merely a convenience wrapper around the more general + * {@link #firePropertyChange(PropertyChangeEvent)} method. + */ + // @ts-ignore + public firePropertyChange(propertyName: string, oldValue: java.lang.Object, newValue: java.lang.Object): void; + /** + * Reports an integer bound property update to listeners + * that have been registered to track updates of + * all properties or a property with the specified name. + *

+ * No event is fired if old and new values are equal. + *

+ * This is merely a convenience wrapper around the more general + * {@link #firePropertyChange(String, Object, Object)} method. + */ + // @ts-ignore + public firePropertyChange(propertyName: string, oldValue: number, newValue: number): void; + /** + * Reports a boolean bound property update to listeners + * that have been registered to track updates of + * all properties or a property with the specified name. + *

+ * No event is fired if old and new values are equal. + *

+ * This is merely a convenience wrapper around the more general + * {@link #firePropertyChange(String, Object, Object)} method. + */ + // @ts-ignore + public firePropertyChange(propertyName: string, oldValue: boolean, newValue: boolean): void; + /** + * Fires a property change event to listeners + * that have been registered to track updates of + * all properties or a property with the specified name. + *

+ * No event is fired if the given event's old and new values are equal and non-null. + */ + // @ts-ignore + public firePropertyChange(event: java.beans.PropertyChangeEvent): void; + /** + * Reports a bound indexed property update to listeners + * that have been registered to track updates of + * all properties or a property with the specified name. + *

+ * No event is fired if old and new values are equal and non-null. + *

+ * This is merely a convenience wrapper around the more general + * {@link #firePropertyChange(PropertyChangeEvent)} method. + */ + // @ts-ignore + public fireIndexedPropertyChange(propertyName: string, index: number, oldValue: java.lang.Object, newValue: java.lang.Object): void; + /** + * Reports an integer bound indexed property update to listeners + * that have been registered to track updates of + * all properties or a property with the specified name. + *

+ * No event is fired if old and new values are equal. + *

+ * This is merely a convenience wrapper around the more general + * {@link #fireIndexedPropertyChange(String, int, Object, Object)} method. + */ + // @ts-ignore + public fireIndexedPropertyChange(propertyName: string, index: number, oldValue: number, newValue: number): void; + /** + * Reports a boolean bound indexed property update to listeners + * that have been registered to track updates of + * all properties or a property with the specified name. + *

+ * No event is fired if old and new values are equal. + *

+ * This is merely a convenience wrapper around the more general + * {@link #fireIndexedPropertyChange(String, int, Object, Object)} method. + */ + // @ts-ignore + public fireIndexedPropertyChange(propertyName: string, index: number, oldValue: boolean, newValue: boolean): void; + /** + * Check if there are any listeners for a specific property, including + * those registered on all properties. If propertyName + * is null, only check for listeners registered on all properties. + */ + // @ts-ignore + public hasListeners(propertyName: string): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.PropertyDescriptor.d.ts b/packages/types/dist/typings/jdk/java.beans.PropertyDescriptor.d.ts new file mode 100644 index 00000000..abb759f8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.PropertyDescriptor.d.ts @@ -0,0 +1,124 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + class PropertyDescriptor extends java.beans.FeatureDescriptor { + /** + * Constructs a PropertyDescriptor for a property that follows + * the standard Java convention by having getFoo and setFoo + * accessor methods. Thus if the argument name is "fred", it will + * assume that the writer method is "setFred" and the reader method + * is "getFred" (or "isFred" for a boolean property). Note that the + * property name should start with a lower case character, which will + * be capitalized in the method names. + */ + // @ts-ignore + constructor(propertyName: string, beanClass: java.lang.Class) + /** + * This constructor takes the name of a simple property, and method + * names for reading and writing the property. + */ + // @ts-ignore + constructor(propertyName: string, beanClass: java.lang.Class, readMethodName: string, writeMethodName: string) + /** + * This constructor takes the name of a simple property, and Method + * objects for reading and writing the property. + */ + // @ts-ignore + constructor(propertyName: string, readMethod: java.lang.reflect.Method, writeMethod: java.lang.reflect.Method) + /** + * Returns the Java type info for the property. + * Note that the {@code Class} object may describe + * primitive Java types such as {@code int}. + * This type is returned by the read method + * or is used as the parameter type of the write method. + * Returns {@code null} if the type is an indexed property + * that does not support non-indexed access. + */ + // @ts-ignore + public getPropertyType(): java.lang.Class; + /** + * Gets the method that should be used to read the property value. + */ + // @ts-ignore + public getReadMethod(): java.lang.reflect.Method; + /** + * Sets the method that should be used to read the property value. + */ + // @ts-ignore + public setReadMethod(readMethod: java.lang.reflect.Method): void; + /** + * Gets the method that should be used to write the property value. + */ + // @ts-ignore + public getWriteMethod(): java.lang.reflect.Method; + /** + * Sets the method that should be used to write the property value. + */ + // @ts-ignore + public setWriteMethod(writeMethod: java.lang.reflect.Method): void; + /** + * Updates to "bound" properties will cause a "PropertyChange" event to + * get fired when the property is changed. + */ + // @ts-ignore + public isBound(): boolean; + /** + * Updates to "bound" properties will cause a "PropertyChange" event to + * get fired when the property is changed. + */ + // @ts-ignore + public setBound(bound: boolean): void; + /** + * Attempted updates to "Constrained" properties will cause a "VetoableChange" + * event to get fired when the property is changed. + */ + // @ts-ignore + public isConstrained(): boolean; + /** + * Attempted updates to "Constrained" properties will cause a "VetoableChange" + * event to get fired when the property is changed. + */ + // @ts-ignore + public setConstrained(constrained: boolean): void; + /** + * Normally PropertyEditors will be found using the PropertyEditorManager. + * However if for some reason you want to associate a particular + * PropertyEditor with a given property, then you can do it with + * this method. + */ + // @ts-ignore + public setPropertyEditorClass(propertyEditorClass: java.lang.Class): void; + /** + * Gets any explicit PropertyEditor Class that has been registered + * for this property. + */ + // @ts-ignore + public getPropertyEditorClass(): java.lang.Class; + /** + * Constructs an instance of a property editor using the current + * property editor class. + *

+ * If the property editor class has a public constructor that takes an + * Object argument then it will be invoked using the bean parameter + * as the argument. Otherwise, the default constructor will be invoked. + */ + // @ts-ignore + public createPropertyEditor(bean: java.lang.Object): java.beans.PropertyEditor; + /** + * Compares this PropertyDescriptor against the specified object. + * Returns true if the objects are the same. Two PropertyDescriptors + * are the same if the read, write, property types, property editor and + * flags are equivalent. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a hash code value for the object. + * See {@link java.lang.Object#hashCode} for a complete description. + */ + // @ts-ignore + public hashCode(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.PropertyEditor.d.ts b/packages/types/dist/typings/jdk/java.beans.PropertyEditor.d.ts new file mode 100644 index 00000000..4c781029 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.PropertyEditor.d.ts @@ -0,0 +1,123 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + interface PropertyEditor { + /** + * Set (or change) the object that is to be edited. Primitive types such + * as "int" must be wrapped as the corresponding object type such as + * "java.lang.Integer". + */ + // @ts-ignore + setValue(value: java.lang.Object): void; + /** + * Gets the property value. + */ + // @ts-ignore + getValue(): java.lang.Object; + /** + * Determines whether this property editor is paintable. + */ + // @ts-ignore + isPaintable(): boolean; + /** + * Paint a representation of the value into a given area of screen + * real estate. Note that the propertyEditor is responsible for doing + * its own clipping so that it fits into the given rectangle. + *

+ * If the PropertyEditor doesn't honor paint requests (see isPaintable) + * this method should be a silent noop. + *

+ * The given Graphics object will have the default font, color, etc of + * the parent container. The PropertyEditor may change graphics attributes + * such as font and color and doesn't need to restore the old values. + */ + // @ts-ignore + paintValue(gfx: java.awt.Graphics, box: java.awt.Rectangle): void; + /** + * Returns a fragment of Java code that can be used to set a property + * to match the editors current state. This method is intended + * for use when generating Java code to reflect changes made through the + * property editor. + *

+ * The code fragment should be context free and must be a legal Java + * expression as specified by the JLS. + *

+ * Specifically, if the expression represents a computation then all + * classes and static members should be fully qualified. This rule + * applies to constructors, static methods and non primitive arguments. + *

+ * Caution should be used when evaluating the expression as it may throw + * exceptions. In particular, code generators must ensure that generated + * code will compile in the presence of an expression that can throw + * checked exceptions. + *

+ * Example results are: + *

    + *
  • Primitive expresssion: 2 + *
  • Class constructor: new java.awt.Color(127,127,34) + *
  • Static field: java.awt.Color.orange + *
  • Static method: javax.swing.Box.createRigidArea(new + * java.awt.Dimension(0, 5)) + *
+ */ + // @ts-ignore + getJavaInitializationString(): string; + /** + * Gets the property value as text. + */ + // @ts-ignore + getAsText(): string; + /** + * Set the property value by parsing a given String. May raise + * java.lang.IllegalArgumentException if either the String is + * badly formatted or if this kind of property can't be expressed + * as text. + */ + // @ts-ignore + setAsText(text: string): void; + /** + * If the property value must be one of a set of known tagged values, + * then this method should return an array of the tags. This can + * be used to represent (for example) enum values. If a PropertyEditor + * supports tags, then it should support the use of setAsText with + * a tag value as a way of setting the value and the use of getAsText + * to identify the current value. + */ + // @ts-ignore + getTags(): java.lang.String[]; + /** + * A PropertyEditor may choose to make available a full custom Component + * that edits its property value. It is the responsibility of the + * PropertyEditor to hook itself up to its editor Component itself and + * to report property value changes by firing a PropertyChange event. + *

+ * The higher-level code that calls getCustomEditor may either embed + * the Component in some larger property sheet, or it may put it in + * its own individual dialog, or ... + */ + // @ts-ignore + getCustomEditor(): java.awt.Component; + /** + * Determines whether this property editor supports a custom editor. + */ + // @ts-ignore + supportsCustomEditor(): boolean; + /** + * Adds a listener for the value change. + * When the property editor changes its value + * it should fire a {@link PropertyChangeEvent} + * on all registered {@link PropertyChangeListener}s, + * specifying the {@code null} value for the property name + * and itself as the source. + */ + // @ts-ignore + addPropertyChangeListener(listener: java.beans.PropertyChangeListener): void; + /** + * Removes a listener for the value change. + */ + // @ts-ignore + removePropertyChangeListener(listener: java.beans.PropertyChangeListener): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.PropertyEditorManager.d.ts b/packages/types/dist/typings/jdk/java.beans.PropertyEditorManager.d.ts new file mode 100644 index 00000000..0ada3b99 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.PropertyEditorManager.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + class PropertyEditorManager extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Registers an editor class to edit values of the given target class. + * If the editor class is {@code null}, + * then any existing definition will be removed. + * Thus this method can be used to cancel the registration. + * The registration is canceled automatically + * if either the target or editor class is unloaded. + *

+ * If there is a security manager, its {@code checkPropertiesAccess} + * method is called. This could result in a {@linkplain SecurityException}. + */ + // @ts-ignore + public static registerEditor(targetType: java.lang.Class, editorClass: java.lang.Class): void; + /** + * Locate a value editor for a given target type. + */ + // @ts-ignore + public static findEditor(targetType: java.lang.Class): java.beans.PropertyEditor; + /** + * Gets the package names that will be searched for property editors. + */ + // @ts-ignore + public static getEditorSearchPath(): java.lang.String[]; + /** + * Change the list of package names that will be used for + * finding property editors. + *

First, if there is a security manager, its checkPropertiesAccess + * method is called. This could result in a SecurityException. + */ + // @ts-ignore + public static setEditorSearchPath(path: string): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.PropertyEditorSupport.d.ts b/packages/types/dist/typings/jdk/java.beans.PropertyEditorSupport.d.ts new file mode 100644 index 00000000..dcecae39 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.PropertyEditorSupport.d.ts @@ -0,0 +1,141 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + class PropertyEditorSupport extends java.lang.Object { + /** + * Constructs a PropertyEditorSupport object. + */ + // @ts-ignore + constructor() + /** + * Constructs a PropertyEditorSupport object. + */ + // @ts-ignore + constructor(source: java.lang.Object) + /** + * Returns the bean that is used as the + * source of events. If the source has not + * been explicitly set then this instance of + * PropertyEditorSupport is returned. + */ + // @ts-ignore + public getSource(): java.lang.Object; + /** + * Sets the source bean. + *

+ * The source bean is used as the source of events + * for the property changes. This source should be used for information + * purposes only and should not be modified by the PropertyEditor. + */ + // @ts-ignore + public setSource(source: java.lang.Object): void; + /** + * Set (or change) the object that is to be edited. + */ + // @ts-ignore + public setValue(value: java.lang.Object): void; + /** + * Gets the value of the property. + */ + // @ts-ignore + public getValue(): java.lang.Object; + /** + * Determines whether the class will honor the paintValue method. + */ + // @ts-ignore + public isPaintable(): boolean; + /** + * Paint a representation of the value into a given area of screen + * real estate. Note that the propertyEditor is responsible for doing + * its own clipping so that it fits into the given rectangle. + *

+ * If the PropertyEditor doesn't honor paint requests (see isPaintable) + * this method should be a silent noop. + */ + // @ts-ignore + public paintValue(gfx: java.awt.Graphics, box: java.awt.Rectangle): void; + /** + * This method is intended for use when generating Java code to set + * the value of the property. It should return a fragment of Java code + * that can be used to initialize a variable with the current property + * value. + *

+ * Example results are "2", "new Color(127,127,34)", "Color.orange", etc. + */ + // @ts-ignore + public getJavaInitializationString(): string; + /** + * Gets the property value as a string suitable for presentation + * to a human to edit. + */ + // @ts-ignore + public getAsText(): string; + /** + * Sets the property value by parsing a given String. May raise + * java.lang.IllegalArgumentException if either the String is + * badly formatted or if this kind of property can't be expressed + * as text. + */ + // @ts-ignore + public setAsText(text: string): void; + /** + * If the property value must be one of a set of known tagged values, + * then this method should return an array of the tag values. This can + * be used to represent (for example) enum values. If a PropertyEditor + * supports tags, then it should support the use of setAsText with + * a tag value as a way of setting the value. + */ + // @ts-ignore + public getTags(): java.lang.String[]; + /** + * A PropertyEditor may chose to make available a full custom Component + * that edits its property value. It is the responsibility of the + * PropertyEditor to hook itself up to its editor Component itself and + * to report property value changes by firing a PropertyChange event. + *

+ * The higher-level code that calls getCustomEditor may either embed + * the Component in some larger property sheet, or it may put it in + * its own individual dialog, or ... + */ + // @ts-ignore + public getCustomEditor(): java.awt.Component; + /** + * Determines whether the propertyEditor can provide a custom editor. + */ + // @ts-ignore + public supportsCustomEditor(): boolean; + /** + * Adds a listener for the value change. + * When the property editor changes its value + * it should fire a {@link PropertyChangeEvent} + * on all registered {@link PropertyChangeListener}s, + * specifying the {@code null} value for the property name. + * If the source property is set, + * it should be used as the source of the event. + *

+ * The same listener object may be added more than once, + * and will be called as many times as it is added. + * If {@code listener} is {@code null}, + * no exception is thrown and no action is taken. + */ + // @ts-ignore + public addPropertyChangeListener(listener: java.beans.PropertyChangeListener): void; + /** + * Removes a listener for the value change. + *

+ * If the same listener was added more than once, + * it will be notified one less time after being removed. + * If {@code listener} is {@code null}, or was never added, + * no exception is thrown and no action is taken. + */ + // @ts-ignore + public removePropertyChangeListener(listener: java.beans.PropertyChangeListener): void; + /** + * Report that we have been modified to any interested listeners. + */ + // @ts-ignore + public firePropertyChange(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.PropertyVetoException.d.ts b/packages/types/dist/typings/jdk/java.beans.PropertyVetoException.d.ts new file mode 100644 index 00000000..f7c4f161 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.PropertyVetoException.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + class PropertyVetoException extends java.lang.Exception { + /** + * Constructs a PropertyVetoException with a + * detailed message. + */ + // @ts-ignore + constructor(mess: string, evt: java.beans.PropertyChangeEvent) + /** + * Gets the vetoed PropertyChangeEvent. + */ + // @ts-ignore + public getPropertyChangeEvent(): java.beans.PropertyChangeEvent; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.SimpleBeanInfo.d.ts b/packages/types/dist/typings/jdk/java.beans.SimpleBeanInfo.d.ts new file mode 100644 index 00000000..9de7e488 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.SimpleBeanInfo.d.ts @@ -0,0 +1,68 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + class SimpleBeanInfo extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Deny knowledge about the class and customizer of the bean. + * You can override this if you wish to provide explicit info. + */ + // @ts-ignore + public getBeanDescriptor(): java.beans.BeanDescriptor; + /** + * Deny knowledge of properties. You can override this + * if you wish to provide explicit property info. + */ + // @ts-ignore + public getPropertyDescriptors(): java.beans.PropertyDescriptor[]; + /** + * Deny knowledge of a default property. You can override this + * if you wish to define a default property for the bean. + */ + // @ts-ignore + public getDefaultPropertyIndex(): number; + /** + * Deny knowledge of event sets. You can override this + * if you wish to provide explicit event set info. + */ + // @ts-ignore + public getEventSetDescriptors(): java.beans.EventSetDescriptor[]; + /** + * Deny knowledge of a default event. You can override this + * if you wish to define a default event for the bean. + */ + // @ts-ignore + public getDefaultEventIndex(): number; + /** + * Deny knowledge of methods. You can override this + * if you wish to provide explicit method info. + */ + // @ts-ignore + public getMethodDescriptors(): java.beans.MethodDescriptor[]; + /** + * Claim there are no other relevant BeanInfo objects. You + * may override this if you want to (for example) return a + * BeanInfo for a base class. + */ + // @ts-ignore + public getAdditionalBeanInfo(): java.beans.BeanInfo[]; + /** + * Claim there are no icons available. You can override + * this if you want to provide icons for your bean. + */ + // @ts-ignore + public getIcon(iconKind: number): java.awt.Image; + /** + * This is a utility method to help in loading icon images. + * It takes the name of a resource file associated with the + * current object's class file and loads an image object + * from that file. Typically images will be GIFs. + *

+ */ + // @ts-ignore + public loadImage(resourceName: string): java.awt.Image; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.Statement.d.ts b/packages/types/dist/typings/jdk/java.beans.Statement.d.ts new file mode 100644 index 00000000..47d05ee6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.Statement.d.ts @@ -0,0 +1,80 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + class Statement extends java.lang.Object { + /** + * Creates a new {@link Statement} object + * for the specified target object to invoke the method + * specified by the name and by the array of arguments. + *

+ * The {@code target} and the {@code methodName} values should not be {@code null}. + * Otherwise an attempt to execute this {@code Expression} + * will result in a {@code NullPointerException}. + * If the {@code arguments} value is {@code null}, + * an empty array is used as the value of the {@code arguments} property. + */ + // @ts-ignore + constructor(target: java.lang.Object, methodName: string, arguments: java.lang.Object) + /** + * Returns the target object of this statement. + * If this method returns {@code null}, + * the {@link #execute} method + * throws a {@code NullPointerException}. + */ + // @ts-ignore + public getTarget(): java.lang.Object; + /** + * Returns the name of the method to invoke. + * If this method returns {@code null}, + * the {@link #execute} method + * throws a {@code NullPointerException}. + */ + // @ts-ignore + public getMethodName(): string; + /** + * Returns the arguments for the method to invoke. + * The number of arguments and their types + * must match the method being called. + * {@code null} can be used as a synonym of an empty array. + */ + // @ts-ignore + public getArguments(): java.lang.Object[]; + /** + * The {@code execute} method finds a method whose name is the same + * as the {@code methodName} property, and invokes the method on + * the target. + * When the target's class defines many methods with the given name + * the implementation should choose the most specific method using + * the algorithm specified in the Java Language Specification + * (15.11). The dynamic class of the target and arguments are used + * in place of the compile-time type information and, like the + * {@link java.lang.reflect.Method} class itself, conversion between + * primitive values and their associated wrapper classes is handled + * internally. + *

+ * The following method types are handled as special cases: + *

    + *
  • + * Static methods may be called by using a class object as the target. + *
  • + * The reserved method name "new" may be used to call a class's constructor + * as if all classes defined static "new" methods. Constructor invocations + * are typically considered {@code Expression}s rather than {@code Statement}s + * as they return a value. + *
  • + * The method names "get" and "set" defined in the {@link java.util.List} + * interface may also be applied to array instances, mapping to + * the static methods of the same name in the {@code Array} class. + *
+ */ + // @ts-ignore + public execute(): void; + /** + * Prints the value of this statement using a Java-style syntax. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.Transient.d.ts b/packages/types/dist/typings/jdk/java.beans.Transient.d.ts new file mode 100644 index 00000000..a1cbede8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.Transient.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + interface Transient { + /** + * Returns whether or not the {@code Introspector} should + * construct artifacts for the annotated method. + */ + // @ts-ignore + value(): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.VetoableChangeListener.d.ts b/packages/types/dist/typings/jdk/java.beans.VetoableChangeListener.d.ts new file mode 100644 index 00000000..33c7b68b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.VetoableChangeListener.d.ts @@ -0,0 +1,13 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + interface VetoableChangeListener { + /** + * This method gets called when a constrained property is changed. + */ + // @ts-ignore + vetoableChange(evt: java.beans.PropertyChangeEvent): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.VetoableChangeListenerProxy.d.ts b/packages/types/dist/typings/jdk/java.beans.VetoableChangeListenerProxy.d.ts new file mode 100644 index 00000000..a0c687e7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.VetoableChangeListenerProxy.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + class VetoableChangeListenerProxy extends java.util.EventListenerProxy { + /** + * Constructor which binds the {@code VetoableChangeListener} + * to a specific property. + */ + // @ts-ignore + constructor(propertyName: string, listener: java.beans.VetoableChangeListener) + /** + * Forwards the property change event to the listener delegate. + */ + // @ts-ignore + public vetoableChange(event: java.beans.PropertyChangeEvent): void; + /** + * Returns the name of the named property associated with the listener. + */ + // @ts-ignore + public getPropertyName(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.VetoableChangeSupport.d.ts b/packages/types/dist/typings/jdk/java.beans.VetoableChangeSupport.d.ts new file mode 100644 index 00000000..7b0cd305 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.VetoableChangeSupport.d.ts @@ -0,0 +1,167 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + class VetoableChangeSupport extends java.lang.Object { + /** + * Constructs a VetoableChangeSupport object. + */ + // @ts-ignore + constructor(sourceBean: java.lang.Object) + /** + * Add a VetoableChangeListener to the listener list. + * The listener is registered for all properties. + * The same listener object may be added more than once, and will be called + * as many times as it is added. + * If listener is null, no exception is thrown and no action + * is taken. + */ + // @ts-ignore + public addVetoableChangeListener(listener: java.beans.VetoableChangeListener): void; + /** + * Remove a VetoableChangeListener from the listener list. + * This removes a VetoableChangeListener that was registered + * for all properties. + * If listener was added more than once to the same event + * source, it will be notified one less time after being removed. + * If listener is null, or was never added, no exception is + * thrown and no action is taken. + */ + // @ts-ignore + public removeVetoableChangeListener(listener: java.beans.VetoableChangeListener): void; + /** + * Returns an array of all the listeners that were added to the + * VetoableChangeSupport object with addVetoableChangeListener(). + *

+ * If some listeners have been added with a named property, then + * the returned array will be a mixture of VetoableChangeListeners + * and VetoableChangeListenerProxys. If the calling + * method is interested in distinguishing the listeners then it must + * test each element to see if it's a + * VetoableChangeListenerProxy, perform the cast, and examine + * the parameter. + *

{@code
+             * VetoableChangeListener[] listeners = bean.getVetoableChangeListeners();
+             * for (int i = 0; i < listeners.length; i++) {
+             * if (listeners[i] instanceof VetoableChangeListenerProxy) {
+             * VetoableChangeListenerProxy proxy =
+             * (VetoableChangeListenerProxy)listeners[i];
+             * if (proxy.getPropertyName().equals("foo")) {
+             * // proxy is a VetoableChangeListener which was associated
+             * // with the property named "foo"
+             * }
+             * }
+             * }
+             * }
+ */ + // @ts-ignore + public getVetoableChangeListeners(): java.beans.VetoableChangeListener[]; + /** + * Add a VetoableChangeListener for a specific property. The listener + * will be invoked only when a call on fireVetoableChange names that + * specific property. + * The same listener object may be added more than once. For each + * property, the listener will be invoked the number of times it was added + * for that property. + * If propertyName or listener is null, no + * exception is thrown and no action is taken. + */ + // @ts-ignore + public addVetoableChangeListener(propertyName: string, listener: java.beans.VetoableChangeListener): void; + /** + * Remove a VetoableChangeListener for a specific property. + * If listener was added more than once to the same event + * source for the specified property, it will be notified one less time + * after being removed. + * If propertyName is null, no exception is thrown and no + * action is taken. + * If listener is null, or was never added for the specified + * property, no exception is thrown and no action is taken. + */ + // @ts-ignore + public removeVetoableChangeListener(propertyName: string, listener: java.beans.VetoableChangeListener): void; + /** + * Returns an array of all the listeners which have been associated + * with the named property. + */ + // @ts-ignore + public getVetoableChangeListeners(propertyName: string): java.beans.VetoableChangeListener[]; + /** + * Reports a constrained property update to listeners + * that have been registered to track updates of + * all properties or a property with the specified name. + *

+ * Any listener can throw a {@code PropertyVetoException} to veto the update. + * If one of the listeners vetoes the update, this method passes + * a new "undo" {@code PropertyChangeEvent} that reverts to the old value + * to all listeners that already confirmed this update + * and throws the {@code PropertyVetoException} again. + *

+ * No event is fired if old and new values are equal and non-null. + *

+ * This is merely a convenience wrapper around the more general + * {@link #fireVetoableChange(PropertyChangeEvent)} method. + */ + // @ts-ignore + public fireVetoableChange(propertyName: string, oldValue: java.lang.Object, newValue: java.lang.Object): void; + /** + * Reports an integer constrained property update to listeners + * that have been registered to track updates of + * all properties or a property with the specified name. + *

+ * Any listener can throw a {@code PropertyVetoException} to veto the update. + * If one of the listeners vetoes the update, this method passes + * a new "undo" {@code PropertyChangeEvent} that reverts to the old value + * to all listeners that already confirmed this update + * and throws the {@code PropertyVetoException} again. + *

+ * No event is fired if old and new values are equal. + *

+ * This is merely a convenience wrapper around the more general + * {@link #fireVetoableChange(String, Object, Object)} method. + */ + // @ts-ignore + public fireVetoableChange(propertyName: string, oldValue: number, newValue: number): void; + /** + * Reports a boolean constrained property update to listeners + * that have been registered to track updates of + * all properties or a property with the specified name. + *

+ * Any listener can throw a {@code PropertyVetoException} to veto the update. + * If one of the listeners vetoes the update, this method passes + * a new "undo" {@code PropertyChangeEvent} that reverts to the old value + * to all listeners that already confirmed this update + * and throws the {@code PropertyVetoException} again. + *

+ * No event is fired if old and new values are equal. + *

+ * This is merely a convenience wrapper around the more general + * {@link #fireVetoableChange(String, Object, Object)} method. + */ + // @ts-ignore + public fireVetoableChange(propertyName: string, oldValue: boolean, newValue: boolean): void; + /** + * Fires a property change event to listeners + * that have been registered to track updates of + * all properties or a property with the specified name. + *

+ * Any listener can throw a {@code PropertyVetoException} to veto the update. + * If one of the listeners vetoes the update, this method passes + * a new "undo" {@code PropertyChangeEvent} that reverts to the old value + * to all listeners that already confirmed this update + * and throws the {@code PropertyVetoException} again. + *

+ * No event is fired if the given event's old and new values are equal and non-null. + */ + // @ts-ignore + public fireVetoableChange(event: java.beans.PropertyChangeEvent): void; + /** + * Check if there are any listeners for a specific property, including + * those registered on all properties. If propertyName + * is null, only check for listeners registered on all properties. + */ + // @ts-ignore + public hasListeners(propertyName: string): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.Visibility.d.ts b/packages/types/dist/typings/jdk/java.beans.Visibility.d.ts new file mode 100644 index 00000000..589b5d1f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.Visibility.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + interface Visibility { + /** + * Determines whether this bean needs a GUI. + */ + // @ts-ignore + needsGui(): boolean; + /** + * This method instructs the bean that it should not use the Gui. + */ + // @ts-ignore + dontUseGui(): void; + /** + * This method instructs the bean that it is OK to use the Gui. + */ + // @ts-ignore + okToUseGui(): void; + /** + * Determines whether this bean is avoiding using a GUI. + */ + // @ts-ignore + avoidingGui(): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.XMLDecoder.d.ts b/packages/types/dist/typings/jdk/java.beans.XMLDecoder.d.ts new file mode 100644 index 00000000..14d59b56 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.XMLDecoder.d.ts @@ -0,0 +1,88 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + class XMLDecoder extends java.lang.Object { + /** + * Creates a new input stream for reading archives + * created by the XMLEncoder class. + */ + // @ts-ignore + constructor(input: java.io.InputStream) + /** + * Creates a new input stream for reading archives + * created by the XMLEncoder class. + */ + // @ts-ignore + constructor(input: java.io.InputStream, owner: java.lang.Object) + /** + * Creates a new input stream for reading archives + * created by the XMLEncoder class. + */ + // @ts-ignore + constructor(input: java.io.InputStream, owner: java.lang.Object, exceptionListener: java.beans.ExceptionListener) + /** + * Creates a new input stream for reading archives + * created by the XMLEncoder class. + */ + // @ts-ignore + constructor(input: java.io.InputStream, owner: java.lang.Object, exceptionListener: java.beans.ExceptionListener, cl: java.lang.ClassLoader) + /** + * Creates a new decoder to parse XML archives + * created by the {@code XMLEncoder} class. + * If the input source {@code is} is {@code null}, + * no exception is thrown and no parsing is performed. + * This behavior is similar to behavior of other constructors + * that use {@code InputStream} as a parameter. + */ + // @ts-ignore + constructor(is: org.xml.sax.InputSource) + /** + * This method closes the input stream associated + * with this stream. + */ + // @ts-ignore + public close(): void; + /** + * Sets the exception handler for this stream to exceptionListener. + * The exception handler is notified when this stream catches recoverable + * exceptions. + */ + // @ts-ignore + public setExceptionListener(exceptionListener: java.beans.ExceptionListener): void; + /** + * Gets the exception handler for this stream. + */ + // @ts-ignore + public getExceptionListener(): java.beans.ExceptionListener; + /** + * Reads the next object from the underlying input stream. + */ + // @ts-ignore + public readObject(): java.lang.Object; + /** + * Sets the owner of this decoder to owner. + */ + // @ts-ignore + public setOwner(owner: java.lang.Object): void; + /** + * Gets the owner of this decoder. + */ + // @ts-ignore + public getOwner(): java.lang.Object; + /** + * Creates a new handler for SAX parser + * that can be used to parse embedded XML archives + * created by the {@code XMLEncoder} class. + * The {@code owner} should be used if parsed XML document contains + * the method call within context of the <java> element. + * The {@code null} value may cause illegal parsing in such case. + * The same problem may occur, if the {@code owner} class + * does not contain expected method to call. See details here. + */ + // @ts-ignore + public static createHandler(owner: java.lang.Object, el: java.beans.ExceptionListener, cl: java.lang.ClassLoader): org.xml.sax.helpers.DefaultHandler; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.XMLEncoder.d.ts b/packages/types/dist/typings/jdk/java.beans.XMLEncoder.d.ts new file mode 100644 index 00000000..aaf6ce73 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.XMLEncoder.d.ts @@ -0,0 +1,76 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + // @ts-ignore + class XMLEncoder extends java.beans.Encoder { + /** + * Creates a new XML encoder to write out JavaBeans + * to the stream out using an XML encoding. + */ + // @ts-ignore + constructor(out: java.io.OutputStream) + /** + * Creates a new XML encoder to write out JavaBeans + * to the stream out using the given charset + * starting from the given indentation. + */ + // @ts-ignore + constructor(out: java.io.OutputStream, charset: string, declaration: boolean, indentation: number) + /** + * Sets the owner of this encoder to owner. + */ + // @ts-ignore + public setOwner(owner: java.lang.Object): void; + /** + * Gets the owner of this encoder. + */ + // @ts-ignore + public getOwner(): java.lang.Object; + /** + * Write an XML representation of the specified object to the output. + */ + // @ts-ignore + public writeObject(o: java.lang.Object): void; + /** + * Records the Statement so that the Encoder will + * produce the actual output when the stream is flushed. + *

+ * This method should only be invoked within the context + * of initializing a persistence delegate. + */ + // @ts-ignore + public writeStatement(oldStm: java.beans.Statement): void; + /** + * Records the Expression so that the Encoder will + * produce the actual output when the stream is flushed. + *

+ * This method should only be invoked within the context of + * initializing a persistence delegate or setting up an encoder to + * read from a resource bundle. + *

+ * For more information about using resource bundles with the + * XMLEncoder, see + * http://java.sun.com/products/jfc/tsc/articles/persistence4/#i18n + */ + // @ts-ignore + public writeExpression(oldExp: java.beans.Expression): void; + /** + * This method writes out the preamble associated with the + * XML encoding if it has not been written already and + * then writes out all of the values that been + * written to the stream since the last time flush + * was called. After flushing, all internal references to the + * values that were written to this stream are cleared. + */ + // @ts-ignore + public flush(): void; + /** + * This method calls flush, writes the closing + * postamble and then closes the output stream associated + * with this stream. + */ + // @ts-ignore + public close(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContext.d.ts b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContext.d.ts new file mode 100644 index 00000000..2a2e113b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContext.d.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + namespace beancontext { + // @ts-ignore + interface BeanContext { + // @ts-ignore + globalHierarchyLock: java.lang.Object; + /** + * Instantiate the javaBean named as a + * child of this BeanContext. + * The implementation of the JavaBean is + * derived from the value of the beanName parameter, + * and is defined by the + * java.beans.Beans.instantiate() method. + */ + // @ts-ignore + instantiateChild(beanName: string): java.lang.Object; + /** + * Analagous to java.lang.ClassLoader.getResourceAsStream(), + * this method allows a BeanContext implementation + * to interpose behavior between the child Component + * and underlying ClassLoader. + */ + // @ts-ignore + getResourceAsStream(name: string, bcc: java.beans.beancontext.BeanContextChild): java.io.InputStream; + /** + * Analagous to java.lang.ClassLoader.getResource(), this + * method allows a BeanContext implementation to interpose + * behavior between the child Component + * and underlying ClassLoader. + */ + // @ts-ignore + getResource(name: string, bcc: java.beans.beancontext.BeanContextChild): java.net.URL; + /** + * Adds the specified BeanContextMembershipListener + * to receive BeanContextMembershipEvents from + * this BeanContext whenever it adds + * or removes a child Component(s). + */ + // @ts-ignore + addBeanContextMembershipListener(bcml: java.beans.beancontext.BeanContextMembershipListener): void; + /** + * Removes the specified BeanContextMembershipListener + * so that it no longer receives BeanContextMembershipEvents + * when the child Component(s) are added or removed. + */ + // @ts-ignore + removeBeanContextMembershipListener(bcml: java.beans.beancontext.BeanContextMembershipListener): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextChild.d.ts b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextChild.d.ts new file mode 100644 index 00000000..e10287d6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextChild.d.ts @@ -0,0 +1,61 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + namespace beancontext { + // @ts-ignore + interface BeanContextChild { + /** + *

+ * Objects that implement this interface, + * shall fire a java.beans.PropertyChangeEvent, with parameters: + * propertyName "beanContext", oldValue (the previous nesting + * BeanContext instance, or null), + * newValue (the current nesting + * BeanContext instance, or null). + *

+ * A change in the value of the nesting BeanContext property of this + * BeanContextChild may be vetoed by throwing the appropriate exception. + *

+ */ + // @ts-ignore + setBeanContext(bc: java.beans.beancontext.BeanContext): void; + /** + * Gets the BeanContext associated + * with this BeanContextChild. + */ + // @ts-ignore + getBeanContext(): java.beans.beancontext.BeanContext; + /** + * Adds a PropertyChangeListener + * to this BeanContextChild + * in order to receive a PropertyChangeEvent + * whenever the specified property has changed. + */ + // @ts-ignore + addPropertyChangeListener(name: string, pcl: java.beans.PropertyChangeListener): void; + /** + * Removes a PropertyChangeListener from this + * BeanContextChild so that it no longer + * receives PropertyChangeEvents when the + * specified property is changed. + */ + // @ts-ignore + removePropertyChangeListener(name: string, pcl: java.beans.PropertyChangeListener): void; + /** + * Adds a VetoableChangeListener to + * this BeanContextChild + * to receive events whenever the specified property changes. + */ + // @ts-ignore + addVetoableChangeListener(name: string, vcl: java.beans.VetoableChangeListener): void; + /** + * Removes a VetoableChangeListener from this + * BeanContextChild so that it no longer receives + * events when the specified property changes. + */ + // @ts-ignore + removeVetoableChangeListener(name: string, vcl: java.beans.VetoableChangeListener): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextChildComponentProxy.d.ts b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextChildComponentProxy.d.ts new file mode 100644 index 00000000..be07a368 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextChildComponentProxy.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + namespace beancontext { + // @ts-ignore + interface BeanContextChildComponentProxy { + /** + * Gets the java.awt.Component associated with + * this BeanContextChild. + */ + // @ts-ignore + getComponent(): java.awt.Component; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextChildSupport.d.ts b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextChildSupport.d.ts new file mode 100644 index 00000000..d234e469 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextChildSupport.d.ts @@ -0,0 +1,153 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + namespace beancontext { + // @ts-ignore + class BeanContextChildSupport extends java.lang.Object { + /** + * construct a BeanContextChildSupport where this class has been + * subclassed in order to implement the JavaBean component itself. + */ + // @ts-ignore + constructor() + /** + * construct a BeanContextChildSupport where the JavaBean component + * itself implements BeanContextChild, and encapsulates this, delegating + * that interface to this implementation + */ + // @ts-ignore + constructor(bcc: java.beans.beancontext.BeanContextChild) + // @ts-ignore + public beanContextChildPeer: java.beans.beancontext.BeanContextChild; + // @ts-ignore + protected pcSupport: java.beans.PropertyChangeSupport; + // @ts-ignore + protected vcSupport: java.beans.VetoableChangeSupport; + // @ts-ignore + protected beanContext: java.beans.beancontext.BeanContext; + // @ts-ignore + protected rejectedSetBCOnce: boolean; + /** + * Sets the BeanContext for + * this BeanContextChildSupport. + */ + // @ts-ignore + public setBeanContext(bc: java.beans.beancontext.BeanContext): void; + /** + * Gets the nesting BeanContext + * for this BeanContextChildSupport. + */ + // @ts-ignore + public getBeanContext(): java.beans.beancontext.BeanContext; + /** + * Add a PropertyChangeListener for a specific property. + * The same listener object may be added more than once. For each + * property, the listener will be invoked the number of times it was added + * for that property. + * If name or pcl is null, no exception is thrown + * and no action is taken. + */ + // @ts-ignore + public addPropertyChangeListener(name: string, pcl: java.beans.PropertyChangeListener): void; + /** + * Remove a PropertyChangeListener for a specific property. + * If pcl was added more than once to the same event + * source for the specified property, it will be notified one less time + * after being removed. + * If name is null, no exception is thrown + * and no action is taken. + * If pcl is null, or was never added for the specified + * property, no exception is thrown and no action is taken. + */ + // @ts-ignore + public removePropertyChangeListener(name: string, pcl: java.beans.PropertyChangeListener): void; + /** + * Add a VetoableChangeListener for a specific property. + * The same listener object may be added more than once. For each + * property, the listener will be invoked the number of times it was added + * for that property. + * If name or vcl is null, no exception is thrown + * and no action is taken. + */ + // @ts-ignore + public addVetoableChangeListener(name: string, vcl: java.beans.VetoableChangeListener): void; + /** + * Removes a VetoableChangeListener. + * If pcl was added more than once to the same event + * source for the specified property, it will be notified one less time + * after being removed. + * If name is null, no exception is thrown + * and no action is taken. + * If vcl is null, or was never added for the specified + * property, no exception is thrown and no action is taken. + */ + // @ts-ignore + public removeVetoableChangeListener(name: string, vcl: java.beans.VetoableChangeListener): void; + /** + * A service provided by the nesting BeanContext has been revoked. + * Subclasses may override this method in order to implement their own + * behaviors. + */ + // @ts-ignore + public serviceRevoked(bcsre: java.beans.beancontext.BeanContextServiceRevokedEvent): void; + /** + * A new service is available from the nesting BeanContext. + * Subclasses may override this method in order to implement their own + * behaviors + */ + // @ts-ignore + public serviceAvailable(bcsae: java.beans.beancontext.BeanContextServiceAvailableEvent): void; + /** + * Gets the BeanContextChild associated with this + * BeanContextChildSupport. + */ + // @ts-ignore + public getBeanContextChildPeer(): java.beans.beancontext.BeanContextChild; + /** + * Reports whether or not this class is a delegate of another. + */ + // @ts-ignore + public isDelegated(): boolean; + /** + * Report a bound property update to any registered listeners. No event is + * fired if old and new are equal and non-null. + */ + // @ts-ignore + public firePropertyChange(name: string, oldValue: java.lang.Object, newValue: java.lang.Object): void; + /** + * Report a vetoable property update to any registered listeners. + * If anyone vetos the change, then fire a new event + * reverting everyone to the old value and then rethrow + * the PropertyVetoException.

+ * No event is fired if old and new are equal and non-null. + *

+ */ + // @ts-ignore + public fireVetoableChange(name: string, oldValue: java.lang.Object, newValue: java.lang.Object): void; + /** + * Called from setBeanContext to validate (or otherwise) the + * pending change in the nesting BeanContext property value. + * Returning false will cause setBeanContext to throw + * PropertyVetoException. + */ + // @ts-ignore + public validatePendingSetBeanContext(newValue: java.beans.beancontext.BeanContext): boolean; + /** + * This method may be overridden by subclasses to provide their own + * release behaviors. When invoked any resources held by this instance + * obtained from its current BeanContext property should be released + * since the object is no longer nested within that BeanContext. + */ + // @ts-ignore + protected releaseBeanContextResources(): void; + /** + * This method may be overridden by subclasses to provide their own + * initialization behaviors. When invoked any resources required by the + * BeanContextChild should be obtained from the current BeanContext. + */ + // @ts-ignore + protected initializeBeanContextResources(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextContainerProxy.d.ts b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextContainerProxy.d.ts new file mode 100644 index 00000000..3e6f2acc --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextContainerProxy.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + namespace beancontext { + // @ts-ignore + interface BeanContextContainerProxy { + /** + * Gets the java.awt.Container associated + * with this BeanContext. + */ + // @ts-ignore + getContainer(): java.awt.Container; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextEvent.d.ts b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextEvent.d.ts new file mode 100644 index 00000000..32ac29ea --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextEvent.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + namespace beancontext { + // @ts-ignore + abstract class BeanContextEvent extends java.util.EventObject { + /** + * Contruct a BeanContextEvent + */ + // @ts-ignore + constructor(bc: java.beans.beancontext.BeanContext) + // @ts-ignore + protected propagatedFrom: java.beans.beancontext.BeanContext; + /** + * Gets the BeanContext associated with this event. + */ + // @ts-ignore + public getBeanContext(): java.beans.beancontext.BeanContext; + /** + * Sets the BeanContext from which this event was propagated. + */ + // @ts-ignore + public setPropagatedFrom(bc: java.beans.beancontext.BeanContext): void; + /** + * Gets the BeanContext from which this event was propagated. + */ + // @ts-ignore + public getPropagatedFrom(): java.beans.beancontext.BeanContext; + /** + * Reports whether or not this event is + * propagated from some other BeanContext. + */ + // @ts-ignore + public isPropagated(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextMembershipEvent.d.ts b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextMembershipEvent.d.ts new file mode 100644 index 00000000..03c8a4ef --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextMembershipEvent.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + namespace beancontext { + // @ts-ignore + class BeanContextMembershipEvent extends java.beans.beancontext.BeanContextEvent { + /** + * Contruct a BeanContextMembershipEvent + */ + // @ts-ignore + constructor(bc: java.beans.beancontext.BeanContext, changes: java.util.Collection) + /** + * Contruct a BeanContextMembershipEvent + */ + // @ts-ignore + constructor(bc: java.beans.beancontext.BeanContext, changes: java.lang.Object) + // @ts-ignore + protected children: java.util.Collection; + /** + * Gets the number of children affected by the notification. + */ + // @ts-ignore + public size(): number; + /** + * Is the child specified affected by the event? + */ + // @ts-ignore + public contains(child: java.lang.Object): boolean; + /** + * Gets the array of children affected by this event. + */ + // @ts-ignore + public toArray(): java.lang.Object[]; + /** + * Gets the array of children affected by this event. + */ + // @ts-ignore + public iterator(): java.util.Iterator; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextMembershipListener.d.ts b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextMembershipListener.d.ts new file mode 100644 index 00000000..68fbc885 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextMembershipListener.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + namespace beancontext { + // @ts-ignore + interface BeanContextMembershipListener { + /** + * Called when a child or list of children is added to a + * BeanContext that this listener is registered with. + */ + // @ts-ignore + childrenAdded(bcme: java.beans.beancontext.BeanContextMembershipEvent): void; + /** + * Called when a child or list of children is removed + * from a BeanContext that this listener + * is registered with. + */ + // @ts-ignore + childrenRemoved(bcme: java.beans.beancontext.BeanContextMembershipEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextProxy.d.ts b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextProxy.d.ts new file mode 100644 index 00000000..055d0c74 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextProxy.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + namespace beancontext { + // @ts-ignore + interface BeanContextProxy { + /** + * Gets the BeanContextChild (or subinterface) + * associated with this object. + */ + // @ts-ignore + getBeanContextProxy(): java.beans.beancontext.BeanContextChild; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServiceAvailableEvent.d.ts b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServiceAvailableEvent.d.ts new file mode 100644 index 00000000..bd510cd1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServiceAvailableEvent.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + namespace beancontext { + // @ts-ignore + class BeanContextServiceAvailableEvent extends java.beans.beancontext.BeanContextEvent { + /** + * Construct a BeanContextAvailableServiceEvent. + */ + // @ts-ignore + constructor(bcs: java.beans.beancontext.BeanContextServices, sc: java.lang.Class) + // @ts-ignore + protected serviceClass: java.lang.Class; + /** + * Gets the source as a reference of type BeanContextServices. + */ + // @ts-ignore + public getSourceAsBeanContextServices(): java.beans.beancontext.BeanContextServices; + /** + * Gets the service class that is the subject of this notification. + */ + // @ts-ignore + public getServiceClass(): java.lang.Class; + /** + * Gets the list of service dependent selectors. + */ + // @ts-ignore + public getCurrentServiceSelectors(): java.util.Iterator; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServiceProvider.d.ts b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServiceProvider.d.ts new file mode 100644 index 00000000..3293e880 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServiceProvider.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + namespace beancontext { + // @ts-ignore + interface BeanContextServiceProvider { + /** + * Invoked by BeanContextServices, this method + * requests an instance of a + * service from this BeanContextServiceProvider. + */ + // @ts-ignore + getService(bcs: java.beans.beancontext.BeanContextServices, requestor: java.lang.Object, serviceClass: java.lang.Class, serviceSelector: java.lang.Object): java.lang.Object; + /** + * Invoked by BeanContextServices, + * this method releases a nested BeanContextChild's + * (or any arbitrary object associated with a + * BeanContextChild) reference to the specified service. + */ + // @ts-ignore + releaseService(bcs: java.beans.beancontext.BeanContextServices, requestor: java.lang.Object, service: java.lang.Object): void; + /** + * Invoked by BeanContextServices, this method + * gets the current service selectors for the specified service. + * A service selector is a service specific parameter, + * typical examples of which could include: a + * parameter to a constructor for the service implementation class, + * a value for a particular service's property, or a key into a + * map of existing implementations. + */ + // @ts-ignore + getCurrentServiceSelectors(bcs: java.beans.beancontext.BeanContextServices, serviceClass: java.lang.Class): java.util.Iterator; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServiceProviderBeanInfo.d.ts b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServiceProviderBeanInfo.d.ts new file mode 100644 index 00000000..11234fc5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServiceProviderBeanInfo.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + namespace beancontext { + // @ts-ignore + interface BeanContextServiceProviderBeanInfo { + /** + * Gets a BeanInfo array, one for each + * service class or interface statically available + * from this ServiceProvider. + */ + // @ts-ignore + getServicesBeanInfo(): java.beans.BeanInfo[]; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServiceRevokedEvent.d.ts b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServiceRevokedEvent.d.ts new file mode 100644 index 00000000..02670183 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServiceRevokedEvent.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + namespace beancontext { + // @ts-ignore + class BeanContextServiceRevokedEvent extends java.beans.beancontext.BeanContextEvent { + /** + * Construct a BeanContextServiceEvent. + */ + // @ts-ignore + constructor(bcs: java.beans.beancontext.BeanContextServices, sc: java.lang.Class, invalidate: boolean) + // @ts-ignore + protected serviceClass: java.lang.Class; + /** + * Gets the source as a reference of type BeanContextServices + */ + // @ts-ignore + public getSourceAsBeanContextServices(): java.beans.beancontext.BeanContextServices; + /** + * Gets the service class that is the subject of this notification + */ + // @ts-ignore + public getServiceClass(): java.lang.Class; + /** + * Checks this event to determine whether or not + * the service being revoked is of a particular class. + */ + // @ts-ignore + public isServiceClass(service: java.lang.Class): boolean; + /** + * Reports if the current service is being forcibly revoked, + * in which case the references are now invalidated and unusable. + */ + // @ts-ignore + public isCurrentServiceInvalidNow(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServiceRevokedListener.d.ts b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServiceRevokedListener.d.ts new file mode 100644 index 00000000..56103843 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServiceRevokedListener.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + namespace beancontext { + // @ts-ignore + interface BeanContextServiceRevokedListener { + /** + * The service named has been revoked. getService requests for + * this service will no longer be satisfied. + */ + // @ts-ignore + serviceRevoked(bcsre: java.beans.beancontext.BeanContextServiceRevokedEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServices.d.ts b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServices.d.ts new file mode 100644 index 00000000..ee89bc91 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServices.d.ts @@ -0,0 +1,87 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + namespace beancontext { + // @ts-ignore + interface BeanContextServices { + /** + * Adds a service to this BeanContext. + * BeanContextServiceProviders call this method + * to register a particular service with this context. + * If the service has not previously been added, the + * BeanContextServices associates + * the service with the BeanContextServiceProvider and + * fires a BeanContextServiceAvailableEvent to all + * currently registered BeanContextServicesListeners. + * The method then returns true, indicating that + * the addition of the service was successful. + * If the given service has already been added, this method + * simply returns false. + */ + // @ts-ignore + addService(serviceClass: java.lang.Class, serviceProvider: java.beans.beancontext.BeanContextServiceProvider): boolean; + /** + * BeanContextServiceProviders wishing to remove + * a currently registered service from this context + * may do so via invocation of this method. Upon revocation of + * the service, the BeanContextServices fires a + * BeanContextServiceRevokedEvent to its + * list of currently registered + * BeanContextServiceRevokedListeners and + * BeanContextServicesListeners. + */ + // @ts-ignore + revokeService(serviceClass: java.lang.Class, serviceProvider: java.beans.beancontext.BeanContextServiceProvider, revokeCurrentServicesNow: boolean): void; + /** + * Reports whether or not a given service is + * currently available from this context. + */ + // @ts-ignore + hasService(serviceClass: java.lang.Class): boolean; + /** + * A BeanContextChild, or any arbitrary object + * associated with a BeanContextChild, may obtain + * a reference to a currently registered service from its + * nesting BeanContextServices + * via invocation of this method. When invoked, this method + * gets the service by calling the getService() method on the + * underlying BeanContextServiceProvider. + */ + // @ts-ignore + getService(child: java.beans.beancontext.BeanContextChild, requestor: java.lang.Object, serviceClass: java.lang.Class, serviceSelector: java.lang.Object, bcsrl: java.beans.beancontext.BeanContextServiceRevokedListener): java.lang.Object; + /** + * Releases a BeanContextChild's + * (or any arbitrary object associated with a BeanContextChild) + * reference to the specified service by calling releaseService() + * on the underlying BeanContextServiceProvider. + */ + // @ts-ignore + releaseService(child: java.beans.beancontext.BeanContextChild, requestor: java.lang.Object, service: java.lang.Object): void; + /** + * Gets the currently available services for this context. + */ + // @ts-ignore + getCurrentServiceClasses(): java.util.Iterator; + /** + * Gets the list of service dependent service parameters + * (Service Selectors) for the specified service, by + * calling getCurrentServiceSelectors() on the + * underlying BeanContextServiceProvider. + */ + // @ts-ignore + getCurrentServiceSelectors(serviceClass: java.lang.Class): java.util.Iterator; + /** + * Adds a BeanContextServicesListener to this BeanContext + */ + // @ts-ignore + addBeanContextServicesListener(bcsl: java.beans.beancontext.BeanContextServicesListener): void; + /** + * Removes a BeanContextServicesListener + * from this BeanContext + */ + // @ts-ignore + removeBeanContextServicesListener(bcsl: java.beans.beancontext.BeanContextServicesListener): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServicesListener.d.ts b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServicesListener.d.ts new file mode 100644 index 00000000..3cf61da6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServicesListener.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + namespace beancontext { + // @ts-ignore + interface BeanContextServicesListener { + /** + * The service named has been registered. getService requests for + * this service may now be made. + */ + // @ts-ignore + serviceAvailable(bcsae: java.beans.beancontext.BeanContextServiceAvailableEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServicesSupport.BCSSChild.d.ts b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServicesSupport.BCSSChild.d.ts new file mode 100644 index 00000000..91946794 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServicesSupport.BCSSChild.d.ts @@ -0,0 +1,12 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + namespace beancontext { + namespace BeanContextServicesSupport { + // @ts-ignore + protected class BCSSChild extends java.beans.beancontext.BeanContextSupport.BCSChild { + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServicesSupport.BCSSProxyServiceProvider.d.ts b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServicesSupport.BCSSProxyServiceProvider.d.ts new file mode 100644 index 00000000..62f6a2db --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServicesSupport.BCSSProxyServiceProvider.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + namespace beancontext { + namespace BeanContextServicesSupport { + // @ts-ignore + protected class BCSSProxyServiceProvider extends java.lang.Object { + // @ts-ignore + public getService(bcs: java.beans.beancontext.BeanContextServices, requestor: java.lang.Object, serviceClass: java.lang.Class, serviceSelector: java.lang.Object): java.lang.Object; + // @ts-ignore + public releaseService(bcs: java.beans.beancontext.BeanContextServices, requestor: java.lang.Object, service: java.lang.Object): void; + // @ts-ignore + public getCurrentServiceSelectors(bcs: java.beans.beancontext.BeanContextServices, serviceClass: java.lang.Class): java.util.Iterator; + // @ts-ignore + public serviceRevoked(bcsre: java.beans.beancontext.BeanContextServiceRevokedEvent): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServicesSupport.BCSSServiceProvider.d.ts b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServicesSupport.BCSSServiceProvider.d.ts new file mode 100644 index 00000000..90980b78 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServicesSupport.BCSSServiceProvider.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + namespace beancontext { + namespace BeanContextServicesSupport { + // @ts-ignore + protected class BCSSServiceProvider extends java.lang.Object { + // @ts-ignore + protected serviceProvider: java.beans.beancontext.BeanContextServiceProvider; + /** + * Returns the service provider. + */ + // @ts-ignore + protected getServiceProvider(): java.beans.beancontext.BeanContextServiceProvider; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServicesSupport.d.ts b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServicesSupport.d.ts new file mode 100644 index 00000000..4813d86f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextServicesSupport.d.ts @@ -0,0 +1,214 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + namespace beancontext { + // @ts-ignore + class BeanContextServicesSupport extends java.beans.beancontext.BeanContextSupport { + /** + *

+ * Construct a BeanContextServicesSupport instance + *

+ */ + // @ts-ignore + constructor(peer: java.beans.beancontext.BeanContextServices, lcle: java.util.Locale, dTime: boolean, visible: boolean) + /** + * Create an instance using the specified Locale and design mode. + */ + // @ts-ignore + constructor(peer: java.beans.beancontext.BeanContextServices, lcle: java.util.Locale, dtime: boolean) + /** + * Create an instance using the specified locale + */ + // @ts-ignore + constructor(peer: java.beans.beancontext.BeanContextServices, lcle: java.util.Locale) + /** + * Create an instance with a peer + */ + // @ts-ignore + constructor(peer: java.beans.beancontext.BeanContextServices) + /** + * Create an instance that is not a delegate of another object + */ + // @ts-ignore + constructor() + // @ts-ignore + protected services: java.util.HashMap; + // @ts-ignore + protected serializable: number; + // @ts-ignore + protected proxy: java.beans.beancontext.BeanContextServicesSupport.BCSSProxyServiceProvider; + // @ts-ignore + protected bcsListeners: java.util.ArrayList; + /** + * called by BeanContextSupport superclass during construction and + * deserialization to initialize subclass transient state. + * subclasses may envelope this method, but should not override it or + * call it directly. + */ + // @ts-ignore + public initialize(): void; + /** + * Gets the BeanContextServices associated with this + * BeanContextServicesSupport. + */ + // @ts-ignore + public getBeanContextServicesPeer(): java.beans.beancontext.BeanContextServices; + /** + *

+ * Subclasses can override this method to insert their own subclass + * of Child without having to override add() or the other Collection + * methods that add children to the set. + *

+ */ + // @ts-ignore + protected createBCSChild(targetChild: java.lang.Object, peer: java.lang.Object): java.beans.beancontext.BeanContextSupport.BCSChild; + /** + * subclasses can override this method to create new subclasses of + * BCSSServiceProvider without having to override addService() in + * order to instantiate. + */ + // @ts-ignore + protected createBCSSServiceProvider(sc: java.lang.Class, bcsp: java.beans.beancontext.BeanContextServiceProvider): java.beans.beancontext.BeanContextServicesSupport.BCSSServiceProvider; + /** + * add a BeanContextServicesListener + */ + // @ts-ignore + public addBeanContextServicesListener(bcsl: java.beans.beancontext.BeanContextServicesListener): void; + /** + * remove a BeanContextServicesListener + */ + // @ts-ignore + public removeBeanContextServicesListener(bcsl: java.beans.beancontext.BeanContextServicesListener): void; + /** + * add a service + */ + // @ts-ignore + public addService(serviceClass: java.lang.Class, bcsp: java.beans.beancontext.BeanContextServiceProvider): boolean; + /** + * add a service + */ + // @ts-ignore + protected addService(serviceClass: java.lang.Class, bcsp: java.beans.beancontext.BeanContextServiceProvider, fireEvent: boolean): boolean; + /** + * remove a service + */ + // @ts-ignore + public revokeService(serviceClass: java.lang.Class, bcsp: java.beans.beancontext.BeanContextServiceProvider, revokeCurrentServicesNow: boolean): void; + /** + * has a service, which may be delegated + */ + // @ts-ignore + public hasService(serviceClass: java.lang.Class): boolean; + /** + * obtain a service which may be delegated + */ + // @ts-ignore + public getService(child: java.beans.beancontext.BeanContextChild, requestor: java.lang.Object, serviceClass: java.lang.Class, serviceSelector: java.lang.Object, bcsrl: java.beans.beancontext.BeanContextServiceRevokedListener): java.lang.Object; + /** + * release a service + */ + // @ts-ignore + public releaseService(child: java.beans.beancontext.BeanContextChild, requestor: java.lang.Object, service: java.lang.Object): void; + // @ts-ignore + public getCurrentServiceClasses(): java.util.Iterator; + // @ts-ignore + public getCurrentServiceSelectors(serviceClass: java.lang.Class): java.util.Iterator; + /** + * BeanContextServicesListener callback, propagates event to all + * currently registered listeners and BeanContextServices children, + * if this BeanContextService does not already implement this service + * itself. + * subclasses may override or envelope this method to implement their + * own propagation semantics. + */ + // @ts-ignore + public serviceAvailable(bcssae: java.beans.beancontext.BeanContextServiceAvailableEvent): void; + /** + * BeanContextServicesListener callback, propagates event to all + * currently registered listeners and BeanContextServices children, + * if this BeanContextService does not already implement this service + * itself. + * subclasses may override or envelope this method to implement their + * own propagation semantics. + */ + // @ts-ignore + public serviceRevoked(bcssre: java.beans.beancontext.BeanContextServiceRevokedEvent): void; + /** + * Gets the BeanContextServicesListener (if any) of the specified + * child. + */ + // @ts-ignore + protected static getChildBeanContextServicesListener(child: java.lang.Object): java.beans.beancontext.BeanContextServicesListener; + /** + * called from superclass child removal operations after a child + * has been successfully removed. called with child synchronized. + * This subclass uses this hook to immediately revoke any services + * being used by this child if it is a BeanContextChild. + * subclasses may envelope this method in order to implement their + * own child removal side-effects. + */ + // @ts-ignore + protected childJustRemovedHook(child: java.lang.Object, bcsc: java.beans.beancontext.BeanContextSupport.BCSChild): void; + /** + * called from setBeanContext to notify a BeanContextChild + * to release resources obtained from the nesting BeanContext. + * This method revokes any services obtained from its parent. + * subclasses may envelope this method to implement their own semantics. + */ + // @ts-ignore + protected releaseBeanContextResources(): void; + /** + * called from setBeanContext to notify a BeanContextChild + * to allocate resources obtained from the nesting BeanContext. + * subclasses may envelope this method to implement their own semantics. + */ + // @ts-ignore + protected initializeBeanContextResources(): void; + /** + * Fires a BeanContextServiceEvent notifying of a new service. + */ + // @ts-ignore + protected fireServiceAdded(serviceClass: java.lang.Class): void; + /** + * Fires a BeanContextServiceAvailableEvent indicating that a new + * service has become available. + */ + // @ts-ignore + protected fireServiceAdded(bcssae: java.beans.beancontext.BeanContextServiceAvailableEvent): void; + /** + * Fires a BeanContextServiceEvent notifying of a service being revoked. + */ + // @ts-ignore + protected fireServiceRevoked(bcsre: java.beans.beancontext.BeanContextServiceRevokedEvent): void; + /** + * Fires a BeanContextServiceRevokedEvent + * indicating that a particular service is + * no longer available. + */ + // @ts-ignore + protected fireServiceRevoked(serviceClass: java.lang.Class, revokeNow: boolean): void; + /** + * called from BeanContextSupport writeObject before it serializes the + * children ... + * This class will serialize any Serializable BeanContextServiceProviders + * herein. + * subclasses may envelope this method to insert their own serialization + * processing that has to occur prior to serialization of the children + */ + // @ts-ignore + protected bcsPreSerializationHook(oos: java.io.ObjectOutputStream): void; + /** + * called from BeanContextSupport readObject before it deserializes the + * children ... + * This class will deserialize any Serializable BeanContextServiceProviders + * serialized earlier thus making them available to the children when they + * deserialized. + * subclasses may envelope this method to insert their own serialization + * processing that has to occur prior to serialization of the children + */ + // @ts-ignore + protected bcsPreDeserializationHook(ois: java.io.ObjectInputStream): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextSupport.BCSChild.d.ts b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextSupport.BCSChild.d.ts new file mode 100644 index 00000000..3421eeae --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextSupport.BCSChild.d.ts @@ -0,0 +1,12 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + namespace beancontext { + namespace BeanContextSupport { + // @ts-ignore + protected class BCSChild extends java.lang.Object { + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextSupport.BCSIterator.d.ts b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextSupport.BCSIterator.d.ts new file mode 100644 index 00000000..f6ba8387 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextSupport.BCSIterator.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + namespace beancontext { + namespace BeanContextSupport { + // @ts-ignore + protected class BCSIterator extends java.lang.Object { + // @ts-ignore + public hasNext(): boolean; + // @ts-ignore + public next(): java.lang.Object; + // @ts-ignore + public remove(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextSupport.d.ts b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextSupport.d.ts new file mode 100644 index 00000000..b80bba74 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.beans.beancontext.BeanContextSupport.d.ts @@ -0,0 +1,403 @@ +// @ts-nocheck +declare namespace java { + namespace beans { + namespace beancontext { + // @ts-ignore + class BeanContextSupport extends java.beans.beancontext.BeanContextChildSupport { + /** + * Construct a BeanContextSupport instance + */ + // @ts-ignore + constructor(peer: java.beans.beancontext.BeanContext, lcle: java.util.Locale, dTime: boolean, visible: boolean) + /** + * Create an instance using the specified Locale and design mode. + */ + // @ts-ignore + constructor(peer: java.beans.beancontext.BeanContext, lcle: java.util.Locale, dtime: boolean) + /** + * Create an instance using the specified locale + */ + // @ts-ignore + constructor(peer: java.beans.beancontext.BeanContext, lcle: java.util.Locale) + /** + * Create an instance using with a default locale + */ + // @ts-ignore + constructor(peer: java.beans.beancontext.BeanContext) + /** + * Create an instance that is not a delegate of another object + */ + // @ts-ignore + constructor() + // @ts-ignore + protected children: java.util.HashMap; + // @ts-ignore + protected bcmListeners: java.util.ArrayList; + // @ts-ignore + protected locale: java.util.Locale; + // @ts-ignore + protected designTime: boolean; + /** + * Gets the instance of BeanContext that + * this object is providing the implementation for. + */ + // @ts-ignore + public getBeanContextPeer(): java.beans.beancontext.BeanContext; + /** + *

+ * The instantiateChild method is a convenience hook + * in BeanContext to simplify + * the task of instantiating a Bean, nested, + * into a BeanContext. + *

+ *

+ * The semantics of the beanName parameter are defined by java.beans.Beans.instantiate. + *

+ */ + // @ts-ignore + public instantiateChild(beanName: string): java.lang.Object; + /** + * Gets the number of children currently nested in + * this BeanContext. + */ + // @ts-ignore + public size(): number; + /** + * Reports whether or not this + * BeanContext is empty. + * A BeanContext is considered + * empty when it contains zero + * nested children. + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * Determines whether or not the specified object + * is currently a child of this BeanContext. + */ + // @ts-ignore + public contains(o: java.lang.Object): boolean; + /** + * Determines whether or not the specified object + * is currently a child of this BeanContext. + */ + // @ts-ignore + public containsKey(o: java.lang.Object): boolean; + /** + * Gets all JavaBean or BeanContext instances + * currently nested in this BeanContext. + */ + // @ts-ignore + public iterator(): java.util.Iterator; + /** + * Gets all JavaBean or BeanContext + * instances currently nested in this BeanContext. + */ + // @ts-ignore + public toArray(): java.lang.Object[]; + /** + * Gets an array containing all children of + * this BeanContext that match + * the types contained in arry. + */ + // @ts-ignore + public toArray(arry: java.lang.Object): java.lang.Object[]; + /** + *

+ * Subclasses can override this method to insert their own subclass + * of Child without having to override add() or the other Collection + * methods that add children to the set. + *

+ */ + // @ts-ignore + protected createBCSChild(targetChild: java.lang.Object, peer: java.lang.Object): java.beans.beancontext.BeanContextSupport.BCSChild; + /** + * Adds/nests a child within this BeanContext. + *

+ * Invoked as a side effect of java.beans.Beans.instantiate(). + * If the child object is not valid for adding then this method + * throws an IllegalStateException. + *

+ */ + // @ts-ignore + public add(targetChild: java.lang.Object): boolean; + /** + * Removes a child from this BeanContext. If the child object is not + * for adding then this method throws an IllegalStateException. + */ + // @ts-ignore + public remove(targetChild: java.lang.Object): boolean; + /** + * internal remove used when removal caused by + * unexpected setBeanContext or + * by remove() invocation. + */ + // @ts-ignore + protected remove(targetChild: java.lang.Object, callChildSetBC: boolean): boolean; + /** + * Tests to see if all objects in the + * specified Collection are children of + * this BeanContext. + */ + // @ts-ignore + public containsAll(c: java.util.Collection): boolean; + /** + * add Collection to set of Children (Unsupported) + * implementations must synchronized on the hierarchy lock and "children" protected field + */ + // @ts-ignore + public addAll(c: java.util.Collection): boolean; + /** + * remove all specified children (Unsupported) + * implementations must synchronized on the hierarchy lock and "children" protected field + */ + // @ts-ignore + public removeAll(c: java.util.Collection): boolean; + /** + * retain only specified children (Unsupported) + * implementations must synchronized on the hierarchy lock and "children" protected field + */ + // @ts-ignore + public retainAll(c: java.util.Collection): boolean; + /** + * clear the children (Unsupported) + * implementations must synchronized on the hierarchy lock and "children" protected field + */ + // @ts-ignore + public clear(): void; + /** + * Adds a BeanContextMembershipListener + */ + // @ts-ignore + public addBeanContextMembershipListener(bcml: java.beans.beancontext.BeanContextMembershipListener): void; + /** + * Removes a BeanContextMembershipListener + */ + // @ts-ignore + public removeBeanContextMembershipListener(bcml: java.beans.beancontext.BeanContextMembershipListener): void; + // @ts-ignore + public getResourceAsStream(name: string, bcc: java.beans.beancontext.BeanContextChild): java.io.InputStream; + // @ts-ignore + public getResource(name: string, bcc: java.beans.beancontext.BeanContextChild): java.net.URL; + /** + * Sets the new design time value for this BeanContext. + */ + // @ts-ignore + public setDesignTime(dTime: boolean): void; + /** + * Reports whether or not this object is in + * currently in design time mode. + */ + // @ts-ignore + public isDesignTime(): boolean; + /** + * Sets the locale of this BeanContext. + */ + // @ts-ignore + public setLocale(newLocale: java.util.Locale): void; + /** + * Gets the locale for this BeanContext. + */ + // @ts-ignore + public getLocale(): java.util.Locale; + /** + *

+ * This method is typically called from the environment in order to determine + * if the implementor "needs" a GUI. + *

+ *

+ * The algorithm used herein tests the BeanContextPeer, and its current children + * to determine if they are either Containers, Components, or if they implement + * Visibility and return needsGui() == true. + *

+ */ + // @ts-ignore + public needsGui(): boolean; + /** + * notify this instance that it may no longer render a GUI. + */ + // @ts-ignore + public dontUseGui(): void; + /** + * Notify this instance that it may now render a GUI + */ + // @ts-ignore + public okToUseGui(): void; + /** + * Used to determine if the BeanContext + * child is avoiding using its GUI. + */ + // @ts-ignore + public avoidingGui(): boolean; + /** + * Is this BeanContext in the + * process of being serialized? + */ + // @ts-ignore + public isSerializing(): boolean; + /** + * Returns an iterator of all children + * of this BeanContext. + */ + // @ts-ignore + protected bcsChildren(): java.util.Iterator; + /** + * called by writeObject after defaultWriteObject() but prior to + * serialization of currently serializable children. + * This method may be overridden by subclasses to perform custom + * serialization of their state prior to this superclass serializing + * the children. + * This method should not however be used by subclasses to replace their + * own implementation (if any) of writeObject(). + */ + // @ts-ignore + protected bcsPreSerializationHook(oos: java.io.ObjectOutputStream): void; + /** + * called by readObject after defaultReadObject() but prior to + * deserialization of any children. + * This method may be overridden by subclasses to perform custom + * deserialization of their state prior to this superclass deserializing + * the children. + * This method should not however be used by subclasses to replace their + * own implementation (if any) of readObject(). + */ + // @ts-ignore + protected bcsPreDeserializationHook(ois: java.io.ObjectInputStream): void; + /** + * Called by readObject with the newly deserialized child and BCSChild. + */ + // @ts-ignore + protected childDeserializedHook(child: java.lang.Object, bcsc: java.beans.beancontext.BeanContextSupport.BCSChild): void; + /** + * Used by writeObject to serialize a Collection. + */ + // @ts-ignore + protected serialize(oos: java.io.ObjectOutputStream, coll: java.util.Collection): void; + /** + * used by readObject to deserialize a collection. + */ + // @ts-ignore + protected deserialize(ois: java.io.ObjectInputStream, coll: java.util.Collection): void; + /** + * Used to serialize all children of + * this BeanContext. + */ + // @ts-ignore + public writeChildren(oos: java.io.ObjectOutputStream): void; + /** + * When an instance of this class is used as a delegate for the + * implementation of the BeanContext protocols (and its subprotocols) + * there exists a 'chicken and egg' problem during deserialization + */ + // @ts-ignore + public readChildren(ois: java.io.ObjectInputStream): void; + /** + * subclasses may envelope to monitor veto child property changes. + */ + // @ts-ignore + public vetoableChange(pce: java.beans.PropertyChangeEvent): void; + /** + * subclasses may envelope to monitor child property changes. + */ + // @ts-ignore + public propertyChange(pce: java.beans.PropertyChangeEvent): void; + /** + *

+ * Subclasses of this class may override, or envelope, this method to + * add validation behavior for the BeanContext to examine child objects + * immediately prior to their being added to the BeanContext. + *

+ */ + // @ts-ignore + protected validatePendingAdd(targetChild: java.lang.Object): boolean; + /** + *

+ * Subclasses of this class may override, or envelope, this method to + * add validation behavior for the BeanContext to examine child objects + * immediately prior to their being removed from the BeanContext. + *

+ */ + // @ts-ignore + protected validatePendingRemove(targetChild: java.lang.Object): boolean; + /** + * subclasses may override this method to simply extend add() semantics + * after the child has been added and before the event notification has + * occurred. The method is called with the child synchronized. + */ + // @ts-ignore + protected childJustAddedHook(child: java.lang.Object, bcsc: java.beans.beancontext.BeanContextSupport.BCSChild): void; + /** + * subclasses may override this method to simply extend remove() semantics + * after the child has been removed and before the event notification has + * occurred. The method is called with the child synchronized. + */ + // @ts-ignore + protected childJustRemovedHook(child: java.lang.Object, bcsc: java.beans.beancontext.BeanContextSupport.BCSChild): void; + /** + * Gets the Component (if any) associated with the specified child. + */ + // @ts-ignore + protected static getChildVisibility(child: java.lang.Object): java.beans.Visibility; + /** + * Gets the Serializable (if any) associated with the specified Child + */ + // @ts-ignore + protected static getChildSerializable(child: java.lang.Object): java.io.Serializable; + /** + * Gets the PropertyChangeListener + * (if any) of the specified child + */ + // @ts-ignore + protected static getChildPropertyChangeListener(child: java.lang.Object): java.beans.PropertyChangeListener; + /** + * Gets the VetoableChangeListener + * (if any) of the specified child + */ + // @ts-ignore + protected static getChildVetoableChangeListener(child: java.lang.Object): java.beans.VetoableChangeListener; + /** + * Gets the BeanContextMembershipListener + * (if any) of the specified child + */ + // @ts-ignore + protected static getChildBeanContextMembershipListener(child: java.lang.Object): java.beans.beancontext.BeanContextMembershipListener; + /** + * Gets the BeanContextChild (if any) of the specified child + */ + // @ts-ignore + protected static getChildBeanContextChild(child: java.lang.Object): java.beans.beancontext.BeanContextChild; + /** + * Fire a BeanContextshipEvent on the BeanContextMembershipListener interface + */ + // @ts-ignore + protected fireChildrenAdded(bcme: java.beans.beancontext.BeanContextMembershipEvent): void; + /** + * Fire a BeanContextshipEvent on the BeanContextMembershipListener interface + */ + // @ts-ignore + protected fireChildrenRemoved(bcme: java.beans.beancontext.BeanContextMembershipEvent): void; + /** + * protected method called from constructor and readObject to initialize + * transient state of BeanContextSupport instance. + * This class uses this method to instantiate inner class listeners used + * to monitor PropertyChange and VetoableChange events on children. + * subclasses may envelope this method to add their own initialization + * behavior + */ + // @ts-ignore + protected initialize(): void; + /** + * Gets a copy of the this BeanContext's children. + */ + // @ts-ignore + protected copyChildren(): java.lang.Object[]; + /** + * Tests to see if two class objects, + * or their names are equal. + */ + // @ts-ignore + protected static classEquals(first: java.lang.Class, second: java.lang.Class): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.BufferedInputStream.d.ts b/packages/types/dist/typings/jdk/java.io.BufferedInputStream.d.ts new file mode 100644 index 00000000..03008a1d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.BufferedInputStream.d.ts @@ -0,0 +1,121 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class BufferedInputStream extends java.io.FilterInputStream { + /** + * Creates a BufferedInputStream + * and saves its argument, the input stream + * in, for later use. An internal + * buffer array is created and stored in buf. + */ + // @ts-ignore + constructor(input: java.io.InputStream) + /** + * Creates a BufferedInputStream + * with the specified buffer size, + * and saves its argument, the input stream + * in, for later use. An internal + * buffer array of length size + * is created and stored in buf. + */ + // @ts-ignore + constructor(input: java.io.InputStream, size: number) + // @ts-ignore + protected buf: number[]; + // @ts-ignore + protected count: number; + // @ts-ignore + protected pos: number; + // @ts-ignore + protected markpos: number; + // @ts-ignore + protected marklimit: number; + /** + * See + * the general contract of the read + * method of InputStream. + */ + // @ts-ignore + public read(): number; + /** + * Reads bytes from this byte-input stream into the specified byte array, + * starting at the given offset. + *

This method implements the general contract of the corresponding + * {@link InputStream#read(byte[], int, int) read} method of + * the {@link InputStream} class. As an additional + * convenience, it attempts to read as many bytes as possible by repeatedly + * invoking the read method of the underlying stream. This + * iterated read continues until one of the following + * conditions becomes true:

    + *
  • The specified number of bytes have been read, + *
  • The read method of the underlying stream returns + * -1, indicating end-of-file, or + *
  • The available method of the underlying stream + * returns zero, indicating that further input requests would block. + *
If the first read on the underlying stream returns + * -1 to indicate end-of-file then this method returns + * -1. Otherwise this method returns the number of bytes + * actually read. + *

Subclasses of this class are encouraged, but not required, to + * attempt to read as many bytes as possible in the same fashion. + */ + // @ts-ignore + public read(b: number, off: number, len: number): number; + /** + * See the general contract of the skip + * method of InputStream. + */ + // @ts-ignore + public skip(n: number): number; + /** + * Returns an estimate of the number of bytes that can be read (or + * skipped over) from this input stream without blocking by the next + * invocation of a method for this input stream. The next invocation might be + * the same thread or another thread. A single read or skip of this + * many bytes will not block, but may read or skip fewer bytes. + *

+ * This method returns the sum of the number of bytes remaining to be read in + * the buffer (count - pos) and the result of calling the + * {@link java.io.FilterInputStream#in in}.available(). + */ + // @ts-ignore + public available(): number; + /** + * See the general contract of the mark + * method of InputStream. + */ + // @ts-ignore + public mark(readlimit: number): void; + /** + * See the general contract of the reset + * method of InputStream. + *

+ * If markpos is -1 + * (no mark has been set or the mark has been + * invalidated), an IOException + * is thrown. Otherwise, pos is + * set equal to markpos. + */ + // @ts-ignore + public reset(): void; + /** + * Tests if this input stream supports the mark + * and reset methods. The markSupported + * method of BufferedInputStream returns + * true. + */ + // @ts-ignore + public markSupported(): boolean; + /** + * Closes this input stream and releases any system resources + * associated with the stream. + * Once the stream has been closed, further read(), available(), reset(), + * or skip() invocations will throw an IOException. + * Closing a previously closed stream has no effect. + */ + // @ts-ignore + public close(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.BufferedOutputStream.d.ts b/packages/types/dist/typings/jdk/java.io.BufferedOutputStream.d.ts new file mode 100644 index 00000000..8979e99e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.BufferedOutputStream.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class BufferedOutputStream extends java.io.FilterOutputStream { + /** + * Creates a new buffered output stream to write data to the + * specified underlying output stream. + */ + // @ts-ignore + constructor(out: java.io.OutputStream) + /** + * Creates a new buffered output stream to write data to the + * specified underlying output stream with the specified buffer + * size. + */ + // @ts-ignore + constructor(out: java.io.OutputStream, size: number) + // @ts-ignore + protected buf: number[]; + // @ts-ignore + protected count: number; + /** + * Writes the specified byte to this buffered output stream. + */ + // @ts-ignore + public write(b: number): void; + /** + * Writes len bytes from the specified byte array + * starting at offset off to this buffered output stream. + *

Ordinarily this method stores bytes from the given array into this + * stream's buffer, flushing the buffer to the underlying output stream as + * needed. If the requested length is at least as large as this stream's + * buffer, however, then this method will flush the buffer and write the + * bytes directly to the underlying output stream. Thus redundant + * BufferedOutputStreams will not copy data unnecessarily. + */ + // @ts-ignore + public write(b: number, off: number, len: number): void; + /** + * Flushes this buffered output stream. This forces any buffered + * output bytes to be written out to the underlying output stream. + */ + // @ts-ignore + public flush(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.BufferedReader.d.ts b/packages/types/dist/typings/jdk/java.io.BufferedReader.d.ts new file mode 100644 index 00000000..eb55d261 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.BufferedReader.d.ts @@ -0,0 +1,115 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class BufferedReader extends java.io.Reader { + /** + * Creates a buffering character-input stream that uses an input buffer of + * the specified size. + */ + // @ts-ignore + constructor(input: java.io.Reader, sz: number) + /** + * Creates a buffering character-input stream that uses a default-sized + * input buffer. + */ + // @ts-ignore + constructor(input: java.io.Reader) + /** + * Reads a single character. + */ + // @ts-ignore + public read(): number; + /** + * Reads characters into a portion of an array. + *

This method implements the general contract of the corresponding + * {@link Reader#read(char[], int, int) read} method of the + * {@link Reader} class. As an additional convenience, it + * attempts to read as many characters as possible by repeatedly invoking + * the read method of the underlying stream. This iterated + * read continues until one of the following conditions becomes + * true:

    + *
  • The specified number of characters have been read, + *
  • The read method of the underlying stream returns + * -1, indicating end-of-file, or + *
  • The ready method of the underlying stream + * returns false, indicating that further input requests + * would block. + *
If the first read on the underlying stream returns + * -1 to indicate end-of-file then this method returns + * -1. Otherwise this method returns the number of characters + * actually read. + *

Subclasses of this class are encouraged, but not required, to + * attempt to read as many characters as possible in the same fashion. + *

Ordinarily this method takes characters from this stream's character + * buffer, filling it from the underlying stream as necessary. If, + * however, the buffer is empty, the mark is not valid, and the requested + * length is at least as large as the buffer, then this method will read + * characters directly from the underlying stream into the given array. + * Thus redundant BufferedReaders will not copy data + * unnecessarily. + */ + // @ts-ignore + public read(cbuf: string, off: number, len: number): number; + /** + * Reads a line of text. A line is considered to be terminated by any one + * of a line feed ('\n'), a carriage return ('\r'), or a carriage return + * followed immediately by a linefeed. + */ + // @ts-ignore + public readLine(): string; + /** + * Skips characters. + */ + // @ts-ignore + public skip(n: number): number; + /** + * Tells whether this stream is ready to be read. A buffered character + * stream is ready if the buffer is not empty, or if the underlying + * character stream is ready. + */ + // @ts-ignore + public ready(): boolean; + /** + * Tells whether this stream supports the mark() operation, which it does. + */ + // @ts-ignore + public markSupported(): boolean; + /** + * Marks the present position in the stream. Subsequent calls to reset() + * will attempt to reposition the stream to this point. + */ + // @ts-ignore + public mark(readAheadLimit: number): void; + /** + * Resets the stream to the most recent mark. + */ + // @ts-ignore + public reset(): void; + // @ts-ignore + public close(): void; + /** + * Returns a {@code Stream}, the elements of which are lines read from + * this {@code BufferedReader}. The {@link Stream} is lazily populated, + * i.e., read only occurs during the + * terminal + * stream operation. + *

The reader must not be operated on during the execution of the + * terminal stream operation. Otherwise, the result of the terminal stream + * operation is undefined. + *

After execution of the terminal stream operation there are no + * guarantees that the reader will be at a specific position from which to + * read the next character or line. + *

If an {@link IOException} is thrown when accessing the underlying + * {@code BufferedReader}, it is wrapped in an {@link + * UncheckedIOException} which will be thrown from the {@code Stream} + * method that caused the read to take place. This method will return a + * Stream if invoked on a BufferedReader that is closed. Any operation on + * that stream that requires reading from the BufferedReader after it is + * closed, will cause an UncheckedIOException to be thrown. + */ + // @ts-ignore + public lines(): java.util.stream.Stream; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.BufferedWriter.d.ts b/packages/types/dist/typings/jdk/java.io.BufferedWriter.d.ts new file mode 100644 index 00000000..bc2cc870 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.BufferedWriter.d.ts @@ -0,0 +1,60 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class BufferedWriter extends java.io.Writer { + /** + * Creates a buffered character-output stream that uses a default-sized + * output buffer. + */ + // @ts-ignore + constructor(out: java.io.Writer) + /** + * Creates a new buffered character-output stream that uses an output + * buffer of the given size. + */ + // @ts-ignore + constructor(out: java.io.Writer, sz: number) + /** + * Writes a single character. + */ + // @ts-ignore + public write(c: number): void; + /** + * Writes a portion of an array of characters. + *

Ordinarily this method stores characters from the given array into + * this stream's buffer, flushing the buffer to the underlying stream as + * needed. If the requested length is at least as large as the buffer, + * however, then this method will flush the buffer and write the characters + * directly to the underlying stream. Thus redundant + * BufferedWriters will not copy data unnecessarily. + */ + // @ts-ignore + public write(cbuf: string, off: number, len: number): void; + /** + * Writes a portion of a String. + *

If the value of the len parameter is negative then no + * characters are written. This is contrary to the specification of this + * method in the {@linkplain java.io.Writer#write(java.lang.String,int,int) + * superclass}, which requires that an {@link IndexOutOfBoundsException} be + * thrown. + */ + // @ts-ignore + public write(s: string, off: number, len: number): void; + /** + * Writes a line separator. The line separator string is defined by the + * system property line.separator, and is not necessarily a single + * newline ('\n') character. + */ + // @ts-ignore + public newLine(): void; + /** + * Flushes the stream. + */ + // @ts-ignore + public flush(): void; + // @ts-ignore + public close(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.ByteArrayInputStream.d.ts b/packages/types/dist/typings/jdk/java.io.ByteArrayInputStream.d.ts new file mode 100644 index 00000000..35a6e1ef --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.ByteArrayInputStream.d.ts @@ -0,0 +1,125 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class ByteArrayInputStream extends java.io.InputStream { + /** + * Creates a ByteArrayInputStream + * so that it uses buf as its + * buffer array. + * The buffer array is not copied. + * The initial value of pos + * is 0 and the initial value + * of count is the length of + * buf. + */ + // @ts-ignore + constructor(buf: number) + /** + * Creates ByteArrayInputStream + * that uses buf as its + * buffer array. The initial value of pos + * is offset and the initial value + * of count is the minimum of offset+length + * and buf.length. + * The buffer array is not copied. The buffer's mark is + * set to the specified offset. + */ + // @ts-ignore + constructor(buf: number, offset: number, length: number) + // @ts-ignore + protected buf: number[]; + // @ts-ignore + protected pos: number; + // @ts-ignore + protected count: number; + /** + * Reads the next byte of data from this input stream. The value + * byte is returned as an int in the range + * 0 to 255. If no byte is available + * because the end of the stream has been reached, the value + * -1 is returned. + *

+ * This read method + * cannot block. + */ + // @ts-ignore + public read(): number; + /** + * Reads up to len bytes of data into an array of bytes + * from this input stream. + * If pos equals count, + * then -1 is returned to indicate + * end of file. Otherwise, the number k + * of bytes read is equal to the smaller of + * len and count-pos. + * If k is positive, then bytes + * buf[pos] through buf[pos+k-1] + * are copied into b[off] through + * b[off+k-1] in the manner performed + * by System.arraycopy. The + * value k is added into pos + * and k is returned. + *

+ * This read method cannot block. + */ + // @ts-ignore + public read(b: number, off: number, len: number): number; + /** + * Skips n bytes of input from this input stream. Fewer + * bytes might be skipped if the end of the input stream is reached. + * The actual number k + * of bytes to be skipped is equal to the smaller + * of n and count-pos. + * The value k is added into pos + * and k is returned. + */ + // @ts-ignore + public skip(n: number): number; + /** + * Returns the number of remaining bytes that can be read (or skipped over) + * from this input stream. + *

+ * The value returned is count - pos, + * which is the number of bytes remaining to be read from the input buffer. + */ + // @ts-ignore + public available(): number; + /** + * Tests if this InputStream supports mark/reset. The + * markSupported method of ByteArrayInputStream + * always returns true. + */ + // @ts-ignore + public markSupported(): boolean; + /** + * Set the current marked position in the stream. + * ByteArrayInputStream objects are marked at position zero by + * default when constructed. They may be marked at another + * position within the buffer by this method. + *

+ * If no mark has been set, then the value of the mark is the + * offset passed to the constructor (or 0 if the offset was not + * supplied). + *

Note: The readAheadLimit for this class + * has no meaning. + */ + // @ts-ignore + public mark(readAheadLimit: number): void; + /** + * Resets the buffer to the marked position. The marked position + * is 0 unless another position was marked or an offset was specified + * in the constructor. + */ + // @ts-ignore + public reset(): void; + /** + * Closing a ByteArrayInputStream has no effect. The methods in + * this class can be called after the stream has been closed without + * generating an IOException. + */ + // @ts-ignore + public close(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.ByteArrayOutputStream.d.ts b/packages/types/dist/typings/jdk/java.io.ByteArrayOutputStream.d.ts new file mode 100644 index 00000000..50c707a6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.ByteArrayOutputStream.d.ts @@ -0,0 +1,106 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class ByteArrayOutputStream extends java.io.OutputStream { + /** + * Creates a new byte array output stream. The buffer capacity is + * initially 32 bytes, though its size increases if necessary. + */ + // @ts-ignore + constructor() + /** + * Creates a new byte array output stream, with a buffer capacity of + * the specified size, in bytes. + */ + // @ts-ignore + constructor(size: number) + // @ts-ignore + protected buf: number[]; + // @ts-ignore + protected count: number; + /** + * Writes the specified byte to this byte array output stream. + */ + // @ts-ignore + public write(b: number): void; + /** + * Writes len bytes from the specified byte array + * starting at offset off to this byte array output stream. + */ + // @ts-ignore + public write(b: number, off: number, len: number): void; + /** + * Writes the complete contents of this byte array output stream to + * the specified output stream argument, as if by calling the output + * stream's write method using out.write(buf, 0, count). + */ + // @ts-ignore + public writeTo(out: java.io.OutputStream): void; + /** + * Resets the count field of this byte array output + * stream to zero, so that all currently accumulated output in the + * output stream is discarded. The output stream can be used again, + * reusing the already allocated buffer space. + */ + // @ts-ignore + public reset(): void; + /** + * Creates a newly allocated byte array. Its size is the current + * size of this output stream and the valid contents of the buffer + * have been copied into it. + */ + // @ts-ignore + public toByteArray(): number[]; + /** + * Returns the current size of the buffer. + */ + // @ts-ignore + public size(): number; + /** + * Converts the buffer's contents into a string decoding bytes using the + * platform's default character set. The length of the new String + * is a function of the character set, and hence may not be equal to the + * size of the buffer. + *

This method always replaces malformed-input and unmappable-character + * sequences with the default replacement string for the platform's + * default character set. The {@linkplain java.nio.charset.CharsetDecoder} + * class should be used when more control over the decoding process is + * required. + */ + // @ts-ignore + public toString(): string; + /** + * Converts the buffer's contents into a string by decoding the bytes using + * the named {@link java.nio.charset.Charset charset}. The length of the new + * String is a function of the charset, and hence may not be equal + * to the length of the byte array. + *

This method always replaces malformed-input and unmappable-character + * sequences with this charset's default replacement string. The {@link + * java.nio.charset.CharsetDecoder} class should be used when more control + * over the decoding process is required. + */ + // @ts-ignore + public toString(charsetName: string): string; + /** + * Creates a newly allocated string. Its size is the current size of + * the output stream and the valid contents of the buffer have been + * copied into it. Each character c in the resulting string is + * constructed from the corresponding element b in the byte + * array such that: + *

+             * c == (char)(((hibyte & 0xff) << 8) | (b & 0xff))
+             * 
+ */ + // @ts-ignore + public toString(hibyte: number): string; + /** + * Closing a ByteArrayOutputStream has no effect. The methods in + * this class can be called after the stream has been closed without + * generating an IOException. + */ + // @ts-ignore + public close(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.CharArrayReader.d.ts b/packages/types/dist/typings/jdk/java.io.CharArrayReader.d.ts new file mode 100644 index 00000000..ad503b19 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.CharArrayReader.d.ts @@ -0,0 +1,80 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class CharArrayReader extends java.io.Reader { + /** + * Creates a CharArrayReader from the specified array of chars. + */ + // @ts-ignore + constructor(buf: string) + /** + * Creates a CharArrayReader from the specified array of chars. + *

The resulting reader will start reading at the given + * offset. The total number of char values that can be + * read from this reader will be either length or + * buf.length-offset, whichever is smaller. + */ + // @ts-ignore + constructor(buf: string, offset: number, length: number) + // @ts-ignore + protected buf: string[]; + // @ts-ignore + protected pos: number; + // @ts-ignore + protected markedPos: number; + // @ts-ignore + protected count: number; + /** + * Reads a single character. + */ + // @ts-ignore + public read(): number; + /** + * Reads characters into a portion of an array. + */ + // @ts-ignore + public read(b: string, off: number, len: number): number; + /** + * Skips characters. Returns the number of characters that were skipped. + *

The n parameter may be negative, even though the + * skip method of the {@link Reader} superclass throws + * an exception in this case. If n is negative, then + * this method does nothing and returns 0. + */ + // @ts-ignore + public skip(n: number): number; + /** + * Tells whether this stream is ready to be read. Character-array readers + * are always ready to be read. + */ + // @ts-ignore + public ready(): boolean; + /** + * Tells whether this stream supports the mark() operation, which it does. + */ + // @ts-ignore + public markSupported(): boolean; + /** + * Marks the present position in the stream. Subsequent calls to reset() + * will reposition the stream to this point. + */ + // @ts-ignore + public mark(readAheadLimit: number): void; + /** + * Resets the stream to the most recent mark, or to the beginning if it has + * never been marked. + */ + // @ts-ignore + public reset(): void; + /** + * Closes the stream and releases any system resources associated with + * it. Once the stream has been closed, further read(), ready(), + * mark(), reset(), or skip() invocations will throw an IOException. + * Closing a previously closed stream has no effect. + */ + // @ts-ignore + public close(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.CharArrayWriter.d.ts b/packages/types/dist/typings/jdk/java.io.CharArrayWriter.d.ts new file mode 100644 index 00000000..0a77566a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.CharArrayWriter.d.ts @@ -0,0 +1,108 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class CharArrayWriter extends java.io.Writer { + /** + * Creates a new CharArrayWriter. + */ + // @ts-ignore + constructor() + /** + * Creates a new CharArrayWriter with the specified initial size. + */ + // @ts-ignore + constructor(initialSize: number) + // @ts-ignore + protected buf: string[]; + // @ts-ignore + protected count: number; + /** + * Writes a character to the buffer. + */ + // @ts-ignore + public write(c: number): void; + /** + * Writes characters to the buffer. + */ + // @ts-ignore + public write(c: string, off: number, len: number): void; + /** + * Write a portion of a string to the buffer. + */ + // @ts-ignore + public write(str: string, off: number, len: number): void; + /** + * Writes the contents of the buffer to another character stream. + */ + // @ts-ignore + public writeTo(out: java.io.Writer): void; + /** + * Appends the specified character sequence to this writer. + *

An invocation of this method of the form out.append(csq) + * behaves in exactly the same way as the invocation + *

+             * out.write(csq.toString()) 
+ *

Depending on the specification of toString for the + * character sequence csq, the entire sequence may not be + * appended. For instance, invoking the toString method of a + * character buffer will return a subsequence whose content depends upon + * the buffer's position and limit. + */ + // @ts-ignore + public append(csq: java.lang.CharSequence): java.io.CharArrayWriter; + /** + * Appends a subsequence of the specified character sequence to this writer. + *

An invocation of this method of the form out.append(csq, start, + * end) when csq is not null, behaves in + * exactly the same way as the invocation + *

+             * out.write(csq.subSequence(start, end).toString()) 
+ */ + // @ts-ignore + public append(csq: java.lang.CharSequence, start: number, end: number): java.io.CharArrayWriter; + /** + * Appends the specified character to this writer. + *

An invocation of this method of the form out.append(c) + * behaves in exactly the same way as the invocation + *

+             * out.write(c) 
+ */ + // @ts-ignore + public append(c: string): java.io.CharArrayWriter; + /** + * Resets the buffer so that you can use it again without + * throwing away the already allocated buffer. + */ + // @ts-ignore + public reset(): void; + /** + * Returns a copy of the input data. + */ + // @ts-ignore + public toCharArray(): string[]; + /** + * Returns the current size of the buffer. + */ + // @ts-ignore + public size(): number; + /** + * Converts input data to a string. + */ + // @ts-ignore + public toString(): string; + /** + * Flush the stream. + */ + // @ts-ignore + public flush(): void; + /** + * Close the stream. This method does not release the buffer, since its + * contents might still be required. Note: Invoking this method in this class + * will have no effect. + */ + // @ts-ignore + public close(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.CharConversionException.d.ts b/packages/types/dist/typings/jdk/java.io.CharConversionException.d.ts new file mode 100644 index 00000000..7a34cc4f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.CharConversionException.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class CharConversionException extends java.io.IOException { + /** + * This provides no detailed message. + */ + // @ts-ignore + constructor() + /** + * This provides a detailed message. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.Closeable.d.ts b/packages/types/dist/typings/jdk/java.io.Closeable.d.ts new file mode 100644 index 00000000..1cfed29b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.Closeable.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + interface Closeable { + /** + * Closes this stream and releases any system resources associated + * with it. If the stream is already closed then invoking this + * method has no effect. + *

As noted in {@link AutoCloseable#close()}, cases where the + * close may fail require careful attention. It is strongly advised + * to relinquish the underlying resources and to internally + * mark the {@code Closeable} as closed, prior to throwing + * the {@code IOException}. + */ + // @ts-ignore + close(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.Console.d.ts b/packages/types/dist/typings/jdk/java.io.Console.d.ts new file mode 100644 index 00000000..0ae6396d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.Console.d.ts @@ -0,0 +1,88 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class Console extends java.lang.Object { + /** + * Retrieves the unique {@link java.io.PrintWriter PrintWriter} object + * associated with this console. + */ + // @ts-ignore + public writer(): java.io.PrintWriter; + /** + * Retrieves the unique {@link java.io.Reader Reader} object associated + * with this console. + *

+ * This method is intended to be used by sophisticated applications, for + * example, a {@link java.util.Scanner} object which utilizes the rich + * parsing/scanning functionality provided by the Scanner: + *

+             * Console con = System.console();
+             * if (con != null) {
+             * Scanner sc = new Scanner(con.reader());
+             * ...
+             * }
+             * 
+ *

+ * For simple applications requiring only line-oriented reading, use + * {@link #readLine}. + *

+ * The bulk read operations {@link java.io.Reader#read(char[]) read(char[]) }, + * {@link java.io.Reader#read(char[], int, int) read(char[], int, int) } and + * {@link java.io.Reader#read(java.nio.CharBuffer) read(java.nio.CharBuffer)} + * on the returned object will not read in characters beyond the line + * bound for each invocation, even if the destination buffer has space for + * more characters. The {@code Reader}'s {@code read} methods may block if a + * line bound has not been entered or reached on the console's input device. + * A line bound is considered to be any one of a line feed ('\n'), + * a carriage return ('\r'), a carriage return followed immediately + * by a linefeed, or an end of stream. + */ + // @ts-ignore + public reader(): java.io.Reader; + /** + * Writes a formatted string to this console's output stream using + * the specified format string and arguments. + */ + // @ts-ignore + public format(fmt: string, args: java.lang.Object): java.io.Console; + /** + * A convenience method to write a formatted string to this console's + * output stream using the specified format string and arguments. + *

An invocation of this method of the form con.printf(format, + * args) behaves in exactly the same way as the invocation of + *

con.format(format, args)
. + */ + // @ts-ignore + public printf(format: string, args: java.lang.Object): java.io.Console; + /** + * Provides a formatted prompt, then reads a single line of text from the + * console. + */ + // @ts-ignore + public readLine(fmt: string, args: java.lang.Object): string; + /** + * Reads a single line of text from the console. + */ + // @ts-ignore + public readLine(): string; + /** + * Provides a formatted prompt, then reads a password or passphrase from + * the console with echoing disabled. + */ + // @ts-ignore + public readPassword(fmt: string, args: java.lang.Object): string[]; + /** + * Reads a password or passphrase from the console with echoing disabled + */ + // @ts-ignore + public readPassword(): string[]; + /** + * Flushes the console and forces any buffered output to be written + * immediately . + */ + // @ts-ignore + public flush(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.DataInput.d.ts b/packages/types/dist/typings/jdk/java.io.DataInput.d.ts new file mode 100644 index 00000000..04189f1a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.DataInput.d.ts @@ -0,0 +1,366 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + interface DataInput { + /** + * Reads some bytes from an input + * stream and stores them into the buffer + * array {@code b}. The number of bytes + * read is equal + * to the length of {@code b}. + *

+ * This method blocks until one of the + * following conditions occurs: + *

    + *
  • {@code b.length} + * bytes of input data are available, in which + * case a normal return is made. + *
  • End of + * file is detected, in which case an {@code EOFException} + * is thrown. + *
  • An I/O error occurs, in + * which case an {@code IOException} other + * than {@code EOFException} is thrown. + *
+ *

+ * If {@code b} is {@code null}, + * a {@code NullPointerException} is thrown. + * If {@code b.length} is zero, then + * no bytes are read. Otherwise, the first + * byte read is stored into element {@code b[0]}, + * the next one into {@code b[1]}, and + * so on. + * If an exception is thrown from + * this method, then it may be that some but + * not all bytes of {@code b} have been + * updated with data from the input stream. + */ + // @ts-ignore + readFully(b: number): void; + /** + * Reads {@code len} + * bytes from + * an input stream. + *

+ * This method + * blocks until one of the following conditions + * occurs: + *

    + *
  • {@code len} bytes + * of input data are available, in which case + * a normal return is made. + *
  • End of file + * is detected, in which case an {@code EOFException} + * is thrown. + *
  • An I/O error occurs, in + * which case an {@code IOException} other + * than {@code EOFException} is thrown. + *
+ *

+ * If {@code b} is {@code null}, + * a {@code NullPointerException} is thrown. + * If {@code off} is negative, or {@code len} + * is negative, or {@code off+len} is + * greater than the length of the array {@code b}, + * then an {@code IndexOutOfBoundsException} + * is thrown. + * If {@code len} is zero, + * then no bytes are read. Otherwise, the first + * byte read is stored into element {@code b[off]}, + * the next one into {@code b[off+1]}, + * and so on. The number of bytes read is, + * at most, equal to {@code len}. + */ + // @ts-ignore + readFully(b: number, off: number, len: number): void; + /** + * Makes an attempt to skip over + * {@code n} bytes + * of data from the input + * stream, discarding the skipped bytes. However, + * it may skip + * over some smaller number of + * bytes, possibly zero. This may result from + * any of a + * number of conditions; reaching + * end of file before {@code n} bytes + * have been skipped is + * only one possibility. + * This method never throws an {@code EOFException}. + * The actual + * number of bytes skipped is returned. + */ + // @ts-ignore + skipBytes(n: number): number; + /** + * Reads one input byte and returns + * {@code true} if that byte is nonzero, + * {@code false} if that byte is zero. + * This method is suitable for reading + * the byte written by the {@code writeBoolean} + * method of interface {@code DataOutput}. + */ + // @ts-ignore + readBoolean(): boolean; + /** + * Reads and returns one input byte. + * The byte is treated as a signed value in + * the range {@code -128} through {@code 127}, + * inclusive. + * This method is suitable for + * reading the byte written by the {@code writeByte} + * method of interface {@code DataOutput}. + */ + // @ts-ignore + readByte(): number; + /** + * Reads one input byte, zero-extends + * it to type {@code int}, and returns + * the result, which is therefore in the range + * {@code 0} + * through {@code 255}. + * This method is suitable for reading + * the byte written by the {@code writeByte} + * method of interface {@code DataOutput} + * if the argument to {@code writeByte} + * was intended to be a value in the range + * {@code 0} through {@code 255}. + */ + // @ts-ignore + readUnsignedByte(): number; + /** + * Reads two input bytes and returns + * a {@code short} value. Let {@code a} + * be the first byte read and {@code b} + * be the second byte. The value + * returned + * is: + *

{@code (short)((a << 8) | (b & 0xff))
+             * }
+ * This method + * is suitable for reading the bytes written + * by the {@code writeShort} method of + * interface {@code DataOutput}. + */ + // @ts-ignore + readShort(): number; + /** + * Reads two input bytes and returns + * an {@code int} value in the range {@code 0} + * through {@code 65535}. Let {@code a} + * be the first byte read and + * {@code b} + * be the second byte. The value returned is: + *
{@code (((a & 0xff) << 8) | (b & 0xff))
+             * }
+ * This method is suitable for reading the bytes + * written by the {@code writeShort} method + * of interface {@code DataOutput} if + * the argument to {@code writeShort} + * was intended to be a value in the range + * {@code 0} through {@code 65535}. + */ + // @ts-ignore + readUnsignedShort(): number; + /** + * Reads two input bytes and returns a {@code char} value. + * Let {@code a} + * be the first byte read and {@code b} + * be the second byte. The value + * returned is: + *
{@code (char)((a << 8) | (b & 0xff))
+             * }
+ * This method + * is suitable for reading bytes written by + * the {@code writeChar} method of interface + * {@code DataOutput}. + */ + // @ts-ignore + readChar(): string; + /** + * Reads four input bytes and returns an + * {@code int} value. Let {@code a-d} + * be the first through fourth bytes read. The value returned is: + *
{@code
+             * (((a & 0xff) << 24) | ((b & 0xff) << 16) |
+             * ((c & 0xff) <<  8) | (d & 0xff))
+             * }
+ * This method is suitable + * for reading bytes written by the {@code writeInt} + * method of interface {@code DataOutput}. + */ + // @ts-ignore + readInt(): number; + /** + * Reads eight input bytes and returns + * a {@code long} value. Let {@code a-h} + * be the first through eighth bytes read. + * The value returned is: + *
{@code
+             * (((long)(a & 0xff) << 56) |
+             * ((long)(b & 0xff) << 48) |
+             * ((long)(c & 0xff) << 40) |
+             * ((long)(d & 0xff) << 32) |
+             * ((long)(e & 0xff) << 24) |
+             * ((long)(f & 0xff) << 16) |
+             * ((long)(g & 0xff) <<  8) |
+             * ((long)(h & 0xff)))
+             * }
+ *

+ * This method is suitable + * for reading bytes written by the {@code writeLong} + * method of interface {@code DataOutput}. + */ + // @ts-ignore + readLong(): number; + /** + * Reads four input bytes and returns + * a {@code float} value. It does this + * by first constructing an {@code int} + * value in exactly the manner + * of the {@code readInt} + * method, then converting this {@code int} + * value to a {@code float} in + * exactly the manner of the method {@code Float.intBitsToFloat}. + * This method is suitable for reading + * bytes written by the {@code writeFloat} + * method of interface {@code DataOutput}. + */ + // @ts-ignore + readFloat(): number; + /** + * Reads eight input bytes and returns + * a {@code double} value. It does this + * by first constructing a {@code long} + * value in exactly the manner + * of the {@code readLong} + * method, then converting this {@code long} + * value to a {@code double} in exactly + * the manner of the method {@code Double.longBitsToDouble}. + * This method is suitable for reading + * bytes written by the {@code writeDouble} + * method of interface {@code DataOutput}. + */ + // @ts-ignore + readDouble(): number; + /** + * Reads the next line of text from the input stream. + * It reads successive bytes, converting + * each byte separately into a character, + * until it encounters a line terminator or + * end of + * file; the characters read are then + * returned as a {@code String}. Note + * that because this + * method processes bytes, + * it does not support input of the full Unicode + * character set. + *

+ * If end of file is encountered + * before even one byte can be read, then {@code null} + * is returned. Otherwise, each byte that is + * read is converted to type {@code char} + * by zero-extension. If the character {@code '\n'} + * is encountered, it is discarded and reading + * ceases. If the character {@code '\r'} + * is encountered, it is discarded and, if + * the following byte converts to the + * character {@code '\n'}, then that is + * discarded also; reading then ceases. If + * end of file is encountered before either + * of the characters {@code '\n'} and + * {@code '\r'} is encountered, reading + * ceases. Once reading has ceased, a {@code String} + * is returned that contains all the characters + * read and not discarded, taken in order. + * Note that every character in this string + * will have a value less than {@code \u0100}, + * that is, {@code (char)256}. + */ + // @ts-ignore + readLine(): string; + /** + * Reads in a string that has been encoded using a + * modified UTF-8 + * format. + * The general contract of {@code readUTF} + * is that it reads a representation of a Unicode + * character string encoded in modified + * UTF-8 format; this string of characters + * is then returned as a {@code String}. + *

+ * First, two bytes are read and used to + * construct an unsigned 16-bit integer in + * exactly the manner of the {@code readUnsignedShort} + * method . This integer value is called the + * UTF length and specifies the number + * of additional bytes to be read. These bytes + * are then converted to characters by considering + * them in groups. The length of each group + * is computed from the value of the first + * byte of the group. The byte following a + * group, if any, is the first byte of the + * next group. + *

+ * If the first byte of a group + * matches the bit pattern {@code 0xxxxxxx} + * (where {@code x} means "may be {@code 0} + * or {@code 1}"), then the group consists + * of just that byte. The byte is zero-extended + * to form a character. + *

+ * If the first byte + * of a group matches the bit pattern {@code 110xxxxx}, + * then the group consists of that byte {@code a} + * and a second byte {@code b}. If there + * is no byte {@code b} (because byte + * {@code a} was the last of the bytes + * to be read), or if byte {@code b} does + * not match the bit pattern {@code 10xxxxxx}, + * then a {@code UTFDataFormatException} + * is thrown. Otherwise, the group is converted + * to the character: + *

{@code (char)(((a & 0x1F) << 6) | (b & 0x3F))
+             * }
+ * If the first byte of a group + * matches the bit pattern {@code 1110xxxx}, + * then the group consists of that byte {@code a} + * and two more bytes {@code b} and {@code c}. + * If there is no byte {@code c} (because + * byte {@code a} was one of the last + * two of the bytes to be read), or either + * byte {@code b} or byte {@code c} + * does not match the bit pattern {@code 10xxxxxx}, + * then a {@code UTFDataFormatException} + * is thrown. Otherwise, the group is converted + * to the character: + *
{@code
+             * (char)(((a & 0x0F) << 12) | ((b & 0x3F) << 6) | (c & 0x3F))
+             * }
+ * If the first byte of a group matches the + * pattern {@code 1111xxxx} or the pattern + * {@code 10xxxxxx}, then a {@code UTFDataFormatException} + * is thrown. + *

+ * If end of file is encountered + * at any time during this entire process, + * then an {@code EOFException} is thrown. + *

+ * After every group has been converted to + * a character by this process, the characters + * are gathered, in the same order in which + * their corresponding groups were read from + * the input stream, to form a {@code String}, + * which is returned. + *

+ * The {@code writeUTF} + * method of interface {@code DataOutput} + * may be used to write data that is suitable + * for reading by this method. + */ + // @ts-ignore + readUTF(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.DataInputStream.d.ts b/packages/types/dist/typings/jdk/java.io.DataInputStream.d.ts new file mode 100644 index 00000000..ee0f53d8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.DataInputStream.d.ts @@ -0,0 +1,226 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class DataInputStream extends java.io.FilterInputStream { + /** + * Creates a DataInputStream that uses the specified + * underlying InputStream. + */ + // @ts-ignore + constructor(input: java.io.InputStream) + /** + * Reads some number of bytes from the contained input stream and + * stores them into the buffer array b. The number of + * bytes actually read is returned as an integer. This method blocks + * until input data is available, end of file is detected, or an + * exception is thrown. + *

If b is null, a NullPointerException is + * thrown. If the length of b is zero, then no bytes are + * read and 0 is returned; otherwise, there is an attempt + * to read at least one byte. If no byte is available because the + * stream is at end of file, the value -1 is returned; + * otherwise, at least one byte is read and stored into b. + *

The first byte read is stored into element b[0], the + * next one into b[1], and so on. The number of bytes read + * is, at most, equal to the length of b. Let k + * be the number of bytes actually read; these bytes will be stored in + * elements b[0] through b[k-1], leaving + * elements b[k] through b[b.length-1] + * unaffected. + *

The read(b) method has the same effect as: + *

+             * read(b, 0, b.length)
+             * 
+ */ + // @ts-ignore + public read(b: number): number; + /** + * Reads up to len bytes of data from the contained + * input stream into an array of bytes. An attempt is made to read + * as many as len bytes, but a smaller number may be read, + * possibly zero. The number of bytes actually read is returned as an + * integer. + *

This method blocks until input data is available, end of file is + * detected, or an exception is thrown. + *

If len is zero, then no bytes are read and + * 0 is returned; otherwise, there is an attempt to read at + * least one byte. If no byte is available because the stream is at end of + * file, the value -1 is returned; otherwise, at least one + * byte is read and stored into b. + *

The first byte read is stored into element b[off], the + * next one into b[off+1], and so on. The number of bytes read + * is, at most, equal to len. Let k be the number of + * bytes actually read; these bytes will be stored in elements + * b[off] through b[off+k-1], + * leaving elements b[off+k] through + * b[off+len-1] unaffected. + *

In every case, elements b[0] through + * b[off] and elements b[off+len] through + * b[b.length-1] are unaffected. + */ + // @ts-ignore + public read(b: number, off: number, len: number): number; + /** + * See the general contract of the readFully + * method of DataInput. + *

+ * Bytes + * for this operation are read from the contained + * input stream. + */ + // @ts-ignore + public readFully(b: number): void; + /** + * See the general contract of the readFully + * method of DataInput. + *

+ * Bytes + * for this operation are read from the contained + * input stream. + */ + // @ts-ignore + public readFully(b: number, off: number, len: number): void; + /** + * See the general contract of the skipBytes + * method of DataInput. + *

+ * Bytes for this operation are read from the contained + * input stream. + */ + // @ts-ignore + public skipBytes(n: number): number; + /** + * See the general contract of the readBoolean + * method of DataInput. + *

+ * Bytes for this operation are read from the contained + * input stream. + */ + // @ts-ignore + public readBoolean(): boolean; + /** + * See the general contract of the readByte + * method of DataInput. + *

+ * Bytes + * for this operation are read from the contained + * input stream. + */ + // @ts-ignore + public readByte(): number; + /** + * See the general contract of the readUnsignedByte + * method of DataInput. + *

+ * Bytes + * for this operation are read from the contained + * input stream. + */ + // @ts-ignore + public readUnsignedByte(): number; + /** + * See the general contract of the readShort + * method of DataInput. + *

+ * Bytes + * for this operation are read from the contained + * input stream. + */ + // @ts-ignore + public readShort(): number; + /** + * See the general contract of the readUnsignedShort + * method of DataInput. + *

+ * Bytes + * for this operation are read from the contained + * input stream. + */ + // @ts-ignore + public readUnsignedShort(): number; + /** + * See the general contract of the readChar + * method of DataInput. + *

+ * Bytes + * for this operation are read from the contained + * input stream. + */ + // @ts-ignore + public readChar(): string; + /** + * See the general contract of the readInt + * method of DataInput. + *

+ * Bytes + * for this operation are read from the contained + * input stream. + */ + // @ts-ignore + public readInt(): number; + /** + * See the general contract of the readLong + * method of DataInput. + *

+ * Bytes + * for this operation are read from the contained + * input stream. + */ + // @ts-ignore + public readLong(): number; + /** + * See the general contract of the readFloat + * method of DataInput. + *

+ * Bytes + * for this operation are read from the contained + * input stream. + */ + // @ts-ignore + public readFloat(): number; + /** + * See the general contract of the readDouble + * method of DataInput. + *

+ * Bytes + * for this operation are read from the contained + * input stream. + */ + // @ts-ignore + public readDouble(): number; + /** + * See the general contract of the readLine + * method of DataInput. + *

+ * Bytes + * for this operation are read from the contained + * input stream. + */ + // @ts-ignore + public readLine(): string; + /** + * See the general contract of the readUTF + * method of DataInput. + *

+ * Bytes + * for this operation are read from the contained + * input stream. + */ + // @ts-ignore + public readUTF(): string; + /** + * Reads from the + * stream in a representation + * of a Unicode character string encoded in + * modified UTF-8 format; + * this string of characters is then returned as a String. + * The details of the modified UTF-8 representation + * are exactly the same as for the readUTF + * method of DataInput. + */ + // @ts-ignore + public static readUTF(input: java.io.DataInput): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.DataOutput.d.ts b/packages/types/dist/typings/jdk/java.io.DataOutput.d.ts new file mode 100644 index 00000000..bb9045a3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.DataOutput.d.ts @@ -0,0 +1,268 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + interface DataOutput { + /** + * Writes to the output stream the eight + * low-order bits of the argument b. + * The 24 high-order bits of b + * are ignored. + */ + // @ts-ignore + write(b: number): void; + /** + * Writes to the output stream all the bytes in array b. + * If b is null, + * a NullPointerException is thrown. + * If b.length is zero, then + * no bytes are written. Otherwise, the byte + * b[0] is written first, then + * b[1], and so on; the last byte + * written is b[b.length-1]. + */ + // @ts-ignore + write(b: number): void; + /** + * Writes len bytes from array + * b, in order, to + * the output stream. If b + * is null, a NullPointerException + * is thrown. If off is negative, + * or len is negative, or off+len + * is greater than the length of the array + * b, then an IndexOutOfBoundsException + * is thrown. If len is zero, + * then no bytes are written. Otherwise, the + * byte b[off] is written first, + * then b[off+1], and so on; the + * last byte written is b[off+len-1]. + */ + // @ts-ignore + write(b: number, off: number, len: number): void; + /** + * Writes a boolean value to this output stream. + * If the argument v + * is true, the value (byte)1 + * is written; if v is false, + * the value (byte)0 is written. + * The byte written by this method may + * be read by the readBoolean + * method of interface DataInput, + * which will then return a boolean + * equal to v. + */ + // @ts-ignore + writeBoolean(v: boolean): void; + /** + * Writes to the output stream the eight low- + * order bits of the argument v. + * The 24 high-order bits of v + * are ignored. (This means that writeByte + * does exactly the same thing as write + * for an integer argument.) The byte written + * by this method may be read by the readByte + * method of interface DataInput, + * which will then return a byte + * equal to (byte)v. + */ + // @ts-ignore + writeByte(v: number): void; + /** + * Writes two bytes to the output + * stream to represent the value of the argument. + * The byte values to be written, in the order + * shown, are: + *

{@code
+             * (byte)(0xff & (v >> 8))
+             * (byte)(0xff & v)
+             * }

+ * The bytes written by this method may be + * read by the readShort method + * of interface DataInput , which + * will then return a short equal + * to (short)v. + */ + // @ts-ignore + writeShort(v: number): void; + /** + * Writes a char value, which + * is comprised of two bytes, to the + * output stream. + * The byte values to be written, in the order + * shown, are: + *

{@code
+             * (byte)(0xff & (v >> 8))
+             * (byte)(0xff & v)
+             * }

+ * The bytes written by this method may be + * read by the readChar method + * of interface DataInput , which + * will then return a char equal + * to (char)v. + */ + // @ts-ignore + writeChar(v: number): void; + /** + * Writes an int value, which is + * comprised of four bytes, to the output stream. + * The byte values to be written, in the order + * shown, are: + *

{@code
+             * (byte)(0xff & (v >> 24))
+             * (byte)(0xff & (v >> 16))
+             * (byte)(0xff & (v >>  8))
+             * (byte)(0xff & v)
+             * }

+ * The bytes written by this method may be read + * by the readInt method of interface + * DataInput , which will then + * return an int equal to v. + */ + // @ts-ignore + writeInt(v: number): void; + /** + * Writes a long value, which is + * comprised of eight bytes, to the output stream. + * The byte values to be written, in the order + * shown, are: + *

{@code
+             * (byte)(0xff & (v >> 56))
+             * (byte)(0xff & (v >> 48))
+             * (byte)(0xff & (v >> 40))
+             * (byte)(0xff & (v >> 32))
+             * (byte)(0xff & (v >> 24))
+             * (byte)(0xff & (v >> 16))
+             * (byte)(0xff & (v >>  8))
+             * (byte)(0xff & v)
+             * }

+ * The bytes written by this method may be + * read by the readLong method + * of interface DataInput , which + * will then return a long equal + * to v. + */ + // @ts-ignore + writeLong(v: number): void; + /** + * Writes a float value, + * which is comprised of four bytes, to the output stream. + * It does this as if it first converts this + * float value to an int + * in exactly the manner of the Float.floatToIntBits + * method and then writes the int + * value in exactly the manner of the writeInt + * method. The bytes written by this method + * may be read by the readFloat + * method of interface DataInput, + * which will then return a float + * equal to v. + */ + // @ts-ignore + writeFloat(v: number): void; + /** + * Writes a double value, + * which is comprised of eight bytes, to the output stream. + * It does this as if it first converts this + * double value to a long + * in exactly the manner of the Double.doubleToLongBits + * method and then writes the long + * value in exactly the manner of the writeLong + * method. The bytes written by this method + * may be read by the readDouble + * method of interface DataInput, + * which will then return a double + * equal to v. + */ + // @ts-ignore + writeDouble(v: number): void; + /** + * Writes a string to the output stream. + * For every character in the string + * s, taken in order, one byte + * is written to the output stream. If + * s is null, a NullPointerException + * is thrown.

If s.length + * is zero, then no bytes are written. Otherwise, + * the character s[0] is written + * first, then s[1], and so on; + * the last character written is s[s.length-1]. + * For each character, one byte is written, + * the low-order byte, in exactly the manner + * of the writeByte method . The + * high-order eight bits of each character + * in the string are ignored. + */ + // @ts-ignore + writeBytes(s: string): void; + /** + * Writes every character in the string s, + * to the output stream, in order, + * two bytes per character. If s + * is null, a NullPointerException + * is thrown. If s.length + * is zero, then no characters are written. + * Otherwise, the character s[0] + * is written first, then s[1], + * and so on; the last character written is + * s[s.length-1]. For each character, + * two bytes are actually written, high-order + * byte first, in exactly the manner of the + * writeChar method. + */ + // @ts-ignore + writeChars(s: string): void; + /** + * Writes two bytes of length information + * to the output stream, followed + * by the + * modified UTF-8 + * representation + * of every character in the string s. + * If s is null, + * a NullPointerException is thrown. + * Each character in the string s + * is converted to a group of one, two, or + * three bytes, depending on the value of the + * character.

+ * If a character c + * is in the range \u0001 through + * \u007f, it is represented + * by one byte: + *

(byte)c 

+ * If a character c is \u0000 + * or is in the range \u0080 + * through \u07ff, then it is + * represented by two bytes, to be written + * in the order shown:

{@code
+             * (byte)(0xc0 | (0x1f & (c >> 6)))
+             * (byte)(0x80 | (0x3f & c))
+             * }

If a character + * c is in the range \u0800 + * through uffff, then it is + * represented by three bytes, to be written + * in the order shown:

{@code
+             * (byte)(0xe0 | (0x0f & (c >> 12)))
+             * (byte)(0x80 | (0x3f & (c >>  6)))
+             * (byte)(0x80 | (0x3f & c))
+             * }

First, + * the total number of bytes needed to represent + * all the characters of s is + * calculated. If this number is larger than + * 65535, then a UTFDataFormatException + * is thrown. Otherwise, this length is written + * to the output stream in exactly the manner + * of the writeShort method; + * after this, the one-, two-, or three-byte + * representation of each character in the + * string s is written.

The + * bytes written by this method may be read + * by the readUTF method of interface + * DataInput , which will then + * return a String equal to s. + */ + // @ts-ignore + writeUTF(s: string): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.DataOutputStream.d.ts b/packages/types/dist/typings/jdk/java.io.DataOutputStream.d.ts new file mode 100644 index 00000000..63671b38 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.DataOutputStream.d.ts @@ -0,0 +1,152 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class DataOutputStream extends java.io.FilterOutputStream { + /** + * Creates a new data output stream to write data to the specified + * underlying output stream. The counter written is + * set to zero. + */ + // @ts-ignore + constructor(out: java.io.OutputStream) + // @ts-ignore + protected written: number; + /** + * Writes the specified byte (the low eight bits of the argument + * b) to the underlying output stream. If no exception + * is thrown, the counter written is incremented by + * 1. + *

+ * Implements the write method of OutputStream. + */ + // @ts-ignore + public write(b: number): void; + /** + * Writes len bytes from the specified byte array + * starting at offset off to the underlying output stream. + * If no exception is thrown, the counter written is + * incremented by len. + */ + // @ts-ignore + public write(b: number, off: number, len: number): void; + /** + * Flushes this data output stream. This forces any buffered output + * bytes to be written out to the stream. + *

+ * The flush method of DataOutputStream + * calls the flush method of its underlying output stream. + */ + // @ts-ignore + public flush(): void; + /** + * Writes a boolean to the underlying output stream as + * a 1-byte value. The value true is written out as the + * value (byte)1; the value false is + * written out as the value (byte)0. If no exception is + * thrown, the counter written is incremented by + * 1. + */ + // @ts-ignore + public writeBoolean(v: boolean): void; + /** + * Writes out a byte to the underlying output stream as + * a 1-byte value. If no exception is thrown, the counter + * written is incremented by 1. + */ + // @ts-ignore + public writeByte(v: number): void; + /** + * Writes a short to the underlying output stream as two + * bytes, high byte first. If no exception is thrown, the counter + * written is incremented by 2. + */ + // @ts-ignore + public writeShort(v: number): void; + /** + * Writes a char to the underlying output stream as a + * 2-byte value, high byte first. If no exception is thrown, the + * counter written is incremented by 2. + */ + // @ts-ignore + public writeChar(v: number): void; + /** + * Writes an int to the underlying output stream as four + * bytes, high byte first. If no exception is thrown, the counter + * written is incremented by 4. + */ + // @ts-ignore + public writeInt(v: number): void; + /** + * Writes a long to the underlying output stream as eight + * bytes, high byte first. In no exception is thrown, the counter + * written is incremented by 8. + */ + // @ts-ignore + public writeLong(v: number): void; + /** + * Converts the float argument to an int using the + * floatToIntBits method in class Float, + * and then writes that int value to the underlying + * output stream as a 4-byte quantity, high byte first. If no + * exception is thrown, the counter written is + * incremented by 4. + */ + // @ts-ignore + public writeFloat(v: number): void; + /** + * Converts the double argument to a long using the + * doubleToLongBits method in class Double, + * and then writes that long value to the underlying + * output stream as an 8-byte quantity, high byte first. If no + * exception is thrown, the counter written is + * incremented by 8. + */ + // @ts-ignore + public writeDouble(v: number): void; + /** + * Writes out the string to the underlying output stream as a + * sequence of bytes. Each character in the string is written out, in + * sequence, by discarding its high eight bits. If no exception is + * thrown, the counter written is incremented by the + * length of s. + */ + // @ts-ignore + public writeBytes(s: string): void; + /** + * Writes a string to the underlying output stream as a sequence of + * characters. Each character is written to the data output stream as + * if by the writeChar method. If no exception is + * thrown, the counter written is incremented by twice + * the length of s. + */ + // @ts-ignore + public writeChars(s: string): void; + /** + * Writes a string to the underlying output stream using + * modified UTF-8 + * encoding in a machine-independent manner. + *

+ * First, two bytes are written to the output stream as if by the + * writeShort method giving the number of bytes to + * follow. This value is the number of bytes actually written out, + * not the length of the string. Following the length, each character + * of the string is output, in sequence, using the modified UTF-8 encoding + * for the character. If no exception is thrown, the counter + * written is incremented by the total number of + * bytes written to the output stream. This will be at least two + * plus the length of str, and at most two plus + * thrice the length of str. + */ + // @ts-ignore + public writeUTF(str: string): void; + /** + * Returns the current value of the counter written, + * the number of bytes written to this data output stream so far. + * If the counter overflows, it will be wrapped to Integer.MAX_VALUE. + */ + // @ts-ignore + public size(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.EOFException.d.ts b/packages/types/dist/typings/jdk/java.io.EOFException.d.ts new file mode 100644 index 00000000..dbe7df4a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.EOFException.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class EOFException extends java.io.IOException { + /** + * Constructs an EOFException with null + * as its error detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs an EOFException with the specified detail + * message. The string s may later be retrieved by the + * {@link java.lang.Throwable#getMessage} method of class + * java.lang.Throwable. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.Externalizable.d.ts b/packages/types/dist/typings/jdk/java.io.Externalizable.d.ts new file mode 100644 index 00000000..ec050bd1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.Externalizable.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + interface Externalizable { + /** + * The object implements the writeExternal method to save its contents + * by calling the methods of DataOutput for its primitive values or + * calling the writeObject method of ObjectOutput for objects, strings, + * and arrays. + */ + // @ts-ignore + writeExternal(out: java.io.ObjectOutput): void; + /** + * The object implements the readExternal method to restore its + * contents by calling the methods of DataInput for primitive + * types and readObject for objects, strings and arrays. The + * readExternal method must read the values in the same sequence + * and with the same types as were written by writeExternal. + */ + // @ts-ignore + readExternal(input: java.io.ObjectInput): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.File.d.ts b/packages/types/dist/typings/jdk/java.io.File.d.ts new file mode 100644 index 00000000..9e077cff --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.File.d.ts @@ -0,0 +1,727 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class File extends java.lang.Object { + /** + * Creates a new File instance by converting the given + * pathname string into an abstract pathname. If the given string is + * the empty string, then the result is the empty abstract pathname. + */ + // @ts-ignore + constructor(pathname: string) + /** + * Creates a new File instance from a parent pathname string + * and a child pathname string. + *

If parent is null then the new + * File instance is created as if by invoking the + * single-argument File constructor on the given + * child pathname string. + *

Otherwise the parent pathname string is taken to denote + * a directory, and the child pathname string is taken to + * denote either a directory or a file. If the child pathname + * string is absolute then it is converted into a relative pathname in a + * system-dependent way. If parent is the empty string then + * the new File instance is created by converting + * child into an abstract pathname and resolving the result + * against a system-dependent default directory. Otherwise each pathname + * string is converted into an abstract pathname and the child abstract + * pathname is resolved against the parent. + */ + // @ts-ignore + constructor(parent: string, child: string) + /** + * Creates a new File instance from a parent abstract + * pathname and a child pathname string. + *

If parent is null then the new + * File instance is created as if by invoking the + * single-argument File constructor on the given + * child pathname string. + *

Otherwise the parent abstract pathname is taken to + * denote a directory, and the child pathname string is taken + * to denote either a directory or a file. If the child + * pathname string is absolute then it is converted into a relative + * pathname in a system-dependent way. If parent is the empty + * abstract pathname then the new File instance is created by + * converting child into an abstract pathname and resolving + * the result against a system-dependent default directory. Otherwise each + * pathname string is converted into an abstract pathname and the child + * abstract pathname is resolved against the parent. + */ + // @ts-ignore + constructor(parent: java.io.File, child: string) + /** + * Creates a new File instance by converting the given + * file: URI into an abstract pathname. + *

The exact form of a file: URI is system-dependent, hence + * the transformation performed by this constructor is also + * system-dependent. + *

For a given abstract pathname f it is guaranteed that + *

+ * new File( f.{@link #toURI() toURI}()).equals( f.{@link #getAbsoluteFile() getAbsoluteFile}()) + *
+ * so long as the original abstract pathname, the URI, and the new abstract + * pathname are all created in (possibly different invocations of) the same + * Java virtual machine. This relationship typically does not hold, + * however, when a file: URI that is created in a virtual machine + * on one operating system is converted into an abstract pathname in a + * virtual machine on a different operating system. + */ + // @ts-ignore + constructor(uri: java.net.URI) + // @ts-ignore + public static separatorChar: string; + // @ts-ignore + public static separator: string; + // @ts-ignore + public static pathSeparatorChar: string; + // @ts-ignore + public static pathSeparator: string; + /** + * Returns the name of the file or directory denoted by this abstract + * pathname. This is just the last name in the pathname's name + * sequence. If the pathname's name sequence is empty, then the empty + * string is returned. + */ + // @ts-ignore + public getName(): string; + /** + * Returns the pathname string of this abstract pathname's parent, or + * null if this pathname does not name a parent directory. + *

The parent of an abstract pathname consists of the + * pathname's prefix, if any, and each name in the pathname's name + * sequence except for the last. If the name sequence is empty then + * the pathname does not name a parent directory. + */ + // @ts-ignore + public getParent(): string; + /** + * Returns the abstract pathname of this abstract pathname's parent, + * or null if this pathname does not name a parent + * directory. + *

The parent of an abstract pathname consists of the + * pathname's prefix, if any, and each name in the pathname's name + * sequence except for the last. If the name sequence is empty then + * the pathname does not name a parent directory. + */ + // @ts-ignore + public getParentFile(): java.io.File; + /** + * Converts this abstract pathname into a pathname string. The resulting + * string uses the {@link #separator default name-separator character} to + * separate the names in the name sequence. + */ + // @ts-ignore + public getPath(): string; + /** + * Tests whether this abstract pathname is absolute. The definition of + * absolute pathname is system dependent. On UNIX systems, a pathname is + * absolute if its prefix is "/". On Microsoft Windows systems, a + * pathname is absolute if its prefix is a drive specifier followed by + * "\\", or if its prefix is "\\\\". + */ + // @ts-ignore + public isAbsolute(): boolean; + /** + * Returns the absolute pathname string of this abstract pathname. + *

If this abstract pathname is already absolute, then the pathname + * string is simply returned as if by the {@link #getPath} + * method. If this abstract pathname is the empty abstract pathname then + * the pathname string of the current user directory, which is named by the + * system property user.dir, is returned. Otherwise this + * pathname is resolved in a system-dependent way. On UNIX systems, a + * relative pathname is made absolute by resolving it against the current + * user directory. On Microsoft Windows systems, a relative pathname is made absolute + * by resolving it against the current directory of the drive named by the + * pathname, if any; if not, it is resolved against the current user + * directory. + */ + // @ts-ignore + public getAbsolutePath(): string; + /** + * Returns the absolute form of this abstract pathname. Equivalent to + * new File(this.{@link #getAbsolutePath}). + */ + // @ts-ignore + public getAbsoluteFile(): java.io.File; + /** + * Returns the canonical pathname string of this abstract pathname. + *

A canonical pathname is both absolute and unique. The precise + * definition of canonical form is system-dependent. This method first + * converts this pathname to absolute form if necessary, as if by invoking the + * {@link #getAbsolutePath} method, and then maps it to its unique form in a + * system-dependent way. This typically involves removing redundant names + * such as "." and ".." from the pathname, resolving + * symbolic links (on UNIX platforms), and converting drive letters to a + * standard case (on Microsoft Windows platforms). + *

Every pathname that denotes an existing file or directory has a + * unique canonical form. Every pathname that denotes a nonexistent file + * or directory also has a unique canonical form. The canonical form of + * the pathname of a nonexistent file or directory may be different from + * the canonical form of the same pathname after the file or directory is + * created. Similarly, the canonical form of the pathname of an existing + * file or directory may be different from the canonical form of the same + * pathname after the file or directory is deleted. + */ + // @ts-ignore + public getCanonicalPath(): string; + /** + * Returns the canonical form of this abstract pathname. Equivalent to + * new File(this.{@link #getCanonicalPath}). + */ + // @ts-ignore + public getCanonicalFile(): java.io.File; + /** + * Converts this abstract pathname into a file: URL. The + * exact form of the URL is system-dependent. If it can be determined that + * the file denoted by this abstract pathname is a directory, then the + * resulting URL will end with a slash. + */ + // @ts-ignore + public toURL(): java.net.URL; + /** + * Constructs a file: URI that represents this abstract pathname. + *

The exact form of the URI is system-dependent. If it can be + * determined that the file denoted by this abstract pathname is a + * directory, then the resulting URI will end with a slash. + *

For a given abstract pathname f, it is guaranteed that + *

+ * new {@link #File(java.net.URI) File}( f.toURI()).equals( f.{@link #getAbsoluteFile() getAbsoluteFile}()) + *
+ * so long as the original abstract pathname, the URI, and the new abstract + * pathname are all created in (possibly different invocations of) the same + * Java virtual machine. Due to the system-dependent nature of abstract + * pathnames, however, this relationship typically does not hold when a + * file: URI that is created in a virtual machine on one operating + * system is converted into an abstract pathname in a virtual machine on a + * different operating system. + *

Note that when this abstract pathname represents a UNC pathname then + * all components of the UNC (including the server name component) are encoded + * in the {@code URI} path. The authority component is undefined, meaning + * that it is represented as {@code null}. The {@link Path} class defines the + * {@link Path#toUri toUri} method to encode the server name in the authority + * component of the resulting {@code URI}. The {@link #toPath toPath} method + * may be used to obtain a {@code Path} representing this abstract pathname. + */ + // @ts-ignore + public toURI(): java.net.URI; + /** + * Tests whether the application can read the file denoted by this + * abstract pathname. On some platforms it may be possible to start the + * Java virtual machine with special privileges that allow it to read + * files that are marked as unreadable. Consequently this method may return + * {@code true} even though the file does not have read permissions. + */ + // @ts-ignore + public canRead(): boolean; + /** + * Tests whether the application can modify the file denoted by this + * abstract pathname. On some platforms it may be possible to start the + * Java virtual machine with special privileges that allow it to modify + * files that are marked read-only. Consequently this method may return + * {@code true} even though the file is marked read-only. + */ + // @ts-ignore + public canWrite(): boolean; + /** + * Tests whether the file or directory denoted by this abstract pathname + * exists. + */ + // @ts-ignore + public exists(): boolean; + /** + * Tests whether the file denoted by this abstract pathname is a + * directory. + *

Where it is required to distinguish an I/O exception from the case + * that the file is not a directory, or where several attributes of the + * same file are required at the same time, then the {@link + * java.nio.file.Files#readAttributes(Path,Class,LinkOption[]) + * Files.readAttributes} method may be used. + */ + // @ts-ignore + public isDirectory(): boolean; + /** + * Tests whether the file denoted by this abstract pathname is a normal + * file. A file is normal if it is not a directory and, in + * addition, satisfies other system-dependent criteria. Any non-directory + * file created by a Java application is guaranteed to be a normal file. + *

Where it is required to distinguish an I/O exception from the case + * that the file is not a normal file, or where several attributes of the + * same file are required at the same time, then the {@link + * java.nio.file.Files#readAttributes(Path,Class,LinkOption[]) + * Files.readAttributes} method may be used. + */ + // @ts-ignore + public isFile(): boolean; + /** + * Tests whether the file named by this abstract pathname is a hidden + * file. The exact definition of hidden is system-dependent. On + * UNIX systems, a file is considered to be hidden if its name begins with + * a period character ('.'). On Microsoft Windows systems, a file is + * considered to be hidden if it has been marked as such in the filesystem. + */ + // @ts-ignore + public isHidden(): boolean; + /** + * Returns the time that the file denoted by this abstract pathname was + * last modified. + *

Where it is required to distinguish an I/O exception from the case + * where {@code 0L} is returned, or where several attributes of the + * same file are required at the same time, or where the time of last + * access or the creation time are required, then the {@link + * java.nio.file.Files#readAttributes(Path,Class,LinkOption[]) + * Files.readAttributes} method may be used. + */ + // @ts-ignore + public lastModified(): number; + /** + * Returns the length of the file denoted by this abstract pathname. + * The return value is unspecified if this pathname denotes a directory. + *

Where it is required to distinguish an I/O exception from the case + * that {@code 0L} is returned, or where several attributes of the same file + * are required at the same time, then the {@link + * java.nio.file.Files#readAttributes(Path,Class,LinkOption[]) + * Files.readAttributes} method may be used. + */ + // @ts-ignore + public length(): number; + /** + * Atomically creates a new, empty file named by this abstract pathname if + * and only if a file with this name does not yet exist. The check for the + * existence of the file and the creation of the file if it does not exist + * are a single operation that is atomic with respect to all other + * filesystem activities that might affect the file. + *

+ * Note: this method should not be used for file-locking, as + * the resulting protocol cannot be made to work reliably. The + * {@link java.nio.channels.FileLock FileLock} + * facility should be used instead. + */ + // @ts-ignore + public createNewFile(): boolean; + /** + * Deletes the file or directory denoted by this abstract pathname. If + * this pathname denotes a directory, then the directory must be empty in + * order to be deleted. + *

Note that the {@link java.nio.file.Files} class defines the {@link + * java.nio.file.Files#delete(Path) delete} method to throw an {@link IOException} + * when a file cannot be deleted. This is useful for error reporting and to + * diagnose why a file cannot be deleted. + */ + // @ts-ignore + public delete(): boolean; + /** + * Requests that the file or directory denoted by this abstract + * pathname be deleted when the virtual machine terminates. + * Files (or directories) are deleted in the reverse order that + * they are registered. Invoking this method to delete a file or + * directory that is already registered for deletion has no effect. + * Deletion will be attempted only for normal termination of the + * virtual machine, as defined by the Java Language Specification. + *

Once deletion has been requested, it is not possible to cancel the + * request. This method should therefore be used with care. + *

+ * Note: this method should not be used for file-locking, as + * the resulting protocol cannot be made to work reliably. The + * {@link java.nio.channels.FileLock FileLock} + * facility should be used instead. + */ + // @ts-ignore + public deleteOnExit(): void; + /** + * Returns an array of strings naming the files and directories in the + * directory denoted by this abstract pathname. + *

If this abstract pathname does not denote a directory, then this + * method returns {@code null}. Otherwise an array of strings is + * returned, one for each file or directory in the directory. Names + * denoting the directory itself and the directory's parent directory are + * not included in the result. Each string is a file name rather than a + * complete path. + *

There is no guarantee that the name strings in the resulting array + * will appear in any specific order; they are not, in particular, + * guaranteed to appear in alphabetical order. + *

Note that the {@link java.nio.file.Files} class defines the {@link + * java.nio.file.Files#newDirectoryStream(Path) newDirectoryStream} method to + * open a directory and iterate over the names of the files in the directory. + * This may use less resources when working with very large directories, and + * may be more responsive when working with remote directories. + */ + // @ts-ignore + public list(): java.lang.String[]; + /** + * Returns an array of strings naming the files and directories in the + * directory denoted by this abstract pathname that satisfy the specified + * filter. The behavior of this method is the same as that of the + * {@link #list()} method, except that the strings in the returned array + * must satisfy the filter. If the given {@code filter} is {@code null} + * then all names are accepted. Otherwise, a name satisfies the filter if + * and only if the value {@code true} results when the {@link + * FilenameFilter#accept FilenameFilter.accept(File, String)} method + * of the filter is invoked on this abstract pathname and the name of a + * file or directory in the directory that it denotes. + */ + // @ts-ignore + public list(filter: java.io.FilenameFilter): java.lang.String[]; + /** + * Returns an array of abstract pathnames denoting the files in the + * directory denoted by this abstract pathname. + *

If this abstract pathname does not denote a directory, then this + * method returns {@code null}. Otherwise an array of {@code File} objects + * is returned, one for each file or directory in the directory. Pathnames + * denoting the directory itself and the directory's parent directory are + * not included in the result. Each resulting abstract pathname is + * constructed from this abstract pathname using the {@link #File(File, + * String) File(File, String)} constructor. Therefore if this + * pathname is absolute then each resulting pathname is absolute; if this + * pathname is relative then each resulting pathname will be relative to + * the same directory. + *

There is no guarantee that the name strings in the resulting array + * will appear in any specific order; they are not, in particular, + * guaranteed to appear in alphabetical order. + *

Note that the {@link java.nio.file.Files} class defines the {@link + * java.nio.file.Files#newDirectoryStream(Path) newDirectoryStream} method + * to open a directory and iterate over the names of the files in the + * directory. This may use less resources when working with very large + * directories. + */ + // @ts-ignore + public listFiles(): java.io.File[]; + /** + * Returns an array of abstract pathnames denoting the files and + * directories in the directory denoted by this abstract pathname that + * satisfy the specified filter. The behavior of this method is the same + * as that of the {@link #listFiles()} method, except that the pathnames in + * the returned array must satisfy the filter. If the given {@code filter} + * is {@code null} then all pathnames are accepted. Otherwise, a pathname + * satisfies the filter if and only if the value {@code true} results when + * the {@link FilenameFilter#accept + * FilenameFilter.accept(File, String)} method of the filter is + * invoked on this abstract pathname and the name of a file or directory in + * the directory that it denotes. + */ + // @ts-ignore + public listFiles(filter: java.io.FilenameFilter): java.io.File[]; + /** + * Returns an array of abstract pathnames denoting the files and + * directories in the directory denoted by this abstract pathname that + * satisfy the specified filter. The behavior of this method is the same + * as that of the {@link #listFiles()} method, except that the pathnames in + * the returned array must satisfy the filter. If the given {@code filter} + * is {@code null} then all pathnames are accepted. Otherwise, a pathname + * satisfies the filter if and only if the value {@code true} results when + * the {@link FileFilter#accept FileFilter.accept(File)} method of the + * filter is invoked on the pathname. + */ + // @ts-ignore + public listFiles(filter: java.io.FileFilter): java.io.File[]; + /** + * Creates the directory named by this abstract pathname. + */ + // @ts-ignore + public mkdir(): boolean; + /** + * Creates the directory named by this abstract pathname, including any + * necessary but nonexistent parent directories. Note that if this + * operation fails it may have succeeded in creating some of the necessary + * parent directories. + */ + // @ts-ignore + public mkdirs(): boolean; + /** + * Renames the file denoted by this abstract pathname. + *

Many aspects of the behavior of this method are inherently + * platform-dependent: The rename operation might not be able to move a + * file from one filesystem to another, it might not be atomic, and it + * might not succeed if a file with the destination abstract pathname + * already exists. The return value should always be checked to make sure + * that the rename operation was successful. + *

Note that the {@link java.nio.file.Files} class defines the {@link + * java.nio.file.Files#move move} method to move or rename a file in a + * platform independent manner. + */ + // @ts-ignore + public renameTo(dest: java.io.File): boolean; + /** + * Sets the last-modified time of the file or directory named by this + * abstract pathname. + *

All platforms support file-modification times to the nearest second, + * but some provide more precision. The argument will be truncated to fit + * the supported precision. If the operation succeeds and no intervening + * operations on the file take place, then the next invocation of the + * {@link #lastModified} method will return the (possibly + * truncated) time argument that was passed to this method. + */ + // @ts-ignore + public setLastModified(time: number): boolean; + /** + * Marks the file or directory named by this abstract pathname so that + * only read operations are allowed. After invoking this method the file + * or directory will not change until it is either deleted or marked + * to allow write access. On some platforms it may be possible to start the + * Java virtual machine with special privileges that allow it to modify + * files that are marked read-only. Whether or not a read-only file or + * directory may be deleted depends upon the underlying system. + */ + // @ts-ignore + public setReadOnly(): boolean; + /** + * Sets the owner's or everybody's write permission for this abstract + * pathname. On some platforms it may be possible to start the Java virtual + * machine with special privileges that allow it to modify files that + * disallow write operations. + *

The {@link java.nio.file.Files} class defines methods that operate on + * file attributes including file permissions. This may be used when finer + * manipulation of file permissions is required. + */ + // @ts-ignore + public setWritable(writable: boolean, ownerOnly: boolean): boolean; + /** + * A convenience method to set the owner's write permission for this abstract + * pathname. On some platforms it may be possible to start the Java virtual + * machine with special privileges that allow it to modify files that + * disallow write operations. + *

An invocation of this method of the form file.setWritable(arg) + * behaves in exactly the same way as the invocation + *

+             * file.setWritable(arg, true) 
+ */ + // @ts-ignore + public setWritable(writable: boolean): boolean; + /** + * Sets the owner's or everybody's read permission for this abstract + * pathname. On some platforms it may be possible to start the Java virtual + * machine with special privileges that allow it to read files that are + * marked as unreadable. + *

The {@link java.nio.file.Files} class defines methods that operate on + * file attributes including file permissions. This may be used when finer + * manipulation of file permissions is required. + */ + // @ts-ignore + public setReadable(readable: boolean, ownerOnly: boolean): boolean; + /** + * A convenience method to set the owner's read permission for this abstract + * pathname. On some platforms it may be possible to start the Java virtual + * machine with special privileges that allow it to read files that that are + * marked as unreadable. + *

An invocation of this method of the form file.setReadable(arg) + * behaves in exactly the same way as the invocation + *

+             * file.setReadable(arg, true) 
+ */ + // @ts-ignore + public setReadable(readable: boolean): boolean; + /** + * Sets the owner's or everybody's execute permission for this abstract + * pathname. On some platforms it may be possible to start the Java virtual + * machine with special privileges that allow it to execute files that are + * not marked executable. + *

The {@link java.nio.file.Files} class defines methods that operate on + * file attributes including file permissions. This may be used when finer + * manipulation of file permissions is required. + */ + // @ts-ignore + public setExecutable(executable: boolean, ownerOnly: boolean): boolean; + /** + * A convenience method to set the owner's execute permission for this + * abstract pathname. On some platforms it may be possible to start the Java + * virtual machine with special privileges that allow it to execute files + * that are not marked executable. + *

An invocation of this method of the form file.setExcutable(arg) + * behaves in exactly the same way as the invocation + *

+             * file.setExecutable(arg, true) 
+ */ + // @ts-ignore + public setExecutable(executable: boolean): boolean; + /** + * Tests whether the application can execute the file denoted by this + * abstract pathname. On some platforms it may be possible to start the + * Java virtual machine with special privileges that allow it to execute + * files that are not marked executable. Consequently this method may return + * {@code true} even though the file does not have execute permissions. + */ + // @ts-ignore + public canExecute(): boolean; + /** + * List the available filesystem roots. + *

A particular Java platform may support zero or more + * hierarchically-organized file systems. Each file system has a + * {@code root} directory from which all other files in that file system + * can be reached. Windows platforms, for example, have a root directory + * for each active drive; UNIX platforms have a single root directory, + * namely {@code "/"}. The set of available filesystem roots is affected + * by various system-level operations such as the insertion or ejection of + * removable media and the disconnecting or unmounting of physical or + * virtual disk drives. + *

This method returns an array of {@code File} objects that denote the + * root directories of the available filesystem roots. It is guaranteed + * that the canonical pathname of any file physically present on the local + * machine will begin with one of the roots returned by this method. + *

The canonical pathname of a file that resides on some other machine + * and is accessed via a remote-filesystem protocol such as SMB or NFS may + * or may not begin with one of the roots returned by this method. If the + * pathname of a remote file is syntactically indistinguishable from the + * pathname of a local file then it will begin with one of the roots + * returned by this method. Thus, for example, {@code File} objects + * denoting the root directories of the mapped network drives of a Windows + * platform will be returned by this method, while {@code File} objects + * containing UNC pathnames will not be returned by this method. + *

Unlike most methods in this class, this method does not throw + * security exceptions. If a security manager exists and its {@link + * SecurityManager#checkRead(String)} method denies read access to a + * particular root directory, then that directory will not appear in the + * result. + */ + // @ts-ignore + public static listRoots(): java.io.File[]; + /** + * Returns the size of the partition named by this + * abstract pathname. + */ + // @ts-ignore + public getTotalSpace(): number; + /** + * Returns the number of unallocated bytes in the partition named by this abstract path name. + *

The returned number of unallocated bytes is a hint, but not + * a guarantee, that it is possible to use most or any of these + * bytes. The number of unallocated bytes is most likely to be + * accurate immediately after this call. It is likely to be made + * inaccurate by any external I/O operations including those made + * on the system outside of this virtual machine. This method + * makes no guarantee that write operations to this file system + * will succeed. + */ + // @ts-ignore + public getFreeSpace(): number; + /** + * Returns the number of bytes available to this virtual machine on the + * partition named by this abstract pathname. When + * possible, this method checks for write permissions and other operating + * system restrictions and will therefore usually provide a more accurate + * estimate of how much new data can actually be written than {@link + * #getFreeSpace}. + *

The returned number of available bytes is a hint, but not a + * guarantee, that it is possible to use most or any of these bytes. The + * number of unallocated bytes is most likely to be accurate immediately + * after this call. It is likely to be made inaccurate by any external + * I/O operations including those made on the system outside of this + * virtual machine. This method makes no guarantee that write operations + * to this file system will succeed. + */ + // @ts-ignore + public getUsableSpace(): number; + /** + *

Creates a new empty file in the specified directory, using the + * given prefix and suffix strings to generate its name. If this method + * returns successfully then it is guaranteed that: + *

    + *
  1. The file denoted by the returned abstract pathname did not exist + * before this method was invoked, and + *
  2. Neither this method nor any of its variants will return the same + * abstract pathname again in the current invocation of the virtual + * machine. + *
+ * This method provides only part of a temporary-file facility. To arrange + * for a file created by this method to be deleted automatically, use the + * {@link #deleteOnExit} method. + *

The prefix argument must be at least three characters + * long. It is recommended that the prefix be a short, meaningful string + * such as "hjb" or "mail". The + * suffix argument may be null, in which case the + * suffix ".tmp" will be used. + *

To create the new file, the prefix and the suffix may first be + * adjusted to fit the limitations of the underlying platform. If the + * prefix is too long then it will be truncated, but its first three + * characters will always be preserved. If the suffix is too long then it + * too will be truncated, but if it begins with a period character + * ('.') then the period and the first three characters + * following it will always be preserved. Once these adjustments have been + * made the name of the new file will be generated by concatenating the + * prefix, five or more internally-generated characters, and the suffix. + *

If the directory argument is null then the + * system-dependent default temporary-file directory will be used. The + * default temporary-file directory is specified by the system property + * java.io.tmpdir. On UNIX systems the default value of this + * property is typically "/tmp" or "/var/tmp"; on + * Microsoft Windows systems it is typically "C:\\WINNT\\TEMP". A different + * value may be given to this system property when the Java virtual machine + * is invoked, but programmatic changes to this property are not guaranteed + * to have any effect upon the temporary directory used by this method. + */ + // @ts-ignore + public static createTempFile(prefix: string, suffix: string, directory: java.io.File): java.io.File; + /** + * Creates an empty file in the default temporary-file directory, using + * the given prefix and suffix to generate its name. Invoking this method + * is equivalent to invoking {@link #createTempFile(java.lang.String, + * java.lang.String, java.io.File) + * createTempFile(prefix, suffix, null)}. + *

The {@link + * java.nio.file.Files#createTempFile(String,String,java.nio.file.attribute.FileAttribute[]) + * Files.createTempFile} method provides an alternative method to create an + * empty file in the temporary-file directory. Files created by that method + * may have more restrictive access permissions to files created by this + * method and so may be more suited to security-sensitive applications. + */ + // @ts-ignore + public static createTempFile(prefix: string, suffix: string): java.io.File; + /** + * Compares two abstract pathnames lexicographically. The ordering + * defined by this method depends upon the underlying system. On UNIX + * systems, alphabetic case is significant in comparing pathnames; on Microsoft Windows + * systems it is not. + */ + // @ts-ignore + public compareTo(pathname: java.io.File): number; + /** + * Tests this abstract pathname for equality with the given object. + * Returns true if and only if the argument is not + * null and is an abstract pathname that denotes the same file + * or directory as this abstract pathname. Whether or not two abstract + * pathnames are equal depends upon the underlying system. On UNIX + * systems, alphabetic case is significant in comparing pathnames; on Microsoft Windows + * systems it is not. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Computes a hash code for this abstract pathname. Because equality of + * abstract pathnames is inherently system-dependent, so is the computation + * of their hash codes. On UNIX systems, the hash code of an abstract + * pathname is equal to the exclusive or of the hash code + * of its pathname string and the decimal value + * 1234321. On Microsoft Windows systems, the hash + * code is equal to the exclusive or of the hash code of + * its pathname string converted to lower case and the decimal + * value 1234321. Locale is not taken into account on + * lowercasing the pathname string. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns the pathname string of this abstract pathname. This is just the + * string returned by the {@link #getPath} method. + */ + // @ts-ignore + public toString(): string; + /** + * Returns a {@link Path java.nio.file.Path} object constructed from the + * this abstract path. The resulting {@code Path} is associated with the + * {@link java.nio.file.FileSystems#getDefault default-filesystem}. + *

The first invocation of this method works as if invoking it were + * equivalent to evaluating the expression: + *

+             * {@link java.nio.file.FileSystems#getDefault FileSystems.getDefault}().{@link
+             * java.nio.file.FileSystem#getPath getPath}(this.{@link #getPath getPath}());
+             * 
+ * Subsequent invocations of this method return the same {@code Path}. + *

If this abstract pathname is the empty abstract pathname then this + * method returns a {@code Path} that may be used to access the current + * user directory. + */ + // @ts-ignore + public toPath(): java.nio.file.Path; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.FileDescriptor.d.ts b/packages/types/dist/typings/jdk/java.io.FileDescriptor.d.ts new file mode 100644 index 00000000..8dfdd2ca --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.FileDescriptor.d.ts @@ -0,0 +1,47 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class FileDescriptor extends java.lang.Object { + /** + * Constructs an (invalid) FileDescriptor + * object. + */ + // @ts-ignore + constructor() + // @ts-ignore + public static in: java.io.FileDescriptor; + // @ts-ignore + public static out: java.io.FileDescriptor; + // @ts-ignore + public static err: java.io.FileDescriptor; + /** + * Tests if this file descriptor object is valid. + */ + // @ts-ignore + public valid(): boolean; + /** + * Force all system buffers to synchronize with the underlying + * device. This method returns after all modified data and + * attributes of this FileDescriptor have been written to the + * relevant device(s). In particular, if this FileDescriptor + * refers to a physical storage medium, such as a file in a file + * system, sync will not return until all in-memory modified copies + * of buffers associated with this FileDesecriptor have been + * written to the physical medium. + * sync is meant to be used by code that requires physical + * storage (such as a file) to be in a known state For + * example, a class that provided a simple transaction facility + * might use sync to ensure that all changes to a file caused + * by a given transaction were recorded on a storage medium. + * sync only affects buffers downstream of this FileDescriptor. If + * any in-memory buffering is being done by the application (for + * example, by a BufferedOutputStream object), those buffers must + * be flushed into the FileDescriptor (for example, by invoking + * OutputStream.flush) before that data will be affected by sync. + */ + // @ts-ignore + public sync(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.FileFilter.d.ts b/packages/types/dist/typings/jdk/java.io.FileFilter.d.ts new file mode 100644 index 00000000..04f60fb8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.FileFilter.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + interface FileFilter { + /** + * Tests whether or not the specified abstract pathname should be + * included in a pathname list. + */ + // @ts-ignore + accept(pathname: java.io.File): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.FileInputStream.d.ts b/packages/types/dist/typings/jdk/java.io.FileInputStream.d.ts new file mode 100644 index 00000000..8abec7a8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.FileInputStream.d.ts @@ -0,0 +1,153 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class FileInputStream extends java.io.InputStream { + /** + * Creates a FileInputStream by + * opening a connection to an actual file, + * the file named by the path name name + * in the file system. A new FileDescriptor + * object is created to represent this file + * connection. + *

+ * First, if there is a security + * manager, its checkRead method + * is called with the name argument + * as its argument. + *

+ * If the named file does not exist, is a directory rather than a regular + * file, or for some other reason cannot be opened for reading then a + * FileNotFoundException is thrown. + */ + // @ts-ignore + constructor(name: string) + /** + * Creates a FileInputStream by + * opening a connection to an actual file, + * the file named by the File + * object file in the file system. + * A new FileDescriptor object + * is created to represent this file connection. + *

+ * First, if there is a security manager, + * its checkRead method is called + * with the path represented by the file + * argument as its argument. + *

+ * If the named file does not exist, is a directory rather than a regular + * file, or for some other reason cannot be opened for reading then a + * FileNotFoundException is thrown. + */ + // @ts-ignore + constructor(file: java.io.File) + /** + * Creates a FileInputStream by using the file descriptor + * fdObj, which represents an existing connection to an + * actual file in the file system. + *

+ * If there is a security manager, its checkRead method is + * called with the file descriptor fdObj as its argument to + * see if it's ok to read the file descriptor. If read access is denied + * to the file descriptor a SecurityException is thrown. + *

+ * If fdObj is null then a NullPointerException + * is thrown. + *

+ * This constructor does not throw an exception if fdObj + * is {@link java.io.FileDescriptor#valid() invalid}. + * However, if the methods are invoked on the resulting stream to attempt + * I/O on the stream, an IOException is thrown. + */ + // @ts-ignore + constructor(fdObj: java.io.FileDescriptor) + /** + * Reads a byte of data from this input stream. This method blocks + * if no input is yet available. + */ + // @ts-ignore + public read(): number; + /** + * Reads up to b.length bytes of data from this input + * stream into an array of bytes. This method blocks until some input + * is available. + */ + // @ts-ignore + public read(b: number): number; + /** + * Reads up to len bytes of data from this input stream + * into an array of bytes. If len is not zero, the method + * blocks until some input is available; otherwise, no + * bytes are read and 0 is returned. + */ + // @ts-ignore + public read(b: number, off: number, len: number): number; + /** + * Skips over and discards n bytes of data from the + * input stream. + *

The skip method may, for a variety of + * reasons, end up skipping over some smaller number of bytes, + * possibly 0. If n is negative, the method + * will try to skip backwards. In case the backing file does not support + * backward skip at its current position, an IOException is + * thrown. The actual number of bytes skipped is returned. If it skips + * forwards, it returns a positive value. If it skips backwards, it + * returns a negative value. + *

This method may skip more bytes than what are remaining in the + * backing file. This produces no exception and the number of bytes skipped + * may include some number of bytes that were beyond the EOF of the + * backing file. Attempting to read from the stream after skipping past + * the end will result in -1 indicating the end of the file. + */ + // @ts-ignore + public skip(n: number): number; + /** + * Returns an estimate of the number of remaining bytes that can be read (or + * skipped over) from this input stream without blocking by the next + * invocation of a method for this input stream. Returns 0 when the file + * position is beyond EOF. The next invocation might be the same thread + * or another thread. A single read or skip of this many bytes will not + * block, but may read or skip fewer bytes. + *

In some cases, a non-blocking read (or skip) may appear to be + * blocked when it is merely slow, for example when reading large + * files over slow networks. + */ + // @ts-ignore + public available(): number; + /** + * Closes this file input stream and releases any system resources + * associated with the stream. + *

If this stream has an associated channel then the channel is closed + * as well. + */ + // @ts-ignore + public close(): void; + /** + * Returns the FileDescriptor + * object that represents the connection to + * the actual file in the file system being + * used by this FileInputStream. + */ + // @ts-ignore + public getFD(): java.io.FileDescriptor; + /** + * Returns the unique {@link java.nio.channels.FileChannel FileChannel} + * object associated with this file input stream. + *

The initial {@link java.nio.channels.FileChannel#position() + * position} of the returned channel will be equal to the + * number of bytes read from the file so far. Reading bytes from this + * stream will increment the channel's position. Changing the channel's + * position, either explicitly or by reading, will change this stream's + * file position. + */ + // @ts-ignore + public getChannel(): java.nio.channels.FileChannel; + /** + * Ensures that the close method of this file input stream is + * called when there are no more references to it. + */ + // @ts-ignore + protected finalize(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.FileNotFoundException.d.ts b/packages/types/dist/typings/jdk/java.io.FileNotFoundException.d.ts new file mode 100644 index 00000000..38b4759e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.FileNotFoundException.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class FileNotFoundException extends java.io.IOException { + /** + * Constructs a FileNotFoundException with + * null as its error detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs a FileNotFoundException with the + * specified detail message. The string s can be + * retrieved later by the + * {@link java.lang.Throwable#getMessage} + * method of class java.lang.Throwable. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.FileOutputStream.d.ts b/packages/types/dist/typings/jdk/java.io.FileOutputStream.d.ts new file mode 100644 index 00000000..7d9d2959 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.FileOutputStream.d.ts @@ -0,0 +1,142 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class FileOutputStream extends java.io.OutputStream { + /** + * Creates a file output stream to write to the file with the + * specified name. A new FileDescriptor object is + * created to represent this file connection. + *

+ * First, if there is a security manager, its checkWrite + * method is called with name as its argument. + *

+ * If the file exists but is a directory rather than a regular file, does + * not exist but cannot be created, or cannot be opened for any other + * reason then a FileNotFoundException is thrown. + */ + // @ts-ignore + constructor(name: string) + /** + * Creates a file output stream to write to the file with the specified + * name. If the second argument is true, then + * bytes will be written to the end of the file rather than the beginning. + * A new FileDescriptor object is created to represent this + * file connection. + *

+ * First, if there is a security manager, its checkWrite + * method is called with name as its argument. + *

+ * If the file exists but is a directory rather than a regular file, does + * not exist but cannot be created, or cannot be opened for any other + * reason then a FileNotFoundException is thrown. + */ + // @ts-ignore + constructor(name: string, append: boolean) + /** + * Creates a file output stream to write to the file represented by + * the specified File object. A new + * FileDescriptor object is created to represent this + * file connection. + *

+ * First, if there is a security manager, its checkWrite + * method is called with the path represented by the file + * argument as its argument. + *

+ * If the file exists but is a directory rather than a regular file, does + * not exist but cannot be created, or cannot be opened for any other + * reason then a FileNotFoundException is thrown. + */ + // @ts-ignore + constructor(file: java.io.File) + /** + * Creates a file output stream to write to the file represented by + * the specified File object. If the second argument is + * true, then bytes will be written to the end of the file + * rather than the beginning. A new FileDescriptor object is + * created to represent this file connection. + *

+ * First, if there is a security manager, its checkWrite + * method is called with the path represented by the file + * argument as its argument. + *

+ * If the file exists but is a directory rather than a regular file, does + * not exist but cannot be created, or cannot be opened for any other + * reason then a FileNotFoundException is thrown. + */ + // @ts-ignore + constructor(file: java.io.File, append: boolean) + /** + * Creates a file output stream to write to the specified file + * descriptor, which represents an existing connection to an actual + * file in the file system. + *

+ * First, if there is a security manager, its checkWrite + * method is called with the file descriptor fdObj + * argument as its argument. + *

+ * If fdObj is null then a NullPointerException + * is thrown. + *

+ * This constructor does not throw an exception if fdObj + * is {@link java.io.FileDescriptor#valid() invalid}. + * However, if the methods are invoked on the resulting stream to attempt + * I/O on the stream, an IOException is thrown. + */ + // @ts-ignore + constructor(fdObj: java.io.FileDescriptor) + /** + * Writes the specified byte to this file output stream. Implements + * the write method of OutputStream. + */ + // @ts-ignore + public write(b: number): void; + /** + * Writes b.length bytes from the specified byte array + * to this file output stream. + */ + // @ts-ignore + public write(b: number): void; + /** + * Writes len bytes from the specified byte array + * starting at offset off to this file output stream. + */ + // @ts-ignore + public write(b: number, off: number, len: number): void; + /** + * Closes this file output stream and releases any system resources + * associated with this stream. This file output stream may no longer + * be used for writing bytes. + *

If this stream has an associated channel then the channel is closed + * as well. + */ + // @ts-ignore + public close(): void; + /** + * Returns the file descriptor associated with this stream. + */ + // @ts-ignore + public getFD(): java.io.FileDescriptor; + /** + * Returns the unique {@link java.nio.channels.FileChannel FileChannel} + * object associated with this file output stream. + *

The initial {@link java.nio.channels.FileChannel#position() + * position} of the returned channel will be equal to the + * number of bytes written to the file so far unless this stream is in + * append mode, in which case it will be equal to the size of the file. + * Writing bytes to this stream will increment the channel's position + * accordingly. Changing the channel's position, either explicitly or by + * writing, will change this stream's file position. + */ + // @ts-ignore + public getChannel(): java.nio.channels.FileChannel; + /** + * Cleans up the connection to the file, and ensures that the + * close method of this file output stream is + * called when there are no more references to this stream. + */ + // @ts-ignore + protected finalize(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.FilePermission.d.ts b/packages/types/dist/typings/jdk/java.io.FilePermission.d.ts new file mode 100644 index 00000000..23085d3d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.FilePermission.d.ts @@ -0,0 +1,91 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class FilePermission extends java.security.Permission { + /** + * Creates a new FilePermission object with the specified actions. + * path is the pathname of a file or directory, and actions + * contains a comma-separated list of the desired actions granted on the + * file or directory. Possible actions are + * "read", "write", "execute", "delete", and "readlink". + *

A pathname that ends in "/*" (where "/" is + * the file separator character, File.separatorChar) + * indicates all the files and directories contained in that directory. + * A pathname that ends with "/-" indicates (recursively) all files and + * subdirectories contained in that directory. The special pathname + * "<<ALL FILES>>" matches any file. + *

A pathname consisting of a single "*" indicates all the files + * in the current directory, while a pathname consisting of a single "-" + * indicates all the files in the current directory and + * (recursively) all files and subdirectories contained in the current + * directory. + *

A pathname containing an empty string represents an empty path. + */ + // @ts-ignore + constructor(path: string, actions: string) + /** + * Checks if this FilePermission object "implies" the specified permission. + *

+ * More specifically, this method returns true if: + *

    + *
  • p is an instanceof FilePermission, + *
  • p's actions are a proper subset of this + * object's actions, and + *
  • p's pathname is implied by this object's + * pathname. For example, "/tmp/*" implies "/tmp/foo", since + * "/tmp/*" encompasses all files in the "/tmp" directory, + * including the one named "foo". + *
+ */ + // @ts-ignore + public implies(p: java.security.Permission): boolean; + /** + * Checks two FilePermission objects for equality. Checks that obj is + * a FilePermission, and has the same pathname and actions as this object. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns the hash code value for this object. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns the "canonical string representation" of the actions. + * That is, this method always returns present actions in the following order: + * read, write, execute, delete, readlink. For example, if this FilePermission + * object allows both write and read actions, a call to getActions + * will return the string "read,write". + */ + // @ts-ignore + public getActions(): string; + /** + * Returns a new PermissionCollection object for storing FilePermission + * objects. + *

+ * FilePermission objects must be stored in a manner that allows them + * to be inserted into the collection in any order, but that also enables the + * PermissionCollection implies + * method to be implemented in an efficient (and consistent) manner. + *

For example, if you have two FilePermissions: + *

    + *
  1. "/tmp/-", "read" + *
  2. "/tmp/scratch/foo", "write" + *
+ *

and you are calling the implies method with the FilePermission: + *

+             * "/tmp/scratch/foo", "read,write",
+             * 
+ * then the implies function must + * take into account both the "/tmp/-" and "/tmp/scratch/foo" + * permissions, so the effective permission is "read,write", + * and implies returns true. The "implies" semantics for + * FilePermissions are handled properly by the PermissionCollection object + * returned by this newPermissionCollection method. + */ + // @ts-ignore + public newPermissionCollection(): java.security.PermissionCollection; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.FileReader.d.ts b/packages/types/dist/typings/jdk/java.io.FileReader.d.ts new file mode 100644 index 00000000..4ecf5c1a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.FileReader.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class FileReader extends java.io.InputStreamReader { + /** + * Creates a new FileReader, given the name of the + * file to read from. + */ + // @ts-ignore + constructor(fileName: string) + /** + * Creates a new FileReader, given the File + * to read from. + */ + // @ts-ignore + constructor(file: java.io.File) + /** + * Creates a new FileReader, given the + * FileDescriptor to read from. + */ + // @ts-ignore + constructor(fd: java.io.FileDescriptor) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.FileWriter.d.ts b/packages/types/dist/typings/jdk/java.io.FileWriter.d.ts new file mode 100644 index 00000000..3ebc0607 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.FileWriter.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class FileWriter extends java.io.OutputStreamWriter { + /** + * Constructs a FileWriter object given a file name. + */ + // @ts-ignore + constructor(fileName: string) + /** + * Constructs a FileWriter object given a file name with a boolean + * indicating whether or not to append the data written. + */ + // @ts-ignore + constructor(fileName: string, append: boolean) + /** + * Constructs a FileWriter object given a File object. + */ + // @ts-ignore + constructor(file: java.io.File) + /** + * Constructs a FileWriter object given a File object. If the second + * argument is true, then bytes will be written to the end + * of the file rather than the beginning. + */ + // @ts-ignore + constructor(file: java.io.File, append: boolean) + /** + * Constructs a FileWriter object associated with a file descriptor. + */ + // @ts-ignore + constructor(fd: java.io.FileDescriptor) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.FilenameFilter.d.ts b/packages/types/dist/typings/jdk/java.io.FilenameFilter.d.ts new file mode 100644 index 00000000..dbc16d84 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.FilenameFilter.d.ts @@ -0,0 +1,13 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + interface FilenameFilter { + /** + * Tests if a specified file should be included in a file list. + */ + // @ts-ignore + accept(dir: java.io.File, name: string): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.FilterInputStream.d.ts b/packages/types/dist/typings/jdk/java.io.FilterInputStream.d.ts new file mode 100644 index 00000000..79b44c54 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.FilterInputStream.d.ts @@ -0,0 +1,127 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class FilterInputStream extends java.io.InputStream { + /** + * Creates a FilterInputStream + * by assigning the argument in + * to the field this.in so as + * to remember it for later use. + */ + // @ts-ignore + constructor(input: java.io.InputStream) + // @ts-ignore + protected in: java.io.InputStream; + /** + * Reads the next byte of data from this input stream. The value + * byte is returned as an int in the range + * 0 to 255. If no byte is available + * because the end of the stream has been reached, the value + * -1 is returned. This method blocks until input data + * is available, the end of the stream is detected, or an exception + * is thrown. + *

+ * This method + * simply performs in.read() and returns the result. + */ + // @ts-ignore + public read(): number; + /** + * Reads up to byte.length bytes of data from this + * input stream into an array of bytes. This method blocks until some + * input is available. + *

+ * This method simply performs the call + * read(b, 0, b.length) and returns + * the result. It is important that it does + * not do in.read(b) instead; + * certain subclasses of FilterInputStream + * depend on the implementation strategy actually + * used. + */ + // @ts-ignore + public read(b: number): number; + /** + * Reads up to len bytes of data from this input stream + * into an array of bytes. If len is not zero, the method + * blocks until some input is available; otherwise, no + * bytes are read and 0 is returned. + *

+ * This method simply performs in.read(b, off, len) + * and returns the result. + */ + // @ts-ignore + public read(b: number, off: number, len: number): number; + /** + * Skips over and discards n bytes of data from the + * input stream. The skip method may, for a variety of + * reasons, end up skipping over some smaller number of bytes, + * possibly 0. The actual number of bytes skipped is + * returned. + *

+ * This method simply performs in.skip(n). + */ + // @ts-ignore + public skip(n: number): number; + /** + * Returns an estimate of the number of bytes that can be read (or + * skipped over) from this input stream without blocking by the next + * caller of a method for this input stream. The next caller might be + * the same thread or another thread. A single read or skip of this + * many bytes will not block, but may read or skip fewer bytes. + *

+ * This method returns the result of {@link #in in}.available(). + */ + // @ts-ignore + public available(): number; + /** + * Closes this input stream and releases any system resources + * associated with the stream. + * This + * method simply performs in.close(). + */ + // @ts-ignore + public close(): void; + /** + * Marks the current position in this input stream. A subsequent + * call to the reset method repositions this stream at + * the last marked position so that subsequent reads re-read the same bytes. + *

+ * The readlimit argument tells this input stream to + * allow that many bytes to be read before the mark position gets + * invalidated. + *

+ * This method simply performs in.mark(readlimit). + */ + // @ts-ignore + public mark(readlimit: number): void; + /** + * Repositions this stream to the position at the time the + * mark method was last called on this input stream. + *

+ * This method + * simply performs in.reset(). + *

+ * Stream marks are intended to be used in + * situations where you need to read ahead a little to see what's in + * the stream. Often this is most easily done by invoking some + * general parser. If the stream is of the type handled by the + * parse, it just chugs along happily. If the stream is not of + * that type, the parser should toss an exception when it fails. + * If this happens within readlimit bytes, it allows the outer + * code to reset the stream and try another parser. + */ + // @ts-ignore + public reset(): void; + /** + * Tests if this input stream supports the mark + * and reset methods. + * This method + * simply performs in.markSupported(). + */ + // @ts-ignore + public markSupported(): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.FilterOutputStream.d.ts b/packages/types/dist/typings/jdk/java.io.FilterOutputStream.d.ts new file mode 100644 index 00000000..e9737d32 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.FilterOutputStream.d.ts @@ -0,0 +1,76 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class FilterOutputStream extends java.io.OutputStream { + /** + * Creates an output stream filter built on top of the specified + * underlying output stream. + */ + // @ts-ignore + constructor(out: java.io.OutputStream) + // @ts-ignore + protected out: java.io.OutputStream; + /** + * Writes the specified byte to this output stream. + *

+ * The write method of FilterOutputStream + * calls the write method of its underlying output stream, + * that is, it performs out.write(b). + *

+ * Implements the abstract write method of OutputStream. + */ + // @ts-ignore + public write(b: number): void; + /** + * Writes b.length bytes to this output stream. + *

+ * The write method of FilterOutputStream + * calls its write method of three arguments with the + * arguments b, 0, and + * b.length. + *

+ * Note that this method does not call the one-argument + * write method of its underlying stream with the single + * argument b. + */ + // @ts-ignore + public write(b: number): void; + /** + * Writes len bytes from the specified + * byte array starting at offset off to + * this output stream. + *

+ * The write method of FilterOutputStream + * calls the write method of one argument on each + * byte to output. + *

+ * Note that this method does not call the write method + * of its underlying input stream with the same arguments. Subclasses + * of FilterOutputStream should provide a more efficient + * implementation of this method. + */ + // @ts-ignore + public write(b: number, off: number, len: number): void; + /** + * Flushes this output stream and forces any buffered output bytes + * to be written out to the stream. + *

+ * The flush method of FilterOutputStream + * calls the flush method of its underlying output stream. + */ + // @ts-ignore + public flush(): void; + /** + * Closes this output stream and releases any system resources + * associated with the stream. + *

+ * The close method of FilterOutputStream + * calls its flush method, and then calls the + * close method of its underlying output stream. + */ + // @ts-ignore + public close(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.FilterReader.d.ts b/packages/types/dist/typings/jdk/java.io.FilterReader.d.ts new file mode 100644 index 00000000..04d1b1df --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.FilterReader.d.ts @@ -0,0 +1,52 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + abstract class FilterReader extends java.io.Reader { + /** + * Creates a new filtered reader. + */ + // @ts-ignore + constructor(input: java.io.Reader) + // @ts-ignore + protected in: java.io.Reader; + /** + * Reads a single character. + */ + // @ts-ignore + public read(): number; + /** + * Reads characters into a portion of an array. + */ + // @ts-ignore + public read(cbuf: string, off: number, len: number): number; + /** + * Skips characters. + */ + // @ts-ignore + public skip(n: number): number; + /** + * Tells whether this stream is ready to be read. + */ + // @ts-ignore + public ready(): boolean; + /** + * Tells whether this stream supports the mark() operation. + */ + // @ts-ignore + public markSupported(): boolean; + /** + * Marks the present position in the stream. + */ + // @ts-ignore + public mark(readAheadLimit: number): void; + /** + * Resets the stream. + */ + // @ts-ignore + public reset(): void; + // @ts-ignore + public close(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.FilterWriter.d.ts b/packages/types/dist/typings/jdk/java.io.FilterWriter.d.ts new file mode 100644 index 00000000..0a246967 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.FilterWriter.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + abstract class FilterWriter extends java.io.Writer { + /** + * Create a new filtered writer. + */ + // @ts-ignore + constructor(out: java.io.Writer) + // @ts-ignore + protected out: java.io.Writer; + /** + * Writes a single character. + */ + // @ts-ignore + public write(c: number): void; + /** + * Writes a portion of an array of characters. + */ + // @ts-ignore + public write(cbuf: string, off: number, len: number): void; + /** + * Writes a portion of a string. + */ + // @ts-ignore + public write(str: string, off: number, len: number): void; + /** + * Flushes the stream. + */ + // @ts-ignore + public flush(): void; + // @ts-ignore + public close(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.Flushable.d.ts b/packages/types/dist/typings/jdk/java.io.Flushable.d.ts new file mode 100644 index 00000000..4c98d5e8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.Flushable.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + interface Flushable { + /** + * Flushes this stream by writing any buffered output to the underlying + * stream. + */ + // @ts-ignore + flush(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.IOError.d.ts b/packages/types/dist/typings/jdk/java.io.IOError.d.ts new file mode 100644 index 00000000..92e4cd22 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.IOError.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class IOError extends java.lang.Error { + /** + * Constructs a new instance of IOError with the specified cause. The + * IOError is created with the detail message of + * (cause==null ? null : cause.toString()) (which typically + * contains the class and detail message of cause). + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.IOException.d.ts b/packages/types/dist/typings/jdk/java.io.IOException.d.ts new file mode 100644 index 00000000..089ae7ad --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.IOException.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class IOException extends java.lang.Exception { + /** + * Constructs an {@code IOException} with {@code null} + * as its error detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs an {@code IOException} with the specified detail message. + */ + // @ts-ignore + constructor(message: string) + /** + * Constructs an {@code IOException} with the specified detail message + * and cause. + *

Note that the detail message associated with {@code cause} is + * not automatically incorporated into this exception's detail + * message. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Constructs an {@code IOException} with the specified cause and a + * detail message of {@code (cause==null ? null : cause.toString())} + * (which typically contains the class and detail message of {@code cause}). + * This constructor is useful for IO exceptions that are little more + * than wrappers for other throwables. + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.InputStream.d.ts b/packages/types/dist/typings/jdk/java.io.InputStream.d.ts new file mode 100644 index 00000000..bca5741a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.InputStream.d.ts @@ -0,0 +1,188 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + abstract class InputStream extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Reads the next byte of data from the input stream. The value byte is + * returned as an int in the range 0 to + * 255. If no byte is available because the end of the stream + * has been reached, the value -1 is returned. This method + * blocks until input data is available, the end of the stream is detected, + * or an exception is thrown. + *

A subclass must provide an implementation of this method. + */ + // @ts-ignore + public abstract read(): number; + /** + * Reads some number of bytes from the input stream and stores them into + * the buffer array b. The number of bytes actually read is + * returned as an integer. This method blocks until input data is + * available, end of file is detected, or an exception is thrown. + *

If the length of b is zero, then no bytes are read and + * 0 is returned; otherwise, there is an attempt to read at + * least one byte. If no byte is available because the stream is at the + * end of the file, the value -1 is returned; otherwise, at + * least one byte is read and stored into b. + *

The first byte read is stored into element b[0], the + * next one into b[1], and so on. The number of bytes read is, + * at most, equal to the length of b. Let k be the + * number of bytes actually read; these bytes will be stored in elements + * b[0] through b[k-1], + * leaving elements b[k] through + * b[b.length-1] unaffected. + *

The read(b) method for class InputStream + * has the same effect as:

 read(b, 0, b.length) 
+ */ + // @ts-ignore + public read(b: number): number; + /** + * Reads up to len bytes of data from the input stream into + * an array of bytes. An attempt is made to read as many as + * len bytes, but a smaller number may be read. + * The number of bytes actually read is returned as an integer. + *

This method blocks until input data is available, end of file is + * detected, or an exception is thrown. + *

If len is zero, then no bytes are read and + * 0 is returned; otherwise, there is an attempt to read at + * least one byte. If no byte is available because the stream is at end of + * file, the value -1 is returned; otherwise, at least one + * byte is read and stored into b. + *

The first byte read is stored into element b[off], the + * next one into b[off+1], and so on. The number of bytes read + * is, at most, equal to len. Let k be the number of + * bytes actually read; these bytes will be stored in elements + * b[off] through b[off+k-1], + * leaving elements b[off+k] through + * b[off+len-1] unaffected. + *

In every case, elements b[0] through + * b[off] and elements b[off+len] through + * b[b.length-1] are unaffected. + *

The read(b, off, len) method + * for class InputStream simply calls the method + * read() repeatedly. If the first such call results in an + * IOException, that exception is returned from the call to + * the read(b, off, len) method. If + * any subsequent call to read() results in a + * IOException, the exception is caught and treated as if it + * were end of file; the bytes read up to that point are stored into + * b and the number of bytes read before the exception + * occurred is returned. The default implementation of this method blocks + * until the requested amount of input data len has been read, + * end of file is detected, or an exception is thrown. Subclasses are encouraged + * to provide a more efficient implementation of this method. + */ + // @ts-ignore + public read(b: number, off: number, len: number): number; + /** + * Skips over and discards n bytes of data from this input + * stream. The skip method may, for a variety of reasons, end + * up skipping over some smaller number of bytes, possibly 0. + * This may result from any of a number of conditions; reaching end of file + * before n bytes have been skipped is only one possibility. + * The actual number of bytes skipped is returned. If {@code n} is + * negative, the {@code skip} method for class {@code InputStream} always + * returns 0, and no bytes are skipped. Subclasses may handle the negative + * value differently. + *

The skip method of this class creates a + * byte array and then repeatedly reads into it until n bytes + * have been read or the end of the stream has been reached. Subclasses are + * encouraged to provide a more efficient implementation of this method. + * For instance, the implementation may depend on the ability to seek. + */ + // @ts-ignore + public skip(n: number): number; + /** + * Returns an estimate of the number of bytes that can be read (or + * skipped over) from this input stream without blocking by the next + * invocation of a method for this input stream. The next invocation + * might be the same thread or another thread. A single read or skip of this + * many bytes will not block, but may read or skip fewer bytes. + *

Note that while some implementations of {@code InputStream} will return + * the total number of bytes in the stream, many will not. It is + * never correct to use the return value of this method to allocate + * a buffer intended to hold all data in this stream. + *

A subclass' implementation of this method may choose to throw an + * {@link IOException} if this input stream has been closed by + * invoking the {@link #close()} method. + *

The {@code available} method for class {@code InputStream} always + * returns {@code 0}. + *

This method should be overridden by subclasses. + */ + // @ts-ignore + public available(): number; + /** + * Closes this input stream and releases any system resources associated + * with the stream. + *

The close method of InputStream does + * nothing. + */ + // @ts-ignore + public close(): void; + /** + * Marks the current position in this input stream. A subsequent call to + * the reset method repositions this stream at the last marked + * position so that subsequent reads re-read the same bytes. + *

The readlimit arguments tells this input stream to + * allow that many bytes to be read before the mark position gets + * invalidated. + *

The general contract of mark is that, if the method + * markSupported returns true, the stream somehow + * remembers all the bytes read after the call to mark and + * stands ready to supply those same bytes again if and whenever the method + * reset is called. However, the stream is not required to + * remember any data at all if more than readlimit bytes are + * read from the stream before reset is called. + *

Marking a closed stream should not have any effect on the stream. + *

The mark method of InputStream does + * nothing. + */ + // @ts-ignore + public mark(readlimit: number): void; + /** + * Repositions this stream to the position at the time the + * mark method was last called on this input stream. + *

The general contract of reset is: + *

    + *
  • If the method markSupported returns + * true, then: + *
    • If the method mark has not been called since + * the stream was created, or the number of bytes read from the stream + * since mark was last called is larger than the argument + * to mark at that last call, then an + * IOException might be thrown. + *
    • If such an IOException is not thrown, then the + * stream is reset to a state such that all the bytes read since the + * most recent call to mark (or since the start of the + * file, if mark has not been called) will be resupplied + * to subsequent callers of the read method, followed by + * any bytes that otherwise would have been the next input data as of + * the time of the call to reset.
    + *
  • If the method markSupported returns + * false, then: + *
    • The call to reset may throw an + * IOException. + *
    • If an IOException is not thrown, then the stream + * is reset to a fixed state that depends on the particular type of the + * input stream and how it was created. The bytes that will be supplied + * to subsequent callers of the read method depend on the + * particular type of the input stream.
+ *

The method reset for class InputStream + * does nothing except throw an IOException. + */ + // @ts-ignore + public reset(): void; + /** + * Tests if this input stream supports the mark and + * reset methods. Whether or not mark and + * reset are supported is an invariant property of a + * particular input stream instance. The markSupported method + * of InputStream returns false. + */ + // @ts-ignore + public markSupported(): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.InputStreamReader.d.ts b/packages/types/dist/typings/jdk/java.io.InputStreamReader.d.ts new file mode 100644 index 00000000..7369c57c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.InputStreamReader.d.ts @@ -0,0 +1,60 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class InputStreamReader extends java.io.Reader { + /** + * Creates an InputStreamReader that uses the default charset. + */ + // @ts-ignore + constructor(input: java.io.InputStream) + /** + * Creates an InputStreamReader that uses the named charset. + */ + // @ts-ignore + constructor(input: java.io.InputStream, charsetName: string) + /** + * Creates an InputStreamReader that uses the given charset. + */ + // @ts-ignore + constructor(input: java.io.InputStream, cs: java.nio.charset.Charset) + /** + * Creates an InputStreamReader that uses the given charset decoder. + */ + // @ts-ignore + constructor(input: java.io.InputStream, dec: java.nio.charset.CharsetDecoder) + /** + * Returns the name of the character encoding being used by this stream. + *

If the encoding has an historical name then that name is returned; + * otherwise the encoding's canonical name is returned. + *

If this instance was created with the {@link + * #InputStreamReader(InputStream, String)} constructor then the returned + * name, being unique for the encoding, may differ from the name passed to + * the constructor. This method will return null if the + * stream has been closed. + *

+ */ + // @ts-ignore + public getEncoding(): string; + /** + * Reads a single character. + */ + // @ts-ignore + public read(): number; + /** + * Reads characters into a portion of an array. + */ + // @ts-ignore + public read(cbuf: string, offset: number, length: number): number; + /** + * Tells whether this stream is ready to be read. An InputStreamReader is + * ready if its input buffer is not empty, or if bytes are available to be + * read from the underlying byte stream. + */ + // @ts-ignore + public ready(): boolean; + // @ts-ignore + public close(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.InterruptedIOException.d.ts b/packages/types/dist/typings/jdk/java.io.InterruptedIOException.d.ts new file mode 100644 index 00000000..f7e97982 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.InterruptedIOException.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class InterruptedIOException extends java.io.IOException { + /** + * Constructs an InterruptedIOException with + * null as its error detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs an InterruptedIOException with the + * specified detail message. The string s can be + * retrieved later by the + * {@link java.lang.Throwable#getMessage} + * method of class java.lang.Throwable. + */ + // @ts-ignore + constructor(s: string) + // @ts-ignore + public bytesTransferred: number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.InvalidClassException.d.ts b/packages/types/dist/typings/jdk/java.io.InvalidClassException.d.ts new file mode 100644 index 00000000..04171b89 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.InvalidClassException.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class InvalidClassException extends java.io.ObjectStreamException { + /** + * Report an InvalidClassException for the reason specified. + */ + // @ts-ignore + constructor(reason: string) + /** + * Constructs an InvalidClassException object. + */ + // @ts-ignore + constructor(cname: string, reason: string) + // @ts-ignore + public classname: string; + /** + * Produce the message and include the classname, if present. + */ + // @ts-ignore + public getMessage(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.InvalidObjectException.d.ts b/packages/types/dist/typings/jdk/java.io.InvalidObjectException.d.ts new file mode 100644 index 00000000..549db40b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.InvalidObjectException.d.ts @@ -0,0 +1,13 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class InvalidObjectException extends java.io.ObjectStreamException { + /** + * Constructs an InvalidObjectException. + */ + // @ts-ignore + constructor(reason: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.LineNumberInputStream.d.ts b/packages/types/dist/typings/jdk/java.io.LineNumberInputStream.d.ts new file mode 100644 index 00000000..e3eb6edb --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.LineNumberInputStream.d.ts @@ -0,0 +1,115 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class LineNumberInputStream extends java.io.FilterInputStream { + /** + * Constructs a newline number input stream that reads its input + * from the specified input stream. + */ + // @ts-ignore + constructor(input: java.io.InputStream) + /** + * Reads the next byte of data from this input stream. The value + * byte is returned as an {@code int} in the range + * {@code 0} to {@code 255}. If no byte is available + * because the end of the stream has been reached, the value + * {@code -1} is returned. This method blocks until input data + * is available, the end of the stream is detected, or an exception + * is thrown. + *

+ * The {@code read} method of + * {@code LineNumberInputStream} calls the {@code read} + * method of the underlying input stream. It checks for carriage + * returns and newline characters in the input, and modifies the + * current line number as appropriate. A carriage-return character or + * a carriage return followed by a newline character are both + * converted into a single newline character. + */ + // @ts-ignore + public read(): number; + /** + * Reads up to {@code len} bytes of data from this input stream + * into an array of bytes. This method blocks until some input is available. + *

+ * The {@code read} method of + * {@code LineNumberInputStream} repeatedly calls the + * {@code read} method of zero arguments to fill in the byte array. + */ + // @ts-ignore + public read(b: number, off: number, len: number): number; + /** + * Skips over and discards {@code n} bytes of data from this + * input stream. The {@code skip} method may, for a variety of + * reasons, end up skipping over some smaller number of bytes, + * possibly {@code 0}. The actual number of bytes skipped is + * returned. If {@code n} is negative, no bytes are skipped. + *

+ * The {@code skip} method of {@code LineNumberInputStream} creates + * a byte array and then repeatedly reads into it until + * {@code n} bytes have been read or the end of the stream has + * been reached. + */ + // @ts-ignore + public skip(n: number): number; + /** + * Sets the line number to the specified argument. + */ + // @ts-ignore + public setLineNumber(lineNumber: number): void; + /** + * Returns the current line number. + */ + // @ts-ignore + public getLineNumber(): number; + /** + * Returns the number of bytes that can be read from this input + * stream without blocking. + *

+ * Note that if the underlying input stream is able to supply + * k input characters without blocking, the + * {@code LineNumberInputStream} can guarantee only to provide + * k/2 characters without blocking, because the + * k characters from the underlying input stream might + * consist of k/2 pairs of {@code '\r'} and + * {@code '\n'}, which are converted to just + * k/2 {@code '\n'} characters. + */ + // @ts-ignore + public available(): number; + /** + * Marks the current position in this input stream. A subsequent + * call to the {@code reset} method repositions this stream at + * the last marked position so that subsequent reads re-read the same bytes. + *

+ * The {@code mark} method of + * {@code LineNumberInputStream} remembers the current line + * number in a private variable, and then calls the {@code mark} + * method of the underlying input stream. + */ + // @ts-ignore + public mark(readlimit: number): void; + /** + * Repositions this stream to the position at the time the + * {@code mark} method was last called on this input stream. + *

+ * The {@code reset} method of + * {@code LineNumberInputStream} resets the line number to be + * the line number at the time the {@code mark} method was + * called, and then calls the {@code reset} method of the + * underlying input stream. + *

+ * Stream marks are intended to be used in + * situations where you need to read ahead a little to see what's in + * the stream. Often this is most easily done by invoking some + * general parser. If the stream is of the type handled by the + * parser, it just chugs along happily. If the stream is not of + * that type, the parser should toss an exception when it fails, + * which, if it happens within readlimit bytes, allows the outer + * code to reset the stream and try another parser. + */ + // @ts-ignore + public reset(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.LineNumberReader.d.ts b/packages/types/dist/typings/jdk/java.io.LineNumberReader.d.ts new file mode 100644 index 00000000..0935d8ca --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.LineNumberReader.d.ts @@ -0,0 +1,67 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class LineNumberReader extends java.io.BufferedReader { + /** + * Create a new line-numbering reader, using the default input-buffer + * size. + */ + // @ts-ignore + constructor(input: java.io.Reader) + /** + * Create a new line-numbering reader, reading characters into a buffer of + * the given size. + */ + // @ts-ignore + constructor(input: java.io.Reader, sz: number) + /** + * Set the current line number. + */ + // @ts-ignore + public setLineNumber(lineNumber: number): void; + /** + * Get the current line number. + */ + // @ts-ignore + public getLineNumber(): number; + /** + * Read a single character. Line terminators are + * compressed into single newline ('\n') characters. Whenever a line + * terminator is read the current line number is incremented. + */ + // @ts-ignore + public read(): number; + /** + * Read characters into a portion of an array. Whenever a line terminator is read the current line number is + * incremented. + */ + // @ts-ignore + public read(cbuf: string, off: number, len: number): number; + /** + * Read a line of text. Whenever a line terminator is + * read the current line number is incremented. + */ + // @ts-ignore + public readLine(): string; + /** + * Skip characters. + */ + // @ts-ignore + public skip(n: number): number; + /** + * Mark the present position in the stream. Subsequent calls to reset() + * will attempt to reposition the stream to this point, and will also reset + * the line number appropriately. + */ + // @ts-ignore + public mark(readAheadLimit: number): void; + /** + * Reset the stream to the most recent mark. + */ + // @ts-ignore + public reset(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.NotActiveException.d.ts b/packages/types/dist/typings/jdk/java.io.NotActiveException.d.ts new file mode 100644 index 00000000..b3fdb2bb --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.NotActiveException.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class NotActiveException extends java.io.ObjectStreamException { + /** + * Constructor to create a new NotActiveException with the reason given. + */ + // @ts-ignore + constructor(reason: string) + /** + * Constructor to create a new NotActiveException without a reason. + */ + // @ts-ignore + constructor() + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.NotSerializableException.d.ts b/packages/types/dist/typings/jdk/java.io.NotSerializableException.d.ts new file mode 100644 index 00000000..fb1a8990 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.NotSerializableException.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class NotSerializableException extends java.io.ObjectStreamException { + /** + * Constructs a NotSerializableException object with message string. + */ + // @ts-ignore + constructor(classname: string) + /** + * Constructs a NotSerializableException object. + */ + // @ts-ignore + constructor() + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.ObjectInput.d.ts b/packages/types/dist/typings/jdk/java.io.ObjectInput.d.ts new file mode 100644 index 00000000..f0f3d817 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.ObjectInput.d.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + interface ObjectInput { + /** + * Read and return an object. The class that implements this interface + * defines where the object is "read" from. + */ + // @ts-ignore + readObject(): java.lang.Object; + /** + * Reads a byte of data. This method will block if no input is + * available. + */ + // @ts-ignore + read(): number; + /** + * Reads into an array of bytes. This method will + * block until some input is available. + */ + // @ts-ignore + read(b: number): number; + /** + * Reads into an array of bytes. This method will + * block until some input is available. + */ + // @ts-ignore + read(b: number, off: number, len: number): number; + /** + * Skips n bytes of input. + */ + // @ts-ignore + skip(n: number): number; + /** + * Returns the number of bytes that can be read + * without blocking. + */ + // @ts-ignore + available(): number; + /** + * Closes the input stream. Must be called + * to release any resources associated with + * the stream. + */ + // @ts-ignore + close(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.ObjectInputStream.GetField.d.ts b/packages/types/dist/typings/jdk/java.io.ObjectInputStream.GetField.d.ts new file mode 100644 index 00000000..7948374c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.ObjectInputStream.GetField.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace java { + namespace io { + namespace ObjectInputStream { + // @ts-ignore + abstract class GetField extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Get the ObjectStreamClass that describes the fields in the stream. + */ + // @ts-ignore + public abstract getObjectStreamClass(): java.io.ObjectStreamClass; + /** + * Return true if the named field is defaulted and has no value in this + * stream. + */ + // @ts-ignore + public abstract defaulted(name: string): boolean; + /** + * Get the value of the named boolean field from the persistent field. + */ + // @ts-ignore + public abstract get(name: string, val: boolean): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.ObjectInputStream.d.ts b/packages/types/dist/typings/jdk/java.io.ObjectInputStream.d.ts new file mode 100644 index 00000000..0b4c9a2c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.ObjectInputStream.d.ts @@ -0,0 +1,346 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class ObjectInputStream extends java.io.InputStream { + /** + * Creates an ObjectInputStream that reads from the specified InputStream. + * A serialization stream header is read from the stream and verified. + * This constructor will block until the corresponding ObjectOutputStream + * has written and flushed the header. + *

If a security manager is installed, this constructor will check for + * the "enableSubclassImplementation" SerializablePermission when invoked + * directly or indirectly by the constructor of a subclass which overrides + * the ObjectInputStream.readFields or ObjectInputStream.readUnshared + * methods. + */ + // @ts-ignore + constructor(input: java.io.InputStream) + /** + * Provide a way for subclasses that are completely reimplementing + * ObjectInputStream to not have to allocate private data just used by this + * implementation of ObjectInputStream. + *

If there is a security manager installed, this method first calls the + * security manager's checkPermission method with the + * SerializablePermission("enableSubclassImplementation") + * permission to ensure it's ok to enable subclassing. + */ + // @ts-ignore + constructor() + /** + * Read an object from the ObjectInputStream. The class of the object, the + * signature of the class, and the values of the non-transient and + * non-static fields of the class and all of its supertypes are read. + * Default deserializing for a class can be overridden using the writeObject + * and readObject methods. Objects referenced by this object are read + * transitively so that a complete equivalent graph of objects is + * reconstructed by readObject. + *

The root object is completely restored when all of its fields and the + * objects it references are completely restored. At this point the object + * validation callbacks are executed in order based on their registered + * priorities. The callbacks are registered by objects (in the readObject + * special methods) as they are individually restored. + *

Exceptions are thrown for problems with the InputStream and for + * classes that should not be deserialized. All exceptions are fatal to + * the InputStream and leave it in an indeterminate state; it is up to the + * caller to ignore or recover the stream state. + */ + // @ts-ignore + public readObject(): java.lang.Object; + /** + * This method is called by trusted subclasses of ObjectOutputStream that + * constructed ObjectOutputStream using the protected no-arg constructor. + * The subclass is expected to provide an override method with the modifier + * "final". + */ + // @ts-ignore + protected readObjectOverride(): java.lang.Object; + /** + * Reads an "unshared" object from the ObjectInputStream. This method is + * identical to readObject, except that it prevents subsequent calls to + * readObject and readUnshared from returning additional references to the + * deserialized instance obtained via this call. Specifically: + *

    + *
  • If readUnshared is called to deserialize a back-reference (the + * stream representation of an object which has been written + * previously to the stream), an ObjectStreamException will be + * thrown. + *
  • If readUnshared returns successfully, then any subsequent attempts + * to deserialize back-references to the stream handle deserialized + * by readUnshared will cause an ObjectStreamException to be thrown. + *
+ * Deserializing an object via readUnshared invalidates the stream handle + * associated with the returned object. Note that this in itself does not + * always guarantee that the reference returned by readUnshared is unique; + * the deserialized object may define a readResolve method which returns an + * object visible to other parties, or readUnshared may return a Class + * object or enum constant obtainable elsewhere in the stream or through + * external means. If the deserialized object defines a readResolve method + * and the invocation of that method returns an array, then readUnshared + * returns a shallow clone of that array; this guarantees that the returned + * array object is unique and cannot be obtained a second time from an + * invocation of readObject or readUnshared on the ObjectInputStream, + * even if the underlying data stream has been manipulated. + *

ObjectInputStream subclasses which override this method can only be + * constructed in security contexts possessing the + * "enableSubclassImplementation" SerializablePermission; any attempt to + * instantiate such a subclass without this permission will cause a + * SecurityException to be thrown. + */ + // @ts-ignore + public readUnshared(): java.lang.Object; + /** + * Read the non-static and non-transient fields of the current class from + * this stream. This may only be called from the readObject method of the + * class being deserialized. It will throw the NotActiveException if it is + * called otherwise. + */ + // @ts-ignore + public defaultReadObject(): void; + /** + * Reads the persistent fields from the stream and makes them available by + * name. + */ + // @ts-ignore + public readFields(): java.io.ObjectInputStream.GetField; + /** + * Register an object to be validated before the graph is returned. While + * similar to resolveObject these validations are called after the entire + * graph has been reconstituted. Typically, a readObject method will + * register the object with the stream so that when all of the objects are + * restored a final set of validations can be performed. + */ + // @ts-ignore + public registerValidation(obj: java.io.ObjectInputValidation, prio: number): void; + /** + * Load the local class equivalent of the specified stream class + * description. Subclasses may implement this method to allow classes to + * be fetched from an alternate source. + *

The corresponding method in ObjectOutputStream is + * annotateClass. This method will be invoked only once for + * each unique class in the stream. This method can be implemented by + * subclasses to use an alternate loading mechanism but must return a + * Class object. Once returned, if the class is not an array + * class, its serialVersionUID is compared to the serialVersionUID of the + * serialized class, and if there is a mismatch, the deserialization fails + * and an {@link InvalidClassException} is thrown. + *

The default implementation of this method in + * ObjectInputStream returns the result of calling + *

+             * Class.forName(desc.getName(), false, loader)
+             * 
+ * where loader is determined as follows: if there is a + * method on the current thread's stack whose declaring class was + * defined by a user-defined class loader (and was not a generated to + * implement reflective invocations), then loader is class + * loader corresponding to the closest such method to the currently + * executing frame; otherwise, loader is + * null. If this call results in a + * ClassNotFoundException and the name of the passed + * ObjectStreamClass instance is the Java language keyword + * for a primitive type or void, then the Class object + * representing that primitive type or void will be returned + * (e.g., an ObjectStreamClass with the name + * "int" will be resolved to Integer.TYPE). + * Otherwise, the ClassNotFoundException will be thrown to + * the caller of this method. + */ + // @ts-ignore + protected resolveClass(desc: java.io.ObjectStreamClass): java.lang.Class; + /** + * Returns a proxy class that implements the interfaces named in a proxy + * class descriptor; subclasses may implement this method to read custom + * data from the stream along with the descriptors for dynamic proxy + * classes, allowing them to use an alternate loading mechanism for the + * interfaces and the proxy class. + *

This method is called exactly once for each unique proxy class + * descriptor in the stream. + *

The corresponding method in ObjectOutputStream is + * annotateProxyClass. For a given subclass of + * ObjectInputStream that overrides this method, the + * annotateProxyClass method in the corresponding subclass of + * ObjectOutputStream must write any data or objects read by + * this method. + *

The default implementation of this method in + * ObjectInputStream returns the result of calling + * Proxy.getProxyClass with the list of Class + * objects for the interfaces that are named in the interfaces + * parameter. The Class object for each interface name + * i is the value returned by calling + *

+             * Class.forName(i, false, loader)
+             * 
+ * where loader is that of the first non-null + * class loader up the execution stack, or null if no + * non-null class loaders are on the stack (the same class + * loader choice used by the resolveClass method). Unless any + * of the resolved interfaces are non-public, this same value of + * loader is also the class loader passed to + * Proxy.getProxyClass; if non-public interfaces are present, + * their class loader is passed instead (if more than one non-public + * interface class loader is encountered, an + * IllegalAccessError is thrown). + * If Proxy.getProxyClass throws an + * IllegalArgumentException, resolveProxyClass + * will throw a ClassNotFoundException containing the + * IllegalArgumentException. + */ + // @ts-ignore + protected resolveProxyClass(interfaces: string): java.lang.Class; + /** + * This method will allow trusted subclasses of ObjectInputStream to + * substitute one object for another during deserialization. Replacing + * objects is disabled until enableResolveObject is called. The + * enableResolveObject method checks that the stream requesting to resolve + * object can be trusted. Every reference to serializable objects is passed + * to resolveObject. To insure that the private state of objects is not + * unintentionally exposed only trusted streams may use resolveObject. + *

This method is called after an object has been read but before it is + * returned from readObject. The default resolveObject method just returns + * the same object. + *

When a subclass is replacing objects it must insure that the + * substituted object is compatible with every field where the reference + * will be stored. Objects whose type is not a subclass of the type of the + * field or array element abort the serialization by raising an exception + * and the object is not be stored. + *

This method is called only once when each object is first + * encountered. All subsequent references to the object will be redirected + * to the new object. + */ + // @ts-ignore + protected resolveObject(obj: java.lang.Object): java.lang.Object; + /** + * Enable the stream to allow objects read from the stream to be replaced. + * When enabled, the resolveObject method is called for every object being + * deserialized. + *

If enable is true, and there is a security manager installed, + * this method first calls the security manager's + * checkPermission method with the + * SerializablePermission("enableSubstitution") permission to + * ensure it's ok to enable the stream to allow objects read from the + * stream to be replaced. + */ + // @ts-ignore + protected enableResolveObject(enable: boolean): boolean; + /** + * The readStreamHeader method is provided to allow subclasses to read and + * verify their own stream headers. It reads and verifies the magic number + * and version number. + */ + // @ts-ignore + protected readStreamHeader(): void; + /** + * Read a class descriptor from the serialization stream. This method is + * called when the ObjectInputStream expects a class descriptor as the next + * item in the serialization stream. Subclasses of ObjectInputStream may + * override this method to read in class descriptors that have been written + * in non-standard formats (by subclasses of ObjectOutputStream which have + * overridden the writeClassDescriptor method). By default, + * this method reads class descriptors according to the format defined in + * the Object Serialization specification. + */ + // @ts-ignore + protected readClassDescriptor(): java.io.ObjectStreamClass; + /** + * Reads a byte of data. This method will block if no input is available. + */ + // @ts-ignore + public read(): number; + /** + * Reads into an array of bytes. This method will block until some input + * is available. Consider using java.io.DataInputStream.readFully to read + * exactly 'length' bytes. + */ + // @ts-ignore + public read(buf: number, off: number, len: number): number; + /** + * Returns the number of bytes that can be read without blocking. + */ + // @ts-ignore + public available(): number; + /** + * Closes the input stream. Must be called to release any resources + * associated with the stream. + */ + // @ts-ignore + public close(): void; + /** + * Reads in a boolean. + */ + // @ts-ignore + public readBoolean(): boolean; + /** + * Reads an 8 bit byte. + */ + // @ts-ignore + public readByte(): number; + /** + * Reads an unsigned 8 bit byte. + */ + // @ts-ignore + public readUnsignedByte(): number; + /** + * Reads a 16 bit char. + */ + // @ts-ignore + public readChar(): string; + /** + * Reads a 16 bit short. + */ + // @ts-ignore + public readShort(): number; + /** + * Reads an unsigned 16 bit short. + */ + // @ts-ignore + public readUnsignedShort(): number; + /** + * Reads a 32 bit int. + */ + // @ts-ignore + public readInt(): number; + /** + * Reads a 64 bit long. + */ + // @ts-ignore + public readLong(): number; + /** + * Reads a 32 bit float. + */ + // @ts-ignore + public readFloat(): number; + /** + * Reads a 64 bit double. + */ + // @ts-ignore + public readDouble(): number; + /** + * Reads bytes, blocking until all bytes are read. + */ + // @ts-ignore + public readFully(buf: number): void; + /** + * Reads bytes, blocking until all bytes are read. + */ + // @ts-ignore + public readFully(buf: number, off: number, len: number): void; + /** + * Skips bytes. + */ + // @ts-ignore + public skipBytes(len: number): number; + /** + * Reads in a line that has been terminated by a \n, \r, \r\n or EOF. + */ + // @ts-ignore + public readLine(): string; + /** + * Reads a String in + * modified UTF-8 + * format. + */ + // @ts-ignore + public readUTF(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.ObjectInputValidation.d.ts b/packages/types/dist/typings/jdk/java.io.ObjectInputValidation.d.ts new file mode 100644 index 00000000..81ff3957 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.ObjectInputValidation.d.ts @@ -0,0 +1,13 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + interface ObjectInputValidation { + /** + * Validates the object. + */ + // @ts-ignore + validateObject(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.ObjectOutput.d.ts b/packages/types/dist/typings/jdk/java.io.ObjectOutput.d.ts new file mode 100644 index 00000000..0f95d1d7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.ObjectOutput.d.ts @@ -0,0 +1,45 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + interface ObjectOutput { + /** + * Write an object to the underlying storage or stream. The + * class that implements this interface defines how the object is + * written. + */ + // @ts-ignore + writeObject(obj: java.lang.Object): void; + /** + * Writes a byte. This method will block until the byte is actually + * written. + */ + // @ts-ignore + write(b: number): void; + /** + * Writes an array of bytes. This method will block until the bytes + * are actually written. + */ + // @ts-ignore + write(b: number): void; + /** + * Writes a sub array of bytes. + */ + // @ts-ignore + write(b: number, off: number, len: number): void; + /** + * Flushes the stream. This will write any buffered + * output bytes. + */ + // @ts-ignore + flush(): void; + /** + * Closes the stream. This method must be called + * to release any resources associated with the + * stream. + */ + // @ts-ignore + close(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.ObjectOutputStream.PutField.d.ts b/packages/types/dist/typings/jdk/java.io.ObjectOutputStream.PutField.d.ts new file mode 100644 index 00000000..7f8eb048 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.ObjectOutputStream.PutField.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace java { + namespace io { + namespace ObjectOutputStream { + // @ts-ignore + abstract class PutField extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Put the value of the named boolean field into the persistent field. + */ + // @ts-ignore + public abstract put(name: string, val: boolean): void; + /** + * Write the data and fields to the specified ObjectOutput stream, + * which must be the same stream that produced this + * PutField object. + */ + // @ts-ignore + public abstract write(out: java.io.ObjectOutput): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.ObjectOutputStream.d.ts b/packages/types/dist/typings/jdk/java.io.ObjectOutputStream.d.ts new file mode 100644 index 00000000..57a64a2a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.ObjectOutputStream.d.ts @@ -0,0 +1,324 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class ObjectOutputStream extends java.io.OutputStream { + /** + * Creates an ObjectOutputStream that writes to the specified OutputStream. + * This constructor writes the serialization stream header to the + * underlying stream; callers may wish to flush the stream immediately to + * ensure that constructors for receiving ObjectInputStreams will not block + * when reading the header. + *

If a security manager is installed, this constructor will check for + * the "enableSubclassImplementation" SerializablePermission when invoked + * directly or indirectly by the constructor of a subclass which overrides + * the ObjectOutputStream.putFields or ObjectOutputStream.writeUnshared + * methods. + */ + // @ts-ignore + constructor(out: java.io.OutputStream) + /** + * Provide a way for subclasses that are completely reimplementing + * ObjectOutputStream to not have to allocate private data just used by + * this implementation of ObjectOutputStream. + *

If there is a security manager installed, this method first calls the + * security manager's checkPermission method with a + * SerializablePermission("enableSubclassImplementation") + * permission to ensure it's ok to enable subclassing. + */ + // @ts-ignore + constructor() + /** + * Specify stream protocol version to use when writing the stream. + *

This routine provides a hook to enable the current version of + * Serialization to write in a format that is backwards compatible to a + * previous version of the stream format. + *

Every effort will be made to avoid introducing additional + * backwards incompatibilities; however, sometimes there is no + * other alternative. + */ + // @ts-ignore + public useProtocolVersion(version: number): void; + /** + * Write the specified object to the ObjectOutputStream. The class of the + * object, the signature of the class, and the values of the non-transient + * and non-static fields of the class and all of its supertypes are + * written. Default serialization for a class can be overridden using the + * writeObject and the readObject methods. Objects referenced by this + * object are written transitively so that a complete equivalent graph of + * objects can be reconstructed by an ObjectInputStream. + *

Exceptions are thrown for problems with the OutputStream and for + * classes that should not be serialized. All exceptions are fatal to the + * OutputStream, which is left in an indeterminate state, and it is up to + * the caller to ignore or recover the stream state. + */ + // @ts-ignore + public writeObject(obj: java.lang.Object): void; + /** + * Method used by subclasses to override the default writeObject method. + * This method is called by trusted subclasses of ObjectInputStream that + * constructed ObjectInputStream using the protected no-arg constructor. + * The subclass is expected to provide an override method with the modifier + * "final". + */ + // @ts-ignore + protected writeObjectOverride(obj: java.lang.Object): void; + /** + * Writes an "unshared" object to the ObjectOutputStream. This method is + * identical to writeObject, except that it always writes the given object + * as a new, unique object in the stream (as opposed to a back-reference + * pointing to a previously serialized instance). Specifically: + *

    + *
  • An object written via writeUnshared is always serialized in the + * same manner as a newly appearing object (an object that has not + * been written to the stream yet), regardless of whether or not the + * object has been written previously. + *
  • If writeObject is used to write an object that has been previously + * written with writeUnshared, the previous writeUnshared operation + * is treated as if it were a write of a separate object. In other + * words, ObjectOutputStream will never generate back-references to + * object data written by calls to writeUnshared. + *
+ * While writing an object via writeUnshared does not in itself guarantee a + * unique reference to the object when it is deserialized, it allows a + * single object to be defined multiple times in a stream, so that multiple + * calls to readUnshared by the receiver will not conflict. Note that the + * rules described above only apply to the base-level object written with + * writeUnshared, and not to any transitively referenced sub-objects in the + * object graph to be serialized. + *

ObjectOutputStream subclasses which override this method can only be + * constructed in security contexts possessing the + * "enableSubclassImplementation" SerializablePermission; any attempt to + * instantiate such a subclass without this permission will cause a + * SecurityException to be thrown. + */ + // @ts-ignore + public writeUnshared(obj: java.lang.Object): void; + /** + * Write the non-static and non-transient fields of the current class to + * this stream. This may only be called from the writeObject method of the + * class being serialized. It will throw the NotActiveException if it is + * called otherwise. + */ + // @ts-ignore + public defaultWriteObject(): void; + /** + * Retrieve the object used to buffer persistent fields to be written to + * the stream. The fields will be written to the stream when writeFields + * method is called. + */ + // @ts-ignore + public putFields(): java.io.ObjectOutputStream.PutField; + /** + * Write the buffered fields to the stream. + */ + // @ts-ignore + public writeFields(): void; + /** + * Reset will disregard the state of any objects already written to the + * stream. The state is reset to be the same as a new ObjectOutputStream. + * The current point in the stream is marked as reset so the corresponding + * ObjectInputStream will be reset at the same point. Objects previously + * written to the stream will not be referred to as already being in the + * stream. They will be written to the stream again. + */ + // @ts-ignore + public reset(): void; + /** + * Subclasses may implement this method to allow class data to be stored in + * the stream. By default this method does nothing. The corresponding + * method in ObjectInputStream is resolveClass. This method is called + * exactly once for each unique class in the stream. The class name and + * signature will have already been written to the stream. This method may + * make free use of the ObjectOutputStream to save any representation of + * the class it deems suitable (for example, the bytes of the class file). + * The resolveClass method in the corresponding subclass of + * ObjectInputStream must read and use any data or objects written by + * annotateClass. + */ + // @ts-ignore + protected annotateClass(cl: java.lang.Class): void; + /** + * Subclasses may implement this method to store custom data in the stream + * along with descriptors for dynamic proxy classes. + *

This method is called exactly once for each unique proxy class + * descriptor in the stream. The default implementation of this method in + * ObjectOutputStream does nothing. + *

The corresponding method in ObjectInputStream is + * resolveProxyClass. For a given subclass of + * ObjectOutputStream that overrides this method, the + * resolveProxyClass method in the corresponding subclass of + * ObjectInputStream must read any data or objects written by + * annotateProxyClass. + */ + // @ts-ignore + protected annotateProxyClass(cl: java.lang.Class): void; + /** + * This method will allow trusted subclasses of ObjectOutputStream to + * substitute one object for another during serialization. Replacing + * objects is disabled until enableReplaceObject is called. The + * enableReplaceObject method checks that the stream requesting to do + * replacement can be trusted. The first occurrence of each object written + * into the serialization stream is passed to replaceObject. Subsequent + * references to the object are replaced by the object returned by the + * original call to replaceObject. To ensure that the private state of + * objects is not unintentionally exposed, only trusted streams may use + * replaceObject. + *

The ObjectOutputStream.writeObject method takes a parameter of type + * Object (as opposed to type Serializable) to allow for cases where + * non-serializable objects are replaced by serializable ones. + *

When a subclass is replacing objects it must insure that either a + * complementary substitution must be made during deserialization or that + * the substituted object is compatible with every field where the + * reference will be stored. Objects whose type is not a subclass of the + * type of the field or array element abort the serialization by raising an + * exception and the object is not be stored. + *

This method is called only once when each object is first + * encountered. All subsequent references to the object will be redirected + * to the new object. This method should return the object to be + * substituted or the original object. + *

Null can be returned as the object to be substituted, but may cause + * NullReferenceException in classes that contain references to the + * original object since they may be expecting an object instead of + * null. + */ + // @ts-ignore + protected replaceObject(obj: java.lang.Object): java.lang.Object; + /** + * Enable the stream to do replacement of objects in the stream. When + * enabled, the replaceObject method is called for every object being + * serialized. + *

If enable is true, and there is a security manager + * installed, this method first calls the security manager's + * checkPermission method with a + * SerializablePermission("enableSubstitution") permission to + * ensure it's ok to enable the stream to do replacement of objects in the + * stream. + */ + // @ts-ignore + protected enableReplaceObject(enable: boolean): boolean; + /** + * The writeStreamHeader method is provided so subclasses can append or + * prepend their own header to the stream. It writes the magic number and + * version to the stream. + */ + // @ts-ignore + protected writeStreamHeader(): void; + /** + * Write the specified class descriptor to the ObjectOutputStream. Class + * descriptors are used to identify the classes of objects written to the + * stream. Subclasses of ObjectOutputStream may override this method to + * customize the way in which class descriptors are written to the + * serialization stream. The corresponding method in ObjectInputStream, + * readClassDescriptor, should then be overridden to + * reconstitute the class descriptor from its custom stream representation. + * By default, this method writes class descriptors according to the format + * defined in the Object Serialization specification. + *

Note that this method will only be called if the ObjectOutputStream + * is not using the old serialization stream format (set by calling + * ObjectOutputStream's useProtocolVersion method). If this + * serialization stream is using the old format + * (PROTOCOL_VERSION_1), the class descriptor will be written + * internally in a manner that cannot be overridden or customized. + */ + // @ts-ignore + protected writeClassDescriptor(desc: java.io.ObjectStreamClass): void; + /** + * Writes a byte. This method will block until the byte is actually + * written. + */ + // @ts-ignore + public write(val: number): void; + /** + * Writes an array of bytes. This method will block until the bytes are + * actually written. + */ + // @ts-ignore + public write(buf: number): void; + /** + * Writes a sub array of bytes. + */ + // @ts-ignore + public write(buf: number, off: number, len: number): void; + /** + * Flushes the stream. This will write any buffered output bytes and flush + * through to the underlying stream. + */ + // @ts-ignore + public flush(): void; + /** + * Drain any buffered data in ObjectOutputStream. Similar to flush but + * does not propagate the flush to the underlying stream. + */ + // @ts-ignore + protected drain(): void; + /** + * Closes the stream. This method must be called to release any resources + * associated with the stream. + */ + // @ts-ignore + public close(): void; + /** + * Writes a boolean. + */ + // @ts-ignore + public writeBoolean(val: boolean): void; + /** + * Writes an 8 bit byte. + */ + // @ts-ignore + public writeByte(val: number): void; + /** + * Writes a 16 bit short. + */ + // @ts-ignore + public writeShort(val: number): void; + /** + * Writes a 16 bit char. + */ + // @ts-ignore + public writeChar(val: number): void; + /** + * Writes a 32 bit int. + */ + // @ts-ignore + public writeInt(val: number): void; + /** + * Writes a 64 bit long. + */ + // @ts-ignore + public writeLong(val: number): void; + /** + * Writes a 32 bit float. + */ + // @ts-ignore + public writeFloat(val: number): void; + /** + * Writes a 64 bit double. + */ + // @ts-ignore + public writeDouble(val: number): void; + /** + * Writes a String as a sequence of bytes. + */ + // @ts-ignore + public writeBytes(str: string): void; + /** + * Writes a String as a sequence of chars. + */ + // @ts-ignore + public writeChars(str: string): void; + /** + * Primitive data write of this String in + * modified UTF-8 + * format. Note that there is a + * significant difference between writing a String into the stream as + * primitive data or as an Object. A String instance written by writeObject + * is written into the stream as a String initially. Future writeObject() + * calls write references to the string into the stream. + */ + // @ts-ignore + public writeUTF(str: string): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.ObjectStreamClass.d.ts b/packages/types/dist/typings/jdk/java.io.ObjectStreamClass.d.ts new file mode 100644 index 00000000..3242c622 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.ObjectStreamClass.d.ts @@ -0,0 +1,60 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class ObjectStreamClass extends java.lang.Object { + // @ts-ignore + public static NO_FIELDS: java.io.ObjectStreamField[]; + /** + * Find the descriptor for a class that can be serialized. Creates an + * ObjectStreamClass instance if one does not exist yet for class. Null is + * returned if the specified class does not implement java.io.Serializable + * or java.io.Externalizable. + */ + // @ts-ignore + public static lookup(cl: java.lang.Class): java.io.ObjectStreamClass; + /** + * Returns the descriptor for any class, regardless of whether it + * implements {@link Serializable}. + */ + // @ts-ignore + public static lookupAny(cl: java.lang.Class): java.io.ObjectStreamClass; + /** + * Returns the name of the class described by this descriptor. + * This method returns the name of the class in the format that + * is used by the {@link Class#getName} method. + */ + // @ts-ignore + public getName(): string; + /** + * Return the serialVersionUID for this class. The serialVersionUID + * defines a set of classes all with the same name that have evolved from a + * common root class and agree to be serialized and deserialized using a + * common format. NonSerializable classes have a serialVersionUID of 0L. + */ + // @ts-ignore + public getSerialVersionUID(): number; + /** + * Return the class in the local VM that this version is mapped to. Null + * is returned if there is no corresponding local class. + */ + // @ts-ignore + public forClass(): java.lang.Class; + /** + * Return an array of the fields of this serializable class. + */ + // @ts-ignore + public getFields(): java.io.ObjectStreamField[]; + /** + * Get the field of this class by name. + */ + // @ts-ignore + public getField(name: string): java.io.ObjectStreamField; + /** + * Return a string describing this ObjectStreamClass. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.ObjectStreamConstants.d.ts b/packages/types/dist/typings/jdk/java.io.ObjectStreamConstants.d.ts new file mode 100644 index 00000000..50965f65 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.ObjectStreamConstants.d.ts @@ -0,0 +1,66 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + interface ObjectStreamConstants { + // @ts-ignore + STREAM_MAGIC: number; + // @ts-ignore + STREAM_VERSION: number; + // @ts-ignore + TC_BASE: number; + // @ts-ignore + TC_NULL: number; + // @ts-ignore + TC_REFERENCE: number; + // @ts-ignore + TC_CLASSDESC: number; + // @ts-ignore + TC_OBJECT: number; + // @ts-ignore + TC_STRING: number; + // @ts-ignore + TC_ARRAY: number; + // @ts-ignore + TC_CLASS: number; + // @ts-ignore + TC_BLOCKDATA: number; + // @ts-ignore + TC_ENDBLOCKDATA: number; + // @ts-ignore + TC_RESET: number; + // @ts-ignore + TC_BLOCKDATALONG: number; + // @ts-ignore + TC_EXCEPTION: number; + // @ts-ignore + TC_LONGSTRING: number; + // @ts-ignore + TC_PROXYCLASSDESC: number; + // @ts-ignore + TC_ENUM: number; + // @ts-ignore + TC_MAX: number; + // @ts-ignore + baseWireHandle: number; + // @ts-ignore + SC_WRITE_METHOD: number; + // @ts-ignore + SC_BLOCK_DATA: number; + // @ts-ignore + SC_SERIALIZABLE: number; + // @ts-ignore + SC_EXTERNALIZABLE: number; + // @ts-ignore + SC_ENUM: number; + // @ts-ignore + SUBSTITUTION_PERMISSION: java.io.SerializablePermission; + // @ts-ignore + SUBCLASS_IMPLEMENTATION_PERMISSION: java.io.SerializablePermission; + // @ts-ignore + PROTOCOL_VERSION_1: number; + // @ts-ignore + PROTOCOL_VERSION_2: number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.ObjectStreamException.d.ts b/packages/types/dist/typings/jdk/java.io.ObjectStreamException.d.ts new file mode 100644 index 00000000..b1e9b670 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.ObjectStreamException.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + abstract class ObjectStreamException extends java.io.IOException { + /** + * Create an ObjectStreamException with the specified argument. + */ + // @ts-ignore + constructor(classname: string) + /** + * Create an ObjectStreamException. + */ + // @ts-ignore + constructor() + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.ObjectStreamField.d.ts b/packages/types/dist/typings/jdk/java.io.ObjectStreamField.d.ts new file mode 100644 index 00000000..c1260793 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.ObjectStreamField.d.ts @@ -0,0 +1,96 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class ObjectStreamField extends java.lang.Object { + /** + * Create a Serializable field with the specified type. This field should + * be documented with a serialField tag. + */ + // @ts-ignore + constructor(name: string, type: java.lang.Class) + /** + * Creates an ObjectStreamField representing a serializable field with the + * given name and type. If unshared is false, values of the represented + * field are serialized and deserialized in the default manner--if the + * field is non-primitive, object values are serialized and deserialized as + * if they had been written and read by calls to writeObject and + * readObject. If unshared is true, values of the represented field are + * serialized and deserialized as if they had been written and read by + * calls to writeUnshared and readUnshared. + */ + // @ts-ignore + constructor(name: string, type: java.lang.Class, unshared: boolean) + /** + * Get the name of this field. + */ + // @ts-ignore + public getName(): string; + /** + * Get the type of the field. If the type is non-primitive and this + * ObjectStreamField was obtained from a deserialized {@link + * ObjectStreamClass} instance, then Object.class is returned. + * Otherwise, the Class object for the type of the field is + * returned. + */ + // @ts-ignore + public getType(): java.lang.Class; + /** + * Returns character encoding of field type. The encoding is as follows: + *

+             * B            byte
+             * C            char
+             * D            double
+             * F            float
+             * I            int
+             * J            long
+             * L            class or interface
+             * S            short
+             * Z            boolean
+             * [            array
+             * 
+ */ + // @ts-ignore + public getTypeCode(): string; + /** + * Return the JVM type signature. + */ + // @ts-ignore + public getTypeString(): string; + /** + * Offset of field within instance data. + */ + // @ts-ignore + public getOffset(): number; + /** + * Offset within instance data. + */ + // @ts-ignore + protected setOffset(offset: number): void; + /** + * Return true if this field has a primitive type. + */ + // @ts-ignore + public isPrimitive(): boolean; + /** + * Returns boolean value indicating whether or not the serializable field + * represented by this ObjectStreamField instance is unshared. + */ + // @ts-ignore + public isUnshared(): boolean; + /** + * Compare this field with another ObjectStreamField. Return + * -1 if this is smaller, 0 if equal, 1 if greater. Types that are + * primitives are "smaller" than object types. If equal, the field names + * are compared. + */ + // @ts-ignore + public compareTo(obj: java.lang.Object): number; + /** + * Return a string that describes this field. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.OptionalDataException.d.ts b/packages/types/dist/typings/jdk/java.io.OptionalDataException.d.ts new file mode 100644 index 00000000..c230b40c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.OptionalDataException.d.ts @@ -0,0 +1,12 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class OptionalDataException extends java.io.ObjectStreamException { + // @ts-ignore + public length: number; + // @ts-ignore + public eof: boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.OutputStream.d.ts b/packages/types/dist/typings/jdk/java.io.OutputStream.d.ts new file mode 100644 index 00000000..06886949 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.OutputStream.d.ts @@ -0,0 +1,81 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + abstract class OutputStream extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Writes the specified byte to this output stream. The general + * contract for write is that one byte is written + * to the output stream. The byte to be written is the eight + * low-order bits of the argument b. The 24 + * high-order bits of b are ignored. + *

+ * Subclasses of OutputStream must provide an + * implementation for this method. + */ + // @ts-ignore + public abstract write(b: number): void; + /** + * Writes b.length bytes from the specified byte array + * to this output stream. The general contract for write(b) + * is that it should have exactly the same effect as the call + * write(b, 0, b.length). + */ + // @ts-ignore + public write(b: number): void; + /** + * Writes len bytes from the specified byte array + * starting at offset off to this output stream. + * The general contract for write(b, off, len) is that + * some of the bytes in the array b are written to the + * output stream in order; element b[off] is the first + * byte written and b[off+len-1] is the last byte written + * by this operation. + *

+ * The write method of OutputStream calls + * the write method of one argument on each of the bytes to be + * written out. Subclasses are encouraged to override this method and + * provide a more efficient implementation. + *

+ * If b is null, a + * NullPointerException is thrown. + *

+ * If off is negative, or len is negative, or + * off+len is greater than the length of the array + * b, then an IndexOutOfBoundsException is thrown. + */ + // @ts-ignore + public write(b: number, off: number, len: number): void; + /** + * Flushes this output stream and forces any buffered output bytes + * to be written out. The general contract of flush is + * that calling it is an indication that, if any bytes previously + * written have been buffered by the implementation of the output + * stream, such bytes should immediately be written to their + * intended destination. + *

+ * If the intended destination of this stream is an abstraction provided by + * the underlying operating system, for example a file, then flushing the + * stream guarantees only that bytes previously written to the stream are + * passed to the operating system for writing; it does not guarantee that + * they are actually written to a physical device such as a disk drive. + *

+ * The flush method of OutputStream does nothing. + */ + // @ts-ignore + public flush(): void; + /** + * Closes this output stream and releases any system resources + * associated with this stream. The general contract of close + * is that it closes the output stream. A closed stream cannot perform + * output operations and cannot be reopened. + *

+ * The close method of OutputStream does nothing. + */ + // @ts-ignore + public close(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.OutputStreamWriter.d.ts b/packages/types/dist/typings/jdk/java.io.OutputStreamWriter.d.ts new file mode 100644 index 00000000..c635ff2f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.OutputStreamWriter.d.ts @@ -0,0 +1,62 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class OutputStreamWriter extends java.io.Writer { + /** + * Creates an OutputStreamWriter that uses the named charset. + */ + // @ts-ignore + constructor(out: java.io.OutputStream, charsetName: string) + /** + * Creates an OutputStreamWriter that uses the default character encoding. + */ + // @ts-ignore + constructor(out: java.io.OutputStream) + /** + * Creates an OutputStreamWriter that uses the given charset. + */ + // @ts-ignore + constructor(out: java.io.OutputStream, cs: java.nio.charset.Charset) + /** + * Creates an OutputStreamWriter that uses the given charset encoder. + */ + // @ts-ignore + constructor(out: java.io.OutputStream, enc: java.nio.charset.CharsetEncoder) + /** + * Returns the name of the character encoding being used by this stream. + *

If the encoding has an historical name then that name is returned; + * otherwise the encoding's canonical name is returned. + *

If this instance was created with the {@link + * #OutputStreamWriter(OutputStream, String)} constructor then the returned + * name, being unique for the encoding, may differ from the name passed to + * the constructor. This method may return null if the stream has + * been closed.

+ */ + // @ts-ignore + public getEncoding(): string; + /** + * Writes a single character. + */ + // @ts-ignore + public write(c: number): void; + /** + * Writes a portion of an array of characters. + */ + // @ts-ignore + public write(cbuf: string, off: number, len: number): void; + /** + * Writes a portion of a string. + */ + // @ts-ignore + public write(str: string, off: number, len: number): void; + /** + * Flushes the stream. + */ + // @ts-ignore + public flush(): void; + // @ts-ignore + public close(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.PipedInputStream.d.ts b/packages/types/dist/typings/jdk/java.io.PipedInputStream.d.ts new file mode 100644 index 00000000..3baeb4c9 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.PipedInputStream.d.ts @@ -0,0 +1,114 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class PipedInputStream extends java.io.InputStream { + /** + * Creates a PipedInputStream so + * that it is connected to the piped output + * stream src. Data bytes written + * to src will then be available + * as input from this stream. + */ + // @ts-ignore + constructor(src: java.io.PipedOutputStream) + /** + * Creates a PipedInputStream so that it is + * connected to the piped output stream + * src and uses the specified pipe size for + * the pipe's buffer. + * Data bytes written to src will then + * be available as input from this stream. + */ + // @ts-ignore + constructor(src: java.io.PipedOutputStream, pipeSize: number) + /** + * Creates a PipedInputStream so + * that it is not yet {@linkplain #connect(java.io.PipedOutputStream) + * connected}. + * It must be {@linkplain java.io.PipedOutputStream#connect( + * java.io.PipedInputStream) connected} to a + * PipedOutputStream before being used. + */ + // @ts-ignore + constructor() + /** + * Creates a PipedInputStream so that it is not yet + * {@linkplain #connect(java.io.PipedOutputStream) connected} and + * uses the specified pipe size for the pipe's buffer. + * It must be {@linkplain java.io.PipedOutputStream#connect( + * java.io.PipedInputStream) + * connected} to a PipedOutputStream before being used. + */ + // @ts-ignore + constructor(pipeSize: number) + // @ts-ignore + protected static PIPE_SIZE: number; + // @ts-ignore + protected buffer: number[]; + // @ts-ignore + protected in: number; + // @ts-ignore + protected out: number; + /** + * Causes this piped input stream to be connected + * to the piped output stream src. + * If this object is already connected to some + * other piped output stream, an IOException + * is thrown. + *

+ * If src is an + * unconnected piped output stream and snk + * is an unconnected piped input stream, they + * may be connected by either the call: + *

snk.connect(src) 
+ *

+ * or the call: + *

src.connect(snk) 
+ *

+ * The two calls have the same effect. + */ + // @ts-ignore + public connect(src: java.io.PipedOutputStream): void; + /** + * Receives a byte of data. This method will block if no input is + * available. + */ + // @ts-ignore + protected receive(b: number): void; + /** + * Reads the next byte of data from this piped input stream. The + * value byte is returned as an int in the range + * 0 to 255. + * This method blocks until input data is available, the end of the + * stream is detected, or an exception is thrown. + */ + // @ts-ignore + public read(): number; + /** + * Reads up to len bytes of data from this piped input + * stream into an array of bytes. Less than len bytes + * will be read if the end of the data stream is reached or if + * len exceeds the pipe's buffer size. + * If len is zero, then no bytes are read and 0 is returned; + * otherwise, the method blocks until at least 1 byte of input is + * available, end of the stream has been detected, or an exception is + * thrown. + */ + // @ts-ignore + public read(b: number, off: number, len: number): number; + /** + * Returns the number of bytes that can be read from this input + * stream without blocking. + */ + // @ts-ignore + public available(): number; + /** + * Closes this piped input stream and releases any system resources + * associated with the stream. + */ + // @ts-ignore + public close(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.PipedOutputStream.d.ts b/packages/types/dist/typings/jdk/java.io.PipedOutputStream.d.ts new file mode 100644 index 00000000..22dd0a6a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.PipedOutputStream.d.ts @@ -0,0 +1,68 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class PipedOutputStream extends java.io.OutputStream { + /** + * Creates a piped output stream connected to the specified piped + * input stream. Data bytes written to this stream will then be + * available as input from snk. + */ + // @ts-ignore + constructor(snk: java.io.PipedInputStream) + /** + * Creates a piped output stream that is not yet connected to a + * piped input stream. It must be connected to a piped input stream, + * either by the receiver or the sender, before being used. + */ + // @ts-ignore + constructor() + /** + * Connects this piped output stream to a receiver. If this object + * is already connected to some other piped input stream, an + * IOException is thrown. + *

+ * If snk is an unconnected piped input stream and + * src is an unconnected piped output stream, they may + * be connected by either the call: + *

+             * src.connect(snk)
+ * or the call: + *
+             * snk.connect(src)
+ * The two calls have the same effect. + */ + // @ts-ignore + public connect(snk: java.io.PipedInputStream): void; + /** + * Writes the specified byte to the piped output stream. + *

+ * Implements the write method of OutputStream. + */ + // @ts-ignore + public write(b: number): void; + /** + * Writes len bytes from the specified byte array + * starting at offset off to this piped output stream. + * This method blocks until all the bytes are written to the output + * stream. + */ + // @ts-ignore + public write(b: number, off: number, len: number): void; + /** + * Flushes this output stream and forces any buffered output bytes + * to be written out. + * This will notify any readers that bytes are waiting in the pipe. + */ + // @ts-ignore + public flush(): void; + /** + * Closes this piped output stream and releases any system resources + * associated with this stream. This stream may no longer be used for + * writing bytes. + */ + // @ts-ignore + public close(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.PipedReader.d.ts b/packages/types/dist/typings/jdk/java.io.PipedReader.d.ts new file mode 100644 index 00000000..2bdc2619 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.PipedReader.d.ts @@ -0,0 +1,93 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class PipedReader extends java.io.Reader { + /** + * Creates a PipedReader so + * that it is connected to the piped writer + * src. Data written to src + * will then be available as input from this stream. + */ + // @ts-ignore + constructor(src: java.io.PipedWriter) + /** + * Creates a PipedReader so that it is connected + * to the piped writer src and uses the specified + * pipe size for the pipe's buffer. Data written to src + * will then be available as input from this stream. + */ + // @ts-ignore + constructor(src: java.io.PipedWriter, pipeSize: number) + /** + * Creates a PipedReader so + * that it is not yet {@linkplain #connect(java.io.PipedWriter) + * connected}. It must be {@linkplain java.io.PipedWriter#connect( + * java.io.PipedReader) connected} to a PipedWriter + * before being used. + */ + // @ts-ignore + constructor() + /** + * Creates a PipedReader so that it is not yet + * {@link #connect(java.io.PipedWriter) connected} and uses + * the specified pipe size for the pipe's buffer. + * It must be {@linkplain java.io.PipedWriter#connect( + * java.io.PipedReader) connected} to a PipedWriter + * before being used. + */ + // @ts-ignore + constructor(pipeSize: number) + /** + * Causes this piped reader to be connected + * to the piped writer src. + * If this object is already connected to some + * other piped writer, an IOException + * is thrown. + *

+ * If src is an + * unconnected piped writer and snk + * is an unconnected piped reader, they + * may be connected by either the call: + *

snk.connect(src) 
+ *

+ * or the call: + *

src.connect(snk) 
+ *

+ * The two calls have the same effect. + */ + // @ts-ignore + public connect(src: java.io.PipedWriter): void; + /** + * Reads the next character of data from this piped stream. + * If no character is available because the end of the stream + * has been reached, the value -1 is returned. + * This method blocks until input data is available, the end of + * the stream is detected, or an exception is thrown. + */ + // @ts-ignore + public read(): number; + /** + * Reads up to len characters of data from this piped + * stream into an array of characters. Less than len characters + * will be read if the end of the data stream is reached or if + * len exceeds the pipe's buffer size. This method + * blocks until at least one character of input is available. + */ + // @ts-ignore + public read(cbuf: string, off: number, len: number): number; + /** + * Tell whether this stream is ready to be read. A piped character + * stream is ready if the circular buffer is not empty. + */ + // @ts-ignore + public ready(): boolean; + /** + * Closes this piped stream and releases any system resources + * associated with the stream. + */ + // @ts-ignore + public close(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.PipedWriter.d.ts b/packages/types/dist/typings/jdk/java.io.PipedWriter.d.ts new file mode 100644 index 00000000..881ee6d2 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.PipedWriter.d.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class PipedWriter extends java.io.Writer { + /** + * Creates a piped writer connected to the specified piped + * reader. Data characters written to this stream will then be + * available as input from snk. + */ + // @ts-ignore + constructor(snk: java.io.PipedReader) + /** + * Creates a piped writer that is not yet connected to a + * piped reader. It must be connected to a piped reader, + * either by the receiver or the sender, before being used. + */ + // @ts-ignore + constructor() + /** + * Connects this piped writer to a receiver. If this object + * is already connected to some other piped reader, an + * IOException is thrown. + *

+ * If snk is an unconnected piped reader and + * src is an unconnected piped writer, they may + * be connected by either the call: + *

+             * src.connect(snk)
+ * or the call: + *
+             * snk.connect(src)
+ * The two calls have the same effect. + */ + // @ts-ignore + public connect(snk: java.io.PipedReader): void; + /** + * Writes the specified char to the piped output stream. + * If a thread was reading data characters from the connected piped input + * stream, but the thread is no longer alive, then an + * IOException is thrown. + *

+ * Implements the write method of Writer. + */ + // @ts-ignore + public write(c: number): void; + /** + * Writes len characters from the specified character array + * starting at offset off to this piped output stream. + * This method blocks until all the characters are written to the output + * stream. + * If a thread was reading data characters from the connected piped input + * stream, but the thread is no longer alive, then an + * IOException is thrown. + */ + // @ts-ignore + public write(cbuf: string, off: number, len: number): void; + /** + * Flushes this output stream and forces any buffered output characters + * to be written out. + * This will notify any readers that characters are waiting in the pipe. + */ + // @ts-ignore + public flush(): void; + /** + * Closes this piped output stream and releases any system resources + * associated with this stream. This stream may no longer be used for + * writing characters. + */ + // @ts-ignore + public close(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.PrintStream.d.ts b/packages/types/dist/typings/jdk/java.io.PrintStream.d.ts new file mode 100644 index 00000000..6aee8cc7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.PrintStream.d.ts @@ -0,0 +1,347 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class PrintStream extends java.io.FilterOutputStream { + /** + * Creates a new print stream. This stream will not flush automatically. + */ + // @ts-ignore + constructor(out: java.io.OutputStream) + /** + * Creates a new print stream. + */ + // @ts-ignore + constructor(out: java.io.OutputStream, autoFlush: boolean) + /** + * Creates a new print stream. + */ + // @ts-ignore + constructor(out: java.io.OutputStream, autoFlush: boolean, encoding: string) + /** + * Creates a new print stream, without automatic line flushing, with the + * specified file name. This convenience constructor creates + * the necessary intermediate {@link java.io.OutputStreamWriter + * OutputStreamWriter}, which will encode characters using the + * {@linkplain java.nio.charset.Charset#defaultCharset() default charset} + * for this instance of the Java virtual machine. + */ + // @ts-ignore + constructor(fileName: string) + /** + * Creates a new print stream, without automatic line flushing, with the + * specified file name and charset. This convenience constructor creates + * the necessary intermediate {@link java.io.OutputStreamWriter + * OutputStreamWriter}, which will encode characters using the provided + * charset. + */ + // @ts-ignore + constructor(fileName: string, csn: string) + /** + * Creates a new print stream, without automatic line flushing, with the + * specified file. This convenience constructor creates the necessary + * intermediate {@link java.io.OutputStreamWriter OutputStreamWriter}, + * which will encode characters using the {@linkplain + * java.nio.charset.Charset#defaultCharset() default charset} for this + * instance of the Java virtual machine. + */ + // @ts-ignore + constructor(file: java.io.File) + /** + * Creates a new print stream, without automatic line flushing, with the + * specified file and charset. This convenience constructor creates + * the necessary intermediate {@link java.io.OutputStreamWriter + * OutputStreamWriter}, which will encode characters using the provided + * charset. + */ + // @ts-ignore + constructor(file: java.io.File, csn: string) + /** + * Flushes the stream. This is done by writing any buffered output bytes to + * the underlying output stream and then flushing that stream. + */ + // @ts-ignore + public flush(): void; + /** + * Closes the stream. This is done by flushing the stream and then closing + * the underlying output stream. + */ + // @ts-ignore + public close(): void; + /** + * Flushes the stream and checks its error state. The internal error state + * is set to true when the underlying output stream throws an + * IOException other than InterruptedIOException, + * and when the setError method is invoked. If an operation + * on the underlying output stream throws an + * InterruptedIOException, then the PrintStream + * converts the exception back into an interrupt by doing: + *

+             * Thread.currentThread().interrupt();
+             * 
+ * or the equivalent. + */ + // @ts-ignore + public checkError(): boolean; + /** + * Sets the error state of the stream to true. + *

This method will cause subsequent invocations of {@link + * #checkError()} to return true until {@link + * #clearError()} is invoked. + */ + // @ts-ignore + protected setError(): void; + /** + * Clears the internal error state of this stream. + *

This method will cause subsequent invocations of {@link + * #checkError()} to return false until another write + * operation fails and invokes {@link #setError()}. + */ + // @ts-ignore + protected clearError(): void; + /** + * Writes the specified byte to this stream. If the byte is a newline and + * automatic flushing is enabled then the flush method will be + * invoked. + *

Note that the byte is written as given; to write a character that + * will be translated according to the platform's default character + * encoding, use the print(char) or println(char) + * methods. + */ + // @ts-ignore + public write(b: number): void; + /** + * Writes len bytes from the specified byte array starting at + * offset off to this stream. If automatic flushing is + * enabled then the flush method will be invoked. + *

Note that the bytes will be written as given; to write characters + * that will be translated according to the platform's default character + * encoding, use the print(char) or println(char) + * methods. + */ + // @ts-ignore + public write(buf: number, off: number, len: number): void; + /** + * Prints a boolean value. The string produced by {@link + * java.lang.String#valueOf(boolean)} is translated into bytes + * according to the platform's default character encoding, and these bytes + * are written in exactly the manner of the + * {@link #write(int)} method. + */ + // @ts-ignore + public print(b: boolean): void; + /** + * Prints a character. The character is translated into one or more bytes + * according to the platform's default character encoding, and these bytes + * are written in exactly the manner of the + * {@link #write(int)} method. + */ + // @ts-ignore + public print(c: string): void; + /** + * Prints an integer. The string produced by {@link + * java.lang.String#valueOf(int)} is translated into bytes + * according to the platform's default character encoding, and these bytes + * are written in exactly the manner of the + * {@link #write(int)} method. + */ + // @ts-ignore + public print(i: number): void; + /** + * Prints a long integer. The string produced by {@link + * java.lang.String#valueOf(long)} is translated into bytes + * according to the platform's default character encoding, and these bytes + * are written in exactly the manner of the + * {@link #write(int)} method. + */ + // @ts-ignore + public print(l: number): void; + /** + * Prints a floating-point number. The string produced by {@link + * java.lang.String#valueOf(float)} is translated into bytes + * according to the platform's default character encoding, and these bytes + * are written in exactly the manner of the + * {@link #write(int)} method. + */ + // @ts-ignore + public print(f: number): void; + /** + * Prints a double-precision floating-point number. The string produced by + * {@link java.lang.String#valueOf(double)} is translated into + * bytes according to the platform's default character encoding, and these + * bytes are written in exactly the manner of the {@link + * #write(int)} method. + */ + // @ts-ignore + public print(d: number): void; + /** + * Prints an array of characters. The characters are converted into bytes + * according to the platform's default character encoding, and these bytes + * are written in exactly the manner of the + * {@link #write(int)} method. + */ + // @ts-ignore + public print(s: string): void; + /** + * Prints a string. If the argument is null then the string + * "null" is printed. Otherwise, the string's characters are + * converted into bytes according to the platform's default character + * encoding, and these bytes are written in exactly the manner of the + * {@link #write(int)} method. + */ + // @ts-ignore + public print(s: string): void; + /** + * Prints an object. The string produced by the {@link + * java.lang.String#valueOf(Object)} method is translated into bytes + * according to the platform's default character encoding, and these bytes + * are written in exactly the manner of the + * {@link #write(int)} method. + */ + // @ts-ignore + public print(obj: java.lang.Object): void; + /** + * Terminates the current line by writing the line separator string. The + * line separator string is defined by the system property + * line.separator, and is not necessarily a single newline + * character ('\n'). + */ + // @ts-ignore + public println(): void; + /** + * Prints a boolean and then terminate the line. This method behaves as + * though it invokes {@link #print(boolean)} and then + * {@link #println()}. + */ + // @ts-ignore + public println(x: boolean): void; + /** + * Prints a character and then terminate the line. This method behaves as + * though it invokes {@link #print(char)} and then + * {@link #println()}. + */ + // @ts-ignore + public println(x: string): void; + /** + * Prints an integer and then terminate the line. This method behaves as + * though it invokes {@link #print(int)} and then + * {@link #println()}. + */ + // @ts-ignore + public println(x: number): void; + /** + * Prints a long and then terminate the line. This method behaves as + * though it invokes {@link #print(long)} and then + * {@link #println()}. + */ + // @ts-ignore + public println(x: number): void; + /** + * Prints a float and then terminate the line. This method behaves as + * though it invokes {@link #print(float)} and then + * {@link #println()}. + */ + // @ts-ignore + public println(x: number): void; + /** + * Prints a double and then terminate the line. This method behaves as + * though it invokes {@link #print(double)} and then + * {@link #println()}. + */ + // @ts-ignore + public println(x: number): void; + /** + * Prints an array of characters and then terminate the line. This method + * behaves as though it invokes {@link #print(char[])} and + * then {@link #println()}. + */ + // @ts-ignore + public println(x: string): void; + /** + * Prints a String and then terminate the line. This method behaves as + * though it invokes {@link #print(String)} and then + * {@link #println()}. + */ + // @ts-ignore + public println(x: string): void; + /** + * Prints an Object and then terminate the line. This method calls + * at first String.valueOf(x) to get the printed object's string value, + * then behaves as + * though it invokes {@link #print(String)} and then + * {@link #println()}. + */ + // @ts-ignore + public println(x: java.lang.Object): void; + /** + * A convenience method to write a formatted string to this output stream + * using the specified format string and arguments. + *

An invocation of this method of the form out.printf(format, + * args) behaves in exactly the same way as the invocation + *

+             * out.format(format, args) 
+ */ + // @ts-ignore + public printf(format: string, args: java.lang.Object): java.io.PrintStream; + /** + * A convenience method to write a formatted string to this output stream + * using the specified format string and arguments. + *

An invocation of this method of the form out.printf(l, format, + * args) behaves in exactly the same way as the invocation + *

+             * out.format(l, format, args) 
+ */ + // @ts-ignore + public printf(l: java.util.Locale, format: string, args: java.lang.Object): java.io.PrintStream; + /** + * Writes a formatted string to this output stream using the specified + * format string and arguments. + *

The locale always used is the one returned by {@link + * java.util.Locale#getDefault() Locale.getDefault()}, regardless of any + * previous invocations of other formatting methods on this object. + */ + // @ts-ignore + public format(format: string, args: java.lang.Object): java.io.PrintStream; + /** + * Writes a formatted string to this output stream using the specified + * format string and arguments. + */ + // @ts-ignore + public format(l: java.util.Locale, format: string, args: java.lang.Object): java.io.PrintStream; + /** + * Appends the specified character sequence to this output stream. + *

An invocation of this method of the form out.append(csq) + * behaves in exactly the same way as the invocation + *

+             * out.print(csq.toString()) 
+ *

Depending on the specification of toString for the + * character sequence csq, the entire sequence may not be + * appended. For instance, invoking then toString method of a + * character buffer will return a subsequence whose content depends upon + * the buffer's position and limit. + */ + // @ts-ignore + public append(csq: java.lang.CharSequence): java.io.PrintStream; + /** + * Appends a subsequence of the specified character sequence to this output + * stream. + *

An invocation of this method of the form out.append(csq, start, + * end) when csq is not null, behaves in + * exactly the same way as the invocation + *

+             * out.print(csq.subSequence(start, end).toString()) 
+ */ + // @ts-ignore + public append(csq: java.lang.CharSequence, start: number, end: number): java.io.PrintStream; + /** + * Appends the specified character to this output stream. + *

An invocation of this method of the form out.append(c) + * behaves in exactly the same way as the invocation + *

+             * out.print(c) 
+ */ + // @ts-ignore + public append(c: string): java.io.PrintStream; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.PrintWriter.d.ts b/packages/types/dist/typings/jdk/java.io.PrintWriter.d.ts new file mode 100644 index 00000000..578c58aa --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.PrintWriter.d.ts @@ -0,0 +1,357 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class PrintWriter extends java.io.Writer { + /** + * Creates a new PrintWriter, without automatic line flushing. + */ + // @ts-ignore + constructor(out: java.io.Writer) + /** + * Creates a new PrintWriter. + */ + // @ts-ignore + constructor(out: java.io.Writer, autoFlush: boolean) + /** + * Creates a new PrintWriter, without automatic line flushing, from an + * existing OutputStream. This convenience constructor creates the + * necessary intermediate OutputStreamWriter, which will convert characters + * into bytes using the default character encoding. + */ + // @ts-ignore + constructor(out: java.io.OutputStream) + /** + * Creates a new PrintWriter from an existing OutputStream. This + * convenience constructor creates the necessary intermediate + * OutputStreamWriter, which will convert characters into bytes using the + * default character encoding. + */ + // @ts-ignore + constructor(out: java.io.OutputStream, autoFlush: boolean) + /** + * Creates a new PrintWriter, without automatic line flushing, with the + * specified file name. This convenience constructor creates the necessary + * intermediate {@link java.io.OutputStreamWriter OutputStreamWriter}, + * which will encode characters using the {@linkplain + * java.nio.charset.Charset#defaultCharset() default charset} for this + * instance of the Java virtual machine. + */ + // @ts-ignore + constructor(fileName: string) + /** + * Creates a new PrintWriter, without automatic line flushing, with the + * specified file name and charset. This convenience constructor creates + * the necessary intermediate {@link java.io.OutputStreamWriter + * OutputStreamWriter}, which will encode characters using the provided + * charset. + */ + // @ts-ignore + constructor(fileName: string, csn: string) + /** + * Creates a new PrintWriter, without automatic line flushing, with the + * specified file. This convenience constructor creates the necessary + * intermediate {@link java.io.OutputStreamWriter OutputStreamWriter}, + * which will encode characters using the {@linkplain + * java.nio.charset.Charset#defaultCharset() default charset} for this + * instance of the Java virtual machine. + */ + // @ts-ignore + constructor(file: java.io.File) + /** + * Creates a new PrintWriter, without automatic line flushing, with the + * specified file and charset. This convenience constructor creates the + * necessary intermediate {@link java.io.OutputStreamWriter + * OutputStreamWriter}, which will encode characters using the provided + * charset. + */ + // @ts-ignore + constructor(file: java.io.File, csn: string) + // @ts-ignore + protected out: java.io.Writer; + /** + * Flushes the stream. + */ + // @ts-ignore + public flush(): void; + /** + * Closes the stream and releases any system resources associated + * with it. Closing a previously closed stream has no effect. + */ + // @ts-ignore + public close(): void; + /** + * Flushes the stream if it's not closed and checks its error state. + */ + // @ts-ignore + public checkError(): boolean; + /** + * Indicates that an error has occurred. + *

This method will cause subsequent invocations of {@link + * #checkError()} to return true until {@link + * #clearError()} is invoked. + */ + // @ts-ignore + protected setError(): void; + /** + * Clears the error state of this stream. + *

This method will cause subsequent invocations of {@link + * #checkError()} to return false until another write + * operation fails and invokes {@link #setError()}. + */ + // @ts-ignore + protected clearError(): void; + /** + * Writes a single character. + */ + // @ts-ignore + public write(c: number): void; + /** + * Writes A Portion of an array of characters. + */ + // @ts-ignore + public write(buf: string, off: number, len: number): void; + /** + * Writes an array of characters. This method cannot be inherited from the + * Writer class because it must suppress I/O exceptions. + */ + // @ts-ignore + public write(buf: string): void; + /** + * Writes a portion of a string. + */ + // @ts-ignore + public write(s: string, off: number, len: number): void; + /** + * Writes a string. This method cannot be inherited from the Writer class + * because it must suppress I/O exceptions. + */ + // @ts-ignore + public write(s: string): void; + /** + * Prints a boolean value. The string produced by {@link + * java.lang.String#valueOf(boolean)} is translated into bytes + * according to the platform's default character encoding, and these bytes + * are written in exactly the manner of the {@link + * #write(int)} method. + */ + // @ts-ignore + public print(b: boolean): void; + /** + * Prints a character. The character is translated into one or more bytes + * according to the platform's default character encoding, and these bytes + * are written in exactly the manner of the {@link + * #write(int)} method. + */ + // @ts-ignore + public print(c: string): void; + /** + * Prints an integer. The string produced by {@link + * java.lang.String#valueOf(int)} is translated into bytes according + * to the platform's default character encoding, and these bytes are + * written in exactly the manner of the {@link #write(int)} + * method. + */ + // @ts-ignore + public print(i: number): void; + /** + * Prints a long integer. The string produced by {@link + * java.lang.String#valueOf(long)} is translated into bytes + * according to the platform's default character encoding, and these bytes + * are written in exactly the manner of the {@link #write(int)} + * method. + */ + // @ts-ignore + public print(l: number): void; + /** + * Prints a floating-point number. The string produced by {@link + * java.lang.String#valueOf(float)} is translated into bytes + * according to the platform's default character encoding, and these bytes + * are written in exactly the manner of the {@link #write(int)} + * method. + */ + // @ts-ignore + public print(f: number): void; + /** + * Prints a double-precision floating-point number. The string produced by + * {@link java.lang.String#valueOf(double)} is translated into + * bytes according to the platform's default character encoding, and these + * bytes are written in exactly the manner of the {@link + * #write(int)} method. + */ + // @ts-ignore + public print(d: number): void; + /** + * Prints an array of characters. The characters are converted into bytes + * according to the platform's default character encoding, and these bytes + * are written in exactly the manner of the {@link #write(int)} + * method. + */ + // @ts-ignore + public print(s: string): void; + /** + * Prints a string. If the argument is null then the string + * "null" is printed. Otherwise, the string's characters are + * converted into bytes according to the platform's default character + * encoding, and these bytes are written in exactly the manner of the + * {@link #write(int)} method. + */ + // @ts-ignore + public print(s: string): void; + /** + * Prints an object. The string produced by the {@link + * java.lang.String#valueOf(Object)} method is translated into bytes + * according to the platform's default character encoding, and these bytes + * are written in exactly the manner of the {@link #write(int)} + * method. + */ + // @ts-ignore + public print(obj: java.lang.Object): void; + /** + * Terminates the current line by writing the line separator string. The + * line separator string is defined by the system property + * line.separator, and is not necessarily a single newline + * character ('\n'). + */ + // @ts-ignore + public println(): void; + /** + * Prints a boolean value and then terminates the line. This method behaves + * as though it invokes {@link #print(boolean)} and then + * {@link #println()}. + */ + // @ts-ignore + public println(x: boolean): void; + /** + * Prints a character and then terminates the line. This method behaves as + * though it invokes {@link #print(char)} and then {@link + * #println()}. + */ + // @ts-ignore + public println(x: string): void; + /** + * Prints an integer and then terminates the line. This method behaves as + * though it invokes {@link #print(int)} and then {@link + * #println()}. + */ + // @ts-ignore + public println(x: number): void; + /** + * Prints a long integer and then terminates the line. This method behaves + * as though it invokes {@link #print(long)} and then + * {@link #println()}. + */ + // @ts-ignore + public println(x: number): void; + /** + * Prints a floating-point number and then terminates the line. This method + * behaves as though it invokes {@link #print(float)} and then + * {@link #println()}. + */ + // @ts-ignore + public println(x: number): void; + /** + * Prints a double-precision floating-point number and then terminates the + * line. This method behaves as though it invokes {@link + * #print(double)} and then {@link #println()}. + */ + // @ts-ignore + public println(x: number): void; + /** + * Prints an array of characters and then terminates the line. This method + * behaves as though it invokes {@link #print(char[])} and then + * {@link #println()}. + */ + // @ts-ignore + public println(x: string): void; + /** + * Prints a String and then terminates the line. This method behaves as + * though it invokes {@link #print(String)} and then + * {@link #println()}. + */ + // @ts-ignore + public println(x: string): void; + /** + * Prints an Object and then terminates the line. This method calls + * at first String.valueOf(x) to get the printed object's string value, + * then behaves as + * though it invokes {@link #print(String)} and then + * {@link #println()}. + */ + // @ts-ignore + public println(x: java.lang.Object): void; + /** + * A convenience method to write a formatted string to this writer using + * the specified format string and arguments. If automatic flushing is + * enabled, calls to this method will flush the output buffer. + *

An invocation of this method of the form out.printf(format, + * args) behaves in exactly the same way as the invocation + *

+             * out.format(format, args) 
+ */ + // @ts-ignore + public printf(format: string, args: java.lang.Object): java.io.PrintWriter; + /** + * A convenience method to write a formatted string to this writer using + * the specified format string and arguments. If automatic flushing is + * enabled, calls to this method will flush the output buffer. + *

An invocation of this method of the form out.printf(l, format, + * args) behaves in exactly the same way as the invocation + *

+             * out.format(l, format, args) 
+ */ + // @ts-ignore + public printf(l: java.util.Locale, format: string, args: java.lang.Object): java.io.PrintWriter; + /** + * Writes a formatted string to this writer using the specified format + * string and arguments. If automatic flushing is enabled, calls to this + * method will flush the output buffer. + *

The locale always used is the one returned by {@link + * java.util.Locale#getDefault() Locale.getDefault()}, regardless of any + * previous invocations of other formatting methods on this object. + */ + // @ts-ignore + public format(format: string, args: java.lang.Object): java.io.PrintWriter; + /** + * Writes a formatted string to this writer using the specified format + * string and arguments. If automatic flushing is enabled, calls to this + * method will flush the output buffer. + */ + // @ts-ignore + public format(l: java.util.Locale, format: string, args: java.lang.Object): java.io.PrintWriter; + /** + * Appends the specified character sequence to this writer. + *

An invocation of this method of the form out.append(csq) + * behaves in exactly the same way as the invocation + *

+             * out.write(csq.toString()) 
+ *

Depending on the specification of toString for the + * character sequence csq, the entire sequence may not be + * appended. For instance, invoking the toString method of a + * character buffer will return a subsequence whose content depends upon + * the buffer's position and limit. + */ + // @ts-ignore + public append(csq: java.lang.CharSequence): java.io.PrintWriter; + /** + * Appends a subsequence of the specified character sequence to this writer. + *

An invocation of this method of the form out.append(csq, start, + * end) when csq is not null, behaves in + * exactly the same way as the invocation + *

+             * out.write(csq.subSequence(start, end).toString()) 
+ */ + // @ts-ignore + public append(csq: java.lang.CharSequence, start: number, end: number): java.io.PrintWriter; + /** + * Appends the specified character to this writer. + *

An invocation of this method of the form out.append(c) + * behaves in exactly the same way as the invocation + *

+             * out.write(c) 
+ */ + // @ts-ignore + public append(c: string): java.io.PrintWriter; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.PushbackInputStream.d.ts b/packages/types/dist/typings/jdk/java.io.PushbackInputStream.d.ts new file mode 100644 index 00000000..2e4c863f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.PushbackInputStream.d.ts @@ -0,0 +1,136 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class PushbackInputStream extends java.io.FilterInputStream { + /** + * Creates a PushbackInputStream + * with a pushback buffer of the specified size, + * and saves its argument, the input stream + * in, for later use. Initially, + * there is no pushed-back byte (the field + * pushBack is initialized to + * -1). + */ + // @ts-ignore + constructor(input: java.io.InputStream, size: number) + /** + * Creates a PushbackInputStream + * and saves its argument, the input stream + * in, for later use. Initially, + * there is no pushed-back byte (the field + * pushBack is initialized to + * -1). + */ + // @ts-ignore + constructor(input: java.io.InputStream) + // @ts-ignore + protected buf: number[]; + // @ts-ignore + protected pos: number; + /** + * Reads the next byte of data from this input stream. The value + * byte is returned as an int in the range + * 0 to 255. If no byte is available + * because the end of the stream has been reached, the value + * -1 is returned. This method blocks until input data + * is available, the end of the stream is detected, or an exception + * is thrown. + *

This method returns the most recently pushed-back byte, if there is + * one, and otherwise calls the read method of its underlying + * input stream and returns whatever value that method returns. + */ + // @ts-ignore + public read(): number; + /** + * Reads up to len bytes of data from this input stream into + * an array of bytes. This method first reads any pushed-back bytes; after + * that, if fewer than len bytes have been read then it + * reads from the underlying input stream. If len is not zero, the method + * blocks until at least 1 byte of input is available; otherwise, no + * bytes are read and 0 is returned. + */ + // @ts-ignore + public read(b: number, off: number, len: number): number; + /** + * Pushes back a byte by copying it to the front of the pushback buffer. + * After this method returns, the next byte to be read will have the value + * (byte)b. + */ + // @ts-ignore + public unread(b: number): void; + /** + * Pushes back a portion of an array of bytes by copying it to the front + * of the pushback buffer. After this method returns, the next byte to be + * read will have the value b[off], the byte after that will + * have the value b[off+1], and so forth. + */ + // @ts-ignore + public unread(b: number, off: number, len: number): void; + /** + * Pushes back an array of bytes by copying it to the front of the + * pushback buffer. After this method returns, the next byte to be read + * will have the value b[0], the byte after that will have the + * value b[1], and so forth. + */ + // @ts-ignore + public unread(b: number): void; + /** + * Returns an estimate of the number of bytes that can be read (or + * skipped over) from this input stream without blocking by the next + * invocation of a method for this input stream. The next invocation might be + * the same thread or another thread. A single read or skip of this + * many bytes will not block, but may read or skip fewer bytes. + *

The method returns the sum of the number of bytes that have been + * pushed back and the value returned by {@link + * java.io.FilterInputStream#available available}. + */ + // @ts-ignore + public available(): number; + /** + * Skips over and discards n bytes of data from this + * input stream. The skip method may, for a variety of + * reasons, end up skipping over some smaller number of bytes, + * possibly zero. If n is negative, no bytes are skipped. + *

The skip method of PushbackInputStream + * first skips over the bytes in the pushback buffer, if any. It then + * calls the skip method of the underlying input stream if + * more bytes need to be skipped. The actual number of bytes skipped + * is returned. + */ + // @ts-ignore + public skip(n: number): number; + /** + * Tests if this input stream supports the mark and + * reset methods, which it does not. + */ + // @ts-ignore + public markSupported(): boolean; + /** + * Marks the current position in this input stream. + *

The mark method of PushbackInputStream + * does nothing. + */ + // @ts-ignore + public mark(readlimit: number): void; + /** + * Repositions this stream to the position at the time the + * mark method was last called on this input stream. + *

The method reset for class + * PushbackInputStream does nothing except throw an + * IOException. + */ + // @ts-ignore + public reset(): void; + /** + * Closes this input stream and releases any system resources + * associated with the stream. + * Once the stream has been closed, further read(), unread(), + * available(), reset(), or skip() invocations will throw an IOException. + * Closing a previously closed stream has no effect. + */ + // @ts-ignore + public close(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.PushbackReader.d.ts b/packages/types/dist/typings/jdk/java.io.PushbackReader.d.ts new file mode 100644 index 00000000..ba715d71 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.PushbackReader.d.ts @@ -0,0 +1,89 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class PushbackReader extends java.io.FilterReader { + /** + * Creates a new pushback reader with a pushback buffer of the given size. + */ + // @ts-ignore + constructor(input: java.io.Reader, size: number) + /** + * Creates a new pushback reader with a one-character pushback buffer. + */ + // @ts-ignore + constructor(input: java.io.Reader) + /** + * Reads a single character. + */ + // @ts-ignore + public read(): number; + /** + * Reads characters into a portion of an array. + */ + // @ts-ignore + public read(cbuf: string, off: number, len: number): number; + /** + * Pushes back a single character by copying it to the front of the + * pushback buffer. After this method returns, the next character to be read + * will have the value (char)c. + */ + // @ts-ignore + public unread(c: number): void; + /** + * Pushes back a portion of an array of characters by copying it to the + * front of the pushback buffer. After this method returns, the next + * character to be read will have the value cbuf[off], the + * character after that will have the value cbuf[off+1], and + * so forth. + */ + // @ts-ignore + public unread(cbuf: string, off: number, len: number): void; + /** + * Pushes back an array of characters by copying it to the front of the + * pushback buffer. After this method returns, the next character to be + * read will have the value cbuf[0], the character after that + * will have the value cbuf[1], and so forth. + */ + // @ts-ignore + public unread(cbuf: string): void; + /** + * Tells whether this stream is ready to be read. + */ + // @ts-ignore + public ready(): boolean; + /** + * Marks the present position in the stream. The mark + * for class PushbackReader always throws an exception. + */ + // @ts-ignore + public mark(readAheadLimit: number): void; + /** + * Resets the stream. The reset method of + * PushbackReader always throws an exception. + */ + // @ts-ignore + public reset(): void; + /** + * Tells whether this stream supports the mark() operation, which it does + * not. + */ + // @ts-ignore + public markSupported(): boolean; + /** + * Closes the stream and releases any system resources associated with + * it. Once the stream has been closed, further read(), + * unread(), ready(), or skip() invocations will throw an IOException. + * Closing a previously closed stream has no effect. + */ + // @ts-ignore + public close(): void; + /** + * Skips characters. This method will block until some characters are + * available, an I/O error occurs, or the end of the stream is reached. + */ + // @ts-ignore + public skip(n: number): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.RandomAccessFile.d.ts b/packages/types/dist/typings/jdk/java.io.RandomAccessFile.d.ts new file mode 100644 index 00000000..0080f2f9 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.RandomAccessFile.d.ts @@ -0,0 +1,504 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class RandomAccessFile extends java.lang.Object { + /** + * Creates a random access file stream to read from, and optionally + * to write to, a file with the specified name. A new + * {@link FileDescriptor} object is created to represent the + * connection to the file. + *

The mode argument specifies the access mode with which the + * file is to be opened. The permitted values and their meanings are as + * specified for the RandomAccessFile(File,String) constructor. + *

+ * If there is a security manager, its {@code checkRead} method + * is called with the {@code name} argument + * as its argument to see if read access to the file is allowed. + * If the mode allows writing, the security manager's + * {@code checkWrite} method + * is also called with the {@code name} argument + * as its argument to see if write access to the file is allowed. + */ + // @ts-ignore + constructor(name: string, mode: string) + /** + * Creates a random access file stream to read from, and optionally to + * write to, the file specified by the {@link File} argument. A new {@link + * FileDescriptor} object is created to represent this file connection. + *

The mode argument specifies the access mode + * in which the file is to be opened. The permitted values and their + * meanings are: + * + * + * + * + * + * + * + * + * + * + *
ValueMeaning
"r" Open for reading only. Invoking any of the write + * methods of the resulting object will cause an {@link + * java.io.IOException} to be thrown.
"rw" Open for reading and writing. If the file does not already + * exist then an attempt will be made to create it.
"rws" Open for reading and writing, as with "rw", and also + * require that every update to the file's content or metadata be + * written synchronously to the underlying storage device.
"rwd"   Open for reading and writing, as with "rw", and also + * require that every update to the file's content be written + * synchronously to the underlying storage device.
+ * The "rws" and "rwd" modes work much like the {@link + * java.nio.channels.FileChannel#force(boolean) force(boolean)} method of + * the {@link java.nio.channels.FileChannel} class, passing arguments of + * true and false, respectively, except that they always + * apply to every I/O operation and are therefore often more efficient. If + * the file resides on a local storage device then when an invocation of a + * method of this class returns it is guaranteed that all changes made to + * the file by that invocation will have been written to that device. This + * is useful for ensuring that critical information is not lost in the + * event of a system crash. If the file does not reside on a local device + * then no such guarantee is made. + *

The "rwd" mode can be used to reduce the number of I/O + * operations performed. Using "rwd" only requires updates to the + * file's content to be written to storage; using "rws" requires + * updates to both the file's content and its metadata to be written, which + * generally requires at least one more low-level I/O operation. + *

If there is a security manager, its {@code checkRead} method is + * called with the pathname of the {@code file} argument as its + * argument to see if read access to the file is allowed. If the mode + * allows writing, the security manager's {@code checkWrite} method is + * also called with the path argument to see if write access to the file is + * allowed. + */ + // @ts-ignore + constructor(file: java.io.File, mode: string) + /** + * Returns the opaque file descriptor object associated with this + * stream. + */ + // @ts-ignore + public getFD(): java.io.FileDescriptor; + /** + * Returns the unique {@link java.nio.channels.FileChannel FileChannel} + * object associated with this file. + *

The {@link java.nio.channels.FileChannel#position() + * position} of the returned channel will always be equal to + * this object's file-pointer offset as returned by the {@link + * #getFilePointer getFilePointer} method. Changing this object's + * file-pointer offset, whether explicitly or by reading or writing bytes, + * will change the position of the channel, and vice versa. Changing the + * file's length via this object will change the length seen via the file + * channel, and vice versa. + */ + // @ts-ignore + public getChannel(): java.nio.channels.FileChannel; + /** + * Reads a byte of data from this file. The byte is returned as an + * integer in the range 0 to 255 ({@code 0x00-0x0ff}). This + * method blocks if no input is yet available. + *

+ * Although {@code RandomAccessFile} is not a subclass of + * {@code InputStream}, this method behaves in exactly the same + * way as the {@link InputStream#read()} method of + * {@code InputStream}. + */ + // @ts-ignore + public read(): number; + /** + * Reads up to {@code len} bytes of data from this file into an + * array of bytes. This method blocks until at least one byte of input + * is available. + *

+ * Although {@code RandomAccessFile} is not a subclass of + * {@code InputStream}, this method behaves in exactly the + * same way as the {@link InputStream#read(byte[], int, int)} method of + * {@code InputStream}. + */ + // @ts-ignore + public read(b: number, off: number, len: number): number; + /** + * Reads up to {@code b.length} bytes of data from this file + * into an array of bytes. This method blocks until at least one byte + * of input is available. + *

+ * Although {@code RandomAccessFile} is not a subclass of + * {@code InputStream}, this method behaves in exactly the + * same way as the {@link InputStream#read(byte[])} method of + * {@code InputStream}. + */ + // @ts-ignore + public read(b: number): number; + /** + * Reads {@code b.length} bytes from this file into the byte + * array, starting at the current file pointer. This method reads + * repeatedly from the file until the requested number of bytes are + * read. This method blocks until the requested number of bytes are + * read, the end of the stream is detected, or an exception is thrown. + */ + // @ts-ignore + public readFully(b: number): void; + /** + * Reads exactly {@code len} bytes from this file into the byte + * array, starting at the current file pointer. This method reads + * repeatedly from the file until the requested number of bytes are + * read. This method blocks until the requested number of bytes are + * read, the end of the stream is detected, or an exception is thrown. + */ + // @ts-ignore + public readFully(b: number, off: number, len: number): void; + /** + * Attempts to skip over {@code n} bytes of input discarding the + * skipped bytes. + *

+ * This method may skip over some smaller number of bytes, possibly zero. + * This may result from any of a number of conditions; reaching end of + * file before {@code n} bytes have been skipped is only one + * possibility. This method never throws an {@code EOFException}. + * The actual number of bytes skipped is returned. If {@code n} + * is negative, no bytes are skipped. + */ + // @ts-ignore + public skipBytes(n: number): number; + /** + * Writes the specified byte to this file. The write starts at + * the current file pointer. + */ + // @ts-ignore + public write(b: number): void; + /** + * Writes {@code b.length} bytes from the specified byte array + * to this file, starting at the current file pointer. + */ + // @ts-ignore + public write(b: number): void; + /** + * Writes {@code len} bytes from the specified byte array + * starting at offset {@code off} to this file. + */ + // @ts-ignore + public write(b: number, off: number, len: number): void; + /** + * Returns the current offset in this file. + */ + // @ts-ignore + public getFilePointer(): number; + /** + * Sets the file-pointer offset, measured from the beginning of this + * file, at which the next read or write occurs. The offset may be + * set beyond the end of the file. Setting the offset beyond the end + * of the file does not change the file length. The file length will + * change only by writing after the offset has been set beyond the end + * of the file. + */ + // @ts-ignore + public seek(pos: number): void; + /** + * Returns the length of this file. + */ + // @ts-ignore + public length(): number; + /** + * Sets the length of this file. + *

If the present length of the file as returned by the + * {@code length} method is greater than the {@code newLength} + * argument then the file will be truncated. In this case, if the file + * offset as returned by the {@code getFilePointer} method is greater + * than {@code newLength} then after this method returns the offset + * will be equal to {@code newLength}. + *

If the present length of the file as returned by the + * {@code length} method is smaller than the {@code newLength} + * argument then the file will be extended. In this case, the contents of + * the extended portion of the file are not defined. + */ + // @ts-ignore + public setLength(newLength: number): void; + /** + * Closes this random access file stream and releases any system + * resources associated with the stream. A closed random access + * file cannot perform input or output operations and cannot be + * reopened. + *

If this file has an associated channel then the channel is closed + * as well. + */ + // @ts-ignore + public close(): void; + /** + * Reads a {@code boolean} from this file. This method reads a + * single byte from the file, starting at the current file pointer. + * A value of {@code 0} represents + * {@code false}. Any other value represents {@code true}. + * This method blocks until the byte is read, the end of the stream + * is detected, or an exception is thrown. + */ + // @ts-ignore + public readBoolean(): boolean; + /** + * Reads a signed eight-bit value from this file. This method reads a + * byte from the file, starting from the current file pointer. + * If the byte read is {@code b}, where + * 0 <= b <= 255, + * then the result is: + *

+             * (byte)(b)
+             * 
+ *

+ * This method blocks until the byte is read, the end of the stream + * is detected, or an exception is thrown. + */ + // @ts-ignore + public readByte(): number; + /** + * Reads an unsigned eight-bit number from this file. This method reads + * a byte from this file, starting at the current file pointer, + * and returns that byte. + *

+ * This method blocks until the byte is read, the end of the stream + * is detected, or an exception is thrown. + */ + // @ts-ignore + public readUnsignedByte(): number; + /** + * Reads a signed 16-bit number from this file. The method reads two + * bytes from this file, starting at the current file pointer. + * If the two bytes read, in order, are + * {@code b1} and {@code b2}, where each of the two values is + * between {@code 0} and {@code 255}, inclusive, then the + * result is equal to: + *

+             * (short)((b1 << 8) | b2)
+             * 
+ *

+ * This method blocks until the two bytes are read, the end of the + * stream is detected, or an exception is thrown. + */ + // @ts-ignore + public readShort(): number; + /** + * Reads an unsigned 16-bit number from this file. This method reads + * two bytes from the file, starting at the current file pointer. + * If the bytes read, in order, are + * {@code b1} and {@code b2}, where + * 0 <= b1, b2 <= 255, + * then the result is equal to: + *

+             * (b1 << 8) | b2
+             * 
+ *

+ * This method blocks until the two bytes are read, the end of the + * stream is detected, or an exception is thrown. + */ + // @ts-ignore + public readUnsignedShort(): number; + /** + * Reads a character from this file. This method reads two + * bytes from the file, starting at the current file pointer. + * If the bytes read, in order, are + * {@code b1} and {@code b2}, where + * 0 <= b1, b2 <= 255, + * then the result is equal to: + *

+             * (char)((b1 << 8) | b2)
+             * 
+ *

+ * This method blocks until the two bytes are read, the end of the + * stream is detected, or an exception is thrown. + */ + // @ts-ignore + public readChar(): string; + /** + * Reads a signed 32-bit integer from this file. This method reads 4 + * bytes from the file, starting at the current file pointer. + * If the bytes read, in order, are {@code b1}, + * {@code b2}, {@code b3}, and {@code b4}, where + * 0 <= b1, b2, b3, b4 <= 255, + * then the result is equal to: + *

+             * (b1 << 24) | (b2 << 16) + (b3 << 8) + b4
+             * 
+ *

+ * This method blocks until the four bytes are read, the end of the + * stream is detected, or an exception is thrown. + */ + // @ts-ignore + public readInt(): number; + /** + * Reads a signed 64-bit integer from this file. This method reads eight + * bytes from the file, starting at the current file pointer. + * If the bytes read, in order, are + * {@code b1}, {@code b2}, {@code b3}, + * {@code b4}, {@code b5}, {@code b6}, + * {@code b7}, and {@code b8,} where: + *

+             * 0 <= b1, b2, b3, b4, b5, b6, b7, b8 <=255,
+             * 
+ *

+ * then the result is equal to: + *

+             * ((long)b1 << 56) + ((long)b2 << 48)
+             * + ((long)b3 << 40) + ((long)b4 << 32)
+             * + ((long)b5 << 24) + ((long)b6 << 16)
+             * + ((long)b7 << 8) + b8
+             * 
+ *

+ * This method blocks until the eight bytes are read, the end of the + * stream is detected, or an exception is thrown. + */ + // @ts-ignore + public readLong(): number; + /** + * Reads a {@code float} from this file. This method reads an + * {@code int} value, starting at the current file pointer, + * as if by the {@code readInt} method + * and then converts that {@code int} to a {@code float} + * using the {@code intBitsToFloat} method in class + * {@code Float}. + *

+ * This method blocks until the four bytes are read, the end of the + * stream is detected, or an exception is thrown. + */ + // @ts-ignore + public readFloat(): number; + /** + * Reads a {@code double} from this file. This method reads a + * {@code long} value, starting at the current file pointer, + * as if by the {@code readLong} method + * and then converts that {@code long} to a {@code double} + * using the {@code longBitsToDouble} method in + * class {@code Double}. + *

+ * This method blocks until the eight bytes are read, the end of the + * stream is detected, or an exception is thrown. + */ + // @ts-ignore + public readDouble(): number; + /** + * Reads the next line of text from this file. This method successively + * reads bytes from the file, starting at the current file pointer, + * until it reaches a line terminator or the end + * of the file. Each byte is converted into a character by taking the + * byte's value for the lower eight bits of the character and setting the + * high eight bits of the character to zero. This method does not, + * therefore, support the full Unicode character set. + *

A line of text is terminated by a carriage-return character + * ({@code '\r'}), a newline character ({@code '\n'}), a + * carriage-return character immediately followed by a newline character, + * or the end of the file. Line-terminating characters are discarded and + * are not included as part of the string returned. + *

This method blocks until a newline character is read, a carriage + * return and the byte following it are read (to see if it is a newline), + * the end of the file is reached, or an exception is thrown. + */ + // @ts-ignore + public readLine(): string; + /** + * Reads in a string from this file. The string has been encoded + * using a + * modified UTF-8 + * format. + *

+ * The first two bytes are read, starting from the current file + * pointer, as if by + * {@code readUnsignedShort}. This value gives the number of + * following bytes that are in the encoded string, not + * the length of the resulting string. The following bytes are then + * interpreted as bytes encoding characters in the modified UTF-8 format + * and are converted into characters. + *

+ * This method blocks until all the bytes are read, the end of the + * stream is detected, or an exception is thrown. + */ + // @ts-ignore + public readUTF(): string; + /** + * Writes a {@code boolean} to the file as a one-byte value. The + * value {@code true} is written out as the value + * {@code (byte)1}; the value {@code false} is written out + * as the value {@code (byte)0}. The write starts at + * the current position of the file pointer. + */ + // @ts-ignore + public writeBoolean(v: boolean): void; + /** + * Writes a {@code byte} to the file as a one-byte value. The + * write starts at the current position of the file pointer. + */ + // @ts-ignore + public writeByte(v: number): void; + /** + * Writes a {@code short} to the file as two bytes, high byte first. + * The write starts at the current position of the file pointer. + */ + // @ts-ignore + public writeShort(v: number): void; + /** + * Writes a {@code char} to the file as a two-byte value, high + * byte first. The write starts at the current position of the + * file pointer. + */ + // @ts-ignore + public writeChar(v: number): void; + /** + * Writes an {@code int} to the file as four bytes, high byte first. + * The write starts at the current position of the file pointer. + */ + // @ts-ignore + public writeInt(v: number): void; + /** + * Writes a {@code long} to the file as eight bytes, high byte first. + * The write starts at the current position of the file pointer. + */ + // @ts-ignore + public writeLong(v: number): void; + /** + * Converts the float argument to an {@code int} using the + * {@code floatToIntBits} method in class {@code Float}, + * and then writes that {@code int} value to the file as a + * four-byte quantity, high byte first. The write starts at the + * current position of the file pointer. + */ + // @ts-ignore + public writeFloat(v: number): void; + /** + * Converts the double argument to a {@code long} using the + * {@code doubleToLongBits} method in class {@code Double}, + * and then writes that {@code long} value to the file as an + * eight-byte quantity, high byte first. The write starts at the current + * position of the file pointer. + */ + // @ts-ignore + public writeDouble(v: number): void; + /** + * Writes the string to the file as a sequence of bytes. Each + * character in the string is written out, in sequence, by discarding + * its high eight bits. The write starts at the current position of + * the file pointer. + */ + // @ts-ignore + public writeBytes(s: string): void; + /** + * Writes a string to the file as a sequence of characters. Each + * character is written to the data output stream as if by the + * {@code writeChar} method. The write starts at the current + * position of the file pointer. + */ + // @ts-ignore + public writeChars(s: string): void; + /** + * Writes a string to the file using + * modified UTF-8 + * encoding in a machine-independent manner. + *

+ * First, two bytes are written to the file, starting at the + * current file pointer, as if by the + * {@code writeShort} method giving the number of bytes to + * follow. This value is the number of bytes actually written out, + * not the length of the string. Following the length, each character + * of the string is output, in sequence, using the modified UTF-8 encoding + * for each character. + */ + // @ts-ignore + public writeUTF(str: string): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.Reader.d.ts b/packages/types/dist/typings/jdk/java.io.Reader.d.ts new file mode 100644 index 00000000..9cd6ec83 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.Reader.d.ts @@ -0,0 +1,87 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + abstract class Reader extends java.lang.Object { + /** + * Creates a new character-stream reader whose critical sections will + * synchronize on the reader itself. + */ + // @ts-ignore + constructor() + /** + * Creates a new character-stream reader whose critical sections will + * synchronize on the given object. + */ + // @ts-ignore + constructor(lock: java.lang.Object) + // @ts-ignore + protected lock: java.lang.Object; + /** + * Attempts to read characters into the specified character buffer. + * The buffer is used as a repository of characters as-is: the only + * changes made are the results of a put operation. No flipping or + * rewinding of the buffer is performed. + */ + // @ts-ignore + public read(target: java.nio.CharBuffer): number; + /** + * Reads a single character. This method will block until a character is + * available, an I/O error occurs, or the end of the stream is reached. + *

Subclasses that intend to support efficient single-character input + * should override this method. + */ + // @ts-ignore + public read(): number; + /** + * Reads characters into an array. This method will block until some input + * is available, an I/O error occurs, or the end of the stream is reached. + */ + // @ts-ignore + public read(cbuf: string): number; + /** + * Skips characters. This method will block until some characters are + * available, an I/O error occurs, or the end of the stream is reached. + */ + // @ts-ignore + public skip(n: number): number; + /** + * Tells whether this stream is ready to be read. + */ + // @ts-ignore + public ready(): boolean; + /** + * Tells whether this stream supports the mark() operation. The default + * implementation always returns false. Subclasses should override this + * method. + */ + // @ts-ignore + public markSupported(): boolean; + /** + * Marks the present position in the stream. Subsequent calls to reset() + * will attempt to reposition the stream to this point. Not all + * character-input streams support the mark() operation. + */ + // @ts-ignore + public mark(readAheadLimit: number): void; + /** + * Resets the stream. If the stream has been marked, then attempt to + * reposition it at the mark. If the stream has not been marked, then + * attempt to reset it in some way appropriate to the particular stream, + * for example by repositioning it to its starting point. Not all + * character-input streams support the reset() operation, and some support + * reset() without supporting mark(). + */ + // @ts-ignore + public reset(): void; + /** + * Closes the stream and releases any system resources associated with + * it. Once the stream has been closed, further read(), ready(), + * mark(), reset(), or skip() invocations will throw an IOException. + * Closing a previously closed stream has no effect. + */ + // @ts-ignore + public abstract close(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.SequenceInputStream.d.ts b/packages/types/dist/typings/jdk/java.io.SequenceInputStream.d.ts new file mode 100644 index 00000000..3c9be729 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.SequenceInputStream.d.ts @@ -0,0 +1,90 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class SequenceInputStream extends java.io.InputStream { + /** + * Initializes a newly created SequenceInputStream + * by remembering the argument, which must + * be an Enumeration that produces + * objects whose run-time type is InputStream. + * The input streams that are produced by + * the enumeration will be read, in order, + * to provide the bytes to be read from this + * SequenceInputStream. After + * each input stream from the enumeration + * is exhausted, it is closed by calling its + * close method. + */ + // @ts-ignore + constructor(e: java.util.Enumeration) + /** + * Initializes a newly + * created SequenceInputStream + * by remembering the two arguments, which + * will be read in order, first s1 + * and then s2, to provide the + * bytes to be read from this SequenceInputStream. + */ + // @ts-ignore + constructor(s1: java.io.InputStream, s2: java.io.InputStream) + /** + * Returns an estimate of the number of bytes that can be read (or + * skipped over) from the current underlying input stream without + * blocking by the next invocation of a method for the current + * underlying input stream. The next invocation might be + * the same thread or another thread. A single read or skip of this + * many bytes will not block, but may read or skip fewer bytes. + *

+ * This method simply calls {@code available} of the current underlying + * input stream and returns the result. + */ + // @ts-ignore + public available(): number; + /** + * Reads the next byte of data from this input stream. The byte is + * returned as an int in the range 0 to + * 255. If no byte is available because the end of the + * stream has been reached, the value -1 is returned. + * This method blocks until input data is available, the end of the + * stream is detected, or an exception is thrown. + *

+ * This method + * tries to read one character from the current substream. If it + * reaches the end of the stream, it calls the close + * method of the current substream and begins reading from the next + * substream. + */ + // @ts-ignore + public read(): number; + /** + * Reads up to len bytes of data from this input stream + * into an array of bytes. If len is not zero, the method + * blocks until at least 1 byte of input is available; otherwise, no + * bytes are read and 0 is returned. + *

+ * The read method of SequenceInputStream + * tries to read the data from the current substream. If it fails to + * read any characters because the substream has reached the end of + * the stream, it calls the close method of the current + * substream and begins reading from the next substream. + */ + // @ts-ignore + public read(b: number, off: number, len: number): number; + /** + * Closes this input stream and releases any system resources + * associated with the stream. + * A closed SequenceInputStream + * cannot perform input operations and cannot + * be reopened. + *

+ * If this stream was created + * from an enumeration, all remaining elements + * are requested from the enumeration and closed + * before the close method returns. + */ + // @ts-ignore + public close(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.Serializable.d.ts b/packages/types/dist/typings/jdk/java.io.Serializable.d.ts new file mode 100644 index 00000000..ac252c85 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.Serializable.d.ts @@ -0,0 +1,8 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + interface Serializable { + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.SerializablePermission.d.ts b/packages/types/dist/typings/jdk/java.io.SerializablePermission.d.ts new file mode 100644 index 00000000..c66ddbb1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.SerializablePermission.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class SerializablePermission extends java.security.BasicPermission { + /** + * Creates a new SerializablePermission with the specified name. + * The name is the symbolic name of the SerializablePermission, such as + * "enableSubstitution", etc. + */ + // @ts-ignore + constructor(name: string) + /** + * Creates a new SerializablePermission object with the specified name. + * The name is the symbolic name of the SerializablePermission, and the + * actions String is currently unused and should be null. + */ + // @ts-ignore + constructor(name: string, actions: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.StreamCorruptedException.d.ts b/packages/types/dist/typings/jdk/java.io.StreamCorruptedException.d.ts new file mode 100644 index 00000000..a288aa20 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.StreamCorruptedException.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class StreamCorruptedException extends java.io.ObjectStreamException { + /** + * Create a StreamCorruptedException and list a reason why thrown. + */ + // @ts-ignore + constructor(reason: string) + /** + * Create a StreamCorruptedException and list no reason why thrown. + */ + // @ts-ignore + constructor() + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.StreamTokenizer.d.ts b/packages/types/dist/typings/jdk/java.io.StreamTokenizer.d.ts new file mode 100644 index 00000000..f3808d6f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.StreamTokenizer.d.ts @@ -0,0 +1,233 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class StreamTokenizer extends java.lang.Object { + /** + * Creates a stream tokenizer that parses the specified input + * stream. The stream tokenizer is initialized to the following + * default state: + *

    + *
  • All byte values {@code 'A'} through {@code 'Z'}, + * {@code 'a'} through {@code 'z'}, and + * {@code '\u00A0'} through {@code '\u00FF'} are + * considered to be alphabetic. + *
  • All byte values {@code '\u0000'} through + * {@code '\u0020'} are considered to be white space. + *
  • {@code '/'} is a comment character. + *
  • Single quote {@code '\''} and double quote {@code '"'} + * are string quote characters. + *
  • Numbers are parsed. + *
  • Ends of lines are treated as white space, not as separate tokens. + *
  • C-style and C++-style comments are not recognized. + *
+ */ + // @ts-ignore + constructor(is: java.io.InputStream) + /** + * Create a tokenizer that parses the given character stream. + */ + // @ts-ignore + constructor(r: java.io.Reader) + // @ts-ignore + public ttype: number; + // @ts-ignore + public static TT_EOF: number; + // @ts-ignore + public static TT_EOL: number; + // @ts-ignore + public static TT_NUMBER: number; + // @ts-ignore + public static TT_WORD: number; + // @ts-ignore + public sval: string; + // @ts-ignore + public nval: number; + /** + * Resets this tokenizer's syntax table so that all characters are + * "ordinary." See the {@code ordinaryChar} method + * for more information on a character being ordinary. + */ + // @ts-ignore + public resetSyntax(): void; + /** + * Specifies that all characters c in the range + * low <= c <= high + * are word constituents. A word token consists of a word constituent + * followed by zero or more word constituents or number constituents. + */ + // @ts-ignore + public wordChars(low: number, hi: number): void; + /** + * Specifies that all characters c in the range + * low <= c <= high + * are white space characters. White space characters serve only to + * separate tokens in the input stream. + *

Any other attribute settings for the characters in the specified + * range are cleared. + */ + // @ts-ignore + public whitespaceChars(low: number, hi: number): void; + /** + * Specifies that all characters c in the range + * low <= c <= high + * are "ordinary" in this tokenizer. See the + * {@code ordinaryChar} method for more information on a + * character being ordinary. + */ + // @ts-ignore + public ordinaryChars(low: number, hi: number): void; + /** + * Specifies that the character argument is "ordinary" + * in this tokenizer. It removes any special significance the + * character has as a comment character, word component, string + * delimiter, white space, or number character. When such a character + * is encountered by the parser, the parser treats it as a + * single-character token and sets {@code ttype} field to the + * character value. + *

Making a line terminator character "ordinary" may interfere + * with the ability of a {@code StreamTokenizer} to count + * lines. The {@code lineno} method may no longer reflect + * the presence of such terminator characters in its line count. + */ + // @ts-ignore + public ordinaryChar(ch: number): void; + /** + * Specified that the character argument starts a single-line + * comment. All characters from the comment character to the end of + * the line are ignored by this stream tokenizer. + *

Any other attribute settings for the specified character are cleared. + */ + // @ts-ignore + public commentChar(ch: number): void; + /** + * Specifies that matching pairs of this character delimit string + * constants in this tokenizer. + *

+ * When the {@code nextToken} method encounters a string + * constant, the {@code ttype} field is set to the string + * delimiter and the {@code sval} field is set to the body of + * the string. + *

+ * If a string quote character is encountered, then a string is + * recognized, consisting of all characters after (but not including) + * the string quote character, up to (but not including) the next + * occurrence of that same string quote character, or a line + * terminator, or end of file. The usual escape sequences such as + * {@code "\n"} and {@code "\t"} are recognized and + * converted to single characters as the string is parsed. + *

Any other attribute settings for the specified character are cleared. + */ + // @ts-ignore + public quoteChar(ch: number): void; + /** + * Specifies that numbers should be parsed by this tokenizer. The + * syntax table of this tokenizer is modified so that each of the twelve + * characters: + *

+             * 0 1 2 3 4 5 6 7 8 9 . -
+             * 
+ *

+ * has the "numeric" attribute. + *

+ * When the parser encounters a word token that has the format of a + * double precision floating-point number, it treats the token as a + * number rather than a word, by setting the {@code ttype} + * field to the value {@code TT_NUMBER} and putting the numeric + * value of the token into the {@code nval} field. + */ + // @ts-ignore + public parseNumbers(): void; + /** + * Determines whether or not ends of line are treated as tokens. + * If the flag argument is true, this tokenizer treats end of lines + * as tokens; the {@code nextToken} method returns + * {@code TT_EOL} and also sets the {@code ttype} field to + * this value when an end of line is read. + *

+ * A line is a sequence of characters ending with either a + * carriage-return character ({@code '\r'}) or a newline + * character ({@code '\n'}). In addition, a carriage-return + * character followed immediately by a newline character is treated + * as a single end-of-line token. + *

+ * If the {@code flag} is false, end-of-line characters are + * treated as white space and serve only to separate tokens. + */ + // @ts-ignore + public eolIsSignificant(flag: boolean): void; + /** + * Determines whether or not the tokenizer recognizes C-style comments. + * If the flag argument is {@code true}, this stream tokenizer + * recognizes C-style comments. All text between successive + * occurrences of {@code /*} and */ are discarded. + *

+ * If the flag argument is {@code false}, then C-style comments + * are not treated specially. + */ + // @ts-ignore + public slashStarComments(flag: boolean): void; + /** + * Determines whether or not the tokenizer recognizes C++-style comments. + * If the flag argument is {@code true}, this stream tokenizer + * recognizes C++-style comments. Any occurrence of two consecutive + * slash characters ({@code '/'}) is treated as the beginning of + * a comment that extends to the end of the line. + *

+ * If the flag argument is {@code false}, then C++-style + * comments are not treated specially. + */ + // @ts-ignore + public slashSlashComments(flag: boolean): void; + /** + * Determines whether or not word token are automatically lowercased. + * If the flag argument is {@code true}, then the value in the + * {@code sval} field is lowercased whenever a word token is + * returned (the {@code ttype} field has the + * value {@code TT_WORD} by the {@code nextToken} method + * of this tokenizer. + *

+ * If the flag argument is {@code false}, then the + * {@code sval} field is not modified. + */ + // @ts-ignore + public lowerCaseMode(fl: boolean): void; + /** + * Parses the next token from the input stream of this tokenizer. + * The type of the next token is returned in the {@code ttype} + * field. Additional information about the token may be in the + * {@code nval} field or the {@code sval} field of this + * tokenizer. + *

+ * Typical clients of this + * class first set up the syntax tables and then sit in a loop + * calling nextToken to parse successive tokens until TT_EOF + * is returned. + */ + // @ts-ignore + public nextToken(): number; + /** + * Causes the next call to the {@code nextToken} method of this + * tokenizer to return the current value in the {@code ttype} + * field, and not to modify the value in the {@code nval} or + * {@code sval} field. + */ + // @ts-ignore + public pushBack(): void; + /** + * Return the current line number. + */ + // @ts-ignore + public lineno(): number; + /** + * Returns the string representation of the current stream token and + * the line number it occurs on. + *

The precise string returned is unspecified, although the following + * example can be considered typical: + *

Token['a'], line 10
+ */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.StringBufferInputStream.d.ts b/packages/types/dist/typings/jdk/java.io.StringBufferInputStream.d.ts new file mode 100644 index 00000000..55fa2766 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.StringBufferInputStream.d.ts @@ -0,0 +1,61 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class StringBufferInputStream extends java.io.InputStream { + /** + * Creates a string input stream to read data from the specified string. + */ + // @ts-ignore + constructor(s: string) + // @ts-ignore + protected buffer: string; + // @ts-ignore + protected pos: number; + // @ts-ignore + protected count: number; + /** + * Reads the next byte of data from this input stream. The value + * byte is returned as an int in the range + * 0 to 255. If no byte is available + * because the end of the stream has been reached, the value + * -1 is returned. + *

+ * The read method of + * StringBufferInputStream cannot block. It returns the + * low eight bits of the next character in this input stream's buffer. + */ + // @ts-ignore + public read(): number; + /** + * Reads up to len bytes of data from this input stream + * into an array of bytes. + *

+ * The read method of + * StringBufferInputStream cannot block. It copies the + * low eight bits from the characters in this input stream's buffer into + * the byte array argument. + */ + // @ts-ignore + public read(b: number, off: number, len: number): number; + /** + * Skips n bytes of input from this input stream. Fewer + * bytes might be skipped if the end of the input stream is reached. + */ + // @ts-ignore + public skip(n: number): number; + /** + * Returns the number of bytes that can be read from the input + * stream without blocking. + */ + // @ts-ignore + public available(): number; + /** + * Resets the input stream to begin reading from the first character + * of this input stream's underlying buffer. + */ + // @ts-ignore + public reset(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.StringReader.d.ts b/packages/types/dist/typings/jdk/java.io.StringReader.d.ts new file mode 100644 index 00000000..82d93a9e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.StringReader.d.ts @@ -0,0 +1,67 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class StringReader extends java.io.Reader { + /** + * Creates a new string reader. + */ + // @ts-ignore + constructor(s: string) + /** + * Reads a single character. + */ + // @ts-ignore + public read(): number; + /** + * Reads characters into a portion of an array. + */ + // @ts-ignore + public read(cbuf: string, off: number, len: number): number; + /** + * Skips the specified number of characters in the stream. Returns + * the number of characters that were skipped. + *

The ns parameter may be negative, even though the + * skip method of the {@link Reader} superclass throws + * an exception in this case. Negative values of ns cause the + * stream to skip backwards. Negative return values indicate a skip + * backwards. It is not possible to skip backwards past the beginning of + * the string. + *

If the entire string has been read or skipped, then this method has + * no effect and always returns 0. + */ + // @ts-ignore + public skip(ns: number): number; + /** + * Tells whether this stream is ready to be read. + */ + // @ts-ignore + public ready(): boolean; + /** + * Tells whether this stream supports the mark() operation, which it does. + */ + // @ts-ignore + public markSupported(): boolean; + /** + * Marks the present position in the stream. Subsequent calls to reset() + * will reposition the stream to this point. + */ + // @ts-ignore + public mark(readAheadLimit: number): void; + /** + * Resets the stream to the most recent mark, or to the beginning of the + * string if it has never been marked. + */ + // @ts-ignore + public reset(): void; + /** + * Closes the stream and releases any system resources associated with + * it. Once the stream has been closed, further read(), + * ready(), mark(), or reset() invocations will throw an IOException. + * Closing a previously closed stream has no effect. + */ + // @ts-ignore + public close(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.StringWriter.d.ts b/packages/types/dist/typings/jdk/java.io.StringWriter.d.ts new file mode 100644 index 00000000..0b82ae81 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.StringWriter.d.ts @@ -0,0 +1,95 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class StringWriter extends java.io.Writer { + /** + * Create a new string writer using the default initial string-buffer + * size. + */ + // @ts-ignore + constructor() + /** + * Create a new string writer using the specified initial string-buffer + * size. + */ + // @ts-ignore + constructor(initialSize: number) + /** + * Write a single character. + */ + // @ts-ignore + public write(c: number): void; + /** + * Write a portion of an array of characters. + */ + // @ts-ignore + public write(cbuf: string, off: number, len: number): void; + /** + * Write a string. + */ + // @ts-ignore + public write(str: string): void; + /** + * Write a portion of a string. + */ + // @ts-ignore + public write(str: string, off: number, len: number): void; + /** + * Appends the specified character sequence to this writer. + *

An invocation of this method of the form out.append(csq) + * behaves in exactly the same way as the invocation + *

+             * out.write(csq.toString()) 
+ *

Depending on the specification of toString for the + * character sequence csq, the entire sequence may not be + * appended. For instance, invoking the toString method of a + * character buffer will return a subsequence whose content depends upon + * the buffer's position and limit. + */ + // @ts-ignore + public append(csq: java.lang.CharSequence): java.io.StringWriter; + /** + * Appends a subsequence of the specified character sequence to this writer. + *

An invocation of this method of the form out.append(csq, start, + * end) when csq is not null, behaves in + * exactly the same way as the invocation + *

+             * out.write(csq.subSequence(start, end).toString()) 
+ */ + // @ts-ignore + public append(csq: java.lang.CharSequence, start: number, end: number): java.io.StringWriter; + /** + * Appends the specified character to this writer. + *

An invocation of this method of the form out.append(c) + * behaves in exactly the same way as the invocation + *

+             * out.write(c) 
+ */ + // @ts-ignore + public append(c: string): java.io.StringWriter; + /** + * Return the buffer's current value as a string. + */ + // @ts-ignore + public toString(): string; + /** + * Return the string buffer itself. + */ + // @ts-ignore + public getBuffer(): java.lang.StringBuffer; + /** + * Flush the stream. + */ + // @ts-ignore + public flush(): void; + /** + * Closing a StringWriter has no effect. The methods in this + * class can be called after the stream has been closed without generating + * an IOException. + */ + // @ts-ignore + public close(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.SyncFailedException.d.ts b/packages/types/dist/typings/jdk/java.io.SyncFailedException.d.ts new file mode 100644 index 00000000..bcea6fc1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.SyncFailedException.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class SyncFailedException extends java.io.IOException { + /** + * Constructs an SyncFailedException with a detail message. + * A detail message is a String that describes this particular exception. + */ + // @ts-ignore + constructor(desc: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.UTFDataFormatException.d.ts b/packages/types/dist/typings/jdk/java.io.UTFDataFormatException.d.ts new file mode 100644 index 00000000..87bcb019 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.UTFDataFormatException.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class UTFDataFormatException extends java.io.IOException { + /** + * Constructs a UTFDataFormatException with + * null as its error detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs a UTFDataFormatException with the + * specified detail message. The string s can be + * retrieved later by the + * {@link java.lang.Throwable#getMessage} + * method of class java.lang.Throwable. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.UncheckedIOException.d.ts b/packages/types/dist/typings/jdk/java.io.UncheckedIOException.d.ts new file mode 100644 index 00000000..319b0e58 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.UncheckedIOException.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class UncheckedIOException extends java.lang.RuntimeException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor(message: string, cause: java.io.IOException) + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor(cause: java.io.IOException) + /** + * Returns the cause of this exception. + */ + // @ts-ignore + public getCause(): java.io.IOException; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.UnsupportedEncodingException.d.ts b/packages/types/dist/typings/jdk/java.io.UnsupportedEncodingException.d.ts new file mode 100644 index 00000000..672aa29a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.UnsupportedEncodingException.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class UnsupportedEncodingException extends java.io.IOException { + /** + * Constructs an UnsupportedEncodingException without a detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs an UnsupportedEncodingException with a detail message. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.WriteAbortedException.d.ts b/packages/types/dist/typings/jdk/java.io.WriteAbortedException.d.ts new file mode 100644 index 00000000..e7c7d1af --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.WriteAbortedException.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + class WriteAbortedException extends java.io.ObjectStreamException { + /** + * Constructs a WriteAbortedException with a string describing + * the exception and the exception causing the abort. + */ + // @ts-ignore + constructor(s: string, ex: java.lang.Exception) + // @ts-ignore + public detail: java.lang.Exception; + /** + * Produce the message and include the message from the nested + * exception, if there is one. + */ + // @ts-ignore + public getMessage(): string; + /** + * Returns the exception that terminated the operation (the cause). + */ + // @ts-ignore + public getCause(): java.lang.Throwable; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.io.Writer.d.ts b/packages/types/dist/typings/jdk/java.io.Writer.d.ts new file mode 100644 index 00000000..1f49d2b6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.io.Writer.d.ts @@ -0,0 +1,101 @@ +// @ts-nocheck +declare namespace java { + namespace io { + // @ts-ignore + abstract class Writer extends java.lang.Object { + /** + * Creates a new character-stream writer whose critical sections will + * synchronize on the writer itself. + */ + // @ts-ignore + constructor() + /** + * Creates a new character-stream writer whose critical sections will + * synchronize on the given object. + */ + // @ts-ignore + constructor(lock: java.lang.Object) + // @ts-ignore + protected lock: java.lang.Object; + /** + * Writes a single character. The character to be written is contained in + * the 16 low-order bits of the given integer value; the 16 high-order bits + * are ignored. + *

Subclasses that intend to support efficient single-character output + * should override this method. + */ + // @ts-ignore + public write(c: number): void; + /** + * Writes an array of characters. + */ + // @ts-ignore + public write(cbuf: string): void; + /** + * Writes a string. + */ + // @ts-ignore + public write(str: string): void; + /** + * Writes a portion of a string. + */ + // @ts-ignore + public write(str: string, off: number, len: number): void; + /** + * Appends the specified character sequence to this writer. + *

An invocation of this method of the form out.append(csq) + * behaves in exactly the same way as the invocation + *

+             * out.write(csq.toString()) 
+ *

Depending on the specification of toString for the + * character sequence csq, the entire sequence may not be + * appended. For instance, invoking the toString method of a + * character buffer will return a subsequence whose content depends upon + * the buffer's position and limit. + */ + // @ts-ignore + public append(csq: java.lang.CharSequence): java.io.Writer; + /** + * Appends a subsequence of the specified character sequence to this writer. + * Appendable. + *

An invocation of this method of the form out.append(csq, start, + * end) when csq is not null behaves in exactly the + * same way as the invocation + *

+             * out.write(csq.subSequence(start, end).toString()) 
+ */ + // @ts-ignore + public append(csq: java.lang.CharSequence, start: number, end: number): java.io.Writer; + /** + * Appends the specified character to this writer. + *

An invocation of this method of the form out.append(c) + * behaves in exactly the same way as the invocation + *

+             * out.write(c) 
+ */ + // @ts-ignore + public append(c: string): java.io.Writer; + /** + * Flushes the stream. If the stream has saved any characters from the + * various write() methods in a buffer, write them immediately to their + * intended destination. Then, if that destination is another character or + * byte stream, flush it. Thus one flush() invocation will flush all the + * buffers in a chain of Writers and OutputStreams. + *

If the intended destination of this stream is an abstraction provided + * by the underlying operating system, for example a file, then flushing the + * stream guarantees only that bytes previously written to the stream are + * passed to the operating system for writing; it does not guarantee that + * they are actually written to a physical device such as a disk drive. + */ + // @ts-ignore + public abstract flush(): void; + /** + * Closes the stream, flushing it first. Once the stream has been closed, + * further write() or flush() invocations will cause an IOException to be + * thrown. Closing a previously closed stream has no effect. + */ + // @ts-ignore + public abstract close(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.AbstractMethodError.d.ts b/packages/types/dist/typings/jdk/java.lang.AbstractMethodError.d.ts new file mode 100644 index 00000000..68727bad --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.AbstractMethodError.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class AbstractMethodError extends java.lang.IncompatibleClassChangeError { + /** + * Constructs an AbstractMethodError with no detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs an AbstractMethodError with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Appendable.d.ts b/packages/types/dist/typings/jdk/java.lang.Appendable.d.ts new file mode 100644 index 00000000..bc771b1b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Appendable.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + interface Appendable { + /** + * Appends the specified character sequence to this Appendable. + *

Depending on which class implements the character sequence + * csq, the entire sequence may not be appended. For + * instance, if csq is a {@link java.nio.CharBuffer} then + * the subsequence to append is defined by the buffer's position and limit. + */ + // @ts-ignore + append(csq: java.lang.CharSequence): java.lang.Appendable; + /** + * Appends a subsequence of the specified character sequence to this + * Appendable. + *

An invocation of this method of the form out.append(csq, start, + * end) when csq is not null, behaves in + * exactly the same way as the invocation + *

+             * out.append(csq.subSequence(start, end)) 
+ */ + // @ts-ignore + append(csq: java.lang.CharSequence, start: number, end: number): java.lang.Appendable; + /** + * Appends the specified character to this Appendable. + */ + // @ts-ignore + append(c: string): java.lang.Appendable; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.ArithmeticException.d.ts b/packages/types/dist/typings/jdk/java.lang.ArithmeticException.d.ts new file mode 100644 index 00000000..f841ce96 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.ArithmeticException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class ArithmeticException extends java.lang.RuntimeException { + /** + * Constructs an {@code ArithmeticException} with no detail + * message. + */ + // @ts-ignore + constructor() + /** + * Constructs an {@code ArithmeticException} with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.ArrayIndexOutOfBoundsException.d.ts b/packages/types/dist/typings/jdk/java.lang.ArrayIndexOutOfBoundsException.d.ts new file mode 100644 index 00000000..89030f9c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.ArrayIndexOutOfBoundsException.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class ArrayIndexOutOfBoundsException extends java.lang.IndexOutOfBoundsException { + /** + * Constructs an ArrayIndexOutOfBoundsException with no + * detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs a new ArrayIndexOutOfBoundsException + * class with an argument indicating the illegal index. + */ + // @ts-ignore + constructor(index: number) + /** + * Constructs an ArrayIndexOutOfBoundsException class + * with the specified detail message. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.ArrayStoreException.d.ts b/packages/types/dist/typings/jdk/java.lang.ArrayStoreException.d.ts new file mode 100644 index 00000000..0cc619c8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.ArrayStoreException.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class ArrayStoreException extends java.lang.RuntimeException { + /** + * Constructs an ArrayStoreException with no detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs an ArrayStoreException with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.AssertionError.d.ts b/packages/types/dist/typings/jdk/java.lang.AssertionError.d.ts new file mode 100644 index 00000000..650eb2f0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.AssertionError.d.ts @@ -0,0 +1,81 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class AssertionError extends java.lang.Error { + /** + * Constructs an AssertionError with no detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs an AssertionError with its detail message derived + * from the specified object, which is converted to a string as + * defined in section 15.18.1.1 of + * The Java™ Language Specification. + *

+ * If the specified object is an instance of {@code Throwable}, it + * becomes the cause of the newly constructed assertion error. + */ + // @ts-ignore + constructor(detailMessage: java.lang.Object) + /** + * Constructs an AssertionError with its detail message derived + * from the specified boolean, which is converted to + * a string as defined in section 15.18.1.1 of + * The Java™ Language Specification. + */ + // @ts-ignore + constructor(detailMessage: boolean) + /** + * Constructs an AssertionError with its detail message derived + * from the specified char, which is converted to a + * string as defined in section 15.18.1.1 of + * The Java™ Language Specification. + */ + // @ts-ignore + constructor(detailMessage: string) + /** + * Constructs an AssertionError with its detail message derived + * from the specified int, which is converted to a + * string as defined in section 15.18.1.1 of + * The Java™ Language Specification. + */ + // @ts-ignore + constructor(detailMessage: number) + /** + * Constructs an AssertionError with its detail message derived + * from the specified long, which is converted to a + * string as defined in section 15.18.1.1 of + * The Java™ Language Specification. + */ + // @ts-ignore + constructor(detailMessage: number) + /** + * Constructs an AssertionError with its detail message derived + * from the specified float, which is converted to a + * string as defined in section 15.18.1.1 of + * The Java™ Language Specification. + */ + // @ts-ignore + constructor(detailMessage: number) + /** + * Constructs an AssertionError with its detail message derived + * from the specified double, which is converted to a + * string as defined in section 15.18.1.1 of + * The Java™ Language Specification. + */ + // @ts-ignore + constructor(detailMessage: number) + /** + * Constructs a new {@code AssertionError} with the specified + * detail message and cause. + *

Note that the detail message associated with + * {@code cause} is not automatically incorporated in + * this error's detail message. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.AutoCloseable.d.ts b/packages/types/dist/typings/jdk/java.lang.AutoCloseable.d.ts new file mode 100644 index 00000000..70c04d94 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.AutoCloseable.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + interface AutoCloseable { + /** + * Closes this resource, relinquishing any underlying resources. + * This method is invoked automatically on objects managed by the + * {@code try}-with-resources statement. + *

While this interface method is declared to throw {@code + * Exception}, implementers are strongly encouraged to + * declare concrete implementations of the {@code close} method to + * throw more specific exceptions, or to throw no exception at all + * if the close operation cannot fail. + *

Cases where the close operation may fail require careful + * attention by implementers. It is strongly advised to relinquish + * the underlying resources and to internally mark the + * resource as closed, prior to throwing the exception. The {@code + * close} method is unlikely to be invoked more than once and so + * this ensures that the resources are released in a timely manner. + * Furthermore it reduces problems that could arise when the resource + * wraps, or is wrapped, by another resource. + *

Implementers of this interface are also strongly advised + * to not have the {@code close} method throw {@link + * InterruptedException}. + * This exception interacts with a thread's interrupted status, + * and runtime misbehavior is likely to occur if an {@code + * InterruptedException} is {@linkplain Throwable#addSuppressed + * suppressed}. + * More generally, if it would cause problems for an + * exception to be suppressed, the {@code AutoCloseable.close} + * method should not throw it. + *

Note that unlike the {@link java.io.Closeable#close close} + * method of {@link java.io.Closeable}, this {@code close} method + * is not required to be idempotent. In other words, + * calling this {@code close} method more than once may have some + * visible side effect, unlike {@code Closeable.close} which is + * required to have no effect if called more than once. + * However, implementers of this interface are strongly encouraged + * to make their {@code close} methods idempotent. + */ + // @ts-ignore + close(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Boolean.d.ts b/packages/types/dist/typings/jdk/java.lang.Boolean.d.ts new file mode 100644 index 00000000..be64249b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Boolean.d.ts @@ -0,0 +1,153 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class Boolean extends java.lang.Object { + /** + * Allocates a {@code Boolean} object representing the + * {@code value} argument. + *

Note: It is rarely appropriate to use this constructor. + * Unless a new instance is required, the static factory + * {@link #valueOf(boolean)} is generally a better choice. It is + * likely to yield significantly better space and time performance. + */ + // @ts-ignore + constructor(value: boolean) + /** + * Allocates a {@code Boolean} object representing the value + * {@code true} if the string argument is not {@code null} + * and is equal, ignoring case, to the string {@code "true"}. + * Otherwise, allocate a {@code Boolean} object representing the + * value {@code false}. Examples:

+ * {@code new Boolean("True")} produces a {@code Boolean} object + * that represents {@code true}.
+ * {@code new Boolean("yes")} produces a {@code Boolean} object + * that represents {@code false}. + */ + // @ts-ignore + constructor(s: string) + // @ts-ignore + public static TRUE: java.lang.Boolean; + // @ts-ignore + public static FALSE: java.lang.Boolean; + // @ts-ignore + public static TYPE: java.lang.Class; + /** + * Parses the string argument as a boolean. The {@code boolean} + * returned represents the value {@code true} if the string argument + * is not {@code null} and is equal, ignoring case, to the string + * {@code "true"}.

+ * Example: {@code Boolean.parseBoolean("True")} returns {@code true}.
+ * Example: {@code Boolean.parseBoolean("yes")} returns {@code false}. + */ + // @ts-ignore + public static parseBoolean(s: string): boolean; + /** + * Returns the value of this {@code Boolean} object as a boolean + * primitive. + */ + // @ts-ignore + public booleanValue(): boolean; + /** + * Returns a {@code Boolean} instance representing the specified + * {@code boolean} value. If the specified {@code boolean} value + * is {@code true}, this method returns {@code Boolean.TRUE}; + * if it is {@code false}, this method returns {@code Boolean.FALSE}. + * If a new {@code Boolean} instance is not required, this method + * should generally be used in preference to the constructor + * {@link #Boolean(boolean)}, as this method is likely to yield + * significantly better space and time performance. + */ + // @ts-ignore + public static valueOf(b: boolean): java.lang.Boolean; + /** + * Returns a {@code Boolean} with a value represented by the + * specified string. The {@code Boolean} returned represents a + * true value if the string argument is not {@code null} + * and is equal, ignoring case, to the string {@code "true"}. + */ + // @ts-ignore + public static valueOf(s: string): java.lang.Boolean; + /** + * Returns a {@code String} object representing the specified + * boolean. If the specified boolean is {@code true}, then + * the string {@code "true"} will be returned, otherwise the + * string {@code "false"} will be returned. + */ + // @ts-ignore + public static toString(b: boolean): string; + /** + * Returns a {@code String} object representing this Boolean's + * value. If this object represents the value {@code true}, + * a string equal to {@code "true"} is returned. Otherwise, a + * string equal to {@code "false"} is returned. + */ + // @ts-ignore + public toString(): string; + /** + * Returns a hash code for this {@code Boolean} object. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns a hash code for a {@code boolean} value; compatible with + * {@code Boolean.hashCode()}. + */ + // @ts-ignore + public static hashCode(value: boolean): number; + /** + * Returns {@code true} if and only if the argument is not + * {@code null} and is a {@code Boolean} object that + * represents the same {@code boolean} value as this object. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns {@code true} if and only if the system property + * named by the argument exists and is equal to the string + * {@code "true"}. (Beginning with version 1.0.2 of the + * JavaTM platform, the test of + * this string is case insensitive.) A system property is accessible + * through {@code getProperty}, a method defined by the + * {@code System} class. + *

+ * If there is no property with the specified name, or if the specified + * name is empty or null, then {@code false} is returned. + */ + // @ts-ignore + public static getBoolean(name: string): boolean; + /** + * Compares this {@code Boolean} instance with another. + */ + // @ts-ignore + public compareTo(b: java.lang.Boolean): number; + /** + * Compares two {@code boolean} values. + * The value returned is identical to what would be returned by: + *

+             * Boolean.valueOf(x).compareTo(Boolean.valueOf(y))
+             * 
+ */ + // @ts-ignore + public static compare(x: boolean, y: boolean): number; + /** + * Returns the result of applying the logical AND operator to the + * specified {@code boolean} operands. + */ + // @ts-ignore + public static logicalAnd(a: boolean, b: boolean): boolean; + /** + * Returns the result of applying the logical OR operator to the + * specified {@code boolean} operands. + */ + // @ts-ignore + public static logicalOr(a: boolean, b: boolean): boolean; + /** + * Returns the result of applying the logical XOR operator to the + * specified {@code boolean} operands. + */ + // @ts-ignore + public static logicalXor(a: boolean, b: boolean): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.BootstrapMethodError.d.ts b/packages/types/dist/typings/jdk/java.lang.BootstrapMethodError.d.ts new file mode 100644 index 00000000..aa3a3974 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.BootstrapMethodError.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class BootstrapMethodError extends java.lang.LinkageError { + /** + * Constructs a {@code BootstrapMethodError} with no detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs a {@code BootstrapMethodError} with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + /** + * Constructs a {@code BootstrapMethodError} with the specified + * detail message and cause. + */ + // @ts-ignore + constructor(s: string, cause: java.lang.Throwable) + /** + * Constructs a {@code BootstrapMethodError} with the specified + * cause. + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Byte.d.ts b/packages/types/dist/typings/jdk/java.lang.Byte.d.ts new file mode 100644 index 00000000..301c4325 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Byte.d.ts @@ -0,0 +1,262 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class Byte extends java.lang.Number { + /** + * Constructs a newly allocated {@code Byte} object that + * represents the specified {@code byte} value. + */ + // @ts-ignore + constructor(value: number) + /** + * Constructs a newly allocated {@code Byte} object that + * represents the {@code byte} value indicated by the + * {@code String} parameter. The string is converted to a + * {@code byte} value in exactly the manner used by the + * {@code parseByte} method for radix 10. + */ + // @ts-ignore + constructor(s: string) + // @ts-ignore + public static MIN_VALUE: number; + // @ts-ignore + public static MAX_VALUE: number; + // @ts-ignore + public static TYPE: java.lang.Class; + // @ts-ignore + public static SIZE: number; + // @ts-ignore + public static BYTES: number; + /** + * Returns a new {@code String} object representing the + * specified {@code byte}. The radix is assumed to be 10. + */ + // @ts-ignore + public static toString(b: number): string; + /** + * Returns a {@code Byte} instance representing the specified + * {@code byte} value. + * If a new {@code Byte} instance is not required, this method + * should generally be used in preference to the constructor + * {@link #Byte(byte)}, as this method is likely to yield + * significantly better space and time performance since + * all byte values are cached. + */ + // @ts-ignore + public static valueOf(b: number): java.lang.Byte; + /** + * Parses the string argument as a signed {@code byte} in the + * radix specified by the second argument. The characters in the + * string must all be digits, of the specified radix (as + * determined by whether {@link java.lang.Character#digit(char, + * int)} returns a nonnegative value) except that the first + * character may be an ASCII minus sign {@code '-'} + * ({@code '\u002D'}) to indicate a negative value or an + * ASCII plus sign {@code '+'} ({@code '\u002B'}) to + * indicate a positive value. The resulting {@code byte} value is + * returned. + *

An exception of type {@code NumberFormatException} is + * thrown if any of the following situations occurs: + *

    + *
  • The first argument is {@code null} or is a string of + * length zero. + *
  • The radix is either smaller than {@link + * java.lang.Character#MIN_RADIX} or larger than {@link + * java.lang.Character#MAX_RADIX}. + *
  • Any character of the string is not a digit of the + * specified radix, except that the first character may be a minus + * sign {@code '-'} ({@code '\u002D'}) or plus sign + * {@code '+'} ({@code '\u002B'}) provided that the + * string is longer than length 1. + *
  • The value represented by the string is not a value of type + * {@code byte}. + *
+ */ + // @ts-ignore + public static parseByte(s: string, radix: number): number; + /** + * Parses the string argument as a signed decimal {@code + * byte}. The characters in the string must all be decimal digits, + * except that the first character may be an ASCII minus sign + * {@code '-'} ({@code '\u002D'}) to indicate a negative + * value or an ASCII plus sign {@code '+'} + * ({@code '\u002B'}) to indicate a positive value. The + * resulting {@code byte} value is returned, exactly as if the + * argument and the radix 10 were given as arguments to the {@link + * #parseByte(java.lang.String, int)} method. + */ + // @ts-ignore + public static parseByte(s: string): number; + /** + * Returns a {@code Byte} object holding the value + * extracted from the specified {@code String} when parsed + * with the radix given by the second argument. The first argument + * is interpreted as representing a signed {@code byte} in + * the radix specified by the second argument, exactly as if the + * argument were given to the {@link #parseByte(java.lang.String, + * int)} method. The result is a {@code Byte} object that + * represents the {@code byte} value specified by the string. + *

In other words, this method returns a {@code Byte} object + * equal to the value of: + *

+ * {@code new Byte(Byte.parseByte(s, radix))} + *
+ */ + // @ts-ignore + public static valueOf(s: string, radix: number): java.lang.Byte; + /** + * Returns a {@code Byte} object holding the value + * given by the specified {@code String}. The argument is + * interpreted as representing a signed decimal {@code byte}, + * exactly as if the argument were given to the {@link + * #parseByte(java.lang.String)} method. The result is a + * {@code Byte} object that represents the {@code byte} + * value specified by the string. + *

In other words, this method returns a {@code Byte} object + * equal to the value of: + *

+ * {@code new Byte(Byte.parseByte(s))} + *
+ */ + // @ts-ignore + public static valueOf(s: string): java.lang.Byte; + /** + * Decodes a {@code String} into a {@code Byte}. + * Accepts decimal, hexadecimal, and octal numbers given by + * the following grammar: + *
+ *
+ *
DecodableString: + *
Signopt DecimalNumeral + *
Signopt {@code 0x} HexDigits + *
Signopt {@code 0X} HexDigits + *
Signopt {@code #} HexDigits + *
Signopt {@code 0} OctalDigits + *
Sign: + *
{@code -} + *
{@code +} + *
+ *
+ * DecimalNumeral, HexDigits, and OctalDigits + * are as defined in section 3.10.1 of + * The Java™ Language Specification, + * except that underscores are not accepted between digits. + *

The sequence of characters following an optional + * sign and/or radix specifier ("{@code 0x}", "{@code 0X}", + * "{@code #}", or leading zero) is parsed as by the {@code + * Byte.parseByte} method with the indicated radix (10, 16, or 8). + * This sequence of characters must represent a positive value or + * a {@link NumberFormatException} will be thrown. The result is + * negated if first character of the specified {@code String} is + * the minus sign. No whitespace characters are permitted in the + * {@code String}. + */ + // @ts-ignore + public static decode(nm: string): java.lang.Byte; + /** + * Returns the value of this {@code Byte} as a + * {@code byte}. + */ + // @ts-ignore + public byteValue(): number; + /** + * Returns the value of this {@code Byte} as a {@code short} after + * a widening primitive conversion. + */ + // @ts-ignore + public shortValue(): number; + /** + * Returns the value of this {@code Byte} as an {@code int} after + * a widening primitive conversion. + */ + // @ts-ignore + public intValue(): number; + /** + * Returns the value of this {@code Byte} as a {@code long} after + * a widening primitive conversion. + */ + // @ts-ignore + public longValue(): number; + /** + * Returns the value of this {@code Byte} as a {@code float} after + * a widening primitive conversion. + */ + // @ts-ignore + public floatValue(): number; + /** + * Returns the value of this {@code Byte} as a {@code double} + * after a widening primitive conversion. + */ + // @ts-ignore + public doubleValue(): number; + /** + * Returns a {@code String} object representing this + * {@code Byte}'s value. The value is converted to signed + * decimal representation and returned as a string, exactly as if + * the {@code byte} value were given as an argument to the + * {@link java.lang.Byte#toString(byte)} method. + */ + // @ts-ignore + public toString(): string; + /** + * Returns a hash code for this {@code Byte}; equal to the result + * of invoking {@code intValue()}. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns a hash code for a {@code byte} value; compatible with + * {@code Byte.hashCode()}. + */ + // @ts-ignore + public static hashCode(value: number): number; + /** + * Compares this object to the specified object. The result is + * {@code true} if and only if the argument is not + * {@code null} and is a {@code Byte} object that + * contains the same {@code byte} value as this object. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Compares two {@code Byte} objects numerically. + */ + // @ts-ignore + public compareTo(anotherByte: java.lang.Byte): number; + /** + * Compares two {@code byte} values numerically. + * The value returned is identical to what would be returned by: + *

+             * Byte.valueOf(x).compareTo(Byte.valueOf(y))
+             * 
+ */ + // @ts-ignore + public static compare(x: number, y: number): number; + /** + * Converts the argument to an {@code int} by an unsigned + * conversion. In an unsigned conversion to an {@code int}, the + * high-order 24 bits of the {@code int} are zero and the + * low-order 8 bits are equal to the bits of the {@code byte} argument. + * Consequently, zero and positive {@code byte} values are mapped + * to a numerically equal {@code int} value and negative {@code + * byte} values are mapped to an {@code int} value equal to the + * input plus 28. + */ + // @ts-ignore + public static toUnsignedInt(x: number): number; + /** + * Converts the argument to a {@code long} by an unsigned + * conversion. In an unsigned conversion to a {@code long}, the + * high-order 56 bits of the {@code long} are zero and the + * low-order 8 bits are equal to the bits of the {@code byte} argument. + * Consequently, zero and positive {@code byte} values are mapped + * to a numerically equal {@code long} value and negative {@code + * byte} values are mapped to a {@code long} value equal to the + * input plus 28. + */ + // @ts-ignore + public static toUnsignedLong(x: number): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.CharSequence.d.ts b/packages/types/dist/typings/jdk/java.lang.CharSequence.d.ts new file mode 100644 index 00000000..db2e6b9e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.CharSequence.d.ts @@ -0,0 +1,64 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + interface CharSequence { + /** + * Returns the length of this character sequence. The length is the number + * of 16-bit chars in the sequence. + */ + // @ts-ignore + length(): number; + /** + * Returns the char value at the specified index. An index ranges from zero + * to length() - 1. The first char value of the sequence is at + * index zero, the next at index one, and so on, as for array + * indexing. + *

If the char value specified by the index is a + * surrogate, the surrogate + * value is returned. + */ + // @ts-ignore + charAt(index: number): string; + /** + * Returns a CharSequence that is a subsequence of this sequence. + * The subsequence starts with the char value at the specified index and + * ends with the char value at index end - 1. The length + * (in chars) of the + * returned sequence is end - start, so if start == end + * then an empty sequence is returned. + */ + // @ts-ignore + subSequence(start: number, end: number): java.lang.CharSequence; + /** + * Returns a string containing the characters in this sequence in the same + * order as this sequence. The length of the string will be the length of + * this sequence. + */ + // @ts-ignore + toString(): string; + /** + * Returns a stream of {@code int} zero-extending the {@code char} values + * from this sequence. Any char which maps to a surrogate code + * point is passed through uninterpreted. + *

If the sequence is mutated while the stream is being read, the + * result is undefined. + */ + // @ts-ignore + chars(): java.util.stream.IntStream; + /** + * Returns a stream of code point values from this sequence. Any surrogate + * pairs encountered in the sequence are combined as if by {@linkplain + * Character#toCodePoint Character.toCodePoint} and the result is passed + * to the stream. Any other code units, including ordinary BMP characters, + * unpaired surrogates, and undefined code units, are zero-extended to + * {@code int} values which are then passed to the stream. + *

If the sequence is mutated while the stream is being read, the result + * is undefined. + */ + // @ts-ignore + codePoints(): java.util.stream.IntStream; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Character.Subset.d.ts b/packages/types/dist/typings/jdk/java.lang.Character.Subset.d.ts new file mode 100644 index 00000000..f25d9a43 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Character.Subset.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace Character { + // @ts-ignore + class Subset extends java.lang.Object { + /** + * Constructs a new {@code Subset} instance. + */ + // @ts-ignore + constructor(name: string) + /** + * Compares two {@code Subset} objects for equality. + * This method returns {@code true} if and only if + * {@code this} and the argument refer to the same + * object; since this method is {@code final}, this + * guarantee holds for all subclasses. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns the standard hash code as defined by the + * {@link Object#hashCode} method. This method + * is {@code final} in order to ensure that the + * {@code equals} and {@code hashCode} methods will + * be consistent in all subclasses. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns the name of this subset. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Character.UnicodeBlock.d.ts b/packages/types/dist/typings/jdk/java.lang.Character.UnicodeBlock.d.ts new file mode 100644 index 00000000..e88c7a4e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Character.UnicodeBlock.d.ts @@ -0,0 +1,501 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace Character { + // @ts-ignore + class UnicodeBlock extends java.lang.Character.Subset { + // @ts-ignore + public static BASIC_LATIN: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static LATIN_1_SUPPLEMENT: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static LATIN_EXTENDED_A: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static LATIN_EXTENDED_B: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static IPA_EXTENSIONS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static SPACING_MODIFIER_LETTERS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static COMBINING_DIACRITICAL_MARKS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static GREEK: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static CYRILLIC: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static ARMENIAN: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static HEBREW: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static ARABIC: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static DEVANAGARI: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static BENGALI: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static GURMUKHI: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static GUJARATI: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static ORIYA: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static TAMIL: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static TELUGU: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static KANNADA: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static MALAYALAM: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static THAI: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static LAO: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static TIBETAN: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static GEORGIAN: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static HANGUL_JAMO: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static LATIN_EXTENDED_ADDITIONAL: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static GREEK_EXTENDED: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static GENERAL_PUNCTUATION: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static SUPERSCRIPTS_AND_SUBSCRIPTS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static CURRENCY_SYMBOLS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static COMBINING_MARKS_FOR_SYMBOLS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static LETTERLIKE_SYMBOLS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static NUMBER_FORMS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static ARROWS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static MATHEMATICAL_OPERATORS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static MISCELLANEOUS_TECHNICAL: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static CONTROL_PICTURES: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static OPTICAL_CHARACTER_RECOGNITION: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static ENCLOSED_ALPHANUMERICS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static BOX_DRAWING: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static BLOCK_ELEMENTS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static GEOMETRIC_SHAPES: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static MISCELLANEOUS_SYMBOLS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static DINGBATS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static CJK_SYMBOLS_AND_PUNCTUATION: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static HIRAGANA: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static KATAKANA: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static BOPOMOFO: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static HANGUL_COMPATIBILITY_JAMO: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static KANBUN: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static ENCLOSED_CJK_LETTERS_AND_MONTHS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static CJK_COMPATIBILITY: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static CJK_UNIFIED_IDEOGRAPHS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static HANGUL_SYLLABLES: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static PRIVATE_USE_AREA: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static CJK_COMPATIBILITY_IDEOGRAPHS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static ALPHABETIC_PRESENTATION_FORMS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static ARABIC_PRESENTATION_FORMS_A: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static COMBINING_HALF_MARKS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static CJK_COMPATIBILITY_FORMS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static SMALL_FORM_VARIANTS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static ARABIC_PRESENTATION_FORMS_B: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static HALFWIDTH_AND_FULLWIDTH_FORMS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static SPECIALS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static SURROGATES_AREA: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static SYRIAC: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static THAANA: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static SINHALA: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static MYANMAR: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static ETHIOPIC: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static CHEROKEE: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static OGHAM: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static RUNIC: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static KHMER: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static MONGOLIAN: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static BRAILLE_PATTERNS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static CJK_RADICALS_SUPPLEMENT: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static KANGXI_RADICALS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static IDEOGRAPHIC_DESCRIPTION_CHARACTERS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static BOPOMOFO_EXTENDED: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static YI_SYLLABLES: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static YI_RADICALS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static CYRILLIC_SUPPLEMENTARY: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static TAGALOG: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static HANUNOO: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static BUHID: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static TAGBANWA: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static LIMBU: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static TAI_LE: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static KHMER_SYMBOLS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static PHONETIC_EXTENSIONS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static MISCELLANEOUS_MATHEMATICAL_SYMBOLS_A: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static SUPPLEMENTAL_ARROWS_A: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static SUPPLEMENTAL_ARROWS_B: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static MISCELLANEOUS_MATHEMATICAL_SYMBOLS_B: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static SUPPLEMENTAL_MATHEMATICAL_OPERATORS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static MISCELLANEOUS_SYMBOLS_AND_ARROWS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static KATAKANA_PHONETIC_EXTENSIONS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static YIJING_HEXAGRAM_SYMBOLS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static VARIATION_SELECTORS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static LINEAR_B_SYLLABARY: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static LINEAR_B_IDEOGRAMS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static AEGEAN_NUMBERS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static OLD_ITALIC: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static GOTHIC: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static UGARITIC: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static DESERET: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static SHAVIAN: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static OSMANYA: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static CYPRIOT_SYLLABARY: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static BYZANTINE_MUSICAL_SYMBOLS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static MUSICAL_SYMBOLS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static TAI_XUAN_JING_SYMBOLS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static MATHEMATICAL_ALPHANUMERIC_SYMBOLS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static CJK_UNIFIED_IDEOGRAPHS_EXTENSION_B: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static TAGS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static VARIATION_SELECTORS_SUPPLEMENT: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static SUPPLEMENTARY_PRIVATE_USE_AREA_A: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static SUPPLEMENTARY_PRIVATE_USE_AREA_B: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static HIGH_SURROGATES: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static HIGH_PRIVATE_USE_SURROGATES: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static LOW_SURROGATES: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static ARABIC_SUPPLEMENT: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static NKO: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static SAMARITAN: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static MANDAIC: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static ETHIOPIC_SUPPLEMENT: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static NEW_TAI_LUE: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static BUGINESE: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static TAI_THAM: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static BALINESE: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static SUNDANESE: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static BATAK: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static LEPCHA: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static OL_CHIKI: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static VEDIC_EXTENSIONS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static PHONETIC_EXTENSIONS_SUPPLEMENT: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static COMBINING_DIACRITICAL_MARKS_SUPPLEMENT: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static GLAGOLITIC: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static LATIN_EXTENDED_C: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static COPTIC: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static GEORGIAN_SUPPLEMENT: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static TIFINAGH: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static ETHIOPIC_EXTENDED: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static CYRILLIC_EXTENDED_A: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static SUPPLEMENTAL_PUNCTUATION: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static CJK_STROKES: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static LISU: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static VAI: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static CYRILLIC_EXTENDED_B: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static BAMUM: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static MODIFIER_TONE_LETTERS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static LATIN_EXTENDED_D: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static SYLOTI_NAGRI: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static COMMON_INDIC_NUMBER_FORMS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static PHAGS_PA: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static SAURASHTRA: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static DEVANAGARI_EXTENDED: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static KAYAH_LI: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static REJANG: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static HANGUL_JAMO_EXTENDED_A: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static JAVANESE: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static CHAM: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static MYANMAR_EXTENDED_A: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static TAI_VIET: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static ETHIOPIC_EXTENDED_A: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static MEETEI_MAYEK: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static HANGUL_JAMO_EXTENDED_B: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static VERTICAL_FORMS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static ANCIENT_GREEK_NUMBERS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static ANCIENT_SYMBOLS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static PHAISTOS_DISC: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static LYCIAN: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static CARIAN: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static OLD_PERSIAN: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static IMPERIAL_ARAMAIC: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static PHOENICIAN: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static LYDIAN: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static KHAROSHTHI: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static OLD_SOUTH_ARABIAN: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static AVESTAN: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static INSCRIPTIONAL_PARTHIAN: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static INSCRIPTIONAL_PAHLAVI: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static OLD_TURKIC: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static RUMI_NUMERAL_SYMBOLS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static BRAHMI: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static KAITHI: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static CUNEIFORM: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static CUNEIFORM_NUMBERS_AND_PUNCTUATION: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static EGYPTIAN_HIEROGLYPHS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static BAMUM_SUPPLEMENT: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static KANA_SUPPLEMENT: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static ANCIENT_GREEK_MUSICAL_NOTATION: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static COUNTING_ROD_NUMERALS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static MAHJONG_TILES: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static DOMINO_TILES: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static PLAYING_CARDS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static ENCLOSED_ALPHANUMERIC_SUPPLEMENT: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static ENCLOSED_IDEOGRAPHIC_SUPPLEMENT: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static MISCELLANEOUS_SYMBOLS_AND_PICTOGRAPHS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static EMOTICONS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static TRANSPORT_AND_MAP_SYMBOLS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static ALCHEMICAL_SYMBOLS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static CJK_UNIFIED_IDEOGRAPHS_EXTENSION_D: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static ARABIC_EXTENDED_A: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static SUNDANESE_SUPPLEMENT: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static MEETEI_MAYEK_EXTENSIONS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static MEROITIC_HIEROGLYPHS: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static MEROITIC_CURSIVE: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static SORA_SOMPENG: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static CHAKMA: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static SHARADA: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static TAKRI: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static MIAO: java.lang.Character.UnicodeBlock; + // @ts-ignore + public static ARABIC_MATHEMATICAL_ALPHABETIC_SYMBOLS: java.lang.Character.UnicodeBlock; + /** + * Returns the object representing the Unicode block containing the + * given character, or {@code null} if the character is not a + * member of a defined block. + *

Note: This method cannot handle + * supplementary + * characters. To support all Unicode characters, including + * supplementary characters, use the {@link #of(int)} method. + */ + // @ts-ignore + public static of(c: string): java.lang.Character.UnicodeBlock; + /** + * Returns the object representing the Unicode block + * containing the given character (Unicode code point), or + * {@code null} if the character is not a member of a + * defined block. + */ + // @ts-ignore + public static of(codePoint: number): java.lang.Character.UnicodeBlock; + /** + * Returns the UnicodeBlock with the given name. Block + * names are determined by The Unicode Standard. The file + * Blocks-<version>.txt defines blocks for a particular + * version of the standard. The {@link Character} class specifies + * the version of the standard that it supports. + *

+ * This method accepts block names in the following forms: + *

    + *
  1. Canonical block names as defined by the Unicode Standard. + * For example, the standard defines a "Basic Latin" block. Therefore, this + * method accepts "Basic Latin" as a valid block name. The documentation of + * each UnicodeBlock provides the canonical name. + *
  2. Canonical block names with all spaces removed. For example, "BasicLatin" + * is a valid block name for the "Basic Latin" block. + *
  3. The text representation of each constant UnicodeBlock identifier. + * For example, this method will return the {@link #BASIC_LATIN} block if + * provided with the "BASIC_LATIN" name. This form replaces all spaces and + * hyphens in the canonical name with underscores. + *
+ * Finally, character case is ignored for all of the valid block name forms. + * For example, "BASIC_LATIN" and "basic_latin" are both valid block names. + * The en_US locale's case mapping rules are used to provide case-insensitive + * string comparisons for block name validation. + *

+ * If the Unicode Standard changes block names, both the previous and + * current names will be accepted. + */ + // @ts-ignore + public static forName(blockName: string): java.lang.Character.UnicodeBlock; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Character.UnicodeScript.d.ts b/packages/types/dist/typings/jdk/java.lang.Character.UnicodeScript.d.ts new file mode 100644 index 00000000..fe860cf2 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Character.UnicodeScript.d.ts @@ -0,0 +1,242 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace Character { + // @ts-ignore + class UnicodeScript extends java.lang.Enum { + // @ts-ignore + public static COMMON: java.lang.Character.UnicodeScript; + // @ts-ignore + public static LATIN: java.lang.Character.UnicodeScript; + // @ts-ignore + public static GREEK: java.lang.Character.UnicodeScript; + // @ts-ignore + public static CYRILLIC: java.lang.Character.UnicodeScript; + // @ts-ignore + public static ARMENIAN: java.lang.Character.UnicodeScript; + // @ts-ignore + public static HEBREW: java.lang.Character.UnicodeScript; + // @ts-ignore + public static ARABIC: java.lang.Character.UnicodeScript; + // @ts-ignore + public static SYRIAC: java.lang.Character.UnicodeScript; + // @ts-ignore + public static THAANA: java.lang.Character.UnicodeScript; + // @ts-ignore + public static DEVANAGARI: java.lang.Character.UnicodeScript; + // @ts-ignore + public static BENGALI: java.lang.Character.UnicodeScript; + // @ts-ignore + public static GURMUKHI: java.lang.Character.UnicodeScript; + // @ts-ignore + public static GUJARATI: java.lang.Character.UnicodeScript; + // @ts-ignore + public static ORIYA: java.lang.Character.UnicodeScript; + // @ts-ignore + public static TAMIL: java.lang.Character.UnicodeScript; + // @ts-ignore + public static TELUGU: java.lang.Character.UnicodeScript; + // @ts-ignore + public static KANNADA: java.lang.Character.UnicodeScript; + // @ts-ignore + public static MALAYALAM: java.lang.Character.UnicodeScript; + // @ts-ignore + public static SINHALA: java.lang.Character.UnicodeScript; + // @ts-ignore + public static THAI: java.lang.Character.UnicodeScript; + // @ts-ignore + public static LAO: java.lang.Character.UnicodeScript; + // @ts-ignore + public static TIBETAN: java.lang.Character.UnicodeScript; + // @ts-ignore + public static MYANMAR: java.lang.Character.UnicodeScript; + // @ts-ignore + public static GEORGIAN: java.lang.Character.UnicodeScript; + // @ts-ignore + public static HANGUL: java.lang.Character.UnicodeScript; + // @ts-ignore + public static ETHIOPIC: java.lang.Character.UnicodeScript; + // @ts-ignore + public static CHEROKEE: java.lang.Character.UnicodeScript; + // @ts-ignore + public static CANADIAN_ABORIGINAL: java.lang.Character.UnicodeScript; + // @ts-ignore + public static OGHAM: java.lang.Character.UnicodeScript; + // @ts-ignore + public static RUNIC: java.lang.Character.UnicodeScript; + // @ts-ignore + public static KHMER: java.lang.Character.UnicodeScript; + // @ts-ignore + public static MONGOLIAN: java.lang.Character.UnicodeScript; + // @ts-ignore + public static HIRAGANA: java.lang.Character.UnicodeScript; + // @ts-ignore + public static KATAKANA: java.lang.Character.UnicodeScript; + // @ts-ignore + public static BOPOMOFO: java.lang.Character.UnicodeScript; + // @ts-ignore + public static HAN: java.lang.Character.UnicodeScript; + // @ts-ignore + public static YI: java.lang.Character.UnicodeScript; + // @ts-ignore + public static OLD_ITALIC: java.lang.Character.UnicodeScript; + // @ts-ignore + public static GOTHIC: java.lang.Character.UnicodeScript; + // @ts-ignore + public static DESERET: java.lang.Character.UnicodeScript; + // @ts-ignore + public static INHERITED: java.lang.Character.UnicodeScript; + // @ts-ignore + public static TAGALOG: java.lang.Character.UnicodeScript; + // @ts-ignore + public static HANUNOO: java.lang.Character.UnicodeScript; + // @ts-ignore + public static BUHID: java.lang.Character.UnicodeScript; + // @ts-ignore + public static TAGBANWA: java.lang.Character.UnicodeScript; + // @ts-ignore + public static LIMBU: java.lang.Character.UnicodeScript; + // @ts-ignore + public static TAI_LE: java.lang.Character.UnicodeScript; + // @ts-ignore + public static LINEAR_B: java.lang.Character.UnicodeScript; + // @ts-ignore + public static UGARITIC: java.lang.Character.UnicodeScript; + // @ts-ignore + public static SHAVIAN: java.lang.Character.UnicodeScript; + // @ts-ignore + public static OSMANYA: java.lang.Character.UnicodeScript; + // @ts-ignore + public static CYPRIOT: java.lang.Character.UnicodeScript; + // @ts-ignore + public static BRAILLE: java.lang.Character.UnicodeScript; + // @ts-ignore + public static BUGINESE: java.lang.Character.UnicodeScript; + // @ts-ignore + public static COPTIC: java.lang.Character.UnicodeScript; + // @ts-ignore + public static NEW_TAI_LUE: java.lang.Character.UnicodeScript; + // @ts-ignore + public static GLAGOLITIC: java.lang.Character.UnicodeScript; + // @ts-ignore + public static TIFINAGH: java.lang.Character.UnicodeScript; + // @ts-ignore + public static SYLOTI_NAGRI: java.lang.Character.UnicodeScript; + // @ts-ignore + public static OLD_PERSIAN: java.lang.Character.UnicodeScript; + // @ts-ignore + public static KHAROSHTHI: java.lang.Character.UnicodeScript; + // @ts-ignore + public static BALINESE: java.lang.Character.UnicodeScript; + // @ts-ignore + public static CUNEIFORM: java.lang.Character.UnicodeScript; + // @ts-ignore + public static PHOENICIAN: java.lang.Character.UnicodeScript; + // @ts-ignore + public static PHAGS_PA: java.lang.Character.UnicodeScript; + // @ts-ignore + public static NKO: java.lang.Character.UnicodeScript; + // @ts-ignore + public static SUNDANESE: java.lang.Character.UnicodeScript; + // @ts-ignore + public static BATAK: java.lang.Character.UnicodeScript; + // @ts-ignore + public static LEPCHA: java.lang.Character.UnicodeScript; + // @ts-ignore + public static OL_CHIKI: java.lang.Character.UnicodeScript; + // @ts-ignore + public static VAI: java.lang.Character.UnicodeScript; + // @ts-ignore + public static SAURASHTRA: java.lang.Character.UnicodeScript; + // @ts-ignore + public static KAYAH_LI: java.lang.Character.UnicodeScript; + // @ts-ignore + public static REJANG: java.lang.Character.UnicodeScript; + // @ts-ignore + public static LYCIAN: java.lang.Character.UnicodeScript; + // @ts-ignore + public static CARIAN: java.lang.Character.UnicodeScript; + // @ts-ignore + public static LYDIAN: java.lang.Character.UnicodeScript; + // @ts-ignore + public static CHAM: java.lang.Character.UnicodeScript; + // @ts-ignore + public static TAI_THAM: java.lang.Character.UnicodeScript; + // @ts-ignore + public static TAI_VIET: java.lang.Character.UnicodeScript; + // @ts-ignore + public static AVESTAN: java.lang.Character.UnicodeScript; + // @ts-ignore + public static EGYPTIAN_HIEROGLYPHS: java.lang.Character.UnicodeScript; + // @ts-ignore + public static SAMARITAN: java.lang.Character.UnicodeScript; + // @ts-ignore + public static MANDAIC: java.lang.Character.UnicodeScript; + // @ts-ignore + public static LISU: java.lang.Character.UnicodeScript; + // @ts-ignore + public static BAMUM: java.lang.Character.UnicodeScript; + // @ts-ignore + public static JAVANESE: java.lang.Character.UnicodeScript; + // @ts-ignore + public static MEETEI_MAYEK: java.lang.Character.UnicodeScript; + // @ts-ignore + public static IMPERIAL_ARAMAIC: java.lang.Character.UnicodeScript; + // @ts-ignore + public static OLD_SOUTH_ARABIAN: java.lang.Character.UnicodeScript; + // @ts-ignore + public static INSCRIPTIONAL_PARTHIAN: java.lang.Character.UnicodeScript; + // @ts-ignore + public static INSCRIPTIONAL_PAHLAVI: java.lang.Character.UnicodeScript; + // @ts-ignore + public static OLD_TURKIC: java.lang.Character.UnicodeScript; + // @ts-ignore + public static BRAHMI: java.lang.Character.UnicodeScript; + // @ts-ignore + public static KAITHI: java.lang.Character.UnicodeScript; + // @ts-ignore + public static MEROITIC_HIEROGLYPHS: java.lang.Character.UnicodeScript; + // @ts-ignore + public static MEROITIC_CURSIVE: java.lang.Character.UnicodeScript; + // @ts-ignore + public static SORA_SOMPENG: java.lang.Character.UnicodeScript; + // @ts-ignore + public static CHAKMA: java.lang.Character.UnicodeScript; + // @ts-ignore + public static SHARADA: java.lang.Character.UnicodeScript; + // @ts-ignore + public static TAKRI: java.lang.Character.UnicodeScript; + // @ts-ignore + public static MIAO: java.lang.Character.UnicodeScript; + // @ts-ignore + public static UNKNOWN: java.lang.Character.UnicodeScript; + // @ts-ignore + public static values(): java.lang.Character.UnicodeScript[]; + // @ts-ignore + public static valueOf(name: string): java.lang.Character.UnicodeScript; + /** + * Returns the enum constant representing the Unicode script of which + * the given character (Unicode code point) is assigned to. + */ + // @ts-ignore + public static of(codePoint: number): java.lang.Character.UnicodeScript; + /** + * Returns the UnicodeScript constant with the given Unicode script + * name or the script name alias. Script names and their aliases are + * determined by The Unicode Standard. The files Scripts<version>.txt + * and PropertyValueAliases<version>.txt define script names + * and the script name aliases for a particular version of the + * standard. The {@link Character} class specifies the version of + * the standard that it supports. + *

+ * Character case is ignored for all of the valid script names. + * The en_US locale's case mapping rules are used to provide + * case-insensitive string comparisons for script name validation. + *

+ */ + // @ts-ignore + public static forName(scriptName: string): java.lang.Character.UnicodeScript; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Character.d.ts b/packages/types/dist/typings/jdk/java.lang.Character.d.ts new file mode 100644 index 00000000..7c6a2189 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Character.d.ts @@ -0,0 +1,1509 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class Character extends java.lang.Object { + /** + * Constructs a newly allocated {@code Character} object that + * represents the specified {@code char} value. + */ + // @ts-ignore + constructor(value: string) + // @ts-ignore + public static MIN_RADIX: number; + // @ts-ignore + public static MAX_RADIX: number; + // @ts-ignore + public static MIN_VALUE: string; + // @ts-ignore + public static MAX_VALUE: string; + // @ts-ignore + public static TYPE: java.lang.Class; + // @ts-ignore + public static UNASSIGNED: number; + // @ts-ignore + public static UPPERCASE_LETTER: number; + // @ts-ignore + public static LOWERCASE_LETTER: number; + // @ts-ignore + public static TITLECASE_LETTER: number; + // @ts-ignore + public static MODIFIER_LETTER: number; + // @ts-ignore + public static OTHER_LETTER: number; + // @ts-ignore + public static NON_SPACING_MARK: number; + // @ts-ignore + public static ENCLOSING_MARK: number; + // @ts-ignore + public static COMBINING_SPACING_MARK: number; + // @ts-ignore + public static DECIMAL_DIGIT_NUMBER: number; + // @ts-ignore + public static LETTER_NUMBER: number; + // @ts-ignore + public static OTHER_NUMBER: number; + // @ts-ignore + public static SPACE_SEPARATOR: number; + // @ts-ignore + public static LINE_SEPARATOR: number; + // @ts-ignore + public static PARAGRAPH_SEPARATOR: number; + // @ts-ignore + public static CONTROL: number; + // @ts-ignore + public static FORMAT: number; + // @ts-ignore + public static PRIVATE_USE: number; + // @ts-ignore + public static SURROGATE: number; + // @ts-ignore + public static DASH_PUNCTUATION: number; + // @ts-ignore + public static START_PUNCTUATION: number; + // @ts-ignore + public static END_PUNCTUATION: number; + // @ts-ignore + public static CONNECTOR_PUNCTUATION: number; + // @ts-ignore + public static OTHER_PUNCTUATION: number; + // @ts-ignore + public static MATH_SYMBOL: number; + // @ts-ignore + public static CURRENCY_SYMBOL: number; + // @ts-ignore + public static MODIFIER_SYMBOL: number; + // @ts-ignore + public static OTHER_SYMBOL: number; + // @ts-ignore + public static INITIAL_QUOTE_PUNCTUATION: number; + // @ts-ignore + public static FINAL_QUOTE_PUNCTUATION: number; + // @ts-ignore + public static DIRECTIONALITY_UNDEFINED: number; + // @ts-ignore + public static DIRECTIONALITY_LEFT_TO_RIGHT: number; + // @ts-ignore + public static DIRECTIONALITY_RIGHT_TO_LEFT: number; + // @ts-ignore + public static DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC: number; + // @ts-ignore + public static DIRECTIONALITY_EUROPEAN_NUMBER: number; + // @ts-ignore + public static DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR: number; + // @ts-ignore + public static DIRECTIONALITY_EUROPEAN_NUMBER_TERMINATOR: number; + // @ts-ignore + public static DIRECTIONALITY_ARABIC_NUMBER: number; + // @ts-ignore + public static DIRECTIONALITY_COMMON_NUMBER_SEPARATOR: number; + // @ts-ignore + public static DIRECTIONALITY_NONSPACING_MARK: number; + // @ts-ignore + public static DIRECTIONALITY_BOUNDARY_NEUTRAL: number; + // @ts-ignore + public static DIRECTIONALITY_PARAGRAPH_SEPARATOR: number; + // @ts-ignore + public static DIRECTIONALITY_SEGMENT_SEPARATOR: number; + // @ts-ignore + public static DIRECTIONALITY_WHITESPACE: number; + // @ts-ignore + public static DIRECTIONALITY_OTHER_NEUTRALS: number; + // @ts-ignore + public static DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING: number; + // @ts-ignore + public static DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE: number; + // @ts-ignore + public static DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING: number; + // @ts-ignore + public static DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE: number; + // @ts-ignore + public static DIRECTIONALITY_POP_DIRECTIONAL_FORMAT: number; + // @ts-ignore + public static MIN_HIGH_SURROGATE: string; + // @ts-ignore + public static MAX_HIGH_SURROGATE: string; + // @ts-ignore + public static MIN_LOW_SURROGATE: string; + // @ts-ignore + public static MAX_LOW_SURROGATE: string; + // @ts-ignore + public static MIN_SURROGATE: string; + // @ts-ignore + public static MAX_SURROGATE: string; + // @ts-ignore + public static MIN_SUPPLEMENTARY_CODE_POINT: number; + // @ts-ignore + public static MIN_CODE_POINT: number; + // @ts-ignore + public static MAX_CODE_POINT: number; + // @ts-ignore + public static SIZE: number; + // @ts-ignore + public static BYTES: number; + /** + * Returns a Character instance representing the specified + * char value. + * If a new Character instance is not required, this method + * should generally be used in preference to the constructor + * {@link #Character(char)}, as this method is likely to yield + * significantly better space and time performance by caching + * frequently requested values. + * This method will always cache values in the range {@code + * '\u0000'} to {@code '\u007F'}, inclusive, and may + * cache other values outside of this range. + */ + // @ts-ignore + public static valueOf(c: string): java.lang.Character; + /** + * Returns the value of this {@code Character} object. + */ + // @ts-ignore + public charValue(): string; + /** + * Returns a hash code for this {@code Character}; equal to the result + * of invoking {@code charValue()}. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns a hash code for a {@code char} value; compatible with + * {@code Character.hashCode()}. + */ + // @ts-ignore + public static hashCode(value: string): number; + /** + * Compares this object against the specified object. + * The result is {@code true} if and only if the argument is not + * {@code null} and is a {@code Character} object that + * represents the same {@code char} value as this object. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a {@code String} object representing this + * {@code Character}'s value. The result is a string of + * length 1 whose sole component is the primitive + * {@code char} value represented by this + * {@code Character} object. + */ + // @ts-ignore + public toString(): string; + /** + * Returns a {@code String} object representing the + * specified {@code char}. The result is a string of length + * 1 consisting solely of the specified {@code char}. + */ + // @ts-ignore + public static toString(c: string): string; + /** + * Determines whether the specified code point is a valid + * + * Unicode code point value. + */ + // @ts-ignore + public static isValidCodePoint(codePoint: number): boolean; + /** + * Determines whether the specified character (Unicode code point) + * is in the Basic Multilingual Plane (BMP). + * Such code points can be represented using a single {@code char}. + */ + // @ts-ignore + public static isBmpCodePoint(codePoint: number): boolean; + /** + * Determines whether the specified character (Unicode code point) + * is in the supplementary character range. + */ + // @ts-ignore + public static isSupplementaryCodePoint(codePoint: number): boolean; + /** + * Determines if the given {@code char} value is a + * + * Unicode high-surrogate code unit + * (also known as leading-surrogate code unit). + *

Such values do not represent characters by themselves, + * but are used in the representation of + * supplementary characters + * in the UTF-16 encoding. + */ + // @ts-ignore + public static isHighSurrogate(ch: string): boolean; + /** + * Determines if the given {@code char} value is a + * + * Unicode low-surrogate code unit + * (also known as trailing-surrogate code unit). + *

Such values do not represent characters by themselves, + * but are used in the representation of + * supplementary characters + * in the UTF-16 encoding. + */ + // @ts-ignore + public static isLowSurrogate(ch: string): boolean; + /** + * Determines if the given {@code char} value is a Unicode + * surrogate code unit. + *

Such values do not represent characters by themselves, + * but are used in the representation of + * supplementary characters + * in the UTF-16 encoding. + *

A char value is a surrogate code unit if and only if it is either + * a {@linkplain #isLowSurrogate(char) low-surrogate code unit} or + * a {@linkplain #isHighSurrogate(char) high-surrogate code unit}. + */ + // @ts-ignore + public static isSurrogate(ch: string): boolean; + /** + * Determines whether the specified pair of {@code char} + * values is a valid + * + * Unicode surrogate pair. + *

This method is equivalent to the expression: + *

{@code
+             * isHighSurrogate(high) && isLowSurrogate(low)
+             * }
+ */ + // @ts-ignore + public static isSurrogatePair(high: string, low: string): boolean; + /** + * Determines the number of {@code char} values needed to + * represent the specified character (Unicode code point). If the + * specified character is equal to or greater than 0x10000, then + * the method returns 2. Otherwise, the method returns 1. + *

This method doesn't validate the specified character to be a + * valid Unicode code point. The caller must validate the + * character value using {@link #isValidCodePoint(int) isValidCodePoint} + * if necessary. + */ + // @ts-ignore + public static charCount(codePoint: number): number; + /** + * Converts the specified surrogate pair to its supplementary code + * point value. This method does not validate the specified + * surrogate pair. The caller must validate it using {@link + * #isSurrogatePair(char, char) isSurrogatePair} if necessary. + */ + // @ts-ignore + public static toCodePoint(high: string, low: string): number; + /** + * Returns the code point at the given index of the + * {@code CharSequence}. If the {@code char} value at + * the given index in the {@code CharSequence} is in the + * high-surrogate range, the following index is less than the + * length of the {@code CharSequence}, and the + * {@code char} value at the following index is in the + * low-surrogate range, then the supplementary code point + * corresponding to this surrogate pair is returned. Otherwise, + * the {@code char} value at the given index is returned. + */ + // @ts-ignore + public static codePointAt(seq: java.lang.CharSequence, index: number): number; + /** + * Returns the code point at the given index of the + * {@code char} array. If the {@code char} value at + * the given index in the {@code char} array is in the + * high-surrogate range, the following index is less than the + * length of the {@code char} array, and the + * {@code char} value at the following index is in the + * low-surrogate range, then the supplementary code point + * corresponding to this surrogate pair is returned. Otherwise, + * the {@code char} value at the given index is returned. + */ + // @ts-ignore + public static codePointAt(a: string, index: number): number; + /** + * Returns the code point at the given index of the + * {@code char} array, where only array elements with + * {@code index} less than {@code limit} can be used. If + * the {@code char} value at the given index in the + * {@code char} array is in the high-surrogate range, the + * following index is less than the {@code limit}, and the + * {@code char} value at the following index is in the + * low-surrogate range, then the supplementary code point + * corresponding to this surrogate pair is returned. Otherwise, + * the {@code char} value at the given index is returned. + */ + // @ts-ignore + public static codePointAt(a: string, index: number, limit: number): number; + /** + * Returns the code point preceding the given index of the + * {@code CharSequence}. If the {@code char} value at + * {@code (index - 1)} in the {@code CharSequence} is in + * the low-surrogate range, {@code (index - 2)} is not + * negative, and the {@code char} value at {@code (index - 2)} + * in the {@code CharSequence} is in the + * high-surrogate range, then the supplementary code point + * corresponding to this surrogate pair is returned. Otherwise, + * the {@code char} value at {@code (index - 1)} is + * returned. + */ + // @ts-ignore + public static codePointBefore(seq: java.lang.CharSequence, index: number): number; + /** + * Returns the code point preceding the given index of the + * {@code char} array. If the {@code char} value at + * {@code (index - 1)} in the {@code char} array is in + * the low-surrogate range, {@code (index - 2)} is not + * negative, and the {@code char} value at {@code (index - 2)} + * in the {@code char} array is in the + * high-surrogate range, then the supplementary code point + * corresponding to this surrogate pair is returned. Otherwise, + * the {@code char} value at {@code (index - 1)} is + * returned. + */ + // @ts-ignore + public static codePointBefore(a: string, index: number): number; + /** + * Returns the code point preceding the given index of the + * {@code char} array, where only array elements with + * {@code index} greater than or equal to {@code start} + * can be used. If the {@code char} value at {@code (index - 1)} + * in the {@code char} array is in the + * low-surrogate range, {@code (index - 2)} is not less than + * {@code start}, and the {@code char} value at + * {@code (index - 2)} in the {@code char} array is in + * the high-surrogate range, then the supplementary code point + * corresponding to this surrogate pair is returned. Otherwise, + * the {@code char} value at {@code (index - 1)} is + * returned. + */ + // @ts-ignore + public static codePointBefore(a: string, index: number, start: number): number; + /** + * Returns the leading surrogate (a + * + * high surrogate code unit) of the + * + * surrogate pair + * representing the specified supplementary character (Unicode + * code point) in the UTF-16 encoding. If the specified character + * is not a + * supplementary character, + * an unspecified {@code char} is returned. + *

If + * {@link #isSupplementaryCodePoint isSupplementaryCodePoint(x)} + * is {@code true}, then + * {@link #isHighSurrogate isHighSurrogate}{@code (highSurrogate(x))} and + * {@link #toCodePoint toCodePoint}{@code (highSurrogate(x), }{@link #lowSurrogate lowSurrogate}{@code (x)) == x} + * are also always {@code true}. + */ + // @ts-ignore + public static highSurrogate(codePoint: number): string; + /** + * Returns the trailing surrogate (a + * + * low surrogate code unit) of the + * + * surrogate pair + * representing the specified supplementary character (Unicode + * code point) in the UTF-16 encoding. If the specified character + * is not a + * supplementary character, + * an unspecified {@code char} is returned. + *

If + * {@link #isSupplementaryCodePoint isSupplementaryCodePoint(x)} + * is {@code true}, then + * {@link #isLowSurrogate isLowSurrogate}{@code (lowSurrogate(x))} and + * {@link #toCodePoint toCodePoint}{@code (}{@link #highSurrogate highSurrogate}{@code (x), lowSurrogate(x)) == x} + * are also always {@code true}. + */ + // @ts-ignore + public static lowSurrogate(codePoint: number): string; + /** + * Converts the specified character (Unicode code point) to its + * UTF-16 representation. If the specified code point is a BMP + * (Basic Multilingual Plane or Plane 0) value, the same value is + * stored in {@code dst[dstIndex]}, and 1 is returned. If the + * specified code point is a supplementary character, its + * surrogate values are stored in {@code dst[dstIndex]} + * (high-surrogate) and {@code dst[dstIndex+1]} + * (low-surrogate), and 2 is returned. + */ + // @ts-ignore + public static toChars(codePoint: number, dst: string, dstIndex: number): number; + /** + * Converts the specified character (Unicode code point) to its + * UTF-16 representation stored in a {@code char} array. If + * the specified code point is a BMP (Basic Multilingual Plane or + * Plane 0) value, the resulting {@code char} array has + * the same value as {@code codePoint}. If the specified code + * point is a supplementary code point, the resulting + * {@code char} array has the corresponding surrogate pair. + */ + // @ts-ignore + public static toChars(codePoint: number): string[]; + /** + * Returns the number of Unicode code points in the text range of + * the specified char sequence. The text range begins at the + * specified {@code beginIndex} and extends to the + * {@code char} at index {@code endIndex - 1}. Thus the + * length (in {@code char}s) of the text range is + * {@code endIndex-beginIndex}. Unpaired surrogates within + * the text range count as one code point each. + */ + // @ts-ignore + public static codePointCount(seq: java.lang.CharSequence, beginIndex: number, endIndex: number): number; + /** + * Returns the number of Unicode code points in a subarray of the + * {@code char} array argument. The {@code offset} + * argument is the index of the first {@code char} of the + * subarray and the {@code count} argument specifies the + * length of the subarray in {@code char}s. Unpaired + * surrogates within the subarray count as one code point each. + */ + // @ts-ignore + public static codePointCount(a: string, offset: number, count: number): number; + /** + * Returns the index within the given char sequence that is offset + * from the given {@code index} by {@code codePointOffset} + * code points. Unpaired surrogates within the text range given by + * {@code index} and {@code codePointOffset} count as + * one code point each. + */ + // @ts-ignore + public static offsetByCodePoints(seq: java.lang.CharSequence, index: number, codePointOffset: number): number; + /** + * Returns the index within the given {@code char} subarray + * that is offset from the given {@code index} by + * {@code codePointOffset} code points. The + * {@code start} and {@code count} arguments specify a + * subarray of the {@code char} array. Unpaired surrogates + * within the text range given by {@code index} and + * {@code codePointOffset} count as one code point each. + */ + // @ts-ignore + public static offsetByCodePoints(a: string, start: number, count: number, index: number, codePointOffset: number): number; + /** + * Determines if the specified character is a lowercase character. + *

+ * A character is lowercase if its general category type, provided + * by {@code Character.getType(ch)}, is + * {@code LOWERCASE_LETTER}, or it has contributory property + * Other_Lowercase as defined by the Unicode Standard. + *

+ * The following are examples of lowercase characters: + *

+             * a b c d e f g h i j k l m n o p q r s t u v w x y z
+             * '\u00DF' '\u00E0' '\u00E1' '\u00E2' '\u00E3' '\u00E4' '\u00E5' '\u00E6'
+             * '\u00E7' '\u00E8' '\u00E9' '\u00EA' '\u00EB' '\u00EC' '\u00ED' '\u00EE'
+             * '\u00EF' '\u00F0' '\u00F1' '\u00F2' '\u00F3' '\u00F4' '\u00F5' '\u00F6'
+             * '\u00F8' '\u00F9' '\u00FA' '\u00FB' '\u00FC' '\u00FD' '\u00FE' '\u00FF'
+             * 
+ *

Many other Unicode characters are lowercase too. + *

Note: This method cannot handle supplementary characters. To support + * all Unicode characters, including supplementary characters, use + * the {@link #isLowerCase(int)} method. + */ + // @ts-ignore + public static isLowerCase(ch: string): boolean; + /** + * Determines if the specified character (Unicode code point) is a + * lowercase character. + *

+ * A character is lowercase if its general category type, provided + * by {@link Character#getType getType(codePoint)}, is + * {@code LOWERCASE_LETTER}, or it has contributory property + * Other_Lowercase as defined by the Unicode Standard. + *

+ * The following are examples of lowercase characters: + *

+             * a b c d e f g h i j k l m n o p q r s t u v w x y z
+             * '\u00DF' '\u00E0' '\u00E1' '\u00E2' '\u00E3' '\u00E4' '\u00E5' '\u00E6'
+             * '\u00E7' '\u00E8' '\u00E9' '\u00EA' '\u00EB' '\u00EC' '\u00ED' '\u00EE'
+             * '\u00EF' '\u00F0' '\u00F1' '\u00F2' '\u00F3' '\u00F4' '\u00F5' '\u00F6'
+             * '\u00F8' '\u00F9' '\u00FA' '\u00FB' '\u00FC' '\u00FD' '\u00FE' '\u00FF'
+             * 
+ *

Many other Unicode characters are lowercase too. + */ + // @ts-ignore + public static isLowerCase(codePoint: number): boolean; + /** + * Determines if the specified character is an uppercase character. + *

+ * A character is uppercase if its general category type, provided by + * {@code Character.getType(ch)}, is {@code UPPERCASE_LETTER}. + * or it has contributory property Other_Uppercase as defined by the Unicode Standard. + *

+ * The following are examples of uppercase characters: + *

+             * A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
+             * '\u00C0' '\u00C1' '\u00C2' '\u00C3' '\u00C4' '\u00C5' '\u00C6' '\u00C7'
+             * '\u00C8' '\u00C9' '\u00CA' '\u00CB' '\u00CC' '\u00CD' '\u00CE' '\u00CF'
+             * '\u00D0' '\u00D1' '\u00D2' '\u00D3' '\u00D4' '\u00D5' '\u00D6' '\u00D8'
+             * '\u00D9' '\u00DA' '\u00DB' '\u00DC' '\u00DD' '\u00DE'
+             * 
+ *

Many other Unicode characters are uppercase too. + *

Note: This method cannot handle supplementary characters. To support + * all Unicode characters, including supplementary characters, use + * the {@link #isUpperCase(int)} method. + */ + // @ts-ignore + public static isUpperCase(ch: string): boolean; + /** + * Determines if the specified character (Unicode code point) is an uppercase character. + *

+ * A character is uppercase if its general category type, provided by + * {@link Character#getType(int) getType(codePoint)}, is {@code UPPERCASE_LETTER}, + * or it has contributory property Other_Uppercase as defined by the Unicode Standard. + *

+ * The following are examples of uppercase characters: + *

+             * A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
+             * '\u00C0' '\u00C1' '\u00C2' '\u00C3' '\u00C4' '\u00C5' '\u00C6' '\u00C7'
+             * '\u00C8' '\u00C9' '\u00CA' '\u00CB' '\u00CC' '\u00CD' '\u00CE' '\u00CF'
+             * '\u00D0' '\u00D1' '\u00D2' '\u00D3' '\u00D4' '\u00D5' '\u00D6' '\u00D8'
+             * '\u00D9' '\u00DA' '\u00DB' '\u00DC' '\u00DD' '\u00DE'
+             * 
+ *

Many other Unicode characters are uppercase too.

+ */ + // @ts-ignore + public static isUpperCase(codePoint: number): boolean; + /** + * Determines if the specified character is a titlecase character. + *

+ * A character is a titlecase character if its general + * category type, provided by {@code Character.getType(ch)}, + * is {@code TITLECASE_LETTER}. + *

+ * Some characters look like pairs of Latin letters. For example, there + * is an uppercase letter that looks like "LJ" and has a corresponding + * lowercase letter that looks like "lj". A third form, which looks like "Lj", + * is the appropriate form to use when rendering a word in lowercase + * with initial capitals, as for a book title. + *

+ * These are some of the Unicode characters for which this method returns + * {@code true}: + *

    + *
  • {@code LATIN CAPITAL LETTER D WITH SMALL LETTER Z WITH CARON} + *
  • {@code LATIN CAPITAL LETTER L WITH SMALL LETTER J} + *
  • {@code LATIN CAPITAL LETTER N WITH SMALL LETTER J} + *
  • {@code LATIN CAPITAL LETTER D WITH SMALL LETTER Z} + *
+ *

Many other Unicode characters are titlecase too. + *

Note: This method cannot handle supplementary characters. To support + * all Unicode characters, including supplementary characters, use + * the {@link #isTitleCase(int)} method. + */ + // @ts-ignore + public static isTitleCase(ch: string): boolean; + /** + * Determines if the specified character (Unicode code point) is a titlecase character. + *

+ * A character is a titlecase character if its general + * category type, provided by {@link Character#getType(int) getType(codePoint)}, + * is {@code TITLECASE_LETTER}. + *

+ * Some characters look like pairs of Latin letters. For example, there + * is an uppercase letter that looks like "LJ" and has a corresponding + * lowercase letter that looks like "lj". A third form, which looks like "Lj", + * is the appropriate form to use when rendering a word in lowercase + * with initial capitals, as for a book title. + *

+ * These are some of the Unicode characters for which this method returns + * {@code true}: + *

    + *
  • {@code LATIN CAPITAL LETTER D WITH SMALL LETTER Z WITH CARON} + *
  • {@code LATIN CAPITAL LETTER L WITH SMALL LETTER J} + *
  • {@code LATIN CAPITAL LETTER N WITH SMALL LETTER J} + *
  • {@code LATIN CAPITAL LETTER D WITH SMALL LETTER Z} + *
+ *

Many other Unicode characters are titlecase too.

+ */ + // @ts-ignore + public static isTitleCase(codePoint: number): boolean; + /** + * Determines if the specified character is a digit. + *

+ * A character is a digit if its general category type, provided + * by {@code Character.getType(ch)}, is + * {@code DECIMAL_DIGIT_NUMBER}. + *

+ * Some Unicode character ranges that contain digits: + *

    + *
  • {@code '\u0030'} through {@code '\u0039'}, + * ISO-LATIN-1 digits ({@code '0'} through {@code '9'}) + *
  • {@code '\u0660'} through {@code '\u0669'}, + * Arabic-Indic digits + *
  • {@code '\u06F0'} through {@code '\u06F9'}, + * Extended Arabic-Indic digits + *
  • {@code '\u0966'} through {@code '\u096F'}, + * Devanagari digits + *
  • {@code '\uFF10'} through {@code '\uFF19'}, + * Fullwidth digits + *
+ * Many other character ranges contain digits as well. + *

Note: This method cannot handle supplementary characters. To support + * all Unicode characters, including supplementary characters, use + * the {@link #isDigit(int)} method. + */ + // @ts-ignore + public static isDigit(ch: string): boolean; + /** + * Determines if the specified character (Unicode code point) is a digit. + *

+ * A character is a digit if its general category type, provided + * by {@link Character#getType(int) getType(codePoint)}, is + * {@code DECIMAL_DIGIT_NUMBER}. + *

+ * Some Unicode character ranges that contain digits: + *

    + *
  • {@code '\u0030'} through {@code '\u0039'}, + * ISO-LATIN-1 digits ({@code '0'} through {@code '9'}) + *
  • {@code '\u0660'} through {@code '\u0669'}, + * Arabic-Indic digits + *
  • {@code '\u06F0'} through {@code '\u06F9'}, + * Extended Arabic-Indic digits + *
  • {@code '\u0966'} through {@code '\u096F'}, + * Devanagari digits + *
  • {@code '\uFF10'} through {@code '\uFF19'}, + * Fullwidth digits + *
+ * Many other character ranges contain digits as well. + */ + // @ts-ignore + public static isDigit(codePoint: number): boolean; + /** + * Determines if a character is defined in Unicode. + *

+ * A character is defined if at least one of the following is true: + *

    + *
  • It has an entry in the UnicodeData file. + *
  • It has a value in a range defined by the UnicodeData file. + *
+ *

Note: This method cannot handle supplementary characters. To support + * all Unicode characters, including supplementary characters, use + * the {@link #isDefined(int)} method. + */ + // @ts-ignore + public static isDefined(ch: string): boolean; + /** + * Determines if a character (Unicode code point) is defined in Unicode. + *

+ * A character is defined if at least one of the following is true: + *

    + *
  • It has an entry in the UnicodeData file. + *
  • It has a value in a range defined by the UnicodeData file. + *
+ */ + // @ts-ignore + public static isDefined(codePoint: number): boolean; + /** + * Determines if the specified character is a letter. + *

+ * A character is considered to be a letter if its general + * category type, provided by {@code Character.getType(ch)}, + * is any of the following: + *

    + *
  • {@code UPPERCASE_LETTER} + *
  • {@code LOWERCASE_LETTER} + *
  • {@code TITLECASE_LETTER} + *
  • {@code MODIFIER_LETTER} + *
  • {@code OTHER_LETTER} + *
+ * Not all letters have case. Many characters are + * letters but are neither uppercase nor lowercase nor titlecase. + *

Note: This method cannot handle supplementary characters. To support + * all Unicode characters, including supplementary characters, use + * the {@link #isLetter(int)} method. + */ + // @ts-ignore + public static isLetter(ch: string): boolean; + /** + * Determines if the specified character (Unicode code point) is a letter. + *

+ * A character is considered to be a letter if its general + * category type, provided by {@link Character#getType(int) getType(codePoint)}, + * is any of the following: + *

    + *
  • {@code UPPERCASE_LETTER} + *
  • {@code LOWERCASE_LETTER} + *
  • {@code TITLECASE_LETTER} + *
  • {@code MODIFIER_LETTER} + *
  • {@code OTHER_LETTER} + *
+ * Not all letters have case. Many characters are + * letters but are neither uppercase nor lowercase nor titlecase. + */ + // @ts-ignore + public static isLetter(codePoint: number): boolean; + /** + * Determines if the specified character is a letter or digit. + *

+ * A character is considered to be a letter or digit if either + * {@code Character.isLetter(char ch)} or + * {@code Character.isDigit(char ch)} returns + * {@code true} for the character. + *

Note: This method cannot handle supplementary characters. To support + * all Unicode characters, including supplementary characters, use + * the {@link #isLetterOrDigit(int)} method. + */ + // @ts-ignore + public static isLetterOrDigit(ch: string): boolean; + /** + * Determines if the specified character (Unicode code point) is a letter or digit. + *

+ * A character is considered to be a letter or digit if either + * {@link #isLetter(int) isLetter(codePoint)} or + * {@link #isDigit(int) isDigit(codePoint)} returns + * {@code true} for the character. + */ + // @ts-ignore + public static isLetterOrDigit(codePoint: number): boolean; + /** + * Determines if the specified character is permissible as the first + * character in a Java identifier. + *

+ * A character may start a Java identifier if and only if + * one of the following is true: + *

    + *
  • {@link #isLetter(char) isLetter(ch)} returns {@code true} + *
  • {@link #getType(char) getType(ch)} returns {@code LETTER_NUMBER} + *
  • {@code ch} is a currency symbol (such as {@code '$'}) + *
  • {@code ch} is a connecting punctuation character (such as {@code '_'}). + *
+ */ + // @ts-ignore + public static isJavaLetter(ch: string): boolean; + /** + * Determines if the specified character may be part of a Java + * identifier as other than the first character. + *

+ * A character may be part of a Java identifier if and only if any + * of the following are true: + *

    + *
  • it is a letter + *
  • it is a currency symbol (such as {@code '$'}) + *
  • it is a connecting punctuation character (such as {@code '_'}) + *
  • it is a digit + *
  • it is a numeric letter (such as a Roman numeral character) + *
  • it is a combining mark + *
  • it is a non-spacing mark + *
  • {@code isIdentifierIgnorable} returns + * {@code true} for the character. + *
+ */ + // @ts-ignore + public static isJavaLetterOrDigit(ch: string): boolean; + /** + * Determines if the specified character (Unicode code point) is an alphabet. + *

+ * A character is considered to be alphabetic if its general category type, + * provided by {@link Character#getType(int) getType(codePoint)}, is any of + * the following: + *

    + *
  • UPPERCASE_LETTER + *
  • LOWERCASE_LETTER + *
  • TITLECASE_LETTER + *
  • MODIFIER_LETTER + *
  • OTHER_LETTER + *
  • LETTER_NUMBER + *
+ * or it has contributory property Other_Alphabetic as defined by the + * Unicode Standard. + */ + // @ts-ignore + public static isAlphabetic(codePoint: number): boolean; + /** + * Determines if the specified character (Unicode code point) is a CJKV + * (Chinese, Japanese, Korean and Vietnamese) ideograph, as defined by + * the Unicode Standard. + */ + // @ts-ignore + public static isIdeographic(codePoint: number): boolean; + /** + * Determines if the specified character is + * permissible as the first character in a Java identifier. + *

+ * A character may start a Java identifier if and only if + * one of the following conditions is true: + *

    + *
  • {@link #isLetter(char) isLetter(ch)} returns {@code true} + *
  • {@link #getType(char) getType(ch)} returns {@code LETTER_NUMBER} + *
  • {@code ch} is a currency symbol (such as {@code '$'}) + *
  • {@code ch} is a connecting punctuation character (such as {@code '_'}). + *
+ *

Note: This method cannot handle supplementary characters. To support + * all Unicode characters, including supplementary characters, use + * the {@link #isJavaIdentifierStart(int)} method. + */ + // @ts-ignore + public static isJavaIdentifierStart(ch: string): boolean; + /** + * Determines if the character (Unicode code point) is + * permissible as the first character in a Java identifier. + *

+ * A character may start a Java identifier if and only if + * one of the following conditions is true: + *

    + *
  • {@link #isLetter(int) isLetter(codePoint)} + * returns {@code true} + *
  • {@link #getType(int) getType(codePoint)} + * returns {@code LETTER_NUMBER} + *
  • the referenced character is a currency symbol (such as {@code '$'}) + *
  • the referenced character is a connecting punctuation character + * (such as {@code '_'}). + *
+ */ + // @ts-ignore + public static isJavaIdentifierStart(codePoint: number): boolean; + /** + * Determines if the specified character may be part of a Java + * identifier as other than the first character. + *

+ * A character may be part of a Java identifier if any of the following + * are true: + *

    + *
  • it is a letter + *
  • it is a currency symbol (such as {@code '$'}) + *
  • it is a connecting punctuation character (such as {@code '_'}) + *
  • it is a digit + *
  • it is a numeric letter (such as a Roman numeral character) + *
  • it is a combining mark + *
  • it is a non-spacing mark + *
  • {@code isIdentifierIgnorable} returns + * {@code true} for the character + *
+ *

Note: This method cannot handle supplementary characters. To support + * all Unicode characters, including supplementary characters, use + * the {@link #isJavaIdentifierPart(int)} method. + */ + // @ts-ignore + public static isJavaIdentifierPart(ch: string): boolean; + /** + * Determines if the character (Unicode code point) may be part of a Java + * identifier as other than the first character. + *

+ * A character may be part of a Java identifier if any of the following + * are true: + *

    + *
  • it is a letter + *
  • it is a currency symbol (such as {@code '$'}) + *
  • it is a connecting punctuation character (such as {@code '_'}) + *
  • it is a digit + *
  • it is a numeric letter (such as a Roman numeral character) + *
  • it is a combining mark + *
  • it is a non-spacing mark + *
  • {@link #isIdentifierIgnorable(int) + * isIdentifierIgnorable(codePoint)} returns {@code true} for + * the character + *
+ */ + // @ts-ignore + public static isJavaIdentifierPart(codePoint: number): boolean; + /** + * Determines if the specified character is permissible as the + * first character in a Unicode identifier. + *

+ * A character may start a Unicode identifier if and only if + * one of the following conditions is true: + *

    + *
  • {@link #isLetter(char) isLetter(ch)} returns {@code true} + *
  • {@link #getType(char) getType(ch)} returns + * {@code LETTER_NUMBER}. + *
+ *

Note: This method cannot handle supplementary characters. To support + * all Unicode characters, including supplementary characters, use + * the {@link #isUnicodeIdentifierStart(int)} method. + */ + // @ts-ignore + public static isUnicodeIdentifierStart(ch: string): boolean; + /** + * Determines if the specified character (Unicode code point) is permissible as the + * first character in a Unicode identifier. + *

+ * A character may start a Unicode identifier if and only if + * one of the following conditions is true: + *

    + *
  • {@link #isLetter(int) isLetter(codePoint)} + * returns {@code true} + *
  • {@link #getType(int) getType(codePoint)} + * returns {@code LETTER_NUMBER}. + *
+ */ + // @ts-ignore + public static isUnicodeIdentifierStart(codePoint: number): boolean; + /** + * Determines if the specified character may be part of a Unicode + * identifier as other than the first character. + *

+ * A character may be part of a Unicode identifier if and only if + * one of the following statements is true: + *

    + *
  • it is a letter + *
  • it is a connecting punctuation character (such as {@code '_'}) + *
  • it is a digit + *
  • it is a numeric letter (such as a Roman numeral character) + *
  • it is a combining mark + *
  • it is a non-spacing mark + *
  • {@code isIdentifierIgnorable} returns + * {@code true} for this character. + *
+ *

Note: This method cannot handle supplementary characters. To support + * all Unicode characters, including supplementary characters, use + * the {@link #isUnicodeIdentifierPart(int)} method. + */ + // @ts-ignore + public static isUnicodeIdentifierPart(ch: string): boolean; + /** + * Determines if the specified character (Unicode code point) may be part of a Unicode + * identifier as other than the first character. + *

+ * A character may be part of a Unicode identifier if and only if + * one of the following statements is true: + *

    + *
  • it is a letter + *
  • it is a connecting punctuation character (such as {@code '_'}) + *
  • it is a digit + *
  • it is a numeric letter (such as a Roman numeral character) + *
  • it is a combining mark + *
  • it is a non-spacing mark + *
  • {@code isIdentifierIgnorable} returns + * {@code true} for this character. + *
+ */ + // @ts-ignore + public static isUnicodeIdentifierPart(codePoint: number): boolean; + /** + * Determines if the specified character should be regarded as + * an ignorable character in a Java identifier or a Unicode identifier. + *

+ * The following Unicode characters are ignorable in a Java identifier + * or a Unicode identifier: + *

    + *
  • ISO control characters that are not whitespace + *
      + *
    • {@code '\u0000'} through {@code '\u0008'} + *
    • {@code '\u000E'} through {@code '\u001B'} + *
    • {@code '\u007F'} through {@code '\u009F'} + *
    + *
  • all characters that have the {@code FORMAT} general + * category value + *
+ *

Note: This method cannot handle supplementary characters. To support + * all Unicode characters, including supplementary characters, use + * the {@link #isIdentifierIgnorable(int)} method. + */ + // @ts-ignore + public static isIdentifierIgnorable(ch: string): boolean; + /** + * Determines if the specified character (Unicode code point) should be regarded as + * an ignorable character in a Java identifier or a Unicode identifier. + *

+ * The following Unicode characters are ignorable in a Java identifier + * or a Unicode identifier: + *

    + *
  • ISO control characters that are not whitespace + *
      + *
    • {@code '\u0000'} through {@code '\u0008'} + *
    • {@code '\u000E'} through {@code '\u001B'} + *
    • {@code '\u007F'} through {@code '\u009F'} + *
    + *
  • all characters that have the {@code FORMAT} general + * category value + *
+ */ + // @ts-ignore + public static isIdentifierIgnorable(codePoint: number): boolean; + /** + * Converts the character argument to lowercase using case + * mapping information from the UnicodeData file. + *

+ * Note that + * {@code Character.isLowerCase(Character.toLowerCase(ch))} + * does not always return {@code true} for some ranges of + * characters, particularly those that are symbols or ideographs. + *

In general, {@link String#toLowerCase()} should be used to map + * characters to lowercase. {@code String} case mapping methods + * have several benefits over {@code Character} case mapping methods. + * {@code String} case mapping methods can perform locale-sensitive + * mappings, context-sensitive mappings, and 1:M character mappings, whereas + * the {@code Character} case mapping methods cannot. + *

Note: This method cannot handle supplementary characters. To support + * all Unicode characters, including supplementary characters, use + * the {@link #toLowerCase(int)} method. + */ + // @ts-ignore + public static toLowerCase(ch: string): string; + /** + * Converts the character (Unicode code point) argument to + * lowercase using case mapping information from the UnicodeData + * file. + *

Note that + * {@code Character.isLowerCase(Character.toLowerCase(codePoint))} + * does not always return {@code true} for some ranges of + * characters, particularly those that are symbols or ideographs. + *

In general, {@link String#toLowerCase()} should be used to map + * characters to lowercase. {@code String} case mapping methods + * have several benefits over {@code Character} case mapping methods. + * {@code String} case mapping methods can perform locale-sensitive + * mappings, context-sensitive mappings, and 1:M character mappings, whereas + * the {@code Character} case mapping methods cannot. + */ + // @ts-ignore + public static toLowerCase(codePoint: number): number; + /** + * Converts the character argument to uppercase using case mapping + * information from the UnicodeData file. + *

+ * Note that + * {@code Character.isUpperCase(Character.toUpperCase(ch))} + * does not always return {@code true} for some ranges of + * characters, particularly those that are symbols or ideographs. + *

In general, {@link String#toUpperCase()} should be used to map + * characters to uppercase. {@code String} case mapping methods + * have several benefits over {@code Character} case mapping methods. + * {@code String} case mapping methods can perform locale-sensitive + * mappings, context-sensitive mappings, and 1:M character mappings, whereas + * the {@code Character} case mapping methods cannot. + *

Note: This method cannot handle supplementary characters. To support + * all Unicode characters, including supplementary characters, use + * the {@link #toUpperCase(int)} method. + */ + // @ts-ignore + public static toUpperCase(ch: string): string; + /** + * Converts the character (Unicode code point) argument to + * uppercase using case mapping information from the UnicodeData + * file. + *

Note that + * {@code Character.isUpperCase(Character.toUpperCase(codePoint))} + * does not always return {@code true} for some ranges of + * characters, particularly those that are symbols or ideographs. + *

In general, {@link String#toUpperCase()} should be used to map + * characters to uppercase. {@code String} case mapping methods + * have several benefits over {@code Character} case mapping methods. + * {@code String} case mapping methods can perform locale-sensitive + * mappings, context-sensitive mappings, and 1:M character mappings, whereas + * the {@code Character} case mapping methods cannot. + */ + // @ts-ignore + public static toUpperCase(codePoint: number): number; + /** + * Converts the character argument to titlecase using case mapping + * information from the UnicodeData file. If a character has no + * explicit titlecase mapping and is not itself a titlecase char + * according to UnicodeData, then the uppercase mapping is + * returned as an equivalent titlecase mapping. If the + * {@code char} argument is already a titlecase + * {@code char}, the same {@code char} value will be + * returned. + *

+ * Note that + * {@code Character.isTitleCase(Character.toTitleCase(ch))} + * does not always return {@code true} for some ranges of + * characters. + *

Note: This method cannot handle supplementary characters. To support + * all Unicode characters, including supplementary characters, use + * the {@link #toTitleCase(int)} method. + */ + // @ts-ignore + public static toTitleCase(ch: string): string; + /** + * Converts the character (Unicode code point) argument to titlecase using case mapping + * information from the UnicodeData file. If a character has no + * explicit titlecase mapping and is not itself a titlecase char + * according to UnicodeData, then the uppercase mapping is + * returned as an equivalent titlecase mapping. If the + * character argument is already a titlecase + * character, the same character value will be + * returned. + *

Note that + * {@code Character.isTitleCase(Character.toTitleCase(codePoint))} + * does not always return {@code true} for some ranges of + * characters. + */ + // @ts-ignore + public static toTitleCase(codePoint: number): number; + /** + * Returns the numeric value of the character {@code ch} in the + * specified radix. + *

+ * If the radix is not in the range {@code MIN_RADIX} ≤ + * {@code radix} ≤ {@code MAX_RADIX} or if the + * value of {@code ch} is not a valid digit in the specified + * radix, {@code -1} is returned. A character is a valid digit + * if at least one of the following is true: + *

    + *
  • The method {@code isDigit} is {@code true} of the character + * and the Unicode decimal digit value of the character (or its + * single-character decomposition) is less than the specified radix. + * In this case the decimal digit value is returned. + *
  • The character is one of the uppercase Latin letters + * {@code 'A'} through {@code 'Z'} and its code is less than + * {@code radix + 'A' - 10}. + * In this case, {@code ch - 'A' + 10} + * is returned. + *
  • The character is one of the lowercase Latin letters + * {@code 'a'} through {@code 'z'} and its code is less than + * {@code radix + 'a' - 10}. + * In this case, {@code ch - 'a' + 10} + * is returned. + *
  • The character is one of the fullwidth uppercase Latin letters A + * ({@code '\uFF21'}) through Z ({@code '\uFF3A'}) + * and its code is less than + * {@code radix + '\uFF21' - 10}. + * In this case, {@code ch - '\uFF21' + 10} + * is returned. + *
  • The character is one of the fullwidth lowercase Latin letters a + * ({@code '\uFF41'}) through z ({@code '\uFF5A'}) + * and its code is less than + * {@code radix + '\uFF41' - 10}. + * In this case, {@code ch - '\uFF41' + 10} + * is returned. + *
+ *

Note: This method cannot handle supplementary characters. To support + * all Unicode characters, including supplementary characters, use + * the {@link #digit(int, int)} method. + */ + // @ts-ignore + public static digit(ch: string, radix: number): number; + /** + * Returns the numeric value of the specified character (Unicode + * code point) in the specified radix. + *

If the radix is not in the range {@code MIN_RADIX} ≤ + * {@code radix} ≤ {@code MAX_RADIX} or if the + * character is not a valid digit in the specified + * radix, {@code -1} is returned. A character is a valid digit + * if at least one of the following is true: + *

    + *
  • The method {@link #isDigit(int) isDigit(codePoint)} is {@code true} of the character + * and the Unicode decimal digit value of the character (or its + * single-character decomposition) is less than the specified radix. + * In this case the decimal digit value is returned. + *
  • The character is one of the uppercase Latin letters + * {@code 'A'} through {@code 'Z'} and its code is less than + * {@code radix + 'A' - 10}. + * In this case, {@code codePoint - 'A' + 10} + * is returned. + *
  • The character is one of the lowercase Latin letters + * {@code 'a'} through {@code 'z'} and its code is less than + * {@code radix + 'a' - 10}. + * In this case, {@code codePoint - 'a' + 10} + * is returned. + *
  • The character is one of the fullwidth uppercase Latin letters A + * ({@code '\uFF21'}) through Z ({@code '\uFF3A'}) + * and its code is less than + * {@code radix + '\uFF21' - 10}. + * In this case, + * {@code codePoint - '\uFF21' + 10} + * is returned. + *
  • The character is one of the fullwidth lowercase Latin letters a + * ({@code '\uFF41'}) through z ({@code '\uFF5A'}) + * and its code is less than + * {@code radix + '\uFF41'- 10}. + * In this case, + * {@code codePoint - '\uFF41' + 10} + * is returned. + *
+ */ + // @ts-ignore + public static digit(codePoint: number, radix: number): number; + /** + * Returns the {@code int} value that the specified Unicode + * character represents. For example, the character + * {@code '\u216C'} (the roman numeral fifty) will return + * an int with a value of 50. + *

+ * The letters A-Z in their uppercase ({@code '\u0041'} through + * {@code '\u005A'}), lowercase + * ({@code '\u0061'} through {@code '\u007A'}), and + * full width variant ({@code '\uFF21'} through + * {@code '\uFF3A'} and {@code '\uFF41'} through + * {@code '\uFF5A'}) forms have numeric values from 10 + * through 35. This is independent of the Unicode specification, + * which does not assign numeric values to these {@code char} + * values. + *

+ * If the character does not have a numeric value, then -1 is returned. + * If the character has a numeric value that cannot be represented as a + * nonnegative integer (for example, a fractional value), then -2 + * is returned. + *

Note: This method cannot handle supplementary characters. To support + * all Unicode characters, including supplementary characters, use + * the {@link #getNumericValue(int)} method. + */ + // @ts-ignore + public static getNumericValue(ch: string): number; + /** + * Returns the {@code int} value that the specified + * character (Unicode code point) represents. For example, the character + * {@code '\u216C'} (the Roman numeral fifty) will return + * an {@code int} with a value of 50. + *

+ * The letters A-Z in their uppercase ({@code '\u0041'} through + * {@code '\u005A'}), lowercase + * ({@code '\u0061'} through {@code '\u007A'}), and + * full width variant ({@code '\uFF21'} through + * {@code '\uFF3A'} and {@code '\uFF41'} through + * {@code '\uFF5A'}) forms have numeric values from 10 + * through 35. This is independent of the Unicode specification, + * which does not assign numeric values to these {@code char} + * values. + *

+ * If the character does not have a numeric value, then -1 is returned. + * If the character has a numeric value that cannot be represented as a + * nonnegative integer (for example, a fractional value), then -2 + * is returned. + */ + // @ts-ignore + public static getNumericValue(codePoint: number): number; + /** + * Determines if the specified character is ISO-LATIN-1 white space. + * This method returns {@code true} for the following five + * characters only: + * + * + * + * + * + * + * + * + * + * + * + *
{@code '\t'} {@code U+0009}{@code HORIZONTAL TABULATION}
{@code '\n'} {@code U+000A}{@code NEW LINE}
{@code '\f'} {@code U+000C}{@code FORM FEED}
{@code '\r'} {@code U+000D}{@code CARRIAGE RETURN}
{@code ' '} {@code U+0020}{@code SPACE}
+ */ + // @ts-ignore + public static isSpace(ch: string): boolean; + /** + * Determines if the specified character is a Unicode space character. + * A character is considered to be a space character if and only if + * it is specified to be a space character by the Unicode Standard. This + * method returns true if the character's general category type is any of + * the following: + *

    + *
  • {@code SPACE_SEPARATOR} + *
  • {@code LINE_SEPARATOR} + *
  • {@code PARAGRAPH_SEPARATOR} + *
+ *

Note: This method cannot handle supplementary characters. To support + * all Unicode characters, including supplementary characters, use + * the {@link #isSpaceChar(int)} method. + */ + // @ts-ignore + public static isSpaceChar(ch: string): boolean; + /** + * Determines if the specified character (Unicode code point) is a + * Unicode space character. A character is considered to be a + * space character if and only if it is specified to be a space + * character by the Unicode Standard. This method returns true if + * the character's general category type is any of the following: + *

    + *
  • {@link #SPACE_SEPARATOR} + *
  • {@link #LINE_SEPARATOR} + *
  • {@link #PARAGRAPH_SEPARATOR} + *
+ */ + // @ts-ignore + public static isSpaceChar(codePoint: number): boolean; + /** + * Determines if the specified character is white space according to Java. + * A character is a Java whitespace character if and only if it satisfies + * one of the following criteria: + *
    + *
  • It is a Unicode space character ({@code SPACE_SEPARATOR}, + * {@code LINE_SEPARATOR}, or {@code PARAGRAPH_SEPARATOR}) + * but is not also a non-breaking space ({@code '\u00A0'}, + * {@code '\u2007'}, {@code '\u202F'}). + *
  • It is {@code '\t'}, U+0009 HORIZONTAL TABULATION. + *
  • It is {@code '\n'}, U+000A LINE FEED. + *
  • It is {@code '\u000B'}, U+000B VERTICAL TABULATION. + *
  • It is {@code '\f'}, U+000C FORM FEED. + *
  • It is {@code '\r'}, U+000D CARRIAGE RETURN. + *
  • It is {@code '\u001C'}, U+001C FILE SEPARATOR. + *
  • It is {@code '\u001D'}, U+001D GROUP SEPARATOR. + *
  • It is {@code '\u001E'}, U+001E RECORD SEPARATOR. + *
  • It is {@code '\u001F'}, U+001F UNIT SEPARATOR. + *
+ *

Note: This method cannot handle supplementary characters. To support + * all Unicode characters, including supplementary characters, use + * the {@link #isWhitespace(int)} method. + */ + // @ts-ignore + public static isWhitespace(ch: string): boolean; + /** + * Determines if the specified character (Unicode code point) is + * white space according to Java. A character is a Java + * whitespace character if and only if it satisfies one of the + * following criteria: + *

    + *
  • It is a Unicode space character ({@link #SPACE_SEPARATOR}, + * {@link #LINE_SEPARATOR}, or {@link #PARAGRAPH_SEPARATOR}) + * but is not also a non-breaking space ({@code '\u00A0'}, + * {@code '\u2007'}, {@code '\u202F'}). + *
  • It is {@code '\t'}, U+0009 HORIZONTAL TABULATION. + *
  • It is {@code '\n'}, U+000A LINE FEED. + *
  • It is {@code '\u000B'}, U+000B VERTICAL TABULATION. + *
  • It is {@code '\f'}, U+000C FORM FEED. + *
  • It is {@code '\r'}, U+000D CARRIAGE RETURN. + *
  • It is {@code '\u001C'}, U+001C FILE SEPARATOR. + *
  • It is {@code '\u001D'}, U+001D GROUP SEPARATOR. + *
  • It is {@code '\u001E'}, U+001E RECORD SEPARATOR. + *
  • It is {@code '\u001F'}, U+001F UNIT SEPARATOR. + *
+ *

+ */ + // @ts-ignore + public static isWhitespace(codePoint: number): boolean; + /** + * Determines if the specified character is an ISO control + * character. A character is considered to be an ISO control + * character if its code is in the range {@code '\u0000'} + * through {@code '\u001F'} or in the range + * {@code '\u007F'} through {@code '\u009F'}. + *

Note: This method cannot handle supplementary characters. To support + * all Unicode characters, including supplementary characters, use + * the {@link #isISOControl(int)} method. + */ + // @ts-ignore + public static isISOControl(ch: string): boolean; + /** + * Determines if the referenced character (Unicode code point) is an ISO control + * character. A character is considered to be an ISO control + * character if its code is in the range {@code '\u0000'} + * through {@code '\u001F'} or in the range + * {@code '\u007F'} through {@code '\u009F'}. + */ + // @ts-ignore + public static isISOControl(codePoint: number): boolean; + /** + * Returns a value indicating a character's general category. + *

Note: This method cannot handle supplementary characters. To support + * all Unicode characters, including supplementary characters, use + * the {@link #getType(int)} method. + */ + // @ts-ignore + public static getType(ch: string): number; + /** + * Returns a value indicating a character's general category. + */ + // @ts-ignore + public static getType(codePoint: number): number; + /** + * Determines the character representation for a specific digit in + * the specified radix. If the value of {@code radix} is not a + * valid radix, or the value of {@code digit} is not a valid + * digit in the specified radix, the null character + * ({@code '\u0000'}) is returned. + *

+ * The {@code radix} argument is valid if it is greater than or + * equal to {@code MIN_RADIX} and less than or equal to + * {@code MAX_RADIX}. The {@code digit} argument is valid if + * {@code 0 <= digit < radix}. + *

+ * If the digit is less than 10, then + * {@code '0' + digit} is returned. Otherwise, the value + * {@code 'a' + digit - 10} is returned. + */ + // @ts-ignore + public static forDigit(digit: number, radix: number): string; + /** + * Returns the Unicode directionality property for the given + * character. Character directionality is used to calculate the + * visual ordering of text. The directionality value of undefined + * {@code char} values is {@code DIRECTIONALITY_UNDEFINED}. + *

Note: This method cannot handle supplementary characters. To support + * all Unicode characters, including supplementary characters, use + * the {@link #getDirectionality(int)} method. + */ + // @ts-ignore + public static getDirectionality(ch: string): number; + /** + * Returns the Unicode directionality property for the given + * character (Unicode code point). Character directionality is + * used to calculate the visual ordering of text. The + * directionality value of undefined character is {@link + * #DIRECTIONALITY_UNDEFINED}. + */ + // @ts-ignore + public static getDirectionality(codePoint: number): number; + /** + * Determines whether the character is mirrored according to the + * Unicode specification. Mirrored characters should have their + * glyphs horizontally mirrored when displayed in text that is + * right-to-left. For example, {@code '\u0028'} LEFT + * PARENTHESIS is semantically defined to be an opening + * parenthesis. This will appear as a "(" in text that is + * left-to-right but as a ")" in text that is right-to-left. + *

Note: This method cannot handle supplementary characters. To support + * all Unicode characters, including supplementary characters, use + * the {@link #isMirrored(int)} method. + */ + // @ts-ignore + public static isMirrored(ch: string): boolean; + /** + * Determines whether the specified character (Unicode code point) + * is mirrored according to the Unicode specification. Mirrored + * characters should have their glyphs horizontally mirrored when + * displayed in text that is right-to-left. For example, + * {@code '\u0028'} LEFT PARENTHESIS is semantically + * defined to be an opening parenthesis. This will appear + * as a "(" in text that is left-to-right but as a ")" in text + * that is right-to-left. + */ + // @ts-ignore + public static isMirrored(codePoint: number): boolean; + /** + * Compares two {@code Character} objects numerically. + */ + // @ts-ignore + public compareTo(anotherCharacter: java.lang.Character): number; + /** + * Compares two {@code char} values numerically. + * The value returned is identical to what would be returned by: + *

+             * Character.valueOf(x).compareTo(Character.valueOf(y))
+             * 
+ */ + // @ts-ignore + public static compare(x: string, y: string): number; + /** + * Returns the value obtained by reversing the order of the bytes in the + * specified char value. + */ + // @ts-ignore + public static reverseBytes(ch: string): string; + /** + * Returns the Unicode name of the specified character + * {@code codePoint}, or null if the code point is + * {@link #UNASSIGNED unassigned}. + *

+ * Note: if the specified character is not assigned a name by + * the UnicodeData file (part of the Unicode Character + * Database maintained by the Unicode Consortium), the returned + * name is the same as the result of expression. + *

{@code + * Character.UnicodeBlock.of(codePoint).toString().replace('_', ' ') + * + " " + * + Integer.toHexString(codePoint).toUpperCase(Locale.ENGLISH); + * }
+ */ + // @ts-ignore + public static getName(codePoint: number): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Class.d.ts b/packages/types/dist/typings/jdk/java.lang.Class.d.ts new file mode 100644 index 00000000..d07db75b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Class.d.ts @@ -0,0 +1,454 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class Class extends java.lang.Object { + /** + * Answers a Class object which represents the class + * named by the argument. The name should be the name + * of a class as described in the class definition of + * java.lang.Class, however Classes representing base + * types can not be found using this method. + */ + // @ts-ignore + public static forName(className: string): java.lang.Class; + /** + * Answers a Class object which represents the class + * named by the argument. The name should be the name + * of a class as described in the class definition of + * java.lang.Class, however Classes representing base + * types can not be found using this method. + * Security rules will be obeyed. + */ + // @ts-ignore + public static forName(className: string, initializeBoolean: boolean, classLoader: java.lang.ClassLoader): java.lang.Class; + /** + * Answers an array containing all public class members + * of the class which the receiver represents and its + * superclasses and interfaces + */ + // @ts-ignore + public getClasses(): java.lang.Class[]; + /** + * Answers the classloader which was used to load the + * class represented by the receiver. Answer null if the + * class was loaded by the system class loader. + */ + // @ts-ignore + public getClassLoader(): java.lang.ClassLoader; + /** + * Answers a Class object which represents the receiver's + * component type if the receiver represents an array type. + * Otherwise answers nil. The component type of an array + * type is the type of the elements of the array. + */ + // @ts-ignore + public getComponentType(): java.lang.Class; + /** + * Answers a public Constructor object which represents the + * constructor described by the arguments. + */ + // @ts-ignore + public getConstructor(parameterTypes: java.lang.Class): java.lang.reflect.Constructor; + /** + * Answers an array containing Constructor objects describing + * all constructors which are visible from the current execution + * context. + */ + // @ts-ignore + public getConstructors(): java.lang.reflect.Constructor[]; + /** + * Answers an array containing all class members of the class + * which the receiver represents. Note that some of the fields + * which are returned may not be visible in the current + * execution context. + */ + // @ts-ignore + public getDeclaredClasses(): java.lang.Class[]; + /** + * Answers a Constructor object which represents the + * constructor described by the arguments. + */ + // @ts-ignore + public getDeclaredConstructor(parameterTypes: java.lang.Class): java.lang.reflect.Constructor; + /** + * Answers an array containing Constructor objects describing + * all constructor which are defined by the receiver. Note that + * some of the fields which are returned may not be visible + * in the current execution context. + */ + // @ts-ignore + public getDeclaredConstructors(): java.lang.reflect.Constructor[]; + /** + * Answers a Field object describing the field in the receiver + * named by the argument. Note that the Constructor may not be + * visible from the current execution context. + */ + // @ts-ignore + public getDeclaredField(name: string): java.lang.reflect.Field; + /** + * Answers an array containing Field objects describing + * all fields which are defined by the receiver. Note that + * some of the fields which are returned may not be visible + * in the current execution context. + */ + // @ts-ignore + public getDeclaredFields(): java.lang.reflect.Field[]; + /** + * Answers a Method object which represents the method + * described by the arguments. Note that the associated + * method may not be visible from the current execution + * context. + */ + // @ts-ignore + public getDeclaredMethod(name: string, parameterTypes: java.lang.Class): java.lang.reflect.Method; + /** + * Answers an array containing Method objects describing + * all methods which are defined by the receiver. Note that + * some of the methods which are returned may not be visible + * in the current execution context. + */ + // @ts-ignore + public getDeclaredMethods(): java.lang.reflect.Method[]; + /** + * Answers the class which declared the class represented + * by the receiver. This will return null if the receiver + * is not a member of another class. + */ + // @ts-ignore + public getDeclaringClass(): java.lang.Class; + /** + * Answers a Field object describing the field in the receiver + * named by the argument which must be visible from the current + * execution context. + */ + // @ts-ignore + public getField(name: string): java.lang.reflect.Field; + /** + * Answers an array containing Field objects describing + * all fields which are visible from the current execution + * context. + */ + // @ts-ignore + public getFields(): java.lang.reflect.Field[]; + /** + * Answers an array of Class objects which match the interfaces + * specified in the receiver classes implements + * declaration + */ + // @ts-ignore + public getInterfaces(): java.lang.Class[]; + /** + * Answers a Method object which represents the method + * described by the arguments. + */ + // @ts-ignore + public getMethod(name: string, parameterTypes: java.lang.Class): java.lang.reflect.Method; + /** + * Answers an array containing Method objects describing + * all methods which are visible from the current execution + * context. + */ + // @ts-ignore + public getMethods(): java.lang.reflect.Method[]; + /** + * Answers an integer which which is the receiver's modifiers. + * Note that the constants which describe the bits which are + * returned are implemented in class java.lang.reflect.Modifier + * which may not be available on the target. + */ + // @ts-ignore + public getModifiers(): number; + /** + * Answers the name of the class which the receiver represents. + * For a description of the format which is used, see the class + * definition of java.lang.Class. + */ + // @ts-ignore + public getName(): string; + /** + * Answers the ProtectionDomain of the receiver. + *

+ * Note: In order to conserve space in embedded targets, we allow this + * method to answer null for classes in the system protection domain + * (i.e. for system classes). System classes are always given full + * permissions (i.e. AllPermission). This is not changeable via the + * java.security.Policy. + */ + // @ts-ignore + public getProtectionDomain(): java.security.ProtectionDomain; + /** + * Answers a URL referring to the + * resource specified by resName. The mapping between + * the resource name and the URL is managed by the + * class's class loader. + */ + // @ts-ignore + public getResource(resName: string): java.net.URL; + /** + * Answers a read-only stream on the contents of the + * resource specified by resName. The mapping between + * the resource name and the stream is managed by the + * class's class loader. + */ + // @ts-ignore + public getResourceAsStream(resName: string): java.io.InputStream; + /** + * Answers the signers for the class represented by the + * receiver, or null if there are no signers. + */ + // @ts-ignore + public getSigners(): java.lang.Object[]; + /** + * Answers the Class which represents the receiver's + * superclass. For Classes which represent base types, + * interfaces, and for java.lang.Object the method + * answers null. + */ + // @ts-ignore + public getSuperclass(): java.lang.Class; + /** + * Answers true if the receiver represents an array class. + */ + // @ts-ignore + public isArray(): boolean; + /** + * Answers true if the type represented by the argument + * can be converted via an identity conversion or a widening + * reference conversion (i.e. if either the receiver or the + * argument represent primitive types, only the identity + * conversion applies). + */ + // @ts-ignore + public isAssignableFrom(cls: java.lang.Class): boolean; + /** + * Answers true if the argument is non-null and can be + * cast to the type of the receiver. This is the runtime + * version of the instanceof operator. + */ + // @ts-ignore + public isInstance(object: java.lang.Object): boolean; + /** + * Answers true if the receiver represents an interface. + */ + // @ts-ignore + public isInterface(): boolean; + /** + * Answers true if the receiver represents a base type. + */ + // @ts-ignore + public isPrimitive(): boolean; + /** + * Answers a new instance of the class represented by the + * receiver, created by invoking the default (i.e. zero-argument) + * constructor. If there is no such constructor, or if the + * creation fails (either because of a lack of available memory or + * because an exception is thrown by the constructor), an + * InstantiationException is thrown. If the default constructor + * exists, but is not accessible from the context where this + * message is sent, an IllegalAccessException is thrown. + */ + // @ts-ignore + public newInstance(): java.lang.Object; + /** + * Answers a string containing a concise, human-readable + * description of the receiver. + */ + // @ts-ignore + public toString(): string; + /** + * Returns a formatted string describing this Class. The string has + * the following format: + * modifier1 modifier2 ... kind name<typeparam1, typeparam2, ...>. + * kind is one of class, enum, interface, + * @interface, or + * the empty string for primitive types. The type parameter list is + * omitted if there are no type parameters. + */ + // @ts-ignore + public toGenericString(): string; + /** + * Returns the Package of which this class is a member. + * A class has a Package iff it was loaded from a SecureClassLoader. + */ + // @ts-ignore + public getPackage(): java.lang.Package; + /** + * Returns the assertion status for this class. + * Assertion is enabled/disabled based on + * classloader default, package or class default at runtime + */ + // @ts-ignore + public desiredAssertionStatus(): boolean; + /** + * Return the specified Annotation for this Class. Inherited Annotations + * are searched. + */ + // @ts-ignore + public getAnnotation(annotation: java.lang.Class): java.lang.annotation.Annotation; + /** + * Return the directly declared Annotations for this Class, including the Annotations + * inherited from superclasses. + * If an annotation type has been included before, then next occurrences will not be included. + * Repeated annotations are not included since they will be stored in their container annotation. + * But container annotations are included. (If a container annotation is repeatable and it is repeated, + * then these container annotations' container annotation is included. ) + */ + // @ts-ignore + public getAnnotations(): java.lang.annotation.Annotation[]; + /** + * Looks through directly declared annotations for this class, not including Annotations inherited from superclasses. + */ + // @ts-ignore + public getDeclaredAnnotation(annotation: java.lang.Class): java.lang.annotation.Annotation; + /** + * Return the annotated types for the implemented interfaces. + */ + // @ts-ignore + public getAnnotatedInterfaces(): java.lang.reflect.AnnotatedType[]; + /** + * Return the annotated superclass of this class. + */ + // @ts-ignore + public getAnnotatedSuperclass(): java.lang.reflect.AnnotatedType; + /** + * Answers the type name of the class which the receiver represents. + */ + // @ts-ignore + public getTypeName(): string; + /** + * Returns the annotations only for this Class, not including Annotations inherited from superclasses. + * It includes all the directly declared annotations. + * Repeated annotations are not included but their container annotation does. + */ + // @ts-ignore + public getDeclaredAnnotations(): java.lang.annotation.Annotation[]; + /** + * Terms used for annotations : + * Repeatable Annotation : + * An annotation which can be used more than once for the same class declaration. + * Repeatable annotations are annotated with Repeatable annotation which tells the + * container annotation for this repeatable annotation. + * Example = + */ + // @ts-ignore + public getDeclaredAnnotationsByType(annotationClass: java.lang.Class): java.lang.annotation.Annotation[]; + /** + * Gets the specified type annotations of this class. + * If the specified type is not repeatable annotation, then returned array size will be 0 or 1. + * If specified type is repeatable annotation, then all the annotations of that type will be returned. Array size might be 0, 1 or more. + * It searches through superclasses until it finds the inherited specified annotationClass. + */ + // @ts-ignore + public getAnnotationsByType(annotationClass: java.lang.Class): java.lang.annotation.Annotation[]; + /** + * Answer if this class is an Annotation. + */ + // @ts-ignore + public isAnnotation(): boolean; + /** + * Answer if the specified Annotation exists for this Class. Inherited + * Annotations are searched. + */ + // @ts-ignore + public isAnnotationPresent(annotation: java.lang.Class): boolean; + /** + * Cast this Class to a subclass of the specified Class. + */ + // @ts-ignore + public asSubclass(cls: java.lang.Class): java.lang.Class; + /** + * Cast the specified object to this Class. + */ + // @ts-ignore + public cast(object: java.lang.Object): java.lang.Object; + /** + * Answer if this Class is an enum. + */ + // @ts-ignore + public isEnum(): boolean; + /** + * Answer the array of enum constants for this Class. Returns null if + * this class is not an enum. + */ + // @ts-ignore + public getEnumConstants(): java.lang.Object[]; + /** + * Answer if this Class is synthetic. A synthetic Class is created by + * the compiler. + */ + // @ts-ignore + public isSynthetic(): boolean; + /** + * Answers an array of TypeVariable for the generic parameters declared + * on this Class. + */ + // @ts-ignore + public getTypeParameters(): java.lang.reflect.TypeVariable[]; + /** + * Answers an array of Type for the Class objects which match the + * interfaces specified in the receiver classes implements + * declaration. + */ + // @ts-ignore + public getGenericInterfaces(): java.lang.reflect.Type[]; + /** + * Answers the Type for the Class which represents the receiver's + * superclass. For classes which represent base types, + * interfaces, and for java.lang.Object the method + * answers null. + */ + // @ts-ignore + public getGenericSuperclass(): java.lang.reflect.Type; + /** + * If this Class is defined inside a constructor, return the Constructor. + */ + // @ts-ignore + public getEnclosingConstructor(): java.lang.reflect.Constructor; + /** + * If this Class is defined inside a method, return the Method. + */ + // @ts-ignore + public getEnclosingMethod(): java.lang.reflect.Method; + /** + * Return the enclosing Class of this Class. Unlike getDeclaringClass(), + * this method works on any nested Class, not just classes nested directly + * in other classes. + */ + // @ts-ignore + public getEnclosingClass(): java.lang.Class; + /** + * Return the simple name of this Class. The simple name does not include + * the package or the name of the enclosing class. The simple name of an + * anonymous class is "". + */ + // @ts-ignore + public getSimpleName(): string; + /** + * Return the canonical name of this Class. The canonical name is null + * for a local or anonymous class. The canonical name includes the package + * and the name of the enclosing class. + */ + // @ts-ignore + public getCanonicalName(): string; + /** + * Answer if this Class is anonymous. An unnamed Class defined + * inside a method. + */ + // @ts-ignore + public isAnonymousClass(): boolean; + /** + * Answer if this Class is local. A named Class defined inside + * a method. + */ + // @ts-ignore + public isLocalClass(): boolean; + /** + * Answer if this Class is a member Class. A Class defined inside another + * Class. + */ + // @ts-ignore + public isMemberClass(): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.ClassCastException.d.ts b/packages/types/dist/typings/jdk/java.lang.ClassCastException.d.ts new file mode 100644 index 00000000..5399716d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.ClassCastException.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class ClassCastException extends java.lang.RuntimeException { + /** + * Constructs a new instance of this class with its walkback filled in. + */ + // @ts-ignore + constructor() + /** + * Constructs a new instance of this class with its walkback and message + * filled in. + */ + // @ts-ignore + constructor(detailMessage: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.ClassCircularityError.d.ts b/packages/types/dist/typings/jdk/java.lang.ClassCircularityError.d.ts new file mode 100644 index 00000000..b57d0e9d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.ClassCircularityError.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class ClassCircularityError extends java.lang.LinkageError { + /** + * Constructs a {@code ClassCircularityError} with no detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs a {@code ClassCircularityError} with the specified detail + * message. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.ClassFormatError.d.ts b/packages/types/dist/typings/jdk/java.lang.ClassFormatError.d.ts new file mode 100644 index 00000000..d43d0fd7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.ClassFormatError.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class ClassFormatError extends java.lang.LinkageError { + /** + * Constructs a ClassFormatError with no detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs a ClassFormatError with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.ClassLoader.d.ts b/packages/types/dist/typings/jdk/java.lang.ClassLoader.d.ts new file mode 100644 index 00000000..49f3a87f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.ClassLoader.d.ts @@ -0,0 +1,223 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + abstract class ClassLoader extends java.lang.Object { + /** + * Constructs a new instance of this class with the system + * class loader as its parent. + */ + // @ts-ignore + constructor() + /** + * Constructs a new instance of this class with the given + * class loader as its parent. + */ + // @ts-ignore + constructor(parentLoader: java.lang.ClassLoader) + /** + * Constructs a new class from an array of bytes containing a + * class definition in class file format. + */ + // @ts-ignore + protected defineClass(classRep: number, offset: number, length: number): java.lang.Class; + /** + * Constructs a new class from an array of bytes containing a + * class definition in class file format. + */ + // @ts-ignore + protected defineClass(className: string, classRep: number, offset: number, length: number): java.lang.Class; + /** + * Constructs a new class from an array of bytes containing a + * class definition in class file format and assigns the new + * class to the specified protection domain. + */ + // @ts-ignore + protected defineClass(className: string, classRep: number, offset: number, length: number, protectionDomain: java.security.ProtectionDomain): java.lang.Class; + /** + * Overridden by subclasses, by default throws ClassNotFoundException. + * This method is called by loadClass() after the parent ClassLoader + * has failed to find a loaded class of the same name. + */ + // @ts-ignore + protected findClass(className: string): java.lang.Class; + /** + * Attempts to find and return a class which has already + * been loaded by the virtual machine. Note that the class + * may not have been linked and the caller should call + * resolveClass() on the result if necessary. + */ + // @ts-ignore + protected findLoadedClass(className: string): java.lang.Class; + /** + * Attempts to load a class using the system class loader. + * Note that the class has already been been linked. + */ + // @ts-ignore + protected findSystemClass(className: string): java.lang.Class; + /** + * Returns the specified ClassLoader's parent. + */ + // @ts-ignore + public getParent(): java.lang.ClassLoader; + /** + * Answers an URL which can be used to access the resource + * described by resName, using the class loader's resource lookup + * algorithm. The default behavior is just to return null. + */ + // @ts-ignore + public getResource(resName: string): java.net.URL; + /** + * Answers an Enumeration of URL which can be used to access the resources + * described by resName, using the class loader's resource lookup + * algorithm. + */ + // @ts-ignore + public getResources(resName: string): java.util.Enumeration; + /** + * Answers a stream on a resource found by looking up + * resName using the class loader's resource lookup + * algorithm. The default behavior is just to return null. + */ + // @ts-ignore + public getResourceAsStream(resName: string): java.io.InputStream; + /** + * Convenience operation to obtain a reference to the system class loader. + * The system class loader is the parent of any new ClassLoader + * objects created in the course of an application and will normally be the + * same ClassLoader as that used to launch an application. + */ + // @ts-ignore + public static getSystemClassLoader(): java.lang.ClassLoader; + /** + * Answers an URL specifying a resource which can be found by + * looking up resName using the system class loader's resource + * lookup algorithm. + */ + // @ts-ignore + public static getSystemResource(resName: string): java.net.URL; + /** + * Answers an Enumeration of URL containing all resources which can be + * found by looking up resName using the system class loader's resource + * lookup algorithm. + */ + // @ts-ignore + public static getSystemResources(resName: string): java.util.Enumeration; + /** + * Answers a stream on a resource found by looking up + * resName using the system class loader's resource lookup + * algorithm. Basically, the contents of the java.class.path + * are searched in order, looking for a path which matches + * the specified resource. + */ + // @ts-ignore + public static getSystemResourceAsStream(resName: string): java.io.InputStream; + /** + * Invoked by the Virtual Machine when resolving class references. + * Equivalent to loadClass(className, false); + */ + // @ts-ignore + public loadClass(className: string): java.lang.Class; + /** + * Attempts to load the type className in the running VM, + * optionally linking the type after a successful load. + */ + // @ts-ignore + protected loadClass(className: string, resolveClass: boolean): java.lang.Class; + /** + * Attempts to register the the ClassLoader as being capable of + * parallel class loading. This requires that all superclasses must + * also be parallel capable. + */ + // @ts-ignore + protected static registerAsParallelCapable(): boolean; + /** + * Answers the lock object for class loading in parallel. + * If this ClassLoader object has been registered as parallel capable, + * a dedicated object associated with this specified class name is returned. + * Otherwise, current ClassLoader object is returned. + */ + // @ts-ignore + protected getClassLoadingLock(className: string): java.lang.Object; + /** + * Forces a class to be linked (initialized). If the class has + * already been linked this operation has no effect. + */ + // @ts-ignore + protected resolveClass(clazz: java.lang.Class): void; + /** + * Answers an URL which can be used to access the resource + * described by resName, using the class loader's resource lookup + * algorithm. The default behavior is just to return null. + * This should be implemented by a ClassLoader. + */ + // @ts-ignore + protected findResource(resName: string): java.net.URL; + /** + * Answers an Enumeration of URL which can be used to access the resources + * described by resName, using the class loader's resource lookup + * algorithm. The default behavior is just to return an empty Enumeration. + */ + // @ts-ignore + protected findResources(resName: string): java.util.Enumeration; + /** + * Answers the absolute path of the file containing the library + * associated with the given name, or null. If null is answered, + * the system searches the directories specified by the system + * property "java.library.path". + */ + // @ts-ignore + protected findLibrary(libName: string): string; + /** + * Attempt to locate the requested package. If no package information + * can be located, null is returned. + */ + // @ts-ignore + protected getPackage(name: string): java.lang.Package; + /** + * Answers all the packages known to this class loader. + */ + // @ts-ignore + protected getPackages(): java.lang.Package[]; + /** + * Define a new Package using the specified information. + */ + // @ts-ignore + protected definePackage(name: string, specTitle: string, specVersion: string, specVendor: string, implTitle: string, implVersion: string, implVendor: string, sealBase: java.net.URL): java.lang.Package; + /** + * Sets the signers of a class. + */ + // @ts-ignore + protected setSigners(c: java.lang.Class, signers: java.lang.Object): void; + /** + * Sets the assertion status of a class. + */ + // @ts-ignore + public setClassAssertionStatus(cname: string, enable: boolean): void; + /** + * Sets the assertion status of a package. + */ + // @ts-ignore + public setPackageAssertionStatus(pname: string, enable: boolean): void; + /** + * Sets the default assertion status of a classloader + */ + // @ts-ignore + public setDefaultAssertionStatus(enable: boolean): void; + /** + * Clears the default, package and class assertion status of a classloader + */ + // @ts-ignore + public clearAssertionStatus(): void; + /** + * Constructs a new class from an array of bytes containing a + * class definition in class file format and assigns the new + * class to the specified protection domain. + */ + // @ts-ignore + protected defineClass(name: string, buffer: java.nio.ByteBuffer, domain: java.security.ProtectionDomain): java.lang.Class; + // @ts-ignore + protected clone(): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.ClassNotFoundException.d.ts b/packages/types/dist/typings/jdk/java.lang.ClassNotFoundException.d.ts new file mode 100644 index 00000000..dd21bc3d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.ClassNotFoundException.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class ClassNotFoundException extends java.lang.ReflectiveOperationException { + /** + * Constructs a ClassNotFoundException with no detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs a ClassNotFoundException with the + * specified detail message. + */ + // @ts-ignore + constructor(s: string) + /** + * Constructs a ClassNotFoundException with the + * specified detail message and optional exception that was + * raised while loading the class. + */ + // @ts-ignore + constructor(s: string, ex: java.lang.Throwable) + /** + * Returns the exception that was raised if an error occurred while + * attempting to load the class. Otherwise, returns null. + *

This method predates the general-purpose exception chaining facility. + * The {@link Throwable#getCause()} method is now the preferred means of + * obtaining this information. + */ + // @ts-ignore + public getException(): java.lang.Throwable; + /** + * Returns the cause of this exception (the exception that was raised + * if an error occurred while attempting to load the class; otherwise + * null). + */ + // @ts-ignore + public getCause(): java.lang.Throwable; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.ClassValue.d.ts b/packages/types/dist/typings/jdk/java.lang.ClassValue.d.ts new file mode 100644 index 00000000..def81bd4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.ClassValue.d.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + abstract class ClassValue extends java.lang.Object { + /** + * Sole constructor. (For invocation by subclass constructors, typically + * implicit.) + */ + // @ts-ignore + constructor() + /** + * Computes the given class's derived value for this {@code ClassValue}. + *

+ * This method will be invoked within the first thread that accesses + * the value with the {@link #get get} method. + *

+ * Normally, this method is invoked at most once per class, + * but it may be invoked again if there has been a call to + * {@link #remove remove}. + *

+ * If this method throws an exception, the corresponding call to {@code get} + * will terminate abnormally with that exception, and no class value will be recorded. + */ + // @ts-ignore + protected abstract computeValue(type: java.lang.Class): java.lang.Object; + /** + * Returns the value for the given class. + * If no value has yet been computed, it is obtained by + * an invocation of the {@link #computeValue computeValue} method. + *

+ * The actual installation of the value on the class + * is performed atomically. + * At that point, if several racing threads have + * computed values, one is chosen, and returned to + * all the racing threads. + *

+ * The {@code type} parameter is typically a class, but it may be any type, + * such as an interface, a primitive type (like {@code int.class}), or {@code void.class}. + *

+ * In the absence of {@code remove} calls, a class value has a simple + * state diagram: uninitialized and initialized. + * When {@code remove} calls are made, + * the rules for value observation are more complex. + * See the documentation for {@link #remove remove} for more information. + */ + // @ts-ignore + public get(type: java.lang.Class): java.lang.Object; + /** + * Removes the associated value for the given class. + * If this value is subsequently {@linkplain #get read} for the same class, + * its value will be reinitialized by invoking its {@link #computeValue computeValue} method. + * This may result in an additional invocation of the + * {@code computeValue} method for the given class. + *

+ * In order to explain the interaction between {@code get} and {@code remove} calls, + * we must model the state transitions of a class value to take into account + * the alternation between uninitialized and initialized states. + * To do this, number these states sequentially from zero, and note that + * uninitialized (or removed) states are numbered with even numbers, + * while initialized (or re-initialized) states have odd numbers. + *

+ * When a thread {@code T} removes a class value in state {@code 2N}, + * nothing happens, since the class value is already uninitialized. + * Otherwise, the state is advanced atomically to {@code 2N+1}. + *

+ * When a thread {@code T} queries a class value in state {@code 2N}, + * the thread first attempts to initialize the class value to state {@code 2N+1} + * by invoking {@code computeValue} and installing the resulting value. + *

+ * When {@code T} attempts to install the newly computed value, + * if the state is still at {@code 2N}, the class value will be initialized + * with the computed value, advancing it to state {@code 2N+1}. + *

+ * Otherwise, whether the new state is even or odd, + * {@code T} will discard the newly computed value + * and retry the {@code get} operation. + *

+ * Discarding and retrying is an important proviso, + * since otherwise {@code T} could potentially install + * a disastrously stale value. For example: + *

    + *
  • {@code T} calls {@code CV.get(C)} and sees state {@code 2N} + *
  • {@code T} quickly computes a time-dependent value {@code V0} and gets ready to install it + *
  • {@code T} is hit by an unlucky paging or scheduling event, and goes to sleep for a long time + *
  • ...meanwhile, {@code T2} also calls {@code CV.get(C)} and sees state {@code 2N} + *
  • {@code T2} quickly computes a similar time-dependent value {@code V1} and installs it on {@code CV.get(C)} + *
  • {@code T2} (or a third thread) then calls {@code CV.remove(C)}, undoing {@code T2}'s work + *
  • the previous actions of {@code T2} are repeated several times + *
  • also, the relevant computed values change over time: {@code V1}, {@code V2}, ... + *
  • ...meanwhile, {@code T} wakes up and attempts to install {@code V0}; this must fail + *
+ * We can assume in the above scenario that {@code CV.computeValue} uses locks to properly + * observe the time-dependent states as it computes {@code V1}, etc. + * This does not remove the threat of a stale value, since there is a window of time + * between the return of {@code computeValue} in {@code T} and the installation + * of the the new value. No user synchronization is possible during this time. + */ + // @ts-ignore + public remove(type: java.lang.Class): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.CloneNotSupportedException.d.ts b/packages/types/dist/typings/jdk/java.lang.CloneNotSupportedException.d.ts new file mode 100644 index 00000000..7256bc59 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.CloneNotSupportedException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class CloneNotSupportedException extends java.lang.Exception { + /** + * Constructs a CloneNotSupportedException with no + * detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs a CloneNotSupportedException with the + * specified detail message. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Cloneable.d.ts b/packages/types/dist/typings/jdk/java.lang.Cloneable.d.ts new file mode 100644 index 00000000..8a57451b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Cloneable.d.ts @@ -0,0 +1,8 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + interface Cloneable { + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Comparable.d.ts b/packages/types/dist/typings/jdk/java.lang.Comparable.d.ts new file mode 100644 index 00000000..bf19acbd --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Comparable.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + interface Comparable { + /** + * Compares this object with the specified object for order. Returns a + * negative integer, zero, or a positive integer as this object is less + * than, equal to, or greater than the specified object. + *

The implementor must ensure sgn(x.compareTo(y)) == + * -sgn(y.compareTo(x)) for all x and y. (This + * implies that x.compareTo(y) must throw an exception iff + * y.compareTo(x) throws an exception.) + *

The implementor must also ensure that the relation is transitive: + * (x.compareTo(y)>0 && y.compareTo(z)>0) implies + * x.compareTo(z)>0. + *

Finally, the implementor must ensure that x.compareTo(y)==0 + * implies that sgn(x.compareTo(z)) == sgn(y.compareTo(z)), for + * all z. + *

It is strongly recommended, but not strictly required that + * (x.compareTo(y)==0) == (x.equals(y)). Generally speaking, any + * class that implements the Comparable interface and violates + * this condition should clearly indicate this fact. The recommended + * language is "Note: this class has a natural ordering that is + * inconsistent with equals." + *

In the foregoing description, the notation + * sgn(expression) designates the mathematical + * signum function, which is defined to return one of -1, + * 0, or 1 according to whether the value of + * expression is negative, zero or positive. + */ + // @ts-ignore + compareTo(o: java.lang.Object): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Compiler.d.ts b/packages/types/dist/typings/jdk/java.lang.Compiler.d.ts new file mode 100644 index 00000000..1776aa71 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Compiler.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class Compiler extends java.lang.Object { + /** + * Low level interface to the JIT compiler. Can return + * any object, or null if no JIT compiler is available. + */ + // @ts-ignore + public static command(cmd: java.lang.Object): java.lang.Object; + /** + * Compiles the class using the JIT compiler. Answers + * true if the compilation was successful, or false if + * it failed or there was no JIT compiler available. + */ + // @ts-ignore + public static compileClass(classToCompile: java.lang.Class): boolean; + /** + * Compiles all classes whose name matches the argument + * using the JIT compiler. Answers true if the compilation + * was successful, or false if it failed or there was no + * JIT compiler available. + */ + // @ts-ignore + public static compileClasses(nameRoot: string): boolean; + /** + * Disable the JIT compiler + */ + // @ts-ignore + public static disable(): void; + /** + * Enable the JIT compiler + */ + // @ts-ignore + public static enable(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Deprecated.d.ts b/packages/types/dist/typings/jdk/java.lang.Deprecated.d.ts new file mode 100644 index 00000000..3d21910e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Deprecated.d.ts @@ -0,0 +1,8 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + interface Deprecated { + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Double.d.ts b/packages/types/dist/typings/jdk/java.lang.Double.d.ts new file mode 100644 index 00000000..1829f4dc --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Double.d.ts @@ -0,0 +1,607 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class Double extends java.lang.Number { + /** + * Constructs a newly allocated {@code Double} object that + * represents the primitive {@code double} argument. + */ + // @ts-ignore + constructor(value: number) + /** + * Constructs a newly allocated {@code Double} object that + * represents the floating-point value of type {@code double} + * represented by the string. The string is converted to a + * {@code double} value as if by the {@code valueOf} method. + */ + // @ts-ignore + constructor(s: string) + // @ts-ignore + public static POSITIVE_INFINITY: number; + // @ts-ignore + public static NEGATIVE_INFINITY: number; + // @ts-ignore + public static NaN: number; + // @ts-ignore + public static MAX_VALUE: number; + // @ts-ignore + public static MIN_NORMAL: number; + // @ts-ignore + public static MIN_VALUE: number; + // @ts-ignore + public static MAX_EXPONENT: number; + // @ts-ignore + public static MIN_EXPONENT: number; + // @ts-ignore + public static SIZE: number; + // @ts-ignore + public static BYTES: number; + // @ts-ignore + public static TYPE: java.lang.Class; + /** + * Returns a string representation of the {@code double} + * argument. All characters mentioned below are ASCII characters. + *

    + *
  • If the argument is NaN, the result is the string + * "{@code NaN}". + *
  • Otherwise, the result is a string that represents the sign and + * magnitude (absolute value) of the argument. If the sign is negative, + * the first character of the result is '{@code -}' + * ({@code '\u002D'}); if the sign is positive, no sign character + * appears in the result. As for the magnitude m: + *
      + *
    • If m is infinity, it is represented by the characters + * {@code "Infinity"}; thus, positive infinity produces the result + * {@code "Infinity"} and negative infinity produces the result + * {@code "-Infinity"}. + *
    • If m is zero, it is represented by the characters + * {@code "0.0"}; thus, negative zero produces the result + * {@code "-0.0"} and positive zero produces the result + * {@code "0.0"}. + *
    • If m is greater than or equal to 10-3 but less + * than 107, then it is represented as the integer part of + * m, in decimal form with no leading zeroes, followed by + * '{@code .}' ({@code '\u002E'}), followed by one or + * more decimal digits representing the fractional part of m. + *
    • If m is less than 10-3 or greater than or + * equal to 107, then it is represented in so-called + * "computerized scientific notation." Let n be the unique + * integer such that 10nm {@literal <} + * 10n+1; then let a be the + * mathematically exact quotient of m and + * 10n so that 1 ≤ a {@literal <} 10. The + * magnitude is then represented as the integer part of a, + * as a single decimal digit, followed by '{@code .}' + * ({@code '\u002E'}), followed by decimal digits + * representing the fractional part of a, followed by the + * letter '{@code E}' ({@code '\u0045'}), followed + * by a representation of n as a decimal integer, as + * produced by the method {@link Integer#toString(int)}. + *
    + *
+ * How many digits must be printed for the fractional part of + * m or a? There must be at least one digit to represent + * the fractional part, and beyond that as many, but only as many, more + * digits as are needed to uniquely distinguish the argument value from + * adjacent values of type {@code double}. That is, suppose that + * x is the exact mathematical value represented by the decimal + * representation produced by this method for a finite nonzero argument + * d. Then d must be the {@code double} value nearest + * to x; or if two {@code double} values are equally close + * to x, then d must be one of them and the least + * significant bit of the significand of d must be {@code 0}. + *

To create localized string representations of a floating-point + * value, use subclasses of {@link java.text.NumberFormat}. + */ + // @ts-ignore + public static toString(d: number): string; + /** + * Returns a hexadecimal string representation of the + * {@code double} argument. All characters mentioned below + * are ASCII characters. + *

    + *
  • If the argument is NaN, the result is the string + * "{@code NaN}". + *
  • Otherwise, the result is a string that represents the sign + * and magnitude of the argument. If the sign is negative, the + * first character of the result is '{@code -}' + * ({@code '\u002D'}); if the sign is positive, no sign + * character appears in the result. As for the magnitude m: + *
      + *
    • If m is infinity, it is represented by the string + * {@code "Infinity"}; thus, positive infinity produces the + * result {@code "Infinity"} and negative infinity produces + * the result {@code "-Infinity"}. + *
    • If m is zero, it is represented by the string + * {@code "0x0.0p0"}; thus, negative zero produces the result + * {@code "-0x0.0p0"} and positive zero produces the result + * {@code "0x0.0p0"}. + *
    • If m is a {@code double} value with a + * normalized representation, substrings are used to represent the + * significand and exponent fields. The significand is + * represented by the characters {@code "0x1."} + * followed by a lowercase hexadecimal representation of the rest + * of the significand as a fraction. Trailing zeros in the + * hexadecimal representation are removed unless all the digits + * are zero, in which case a single zero is used. Next, the + * exponent is represented by {@code "p"} followed + * by a decimal string of the unbiased exponent as if produced by + * a call to {@link Integer#toString(int) Integer.toString} on the + * exponent value. + *
    • If m is a {@code double} value with a subnormal + * representation, the significand is represented by the + * characters {@code "0x0."} followed by a + * hexadecimal representation of the rest of the significand as a + * fraction. Trailing zeros in the hexadecimal representation are + * removed. Next, the exponent is represented by + * {@code "p-1022"}. Note that there must be at + * least one nonzero digit in a subnormal significand. + *
    + *
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Examples
Floating-point ValueHexadecimal String
{@code 1.0} {@code 0x1.0p0}
{@code -1.0} {@code -0x1.0p0}
{@code 2.0} {@code 0x1.0p1}
{@code 3.0} {@code 0x1.8p1}
{@code 0.5} {@code 0x1.0p-1}
{@code 0.25} {@code 0x1.0p-2}
{@code Double.MAX_VALUE}{@code 0x1.fffffffffffffp1023}
{@code Minimum Normal Value}{@code 0x1.0p-1022}
{@code Maximum Subnormal Value}{@code 0x0.fffffffffffffp-1022}
{@code Double.MIN_VALUE}{@code 0x0.0000000000001p-1022}
+ */ + // @ts-ignore + public static toHexString(d: number): string; + /** + * Returns a {@code Double} object holding the + * {@code double} value represented by the argument string + * {@code s}. + *

If {@code s} is {@code null}, then a + * {@code NullPointerException} is thrown. + *

Leading and trailing whitespace characters in {@code s} + * are ignored. Whitespace is removed as if by the {@link + * String#trim} method; that is, both ASCII space and control + * characters are removed. The rest of {@code s} should + * constitute a FloatValue as described by the lexical + * syntax rules: + *

+ *
+ *
FloatValue: + *
Signopt {@code NaN} + *
Signopt {@code Infinity} + *
Signopt FloatingPointLiteral + *
Signopt HexFloatingPointLiteral + *
SignedInteger + *
+ *
+ *
HexFloatingPointLiteral: + *
HexSignificand BinaryExponent FloatTypeSuffixopt + *
+ *
+ *
HexSignificand: + *
HexNumeral + *
HexNumeral {@code .} + *
{@code 0x} HexDigitsopt + * {@code .} HexDigits + *
{@code 0X} HexDigitsopt + * {@code .} HexDigits + *
+ *
+ *
BinaryExponent: + *
BinaryExponentIndicator SignedInteger + *
+ *
+ *
BinaryExponentIndicator: + *
{@code p} + *
{@code P} + *
+ *
+ * where Sign, FloatingPointLiteral, + * HexNumeral, HexDigits, SignedInteger and + * FloatTypeSuffix are as defined in the lexical structure + * sections of + * The Java™ Language Specification, + * except that underscores are not accepted between digits. + * If {@code s} does not have the form of + * a FloatValue, then a {@code NumberFormatException} + * is thrown. Otherwise, {@code s} is regarded as + * representing an exact decimal value in the usual + * "computerized scientific notation" or as an exact + * hexadecimal value; this exact numerical value is then + * conceptually converted to an "infinitely precise" + * binary value that is then rounded to type {@code double} + * by the usual round-to-nearest rule of IEEE 754 floating-point + * arithmetic, which includes preserving the sign of a zero + * value. + * Note that the round-to-nearest rule also implies overflow and + * underflow behaviour; if the exact value of {@code s} is large + * enough in magnitude (greater than or equal to ({@link + * #MAX_VALUE} + {@link Math#ulp(double) ulp(MAX_VALUE)}/2), + * rounding to {@code double} will result in an infinity and if the + * exact value of {@code s} is small enough in magnitude (less + * than or equal to {@link #MIN_VALUE}/2), rounding to float will + * result in a zero. + * Finally, after rounding a {@code Double} object representing + * this {@code double} value is returned. + *

To interpret localized string representations of a + * floating-point value, use subclasses of {@link + * java.text.NumberFormat}. + *

Note that trailing format specifiers, specifiers that + * determine the type of a floating-point literal + * ({@code 1.0f} is a {@code float} value; + * {@code 1.0d} is a {@code double} value), do + * not influence the results of this method. In other + * words, the numerical value of the input string is converted + * directly to the target floating-point type. The two-step + * sequence of conversions, string to {@code float} followed + * by {@code float} to {@code double}, is not + * equivalent to converting a string directly to + * {@code double}. For example, the {@code float} + * literal {@code 0.1f} is equal to the {@code double} + * value {@code 0.10000000149011612}; the {@code float} + * literal {@code 0.1f} represents a different numerical + * value than the {@code double} literal + * {@code 0.1}. (The numerical value 0.1 cannot be exactly + * represented in a binary floating-point number.) + *

To avoid calling this method on an invalid string and having + * a {@code NumberFormatException} be thrown, the regular + * expression below can be used to screen the input string: + *

{@code
+             * final String Digits     = "(\\p{Digit}+)";
+             * final String HexDigits  = "(\\p{XDigit}+)";
+             * // an exponent is 'e' or 'E' followed by an optionally
+             * // signed decimal integer.
+             * final String Exp        = "[eE][+-]?"+Digits;
+             * final String fpRegex    =
+             * ("[\\x00-\\x20]*"+  // Optional leading "whitespace"
+             * "[+-]?(" + // Optional sign character
+             * "NaN|" +           // "NaN" string
+             * "Infinity|" +      // "Infinity" string
+             * // A decimal floating-point string representing a finite positive
+             * // number without a leading sign has at most five basic pieces:
+             * // Digits . Digits ExponentPart FloatTypeSuffix
+             * //
+             * // Since this method allows integer-only strings as input
+             * // in addition to strings of floating-point literals, the
+             * // two sub-patterns below are simplifications of the grammar
+             * // productions from section 3.10.2 of
+             * // The Java Language Specification.
+             * // Digits ._opt Digits_opt ExponentPart_opt FloatTypeSuffix_opt
+             * "((("+Digits+"(\\.)?("+Digits+"?)("+Exp+")?)|"+
+             * // . Digits ExponentPart_opt FloatTypeSuffix_opt
+             * "(\\.("+Digits+")("+Exp+")?)|"+
+             * // Hexadecimal strings
+             * "((" +
+             * // 0[xX] HexDigits ._opt BinaryExponent FloatTypeSuffix_opt
+             * "(0[xX]" + HexDigits + "(\\.)?)|" +
+             * // 0[xX] HexDigits_opt . HexDigits BinaryExponent FloatTypeSuffix_opt
+             * "(0[xX]" + HexDigits + "?(\\.)" + HexDigits + ")" +
+             * ")[pP][+-]?" + Digits + "))" +
+             * "[fFdD]?))" +
+             * "[\\x00-\\x20]*");// Optional trailing "whitespace"
+             * if (Pattern.matches(fpRegex, myString))
+             * Double.valueOf(myString); // Will not throw NumberFormatException
+             * else {
+             * // Perform suitable alternative action
+             * }
+             * }
+ */ + // @ts-ignore + public static valueOf(s: string): java.lang.Double; + /** + * Returns a {@code Double} instance representing the specified + * {@code double} value. + * If a new {@code Double} instance is not required, this method + * should generally be used in preference to the constructor + * {@link #Double(double)}, as this method is likely to yield + * significantly better space and time performance by caching + * frequently requested values. + */ + // @ts-ignore + public static valueOf(d: number): java.lang.Double; + /** + * Returns a new {@code double} initialized to the value + * represented by the specified {@code String}, as performed + * by the {@code valueOf} method of class + * {@code Double}. + */ + // @ts-ignore + public static parseDouble(s: string): number; + /** + * Returns {@code true} if the specified number is a + * Not-a-Number (NaN) value, {@code false} otherwise. + */ + // @ts-ignore + public static isNaN(v: number): boolean; + /** + * Returns {@code true} if the specified number is infinitely + * large in magnitude, {@code false} otherwise. + */ + // @ts-ignore + public static isInfinite(v: number): boolean; + /** + * Returns {@code true} if the argument is a finite floating-point + * value; returns {@code false} otherwise (for NaN and infinity + * arguments). + */ + // @ts-ignore + public static isFinite(d: number): boolean; + /** + * Returns {@code true} if this {@code Double} value is + * a Not-a-Number (NaN), {@code false} otherwise. + */ + // @ts-ignore + public isNaN(): boolean; + /** + * Returns {@code true} if this {@code Double} value is + * infinitely large in magnitude, {@code false} otherwise. + */ + // @ts-ignore + public isInfinite(): boolean; + /** + * Returns a string representation of this {@code Double} object. + * The primitive {@code double} value represented by this + * object is converted to a string exactly as if by the method + * {@code toString} of one argument. + */ + // @ts-ignore + public toString(): string; + /** + * Returns the value of this {@code Double} as a {@code byte} + * after a narrowing primitive conversion. + */ + // @ts-ignore + public byteValue(): number; + /** + * Returns the value of this {@code Double} as a {@code short} + * after a narrowing primitive conversion. + */ + // @ts-ignore + public shortValue(): number; + /** + * Returns the value of this {@code Double} as an {@code int} + * after a narrowing primitive conversion. + */ + // @ts-ignore + public intValue(): number; + /** + * Returns the value of this {@code Double} as a {@code long} + * after a narrowing primitive conversion. + */ + // @ts-ignore + public longValue(): number; + /** + * Returns the value of this {@code Double} as a {@code float} + * after a narrowing primitive conversion. + */ + // @ts-ignore + public floatValue(): number; + /** + * Returns the {@code double} value of this {@code Double} object. + */ + // @ts-ignore + public doubleValue(): number; + /** + * Returns a hash code for this {@code Double} object. The + * result is the exclusive OR of the two halves of the + * {@code long} integer bit representation, exactly as + * produced by the method {@link #doubleToLongBits(double)}, of + * the primitive {@code double} value represented by this + * {@code Double} object. That is, the hash code is the value + * of the expression: + *
+ * {@code (int)(v^(v>>>32))} + *
+ * where {@code v} is defined by: + *
+ * {@code long v = Double.doubleToLongBits(this.doubleValue());} + *
+ */ + // @ts-ignore + public hashCode(): number; + /** + * Returns a hash code for a {@code double} value; compatible with + * {@code Double.hashCode()}. + */ + // @ts-ignore + public static hashCode(value: number): number; + /** + * Compares this object against the specified object. The result + * is {@code true} if and only if the argument is not + * {@code null} and is a {@code Double} object that + * represents a {@code double} that has the same value as the + * {@code double} represented by this object. For this + * purpose, two {@code double} values are considered to be + * the same if and only if the method {@link + * #doubleToLongBits(double)} returns the identical + * {@code long} value when applied to each. + *

Note that in most cases, for two instances of class + * {@code Double}, {@code d1} and {@code d2}, the + * value of {@code d1.equals(d2)} is {@code true} if and + * only if + *

+ * {@code d1.doubleValue() == d2.doubleValue()} + *
+ *

also has the value {@code true}. However, there are two + * exceptions: + *

    + *
  • If {@code d1} and {@code d2} both represent + * {@code Double.NaN}, then the {@code equals} method + * returns {@code true}, even though + * {@code Double.NaN==Double.NaN} has the value + * {@code false}. + *
  • If {@code d1} represents {@code +0.0} while + * {@code d2} represents {@code -0.0}, or vice versa, + * the {@code equal} test has the value {@code false}, + * even though {@code +0.0==-0.0} has the value {@code true}. + *
+ * This definition allows hash tables to operate properly. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a representation of the specified floating-point value + * according to the IEEE 754 floating-point "double + * format" bit layout. + *

Bit 63 (the bit that is selected by the mask + * {@code 0x8000000000000000L}) represents the sign of the + * floating-point number. Bits + * 62-52 (the bits that are selected by the mask + * {@code 0x7ff0000000000000L}) represent the exponent. Bits 51-0 + * (the bits that are selected by the mask + * {@code 0x000fffffffffffffL}) represent the significand + * (sometimes called the mantissa) of the floating-point number. + *

If the argument is positive infinity, the result is + * {@code 0x7ff0000000000000L}. + *

If the argument is negative infinity, the result is + * {@code 0xfff0000000000000L}. + *

If the argument is NaN, the result is + * {@code 0x7ff8000000000000L}. + *

In all cases, the result is a {@code long} integer that, when + * given to the {@link #longBitsToDouble(long)} method, will produce a + * floating-point value the same as the argument to + * {@code doubleToLongBits} (except all NaN values are + * collapsed to a single "canonical" NaN value). + */ + // @ts-ignore + public static doubleToLongBits(value: number): number; + /** + * Returns a representation of the specified floating-point value + * according to the IEEE 754 floating-point "double + * format" bit layout, preserving Not-a-Number (NaN) values. + *

Bit 63 (the bit that is selected by the mask + * {@code 0x8000000000000000L}) represents the sign of the + * floating-point number. Bits + * 62-52 (the bits that are selected by the mask + * {@code 0x7ff0000000000000L}) represent the exponent. Bits 51-0 + * (the bits that are selected by the mask + * {@code 0x000fffffffffffffL}) represent the significand + * (sometimes called the mantissa) of the floating-point number. + *

If the argument is positive infinity, the result is + * {@code 0x7ff0000000000000L}. + *

If the argument is negative infinity, the result is + * {@code 0xfff0000000000000L}. + *

If the argument is NaN, the result is the {@code long} + * integer representing the actual NaN value. Unlike the + * {@code doubleToLongBits} method, + * {@code doubleToRawLongBits} does not collapse all the bit + * patterns encoding a NaN to a single "canonical" NaN + * value. + *

In all cases, the result is a {@code long} integer that, + * when given to the {@link #longBitsToDouble(long)} method, will + * produce a floating-point value the same as the argument to + * {@code doubleToRawLongBits}. + */ + // @ts-ignore + public static doubleToRawLongBits(value: number): number; + /** + * Returns the {@code double} value corresponding to a given + * bit representation. + * The argument is considered to be a representation of a + * floating-point value according to the IEEE 754 floating-point + * "double format" bit layout. + *

If the argument is {@code 0x7ff0000000000000L}, the result + * is positive infinity. + *

If the argument is {@code 0xfff0000000000000L}, the result + * is negative infinity. + *

If the argument is any value in the range + * {@code 0x7ff0000000000001L} through + * {@code 0x7fffffffffffffffL} or in the range + * {@code 0xfff0000000000001L} through + * {@code 0xffffffffffffffffL}, the result is a NaN. No IEEE + * 754 floating-point operation provided by Java can distinguish + * between two NaN values of the same type with different bit + * patterns. Distinct values of NaN are only distinguishable by + * use of the {@code Double.doubleToRawLongBits} method. + *

In all other cases, let s, e, and m be three + * values that can be computed from the argument: + *

{@code
+             * int s = ((bits >> 63) == 0) ? 1 : -1;
+             * int e = (int)((bits >> 52) & 0x7ffL);
+             * long m = (e == 0) ?
+             * (bits & 0xfffffffffffffL) << 1 :
+             * (bits & 0xfffffffffffffL) | 0x10000000000000L;
+             * }
+ * Then the floating-point result equals the value of the mathematical + * expression s·m·2e-1075. + *

Note that this method may not be able to return a + * {@code double} NaN with exactly same bit pattern as the + * {@code long} argument. IEEE 754 distinguishes between two + * kinds of NaNs, quiet NaNs and signaling NaNs. The + * differences between the two kinds of NaN are generally not + * visible in Java. Arithmetic operations on signaling NaNs turn + * them into quiet NaNs with a different, but often similar, bit + * pattern. However, on some processors merely copying a + * signaling NaN also performs that conversion. In particular, + * copying a signaling NaN to return it to the calling method + * may perform this conversion. So {@code longBitsToDouble} + * may not be able to return a {@code double} with a + * signaling NaN bit pattern. Consequently, for some + * {@code long} values, + * {@code doubleToRawLongBits(longBitsToDouble(start))} may + * not equal {@code start}. Moreover, which + * particular bit patterns represent signaling NaNs is platform + * dependent; although all NaN bit patterns, quiet or signaling, + * must be in the NaN range identified above. + */ + // @ts-ignore + public static longBitsToDouble(bits: number): number; + /** + * Compares two {@code Double} objects numerically. There + * are two ways in which comparisons performed by this method + * differ from those performed by the Java language numerical + * comparison operators ({@code <, <=, ==, >=, >}) + * when applied to primitive {@code double} values: + *

  • + * {@code Double.NaN} is considered by this method + * to be equal to itself and greater than all other + * {@code double} values (including + * {@code Double.POSITIVE_INFINITY}). + *
  • + * {@code 0.0d} is considered by this method to be greater + * than {@code -0.0d}. + *
+ * This ensures that the natural ordering of + * {@code Double} objects imposed by this method is consistent + * with equals. + */ + // @ts-ignore + public compareTo(anotherDouble: java.lang.Double): number; + /** + * Compares the two specified {@code double} values. The sign + * of the integer value returned is the same as that of the + * integer that would be returned by the call: + *
+             * new Double(d1).compareTo(new Double(d2))
+             * 
+ */ + // @ts-ignore + public static compare(d1: number, d2: number): number; + /** + * Adds two {@code double} values together as per the + operator. + */ + // @ts-ignore + public static sum(a: number, b: number): number; + /** + * Returns the greater of two {@code double} values + * as if by calling {@link Math#max(double, double) Math.max}. + */ + // @ts-ignore + public static max(a: number, b: number): number; + /** + * Returns the smaller of two {@code double} values + * as if by calling {@link Math#min(double, double) Math.min}. + */ + // @ts-ignore + public static min(a: number, b: number): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Enum.d.ts b/packages/types/dist/typings/jdk/java.lang.Enum.d.ts new file mode 100644 index 00000000..cbc41311 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Enum.d.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + abstract class Enum extends java.lang.Object { + /** + * Sole constructor. Programmers cannot invoke this constructor. + * It is for use by code emitted by the compiler in response to + * enum type declarations. + */ + // @ts-ignore + constructor(name: string, ordinal: number) + /** + * Returns the name of this enum constant, exactly as declared in its + * enum declaration. + * Most programmers should use the {@link #toString} method in + * preference to this one, as the toString method may return + * a more user-friendly name. This method is designed primarily for + * use in specialized situations where correctness depends on getting the + * exact name, which will not vary from release to release. + */ + // @ts-ignore + public name(): string; + /** + * Returns the ordinal of this enumeration constant (its position + * in its enum declaration, where the initial constant is assigned + * an ordinal of zero). + * Most programmers will have no use for this method. It is + * designed for use by sophisticated enum-based data structures, such + * as {@link java.util.EnumSet} and {@link java.util.EnumMap}. + */ + // @ts-ignore + public ordinal(): number; + /** + * Returns the name of this enum constant, as contained in the + * declaration. This method may be overridden, though it typically + * isn't necessary or desirable. An enum type should override this + * method when a more "programmer-friendly" string form exists. + */ + // @ts-ignore + public toString(): string; + /** + * Returns true if the specified object is equal to this + * enum constant. + */ + // @ts-ignore + public equals(other: java.lang.Object): boolean; + /** + * Returns a hash code for this enum constant. + */ + // @ts-ignore + public hashCode(): number; + /** + * Throws CloneNotSupportedException. This guarantees that enums + * are never cloned, which is necessary to preserve their "singleton" + * status. + */ + // @ts-ignore + protected clone(): java.lang.Object; + /** + * Compares this enum with the specified object for order. Returns a + * negative integer, zero, or a positive integer as this object is less + * than, equal to, or greater than the specified object. + * Enum constants are only comparable to other enum constants of the + * same enum type. The natural order implemented by this + * method is the order in which the constants are declared. + */ + // @ts-ignore + public compareTo(o: java.lang.Enum): number; + /** + * Returns the Class object corresponding to this enum constant's + * enum type. Two enum constants e1 and e2 are of the + * same enum type if and only if + * e1.getDeclaringClass() == e2.getDeclaringClass(). + * (The value returned by this method may differ from the one returned + * by the {@link Object#getClass} method for enum constants with + * constant-specific class bodies.) + */ + // @ts-ignore + public getDeclaringClass(): java.lang.Class; + /** + * Returns the enum constant of the specified enum type with the + * specified name. The name must match exactly an identifier used + * to declare an enum constant in this type. (Extraneous whitespace + * characters are not permitted.) + *

Note that for a particular enum type {@code T}, the + * implicitly declared {@code public static T valueOf(String)} + * method on that enum may be used instead of this method to map + * from a name to the corresponding enum constant. All the + * constants of an enum type can be obtained by calling the + * implicit {@code public static T[] values()} method of that + * type. + */ + // @ts-ignore + public static valueOf(enumType: java.lang.Class, name: string): java.lang.Enum; + /** + * enum classes cannot have finalize methods. + */ + // @ts-ignore + protected finalize(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.EnumConstantNotPresentException.d.ts b/packages/types/dist/typings/jdk/java.lang.EnumConstantNotPresentException.d.ts new file mode 100644 index 00000000..0eb556c3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.EnumConstantNotPresentException.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class EnumConstantNotPresentException extends java.lang.RuntimeException { + /** + * Constructs an EnumConstantNotPresentException for the + * specified constant. + */ + // @ts-ignore + constructor(enumType: java.lang.Class, constantName: string) + /** + * Returns the type of the missing enum constant. + */ + // @ts-ignore + public enumType(): java.lang.Class; + /** + * Returns the name of the missing enum constant. + */ + // @ts-ignore + public constantName(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Error.d.ts b/packages/types/dist/typings/jdk/java.lang.Error.d.ts new file mode 100644 index 00000000..fb997c11 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Error.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class Error extends java.lang.Throwable { + /** + * Constructs a new error with {@code null} as its detail message. + * The cause is not initialized, and may subsequently be initialized by a + * call to {@link #initCause}. + */ + // @ts-ignore + constructor() + /** + * Constructs a new error with the specified detail message. The + * cause is not initialized, and may subsequently be initialized by + * a call to {@link #initCause}. + */ + // @ts-ignore + constructor(message: string) + /** + * Constructs a new error with the specified detail message and + * cause.

Note that the detail message associated with + * {@code cause} is not automatically incorporated in + * this error's detail message. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Constructs a new error with the specified cause and a detail + * message of {@code (cause==null ? null : cause.toString())} (which + * typically contains the class and detail message of {@code cause}). + * This constructor is useful for errors that are little more than + * wrappers for other throwables. + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + /** + * Constructs a new error with the specified detail message, + * cause, suppression enabled or disabled, and writable stack + * trace enabled or disabled. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable, enableSuppression: boolean, writableStackTrace: boolean) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Exception.d.ts b/packages/types/dist/typings/jdk/java.lang.Exception.d.ts new file mode 100644 index 00000000..791b7b7b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Exception.d.ts @@ -0,0 +1,47 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class Exception extends java.lang.Throwable { + /** + * Constructs a new exception with {@code null} as its detail message. + * The cause is not initialized, and may subsequently be initialized by a + * call to {@link #initCause}. + */ + // @ts-ignore + constructor() + /** + * Constructs a new exception with the specified detail message. The + * cause is not initialized, and may subsequently be initialized by + * a call to {@link #initCause}. + */ + // @ts-ignore + constructor(message: string) + /** + * Constructs a new exception with the specified detail message and + * cause.

Note that the detail message associated with + * {@code cause} is not automatically incorporated in + * this exception's detail message. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Constructs a new exception with the specified cause and a detail + * message of (cause==null ? null : cause.toString()) (which + * typically contains the class and detail message of cause). + * This constructor is useful for exceptions that are little more than + * wrappers for other throwables (for example, {@link + * java.security.PrivilegedActionException}). + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + /** + * Constructs a new exception with the specified detail message, + * cause, suppression enabled or disabled, and writable stack + * trace enabled or disabled. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable, enableSuppression: boolean, writableStackTrace: boolean) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.ExceptionInInitializerError.d.ts b/packages/types/dist/typings/jdk/java.lang.ExceptionInInitializerError.d.ts new file mode 100644 index 00000000..1842f198 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.ExceptionInInitializerError.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class ExceptionInInitializerError extends java.lang.LinkageError { + /** + * Constructs an ExceptionInInitializerError with + * null as its detail message string and with no saved + * throwable object. + * A detail message is a String that describes this particular exception. + */ + // @ts-ignore + constructor() + /** + * Constructs a new ExceptionInInitializerError class by + * saving a reference to the Throwable object thrown for + * later retrieval by the {@link #getException()} method. The detail + * message string is set to null. + */ + // @ts-ignore + constructor(thrown: java.lang.Throwable) + /** + * Constructs an ExceptionInInitializerError with the specified detail + * message string. A detail message is a String that describes this + * particular exception. The detail message string is saved for later + * retrieval by the {@link Throwable#getMessage()} method. There is no + * saved throwable object. + */ + // @ts-ignore + constructor(s: string) + /** + * Returns the exception that occurred during a static initialization that + * caused this error to be created. + *

This method predates the general-purpose exception chaining facility. + * The {@link Throwable#getCause()} method is now the preferred means of + * obtaining this information. + */ + // @ts-ignore + public getException(): java.lang.Throwable; + /** + * Returns the cause of this error (the exception that occurred + * during a static initialization that caused this error to be created). + */ + // @ts-ignore + public getCause(): java.lang.Throwable; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Float.d.ts b/packages/types/dist/typings/jdk/java.lang.Float.d.ts new file mode 100644 index 00000000..3525a959 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Float.d.ts @@ -0,0 +1,564 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class Float extends java.lang.Number { + /** + * Constructs a newly allocated {@code Float} object that + * represents the primitive {@code float} argument. + */ + // @ts-ignore + constructor(value: number) + /** + * Constructs a newly allocated {@code Float} object that + * represents the argument converted to type {@code float}. + */ + // @ts-ignore + constructor(value: number) + /** + * Constructs a newly allocated {@code Float} object that + * represents the floating-point value of type {@code float} + * represented by the string. The string is converted to a + * {@code float} value as if by the {@code valueOf} method. + */ + // @ts-ignore + constructor(s: string) + // @ts-ignore + public static POSITIVE_INFINITY: number; + // @ts-ignore + public static NEGATIVE_INFINITY: number; + // @ts-ignore + public static NaN: number; + // @ts-ignore + public static MAX_VALUE: number; + // @ts-ignore + public static MIN_NORMAL: number; + // @ts-ignore + public static MIN_VALUE: number; + // @ts-ignore + public static MAX_EXPONENT: number; + // @ts-ignore + public static MIN_EXPONENT: number; + // @ts-ignore + public static SIZE: number; + // @ts-ignore + public static BYTES: number; + // @ts-ignore + public static TYPE: java.lang.Class; + /** + * Returns a string representation of the {@code float} + * argument. All characters mentioned below are ASCII characters. + *

    + *
  • If the argument is NaN, the result is the string + * "{@code NaN}". + *
  • Otherwise, the result is a string that represents the sign and + * magnitude (absolute value) of the argument. If the sign is + * negative, the first character of the result is + * '{@code -}' ({@code '\u002D'}); if the sign is + * positive, no sign character appears in the result. As for + * the magnitude m: + *
      + *
    • If m is infinity, it is represented by the characters + * {@code "Infinity"}; thus, positive infinity produces + * the result {@code "Infinity"} and negative infinity + * produces the result {@code "-Infinity"}. + *
    • If m is zero, it is represented by the characters + * {@code "0.0"}; thus, negative zero produces the result + * {@code "-0.0"} and positive zero produces the result + * {@code "0.0"}. + *
    • If m is greater than or equal to 10-3 but + * less than 107, then it is represented as the + * integer part of m, in decimal form with no leading + * zeroes, followed by '{@code .}' + * ({@code '\u002E'}), followed by one or more + * decimal digits representing the fractional part of + * m. + *
    • If m is less than 10-3 or greater than or + * equal to 107, then it is represented in + * so-called "computerized scientific notation." Let n + * be the unique integer such that 10n ≤ + * m {@literal <} 10n+1; then let a + * be the mathematically exact quotient of m and + * 10n so that 1 ≤ a {@literal <} 10. + * The magnitude is then represented as the integer part of + * a, as a single decimal digit, followed by + * '{@code .}' ({@code '\u002E'}), followed by + * decimal digits representing the fractional part of + * a, followed by the letter '{@code E}' + * ({@code '\u0045'}), followed by a representation + * of n as a decimal integer, as produced by the + * method {@link java.lang.Integer#toString(int)}. + *
    + *
+ * How many digits must be printed for the fractional part of + * m or a? There must be at least one digit + * to represent the fractional part, and beyond that as many, but + * only as many, more digits as are needed to uniquely distinguish + * the argument value from adjacent values of type + * {@code float}. That is, suppose that x is the + * exact mathematical value represented by the decimal + * representation produced by this method for a finite nonzero + * argument f. Then f must be the {@code float} + * value nearest to x; or, if two {@code float} values are + * equally close to x, then f must be one of + * them and the least significant bit of the significand of + * f must be {@code 0}. + *

To create localized string representations of a floating-point + * value, use subclasses of {@link java.text.NumberFormat}. + */ + // @ts-ignore + public static toString(f: number): string; + /** + * Returns a hexadecimal string representation of the + * {@code float} argument. All characters mentioned below are + * ASCII characters. + *

    + *
  • If the argument is NaN, the result is the string + * "{@code NaN}". + *
  • Otherwise, the result is a string that represents the sign and + * magnitude (absolute value) of the argument. If the sign is negative, + * the first character of the result is '{@code -}' + * ({@code '\u002D'}); if the sign is positive, no sign character + * appears in the result. As for the magnitude m: + *
      + *
    • If m is infinity, it is represented by the string + * {@code "Infinity"}; thus, positive infinity produces the + * result {@code "Infinity"} and negative infinity produces + * the result {@code "-Infinity"}. + *
    • If m is zero, it is represented by the string + * {@code "0x0.0p0"}; thus, negative zero produces the result + * {@code "-0x0.0p0"} and positive zero produces the result + * {@code "0x0.0p0"}. + *
    • If m is a {@code float} value with a + * normalized representation, substrings are used to represent the + * significand and exponent fields. The significand is + * represented by the characters {@code "0x1."} + * followed by a lowercase hexadecimal representation of the rest + * of the significand as a fraction. Trailing zeros in the + * hexadecimal representation are removed unless all the digits + * are zero, in which case a single zero is used. Next, the + * exponent is represented by {@code "p"} followed + * by a decimal string of the unbiased exponent as if produced by + * a call to {@link Integer#toString(int) Integer.toString} on the + * exponent value. + *
    • If m is a {@code float} value with a subnormal + * representation, the significand is represented by the + * characters {@code "0x0."} followed by a + * hexadecimal representation of the rest of the significand as a + * fraction. Trailing zeros in the hexadecimal representation are + * removed. Next, the exponent is represented by + * {@code "p-126"}. Note that there must be at + * least one nonzero digit in a subnormal significand. + *
    + *
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Examples
Floating-point ValueHexadecimal String
{@code 1.0} {@code 0x1.0p0}
{@code -1.0} {@code -0x1.0p0}
{@code 2.0} {@code 0x1.0p1}
{@code 3.0} {@code 0x1.8p1}
{@code 0.5} {@code 0x1.0p-1}
{@code 0.25} {@code 0x1.0p-2}
{@code Float.MAX_VALUE}{@code 0x1.fffffep127}
{@code Minimum Normal Value}{@code 0x1.0p-126}
{@code Maximum Subnormal Value}{@code 0x0.fffffep-126}
{@code Float.MIN_VALUE}{@code 0x0.000002p-126}
+ */ + // @ts-ignore + public static toHexString(f: number): string; + /** + * Returns a {@code Float} object holding the + * {@code float} value represented by the argument string + * {@code s}. + *

If {@code s} is {@code null}, then a + * {@code NullPointerException} is thrown. + *

Leading and trailing whitespace characters in {@code s} + * are ignored. Whitespace is removed as if by the {@link + * String#trim} method; that is, both ASCII space and control + * characters are removed. The rest of {@code s} should + * constitute a FloatValue as described by the lexical + * syntax rules: + *

+ *
+ *
FloatValue: + *
Signopt {@code NaN} + *
Signopt {@code Infinity} + *
Signopt FloatingPointLiteral + *
Signopt HexFloatingPointLiteral + *
SignedInteger + *
+ *
+ *
HexFloatingPointLiteral: + *
HexSignificand BinaryExponent FloatTypeSuffixopt + *
+ *
+ *
HexSignificand: + *
HexNumeral + *
HexNumeral {@code .} + *
{@code 0x} HexDigitsopt + * {@code .} HexDigits + *
{@code 0X} HexDigitsopt + * {@code .} HexDigits + *
+ *
+ *
BinaryExponent: + *
BinaryExponentIndicator SignedInteger + *
+ *
+ *
BinaryExponentIndicator: + *
{@code p} + *
{@code P} + *
+ *
+ * where Sign, FloatingPointLiteral, + * HexNumeral, HexDigits, SignedInteger and + * FloatTypeSuffix are as defined in the lexical structure + * sections of + * The Java™ Language Specification, + * except that underscores are not accepted between digits. + * If {@code s} does not have the form of + * a FloatValue, then a {@code NumberFormatException} + * is thrown. Otherwise, {@code s} is regarded as + * representing an exact decimal value in the usual + * "computerized scientific notation" or as an exact + * hexadecimal value; this exact numerical value is then + * conceptually converted to an "infinitely precise" + * binary value that is then rounded to type {@code float} + * by the usual round-to-nearest rule of IEEE 754 floating-point + * arithmetic, which includes preserving the sign of a zero + * value. + * Note that the round-to-nearest rule also implies overflow and + * underflow behaviour; if the exact value of {@code s} is large + * enough in magnitude (greater than or equal to ({@link + * #MAX_VALUE} + {@link Math#ulp(float) ulp(MAX_VALUE)}/2), + * rounding to {@code float} will result in an infinity and if the + * exact value of {@code s} is small enough in magnitude (less + * than or equal to {@link #MIN_VALUE}/2), rounding to float will + * result in a zero. + * Finally, after rounding a {@code Float} object representing + * this {@code float} value is returned. + *

To interpret localized string representations of a + * floating-point value, use subclasses of {@link + * java.text.NumberFormat}. + *

Note that trailing format specifiers, specifiers that + * determine the type of a floating-point literal + * ({@code 1.0f} is a {@code float} value; + * {@code 1.0d} is a {@code double} value), do + * not influence the results of this method. In other + * words, the numerical value of the input string is converted + * directly to the target floating-point type. In general, the + * two-step sequence of conversions, string to {@code double} + * followed by {@code double} to {@code float}, is + * not equivalent to converting a string directly to + * {@code float}. For example, if first converted to an + * intermediate {@code double} and then to + * {@code float}, the string
+ * {@code "1.00000017881393421514957253748434595763683319091796875001d"}
+ * results in the {@code float} value + * {@code 1.0000002f}; if the string is converted directly to + * {@code float}, 1.0000001f results. + *

To avoid calling this method on an invalid string and having + * a {@code NumberFormatException} be thrown, the documentation + * for {@link Double#valueOf Double.valueOf} lists a regular + * expression which can be used to screen the input. + */ + // @ts-ignore + public static valueOf(s: string): java.lang.Float; + /** + * Returns a {@code Float} instance representing the specified + * {@code float} value. + * If a new {@code Float} instance is not required, this method + * should generally be used in preference to the constructor + * {@link #Float(float)}, as this method is likely to yield + * significantly better space and time performance by caching + * frequently requested values. + */ + // @ts-ignore + public static valueOf(f: number): java.lang.Float; + /** + * Returns a new {@code float} initialized to the value + * represented by the specified {@code String}, as performed + * by the {@code valueOf} method of class {@code Float}. + */ + // @ts-ignore + public static parseFloat(s: string): number; + /** + * Returns {@code true} if the specified number is a + * Not-a-Number (NaN) value, {@code false} otherwise. + */ + // @ts-ignore + public static isNaN(v: number): boolean; + /** + * Returns {@code true} if the specified number is infinitely + * large in magnitude, {@code false} otherwise. + */ + // @ts-ignore + public static isInfinite(v: number): boolean; + /** + * Returns {@code true} if the argument is a finite floating-point + * value; returns {@code false} otherwise (for NaN and infinity + * arguments). + */ + // @ts-ignore + public static isFinite(f: number): boolean; + /** + * Returns {@code true} if this {@code Float} value is a + * Not-a-Number (NaN), {@code false} otherwise. + */ + // @ts-ignore + public isNaN(): boolean; + /** + * Returns {@code true} if this {@code Float} value is + * infinitely large in magnitude, {@code false} otherwise. + */ + // @ts-ignore + public isInfinite(): boolean; + /** + * Returns a string representation of this {@code Float} object. + * The primitive {@code float} value represented by this object + * is converted to a {@code String} exactly as if by the method + * {@code toString} of one argument. + */ + // @ts-ignore + public toString(): string; + /** + * Returns the value of this {@code Float} as a {@code byte} after + * a narrowing primitive conversion. + */ + // @ts-ignore + public byteValue(): number; + /** + * Returns the value of this {@code Float} as a {@code short} + * after a narrowing primitive conversion. + */ + // @ts-ignore + public shortValue(): number; + /** + * Returns the value of this {@code Float} as an {@code int} after + * a narrowing primitive conversion. + */ + // @ts-ignore + public intValue(): number; + /** + * Returns value of this {@code Float} as a {@code long} after a + * narrowing primitive conversion. + */ + // @ts-ignore + public longValue(): number; + /** + * Returns the {@code float} value of this {@code Float} object. + */ + // @ts-ignore + public floatValue(): number; + /** + * Returns the value of this {@code Float} as a {@code double} + * after a widening primitive conversion. + */ + // @ts-ignore + public doubleValue(): number; + /** + * Returns a hash code for this {@code Float} object. The + * result is the integer bit representation, exactly as produced + * by the method {@link #floatToIntBits(float)}, of the primitive + * {@code float} value represented by this {@code Float} + * object. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns a hash code for a {@code float} value; compatible with + * {@code Float.hashCode()}. + */ + // @ts-ignore + public static hashCode(value: number): number; + /** + * Compares this object against the specified object. The result + * is {@code true} if and only if the argument is not + * {@code null} and is a {@code Float} object that + * represents a {@code float} with the same value as the + * {@code float} represented by this object. For this + * purpose, two {@code float} values are considered to be the + * same if and only if the method {@link #floatToIntBits(float)} + * returns the identical {@code int} value when applied to + * each. + *

Note that in most cases, for two instances of class + * {@code Float}, {@code f1} and {@code f2}, the value + * of {@code f1.equals(f2)} is {@code true} if and only if + *

+             * f1.floatValue() == f2.floatValue()
+             * 
+ *

also has the value {@code true}. However, there are two exceptions: + *

    + *
  • If {@code f1} and {@code f2} both represent + * {@code Float.NaN}, then the {@code equals} method returns + * {@code true}, even though {@code Float.NaN==Float.NaN} + * has the value {@code false}. + *
  • If {@code f1} represents {@code +0.0f} while + * {@code f2} represents {@code -0.0f}, or vice + * versa, the {@code equal} test has the value + * {@code false}, even though {@code 0.0f==-0.0f} + * has the value {@code true}. + *
+ * This definition allows hash tables to operate properly. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a representation of the specified floating-point value + * according to the IEEE 754 floating-point "single format" bit + * layout. + *

Bit 31 (the bit that is selected by the mask + * {@code 0x80000000}) represents the sign of the floating-point + * number. + * Bits 30-23 (the bits that are selected by the mask + * {@code 0x7f800000}) represent the exponent. + * Bits 22-0 (the bits that are selected by the mask + * {@code 0x007fffff}) represent the significand (sometimes called + * the mantissa) of the floating-point number. + *

If the argument is positive infinity, the result is + * {@code 0x7f800000}. + *

If the argument is negative infinity, the result is + * {@code 0xff800000}. + *

If the argument is NaN, the result is {@code 0x7fc00000}. + *

In all cases, the result is an integer that, when given to the + * {@link #intBitsToFloat(int)} method, will produce a floating-point + * value the same as the argument to {@code floatToIntBits} + * (except all NaN values are collapsed to a single + * "canonical" NaN value). + */ + // @ts-ignore + public static floatToIntBits(value: number): number; + /** + * Returns a representation of the specified floating-point value + * according to the IEEE 754 floating-point "single format" bit + * layout, preserving Not-a-Number (NaN) values. + *

Bit 31 (the bit that is selected by the mask + * {@code 0x80000000}) represents the sign of the floating-point + * number. + * Bits 30-23 (the bits that are selected by the mask + * {@code 0x7f800000}) represent the exponent. + * Bits 22-0 (the bits that are selected by the mask + * {@code 0x007fffff}) represent the significand (sometimes called + * the mantissa) of the floating-point number. + *

If the argument is positive infinity, the result is + * {@code 0x7f800000}. + *

If the argument is negative infinity, the result is + * {@code 0xff800000}. + *

If the argument is NaN, the result is the integer representing + * the actual NaN value. Unlike the {@code floatToIntBits} + * method, {@code floatToRawIntBits} does not collapse all the + * bit patterns encoding a NaN to a single "canonical" + * NaN value. + *

In all cases, the result is an integer that, when given to the + * {@link #intBitsToFloat(int)} method, will produce a + * floating-point value the same as the argument to + * {@code floatToRawIntBits}. + */ + // @ts-ignore + public static floatToRawIntBits(value: number): number; + /** + * Returns the {@code float} value corresponding to a given + * bit representation. + * The argument is considered to be a representation of a + * floating-point value according to the IEEE 754 floating-point + * "single format" bit layout. + *

If the argument is {@code 0x7f800000}, the result is positive + * infinity. + *

If the argument is {@code 0xff800000}, the result is negative + * infinity. + *

If the argument is any value in the range + * {@code 0x7f800001} through {@code 0x7fffffff} or in + * the range {@code 0xff800001} through + * {@code 0xffffffff}, the result is a NaN. No IEEE 754 + * floating-point operation provided by Java can distinguish + * between two NaN values of the same type with different bit + * patterns. Distinct values of NaN are only distinguishable by + * use of the {@code Float.floatToRawIntBits} method. + *

In all other cases, let s, e, and m be three + * values that can be computed from the argument: + *

{@code
+             * int s = ((bits >> 31) == 0) ? 1 : -1;
+             * int e = ((bits >> 23) & 0xff);
+             * int m = (e == 0) ?
+             * (bits & 0x7fffff) << 1 :
+             * (bits & 0x7fffff) | 0x800000;
+             * }
+ * Then the floating-point result equals the value of the mathematical + * expression s·m·2e-150. + *

Note that this method may not be able to return a + * {@code float} NaN with exactly same bit pattern as the + * {@code int} argument. IEEE 754 distinguishes between two + * kinds of NaNs, quiet NaNs and signaling NaNs. The + * differences between the two kinds of NaN are generally not + * visible in Java. Arithmetic operations on signaling NaNs turn + * them into quiet NaNs with a different, but often similar, bit + * pattern. However, on some processors merely copying a + * signaling NaN also performs that conversion. In particular, + * copying a signaling NaN to return it to the calling method may + * perform this conversion. So {@code intBitsToFloat} may + * not be able to return a {@code float} with a signaling NaN + * bit pattern. Consequently, for some {@code int} values, + * {@code floatToRawIntBits(intBitsToFloat(start))} may + * not equal {@code start}. Moreover, which + * particular bit patterns represent signaling NaNs is platform + * dependent; although all NaN bit patterns, quiet or signaling, + * must be in the NaN range identified above. + */ + // @ts-ignore + public static intBitsToFloat(bits: number): number; + /** + * Compares two {@code Float} objects numerically. There are + * two ways in which comparisons performed by this method differ + * from those performed by the Java language numerical comparison + * operators ({@code <, <=, ==, >=, >}) when + * applied to primitive {@code float} values: + *

  • + * {@code Float.NaN} is considered by this method to + * be equal to itself and greater than all other + * {@code float} values + * (including {@code Float.POSITIVE_INFINITY}). + *
  • + * {@code 0.0f} is considered by this method to be greater + * than {@code -0.0f}. + *
+ * This ensures that the natural ordering of {@code Float} + * objects imposed by this method is consistent with equals. + */ + // @ts-ignore + public compareTo(anotherFloat: java.lang.Float): number; + /** + * Compares the two specified {@code float} values. The sign + * of the integer value returned is the same as that of the + * integer that would be returned by the call: + *
+             * new Float(f1).compareTo(new Float(f2))
+             * 
+ */ + // @ts-ignore + public static compare(f1: number, f2: number): number; + /** + * Adds two {@code float} values together as per the + operator. + */ + // @ts-ignore + public static sum(a: number, b: number): number; + /** + * Returns the greater of two {@code float} values + * as if by calling {@link Math#max(float, float) Math.max}. + */ + // @ts-ignore + public static max(a: number, b: number): number; + /** + * Returns the smaller of two {@code float} values + * as if by calling {@link Math#min(float, float) Math.min}. + */ + // @ts-ignore + public static min(a: number, b: number): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.FunctionalInterface.d.ts b/packages/types/dist/typings/jdk/java.lang.FunctionalInterface.d.ts new file mode 100644 index 00000000..bb8fa255 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.FunctionalInterface.d.ts @@ -0,0 +1,8 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + interface FunctionalInterface { + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.IllegalAccessError.d.ts b/packages/types/dist/typings/jdk/java.lang.IllegalAccessError.d.ts new file mode 100644 index 00000000..89795ac4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.IllegalAccessError.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class IllegalAccessError extends java.lang.IncompatibleClassChangeError { + /** + * Constructs an IllegalAccessError with no detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs an IllegalAccessError with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.IllegalAccessException.d.ts b/packages/types/dist/typings/jdk/java.lang.IllegalAccessException.d.ts new file mode 100644 index 00000000..c7781b7a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.IllegalAccessException.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class IllegalAccessException extends java.lang.ReflectiveOperationException { + /** + * Constructs an IllegalAccessException without a + * detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs an IllegalAccessException with a detail message. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.IllegalArgumentException.d.ts b/packages/types/dist/typings/jdk/java.lang.IllegalArgumentException.d.ts new file mode 100644 index 00000000..9ae1c107 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.IllegalArgumentException.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class IllegalArgumentException extends java.lang.RuntimeException { + /** + * Constructs an IllegalArgumentException with no + * detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs an IllegalArgumentException with the + * specified detail message. + */ + // @ts-ignore + constructor(s: string) + /** + * Constructs a new exception with the specified detail message and + * cause. + *

Note that the detail message associated with cause is + * not automatically incorporated in this exception's detail + * message. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Constructs a new exception with the specified cause and a detail + * message of (cause==null ? null : cause.toString()) (which + * typically contains the class and detail message of cause). + * This constructor is useful for exceptions that are little more than + * wrappers for other throwables (for example, {@link + * java.security.PrivilegedActionException}). + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.IllegalMonitorStateException.d.ts b/packages/types/dist/typings/jdk/java.lang.IllegalMonitorStateException.d.ts new file mode 100644 index 00000000..9d92f9e5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.IllegalMonitorStateException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class IllegalMonitorStateException extends java.lang.RuntimeException { + /** + * Constructs an IllegalMonitorStateException with no + * detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs an IllegalMonitorStateException with the + * specified detail message. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.IllegalStateException.d.ts b/packages/types/dist/typings/jdk/java.lang.IllegalStateException.d.ts new file mode 100644 index 00000000..3e644c0a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.IllegalStateException.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class IllegalStateException extends java.lang.RuntimeException { + /** + * Constructs an IllegalStateException with no detail message. + * A detail message is a String that describes this particular exception. + */ + // @ts-ignore + constructor() + /** + * Constructs an IllegalStateException with the specified detail + * message. A detail message is a String that describes this particular + * exception. + */ + // @ts-ignore + constructor(s: string) + /** + * Constructs a new exception with the specified detail message and + * cause. + *

Note that the detail message associated with cause is + * not automatically incorporated in this exception's detail + * message. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Constructs a new exception with the specified cause and a detail + * message of (cause==null ? null : cause.toString()) (which + * typically contains the class and detail message of cause). + * This constructor is useful for exceptions that are little more than + * wrappers for other throwables (for example, {@link + * java.security.PrivilegedActionException}). + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.IllegalThreadStateException.d.ts b/packages/types/dist/typings/jdk/java.lang.IllegalThreadStateException.d.ts new file mode 100644 index 00000000..2bcd21d4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.IllegalThreadStateException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class IllegalThreadStateException extends java.lang.IllegalArgumentException { + /** + * Constructs an IllegalThreadStateException with no + * detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs an IllegalThreadStateException with the + * specified detail message. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.IncompatibleClassChangeError.d.ts b/packages/types/dist/typings/jdk/java.lang.IncompatibleClassChangeError.d.ts new file mode 100644 index 00000000..da3c1d0b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.IncompatibleClassChangeError.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class IncompatibleClassChangeError extends java.lang.LinkageError { + /** + * Constructs an IncompatibleClassChangeError with no + * detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs an IncompatibleClassChangeError with the + * specified detail message. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.IndexOutOfBoundsException.d.ts b/packages/types/dist/typings/jdk/java.lang.IndexOutOfBoundsException.d.ts new file mode 100644 index 00000000..d83631f3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.IndexOutOfBoundsException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class IndexOutOfBoundsException extends java.lang.RuntimeException { + /** + * Constructs an IndexOutOfBoundsException with no + * detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs an IndexOutOfBoundsException with the + * specified detail message. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.InheritableThreadLocal.d.ts b/packages/types/dist/typings/jdk/java.lang.InheritableThreadLocal.d.ts new file mode 100644 index 00000000..3510eef4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.InheritableThreadLocal.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class InheritableThreadLocal extends java.lang.ThreadLocal { + // @ts-ignore + constructor() + /** + * Computes the child's initial value for this inheritable thread-local + * variable as a function of the parent's value at the time the child + * thread is created. This method is called from within the parent + * thread before the child is started. + *

+ * This method merely returns its input argument, and should be overridden + * if a different behavior is desired. + */ + // @ts-ignore + protected childValue(parentValue: java.lang.Object): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.InstantiationError.d.ts b/packages/types/dist/typings/jdk/java.lang.InstantiationError.d.ts new file mode 100644 index 00000000..3092ee5d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.InstantiationError.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class InstantiationError extends java.lang.IncompatibleClassChangeError { + /** + * Constructs a new instance of this class with its + * walkback filled in. + */ + // @ts-ignore + constructor() + /** + * Constructs a new instance of this class with its + * walkback and message filled in. + */ + // @ts-ignore + constructor(detailMessage: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.InstantiationException.d.ts b/packages/types/dist/typings/jdk/java.lang.InstantiationException.d.ts new file mode 100644 index 00000000..f6d9149c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.InstantiationException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class InstantiationException extends java.lang.ReflectiveOperationException { + /** + * Constructs a new instance of this class with its + * walkback filled in. + */ + // @ts-ignore + constructor() + /** + * Constructs a new instance of this class with its + * walkback and message filled in. + */ + // @ts-ignore + constructor(detailMessage: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Integer.d.ts b/packages/types/dist/typings/jdk/java.lang.Integer.d.ts new file mode 100644 index 00000000..be58ca7a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Integer.d.ts @@ -0,0 +1,663 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class Integer extends java.lang.Number { + /** + * Constructs a newly allocated {@code Integer} object that + * represents the specified {@code int} value. + */ + // @ts-ignore + constructor(value: number) + /** + * Constructs a newly allocated {@code Integer} object that + * represents the {@code int} value indicated by the + * {@code String} parameter. The string is converted to an + * {@code int} value in exactly the manner used by the + * {@code parseInt} method for radix 10. + */ + // @ts-ignore + constructor(s: string) + // @ts-ignore + public static MIN_VALUE: number; + // @ts-ignore + public static MAX_VALUE: number; + // @ts-ignore + public static TYPE: java.lang.Class; + // @ts-ignore + public static SIZE: number; + // @ts-ignore + public static BYTES: number; + /** + * Returns a string representation of the first argument in the + * radix specified by the second argument. + *

If the radix is smaller than {@code Character.MIN_RADIX} + * or larger than {@code Character.MAX_RADIX}, then the radix + * {@code 10} is used instead. + *

If the first argument is negative, the first element of the + * result is the ASCII minus character {@code '-'} + * ({@code '\u002D'}). If the first argument is not + * negative, no sign character appears in the result. + *

The remaining characters of the result represent the magnitude + * of the first argument. If the magnitude is zero, it is + * represented by a single zero character {@code '0'} + * ({@code '\u0030'}); otherwise, the first character of + * the representation of the magnitude will not be the zero + * character. The following ASCII characters are used as digits: + *

+ * {@code 0123456789abcdefghijklmnopqrstuvwxyz} + *
+ * These are {@code '\u0030'} through + * {@code '\u0039'} and {@code '\u0061'} through + * {@code '\u007A'}. If {@code radix} is + * N, then the first N of these characters + * are used as radix-N digits in the order shown. Thus, + * the digits for hexadecimal (radix 16) are + * {@code 0123456789abcdef}. If uppercase letters are + * desired, the {@link java.lang.String#toUpperCase()} method may + * be called on the result: + *
+ * {@code Integer.toString(n, 16).toUpperCase()} + *
+ */ + // @ts-ignore + public static toString(i: number, radix: number): string; + /** + * Returns a string representation of the first argument as an + * unsigned integer value in the radix specified by the second + * argument. + *

If the radix is smaller than {@code Character.MIN_RADIX} + * or larger than {@code Character.MAX_RADIX}, then the radix + * {@code 10} is used instead. + *

Note that since the first argument is treated as an unsigned + * value, no leading sign character is printed. + *

If the magnitude is zero, it is represented by a single zero + * character {@code '0'} ({@code '\u0030'}); otherwise, + * the first character of the representation of the magnitude will + * not be the zero character. + *

The behavior of radixes and the characters used as digits + * are the same as {@link #toString(int, int) toString}. + */ + // @ts-ignore + public static toUnsignedString(i: number, radix: number): string; + /** + * Returns a string representation of the integer argument as an + * unsigned integer in base 16. + *

The unsigned integer value is the argument plus 232 + * if the argument is negative; otherwise, it is equal to the + * argument. This value is converted to a string of ASCII digits + * in hexadecimal (base 16) with no extra leading + * {@code 0}s. + *

The value of the argument can be recovered from the returned + * string {@code s} by calling {@link + * Integer#parseUnsignedInt(String, int) + * Integer.parseUnsignedInt(s, 16)}. + *

If the unsigned magnitude is zero, it is represented by a + * single zero character {@code '0'} ({@code '\u0030'}); + * otherwise, the first character of the representation of the + * unsigned magnitude will not be the zero character. The + * following characters are used as hexadecimal digits: + *

+ * {@code 0123456789abcdef} + *
+ * These are the characters {@code '\u0030'} through + * {@code '\u0039'} and {@code '\u0061'} through + * {@code '\u0066'}. If uppercase letters are + * desired, the {@link java.lang.String#toUpperCase()} method may + * be called on the result: + *
+ * {@code Integer.toHexString(n).toUpperCase()} + *
+ */ + // @ts-ignore + public static toHexString(i: number): string; + /** + * Returns a string representation of the integer argument as an + * unsigned integer in base 8. + *

The unsigned integer value is the argument plus 232 + * if the argument is negative; otherwise, it is equal to the + * argument. This value is converted to a string of ASCII digits + * in octal (base 8) with no extra leading {@code 0}s. + *

The value of the argument can be recovered from the returned + * string {@code s} by calling {@link + * Integer#parseUnsignedInt(String, int) + * Integer.parseUnsignedInt(s, 8)}. + *

If the unsigned magnitude is zero, it is represented by a + * single zero character {@code '0'} ({@code '\u0030'}); + * otherwise, the first character of the representation of the + * unsigned magnitude will not be the zero character. The + * following characters are used as octal digits: + *

+ * {@code 01234567} + *
+ * These are the characters {@code '\u0030'} through + * {@code '\u0037'}. + */ + // @ts-ignore + public static toOctalString(i: number): string; + /** + * Returns a string representation of the integer argument as an + * unsigned integer in base 2. + *

The unsigned integer value is the argument plus 232 + * if the argument is negative; otherwise it is equal to the + * argument. This value is converted to a string of ASCII digits + * in binary (base 2) with no extra leading {@code 0}s. + *

The value of the argument can be recovered from the returned + * string {@code s} by calling {@link + * Integer#parseUnsignedInt(String, int) + * Integer.parseUnsignedInt(s, 2)}. + *

If the unsigned magnitude is zero, it is represented by a + * single zero character {@code '0'} ({@code '\u0030'}); + * otherwise, the first character of the representation of the + * unsigned magnitude will not be the zero character. The + * characters {@code '0'} ({@code '\u0030'}) and {@code + * '1'} ({@code '\u0031'}) are used as binary digits. + */ + // @ts-ignore + public static toBinaryString(i: number): string; + /** + * Returns a {@code String} object representing the + * specified integer. The argument is converted to signed decimal + * representation and returned as a string, exactly as if the + * argument and radix 10 were given as arguments to the {@link + * #toString(int, int)} method. + */ + // @ts-ignore + public static toString(i: number): string; + /** + * Returns a string representation of the argument as an unsigned + * decimal value. + * The argument is converted to unsigned decimal representation + * and returned as a string exactly as if the argument and radix + * 10 were given as arguments to the {@link #toUnsignedString(int, + * int)} method. + */ + // @ts-ignore + public static toUnsignedString(i: number): string; + /** + * Parses the string argument as a signed integer in the radix + * specified by the second argument. The characters in the string + * must all be digits of the specified radix (as determined by + * whether {@link java.lang.Character#digit(char, int)} returns a + * nonnegative value), except that the first character may be an + * ASCII minus sign {@code '-'} ({@code '\u002D'}) to + * indicate a negative value or an ASCII plus sign {@code '+'} + * ({@code '\u002B'}) to indicate a positive value. The + * resulting integer value is returned. + *

An exception of type {@code NumberFormatException} is + * thrown if any of the following situations occurs: + *

    + *
  • The first argument is {@code null} or is a string of + * length zero. + *
  • The radix is either smaller than + * {@link java.lang.Character#MIN_RADIX} or + * larger than {@link java.lang.Character#MAX_RADIX}. + *
  • Any character of the string is not a digit of the specified + * radix, except that the first character may be a minus sign + * {@code '-'} ({@code '\u002D'}) or plus sign + * {@code '+'} ({@code '\u002B'}) provided that the + * string is longer than length 1. + *
  • The value represented by the string is not a value of type + * {@code int}. + *
+ *

Examples: + *

+             * parseInt("0", 10) returns 0
+             * parseInt("473", 10) returns 473
+             * parseInt("+42", 10) returns 42
+             * parseInt("-0", 10) returns 0
+             * parseInt("-FF", 16) returns -255
+             * parseInt("1100110", 2) returns 102
+             * parseInt("2147483647", 10) returns 2147483647
+             * parseInt("-2147483648", 10) returns -2147483648
+             * parseInt("2147483648", 10) throws a NumberFormatException
+             * parseInt("99", 8) throws a NumberFormatException
+             * parseInt("Kona", 10) throws a NumberFormatException
+             * parseInt("Kona", 27) returns 411787
+             * 
+ */ + // @ts-ignore + public static parseInt(s: string, radix: number): number; + /** + * Parses the string argument as a signed decimal integer. The + * characters in the string must all be decimal digits, except + * that the first character may be an ASCII minus sign {@code '-'} + * ({@code '\u002D'}) to indicate a negative value or an + * ASCII plus sign {@code '+'} ({@code '\u002B'}) to + * indicate a positive value. The resulting integer value is + * returned, exactly as if the argument and the radix 10 were + * given as arguments to the {@link #parseInt(java.lang.String, + * int)} method. + */ + // @ts-ignore + public static parseInt(s: string): number; + /** + * Parses the string argument as an unsigned integer in the radix + * specified by the second argument. An unsigned integer maps the + * values usually associated with negative numbers to positive + * numbers larger than {@code MAX_VALUE}. + * The characters in the string must all be digits of the + * specified radix (as determined by whether {@link + * java.lang.Character#digit(char, int)} returns a nonnegative + * value), except that the first character may be an ASCII plus + * sign {@code '+'} ({@code '\u002B'}). The resulting + * integer value is returned. + *

An exception of type {@code NumberFormatException} is + * thrown if any of the following situations occurs: + *

    + *
  • The first argument is {@code null} or is a string of + * length zero. + *
  • The radix is either smaller than + * {@link java.lang.Character#MIN_RADIX} or + * larger than {@link java.lang.Character#MAX_RADIX}. + *
  • Any character of the string is not a digit of the specified + * radix, except that the first character may be a plus sign + * {@code '+'} ({@code '\u002B'}) provided that the + * string is longer than length 1. + *
  • The value represented by the string is larger than the + * largest unsigned {@code int}, 232-1. + *
+ */ + // @ts-ignore + public static parseUnsignedInt(s: string, radix: number): number; + /** + * Parses the string argument as an unsigned decimal integer. The + * characters in the string must all be decimal digits, except + * that the first character may be an an ASCII plus sign {@code + * '+'} ({@code '\u002B'}). The resulting integer value + * is returned, exactly as if the argument and the radix 10 were + * given as arguments to the {@link + * #parseUnsignedInt(java.lang.String, int)} method. + */ + // @ts-ignore + public static parseUnsignedInt(s: string): number; + /** + * Returns an {@code Integer} object holding the value + * extracted from the specified {@code String} when parsed + * with the radix given by the second argument. The first argument + * is interpreted as representing a signed integer in the radix + * specified by the second argument, exactly as if the arguments + * were given to the {@link #parseInt(java.lang.String, int)} + * method. The result is an {@code Integer} object that + * represents the integer value specified by the string. + *

In other words, this method returns an {@code Integer} + * object equal to the value of: + *

+ * {@code new Integer(Integer.parseInt(s, radix))} + *
+ */ + // @ts-ignore + public static valueOf(s: string, radix: number): java.lang.Integer; + /** + * Returns an {@code Integer} object holding the + * value of the specified {@code String}. The argument is + * interpreted as representing a signed decimal integer, exactly + * as if the argument were given to the {@link + * #parseInt(java.lang.String)} method. The result is an + * {@code Integer} object that represents the integer value + * specified by the string. + *

In other words, this method returns an {@code Integer} + * object equal to the value of: + *

+ * {@code new Integer(Integer.parseInt(s))} + *
+ */ + // @ts-ignore + public static valueOf(s: string): java.lang.Integer; + /** + * Returns an {@code Integer} instance representing the specified + * {@code int} value. If a new {@code Integer} instance is not + * required, this method should generally be used in preference to + * the constructor {@link #Integer(int)}, as this method is likely + * to yield significantly better space and time performance by + * caching frequently requested values. + * This method will always cache values in the range -128 to 127, + * inclusive, and may cache other values outside of this range. + */ + // @ts-ignore + public static valueOf(i: number): java.lang.Integer; + /** + * Returns the value of this {@code Integer} as a {@code byte} + * after a narrowing primitive conversion. + */ + // @ts-ignore + public byteValue(): number; + /** + * Returns the value of this {@code Integer} as a {@code short} + * after a narrowing primitive conversion. + */ + // @ts-ignore + public shortValue(): number; + /** + * Returns the value of this {@code Integer} as an + * {@code int}. + */ + // @ts-ignore + public intValue(): number; + /** + * Returns the value of this {@code Integer} as a {@code long} + * after a widening primitive conversion. + */ + // @ts-ignore + public longValue(): number; + /** + * Returns the value of this {@code Integer} as a {@code float} + * after a widening primitive conversion. + */ + // @ts-ignore + public floatValue(): number; + /** + * Returns the value of this {@code Integer} as a {@code double} + * after a widening primitive conversion. + */ + // @ts-ignore + public doubleValue(): number; + /** + * Returns a {@code String} object representing this + * {@code Integer}'s value. The value is converted to signed + * decimal representation and returned as a string, exactly as if + * the integer value were given as an argument to the {@link + * java.lang.Integer#toString(int)} method. + */ + // @ts-ignore + public toString(): string; + /** + * Returns a hash code for this {@code Integer}. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns a hash code for a {@code int} value; compatible with + * {@code Integer.hashCode()}. + */ + // @ts-ignore + public static hashCode(value: number): number; + /** + * Compares this object to the specified object. The result is + * {@code true} if and only if the argument is not + * {@code null} and is an {@code Integer} object that + * contains the same {@code int} value as this object. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Determines the integer value of the system property with the + * specified name. + *

The first argument is treated as the name of a system + * property. System properties are accessible through the {@link + * java.lang.System#getProperty(java.lang.String)} method. The + * string value of this property is then interpreted as an integer + * value using the grammar supported by {@link Integer#decode decode} and + * an {@code Integer} object representing this value is returned. + *

If there is no property with the specified name, if the + * specified name is empty or {@code null}, or if the property + * does not have the correct numeric format, then {@code null} is + * returned. + *

In other words, this method returns an {@code Integer} + * object equal to the value of: + *

+ * {@code getInteger(nm, null)} + *
+ */ + // @ts-ignore + public static getInteger(nm: string): java.lang.Integer; + /** + * Determines the integer value of the system property with the + * specified name. + *

The first argument is treated as the name of a system + * property. System properties are accessible through the {@link + * java.lang.System#getProperty(java.lang.String)} method. The + * string value of this property is then interpreted as an integer + * value using the grammar supported by {@link Integer#decode decode} and + * an {@code Integer} object representing this value is returned. + *

The second argument is the default value. An {@code Integer} object + * that represents the value of the second argument is returned if there + * is no property of the specified name, if the property does not have + * the correct numeric format, or if the specified name is empty or + * {@code null}. + *

In other words, this method returns an {@code Integer} object + * equal to the value of: + *

+ * {@code getInteger(nm, new Integer(val))} + *
+ * but in practice it may be implemented in a manner such as: + *
+             * Integer result = getInteger(nm, null);
+             * return (result == null) ? new Integer(val) : result;
+             * 
+ * to avoid the unnecessary allocation of an {@code Integer} + * object when the default value is not needed. + */ + // @ts-ignore + public static getInteger(nm: string, val: number): java.lang.Integer; + /** + * Returns the integer value of the system property with the + * specified name. The first argument is treated as the name of a + * system property. System properties are accessible through the + * {@link java.lang.System#getProperty(java.lang.String)} method. + * The string value of this property is then interpreted as an + * integer value, as per the {@link Integer#decode decode} method, + * and an {@code Integer} object representing this value is + * returned; in summary: + *
  • If the property value begins with the two ASCII characters + * {@code 0x} or the ASCII character {@code #}, not + * followed by a minus sign, then the rest of it is parsed as a + * hexadecimal integer exactly as by the method + * {@link #valueOf(java.lang.String, int)} with radix 16. + *
  • If the property value begins with the ASCII character + * {@code 0} followed by another character, it is parsed as an + * octal integer exactly as by the method + * {@link #valueOf(java.lang.String, int)} with radix 8. + *
  • Otherwise, the property value is parsed as a decimal integer + * exactly as by the method {@link #valueOf(java.lang.String, int)} + * with radix 10. + *
+ *

The second argument is the default value. The default value is + * returned if there is no property of the specified name, if the + * property does not have the correct numeric format, or if the + * specified name is empty or {@code null}. + */ + // @ts-ignore + public static getInteger(nm: string, val: java.lang.Integer): java.lang.Integer; + /** + * Decodes a {@code String} into an {@code Integer}. + * Accepts decimal, hexadecimal, and octal numbers given + * by the following grammar: + *

+ *
+ *
DecodableString: + *
Signopt DecimalNumeral + *
Signopt {@code 0x} HexDigits + *
Signopt {@code 0X} HexDigits + *
Signopt {@code #} HexDigits + *
Signopt {@code 0} OctalDigits + *
Sign: + *
{@code -} + *
{@code +} + *
+ *
+ * DecimalNumeral, HexDigits, and OctalDigits + * are as defined in section 3.10.1 of + * The Java™ Language Specification, + * except that underscores are not accepted between digits. + *

The sequence of characters following an optional + * sign and/or radix specifier ("{@code 0x}", "{@code 0X}", + * "{@code #}", or leading zero) is parsed as by the {@code + * Integer.parseInt} method with the indicated radix (10, 16, or + * 8). This sequence of characters must represent a positive + * value or a {@link NumberFormatException} will be thrown. The + * result is negated if first character of the specified {@code + * String} is the minus sign. No whitespace characters are + * permitted in the {@code String}. + */ + // @ts-ignore + public static decode(nm: string): java.lang.Integer; + /** + * Compares two {@code Integer} objects numerically. + */ + // @ts-ignore + public compareTo(anotherInteger: java.lang.Integer): number; + /** + * Compares two {@code int} values numerically. + * The value returned is identical to what would be returned by: + *

+             * Integer.valueOf(x).compareTo(Integer.valueOf(y))
+             * 
+ */ + // @ts-ignore + public static compare(x: number, y: number): number; + /** + * Compares two {@code int} values numerically treating the values + * as unsigned. + */ + // @ts-ignore + public static compareUnsigned(x: number, y: number): number; + /** + * Converts the argument to a {@code long} by an unsigned + * conversion. In an unsigned conversion to a {@code long}, the + * high-order 32 bits of the {@code long} are zero and the + * low-order 32 bits are equal to the bits of the integer + * argument. + * Consequently, zero and positive {@code int} values are mapped + * to a numerically equal {@code long} value and negative {@code + * int} values are mapped to a {@code long} value equal to the + * input plus 232. + */ + // @ts-ignore + public static toUnsignedLong(x: number): number; + /** + * Returns the unsigned quotient of dividing the first argument by + * the second where each argument and the result is interpreted as + * an unsigned value. + *

Note that in two's complement arithmetic, the three other + * basic arithmetic operations of add, subtract, and multiply are + * bit-wise identical if the two operands are regarded as both + * being signed or both being unsigned. Therefore separate {@code + * addUnsigned}, etc. methods are not provided. + */ + // @ts-ignore + public static divideUnsigned(dividend: number, divisor: number): number; + /** + * Returns the unsigned remainder from dividing the first argument + * by the second where each argument and the result is interpreted + * as an unsigned value. + */ + // @ts-ignore + public static remainderUnsigned(dividend: number, divisor: number): number; + /** + * Returns an {@code int} value with at most a single one-bit, in the + * position of the highest-order ("leftmost") one-bit in the specified + * {@code int} value. Returns zero if the specified value has no + * one-bits in its two's complement binary representation, that is, if it + * is equal to zero. + */ + // @ts-ignore + public static highestOneBit(i: number): number; + /** + * Returns an {@code int} value with at most a single one-bit, in the + * position of the lowest-order ("rightmost") one-bit in the specified + * {@code int} value. Returns zero if the specified value has no + * one-bits in its two's complement binary representation, that is, if it + * is equal to zero. + */ + // @ts-ignore + public static lowestOneBit(i: number): number; + /** + * Returns the number of zero bits preceding the highest-order + * ("leftmost") one-bit in the two's complement binary representation + * of the specified {@code int} value. Returns 32 if the + * specified value has no one-bits in its two's complement representation, + * in other words if it is equal to zero. + *

Note that this method is closely related to the logarithm base 2. + * For all positive {@code int} values x: + *

    + *
  • floor(log2(x)) = {@code 31 - numberOfLeadingZeros(x)} + *
  • ceil(log2(x)) = {@code 32 - numberOfLeadingZeros(x - 1)} + *
+ */ + // @ts-ignore + public static numberOfLeadingZeros(i: number): number; + /** + * Returns the number of zero bits following the lowest-order ("rightmost") + * one-bit in the two's complement binary representation of the specified + * {@code int} value. Returns 32 if the specified value has no + * one-bits in its two's complement representation, in other words if it is + * equal to zero. + */ + // @ts-ignore + public static numberOfTrailingZeros(i: number): number; + /** + * Returns the number of one-bits in the two's complement binary + * representation of the specified {@code int} value. This function is + * sometimes referred to as the population count. + */ + // @ts-ignore + public static bitCount(i: number): number; + /** + * Returns the value obtained by rotating the two's complement binary + * representation of the specified {@code int} value left by the + * specified number of bits. (Bits shifted out of the left hand, or + * high-order, side reenter on the right, or low-order.) + *

Note that left rotation with a negative distance is equivalent to + * right rotation: {@code rotateLeft(val, -distance) == rotateRight(val, + * distance)}. Note also that rotation by any multiple of 32 is a + * no-op, so all but the last five bits of the rotation distance can be + * ignored, even if the distance is negative: {@code rotateLeft(val, + * distance) == rotateLeft(val, distance & 0x1F)}. + */ + // @ts-ignore + public static rotateLeft(i: number, distance: number): number; + /** + * Returns the value obtained by rotating the two's complement binary + * representation of the specified {@code int} value right by the + * specified number of bits. (Bits shifted out of the right hand, or + * low-order, side reenter on the left, or high-order.) + *

Note that right rotation with a negative distance is equivalent to + * left rotation: {@code rotateRight(val, -distance) == rotateLeft(val, + * distance)}. Note also that rotation by any multiple of 32 is a + * no-op, so all but the last five bits of the rotation distance can be + * ignored, even if the distance is negative: {@code rotateRight(val, + * distance) == rotateRight(val, distance & 0x1F)}. + */ + // @ts-ignore + public static rotateRight(i: number, distance: number): number; + /** + * Returns the value obtained by reversing the order of the bits in the + * two's complement binary representation of the specified {@code int} + * value. + */ + // @ts-ignore + public static reverse(i: number): number; + /** + * Returns the signum function of the specified {@code int} value. (The + * return value is -1 if the specified value is negative; 0 if the + * specified value is zero; and 1 if the specified value is positive.) + */ + // @ts-ignore + public static signum(i: number): number; + /** + * Returns the value obtained by reversing the order of the bytes in the + * two's complement representation of the specified {@code int} value. + */ + // @ts-ignore + public static reverseBytes(i: number): number; + /** + * Adds two integers together as per the + operator. + */ + // @ts-ignore + public static sum(a: number, b: number): number; + /** + * Returns the greater of two {@code int} values + * as if by calling {@link Math#max(int, int) Math.max}. + */ + // @ts-ignore + public static max(a: number, b: number): number; + /** + * Returns the smaller of two {@code int} values + * as if by calling {@link Math#min(int, int) Math.min}. + */ + // @ts-ignore + public static min(a: number, b: number): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.InternalError.d.ts b/packages/types/dist/typings/jdk/java.lang.InternalError.d.ts new file mode 100644 index 00000000..f1df339d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.InternalError.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class InternalError extends java.lang.VirtualMachineError { + /** + * Constructs an InternalError with no detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs an InternalError with the specified + * detail message. + */ + // @ts-ignore + constructor(message: string) + /** + * Constructs an {@code InternalError} with the specified detail + * message and cause.

Note that the detail message associated + * with {@code cause} is not automatically incorporated in + * this error's detail message. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Constructs an {@code InternalError} with the specified cause + * and a detail message of {@code (cause==null ? null : + * cause.toString())} (which typically contains the class and + * detail message of {@code cause}). + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.InterruptedException.d.ts b/packages/types/dist/typings/jdk/java.lang.InterruptedException.d.ts new file mode 100644 index 00000000..ba148989 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.InterruptedException.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class InterruptedException extends java.lang.Exception { + /** + * Constructs an InterruptedException with no detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs an InterruptedException with the + * specified detail message. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Iterable.d.ts b/packages/types/dist/typings/jdk/java.lang.Iterable.d.ts new file mode 100644 index 00000000..27cc5c2a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Iterable.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + interface Iterable { + /** + * Returns an iterator over elements of type {@code T}. + */ + // @ts-ignore + iterator(): java.util.Iterator; + /** + * Performs the given action for each element of the {@code Iterable} + * until all elements have been processed or the action throws an + * exception. Unless otherwise specified by the implementing class, + * actions are performed in the order of iteration (if an iteration order + * is specified). Exceptions thrown by the action are relayed to the + * caller. + */ + // @ts-ignore + forEach(action: java.util.function$.Consumer): void; + /** + * Creates a {@link Spliterator} over the elements described by this + * {@code Iterable}. + */ + // @ts-ignore + spliterator(): java.util.Spliterator; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.LinkageError.d.ts b/packages/types/dist/typings/jdk/java.lang.LinkageError.d.ts new file mode 100644 index 00000000..13f14c3c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.LinkageError.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class LinkageError extends java.lang.Error { + /** + * Constructs a {@code LinkageError} with no detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs a {@code LinkageError} with the specified detail + * message. + */ + // @ts-ignore + constructor(s: string) + /** + * Constructs a {@code LinkageError} with the specified detail + * message and cause. + */ + // @ts-ignore + constructor(s: string, cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Long.d.ts b/packages/types/dist/typings/jdk/java.lang.Long.d.ts new file mode 100644 index 00000000..fd13065e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Long.d.ts @@ -0,0 +1,676 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class Long extends java.lang.Number { + /** + * Constructs a newly allocated {@code Long} object that + * represents the specified {@code long} argument. + */ + // @ts-ignore + constructor(value: number) + /** + * Constructs a newly allocated {@code Long} object that + * represents the {@code long} value indicated by the + * {@code String} parameter. The string is converted to a + * {@code long} value in exactly the manner used by the + * {@code parseLong} method for radix 10. + */ + // @ts-ignore + constructor(s: string) + // @ts-ignore + public static MIN_VALUE: number; + // @ts-ignore + public static MAX_VALUE: number; + // @ts-ignore + public static TYPE: java.lang.Class; + // @ts-ignore + public static SIZE: number; + // @ts-ignore + public static BYTES: number; + /** + * Returns a string representation of the first argument in the + * radix specified by the second argument. + *

If the radix is smaller than {@code Character.MIN_RADIX} + * or larger than {@code Character.MAX_RADIX}, then the radix + * {@code 10} is used instead. + *

If the first argument is negative, the first element of the + * result is the ASCII minus sign {@code '-'} + * ({@code '\u002d'}). If the first argument is not + * negative, no sign character appears in the result. + *

The remaining characters of the result represent the magnitude + * of the first argument. If the magnitude is zero, it is + * represented by a single zero character {@code '0'} + * ({@code '\u0030'}); otherwise, the first character of + * the representation of the magnitude will not be the zero + * character. The following ASCII characters are used as digits: + *

+ * {@code 0123456789abcdefghijklmnopqrstuvwxyz} + *
+ * These are {@code '\u0030'} through + * {@code '\u0039'} and {@code '\u0061'} through + * {@code '\u007a'}. If {@code radix} is + * N, then the first N of these characters + * are used as radix-N digits in the order shown. Thus, + * the digits for hexadecimal (radix 16) are + * {@code 0123456789abcdef}. If uppercase letters are + * desired, the {@link java.lang.String#toUpperCase()} method may + * be called on the result: + *
+ * {@code Long.toString(n, 16).toUpperCase()} + *
+ */ + // @ts-ignore + public static toString(i: number, radix: number): string; + /** + * Returns a string representation of the first argument as an + * unsigned integer value in the radix specified by the second + * argument. + *

If the radix is smaller than {@code Character.MIN_RADIX} + * or larger than {@code Character.MAX_RADIX}, then the radix + * {@code 10} is used instead. + *

Note that since the first argument is treated as an unsigned + * value, no leading sign character is printed. + *

If the magnitude is zero, it is represented by a single zero + * character {@code '0'} ({@code '\u0030'}); otherwise, + * the first character of the representation of the magnitude will + * not be the zero character. + *

The behavior of radixes and the characters used as digits + * are the same as {@link #toString(long, int) toString}. + */ + // @ts-ignore + public static toUnsignedString(i: number, radix: number): string; + /** + * Returns a string representation of the {@code long} + * argument as an unsigned integer in base 16. + *

The unsigned {@code long} value is the argument plus + * 264 if the argument is negative; otherwise, it is + * equal to the argument. This value is converted to a string of + * ASCII digits in hexadecimal (base 16) with no extra + * leading {@code 0}s. + *

The value of the argument can be recovered from the returned + * string {@code s} by calling {@link + * Long#parseUnsignedLong(String, int) Long.parseUnsignedLong(s, + * 16)}. + *

If the unsigned magnitude is zero, it is represented by a + * single zero character {@code '0'} ({@code '\u0030'}); + * otherwise, the first character of the representation of the + * unsigned magnitude will not be the zero character. The + * following characters are used as hexadecimal digits: + *

+ * {@code 0123456789abcdef} + *
+ * These are the characters {@code '\u0030'} through + * {@code '\u0039'} and {@code '\u0061'} through + * {@code '\u0066'}. If uppercase letters are desired, + * the {@link java.lang.String#toUpperCase()} method may be called + * on the result: + *
+ * {@code Long.toHexString(n).toUpperCase()} + *
+ */ + // @ts-ignore + public static toHexString(i: number): string; + /** + * Returns a string representation of the {@code long} + * argument as an unsigned integer in base 8. + *

The unsigned {@code long} value is the argument plus + * 264 if the argument is negative; otherwise, it is + * equal to the argument. This value is converted to a string of + * ASCII digits in octal (base 8) with no extra leading + * {@code 0}s. + *

The value of the argument can be recovered from the returned + * string {@code s} by calling {@link + * Long#parseUnsignedLong(String, int) Long.parseUnsignedLong(s, + * 8)}. + *

If the unsigned magnitude is zero, it is represented by a + * single zero character {@code '0'} ({@code '\u0030'}); + * otherwise, the first character of the representation of the + * unsigned magnitude will not be the zero character. The + * following characters are used as octal digits: + *

+ * {@code 01234567} + *
+ * These are the characters {@code '\u0030'} through + * {@code '\u0037'}. + */ + // @ts-ignore + public static toOctalString(i: number): string; + /** + * Returns a string representation of the {@code long} + * argument as an unsigned integer in base 2. + *

The unsigned {@code long} value is the argument plus + * 264 if the argument is negative; otherwise, it is + * equal to the argument. This value is converted to a string of + * ASCII digits in binary (base 2) with no extra leading + * {@code 0}s. + *

The value of the argument can be recovered from the returned + * string {@code s} by calling {@link + * Long#parseUnsignedLong(String, int) Long.parseUnsignedLong(s, + * 2)}. + *

If the unsigned magnitude is zero, it is represented by a + * single zero character {@code '0'} ({@code '\u0030'}); + * otherwise, the first character of the representation of the + * unsigned magnitude will not be the zero character. The + * characters {@code '0'} ({@code '\u0030'}) and {@code + * '1'} ({@code '\u0031'}) are used as binary digits. + */ + // @ts-ignore + public static toBinaryString(i: number): string; + /** + * Returns a {@code String} object representing the specified + * {@code long}. The argument is converted to signed decimal + * representation and returned as a string, exactly as if the + * argument and the radix 10 were given as arguments to the {@link + * #toString(long, int)} method. + */ + // @ts-ignore + public static toString(i: number): string; + /** + * Returns a string representation of the argument as an unsigned + * decimal value. + * The argument is converted to unsigned decimal representation + * and returned as a string exactly as if the argument and radix + * 10 were given as arguments to the {@link #toUnsignedString(long, + * int)} method. + */ + // @ts-ignore + public static toUnsignedString(i: number): string; + /** + * Parses the string argument as a signed {@code long} in the + * radix specified by the second argument. The characters in the + * string must all be digits of the specified radix (as determined + * by whether {@link java.lang.Character#digit(char, int)} returns + * a nonnegative value), except that the first character may be an + * ASCII minus sign {@code '-'} ({@code '\u002D'}) to + * indicate a negative value or an ASCII plus sign {@code '+'} + * ({@code '\u002B'}) to indicate a positive value. The + * resulting {@code long} value is returned. + *

Note that neither the character {@code L} + * ({@code '\u004C'}) nor {@code l} + * ({@code '\u006C'}) is permitted to appear at the end + * of the string as a type indicator, as would be permitted in + * Java programming language source code - except that either + * {@code L} or {@code l} may appear as a digit for a + * radix greater than or equal to 22. + *

An exception of type {@code NumberFormatException} is + * thrown if any of the following situations occurs: + *

    + *
  • The first argument is {@code null} or is a string of + * length zero. + *
  • The {@code radix} is either smaller than {@link + * java.lang.Character#MIN_RADIX} or larger than {@link + * java.lang.Character#MAX_RADIX}. + *
  • Any character of the string is not a digit of the specified + * radix, except that the first character may be a minus sign + * {@code '-'} ({@code '\u002d'}) or plus sign {@code + * '+'} ({@code '\u002B'}) provided that the string is + * longer than length 1. + *
  • The value represented by the string is not a value of type + * {@code long}. + *
+ *

Examples: + *

+             * parseLong("0", 10) returns 0L
+             * parseLong("473", 10) returns 473L
+             * parseLong("+42", 10) returns 42L
+             * parseLong("-0", 10) returns 0L
+             * parseLong("-FF", 16) returns -255L
+             * parseLong("1100110", 2) returns 102L
+             * parseLong("99", 8) throws a NumberFormatException
+             * parseLong("Hazelnut", 10) throws a NumberFormatException
+             * parseLong("Hazelnut", 36) returns 1356099454469L
+             * 
+ */ + // @ts-ignore + public static parseLong(s: string, radix: number): number; + /** + * Parses the string argument as a signed decimal {@code long}. + * The characters in the string must all be decimal digits, except + * that the first character may be an ASCII minus sign {@code '-'} + * ({@code \u002D'}) to indicate a negative value or an + * ASCII plus sign {@code '+'} ({@code '\u002B'}) to + * indicate a positive value. The resulting {@code long} value is + * returned, exactly as if the argument and the radix {@code 10} + * were given as arguments to the {@link + * #parseLong(java.lang.String, int)} method. + *

Note that neither the character {@code L} + * ({@code '\u004C'}) nor {@code l} + * ({@code '\u006C'}) is permitted to appear at the end + * of the string as a type indicator, as would be permitted in + * Java programming language source code. + */ + // @ts-ignore + public static parseLong(s: string): number; + /** + * Parses the string argument as an unsigned {@code long} in the + * radix specified by the second argument. An unsigned integer + * maps the values usually associated with negative numbers to + * positive numbers larger than {@code MAX_VALUE}. + * The characters in the string must all be digits of the + * specified radix (as determined by whether {@link + * java.lang.Character#digit(char, int)} returns a nonnegative + * value), except that the first character may be an ASCII plus + * sign {@code '+'} ({@code '\u002B'}). The resulting + * integer value is returned. + *

An exception of type {@code NumberFormatException} is + * thrown if any of the following situations occurs: + *

    + *
  • The first argument is {@code null} or is a string of + * length zero. + *
  • The radix is either smaller than + * {@link java.lang.Character#MIN_RADIX} or + * larger than {@link java.lang.Character#MAX_RADIX}. + *
  • Any character of the string is not a digit of the specified + * radix, except that the first character may be a plus sign + * {@code '+'} ({@code '\u002B'}) provided that the + * string is longer than length 1. + *
  • The value represented by the string is larger than the + * largest unsigned {@code long}, 264-1. + *
+ */ + // @ts-ignore + public static parseUnsignedLong(s: string, radix: number): number; + /** + * Parses the string argument as an unsigned decimal {@code long}. The + * characters in the string must all be decimal digits, except + * that the first character may be an an ASCII plus sign {@code + * '+'} ({@code '\u002B'}). The resulting integer value + * is returned, exactly as if the argument and the radix 10 were + * given as arguments to the {@link + * #parseUnsignedLong(java.lang.String, int)} method. + */ + // @ts-ignore + public static parseUnsignedLong(s: string): number; + /** + * Returns a {@code Long} object holding the value + * extracted from the specified {@code String} when parsed + * with the radix given by the second argument. The first + * argument is interpreted as representing a signed + * {@code long} in the radix specified by the second + * argument, exactly as if the arguments were given to the {@link + * #parseLong(java.lang.String, int)} method. The result is a + * {@code Long} object that represents the {@code long} + * value specified by the string. + *

In other words, this method returns a {@code Long} object equal + * to the value of: + *

+ * {@code new Long(Long.parseLong(s, radix))} + *
+ */ + // @ts-ignore + public static valueOf(s: string, radix: number): java.lang.Long; + /** + * Returns a {@code Long} object holding the value + * of the specified {@code String}. The argument is + * interpreted as representing a signed decimal {@code long}, + * exactly as if the argument were given to the {@link + * #parseLong(java.lang.String)} method. The result is a + * {@code Long} object that represents the integer value + * specified by the string. + *

In other words, this method returns a {@code Long} object + * equal to the value of: + *

+ * {@code new Long(Long.parseLong(s))} + *
+ */ + // @ts-ignore + public static valueOf(s: string): java.lang.Long; + /** + * Returns a {@code Long} instance representing the specified + * {@code long} value. + * If a new {@code Long} instance is not required, this method + * should generally be used in preference to the constructor + * {@link #Long(long)}, as this method is likely to yield + * significantly better space and time performance by caching + * frequently requested values. + * Note that unlike the {@linkplain Integer#valueOf(int) + * corresponding method} in the {@code Integer} class, this method + * is not required to cache values within a particular + * range. + */ + // @ts-ignore + public static valueOf(l: number): java.lang.Long; + /** + * Decodes a {@code String} into a {@code Long}. + * Accepts decimal, hexadecimal, and octal numbers given by the + * following grammar: + *
+ *
+ *
DecodableString: + *
Signopt DecimalNumeral + *
Signopt {@code 0x} HexDigits + *
Signopt {@code 0X} HexDigits + *
Signopt {@code #} HexDigits + *
Signopt {@code 0} OctalDigits + *
Sign: + *
{@code -} + *
{@code +} + *
+ *
+ * DecimalNumeral, HexDigits, and OctalDigits + * are as defined in section 3.10.1 of + * The Java™ Language Specification, + * except that underscores are not accepted between digits. + *

The sequence of characters following an optional + * sign and/or radix specifier ("{@code 0x}", "{@code 0X}", + * "{@code #}", or leading zero) is parsed as by the {@code + * Long.parseLong} method with the indicated radix (10, 16, or 8). + * This sequence of characters must represent a positive value or + * a {@link NumberFormatException} will be thrown. The result is + * negated if first character of the specified {@code String} is + * the minus sign. No whitespace characters are permitted in the + * {@code String}. + */ + // @ts-ignore + public static decode(nm: string): java.lang.Long; + /** + * Returns the value of this {@code Long} as a {@code byte} after + * a narrowing primitive conversion. + */ + // @ts-ignore + public byteValue(): number; + /** + * Returns the value of this {@code Long} as a {@code short} after + * a narrowing primitive conversion. + */ + // @ts-ignore + public shortValue(): number; + /** + * Returns the value of this {@code Long} as an {@code int} after + * a narrowing primitive conversion. + */ + // @ts-ignore + public intValue(): number; + /** + * Returns the value of this {@code Long} as a + * {@code long} value. + */ + // @ts-ignore + public longValue(): number; + /** + * Returns the value of this {@code Long} as a {@code float} after + * a widening primitive conversion. + */ + // @ts-ignore + public floatValue(): number; + /** + * Returns the value of this {@code Long} as a {@code double} + * after a widening primitive conversion. + */ + // @ts-ignore + public doubleValue(): number; + /** + * Returns a {@code String} object representing this + * {@code Long}'s value. The value is converted to signed + * decimal representation and returned as a string, exactly as if + * the {@code long} value were given as an argument to the + * {@link java.lang.Long#toString(long)} method. + */ + // @ts-ignore + public toString(): string; + /** + * Returns a hash code for this {@code Long}. The result is + * the exclusive OR of the two halves of the primitive + * {@code long} value held by this {@code Long} + * object. That is, the hashcode is the value of the expression: + *

+ * {@code (int)(this.longValue()^(this.longValue()>>>32))} + *
+ */ + // @ts-ignore + public hashCode(): number; + /** + * Returns a hash code for a {@code long} value; compatible with + * {@code Long.hashCode()}. + */ + // @ts-ignore + public static hashCode(value: number): number; + /** + * Compares this object to the specified object. The result is + * {@code true} if and only if the argument is not + * {@code null} and is a {@code Long} object that + * contains the same {@code long} value as this object. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Determines the {@code long} value of the system property + * with the specified name. + *

The first argument is treated as the name of a system + * property. System properties are accessible through the {@link + * java.lang.System#getProperty(java.lang.String)} method. The + * string value of this property is then interpreted as a {@code + * long} value using the grammar supported by {@link Long#decode decode} + * and a {@code Long} object representing this value is returned. + *

If there is no property with the specified name, if the + * specified name is empty or {@code null}, or if the property + * does not have the correct numeric format, then {@code null} is + * returned. + *

In other words, this method returns a {@code Long} object + * equal to the value of: + *

+ * {@code getLong(nm, null)} + *
+ */ + // @ts-ignore + public static getLong(nm: string): java.lang.Long; + /** + * Determines the {@code long} value of the system property + * with the specified name. + *

The first argument is treated as the name of a system + * property. System properties are accessible through the {@link + * java.lang.System#getProperty(java.lang.String)} method. The + * string value of this property is then interpreted as a {@code + * long} value using the grammar supported by {@link Long#decode decode} + * and a {@code Long} object representing this value is returned. + *

The second argument is the default value. A {@code Long} object + * that represents the value of the second argument is returned if there + * is no property of the specified name, if the property does not have + * the correct numeric format, or if the specified name is empty or null. + *

In other words, this method returns a {@code Long} object equal + * to the value of: + *

+ * {@code getLong(nm, new Long(val))} + *
+ * but in practice it may be implemented in a manner such as: + *
+             * Long result = getLong(nm, null);
+             * return (result == null) ? new Long(val) : result;
+             * 
+ * to avoid the unnecessary allocation of a {@code Long} object when + * the default value is not needed. + */ + // @ts-ignore + public static getLong(nm: string, val: number): java.lang.Long; + /** + * Returns the {@code long} value of the system property with + * the specified name. The first argument is treated as the name + * of a system property. System properties are accessible through + * the {@link java.lang.System#getProperty(java.lang.String)} + * method. The string value of this property is then interpreted + * as a {@code long} value, as per the + * {@link Long#decode decode} method, and a {@code Long} object + * representing this value is returned; in summary: + *
    + *
  • If the property value begins with the two ASCII characters + * {@code 0x} or the ASCII character {@code #}, not followed by + * a minus sign, then the rest of it is parsed as a hexadecimal integer + * exactly as for the method {@link #valueOf(java.lang.String, int)} + * with radix 16. + *
  • If the property value begins with the ASCII character + * {@code 0} followed by another character, it is parsed as + * an octal integer exactly as by the method {@link + * #valueOf(java.lang.String, int)} with radix 8. + *
  • Otherwise the property value is parsed as a decimal + * integer exactly as by the method + * {@link #valueOf(java.lang.String, int)} with radix 10. + *
+ *

Note that, in every case, neither {@code L} + * ({@code '\u004C'}) nor {@code l} + * ({@code '\u006C'}) is permitted to appear at the end + * of the property value as a type indicator, as would be + * permitted in Java programming language source code. + *

The second argument is the default value. The default value is + * returned if there is no property of the specified name, if the + * property does not have the correct numeric format, or if the + * specified name is empty or {@code null}. + */ + // @ts-ignore + public static getLong(nm: string, val: java.lang.Long): java.lang.Long; + /** + * Compares two {@code Long} objects numerically. + */ + // @ts-ignore + public compareTo(anotherLong: java.lang.Long): number; + /** + * Compares two {@code long} values numerically. + * The value returned is identical to what would be returned by: + *

+             * Long.valueOf(x).compareTo(Long.valueOf(y))
+             * 
+ */ + // @ts-ignore + public static compare(x: number, y: number): number; + /** + * Compares two {@code long} values numerically treating the values + * as unsigned. + */ + // @ts-ignore + public static compareUnsigned(x: number, y: number): number; + /** + * Returns the unsigned quotient of dividing the first argument by + * the second where each argument and the result is interpreted as + * an unsigned value. + *

Note that in two's complement arithmetic, the three other + * basic arithmetic operations of add, subtract, and multiply are + * bit-wise identical if the two operands are regarded as both + * being signed or both being unsigned. Therefore separate {@code + * addUnsigned}, etc. methods are not provided. + */ + // @ts-ignore + public static divideUnsigned(dividend: number, divisor: number): number; + /** + * Returns the unsigned remainder from dividing the first argument + * by the second where each argument and the result is interpreted + * as an unsigned value. + */ + // @ts-ignore + public static remainderUnsigned(dividend: number, divisor: number): number; + /** + * Returns a {@code long} value with at most a single one-bit, in the + * position of the highest-order ("leftmost") one-bit in the specified + * {@code long} value. Returns zero if the specified value has no + * one-bits in its two's complement binary representation, that is, if it + * is equal to zero. + */ + // @ts-ignore + public static highestOneBit(i: number): number; + /** + * Returns a {@code long} value with at most a single one-bit, in the + * position of the lowest-order ("rightmost") one-bit in the specified + * {@code long} value. Returns zero if the specified value has no + * one-bits in its two's complement binary representation, that is, if it + * is equal to zero. + */ + // @ts-ignore + public static lowestOneBit(i: number): number; + /** + * Returns the number of zero bits preceding the highest-order + * ("leftmost") one-bit in the two's complement binary representation + * of the specified {@code long} value. Returns 64 if the + * specified value has no one-bits in its two's complement representation, + * in other words if it is equal to zero. + *

Note that this method is closely related to the logarithm base 2. + * For all positive {@code long} values x: + *

    + *
  • floor(log2(x)) = {@code 63 - numberOfLeadingZeros(x)} + *
  • ceil(log2(x)) = {@code 64 - numberOfLeadingZeros(x - 1)} + *
+ */ + // @ts-ignore + public static numberOfLeadingZeros(i: number): number; + /** + * Returns the number of zero bits following the lowest-order ("rightmost") + * one-bit in the two's complement binary representation of the specified + * {@code long} value. Returns 64 if the specified value has no + * one-bits in its two's complement representation, in other words if it is + * equal to zero. + */ + // @ts-ignore + public static numberOfTrailingZeros(i: number): number; + /** + * Returns the number of one-bits in the two's complement binary + * representation of the specified {@code long} value. This function is + * sometimes referred to as the population count. + */ + // @ts-ignore + public static bitCount(i: number): number; + /** + * Returns the value obtained by rotating the two's complement binary + * representation of the specified {@code long} value left by the + * specified number of bits. (Bits shifted out of the left hand, or + * high-order, side reenter on the right, or low-order.) + *

Note that left rotation with a negative distance is equivalent to + * right rotation: {@code rotateLeft(val, -distance) == rotateRight(val, + * distance)}. Note also that rotation by any multiple of 64 is a + * no-op, so all but the last six bits of the rotation distance can be + * ignored, even if the distance is negative: {@code rotateLeft(val, + * distance) == rotateLeft(val, distance & 0x3F)}. + */ + // @ts-ignore + public static rotateLeft(i: number, distance: number): number; + /** + * Returns the value obtained by rotating the two's complement binary + * representation of the specified {@code long} value right by the + * specified number of bits. (Bits shifted out of the right hand, or + * low-order, side reenter on the left, or high-order.) + *

Note that right rotation with a negative distance is equivalent to + * left rotation: {@code rotateRight(val, -distance) == rotateLeft(val, + * distance)}. Note also that rotation by any multiple of 64 is a + * no-op, so all but the last six bits of the rotation distance can be + * ignored, even if the distance is negative: {@code rotateRight(val, + * distance) == rotateRight(val, distance & 0x3F)}. + */ + // @ts-ignore + public static rotateRight(i: number, distance: number): number; + /** + * Returns the value obtained by reversing the order of the bits in the + * two's complement binary representation of the specified {@code long} + * value. + */ + // @ts-ignore + public static reverse(i: number): number; + /** + * Returns the signum function of the specified {@code long} value. (The + * return value is -1 if the specified value is negative; 0 if the + * specified value is zero; and 1 if the specified value is positive.) + */ + // @ts-ignore + public static signum(i: number): number; + /** + * Returns the value obtained by reversing the order of the bytes in the + * two's complement representation of the specified {@code long} value. + */ + // @ts-ignore + public static reverseBytes(i: number): number; + /** + * Adds two {@code long} values together as per the + operator. + */ + // @ts-ignore + public static sum(a: number, b: number): number; + /** + * Returns the greater of two {@code long} values + * as if by calling {@link Math#max(long, long) Math.max}. + */ + // @ts-ignore + public static max(a: number, b: number): number; + /** + * Returns the smaller of two {@code long} values + * as if by calling {@link Math#min(long, long) Math.min}. + */ + // @ts-ignore + public static min(a: number, b: number): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Math.d.ts b/packages/types/dist/typings/jdk/java.lang.Math.d.ts new file mode 100644 index 00000000..05c69b34 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Math.d.ts @@ -0,0 +1,1146 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class Math extends java.lang.Object { + // @ts-ignore + public static E: number; + // @ts-ignore + public static PI: number; + /** + * Returns the trigonometric sine of an angle. Special cases: + *

  • If the argument is NaN or an infinity, then the + * result is NaN. + *
  • If the argument is zero, then the result is a zero with the + * same sign as the argument.
+ *

The computed result must be within 1 ulp of the exact result. + * Results must be semi-monotonic. + */ + // @ts-ignore + public static sin(a: number): number; + /** + * Returns the trigonometric cosine of an angle. Special cases: + *

  • If the argument is NaN or an infinity, then the + * result is NaN.
+ *

The computed result must be within 1 ulp of the exact result. + * Results must be semi-monotonic. + */ + // @ts-ignore + public static cos(a: number): number; + /** + * Returns the trigonometric tangent of an angle. Special cases: + *

  • If the argument is NaN or an infinity, then the result + * is NaN. + *
  • If the argument is zero, then the result is a zero with the + * same sign as the argument.
+ *

The computed result must be within 1 ulp of the exact result. + * Results must be semi-monotonic. + */ + // @ts-ignore + public static tan(a: number): number; + /** + * Returns the arc sine of a value; the returned angle is in the + * range -pi/2 through pi/2. Special cases: + *

  • If the argument is NaN or its absolute value is greater + * than 1, then the result is NaN. + *
  • If the argument is zero, then the result is a zero with the + * same sign as the argument.
+ *

The computed result must be within 1 ulp of the exact result. + * Results must be semi-monotonic. + */ + // @ts-ignore + public static asin(a: number): number; + /** + * Returns the arc cosine of a value; the returned angle is in the + * range 0.0 through pi. Special case: + *

  • If the argument is NaN or its absolute value is greater + * than 1, then the result is NaN.
+ *

The computed result must be within 1 ulp of the exact result. + * Results must be semi-monotonic. + */ + // @ts-ignore + public static acos(a: number): number; + /** + * Returns the arc tangent of a value; the returned angle is in the + * range -pi/2 through pi/2. Special cases: + *

  • If the argument is NaN, then the result is NaN. + *
  • If the argument is zero, then the result is a zero with the + * same sign as the argument.
+ *

The computed result must be within 1 ulp of the exact result. + * Results must be semi-monotonic. + */ + // @ts-ignore + public static atan(a: number): number; + /** + * Converts an angle measured in degrees to an approximately + * equivalent angle measured in radians. The conversion from + * degrees to radians is generally inexact. + */ + // @ts-ignore + public static toRadians(angdeg: number): number; + /** + * Converts an angle measured in radians to an approximately + * equivalent angle measured in degrees. The conversion from + * radians to degrees is generally inexact; users should + * not expect {@code cos(toRadians(90.0))} to exactly + * equal {@code 0.0}. + */ + // @ts-ignore + public static toDegrees(angrad: number): number; + /** + * Returns Euler's number e raised to the power of a + * {@code double} value. Special cases: + *

  • If the argument is NaN, the result is NaN. + *
  • If the argument is positive infinity, then the result is + * positive infinity. + *
  • If the argument is negative infinity, then the result is + * positive zero.
+ *

The computed result must be within 1 ulp of the exact result. + * Results must be semi-monotonic. + */ + // @ts-ignore + public static exp(a: number): number; + /** + * Returns the natural logarithm (base e) of a {@code double} + * value. Special cases: + *

  • If the argument is NaN or less than zero, then the result + * is NaN. + *
  • If the argument is positive infinity, then the result is + * positive infinity. + *
  • If the argument is positive zero or negative zero, then the + * result is negative infinity.
+ *

The computed result must be within 1 ulp of the exact result. + * Results must be semi-monotonic. + */ + // @ts-ignore + public static log(a: number): number; + /** + * Returns the base 10 logarithm of a {@code double} value. + * Special cases: + *

  • If the argument is NaN or less than zero, then the result + * is NaN. + *
  • If the argument is positive infinity, then the result is + * positive infinity. + *
  • If the argument is positive zero or negative zero, then the + * result is negative infinity. + *
  • If the argument is equal to 10n for + * integer n, then the result is n. + *
+ *

The computed result must be within 1 ulp of the exact result. + * Results must be semi-monotonic. + */ + // @ts-ignore + public static log10(a: number): number; + /** + * Returns the correctly rounded positive square root of a + * {@code double} value. + * Special cases: + *

  • If the argument is NaN or less than zero, then the result + * is NaN. + *
  • If the argument is positive infinity, then the result is positive + * infinity. + *
  • If the argument is positive zero or negative zero, then the + * result is the same as the argument.
+ * Otherwise, the result is the {@code double} value closest to + * the true mathematical square root of the argument value. + */ + // @ts-ignore + public static sqrt(a: number): number; + /** + * Returns the cube root of a {@code double} value. For + * positive finite {@code x}, {@code cbrt(-x) == + * -cbrt(x)}; that is, the cube root of a negative value is + * the negative of the cube root of that value's magnitude. + * Special cases: + *
    + *
  • If the argument is NaN, then the result is NaN. + *
  • If the argument is infinite, then the result is an infinity + * with the same sign as the argument. + *
  • If the argument is zero, then the result is a zero with the + * same sign as the argument. + *
+ *

The computed result must be within 1 ulp of the exact result. + */ + // @ts-ignore + public static cbrt(a: number): number; + /** + * Computes the remainder operation on two arguments as prescribed + * by the IEEE 754 standard. + * The remainder value is mathematically equal to + * f1 - f2 × n, + * where n is the mathematical integer closest to the exact + * mathematical value of the quotient {@code f1/f2}, and if two + * mathematical integers are equally close to {@code f1/f2}, + * then n is the integer that is even. If the remainder is + * zero, its sign is the same as the sign of the first argument. + * Special cases: + *

  • If either argument is NaN, or the first argument is infinite, + * or the second argument is positive zero or negative zero, then the + * result is NaN. + *
  • If the first argument is finite and the second argument is + * infinite, then the result is the same as the first argument.
+ */ + // @ts-ignore + public static IEEEremainder(f1: number, f2: number): number; + /** + * Returns the smallest (closest to negative infinity) + * {@code double} value that is greater than or equal to the + * argument and is equal to a mathematical integer. Special cases: + *
  • If the argument value is already equal to a + * mathematical integer, then the result is the same as the + * argument.
  • If the argument is NaN or an infinity or + * positive zero or negative zero, then the result is the same as + * the argument.
  • If the argument value is less than zero but + * greater than -1.0, then the result is negative zero.
Note + * that the value of {@code Math.ceil(x)} is exactly the + * value of {@code -Math.floor(-x)}. + */ + // @ts-ignore + public static ceil(a: number): number; + /** + * Returns the largest (closest to positive infinity) + * {@code double} value that is less than or equal to the + * argument and is equal to a mathematical integer. Special cases: + *
  • If the argument value is already equal to a + * mathematical integer, then the result is the same as the + * argument.
  • If the argument is NaN or an infinity or + * positive zero or negative zero, then the result is the same as + * the argument.
+ */ + // @ts-ignore + public static floor(a: number): number; + /** + * Returns the {@code double} value that is closest in value + * to the argument and is equal to a mathematical integer. If two + * {@code double} values that are mathematical integers are + * equally close, the result is the integer value that is + * even. Special cases: + *
  • If the argument value is already equal to a mathematical + * integer, then the result is the same as the argument. + *
  • If the argument is NaN or an infinity or positive zero or negative + * zero, then the result is the same as the argument.
+ */ + // @ts-ignore + public static rint(a: number): number; + /** + * Returns the angle theta from the conversion of rectangular + * coordinates ({@code x}, {@code y}) to polar + * coordinates (r, theta). + * This method computes the phase theta by computing an arc tangent + * of {@code y/x} in the range of -pi to pi. Special + * cases: + *
  • If either argument is NaN, then the result is NaN. + *
  • If the first argument is positive zero and the second argument + * is positive, or the first argument is positive and finite and the + * second argument is positive infinity, then the result is positive + * zero. + *
  • If the first argument is negative zero and the second argument + * is positive, or the first argument is negative and finite and the + * second argument is positive infinity, then the result is negative zero. + *
  • If the first argument is positive zero and the second argument + * is negative, or the first argument is positive and finite and the + * second argument is negative infinity, then the result is the + * {@code double} value closest to pi. + *
  • If the first argument is negative zero and the second argument + * is negative, or the first argument is negative and finite and the + * second argument is negative infinity, then the result is the + * {@code double} value closest to -pi. + *
  • If the first argument is positive and the second argument is + * positive zero or negative zero, or the first argument is positive + * infinity and the second argument is finite, then the result is the + * {@code double} value closest to pi/2. + *
  • If the first argument is negative and the second argument is + * positive zero or negative zero, or the first argument is negative + * infinity and the second argument is finite, then the result is the + * {@code double} value closest to -pi/2. + *
  • If both arguments are positive infinity, then the result is the + * {@code double} value closest to pi/4. + *
  • If the first argument is positive infinity and the second argument + * is negative infinity, then the result is the {@code double} + * value closest to 3*pi/4. + *
  • If the first argument is negative infinity and the second argument + * is positive infinity, then the result is the {@code double} value + * closest to -pi/4. + *
  • If both arguments are negative infinity, then the result is the + * {@code double} value closest to -3*pi/4.
+ *

The computed result must be within 2 ulps of the exact result. + * Results must be semi-monotonic. + */ + // @ts-ignore + public static atan2(y: number, x: number): number; + /** + * Returns the value of the first argument raised to the power of the + * second argument. Special cases: + *

  • If the second argument is positive or negative zero, then the + * result is 1.0. + *
  • If the second argument is 1.0, then the result is the same as the + * first argument. + *
  • If the second argument is NaN, then the result is NaN. + *
  • If the first argument is NaN and the second argument is nonzero, + * then the result is NaN. + *
  • If + *
      + *
    • the absolute value of the first argument is greater than 1 + * and the second argument is positive infinity, or + *
    • the absolute value of the first argument is less than 1 and + * the second argument is negative infinity, + *
    + * then the result is positive infinity. + *
  • If + *
      + *
    • the absolute value of the first argument is greater than 1 and + * the second argument is negative infinity, or + *
    • the absolute value of the + * first argument is less than 1 and the second argument is positive + * infinity, + *
    + * then the result is positive zero. + *
  • If the absolute value of the first argument equals 1 and the + * second argument is infinite, then the result is NaN. + *
  • If + *
      + *
    • the first argument is positive zero and the second argument + * is greater than zero, or + *
    • the first argument is positive infinity and the second + * argument is less than zero, + *
    + * then the result is positive zero. + *
  • If + *
      + *
    • the first argument is positive zero and the second argument + * is less than zero, or + *
    • the first argument is positive infinity and the second + * argument is greater than zero, + *
    + * then the result is positive infinity. + *
  • If + *
      + *
    • the first argument is negative zero and the second argument + * is greater than zero but not a finite odd integer, or + *
    • the first argument is negative infinity and the second + * argument is less than zero but not a finite odd integer, + *
    + * then the result is positive zero. + *
  • If + *
      + *
    • the first argument is negative zero and the second argument + * is a positive finite odd integer, or + *
    • the first argument is negative infinity and the second + * argument is a negative finite odd integer, + *
    + * then the result is negative zero. + *
  • If + *
      + *
    • the first argument is negative zero and the second argument + * is less than zero but not a finite odd integer, or + *
    • the first argument is negative infinity and the second + * argument is greater than zero but not a finite odd integer, + *
    + * then the result is positive infinity. + *
  • If + *
      + *
    • the first argument is negative zero and the second argument + * is a negative finite odd integer, or + *
    • the first argument is negative infinity and the second + * argument is a positive finite odd integer, + *
    + * then the result is negative infinity. + *
  • If the first argument is finite and less than zero + *
      + *
    • if the second argument is a finite even integer, the + * result is equal to the result of raising the absolute value of + * the first argument to the power of the second argument + *
    • if the second argument is a finite odd integer, the result + * is equal to the negative of the result of raising the absolute + * value of the first argument to the power of the second + * argument + *
    • if the second argument is finite and not an integer, then + * the result is NaN. + *
    + *
  • If both arguments are integers, then the result is exactly equal + * to the mathematical result of raising the first argument to the power + * of the second argument if that result can in fact be represented + * exactly as a {@code double} value.
+ *

(In the foregoing descriptions, a floating-point value is + * considered to be an integer if and only if it is finite and a + * fixed point of the method {@link #ceil ceil} or, + * equivalently, a fixed point of the method {@link #floor + * floor}. A value is a fixed point of a one-argument + * method if and only if the result of applying the method to the + * value is equal to the value.) + *

The computed result must be within 1 ulp of the exact result. + * Results must be semi-monotonic. + */ + // @ts-ignore + public static pow(a: number, b: number): number; + /** + * Returns the closest {@code int} to the argument, with ties + * rounding to positive infinity. + *

+ * Special cases: + *

  • If the argument is NaN, the result is 0. + *
  • If the argument is negative infinity or any value less than or + * equal to the value of {@code Integer.MIN_VALUE}, the result is + * equal to the value of {@code Integer.MIN_VALUE}. + *
  • If the argument is positive infinity or any value greater than or + * equal to the value of {@code Integer.MAX_VALUE}, the result is + * equal to the value of {@code Integer.MAX_VALUE}.
+ */ + // @ts-ignore + public static round(a: number): number; + /** + * Returns the closest {@code long} to the argument, with ties + * rounding to positive infinity. + *

Special cases: + *

  • If the argument is NaN, the result is 0. + *
  • If the argument is negative infinity or any value less than or + * equal to the value of {@code Long.MIN_VALUE}, the result is + * equal to the value of {@code Long.MIN_VALUE}. + *
  • If the argument is positive infinity or any value greater than or + * equal to the value of {@code Long.MAX_VALUE}, the result is + * equal to the value of {@code Long.MAX_VALUE}.
+ */ + // @ts-ignore + public static round(a: number): number; + /** + * Returns a {@code double} value with a positive sign, greater + * than or equal to {@code 0.0} and less than {@code 1.0}. + * Returned values are chosen pseudorandomly with (approximately) + * uniform distribution from that range. + *

When this method is first called, it creates a single new + * pseudorandom-number generator, exactly as if by the expression + *

{@code new java.util.Random()}
+ * This new pseudorandom-number generator is used thereafter for + * all calls to this method and is used nowhere else. + *

This method is properly synchronized to allow correct use by + * more than one thread. However, if many threads need to generate + * pseudorandom numbers at a great rate, it may reduce contention + * for each thread to have its own pseudorandom-number generator. + */ + // @ts-ignore + public static random(): number; + /** + * Returns the sum of its arguments, + * throwing an exception if the result overflows an {@code int}. + */ + // @ts-ignore + public static addExact(x: number, y: number): number; + /** + * Returns the sum of its arguments, + * throwing an exception if the result overflows a {@code long}. + */ + // @ts-ignore + public static addExact(x: number, y: number): number; + /** + * Returns the difference of the arguments, + * throwing an exception if the result overflows an {@code int}. + */ + // @ts-ignore + public static subtractExact(x: number, y: number): number; + /** + * Returns the difference of the arguments, + * throwing an exception if the result overflows a {@code long}. + */ + // @ts-ignore + public static subtractExact(x: number, y: number): number; + /** + * Returns the product of the arguments, + * throwing an exception if the result overflows an {@code int}. + */ + // @ts-ignore + public static multiplyExact(x: number, y: number): number; + /** + * Returns the product of the arguments, + * throwing an exception if the result overflows a {@code long}. + */ + // @ts-ignore + public static multiplyExact(x: number, y: number): number; + /** + * Returns the argument incremented by one, throwing an exception if the + * result overflows an {@code int}. + */ + // @ts-ignore + public static incrementExact(a: number): number; + /** + * Returns the argument incremented by one, throwing an exception if the + * result overflows a {@code long}. + */ + // @ts-ignore + public static incrementExact(a: number): number; + /** + * Returns the argument decremented by one, throwing an exception if the + * result overflows an {@code int}. + */ + // @ts-ignore + public static decrementExact(a: number): number; + /** + * Returns the argument decremented by one, throwing an exception if the + * result overflows a {@code long}. + */ + // @ts-ignore + public static decrementExact(a: number): number; + /** + * Returns the negation of the argument, throwing an exception if the + * result overflows an {@code int}. + */ + // @ts-ignore + public static negateExact(a: number): number; + /** + * Returns the negation of the argument, throwing an exception if the + * result overflows a {@code long}. + */ + // @ts-ignore + public static negateExact(a: number): number; + /** + * Returns the value of the {@code long} argument; + * throwing an exception if the value overflows an {@code int}. + */ + // @ts-ignore + public static toIntExact(value: number): number; + /** + * Returns the largest (closest to positive infinity) + * {@code int} value that is less than or equal to the algebraic quotient. + * There is one special case, if the dividend is the + * {@linkplain Integer#MIN_VALUE Integer.MIN_VALUE} and the divisor is {@code -1}, + * then integer overflow occurs and + * the result is equal to the {@code Integer.MIN_VALUE}. + *

+ * Normal integer division operates under the round to zero rounding mode + * (truncation). This operation instead acts under the round toward + * negative infinity (floor) rounding mode. + * The floor rounding mode gives different results than truncation + * when the exact result is negative. + *

    + *
  • If the signs of the arguments are the same, the results of + * {@code floorDiv} and the {@code /} operator are the same.
    + * For example, {@code floorDiv(4, 3) == 1} and {@code (4 / 3) == 1}.
  • + *
  • If the signs of the arguments are different, the quotient is negative and + * {@code floorDiv} returns the integer less than or equal to the quotient + * and the {@code /} operator returns the integer closest to zero.
    + * For example, {@code floorDiv(-4, 3) == -2}, + * whereas {@code (-4 / 3) == -1}. + *
  • + *
+ *

+ */ + // @ts-ignore + public static floorDiv(x: number, y: number): number; + /** + * Returns the largest (closest to positive infinity) + * {@code long} value that is less than or equal to the algebraic quotient. + * There is one special case, if the dividend is the + * {@linkplain Long#MIN_VALUE Long.MIN_VALUE} and the divisor is {@code -1}, + * then integer overflow occurs and + * the result is equal to the {@code Long.MIN_VALUE}. + *

+ * Normal integer division operates under the round to zero rounding mode + * (truncation). This operation instead acts under the round toward + * negative infinity (floor) rounding mode. + * The floor rounding mode gives different results than truncation + * when the exact result is negative. + *

+ * For examples, see {@link #floorDiv(int, int)}. + */ + // @ts-ignore + public static floorDiv(x: number, y: number): number; + /** + * Returns the floor modulus of the {@code int} arguments. + *

+ * The floor modulus is {@code x - (floorDiv(x, y) * y)}, + * has the same sign as the divisor {@code y}, and + * is in the range of {@code -abs(y) < r < +abs(y)}. + *

+ * The relationship between {@code floorDiv} and {@code floorMod} is such that: + *

    + *
  • {@code floorDiv(x, y) * y + floorMod(x, y) == x} + *
+ *

+ * The difference in values between {@code floorMod} and + * the {@code %} operator is due to the difference between + * {@code floorDiv} that returns the integer less than or equal to the quotient + * and the {@code /} operator that returns the integer closest to zero. + *

+ * Examples: + *

    + *
  • If the signs of the arguments are the same, the results + * of {@code floorMod} and the {@code %} operator are the same.
    + *
      + *
    • {@code floorMod(4, 3) == 1};   and {@code (4 % 3) == 1}
    • + *
    + *
  • If the signs of the arguments are different, the results differ from the {@code %} operator.
    + *
      + *
    • {@code floorMod(+4, -3) == -2};   and {@code (+4 % -3) == +1}
    • + *
    • {@code floorMod(-4, +3) == +2};   and {@code (-4 % +3) == -1}
    • + *
    • {@code floorMod(-4, -3) == -1};   and {@code (-4 % -3) == -1 }
    • + *
    + *
  • + *
+ *

+ * If the signs of arguments are unknown and a positive modulus + * is needed it can be computed as {@code (floorMod(x, y) + abs(y)) % abs(y)}. + */ + // @ts-ignore + public static floorMod(x: number, y: number): number; + /** + * Returns the floor modulus of the {@code long} arguments. + *

+ * The floor modulus is {@code x - (floorDiv(x, y) * y)}, + * has the same sign as the divisor {@code y}, and + * is in the range of {@code -abs(y) < r < +abs(y)}. + *

+ * The relationship between {@code floorDiv} and {@code floorMod} is such that: + *

    + *
  • {@code floorDiv(x, y) * y + floorMod(x, y) == x} + *
+ *

+ * For examples, see {@link #floorMod(int, int)}. + */ + // @ts-ignore + public static floorMod(x: number, y: number): number; + /** + * Returns the absolute value of an {@code int} value. + * If the argument is not negative, the argument is returned. + * If the argument is negative, the negation of the argument is returned. + *

Note that if the argument is equal to the value of + * {@link Integer#MIN_VALUE}, the most negative representable + * {@code int} value, the result is that same value, which is + * negative. + */ + // @ts-ignore + public static abs(a: number): number; + /** + * Returns the absolute value of a {@code long} value. + * If the argument is not negative, the argument is returned. + * If the argument is negative, the negation of the argument is returned. + *

Note that if the argument is equal to the value of + * {@link Long#MIN_VALUE}, the most negative representable + * {@code long} value, the result is that same value, which + * is negative. + */ + // @ts-ignore + public static abs(a: number): number; + /** + * Returns the absolute value of a {@code float} value. + * If the argument is not negative, the argument is returned. + * If the argument is negative, the negation of the argument is returned. + * Special cases: + *

  • If the argument is positive zero or negative zero, the + * result is positive zero. + *
  • If the argument is infinite, the result is positive infinity. + *
  • If the argument is NaN, the result is NaN.
+ * In other words, the result is the same as the value of the expression: + *

{@code Float.intBitsToFloat(0x7fffffff & Float.floatToIntBits(a))} + */ + // @ts-ignore + public static abs(a: number): number; + /** + * Returns the absolute value of a {@code double} value. + * If the argument is not negative, the argument is returned. + * If the argument is negative, the negation of the argument is returned. + * Special cases: + *

  • If the argument is positive zero or negative zero, the result + * is positive zero. + *
  • If the argument is infinite, the result is positive infinity. + *
  • If the argument is NaN, the result is NaN.
+ * In other words, the result is the same as the value of the expression: + *

{@code Double.longBitsToDouble((Double.doubleToLongBits(a)<<1)>>>1)} + */ + // @ts-ignore + public static abs(a: number): number; + /** + * Returns the greater of two {@code int} values. That is, the + * result is the argument closer to the value of + * {@link Integer#MAX_VALUE}. If the arguments have the same value, + * the result is that same value. + */ + // @ts-ignore + public static max(a: number, b: number): number; + /** + * Returns the greater of two {@code long} values. That is, the + * result is the argument closer to the value of + * {@link Long#MAX_VALUE}. If the arguments have the same value, + * the result is that same value. + */ + // @ts-ignore + public static max(a: number, b: number): number; + /** + * Returns the greater of two {@code float} values. That is, + * the result is the argument closer to positive infinity. If the + * arguments have the same value, the result is that same + * value. If either value is NaN, then the result is NaN. Unlike + * the numerical comparison operators, this method considers + * negative zero to be strictly smaller than positive zero. If one + * argument is positive zero and the other negative zero, the + * result is positive zero. + */ + // @ts-ignore + public static max(a: number, b: number): number; + /** + * Returns the greater of two {@code double} values. That + * is, the result is the argument closer to positive infinity. If + * the arguments have the same value, the result is that same + * value. If either value is NaN, then the result is NaN. Unlike + * the numerical comparison operators, this method considers + * negative zero to be strictly smaller than positive zero. If one + * argument is positive zero and the other negative zero, the + * result is positive zero. + */ + // @ts-ignore + public static max(a: number, b: number): number; + /** + * Returns the smaller of two {@code int} values. That is, + * the result the argument closer to the value of + * {@link Integer#MIN_VALUE}. If the arguments have the same + * value, the result is that same value. + */ + // @ts-ignore + public static min(a: number, b: number): number; + /** + * Returns the smaller of two {@code long} values. That is, + * the result is the argument closer to the value of + * {@link Long#MIN_VALUE}. If the arguments have the same + * value, the result is that same value. + */ + // @ts-ignore + public static min(a: number, b: number): number; + /** + * Returns the smaller of two {@code float} values. That is, + * the result is the value closer to negative infinity. If the + * arguments have the same value, the result is that same + * value. If either value is NaN, then the result is NaN. Unlike + * the numerical comparison operators, this method considers + * negative zero to be strictly smaller than positive zero. If + * one argument is positive zero and the other is negative zero, + * the result is negative zero. + */ + // @ts-ignore + public static min(a: number, b: number): number; + /** + * Returns the smaller of two {@code double} values. That + * is, the result is the value closer to negative infinity. If the + * arguments have the same value, the result is that same + * value. If either value is NaN, then the result is NaN. Unlike + * the numerical comparison operators, this method considers + * negative zero to be strictly smaller than positive zero. If one + * argument is positive zero and the other is negative zero, the + * result is negative zero. + */ + // @ts-ignore + public static min(a: number, b: number): number; + /** + * Returns the size of an ulp of the argument. An ulp, unit in + * the last place, of a {@code double} value is the positive + * distance between this floating-point value and the {@code + * double} value next larger in magnitude. Note that for non-NaN + * x, ulp(-x) == ulp(x). + *

Special Cases: + *

    + *
  • If the argument is NaN, then the result is NaN. + *
  • If the argument is positive or negative infinity, then the + * result is positive infinity. + *
  • If the argument is positive or negative zero, then the result is + * {@code Double.MIN_VALUE}. + *
  • If the argument is ±{@code Double.MAX_VALUE}, then + * the result is equal to 2971. + *
+ */ + // @ts-ignore + public static ulp(d: number): number; + /** + * Returns the size of an ulp of the argument. An ulp, unit in + * the last place, of a {@code float} value is the positive + * distance between this floating-point value and the {@code + * float} value next larger in magnitude. Note that for non-NaN + * x, ulp(-x) == ulp(x). + *

Special Cases: + *

    + *
  • If the argument is NaN, then the result is NaN. + *
  • If the argument is positive or negative infinity, then the + * result is positive infinity. + *
  • If the argument is positive or negative zero, then the result is + * {@code Float.MIN_VALUE}. + *
  • If the argument is ±{@code Float.MAX_VALUE}, then + * the result is equal to 2104. + *
+ */ + // @ts-ignore + public static ulp(f: number): number; + /** + * Returns the signum function of the argument; zero if the argument + * is zero, 1.0 if the argument is greater than zero, -1.0 if the + * argument is less than zero. + *

Special Cases: + *

    + *
  • If the argument is NaN, then the result is NaN. + *
  • If the argument is positive zero or negative zero, then the + * result is the same as the argument. + *
+ */ + // @ts-ignore + public static signum(d: number): number; + /** + * Returns the signum function of the argument; zero if the argument + * is zero, 1.0f if the argument is greater than zero, -1.0f if the + * argument is less than zero. + *

Special Cases: + *

    + *
  • If the argument is NaN, then the result is NaN. + *
  • If the argument is positive zero or negative zero, then the + * result is the same as the argument. + *
+ */ + // @ts-ignore + public static signum(f: number): number; + /** + * Returns the hyperbolic sine of a {@code double} value. + * The hyperbolic sine of x is defined to be + * (ex - e-x)/2 + * where e is {@linkplain Math#E Euler's number}. + *

Special cases: + *

    + *
  • If the argument is NaN, then the result is NaN. + *
  • If the argument is infinite, then the result is an infinity + * with the same sign as the argument. + *
  • If the argument is zero, then the result is a zero with the + * same sign as the argument. + *
+ *

The computed result must be within 2.5 ulps of the exact result. + */ + // @ts-ignore + public static sinh(x: number): number; + /** + * Returns the hyperbolic cosine of a {@code double} value. + * The hyperbolic cosine of x is defined to be + * (ex + e-x)/2 + * where e is {@linkplain Math#E Euler's number}. + *

Special cases: + *

    + *
  • If the argument is NaN, then the result is NaN. + *
  • If the argument is infinite, then the result is positive + * infinity. + *
  • If the argument is zero, then the result is {@code 1.0}. + *
+ *

The computed result must be within 2.5 ulps of the exact result. + */ + // @ts-ignore + public static cosh(x: number): number; + /** + * Returns the hyperbolic tangent of a {@code double} value. + * The hyperbolic tangent of x is defined to be + * (ex - e-x)/(ex + e-x), + * in other words, {@linkplain Math#sinh + * sinh(x)}/{@linkplain Math#cosh cosh(x)}. Note + * that the absolute value of the exact tanh is always less than + * 1. + *

Special cases: + *

    + *
  • If the argument is NaN, then the result is NaN. + *
  • If the argument is zero, then the result is a zero with the + * same sign as the argument. + *
  • If the argument is positive infinity, then the result is + * {@code +1.0}. + *
  • If the argument is negative infinity, then the result is + * {@code -1.0}. + *
+ *

The computed result must be within 2.5 ulps of the exact result. + * The result of {@code tanh} for any finite input must have + * an absolute value less than or equal to 1. Note that once the + * exact result of tanh is within 1/2 of an ulp of the limit value + * of ±1, correctly signed ±{@code 1.0} should + * be returned. + */ + // @ts-ignore + public static tanh(x: number): number; + /** + * Returns sqrt(x2 +y2) + * without intermediate overflow or underflow. + *

Special cases: + *

    + *
  • If either argument is infinite, then the result + * is positive infinity. + *
  • If either argument is NaN and neither argument is infinite, + * then the result is NaN. + *
+ *

The computed result must be within 1 ulp of the exact + * result. If one parameter is held constant, the results must be + * semi-monotonic in the other parameter. + */ + // @ts-ignore + public static hypot(x: number, y: number): number; + /** + * Returns ex -1. Note that for values of + * x near 0, the exact sum of + * {@code expm1(x)} + 1 is much closer to the true + * result of ex than {@code exp(x)}. + *

Special cases: + *

    + *
  • If the argument is NaN, the result is NaN. + *
  • If the argument is positive infinity, then the result is + * positive infinity. + *
  • If the argument is negative infinity, then the result is + * -1.0. + *
  • If the argument is zero, then the result is a zero with the + * same sign as the argument. + *
+ *

The computed result must be within 1 ulp of the exact result. + * Results must be semi-monotonic. The result of + * {@code expm1} for any finite input must be greater than or + * equal to {@code -1.0}. Note that once the exact result of + * e{@code x} - 1 is within 1/2 + * ulp of the limit value -1, {@code -1.0} should be + * returned. + */ + // @ts-ignore + public static expm1(x: number): number; + /** + * Returns the natural logarithm of the sum of the argument and 1. + * Note that for small values {@code x}, the result of + * {@code log1p(x)} is much closer to the true result of ln(1 + * + {@code x}) than the floating-point evaluation of + * {@code log(1.0+x)}. + *

Special cases: + *

    + *
  • If the argument is NaN or less than -1, then the result is + * NaN. + *
  • If the argument is positive infinity, then the result is + * positive infinity. + *
  • If the argument is negative one, then the result is + * negative infinity. + *
  • If the argument is zero, then the result is a zero with the + * same sign as the argument. + *
+ *

The computed result must be within 1 ulp of the exact result. + * Results must be semi-monotonic. + */ + // @ts-ignore + public static log1p(x: number): number; + /** + * Returns the first floating-point argument with the sign of the + * second floating-point argument. Note that unlike the {@link + * StrictMath#copySign(double, double) StrictMath.copySign} + * method, this method does not require NaN {@code sign} + * arguments to be treated as positive values; implementations are + * permitted to treat some NaN arguments as positive and other NaN + * arguments as negative to allow greater performance. + */ + // @ts-ignore + public static copySign(magnitude: number, sign: number): number; + /** + * Returns the first floating-point argument with the sign of the + * second floating-point argument. Note that unlike the {@link + * StrictMath#copySign(float, float) StrictMath.copySign} + * method, this method does not require NaN {@code sign} + * arguments to be treated as positive values; implementations are + * permitted to treat some NaN arguments as positive and other NaN + * arguments as negative to allow greater performance. + */ + // @ts-ignore + public static copySign(magnitude: number, sign: number): number; + /** + * Returns the unbiased exponent used in the representation of a + * {@code float}. Special cases: + *

    + *
  • If the argument is NaN or infinite, then the result is + * {@link Float#MAX_EXPONENT} + 1. + *
  • If the argument is zero or subnormal, then the result is + * {@link Float#MIN_EXPONENT} -1. + *
+ */ + // @ts-ignore + public static getExponent(f: number): number; + /** + * Returns the unbiased exponent used in the representation of a + * {@code double}. Special cases: + *
    + *
  • If the argument is NaN or infinite, then the result is + * {@link Double#MAX_EXPONENT} + 1. + *
  • If the argument is zero or subnormal, then the result is + * {@link Double#MIN_EXPONENT} -1. + *
+ */ + // @ts-ignore + public static getExponent(d: number): number; + /** + * Returns the floating-point number adjacent to the first + * argument in the direction of the second argument. If both + * arguments compare as equal the second argument is returned. + *

+ * Special cases: + *

    + *
  • If either argument is a NaN, then NaN is returned. + *
  • If both arguments are signed zeros, {@code direction} + * is returned unchanged (as implied by the requirement of + * returning the second argument if the arguments compare as + * equal). + *
  • If {@code start} is + * ±{@link Double#MIN_VALUE} and {@code direction} + * has a value such that the result should have a smaller + * magnitude, then a zero with the same sign as {@code start} + * is returned. + *
  • If {@code start} is infinite and + * {@code direction} has a value such that the result should + * have a smaller magnitude, {@link Double#MAX_VALUE} with the + * same sign as {@code start} is returned. + *
  • If {@code start} is equal to ± + * {@link Double#MAX_VALUE} and {@code direction} has a + * value such that the result should have a larger magnitude, an + * infinity with same sign as {@code start} is returned. + *
+ */ + // @ts-ignore + public static nextAfter(start: number, direction: number): number; + /** + * Returns the floating-point number adjacent to the first + * argument in the direction of the second argument. If both + * arguments compare as equal a value equivalent to the second argument + * is returned. + *

+ * Special cases: + *

    + *
  • If either argument is a NaN, then NaN is returned. + *
  • If both arguments are signed zeros, a value equivalent + * to {@code direction} is returned. + *
  • If {@code start} is + * ±{@link Float#MIN_VALUE} and {@code direction} + * has a value such that the result should have a smaller + * magnitude, then a zero with the same sign as {@code start} + * is returned. + *
  • If {@code start} is infinite and + * {@code direction} has a value such that the result should + * have a smaller magnitude, {@link Float#MAX_VALUE} with the + * same sign as {@code start} is returned. + *
  • If {@code start} is equal to ± + * {@link Float#MAX_VALUE} and {@code direction} has a + * value such that the result should have a larger magnitude, an + * infinity with same sign as {@code start} is returned. + *
+ */ + // @ts-ignore + public static nextAfter(start: number, direction: number): number; + /** + * Returns the floating-point value adjacent to {@code d} in + * the direction of positive infinity. This method is + * semantically equivalent to {@code nextAfter(d, + * Double.POSITIVE_INFINITY)}; however, a {@code nextUp} + * implementation may run faster than its equivalent + * {@code nextAfter} call. + *

Special Cases: + *

    + *
  • If the argument is NaN, the result is NaN. + *
  • If the argument is positive infinity, the result is + * positive infinity. + *
  • If the argument is zero, the result is + * {@link Double#MIN_VALUE} + *
+ */ + // @ts-ignore + public static nextUp(d: number): number; + /** + * Returns the floating-point value adjacent to {@code f} in + * the direction of positive infinity. This method is + * semantically equivalent to {@code nextAfter(f, + * Float.POSITIVE_INFINITY)}; however, a {@code nextUp} + * implementation may run faster than its equivalent + * {@code nextAfter} call. + *

Special Cases: + *

    + *
  • If the argument is NaN, the result is NaN. + *
  • If the argument is positive infinity, the result is + * positive infinity. + *
  • If the argument is zero, the result is + * {@link Float#MIN_VALUE} + *
+ */ + // @ts-ignore + public static nextUp(f: number): number; + /** + * Returns the floating-point value adjacent to {@code d} in + * the direction of negative infinity. This method is + * semantically equivalent to {@code nextAfter(d, + * Double.NEGATIVE_INFINITY)}; however, a + * {@code nextDown} implementation may run faster than its + * equivalent {@code nextAfter} call. + *

Special Cases: + *

    + *
  • If the argument is NaN, the result is NaN. + *
  • If the argument is negative infinity, the result is + * negative infinity. + *
  • If the argument is zero, the result is + * {@code -Double.MIN_VALUE} + *
+ */ + // @ts-ignore + public static nextDown(d: number): number; + /** + * Returns the floating-point value adjacent to {@code f} in + * the direction of negative infinity. This method is + * semantically equivalent to {@code nextAfter(f, + * Float.NEGATIVE_INFINITY)}; however, a + * {@code nextDown} implementation may run faster than its + * equivalent {@code nextAfter} call. + *

Special Cases: + *

    + *
  • If the argument is NaN, the result is NaN. + *
  • If the argument is negative infinity, the result is + * negative infinity. + *
  • If the argument is zero, the result is + * {@code -Float.MIN_VALUE} + *
+ */ + // @ts-ignore + public static nextDown(f: number): number; + /** + * Returns {@code d} × + * 2{@code scaleFactor} rounded as if performed + * by a single correctly rounded floating-point multiply to a + * member of the double value set. See the Java + * Language Specification for a discussion of floating-point + * value sets. If the exponent of the result is between {@link + * Double#MIN_EXPONENT} and {@link Double#MAX_EXPONENT}, the + * answer is calculated exactly. If the exponent of the result + * would be larger than {@code Double.MAX_EXPONENT}, an + * infinity is returned. Note that if the result is subnormal, + * precision may be lost; that is, when {@code scalb(x, n)} + * is subnormal, {@code scalb(scalb(x, n), -n)} may not equal + * x. When the result is non-NaN, the result has the same + * sign as {@code d}. + *

Special cases: + *

    + *
  • If the first argument is NaN, NaN is returned. + *
  • If the first argument is infinite, then an infinity of the + * same sign is returned. + *
  • If the first argument is zero, then a zero of the same + * sign is returned. + *
+ */ + // @ts-ignore + public static scalb(d: number, scaleFactor: number): number; + /** + * Returns {@code f} × + * 2{@code scaleFactor} rounded as if performed + * by a single correctly rounded floating-point multiply to a + * member of the float value set. See the Java + * Language Specification for a discussion of floating-point + * value sets. If the exponent of the result is between {@link + * Float#MIN_EXPONENT} and {@link Float#MAX_EXPONENT}, the + * answer is calculated exactly. If the exponent of the result + * would be larger than {@code Float.MAX_EXPONENT}, an + * infinity is returned. Note that if the result is subnormal, + * precision may be lost; that is, when {@code scalb(x, n)} + * is subnormal, {@code scalb(scalb(x, n), -n)} may not equal + * x. When the result is non-NaN, the result has the same + * sign as {@code f}. + *

Special cases: + *

    + *
  • If the first argument is NaN, NaN is returned. + *
  • If the first argument is infinite, then an infinity of the + * same sign is returned. + *
  • If the first argument is zero, then a zero of the same + * sign is returned. + *
+ */ + // @ts-ignore + public static scalb(f: number, scaleFactor: number): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.NegativeArraySizeException.d.ts b/packages/types/dist/typings/jdk/java.lang.NegativeArraySizeException.d.ts new file mode 100644 index 00000000..c94573e0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.NegativeArraySizeException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class NegativeArraySizeException extends java.lang.RuntimeException { + /** + * Constructs a NegativeArraySizeException with no + * detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs a NegativeArraySizeException with the + * specified detail message. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.NoClassDefFoundError.d.ts b/packages/types/dist/typings/jdk/java.lang.NoClassDefFoundError.d.ts new file mode 100644 index 00000000..f336bbba --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.NoClassDefFoundError.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class NoClassDefFoundError extends java.lang.LinkageError { + /** + * Constructs a NoClassDefFoundError with no detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs a NoClassDefFoundError with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.NoSuchFieldError.d.ts b/packages/types/dist/typings/jdk/java.lang.NoSuchFieldError.d.ts new file mode 100644 index 00000000..c62919e8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.NoSuchFieldError.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class NoSuchFieldError extends java.lang.IncompatibleClassChangeError { + /** + * Constructs a NoSuchFieldError with no detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs a NoSuchFieldError with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.NoSuchFieldException.d.ts b/packages/types/dist/typings/jdk/java.lang.NoSuchFieldException.d.ts new file mode 100644 index 00000000..e4ddbb2b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.NoSuchFieldException.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class NoSuchFieldException extends java.lang.ReflectiveOperationException { + /** + * Constructor. + */ + // @ts-ignore + constructor() + /** + * Constructor with a detail message. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.NoSuchMethodError.d.ts b/packages/types/dist/typings/jdk/java.lang.NoSuchMethodError.d.ts new file mode 100644 index 00000000..89d4dfb0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.NoSuchMethodError.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class NoSuchMethodError extends java.lang.IncompatibleClassChangeError { + /** + * Constructs a NoSuchMethodError with no detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs a NoSuchMethodError with the + * specified detail message. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.NoSuchMethodException.d.ts b/packages/types/dist/typings/jdk/java.lang.NoSuchMethodException.d.ts new file mode 100644 index 00000000..646071d6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.NoSuchMethodException.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class NoSuchMethodException extends java.lang.ReflectiveOperationException { + /** + * Constructs a NoSuchMethodException without a detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs a NoSuchMethodException with a detail message. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.NullPointerException.d.ts b/packages/types/dist/typings/jdk/java.lang.NullPointerException.d.ts new file mode 100644 index 00000000..91af5af3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.NullPointerException.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class NullPointerException extends java.lang.RuntimeException { + /** + * Constructs a {@code NullPointerException} with no detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs a {@code NullPointerException} with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Number.d.ts b/packages/types/dist/typings/jdk/java.lang.Number.d.ts new file mode 100644 index 00000000..50fd727c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Number.d.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + abstract class Number extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Returns the value of the specified number as an {@code int}, + * which may involve rounding or truncation. + */ + // @ts-ignore + public abstract intValue(): number; + /** + * Returns the value of the specified number as a {@code long}, + * which may involve rounding or truncation. + */ + // @ts-ignore + public abstract longValue(): number; + /** + * Returns the value of the specified number as a {@code float}, + * which may involve rounding. + */ + // @ts-ignore + public abstract floatValue(): number; + /** + * Returns the value of the specified number as a {@code double}, + * which may involve rounding. + */ + // @ts-ignore + public abstract doubleValue(): number; + /** + * Returns the value of the specified number as a {@code byte}, + * which may involve rounding or truncation. + *

This implementation returns the result of {@link #intValue} cast + * to a {@code byte}. + */ + // @ts-ignore + public byteValue(): number; + /** + * Returns the value of the specified number as a {@code short}, + * which may involve rounding or truncation. + *

This implementation returns the result of {@link #intValue} cast + * to a {@code short}. + */ + // @ts-ignore + public shortValue(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.NumberFormatException.d.ts b/packages/types/dist/typings/jdk/java.lang.NumberFormatException.d.ts new file mode 100644 index 00000000..b5ed13b6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.NumberFormatException.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class NumberFormatException extends java.lang.IllegalArgumentException { + /** + * Constructs a NumberFormatException with no detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs a NumberFormatException with the + * specified detail message. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Object.d.ts b/packages/types/dist/typings/jdk/java.lang.Object.d.ts new file mode 100644 index 00000000..ad1d7bdc --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Object.d.ts @@ -0,0 +1,133 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class Object { + /** + * Constructs a new instance of this class. + */ + // @ts-ignore + constructor() + /** + * Answers a new instance of the same class as the receiver, + * whose slots have been filled in with the values in the + * slots of the receiver. + *

+ * Classes which wish to support cloning must specify that + * they implement the Cloneable interface, since the native + * implementation checks for this. + */ + // @ts-ignore + protected clone(): java.lang.Object; + /** + * Compares the argument to the receiver, and answers true + * if they represent the same object using a class + * specific comparison. The implementation in Object answers + * true only if the argument is the exact same object as the + * receiver (==). + */ + // @ts-ignore + public equals(o: java.lang.Object): boolean; + /** + * Called by the virtual machine when there are no longer any (non-weak) + * references to the receiver. Subclasses can use this facility to + * guarantee that any associated resources are cleaned up before + * the receiver is garbage collected. Uncaught exceptions which are + * thrown during the running of the method cause it to terminate + * immediately, but are otherwise ignored. + *

+ * Note: The virtual machine assumes that the implementation + * in class Object is empty. + */ + // @ts-ignore + protected finalize(): void; + /** + * Answers the unique instance of java.lang.Class which + * represents the class of the receiver. + */ + // @ts-ignore + public getClass(): java.lang.Class; + /** + * Answers an integer hash code for the receiver. Any two + * objects which answer true when passed to + * .equals must answer the same value for this + * method. + */ + // @ts-ignore + public hashCode(): number; + /** + * Causes one thread which is waiting on the + * receiver to be made ready to run. This does not guarantee + * that the thread will immediately run. The method can only + * be invoked by a thread which owns the receiver's monitor. + */ + // @ts-ignore + public notify(): void; + /** + * Causes all threads which are waiting on the + * receiver to be made ready to run. The threads are scheduled + * according to their priorities as specified in class Thread. + * Between any two threads of the same priority the one which + * waited first will be the first thread that runs after + * being notified. The method can only be invoked by a thread + * which owns the receiver's monitor. + */ + // @ts-ignore + public notifyAll(): void; + /** + * Answers a string containing a concise, human-readable + * description of the receiver. + */ + // @ts-ignore + public toString(): string; + /** + * Causes the thread which sent this message to be made not + * ready to run pending some change in the receiver (as + * indicated by notify or notifyAll). + * The method can only be invoked by a thread which owns the + * receiver's monitor. A waiting thread can be sent + * interrupt() to cause it to prematurely stop + * waiting, so senders of wait should check that the condition + * they were waiting for has been met. + *

+ * When the thread waits, it gives up ownership of the + * receiver's monitor. When it is notified (or interrupted) it + * re-acquires the monitor before it starts running. + */ + // @ts-ignore + public wait(): void; + /** + * Causes the thread which sent this message to be made not + * ready to run either pending some change in the receiver + * (as indicated by notify or notifyAll) + * or the expiration of the timeout. The method can only be invoked + * by a thread which owns the receiver's monitor. A waiting thread + * can be sent interrupt() to cause it to prematurely + * stop waiting, so senders of wait should check that the condition + * they were waiting for has been met. + *

+ * When the thread waits, it gives up ownership of the + * receiver's monitor. When it is notified (or interrupted) it + * re-acquires the monitor before it starts running. + */ + // @ts-ignore + public wait(time: number): void; + /** + * Causes the thread which sent this message to be made not + * ready to run either pending some change in the receiver + * (as indicated by notify or notifyAll) + * or the expiration of the timeout. The method can only be invoked + * by a thread which owns the receiver's monitor. A waiting thread + * can be sent interrupt() to cause it to prematurely + * stop waiting, so senders of wait should check that the condition + * they were waiting for has been met. + *

+ * When the thread waits, it gives up ownership of the + * receiver's monitor. When it is notified (or interrupted) it + * re-acquires the monitor before it starts running. + */ + // @ts-ignore + public wait(time: number, frac: number): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.OutOfMemoryError.d.ts b/packages/types/dist/typings/jdk/java.lang.OutOfMemoryError.d.ts new file mode 100644 index 00000000..e4784db1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.OutOfMemoryError.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class OutOfMemoryError extends java.lang.VirtualMachineError { + /** + * Constructs an {@code OutOfMemoryError} with no detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs an {@code OutOfMemoryError} with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Override.d.ts b/packages/types/dist/typings/jdk/java.lang.Override.d.ts new file mode 100644 index 00000000..f0bc361e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Override.d.ts @@ -0,0 +1,8 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + interface Override { + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Package.d.ts b/packages/types/dist/typings/jdk/java.lang.Package.d.ts new file mode 100644 index 00000000..2c1007ba --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Package.d.ts @@ -0,0 +1,137 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class Package extends java.lang.Object { + /** + * Return the name of this package. + */ + // @ts-ignore + public getName(): string; + /** + * Return the title of the specification that this package implements. + */ + // @ts-ignore + public getSpecificationTitle(): string; + /** + * Returns the version number of the specification + * that this package implements. + * This version string must be a sequence of nonnegative decimal + * integers separated by "."'s and may have leading zeros. + * When version strings are compared the most significant + * numbers are compared. + */ + // @ts-ignore + public getSpecificationVersion(): string; + /** + * Return the name of the organization, vendor, + * or company that owns and maintains the specification + * of the classes that implement this package. + */ + // @ts-ignore + public getSpecificationVendor(): string; + /** + * Return the title of this package. + */ + // @ts-ignore + public getImplementationTitle(): string; + /** + * Return the version of this implementation. It consists of any string + * assigned by the vendor of this implementation and does + * not have any particular syntax specified or expected by the Java + * runtime. It may be compared for equality with other + * package version strings used for this implementation + * by this vendor for this package. + */ + // @ts-ignore + public getImplementationVersion(): string; + /** + * Returns the name of the organization, + * vendor or company that provided this implementation. + */ + // @ts-ignore + public getImplementationVendor(): string; + /** + * Returns true if this package is sealed. + */ + // @ts-ignore + public isSealed(): boolean; + /** + * Returns true if this package is sealed with respect to the specified + * code source url. + */ + // @ts-ignore + public isSealed(url: java.net.URL): boolean; + /** + * Compare this package's specification version with a + * desired version. It returns true if + * this packages specification version number is greater than or equal + * to the desired version number.

+ * Version numbers are compared by sequentially comparing corresponding + * components of the desired and specification strings. + * Each component is converted as a decimal integer and the values + * compared. + * If the specification value is greater than the desired + * value true is returned. If the value is less false is returned. + * If the values are equal the period is skipped and the next pair of + * components is compared. + */ + // @ts-ignore + public isCompatibleWith(desired: string): boolean; + /** + * Find a package by name in the callers {@code ClassLoader} instance. + * The callers {@code ClassLoader} instance is used to find the package + * instance corresponding to the named class. If the callers + * {@code ClassLoader} instance is null then the set of packages loaded + * by the system {@code ClassLoader} instance is searched to find the + * named package.

+ * Packages have attributes for versions and specifications only if the class + * loader created the package instance with the appropriate attributes. Typically, + * those attributes are defined in the manifests that accompany the classes. + */ + // @ts-ignore + public static getPackage(name: string): java.lang.Package; + /** + * Get all the packages currently known for the caller's {@code ClassLoader} + * instance. Those packages correspond to classes loaded via or accessible by + * name to that {@code ClassLoader} instance. If the caller's + * {@code ClassLoader} instance is the bootstrap {@code ClassLoader} + * instance, which may be represented by {@code null} in some implementations, + * only packages corresponding to classes loaded by the bootstrap + * {@code ClassLoader} instance will be returned. + */ + // @ts-ignore + public static getPackages(): java.lang.Package[]; + /** + * Return the hash code computed from the package name. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns the string representation of this Package. + * Its value is the string "package " and the package name. + * If the package title is defined it is appended. + * If the package version is defined it is appended. + */ + // @ts-ignore + public toString(): string; + // @ts-ignore + public getAnnotation(annotationClass: java.lang.Class): java.lang.annotation.Annotation; + /** + * {@inheritDoc} + */ + // @ts-ignore + public isAnnotationPresent(annotationClass: java.lang.Class): boolean; + // @ts-ignore + public getAnnotationsByType(annotationClass: java.lang.Class): java.lang.annotation.Annotation[]; + // @ts-ignore + public getAnnotations(): java.lang.annotation.Annotation[]; + // @ts-ignore + public getDeclaredAnnotation(annotationClass: java.lang.Class): java.lang.annotation.Annotation; + // @ts-ignore + public getDeclaredAnnotationsByType(annotationClass: java.lang.Class): java.lang.annotation.Annotation[]; + // @ts-ignore + public getDeclaredAnnotations(): java.lang.annotation.Annotation[]; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Process.d.ts b/packages/types/dist/typings/jdk/java.lang.Process.d.ts new file mode 100644 index 00000000..1ecda9a5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Process.d.ts @@ -0,0 +1,119 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + abstract class Process extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Returns the output stream connected to the normal input of the + * subprocess. Output to the stream is piped into the standard + * input of the process represented by this {@code Process} object. + *

If the standard input of the subprocess has been redirected using + * {@link ProcessBuilder#redirectInput(Redirect) + * ProcessBuilder.redirectInput} + * then this method will return a + * null output stream. + *

Implementation note: It is a good idea for the returned + * output stream to be buffered. + */ + // @ts-ignore + public abstract getOutputStream(): java.io.OutputStream; + /** + * Returns the input stream connected to the normal output of the + * subprocess. The stream obtains data piped from the standard + * output of the process represented by this {@code Process} object. + *

If the standard output of the subprocess has been redirected using + * {@link ProcessBuilder#redirectOutput(Redirect) + * ProcessBuilder.redirectOutput} + * then this method will return a + * null input stream. + *

Otherwise, if the standard error of the subprocess has been + * redirected using + * {@link ProcessBuilder#redirectErrorStream(boolean) + * ProcessBuilder.redirectErrorStream} + * then the input stream returned by this method will receive the + * merged standard output and the standard error of the subprocess. + *

Implementation note: It is a good idea for the returned + * input stream to be buffered. + */ + // @ts-ignore + public abstract getInputStream(): java.io.InputStream; + /** + * Returns the input stream connected to the error output of the + * subprocess. The stream obtains data piped from the error output + * of the process represented by this {@code Process} object. + *

If the standard error of the subprocess has been redirected using + * {@link ProcessBuilder#redirectError(Redirect) + * ProcessBuilder.redirectError} or + * {@link ProcessBuilder#redirectErrorStream(boolean) + * ProcessBuilder.redirectErrorStream} + * then this method will return a + * null input stream. + *

Implementation note: It is a good idea for the returned + * input stream to be buffered. + */ + // @ts-ignore + public abstract getErrorStream(): java.io.InputStream; + /** + * Causes the current thread to wait, if necessary, until the + * process represented by this {@code Process} object has + * terminated. This method returns immediately if the subprocess + * has already terminated. If the subprocess has not yet + * terminated, the calling thread will be blocked until the + * subprocess exits. + */ + // @ts-ignore + public abstract waitFor(): number; + /** + * Causes the current thread to wait, if necessary, until the + * subprocess represented by this {@code Process} object has + * terminated, or the specified waiting time elapses. + *

If the subprocess has already terminated then this method returns + * immediately with the value {@code true}. If the process has not + * terminated and the timeout value is less than, or equal to, zero, then + * this method returns immediately with the value {@code false}. + *

The default implementation of this methods polls the {@code exitValue} + * to check if the process has terminated. Concrete implementations of this + * class are strongly encouraged to override this method with a more + * efficient implementation. + */ + // @ts-ignore + public waitFor(timeout: number, unit: java.util.concurrent.TimeUnit): boolean; + /** + * Returns the exit value for the subprocess. + */ + // @ts-ignore + public abstract exitValue(): number; + /** + * Kills the subprocess. Whether the subprocess represented by this + * {@code Process} object is forcibly terminated or not is + * implementation dependent. + */ + // @ts-ignore + public abstract destroy(): void; + /** + * Kills the subprocess. The subprocess represented by this + * {@code Process} object is forcibly terminated. + *

The default implementation of this method invokes {@link #destroy} + * and so may not forcibly terminate the process. Concrete implementations + * of this class are strongly encouraged to override this method with a + * compliant implementation. Invoking this method on {@code Process} + * objects returned by {@link ProcessBuilder#start} and + * {@link Runtime#exec} will forcibly terminate the process. + *

Note: The subprocess may not terminate immediately. + * i.e. {@code isAlive()} may return true for a brief period + * after {@code destroyForcibly()} is called. This method + * may be chained to {@code waitFor()} if needed. + */ + // @ts-ignore + public destroyForcibly(): java.lang.Process; + /** + * Tests whether the subprocess represented by this {@code Process} is + * alive. + */ + // @ts-ignore + public isAlive(): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.ProcessBuilder.Redirect.Type.d.ts b/packages/types/dist/typings/jdk/java.lang.ProcessBuilder.Redirect.Type.d.ts new file mode 100644 index 00000000..ed86fec3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.ProcessBuilder.Redirect.Type.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace ProcessBuilder { + namespace Redirect { + // @ts-ignore + class Type extends java.lang.Enum { + // @ts-ignore + public static PIPE: java.lang.ProcessBuilder.Redirect.Type; + // @ts-ignore + public static INHERIT: java.lang.ProcessBuilder.Redirect.Type; + // @ts-ignore + public static READ: java.lang.ProcessBuilder.Redirect.Type; + // @ts-ignore + public static WRITE: java.lang.ProcessBuilder.Redirect.Type; + // @ts-ignore + public static APPEND: java.lang.ProcessBuilder.Redirect.Type; + // @ts-ignore + public static values(): java.lang.ProcessBuilder.Redirect.Type[]; + // @ts-ignore + public static valueOf(name: string): java.lang.ProcessBuilder.Redirect.Type; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.ProcessBuilder.Redirect.d.ts b/packages/types/dist/typings/jdk/java.lang.ProcessBuilder.Redirect.d.ts new file mode 100644 index 00000000..5e2fc0b8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.ProcessBuilder.Redirect.d.ts @@ -0,0 +1,76 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace ProcessBuilder { + // @ts-ignore + abstract class Redirect extends java.lang.Object { + // @ts-ignore + public static PIPE: java.lang.ProcessBuilder.Redirect; + // @ts-ignore + public static INHERIT: java.lang.ProcessBuilder.Redirect; + /** + * Returns the type of this {@code Redirect}. + */ + // @ts-ignore + public abstract type(): java.lang.ProcessBuilder.Redirect.Type; + /** + * Returns the {@link File} source or destination associated + * with this redirect, or {@code null} if there is no such file. + */ + // @ts-ignore + public file(): java.io.File; + /** + * Returns a redirect to read from the specified file. + *

It will always be true that + *

 {@code
+                 * Redirect.from(file).file() == file &&
+                 * Redirect.from(file).type() == Redirect.Type.READ
+                 * }
+ */ + // @ts-ignore + public static from(file: java.io.File): java.lang.ProcessBuilder.Redirect; + /** + * Returns a redirect to write to the specified file. + * If the specified file exists when the subprocess is started, + * its previous contents will be discarded. + *

It will always be true that + *

 {@code
+                 * Redirect.to(file).file() == file &&
+                 * Redirect.to(file).type() == Redirect.Type.WRITE
+                 * }
+ */ + // @ts-ignore + public static to(file: java.io.File): java.lang.ProcessBuilder.Redirect; + /** + * Returns a redirect to append to the specified file. + * Each write operation first advances the position to the + * end of the file and then writes the requested data. + * Whether the advancement of the position and the writing + * of the data are done in a single atomic operation is + * system-dependent and therefore unspecified. + *

It will always be true that + *

 {@code
+                 * Redirect.appendTo(file).file() == file &&
+                 * Redirect.appendTo(file).type() == Redirect.Type.APPEND
+                 * }
+ */ + // @ts-ignore + public static appendTo(file: java.io.File): java.lang.ProcessBuilder.Redirect; + /** + * Compares the specified object with this {@code Redirect} for + * equality. Returns {@code true} if and only if the two + * objects are identical or both objects are {@code Redirect} + * instances of the same type associated with non-null equal + * {@code File} instances. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a hash code value for this {@code Redirect}. + */ + // @ts-ignore + public hashCode(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.ProcessBuilder.d.ts b/packages/types/dist/typings/jdk/java.lang.ProcessBuilder.d.ts new file mode 100644 index 00000000..56cf22b3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.ProcessBuilder.d.ts @@ -0,0 +1,307 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class ProcessBuilder extends java.lang.Object { + /** + * Constructs a process builder with the specified operating + * system program and arguments. This constructor does not + * make a copy of the {@code command} list. Subsequent + * updates to the list will be reflected in the state of the + * process builder. It is not checked whether + * {@code command} corresponds to a valid operating system + * command. + */ + // @ts-ignore + constructor(command: java.util.List) + /** + * Constructs a process builder with the specified operating + * system program and arguments. This is a convenience + * constructor that sets the process builder's command to a string + * list containing the same strings as the {@code command} + * array, in the same order. It is not checked whether + * {@code command} corresponds to a valid operating system + * command. + */ + // @ts-ignore + constructor(command: string) + /** + * Sets this process builder's operating system program and + * arguments. This method does not make a copy of the + * {@code command} list. Subsequent updates to the list will + * be reflected in the state of the process builder. It is not + * checked whether {@code command} corresponds to a valid + * operating system command. + */ + // @ts-ignore + public command(command: java.util.List): java.lang.ProcessBuilder; + /** + * Sets this process builder's operating system program and + * arguments. This is a convenience method that sets the command + * to a string list containing the same strings as the + * {@code command} array, in the same order. It is not + * checked whether {@code command} corresponds to a valid + * operating system command. + */ + // @ts-ignore + public command(command: string): java.lang.ProcessBuilder; + /** + * Returns this process builder's operating system program and + * arguments. The returned list is not a copy. Subsequent + * updates to the list will be reflected in the state of this + * process builder. + */ + // @ts-ignore + public command(): java.util.List; + /** + * Returns a string map view of this process builder's environment. + * Whenever a process builder is created, the environment is + * initialized to a copy of the current process environment (see + * {@link System#getenv()}). Subprocesses subsequently started by + * this object's {@link #start()} method will use this map as + * their environment. + *

The returned object may be modified using ordinary {@link + * java.util.Map Map} operations. These modifications will be + * visible to subprocesses started via the {@link #start()} + * method. Two {@code ProcessBuilder} instances always + * contain independent process environments, so changes to the + * returned map will never be reflected in any other + * {@code ProcessBuilder} instance or the values returned by + * {@link System#getenv System.getenv}. + *

If the system does not support environment variables, an + * empty map is returned. + *

The returned map does not permit null keys or values. + * Attempting to insert or query the presence of a null key or + * value will throw a {@link NullPointerException}. + * Attempting to query the presence of a key or value which is not + * of type {@link String} will throw a {@link ClassCastException}. + *

The behavior of the returned map is system-dependent. A + * system may not allow modifications to environment variables or + * may forbid certain variable names or values. For this reason, + * attempts to modify the map may fail with + * {@link UnsupportedOperationException} or + * {@link IllegalArgumentException} + * if the modification is not permitted by the operating system. + *

Since the external format of environment variable names and + * values is system-dependent, there may not be a one-to-one + * mapping between them and Java's Unicode strings. Nevertheless, + * the map is implemented in such a way that environment variables + * which are not modified by Java code will have an unmodified + * native representation in the subprocess. + *

The returned map and its collection views may not obey the + * general contract of the {@link Object#equals} and + * {@link Object#hashCode} methods. + *

The returned map is typically case-sensitive on all platforms. + *

If a security manager exists, its + * {@link SecurityManager#checkPermission checkPermission} method + * is called with a + * {@link RuntimePermission}{@code ("getenv.*")} permission. + * This may result in a {@link SecurityException} being thrown. + *

When passing information to a Java subprocess, + * system properties + * are generally preferred over environment variables. + */ + // @ts-ignore + public environment(): java.util.Map; + /** + * Returns this process builder's working directory. + * Subprocesses subsequently started by this object's {@link + * #start()} method will use this as their working directory. + * The returned value may be {@code null} -- this means to use + * the working directory of the current Java process, usually the + * directory named by the system property {@code user.dir}, + * as the working directory of the child process. + */ + // @ts-ignore + public directory(): java.io.File; + /** + * Sets this process builder's working directory. + * Subprocesses subsequently started by this object's {@link + * #start()} method will use this as their working directory. + * The argument may be {@code null} -- this means to use the + * working directory of the current Java process, usually the + * directory named by the system property {@code user.dir}, + * as the working directory of the child process. + */ + // @ts-ignore + public directory(directory: java.io.File): java.lang.ProcessBuilder; + /** + * Sets this process builder's standard input source. + * Subprocesses subsequently started by this object's {@link #start()} + * method obtain their standard input from this source. + *

If the source is {@link Redirect#PIPE Redirect.PIPE} + * (the initial value), then the standard input of a + * subprocess can be written to using the output stream + * returned by {@link Process#getOutputStream()}. + * If the source is set to any other value, then + * {@link Process#getOutputStream()} will return a + * null output stream. + */ + // @ts-ignore + public redirectInput(source: java.lang.ProcessBuilder.Redirect): java.lang.ProcessBuilder; + /** + * Sets this process builder's standard output destination. + * Subprocesses subsequently started by this object's {@link #start()} + * method send their standard output to this destination. + *

If the destination is {@link Redirect#PIPE Redirect.PIPE} + * (the initial value), then the standard output of a subprocess + * can be read using the input stream returned by {@link + * Process#getInputStream()}. + * If the destination is set to any other value, then + * {@link Process#getInputStream()} will return a + * null input stream. + */ + // @ts-ignore + public redirectOutput(destination: java.lang.ProcessBuilder.Redirect): java.lang.ProcessBuilder; + /** + * Sets this process builder's standard error destination. + * Subprocesses subsequently started by this object's {@link #start()} + * method send their standard error to this destination. + *

If the destination is {@link Redirect#PIPE Redirect.PIPE} + * (the initial value), then the error output of a subprocess + * can be read using the input stream returned by {@link + * Process#getErrorStream()}. + * If the destination is set to any other value, then + * {@link Process#getErrorStream()} will return a + * null input stream. + *

If the {@link #redirectErrorStream redirectErrorStream} + * attribute has been set {@code true}, then the redirection set + * by this method has no effect. + */ + // @ts-ignore + public redirectError(destination: java.lang.ProcessBuilder.Redirect): java.lang.ProcessBuilder; + /** + * Sets this process builder's standard input source to a file. + *

This is a convenience method. An invocation of the form + * {@code redirectInput(file)} + * behaves in exactly the same way as the invocation + * {@link #redirectInput(Redirect) redirectInput} + * {@code (Redirect.from(file))}. + */ + // @ts-ignore + public redirectInput(file: java.io.File): java.lang.ProcessBuilder; + /** + * Sets this process builder's standard output destination to a file. + *

This is a convenience method. An invocation of the form + * {@code redirectOutput(file)} + * behaves in exactly the same way as the invocation + * {@link #redirectOutput(Redirect) redirectOutput} + * {@code (Redirect.to(file))}. + */ + // @ts-ignore + public redirectOutput(file: java.io.File): java.lang.ProcessBuilder; + /** + * Sets this process builder's standard error destination to a file. + *

This is a convenience method. An invocation of the form + * {@code redirectError(file)} + * behaves in exactly the same way as the invocation + * {@link #redirectError(Redirect) redirectError} + * {@code (Redirect.to(file))}. + */ + // @ts-ignore + public redirectError(file: java.io.File): java.lang.ProcessBuilder; + /** + * Returns this process builder's standard input source. + * Subprocesses subsequently started by this object's {@link #start()} + * method obtain their standard input from this source. + * The initial value is {@link Redirect#PIPE Redirect.PIPE}. + */ + // @ts-ignore + public redirectInput(): java.lang.ProcessBuilder.Redirect; + /** + * Returns this process builder's standard output destination. + * Subprocesses subsequently started by this object's {@link #start()} + * method redirect their standard output to this destination. + * The initial value is {@link Redirect#PIPE Redirect.PIPE}. + */ + // @ts-ignore + public redirectOutput(): java.lang.ProcessBuilder.Redirect; + /** + * Returns this process builder's standard error destination. + * Subprocesses subsequently started by this object's {@link #start()} + * method redirect their standard error to this destination. + * The initial value is {@link Redirect#PIPE Redirect.PIPE}. + */ + // @ts-ignore + public redirectError(): java.lang.ProcessBuilder.Redirect; + /** + * Sets the source and destination for subprocess standard I/O + * to be the same as those of the current Java process. + *

This is a convenience method. An invocation of the form + *

 {@code
+             * pb.inheritIO()
+             * }
+ * behaves in exactly the same way as the invocation + *
 {@code
+             * pb.redirectInput(Redirect.INHERIT)
+             * .redirectOutput(Redirect.INHERIT)
+             * .redirectError(Redirect.INHERIT)
+             * }
+ * This gives behavior equivalent to most operating system + * command interpreters, or the standard C library function + * {@code system()}. + */ + // @ts-ignore + public inheritIO(): java.lang.ProcessBuilder; + /** + * Tells whether this process builder merges standard error and + * standard output. + *

If this property is {@code true}, then any error output + * generated by subprocesses subsequently started by this object's + * {@link #start()} method will be merged with the standard + * output, so that both can be read using the + * {@link Process#getInputStream()} method. This makes it easier + * to correlate error messages with the corresponding output. + * The initial value is {@code false}. + */ + // @ts-ignore + public redirectErrorStream(): boolean; + /** + * Sets this process builder's {@code redirectErrorStream} property. + *

If this property is {@code true}, then any error output + * generated by subprocesses subsequently started by this object's + * {@link #start()} method will be merged with the standard + * output, so that both can be read using the + * {@link Process#getInputStream()} method. This makes it easier + * to correlate error messages with the corresponding output. + * The initial value is {@code false}. + */ + // @ts-ignore + public redirectErrorStream(redirectErrorStream: boolean): java.lang.ProcessBuilder; + /** + * Starts a new process using the attributes of this process builder. + *

The new process will + * invoke the command and arguments given by {@link #command()}, + * in a working directory as given by {@link #directory()}, + * with a process environment as given by {@link #environment()}. + *

This method checks that the command is a valid operating + * system command. Which commands are valid is system-dependent, + * but at the very least the command must be a non-empty list of + * non-null strings. + *

A minimal set of system dependent environment variables may + * be required to start a process on some operating systems. + * As a result, the subprocess may inherit additional environment variable + * settings beyond those in the process builder's {@link #environment()}. + *

If there is a security manager, its + * {@link SecurityManager#checkExec checkExec} + * method is called with the first component of this object's + * {@code command} array as its argument. This may result in + * a {@link SecurityException} being thrown. + *

Starting an operating system process is highly system-dependent. + * Among the many things that can go wrong are: + *

    + *
  • The operating system program file was not found. + *
  • Access to the program file was denied. + *
  • The working directory does not exist. + *
+ *

In such cases an exception will be thrown. The exact nature + * of the exception is system-dependent, but it will always be a + * subclass of {@link IOException}. + *

Subsequent modifications to this process builder will not + * affect the returned {@link Process}. + */ + // @ts-ignore + public start(): java.lang.Process; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Readable.d.ts b/packages/types/dist/typings/jdk/java.lang.Readable.d.ts new file mode 100644 index 00000000..c725cc9f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Readable.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + interface Readable { + /** + * Attempts to read characters into the specified character buffer. + * The buffer is used as a repository of characters as-is: the only + * changes made are the results of a put operation. No flipping or + * rewinding of the buffer is performed. + */ + // @ts-ignore + read(cb: java.nio.CharBuffer): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.ReflectiveOperationException.d.ts b/packages/types/dist/typings/jdk/java.lang.ReflectiveOperationException.d.ts new file mode 100644 index 00000000..557c5cd1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.ReflectiveOperationException.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class ReflectiveOperationException extends java.lang.Exception { + /** + * Constructs a new exception with {@code null} as its detail + * message. The cause is not initialized, and may subsequently be + * initialized by a call to {@link #initCause}. + */ + // @ts-ignore + constructor() + /** + * Constructs a new exception with the specified detail message. + * The cause is not initialized, and may subsequently be + * initialized by a call to {@link #initCause}. + */ + // @ts-ignore + constructor(message: string) + /** + * Constructs a new exception with the specified detail message + * and cause. + *

Note that the detail message associated with + * {@code cause} is not automatically incorporated in + * this exception's detail message. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Constructs a new exception with the specified cause and a detail + * message of {@code (cause==null ? null : cause.toString())} (which + * typically contains the class and detail message of {@code cause}). + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Runnable.d.ts b/packages/types/dist/typings/jdk/java.lang.Runnable.d.ts new file mode 100644 index 00000000..bb097f3a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Runnable.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + interface Runnable { + /** + * When an object implementing interface Runnable is used + * to create a thread, starting the thread causes the object's + * run method to be called in that separately executing + * thread. + *

+ * The general contract of the method run is that it may + * take any action whatsoever. + */ + // @ts-ignore + run(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Runtime.d.ts b/packages/types/dist/typings/jdk/java.lang.Runtime.d.ts new file mode 100644 index 00000000..f51a579f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Runtime.d.ts @@ -0,0 +1,414 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class Runtime extends java.lang.Object { + /** + * Returns the runtime object associated with the current Java application. + * Most of the methods of class Runtime are instance + * methods and must be invoked with respect to the current runtime object. + */ + // @ts-ignore + public static getRuntime(): java.lang.Runtime; + /** + * Terminates the currently running Java virtual machine by initiating its + * shutdown sequence. This method never returns normally. The argument + * serves as a status code; by convention, a nonzero status code indicates + * abnormal termination. + *

The virtual machine's shutdown sequence consists of two phases. In + * the first phase all registered {@link #addShutdownHook shutdown hooks}, + * if any, are started in some unspecified order and allowed to run + * concurrently until they finish. In the second phase all uninvoked + * finalizers are run if {@link #runFinalizersOnExit finalization-on-exit} + * has been enabled. Once this is done the virtual machine {@link #halt + * halts}. + *

If this method is invoked after the virtual machine has begun its + * shutdown sequence then if shutdown hooks are being run this method will + * block indefinitely. If shutdown hooks have already been run and on-exit + * finalization has been enabled then this method halts the virtual machine + * with the given status code if the status is nonzero; otherwise, it + * blocks indefinitely. + *

The {@link System#exit(int) System.exit} method is the + * conventional and convenient means of invoking this method.

+ */ + // @ts-ignore + public exit(status: number): void; + /** + * Registers a new virtual-machine shutdown hook. + *

The Java virtual machine shuts down in response to two kinds + * of events: + *

    + *
  • The program exits normally, when the last non-daemon + * thread exits or when the {@link #exit exit} (equivalently, + * {@link System#exit(int) System.exit}) method is invoked, or + *
  • The virtual machine is terminated in response to a + * user interrupt, such as typing ^C, or a system-wide event, + * such as user logoff or system shutdown. + *
+ *

A shutdown hook is simply an initialized but unstarted + * thread. When the virtual machine begins its shutdown sequence it will + * start all registered shutdown hooks in some unspecified order and let + * them run concurrently. When all the hooks have finished it will then + * run all uninvoked finalizers if finalization-on-exit has been enabled. + * Finally, the virtual machine will halt. Note that daemon threads will + * continue to run during the shutdown sequence, as will non-daemon threads + * if shutdown was initiated by invoking the {@link #exit exit} + * method. + *

Once the shutdown sequence has begun it can be stopped only by + * invoking the {@link #halt halt} method, which forcibly + * terminates the virtual machine. + *

Once the shutdown sequence has begun it is impossible to register a + * new shutdown hook or de-register a previously-registered hook. + * Attempting either of these operations will cause an + * {@link IllegalStateException} to be thrown. + *

Shutdown hooks run at a delicate time in the life cycle of a virtual + * machine and should therefore be coded defensively. They should, in + * particular, be written to be thread-safe and to avoid deadlocks insofar + * as possible. They should also not rely blindly upon services that may + * have registered their own shutdown hooks and therefore may themselves in + * the process of shutting down. Attempts to use other thread-based + * services such as the AWT event-dispatch thread, for example, may lead to + * deadlocks. + *

Shutdown hooks should also finish their work quickly. When a + * program invokes {@link #exit exit} the expectation is + * that the virtual machine will promptly shut down and exit. When the + * virtual machine is terminated due to user logoff or system shutdown the + * underlying operating system may only allow a fixed amount of time in + * which to shut down and exit. It is therefore inadvisable to attempt any + * user interaction or to perform a long-running computation in a shutdown + * hook. + *

Uncaught exceptions are handled in shutdown hooks just as in any + * other thread, by invoking the {@link ThreadGroup#uncaughtException + * uncaughtException} method of the thread's {@link + * ThreadGroup} object. The default implementation of this method + * prints the exception's stack trace to {@link System#err} and + * terminates the thread; it does not cause the virtual machine to exit or + * halt. + *

In rare circumstances the virtual machine may abort, that is, + * stop running without shutting down cleanly. This occurs when the + * virtual machine is terminated externally, for example with the + * SIGKILL signal on Unix or the TerminateProcess call on + * Microsoft Windows. The virtual machine may also abort if a native + * method goes awry by, for example, corrupting internal data structures or + * attempting to access nonexistent memory. If the virtual machine aborts + * then no guarantee can be made about whether or not any shutdown hooks + * will be run.

+ */ + // @ts-ignore + public addShutdownHook(hook: java.lang.Thread): void; + /** + * De-registers a previously-registered virtual-machine shutdown hook.

+ */ + // @ts-ignore + public removeShutdownHook(hook: java.lang.Thread): boolean; + /** + * Forcibly terminates the currently running Java virtual machine. This + * method never returns normally. + *

This method should be used with extreme caution. Unlike the + * {@link #exit exit} method, this method does not cause shutdown + * hooks to be started and does not run uninvoked finalizers if + * finalization-on-exit has been enabled. If the shutdown sequence has + * already been initiated then this method does not wait for any running + * shutdown hooks or finalizers to finish their work.

+ */ + // @ts-ignore + public halt(status: number): void; + /** + * Enable or disable finalization on exit; doing so specifies that the + * finalizers of all objects that have finalizers that have not yet been + * automatically invoked are to be run before the Java runtime exits. + * By default, finalization on exit is disabled. + *

If there is a security manager, + * its checkExit method is first called + * with 0 as its argument to ensure the exit is allowed. + * This could result in a SecurityException. + */ + // @ts-ignore + public static runFinalizersOnExit(value: boolean): void; + /** + * Executes the specified string command in a separate process. + *

This is a convenience method. An invocation of the form + * exec(command) + * behaves in exactly the same way as the invocation + * {@link #exec(String, String[], File) exec}(command, null, null). + */ + // @ts-ignore + public exec(command: string): java.lang.Process; + /** + * Executes the specified string command in a separate process with the + * specified environment. + *

This is a convenience method. An invocation of the form + * exec(command, envp) + * behaves in exactly the same way as the invocation + * {@link #exec(String, String[], File) exec}(command, envp, null). + */ + // @ts-ignore + public exec(command: string, envp: string): java.lang.Process; + /** + * Executes the specified string command in a separate process with the + * specified environment and working directory. + *

This is a convenience method. An invocation of the form + * exec(command, envp, dir) + * behaves in exactly the same way as the invocation + * {@link #exec(String[], String[], File) exec}(cmdarray, envp, dir), + * where cmdarray is an array of all the tokens in + * command. + *

More precisely, the command string is broken + * into tokens using a {@link StringTokenizer} created by the call + * new {@link StringTokenizer}(command) with no + * further modification of the character categories. The tokens + * produced by the tokenizer are then placed in the new string + * array cmdarray, in the same order. + */ + // @ts-ignore + public exec(command: string, envp: string, dir: java.io.File): java.lang.Process; + /** + * Executes the specified command and arguments in a separate process. + *

This is a convenience method. An invocation of the form + * exec(cmdarray) + * behaves in exactly the same way as the invocation + * {@link #exec(String[], String[], File) exec}(cmdarray, null, null). + */ + // @ts-ignore + public exec(cmdarray: string): java.lang.Process; + /** + * Executes the specified command and arguments in a separate process + * with the specified environment. + *

This is a convenience method. An invocation of the form + * exec(cmdarray, envp) + * behaves in exactly the same way as the invocation + * {@link #exec(String[], String[], File) exec}(cmdarray, envp, null). + */ + // @ts-ignore + public exec(cmdarray: string, envp: string): java.lang.Process; + /** + * Executes the specified command and arguments in a separate process with + * the specified environment and working directory. + *

Given an array of strings cmdarray, representing the + * tokens of a command line, and an array of strings envp, + * representing "environment" variable settings, this method creates + * a new process in which to execute the specified command. + *

This method checks that cmdarray is a valid operating + * system command. Which commands are valid is system-dependent, + * but at the very least the command must be a non-empty list of + * non-null strings. + *

If envp is null, the subprocess inherits the + * environment settings of the current process. + *

A minimal set of system dependent environment variables may + * be required to start a process on some operating systems. + * As a result, the subprocess may inherit additional environment variable + * settings beyond those in the specified environment. + *

{@link ProcessBuilder#start()} is now the preferred way to + * start a process with a modified environment. + *

The working directory of the new subprocess is specified by dir. + * If dir is null, the subprocess inherits the + * current working directory of the current process. + *

If a security manager exists, its + * {@link SecurityManager#checkExec checkExec} + * method is invoked with the first component of the array + * cmdarray as its argument. This may result in a + * {@link SecurityException} being thrown. + *

Starting an operating system process is highly system-dependent. + * Among the many things that can go wrong are: + *

    + *
  • The operating system program file was not found. + *
  • Access to the program file was denied. + *
  • The working directory does not exist. + *
+ *

In such cases an exception will be thrown. The exact nature + * of the exception is system-dependent, but it will always be a + * subclass of {@link IOException}. + */ + // @ts-ignore + public exec(cmdarray: string, envp: string, dir: java.io.File): java.lang.Process; + /** + * Returns the number of processors available to the Java virtual machine. + *

This value may change during a particular invocation of the virtual + * machine. Applications that are sensitive to the number of available + * processors should therefore occasionally poll this property and adjust + * their resource usage appropriately.

+ */ + // @ts-ignore + public availableProcessors(): number; + /** + * Returns the amount of free memory in the Java Virtual Machine. + * Calling the + * gc method may result in increasing the value returned + * by freeMemory. + */ + // @ts-ignore + public freeMemory(): number; + /** + * Returns the total amount of memory in the Java virtual machine. + * The value returned by this method may vary over time, depending on + * the host environment. + *

+ * Note that the amount of memory required to hold an object of any + * given type may be implementation-dependent. + */ + // @ts-ignore + public totalMemory(): number; + /** + * Returns the maximum amount of memory that the Java virtual machine will + * attempt to use. If there is no inherent limit then the value {@link + * java.lang.Long#MAX_VALUE} will be returned. + */ + // @ts-ignore + public maxMemory(): number; + /** + * Runs the garbage collector. + * Calling this method suggests that the Java virtual machine expend + * effort toward recycling unused objects in order to make the memory + * they currently occupy available for quick reuse. When control + * returns from the method call, the virtual machine has made + * its best effort to recycle all discarded objects. + *

+ * The name gc stands for "garbage + * collector". The virtual machine performs this recycling + * process automatically as needed, in a separate thread, even if the + * gc method is not invoked explicitly. + *

+ * The method {@link System#gc()} is the conventional and convenient + * means of invoking this method. + */ + // @ts-ignore + public gc(): void; + /** + * Runs the finalization methods of any objects pending finalization. + * Calling this method suggests that the Java virtual machine expend + * effort toward running the finalize methods of objects + * that have been found to be discarded but whose finalize + * methods have not yet been run. When control returns from the + * method call, the virtual machine has made a best effort to + * complete all outstanding finalizations. + *

+ * The virtual machine performs the finalization process + * automatically as needed, in a separate thread, if the + * runFinalization method is not invoked explicitly. + *

+ * The method {@link System#runFinalization()} is the conventional + * and convenient means of invoking this method. + */ + // @ts-ignore + public runFinalization(): void; + /** + * Enables/Disables tracing of instructions. + * If the boolean argument is true, this + * method suggests that the Java virtual machine emit debugging + * information for each instruction in the virtual machine as it + * is executed. The format of this information, and the file or other + * output stream to which it is emitted, depends on the host environment. + * The virtual machine may ignore this request if it does not support + * this feature. The destination of the trace output is system + * dependent. + *

+ * If the boolean argument is false, this + * method causes the virtual machine to stop performing the + * detailed instruction trace it is performing. + */ + // @ts-ignore + public traceInstructions(on: boolean): void; + /** + * Enables/Disables tracing of method calls. + * If the boolean argument is true, this + * method suggests that the Java virtual machine emit debugging + * information for each method in the virtual machine as it is + * called. The format of this information, and the file or other output + * stream to which it is emitted, depends on the host environment. The + * virtual machine may ignore this request if it does not support + * this feature. + *

+ * Calling this method with argument false suggests that the + * virtual machine cease emitting per-call debugging information. + */ + // @ts-ignore + public traceMethodCalls(on: boolean): void; + /** + * Loads the native library specified by the filename argument. The filename + * argument must be an absolute path name. + * (for example + * Runtime.getRuntime().load("/home/avh/lib/libX11.so");). + * If the filename argument, when stripped of any platform-specific library + * prefix, path, and file extension, indicates a library whose name is, + * for example, L, and a native library called L is statically linked + * with the VM, then the JNI_OnLoad_L function exported by the library + * is invoked rather than attempting to load a dynamic library. + * A filename matching the argument does not have to exist in the file + * system. See the JNI Specification for more details. + * Otherwise, the filename argument is mapped to a native library image in + * an implementation-dependent manner. + *

+ * First, if there is a security manager, its checkLink + * method is called with the filename as its argument. + * This may result in a security exception. + *

+ * This is similar to the method {@link #loadLibrary(String)}, but it + * accepts a general file name as an argument rather than just a library + * name, allowing any file of native code to be loaded. + *

+ * The method {@link System#load(String)} is the conventional and + * convenient means of invoking this method. + */ + // @ts-ignore + public load(filename: string): void; + /** + * Loads the native library specified by the libname + * argument. The libname argument must not contain any platform + * specific prefix, file extension or path. If a native library + * called libname is statically linked with the VM, then the + * JNI_OnLoad_libname function exported by the library is invoked. + * See the JNI Specification for more details. + * Otherwise, the libname argument is loaded from a system library + * location and mapped to a native library image in an implementation- + * dependent manner. + *

+ * First, if there is a security manager, its checkLink + * method is called with the libname as its argument. + * This may result in a security exception. + *

+ * The method {@link System#loadLibrary(String)} is the conventional + * and convenient means of invoking this method. If native + * methods are to be used in the implementation of a class, a standard + * strategy is to put the native code in a library file (call it + * LibFile) and then to put a static initializer: + *

+             * static { System.loadLibrary("LibFile"); }
+             * 
+ * within the class declaration. When the class is loaded and + * initialized, the necessary native code implementation for the native + * methods will then be loaded as well. + *

+ * If this method is called more than once with the same library + * name, the second and subsequent calls are ignored. + */ + // @ts-ignore + public loadLibrary(libname: string): void; + /** + * Creates a localized version of an input stream. This method takes + * an InputStream and returns an InputStream + * equivalent to the argument in all respects except that it is + * localized: as characters in the local character set are read from + * the stream, they are automatically converted from the local + * character set to Unicode. + *

+ * If the argument is already a localized stream, it may be returned + * as the result. + */ + // @ts-ignore + public getLocalizedInputStream(input: java.io.InputStream): java.io.InputStream; + /** + * Creates a localized version of an output stream. This method + * takes an OutputStream and returns an + * OutputStream equivalent to the argument in all respects + * except that it is localized: as Unicode characters are written to + * the stream, they are automatically converted to the local + * character set. + *

+ * If the argument is already a localized stream, it may be returned + * as the result. + */ + // @ts-ignore + public getLocalizedOutputStream(out: java.io.OutputStream): java.io.OutputStream; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.RuntimeException.d.ts b/packages/types/dist/typings/jdk/java.lang.RuntimeException.d.ts new file mode 100644 index 00000000..0c4ef65f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.RuntimeException.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class RuntimeException extends java.lang.Exception { + /** + * Constructs a new runtime exception with {@code null} as its + * detail message. The cause is not initialized, and may subsequently be + * initialized by a call to {@link #initCause}. + */ + // @ts-ignore + constructor() + /** + * Constructs a new runtime exception with the specified detail message. + * The cause is not initialized, and may subsequently be initialized by a + * call to {@link #initCause}. + */ + // @ts-ignore + constructor(message: string) + /** + * Constructs a new runtime exception with the specified detail message and + * cause.

Note that the detail message associated with + * {@code cause} is not automatically incorporated in + * this runtime exception's detail message. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Constructs a new runtime exception with the specified cause and a + * detail message of (cause==null ? null : cause.toString()) + * (which typically contains the class and detail message of + * cause). This constructor is useful for runtime exceptions + * that are little more than wrappers for other throwables. + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + /** + * Constructs a new runtime exception with the specified detail + * message, cause, suppression enabled or disabled, and writable + * stack trace enabled or disabled. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable, enableSuppression: boolean, writableStackTrace: boolean) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.RuntimePermission.d.ts b/packages/types/dist/typings/jdk/java.lang.RuntimePermission.d.ts new file mode 100644 index 00000000..f73dd330 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.RuntimePermission.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class RuntimePermission extends java.security.BasicPermission { + /** + * Creates an instance of this class with the given name. + */ + // @ts-ignore + constructor(permissionName: string) + /** + * Creates an instance of this class with the given name and + * action list. The action list is ignored. + */ + // @ts-ignore + constructor(name: string, actions: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.SafeVarargs.d.ts b/packages/types/dist/typings/jdk/java.lang.SafeVarargs.d.ts new file mode 100644 index 00000000..27048fd1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.SafeVarargs.d.ts @@ -0,0 +1,8 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + interface SafeVarargs { + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.SecurityException.d.ts b/packages/types/dist/typings/jdk/java.lang.SecurityException.d.ts new file mode 100644 index 00000000..b0fa4a3f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.SecurityException.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class SecurityException extends java.lang.RuntimeException { + /** + * Constructs a SecurityException with no detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs a SecurityException with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + /** + * Creates a SecurityException with the specified + * detail message and cause. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Creates a SecurityException with the specified cause + * and a detail message of (cause==null ? null : cause.toString()) + * (which typically contains the class and detail message of + * cause). + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.SecurityManager.d.ts b/packages/types/dist/typings/jdk/java.lang.SecurityManager.d.ts new file mode 100644 index 00000000..5e04324a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.SecurityManager.d.ts @@ -0,0 +1,751 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class SecurityManager extends java.lang.Object { + /** + * Constructs a new SecurityManager. + *

If there is a security manager already installed, this method first + * calls the security manager's checkPermission method + * with the RuntimePermission("createSecurityManager") + * permission to ensure the calling thread has permission to create a new + * security manager. + * This may result in throwing a SecurityException. + */ + // @ts-ignore + constructor() + // @ts-ignore + protected inCheck: boolean; + /** + * Tests if there is a security check in progress. + */ + // @ts-ignore + public getInCheck(): boolean; + /** + * Returns the current execution stack as an array of classes. + *

+ * The length of the array is the number of methods on the execution + * stack. The element at index 0 is the class of the + * currently executing method, the element at index 1 is + * the class of that method's caller, and so on. + */ + // @ts-ignore + protected getClassContext(): java.lang.Class[]; + /** + * Returns the class loader of the most recently executing method from + * a class defined using a non-system class loader. A non-system + * class loader is defined as being a class loader that is not equal to + * the system class loader (as returned + * by {@link ClassLoader#getSystemClassLoader}) or one of its ancestors. + *

+ * This method will return + * null in the following three cases: + *

    + *
  1. All methods on the execution stack are from classes + * defined using the system class loader or one of its ancestors. + *
  2. All methods on the execution stack up to the first + * "privileged" caller + * (see {@link java.security.AccessController#doPrivileged}) + * are from classes + * defined using the system class loader or one of its ancestors. + *
  3. A call to checkPermission with + * java.security.AllPermission does not + * result in a SecurityException. + *
+ */ + // @ts-ignore + protected currentClassLoader(): java.lang.ClassLoader; + /** + * Returns the class of the most recently executing method from + * a class defined using a non-system class loader. A non-system + * class loader is defined as being a class loader that is not equal to + * the system class loader (as returned + * by {@link ClassLoader#getSystemClassLoader}) or one of its ancestors. + *

+ * This method will return + * null in the following three cases: + *

    + *
  1. All methods on the execution stack are from classes + * defined using the system class loader or one of its ancestors. + *
  2. All methods on the execution stack up to the first + * "privileged" caller + * (see {@link java.security.AccessController#doPrivileged}) + * are from classes + * defined using the system class loader or one of its ancestors. + *
  3. A call to checkPermission with + * java.security.AllPermission does not + * result in a SecurityException. + *
+ */ + // @ts-ignore + protected currentLoadedClass(): java.lang.Class; + /** + * Returns the stack depth of the specified class. + */ + // @ts-ignore + protected classDepth(name: string): number; + /** + * Returns the stack depth of the most recently executing method + * from a class defined using a non-system class loader. A non-system + * class loader is defined as being a class loader that is not equal to + * the system class loader (as returned + * by {@link ClassLoader#getSystemClassLoader}) or one of its ancestors. + *

+ * This method will return + * -1 in the following three cases: + *

    + *
  1. All methods on the execution stack are from classes + * defined using the system class loader or one of its ancestors. + *
  2. All methods on the execution stack up to the first + * "privileged" caller + * (see {@link java.security.AccessController#doPrivileged}) + * are from classes + * defined using the system class loader or one of its ancestors. + *
  3. A call to checkPermission with + * java.security.AllPermission does not + * result in a SecurityException. + *
+ */ + // @ts-ignore + protected classLoaderDepth(): number; + /** + * Tests if a method from a class with the specified + * name is on the execution stack. + */ + // @ts-ignore + protected inClass(name: string): boolean; + /** + * Basically, tests if a method from a class defined using a + * class loader is on the execution stack. + */ + // @ts-ignore + protected inClassLoader(): boolean; + /** + * Creates an object that encapsulates the current execution + * environment. The result of this method is used, for example, by the + * three-argument checkConnect method and by the + * two-argument checkRead method. + * These methods are needed because a trusted method may be called + * on to read a file or open a socket on behalf of another method. + * The trusted method needs to determine if the other (possibly + * untrusted) method would be allowed to perform the operation on its + * own. + *

The default implementation of this method is to return + * an AccessControlContext object. + */ + // @ts-ignore + public getSecurityContext(): java.lang.Object; + /** + * Throws a SecurityException if the requested + * access, specified by the given permission, is not permitted based + * on the security policy currently in effect. + *

+ * This method calls AccessController.checkPermission + * with the given permission. + */ + // @ts-ignore + public checkPermission(perm: java.security.Permission): void; + /** + * Throws a SecurityException if the + * specified security context is denied access to the resource + * specified by the given permission. + * The context must be a security + * context returned by a previous call to + * getSecurityContext and the access control + * decision is based upon the configured security policy for + * that security context. + *

+ * If context is an instance of + * AccessControlContext then the + * AccessControlContext.checkPermission method is + * invoked with the specified permission. + *

+ * If context is not an instance of + * AccessControlContext then a + * SecurityException is thrown. + */ + // @ts-ignore + public checkPermission(perm: java.security.Permission, context: java.lang.Object): void; + /** + * Throws a SecurityException if the + * calling thread is not allowed to create a new class loader. + *

+ * This method calls checkPermission with the + * RuntimePermission("createClassLoader") + * permission. + *

+ * If you override this method, then you should make a call to + * super.checkCreateClassLoader + * at the point the overridden method would normally throw an + * exception. + */ + // @ts-ignore + public checkCreateClassLoader(): void; + /** + * Throws a SecurityException if the + * calling thread is not allowed to modify the thread argument. + *

+ * This method is invoked for the current security manager by the + * stop, suspend, resume, + * setPriority, setName, and + * setDaemon methods of class Thread. + *

+ * If the thread argument is a system thread (belongs to + * the thread group with a null parent) then + * this method calls checkPermission with the + * RuntimePermission("modifyThread") permission. + * If the thread argument is not a system thread, + * this method just returns silently. + *

+ * Applications that want a stricter policy should override this + * method. If this method is overridden, the method that overrides + * it should additionally check to see if the calling thread has the + * RuntimePermission("modifyThread") permission, and + * if so, return silently. This is to ensure that code granted + * that permission (such as the JDK itself) is allowed to + * manipulate any thread. + *

+ * If this method is overridden, then + * super.checkAccess should + * be called by the first statement in the overridden method, or the + * equivalent security check should be placed in the overridden method. + */ + // @ts-ignore + public checkAccess(t: java.lang.Thread): void; + /** + * Throws a SecurityException if the + * calling thread is not allowed to modify the thread group argument. + *

+ * This method is invoked for the current security manager when a + * new child thread or child thread group is created, and by the + * setDaemon, setMaxPriority, + * stop, suspend, resume, and + * destroy methods of class ThreadGroup. + *

+ * If the thread group argument is the system thread group ( + * has a null parent) then + * this method calls checkPermission with the + * RuntimePermission("modifyThreadGroup") permission. + * If the thread group argument is not the system thread group, + * this method just returns silently. + *

+ * Applications that want a stricter policy should override this + * method. If this method is overridden, the method that overrides + * it should additionally check to see if the calling thread has the + * RuntimePermission("modifyThreadGroup") permission, and + * if so, return silently. This is to ensure that code granted + * that permission (such as the JDK itself) is allowed to + * manipulate any thread. + *

+ * If this method is overridden, then + * super.checkAccess should + * be called by the first statement in the overridden method, or the + * equivalent security check should be placed in the overridden method. + */ + // @ts-ignore + public checkAccess(g: java.lang.ThreadGroup): void; + /** + * Throws a SecurityException if the + * calling thread is not allowed to cause the Java Virtual Machine to + * halt with the specified status code. + *

+ * This method is invoked for the current security manager by the + * exit method of class Runtime. A status + * of 0 indicates success; other values indicate various + * errors. + *

+ * This method calls checkPermission with the + * RuntimePermission("exitVM."+status) permission. + *

+ * If you override this method, then you should make a call to + * super.checkExit + * at the point the overridden method would normally throw an + * exception. + */ + // @ts-ignore + public checkExit(status: number): void; + /** + * Throws a SecurityException if the + * calling thread is not allowed to create a subprocess. + *

+ * This method is invoked for the current security manager by the + * exec methods of class Runtime. + *

+ * This method calls checkPermission with the + * FilePermission(cmd,"execute") permission + * if cmd is an absolute path, otherwise it calls + * checkPermission with + * FilePermission("<<ALL FILES>>","execute"). + *

+ * If you override this method, then you should make a call to + * super.checkExec + * at the point the overridden method would normally throw an + * exception. + */ + // @ts-ignore + public checkExec(cmd: string): void; + /** + * Throws a SecurityException if the + * calling thread is not allowed to dynamic link the library code + * specified by the string argument file. The argument is either a + * simple library name or a complete filename. + *

+ * This method is invoked for the current security manager by + * methods load and loadLibrary of class + * Runtime. + *

+ * This method calls checkPermission with the + * RuntimePermission("loadLibrary."+lib) permission. + *

+ * If you override this method, then you should make a call to + * super.checkLink + * at the point the overridden method would normally throw an + * exception. + */ + // @ts-ignore + public checkLink(lib: string): void; + /** + * Throws a SecurityException if the + * calling thread is not allowed to read from the specified file + * descriptor. + *

+ * This method calls checkPermission with the + * RuntimePermission("readFileDescriptor") + * permission. + *

+ * If you override this method, then you should make a call to + * super.checkRead + * at the point the overridden method would normally throw an + * exception. + */ + // @ts-ignore + public checkRead(fd: java.io.FileDescriptor): void; + /** + * Throws a SecurityException if the + * calling thread is not allowed to read the file specified by the + * string argument. + *

+ * This method calls checkPermission with the + * FilePermission(file,"read") permission. + *

+ * If you override this method, then you should make a call to + * super.checkRead + * at the point the overridden method would normally throw an + * exception. + */ + // @ts-ignore + public checkRead(file: string): void; + /** + * Throws a SecurityException if the + * specified security context is not allowed to read the file + * specified by the string argument. The context must be a security + * context returned by a previous call to + * getSecurityContext. + *

If context is an instance of + * AccessControlContext then the + * AccessControlContext.checkPermission method will + * be invoked with the FilePermission(file,"read") permission. + *

If context is not an instance of + * AccessControlContext then a + * SecurityException is thrown. + *

+ * If you override this method, then you should make a call to + * super.checkRead + * at the point the overridden method would normally throw an + * exception. + */ + // @ts-ignore + public checkRead(file: string, context: java.lang.Object): void; + /** + * Throws a SecurityException if the + * calling thread is not allowed to write to the specified file + * descriptor. + *

+ * This method calls checkPermission with the + * RuntimePermission("writeFileDescriptor") + * permission. + *

+ * If you override this method, then you should make a call to + * super.checkWrite + * at the point the overridden method would normally throw an + * exception. + */ + // @ts-ignore + public checkWrite(fd: java.io.FileDescriptor): void; + /** + * Throws a SecurityException if the + * calling thread is not allowed to write to the file specified by + * the string argument. + *

+ * This method calls checkPermission with the + * FilePermission(file,"write") permission. + *

+ * If you override this method, then you should make a call to + * super.checkWrite + * at the point the overridden method would normally throw an + * exception. + */ + // @ts-ignore + public checkWrite(file: string): void; + /** + * Throws a SecurityException if the + * calling thread is not allowed to delete the specified file. + *

+ * This method is invoked for the current security manager by the + * delete method of class File. + *

+ * This method calls checkPermission with the + * FilePermission(file,"delete") permission. + *

+ * If you override this method, then you should make a call to + * super.checkDelete + * at the point the overridden method would normally throw an + * exception. + */ + // @ts-ignore + public checkDelete(file: string): void; + /** + * Throws a SecurityException if the + * calling thread is not allowed to open a socket connection to the + * specified host and port number. + *

+ * A port number of -1 indicates that the calling + * method is attempting to determine the IP address of the specified + * host name. + *

+ * This method calls checkPermission with the + * SocketPermission(host+":"+port,"connect") permission if + * the port is not equal to -1. If the port is equal to -1, then + * it calls checkPermission with the + * SocketPermission(host,"resolve") permission. + *

+ * If you override this method, then you should make a call to + * super.checkConnect + * at the point the overridden method would normally throw an + * exception. + */ + // @ts-ignore + public checkConnect(host: string, port: number): void; + /** + * Throws a SecurityException if the + * specified security context is not allowed to open a socket + * connection to the specified host and port number. + *

+ * A port number of -1 indicates that the calling + * method is attempting to determine the IP address of the specified + * host name. + *

If context is not an instance of + * AccessControlContext then a + * SecurityException is thrown. + *

+ * Otherwise, the port number is checked. If it is not equal + * to -1, the context's checkPermission + * method is called with a + * SocketPermission(host+":"+port,"connect") permission. + * If the port is equal to -1, then + * the context's checkPermission method + * is called with a + * SocketPermission(host,"resolve") permission. + *

+ * If you override this method, then you should make a call to + * super.checkConnect + * at the point the overridden method would normally throw an + * exception. + */ + // @ts-ignore + public checkConnect(host: string, port: number, context: java.lang.Object): void; + /** + * Throws a SecurityException if the + * calling thread is not allowed to wait for a connection request on + * the specified local port number. + *

+ * This method calls checkPermission with the + * SocketPermission("localhost:"+port,"listen"). + *

+ * If you override this method, then you should make a call to + * super.checkListen + * at the point the overridden method would normally throw an + * exception. + */ + // @ts-ignore + public checkListen(port: number): void; + /** + * Throws a SecurityException if the + * calling thread is not permitted to accept a socket connection from + * the specified host and port number. + *

+ * This method is invoked for the current security manager by the + * accept method of class ServerSocket. + *

+ * This method calls checkPermission with the + * SocketPermission(host+":"+port,"accept") permission. + *

+ * If you override this method, then you should make a call to + * super.checkAccept + * at the point the overridden method would normally throw an + * exception. + */ + // @ts-ignore + public checkAccept(host: string, port: number): void; + /** + * Throws a SecurityException if the + * calling thread is not allowed to use + * (join/leave/send/receive) IP multicast. + *

+ * This method calls checkPermission with the + * java.net.SocketPermission(maddr.getHostAddress(), + * "accept,connect") permission. + *

+ * If you override this method, then you should make a call to + * super.checkMulticast + * at the point the overridden method would normally throw an + * exception. + */ + // @ts-ignore + public checkMulticast(maddr: java.net.InetAddress): void; + /** + * Throws a SecurityException if the + * calling thread is not allowed to use + * (join/leave/send/receive) IP multicast. + *

+ * This method calls checkPermission with the + * java.net.SocketPermission(maddr.getHostAddress(), + * "accept,connect") permission. + *

+ * If you override this method, then you should make a call to + * super.checkMulticast + * at the point the overridden method would normally throw an + * exception. + */ + // @ts-ignore + public checkMulticast(maddr: java.net.InetAddress, ttl: number): void; + /** + * Throws a SecurityException if the + * calling thread is not allowed to access or modify the system + * properties. + *

+ * This method is used by the getProperties and + * setProperties methods of class System. + *

+ * This method calls checkPermission with the + * PropertyPermission("*", "read,write") permission. + *

+ * If you override this method, then you should make a call to + * super.checkPropertiesAccess + * at the point the overridden method would normally throw an + * exception. + *

+ */ + // @ts-ignore + public checkPropertiesAccess(): void; + /** + * Throws a SecurityException if the + * calling thread is not allowed to access the system property with + * the specified key name. + *

+ * This method is used by the getProperty method of + * class System. + *

+ * This method calls checkPermission with the + * PropertyPermission(key, "read") permission. + *

+ * If you override this method, then you should make a call to + * super.checkPropertyAccess + * at the point the overridden method would normally throw an + * exception. + */ + // @ts-ignore + public checkPropertyAccess(key: string): void; + /** + * Returns false if the calling + * thread is not trusted to bring up the top-level window indicated + * by the window argument. In this case, the caller can + * still decide to show the window, but the window should include + * some sort of visual warning. If the method returns + * true, then the window can be shown without any + * special restrictions. + *

+ * See class Window for more information on trusted and + * untrusted windows. + *

+ * This method calls + * checkPermission with the + * AWTPermission("showWindowWithoutWarningBanner") permission, + * and returns true if a SecurityException is not thrown, + * otherwise it returns false. + * In the case of subset Profiles of Java SE that do not include the + * {@code java.awt} package, {@code checkPermission} is instead called + * to check the permission {@code java.security.AllPermission}. + *

+ * If you override this method, then you should make a call to + * super.checkTopLevelWindow + * at the point the overridden method would normally return + * false, and the value of + * super.checkTopLevelWindow should + * be returned. + */ + // @ts-ignore + public checkTopLevelWindow(window: java.lang.Object): boolean; + /** + * Throws a SecurityException if the + * calling thread is not allowed to initiate a print job request. + *

+ * This method calls + * checkPermission with the + * RuntimePermission("queuePrintJob") permission. + *

+ * If you override this method, then you should make a call to + * super.checkPrintJobAccess + * at the point the overridden method would normally throw an + * exception. + *

+ */ + // @ts-ignore + public checkPrintJobAccess(): void; + /** + * Throws a SecurityException if the + * calling thread is not allowed to access the system clipboard. + *

+ * This method calls checkPermission with the + * AWTPermission("accessClipboard") + * permission. + * In the case of subset Profiles of Java SE that do not include the + * {@code java.awt} package, {@code checkPermission} is instead called + * to check the permission {@code java.security.AllPermission}. + *

+ * If you override this method, then you should make a call to + * super.checkSystemClipboardAccess + * at the point the overridden method would normally throw an + * exception. + */ + // @ts-ignore + public checkSystemClipboardAccess(): void; + /** + * Throws a SecurityException if the + * calling thread is not allowed to access the AWT event queue. + *

+ * This method calls checkPermission with the + * AWTPermission("accessEventQueue") permission. + * In the case of subset Profiles of Java SE that do not include the + * {@code java.awt} package, {@code checkPermission} is instead called + * to check the permission {@code java.security.AllPermission}. + *

+ * If you override this method, then you should make a call to + * super.checkAwtEventQueueAccess + * at the point the overridden method would normally throw an + * exception. + */ + // @ts-ignore + public checkAwtEventQueueAccess(): void; + /** + * Throws a SecurityException if the + * calling thread is not allowed to access the package specified by + * the argument. + *

+ * This method is used by the loadClass method of class + * loaders. + *

+ * This method first gets a list of + * restricted packages by obtaining a comma-separated list from + * a call to + * java.security.Security.getProperty("package.access"), + * and checks to see if pkg starts with or equals + * any of the restricted packages. If it does, then + * checkPermission gets called with the + * RuntimePermission("accessClassInPackage."+pkg) + * permission. + *

+ * If this method is overridden, then + * super.checkPackageAccess should be called + * as the first line in the overridden method. + */ + // @ts-ignore + public checkPackageAccess(pkg: string): void; + /** + * Throws a SecurityException if the + * calling thread is not allowed to define classes in the package + * specified by the argument. + *

+ * This method is used by the loadClass method of some + * class loaders. + *

+ * This method first gets a list of restricted packages by + * obtaining a comma-separated list from a call to + * java.security.Security.getProperty("package.definition"), + * and checks to see if pkg starts with or equals + * any of the restricted packages. If it does, then + * checkPermission gets called with the + * RuntimePermission("defineClassInPackage."+pkg) + * permission. + *

+ * If this method is overridden, then + * super.checkPackageDefinition should be called + * as the first line in the overridden method. + */ + // @ts-ignore + public checkPackageDefinition(pkg: string): void; + /** + * Throws a SecurityException if the + * calling thread is not allowed to set the socket factory used by + * ServerSocket or Socket, or the stream + * handler factory used by URL. + *

+ * This method calls checkPermission with the + * RuntimePermission("setFactory") permission. + *

+ * If you override this method, then you should make a call to + * super.checkSetFactory + * at the point the overridden method would normally throw an + * exception. + *

+ */ + // @ts-ignore + public checkSetFactory(): void; + /** + * Throws a SecurityException if the + * calling thread is not allowed to access members. + *

+ * The default policy is to allow access to PUBLIC members, as well + * as access to classes that have the same class loader as the caller. + * In all other cases, this method calls checkPermission + * with the RuntimePermission("accessDeclaredMembers") + * permission. + *

+ * If this method is overridden, then a call to + * super.checkMemberAccess cannot be made, + * as the default implementation of checkMemberAccess + * relies on the code being checked being at a stack depth of + * 4. + */ + // @ts-ignore + public checkMemberAccess(clazz: java.lang.Class, which: number): void; + /** + * Determines whether the permission with the specified permission target + * name should be granted or denied. + *

If the requested permission is allowed, this method returns + * quietly. If denied, a SecurityException is raised. + *

This method creates a SecurityPermission object for + * the given permission target name and calls checkPermission + * with it. + *

See the documentation for + * {@link java.security.SecurityPermission} for + * a list of possible permission target names. + *

If you override this method, then you should make a call to + * super.checkSecurityAccess + * at the point the overridden method would normally throw an + * exception. + */ + // @ts-ignore + public checkSecurityAccess(target: string): void; + /** + * Returns the thread group into which to instantiate any new + * thread being created at the time this is being called. + * By default, it returns the thread group of the current + * thread. This should be overridden by a specific security + * manager to return the appropriate thread group. + */ + // @ts-ignore + public getThreadGroup(): java.lang.ThreadGroup; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Short.d.ts b/packages/types/dist/typings/jdk/java.lang.Short.d.ts new file mode 100644 index 00000000..308c4e83 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Short.d.ts @@ -0,0 +1,270 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class Short extends java.lang.Number { + /** + * Constructs a newly allocated {@code Short} object that + * represents the specified {@code short} value. + */ + // @ts-ignore + constructor(value: number) + /** + * Constructs a newly allocated {@code Short} object that + * represents the {@code short} value indicated by the + * {@code String} parameter. The string is converted to a + * {@code short} value in exactly the manner used by the + * {@code parseShort} method for radix 10. + */ + // @ts-ignore + constructor(s: string) + // @ts-ignore + public static MIN_VALUE: number; + // @ts-ignore + public static MAX_VALUE: number; + // @ts-ignore + public static TYPE: java.lang.Class; + // @ts-ignore + public static SIZE: number; + // @ts-ignore + public static BYTES: number; + /** + * Returns a new {@code String} object representing the + * specified {@code short}. The radix is assumed to be 10. + */ + // @ts-ignore + public static toString(s: number): string; + /** + * Parses the string argument as a signed {@code short} in the + * radix specified by the second argument. The characters in the + * string must all be digits, of the specified radix (as + * determined by whether {@link java.lang.Character#digit(char, + * int)} returns a nonnegative value) except that the first + * character may be an ASCII minus sign {@code '-'} + * ({@code '\u002D'}) to indicate a negative value or an + * ASCII plus sign {@code '+'} ({@code '\u002B'}) to + * indicate a positive value. The resulting {@code short} value + * is returned. + *

An exception of type {@code NumberFormatException} is + * thrown if any of the following situations occurs: + *

    + *
  • The first argument is {@code null} or is a string of + * length zero. + *
  • The radix is either smaller than {@link + * java.lang.Character#MIN_RADIX} or larger than {@link + * java.lang.Character#MAX_RADIX}. + *
  • Any character of the string is not a digit of the + * specified radix, except that the first character may be a minus + * sign {@code '-'} ({@code '\u002D'}) or plus sign + * {@code '+'} ({@code '\u002B'}) provided that the + * string is longer than length 1. + *
  • The value represented by the string is not a value of type + * {@code short}. + *
+ */ + // @ts-ignore + public static parseShort(s: string, radix: number): number; + /** + * Parses the string argument as a signed decimal {@code + * short}. The characters in the string must all be decimal + * digits, except that the first character may be an ASCII minus + * sign {@code '-'} ({@code '\u002D'}) to indicate a + * negative value or an ASCII plus sign {@code '+'} + * ({@code '\u002B'}) to indicate a positive value. The + * resulting {@code short} value is returned, exactly as if the + * argument and the radix 10 were given as arguments to the {@link + * #parseShort(java.lang.String, int)} method. + */ + // @ts-ignore + public static parseShort(s: string): number; + /** + * Returns a {@code Short} object holding the value + * extracted from the specified {@code String} when parsed + * with the radix given by the second argument. The first argument + * is interpreted as representing a signed {@code short} in + * the radix specified by the second argument, exactly as if the + * argument were given to the {@link #parseShort(java.lang.String, + * int)} method. The result is a {@code Short} object that + * represents the {@code short} value specified by the string. + *

In other words, this method returns a {@code Short} object + * equal to the value of: + *

+ * {@code new Short(Short.parseShort(s, radix))} + *
+ */ + // @ts-ignore + public static valueOf(s: string, radix: number): java.lang.Short; + /** + * Returns a {@code Short} object holding the + * value given by the specified {@code String}. The argument + * is interpreted as representing a signed decimal + * {@code short}, exactly as if the argument were given to + * the {@link #parseShort(java.lang.String)} method. The result is + * a {@code Short} object that represents the + * {@code short} value specified by the string. + *

In other words, this method returns a {@code Short} object + * equal to the value of: + *

+ * {@code new Short(Short.parseShort(s))} + *
+ */ + // @ts-ignore + public static valueOf(s: string): java.lang.Short; + /** + * Returns a {@code Short} instance representing the specified + * {@code short} value. + * If a new {@code Short} instance is not required, this method + * should generally be used in preference to the constructor + * {@link #Short(short)}, as this method is likely to yield + * significantly better space and time performance by caching + * frequently requested values. + * This method will always cache values in the range -128 to 127, + * inclusive, and may cache other values outside of this range. + */ + // @ts-ignore + public static valueOf(s: number): java.lang.Short; + /** + * Decodes a {@code String} into a {@code Short}. + * Accepts decimal, hexadecimal, and octal numbers given by + * the following grammar: + *
+ *
+ *
DecodableString: + *
Signopt DecimalNumeral + *
Signopt {@code 0x} HexDigits + *
Signopt {@code 0X} HexDigits + *
Signopt {@code #} HexDigits + *
Signopt {@code 0} OctalDigits + *
Sign: + *
{@code -} + *
{@code +} + *
+ *
+ * DecimalNumeral, HexDigits, and OctalDigits + * are as defined in section 3.10.1 of + * The Java™ Language Specification, + * except that underscores are not accepted between digits. + *

The sequence of characters following an optional + * sign and/or radix specifier ("{@code 0x}", "{@code 0X}", + * "{@code #}", or leading zero) is parsed as by the {@code + * Short.parseShort} method with the indicated radix (10, 16, or + * 8). This sequence of characters must represent a positive + * value or a {@link NumberFormatException} will be thrown. The + * result is negated if first character of the specified {@code + * String} is the minus sign. No whitespace characters are + * permitted in the {@code String}. + */ + // @ts-ignore + public static decode(nm: string): java.lang.Short; + /** + * Returns the value of this {@code Short} as a {@code byte} after + * a narrowing primitive conversion. + */ + // @ts-ignore + public byteValue(): number; + /** + * Returns the value of this {@code Short} as a + * {@code short}. + */ + // @ts-ignore + public shortValue(): number; + /** + * Returns the value of this {@code Short} as an {@code int} after + * a widening primitive conversion. + */ + // @ts-ignore + public intValue(): number; + /** + * Returns the value of this {@code Short} as a {@code long} after + * a widening primitive conversion. + */ + // @ts-ignore + public longValue(): number; + /** + * Returns the value of this {@code Short} as a {@code float} + * after a widening primitive conversion. + */ + // @ts-ignore + public floatValue(): number; + /** + * Returns the value of this {@code Short} as a {@code double} + * after a widening primitive conversion. + */ + // @ts-ignore + public doubleValue(): number; + /** + * Returns a {@code String} object representing this + * {@code Short}'s value. The value is converted to signed + * decimal representation and returned as a string, exactly as if + * the {@code short} value were given as an argument to the + * {@link java.lang.Short#toString(short)} method. + */ + // @ts-ignore + public toString(): string; + /** + * Returns a hash code for this {@code Short}; equal to the result + * of invoking {@code intValue()}. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns a hash code for a {@code short} value; compatible with + * {@code Short.hashCode()}. + */ + // @ts-ignore + public static hashCode(value: number): number; + /** + * Compares this object to the specified object. The result is + * {@code true} if and only if the argument is not + * {@code null} and is a {@code Short} object that + * contains the same {@code short} value as this object. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Compares two {@code Short} objects numerically. + */ + // @ts-ignore + public compareTo(anotherShort: java.lang.Short): number; + /** + * Compares two {@code short} values numerically. + * The value returned is identical to what would be returned by: + *

+             * Short.valueOf(x).compareTo(Short.valueOf(y))
+             * 
+ */ + // @ts-ignore + public static compare(x: number, y: number): number; + /** + * Returns the value obtained by reversing the order of the bytes in the + * two's complement representation of the specified {@code short} value. + */ + // @ts-ignore + public static reverseBytes(i: number): number; + /** + * Converts the argument to an {@code int} by an unsigned + * conversion. In an unsigned conversion to an {@code int}, the + * high-order 16 bits of the {@code int} are zero and the + * low-order 16 bits are equal to the bits of the {@code short} argument. + * Consequently, zero and positive {@code short} values are mapped + * to a numerically equal {@code int} value and negative {@code + * short} values are mapped to an {@code int} value equal to the + * input plus 216. + */ + // @ts-ignore + public static toUnsignedInt(x: number): number; + /** + * Converts the argument to a {@code long} by an unsigned + * conversion. In an unsigned conversion to a {@code long}, the + * high-order 48 bits of the {@code long} are zero and the + * low-order 16 bits are equal to the bits of the {@code short} argument. + * Consequently, zero and positive {@code short} values are mapped + * to a numerically equal {@code long} value and negative {@code + * short} values are mapped to a {@code long} value equal to the + * input plus 216. + */ + // @ts-ignore + public static toUnsignedLong(x: number): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.StackOverflowError.d.ts b/packages/types/dist/typings/jdk/java.lang.StackOverflowError.d.ts new file mode 100644 index 00000000..823e6d47 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.StackOverflowError.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class StackOverflowError extends java.lang.VirtualMachineError { + /** + * Constructs a StackOverflowError with no detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs a StackOverflowError with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.StackTraceElement.d.ts b/packages/types/dist/typings/jdk/java.lang.StackTraceElement.d.ts new file mode 100644 index 00000000..e29a8c4c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.StackTraceElement.d.ts @@ -0,0 +1,60 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class StackTraceElement extends java.lang.Object { + /** + * Create a StackTraceElement from the parameters. + */ + // @ts-ignore + constructor(cls: string, method: string, file: string, line: number) + /** + * Returns true if the specified object is another StackTraceElement instance + * representing the same execution point as this instance. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns the full name (i.e. including package) of the class where this + * stack trace element is executing. + */ + // @ts-ignore + public getClassName(): string; + /** + * If available, returns the name of the file containing the Java code + * source which was compiled into the class where this stack trace element + * is executing. + */ + // @ts-ignore + public getFileName(): string; + /** + * Returns the source file line number for the class where this stack trace + * element is executing. + */ + // @ts-ignore + public getLineNumber(): number; + /** + * Returns the name of the method where this stack trace element is + * executing. + */ + // @ts-ignore + public getMethodName(): string; + /** + * Returns a hash code value for this stack trace element. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns true if the method name returned by + * {@link #getMethodName()} is implemented as a native method. + */ + // @ts-ignore + public isNativeMethod(): boolean; + /** + * Returns a string representation of this stack trace element. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.StrictMath.d.ts b/packages/types/dist/typings/jdk/java.lang.StrictMath.d.ts new file mode 100644 index 00000000..14421d68 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.StrictMath.d.ts @@ -0,0 +1,1018 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class StrictMath extends java.lang.Object { + // @ts-ignore + public static E: number; + // @ts-ignore + public static PI: number; + /** + * Returns the trigonometric sine of an angle. Special cases: + *
  • If the argument is NaN or an infinity, then the + * result is NaN. + *
  • If the argument is zero, then the result is a zero with the + * same sign as the argument.
+ */ + // @ts-ignore + public static sin(a: number): number; + /** + * Returns the trigonometric cosine of an angle. Special cases: + *
  • If the argument is NaN or an infinity, then the + * result is NaN.
+ */ + // @ts-ignore + public static cos(a: number): number; + /** + * Returns the trigonometric tangent of an angle. Special cases: + *
  • If the argument is NaN or an infinity, then the result + * is NaN. + *
  • If the argument is zero, then the result is a zero with the + * same sign as the argument.
+ */ + // @ts-ignore + public static tan(a: number): number; + /** + * Returns the arc sine of a value; the returned angle is in the + * range -pi/2 through pi/2. Special cases: + *
  • If the argument is NaN or its absolute value is greater + * than 1, then the result is NaN. + *
  • If the argument is zero, then the result is a zero with the + * same sign as the argument.
+ */ + // @ts-ignore + public static asin(a: number): number; + /** + * Returns the arc cosine of a value; the returned angle is in the + * range 0.0 through pi. Special case: + *
  • If the argument is NaN or its absolute value is greater + * than 1, then the result is NaN.
+ */ + // @ts-ignore + public static acos(a: number): number; + /** + * Returns the arc tangent of a value; the returned angle is in the + * range -pi/2 through pi/2. Special cases: + *
  • If the argument is NaN, then the result is NaN. + *
  • If the argument is zero, then the result is a zero with the + * same sign as the argument.
+ */ + // @ts-ignore + public static atan(a: number): number; + /** + * Converts an angle measured in degrees to an approximately + * equivalent angle measured in radians. The conversion from + * degrees to radians is generally inexact. + */ + // @ts-ignore + public static toRadians(angdeg: number): number; + /** + * Converts an angle measured in radians to an approximately + * equivalent angle measured in degrees. The conversion from + * radians to degrees is generally inexact; users should + * not expect {@code cos(toRadians(90.0))} to exactly + * equal {@code 0.0}. + */ + // @ts-ignore + public static toDegrees(angrad: number): number; + /** + * Returns Euler's number e raised to the power of a + * {@code double} value. Special cases: + *
  • If the argument is NaN, the result is NaN. + *
  • If the argument is positive infinity, then the result is + * positive infinity. + *
  • If the argument is negative infinity, then the result is + * positive zero.
+ */ + // @ts-ignore + public static exp(a: number): number; + /** + * Returns the natural logarithm (base e) of a {@code double} + * value. Special cases: + *
  • If the argument is NaN or less than zero, then the result + * is NaN. + *
  • If the argument is positive infinity, then the result is + * positive infinity. + *
  • If the argument is positive zero or negative zero, then the + * result is negative infinity.
+ */ + // @ts-ignore + public static log(a: number): number; + /** + * Returns the base 10 logarithm of a {@code double} value. + * Special cases: + *
  • If the argument is NaN or less than zero, then the result + * is NaN. + *
  • If the argument is positive infinity, then the result is + * positive infinity. + *
  • If the argument is positive zero or negative zero, then the + * result is negative infinity. + *
  • If the argument is equal to 10n for + * integer n, then the result is n. + *
+ */ + // @ts-ignore + public static log10(a: number): number; + /** + * Returns the correctly rounded positive square root of a + * {@code double} value. + * Special cases: + *
  • If the argument is NaN or less than zero, then the result + * is NaN. + *
  • If the argument is positive infinity, then the result is positive + * infinity. + *
  • If the argument is positive zero or negative zero, then the + * result is the same as the argument.
+ * Otherwise, the result is the {@code double} value closest to + * the true mathematical square root of the argument value. + */ + // @ts-ignore + public static sqrt(a: number): number; + /** + * Returns the cube root of a {@code double} value. For + * positive finite {@code x}, {@code cbrt(-x) == + * -cbrt(x)}; that is, the cube root of a negative value is + * the negative of the cube root of that value's magnitude. + * Special cases: + *
    + *
  • If the argument is NaN, then the result is NaN. + *
  • If the argument is infinite, then the result is an infinity + * with the same sign as the argument. + *
  • If the argument is zero, then the result is a zero with the + * same sign as the argument. + *
+ */ + // @ts-ignore + public static cbrt(a: number): number; + /** + * Computes the remainder operation on two arguments as prescribed + * by the IEEE 754 standard. + * The remainder value is mathematically equal to + * f1 - f2 × n, + * where n is the mathematical integer closest to the exact + * mathematical value of the quotient {@code f1/f2}, and if two + * mathematical integers are equally close to {@code f1/f2}, + * then n is the integer that is even. If the remainder is + * zero, its sign is the same as the sign of the first argument. + * Special cases: + *
  • If either argument is NaN, or the first argument is infinite, + * or the second argument is positive zero or negative zero, then the + * result is NaN. + *
  • If the first argument is finite and the second argument is + * infinite, then the result is the same as the first argument.
+ */ + // @ts-ignore + public static IEEEremainder(f1: number, f2: number): number; + /** + * Returns the smallest (closest to negative infinity) + * {@code double} value that is greater than or equal to the + * argument and is equal to a mathematical integer. Special cases: + *
  • If the argument value is already equal to a + * mathematical integer, then the result is the same as the + * argument.
  • If the argument is NaN or an infinity or + * positive zero or negative zero, then the result is the same as + * the argument.
  • If the argument value is less than zero but + * greater than -1.0, then the result is negative zero.
Note + * that the value of {@code StrictMath.ceil(x)} is exactly the + * value of {@code -StrictMath.floor(-x)}. + */ + // @ts-ignore + public static ceil(a: number): number; + /** + * Returns the largest (closest to positive infinity) + * {@code double} value that is less than or equal to the + * argument and is equal to a mathematical integer. Special cases: + *
  • If the argument value is already equal to a + * mathematical integer, then the result is the same as the + * argument.
  • If the argument is NaN or an infinity or + * positive zero or negative zero, then the result is the same as + * the argument.
+ */ + // @ts-ignore + public static floor(a: number): number; + /** + * Returns the {@code double} value that is closest in value + * to the argument and is equal to a mathematical integer. If two + * {@code double} values that are mathematical integers are + * equally close to the value of the argument, the result is the + * integer value that is even. Special cases: + *
  • If the argument value is already equal to a mathematical + * integer, then the result is the same as the argument. + *
  • If the argument is NaN or an infinity or positive zero or negative + * zero, then the result is the same as the argument.
+ */ + // @ts-ignore + public static rint(a: number): number; + /** + * Returns the angle theta from the conversion of rectangular + * coordinates ({@code x}, {@code y}) to polar + * coordinates (r, theta). + * This method computes the phase theta by computing an arc tangent + * of {@code y/x} in the range of -pi to pi. Special + * cases: + *
  • If either argument is NaN, then the result is NaN. + *
  • If the first argument is positive zero and the second argument + * is positive, or the first argument is positive and finite and the + * second argument is positive infinity, then the result is positive + * zero. + *
  • If the first argument is negative zero and the second argument + * is positive, or the first argument is negative and finite and the + * second argument is positive infinity, then the result is negative zero. + *
  • If the first argument is positive zero and the second argument + * is negative, or the first argument is positive and finite and the + * second argument is negative infinity, then the result is the + * {@code double} value closest to pi. + *
  • If the first argument is negative zero and the second argument + * is negative, or the first argument is negative and finite and the + * second argument is negative infinity, then the result is the + * {@code double} value closest to -pi. + *
  • If the first argument is positive and the second argument is + * positive zero or negative zero, or the first argument is positive + * infinity and the second argument is finite, then the result is the + * {@code double} value closest to pi/2. + *
  • If the first argument is negative and the second argument is + * positive zero or negative zero, or the first argument is negative + * infinity and the second argument is finite, then the result is the + * {@code double} value closest to -pi/2. + *
  • If both arguments are positive infinity, then the result is the + * {@code double} value closest to pi/4. + *
  • If the first argument is positive infinity and the second argument + * is negative infinity, then the result is the {@code double} + * value closest to 3*pi/4. + *
  • If the first argument is negative infinity and the second argument + * is positive infinity, then the result is the {@code double} value + * closest to -pi/4. + *
  • If both arguments are negative infinity, then the result is the + * {@code double} value closest to -3*pi/4.
+ */ + // @ts-ignore + public static atan2(y: number, x: number): number; + /** + * Returns the value of the first argument raised to the power of the + * second argument. Special cases: + *
  • If the second argument is positive or negative zero, then the + * result is 1.0. + *
  • If the second argument is 1.0, then the result is the same as the + * first argument. + *
  • If the second argument is NaN, then the result is NaN. + *
  • If the first argument is NaN and the second argument is nonzero, + * then the result is NaN. + *
  • If + *
      + *
    • the absolute value of the first argument is greater than 1 + * and the second argument is positive infinity, or + *
    • the absolute value of the first argument is less than 1 and + * the second argument is negative infinity, + *
    + * then the result is positive infinity. + *
  • If + *
      + *
    • the absolute value of the first argument is greater than 1 and + * the second argument is negative infinity, or + *
    • the absolute value of the + * first argument is less than 1 and the second argument is positive + * infinity, + *
    + * then the result is positive zero. + *
  • If the absolute value of the first argument equals 1 and the + * second argument is infinite, then the result is NaN. + *
  • If + *
      + *
    • the first argument is positive zero and the second argument + * is greater than zero, or + *
    • the first argument is positive infinity and the second + * argument is less than zero, + *
    + * then the result is positive zero. + *
  • If + *
      + *
    • the first argument is positive zero and the second argument + * is less than zero, or + *
    • the first argument is positive infinity and the second + * argument is greater than zero, + *
    + * then the result is positive infinity. + *
  • If + *
      + *
    • the first argument is negative zero and the second argument + * is greater than zero but not a finite odd integer, or + *
    • the first argument is negative infinity and the second + * argument is less than zero but not a finite odd integer, + *
    + * then the result is positive zero. + *
  • If + *
      + *
    • the first argument is negative zero and the second argument + * is a positive finite odd integer, or + *
    • the first argument is negative infinity and the second + * argument is a negative finite odd integer, + *
    + * then the result is negative zero. + *
  • If + *
      + *
    • the first argument is negative zero and the second argument + * is less than zero but not a finite odd integer, or + *
    • the first argument is negative infinity and the second + * argument is greater than zero but not a finite odd integer, + *
    + * then the result is positive infinity. + *
  • If + *
      + *
    • the first argument is negative zero and the second argument + * is a negative finite odd integer, or + *
    • the first argument is negative infinity and the second + * argument is a positive finite odd integer, + *
    + * then the result is negative infinity. + *
  • If the first argument is finite and less than zero + *
      + *
    • if the second argument is a finite even integer, the + * result is equal to the result of raising the absolute value of + * the first argument to the power of the second argument + *
    • if the second argument is a finite odd integer, the result + * is equal to the negative of the result of raising the absolute + * value of the first argument to the power of the second + * argument + *
    • if the second argument is finite and not an integer, then + * the result is NaN. + *
    + *
  • If both arguments are integers, then the result is exactly equal + * to the mathematical result of raising the first argument to the power + * of the second argument if that result can in fact be represented + * exactly as a {@code double} value.
+ *

(In the foregoing descriptions, a floating-point value is + * considered to be an integer if and only if it is finite and a + * fixed point of the method {@link #ceil ceil} or, + * equivalently, a fixed point of the method {@link #floor + * floor}. A value is a fixed point of a one-argument + * method if and only if the result of applying the method to the + * value is equal to the value.) + */ + // @ts-ignore + public static pow(a: number, b: number): number; + /** + * Returns the closest {@code int} to the argument, with ties + * rounding to positive infinity. + *

Special cases: + *

  • If the argument is NaN, the result is 0. + *
  • If the argument is negative infinity or any value less than or + * equal to the value of {@code Integer.MIN_VALUE}, the result is + * equal to the value of {@code Integer.MIN_VALUE}. + *
  • If the argument is positive infinity or any value greater than or + * equal to the value of {@code Integer.MAX_VALUE}, the result is + * equal to the value of {@code Integer.MAX_VALUE}.
+ */ + // @ts-ignore + public static round(a: number): number; + /** + * Returns the closest {@code long} to the argument, with ties + * rounding to positive infinity. + *

Special cases: + *

  • If the argument is NaN, the result is 0. + *
  • If the argument is negative infinity or any value less than or + * equal to the value of {@code Long.MIN_VALUE}, the result is + * equal to the value of {@code Long.MIN_VALUE}. + *
  • If the argument is positive infinity or any value greater than or + * equal to the value of {@code Long.MAX_VALUE}, the result is + * equal to the value of {@code Long.MAX_VALUE}.
+ */ + // @ts-ignore + public static round(a: number): number; + /** + * Returns a {@code double} value with a positive sign, greater + * than or equal to {@code 0.0} and less than {@code 1.0}. + * Returned values are chosen pseudorandomly with (approximately) + * uniform distribution from that range. + *

When this method is first called, it creates a single new + * pseudorandom-number generator, exactly as if by the expression + *

{@code new java.util.Random()}
+ * This new pseudorandom-number generator is used thereafter for + * all calls to this method and is used nowhere else. + *

This method is properly synchronized to allow correct use by + * more than one thread. However, if many threads need to generate + * pseudorandom numbers at a great rate, it may reduce contention + * for each thread to have its own pseudorandom-number generator. + */ + // @ts-ignore + public static random(): number; + /** + * Returns the sum of its arguments, + * throwing an exception if the result overflows an {@code int}. + */ + // @ts-ignore + public static addExact(x: number, y: number): number; + /** + * Returns the sum of its arguments, + * throwing an exception if the result overflows a {@code long}. + */ + // @ts-ignore + public static addExact(x: number, y: number): number; + /** + * Returns the difference of the arguments, + * throwing an exception if the result overflows an {@code int}. + */ + // @ts-ignore + public static subtractExact(x: number, y: number): number; + /** + * Returns the difference of the arguments, + * throwing an exception if the result overflows a {@code long}. + */ + // @ts-ignore + public static subtractExact(x: number, y: number): number; + /** + * Returns the product of the arguments, + * throwing an exception if the result overflows an {@code int}. + */ + // @ts-ignore + public static multiplyExact(x: number, y: number): number; + /** + * Returns the product of the arguments, + * throwing an exception if the result overflows a {@code long}. + */ + // @ts-ignore + public static multiplyExact(x: number, y: number): number; + /** + * Returns the value of the {@code long} argument; + * throwing an exception if the value overflows an {@code int}. + */ + // @ts-ignore + public static toIntExact(value: number): number; + /** + * Returns the largest (closest to positive infinity) + * {@code int} value that is less than or equal to the algebraic quotient. + * There is one special case, if the dividend is the + * {@linkplain Integer#MIN_VALUE Integer.MIN_VALUE} and the divisor is {@code -1}, + * then integer overflow occurs and + * the result is equal to the {@code Integer.MIN_VALUE}. + *

+ * See {@link Math#floorDiv(int, int) Math.floorDiv} for examples and + * a comparison to the integer division {@code /} operator. + */ + // @ts-ignore + public static floorDiv(x: number, y: number): number; + /** + * Returns the largest (closest to positive infinity) + * {@code long} value that is less than or equal to the algebraic quotient. + * There is one special case, if the dividend is the + * {@linkplain Long#MIN_VALUE Long.MIN_VALUE} and the divisor is {@code -1}, + * then integer overflow occurs and + * the result is equal to the {@code Long.MIN_VALUE}. + *

+ * See {@link Math#floorDiv(int, int) Math.floorDiv} for examples and + * a comparison to the integer division {@code /} operator. + */ + // @ts-ignore + public static floorDiv(x: number, y: number): number; + /** + * Returns the floor modulus of the {@code int} arguments. + *

+ * The floor modulus is {@code x - (floorDiv(x, y) * y)}, + * has the same sign as the divisor {@code y}, and + * is in the range of {@code -abs(y) < r < +abs(y)}. + *

+ * The relationship between {@code floorDiv} and {@code floorMod} is such that: + *

    + *
  • {@code floorDiv(x, y) * y + floorMod(x, y) == x} + *
+ *

+ * See {@link Math#floorMod(int, int) Math.floorMod} for examples and + * a comparison to the {@code %} operator. + */ + // @ts-ignore + public static floorMod(x: number, y: number): number; + /** + * Returns the floor modulus of the {@code long} arguments. + *

+ * The floor modulus is {@code x - (floorDiv(x, y) * y)}, + * has the same sign as the divisor {@code y}, and + * is in the range of {@code -abs(y) < r < +abs(y)}. + *

+ * The relationship between {@code floorDiv} and {@code floorMod} is such that: + *

    + *
  • {@code floorDiv(x, y) * y + floorMod(x, y) == x} + *
+ *

+ * See {@link Math#floorMod(int, int) Math.floorMod} for examples and + * a comparison to the {@code %} operator. + */ + // @ts-ignore + public static floorMod(x: number, y: number): number; + /** + * Returns the absolute value of an {@code int} value. + * If the argument is not negative, the argument is returned. + * If the argument is negative, the negation of the argument is returned. + *

Note that if the argument is equal to the value of + * {@link Integer#MIN_VALUE}, the most negative representable + * {@code int} value, the result is that same value, which is + * negative. + */ + // @ts-ignore + public static abs(a: number): number; + /** + * Returns the absolute value of a {@code long} value. + * If the argument is not negative, the argument is returned. + * If the argument is negative, the negation of the argument is returned. + *

Note that if the argument is equal to the value of + * {@link Long#MIN_VALUE}, the most negative representable + * {@code long} value, the result is that same value, which + * is negative. + */ + // @ts-ignore + public static abs(a: number): number; + /** + * Returns the absolute value of a {@code float} value. + * If the argument is not negative, the argument is returned. + * If the argument is negative, the negation of the argument is returned. + * Special cases: + *

  • If the argument is positive zero or negative zero, the + * result is positive zero. + *
  • If the argument is infinite, the result is positive infinity. + *
  • If the argument is NaN, the result is NaN.
+ * In other words, the result is the same as the value of the expression: + *

{@code Float.intBitsToFloat(0x7fffffff & Float.floatToIntBits(a))} + */ + // @ts-ignore + public static abs(a: number): number; + /** + * Returns the absolute value of a {@code double} value. + * If the argument is not negative, the argument is returned. + * If the argument is negative, the negation of the argument is returned. + * Special cases: + *

  • If the argument is positive zero or negative zero, the result + * is positive zero. + *
  • If the argument is infinite, the result is positive infinity. + *
  • If the argument is NaN, the result is NaN.
+ * In other words, the result is the same as the value of the expression: + *

{@code Double.longBitsToDouble((Double.doubleToLongBits(a)<<1)>>>1)} + */ + // @ts-ignore + public static abs(a: number): number; + /** + * Returns the greater of two {@code int} values. That is, the + * result is the argument closer to the value of + * {@link Integer#MAX_VALUE}. If the arguments have the same value, + * the result is that same value. + */ + // @ts-ignore + public static max(a: number, b: number): number; + /** + * Returns the greater of two {@code long} values. That is, the + * result is the argument closer to the value of + * {@link Long#MAX_VALUE}. If the arguments have the same value, + * the result is that same value. + */ + // @ts-ignore + public static max(a: number, b: number): number; + /** + * Returns the greater of two {@code float} values. That is, + * the result is the argument closer to positive infinity. If the + * arguments have the same value, the result is that same + * value. If either value is NaN, then the result is NaN. Unlike + * the numerical comparison operators, this method considers + * negative zero to be strictly smaller than positive zero. If one + * argument is positive zero and the other negative zero, the + * result is positive zero. + */ + // @ts-ignore + public static max(a: number, b: number): number; + /** + * Returns the greater of two {@code double} values. That + * is, the result is the argument closer to positive infinity. If + * the arguments have the same value, the result is that same + * value. If either value is NaN, then the result is NaN. Unlike + * the numerical comparison operators, this method considers + * negative zero to be strictly smaller than positive zero. If one + * argument is positive zero and the other negative zero, the + * result is positive zero. + */ + // @ts-ignore + public static max(a: number, b: number): number; + /** + * Returns the smaller of two {@code int} values. That is, + * the result the argument closer to the value of + * {@link Integer#MIN_VALUE}. If the arguments have the same + * value, the result is that same value. + */ + // @ts-ignore + public static min(a: number, b: number): number; + /** + * Returns the smaller of two {@code long} values. That is, + * the result is the argument closer to the value of + * {@link Long#MIN_VALUE}. If the arguments have the same + * value, the result is that same value. + */ + // @ts-ignore + public static min(a: number, b: number): number; + /** + * Returns the smaller of two {@code float} values. That is, + * the result is the value closer to negative infinity. If the + * arguments have the same value, the result is that same + * value. If either value is NaN, then the result is NaN. Unlike + * the numerical comparison operators, this method considers + * negative zero to be strictly smaller than positive zero. If + * one argument is positive zero and the other is negative zero, + * the result is negative zero. + */ + // @ts-ignore + public static min(a: number, b: number): number; + /** + * Returns the smaller of two {@code double} values. That + * is, the result is the value closer to negative infinity. If the + * arguments have the same value, the result is that same + * value. If either value is NaN, then the result is NaN. Unlike + * the numerical comparison operators, this method considers + * negative zero to be strictly smaller than positive zero. If one + * argument is positive zero and the other is negative zero, the + * result is negative zero. + */ + // @ts-ignore + public static min(a: number, b: number): number; + /** + * Returns the size of an ulp of the argument. An ulp, unit in + * the last place, of a {@code double} value is the positive + * distance between this floating-point value and the {@code + * double} value next larger in magnitude. Note that for non-NaN + * x, ulp(-x) == ulp(x). + *

Special Cases: + *

    + *
  • If the argument is NaN, then the result is NaN. + *
  • If the argument is positive or negative infinity, then the + * result is positive infinity. + *
  • If the argument is positive or negative zero, then the result is + * {@code Double.MIN_VALUE}. + *
  • If the argument is ±{@code Double.MAX_VALUE}, then + * the result is equal to 2971. + *
+ */ + // @ts-ignore + public static ulp(d: number): number; + /** + * Returns the size of an ulp of the argument. An ulp, unit in + * the last place, of a {@code float} value is the positive + * distance between this floating-point value and the {@code + * float} value next larger in magnitude. Note that for non-NaN + * x, ulp(-x) == ulp(x). + *

Special Cases: + *

    + *
  • If the argument is NaN, then the result is NaN. + *
  • If the argument is positive or negative infinity, then the + * result is positive infinity. + *
  • If the argument is positive or negative zero, then the result is + * {@code Float.MIN_VALUE}. + *
  • If the argument is ±{@code Float.MAX_VALUE}, then + * the result is equal to 2104. + *
+ */ + // @ts-ignore + public static ulp(f: number): number; + /** + * Returns the signum function of the argument; zero if the argument + * is zero, 1.0 if the argument is greater than zero, -1.0 if the + * argument is less than zero. + *

Special Cases: + *

    + *
  • If the argument is NaN, then the result is NaN. + *
  • If the argument is positive zero or negative zero, then the + * result is the same as the argument. + *
+ */ + // @ts-ignore + public static signum(d: number): number; + /** + * Returns the signum function of the argument; zero if the argument + * is zero, 1.0f if the argument is greater than zero, -1.0f if the + * argument is less than zero. + *

Special Cases: + *

    + *
  • If the argument is NaN, then the result is NaN. + *
  • If the argument is positive zero or negative zero, then the + * result is the same as the argument. + *
+ */ + // @ts-ignore + public static signum(f: number): number; + /** + * Returns the hyperbolic sine of a {@code double} value. + * The hyperbolic sine of x is defined to be + * (ex - e-x)/2 + * where e is {@linkplain Math#E Euler's number}. + *

Special cases: + *

    + *
  • If the argument is NaN, then the result is NaN. + *
  • If the argument is infinite, then the result is an infinity + * with the same sign as the argument. + *
  • If the argument is zero, then the result is a zero with the + * same sign as the argument. + *
+ */ + // @ts-ignore + public static sinh(x: number): number; + /** + * Returns the hyperbolic cosine of a {@code double} value. + * The hyperbolic cosine of x is defined to be + * (ex + e-x)/2 + * where e is {@linkplain Math#E Euler's number}. + *

Special cases: + *

    + *
  • If the argument is NaN, then the result is NaN. + *
  • If the argument is infinite, then the result is positive + * infinity. + *
  • If the argument is zero, then the result is {@code 1.0}. + *
+ */ + // @ts-ignore + public static cosh(x: number): number; + /** + * Returns the hyperbolic tangent of a {@code double} value. + * The hyperbolic tangent of x is defined to be + * (ex - e-x)/(ex + e-x), + * in other words, {@linkplain Math#sinh + * sinh(x)}/{@linkplain Math#cosh cosh(x)}. Note + * that the absolute value of the exact tanh is always less than + * 1. + *

Special cases: + *

    + *
  • If the argument is NaN, then the result is NaN. + *
  • If the argument is zero, then the result is a zero with the + * same sign as the argument. + *
  • If the argument is positive infinity, then the result is + * {@code +1.0}. + *
  • If the argument is negative infinity, then the result is + * {@code -1.0}. + *
+ */ + // @ts-ignore + public static tanh(x: number): number; + /** + * Returns sqrt(x2 +y2) + * without intermediate overflow or underflow. + *

Special cases: + *

    + *
  • If either argument is infinite, then the result + * is positive infinity. + *
  • If either argument is NaN and neither argument is infinite, + * then the result is NaN. + *
+ */ + // @ts-ignore + public static hypot(x: number, y: number): number; + /** + * Returns ex -1. Note that for values of + * x near 0, the exact sum of + * {@code expm1(x)} + 1 is much closer to the true + * result of ex than {@code exp(x)}. + *

Special cases: + *

    + *
  • If the argument is NaN, the result is NaN. + *
  • If the argument is positive infinity, then the result is + * positive infinity. + *
  • If the argument is negative infinity, then the result is + * -1.0. + *
  • If the argument is zero, then the result is a zero with the + * same sign as the argument. + *
+ */ + // @ts-ignore + public static expm1(x: number): number; + /** + * Returns the natural logarithm of the sum of the argument and 1. + * Note that for small values {@code x}, the result of + * {@code log1p(x)} is much closer to the true result of ln(1 + * + {@code x}) than the floating-point evaluation of + * {@code log(1.0+x)}. + *

Special cases: + *

    + *
  • If the argument is NaN or less than -1, then the result is + * NaN. + *
  • If the argument is positive infinity, then the result is + * positive infinity. + *
  • If the argument is negative one, then the result is + * negative infinity. + *
  • If the argument is zero, then the result is a zero with the + * same sign as the argument. + *
+ */ + // @ts-ignore + public static log1p(x: number): number; + /** + * Returns the first floating-point argument with the sign of the + * second floating-point argument. For this method, a NaN + * {@code sign} argument is always treated as if it were + * positive. + */ + // @ts-ignore + public static copySign(magnitude: number, sign: number): number; + /** + * Returns the first floating-point argument with the sign of the + * second floating-point argument. For this method, a NaN + * {@code sign} argument is always treated as if it were + * positive. + */ + // @ts-ignore + public static copySign(magnitude: number, sign: number): number; + /** + * Returns the unbiased exponent used in the representation of a + * {@code float}. Special cases: + *
    + *
  • If the argument is NaN or infinite, then the result is + * {@link Float#MAX_EXPONENT} + 1. + *
  • If the argument is zero or subnormal, then the result is + * {@link Float#MIN_EXPONENT} -1. + *
+ */ + // @ts-ignore + public static getExponent(f: number): number; + /** + * Returns the unbiased exponent used in the representation of a + * {@code double}. Special cases: + *
    + *
  • If the argument is NaN or infinite, then the result is + * {@link Double#MAX_EXPONENT} + 1. + *
  • If the argument is zero or subnormal, then the result is + * {@link Double#MIN_EXPONENT} -1. + *
+ */ + // @ts-ignore + public static getExponent(d: number): number; + /** + * Returns the floating-point number adjacent to the first + * argument in the direction of the second argument. If both + * arguments compare as equal the second argument is returned. + *

Special cases: + *

    + *
  • If either argument is a NaN, then NaN is returned. + *
  • If both arguments are signed zeros, {@code direction} + * is returned unchanged (as implied by the requirement of + * returning the second argument if the arguments compare as + * equal). + *
  • If {@code start} is + * ±{@link Double#MIN_VALUE} and {@code direction} + * has a value such that the result should have a smaller + * magnitude, then a zero with the same sign as {@code start} + * is returned. + *
  • If {@code start} is infinite and + * {@code direction} has a value such that the result should + * have a smaller magnitude, {@link Double#MAX_VALUE} with the + * same sign as {@code start} is returned. + *
  • If {@code start} is equal to ± + * {@link Double#MAX_VALUE} and {@code direction} has a + * value such that the result should have a larger magnitude, an + * infinity with same sign as {@code start} is returned. + *
+ */ + // @ts-ignore + public static nextAfter(start: number, direction: number): number; + /** + * Returns the floating-point number adjacent to the first + * argument in the direction of the second argument. If both + * arguments compare as equal a value equivalent to the second argument + * is returned. + *

Special cases: + *

    + *
  • If either argument is a NaN, then NaN is returned. + *
  • If both arguments are signed zeros, a value equivalent + * to {@code direction} is returned. + *
  • If {@code start} is + * ±{@link Float#MIN_VALUE} and {@code direction} + * has a value such that the result should have a smaller + * magnitude, then a zero with the same sign as {@code start} + * is returned. + *
  • If {@code start} is infinite and + * {@code direction} has a value such that the result should + * have a smaller magnitude, {@link Float#MAX_VALUE} with the + * same sign as {@code start} is returned. + *
  • If {@code start} is equal to ± + * {@link Float#MAX_VALUE} and {@code direction} has a + * value such that the result should have a larger magnitude, an + * infinity with same sign as {@code start} is returned. + *
+ */ + // @ts-ignore + public static nextAfter(start: number, direction: number): number; + /** + * Returns the floating-point value adjacent to {@code d} in + * the direction of positive infinity. This method is + * semantically equivalent to {@code nextAfter(d, + * Double.POSITIVE_INFINITY)}; however, a {@code nextUp} + * implementation may run faster than its equivalent + * {@code nextAfter} call. + *

Special Cases: + *

    + *
  • If the argument is NaN, the result is NaN. + *
  • If the argument is positive infinity, the result is + * positive infinity. + *
  • If the argument is zero, the result is + * {@link Double#MIN_VALUE} + *
+ */ + // @ts-ignore + public static nextUp(d: number): number; + /** + * Returns the floating-point value adjacent to {@code f} in + * the direction of positive infinity. This method is + * semantically equivalent to {@code nextAfter(f, + * Float.POSITIVE_INFINITY)}; however, a {@code nextUp} + * implementation may run faster than its equivalent + * {@code nextAfter} call. + *

Special Cases: + *

    + *
  • If the argument is NaN, the result is NaN. + *
  • If the argument is positive infinity, the result is + * positive infinity. + *
  • If the argument is zero, the result is + * {@link Float#MIN_VALUE} + *
+ */ + // @ts-ignore + public static nextUp(f: number): number; + /** + * Returns the floating-point value adjacent to {@code d} in + * the direction of negative infinity. This method is + * semantically equivalent to {@code nextAfter(d, + * Double.NEGATIVE_INFINITY)}; however, a + * {@code nextDown} implementation may run faster than its + * equivalent {@code nextAfter} call. + *

Special Cases: + *

    + *
  • If the argument is NaN, the result is NaN. + *
  • If the argument is negative infinity, the result is + * negative infinity. + *
  • If the argument is zero, the result is + * {@code -Double.MIN_VALUE} + *
+ */ + // @ts-ignore + public static nextDown(d: number): number; + /** + * Returns the floating-point value adjacent to {@code f} in + * the direction of negative infinity. This method is + * semantically equivalent to {@code nextAfter(f, + * Float.NEGATIVE_INFINITY)}; however, a + * {@code nextDown} implementation may run faster than its + * equivalent {@code nextAfter} call. + *

Special Cases: + *

    + *
  • If the argument is NaN, the result is NaN. + *
  • If the argument is negative infinity, the result is + * negative infinity. + *
  • If the argument is zero, the result is + * {@code -Float.MIN_VALUE} + *
+ */ + // @ts-ignore + public static nextDown(f: number): number; + /** + * Returns {@code d} × + * 2{@code scaleFactor} rounded as if performed + * by a single correctly rounded floating-point multiply to a + * member of the double value set. See the Java + * Language Specification for a discussion of floating-point + * value sets. If the exponent of the result is between {@link + * Double#MIN_EXPONENT} and {@link Double#MAX_EXPONENT}, the + * answer is calculated exactly. If the exponent of the result + * would be larger than {@code Double.MAX_EXPONENT}, an + * infinity is returned. Note that if the result is subnormal, + * precision may be lost; that is, when {@code scalb(x, n)} + * is subnormal, {@code scalb(scalb(x, n), -n)} may not equal + * x. When the result is non-NaN, the result has the same + * sign as {@code d}. + *

Special cases: + *

    + *
  • If the first argument is NaN, NaN is returned. + *
  • If the first argument is infinite, then an infinity of the + * same sign is returned. + *
  • If the first argument is zero, then a zero of the same + * sign is returned. + *
+ */ + // @ts-ignore + public static scalb(d: number, scaleFactor: number): number; + /** + * Returns {@code f} × + * 2{@code scaleFactor} rounded as if performed + * by a single correctly rounded floating-point multiply to a + * member of the float value set. See the Java + * Language Specification for a discussion of floating-point + * value sets. If the exponent of the result is between {@link + * Float#MIN_EXPONENT} and {@link Float#MAX_EXPONENT}, the + * answer is calculated exactly. If the exponent of the result + * would be larger than {@code Float.MAX_EXPONENT}, an + * infinity is returned. Note that if the result is subnormal, + * precision may be lost; that is, when {@code scalb(x, n)} + * is subnormal, {@code scalb(scalb(x, n), -n)} may not equal + * x. When the result is non-NaN, the result has the same + * sign as {@code f}. + *

Special cases: + *

    + *
  • If the first argument is NaN, NaN is returned. + *
  • If the first argument is infinite, then an infinity of the + * same sign is returned. + *
  • If the first argument is zero, then a zero of the same + * sign is returned. + *
+ */ + // @ts-ignore + public static scalb(f: number, scaleFactor: number): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.String.d.ts b/packages/types/dist/typings/jdk/java.lang.String.d.ts new file mode 100644 index 00000000..370b09d1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.String.d.ts @@ -0,0 +1,447 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class String extends java.lang.Object { + /** + * Answers an empty string. + */ + // @ts-ignore + constructor() + /** + * Converts the byte array to a String using the default encoding as specified by the file.encoding system property. If the system property is not + * defined, the default encoding is ISO8859_1 (ISO-Latin-1). If 8859-1 is not available, an ASCII encoding is used. + */ + // @ts-ignore + constructor(data: number) + /** + * Converts the byte array to a String, setting the high byte of every character to the specified value. + */ + // @ts-ignore + constructor(data: number, high: number) + /** + * Converts the byte array to a String using the default encoding as specified by the file.encoding system property. If the system property is not + * defined, the default encoding is ISO8859_1 (ISO-Latin-1). If 8859-1 is not available, an ASCII encoding is used. + */ + // @ts-ignore + constructor(data: number, start: number, length: number) + /** + * Converts the byte array to a String, setting the high byte of every character to the specified value. + */ + // @ts-ignore + constructor(data: number, high: number, start: number, length: number) + /** + * Converts the byte array to a String using the specified encoding. + */ + // @ts-ignore + constructor(data: number, start: number, length: number, encoding: string) + /** + * Converts the byte array to a String using the specified encoding. + */ + // @ts-ignore + constructor(data: number, encoding: string) + /** + * Initializes this String to contain the characters in the specified character array. Modifying the character array after creating the String has + * no effect on the String. + */ + // @ts-ignore + constructor(data: string) + /** + * Initializes this String to contain the specified characters in the character array. Modifying the character array after creating the String has + * no effect on the String. + */ + // @ts-ignore + constructor(data: string, start: number, length: number) + /** + * Creates a string that is a copy of another string + */ + // @ts-ignore + constructor(string: string) + /** + * Creates a string from the contents of a StringBuffer. + */ + // @ts-ignore + constructor(buffer: java.lang.StringBuffer) + // @ts-ignore + constructor(data: number, start: number, length: number) + /** + * Creates a string from the contents of a StringBuilder. + */ + // @ts-ignore + constructor(builder: java.lang.StringBuilder) + /** + * Converts the byte array to a String using the specified Charset. + */ + // @ts-ignore + constructor(data: number, charset: java.nio.charset.Charset) + /** + * Converts the byte array to a String using the specified Charset. + */ + // @ts-ignore + constructor(data: number, start: number, length: number, charset: java.nio.charset.Charset) + // @ts-ignore + public static CASE_INSENSITIVE_ORDER: java.util.Comparator; + /** + * Answers the character at the specified offset in this String. + */ + // @ts-ignore + public charAt(index: number): string; + /** + * Compares the specified String to this String using the Unicode values of the characters. Answer 0 if the strings contain the same characters in + * the same order. Answer a negative integer if the first non-equal character in this String has a Unicode value which is less than the Unicode + * value of the character at the same position in the specified string, or if this String is a prefix of the specified string. Answer a positive + * integer if the first non-equal character in this String has a Unicode value which is greater than the Unicode value of the character at the same + * position in the specified string, or if the specified String is a prefix of the this String. + */ + // @ts-ignore + public compareTo(string: string): number; + /** + * Compare the receiver to the specified String to determine the relative ordering when the case of the characters is ignored. + */ + // @ts-ignore + public compareToIgnoreCase(string: string): number; + /** + * Concatenates this String and the specified string. + */ + // @ts-ignore + public concat(string: string): string; + /** + * Creates a new String containing the characters in the specified character array. Modifying the character array after creating the String has no + * effect on the String. + */ + // @ts-ignore + public static copyValueOf(data: string): string; + /** + * Creates a new String containing the specified characters in the character array. Modifying the character array after creating the String has no + * effect on the String. + */ + // @ts-ignore + public static copyValueOf(data: string, start: number, length: number): string; + /** + * Compares the specified string to this String to determine if the specified string is a suffix. + */ + // @ts-ignore + public endsWith(suffix: string): boolean; + /** + * Compares the specified object to this String and answer if they are equal. The object must be an instance of String with the same characters in + * the same order. + */ + // @ts-ignore + public equals(object: java.lang.Object): boolean; + /** + * Compares the specified String to this String ignoring the case of the characters and answer if they are equal. + */ + // @ts-ignore + public equalsIgnoreCase(string: string): boolean; + /** + * Converts this String to a byte encoding using the default encoding as specified by the file.encoding system property. If the system property is + * not defined, the default encoding is ISO8859_1 (ISO-Latin-1). If 8859-1 is not available, an ASCII encoding is used. + */ + // @ts-ignore + public getBytes(): number[]; + /** + * Converts this String to a byte array, ignoring the high order bits of each character. + */ + // @ts-ignore + public getBytes(start: number, end: number, data: number, index: number): void; + /** + * Converts this String to a byte encoding using the specified encoding. + */ + // @ts-ignore + public getBytes(encoding: string): number[]; + /** + * Copies the specified characters in this String to the character array starting at the specified offset in the character array. + */ + // @ts-ignore + public getChars(start: number, end: number, data: string, index: number): void; + /** + * Answers an integer hash code for the receiver. Objects which are equal answer the same value for this method. + */ + // @ts-ignore + public hashCode(): number; + /** + * Searches in this String for the first index of the specified character. The search for the character starts at the beginning and moves towards + * the end of this String. + */ + // @ts-ignore + public indexOf(c: number): number; + /** + * Searches in this String for the index of the specified character. The search for the character starts at the specified offset and moves towards + * the end of this String. + */ + // @ts-ignore + public indexOf(c: number, start: number): number; + /** + * Searches in this String for the first index of the specified string. The search for the string starts at the beginning and moves towards the end + * of this String. + */ + // @ts-ignore + public indexOf(string: string): number; + /** + * Searches in this String for the index of the specified string. The search for the string starts at the specified offset and moves towards the + * end of this String. + */ + // @ts-ignore + public indexOf(subString: string, start: number): number; + /** + * Searches an internal table of strings for a string equal to this String. If the string is not in the table, it is added. Answers the string + * contained in the table which is equal to this String. The same string object is always answered for strings which are equal. + */ + // @ts-ignore + public intern(): string; + /** + * Searches in this String for the last index of the specified character. The search for the character starts at the end and moves towards the + * beginning of this String. + */ + // @ts-ignore + public lastIndexOf(c: number): number; + /** + * Searches in this String for the index of the specified character. The search for the character starts at the specified offset and moves towards + * the beginning of this String. + */ + // @ts-ignore + public lastIndexOf(c: number, start: number): number; + /** + * Searches in this String for the last index of the specified string. The search for the string starts at the end and moves towards the beginning + * of this String. + */ + // @ts-ignore + public lastIndexOf(string: string): number; + /** + * Searches in this String for the index of the specified string. The search for the string starts at the specified offset and moves towards the + * beginning of this String. + */ + // @ts-ignore + public lastIndexOf(subString: string, start: number): number; + /** + * Answers the size of this String. + */ + // @ts-ignore + public length(): number; + /** + * Compares the specified string to this String and compares the specified range of characters to determine if they are the same. + */ + // @ts-ignore + public regionMatches(thisStart: number, string: string, start: number, length: number): boolean; + /** + * Compares the specified string to this String and compares the specified range of characters to determine if they are the same. When ignoreCase + * is true, the case of the characters is ignored during the comparison. + */ + // @ts-ignore + public regionMatches(ignoreCase: boolean, thisStart: number, string: string, start: number, length: number): boolean; + /** + * Replaces occurrences of the specified character with another character. + */ + // @ts-ignore + public replace(oldChar: string, newChar: string): string; + /** + * Compares the specified string to this String to determine if the specified string is a prefix. + */ + // @ts-ignore + public startsWith(prefix: string): boolean; + /** + * Compares the specified string to this String, starting at the specified offset, to determine if the specified string is a prefix. + */ + // @ts-ignore + public startsWith(prefix: string, start: number): boolean; + /** + * Copies a range of characters into a new String. + */ + // @ts-ignore + public substring(start: number): string; + /** + * Copies a range of characters. + */ + // @ts-ignore + public substring(start: number, end: number): string; + /** + * Copies the characters in this String to a character array. + */ + // @ts-ignore + public toCharArray(): string[]; + /** + * Converts the characters in this String to lowercase, using the default Locale. To convert to lower case independent of any locale, use + * toLowerCase(Locale.ROOT). + */ + // @ts-ignore + public toLowerCase(): string; + /** + * Converts the characters in this String to lowercase, using the specified Locale. + */ + // @ts-ignore + public toLowerCase(locale: java.util.Locale): string; + /** + * Answers a string containing a concise, human-readable description of the receiver. + */ + // @ts-ignore + public toString(): string; + /** + * Converts the characters in this String to uppercase, using the default Locale. To convert to upper case independent of any locale, use + * toUpperCase(Locale.ROOT). + */ + // @ts-ignore + public toUpperCase(): string; + /** + * Converts the characters in this String to uppercase, using the specified Locale. + */ + // @ts-ignore + public toUpperCase(locale: java.util.Locale): string; + /** + * Removes white space characters from the beginning and end of the string. + */ + // @ts-ignore + public trim(): string; + /** + * Returns a String containing the characters in the specified character array. Modifying the character array after creating the String has no + * effect on the String. + */ + // @ts-ignore + public static valueOf(data: string): string; + /** + * Returns a String containing the specified characters in the character array. Modifying the character array after creating the String has no + * effect on the String. + */ + // @ts-ignore + public static valueOf(data: string, start: number, length: number): string; + /** + * Converts the specified character to its string representation. + */ + // @ts-ignore + public static valueOf(value: string): string; + /** + * Converts the specified double to its string representation. + */ + // @ts-ignore + public static valueOf(value: number): string; + /** + * Converts the specified float to its string representation. + */ + // @ts-ignore + public static valueOf(value: number): string; + /** + * Converts the specified integer to its string representation. + */ + // @ts-ignore + public static valueOf(value: number): string; + /** + * Converts the specified long to its string representation. + */ + // @ts-ignore + public static valueOf(value: number): string; + /** + * Converts the specified object to its string representation. If the object is null answer the string {@code "null"}, otherwise use + * {@code toString()} to get the string representation. + */ + // @ts-ignore + public static valueOf(value: java.lang.Object): string; + /** + * Converts the specified boolean to its string representation. When the boolean is true answer {@code "true"}, otherwise answer + * {@code "false"}. + */ + // @ts-ignore + public static valueOf(value: boolean): string; + /** + * Answers whether the characters in the StringBuffer buffer are the same as those in this String. + */ + // @ts-ignore + public contentEquals(buffer: java.lang.StringBuffer): boolean; + /** + * Determines whether a this String matches a given regular expression. + */ + // @ts-ignore + public matches(expr: string): boolean; + /** + * Replace any substrings within this String that match the supplied regular expression expr, with the String substitute. + */ + // @ts-ignore + public replaceAll(regex: string, substitute: string): string; + /** + * Replace any substrings within this String that match the supplied regular expression expr, with the String substitute. + */ + // @ts-ignore + public replaceFirst(expr: string, substitute: string): string; + /** + * Splits this string around matches of the given regular expression. Calling this method is same as calling split(regex,0). Therefore, empty + * string(s) at the end of the returned array will be discarded. + */ + // @ts-ignore + public split(regex: string): java.lang.String[]; + /** + * Splits this String using the given regular expression. + * max controls the number of times the regex is applied to this string. + * If max is positive, then regex can be applied to this String max-1 times. + * The returned array size can not be bigger than max, and the last element of + * the returned array contains all input after the last match of the regex. + * If max is negative or zero, then regex can be applied to this string as many times as + * possible and there is no size limit in the returned array. + * If max is 0, all the empty string(s) at the end of the returned array will be discarded. + */ + // @ts-ignore + public split(regex: string, max: number): java.lang.String[]; + /** + * Has the same result as the substring function, but is present so that String may implement the CharSequence interface. + */ + // @ts-ignore + public subSequence(start: number, end: number): java.lang.CharSequence; + /** + * Returns the Unicode character at the given point. + */ + // @ts-ignore + public codePointAt(index: number): number; + /** + * Returns the Unicode character before the given point. + */ + // @ts-ignore + public codePointBefore(index: number): number; + /** + * Returns the total Unicode values in the specified range. + */ + // @ts-ignore + public codePointCount(start: number, end: number): number; + /** + * Returns the index of the code point that was offset by codePointCount. + */ + // @ts-ignore + public offsetByCodePoints(start: number, codePointCount: number): number; + /** + * Compares the content of the character sequence to this String + */ + // @ts-ignore + public contentEquals(sequence: java.lang.CharSequence): boolean; + // @ts-ignore + public contains(sequence: java.lang.CharSequence): boolean; + // @ts-ignore + public replace(sequence1: java.lang.CharSequence, sequence2: java.lang.CharSequence): string; + /** + * Format the receiver using the specified format and args. + */ + // @ts-ignore + public static format(format: string, args: java.lang.Object): string; + /** + * Format the receiver using the specified local, format and args. + */ + // @ts-ignore + public static format(locale: java.util.Locale, format: string, args: java.lang.Object): string; + /** + * Answers if this String has no characters, a length of zero. + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * Converts this String to a byte encoding using the specified Charset. + */ + // @ts-ignore + public getBytes(charset: java.nio.charset.Charset): number[]; + /** + * Creates a new String by putting each element together joined by the delimiter. If an element is null, then "null" is used as string to join. + */ + // @ts-ignore + public static join(delimiter: java.lang.CharSequence, elements: java.lang.CharSequence): string; + /** + * Creates a new String by putting each element together joined by the delimiter. If an element is null, then "null" is used as string to join. + */ + // @ts-ignore + public static join(delimiter: java.lang.CharSequence, elements: java.lang.Iterable): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.StringBuffer.d.ts b/packages/types/dist/typings/jdk/java.lang.StringBuffer.d.ts new file mode 100644 index 00000000..eeb14e86 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.StringBuffer.d.ts @@ -0,0 +1,309 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class StringBuffer extends java.lang.AbstractStringBuilder { + /** + * Constructs a new StringBuffer using the default capacity. + */ + // @ts-ignore + constructor() + /** + * Constructs a new StringBuffer using the specified capacity. + */ + // @ts-ignore + constructor(capacity: number) + /** + * Constructs a new StringBuffer containing the characters in + * the specified string and the default capacity. + */ + // @ts-ignore + constructor(string: string) + /** + * Constructs a new StringBuffer containing the characters in + * the specified CharSequence and the default capacity. + */ + // @ts-ignore + constructor(sequence: java.lang.CharSequence) + /** + * Adds the character array to the end of this StringBuffer. + */ + // @ts-ignore + public append(chars: string): java.lang.StringBuffer; + /** + * Adds the specified sequence of characters to the end of + * this StringBuffer. + */ + // @ts-ignore + public append(chars: string, start: number, length: number): java.lang.StringBuffer; + /** + * Adds the specified character to the end of + * this StringBuffer. + */ + // @ts-ignore + public append(ch: string): java.lang.StringBuffer; + /** + * Adds the string representation of the specified double to the + * end of this StringBuffer. + */ + // @ts-ignore + public append(value: number): java.lang.StringBuffer; + /** + * Adds the string representation of the specified float to the + * end of this StringBuffer. + */ + // @ts-ignore + public append(value: number): java.lang.StringBuffer; + /** + * Adds the string representation of the specified integer to the + * end of this StringBuffer. + */ + // @ts-ignore + public append(value: number): java.lang.StringBuffer; + /** + * Adds the string representation of the specified long to the + * end of this StringBuffer. + */ + // @ts-ignore + public append(value: number): java.lang.StringBuffer; + /** + * Adds the string representation of the specified object to the + * end of this StringBuffer. + */ + // @ts-ignore + public append(value: java.lang.Object): java.lang.StringBuffer; + /** + * Adds the specified string to the end of this StringBuffer. + */ + // @ts-ignore + public append(string: string): java.lang.StringBuffer; + /** + * Adds the string representation of the specified boolean to the + * end of this StringBuffer. + */ + // @ts-ignore + public append(value: boolean): java.lang.StringBuffer; + /** + * Answers the number of characters this StringBuffer can hold without + * growing. + */ + // @ts-ignore + public capacity(): number; + /** + * Answers the character at the specified offset in this StringBuffer. + */ + // @ts-ignore + public charAt(index: number): string; + /** + * Deletes a range of characters. + */ + // @ts-ignore + public delete(start: number, end: number): java.lang.StringBuffer; + /** + * Deletes a single character + */ + // @ts-ignore + public deleteCharAt(location: number): java.lang.StringBuffer; + /** + * Ensures that this StringBuffer can hold the specified number of characters + * without growing. + */ + // @ts-ignore + public ensureCapacity(min: number): void; + /** + * Copies the specified characters in this StringBuffer to the character array + * starting at the specified offset in the character array. + */ + // @ts-ignore + public getChars(start: number, end: number, buffer: string, index: number): void; + /** + * Inserts the character array at the specified offset in this StringBuffer. + */ + // @ts-ignore + public insert(index: number, chars: string): java.lang.StringBuffer; + /** + * Inserts the specified sequence of characters at the + * specified offset in this StringBuffer. + */ + // @ts-ignore + public insert(index: number, chars: string, start: number, length: number): java.lang.StringBuffer; + /** + * Inserts the character at the specified offset in this StringBuffer. + */ + // @ts-ignore + public insert(index: number, ch: string): java.lang.StringBuffer; + /** + * Inserts the string representation of the specified double at the specified + * offset in this StringBuffer. + */ + // @ts-ignore + public insert(index: number, value: number): java.lang.StringBuffer; + /** + * Inserts the string representation of the specified float at the specified + * offset in this StringBuffer. + */ + // @ts-ignore + public insert(index: number, value: number): java.lang.StringBuffer; + /** + * Inserts the string representation of the specified integer at the specified + * offset in this StringBuffer. + */ + // @ts-ignore + public insert(index: number, value: number): java.lang.StringBuffer; + /** + * Inserts the string representation of the specified long at the specified + * offset in this StringBuffer. + */ + // @ts-ignore + public insert(index: number, value: number): java.lang.StringBuffer; + /** + * Inserts the string representation of the specified object at the specified + * offset in this StringBuffer. + */ + // @ts-ignore + public insert(index: number, value: java.lang.Object): java.lang.StringBuffer; + /** + * Inserts the string at the specified offset in this StringBuffer. + */ + // @ts-ignore + public insert(index: number, string: string): java.lang.StringBuffer; + /** + * Inserts the string representation of the specified boolean at the specified + * offset in this StringBuffer. + */ + // @ts-ignore + public insert(index: number, value: boolean): java.lang.StringBuffer; + /** + * Answers the size of this StringBuffer. + */ + // @ts-ignore + public length(): number; + /** + * Replace a range of characters with the characters in the specified String. + */ + // @ts-ignore + public replace(start: number, end: number, string: string): java.lang.StringBuffer; + /** + * Reverses the order of characters in this StringBuffer. + */ + // @ts-ignore + public reverse(): java.lang.StringBuffer; + /** + * Sets the character at the specified offset in this StringBuffer. + */ + // @ts-ignore + public setCharAt(index: number, ch: string): void; + /** + * Sets the length of this StringBuffer to the specified length. If there + * are more than length characters in this StringBuffer, the characters + * at end are lost. If there are less than length characters in the + * StringBuffer, the additional characters are set to {@code \\u0000}. + */ + // @ts-ignore + public setLength(length: number): void; + /** + * Copies a range of characters into a new String. + */ + // @ts-ignore + public substring(start: number): string; + /** + * Copies a range of characters into a new String. + */ + // @ts-ignore + public substring(start: number, end: number): string; + /** + * Answers the contents of this StringBuffer. + */ + // @ts-ignore + public toString(): string; + /** + * Adds the specified StringBuffer to the end of this StringBuffer. + */ + // @ts-ignore + public append(buffer: java.lang.StringBuffer): java.lang.StringBuffer; + /** + * Copies a range of characters into a new String. + */ + // @ts-ignore + public subSequence(start: number, end: number): java.lang.CharSequence; + /** + * Searches in this StringBuffer for the first index of the specified character. The + * search for the character starts at the beginning and moves towards the + * end. + */ + // @ts-ignore + public indexOf(string: string): number; + /** + * Searches in this StringBuffer for the index of the specified character. The + * search for the character starts at the specified offset and moves towards + * the end. + */ + // @ts-ignore + public indexOf(subString: string, start: number): number; + /** + * Searches in this StringBuffer for the last index of the specified character. The + * search for the character starts at the end and moves towards the beginning. + */ + // @ts-ignore + public lastIndexOf(string: string): number; + /** + * Searches in this StringBuffer for the index of the specified character. The + * search for the character starts at the specified offset and moves towards + * the beginning. + */ + // @ts-ignore + public lastIndexOf(subString: string, start: number): number; + /** + * Adds the specified CharSequence to the end of this StringBuffer. + */ + // @ts-ignore + public append(sequence: java.lang.CharSequence): java.lang.StringBuffer; + /** + * Adds the specified CharSequence to the end of this StringBuffer. + */ + // @ts-ignore + public append(sequence: java.lang.CharSequence, start: number, end: number): java.lang.StringBuffer; + /** + * Inserts the CharSequence at the specified offset in this StringBuffer. + */ + // @ts-ignore + public insert(index: number, sequence: java.lang.CharSequence): java.lang.StringBuffer; + /** + * Inserts the CharSequence at the specified offset in this StringBuffer. + */ + // @ts-ignore + public insert(index: number, sequence: java.lang.CharSequence, start: number, end: number): java.lang.StringBuffer; + /** + * Optionally modify the underlying char array to only + * be large enough to hold the characters in this StringBuffer. + */ + // @ts-ignore + public trimToSize(): void; + /** + * Returns the Unicode character at the given point. + */ + // @ts-ignore + public codePointAt(index: number): number; + /** + * Returns the Unicode character before the given point. + */ + // @ts-ignore + public codePointBefore(index: number): number; + /** + * Returns the total Unicode values in the specified range. + */ + // @ts-ignore + public codePointCount(start: number, end: number): number; + /** + * Returns the index of the code point that was offset by {@code codePointCount}. + */ + // @ts-ignore + public offsetByCodePoints(start: number, codePointCount: number): number; + /** + * Adds the specified code point to the end of this StringBuffer. + */ + // @ts-ignore + public appendCodePoint(codePoint: number): java.lang.StringBuffer; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.StringBuilder.d.ts b/packages/types/dist/typings/jdk/java.lang.StringBuilder.d.ts new file mode 100644 index 00000000..13bca240 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.StringBuilder.d.ts @@ -0,0 +1,309 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class StringBuilder extends java.lang.AbstractStringBuilder { + /** + * Constructs a new StringBuffer using the default capacity. + */ + // @ts-ignore + constructor() + /** + * Constructs a new StringBuilder using the specified capacity. + */ + // @ts-ignore + constructor(capacity: number) + /** + * Constructs a new StringBuilder containing the characters in + * the specified string and the default capacity. + */ + // @ts-ignore + constructor(string: string) + /** + * Constructs a new StringBuilder containing the characters in + * the specified CharSequence and the default capacity. + */ + // @ts-ignore + constructor(sequence: java.lang.CharSequence) + /** + * Adds the character array to the end of this StringBuilder. + */ + // @ts-ignore + public append(chars: string): java.lang.StringBuilder; + /** + * Adds the specified sequence of characters to the end of + * this StringBuilder. + */ + // @ts-ignore + public append(chars: string, start: number, length: number): java.lang.StringBuilder; + /** + * Adds the specified character to the end of + * this StringBuilder. + */ + // @ts-ignore + public append(ch: string): java.lang.StringBuilder; + /** + * Adds the string representation of the specified double to the + * end of this StringBuilder. + */ + // @ts-ignore + public append(value: number): java.lang.StringBuilder; + /** + * Adds the string representation of the specified float to the + * end of this StringBuilder. + */ + // @ts-ignore + public append(value: number): java.lang.StringBuilder; + /** + * Adds the string representation of the specified integer to the + * end of this StringBuilder. + */ + // @ts-ignore + public append(value: number): java.lang.StringBuilder; + /** + * Adds the string representation of the specified long to the + * end of this StringBuilder. + */ + // @ts-ignore + public append(value: number): java.lang.StringBuilder; + /** + * Adds the string representation of the specified object to the + * end of this StringBuilder. + */ + // @ts-ignore + public append(value: java.lang.Object): java.lang.StringBuilder; + /** + * Adds the specified string to the end of this StringBuilder. + */ + // @ts-ignore + public append(string: string): java.lang.StringBuilder; + /** + * Adds the string representation of the specified boolean to the + * end of this StringBuilder. + */ + // @ts-ignore + public append(value: boolean): java.lang.StringBuilder; + /** + * Answers the number of characters this StringBuilder can hold without + * growing. + */ + // @ts-ignore + public capacity(): number; + /** + * Answers the character at the specified offset in this StringBuilder. + */ + // @ts-ignore + public charAt(index: number): string; + /** + * Deletes a range of characters. + */ + // @ts-ignore + public delete(start: number, end: number): java.lang.StringBuilder; + /** + * Deletes a single character + */ + // @ts-ignore + public deleteCharAt(location: number): java.lang.StringBuilder; + /** + * Ensures that this StringBuilder can hold the specified number of characters + * without growing. + */ + // @ts-ignore + public ensureCapacity(min: number): void; + /** + * Copies the specified characters in this StringBuilder to the character array + * starting at the specified offset in the character array. + */ + // @ts-ignore + public getChars(start: number, end: number, buffer: string, index: number): void; + /** + * Inserts the character array at the specified offset in this StringBuilder. + */ + // @ts-ignore + public insert(index: number, chars: string): java.lang.StringBuilder; + /** + * Inserts the specified sequence of characters at the + * specified offset in this StringBuilder. + */ + // @ts-ignore + public insert(index: number, chars: string, start: number, length: number): java.lang.StringBuilder; + /** + * Inserts the character at the specified offset in this StringBuilder. + */ + // @ts-ignore + public insert(index: number, ch: string): java.lang.StringBuilder; + /** + * Inserts the string representation of the specified double at the specified + * offset in this StringBuilder. + */ + // @ts-ignore + public insert(index: number, value: number): java.lang.StringBuilder; + /** + * Inserts the string representation of the specified float at the specified + * offset in this StringBuilder. + */ + // @ts-ignore + public insert(index: number, value: number): java.lang.StringBuilder; + /** + * Inserts the string representation of the specified integer at the specified + * offset in this StringBuilder. + */ + // @ts-ignore + public insert(index: number, value: number): java.lang.StringBuilder; + /** + * Inserts the string representation of the specified long at the specified + * offset in this StringBuilder. + */ + // @ts-ignore + public insert(index: number, value: number): java.lang.StringBuilder; + /** + * Inserts the string representation of the specified object at the specified + * offset in this StringBuilder. + */ + // @ts-ignore + public insert(index: number, value: java.lang.Object): java.lang.StringBuilder; + /** + * Inserts the string at the specified offset in this StringBuilder. + */ + // @ts-ignore + public insert(index: number, string: string): java.lang.StringBuilder; + /** + * Inserts the string representation of the specified boolean at the specified + * offset in this StringBuilder. + */ + // @ts-ignore + public insert(index: number, value: boolean): java.lang.StringBuilder; + /** + * Answers the size of this StringBuilder. + */ + // @ts-ignore + public length(): number; + /** + * Replace a range of characters with the characters in the specified String. + */ + // @ts-ignore + public replace(start: number, end: number, string: string): java.lang.StringBuilder; + /** + * Reverses the order of characters in this StringBuilder. + */ + // @ts-ignore + public reverse(): java.lang.StringBuilder; + /** + * Sets the character at the specified offset in this StringBuilder. + */ + // @ts-ignore + public setCharAt(index: number, ch: string): void; + /** + * Sets the length of this StringBuilder to the specified length. If there + * are more than length characters in this StringBuilder, the characters + * at end are lost. If there are less than length characters in the + * StringBuilder, the additional characters are set to {@code \\u0000}. + */ + // @ts-ignore + public setLength(length: number): void; + /** + * Copies a range of characters into a new String. + */ + // @ts-ignore + public substring(start: number): string; + /** + * Copies a range of characters into a new String. + */ + // @ts-ignore + public substring(start: number, end: number): string; + /** + * Answers the contents of this StringBuilder. + */ + // @ts-ignore + public toString(): string; + /** + * Adds the specified StringBuffer to the end of this StringBuilder. + */ + // @ts-ignore + public append(buffer: java.lang.StringBuffer): java.lang.StringBuilder; + /** + * Copies a range of characters into a new String. + */ + // @ts-ignore + public subSequence(start: number, end: number): java.lang.CharSequence; + /** + * Searches in this StringBuilder for the first index of the specified character. The + * search for the character starts at the beginning and moves towards the + * end. + */ + // @ts-ignore + public indexOf(string: string): number; + /** + * Searches in this StringBuilder for the index of the specified character. The + * search for the character starts at the specified offset and moves towards + * the end. + */ + // @ts-ignore + public indexOf(subString: string, start: number): number; + /** + * Searches in this StringBuilder for the last index of the specified character. The + * search for the character starts at the end and moves towards the beginning. + */ + // @ts-ignore + public lastIndexOf(string: string): number; + /** + * Searches in this StringBuilder for the index of the specified character. The + * search for the character starts at the specified offset and moves towards + * the beginning. + */ + // @ts-ignore + public lastIndexOf(subString: string, start: number): number; + /** + * Adds the specified CharSequence to the end of this StringBuilder. + */ + // @ts-ignore + public append(sequence: java.lang.CharSequence): java.lang.StringBuilder; + /** + * Adds the specified CharSequence to the end of this StringBuilder. + */ + // @ts-ignore + public append(sequence: java.lang.CharSequence, start: number, end: number): java.lang.StringBuilder; + /** + * Inserts the CharSequence at the specified offset in this StringBuilder. + */ + // @ts-ignore + public insert(index: number, sequence: java.lang.CharSequence): java.lang.StringBuilder; + /** + * Inserts the CharSequence at the specified offset in this StringBuilder. + */ + // @ts-ignore + public insert(index: number, sequence: java.lang.CharSequence, start: number, end: number): java.lang.StringBuilder; + /** + * Optionally modify the underlying char array to only + * be large enough to hold the characters in this StringBuffer. + */ + // @ts-ignore + public trimToSize(): void; + /** + * Returns the Unicode character at the given point. + */ + // @ts-ignore + public codePointAt(index: number): number; + /** + * Returns the Unicode character before the given point. + */ + // @ts-ignore + public codePointBefore(index: number): number; + /** + * Returns the total Unicode values in the specified range. + */ + // @ts-ignore + public codePointCount(start: number, end: number): number; + /** + * Returns the index of the code point that was offset by {@code codePointCount}. + */ + // @ts-ignore + public offsetByCodePoints(start: number, codePointCount: number): number; + /** + * Adds the specified code point to the end of this StringBuffer. + */ + // @ts-ignore + public appendCodePoint(codePoint: number): java.lang.StringBuilder; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.StringIndexOutOfBoundsException.d.ts b/packages/types/dist/typings/jdk/java.lang.StringIndexOutOfBoundsException.d.ts new file mode 100644 index 00000000..c1dff35d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.StringIndexOutOfBoundsException.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class StringIndexOutOfBoundsException extends java.lang.IndexOutOfBoundsException { + /** + * Constructs a {@code StringIndexOutOfBoundsException} with no + * detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs a {@code StringIndexOutOfBoundsException} with + * the specified detail message. + */ + // @ts-ignore + constructor(s: string) + /** + * Constructs a new {@code StringIndexOutOfBoundsException} + * class with an argument indicating the illegal index. + */ + // @ts-ignore + constructor(index: number) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.SuppressWarnings.d.ts b/packages/types/dist/typings/jdk/java.lang.SuppressWarnings.d.ts new file mode 100644 index 00000000..73378431 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.SuppressWarnings.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + interface SuppressWarnings { + /** + * The set of warnings that are to be suppressed by the compiler in the + * annotated element. Duplicate names are permitted. The second and + * successive occurrences of a name are ignored. The presence of + * unrecognized warning names is not an error: Compilers must + * ignore any warning names they do not recognize. They are, however, + * free to emit a warning if an annotation contains an unrecognized + * warning name. + *

The string {@code "unchecked"} is used to suppress + * unchecked warnings. Compiler vendors should document the + * additional warning names they support in conjunction with this + * annotation type. They are encouraged to cooperate to ensure + * that the same names work across multiple compilers. + */ + // @ts-ignore + value(): java.lang.String[]; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.System.d.ts b/packages/types/dist/typings/jdk/java.lang.System.d.ts new file mode 100644 index 00000000..2063ef03 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.System.d.ts @@ -0,0 +1,211 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class System extends java.lang.Object { + // @ts-ignore + public static in: java.io.InputStream; + // @ts-ignore + public static out: java.io.PrintStream; + // @ts-ignore + public static err: java.io.PrintStream; + /** + * Sets the value of the static slot "in" in the receiver + * to the passed in argument. + */ + // @ts-ignore + public static setIn(newIn: java.io.InputStream): void; + /** + * Sets the value of the static slot "out" in the receiver + * to the passed in argument. + */ + // @ts-ignore + public static setOut(newOut: java.io.PrintStream): void; + /** + * Sets the value of the static slot "err" in the receiver + * to the passed in argument. + */ + // @ts-ignore + public static setErr(newErr: java.io.PrintStream): void; + /** + * Copies the contents of array1 starting at offset start1 + * into array2 starting at offset start2 for + * length elements. + */ + // @ts-ignore + public static arraycopy(array1: java.lang.Object, start1: number, array2: java.lang.Object, start2: number, length: number): void; + /** + * Answers the current time expressed as milliseconds since + * the time 00:00:00 UTC on January 1, 1970. + */ + // @ts-ignore + public static currentTimeMillis(): number; + /** + * Causes the virtual machine to stop running, and the + * program to exit. If runFinalizersOnExit(true) has been + * invoked, then all finalizers will be run first. + */ + // @ts-ignore + public static exit(code: number): void; + /** + * Indicate to the virtual machine that it would be a + * good time to collect available memory. Note that, this + * is a hint only. + */ + // @ts-ignore + public static gc(): void; + /** + * Returns an environment variable. + */ + // @ts-ignore + public static getenv(variable: string): string; + /** + * Answers the system properties. Note that this is + * not a copy, so that changes made to the returned + * Properties object will be reflected in subsequent + * calls to getProperty and getProperties. + *

+ * Security managers should restrict access to this + * API if possible. + */ + // @ts-ignore + public static getProperties(): java.util.Properties; + /** + * Answers the value of a particular system property. + * Answers null if no such property exists, + *

+ * The properties currently provided by the virtual + * machine are: + *

+             * java.vendor.url
+             * java.class.path
+             * user.home
+             * java.class.version
+             * os.version
+             * java.vendor
+             * user.dir
+             * user.timezone
+             * path.separator
+             * os.name
+             * os.arch
+             * line.separator
+             * file.separator
+             * user.name
+             * java.version
+             * java.home
+             * 
+ */ + // @ts-ignore + public static getProperty(prop: string): string; + /** + * Answers the value of a particular system property. + * If no such property is found, answers the defaultValue. + */ + // @ts-ignore + public static getProperty(prop: string, defaultValue: string): string; + /** + * Sets the value of a particular system property. + */ + // @ts-ignore + public static setProperty(prop: string, value: string): string; + /** + * Answers the active security manager. + */ + // @ts-ignore + public static getSecurityManager(): java.lang.SecurityManager; + /** + * Answers an integer hash code for the parameter. + * The hash code returned is the same one that would + * be returned by java.lang.Object.hashCode(), whether + * or not the object's class has overridden hashCode(). + * The hash code for null is 0. + */ + // @ts-ignore + public static identityHashCode(anObject: java.lang.Object): number; + /** + * Loads the specified file as a dynamic library. + */ + // @ts-ignore + public static load(pathName: string): void; + /** + * Loads and links the library specified by the argument. + */ + // @ts-ignore + public static loadLibrary(libName: string): void; + /** + * Provides a hint to the virtual machine that it would + * be useful to attempt to perform any outstanding + * object finalizations. + */ + // @ts-ignore + public static runFinalization(): void; + /** + * Ensure that, when the virtual machine is about to exit, + * all objects are finalized. Note that all finalization + * which occurs when the system is exiting is performed + * after all running threads have been terminated. + */ + // @ts-ignore + public static runFinalizersOnExit(flag: boolean): void; + /** + * Answers the system properties. Note that the object + * which is passed in not copied, so that subsequent + * changes made to the object will be reflected in + * calls to getProperty and getProperties. + *

+ * Security managers should restrict access to this + * API if possible. + */ + // @ts-ignore + public static setProperties(p: java.util.Properties): void; + /** + * Sets the active security manager. Note that once + * the security manager has been set, it can not be + * changed. Attempts to do so will cause a security + * exception. + */ + // @ts-ignore + public static setSecurityManager(s: java.lang.SecurityManager): void; + /** + * Answers the platform specific file name format for the shared + * library named by the argument. + */ + // @ts-ignore + public static mapLibraryName(userLibName: string): string; + /** + * Return the channel inherited by the invocation of the running vm. The channel is + * obtained by calling SelectorProvider.inheritedChannel(). + */ + // @ts-ignore + public static inheritedChannel(): java.nio.channels.Channel; + /** + * Returns the current tick count in nanoseconds. The tick count + * only reflects elapsed time. + */ + // @ts-ignore + public static nanoTime(): number; + /** + * Removes the property. + */ + // @ts-ignore + public static clearProperty(prop: string): string; + /** + * Returns all of the system environment variables in an unmodifiable Map. + */ + // @ts-ignore + public static getenv(): java.util.Map; + /** + * Return the Console or null. + */ + // @ts-ignore + public static console(): java.io.Console; + /** + * Return platform specific line separator character(s) + * Unix is \n while Windows is \r\n as per the prop set by the VM + * Refer to Jazz 30875 + */ + // @ts-ignore + public static lineSeparator(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Thread.State.d.ts b/packages/types/dist/typings/jdk/java.lang.Thread.State.d.ts new file mode 100644 index 00000000..539bbb66 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Thread.State.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace Thread { + // @ts-ignore + class State extends java.lang.Enum { + // @ts-ignore + public static NEW: java.lang.Thread.State; + // @ts-ignore + public static RUNNABLE: java.lang.Thread.State; + // @ts-ignore + public static BLOCKED: java.lang.Thread.State; + // @ts-ignore + public static WAITING: java.lang.Thread.State; + // @ts-ignore + public static TIMED_WAITING: java.lang.Thread.State; + // @ts-ignore + public static TERMINATED: java.lang.Thread.State; + // @ts-ignore + public static values(): java.lang.Thread.State[]; + // @ts-ignore + public static valueOf(name: string): java.lang.Thread.State; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Thread.UncaughtExceptionHandler.d.ts b/packages/types/dist/typings/jdk/java.lang.Thread.UncaughtExceptionHandler.d.ts new file mode 100644 index 00000000..9de0d6c1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Thread.UncaughtExceptionHandler.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace Thread { + // @ts-ignore + interface UncaughtExceptionHandler { + /** + * The method invoked when an uncaught exception occurs in a Thread. + */ + // @ts-ignore + uncaughtException(thread: java.lang.Thread, throwable: java.lang.Throwable): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Thread.d.ts b/packages/types/dist/typings/jdk/java.lang.Thread.d.ts new file mode 100644 index 00000000..b80e5721 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Thread.d.ts @@ -0,0 +1,321 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class Thread extends java.lang.Object { + /** + * Constructs a new Thread with no runnable object and a newly generated name. + * The new Thread will belong to the same ThreadGroup as the Thread calling + * this constructor. + */ + // @ts-ignore + constructor() + /** + * Constructs a new Thread with a runnable object and a newly generated name. + * The new Thread will belong to the same ThreadGroup as the Thread calling + * this constructor. + */ + // @ts-ignore + constructor(runnable: java.lang.Runnable) + /** + * Constructs a new Thread with a runnable object and name provided. + * The new Thread will belong to the same ThreadGroup as the Thread calling + * this constructor. + */ + // @ts-ignore + constructor(runnable: java.lang.Runnable, threadName: string) + /** + * Constructs a new Thread with no runnable object and the name provided. + * The new Thread will belong to the same ThreadGroup as the Thread calling + * this constructor. + */ + // @ts-ignore + constructor(threadName: string) + /** + * Constructs a new Thread with a runnable object and a newly generated name. + * The new Thread will belong to the ThreadGroup passed as parameter. + */ + // @ts-ignore + constructor(group: java.lang.ThreadGroup, runnable: java.lang.Runnable) + /** + * Constructs a new Thread with a runnable object, the given name and + * belonging to the ThreadGroup passed as parameter. + */ + // @ts-ignore + constructor(group: java.lang.ThreadGroup, runnable: java.lang.Runnable, threadName: string, stack: number) + /** + * Constructs a new Thread with a runnable object, the given name and + * belonging to the ThreadGroup passed as parameter. + */ + // @ts-ignore + constructor(group: java.lang.ThreadGroup, runnable: java.lang.Runnable, threadName: string) + /** + * Constructs a new Thread with no runnable object, the given name and + * belonging to the ThreadGroup passed as parameter. + */ + // @ts-ignore + constructor(group: java.lang.ThreadGroup, threadName: string) + // @ts-ignore + public static MAX_PRIORITY: number; + // @ts-ignore + public static MIN_PRIORITY: number; + // @ts-ignore + public static NORM_PRIORITY: number; + /** + * Returns how many threads are active in the ThreadGroup + * which the current thread belongs to. + */ + // @ts-ignore + public static activeCount(): number; + /** + * This method is used for operations that require approval from + * a SecurityManager. If there's none installed, this method is a no-op. + * If there's a SecurityManager installed , checkAccess(Ljava.lang.Thread;) + * is called for that SecurityManager. + */ + // @ts-ignore + public checkAccess(): void; + /** + * Returns the number of stack frames in this thread. + */ + // @ts-ignore + public countStackFrames(): number; + /** + * Answers the instance of Thread that corresponds to the running Thread + * which calls this method. + */ + // @ts-ignore + public static currentThread(): java.lang.Thread; + /** + * Destroys the receiver without any monitor cleanup. Not implemented. + */ + // @ts-ignore + public destroy(): void; + /** + * Prints a text representation of the stack for this Thread. + */ + // @ts-ignore + public static dumpStack(): void; + /** + * Copies an array with all Threads which are in the same ThreadGroup as + * the receiver - and subgroups - into the array threads + * passed as parameter. If the array passed as parameter is too small no + * exception is thrown - the extra elements are simply not copied. + */ + // @ts-ignore + public static enumerate(threads: java.lang.Thread): number; + /** + * Returns the context ClassLoader for the receiver. + */ + // @ts-ignore + public getContextClassLoader(): java.lang.ClassLoader; + /** + * Answers the name of the receiver. + */ + // @ts-ignore + public getName(): string; + /** + * Answers the priority of the receiver. + */ + // @ts-ignore + public getPriority(): number; + /** + * Answers the ThreadGroup to which the receiver belongs + */ + // @ts-ignore + public getThreadGroup(): java.lang.ThreadGroup; + /** + * Posts an interrupt request to the receiver + */ + // @ts-ignore + public interrupt(): void; + /** + * Answers a boolean indicating whether the current Thread + * (currentThread()) has a pending interrupt request + * (true) or not (false). It also has the + * side-effect of clearing the flag. + */ + // @ts-ignore + public static interrupted(): boolean; + /** + * Answers true if the receiver has + * already been started and still runs code (hasn't died yet). + * Answers false either if the receiver hasn't been + * started yet or if it has already started and run to completion and died. + */ + // @ts-ignore + public isAlive(): boolean; + /** + * Answers a boolean indicating whether the receiver + * is a daemon Thread (true) or not (false) + * A daemon Thread only runs as long as there are non-daemon Threads + * running. When the last non-daemon Thread ends, the whole program ends + * no matter if it had daemon Threads still running or not. + */ + // @ts-ignore + public isDaemon(): boolean; + /** + * Answers a boolean indicating whether the receiver + * has a pending interrupt request (true) or not (false) + */ + // @ts-ignore + public isInterrupted(): boolean; + /** + * Blocks the current Thread (Thread.currentThread()) until the + * receiver finishes its execution and dies. + */ + // @ts-ignore + public join(): void; + /** + * Blocks the current Thread (Thread.currentThread()) until the + * receiver finishes its execution and dies or the specified timeout expires, whatever + * happens first. + */ + // @ts-ignore + public join(timeoutInMilliseconds: number): void; + /** + * Blocks the current Thread (Thread.currentThread()) until the + * receiver finishes its execution and dies or the specified timeout expires, whatever + * happens first. + */ + // @ts-ignore + public join(timeoutInMilliseconds: number, nanos: number): void; + /** + * This is a no-op if the receiver was never suspended, or suspended and already + * resumed. If the receiver is suspended, however, makes it resume to the point + * where it was when it was suspended. + */ + // @ts-ignore + public resume(): void; + /** + * Calls the run() method of the Runnable object the receiver holds. + * If no Runnable is set, does nothing. + */ + // @ts-ignore + public run(): void; + /** + * Set the context ClassLoader for the receiver. + */ + // @ts-ignore + public setContextClassLoader(cl: java.lang.ClassLoader): void; + /** + * Set if the receiver is a daemon Thread or not. This can only be done + * before the Thread starts running. + */ + // @ts-ignore + public setDaemon(isDaemon: boolean): void; + /** + * Sets the name of the receiver. + */ + // @ts-ignore + public setName(threadName: string): void; + /** + * Sets the priority of the receiver. Note that the final priority set may be less than the + * requested value, as it is bounded by the maxPriority() of the receiver's ThreadGroup. + */ + // @ts-ignore + public setPriority(requestedPriority: number): void; + /** + * Causes the thread which sent this message to sleep an interval + * of time (given in milliseconds). The precision is not guaranteed - + * the Thread may sleep more or less than requested. + */ + // @ts-ignore + public static sleep(time: number): void; + /** + * Causes the thread which sent this message to sleep an interval + * of time (given in milliseconds). The precision is not guaranteed - + * the Thread may sleep more or less than requested. + */ + // @ts-ignore + public static sleep(time: number, nanos: number): void; + /** + * Starts the new Thread of execution. The run() method of the receiver + * will be called by the receiver Thread itself (and not the Thread calling start()). + */ + // @ts-ignore + public start(): void; + /** + * Requests the receiver Thread to stop and throw ThreadDeath. + * The Thread is resumed if it was suspended and awakened if it was + * sleeping, so that it can proceed to throw ThreadDeath. + */ + // @ts-ignore + public stop(): void; + /** + * Throws UnsupportedOperationException. + */ + // @ts-ignore + public stop(throwable: java.lang.Throwable): void; + /** + * This is a no-op if the receiver is suspended. If the receiver isAlive() + * however, suspended it until resume() is sent to it. Suspend requests + * are not queued, which means that N requests are equivalent to just one - only one + * resume request is needed in this case. + */ + // @ts-ignore + public suspend(): void; + /** + * Answers a string containing a concise, human-readable + * description of the receiver. + */ + // @ts-ignore + public toString(): string; + /** + * Causes the thread which sent this message to yield execution to another Thread + * that is ready to run. The actual scheduling is implementation-dependent. + */ + // @ts-ignore + public static yield(): void; + /** + * Returns whether the current thread has a monitor lock on the specified object. + */ + // @ts-ignore + public static holdsLock(object: java.lang.Object): boolean; + /** + * Returns an array of StackTraceElement, where each element of the array represents a frame + * on the Java stack. + */ + // @ts-ignore + public getStackTrace(): java.lang.StackTraceElement[]; + /** + * Returns a Map containing Thread keys, and values which are arrays of StackTraceElement. The Map contains + * all Threads which were alive at the time this method was called. + */ + // @ts-ignore + public static getAllStackTraces(): java.util.Map; + /** + * Return a unique id for this Thread. + */ + // @ts-ignore + public getId(): number; + /** + * Return the UncaughtExceptionHandler for this Thread. + */ + // @ts-ignore + public getUncaughtExceptionHandler(): java.lang.Thread.UncaughtExceptionHandler; + /** + * Set the UncaughtExceptionHandler for this Thread. + */ + // @ts-ignore + public setUncaughtExceptionHandler(handler: java.lang.Thread.UncaughtExceptionHandler): void; + /** + * Return the default UncaughtExceptionHandler used for new Threads. + */ + // @ts-ignore + public static getDefaultUncaughtExceptionHandler(): java.lang.Thread.UncaughtExceptionHandler; + /** + * Set the UncaughtExceptionHandler used for new Threads. + */ + // @ts-ignore + public static setDefaultUncaughtExceptionHandler(handler: java.lang.Thread.UncaughtExceptionHandler): void; + /** + * Returns the current Thread state. + */ + // @ts-ignore + public getState(): java.lang.Thread.State; + // @ts-ignore + protected clone(): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.ThreadDeath.d.ts b/packages/types/dist/typings/jdk/java.lang.ThreadDeath.d.ts new file mode 100644 index 00000000..a2f61429 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.ThreadDeath.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class ThreadDeath extends java.lang.Error { + // @ts-ignore + constructor() + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.ThreadGroup.d.ts b/packages/types/dist/typings/jdk/java.lang.ThreadGroup.d.ts new file mode 100644 index 00000000..587d9342 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.ThreadGroup.d.ts @@ -0,0 +1,176 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class ThreadGroup extends java.lang.Object { + /** + * Constructs a new ThreadGroup with the name provided. + * The new ThreadGroup will be child of the ThreadGroup to which + * the Thread.currentThread() belongs. + */ + // @ts-ignore + constructor(name: string) + /** + * Constructs a new ThreadGroup with the name provided, as child of + * the ThreadGroup parent + */ + // @ts-ignore + constructor(parent: java.lang.ThreadGroup, name: string) + /** + * Returns the number of Threads which are children of + * the receiver, directly or indirectly. + */ + // @ts-ignore + public activeCount(): number; + /** + * Returns the number of ThreadGroups which are children of + * the receiver, directly or indirectly. + */ + // @ts-ignore + public activeGroupCount(): number; + /** + * The definition of this method depends on the deprecated method suspend(). + * The behavior of this call was never specified. + */ + // @ts-ignore + public allowThreadSuspension(b: boolean): boolean; + /** + * If there is a SecurityManager installed, call checkAccess + * in it passing the receiver as parameter, otherwise do nothing. + */ + // @ts-ignore + public checkAccess(): void; + /** + * Destroys the receiver and recursively all its subgroups. It is only legal + * to destroy a ThreadGroup that has no Threads. + * Any daemon ThreadGroup is destroyed automatically when it becomes empty + * (no Threads and no ThreadGroups in it). + */ + // @ts-ignore + public destroy(): void; + /** + * Copies an array with all Threads which are children of + * the receiver (directly or indirectly) into the array threads + * passed as parameters. If the array passed as parameter is too small no + * exception is thrown - the extra elements are simply not copied. + */ + // @ts-ignore + public enumerate(threads: java.lang.Thread): number; + /** + * Copies an array with all Threads which are children of + * the receiver into the array threads + * passed as parameter. Children Threads of subgroups are recursively copied + * as well if parameter recurse is true. + * If the array passed as parameter is too small no + * exception is thrown - the extra elements are simply not copied. + */ + // @ts-ignore + public enumerate(threads: java.lang.Thread, recurse: boolean): number; + /** + * Copies an array with all ThreadGroups which are children of + * the receiver (directly or indirectly) into the array groups + * passed as parameters. If the array passed as parameter is too small no + * exception is thrown - the extra elements are simply not copied. + */ + // @ts-ignore + public enumerate(groups: java.lang.ThreadGroup): number; + /** + * Copies an array with all ThreadGroups which are children of + * the receiver into the array groups + * passed as parameter. Children ThreadGroups of subgroups are recursively copied + * as well if parameter recurse is true. + * If the array passed as parameter is too small no + * exception is thrown - the extra elements are simply not copied. + */ + // @ts-ignore + public enumerate(groups: java.lang.ThreadGroup, recurse: boolean): number; + /** + * Answers the maximum allowed priority for a Thread in the receiver. + */ + // @ts-ignore + public getMaxPriority(): number; + /** + * Answers the name of the receiver. + */ + // @ts-ignore + public getName(): string; + /** + * Answers the receiver's parent ThreadGroup. It can be null if the receiver + * is the the root ThreadGroup. + */ + // @ts-ignore + public getParent(): java.lang.ThreadGroup; + /** + * Interrupts every Thread in the receiver and recursively in all its subgroups. + */ + // @ts-ignore + public interrupt(): void; + /** + * Answers true if the receiver is a daemon ThreadGroup, false otherwise. + */ + // @ts-ignore + public isDaemon(): boolean; + /** + * Answers true if the receiver has been destroyed already, false otherwise. + */ + // @ts-ignore + public isDestroyed(): boolean; + /** + * Outputs to System.out a text representation of the hierarchy of + * Threads and ThreadGroups in the receiver (and recursively). Proper indentation + * is done to suggest the nesting of groups inside groups and threads inside groups. + */ + // @ts-ignore + public list(): void; + /** + * Answers true if the receiver is a direct or indirect parent group of + * ThreadGroup g, false otherwise. + */ + // @ts-ignore + public parentOf(g: java.lang.ThreadGroup): boolean; + /** + * Resumes every Thread in the receiver and recursively in all its subgroups. + */ + // @ts-ignore + public resume(): void; + /** + * Configures the receiver to be a daemon ThreadGroup or not. + * Daemon ThreadGroups are automatically destroyed when they become empty. + */ + // @ts-ignore + public setDaemon(isDaemon: boolean): void; + /** + * Configures the maximum allowed priority for a Thread in the receiver + * and recursively in all its subgroups. + * One can never change the maximum priority of a ThreadGroup to be + * higher than it was. Such an attempt will not result in an exception, it will + * simply leave the ThreadGroup with its current maximum priority. + */ + // @ts-ignore + public setMaxPriority(newMax: number): void; + /** + * Stops every Thread in the receiver and recursively in all its subgroups. + */ + // @ts-ignore + public stop(): void; + /** + * Suspends every Thread in the receiver and recursively in all its subgroups. + */ + // @ts-ignore + public suspend(): void; + /** + * Answers a string containing a concise, human-readable + * description of the receiver. + */ + // @ts-ignore + public toString(): string; + /** + * Any uncaught exception in any Thread has to be forwarded (by the VM) to the Thread's ThreadGroup + * by sending this message (uncaughtException). This allows users to define custom ThreadGroup classes + * and custom behavior for when a Thread has an uncaughtException or when it does (ThreadDeath). + */ + // @ts-ignore + public uncaughtException(t: java.lang.Thread, e: java.lang.Throwable): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.ThreadLocal.d.ts b/packages/types/dist/typings/jdk/java.lang.ThreadLocal.d.ts new file mode 100644 index 00000000..e778a305 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.ThreadLocal.d.ts @@ -0,0 +1,63 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class ThreadLocal extends java.lang.Object { + /** + * Creates a thread local variable. + */ + // @ts-ignore + constructor() + /** + * Returns the current thread's "initial value" for this + * thread-local variable. This method will be invoked the first + * time a thread accesses the variable with the {@link #get} + * method, unless the thread previously invoked the {@link #set} + * method, in which case the {@code initialValue} method will not + * be invoked for the thread. Normally, this method is invoked at + * most once per thread, but it may be invoked again in case of + * subsequent invocations of {@link #remove} followed by {@link #get}. + *

This implementation simply returns {@code null}; if the + * programmer desires thread-local variables to have an initial + * value other than {@code null}, {@code ThreadLocal} must be + * subclassed, and this method overridden. Typically, an + * anonymous inner class will be used. + */ + // @ts-ignore + protected initialValue(): java.lang.Object; + /** + * Creates a thread local variable. The initial value of the variable is + * determined by invoking the {@code get} method on the {@code Supplier}. + */ + // @ts-ignore + public static withInitial(supplier: java.util.function$.Supplier): java.lang.ThreadLocal; + /** + * Returns the value in the current thread's copy of this + * thread-local variable. If the variable has no value for the + * current thread, it is first initialized to the value returned + * by an invocation of the {@link #initialValue} method. + */ + // @ts-ignore + public get(): java.lang.Object; + /** + * Sets the current thread's copy of this thread-local variable + * to the specified value. Most subclasses will have no need to + * override this method, relying solely on the {@link #initialValue} + * method to set the values of thread-locals. + */ + // @ts-ignore + public set(value: java.lang.Object): void; + /** + * Removes the current thread's value for this thread-local + * variable. If this thread-local variable is subsequently + * {@linkplain #get read} by the current thread, its value will be + * reinitialized by invoking its {@link #initialValue} method, + * unless its value is {@linkplain #set set} by the current thread + * in the interim. This may result in multiple invocations of the + * {@code initialValue} method in the current thread. + */ + // @ts-ignore + public remove(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Throwable.d.ts b/packages/types/dist/typings/jdk/java.lang.Throwable.d.ts new file mode 100644 index 00000000..2982712a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Throwable.d.ts @@ -0,0 +1,138 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class Throwable extends java.lang.Object { + /** + * Constructs a new instance of this class with its + * walkback filled in. + */ + // @ts-ignore + constructor() + /** + * Constructs a new instance of this class with its + * walkback and message filled in. + */ + // @ts-ignore + constructor(detailMessage: string) + /** + * Constructs a new instance of this class with its + * walkback, message and cause filled in. + */ + // @ts-ignore + constructor(detailMessage: string, throwable: java.lang.Throwable) + /** + * Constructs a new instance of this class with its + * walkback and cause filled in. + */ + // @ts-ignore + constructor(throwable: java.lang.Throwable) + /** + * Constructs a new instance of this class with its walkback, message + * and cause filled in. + * enableSuppression and enableWritableStackTrace are true by default + * in other constructors + * If enableSuppression is false, suppression is disabled, getSuppressed() + * returns a zero-length array and calls to addSuppressed(Throwable) have + * no effect. + * If enableWritableStackTrace is false, fillInStackTrace() will not be + * called within this constructor, stackTrace field will be set to null, + * subsequent calls to fillInStackTrace() and setStackTrace(StackTraceElement[]) + * will not set the stack trace, and getStackTrace() will return a zero + * length array. + */ + // @ts-ignore + constructor(detailMessage: string, throwable: java.lang.Throwable, enableSuppression: boolean, enableWritableStackTrace: boolean) + /** + * Record in the receiver a walkback from the point + * where this message was sent. The message is + * public so that code which catches a throwable and + * then re-throws it can adjust the walkback + * to represent the location where the exception was + * re-thrown. + */ + // @ts-ignore + public fillInStackTrace(): java.lang.Throwable; + /** + * Answers the extra information message which was provided + * when the throwable was created. If no message was provided + * at creation time, then answer null. + */ + // @ts-ignore + public getMessage(): string; + /** + * Answers the extra information message which was provided + * when the throwable was created. If no message was provided + * at creation time, then answer null. Subclasses may override + * this method to answer localized text for the message. + */ + // @ts-ignore + public getLocalizedMessage(): string; + /** + * Answers an array of StackTraceElement. Each StackTraceElement represents + * a entry on the stack. + */ + // @ts-ignore + public getStackTrace(): java.lang.StackTraceElement[]; + /** + * Sets the array of StackTraceElements. Each StackTraceElement represents + * a entry on the stack. A copy of this array will be returned by getStackTrace() + * and printed by printStackTrace(). + */ + // @ts-ignore + public setStackTrace(trace: java.lang.StackTraceElement): void; + /** + * Outputs a printable representation of the receiver's + * walkback on the System.err stream. + */ + // @ts-ignore + public printStackTrace(): void; + /** + * Outputs a printable representation of the receiver's + * walkback on the stream specified by the argument. + */ + // @ts-ignore + public printStackTrace(err: java.io.PrintStream): void; + /** + * Outputs a printable representation of the receiver's + * walkback on the writer specified by the argument. + */ + // @ts-ignore + public printStackTrace(err: java.io.PrintWriter): void; + /** + * Answers a string containing a concise, human-readable + * description of the receiver. + */ + // @ts-ignore + public toString(): string; + /** + * Initialize the cause of the receiver. The cause cannot be + * reassigned. + */ + // @ts-ignore + public initCause(throwable: java.lang.Throwable): java.lang.Throwable; + /** + * Answers the cause of this Throwable, or null if there + * is no cause. + */ + // @ts-ignore + public getCause(): java.lang.Throwable; + /** + * The specified exception is going to be suppressed in order to give priority + * to this exception (primary exception) and to be appended to the list of + * suppressed exceptions. + * This method is typically called by the automatically generated code from the + * try-with-resources statement. + */ + // @ts-ignore + public addSuppressed(exception: java.lang.Throwable): void; + /** + * Returns an array of exceptions suppressed, typically by the automatically + * generated code from the try-with-resources statement, in order to give + * priority to this exception (primary exception). + */ + // @ts-ignore + public getSuppressed(): java.lang.Throwable[]; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.TypeNotPresentException.d.ts b/packages/types/dist/typings/jdk/java.lang.TypeNotPresentException.d.ts new file mode 100644 index 00000000..20658e73 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.TypeNotPresentException.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class TypeNotPresentException extends java.lang.RuntimeException { + /** + * Constructs a TypeNotPresentException for the named type + * with the specified cause. + */ + // @ts-ignore + constructor(typeName: string, cause: java.lang.Throwable) + /** + * Returns the fully qualified name of the unavailable type. + */ + // @ts-ignore + public typeName(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.UnknownError.d.ts b/packages/types/dist/typings/jdk/java.lang.UnknownError.d.ts new file mode 100644 index 00000000..75da3acc --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.UnknownError.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class UnknownError extends java.lang.VirtualMachineError { + /** + * Constructs an UnknownError with no detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs an UnknownError with the specified detail + * message. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.UnsatisfiedLinkError.d.ts b/packages/types/dist/typings/jdk/java.lang.UnsatisfiedLinkError.d.ts new file mode 100644 index 00000000..194aaccf --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.UnsatisfiedLinkError.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class UnsatisfiedLinkError extends java.lang.LinkageError { + /** + * Constructs an UnsatisfiedLinkError with no detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs an UnsatisfiedLinkError with the + * specified detail message. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.UnsupportedClassVersionError.d.ts b/packages/types/dist/typings/jdk/java.lang.UnsupportedClassVersionError.d.ts new file mode 100644 index 00000000..904e8737 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.UnsupportedClassVersionError.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class UnsupportedClassVersionError extends java.lang.ClassFormatError { + /** + * Constructs a UnsupportedClassVersionError + * with no detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs a UnsupportedClassVersionError with + * the specified detail message. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.UnsupportedOperationException.d.ts b/packages/types/dist/typings/jdk/java.lang.UnsupportedOperationException.d.ts new file mode 100644 index 00000000..b0ff3a87 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.UnsupportedOperationException.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class UnsupportedOperationException extends java.lang.RuntimeException { + /** + * Constructs an UnsupportedOperationException with no detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs an UnsupportedOperationException with the specified + * detail message. + */ + // @ts-ignore + constructor(message: string) + /** + * Constructs a new exception with the specified detail message and + * cause. + *

Note that the detail message associated with cause is + * not automatically incorporated in this exception's detail + * message. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Constructs a new exception with the specified cause and a detail + * message of (cause==null ? null : cause.toString()) (which + * typically contains the class and detail message of cause). + * This constructor is useful for exceptions that are little more than + * wrappers for other throwables (for example, {@link + * java.security.PrivilegedActionException}). + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.VerifyError.d.ts b/packages/types/dist/typings/jdk/java.lang.VerifyError.d.ts new file mode 100644 index 00000000..6a10f67e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.VerifyError.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class VerifyError extends java.lang.LinkageError { + /** + * Constructs an VerifyError with no detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs an VerifyError with the specified detail message. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.VirtualMachineError.d.ts b/packages/types/dist/typings/jdk/java.lang.VirtualMachineError.d.ts new file mode 100644 index 00000000..691f7ed1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.VirtualMachineError.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + abstract class VirtualMachineError extends java.lang.Error { + /** + * Constructs a VirtualMachineError with no detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs a VirtualMachineError with the specified + * detail message. + */ + // @ts-ignore + constructor(message: string) + /** + * Constructs a {@code VirtualMachineError} with the specified + * detail message and cause.

Note that the detail message + * associated with {@code cause} is not automatically + * incorporated in this error's detail message. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Constructs an a {@code VirtualMachineError} with the specified + * cause and a detail message of {@code (cause==null ? null : + * cause.toString())} (which typically contains the class and + * detail message of {@code cause}). + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.Void.d.ts b/packages/types/dist/typings/jdk/java.lang.Void.d.ts new file mode 100644 index 00000000..0aba325f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.Void.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + // @ts-ignore + class Void extends java.lang.Object { + // @ts-ignore + public static TYPE: java.lang.Class; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.annotation.Annotation.d.ts b/packages/types/dist/typings/jdk/java.lang.annotation.Annotation.d.ts new file mode 100644 index 00000000..6be52fd2 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.annotation.Annotation.d.ts @@ -0,0 +1,85 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace annotation { + // @ts-ignore + interface Annotation { + /** + * Returns true if the specified object represents an annotation + * that is logically equivalent to this one. In other words, + * returns true if the specified object is an instance of the same + * annotation type as this instance, all of whose members are equal + * to the corresponding member of this annotation, as defined below: + *

    + *
  • Two corresponding primitive typed members whose values are + * x and y are considered equal if x == y, + * unless their type is float or double. + *
  • Two corresponding float members whose values + * are x and y are considered equal if + * Float.valueOf(x).equals(Float.valueOf(y)). + * (Unlike the == operator, NaN is considered equal + * to itself, and 0.0f unequal to -0.0f.) + *
  • Two corresponding double members whose values + * are x and y are considered equal if + * Double.valueOf(x).equals(Double.valueOf(y)). + * (Unlike the == operator, NaN is considered equal + * to itself, and 0.0 unequal to -0.0.) + *
  • Two corresponding String, Class, enum, or + * annotation typed members whose values are x and y + * are considered equal if x.equals(y). (Note that this + * definition is recursive for annotation typed members.) + *
  • Two corresponding array typed members x and y + * are considered equal if Arrays.equals(x, y), for the + * appropriate overloading of {@link java.util.Arrays#equals}. + *
+ */ + // @ts-ignore + equals(obj: java.lang.Object): boolean; + /** + * Returns the hash code of this annotation, as defined below: + *

The hash code of an annotation is the sum of the hash codes + * of its members (including those with default values), as defined + * below: + * The hash code of an annotation member is (127 times the hash code + * of the member-name as computed by {@link String#hashCode()}) XOR + * the hash code of the member-value, as defined below: + *

The hash code of a member-value depends on its type: + *

    + *
  • The hash code of a primitive value v is equal to + * WrapperType.valueOf(v).hashCode(), where + * WrapperType is the wrapper type corresponding + * to the primitive type of v ({@link Byte}, + * {@link Character}, {@link Double}, {@link Float}, {@link Integer}, + * {@link Long}, {@link Short}, or {@link Boolean}). + *
  • The hash code of a string, enum, class, or annotation member-value + * I v is computed as by calling + * v.hashCode(). (In the case of annotation + * member values, this is a recursive definition.) + *
  • The hash code of an array member-value is computed by calling + * the appropriate overloading of + * {@link java.util.Arrays#hashCode(long[]) Arrays.hashCode} + * on the value. (There is one overloading for each primitive + * type, and one for object reference types.) + *
+ */ + // @ts-ignore + hashCode(): number; + /** + * Returns a string representation of this annotation. The details + * of the representation are implementation-dependent, but the following + * may be regarded as typical: + *
+                 * @com.acme.util.Name(first=Alfred, middle=E., last=Neuman)
+                 * 
+ */ + // @ts-ignore + toString(): string; + /** + * Returns the annotation type of this annotation. + */ + // @ts-ignore + annotationType(): java.lang.Class; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.annotation.AnnotationFormatError.d.ts b/packages/types/dist/typings/jdk/java.lang.annotation.AnnotationFormatError.d.ts new file mode 100644 index 00000000..f07c327c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.annotation.AnnotationFormatError.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace annotation { + // @ts-ignore + class AnnotationFormatError extends java.lang.Error { + /** + * Constructs a new AnnotationFormatError with the specified + * detail message. + */ + // @ts-ignore + constructor(message: string) + /** + * Constructs a new AnnotationFormatError with the specified + * detail message and cause. Note that the detail message associated + * with cause is not automatically incorporated in + * this error's detail message. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Constructs a new AnnotationFormatError with the specified + * cause and a detail message of + * (cause == null ? null : cause.toString()) (which + * typically contains the class and detail message of cause). + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.annotation.AnnotationTypeMismatchException.d.ts b/packages/types/dist/typings/jdk/java.lang.annotation.AnnotationTypeMismatchException.d.ts new file mode 100644 index 00000000..39efb2af --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.annotation.AnnotationTypeMismatchException.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace annotation { + // @ts-ignore + class AnnotationTypeMismatchException extends java.lang.RuntimeException { + /** + * Constructs an AnnotationTypeMismatchException for the specified + * annotation type element and found data type. + */ + // @ts-ignore + constructor(element: java.lang.reflect.Method, foundType: string) + /** + * Returns the Method object for the incorrectly typed element. + */ + // @ts-ignore + public element(): java.lang.reflect.Method; + /** + * Returns the type of data found in the incorrectly typed element. + * The returned string may, but is not required to, contain the value + * as well. The exact format of the string is unspecified. + */ + // @ts-ignore + public foundType(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.annotation.Documented.d.ts b/packages/types/dist/typings/jdk/java.lang.annotation.Documented.d.ts new file mode 100644 index 00000000..1cc9c03c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.annotation.Documented.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace annotation { + // @ts-ignore + interface Documented { + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.annotation.ElementType.d.ts b/packages/types/dist/typings/jdk/java.lang.annotation.ElementType.d.ts new file mode 100644 index 00000000..9628214e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.annotation.ElementType.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace annotation { + // @ts-ignore + class ElementType extends java.lang.Enum { + // @ts-ignore + public static TYPE: java.lang.annotation.ElementType; + // @ts-ignore + public static FIELD: java.lang.annotation.ElementType; + // @ts-ignore + public static METHOD: java.lang.annotation.ElementType; + // @ts-ignore + public static PARAMETER: java.lang.annotation.ElementType; + // @ts-ignore + public static CONSTRUCTOR: java.lang.annotation.ElementType; + // @ts-ignore + public static LOCAL_VARIABLE: java.lang.annotation.ElementType; + // @ts-ignore + public static ANNOTATION_TYPE: java.lang.annotation.ElementType; + // @ts-ignore + public static PACKAGE: java.lang.annotation.ElementType; + // @ts-ignore + public static TYPE_PARAMETER: java.lang.annotation.ElementType; + // @ts-ignore + public static TYPE_USE: java.lang.annotation.ElementType; + // @ts-ignore + public static values(): java.lang.annotation.ElementType[]; + // @ts-ignore + public static valueOf(name: string): java.lang.annotation.ElementType; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.annotation.IncompleteAnnotationException.d.ts b/packages/types/dist/typings/jdk/java.lang.annotation.IncompleteAnnotationException.d.ts new file mode 100644 index 00000000..e6fc6321 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.annotation.IncompleteAnnotationException.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace annotation { + // @ts-ignore + class IncompleteAnnotationException extends java.lang.RuntimeException { + /** + * Constructs an IncompleteAnnotationException to indicate that + * the named element was missing from the specified annotation type. + */ + // @ts-ignore + constructor(annotationType: java.lang.Class, elementName: string) + /** + * Returns the Class object for the annotation type with the + * missing element. + */ + // @ts-ignore + public annotationType(): java.lang.Class; + /** + * Returns the name of the missing element. + */ + // @ts-ignore + public elementName(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.annotation.Inherited.d.ts b/packages/types/dist/typings/jdk/java.lang.annotation.Inherited.d.ts new file mode 100644 index 00000000..b3666aba --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.annotation.Inherited.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace annotation { + // @ts-ignore + interface Inherited { + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.annotation.Native.d.ts b/packages/types/dist/typings/jdk/java.lang.annotation.Native.d.ts new file mode 100644 index 00000000..f88eb1dc --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.annotation.Native.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace annotation { + // @ts-ignore + interface Native { + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.annotation.Repeatable.d.ts b/packages/types/dist/typings/jdk/java.lang.annotation.Repeatable.d.ts new file mode 100644 index 00000000..871b0074 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.annotation.Repeatable.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace annotation { + // @ts-ignore + interface Repeatable { + /** + * Indicates the containing annotation type for the + * repeatable annotation type. + */ + // @ts-ignore + value(): java.lang.Class; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.annotation.Retention.d.ts b/packages/types/dist/typings/jdk/java.lang.annotation.Retention.d.ts new file mode 100644 index 00000000..d2fa0cfb --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.annotation.Retention.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace annotation { + // @ts-ignore + interface Retention { + /** + * Returns the retention policy. + */ + // @ts-ignore + value(): java.lang.annotation.RetentionPolicy; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.annotation.RetentionPolicy.d.ts b/packages/types/dist/typings/jdk/java.lang.annotation.RetentionPolicy.d.ts new file mode 100644 index 00000000..932d9384 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.annotation.RetentionPolicy.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace annotation { + // @ts-ignore + class RetentionPolicy extends java.lang.Enum { + // @ts-ignore + public static SOURCE: java.lang.annotation.RetentionPolicy; + // @ts-ignore + public static CLASS: java.lang.annotation.RetentionPolicy; + // @ts-ignore + public static RUNTIME: java.lang.annotation.RetentionPolicy; + // @ts-ignore + public static values(): java.lang.annotation.RetentionPolicy[]; + // @ts-ignore + public static valueOf(name: string): java.lang.annotation.RetentionPolicy; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.annotation.Target.d.ts b/packages/types/dist/typings/jdk/java.lang.annotation.Target.d.ts new file mode 100644 index 00000000..f4a85caa --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.annotation.Target.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace annotation { + // @ts-ignore + interface Target { + /** + * Returns an array of the kinds of elements an annotation type + * can be applied to. + */ + // @ts-ignore + value(): java.lang.annotation.ElementType[]; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.instrument.ClassDefinition.d.ts b/packages/types/dist/typings/jdk/java.lang.instrument.ClassDefinition.d.ts new file mode 100644 index 00000000..d810ddf0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.instrument.ClassDefinition.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace instrument { + // @ts-ignore + class ClassDefinition extends java.lang.Object { + /** + * Creates a new ClassDefinition binding using the supplied + * class and class file bytes. Does not copy the supplied buffer, just captures a reference to it. + */ + // @ts-ignore + constructor(theClass: java.lang.Class, theClassFile: number) + /** + * Returns the class. + */ + // @ts-ignore + public getDefinitionClass(): java.lang.Class; + /** + * Returns the array of bytes that contains the new class file. + */ + // @ts-ignore + public getDefinitionClassFile(): number[]; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.instrument.ClassFileTransformer.d.ts b/packages/types/dist/typings/jdk/java.lang.instrument.ClassFileTransformer.d.ts new file mode 100644 index 00000000..6843e04b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.instrument.ClassFileTransformer.d.ts @@ -0,0 +1,117 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace instrument { + // @ts-ignore + interface ClassFileTransformer { + /** + * The implementation of this method may transform the supplied class file and + * return a new replacement class file. + *

+ * There are two kinds of transformers, determined by the canRetransform + * parameter of + * {@link java.lang.instrument.Instrumentation#addTransformer(ClassFileTransformer,boolean)}: + *

    + *
  • retransformation capable transformers that were added with + * canRetransform as true + *
  • + *
  • retransformation incapable transformers that were added with + * canRetransform as false or where added with + * {@link java.lang.instrument.Instrumentation#addTransformer(ClassFileTransformer)} + *
  • + *
+ *

+ * Once a transformer has been registered with + * {@link java.lang.instrument.Instrumentation#addTransformer(ClassFileTransformer,boolean) + * addTransformer}, + * the transformer will be called for every new class definition and every class redefinition. + * Retransformation capable transformers will also be called on every class retransformation. + * The request for a new class definition is made with + * {@link java.lang.ClassLoader#defineClass ClassLoader.defineClass} + * or its native equivalents. + * The request for a class redefinition is made with + * {@link java.lang.instrument.Instrumentation#redefineClasses Instrumentation.redefineClasses} + * or its native equivalents. + * The request for a class retransformation is made with + * {@link java.lang.instrument.Instrumentation#retransformClasses Instrumentation.retransformClasses} + * or its native equivalents. + * The transformer is called during the processing of the request, before the class file bytes + * have been verified or applied. + * When there are multiple transformers, transformations are composed by chaining the + * transform calls. + * That is, the byte array returned by one call to transform becomes the input + * (via the classfileBuffer parameter) to the next call. + *

+ * Transformations are applied in the following order: + *

    + *
  • Retransformation incapable transformers + *
  • + *
  • Retransformation incapable native transformers + *
  • + *
  • Retransformation capable transformers + *
  • + *
  • Retransformation capable native transformers + *
  • + *
+ *

+ * For retransformations, the retransformation incapable transformers are not + * called, instead the result of the previous transformation is reused. + * In all other cases, this method is called. + * Within each of these groupings, transformers are called in the order registered. + * Native transformers are provided by the ClassFileLoadHook event + * in the Java Virtual Machine Tool Interface). + *

+ * The input (via the classfileBuffer parameter) to the first + * transformer is: + *

    + *
  • for new class definition, + * the bytes passed to ClassLoader.defineClass + *
  • + *
  • for class redefinition, + * definitions.getDefinitionClassFile() where + * definitions is the parameter to + * {@link java.lang.instrument.Instrumentation#redefineClasses + * Instrumentation.redefineClasses} + *
  • + *
  • for class retransformation, + * the bytes passed to the new class definition or, if redefined, + * the last redefinition, with all transformations made by retransformation + * incapable transformers reapplied automatically and unaltered; + * for details see + * {@link java.lang.instrument.Instrumentation#retransformClasses + * Instrumentation.retransformClasses} + *
  • + *
+ *

+ * If the implementing method determines that no transformations are needed, + * it should return null. + * Otherwise, it should create a new byte[] array, + * copy the input classfileBuffer into it, + * along with all desired transformations, and return the new array. + * The input classfileBuffer must not be modified. + *

+ * In the retransform and redefine cases, + * the transformer must support the redefinition semantics: + * if a class that the transformer changed during initial definition is later + * retransformed or redefined, the + * transformer must insure that the second class output class file is a legal + * redefinition of the first output class file. + *

+ * If the transformer throws an exception (which it doesn't catch), + * subsequent transformers will still be called and the load, redefine + * or retransform will still be attempted. + * Thus, throwing an exception has the same effect as returning null. + * To prevent unexpected behavior when unchecked exceptions are generated + * in transformer code, a transformer can catch Throwable. + * If the transformer believes the classFileBuffer does not + * represent a validly formatted class file, it should throw + * an IllegalClassFormatException; + * while this has the same effect as returning null. it facilitates the + * logging or debugging of format corruptions. + */ + // @ts-ignore + transform(loader: java.lang.ClassLoader, className: string, classBeingRedefined: java.lang.Class, protectionDomain: java.security.ProtectionDomain, classfileBuffer: number): number[]; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.instrument.IllegalClassFormatException.d.ts b/packages/types/dist/typings/jdk/java.lang.instrument.IllegalClassFormatException.d.ts new file mode 100644 index 00000000..0711e8c1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.instrument.IllegalClassFormatException.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace instrument { + // @ts-ignore + class IllegalClassFormatException extends java.lang.Exception { + /** + * Constructs an IllegalClassFormatException with no + * detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs an IllegalClassFormatException with the + * specified detail message. + */ + // @ts-ignore + constructor(s: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.instrument.Instrumentation.d.ts b/packages/types/dist/typings/jdk/java.lang.instrument.Instrumentation.d.ts new file mode 100644 index 00000000..d70d2b4f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.instrument.Instrumentation.d.ts @@ -0,0 +1,424 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace instrument { + // @ts-ignore + interface Instrumentation { + /** + * Registers the supplied transformer. All future class definitions + * will be seen by the transformer, except definitions of classes upon which any + * registered transformer is dependent. + * The transformer is called when classes are loaded, when they are + * {@linkplain #redefineClasses redefined}. and if canRetransform is true, + * when they are {@linkplain #retransformClasses retransformed}. + * See {@link java.lang.instrument.ClassFileTransformer#transform + * ClassFileTransformer.transform} for the order + * of transform calls. + * If a transformer throws + * an exception during execution, the JVM will still call the other registered + * transformers in order. The same transformer may be added more than once, + * but it is strongly discouraged -- avoid this by creating a new instance of + * transformer class. + *

+ * This method is intended for use in instrumentation, as described in the + * {@linkplain Instrumentation class specification}. + */ + // @ts-ignore + addTransformer(transformer: java.lang.instrument.ClassFileTransformer, canRetransform: boolean): void; + /** + * Registers the supplied transformer. + *

+ * Same as addTransformer(transformer, false). + */ + // @ts-ignore + addTransformer(transformer: java.lang.instrument.ClassFileTransformer): void; + /** + * Unregisters the supplied transformer. Future class definitions will + * not be shown to the transformer. Removes the most-recently-added matching + * instance of the transformer. Due to the multi-threaded nature of + * class loading, it is possible for a transformer to receive calls + * after it has been removed. Transformers should be written defensively + * to expect this situation. + */ + // @ts-ignore + removeTransformer(transformer: java.lang.instrument.ClassFileTransformer): boolean; + /** + * Returns whether or not the current JVM configuration supports retransformation + * of classes. + * The ability to retransform an already loaded class is an optional capability + * of a JVM. + * Retransformation will only be supported if the + * Can-Retransform-Classes manifest attribute is set to + * true in the agent JAR file (as described in the + * {@linkplain java.lang.instrument package specification}) and the JVM supports + * this capability. + * During a single instantiation of a single JVM, multiple calls to this + * method will always return the same answer. + */ + // @ts-ignore + isRetransformClassesSupported(): boolean; + /** + * Retransform the supplied set of classes. + *

+ * This function facilitates the instrumentation + * of already loaded classes. + * When classes are initially loaded or when they are + * {@linkplain #redefineClasses redefined}, + * the initial class file bytes can be transformed with the + * {@link java.lang.instrument.ClassFileTransformer ClassFileTransformer}. + * This function reruns the transformation process + * (whether or not a transformation has previously occurred). + * This retransformation follows these steps: + *

    + *
  • starting from the initial class file bytes + *
  • + *
  • for each transformer that was added with canRetransform + * false, the bytes returned by + * {@link java.lang.instrument.ClassFileTransformer#transform transform} + * during the last class load or redefine are + * reused as the output of the transformation; note that this is + * equivalent to reapplying the previous transformation, unaltered; + * except that + * {@link java.lang.instrument.ClassFileTransformer#transform transform} + * is not called + *
  • + *
  • for each transformer that was added with canRetransform + * true, the + * {@link java.lang.instrument.ClassFileTransformer#transform transform} + * method is called in these transformers + *
  • + *
  • the transformed class file bytes are installed as the new + * definition of the class + *
  • + *
+ *

+ * The order of transformation is described in the + * {@link java.lang.instrument.ClassFileTransformer#transform transform} method. + * This same order is used in the automatic reapplication of retransformation + * incapable transforms. + *

+ * The initial class file bytes represent the bytes passed to + * {@link java.lang.ClassLoader#defineClass ClassLoader.defineClass} or + * {@link #redefineClasses redefineClasses} + * (before any transformations + * were applied), however they might not exactly match them. + * The constant pool might not have the same layout or contents. + * The constant pool may have more or fewer entries. + * Constant pool entries may be in a different order; however, + * constant pool indices in the bytecodes of methods will correspond. + * Some attributes may not be present. + * Where order is not meaningful, for example the order of methods, + * order might not be preserved. + *

+ * This method operates on + * a set in order to allow interdependent changes to more than one class at the same time + * (a retransformation of class A can require a retransformation of class B). + *

+ * If a retransformed method has active stack frames, those active frames continue to + * run the bytecodes of the original method. + * The retransformed method will be used on new invokes. + *

+ * This method does not cause any initialization except that which would occur + * under the customary JVM semantics. In other words, redefining a class + * does not cause its initializers to be run. The values of static variables + * will remain as they were prior to the call. + *

+ * Instances of the retransformed class are not affected. + *

+ * The retransformation may change method bodies, the constant pool and attributes. + * The retransformation must not add, remove or rename fields or methods, change the + * signatures of methods, or change inheritance. These restrictions maybe be + * lifted in future versions. The class file bytes are not checked, verified and installed + * until after the transformations have been applied, if the resultant bytes are in + * error this method will throw an exception. + *

+ * If this method throws an exception, no classes have been retransformed. + *

+ * This method is intended for use in instrumentation, as described in the + * {@linkplain Instrumentation class specification}. + */ + // @ts-ignore + retransformClasses(classes: java.lang.Class): void; + /** + * Returns whether or not the current JVM configuration supports redefinition + * of classes. + * The ability to redefine an already loaded class is an optional capability + * of a JVM. + * Redefinition will only be supported if the + * Can-Redefine-Classes manifest attribute is set to + * true in the agent JAR file (as described in the + * {@linkplain java.lang.instrument package specification}) and the JVM supports + * this capability. + * During a single instantiation of a single JVM, multiple calls to this + * method will always return the same answer. + */ + // @ts-ignore + isRedefineClassesSupported(): boolean; + /** + * Redefine the supplied set of classes using the supplied class files. + *

+ * This method is used to replace the definition of a class without reference + * to the existing class file bytes, as one might do when recompiling from source + * for fix-and-continue debugging. + * Where the existing class file bytes are to be transformed (for + * example in bytecode instrumentation) + * {@link #retransformClasses retransformClasses} + * should be used. + *

+ * This method operates on + * a set in order to allow interdependent changes to more than one class at the same time + * (a redefinition of class A can require a redefinition of class B). + *

+ * If a redefined method has active stack frames, those active frames continue to + * run the bytecodes of the original method. + * The redefined method will be used on new invokes. + *

+ * This method does not cause any initialization except that which would occur + * under the customary JVM semantics. In other words, redefining a class + * does not cause its initializers to be run. The values of static variables + * will remain as they were prior to the call. + *

+ * Instances of the redefined class are not affected. + *

+ * The redefinition may change method bodies, the constant pool and attributes. + * The redefinition must not add, remove or rename fields or methods, change the + * signatures of methods, or change inheritance. These restrictions maybe be + * lifted in future versions. The class file bytes are not checked, verified and installed + * until after the transformations have been applied, if the resultant bytes are in + * error this method will throw an exception. + *

+ * If this method throws an exception, no classes have been redefined. + *

+ * This method is intended for use in instrumentation, as described in the + * {@linkplain Instrumentation class specification}. + */ + // @ts-ignore + redefineClasses(definitions: java.lang.instrument.ClassDefinition): void; + /** + * Determines whether a class is modifiable by + * {@linkplain #retransformClasses retransformation} + * or {@linkplain #redefineClasses redefinition}. + * If a class is modifiable then this method returns true. + * If a class is not modifiable then this method returns false. + *

+ * For a class to be retransformed, {@link #isRetransformClassesSupported} must also be true. + * But the value of isRetransformClassesSupported() does not influence the value + * returned by this function. + * For a class to be redefined, {@link #isRedefineClassesSupported} must also be true. + * But the value of isRedefineClassesSupported() does not influence the value + * returned by this function. + *

+ * Primitive classes (for example, java.lang.Integer.TYPE) + * and array classes are never modifiable. + */ + // @ts-ignore + isModifiableClass(theClass: java.lang.Class): boolean; + /** + * Returns an array of all classes currently loaded by the JVM. + */ + // @ts-ignore + getAllLoadedClasses(): java.lang.Class[]; + /** + * Returns an array of all classes for which loader is an initiating loader. + * If the supplied loader is null, classes initiated by the bootstrap class + * loader are returned. + */ + // @ts-ignore + getInitiatedClasses(loader: java.lang.ClassLoader): java.lang.Class[]; + /** + * Returns an implementation-specific approximation of the amount of storage consumed by + * the specified object. The result may include some or all of the object's overhead, + * and thus is useful for comparison within an implementation but not between implementations. + * The estimate may change during a single invocation of the JVM. + */ + // @ts-ignore + getObjectSize(objectToSize: java.lang.Object): number; + /** + * Specifies a JAR file with instrumentation classes to be defined by the + * bootstrap class loader. + *

When the virtual machine's built-in class loader, known as the "bootstrap + * class loader", unsuccessfully searches for a class, the entries in the {@link + * java.util.jar.JarFile JAR file} will be searched as well. + *

This method may be used multiple times to add multiple JAR files to be + * searched in the order that this method was invoked. + *

The agent should take care to ensure that the JAR does not contain any + * classes or resources other than those to be defined by the bootstrap + * class loader for the purpose of instrumentation. + * Failure to observe this warning could result in unexpected + * behavior that is difficult to diagnose. For example, suppose there is a + * loader L, and L's parent for delegation is the bootstrap class loader. + * Furthermore, a method in class C, a class defined by L, makes reference to + * a non-public accessor class C$1. If the JAR file contains a class C$1 then + * the delegation to the bootstrap class loader will cause C$1 to be defined + * by the bootstrap class loader. In this example an IllegalAccessError + * will be thrown that may cause the application to fail. One approach to + * avoiding these types of issues, is to use a unique package name for the + * instrumentation classes. + *

+ * The Java™ Virtual Machine Specification + * specifies that a subsequent attempt to resolve a symbolic + * reference that the Java virtual machine has previously unsuccessfully attempted + * to resolve always fails with the same error that was thrown as a result of the + * initial resolution attempt. Consequently, if the JAR file contains an entry + * that corresponds to a class for which the Java virtual machine has + * unsuccessfully attempted to resolve a reference, then subsequent attempts to + * resolve that reference will fail with the same error as the initial attempt. + */ + // @ts-ignore + appendToBootstrapClassLoaderSearch(jarfile: java.util.jar.JarFile): void; + /** + * Specifies a JAR file with instrumentation classes to be defined by the + * system class loader. + * When the system class loader for delegation (see + * {@link java.lang.ClassLoader#getSystemClassLoader getSystemClassLoader()}) + * unsuccessfully searches for a class, the entries in the {@link + * java.util.jar.JarFile JarFile} will be searched as well. + *

This method may be used multiple times to add multiple JAR files to be + * searched in the order that this method was invoked. + *

The agent should take care to ensure that the JAR does not contain any + * classes or resources other than those to be defined by the system class + * loader for the purpose of instrumentation. + * Failure to observe this warning could result in unexpected + * behavior that is difficult to diagnose (see + * {@link #appendToBootstrapClassLoaderSearch + * appendToBootstrapClassLoaderSearch}). + *

The system class loader supports adding a JAR file to be searched if + * it implements a method named appendToClassPathForInstrumentation + * which takes a single parameter of type java.lang.String. The + * method is not required to have public access. The name of + * the JAR file is obtained by invoking the {@link java.util.zip.ZipFile#getName + * getName()} method on the jarfile and this is provided as the + * parameter to the appendToClassPathForInstrumentation method. + *

+ * The Java™ Virtual Machine Specification + * specifies that a subsequent attempt to resolve a symbolic + * reference that the Java virtual machine has previously unsuccessfully attempted + * to resolve always fails with the same error that was thrown as a result of the + * initial resolution attempt. Consequently, if the JAR file contains an entry + * that corresponds to a class for which the Java virtual machine has + * unsuccessfully attempted to resolve a reference, then subsequent attempts to + * resolve that reference will fail with the same error as the initial attempt. + *

This method does not change the value of java.class.path + * {@link java.lang.System#getProperties system property}. + */ + // @ts-ignore + appendToSystemClassLoaderSearch(jarfile: java.util.jar.JarFile): void; + /** + * Returns whether the current JVM configuration supports + * {@linkplain #setNativeMethodPrefix(ClassFileTransformer,String) + * setting a native method prefix}. + * The ability to set a native method prefix is an optional + * capability of a JVM. + * Setting a native method prefix will only be supported if the + * Can-Set-Native-Method-Prefix manifest attribute is set to + * true in the agent JAR file (as described in the + * {@linkplain java.lang.instrument package specification}) and the JVM supports + * this capability. + * During a single instantiation of a single JVM, multiple + * calls to this method will always return the same answer. + */ + // @ts-ignore + isNativeMethodPrefixSupported(): boolean; + /** + * This method modifies the failure handling of + * native method resolution by allowing retry + * with a prefix applied to the name. + * When used with the + * {@link java.lang.instrument.ClassFileTransformer ClassFileTransformer}, + * it enables native methods to be + * instrumented. + *

+ * Since native methods cannot be directly instrumented + * (they have no bytecodes), they must be wrapped with + * a non-native method which can be instrumented. + * For example, if we had: + *

+                 * native boolean foo(int x);
+ *

+ * We could transform the class file (with the + * ClassFileTransformer during the initial definition + * of the class) so that this becomes: + *

+                 * boolean foo(int x) {
+                 * ... record entry to foo ...
+                 * return wrapped_foo(x);
+                 * }
+                 * native boolean wrapped_foo(int x);
+ *

+ * Where foo becomes a wrapper for the actual native + * method with the appended prefix "wrapped_". Note that + * "wrapped_" would be a poor choice of prefix since it + * might conceivably form the name of an existing method + * thus something like "$$$MyAgentWrapped$$$_" would be + * better but would make these examples less readable. + *

+ * The wrapper will allow data to be collected on the native + * method call, but now the problem becomes linking up the + * wrapped method with the native implementation. + * That is, the method wrapped_foo needs to be + * resolved to the native implementation of foo, + * which might be: + *

+                 * Java_somePackage_someClass_foo(JNIEnv* env, jint x)
+ *

+ * This function allows the prefix to be specified and the + * proper resolution to occur. + * Specifically, when the standard resolution fails, the + * resolution is retried taking the prefix into consideration. + * There are two ways that resolution occurs, explicit + * resolution with the JNI function RegisterNatives + * and the normal automatic resolution. For + * RegisterNatives, the JVM will attempt this + * association: + *

{@code
+                 * method(foo) -> nativeImplementation(foo)
+                 * }
+ *

+ * When this fails, the resolution will be retried with + * the specified prefix prepended to the method name, + * yielding the correct resolution: + *

{@code
+                 * method(wrapped_foo) -> nativeImplementation(foo)
+                 * }
+ *

+ * For automatic resolution, the JVM will attempt: + *

{@code
+                 * method(wrapped_foo) -> nativeImplementation(wrapped_foo)
+                 * }
+ *

+ * When this fails, the resolution will be retried with + * the specified prefix deleted from the implementation name, + * yielding the correct resolution: + *

{@code
+                 * method(wrapped_foo) -> nativeImplementation(foo)
+                 * }
+ *

+ * Note that since the prefix is only used when standard + * resolution fails, native methods can be wrapped selectively. + *

+ * Since each ClassFileTransformer + * can do its own transformation of the bytecodes, more + * than one layer of wrappers may be applied. Thus each + * transformer needs its own prefix. Since transformations + * are applied in order, the prefixes, if applied, will + * be applied in the same order + * (see {@link #addTransformer(ClassFileTransformer,boolean) addTransformer}). + * Thus if three transformers applied + * wrappers, foo might become + * $trans3_$trans2_$trans1_foo. But if, say, + * the second transformer did not apply a wrapper to + * foo it would be just + * $trans3_$trans1_foo. To be able to + * efficiently determine the sequence of prefixes, + * an intermediate prefix is only applied if its non-native + * wrapper exists. Thus, in the last example, even though + * $trans1_foo is not a native method, the + * $trans1_ prefix is applied since + * $trans1_foo exists. + */ + // @ts-ignore + setNativeMethodPrefix(transformer: java.lang.instrument.ClassFileTransformer, prefix: string): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.instrument.UnmodifiableClassException.d.ts b/packages/types/dist/typings/jdk/java.lang.instrument.UnmodifiableClassException.d.ts new file mode 100644 index 00000000..aeed6986 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.instrument.UnmodifiableClassException.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace instrument { + // @ts-ignore + class UnmodifiableClassException extends java.lang.Exception { + /** + * Constructs an UnmodifiableClassException with no + * detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs an UnmodifiableClassException with the + * specified detail message. + */ + // @ts-ignore + constructor(s: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.invoke.CallSite.d.ts b/packages/types/dist/typings/jdk/java.lang.invoke.CallSite.d.ts new file mode 100644 index 00000000..3dad2218 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.invoke.CallSite.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace invoke { + // @ts-ignore + abstract class CallSite extends java.lang.Object { + /** + * Report the type of CallSite's target MethodHandle. + * A CallSite cannot change its type. + */ + // @ts-ignore + public type(): java.lang.invoke.MethodType; + /** + * Return the target MethodHandle of the CallSite. + */ + // @ts-ignore + public abstract getTarget(): java.lang.invoke.MethodHandle; + /** + * Set the CallSite's target to be nextTarget. + * The nextTarget MethodHandle must have the same type as the CallSite. + */ + // @ts-ignore + public abstract setTarget(nextTarget: java.lang.invoke.MethodHandle): void; + /** + * Return a MethodHandle equivalent to the invokedynamic instruction on this CallSite. + * The MethodHandle is equivalent to getTarget().invokeExact(args). + */ + // @ts-ignore + public abstract dynamicInvoker(): java.lang.invoke.MethodHandle; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.invoke.ConstantCallSite.d.ts b/packages/types/dist/typings/jdk/java.lang.invoke.ConstantCallSite.d.ts new file mode 100644 index 00000000..7c3745b5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.invoke.ConstantCallSite.d.ts @@ -0,0 +1,47 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace invoke { + // @ts-ignore + class ConstantCallSite extends java.lang.invoke.CallSite { + /** + * Create a ConstantCallSite with a target MethodHandle that cannot change. + */ + // @ts-ignore + constructor(permanentTarget: java.lang.invoke.MethodHandle) + /** + * Create a ConstantCallSite and assign the hook MethodHandle's result to its permanent target. + * The hook MethodHandle is invoked as though by (@link MethodHandle#invoke(this)) and must return a MethodHandle that will be installed + * as the ConstantCallSite's target. + *

+ * The hook MethodHandle is required if the ConstantCallSite's target needs to have access to the ConstantCallSite instance. This is an + * action that user code cannot perform on its own. + *

+ * The hook must return a MethodHandle that is exactly of type targetType. + *

+ * Until the result of the hook has been installed in the ConstantCallSite, any call to getTarget() or dynamicInvoker() will throw an + * IllegalStateException. It is always valid to call type(). + */ + // @ts-ignore + constructor(targetType: java.lang.invoke.MethodType, hook: java.lang.invoke.MethodHandle) + /** + * Return the target MethodHandle of this CallSite. + */ + // @ts-ignore + public dynamicInvoker(): java.lang.invoke.MethodHandle; + /** + * Return the target MethodHandle of this CallSite. + * The target is defined as though it where a final field. + */ + // @ts-ignore + public getTarget(): java.lang.invoke.MethodHandle; + /** + * Throws UnsupportedOperationException as a ConstantCallSite is permanently + * bound to its initial target MethodHandle. + */ + // @ts-ignore + public setTarget(newTarget: java.lang.invoke.MethodHandle): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.invoke.LambdaConversionException.d.ts b/packages/types/dist/typings/jdk/java.lang.invoke.LambdaConversionException.d.ts new file mode 100644 index 00000000..26be5a18 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.invoke.LambdaConversionException.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace invoke { + // @ts-ignore + class LambdaConversionException extends java.lang.Exception { + /** + * Constructs a {@code LambdaConversionException}. + */ + // @ts-ignore + constructor() + /** + * Constructs a {@code LambdaConversionException} with a message. + */ + // @ts-ignore + constructor(message: string) + /** + * Constructs a {@code LambdaConversionException} with a message and cause. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Constructs a {@code LambdaConversionException} with a cause. + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + /** + * Constructs a {@code LambdaConversionException} with a message, + * cause, and other settings. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable, enableSuppression: boolean, writableStackTrace: boolean) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.invoke.LambdaMetafactory.d.ts b/packages/types/dist/typings/jdk/java.lang.invoke.LambdaMetafactory.d.ts new file mode 100644 index 00000000..5d4fcb98 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.invoke.LambdaMetafactory.d.ts @@ -0,0 +1,122 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace invoke { + // @ts-ignore + class LambdaMetafactory extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static FLAG_SERIALIZABLE: number; + // @ts-ignore + public static FLAG_MARKERS: number; + // @ts-ignore + public static FLAG_BRIDGES: number; + /** + * Facilitates the creation of simple "function objects" that implement one + * or more interfaces by delegation to a provided {@link MethodHandle}, + * after appropriate type adaptation and partial evaluation of arguments. + * Typically used as a bootstrap method for {@code invokedynamic} + * call sites, to support the lambda expression and method + * reference expression features of the Java Programming Language. + *

This is the standard, streamlined metafactory; additional flexibility + * is provided by {@link #altMetafactory(MethodHandles.Lookup, String, MethodType, Object...)}. + * A general description of the behavior of this method is provided + * {@link LambdaMetafactory above}. + *

When the target of the {@code CallSite} returned from this method is + * invoked, the resulting function objects are instances of a class which + * implements the interface named by the return type of {@code invokedType}, + * declares a method with the name given by {@code invokedName} and the + * signature given by {@code samMethodType}. It may also override additional + * methods from {@code Object}. + */ + // @ts-ignore + public static metafactory(caller: java.lang.invoke.MethodHandles.Lookup, invokedName: string, invokedType: java.lang.invoke.MethodType, samMethodType: java.lang.invoke.MethodType, implMethod: java.lang.invoke.MethodHandle, instantiatedMethodType: java.lang.invoke.MethodType): java.lang.invoke.CallSite; + /** + * Facilitates the creation of simple "function objects" that implement one + * or more interfaces by delegation to a provided {@link MethodHandle}, + * after appropriate type adaptation and partial evaluation of arguments. + * Typically used as a bootstrap method for {@code invokedynamic} + * call sites, to support the lambda expression and method + * reference expression features of the Java Programming Language. + *

This is the general, more flexible metafactory; a streamlined version + * is provided by {@link #metafactory(java.lang.invoke.MethodHandles.Lookup, + * String, MethodType, MethodType, MethodHandle, MethodType)}. + * A general description of the behavior of this method is provided + * {@link LambdaMetafactory above}. + *

The argument list for this method includes three fixed parameters, + * corresponding to the parameters automatically stacked by the VM for the + * bootstrap method in an {@code invokedynamic} invocation, and an {@code Object[]} + * parameter that contains additional parameters. The declared argument + * list for this method is: + *

{@code
+                 * CallSite altMetafactory(MethodHandles.Lookup caller,
+                 * String invokedName,
+                 * MethodType invokedType,
+                 * Object... args)
+                 * }
+ *

but it behaves as if the argument list is as follows: + *

{@code
+                 * CallSite altMetafactory(MethodHandles.Lookup caller,
+                 * String invokedName,
+                 * MethodType invokedType,
+                 * MethodType samMethodType,
+                 * MethodHandle implMethod,
+                 * MethodType instantiatedMethodType,
+                 * int flags,
+                 * int markerInterfaceCount,  // IF flags has MARKERS set
+                 * Class... markerInterfaces, // IF flags has MARKERS set
+                 * int bridgeCount,           // IF flags has BRIDGES set
+                 * MethodType... bridges      // IF flags has BRIDGES set
+                 * )
+                 * }
+ *

Arguments that appear in the argument list for + * {@link #metafactory(MethodHandles.Lookup, String, MethodType, MethodType, MethodHandle, MethodType)} + * have the same specification as in that method. The additional arguments + * are interpreted as follows: + *

    + *
  • {@code flags} indicates additional options; this is a bitwise + * OR of desired flags. Defined flags are {@link #FLAG_BRIDGES}, + * {@link #FLAG_MARKERS}, and {@link #FLAG_SERIALIZABLE}.
  • + *
  • {@code markerInterfaceCount} is the number of additional interfaces + * the function object should implement, and is present if and only if the + * {@code FLAG_MARKERS} flag is set.
  • + *
  • {@code markerInterfaces} is a variable-length list of additional + * interfaces to implement, whose length equals {@code markerInterfaceCount}, + * and is present if and only if the {@code FLAG_MARKERS} flag is set.
  • + *
  • {@code bridgeCount} is the number of additional method signatures + * the function object should implement, and is present if and only if + * the {@code FLAG_BRIDGES} flag is set.
  • + *
  • {@code bridges} is a variable-length list of additional + * methods signatures to implement, whose length equals {@code bridgeCount}, + * and is present if and only if the {@code FLAG_BRIDGES} flag is set.
  • + *
+ *

Each class named by {@code markerInterfaces} is subject to the same + * restrictions as {@code Rd}, the return type of {@code invokedType}, + * as described {@link LambdaMetafactory above}. Each {@code MethodType} + * named by {@code bridges} is subject to the same restrictions as + * {@code samMethodType}, as described {@link LambdaMetafactory above}. + *

When FLAG_SERIALIZABLE is set in {@code flags}, the function objects + * will implement {@code Serializable}, and will have a {@code writeReplace} + * method that returns an appropriate {@link SerializedLambda}. The + * {@code caller} class must have an appropriate {@code $deserializeLambda$} + * method, as described in {@link SerializedLambda}. + *

When the target of the {@code CallSite} returned from this method is + * invoked, the resulting function objects are instances of a class with + * the following properties: + *

    + *
  • The class implements the interface named by the return type + * of {@code invokedType} and any interfaces named by {@code markerInterfaces}
  • + *
  • The class declares methods with the name given by {@code invokedName}, + * and the signature given by {@code samMethodType} and additional signatures + * given by {@code bridges}
  • + *
  • The class may override methods from {@code Object}, and may + * implement methods related to serialization.
  • + *
+ */ + // @ts-ignore + public static altMetafactory(caller: java.lang.invoke.MethodHandles.Lookup, invokedName: string, invokedType: java.lang.invoke.MethodType, args: java.lang.Object): java.lang.invoke.CallSite; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.invoke.MethodHandle.d.ts b/packages/types/dist/typings/jdk/java.lang.invoke.MethodHandle.d.ts new file mode 100644 index 00000000..d85e1111 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.invoke.MethodHandle.d.ts @@ -0,0 +1,104 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace invoke { + // @ts-ignore + abstract class MethodHandle extends java.lang.Object { + /** + * Invoke the receiver MethodHandle against the supplied arguments. The types of the arguments + * must be an exact match for the MethodType of the MethodHandle. + */ + // @ts-ignore + public invokeExact(args: java.lang.Object): java.lang.Object; + /** + * Invoke the receiver MethodHandle against the supplied arguments. If the types of the arguments + * are not an exact match for the MethodType of the MethodHandle, conversions will be applied as + * possible. The signature and the MethodHandle's MethodType must have the same number of arguments. + */ + // @ts-ignore + public invoke(args: java.lang.Object): java.lang.Object; + /** + * The MethodType of the MethodHandle. Invocation must match this MethodType. + */ + // @ts-ignore + public type(): java.lang.invoke.MethodType; + /** + * Produce a MethodHandle that has an array of type arrayClass as its last argument and replaces the + * array with spreadCount arguments from the array before calling the original MethodHandle. The + * MethodType of new the methodhandle and the original methodhandle will differ only in the regards to the + * last arguments. + *

+ * The array must contain exactly spreadCount arguments to be passed to the original methodhandle. The array + * may be null in the case when spreadCount is zero. Incorrect argument array size will cause the method to + * throw an IllegalArgumentException instead of invoking the target. + */ + // @ts-ignore + public asSpreader(arrayClass: java.lang.Class, spreadCount: number): java.lang.invoke.MethodHandle; + /** + * Returns a MethodHandle that collects the requested incoming arguments, which must match the + * types in MethodType incomingArgs, into an array of arrayClass, called T. + * This method can only be called on MethodHandles that have type() such that their last parameter + * can be assigned to from an instance of arrayClass. An IllegalArgumentException will be + * thrown if this is not the case. + * This take a MH with type (Something, Something, K)R and presents a MethodType with the form + * (Something, Something, T, T, T)R. Where K is assignable to from an array of arrayClass T. + */ + // @ts-ignore + public asCollector(arrayClass: java.lang.Class, collectCount: number): java.lang.invoke.MethodHandle; + /** + * Returns a MethodHandle that presents as being of MethodType newType. It will + * convert the arguments used to match type(). If a conversion is invalid, a + * ClassCastException will be thrown. + * If newType == type(), then the original MethodHandle may be returned. + * TODO: Describe the type conversion rules here. + * If the return type T1 is void, any returned value is discarded + * If the return type T0 is void and T1 a reference, a null value is introduced. + * If the return type T0 is void and T1 a primitive, a zero value is introduced. + */ + // @ts-ignore + public asType(newType: java.lang.invoke.MethodType): java.lang.invoke.MethodHandle; + /** + * Invoke the MethodHandle using an Object[] of arguments. The array must contain at exactly type().parameterCount() arguments. + * Each of the arguments in the array will be coerced to the appropriate type, if possible, based on the MethodType. + */ + // @ts-ignore + public invokeWithArguments(args: java.lang.Object): java.lang.Object; + /** + * Helper method to call {@link #invokeWithArguments(Object[])}. + */ + // @ts-ignore + public invokeWithArguments(args: java.util.List): java.lang.Object; + /** + * Create an varargs collector adapter on this MethodHandle. + * For {@link #asVarargsCollector(Class)} MethodHandles, invokeExact requires that the arguments + * exactly match the underlying MethodType. + *

+ * invoke acts as normally unless the arities differ. In that case, the trailing + * arguments are converted as though by a call to {@link #asCollector(int)} before invoking the underlying + * methodhandle. + */ + // @ts-ignore + public asVarargsCollector(arrayParameter: java.lang.Class): java.lang.invoke.MethodHandle; + /** + * Determine whether this is an {@link #asVarargsCollector(Class)} MethodHandle. + */ + // @ts-ignore + public isVarargsCollector(): boolean; + /** + * Return a fixed arity version of the current MethodHandle. + *

+ * This is identical to the current method handle if {@link #isVarargsCollector()} is false. + *

+ * If the current method is a varargs collector, then the returned handle will be the same + * but without the varargs nature. + */ + // @ts-ignore + public asFixedArity(): java.lang.invoke.MethodHandle; + // @ts-ignore + public bindTo(value: java.lang.Object): java.lang.invoke.MethodHandle; + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.invoke.MethodHandleInfo.d.ts b/packages/types/dist/typings/jdk/java.lang.invoke.MethodHandleInfo.d.ts new file mode 100644 index 00000000..50d3d387 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.invoke.MethodHandleInfo.d.ts @@ -0,0 +1,78 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace invoke { + // @ts-ignore + interface MethodHandleInfo { + // @ts-ignore + REF_getField: number; + // @ts-ignore + REF_getStatic: number; + // @ts-ignore + REF_putField: number; + // @ts-ignore + REF_putStatic: number; + // @ts-ignore + REF_invokeVirtual: number; + // @ts-ignore + REF_invokeStatic: number; + // @ts-ignore + REF_invokeSpecial: number; + // @ts-ignore + REF_newInvokeSpecial: number; + // @ts-ignore + REF_invokeInterface: number; + /** + * Returns the Class where the cracked MethodHandle's underlying method, field or constructor is declared. + */ + // @ts-ignore + getDeclaringClass(): java.lang.Class; + /** + * Returns the simple name of the MethodHandle's underlying member. + */ + // @ts-ignore + getName(): string; + /** + * Returns the type of the MethodHandle's underlying member as a MethodType. + * If the underlying member is non-static, the receiver parameter will not be included. + * If the underlying member is field getter, the MethodType will take no parameters, and the return type will be the field type. + * If the underlying member is field setter, the MethodType will take one parameter of the field type, and the return type will be void. + */ + // @ts-ignore + getMethodType(): java.lang.invoke.MethodType; + /** + * Returns the modifiers of the MethodHandle's underlying member. + */ + // @ts-ignore + getModifiers(): number; + /** + * Returns the reference kind of the MethodHandle. The possible reference kinds are the declared MethodHandleInfo.REF fields. + */ + // @ts-ignore + getReferenceKind(): number; + /** + * Returns whether the MethodHandle's underlying method or constructor has variable argument arity. + */ + // @ts-ignore + isVarArgs(): boolean; + /** + * Reflects the underlying member as a Method, Field or Constructor. The member must be accessible to the provided lookup object. + * Public members are reflected as if by getMethod, getField or getConstructor. + * Non-public members are reflected as if by getDeclearedMethod, getDeclaredField or getDeclaredConstructor. + */ + // @ts-ignore + reflectAs(expected: java.lang.Class, lookup: java.lang.invoke.MethodHandles.Lookup): java.lang.reflect.Member; + /** + * Returns a string representing the equivalent bytecode for the referenceKind. + */ + // @ts-ignore + referenceKindToString(referenceKind: number): string; + /** + * Answers a string containing a concise, human-readable description of the receiver. + */ + // @ts-ignore + toString(kind: number, defc: java.lang.Class, name: string, type: java.lang.invoke.MethodType): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.invoke.MethodHandleProxies.d.ts b/packages/types/dist/typings/jdk/java.lang.invoke.MethodHandleProxies.d.ts new file mode 100644 index 00000000..0eb1806a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.invoke.MethodHandleProxies.d.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace invoke { + // @ts-ignore + class MethodHandleProxies extends java.lang.Object { + /** + * Produces an instance of the given single-method interface which redirects + * its calls to the given method handle. + *

+ * A single-method interface is an interface which declares a uniquely named method. + * When determining the uniquely named method of a single-method interface, + * the public {@code Object} methods ({@code toString}, {@code equals}, {@code hashCode}) + * are disregarded. For example, {@link java.util.Comparator} is a single-method interface, + * even though it re-declares the {@code Object.equals} method. + *

+ * The interface must be public. No additional access checks are performed. + *

+ * The resulting instance of the required type will respond to + * invocation of the type's uniquely named method by calling + * the given target on the incoming arguments, + * and returning or throwing whatever the target + * returns or throws. The invocation will be as if by + * {@code target.invoke}. + * The target's type will be checked before the + * instance is created, as if by a call to {@code asType}, + * which may result in a {@code WrongMethodTypeException}. + *

+ * The uniquely named method is allowed to be multiply declared, + * with distinct type descriptors. (E.g., it can be overloaded, + * or can possess bridge methods.) All such declarations are + * connected directly to the target method handle. + * Argument and return types are adjusted by {@code asType} + * for each individual declaration. + *

+ * The wrapper instance will implement the requested interface + * and its super-types, but no other single-method interfaces. + * This means that the instance will not unexpectedly + * pass an {@code instanceof} test for any unrequested type. + *

+ * Implementation Note: + * Therefore, each instance must implement a unique single-method interface. + * Implementations may not bundle together + * multiple single-method interfaces onto single implementation classes + * in the style of {@link java.awt.AWTEventMulticaster}. + *

+ * The method handle may throw an undeclared exception, + * which means any checked exception (or other checked throwable) + * not declared by the requested type's single abstract method. + * If this happens, the throwable will be wrapped in an instance of + * {@link java.lang.reflect.UndeclaredThrowableException UndeclaredThrowableException} + * and thrown in that wrapped form. + *

+ * Like {@link java.lang.Integer#valueOf Integer.valueOf}, + * {@code asInterfaceInstance} is a factory method whose results are defined + * by their behavior. + * It is not guaranteed to return a new instance for every call. + *

+ * Because of the possibility of {@linkplain java.lang.reflect.Method#isBridge bridge methods} + * and other corner cases, the interface may also have several abstract methods + * with the same name but having distinct descriptors (types of returns and parameters). + * In this case, all the methods are bound in common to the one given target. + * The type check and effective {@code asType} conversion is applied to each + * method type descriptor, and all abstract methods are bound to the target in common. + * Beyond this type check, no further checks are made to determine that the + * abstract methods are related in any way. + *

+ * Future versions of this API may accept additional types, + * such as abstract classes with single abstract methods. + * Future versions of this API may also equip wrapper instances + * with one or more additional public "marker" interfaces. + *

+ * If a security manager is installed, this method is caller sensitive. + * During any invocation of the target method handle via the returned wrapper, + * the original creator of the wrapper (the caller) will be visible + * to context checks requested by the security manager. + */ + // @ts-ignore + public static asInterfaceInstance(intfc: java.lang.Class, target: java.lang.invoke.MethodHandle): java.lang.Object; + /** + * Determines if the given object was produced by a call to {@link #asInterfaceInstance asInterfaceInstance}. + */ + // @ts-ignore + public static isWrapperInstance(x: java.lang.Object): boolean; + /** + * Produces or recovers a target method handle which is behaviorally + * equivalent to the unique method of this wrapper instance. + * The object {@code x} must have been produced by a call to {@link #asInterfaceInstance asInterfaceInstance}. + * This requirement may be tested via {@link #isWrapperInstance isWrapperInstance}. + */ + // @ts-ignore + public static wrapperInstanceTarget(x: java.lang.Object): java.lang.invoke.MethodHandle; + /** + * Recovers the unique single-method interface type for which this wrapper instance was created. + * The object {@code x} must have been produced by a call to {@link #asInterfaceInstance asInterfaceInstance}. + * This requirement may be tested via {@link #isWrapperInstance isWrapperInstance}. + */ + // @ts-ignore + public static wrapperInstanceType(x: java.lang.Object): java.lang.Class; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.invoke.MethodHandles.Lookup.d.ts b/packages/types/dist/typings/jdk/java.lang.invoke.MethodHandles.Lookup.d.ts new file mode 100644 index 00000000..eae96b19 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.invoke.MethodHandles.Lookup.d.ts @@ -0,0 +1,170 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace invoke { + namespace MethodHandles { + // @ts-ignore + class Lookup extends java.lang.Object { + // @ts-ignore + public static PUBLIC: number; + // @ts-ignore + public static PRIVATE: number; + // @ts-ignore + public static PROTECTED: number; + // @ts-ignore + public static PACKAGE: number; + /** + * A query to determine the lookup capabilities held by this instance. + */ + // @ts-ignore + public lookupModes(): number; + /** + * Return an early-bound method handle to a non-static method. The receiver must + * have a Class in its hierarchy that provides the virtual method named methodName. + *

+ * The final MethodType of the MethodHandle will be identical to that of the method. + * The receiver will be inserted prior to the call and therefore does not need to be + * included in the MethodType. + */ + // @ts-ignore + public bind(receiver: java.lang.Object, methodName: string, type: java.lang.invoke.MethodType): java.lang.invoke.MethodHandle; + /** + * Return a MethodHandle bound to a specific-implementation of a virtual method, as if created by an invokespecial bytecode + * using the class specialToken. The method and all Classes in its MethodType must be accessible to + * the caller. + *

+ * The receiver class will be added to the MethodType of the handle, but dispatch will not occur based + * on the receiver. + */ + // @ts-ignore + public findSpecial(clazz: java.lang.Class, methodName: string, type: java.lang.invoke.MethodType, specialToken: java.lang.Class): java.lang.invoke.MethodHandle; + /** + * Return a MethodHandle to a static method. The MethodHandle will have the same type as the + * method. The method and all classes in its type must be accessible to the caller. + */ + // @ts-ignore + public findStatic(clazz: java.lang.Class, methodName: string, type: java.lang.invoke.MethodType): java.lang.invoke.MethodHandle; + /** + * Return a MethodHandle to a virtual method. The method will be looked up in the first argument + * (aka receiver) prior to dispatch. The type of the MethodHandle will be that of the method + * with the receiver type prepended. + */ + // @ts-ignore + public findVirtual(clazz: java.lang.Class, methodName: string, type: java.lang.invoke.MethodType): java.lang.invoke.MethodHandle; + /** + * Return a MethodHandle that provides read access to a field. + * The MethodHandle will have a MethodType taking a single + * argument with type clazz and returning something of + * type fieldType. + */ + // @ts-ignore + public findGetter(clazz: java.lang.Class, fieldName: string, fieldType: java.lang.Class): java.lang.invoke.MethodHandle; + /** + * Return a MethodHandle that provides read access to a field. + * The MethodHandle will have a MethodType taking no arguments + * and returning something of type fieldType. + */ + // @ts-ignore + public findStaticGetter(clazz: java.lang.Class, fieldName: string, fieldType: java.lang.Class): java.lang.invoke.MethodHandle; + /** + * Return a MethodHandle that provides write access to a field. + * The MethodHandle will have a MethodType taking a two + * arguments, the first with type clazz and the second with + * type fieldType, and returning void. + */ + // @ts-ignore + public findSetter(clazz: java.lang.Class, fieldName: string, fieldType: java.lang.Class): java.lang.invoke.MethodHandle; + /** + * Return a MethodHandle that provides write access to a field. + * The MethodHandle will have a MethodType taking one argument + * of type fieldType and returning void. + */ + // @ts-ignore + public findStaticSetter(clazz: java.lang.Class, fieldName: string, fieldType: java.lang.Class): java.lang.invoke.MethodHandle; + /** + * Create a lookup on the request class. The resulting lookup will have no more + * access privileges than the original. + */ + // @ts-ignore + public in(lookupClass: java.lang.Class): java.lang.invoke.MethodHandles.Lookup; + /** + * The class being used for visibility checks and access permissions. + */ + // @ts-ignore + public lookupClass(): java.lang.Class; + /** + * Make a MethodHandle to the Reflect method. If the method is non-static, the receiver argument + * is treated as the intial argument in the MethodType. + *

+ * If m is a virtual method, normal virtual dispatch is used on each invocation. + *

+ * If the accessible flag is not set on the Reflect method, then access checking + * is performed using the lookup class. + */ + // @ts-ignore + public unreflect(method: java.lang.reflect.Method): java.lang.invoke.MethodHandle; + /** + * Return a MethodHandle for the reflect constructor. The MethodType has a return type + * of the declared class, and the arguments of the constructor. The MehtodHnadle + * creates a new object as through by newInstance. + *

+ * If the accessible flag is not set, then access checking + * is performed using the lookup class. + */ + // @ts-ignore + public unreflectConstructor(method: java.lang.reflect.Constructor): java.lang.invoke.MethodHandle; + /** + * Return a MethodHandle that will create an object of the required class and initialize it using + * the constructor method with signature type. The MethodHandle will have a MethodType + * with the same parameters as the constructor method, but will have a return type of the + * declaringClass instead of void. + */ + // @ts-ignore + public findConstructor(declaringClass: java.lang.Class, type: java.lang.invoke.MethodType): java.lang.invoke.MethodHandle; + /** + * Return a MethodHandle for the Reflect method, that will directly call the requested method + * as through from the class specialToken. The MethodType of the method handle + * will be that of the method with the receiver argument prepended. + */ + // @ts-ignore + public unreflectSpecial(method: java.lang.reflect.Method, specialToken: java.lang.Class): java.lang.invoke.MethodHandle; + /** + * Create a MethodHandle that returns the value of the Reflect field. There are two cases: + *

    + *
  1. a static field - which has the MethodType with only a return type of the field
  2. + *
  3. an instance field - which has the MethodType with a return type of the field and a + * single argument of the object that contains the field
  4. + *
+ *

+ * If the accessible flag is not set, then access checking + * is performed using the lookup class. + */ + // @ts-ignore + public unreflectGetter(field: java.lang.reflect.Field): java.lang.invoke.MethodHandle; + /** + * Create a MethodHandle that sets the value of the Reflect field. All MethodHandles created + * here have a return type of void. For the arguments, there are two cases: + *

    + *
  1. a static field - which takes a single argument the same as the field
  2. + *
  3. an instance field - which takes two arguments, the object that contains the field, and the type of the field
  4. + *
+ *

+ * If the accessible flag is not set, then access checking + * is performed using the lookup class. + */ + // @ts-ignore + public unreflectSetter(field: java.lang.reflect.Field): java.lang.invoke.MethodHandle; + /** + * Cracks a MethodHandle, which allows access to its symbolic parts. + * The MethodHandle must have been created by this Lookup object or one that is able to recreate the MethodHandle. + * If the Lookup object is not able to recreate the MethodHandle, the cracking may fail. + */ + // @ts-ignore + public revealDirect(target: java.lang.invoke.MethodHandle): java.lang.invoke.MethodHandleInfo; + // @ts-ignore + public toString(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.invoke.MethodHandles.d.ts b/packages/types/dist/typings/jdk/java.lang.invoke.MethodHandles.d.ts new file mode 100644 index 00000000..24206865 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.invoke.MethodHandles.d.ts @@ -0,0 +1,206 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace invoke { + // @ts-ignore + class MethodHandles extends java.lang.Object { + /** + * Return a MethodHandles.Lookup object for the caller. + */ + // @ts-ignore + public static lookup(): java.lang.invoke.MethodHandles.Lookup; + /** + * Return a MethodHandles.Lookup object that is only able to access public members. + */ + // @ts-ignore + public static publicLookup(): java.lang.invoke.MethodHandles.Lookup; + /** + * Gets the underlying Member of the provided target MethodHandle. This is done through an unchecked crack of the MethodHandle. + * Calling this method is equivalent to obtaining a lookup object capable of cracking the target MethodHandle, calling + * Lookup.revealDirect on the target MethodHandle and then calling MethodHandleInfo.reflectAs. + * If a SecurityManager is present, this method requires ReflectPermission("suppressAccessChecks"). + */ + // @ts-ignore + public static reflectAs(expected: java.lang.Class, target: java.lang.invoke.MethodHandle): java.lang.reflect.Member; + /** + * Return a MethodHandle that is the equivalent of calling + * MethodHandles.lookup().findVirtual(MethodHandle.class, "invokeExact", type). + *

+ * The MethodHandle has a method type that is the same as type except that an additional + * argument of MethodHandle will be added as the first parameter. + *

+ * This method is not subject to the same security checks as a findVirtual call. + */ + // @ts-ignore + public static exactInvoker(type: java.lang.invoke.MethodType): java.lang.invoke.MethodHandle; + /** + * Return a MethodHandle that is the equivalent of calling + * MethodHandles.lookup().findVirtual(MethodHandle.class, "invoke", type). + *

+ * The MethodHandle has a method type that is the same as type except that an additional + * argument of MethodHandle will be added as the first parameter. + *

+ * This method is not subject to the same security checks as a findVirtual call. + */ + // @ts-ignore + public static invoker(type: java.lang.invoke.MethodType): java.lang.invoke.MethodHandle; + /** + * Return a MethodHandle that is able to invoke a MethodHandle of type as though by + * invoke after spreading the final Object[] parameter. + *

+ * When the MethodHandle is invoked, the argument array must contain exactly spreadCount arguments + * to be passed to the original MethodHandle. The array may be null in the case when spreadCount is zero. + * Incorrect argument array size will cause the method to throw an IllegalArgumentException instead of invoking the target. + *

+ */ + // @ts-ignore + public static spreadInvoker(type: java.lang.invoke.MethodType, fixedArgCount: number): java.lang.invoke.MethodHandle; + /** + * Produce a MethodHandle that implements an if-else block. + * This MethodHandle is composed from three handles: + *
    + *
  • guard - a boolean returning handle that takes a subset of the arguments passed to the true and false targets
  • + *
  • trueTarget - the handle to call if the guard returns true
  • + *
  • falseTarget - the handle to call if the guard returns false
  • + *
+ */ + // @ts-ignore + public static guardWithTest(guard: java.lang.invoke.MethodHandle, trueTarget: java.lang.invoke.MethodHandle, falseTarget: java.lang.invoke.MethodHandle): java.lang.invoke.MethodHandle; + /** + * Produce a MethodHandle that implements a try-catch block. + * This adapter acts as though the tryHandle were run inside a try block. If tryHandle + * throws an exception of type throwableClass, the catchHandle is invoked with the + * exception instance and the original arguments. + *

+ * The catchHandle may take a subset of the original arguments rather than the full set. Its first + * argument will be the exception instance. + *

+ * Both the catchHandle and the tryHandle must have the same return type. + */ + // @ts-ignore + public static catchException(tryHandle: java.lang.invoke.MethodHandle, throwableClass: java.lang.Class, catchHandle: java.lang.invoke.MethodHandle): java.lang.invoke.MethodHandle; + /** + * Produce a MethodHandle that acts as an identity function. It will accept a single + * argument and return it. + */ + // @ts-ignore + public static identity(classType: java.lang.Class): java.lang.invoke.MethodHandle; + /** + * Create a MethodHandle that returns the constantValue on each invocation. + *

+ * Conversions of the constantValue to the returnType occur if possible, otherwise + * a ClassCastException is thrown. For primitive returnType, widening primitive conversions are + * attempted. Otherwise, reference conversions are attempted. + */ + // @ts-ignore + public static constant(returnType: java.lang.Class, constantValue: java.lang.Object): java.lang.invoke.MethodHandle; + /** + * Return a MethodHandle able to read from the array. The MethodHandle's return type will be the same as + * the elements of the array. The MethodHandle will also accept two arguments - the first being the array, typed correctly, + * and the second will be the the int index into the array. + */ + // @ts-ignore + public static arrayElementGetter(arrayType: java.lang.Class): java.lang.invoke.MethodHandle; + /** + * Return a MethodHandle able to write to the array. The MethodHandle will have a void return type and take three + * arguments: the first being the array, typed correctly, the second will be the the int index into the array, + * and the third will be the item to write into the array + */ + // @ts-ignore + public static arrayElementSetter(arrayType: java.lang.Class): java.lang.invoke.MethodHandle; + /** + * Return a MethodHandle that will throw the passed in Exception object. The return type is largely + * irrelevant as the method never completes normally. Any return type that is convenient can be + * used. + */ + // @ts-ignore + public static throwException(returnType: java.lang.Class, exception: java.lang.Class): java.lang.invoke.MethodHandle; + /** + * Return a MethodHandle that will adapt the return value of handle by running the filter + * on it and returning the result of the filter. + *

+ * If handle has a void return, filter must not take any parameters. + */ + // @ts-ignore + public static filterReturnValue(handle: java.lang.invoke.MethodHandle, filter: java.lang.invoke.MethodHandle): java.lang.invoke.MethodHandle; + /** + * Produce a MethodHandle that adapts its arguments using the filter methodhandles before calling the underlying handle. + *

+ * The type of the adapter is the type of the original handle with the filter argument types replacing their corresponding + * arguments. Each of the adapters must return the correct type for their corresponding argument. + *

+ * If the filters array is empty or contains only null filters, the original handle will be returned. + */ + // @ts-ignore + public static filterArguments(handle: java.lang.invoke.MethodHandle, startPosition: number, filters: java.lang.invoke.MethodHandle): java.lang.invoke.MethodHandle; + /** + * Produce a MethodHandle that preprocesses some of the arguments by calling the preprocessor handle. + * If the preprocessor handle has a return type, it must be the same as the first argument type of the handle. + * If the preprocessor returns void, it does not contribute the first argument to the handle. + * In all cases, the preprocessor handle accepts a subset of the arguments for the handle. + */ + // @ts-ignore + public static foldArguments(handle: java.lang.invoke.MethodHandle, preprocessor: java.lang.invoke.MethodHandle): java.lang.invoke.MethodHandle; + /** + * Produce a MethodHandle that will permute the incoming arguments according to the + * permute array. The new handle will have a type of permuteType. + *

+ * The permutations can include duplicating or rearranging the arguments. The permute + * array must have the same number of items as there are parameters in the + * handle's type. + *

+ * Each argument type must exactly match - no conversions are applied. + */ + // @ts-ignore + public static permuteArguments(handle: java.lang.invoke.MethodHandle, permuteType: java.lang.invoke.MethodType, permute: number): java.lang.invoke.MethodHandle; + /** + * Produce a MethodHandle that preprocesses some of the arguments by calling the filter handle. + * If the filter handle has a return type, it must be the same as the argument type at pos in the target arguments. + * If the filter returns void, it does not contribute an argument to the target arguments at pos. + * The filter handle consumes a subset (size equal to the filter's arity) of the returned handle's arguments, starting at pos. + */ + // @ts-ignore + public static collectArguments(target: java.lang.invoke.MethodHandle, pos: number, filter: java.lang.invoke.MethodHandle): java.lang.invoke.MethodHandle; + /** + * This method returns a method handle that delegates to the original method handle, + * ignoring a particular range of arguments (starting at a given location and + * with given types). The type of the returned method handle is the type of the original handle + * with the given types inserted in the parameter type list at the given location. + */ + // @ts-ignore + public static dropArguments(originalHandle: java.lang.invoke.MethodHandle, location: number, valueTypes: java.lang.Class): java.lang.invoke.MethodHandle; + /** + * This method returns a method handle that delegates to the original method handle, + * ignoring a particular range of arguments (starting at a given location and + * with given types). The type of the returned method handle is the type of the original handle + * with the given types inserted in the parameter type list at the given location. + */ + // @ts-ignore + public static dropArguments(originalHandle: java.lang.invoke.MethodHandle, location: number, valueTypes: java.util.List): java.lang.invoke.MethodHandle; + /** + * Produce an adapter that converts the incoming arguments from type to the underlying MethodHandle's type + * and converts the return value as required. + *

+ * The following conversions, beyond those allowed by {@link MethodHandle#asType(MethodType)} are also allowed: + *

    + *
  • A conversion to an interface is done without a cast
  • + *
  • A boolean is treated as a single bit unsigned integer and may be converted to other primitive types
  • + *
  • A primitive can also be cast using Java casting conversion if asType would have allowed Java method invocation conversion
  • + *
  • An unboxing conversion, possibly followed by a widening primitive conversion
  • + *
+ * These additional rules match Java casting conversion and those of the bytecode verifier. + */ + // @ts-ignore + public static explicitCastArguments(handle: java.lang.invoke.MethodHandle, type: java.lang.invoke.MethodType): java.lang.invoke.MethodHandle; + /** + * This method returns a method handle that delegates to the original method handle, + * adding a particular range of arguments (starting at a given location and + * with given types). The type of the returned method handle is the type of the original handle + * with the given types dropped from the parameter type list at the given location. + */ + // @ts-ignore + public static insertArguments(originalHandle: java.lang.invoke.MethodHandle, location: number, values: java.lang.Object): java.lang.invoke.MethodHandle; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.invoke.MethodType.d.ts b/packages/types/dist/typings/jdk/java.lang.invoke.MethodType.d.ts new file mode 100644 index 00000000..7f196d9f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.invoke.MethodType.d.ts @@ -0,0 +1,210 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace invoke { + // @ts-ignore + class MethodType extends java.lang.Object { + /** + * Convenience method to create a new MethodType with only the parameter at + * position changed to the new type. + */ + // @ts-ignore + public changeParameterType(position: number, type: java.lang.Class): java.lang.invoke.MethodType; + /** + * Convenience method to create a new MethodType with a changed return type. + */ + // @ts-ignore + public changeReturnType(type: java.lang.Class): java.lang.invoke.MethodType; + /** + * Convenience method to create a new MethodType after dropping the + * parameters between startPosition and endPosition. + */ + // @ts-ignore + public dropParameterTypes(startPosition: number, endPosition: number): java.lang.invoke.MethodType; + /** + * Compares the specified object with this type for equality. + * That is, it returns true if and only if the specified object + * is also a method type with exactly the same parameters and return type. + */ + // @ts-ignore + public equals(x: java.lang.Object): boolean; + /** + * Convenience method erase all reference types to Object. Primitive and void + * remain unchanged. + */ + // @ts-ignore + public erase(): java.lang.invoke.MethodType; + /** + * Convenience Method to create a MethodType from bytecode-level method descriptor. + * (See JVM Spec 2nd Ed. section 4.4.3). + *

+ * All of the classes used in the method descriptor string must be reachable from a + * common ClassLoader or an exception will result. + *

+ * The ClassLoader parameter may be null, in which case the System ClassLoader will be used. + *

+ * Note, the Class names must use JVM syntax in the method descriptor String and therefore + * java.lang.Class will be represented as Ljava/lang/Class; + *

+ * Example method descriptors + *

    + *
  • (II)V - method taking two ints and return void
  • + *
  • (I)Ljava/lang/Integer; - method taking an int and returning an Integer
  • + *
  • ([I)I - method taking an array of ints and returning an int
  • + *
+ */ + // @ts-ignore + public static fromMethodDescriptorString(methodDescriptor: string, loader: java.lang.ClassLoader): java.lang.invoke.MethodType; + /** + * Convenience method to convert all types to Object. + */ + // @ts-ignore + public generic(): java.lang.invoke.MethodType; + /** + * Returns the MethodType's hash code, which is defined to be + * the same as the hash code of a List composed of the return type + * followed by the parameter types. + */ + // @ts-ignore + public hashCode(): number; + /** + * Helper method to determine if the return type or any of the parameter types + * are primitives. + */ + // @ts-ignore + public hasPrimitives(): boolean; + /** + * Helper method to determine if the return type or any of the parameter types + * are wrappers. Wrappers are the boxed versions of primitives. + *

+ * java.lang.Void is only treated as a wrapper if it occurs as the class of the + * return. + */ + // @ts-ignore + public hasWrappers(): boolean; + /** + * Return a new MethodType with an additional parameters inserted at position, which + * is a zero based index. + */ + // @ts-ignore + public insertParameterTypes(position: number, types: java.lang.Class): java.lang.invoke.MethodType; + /** + * Return a new MethodType with an additional parameters inserted at position, which + * is a zero based index. + */ + // @ts-ignore + public insertParameterTypes(position: number, types: java.util.List): java.lang.invoke.MethodType; + /** + * Create a MethodType object with the specified return type and no parameters + */ + // @ts-ignore + public static methodType(type: java.lang.Class): java.lang.invoke.MethodType; + /** + * Return a MethodType object with the specified return type and a single parameter + * of type 'parameter0'. + */ + // @ts-ignore + public static methodType(type: java.lang.Class, parameter0: java.lang.Class): java.lang.invoke.MethodType; + /** + * Return a MethodType object with the parameter and return types as requested. + */ + // @ts-ignore + public static methodType(returnType: java.lang.Class, parameters: java.lang.Class): java.lang.invoke.MethodType; + /** + * Wrapper on {@link MethodType#methodType(Class, Class[])}. + *
+ * parameter0 is appended to the remaining parameters. + */ + // @ts-ignore + public static methodType(type: java.lang.Class, parameter0: java.lang.Class, parameters: java.lang.Class): java.lang.invoke.MethodType; + /** + * Wrapper on {@link MethodType#methodType(Class, Class[])} + */ + // @ts-ignore + public static methodType(type: java.lang.Class, parameters: java.util.List): java.lang.invoke.MethodType; + /** + * Wrapper on {@link #methodType(Class, Class[])}. + * Return a MethodType made from the returnType and parameters of the passed in MethodType. + */ + // @ts-ignore + public static methodType(returnType: java.lang.Class, methodType: java.lang.invoke.MethodType): java.lang.invoke.MethodType; + /** + * Static helper method to create a MethodType with only Object return type and parameters. + */ + // @ts-ignore + public static genericMethodType(numParameters: number): java.lang.invoke.MethodType; + /** + * Wrapper on {@link #methodType(Class, Class[])}. + *
+ * Return a MethodType with an Object return and only Object parameters. If isVarags is true, the + * final parameter will be an Object[]. This Object[] parameter is NOT included in the numParameters + * count. + */ + // @ts-ignore + public static genericMethodType(numParameters: number, isVarargs: boolean): java.lang.invoke.MethodType; + /** + * Helper method to return the parameter types in an array. + *
+ * Changes to the array do not affect the MethodType object. + */ + // @ts-ignore + public parameterArray(): java.lang.Class[]; + /** + * Helper method to return the number of parameters + */ + // @ts-ignore + public parameterCount(): number; + /** + * Helper method to return the parameter types in a List. + *
+ * Changes to the List do not affect the MethodType object. + */ + // @ts-ignore + public parameterList(): java.util.List; + /** + * Return the type of the parameter at position. + */ + // @ts-ignore + public parameterType(position: number): java.lang.Class; + // @ts-ignore + public returnType(): java.lang.Class; + /** + * Create a method descriptor string for this MethodType. + */ + // @ts-ignore + public toMethodDescriptorString(): string; + /** + * Return a string representation of the MethodType in the form: '(A0,A2,A3...)R'. + * The simple name of each class is used. + *

+ * Note that this is not the same as {@link #toMethodDescriptorString()} + */ + // @ts-ignore + public toString(): string; + /** + * Wrapper method on {@link #methodType(Class, Class[])}. Replaces all wrapper types with + * the appropriate primitive types, including changing {@link java.lang.Void} to + * void. + */ + // @ts-ignore + public unwrap(): java.lang.invoke.MethodType; + /** + * Wrapper method on {@link #methodType(Class, Class[])}. Replaces all primitive types with + * the appropriate wrapper types, including changing void to {@link java.lang.Void}. + */ + // @ts-ignore + public wrap(): java.lang.invoke.MethodType; + /** + * Returns a MethodType with the additional class types appended to the end. + */ + // @ts-ignore + public appendParameterTypes(classes: java.lang.Class): java.lang.invoke.MethodType; + /** + * Returns a MethodType with the additional class types appended to the end. + */ + // @ts-ignore + public appendParameterTypes(classes: java.util.List): java.lang.invoke.MethodType; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.invoke.MutableCallSite.d.ts b/packages/types/dist/typings/jdk/java.lang.invoke.MutableCallSite.d.ts new file mode 100644 index 00000000..74cc2ef9 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.invoke.MutableCallSite.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace invoke { + // @ts-ignore + class MutableCallSite extends java.lang.invoke.CallSite { + /** + * Create a MutableCallSite permanently set to the same type as the mutableTarget and using + * the mutableTarget as the initial target value. + */ + // @ts-ignore + constructor(mutableTarget: java.lang.invoke.MethodHandle) + /** + * Create a MutableCallSite with the MethodType type and an + * initial target that throws IllegalStateException. + */ + // @ts-ignore + constructor(type: java.lang.invoke.MethodType) + // @ts-ignore + public dynamicInvoker(): java.lang.invoke.MethodHandle; + // @ts-ignore + public getTarget(): java.lang.invoke.MethodHandle; + // @ts-ignore + public setTarget(newTarget: java.lang.invoke.MethodHandle): void; + /** + * Forces the current target MethodHandle of each of the MutableCallSites in the sites array to be seen by all threads. + * Loads of the target from any of the CallSites that has already begun will continue to use the old value. + *

+ * If any of the elements in the sites array is null, a NullPointerException will be raised. It is undefined whether any + * of the sites may have been synchronized. + *

+ * Note: it is valid for an implementation to use a volatile variable for the target value of MutableCallSite. In that case, + * the {@link #syncAll(MutableCallSite[])} call becomes a no-op. + */ + // @ts-ignore + public static syncAll(sites: java.lang.invoke.MutableCallSite): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.invoke.SerializedLambda.d.ts b/packages/types/dist/typings/jdk/java.lang.invoke.SerializedLambda.d.ts new file mode 100644 index 00000000..69ee50ca --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.invoke.SerializedLambda.d.ts @@ -0,0 +1,80 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace invoke { + // @ts-ignore + class SerializedLambda extends java.lang.Object { + /** + * Create a {@code SerializedLambda} from the low-level information present + * at the lambda factory site. + */ + // @ts-ignore + constructor(capturingClass: java.lang.Class, functionalInterfaceClass: string, functionalInterfaceMethodName: string, functionalInterfaceMethodSignature: string, implMethodKind: number, implClass: string, implMethodName: string, implMethodSignature: string, instantiatedMethodType: string, capturedArgs: java.lang.Object) + /** + * Get the name of the class that captured this lambda. + */ + // @ts-ignore + public getCapturingClass(): string; + /** + * Get the name of the invoked type to which this + * lambda has been converted + */ + // @ts-ignore + public getFunctionalInterfaceClass(): string; + /** + * Get the name of the primary method for the functional interface + * to which this lambda has been converted. + */ + // @ts-ignore + public getFunctionalInterfaceMethodName(): string; + /** + * Get the signature of the primary method for the functional + * interface to which this lambda has been converted. + */ + // @ts-ignore + public getFunctionalInterfaceMethodSignature(): string; + /** + * Get the name of the class containing the implementation + * method. + */ + // @ts-ignore + public getImplClass(): string; + /** + * Get the name of the implementation method. + */ + // @ts-ignore + public getImplMethodName(): string; + /** + * Get the signature of the implementation method. + */ + // @ts-ignore + public getImplMethodSignature(): string; + /** + * Get the method handle kind (see {@link MethodHandleInfo}) of + * the implementation method. + */ + // @ts-ignore + public getImplMethodKind(): number; + /** + * Get the signature of the primary functional interface method + * after type variables are substituted with their instantiation + * from the capture site. + */ + // @ts-ignore + public getInstantiatedMethodType(): string; + /** + * Get the count of dynamic arguments to the lambda capture site. + */ + // @ts-ignore + public getCapturedArgCount(): number; + /** + * Get a dynamic argument to the lambda capture site. + */ + // @ts-ignore + public getCapturedArg(i: number): java.lang.Object; + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.invoke.SwitchPoint.d.ts b/packages/types/dist/typings/jdk/java.lang.invoke.SwitchPoint.d.ts new file mode 100644 index 00000000..565dc1a5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.invoke.SwitchPoint.d.ts @@ -0,0 +1,84 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace invoke { + // @ts-ignore + class SwitchPoint extends java.lang.Object { + /** + * Creates a new switch point. + */ + // @ts-ignore + constructor() + /** + * Determines if this switch point has been invalidated yet. + *

+ * Discussion: + * Because of the one-way nature of invalidation, once a switch point begins + * to return true for {@code hasBeenInvalidated}, + * it will always do so in the future. + * On the other hand, a valid switch point visible to other threads may + * be invalidated at any moment, due to a request by another thread. + *

+ * Since invalidation is a global and immediate operation, + * the execution of this query, on a valid switchpoint, + * must be internally sequenced with any + * other threads that could cause invalidation. + * This query may therefore be expensive. + * The recommended way to build a boolean-valued method handle + * which queries the invalidation state of a switch point {@code s} is + * to call {@code s.guardWithTest} on + * {@link MethodHandles#constant constant} true and false method handles. + */ + // @ts-ignore + public hasBeenInvalidated(): boolean; + /** + * Returns a method handle which always delegates either to the target or the fallback. + * The method handle will delegate to the target exactly as long as the switch point is valid. + * After that, it will permanently delegate to the fallback. + *

+ * The target and fallback must be of exactly the same method type, + * and the resulting combined method handle will also be of this type. + */ + // @ts-ignore + public guardWithTest(target: java.lang.invoke.MethodHandle, fallback: java.lang.invoke.MethodHandle): java.lang.invoke.MethodHandle; + /** + * Sets all of the given switch points into the invalid state. + * After this call executes, no thread will observe any of the + * switch points to be in a valid state. + *

+ * This operation is likely to be expensive and should be used sparingly. + * If possible, it should be buffered for batch processing on sets of switch points. + *

+ * If {@code switchPoints} contains a null element, + * a {@code NullPointerException} will be raised. + * In this case, some non-null elements in the array may be + * processed before the method returns abnormally. + * Which elements these are (if any) is implementation-dependent. + *

+ * Discussion: + * For performance reasons, {@code invalidateAll} is not a virtual method + * on a single switch point, but rather applies to a set of switch points. + * Some implementations may incur a large fixed overhead cost + * for processing one or more invalidation operations, + * but a small incremental cost for each additional invalidation. + * In any case, this operation is likely to be costly, since + * other threads may have to be somehow interrupted + * in order to make them notice the updated switch point state. + * However, it may be observed that a single call to invalidate + * several switch points has the same formal effect as many calls, + * each on just one of the switch points. + *

+ * Implementation Note: + * Simple implementations of {@code SwitchPoint} may use + * a private {@link MutableCallSite} to publish the state of a switch point. + * In such an implementation, the {@code invalidateAll} method can + * simply change the call site's target, and issue one call to + * {@linkplain MutableCallSite#syncAll synchronize} all the + * private call sites. + */ + // @ts-ignore + public static invalidateAll(switchPoints: java.lang.invoke.SwitchPoint): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.invoke.VolatileCallSite.d.ts b/packages/types/dist/typings/jdk/java.lang.invoke.VolatileCallSite.d.ts new file mode 100644 index 00000000..a16fa896 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.invoke.VolatileCallSite.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace invoke { + // @ts-ignore + class VolatileCallSite extends java.lang.invoke.CallSite { + /** + * Create a VolatileCallSite with the same type as the volatileTarget + * and the initial target set to volatileTarget. + */ + // @ts-ignore + constructor(volatileTarget: java.lang.invoke.MethodHandle) + /** + * Create a VolatileCallSite with the MethodType type and an + * initial target that throws IllegalStateException. + */ + // @ts-ignore + constructor(type: java.lang.invoke.MethodType) + // @ts-ignore + public dynamicInvoker(): java.lang.invoke.MethodHandle; + /** + * The target MethodHandle is returned as though by a read of a volatile variable. + */ + // @ts-ignore + public getTarget(): java.lang.invoke.MethodHandle; + /** + * Set the CallSite's target to be nextTarget. + * The nextTarget MethodHandle must have the same type as the CallSite. + * This occurs as though by a write to a volatile variable. + */ + // @ts-ignore + public setTarget(nextTarget: java.lang.invoke.MethodHandle): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.invoke.WrongMethodTypeException.d.ts b/packages/types/dist/typings/jdk/java.lang.invoke.WrongMethodTypeException.d.ts new file mode 100644 index 00000000..a9aacb11 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.invoke.WrongMethodTypeException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace invoke { + // @ts-ignore + class WrongMethodTypeException extends java.lang.RuntimeException { + /** + * Construct a WrongMethodTypeException. + */ + // @ts-ignore + constructor() + /** + * Construct a WrongMethodTypeException with the supplied message. + */ + // @ts-ignore + constructor(message: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.management.BufferPoolMXBean.d.ts b/packages/types/dist/typings/jdk/java.lang.management.BufferPoolMXBean.d.ts new file mode 100644 index 00000000..ff22648d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.management.BufferPoolMXBean.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace management { + // @ts-ignore + interface BufferPoolMXBean { + /** + * Returns the name of the buffer pool. + */ + // @ts-ignore + getName(): string; + /** + * Returns the number of buffers of the pool. + */ + // @ts-ignore + getCount(): number; + /** + * Returns the total capacity of the buffers in this pool. + */ + // @ts-ignore + getTotalCapacity(): number; + /** + * Returns the count of used memory. + */ + // @ts-ignore + getMemoryUsed(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.management.ClassLoadingMXBean.d.ts b/packages/types/dist/typings/jdk/java.lang.management.ClassLoadingMXBean.d.ts new file mode 100644 index 00000000..269405ee --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.management.ClassLoadingMXBean.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace management { + // @ts-ignore + interface ClassLoadingMXBean { + /** + * Returns the number of classes currently loaded by the virtual machine. + */ + // @ts-ignore + getLoadedClassCount(): number; + /** + * Returns a figure for the total number of classes that have been + * loaded by the virtual machine during its lifetime. + */ + // @ts-ignore + getTotalLoadedClassCount(): number; + /** + * Returns a figure for the total number of classes that have + * been unloaded by the virtual machine over its lifetime. + */ + // @ts-ignore + getUnloadedClassCount(): number; + /** + * Returns a boolean indication of whether the virtual + * machine's class loading system is producing verbose output. + */ + // @ts-ignore + isVerbose(): boolean; + /** + * Updates the virtual machine's class loading system to + * operate in verbose or non-verbose mode. + */ + // @ts-ignore + setVerbose(value: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.management.CompilationMXBean.d.ts b/packages/types/dist/typings/jdk/java.lang.management.CompilationMXBean.d.ts new file mode 100644 index 00000000..5e99d0e5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.management.CompilationMXBean.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace management { + // @ts-ignore + interface CompilationMXBean { + /** + * Returns the name of the virtual machine's Just In Time (JIT) compiler. + */ + // @ts-ignore + getName(): string; + /** + * If supported (see {@link #isCompilationTimeMonitoringSupported()}), + * returns the total number of milliseconds spent by the virtual + * machine performing compilations. The figure is taken over the lifetime of + * the virtual machine. + */ + // @ts-ignore + getTotalCompilationTime(): number; + /** + * A boolean indication of whether or not the virtual machine supports the + * timing of its compilation facilities. + */ + // @ts-ignore + isCompilationTimeMonitoringSupported(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.management.GarbageCollectorMXBean.d.ts b/packages/types/dist/typings/jdk/java.lang.management.GarbageCollectorMXBean.d.ts new file mode 100644 index 00000000..0588efe8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.management.GarbageCollectorMXBean.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace management { + // @ts-ignore + interface GarbageCollectorMXBean { + /** + * Returns in a long the number of garbage collections carried out by the + * associated collector. + */ + // @ts-ignore + getCollectionCount(): number; + /** + * For the associated garbage collector, returns the total amount of time in + * milliseconds that it has spent carrying out garbage collection. + */ + // @ts-ignore + getCollectionTime(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.management.LockInfo.d.ts b/packages/types/dist/typings/jdk/java.lang.management.LockInfo.d.ts new file mode 100644 index 00000000..a07d39fa --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.management.LockInfo.d.ts @@ -0,0 +1,59 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace management { + // @ts-ignore + class LockInfo extends java.lang.Object { + /** + * Creates a new LockInfo instance. + */ + // @ts-ignore + constructor(className: string, identityHashCode: number) + /** + * Returns the name of the lock object's class in fully qualified form (i.e. + * including the package prefix). + */ + // @ts-ignore + public getClassName(): string; + /** + * Returns the value of the associated lock object's identity hash code + */ + // @ts-ignore + public getIdentityHashCode(): number; + /** + * Returns a {@code LockInfo} object represented by the given + * {@code CompositeData}. The given {@code CompositeData} must contain the + * following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
The attributes and the types the given CompositeData contains
Attribute NameType
classNamejava.lang.String
identityHashCodejava.lang.Integer
+ *
+ */ + // @ts-ignore + public static from(compositeData: any /*javax.management.openmbean.CompositeData*/): java.lang.management.LockInfo; + /** + * Provides callers with a string value that represents the associated lock. + * The string will hold both the name of the lock object's class and it's + * identity hash code expressed as an unsigned hexadecimal. i.e.
+ *

+ * {@link #getClassName()}  + @ + Integer.toHexString({@link #getIdentityHashCode()}) + *

+ */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.management.ManagementFactory.d.ts b/packages/types/dist/typings/jdk/java.lang.management.ManagementFactory.d.ts new file mode 100644 index 00000000..371d438f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.management.ManagementFactory.d.ts @@ -0,0 +1,171 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace management { + // @ts-ignore + class ManagementFactory extends java.lang.Object { + // @ts-ignore + public static CLASS_LOADING_MXBEAN_NAME: string; + // @ts-ignore + public static COMPILATION_MXBEAN_NAME: string; + // @ts-ignore + public static GARBAGE_COLLECTOR_MXBEAN_DOMAIN_TYPE: string; + // @ts-ignore + public static MEMORY_MANAGER_MXBEAN_DOMAIN_TYPE: string; + // @ts-ignore + public static MEMORY_MXBEAN_NAME: string; + // @ts-ignore + public static MEMORY_POOL_MXBEAN_DOMAIN_TYPE: string; + // @ts-ignore + public static OPERATING_SYSTEM_MXBEAN_NAME: string; + // @ts-ignore + public static RUNTIME_MXBEAN_NAME: string; + // @ts-ignore + public static THREAD_MXBEAN_NAME: string; + /** + * Returns the singleton MXBean for the virtual machine's + * class loading system. + */ + // @ts-ignore + public static getClassLoadingMXBean(): java.lang.management.ClassLoadingMXBean; + /** + * Returns the singleton MXBean for the virtual machine's + * compilation system if and only if the virtual machine has a + * compilation system enabled. If no compilation exists for this + * virtual machine, a null is returned. + */ + // @ts-ignore + public static getCompilationMXBean(): java.lang.management.CompilationMXBean; + /** + * Returns a list of all of the instances of {@link GarbageCollectorMXBean} + * in this virtual machine. Owing to the dynamic nature of this kind of + * MXBean, it is possible that instances may be created or + * destroyed between the invocation and return of this method. + */ + // @ts-ignore + public static getGarbageCollectorMXBeans(): java.util.List; + /** + * Returns a list of all of the instances of {@link MemoryManagerMXBean} in + * this virtual machine. Owing to the dynamic nature of this kind of + * MXBean, it is possible that instances may be created or + * destroyed between the invocation and return of this method. + *

+ * Note that the list of MemoryManagerMXBean instances will + * include instances of MemoryManagerMXBean sub-types such as + * GarbageCollectorMXBean. + *

+ */ + // @ts-ignore + public static getMemoryManagerMXBeans(): java.util.List; + /** + * Returns the singleton MXBean for the virtual machine's + * memory system. + */ + // @ts-ignore + public static getMemoryMXBean(): java.lang.management.MemoryMXBean; + /** + * Returns a list of all of the instances of {@link MemoryPoolMXBean} in + * this virtual machine. Owing to the dynamic nature of this kind of + * MXBean, it is possible that instances may be created or + * destroyed between the invocation and return of this method. + */ + // @ts-ignore + public static getMemoryPoolMXBeans(): java.util.List; + /** + * Returns the singleton MXBean for the operating system + * which the virtual machine runs on. + */ + // @ts-ignore + public static getOperatingSystemMXBean(): java.lang.management.OperatingSystemMXBean; + /** + * Returns the virtual machine's platform + * MBeanServer. This MBeanServer will have + * all of the platform MXBeans registered with it including + * any dynamic MXBeans (e.g. instances of + * {@link GarbageCollectorMXBean} that may be unregistered and destroyed at + * a later time. + *

+ * In order to simplify the process of distribution and discovery of managed + * beans it is good practice to register all managed beans (in addition to + * the platform MXBeans) with this server. + *

+ *

+ * A custom MBeanServer can be created by this method if the + * System property javax.management.builder.initial has been + * set with the fully qualified name of a subclass of + * {@link javax.management.MBeanServerBuilder}. + *

+ */ + // @ts-ignore + public static getPlatformMBeanServer(): any /*javax.management.MBeanServer*/; + /** + * Returns the singleton MXBean for the virtual machine's + * runtime system. + */ + // @ts-ignore + public static getRuntimeMXBean(): java.lang.management.RuntimeMXBean; + /** + * Returns the singleton MXBean for the virtual machine's + * threading system. + */ + // @ts-ignore + public static getThreadMXBean(): java.lang.management.ThreadMXBean; + /** + * Return a proxy for the named MXBean. + */ + // @ts-ignore + public static newPlatformMXBeanProxy(connection: any /*javax.management.MBeanServerConnection*/, mxbeanName: string, mxbeanInterface: java.lang.Class): java.lang.Object; + /** + * Returns the platform MXBean implementing + * the given {@code mxbeanInterface} which is specified + * to have one single instance in the Java virtual machine. + * This method may return {@code null} if the management interface + * is not implemented in the Java virtual machine (for example, + * a Java virtual machine with no compilation system does not + * implement {@link CompilationMXBean}); + * otherwise, this method is equivalent to calling: + *
+                 * {@link #getPlatformMXBeans(Class)
+                 * getPlatformMXBeans(mxbeanInterface)}.get(0);
+                 * 
+ */ + // @ts-ignore + public static getPlatformMXBean(mxbeanInterface: java.lang.Class): java.lang.management.PlatformManagedObject; + /** + * Returns a list of all of the platform MXBean + * objects which implement the specified management interface. + */ + // @ts-ignore + public static getPlatformMXBeans(mxbeanInterface: java.lang.Class): java.util.List; + /** + * Returns the platform MXBean proxy for + * {@code mxbeanInterface} which is specified to have one single + * instance in a Java virtual machine and the proxy will + * forward the method calls through the given {@code MBeanServerConnection}. + * This method may return {@code null} if the management interface + * is not implemented in the Java virtual machine being monitored + * (for example, a Java virtual machine with no compilation system + * does not implement {@link CompilationMXBean}); + * otherwise, this method is equivalent to calling: + *
+                 * {@link #getPlatformMXBeans(MBeanServerConnection, Class)
+                 * getPlatformMXBeans(connection, mxbeanInterface)}.get(0);
+                 * 
+ */ + // @ts-ignore + public static getPlatformMXBean(connection: any /*javax.management.MBeanServerConnection*/, mxbeanInterface: java.lang.Class): java.lang.management.PlatformManagedObject; + /** + * Return a list of MXBean proxies that can proxy the mxbeanInterface + * using the specified MBeanServerConnection. + */ + // @ts-ignore + public static getPlatformMXBeans(connection: any /*javax.management.MBeanServerConnection*/, mxbeanInterface: java.lang.Class): java.util.List; + /** + * Return the set of all platform MXBean interface classes. + */ + // @ts-ignore + public static getPlatformManagementInterfaces(): java.util.Set; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.management.ManagementPermission.d.ts b/packages/types/dist/typings/jdk/java.lang.management.ManagementPermission.d.ts new file mode 100644 index 00000000..ed9132ce --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.management.ManagementPermission.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace management { + // @ts-ignore + class ManagementPermission extends java.security.BasicPermission { + /** + * Creates a new instance of ManagementPermission with + * the given name. + */ + // @ts-ignore + constructor(name: string) + /** + * Creates a new instance of ManagementPermission with + * the given name and permitted actions. + */ + // @ts-ignore + constructor(name: string, actions: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.management.MemoryMXBean.d.ts b/packages/types/dist/typings/jdk/java.lang.management.MemoryMXBean.d.ts new file mode 100644 index 00000000..deb296ed --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.management.MemoryMXBean.d.ts @@ -0,0 +1,44 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace management { + // @ts-ignore + interface MemoryMXBean { + /** + * Requests the virtual machine to run the system garbage collector. + */ + // @ts-ignore + gc(): void; + /** + * Returns the current memory usage of the heap for both live objects and + * for objects no longer in use which are awaiting garbage collection. + */ + // @ts-ignore + getHeapMemoryUsage(): java.lang.management.MemoryUsage; + /** + * Returns the current non-heap memory usage for the virtual machine. + */ + // @ts-ignore + getNonHeapMemoryUsage(): java.lang.management.MemoryUsage; + /** + * Returns the number of objects in the virtual machine that are awaiting + * finalization. The returned value should only be used as an approximate + * guide. + */ + // @ts-ignore + getObjectPendingFinalizationCount(): number; + /** + * Returns a boolean indication of whether or not the memory system is + * producing verbose output. + */ + // @ts-ignore + isVerbose(): boolean; + /** + * Updates the verbose output setting of the memory system. + */ + // @ts-ignore + setVerbose(value: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.management.MemoryManagerMXBean.d.ts b/packages/types/dist/typings/jdk/java.lang.management.MemoryManagerMXBean.d.ts new file mode 100644 index 00000000..f2a0c471 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.management.MemoryManagerMXBean.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace management { + // @ts-ignore + interface MemoryManagerMXBean { + /** + * Returns the names of all of the memory pools managed by this + * MXBean. + */ + // @ts-ignore + getMemoryPoolNames(): java.lang.String[]; + /** + * Returns the name of this particular memory manager. + */ + // @ts-ignore + getName(): string; + /** + * Returns true if this memory manager is still valid in the + * virtual machine. That is, the memory manager has not been eliminated from + * the virtual machine memory. + */ + // @ts-ignore + isValid(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.management.MemoryNotificationInfo.d.ts b/packages/types/dist/typings/jdk/java.lang.management.MemoryNotificationInfo.d.ts new file mode 100644 index 00000000..82ad469b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.management.MemoryNotificationInfo.d.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace management { + // @ts-ignore + class MemoryNotificationInfo extends java.lang.Object { + /** + * Creates a new MemoryNotificationInfo instance. + */ + // @ts-ignore + constructor(poolName: string, usage: java.lang.management.MemoryUsage, count: number) + // @ts-ignore + public static MEMORY_THRESHOLD_EXCEEDED: string; + // @ts-ignore + public static MEMORY_COLLECTION_THRESHOLD_EXCEEDED: string; + /** + * Returns the number of times that the memory usage has crossed the + * threshold relevant to the type of notification when the notification was + * constructed. For notifications of the {@link #MEMORY_THRESHOLD_EXCEEDED} + * type, this will a count of the number of times the memory usage threshold + * has been met or exceeded. For + * {@link #MEMORY_COLLECTION_THRESHOLD_EXCEEDED} notifications, this will be + * the number of times that the collection usage threshold was passed. + */ + // @ts-ignore + public getCount(): number; + /** + * Returns the name of the memory pool that the notification relates to. + */ + // @ts-ignore + public getPoolName(): string; + /** + * Returns an instance of {@link MemoryUsage} that encapsulates the memory + * usage of the memory pool that gave rise to this notification at the time + * the notification was created. The MemoryUsage may be + * interrogated by the caller to find out the details of the memory usage. + */ + // @ts-ignore + public getUsage(): java.lang.management.MemoryUsage; + /** + * Receives a {@link CompositeData} representing a + * MemoryNotificationInfo object and attempts to return + * the root MemoryNotificationInfo instance. + */ + // @ts-ignore + public static from(cd: any /*javax.management.openmbean.CompositeData*/): java.lang.management.MemoryNotificationInfo; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.management.MemoryPoolMXBean.d.ts b/packages/types/dist/typings/jdk/java.lang.management.MemoryPoolMXBean.d.ts new file mode 100644 index 00000000..2b997522 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.management.MemoryPoolMXBean.d.ts @@ -0,0 +1,127 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace management { + // @ts-ignore + interface MemoryPoolMXBean { + /** + * If supported by the virtual machine, returns a {@link MemoryUsage} which + * encapsulates this memory pool's memory usage after the most recent run of + * the garbage collector. No garbage collection will be actually occur as a + * result of this method getting called. + */ + // @ts-ignore + getCollectionUsage(): java.lang.management.MemoryUsage; + /** + * Returns this memory pool's collection usage threshold. + */ + // @ts-ignore + getCollectionUsageThreshold(): number; + /** + * Returns the number of times that the memory usage for this memory pool + * has grown to exceed the collection usage threshold. + */ + // @ts-ignore + getCollectionUsageThresholdCount(): number; + /** + * Returns a string array containing the unique names of each memory manager + * that manages this memory pool. A memory pool will always have at least + * one memory manager associated with it. + */ + // @ts-ignore + getMemoryManagerNames(): java.lang.String[]; + /** + * Returns the name of this memory pool. + */ + // @ts-ignore + getName(): string; + /** + * Returns information on the peak usage of the memory pool. The scope of + * this covers all elapsed time since either the start of the virtual + * machine or the peak usage was reset. + */ + // @ts-ignore + getPeakUsage(): java.lang.management.MemoryUsage; + /** + * Returns the memory pool's type. + */ + // @ts-ignore + getType(): java.lang.management.MemoryType; + /** + * Returns the current memory usage of this memory pool as estimated by the + * virtual machine. + */ + // @ts-ignore + getUsage(): java.lang.management.MemoryUsage; + /** + * Returns this memory pool's usage threshold. + */ + // @ts-ignore + getUsageThreshold(): number; + /** + * Returns the number of times that the memory usage for this memory pool + * has grown to exceed the current usage threshold. + */ + // @ts-ignore + getUsageThresholdCount(): number; + /** + * Returns a boolean indication of whether or not this memory pool hit or + * exceeded the current value of the collection usage threshold after the + * latest garbage collection run. + */ + // @ts-ignore + isCollectionUsageThresholdExceeded(): boolean; + /** + * Returns a boolean indication of whether or not this memory pool supports + * a collection usage threshold. + */ + // @ts-ignore + isCollectionUsageThresholdSupported(): boolean; + /** + * Returns a boolean indication of whether or not this memory pool has hit + * or has exceeded the current value of the usage threshold. + */ + // @ts-ignore + isUsageThresholdExceeded(): boolean; + /** + * Returns a boolean indication of whether or not this memory pool supports + * a usage threshold. + */ + // @ts-ignore + isUsageThresholdSupported(): boolean; + /** + * Returns a boolean indication of whether or not this memory pool may still + * be considered valid. A memory pool becomes invalid once it has been + * removed by the virtual machine. + */ + // @ts-ignore + isValid(): boolean; + /** + * Updates this memory pool's memory usage peak value to be whatever the + * value of the current memory usage is. + */ + // @ts-ignore + resetPeakUsage(): void; + /** + * Updates this memory pool to have a new value for its collection usage + * threshold. Only values of zero or greater should be supplied. A zero + * value effectively turns off any further checking of collection memory + * usage by the virtual machine. A value greater than zero establishes the + * new threshold which the virtual machine will check against after each run + * of the garbage collector in the memory pool. + */ + // @ts-ignore + setCollectionUsageThreshold(threshold: number): void; + /** + * Updates this memory pool to have a new value for its usage threshold. + * Only values of zero or greater should be supplied. A zero value + * effectively turns off any further checking of memory usage by the virtual + * machine. A value greater than zero establishes the new threshold which + * the virtual machine will check against. + */ + // @ts-ignore + setUsageThreshold(threshold: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.management.MemoryType.d.ts b/packages/types/dist/typings/jdk/java.lang.management.MemoryType.d.ts new file mode 100644 index 00000000..f27edb85 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.management.MemoryType.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace management { + // @ts-ignore + class MemoryType extends java.lang.Enum { + // @ts-ignore + public static HEAP: java.lang.management.MemoryType; + // @ts-ignore + public static NON_HEAP: java.lang.management.MemoryType; + // @ts-ignore + public static values(): java.lang.management.MemoryType[]; + // @ts-ignore + public static valueOf(name: string): java.lang.management.MemoryType; + /** + * {@inheritDoc} + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.management.MemoryUsage.d.ts b/packages/types/dist/typings/jdk/java.lang.management.MemoryUsage.d.ts new file mode 100644 index 00000000..4c871053 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.management.MemoryUsage.d.ts @@ -0,0 +1,67 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace management { + // @ts-ignore + class MemoryUsage extends java.lang.Object { + /** + * Constructs a new MemoryUsage instance. + */ + // @ts-ignore + constructor(init: number, used: number, committed: number, max: number) + /** + * Returns the amount of memory that has been pledged by the operating + * system for the virtual machine to use. This value is in bytes. + */ + // @ts-ignore + public getCommitted(): number; + /** + * Returns the initial amount of memory requested from the underlying + * operating system when the virtual machine started up. The value is given + * in bytes. + *

+ * if the initial memory size was not defined, this method will return a + * value of -1. + *

+ */ + // @ts-ignore + public getInit(): number; + /** + * Returns the maximum amount of memory that is available to the virtual + * machine which may change over the lifecycle of the virtual machine. The + * value is in bytes. + */ + // @ts-ignore + public getMax(): number; + /** + * Returns the number of bytes currently used for memory management + * purposes. + */ + // @ts-ignore + public getUsed(): number; + /** + * Returns a text description of this memory usage. + */ + // @ts-ignore + public toString(): string; + /** + * Receives a {@link CompositeData} representing a MemoryUsage + * object and attempts to return the root MemoryUsage + * instance. + */ + // @ts-ignore + public static from(cd: any /*javax.management.openmbean.CompositeData*/): java.lang.management.MemoryUsage; + /** + * {@inheritDoc} + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public hashCode(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.management.MonitorInfo.d.ts b/packages/types/dist/typings/jdk/java.lang.management.MonitorInfo.d.ts new file mode 100644 index 00000000..f6b128a9 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.management.MonitorInfo.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace management { + // @ts-ignore + class MonitorInfo extends java.lang.management.LockInfo { + /** + * Creates a new MonitorInfo instance. + */ + // @ts-ignore + constructor(className: string, identityHashCode: number, stackDepth: number, stackFrame: java.lang.StackTraceElement) + /** + * Returns an integer which is the number of frames deep into the stack + * where the monitor locking took place. + */ + // @ts-ignore + public getLockedStackDepth(): number; + /** + * The complete {@link StackTraceElement} in which the monitor was locked. + */ + // @ts-ignore + public getLockedStackFrame(): java.lang.StackTraceElement; + /** + * Receives a {@link CompositeData} representing a MonitorInfo + * object and attempts to return the root MonitorInfo + * instance. + */ + // @ts-ignore + public static from(cd: any /*javax.management.openmbean.CompositeData*/): java.lang.management.MonitorInfo; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.management.OperatingSystemMXBean.d.ts b/packages/types/dist/typings/jdk/java.lang.management.OperatingSystemMXBean.d.ts new file mode 100644 index 00000000..465ac881 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.management.OperatingSystemMXBean.d.ts @@ -0,0 +1,54 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace management { + // @ts-ignore + interface OperatingSystemMXBean { + /** + * Returns a unique string identifier for the architecture of the underlying + * operating system. The identifier value is identical to that which would + * be obtained from a call to {@link System#getProperty(java.lang.String)} + * supplying the value "os.arch" for the key. + */ + // @ts-ignore + getArch(): string; + /** + * Returns the number of processors that are available for the virtual + * machine to run on. The information returned from this method is identical + * to that which would be received from a call to + * {@link Runtime#availableProcessors()}. + */ + // @ts-ignore + getAvailableProcessors(): number; + /** + * Returns the name of the underlying operating system. The value is + * identical to that which would be obtained from a call to + * {@link System#getProperty(java.lang.String)} supplying the value + * "os.name" for the key. + */ + // @ts-ignore + getName(): string; + /** + * Returns the version string for the underlying operating system. The value + * is identical to that which would be obtained from a call to + * {@link System#getProperty(java.lang.String)} supplying the value + * "os.version" for the key. + */ + // @ts-ignore + getVersion(): string; + /** + * Returns a double value which holds the system load average calculated for + * the minute preceding the call, where system load average is taken + * to mean the following: + *

+ * the time-averaged value of the sum of the number of runnable entities + * running on the available processors and the number of runnable entities + * ready and queued to run on the available processors. The averaging + * technique adopted can vary depending on the underlying operating system. + */ + // @ts-ignore + getSystemLoadAverage(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.management.PlatformLoggingMXBean.d.ts b/packages/types/dist/typings/jdk/java.lang.management.PlatformLoggingMXBean.d.ts new file mode 100644 index 00000000..2e0870fe --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.management.PlatformLoggingMXBean.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace management { + // @ts-ignore + interface PlatformLoggingMXBean { + /** + * Returns the string name of the specified {@link java.util.logging.Logger} instance's + * current log level. + */ + // @ts-ignore + getLoggerLevel(loggerName: string): string; + /** + * Returns a list of the names of all of the currently registered + * Logger instances. + */ + // @ts-ignore + getLoggerNames(): java.util.List; + /** + * Returns the name of the parent {@link java.util.logging.Logger} of the specified registered + * Logger,loggerName. + */ + // @ts-ignore + getParentLoggerName(loggerName: string): string; + /** + * Attempts to update the log level of the {@link java.util.logging.Logger} with name + * loggerName to levelName. + *

+ * If levelName is null then the Logger + * instance's log level is set to be null with the result that + * it will inherit its log level from its nearest parent which does not have + * a null log level value. + *

+ */ + // @ts-ignore + setLoggerLevel(loggerName: string, levelName: string): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.management.PlatformManagedObject.d.ts b/packages/types/dist/typings/jdk/java.lang.management.PlatformManagedObject.d.ts new file mode 100644 index 00000000..4eeb6cd3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.management.PlatformManagedObject.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace management { + // @ts-ignore + interface PlatformManagedObject { + /** + * Returns the ObjectName for this PlatformManagedObject. + */ + // @ts-ignore + getObjectName(): any /*javax.management.ObjectName*/; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.management.RuntimeMXBean.d.ts b/packages/types/dist/typings/jdk/java.lang.management.RuntimeMXBean.d.ts new file mode 100644 index 00000000..968f3cd8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.management.RuntimeMXBean.d.ts @@ -0,0 +1,128 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace management { + // @ts-ignore + interface RuntimeMXBean { + /** + * If bootstrap class loading is supported by the virtual machine, returns a + * string containing the full bootstrap class path used by the boot class + * loader to locate and load class files. + *

+ * An indication of whether or not the virtual machine supports a boot class + * loader mechanism can be found from invoking the + * {@link #isBootClassPathSupported()} method. + *

+ */ + // @ts-ignore + getBootClassPath(): string; + /** + * Returns the class path string used by the system class loader to locate + * and load class files. The value is identical to that which would be + * obtained from a call to {@link System#getProperty(java.lang.String)} + * supplying the value "java.class.path" for the key. + */ + // @ts-ignore + getClassPath(): string; + /** + * Returns a list of all of the input arguments passed to the virtual + * machine on start-up. This will not include any input arguments + * that are passed into the application's main(String[] args) + * method. + */ + // @ts-ignore + getInputArguments(): java.util.List; + /** + * Returns the Java library path that will be used by the virtual machine to + * locate and load libraries. The value is identical to that which would be + * obtained from a call to {@link System#getProperty(java.lang.String)} + * supplying the value "java.library.path" for the key. + */ + // @ts-ignore + getLibraryPath(): string; + /** + * Returns a string containing the management interface specification + * version that the virtual machine meets. + */ + // @ts-ignore + getManagementSpecVersion(): string; + /** + * Returns the string name of this virtual machine. This value may be + * different for each particular running virtual machine. + */ + // @ts-ignore + getName(): string; + /** + * Returns the name of the Java virtual machine specification followed by + * this virtual machine. The value is identical to that which would be + * obtained from a call to {@link System#getProperty(java.lang.String)} + * supplying the value "java.vm.specification.name" for the key. + */ + // @ts-ignore + getSpecName(): string; + /** + * Returns the name of the Java virtual machine specification vendor. The + * value is identical to that which would be obtained from a call to + * {@link System#getProperty(java.lang.String)} supplying the value + * "java.vm.specification.vendor" for the key. + */ + // @ts-ignore + getSpecVendor(): string; + /** + * Returns the name of the Java virtual machine specification version. The + * value is identical to that which would be obtained from a call to + * {@link System#getProperty(java.lang.String)} supplying the value + * "java.vm.specification.version" for the key. + */ + // @ts-ignore + getSpecVersion(): string; + /** + * Returns the time, in milliseconds, when the virtual machine was started. + */ + // @ts-ignore + getStartTime(): number; + /** + * Returns a map of the names and values of every system property known to + * the virtual machine. + */ + // @ts-ignore + getSystemProperties(): java.util.Map; + /** + * Returns the lifetime of the virtual machine in milliseconds. + */ + // @ts-ignore + getUptime(): number; + /** + * Returns the name of the Java virtual machine implementation. The value is + * identical to that which would be obtained from a call to + * {@link System#getProperty(java.lang.String)} supplying the value + * "java.vm.name" for the key. + */ + // @ts-ignore + getVmName(): string; + /** + * Returns the name of the Java virtual machine implementation vendor. The + * value is identical to that which would be obtained from a call to + * {@link System#getProperty(java.lang.String)} supplying the value + * "java.vm.vendor" for the key. + */ + // @ts-ignore + getVmVendor(): string; + /** + * Returns the version of the Java virtual machine implementation. The value + * is identical to that which would be obtained from a call to + * {@link System#getProperty(java.lang.String)} supplying the value + * "java.vm.version" for the key. + */ + // @ts-ignore + getVmVersion(): string; + /** + * Returns a boolean indication of whether or not the virtual machine + * supports a bootstrap class loading mechanism. + */ + // @ts-ignore + isBootClassPathSupported(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.management.ThreadInfo.d.ts b/packages/types/dist/typings/jdk/java.lang.management.ThreadInfo.d.ts new file mode 100644 index 00000000..a01fa9eb --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.management.ThreadInfo.d.ts @@ -0,0 +1,161 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace management { + // @ts-ignore + class ThreadInfo extends java.lang.Object { + /** + * Returns the number of times that the thread represented by this + * ThreadInfo has been blocked on any monitor objects. The + * count is from the start of the thread's life. + */ + // @ts-ignore + public getBlockedCount(): number; + /** + * If thread contention monitoring is supported and enabled, returns the + * total amount of time that the thread represented by this + * ThreadInfo has spent blocked on any monitor objects. The + * time is measued in milliseconds and will be measured over the time period + * since thread contention was most recently enabled. + */ + // @ts-ignore + public getBlockedTime(): number; + /** + * If the thread represented by this ThreadInfo is currently + * blocked on or waiting on a monitor object, returns a string + * representation of that monitor object. + *

+ * The monitor's string representation is comprised of the following + * component parts: + *

    + *
  • monitor class name + *
  • @ + *
  • Integer.toHexString(System.identityHashCode(monitor)) + *
+ */ + // @ts-ignore + public getLockName(): string; + /** + * If the thread represented by this ThreadInfo is currently + * blocked on or waiting on a monitor object, returns the thread identifier + * of the thread which owns the monitor. + */ + // @ts-ignore + public getLockOwnerId(): number; + /** + * If the thread represented by this ThreadInfo is currently + * blocked on or waiting on a monitor object, returns the name of the thread + * which owns the monitor. + */ + // @ts-ignore + public getLockOwnerName(): string; + /** + * If the thread corresponding to this ThreadInfo is blocked + * then this method returns a {@link LockInfo} object that contains details + * of the associated lock object. + */ + // @ts-ignore + public getLockInfo(): java.lang.management.LockInfo; + /** + * If available, returns the stack trace for the thread represented by this + * ThreadInfo instance. The stack trace is returned in an + * array of {@link StackTraceElement} objects with the "top" of the + * stack encapsulated in the first array element and the "bottom" + * of the stack in the last array element. + *

+ * If this ThreadInfo was created without any stack trace + * information (e.g. by a call to {@link ThreadMXBean#getThreadInfo(long)}) + * then the returned array will have a length of zero. + *

+ */ + // @ts-ignore + public getStackTrace(): java.lang.StackTraceElement[]; + /** + * Returns the thread identifier of the thread represented by this + * ThreadInfo. + */ + // @ts-ignore + public getThreadId(): number; + /** + * Returns the name of the thread represented by this + * ThreadInfo. + */ + // @ts-ignore + public getThreadName(): string; + /** + * Returns the thread state value of the thread represented by this + * ThreadInfo. + */ + // @ts-ignore + public getThreadState(): java.lang.Thread.State; + /** + * The number of times that the thread represented by this + * ThreadInfo has gone to the "wait" or "timed + * wait" state. + */ + // @ts-ignore + public getWaitedCount(): number; + /** + * If thread contention monitoring is supported and enabled, returns the + * total amount of time that the thread represented by this + * ThreadInfo has spent waiting for notifications. The time + * is measured in milliseconds and will be measured over the time period + * since thread contention was most recently enabled. + */ + // @ts-ignore + public getWaitedTime(): number; + /** + * Returns a boolean indication of whether or not the thread + * represented by this ThreadInfo is currently in a native + * method. + */ + // @ts-ignore + public isInNative(): boolean; + /** + * Returns a boolean indication of whether or not the thread + * represented by this ThreadInfo is currently suspended. + */ + // @ts-ignore + public isSuspended(): boolean; + /** + * Returns an array of MonitorInfo objects, one for every + * monitor object locked by the Thread corresponding to this + * ThreadInfo when it was instantiated. + */ + // @ts-ignore + public getLockedMonitors(): java.lang.management.MonitorInfo[]; + /** + * Returns an array of LockInfo objects, each one containing + * information on an ownable synchronizer (a synchronizer that makes use of + * the AbstractOwnableSynchronizer type and which is + * completely owned by a single thread) locked by the Thread + * corresponding to this ThreadInfo when it was instantiated. + */ + // @ts-ignore + public getLockedSynchronizers(): java.lang.management.LockInfo[]; + /** + * Receives a {@link CompositeData} representing a ThreadInfo + * object and attempts to return the root ThreadInfo + * instance. + */ + // @ts-ignore + public static from(cd: any /*javax.management.openmbean.CompositeData*/): java.lang.management.ThreadInfo; + /** + * Returns a text description of this thread info. + */ + // @ts-ignore + public toString(): string; + /** + * {@inheritDoc} + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public hashCode(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.management.ThreadMXBean.d.ts b/packages/types/dist/typings/jdk/java.lang.management.ThreadMXBean.d.ts new file mode 100644 index 00000000..2919a972 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.management.ThreadMXBean.d.ts @@ -0,0 +1,318 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace management { + // @ts-ignore + interface ThreadMXBean { + /** + * Returns the thread identifiers of every thread in this virtual machine + * that is currently blocked in a deadlock situation over a monitor object. + * A thread is considered to be deadlocked if it is blocked waiting to run + * and owns an object monitor that is sought by another blocked thread. Two + * or more threads can be in a deadlock cycle. To determine the threads + * currently deadlocked by object monitors and ownable synchronizers + * use the {@link #findDeadlockedThreads()} method. + *

+ * It is recommended that this method be used solely for problem + * determination analysis and not as a means of managing thread + * synchronization in a virtual machine. This is because the method may be + * very expensive to run. + *

+ */ + // @ts-ignore + findMonitorDeadlockedThreads(): number[]; + /** + * Returns an array of the identifiers of all of the threads that are alive + * in the current virtual machine. When processing the return from this + * method it should not be assumed that each identified thread is + * still alive. + */ + // @ts-ignore + getAllThreadIds(): number[]; + /** + * If supported by the virtual machine, returns the total CPU usage time for + * the currently running thread. The returned time will have nanosecond + * precision but may not have nanosecond accuracy. + *

+ * Method {@link #isCurrentThreadCpuTimeSupported()} may be used to + * determine if current thread CPU timing is supported on the virtual + * machine. On virtual machines where current thread CPU timing is + * supported, the method {@link #isThreadCpuTimeEnabled()} may be used to + * determine if thread CPU timing is actually enabled. + *

+ *

+ * The return value is identical to that which would be obtained by calling + * {@link #getThreadCpuTime} with an argument + * Thread.currentThread().getId()). + *

+ */ + // @ts-ignore + getCurrentThreadCpuTime(): number; + /** + * If supported by the virtual machine, returns the total CPU usage time for + * the current thread running in user mode. The returned time will have + * nanosecond precision but may not have nanosecond accuracy. + *

+ * Method {@link #isCurrentThreadCpuTimeSupported()} may be used to + * determine if current thread CPU timing is supported on the virtual + * machine. On virtual machines where current thread CPU timing is + * supported, the method {@link #isThreadCpuTimeEnabled()} may be used to + * determine if thread CPU timing is actually enabled. + *

+ *

+ * The return value is identical to that which would be obtained by calling + * {@link #getThreadUserTime} with an argument + * Thread.currentThread().getId()). + *

+ */ + // @ts-ignore + getCurrentThreadUserTime(): number; + /** + * Returns the number of daemon threads currently alive in the virtual + * machine. + */ + // @ts-ignore + getDaemonThreadCount(): number; + /** + * Returns the peak number of threads that have ever been alive in the + * virtual machine at any one instant since either the virtual machine + * start-up or the peak was reset. + */ + // @ts-ignore + getPeakThreadCount(): number; + /** + * Returns the number of threads currently alive in the virtual machine. + * This includes both daemon threads and non-daemon threads. + */ + // @ts-ignore + getThreadCount(): number; + /** + * If supported by the virtual machine, returns the total CPU usage time for + * the thread with the specified identifier. The returned time will have + * nanosecond precision but may not have nanosecond accuracy. + *

+ * Method {@link #isThreadCpuTimeSupported()} may be used to determine if + * the CPU timing of threads is supported on the virtual machine. On virtual + * machines where current thread CPU timing is supported, the method + * {@link #isThreadCpuTimeEnabled()} may be used to determine if thread CPU + * timing is actually enabled. + *

+ */ + // @ts-ignore + getThreadCpuTime(id: number): number; + /** + * Returns a {@link ThreadInfo} object for the thread with the specified + * identifier. The returned object will not have a stack trace so that a + * call to its getStackTrace() method will result in an empty + * StackTraceElement array. Similarly, the returned object + * will hold no details of locked synchronizers or locked object monitors + * for the specified thread; calls to getLockedMonitors() and + * getLockedSynchronizers will both return array values. + */ + // @ts-ignore + getThreadInfo(id: number): java.lang.management.ThreadInfo; + /** + * Returns an array of {@link ThreadInfo} objects ; one for each of the + * threads specified in the input array of identifiers. None of the objects + * in the return array will have a stack trace so that a call to its + * getStackTrace() method will result in an empty + * StackTraceElement array. Similarly, the returned object + * will hold no details of locked synchronizers or locked object monitors + * for the specified thread; calls to getLockedMonitors() and + * getLockedSynchronizers will both return array values. + */ + // @ts-ignore + getThreadInfo(ids: number): java.lang.management.ThreadInfo[]; + /** + * Returns an array of {@link ThreadInfo} objects ; one for each of the + * threads specified in the ids argument. The stack trace + * information in the returned objects will depend on the value of the + * maxDepth argument which specifies the maximum number of + * {@link StackTraceElement} instances to try and include. A subsequent call + * to any of the returned objects' getStackTrace() method + * should result in a {@link StackTraceElement} array of up to + * maxDepth elements. A maxDepth value of + * Integer.MAX_VALUE will attempt to obtain all of the stack + * trace information for each specified thread while a maxDepth + * value of zero will yield none. + *

+ * The returned object will hold no details of locked synchronizers or + * locked object monitors for the specified thread; calls to + * getLockedMonitors() and + * getLockedSynchronizers will both return array values. + *

+ */ + // @ts-ignore + getThreadInfo(ids: number, maxDepth: number): java.lang.management.ThreadInfo[]; + /** + * Returns an array of {@link ThreadInfo} objects; one for each of the + * threads specified in the ids argument. Each + * ThreadInfo will hold details of all of the stack trace + * information for each specified thread. The returned + * ThreadInfo objects will optionally contain details of all + * monitor objects and synchronizers locked by the corresponding thread. In + * order to retrieve locked monitor information the + * lockedMonitors argument should be set to true; + * in order to retrieve locked synchronizers information + * lockedSynchronizers should be set to true. + * For a given ThreadInfo element of the return array the + * optional information may be inspected by calling + * {@link ThreadInfo#getLockedMonitors()} and + * {@link ThreadInfo#getLockedSynchronizers()} respectively. + *

+ * Both lockedMonitors and lockedSynchronizers + * arguments should only be set to true if the virtual + * machine supports the requested monitoring. + *

+ */ + // @ts-ignore + getThreadInfo(ids: number, lockedMonitors: boolean, lockedSynchronizers: boolean): java.lang.management.ThreadInfo[]; + /** + * Returns a {@link ThreadInfo} object for the thread with the specified + * identifier. The stack trace information in the returned object will + * depend on the value of the maxDepth argument which + * specifies the maximum number of {@link StackTraceElement} instances to + * include. A subsequent call to the returned object's + * getStackTrace() method should then result in a + * {@link StackTraceElement} array of up to maxDepth + * elements. A maxDepth value of + * Integer.MAX_VALUE will obtain all of the stack trace + * information for the thread while a maxDepth value of zero + * will yield none. + *

+ * It is possible that the virtual machine may be unable to supply any stack + * trace information for the specified thread. In that case the returned + * ThreadInfo object will have an empty array of + * StackTraceElements. + *

+ *

+ * The returned object will hold no details of locked synchronizers or + * locked object monitors for the specified thread; calls to + * getLockedMonitors() and + * getLockedSynchronizers will both return array values. + *

+ */ + // @ts-ignore + getThreadInfo(id: number, maxDepth: number): java.lang.management.ThreadInfo; + /** + * If supported by the virtual machine, returns the total CPU usage time for + * the thread with the specified identifier when running in user mode. The + * returned time will have nanosecond precision but may not have nanosecond + * accuracy. + *

+ * Method {@link #isThreadCpuTimeSupported()} may be used to determine if + * the CPU timing of threads is supported on the virtual machine. On virtual + * machines where current thread CPU timing is supported, the method + * {@link #isThreadCpuTimeEnabled()} may be used to determine if thread CPU + * timing is actually enabled. + *

+ */ + // @ts-ignore + getThreadUserTime(id: number): number; + /** + * Returns the number of threads that have been started in this virtual + * machine since it came into being. + */ + // @ts-ignore + getTotalStartedThreadCount(): number; + /** + * Returns a boolean indication of whether or not the virtual machine + * supports the CPU timing of the current thread. + *

+ * Note that this method must return true if + * {@link #isThreadCpuTimeSupported()} returns true. + *

+ */ + // @ts-ignore + isCurrentThreadCpuTimeSupported(): boolean; + /** + * Returns a boolean indication of whether or not the monitoring of thread + * contention situations is enabled on this virtual machine. + */ + // @ts-ignore + isThreadContentionMonitoringEnabled(): boolean; + /** + * Returns a boolean indication of whether or not the monitoring of thread + * contention situations is supported on this virtual machine. + */ + // @ts-ignore + isThreadContentionMonitoringSupported(): boolean; + /** + * Returns a boolean indication of whether or not the CPU timing of threads + * is enabled on this virtual machine. + */ + // @ts-ignore + isThreadCpuTimeEnabled(): boolean; + /** + * Returns a boolean indication of whether or not the virtual machine + * supports the CPU time measurement of any threads (current or otherwise). + */ + // @ts-ignore + isThreadCpuTimeSupported(): boolean; + /** + * Resets the peak thread count to be the current number of threads alive in + * the virtual machine when the call is made. + */ + // @ts-ignore + resetPeakThreadCount(): void; + /** + * Updates the virtual machine to either enable or disable the monitoring of + * thread contention situations. + *

+ * If it is supported, the virtual machine will initially not monitor thread + * contention situations. + *

+ */ + // @ts-ignore + setThreadContentionMonitoringEnabled(enable: boolean): void; + /** + * If supported, updates the virtual machine to either enable or disable the + * CPU timing of threads. + *

+ * The default value of this property depends on the underlying operating + * system on which the virtual machine is running. + *

+ */ + // @ts-ignore + setThreadCpuTimeEnabled(enable: boolean): void; + /** + * Returns a boolean indication of whether or not the virtual machine + * supports the monitoring of object monitor usage. + */ + // @ts-ignore + isObjectMonitorUsageSupported(): boolean; + /** + * Returns a boolean indication of whether or not the virtual machine + * supports the monitoring of ownable synchronizers (synchronizers that make + * use of the AbstractOwnableSynchronizer type and which are + * completely owned by a single thread). + */ + // @ts-ignore + isSynchronizerUsageSupported(): boolean; + /** + * If supported by the virtual machine, this method can be used to retrieve + * the long id of all threads currently waiting on object + * monitors or ownable synchronizers (synchronizers that make use of the + * AbstractOwnableSynchronizer type and which are completely + * owned by a single thread). To determine the threads currently deadlocked + * by object monitors only use the {@link #findMonitorDeadlockedThreads()} + * method. + *

+ * It is recommended that this method be used solely for problem + * determination analysis and not as a means of managing thread + * synchronization in a virtual machine. This is because the method may be + * very expensive to run. + *

+ */ + // @ts-ignore + findDeadlockedThreads(): number[]; + /** + * Returns an array of {@link ThreadInfo} objects holding information on all + * threads that were alive when the call was invoked. + */ + // @ts-ignore + dumpAllThreads(lockedMonitors: boolean, lockedSynchronizers: boolean): java.lang.management.ThreadInfo[]; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.ref.PhantomReference.d.ts b/packages/types/dist/typings/jdk/java.lang.ref.PhantomReference.d.ts new file mode 100644 index 00000000..8d44e4cc --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.ref.PhantomReference.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace ref { + // @ts-ignore + class PhantomReference extends java.lang.ref.Reference { + /** + * Constructs a new instance of this class. + */ + // @ts-ignore + constructor(r: java.lang.Object, q: java.lang.ref.ReferenceQueue) + /** + * Return the referent of the reference object. Phantom reference + * objects referents are inaccessible, and so null is returned. + */ + // @ts-ignore + public get(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.ref.Reference.d.ts b/packages/types/dist/typings/jdk/java.lang.ref.Reference.d.ts new file mode 100644 index 00000000..3c046a1b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.ref.Reference.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace ref { + // @ts-ignore + abstract class Reference extends java.lang.Object { + /** + * Make the referent null. This does not force the reference object to be enqueued. + */ + // @ts-ignore + public clear(): void; + /** + * Force the reference object to be enqueued if it has been associated with a queue. + */ + // @ts-ignore + public enqueue(): boolean; + /** + * Return the referent of the reference object. + */ + // @ts-ignore + public get(): java.lang.Object; + /** + * Return whether the reference object has been enqueued. + */ + // @ts-ignore + public isEnqueued(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.ref.ReferenceQueue.d.ts b/packages/types/dist/typings/jdk/java.lang.ref.ReferenceQueue.d.ts new file mode 100644 index 00000000..57ef698a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.ref.ReferenceQueue.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace ref { + // @ts-ignore + class ReferenceQueue extends java.lang.Object { + /** + * Constructs a new instance of this class. + */ + // @ts-ignore + constructor() + /** + * Returns the next available reference from the queue + * if one is enqueued, null otherwise. Does not wait + * for a reference to become available. + */ + // @ts-ignore + public poll(): java.lang.ref.Reference; + /** + * Return the next available enqueued reference on the queue, blocking + * indefinitely until one is available. + */ + // @ts-ignore + public remove(): java.lang.ref.Reference; + /** + * Return the next available enqueued reference on the queue, blocking + * up to the time given until one is available. Return null if no + * reference became available. + */ + // @ts-ignore + public remove(timeout: number): java.lang.ref.Reference; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.ref.SoftReference.d.ts b/packages/types/dist/typings/jdk/java.lang.ref.SoftReference.d.ts new file mode 100644 index 00000000..aa78f3aa --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.ref.SoftReference.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace ref { + // @ts-ignore + class SoftReference extends java.lang.ref.Reference { + /** + * Constructs a new instance of this class. + */ + // @ts-ignore + constructor(r: java.lang.Object, q: java.lang.ref.ReferenceQueue) + /** + * Constructs a new instance of this class. + */ + // @ts-ignore + constructor(r: java.lang.Object) + /** + * Return the referent of the reference object. + */ + // @ts-ignore + public get(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.ref.WeakReference.d.ts b/packages/types/dist/typings/jdk/java.lang.ref.WeakReference.d.ts new file mode 100644 index 00000000..6cf53c1a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.ref.WeakReference.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace ref { + // @ts-ignore + class WeakReference extends java.lang.ref.Reference { + /** + * Constructs a new instance of this class. + */ + // @ts-ignore + constructor(r: java.lang.Object, q: java.lang.ref.ReferenceQueue) + /** + * Constructs a new instance of this class. + */ + // @ts-ignore + constructor(r: java.lang.Object) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.reflect.AccessibleObject.d.ts b/packages/types/dist/typings/jdk/java.lang.reflect.AccessibleObject.d.ts new file mode 100644 index 00000000..8e51bad8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.reflect.AccessibleObject.d.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace reflect { + // @ts-ignore + class AccessibleObject extends java.lang.Object { + /** + * Constructor: only used by the Java Virtual Machine. + */ + // @ts-ignore + constructor() + /** + * Convenience method to set the {@code accessible} flag for an + * array of objects with a single security check (for efficiency). + *

First, if there is a security manager, its + * {@code checkPermission} method is called with a + * {@code ReflectPermission("suppressAccessChecks")} permission. + *

A {@code SecurityException} is raised if {@code flag} is + * {@code true} but accessibility of any of the elements of the input + * {@code array} may not be changed (for example, if the element + * object is a {@link Constructor} object for the class {@link + * java.lang.Class}). In the event of such a SecurityException, the + * accessibility of objects is set to {@code flag} for array elements + * upto (and excluding) the element for which the exception occurred; the + * accessibility of elements beyond (and including) the element for which + * the exception occurred is unchanged. + */ + // @ts-ignore + public static setAccessible(array: java.lang.reflect.AccessibleObject, flag: boolean): void; + /** + * Set the {@code accessible} flag for this object to + * the indicated boolean value. A value of {@code true} indicates that + * the reflected object should suppress Java language access + * checking when it is used. A value of {@code false} indicates + * that the reflected object should enforce Java language access checks. + *

First, if there is a security manager, its + * {@code checkPermission} method is called with a + * {@code ReflectPermission("suppressAccessChecks")} permission. + *

A {@code SecurityException} is raised if {@code flag} is + * {@code true} but accessibility of this object may not be changed + * (for example, if this element object is a {@link Constructor} object for + * the class {@link java.lang.Class}). + *

A {@code SecurityException} is raised if this object is a {@link + * java.lang.reflect.Constructor} object for the class + * {@code java.lang.Class}, and {@code flag} is true. + */ + // @ts-ignore + public setAccessible(flag: boolean): void; + /** + * Get the value of the {@code accessible} flag for this object. + */ + // @ts-ignore + public isAccessible(): boolean; + // @ts-ignore + public getAnnotation(annotationClass: java.lang.Class): java.lang.annotation.Annotation; + /** + * {@inheritDoc} + */ + // @ts-ignore + public isAnnotationPresent(annotationClass: java.lang.Class): boolean; + // @ts-ignore + public getAnnotationsByType(annotationClass: java.lang.Class): java.lang.annotation.Annotation[]; + // @ts-ignore + public getAnnotations(): java.lang.annotation.Annotation[]; + // @ts-ignore + public getDeclaredAnnotation(annotationClass: java.lang.Class): java.lang.annotation.Annotation; + // @ts-ignore + public getDeclaredAnnotationsByType(annotationClass: java.lang.Class): java.lang.annotation.Annotation[]; + // @ts-ignore + public getDeclaredAnnotations(): java.lang.annotation.Annotation[]; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.reflect.AnnotatedArrayType.d.ts b/packages/types/dist/typings/jdk/java.lang.reflect.AnnotatedArrayType.d.ts new file mode 100644 index 00000000..30c0e026 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.reflect.AnnotatedArrayType.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace reflect { + // @ts-ignore + interface AnnotatedArrayType { + /** + * Returns the potentially annotated generic component type of this array type. + */ + // @ts-ignore + getAnnotatedGenericComponentType(): java.lang.reflect.AnnotatedType; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.reflect.AnnotatedElement.d.ts b/packages/types/dist/typings/jdk/java.lang.reflect.AnnotatedElement.d.ts new file mode 100644 index 00000000..11f036fb --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.reflect.AnnotatedElement.d.ts @@ -0,0 +1,86 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace reflect { + // @ts-ignore + interface AnnotatedElement { + /** + * Returns true if an annotation for the specified type + * is present on this element, else false. This method + * is designed primarily for convenient access to marker annotations. + *

The truth value returned by this method is equivalent to: + * {@code getAnnotation(annotationClass) != null} + *

The body of the default method is specified to be the code + * above. + */ + // @ts-ignore + isAnnotationPresent(annotationClass: java.lang.Class): boolean; + /** + * Returns this element's annotation for the specified type if + * such an annotation is present, else null. + */ + // @ts-ignore + getAnnotation(annotationClass: java.lang.Class): java.lang.annotation.Annotation; + /** + * Returns annotations that are present on this element. + * If there are no annotations present on this element, the return + * value is an array of length 0. + * The caller of this method is free to modify the returned array; it will + * have no effect on the arrays returned to other callers. + */ + // @ts-ignore + getAnnotations(): java.lang.annotation.Annotation[]; + /** + * Returns annotations that are associated with this element. + * If there are no annotations associated with this element, the return + * value is an array of length 0. + * The difference between this method and {@link #getAnnotation(Class)} + * is that this method detects if its argument is a repeatable + * annotation type (JLS 9.6), and if so, attempts to find one or + * more annotations of that type by "looking through" a container + * annotation. + * The caller of this method is free to modify the returned array; it will + * have no effect on the arrays returned to other callers. + */ + // @ts-ignore + getAnnotationsByType(annotationClass: java.lang.Class): java.lang.annotation.Annotation[]; + /** + * Returns this element's annotation for the specified type if + * such an annotation is directly present, else null. + * This method ignores inherited annotations. (Returns null if no + * annotations are directly present on this element.) + */ + // @ts-ignore + getDeclaredAnnotation(annotationClass: java.lang.Class): java.lang.annotation.Annotation; + /** + * Returns this element's annotation(s) for the specified type if + * such annotations are either directly present or + * indirectly present. This method ignores inherited + * annotations. + * If there are no specified annotations directly or indirectly + * present on this element, the return value is an array of length + * 0. + * The difference between this method and {@link + * #getDeclaredAnnotation(Class)} is that this method detects if its + * argument is a repeatable annotation type (JLS 9.6), and if so, + * attempts to find one or more annotations of that type by "looking + * through" a container annotation if one is present. + * The caller of this method is free to modify the returned array; it will + * have no effect on the arrays returned to other callers. + */ + // @ts-ignore + getDeclaredAnnotationsByType(annotationClass: java.lang.Class): java.lang.annotation.Annotation[]; + /** + * Returns annotations that are directly present on this element. + * This method ignores inherited annotations. + * If there are no annotations directly present on this element, + * the return value is an array of length 0. + * The caller of this method is free to modify the returned array; it will + * have no effect on the arrays returned to other callers. + */ + // @ts-ignore + getDeclaredAnnotations(): java.lang.annotation.Annotation[]; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.reflect.AnnotatedParameterizedType.d.ts b/packages/types/dist/typings/jdk/java.lang.reflect.AnnotatedParameterizedType.d.ts new file mode 100644 index 00000000..0da30f15 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.reflect.AnnotatedParameterizedType.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace reflect { + // @ts-ignore + interface AnnotatedParameterizedType { + /** + * Returns the potentially annotated actual type arguments of this parameterized type. + */ + // @ts-ignore + getAnnotatedActualTypeArguments(): java.lang.reflect.AnnotatedType[]; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.reflect.AnnotatedType.d.ts b/packages/types/dist/typings/jdk/java.lang.reflect.AnnotatedType.d.ts new file mode 100644 index 00000000..b6840d8d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.reflect.AnnotatedType.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace reflect { + // @ts-ignore + interface AnnotatedType { + /** + * Returns the underlying type that this annotated type represents. + */ + // @ts-ignore + getType(): java.lang.reflect.Type; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.reflect.AnnotatedTypeVariable.d.ts b/packages/types/dist/typings/jdk/java.lang.reflect.AnnotatedTypeVariable.d.ts new file mode 100644 index 00000000..99b2e0d6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.reflect.AnnotatedTypeVariable.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace reflect { + // @ts-ignore + interface AnnotatedTypeVariable { + /** + * Returns the potentially annotated bounds of this type variable. + */ + // @ts-ignore + getAnnotatedBounds(): java.lang.reflect.AnnotatedType[]; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.reflect.AnnotatedWildcardType.d.ts b/packages/types/dist/typings/jdk/java.lang.reflect.AnnotatedWildcardType.d.ts new file mode 100644 index 00000000..85ac1880 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.reflect.AnnotatedWildcardType.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace reflect { + // @ts-ignore + interface AnnotatedWildcardType { + /** + * Returns the potentially annotated lower bounds of this wildcard type. + */ + // @ts-ignore + getAnnotatedLowerBounds(): java.lang.reflect.AnnotatedType[]; + /** + * Returns the potentially annotated upper bounds of this wildcard type. + */ + // @ts-ignore + getAnnotatedUpperBounds(): java.lang.reflect.AnnotatedType[]; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.reflect.Array.d.ts b/packages/types/dist/typings/jdk/java.lang.reflect.Array.d.ts new file mode 100644 index 00000000..a479c45b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.reflect.Array.d.ts @@ -0,0 +1,149 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace reflect { + // @ts-ignore + class Array extends java.lang.Object { + /** + * Return the element of the array at the specified index. + * This reproduces the effect of array[index] + * If the array component is a base type, the result is + * automatically wrapped. + */ + // @ts-ignore + public static get(array: java.lang.Object, index: number): java.lang.Object; + /** + * Return the element of the array at the specified index, + * converted to a boolean if possible. + * This reproduces the effect of array[index] + */ + // @ts-ignore + public static getBoolean(array: java.lang.Object, index: number): boolean; + /** + * Return the element of the array at the specified index, + * converted to a byte if possible. + * This reproduces the effect of array[index] + */ + // @ts-ignore + public static getByte(array: java.lang.Object, index: number): number; + /** + * Return the element of the array at the specified index, + * converted to a char if possible. + * This reproduces the effect of array[index] + */ + // @ts-ignore + public static getChar(array: java.lang.Object, index: number): string; + /** + * Return the element of the array at the specified index, + * converted to a double if possible. + * This reproduces the effect of array[index] + */ + // @ts-ignore + public static getDouble(array: java.lang.Object, index: number): number; + /** + * Return the element of the array at the specified index, + * converted to a float if possible. + * This reproduces the effect of array[index] + */ + // @ts-ignore + public static getFloat(array: java.lang.Object, index: number): number; + /** + * Return the element of the array at the specified index, + * converted to an int if possible. + * This reproduces the effect of array[index] + */ + // @ts-ignore + public static getInt(array: java.lang.Object, index: number): number; + /** + * Return the length of the array. + * This reproduces the effect of array.length + */ + // @ts-ignore + public static getLength(array: java.lang.Object): number; + /** + * Return the element of the array at the specified index, + * converted to a long if possible. + * This reproduces the effect of array[index] + */ + // @ts-ignore + public static getLong(array: java.lang.Object, index: number): number; + /** + * Return the element of the array at the specified index, + * converted to a short if possible. + * This reproduces the effect of array[index] + */ + // @ts-ignore + public static getShort(array: java.lang.Object, index: number): number; + /** + * Return a new multidimensional array of the specified component type and dimensions. + * This reproduces the effect of new componentType[d0][d1]...[dn] + * for a dimensions array of { d0, d1, ... , dn } + */ + // @ts-ignore + public static newInstance(componentType: java.lang.Class, dimensions: number): java.lang.Object; + /** + * Return a new array of the specified component type and length. + * This reproduces the effect of new componentType[size] + */ + // @ts-ignore + public static newInstance(componentType: java.lang.Class, size: number): java.lang.Object; + /** + * Set the element of the array at the specified index to the value. + * This reproduces the effect of array[index] = value + * If the array component is a base type, the value is automatically + * unwrapped + */ + // @ts-ignore + public static set(array: java.lang.Object, index: number, value: java.lang.Object): void; + /** + * Set the element of the array at the specified index to the boolean + * value. This reproduces the effect of array[index] = value + */ + // @ts-ignore + public static setBoolean(array: java.lang.Object, index: number, value: boolean): void; + /** + * Set the element of the array at the specified index to the byte + * value. This reproduces the effect of array[index] = value + */ + // @ts-ignore + public static setByte(array: java.lang.Object, index: number, value: number): void; + /** + * Set the element of the array at the specified index to the char + * value. This reproduces the effect of array[index] = value + */ + // @ts-ignore + public static setChar(array: java.lang.Object, index: number, value: string): void; + /** + * Set the element of the array at the specified index to the double + * value. This reproduces the effect of array[index] = value + */ + // @ts-ignore + public static setDouble(array: java.lang.Object, index: number, value: number): void; + /** + * Set the element of the array at the specified index to the float + * value. This reproduces the effect of array[index] = value + */ + // @ts-ignore + public static setFloat(array: java.lang.Object, index: number, value: number): void; + /** + * Set the element of the array at the specified index to the int + * value. This reproduces the effect of array[index] = value + */ + // @ts-ignore + public static setInt(array: java.lang.Object, index: number, value: number): void; + /** + * Set the element of the array at the specified index to the long + * value. This reproduces the effect of array[index] = value + */ + // @ts-ignore + public static setLong(array: java.lang.Object, index: number, value: number): void; + /** + * Set the element of the array at the specified index to the short + * value. This reproduces the effect of array[index] = value + */ + // @ts-ignore + public static setShort(array: java.lang.Object, index: number, value: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.reflect.Constructor.d.ts b/packages/types/dist/typings/jdk/java.lang.reflect.Constructor.d.ts new file mode 100644 index 00000000..e168cfb5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.reflect.Constructor.d.ts @@ -0,0 +1,170 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace reflect { + // @ts-ignore + class Constructor extends java.lang.reflect.Executable { + /** + * {@inheritDoc} + */ + // @ts-ignore + public getDeclaringClass(): java.lang.Class; + /** + * Returns the name of this constructor, as a string. This is + * the binary name of the constructor's declaring class. + */ + // @ts-ignore + public getName(): string; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getModifiers(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getTypeParameters(): java.lang.reflect.TypeVariable[]; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getParameterTypes(): java.lang.Class[]; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getParameterCount(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getGenericParameterTypes(): java.lang.reflect.Type[]; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getExceptionTypes(): java.lang.Class[]; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getGenericExceptionTypes(): java.lang.reflect.Type[]; + /** + * Compares this {@code Constructor} against the specified object. + * Returns true if the objects are the same. Two {@code Constructor} objects are + * the same if they were declared by the same class and have the + * same formal parameter types. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a hashcode for this {@code Constructor}. The hashcode is + * the same as the hashcode for the underlying constructor's + * declaring class name. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns a string describing this {@code Constructor}. The string is + * formatted as the constructor access modifiers, if any, + * followed by the fully-qualified name of the declaring class, + * followed by a parenthesized, comma-separated list of the + * constructor's formal parameter types. For example: + *

+                 * public java.util.Hashtable(int,float)
+                 * 
+ *

The only possible modifiers for constructors are the access + * modifiers {@code public}, {@code protected} or + * {@code private}. Only one of these may appear, or none if the + * constructor has default (package) access. + */ + // @ts-ignore + public toString(): string; + /** + * Returns a string describing this {@code Constructor}, + * including type parameters. The string is formatted as the + * constructor access modifiers, if any, followed by an + * angle-bracketed comma separated list of the constructor's type + * parameters, if any, followed by the fully-qualified name of the + * declaring class, followed by a parenthesized, comma-separated + * list of the constructor's generic formal parameter types. + * If this constructor was declared to take a variable number of + * arguments, instead of denoting the last parameter as + * "Type[]", it is denoted as + * "Type...". + * A space is used to separate access modifiers from one another + * and from the type parameters or return type. If there are no + * type parameters, the type parameter list is elided; if the type + * parameter list is present, a space separates the list from the + * class name. If the constructor is declared to throw + * exceptions, the parameter list is followed by a space, followed + * by the word "{@code throws}" followed by a + * comma-separated list of the thrown exception types. + *

The only possible modifiers for constructors are the access + * modifiers {@code public}, {@code protected} or + * {@code private}. Only one of these may appear, or none if the + * constructor has default (package) access. + */ + // @ts-ignore + public toGenericString(): string; + /** + * Uses the constructor represented by this {@code Constructor} object to + * create and initialize a new instance of the constructor's + * declaring class, with the specified initialization parameters. + * Individual parameters are automatically unwrapped to match + * primitive formal parameters, and both primitive and reference + * parameters are subject to method invocation conversions as necessary. + *

If the number of formal parameters required by the underlying constructor + * is 0, the supplied {@code initargs} array may be of length 0 or null. + *

If the constructor's declaring class is an inner class in a + * non-static context, the first argument to the constructor needs + * to be the enclosing instance; see section 15.9.3 of + * The Java™ Language Specification. + *

If the required access and argument checks succeed and the + * instantiation will proceed, the constructor's declaring class + * is initialized if it has not already been initialized. + *

If the constructor completes normally, returns the newly + * created and initialized instance. + */ + // @ts-ignore + public newInstance(initargs: java.lang.Object): java.lang.Object; + /** + * {@inheritDoc} + */ + // @ts-ignore + public isVarArgs(): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public isSynthetic(): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getAnnotation(annotationClass: java.lang.Class): java.lang.annotation.Annotation; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getDeclaredAnnotations(): java.lang.annotation.Annotation[]; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getParameterAnnotations(): java.lang.annotation.Annotation[][]; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getAnnotatedReturnType(): java.lang.reflect.AnnotatedType; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getAnnotatedReceiverType(): java.lang.reflect.AnnotatedType; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.reflect.Executable.d.ts b/packages/types/dist/typings/jdk/java.lang.reflect.Executable.d.ts new file mode 100644 index 00000000..d0ead287 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.reflect.Executable.d.ts @@ -0,0 +1,200 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace reflect { + // @ts-ignore + abstract class Executable extends java.lang.reflect.AccessibleObject { + /** + * Returns the {@code Class} object representing the class or interface + * that declares the executable represented by this object. + */ + // @ts-ignore + public abstract getDeclaringClass(): java.lang.Class; + /** + * Returns the name of the executable represented by this object. + */ + // @ts-ignore + public abstract getName(): string; + /** + * Returns the Java language {@linkplain Modifier modifiers} for + * the executable represented by this object. + */ + // @ts-ignore + public abstract getModifiers(): number; + /** + * Returns an array of {@code TypeVariable} objects that represent the + * type variables declared by the generic declaration represented by this + * {@code GenericDeclaration} object, in declaration order. Returns an + * array of length 0 if the underlying generic declaration declares no type + * variables. + */ + // @ts-ignore + public abstract getTypeParameters(): java.lang.reflect.TypeVariable[]; + /** + * Returns an array of {@code Class} objects that represent the formal + * parameter types, in declaration order, of the executable + * represented by this object. Returns an array of length + * 0 if the underlying executable takes no parameters. + */ + // @ts-ignore + public abstract getParameterTypes(): java.lang.Class[]; + /** + * Returns the number of formal parameters (whether explicitly + * declared or implicitly declared or neither) for the executable + * represented by this object. + */ + // @ts-ignore + public getParameterCount(): number; + /** + * Returns an array of {@code Type} objects that represent the formal + * parameter types, in declaration order, of the executable represented by + * this object. Returns an array of length 0 if the + * underlying executable takes no parameters. + *

If a formal parameter type is a parameterized type, + * the {@code Type} object returned for it must accurately reflect + * the actual type parameters used in the source code. + *

If a formal parameter type is a type variable or a parameterized + * type, it is created. Otherwise, it is resolved. + */ + // @ts-ignore + public getGenericParameterTypes(): java.lang.reflect.Type[]; + /** + * Returns an array of {@code Parameter} objects that represent + * all the parameters to the underlying executable represented by + * this object. Returns an array of length 0 if the executable + * has no parameters. + *

The parameters of the underlying executable do not necessarily + * have unique names, or names that are legal identifiers in the + * Java programming language (JLS 3.8). + */ + // @ts-ignore + public getParameters(): java.lang.reflect.Parameter[]; + /** + * Returns an array of {@code Class} objects that represent the + * types of exceptions declared to be thrown by the underlying + * executable represented by this object. Returns an array of + * length 0 if the executable declares no exceptions in its {@code + * throws} clause. + */ + // @ts-ignore + public abstract getExceptionTypes(): java.lang.Class[]; + /** + * Returns an array of {@code Type} objects that represent the + * exceptions declared to be thrown by this executable object. + * Returns an array of length 0 if the underlying executable declares + * no exceptions in its {@code throws} clause. + *

If an exception type is a type variable or a parameterized + * type, it is created. Otherwise, it is resolved. + */ + // @ts-ignore + public getGenericExceptionTypes(): java.lang.reflect.Type[]; + /** + * Returns a string describing this {@code Executable}, including + * any type parameters. + */ + // @ts-ignore + public abstract toGenericString(): string; + /** + * Returns {@code true} if this executable was declared to take a + * variable number of arguments; returns {@code false} otherwise. + */ + // @ts-ignore + public isVarArgs(): boolean; + /** + * Returns {@code true} if this executable is a synthetic + * construct; returns {@code false} otherwise. + */ + // @ts-ignore + public isSynthetic(): boolean; + /** + * Returns an array of arrays of {@code Annotation}s that + * represent the annotations on the formal parameters, in + * declaration order, of the {@code Executable} represented by + * this object. Synthetic and mandated parameters (see + * explanation below), such as the outer "this" parameter to an + * inner class constructor will be represented in the returned + * array. If the executable has no parameters (meaning no formal, + * no synthetic, and no mandated parameters), a zero-length array + * will be returned. If the {@code Executable} has one or more + * parameters, a nested array of length zero is returned for each + * parameter with no annotations. The annotation objects contained + * in the returned arrays are serializable. The caller of this + * method is free to modify the returned arrays; it will have no + * effect on the arrays returned to other callers. + * A compiler may add extra parameters that are implicitly + * declared in source ("mandated"), as well as parameters that + * are neither implicitly nor explicitly declared in source + * ("synthetic") to the parameter list for a method. See {@link + * java.lang.reflect.Parameter} for more information. + */ + // @ts-ignore + public abstract getParameterAnnotations(): java.lang.annotation.Annotation[][]; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getAnnotation(annotationClass: java.lang.Class): java.lang.annotation.Annotation; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getAnnotationsByType(annotationClass: java.lang.Class): java.lang.annotation.Annotation[]; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getDeclaredAnnotations(): java.lang.annotation.Annotation[]; + /** + * Returns an {@code AnnotatedType} object that represents the use of a type to + * specify the return type of the method/constructor represented by this + * Executable. + * If this {@code Executable} object represents a constructor, the {@code + * AnnotatedType} object represents the type of the constructed object. + * If this {@code Executable} object represents a method, the {@code + * AnnotatedType} object represents the use of a type to specify the return + * type of the method. + */ + // @ts-ignore + public abstract getAnnotatedReturnType(): java.lang.reflect.AnnotatedType; + /** + * Returns an {@code AnnotatedType} object that represents the use of a + * type to specify the receiver type of the method/constructor represented + * by this Executable object. The receiver type of a method/constructor is + * available only if the method/constructor has a receiver + * parameter (JLS 8.4.1). + * If this {@code Executable} object represents a constructor or instance + * method that does not have a receiver parameter, or has a receiver + * parameter with no annotations on its type, then the return value is an + * {@code AnnotatedType} object representing an element with no + * annotations. + * If this {@code Executable} object represents a static method, then the + * return value is null. + */ + // @ts-ignore + public getAnnotatedReceiverType(): java.lang.reflect.AnnotatedType; + /** + * Returns an array of {@code AnnotatedType} objects that represent the use + * of types to specify formal parameter types of the method/constructor + * represented by this Executable. The order of the objects in the array + * corresponds to the order of the formal parameter types in the + * declaration of the method/constructor. + * Returns an array of length 0 if the method/constructor declares no + * parameters. + */ + // @ts-ignore + public getAnnotatedParameterTypes(): java.lang.reflect.AnnotatedType[]; + /** + * Returns an array of {@code AnnotatedType} objects that represent the use + * of types to specify the declared exceptions of the method/constructor + * represented by this Executable. The order of the objects in the array + * corresponds to the order of the exception types in the declaration of + * the method/constructor. + * Returns an array of length 0 if the method/constructor declares no + * exceptions. + */ + // @ts-ignore + public getAnnotatedExceptionTypes(): java.lang.reflect.AnnotatedType[]; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.reflect.Field.d.ts b/packages/types/dist/typings/jdk/java.lang.reflect.Field.d.ts new file mode 100644 index 00000000..86d73ec1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.reflect.Field.d.ts @@ -0,0 +1,317 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace reflect { + // @ts-ignore + class Field extends java.lang.reflect.AccessibleObject { + /** + * Returns the {@code Class} object representing the class or interface + * that declares the field represented by this {@code Field} object. + */ + // @ts-ignore + public getDeclaringClass(): java.lang.Class; + /** + * Returns the name of the field represented by this {@code Field} object. + */ + // @ts-ignore + public getName(): string; + /** + * Returns the Java language modifiers for the field represented + * by this {@code Field} object, as an integer. The {@code Modifier} class should + * be used to decode the modifiers. + */ + // @ts-ignore + public getModifiers(): number; + /** + * Returns {@code true} if this field represents an element of + * an enumerated type; returns {@code false} otherwise. + */ + // @ts-ignore + public isEnumConstant(): boolean; + /** + * Returns {@code true} if this field is a synthetic + * field; returns {@code false} otherwise. + */ + // @ts-ignore + public isSynthetic(): boolean; + /** + * Returns a {@code Class} object that identifies the + * declared type for the field represented by this + * {@code Field} object. + */ + // @ts-ignore + public getType(): java.lang.Class; + /** + * Returns a {@code Type} object that represents the declared type for + * the field represented by this {@code Field} object. + *

If the {@code Type} is a parameterized type, the + * {@code Type} object returned must accurately reflect the + * actual type parameters used in the source code. + *

If the type of the underlying field is a type variable or a + * parameterized type, it is created. Otherwise, it is resolved. + */ + // @ts-ignore + public getGenericType(): java.lang.reflect.Type; + /** + * Compares this {@code Field} against the specified object. Returns + * true if the objects are the same. Two {@code Field} objects are the same if + * they were declared by the same class and have the same name + * and type. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a hashcode for this {@code Field}. This is computed as the + * exclusive-or of the hashcodes for the underlying field's + * declaring class name and its name. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns a string describing this {@code Field}. The format is + * the access modifiers for the field, if any, followed + * by the field type, followed by a space, followed by + * the fully-qualified name of the class declaring the field, + * followed by a period, followed by the name of the field. + * For example: + *

+                 * public static final int java.lang.Thread.MIN_PRIORITY
+                 * private int java.io.FileDescriptor.fd
+                 * 
+ *

The modifiers are placed in canonical order as specified by + * "The Java Language Specification". This is {@code public}, + * {@code protected} or {@code private} first, and then other + * modifiers in the following order: {@code static}, {@code final}, + * {@code transient}, {@code volatile}. + */ + // @ts-ignore + public toString(): string; + /** + * Returns a string describing this {@code Field}, including + * its generic type. The format is the access modifiers for the + * field, if any, followed by the generic field type, followed by + * a space, followed by the fully-qualified name of the class + * declaring the field, followed by a period, followed by the name + * of the field. + *

The modifiers are placed in canonical order as specified by + * "The Java Language Specification". This is {@code public}, + * {@code protected} or {@code private} first, and then other + * modifiers in the following order: {@code static}, {@code final}, + * {@code transient}, {@code volatile}. + */ + // @ts-ignore + public toGenericString(): string; + /** + * Returns the value of the field represented by this {@code Field}, on + * the specified object. The value is automatically wrapped in an + * object if it has a primitive type. + *

The underlying field's value is obtained as follows: + *

If the underlying field is a static field, the {@code obj} argument + * is ignored; it may be null. + *

Otherwise, the underlying field is an instance field. If the + * specified {@code obj} argument is null, the method throws a + * {@code NullPointerException}. If the specified object is not an + * instance of the class or interface declaring the underlying + * field, the method throws an {@code IllegalArgumentException}. + *

If this {@code Field} object is enforcing Java language access control, and + * the underlying field is inaccessible, the method throws an + * {@code IllegalAccessException}. + * If the underlying field is static, the class that declared the + * field is initialized if it has not already been initialized. + *

Otherwise, the value is retrieved from the underlying instance + * or static field. If the field has a primitive type, the value + * is wrapped in an object before being returned, otherwise it is + * returned as is. + *

If the field is hidden in the type of {@code obj}, + * the field's value is obtained according to the preceding rules. + */ + // @ts-ignore + public get(obj: java.lang.Object): java.lang.Object; + /** + * Gets the value of a static or instance {@code boolean} field. + */ + // @ts-ignore + public getBoolean(obj: java.lang.Object): boolean; + /** + * Gets the value of a static or instance {@code byte} field. + */ + // @ts-ignore + public getByte(obj: java.lang.Object): number; + /** + * Gets the value of a static or instance field of type + * {@code char} or of another primitive type convertible to + * type {@code char} via a widening conversion. + */ + // @ts-ignore + public getChar(obj: java.lang.Object): string; + /** + * Gets the value of a static or instance field of type + * {@code short} or of another primitive type convertible to + * type {@code short} via a widening conversion. + */ + // @ts-ignore + public getShort(obj: java.lang.Object): number; + /** + * Gets the value of a static or instance field of type + * {@code int} or of another primitive type convertible to + * type {@code int} via a widening conversion. + */ + // @ts-ignore + public getInt(obj: java.lang.Object): number; + /** + * Gets the value of a static or instance field of type + * {@code long} or of another primitive type convertible to + * type {@code long} via a widening conversion. + */ + // @ts-ignore + public getLong(obj: java.lang.Object): number; + /** + * Gets the value of a static or instance field of type + * {@code float} or of another primitive type convertible to + * type {@code float} via a widening conversion. + */ + // @ts-ignore + public getFloat(obj: java.lang.Object): number; + /** + * Gets the value of a static or instance field of type + * {@code double} or of another primitive type convertible to + * type {@code double} via a widening conversion. + */ + // @ts-ignore + public getDouble(obj: java.lang.Object): number; + /** + * Sets the field represented by this {@code Field} object on the + * specified object argument to the specified new value. The new + * value is automatically unwrapped if the underlying field has a + * primitive type. + *

The operation proceeds as follows: + *

If the underlying field is static, the {@code obj} argument is + * ignored; it may be null. + *

Otherwise the underlying field is an instance field. If the + * specified object argument is null, the method throws a + * {@code NullPointerException}. If the specified object argument is not + * an instance of the class or interface declaring the underlying + * field, the method throws an {@code IllegalArgumentException}. + *

If this {@code Field} object is enforcing Java language access control, and + * the underlying field is inaccessible, the method throws an + * {@code IllegalAccessException}. + *

If the underlying field is final, the method throws an + * {@code IllegalAccessException} unless {@code setAccessible(true)} + * has succeeded for this {@code Field} object + * and the field is non-static. Setting a final field in this way + * is meaningful only during deserialization or reconstruction of + * instances of classes with blank final fields, before they are + * made available for access by other parts of a program. Use in + * any other context may have unpredictable effects, including cases + * in which other parts of a program continue to use the original + * value of this field. + *

If the underlying field is of a primitive type, an unwrapping + * conversion is attempted to convert the new value to a value of + * a primitive type. If this attempt fails, the method throws an + * {@code IllegalArgumentException}. + *

If, after possible unwrapping, the new value cannot be + * converted to the type of the underlying field by an identity or + * widening conversion, the method throws an + * {@code IllegalArgumentException}. + *

If the underlying field is static, the class that declared the + * field is initialized if it has not already been initialized. + *

The field is set to the possibly unwrapped and widened new value. + *

If the field is hidden in the type of {@code obj}, + * the field's value is set according to the preceding rules. + */ + // @ts-ignore + public set(obj: java.lang.Object, value: java.lang.Object): void; + /** + * Sets the value of a field as a {@code boolean} on the specified object. + * This method is equivalent to + * {@code set(obj, zObj)}, + * where {@code zObj} is a {@code Boolean} object and + * {@code zObj.booleanValue() == z}. + */ + // @ts-ignore + public setBoolean(obj: java.lang.Object, z: boolean): void; + /** + * Sets the value of a field as a {@code byte} on the specified object. + * This method is equivalent to + * {@code set(obj, bObj)}, + * where {@code bObj} is a {@code Byte} object and + * {@code bObj.byteValue() == b}. + */ + // @ts-ignore + public setByte(obj: java.lang.Object, b: number): void; + /** + * Sets the value of a field as a {@code char} on the specified object. + * This method is equivalent to + * {@code set(obj, cObj)}, + * where {@code cObj} is a {@code Character} object and + * {@code cObj.charValue() == c}. + */ + // @ts-ignore + public setChar(obj: java.lang.Object, c: string): void; + /** + * Sets the value of a field as a {@code short} on the specified object. + * This method is equivalent to + * {@code set(obj, sObj)}, + * where {@code sObj} is a {@code Short} object and + * {@code sObj.shortValue() == s}. + */ + // @ts-ignore + public setShort(obj: java.lang.Object, s: number): void; + /** + * Sets the value of a field as an {@code int} on the specified object. + * This method is equivalent to + * {@code set(obj, iObj)}, + * where {@code iObj} is a {@code Integer} object and + * {@code iObj.intValue() == i}. + */ + // @ts-ignore + public setInt(obj: java.lang.Object, i: number): void; + /** + * Sets the value of a field as a {@code long} on the specified object. + * This method is equivalent to + * {@code set(obj, lObj)}, + * where {@code lObj} is a {@code Long} object and + * {@code lObj.longValue() == l}. + */ + // @ts-ignore + public setLong(obj: java.lang.Object, l: number): void; + /** + * Sets the value of a field as a {@code float} on the specified object. + * This method is equivalent to + * {@code set(obj, fObj)}, + * where {@code fObj} is a {@code Float} object and + * {@code fObj.floatValue() == f}. + */ + // @ts-ignore + public setFloat(obj: java.lang.Object, f: number): void; + /** + * Sets the value of a field as a {@code double} on the specified object. + * This method is equivalent to + * {@code set(obj, dObj)}, + * where {@code dObj} is a {@code Double} object and + * {@code dObj.doubleValue() == d}. + */ + // @ts-ignore + public setDouble(obj: java.lang.Object, d: number): void; + // @ts-ignore + public getAnnotation(annotationClass: java.lang.Class): java.lang.annotation.Annotation; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getAnnotationsByType(annotationClass: java.lang.Class): java.lang.annotation.Annotation[]; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getDeclaredAnnotations(): java.lang.annotation.Annotation[]; + /** + * Returns an AnnotatedType object that represents the use of a type to specify + * the declared type of the field represented by this Field. + */ + // @ts-ignore + public getAnnotatedType(): java.lang.reflect.AnnotatedType; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.reflect.GenericArrayType.d.ts b/packages/types/dist/typings/jdk/java.lang.reflect.GenericArrayType.d.ts new file mode 100644 index 00000000..767e820c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.reflect.GenericArrayType.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace reflect { + // @ts-ignore + interface GenericArrayType { + /** + * Returns a {@code Type} object representing the component type + * of this array. This method creates the component type of the + * array. See the declaration of {@link + * java.lang.reflect.ParameterizedType ParameterizedType} for the + * semantics of the creation process for parameterized types and + * see {@link java.lang.reflect.TypeVariable TypeVariable} for the + * creation process for type variables. + */ + // @ts-ignore + getGenericComponentType(): java.lang.reflect.Type; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.reflect.GenericDeclaration.d.ts b/packages/types/dist/typings/jdk/java.lang.reflect.GenericDeclaration.d.ts new file mode 100644 index 00000000..84d188e9 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.reflect.GenericDeclaration.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace reflect { + // @ts-ignore + interface GenericDeclaration { + /** + * Returns an array of {@code TypeVariable} objects that + * represent the type variables declared by the generic + * declaration represented by this {@code GenericDeclaration} + * object, in declaration order. Returns an array of length 0 if + * the underlying generic declaration declares no type variables. + */ + // @ts-ignore + getTypeParameters(): java.lang.reflect.TypeVariable[]; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.reflect.GenericSignatureFormatError.d.ts b/packages/types/dist/typings/jdk/java.lang.reflect.GenericSignatureFormatError.d.ts new file mode 100644 index 00000000..46628b99 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.reflect.GenericSignatureFormatError.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace reflect { + // @ts-ignore + class GenericSignatureFormatError extends java.lang.ClassFormatError { + /** + * Constructs a new {@code GenericSignatureFormatError}. + */ + // @ts-ignore + constructor() + /** + * Constructs a new {@code GenericSignatureFormatError} with the + * specified message. + */ + // @ts-ignore + constructor(message: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.reflect.InvocationHandler.d.ts b/packages/types/dist/typings/jdk/java.lang.reflect.InvocationHandler.d.ts new file mode 100644 index 00000000..bbbe76ba --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.reflect.InvocationHandler.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace reflect { + // @ts-ignore + interface InvocationHandler { + /** + * Processes a method invocation on a proxy instance and returns + * the result. This method will be invoked on an invocation handler + * when a method is invoked on a proxy instance that it is + * associated with. + */ + // @ts-ignore + invoke(proxy: java.lang.Object, method: java.lang.reflect.Method, args: java.lang.Object): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.reflect.InvocationTargetException.d.ts b/packages/types/dist/typings/jdk/java.lang.reflect.InvocationTargetException.d.ts new file mode 100644 index 00000000..ab74ed02 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.reflect.InvocationTargetException.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace reflect { + // @ts-ignore + class InvocationTargetException extends java.lang.ReflectiveOperationException { + /** + * Constructs an {@code InvocationTargetException} with + * {@code null} as the target exception. + */ + // @ts-ignore + constructor() + /** + * Constructs a InvocationTargetException with a target exception. + */ + // @ts-ignore + constructor(target: java.lang.Throwable) + /** + * Constructs a InvocationTargetException with a target exception + * and a detail message. + */ + // @ts-ignore + constructor(target: java.lang.Throwable, s: string) + /** + * Get the thrown target exception. + *

This method predates the general-purpose exception chaining facility. + * The {@link Throwable#getCause()} method is now the preferred means of + * obtaining this information. + */ + // @ts-ignore + public getTargetException(): java.lang.Throwable; + /** + * Returns the cause of this exception (the thrown target exception, + * which may be {@code null}). + */ + // @ts-ignore + public getCause(): java.lang.Throwable; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.reflect.MalformedParameterizedTypeException.d.ts b/packages/types/dist/typings/jdk/java.lang.reflect.MalformedParameterizedTypeException.d.ts new file mode 100644 index 00000000..730bab34 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.reflect.MalformedParameterizedTypeException.d.ts @@ -0,0 +1,12 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace reflect { + // @ts-ignore + class MalformedParameterizedTypeException extends java.lang.RuntimeException { + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.reflect.MalformedParametersException.d.ts b/packages/types/dist/typings/jdk/java.lang.reflect.MalformedParametersException.d.ts new file mode 100644 index 00000000..39c01f2f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.reflect.MalformedParametersException.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace reflect { + // @ts-ignore + class MalformedParametersException extends java.lang.RuntimeException { + /** + * Create a {@code MalformedParametersException} with an empty + * reason. + */ + // @ts-ignore + constructor() + /** + * Create a {@code MalformedParametersException}. + */ + // @ts-ignore + constructor(reason: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.reflect.Member.d.ts b/packages/types/dist/typings/jdk/java.lang.reflect.Member.d.ts new file mode 100644 index 00000000..90938250 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.reflect.Member.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace reflect { + // @ts-ignore + interface Member { + // @ts-ignore + PUBLIC: number; + // @ts-ignore + DECLARED: number; + /** + * Returns the Class object representing the class or interface + * that declares the member or constructor represented by this Member. + */ + // @ts-ignore + getDeclaringClass(): java.lang.Class; + /** + * Returns the simple name of the underlying member or constructor + * represented by this Member. + */ + // @ts-ignore + getName(): string; + /** + * Returns the Java language modifiers for the member or + * constructor represented by this Member, as an integer. The + * Modifier class should be used to decode the modifiers in + * the integer. + */ + // @ts-ignore + getModifiers(): number; + /** + * Returns {@code true} if this member was introduced by + * the compiler; returns {@code false} otherwise. + */ + // @ts-ignore + isSynthetic(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.reflect.Method.d.ts b/packages/types/dist/typings/jdk/java.lang.reflect.Method.d.ts new file mode 100644 index 00000000..47ad5ea0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.reflect.Method.d.ts @@ -0,0 +1,224 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace reflect { + // @ts-ignore + class Method extends java.lang.reflect.Executable { + /** + * {@inheritDoc} + */ + // @ts-ignore + public getDeclaringClass(): java.lang.Class; + /** + * Returns the name of the method represented by this {@code Method} + * object, as a {@code String}. + */ + // @ts-ignore + public getName(): string; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getModifiers(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getTypeParameters(): java.lang.reflect.TypeVariable[]; + /** + * Returns a {@code Class} object that represents the formal return type + * of the method represented by this {@code Method} object. + */ + // @ts-ignore + public getReturnType(): java.lang.Class; + /** + * Returns a {@code Type} object that represents the formal return + * type of the method represented by this {@code Method} object. + *

If the return type is a parameterized type, + * the {@code Type} object returned must accurately reflect + * the actual type parameters used in the source code. + *

If the return type is a type variable or a parameterized type, it + * is created. Otherwise, it is resolved. + */ + // @ts-ignore + public getGenericReturnType(): java.lang.reflect.Type; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getParameterTypes(): java.lang.Class[]; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getParameterCount(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getGenericParameterTypes(): java.lang.reflect.Type[]; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getExceptionTypes(): java.lang.Class[]; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getGenericExceptionTypes(): java.lang.reflect.Type[]; + /** + * Compares this {@code Method} against the specified object. Returns + * true if the objects are the same. Two {@code Methods} are the same if + * they were declared by the same class and have the same name + * and formal parameter types and return type. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a hashcode for this {@code Method}. The hashcode is computed + * as the exclusive-or of the hashcodes for the underlying + * method's declaring class name and the method's name. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns a string describing this {@code Method}. The string is + * formatted as the method access modifiers, if any, followed by + * the method return type, followed by a space, followed by the + * class declaring the method, followed by a period, followed by + * the method name, followed by a parenthesized, comma-separated + * list of the method's formal parameter types. If the method + * throws checked exceptions, the parameter list is followed by a + * space, followed by the word throws followed by a + * comma-separated list of the thrown exception types. + * For example: + *

+                 * public boolean java.lang.Object.equals(java.lang.Object)
+                 * 
+ *

The access modifiers are placed in canonical order as + * specified by "The Java Language Specification". This is + * {@code public}, {@code protected} or {@code private} first, + * and then other modifiers in the following order: + * {@code abstract}, {@code default}, {@code static}, {@code final}, + * {@code synchronized}, {@code native}, {@code strictfp}. + */ + // @ts-ignore + public toString(): string; + /** + * Returns a string describing this {@code Method}, including + * type parameters. The string is formatted as the method access + * modifiers, if any, followed by an angle-bracketed + * comma-separated list of the method's type parameters, if any, + * followed by the method's generic return type, followed by a + * space, followed by the class declaring the method, followed by + * a period, followed by the method name, followed by a + * parenthesized, comma-separated list of the method's generic + * formal parameter types. + * If this method was declared to take a variable number of + * arguments, instead of denoting the last parameter as + * "Type[]", it is denoted as + * "Type...". + * A space is used to separate access modifiers from one another + * and from the type parameters or return type. If there are no + * type parameters, the type parameter list is elided; if the type + * parameter list is present, a space separates the list from the + * class name. If the method is declared to throw exceptions, the + * parameter list is followed by a space, followed by the word + * throws followed by a comma-separated list of the generic thrown + * exception types. + *

The access modifiers are placed in canonical order as + * specified by "The Java Language Specification". This is + * {@code public}, {@code protected} or {@code private} first, + * and then other modifiers in the following order: + * {@code abstract}, {@code default}, {@code static}, {@code final}, + * {@code synchronized}, {@code native}, {@code strictfp}. + */ + // @ts-ignore + public toGenericString(): string; + /** + * Invokes the underlying method represented by this {@code Method} + * object, on the specified object with the specified parameters. + * Individual parameters are automatically unwrapped to match + * primitive formal parameters, and both primitive and reference + * parameters are subject to method invocation conversions as + * necessary. + *

If the underlying method is static, then the specified {@code obj} + * argument is ignored. It may be null. + *

If the number of formal parameters required by the underlying method is + * 0, the supplied {@code args} array may be of length 0 or null. + *

If the underlying method is an instance method, it is invoked + * using dynamic method lookup as documented in The Java Language + * Specification, Second Edition, section 15.12.4.4; in particular, + * overriding based on the runtime type of the target object will occur. + *

If the underlying method is static, the class that declared + * the method is initialized if it has not already been initialized. + *

If the method completes normally, the value it returns is + * returned to the caller of invoke; if the value has a primitive + * type, it is first appropriately wrapped in an object. However, + * if the value has the type of an array of a primitive type, the + * elements of the array are not wrapped in objects; in + * other words, an array of primitive type is returned. If the + * underlying method return type is void, the invocation returns + * null. + */ + // @ts-ignore + public invoke(obj: java.lang.Object, args: java.lang.Object): java.lang.Object; + /** + * Returns {@code true} if this method is a bridge + * method; returns {@code false} otherwise. + */ + // @ts-ignore + public isBridge(): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public isVarArgs(): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public isSynthetic(): boolean; + /** + * Returns {@code true} if this method is a default + * method; returns {@code false} otherwise. + * A default method is a public non-abstract instance method, that + * is, a non-static method with a body, declared in an interface + * type. + */ + // @ts-ignore + public isDefault(): boolean; + /** + * Returns the default value for the annotation member represented by + * this {@code Method} instance. If the member is of a primitive type, + * an instance of the corresponding wrapper type is returned. Returns + * null if no default is associated with the member, or if the method + * instance does not represent a declared member of an annotation type. + */ + // @ts-ignore + public getDefaultValue(): java.lang.Object; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getAnnotation(annotationClass: java.lang.Class): java.lang.annotation.Annotation; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getDeclaredAnnotations(): java.lang.annotation.Annotation[]; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getParameterAnnotations(): java.lang.annotation.Annotation[][]; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getAnnotatedReturnType(): java.lang.reflect.AnnotatedType; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.reflect.Modifier.d.ts b/packages/types/dist/typings/jdk/java.lang.reflect.Modifier.d.ts new file mode 100644 index 00000000..f9c429cd --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.reflect.Modifier.d.ts @@ -0,0 +1,172 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace reflect { + // @ts-ignore + class Modifier extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static PUBLIC: number; + // @ts-ignore + public static PRIVATE: number; + // @ts-ignore + public static PROTECTED: number; + // @ts-ignore + public static STATIC: number; + // @ts-ignore + public static FINAL: number; + // @ts-ignore + public static SYNCHRONIZED: number; + // @ts-ignore + public static VOLATILE: number; + // @ts-ignore + public static TRANSIENT: number; + // @ts-ignore + public static NATIVE: number; + // @ts-ignore + public static INTERFACE: number; + // @ts-ignore + public static ABSTRACT: number; + // @ts-ignore + public static STRICT: number; + /** + * Return {@code true} if the integer argument includes the + * {@code public} modifier, {@code false} otherwise. + */ + // @ts-ignore + public static isPublic(mod: number): boolean; + /** + * Return {@code true} if the integer argument includes the + * {@code private} modifier, {@code false} otherwise. + */ + // @ts-ignore + public static isPrivate(mod: number): boolean; + /** + * Return {@code true} if the integer argument includes the + * {@code protected} modifier, {@code false} otherwise. + */ + // @ts-ignore + public static isProtected(mod: number): boolean; + /** + * Return {@code true} if the integer argument includes the + * {@code static} modifier, {@code false} otherwise. + */ + // @ts-ignore + public static isStatic(mod: number): boolean; + /** + * Return {@code true} if the integer argument includes the + * {@code final} modifier, {@code false} otherwise. + */ + // @ts-ignore + public static isFinal(mod: number): boolean; + /** + * Return {@code true} if the integer argument includes the + * {@code synchronized} modifier, {@code false} otherwise. + */ + // @ts-ignore + public static isSynchronized(mod: number): boolean; + /** + * Return {@code true} if the integer argument includes the + * {@code volatile} modifier, {@code false} otherwise. + */ + // @ts-ignore + public static isVolatile(mod: number): boolean; + /** + * Return {@code true} if the integer argument includes the + * {@code transient} modifier, {@code false} otherwise. + */ + // @ts-ignore + public static isTransient(mod: number): boolean; + /** + * Return {@code true} if the integer argument includes the + * {@code native} modifier, {@code false} otherwise. + */ + // @ts-ignore + public static isNative(mod: number): boolean; + /** + * Return {@code true} if the integer argument includes the + * {@code interface} modifier, {@code false} otherwise. + */ + // @ts-ignore + public static isInterface(mod: number): boolean; + /** + * Return {@code true} if the integer argument includes the + * {@code abstract} modifier, {@code false} otherwise. + */ + // @ts-ignore + public static isAbstract(mod: number): boolean; + /** + * Return {@code true} if the integer argument includes the + * {@code strictfp} modifier, {@code false} otherwise. + */ + // @ts-ignore + public static isStrict(mod: number): boolean; + /** + * Return a string describing the access modifier flags in + * the specified modifier. For example: + *

+                 * public final synchronized strictfp
+                 * 
+ * The modifier names are returned in an order consistent with the + * suggested modifier orderings given in sections 8.1.1, 8.3.1, 8.4.3, 8.8.3, and 9.1.1 of + * The Java™ Language Specification. + * The full modifier ordering used by this method is: + *
{@code + * public protected private abstract static final transient + * volatile synchronized native strictfp + * interface }
+ * The {@code interface} modifier discussed in this class is + * not a true modifier in the Java language and it appears after + * all other modifiers listed by this method. This method may + * return a string of modifiers that are not valid modifiers of a + * Java entity; in other words, no checking is done on the + * possible validity of the combination of modifiers represented + * by the input. + * Note that to perform such checking for a known kind of entity, + * such as a constructor or method, first AND the argument of + * {@code toString} with the appropriate mask from a method like + * {@link #constructorModifiers} or {@link #methodModifiers}. + */ + // @ts-ignore + public static toString(mod: number): string; + /** + * Return an {@code int} value OR-ing together the source language + * modifiers that can be applied to a class. + */ + // @ts-ignore + public static classModifiers(): number; + /** + * Return an {@code int} value OR-ing together the source language + * modifiers that can be applied to an interface. + */ + // @ts-ignore + public static interfaceModifiers(): number; + /** + * Return an {@code int} value OR-ing together the source language + * modifiers that can be applied to a constructor. + */ + // @ts-ignore + public static constructorModifiers(): number; + /** + * Return an {@code int} value OR-ing together the source language + * modifiers that can be applied to a method. + */ + // @ts-ignore + public static methodModifiers(): number; + /** + * Return an {@code int} value OR-ing together the source language + * modifiers that can be applied to a field. + */ + // @ts-ignore + public static fieldModifiers(): number; + /** + * Return an {@code int} value OR-ing together the source language + * modifiers that can be applied to a parameter. + */ + // @ts-ignore + public static parameterModifiers(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.reflect.Parameter.d.ts b/packages/types/dist/typings/jdk/java.lang.reflect.Parameter.d.ts new file mode 100644 index 00000000..a5e47d4c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.reflect.Parameter.d.ts @@ -0,0 +1,125 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace reflect { + // @ts-ignore + class Parameter extends java.lang.Object { + /** + * Compares based on the executable and the index. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a hash code based on the executable's hash code and the + * index. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns true if the parameter has a name according to the class + * file; returns false otherwise. Whether a parameter has a name + * is determined by the {@literal MethodParameters} attribute of + * the method which declares the parameter. + */ + // @ts-ignore + public isNamePresent(): boolean; + /** + * Returns a string describing this parameter. The format is the + * modifiers for the parameter, if any, in canonical order as + * recommended by The Java™ Language + * Specification, followed by the fully- qualified type of + * the parameter (excluding the last [] if the parameter is + * variable arity), followed by "..." if the parameter is variable + * arity, followed by a space, followed by the name of the + * parameter. + */ + // @ts-ignore + public toString(): string; + /** + * Return the {@code Executable} which declares this parameter. + */ + // @ts-ignore + public getDeclaringExecutable(): java.lang.reflect.Executable; + /** + * Get the modifier flags for this the parameter represented by + * this {@code Parameter} object. + */ + // @ts-ignore + public getModifiers(): number; + /** + * Returns the name of the parameter. If the parameter's name is + * {@linkplain #isNamePresent() present}, then this method returns + * the name provided by the class file. Otherwise, this method + * synthesizes a name of the form argN, where N is the index of + * the parameter in the descriptor of the method which declares + * the parameter. + */ + // @ts-ignore + public getName(): string; + /** + * Returns a {@code Type} object that identifies the parameterized + * type for the parameter represented by this {@code Parameter} + * object. + */ + // @ts-ignore + public getParameterizedType(): java.lang.reflect.Type; + /** + * Returns a {@code Class} object that identifies the + * declared type for the parameter represented by this + * {@code Parameter} object. + */ + // @ts-ignore + public getType(): java.lang.Class; + /** + * Returns an AnnotatedType object that represents the use of a type to + * specify the type of the formal parameter represented by this Parameter. + */ + // @ts-ignore + public getAnnotatedType(): java.lang.reflect.AnnotatedType; + /** + * Returns {@code true} if this parameter is implicitly declared + * in source code; returns {@code false} otherwise. + */ + // @ts-ignore + public isImplicit(): boolean; + /** + * Returns {@code true} if this parameter is neither implicitly + * nor explicitly declared in source code; returns {@code false} + * otherwise. + */ + // @ts-ignore + public isSynthetic(): boolean; + /** + * Returns {@code true} if this parameter represents a variable + * argument list; returns {@code false} otherwise. + */ + // @ts-ignore + public isVarArgs(): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getAnnotation(annotationClass: java.lang.Class): java.lang.annotation.Annotation; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getAnnotationsByType(annotationClass: java.lang.Class): java.lang.annotation.Annotation[]; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getDeclaredAnnotations(): java.lang.annotation.Annotation[]; + // @ts-ignore + public getDeclaredAnnotation(annotationClass: java.lang.Class): java.lang.annotation.Annotation; + // @ts-ignore + public getDeclaredAnnotationsByType(annotationClass: java.lang.Class): java.lang.annotation.Annotation[]; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getAnnotations(): java.lang.annotation.Annotation[]; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.reflect.ParameterizedType.d.ts b/packages/types/dist/typings/jdk/java.lang.reflect.ParameterizedType.d.ts new file mode 100644 index 00000000..88282e4b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.reflect.ParameterizedType.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace reflect { + // @ts-ignore + interface ParameterizedType { + /** + * Returns an array of {@code Type} objects representing the actual type + * arguments to this type. + *

Note that in some cases, the returned array be empty. This can occur + * if this type represents a non-parameterized type nested within + * a parameterized type. + */ + // @ts-ignore + getActualTypeArguments(): java.lang.reflect.Type[]; + /** + * Returns the {@code Type} object representing the class or interface + * that declared this type. + */ + // @ts-ignore + getRawType(): java.lang.reflect.Type; + /** + * Returns a {@code Type} object representing the type that this type + * is a member of. For example, if this type is {@code O.I}, + * return a representation of {@code O}. + *

If this type is a top-level type, {@code null} is returned. + */ + // @ts-ignore + getOwnerType(): java.lang.reflect.Type; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.reflect.Proxy.d.ts b/packages/types/dist/typings/jdk/java.lang.reflect.Proxy.d.ts new file mode 100644 index 00000000..2927f732 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.reflect.Proxy.d.ts @@ -0,0 +1,101 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace reflect { + // @ts-ignore + class Proxy extends java.lang.Object { + /** + * Constructs a new {@code Proxy} instance from a subclass + * (typically, a dynamic proxy class) with the specified value + * for its invocation handler. + */ + // @ts-ignore + constructor(h: java.lang.reflect.InvocationHandler) + // @ts-ignore + protected h: java.lang.reflect.InvocationHandler; + /** + * Returns the {@code java.lang.Class} object for a proxy class + * given a class loader and an array of interfaces. The proxy class + * will be defined by the specified class loader and will implement + * all of the supplied interfaces. If any of the given interfaces + * is non-public, the proxy class will be non-public. If a proxy class + * for the same permutation of interfaces has already been defined by the + * class loader, then the existing proxy class will be returned; otherwise, + * a proxy class for those interfaces will be generated dynamically + * and defined by the class loader. + *

There are several restrictions on the parameters that may be + * passed to {@code Proxy.getProxyClass}: + *

    + *
  • All of the {@code Class} objects in the + * {@code interfaces} array must represent interfaces, not + * classes or primitive types. + *
  • No two elements in the {@code interfaces} array may + * refer to identical {@code Class} objects. + *
  • All of the interface types must be visible by name through the + * specified class loader. In other words, for class loader + * {@code cl} and every interface {@code i}, the following + * expression must be true: + *
    +                 * Class.forName(i.getName(), false, cl) == i
    +                 * 
    + *
  • All non-public interfaces must be in the same package; + * otherwise, it would not be possible for the proxy class to + * implement all of the interfaces, regardless of what package it is + * defined in. + *
  • For any set of member methods of the specified interfaces + * that have the same signature: + *
      + *
    • If the return type of any of the methods is a primitive + * type or void, then all of the methods must have that same + * return type. + *
    • Otherwise, one of the methods must have a return type that + * is assignable to all of the return types of the rest of the + * methods. + *
    + *
  • The resulting proxy class must not exceed any limits imposed + * on classes by the virtual machine. For example, the VM may limit + * the number of interfaces that a class may implement to 65535; in + * that case, the size of the {@code interfaces} array must not + * exceed 65535. + *
+ *

If any of these restrictions are violated, + * {@code Proxy.getProxyClass} will throw an + * {@code IllegalArgumentException}. If the {@code interfaces} + * array argument or any of its elements are {@code null}, a + * {@code NullPointerException} will be thrown. + *

Note that the order of the specified proxy interfaces is + * significant: two requests for a proxy class with the same combination + * of interfaces but in a different order will result in two distinct + * proxy classes. + */ + // @ts-ignore + public static getProxyClass(loader: java.lang.ClassLoader, interfaces: java.lang.Class): java.lang.Class; + /** + * Returns an instance of a proxy class for the specified interfaces + * that dispatches method invocations to the specified invocation + * handler. + *

{@code Proxy.newProxyInstance} throws + * {@code IllegalArgumentException} for the same reasons that + * {@code Proxy.getProxyClass} does. + */ + // @ts-ignore + public static newProxyInstance(loader: java.lang.ClassLoader, interfaces: java.lang.Class, h: java.lang.reflect.InvocationHandler): java.lang.Object; + /** + * Returns true if and only if the specified class was dynamically + * generated to be a proxy class using the {@code getProxyClass} + * method or the {@code newProxyInstance} method. + *

The reliability of this method is important for the ability + * to use it to make security decisions, so its implementation should + * not just test if the class in question extends {@code Proxy}. + */ + // @ts-ignore + public static isProxyClass(cl: java.lang.Class): boolean; + /** + * Returns the invocation handler for the specified proxy instance. + */ + // @ts-ignore + public static getInvocationHandler(proxy: java.lang.Object): java.lang.reflect.InvocationHandler; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.reflect.ReflectPermission.d.ts b/packages/types/dist/typings/jdk/java.lang.reflect.ReflectPermission.d.ts new file mode 100644 index 00000000..f25c94ee --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.reflect.ReflectPermission.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace reflect { + // @ts-ignore + class ReflectPermission extends java.security.BasicPermission { + /** + * Constructs a ReflectPermission with the specified name. + */ + // @ts-ignore + constructor(name: string) + /** + * Constructs a ReflectPermission with the specified name and actions. + * The actions should be null; they are ignored. + */ + // @ts-ignore + constructor(name: string, actions: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.reflect.Type.d.ts b/packages/types/dist/typings/jdk/java.lang.reflect.Type.d.ts new file mode 100644 index 00000000..1c32d187 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.reflect.Type.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace reflect { + // @ts-ignore + interface Type { + /** + * Returns a string describing this type, including information + * about any type parameters. + */ + // @ts-ignore + getTypeName(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.reflect.TypeVariable.d.ts b/packages/types/dist/typings/jdk/java.lang.reflect.TypeVariable.d.ts new file mode 100644 index 00000000..30043a7f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.reflect.TypeVariable.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace reflect { + // @ts-ignore + interface TypeVariable { + /** + * Returns an array of {@code Type} objects representing the + * upper bound(s) of this type variable. Note that if no upper bound is + * explicitly declared, the upper bound is {@code Object}. + *

For each upper bound B:

  • if B is a parameterized + * type or a type variable, it is created, (see {@link + * java.lang.reflect.ParameterizedType ParameterizedType} for the + * details of the creation process for parameterized types). + *
  • Otherwise, B is resolved.
+ */ + // @ts-ignore + getBounds(): java.lang.reflect.Type[]; + /** + * Returns the {@code GenericDeclaration} object representing the + * generic declaration declared this type variable. + */ + // @ts-ignore + getGenericDeclaration(): java.lang.reflect.GenericDeclaration; + /** + * Returns the name of this type variable, as it occurs in the source code. + */ + // @ts-ignore + getName(): string; + /** + * Returns an array of AnnotatedType objects that represent the use of + * types to denote the upper bounds of the type parameter represented by + * this TypeVariable. The order of the objects in the array corresponds to + * the order of the bounds in the declaration of the type parameter. + * Returns an array of length 0 if the type parameter declares no bounds. + */ + // @ts-ignore + getAnnotatedBounds(): java.lang.reflect.AnnotatedType[]; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.reflect.UndeclaredThrowableException.d.ts b/packages/types/dist/typings/jdk/java.lang.reflect.UndeclaredThrowableException.d.ts new file mode 100644 index 00000000..fa94667d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.reflect.UndeclaredThrowableException.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace reflect { + // @ts-ignore + class UndeclaredThrowableException extends java.lang.RuntimeException { + /** + * Constructs an {@code UndeclaredThrowableException} with the + * specified {@code Throwable}. + */ + // @ts-ignore + constructor(undeclaredThrowable: java.lang.Throwable) + /** + * Constructs an {@code UndeclaredThrowableException} with the + * specified {@code Throwable} and a detail message. + */ + // @ts-ignore + constructor(undeclaredThrowable: java.lang.Throwable, s: string) + /** + * Returns the {@code Throwable} instance wrapped in this + * {@code UndeclaredThrowableException}, which may be {@code null}. + *

This method predates the general-purpose exception chaining facility. + * The {@link Throwable#getCause()} method is now the preferred means of + * obtaining this information. + */ + // @ts-ignore + public getUndeclaredThrowable(): java.lang.Throwable; + /** + * Returns the cause of this exception (the {@code Throwable} + * instance wrapped in this {@code UndeclaredThrowableException}, + * which may be {@code null}). + */ + // @ts-ignore + public getCause(): java.lang.Throwable; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.lang.reflect.WildcardType.d.ts b/packages/types/dist/typings/jdk/java.lang.reflect.WildcardType.d.ts new file mode 100644 index 00000000..0bf9d789 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.lang.reflect.WildcardType.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace java { + namespace lang { + namespace reflect { + // @ts-ignore + interface WildcardType { + /** + * Returns an array of {@code Type} objects representing the upper + * bound(s) of this type variable. Note that if no upper bound is + * explicitly declared, the upper bound is {@code Object}. + *

For each upper bound B : + *

    + *
  • if B is a parameterized type or a type variable, it is created, + * (see {@link java.lang.reflect.ParameterizedType ParameterizedType} + * for the details of the creation process for parameterized types). + *
  • Otherwise, B is resolved. + *
+ */ + // @ts-ignore + getUpperBounds(): java.lang.reflect.Type[]; + /** + * Returns an array of {@code Type} objects representing the + * lower bound(s) of this type variable. Note that if no lower bound is + * explicitly declared, the lower bound is the type of {@code null}. + * In this case, a zero length array is returned. + *

For each lower bound B : + *

    + *
  • if B is a parameterized type or a type variable, it is created, + * (see {@link java.lang.reflect.ParameterizedType ParameterizedType} + * for the details of the creation process for parameterized types). + *
  • Otherwise, B is resolved. + *
+ */ + // @ts-ignore + getLowerBounds(): java.lang.reflect.Type[]; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.math.BigDecimal.d.ts b/packages/types/dist/typings/jdk/java.math.BigDecimal.d.ts new file mode 100644 index 00000000..8cd8be33 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.math.BigDecimal.d.ts @@ -0,0 +1,1028 @@ +// @ts-nocheck +declare namespace java { + namespace math { + // @ts-ignore + class BigDecimal extends java.lang.Number { + /** + * Translates a character array representation of a + * {@code BigDecimal} into a {@code BigDecimal}, accepting the + * same sequence of characters as the {@link #BigDecimal(String)} + * constructor, while allowing a sub-array to be specified. + *

Note that if the sequence of characters is already available + * within a character array, using this constructor is faster than + * converting the {@code char} array to string and using the + * {@code BigDecimal(String)} constructor . + */ + // @ts-ignore + constructor(input: string, offset: number, len: number) + /** + * Translates a character array representation of a + * {@code BigDecimal} into a {@code BigDecimal}, accepting the + * same sequence of characters as the {@link #BigDecimal(String)} + * constructor, while allowing a sub-array to be specified and + * with rounding according to the context settings. + *

Note that if the sequence of characters is already available + * within a character array, using this constructor is faster than + * converting the {@code char} array to string and using the + * {@code BigDecimal(String)} constructor . + */ + // @ts-ignore + constructor(input: string, offset: number, len: number, mc: java.math.MathContext) + /** + * Translates a character array representation of a + * {@code BigDecimal} into a {@code BigDecimal}, accepting the + * same sequence of characters as the {@link #BigDecimal(String)} + * constructor. + *

Note that if the sequence of characters is already available + * as a character array, using this constructor is faster than + * converting the {@code char} array to string and using the + * {@code BigDecimal(String)} constructor . + */ + // @ts-ignore + constructor(input: string) + /** + * Translates a character array representation of a + * {@code BigDecimal} into a {@code BigDecimal}, accepting the + * same sequence of characters as the {@link #BigDecimal(String)} + * constructor and with rounding according to the context + * settings. + *

Note that if the sequence of characters is already available + * as a character array, using this constructor is faster than + * converting the {@code char} array to string and using the + * {@code BigDecimal(String)} constructor . + */ + // @ts-ignore + constructor(input: string, mc: java.math.MathContext) + /** + * Translates the string representation of a {@code BigDecimal} + * into a {@code BigDecimal}. The string representation consists + * of an optional sign, {@code '+'} ( '\u002B') or + * {@code '-'} ('\u002D'), followed by a sequence of + * zero or more decimal digits ("the integer"), optionally + * followed by a fraction, optionally followed by an exponent. + *

The fraction consists of a decimal point followed by zero + * or more decimal digits. The string must contain at least one + * digit in either the integer or the fraction. The number formed + * by the sign, the integer and the fraction is referred to as the + * significand. + *

The exponent consists of the character {@code 'e'} + * ('\u0065') or {@code 'E'} ('\u0045') + * followed by one or more decimal digits. The value of the + * exponent must lie between -{@link Integer#MAX_VALUE} ({@link + * Integer#MIN_VALUE}+1) and {@link Integer#MAX_VALUE}, inclusive. + *

More formally, the strings this constructor accepts are + * described by the following grammar: + *

+ *
+ *
BigDecimalString: + *
Signopt Significand Exponentopt + *
Sign: + *
{@code +} + *
{@code -} + *
Significand: + *
IntegerPart {@code .} FractionPartopt + *
{@code .} FractionPart + *
IntegerPart + *
IntegerPart: + *
Digits + *
FractionPart: + *
Digits + *
Exponent: + *
ExponentIndicator SignedInteger + *
ExponentIndicator: + *
{@code e} + *
{@code E} + *
SignedInteger: + *
Signopt Digits + *
Digits: + *
Digit + *
Digits Digit + *
Digit: + *
any character for which {@link Character#isDigit} + * returns {@code true}, including 0, 1, 2 ... + *
+ *
+ *

The scale of the returned {@code BigDecimal} will be the + * number of digits in the fraction, or zero if the string + * contains no decimal point, subject to adjustment for any + * exponent; if the string contains an exponent, the exponent is + * subtracted from the scale. The value of the resulting scale + * must lie between {@code Integer.MIN_VALUE} and + * {@code Integer.MAX_VALUE}, inclusive. + *

The character-to-digit mapping is provided by {@link + * java.lang.Character#digit} set to convert to radix 10. The + * String may not contain any extraneous characters (whitespace, + * for example). + *

Examples:
+ * The value of the returned {@code BigDecimal} is equal to + * significand × 10 exponent. + * For each string on the left, the resulting representation + * [{@code BigInteger}, {@code scale}] is shown on the right. + *

+             * "0"            [0,0]
+             * "0.00"         [0,2]
+             * "123"          [123,0]
+             * "-123"         [-123,0]
+             * "1.23E3"       [123,-1]
+             * "1.23E+3"      [123,-1]
+             * "12.3E+7"      [123,-6]
+             * "12.0"         [120,1]
+             * "12.3"         [123,1]
+             * "0.00123"      [123,5]
+             * "-1.23E-12"    [-123,14]
+             * "1234.5E-4"    [12345,5]
+             * "0E+7"         [0,-7]
+             * "-0"           [0,0]
+             * 
+ *

Note: For values other than {@code float} and + * {@code double} NaN and ±Infinity, this constructor is + * compatible with the values returned by {@link Float#toString} + * and {@link Double#toString}. This is generally the preferred + * way to convert a {@code float} or {@code double} into a + * BigDecimal, as it doesn't suffer from the unpredictability of + * the {@link #BigDecimal(double)} constructor. + */ + // @ts-ignore + constructor(val: string) + /** + * Translates the string representation of a {@code BigDecimal} + * into a {@code BigDecimal}, accepting the same strings as the + * {@link #BigDecimal(String)} constructor, with rounding + * according to the context settings. + */ + // @ts-ignore + constructor(val: string, mc: java.math.MathContext) + /** + * Translates a {@code double} into a {@code BigDecimal} which + * is the exact decimal representation of the {@code double}'s + * binary floating-point value. The scale of the returned + * {@code BigDecimal} is the smallest value such that + * (10scale × val) is an integer. + *

+ * Notes: + *

    + *
  1. + * The results of this constructor can be somewhat unpredictable. + * One might assume that writing {@code new BigDecimal(0.1)} in + * Java creates a {@code BigDecimal} which is exactly equal to + * 0.1 (an unscaled value of 1, with a scale of 1), but it is + * actually equal to + * 0.1000000000000000055511151231257827021181583404541015625. + * This is because 0.1 cannot be represented exactly as a + * {@code double} (or, for that matter, as a binary fraction of + * any finite length). Thus, the value that is being passed + * in to the constructor is not exactly equal to 0.1, + * appearances notwithstanding. + *
  2. + * The {@code String} constructor, on the other hand, is + * perfectly predictable: writing {@code new BigDecimal("0.1")} + * creates a {@code BigDecimal} which is exactly equal to + * 0.1, as one would expect. Therefore, it is generally + * recommended that the {@linkplain #BigDecimal(String) + * String constructor} be used in preference to this one. + *
  3. + * When a {@code double} must be used as a source for a + * {@code BigDecimal}, note that this constructor provides an + * exact conversion; it does not give the same result as + * converting the {@code double} to a {@code String} using the + * {@link Double#toString(double)} method and then using the + * {@link #BigDecimal(String)} constructor. To get that result, + * use the {@code static} {@link #valueOf(double)} method. + *
+ */ + // @ts-ignore + constructor(val: number) + /** + * Translates a {@code double} into a {@code BigDecimal}, with + * rounding according to the context settings. The scale of the + * {@code BigDecimal} is the smallest value such that + * (10scale × val) is an integer. + *

The results of this constructor can be somewhat unpredictable + * and its use is generally not recommended; see the notes under + * the {@link #BigDecimal(double)} constructor. + */ + // @ts-ignore + constructor(val: number, mc: java.math.MathContext) + /** + * Translates a {@code BigInteger} into a {@code BigDecimal}. + * The scale of the {@code BigDecimal} is zero. + */ + // @ts-ignore + constructor(val: java.math.BigInteger) + /** + * Translates a {@code BigInteger} into a {@code BigDecimal} + * rounding according to the context settings. The scale of the + * {@code BigDecimal} is zero. + */ + // @ts-ignore + constructor(val: java.math.BigInteger, mc: java.math.MathContext) + /** + * Translates a {@code BigInteger} unscaled value and an + * {@code int} scale into a {@code BigDecimal}. The value of + * the {@code BigDecimal} is + * (unscaledVal × 10-scale). + */ + // @ts-ignore + constructor(unscaledVal: java.math.BigInteger, scale: number) + /** + * Translates a {@code BigInteger} unscaled value and an + * {@code int} scale into a {@code BigDecimal}, with rounding + * according to the context settings. The value of the + * {@code BigDecimal} is (unscaledVal × + * 10-scale), rounded according to the + * {@code precision} and rounding mode settings. + */ + // @ts-ignore + constructor(unscaledVal: java.math.BigInteger, scale: number, mc: java.math.MathContext) + /** + * Translates an {@code int} into a {@code BigDecimal}. The + * scale of the {@code BigDecimal} is zero. + */ + // @ts-ignore + constructor(val: number) + /** + * Translates an {@code int} into a {@code BigDecimal}, with + * rounding according to the context settings. The scale of the + * {@code BigDecimal}, before any rounding, is zero. + */ + // @ts-ignore + constructor(val: number, mc: java.math.MathContext) + /** + * Translates a {@code long} into a {@code BigDecimal}. The + * scale of the {@code BigDecimal} is zero. + */ + // @ts-ignore + constructor(val: number) + /** + * Translates a {@code long} into a {@code BigDecimal}, with + * rounding according to the context settings. The scale of the + * {@code BigDecimal}, before any rounding, is zero. + */ + // @ts-ignore + constructor(val: number, mc: java.math.MathContext) + // @ts-ignore + public static ZERO: java.math.BigDecimal; + // @ts-ignore + public static ONE: java.math.BigDecimal; + // @ts-ignore + public static TEN: java.math.BigDecimal; + // @ts-ignore + public static ROUND_UP: number; + // @ts-ignore + public static ROUND_DOWN: number; + // @ts-ignore + public static ROUND_CEILING: number; + // @ts-ignore + public static ROUND_FLOOR: number; + // @ts-ignore + public static ROUND_HALF_UP: number; + // @ts-ignore + public static ROUND_HALF_DOWN: number; + // @ts-ignore + public static ROUND_HALF_EVEN: number; + // @ts-ignore + public static ROUND_UNNECESSARY: number; + /** + * Translates a {@code long} unscaled value and an + * {@code int} scale into a {@code BigDecimal}. This + * {@literal "static factory method"} is provided in preference to + * a ({@code long}, {@code int}) constructor because it + * allows for reuse of frequently used {@code BigDecimal} values.. + */ + // @ts-ignore + public static valueOf(unscaledVal: number, scale: number): java.math.BigDecimal; + /** + * Translates a {@code long} value into a {@code BigDecimal} + * with a scale of zero. This {@literal "static factory method"} + * is provided in preference to a ({@code long}) constructor + * because it allows for reuse of frequently used + * {@code BigDecimal} values. + */ + // @ts-ignore + public static valueOf(val: number): java.math.BigDecimal; + /** + * Translates a {@code double} into a {@code BigDecimal}, using + * the {@code double}'s canonical string representation provided + * by the {@link Double#toString(double)} method. + *

Note: This is generally the preferred way to convert + * a {@code double} (or {@code float}) into a + * {@code BigDecimal}, as the value returned is equal to that + * resulting from constructing a {@code BigDecimal} from the + * result of using {@link Double#toString(double)}. + */ + // @ts-ignore + public static valueOf(val: number): java.math.BigDecimal; + /** + * Returns a {@code BigDecimal} whose value is {@code (this + + * augend)}, and whose scale is {@code max(this.scale(), + * augend.scale())}. + */ + // @ts-ignore + public add(augend: java.math.BigDecimal): java.math.BigDecimal; + /** + * Returns a {@code BigDecimal} whose value is {@code (this + augend)}, + * with rounding according to the context settings. + * If either number is zero and the precision setting is nonzero then + * the other number, rounded if necessary, is used as the result. + */ + // @ts-ignore + public add(augend: java.math.BigDecimal, mc: java.math.MathContext): java.math.BigDecimal; + /** + * Returns a {@code BigDecimal} whose value is {@code (this - + * subtrahend)}, and whose scale is {@code max(this.scale(), + * subtrahend.scale())}. + */ + // @ts-ignore + public subtract(subtrahend: java.math.BigDecimal): java.math.BigDecimal; + /** + * Returns a {@code BigDecimal} whose value is {@code (this - subtrahend)}, + * with rounding according to the context settings. + * If {@code subtrahend} is zero then this, rounded if necessary, is used as the + * result. If this is zero then the result is {@code subtrahend.negate(mc)}. + */ + // @ts-ignore + public subtract(subtrahend: java.math.BigDecimal, mc: java.math.MathContext): java.math.BigDecimal; + /** + * Returns a {@code BigDecimal} whose value is (this × + * multiplicand), and whose scale is {@code (this.scale() + + * multiplicand.scale())}. + */ + // @ts-ignore + public multiply(multiplicand: java.math.BigDecimal): java.math.BigDecimal; + /** + * Returns a {@code BigDecimal} whose value is (this × + * multiplicand), with rounding according to the context settings. + */ + // @ts-ignore + public multiply(multiplicand: java.math.BigDecimal, mc: java.math.MathContext): java.math.BigDecimal; + /** + * Returns a {@code BigDecimal} whose value is {@code (this / + * divisor)}, and whose scale is as specified. If rounding must + * be performed to generate a result with the specified scale, the + * specified rounding mode is applied. + *

The new {@link #divide(BigDecimal, int, RoundingMode)} method + * should be used in preference to this legacy method. + */ + // @ts-ignore + public divide(divisor: java.math.BigDecimal, scale: number, roundingMode: number): java.math.BigDecimal; + /** + * Returns a {@code BigDecimal} whose value is {@code (this / + * divisor)}, and whose scale is as specified. If rounding must + * be performed to generate a result with the specified scale, the + * specified rounding mode is applied. + */ + // @ts-ignore + public divide(divisor: java.math.BigDecimal, scale: number, roundingMode: java.math.RoundingMode): java.math.BigDecimal; + /** + * Returns a {@code BigDecimal} whose value is {@code (this / + * divisor)}, and whose scale is {@code this.scale()}. If + * rounding must be performed to generate a result with the given + * scale, the specified rounding mode is applied. + *

The new {@link #divide(BigDecimal, RoundingMode)} method + * should be used in preference to this legacy method. + */ + // @ts-ignore + public divide(divisor: java.math.BigDecimal, roundingMode: number): java.math.BigDecimal; + /** + * Returns a {@code BigDecimal} whose value is {@code (this / + * divisor)}, and whose scale is {@code this.scale()}. If + * rounding must be performed to generate a result with the given + * scale, the specified rounding mode is applied. + */ + // @ts-ignore + public divide(divisor: java.math.BigDecimal, roundingMode: java.math.RoundingMode): java.math.BigDecimal; + /** + * Returns a {@code BigDecimal} whose value is {@code (this / + * divisor)}, and whose preferred scale is {@code (this.scale() - + * divisor.scale())}; if the exact quotient cannot be + * represented (because it has a non-terminating decimal + * expansion) an {@code ArithmeticException} is thrown. + */ + // @ts-ignore + public divide(divisor: java.math.BigDecimal): java.math.BigDecimal; + /** + * Returns a {@code BigDecimal} whose value is {@code (this / + * divisor)}, with rounding according to the context settings. + */ + // @ts-ignore + public divide(divisor: java.math.BigDecimal, mc: java.math.MathContext): java.math.BigDecimal; + /** + * Returns a {@code BigDecimal} whose value is the integer part + * of the quotient {@code (this / divisor)} rounded down. The + * preferred scale of the result is {@code (this.scale() - + * divisor.scale())}. + */ + // @ts-ignore + public divideToIntegralValue(divisor: java.math.BigDecimal): java.math.BigDecimal; + /** + * Returns a {@code BigDecimal} whose value is the integer part + * of {@code (this / divisor)}. Since the integer part of the + * exact quotient does not depend on the rounding mode, the + * rounding mode does not affect the values returned by this + * method. The preferred scale of the result is + * {@code (this.scale() - divisor.scale())}. An + * {@code ArithmeticException} is thrown if the integer part of + * the exact quotient needs more than {@code mc.precision} + * digits. + */ + // @ts-ignore + public divideToIntegralValue(divisor: java.math.BigDecimal, mc: java.math.MathContext): java.math.BigDecimal; + /** + * Returns a {@code BigDecimal} whose value is {@code (this % divisor)}. + *

The remainder is given by + * {@code this.subtract(this.divideToIntegralValue(divisor).multiply(divisor))}. + * Note that this is not the modulo operation (the result can be + * negative). + */ + // @ts-ignore + public remainder(divisor: java.math.BigDecimal): java.math.BigDecimal; + /** + * Returns a {@code BigDecimal} whose value is {@code (this % + * divisor)}, with rounding according to the context settings. + * The {@code MathContext} settings affect the implicit divide + * used to compute the remainder. The remainder computation + * itself is by definition exact. Therefore, the remainder may + * contain more than {@code mc.getPrecision()} digits. + *

The remainder is given by + * {@code this.subtract(this.divideToIntegralValue(divisor, + * mc).multiply(divisor))}. Note that this is not the modulo + * operation (the result can be negative). + */ + // @ts-ignore + public remainder(divisor: java.math.BigDecimal, mc: java.math.MathContext): java.math.BigDecimal; + /** + * Returns a two-element {@code BigDecimal} array containing the + * result of {@code divideToIntegralValue} followed by the result of + * {@code remainder} on the two operands. + *

Note that if both the integer quotient and remainder are + * needed, this method is faster than using the + * {@code divideToIntegralValue} and {@code remainder} methods + * separately because the division need only be carried out once. + */ + // @ts-ignore + public divideAndRemainder(divisor: java.math.BigDecimal): java.math.BigDecimal[]; + /** + * Returns a two-element {@code BigDecimal} array containing the + * result of {@code divideToIntegralValue} followed by the result of + * {@code remainder} on the two operands calculated with rounding + * according to the context settings. + *

Note that if both the integer quotient and remainder are + * needed, this method is faster than using the + * {@code divideToIntegralValue} and {@code remainder} methods + * separately because the division need only be carried out once. + */ + // @ts-ignore + public divideAndRemainder(divisor: java.math.BigDecimal, mc: java.math.MathContext): java.math.BigDecimal[]; + /** + * Returns a {@code BigDecimal} whose value is + * (thisn), The power is computed exactly, to + * unlimited precision. + *

The parameter {@code n} must be in the range 0 through + * 999999999, inclusive. {@code ZERO.pow(0)} returns {@link + * #ONE}. + * Note that future releases may expand the allowable exponent + * range of this method. + */ + // @ts-ignore + public pow(n: number): java.math.BigDecimal; + /** + * Returns a {@code BigDecimal} whose value is + * (thisn). The current implementation uses + * the core algorithm defined in ANSI standard X3.274-1996 with + * rounding according to the context settings. In general, the + * returned numerical value is within two ulps of the exact + * numerical value for the chosen precision. Note that future + * releases may use a different algorithm with a decreased + * allowable error bound and increased allowable exponent range. + *

The X3.274-1996 algorithm is: + *

    + *
  • An {@code ArithmeticException} exception is thrown if + *
      + *
    • {@code abs(n) > 999999999} + *
    • {@code mc.precision == 0} and {@code n < 0} + *
    • {@code mc.precision > 0} and {@code n} has more than + * {@code mc.precision} decimal digits + *
    + *
  • if {@code n} is zero, {@link #ONE} is returned even if + * {@code this} is zero, otherwise + *
      + *
    • if {@code n} is positive, the result is calculated via + * the repeated squaring technique into a single accumulator. + * The individual multiplications with the accumulator use the + * same math context settings as in {@code mc} except for a + * precision increased to {@code mc.precision + elength + 1} + * where {@code elength} is the number of decimal digits in + * {@code n}. + *
    • if {@code n} is negative, the result is calculated as if + * {@code n} were positive; this value is then divided into one + * using the working precision specified above. + *
    • The final value from either the positive or negative case + * is then rounded to the destination precision. + *
    + *
+ */ + // @ts-ignore + public pow(n: number, mc: java.math.MathContext): java.math.BigDecimal; + /** + * Returns a {@code BigDecimal} whose value is the absolute value + * of this {@code BigDecimal}, and whose scale is + * {@code this.scale()}. + */ + // @ts-ignore + public abs(): java.math.BigDecimal; + /** + * Returns a {@code BigDecimal} whose value is the absolute value + * of this {@code BigDecimal}, with rounding according to the + * context settings. + */ + // @ts-ignore + public abs(mc: java.math.MathContext): java.math.BigDecimal; + /** + * Returns a {@code BigDecimal} whose value is {@code (-this)}, + * and whose scale is {@code this.scale()}. + */ + // @ts-ignore + public negate(): java.math.BigDecimal; + /** + * Returns a {@code BigDecimal} whose value is {@code (-this)}, + * with rounding according to the context settings. + */ + // @ts-ignore + public negate(mc: java.math.MathContext): java.math.BigDecimal; + /** + * Returns a {@code BigDecimal} whose value is {@code (+this)}, and whose + * scale is {@code this.scale()}. + *

This method, which simply returns this {@code BigDecimal} + * is included for symmetry with the unary minus method {@link + * #negate()}. + */ + // @ts-ignore + public plus(): java.math.BigDecimal; + /** + * Returns a {@code BigDecimal} whose value is {@code (+this)}, + * with rounding according to the context settings. + *

The effect of this method is identical to that of the {@link + * #round(MathContext)} method. + */ + // @ts-ignore + public plus(mc: java.math.MathContext): java.math.BigDecimal; + /** + * Returns the signum function of this {@code BigDecimal}. + */ + // @ts-ignore + public signum(): number; + /** + * Returns the scale of this {@code BigDecimal}. If zero + * or positive, the scale is the number of digits to the right of + * the decimal point. If negative, the unscaled value of the + * number is multiplied by ten to the power of the negation of the + * scale. For example, a scale of {@code -3} means the unscaled + * value is multiplied by 1000. + */ + // @ts-ignore + public scale(): number; + /** + * Returns the precision of this {@code BigDecimal}. (The + * precision is the number of digits in the unscaled value.) + *

The precision of a zero value is 1. + */ + // @ts-ignore + public precision(): number; + /** + * Returns a {@code BigInteger} whose value is the unscaled + * value of this {@code BigDecimal}. (Computes (this * + * 10this.scale()).) + */ + // @ts-ignore + public unscaledValue(): java.math.BigInteger; + /** + * Returns a {@code BigDecimal} rounded according to the + * {@code MathContext} settings. If the precision setting is 0 then + * no rounding takes place. + *

The effect of this method is identical to that of the + * {@link #plus(MathContext)} method. + */ + // @ts-ignore + public round(mc: java.math.MathContext): java.math.BigDecimal; + /** + * Returns a {@code BigDecimal} whose scale is the specified + * value, and whose unscaled value is determined by multiplying or + * dividing this {@code BigDecimal}'s unscaled value by the + * appropriate power of ten to maintain its overall value. If the + * scale is reduced by the operation, the unscaled value must be + * divided (rather than multiplied), and the value may be changed; + * in this case, the specified rounding mode is applied to the + * division. + *

Note that since BigDecimal objects are immutable, calls of + * this method do not result in the original object being + * modified, contrary to the usual convention of having methods + * named setX mutate field {@code X}. + * Instead, {@code setScale} returns an object with the proper + * scale; the returned object may or may not be newly allocated. + */ + // @ts-ignore + public setScale(newScale: number, roundingMode: java.math.RoundingMode): java.math.BigDecimal; + /** + * Returns a {@code BigDecimal} whose scale is the specified + * value, and whose unscaled value is determined by multiplying or + * dividing this {@code BigDecimal}'s unscaled value by the + * appropriate power of ten to maintain its overall value. If the + * scale is reduced by the operation, the unscaled value must be + * divided (rather than multiplied), and the value may be changed; + * in this case, the specified rounding mode is applied to the + * division. + *

Note that since BigDecimal objects are immutable, calls of + * this method do not result in the original object being + * modified, contrary to the usual convention of having methods + * named setX mutate field {@code X}. + * Instead, {@code setScale} returns an object with the proper + * scale; the returned object may or may not be newly allocated. + *

The new {@link #setScale(int, RoundingMode)} method should + * be used in preference to this legacy method. + */ + // @ts-ignore + public setScale(newScale: number, roundingMode: number): java.math.BigDecimal; + /** + * Returns a {@code BigDecimal} whose scale is the specified + * value, and whose value is numerically equal to this + * {@code BigDecimal}'s. Throws an {@code ArithmeticException} + * if this is not possible. + *

This call is typically used to increase the scale, in which + * case it is guaranteed that there exists a {@code BigDecimal} + * of the specified scale and the correct value. The call can + * also be used to reduce the scale if the caller knows that the + * {@code BigDecimal} has sufficiently many zeros at the end of + * its fractional part (i.e., factors of ten in its integer value) + * to allow for the rescaling without changing its value. + *

This method returns the same result as the two-argument + * versions of {@code setScale}, but saves the caller the trouble + * of specifying a rounding mode in cases where it is irrelevant. + *

Note that since {@code BigDecimal} objects are immutable, + * calls of this method do not result in the original + * object being modified, contrary to the usual convention of + * having methods named setX mutate field + * {@code X}. Instead, {@code setScale} returns an + * object with the proper scale; the returned object may or may + * not be newly allocated. + */ + // @ts-ignore + public setScale(newScale: number): java.math.BigDecimal; + /** + * Returns a {@code BigDecimal} which is equivalent to this one + * with the decimal point moved {@code n} places to the left. If + * {@code n} is non-negative, the call merely adds {@code n} to + * the scale. If {@code n} is negative, the call is equivalent + * to {@code movePointRight(-n)}. The {@code BigDecimal} + * returned by this call has value (this × + * 10-n) and scale {@code max(this.scale()+n, + * 0)}. + */ + // @ts-ignore + public movePointLeft(n: number): java.math.BigDecimal; + /** + * Returns a {@code BigDecimal} which is equivalent to this one + * with the decimal point moved {@code n} places to the right. + * If {@code n} is non-negative, the call merely subtracts + * {@code n} from the scale. If {@code n} is negative, the call + * is equivalent to {@code movePointLeft(-n)}. The + * {@code BigDecimal} returned by this call has value (this + * × 10n) and scale {@code max(this.scale()-n, + * 0)}. + */ + // @ts-ignore + public movePointRight(n: number): java.math.BigDecimal; + /** + * Returns a BigDecimal whose numerical value is equal to + * ({@code this} * 10n). The scale of + * the result is {@code (this.scale() - n)}. + */ + // @ts-ignore + public scaleByPowerOfTen(n: number): java.math.BigDecimal; + /** + * Returns a {@code BigDecimal} which is numerically equal to + * this one but with any trailing zeros removed from the + * representation. For example, stripping the trailing zeros from + * the {@code BigDecimal} value {@code 600.0}, which has + * [{@code BigInteger}, {@code scale}] components equals to + * [6000, 1], yields {@code 6E2} with [{@code BigInteger}, + * {@code scale}] components equals to [6, -2]. If + * this BigDecimal is numerically equal to zero, then + * {@code BigDecimal.ZERO} is returned. + */ + // @ts-ignore + public stripTrailingZeros(): java.math.BigDecimal; + /** + * Compares this {@code BigDecimal} with the specified + * {@code BigDecimal}. Two {@code BigDecimal} objects that are + * equal in value but have a different scale (like 2.0 and 2.00) + * are considered equal by this method. This method is provided + * in preference to individual methods for each of the six boolean + * comparison operators ({@literal <}, ==, + * {@literal >}, {@literal >=}, !=, {@literal <=}). The + * suggested idiom for performing these comparisons is: + * {@code (x.compareTo(y)} <op> {@code 0)}, where + * <op> is one of the six comparison operators. + */ + // @ts-ignore + public compareTo(val: java.math.BigDecimal): number; + /** + * Compares this {@code BigDecimal} with the specified + * {@code Object} for equality. Unlike {@link + * #compareTo(BigDecimal) compareTo}, this method considers two + * {@code BigDecimal} objects equal only if they are equal in + * value and scale (thus 2.0 is not equal to 2.00 when compared by + * this method). + */ + // @ts-ignore + public equals(x: java.lang.Object): boolean; + /** + * Returns the minimum of this {@code BigDecimal} and + * {@code val}. + */ + // @ts-ignore + public min(val: java.math.BigDecimal): java.math.BigDecimal; + /** + * Returns the maximum of this {@code BigDecimal} and {@code val}. + */ + // @ts-ignore + public max(val: java.math.BigDecimal): java.math.BigDecimal; + /** + * Returns the hash code for this {@code BigDecimal}. Note that + * two {@code BigDecimal} objects that are numerically equal but + * differ in scale (like 2.0 and 2.00) will generally not + * have the same hash code. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns the string representation of this {@code BigDecimal}, + * using scientific notation if an exponent is needed. + *

A standard canonical string form of the {@code BigDecimal} + * is created as though by the following steps: first, the + * absolute value of the unscaled value of the {@code BigDecimal} + * is converted to a string in base ten using the characters + * {@code '0'} through {@code '9'} with no leading zeros (except + * if its value is zero, in which case a single {@code '0'} + * character is used). + *

Next, an adjusted exponent is calculated; this is the + * negated scale, plus the number of characters in the converted + * unscaled value, less one. That is, + * {@code -scale+(ulength-1)}, where {@code ulength} is the + * length of the absolute value of the unscaled value in decimal + * digits (its precision). + *

If the scale is greater than or equal to zero and the + * adjusted exponent is greater than or equal to {@code -6}, the + * number will be converted to a character form without using + * exponential notation. In this case, if the scale is zero then + * no decimal point is added and if the scale is positive a + * decimal point will be inserted with the scale specifying the + * number of characters to the right of the decimal point. + * {@code '0'} characters are added to the left of the converted + * unscaled value as necessary. If no character precedes the + * decimal point after this insertion then a conventional + * {@code '0'} character is prefixed. + *

Otherwise (that is, if the scale is negative, or the + * adjusted exponent is less than {@code -6}), the number will be + * converted to a character form using exponential notation. In + * this case, if the converted {@code BigInteger} has more than + * one digit a decimal point is inserted after the first digit. + * An exponent in character form is then suffixed to the converted + * unscaled value (perhaps with inserted decimal point); this + * comprises the letter {@code 'E'} followed immediately by the + * adjusted exponent converted to a character form. The latter is + * in base ten, using the characters {@code '0'} through + * {@code '9'} with no leading zeros, and is always prefixed by a + * sign character {@code '-'} ('\u002D') if the + * adjusted exponent is negative, {@code '+'} + * ('\u002B') otherwise). + *

Finally, the entire string is prefixed by a minus sign + * character {@code '-'} ('\u002D') if the unscaled + * value is less than zero. No sign character is prefixed if the + * unscaled value is zero or positive. + *

Examples: + *

For each representation [unscaled value, scale] + * on the left, the resulting string is shown on the right. + *

+             * [123,0]      "123"
+             * [-123,0]     "-123"
+             * [123,-1]     "1.23E+3"
+             * [123,-3]     "1.23E+5"
+             * [123,1]      "12.3"
+             * [123,5]      "0.00123"
+             * [123,10]     "1.23E-8"
+             * [-123,12]    "-1.23E-10"
+             * 
+ * Notes: + *
    + *
  1. There is a one-to-one mapping between the distinguishable + * {@code BigDecimal} values and the result of this conversion. + * That is, every distinguishable {@code BigDecimal} value + * (unscaled value and scale) has a unique string representation + * as a result of using {@code toString}. If that string + * representation is converted back to a {@code BigDecimal} using + * the {@link #BigDecimal(String)} constructor, then the original + * value will be recovered. + *
  2. The string produced for a given number is always the same; + * it is not affected by locale. This means that it can be used + * as a canonical string representation for exchanging decimal + * data, or as a key for a Hashtable, etc. Locale-sensitive + * number formatting and parsing is handled by the {@link + * java.text.NumberFormat} class and its subclasses. + *
  3. The {@link #toEngineeringString} method may be used for + * presenting numbers with exponents in engineering notation, and the + * {@link #setScale(int,RoundingMode) setScale} method may be used for + * rounding a {@code BigDecimal} so it has a known number of digits after + * the decimal point. + *
  4. The digit-to-character mapping provided by + * {@code Character.forDigit} is used. + *
+ */ + // @ts-ignore + public toString(): string; + /** + * Returns a string representation of this {@code BigDecimal}, + * using engineering notation if an exponent is needed. + *

Returns a string that represents the {@code BigDecimal} as + * described in the {@link #toString()} method, except that if + * exponential notation is used, the power of ten is adjusted to + * be a multiple of three (engineering notation) such that the + * integer part of nonzero values will be in the range 1 through + * 999. If exponential notation is used for zero values, a + * decimal point and one or two fractional zero digits are used so + * that the scale of the zero value is preserved. Note that + * unlike the output of {@link #toString()}, the output of this + * method is not guaranteed to recover the same [integer, + * scale] pair of this {@code BigDecimal} if the output string is + * converting back to a {@code BigDecimal} using the {@linkplain + * #BigDecimal(String) string constructor}. The result of this method meets + * the weaker constraint of always producing a numerically equal + * result from applying the string constructor to the method's output. + */ + // @ts-ignore + public toEngineeringString(): string; + /** + * Returns a string representation of this {@code BigDecimal} + * without an exponent field. For values with a positive scale, + * the number of digits to the right of the decimal point is used + * to indicate scale. For values with a zero or negative scale, + * the resulting string is generated as if the value were + * converted to a numerically equal value with zero scale and as + * if all the trailing zeros of the zero scale value were present + * in the result. + * The entire string is prefixed by a minus sign character '-' + * ('\u002D') if the unscaled value is less than + * zero. No sign character is prefixed if the unscaled value is + * zero or positive. + * Note that if the result of this method is passed to the + * {@linkplain #BigDecimal(String) string constructor}, only the + * numerical value of this {@code BigDecimal} will necessarily be + * recovered; the representation of the new {@code BigDecimal} + * may have a different scale. In particular, if this + * {@code BigDecimal} has a negative scale, the string resulting + * from this method will have a scale of zero when processed by + * the string constructor. + * (This method behaves analogously to the {@code toString} + * method in 1.4 and earlier releases.) + */ + // @ts-ignore + public toPlainString(): string; + /** + * Converts this {@code BigDecimal} to a {@code BigInteger}. + * This conversion is analogous to the + * narrowing primitive conversion from {@code double} to + * {@code long} as defined in section 5.1.3 of + * The Java™ Language Specification: + * any fractional part of this + * {@code BigDecimal} will be discarded. Note that this + * conversion can lose information about the precision of the + * {@code BigDecimal} value. + *

+ * To have an exception thrown if the conversion is inexact (in + * other words if a nonzero fractional part is discarded), use the + * {@link #toBigIntegerExact()} method. + */ + // @ts-ignore + public toBigInteger(): java.math.BigInteger; + /** + * Converts this {@code BigDecimal} to a {@code BigInteger}, + * checking for lost information. An exception is thrown if this + * {@code BigDecimal} has a nonzero fractional part. + */ + // @ts-ignore + public toBigIntegerExact(): java.math.BigInteger; + /** + * Converts this {@code BigDecimal} to a {@code long}. + * This conversion is analogous to the + * narrowing primitive conversion from {@code double} to + * {@code short} as defined in section 5.1.3 of + * The Java™ Language Specification: + * any fractional part of this + * {@code BigDecimal} will be discarded, and if the resulting + * "{@code BigInteger}" is too big to fit in a + * {@code long}, only the low-order 64 bits are returned. + * Note that this conversion can lose information about the + * overall magnitude and precision of this {@code BigDecimal} value as well + * as return a result with the opposite sign. + */ + // @ts-ignore + public longValue(): number; + /** + * Converts this {@code BigDecimal} to a {@code long}, checking + * for lost information. If this {@code BigDecimal} has a + * nonzero fractional part or is out of the possible range for a + * {@code long} result then an {@code ArithmeticException} is + * thrown. + */ + // @ts-ignore + public longValueExact(): number; + /** + * Converts this {@code BigDecimal} to an {@code int}. + * This conversion is analogous to the + * narrowing primitive conversion from {@code double} to + * {@code short} as defined in section 5.1.3 of + * The Java™ Language Specification: + * any fractional part of this + * {@code BigDecimal} will be discarded, and if the resulting + * "{@code BigInteger}" is too big to fit in an + * {@code int}, only the low-order 32 bits are returned. + * Note that this conversion can lose information about the + * overall magnitude and precision of this {@code BigDecimal} + * value as well as return a result with the opposite sign. + */ + // @ts-ignore + public intValue(): number; + /** + * Converts this {@code BigDecimal} to an {@code int}, checking + * for lost information. If this {@code BigDecimal} has a + * nonzero fractional part or is out of the possible range for an + * {@code int} result then an {@code ArithmeticException} is + * thrown. + */ + // @ts-ignore + public intValueExact(): number; + /** + * Converts this {@code BigDecimal} to a {@code short}, checking + * for lost information. If this {@code BigDecimal} has a + * nonzero fractional part or is out of the possible range for a + * {@code short} result then an {@code ArithmeticException} is + * thrown. + */ + // @ts-ignore + public shortValueExact(): number; + /** + * Converts this {@code BigDecimal} to a {@code byte}, checking + * for lost information. If this {@code BigDecimal} has a + * nonzero fractional part or is out of the possible range for a + * {@code byte} result then an {@code ArithmeticException} is + * thrown. + */ + // @ts-ignore + public byteValueExact(): number; + /** + * Converts this {@code BigDecimal} to a {@code float}. + * This conversion is similar to the + * narrowing primitive conversion from {@code double} to + * {@code float} as defined in section 5.1.3 of + * The Java™ Language Specification: + * if this {@code BigDecimal} has too great a + * magnitude to represent as a {@code float}, it will be + * converted to {@link Float#NEGATIVE_INFINITY} or {@link + * Float#POSITIVE_INFINITY} as appropriate. Note that even when + * the return value is finite, this conversion can lose + * information about the precision of the {@code BigDecimal} + * value. + */ + // @ts-ignore + public floatValue(): number; + /** + * Converts this {@code BigDecimal} to a {@code double}. + * This conversion is similar to the + * narrowing primitive conversion from {@code double} to + * {@code float} as defined in section 5.1.3 of + * The Java™ Language Specification: + * if this {@code BigDecimal} has too great a + * magnitude represent as a {@code double}, it will be + * converted to {@link Double#NEGATIVE_INFINITY} or {@link + * Double#POSITIVE_INFINITY} as appropriate. Note that even when + * the return value is finite, this conversion can lose + * information about the precision of the {@code BigDecimal} + * value. + */ + // @ts-ignore + public doubleValue(): number; + /** + * Returns the size of an ulp, a unit in the last place, of this + * {@code BigDecimal}. An ulp of a nonzero {@code BigDecimal} + * value is the positive distance between this value and the + * {@code BigDecimal} value next larger in magnitude with the + * same number of digits. An ulp of a zero value is numerically + * equal to 1 with the scale of {@code this}. The result is + * stored with the same scale as {@code this} so the result + * for zero and nonzero values is equal to {@code [1, + * this.scale()]}. + */ + // @ts-ignore + public ulp(): java.math.BigDecimal; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.math.BigInteger.d.ts b/packages/types/dist/typings/jdk/java.math.BigInteger.d.ts new file mode 100644 index 00000000..9c9a53a4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.math.BigInteger.d.ts @@ -0,0 +1,441 @@ +// @ts-nocheck +declare namespace java { + namespace math { + // @ts-ignore + class BigInteger extends java.lang.Number { + /** + * Translates a byte array containing the two's-complement binary + * representation of a BigInteger into a BigInteger. The input array is + * assumed to be in big-endian byte-order: the most significant + * byte is in the zeroth element. + */ + // @ts-ignore + constructor(val: number) + /** + * Translates the sign-magnitude representation of a BigInteger into a + * BigInteger. The sign is represented as an integer signum value: -1 for + * negative, 0 for zero, or 1 for positive. The magnitude is a byte array + * in big-endian byte-order: the most significant byte is in the + * zeroth element. A zero-length magnitude array is permissible, and will + * result in a BigInteger value of 0, whether signum is -1, 0 or 1. + */ + // @ts-ignore + constructor(signum: number, magnitude: number) + /** + * Translates the String representation of a BigInteger in the + * specified radix into a BigInteger. The String representation + * consists of an optional minus or plus sign followed by a + * sequence of one or more digits in the specified radix. The + * character-to-digit mapping is provided by {@code + * Character.digit}. The String may not contain any extraneous + * characters (whitespace, for example). + */ + // @ts-ignore + constructor(val: string, radix: number) + /** + * Translates the decimal String representation of a BigInteger into a + * BigInteger. The String representation consists of an optional minus + * sign followed by a sequence of one or more decimal digits. The + * character-to-digit mapping is provided by {@code Character.digit}. + * The String may not contain any extraneous characters (whitespace, for + * example). + */ + // @ts-ignore + constructor(val: string) + /** + * Constructs a randomly generated BigInteger, uniformly distributed over + * the range 0 to (2{@code numBits} - 1), inclusive. + * The uniformity of the distribution assumes that a fair source of random + * bits is provided in {@code rnd}. Note that this constructor always + * constructs a non-negative BigInteger. + */ + // @ts-ignore + constructor(numBits: number, rnd: java.util.Random) + /** + * Constructs a randomly generated positive BigInteger that is probably + * prime, with the specified bitLength. + *

It is recommended that the {@link #probablePrime probablePrime} + * method be used in preference to this constructor unless there + * is a compelling need to specify a certainty. + */ + // @ts-ignore + constructor(bitLength: number, certainty: number, rnd: java.util.Random) + // @ts-ignore + public static ZERO: java.math.BigInteger; + // @ts-ignore + public static ONE: java.math.BigInteger; + // @ts-ignore + public static TEN: java.math.BigInteger; + /** + * Returns a positive BigInteger that is probably prime, with the + * specified bitLength. The probability that a BigInteger returned + * by this method is composite does not exceed 2-100. + */ + // @ts-ignore + public static probablePrime(bitLength: number, rnd: java.util.Random): java.math.BigInteger; + /** + * Returns the first integer greater than this {@code BigInteger} that + * is probably prime. The probability that the number returned by this + * method is composite does not exceed 2-100. This method will + * never skip over a prime when searching: if it returns {@code p}, there + * is no prime {@code q} such that {@code this < q < p}. + */ + // @ts-ignore + public nextProbablePrime(): java.math.BigInteger; + /** + * Returns a BigInteger whose value is equal to that of the + * specified {@code long}. This "static factory method" is + * provided in preference to a ({@code long}) constructor + * because it allows for reuse of frequently used BigIntegers. + */ + // @ts-ignore + public static valueOf(val: number): java.math.BigInteger; + /** + * Returns a BigInteger whose value is {@code (this + val)}. + */ + // @ts-ignore + public add(val: java.math.BigInteger): java.math.BigInteger; + /** + * Returns a BigInteger whose value is {@code (this - val)}. + */ + // @ts-ignore + public subtract(val: java.math.BigInteger): java.math.BigInteger; + /** + * Returns a BigInteger whose value is {@code (this * val)}. + */ + // @ts-ignore + public multiply(val: java.math.BigInteger): java.math.BigInteger; + /** + * Returns a BigInteger whose value is {@code (this / val)}. + */ + // @ts-ignore + public divide(val: java.math.BigInteger): java.math.BigInteger; + /** + * Returns an array of two BigIntegers containing {@code (this / val)} + * followed by {@code (this % val)}. + */ + // @ts-ignore + public divideAndRemainder(val: java.math.BigInteger): java.math.BigInteger[]; + /** + * Returns a BigInteger whose value is {@code (this % val)}. + */ + // @ts-ignore + public remainder(val: java.math.BigInteger): java.math.BigInteger; + /** + * Returns a BigInteger whose value is (thisexponent). + * Note that {@code exponent} is an integer rather than a BigInteger. + */ + // @ts-ignore + public pow(exponent: number): java.math.BigInteger; + /** + * Returns a BigInteger whose value is the greatest common divisor of + * {@code abs(this)} and {@code abs(val)}. Returns 0 if + * {@code this == 0 && val == 0}. + */ + // @ts-ignore + public gcd(val: java.math.BigInteger): java.math.BigInteger; + /** + * Returns a BigInteger whose value is the absolute value of this + * BigInteger. + */ + // @ts-ignore + public abs(): java.math.BigInteger; + /** + * Returns a BigInteger whose value is {@code (-this)}. + */ + // @ts-ignore + public negate(): java.math.BigInteger; + /** + * Returns the signum function of this BigInteger. + */ + // @ts-ignore + public signum(): number; + /** + * Returns a BigInteger whose value is {@code (this mod m}). This method + * differs from {@code remainder} in that it always returns a + * non-negative BigInteger. + */ + // @ts-ignore + public mod(m: java.math.BigInteger): java.math.BigInteger; + /** + * Returns a BigInteger whose value is + * (thisexponent mod m). (Unlike {@code pow}, this + * method permits negative exponents.) + */ + // @ts-ignore + public modPow(exponent: java.math.BigInteger, m: java.math.BigInteger): java.math.BigInteger; + /** + * Returns a BigInteger whose value is {@code (this}-1 {@code mod m)}. + */ + // @ts-ignore + public modInverse(m: java.math.BigInteger): java.math.BigInteger; + /** + * Returns a BigInteger whose value is {@code (this << n)}. + * The shift distance, {@code n}, may be negative, in which case + * this method performs a right shift. + * (Computes floor(this * 2n).) + */ + // @ts-ignore + public shiftLeft(n: number): java.math.BigInteger; + /** + * Returns a BigInteger whose value is {@code (this >> n)}. Sign + * extension is performed. The shift distance, {@code n}, may be + * negative, in which case this method performs a left shift. + * (Computes floor(this / 2n).) + */ + // @ts-ignore + public shiftRight(n: number): java.math.BigInteger; + /** + * Returns a BigInteger whose value is {@code (this & val)}. (This + * method returns a negative BigInteger if and only if this and val are + * both negative.) + */ + // @ts-ignore + public and(val: java.math.BigInteger): java.math.BigInteger; + /** + * Returns a BigInteger whose value is {@code (this | val)}. (This method + * returns a negative BigInteger if and only if either this or val is + * negative.) + */ + // @ts-ignore + public or(val: java.math.BigInteger): java.math.BigInteger; + /** + * Returns a BigInteger whose value is {@code (this ^ val)}. (This method + * returns a negative BigInteger if and only if exactly one of this and + * val are negative.) + */ + // @ts-ignore + public xor(val: java.math.BigInteger): java.math.BigInteger; + /** + * Returns a BigInteger whose value is {@code (~this)}. (This method + * returns a negative value if and only if this BigInteger is + * non-negative.) + */ + // @ts-ignore + public not(): java.math.BigInteger; + /** + * Returns a BigInteger whose value is {@code (this & ~val)}. This + * method, which is equivalent to {@code and(val.not())}, is provided as + * a convenience for masking operations. (This method returns a negative + * BigInteger if and only if {@code this} is negative and {@code val} is + * positive.) + */ + // @ts-ignore + public andNot(val: java.math.BigInteger): java.math.BigInteger; + /** + * Returns {@code true} if and only if the designated bit is set. + * (Computes {@code ((this & (1<excluding a sign bit. + * For positive BigIntegers, this is equivalent to the number of bits in + * the ordinary binary representation. (Computes + * {@code (ceil(log2(this < 0 ? -this : this+1)))}.) + */ + // @ts-ignore + public bitLength(): number; + /** + * Returns the number of bits in the two's complement representation + * of this BigInteger that differ from its sign bit. This method is + * useful when implementing bit-vector style sets atop BigIntegers. + */ + // @ts-ignore + public bitCount(): number; + /** + * Returns {@code true} if this BigInteger is probably prime, + * {@code false} if it's definitely composite. If + * {@code certainty} is ≤ 0, {@code true} is + * returned. + */ + // @ts-ignore + public isProbablePrime(certainty: number): boolean; + /** + * Compares this BigInteger with the specified BigInteger. This + * method is provided in preference to individual methods for each + * of the six boolean comparison operators ({@literal <}, ==, + * {@literal >}, {@literal >=}, !=, {@literal <=}). The suggested + * idiom for performing these comparisons is: {@code + * (x.compareTo(y)} <op> {@code 0)}, where + * <op> is one of the six comparison operators. + */ + // @ts-ignore + public compareTo(val: java.math.BigInteger): number; + /** + * Compares this BigInteger with the specified Object for equality. + */ + // @ts-ignore + public equals(x: java.lang.Object): boolean; + /** + * Returns the minimum of this BigInteger and {@code val}. + */ + // @ts-ignore + public min(val: java.math.BigInteger): java.math.BigInteger; + /** + * Returns the maximum of this BigInteger and {@code val}. + */ + // @ts-ignore + public max(val: java.math.BigInteger): java.math.BigInteger; + /** + * Returns the hash code for this BigInteger. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns the String representation of this BigInteger in the + * given radix. If the radix is outside the range from {@link + * Character#MIN_RADIX} to {@link Character#MAX_RADIX} inclusive, + * it will default to 10 (as is the case for + * {@code Integer.toString}). The digit-to-character mapping + * provided by {@code Character.forDigit} is used, and a minus + * sign is prepended if appropriate. (This representation is + * compatible with the {@link #BigInteger(String, int) (String, + * int)} constructor.) + */ + // @ts-ignore + public toString(radix: number): string; + /** + * Returns the decimal String representation of this BigInteger. + * The digit-to-character mapping provided by + * {@code Character.forDigit} is used, and a minus sign is + * prepended if appropriate. (This representation is compatible + * with the {@link #BigInteger(String) (String)} constructor, and + * allows for String concatenation with Java's + operator.) + */ + // @ts-ignore + public toString(): string; + /** + * Returns a byte array containing the two's-complement + * representation of this BigInteger. The byte array will be in + * big-endian byte-order: the most significant byte is in + * the zeroth element. The array will contain the minimum number + * of bytes required to represent this BigInteger, including at + * least one sign bit, which is {@code (ceil((this.bitLength() + + * 1)/8))}. (This representation is compatible with the + * {@link #BigInteger(byte[]) (byte[])} constructor.) + */ + // @ts-ignore + public toByteArray(): number[]; + /** + * Converts this BigInteger to an {@code int}. This + * conversion is analogous to a + * narrowing primitive conversion from {@code long} to + * {@code int} as defined in section 5.1.3 of + * The Java™ Language Specification: + * if this BigInteger is too big to fit in an + * {@code int}, only the low-order 32 bits are returned. + * Note that this conversion can lose information about the + * overall magnitude of the BigInteger value as well as return a + * result with the opposite sign. + */ + // @ts-ignore + public intValue(): number; + /** + * Converts this BigInteger to a {@code long}. This + * conversion is analogous to a + * narrowing primitive conversion from {@code long} to + * {@code int} as defined in section 5.1.3 of + * The Java™ Language Specification: + * if this BigInteger is too big to fit in a + * {@code long}, only the low-order 64 bits are returned. + * Note that this conversion can lose information about the + * overall magnitude of the BigInteger value as well as return a + * result with the opposite sign. + */ + // @ts-ignore + public longValue(): number; + /** + * Converts this BigInteger to a {@code float}. This + * conversion is similar to the + * narrowing primitive conversion from {@code double} to + * {@code float} as defined in section 5.1.3 of + * The Java™ Language Specification: + * if this BigInteger has too great a magnitude + * to represent as a {@code float}, it will be converted to + * {@link Float#NEGATIVE_INFINITY} or {@link + * Float#POSITIVE_INFINITY} as appropriate. Note that even when + * the return value is finite, this conversion can lose + * information about the precision of the BigInteger value. + */ + // @ts-ignore + public floatValue(): number; + /** + * Converts this BigInteger to a {@code double}. This + * conversion is similar to the + * narrowing primitive conversion from {@code double} to + * {@code float} as defined in section 5.1.3 of + * The Java™ Language Specification: + * if this BigInteger has too great a magnitude + * to represent as a {@code double}, it will be converted to + * {@link Double#NEGATIVE_INFINITY} or {@link + * Double#POSITIVE_INFINITY} as appropriate. Note that even when + * the return value is finite, this conversion can lose + * information about the precision of the BigInteger value. + */ + // @ts-ignore + public doubleValue(): number; + /** + * Converts this {@code BigInteger} to a {@code long}, checking + * for lost information. If the value of this {@code BigInteger} + * is out of the range of the {@code long} type, then an + * {@code ArithmeticException} is thrown. + */ + // @ts-ignore + public longValueExact(): number; + /** + * Converts this {@code BigInteger} to an {@code int}, checking + * for lost information. If the value of this {@code BigInteger} + * is out of the range of the {@code int} type, then an + * {@code ArithmeticException} is thrown. + */ + // @ts-ignore + public intValueExact(): number; + /** + * Converts this {@code BigInteger} to a {@code short}, checking + * for lost information. If the value of this {@code BigInteger} + * is out of the range of the {@code short} type, then an + * {@code ArithmeticException} is thrown. + */ + // @ts-ignore + public shortValueExact(): number; + /** + * Converts this {@code BigInteger} to a {@code byte}, checking + * for lost information. If the value of this {@code BigInteger} + * is out of the range of the {@code byte} type, then an + * {@code ArithmeticException} is thrown. + */ + // @ts-ignore + public byteValueExact(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.math.MathContext.d.ts b/packages/types/dist/typings/jdk/java.math.MathContext.d.ts new file mode 100644 index 00000000..5223f6a8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.math.MathContext.d.ts @@ -0,0 +1,100 @@ +// @ts-nocheck +declare namespace java { + namespace math { + // @ts-ignore + class MathContext extends java.lang.Object { + /** + * Constructs a new {@code MathContext} with the specified + * precision and the {@link RoundingMode#HALF_UP HALF_UP} rounding + * mode. + */ + // @ts-ignore + constructor(setPrecision: number) + /** + * Constructs a new {@code MathContext} with a specified + * precision and rounding mode. + */ + // @ts-ignore + constructor(setPrecision: number, setRoundingMode: java.math.RoundingMode) + /** + * Constructs a new {@code MathContext} from a string. + * The string must be in the same format as that produced by the + * {@link #toString} method. + *

An {@code IllegalArgumentException} is thrown if the precision + * section of the string is out of range ({@code < 0}) or the string is + * not in the format created by the {@link #toString} method. + */ + // @ts-ignore + constructor(val: string) + // @ts-ignore + public static UNLIMITED: java.math.MathContext; + // @ts-ignore + public static DECIMAL32: java.math.MathContext; + // @ts-ignore + public static DECIMAL64: java.math.MathContext; + // @ts-ignore + public static DECIMAL128: java.math.MathContext; + /** + * Returns the {@code precision} setting. + * This value is always non-negative. + */ + // @ts-ignore + public getPrecision(): number; + /** + * Returns the roundingMode setting. + * This will be one of + * {@link RoundingMode#CEILING}, + * {@link RoundingMode#DOWN}, + * {@link RoundingMode#FLOOR}, + * {@link RoundingMode#HALF_DOWN}, + * {@link RoundingMode#HALF_EVEN}, + * {@link RoundingMode#HALF_UP}, + * {@link RoundingMode#UNNECESSARY}, or + * {@link RoundingMode#UP}. + */ + // @ts-ignore + public getRoundingMode(): java.math.RoundingMode; + /** + * Compares this {@code MathContext} with the specified + * {@code Object} for equality. + */ + // @ts-ignore + public equals(x: java.lang.Object): boolean; + /** + * Returns the hash code for this {@code MathContext}. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns the string representation of this {@code MathContext}. + * The {@code String} returned represents the settings of the + * {@code MathContext} object as two space-delimited words + * (separated by a single space character, '\u0020', + * and with no leading or trailing white space), as follows: + *

    + *
  1. + * The string {@code "precision="}, immediately followed + * by the value of the precision setting as a numeric string as if + * generated by the {@link Integer#toString(int) Integer.toString} + * method. + *
  2. + * The string {@code "roundingMode="}, immediately + * followed by the value of the {@code roundingMode} setting as a + * word. This word will be the same as the name of the + * corresponding public constant in the {@link RoundingMode} + * enum. + *
+ *

+ * For example: + *

+             * precision=9 roundingMode=HALF_UP
+             * 
+ * Additional words may be appended to the result of + * {@code toString} in the future if more properties are added to + * this class. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.math.RoundingMode.d.ts b/packages/types/dist/typings/jdk/java.math.RoundingMode.d.ts new file mode 100644 index 00000000..4ae0ae5f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.math.RoundingMode.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace java { + namespace math { + // @ts-ignore + class RoundingMode extends java.lang.Enum { + // @ts-ignore + public static UP: java.math.RoundingMode; + // @ts-ignore + public static DOWN: java.math.RoundingMode; + // @ts-ignore + public static CEILING: java.math.RoundingMode; + // @ts-ignore + public static FLOOR: java.math.RoundingMode; + // @ts-ignore + public static HALF_UP: java.math.RoundingMode; + // @ts-ignore + public static HALF_DOWN: java.math.RoundingMode; + // @ts-ignore + public static HALF_EVEN: java.math.RoundingMode; + // @ts-ignore + public static UNNECESSARY: java.math.RoundingMode; + // @ts-ignore + public static values(): java.math.RoundingMode[]; + // @ts-ignore + public static valueOf(name: string): java.math.RoundingMode; + /** + * Returns the {@code RoundingMode} object corresponding to a + * legacy integer rounding mode constant in {@link BigDecimal}. + */ + // @ts-ignore + public static valueOf(rm: number): java.math.RoundingMode; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.Authenticator.RequestorType.d.ts b/packages/types/dist/typings/jdk/java.net.Authenticator.RequestorType.d.ts new file mode 100644 index 00000000..0d14f25c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.Authenticator.RequestorType.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace java { + namespace net { + namespace Authenticator { + // @ts-ignore + class RequestorType extends java.lang.Enum { + // @ts-ignore + public static PROXY: java.net.Authenticator.RequestorType; + // @ts-ignore + public static SERVER: java.net.Authenticator.RequestorType; + // @ts-ignore + public static values(): java.net.Authenticator.RequestorType[]; + // @ts-ignore + public static valueOf(name: string): java.net.Authenticator.RequestorType; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.Authenticator.d.ts b/packages/types/dist/typings/jdk/java.net.Authenticator.d.ts new file mode 100644 index 00000000..5c8eb890 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.Authenticator.d.ts @@ -0,0 +1,110 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + abstract class Authenticator extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Sets the authenticator that will be used by the networking code + * when a proxy or an HTTP server asks for authentication. + *

+ * First, if there is a security manager, its {@code checkPermission} + * method is called with a + * {@code NetPermission("setDefaultAuthenticator")} permission. + * This may result in a java.lang.SecurityException. + */ + // @ts-ignore + public static setDefault(a: java.net.Authenticator): void; + /** + * Ask the authenticator that has been registered with the system + * for a password. + *

+ * First, if there is a security manager, its {@code checkPermission} + * method is called with a + * {@code NetPermission("requestPasswordAuthentication")} permission. + * This may result in a java.lang.SecurityException. + */ + // @ts-ignore + public static requestPasswordAuthentication(addr: java.net.InetAddress, port: number, protocol: string, prompt: string, scheme: string): java.net.PasswordAuthentication; + /** + * Ask the authenticator that has been registered with the system + * for a password. This is the preferred method for requesting a password + * because the hostname can be provided in cases where the InetAddress + * is not available. + *

+ * First, if there is a security manager, its {@code checkPermission} + * method is called with a + * {@code NetPermission("requestPasswordAuthentication")} permission. + * This may result in a java.lang.SecurityException. + */ + // @ts-ignore + public static requestPasswordAuthentication(host: string, addr: java.net.InetAddress, port: number, protocol: string, prompt: string, scheme: string): java.net.PasswordAuthentication; + /** + * Ask the authenticator that has been registered with the system + * for a password. + *

+ * First, if there is a security manager, its {@code checkPermission} + * method is called with a + * {@code NetPermission("requestPasswordAuthentication")} permission. + * This may result in a java.lang.SecurityException. + */ + // @ts-ignore + public static requestPasswordAuthentication(host: string, addr: java.net.InetAddress, port: number, protocol: string, prompt: string, scheme: string, url: java.net.URL, reqType: java.net.Authenticator.RequestorType): java.net.PasswordAuthentication; + /** + * Gets the {@code hostname} of the + * site or proxy requesting authentication, or {@code null} + * if not available. + */ + // @ts-ignore + protected getRequestingHost(): string; + /** + * Gets the {@code InetAddress} of the + * site requesting authorization, or {@code null} + * if not available. + */ + // @ts-ignore + protected getRequestingSite(): java.net.InetAddress; + /** + * Gets the port number for the requested connection. + */ + // @ts-ignore + protected getRequestingPort(): number; + /** + * Give the protocol that's requesting the connection. Often this + * will be based on a URL, but in a future JDK it could be, for + * example, "SOCKS" for a password-protected SOCKS5 firewall. + */ + // @ts-ignore + protected getRequestingProtocol(): string; + /** + * Gets the prompt string given by the requestor. + */ + // @ts-ignore + protected getRequestingPrompt(): string; + /** + * Gets the scheme of the requestor (the HTTP scheme + * for an HTTP firewall, for example). + */ + // @ts-ignore + protected getRequestingScheme(): string; + /** + * Called when password authorization is needed. Subclasses should + * override the default implementation, which returns null. + */ + // @ts-ignore + protected getPasswordAuthentication(): java.net.PasswordAuthentication; + /** + * Returns the URL that resulted in this + * request for authentication. + */ + // @ts-ignore + protected getRequestingURL(): java.net.URL; + /** + * Returns whether the requestor is a Proxy or a Server. + */ + // @ts-ignore + protected getRequestorType(): java.net.Authenticator.RequestorType; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.BindException.d.ts b/packages/types/dist/typings/jdk/java.net.BindException.d.ts new file mode 100644 index 00000000..ef344589 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.BindException.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class BindException extends java.net.SocketException { + /** + * Constructs a new BindException with the specified detail + * message as to why the bind error occurred. + * A detail message is a String that gives a specific + * description of this error. + */ + // @ts-ignore + constructor(msg: string) + /** + * Construct a new BindException with no detailed message. + */ + // @ts-ignore + constructor() + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.CacheRequest.d.ts b/packages/types/dist/typings/jdk/java.net.CacheRequest.d.ts new file mode 100644 index 00000000..48ed7a64 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.CacheRequest.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + abstract class CacheRequest extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Returns an OutputStream to which the response body can be + * written. + */ + // @ts-ignore + public abstract getBody(): java.io.OutputStream; + /** + * Aborts the attempt to cache the response. If an IOException is + * encountered while reading the response or writing to the cache, + * the current cache store operation will be abandoned. + */ + // @ts-ignore + public abstract abort(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.CacheResponse.d.ts b/packages/types/dist/typings/jdk/java.net.CacheResponse.d.ts new file mode 100644 index 00000000..7c3b166d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.CacheResponse.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + abstract class CacheResponse extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Returns the response headers as a Map. + */ + // @ts-ignore + public abstract getHeaders(): java.util.Map; + /** + * Returns the response body as an InputStream. + */ + // @ts-ignore + public abstract getBody(): java.io.InputStream; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.ConnectException.d.ts b/packages/types/dist/typings/jdk/java.net.ConnectException.d.ts new file mode 100644 index 00000000..e7117a76 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.ConnectException.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class ConnectException extends java.net.SocketException { + /** + * Constructs a new ConnectException with the specified detail + * message as to why the connect error occurred. + * A detail message is a String that gives a specific + * description of this error. + */ + // @ts-ignore + constructor(msg: string) + /** + * Construct a new ConnectException with no detailed message. + */ + // @ts-ignore + constructor() + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.ContentHandler.d.ts b/packages/types/dist/typings/jdk/java.net.ContentHandler.d.ts new file mode 100644 index 00000000..599a829a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.ContentHandler.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + abstract class ContentHandler extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Given a URL connect stream positioned at the beginning of the + * representation of an object, this method reads that stream and + * creates an object from it. + */ + // @ts-ignore + public abstract getContent(urlc: java.net.URLConnection): java.lang.Object; + /** + * Given a URL connect stream positioned at the beginning of the + * representation of an object, this method reads that stream and + * creates an object that matches one of the types specified. + * The default implementation of this method should call getContent() + * and screen the return type for a match of the suggested types. + */ + // @ts-ignore + public getContent(urlc: java.net.URLConnection, classes: java.lang.Class): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.ContentHandlerFactory.d.ts b/packages/types/dist/typings/jdk/java.net.ContentHandlerFactory.d.ts new file mode 100644 index 00000000..464fdac2 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.ContentHandlerFactory.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + interface ContentHandlerFactory { + /** + * Creates a new {@code ContentHandler} to read an object from + * a {@code URLStreamHandler}. + */ + // @ts-ignore + createContentHandler(mimetype: string): java.net.ContentHandler; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.CookieHandler.d.ts b/packages/types/dist/typings/jdk/java.net.CookieHandler.d.ts new file mode 100644 index 00000000..e7487d1f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.CookieHandler.d.ts @@ -0,0 +1,45 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + abstract class CookieHandler extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Gets the system-wide cookie handler. + */ + // @ts-ignore + public static getDefault(): java.net.CookieHandler; + /** + * Sets (or unsets) the system-wide cookie handler. + * Note: non-standard http protocol handlers may ignore this setting. + */ + // @ts-ignore + public static setDefault(cHandler: java.net.CookieHandler): void; + /** + * Gets all the applicable cookies from a cookie cache for the + * specified uri in the request header. + *

The {@code URI} passed as an argument specifies the intended use for + * the cookies. In particular the scheme should reflect whether the cookies + * will be sent over http, https or used in another context like javascript. + * The host part should reflect either the destination of the cookies or + * their origin in the case of javascript.

+ *

It is up to the implementation to take into account the {@code URI} and + * the cookies attributes and security settings to determine which ones + * should be returned.

+ *

HTTP protocol implementers should make sure that this method is + * called after all request headers related to choosing cookies + * are added, and before the request is sent.

+ */ + // @ts-ignore + public abstract get(uri: java.net.URI, requestHeaders: java.util.Map): java.util.Map; + /** + * Sets all the applicable cookies, examples are response header + * fields that are named Set-Cookie2, present in the response + * headers into a cookie cache. + */ + // @ts-ignore + public abstract put(uri: java.net.URI, responseHeaders: java.util.Map): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.CookieManager.d.ts b/packages/types/dist/typings/jdk/java.net.CookieManager.d.ts new file mode 100644 index 00000000..d7d51bba --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.CookieManager.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class CookieManager extends java.net.CookieHandler { + /** + * Create a new cookie manager. + *

This constructor will create new cookie manager with default + * cookie store and accept policy. The effect is same as + * {@code CookieManager(null, null)}. + */ + // @ts-ignore + constructor() + /** + * Create a new cookie manager with specified cookie store and cookie policy. + */ + // @ts-ignore + constructor(store: java.net.CookieStore, cookiePolicy: java.net.CookiePolicy) + /** + * To set the cookie policy of this cookie manager. + *

A instance of {@code CookieManager} will have + * cookie policy ACCEPT_ORIGINAL_SERVER by default. Users always + * can call this method to set another cookie policy. + */ + // @ts-ignore + public setCookiePolicy(cookiePolicy: java.net.CookiePolicy): void; + /** + * To retrieve current cookie store. + */ + // @ts-ignore + public getCookieStore(): java.net.CookieStore; + // @ts-ignore + public get(uri: java.net.URI, requestHeaders: java.util.Map): java.util.Map; + // @ts-ignore + public put(uri: java.net.URI, responseHeaders: java.util.Map): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.CookiePolicy.d.ts b/packages/types/dist/typings/jdk/java.net.CookiePolicy.d.ts new file mode 100644 index 00000000..22d3f943 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.CookiePolicy.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + interface CookiePolicy { + // @ts-ignore + ACCEPT_ALL: java.net.CookiePolicy; + // @ts-ignore + ACCEPT_NONE: java.net.CookiePolicy; + // @ts-ignore + ACCEPT_ORIGINAL_SERVER: java.net.CookiePolicy; + /** + * Will be called to see whether or not this cookie should be accepted. + */ + // @ts-ignore + shouldAccept(uri: java.net.URI, cookie: java.net.HttpCookie): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.CookieStore.d.ts b/packages/types/dist/typings/jdk/java.net.CookieStore.d.ts new file mode 100644 index 00000000..6ed1a305 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.CookieStore.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + interface CookieStore { + /** + * Adds one HTTP cookie to the store. This is called for every + * incoming HTTP response. + *

A cookie to store may or may not be associated with an URI. If it + * is not associated with an URI, the cookie's domain and path attribute + * will indicate where it comes from. If it is associated with an URI and + * its domain and path attribute are not specified, given URI will indicate + * where this cookie comes from. + *

If a cookie corresponding to the given URI already exists, + * then it is replaced with the new one. + */ + // @ts-ignore + add(uri: java.net.URI, cookie: java.net.HttpCookie): void; + /** + * Retrieve cookies associated with given URI, or whose domain matches the + * given URI. Only cookies that have not expired are returned. + * This is called for every outgoing HTTP request. + */ + // @ts-ignore + get(uri: java.net.URI): java.util.List; + /** + * Get all not-expired cookies in cookie store. + */ + // @ts-ignore + getCookies(): java.util.List; + /** + * Get all URIs which identify the cookies in this cookie store. + */ + // @ts-ignore + getURIs(): java.util.List; + /** + * Remove a cookie from store. + */ + // @ts-ignore + remove(uri: java.net.URI, cookie: java.net.HttpCookie): boolean; + /** + * Remove all cookies in this cookie store. + */ + // @ts-ignore + removeAll(): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.DatagramPacket.d.ts b/packages/types/dist/typings/jdk/java.net.DatagramPacket.d.ts new file mode 100644 index 00000000..51c407be --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.DatagramPacket.d.ts @@ -0,0 +1,137 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class DatagramPacket extends java.lang.Object { + /** + * Constructs a {@code DatagramPacket} for receiving packets of + * length {@code length}, specifying an offset into the buffer. + *

+ * The {@code length} argument must be less than or equal to + * {@code buf.length}. + */ + // @ts-ignore + constructor(buf: number, offset: number, length: number) + /** + * Constructs a {@code DatagramPacket} for receiving packets of + * length {@code length}. + *

+ * The {@code length} argument must be less than or equal to + * {@code buf.length}. + */ + // @ts-ignore + constructor(buf: number, length: number) + /** + * Constructs a datagram packet for sending packets of length + * {@code length} with offset {@code ioffset}to the + * specified port number on the specified host. The + * {@code length} argument must be less than or equal to + * {@code buf.length}. + */ + // @ts-ignore + constructor(buf: number, offset: number, length: number, address: java.net.InetAddress, port: number) + /** + * Constructs a datagram packet for sending packets of length + * {@code length} with offset {@code ioffset}to the + * specified port number on the specified host. The + * {@code length} argument must be less than or equal to + * {@code buf.length}. + */ + // @ts-ignore + constructor(buf: number, offset: number, length: number, address: java.net.SocketAddress) + /** + * Constructs a datagram packet for sending packets of length + * {@code length} to the specified port number on the specified + * host. The {@code length} argument must be less than or equal + * to {@code buf.length}. + */ + // @ts-ignore + constructor(buf: number, length: number, address: java.net.InetAddress, port: number) + /** + * Constructs a datagram packet for sending packets of length + * {@code length} to the specified port number on the specified + * host. The {@code length} argument must be less than or equal + * to {@code buf.length}. + */ + // @ts-ignore + constructor(buf: number, length: number, address: java.net.SocketAddress) + /** + * Returns the IP address of the machine to which this datagram is being + * sent or from which the datagram was received. + */ + // @ts-ignore + public getAddress(): java.net.InetAddress; + /** + * Returns the port number on the remote host to which this datagram is + * being sent or from which the datagram was received. + */ + // @ts-ignore + public getPort(): number; + /** + * Returns the data buffer. The data received or the data to be sent + * starts from the {@code offset} in the buffer, + * and runs for {@code length} long. + */ + // @ts-ignore + public getData(): number[]; + /** + * Returns the offset of the data to be sent or the offset of the + * data received. + */ + // @ts-ignore + public getOffset(): number; + /** + * Returns the length of the data to be sent or the length of the + * data received. + */ + // @ts-ignore + public getLength(): number; + /** + * Set the data buffer for this packet. This sets the + * data, length and offset of the packet. + */ + // @ts-ignore + public setData(buf: number, offset: number, length: number): void; + /** + * Sets the IP address of the machine to which this datagram + * is being sent. + */ + // @ts-ignore + public setAddress(iaddr: java.net.InetAddress): void; + /** + * Sets the port number on the remote host to which this datagram + * is being sent. + */ + // @ts-ignore + public setPort(iport: number): void; + /** + * Sets the SocketAddress (usually IP address + port number) of the remote + * host to which this datagram is being sent. + */ + // @ts-ignore + public setSocketAddress(address: java.net.SocketAddress): void; + /** + * Gets the SocketAddress (usually IP address + port number) of the remote + * host that this packet is being sent to or is coming from. + */ + // @ts-ignore + public getSocketAddress(): java.net.SocketAddress; + /** + * Set the data buffer for this packet. With the offset of + * this DatagramPacket set to 0, and the length set to + * the length of {@code buf}. + */ + // @ts-ignore + public setData(buf: number): void; + /** + * Set the length for this packet. The length of the packet is + * the number of bytes from the packet's data buffer that will be + * sent, or the number of bytes of the packet's data buffer that + * will be used for receiving data. The length must be lesser or + * equal to the offset plus the length of the packet's buffer. + */ + // @ts-ignore + public setLength(length: number): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.DatagramSocket.d.ts b/packages/types/dist/typings/jdk/java.net.DatagramSocket.d.ts new file mode 100644 index 00000000..37e14fbd --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.DatagramSocket.d.ts @@ -0,0 +1,429 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class DatagramSocket extends java.lang.Object { + /** + * Constructs a datagram socket and binds it to any available port + * on the local host machine. The socket will be bound to the + * {@link InetAddress#isAnyLocalAddress wildcard} address, + * an IP address chosen by the kernel. + *

If there is a security manager, + * its {@code checkListen} method is first called + * with 0 as its argument to ensure the operation is allowed. + * This could result in a SecurityException. + */ + // @ts-ignore + constructor() + /** + * Creates an unbound datagram socket with the specified + * DatagramSocketImpl. + */ + // @ts-ignore + constructor(impl: java.net.DatagramSocketImpl) + /** + * Creates a datagram socket, bound to the specified local + * socket address. + *

+ * If, if the address is {@code null}, creates an unbound socket. + *

If there is a security manager, + * its {@code checkListen} method is first called + * with the port from the socket address + * as its argument to ensure the operation is allowed. + * This could result in a SecurityException. + */ + // @ts-ignore + constructor(bindaddr: java.net.SocketAddress) + /** + * Constructs a datagram socket and binds it to the specified port + * on the local host machine. The socket will be bound to the + * {@link InetAddress#isAnyLocalAddress wildcard} address, + * an IP address chosen by the kernel. + *

If there is a security manager, + * its {@code checkListen} method is first called + * with the {@code port} argument + * as its argument to ensure the operation is allowed. + * This could result in a SecurityException. + */ + // @ts-ignore + constructor(port: number) + /** + * Creates a datagram socket, bound to the specified local + * address. The local port must be between 0 and 65535 inclusive. + * If the IP address is 0.0.0.0, the socket will be bound to the + * {@link InetAddress#isAnyLocalAddress wildcard} address, + * an IP address chosen by the kernel. + *

If there is a security manager, + * its {@code checkListen} method is first called + * with the {@code port} argument + * as its argument to ensure the operation is allowed. + * This could result in a SecurityException. + */ + // @ts-ignore + constructor(port: number, laddr: java.net.InetAddress) + /** + * Binds this DatagramSocket to a specific address and port. + *

+ * If the address is {@code null}, then the system will pick up + * an ephemeral port and a valid local address to bind the socket. + *

+ */ + // @ts-ignore + public bind(addr: java.net.SocketAddress): void; + /** + * Connects the socket to a remote address for this socket. When a + * socket is connected to a remote address, packets may only be + * sent to or received from that address. By default a datagram + * socket is not connected. + *

If the remote destination to which the socket is connected does not + * exist, or is otherwise unreachable, and if an ICMP destination unreachable + * packet has been received for that address, then a subsequent call to + * send or receive may throw a PortUnreachableException. Note, there is no + * guarantee that the exception will be thrown. + *

If a security manager has been installed then it is invoked to check + * access to the remote address. Specifically, if the given {@code address} + * is a {@link InetAddress#isMulticastAddress multicast address}, + * the security manager's {@link + * java.lang.SecurityManager#checkMulticast(InetAddress) + * checkMulticast} method is invoked with the given {@code address}. + * Otherwise, the security manager's {@link + * java.lang.SecurityManager#checkConnect(String,int) checkConnect} + * and {@link java.lang.SecurityManager#checkAccept checkAccept} methods + * are invoked, with the given {@code address} and {@code port}, to + * verify that datagrams are permitted to be sent and received + * respectively. + *

When a socket is connected, {@link #receive receive} and + * {@link #send send} will not perform any security checks + * on incoming and outgoing packets, other than matching the packet's + * and the socket's address and port. On a send operation, if the + * packet's address is set and the packet's address and the socket's + * address do not match, an {@code IllegalArgumentException} will be + * thrown. A socket connected to a multicast address may only be used + * to send packets. + */ + // @ts-ignore + public connect(address: java.net.InetAddress, port: number): void; + /** + * Connects this socket to a remote socket address (IP address + port number). + *

If given an {@link InetSocketAddress InetSocketAddress}, this method + * behaves as if invoking {@link #connect(InetAddress,int) connect(InetAddress,int)} + * with the the given socket addresses IP address and port number. + */ + // @ts-ignore + public connect(addr: java.net.SocketAddress): void; + /** + * Disconnects the socket. If the socket is closed or not connected, + * then this method has no effect. + */ + // @ts-ignore + public disconnect(): void; + /** + * Returns the binding state of the socket. + *

+ * If the socket was bound prior to being {@link #close closed}, + * then this method will continue to return {@code true} + * after the socket is closed. + */ + // @ts-ignore + public isBound(): boolean; + /** + * Returns the connection state of the socket. + *

+ * If the socket was connected prior to being {@link #close closed}, + * then this method will continue to return {@code true} + * after the socket is closed. + */ + // @ts-ignore + public isConnected(): boolean; + /** + * Returns the address to which this socket is connected. Returns + * {@code null} if the socket is not connected. + *

+ * If the socket was connected prior to being {@link #close closed}, + * then this method will continue to return the connected address + * after the socket is closed. + */ + // @ts-ignore + public getInetAddress(): java.net.InetAddress; + /** + * Returns the port number to which this socket is connected. + * Returns {@code -1} if the socket is not connected. + *

+ * If the socket was connected prior to being {@link #close closed}, + * then this method will continue to return the connected port number + * after the socket is closed. + */ + // @ts-ignore + public getPort(): number; + /** + * Returns the address of the endpoint this socket is connected to, or + * {@code null} if it is unconnected. + *

+ * If the socket was connected prior to being {@link #close closed}, + * then this method will continue to return the connected address + * after the socket is closed. + */ + // @ts-ignore + public getRemoteSocketAddress(): java.net.SocketAddress; + /** + * Returns the address of the endpoint this socket is bound to. + */ + // @ts-ignore + public getLocalSocketAddress(): java.net.SocketAddress; + /** + * Sends a datagram packet from this socket. The + * {@code DatagramPacket} includes information indicating the + * data to be sent, its length, the IP address of the remote host, + * and the port number on the remote host. + *

If there is a security manager, and the socket is not currently + * connected to a remote address, this method first performs some + * security checks. First, if {@code p.getAddress().isMulticastAddress()} + * is true, this method calls the + * security manager's {@code checkMulticast} method + * with {@code p.getAddress()} as its argument. + * If the evaluation of that expression is false, + * this method instead calls the security manager's + * {@code checkConnect} method with arguments + * {@code p.getAddress().getHostAddress()} and + * {@code p.getPort()}. Each call to a security manager method + * could result in a SecurityException if the operation is not allowed. + */ + // @ts-ignore + public send(p: java.net.DatagramPacket): void; + /** + * Receives a datagram packet from this socket. When this method + * returns, the {@code DatagramPacket}'s buffer is filled with + * the data received. The datagram packet also contains the sender's + * IP address, and the port number on the sender's machine. + *

+ * This method blocks until a datagram is received. The + * {@code length} field of the datagram packet object contains + * the length of the received message. If the message is longer than + * the packet's length, the message is truncated. + *

+ * If there is a security manager, a packet cannot be received if the + * security manager's {@code checkAccept} method + * does not allow it. + */ + // @ts-ignore + public receive(p: java.net.DatagramPacket): void; + /** + * Gets the local address to which the socket is bound. + *

If there is a security manager, its + * {@code checkConnect} method is first called + * with the host address and {@code -1} + * as its arguments to see if the operation is allowed. + */ + // @ts-ignore + public getLocalAddress(): java.net.InetAddress; + /** + * Returns the port number on the local host to which this socket + * is bound. + */ + // @ts-ignore + public getLocalPort(): number; + /** + * Enable/disable SO_TIMEOUT with the specified timeout, in + * milliseconds. With this option set to a non-zero timeout, + * a call to receive() for this DatagramSocket + * will block for only this amount of time. If the timeout expires, + * a java.net.SocketTimeoutException is raised, though the + * DatagramSocket is still valid. The option must be enabled + * prior to entering the blocking operation to have effect. The + * timeout must be {@code > 0}. + * A timeout of zero is interpreted as an infinite timeout. + */ + // @ts-ignore + public setSoTimeout(timeout: number): void; + /** + * Retrieve setting for SO_TIMEOUT. 0 returns implies that the + * option is disabled (i.e., timeout of infinity). + */ + // @ts-ignore + public getSoTimeout(): number; + /** + * Sets the SO_SNDBUF option to the specified value for this + * {@code DatagramSocket}. The SO_SNDBUF option is used by the + * network implementation as a hint to size the underlying + * network I/O buffers. The SO_SNDBUF setting may also be used + * by the network implementation to determine the maximum size + * of the packet that can be sent on this socket. + *

+ * As SO_SNDBUF is a hint, applications that want to verify + * what size the buffer is should call {@link #getSendBufferSize()}. + *

+ * Increasing the buffer size may allow multiple outgoing packets + * to be queued by the network implementation when the send rate + * is high. + *

+ * Note: If {@link #send(DatagramPacket)} is used to send a + * {@code DatagramPacket} that is larger than the setting + * of SO_SNDBUF then it is implementation specific if the + * packet is sent or discarded. + */ + // @ts-ignore + public setSendBufferSize(size: number): void; + /** + * Get value of the SO_SNDBUF option for this {@code DatagramSocket}, that is the + * buffer size used by the platform for output on this {@code DatagramSocket}. + */ + // @ts-ignore + public getSendBufferSize(): number; + /** + * Sets the SO_RCVBUF option to the specified value for this + * {@code DatagramSocket}. The SO_RCVBUF option is used by the + * the network implementation as a hint to size the underlying + * network I/O buffers. The SO_RCVBUF setting may also be used + * by the network implementation to determine the maximum size + * of the packet that can be received on this socket. + *

+ * Because SO_RCVBUF is a hint, applications that want to + * verify what size the buffers were set to should call + * {@link #getReceiveBufferSize()}. + *

+ * Increasing SO_RCVBUF may allow the network implementation + * to buffer multiple packets when packets arrive faster than + * are being received using {@link #receive(DatagramPacket)}. + *

+ * Note: It is implementation specific if a packet larger + * than SO_RCVBUF can be received. + */ + // @ts-ignore + public setReceiveBufferSize(size: number): void; + /** + * Get value of the SO_RCVBUF option for this {@code DatagramSocket}, that is the + * buffer size used by the platform for input on this {@code DatagramSocket}. + */ + // @ts-ignore + public getReceiveBufferSize(): number; + /** + * Enable/disable the SO_REUSEADDR socket option. + *

+ * For UDP sockets it may be necessary to bind more than one + * socket to the same socket address. This is typically for the + * purpose of receiving multicast packets + * (See {@link java.net.MulticastSocket}). The + * {@code SO_REUSEADDR} socket option allows multiple + * sockets to be bound to the same socket address if the + * {@code SO_REUSEADDR} socket option is enabled prior + * to binding the socket using {@link #bind(SocketAddress)}. + *

+ * Note: This functionality is not supported by all existing platforms, + * so it is implementation specific whether this option will be ignored + * or not. However, if it is not supported then + * {@link #getReuseAddress()} will always return {@code false}. + *

+ * When a {@code DatagramSocket} is created the initial setting + * of {@code SO_REUSEADDR} is disabled. + *

+ * The behaviour when {@code SO_REUSEADDR} is enabled or + * disabled after a socket is bound (See {@link #isBound()}) + * is not defined. + */ + // @ts-ignore + public setReuseAddress(on: boolean): void; + /** + * Tests if SO_REUSEADDR is enabled. + */ + // @ts-ignore + public getReuseAddress(): boolean; + /** + * Enable/disable SO_BROADCAST. + *

Some operating systems may require that the Java virtual machine be + * started with implementation specific privileges to enable this option or + * send broadcast datagrams. + */ + // @ts-ignore + public setBroadcast(on: boolean): void; + /** + * Tests if SO_BROADCAST is enabled. + */ + // @ts-ignore + public getBroadcast(): boolean; + /** + * Sets traffic class or type-of-service octet in the IP + * datagram header for datagrams sent from this DatagramSocket. + * As the underlying network implementation may ignore this + * value applications should consider it a hint. + *

The tc must be in the range {@code 0 <= tc <= + * 255} or an IllegalArgumentException will be thrown. + *

Notes: + *

For Internet Protocol v4 the value consists of an + * {@code integer}, the least significant 8 bits of which + * represent the value of the TOS octet in IP packets sent by + * the socket. + * RFC 1349 defines the TOS values as follows: + *

    + *
  • IPTOS_LOWCOST (0x02)
  • + *
  • IPTOS_RELIABILITY (0x04)
  • + *
  • IPTOS_THROUGHPUT (0x08)
  • + *
  • IPTOS_LOWDELAY (0x10)
  • + *
+ * The last low order bit is always ignored as this + * corresponds to the MBZ (must be zero) bit. + *

+ * Setting bits in the precedence field may result in a + * SocketException indicating that the operation is not + * permitted. + *

+ * for Internet Protocol v6 {@code tc} is the value that + * would be placed into the sin6_flowinfo field of the IP header. + */ + // @ts-ignore + public setTrafficClass(tc: number): void; + /** + * Gets traffic class or type-of-service in the IP datagram + * header for packets sent from this DatagramSocket. + *

+ * As the underlying network implementation may ignore the + * traffic class or type-of-service set using {@link #setTrafficClass(int)} + * this method may return a different value than was previously + * set using the {@link #setTrafficClass(int)} method on this + * DatagramSocket. + */ + // @ts-ignore + public getTrafficClass(): number; + /** + * Closes this datagram socket. + *

+ * Any thread currently blocked in {@link #receive} upon this socket + * will throw a {@link SocketException}. + *

If this socket has an associated channel then the channel is closed + * as well. + */ + // @ts-ignore + public close(): void; + /** + * Returns whether the socket is closed or not. + */ + // @ts-ignore + public isClosed(): boolean; + /** + * Returns the unique {@link java.nio.channels.DatagramChannel} object + * associated with this datagram socket, if any. + *

A datagram socket will have a channel if, and only if, the channel + * itself was created via the {@link java.nio.channels.DatagramChannel#open + * DatagramChannel.open} method. + */ + // @ts-ignore + public getChannel(): java.nio.channels.DatagramChannel; + /** + * Sets the datagram socket implementation factory for the + * application. The factory can be specified only once. + *

+ * When an application creates a new datagram socket, the socket + * implementation factory's {@code createDatagramSocketImpl} method is + * called to create the actual datagram socket implementation. + *

+ * Passing {@code null} to the method is a no-op unless the factory + * was already set. + *

If there is a security manager, this method first calls + * the security manager's {@code checkSetFactory} method + * to ensure the operation is allowed. + * This could result in a SecurityException. + */ + // @ts-ignore + public static setDatagramSocketImplFactory(fac: java.net.DatagramSocketImplFactory): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.DatagramSocketImpl.d.ts b/packages/types/dist/typings/jdk/java.net.DatagramSocketImpl.d.ts new file mode 100644 index 00000000..ab7ab5a7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.DatagramSocketImpl.d.ts @@ -0,0 +1,122 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + abstract class DatagramSocketImpl extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + protected localPort: number; + // @ts-ignore + protected fd: java.io.FileDescriptor; + /** + * Creates a datagram socket. + */ + // @ts-ignore + protected abstract create(): void; + /** + * Binds a datagram socket to a local port and address. + */ + // @ts-ignore + protected abstract bind(lport: number, laddr: java.net.InetAddress): void; + /** + * Sends a datagram packet. The packet contains the data and the + * destination address to send the packet to. + */ + // @ts-ignore + protected abstract send(p: java.net.DatagramPacket): void; + /** + * Connects a datagram socket to a remote destination. This associates the remote + * address with the local socket so that datagrams may only be sent to this destination + * and received from this destination. This may be overridden to call a native + * system connect. + *

If the remote destination to which the socket is connected does not + * exist, or is otherwise unreachable, and if an ICMP destination unreachable + * packet has been received for that address, then a subsequent call to + * send or receive may throw a PortUnreachableException. + * Note, there is no guarantee that the exception will be thrown. + */ + // @ts-ignore + protected connect(address: java.net.InetAddress, port: number): void; + /** + * Disconnects a datagram socket from its remote destination. + */ + // @ts-ignore + protected disconnect(): void; + /** + * Peek at the packet to see who it is from. Updates the specified {@code InetAddress} + * to the address which the packet came from. + */ + // @ts-ignore + protected abstract peek(i: java.net.InetAddress): number; + /** + * Peek at the packet to see who it is from. The data is copied into the specified + * {@code DatagramPacket}. The data is returned, + * but not consumed, so that a subsequent peekData/receive operation + * will see the same data. + */ + // @ts-ignore + protected abstract peekData(p: java.net.DatagramPacket): number; + /** + * Receive the datagram packet. + */ + // @ts-ignore + protected abstract receive(p: java.net.DatagramPacket): void; + /** + * Set the TTL (time-to-live) option. + */ + // @ts-ignore + protected abstract setTTL(ttl: number): void; + /** + * Retrieve the TTL (time-to-live) option. + */ + // @ts-ignore + protected abstract getTTL(): number; + /** + * Set the TTL (time-to-live) option. + */ + // @ts-ignore + protected abstract setTimeToLive(ttl: number): void; + /** + * Retrieve the TTL (time-to-live) option. + */ + // @ts-ignore + protected abstract getTimeToLive(): number; + /** + * Join the multicast group. + */ + // @ts-ignore + protected abstract join(inetaddr: java.net.InetAddress): void; + /** + * Leave the multicast group. + */ + // @ts-ignore + protected abstract leave(inetaddr: java.net.InetAddress): void; + /** + * Join the multicast group. + */ + // @ts-ignore + protected abstract joinGroup(mcastaddr: java.net.SocketAddress, netIf: java.net.NetworkInterface): void; + /** + * Leave the multicast group. + */ + // @ts-ignore + protected abstract leaveGroup(mcastaddr: java.net.SocketAddress, netIf: java.net.NetworkInterface): void; + /** + * Close the socket. + */ + // @ts-ignore + protected abstract close(): void; + /** + * Gets the local port. + */ + // @ts-ignore + protected getLocalPort(): number; + /** + * Gets the datagram socket file descriptor. + */ + // @ts-ignore + protected getFileDescriptor(): java.io.FileDescriptor; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.DatagramSocketImplFactory.d.ts b/packages/types/dist/typings/jdk/java.net.DatagramSocketImplFactory.d.ts new file mode 100644 index 00000000..0f725256 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.DatagramSocketImplFactory.d.ts @@ -0,0 +1,13 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + interface DatagramSocketImplFactory { + /** + * Creates a new {@code DatagramSocketImpl} instance. + */ + // @ts-ignore + createDatagramSocketImpl(): java.net.DatagramSocketImpl; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.FileNameMap.d.ts b/packages/types/dist/typings/jdk/java.net.FileNameMap.d.ts new file mode 100644 index 00000000..d6c78e03 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.FileNameMap.d.ts @@ -0,0 +1,13 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + interface FileNameMap { + /** + * Gets the MIME type for the specified file name. + */ + // @ts-ignore + getContentTypeFor(fileName: string): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.HttpCookie.d.ts b/packages/types/dist/typings/jdk/java.net.HttpCookie.d.ts new file mode 100644 index 00000000..4fbfe96c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.HttpCookie.d.ts @@ -0,0 +1,276 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class HttpCookie extends java.lang.Object { + /** + * Constructs a cookie with a specified name and value. + *

The name must conform to RFC 2965. That means it can contain + * only ASCII alphanumeric characters and cannot contain commas, + * semicolons, or white space or begin with a $ character. The cookie's + * name cannot be changed after creation. + *

The value can be anything the server chooses to send. Its + * value is probably of interest only to the server. The cookie's + * value can be changed after creation with the + * {@code setValue} method. + *

By default, cookies are created according to the RFC 2965 + * cookie specification. The version can be changed with the + * {@code setVersion} method. + */ + // @ts-ignore + constructor(name: string, value: string) + /** + * Constructs cookies from set-cookie or set-cookie2 header string. + * RFC 2965 section 3.2.2 set-cookie2 syntax indicates that one header line + * may contain more than one cookie definitions, so this is a static + * utility method instead of another constructor. + */ + // @ts-ignore + public static parse(header: string): java.util.List; + /** + * Reports whether this HTTP cookie has expired or not. + */ + // @ts-ignore + public hasExpired(): boolean; + /** + * Specifies a comment that describes a cookie's purpose. + * The comment is useful if the browser presents the cookie + * to the user. Comments are not supported by Netscape Version 0 cookies. + */ + // @ts-ignore + public setComment(purpose: string): void; + /** + * Returns the comment describing the purpose of this cookie, or + * {@code null} if the cookie has no comment. + */ + // @ts-ignore + public getComment(): string; + /** + * Specifies a comment URL that describes a cookie's purpose. + * The comment URL is useful if the browser presents the cookie + * to the user. Comment URL is RFC 2965 only. + */ + // @ts-ignore + public setCommentURL(purpose: string): void; + /** + * Returns the comment URL describing the purpose of this cookie, or + * {@code null} if the cookie has no comment URL. + */ + // @ts-ignore + public getCommentURL(): string; + /** + * Specify whether user agent should discard the cookie unconditionally. + * This is RFC 2965 only attribute. + */ + // @ts-ignore + public setDiscard(discard: boolean): void; + /** + * Returns the discard attribute of the cookie + */ + // @ts-ignore + public getDiscard(): boolean; + /** + * Specify the portlist of the cookie, which restricts the port(s) + * to which a cookie may be sent back in a Cookie header. + */ + // @ts-ignore + public setPortlist(ports: string): void; + /** + * Returns the port list attribute of the cookie + */ + // @ts-ignore + public getPortlist(): string; + /** + * Specifies the domain within which this cookie should be presented. + *

The form of the domain name is specified by RFC 2965. A domain + * name begins with a dot ({@code .foo.com}) and means that + * the cookie is visible to servers in a specified Domain Name System + * (DNS) zone (for example, {@code www.foo.com}, but not + * {@code a.b.foo.com}). By default, cookies are only returned + * to the server that sent them. + */ + // @ts-ignore + public setDomain(pattern: string): void; + /** + * Returns the domain name set for this cookie. The form of the domain name + * is set by RFC 2965. + */ + // @ts-ignore + public getDomain(): string; + /** + * Sets the maximum age of the cookie in seconds. + *

A positive value indicates that the cookie will expire + * after that many seconds have passed. Note that the value is + * the maximum age when the cookie will expire, not the cookie's + * current age. + *

A negative value means that the cookie is not stored persistently + * and will be deleted when the Web browser exits. A zero value causes the + * cookie to be deleted. + */ + // @ts-ignore + public setMaxAge(expiry: number): void; + /** + * Returns the maximum age of the cookie, specified in seconds. By default, + * {@code -1} indicating the cookie will persist until browser shutdown. + */ + // @ts-ignore + public getMaxAge(): number; + /** + * Specifies a path for the cookie to which the client should return + * the cookie. + *

The cookie is visible to all the pages in the directory + * you specify, and all the pages in that directory's subdirectories. + * A cookie's path must include the servlet that set the cookie, + * for example, /catalog, which makes the cookie + * visible to all directories on the server under /catalog. + *

Consult RFC 2965 (available on the Internet) for more + * information on setting path names for cookies. + */ + // @ts-ignore + public setPath(uri: string): void; + /** + * Returns the path on the server to which the browser returns this cookie. + * The cookie is visible to all subpaths on the server. + */ + // @ts-ignore + public getPath(): string; + /** + * Indicates whether the cookie should only be sent using a secure protocol, + * such as HTTPS or SSL. + *

The default value is {@code false}. + */ + // @ts-ignore + public setSecure(flag: boolean): void; + /** + * Returns {@code true} if sending this cookie should be restricted to a + * secure protocol, or {@code false} if the it can be sent using any + * protocol. + */ + // @ts-ignore + public getSecure(): boolean; + /** + * Returns the name of the cookie. The name cannot be changed after + * creation. + */ + // @ts-ignore + public getName(): string; + /** + * Assigns a new value to a cookie after the cookie is created. + * If you use a binary value, you may want to use BASE64 encoding. + *

With Version 0 cookies, values should not contain white space, + * brackets, parentheses, equals signs, commas, double quotes, slashes, + * question marks, at signs, colons, and semicolons. Empty values may not + * behave the same way on all browsers. + */ + // @ts-ignore + public setValue(newValue: string): void; + /** + * Returns the value of the cookie. + */ + // @ts-ignore + public getValue(): string; + /** + * Returns the version of the protocol this cookie complies with. Version 1 + * complies with RFC 2965/2109, and version 0 complies with the original + * cookie specification drafted by Netscape. Cookies provided by a browser + * use and identify the browser's cookie version. + */ + // @ts-ignore + public getVersion(): number; + /** + * Sets the version of the cookie protocol this cookie complies + * with. Version 0 complies with the original Netscape cookie + * specification. Version 1 complies with RFC 2965/2109. + */ + // @ts-ignore + public setVersion(v: number): void; + /** + * Returns {@code true} if this cookie contains the HttpOnly + * attribute. This means that the cookie should not be accessible to + * scripting engines, like javascript. + */ + // @ts-ignore + public isHttpOnly(): boolean; + /** + * Indicates whether the cookie should be considered HTTP Only. If set to + * {@code true} it means the cookie should not be accessible to scripting + * engines like javascript. + */ + // @ts-ignore + public setHttpOnly(httpOnly: boolean): void; + /** + * The utility method to check whether a host name is in a domain or not. + *

This concept is described in the cookie specification. + * To understand the concept, some terminologies need to be defined first: + *

+ * effective host name = hostname if host name contains dot
+ *              + *      or = hostname.local if not + *
+ *

Host A's name domain-matches host B's if: + *

    + *
  • their host name strings string-compare equal; or
  • + *
  • A is a HDN string and has the form NB, where N is a non-empty + * name string, B has the form .B', and B' is a HDN string. (So, + * x.y.com domain-matches .Y.com but not Y.com.)
  • + *
+ *

A host isn't in a domain (RFC 2965 sec. 3.3.2) if: + *

    + *
  • The value for the Domain attribute contains no embedded dots, + * and the value is not .local.
  • + *
  • The effective host name that derives from the request-host does + * not domain-match the Domain attribute.
  • + *
  • The request-host is a HDN (not IP address) and has the form HD, + * where D is the value of the Domain attribute, and H is a string + * that contains one or more dots.
  • + *
+ *

Examples: + *

    + *
  • A Set-Cookie2 from request-host y.x.foo.com for Domain=.foo.com + * would be rejected, because H is y.x and contains a dot.
  • + *
  • A Set-Cookie2 from request-host x.foo.com for Domain=.foo.com + * would be accepted.
  • + *
  • A Set-Cookie2 with Domain=.com or Domain=.com., will always be + * rejected, because there is no embedded dot.
  • + *
  • A Set-Cookie2 from request-host example for Domain=.local will + * be accepted, because the effective host name for the request- + * host is example.local, and example.local domain-matches .local.
  • + *
+ */ + // @ts-ignore + public static domainMatches(domain: string, host: string): boolean; + /** + * Constructs a cookie header string representation of this cookie, + * which is in the format defined by corresponding cookie specification, + * but without the leading "Cookie:" token. + */ + // @ts-ignore + public toString(): string; + /** + * Test the equality of two HTTP cookies. + *

The result is {@code true} only if two cookies come from same domain + * (case-insensitive), have same name (case-insensitive), and have same path + * (case-sensitive). + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns the hash code of this HTTP cookie. The result is the sum of + * hash code value of three significant components of this cookie: name, + * domain, and path. That is, the hash code is the value of the expression: + *

+ * getName().toLowerCase().hashCode()
+ * + getDomain().toLowerCase().hashCode()
+ * + getPath().hashCode() + *
+ */ + // @ts-ignore + public hashCode(): number; + /** + * Create and return a copy of this object. + */ + // @ts-ignore + public clone(): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.HttpRetryException.d.ts b/packages/types/dist/typings/jdk/java.net.HttpRetryException.d.ts new file mode 100644 index 00000000..a7d8ed5c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.HttpRetryException.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class HttpRetryException extends java.io.IOException { + /** + * Constructs a new {@code HttpRetryException} from the + * specified response code and exception detail message + */ + // @ts-ignore + constructor(detail: string, code: number) + /** + * Constructs a new {@code HttpRetryException} with detail message + * responseCode and the contents of the Location response header field. + */ + // @ts-ignore + constructor(detail: string, code: number, location: string) + /** + * Returns the http response code + */ + // @ts-ignore + public responseCode(): number; + /** + * Returns a string explaining why the http request could + * not be retried. + */ + // @ts-ignore + public getReason(): string; + /** + * Returns the value of the Location header field if the + * error resulted from redirection. + */ + // @ts-ignore + public getLocation(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.HttpURLConnection.d.ts b/packages/types/dist/typings/jdk/java.net.HttpURLConnection.d.ts new file mode 100644 index 00000000..85615e78 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.HttpURLConnection.d.ts @@ -0,0 +1,295 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + abstract class HttpURLConnection extends java.net.URLConnection { + /** + * Constructor for the HttpURLConnection. + */ + // @ts-ignore + constructor(u: java.net.URL) + // @ts-ignore + protected method: string; + // @ts-ignore + protected chunkLength: number; + // @ts-ignore + protected fixedContentLength: number; + // @ts-ignore + protected fixedContentLengthLong: number; + // @ts-ignore + protected responseCode: number; + // @ts-ignore + protected responseMessage: string; + // @ts-ignore + protected instanceFollowRedirects: boolean; + // @ts-ignore + public static HTTP_OK: number; + // @ts-ignore + public static HTTP_CREATED: number; + // @ts-ignore + public static HTTP_ACCEPTED: number; + // @ts-ignore + public static HTTP_NOT_AUTHORITATIVE: number; + // @ts-ignore + public static HTTP_NO_CONTENT: number; + // @ts-ignore + public static HTTP_RESET: number; + // @ts-ignore + public static HTTP_PARTIAL: number; + // @ts-ignore + public static HTTP_MULT_CHOICE: number; + // @ts-ignore + public static HTTP_MOVED_PERM: number; + // @ts-ignore + public static HTTP_MOVED_TEMP: number; + // @ts-ignore + public static HTTP_SEE_OTHER: number; + // @ts-ignore + public static HTTP_NOT_MODIFIED: number; + // @ts-ignore + public static HTTP_USE_PROXY: number; + // @ts-ignore + public static HTTP_BAD_REQUEST: number; + // @ts-ignore + public static HTTP_UNAUTHORIZED: number; + // @ts-ignore + public static HTTP_PAYMENT_REQUIRED: number; + // @ts-ignore + public static HTTP_FORBIDDEN: number; + // @ts-ignore + public static HTTP_NOT_FOUND: number; + // @ts-ignore + public static HTTP_BAD_METHOD: number; + // @ts-ignore + public static HTTP_NOT_ACCEPTABLE: number; + // @ts-ignore + public static HTTP_PROXY_AUTH: number; + // @ts-ignore + public static HTTP_CLIENT_TIMEOUT: number; + // @ts-ignore + public static HTTP_CONFLICT: number; + // @ts-ignore + public static HTTP_GONE: number; + // @ts-ignore + public static HTTP_LENGTH_REQUIRED: number; + // @ts-ignore + public static HTTP_PRECON_FAILED: number; + // @ts-ignore + public static HTTP_ENTITY_TOO_LARGE: number; + // @ts-ignore + public static HTTP_REQ_TOO_LONG: number; + // @ts-ignore + public static HTTP_UNSUPPORTED_TYPE: number; + // @ts-ignore + public static HTTP_SERVER_ERROR: number; + // @ts-ignore + public static HTTP_INTERNAL_ERROR: number; + // @ts-ignore + public static HTTP_NOT_IMPLEMENTED: number; + // @ts-ignore + public static HTTP_BAD_GATEWAY: number; + // @ts-ignore + public static HTTP_UNAVAILABLE: number; + // @ts-ignore + public static HTTP_GATEWAY_TIMEOUT: number; + // @ts-ignore + public static HTTP_VERSION: number; + /** + * Returns the key for the {@code n}th header field. + * Some implementations may treat the {@code 0}th + * header field as special, i.e. as the status line returned by the HTTP + * server. In this case, {@link #getHeaderField(int) getHeaderField(0)} returns the status + * line, but {@code getHeaderFieldKey(0)} returns null. + */ + // @ts-ignore + public getHeaderFieldKey(n: number): string; + /** + * This method is used to enable streaming of a HTTP request body + * without internal buffering, when the content length is known in + * advance. + *

+ * An exception will be thrown if the application + * attempts to write more data than the indicated + * content-length, or if the application closes the OutputStream + * before writing the indicated amount. + *

+ * When output streaming is enabled, authentication + * and redirection cannot be handled automatically. + * A HttpRetryException will be thrown when reading + * the response if authentication or redirection are required. + * This exception can be queried for the details of the error. + *

+ * This method must be called before the URLConnection is connected. + *

+ * NOTE: {@link #setFixedLengthStreamingMode(long)} is recommended + * instead of this method as it allows larger content lengths to be set. + */ + // @ts-ignore + public setFixedLengthStreamingMode(contentLength: number): void; + /** + * This method is used to enable streaming of a HTTP request body + * without internal buffering, when the content length is known in + * advance. + *

An exception will be thrown if the application attempts to write + * more data than the indicated content-length, or if the application + * closes the OutputStream before writing the indicated amount. + *

When output streaming is enabled, authentication and redirection + * cannot be handled automatically. A {@linkplain HttpRetryException} will + * be thrown when reading the response if authentication or redirection + * are required. This exception can be queried for the details of the + * error. + *

This method must be called before the URLConnection is connected. + *

The content length set by invoking this method takes precedence + * over any value set by {@link #setFixedLengthStreamingMode(int)}. + */ + // @ts-ignore + public setFixedLengthStreamingMode(contentLength: number): void; + /** + * This method is used to enable streaming of a HTTP request body + * without internal buffering, when the content length is not + * known in advance. In this mode, chunked transfer encoding + * is used to send the request body. Note, not all HTTP servers + * support this mode. + *

+ * When output streaming is enabled, authentication + * and redirection cannot be handled automatically. + * A HttpRetryException will be thrown when reading + * the response if authentication or redirection are required. + * This exception can be queried for the details of the error. + *

+ * This method must be called before the URLConnection is connected. + */ + // @ts-ignore + public setChunkedStreamingMode(chunklen: number): void; + /** + * Returns the value for the {@code n}th header field. + * Some implementations may treat the {@code 0}th + * header field as special, i.e. as the status line returned by the HTTP + * server. + *

+ * This method can be used in conjunction with the + * {@link #getHeaderFieldKey getHeaderFieldKey} method to iterate through all + * the headers in the message. + */ + // @ts-ignore + public getHeaderField(n: number): string; + /** + * Sets whether HTTP redirects (requests with response code 3xx) should + * be automatically followed by this class. True by default. Applets + * cannot change this variable. + *

+ * If there is a security manager, this method first calls + * the security manager's {@code checkSetFactory} method + * to ensure the operation is allowed. + * This could result in a SecurityException. + */ + // @ts-ignore + public static setFollowRedirects(set: boolean): void; + /** + * Returns a {@code boolean} indicating + * whether or not HTTP redirects (3xx) should + * be automatically followed. + */ + // @ts-ignore + public static getFollowRedirects(): boolean; + /** + * Sets whether HTTP redirects (requests with response code 3xx) should + * be automatically followed by this {@code HttpURLConnection} + * instance. + *

+ * The default value comes from followRedirects, which defaults to + * true. + */ + // @ts-ignore + public setInstanceFollowRedirects(followRedirects: boolean): void; + /** + * Returns the value of this {@code HttpURLConnection}'s + * {@code instanceFollowRedirects} field. + */ + // @ts-ignore + public getInstanceFollowRedirects(): boolean; + /** + * Set the method for the URL request, one of: + *

    + *
  • GET + *
  • POST + *
  • HEAD + *
  • OPTIONS + *
  • PUT + *
  • DELETE + *
  • TRACE + *
are legal, subject to protocol restrictions. The default + * method is GET. + */ + // @ts-ignore + public setRequestMethod(method: string): void; + /** + * Get the request method. + */ + // @ts-ignore + public getRequestMethod(): string; + /** + * Gets the status code from an HTTP response message. + * For example, in the case of the following status lines: + *
+             * HTTP/1.0 200 OK
+             * HTTP/1.0 401 Unauthorized
+             * 
+ * It will return 200 and 401 respectively. + * Returns -1 if no code can be discerned + * from the response (i.e., the response is not valid HTTP). + */ + // @ts-ignore + public getResponseCode(): number; + /** + * Gets the HTTP response message, if any, returned along with the + * response code from a server. From responses like: + *
+             * HTTP/1.0 200 OK
+             * HTTP/1.0 404 Not Found
+             * 
+ * Extracts the Strings "OK" and "Not Found" respectively. + * Returns null if none could be discerned from the responses + * (the result was not valid HTTP). + */ + // @ts-ignore + public getResponseMessage(): string; + // @ts-ignore + public getHeaderFieldDate(name: string, Default: number): number; + /** + * Indicates that other requests to the server + * are unlikely in the near future. Calling disconnect() + * should not imply that this HttpURLConnection + * instance can be reused for other requests. + */ + // @ts-ignore + public abstract disconnect(): void; + /** + * Indicates if the connection is going through a proxy. + */ + // @ts-ignore + public abstract usingProxy(): boolean; + /** + * Returns a {@link SocketPermission} object representing the + * permission necessary to connect to the destination host and port. + */ + // @ts-ignore + public getPermission(): java.security.Permission; + /** + * Returns the error stream if the connection failed + * but the server sent useful data nonetheless. The + * typical example is when an HTTP server responds + * with a 404, which will cause a FileNotFoundException + * to be thrown in connect, but the server sent an HTML + * help page with suggestions as to what to do. + *

This method will not cause a connection to be initiated. If + * the connection was not connected, or if the server did not have + * an error while connecting or if the server had an error but + * no error data was sent, this method will return null. This is + * the default. + */ + // @ts-ignore + public getErrorStream(): java.io.InputStream; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.IDN.d.ts b/packages/types/dist/typings/jdk/java.net.IDN.d.ts new file mode 100644 index 00000000..542ea39b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.IDN.d.ts @@ -0,0 +1,64 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class IDN extends java.lang.Object { + // @ts-ignore + public static ALLOW_UNASSIGNED: number; + // @ts-ignore + public static USE_STD3_ASCII_RULES: number; + /** + * Translates a string from Unicode to ASCII Compatible Encoding (ACE), + * as defined by the ToASCII operation of RFC 3490. + *

ToASCII operation can fail. ToASCII fails if any step of it fails. + * If ToASCII operation fails, an IllegalArgumentException will be thrown. + * In this case, the input string should not be used in an internationalized domain name. + *

A label is an individual part of a domain name. The original ToASCII operation, + * as defined in RFC 3490, only operates on a single label. This method can handle + * both label and entire domain name, by assuming that labels in a domain name are + * always separated by dots. The following characters are recognized as dots: + * \u002E (full stop), \u3002 (ideographic full stop), \uFF0E (fullwidth full stop), + * and \uFF61 (halfwidth ideographic full stop). if dots are + * used as label separators, this method also changes all of them to \u002E (full stop) + * in output translated string. + */ + // @ts-ignore + public static toASCII(input: string, flag: number): string; + /** + * Translates a string from Unicode to ASCII Compatible Encoding (ACE), + * as defined by the ToASCII operation of RFC 3490. + *

This convenience method works as if by invoking the + * two-argument counterpart as follows: + *

+ * {@link #toASCII(String, int) toASCII}(input, 0); + *
+ */ + // @ts-ignore + public static toASCII(input: string): string; + /** + * Translates a string from ASCII Compatible Encoding (ACE) to Unicode, + * as defined by the ToUnicode operation of RFC 3490. + *

ToUnicode never fails. In case of any error, the input string is returned unmodified. + *

A label is an individual part of a domain name. The original ToUnicode operation, + * as defined in RFC 3490, only operates on a single label. This method can handle + * both label and entire domain name, by assuming that labels in a domain name are + * always separated by dots. The following characters are recognized as dots: + * \u002E (full stop), \u3002 (ideographic full stop), \uFF0E (fullwidth full stop), + * and \uFF61 (halfwidth ideographic full stop). + */ + // @ts-ignore + public static toUnicode(input: string, flag: number): string; + /** + * Translates a string from ASCII Compatible Encoding (ACE) to Unicode, + * as defined by the ToUnicode operation of RFC 3490. + *

This convenience method works as if by invoking the + * two-argument counterpart as follows: + *

+ * {@link #toUnicode(String, int) toUnicode}(input, 0); + *
+ */ + // @ts-ignore + public static toUnicode(input: string): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.Inet4Address.d.ts b/packages/types/dist/typings/jdk/java.net.Inet4Address.d.ts new file mode 100644 index 00000000..e59c0ad1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.Inet4Address.d.ts @@ -0,0 +1,90 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class Inet4Address extends java.net.InetAddress { + /** + * Utility routine to check if the InetAddress is an + * IP multicast address. IP multicast address is a Class D + * address i.e first four bits of the address are 1110. + */ + // @ts-ignore + public isMulticastAddress(): boolean; + /** + * Utility routine to check if the InetAddress in a wildcard address. + */ + // @ts-ignore + public isAnyLocalAddress(): boolean; + /** + * Utility routine to check if the InetAddress is a loopback address. + */ + // @ts-ignore + public isLoopbackAddress(): boolean; + /** + * Utility routine to check if the InetAddress is an link local address. + */ + // @ts-ignore + public isLinkLocalAddress(): boolean; + /** + * Utility routine to check if the InetAddress is a site local address. + */ + // @ts-ignore + public isSiteLocalAddress(): boolean; + /** + * Utility routine to check if the multicast address has global scope. + */ + // @ts-ignore + public isMCGlobal(): boolean; + /** + * Utility routine to check if the multicast address has node scope. + */ + // @ts-ignore + public isMCNodeLocal(): boolean; + /** + * Utility routine to check if the multicast address has link scope. + */ + // @ts-ignore + public isMCLinkLocal(): boolean; + /** + * Utility routine to check if the multicast address has site scope. + */ + // @ts-ignore + public isMCSiteLocal(): boolean; + /** + * Utility routine to check if the multicast address has organization scope. + */ + // @ts-ignore + public isMCOrgLocal(): boolean; + /** + * Returns the raw IP address of this {@code InetAddress} + * object. The result is in network byte order: the highest order + * byte of the address is in {@code getAddress()[0]}. + */ + // @ts-ignore + public getAddress(): number[]; + /** + * Returns the IP address string in textual presentation form. + */ + // @ts-ignore + public getHostAddress(): string; + /** + * Returns a hashcode for this IP address. + */ + // @ts-ignore + public hashCode(): number; + /** + * Compares this object against the specified object. + * The result is {@code true} if and only if the argument is + * not {@code null} and it represents the same IP address as + * this object. + *

+ * Two instances of {@code InetAddress} represent the same IP + * address if the length of the byte arrays returned by + * {@code getAddress} is the same for both, and each of the + * array components is the same for the byte arrays. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.Inet6Address.d.ts b/packages/types/dist/typings/jdk/java.net.Inet6Address.d.ts new file mode 100644 index 00000000..8453ed73 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.Inet6Address.d.ts @@ -0,0 +1,132 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class Inet6Address extends java.net.InetAddress { + /** + * Create an Inet6Address in the exact manner of {@link + * InetAddress#getByAddress(String,byte[])} except that the IPv6 scope_id is + * set to the value corresponding to the given interface for the address + * type specified in {@code addr}. The call will fail with an + * UnknownHostException if the given interface does not have a numeric + * scope_id assigned for the given address type (eg. link-local or site-local). + * See here for a description of IPv6 + * scoped addresses. + */ + // @ts-ignore + public static getByAddress(host: string, addr: number, nif: java.net.NetworkInterface): java.net.Inet6Address; + /** + * Create an Inet6Address in the exact manner of {@link + * InetAddress#getByAddress(String,byte[])} except that the IPv6 scope_id is + * set to the given numeric value. The scope_id is not checked to determine + * if it corresponds to any interface on the system. + * See here for a description of IPv6 + * scoped addresses. + */ + // @ts-ignore + public static getByAddress(host: string, addr: number, scope_id: number): java.net.Inet6Address; + /** + * Utility routine to check if the InetAddress is an IP multicast + * address. 11111111 at the start of the address identifies the + * address as being a multicast address. + */ + // @ts-ignore + public isMulticastAddress(): boolean; + /** + * Utility routine to check if the InetAddress in a wildcard address. + */ + // @ts-ignore + public isAnyLocalAddress(): boolean; + /** + * Utility routine to check if the InetAddress is a loopback address. + */ + // @ts-ignore + public isLoopbackAddress(): boolean; + /** + * Utility routine to check if the InetAddress is an link local address. + */ + // @ts-ignore + public isLinkLocalAddress(): boolean; + /** + * Utility routine to check if the InetAddress is a site local address. + */ + // @ts-ignore + public isSiteLocalAddress(): boolean; + /** + * Utility routine to check if the multicast address has global scope. + */ + // @ts-ignore + public isMCGlobal(): boolean; + /** + * Utility routine to check if the multicast address has node scope. + */ + // @ts-ignore + public isMCNodeLocal(): boolean; + /** + * Utility routine to check if the multicast address has link scope. + */ + // @ts-ignore + public isMCLinkLocal(): boolean; + /** + * Utility routine to check if the multicast address has site scope. + */ + // @ts-ignore + public isMCSiteLocal(): boolean; + /** + * Utility routine to check if the multicast address has organization scope. + */ + // @ts-ignore + public isMCOrgLocal(): boolean; + /** + * Returns the raw IP address of this {@code InetAddress} object. The result + * is in network byte order: the highest order byte of the address is in + * {@code getAddress()[0]}. + */ + // @ts-ignore + public getAddress(): number[]; + /** + * Returns the numeric scopeId, if this instance is associated with + * an interface. If no scoped_id is set, the returned value is zero. + */ + // @ts-ignore + public getScopeId(): number; + /** + * Returns the scoped interface, if this instance was created with + * with a scoped interface. + */ + // @ts-ignore + public getScopedInterface(): java.net.NetworkInterface; + /** + * Returns the IP address string in textual presentation. If the instance + * was created specifying a scope identifier then the scope id is appended + * to the IP address preceded by a "%" (per-cent) character. This can be + * either a numeric value or a string, depending on which was used to create + * the instance. + */ + // @ts-ignore + public getHostAddress(): string; + /** + * Returns a hashcode for this IP address. + */ + // @ts-ignore + public hashCode(): number; + /** + * Compares this object against the specified object. The result is {@code + * true} if and only if the argument is not {@code null} and it represents + * the same IP address as this object. + *

Two instances of {@code InetAddress} represent the same IP address + * if the length of the byte arrays returned by {@code getAddress} is the + * same for both, and each of the array components is the same for the byte + * arrays. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Utility routine to check if the InetAddress is an + * IPv4 compatible IPv6 address. + */ + // @ts-ignore + public isIPv4CompatibleAddress(): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.InetAddress.d.ts b/packages/types/dist/typings/jdk/java.net.InetAddress.d.ts new file mode 100644 index 00000000..4ea5ca47 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.InetAddress.d.ts @@ -0,0 +1,265 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class InetAddress extends java.lang.Object { + /** + * Utility routine to check if the InetAddress is an + * IP multicast address. + */ + // @ts-ignore + public isMulticastAddress(): boolean; + /** + * Utility routine to check if the InetAddress in a wildcard address. + */ + // @ts-ignore + public isAnyLocalAddress(): boolean; + /** + * Utility routine to check if the InetAddress is a loopback address. + */ + // @ts-ignore + public isLoopbackAddress(): boolean; + /** + * Utility routine to check if the InetAddress is an link local address. + */ + // @ts-ignore + public isLinkLocalAddress(): boolean; + /** + * Utility routine to check if the InetAddress is a site local address. + */ + // @ts-ignore + public isSiteLocalAddress(): boolean; + /** + * Utility routine to check if the multicast address has global scope. + */ + // @ts-ignore + public isMCGlobal(): boolean; + /** + * Utility routine to check if the multicast address has node scope. + */ + // @ts-ignore + public isMCNodeLocal(): boolean; + /** + * Utility routine to check if the multicast address has link scope. + */ + // @ts-ignore + public isMCLinkLocal(): boolean; + /** + * Utility routine to check if the multicast address has site scope. + */ + // @ts-ignore + public isMCSiteLocal(): boolean; + /** + * Utility routine to check if the multicast address has organization scope. + */ + // @ts-ignore + public isMCOrgLocal(): boolean; + /** + * Test whether that address is reachable. Best effort is made by the + * implementation to try to reach the host, but firewalls and server + * configuration may block requests resulting in a unreachable status + * while some specific ports may be accessible. + * A typical implementation will use ICMP ECHO REQUESTs if the + * privilege can be obtained, otherwise it will try to establish + * a TCP connection on port 7 (Echo) of the destination host. + *

+ * The timeout value, in milliseconds, indicates the maximum amount of time + * the try should take. If the operation times out before getting an + * answer, the host is deemed unreachable. A negative value will result + * in an IllegalArgumentException being thrown. + */ + // @ts-ignore + public isReachable(timeout: number): boolean; + /** + * Test whether that address is reachable. Best effort is made by the + * implementation to try to reach the host, but firewalls and server + * configuration may block requests resulting in a unreachable status + * while some specific ports may be accessible. + * A typical implementation will use ICMP ECHO REQUESTs if the + * privilege can be obtained, otherwise it will try to establish + * a TCP connection on port 7 (Echo) of the destination host. + *

+ * The {@code network interface} and {@code ttl} parameters + * let the caller specify which network interface the test will go through + * and the maximum number of hops the packets should go through. + * A negative value for the {@code ttl} will result in an + * IllegalArgumentException being thrown. + *

+ * The timeout value, in milliseconds, indicates the maximum amount of time + * the try should take. If the operation times out before getting an + * answer, the host is deemed unreachable. A negative value will result + * in an IllegalArgumentException being thrown. + */ + // @ts-ignore + public isReachable(netif: java.net.NetworkInterface, ttl: number, timeout: number): boolean; + /** + * Gets the host name for this IP address. + *

If this InetAddress was created with a host name, + * this host name will be remembered and returned; + * otherwise, a reverse name lookup will be performed + * and the result will be returned based on the system + * configured name lookup service. If a lookup of the name service + * is required, call + * {@link #getCanonicalHostName() getCanonicalHostName}. + *

If there is a security manager, its + * {@code checkConnect} method is first called + * with the hostname and {@code -1} + * as its arguments to see if the operation is allowed. + * If the operation is not allowed, it will return + * the textual representation of the IP address. + */ + // @ts-ignore + public getHostName(): string; + /** + * Gets the fully qualified domain name for this IP address. + * Best effort method, meaning we may not be able to return + * the FQDN depending on the underlying system configuration. + *

If there is a security manager, this method first + * calls its {@code checkConnect} method + * with the hostname and {@code -1} + * as its arguments to see if the calling code is allowed to know + * the hostname for this IP address, i.e., to connect to the host. + * If the operation is not allowed, it will return + * the textual representation of the IP address. + */ + // @ts-ignore + public getCanonicalHostName(): string; + /** + * Returns the raw IP address of this {@code InetAddress} + * object. The result is in network byte order: the highest order + * byte of the address is in {@code getAddress()[0]}. + */ + // @ts-ignore + public getAddress(): number[]; + /** + * Returns the IP address string in textual presentation. + */ + // @ts-ignore + public getHostAddress(): string; + /** + * Returns a hashcode for this IP address. + */ + // @ts-ignore + public hashCode(): number; + /** + * Compares this object against the specified object. + * The result is {@code true} if and only if the argument is + * not {@code null} and it represents the same IP address as + * this object. + *

+ * Two instances of {@code InetAddress} represent the same IP + * address if the length of the byte arrays returned by + * {@code getAddress} is the same for both, and each of the + * array components is the same for the byte arrays. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Converts this IP address to a {@code String}. The + * string returned is of the form: hostname / literal IP + * address. + * If the host name is unresolved, no reverse name service lookup + * is performed. The hostname part will be represented by an empty string. + */ + // @ts-ignore + public toString(): string; + /** + * Creates an InetAddress based on the provided host name and IP address. + * No name service is checked for the validity of the address. + *

The host name can either be a machine name, such as + * "{@code java.sun.com}", or a textual representation of its IP + * address. + *

No validity checking is done on the host name either. + *

If addr specifies an IPv4 address an instance of Inet4Address + * will be returned; otherwise, an instance of Inet6Address + * will be returned. + *

IPv4 address byte array must be 4 bytes long and IPv6 byte array + * must be 16 bytes long + */ + // @ts-ignore + public static getByAddress(host: string, addr: number): java.net.InetAddress; + /** + * Determines the IP address of a host, given the host's name. + *

The host name can either be a machine name, such as + * "{@code java.sun.com}", or a textual representation of its + * IP address. If a literal IP address is supplied, only the + * validity of the address format is checked. + *

For {@code host} specified in literal IPv6 address, + * either the form defined in RFC 2732 or the literal IPv6 address + * format defined in RFC 2373 is accepted. IPv6 scoped addresses are also + * supported. See here for a description of IPv6 + * scoped addresses. + *

If the host is {@code null} then an {@code InetAddress} + * representing an address of the loopback interface is returned. + * See RFC 3330 + * section 2 and RFC 2373 + * section 2.5.3.

+ */ + // @ts-ignore + public static getByName(host: string): java.net.InetAddress; + /** + * Given the name of a host, returns an array of its IP addresses, + * based on the configured name service on the system. + *

The host name can either be a machine name, such as + * "{@code java.sun.com}", or a textual representation of its IP + * address. If a literal IP address is supplied, only the + * validity of the address format is checked. + *

For {@code host} specified in literal IPv6 address, + * either the form defined in RFC 2732 or the literal IPv6 address + * format defined in RFC 2373 is accepted. A literal IPv6 address may + * also be qualified by appending a scoped zone identifier or scope_id. + * The syntax and usage of scope_ids is described + * here. + *

If the host is {@code null} then an {@code InetAddress} + * representing an address of the loopback interface is returned. + * See RFC 3330 + * section 2 and RFC 2373 + * section 2.5.3.

+ *

If there is a security manager and {@code host} is not + * null and {@code host.length() } is not equal to zero, the + * security manager's + * {@code checkConnect} method is called + * with the hostname and {@code -1} + * as its arguments to see if the operation is allowed. + */ + // @ts-ignore + public static getAllByName(host: string): java.net.InetAddress[]; + /** + * Returns the loopback address. + *

+ * The InetAddress returned will represent the IPv4 + * loopback address, 127.0.0.1, or the IPv6 loopback + * address, ::1. The IPv4 loopback address returned + * is only one of many in the form 127.*.*.* + */ + // @ts-ignore + public static getLoopbackAddress(): java.net.InetAddress; + /** + * Returns an {@code InetAddress} object given the raw IP address . + * The argument is in network byte order: the highest order + * byte of the address is in {@code getAddress()[0]}. + *

This method doesn't block, i.e. no reverse name service lookup + * is performed. + *

IPv4 address byte array must be 4 bytes long and IPv6 byte array + * must be 16 bytes long + */ + // @ts-ignore + public static getByAddress(addr: number): java.net.InetAddress; + /** + * Returns the address of the local host. This is achieved by retrieving + * the name of the host from the system, then resolving that name into + * an {@code InetAddress}. + *

Note: The resolved address may be cached for a short period of time. + *

+ *

If there is a security manager, its + * {@code checkConnect} method is called + * with the local host name and {@code -1} + * as its arguments to see if the operation is allowed. + * If the operation is not allowed, an InetAddress representing + * the loopback address is returned. + */ + // @ts-ignore + public static getLocalHost(): java.net.InetAddress; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.InetSocketAddress.d.ts b/packages/types/dist/typings/jdk/java.net.InetSocketAddress.d.ts new file mode 100644 index 00000000..c624668f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.InetSocketAddress.d.ts @@ -0,0 +1,119 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class InetSocketAddress extends java.net.SocketAddress { + /** + * Creates a socket address where the IP address is the wildcard address + * and the port number a specified value. + *

+ * A valid port value is between 0 and 65535. + * A port number of {@code zero} will let the system pick up an + * ephemeral port in a {@code bind} operation. + *

+ */ + // @ts-ignore + constructor(port: number) + /** + * Creates a socket address from an IP address and a port number. + *

+ * A valid port value is between 0 and 65535. + * A port number of {@code zero} will let the system pick up an + * ephemeral port in a {@code bind} operation. + *

+ * A {@code null} address will assign the wildcard address. + *

+ */ + // @ts-ignore + constructor(addr: java.net.InetAddress, port: number) + /** + * Creates a socket address from a hostname and a port number. + *

+ * An attempt will be made to resolve the hostname into an InetAddress. + * If that attempt fails, the address will be flagged as unresolved. + *

+ * If there is a security manager, its {@code checkConnect} method + * is called with the host name as its argument to check the permission + * to resolve it. This could result in a SecurityException. + *

+ * A valid port value is between 0 and 65535. + * A port number of {@code zero} will let the system pick up an + * ephemeral port in a {@code bind} operation. + *

+ */ + // @ts-ignore + constructor(hostname: string, port: number) + /** + * Creates an unresolved socket address from a hostname and a port number. + *

+ * No attempt will be made to resolve the hostname into an InetAddress. + * The address will be flagged as unresolved. + *

+ * A valid port value is between 0 and 65535. + * A port number of {@code zero} will let the system pick up an + * ephemeral port in a {@code bind} operation. + *

+ */ + // @ts-ignore + public static createUnresolved(host: string, port: number): java.net.InetSocketAddress; + /** + * Gets the port number. + */ + // @ts-ignore + public getPort(): number; + /** + * Gets the {@code InetAddress}. + */ + // @ts-ignore + public getAddress(): java.net.InetAddress; + /** + * Gets the {@code hostname}. + * Note: This method may trigger a name service reverse lookup if the + * address was created with a literal IP address. + */ + // @ts-ignore + public getHostName(): string; + /** + * Returns the hostname, or the String form of the address if it + * doesn't have a hostname (it was created using a literal). + * This has the benefit of not attempting a reverse lookup. + */ + // @ts-ignore + public getHostString(): string; + /** + * Checks whether the address has been resolved or not. + */ + // @ts-ignore + public isUnresolved(): boolean; + /** + * Constructs a string representation of this InetSocketAddress. + * This String is constructed by calling toString() on the InetAddress + * and concatenating the port number (with a colon). If the address + * is unresolved then the part before the colon will only contain the hostname. + */ + // @ts-ignore + public toString(): string; + /** + * Compares this object against the specified object. + * The result is {@code true} if and only if the argument is + * not {@code null} and it represents the same address as + * this object. + *

+ * Two instances of {@code InetSocketAddress} represent the same + * address if both the InetAddresses (or hostnames if it is unresolved) and port + * numbers are equal. + * If both addresses are unresolved, then the hostname and the port number + * are compared. + * Note: Hostnames are case insensitive. e.g. "FooBar" and "foobar" are + * considered equal. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a hashcode for this socket address. + */ + // @ts-ignore + public hashCode(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.InterfaceAddress.d.ts b/packages/types/dist/typings/jdk/java.net.InterfaceAddress.d.ts new file mode 100644 index 00000000..be43ca9d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.InterfaceAddress.d.ts @@ -0,0 +1,54 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class InterfaceAddress extends java.lang.Object { + /** + * Returns an {@code InetAddress} for this address. + */ + // @ts-ignore + public getAddress(): java.net.InetAddress; + /** + * Returns an {@code InetAddress} for the broadcast address + * for this InterfaceAddress. + *

+ * Only IPv4 networks have broadcast address therefore, in the case + * of an IPv6 network, {@code null} will be returned. + */ + // @ts-ignore + public getBroadcast(): java.net.InetAddress; + /** + * Returns the network prefix length for this address. This is also known + * as the subnet mask in the context of IPv4 addresses. + * Typical IPv4 values would be 8 (255.0.0.0), 16 (255.255.0.0) + * or 24 (255.255.255.0).

+ * Typical IPv6 values would be 128 (::1/128) or 10 (fe80::203:baff:fe27:1243/10) + */ + // @ts-ignore + public getNetworkPrefixLength(): number; + /** + * Compares this object against the specified object. + * The result is {@code true} if and only if the argument is + * not {@code null} and it represents the same interface address as + * this object. + *

+ * Two instances of {@code InterfaceAddress} represent the same + * address if the InetAddress, the prefix length and the broadcast are + * the same for both. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a hashcode for this Interface address. + */ + // @ts-ignore + public hashCode(): number; + /** + * Converts this Interface address to a {@code String}. The + * string returned is of the form: InetAddress / prefix length [ broadcast address ]. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.JarURLConnection.d.ts b/packages/types/dist/typings/jdk/java.net.JarURLConnection.d.ts new file mode 100644 index 00000000..ad0dfe83 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.JarURLConnection.d.ts @@ -0,0 +1,66 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + abstract class JarURLConnection extends java.net.URLConnection { + /** + * Creates the new JarURLConnection to the specified URL. + */ + // @ts-ignore + constructor(url: java.net.URL) + // @ts-ignore + protected jarFileURLConnection: java.net.URLConnection; + /** + * Returns the URL for the Jar file for this connection. + */ + // @ts-ignore + public getJarFileURL(): java.net.URL; + /** + * Return the entry name for this connection. This method + * returns null if the JAR file URL corresponding to this + * connection points to a JAR file and not a JAR file entry. + */ + // @ts-ignore + public getEntryName(): string; + /** + * Return the JAR file for this connection. + */ + // @ts-ignore + public abstract getJarFile(): java.util.jar.JarFile; + /** + * Returns the Manifest for this connection, or null if none. + */ + // @ts-ignore + public getManifest(): java.util.jar.Manifest; + /** + * Return the JAR entry object for this connection, if any. This + * method returns null if the JAR file URL corresponding to this + * connection points to a JAR file and not a JAR file entry. + */ + // @ts-ignore + public getJarEntry(): java.util.jar.JarEntry; + /** + * Return the Attributes object for this connection if the URL + * for it points to a JAR file entry, null otherwise. + */ + // @ts-ignore + public getAttributes(): java.util.jar.Attributes; + /** + * Returns the main Attributes for the JAR file for this + * connection. + */ + // @ts-ignore + public getMainAttributes(): java.util.jar.Attributes; + /** + * Return the Certificate object for this connection if the URL + * for it points to a JAR file entry, null otherwise. This method + * can only be called once + * the connection has been completely verified by reading + * from the input stream until the end of the stream has been + * reached. Otherwise, this method will return {@code null} + */ + // @ts-ignore + public getCertificates(): java.security.cert.Certificate[]; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.MalformedURLException.d.ts b/packages/types/dist/typings/jdk/java.net.MalformedURLException.d.ts new file mode 100644 index 00000000..eb7dd8d3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.MalformedURLException.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class MalformedURLException extends java.io.IOException { + /** + * Constructs a {@code MalformedURLException} with no detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs a {@code MalformedURLException} with the + * specified detail message. + */ + // @ts-ignore + constructor(msg: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.MulticastSocket.d.ts b/packages/types/dist/typings/jdk/java.net.MulticastSocket.d.ts new file mode 100644 index 00000000..f6eb8451 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.MulticastSocket.d.ts @@ -0,0 +1,182 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class MulticastSocket extends java.net.DatagramSocket { + /** + * Create a multicast socket. + *

If there is a security manager, + * its {@code checkListen} method is first called + * with 0 as its argument to ensure the operation is allowed. + * This could result in a SecurityException. + *

+ * When the socket is created the + * {@link DatagramSocket#setReuseAddress(boolean)} method is + * called to enable the SO_REUSEADDR socket option. + */ + // @ts-ignore + constructor() + /** + * Create a multicast socket and bind it to a specific port. + *

If there is a security manager, + * its {@code checkListen} method is first called + * with the {@code port} argument + * as its argument to ensure the operation is allowed. + * This could result in a SecurityException. + *

+ * When the socket is created the + * {@link DatagramSocket#setReuseAddress(boolean)} method is + * called to enable the SO_REUSEADDR socket option. + */ + // @ts-ignore + constructor(port: number) + /** + * Create a MulticastSocket bound to the specified socket address. + *

+ * Or, if the address is {@code null}, create an unbound socket. + *

If there is a security manager, + * its {@code checkListen} method is first called + * with the SocketAddress port as its argument to ensure the operation is allowed. + * This could result in a SecurityException. + *

+ * When the socket is created the + * {@link DatagramSocket#setReuseAddress(boolean)} method is + * called to enable the SO_REUSEADDR socket option. + */ + // @ts-ignore + constructor(bindaddr: java.net.SocketAddress) + /** + * Set the default time-to-live for multicast packets sent out + * on this {@code MulticastSocket} in order to control the + * scope of the multicasts. + *

The ttl is an unsigned 8-bit quantity, and so must be + * in the range {@code 0 <= ttl <= 0xFF }. + */ + // @ts-ignore + public setTTL(ttl: number): void; + /** + * Set the default time-to-live for multicast packets sent out + * on this {@code MulticastSocket} in order to control the + * scope of the multicasts. + *

The ttl must be in the range {@code 0 <= ttl <= + * 255} or an {@code IllegalArgumentException} will be thrown. + * Multicast packets sent with a TTL of {@code 0} are not transmitted + * on the network but may be delivered locally. + */ + // @ts-ignore + public setTimeToLive(ttl: number): void; + /** + * Get the default time-to-live for multicast packets sent out on + * the socket. + */ + // @ts-ignore + public getTTL(): number; + /** + * Get the default time-to-live for multicast packets sent out on + * the socket. + */ + // @ts-ignore + public getTimeToLive(): number; + /** + * Joins a multicast group. Its behavior may be affected by + * {@code setInterface} or {@code setNetworkInterface}. + *

If there is a security manager, this method first + * calls its {@code checkMulticast} method + * with the {@code mcastaddr} argument + * as its argument. + */ + // @ts-ignore + public joinGroup(mcastaddr: java.net.InetAddress): void; + /** + * Leave a multicast group. Its behavior may be affected by + * {@code setInterface} or {@code setNetworkInterface}. + *

If there is a security manager, this method first + * calls its {@code checkMulticast} method + * with the {@code mcastaddr} argument + * as its argument. + */ + // @ts-ignore + public leaveGroup(mcastaddr: java.net.InetAddress): void; + /** + * Joins the specified multicast group at the specified interface. + *

If there is a security manager, this method first + * calls its {@code checkMulticast} method + * with the {@code mcastaddr} argument + * as its argument. + */ + // @ts-ignore + public joinGroup(mcastaddr: java.net.SocketAddress, netIf: java.net.NetworkInterface): void; + /** + * Leave a multicast group on a specified local interface. + *

If there is a security manager, this method first + * calls its {@code checkMulticast} method + * with the {@code mcastaddr} argument + * as its argument. + */ + // @ts-ignore + public leaveGroup(mcastaddr: java.net.SocketAddress, netIf: java.net.NetworkInterface): void; + /** + * Set the multicast network interface used by methods + * whose behavior would be affected by the value of the + * network interface. Useful for multihomed hosts. + */ + // @ts-ignore + public setInterface(inf: java.net.InetAddress): void; + /** + * Retrieve the address of the network interface used for + * multicast packets. + */ + // @ts-ignore + public getInterface(): java.net.InetAddress; + /** + * Specify the network interface for outgoing multicast datagrams + * sent on this socket. + */ + // @ts-ignore + public setNetworkInterface(netIf: java.net.NetworkInterface): void; + /** + * Get the multicast network interface set. + */ + // @ts-ignore + public getNetworkInterface(): java.net.NetworkInterface; + /** + * Disable/Enable local loopback of multicast datagrams + * The option is used by the platform's networking code as a hint + * for setting whether multicast data will be looped back to + * the local socket. + *

Because this option is a hint, applications that want to + * verify what loopback mode is set to should call + * {@link #getLoopbackMode()} + */ + // @ts-ignore + public setLoopbackMode(disable: boolean): void; + /** + * Get the setting for local loopback of multicast datagrams. + */ + // @ts-ignore + public getLoopbackMode(): boolean; + /** + * Sends a datagram packet to the destination, with a TTL (time- + * to-live) other than the default for the socket. This method + * need only be used in instances where a particular TTL is desired; + * otherwise it is preferable to set a TTL once on the socket, and + * use that default TTL for all packets. This method does not + * alter the default TTL for the socket. Its behavior may be + * affected by {@code setInterface}. + *

If there is a security manager, this method first performs some + * security checks. First, if {@code p.getAddress().isMulticastAddress()} + * is true, this method calls the + * security manager's {@code checkMulticast} method + * with {@code p.getAddress()} and {@code ttl} as its arguments. + * If the evaluation of that expression is false, + * this method instead calls the security manager's + * {@code checkConnect} method with arguments + * {@code p.getAddress().getHostAddress()} and + * {@code p.getPort()}. Each call to a security manager method + * could result in a SecurityException if the operation is not allowed. + */ + // @ts-ignore + public send(p: java.net.DatagramPacket, ttl: number): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.NetPermission.d.ts b/packages/types/dist/typings/jdk/java.net.NetPermission.d.ts new file mode 100644 index 00000000..3a7a344b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.NetPermission.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class NetPermission extends java.security.BasicPermission { + /** + * Creates a new NetPermission with the specified name. + * The name is the symbolic name of the NetPermission, such as + * "setDefaultAuthenticator", etc. An asterisk + * may appear at the end of the name, following a ".", or by itself, to + * signify a wildcard match. + */ + // @ts-ignore + constructor(name: string) + /** + * Creates a new NetPermission object with the specified name. + * The name is the symbolic name of the NetPermission, and the + * actions String is currently unused and should be null. + */ + // @ts-ignore + constructor(name: string, actions: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.NetworkInterface.d.ts b/packages/types/dist/typings/jdk/java.net.NetworkInterface.d.ts new file mode 100644 index 00000000..9ab3b754 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.NetworkInterface.d.ts @@ -0,0 +1,160 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class NetworkInterface extends java.lang.Object { + /** + * Get the name of this network interface. + */ + // @ts-ignore + public getName(): string; + /** + * Convenience method to return an Enumeration with all or a + * subset of the InetAddresses bound to this network interface. + *

+ * If there is a security manager, its {@code checkConnect} + * method is called for each InetAddress. Only InetAddresses where + * the {@code checkConnect} doesn't throw a SecurityException + * will be returned in the Enumeration. However, if the caller has the + * {@link NetPermission}("getNetworkInformation") permission, then all + * InetAddresses are returned. + */ + // @ts-ignore + public getInetAddresses(): java.util.Enumeration; + /** + * Get a List of all or a subset of the {@code InterfaceAddresses} + * of this network interface. + *

+ * If there is a security manager, its {@code checkConnect} + * method is called with the InetAddress for each InterfaceAddress. + * Only InterfaceAddresses where the {@code checkConnect} doesn't throw + * a SecurityException will be returned in the List. + */ + // @ts-ignore + public getInterfaceAddresses(): java.util.List; + /** + * Get an Enumeration with all the subinterfaces (also known as virtual + * interfaces) attached to this network interface. + *

+ * For instance eth0:1 will be a subinterface to eth0. + */ + // @ts-ignore + public getSubInterfaces(): java.util.Enumeration; + /** + * Returns the parent NetworkInterface of this interface if this is + * a subinterface, or {@code null} if it is a physical + * (non virtual) interface or has no parent. + */ + // @ts-ignore + public getParent(): java.net.NetworkInterface; + /** + * Returns the index of this network interface. The index is an integer greater + * or equal to zero, or {@code -1} for unknown. This is a system specific value + * and interfaces with the same name can have different indexes on different + * machines. + */ + // @ts-ignore + public getIndex(): number; + /** + * Get the display name of this network interface. + * A display name is a human readable String describing the network + * device. + */ + // @ts-ignore + public getDisplayName(): string; + /** + * Searches for the network interface with the specified name. + */ + // @ts-ignore + public static getByName(name: string): java.net.NetworkInterface; + /** + * Get a network interface given its index. + */ + // @ts-ignore + public static getByIndex(index: number): java.net.NetworkInterface; + /** + * Convenience method to search for a network interface that + * has the specified Internet Protocol (IP) address bound to + * it. + *

+ * If the specified IP address is bound to multiple network + * interfaces it is not defined which network interface is + * returned. + */ + // @ts-ignore + public static getByInetAddress(addr: java.net.InetAddress): java.net.NetworkInterface; + /** + * Returns all the interfaces on this machine. The {@code Enumeration} + * contains at least one element, possibly representing a loopback + * interface that only supports communication between entities on + * this machine. + * NOTE: can use getNetworkInterfaces()+getInetAddresses() + * to obtain all IP addresses for this node + */ + // @ts-ignore + public static getNetworkInterfaces(): java.util.Enumeration; + /** + * Returns whether a network interface is up and running. + */ + // @ts-ignore + public isUp(): boolean; + /** + * Returns whether a network interface is a loopback interface. + */ + // @ts-ignore + public isLoopback(): boolean; + /** + * Returns whether a network interface is a point to point interface. + * A typical point to point interface would be a PPP connection through + * a modem. + */ + // @ts-ignore + public isPointToPoint(): boolean; + /** + * Returns whether a network interface supports multicasting or not. + */ + // @ts-ignore + public supportsMulticast(): boolean; + /** + * Returns the hardware address (usually MAC) of the interface if it + * has one and if it can be accessed given the current privileges. + * If a security manager is set, then the caller must have + * the permission {@link NetPermission}("getNetworkInformation"). + */ + // @ts-ignore + public getHardwareAddress(): number[]; + /** + * Returns the Maximum Transmission Unit (MTU) of this interface. + */ + // @ts-ignore + public getMTU(): number; + /** + * Returns whether this interface is a virtual interface (also called + * subinterface). + * Virtual interfaces are, on some systems, interfaces created as a child + * of a physical interface and given different settings (like address or + * MTU). Usually the name of the interface will the name of the parent + * followed by a colon (:) and a number identifying the child since there + * can be several virtual interfaces attached to a single physical + * interface. + */ + // @ts-ignore + public isVirtual(): boolean; + /** + * Compares this object against the specified object. + * The result is {@code true} if and only if the argument is + * not {@code null} and it represents the same NetworkInterface + * as this object. + *

+ * Two instances of {@code NetworkInterface} represent the same + * NetworkInterface if both name and addrs are the same for both. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.NoRouteToHostException.d.ts b/packages/types/dist/typings/jdk/java.net.NoRouteToHostException.d.ts new file mode 100644 index 00000000..67a8245c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.NoRouteToHostException.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class NoRouteToHostException extends java.net.SocketException { + /** + * Constructs a new NoRouteToHostException with the specified detail + * message as to why the remote host cannot be reached. + * A detail message is a String that gives a specific + * description of this error. + */ + // @ts-ignore + constructor(msg: string) + /** + * Construct a new NoRouteToHostException with no detailed message. + */ + // @ts-ignore + constructor() + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.PasswordAuthentication.d.ts b/packages/types/dist/typings/jdk/java.net.PasswordAuthentication.d.ts new file mode 100644 index 00000000..a54bbb6d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.PasswordAuthentication.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class PasswordAuthentication extends java.lang.Object { + /** + * Creates a new {@code PasswordAuthentication} object from the given + * user name and password. + *

Note that the given user password is cloned before it is stored in + * the new {@code PasswordAuthentication} object. + */ + // @ts-ignore + constructor(userName: string, password: string) + /** + * Returns the user name. + */ + // @ts-ignore + public getUserName(): string; + /** + * Returns the user password. + *

Note that this method returns a reference to the password. It is + * the caller's responsibility to zero out the password information after + * it is no longer needed. + */ + // @ts-ignore + public getPassword(): string[]; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.PortUnreachableException.d.ts b/packages/types/dist/typings/jdk/java.net.PortUnreachableException.d.ts new file mode 100644 index 00000000..f22dc0a7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.PortUnreachableException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class PortUnreachableException extends java.net.SocketException { + /** + * Constructs a new {@code PortUnreachableException} with a + * detail message. + */ + // @ts-ignore + constructor(msg: string) + /** + * Construct a new {@code PortUnreachableException} with no + * detailed message. + */ + // @ts-ignore + constructor() + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.ProtocolException.d.ts b/packages/types/dist/typings/jdk/java.net.ProtocolException.d.ts new file mode 100644 index 00000000..b02fbd40 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.ProtocolException.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class ProtocolException extends java.io.IOException { + /** + * Constructs a new {@code ProtocolException} with the + * specified detail message. + */ + // @ts-ignore + constructor(host: string) + /** + * Constructs a new {@code ProtocolException} with no detail message. + */ + // @ts-ignore + constructor() + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.ProtocolFamily.d.ts b/packages/types/dist/typings/jdk/java.net.ProtocolFamily.d.ts new file mode 100644 index 00000000..f9a0ccc0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.ProtocolFamily.d.ts @@ -0,0 +1,13 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + interface ProtocolFamily { + /** + * Returns the name of the protocol family. + */ + // @ts-ignore + name(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.Proxy.Type.d.ts b/packages/types/dist/typings/jdk/java.net.Proxy.Type.d.ts new file mode 100644 index 00000000..fdeb9d6f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.Proxy.Type.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace net { + namespace Proxy { + // @ts-ignore + class Type extends java.lang.Enum { + // @ts-ignore + public static DIRECT: java.net.Proxy.Type; + // @ts-ignore + public static HTTP: java.net.Proxy.Type; + // @ts-ignore + public static SOCKS: java.net.Proxy.Type; + // @ts-ignore + public static values(): java.net.Proxy.Type[]; + // @ts-ignore + public static valueOf(name: string): java.net.Proxy.Type; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.Proxy.d.ts b/packages/types/dist/typings/jdk/java.net.Proxy.d.ts new file mode 100644 index 00000000..208ea71a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.Proxy.d.ts @@ -0,0 +1,55 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class Proxy extends java.lang.Object { + /** + * Creates an entry representing a PROXY connection. + * Certain combinations are illegal. For instance, for types Http, and + * Socks, a SocketAddress must be provided. + *

+ * Use the {@code Proxy.NO_PROXY} constant + * for representing a direct connection. + */ + // @ts-ignore + constructor(type: java.net.Proxy.Type, sa: java.net.SocketAddress) + // @ts-ignore + public static NO_PROXY: java.net.Proxy; + /** + * Returns the proxy type. + */ + // @ts-ignore + public type(): java.net.Proxy.Type; + /** + * Returns the socket address of the proxy, or + * {@code null} if its a direct connection. + */ + // @ts-ignore + public address(): java.net.SocketAddress; + /** + * Constructs a string representation of this Proxy. + * This String is constructed by calling toString() on its type + * and concatenating " @ " and the toString() result from its address + * if its type is not {@code DIRECT}. + */ + // @ts-ignore + public toString(): string; + /** + * Compares this object against the specified object. + * The result is {@code true} if and only if the argument is + * not {@code null} and it represents the same proxy as + * this object. + *

+ * Two instances of {@code Proxy} represent the same + * address if both the SocketAddresses and type are equal. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a hashcode for this Proxy. + */ + // @ts-ignore + public hashCode(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.ProxySelector.d.ts b/packages/types/dist/typings/jdk/java.net.ProxySelector.d.ts new file mode 100644 index 00000000..c1362c62 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.ProxySelector.d.ts @@ -0,0 +1,44 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + abstract class ProxySelector extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Gets the system-wide proxy selector. + */ + // @ts-ignore + public static getDefault(): java.net.ProxySelector; + /** + * Sets (or unsets) the system-wide proxy selector. + * Note: non-standard protocol handlers may ignore this setting. + */ + // @ts-ignore + public static setDefault(ps: java.net.ProxySelector): void; + /** + * Selects all the applicable proxies based on the protocol to + * access the resource with and a destination address to access + * the resource at. + * The format of the URI is defined as follow: + *

    + *
  • http URI for http connections
  • + *
  • https URI for https connections + *
  • {@code socket://host:port}
    + * for tcp client sockets connections
  • + *
+ */ + // @ts-ignore + public abstract select(uri: java.net.URI): java.util.List; + /** + * Called to indicate that a connection could not be established + * to a proxy/socks server. An implementation of this method can + * temporarily remove the proxies or reorder the sequence of + * proxies returned by {@link #select(URI)}, using the address + * and the IOException caught when trying to connect. + */ + // @ts-ignore + public abstract connectFailed(uri: java.net.URI, sa: java.net.SocketAddress, ioe: java.io.IOException): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.ResponseCache.d.ts b/packages/types/dist/typings/jdk/java.net.ResponseCache.d.ts new file mode 100644 index 00000000..a56ef082 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.ResponseCache.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + abstract class ResponseCache extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Gets the system-wide response cache. + */ + // @ts-ignore + public static getDefault(): java.net.ResponseCache; + /** + * Sets (or unsets) the system-wide cache. + * Note: non-standard procotol handlers may ignore this setting. + */ + // @ts-ignore + public static setDefault(responseCache: java.net.ResponseCache): void; + /** + * Retrieve the cached response based on the requesting uri, + * request method and request headers. Typically this method is + * called by the protocol handler before it sends out the request + * to get the network resource. If a cached response is returned, + * that resource is used instead. + */ + // @ts-ignore + public abstract get(uri: java.net.URI, rqstMethod: string, rqstHeaders: java.util.Map): java.net.CacheResponse; + /** + * The protocol handler calls this method after a resource has + * been retrieved, and the ResponseCache must decide whether or + * not to store the resource in its cache. If the resource is to + * be cached, then put() must return a CacheRequest object which + * contains an OutputStream that the protocol handler will + * use to write the resource into the cache. If the resource is + * not to be cached, then put must return null. + */ + // @ts-ignore + public abstract put(uri: java.net.URI, conn: java.net.URLConnection): java.net.CacheRequest; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.SecureCacheResponse.d.ts b/packages/types/dist/typings/jdk/java.net.SecureCacheResponse.d.ts new file mode 100644 index 00000000..d2d81c9c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.SecureCacheResponse.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + abstract class SecureCacheResponse extends java.net.CacheResponse { + // @ts-ignore + constructor() + /** + * Returns the cipher suite in use on the original connection that + * retrieved the network resource. + */ + // @ts-ignore + public abstract getCipherSuite(): string; + /** + * Returns the certificate chain that were sent to the server during + * handshaking of the original connection that retrieved the + * network resource. Note: This method is useful only + * when using certificate-based cipher suites. + */ + // @ts-ignore + public abstract getLocalCertificateChain(): java.util.List; + /** + * Returns the server's certificate chain, which was established as + * part of defining the session in the original connection that + * retrieved the network resource, from cache. Note: This method + * can be used only when using certificate-based cipher suites; + * using it with non-certificate-based cipher suites, such as + * Kerberos, will throw an SSLPeerUnverifiedException. + */ + // @ts-ignore + public abstract getServerCertificateChain(): java.util.List; + /** + * Returns the server's principal which was established as part of + * defining the session during the original connection that + * retrieved the network resource. + */ + // @ts-ignore + public abstract getPeerPrincipal(): java.security.Principal; + /** + * Returns the principal that was sent to the server during + * handshaking in the original connection that retrieved the + * network resource. + */ + // @ts-ignore + public abstract getLocalPrincipal(): java.security.Principal; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.ServerSocket.d.ts b/packages/types/dist/typings/jdk/java.net.ServerSocket.d.ts new file mode 100644 index 00000000..da51a349 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.ServerSocket.d.ts @@ -0,0 +1,350 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class ServerSocket extends java.lang.Object { + /** + * Creates an unbound server socket. + */ + // @ts-ignore + constructor() + /** + * Creates a server socket, bound to the specified port. A port number + * of {@code 0} means that the port number is automatically + * allocated, typically from an ephemeral port range. This port + * number can then be retrieved by calling {@link #getLocalPort getLocalPort}. + *

+ * The maximum queue length for incoming connection indications (a + * request to connect) is set to {@code 50}. If a connection + * indication arrives when the queue is full, the connection is refused. + *

+ * If the application has specified a server socket factory, that + * factory's {@code createSocketImpl} method is called to create + * the actual socket implementation. Otherwise a "plain" socket is created. + *

+ * If there is a security manager, + * its {@code checkListen} method is called + * with the {@code port} argument + * as its argument to ensure the operation is allowed. + * This could result in a SecurityException. + */ + // @ts-ignore + constructor(port: number) + /** + * Creates a server socket and binds it to the specified local port + * number, with the specified backlog. + * A port number of {@code 0} means that the port number is + * automatically allocated, typically from an ephemeral port range. + * This port number can then be retrieved by calling + * {@link #getLocalPort getLocalPort}. + *

+ * The maximum queue length for incoming connection indications (a + * request to connect) is set to the {@code backlog} parameter. If + * a connection indication arrives when the queue is full, the + * connection is refused. + *

+ * If the application has specified a server socket factory, that + * factory's {@code createSocketImpl} method is called to create + * the actual socket implementation. Otherwise a "plain" socket is created. + *

+ * If there is a security manager, + * its {@code checkListen} method is called + * with the {@code port} argument + * as its argument to ensure the operation is allowed. + * This could result in a SecurityException. + * The {@code backlog} argument is the requested maximum number of + * pending connections on the socket. Its exact semantics are implementation + * specific. In particular, an implementation may impose a maximum length + * or may choose to ignore the parameter altogther. The value provided + * should be greater than {@code 0}. If it is less than or equal to + * {@code 0}, then an implementation specific default will be used. + *

+ */ + // @ts-ignore + constructor(port: number, backlog: number) + /** + * Create a server with the specified port, listen backlog, and + * local IP address to bind to. The bindAddr argument + * can be used on a multi-homed host for a ServerSocket that + * will only accept connect requests to one of its addresses. + * If bindAddr is null, it will default accepting + * connections on any/all local addresses. + * The port must be between 0 and 65535, inclusive. + * A port number of {@code 0} means that the port number is + * automatically allocated, typically from an ephemeral port range. + * This port number can then be retrieved by calling + * {@link #getLocalPort getLocalPort}. + *

If there is a security manager, this method + * calls its {@code checkListen} method + * with the {@code port} argument + * as its argument to ensure the operation is allowed. + * This could result in a SecurityException. + * The {@code backlog} argument is the requested maximum number of + * pending connections on the socket. Its exact semantics are implementation + * specific. In particular, an implementation may impose a maximum length + * or may choose to ignore the parameter altogther. The value provided + * should be greater than {@code 0}. If it is less than or equal to + * {@code 0}, then an implementation specific default will be used. + *

+ */ + // @ts-ignore + constructor(port: number, backlog: number, bindAddr: java.net.InetAddress) + /** + * Binds the {@code ServerSocket} to a specific address + * (IP address and port number). + *

+ * If the address is {@code null}, then the system will pick up + * an ephemeral port and a valid local address to bind the socket. + *

+ */ + // @ts-ignore + public bind(endpoint: java.net.SocketAddress): void; + /** + * Binds the {@code ServerSocket} to a specific address + * (IP address and port number). + *

+ * If the address is {@code null}, then the system will pick up + * an ephemeral port and a valid local address to bind the socket. + *

+ * The {@code backlog} argument is the requested maximum number of + * pending connections on the socket. Its exact semantics are implementation + * specific. In particular, an implementation may impose a maximum length + * or may choose to ignore the parameter altogther. The value provided + * should be greater than {@code 0}. If it is less than or equal to + * {@code 0}, then an implementation specific default will be used. + */ + // @ts-ignore + public bind(endpoint: java.net.SocketAddress, backlog: number): void; + /** + * Returns the local address of this server socket. + *

+ * If the socket was bound prior to being {@link #close closed}, + * then this method will continue to return the local address + * after the socket is closed. + *

+ * If there is a security manager set, its {@code checkConnect} method is + * called with the local address and {@code -1} as its arguments to see + * if the operation is allowed. If the operation is not allowed, + * the {@link InetAddress#getLoopbackAddress loopback} address is returned. + */ + // @ts-ignore + public getInetAddress(): java.net.InetAddress; + /** + * Returns the port number on which this socket is listening. + *

+ * If the socket was bound prior to being {@link #close closed}, + * then this method will continue to return the port number + * after the socket is closed. + */ + // @ts-ignore + public getLocalPort(): number; + /** + * Returns the address of the endpoint this socket is bound to. + *

+ * If the socket was bound prior to being {@link #close closed}, + * then this method will continue to return the address of the endpoint + * after the socket is closed. + *

+ * If there is a security manager set, its {@code checkConnect} method is + * called with the local address and {@code -1} as its arguments to see + * if the operation is allowed. If the operation is not allowed, + * a {@code SocketAddress} representing the + * {@link InetAddress#getLoopbackAddress loopback} address and the local + * port to which the socket is bound is returned. + */ + // @ts-ignore + public getLocalSocketAddress(): java.net.SocketAddress; + /** + * Listens for a connection to be made to this socket and accepts + * it. The method blocks until a connection is made. + *

A new Socket {@code s} is created and, if there + * is a security manager, + * the security manager's {@code checkAccept} method is called + * with {@code s.getInetAddress().getHostAddress()} and + * {@code s.getPort()} + * as its arguments to ensure the operation is allowed. + * This could result in a SecurityException. + */ + // @ts-ignore + public accept(): java.net.Socket; + /** + * Subclasses of ServerSocket use this method to override accept() + * to return their own subclass of socket. So a FooServerSocket + * will typically hand this method an empty FooSocket. On + * return from implAccept the FooSocket will be connected to a client. + */ + // @ts-ignore + protected implAccept(s: java.net.Socket): void; + /** + * Closes this socket. + * Any thread currently blocked in {@link #accept()} will throw + * a {@link SocketException}. + *

If this socket has an associated channel then the channel is closed + * as well. + */ + // @ts-ignore + public close(): void; + /** + * Returns the unique {@link java.nio.channels.ServerSocketChannel} object + * associated with this socket, if any. + *

A server socket will have a channel if, and only if, the channel + * itself was created via the {@link + * java.nio.channels.ServerSocketChannel#open ServerSocketChannel.open} + * method. + */ + // @ts-ignore + public getChannel(): java.nio.channels.ServerSocketChannel; + /** + * Returns the binding state of the ServerSocket. + */ + // @ts-ignore + public isBound(): boolean; + /** + * Returns the closed state of the ServerSocket. + */ + // @ts-ignore + public isClosed(): boolean; + /** + * Enable/disable {@link SocketOptions#SO_TIMEOUT SO_TIMEOUT} with the + * specified timeout, in milliseconds. With this option set to a non-zero + * timeout, a call to accept() for this ServerSocket + * will block for only this amount of time. If the timeout expires, + * a java.net.SocketTimeoutException is raised, though the + * ServerSocket is still valid. The option must be enabled + * prior to entering the blocking operation to have effect. The + * timeout must be {@code > 0}. + * A timeout of zero is interpreted as an infinite timeout. + */ + // @ts-ignore + public setSoTimeout(timeout: number): void; + /** + * Retrieve setting for {@link SocketOptions#SO_TIMEOUT SO_TIMEOUT}. + * 0 returns implies that the option is disabled (i.e., timeout of infinity). + */ + // @ts-ignore + public getSoTimeout(): number; + /** + * Enable/disable the {@link SocketOptions#SO_REUSEADDR SO_REUSEADDR} + * socket option. + *

+ * When a TCP connection is closed the connection may remain + * in a timeout state for a period of time after the connection + * is closed (typically known as the {@code TIME_WAIT} state + * or {@code 2MSL} wait state). + * For applications using a well known socket address or port + * it may not be possible to bind a socket to the required + * {@code SocketAddress} if there is a connection in the + * timeout state involving the socket address or port. + *

+ * Enabling {@link SocketOptions#SO_REUSEADDR SO_REUSEADDR} prior to + * binding the socket using {@link #bind(SocketAddress)} allows the socket + * to be bound even though a previous connection is in a timeout state. + *

+ * When a {@code ServerSocket} is created the initial setting + * of {@link SocketOptions#SO_REUSEADDR SO_REUSEADDR} is not defined. + * Applications can use {@link #getReuseAddress()} to determine the initial + * setting of {@link SocketOptions#SO_REUSEADDR SO_REUSEADDR}. + *

+ * The behaviour when {@link SocketOptions#SO_REUSEADDR SO_REUSEADDR} is + * enabled or disabled after a socket is bound (See {@link #isBound()}) + * is not defined. + */ + // @ts-ignore + public setReuseAddress(on: boolean): void; + /** + * Tests if {@link SocketOptions#SO_REUSEADDR SO_REUSEADDR} is enabled. + */ + // @ts-ignore + public getReuseAddress(): boolean; + /** + * Returns the implementation address and implementation port of + * this socket as a {@code String}. + *

+ * If there is a security manager set, its {@code checkConnect} method is + * called with the local address and {@code -1} as its arguments to see + * if the operation is allowed. If the operation is not allowed, + * an {@code InetAddress} representing the + * {@link InetAddress#getLoopbackAddress loopback} address is returned as + * the implementation address. + */ + // @ts-ignore + public toString(): string; + /** + * Sets the server socket implementation factory for the + * application. The factory can be specified only once. + *

+ * When an application creates a new server socket, the socket + * implementation factory's {@code createSocketImpl} method is + * called to create the actual socket implementation. + *

+ * Passing {@code null} to the method is a no-op unless the factory + * was already set. + *

+ * If there is a security manager, this method first calls + * the security manager's {@code checkSetFactory} method + * to ensure the operation is allowed. + * This could result in a SecurityException. + */ + // @ts-ignore + public static setSocketFactory(fac: java.net.SocketImplFactory): void; + /** + * Sets a default proposed value for the + * {@link SocketOptions#SO_RCVBUF SO_RCVBUF} option for sockets + * accepted from this {@code ServerSocket}. The value actually set + * in the accepted socket must be determined by calling + * {@link Socket#getReceiveBufferSize()} after the socket + * is returned by {@link #accept()}. + *

+ * The value of {@link SocketOptions#SO_RCVBUF SO_RCVBUF} is used both to + * set the size of the internal socket receive buffer, and to set the size + * of the TCP receive window that is advertized to the remote peer. + *

+ * It is possible to change the value subsequently, by calling + * {@link Socket#setReceiveBufferSize(int)}. However, if the application + * wishes to allow a receive window larger than 64K bytes, as defined by RFC1323 + * then the proposed value must be set in the ServerSocket before + * it is bound to a local address. This implies, that the ServerSocket must be + * created with the no-argument constructor, then setReceiveBufferSize() must + * be called and lastly the ServerSocket is bound to an address by calling bind(). + *

+ * Failure to do this will not cause an error, and the buffer size may be set to the + * requested value but the TCP receive window in sockets accepted from + * this ServerSocket will be no larger than 64K bytes. + */ + // @ts-ignore + public setReceiveBufferSize(size: number): void; + /** + * Gets the value of the {@link SocketOptions#SO_RCVBUF SO_RCVBUF} option + * for this {@code ServerSocket}, that is the proposed buffer size that + * will be used for Sockets accepted from this {@code ServerSocket}. + *

Note, the value actually set in the accepted socket is determined by + * calling {@link Socket#getReceiveBufferSize()}. + */ + // @ts-ignore + public getReceiveBufferSize(): number; + /** + * Sets performance preferences for this ServerSocket. + *

Sockets use the TCP/IP protocol by default. Some implementations + * may offer alternative protocols which have different performance + * characteristics than TCP/IP. This method allows the application to + * express its own preferences as to how these tradeoffs should be made + * when the implementation chooses from the available protocols. + *

Performance preferences are described by three integers + * whose values indicate the relative importance of short connection time, + * low latency, and high bandwidth. The absolute values of the integers + * are irrelevant; in order to choose a protocol the values are simply + * compared, with larger values indicating stronger preferences. If the + * application prefers short connection time over both low latency and high + * bandwidth, for example, then it could invoke this method with the values + * {@code (1, 0, 0)}. If the application prefers high bandwidth above low + * latency, and low latency above short connection time, then it could + * invoke this method with the values {@code (0, 1, 2)}. + *

Invoking this method after this socket has been bound + * will have no effect. This implies that in order to use this capability + * requires the socket to be created with the no-argument constructor. + */ + // @ts-ignore + public setPerformancePreferences(connectionTime: number, latency: number, bandwidth: number): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.Socket.d.ts b/packages/types/dist/typings/jdk/java.net.Socket.d.ts new file mode 100644 index 00000000..83062644 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.Socket.d.ts @@ -0,0 +1,639 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class Socket extends java.lang.Object { + /** + * Creates an unconnected socket, with the + * system-default type of SocketImpl. + */ + // @ts-ignore + constructor() + /** + * Creates an unconnected socket, specifying the type of proxy, if any, + * that should be used regardless of any other settings. + *

+ * If there is a security manager, its {@code checkConnect} method + * is called with the proxy host address and port number + * as its arguments. This could result in a SecurityException. + *

+ * Examples: + *

  • {@code Socket s = new Socket(Proxy.NO_PROXY);} will create + * a plain socket ignoring any other proxy configuration.
  • + *
  • {@code Socket s = new Socket(new Proxy(Proxy.Type.SOCKS, new InetSocketAddress("socks.mydom.com", 1080)));} + * will create a socket connecting through the specified SOCKS proxy + * server.
  • + *
+ */ + // @ts-ignore + constructor(proxy: java.net.Proxy) + /** + * Creates an unconnected Socket with a user-specified + * SocketImpl. + *

+ */ + // @ts-ignore + constructor(impl: java.net.SocketImpl) + /** + * Creates a stream socket and connects it to the specified port + * number on the named host. + *

+ * If the specified host is {@code null} it is the equivalent of + * specifying the address as + * {@link java.net.InetAddress#getByName InetAddress.getByName}{@code (null)}. + * In other words, it is equivalent to specifying an address of the + * loopback interface.

+ *

+ * If the application has specified a server socket factory, that + * factory's {@code createSocketImpl} method is called to create + * the actual socket implementation. Otherwise a "plain" socket is created. + *

+ * If there is a security manager, its + * {@code checkConnect} method is called + * with the host address and {@code port} + * as its arguments. This could result in a SecurityException. + */ + // @ts-ignore + constructor(host: string, port: number) + /** + * Creates a stream socket and connects it to the specified port + * number at the specified IP address. + *

+ * If the application has specified a socket factory, that factory's + * {@code createSocketImpl} method is called to create the + * actual socket implementation. Otherwise a "plain" socket is created. + *

+ * If there is a security manager, its + * {@code checkConnect} method is called + * with the host address and {@code port} + * as its arguments. This could result in a SecurityException. + */ + // @ts-ignore + constructor(address: java.net.InetAddress, port: number) + /** + * Creates a socket and connects it to the specified remote host on + * the specified remote port. The Socket will also bind() to the local + * address and port supplied. + *

+ * If the specified host is {@code null} it is the equivalent of + * specifying the address as + * {@link java.net.InetAddress#getByName InetAddress.getByName}{@code (null)}. + * In other words, it is equivalent to specifying an address of the + * loopback interface.

+ *

+ * A local port number of {@code zero} will let the system pick up a + * free port in the {@code bind} operation.

+ *

+ * If there is a security manager, its + * {@code checkConnect} method is called + * with the host address and {@code port} + * as its arguments. This could result in a SecurityException. + */ + // @ts-ignore + constructor(host: string, port: number, localAddr: java.net.InetAddress, localPort: number) + /** + * Creates a socket and connects it to the specified remote address on + * the specified remote port. The Socket will also bind() to the local + * address and port supplied. + *

+ * If the specified local address is {@code null} it is the equivalent of + * specifying the address as the AnyLocal address + * (see {@link java.net.InetAddress#isAnyLocalAddress InetAddress.isAnyLocalAddress}{@code ()}). + *

+ * A local port number of {@code zero} will let the system pick up a + * free port in the {@code bind} operation.

+ *

+ * If there is a security manager, its + * {@code checkConnect} method is called + * with the host address and {@code port} + * as its arguments. This could result in a SecurityException. + */ + // @ts-ignore + constructor(address: java.net.InetAddress, port: number, localAddr: java.net.InetAddress, localPort: number) + /** + * Creates a stream socket and connects it to the specified port + * number on the named host. + *

+ * If the specified host is {@code null} it is the equivalent of + * specifying the address as + * {@link java.net.InetAddress#getByName InetAddress.getByName}{@code (null)}. + * In other words, it is equivalent to specifying an address of the + * loopback interface.

+ *

+ * If the stream argument is {@code true}, this creates a + * stream socket. If the stream argument is {@code false}, it + * creates a datagram socket. + *

+ * If the application has specified a server socket factory, that + * factory's {@code createSocketImpl} method is called to create + * the actual socket implementation. Otherwise a "plain" socket is created. + *

+ * If there is a security manager, its + * {@code checkConnect} method is called + * with the host address and {@code port} + * as its arguments. This could result in a SecurityException. + *

+ * If a UDP socket is used, TCP/IP related socket options will not apply. + */ + // @ts-ignore + constructor(host: string, port: number, stream: boolean) + /** + * Creates a socket and connects it to the specified port number at + * the specified IP address. + *

+ * If the stream argument is {@code true}, this creates a + * stream socket. If the stream argument is {@code false}, it + * creates a datagram socket. + *

+ * If the application has specified a server socket factory, that + * factory's {@code createSocketImpl} method is called to create + * the actual socket implementation. Otherwise a "plain" socket is created. + *

If there is a security manager, its + * {@code checkConnect} method is called + * with {@code host.getHostAddress()} and {@code port} + * as its arguments. This could result in a SecurityException. + *

+ * If UDP socket is used, TCP/IP related socket options will not apply. + */ + // @ts-ignore + constructor(host: java.net.InetAddress, port: number, stream: boolean) + /** + * Connects this socket to the server. + */ + // @ts-ignore + public connect(endpoint: java.net.SocketAddress): void; + /** + * Connects this socket to the server with a specified timeout value. + * A timeout of zero is interpreted as an infinite timeout. The connection + * will then block until established or an error occurs. + */ + // @ts-ignore + public connect(endpoint: java.net.SocketAddress, timeout: number): void; + /** + * Binds the socket to a local address. + *

+ * If the address is {@code null}, then the system will pick up + * an ephemeral port and a valid local address to bind the socket. + */ + // @ts-ignore + public bind(bindpoint: java.net.SocketAddress): void; + /** + * Returns the address to which the socket is connected. + *

+ * If the socket was connected prior to being {@link #close closed}, + * then this method will continue to return the connected address + * after the socket is closed. + */ + // @ts-ignore + public getInetAddress(): java.net.InetAddress; + /** + * Gets the local address to which the socket is bound. + *

+ * If there is a security manager set, its {@code checkConnect} method is + * called with the local address and {@code -1} as its arguments to see + * if the operation is allowed. If the operation is not allowed, + * the {@link InetAddress#getLoopbackAddress loopback} address is returned. + */ + // @ts-ignore + public getLocalAddress(): java.net.InetAddress; + /** + * Returns the remote port number to which this socket is connected. + *

+ * If the socket was connected prior to being {@link #close closed}, + * then this method will continue to return the connected port number + * after the socket is closed. + */ + // @ts-ignore + public getPort(): number; + /** + * Returns the local port number to which this socket is bound. + *

+ * If the socket was bound prior to being {@link #close closed}, + * then this method will continue to return the local port number + * after the socket is closed. + */ + // @ts-ignore + public getLocalPort(): number; + /** + * Returns the address of the endpoint this socket is connected to, or + * {@code null} if it is unconnected. + *

+ * If the socket was connected prior to being {@link #close closed}, + * then this method will continue to return the connected address + * after the socket is closed. + */ + // @ts-ignore + public getRemoteSocketAddress(): java.net.SocketAddress; + /** + * Returns the address of the endpoint this socket is bound to. + *

+ * If a socket bound to an endpoint represented by an + * {@code InetSocketAddress } is {@link #close closed}, + * then this method will continue to return an {@code InetSocketAddress} + * after the socket is closed. In that case the returned + * {@code InetSocketAddress}'s address is the + * {@link InetAddress#isAnyLocalAddress wildcard} address + * and its port is the local port that it was bound to. + *

+ * If there is a security manager set, its {@code checkConnect} method is + * called with the local address and {@code -1} as its arguments to see + * if the operation is allowed. If the operation is not allowed, + * a {@code SocketAddress} representing the + * {@link InetAddress#getLoopbackAddress loopback} address and the local + * port to which this socket is bound is returned. + */ + // @ts-ignore + public getLocalSocketAddress(): java.net.SocketAddress; + /** + * Returns the unique {@link java.nio.channels.SocketChannel SocketChannel} + * object associated with this socket, if any. + *

A socket will have a channel if, and only if, the channel itself was + * created via the {@link java.nio.channels.SocketChannel#open + * SocketChannel.open} or {@link + * java.nio.channels.ServerSocketChannel#accept ServerSocketChannel.accept} + * methods. + */ + // @ts-ignore + public getChannel(): java.nio.channels.SocketChannel; + /** + * Returns an input stream for this socket. + *

If this socket has an associated channel then the resulting input + * stream delegates all of its operations to the channel. If the channel + * is in non-blocking mode then the input stream's {@code read} operations + * will throw an {@link java.nio.channels.IllegalBlockingModeException}. + *

Under abnormal conditions the underlying connection may be + * broken by the remote host or the network software (for example + * a connection reset in the case of TCP connections). When a + * broken connection is detected by the network software the + * following applies to the returned input stream :- + *

    + *
  • The network software may discard bytes that are buffered + * by the socket. Bytes that aren't discarded by the network + * software can be read using {@link java.io.InputStream#read read}. + *

  • If there are no bytes buffered on the socket, or all + * buffered bytes have been consumed by + * {@link java.io.InputStream#read read}, then all subsequent + * calls to {@link java.io.InputStream#read read} will throw an + * {@link java.io.IOException IOException}. + *

  • If there are no bytes buffered on the socket, and the + * socket has not been closed using {@link #close close}, then + * {@link java.io.InputStream#available available} will + * return {@code 0}. + *

+ *

Closing the returned {@link java.io.InputStream InputStream} + * will close the associated socket. + */ + // @ts-ignore + public getInputStream(): java.io.InputStream; + /** + * Returns an output stream for this socket. + *

If this socket has an associated channel then the resulting output + * stream delegates all of its operations to the channel. If the channel + * is in non-blocking mode then the output stream's {@code write} + * operations will throw an {@link + * java.nio.channels.IllegalBlockingModeException}. + *

Closing the returned {@link java.io.OutputStream OutputStream} + * will close the associated socket. + */ + // @ts-ignore + public getOutputStream(): java.io.OutputStream; + /** + * Enable/disable {@link SocketOptions#TCP_NODELAY TCP_NODELAY} + * (disable/enable Nagle's algorithm). + */ + // @ts-ignore + public setTcpNoDelay(on: boolean): void; + /** + * Tests if {@link SocketOptions#TCP_NODELAY TCP_NODELAY} is enabled. + */ + // @ts-ignore + public getTcpNoDelay(): boolean; + /** + * Enable/disable {@link SocketOptions#SO_LINGER SO_LINGER} with the + * specified linger time in seconds. The maximum timeout value is platform + * specific. + * The setting only affects socket close. + */ + // @ts-ignore + public setSoLinger(on: boolean, linger: number): void; + /** + * Returns setting for {@link SocketOptions#SO_LINGER SO_LINGER}. + * -1 returns implies that the + * option is disabled. + * The setting only affects socket close. + */ + // @ts-ignore + public getSoLinger(): number; + /** + * Send one byte of urgent data on the socket. The byte to be sent is the lowest eight + * bits of the data parameter. The urgent byte is + * sent after any preceding writes to the socket OutputStream + * and before any future writes to the OutputStream. + */ + // @ts-ignore + public sendUrgentData(data: number): void; + /** + * Enable/disable {@link SocketOptions#SO_OOBINLINE SO_OOBINLINE} + * (receipt of TCP urgent data) + * By default, this option is disabled and TCP urgent data received on a + * socket is silently discarded. If the user wishes to receive urgent data, then + * this option must be enabled. When enabled, urgent data is received + * inline with normal data. + *

+ * Note, only limited support is provided for handling incoming urgent + * data. In particular, no notification of incoming urgent data is provided + * and there is no capability to distinguish between normal data and urgent + * data unless provided by a higher level protocol. + */ + // @ts-ignore + public setOOBInline(on: boolean): void; + /** + * Tests if {@link SocketOptions#SO_OOBINLINE SO_OOBINLINE} is enabled. + */ + // @ts-ignore + public getOOBInline(): boolean; + /** + * Enable/disable {@link SocketOptions#SO_TIMEOUT SO_TIMEOUT} + * with the specified timeout, in milliseconds. With this option set + * to a non-zero timeout, a read() call on the InputStream associated with + * this Socket will block for only this amount of time. If the timeout + * expires, a java.net.SocketTimeoutException is raised, though the + * Socket is still valid. The option must be enabled + * prior to entering the blocking operation to have effect. The + * timeout must be {@code > 0}. + * A timeout of zero is interpreted as an infinite timeout. + */ + // @ts-ignore + public setSoTimeout(timeout: number): void; + /** + * Returns setting for {@link SocketOptions#SO_TIMEOUT SO_TIMEOUT}. + * 0 returns implies that the option is disabled (i.e., timeout of infinity). + */ + // @ts-ignore + public getSoTimeout(): number; + /** + * Sets the {@link SocketOptions#SO_SNDBUF SO_SNDBUF} option to the + * specified value for this {@code Socket}. + * The {@link SocketOptions#SO_SNDBUF SO_SNDBUF} option is used by the + * platform's networking code as a hint for the size to set the underlying + * network I/O buffers. + *

Because {@link SocketOptions#SO_SNDBUF SO_SNDBUF} is a hint, + * applications that want to verify what size the buffers were set to + * should call {@link #getSendBufferSize()}. + */ + // @ts-ignore + public setSendBufferSize(size: number): void; + /** + * Get value of the {@link SocketOptions#SO_SNDBUF SO_SNDBUF} option + * for this {@code Socket}, that is the buffer size used by the platform + * for output on this {@code Socket}. + */ + // @ts-ignore + public getSendBufferSize(): number; + /** + * Sets the {@link SocketOptions#SO_RCVBUF SO_RCVBUF} option to the + * specified value for this {@code Socket}. The + * {@link SocketOptions#SO_RCVBUF SO_RCVBUF} option is + * used by the platform's networking code as a hint for the size to set + * the underlying network I/O buffers. + *

Increasing the receive buffer size can increase the performance of + * network I/O for high-volume connection, while decreasing it can + * help reduce the backlog of incoming data. + *

Because {@link SocketOptions#SO_RCVBUF SO_RCVBUF} is a hint, + * applications that want to verify what size the buffers were set to + * should call {@link #getReceiveBufferSize()}. + *

The value of {@link SocketOptions#SO_RCVBUF SO_RCVBUF} is also used + * to set the TCP receive window that is advertized to the remote peer. + * Generally, the window size can be modified at any time when a socket is + * connected. However, if a receive window larger than 64K is required then + * this must be requested before the socket is connected to the + * remote peer. There are two cases to be aware of: + *

    + *
  1. For sockets accepted from a ServerSocket, this must be done by calling + * {@link ServerSocket#setReceiveBufferSize(int)} before the ServerSocket + * is bound to a local address.

  2. + *
  3. For client sockets, setReceiveBufferSize() must be called before + * connecting the socket to its remote peer.
+ */ + // @ts-ignore + public setReceiveBufferSize(size: number): void; + /** + * Gets the value of the {@link SocketOptions#SO_RCVBUF SO_RCVBUF} option + * for this {@code Socket}, that is the buffer size used by the platform + * for input on this {@code Socket}. + */ + // @ts-ignore + public getReceiveBufferSize(): number; + /** + * Enable/disable {@link SocketOptions#SO_KEEPALIVE SO_KEEPALIVE}. + */ + // @ts-ignore + public setKeepAlive(on: boolean): void; + /** + * Tests if {@link SocketOptions#SO_KEEPALIVE SO_KEEPALIVE} is enabled. + */ + // @ts-ignore + public getKeepAlive(): boolean; + /** + * Sets traffic class or type-of-service octet in the IP + * header for packets sent from this Socket. + * As the underlying network implementation may ignore this + * value applications should consider it a hint. + *

The tc must be in the range {@code 0 <= tc <= + * 255} or an IllegalArgumentException will be thrown. + *

Notes: + *

For Internet Protocol v4 the value consists of an + * {@code integer}, the least significant 8 bits of which + * represent the value of the TOS octet in IP packets sent by + * the socket. + * RFC 1349 defines the TOS values as follows: + *

    + *
  • IPTOS_LOWCOST (0x02)
  • + *
  • IPTOS_RELIABILITY (0x04)
  • + *
  • IPTOS_THROUGHPUT (0x08)
  • + *
  • IPTOS_LOWDELAY (0x10)
  • + *
+ * The last low order bit is always ignored as this + * corresponds to the MBZ (must be zero) bit. + *

+ * Setting bits in the precedence field may result in a + * SocketException indicating that the operation is not + * permitted. + *

+ * As RFC 1122 section 4.2.4.2 indicates, a compliant TCP + * implementation should, but is not required to, let application + * change the TOS field during the lifetime of a connection. + * So whether the type-of-service field can be changed after the + * TCP connection has been established depends on the implementation + * in the underlying platform. Applications should not assume that + * they can change the TOS field after the connection. + *

+ * For Internet Protocol v6 {@code tc} is the value that + * would be placed into the sin6_flowinfo field of the IP header. + */ + // @ts-ignore + public setTrafficClass(tc: number): void; + /** + * Gets traffic class or type-of-service in the IP header + * for packets sent from this Socket + *

+ * As the underlying network implementation may ignore the + * traffic class or type-of-service set using {@link #setTrafficClass(int)} + * this method may return a different value than was previously + * set using the {@link #setTrafficClass(int)} method on this Socket. + */ + // @ts-ignore + public getTrafficClass(): number; + /** + * Enable/disable the {@link SocketOptions#SO_REUSEADDR SO_REUSEADDR} + * socket option. + *

+ * When a TCP connection is closed the connection may remain + * in a timeout state for a period of time after the connection + * is closed (typically known as the {@code TIME_WAIT} state + * or {@code 2MSL} wait state). + * For applications using a well known socket address or port + * it may not be possible to bind a socket to the required + * {@code SocketAddress} if there is a connection in the + * timeout state involving the socket address or port. + *

+ * Enabling {@link SocketOptions#SO_REUSEADDR SO_REUSEADDR} + * prior to binding the socket using {@link #bind(SocketAddress)} allows + * the socket to be bound even though a previous connection is in a timeout + * state. + *

+ * When a {@code Socket} is created the initial setting + * of {@link SocketOptions#SO_REUSEADDR SO_REUSEADDR} is disabled. + *

+ * The behaviour when {@link SocketOptions#SO_REUSEADDR SO_REUSEADDR} is + * enabled or disabled after a socket is bound (See {@link #isBound()}) + * is not defined. + */ + // @ts-ignore + public setReuseAddress(on: boolean): void; + /** + * Tests if {@link SocketOptions#SO_REUSEADDR SO_REUSEADDR} is enabled. + */ + // @ts-ignore + public getReuseAddress(): boolean; + /** + * Closes this socket. + *

+ * Any thread currently blocked in an I/O operation upon this socket + * will throw a {@link SocketException}. + *

+ * Once a socket has been closed, it is not available for further networking + * use (i.e. can't be reconnected or rebound). A new socket needs to be + * created. + *

Closing this socket will also close the socket's + * {@link java.io.InputStream InputStream} and + * {@link java.io.OutputStream OutputStream}. + *

If this socket has an associated channel then the channel is closed + * as well. + */ + // @ts-ignore + public close(): void; + /** + * Places the input stream for this socket at "end of stream". + * Any data sent to the input stream side of the socket is acknowledged + * and then silently discarded. + *

+ * If you read from a socket input stream after invoking this method on the + * socket, the stream's {@code available} method will return 0, and its + * {@code read} methods will return {@code -1} (end of stream). + */ + // @ts-ignore + public shutdownInput(): void; + /** + * Disables the output stream for this socket. + * For a TCP socket, any previously written data will be sent + * followed by TCP's normal connection termination sequence. + * If you write to a socket output stream after invoking + * shutdownOutput() on the socket, the stream will throw + * an IOException. + */ + // @ts-ignore + public shutdownOutput(): void; + /** + * Converts this socket to a {@code String}. + */ + // @ts-ignore + public toString(): string; + /** + * Returns the connection state of the socket. + *

+ * Note: Closing a socket doesn't clear its connection state, which means + * this method will return {@code true} for a closed socket + * (see {@link #isClosed()}) if it was successfuly connected prior + * to being closed. + */ + // @ts-ignore + public isConnected(): boolean; + /** + * Returns the binding state of the socket. + *

+ * Note: Closing a socket doesn't clear its binding state, which means + * this method will return {@code true} for a closed socket + * (see {@link #isClosed()}) if it was successfuly bound prior + * to being closed. + */ + // @ts-ignore + public isBound(): boolean; + /** + * Returns the closed state of the socket. + */ + // @ts-ignore + public isClosed(): boolean; + /** + * Returns whether the read-half of the socket connection is closed. + */ + // @ts-ignore + public isInputShutdown(): boolean; + /** + * Returns whether the write-half of the socket connection is closed. + */ + // @ts-ignore + public isOutputShutdown(): boolean; + /** + * Sets the client socket implementation factory for the + * application. The factory can be specified only once. + *

+ * When an application creates a new client socket, the socket + * implementation factory's {@code createSocketImpl} method is + * called to create the actual socket implementation. + *

+ * Passing {@code null} to the method is a no-op unless the factory + * was already set. + *

If there is a security manager, this method first calls + * the security manager's {@code checkSetFactory} method + * to ensure the operation is allowed. + * This could result in a SecurityException. + */ + // @ts-ignore + public static setSocketImplFactory(fac: java.net.SocketImplFactory): void; + /** + * Sets performance preferences for this socket. + *

Sockets use the TCP/IP protocol by default. Some implementations + * may offer alternative protocols which have different performance + * characteristics than TCP/IP. This method allows the application to + * express its own preferences as to how these tradeoffs should be made + * when the implementation chooses from the available protocols. + *

Performance preferences are described by three integers + * whose values indicate the relative importance of short connection time, + * low latency, and high bandwidth. The absolute values of the integers + * are irrelevant; in order to choose a protocol the values are simply + * compared, with larger values indicating stronger preferences. Negative + * values represent a lower priority than positive values. If the + * application prefers short connection time over both low latency and high + * bandwidth, for example, then it could invoke this method with the values + * {@code (1, 0, 0)}. If the application prefers high bandwidth above low + * latency, and low latency above short connection time, then it could + * invoke this method with the values {@code (0, 1, 2)}. + *

Invoking this method after this socket has been connected + * will have no effect. + */ + // @ts-ignore + public setPerformancePreferences(connectionTime: number, latency: number, bandwidth: number): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.SocketAddress.d.ts b/packages/types/dist/typings/jdk/java.net.SocketAddress.d.ts new file mode 100644 index 00000000..b01bea48 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.SocketAddress.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + abstract class SocketAddress extends java.lang.Object { + // @ts-ignore + constructor() + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.SocketException.d.ts b/packages/types/dist/typings/jdk/java.net.SocketException.d.ts new file mode 100644 index 00000000..50a32275 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.SocketException.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class SocketException extends java.io.IOException { + /** + * Constructs a new {@code SocketException} with the + * specified detail message. + */ + // @ts-ignore + constructor(msg: string) + /** + * Constructs a new {@code SocketException} with no detail message. + */ + // @ts-ignore + constructor() + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.SocketImpl.d.ts b/packages/types/dist/typings/jdk/java.net.SocketImpl.d.ts new file mode 100644 index 00000000..35c6cd62 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.SocketImpl.d.ts @@ -0,0 +1,148 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + abstract class SocketImpl extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + protected fd: java.io.FileDescriptor; + // @ts-ignore + protected address: java.net.InetAddress; + // @ts-ignore + protected port: number; + // @ts-ignore + protected localport: number; + /** + * Creates either a stream or a datagram socket. + */ + // @ts-ignore + protected abstract create(stream: boolean): void; + /** + * Connects this socket to the specified port on the named host. + */ + // @ts-ignore + protected abstract connect(host: string, port: number): void; + /** + * Binds this socket to the specified local IP address and port number. + */ + // @ts-ignore + protected abstract bind(host: java.net.InetAddress, port: number): void; + /** + * Sets the maximum queue length for incoming connection indications + * (a request to connect) to the {@code count} argument. If a + * connection indication arrives when the queue is full, the + * connection is refused. + */ + // @ts-ignore + protected abstract listen(backlog: number): void; + /** + * Accepts a connection. + */ + // @ts-ignore + protected abstract accept(s: java.net.SocketImpl): void; + /** + * Returns an input stream for this socket. + */ + // @ts-ignore + protected abstract getInputStream(): java.io.InputStream; + /** + * Returns an output stream for this socket. + */ + // @ts-ignore + protected abstract getOutputStream(): java.io.OutputStream; + /** + * Returns the number of bytes that can be read from this socket + * without blocking. + */ + // @ts-ignore + protected abstract available(): number; + /** + * Closes this socket. + */ + // @ts-ignore + protected abstract close(): void; + /** + * Places the input stream for this socket at "end of stream". + * Any data sent to this socket is acknowledged and then + * silently discarded. + * If you read from a socket input stream after invoking this method on the + * socket, the stream's {@code available} method will return 0, and its + * {@code read} methods will return {@code -1} (end of stream). + */ + // @ts-ignore + protected shutdownInput(): void; + /** + * Disables the output stream for this socket. + * For a TCP socket, any previously written data will be sent + * followed by TCP's normal connection termination sequence. + * If you write to a socket output stream after invoking + * shutdownOutput() on the socket, the stream will throw + * an IOException. + */ + // @ts-ignore + protected shutdownOutput(): void; + /** + * Returns the value of this socket's {@code fd} field. + */ + // @ts-ignore + protected getFileDescriptor(): java.io.FileDescriptor; + /** + * Returns the value of this socket's {@code address} field. + */ + // @ts-ignore + protected getInetAddress(): java.net.InetAddress; + /** + * Returns the value of this socket's {@code port} field. + */ + // @ts-ignore + protected getPort(): number; + /** + * Returns whether or not this SocketImpl supports sending + * urgent data. By default, false is returned + * unless the method is overridden in a sub-class + */ + // @ts-ignore + protected supportsUrgentData(): boolean; + /** + * Send one byte of urgent data on the socket. + * The byte to be sent is the low eight bits of the parameter + */ + // @ts-ignore + protected abstract sendUrgentData(data: number): void; + /** + * Returns the value of this socket's {@code localport} field. + */ + // @ts-ignore + protected getLocalPort(): number; + /** + * Returns the address and port of this socket as a {@code String}. + */ + // @ts-ignore + public toString(): string; + /** + * Sets performance preferences for this socket. + *

Sockets use the TCP/IP protocol by default. Some implementations + * may offer alternative protocols which have different performance + * characteristics than TCP/IP. This method allows the application to + * express its own preferences as to how these tradeoffs should be made + * when the implementation chooses from the available protocols. + *

Performance preferences are described by three integers + * whose values indicate the relative importance of short connection time, + * low latency, and high bandwidth. The absolute values of the integers + * are irrelevant; in order to choose a protocol the values are simply + * compared, with larger values indicating stronger preferences. Negative + * values represent a lower priority than positive values. If the + * application prefers short connection time over both low latency and high + * bandwidth, for example, then it could invoke this method with the values + * {@code (1, 0, 0)}. If the application prefers high bandwidth above low + * latency, and low latency above short connection time, then it could + * invoke this method with the values {@code (0, 1, 2)}. + * By default, this method does nothing, unless it is overridden in a + * a sub-class. + */ + // @ts-ignore + protected setPerformancePreferences(connectionTime: number, latency: number, bandwidth: number): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.SocketImplFactory.d.ts b/packages/types/dist/typings/jdk/java.net.SocketImplFactory.d.ts new file mode 100644 index 00000000..c47a10a5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.SocketImplFactory.d.ts @@ -0,0 +1,13 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + interface SocketImplFactory { + /** + * Creates a new {@code SocketImpl} instance. + */ + // @ts-ignore + createSocketImpl(): java.net.SocketImpl; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.SocketOption.d.ts b/packages/types/dist/typings/jdk/java.net.SocketOption.d.ts new file mode 100644 index 00000000..aef04d52 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.SocketOption.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + interface SocketOption { + /** + * Returns the name of the socket option. + */ + // @ts-ignore + name(): string; + /** + * Returns the type of the socket option value. + */ + // @ts-ignore + type(): java.lang.Class; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.SocketOptions.d.ts b/packages/types/dist/typings/jdk/java.net.SocketOptions.d.ts new file mode 100644 index 00000000..166fabc4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.SocketOptions.d.ts @@ -0,0 +1,102 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + interface SocketOptions { + // @ts-ignore + TCP_NODELAY: number; + // @ts-ignore + SO_BINDADDR: number; + // @ts-ignore + SO_REUSEADDR: number; + // @ts-ignore + SO_BROADCAST: number; + // @ts-ignore + IP_MULTICAST_IF: number; + // @ts-ignore + IP_MULTICAST_IF2: number; + // @ts-ignore + IP_MULTICAST_LOOP: number; + // @ts-ignore + IP_TOS: number; + // @ts-ignore + SO_LINGER: number; + // @ts-ignore + SO_TIMEOUT: number; + // @ts-ignore + SO_SNDBUF: number; + // @ts-ignore + SO_RCVBUF: number; + // @ts-ignore + SO_KEEPALIVE: number; + // @ts-ignore + SO_OOBINLINE: number; + /** + * Enable/disable the option specified by optID. If the option + * is to be enabled, and it takes an option-specific "value", this is + * passed in value. The actual type of value is option-specific, + * and it is an error to pass something that isn't of the expected type: + *

+             * SocketImpl s;
+             * ...
+             * s.setOption(SO_LINGER, new Integer(10));
+             * // OK - set SO_LINGER w/ timeout of 10 sec.
+             * s.setOption(SO_LINGER, new Double(10));
+             * // ERROR - expects java.lang.Integer
+             * 
+ * If the requested option is binary, it can be set using this method by + * a java.lang.Boolean: + *
+             * s.setOption(TCP_NODELAY, new Boolean(true));
+             * // OK - enables TCP_NODELAY, a binary option
+             * 
+ *
+ * Any option can be disabled using this method with a Boolean(false): + *
+             * s.setOption(TCP_NODELAY, new Boolean(false));
+             * // OK - disables TCP_NODELAY
+             * s.setOption(SO_LINGER, new Boolean(false));
+             * // OK - disables SO_LINGER
+             * 
+ *
+ * For an option that has a notion of on and off, and requires + * a non-boolean parameter, setting its value to anything other than + * Boolean(false) implicitly enables it. + *
+ * Throws SocketException if the option is unrecognized, + * the socket is closed, or some low-level error occurred + *
+ */ + // @ts-ignore + setOption(optID: number, value: java.lang.Object): void; + /** + * Fetch the value of an option. + * Binary options will return java.lang.Boolean(true) + * if enabled, java.lang.Boolean(false) if disabled, e.g.: + *
+             * SocketImpl s;
+             * ...
+             * Boolean noDelay = (Boolean)(s.getOption(TCP_NODELAY));
+             * if (noDelay.booleanValue()) {
+             * // true if TCP_NODELAY is enabled...
+             * ...
+             * }
+             * 
+ *

+ * For options that take a particular type as a parameter, + * getOption(int) will return the parameter's value, else + * it will return java.lang.Boolean(false): + *

+             * Object o = s.getOption(SO_LINGER);
+             * if (o instanceof Integer) {
+             * System.out.print("Linger time is " + ((Integer)o).intValue());
+             * } else {
+             * // the true type of o is java.lang.Boolean(false);
+             * }
+             * 
+ */ + // @ts-ignore + getOption(optID: number): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.SocketPermission.d.ts b/packages/types/dist/typings/jdk/java.net.SocketPermission.d.ts new file mode 100644 index 00000000..cdf35b77 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.SocketPermission.d.ts @@ -0,0 +1,95 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class SocketPermission extends java.security.Permission { + /** + * Creates a new SocketPermission object with the specified actions. + * The host is expressed as a DNS name, or as a numerical IP address. + * Optionally, a port or a portrange may be supplied (separated + * from the DNS name or IP address by a colon). + *

+ * To specify the local machine, use "localhost" as the host. + * Also note: An empty host String ("") is equivalent to "localhost". + *

+ * The actions parameter contains a comma-separated list of the + * actions granted for the specified host (and port(s)). Possible actions are + * "connect", "listen", "accept", "resolve", or + * any combination of those. "resolve" is automatically added + * when any of the other three are specified. + *

+ * Examples of SocketPermission instantiation are the following: + *

+             * nr = new SocketPermission("www.catalog.com", "connect");
+             * nr = new SocketPermission("www.sun.com:80", "connect");
+             * nr = new SocketPermission("*.sun.com", "connect");
+             * nr = new SocketPermission("*.edu", "resolve");
+             * nr = new SocketPermission("204.160.241.0", "connect");
+             * nr = new SocketPermission("localhost:1024-65535", "listen");
+             * nr = new SocketPermission("204.160.241.0:1024-65535", "connect");
+             * 
+ */ + // @ts-ignore + constructor(host: string, action: string) + /** + * Checks if this socket permission object "implies" the + * specified permission. + *

+ * More specifically, this method first ensures that all of the following + * are true (and returns false if any of them are not): + *

    + *
  • p is an instanceof SocketPermission, + *
  • p's actions are a proper subset of this + * object's actions, and + *
  • p's port range is included in this port range. Note: + * port range is ignored when p only contains the action, 'resolve'. + *
+ * Then {@code implies} checks each of the following, in order, + * and for each returns true if the stated condition is true: + *
    + *
  • If this object was initialized with a single IP address and one of p's + * IP addresses is equal to this object's IP address. + *
  • If this object is a wildcard domain (such as *.sun.com), and + * p's canonical name (the name without any preceding *) + * ends with this object's canonical host name. For example, *.sun.com + * implies *.eng.sun.com. + *
  • If this object was not initialized with a single IP address, and one of this + * object's IP addresses equals one of p's IP addresses. + *
  • If this canonical name equals p's canonical name. + *
+ * If none of the above are true, {@code implies} returns false. + */ + // @ts-ignore + public implies(p: java.security.Permission): boolean; + /** + * Checks two SocketPermission objects for equality. + *

+ */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns the hash code value for this object. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns the canonical string representation of the actions. + * Always returns present actions in the following order: + * connect, listen, accept, resolve. + */ + // @ts-ignore + public getActions(): string; + /** + * Returns a new PermissionCollection object for storing SocketPermission + * objects. + *

+ * SocketPermission objects must be stored in a manner that allows them + * to be inserted into the collection in any order, but that also enables the + * PermissionCollection {@code implies} + * method to be implemented in an efficient (and consistent) manner. + */ + // @ts-ignore + public newPermissionCollection(): java.security.PermissionCollection; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.SocketTimeoutException.d.ts b/packages/types/dist/typings/jdk/java.net.SocketTimeoutException.d.ts new file mode 100644 index 00000000..0b2b544d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.SocketTimeoutException.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class SocketTimeoutException extends java.io.InterruptedIOException { + /** + * Constructs a new SocketTimeoutException with a detail + * message. + */ + // @ts-ignore + constructor(msg: string) + /** + * Construct a new SocketTimeoutException with no detailed message. + */ + // @ts-ignore + constructor() + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.StandardProtocolFamily.d.ts b/packages/types/dist/typings/jdk/java.net.StandardProtocolFamily.d.ts new file mode 100644 index 00000000..e2bd2ab0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.StandardProtocolFamily.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class StandardProtocolFamily extends java.lang.Enum { + // @ts-ignore + public static INET: java.net.StandardProtocolFamily; + // @ts-ignore + public static INET6: java.net.StandardProtocolFamily; + // @ts-ignore + public static values(): java.net.StandardProtocolFamily[]; + // @ts-ignore + public static valueOf(name: string): java.net.StandardProtocolFamily; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.StandardSocketOptions.d.ts b/packages/types/dist/typings/jdk/java.net.StandardSocketOptions.d.ts new file mode 100644 index 00000000..df50ca29 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.StandardSocketOptions.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class StandardSocketOptions extends java.lang.Object { + // @ts-ignore + public static SO_BROADCAST: java.net.SocketOption; + // @ts-ignore + public static SO_KEEPALIVE: java.net.SocketOption; + // @ts-ignore + public static SO_SNDBUF: java.net.SocketOption; + // @ts-ignore + public static SO_RCVBUF: java.net.SocketOption; + // @ts-ignore + public static SO_REUSEADDR: java.net.SocketOption; + // @ts-ignore + public static SO_LINGER: java.net.SocketOption; + // @ts-ignore + public static IP_TOS: java.net.SocketOption; + // @ts-ignore + public static IP_MULTICAST_IF: java.net.SocketOption; + // @ts-ignore + public static IP_MULTICAST_TTL: java.net.SocketOption; + // @ts-ignore + public static IP_MULTICAST_LOOP: java.net.SocketOption; + // @ts-ignore + public static TCP_NODELAY: java.net.SocketOption; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.URI.d.ts b/packages/types/dist/typings/jdk/java.net.URI.d.ts new file mode 100644 index 00000000..e39bedb7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.URI.d.ts @@ -0,0 +1,596 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class URI extends java.lang.Object { + /** + * Constructs a URI by parsing the given string. + *

This constructor parses the given string exactly as specified by the + * grammar in RFC 2396, + * Appendix A, except for the following deviations:

+ *
    + *
  • An empty authority component is permitted as long as it is + * followed by a non-empty path, a query component, or a fragment + * component. This allows the parsing of URIs such as + * {@code "file:///foo/bar"}, which seems to be the intent of + * RFC 2396 although the grammar does not permit it. If the + * authority component is empty then the user-information, host, and port + * components are undefined.

  • + *
  • Empty relative paths are permitted; this seems to be the + * intent of RFC 2396 although the grammar does not permit it. The + * primary consequence of this deviation is that a standalone fragment + * such as {@code "#foo"} parses as a relative URI with an empty path + * and the given fragment, and can be usefully resolved against a base URI. + *

  • IPv4 addresses in host components are parsed rigorously, as + * specified by RFC 2732: Each + * element of a dotted-quad address must contain no more than three + * decimal digits. Each element is further constrained to have a value + * no greater than 255.

  • + *
  • Hostnames in host components that comprise only a single + * domain label are permitted to start with an alphanum + * character. This seems to be the intent of RFC 2396 + * section 3.2.2 although the grammar does not permit it. The + * consequence of this deviation is that the authority component of a + * hierarchical URI such as {@code s://123}, will parse as a server-based + * authority.

  • + *
  • IPv6 addresses are permitted for the host component. An IPv6 + * address must be enclosed in square brackets ({@code '['} and + * {@code ']'}) as specified by RFC 2732. The + * IPv6 address itself must parse according to RFC 2373. IPv6 + * addresses are further constrained to describe no more than sixteen + * bytes of address information, a constraint implicit in RFC 2373 + * but not expressible in the grammar.

  • + *
  • Characters in the other category are permitted wherever + * RFC 2396 permits escaped octets, that is, in the + * user-information, path, query, and fragment components, as well as in + * the authority component if the authority is registry-based. This + * allows URIs to contain Unicode characters beyond those in the US-ASCII + * character set.

  • + *
+ */ + // @ts-ignore + constructor(str: string) + /** + * Constructs a hierarchical URI from the given components. + *

If a scheme is given then the path, if also given, must either be + * empty or begin with a slash character ({@code '/'}). Otherwise a + * component of the new URI may be left undefined by passing {@code null} + * for the corresponding parameter or, in the case of the {@code port} + * parameter, by passing {@code -1}. + *

This constructor first builds a URI string from the given components + * according to the rules specified in RFC 2396, + * section 5.2, step 7:

+ *
    + *
  1. Initially, the result string is empty.

  2. + *
  3. If a scheme is given then it is appended to the result, + * followed by a colon character ({@code ':'}).

  4. + *
  5. If user information, a host, or a port are given then the + * string {@code "//"} is appended.

  6. + *
  7. If user information is given then it is appended, followed by + * a commercial-at character ({@code '@'}). Any character not in the + * unreserved, punct, escaped, or other + * categories is quoted.

  8. + *
  9. If a host is given then it is appended. If the host is a + * literal IPv6 address but is not enclosed in square brackets + * ({@code '['} and {@code ']'}) then the square brackets are added. + *

  10. + *
  11. If a port number is given then a colon character + * ({@code ':'}) is appended, followed by the port number in decimal. + *

  12. + *
  13. If a path is given then it is appended. Any character not in + * the unreserved, punct, escaped, or other + * categories, and not equal to the slash character ({@code '/'}) or the + * commercial-at character ({@code '@'}), is quoted.

  14. + *
  15. If a query is given then a question-mark character + * ({@code '?'}) is appended, followed by the query. Any character that + * is not a legal URI character is quoted. + *

  16. + *
  17. Finally, if a fragment is given then a hash character + * ({@code '#'}) is appended, followed by the fragment. Any character + * that is not a legal URI character is quoted.

  18. + *
+ *

The resulting URI string is then parsed as if by invoking the {@link + * #URI(String)} constructor and then invoking the {@link + * #parseServerAuthority()} method upon the result; this may cause a {@link + * URISyntaxException} to be thrown.

+ */ + // @ts-ignore + constructor(scheme: string, userInfo: string, host: string, port: number, path: string, query: string, fragment: string) + /** + * Constructs a hierarchical URI from the given components. + *

If a scheme is given then the path, if also given, must either be + * empty or begin with a slash character ({@code '/'}). Otherwise a + * component of the new URI may be left undefined by passing {@code null} + * for the corresponding parameter. + *

This constructor first builds a URI string from the given components + * according to the rules specified in RFC 2396, + * section 5.2, step 7:

+ *
    + *
  1. Initially, the result string is empty.

  2. + *
  3. If a scheme is given then it is appended to the result, + * followed by a colon character ({@code ':'}).

  4. + *
  5. If an authority is given then the string {@code "//"} is + * appended, followed by the authority. If the authority contains a + * literal IPv6 address then the address must be enclosed in square + * brackets ({@code '['} and {@code ']'}). Any character not in the + * unreserved, punct, escaped, or other + * categories, and not equal to the commercial-at character + * ({@code '@'}), is quoted.

  6. + *
  7. If a path is given then it is appended. Any character not in + * the unreserved, punct, escaped, or other + * categories, and not equal to the slash character ({@code '/'}) or the + * commercial-at character ({@code '@'}), is quoted.

  8. + *
  9. If a query is given then a question-mark character + * ({@code '?'}) is appended, followed by the query. Any character that + * is not a legal URI character is quoted. + *

  10. + *
  11. Finally, if a fragment is given then a hash character + * ({@code '#'}) is appended, followed by the fragment. Any character + * that is not a legal URI character is quoted.

  12. + *
+ *

The resulting URI string is then parsed as if by invoking the {@link + * #URI(String)} constructor and then invoking the {@link + * #parseServerAuthority()} method upon the result; this may cause a {@link + * URISyntaxException} to be thrown.

+ */ + // @ts-ignore + constructor(scheme: string, authority: string, path: string, query: string, fragment: string) + /** + * Constructs a hierarchical URI from the given components. + *

A component may be left undefined by passing {@code null}. + *

This convenience constructor works as if by invoking the + * seven-argument constructor as follows: + *

+ * {@code new} {@link #URI(String, String, String, int, String, String, String) + * URI}{@code (scheme, null, host, -1, path, null, fragment);} + *
+ */ + // @ts-ignore + constructor(scheme: string, host: string, path: string, fragment: string) + /** + * Constructs a URI from the given components. + *

A component may be left undefined by passing {@code null}. + *

This constructor first builds a URI in string form using the given + * components as follows:

+ *
    + *
  1. Initially, the result string is empty.

  2. + *
  3. If a scheme is given then it is appended to the result, + * followed by a colon character ({@code ':'}).

  4. + *
  5. If a scheme-specific part is given then it is appended. Any + * character that is not a legal URI character + * is quoted.

  6. + *
  7. Finally, if a fragment is given then a hash character + * ({@code '#'}) is appended to the string, followed by the fragment. + * Any character that is not a legal URI character is quoted.

  8. + *
+ *

The resulting URI string is then parsed in order to create the new + * URI instance as if by invoking the {@link #URI(String)} constructor; + * this may cause a {@link URISyntaxException} to be thrown.

+ */ + // @ts-ignore + constructor(scheme: string, ssp: string, fragment: string) + /** + * Creates a URI by parsing the given string. + *

This convenience factory method works as if by invoking the {@link + * #URI(String)} constructor; any {@link URISyntaxException} thrown by the + * constructor is caught and wrapped in a new {@link + * IllegalArgumentException} object, which is then thrown. + *

This method is provided for use in situations where it is known that + * the given string is a legal URI, for example for URI constants declared + * within in a program, and so it would be considered a programming error + * for the string not to parse as such. The constructors, which throw + * {@link URISyntaxException} directly, should be used situations where a + * URI is being constructed from user input or from some other source that + * may be prone to errors.

+ */ + // @ts-ignore + public static create(str: string): java.net.URI; + /** + * Attempts to parse this URI's authority component, if defined, into + * user-information, host, and port components. + *

If this URI's authority component has already been recognized as + * being server-based then it will already have been parsed into + * user-information, host, and port components. In this case, or if this + * URI has no authority component, this method simply returns this URI. + *

Otherwise this method attempts once more to parse the authority + * component into user-information, host, and port components, and throws + * an exception describing why the authority component could not be parsed + * in that way. + *

This method is provided because the generic URI syntax specified in + * RFC 2396 + * cannot always distinguish a malformed server-based authority from a + * legitimate registry-based authority. It must therefore treat some + * instances of the former as instances of the latter. The authority + * component in the URI string {@code "//foo:bar"}, for example, is not a + * legal server-based authority but it is legal as a registry-based + * authority. + *

In many common situations, for example when working URIs that are + * known to be either URNs or URLs, the hierarchical URIs being used will + * always be server-based. They therefore must either be parsed as such or + * treated as an error. In these cases a statement such as + *

+ * {@code URI }u{@code = new URI(str).parseServerAuthority();} + *
+ *

can be used to ensure that u always refers to a URI that, if + * it has an authority component, has a server-based authority with proper + * user-information, host, and port components. Invoking this method also + * ensures that if the authority could not be parsed in that way then an + * appropriate diagnostic message can be issued based upon the exception + * that is thrown.

+ */ + // @ts-ignore + public parseServerAuthority(): java.net.URI; + /** + * Normalizes this URI's path. + *

If this URI is opaque, or if its path is already in normal form, + * then this URI is returned. Otherwise a new URI is constructed that is + * identical to this URI except that its path is computed by normalizing + * this URI's path in a manner consistent with RFC 2396, + * section 5.2, step 6, sub-steps c through f; that is: + *

+ *
    + *
  1. All {@code "."} segments are removed.

  2. + *
  3. If a {@code ".."} segment is preceded by a non-{@code ".."} + * segment then both of these segments are removed. This step is + * repeated until it is no longer applicable.

  4. + *
  5. If the path is relative, and if its first segment contains a + * colon character ({@code ':'}), then a {@code "."} segment is + * prepended. This prevents a relative URI with a path such as + * {@code "a:b/c/d"} from later being re-parsed as an opaque URI with a + * scheme of {@code "a"} and a scheme-specific part of {@code "b/c/d"}. + * (Deviation from RFC 2396)

  6. + *
+ *

A normalized path will begin with one or more {@code ".."} segments + * if there were insufficient non-{@code ".."} segments preceding them to + * allow their removal. A normalized path will begin with a {@code "."} + * segment if one was inserted by step 3 above. Otherwise, a normalized + * path will not contain any {@code "."} or {@code ".."} segments.

+ */ + // @ts-ignore + public normalize(): java.net.URI; + /** + * Resolves the given URI against this URI. + *

If the given URI is already absolute, or if this URI is opaque, then + * the given URI is returned. + *

If the given URI's fragment component is + * defined, its path component is empty, and its scheme, authority, and + * query components are undefined, then a URI with the given fragment but + * with all other components equal to those of this URI is returned. This + * allows a URI representing a standalone fragment reference, such as + * {@code "#foo"}, to be usefully resolved against a base URI. + *

Otherwise this method constructs a new hierarchical URI in a manner + * consistent with RFC 2396, + * section 5.2; that is:

+ *
    + *
  1. A new URI is constructed with this URI's scheme and the given + * URI's query and fragment components.

  2. + *
  3. If the given URI has an authority component then the new URI's + * authority and path are taken from the given URI.

  4. + *
  5. Otherwise the new URI's authority component is copied from + * this URI, and its path is computed as follows:

    + *
      + *
    1. If the given URI's path is absolute then the new URI's path + * is taken from the given URI.

    2. + *
    3. Otherwise the given URI's path is relative, and so the new + * URI's path is computed by resolving the path of the given URI + * against the path of this URI. This is done by concatenating all but + * the last segment of this URI's path, if any, with the given URI's + * path and then normalizing the result as if by invoking the {@link + * #normalize() normalize} method.

    4. + *
  6. + *
+ *

The result of this method is absolute if, and only if, either this + * URI is absolute or the given URI is absolute.

+ */ + // @ts-ignore + public resolve(uri: java.net.URI): java.net.URI; + /** + * Constructs a new URI by parsing the given string and then resolving it + * against this URI. + *

This convenience method works as if invoking it were equivalent to + * evaluating the expression {@link #resolve(java.net.URI) + * resolve}{@code (URI.}{@link #create(String) create}{@code (str))}.

+ */ + // @ts-ignore + public resolve(str: string): java.net.URI; + /** + * Relativizes the given URI against this URI. + *

The relativization of the given URI against this URI is computed as + * follows:

+ *
    + *
  1. If either this URI or the given URI are opaque, or if the + * scheme and authority components of the two URIs are not identical, or + * if the path of this URI is not a prefix of the path of the given URI, + * then the given URI is returned.

  2. + *
  3. Otherwise a new relative hierarchical URI is constructed with + * query and fragment components taken from the given URI and with a path + * component computed by removing this URI's path from the beginning of + * the given URI's path.

  4. + *
+ */ + // @ts-ignore + public relativize(uri: java.net.URI): java.net.URI; + /** + * Constructs a URL from this URI. + *

This convenience method works as if invoking it were equivalent to + * evaluating the expression {@code new URL(this.toString())} after + * first checking that this URI is absolute.

+ */ + // @ts-ignore + public toURL(): java.net.URL; + /** + * Returns the scheme component of this URI. + *

The scheme component of a URI, if defined, only contains characters + * in the alphanum category and in the string {@code "-.+"}. A + * scheme always starts with an alpha character.

+ * The scheme component of a URI cannot contain escaped octets, hence this + * method does not perform any decoding. + */ + // @ts-ignore + public getScheme(): string; + /** + * Tells whether or not this URI is absolute. + *

A URI is absolute if, and only if, it has a scheme component.

+ */ + // @ts-ignore + public isAbsolute(): boolean; + /** + * Tells whether or not this URI is opaque. + *

A URI is opaque if, and only if, it is absolute and its + * scheme-specific part does not begin with a slash character ('/'). + * An opaque URI has a scheme, a scheme-specific part, and possibly + * a fragment; all other components are undefined.

+ */ + // @ts-ignore + public isOpaque(): boolean; + /** + * Returns the raw scheme-specific part of this URI. The scheme-specific + * part is never undefined, though it may be empty. + *

The scheme-specific part of a URI only contains legal URI + * characters.

+ */ + // @ts-ignore + public getRawSchemeSpecificPart(): string; + /** + * Returns the decoded scheme-specific part of this URI. + *

The string returned by this method is equal to that returned by the + * {@link #getRawSchemeSpecificPart() getRawSchemeSpecificPart} method + * except that all sequences of escaped octets are decoded.

+ */ + // @ts-ignore + public getSchemeSpecificPart(): string; + /** + * Returns the raw authority component of this URI. + *

The authority component of a URI, if defined, only contains the + * commercial-at character ({@code '@'}) and characters in the + * unreserved, punct, escaped, and other + * categories. If the authority is server-based then it is further + * constrained to have valid user-information, host, and port + * components.

+ */ + // @ts-ignore + public getRawAuthority(): string; + /** + * Returns the decoded authority component of this URI. + *

The string returned by this method is equal to that returned by the + * {@link #getRawAuthority() getRawAuthority} method except that all + * sequences of escaped octets are decoded.

+ */ + // @ts-ignore + public getAuthority(): string; + /** + * Returns the raw user-information component of this URI. + *

The user-information component of a URI, if defined, only contains + * characters in the unreserved, punct, escaped, and + * other categories.

+ */ + // @ts-ignore + public getRawUserInfo(): string; + /** + * Returns the decoded user-information component of this URI. + *

The string returned by this method is equal to that returned by the + * {@link #getRawUserInfo() getRawUserInfo} method except that all + * sequences of escaped octets are decoded.

+ */ + // @ts-ignore + public getUserInfo(): string; + /** + * Returns the host component of this URI. + *

The host component of a URI, if defined, will have one of the + * following forms:

+ *
    + *
  • A domain name consisting of one or more labels + * separated by period characters ({@code '.'}), optionally followed by + * a period character. Each label consists of alphanum characters + * as well as hyphen characters ({@code '-'}), though hyphens never + * occur as the first or last characters in a label. The rightmost + * label of a domain name consisting of two or more labels, begins + * with an alpha character.

  • + *
  • A dotted-quad IPv4 address of the form + * digit{@code +.}digit{@code +.}digit{@code +.}digit{@code +}, + * where no digit sequence is longer than three characters and no + * sequence has a value larger than 255.

  • + *
  • An IPv6 address enclosed in square brackets ({@code '['} and + * {@code ']'}) and consisting of hexadecimal digits, colon characters + * ({@code ':'}), and possibly an embedded IPv4 address. The full + * syntax of IPv6 addresses is specified in RFC 2373: IPv6 + * Addressing Architecture.

  • + *
+ * The host component of a URI cannot contain escaped octets, hence this + * method does not perform any decoding. + */ + // @ts-ignore + public getHost(): string; + /** + * Returns the port number of this URI. + *

The port component of a URI, if defined, is a non-negative + * integer.

+ */ + // @ts-ignore + public getPort(): number; + /** + * Returns the raw path component of this URI. + *

The path component of a URI, if defined, only contains the slash + * character ({@code '/'}), the commercial-at character ({@code '@'}), + * and characters in the unreserved, punct, escaped, + * and other categories.

+ */ + // @ts-ignore + public getRawPath(): string; + /** + * Returns the decoded path component of this URI. + *

The string returned by this method is equal to that returned by the + * {@link #getRawPath() getRawPath} method except that all sequences of + * escaped octets are decoded.

+ */ + // @ts-ignore + public getPath(): string; + /** + * Returns the raw query component of this URI. + *

The query component of a URI, if defined, only contains legal URI + * characters.

+ */ + // @ts-ignore + public getRawQuery(): string; + /** + * Returns the decoded query component of this URI. + *

The string returned by this method is equal to that returned by the + * {@link #getRawQuery() getRawQuery} method except that all sequences of + * escaped octets are decoded.

+ */ + // @ts-ignore + public getQuery(): string; + /** + * Returns the raw fragment component of this URI. + *

The fragment component of a URI, if defined, only contains legal URI + * characters.

+ */ + // @ts-ignore + public getRawFragment(): string; + /** + * Returns the decoded fragment component of this URI. + *

The string returned by this method is equal to that returned by the + * {@link #getRawFragment() getRawFragment} method except that all + * sequences of escaped octets are decoded.

+ */ + // @ts-ignore + public getFragment(): string; + /** + * Tests this URI for equality with another object. + *

If the given object is not a URI then this method immediately + * returns {@code false}. + *

For two URIs to be considered equal requires that either both are + * opaque or both are hierarchical. Their schemes must either both be + * undefined or else be equal without regard to case. Their fragments + * must either both be undefined or else be equal. + *

For two opaque URIs to be considered equal, their scheme-specific + * parts must be equal. + *

For two hierarchical URIs to be considered equal, their paths must + * be equal and their queries must either both be undefined or else be + * equal. Their authorities must either both be undefined, or both be + * registry-based, or both be server-based. If their authorities are + * defined and are registry-based, then they must be equal. If their + * authorities are defined and are server-based, then their hosts must be + * equal without regard to case, their port numbers must be equal, and + * their user-information components must be equal. + *

When testing the user-information, path, query, fragment, authority, + * or scheme-specific parts of two URIs for equality, the raw forms rather + * than the encoded forms of these components are compared and the + * hexadecimal digits of escaped octets are compared without regard to + * case. + *

This method satisfies the general contract of the {@link + * java.lang.Object#equals(Object) Object.equals} method.

+ */ + // @ts-ignore + public equals(ob: java.lang.Object): boolean; + /** + * Returns a hash-code value for this URI. The hash code is based upon all + * of the URI's components, and satisfies the general contract of the + * {@link java.lang.Object#hashCode() Object.hashCode} method. + */ + // @ts-ignore + public hashCode(): number; + /** + * Compares this URI to another object, which must be a URI. + *

When comparing corresponding components of two URIs, if one + * component is undefined but the other is defined then the first is + * considered to be less than the second. Unless otherwise noted, string + * components are ordered according to their natural, case-sensitive + * ordering as defined by the {@link java.lang.String#compareTo(Object) + * String.compareTo} method. String components that are subject to + * encoding are compared by comparing their raw forms rather than their + * encoded forms. + *

The ordering of URIs is defined as follows:

+ *
    + *
  • Two URIs with different schemes are ordered according the + * ordering of their schemes, without regard to case.

  • + *
  • A hierarchical URI is considered to be less than an opaque URI + * with an identical scheme.

  • + *
  • Two opaque URIs with identical schemes are ordered according + * to the ordering of their scheme-specific parts.

  • + *
  • Two opaque URIs with identical schemes and scheme-specific + * parts are ordered according to the ordering of their + * fragments.

  • + *
  • Two hierarchical URIs with identical schemes are ordered + * according to the ordering of their authority components:

    + *
      + *
    • If both authority components are server-based then the URIs + * are ordered according to their user-information components; if these + * components are identical then the URIs are ordered according to the + * ordering of their hosts, without regard to case; if the hosts are + * identical then the URIs are ordered according to the ordering of + * their ports.

    • + *
    • If one or both authority components are registry-based then + * the URIs are ordered according to the ordering of their authority + * components.

    • + *
  • + *
  • Finally, two hierarchical URIs with identical schemes and + * authority components are ordered according to the ordering of their + * paths; if their paths are identical then they are ordered according to + * the ordering of their queries; if the queries are identical then they + * are ordered according to the order of their fragments.

  • + *
+ *

This method satisfies the general contract of the {@link + * java.lang.Comparable#compareTo(Object) Comparable.compareTo} + * method.

+ */ + // @ts-ignore + public compareTo(that: java.net.URI): number; + /** + * Returns the content of this URI as a string. + *

If this URI was created by invoking one of the constructors in this + * class then a string equivalent to the original input string, or to the + * string computed from the originally-given components, as appropriate, is + * returned. Otherwise this URI was created by normalization, resolution, + * or relativization, and so a string is constructed from this URI's + * components according to the rules specified in RFC 2396, + * section 5.2, step 7.

+ */ + // @ts-ignore + public toString(): string; + /** + * Returns the content of this URI as a US-ASCII string. + *

If this URI does not contain any characters in the other + * category then an invocation of this method will return the same value as + * an invocation of the {@link #toString() toString} method. Otherwise + * this method works as if by invoking that method and then encoding the result.

+ */ + // @ts-ignore + public toASCIIString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.URISyntaxException.d.ts b/packages/types/dist/typings/jdk/java.net.URISyntaxException.d.ts new file mode 100644 index 00000000..ec2a0833 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.URISyntaxException.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class URISyntaxException extends java.lang.Exception { + /** + * Constructs an instance from the given input string, reason, and error + * index. + */ + // @ts-ignore + constructor(input: string, reason: string, index: number) + /** + * Constructs an instance from the given input string and reason. The + * resulting object will have an error index of {@code -1}. + */ + // @ts-ignore + constructor(input: string, reason: string) + /** + * Returns the input string. + */ + // @ts-ignore + public getInput(): string; + /** + * Returns a string explaining why the input string could not be parsed. + */ + // @ts-ignore + public getReason(): string; + /** + * Returns an index into the input string of the position at which the + * parse error occurred, or {@code -1} if this position is not known. + */ + // @ts-ignore + public getIndex(): number; + /** + * Returns a string describing the parse error. The resulting string + * consists of the reason string followed by a colon character + * ({@code ':'}), a space, and the input string. If the error index is + * defined then the string {@code " at index "} followed by the index, in + * decimal, is inserted after the reason string and before the colon + * character. + */ + // @ts-ignore + public getMessage(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.URL.d.ts b/packages/types/dist/typings/jdk/java.net.URL.d.ts new file mode 100644 index 00000000..070193f3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.URL.d.ts @@ -0,0 +1,346 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class URL extends java.lang.Object { + /** + * Creates a {@code URL} object from the specified + * {@code protocol}, {@code host}, {@code port} + * number, and {@code file}.

+ * {@code host} can be expressed as a host name or a literal + * IP address. If IPv6 literal address is used, it should be + * enclosed in square brackets ({@code '['} and {@code ']'}), as + * specified by RFC 2732; + * However, the literal IPv6 address format defined in RFC 2373: IP + * Version 6 Addressing Architecture is also accepted.

+ * Specifying a {@code port} number of {@code -1} + * indicates that the URL should use the default port for the + * protocol.

+ * If this is the first URL object being created with the specified + * protocol, a stream protocol handler object, an instance of + * class {@code URLStreamHandler}, is created for that protocol: + *

    + *
  1. If the application has previously set up an instance of + * {@code URLStreamHandlerFactory} as the stream handler factory, + * then the {@code createURLStreamHandler} method of that instance + * is called with the protocol string as an argument to create the + * stream protocol handler. + *
  2. If no {@code URLStreamHandlerFactory} has yet been set up, + * or if the factory's {@code createURLStreamHandler} method + * returns {@code null}, then the constructor finds the + * value of the system property: + *
    +             * java.protocol.handler.pkgs
    +             * 
    + * If the value of that system property is not {@code null}, + * it is interpreted as a list of packages separated by a vertical + * slash character '{@code |}'. The constructor tries to load + * the class named: + *
    +             * <package>.<protocol>.Handler
    +             * 
    + * where <package> is replaced by the name of the package + * and <protocol> is replaced by the name of the protocol. + * If this class does not exist, or if the class exists but it is not + * a subclass of {@code URLStreamHandler}, then the next package + * in the list is tried. + *
  3. If the previous step fails to find a protocol handler, then the + * constructor tries to load from a system default package. + *
    +             * <system default package>.<protocol>.Handler
    +             * 
    + * If this class does not exist, or if the class exists but it is not a + * subclass of {@code URLStreamHandler}, then a + * {@code MalformedURLException} is thrown. + *
+ *

Protocol handlers for the following protocols are guaranteed + * to exist on the search path :- + *

+             * http, https, file, and jar
+             * 
+ * Protocol handlers for additional protocols may also be + * available. + *

No validation of the inputs is performed by this constructor. + */ + // @ts-ignore + constructor(protocol: string, host: string, port: number, file: string) + /** + * Creates a URL from the specified {@code protocol} + * name, {@code host} name, and {@code file} name. The + * default port for the specified protocol is used. + *

+ * This method is equivalent to calling the four-argument + * constructor with the arguments being {@code protocol}, + * {@code host}, {@code -1}, and {@code file}. + * No validation of the inputs is performed by this constructor. + */ + // @ts-ignore + constructor(protocol: string, host: string, file: string) + /** + * Creates a {@code URL} object from the specified + * {@code protocol}, {@code host}, {@code port} + * number, {@code file}, and {@code handler}. Specifying + * a {@code port} number of {@code -1} indicates that + * the URL should use the default port for the protocol. Specifying + * a {@code handler} of {@code null} indicates that the URL + * should use a default stream handler for the protocol, as outlined + * for: + * java.net.URL#URL(java.lang.String, java.lang.String, int, + * java.lang.String) + *

If the handler is not null and there is a security manager, + * the security manager's {@code checkPermission} + * method is called with a + * {@code NetPermission("specifyStreamHandler")} permission. + * This may result in a SecurityException. + * No validation of the inputs is performed by this constructor. + */ + // @ts-ignore + constructor(protocol: string, host: string, port: number, file: string, handler: java.net.URLStreamHandler) + /** + * Creates a {@code URL} object from the {@code String} + * representation. + *

+ * This constructor is equivalent to a call to the two-argument + * constructor with a {@code null} first argument. + */ + // @ts-ignore + constructor(spec: string) + /** + * Creates a URL by parsing the given spec within a specified context. + * The new URL is created from the given context URL and the spec + * argument as described in + * RFC2396 "Uniform Resource Identifiers : Generic * Syntax" : + *

+             * <scheme>://<authority><path>?<query>#<fragment>
+             * 
+ * The reference is parsed into the scheme, authority, path, query and + * fragment parts. If the path component is empty and the scheme, + * authority, and query components are undefined, then the new URL is a + * reference to the current document. Otherwise, the fragment and query + * parts present in the spec are used in the new URL. + *

+ * If the scheme component is defined in the given spec and does not match + * the scheme of the context, then the new URL is created as an absolute + * URL based on the spec alone. Otherwise the scheme component is inherited + * from the context URL. + *

+ * If the authority component is present in the spec then the spec is + * treated as absolute and the spec authority and path will replace the + * context authority and path. If the authority component is absent in the + * spec then the authority of the new URL will be inherited from the + * context. + *

+ * If the spec's path component begins with a slash character + * "/" then the + * path is treated as absolute and the spec path replaces the context path. + *

+ * Otherwise, the path is treated as a relative path and is appended to the + * context path, as described in RFC2396. Also, in this case, + * the path is canonicalized through the removal of directory + * changes made by occurrences of ".." and ".". + *

+ * For a more detailed description of URL parsing, refer to RFC2396. + */ + // @ts-ignore + constructor(context: java.net.URL, spec: string) + /** + * Creates a URL by parsing the given spec with the specified handler + * within a specified context. If the handler is null, the parsing + * occurs as with the two argument constructor. + */ + // @ts-ignore + constructor(context: java.net.URL, spec: string, handler: java.net.URLStreamHandler) + /** + * Gets the query part of this {@code URL}. + */ + // @ts-ignore + public getQuery(): string; + /** + * Gets the path part of this {@code URL}. + */ + // @ts-ignore + public getPath(): string; + /** + * Gets the userInfo part of this {@code URL}. + */ + // @ts-ignore + public getUserInfo(): string; + /** + * Gets the authority part of this {@code URL}. + */ + // @ts-ignore + public getAuthority(): string; + /** + * Gets the port number of this {@code URL}. + */ + // @ts-ignore + public getPort(): number; + /** + * Gets the default port number of the protocol associated + * with this {@code URL}. If the URL scheme or the URLStreamHandler + * for the URL do not define a default port number, + * then -1 is returned. + */ + // @ts-ignore + public getDefaultPort(): number; + /** + * Gets the protocol name of this {@code URL}. + */ + // @ts-ignore + public getProtocol(): string; + /** + * Gets the host name of this {@code URL}, if applicable. + * The format of the host conforms to RFC 2732, i.e. for a + * literal IPv6 address, this method will return the IPv6 address + * enclosed in square brackets ({@code '['} and {@code ']'}). + */ + // @ts-ignore + public getHost(): string; + /** + * Gets the file name of this {@code URL}. + * The returned file portion will be + * the same as getPath(), plus the concatenation of + * the value of getQuery(), if any. If there is + * no query portion, this method and getPath() will + * return identical results. + */ + // @ts-ignore + public getFile(): string; + /** + * Gets the anchor (also known as the "reference") of this + * {@code URL}. + */ + // @ts-ignore + public getRef(): string; + /** + * Compares this URL for equality with another object.

+ * If the given object is not a URL then this method immediately returns + * {@code false}.

+ * Two URL objects are equal if they have the same protocol, reference + * equivalent hosts, have the same port number on the host, and the same + * file and fragment of the file.

+ * Two hosts are considered equivalent if both host names can be resolved + * into the same IP addresses; else if either host name can't be + * resolved, the host names must be equal without regard to case; or both + * host names equal to null.

+ * Since hosts comparison requires name resolution, this operation is a + * blocking operation.

+ * Note: The defined behavior for {@code equals} is known to + * be inconsistent with virtual hosting in HTTP. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Creates an integer suitable for hash table indexing.

+ * The hash code is based upon all the URL components relevant for URL + * comparison. As such, this operation is a blocking operation.

+ */ + // @ts-ignore + public hashCode(): number; + /** + * Compares two URLs, excluding the fragment component.

+ * Returns {@code true} if this {@code URL} and the + * {@code other} argument are equal without taking the + * fragment component into consideration. + */ + // @ts-ignore + public sameFile(other: java.net.URL): boolean; + /** + * Constructs a string representation of this {@code URL}. The + * string is created by calling the {@code toExternalForm} + * method of the stream protocol handler for this object. + */ + // @ts-ignore + public toString(): string; + /** + * Constructs a string representation of this {@code URL}. The + * string is created by calling the {@code toExternalForm} + * method of the stream protocol handler for this object. + */ + // @ts-ignore + public toExternalForm(): string; + /** + * Returns a {@link java.net.URI} equivalent to this URL. + * This method functions in the same way as {@code new URI (this.toString())}. + *

Note, any URL instance that complies with RFC 2396 can be converted + * to a URI. However, some URLs that are not strictly in compliance + * can not be converted to a URI. + */ + // @ts-ignore + public toURI(): java.net.URI; + /** + * Returns a {@link java.net.URLConnection URLConnection} instance that + * represents a connection to the remote object referred to by the + * {@code URL}. + *

A new instance of {@linkplain java.net.URLConnection URLConnection} is + * created every time when invoking the + * {@linkplain java.net.URLStreamHandler#openConnection(URL) + * URLStreamHandler.openConnection(URL)} method of the protocol handler for + * this URL.

+ *

It should be noted that a URLConnection instance does not establish + * the actual network connection on creation. This will happen only when + * calling {@linkplain java.net.URLConnection#connect() URLConnection.connect()}.

+ *

If for the URL's protocol (such as HTTP or JAR), there + * exists a public, specialized URLConnection subclass belonging + * to one of the following packages or one of their subpackages: + * java.lang, java.io, java.util, java.net, the connection + * returned will be of that subclass. For example, for HTTP an + * HttpURLConnection will be returned, and for JAR a + * JarURLConnection will be returned.

+ */ + // @ts-ignore + public openConnection(): java.net.URLConnection; + /** + * Same as {@link #openConnection()}, except that the connection will be + * made through the specified proxy; Protocol handlers that do not + * support proxing will ignore the proxy parameter and make a + * normal connection. + * Invoking this method preempts the system's default ProxySelector + * settings. + */ + // @ts-ignore + public openConnection(proxy: java.net.Proxy): java.net.URLConnection; + /** + * Opens a connection to this {@code URL} and returns an + * {@code InputStream} for reading from that connection. This + * method is a shorthand for: + *
+             * openConnection().getInputStream()
+             * 
+ */ + // @ts-ignore + public openStream(): java.io.InputStream; + /** + * Gets the contents of this URL. This method is a shorthand for: + *
+             * openConnection().getContent()
+             * 
+ */ + // @ts-ignore + public getContent(): java.lang.Object; + /** + * Gets the contents of this URL. This method is a shorthand for: + *
+             * openConnection().getContent(Class[])
+             * 
+ */ + // @ts-ignore + public getContent(classes: java.lang.Class): java.lang.Object; + /** + * Sets an application's {@code URLStreamHandlerFactory}. + * This method can be called at most once in a given Java Virtual + * Machine. + *

The {@code URLStreamHandlerFactory} instance is used to + * construct a stream protocol handler from a protocol name. + *

If there is a security manager, this method first calls + * the security manager's {@code checkSetFactory} method + * to ensure the operation is allowed. + * This could result in a SecurityException. + */ + // @ts-ignore + public static setURLStreamHandlerFactory(fac: java.net.URLStreamHandlerFactory): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.URLClassLoader.d.ts b/packages/types/dist/typings/jdk/java.net.URLClassLoader.d.ts new file mode 100644 index 00000000..34d6df48 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.URLClassLoader.d.ts @@ -0,0 +1,161 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class URLClassLoader extends java.security.SecureClassLoader { + /** + * Constructs a new URLClassLoader for the given URLs. The URLs will be + * searched in the order specified for classes and resources after first + * searching in the specified parent class loader. Any URL that ends with + * a '/' is assumed to refer to a directory. Otherwise, the URL is assumed + * to refer to a JAR file which will be downloaded and opened as needed. + *

If there is a security manager, this method first + * calls the security manager's {@code checkCreateClassLoader} method + * to ensure creation of a class loader is allowed. + */ + // @ts-ignore + constructor(urls: java.net.URL, parent: java.lang.ClassLoader) + /** + * Constructs a new URLClassLoader for the specified URLs using the + * default delegation parent {@code ClassLoader}. The URLs will + * be searched in the order specified for classes and resources after + * first searching in the parent class loader. Any URL that ends with + * a '/' is assumed to refer to a directory. Otherwise, the URL is + * assumed to refer to a JAR file which will be downloaded and opened + * as needed. + *

If there is a security manager, this method first + * calls the security manager's {@code checkCreateClassLoader} method + * to ensure creation of a class loader is allowed. + */ + // @ts-ignore + constructor(urls: java.net.URL) + /** + * Constructs a new URLClassLoader for the specified URLs, parent + * class loader, and URLStreamHandlerFactory. The parent argument + * will be used as the parent class loader for delegation. The + * factory argument will be used as the stream handler factory to + * obtain protocol handlers when creating new jar URLs. + *

If there is a security manager, this method first + * calls the security manager's {@code checkCreateClassLoader} method + * to ensure creation of a class loader is allowed. + */ + // @ts-ignore + constructor(urls: java.net.URL, parent: java.lang.ClassLoader, factory: java.net.URLStreamHandlerFactory) + /** + * Returns an input stream for reading the specified resource. + * If this loader is closed, then any resources opened by this method + * will be closed. + *

The search order is described in the documentation for {@link + * #getResource(String)}.

+ */ + // @ts-ignore + public getResourceAsStream(name: string): java.io.InputStream; + /** + * Closes this URLClassLoader, so that it can no longer be used to load + * new classes or resources that are defined by this loader. + * Classes and resources defined by any of this loader's parents in the + * delegation hierarchy are still accessible. Also, any classes or resources + * that are already loaded, are still accessible. + *

+ * In the case of jar: and file: URLs, it also closes any files + * that were opened by it. If another thread is loading a + * class when the {@code close} method is invoked, then the result of + * that load is undefined. + *

+ * The method makes a best effort attempt to close all opened files, + * by catching {@link IOException}s internally. Unchecked exceptions + * and errors are not caught. Calling close on an already closed + * loader has no effect. + *

+ */ + // @ts-ignore + public close(): void; + /** + * Appends the specified URL to the list of URLs to search for + * classes and resources. + *

+ * If the URL specified is {@code null} or is already in the + * list of URLs, or if this loader is closed, then invoking this + * method has no effect. + */ + // @ts-ignore + protected addURL(url: java.net.URL): void; + /** + * Returns the search path of URLs for loading classes and resources. + * This includes the original list of URLs specified to the constructor, + * along with any URLs subsequently appended by the addURL() method. + */ + // @ts-ignore + public getURLs(): java.net.URL[]; + /** + * Finds and loads the class with the specified name from the URL search + * path. Any URLs referring to JAR files are loaded and opened as needed + * until the class is found. + */ + // @ts-ignore + protected findClass(name: string): java.lang.Class; + /** + * Defines a new package by name in this ClassLoader. The attributes + * contained in the specified Manifest will be used to obtain package + * version and sealing information. For sealed packages, the additional + * URL specifies the code source URL from which the package was loaded. + */ + // @ts-ignore + protected definePackage(name: string, man: java.util.jar.Manifest, url: java.net.URL): java.lang.Package; + /** + * Finds the resource with the specified name on the URL search path. + */ + // @ts-ignore + public findResource(name: string): java.net.URL; + /** + * Returns an Enumeration of URLs representing all of the resources + * on the URL search path having the specified name. + */ + // @ts-ignore + public findResources(name: string): java.util.Enumeration; + /** + * Returns the permissions for the given codesource object. + * The implementation of this method first calls super.getPermissions + * and then adds permissions based on the URL of the codesource. + *

+ * If the protocol of this URL is "jar", then the permission granted + * is based on the permission that is required by the URL of the Jar + * file. + *

+ * If the protocol is "file" and there is an authority component, then + * permission to connect to and accept connections from that authority + * may be granted. If the protocol is "file" + * and the path specifies a file, then permission to read that + * file is granted. If protocol is "file" and the path is + * a directory, permission is granted to read all files + * and (recursively) all files and subdirectories contained in + * that directory. + *

+ * If the protocol is not "file", then permission + * to connect to and accept connections from the URL's host is granted. + */ + // @ts-ignore + protected getPermissions(codesource: java.security.CodeSource): java.security.PermissionCollection; + /** + * Creates a new instance of URLClassLoader for the specified + * URLs and parent class loader. If a security manager is + * installed, the {@code loadClass} method of the URLClassLoader + * returned by this method will invoke the + * {@code SecurityManager.checkPackageAccess} method before + * loading the class. + */ + // @ts-ignore + public static newInstance(urls: java.net.URL, parent: java.lang.ClassLoader): java.net.URLClassLoader; + /** + * Creates a new instance of URLClassLoader for the specified + * URLs and default parent class loader. If a security manager is + * installed, the {@code loadClass} method of the URLClassLoader + * returned by this method will invoke the + * {@code SecurityManager.checkPackageAccess} before + * loading the class. + */ + // @ts-ignore + public static newInstance(urls: java.net.URL): java.net.URLClassLoader; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.URLConnection.d.ts b/packages/types/dist/typings/jdk/java.net.URLConnection.d.ts new file mode 100644 index 00000000..23521097 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.URLConnection.d.ts @@ -0,0 +1,495 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + abstract class URLConnection extends java.lang.Object { + /** + * Constructs a URL connection to the specified URL. A connection to + * the object referenced by the URL is not created. + */ + // @ts-ignore + constructor(url: java.net.URL) + // @ts-ignore + protected url: java.net.URL; + // @ts-ignore + protected doInput: boolean; + // @ts-ignore + protected doOutput: boolean; + // @ts-ignore + protected allowUserInteraction: boolean; + // @ts-ignore + protected useCaches: boolean; + // @ts-ignore + protected ifModifiedSince: number; + // @ts-ignore + protected connected: boolean; + /** + * Loads filename map (a mimetable) from a data file. It will + * first try to load the user-specific table, defined + * by "content.types.user.table" property. If that fails, + * it tries to load the default built-in table. + */ + // @ts-ignore + public static getFileNameMap(): java.net.FileNameMap; + /** + * Sets the FileNameMap. + *

+ * If there is a security manager, this method first calls + * the security manager's {@code checkSetFactory} method + * to ensure the operation is allowed. + * This could result in a SecurityException. + */ + // @ts-ignore + public static setFileNameMap(map: java.net.FileNameMap): void; + /** + * Opens a communications link to the resource referenced by this + * URL, if such a connection has not already been established. + *

+ * If the {@code connect} method is called when the connection + * has already been opened (indicated by the {@code connected} + * field having the value {@code true}), the call is ignored. + *

+ * URLConnection objects go through two phases: first they are + * created, then they are connected. After being created, and + * before being connected, various options can be specified + * (e.g., doInput and UseCaches). After connecting, it is an + * error to try to set them. Operations that depend on being + * connected, like getContentLength, will implicitly perform the + * connection, if necessary. + */ + // @ts-ignore + public abstract connect(): void; + /** + * Sets a specified timeout value, in milliseconds, to be used + * when opening a communications link to the resource referenced + * by this URLConnection. If the timeout expires before the + * connection can be established, a + * java.net.SocketTimeoutException is raised. A timeout of zero is + * interpreted as an infinite timeout. + *

Some non-standard implementation of this method may ignore + * the specified timeout. To see the connect timeout set, please + * call getConnectTimeout(). + */ + // @ts-ignore + public setConnectTimeout(timeout: number): void; + /** + * Returns setting for connect timeout. + *

+ * 0 return implies that the option is disabled + * (i.e., timeout of infinity). + */ + // @ts-ignore + public getConnectTimeout(): number; + /** + * Sets the read timeout to a specified timeout, in + * milliseconds. A non-zero value specifies the timeout when + * reading from Input stream when a connection is established to a + * resource. If the timeout expires before there is data available + * for read, a java.net.SocketTimeoutException is raised. A + * timeout of zero is interpreted as an infinite timeout. + *

Some non-standard implementation of this method ignores the + * specified timeout. To see the read timeout set, please call + * getReadTimeout(). + */ + // @ts-ignore + public setReadTimeout(timeout: number): void; + /** + * Returns setting for read timeout. 0 return implies that the + * option is disabled (i.e., timeout of infinity). + */ + // @ts-ignore + public getReadTimeout(): number; + /** + * Returns the value of this {@code URLConnection}'s {@code URL} + * field. + */ + // @ts-ignore + public getURL(): java.net.URL; + /** + * Returns the value of the {@code content-length} header field. + *

+ * Note: {@link #getContentLengthLong() getContentLengthLong()} + * should be preferred over this method, since it returns a {@code long} + * instead and is therefore more portable.

+ */ + // @ts-ignore + public getContentLength(): number; + /** + * Returns the value of the {@code content-length} header field as a + * long. + */ + // @ts-ignore + public getContentLengthLong(): number; + /** + * Returns the value of the {@code content-type} header field. + */ + // @ts-ignore + public getContentType(): string; + /** + * Returns the value of the {@code content-encoding} header field. + */ + // @ts-ignore + public getContentEncoding(): string; + /** + * Returns the value of the {@code expires} header field. + */ + // @ts-ignore + public getExpiration(): number; + /** + * Returns the value of the {@code date} header field. + */ + // @ts-ignore + public getDate(): number; + /** + * Returns the value of the {@code last-modified} header field. + * The result is the number of milliseconds since January 1, 1970 GMT. + */ + // @ts-ignore + public getLastModified(): number; + /** + * Returns the value of the named header field. + *

+ * If called on a connection that sets the same header multiple times + * with possibly different values, only the last value is returned. + */ + // @ts-ignore + public getHeaderField(name: string): string; + /** + * Returns an unmodifiable Map of the header fields. + * The Map keys are Strings that represent the + * response-header field names. Each Map value is an + * unmodifiable List of Strings that represents + * the corresponding field values. + */ + // @ts-ignore + public getHeaderFields(): java.util.Map; + /** + * Returns the value of the named field parsed as a number. + *

+ * This form of {@code getHeaderField} exists because some + * connection types (e.g., {@code http-ng}) have pre-parsed + * headers. Classes for that connection type can override this method + * and short-circuit the parsing. + */ + // @ts-ignore + public getHeaderFieldInt(name: string, Default: number): number; + /** + * Returns the value of the named field parsed as a number. + *

+ * This form of {@code getHeaderField} exists because some + * connection types (e.g., {@code http-ng}) have pre-parsed + * headers. Classes for that connection type can override this method + * and short-circuit the parsing. + */ + // @ts-ignore + public getHeaderFieldLong(name: string, Default: number): number; + /** + * Returns the value of the named field parsed as date. + * The result is the number of milliseconds since January 1, 1970 GMT + * represented by the named field. + *

+ * This form of {@code getHeaderField} exists because some + * connection types (e.g., {@code http-ng}) have pre-parsed + * headers. Classes for that connection type can override this method + * and short-circuit the parsing. + */ + // @ts-ignore + public getHeaderFieldDate(name: string, Default: number): number; + /** + * Returns the key for the {@code n}th header field. + * It returns {@code null} if there are fewer than {@code n+1} fields. + */ + // @ts-ignore + public getHeaderFieldKey(n: number): string; + /** + * Returns the value for the {@code n}th header field. + * It returns {@code null} if there are fewer than + * {@code n+1}fields. + *

+ * This method can be used in conjunction with the + * {@link #getHeaderFieldKey(int) getHeaderFieldKey} method to iterate through all + * the headers in the message. + */ + // @ts-ignore + public getHeaderField(n: number): string; + /** + * Retrieves the contents of this URL connection. + *

+ * This method first determines the content type of the object by + * calling the {@code getContentType} method. If this is + * the first time that the application has seen that specific content + * type, a content handler for that content type is created: + *

    + *
  1. If the application has set up a content handler factory instance + * using the {@code setContentHandlerFactory} method, the + * {@code createContentHandler} method of that instance is called + * with the content type as an argument; the result is a content + * handler for that content type. + *
  2. If no content handler factory has yet been set up, or if the + * factory's {@code createContentHandler} method returns + * {@code null}, then the application loads the class named: + *
    +             * sun.net.www.content.<contentType>
    +             * 
    + * where <contentType> is formed by taking the + * content-type string, replacing all slash characters with a + * {@code period} ('.'), and all other non-alphanumeric characters + * with the underscore character '{@code _}'. The alphanumeric + * characters are specifically the 26 uppercase ASCII letters + * '{@code A}' through '{@code Z}', the 26 lowercase ASCII + * letters '{@code a}' through '{@code z}', and the 10 ASCII + * digits '{@code 0}' through '{@code 9}'. If the specified + * class does not exist, or is not a subclass of + * {@code ContentHandler}, then an + * {@code UnknownServiceException} is thrown. + *
+ */ + // @ts-ignore + public getContent(): java.lang.Object; + /** + * Retrieves the contents of this URL connection. + */ + // @ts-ignore + public getContent(classes: java.lang.Class): java.lang.Object; + /** + * Returns a permission object representing the permission + * necessary to make the connection represented by this + * object. This method returns null if no permission is + * required to make the connection. By default, this method + * returns {@code java.security.AllPermission}. Subclasses + * should override this method and return the permission + * that best represents the permission required to make a + * a connection to the URL. For example, a {@code URLConnection} + * representing a {@code file:} URL would return a + * {@code java.io.FilePermission} object. + *

The permission returned may dependent upon the state of the + * connection. For example, the permission before connecting may be + * different from that after connecting. For example, an HTTP + * sever, say foo.com, may redirect the connection to a different + * host, say bar.com. Before connecting the permission returned by + * the connection will represent the permission needed to connect + * to foo.com, while the permission returned after connecting will + * be to bar.com. + *

Permissions are generally used for two purposes: to protect + * caches of objects obtained through URLConnections, and to check + * the right of a recipient to learn about a particular URL. In + * the first case, the permission should be obtained + * after the object has been obtained. For example, in an + * HTTP connection, this will represent the permission to connect + * to the host from which the data was ultimately fetched. In the + * second case, the permission should be obtained and tested + * before connecting. + */ + // @ts-ignore + public getPermission(): java.security.Permission; + /** + * Returns an input stream that reads from this open connection. + * A SocketTimeoutException can be thrown when reading from the + * returned input stream if the read timeout expires before data + * is available for read. + */ + // @ts-ignore + public getInputStream(): java.io.InputStream; + /** + * Returns an output stream that writes to this connection. + */ + // @ts-ignore + public getOutputStream(): java.io.OutputStream; + /** + * Returns a {@code String} representation of this URL connection. + */ + // @ts-ignore + public toString(): string; + /** + * Sets the value of the {@code doInput} field for this + * {@code URLConnection} to the specified value. + *

+ * A URL connection can be used for input and/or output. Set the DoInput + * flag to true if you intend to use the URL connection for input, + * false if not. The default is true. + */ + // @ts-ignore + public setDoInput(doinput: boolean): void; + /** + * Returns the value of this {@code URLConnection}'s + * {@code doInput} flag. + */ + // @ts-ignore + public getDoInput(): boolean; + /** + * Sets the value of the {@code doOutput} field for this + * {@code URLConnection} to the specified value. + *

+ * A URL connection can be used for input and/or output. Set the DoOutput + * flag to true if you intend to use the URL connection for output, + * false if not. The default is false. + */ + // @ts-ignore + public setDoOutput(dooutput: boolean): void; + /** + * Returns the value of this {@code URLConnection}'s + * {@code doOutput} flag. + */ + // @ts-ignore + public getDoOutput(): boolean; + /** + * Set the value of the {@code allowUserInteraction} field of + * this {@code URLConnection}. + */ + // @ts-ignore + public setAllowUserInteraction(allowuserinteraction: boolean): void; + /** + * Returns the value of the {@code allowUserInteraction} field for + * this object. + */ + // @ts-ignore + public getAllowUserInteraction(): boolean; + /** + * Sets the default value of the + * {@code allowUserInteraction} field for all future + * {@code URLConnection} objects to the specified value. + */ + // @ts-ignore + public static setDefaultAllowUserInteraction(defaultallowuserinteraction: boolean): void; + /** + * Returns the default value of the {@code allowUserInteraction} + * field. + *

+ * Ths default is "sticky", being a part of the static state of all + * URLConnections. This flag applies to the next, and all following + * URLConnections that are created. + */ + // @ts-ignore + public static getDefaultAllowUserInteraction(): boolean; + /** + * Sets the value of the {@code useCaches} field of this + * {@code URLConnection} to the specified value. + *

+ * Some protocols do caching of documents. Occasionally, it is important + * to be able to "tunnel through" and ignore the caches (e.g., the + * "reload" button in a browser). If the UseCaches flag on a connection + * is true, the connection is allowed to use whatever caches it can. + * If false, caches are to be ignored. + * The default value comes from DefaultUseCaches, which defaults to + * true. + */ + // @ts-ignore + public setUseCaches(usecaches: boolean): void; + /** + * Returns the value of this {@code URLConnection}'s + * {@code useCaches} field. + */ + // @ts-ignore + public getUseCaches(): boolean; + /** + * Sets the value of the {@code ifModifiedSince} field of + * this {@code URLConnection} to the specified value. + */ + // @ts-ignore + public setIfModifiedSince(ifmodifiedsince: number): void; + /** + * Returns the value of this object's {@code ifModifiedSince} field. + */ + // @ts-ignore + public getIfModifiedSince(): number; + /** + * Returns the default value of a {@code URLConnection}'s + * {@code useCaches} flag. + *

+ * Ths default is "sticky", being a part of the static state of all + * URLConnections. This flag applies to the next, and all following + * URLConnections that are created. + */ + // @ts-ignore + public getDefaultUseCaches(): boolean; + /** + * Sets the default value of the {@code useCaches} field to the + * specified value. + */ + // @ts-ignore + public setDefaultUseCaches(defaultusecaches: boolean): void; + /** + * Sets the general request property. If a property with the key already + * exists, overwrite its value with the new value. + *

NOTE: HTTP requires all request properties which can + * legally have multiple instances with the same key + * to use a comma-separated list syntax which enables multiple + * properties to be appended into a single property. + */ + // @ts-ignore + public setRequestProperty(key: string, value: string): void; + /** + * Adds a general request property specified by a + * key-value pair. This method will not overwrite + * existing values associated with the same key. + */ + // @ts-ignore + public addRequestProperty(key: string, value: string): void; + /** + * Returns the value of the named general request property for this + * connection. + */ + // @ts-ignore + public getRequestProperty(key: string): string; + /** + * Returns an unmodifiable Map of general request + * properties for this connection. The Map keys + * are Strings that represent the request-header + * field names. Each Map value is a unmodifiable List + * of Strings that represents the corresponding + * field values. + */ + // @ts-ignore + public getRequestProperties(): java.util.Map; + /** + * Sets the default value of a general request property. When a + * {@code URLConnection} is created, it is initialized with + * these properties. + */ + // @ts-ignore + public static setDefaultRequestProperty(key: string, value: string): void; + /** + * Returns the value of the default request property. Default request + * properties are set for every connection. + */ + // @ts-ignore + public static getDefaultRequestProperty(key: string): string; + /** + * Sets the {@code ContentHandlerFactory} of an + * application. It can be called at most once by an application. + *

+ * The {@code ContentHandlerFactory} instance is used to + * construct a content handler from a content type + *

+ * If there is a security manager, this method first calls + * the security manager's {@code checkSetFactory} method + * to ensure the operation is allowed. + * This could result in a SecurityException. + */ + // @ts-ignore + public static setContentHandlerFactory(fac: java.net.ContentHandlerFactory): void; + /** + * Tries to determine the content type of an object, based + * on the specified "file" component of a URL. + * This is a convenience method that can be used by + * subclasses that override the {@code getContentType} method. + */ + // @ts-ignore + public static guessContentTypeFromName(fname: string): string; + /** + * Tries to determine the type of an input stream based on the + * characters at the beginning of the input stream. This method can + * be used by subclasses that override the + * {@code getContentType} method. + *

+ * Ideally, this routine would not be needed. But many + * {@code http} servers return the incorrect content type; in + * addition, there are many nonstandard extensions. Direct inspection + * of the bytes to determine the content type is often more accurate + * than believing the content type claimed by the {@code http} server. + */ + // @ts-ignore + public static guessContentTypeFromStream(is: java.io.InputStream): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.URLDecoder.d.ts b/packages/types/dist/typings/jdk/java.net.URLDecoder.d.ts new file mode 100644 index 00000000..aba31dfa --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.URLDecoder.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class URLDecoder extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Decodes a {@code x-www-form-urlencoded} string. + * The platform's default encoding is used to determine what characters + * are represented by any consecutive sequences of the form + * "{@code %xy}". + */ + // @ts-ignore + public static decode(s: string): string; + /** + * Decodes a {@code application/x-www-form-urlencoded} string using a specific + * encoding scheme. + * The supplied encoding is used to determine + * what characters are represented by any consecutive sequences of the + * form "{@code %xy}". + *

+ * Note: The + * World Wide Web Consortium Recommendation states that + * UTF-8 should be used. Not doing so may introduce + * incompatibilities. + */ + // @ts-ignore + public static decode(s: string, enc: string): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.URLEncoder.d.ts b/packages/types/dist/typings/jdk/java.net.URLEncoder.d.ts new file mode 100644 index 00000000..c6f6b212 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.URLEncoder.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class URLEncoder extends java.lang.Object { + /** + * Translates a string into {@code x-www-form-urlencoded} + * format. This method uses the platform's default encoding + * as the encoding scheme to obtain the bytes for unsafe characters. + */ + // @ts-ignore + public static encode(s: string): string; + /** + * Translates a string into {@code application/x-www-form-urlencoded} + * format using a specific encoding scheme. This method uses the + * supplied encoding scheme to obtain the bytes for unsafe + * characters. + *

+ * Note: The + * World Wide Web Consortium Recommendation states that + * UTF-8 should be used. Not doing so may introduce + * incompatibilities. + */ + // @ts-ignore + public static encode(s: string, enc: string): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.URLPermission.d.ts b/packages/types/dist/typings/jdk/java.net.URLPermission.d.ts new file mode 100644 index 00000000..53e1e546 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.URLPermission.d.ts @@ -0,0 +1,87 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class URLPermission extends java.security.Permission { + /** + * Creates a new URLPermission from a url string and which permits the given + * request methods and user-settable request headers. + * The name of the permission is the url string it was created with. Only the scheme, + * authority and path components of the url are used internally. Any fragment or query + * components are ignored. The permissions action string is as specified above. + */ + // @ts-ignore + constructor(url: string, actions: string) + /** + * Creates a URLPermission with the given url string and unrestricted + * methods and request headers by invoking the two argument + * constructor as follows: URLPermission(url, "*:*") + */ + // @ts-ignore + constructor(url: string) + /** + * Returns the normalized method list and request + * header list, in the form: + *

+             * "method-names : header-names"
+             * 
+ *

+ * where method-names is the list of methods separated by commas + * and header-names is the list of permitted headers separated by commas. + * There is no white space in the returned String. If header-names is empty + * then the colon separator will not be present. + */ + // @ts-ignore + public getActions(): string; + /** + * Checks if this URLPermission implies the given permission. + * Specifically, the following checks are done as if in the + * following sequence: + *

    + *
  • if 'p' is not an instance of URLPermission return false
  • + *
  • if any of p's methods are not in this's method list, and if + * this's method list is not equal to "*", then return false.
  • + *
  • if any of p's headers are not in this's request header list, and if + * this's request header list is not equal to "*", then return false.
  • + *
  • if this's url scheme is not equal to p's url scheme return false
  • + *
  • if the scheme specific part of this's url is '*' return true
  • + *
  • if the set of hosts defined by p's url hostrange is not a subset of + * this's url hostrange then return false. For example, "*.foo.oracle.com" + * is a subset of "*.oracle.com". "foo.bar.oracle.com" is not + * a subset of "*.foo.oracle.com"
  • + *
  • if the portrange defined by p's url is not a subset of the + * portrange defined by this's url then return false. + *
  • if the path or paths specified by p's url are contained in the + * set of paths specified by this's url, then return true + *
  • otherwise, return false
  • + *
+ *

Some examples of how paths are matched are shown below: + * + * + * + * + * + * + * + * + * + * + *
Examples of Path Matching
this's pathp's pathmatch
/a/b/a/byes
/a/b/*/a/b/cyes
/a/b/*/a/b/c/dno
/a/b/-/a/b/c/dyes
/a/b/-/a/b/c/d/eyes
/a/b/-/a/b/c/*yes
/a/b/*/a/b/c/-no
+ */ + // @ts-ignore + public implies(p: java.security.Permission): boolean; + /** + * Returns true if, this.getActions().equals(p.getActions()) + * and p's url equals this's url. Returns false otherwise. + */ + // @ts-ignore + public equals(p: java.lang.Object): boolean; + /** + * Returns a hashcode calculated from the hashcode of the + * actions String and the url string. + */ + // @ts-ignore + public hashCode(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.URLStreamHandler.d.ts b/packages/types/dist/typings/jdk/java.net.URLStreamHandler.d.ts new file mode 100644 index 00000000..ea4be160 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.URLStreamHandler.d.ts @@ -0,0 +1,110 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + abstract class URLStreamHandler extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Opens a connection to the object referenced by the + * {@code URL} argument. + * This method should be overridden by a subclass. + *

If for the handler's protocol (such as HTTP or JAR), there + * exists a public, specialized URLConnection subclass belonging + * to one of the following packages or one of their subpackages: + * java.lang, java.io, java.util, java.net, the connection + * returned will be of that subclass. For example, for HTTP an + * HttpURLConnection will be returned, and for JAR a + * JarURLConnection will be returned. + */ + // @ts-ignore + protected abstract openConnection(u: java.net.URL): java.net.URLConnection; + /** + * Same as openConnection(URL), except that the connection will be + * made through the specified proxy; Protocol handlers that do not + * support proxying will ignore the proxy parameter and make a + * normal connection. + * Calling this method preempts the system's default ProxySelector + * settings. + */ + // @ts-ignore + protected openConnection(u: java.net.URL, p: java.net.Proxy): java.net.URLConnection; + /** + * Parses the string representation of a {@code URL} into a + * {@code URL} object. + *

+ * If there is any inherited context, then it has already been + * copied into the {@code URL} argument. + *

+ * The {@code parseURL} method of {@code URLStreamHandler} + * parses the string representation as if it were an + * {@code http} specification. Most URL protocol families have a + * similar parsing. A stream protocol handler for a protocol that has + * a different syntax must override this routine. + */ + // @ts-ignore + protected parseURL(u: java.net.URL, spec: string, start: number, limit: number): void; + /** + * Returns the default port for a URL parsed by this handler. This method + * is meant to be overidden by handlers with default port numbers. + */ + // @ts-ignore + protected getDefaultPort(): number; + /** + * Provides the default equals calculation. May be overidden by handlers + * for other protocols that have different requirements for equals(). + * This method requires that none of its arguments is null. This is + * guaranteed by the fact that it is only called by java.net.URL class. + */ + // @ts-ignore + protected equals(u1: java.net.URL, u2: java.net.URL): boolean; + /** + * Provides the default hash calculation. May be overidden by handlers for + * other protocols that have different requirements for hashCode + * calculation. + */ + // @ts-ignore + protected hashCode(u: java.net.URL): number; + /** + * Compare two urls to see whether they refer to the same file, + * i.e., having the same protocol, host, port, and path. + * This method requires that none of its arguments is null. This is + * guaranteed by the fact that it is only called indirectly + * by java.net.URL class. + */ + // @ts-ignore + protected sameFile(u1: java.net.URL, u2: java.net.URL): boolean; + /** + * Get the IP address of our host. An empty host field or a DNS failure + * will result in a null return. + */ + // @ts-ignore + protected getHostAddress(u: java.net.URL): java.net.InetAddress; + /** + * Compares the host components of two URLs. + */ + // @ts-ignore + protected hostsEqual(u1: java.net.URL, u2: java.net.URL): boolean; + /** + * Converts a {@code URL} of a specific protocol to a + * {@code String}. + */ + // @ts-ignore + protected toExternalForm(u: java.net.URL): string; + /** + * Sets the fields of the {@code URL} argument to the indicated values. + * Only classes derived from URLStreamHandler are able + * to use this method to set the values of the URL fields. + */ + // @ts-ignore + protected setURL(u: java.net.URL, protocol: string, host: string, port: number, authority: string, userInfo: string, path: string, query: string, ref: string): void; + /** + * Sets the fields of the {@code URL} argument to the indicated values. + * Only classes derived from URLStreamHandler are able + * to use this method to set the values of the URL fields. + */ + // @ts-ignore + protected setURL(u: java.net.URL, protocol: string, host: string, port: number, file: string, ref: string): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.URLStreamHandlerFactory.d.ts b/packages/types/dist/typings/jdk/java.net.URLStreamHandlerFactory.d.ts new file mode 100644 index 00000000..5141a3fa --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.URLStreamHandlerFactory.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + interface URLStreamHandlerFactory { + /** + * Creates a new {@code URLStreamHandler} instance with the specified + * protocol. + */ + // @ts-ignore + createURLStreamHandler(protocol: string): java.net.URLStreamHandler; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.UnknownHostException.d.ts b/packages/types/dist/typings/jdk/java.net.UnknownHostException.d.ts new file mode 100644 index 00000000..8325308c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.UnknownHostException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class UnknownHostException extends java.io.IOException { + /** + * Constructs a new {@code UnknownHostException} with the + * specified detail message. + */ + // @ts-ignore + constructor(host: string) + /** + * Constructs a new {@code UnknownHostException} with no detail + * message. + */ + // @ts-ignore + constructor() + } + } +} diff --git a/packages/types/dist/typings/jdk/java.net.UnknownServiceException.d.ts b/packages/types/dist/typings/jdk/java.net.UnknownServiceException.d.ts new file mode 100644 index 00000000..61db4084 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.net.UnknownServiceException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace net { + // @ts-ignore + class UnknownServiceException extends java.io.IOException { + /** + * Constructs a new {@code UnknownServiceException} with no + * detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs a new {@code UnknownServiceException} with the + * specified detail message. + */ + // @ts-ignore + constructor(msg: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.Buffer.d.ts b/packages/types/dist/typings/jdk/java.nio.Buffer.d.ts new file mode 100644 index 00000000..95086793 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.Buffer.d.ts @@ -0,0 +1,150 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + // @ts-ignore + abstract class Buffer extends java.lang.Object { + /** + * Returns this buffer's capacity. + */ + // @ts-ignore + public capacity(): number; + /** + * Returns this buffer's position. + */ + // @ts-ignore + public position(): number; + /** + * Sets this buffer's position. If the mark is defined and larger than the + * new position then it is discarded. + */ + // @ts-ignore + public position(newPosition: number): java.nio.Buffer; + /** + * Returns this buffer's limit. + */ + // @ts-ignore + public limit(): number; + /** + * Sets this buffer's limit. If the position is larger than the new limit + * then it is set to the new limit. If the mark is defined and larger than + * the new limit then it is discarded. + */ + // @ts-ignore + public limit(newLimit: number): java.nio.Buffer; + /** + * Sets this buffer's mark at its position. + */ + // @ts-ignore + public mark(): java.nio.Buffer; + /** + * Resets this buffer's position to the previously-marked position. + *

Invoking this method neither changes nor discards the mark's + * value.

+ */ + // @ts-ignore + public reset(): java.nio.Buffer; + /** + * Clears this buffer. The position is set to zero, the limit is set to + * the capacity, and the mark is discarded. + *

Invoke this method before using a sequence of channel-read or + * put operations to fill this buffer. For example: + *

+             * buf.clear();     // Prepare buffer for reading
+             * in.read(buf);    // Read data
+ *

This method does not actually erase the data in the buffer, but it + * is named as if it did because it will most often be used in situations + * in which that might as well be the case.

+ */ + // @ts-ignore + public clear(): java.nio.Buffer; + /** + * Flips this buffer. The limit is set to the current position and then + * the position is set to zero. If the mark is defined then it is + * discarded. + *

After a sequence of channel-read or put operations, invoke + * this method to prepare for a sequence of channel-write or relative + * get operations. For example: + *

+             * buf.put(magic);    // Prepend header
+             * in.read(buf);      // Read data into rest of buffer
+             * buf.flip();        // Flip buffer
+             * out.write(buf);    // Write header + data to channel
+ *

This method is often used in conjunction with the {@link + * java.nio.ByteBuffer#compact compact} method when transferring data from + * one place to another.

+ */ + // @ts-ignore + public flip(): java.nio.Buffer; + /** + * Rewinds this buffer. The position is set to zero and the mark is + * discarded. + *

Invoke this method before a sequence of channel-write or get + * operations, assuming that the limit has already been set + * appropriately. For example: + *

+             * out.write(buf);    // Write remaining data
+             * buf.rewind();      // Rewind buffer
+             * buf.get(array);    // Copy data into array
+ */ + // @ts-ignore + public rewind(): java.nio.Buffer; + /** + * Returns the number of elements between the current position and the + * limit. + */ + // @ts-ignore + public remaining(): number; + /** + * Tells whether there are any elements between the current position and + * the limit. + */ + // @ts-ignore + public hasRemaining(): boolean; + /** + * Tells whether or not this buffer is read-only. + */ + // @ts-ignore + public abstract isReadOnly(): boolean; + /** + * Tells whether or not this buffer is backed by an accessible + * array. + *

If this method returns true then the {@link #array() array} + * and {@link #arrayOffset() arrayOffset} methods may safely be invoked. + *

+ */ + // @ts-ignore + public abstract hasArray(): boolean; + /** + * Returns the array that backs this + * buffer  (optional operation). + *

This method is intended to allow array-backed buffers to be + * passed to native code more efficiently. Concrete subclasses + * provide more strongly-typed return values for this method. + *

Modifications to this buffer's content will cause the returned + * array's content to be modified, and vice versa. + *

Invoke the {@link #hasArray hasArray} method before invoking this + * method in order to ensure that this buffer has an accessible backing + * array.

+ */ + // @ts-ignore + public abstract array(): java.lang.Object; + /** + * Returns the offset within this buffer's backing array of the first + * element of the buffer  (optional operation). + *

If this buffer is backed by an array then buffer position p + * corresponds to array index p + arrayOffset(). + *

Invoke the {@link #hasArray hasArray} method before invoking this + * method in order to ensure that this buffer has an accessible backing + * array.

+ */ + // @ts-ignore + public abstract arrayOffset(): number; + /** + * Tells whether or not this buffer is + * direct. + */ + // @ts-ignore + public abstract isDirect(): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.BufferOverflowException.d.ts b/packages/types/dist/typings/jdk/java.nio.BufferOverflowException.d.ts new file mode 100644 index 00000000..9334f577 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.BufferOverflowException.d.ts @@ -0,0 +1,13 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + // @ts-ignore + class BufferOverflowException extends java.lang.RuntimeException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.BufferUnderflowException.d.ts b/packages/types/dist/typings/jdk/java.nio.BufferUnderflowException.d.ts new file mode 100644 index 00000000..1e648b1e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.BufferUnderflowException.d.ts @@ -0,0 +1,13 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + // @ts-ignore + class BufferUnderflowException extends java.lang.RuntimeException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.ByteBuffer.d.ts b/packages/types/dist/typings/jdk/java.nio.ByteBuffer.d.ts new file mode 100644 index 00000000..a1c638e3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.ByteBuffer.d.ts @@ -0,0 +1,489 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + // @ts-ignore + abstract class ByteBuffer extends java.nio.Buffer { + /** + * Allocates a new direct byte buffer. + *

The new buffer's position will be zero, its limit will be its + * capacity, its mark will be undefined, and each of its elements will be + * initialized to zero. Whether or not it has a + * {@link #hasArray backing array} is unspecified. + */ + // @ts-ignore + public static allocateDirect(capacity: number): java.nio.ByteBuffer; + /** + * Allocates a new byte buffer. + *

The new buffer's position will be zero, its limit will be its + * capacity, its mark will be undefined, and each of its elements will be + * initialized to zero. It will have a {@link #array backing array}, + * and its {@link #arrayOffset array offset} will be zero. + */ + // @ts-ignore + public static allocate(capacity: number): java.nio.ByteBuffer; + /** + * Wraps a byte array into a buffer. + *

The new buffer will be backed by the given byte array; + * that is, modifications to the buffer will cause the array to be modified + * and vice versa. The new buffer's capacity will be + * array.length, its position will be offset, its limit + * will be offset + length, and its mark will be undefined. Its + * {@link #array backing array} will be the given array, and + * its {@link #arrayOffset array offset} will be zero.

+ */ + // @ts-ignore + public static wrap(array: number, offset: number, length: number): java.nio.ByteBuffer; + /** + * Wraps a byte array into a buffer. + *

The new buffer will be backed by the given byte array; + * that is, modifications to the buffer will cause the array to be modified + * and vice versa. The new buffer's capacity and limit will be + * array.length, its position will be zero, and its mark will be + * undefined. Its {@link #array backing array} will be the + * given array, and its {@link #arrayOffset array offset>} will + * be zero.

+ */ + // @ts-ignore + public static wrap(array: number): java.nio.ByteBuffer; + /** + * Creates a new byte buffer that shares this buffer's content. + *

The content of the new buffer will be that of this buffer. Changes + * to this buffer's content will be visible in the new buffer, and vice + * versa; the two buffers' position, limit, and mark values will be + * independent. + *

The new buffer's capacity, limit, position, and mark values will be + * identical to those of this buffer. The new buffer will be direct if, + * and only if, this buffer is direct, and it will be read-only if, and + * only if, this buffer is read-only.

+ */ + // @ts-ignore + public abstract duplicate(): java.nio.ByteBuffer; + /** + * Creates a new, read-only byte buffer that shares this buffer's + * content. + *

The content of the new buffer will be that of this buffer. Changes + * to this buffer's content will be visible in the new buffer; the new + * buffer itself, however, will be read-only and will not allow the shared + * content to be modified. The two buffers' position, limit, and mark + * values will be independent. + *

The new buffer's capacity, limit, position, and mark values will be + * identical to those of this buffer. + *

If this buffer is itself read-only then this method behaves in + * exactly the same way as the {@link #duplicate duplicate} method.

+ */ + // @ts-ignore + public abstract asReadOnlyBuffer(): java.nio.ByteBuffer; + /** + * Relative get method. Reads the byte at this buffer's + * current position, and then increments the position. + */ + // @ts-ignore + public abstract get(): number; + /** + * Relative put method  (optional operation). + *

Writes the given byte into this buffer at the current + * position, and then increments the position.

+ */ + // @ts-ignore + public abstract put(b: number): java.nio.ByteBuffer; + /** + * Relative bulk get method. + *

This method transfers bytes from this buffer into the given + * destination array. If there are fewer bytes remaining in the + * buffer than are required to satisfy the request, that is, if + * length > remaining(), then no + * bytes are transferred and a {@link BufferUnderflowException} is + * thrown. + *

Otherwise, this method copies length bytes from this + * buffer into the given array, starting at the current position of this + * buffer and at the given offset in the array. The position of this + * buffer is then incremented by length. + *

In other words, an invocation of this method of the form + * src.get(dst, off, len) has exactly the same effect as + * the loop + *

{@code
+             * for (int i = off; i < off + len; i++)
+             * dst[i] = src.get():
+             * }
+ * except that it first checks that there are sufficient bytes in + * this buffer and it is potentially much more efficient. + */ + // @ts-ignore + public get(dst: number, offset: number, length: number): java.nio.ByteBuffer; + /** + * Relative bulk get method. + *

This method transfers bytes from this buffer into the given + * destination array. An invocation of this method of the form + * src.get(a) behaves in exactly the same way as the invocation + *

+             * src.get(a, 0, a.length) 
+ */ + // @ts-ignore + public get(dst: number): java.nio.ByteBuffer; + /** + * Relative bulk put method  (optional operation). + *

This method transfers the bytes remaining in the given source + * buffer into this buffer. If there are more bytes remaining in the + * source buffer than in this buffer, that is, if + * src.remaining() > remaining(), + * then no bytes are transferred and a {@link + * BufferOverflowException} is thrown. + *

Otherwise, this method copies + * n = src.remaining() bytes from the given + * buffer into this buffer, starting at each buffer's current position. + * The positions of both buffers are then incremented by n. + *

In other words, an invocation of this method of the form + * dst.put(src) has exactly the same effect as the loop + *

+             * while (src.hasRemaining())
+             * dst.put(src.get()); 
+ * except that it first checks that there is sufficient space in this + * buffer and it is potentially much more efficient. + */ + // @ts-ignore + public put(src: java.nio.ByteBuffer): java.nio.ByteBuffer; + /** + * Relative bulk put method  (optional operation). + *

This method transfers bytes into this buffer from the given + * source array. If there are more bytes to be copied from the array + * than remain in this buffer, that is, if + * length > remaining(), then no + * bytes are transferred and a {@link BufferOverflowException} is + * thrown. + *

Otherwise, this method copies length bytes from the + * given array into this buffer, starting at the given offset in the array + * and at the current position of this buffer. The position of this buffer + * is then incremented by length. + *

In other words, an invocation of this method of the form + * dst.put(src, off, len) has exactly the same effect as + * the loop + *

{@code
+             * for (int i = off; i < off + len; i++)
+             * dst.put(a[i]);
+             * }
+ * except that it first checks that there is sufficient space in this + * buffer and it is potentially much more efficient. + */ + // @ts-ignore + public put(src: number, offset: number, length: number): java.nio.ByteBuffer; + /** + * Relative bulk put method  (optional operation). + *

This method transfers the entire content of the given source + * byte array into this buffer. An invocation of this method of the + * form dst.put(a) behaves in exactly the same way as the + * invocation + *

+             * dst.put(a, 0, a.length) 
+ */ + // @ts-ignore + public put(src: number): java.nio.ByteBuffer; + /** + * Tells whether or not this buffer is backed by an accessible byte + * array. + *

If this method returns true then the {@link #array() array} + * and {@link #arrayOffset() arrayOffset} methods may safely be invoked. + *

+ */ + // @ts-ignore + public hasArray(): boolean; + /** + * Returns the byte array that backs this + * buffer  (optional operation). + *

Modifications to this buffer's content will cause the returned + * array's content to be modified, and vice versa. + *

Invoke the {@link #hasArray hasArray} method before invoking this + * method in order to ensure that this buffer has an accessible backing + * array.

+ */ + // @ts-ignore + public array(): number[]; + /** + * Returns the offset within this buffer's backing array of the first + * element of the buffer  (optional operation). + *

If this buffer is backed by an array then buffer position p + * corresponds to array index p + arrayOffset(). + *

Invoke the {@link #hasArray hasArray} method before invoking this + * method in order to ensure that this buffer has an accessible backing + * array.

+ */ + // @ts-ignore + public arrayOffset(): number; + /** + * Compacts this buffer  (optional operation). + *

The bytes between the buffer's current position and its limit, + * if any, are copied to the beginning of the buffer. That is, the + * byte at index p = position() is copied + * to index zero, the byte at index p + 1 is copied + * to index one, and so forth until the byte at index + * limit() - 1 is copied to index + * n = limit() - 1 - p. + * The buffer's position is then set to n+1 and its limit is set to + * its capacity. The mark, if defined, is discarded. + *

The buffer's position is set to the number of bytes copied, + * rather than to zero, so that an invocation of this method can be + * followed immediately by an invocation of another relative put + * method.

+ *

Invoke this method after writing data from a buffer in case the + * write was incomplete. The following loop, for example, copies bytes + * from one channel to another via the buffer buf: + *

{@code
+             * buf.clear();          // Prepare buffer for use
+             * while (in.read(buf) >= 0 || buf.position != 0) {
+             * buf.flip();
+             * out.write(buf);
+             * buf.compact();    // In case of partial write
+             * }
+             * }
+ */ + // @ts-ignore + public abstract compact(): java.nio.ByteBuffer; + /** + * Tells whether or not this byte buffer is direct. + */ + // @ts-ignore + public abstract isDirect(): boolean; + /** + * Returns a string summarizing the state of this buffer. + */ + // @ts-ignore + public toString(): string; + /** + * Returns the current hash code of this buffer. + *

The hash code of a byte buffer depends only upon its remaining + * elements; that is, upon the elements from position() up to, and + * including, the element at limit() - 1. + *

Because buffer hash codes are content-dependent, it is inadvisable + * to use buffers as keys in hash maps or similar data structures unless it + * is known that their contents will not change.

+ */ + // @ts-ignore + public hashCode(): number; + /** + * Tells whether or not this buffer is equal to another object. + *

Two byte buffers are equal if, and only if, + *

    + *
  1. They have the same element type,

  2. + *
  3. They have the same number of remaining elements, and + *

  4. + *
  5. The two sequences of remaining elements, considered + * independently of their starting positions, are pointwise equal. + *

  6. + *
+ *

A byte buffer is not equal to any other type of object.

+ */ + // @ts-ignore + public equals(ob: java.lang.Object): boolean; + /** + * Compares this buffer to another. + *

Two byte buffers are compared by comparing their sequences of + * remaining elements lexicographically, without regard to the starting + * position of each sequence within its corresponding buffer. + * Pairs of {@code byte} elements are compared as if by invoking + * {@link Byte#compare(byte,byte)}. + *

A byte buffer is not comparable to any other type of object. + */ + // @ts-ignore + public compareTo(that: java.nio.ByteBuffer): number; + /** + * Retrieves this buffer's byte order. + *

The byte order is used when reading or writing multibyte values, and + * when creating buffers that are views of this byte buffer. The order of + * a newly-created byte buffer is always {@link ByteOrder#BIG_ENDIAN + * BIG_ENDIAN}.

+ */ + // @ts-ignore + public order(): java.nio.ByteOrder; + /** + * Modifies this buffer's byte order. + */ + // @ts-ignore + public order(bo: java.nio.ByteOrder): java.nio.ByteBuffer; + /** + * Relative get method for reading a char value. + *

Reads the next two bytes at this buffer's current position, + * composing them into a char value according to the current byte order, + * and then increments the position by two.

+ */ + // @ts-ignore + public abstract getChar(): string; + /** + * Relative put method for writing a char + * value  (optional operation). + *

Writes two bytes containing the given char value, in the + * current byte order, into this buffer at the current position, and then + * increments the position by two.

+ */ + // @ts-ignore + public abstract putChar(value: string): java.nio.ByteBuffer; + /** + * Creates a view of this byte buffer as a char buffer. + *

The content of the new buffer will start at this buffer's current + * position. Changes to this buffer's content will be visible in the new + * buffer, and vice versa; the two buffers' position, limit, and mark + * values will be independent. + *

The new buffer's position will be zero, its capacity and its limit + * will be the number of bytes remaining in this buffer divided by + * two, and its mark will be undefined. The new buffer will be direct + * if, and only if, this buffer is direct, and it will be read-only if, and + * only if, this buffer is read-only.

+ */ + // @ts-ignore + public abstract asCharBuffer(): java.nio.CharBuffer; + /** + * Relative get method for reading a short value. + *

Reads the next two bytes at this buffer's current position, + * composing them into a short value according to the current byte order, + * and then increments the position by two.

+ */ + // @ts-ignore + public abstract getShort(): number; + /** + * Relative put method for writing a short + * value  (optional operation). + *

Writes two bytes containing the given short value, in the + * current byte order, into this buffer at the current position, and then + * increments the position by two.

+ */ + // @ts-ignore + public abstract putShort(value: number): java.nio.ByteBuffer; + /** + * Creates a view of this byte buffer as a short buffer. + *

The content of the new buffer will start at this buffer's current + * position. Changes to this buffer's content will be visible in the new + * buffer, and vice versa; the two buffers' position, limit, and mark + * values will be independent. + *

The new buffer's position will be zero, its capacity and its limit + * will be the number of bytes remaining in this buffer divided by + * two, and its mark will be undefined. The new buffer will be direct + * if, and only if, this buffer is direct, and it will be read-only if, and + * only if, this buffer is read-only.

+ */ + // @ts-ignore + public abstract asShortBuffer(): java.nio.ShortBuffer; + /** + * Relative get method for reading an int value. + *

Reads the next four bytes at this buffer's current position, + * composing them into an int value according to the current byte order, + * and then increments the position by four.

+ */ + // @ts-ignore + public abstract getInt(): number; + /** + * Relative put method for writing an int + * value  (optional operation). + *

Writes four bytes containing the given int value, in the + * current byte order, into this buffer at the current position, and then + * increments the position by four.

+ */ + // @ts-ignore + public abstract putInt(value: number): java.nio.ByteBuffer; + /** + * Creates a view of this byte buffer as an int buffer. + *

The content of the new buffer will start at this buffer's current + * position. Changes to this buffer's content will be visible in the new + * buffer, and vice versa; the two buffers' position, limit, and mark + * values will be independent. + *

The new buffer's position will be zero, its capacity and its limit + * will be the number of bytes remaining in this buffer divided by + * four, and its mark will be undefined. The new buffer will be direct + * if, and only if, this buffer is direct, and it will be read-only if, and + * only if, this buffer is read-only.

+ */ + // @ts-ignore + public abstract asIntBuffer(): java.nio.IntBuffer; + /** + * Relative get method for reading a long value. + *

Reads the next eight bytes at this buffer's current position, + * composing them into a long value according to the current byte order, + * and then increments the position by eight.

+ */ + // @ts-ignore + public abstract getLong(): number; + /** + * Relative put method for writing a long + * value  (optional operation). + *

Writes eight bytes containing the given long value, in the + * current byte order, into this buffer at the current position, and then + * increments the position by eight.

+ */ + // @ts-ignore + public abstract putLong(value: number): java.nio.ByteBuffer; + /** + * Creates a view of this byte buffer as a long buffer. + *

The content of the new buffer will start at this buffer's current + * position. Changes to this buffer's content will be visible in the new + * buffer, and vice versa; the two buffers' position, limit, and mark + * values will be independent. + *

The new buffer's position will be zero, its capacity and its limit + * will be the number of bytes remaining in this buffer divided by + * eight, and its mark will be undefined. The new buffer will be direct + * if, and only if, this buffer is direct, and it will be read-only if, and + * only if, this buffer is read-only.

+ */ + // @ts-ignore + public abstract asLongBuffer(): java.nio.LongBuffer; + /** + * Relative get method for reading a float value. + *

Reads the next four bytes at this buffer's current position, + * composing them into a float value according to the current byte order, + * and then increments the position by four.

+ */ + // @ts-ignore + public abstract getFloat(): number; + /** + * Relative put method for writing a float + * value  (optional operation). + *

Writes four bytes containing the given float value, in the + * current byte order, into this buffer at the current position, and then + * increments the position by four.

+ */ + // @ts-ignore + public abstract putFloat(value: number): java.nio.ByteBuffer; + /** + * Creates a view of this byte buffer as a float buffer. + *

The content of the new buffer will start at this buffer's current + * position. Changes to this buffer's content will be visible in the new + * buffer, and vice versa; the two buffers' position, limit, and mark + * values will be independent. + *

The new buffer's position will be zero, its capacity and its limit + * will be the number of bytes remaining in this buffer divided by + * four, and its mark will be undefined. The new buffer will be direct + * if, and only if, this buffer is direct, and it will be read-only if, and + * only if, this buffer is read-only.

+ */ + // @ts-ignore + public abstract asFloatBuffer(): java.nio.FloatBuffer; + /** + * Relative get method for reading a double value. + *

Reads the next eight bytes at this buffer's current position, + * composing them into a double value according to the current byte order, + * and then increments the position by eight.

+ */ + // @ts-ignore + public abstract getDouble(): number; + /** + * Relative put method for writing a double + * value  (optional operation). + *

Writes eight bytes containing the given double value, in the + * current byte order, into this buffer at the current position, and then + * increments the position by eight.

+ */ + // @ts-ignore + public abstract putDouble(value: number): java.nio.ByteBuffer; + /** + * Creates a view of this byte buffer as a double buffer. + *

The content of the new buffer will start at this buffer's current + * position. Changes to this buffer's content will be visible in the new + * buffer, and vice versa; the two buffers' position, limit, and mark + * values will be independent. + *

The new buffer's position will be zero, its capacity and its limit + * will be the number of bytes remaining in this buffer divided by + * eight, and its mark will be undefined. The new buffer will be direct + * if, and only if, this buffer is direct, and it will be read-only if, and + * only if, this buffer is read-only.

+ */ + // @ts-ignore + public abstract asDoubleBuffer(): java.nio.DoubleBuffer; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.ByteOrder.d.ts b/packages/types/dist/typings/jdk/java.nio.ByteOrder.d.ts new file mode 100644 index 00000000..6d688a10 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.ByteOrder.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + // @ts-ignore + class ByteOrder extends java.lang.Object { + // @ts-ignore + public static BIG_ENDIAN: java.nio.ByteOrder; + // @ts-ignore + public static LITTLE_ENDIAN: java.nio.ByteOrder; + /** + * Retrieves the native byte order of the underlying platform. + *

This method is defined so that performance-sensitive Java code can + * allocate direct buffers with the same byte order as the hardware. + * Native code libraries are often more efficient when such buffers are + * used.

+ */ + // @ts-ignore + public static nativeOrder(): java.nio.ByteOrder; + /** + * Constructs a string describing this object. + *

This method returns the string "BIG_ENDIAN" for {@link + * #BIG_ENDIAN} and "LITTLE_ENDIAN" for {@link #LITTLE_ENDIAN}. + *

+ */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.CharBuffer.d.ts b/packages/types/dist/typings/jdk/java.nio.CharBuffer.d.ts new file mode 100644 index 00000000..3f92c8ee --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.CharBuffer.d.ts @@ -0,0 +1,412 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + // @ts-ignore + abstract class CharBuffer extends java.nio.Buffer { + /** + * Allocates a new char buffer. + *

The new buffer's position will be zero, its limit will be its + * capacity, its mark will be undefined, and each of its elements will be + * initialized to zero. It will have a {@link #array backing array}, + * and its {@link #arrayOffset array offset} will be zero. + */ + // @ts-ignore + public static allocate(capacity: number): java.nio.CharBuffer; + /** + * Wraps a char array into a buffer. + *

The new buffer will be backed by the given char array; + * that is, modifications to the buffer will cause the array to be modified + * and vice versa. The new buffer's capacity will be + * array.length, its position will be offset, its limit + * will be offset + length, and its mark will be undefined. Its + * {@link #array backing array} will be the given array, and + * its {@link #arrayOffset array offset} will be zero.

+ */ + // @ts-ignore + public static wrap(array: string, offset: number, length: number): java.nio.CharBuffer; + /** + * Wraps a char array into a buffer. + *

The new buffer will be backed by the given char array; + * that is, modifications to the buffer will cause the array to be modified + * and vice versa. The new buffer's capacity and limit will be + * array.length, its position will be zero, and its mark will be + * undefined. Its {@link #array backing array} will be the + * given array, and its {@link #arrayOffset array offset>} will + * be zero.

+ */ + // @ts-ignore + public static wrap(array: string): java.nio.CharBuffer; + /** + * Attempts to read characters into the specified character buffer. + * The buffer is used as a repository of characters as-is: the only + * changes made are the results of a put operation. No flipping or + * rewinding of the buffer is performed. + */ + // @ts-ignore + public read(target: java.nio.CharBuffer): number; + /** + * Wraps a character sequence into a buffer. + *

The content of the new, read-only buffer will be the content of the + * given character sequence. The buffer's capacity will be + * csq.length(), its position will be start, its limit + * will be end, and its mark will be undefined.

+ */ + // @ts-ignore + public static wrap(csq: java.lang.CharSequence, start: number, end: number): java.nio.CharBuffer; + /** + * Wraps a character sequence into a buffer. + *

The content of the new, read-only buffer will be the content of the + * given character sequence. The new buffer's capacity and limit will be + * csq.length(), its position will be zero, and its mark will be + * undefined.

+ */ + // @ts-ignore + public static wrap(csq: java.lang.CharSequence): java.nio.CharBuffer; + /** + * Creates a new char buffer that shares this buffer's content. + *

The content of the new buffer will be that of this buffer. Changes + * to this buffer's content will be visible in the new buffer, and vice + * versa; the two buffers' position, limit, and mark values will be + * independent. + *

The new buffer's capacity, limit, position, and mark values will be + * identical to those of this buffer. The new buffer will be direct if, + * and only if, this buffer is direct, and it will be read-only if, and + * only if, this buffer is read-only.

+ */ + // @ts-ignore + public abstract duplicate(): java.nio.CharBuffer; + /** + * Creates a new, read-only char buffer that shares this buffer's + * content. + *

The content of the new buffer will be that of this buffer. Changes + * to this buffer's content will be visible in the new buffer; the new + * buffer itself, however, will be read-only and will not allow the shared + * content to be modified. The two buffers' position, limit, and mark + * values will be independent. + *

The new buffer's capacity, limit, position, and mark values will be + * identical to those of this buffer. + *

If this buffer is itself read-only then this method behaves in + * exactly the same way as the {@link #duplicate duplicate} method.

+ */ + // @ts-ignore + public abstract asReadOnlyBuffer(): java.nio.CharBuffer; + /** + * Relative get method. Reads the char at this buffer's + * current position, and then increments the position. + */ + // @ts-ignore + public abstract get(): string; + /** + * Relative put method  (optional operation). + *

Writes the given char into this buffer at the current + * position, and then increments the position.

+ */ + // @ts-ignore + public abstract put(c: string): java.nio.CharBuffer; + /** + * Relative bulk get method. + *

This method transfers chars from this buffer into the given + * destination array. If there are fewer chars remaining in the + * buffer than are required to satisfy the request, that is, if + * length > remaining(), then no + * chars are transferred and a {@link BufferUnderflowException} is + * thrown. + *

Otherwise, this method copies length chars from this + * buffer into the given array, starting at the current position of this + * buffer and at the given offset in the array. The position of this + * buffer is then incremented by length. + *

In other words, an invocation of this method of the form + * src.get(dst, off, len) has exactly the same effect as + * the loop + *

{@code
+             * for (int i = off; i < off + len; i++)
+             * dst[i] = src.get():
+             * }
+ * except that it first checks that there are sufficient chars in + * this buffer and it is potentially much more efficient. + */ + // @ts-ignore + public get(dst: string, offset: number, length: number): java.nio.CharBuffer; + /** + * Relative bulk get method. + *

This method transfers chars from this buffer into the given + * destination array. An invocation of this method of the form + * src.get(a) behaves in exactly the same way as the invocation + *

+             * src.get(a, 0, a.length) 
+ */ + // @ts-ignore + public get(dst: string): java.nio.CharBuffer; + /** + * Relative bulk put method  (optional operation). + *

This method transfers the chars remaining in the given source + * buffer into this buffer. If there are more chars remaining in the + * source buffer than in this buffer, that is, if + * src.remaining() > remaining(), + * then no chars are transferred and a {@link + * BufferOverflowException} is thrown. + *

Otherwise, this method copies + * n = src.remaining() chars from the given + * buffer into this buffer, starting at each buffer's current position. + * The positions of both buffers are then incremented by n. + *

In other words, an invocation of this method of the form + * dst.put(src) has exactly the same effect as the loop + *

+             * while (src.hasRemaining())
+             * dst.put(src.get()); 
+ * except that it first checks that there is sufficient space in this + * buffer and it is potentially much more efficient. + */ + // @ts-ignore + public put(src: java.nio.CharBuffer): java.nio.CharBuffer; + /** + * Relative bulk put method  (optional operation). + *

This method transfers chars into this buffer from the given + * source array. If there are more chars to be copied from the array + * than remain in this buffer, that is, if + * length > remaining(), then no + * chars are transferred and a {@link BufferOverflowException} is + * thrown. + *

Otherwise, this method copies length chars from the + * given array into this buffer, starting at the given offset in the array + * and at the current position of this buffer. The position of this buffer + * is then incremented by length. + *

In other words, an invocation of this method of the form + * dst.put(src, off, len) has exactly the same effect as + * the loop + *

{@code
+             * for (int i = off; i < off + len; i++)
+             * dst.put(a[i]);
+             * }
+ * except that it first checks that there is sufficient space in this + * buffer and it is potentially much more efficient. + */ + // @ts-ignore + public put(src: string, offset: number, length: number): java.nio.CharBuffer; + /** + * Relative bulk put method  (optional operation). + *

This method transfers the entire content of the given source + * char array into this buffer. An invocation of this method of the + * form dst.put(a) behaves in exactly the same way as the + * invocation + *

+             * dst.put(a, 0, a.length) 
+ */ + // @ts-ignore + public put(src: string): java.nio.CharBuffer; + /** + * Relative bulk put method  (optional operation). + *

This method transfers chars from the given string into this + * buffer. If there are more chars to be copied from the string than + * remain in this buffer, that is, if + * end - start > remaining(), + * then no chars are transferred and a {@link + * BufferOverflowException} is thrown. + *

Otherwise, this method copies + * n = end - start chars + * from the given string into this buffer, starting at the given + * start index and at the current position of this buffer. The + * position of this buffer is then incremented by n. + *

In other words, an invocation of this method of the form + * dst.put(src, start, end) has exactly the same effect + * as the loop + *

{@code
+             * for (int i = start; i < end; i++)
+             * dst.put(src.charAt(i));
+             * }
+ * except that it first checks that there is sufficient space in this + * buffer and it is potentially much more efficient. + */ + // @ts-ignore + public put(src: string, start: number, end: number): java.nio.CharBuffer; + /** + * Relative bulk put method  (optional operation). + *

This method transfers the entire content of the given source string + * into this buffer. An invocation of this method of the form + * dst.put(s) behaves in exactly the same way as the invocation + *

+             * dst.put(s, 0, s.length()) 
+ */ + // @ts-ignore + public put(src: string): java.nio.CharBuffer; + /** + * Tells whether or not this buffer is backed by an accessible char + * array. + *

If this method returns true then the {@link #array() array} + * and {@link #arrayOffset() arrayOffset} methods may safely be invoked. + *

+ */ + // @ts-ignore + public hasArray(): boolean; + /** + * Returns the char array that backs this + * buffer  (optional operation). + *

Modifications to this buffer's content will cause the returned + * array's content to be modified, and vice versa. + *

Invoke the {@link #hasArray hasArray} method before invoking this + * method in order to ensure that this buffer has an accessible backing + * array.

+ */ + // @ts-ignore + public array(): string[]; + /** + * Returns the offset within this buffer's backing array of the first + * element of the buffer  (optional operation). + *

If this buffer is backed by an array then buffer position p + * corresponds to array index p + arrayOffset(). + *

Invoke the {@link #hasArray hasArray} method before invoking this + * method in order to ensure that this buffer has an accessible backing + * array.

+ */ + // @ts-ignore + public arrayOffset(): number; + /** + * Compacts this buffer  (optional operation). + *

The chars between the buffer's current position and its limit, + * if any, are copied to the beginning of the buffer. That is, the + * char at index p = position() is copied + * to index zero, the char at index p + 1 is copied + * to index one, and so forth until the char at index + * limit() - 1 is copied to index + * n = limit() - 1 - p. + * The buffer's position is then set to n+1 and its limit is set to + * its capacity. The mark, if defined, is discarded. + *

The buffer's position is set to the number of chars copied, + * rather than to zero, so that an invocation of this method can be + * followed immediately by an invocation of another relative put + * method.

+ */ + // @ts-ignore + public abstract compact(): java.nio.CharBuffer; + /** + * Tells whether or not this char buffer is direct. + */ + // @ts-ignore + public abstract isDirect(): boolean; + /** + * Returns the current hash code of this buffer. + *

The hash code of a char buffer depends only upon its remaining + * elements; that is, upon the elements from position() up to, and + * including, the element at limit() - 1. + *

Because buffer hash codes are content-dependent, it is inadvisable + * to use buffers as keys in hash maps or similar data structures unless it + * is known that their contents will not change.

+ */ + // @ts-ignore + public hashCode(): number; + /** + * Tells whether or not this buffer is equal to another object. + *

Two char buffers are equal if, and only if, + *

    + *
  1. They have the same element type,

  2. + *
  3. They have the same number of remaining elements, and + *

  4. + *
  5. The two sequences of remaining elements, considered + * independently of their starting positions, are pointwise equal. + *

  6. + *
+ *

A char buffer is not equal to any other type of object.

+ */ + // @ts-ignore + public equals(ob: java.lang.Object): boolean; + /** + * Compares this buffer to another. + *

Two char buffers are compared by comparing their sequences of + * remaining elements lexicographically, without regard to the starting + * position of each sequence within its corresponding buffer. + * Pairs of {@code char} elements are compared as if by invoking + * {@link Character#compare(char,char)}. + *

A char buffer is not comparable to any other type of object. + */ + // @ts-ignore + public compareTo(that: java.nio.CharBuffer): number; + /** + * Returns a string containing the characters in this buffer. + *

The first character of the resulting string will be the character at + * this buffer's position, while the last character will be the character + * at index limit() - 1. Invoking this method does not + * change the buffer's position.

+ */ + // @ts-ignore + public toString(): string; + /** + * Returns the length of this character buffer. + *

When viewed as a character sequence, the length of a character + * buffer is simply the number of characters between the position + * (inclusive) and the limit (exclusive); that is, it is equivalent to + * remaining().

+ */ + // @ts-ignore + public length(): number; + /** + * Reads the character at the given index relative to the current + * position. + */ + // @ts-ignore + public charAt(index: number): string; + /** + * Creates a new character buffer that represents the specified subsequence + * of this buffer, relative to the current position. + *

The new buffer will share this buffer's content; that is, if the + * content of this buffer is mutable then modifications to one buffer will + * cause the other to be modified. The new buffer's capacity will be that + * of this buffer, its position will be + * position() + start, and its limit will be + * position() + end. The new buffer will be + * direct if, and only if, this buffer is direct, and it will be read-only + * if, and only if, this buffer is read-only.

+ */ + // @ts-ignore + public abstract subSequence(start: number, end: number): java.nio.CharBuffer; + /** + * Appends the specified character sequence to this + * buffer  (optional operation). + *

An invocation of this method of the form dst.append(csq) + * behaves in exactly the same way as the invocation + *

+             * dst.put(csq.toString()) 
+ *

Depending on the specification of toString for the + * character sequence csq, the entire sequence may not be + * appended. For instance, invoking the {@link CharBuffer#toString() + * toString} method of a character buffer will return a subsequence whose + * content depends upon the buffer's position and limit. + */ + // @ts-ignore + public append(csq: java.lang.CharSequence): java.nio.CharBuffer; + /** + * Appends a subsequence of the specified character sequence to this + * buffer  (optional operation). + *

An invocation of this method of the form dst.append(csq, start, + * end) when csq is not null, behaves in exactly the + * same way as the invocation + *

+             * dst.put(csq.subSequence(start, end).toString()) 
+ */ + // @ts-ignore + public append(csq: java.lang.CharSequence, start: number, end: number): java.nio.CharBuffer; + /** + * Appends the specified char to this + * buffer  (optional operation). + *

An invocation of this method of the form dst.append(c) + * behaves in exactly the same way as the invocation + *

+             * dst.put(c) 
+ */ + // @ts-ignore + public append(c: string): java.nio.CharBuffer; + /** + * Retrieves this buffer's byte order. + *

The byte order of a char buffer created by allocation or by + * wrapping an existing char array is the {@link + * ByteOrder#nativeOrder native order} of the underlying + * hardware. The byte order of a char buffer created as a view of a byte buffer is that of the + * byte buffer at the moment that the view is created.

+ */ + // @ts-ignore + public abstract order(): java.nio.ByteOrder; + // @ts-ignore + public chars(): java.util.stream.IntStream; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.DoubleBuffer.d.ts b/packages/types/dist/typings/jdk/java.nio.DoubleBuffer.d.ts new file mode 100644 index 00000000..82eafbaa --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.DoubleBuffer.d.ts @@ -0,0 +1,289 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + // @ts-ignore + abstract class DoubleBuffer extends java.nio.Buffer { + /** + * Allocates a new double buffer. + *

The new buffer's position will be zero, its limit will be its + * capacity, its mark will be undefined, and each of its elements will be + * initialized to zero. It will have a {@link #array backing array}, + * and its {@link #arrayOffset array offset} will be zero. + */ + // @ts-ignore + public static allocate(capacity: number): java.nio.DoubleBuffer; + /** + * Wraps a double array into a buffer. + *

The new buffer will be backed by the given double array; + * that is, modifications to the buffer will cause the array to be modified + * and vice versa. The new buffer's capacity will be + * array.length, its position will be offset, its limit + * will be offset + length, and its mark will be undefined. Its + * {@link #array backing array} will be the given array, and + * its {@link #arrayOffset array offset} will be zero.

+ */ + // @ts-ignore + public static wrap(array: number, offset: number, length: number): java.nio.DoubleBuffer; + /** + * Wraps a double array into a buffer. + *

The new buffer will be backed by the given double array; + * that is, modifications to the buffer will cause the array to be modified + * and vice versa. The new buffer's capacity and limit will be + * array.length, its position will be zero, and its mark will be + * undefined. Its {@link #array backing array} will be the + * given array, and its {@link #arrayOffset array offset>} will + * be zero.

+ */ + // @ts-ignore + public static wrap(array: number): java.nio.DoubleBuffer; + /** + * Creates a new double buffer that shares this buffer's content. + *

The content of the new buffer will be that of this buffer. Changes + * to this buffer's content will be visible in the new buffer, and vice + * versa; the two buffers' position, limit, and mark values will be + * independent. + *

The new buffer's capacity, limit, position, and mark values will be + * identical to those of this buffer. The new buffer will be direct if, + * and only if, this buffer is direct, and it will be read-only if, and + * only if, this buffer is read-only.

+ */ + // @ts-ignore + public abstract duplicate(): java.nio.DoubleBuffer; + /** + * Creates a new, read-only double buffer that shares this buffer's + * content. + *

The content of the new buffer will be that of this buffer. Changes + * to this buffer's content will be visible in the new buffer; the new + * buffer itself, however, will be read-only and will not allow the shared + * content to be modified. The two buffers' position, limit, and mark + * values will be independent. + *

The new buffer's capacity, limit, position, and mark values will be + * identical to those of this buffer. + *

If this buffer is itself read-only then this method behaves in + * exactly the same way as the {@link #duplicate duplicate} method.

+ */ + // @ts-ignore + public abstract asReadOnlyBuffer(): java.nio.DoubleBuffer; + /** + * Relative get method. Reads the double at this buffer's + * current position, and then increments the position. + */ + // @ts-ignore + public abstract get(): number; + /** + * Relative put method  (optional operation). + *

Writes the given double into this buffer at the current + * position, and then increments the position.

+ */ + // @ts-ignore + public abstract put(d: number): java.nio.DoubleBuffer; + /** + * Relative bulk get method. + *

This method transfers doubles from this buffer into the given + * destination array. If there are fewer doubles remaining in the + * buffer than are required to satisfy the request, that is, if + * length > remaining(), then no + * doubles are transferred and a {@link BufferUnderflowException} is + * thrown. + *

Otherwise, this method copies length doubles from this + * buffer into the given array, starting at the current position of this + * buffer and at the given offset in the array. The position of this + * buffer is then incremented by length. + *

In other words, an invocation of this method of the form + * src.get(dst, off, len) has exactly the same effect as + * the loop + *

{@code
+             * for (int i = off; i < off + len; i++)
+             * dst[i] = src.get():
+             * }
+ * except that it first checks that there are sufficient doubles in + * this buffer and it is potentially much more efficient. + */ + // @ts-ignore + public get(dst: number, offset: number, length: number): java.nio.DoubleBuffer; + /** + * Relative bulk get method. + *

This method transfers doubles from this buffer into the given + * destination array. An invocation of this method of the form + * src.get(a) behaves in exactly the same way as the invocation + *

+             * src.get(a, 0, a.length) 
+ */ + // @ts-ignore + public get(dst: number): java.nio.DoubleBuffer; + /** + * Relative bulk put method  (optional operation). + *

This method transfers the doubles remaining in the given source + * buffer into this buffer. If there are more doubles remaining in the + * source buffer than in this buffer, that is, if + * src.remaining() > remaining(), + * then no doubles are transferred and a {@link + * BufferOverflowException} is thrown. + *

Otherwise, this method copies + * n = src.remaining() doubles from the given + * buffer into this buffer, starting at each buffer's current position. + * The positions of both buffers are then incremented by n. + *

In other words, an invocation of this method of the form + * dst.put(src) has exactly the same effect as the loop + *

+             * while (src.hasRemaining())
+             * dst.put(src.get()); 
+ * except that it first checks that there is sufficient space in this + * buffer and it is potentially much more efficient. + */ + // @ts-ignore + public put(src: java.nio.DoubleBuffer): java.nio.DoubleBuffer; + /** + * Relative bulk put method  (optional operation). + *

This method transfers doubles into this buffer from the given + * source array. If there are more doubles to be copied from the array + * than remain in this buffer, that is, if + * length > remaining(), then no + * doubles are transferred and a {@link BufferOverflowException} is + * thrown. + *

Otherwise, this method copies length doubles from the + * given array into this buffer, starting at the given offset in the array + * and at the current position of this buffer. The position of this buffer + * is then incremented by length. + *

In other words, an invocation of this method of the form + * dst.put(src, off, len) has exactly the same effect as + * the loop + *

{@code
+             * for (int i = off; i < off + len; i++)
+             * dst.put(a[i]);
+             * }
+ * except that it first checks that there is sufficient space in this + * buffer and it is potentially much more efficient. + */ + // @ts-ignore + public put(src: number, offset: number, length: number): java.nio.DoubleBuffer; + /** + * Relative bulk put method  (optional operation). + *

This method transfers the entire content of the given source + * double array into this buffer. An invocation of this method of the + * form dst.put(a) behaves in exactly the same way as the + * invocation + *

+             * dst.put(a, 0, a.length) 
+ */ + // @ts-ignore + public put(src: number): java.nio.DoubleBuffer; + /** + * Tells whether or not this buffer is backed by an accessible double + * array. + *

If this method returns true then the {@link #array() array} + * and {@link #arrayOffset() arrayOffset} methods may safely be invoked. + *

+ */ + // @ts-ignore + public hasArray(): boolean; + /** + * Returns the double array that backs this + * buffer  (optional operation). + *

Modifications to this buffer's content will cause the returned + * array's content to be modified, and vice versa. + *

Invoke the {@link #hasArray hasArray} method before invoking this + * method in order to ensure that this buffer has an accessible backing + * array.

+ */ + // @ts-ignore + public array(): number[]; + /** + * Returns the offset within this buffer's backing array of the first + * element of the buffer  (optional operation). + *

If this buffer is backed by an array then buffer position p + * corresponds to array index p + arrayOffset(). + *

Invoke the {@link #hasArray hasArray} method before invoking this + * method in order to ensure that this buffer has an accessible backing + * array.

+ */ + // @ts-ignore + public arrayOffset(): number; + /** + * Compacts this buffer  (optional operation). + *

The doubles between the buffer's current position and its limit, + * if any, are copied to the beginning of the buffer. That is, the + * double at index p = position() is copied + * to index zero, the double at index p + 1 is copied + * to index one, and so forth until the double at index + * limit() - 1 is copied to index + * n = limit() - 1 - p. + * The buffer's position is then set to n+1 and its limit is set to + * its capacity. The mark, if defined, is discarded. + *

The buffer's position is set to the number of doubles copied, + * rather than to zero, so that an invocation of this method can be + * followed immediately by an invocation of another relative put + * method.

+ */ + // @ts-ignore + public abstract compact(): java.nio.DoubleBuffer; + /** + * Tells whether or not this double buffer is direct. + */ + // @ts-ignore + public abstract isDirect(): boolean; + /** + * Returns a string summarizing the state of this buffer. + */ + // @ts-ignore + public toString(): string; + /** + * Returns the current hash code of this buffer. + *

The hash code of a double buffer depends only upon its remaining + * elements; that is, upon the elements from position() up to, and + * including, the element at limit() - 1. + *

Because buffer hash codes are content-dependent, it is inadvisable + * to use buffers as keys in hash maps or similar data structures unless it + * is known that their contents will not change.

+ */ + // @ts-ignore + public hashCode(): number; + /** + * Tells whether or not this buffer is equal to another object. + *

Two double buffers are equal if, and only if, + *

    + *
  1. They have the same element type,

  2. + *
  3. They have the same number of remaining elements, and + *

  4. + *
  5. The two sequences of remaining elements, considered + * independently of their starting positions, are pointwise equal. + * This method considers two double elements {@code a} and {@code b} + * to be equal if + * {@code (a == b) || (Double.isNaN(a) && Double.isNaN(b))}. + * The values {@code -0.0} and {@code +0.0} are considered to be + * equal, unlike {@link Double#equals(Object)}. + *

  6. + *
+ *

A double buffer is not equal to any other type of object.

+ */ + // @ts-ignore + public equals(ob: java.lang.Object): boolean; + /** + * Compares this buffer to another. + *

Two double buffers are compared by comparing their sequences of + * remaining elements lexicographically, without regard to the starting + * position of each sequence within its corresponding buffer. + * Pairs of {@code double} elements are compared as if by invoking + * {@link Double#compare(double,double)}, except that + * {@code -0.0} and {@code 0.0} are considered to be equal. + * {@code Double.NaN} is considered by this method to be equal + * to itself and greater than all other {@code double} values + * (including {@code Double.POSITIVE_INFINITY}). + *

A double buffer is not comparable to any other type of object. + */ + // @ts-ignore + public compareTo(that: java.nio.DoubleBuffer): number; + /** + * Retrieves this buffer's byte order. + *

The byte order of a double buffer created by allocation or by + * wrapping an existing double array is the {@link + * ByteOrder#nativeOrder native order} of the underlying + * hardware. The byte order of a double buffer created as a view of a byte buffer is that of the + * byte buffer at the moment that the view is created.

+ */ + // @ts-ignore + public abstract order(): java.nio.ByteOrder; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.FloatBuffer.d.ts b/packages/types/dist/typings/jdk/java.nio.FloatBuffer.d.ts new file mode 100644 index 00000000..973c776e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.FloatBuffer.d.ts @@ -0,0 +1,289 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + // @ts-ignore + abstract class FloatBuffer extends java.nio.Buffer { + /** + * Allocates a new float buffer. + *

The new buffer's position will be zero, its limit will be its + * capacity, its mark will be undefined, and each of its elements will be + * initialized to zero. It will have a {@link #array backing array}, + * and its {@link #arrayOffset array offset} will be zero. + */ + // @ts-ignore + public static allocate(capacity: number): java.nio.FloatBuffer; + /** + * Wraps a float array into a buffer. + *

The new buffer will be backed by the given float array; + * that is, modifications to the buffer will cause the array to be modified + * and vice versa. The new buffer's capacity will be + * array.length, its position will be offset, its limit + * will be offset + length, and its mark will be undefined. Its + * {@link #array backing array} will be the given array, and + * its {@link #arrayOffset array offset} will be zero.

+ */ + // @ts-ignore + public static wrap(array: number, offset: number, length: number): java.nio.FloatBuffer; + /** + * Wraps a float array into a buffer. + *

The new buffer will be backed by the given float array; + * that is, modifications to the buffer will cause the array to be modified + * and vice versa. The new buffer's capacity and limit will be + * array.length, its position will be zero, and its mark will be + * undefined. Its {@link #array backing array} will be the + * given array, and its {@link #arrayOffset array offset>} will + * be zero.

+ */ + // @ts-ignore + public static wrap(array: number): java.nio.FloatBuffer; + /** + * Creates a new float buffer that shares this buffer's content. + *

The content of the new buffer will be that of this buffer. Changes + * to this buffer's content will be visible in the new buffer, and vice + * versa; the two buffers' position, limit, and mark values will be + * independent. + *

The new buffer's capacity, limit, position, and mark values will be + * identical to those of this buffer. The new buffer will be direct if, + * and only if, this buffer is direct, and it will be read-only if, and + * only if, this buffer is read-only.

+ */ + // @ts-ignore + public abstract duplicate(): java.nio.FloatBuffer; + /** + * Creates a new, read-only float buffer that shares this buffer's + * content. + *

The content of the new buffer will be that of this buffer. Changes + * to this buffer's content will be visible in the new buffer; the new + * buffer itself, however, will be read-only and will not allow the shared + * content to be modified. The two buffers' position, limit, and mark + * values will be independent. + *

The new buffer's capacity, limit, position, and mark values will be + * identical to those of this buffer. + *

If this buffer is itself read-only then this method behaves in + * exactly the same way as the {@link #duplicate duplicate} method.

+ */ + // @ts-ignore + public abstract asReadOnlyBuffer(): java.nio.FloatBuffer; + /** + * Relative get method. Reads the float at this buffer's + * current position, and then increments the position. + */ + // @ts-ignore + public abstract get(): number; + /** + * Relative put method  (optional operation). + *

Writes the given float into this buffer at the current + * position, and then increments the position.

+ */ + // @ts-ignore + public abstract put(f: number): java.nio.FloatBuffer; + /** + * Relative bulk get method. + *

This method transfers floats from this buffer into the given + * destination array. If there are fewer floats remaining in the + * buffer than are required to satisfy the request, that is, if + * length > remaining(), then no + * floats are transferred and a {@link BufferUnderflowException} is + * thrown. + *

Otherwise, this method copies length floats from this + * buffer into the given array, starting at the current position of this + * buffer and at the given offset in the array. The position of this + * buffer is then incremented by length. + *

In other words, an invocation of this method of the form + * src.get(dst, off, len) has exactly the same effect as + * the loop + *

{@code
+             * for (int i = off; i < off + len; i++)
+             * dst[i] = src.get():
+             * }
+ * except that it first checks that there are sufficient floats in + * this buffer and it is potentially much more efficient. + */ + // @ts-ignore + public get(dst: number, offset: number, length: number): java.nio.FloatBuffer; + /** + * Relative bulk get method. + *

This method transfers floats from this buffer into the given + * destination array. An invocation of this method of the form + * src.get(a) behaves in exactly the same way as the invocation + *

+             * src.get(a, 0, a.length) 
+ */ + // @ts-ignore + public get(dst: number): java.nio.FloatBuffer; + /** + * Relative bulk put method  (optional operation). + *

This method transfers the floats remaining in the given source + * buffer into this buffer. If there are more floats remaining in the + * source buffer than in this buffer, that is, if + * src.remaining() > remaining(), + * then no floats are transferred and a {@link + * BufferOverflowException} is thrown. + *

Otherwise, this method copies + * n = src.remaining() floats from the given + * buffer into this buffer, starting at each buffer's current position. + * The positions of both buffers are then incremented by n. + *

In other words, an invocation of this method of the form + * dst.put(src) has exactly the same effect as the loop + *

+             * while (src.hasRemaining())
+             * dst.put(src.get()); 
+ * except that it first checks that there is sufficient space in this + * buffer and it is potentially much more efficient. + */ + // @ts-ignore + public put(src: java.nio.FloatBuffer): java.nio.FloatBuffer; + /** + * Relative bulk put method  (optional operation). + *

This method transfers floats into this buffer from the given + * source array. If there are more floats to be copied from the array + * than remain in this buffer, that is, if + * length > remaining(), then no + * floats are transferred and a {@link BufferOverflowException} is + * thrown. + *

Otherwise, this method copies length floats from the + * given array into this buffer, starting at the given offset in the array + * and at the current position of this buffer. The position of this buffer + * is then incremented by length. + *

In other words, an invocation of this method of the form + * dst.put(src, off, len) has exactly the same effect as + * the loop + *

{@code
+             * for (int i = off; i < off + len; i++)
+             * dst.put(a[i]);
+             * }
+ * except that it first checks that there is sufficient space in this + * buffer and it is potentially much more efficient. + */ + // @ts-ignore + public put(src: number, offset: number, length: number): java.nio.FloatBuffer; + /** + * Relative bulk put method  (optional operation). + *

This method transfers the entire content of the given source + * float array into this buffer. An invocation of this method of the + * form dst.put(a) behaves in exactly the same way as the + * invocation + *

+             * dst.put(a, 0, a.length) 
+ */ + // @ts-ignore + public put(src: number): java.nio.FloatBuffer; + /** + * Tells whether or not this buffer is backed by an accessible float + * array. + *

If this method returns true then the {@link #array() array} + * and {@link #arrayOffset() arrayOffset} methods may safely be invoked. + *

+ */ + // @ts-ignore + public hasArray(): boolean; + /** + * Returns the float array that backs this + * buffer  (optional operation). + *

Modifications to this buffer's content will cause the returned + * array's content to be modified, and vice versa. + *

Invoke the {@link #hasArray hasArray} method before invoking this + * method in order to ensure that this buffer has an accessible backing + * array.

+ */ + // @ts-ignore + public array(): number[]; + /** + * Returns the offset within this buffer's backing array of the first + * element of the buffer  (optional operation). + *

If this buffer is backed by an array then buffer position p + * corresponds to array index p + arrayOffset(). + *

Invoke the {@link #hasArray hasArray} method before invoking this + * method in order to ensure that this buffer has an accessible backing + * array.

+ */ + // @ts-ignore + public arrayOffset(): number; + /** + * Compacts this buffer  (optional operation). + *

The floats between the buffer's current position and its limit, + * if any, are copied to the beginning of the buffer. That is, the + * float at index p = position() is copied + * to index zero, the float at index p + 1 is copied + * to index one, and so forth until the float at index + * limit() - 1 is copied to index + * n = limit() - 1 - p. + * The buffer's position is then set to n+1 and its limit is set to + * its capacity. The mark, if defined, is discarded. + *

The buffer's position is set to the number of floats copied, + * rather than to zero, so that an invocation of this method can be + * followed immediately by an invocation of another relative put + * method.

+ */ + // @ts-ignore + public abstract compact(): java.nio.FloatBuffer; + /** + * Tells whether or not this float buffer is direct. + */ + // @ts-ignore + public abstract isDirect(): boolean; + /** + * Returns a string summarizing the state of this buffer. + */ + // @ts-ignore + public toString(): string; + /** + * Returns the current hash code of this buffer. + *

The hash code of a float buffer depends only upon its remaining + * elements; that is, upon the elements from position() up to, and + * including, the element at limit() - 1. + *

Because buffer hash codes are content-dependent, it is inadvisable + * to use buffers as keys in hash maps or similar data structures unless it + * is known that their contents will not change.

+ */ + // @ts-ignore + public hashCode(): number; + /** + * Tells whether or not this buffer is equal to another object. + *

Two float buffers are equal if, and only if, + *

    + *
  1. They have the same element type,

  2. + *
  3. They have the same number of remaining elements, and + *

  4. + *
  5. The two sequences of remaining elements, considered + * independently of their starting positions, are pointwise equal. + * This method considers two float elements {@code a} and {@code b} + * to be equal if + * {@code (a == b) || (Float.isNaN(a) && Float.isNaN(b))}. + * The values {@code -0.0} and {@code +0.0} are considered to be + * equal, unlike {@link Float#equals(Object)}. + *

  6. + *
+ *

A float buffer is not equal to any other type of object.

+ */ + // @ts-ignore + public equals(ob: java.lang.Object): boolean; + /** + * Compares this buffer to another. + *

Two float buffers are compared by comparing their sequences of + * remaining elements lexicographically, without regard to the starting + * position of each sequence within its corresponding buffer. + * Pairs of {@code float} elements are compared as if by invoking + * {@link Float#compare(float,float)}, except that + * {@code -0.0} and {@code 0.0} are considered to be equal. + * {@code Float.NaN} is considered by this method to be equal + * to itself and greater than all other {@code float} values + * (including {@code Float.POSITIVE_INFINITY}). + *

A float buffer is not comparable to any other type of object. + */ + // @ts-ignore + public compareTo(that: java.nio.FloatBuffer): number; + /** + * Retrieves this buffer's byte order. + *

The byte order of a float buffer created by allocation or by + * wrapping an existing float array is the {@link + * ByteOrder#nativeOrder native order} of the underlying + * hardware. The byte order of a float buffer created as a view of a byte buffer is that of the + * byte buffer at the moment that the view is created.

+ */ + // @ts-ignore + public abstract order(): java.nio.ByteOrder; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.IntBuffer.d.ts b/packages/types/dist/typings/jdk/java.nio.IntBuffer.d.ts new file mode 100644 index 00000000..a5de7ca9 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.IntBuffer.d.ts @@ -0,0 +1,280 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + // @ts-ignore + abstract class IntBuffer extends java.nio.Buffer { + /** + * Allocates a new int buffer. + *

The new buffer's position will be zero, its limit will be its + * capacity, its mark will be undefined, and each of its elements will be + * initialized to zero. It will have a {@link #array backing array}, + * and its {@link #arrayOffset array offset} will be zero. + */ + // @ts-ignore + public static allocate(capacity: number): java.nio.IntBuffer; + /** + * Wraps an int array into a buffer. + *

The new buffer will be backed by the given int array; + * that is, modifications to the buffer will cause the array to be modified + * and vice versa. The new buffer's capacity will be + * array.length, its position will be offset, its limit + * will be offset + length, and its mark will be undefined. Its + * {@link #array backing array} will be the given array, and + * its {@link #arrayOffset array offset} will be zero.

+ */ + // @ts-ignore + public static wrap(array: number, offset: number, length: number): java.nio.IntBuffer; + /** + * Wraps an int array into a buffer. + *

The new buffer will be backed by the given int array; + * that is, modifications to the buffer will cause the array to be modified + * and vice versa. The new buffer's capacity and limit will be + * array.length, its position will be zero, and its mark will be + * undefined. Its {@link #array backing array} will be the + * given array, and its {@link #arrayOffset array offset>} will + * be zero.

+ */ + // @ts-ignore + public static wrap(array: number): java.nio.IntBuffer; + /** + * Creates a new int buffer that shares this buffer's content. + *

The content of the new buffer will be that of this buffer. Changes + * to this buffer's content will be visible in the new buffer, and vice + * versa; the two buffers' position, limit, and mark values will be + * independent. + *

The new buffer's capacity, limit, position, and mark values will be + * identical to those of this buffer. The new buffer will be direct if, + * and only if, this buffer is direct, and it will be read-only if, and + * only if, this buffer is read-only.

+ */ + // @ts-ignore + public abstract duplicate(): java.nio.IntBuffer; + /** + * Creates a new, read-only int buffer that shares this buffer's + * content. + *

The content of the new buffer will be that of this buffer. Changes + * to this buffer's content will be visible in the new buffer; the new + * buffer itself, however, will be read-only and will not allow the shared + * content to be modified. The two buffers' position, limit, and mark + * values will be independent. + *

The new buffer's capacity, limit, position, and mark values will be + * identical to those of this buffer. + *

If this buffer is itself read-only then this method behaves in + * exactly the same way as the {@link #duplicate duplicate} method.

+ */ + // @ts-ignore + public abstract asReadOnlyBuffer(): java.nio.IntBuffer; + /** + * Relative get method. Reads the int at this buffer's + * current position, and then increments the position. + */ + // @ts-ignore + public abstract get(): number; + /** + * Relative put method  (optional operation). + *

Writes the given int into this buffer at the current + * position, and then increments the position.

+ */ + // @ts-ignore + public abstract put(i: number): java.nio.IntBuffer; + /** + * Relative bulk get method. + *

This method transfers ints from this buffer into the given + * destination array. If there are fewer ints remaining in the + * buffer than are required to satisfy the request, that is, if + * length > remaining(), then no + * ints are transferred and a {@link BufferUnderflowException} is + * thrown. + *

Otherwise, this method copies length ints from this + * buffer into the given array, starting at the current position of this + * buffer and at the given offset in the array. The position of this + * buffer is then incremented by length. + *

In other words, an invocation of this method of the form + * src.get(dst, off, len) has exactly the same effect as + * the loop + *

{@code
+             * for (int i = off; i < off + len; i++)
+             * dst[i] = src.get():
+             * }
+ * except that it first checks that there are sufficient ints in + * this buffer and it is potentially much more efficient. + */ + // @ts-ignore + public get(dst: number, offset: number, length: number): java.nio.IntBuffer; + /** + * Relative bulk get method. + *

This method transfers ints from this buffer into the given + * destination array. An invocation of this method of the form + * src.get(a) behaves in exactly the same way as the invocation + *

+             * src.get(a, 0, a.length) 
+ */ + // @ts-ignore + public get(dst: number): java.nio.IntBuffer; + /** + * Relative bulk put method  (optional operation). + *

This method transfers the ints remaining in the given source + * buffer into this buffer. If there are more ints remaining in the + * source buffer than in this buffer, that is, if + * src.remaining() > remaining(), + * then no ints are transferred and a {@link + * BufferOverflowException} is thrown. + *

Otherwise, this method copies + * n = src.remaining() ints from the given + * buffer into this buffer, starting at each buffer's current position. + * The positions of both buffers are then incremented by n. + *

In other words, an invocation of this method of the form + * dst.put(src) has exactly the same effect as the loop + *

+             * while (src.hasRemaining())
+             * dst.put(src.get()); 
+ * except that it first checks that there is sufficient space in this + * buffer and it is potentially much more efficient. + */ + // @ts-ignore + public put(src: java.nio.IntBuffer): java.nio.IntBuffer; + /** + * Relative bulk put method  (optional operation). + *

This method transfers ints into this buffer from the given + * source array. If there are more ints to be copied from the array + * than remain in this buffer, that is, if + * length > remaining(), then no + * ints are transferred and a {@link BufferOverflowException} is + * thrown. + *

Otherwise, this method copies length ints from the + * given array into this buffer, starting at the given offset in the array + * and at the current position of this buffer. The position of this buffer + * is then incremented by length. + *

In other words, an invocation of this method of the form + * dst.put(src, off, len) has exactly the same effect as + * the loop + *

{@code
+             * for (int i = off; i < off + len; i++)
+             * dst.put(a[i]);
+             * }
+ * except that it first checks that there is sufficient space in this + * buffer and it is potentially much more efficient. + */ + // @ts-ignore + public put(src: number, offset: number, length: number): java.nio.IntBuffer; + /** + * Relative bulk put method  (optional operation). + *

This method transfers the entire content of the given source + * int array into this buffer. An invocation of this method of the + * form dst.put(a) behaves in exactly the same way as the + * invocation + *

+             * dst.put(a, 0, a.length) 
+ */ + // @ts-ignore + public put(src: number): java.nio.IntBuffer; + /** + * Tells whether or not this buffer is backed by an accessible int + * array. + *

If this method returns true then the {@link #array() array} + * and {@link #arrayOffset() arrayOffset} methods may safely be invoked. + *

+ */ + // @ts-ignore + public hasArray(): boolean; + /** + * Returns the int array that backs this + * buffer  (optional operation). + *

Modifications to this buffer's content will cause the returned + * array's content to be modified, and vice versa. + *

Invoke the {@link #hasArray hasArray} method before invoking this + * method in order to ensure that this buffer has an accessible backing + * array.

+ */ + // @ts-ignore + public array(): number[]; + /** + * Returns the offset within this buffer's backing array of the first + * element of the buffer  (optional operation). + *

If this buffer is backed by an array then buffer position p + * corresponds to array index p + arrayOffset(). + *

Invoke the {@link #hasArray hasArray} method before invoking this + * method in order to ensure that this buffer has an accessible backing + * array.

+ */ + // @ts-ignore + public arrayOffset(): number; + /** + * Compacts this buffer  (optional operation). + *

The ints between the buffer's current position and its limit, + * if any, are copied to the beginning of the buffer. That is, the + * int at index p = position() is copied + * to index zero, the int at index p + 1 is copied + * to index one, and so forth until the int at index + * limit() - 1 is copied to index + * n = limit() - 1 - p. + * The buffer's position is then set to n+1 and its limit is set to + * its capacity. The mark, if defined, is discarded. + *

The buffer's position is set to the number of ints copied, + * rather than to zero, so that an invocation of this method can be + * followed immediately by an invocation of another relative put + * method.

+ */ + // @ts-ignore + public abstract compact(): java.nio.IntBuffer; + /** + * Tells whether or not this int buffer is direct. + */ + // @ts-ignore + public abstract isDirect(): boolean; + /** + * Returns a string summarizing the state of this buffer. + */ + // @ts-ignore + public toString(): string; + /** + * Returns the current hash code of this buffer. + *

The hash code of a int buffer depends only upon its remaining + * elements; that is, upon the elements from position() up to, and + * including, the element at limit() - 1. + *

Because buffer hash codes are content-dependent, it is inadvisable + * to use buffers as keys in hash maps or similar data structures unless it + * is known that their contents will not change.

+ */ + // @ts-ignore + public hashCode(): number; + /** + * Tells whether or not this buffer is equal to another object. + *

Two int buffers are equal if, and only if, + *

    + *
  1. They have the same element type,

  2. + *
  3. They have the same number of remaining elements, and + *

  4. + *
  5. The two sequences of remaining elements, considered + * independently of their starting positions, are pointwise equal. + *

  6. + *
+ *

A int buffer is not equal to any other type of object.

+ */ + // @ts-ignore + public equals(ob: java.lang.Object): boolean; + /** + * Compares this buffer to another. + *

Two int buffers are compared by comparing their sequences of + * remaining elements lexicographically, without regard to the starting + * position of each sequence within its corresponding buffer. + * Pairs of {@code int} elements are compared as if by invoking + * {@link Integer#compare(int,int)}. + *

A int buffer is not comparable to any other type of object. + */ + // @ts-ignore + public compareTo(that: java.nio.IntBuffer): number; + /** + * Retrieves this buffer's byte order. + *

The byte order of an int buffer created by allocation or by + * wrapping an existing int array is the {@link + * ByteOrder#nativeOrder native order} of the underlying + * hardware. The byte order of an int buffer created as a view of a byte buffer is that of the + * byte buffer at the moment that the view is created.

+ */ + // @ts-ignore + public abstract order(): java.nio.ByteOrder; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.InvalidMarkException.d.ts b/packages/types/dist/typings/jdk/java.nio.InvalidMarkException.d.ts new file mode 100644 index 00000000..ee6b6f19 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.InvalidMarkException.d.ts @@ -0,0 +1,13 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + // @ts-ignore + class InvalidMarkException extends java.lang.IllegalStateException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.LongBuffer.d.ts b/packages/types/dist/typings/jdk/java.nio.LongBuffer.d.ts new file mode 100644 index 00000000..7d523316 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.LongBuffer.d.ts @@ -0,0 +1,280 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + // @ts-ignore + abstract class LongBuffer extends java.nio.Buffer { + /** + * Allocates a new long buffer. + *

The new buffer's position will be zero, its limit will be its + * capacity, its mark will be undefined, and each of its elements will be + * initialized to zero. It will have a {@link #array backing array}, + * and its {@link #arrayOffset array offset} will be zero. + */ + // @ts-ignore + public static allocate(capacity: number): java.nio.LongBuffer; + /** + * Wraps a long array into a buffer. + *

The new buffer will be backed by the given long array; + * that is, modifications to the buffer will cause the array to be modified + * and vice versa. The new buffer's capacity will be + * array.length, its position will be offset, its limit + * will be offset + length, and its mark will be undefined. Its + * {@link #array backing array} will be the given array, and + * its {@link #arrayOffset array offset} will be zero.

+ */ + // @ts-ignore + public static wrap(array: number, offset: number, length: number): java.nio.LongBuffer; + /** + * Wraps a long array into a buffer. + *

The new buffer will be backed by the given long array; + * that is, modifications to the buffer will cause the array to be modified + * and vice versa. The new buffer's capacity and limit will be + * array.length, its position will be zero, and its mark will be + * undefined. Its {@link #array backing array} will be the + * given array, and its {@link #arrayOffset array offset>} will + * be zero.

+ */ + // @ts-ignore + public static wrap(array: number): java.nio.LongBuffer; + /** + * Creates a new long buffer that shares this buffer's content. + *

The content of the new buffer will be that of this buffer. Changes + * to this buffer's content will be visible in the new buffer, and vice + * versa; the two buffers' position, limit, and mark values will be + * independent. + *

The new buffer's capacity, limit, position, and mark values will be + * identical to those of this buffer. The new buffer will be direct if, + * and only if, this buffer is direct, and it will be read-only if, and + * only if, this buffer is read-only.

+ */ + // @ts-ignore + public abstract duplicate(): java.nio.LongBuffer; + /** + * Creates a new, read-only long buffer that shares this buffer's + * content. + *

The content of the new buffer will be that of this buffer. Changes + * to this buffer's content will be visible in the new buffer; the new + * buffer itself, however, will be read-only and will not allow the shared + * content to be modified. The two buffers' position, limit, and mark + * values will be independent. + *

The new buffer's capacity, limit, position, and mark values will be + * identical to those of this buffer. + *

If this buffer is itself read-only then this method behaves in + * exactly the same way as the {@link #duplicate duplicate} method.

+ */ + // @ts-ignore + public abstract asReadOnlyBuffer(): java.nio.LongBuffer; + /** + * Relative get method. Reads the long at this buffer's + * current position, and then increments the position. + */ + // @ts-ignore + public abstract get(): number; + /** + * Relative put method  (optional operation). + *

Writes the given long into this buffer at the current + * position, and then increments the position.

+ */ + // @ts-ignore + public abstract put(l: number): java.nio.LongBuffer; + /** + * Relative bulk get method. + *

This method transfers longs from this buffer into the given + * destination array. If there are fewer longs remaining in the + * buffer than are required to satisfy the request, that is, if + * length > remaining(), then no + * longs are transferred and a {@link BufferUnderflowException} is + * thrown. + *

Otherwise, this method copies length longs from this + * buffer into the given array, starting at the current position of this + * buffer and at the given offset in the array. The position of this + * buffer is then incremented by length. + *

In other words, an invocation of this method of the form + * src.get(dst, off, len) has exactly the same effect as + * the loop + *

{@code
+             * for (int i = off; i < off + len; i++)
+             * dst[i] = src.get():
+             * }
+ * except that it first checks that there are sufficient longs in + * this buffer and it is potentially much more efficient. + */ + // @ts-ignore + public get(dst: number, offset: number, length: number): java.nio.LongBuffer; + /** + * Relative bulk get method. + *

This method transfers longs from this buffer into the given + * destination array. An invocation of this method of the form + * src.get(a) behaves in exactly the same way as the invocation + *

+             * src.get(a, 0, a.length) 
+ */ + // @ts-ignore + public get(dst: number): java.nio.LongBuffer; + /** + * Relative bulk put method  (optional operation). + *

This method transfers the longs remaining in the given source + * buffer into this buffer. If there are more longs remaining in the + * source buffer than in this buffer, that is, if + * src.remaining() > remaining(), + * then no longs are transferred and a {@link + * BufferOverflowException} is thrown. + *

Otherwise, this method copies + * n = src.remaining() longs from the given + * buffer into this buffer, starting at each buffer's current position. + * The positions of both buffers are then incremented by n. + *

In other words, an invocation of this method of the form + * dst.put(src) has exactly the same effect as the loop + *

+             * while (src.hasRemaining())
+             * dst.put(src.get()); 
+ * except that it first checks that there is sufficient space in this + * buffer and it is potentially much more efficient. + */ + // @ts-ignore + public put(src: java.nio.LongBuffer): java.nio.LongBuffer; + /** + * Relative bulk put method  (optional operation). + *

This method transfers longs into this buffer from the given + * source array. If there are more longs to be copied from the array + * than remain in this buffer, that is, if + * length > remaining(), then no + * longs are transferred and a {@link BufferOverflowException} is + * thrown. + *

Otherwise, this method copies length longs from the + * given array into this buffer, starting at the given offset in the array + * and at the current position of this buffer. The position of this buffer + * is then incremented by length. + *

In other words, an invocation of this method of the form + * dst.put(src, off, len) has exactly the same effect as + * the loop + *

{@code
+             * for (int i = off; i < off + len; i++)
+             * dst.put(a[i]);
+             * }
+ * except that it first checks that there is sufficient space in this + * buffer and it is potentially much more efficient. + */ + // @ts-ignore + public put(src: number, offset: number, length: number): java.nio.LongBuffer; + /** + * Relative bulk put method  (optional operation). + *

This method transfers the entire content of the given source + * long array into this buffer. An invocation of this method of the + * form dst.put(a) behaves in exactly the same way as the + * invocation + *

+             * dst.put(a, 0, a.length) 
+ */ + // @ts-ignore + public put(src: number): java.nio.LongBuffer; + /** + * Tells whether or not this buffer is backed by an accessible long + * array. + *

If this method returns true then the {@link #array() array} + * and {@link #arrayOffset() arrayOffset} methods may safely be invoked. + *

+ */ + // @ts-ignore + public hasArray(): boolean; + /** + * Returns the long array that backs this + * buffer  (optional operation). + *

Modifications to this buffer's content will cause the returned + * array's content to be modified, and vice versa. + *

Invoke the {@link #hasArray hasArray} method before invoking this + * method in order to ensure that this buffer has an accessible backing + * array.

+ */ + // @ts-ignore + public array(): number[]; + /** + * Returns the offset within this buffer's backing array of the first + * element of the buffer  (optional operation). + *

If this buffer is backed by an array then buffer position p + * corresponds to array index p + arrayOffset(). + *

Invoke the {@link #hasArray hasArray} method before invoking this + * method in order to ensure that this buffer has an accessible backing + * array.

+ */ + // @ts-ignore + public arrayOffset(): number; + /** + * Compacts this buffer  (optional operation). + *

The longs between the buffer's current position and its limit, + * if any, are copied to the beginning of the buffer. That is, the + * long at index p = position() is copied + * to index zero, the long at index p + 1 is copied + * to index one, and so forth until the long at index + * limit() - 1 is copied to index + * n = limit() - 1 - p. + * The buffer's position is then set to n+1 and its limit is set to + * its capacity. The mark, if defined, is discarded. + *

The buffer's position is set to the number of longs copied, + * rather than to zero, so that an invocation of this method can be + * followed immediately by an invocation of another relative put + * method.

+ */ + // @ts-ignore + public abstract compact(): java.nio.LongBuffer; + /** + * Tells whether or not this long buffer is direct. + */ + // @ts-ignore + public abstract isDirect(): boolean; + /** + * Returns a string summarizing the state of this buffer. + */ + // @ts-ignore + public toString(): string; + /** + * Returns the current hash code of this buffer. + *

The hash code of a long buffer depends only upon its remaining + * elements; that is, upon the elements from position() up to, and + * including, the element at limit() - 1. + *

Because buffer hash codes are content-dependent, it is inadvisable + * to use buffers as keys in hash maps or similar data structures unless it + * is known that their contents will not change.

+ */ + // @ts-ignore + public hashCode(): number; + /** + * Tells whether or not this buffer is equal to another object. + *

Two long buffers are equal if, and only if, + *

    + *
  1. They have the same element type,

  2. + *
  3. They have the same number of remaining elements, and + *

  4. + *
  5. The two sequences of remaining elements, considered + * independently of their starting positions, are pointwise equal. + *

  6. + *
+ *

A long buffer is not equal to any other type of object.

+ */ + // @ts-ignore + public equals(ob: java.lang.Object): boolean; + /** + * Compares this buffer to another. + *

Two long buffers are compared by comparing their sequences of + * remaining elements lexicographically, without regard to the starting + * position of each sequence within its corresponding buffer. + * Pairs of {@code long} elements are compared as if by invoking + * {@link Long#compare(long,long)}. + *

A long buffer is not comparable to any other type of object. + */ + // @ts-ignore + public compareTo(that: java.nio.LongBuffer): number; + /** + * Retrieves this buffer's byte order. + *

The byte order of a long buffer created by allocation or by + * wrapping an existing long array is the {@link + * ByteOrder#nativeOrder native order} of the underlying + * hardware. The byte order of a long buffer created as a view of a byte buffer is that of the + * byte buffer at the moment that the view is created.

+ */ + // @ts-ignore + public abstract order(): java.nio.ByteOrder; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.MappedByteBuffer.d.ts b/packages/types/dist/typings/jdk/java.nio.MappedByteBuffer.d.ts new file mode 100644 index 00000000..c18a4a46 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.MappedByteBuffer.d.ts @@ -0,0 +1,47 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + // @ts-ignore + abstract class MappedByteBuffer extends java.nio.ByteBuffer { + /** + * Tells whether or not this buffer's content is resident in physical + * memory. + *

A return value of true implies that it is highly likely + * that all of the data in this buffer is resident in physical memory and + * may therefore be accessed without incurring any virtual-memory page + * faults or I/O operations. A return value of false does not + * necessarily imply that the buffer's content is not resident in physical + * memory. + *

The returned value is a hint, rather than a guarantee, because the + * underlying operating system may have paged out some of the buffer's data + * by the time that an invocation of this method returns.

+ */ + // @ts-ignore + public isLoaded(): boolean; + /** + * Loads this buffer's content into physical memory. + *

This method makes a best effort to ensure that, when it returns, + * this buffer's content is resident in physical memory. Invoking this + * method may cause some number of page faults and I/O operations to + * occur.

+ */ + // @ts-ignore + public load(): java.nio.MappedByteBuffer; + /** + * Forces any changes made to this buffer's content to be written to the + * storage device containing the mapped file. + *

If the file mapped into this buffer resides on a local storage + * device then when this method returns it is guaranteed that all changes + * made to the buffer since it was created, or since this method was last + * invoked, will have been written to that device. + *

If the file does not reside on a local device then no such guarantee + * is made. + *

If this buffer was not mapped in read/write mode ({@link + * java.nio.channels.FileChannel.MapMode#READ_WRITE}) then invoking this + * method has no effect.

+ */ + // @ts-ignore + public force(): java.nio.MappedByteBuffer; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.ReadOnlyBufferException.d.ts b/packages/types/dist/typings/jdk/java.nio.ReadOnlyBufferException.d.ts new file mode 100644 index 00000000..86b06f74 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.ReadOnlyBufferException.d.ts @@ -0,0 +1,13 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + // @ts-ignore + class ReadOnlyBufferException extends java.lang.UnsupportedOperationException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.ShortBuffer.d.ts b/packages/types/dist/typings/jdk/java.nio.ShortBuffer.d.ts new file mode 100644 index 00000000..7b2d88c2 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.ShortBuffer.d.ts @@ -0,0 +1,280 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + // @ts-ignore + abstract class ShortBuffer extends java.nio.Buffer { + /** + * Allocates a new short buffer. + *

The new buffer's position will be zero, its limit will be its + * capacity, its mark will be undefined, and each of its elements will be + * initialized to zero. It will have a {@link #array backing array}, + * and its {@link #arrayOffset array offset} will be zero. + */ + // @ts-ignore + public static allocate(capacity: number): java.nio.ShortBuffer; + /** + * Wraps a short array into a buffer. + *

The new buffer will be backed by the given short array; + * that is, modifications to the buffer will cause the array to be modified + * and vice versa. The new buffer's capacity will be + * array.length, its position will be offset, its limit + * will be offset + length, and its mark will be undefined. Its + * {@link #array backing array} will be the given array, and + * its {@link #arrayOffset array offset} will be zero.

+ */ + // @ts-ignore + public static wrap(array: number, offset: number, length: number): java.nio.ShortBuffer; + /** + * Wraps a short array into a buffer. + *

The new buffer will be backed by the given short array; + * that is, modifications to the buffer will cause the array to be modified + * and vice versa. The new buffer's capacity and limit will be + * array.length, its position will be zero, and its mark will be + * undefined. Its {@link #array backing array} will be the + * given array, and its {@link #arrayOffset array offset>} will + * be zero.

+ */ + // @ts-ignore + public static wrap(array: number): java.nio.ShortBuffer; + /** + * Creates a new short buffer that shares this buffer's content. + *

The content of the new buffer will be that of this buffer. Changes + * to this buffer's content will be visible in the new buffer, and vice + * versa; the two buffers' position, limit, and mark values will be + * independent. + *

The new buffer's capacity, limit, position, and mark values will be + * identical to those of this buffer. The new buffer will be direct if, + * and only if, this buffer is direct, and it will be read-only if, and + * only if, this buffer is read-only.

+ */ + // @ts-ignore + public abstract duplicate(): java.nio.ShortBuffer; + /** + * Creates a new, read-only short buffer that shares this buffer's + * content. + *

The content of the new buffer will be that of this buffer. Changes + * to this buffer's content will be visible in the new buffer; the new + * buffer itself, however, will be read-only and will not allow the shared + * content to be modified. The two buffers' position, limit, and mark + * values will be independent. + *

The new buffer's capacity, limit, position, and mark values will be + * identical to those of this buffer. + *

If this buffer is itself read-only then this method behaves in + * exactly the same way as the {@link #duplicate duplicate} method.

+ */ + // @ts-ignore + public abstract asReadOnlyBuffer(): java.nio.ShortBuffer; + /** + * Relative get method. Reads the short at this buffer's + * current position, and then increments the position. + */ + // @ts-ignore + public abstract get(): number; + /** + * Relative put method  (optional operation). + *

Writes the given short into this buffer at the current + * position, and then increments the position.

+ */ + // @ts-ignore + public abstract put(s: number): java.nio.ShortBuffer; + /** + * Relative bulk get method. + *

This method transfers shorts from this buffer into the given + * destination array. If there are fewer shorts remaining in the + * buffer than are required to satisfy the request, that is, if + * length > remaining(), then no + * shorts are transferred and a {@link BufferUnderflowException} is + * thrown. + *

Otherwise, this method copies length shorts from this + * buffer into the given array, starting at the current position of this + * buffer and at the given offset in the array. The position of this + * buffer is then incremented by length. + *

In other words, an invocation of this method of the form + * src.get(dst, off, len) has exactly the same effect as + * the loop + *

{@code
+             * for (int i = off; i < off + len; i++)
+             * dst[i] = src.get():
+             * }
+ * except that it first checks that there are sufficient shorts in + * this buffer and it is potentially much more efficient. + */ + // @ts-ignore + public get(dst: number, offset: number, length: number): java.nio.ShortBuffer; + /** + * Relative bulk get method. + *

This method transfers shorts from this buffer into the given + * destination array. An invocation of this method of the form + * src.get(a) behaves in exactly the same way as the invocation + *

+             * src.get(a, 0, a.length) 
+ */ + // @ts-ignore + public get(dst: number): java.nio.ShortBuffer; + /** + * Relative bulk put method  (optional operation). + *

This method transfers the shorts remaining in the given source + * buffer into this buffer. If there are more shorts remaining in the + * source buffer than in this buffer, that is, if + * src.remaining() > remaining(), + * then no shorts are transferred and a {@link + * BufferOverflowException} is thrown. + *

Otherwise, this method copies + * n = src.remaining() shorts from the given + * buffer into this buffer, starting at each buffer's current position. + * The positions of both buffers are then incremented by n. + *

In other words, an invocation of this method of the form + * dst.put(src) has exactly the same effect as the loop + *

+             * while (src.hasRemaining())
+             * dst.put(src.get()); 
+ * except that it first checks that there is sufficient space in this + * buffer and it is potentially much more efficient. + */ + // @ts-ignore + public put(src: java.nio.ShortBuffer): java.nio.ShortBuffer; + /** + * Relative bulk put method  (optional operation). + *

This method transfers shorts into this buffer from the given + * source array. If there are more shorts to be copied from the array + * than remain in this buffer, that is, if + * length > remaining(), then no + * shorts are transferred and a {@link BufferOverflowException} is + * thrown. + *

Otherwise, this method copies length shorts from the + * given array into this buffer, starting at the given offset in the array + * and at the current position of this buffer. The position of this buffer + * is then incremented by length. + *

In other words, an invocation of this method of the form + * dst.put(src, off, len) has exactly the same effect as + * the loop + *

{@code
+             * for (int i = off; i < off + len; i++)
+             * dst.put(a[i]);
+             * }
+ * except that it first checks that there is sufficient space in this + * buffer and it is potentially much more efficient. + */ + // @ts-ignore + public put(src: number, offset: number, length: number): java.nio.ShortBuffer; + /** + * Relative bulk put method  (optional operation). + *

This method transfers the entire content of the given source + * short array into this buffer. An invocation of this method of the + * form dst.put(a) behaves in exactly the same way as the + * invocation + *

+             * dst.put(a, 0, a.length) 
+ */ + // @ts-ignore + public put(src: number): java.nio.ShortBuffer; + /** + * Tells whether or not this buffer is backed by an accessible short + * array. + *

If this method returns true then the {@link #array() array} + * and {@link #arrayOffset() arrayOffset} methods may safely be invoked. + *

+ */ + // @ts-ignore + public hasArray(): boolean; + /** + * Returns the short array that backs this + * buffer  (optional operation). + *

Modifications to this buffer's content will cause the returned + * array's content to be modified, and vice versa. + *

Invoke the {@link #hasArray hasArray} method before invoking this + * method in order to ensure that this buffer has an accessible backing + * array.

+ */ + // @ts-ignore + public array(): number[]; + /** + * Returns the offset within this buffer's backing array of the first + * element of the buffer  (optional operation). + *

If this buffer is backed by an array then buffer position p + * corresponds to array index p + arrayOffset(). + *

Invoke the {@link #hasArray hasArray} method before invoking this + * method in order to ensure that this buffer has an accessible backing + * array.

+ */ + // @ts-ignore + public arrayOffset(): number; + /** + * Compacts this buffer  (optional operation). + *

The shorts between the buffer's current position and its limit, + * if any, are copied to the beginning of the buffer. That is, the + * short at index p = position() is copied + * to index zero, the short at index p + 1 is copied + * to index one, and so forth until the short at index + * limit() - 1 is copied to index + * n = limit() - 1 - p. + * The buffer's position is then set to n+1 and its limit is set to + * its capacity. The mark, if defined, is discarded. + *

The buffer's position is set to the number of shorts copied, + * rather than to zero, so that an invocation of this method can be + * followed immediately by an invocation of another relative put + * method.

+ */ + // @ts-ignore + public abstract compact(): java.nio.ShortBuffer; + /** + * Tells whether or not this short buffer is direct. + */ + // @ts-ignore + public abstract isDirect(): boolean; + /** + * Returns a string summarizing the state of this buffer. + */ + // @ts-ignore + public toString(): string; + /** + * Returns the current hash code of this buffer. + *

The hash code of a short buffer depends only upon its remaining + * elements; that is, upon the elements from position() up to, and + * including, the element at limit() - 1. + *

Because buffer hash codes are content-dependent, it is inadvisable + * to use buffers as keys in hash maps or similar data structures unless it + * is known that their contents will not change.

+ */ + // @ts-ignore + public hashCode(): number; + /** + * Tells whether or not this buffer is equal to another object. + *

Two short buffers are equal if, and only if, + *

    + *
  1. They have the same element type,

  2. + *
  3. They have the same number of remaining elements, and + *

  4. + *
  5. The two sequences of remaining elements, considered + * independently of their starting positions, are pointwise equal. + *

  6. + *
+ *

A short buffer is not equal to any other type of object.

+ */ + // @ts-ignore + public equals(ob: java.lang.Object): boolean; + /** + * Compares this buffer to another. + *

Two short buffers are compared by comparing their sequences of + * remaining elements lexicographically, without regard to the starting + * position of each sequence within its corresponding buffer. + * Pairs of {@code short} elements are compared as if by invoking + * {@link Short#compare(short,short)}. + *

A short buffer is not comparable to any other type of object. + */ + // @ts-ignore + public compareTo(that: java.nio.ShortBuffer): number; + /** + * Retrieves this buffer's byte order. + *

The byte order of a short buffer created by allocation or by + * wrapping an existing short array is the {@link + * ByteOrder#nativeOrder native order} of the underlying + * hardware. The byte order of a short buffer created as a view of a byte buffer is that of the + * byte buffer at the moment that the view is created.

+ */ + // @ts-ignore + public abstract order(): java.nio.ByteOrder; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.AcceptPendingException.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.AcceptPendingException.d.ts new file mode 100644 index 00000000..b3425379 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.AcceptPendingException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + class AcceptPendingException extends java.lang.IllegalStateException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.AlreadyBoundException.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.AlreadyBoundException.d.ts new file mode 100644 index 00000000..b5f4f2bc --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.AlreadyBoundException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + class AlreadyBoundException extends java.lang.IllegalStateException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.AlreadyConnectedException.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.AlreadyConnectedException.d.ts new file mode 100644 index 00000000..16011ffa --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.AlreadyConnectedException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + class AlreadyConnectedException extends java.lang.IllegalStateException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.AsynchronousByteChannel.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.AsynchronousByteChannel.d.ts new file mode 100644 index 00000000..b430d6bf --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.AsynchronousByteChannel.d.ts @@ -0,0 +1,98 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + interface AsynchronousByteChannel { + /** + * Reads a sequence of bytes from this channel into the given buffer. + *

This method initiates an asynchronous read operation to read a + * sequence of bytes from this channel into the given buffer. The {@code + * handler} parameter is a completion handler that is invoked when the read + * operation completes (or fails). The result passed to the completion + * handler is the number of bytes read or {@code -1} if no bytes could be + * read because the channel has reached end-of-stream. + *

The read operation may read up to r bytes from the channel, + * where r is the number of bytes remaining in the buffer, that is, + * {@code dst.remaining()} at the time that the read is attempted. Where + * r is 0, the read operation completes immediately with a result of + * {@code 0} without initiating an I/O operation. + *

Suppose that a byte sequence of length n is read, where + * 0 < n <= r. + * This byte sequence will be transferred into the buffer so that the first + * byte in the sequence is at index p and the last byte is at index + * p + n - 1, + * where p is the buffer's position at the moment the read is + * performed. Upon completion the buffer's position will be equal to + * p + n; its limit will not have changed. + *

Buffers are not safe for use by multiple concurrent threads so care + * should be taken to not access the buffer until the operation has + * completed. + *

This method may be invoked at any time. Some channel types may not + * allow more than one read to be outstanding at any given time. If a thread + * initiates a read operation before a previous read operation has + * completed then a {@link ReadPendingException} will be thrown. + */ + // @ts-ignore + read(dst: java.nio.ByteBuffer, attachment: java.lang.Object, handler: java.nio.channels.CompletionHandler): void; + /** + * Reads a sequence of bytes from this channel into the given buffer. + *

This method initiates an asynchronous read operation to read a + * sequence of bytes from this channel into the given buffer. The method + * behaves in exactly the same manner as the {@link + * #read(ByteBuffer,Object,CompletionHandler) + * read(ByteBuffer,Object,CompletionHandler)} method except that instead + * of specifying a completion handler, this method returns a {@code Future} + * representing the pending result. The {@code Future}'s {@link Future#get() + * get} method returns the number of bytes read or {@code -1} if no bytes + * could be read because the channel has reached end-of-stream. + */ + // @ts-ignore + read(dst: java.nio.ByteBuffer): java.util.concurrent.Future; + /** + * Writes a sequence of bytes to this channel from the given buffer. + *

This method initiates an asynchronous write operation to write a + * sequence of bytes to this channel from the given buffer. The {@code + * handler} parameter is a completion handler that is invoked when the write + * operation completes (or fails). The result passed to the completion + * handler is the number of bytes written. + *

The write operation may write up to r bytes to the channel, + * where r is the number of bytes remaining in the buffer, that is, + * {@code src.remaining()} at the time that the write is attempted. Where + * r is 0, the write operation completes immediately with a result of + * {@code 0} without initiating an I/O operation. + *

Suppose that a byte sequence of length n is written, where + * 0 < n <= r. + * This byte sequence will be transferred from the buffer starting at index + * p, where p is the buffer's position at the moment the + * write is performed; the index of the last byte written will be + * p + n - 1. + * Upon completion the buffer's position will be equal to + * p + n; its limit will not have changed. + *

Buffers are not safe for use by multiple concurrent threads so care + * should be taken to not access the buffer until the operation has + * completed. + *

This method may be invoked at any time. Some channel types may not + * allow more than one write to be outstanding at any given time. If a thread + * initiates a write operation before a previous write operation has + * completed then a {@link WritePendingException} will be thrown. + */ + // @ts-ignore + write(src: java.nio.ByteBuffer, attachment: java.lang.Object, handler: java.nio.channels.CompletionHandler): void; + /** + * Writes a sequence of bytes to this channel from the given buffer. + *

This method initiates an asynchronous write operation to write a + * sequence of bytes to this channel from the given buffer. The method + * behaves in exactly the same manner as the {@link + * #write(ByteBuffer,Object,CompletionHandler) + * write(ByteBuffer,Object,CompletionHandler)} method except that instead + * of specifying a completion handler, this method returns a {@code Future} + * representing the pending result. The {@code Future}'s {@link Future#get() + * get} method returns the number of bytes written. + */ + // @ts-ignore + write(src: java.nio.ByteBuffer): java.util.concurrent.Future; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.AsynchronousChannel.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.AsynchronousChannel.d.ts new file mode 100644 index 00000000..5a8bd37f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.AsynchronousChannel.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + interface AsynchronousChannel { + /** + * Closes this channel. + *

Any outstanding asynchronous operations upon this channel will + * complete with the exception {@link AsynchronousCloseException}. After a + * channel is closed, further attempts to initiate asynchronous I/O + * operations complete immediately with cause {@link ClosedChannelException}. + *

This method otherwise behaves exactly as specified by the {@link + * Channel} interface. + */ + // @ts-ignore + close(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.AsynchronousChannelGroup.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.AsynchronousChannelGroup.d.ts new file mode 100644 index 00000000..5c2c9708 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.AsynchronousChannelGroup.d.ts @@ -0,0 +1,125 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + abstract class AsynchronousChannelGroup extends java.lang.Object { + /** + * Initialize a new instance of this class. + */ + // @ts-ignore + constructor(provider: java.nio.channels.spi.AsynchronousChannelProvider) + /** + * Returns the provider that created this channel group. + */ + // @ts-ignore + public provider(): java.nio.channels.spi.AsynchronousChannelProvider; + /** + * Creates an asynchronous channel group with a fixed thread pool. + *

The resulting asynchronous channel group reuses a fixed number of + * threads. At any point, at most {@code nThreads} threads will be active + * processing tasks that are submitted to handle I/O events and dispatch + * completion results for operations initiated on asynchronous channels in + * the group. + *

The group is created by invoking the {@link + * AsynchronousChannelProvider#openAsynchronousChannelGroup(int,ThreadFactory) + * openAsynchronousChannelGroup(int,ThreadFactory)} method of the system-wide + * default {@link AsynchronousChannelProvider} object. + */ + // @ts-ignore + public static withFixedThreadPool(nThreads: number, threadFactory: java.util.concurrent.ThreadFactory): java.nio.channels.AsynchronousChannelGroup; + /** + * Creates an asynchronous channel group with a given thread pool that + * creates new threads as needed. + *

The {@code executor} parameter is an {@code ExecutorService} that + * creates new threads as needed to execute tasks that are submitted to + * handle I/O events and dispatch completion results for operations initiated + * on asynchronous channels in the group. It may reuse previously constructed + * threads when they are available. + *

The {@code initialSize} parameter may be used by the implementation + * as a hint as to the initial number of tasks it may submit. For + * example, it may be used to indicate the initial number of threads that + * wait on I/O events. + *

The executor is intended to be used exclusively by the resulting + * asynchronous channel group. Termination of the group results in the + * orderly {@link ExecutorService#shutdown shutdown} of the executor + * service. Shutting down the executor service by other means results in + * unspecified behavior. + *

The group is created by invoking the {@link + * AsynchronousChannelProvider#openAsynchronousChannelGroup(ExecutorService,int) + * openAsynchronousChannelGroup(ExecutorService,int)} method of the system-wide + * default {@link AsynchronousChannelProvider} object. + */ + // @ts-ignore + public static withCachedThreadPool(executor: java.util.concurrent.ExecutorService, initialSize: number): java.nio.channels.AsynchronousChannelGroup; + /** + * Creates an asynchronous channel group with a given thread pool. + *

The {@code executor} parameter is an {@code ExecutorService} that + * executes tasks submitted to dispatch completion results for operations + * initiated on asynchronous channels in the group. + *

Care should be taken when configuring the executor service. It + * should support direct handoff or unbounded queuing of + * submitted tasks, and the thread that invokes the {@link + * ExecutorService#execute execute} method should never invoke the task + * directly. An implementation may mandate additional constraints. + *

The executor is intended to be used exclusively by the resulting + * asynchronous channel group. Termination of the group results in the + * orderly {@link ExecutorService#shutdown shutdown} of the executor + * service. Shutting down the executor service by other means results in + * unspecified behavior. + *

The group is created by invoking the {@link + * AsynchronousChannelProvider#openAsynchronousChannelGroup(ExecutorService,int) + * openAsynchronousChannelGroup(ExecutorService,int)} method of the system-wide + * default {@link AsynchronousChannelProvider} object with an {@code + * initialSize} of {@code 0}. + */ + // @ts-ignore + public static withThreadPool(executor: java.util.concurrent.ExecutorService): java.nio.channels.AsynchronousChannelGroup; + /** + * Tells whether or not this asynchronous channel group is shutdown. + */ + // @ts-ignore + public abstract isShutdown(): boolean; + /** + * Tells whether or not this group has terminated. + *

Where this method returns {@code true}, then the associated thread + * pool has also {@link ExecutorService#isTerminated terminated}. + */ + // @ts-ignore + public abstract isTerminated(): boolean; + /** + * Initiates an orderly shutdown of the group. + *

This method marks the group as shutdown. Further attempts to construct + * channel that binds to this group will throw {@link ShutdownChannelGroupException}. + * The group terminates when all asynchronous channels in the group are + * closed, all actively executing completion handlers have run to completion, + * and all resources have been released. This method has no effect if the + * group is already shutdown. + */ + // @ts-ignore + public abstract shutdown(): void; + /** + * Shuts down the group and closes all open channels in the group. + *

In addition to the actions performed by the {@link #shutdown() shutdown} + * method, this method invokes the {@link AsynchronousChannel#close close} + * method on all open channels in the group. This method does not attempt to + * stop or interrupt threads that are executing completion handlers. The + * group terminates when all actively executing completion handlers have run + * to completion and all resources have been released. This method may be + * invoked at any time. If some other thread has already invoked it, then + * another invocation will block until the first invocation is complete, + * after which it will return without effect. + */ + // @ts-ignore + public abstract shutdownNow(): void; + /** + * Awaits termination of the group. + *

This method blocks until the group has terminated, or the timeout + * occurs, or the current thread is interrupted, whichever happens first. + */ + // @ts-ignore + public abstract awaitTermination(timeout: number, unit: java.util.concurrent.TimeUnit): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.AsynchronousCloseException.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.AsynchronousCloseException.d.ts new file mode 100644 index 00000000..a063be02 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.AsynchronousCloseException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + class AsynchronousCloseException extends java.nio.channels.ClosedChannelException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.AsynchronousFileChannel.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.AsynchronousFileChannel.d.ts new file mode 100644 index 00000000..b75087c1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.AsynchronousFileChannel.d.ts @@ -0,0 +1,271 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + abstract class AsynchronousFileChannel extends java.lang.Object { + /** + * Initializes a new instance of this class. + */ + // @ts-ignore + constructor() + /** + * Opens or creates a file for reading and/or writing, returning an + * asynchronous file channel to access the file. + *

The {@code options} parameter determines how the file is opened. + * The {@link StandardOpenOption#READ READ} and {@link StandardOpenOption#WRITE + * WRITE} options determines if the file should be opened for reading and/or + * writing. If neither option is contained in the array then an existing file + * is opened for reading. + *

In addition to {@code READ} and {@code WRITE}, the following options + * may be present: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Option Description
{@link StandardOpenOption#TRUNCATE_EXISTING TRUNCATE_EXISTING} When opening an existing file, the file is first truncated to a + * size of 0 bytes. This option is ignored when the file is opened only + * for reading.
{@link StandardOpenOption#CREATE_NEW CREATE_NEW} If this option is present then a new file is created, failing if + * the file already exists. When creating a file the check for the + * existence of the file and the creation of the file if it does not exist + * is atomic with respect to other file system operations. This option is + * ignored when the file is opened only for reading.
{@link StandardOpenOption#CREATE CREATE} If this option is present then an existing file is opened if it + * exists, otherwise a new file is created. When creating a file the check + * for the existence of the file and the creation of the file if it does + * not exist is atomic with respect to other file system operations. This + * option is ignored if the {@code CREATE_NEW} option is also present or + * the file is opened only for reading.
{@link StandardOpenOption#DELETE_ON_CLOSE DELETE_ON_CLOSE} When this option is present then the implementation makes a + * best effort attempt to delete the file when closed by the + * the {@link #close close} method. If the {@code close} method is not + * invoked then a best effort attempt is made to delete the file + * when the Java virtual machine terminates.
{@link StandardOpenOption#SPARSE SPARSE} When creating a new file this option is a hint that the + * new file will be sparse. This option is ignored when not creating + * a new file.
{@link StandardOpenOption#SYNC SYNC} Requires that every update to the file's content or metadata be + * written synchronously to the underlying storage device. (see Synchronized I/O file + * integrity).
{@link StandardOpenOption#DSYNC DSYNC} Requires that every update to the file's content be written + * synchronously to the underlying storage device. (see Synchronized I/O file + * integrity).
+ *

An implementation may also support additional options. + *

The {@code executor} parameter is the {@link ExecutorService} to + * which tasks are submitted to handle I/O events and dispatch completion + * results for operations initiated on resulting channel. + * The nature of these tasks is highly implementation specific and so care + * should be taken when configuring the {@code Executor}. Minimally it + * should support an unbounded work queue and should not run tasks on the + * caller thread of the {@link ExecutorService#execute execute} method. + * Shutting down the executor service while the channel is open results in + * unspecified behavior. + *

The {@code attrs} parameter is an optional array of file {@link + * FileAttribute file-attributes} to set atomically when creating the file. + *

The new channel is created by invoking the {@link + * FileSystemProvider#newFileChannel newFileChannel} method on the + * provider that created the {@code Path}. + */ + // @ts-ignore + public static open(file: java.nio.file.Path, options: java.util.Set, executor: java.util.concurrent.ExecutorService, attrs: java.nio.file.attribute.FileAttribute): java.nio.channels.AsynchronousFileChannel; + /** + * Opens or creates a file for reading and/or writing, returning an + * asynchronous file channel to access the file. + *

An invocation of this method behaves in exactly the same way as the + * invocation + *

+                 * ch.{@link #open(Path,Set,ExecutorService,FileAttribute[])
+                 * open}(file, opts, null, new FileAttribute<?>[0]);
+                 * 
+ * where {@code opts} is a {@code Set} containing the options specified to + * this method. + *

The resulting channel is associated with default thread pool to which + * tasks are submitted to handle I/O events and dispatch to completion + * handlers that consume the result of asynchronous operations performed on + * the resulting channel. + */ + // @ts-ignore + public static open(file: java.nio.file.Path, options: java.nio.file.OpenOption): java.nio.channels.AsynchronousFileChannel; + /** + * Returns the current size of this channel's file. + */ + // @ts-ignore + public abstract size(): number; + /** + * Truncates this channel's file to the given size. + *

If the given size is less than the file's current size then the file + * is truncated, discarding any bytes beyond the new end of the file. If + * the given size is greater than or equal to the file's current size then + * the file is not modified.

+ */ + // @ts-ignore + public abstract truncate(size: number): java.nio.channels.AsynchronousFileChannel; + /** + * Forces any updates to this channel's file to be written to the storage + * device that contains it. + *

If this channel's file resides on a local storage device then when + * this method returns it is guaranteed that all changes made to the file + * since this channel was created, or since this method was last invoked, + * will have been written to that device. This is useful for ensuring that + * critical information is not lost in the event of a system crash. + *

If the file does not reside on a local device then no such guarantee + * is made. + *

The {@code metaData} parameter can be used to limit the number of + * I/O operations that this method is required to perform. Passing + * {@code false} for this parameter indicates that only updates to the + * file's content need be written to storage; passing {@code true} + * indicates that updates to both the file's content and metadata must be + * written, which generally requires at least one more I/O operation. + * Whether this parameter actually has any effect is dependent upon the + * underlying operating system and is therefore unspecified. + *

Invoking this method may cause an I/O operation to occur even if the + * channel was only opened for reading. Some operating systems, for + * example, maintain a last-access time as part of a file's metadata, and + * this time is updated whenever the file is read. Whether or not this is + * actually done is system-dependent and is therefore unspecified. + *

This method is only guaranteed to force changes that were made to + * this channel's file via the methods defined in this class. + */ + // @ts-ignore + public abstract force(metaData: boolean): void; + /** + * Acquires a lock on the given region of this channel's file. + *

This method initiates an operation to acquire a lock on the given + * region of this channel's file. The {@code handler} parameter is a + * completion handler that is invoked when the lock is acquired (or the + * operation fails). The result passed to the completion handler is the + * resulting {@code FileLock}. + *

The region specified by the {@code position} and {@code size} + * parameters need not be contained within, or even overlap, the actual + * underlying file. Lock regions are fixed in size; if a locked region + * initially contains the end of the file and the file grows beyond the + * region then the new portion of the file will not be covered by the lock. + * If a file is expected to grow in size and a lock on the entire file is + * required then a region starting at zero, and no smaller than the + * expected maximum size of the file, should be locked. The two-argument + * {@link #lock(Object,CompletionHandler)} method simply locks a region + * of size {@link Long#MAX_VALUE}. If a lock that overlaps the requested + * region is already held by this Java virtual machine, or this method has + * been invoked to lock an overlapping region and that operation has not + * completed, then this method throws {@link OverlappingFileLockException}. + *

Some operating systems do not support a mechanism to acquire a file + * lock in an asynchronous manner. Consequently an implementation may + * acquire the file lock in a background thread or from a task executed by + * a thread in the associated thread pool. If there are many lock operations + * outstanding then it may consume threads in the Java virtual machine for + * indefinite periods. + *

Some operating systems do not support shared locks, in which case a + * request for a shared lock is automatically converted into a request for + * an exclusive lock. Whether the newly-acquired lock is shared or + * exclusive may be tested by invoking the resulting lock object's {@link + * FileLock#isShared() isShared} method. + *

File locks are held on behalf of the entire Java virtual machine. + * They are not suitable for controlling access to a file by multiple + * threads within the same virtual machine. + */ + // @ts-ignore + public abstract lock(position: number, size: number, shared: boolean, attachment: java.lang.Object, handler: java.nio.channels.CompletionHandler): void; + /** + * Acquires an exclusive lock on this channel's file. + *

This method initiates an operation to acquire a lock on the given + * region of this channel's file. The {@code handler} parameter is a + * completion handler that is invoked when the lock is acquired (or the + * operation fails). The result passed to the completion handler is the + * resulting {@code FileLock}. + *

An invocation of this method of the form {@code ch.lock(att,handler)} + * behaves in exactly the same way as the invocation + *

+                 * ch.{@link #lock(long,long,boolean,Object,CompletionHandler) lock}(0L, Long.MAX_VALUE, false, att, handler)
+                 * 
+ */ + // @ts-ignore + public lock(attachment: java.lang.Object, handler: java.nio.channels.CompletionHandler): void; + /** + * Acquires an exclusive lock on this channel's file. + *

This method initiates an operation to acquire an exclusive lock on this + * channel's file. The method returns a {@code Future} representing the + * pending result of the operation. The {@code Future}'s {@link Future#get() + * get} method returns the {@link FileLock} on successful completion. + *

An invocation of this method behaves in exactly the same way as the + * invocation + *

+                 * ch.{@link #lock(long,long,boolean) lock}(0L, Long.MAX_VALUE, false)
+                 * 
+ */ + // @ts-ignore + public lock(): java.util.concurrent.Future; + /** + * Attempts to acquire a lock on the given region of this channel's file. + *

This method does not block. An invocation always returns immediately, + * either having acquired a lock on the requested region or having failed to + * do so. If it fails to acquire a lock because an overlapping lock is held + * by another program then it returns {@code null}. If it fails to acquire + * a lock for any other reason then an appropriate exception is thrown. + */ + // @ts-ignore + public abstract tryLock(position: number, size: number, shared: boolean): java.nio.channels.FileLock; + /** + * Attempts to acquire an exclusive lock on this channel's file. + *

An invocation of this method of the form {@code ch.tryLock()} + * behaves in exactly the same way as the invocation + *

+                 * ch.{@link #tryLock(long,long,boolean) tryLock}(0L, Long.MAX_VALUE, false) 
+ */ + // @ts-ignore + public tryLock(): java.nio.channels.FileLock; + /** + * Reads a sequence of bytes from this channel into the given buffer, + * starting at the given file position. + *

This method initiates the reading of a sequence of bytes from this + * channel into the given buffer, starting at the given file position. The + * result of the read is the number of bytes read or {@code -1} if the given + * position is greater than or equal to the file's size at the time that the + * read is attempted. + *

This method works in the same manner as the {@link + * AsynchronousByteChannel#read(ByteBuffer,Object,CompletionHandler)} + * method, except that bytes are read starting at the given file position. + * If the given file position is greater than the file's size at the time + * that the read is attempted then no bytes are read. + */ + // @ts-ignore + public abstract read(dst: java.nio.ByteBuffer, position: number, attachment: java.lang.Object, handler: java.nio.channels.CompletionHandler): void; + /** + * Writes a sequence of bytes to this channel from the given buffer, starting + * at the given file position. + *

This method works in the same manner as the {@link + * AsynchronousByteChannel#write(ByteBuffer,Object,CompletionHandler)} + * method, except that bytes are written starting at the given file position. + * If the given position is greater than the file's size, at the time that + * the write is attempted, then the file will be grown to accommodate the new + * bytes; the values of any bytes between the previous end-of-file and the + * newly-written bytes are unspecified. + */ + // @ts-ignore + public abstract write(src: java.nio.ByteBuffer, position: number, attachment: java.lang.Object, handler: java.nio.channels.CompletionHandler): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.AsynchronousServerSocketChannel.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.AsynchronousServerSocketChannel.d.ts new file mode 100644 index 00000000..c3d7bc9a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.AsynchronousServerSocketChannel.d.ts @@ -0,0 +1,94 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + abstract class AsynchronousServerSocketChannel extends java.lang.Object { + /** + * Initializes a new instance of this class. + */ + // @ts-ignore + constructor(provider: java.nio.channels.spi.AsynchronousChannelProvider) + /** + * Returns the provider that created this channel. + */ + // @ts-ignore + public provider(): java.nio.channels.spi.AsynchronousChannelProvider; + /** + * Opens an asynchronous server-socket channel. + *

The new channel is created by invoking the {@link + * java.nio.channels.spi.AsynchronousChannelProvider#openAsynchronousServerSocketChannel + * openAsynchronousServerSocketChannel} method on the {@link + * java.nio.channels.spi.AsynchronousChannelProvider} object that created + * the given group. If the group parameter is null then the + * resulting channel is created by the system-wide default provider, and + * bound to the default group. + */ + // @ts-ignore + public static open(group: java.nio.channels.AsynchronousChannelGroup): java.nio.channels.AsynchronousServerSocketChannel; + /** + * Opens an asynchronous server-socket channel. + *

This method returns an asynchronous server socket channel that is + * bound to the default group. This method is equivalent to evaluating + * the expression: + *

+                 * open((AsynchronousChannelGroup)null);
+                 * 
+ */ + // @ts-ignore + public static open(): java.nio.channels.AsynchronousServerSocketChannel; + /** + * Binds the channel's socket to a local address and configures the socket to + * listen for connections. + *

An invocation of this method is equivalent to the following: + *

+                 * bind(local, 0);
+                 * 
+ */ + // @ts-ignore + public bind(local: java.net.SocketAddress): java.nio.channels.AsynchronousServerSocketChannel; + // @ts-ignore + public abstract setOption(name: java.net.SocketOption, value: java.lang.Object): java.nio.channels.AsynchronousServerSocketChannel; + /** + * Accepts a connection. + *

This method initiates an asynchronous operation to accept a + * connection made to this channel's socket. The {@code handler} parameter is + * a completion handler that is invoked when a connection is accepted (or + * the operation fails). The result passed to the completion handler is + * the {@link AsynchronousSocketChannel} to the new connection. + *

When a new connection is accepted then the resulting {@code + * AsynchronousSocketChannel} will be bound to the same {@link + * AsynchronousChannelGroup} as this channel. If the group is {@link + * AsynchronousChannelGroup#isShutdown shutdown} and a connection is accepted, + * then the connection is closed, and the operation completes with an {@code + * IOException} and cause {@link ShutdownChannelGroupException}. + *

To allow for concurrent handling of new connections, the completion + * handler is not invoked directly by the initiating thread when a new + * connection is accepted immediately (see Threading). + *

If a security manager has been installed then it verifies that the + * address and port number of the connection's remote endpoint are permitted + * by the security manager's {@link SecurityManager#checkAccept checkAccept} + * method. The permission check is performed with privileges that are restricted + * by the calling context of this method. If the permission check fails then + * the connection is closed and the operation completes with a {@link + * SecurityException}. + */ + // @ts-ignore + public abstract accept(attachment: java.lang.Object, handler: java.nio.channels.CompletionHandler): void; + /** + * {@inheritDoc} + *

+ * If there is a security manager set, its {@code checkConnect} method is + * called with the local address and {@code -1} as its arguments to see + * if the operation is allowed. If the operation is not allowed, + * a {@code SocketAddress} representing the + * {@link java.net.InetAddress#getLoopbackAddress loopback} address and the + * local port of the channel's socket is returned. + */ + // @ts-ignore + public abstract getLocalAddress(): java.net.SocketAddress; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.AsynchronousSocketChannel.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.AsynchronousSocketChannel.d.ts new file mode 100644 index 00000000..e3b8c5a4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.AsynchronousSocketChannel.d.ts @@ -0,0 +1,148 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + abstract class AsynchronousSocketChannel extends java.lang.Object { + /** + * Initializes a new instance of this class. + */ + // @ts-ignore + constructor(provider: java.nio.channels.spi.AsynchronousChannelProvider) + /** + * Returns the provider that created this channel. + */ + // @ts-ignore + public provider(): java.nio.channels.spi.AsynchronousChannelProvider; + /** + * Opens an asynchronous socket channel. + *

The new channel is created by invoking the {@link + * AsynchronousChannelProvider#openAsynchronousSocketChannel + * openAsynchronousSocketChannel} method on the {@link + * AsynchronousChannelProvider} that created the group. If the group parameter + * is {@code null} then the resulting channel is created by the system-wide + * default provider, and bound to the default group. + */ + // @ts-ignore + public static open(group: java.nio.channels.AsynchronousChannelGroup): java.nio.channels.AsynchronousSocketChannel; + /** + * Opens an asynchronous socket channel. + *

This method returns an asynchronous socket channel that is bound to + * the default group.This method is equivalent to evaluating the + * expression: + *

+                 * open((AsynchronousChannelGroup)null);
+                 * 
+ */ + // @ts-ignore + public static open(): java.nio.channels.AsynchronousSocketChannel; + // @ts-ignore + public abstract bind(local: java.net.SocketAddress): java.nio.channels.AsynchronousSocketChannel; + // @ts-ignore + public abstract setOption(name: java.net.SocketOption, value: java.lang.Object): java.nio.channels.AsynchronousSocketChannel; + /** + * Shutdown the connection for reading without closing the channel. + *

Once shutdown for reading then further reads on the channel will + * return {@code -1}, the end-of-stream indication. If the input side of the + * connection is already shutdown then invoking this method has no effect. + * The effect on an outstanding read operation is system dependent and + * therefore not specified. The effect, if any, when there is data in the + * socket receive buffer that has not been read, or data arrives subsequently, + * is also system dependent. + */ + // @ts-ignore + public abstract shutdownInput(): java.nio.channels.AsynchronousSocketChannel; + /** + * Shutdown the connection for writing without closing the channel. + *

Once shutdown for writing then further attempts to write to the + * channel will throw {@link ClosedChannelException}. If the output side of + * the connection is already shutdown then invoking this method has no + * effect. The effect on an outstanding write operation is system dependent + * and therefore not specified. + */ + // @ts-ignore + public abstract shutdownOutput(): java.nio.channels.AsynchronousSocketChannel; + /** + * Returns the remote address to which this channel's socket is connected. + *

Where the channel is bound and connected to an Internet Protocol + * socket address then the return value from this method is of type {@link + * java.net.InetSocketAddress}. + */ + // @ts-ignore + public abstract getRemoteAddress(): java.net.SocketAddress; + /** + * Connects this channel. + *

This method initiates an operation to connect this channel. The + * {@code handler} parameter is a completion handler that is invoked when + * the connection is successfully established or connection cannot be + * established. If the connection cannot be established then the channel is + * closed. + *

This method performs exactly the same security checks as the {@link + * java.net.Socket} class. That is, if a security manager has been + * installed then this method verifies that its {@link + * java.lang.SecurityManager#checkConnect checkConnect} method permits + * connecting to the address and port number of the given remote endpoint. + */ + // @ts-ignore + public abstract connect(remote: java.net.SocketAddress, attachment: java.lang.Object, handler: java.nio.channels.CompletionHandler): void; + /** + * Reads a sequence of bytes from this channel into the given buffer. + *

This method initiates an asynchronous read operation to read a + * sequence of bytes from this channel into the given buffer. The {@code + * handler} parameter is a completion handler that is invoked when the read + * operation completes (or fails). The result passed to the completion + * handler is the number of bytes read or {@code -1} if no bytes could be + * read because the channel has reached end-of-stream. + *

If a timeout is specified and the timeout elapses before the operation + * completes then the operation completes with the exception {@link + * InterruptedByTimeoutException}. Where a timeout occurs, and the + * implementation cannot guarantee that bytes have not been read, or will not + * be read from the channel into the given buffer, then further attempts to + * read from the channel will cause an unspecific runtime exception to be + * thrown. + *

Otherwise this method works in the same manner as the {@link + * AsynchronousByteChannel#read(ByteBuffer,Object,CompletionHandler)} + * method. + */ + // @ts-ignore + public abstract read(dst: java.nio.ByteBuffer, timeout: number, unit: java.util.concurrent.TimeUnit, attachment: java.lang.Object, handler: java.nio.channels.CompletionHandler): void; + // @ts-ignore + public read(dst: java.nio.ByteBuffer, attachment: java.lang.Object, handler: java.nio.channels.CompletionHandler): void; + /** + * Writes a sequence of bytes to this channel from the given buffer. + *

This method initiates an asynchronous write operation to write a + * sequence of bytes to this channel from the given buffer. The {@code + * handler} parameter is a completion handler that is invoked when the write + * operation completes (or fails). The result passed to the completion + * handler is the number of bytes written. + *

If a timeout is specified and the timeout elapses before the operation + * completes then it completes with the exception {@link + * InterruptedByTimeoutException}. Where a timeout occurs, and the + * implementation cannot guarantee that bytes have not been written, or will + * not be written to the channel from the given buffer, then further attempts + * to write to the channel will cause an unspecific runtime exception to be + * thrown. + *

Otherwise this method works in the same manner as the {@link + * AsynchronousByteChannel#write(ByteBuffer,Object,CompletionHandler)} + * method. + */ + // @ts-ignore + public abstract write(src: java.nio.ByteBuffer, timeout: number, unit: java.util.concurrent.TimeUnit, attachment: java.lang.Object, handler: java.nio.channels.CompletionHandler): void; + // @ts-ignore + public write(src: java.nio.ByteBuffer, attachment: java.lang.Object, handler: java.nio.channels.CompletionHandler): void; + /** + * {@inheritDoc} + *

+ * If there is a security manager set, its {@code checkConnect} method is + * called with the local address and {@code -1} as its arguments to see + * if the operation is allowed. If the operation is not allowed, + * a {@code SocketAddress} representing the + * {@link java.net.InetAddress#getLoopbackAddress loopback} address and the + * local port of the channel's socket is returned. + */ + // @ts-ignore + public abstract getLocalAddress(): java.net.SocketAddress; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.ByteChannel.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.ByteChannel.d.ts new file mode 100644 index 00000000..cdb871d8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.ByteChannel.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + interface ByteChannel { + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.CancelledKeyException.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.CancelledKeyException.d.ts new file mode 100644 index 00000000..5d1b16c3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.CancelledKeyException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + class CancelledKeyException extends java.lang.IllegalStateException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.Channel.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.Channel.d.ts new file mode 100644 index 00000000..182ebe80 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.Channel.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + interface Channel { + /** + * Tells whether or not this channel is open. + */ + // @ts-ignore + isOpen(): boolean; + /** + * Closes this channel. + *

After a channel is closed, any further attempt to invoke I/O + * operations upon it will cause a {@link ClosedChannelException} to be + * thrown. + *

If this channel is already closed then invoking this method has no + * effect. + *

This method may be invoked at any time. If some other thread has + * already invoked it, however, then another invocation will block until + * the first invocation is complete, after which it will return without + * effect.

+ */ + // @ts-ignore + close(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.Channels.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.Channels.d.ts new file mode 100644 index 00000000..6bcb16e2 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.Channels.d.ts @@ -0,0 +1,122 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + class Channels extends java.lang.Object { + /** + * Constructs a stream that reads bytes from the given channel. + *

The read methods of the resulting stream will throw an + * {@link IllegalBlockingModeException} if invoked while the underlying + * channel is in non-blocking mode. The stream will not be buffered, and + * it will not support the {@link InputStream#mark mark} or {@link + * InputStream#reset reset} methods. The stream will be safe for access by + * multiple concurrent threads. Closing the stream will in turn cause the + * channel to be closed.

+ */ + // @ts-ignore + public static newInputStream(ch: java.nio.channels.ReadableByteChannel): java.io.InputStream; + /** + * Constructs a stream that writes bytes to the given channel. + *

The write methods of the resulting stream will throw an + * {@link IllegalBlockingModeException} if invoked while the underlying + * channel is in non-blocking mode. The stream will not be buffered. The + * stream will be safe for access by multiple concurrent threads. Closing + * the stream will in turn cause the channel to be closed.

+ */ + // @ts-ignore + public static newOutputStream(ch: java.nio.channels.WritableByteChannel): java.io.OutputStream; + /** + * Constructs a stream that reads bytes from the given channel. + *

The stream will not be buffered, and it will not support the {@link + * InputStream#mark mark} or {@link InputStream#reset reset} methods. The + * stream will be safe for access by multiple concurrent threads. Closing + * the stream will in turn cause the channel to be closed.

+ */ + // @ts-ignore + public static newInputStream(ch: java.nio.channels.AsynchronousByteChannel): java.io.InputStream; + /** + * Constructs a stream that writes bytes to the given channel. + *

The stream will not be buffered. The stream will be safe for access + * by multiple concurrent threads. Closing the stream will in turn cause + * the channel to be closed.

+ */ + // @ts-ignore + public static newOutputStream(ch: java.nio.channels.AsynchronousByteChannel): java.io.OutputStream; + /** + * Constructs a channel that reads bytes from the given stream. + *

The resulting channel will not be buffered; it will simply redirect + * its I/O operations to the given stream. Closing the channel will in + * turn cause the stream to be closed.

+ */ + // @ts-ignore + public static newChannel(input: java.io.InputStream): java.nio.channels.ReadableByteChannel; + /** + * Constructs a channel that writes bytes to the given stream. + *

The resulting channel will not be buffered; it will simply redirect + * its I/O operations to the given stream. Closing the channel will in + * turn cause the stream to be closed.

+ */ + // @ts-ignore + public static newChannel(out: java.io.OutputStream): java.nio.channels.WritableByteChannel; + /** + * Constructs a reader that decodes bytes from the given channel using the + * given decoder. + *

The resulting stream will contain an internal input buffer of at + * least minBufferCap bytes. The stream's read methods + * will, as needed, fill the buffer by reading bytes from the underlying + * channel; if the channel is in non-blocking mode when bytes are to be + * read then an {@link IllegalBlockingModeException} will be thrown. The + * resulting stream will not otherwise be buffered, and it will not support + * the {@link Reader#mark mark} or {@link Reader#reset reset} methods. + * Closing the stream will in turn cause the channel to be closed.

+ */ + // @ts-ignore + public static newReader(ch: java.nio.channels.ReadableByteChannel, dec: java.nio.charset.CharsetDecoder, minBufferCap: number): java.io.Reader; + /** + * Constructs a reader that decodes bytes from the given channel according + * to the named charset. + *

An invocation of this method of the form + *

+                 * Channels.newReader(ch, csname)
+ * behaves in exactly the same way as the expression + *
+                 * Channels.newReader(ch,
+                 * Charset.forName(csName)
+                 * .newDecoder(),
+                 * -1);
+ */ + // @ts-ignore + public static newReader(ch: java.nio.channels.ReadableByteChannel, csName: string): java.io.Reader; + /** + * Constructs a writer that encodes characters using the given encoder and + * writes the resulting bytes to the given channel. + *

The resulting stream will contain an internal output buffer of at + * least minBufferCap bytes. The stream's write methods + * will, as needed, flush the buffer by writing bytes to the underlying + * channel; if the channel is in non-blocking mode when bytes are to be + * written then an {@link IllegalBlockingModeException} will be thrown. + * The resulting stream will not otherwise be buffered. Closing the stream + * will in turn cause the channel to be closed.

+ */ + // @ts-ignore + public static newWriter(ch: java.nio.channels.WritableByteChannel, enc: java.nio.charset.CharsetEncoder, minBufferCap: number): java.io.Writer; + /** + * Constructs a writer that encodes characters according to the named + * charset and writes the resulting bytes to the given channel. + *

An invocation of this method of the form + *

+                 * Channels.newWriter(ch, csname)
+ * behaves in exactly the same way as the expression + *
+                 * Channels.newWriter(ch,
+                 * Charset.forName(csName)
+                 * .newEncoder(),
+                 * -1);
+ */ + // @ts-ignore + public static newWriter(ch: java.nio.channels.WritableByteChannel, csName: string): java.io.Writer; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.ClosedByInterruptException.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.ClosedByInterruptException.d.ts new file mode 100644 index 00000000..d4470796 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.ClosedByInterruptException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + class ClosedByInterruptException extends java.nio.channels.AsynchronousCloseException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.ClosedChannelException.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.ClosedChannelException.d.ts new file mode 100644 index 00000000..6a15834a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.ClosedChannelException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + class ClosedChannelException extends java.io.IOException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.ClosedSelectorException.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.ClosedSelectorException.d.ts new file mode 100644 index 00000000..addc2565 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.ClosedSelectorException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + class ClosedSelectorException extends java.lang.IllegalStateException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.CompletionHandler.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.CompletionHandler.d.ts new file mode 100644 index 00000000..af421c3b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.CompletionHandler.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + interface CompletionHandler { + /** + * Invoked when an operation has completed. + */ + // @ts-ignore + completed(result: java.lang.Object, attachment: java.lang.Object): void; + /** + * Invoked when an operation fails. + */ + // @ts-ignore + failed(exc: java.lang.Throwable, attachment: java.lang.Object): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.ConnectionPendingException.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.ConnectionPendingException.d.ts new file mode 100644 index 00000000..d4c03f5b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.ConnectionPendingException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + class ConnectionPendingException extends java.lang.IllegalStateException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.DatagramChannel.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.DatagramChannel.d.ts new file mode 100644 index 00000000..0f445d70 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.DatagramChannel.d.ts @@ -0,0 +1,223 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + abstract class DatagramChannel extends java.nio.channels.spi.AbstractSelectableChannel { + /** + * Initializes a new instance of this class. + */ + // @ts-ignore + constructor(provider: java.nio.channels.spi.SelectorProvider) + /** + * Opens a datagram channel. + *

The new channel is created by invoking the {@link + * java.nio.channels.spi.SelectorProvider#openDatagramChannel() + * openDatagramChannel} method of the system-wide default {@link + * java.nio.channels.spi.SelectorProvider} object. The channel will not be + * connected. + *

The {@link ProtocolFamily ProtocolFamily} of the channel's socket + * is platform (and possibly configuration) dependent and therefore unspecified. + * The {@link #open(ProtocolFamily) open} allows the protocol family to be + * selected when opening a datagram channel, and should be used to open + * datagram channels that are intended for Internet Protocol multicasting. + */ + // @ts-ignore + public static open(): java.nio.channels.DatagramChannel; + /** + * Opens a datagram channel. + *

The {@code family} parameter is used to specify the {@link + * ProtocolFamily}. If the datagram channel is to be used for IP multicasting + * then this should correspond to the address type of the multicast groups + * that this channel will join. + *

The new channel is created by invoking the {@link + * java.nio.channels.spi.SelectorProvider#openDatagramChannel(ProtocolFamily) + * openDatagramChannel} method of the system-wide default {@link + * java.nio.channels.spi.SelectorProvider} object. The channel will not be + * connected. + */ + // @ts-ignore + public static open(family: java.net.ProtocolFamily): java.nio.channels.DatagramChannel; + /** + * Returns an operation set identifying this channel's supported + * operations. + *

Datagram channels support reading and writing, so this method + * returns ({@link SelectionKey#OP_READ} | {@link + * SelectionKey#OP_WRITE}).

+ */ + // @ts-ignore + public validOps(): number; + // @ts-ignore + public abstract bind(local: java.net.SocketAddress): java.nio.channels.DatagramChannel; + // @ts-ignore + public abstract setOption(name: java.net.SocketOption, value: java.lang.Object): java.nio.channels.DatagramChannel; + /** + * Retrieves a datagram socket associated with this channel. + *

The returned object will not declare any public methods that are not + * declared in the {@link java.net.DatagramSocket} class.

+ */ + // @ts-ignore + public abstract socket(): java.net.DatagramSocket; + /** + * Tells whether or not this channel's socket is connected. + */ + // @ts-ignore + public abstract isConnected(): boolean; + /** + * Connects this channel's socket. + *

The channel's socket is configured so that it only receives + * datagrams from, and sends datagrams to, the given remote peer + * address. Once connected, datagrams may not be received from or sent to + * any other address. A datagram socket remains connected until it is + * explicitly disconnected or until it is closed. + *

This method performs exactly the same security checks as the {@link + * java.net.DatagramSocket#connect connect} method of the {@link + * java.net.DatagramSocket} class. That is, if a security manager has been + * installed then this method verifies that its {@link + * java.lang.SecurityManager#checkAccept checkAccept} and {@link + * java.lang.SecurityManager#checkConnect checkConnect} methods permit + * datagrams to be received from and sent to, respectively, the given + * remote address. + *

This method may be invoked at any time. It will not have any effect + * on read or write operations that are already in progress at the moment + * that it is invoked. If this channel's socket is not bound then this method + * will first cause the socket to be bound to an address that is assigned + * automatically, as if invoking the {@link #bind bind} method with a + * parameter of {@code null}.

+ */ + // @ts-ignore + public abstract connect(remote: java.net.SocketAddress): java.nio.channels.DatagramChannel; + /** + * Disconnects this channel's socket. + *

The channel's socket is configured so that it can receive datagrams + * from, and sends datagrams to, any remote address so long as the security + * manager, if installed, permits it. + *

This method may be invoked at any time. It will not have any effect + * on read or write operations that are already in progress at the moment + * that it is invoked. + *

If this channel's socket is not connected, or if the channel is + * closed, then invoking this method has no effect.

+ */ + // @ts-ignore + public abstract disconnect(): java.nio.channels.DatagramChannel; + /** + * Returns the remote address to which this channel's socket is connected. + */ + // @ts-ignore + public abstract getRemoteAddress(): java.net.SocketAddress; + /** + * Receives a datagram via this channel. + *

If a datagram is immediately available, or if this channel is in + * blocking mode and one eventually becomes available, then the datagram is + * copied into the given byte buffer and its source address is returned. + * If this channel is in non-blocking mode and a datagram is not + * immediately available then this method immediately returns + * null. + *

The datagram is transferred into the given byte buffer starting at + * its current position, as if by a regular {@link + * ReadableByteChannel#read(java.nio.ByteBuffer) read} operation. If there + * are fewer bytes remaining in the buffer than are required to hold the + * datagram then the remainder of the datagram is silently discarded. + *

This method performs exactly the same security checks as the {@link + * java.net.DatagramSocket#receive receive} method of the {@link + * java.net.DatagramSocket} class. That is, if the socket is not connected + * to a specific remote address and a security manager has been installed + * then for each datagram received this method verifies that the source's + * address and port number are permitted by the security manager's {@link + * java.lang.SecurityManager#checkAccept checkAccept} method. The overhead + * of this security check can be avoided by first connecting the socket via + * the {@link #connect connect} method. + *

This method may be invoked at any time. If another thread has + * already initiated a read operation upon this channel, however, then an + * invocation of this method will block until the first operation is + * complete. If this channel's socket is not bound then this method will + * first cause the socket to be bound to an address that is assigned + * automatically, as if invoking the {@link #bind bind} method with a + * parameter of {@code null}.

+ */ + // @ts-ignore + public abstract receive(dst: java.nio.ByteBuffer): java.net.SocketAddress; + /** + * Sends a datagram via this channel. + *

If this channel is in non-blocking mode and there is sufficient room + * in the underlying output buffer, or if this channel is in blocking mode + * and sufficient room becomes available, then the remaining bytes in the + * given buffer are transmitted as a single datagram to the given target + * address. + *

The datagram is transferred from the byte buffer as if by a regular + * {@link WritableByteChannel#write(java.nio.ByteBuffer) write} operation. + *

This method performs exactly the same security checks as the {@link + * java.net.DatagramSocket#send send} method of the {@link + * java.net.DatagramSocket} class. That is, if the socket is not connected + * to a specific remote address and a security manager has been installed + * then for each datagram sent this method verifies that the target address + * and port number are permitted by the security manager's {@link + * java.lang.SecurityManager#checkConnect checkConnect} method. The + * overhead of this security check can be avoided by first connecting the + * socket via the {@link #connect connect} method. + *

This method may be invoked at any time. If another thread has + * already initiated a write operation upon this channel, however, then an + * invocation of this method will block until the first operation is + * complete. If this channel's socket is not bound then this method will + * first cause the socket to be bound to an address that is assigned + * automatically, as if by invoking the {@link #bind bind} method with a + * parameter of {@code null}.

+ */ + // @ts-ignore + public abstract send(src: java.nio.ByteBuffer, target: java.net.SocketAddress): number; + /** + * Reads a datagram from this channel. + *

This method may only be invoked if this channel's socket is + * connected, and it only accepts datagrams from the socket's peer. If + * there are more bytes in the datagram than remain in the given buffer + * then the remainder of the datagram is silently discarded. Otherwise + * this method behaves exactly as specified in the {@link + * ReadableByteChannel} interface.

+ */ + // @ts-ignore + public abstract read(dst: java.nio.ByteBuffer): number; + /** + * Reads a datagram from this channel. + *

This method may only be invoked if this channel's socket is + * connected, and it only accepts datagrams from the socket's peer. If + * there are more bytes in the datagram than remain in the given buffers + * then the remainder of the datagram is silently discarded. Otherwise + * this method behaves exactly as specified in the {@link + * ScatteringByteChannel} interface.

+ */ + // @ts-ignore + public read(dsts: java.nio.ByteBuffer): number; + /** + * Writes a datagram to this channel. + *

This method may only be invoked if this channel's socket is + * connected, in which case it sends datagrams directly to the socket's + * peer. Otherwise it behaves exactly as specified in the {@link + * WritableByteChannel} interface.

+ */ + // @ts-ignore + public abstract write(src: java.nio.ByteBuffer): number; + /** + * Writes a datagram to this channel. + *

This method may only be invoked if this channel's socket is + * connected, in which case it sends datagrams directly to the socket's + * peer. Otherwise it behaves exactly as specified in the {@link + * GatheringByteChannel} interface.

+ */ + // @ts-ignore + public write(srcs: java.nio.ByteBuffer): number; + /** + * {@inheritDoc} + *

+ * If there is a security manager set, its {@code checkConnect} method is + * called with the local address and {@code -1} as its arguments to see + * if the operation is allowed. If the operation is not allowed, + * a {@code SocketAddress} representing the + * {@link java.net.InetAddress#getLoopbackAddress loopback} address and the + * local port of the channel's socket is returned. + */ + // @ts-ignore + public abstract getLocalAddress(): java.net.SocketAddress; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.FileChannel.MapMode.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.FileChannel.MapMode.d.ts new file mode 100644 index 00000000..c7df1503 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.FileChannel.MapMode.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + namespace FileChannel { + // @ts-ignore + class MapMode extends java.lang.Object { + // @ts-ignore + public static READ_ONLY: java.nio.channels.FileChannel.MapMode; + // @ts-ignore + public static READ_WRITE: java.nio.channels.FileChannel.MapMode; + // @ts-ignore + public static PRIVATE: java.nio.channels.FileChannel.MapMode; + /** + * Returns a string describing this file-mapping mode. + */ + // @ts-ignore + public toString(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.FileChannel.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.FileChannel.d.ts new file mode 100644 index 00000000..7f963cb4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.FileChannel.d.ts @@ -0,0 +1,379 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + abstract class FileChannel extends java.nio.channels.spi.AbstractInterruptibleChannel { + /** + * Initializes a new instance of this class. + */ + // @ts-ignore + constructor() + /** + * Opens or creates a file, returning a file channel to access the file. + *

The {@code options} parameter determines how the file is opened. + * The {@link StandardOpenOption#READ READ} and {@link StandardOpenOption#WRITE + * WRITE} options determine if the file should be opened for reading and/or + * writing. If neither option (or the {@link StandardOpenOption#APPEND APPEND} + * option) is contained in the array then the file is opened for reading. + * By default reading or writing commences at the beginning of the file. + *

In the addition to {@code READ} and {@code WRITE}, the following + * options may be present: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Option Description
{@link StandardOpenOption#APPEND APPEND} If this option is present then the file is opened for writing and + * each invocation of the channel's {@code write} method first advances + * the position to the end of the file and then writes the requested + * data. Whether the advancement of the position and the writing of the + * data are done in a single atomic operation is system-dependent and + * therefore unspecified. This option may not be used in conjunction + * with the {@code READ} or {@code TRUNCATE_EXISTING} options.
{@link StandardOpenOption#TRUNCATE_EXISTING TRUNCATE_EXISTING} If this option is present then the existing file is truncated to + * a size of 0 bytes. This option is ignored when the file is opened only + * for reading.
{@link StandardOpenOption#CREATE_NEW CREATE_NEW} If this option is present then a new file is created, failing if + * the file already exists. When creating a file the check for the + * existence of the file and the creation of the file if it does not exist + * is atomic with respect to other file system operations. This option is + * ignored when the file is opened only for reading.
{@link StandardOpenOption#CREATE CREATE} If this option is present then an existing file is opened if it + * exists, otherwise a new file is created. When creating a file the check + * for the existence of the file and the creation of the file if it does + * not exist is atomic with respect to other file system operations. This + * option is ignored if the {@code CREATE_NEW} option is also present or + * the file is opened only for reading.
{@link StandardOpenOption#DELETE_ON_CLOSE DELETE_ON_CLOSE} When this option is present then the implementation makes a + * best effort attempt to delete the file when closed by the + * the {@link #close close} method. If the {@code close} method is not + * invoked then a best effort attempt is made to delete the file + * when the Java virtual machine terminates.
{@link StandardOpenOption#SPARSE SPARSE} When creating a new file this option is a hint that the + * new file will be sparse. This option is ignored when not creating + * a new file.
{@link StandardOpenOption#SYNC SYNC} Requires that every update to the file's content or metadata be + * written synchronously to the underlying storage device. (see Synchronized I/O file + * integrity).
{@link StandardOpenOption#DSYNC DSYNC} Requires that every update to the file's content be written + * synchronously to the underlying storage device. (see Synchronized I/O file + * integrity).
+ *

An implementation may also support additional options. + *

The {@code attrs} parameter is an optional array of file {@link + * FileAttribute file-attributes} to set atomically when creating the file. + *

The new channel is created by invoking the {@link + * FileSystemProvider#newFileChannel newFileChannel} method on the + * provider that created the {@code Path}. + */ + // @ts-ignore + public static open(path: java.nio.file.Path, options: java.util.Set, attrs: java.nio.file.attribute.FileAttribute): java.nio.channels.FileChannel; + /** + * Opens or creates a file, returning a file channel to access the file. + *

An invocation of this method behaves in exactly the same way as the + * invocation + *

+                 * fc.{@link #open(Path,Set,FileAttribute[]) open}(file, opts, new FileAttribute<?>[0]);
+                 * 
+ * where {@code opts} is a set of the options specified in the {@code + * options} array. + */ + // @ts-ignore + public static open(path: java.nio.file.Path, options: java.nio.file.OpenOption): java.nio.channels.FileChannel; + /** + * Reads a sequence of bytes from this channel into the given buffer. + *

Bytes are read starting at this channel's current file position, and + * then the file position is updated with the number of bytes actually + * read. Otherwise this method behaves exactly as specified in the {@link + * ReadableByteChannel} interface.

+ */ + // @ts-ignore + public abstract read(dst: java.nio.ByteBuffer): number; + /** + * Reads a sequence of bytes from this channel into the given buffers. + *

Bytes are read starting at this channel's current file position, and + * then the file position is updated with the number of bytes actually + * read. Otherwise this method behaves exactly as specified in the {@link + * ScatteringByteChannel} interface.

+ */ + // @ts-ignore + public read(dsts: java.nio.ByteBuffer): number; + /** + * Writes a sequence of bytes to this channel from the given buffer. + *

Bytes are written starting at this channel's current file position + * unless the channel is in append mode, in which case the position is + * first advanced to the end of the file. The file is grown, if necessary, + * to accommodate the written bytes, and then the file position is updated + * with the number of bytes actually written. Otherwise this method + * behaves exactly as specified by the {@link WritableByteChannel} + * interface.

+ */ + // @ts-ignore + public abstract write(src: java.nio.ByteBuffer): number; + /** + * Writes a sequence of bytes to this channel from the given buffers. + *

Bytes are written starting at this channel's current file position + * unless the channel is in append mode, in which case the position is + * first advanced to the end of the file. The file is grown, if necessary, + * to accommodate the written bytes, and then the file position is updated + * with the number of bytes actually written. Otherwise this method + * behaves exactly as specified in the {@link GatheringByteChannel} + * interface.

+ */ + // @ts-ignore + public write(srcs: java.nio.ByteBuffer): number; + /** + * Returns this channel's file position. + */ + // @ts-ignore + public abstract position(): number; + /** + * Returns the current size of this channel's file. + */ + // @ts-ignore + public abstract size(): number; + /** + * Truncates this channel's file to the given size. + *

If the given size is less than the file's current size then the file + * is truncated, discarding any bytes beyond the new end of the file. If + * the given size is greater than or equal to the file's current size then + * the file is not modified. In either case, if this channel's file + * position is greater than the given size then it is set to that size. + *

+ */ + // @ts-ignore + public abstract truncate(size: number): java.nio.channels.FileChannel; + /** + * Forces any updates to this channel's file to be written to the storage + * device that contains it. + *

If this channel's file resides on a local storage device then when + * this method returns it is guaranteed that all changes made to the file + * since this channel was created, or since this method was last invoked, + * will have been written to that device. This is useful for ensuring that + * critical information is not lost in the event of a system crash. + *

If the file does not reside on a local device then no such guarantee + * is made. + *

The metaData parameter can be used to limit the number of + * I/O operations that this method is required to perform. Passing + * false for this parameter indicates that only updates to the + * file's content need be written to storage; passing true + * indicates that updates to both the file's content and metadata must be + * written, which generally requires at least one more I/O operation. + * Whether this parameter actually has any effect is dependent upon the + * underlying operating system and is therefore unspecified. + *

Invoking this method may cause an I/O operation to occur even if the + * channel was only opened for reading. Some operating systems, for + * example, maintain a last-access time as part of a file's metadata, and + * this time is updated whenever the file is read. Whether or not this is + * actually done is system-dependent and is therefore unspecified. + *

This method is only guaranteed to force changes that were made to + * this channel's file via the methods defined in this class. It may or + * may not force changes that were made by modifying the content of a + * {@link MappedByteBuffer mapped byte buffer} obtained by + * invoking the {@link #map map} method. Invoking the {@link + * MappedByteBuffer#force force} method of the mapped byte buffer will + * force changes made to the buffer's content to be written.

+ */ + // @ts-ignore + public abstract force(metaData: boolean): void; + /** + * Transfers bytes from this channel's file to the given writable byte + * channel. + *

An attempt is made to read up to count bytes starting at + * the given position in this channel's file and write them to the + * target channel. An invocation of this method may or may not transfer + * all of the requested bytes; whether or not it does so depends upon the + * natures and states of the channels. Fewer than the requested number of + * bytes are transferred if this channel's file contains fewer than + * count bytes starting at the given position, or if the + * target channel is non-blocking and it has fewer than count + * bytes free in its output buffer. + *

This method does not modify this channel's position. If the given + * position is greater than the file's current size then no bytes are + * transferred. If the target channel has a position then bytes are + * written starting at that position and then the position is incremented + * by the number of bytes written. + *

This method is potentially much more efficient than a simple loop + * that reads from this channel and writes to the target channel. Many + * operating systems can transfer bytes directly from the filesystem cache + * to the target channel without actually copying them.

+ */ + // @ts-ignore + public abstract transferTo(position: number, count: number, target: java.nio.channels.WritableByteChannel): number; + /** + * Transfers bytes into this channel's file from the given readable byte + * channel. + *

An attempt is made to read up to count bytes from the + * source channel and write them to this channel's file starting at the + * given position. An invocation of this method may or may not + * transfer all of the requested bytes; whether or not it does so depends + * upon the natures and states of the channels. Fewer than the requested + * number of bytes will be transferred if the source channel has fewer than + * count bytes remaining, or if the source channel is non-blocking + * and has fewer than count bytes immediately available in its + * input buffer. + *

This method does not modify this channel's position. If the given + * position is greater than the file's current size then no bytes are + * transferred. If the source channel has a position then bytes are read + * starting at that position and then the position is incremented by the + * number of bytes read. + *

This method is potentially much more efficient than a simple loop + * that reads from the source channel and writes to this channel. Many + * operating systems can transfer bytes directly from the source channel + * into the filesystem cache without actually copying them.

+ */ + // @ts-ignore + public abstract transferFrom(src: java.nio.channels.ReadableByteChannel, position: number, count: number): number; + /** + * Maps a region of this channel's file directly into memory. + *

A region of a file may be mapped into memory in one of three modes: + *

+ *
    + *
  • Read-only: Any attempt to modify the resulting buffer + * will cause a {@link java.nio.ReadOnlyBufferException} to be thrown. + * ({@link MapMode#READ_ONLY MapMode.READ_ONLY})

  • + *
  • Read/write: Changes made to the resulting buffer will + * eventually be propagated to the file; they may or may not be made + * visible to other programs that have mapped the same file. ({@link + * MapMode#READ_WRITE MapMode.READ_WRITE})

  • + *
  • Private: Changes made to the resulting buffer will not + * be propagated to the file and will not be visible to other programs + * that have mapped the same file; instead, they will cause private + * copies of the modified portions of the buffer to be created. ({@link + * MapMode#PRIVATE MapMode.PRIVATE})

  • + *
+ *

For a read-only mapping, this channel must have been opened for + * reading; for a read/write or private mapping, this channel must have + * been opened for both reading and writing. + *

The {@link MappedByteBuffer mapped byte buffer} + * returned by this method will have a position of zero and a limit and + * capacity of size; its mark will be undefined. The buffer and + * the mapping that it represents will remain valid until the buffer itself + * is garbage-collected. + *

A mapping, once established, is not dependent upon the file channel + * that was used to create it. Closing the channel, in particular, has no + * effect upon the validity of the mapping. + *

Many of the details of memory-mapped files are inherently dependent + * upon the underlying operating system and are therefore unspecified. The + * behavior of this method when the requested region is not completely + * contained within this channel's file is unspecified. Whether changes + * made to the content or size of the underlying file, by this program or + * another, are propagated to the buffer is unspecified. The rate at which + * changes to the buffer are propagated to the file is unspecified. + *

For most operating systems, mapping a file into memory is more + * expensive than reading or writing a few tens of kilobytes of data via + * the usual {@link #read read} and {@link #write write} methods. From the + * standpoint of performance it is generally only worth mapping relatively + * large files into memory.

+ */ + // @ts-ignore + public abstract map(mode: java.nio.channels.FileChannel.MapMode, position: number, size: number): java.nio.MappedByteBuffer; + /** + * Acquires a lock on the given region of this channel's file. + *

An invocation of this method will block until the region can be + * locked, this channel is closed, or the invoking thread is interrupted, + * whichever comes first. + *

If this channel is closed by another thread during an invocation of + * this method then an {@link AsynchronousCloseException} will be thrown. + *

If the invoking thread is interrupted while waiting to acquire the + * lock then its interrupt status will be set and a {@link + * FileLockInterruptionException} will be thrown. If the invoker's + * interrupt status is set when this method is invoked then that exception + * will be thrown immediately; the thread's interrupt status will not be + * changed. + *

The region specified by the position and size + * parameters need not be contained within, or even overlap, the actual + * underlying file. Lock regions are fixed in size; if a locked region + * initially contains the end of the file and the file grows beyond the + * region then the new portion of the file will not be covered by the lock. + * If a file is expected to grow in size and a lock on the entire file is + * required then a region starting at zero, and no smaller than the + * expected maximum size of the file, should be locked. The zero-argument + * {@link #lock()} method simply locks a region of size {@link + * Long#MAX_VALUE}. + *

Some operating systems do not support shared locks, in which case a + * request for a shared lock is automatically converted into a request for + * an exclusive lock. Whether the newly-acquired lock is shared or + * exclusive may be tested by invoking the resulting lock object's {@link + * FileLock#isShared() isShared} method. + *

File locks are held on behalf of the entire Java virtual machine. + * They are not suitable for controlling access to a file by multiple + * threads within the same virtual machine.

+ */ + // @ts-ignore + public abstract lock(position: number, size: number, shared: boolean): java.nio.channels.FileLock; + /** + * Acquires an exclusive lock on this channel's file. + *

An invocation of this method of the form fc.lock() behaves + * in exactly the same way as the invocation + *

+                 * fc.{@link #lock(long,long,boolean) lock}(0L, Long.MAX_VALUE, false) 
+ */ + // @ts-ignore + public lock(): java.nio.channels.FileLock; + /** + * Attempts to acquire a lock on the given region of this channel's file. + *

This method does not block. An invocation always returns + * immediately, either having acquired a lock on the requested region or + * having failed to do so. If it fails to acquire a lock because an + * overlapping lock is held by another program then it returns + * null. If it fails to acquire a lock for any other reason then + * an appropriate exception is thrown. + *

The region specified by the position and size + * parameters need not be contained within, or even overlap, the actual + * underlying file. Lock regions are fixed in size; if a locked region + * initially contains the end of the file and the file grows beyond the + * region then the new portion of the file will not be covered by the lock. + * If a file is expected to grow in size and a lock on the entire file is + * required then a region starting at zero, and no smaller than the + * expected maximum size of the file, should be locked. The zero-argument + * {@link #tryLock()} method simply locks a region of size {@link + * Long#MAX_VALUE}. + *

Some operating systems do not support shared locks, in which case a + * request for a shared lock is automatically converted into a request for + * an exclusive lock. Whether the newly-acquired lock is shared or + * exclusive may be tested by invoking the resulting lock object's {@link + * FileLock#isShared() isShared} method. + *

File locks are held on behalf of the entire Java virtual machine. + * They are not suitable for controlling access to a file by multiple + * threads within the same virtual machine.

+ */ + // @ts-ignore + public abstract tryLock(position: number, size: number, shared: boolean): java.nio.channels.FileLock; + /** + * Attempts to acquire an exclusive lock on this channel's file. + *

An invocation of this method of the form fc.tryLock() + * behaves in exactly the same way as the invocation + *

+                 * fc.{@link #tryLock(long,long,boolean) tryLock}(0L, Long.MAX_VALUE, false) 
+ */ + // @ts-ignore + public tryLock(): java.nio.channels.FileLock; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.FileLock.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.FileLock.d.ts new file mode 100644 index 00000000..a55d08a2 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.FileLock.d.ts @@ -0,0 +1,86 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + abstract class FileLock extends java.lang.Object { + /** + * Initializes a new instance of this class. + */ + // @ts-ignore + constructor(channel: java.nio.channels.FileChannel, position: number, size: number, shared: boolean) + /** + * Initializes a new instance of this class. + */ + // @ts-ignore + constructor(channel: java.nio.channels.AsynchronousFileChannel, position: number, size: number, shared: boolean) + /** + * Returns the file channel upon whose file this lock was acquired. + *

This method has been superseded by the {@link #acquiredBy acquiredBy} + * method. + */ + // @ts-ignore + public channel(): java.nio.channels.FileChannel; + /** + * Returns the channel upon whose file this lock was acquired. + */ + // @ts-ignore + public acquiredBy(): java.nio.channels.Channel; + /** + * Returns the position within the file of the first byte of the locked + * region. + *

A locked region need not be contained within, or even overlap, the + * actual underlying file, so the value returned by this method may exceed + * the file's current size.

+ */ + // @ts-ignore + public position(): number; + /** + * Returns the size of the locked region in bytes. + *

A locked region need not be contained within, or even overlap, the + * actual underlying file, so the value returned by this method may exceed + * the file's current size.

+ */ + // @ts-ignore + public size(): number; + /** + * Tells whether this lock is shared. + */ + // @ts-ignore + public isShared(): boolean; + /** + * Tells whether or not this lock overlaps the given lock range. + */ + // @ts-ignore + public overlaps(position: number, size: number): boolean; + /** + * Tells whether or not this lock is valid. + *

A lock object remains valid until it is released or the associated + * file channel is closed, whichever comes first.

+ */ + // @ts-ignore + public abstract isValid(): boolean; + /** + * Releases this lock. + *

If this lock object is valid then invoking this method releases the + * lock and renders the object invalid. If this lock object is invalid + * then invoking this method has no effect.

+ */ + // @ts-ignore + public abstract release(): void; + /** + * This method invokes the {@link #release} method. It was added + * to the class so that it could be used in conjunction with the + * automatic resource management block construct. + */ + // @ts-ignore + public close(): void; + /** + * Returns a string describing the range, type, and validity of this lock. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.FileLockInterruptionException.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.FileLockInterruptionException.d.ts new file mode 100644 index 00000000..c3e34e2a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.FileLockInterruptionException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + class FileLockInterruptionException extends java.io.IOException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.GatheringByteChannel.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.GatheringByteChannel.d.ts new file mode 100644 index 00000000..da218858 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.GatheringByteChannel.d.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + interface GatheringByteChannel { + /** + * Writes a sequence of bytes to this channel from a subsequence of the + * given buffers. + *

An attempt is made to write up to r bytes to this channel, + * where r is the total number of bytes remaining in the specified + * subsequence of the given buffer array, that is, + *

+                 * srcs[offset].remaining()
+                 * + srcs[offset+1].remaining()
+                 * + ... + srcs[offset+length-1].remaining()
+ * at the moment that this method is invoked. + *

Suppose that a byte sequence of length n is written, where + * 0 <= n <= r. + * Up to the first srcs[offset].remaining() bytes of this sequence + * are written from buffer srcs[offset], up to the next + * srcs[offset+1].remaining() bytes are written from buffer + * srcs[offset+1], and so forth, until the entire byte sequence is + * written. As many bytes as possible are written from each buffer, hence + * the final position of each updated buffer, except the last updated + * buffer, is guaranteed to be equal to that buffer's limit. + *

Unless otherwise specified, a write operation will return only after + * writing all of the r requested bytes. Some types of channels, + * depending upon their state, may write only some of the bytes or possibly + * none at all. A socket channel in non-blocking mode, for example, cannot + * write any more bytes than are free in the socket's output buffer. + *

This method may be invoked at any time. If another thread has + * already initiated a write operation upon this channel, however, then an + * invocation of this method will block until the first operation is + * complete.

+ */ + // @ts-ignore + write(srcs: java.nio.ByteBuffer, offset: number, length: number): number; + /** + * Writes a sequence of bytes to this channel from the given buffers. + *

An invocation of this method of the form c.write(srcs) + * behaves in exactly the same manner as the invocation + *

+                 * c.write(srcs, 0, srcs.length);
+ */ + // @ts-ignore + write(srcs: java.nio.ByteBuffer): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.IllegalBlockingModeException.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.IllegalBlockingModeException.d.ts new file mode 100644 index 00000000..3f7545a8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.IllegalBlockingModeException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + class IllegalBlockingModeException extends java.lang.IllegalStateException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.IllegalChannelGroupException.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.IllegalChannelGroupException.d.ts new file mode 100644 index 00000000..fe7a9013 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.IllegalChannelGroupException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + class IllegalChannelGroupException extends java.lang.IllegalArgumentException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.IllegalSelectorException.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.IllegalSelectorException.d.ts new file mode 100644 index 00000000..62f1f335 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.IllegalSelectorException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + class IllegalSelectorException extends java.lang.IllegalArgumentException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.InterruptedByTimeoutException.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.InterruptedByTimeoutException.d.ts new file mode 100644 index 00000000..480d69be --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.InterruptedByTimeoutException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + class InterruptedByTimeoutException extends java.io.IOException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.InterruptibleChannel.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.InterruptibleChannel.d.ts new file mode 100644 index 00000000..9c7eb60c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.InterruptibleChannel.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + interface InterruptibleChannel { + /** + * Closes this channel. + *

Any thread currently blocked in an I/O operation upon this channel + * will receive an {@link AsynchronousCloseException}. + *

This method otherwise behaves exactly as specified by the {@link + * Channel#close Channel} interface.

+ */ + // @ts-ignore + close(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.MembershipKey.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.MembershipKey.d.ts new file mode 100644 index 00000000..8a9e9236 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.MembershipKey.d.ts @@ -0,0 +1,87 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + abstract class MembershipKey extends java.lang.Object { + /** + * Initializes a new instance of this class. + */ + // @ts-ignore + constructor() + /** + * Tells whether or not this membership is valid. + *

A multicast group membership is valid upon creation and remains + * valid until the membership is dropped by invoking the {@link #drop() drop} + * method, or the channel is closed. + */ + // @ts-ignore + public abstract isValid(): boolean; + /** + * Drop membership. + *

If the membership key represents a membership to receive all datagrams + * then the membership is dropped and the channel will no longer receive any + * datagrams sent to the group. If the membership key is source-specific + * then the channel will no longer receive datagrams sent to the group from + * that source address. + *

After membership is dropped it may still be possible to receive + * datagrams sent to the group. This can arise when datagrams are waiting to + * be received in the socket's receive buffer. After membership is dropped + * then the channel may {@link MulticastChannel#join join} the group again + * in which case a new membership key is returned. + *

Upon return, this membership object will be {@link #isValid() invalid}. + * If the multicast group membership is already invalid then invoking this + * method has no effect. Once a multicast group membership is invalid, + * it remains invalid forever. + */ + // @ts-ignore + public abstract drop(): void; + /** + * Block multicast datagrams from the given source address. + *

If this membership key is not source-specific, and the underlying + * operating system supports source filtering, then this method blocks + * multicast datagrams from the given source address. If the given source + * address is already blocked then this method has no effect. + * After a source address is blocked it may still be possible to receive + * datagrams from that source. This can arise when datagrams are waiting to + * be received in the socket's receive buffer. + */ + // @ts-ignore + public abstract block(source: java.net.InetAddress): java.nio.channels.MembershipKey; + /** + * Unblock multicast datagrams from the given source address that was + * previously blocked using the {@link #block(InetAddress) block} method. + */ + // @ts-ignore + public abstract unblock(source: java.net.InetAddress): java.nio.channels.MembershipKey; + /** + * Returns the channel for which this membership key was created. This + * method will continue to return the channel even after the membership + * becomes {@link #isValid invalid}. + */ + // @ts-ignore + public abstract channel(): java.nio.channels.MulticastChannel; + /** + * Returns the multicast group for which this membership key was created. + * This method will continue to return the group even after the membership + * becomes {@link #isValid invalid}. + */ + // @ts-ignore + public abstract group(): java.net.InetAddress; + /** + * Returns the network interface for which this membership key was created. + * This method will continue to return the network interface even after the + * membership becomes {@link #isValid invalid}. + */ + // @ts-ignore + public abstract networkInterface(): java.net.NetworkInterface; + /** + * Returns the source address if this membership key is source-specific, + * or {@code null} if this membership is not source-specific. + */ + // @ts-ignore + public abstract sourceAddress(): java.net.InetAddress; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.MulticastChannel.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.MulticastChannel.d.ts new file mode 100644 index 00000000..15d3f1ec --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.MulticastChannel.d.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + interface MulticastChannel { + /** + * Closes this channel. + *

If the channel is a member of a multicast group then the membership + * is {@link MembershipKey#drop dropped}. Upon return, the {@link + * MembershipKey membership-key} will be {@link MembershipKey#isValid + * invalid}. + *

This method otherwise behaves exactly as specified by the {@link + * Channel} interface. + */ + // @ts-ignore + close(): void; + /** + * Joins a multicast group to begin receiving all datagrams sent to the group, + * returning a membership key. + *

If this channel is currently a member of the group on the given + * interface to receive all datagrams then the membership key, representing + * that membership, is returned. Otherwise this channel joins the group and + * the resulting new membership key is returned. The resulting membership key + * is not {@link MembershipKey#sourceAddress source-specific}. + *

A multicast channel may join several multicast groups, including + * the same group on more than one interface. An implementation may impose a + * limit on the number of groups that may be joined at the same time. + */ + // @ts-ignore + join(group: java.net.InetAddress, interf: java.net.NetworkInterface): java.nio.channels.MembershipKey; + /** + * Joins a multicast group to begin receiving datagrams sent to the group + * from a given source address. + *

If this channel is currently a member of the group on the given + * interface to receive datagrams from the given source address then the + * membership key, representing that membership, is returned. Otherwise this + * channel joins the group and the resulting new membership key is returned. + * The resulting membership key is {@link MembershipKey#sourceAddress + * source-specific}. + *

Membership is cumulative and this method may be invoked + * again with the same group and interface to allow receiving datagrams sent + * by other source addresses to the group. + */ + // @ts-ignore + join(group: java.net.InetAddress, interf: java.net.NetworkInterface, source: java.net.InetAddress): java.nio.channels.MembershipKey; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.NetworkChannel.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.NetworkChannel.d.ts new file mode 100644 index 00000000..aad45c0a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.NetworkChannel.d.ts @@ -0,0 +1,45 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + interface NetworkChannel { + /** + * Binds the channel's socket to a local address. + *

This method is used to establish an association between the socket and + * a local address. Once an association is established then the socket remains + * bound until the channel is closed. If the {@code local} parameter has the + * value {@code null} then the socket will be bound to an address that is + * assigned automatically. + */ + // @ts-ignore + bind(local: java.net.SocketAddress): java.nio.channels.NetworkChannel; + /** + * Returns the socket address that this channel's socket is bound to. + *

Where the channel is {@link #bind bound} to an Internet Protocol + * socket address then the return value from this method is of type {@link + * java.net.InetSocketAddress}. + */ + // @ts-ignore + getLocalAddress(): java.net.SocketAddress; + /** + * Sets the value of a socket option. + */ + // @ts-ignore + setOption(name: java.net.SocketOption, value: java.lang.Object): java.nio.channels.NetworkChannel; + /** + * Returns the value of a socket option. + */ + // @ts-ignore + getOption(name: java.net.SocketOption): java.lang.Object; + /** + * Returns a set of the socket options supported by this channel. + *

This method will continue to return the set of options even after the + * channel has been closed. + */ + // @ts-ignore + supportedOptions(): java.util.Set; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.NoConnectionPendingException.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.NoConnectionPendingException.d.ts new file mode 100644 index 00000000..6b5a8435 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.NoConnectionPendingException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + class NoConnectionPendingException extends java.lang.IllegalStateException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.NonReadableChannelException.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.NonReadableChannelException.d.ts new file mode 100644 index 00000000..54a9ae1f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.NonReadableChannelException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + class NonReadableChannelException extends java.lang.IllegalStateException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.NonWritableChannelException.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.NonWritableChannelException.d.ts new file mode 100644 index 00000000..16b67a7c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.NonWritableChannelException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + class NonWritableChannelException extends java.lang.IllegalStateException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.NotYetBoundException.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.NotYetBoundException.d.ts new file mode 100644 index 00000000..d0d392b0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.NotYetBoundException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + class NotYetBoundException extends java.lang.IllegalStateException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.NotYetConnectedException.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.NotYetConnectedException.d.ts new file mode 100644 index 00000000..ed10118a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.NotYetConnectedException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + class NotYetConnectedException extends java.lang.IllegalStateException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.OverlappingFileLockException.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.OverlappingFileLockException.d.ts new file mode 100644 index 00000000..20fc0163 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.OverlappingFileLockException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + class OverlappingFileLockException extends java.lang.IllegalStateException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.Pipe.SinkChannel.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.Pipe.SinkChannel.d.ts new file mode 100644 index 00000000..318de3b6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.Pipe.SinkChannel.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + namespace Pipe { + // @ts-ignore + abstract class SinkChannel extends java.nio.channels.spi.AbstractSelectableChannel { + /** + * Initializes a new instance of this class. + */ + // @ts-ignore + constructor(provider: java.nio.channels.spi.SelectorProvider) + /** + * Returns an operation set identifying this channel's supported + * operations. + *

Pipe-sink channels only support writing, so this method returns + * {@link SelectionKey#OP_WRITE}.

+ */ + // @ts-ignore + public validOps(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.Pipe.SourceChannel.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.Pipe.SourceChannel.d.ts new file mode 100644 index 00000000..f4243054 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.Pipe.SourceChannel.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + namespace Pipe { + // @ts-ignore + abstract class SourceChannel extends java.nio.channels.spi.AbstractSelectableChannel { + /** + * Constructs a new instance of this class. + */ + // @ts-ignore + constructor(provider: java.nio.channels.spi.SelectorProvider) + /** + * Returns an operation set identifying this channel's supported + * operations. + *

Pipe-source channels only support reading, so this method + * returns {@link SelectionKey#OP_READ}.

+ */ + // @ts-ignore + public validOps(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.Pipe.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.Pipe.d.ts new file mode 100644 index 00000000..7442d313 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.Pipe.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + abstract class Pipe extends java.lang.Object { + /** + * Initializes a new instance of this class. + */ + // @ts-ignore + constructor() + /** + * Returns this pipe's source channel. + */ + // @ts-ignore + public abstract source(): java.nio.channels.Pipe.SourceChannel; + /** + * Returns this pipe's sink channel. + */ + // @ts-ignore + public abstract sink(): java.nio.channels.Pipe.SinkChannel; + /** + * Opens a pipe. + *

The new pipe is created by invoking the {@link + * java.nio.channels.spi.SelectorProvider#openPipe openPipe} method of the + * system-wide default {@link java.nio.channels.spi.SelectorProvider} + * object.

+ */ + // @ts-ignore + public static open(): java.nio.channels.Pipe; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.ReadPendingException.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.ReadPendingException.d.ts new file mode 100644 index 00000000..5ebfb61d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.ReadPendingException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + class ReadPendingException extends java.lang.IllegalStateException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.ReadableByteChannel.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.ReadableByteChannel.d.ts new file mode 100644 index 00000000..cbd8bf6e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.ReadableByteChannel.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + interface ReadableByteChannel { + /** + * Reads a sequence of bytes from this channel into the given buffer. + *

An attempt is made to read up to r bytes from the channel, + * where r is the number of bytes remaining in the buffer, that is, + * dst.remaining(), at the moment this method is invoked. + *

Suppose that a byte sequence of length n is read, where + * 0 <= n <= r. + * This byte sequence will be transferred into the buffer so that the first + * byte in the sequence is at index p and the last byte is at index + * p + n - 1, + * where p is the buffer's position at the moment this method is + * invoked. Upon return the buffer's position will be equal to + * p + n; its limit will not have changed. + *

A read operation might not fill the buffer, and in fact it might not + * read any bytes at all. Whether or not it does so depends upon the + * nature and state of the channel. A socket channel in non-blocking mode, + * for example, cannot read any more bytes than are immediately available + * from the socket's input buffer; similarly, a file channel cannot read + * any more bytes than remain in the file. It is guaranteed, however, that + * if a channel is in blocking mode and there is at least one byte + * remaining in the buffer then this method will block until at least one + * byte is read. + *

This method may be invoked at any time. If another thread has + * already initiated a read operation upon this channel, however, then an + * invocation of this method will block until the first operation is + * complete.

+ */ + // @ts-ignore + read(dst: java.nio.ByteBuffer): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.ScatteringByteChannel.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.ScatteringByteChannel.d.ts new file mode 100644 index 00000000..f8c9def6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.ScatteringByteChannel.d.ts @@ -0,0 +1,47 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + interface ScatteringByteChannel { + /** + * Reads a sequence of bytes from this channel into a subsequence of the + * given buffers. + *

An invocation of this method attempts to read up to r bytes + * from this channel, where r is the total number of bytes remaining + * the specified subsequence of the given buffer array, that is, + *

+                 * dsts[offset].remaining()
+                 * + dsts[offset+1].remaining()
+                 * + ... + dsts[offset+length-1].remaining()
+ * at the moment that this method is invoked. + *

Suppose that a byte sequence of length n is read, where + * 0 <= n <= r. + * Up to the first dsts[offset].remaining() bytes of this sequence + * are transferred into buffer dsts[offset], up to the next + * dsts[offset+1].remaining() bytes are transferred into buffer + * dsts[offset+1], and so forth, until the entire byte sequence + * is transferred into the given buffers. As many bytes as possible are + * transferred into each buffer, hence the final position of each updated + * buffer, except the last updated buffer, is guaranteed to be equal to + * that buffer's limit. + *

This method may be invoked at any time. If another thread has + * already initiated a read operation upon this channel, however, then an + * invocation of this method will block until the first operation is + * complete.

+ */ + // @ts-ignore + read(dsts: java.nio.ByteBuffer, offset: number, length: number): number; + /** + * Reads a sequence of bytes from this channel into the given buffers. + *

An invocation of this method of the form c.read(dsts) + * behaves in exactly the same manner as the invocation + *

+                 * c.read(dsts, 0, dsts.length);
+ */ + // @ts-ignore + read(dsts: java.nio.ByteBuffer): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.SeekableByteChannel.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.SeekableByteChannel.d.ts new file mode 100644 index 00000000..1d052ad7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.SeekableByteChannel.d.ts @@ -0,0 +1,72 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + interface SeekableByteChannel { + /** + * Reads a sequence of bytes from this channel into the given buffer. + *

Bytes are read starting at this channel's current position, and + * then the position is updated with the number of bytes actually read. + * Otherwise this method behaves exactly as specified in the {@link + * ReadableByteChannel} interface. + */ + // @ts-ignore + read(dst: java.nio.ByteBuffer): number; + /** + * Writes a sequence of bytes to this channel from the given buffer. + *

Bytes are written starting at this channel's current position, unless + * the channel is connected to an entity such as a file that is opened with + * the {@link java.nio.file.StandardOpenOption#APPEND APPEND} option, in + * which case the position is first advanced to the end. The entity to which + * the channel is connected is grown, if necessary, to accommodate the + * written bytes, and then the position is updated with the number of bytes + * actually written. Otherwise this method behaves exactly as specified by + * the {@link WritableByteChannel} interface. + */ + // @ts-ignore + write(src: java.nio.ByteBuffer): number; + /** + * Returns this channel's position. + */ + // @ts-ignore + position(): number; + /** + * Sets this channel's position. + *

Setting the position to a value that is greater than the current size + * is legal but does not change the size of the entity. A later attempt to + * read bytes at such a position will immediately return an end-of-file + * indication. A later attempt to write bytes at such a position will cause + * the entity to grow to accommodate the new bytes; the values of any bytes + * between the previous end-of-file and the newly-written bytes are + * unspecified. + *

Setting the channel's position is not recommended when connected to + * an entity, typically a file, that is opened with the {@link + * java.nio.file.StandardOpenOption#APPEND APPEND} option. When opened for + * append, the position is first advanced to the end before writing. + */ + // @ts-ignore + position(newPosition: number): java.nio.channels.SeekableByteChannel; + /** + * Returns the current size of entity to which this channel is connected. + */ + // @ts-ignore + size(): number; + /** + * Truncates the entity, to which this channel is connected, to the given + * size. + *

If the given size is less than the current size then the entity is + * truncated, discarding any bytes beyond the new end. If the given size is + * greater than or equal to the current size then the entity is not modified. + * In either case, if the current position is greater than the given size + * then it is set to that size. + *

An implementation of this interface may prohibit truncation when + * connected to an entity, typically a file, opened with the {@link + * java.nio.file.StandardOpenOption#APPEND APPEND} option. + */ + // @ts-ignore + truncate(size: number): java.nio.channels.SeekableByteChannel; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.SelectableChannel.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.SelectableChannel.d.ts new file mode 100644 index 00000000..359f2740 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.SelectableChannel.d.ts @@ -0,0 +1,115 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + abstract class SelectableChannel extends java.nio.channels.spi.AbstractInterruptibleChannel { + /** + * Initializes a new instance of this class. + */ + // @ts-ignore + constructor() + /** + * Returns the provider that created this channel. + */ + // @ts-ignore + public abstract provider(): java.nio.channels.spi.SelectorProvider; + /** + * Returns an operation set + * identifying this channel's supported operations. The bits that are set + * in this integer value denote exactly the operations that are valid for + * this channel. This method always returns the same value for a given + * concrete channel class. + */ + // @ts-ignore + public abstract validOps(): number; + /** + * Tells whether or not this channel is currently registered with any + * selectors. A newly-created channel is not registered. + *

Due to the inherent delay between key cancellation and channel + * deregistration, a channel may remain registered for some time after all + * of its keys have been cancelled. A channel may also remain registered + * for some time after it is closed.

+ */ + // @ts-ignore + public abstract isRegistered(): boolean; + /** + * Retrieves the key representing the channel's registration with the given + * selector. + */ + // @ts-ignore + public abstract keyFor(sel: java.nio.channels.Selector): java.nio.channels.SelectionKey; + /** + * Registers this channel with the given selector, returning a selection + * key. + *

If this channel is currently registered with the given selector then + * the selection key representing that registration is returned. The key's + * interest set will have been changed to ops, as if by invoking + * the {@link SelectionKey#interestOps(int) interestOps(int)} method. If + * the att argument is not null then the key's attachment + * will have been set to that value. A {@link CancelledKeyException} will + * be thrown if the key has already been cancelled. + *

Otherwise this channel has not yet been registered with the given + * selector, so it is registered and the resulting new key is returned. + * The key's initial interest set will be ops and its attachment + * will be att. + *

This method may be invoked at any time. If this method is invoked + * while another invocation of this method or of the {@link + * #configureBlocking(boolean) configureBlocking} method is in progress + * then it will first block until the other operation is complete. This + * method will then synchronize on the selector's key set and therefore may + * block if invoked concurrently with another registration or selection + * operation involving the same selector.

+ *

If this channel is closed while this operation is in progress then + * the key returned by this method will have been cancelled and will + * therefore be invalid.

+ */ + // @ts-ignore + public abstract register(sel: java.nio.channels.Selector, ops: number, att: java.lang.Object): java.nio.channels.SelectionKey; + /** + * Registers this channel with the given selector, returning a selection + * key. + *

An invocation of this convenience method of the form + *

sc.register(sel, ops)
+ * behaves in exactly the same way as the invocation + *
sc.{@link + * #register(java.nio.channels.Selector,int,java.lang.Object) + * register}(sel, ops, null)
+ */ + // @ts-ignore + public register(sel: java.nio.channels.Selector, ops: number): java.nio.channels.SelectionKey; + /** + * Adjusts this channel's blocking mode. + *

If this channel is registered with one or more selectors then an + * attempt to place it into blocking mode will cause an {@link + * IllegalBlockingModeException} to be thrown. + *

This method may be invoked at any time. The new blocking mode will + * only affect I/O operations that are initiated after this method returns. + * For some implementations this may require blocking until all pending I/O + * operations are complete. + *

If this method is invoked while another invocation of this method or + * of the {@link #register(Selector, int) register} method is in progress + * then it will first block until the other operation is complete.

+ */ + // @ts-ignore + public abstract configureBlocking(block: boolean): java.nio.channels.SelectableChannel; + /** + * Tells whether or not every I/O operation on this channel will block + * until it completes. A newly-created channel is always in blocking mode. + *

If this channel is closed then the value returned by this method is + * not specified.

+ */ + // @ts-ignore + public abstract isBlocking(): boolean; + /** + * Retrieves the object upon which the {@link #configureBlocking + * configureBlocking} and {@link #register register} methods synchronize. + * This is often useful in the implementation of adaptors that require a + * specific blocking mode to be maintained for a short period of time. + */ + // @ts-ignore + public abstract blockingLock(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.SelectionKey.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.SelectionKey.d.ts new file mode 100644 index 00000000..bde55d95 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.SelectionKey.d.ts @@ -0,0 +1,136 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + abstract class SelectionKey extends java.lang.Object { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + // @ts-ignore + public static OP_READ: number; + // @ts-ignore + public static OP_WRITE: number; + // @ts-ignore + public static OP_CONNECT: number; + // @ts-ignore + public static OP_ACCEPT: number; + /** + * Returns the channel for which this key was created. This method will + * continue to return the channel even after the key is cancelled. + */ + // @ts-ignore + public abstract channel(): java.nio.channels.SelectableChannel; + /** + * Returns the selector for which this key was created. This method will + * continue to return the selector even after the key is cancelled. + */ + // @ts-ignore + public abstract selector(): java.nio.channels.Selector; + /** + * Tells whether or not this key is valid. + *

A key is valid upon creation and remains so until it is cancelled, + * its channel is closed, or its selector is closed.

+ */ + // @ts-ignore + public abstract isValid(): boolean; + /** + * Requests that the registration of this key's channel with its selector + * be cancelled. Upon return the key will be invalid and will have been + * added to its selector's cancelled-key set. The key will be removed from + * all of the selector's key sets during the next selection operation. + *

If this key has already been cancelled then invoking this method has + * no effect. Once cancelled, a key remains forever invalid.

+ *

This method may be invoked at any time. It synchronizes on the + * selector's cancelled-key set, and therefore may block briefly if invoked + * concurrently with a cancellation or selection operation involving the + * same selector.

+ */ + // @ts-ignore + public abstract cancel(): void; + /** + * Retrieves this key's interest set. + *

It is guaranteed that the returned set will only contain operation + * bits that are valid for this key's channel. + *

This method may be invoked at any time. Whether or not it blocks, + * and for how long, is implementation-dependent.

+ */ + // @ts-ignore + public abstract interestOps(): number; + /** + * Retrieves this key's ready-operation set. + *

It is guaranteed that the returned set will only contain operation + * bits that are valid for this key's channel.

+ */ + // @ts-ignore + public abstract readyOps(): number; + /** + * Tests whether this key's channel is ready for reading. + *

An invocation of this method of the form k.isReadable() + * behaves in exactly the same way as the expression + *

{@code
+                 * k.readyOps() & OP_READ != 0
+                 * }
+ *

If this key's channel does not support read operations then this + * method always returns false.

+ */ + // @ts-ignore + public isReadable(): boolean; + /** + * Tests whether this key's channel is ready for writing. + *

An invocation of this method of the form k.isWritable() + * behaves in exactly the same way as the expression + *

{@code
+                 * k.readyOps() & OP_WRITE != 0
+                 * }
+ *

If this key's channel does not support write operations then this + * method always returns false.

+ */ + // @ts-ignore + public isWritable(): boolean; + /** + * Tests whether this key's channel has either finished, or failed to + * finish, its socket-connection operation. + *

An invocation of this method of the form k.isConnectable() + * behaves in exactly the same way as the expression + *

{@code
+                 * k.readyOps() & OP_CONNECT != 0
+                 * }
+ *

If this key's channel does not support socket-connect operations + * then this method always returns false.

+ */ + // @ts-ignore + public isConnectable(): boolean; + /** + * Tests whether this key's channel is ready to accept a new socket + * connection. + *

An invocation of this method of the form k.isAcceptable() + * behaves in exactly the same way as the expression + *

{@code
+                 * k.readyOps() & OP_ACCEPT != 0
+                 * }
+ *

If this key's channel does not support socket-accept operations then + * this method always returns false.

+ */ + // @ts-ignore + public isAcceptable(): boolean; + /** + * Attaches the given object to this key. + *

An attached object may later be retrieved via the {@link #attachment() + * attachment} method. Only one object may be attached at a time; invoking + * this method causes any previous attachment to be discarded. The current + * attachment may be discarded by attaching null.

+ */ + // @ts-ignore + public attach(ob: java.lang.Object): java.lang.Object; + /** + * Retrieves the current attachment. + */ + // @ts-ignore + public attachment(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.Selector.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.Selector.d.ts new file mode 100644 index 00000000..ae601af9 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.Selector.d.ts @@ -0,0 +1,110 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + abstract class Selector extends java.lang.Object { + /** + * Initializes a new instance of this class. + */ + // @ts-ignore + constructor() + /** + * Opens a selector. + *

The new selector is created by invoking the {@link + * java.nio.channels.spi.SelectorProvider#openSelector openSelector} method + * of the system-wide default {@link + * java.nio.channels.spi.SelectorProvider} object.

+ */ + // @ts-ignore + public static open(): java.nio.channels.Selector; + /** + * Tells whether or not this selector is open. + */ + // @ts-ignore + public abstract isOpen(): boolean; + /** + * Returns the provider that created this channel. + */ + // @ts-ignore + public abstract provider(): java.nio.channels.spi.SelectorProvider; + /** + * Returns this selector's key set. + *

The key set is not directly modifiable. A key is removed only after + * it has been cancelled and its channel has been deregistered. Any + * attempt to modify the key set will cause an {@link + * UnsupportedOperationException} to be thrown. + *

The key set is not thread-safe.

+ */ + // @ts-ignore + public abstract keys(): java.util.Set; + /** + * Returns this selector's selected-key set. + *

Keys may be removed from, but not directly added to, the + * selected-key set. Any attempt to add an object to the key set will + * cause an {@link UnsupportedOperationException} to be thrown. + *

The selected-key set is not thread-safe.

+ */ + // @ts-ignore + public abstract selectedKeys(): java.util.Set; + /** + * Selects a set of keys whose corresponding channels are ready for I/O + * operations. + *

This method performs a non-blocking selection + * operation. If no channels have become selectable since the previous + * selection operation then this method immediately returns zero. + *

Invoking this method clears the effect of any previous invocations + * of the {@link #wakeup wakeup} method.

+ */ + // @ts-ignore + public abstract selectNow(): number; + /** + * Selects a set of keys whose corresponding channels are ready for I/O + * operations. + *

This method performs a blocking selection + * operation. It returns only after at least one channel is selected, + * this selector's {@link #wakeup wakeup} method is invoked, the current + * thread is interrupted, or the given timeout period expires, whichever + * comes first. + *

This method does not offer real-time guarantees: It schedules the + * timeout as if by invoking the {@link Object#wait(long)} method.

+ */ + // @ts-ignore + public abstract select(timeout: number): number; + /** + * Causes the first selection operation that has not yet returned to return + * immediately. + *

If another thread is currently blocked in an invocation of the + * {@link #select()} or {@link #select(long)} methods then that invocation + * will return immediately. If no selection operation is currently in + * progress then the next invocation of one of these methods will return + * immediately unless the {@link #selectNow()} method is invoked in the + * meantime. In any case the value returned by that invocation may be + * non-zero. Subsequent invocations of the {@link #select()} or {@link + * #select(long)} methods will block as usual unless this method is invoked + * again in the meantime. + *

Invoking this method more than once between two successive selection + * operations has the same effect as invoking it just once.

+ */ + // @ts-ignore + public abstract wakeup(): java.nio.channels.Selector; + /** + * Closes this selector. + *

If a thread is currently blocked in one of this selector's selection + * methods then it is interrupted as if by invoking the selector's {@link + * #wakeup wakeup} method. + *

Any uncancelled keys still associated with this selector are + * invalidated, their channels are deregistered, and any other resources + * associated with this selector are released. + *

If this selector is already closed then invoking this method has no + * effect. + *

After a selector is closed, any further attempt to use it, except by + * invoking this method or the {@link #wakeup wakeup} method, will cause a + * {@link ClosedSelectorException} to be thrown.

+ */ + // @ts-ignore + public abstract close(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.ServerSocketChannel.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.ServerSocketChannel.d.ts new file mode 100644 index 00000000..37182d06 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.ServerSocketChannel.d.ts @@ -0,0 +1,86 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + abstract class ServerSocketChannel extends java.nio.channels.spi.AbstractSelectableChannel { + /** + * Initializes a new instance of this class. + */ + // @ts-ignore + constructor(provider: java.nio.channels.spi.SelectorProvider) + /** + * Opens a server-socket channel. + *

The new channel is created by invoking the {@link + * java.nio.channels.spi.SelectorProvider#openServerSocketChannel + * openServerSocketChannel} method of the system-wide default {@link + * java.nio.channels.spi.SelectorProvider} object. + *

The new channel's socket is initially unbound; it must be bound to a + * specific address via one of its socket's {@link + * java.net.ServerSocket#bind(SocketAddress) bind} methods before + * connections can be accepted.

+ */ + // @ts-ignore + public static open(): java.nio.channels.ServerSocketChannel; + /** + * Returns an operation set identifying this channel's supported + * operations. + *

Server-socket channels only support the accepting of new + * connections, so this method returns {@link SelectionKey#OP_ACCEPT}. + *

+ */ + // @ts-ignore + public validOps(): number; + /** + * Binds the channel's socket to a local address and configures the socket + * to listen for connections. + *

An invocation of this method is equivalent to the following: + *

+                 * bind(local, 0);
+                 * 
+ */ + // @ts-ignore + public bind(local: java.net.SocketAddress): java.nio.channels.ServerSocketChannel; + // @ts-ignore + public abstract setOption(name: java.net.SocketOption, value: java.lang.Object): java.nio.channels.ServerSocketChannel; + /** + * Retrieves a server socket associated with this channel. + *

The returned object will not declare any public methods that are not + * declared in the {@link java.net.ServerSocket} class.

+ */ + // @ts-ignore + public abstract socket(): java.net.ServerSocket; + /** + * Accepts a connection made to this channel's socket. + *

If this channel is in non-blocking mode then this method will + * immediately return null if there are no pending connections. + * Otherwise it will block indefinitely until a new connection is available + * or an I/O error occurs. + *

The socket channel returned by this method, if any, will be in + * blocking mode regardless of the blocking mode of this channel. + *

This method performs exactly the same security checks as the {@link + * java.net.ServerSocket#accept accept} method of the {@link + * java.net.ServerSocket} class. That is, if a security manager has been + * installed then for each new connection this method verifies that the + * address and port number of the connection's remote endpoint are + * permitted by the security manager's {@link + * java.lang.SecurityManager#checkAccept checkAccept} method.

+ */ + // @ts-ignore + public abstract accept(): java.nio.channels.SocketChannel; + /** + * {@inheritDoc} + *

+ * If there is a security manager set, its {@code checkConnect} method is + * called with the local address and {@code -1} as its arguments to see + * if the operation is allowed. If the operation is not allowed, + * a {@code SocketAddress} representing the + * {@link java.net.InetAddress#getLoopbackAddress loopback} address and the + * local port of the channel's socket is returned. + */ + // @ts-ignore + public abstract getLocalAddress(): java.net.SocketAddress; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.ShutdownChannelGroupException.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.ShutdownChannelGroupException.d.ts new file mode 100644 index 00000000..85f420e3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.ShutdownChannelGroupException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + class ShutdownChannelGroupException extends java.lang.IllegalStateException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.SocketChannel.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.SocketChannel.d.ts new file mode 100644 index 00000000..4ea0c8bd --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.SocketChannel.d.ts @@ -0,0 +1,160 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + abstract class SocketChannel extends java.nio.channels.spi.AbstractSelectableChannel { + /** + * Initializes a new instance of this class. + */ + // @ts-ignore + constructor(provider: java.nio.channels.spi.SelectorProvider) + /** + * Opens a socket channel. + *

The new channel is created by invoking the {@link + * java.nio.channels.spi.SelectorProvider#openSocketChannel + * openSocketChannel} method of the system-wide default {@link + * java.nio.channels.spi.SelectorProvider} object.

+ */ + // @ts-ignore + public static open(): java.nio.channels.SocketChannel; + /** + * Opens a socket channel and connects it to a remote address. + *

This convenience method works as if by invoking the {@link #open()} + * method, invoking the {@link #connect(SocketAddress) connect} method upon + * the resulting socket channel, passing it remote, and then + * returning that channel.

+ */ + // @ts-ignore + public static open(remote: java.net.SocketAddress): java.nio.channels.SocketChannel; + /** + * Returns an operation set identifying this channel's supported + * operations. + *

Socket channels support connecting, reading, and writing, so this + * method returns ({@link SelectionKey#OP_CONNECT} + * | {@link SelectionKey#OP_READ} | {@link + * SelectionKey#OP_WRITE}).

+ */ + // @ts-ignore + public validOps(): number; + // @ts-ignore + public abstract bind(local: java.net.SocketAddress): java.nio.channels.SocketChannel; + // @ts-ignore + public abstract setOption(name: java.net.SocketOption, value: java.lang.Object): java.nio.channels.SocketChannel; + /** + * Shutdown the connection for reading without closing the channel. + *

Once shutdown for reading then further reads on the channel will + * return {@code -1}, the end-of-stream indication. If the input side of the + * connection is already shutdown then invoking this method has no effect. + */ + // @ts-ignore + public abstract shutdownInput(): java.nio.channels.SocketChannel; + /** + * Shutdown the connection for writing without closing the channel. + *

Once shutdown for writing then further attempts to write to the + * channel will throw {@link ClosedChannelException}. If the output side of + * the connection is already shutdown then invoking this method has no + * effect. + */ + // @ts-ignore + public abstract shutdownOutput(): java.nio.channels.SocketChannel; + /** + * Retrieves a socket associated with this channel. + *

The returned object will not declare any public methods that are not + * declared in the {@link java.net.Socket} class.

+ */ + // @ts-ignore + public abstract socket(): java.net.Socket; + /** + * Tells whether or not this channel's network socket is connected. + */ + // @ts-ignore + public abstract isConnected(): boolean; + /** + * Tells whether or not a connection operation is in progress on this + * channel. + */ + // @ts-ignore + public abstract isConnectionPending(): boolean; + /** + * Connects this channel's socket. + *

If this channel is in non-blocking mode then an invocation of this + * method initiates a non-blocking connection operation. If the connection + * is established immediately, as can happen with a local connection, then + * this method returns true. Otherwise this method returns + * false and the connection operation must later be completed by + * invoking the {@link #finishConnect finishConnect} method. + *

If this channel is in blocking mode then an invocation of this + * method will block until the connection is established or an I/O error + * occurs. + *

This method performs exactly the same security checks as the {@link + * java.net.Socket} class. That is, if a security manager has been + * installed then this method verifies that its {@link + * java.lang.SecurityManager#checkConnect checkConnect} method permits + * connecting to the address and port number of the given remote endpoint. + *

This method may be invoked at any time. If a read or write + * operation upon this channel is invoked while an invocation of this + * method is in progress then that operation will first block until this + * invocation is complete. If a connection attempt is initiated but fails, + * that is, if an invocation of this method throws a checked exception, + * then the channel will be closed.

+ */ + // @ts-ignore + public abstract connect(remote: java.net.SocketAddress): boolean; + /** + * Finishes the process of connecting a socket channel. + *

A non-blocking connection operation is initiated by placing a socket + * channel in non-blocking mode and then invoking its {@link #connect + * connect} method. Once the connection is established, or the attempt has + * failed, the socket channel will become connectable and this method may + * be invoked to complete the connection sequence. If the connection + * operation failed then invoking this method will cause an appropriate + * {@link java.io.IOException} to be thrown. + *

If this channel is already connected then this method will not block + * and will immediately return true. If this channel is in + * non-blocking mode then this method will return false if the + * connection process is not yet complete. If this channel is in blocking + * mode then this method will block until the connection either completes + * or fails, and will always either return true or throw a checked + * exception describing the failure. + *

This method may be invoked at any time. If a read or write + * operation upon this channel is invoked while an invocation of this + * method is in progress then that operation will first block until this + * invocation is complete. If a connection attempt fails, that is, if an + * invocation of this method throws a checked exception, then the channel + * will be closed.

+ */ + // @ts-ignore + public abstract finishConnect(): boolean; + /** + * Returns the remote address to which this channel's socket is connected. + *

Where the channel is bound and connected to an Internet Protocol + * socket address then the return value from this method is of type {@link + * java.net.InetSocketAddress}. + */ + // @ts-ignore + public abstract getRemoteAddress(): java.net.SocketAddress; + // @ts-ignore + public abstract read(dst: java.nio.ByteBuffer): number; + // @ts-ignore + public read(dsts: java.nio.ByteBuffer): number; + // @ts-ignore + public abstract write(src: java.nio.ByteBuffer): number; + // @ts-ignore + public write(srcs: java.nio.ByteBuffer): number; + /** + * {@inheritDoc} + *

+ * If there is a security manager set, its {@code checkConnect} method is + * called with the local address and {@code -1} as its arguments to see + * if the operation is allowed. If the operation is not allowed, + * a {@code SocketAddress} representing the + * {@link java.net.InetAddress#getLoopbackAddress loopback} address and the + * local port of the channel's socket is returned. + */ + // @ts-ignore + public abstract getLocalAddress(): java.net.SocketAddress; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.UnresolvedAddressException.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.UnresolvedAddressException.d.ts new file mode 100644 index 00000000..48d7a330 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.UnresolvedAddressException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + class UnresolvedAddressException extends java.lang.IllegalArgumentException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.UnsupportedAddressTypeException.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.UnsupportedAddressTypeException.d.ts new file mode 100644 index 00000000..3e2f7786 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.UnsupportedAddressTypeException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + class UnsupportedAddressTypeException extends java.lang.IllegalArgumentException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.WritableByteChannel.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.WritableByteChannel.d.ts new file mode 100644 index 00000000..93a73717 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.WritableByteChannel.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + interface WritableByteChannel { + /** + * Writes a sequence of bytes to this channel from the given buffer. + *

An attempt is made to write up to r bytes to the channel, + * where r is the number of bytes remaining in the buffer, that is, + * src.remaining(), at the moment this method is invoked. + *

Suppose that a byte sequence of length n is written, where + * 0 <= n <= r. + * This byte sequence will be transferred from the buffer starting at index + * p, where p is the buffer's position at the moment this + * method is invoked; the index of the last byte written will be + * p + n - 1. + * Upon return the buffer's position will be equal to + * p + n; its limit will not have changed. + *

Unless otherwise specified, a write operation will return only after + * writing all of the r requested bytes. Some types of channels, + * depending upon their state, may write only some of the bytes or possibly + * none at all. A socket channel in non-blocking mode, for example, cannot + * write any more bytes than are free in the socket's output buffer. + *

This method may be invoked at any time. If another thread has + * already initiated a write operation upon this channel, however, then an + * invocation of this method will block until the first operation is + * complete.

+ */ + // @ts-ignore + write(src: java.nio.ByteBuffer): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.WritePendingException.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.WritePendingException.d.ts new file mode 100644 index 00000000..254c7a61 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.WritePendingException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + // @ts-ignore + class WritePendingException extends java.lang.IllegalStateException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.spi.AbstractInterruptibleChannel.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.spi.AbstractInterruptibleChannel.d.ts new file mode 100644 index 00000000..1e914604 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.spi.AbstractInterruptibleChannel.d.ts @@ -0,0 +1,59 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + namespace spi { + // @ts-ignore + abstract class AbstractInterruptibleChannel extends java.lang.Object { + /** + * Initializes a new instance of this class. + */ + // @ts-ignore + constructor() + /** + * Closes this channel. + *

If the channel has already been closed then this method returns + * immediately. Otherwise it marks the channel as closed and then invokes + * the {@link #implCloseChannel implCloseChannel} method in order to + * complete the close operation.

+ */ + // @ts-ignore + public close(): void; + /** + * Closes this channel. + *

This method is invoked by the {@link #close close} method in order + * to perform the actual work of closing the channel. This method is only + * invoked if the channel has not yet been closed, and it is never invoked + * more than once. + *

An implementation of this method must arrange for any other thread + * that is blocked in an I/O operation upon this channel to return + * immediately, either by throwing an exception or by returning normally. + *

+ */ + // @ts-ignore + protected abstract implCloseChannel(): void; + // @ts-ignore + public isOpen(): boolean; + /** + * Marks the beginning of an I/O operation that might block indefinitely. + *

This method should be invoked in tandem with the {@link #end end} + * method, using a try ... finally block as + * shown above, in order to implement asynchronous + * closing and interruption for this channel.

+ */ + // @ts-ignore + protected begin(): void; + /** + * Marks the end of an I/O operation that might block indefinitely. + *

This method should be invoked in tandem with the {@link #begin + * begin} method, using a try ... finally block + * as shown above, in order to implement asynchronous + * closing and interruption for this channel.

+ */ + // @ts-ignore + protected end(completed: boolean): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.spi.AbstractSelectableChannel.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.spi.AbstractSelectableChannel.d.ts new file mode 100644 index 00000000..e865e316 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.spi.AbstractSelectableChannel.d.ts @@ -0,0 +1,87 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + namespace spi { + // @ts-ignore + abstract class AbstractSelectableChannel extends java.nio.channels.SelectableChannel { + /** + * Initializes a new instance of this class. + */ + // @ts-ignore + constructor(provider: java.nio.channels.spi.SelectorProvider) + /** + * Returns the provider that created this channel. + */ + // @ts-ignore + public provider(): java.nio.channels.spi.SelectorProvider; + // @ts-ignore + public isRegistered(): boolean; + // @ts-ignore + public keyFor(sel: java.nio.channels.Selector): java.nio.channels.SelectionKey; + /** + * Registers this channel with the given selector, returning a selection key. + *

This method first verifies that this channel is open and that the + * given initial interest set is valid. + *

If this channel is already registered with the given selector then + * the selection key representing that registration is returned after + * setting its interest set to the given value. + *

Otherwise this channel has not yet been registered with the given + * selector, so the {@link AbstractSelector#register register} method of + * the selector is invoked while holding the appropriate locks. The + * resulting key is added to this channel's key set before being returned. + *

+ */ + // @ts-ignore + public register(sel: java.nio.channels.Selector, ops: number, att: java.lang.Object): java.nio.channels.SelectionKey; + /** + * Closes this channel. + *

This method, which is specified in the {@link + * AbstractInterruptibleChannel} class and is invoked by the {@link + * java.nio.channels.Channel#close close} method, in turn invokes the + * {@link #implCloseSelectableChannel implCloseSelectableChannel} method in + * order to perform the actual work of closing this channel. It then + * cancels all of this channel's keys.

+ */ + // @ts-ignore + protected implCloseChannel(): void; + /** + * Closes this selectable channel. + *

This method is invoked by the {@link java.nio.channels.Channel#close + * close} method in order to perform the actual work of closing the + * channel. This method is only invoked if the channel has not yet been + * closed, and it is never invoked more than once. + *

An implementation of this method must arrange for any other thread + * that is blocked in an I/O operation upon this channel to return + * immediately, either by throwing an exception or by returning normally. + *

+ */ + // @ts-ignore + protected abstract implCloseSelectableChannel(): void; + // @ts-ignore + public isBlocking(): boolean; + // @ts-ignore + public blockingLock(): java.lang.Object; + /** + * Adjusts this channel's blocking mode. + *

If the given blocking mode is different from the current blocking + * mode then this method invokes the {@link #implConfigureBlocking + * implConfigureBlocking} method, while holding the appropriate locks, in + * order to change the mode.

+ */ + // @ts-ignore + public configureBlocking(block: boolean): java.nio.channels.SelectableChannel; + /** + * Adjusts this channel's blocking mode. + *

This method is invoked by the {@link #configureBlocking + * configureBlocking} method in order to perform the actual work of + * changing the blocking mode. This method is only invoked if the new mode + * is different from the current mode.

+ */ + // @ts-ignore + protected abstract implConfigureBlocking(block: boolean): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.spi.AbstractSelectionKey.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.spi.AbstractSelectionKey.d.ts new file mode 100644 index 00000000..0ffd6a23 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.spi.AbstractSelectionKey.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + namespace spi { + // @ts-ignore + abstract class AbstractSelectionKey extends java.nio.channels.SelectionKey { + /** + * Initializes a new instance of this class. + */ + // @ts-ignore + constructor() + // @ts-ignore + public isValid(): boolean; + /** + * Cancels this key. + *

If this key has not yet been cancelled then it is added to its + * selector's cancelled-key set while synchronized on that set.

+ */ + // @ts-ignore + public cancel(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.spi.AbstractSelector.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.spi.AbstractSelector.d.ts new file mode 100644 index 00000000..a774521f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.spi.AbstractSelector.d.ts @@ -0,0 +1,89 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + namespace spi { + // @ts-ignore + abstract class AbstractSelector extends java.nio.channels.Selector { + /** + * Initializes a new instance of this class. + */ + // @ts-ignore + constructor(provider: java.nio.channels.spi.SelectorProvider) + /** + * Closes this selector. + *

If the selector has already been closed then this method returns + * immediately. Otherwise it marks the selector as closed and then invokes + * the {@link #implCloseSelector implCloseSelector} method in order to + * complete the close operation.

+ */ + // @ts-ignore + public close(): void; + /** + * Closes this selector. + *

This method is invoked by the {@link #close close} method in order + * to perform the actual work of closing the selector. This method is only + * invoked if the selector has not yet been closed, and it is never invoked + * more than once. + *

An implementation of this method must arrange for any other thread + * that is blocked in a selection operation upon this selector to return + * immediately as if by invoking the {@link + * java.nio.channels.Selector#wakeup wakeup} method.

+ */ + // @ts-ignore + protected abstract implCloseSelector(): void; + // @ts-ignore + public isOpen(): boolean; + /** + * Returns the provider that created this channel. + */ + // @ts-ignore + public provider(): java.nio.channels.spi.SelectorProvider; + /** + * Retrieves this selector's cancelled-key set. + *

This set should only be used while synchronized upon it.

+ */ + // @ts-ignore + protected cancelledKeys(): java.util.Set; + /** + * Registers the given channel with this selector. + *

This method is invoked by a channel's {@link + * AbstractSelectableChannel#register register} method in order to perform + * the actual work of registering the channel with this selector.

+ */ + // @ts-ignore + protected abstract register(ch: java.nio.channels.spi.AbstractSelectableChannel, ops: number, att: java.lang.Object): java.nio.channels.SelectionKey; + /** + * Removes the given key from its channel's key set. + *

This method must be invoked by the selector for each channel that it + * deregisters.

+ */ + // @ts-ignore + protected deregister(key: java.nio.channels.spi.AbstractSelectionKey): void; + /** + * Marks the beginning of an I/O operation that might block indefinitely. + *

This method should be invoked in tandem with the {@link #end end} + * method, using a try ... finally block as + * shown above, in order to implement interruption for + * this selector. + *

Invoking this method arranges for the selector's {@link + * Selector#wakeup wakeup} method to be invoked if a thread's {@link + * Thread#interrupt interrupt} method is invoked while the thread is + * blocked in an I/O operation upon the selector.

+ */ + // @ts-ignore + protected begin(): void; + /** + * Marks the end of an I/O operation that might block indefinitely. + *

This method should be invoked in tandem with the {@link #begin begin} + * method, using a try ... finally block as + * shown above, in order to implement interruption for + * this selector.

+ */ + // @ts-ignore + protected end(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.spi.AsynchronousChannelProvider.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.spi.AsynchronousChannelProvider.d.ts new file mode 100644 index 00000000..0ea891da --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.spi.AsynchronousChannelProvider.d.ts @@ -0,0 +1,60 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + namespace spi { + // @ts-ignore + abstract class AsynchronousChannelProvider extends java.lang.Object { + /** + * Initializes a new instance of this class. + */ + // @ts-ignore + constructor() + /** + * Returns the system-wide default asynchronous channel provider for this + * invocation of the Java virtual machine. + *

The first invocation of this method locates the default provider + * object as follows:

+ *
    + *
  1. If the system property + * java.nio.channels.spi.AsynchronousChannelProvider is defined + * then it is taken to be the fully-qualified name of a concrete provider class. + * The class is loaded and instantiated; if this process fails then an + * unspecified error is thrown.

  2. + *
  3. If a provider class has been installed in a jar file that is + * visible to the system class loader, and that jar file contains a + * provider-configuration file named + * java.nio.channels.spi.AsynchronousChannelProvider in the resource + * directory META-INF/services, then the first class name + * specified in that file is taken. The class is loaded and + * instantiated; if this process fails then an unspecified error is + * thrown.

  4. + *
  5. Finally, if no provider has been specified by any of the above + * means then the system-default provider class is instantiated and the + * result is returned.

  6. + *
+ *

Subsequent invocations of this method return the provider that was + * returned by the first invocation.

+ */ + // @ts-ignore + public static provider(): java.nio.channels.spi.AsynchronousChannelProvider; + /** + * Constructs a new asynchronous channel group with a fixed thread pool. + */ + // @ts-ignore + public abstract openAsynchronousChannelGroup(nThreads: number, threadFactory: java.util.concurrent.ThreadFactory): java.nio.channels.AsynchronousChannelGroup; + /** + * Opens an asynchronous server-socket channel. + */ + // @ts-ignore + public abstract openAsynchronousServerSocketChannel(group: java.nio.channels.AsynchronousChannelGroup): java.nio.channels.AsynchronousServerSocketChannel; + /** + * Opens an asynchronous socket channel. + */ + // @ts-ignore + public abstract openAsynchronousSocketChannel(group: java.nio.channels.AsynchronousChannelGroup): java.nio.channels.AsynchronousSocketChannel; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.channels.spi.SelectorProvider.d.ts b/packages/types/dist/typings/jdk/java.nio.channels.spi.SelectorProvider.d.ts new file mode 100644 index 00000000..db8ec553 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.channels.spi.SelectorProvider.d.ts @@ -0,0 +1,110 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace channels { + namespace spi { + // @ts-ignore + abstract class SelectorProvider extends java.lang.Object { + /** + * Initializes a new instance of this class. + */ + // @ts-ignore + constructor() + /** + * Returns the system-wide default selector provider for this invocation of + * the Java virtual machine. + *

The first invocation of this method locates the default provider + * object as follows:

+ *
    + *
  1. If the system property + * java.nio.channels.spi.SelectorProvider is defined then it is + * taken to be the fully-qualified name of a concrete provider class. + * The class is loaded and instantiated; if this process fails then an + * unspecified error is thrown.

  2. + *
  3. If a provider class has been installed in a jar file that is + * visible to the system class loader, and that jar file contains a + * provider-configuration file named + * java.nio.channels.spi.SelectorProvider in the resource + * directory META-INF/services, then the first class name + * specified in that file is taken. The class is loaded and + * instantiated; if this process fails then an unspecified error is + * thrown.

  4. + *
  5. Finally, if no provider has been specified by any of the above + * means then the system-default provider class is instantiated and the + * result is returned.

  6. + *
+ *

Subsequent invocations of this method return the provider that was + * returned by the first invocation.

+ */ + // @ts-ignore + public static provider(): java.nio.channels.spi.SelectorProvider; + /** + * Opens a datagram channel. + */ + // @ts-ignore + public abstract openDatagramChannel(): java.nio.channels.DatagramChannel; + /** + * Opens a pipe. + */ + // @ts-ignore + public abstract openPipe(): java.nio.channels.Pipe; + /** + * Opens a selector. + */ + // @ts-ignore + public abstract openSelector(): java.nio.channels.spi.AbstractSelector; + /** + * Opens a server-socket channel. + */ + // @ts-ignore + public abstract openServerSocketChannel(): java.nio.channels.ServerSocketChannel; + /** + * Opens a socket channel. + */ + // @ts-ignore + public abstract openSocketChannel(): java.nio.channels.SocketChannel; + /** + * Returns the channel inherited from the entity that created this + * Java virtual machine. + *

On many operating systems a process, such as a Java virtual + * machine, can be started in a manner that allows the process to + * inherit a channel from the entity that created the process. The + * manner in which this is done is system dependent, as are the + * possible entities to which the channel may be connected. For example, + * on UNIX systems, the Internet services daemon (inetd) is used to + * start programs to service requests when a request arrives on an + * associated network port. In this example, the process that is started, + * inherits a channel representing a network socket. + *

In cases where the inherited channel represents a network socket + * then the {@link java.nio.channels.Channel Channel} type returned + * by this method is determined as follows: + *

    + *
  • If the inherited channel represents a stream-oriented connected + * socket then a {@link java.nio.channels.SocketChannel SocketChannel} is + * returned. The socket channel is, at least initially, in blocking + * mode, bound to a socket address, and connected to a peer. + *

  • + *
  • If the inherited channel represents a stream-oriented listening + * socket then a {@link java.nio.channels.ServerSocketChannel + * ServerSocketChannel} is returned. The server-socket channel is, at + * least initially, in blocking mode, and bound to a socket address. + *

  • + *
  • If the inherited channel is a datagram-oriented socket + * then a {@link java.nio.channels.DatagramChannel DatagramChannel} is + * returned. The datagram channel is, at least initially, in blocking + * mode, and bound to a socket address. + *

  • + *
+ *

In addition to the network-oriented channels described, this method + * may return other kinds of channels in the future. + *

The first invocation of this method creates the channel that is + * returned. Subsequent invocations of this method return the same + * channel.

+ */ + // @ts-ignore + public inheritedChannel(): java.nio.channels.Channel; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.charset.CharacterCodingException.d.ts b/packages/types/dist/typings/jdk/java.nio.charset.CharacterCodingException.d.ts new file mode 100644 index 00000000..9985aea0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.charset.CharacterCodingException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace charset { + // @ts-ignore + class CharacterCodingException extends java.io.IOException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.charset.Charset.d.ts b/packages/types/dist/typings/jdk/java.nio.charset.Charset.d.ts new file mode 100644 index 00000000..1601ef96 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.charset.Charset.d.ts @@ -0,0 +1,202 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace charset { + // @ts-ignore + abstract class Charset extends java.lang.Object { + /** + * Initializes a new charset with the given canonical name and alias + * set. + */ + // @ts-ignore + constructor(canonicalName: string, aliases: string) + /** + * Tells whether the named charset is supported. + */ + // @ts-ignore + public static isSupported(charsetName: string): boolean; + /** + * Returns a charset object for the named charset. + */ + // @ts-ignore + public static forName(charsetName: string): java.nio.charset.Charset; + /** + * Constructs a sorted map from canonical charset names to charset objects. + *

The map returned by this method will have one entry for each charset + * for which support is available in the current Java virtual machine. If + * two or more supported charsets have the same canonical name then the + * resulting map will contain just one of them; which one it will contain + * is not specified.

+ *

The invocation of this method, and the subsequent use of the + * resulting map, may cause time-consuming disk or network I/O operations + * to occur. This method is provided for applications that need to + * enumerate all of the available charsets, for example to allow user + * charset selection. This method is not used by the {@link #forName + * forName} method, which instead employs an efficient incremental lookup + * algorithm. + *

This method may return different results at different times if new + * charset providers are dynamically made available to the current Java + * virtual machine. In the absence of such changes, the charsets returned + * by this method are exactly those that can be retrieved via the {@link + * #forName forName} method.

+ */ + // @ts-ignore + public static availableCharsets(): java.util.SortedMap; + /** + * Returns the default charset of this Java virtual machine. + *

The default charset is determined during virtual-machine startup and + * typically depends upon the locale and charset of the underlying + * operating system. + */ + // @ts-ignore + public static defaultCharset(): java.nio.charset.Charset; + /** + * Returns this charset's canonical name. + */ + // @ts-ignore + public name(): string; + /** + * Returns a set containing this charset's aliases. + */ + // @ts-ignore + public aliases(): java.util.Set; + /** + * Returns this charset's human-readable name for the default locale. + *

The default implementation of this method simply returns this + * charset's canonical name. Concrete subclasses of this class may + * override this method in order to provide a localized display name.

+ */ + // @ts-ignore + public displayName(): string; + /** + * Tells whether or not this charset is registered in the IANA Charset + * Registry. + */ + // @ts-ignore + public isRegistered(): boolean; + /** + * Returns this charset's human-readable name for the given locale. + *

The default implementation of this method simply returns this + * charset's canonical name. Concrete subclasses of this class may + * override this method in order to provide a localized display name.

+ */ + // @ts-ignore + public displayName(locale: java.util.Locale): string; + /** + * Tells whether or not this charset contains the given charset. + *

A charset C is said to contain a charset D if, + * and only if, every character representable in D is also + * representable in C. If this relationship holds then it is + * guaranteed that every string that can be encoded in D can also be + * encoded in C without performing any replacements. + *

That C contains D does not imply that each character + * representable in C by a particular byte sequence is represented + * in D by the same byte sequence, although sometimes this is the + * case. + *

Every charset contains itself. + *

This method computes an approximation of the containment relation: + * If it returns true then the given charset is known to be + * contained by this charset; if it returns false, however, then + * it is not necessarily the case that the given charset is not contained + * in this charset. + */ + // @ts-ignore + public abstract contains(cs: java.nio.charset.Charset): boolean; + /** + * Constructs a new decoder for this charset. + */ + // @ts-ignore + public abstract newDecoder(): java.nio.charset.CharsetDecoder; + /** + * Constructs a new encoder for this charset. + */ + // @ts-ignore + public abstract newEncoder(): java.nio.charset.CharsetEncoder; + /** + * Tells whether or not this charset supports encoding. + *

Nearly all charsets support encoding. The primary exceptions are + * special-purpose auto-detect charsets whose decoders can determine + * which of several possible encoding schemes is in use by examining the + * input byte sequence. Such charsets do not support encoding because + * there is no way to determine which encoding should be used on output. + * Implementations of such charsets should override this method to return + * false.

+ */ + // @ts-ignore + public canEncode(): boolean; + /** + * Convenience method that decodes bytes in this charset into Unicode + * characters. + *

An invocation of this method upon a charset cs returns the + * same result as the expression + *

+                 * cs.newDecoder()
+                 * .onMalformedInput(CodingErrorAction.REPLACE)
+                 * .onUnmappableCharacter(CodingErrorAction.REPLACE)
+                 * .decode(bb); 
+ * except that it is potentially more efficient because it can cache + * decoders between successive invocations. + *

This method always replaces malformed-input and unmappable-character + * sequences with this charset's default replacement byte array. In order + * to detect such sequences, use the {@link + * CharsetDecoder#decode(java.nio.ByteBuffer)} method directly.

+ */ + // @ts-ignore + public decode(bb: java.nio.ByteBuffer): java.nio.CharBuffer; + /** + * Convenience method that encodes Unicode characters into bytes in this + * charset. + *

An invocation of this method upon a charset cs returns the + * same result as the expression + *

+                 * cs.newEncoder()
+                 * .onMalformedInput(CodingErrorAction.REPLACE)
+                 * .onUnmappableCharacter(CodingErrorAction.REPLACE)
+                 * .encode(bb); 
+ * except that it is potentially more efficient because it can cache + * encoders between successive invocations. + *

This method always replaces malformed-input and unmappable-character + * sequences with this charset's default replacement string. In order to + * detect such sequences, use the {@link + * CharsetEncoder#encode(java.nio.CharBuffer)} method directly.

+ */ + // @ts-ignore + public encode(cb: java.nio.CharBuffer): java.nio.ByteBuffer; + /** + * Convenience method that encodes a string into bytes in this charset. + *

An invocation of this method upon a charset cs returns the + * same result as the expression + *

+                 * cs.encode(CharBuffer.wrap(s)); 
+ */ + // @ts-ignore + public encode(str: string): java.nio.ByteBuffer; + /** + * Compares this charset to another. + *

Charsets are ordered by their canonical names, without regard to + * case.

+ */ + // @ts-ignore + public compareTo(that: java.nio.charset.Charset): number; + /** + * Computes a hashcode for this charset. + */ + // @ts-ignore + public hashCode(): number; + /** + * Tells whether or not this object is equal to another. + *

Two charsets are equal if, and only if, they have the same canonical + * names. A charset is never equal to any other type of object.

+ */ + // @ts-ignore + public equals(ob: java.lang.Object): boolean; + /** + * Returns a string describing this charset. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.charset.CharsetDecoder.d.ts b/packages/types/dist/typings/jdk/java.nio.charset.CharsetDecoder.d.ts new file mode 100644 index 00000000..42abd944 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.charset.CharsetDecoder.d.ts @@ -0,0 +1,285 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace charset { + // @ts-ignore + abstract class CharsetDecoder extends java.lang.Object { + /** + * Initializes a new decoder. The new decoder will have the given + * chars-per-byte values and its replacement will be the + * string "\uFFFD". + */ + // @ts-ignore + constructor(cs: java.nio.charset.Charset, averageCharsPerByte: number, maxCharsPerByte: number) + /** + * Returns the charset that created this decoder. + */ + // @ts-ignore + public charset(): java.nio.charset.Charset; + /** + * Returns this decoder's replacement value. + */ + // @ts-ignore + public replacement(): string; + /** + * Changes this decoder's replacement value. + *

This method invokes the {@link #implReplaceWith implReplaceWith} + * method, passing the new replacement, after checking that the new + * replacement is acceptable.

+ */ + // @ts-ignore + public replaceWith(newReplacement: string): java.nio.charset.CharsetDecoder; + /** + * Reports a change to this decoder's replacement value. + *

The default implementation of this method does nothing. This method + * should be overridden by decoders that require notification of changes to + * the replacement.

+ */ + // @ts-ignore + protected implReplaceWith(newReplacement: string): void; + /** + * Returns this decoder's current action for malformed-input errors. + */ + // @ts-ignore + public malformedInputAction(): java.nio.charset.CodingErrorAction; + /** + * Changes this decoder's action for malformed-input errors. + *

This method invokes the {@link #implOnMalformedInput + * implOnMalformedInput} method, passing the new action.

+ */ + // @ts-ignore + public onMalformedInput(newAction: java.nio.charset.CodingErrorAction): java.nio.charset.CharsetDecoder; + /** + * Reports a change to this decoder's malformed-input action. + *

The default implementation of this method does nothing. This method + * should be overridden by decoders that require notification of changes to + * the malformed-input action.

+ */ + // @ts-ignore + protected implOnMalformedInput(newAction: java.nio.charset.CodingErrorAction): void; + /** + * Returns this decoder's current action for unmappable-character errors. + */ + // @ts-ignore + public unmappableCharacterAction(): java.nio.charset.CodingErrorAction; + /** + * Changes this decoder's action for unmappable-character errors. + *

This method invokes the {@link #implOnUnmappableCharacter + * implOnUnmappableCharacter} method, passing the new action.

+ */ + // @ts-ignore + public onUnmappableCharacter(newAction: java.nio.charset.CodingErrorAction): java.nio.charset.CharsetDecoder; + /** + * Reports a change to this decoder's unmappable-character action. + *

The default implementation of this method does nothing. This method + * should be overridden by decoders that require notification of changes to + * the unmappable-character action.

+ */ + // @ts-ignore + protected implOnUnmappableCharacter(newAction: java.nio.charset.CodingErrorAction): void; + /** + * Returns the average number of characters that will be produced for each + * byte of input. This heuristic value may be used to estimate the size + * of the output buffer required for a given input sequence. + */ + // @ts-ignore + public averageCharsPerByte(): number; + /** + * Returns the maximum number of characters that will be produced for each + * byte of input. This value may be used to compute the worst-case size + * of the output buffer required for a given input sequence. + */ + // @ts-ignore + public maxCharsPerByte(): number; + /** + * Decodes as many bytes as possible from the given input buffer, + * writing the results to the given output buffer. + *

The buffers are read from, and written to, starting at their current + * positions. At most {@link Buffer#remaining in.remaining()} bytes + * will be read and at most {@link Buffer#remaining out.remaining()} + * characters will be written. The buffers' positions will be advanced to + * reflect the bytes read and the characters written, but their marks and + * limits will not be modified. + *

In addition to reading bytes from the input buffer and writing + * characters to the output buffer, this method returns a {@link CoderResult} + * object to describe its reason for termination: + *

    + *
  • {@link CoderResult#UNDERFLOW} indicates that as much of the + * input buffer as possible has been decoded. If there is no further + * input then the invoker can proceed to the next step of the + * decoding operation. Otherwise this method + * should be invoked again with further input.

  • + *
  • {@link CoderResult#OVERFLOW} indicates that there is + * insufficient space in the output buffer to decode any more bytes. + * This method should be invoked again with an output buffer that has + * more {@linkplain Buffer#remaining remaining} characters. This is + * typically done by draining any decoded characters from the output + * buffer.

  • + *
  • A {@linkplain CoderResult#malformedForLength + * malformed-input} result indicates that a malformed-input + * error has been detected. The malformed bytes begin at the input + * buffer's (possibly incremented) position; the number of malformed + * bytes may be determined by invoking the result object's {@link + * CoderResult#length() length} method. This case applies only if the + * {@linkplain #onMalformedInput malformed action} of this decoder + * is {@link CodingErrorAction#REPORT}; otherwise the malformed input + * will be ignored or replaced, as requested.

  • + *
  • An {@linkplain CoderResult#unmappableForLength + * unmappable-character} result indicates that an + * unmappable-character error has been detected. The bytes that + * decode the unmappable character begin at the input buffer's (possibly + * incremented) position; the number of such bytes may be determined + * by invoking the result object's {@link CoderResult#length() length} + * method. This case applies only if the {@linkplain #onUnmappableCharacter + * unmappable action} of this decoder is {@link + * CodingErrorAction#REPORT}; otherwise the unmappable character will be + * ignored or replaced, as requested.

  • + *
+ * In any case, if this method is to be reinvoked in the same decoding + * operation then care should be taken to preserve any bytes remaining + * in the input buffer so that they are available to the next invocation. + *

The endOfInput parameter advises this method as to whether + * the invoker can provide further input beyond that contained in the given + * input buffer. If there is a possibility of providing additional input + * then the invoker should pass false for this parameter; if there + * is no possibility of providing further input then the invoker should + * pass true. It is not erroneous, and in fact it is quite + * common, to pass false in one invocation and later discover that + * no further input was actually available. It is critical, however, that + * the final invocation of this method in a sequence of invocations always + * pass true so that any remaining undecoded input will be treated + * as being malformed. + *

This method works by invoking the {@link #decodeLoop decodeLoop} + * method, interpreting its results, handling error conditions, and + * reinvoking it as necessary.

+ */ + // @ts-ignore + public decode(input: java.nio.ByteBuffer, out: java.nio.CharBuffer, endOfInput: boolean): java.nio.charset.CoderResult; + /** + * Flushes this decoder. + *

Some decoders maintain internal state and may need to write some + * final characters to the output buffer once the overall input sequence has + * been read. + *

Any additional output is written to the output buffer beginning at + * its current position. At most {@link Buffer#remaining out.remaining()} + * characters will be written. The buffer's position will be advanced + * appropriately, but its mark and limit will not be modified. + *

If this method completes successfully then it returns {@link + * CoderResult#UNDERFLOW}. If there is insufficient room in the output + * buffer then it returns {@link CoderResult#OVERFLOW}. If this happens + * then this method must be invoked again, with an output buffer that has + * more room, in order to complete the current decoding + * operation. + *

If this decoder has already been flushed then invoking this method + * has no effect. + *

This method invokes the {@link #implFlush implFlush} method to + * perform the actual flushing operation.

+ */ + // @ts-ignore + public flush(out: java.nio.CharBuffer): java.nio.charset.CoderResult; + /** + * Flushes this decoder. + *

The default implementation of this method does nothing, and always + * returns {@link CoderResult#UNDERFLOW}. This method should be overridden + * by decoders that may need to write final characters to the output buffer + * once the entire input sequence has been read.

+ */ + // @ts-ignore + protected implFlush(out: java.nio.CharBuffer): java.nio.charset.CoderResult; + /** + * Resets this decoder, clearing any internal state. + *

This method resets charset-independent state and also invokes the + * {@link #implReset() implReset} method in order to perform any + * charset-specific reset actions.

+ */ + // @ts-ignore + public reset(): java.nio.charset.CharsetDecoder; + /** + * Resets this decoder, clearing any charset-specific internal state. + *

The default implementation of this method does nothing. This method + * should be overridden by decoders that maintain internal state.

+ */ + // @ts-ignore + protected implReset(): void; + /** + * Decodes one or more bytes into one or more characters. + *

This method encapsulates the basic decoding loop, decoding as many + * bytes as possible until it either runs out of input, runs out of room + * in the output buffer, or encounters a decoding error. This method is + * invoked by the {@link #decode decode} method, which handles result + * interpretation and error recovery. + *

The buffers are read from, and written to, starting at their current + * positions. At most {@link Buffer#remaining in.remaining()} bytes + * will be read, and at most {@link Buffer#remaining out.remaining()} + * characters will be written. The buffers' positions will be advanced to + * reflect the bytes read and the characters written, but their marks and + * limits will not be modified. + *

This method returns a {@link CoderResult} object to describe its + * reason for termination, in the same manner as the {@link #decode decode} + * method. Most implementations of this method will handle decoding errors + * by returning an appropriate result object for interpretation by the + * {@link #decode decode} method. An optimized implementation may instead + * examine the relevant error action and implement that action itself. + *

An implementation of this method may perform arbitrary lookahead by + * returning {@link CoderResult#UNDERFLOW} until it receives sufficient + * input.

+ */ + // @ts-ignore + protected abstract decodeLoop(input: java.nio.ByteBuffer, out: java.nio.CharBuffer): java.nio.charset.CoderResult; + /** + * Convenience method that decodes the remaining content of a single input + * byte buffer into a newly-allocated character buffer. + *

This method implements an entire decoding + * operation; that is, it resets this decoder, then it decodes the + * bytes in the given byte buffer, and finally it flushes this + * decoder. This method should therefore not be invoked if a decoding + * operation is already in progress.

+ */ + // @ts-ignore + public decode(input: java.nio.ByteBuffer): java.nio.CharBuffer; + /** + * Tells whether or not this decoder implements an auto-detecting charset. + *

The default implementation of this method always returns + * false; it should be overridden by auto-detecting decoders to + * return true.

+ */ + // @ts-ignore + public isAutoDetecting(): boolean; + /** + * Tells whether or not this decoder has yet detected a + * charset  (optional operation). + *

If this decoder implements an auto-detecting charset then at a + * single point during a decoding operation this method may start returning + * true to indicate that a specific charset has been detected in + * the input byte sequence. Once this occurs, the {@link #detectedCharset + * detectedCharset} method may be invoked to retrieve the detected charset. + *

That this method returns false does not imply that no bytes + * have yet been decoded. Some auto-detecting decoders are capable of + * decoding some, or even all, of an input byte sequence without fixing on + * a particular charset. + *

The default implementation of this method always throws an {@link + * UnsupportedOperationException}; it should be overridden by + * auto-detecting decoders to return true once the input charset + * has been determined.

+ */ + // @ts-ignore + public isCharsetDetected(): boolean; + /** + * Retrieves the charset that was detected by this + * decoder  (optional operation). + *

If this decoder implements an auto-detecting charset then this + * method returns the actual charset once it has been detected. After that + * point, this method returns the same value for the duration of the + * current decoding operation. If not enough input bytes have yet been + * read to determine the actual charset then this method throws an {@link + * IllegalStateException}. + *

The default implementation of this method always throws an {@link + * UnsupportedOperationException}; it should be overridden by + * auto-detecting decoders to return the appropriate value.

+ */ + // @ts-ignore + public detectedCharset(): java.nio.charset.Charset; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.charset.CharsetEncoder.d.ts b/packages/types/dist/typings/jdk/java.nio.charset.CharsetEncoder.d.ts new file mode 100644 index 00000000..c7d6aedf --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.charset.CharsetEncoder.d.ts @@ -0,0 +1,290 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace charset { + // @ts-ignore + abstract class CharsetEncoder extends java.lang.Object { + /** + * Initializes a new encoder. The new encoder will have the given + * bytes-per-char and replacement values. + */ + // @ts-ignore + constructor(cs: java.nio.charset.Charset, averageBytesPerChar: number, maxBytesPerChar: number, replacement: number) + /** + * Initializes a new encoder. The new encoder will have the given + * bytes-per-char values and its replacement will be the + * byte array { (byte)'?' }. + */ + // @ts-ignore + constructor(cs: java.nio.charset.Charset, averageBytesPerChar: number, maxBytesPerChar: number) + /** + * Returns the charset that created this encoder. + */ + // @ts-ignore + public charset(): java.nio.charset.Charset; + /** + * Returns this encoder's replacement value. + */ + // @ts-ignore + public replacement(): number[]; + /** + * Changes this encoder's replacement value. + *

This method invokes the {@link #implReplaceWith implReplaceWith} + * method, passing the new replacement, after checking that the new + * replacement is acceptable.

+ */ + // @ts-ignore + public replaceWith(newReplacement: number): java.nio.charset.CharsetEncoder; + /** + * Reports a change to this encoder's replacement value. + *

The default implementation of this method does nothing. This method + * should be overridden by encoders that require notification of changes to + * the replacement.

+ */ + // @ts-ignore + protected implReplaceWith(newReplacement: number): void; + /** + * Tells whether or not the given byte array is a legal replacement value + * for this encoder. + *

A replacement is legal if, and only if, it is a legal sequence of + * bytes in this encoder's charset; that is, it must be possible to decode + * the replacement into one or more sixteen-bit Unicode characters. + *

The default implementation of this method is not very efficient; it + * should generally be overridden to improve performance.

+ */ + // @ts-ignore + public isLegalReplacement(repl: number): boolean; + /** + * Returns this encoder's current action for malformed-input errors. + */ + // @ts-ignore + public malformedInputAction(): java.nio.charset.CodingErrorAction; + /** + * Changes this encoder's action for malformed-input errors. + *

This method invokes the {@link #implOnMalformedInput + * implOnMalformedInput} method, passing the new action.

+ */ + // @ts-ignore + public onMalformedInput(newAction: java.nio.charset.CodingErrorAction): java.nio.charset.CharsetEncoder; + /** + * Reports a change to this encoder's malformed-input action. + *

The default implementation of this method does nothing. This method + * should be overridden by encoders that require notification of changes to + * the malformed-input action.

+ */ + // @ts-ignore + protected implOnMalformedInput(newAction: java.nio.charset.CodingErrorAction): void; + /** + * Returns this encoder's current action for unmappable-character errors. + */ + // @ts-ignore + public unmappableCharacterAction(): java.nio.charset.CodingErrorAction; + /** + * Changes this encoder's action for unmappable-character errors. + *

This method invokes the {@link #implOnUnmappableCharacter + * implOnUnmappableCharacter} method, passing the new action.

+ */ + // @ts-ignore + public onUnmappableCharacter(newAction: java.nio.charset.CodingErrorAction): java.nio.charset.CharsetEncoder; + /** + * Reports a change to this encoder's unmappable-character action. + *

The default implementation of this method does nothing. This method + * should be overridden by encoders that require notification of changes to + * the unmappable-character action.

+ */ + // @ts-ignore + protected implOnUnmappableCharacter(newAction: java.nio.charset.CodingErrorAction): void; + /** + * Returns the average number of bytes that will be produced for each + * character of input. This heuristic value may be used to estimate the size + * of the output buffer required for a given input sequence. + */ + // @ts-ignore + public averageBytesPerChar(): number; + /** + * Returns the maximum number of bytes that will be produced for each + * character of input. This value may be used to compute the worst-case size + * of the output buffer required for a given input sequence. + */ + // @ts-ignore + public maxBytesPerChar(): number; + /** + * Encodes as many characters as possible from the given input buffer, + * writing the results to the given output buffer. + *

The buffers are read from, and written to, starting at their current + * positions. At most {@link Buffer#remaining in.remaining()} characters + * will be read and at most {@link Buffer#remaining out.remaining()} + * bytes will be written. The buffers' positions will be advanced to + * reflect the characters read and the bytes written, but their marks and + * limits will not be modified. + *

In addition to reading characters from the input buffer and writing + * bytes to the output buffer, this method returns a {@link CoderResult} + * object to describe its reason for termination: + *

    + *
  • {@link CoderResult#UNDERFLOW} indicates that as much of the + * input buffer as possible has been encoded. If there is no further + * input then the invoker can proceed to the next step of the + * encoding operation. Otherwise this method + * should be invoked again with further input.

  • + *
  • {@link CoderResult#OVERFLOW} indicates that there is + * insufficient space in the output buffer to encode any more characters. + * This method should be invoked again with an output buffer that has + * more {@linkplain Buffer#remaining remaining} bytes. This is + * typically done by draining any encoded bytes from the output + * buffer.

  • + *
  • A {@linkplain CoderResult#malformedForLength + * malformed-input} result indicates that a malformed-input + * error has been detected. The malformed characters begin at the input + * buffer's (possibly incremented) position; the number of malformed + * characters may be determined by invoking the result object's {@link + * CoderResult#length() length} method. This case applies only if the + * {@linkplain #onMalformedInput malformed action} of this encoder + * is {@link CodingErrorAction#REPORT}; otherwise the malformed input + * will be ignored or replaced, as requested.

  • + *
  • An {@linkplain CoderResult#unmappableForLength + * unmappable-character} result indicates that an + * unmappable-character error has been detected. The characters that + * encode the unmappable character begin at the input buffer's (possibly + * incremented) position; the number of such characters may be determined + * by invoking the result object's {@link CoderResult#length() length} + * method. This case applies only if the {@linkplain #onUnmappableCharacter + * unmappable action} of this encoder is {@link + * CodingErrorAction#REPORT}; otherwise the unmappable character will be + * ignored or replaced, as requested.

  • + *
+ * In any case, if this method is to be reinvoked in the same encoding + * operation then care should be taken to preserve any characters remaining + * in the input buffer so that they are available to the next invocation. + *

The endOfInput parameter advises this method as to whether + * the invoker can provide further input beyond that contained in the given + * input buffer. If there is a possibility of providing additional input + * then the invoker should pass false for this parameter; if there + * is no possibility of providing further input then the invoker should + * pass true. It is not erroneous, and in fact it is quite + * common, to pass false in one invocation and later discover that + * no further input was actually available. It is critical, however, that + * the final invocation of this method in a sequence of invocations always + * pass true so that any remaining unencoded input will be treated + * as being malformed. + *

This method works by invoking the {@link #encodeLoop encodeLoop} + * method, interpreting its results, handling error conditions, and + * reinvoking it as necessary.

+ */ + // @ts-ignore + public encode(input: java.nio.CharBuffer, out: java.nio.ByteBuffer, endOfInput: boolean): java.nio.charset.CoderResult; + /** + * Flushes this encoder. + *

Some encoders maintain internal state and may need to write some + * final bytes to the output buffer once the overall input sequence has + * been read. + *

Any additional output is written to the output buffer beginning at + * its current position. At most {@link Buffer#remaining out.remaining()} + * bytes will be written. The buffer's position will be advanced + * appropriately, but its mark and limit will not be modified. + *

If this method completes successfully then it returns {@link + * CoderResult#UNDERFLOW}. If there is insufficient room in the output + * buffer then it returns {@link CoderResult#OVERFLOW}. If this happens + * then this method must be invoked again, with an output buffer that has + * more room, in order to complete the current encoding + * operation. + *

If this encoder has already been flushed then invoking this method + * has no effect. + *

This method invokes the {@link #implFlush implFlush} method to + * perform the actual flushing operation.

+ */ + // @ts-ignore + public flush(out: java.nio.ByteBuffer): java.nio.charset.CoderResult; + /** + * Flushes this encoder. + *

The default implementation of this method does nothing, and always + * returns {@link CoderResult#UNDERFLOW}. This method should be overridden + * by encoders that may need to write final bytes to the output buffer + * once the entire input sequence has been read.

+ */ + // @ts-ignore + protected implFlush(out: java.nio.ByteBuffer): java.nio.charset.CoderResult; + /** + * Resets this encoder, clearing any internal state. + *

This method resets charset-independent state and also invokes the + * {@link #implReset() implReset} method in order to perform any + * charset-specific reset actions.

+ */ + // @ts-ignore + public reset(): java.nio.charset.CharsetEncoder; + /** + * Resets this encoder, clearing any charset-specific internal state. + *

The default implementation of this method does nothing. This method + * should be overridden by encoders that maintain internal state.

+ */ + // @ts-ignore + protected implReset(): void; + /** + * Encodes one or more characters into one or more bytes. + *

This method encapsulates the basic encoding loop, encoding as many + * characters as possible until it either runs out of input, runs out of room + * in the output buffer, or encounters an encoding error. This method is + * invoked by the {@link #encode encode} method, which handles result + * interpretation and error recovery. + *

The buffers are read from, and written to, starting at their current + * positions. At most {@link Buffer#remaining in.remaining()} characters + * will be read, and at most {@link Buffer#remaining out.remaining()} + * bytes will be written. The buffers' positions will be advanced to + * reflect the characters read and the bytes written, but their marks and + * limits will not be modified. + *

This method returns a {@link CoderResult} object to describe its + * reason for termination, in the same manner as the {@link #encode encode} + * method. Most implementations of this method will handle encoding errors + * by returning an appropriate result object for interpretation by the + * {@link #encode encode} method. An optimized implementation may instead + * examine the relevant error action and implement that action itself. + *

An implementation of this method may perform arbitrary lookahead by + * returning {@link CoderResult#UNDERFLOW} until it receives sufficient + * input.

+ */ + // @ts-ignore + protected abstract encodeLoop(input: java.nio.CharBuffer, out: java.nio.ByteBuffer): java.nio.charset.CoderResult; + /** + * Convenience method that encodes the remaining content of a single input + * character buffer into a newly-allocated byte buffer. + *

This method implements an entire encoding + * operation; that is, it resets this encoder, then it encodes the + * characters in the given character buffer, and finally it flushes this + * encoder. This method should therefore not be invoked if an encoding + * operation is already in progress.

+ */ + // @ts-ignore + public encode(input: java.nio.CharBuffer): java.nio.ByteBuffer; + /** + * Tells whether or not this encoder can encode the given character. + *

This method returns false if the given character is a + * surrogate character; such characters can be interpreted only when they + * are members of a pair consisting of a high surrogate followed by a low + * surrogate. The {@link #canEncode(java.lang.CharSequence) + * canEncode(CharSequence)} method may be used to test whether or not a + * character sequence can be encoded. + *

This method may modify this encoder's state; it should therefore not + * be invoked if an encoding operation is already in + * progress. + *

The default implementation of this method is not very efficient; it + * should generally be overridden to improve performance.

+ */ + // @ts-ignore + public canEncode(c: string): boolean; + /** + * Tells whether or not this encoder can encode the given character + * sequence. + *

If this method returns false for a particular character + * sequence then more information about why the sequence cannot be encoded + * may be obtained by performing a full encoding + * operation. + *

This method may modify this encoder's state; it should therefore not + * be invoked if an encoding operation is already in progress. + *

The default implementation of this method is not very efficient; it + * should generally be overridden to improve performance.

+ */ + // @ts-ignore + public canEncode(cs: java.lang.CharSequence): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.charset.CoderMalfunctionError.d.ts b/packages/types/dist/typings/jdk/java.nio.charset.CoderMalfunctionError.d.ts new file mode 100644 index 00000000..ee5b7319 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.charset.CoderMalfunctionError.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace charset { + // @ts-ignore + class CoderMalfunctionError extends java.lang.Error { + /** + * Initializes an instance of this class. + */ + // @ts-ignore + constructor(cause: java.lang.Exception) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.charset.CoderResult.d.ts b/packages/types/dist/typings/jdk/java.nio.charset.CoderResult.d.ts new file mode 100644 index 00000000..05178b44 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.charset.CoderResult.d.ts @@ -0,0 +1,68 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace charset { + // @ts-ignore + class CoderResult extends java.lang.Object { + // @ts-ignore + public static UNDERFLOW: java.nio.charset.CoderResult; + // @ts-ignore + public static OVERFLOW: java.nio.charset.CoderResult; + /** + * Returns a string describing this coder result. + */ + // @ts-ignore + public toString(): string; + /** + * Tells whether or not this object describes an underflow condition. + */ + // @ts-ignore + public isUnderflow(): boolean; + /** + * Tells whether or not this object describes an overflow condition. + */ + // @ts-ignore + public isOverflow(): boolean; + /** + * Tells whether or not this object describes an error condition. + */ + // @ts-ignore + public isError(): boolean; + /** + * Tells whether or not this object describes a malformed-input error. + */ + // @ts-ignore + public isMalformed(): boolean; + /** + * Tells whether or not this object describes an unmappable-character + * error. + */ + // @ts-ignore + public isUnmappable(): boolean; + /** + * Returns the length of the erroneous input described by this + * object  (optional operation). + */ + // @ts-ignore + public length(): number; + /** + * Static factory method that returns the unique object describing a + * malformed-input error of the given length. + */ + // @ts-ignore + public static malformedForLength(length: number): java.nio.charset.CoderResult; + /** + * Static factory method that returns the unique result object describing + * an unmappable-character error of the given length. + */ + // @ts-ignore + public static unmappableForLength(length: number): java.nio.charset.CoderResult; + /** + * Throws an exception appropriate to the result described by this object. + */ + // @ts-ignore + public throwException(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.charset.CodingErrorAction.d.ts b/packages/types/dist/typings/jdk/java.nio.charset.CodingErrorAction.d.ts new file mode 100644 index 00000000..38f6ffa8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.charset.CodingErrorAction.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace charset { + // @ts-ignore + class CodingErrorAction extends java.lang.Object { + // @ts-ignore + public static IGNORE: java.nio.charset.CodingErrorAction; + // @ts-ignore + public static REPLACE: java.nio.charset.CodingErrorAction; + // @ts-ignore + public static REPORT: java.nio.charset.CodingErrorAction; + /** + * Returns a string describing this action. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.charset.IllegalCharsetNameException.d.ts b/packages/types/dist/typings/jdk/java.nio.charset.IllegalCharsetNameException.d.ts new file mode 100644 index 00000000..e29525eb --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.charset.IllegalCharsetNameException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace charset { + // @ts-ignore + class IllegalCharsetNameException extends java.lang.IllegalArgumentException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor(charsetName: string) + /** + * Retrieves the illegal charset name. + */ + // @ts-ignore + public getCharsetName(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.charset.MalformedInputException.d.ts b/packages/types/dist/typings/jdk/java.nio.charset.MalformedInputException.d.ts new file mode 100644 index 00000000..e4790dfb --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.charset.MalformedInputException.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace charset { + // @ts-ignore + class MalformedInputException extends java.nio.charset.CharacterCodingException { + /** + * Constructs an {@code MalformedInputException} with the given + * length. + */ + // @ts-ignore + constructor(inputLength: number) + /** + * Returns the length of the input. + */ + // @ts-ignore + public getInputLength(): number; + /** + * Returns the message. + */ + // @ts-ignore + public getMessage(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.charset.StandardCharsets.d.ts b/packages/types/dist/typings/jdk/java.nio.charset.StandardCharsets.d.ts new file mode 100644 index 00000000..15a3a5fd --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.charset.StandardCharsets.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace charset { + // @ts-ignore + class StandardCharsets extends java.lang.Object { + // @ts-ignore + public static US_ASCII: java.nio.charset.Charset; + // @ts-ignore + public static ISO_8859_1: java.nio.charset.Charset; + // @ts-ignore + public static UTF_8: java.nio.charset.Charset; + // @ts-ignore + public static UTF_16BE: java.nio.charset.Charset; + // @ts-ignore + public static UTF_16LE: java.nio.charset.Charset; + // @ts-ignore + public static UTF_16: java.nio.charset.Charset; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.charset.UnmappableCharacterException.d.ts b/packages/types/dist/typings/jdk/java.nio.charset.UnmappableCharacterException.d.ts new file mode 100644 index 00000000..599a80a0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.charset.UnmappableCharacterException.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace charset { + // @ts-ignore + class UnmappableCharacterException extends java.nio.charset.CharacterCodingException { + /** + * Constructs an {@code UnmappableCharacterException} with the + * given length. + */ + // @ts-ignore + constructor(inputLength: number) + /** + * Returns the length of the input. + */ + // @ts-ignore + public getInputLength(): number; + /** + * Returns the message. + */ + // @ts-ignore + public getMessage(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.charset.UnsupportedCharsetException.d.ts b/packages/types/dist/typings/jdk/java.nio.charset.UnsupportedCharsetException.d.ts new file mode 100644 index 00000000..7d6e9508 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.charset.UnsupportedCharsetException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace charset { + // @ts-ignore + class UnsupportedCharsetException extends java.lang.IllegalArgumentException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor(charsetName: string) + /** + * Retrieves the name of the unsupported charset. + */ + // @ts-ignore + public getCharsetName(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.charset.spi.CharsetProvider.d.ts b/packages/types/dist/typings/jdk/java.nio.charset.spi.CharsetProvider.d.ts new file mode 100644 index 00000000..2ca07d81 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.charset.spi.CharsetProvider.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace charset { + namespace spi { + // @ts-ignore + abstract class CharsetProvider extends java.lang.Object { + /** + * Initializes a new charset provider. + */ + // @ts-ignore + constructor() + /** + * Creates an iterator that iterates over the charsets supported by this + * provider. This method is used in the implementation of the {@link + * java.nio.charset.Charset#availableCharsets Charset.availableCharsets} + * method. + */ + // @ts-ignore + public abstract charsets(): java.util.Iterator; + /** + * Retrieves a charset for the given charset name. + */ + // @ts-ignore + public abstract charsetForName(charsetName: string): java.nio.charset.Charset; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.AccessDeniedException.d.ts b/packages/types/dist/typings/jdk/java.nio.file.AccessDeniedException.d.ts new file mode 100644 index 00000000..775c6004 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.AccessDeniedException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + class AccessDeniedException extends java.nio.file.FileSystemException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor(file: string) + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor(file: string, other: string, reason: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.AccessMode.d.ts b/packages/types/dist/typings/jdk/java.nio.file.AccessMode.d.ts new file mode 100644 index 00000000..18dfaa19 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.AccessMode.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + class AccessMode extends java.lang.Enum { + // @ts-ignore + public static READ: java.nio.file.AccessMode; + // @ts-ignore + public static WRITE: java.nio.file.AccessMode; + // @ts-ignore + public static EXECUTE: java.nio.file.AccessMode; + // @ts-ignore + public static values(): java.nio.file.AccessMode[]; + // @ts-ignore + public static valueOf(name: string): java.nio.file.AccessMode; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.AtomicMoveNotSupportedException.d.ts b/packages/types/dist/typings/jdk/java.nio.file.AtomicMoveNotSupportedException.d.ts new file mode 100644 index 00000000..159d4d9b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.AtomicMoveNotSupportedException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + class AtomicMoveNotSupportedException extends java.nio.file.FileSystemException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor(source: string, target: string, reason: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.ClosedDirectoryStreamException.d.ts b/packages/types/dist/typings/jdk/java.nio.file.ClosedDirectoryStreamException.d.ts new file mode 100644 index 00000000..7001e89a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.ClosedDirectoryStreamException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + class ClosedDirectoryStreamException extends java.lang.IllegalStateException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.ClosedFileSystemException.d.ts b/packages/types/dist/typings/jdk/java.nio.file.ClosedFileSystemException.d.ts new file mode 100644 index 00000000..334ee519 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.ClosedFileSystemException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + class ClosedFileSystemException extends java.lang.IllegalStateException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.ClosedWatchServiceException.d.ts b/packages/types/dist/typings/jdk/java.nio.file.ClosedWatchServiceException.d.ts new file mode 100644 index 00000000..40f16f77 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.ClosedWatchServiceException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + class ClosedWatchServiceException extends java.lang.IllegalStateException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.CopyOption.d.ts b/packages/types/dist/typings/jdk/java.nio.file.CopyOption.d.ts new file mode 100644 index 00000000..27131802 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.CopyOption.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + interface CopyOption { + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.DirectoryIteratorException.d.ts b/packages/types/dist/typings/jdk/java.nio.file.DirectoryIteratorException.d.ts new file mode 100644 index 00000000..677a9c86 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.DirectoryIteratorException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + class DirectoryIteratorException extends java.util.ConcurrentModificationException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor(cause: java.io.IOException) + /** + * Returns the cause of this exception. + */ + // @ts-ignore + public getCause(): java.io.IOException; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.DirectoryNotEmptyException.d.ts b/packages/types/dist/typings/jdk/java.nio.file.DirectoryNotEmptyException.d.ts new file mode 100644 index 00000000..14b3d259 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.DirectoryNotEmptyException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + class DirectoryNotEmptyException extends java.nio.file.FileSystemException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor(dir: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.DirectoryStream.Filter.d.ts b/packages/types/dist/typings/jdk/java.nio.file.DirectoryStream.Filter.d.ts new file mode 100644 index 00000000..b8ccfedd --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.DirectoryStream.Filter.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + namespace DirectoryStream { + // @ts-ignore + interface Filter { + /** + * Decides if the given directory entry should be accepted or filtered. + */ + // @ts-ignore + accept(entry: java.lang.Object): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.DirectoryStream.d.ts b/packages/types/dist/typings/jdk/java.nio.file.DirectoryStream.d.ts new file mode 100644 index 00000000..75d817f1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.DirectoryStream.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + interface DirectoryStream { + /** + * Returns the iterator associated with this {@code DirectoryStream}. + */ + // @ts-ignore + iterator(): java.util.Iterator; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.FileAlreadyExistsException.d.ts b/packages/types/dist/typings/jdk/java.nio.file.FileAlreadyExistsException.d.ts new file mode 100644 index 00000000..cda5779d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.FileAlreadyExistsException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + class FileAlreadyExistsException extends java.nio.file.FileSystemException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor(file: string) + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor(file: string, other: string, reason: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.FileStore.d.ts b/packages/types/dist/typings/jdk/java.nio.file.FileStore.d.ts new file mode 100644 index 00000000..c57b15de --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.FileStore.d.ts @@ -0,0 +1,108 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + abstract class FileStore extends java.lang.Object { + /** + * Initializes a new instance of this class. + */ + // @ts-ignore + constructor() + /** + * Returns the name of this file store. The format of the name is highly + * implementation specific. It will typically be the name of the storage + * pool or volume. + *

The string returned by this method may differ from the string + * returned by the {@link Object#toString() toString} method. + */ + // @ts-ignore + public abstract name(): string; + /** + * Returns the type of this file store. The format of the string + * returned by this method is highly implementation specific. It may + * indicate, for example, the format used or if the file store is local + * or remote. + */ + // @ts-ignore + public abstract type(): string; + /** + * Tells whether this file store is read-only. A file store is read-only if + * it does not support write operations or other changes to files. Any + * attempt to create a file, open an existing file for writing etc. causes + * an {@code IOException} to be thrown. + */ + // @ts-ignore + public abstract isReadOnly(): boolean; + /** + * Returns the size, in bytes, of the file store. + */ + // @ts-ignore + public abstract getTotalSpace(): number; + /** + * Returns the number of bytes available to this Java virtual machine on the + * file store. + *

The returned number of available bytes is a hint, but not a + * guarantee, that it is possible to use most or any of these bytes. The + * number of usable bytes is most likely to be accurate immediately + * after the space attributes are obtained. It is likely to be made inaccurate + * by any external I/O operations including those made on the system outside + * of this Java virtual machine. + */ + // @ts-ignore + public abstract getUsableSpace(): number; + /** + * Returns the number of unallocated bytes in the file store. + *

The returned number of unallocated bytes is a hint, but not a + * guarantee, that it is possible to use most or any of these bytes. The + * number of unallocated bytes is most likely to be accurate immediately + * after the space attributes are obtained. It is likely to be + * made inaccurate by any external I/O operations including those made on + * the system outside of this virtual machine. + */ + // @ts-ignore + public abstract getUnallocatedSpace(): number; + /** + * Tells whether or not this file store supports the file attributes + * identified by the given file attribute view. + *

Invoking this method to test if the file store supports {@link + * BasicFileAttributeView} will always return {@code true}. In the case of + * the default provider, this method cannot guarantee to give the correct + * result when the file store is not a local storage device. The reasons for + * this are implementation specific and therefore unspecified. + */ + // @ts-ignore + public abstract supportsFileAttributeView(type: java.lang.Class): boolean; + /** + * Returns a {@code FileStoreAttributeView} of the given type. + *

This method is intended to be used where the file store attribute + * view defines type-safe methods to read or update the file store attributes. + * The {@code type} parameter is the type of the attribute view required and + * the method returns an instance of that type if supported. + */ + // @ts-ignore + public abstract getFileStoreAttributeView(type: java.lang.Class): java.nio.file.attribute.FileStoreAttributeView; + /** + * Reads the value of a file store attribute. + *

The {@code attribute} parameter identifies the attribute to be read + * and takes the form: + *

+ * view-name:attribute-name + *
+ * where the character {@code ':'} stands for itself. + *

view-name is the {@link FileStoreAttributeView#name name} of + * a {@link FileStore AttributeView} that identifies a set of file attributes. + * attribute-name is the name of the attribute. + *

Usage Example: + * Suppose we want to know if ZFS compression is enabled (assuming the "zfs" + * view is supported): + *

+                 * boolean compression = (Boolean)fs.getAttribute("zfs:compression");
+                 * 
+ */ + // @ts-ignore + public abstract getAttribute(attribute: string): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.FileSystem.d.ts b/packages/types/dist/typings/jdk/java.nio.file.FileSystem.d.ts new file mode 100644 index 00000000..b00050df --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.FileSystem.d.ts @@ -0,0 +1,282 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + abstract class FileSystem extends java.lang.Object { + /** + * Initializes a new instance of this class. + */ + // @ts-ignore + constructor() + /** + * Returns the provider that created this file system. + */ + // @ts-ignore + public abstract provider(): java.nio.file.spi.FileSystemProvider; + /** + * Closes this file system. + *

After a file system is closed then all subsequent access to the file + * system, either by methods defined by this class or on objects associated + * with this file system, throw {@link ClosedFileSystemException}. If the + * file system is already closed then invoking this method has no effect. + *

Closing a file system will close all open {@link + * java.nio.channels.Channel channels}, {@link DirectoryStream directory-streams}, + * {@link WatchService watch-service}, and other closeable objects associated + * with this file system. The {@link FileSystems#getDefault default} file + * system cannot be closed. + */ + // @ts-ignore + public abstract close(): void; + /** + * Tells whether or not this file system is open. + *

File systems created by the default provider are always open. + */ + // @ts-ignore + public abstract isOpen(): boolean; + /** + * Tells whether or not this file system allows only read-only access to + * its file stores. + */ + // @ts-ignore + public abstract isReadOnly(): boolean; + /** + * Returns the name separator, represented as a string. + *

The name separator is used to separate names in a path string. An + * implementation may support multiple name separators in which case this + * method returns an implementation specific default name separator. + * This separator is used when creating path strings by invoking the {@link + * Path#toString() toString()} method. + *

In the case of the default provider, this method returns the same + * separator as {@link java.io.File#separator}. + */ + // @ts-ignore + public abstract getSeparator(): string; + /** + * Returns an object to iterate over the paths of the root directories. + *

A file system provides access to a file store that may be composed + * of a number of distinct file hierarchies, each with its own top-level + * root directory. Unless denied by the security manager, each element in + * the returned iterator corresponds to the root directory of a distinct + * file hierarchy. The order of the elements is not defined. The file + * hierarchies may change during the lifetime of the Java virtual machine. + * For example, in some implementations, the insertion of removable media + * may result in the creation of a new file hierarchy with its own + * top-level directory. + *

When a security manager is installed, it is invoked to check access + * to the each root directory. If denied, the root directory is not returned + * by the iterator. In the case of the default provider, the {@link + * SecurityManager#checkRead(String)} method is invoked to check read access + * to each root directory. It is system dependent if the permission checks + * are done when the iterator is obtained or during iteration. + */ + // @ts-ignore + public abstract getRootDirectories(): java.lang.Iterable; + /** + * Returns an object to iterate over the underlying file stores. + *

The elements of the returned iterator are the {@link + * FileStore FileStores} for this file system. The order of the elements is + * not defined and the file stores may change during the lifetime of the + * Java virtual machine. When an I/O error occurs, perhaps because a file + * store is not accessible, then it is not returned by the iterator. + *

In the case of the default provider, and a security manager is + * installed, the security manager is invoked to check {@link + * RuntimePermission}("getFileStoreAttributes"). If denied, then + * no file stores are returned by the iterator. In addition, the security + * manager's {@link SecurityManager#checkRead(String)} method is invoked to + * check read access to the file store's top-most directory. If + * denied, the file store is not returned by the iterator. It is system + * dependent if the permission checks are done when the iterator is obtained + * or during iteration. + *

Usage Example: + * Suppose we want to print the space usage for all file stores: + *

+                 * for (FileStore store: FileSystems.getDefault().getFileStores()) {
+                 * long total = store.getTotalSpace() / 1024;
+                 * long used = (store.getTotalSpace() - store.getUnallocatedSpace()) / 1024;
+                 * long avail = store.getUsableSpace() / 1024;
+                 * System.out.format("%-20s %12d %12d %12d%n", store, total, used, avail);
+                 * }
+                 * 
+ */ + // @ts-ignore + public abstract getFileStores(): java.lang.Iterable; + /** + * Returns the set of the {@link FileAttributeView#name names} of the file + * attribute views supported by this {@code FileSystem}. + *

The {@link BasicFileAttributeView} is required to be supported and + * therefore the set contains at least one element, "basic". + *

The {@link FileStore#supportsFileAttributeView(String) + * supportsFileAttributeView(String)} method may be used to test if an + * underlying {@link FileStore} supports the file attributes identified by a + * file attribute view. + */ + // @ts-ignore + public abstract supportedFileAttributeViews(): java.util.Set; + /** + * Converts a path string, or a sequence of strings that when joined form + * a path string, to a {@code Path}. If {@code more} does not specify any + * elements then the value of the {@code first} parameter is the path string + * to convert. If {@code more} specifies one or more elements then each + * non-empty string, including {@code first}, is considered to be a sequence + * of name elements (see {@link Path}) and is joined to form a path string. + * The details as to how the Strings are joined is provider specific but + * typically they will be joined using the {@link #getSeparator + * name-separator} as the separator. For example, if the name separator is + * "{@code /}" and {@code getPath("/foo","bar","gus")} is invoked, then the + * path string {@code "/foo/bar/gus"} is converted to a {@code Path}. + * A {@code Path} representing an empty path is returned if {@code first} + * is the empty string and {@code more} does not contain any non-empty + * strings. + *

The parsing and conversion to a path object is inherently + * implementation dependent. In the simplest case, the path string is rejected, + * and {@link InvalidPathException} thrown, if the path string contains + * characters that cannot be converted to characters that are legal + * to the file store. For example, on UNIX systems, the NUL (\u0000) + * character is not allowed to be present in a path. An implementation may + * choose to reject path strings that contain names that are longer than those + * allowed by any file store, and where an implementation supports a complex + * path syntax, it may choose to reject path strings that are badly + * formed. + *

In the case of the default provider, path strings are parsed based + * on the definition of paths at the platform or virtual file system level. + * For example, an operating system may not allow specific characters to be + * present in a file name, but a specific underlying file store may impose + * different or additional restrictions on the set of legal + * characters. + *

This method throws {@link InvalidPathException} when the path string + * cannot be converted to a path. Where possible, and where applicable, + * the exception is created with an {@link InvalidPathException#getIndex + * index} value indicating the first position in the {@code path} parameter + * that caused the path string to be rejected. + */ + // @ts-ignore + public abstract getPath(first: string, more: string): java.nio.file.Path; + /** + * Returns a {@code PathMatcher} that performs match operations on the + * {@code String} representation of {@link Path} objects by interpreting a + * given pattern. + * The {@code syntaxAndPattern} parameter identifies the syntax and the + * pattern and takes the form: + *

+                 * syntax:pattern
+                 * 
+ * where {@code ':'} stands for itself. + *

A {@code FileSystem} implementation supports the "{@code glob}" and + * "{@code regex}" syntaxes, and may support others. The value of the syntax + * component is compared without regard to case. + *

When the syntax is "{@code glob}" then the {@code String} + * representation of the path is matched using a limited pattern language + * that resembles regular expressions but with a simpler syntax. For example: + *

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
{@code *.java}Matches a path that represents a file name ending in {@code .java}
{@code *.*}Matches file names containing a dot
{@code *.{java,class}}Matches file names ending with {@code .java} or {@code .class}
{@code foo.?}Matches file names starting with {@code foo.} and a single + * character extension
/home/*/* + * Matches /home/gus/data on UNIX platforms
/home/** + * Matches /home/gus and + * /home/gus/data on UNIX platforms
C:\\* + * Matches C:\foo and C:\bar on the Windows + * platform (note that the backslash is escaped; as a string literal in the + * Java Language the pattern would be "C:\\\\*")
+ *
+ *

The following rules are used to interpret glob patterns: + *

    + *
  • The {@code *} character matches zero or more {@link Character + * characters} of a {@link Path#getName(int) name} component without + * crossing directory boundaries.

  • + *
  • The {@code **} characters matches zero or more {@link Character + * characters} crossing directory boundaries.

  • + *
  • The {@code ?} character matches exactly one character of a + * name component.

  • + *
  • The backslash character ({@code \}) is used to escape characters + * that would otherwise be interpreted as special characters. The expression + * {@code \\} matches a single backslash and "\{" matches a left brace + * for example.

  • + *
  • The {@code [ ]} characters are a bracket expression that + * match a single character of a name component out of a set of characters. + * For example, {@code [abc]} matches {@code "a"}, {@code "b"}, or {@code "c"}. + * The hyphen ({@code -}) may be used to specify a range so {@code [a-z]} + * specifies a range that matches from {@code "a"} to {@code "z"} (inclusive). + * These forms can be mixed so [abce-g] matches {@code "a"}, {@code "b"}, + * {@code "c"}, {@code "e"}, {@code "f"} or {@code "g"}. If the character + * after the {@code [} is a {@code !} then it is used for negation so {@code + * [!a-c]} matches any character except {@code "a"}, {@code "b"}, or {@code + * "c"}. + *

    Within a bracket expression the {@code *}, {@code ?} and {@code \} + * characters match themselves. The ({@code -}) character matches itself if + * it is the first character within the brackets, or the first character + * after the {@code !} if negating.

  • + *
  • The {@code { }} characters are a group of subpatterns, where + * the group matches if any subpattern in the group matches. The {@code ","} + * character is used to separate the subpatterns. Groups cannot be nested. + *

  • + *
  • Leading period/dot characters in file name are + * treated as regular characters in match operations. For example, + * the {@code "*"} glob pattern matches file name {@code ".login"}. + * The {@link Files#isHidden} method may be used to test whether a file + * is considered hidden. + *

  • + *
  • All other characters match themselves in an implementation + * dependent manner. This includes characters representing any {@link + * FileSystem#getSeparator name-separators}.

  • + *
  • The matching of {@link Path#getRoot root} components is highly + * implementation-dependent and is not specified.

  • + *
+ *

When the syntax is "{@code regex}" then the pattern component is a + * regular expression as defined by the {@link java.util.regex.Pattern} + * class. + *

For both the glob and regex syntaxes, the matching details, such as + * whether the matching is case sensitive, are implementation-dependent + * and therefore not specified. + */ + // @ts-ignore + public abstract getPathMatcher(syntaxAndPattern: string): java.nio.file.PathMatcher; + /** + * Returns the {@code UserPrincipalLookupService} for this file system + * (optional operation). The resulting lookup service may be used to + * lookup user or group names. + *

Usage Example: + * Suppose we want to make "joe" the owner of a file: + *

+                 * UserPrincipalLookupService lookupService = FileSystems.getDefault().getUserPrincipalLookupService();
+                 * Files.setOwner(path, lookupService.lookupPrincipalByName("joe"));
+                 * 
+ */ + // @ts-ignore + public abstract getUserPrincipalLookupService(): java.nio.file.attribute.UserPrincipalLookupService; + /** + * Constructs a new {@link WatchService} (optional operation). + *

This method constructs a new watch service that may be used to watch + * registered objects for changes and events. + */ + // @ts-ignore + public abstract newWatchService(): java.nio.file.WatchService; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.FileSystemAlreadyExistsException.d.ts b/packages/types/dist/typings/jdk/java.nio.file.FileSystemAlreadyExistsException.d.ts new file mode 100644 index 00000000..f615b718 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.FileSystemAlreadyExistsException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + class FileSystemAlreadyExistsException extends java.lang.RuntimeException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor(msg: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.FileSystemException.d.ts b/packages/types/dist/typings/jdk/java.nio.file.FileSystemException.d.ts new file mode 100644 index 00000000..f11f3e8b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.FileSystemException.d.ts @@ -0,0 +1,44 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + class FileSystemException extends java.io.IOException { + /** + * Constructs an instance of this class. This constructor should be used + * when an operation involving one file fails and there isn't any additional + * information to explain the reason. + */ + // @ts-ignore + constructor(file: string) + /** + * Constructs an instance of this class. This constructor should be used + * when an operation involving two files fails, or there is additional + * information to explain the reason. + */ + // @ts-ignore + constructor(file: string, other: string, reason: string) + /** + * Returns the file used to create this exception. + */ + // @ts-ignore + public getFile(): string; + /** + * Returns the other file used to create this exception. + */ + // @ts-ignore + public getOtherFile(): string; + /** + * Returns the string explaining why the file system operation failed. + */ + // @ts-ignore + public getReason(): string; + /** + * Returns the detail message string. + */ + // @ts-ignore + public getMessage(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.FileSystemLoopException.d.ts b/packages/types/dist/typings/jdk/java.nio.file.FileSystemLoopException.d.ts new file mode 100644 index 00000000..e500cab3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.FileSystemLoopException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + class FileSystemLoopException extends java.nio.file.FileSystemException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor(file: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.FileSystemNotFoundException.d.ts b/packages/types/dist/typings/jdk/java.nio.file.FileSystemNotFoundException.d.ts new file mode 100644 index 00000000..3f4fe21a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.FileSystemNotFoundException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + class FileSystemNotFoundException extends java.lang.RuntimeException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor(msg: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.FileSystems.d.ts b/packages/types/dist/typings/jdk/java.nio.file.FileSystems.d.ts new file mode 100644 index 00000000..5a1e168e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.FileSystems.d.ts @@ -0,0 +1,121 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + class FileSystems extends java.lang.Object { + /** + * Returns the default {@code FileSystem}. The default file system creates + * objects that provide access to the file systems accessible to the Java + * virtual machine. The working directory of the file system is + * the current user directory, named by the system property {@code user.dir}. + * This allows for interoperability with the {@link java.io.File java.io.File} + * class. + *

The first invocation of any of the methods defined by this class + * locates the default {@link FileSystemProvider provider} object. Where the + * system property {@code java.nio.file.spi.DefaultFileSystemProvider} is + * not defined then the default provider is a system-default provider that + * is invoked to create the default file system. + *

If the system property {@code java.nio.file.spi.DefaultFileSystemProvider} + * is defined then it is taken to be a list of one or more fully-qualified + * names of concrete provider classes identified by the URI scheme + * {@code "file"}. Where the property is a list of more than one name then + * the names are separated by a comma. Each class is loaded, using the system + * class loader, and instantiated by invoking a one argument constructor + * whose formal parameter type is {@code FileSystemProvider}. The providers + * are loaded and instantiated in the order they are listed in the property. + * If this process fails or a provider's scheme is not equal to {@code "file"} + * then an unspecified error is thrown. URI schemes are normally compared + * without regard to case but for the default provider, the scheme is + * required to be {@code "file"}. The first provider class is instantiated + * by invoking it with a reference to the system-default provider. + * The second provider class is instantiated by invoking it with a reference + * to the first provider instance. The third provider class is instantiated + * by invoking it with a reference to the second instance, and so on. The + * last provider to be instantiated becomes the default provider; its {@code + * getFileSystem} method is invoked with the URI {@code "file:///"} to + * get a reference to the default file system. + *

Subsequent invocations of this method return the file system that was + * returned by the first invocation. + */ + // @ts-ignore + public static getDefault(): java.nio.file.FileSystem; + /** + * Returns a reference to an existing {@code FileSystem}. + *

This method iterates over the {@link FileSystemProvider#installedProviders() + * installed} providers to locate the provider that is identified by the URI + * {@link URI#getScheme scheme} of the given URI. URI schemes are compared + * without regard to case. The exact form of the URI is highly provider + * dependent. If found, the provider's {@link FileSystemProvider#getFileSystem + * getFileSystem} method is invoked to obtain a reference to the {@code + * FileSystem}. + *

Once a file system created by this provider is {@link FileSystem#close + * closed} it is provider-dependent if this method returns a reference to + * the closed file system or throws {@link FileSystemNotFoundException}. + * If the provider allows a new file system to be created with the same URI + * as a file system it previously created then this method throws the + * exception if invoked after the file system is closed (and before a new + * instance is created by the {@link #newFileSystem newFileSystem} method). + *

If a security manager is installed then a provider implementation + * may require to check a permission before returning a reference to an + * existing file system. In the case of the {@link FileSystems#getDefault + * default} file system, no permission check is required. + */ + // @ts-ignore + public static getFileSystem(uri: java.net.URI): java.nio.file.FileSystem; + /** + * Constructs a new file system that is identified by a {@link URI} + *

This method iterates over the {@link FileSystemProvider#installedProviders() + * installed} providers to locate the provider that is identified by the URI + * {@link URI#getScheme scheme} of the given URI. URI schemes are compared + * without regard to case. The exact form of the URI is highly provider + * dependent. If found, the provider's {@link FileSystemProvider#newFileSystem(URI,Map) + * newFileSystem(URI,Map)} method is invoked to construct the new file system. + *

Once a file system is {@link FileSystem#close closed} it is + * provider-dependent if the provider allows a new file system to be created + * with the same URI as a file system it previously created. + *

Usage Example: + * Suppose there is a provider identified by the scheme {@code "memory"} + * installed: + *

+                 * Map<String,String> env = new HashMap<>();
+                 * env.put("capacity", "16G");
+                 * env.put("blockSize", "4k");
+                 * FileSystem fs = FileSystems.newFileSystem(URI.create("memory:///?name=logfs"), env);
+                 * 
+ */ + // @ts-ignore + public static newFileSystem(uri: java.net.URI, env: java.util.Map): java.nio.file.FileSystem; + /** + * Constructs a new file system that is identified by a {@link URI} + *

This method first attempts to locate an installed provider in exactly + * the same manner as the {@link #newFileSystem(URI,Map) newFileSystem(URI,Map)} + * method. If none of the installed providers support the URI scheme then an + * attempt is made to locate the provider using the given class loader. If a + * provider supporting the URI scheme is located then its {@link + * FileSystemProvider#newFileSystem(URI,Map) newFileSystem(URI,Map)} is + * invoked to construct the new file system. + */ + // @ts-ignore + public static newFileSystem(uri: java.net.URI, env: java.util.Map, loader: java.lang.ClassLoader): java.nio.file.FileSystem; + /** + * Constructs a new {@code FileSystem} to access the contents of a file as a + * file system. + *

This method makes use of specialized providers that create pseudo file + * systems where the contents of one or more files is treated as a file + * system. + *

This method iterates over the {@link FileSystemProvider#installedProviders() + * installed} providers. It invokes, in turn, each provider's {@link + * FileSystemProvider#newFileSystem(Path,Map) newFileSystem(Path,Map)} method + * with an empty map. If a provider returns a file system then the iteration + * terminates and the file system is returned. If none of the installed + * providers return a {@code FileSystem} then an attempt is made to locate + * the provider using the given class loader. If a provider returns a file + * system then the lookup terminates and the file system is returned. + */ + // @ts-ignore + public static newFileSystem(path: java.nio.file.Path, loader: java.lang.ClassLoader): java.nio.file.FileSystem; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.FileVisitOption.d.ts b/packages/types/dist/typings/jdk/java.nio.file.FileVisitOption.d.ts new file mode 100644 index 00000000..c0fdabaf --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.FileVisitOption.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + class FileVisitOption extends java.lang.Enum { + // @ts-ignore + public static FOLLOW_LINKS: java.nio.file.FileVisitOption; + // @ts-ignore + public static values(): java.nio.file.FileVisitOption[]; + // @ts-ignore + public static valueOf(name: string): java.nio.file.FileVisitOption; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.FileVisitResult.d.ts b/packages/types/dist/typings/jdk/java.nio.file.FileVisitResult.d.ts new file mode 100644 index 00000000..53a0e7e3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.FileVisitResult.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + class FileVisitResult extends java.lang.Enum { + // @ts-ignore + public static CONTINUE: java.nio.file.FileVisitResult; + // @ts-ignore + public static TERMINATE: java.nio.file.FileVisitResult; + // @ts-ignore + public static SKIP_SUBTREE: java.nio.file.FileVisitResult; + // @ts-ignore + public static SKIP_SIBLINGS: java.nio.file.FileVisitResult; + // @ts-ignore + public static values(): java.nio.file.FileVisitResult[]; + // @ts-ignore + public static valueOf(name: string): java.nio.file.FileVisitResult; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.FileVisitor.d.ts b/packages/types/dist/typings/jdk/java.nio.file.FileVisitor.d.ts new file mode 100644 index 00000000..26f9616e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.FileVisitor.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + interface FileVisitor { + /** + * Invoked for a directory before entries in the directory are visited. + *

If this method returns {@link FileVisitResult#CONTINUE CONTINUE}, + * then entries in the directory are visited. If this method returns {@link + * FileVisitResult#SKIP_SUBTREE SKIP_SUBTREE} or {@link + * FileVisitResult#SKIP_SIBLINGS SKIP_SIBLINGS} then entries in the + * directory (and any descendants) will not be visited. + */ + // @ts-ignore + preVisitDirectory(dir: java.lang.Object, attrs: java.nio.file.attribute.BasicFileAttributes): java.nio.file.FileVisitResult; + /** + * Invoked for a file in a directory. + */ + // @ts-ignore + visitFile(file: java.lang.Object, attrs: java.nio.file.attribute.BasicFileAttributes): java.nio.file.FileVisitResult; + /** + * Invoked for a file that could not be visited. This method is invoked + * if the file's attributes could not be read, the file is a directory + * that could not be opened, and other reasons. + */ + // @ts-ignore + visitFileFailed(file: java.lang.Object, exc: java.io.IOException): java.nio.file.FileVisitResult; + /** + * Invoked for a directory after entries in the directory, and all of their + * descendants, have been visited. This method is also invoked when iteration + * of the directory completes prematurely (by a {@link #visitFile visitFile} + * method returning {@link FileVisitResult#SKIP_SIBLINGS SKIP_SIBLINGS}, + * or an I/O error when iterating over the directory). + */ + // @ts-ignore + postVisitDirectory(dir: java.lang.Object, exc: java.io.IOException): java.nio.file.FileVisitResult; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.Files.d.ts b/packages/types/dist/typings/jdk/java.nio.file.Files.d.ts new file mode 100644 index 00000000..661a75f9 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.Files.d.ts @@ -0,0 +1,1463 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + class Files extends java.lang.Object { + /** + * Opens a file, returning an input stream to read from the file. The stream + * will not be buffered, and is not required to support the {@link + * InputStream#mark mark} or {@link InputStream#reset reset} methods. The + * stream will be safe for access by multiple concurrent threads. Reading + * commences at the beginning of the file. Whether the returned stream is + * asynchronously closeable and/or interruptible is highly + * file system provider specific and therefore not specified. + *

The {@code options} parameter determines how the file is opened. + * If no options are present then it is equivalent to opening the file with + * the {@link StandardOpenOption#READ READ} option. In addition to the {@code + * READ} option, an implementation may also support additional implementation + * specific options. + */ + // @ts-ignore + public static newInputStream(path: java.nio.file.Path, options: java.nio.file.OpenOption): java.io.InputStream; + /** + * Opens or creates a file, returning an output stream that may be used to + * write bytes to the file. The resulting stream will not be buffered. The + * stream will be safe for access by multiple concurrent threads. Whether + * the returned stream is asynchronously closeable and/or + * interruptible is highly file system provider specific and + * therefore not specified. + *

This method opens or creates a file in exactly the manner specified + * by the {@link #newByteChannel(Path,Set,FileAttribute[]) newByteChannel} + * method with the exception that the {@link StandardOpenOption#READ READ} + * option may not be present in the array of options. If no options are + * present then this method works as if the {@link StandardOpenOption#CREATE + * CREATE}, {@link StandardOpenOption#TRUNCATE_EXISTING TRUNCATE_EXISTING}, + * and {@link StandardOpenOption#WRITE WRITE} options are present. In other + * words, it opens the file for writing, creating the file if it doesn't + * exist, or initially truncating an existing {@link #isRegularFile + * regular-file} to a size of {@code 0} if it exists. + *

Usage Examples: + *

+                 * Path path = ...
+                 * // truncate and overwrite an existing file, or create the file if
+                 * // it doesn't initially exist
+                 * OutputStream out = Files.newOutputStream(path);
+                 * // append to an existing file, fail if the file does not exist
+                 * out = Files.newOutputStream(path, APPEND);
+                 * // append to an existing file, create file if it doesn't initially exist
+                 * out = Files.newOutputStream(path, CREATE, APPEND);
+                 * // always create new file, failing if it already exists
+                 * out = Files.newOutputStream(path, CREATE_NEW);
+                 * 
+ */ + // @ts-ignore + public static newOutputStream(path: java.nio.file.Path, options: java.nio.file.OpenOption): java.io.OutputStream; + /** + * Opens or creates a file, returning a seekable byte channel to access the + * file. + *

The {@code options} parameter determines how the file is opened. + * The {@link StandardOpenOption#READ READ} and {@link + * StandardOpenOption#WRITE WRITE} options determine if the file should be + * opened for reading and/or writing. If neither option (or the {@link + * StandardOpenOption#APPEND APPEND} option) is present then the file is + * opened for reading. By default reading or writing commence at the + * beginning of the file. + *

In the addition to {@code READ} and {@code WRITE}, the following + * options may be present: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Option Description
{@link StandardOpenOption#APPEND APPEND} If this option is present then the file is opened for writing and + * each invocation of the channel's {@code write} method first advances + * the position to the end of the file and then writes the requested + * data. Whether the advancement of the position and the writing of the + * data are done in a single atomic operation is system-dependent and + * therefore unspecified. This option may not be used in conjunction + * with the {@code READ} or {@code TRUNCATE_EXISTING} options.
{@link StandardOpenOption#TRUNCATE_EXISTING TRUNCATE_EXISTING} If this option is present then the existing file is truncated to + * a size of 0 bytes. This option is ignored when the file is opened only + * for reading.
{@link StandardOpenOption#CREATE_NEW CREATE_NEW} If this option is present then a new file is created, failing if + * the file already exists or is a symbolic link. When creating a file the + * check for the existence of the file and the creation of the file if it + * does not exist is atomic with respect to other file system operations. + * This option is ignored when the file is opened only for reading.
{@link StandardOpenOption#CREATE CREATE} If this option is present then an existing file is opened if it + * exists, otherwise a new file is created. This option is ignored if the + * {@code CREATE_NEW} option is also present or the file is opened only + * for reading.
{@link StandardOpenOption#DELETE_ON_CLOSE DELETE_ON_CLOSE} When this option is present then the implementation makes a + * best effort attempt to delete the file when closed by the + * {@link SeekableByteChannel#close close} method. If the {@code close} + * method is not invoked then a best effort attempt is made to + * delete the file when the Java virtual machine terminates.
{@link StandardOpenOption#SPARSE SPARSE} When creating a new file this option is a hint that the + * new file will be sparse. This option is ignored when not creating + * a new file.
{@link StandardOpenOption#SYNC SYNC} Requires that every update to the file's content or metadata be + * written synchronously to the underlying storage device. (see Synchronized I/O file + * integrity).
{@link StandardOpenOption#DSYNC DSYNC} Requires that every update to the file's content be written + * synchronously to the underlying storage device. (see Synchronized I/O file + * integrity).
+ *

An implementation may also support additional implementation specific + * options. + *

The {@code attrs} parameter is optional {@link FileAttribute + * file-attributes} to set atomically when a new file is created. + *

In the case of the default provider, the returned seekable byte channel + * is a {@link java.nio.channels.FileChannel}. + *

Usage Examples: + *

+                 * Path path = ...
+                 * // open file for reading
+                 * ReadableByteChannel rbc = Files.newByteChannel(path, EnumSet.of(READ)));
+                 * // open file for writing to the end of an existing file, creating
+                 * // the file if it doesn't already exist
+                 * WritableByteChannel wbc = Files.newByteChannel(path, EnumSet.of(CREATE,APPEND));
+                 * // create file with initial permissions, opening it for both reading and writing
+                 * {@code FileAttribute> perms = ...}
+                 * SeekableByteChannel sbc = Files.newByteChannel(path, EnumSet.of(CREATE_NEW,READ,WRITE), perms);
+                 * 
+ */ + // @ts-ignore + public static newByteChannel(path: java.nio.file.Path, options: java.util.Set, attrs: java.nio.file.attribute.FileAttribute): java.nio.channels.SeekableByteChannel; + /** + * Opens or creates a file, returning a seekable byte channel to access the + * file. + *

This method opens or creates a file in exactly the manner specified + * by the {@link #newByteChannel(Path,Set,FileAttribute[]) newByteChannel} + * method. + */ + // @ts-ignore + public static newByteChannel(path: java.nio.file.Path, options: java.nio.file.OpenOption): java.nio.channels.SeekableByteChannel; + /** + * Opens a directory, returning a {@link DirectoryStream} to iterate over + * all entries in the directory. The elements returned by the directory + * stream's {@link DirectoryStream#iterator iterator} are of type {@code + * Path}, each one representing an entry in the directory. The {@code Path} + * objects are obtained as if by {@link Path#resolve(Path) resolving} the + * name of the directory entry against {@code dir}. + *

When not using the try-with-resources construct, then directory + * stream's {@code close} method should be invoked after iteration is + * completed so as to free any resources held for the open directory. + *

When an implementation supports operations on entries in the + * directory that execute in a race-free manner then the returned directory + * stream is a {@link SecureDirectoryStream}. + */ + // @ts-ignore + public static newDirectoryStream(dir: java.nio.file.Path): java.nio.file.DirectoryStream; + /** + * Opens a directory, returning a {@link DirectoryStream} to iterate over + * the entries in the directory. The elements returned by the directory + * stream's {@link DirectoryStream#iterator iterator} are of type {@code + * Path}, each one representing an entry in the directory. The {@code Path} + * objects are obtained as if by {@link Path#resolve(Path) resolving} the + * name of the directory entry against {@code dir}. The entries returned by + * the iterator are filtered by matching the {@code String} representation + * of their file names against the given globbing pattern. + *

For example, suppose we want to iterate over the files ending with + * ".java" in a directory: + *

+                 * Path dir = ...
+                 * try (DirectoryStream<Path> stream = Files.newDirectoryStream(dir, "*.java")) {
+                 * :
+                 * }
+                 * 
+ *

The globbing pattern is specified by the {@link + * FileSystem#getPathMatcher getPathMatcher} method. + *

When not using the try-with-resources construct, then directory + * stream's {@code close} method should be invoked after iteration is + * completed so as to free any resources held for the open directory. + *

When an implementation supports operations on entries in the + * directory that execute in a race-free manner then the returned directory + * stream is a {@link SecureDirectoryStream}. + */ + // @ts-ignore + public static newDirectoryStream(dir: java.nio.file.Path, glob: string): java.nio.file.DirectoryStream; + /** + * Opens a directory, returning a {@link DirectoryStream} to iterate over + * the entries in the directory. The elements returned by the directory + * stream's {@link DirectoryStream#iterator iterator} are of type {@code + * Path}, each one representing an entry in the directory. The {@code Path} + * objects are obtained as if by {@link Path#resolve(Path) resolving} the + * name of the directory entry against {@code dir}. The entries returned by + * the iterator are filtered by the given {@link DirectoryStream.Filter + * filter}. + *

When not using the try-with-resources construct, then directory + * stream's {@code close} method should be invoked after iteration is + * completed so as to free any resources held for the open directory. + *

Where the filter terminates due to an uncaught error or runtime + * exception then it is propagated to the {@link Iterator#hasNext() + * hasNext} or {@link Iterator#next() next} method. Where an {@code + * IOException} is thrown, it results in the {@code hasNext} or {@code + * next} method throwing a {@link DirectoryIteratorException} with the + * {@code IOException} as the cause. + *

When an implementation supports operations on entries in the + * directory that execute in a race-free manner then the returned directory + * stream is a {@link SecureDirectoryStream}. + *

Usage Example: + * Suppose we want to iterate over the files in a directory that are + * larger than 8K. + *

+                 * DirectoryStream.Filter<Path> filter = new DirectoryStream.Filter<Path>() {
+                 * public boolean accept(Path file) throws IOException {
+                 * return (Files.size(file) > 8192L);
+                 * }
+                 * };
+                 * Path dir = ...
+                 * try (DirectoryStream<Path> stream = Files.newDirectoryStream(dir, filter)) {
+                 * :
+                 * }
+                 * 
+ */ + // @ts-ignore + public static newDirectoryStream(dir: java.nio.file.Path, filter: java.nio.file.DirectoryStream.Filter): java.nio.file.DirectoryStream; + /** + * Creates a new and empty file, failing if the file already exists. The + * check for the existence of the file and the creation of the new file if + * it does not exist are a single operation that is atomic with respect to + * all other filesystem activities that might affect the directory. + *

The {@code attrs} parameter is optional {@link FileAttribute + * file-attributes} to set atomically when creating the file. Each attribute + * is identified by its {@link FileAttribute#name name}. If more than one + * attribute of the same name is included in the array then all but the last + * occurrence is ignored. + */ + // @ts-ignore + public static createFile(path: java.nio.file.Path, attrs: java.nio.file.attribute.FileAttribute): java.nio.file.Path; + /** + * Creates a new directory. The check for the existence of the file and the + * creation of the directory if it does not exist are a single operation + * that is atomic with respect to all other filesystem activities that might + * affect the directory. The {@link #createDirectories createDirectories} + * method should be used where it is required to create all nonexistent + * parent directories first. + *

The {@code attrs} parameter is optional {@link FileAttribute + * file-attributes} to set atomically when creating the directory. Each + * attribute is identified by its {@link FileAttribute#name name}. If more + * than one attribute of the same name is included in the array then all but + * the last occurrence is ignored. + */ + // @ts-ignore + public static createDirectory(dir: java.nio.file.Path, attrs: java.nio.file.attribute.FileAttribute): java.nio.file.Path; + /** + * Creates a directory by creating all nonexistent parent directories first. + * Unlike the {@link #createDirectory createDirectory} method, an exception + * is not thrown if the directory could not be created because it already + * exists. + *

The {@code attrs} parameter is optional {@link FileAttribute + * file-attributes} to set atomically when creating the nonexistent + * directories. Each file attribute is identified by its {@link + * FileAttribute#name name}. If more than one attribute of the same name is + * included in the array then all but the last occurrence is ignored. + *

If this method fails, then it may do so after creating some, but not + * all, of the parent directories. + */ + // @ts-ignore + public static createDirectories(dir: java.nio.file.Path, attrs: java.nio.file.attribute.FileAttribute): java.nio.file.Path; + /** + * Creates a new empty file in the specified directory, using the given + * prefix and suffix strings to generate its name. The resulting + * {@code Path} is associated with the same {@code FileSystem} as the given + * directory. + *

The details as to how the name of the file is constructed is + * implementation dependent and therefore not specified. Where possible + * the {@code prefix} and {@code suffix} are used to construct candidate + * names in the same manner as the {@link + * java.io.File#createTempFile(String,String,File)} method. + *

As with the {@code File.createTempFile} methods, this method is only + * part of a temporary-file facility. Where used as a work files, + * the resulting file may be opened using the {@link + * StandardOpenOption#DELETE_ON_CLOSE DELETE_ON_CLOSE} option so that the + * file is deleted when the appropriate {@code close} method is invoked. + * Alternatively, a {@link Runtime#addShutdownHook shutdown-hook}, or the + * {@link java.io.File#deleteOnExit} mechanism may be used to delete the + * file automatically. + *

The {@code attrs} parameter is optional {@link FileAttribute + * file-attributes} to set atomically when creating the file. Each attribute + * is identified by its {@link FileAttribute#name name}. If more than one + * attribute of the same name is included in the array then all but the last + * occurrence is ignored. When no file attributes are specified, then the + * resulting file may have more restrictive access permissions to files + * created by the {@link java.io.File#createTempFile(String,String,File)} + * method. + */ + // @ts-ignore + public static createTempFile(dir: java.nio.file.Path, prefix: string, suffix: string, attrs: java.nio.file.attribute.FileAttribute): java.nio.file.Path; + /** + * Creates an empty file in the default temporary-file directory, using + * the given prefix and suffix to generate its name. The resulting {@code + * Path} is associated with the default {@code FileSystem}. + *

This method works in exactly the manner specified by the + * {@link #createTempFile(Path,String,String,FileAttribute[])} method for + * the case that the {@code dir} parameter is the temporary-file directory. + */ + // @ts-ignore + public static createTempFile(prefix: string, suffix: string, attrs: java.nio.file.attribute.FileAttribute): java.nio.file.Path; + /** + * Creates a new directory in the specified directory, using the given + * prefix to generate its name. The resulting {@code Path} is associated + * with the same {@code FileSystem} as the given directory. + *

The details as to how the name of the directory is constructed is + * implementation dependent and therefore not specified. Where possible + * the {@code prefix} is used to construct candidate names. + *

As with the {@code createTempFile} methods, this method is only + * part of a temporary-file facility. A {@link Runtime#addShutdownHook + * shutdown-hook}, or the {@link java.io.File#deleteOnExit} mechanism may be + * used to delete the directory automatically. + *

The {@code attrs} parameter is optional {@link FileAttribute + * file-attributes} to set atomically when creating the directory. Each + * attribute is identified by its {@link FileAttribute#name name}. If more + * than one attribute of the same name is included in the array then all but + * the last occurrence is ignored. + */ + // @ts-ignore + public static createTempDirectory(dir: java.nio.file.Path, prefix: string, attrs: java.nio.file.attribute.FileAttribute): java.nio.file.Path; + /** + * Creates a new directory in the default temporary-file directory, using + * the given prefix to generate its name. The resulting {@code Path} is + * associated with the default {@code FileSystem}. + *

This method works in exactly the manner specified by {@link + * #createTempDirectory(Path,String,FileAttribute[])} method for the case + * that the {@code dir} parameter is the temporary-file directory. + */ + // @ts-ignore + public static createTempDirectory(prefix: string, attrs: java.nio.file.attribute.FileAttribute): java.nio.file.Path; + /** + * Creates a symbolic link to a target (optional operation). + *

The {@code target} parameter is the target of the link. It may be an + * {@link Path#isAbsolute absolute} or relative path and may not exist. When + * the target is a relative path then file system operations on the resulting + * link are relative to the path of the link. + *

The {@code attrs} parameter is optional {@link FileAttribute + * attributes} to set atomically when creating the link. Each attribute is + * identified by its {@link FileAttribute#name name}. If more than one attribute + * of the same name is included in the array then all but the last occurrence + * is ignored. + *

Where symbolic links are supported, but the underlying {@link FileStore} + * does not support symbolic links, then this may fail with an {@link + * IOException}. Additionally, some operating systems may require that the + * Java virtual machine be started with implementation specific privileges to + * create symbolic links, in which case this method may throw {@code IOException}. + */ + // @ts-ignore + public static createSymbolicLink(link: java.nio.file.Path, target: java.nio.file.Path, attrs: java.nio.file.attribute.FileAttribute): java.nio.file.Path; + /** + * Creates a new link (directory entry) for an existing file (optional + * operation). + *

The {@code link} parameter locates the directory entry to create. + * The {@code existing} parameter is the path to an existing file. This + * method creates a new directory entry for the file so that it can be + * accessed using {@code link} as the path. On some file systems this is + * known as creating a "hard link". Whether the file attributes are + * maintained for the file or for each directory entry is file system + * specific and therefore not specified. Typically, a file system requires + * that all links (directory entries) for a file be on the same file system. + * Furthermore, on some platforms, the Java virtual machine may require to + * be started with implementation specific privileges to create hard links + * or to create links to directories. + */ + // @ts-ignore + public static createLink(link: java.nio.file.Path, existing: java.nio.file.Path): java.nio.file.Path; + /** + * Deletes a file. + *

An implementation may require to examine the file to determine if the + * file is a directory. Consequently this method may not be atomic with respect + * to other file system operations. If the file is a symbolic link then the + * symbolic link itself, not the final target of the link, is deleted. + *

If the file is a directory then the directory must be empty. In some + * implementations a directory has entries for special files or links that + * are created when the directory is created. In such implementations a + * directory is considered empty when only the special entries exist. + * This method can be used with the {@link #walkFileTree walkFileTree} + * method to delete a directory and all entries in the directory, or an + * entire file-tree where required. + *

On some operating systems it may not be possible to remove a file when + * it is open and in use by this Java virtual machine or other programs. + */ + // @ts-ignore + public static delete(path: java.nio.file.Path): void; + /** + * Deletes a file if it exists. + *

As with the {@link #delete(Path) delete(Path)} method, an + * implementation may need to examine the file to determine if the file is a + * directory. Consequently this method may not be atomic with respect to + * other file system operations. If the file is a symbolic link, then the + * symbolic link itself, not the final target of the link, is deleted. + *

If the file is a directory then the directory must be empty. In some + * implementations a directory has entries for special files or links that + * are created when the directory is created. In such implementations a + * directory is considered empty when only the special entries exist. + *

On some operating systems it may not be possible to remove a file when + * it is open and in use by this Java virtual machine or other programs. + */ + // @ts-ignore + public static deleteIfExists(path: java.nio.file.Path): boolean; + /** + * Copy a file to a target file. + *

This method copies a file to the target file with the {@code + * options} parameter specifying how the copy is performed. By default, the + * copy fails if the target file already exists or is a symbolic link, + * except if the source and target are the {@link #isSameFile same} file, in + * which case the method completes without copying the file. File attributes + * are not required to be copied to the target file. If symbolic links are + * supported, and the file is a symbolic link, then the final target of the + * link is copied. If the file is a directory then it creates an empty + * directory in the target location (entries in the directory are not + * copied). This method can be used with the {@link #walkFileTree + * walkFileTree} method to copy a directory and all entries in the directory, + * or an entire file-tree where required. + *

The {@code options} parameter may include any of the following: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Option Description
{@link StandardCopyOption#REPLACE_EXISTING REPLACE_EXISTING} If the target file exists, then the target file is replaced if it + * is not a non-empty directory. If the target file exists and is a + * symbolic link, then the symbolic link itself, not the target of + * the link, is replaced.
{@link StandardCopyOption#COPY_ATTRIBUTES COPY_ATTRIBUTES} Attempts to copy the file attributes associated with this file to + * the target file. The exact file attributes that are copied is platform + * and file system dependent and therefore unspecified. Minimally, the + * {@link BasicFileAttributes#lastModifiedTime last-modified-time} is + * copied to the target file if supported by both the source and target + * file stores. Copying of file timestamps may result in precision + * loss.
{@link LinkOption#NOFOLLOW_LINKS NOFOLLOW_LINKS} Symbolic links are not followed. If the file is a symbolic link, + * then the symbolic link itself, not the target of the link, is copied. + * It is implementation specific if file attributes can be copied to the + * new link. In other words, the {@code COPY_ATTRIBUTES} option may be + * ignored when copying a symbolic link.
+ *

An implementation of this interface may support additional + * implementation specific options. + *

Copying a file is not an atomic operation. If an {@link IOException} + * is thrown, then it is possible that the target file is incomplete or some + * of its file attributes have not been copied from the source file. When + * the {@code REPLACE_EXISTING} option is specified and the target file + * exists, then the target file is replaced. The check for the existence of + * the file and the creation of the new file may not be atomic with respect + * to other file system activities. + *

Usage Example: + * Suppose we want to copy a file into a directory, giving it the same file + * name as the source file: + *

+                 * Path source = ...
+                 * Path newdir = ...
+                 * Files.copy(source, newdir.resolve(source.getFileName());
+                 * 
+ */ + // @ts-ignore + public static copy(source: java.nio.file.Path, target: java.nio.file.Path, options: java.nio.file.CopyOption): java.nio.file.Path; + /** + * Move or rename a file to a target file. + *

By default, this method attempts to move the file to the target + * file, failing if the target file exists except if the source and + * target are the {@link #isSameFile same} file, in which case this method + * has no effect. If the file is a symbolic link then the symbolic link + * itself, not the target of the link, is moved. This method may be + * invoked to move an empty directory. In some implementations a directory + * has entries for special files or links that are created when the + * directory is created. In such implementations a directory is considered + * empty when only the special entries exist. When invoked to move a + * directory that is not empty then the directory is moved if it does not + * require moving the entries in the directory. For example, renaming a + * directory on the same {@link FileStore} will usually not require moving + * the entries in the directory. When moving a directory requires that its + * entries be moved then this method fails (by throwing an {@code + * IOException}). To move a file tree may involve copying rather + * than moving directories and this can be done using the {@link + * #copy copy} method in conjunction with the {@link + * #walkFileTree Files.walkFileTree} utility method. + *

The {@code options} parameter may include any of the following: + * + * + * + * + * + * + * + * + * + *
Option Description
{@link StandardCopyOption#REPLACE_EXISTING REPLACE_EXISTING} If the target file exists, then the target file is replaced if it + * is not a non-empty directory. If the target file exists and is a + * symbolic link, then the symbolic link itself, not the target of + * the link, is replaced.
{@link StandardCopyOption#ATOMIC_MOVE ATOMIC_MOVE} The move is performed as an atomic file system operation and all + * other options are ignored. If the target file exists then it is + * implementation specific if the existing file is replaced or this method + * fails by throwing an {@link IOException}. If the move cannot be + * performed as an atomic file system operation then {@link + * AtomicMoveNotSupportedException} is thrown. This can arise, for + * example, when the target location is on a different {@code FileStore} + * and would require that the file be copied, or target location is + * associated with a different provider to this object.
+ *

An implementation of this interface may support additional + * implementation specific options. + *

Moving a file will copy the {@link + * BasicFileAttributes#lastModifiedTime last-modified-time} to the target + * file if supported by both source and target file stores. Copying of file + * timestamps may result in precision loss. An implementation may also + * attempt to copy other file attributes but is not required to fail if the + * file attributes cannot be copied. When the move is performed as + * a non-atomic operation, and an {@code IOException} is thrown, then the + * state of the files is not defined. The original file and the target file + * may both exist, the target file may be incomplete or some of its file + * attributes may not been copied from the original file. + *

Usage Examples: + * Suppose we want to rename a file to "newname", keeping the file in the + * same directory: + *

+                 * Path source = ...
+                 * Files.move(source, source.resolveSibling("newname"));
+                 * 
+ * Alternatively, suppose we want to move a file to new directory, keeping + * the same file name, and replacing any existing file of that name in the + * directory: + *
+                 * Path source = ...
+                 * Path newdir = ...
+                 * Files.move(source, newdir.resolve(source.getFileName()), REPLACE_EXISTING);
+                 * 
+ */ + // @ts-ignore + public static move(source: java.nio.file.Path, target: java.nio.file.Path, options: java.nio.file.CopyOption): java.nio.file.Path; + /** + * Reads the target of a symbolic link (optional operation). + *

If the file system supports symbolic + * links then this method is used to read the target of the link, failing + * if the file is not a symbolic link. The target of the link need not exist. + * The returned {@code Path} object will be associated with the same file + * system as {@code link}. + */ + // @ts-ignore + public static readSymbolicLink(link: java.nio.file.Path): java.nio.file.Path; + /** + * Returns the {@link FileStore} representing the file store where a file + * is located. + *

Once a reference to the {@code FileStore} is obtained it is + * implementation specific if operations on the returned {@code FileStore}, + * or {@link FileStoreAttributeView} objects obtained from it, continue + * to depend on the existence of the file. In particular the behavior is not + * defined for the case that the file is deleted or moved to a different + * file store. + */ + // @ts-ignore + public static getFileStore(path: java.nio.file.Path): java.nio.file.FileStore; + /** + * Tests if two paths locate the same file. + *

If both {@code Path} objects are {@link Path#equals(Object) equal} + * then this method returns {@code true} without checking if the file exists. + * If the two {@code Path} objects are associated with different providers + * then this method returns {@code false}. Otherwise, this method checks if + * both {@code Path} objects locate the same file, and depending on the + * implementation, may require to open or access both files. + *

If the file system and files remain static, then this method implements + * an equivalence relation for non-null {@code Paths}. + *

    + *
  • It is reflexive: for {@code Path} {@code f}, + * {@code isSameFile(f,f)} should return {@code true}. + *
  • It is symmetric: for two {@code Paths} {@code f} and {@code g}, + * {@code isSameFile(f,g)} will equal {@code isSameFile(g,f)}. + *
  • It is transitive: for three {@code Paths} + * {@code f}, {@code g}, and {@code h}, if {@code isSameFile(f,g)} returns + * {@code true} and {@code isSameFile(g,h)} returns {@code true}, then + * {@code isSameFile(f,h)} will return return {@code true}. + *
+ */ + // @ts-ignore + public static isSameFile(path: java.nio.file.Path, path2: java.nio.file.Path): boolean; + /** + * Tells whether or not a file is considered hidden. The exact + * definition of hidden is platform or provider dependent. On UNIX for + * example a file is considered to be hidden if its name begins with a + * period character ('.'). On Windows a file is considered hidden if it + * isn't a directory and the DOS {@link DosFileAttributes#isHidden hidden} + * attribute is set. + *

Depending on the implementation this method may require to access + * the file system to determine if the file is considered hidden. + */ + // @ts-ignore + public static isHidden(path: java.nio.file.Path): boolean; + /** + * Probes the content type of a file. + *

This method uses the installed {@link FileTypeDetector} implementations + * to probe the given file to determine its content type. Each file type + * detector's {@link FileTypeDetector#probeContentType probeContentType} is + * invoked, in turn, to probe the file type. If the file is recognized then + * the content type is returned. If the file is not recognized by any of the + * installed file type detectors then a system-default file type detector is + * invoked to guess the content type. + *

A given invocation of the Java virtual machine maintains a system-wide + * list of file type detectors. Installed file type detectors are loaded + * using the service-provider loading facility defined by the {@link ServiceLoader} + * class. Installed file type detectors are loaded using the system class + * loader. If the system class loader cannot be found then the extension class + * loader is used; If the extension class loader cannot be found then the + * bootstrap class loader is used. File type detectors are typically installed + * by placing them in a JAR file on the application class path or in the + * extension directory, the JAR file contains a provider-configuration file + * named {@code java.nio.file.spi.FileTypeDetector} in the resource directory + * {@code META-INF/services}, and the file lists one or more fully-qualified + * names of concrete subclass of {@code FileTypeDetector } that have a zero + * argument constructor. If the process of locating or instantiating the + * installed file type detectors fails then an unspecified error is thrown. + * The ordering that installed providers are located is implementation + * specific. + *

The return value of this method is the string form of the value of a + * Multipurpose Internet Mail Extension (MIME) content type as + * defined by RFC 2045: + * Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet + * Message Bodies. The string is guaranteed to be parsable according + * to the grammar in the RFC. + */ + // @ts-ignore + public static probeContentType(path: java.nio.file.Path): string; + /** + * Returns a file attribute view of a given type. + *

A file attribute view provides a read-only or updatable view of a + * set of file attributes. This method is intended to be used where the file + * attribute view defines type-safe methods to read or update the file + * attributes. The {@code type} parameter is the type of the attribute view + * required and the method returns an instance of that type if supported. + * The {@link BasicFileAttributeView} type supports access to the basic + * attributes of a file. Invoking this method to select a file attribute + * view of that type will always return an instance of that class. + *

The {@code options} array may be used to indicate how symbolic links + * are handled by the resulting file attribute view for the case that the + * file is a symbolic link. By default, symbolic links are followed. If the + * option {@link LinkOption#NOFOLLOW_LINKS NOFOLLOW_LINKS} is present then + * symbolic links are not followed. This option is ignored by implementations + * that do not support symbolic links. + *

Usage Example: + * Suppose we want read or set a file's ACL, if supported: + *

+                 * Path path = ...
+                 * AclFileAttributeView view = Files.getFileAttributeView(path, AclFileAttributeView.class);
+                 * if (view != null) {
+                 * List<AclEntry> acl = view.getAcl();
+                 * :
+                 * }
+                 * 
+ */ + // @ts-ignore + public static getFileAttributeView(path: java.nio.file.Path, type: java.lang.Class, options: java.nio.file.LinkOption): java.nio.file.attribute.FileAttributeView; + /** + * Reads a file's attributes as a bulk operation. + *

The {@code type} parameter is the type of the attributes required + * and this method returns an instance of that type if supported. All + * implementations support a basic set of file attributes and so invoking + * this method with a {@code type} parameter of {@code + * BasicFileAttributes.class} will not throw {@code + * UnsupportedOperationException}. + *

The {@code options} array may be used to indicate how symbolic links + * are handled for the case that the file is a symbolic link. By default, + * symbolic links are followed and the file attribute of the final target + * of the link is read. If the option {@link LinkOption#NOFOLLOW_LINKS + * NOFOLLOW_LINKS} is present then symbolic links are not followed. + *

It is implementation specific if all file attributes are read as an + * atomic operation with respect to other file system operations. + *

Usage Example: + * Suppose we want to read a file's attributes in bulk: + *

+                 * Path path = ...
+                 * BasicFileAttributes attrs = Files.readAttributes(path, BasicFileAttributes.class);
+                 * 
+ * Alternatively, suppose we want to read file's POSIX attributes without + * following symbolic links: + *
+                 * PosixFileAttributes attrs = Files.readAttributes(path, PosixFileAttributes.class, NOFOLLOW_LINKS);
+                 * 
+ */ + // @ts-ignore + public static readAttributes(path: java.nio.file.Path, type: java.lang.Class, options: java.nio.file.LinkOption): java.nio.file.attribute.BasicFileAttributes; + /** + * Sets the value of a file attribute. + *

The {@code attribute} parameter identifies the attribute to be set + * and takes the form: + *

+ * [view-name:]attribute-name + *
+ * where square brackets [...] delineate an optional component and the + * character {@code ':'} stands for itself. + *

view-name is the {@link FileAttributeView#name name} of a {@link + * FileAttributeView} that identifies a set of file attributes. If not + * specified then it defaults to {@code "basic"}, the name of the file + * attribute view that identifies the basic set of file attributes common to + * many file systems. attribute-name is the name of the attribute + * within the set. + *

The {@code options} array may be used to indicate how symbolic links + * are handled for the case that the file is a symbolic link. By default, + * symbolic links are followed and the file attribute of the final target + * of the link is set. If the option {@link LinkOption#NOFOLLOW_LINKS + * NOFOLLOW_LINKS} is present then symbolic links are not followed. + *

Usage Example: + * Suppose we want to set the DOS "hidden" attribute: + *

+                 * Path path = ...
+                 * Files.setAttribute(path, "dos:hidden", true);
+                 * 
+ */ + // @ts-ignore + public static setAttribute(path: java.nio.file.Path, attribute: string, value: java.lang.Object, options: java.nio.file.LinkOption): java.nio.file.Path; + /** + * Reads the value of a file attribute. + *

The {@code attribute} parameter identifies the attribute to be read + * and takes the form: + *

+ * [view-name:]attribute-name + *
+ * where square brackets [...] delineate an optional component and the + * character {@code ':'} stands for itself. + *

view-name is the {@link FileAttributeView#name name} of a {@link + * FileAttributeView} that identifies a set of file attributes. If not + * specified then it defaults to {@code "basic"}, the name of the file + * attribute view that identifies the basic set of file attributes common to + * many file systems. attribute-name is the name of the attribute. + *

The {@code options} array may be used to indicate how symbolic links + * are handled for the case that the file is a symbolic link. By default, + * symbolic links are followed and the file attribute of the final target + * of the link is read. If the option {@link LinkOption#NOFOLLOW_LINKS + * NOFOLLOW_LINKS} is present then symbolic links are not followed. + *

Usage Example: + * Suppose we require the user ID of the file owner on a system that + * supports a "{@code unix}" view: + *

+                 * Path path = ...
+                 * int uid = (Integer)Files.getAttribute(path, "unix:uid");
+                 * 
+ */ + // @ts-ignore + public static getAttribute(path: java.nio.file.Path, attribute: string, options: java.nio.file.LinkOption): java.lang.Object; + /** + * Reads a set of file attributes as a bulk operation. + *

The {@code attributes} parameter identifies the attributes to be read + * and takes the form: + *

+ * [view-name:]attribute-list + *
+ * where square brackets [...] delineate an optional component and the + * character {@code ':'} stands for itself. + *

view-name is the {@link FileAttributeView#name name} of a {@link + * FileAttributeView} that identifies a set of file attributes. If not + * specified then it defaults to {@code "basic"}, the name of the file + * attribute view that identifies the basic set of file attributes common to + * many file systems. + *

The attribute-list component is a comma separated list of + * zero or more names of attributes to read. If the list contains the value + * {@code "*"} then all attributes are read. Attributes that are not supported + * are ignored and will not be present in the returned map. It is + * implementation specific if all attributes are read as an atomic operation + * with respect to other file system operations. + *

The following examples demonstrate possible values for the {@code + * attributes} parameter: + *

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
{@code "*"} Read all {@link BasicFileAttributes basic-file-attributes}.
{@code "size,lastModifiedTime,lastAccessTime"} Reads the file size, last modified time, and last access time + * attributes.
{@code "posix:*"} Read all {@link PosixFileAttributes POSIX-file-attributes}.
{@code "posix:permissions,owner,size"} Reads the POSX file permissions, owner, and file size.
+ *
+ *

The {@code options} array may be used to indicate how symbolic links + * are handled for the case that the file is a symbolic link. By default, + * symbolic links are followed and the file attribute of the final target + * of the link is read. If the option {@link LinkOption#NOFOLLOW_LINKS + * NOFOLLOW_LINKS} is present then symbolic links are not followed. + */ + // @ts-ignore + public static readAttributes(path: java.nio.file.Path, attributes: string, options: java.nio.file.LinkOption): java.util.Map; + /** + * Returns a file's POSIX file permissions. + *

The {@code path} parameter is associated with a {@code FileSystem} + * that supports the {@link PosixFileAttributeView}. This attribute view + * provides access to file attributes commonly associated with files on file + * systems used by operating systems that implement the Portable Operating + * System Interface (POSIX) family of standards. + *

The {@code options} array may be used to indicate how symbolic links + * are handled for the case that the file is a symbolic link. By default, + * symbolic links are followed and the file attribute of the final target + * of the link is read. If the option {@link LinkOption#NOFOLLOW_LINKS + * NOFOLLOW_LINKS} is present then symbolic links are not followed. + */ + // @ts-ignore + public static getPosixFilePermissions(path: java.nio.file.Path, options: java.nio.file.LinkOption): java.util.Set; + /** + * Sets a file's POSIX permissions. + *

The {@code path} parameter is associated with a {@code FileSystem} + * that supports the {@link PosixFileAttributeView}. This attribute view + * provides access to file attributes commonly associated with files on file + * systems used by operating systems that implement the Portable Operating + * System Interface (POSIX) family of standards. + */ + // @ts-ignore + public static setPosixFilePermissions(path: java.nio.file.Path, perms: java.util.Set): java.nio.file.Path; + /** + * Returns the owner of a file. + *

The {@code path} parameter is associated with a file system that + * supports {@link FileOwnerAttributeView}. This file attribute view provides + * access to a file attribute that is the owner of the file. + */ + // @ts-ignore + public static getOwner(path: java.nio.file.Path, options: java.nio.file.LinkOption): java.nio.file.attribute.UserPrincipal; + /** + * Updates the file owner. + *

The {@code path} parameter is associated with a file system that + * supports {@link FileOwnerAttributeView}. This file attribute view provides + * access to a file attribute that is the owner of the file. + *

Usage Example: + * Suppose we want to make "joe" the owner of a file: + *

+                 * Path path = ...
+                 * UserPrincipalLookupService lookupService =
+                 * provider(path).getUserPrincipalLookupService();
+                 * UserPrincipal joe = lookupService.lookupPrincipalByName("joe");
+                 * Files.setOwner(path, joe);
+                 * 
+ */ + // @ts-ignore + public static setOwner(path: java.nio.file.Path, owner: java.nio.file.attribute.UserPrincipal): java.nio.file.Path; + /** + * Tests whether a file is a symbolic link. + *

Where it is required to distinguish an I/O exception from the case + * that the file is not a symbolic link then the file attributes can be + * read with the {@link #readAttributes(Path,Class,LinkOption[]) + * readAttributes} method and the file type tested with the {@link + * BasicFileAttributes#isSymbolicLink} method. + */ + // @ts-ignore + public static isSymbolicLink(path: java.nio.file.Path): boolean; + /** + * Tests whether a file is a directory. + *

The {@code options} array may be used to indicate how symbolic links + * are handled for the case that the file is a symbolic link. By default, + * symbolic links are followed and the file attribute of the final target + * of the link is read. If the option {@link LinkOption#NOFOLLOW_LINKS + * NOFOLLOW_LINKS} is present then symbolic links are not followed. + *

Where it is required to distinguish an I/O exception from the case + * that the file is not a directory then the file attributes can be + * read with the {@link #readAttributes(Path,Class,LinkOption[]) + * readAttributes} method and the file type tested with the {@link + * BasicFileAttributes#isDirectory} method. + */ + // @ts-ignore + public static isDirectory(path: java.nio.file.Path, options: java.nio.file.LinkOption): boolean; + /** + * Tests whether a file is a regular file with opaque content. + *

The {@code options} array may be used to indicate how symbolic links + * are handled for the case that the file is a symbolic link. By default, + * symbolic links are followed and the file attribute of the final target + * of the link is read. If the option {@link LinkOption#NOFOLLOW_LINKS + * NOFOLLOW_LINKS} is present then symbolic links are not followed. + *

Where it is required to distinguish an I/O exception from the case + * that the file is not a regular file then the file attributes can be + * read with the {@link #readAttributes(Path,Class,LinkOption[]) + * readAttributes} method and the file type tested with the {@link + * BasicFileAttributes#isRegularFile} method. + */ + // @ts-ignore + public static isRegularFile(path: java.nio.file.Path, options: java.nio.file.LinkOption): boolean; + /** + * Returns a file's last modified time. + *

The {@code options} array may be used to indicate how symbolic links + * are handled for the case that the file is a symbolic link. By default, + * symbolic links are followed and the file attribute of the final target + * of the link is read. If the option {@link LinkOption#NOFOLLOW_LINKS + * NOFOLLOW_LINKS} is present then symbolic links are not followed. + */ + // @ts-ignore + public static getLastModifiedTime(path: java.nio.file.Path, options: java.nio.file.LinkOption): java.nio.file.attribute.FileTime; + /** + * Updates a file's last modified time attribute. The file time is converted + * to the epoch and precision supported by the file system. Converting from + * finer to coarser granularities result in precision loss. The behavior of + * this method when attempting to set the last modified time when it is not + * supported by the file system or is outside the range supported by the + * underlying file store is not defined. It may or not fail by throwing an + * {@code IOException}. + *

Usage Example: + * Suppose we want to set the last modified time to the current time: + *

+                 * Path path = ...
+                 * FileTime now = FileTime.fromMillis(System.currentTimeMillis());
+                 * Files.setLastModifiedTime(path, now);
+                 * 
+ */ + // @ts-ignore + public static setLastModifiedTime(path: java.nio.file.Path, time: java.nio.file.attribute.FileTime): java.nio.file.Path; + /** + * Returns the size of a file (in bytes). The size may differ from the + * actual size on the file system due to compression, support for sparse + * files, or other reasons. The size of files that are not {@link + * #isRegularFile regular} files is implementation specific and + * therefore unspecified. + */ + // @ts-ignore + public static size(path: java.nio.file.Path): number; + /** + * Tests whether a file exists. + *

The {@code options} parameter may be used to indicate how symbolic links + * are handled for the case that the file is a symbolic link. By default, + * symbolic links are followed. If the option {@link LinkOption#NOFOLLOW_LINKS + * NOFOLLOW_LINKS} is present then symbolic links are not followed. + *

Note that the result of this method is immediately outdated. If this + * method indicates the file exists then there is no guarantee that a + * subsequence access will succeed. Care should be taken when using this + * method in security sensitive applications. + */ + // @ts-ignore + public static exists(path: java.nio.file.Path, options: java.nio.file.LinkOption): boolean; + /** + * Tests whether the file located by this path does not exist. This method + * is intended for cases where it is required to take action when it can be + * confirmed that a file does not exist. + *

The {@code options} parameter may be used to indicate how symbolic links + * are handled for the case that the file is a symbolic link. By default, + * symbolic links are followed. If the option {@link LinkOption#NOFOLLOW_LINKS + * NOFOLLOW_LINKS} is present then symbolic links are not followed. + *

Note that this method is not the complement of the {@link #exists + * exists} method. Where it is not possible to determine if a file exists + * or not then both methods return {@code false}. As with the {@code exists} + * method, the result of this method is immediately outdated. If this + * method indicates the file does exist then there is no guarantee that a + * subsequence attempt to create the file will succeed. Care should be taken + * when using this method in security sensitive applications. + */ + // @ts-ignore + public static notExists(path: java.nio.file.Path, options: java.nio.file.LinkOption): boolean; + /** + * Tests whether a file is readable. This method checks that a file exists + * and that this Java virtual machine has appropriate privileges that would + * allow it open the file for reading. Depending on the implementation, this + * method may require to read file permissions, access control lists, or + * other file attributes in order to check the effective access to the file. + * Consequently, this method may not be atomic with respect to other file + * system operations. + *

Note that the result of this method is immediately outdated, there is + * no guarantee that a subsequent attempt to open the file for reading will + * succeed (or even that it will access the same file). Care should be taken + * when using this method in security sensitive applications. + */ + // @ts-ignore + public static isReadable(path: java.nio.file.Path): boolean; + /** + * Tests whether a file is writable. This method checks that a file exists + * and that this Java virtual machine has appropriate privileges that would + * allow it open the file for writing. Depending on the implementation, this + * method may require to read file permissions, access control lists, or + * other file attributes in order to check the effective access to the file. + * Consequently, this method may not be atomic with respect to other file + * system operations. + *

Note that result of this method is immediately outdated, there is no + * guarantee that a subsequent attempt to open the file for writing will + * succeed (or even that it will access the same file). Care should be taken + * when using this method in security sensitive applications. + */ + // @ts-ignore + public static isWritable(path: java.nio.file.Path): boolean; + /** + * Tests whether a file is executable. This method checks that a file exists + * and that this Java virtual machine has appropriate privileges to {@link + * Runtime#exec execute} the file. The semantics may differ when checking + * access to a directory. For example, on UNIX systems, checking for + * execute access checks that the Java virtual machine has permission to + * search the directory in order to access file or subdirectories. + *

Depending on the implementation, this method may require to read file + * permissions, access control lists, or other file attributes in order to + * check the effective access to the file. Consequently, this method may not + * be atomic with respect to other file system operations. + *

Note that the result of this method is immediately outdated, there is + * no guarantee that a subsequent attempt to execute the file will succeed + * (or even that it will access the same file). Care should be taken when + * using this method in security sensitive applications. + */ + // @ts-ignore + public static isExecutable(path: java.nio.file.Path): boolean; + /** + * Walks a file tree. + *

This method walks a file tree rooted at a given starting file. The + * file tree traversal is depth-first with the given {@link + * FileVisitor} invoked for each file encountered. File tree traversal + * completes when all accessible files in the tree have been visited, or a + * visit method returns a result of {@link FileVisitResult#TERMINATE + * TERMINATE}. Where a visit method terminates due an {@code IOException}, + * an uncaught error, or runtime exception, then the traversal is terminated + * and the error or exception is propagated to the caller of this method. + *

For each file encountered this method attempts to read its {@link + * java.nio.file.attribute.BasicFileAttributes}. If the file is not a + * directory then the {@link FileVisitor#visitFile visitFile} method is + * invoked with the file attributes. If the file attributes cannot be read, + * due to an I/O exception, then the {@link FileVisitor#visitFileFailed + * visitFileFailed} method is invoked with the I/O exception. + *

Where the file is a directory, and the directory could not be opened, + * then the {@code visitFileFailed} method is invoked with the I/O exception, + * after which, the file tree walk continues, by default, at the next + * sibling of the directory. + *

Where the directory is opened successfully, then the entries in the + * directory, and their descendants are visited. When all entries + * have been visited, or an I/O error occurs during iteration of the + * directory, then the directory is closed and the visitor's {@link + * FileVisitor#postVisitDirectory postVisitDirectory} method is invoked. + * The file tree walk then continues, by default, at the next sibling + * of the directory. + *

By default, symbolic links are not automatically followed by this + * method. If the {@code options} parameter contains the {@link + * FileVisitOption#FOLLOW_LINKS FOLLOW_LINKS} option then symbolic links are + * followed. When following links, and the attributes of the target cannot + * be read, then this method attempts to get the {@code BasicFileAttributes} + * of the link. If they can be read then the {@code visitFile} method is + * invoked with the attributes of the link (otherwise the {@code visitFileFailed} + * method is invoked as specified above). + *

If the {@code options} parameter contains the {@link + * FileVisitOption#FOLLOW_LINKS FOLLOW_LINKS} option then this method keeps + * track of directories visited so that cycles can be detected. A cycle + * arises when there is an entry in a directory that is an ancestor of the + * directory. Cycle detection is done by recording the {@link + * java.nio.file.attribute.BasicFileAttributes#fileKey file-key} of directories, + * or if file keys are not available, by invoking the {@link #isSameFile + * isSameFile} method to test if a directory is the same file as an + * ancestor. When a cycle is detected it is treated as an I/O error, and the + * {@link FileVisitor#visitFileFailed visitFileFailed} method is invoked with + * an instance of {@link FileSystemLoopException}. + *

The {@code maxDepth} parameter is the maximum number of levels of + * directories to visit. A value of {@code 0} means that only the starting + * file is visited, unless denied by the security manager. A value of + * {@link Integer#MAX_VALUE MAX_VALUE} may be used to indicate that all + * levels should be visited. The {@code visitFile} method is invoked for all + * files, including directories, encountered at {@code maxDepth}, unless the + * basic file attributes cannot be read, in which case the {@code + * visitFileFailed} method is invoked. + *

If a visitor returns a result of {@code null} then {@code + * NullPointerException} is thrown. + *

When a security manager is installed and it denies access to a file + * (or directory), then it is ignored and the visitor is not invoked for + * that file (or directory). + */ + // @ts-ignore + public static walkFileTree(start: java.nio.file.Path, options: java.util.Set, maxDepth: number, visitor: java.nio.file.FileVisitor): java.nio.file.Path; + /** + * Walks a file tree. + *

This method works as if invoking it were equivalent to evaluating the + * expression: + *

+                 * walkFileTree(start, EnumSet.noneOf(FileVisitOption.class), Integer.MAX_VALUE, visitor)
+                 * 
+ * In other words, it does not follow symbolic links, and visits all levels + * of the file tree. + */ + // @ts-ignore + public static walkFileTree(start: java.nio.file.Path, visitor: java.nio.file.FileVisitor): java.nio.file.Path; + /** + * Opens a file for reading, returning a {@code BufferedReader} that may be + * used to read text from the file in an efficient manner. Bytes from the + * file are decoded into characters using the specified charset. Reading + * commences at the beginning of the file. + *

The {@code Reader} methods that read from the file throw {@code + * IOException} if a malformed or unmappable byte sequence is read. + */ + // @ts-ignore + public static newBufferedReader(path: java.nio.file.Path, cs: java.nio.charset.Charset): java.io.BufferedReader; + /** + * Opens a file for reading, returning a {@code BufferedReader} to read text + * from the file in an efficient manner. Bytes from the file are decoded into + * characters using the {@link StandardCharsets#UTF_8 UTF-8} {@link Charset + * charset}. + *

This method works as if invoking it were equivalent to evaluating the + * expression: + *

{@code
+                 * Files.newBufferedReader(path, StandardCharsets.UTF_8)
+                 * }
+ */ + // @ts-ignore + public static newBufferedReader(path: java.nio.file.Path): java.io.BufferedReader; + /** + * Opens or creates a file for writing, returning a {@code BufferedWriter} + * that may be used to write text to the file in an efficient manner. + * The {@code options} parameter specifies how the the file is created or + * opened. If no options are present then this method works as if the {@link + * StandardOpenOption#CREATE CREATE}, {@link + * StandardOpenOption#TRUNCATE_EXISTING TRUNCATE_EXISTING}, and {@link + * StandardOpenOption#WRITE WRITE} options are present. In other words, it + * opens the file for writing, creating the file if it doesn't exist, or + * initially truncating an existing {@link #isRegularFile regular-file} to + * a size of {@code 0} if it exists. + *

The {@code Writer} methods to write text throw {@code IOException} + * if the text cannot be encoded using the specified charset. + */ + // @ts-ignore + public static newBufferedWriter(path: java.nio.file.Path, cs: java.nio.charset.Charset, options: java.nio.file.OpenOption): java.io.BufferedWriter; + /** + * Opens or creates a file for writing, returning a {@code BufferedWriter} + * to write text to the file in an efficient manner. The text is encoded + * into bytes for writing using the {@link StandardCharsets#UTF_8 UTF-8} + * {@link Charset charset}. + *

This method works as if invoking it were equivalent to evaluating the + * expression: + *

{@code
+                 * Files.newBufferedWriter(path, StandardCharsets.UTF_8, options)
+                 * }
+ */ + // @ts-ignore + public static newBufferedWriter(path: java.nio.file.Path, options: java.nio.file.OpenOption): java.io.BufferedWriter; + /** + * Copies all bytes from an input stream to a file. On return, the input + * stream will be at end of stream. + *

By default, the copy fails if the target file already exists or is a + * symbolic link. If the {@link StandardCopyOption#REPLACE_EXISTING + * REPLACE_EXISTING} option is specified, and the target file already exists, + * then it is replaced if it is not a non-empty directory. If the target + * file exists and is a symbolic link, then the symbolic link is replaced. + * In this release, the {@code REPLACE_EXISTING} option is the only option + * required to be supported by this method. Additional options may be + * supported in future releases. + *

If an I/O error occurs reading from the input stream or writing to + * the file, then it may do so after the target file has been created and + * after some bytes have been read or written. Consequently the input + * stream may not be at end of stream and may be in an inconsistent state. + * It is strongly recommended that the input stream be promptly closed if an + * I/O error occurs. + *

This method may block indefinitely reading from the input stream (or + * writing to the file). The behavior for the case that the input stream is + * asynchronously closed or the thread interrupted during the copy is + * highly input stream and file system provider specific and therefore not + * specified. + *

Usage example: Suppose we want to capture a web page and save + * it to a file: + *

+                 * Path path = ...
+                 * URI u = URI.create("http://java.sun.com/");
+                 * try (InputStream in = u.toURL().openStream()) {
+                 * Files.copy(in, path);
+                 * }
+                 * 
+ */ + // @ts-ignore + public static copy(input: java.io.InputStream, target: java.nio.file.Path, options: java.nio.file.CopyOption): number; + /** + * Copies all bytes from a file to an output stream. + *

If an I/O error occurs reading from the file or writing to the output + * stream, then it may do so after some bytes have been read or written. + * Consequently the output stream may be in an inconsistent state. It is + * strongly recommended that the output stream be promptly closed if an I/O + * error occurs. + *

This method may block indefinitely writing to the output stream (or + * reading from the file). The behavior for the case that the output stream + * is asynchronously closed or the thread interrupted during the copy + * is highly output stream and file system provider specific and therefore + * not specified. + *

Note that if the given output stream is {@link java.io.Flushable} + * then its {@link java.io.Flushable#flush flush} method may need to invoked + * after this method completes so as to flush any buffered output. + */ + // @ts-ignore + public static copy(source: java.nio.file.Path, out: java.io.OutputStream): number; + /** + * Reads all the bytes from a file. The method ensures that the file is + * closed when all bytes have been read or an I/O error, or other runtime + * exception, is thrown. + *

Note that this method is intended for simple cases where it is + * convenient to read all bytes into a byte array. It is not intended for + * reading in large files. + */ + // @ts-ignore + public static readAllBytes(path: java.nio.file.Path): number[]; + /** + * Read all lines from a file. This method ensures that the file is + * closed when all bytes have been read or an I/O error, or other runtime + * exception, is thrown. Bytes from the file are decoded into characters + * using the specified charset. + *

This method recognizes the following as line terminators: + *

    + *
  • \u000D followed by \u000A, + * CARRIAGE RETURN followed by LINE FEED
  • + *
  • \u000A, LINE FEED
  • + *
  • \u000D, CARRIAGE RETURN
  • + *
+ *

Additional Unicode line terminators may be recognized in future + * releases. + *

Note that this method is intended for simple cases where it is + * convenient to read all lines in a single operation. It is not intended + * for reading in large files. + */ + // @ts-ignore + public static readAllLines(path: java.nio.file.Path, cs: java.nio.charset.Charset): java.util.List; + /** + * Read all lines from a file. Bytes from the file are decoded into characters + * using the {@link StandardCharsets#UTF_8 UTF-8} {@link Charset charset}. + *

This method works as if invoking it were equivalent to evaluating the + * expression: + *

{@code
+                 * Files.readAllLines(path, StandardCharsets.UTF_8)
+                 * }
+ */ + // @ts-ignore + public static readAllLines(path: java.nio.file.Path): java.util.List; + /** + * Writes bytes to a file. The {@code options} parameter specifies how the + * the file is created or opened. If no options are present then this method + * works as if the {@link StandardOpenOption#CREATE CREATE}, {@link + * StandardOpenOption#TRUNCATE_EXISTING TRUNCATE_EXISTING}, and {@link + * StandardOpenOption#WRITE WRITE} options are present. In other words, it + * opens the file for writing, creating the file if it doesn't exist, or + * initially truncating an existing {@link #isRegularFile regular-file} to + * a size of {@code 0}. All bytes in the byte array are written to the file. + * The method ensures that the file is closed when all bytes have been + * written (or an I/O error or other runtime exception is thrown). If an I/O + * error occurs then it may do so after the file has created or truncated, + * or after some bytes have been written to the file. + *

Usage example: By default the method creates a new file or + * overwrites an existing file. Suppose you instead want to append bytes + * to an existing file: + *

+                 * Path path = ...
+                 * byte[] bytes = ...
+                 * Files.write(path, bytes, StandardOpenOption.APPEND);
+                 * 
+ */ + // @ts-ignore + public static write(path: java.nio.file.Path, bytes: number, options: java.nio.file.OpenOption): java.nio.file.Path; + /** + * Write lines of text to a file. Each line is a char sequence and is + * written to the file in sequence with each line terminated by the + * platform's line separator, as defined by the system property {@code + * line.separator}. Characters are encoded into bytes using the specified + * charset. + *

The {@code options} parameter specifies how the the file is created + * or opened. If no options are present then this method works as if the + * {@link StandardOpenOption#CREATE CREATE}, {@link + * StandardOpenOption#TRUNCATE_EXISTING TRUNCATE_EXISTING}, and {@link + * StandardOpenOption#WRITE WRITE} options are present. In other words, it + * opens the file for writing, creating the file if it doesn't exist, or + * initially truncating an existing {@link #isRegularFile regular-file} to + * a size of {@code 0}. The method ensures that the file is closed when all + * lines have been written (or an I/O error or other runtime exception is + * thrown). If an I/O error occurs then it may do so after the file has + * created or truncated, or after some bytes have been written to the file. + */ + // @ts-ignore + public static write(path: java.nio.file.Path, lines: java.lang.Iterable, cs: java.nio.charset.Charset, options: java.nio.file.OpenOption): java.nio.file.Path; + /** + * Write lines of text to a file. Characters are encoded into bytes using + * the {@link StandardCharsets#UTF_8 UTF-8} {@link Charset charset}. + *

This method works as if invoking it were equivalent to evaluating the + * expression: + *

{@code
+                 * Files.write(path, lines, StandardCharsets.UTF_8, options);
+                 * }
+ */ + // @ts-ignore + public static write(path: java.nio.file.Path, lines: java.lang.Iterable, options: java.nio.file.OpenOption): java.nio.file.Path; + /** + * Return a lazily populated {@code Stream}, the elements of + * which are the entries in the directory. The listing is not recursive. + *

The elements of the stream are {@link Path} objects that are + * obtained as if by {@link Path#resolve(Path) resolving} the name of the + * directory entry against {@code dir}. Some file systems maintain special + * links to the directory itself and the directory's parent directory. + * Entries representing these links are not included. + *

The stream is weakly consistent. It is thread safe but does + * not freeze the directory while iterating, so it may (or may not) + * reflect updates to the directory that occur after returning from this + * method. + *

The returned stream encapsulates a {@link DirectoryStream}. + * If timely disposal of file system resources is required, the + * {@code try}-with-resources construct should be used to ensure that the + * stream's {@link Stream#close close} method is invoked after the stream + * operations are completed. + *

Operating on a closed stream behaves as if the end of stream + * has been reached. Due to read-ahead, one or more elements may be + * returned after the stream has been closed. + *

If an {@link IOException} is thrown when accessing the directory + * after this method has returned, it is wrapped in an {@link + * UncheckedIOException} which will be thrown from the method that caused + * the access to take place. + */ + // @ts-ignore + public static list(dir: java.nio.file.Path): java.util.stream.Stream; + /** + * Return a {@code Stream} that is lazily populated with {@code + * Path} by walking the file tree rooted at a given starting file. The + * file tree is traversed depth-first, the elements in the stream + * are {@link Path} objects that are obtained as if by {@link + * Path#resolve(Path) resolving} the relative path against {@code start}. + *

The {@code stream} walks the file tree as elements are consumed. + * The {@code Stream} returned is guaranteed to have at least one + * element, the starting file itself. For each file visited, the stream + * attempts to read its {@link BasicFileAttributes}. If the file is a + * directory and can be opened successfully, entries in the directory, and + * their descendants will follow the directory in the stream as + * they are encountered. When all entries have been visited, then the + * directory is closed. The file tree walk then continues at the next + * sibling of the directory. + *

The stream is weakly consistent. It does not freeze the + * file tree while iterating, so it may (or may not) reflect updates to + * the file tree that occur after returned from this method. + *

By default, symbolic links are not automatically followed by this + * method. If the {@code options} parameter contains the {@link + * FileVisitOption#FOLLOW_LINKS FOLLOW_LINKS} option then symbolic links are + * followed. When following links, and the attributes of the target cannot + * be read, then this method attempts to get the {@code BasicFileAttributes} + * of the link. + *

If the {@code options} parameter contains the {@link + * FileVisitOption#FOLLOW_LINKS FOLLOW_LINKS} option then the stream keeps + * track of directories visited so that cycles can be detected. A cycle + * arises when there is an entry in a directory that is an ancestor of the + * directory. Cycle detection is done by recording the {@link + * java.nio.file.attribute.BasicFileAttributes#fileKey file-key} of directories, + * or if file keys are not available, by invoking the {@link #isSameFile + * isSameFile} method to test if a directory is the same file as an + * ancestor. When a cycle is detected it is treated as an I/O error with + * an instance of {@link FileSystemLoopException}. + *

The {@code maxDepth} parameter is the maximum number of levels of + * directories to visit. A value of {@code 0} means that only the starting + * file is visited, unless denied by the security manager. A value of + * {@link Integer#MAX_VALUE MAX_VALUE} may be used to indicate that all + * levels should be visited. + *

When a security manager is installed and it denies access to a file + * (or directory), then it is ignored and not included in the stream. + *

The returned stream encapsulates one or more {@link DirectoryStream}s. + * If timely disposal of file system resources is required, the + * {@code try}-with-resources construct should be used to ensure that the + * stream's {@link Stream#close close} method is invoked after the stream + * operations are completed. Operating on a closed stream will result in an + * {@link java.lang.IllegalStateException}. + *

If an {@link IOException} is thrown when accessing the directory + * after this method has returned, it is wrapped in an {@link + * UncheckedIOException} which will be thrown from the method that caused + * the access to take place. + */ + // @ts-ignore + public static walk(start: java.nio.file.Path, maxDepth: number, options: java.nio.file.FileVisitOption): java.util.stream.Stream; + /** + * Return a {@code Stream} that is lazily populated with {@code + * Path} by walking the file tree rooted at a given starting file. The + * file tree is traversed depth-first, the elements in the stream + * are {@link Path} objects that are obtained as if by {@link + * Path#resolve(Path) resolving} the relative path against {@code start}. + *

This method works as if invoking it were equivalent to evaluating the + * expression: + *

+                 * walk(start, Integer.MAX_VALUE, options)
+                 * 
+ * In other words, it visits all levels of the file tree. + *

The returned stream encapsulates one or more {@link DirectoryStream}s. + * If timely disposal of file system resources is required, the + * {@code try}-with-resources construct should be used to ensure that the + * stream's {@link Stream#close close} method is invoked after the stream + * operations are completed. Operating on a closed stream will result in an + * {@link java.lang.IllegalStateException}. + */ + // @ts-ignore + public static walk(start: java.nio.file.Path, options: java.nio.file.FileVisitOption): java.util.stream.Stream; + /** + * Return a {@code Stream} that is lazily populated with {@code + * Path} by searching for files in a file tree rooted at a given starting + * file. + *

This method walks the file tree in exactly the manner specified by + * the {@link #walk walk} method. For each file encountered, the given + * {@link BiPredicate} is invoked with its {@link Path} and {@link + * BasicFileAttributes}. The {@code Path} object is obtained as if by + * {@link Path#resolve(Path) resolving} the relative path against {@code + * start} and is only included in the returned {@link Stream} if + * the {@code BiPredicate} returns true. Compare to calling {@link + * java.util.stream.Stream#filter filter} on the {@code Stream} + * returned by {@code walk} method, this method may be more efficient by + * avoiding redundant retrieval of the {@code BasicFileAttributes}. + *

The returned stream encapsulates one or more {@link DirectoryStream}s. + * If timely disposal of file system resources is required, the + * {@code try}-with-resources construct should be used to ensure that the + * stream's {@link Stream#close close} method is invoked after the stream + * operations are completed. Operating on a closed stream will result in an + * {@link java.lang.IllegalStateException}. + *

If an {@link IOException} is thrown when accessing the directory + * after returned from this method, it is wrapped in an {@link + * UncheckedIOException} which will be thrown from the method that caused + * the access to take place. + */ + // @ts-ignore + public static find(start: java.nio.file.Path, maxDepth: number, matcher: java.util.function$.BiPredicate, options: java.nio.file.FileVisitOption): java.util.stream.Stream; + /** + * Read all lines from a file as a {@code Stream}. Unlike {@link + * #readAllLines(Path, Charset) readAllLines}, this method does not read + * all lines into a {@code List}, but instead populates lazily as the stream + * is consumed. + *

Bytes from the file are decoded into characters using the specified + * charset and the same line terminators as specified by {@code + * readAllLines} are supported. + *

After this method returns, then any subsequent I/O exception that + * occurs while reading from the file or when a malformed or unmappable byte + * sequence is read, is wrapped in an {@link UncheckedIOException} that will + * be thrown from the + * {@link java.util.stream.Stream} method that caused the read to take + * place. In case an {@code IOException} is thrown when closing the file, + * it is also wrapped as an {@code UncheckedIOException}. + *

The returned stream encapsulates a {@link Reader}. If timely + * disposal of file system resources is required, the try-with-resources + * construct should be used to ensure that the stream's + * {@link Stream#close close} method is invoked after the stream operations + * are completed. + */ + // @ts-ignore + public static lines(path: java.nio.file.Path, cs: java.nio.charset.Charset): java.util.stream.Stream; + /** + * Read all lines from a file as a {@code Stream}. Bytes from the file are + * decoded into characters using the {@link StandardCharsets#UTF_8 UTF-8} + * {@link Charset charset}. + *

This method works as if invoking it were equivalent to evaluating the + * expression: + *

{@code
+                 * Files.lines(path, StandardCharsets.UTF_8)
+                 * }
+ */ + // @ts-ignore + public static lines(path: java.nio.file.Path): java.util.stream.Stream; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.InvalidPathException.d.ts b/packages/types/dist/typings/jdk/java.nio.file.InvalidPathException.d.ts new file mode 100644 index 00000000..5fbed5a2 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.InvalidPathException.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + class InvalidPathException extends java.lang.IllegalArgumentException { + /** + * Constructs an instance from the given input string, reason, and error + * index. + */ + // @ts-ignore + constructor(input: string, reason: string, index: number) + /** + * Constructs an instance from the given input string and reason. The + * resulting object will have an error index of -1. + */ + // @ts-ignore + constructor(input: string, reason: string) + /** + * Returns the input string. + */ + // @ts-ignore + public getInput(): string; + /** + * Returns a string explaining why the input string was rejected. + */ + // @ts-ignore + public getReason(): string; + /** + * Returns an index into the input string of the position at which the + * error occurred, or -1 if this position is not known. + */ + // @ts-ignore + public getIndex(): number; + /** + * Returns a string describing the error. The resulting string + * consists of the reason string followed by a colon character + * (':'), a space, and the input string. If the error index is + * defined then the string " at index " followed by the index, in + * decimal, is inserted after the reason string and before the colon + * character. + */ + // @ts-ignore + public getMessage(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.LinkOption.d.ts b/packages/types/dist/typings/jdk/java.nio.file.LinkOption.d.ts new file mode 100644 index 00000000..689e17e0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.LinkOption.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + class LinkOption extends java.lang.Enum { + // @ts-ignore + public static NOFOLLOW_LINKS: java.nio.file.LinkOption; + // @ts-ignore + public static values(): java.nio.file.LinkOption[]; + // @ts-ignore + public static valueOf(name: string): java.nio.file.LinkOption; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.LinkPermission.d.ts b/packages/types/dist/typings/jdk/java.nio.file.LinkPermission.d.ts new file mode 100644 index 00000000..0963b45d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.LinkPermission.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + class LinkPermission extends java.security.BasicPermission { + /** + * Constructs a {@code LinkPermission} with the specified name. + */ + // @ts-ignore + constructor(name: string) + /** + * Constructs a {@code LinkPermission} with the specified name. + */ + // @ts-ignore + constructor(name: string, actions: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.NoSuchFileException.d.ts b/packages/types/dist/typings/jdk/java.nio.file.NoSuchFileException.d.ts new file mode 100644 index 00000000..c426ed1d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.NoSuchFileException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + class NoSuchFileException extends java.nio.file.FileSystemException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor(file: string) + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor(file: string, other: string, reason: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.NotDirectoryException.d.ts b/packages/types/dist/typings/jdk/java.nio.file.NotDirectoryException.d.ts new file mode 100644 index 00000000..ef2a6acd --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.NotDirectoryException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + class NotDirectoryException extends java.nio.file.FileSystemException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor(file: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.NotLinkException.d.ts b/packages/types/dist/typings/jdk/java.nio.file.NotLinkException.d.ts new file mode 100644 index 00000000..4ad2f321 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.NotLinkException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + class NotLinkException extends java.nio.file.FileSystemException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor(file: string) + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor(file: string, other: string, reason: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.OpenOption.d.ts b/packages/types/dist/typings/jdk/java.nio.file.OpenOption.d.ts new file mode 100644 index 00000000..85a914e3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.OpenOption.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + interface OpenOption { + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.Path.d.ts b/packages/types/dist/typings/jdk/java.nio.file.Path.d.ts new file mode 100644 index 00000000..2df02f6d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.Path.d.ts @@ -0,0 +1,416 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + interface Path { + /** + * Returns the file system that created this object. + */ + // @ts-ignore + getFileSystem(): java.nio.file.FileSystem; + /** + * Tells whether or not this path is absolute. + *

An absolute path is complete in that it doesn't need to be combined + * with other path information in order to locate a file. + */ + // @ts-ignore + isAbsolute(): boolean; + /** + * Returns the root component of this path as a {@code Path} object, + * or {@code null} if this path does not have a root component. + */ + // @ts-ignore + getRoot(): java.nio.file.Path; + /** + * Returns the name of the file or directory denoted by this path as a + * {@code Path} object. The file name is the farthest element from + * the root in the directory hierarchy. + */ + // @ts-ignore + getFileName(): java.nio.file.Path; + /** + * Returns the parent path, or {@code null} if this path does not + * have a parent. + *

The parent of this path object consists of this path's root + * component, if any, and each element in the path except for the + * farthest from the root in the directory hierarchy. This method + * does not access the file system; the path or its parent may not exist. + * Furthermore, this method does not eliminate special names such as "." + * and ".." that may be used in some implementations. On UNIX for example, + * the parent of "{@code /a/b/c}" is "{@code /a/b}", and the parent of + * {@code "x/y/.}" is "{@code x/y}". This method may be used with the {@link + * #normalize normalize} method, to eliminate redundant names, for cases where + * shell-like navigation is required. + *

If this path has one or more elements, and no root component, then + * this method is equivalent to evaluating the expression: + *

+                 * subpath(0, getNameCount()-1);
+                 * 
+ */ + // @ts-ignore + getParent(): java.nio.file.Path; + /** + * Returns the number of name elements in the path. + */ + // @ts-ignore + getNameCount(): number; + /** + * Returns a name element of this path as a {@code Path} object. + *

The {@code index} parameter is the index of the name element to return. + * The element that is closest to the root in the directory hierarchy + * has index {@code 0}. The element that is farthest from the root + * has index {@link #getNameCount count}{@code -1}. + */ + // @ts-ignore + getName(index: number): java.nio.file.Path; + /** + * Returns a relative {@code Path} that is a subsequence of the name + * elements of this path. + *

The {@code beginIndex} and {@code endIndex} parameters specify the + * subsequence of name elements. The name that is closest to the root + * in the directory hierarchy has index {@code 0}. The name that is + * farthest from the root has index {@link #getNameCount + * count}{@code -1}. The returned {@code Path} object has the name elements + * that begin at {@code beginIndex} and extend to the element at index {@code + * endIndex-1}. + */ + // @ts-ignore + subpath(beginIndex: number, endIndex: number): java.nio.file.Path; + /** + * Tests if this path starts with the given path. + *

This path starts with the given path if this path's root + * component starts with the root component of the given path, + * and this path starts with the same name elements as the given path. + * If the given path has more name elements than this path then {@code false} + * is returned. + *

Whether or not the root component of this path starts with the root + * component of the given path is file system specific. If this path does + * not have a root component and the given path has a root component then + * this path does not start with the given path. + *

If the given path is associated with a different {@code FileSystem} + * to this path then {@code false} is returned. + */ + // @ts-ignore + startsWith(other: java.nio.file.Path): boolean; + /** + * Tests if this path starts with a {@code Path}, constructed by converting + * the given path string, in exactly the manner specified by the {@link + * #startsWith(Path) startsWith(Path)} method. On UNIX for example, the path + * "{@code foo/bar}" starts with "{@code foo}" and "{@code foo/bar}". It + * does not start with "{@code f}" or "{@code fo}". + */ + // @ts-ignore + startsWith(other: string): boolean; + /** + * Tests if this path ends with the given path. + *

If the given path has N elements, and no root component, + * and this path has N or more elements, then this path ends with + * the given path if the last N elements of each path, starting at + * the element farthest from the root, are equal. + *

If the given path has a root component then this path ends with the + * given path if the root component of this path ends with the root + * component of the given path, and the corresponding elements of both paths + * are equal. Whether or not the root component of this path ends with the + * root component of the given path is file system specific. If this path + * does not have a root component and the given path has a root component + * then this path does not end with the given path. + *

If the given path is associated with a different {@code FileSystem} + * to this path then {@code false} is returned. + */ + // @ts-ignore + endsWith(other: java.nio.file.Path): boolean; + /** + * Tests if this path ends with a {@code Path}, constructed by converting + * the given path string, in exactly the manner specified by the {@link + * #endsWith(Path) endsWith(Path)} method. On UNIX for example, the path + * "{@code foo/bar}" ends with "{@code foo/bar}" and "{@code bar}". It does + * not end with "{@code r}" or "{@code /bar}". Note that trailing separators + * are not taken into account, and so invoking this method on the {@code + * Path}"{@code foo/bar}" with the {@code String} "{@code bar/}" returns + * {@code true}. + */ + // @ts-ignore + endsWith(other: string): boolean; + /** + * Returns a path that is this path with redundant name elements eliminated. + *

The precise definition of this method is implementation dependent but + * in general it derives from this path, a path that does not contain + * redundant name elements. In many file systems, the "{@code .}" + * and "{@code ..}" are special names used to indicate the current directory + * and parent directory. In such file systems all occurrences of "{@code .}" + * are considered redundant. If a "{@code ..}" is preceded by a + * non-"{@code ..}" name then both names are considered redundant (the + * process to identify such names is repeated until it is no longer + * applicable). + *

This method does not access the file system; the path may not locate + * a file that exists. Eliminating "{@code ..}" and a preceding name from a + * path may result in the path that locates a different file than the original + * path. This can arise when the preceding name is a symbolic link. + */ + // @ts-ignore + normalize(): java.nio.file.Path; + /** + * Resolve the given path against this path. + *

If the {@code other} parameter is an {@link #isAbsolute() absolute} + * path then this method trivially returns {@code other}. If {@code other} + * is an empty path then this method trivially returns this path. + * Otherwise this method considers this path to be a directory and resolves + * the given path against this path. In the simplest case, the given path + * does not have a {@link #getRoot root} component, in which case this method + * joins the given path to this path and returns a resulting path + * that {@link #endsWith ends} with the given path. Where the given path has + * a root component then resolution is highly implementation dependent and + * therefore unspecified. + */ + // @ts-ignore + resolve(other: java.nio.file.Path): java.nio.file.Path; + /** + * Converts a given path string to a {@code Path} and resolves it against + * this {@code Path} in exactly the manner specified by the {@link + * #resolve(Path) resolve} method. For example, suppose that the name + * separator is "{@code /}" and a path represents "{@code foo/bar}", then + * invoking this method with the path string "{@code gus}" will result in + * the {@code Path} "{@code foo/bar/gus}". + */ + // @ts-ignore + resolve(other: string): java.nio.file.Path; + /** + * Resolves the given path against this path's {@link #getParent parent} + * path. This is useful where a file name needs to be replaced with + * another file name. For example, suppose that the name separator is + * "{@code /}" and a path represents "{@code dir1/dir2/foo}", then invoking + * this method with the {@code Path} "{@code bar}" will result in the {@code + * Path} "{@code dir1/dir2/bar}". If this path does not have a parent path, + * or {@code other} is {@link #isAbsolute() absolute}, then this method + * returns {@code other}. If {@code other} is an empty path then this method + * returns this path's parent, or where this path doesn't have a parent, the + * empty path. + */ + // @ts-ignore + resolveSibling(other: java.nio.file.Path): java.nio.file.Path; + /** + * Converts a given path string to a {@code Path} and resolves it against + * this path's {@link #getParent parent} path in exactly the manner + * specified by the {@link #resolveSibling(Path) resolveSibling} method. + */ + // @ts-ignore + resolveSibling(other: string): java.nio.file.Path; + /** + * Constructs a relative path between this path and a given path. + *

Relativization is the inverse of {@link #resolve(Path) resolution}. + * This method attempts to construct a {@link #isAbsolute relative} path + * that when {@link #resolve(Path) resolved} against this path, yields a + * path that locates the same file as the given path. For example, on UNIX, + * if this path is {@code "/a/b"} and the given path is {@code "/a/b/c/d"} + * then the resulting relative path would be {@code "c/d"}. Where this + * path and the given path do not have a {@link #getRoot root} component, + * then a relative path can be constructed. A relative path cannot be + * constructed if only one of the paths have a root component. Where both + * paths have a root component then it is implementation dependent if a + * relative path can be constructed. If this path and the given path are + * {@link #equals equal} then an empty path is returned. + *

For any two {@link #normalize normalized} paths p and + * q, where q does not have a root component, + *

+ * p.relativize(p.resolve(q)).equals(q) + *
+ *

When symbolic links are supported, then whether the resulting path, + * when resolved against this path, yields a path that can be used to locate + * the {@link Files#isSameFile same} file as {@code other} is implementation + * dependent. For example, if this path is {@code "/a/b"} and the given + * path is {@code "/a/x"} then the resulting relative path may be {@code + * "../x"}. If {@code "b"} is a symbolic link then is implementation + * dependent if {@code "a/b/../x"} would locate the same file as {@code "/a/x"}. + */ + // @ts-ignore + relativize(other: java.nio.file.Path): java.nio.file.Path; + /** + * Returns a URI to represent this path. + *

This method constructs an absolute {@link URI} with a {@link + * URI#getScheme() scheme} equal to the URI scheme that identifies the + * provider. The exact form of the scheme specific part is highly provider + * dependent. + *

In the case of the default provider, the URI is hierarchical with + * a {@link URI#getPath() path} component that is absolute. The query and + * fragment components are undefined. Whether the authority component is + * defined or not is implementation dependent. There is no guarantee that + * the {@code URI} may be used to construct a {@link java.io.File java.io.File}. + * In particular, if this path represents a Universal Naming Convention (UNC) + * path, then the UNC server name may be encoded in the authority component + * of the resulting URI. In the case of the default provider, and the file + * exists, and it can be determined that the file is a directory, then the + * resulting {@code URI} will end with a slash. + *

The default provider provides a similar round-trip guarantee + * to the {@link java.io.File} class. For a given {@code Path} p it + * is guaranteed that + *

+ * {@link Paths#get(URI) Paths.get}(p.toUri()).equals(p + * .{@link #toAbsolutePath() toAbsolutePath}()) + *
+ * so long as the original {@code Path}, the {@code URI}, and the new {@code + * Path} are all created in (possibly different invocations of) the same + * Java virtual machine. Whether other providers make any guarantees is + * provider specific and therefore unspecified. + *

When a file system is constructed to access the contents of a file + * as a file system then it is highly implementation specific if the returned + * URI represents the given path in the file system or it represents a + * compound URI that encodes the URI of the enclosing file system. + * A format for compound URIs is not defined in this release; such a scheme + * may be added in a future release. + */ + // @ts-ignore + toUri(): java.net.URI; + /** + * Returns a {@code Path} object representing the absolute path of this + * path. + *

If this path is already {@link Path#isAbsolute absolute} then this + * method simply returns this path. Otherwise, this method resolves the path + * in an implementation dependent manner, typically by resolving the path + * against a file system default directory. Depending on the implementation, + * this method may throw an I/O error if the file system is not accessible. + */ + // @ts-ignore + toAbsolutePath(): java.nio.file.Path; + /** + * Returns the real path of an existing file. + *

The precise definition of this method is implementation dependent but + * in general it derives from this path, an {@link #isAbsolute absolute} + * path that locates the {@link Files#isSameFile same} file as this path, but + * with name elements that represent the actual name of the directories + * and the file. For example, where filename comparisons on a file system + * are case insensitive then the name elements represent the names in their + * actual case. Additionally, the resulting path has redundant name + * elements removed. + *

If this path is relative then its absolute path is first obtained, + * as if by invoking the {@link #toAbsolutePath toAbsolutePath} method. + *

The {@code options} array may be used to indicate how symbolic links + * are handled. By default, symbolic links are resolved to their final + * target. If the option {@link LinkOption#NOFOLLOW_LINKS NOFOLLOW_LINKS} is + * present then this method does not resolve symbolic links. + * Some implementations allow special names such as "{@code ..}" to refer to + * the parent directory. When deriving the real path, and a + * "{@code ..}" (or equivalent) is preceded by a non-"{@code ..}" name then + * an implementation will typically cause both names to be removed. When + * not resolving symbolic links and the preceding name is a symbolic link + * then the names are only removed if it guaranteed that the resulting path + * will locate the same file as this path. + */ + // @ts-ignore + toRealPath(options: java.nio.file.LinkOption): java.nio.file.Path; + /** + * Returns a {@link File} object representing this path. Where this {@code + * Path} is associated with the default provider, then this method is + * equivalent to returning a {@code File} object constructed with the + * {@code String} representation of this path. + *

If this path was created by invoking the {@code File} {@link + * File#toPath toPath} method then there is no guarantee that the {@code + * File} object returned by this method is {@link #equals equal} to the + * original {@code File}. + */ + // @ts-ignore + toFile(): java.io.File; + /** + * Registers the file located by this path with a watch service. + *

In this release, this path locates a directory that exists. The + * directory is registered with the watch service so that entries in the + * directory can be watched. The {@code events} parameter is the events to + * register and may contain the following events: + *

    + *
  • {@link StandardWatchEventKinds#ENTRY_CREATE ENTRY_CREATE} - + * entry created or moved into the directory
  • + *
  • {@link StandardWatchEventKinds#ENTRY_DELETE ENTRY_DELETE} - + * entry deleted or moved out of the directory
  • + *
  • {@link StandardWatchEventKinds#ENTRY_MODIFY ENTRY_MODIFY} - + * entry in directory was modified
  • + *
+ *

The {@link WatchEvent#context context} for these events is the + * relative path between the directory located by this path, and the path + * that locates the directory entry that is created, deleted, or modified. + *

The set of events may include additional implementation specific + * event that are not defined by the enum {@link StandardWatchEventKinds} + *

The {@code modifiers} parameter specifies modifiers that + * qualify how the directory is registered. This release does not define any + * standard modifiers. It may contain implementation specific + * modifiers. + *

Where a file is registered with a watch service by means of a symbolic + * link then it is implementation specific if the watch continues to depend + * on the existence of the symbolic link after it is registered. + */ + // @ts-ignore + register(watcher: java.nio.file.WatchService, events: java.nio.file.WatchEvent.Kind, modifiers: java.nio.file.WatchEvent.Modifier): java.nio.file.WatchKey; + /** + * Registers the file located by this path with a watch service. + *

An invocation of this method behaves in exactly the same way as the + * invocation + *

+                 * watchable.{@link #register(WatchService,WatchEvent.Kind[],WatchEvent.Modifier[]) register}(watcher, events, new WatchEvent.Modifier[0]);
+                 * 
+ *

Usage Example: + * Suppose we wish to register a directory for entry create, delete, and modify + * events: + *

+                 * Path dir = ...
+                 * WatchService watcher = ...
+                 * WatchKey key = dir.register(watcher, ENTRY_CREATE, ENTRY_DELETE, ENTRY_MODIFY);
+                 * 
+ */ + // @ts-ignore + register(watcher: java.nio.file.WatchService, events: java.nio.file.WatchEvent.Kind): java.nio.file.WatchKey; + /** + * Returns an iterator over the name elements of this path. + *

The first element returned by the iterator represents the name + * element that is closest to the root in the directory hierarchy, the + * second element is the next closest, and so on. The last element returned + * is the name of the file or directory denoted by this path. The {@link + * #getRoot root} component, if present, is not returned by the iterator. + */ + // @ts-ignore + iterator(): java.util.Iterator; + /** + * Compares two abstract paths lexicographically. The ordering defined by + * this method is provider specific, and in the case of the default + * provider, platform specific. This method does not access the file system + * and neither file is required to exist. + *

This method may not be used to compare paths that are associated + * with different file system providers. + */ + // @ts-ignore + compareTo(other: java.nio.file.Path): number; + /** + * Tests this path for equality with the given object. + *

If the given object is not a Path, or is a Path associated with a + * different {@code FileSystem}, then this method returns {@code false}. + *

Whether or not two path are equal depends on the file system + * implementation. In some cases the paths are compared without regard + * to case, and others are case sensitive. This method does not access the + * file system and the file is not required to exist. Where required, the + * {@link Files#isSameFile isSameFile} method may be used to check if two + * paths locate the same file. + *

This method satisfies the general contract of the {@link + * java.lang.Object#equals(Object) Object.equals} method.

+ */ + // @ts-ignore + equals(other: java.lang.Object): boolean; + /** + * Computes a hash code for this path. + *

The hash code is based upon the components of the path, and + * satisfies the general contract of the {@link Object#hashCode + * Object.hashCode} method. + */ + // @ts-ignore + hashCode(): number; + /** + * Returns the string representation of this path. + *

If this path was created by converting a path string using the + * {@link FileSystem#getPath getPath} method then the path string returned + * by this method may differ from the original String used to create the path. + *

The returned path string uses the default name {@link + * FileSystem#getSeparator separator} to separate names in the path. + */ + // @ts-ignore + toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.PathMatcher.d.ts b/packages/types/dist/typings/jdk/java.nio.file.PathMatcher.d.ts new file mode 100644 index 00000000..42689be0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.PathMatcher.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + interface PathMatcher { + /** + * Tells if given path matches this matcher's pattern. + */ + // @ts-ignore + matches(path: java.nio.file.Path): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.Paths.d.ts b/packages/types/dist/typings/jdk/java.nio.file.Paths.d.ts new file mode 100644 index 00000000..42b20b61 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.Paths.d.ts @@ -0,0 +1,67 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + class Paths extends java.lang.Object { + /** + * Converts a path string, or a sequence of strings that when joined form + * a path string, to a {@code Path}. If {@code more} does not specify any + * elements then the value of the {@code first} parameter is the path string + * to convert. If {@code more} specifies one or more elements then each + * non-empty string, including {@code first}, is considered to be a sequence + * of name elements (see {@link Path}) and is joined to form a path string. + * The details as to how the Strings are joined is provider specific but + * typically they will be joined using the {@link FileSystem#getSeparator + * name-separator} as the separator. For example, if the name separator is + * "{@code /}" and {@code getPath("/foo","bar","gus")} is invoked, then the + * path string {@code "/foo/bar/gus"} is converted to a {@code Path}. + * A {@code Path} representing an empty path is returned if {@code first} + * is the empty string and {@code more} does not contain any non-empty + * strings. + *

The {@code Path} is obtained by invoking the {@link FileSystem#getPath + * getPath} method of the {@link FileSystems#getDefault default} {@link + * FileSystem}. + *

Note that while this method is very convenient, using it will imply + * an assumed reference to the default {@code FileSystem} and limit the + * utility of the calling code. Hence it should not be used in library code + * intended for flexible reuse. A more flexible alternative is to use an + * existing {@code Path} instance as an anchor, such as: + *

+                 * Path dir = ...
+                 * Path path = dir.resolve("file");
+                 * 
+ */ + // @ts-ignore + public static get(first: string, more: string): java.nio.file.Path; + /** + * Converts the given URI to a {@link Path} object. + *

This method iterates over the {@link FileSystemProvider#installedProviders() + * installed} providers to locate the provider that is identified by the + * URI {@link URI#getScheme scheme} of the given URI. URI schemes are + * compared without regard to case. If the provider is found then its {@link + * FileSystemProvider#getPath getPath} method is invoked to convert the + * URI. + *

In the case of the default provider, identified by the URI scheme + * "file", the given URI has a non-empty path component, and undefined query + * and fragment components. Whether the authority component may be present + * is platform specific. The returned {@code Path} is associated with the + * {@link FileSystems#getDefault default} file system. + *

The default provider provides a similar round-trip guarantee + * to the {@link java.io.File} class. For a given {@code Path} p it + * is guaranteed that + *

+ * Paths.get(p.{@link Path#toUri() toUri}()).equals( + * p.{@link Path#toAbsolutePath() toAbsolutePath}()) + *
+ * so long as the original {@code Path}, the {@code URI}, and the new {@code + * Path} are all created in (possibly different invocations of) the same + * Java virtual machine. Whether other providers make any guarantees is + * provider specific and therefore unspecified. + */ + // @ts-ignore + public static get(uri: java.net.URI): java.nio.file.Path; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.ProviderMismatchException.d.ts b/packages/types/dist/typings/jdk/java.nio.file.ProviderMismatchException.d.ts new file mode 100644 index 00000000..78c0e6e1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.ProviderMismatchException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + class ProviderMismatchException extends java.lang.IllegalArgumentException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor(msg: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.ProviderNotFoundException.d.ts b/packages/types/dist/typings/jdk/java.nio.file.ProviderNotFoundException.d.ts new file mode 100644 index 00000000..bb5f4126 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.ProviderNotFoundException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + class ProviderNotFoundException extends java.lang.RuntimeException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor(msg: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.ReadOnlyFileSystemException.d.ts b/packages/types/dist/typings/jdk/java.nio.file.ReadOnlyFileSystemException.d.ts new file mode 100644 index 00000000..fa703532 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.ReadOnlyFileSystemException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + class ReadOnlyFileSystemException extends java.lang.UnsupportedOperationException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.SecureDirectoryStream.d.ts b/packages/types/dist/typings/jdk/java.nio.file.SecureDirectoryStream.d.ts new file mode 100644 index 00000000..e1e60b20 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.SecureDirectoryStream.d.ts @@ -0,0 +1,117 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + interface SecureDirectoryStream { + /** + * Opens the directory identified by the given path, returning a {@code + * SecureDirectoryStream} to iterate over the entries in the directory. + *

This method works in exactly the manner specified by the {@link + * Files#newDirectoryStream(Path) newDirectoryStream} method for the case that + * the {@code path} parameter is an {@link Path#isAbsolute absolute} path. + * When the parameter is a relative path then the directory to open is + * relative to this open directory. The {@link + * LinkOption#NOFOLLOW_LINKS NOFOLLOW_LINKS} option may be used to + * ensure that this method fails if the file is a symbolic link. + *

The new directory stream, once created, is not dependent upon the + * directory stream used to create it. Closing this directory stream has no + * effect upon newly created directory stream. + */ + // @ts-ignore + newDirectoryStream(path: java.lang.Object, options: java.nio.file.LinkOption): java.nio.file.SecureDirectoryStream; + /** + * Opens or creates a file in this directory, returning a seekable byte + * channel to access the file. + *

This method works in exactly the manner specified by the {@link + * Files#newByteChannel Files.newByteChannel} method for the + * case that the {@code path} parameter is an {@link Path#isAbsolute absolute} + * path. When the parameter is a relative path then the file to open or + * create is relative to this open directory. In addition to the options + * defined by the {@code Files.newByteChannel} method, the {@link + * LinkOption#NOFOLLOW_LINKS NOFOLLOW_LINKS} option may be used to + * ensure that this method fails if the file is a symbolic link. + *

The channel, once created, is not dependent upon the directory stream + * used to create it. Closing this directory stream has no effect upon the + * channel. + */ + // @ts-ignore + newByteChannel(path: java.lang.Object, options: java.util.Set, attrs: java.nio.file.attribute.FileAttribute): java.nio.channels.SeekableByteChannel; + /** + * Deletes a file. + *

Unlike the {@link Files#delete delete()} method, this method does + * not first examine the file to determine if the file is a directory. + * Whether a directory is deleted by this method is system dependent and + * therefore not specified. If the file is a symbolic link, then the link + * itself, not the final target of the link, is deleted. When the + * parameter is a relative path then the file to delete is relative to + * this open directory. + */ + // @ts-ignore + deleteFile(path: java.lang.Object): void; + /** + * Deletes a directory. + *

Unlike the {@link Files#delete delete()} method, this method + * does not first examine the file to determine if the file is a directory. + * Whether non-directories are deleted by this method is system dependent and + * therefore not specified. When the parameter is a relative path then the + * directory to delete is relative to this open directory. + */ + // @ts-ignore + deleteDirectory(path: java.lang.Object): void; + /** + * Move a file from this directory to another directory. + *

This method works in a similar manner to {@link Files#move move} + * method when the {@link StandardCopyOption#ATOMIC_MOVE ATOMIC_MOVE} option + * is specified. That is, this method moves a file as an atomic file system + * operation. If the {@code srcpath} parameter is an {@link Path#isAbsolute + * absolute} path then it locates the source file. If the parameter is a + * relative path then it is located relative to this open directory. If + * the {@code targetpath} parameter is absolute then it locates the target + * file (the {@code targetdir} parameter is ignored). If the parameter is + * a relative path it is located relative to the open directory identified + * by the {@code targetdir} parameter. In all cases, if the target file + * exists then it is implementation specific if it is replaced or this + * method fails. + */ + // @ts-ignore + move(srcpath: java.lang.Object, targetdir: java.nio.file.SecureDirectoryStream, targetpath: java.lang.Object): void; + /** + * Returns a new file attribute view to access the file attributes of this + * directory. + *

The resulting file attribute view can be used to read or update the + * attributes of this (open) directory. The {@code type} parameter specifies + * the type of the attribute view and the method returns an instance of that + * type if supported. Invoking this method to obtain a {@link + * BasicFileAttributeView} always returns an instance of that class that is + * bound to this open directory. + *

The state of resulting file attribute view is intimately connected + * to this directory stream. Once the directory stream is {@link #close closed}, + * then all methods to read or update attributes will throw {@link + * ClosedDirectoryStreamException ClosedDirectoryStreamException}. + */ + // @ts-ignore + getFileAttributeView(type: java.lang.Class): java.nio.file.attribute.FileAttributeView; + /** + * Returns a new file attribute view to access the file attributes of a file + * in this directory. + *

The resulting file attribute view can be used to read or update the + * attributes of file in this directory. The {@code type} parameter specifies + * the type of the attribute view and the method returns an instance of that + * type if supported. Invoking this method to obtain a {@link + * BasicFileAttributeView} always returns an instance of that class that is + * bound to the file in the directory. + *

The state of resulting file attribute view is intimately connected + * to this directory stream. Once the directory stream {@link #close closed}, + * then all methods to read or update attributes will throw {@link + * ClosedDirectoryStreamException ClosedDirectoryStreamException}. The + * file is not required to exist at the time that the file attribute view + * is created but methods to read or update attributes of the file will + * fail when invoked and the file does not exist. + */ + // @ts-ignore + getFileAttributeView(path: java.lang.Object, type: java.lang.Class, options: java.nio.file.LinkOption): java.nio.file.attribute.FileAttributeView; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.SimpleFileVisitor.d.ts b/packages/types/dist/typings/jdk/java.nio.file.SimpleFileVisitor.d.ts new file mode 100644 index 00000000..b6dcff21 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.SimpleFileVisitor.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + class SimpleFileVisitor extends java.lang.Object { + /** + * Initializes a new instance of this class. + */ + // @ts-ignore + constructor() + /** + * Invoked for a directory before entries in the directory are visited. + *

Unless overridden, this method returns {@link FileVisitResult#CONTINUE + * CONTINUE}. + */ + // @ts-ignore + public preVisitDirectory(dir: java.lang.Object, attrs: java.nio.file.attribute.BasicFileAttributes): java.nio.file.FileVisitResult; + /** + * Invoked for a file in a directory. + *

Unless overridden, this method returns {@link FileVisitResult#CONTINUE + * CONTINUE}. + */ + // @ts-ignore + public visitFile(file: java.lang.Object, attrs: java.nio.file.attribute.BasicFileAttributes): java.nio.file.FileVisitResult; + /** + * Invoked for a file that could not be visited. + *

Unless overridden, this method re-throws the I/O exception that prevented + * the file from being visited. + */ + // @ts-ignore + public visitFileFailed(file: java.lang.Object, exc: java.io.IOException): java.nio.file.FileVisitResult; + /** + * Invoked for a directory after entries in the directory, and all of their + * descendants, have been visited. + *

Unless overridden, this method returns {@link FileVisitResult#CONTINUE + * CONTINUE} if the directory iteration completes without an I/O exception; + * otherwise this method re-throws the I/O exception that caused the iteration + * of the directory to terminate prematurely. + */ + // @ts-ignore + public postVisitDirectory(dir: java.lang.Object, exc: java.io.IOException): java.nio.file.FileVisitResult; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.StandardCopyOption.d.ts b/packages/types/dist/typings/jdk/java.nio.file.StandardCopyOption.d.ts new file mode 100644 index 00000000..f9d8d992 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.StandardCopyOption.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + class StandardCopyOption extends java.lang.Enum { + // @ts-ignore + public static REPLACE_EXISTING: java.nio.file.StandardCopyOption; + // @ts-ignore + public static COPY_ATTRIBUTES: java.nio.file.StandardCopyOption; + // @ts-ignore + public static ATOMIC_MOVE: java.nio.file.StandardCopyOption; + // @ts-ignore + public static values(): java.nio.file.StandardCopyOption[]; + // @ts-ignore + public static valueOf(name: string): java.nio.file.StandardCopyOption; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.StandardOpenOption.d.ts b/packages/types/dist/typings/jdk/java.nio.file.StandardOpenOption.d.ts new file mode 100644 index 00000000..8ada87ee --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.StandardOpenOption.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + class StandardOpenOption extends java.lang.Enum { + // @ts-ignore + public static READ: java.nio.file.StandardOpenOption; + // @ts-ignore + public static WRITE: java.nio.file.StandardOpenOption; + // @ts-ignore + public static APPEND: java.nio.file.StandardOpenOption; + // @ts-ignore + public static TRUNCATE_EXISTING: java.nio.file.StandardOpenOption; + // @ts-ignore + public static CREATE: java.nio.file.StandardOpenOption; + // @ts-ignore + public static CREATE_NEW: java.nio.file.StandardOpenOption; + // @ts-ignore + public static DELETE_ON_CLOSE: java.nio.file.StandardOpenOption; + // @ts-ignore + public static SPARSE: java.nio.file.StandardOpenOption; + // @ts-ignore + public static SYNC: java.nio.file.StandardOpenOption; + // @ts-ignore + public static DSYNC: java.nio.file.StandardOpenOption; + // @ts-ignore + public static values(): java.nio.file.StandardOpenOption[]; + // @ts-ignore + public static valueOf(name: string): java.nio.file.StandardOpenOption; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.StandardWatchEventKinds.d.ts b/packages/types/dist/typings/jdk/java.nio.file.StandardWatchEventKinds.d.ts new file mode 100644 index 00000000..7e29ddeb --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.StandardWatchEventKinds.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + class StandardWatchEventKinds extends java.lang.Object { + // @ts-ignore + public static OVERFLOW: java.nio.file.WatchEvent.Kind; + // @ts-ignore + public static ENTRY_CREATE: java.nio.file.WatchEvent.Kind; + // @ts-ignore + public static ENTRY_DELETE: java.nio.file.WatchEvent.Kind; + // @ts-ignore + public static ENTRY_MODIFY: java.nio.file.WatchEvent.Kind; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.WatchEvent.Kind.d.ts b/packages/types/dist/typings/jdk/java.nio.file.WatchEvent.Kind.d.ts new file mode 100644 index 00000000..3c1fcc88 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.WatchEvent.Kind.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + namespace WatchEvent { + // @ts-ignore + interface Kind { + /** + * Returns the name of the event kind. + */ + // @ts-ignore + name(): string; + /** + * Returns the type of the {@link WatchEvent#context context} value. + */ + // @ts-ignore + type(): java.lang.Class; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.WatchEvent.Modifier.d.ts b/packages/types/dist/typings/jdk/java.nio.file.WatchEvent.Modifier.d.ts new file mode 100644 index 00000000..ffb843ac --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.WatchEvent.Modifier.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + namespace WatchEvent { + // @ts-ignore + interface Modifier { + /** + * Returns the name of the modifier. + */ + // @ts-ignore + name(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.WatchEvent.d.ts b/packages/types/dist/typings/jdk/java.nio.file.WatchEvent.d.ts new file mode 100644 index 00000000..0b8ebd2d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.WatchEvent.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + interface WatchEvent { + /** + * Returns the event kind. + */ + // @ts-ignore + kind(): java.nio.file.WatchEvent.Kind; + /** + * Returns the event count. If the event count is greater than {@code 1} + * then this is a repeated event. + */ + // @ts-ignore + count(): number; + /** + * Returns the context for the event. + *

In the case of {@link StandardWatchEventKinds#ENTRY_CREATE ENTRY_CREATE}, + * {@link StandardWatchEventKinds#ENTRY_DELETE ENTRY_DELETE}, and {@link + * StandardWatchEventKinds#ENTRY_MODIFY ENTRY_MODIFY} events the context is + * a {@code Path} that is the {@link Path#relativize relative} path between + * the directory registered with the watch service, and the entry that is + * created, deleted, or modified. + */ + // @ts-ignore + context(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.WatchKey.d.ts b/packages/types/dist/typings/jdk/java.nio.file.WatchKey.d.ts new file mode 100644 index 00000000..cb0187ee --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.WatchKey.d.ts @@ -0,0 +1,60 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + interface WatchKey { + /** + * Tells whether or not this watch key is valid. + *

A watch key is valid upon creation and remains until it is cancelled, + * or its watch service is closed. + */ + // @ts-ignore + isValid(): boolean; + /** + * Retrieves and removes all pending events for this watch key, returning + * a {@code List} of the events that were retrieved. + *

Note that this method does not wait if there are no events pending. + */ + // @ts-ignore + pollEvents(): java.util.List; + /** + * Resets this watch key. + *

If this watch key has been cancelled or this watch key is already in + * the ready state then invoking this method has no effect. Otherwise + * if there are pending events for the object then this watch key is + * immediately re-queued to the watch service. If there are no pending + * events then the watch key is put into the ready state and will remain in + * that state until an event is detected or the watch key is cancelled. + */ + // @ts-ignore + reset(): boolean; + /** + * Cancels the registration with the watch service. Upon return the watch key + * will be invalid. If the watch key is enqueued, waiting to be retrieved + * from the watch service, then it will remain in the queue until it is + * removed. Pending events, if any, remain pending and may be retrieved by + * invoking the {@link #pollEvents pollEvents} method after the key is + * cancelled. + *

If this watch key has already been cancelled then invoking this + * method has no effect. Once cancelled, a watch key remains forever invalid. + */ + // @ts-ignore + cancel(): void; + /** + * Returns the object for which this watch key was created. This method will + * continue to return the object even after the key is cancelled. + *

As the {@code WatchService} is intended to map directly on to the + * native file event notification facility (where available) then many of + * details on how registered objects are watched is highly implementation + * specific. When watching a directory for changes for example, and the + * directory is moved or renamed in the file system, there is no guarantee + * that the watch key will be cancelled and so the object returned by this + * method may no longer be a valid path to the directory. + */ + // @ts-ignore + watchable(): java.nio.file.Watchable; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.WatchService.d.ts b/packages/types/dist/typings/jdk/java.nio.file.WatchService.d.ts new file mode 100644 index 00000000..48bd7ff9 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.WatchService.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + interface WatchService { + /** + * Closes this watch service. + *

If a thread is currently blocked in the {@link #take take} or {@link + * #poll(long,TimeUnit) poll} methods waiting for a key to be queued then + * it immediately receives a {@link ClosedWatchServiceException}. Any + * valid keys associated with this watch service are {@link WatchKey#isValid + * invalidated}. + *

After a watch service is closed, any further attempt to invoke + * operations upon it will throw {@link ClosedWatchServiceException}. + * If this watch service is already closed then invoking this method + * has no effect. + */ + // @ts-ignore + close(): void; + /** + * Retrieves and removes the next watch key, or {@code null} if none are + * present. + */ + // @ts-ignore + poll(): java.nio.file.WatchKey; + /** + * Retrieves and removes the next watch key, waiting if necessary up to the + * specified wait time if none are yet present. + */ + // @ts-ignore + poll(timeout: number, unit: java.util.concurrent.TimeUnit): java.nio.file.WatchKey; + /** + * Retrieves and removes next watch key, waiting if none are yet present. + */ + // @ts-ignore + take(): java.nio.file.WatchKey; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.Watchable.d.ts b/packages/types/dist/typings/jdk/java.nio.file.Watchable.d.ts new file mode 100644 index 00000000..8043f4db --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.Watchable.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + // @ts-ignore + interface Watchable { + /** + * Registers an object with a watch service. + *

If the file system object identified by this object is currently + * registered with the watch service then the watch key, representing that + * registration, is returned after changing the event set or modifiers to + * those specified by the {@code events} and {@code modifiers} parameters. + * Changing the event set does not cause pending events for the object to be + * discarded. Objects are automatically registered for the {@link + * StandardWatchEventKinds#OVERFLOW OVERFLOW} event. This event is not + * required to be present in the array of events. + *

Otherwise the file system object has not yet been registered with the + * given watch service, so it is registered and the resulting new key is + * returned. + *

Implementations of this interface should specify the events they + * support. + */ + // @ts-ignore + register(watcher: java.nio.file.WatchService, events: java.nio.file.WatchEvent.Kind, modifiers: java.nio.file.WatchEvent.Modifier): java.nio.file.WatchKey; + /** + * Registers an object with a watch service. + *

An invocation of this method behaves in exactly the same way as the + * invocation + *

+                 * watchable.{@link #register(WatchService,WatchEvent.Kind[],WatchEvent.Modifier[]) register}(watcher, events, new WatchEvent.Modifier[0]);
+                 * 
+ */ + // @ts-ignore + register(watcher: java.nio.file.WatchService, events: java.nio.file.WatchEvent.Kind): java.nio.file.WatchKey; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.attribute.AclEntry.Builder.d.ts b/packages/types/dist/typings/jdk/java.nio.file.attribute.AclEntry.Builder.d.ts new file mode 100644 index 00000000..d3cb84ac --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.attribute.AclEntry.Builder.d.ts @@ -0,0 +1,57 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + namespace attribute { + namespace AclEntry { + // @ts-ignore + class Builder extends java.lang.Object { + /** + * Constructs an {@link AclEntry} from the components of this builder. + * The type and who components are required to have been set in order + * to construct an {@code AclEntry}. + */ + // @ts-ignore + public build(): java.nio.file.attribute.AclEntry; + /** + * Sets the type component of this builder. + */ + // @ts-ignore + public setType(type: java.nio.file.attribute.AclEntryType): java.nio.file.attribute.AclEntry.Builder; + /** + * Sets the principal component of this builder. + */ + // @ts-ignore + public setPrincipal(who: java.nio.file.attribute.UserPrincipal): java.nio.file.attribute.AclEntry.Builder; + /** + * Sets the permissions component of this builder. On return, the + * permissions component of this builder is a copy of the given set. + */ + // @ts-ignore + public setPermissions(perms: java.util.Set): java.nio.file.attribute.AclEntry.Builder; + /** + * Sets the permissions component of this builder. On return, the + * permissions component of this builder is a copy of the permissions in + * the given array. + */ + // @ts-ignore + public setPermissions(perms: java.nio.file.attribute.AclEntryPermission): java.nio.file.attribute.AclEntry.Builder; + /** + * Sets the flags component of this builder. On return, the flags + * component of this builder is a copy of the given set. + */ + // @ts-ignore + public setFlags(flags: java.util.Set): java.nio.file.attribute.AclEntry.Builder; + /** + * Sets the flags component of this builder. On return, the flags + * component of this builder is a copy of the flags in the given + * array. + */ + // @ts-ignore + public setFlags(flags: java.nio.file.attribute.AclEntryFlag): java.nio.file.attribute.AclEntry.Builder; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.attribute.AclEntry.d.ts b/packages/types/dist/typings/jdk/java.nio.file.attribute.AclEntry.d.ts new file mode 100644 index 00000000..faa2908c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.attribute.AclEntry.d.ts @@ -0,0 +1,70 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + namespace attribute { + // @ts-ignore + class AclEntry extends java.lang.Object { + /** + * Constructs a new builder. The initial value of the type and who + * components is {@code null}. The initial value of the permissions and + * flags components is the empty set. + */ + // @ts-ignore + public static newBuilder(): java.nio.file.attribute.AclEntry.Builder; + /** + * Constructs a new builder with the components of an existing ACL entry. + */ + // @ts-ignore + public static newBuilder(entry: java.nio.file.attribute.AclEntry): java.nio.file.attribute.AclEntry.Builder; + /** + * Returns the ACL entry type. + */ + // @ts-ignore + public type(): java.nio.file.attribute.AclEntryType; + /** + * Returns the principal component. + */ + // @ts-ignore + public principal(): java.nio.file.attribute.UserPrincipal; + /** + * Returns a copy of the permissions component. + *

The returned set is a modifiable copy of the permissions. + */ + // @ts-ignore + public permissions(): java.util.Set; + /** + * Returns a copy of the flags component. + *

The returned set is a modifiable copy of the flags. + */ + // @ts-ignore + public flags(): java.util.Set; + /** + * Compares the specified object with this ACL entry for equality. + *

If the given object is not an {@code AclEntry} then this method + * immediately returns {@code false}. + *

For two ACL entries to be considered equals requires that they are + * both the same type, their who components are equal, their permissions + * components are equal, and their flags components are equal. + *

This method satisfies the general contract of the {@link + * java.lang.Object#equals(Object) Object.equals} method.

+ */ + // @ts-ignore + public equals(ob: java.lang.Object): boolean; + /** + * Returns the hash-code value for this ACL entry. + *

This method satisfies the general contract of the {@link + * Object#hashCode} method. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns the string representation of this ACL entry. + */ + // @ts-ignore + public toString(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.attribute.AclEntryFlag.d.ts b/packages/types/dist/typings/jdk/java.nio.file.attribute.AclEntryFlag.d.ts new file mode 100644 index 00000000..320d505b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.attribute.AclEntryFlag.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + namespace attribute { + // @ts-ignore + class AclEntryFlag extends java.lang.Enum { + // @ts-ignore + public static FILE_INHERIT: java.nio.file.attribute.AclEntryFlag; + // @ts-ignore + public static DIRECTORY_INHERIT: java.nio.file.attribute.AclEntryFlag; + // @ts-ignore + public static NO_PROPAGATE_INHERIT: java.nio.file.attribute.AclEntryFlag; + // @ts-ignore + public static INHERIT_ONLY: java.nio.file.attribute.AclEntryFlag; + // @ts-ignore + public static values(): java.nio.file.attribute.AclEntryFlag[]; + // @ts-ignore + public static valueOf(name: string): java.nio.file.attribute.AclEntryFlag; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.attribute.AclEntryPermission.d.ts b/packages/types/dist/typings/jdk/java.nio.file.attribute.AclEntryPermission.d.ts new file mode 100644 index 00000000..b296b399 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.attribute.AclEntryPermission.d.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + namespace attribute { + // @ts-ignore + class AclEntryPermission extends java.lang.Enum { + // @ts-ignore + public static READ_DATA: java.nio.file.attribute.AclEntryPermission; + // @ts-ignore + public static WRITE_DATA: java.nio.file.attribute.AclEntryPermission; + // @ts-ignore + public static APPEND_DATA: java.nio.file.attribute.AclEntryPermission; + // @ts-ignore + public static READ_NAMED_ATTRS: java.nio.file.attribute.AclEntryPermission; + // @ts-ignore + public static WRITE_NAMED_ATTRS: java.nio.file.attribute.AclEntryPermission; + // @ts-ignore + public static EXECUTE: java.nio.file.attribute.AclEntryPermission; + // @ts-ignore + public static DELETE_CHILD: java.nio.file.attribute.AclEntryPermission; + // @ts-ignore + public static READ_ATTRIBUTES: java.nio.file.attribute.AclEntryPermission; + // @ts-ignore + public static WRITE_ATTRIBUTES: java.nio.file.attribute.AclEntryPermission; + // @ts-ignore + public static DELETE: java.nio.file.attribute.AclEntryPermission; + // @ts-ignore + public static READ_ACL: java.nio.file.attribute.AclEntryPermission; + // @ts-ignore + public static WRITE_ACL: java.nio.file.attribute.AclEntryPermission; + // @ts-ignore + public static WRITE_OWNER: java.nio.file.attribute.AclEntryPermission; + // @ts-ignore + public static SYNCHRONIZE: java.nio.file.attribute.AclEntryPermission; + // @ts-ignore + public static LIST_DIRECTORY: java.nio.file.attribute.AclEntryPermission; + // @ts-ignore + public static ADD_FILE: java.nio.file.attribute.AclEntryPermission; + // @ts-ignore + public static ADD_SUBDIRECTORY: java.nio.file.attribute.AclEntryPermission; + // @ts-ignore + public static values(): java.nio.file.attribute.AclEntryPermission[]; + // @ts-ignore + public static valueOf(name: string): java.nio.file.attribute.AclEntryPermission; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.attribute.AclEntryType.d.ts b/packages/types/dist/typings/jdk/java.nio.file.attribute.AclEntryType.d.ts new file mode 100644 index 00000000..b95d9770 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.attribute.AclEntryType.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + namespace attribute { + // @ts-ignore + class AclEntryType extends java.lang.Enum { + // @ts-ignore + public static ALLOW: java.nio.file.attribute.AclEntryType; + // @ts-ignore + public static DENY: java.nio.file.attribute.AclEntryType; + // @ts-ignore + public static AUDIT: java.nio.file.attribute.AclEntryType; + // @ts-ignore + public static ALARM: java.nio.file.attribute.AclEntryType; + // @ts-ignore + public static values(): java.nio.file.attribute.AclEntryType[]; + // @ts-ignore + public static valueOf(name: string): java.nio.file.attribute.AclEntryType; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.attribute.AclFileAttributeView.d.ts b/packages/types/dist/typings/jdk/java.nio.file.attribute.AclFileAttributeView.d.ts new file mode 100644 index 00000000..14d404d6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.attribute.AclFileAttributeView.d.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + namespace attribute { + // @ts-ignore + interface AclFileAttributeView { + /** + * Returns the name of the attribute view. Attribute views of this type + * have the name {@code "acl"}. + */ + // @ts-ignore + name(): string; + /** + * Reads the access control list. + *

When the file system uses an ACL model that differs from the NFSv4 + * defined ACL model, then this method returns an ACL that is the translation + * of the ACL to the NFSv4 ACL model. + *

The returned list is modifiable so as to facilitate changes to the + * existing ACL. The {@link #setAcl setAcl} method is used to update + * the file's ACL attribute. + */ + // @ts-ignore + getAcl(): java.util.List; + /** + * Updates (replace) the access control list. + *

Where the file system supports Access Control Lists, and it uses an + * ACL model that differs from the NFSv4 defined ACL model, then this method + * must translate the ACL to the model supported by the file system. This + * method should reject (by throwing {@link IOException IOException}) any + * attempt to write an ACL that would appear to make the file more secure + * than would be the case if the ACL were updated. Where an implementation + * does not support a mapping of {@link AclEntryType#AUDIT} or {@link + * AclEntryType#ALARM} entries, then this method ignores these entries when + * writing the ACL. + *

If an ACL entry contains a {@link AclEntry#principal user-principal} + * that is not associated with the same provider as this attribute view then + * {@link ProviderMismatchException} is thrown. Additional validation, if + * any, is implementation dependent. + *

If the file system supports other security related file attributes + * (such as a file {@link PosixFileAttributes#permissions + * access-permissions} for example), the updating the access control list + * may also cause these security related attributes to be updated. + */ + // @ts-ignore + setAcl(acl: java.util.List): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.attribute.AttributeView.d.ts b/packages/types/dist/typings/jdk/java.nio.file.attribute.AttributeView.d.ts new file mode 100644 index 00000000..b2918d3d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.attribute.AttributeView.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + namespace attribute { + // @ts-ignore + interface AttributeView { + /** + * Returns the name of the attribute view. + */ + // @ts-ignore + name(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.attribute.BasicFileAttributeView.d.ts b/packages/types/dist/typings/jdk/java.nio.file.attribute.BasicFileAttributeView.d.ts new file mode 100644 index 00000000..02a7d0a6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.attribute.BasicFileAttributeView.d.ts @@ -0,0 +1,55 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + namespace attribute { + // @ts-ignore + interface BasicFileAttributeView { + /** + * Returns the name of the attribute view. Attribute views of this type + * have the name {@code "basic"}. + */ + // @ts-ignore + name(): string; + /** + * Reads the basic file attributes as a bulk operation. + *

It is implementation specific if all file attributes are read as an + * atomic operation with respect to other file system operations. + */ + // @ts-ignore + readAttributes(): java.nio.file.attribute.BasicFileAttributes; + /** + * Updates any or all of the file's last modified time, last access time, + * and create time attributes. + *

This method updates the file's timestamp attributes. The values are + * converted to the epoch and precision supported by the file system. + * Converting from finer to coarser granularities result in precision loss. + * The behavior of this method when attempting to set a timestamp that is + * not supported or to a value that is outside the range supported by the + * underlying file store is not defined. It may or not fail by throwing an + * {@code IOException}. + *

If any of the {@code lastModifiedTime}, {@code lastAccessTime}, + * or {@code createTime} parameters has the value {@code null} then the + * corresponding timestamp is not changed. An implementation may require to + * read the existing values of the file attributes when only some, but not + * all, of the timestamp attributes are updated. Consequently, this method + * may not be an atomic operation with respect to other file system + * operations. Reading and re-writing existing values may also result in + * precision loss. If all of the {@code lastModifiedTime}, {@code + * lastAccessTime} and {@code createTime} parameters are {@code null} then + * this method has no effect. + *

Usage Example: + * Suppose we want to change a file's last access time. + *

+                     * Path path = ...
+                     * FileTime time = ...
+                     * Files.getFileAttributeView(path, BasicFileAttributeView.class).setTimes(null, time, null);
+                     * 
+ */ + // @ts-ignore + setTimes(lastModifiedTime: java.nio.file.attribute.FileTime, lastAccessTime: java.nio.file.attribute.FileTime, createTime: java.nio.file.attribute.FileTime): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.attribute.BasicFileAttributes.d.ts b/packages/types/dist/typings/jdk/java.nio.file.attribute.BasicFileAttributes.d.ts new file mode 100644 index 00000000..f1a1f8b1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.attribute.BasicFileAttributes.d.ts @@ -0,0 +1,93 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + namespace attribute { + // @ts-ignore + interface BasicFileAttributes { + /** + * Returns the time of last modification. + *

If the file system implementation does not support a time stamp + * to indicate the time of last modification then this method returns an + * implementation specific default value, typically a {@code FileTime} + * representing the epoch (1970-01-01T00:00:00Z). + */ + // @ts-ignore + lastModifiedTime(): java.nio.file.attribute.FileTime; + /** + * Returns the time of last access. + *

If the file system implementation does not support a time stamp + * to indicate the time of last access then this method returns + * an implementation specific default value, typically the {@link + * #lastModifiedTime() last-modified-time} or a {@code FileTime} + * representing the epoch (1970-01-01T00:00:00Z). + */ + // @ts-ignore + lastAccessTime(): java.nio.file.attribute.FileTime; + /** + * Returns the creation time. The creation time is the time that the file + * was created. + *

If the file system implementation does not support a time stamp + * to indicate the time when the file was created then this method returns + * an implementation specific default value, typically the {@link + * #lastModifiedTime() last-modified-time} or a {@code FileTime} + * representing the epoch (1970-01-01T00:00:00Z). + */ + // @ts-ignore + creationTime(): java.nio.file.attribute.FileTime; + /** + * Tells whether the file is a regular file with opaque content. + */ + // @ts-ignore + isRegularFile(): boolean; + /** + * Tells whether the file is a directory. + */ + // @ts-ignore + isDirectory(): boolean; + /** + * Tells whether the file is a symbolic link. + */ + // @ts-ignore + isSymbolicLink(): boolean; + /** + * Tells whether the file is something other than a regular file, directory, + * or symbolic link. + */ + // @ts-ignore + isOther(): boolean; + /** + * Returns the size of the file (in bytes). The size may differ from the + * actual size on the file system due to compression, support for sparse + * files, or other reasons. The size of files that are not {@link + * #isRegularFile regular} files is implementation specific and + * therefore unspecified. + */ + // @ts-ignore + size(): number; + /** + * Returns an object that uniquely identifies the given file, or {@code + * null} if a file key is not available. On some platforms or file systems + * it is possible to use an identifier, or a combination of identifiers to + * uniquely identify a file. Such identifiers are important for operations + * such as file tree traversal in file systems that support symbolic links or file systems + * that allow a file to be an entry in more than one directory. On UNIX file + * systems, for example, the device ID and inode are + * commonly used for such purposes. + *

The file key returned by this method can only be guaranteed to be + * unique if the file system and files remain static. Whether a file system + * re-uses identifiers after a file is deleted is implementation dependent and + * therefore unspecified. + *

File keys returned by this method can be compared for equality and are + * suitable for use in collections. If the file system and files remain static, + * and two files are the {@link java.nio.file.Files#isSameFile same} with + * non-{@code null} file keys, then their file keys are equal. + */ + // @ts-ignore + fileKey(): java.lang.Object; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.attribute.DosFileAttributeView.d.ts b/packages/types/dist/typings/jdk/java.nio.file.attribute.DosFileAttributeView.d.ts new file mode 100644 index 00000000..d2aa0f3d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.attribute.DosFileAttributeView.d.ts @@ -0,0 +1,56 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + namespace attribute { + // @ts-ignore + interface DosFileAttributeView { + /** + * Returns the name of the attribute view. Attribute views of this type + * have the name {@code "dos"}. + */ + // @ts-ignore + name(): string; + // @ts-ignore + readAttributes(): java.nio.file.attribute.DosFileAttributes; + /** + * Updates the value of the read-only attribute. + *

It is implementation specific if the attribute can be updated as an + * atomic operation with respect to other file system operations. An + * implementation may, for example, require to read the existing value of + * the DOS attribute in order to update this attribute. + */ + // @ts-ignore + setReadOnly(value: boolean): void; + /** + * Updates the value of the hidden attribute. + *

It is implementation specific if the attribute can be updated as an + * atomic operation with respect to other file system operations. An + * implementation may, for example, require to read the existing value of + * the DOS attribute in order to update this attribute. + */ + // @ts-ignore + setHidden(value: boolean): void; + /** + * Updates the value of the system attribute. + *

It is implementation specific if the attribute can be updated as an + * atomic operation with respect to other file system operations. An + * implementation may, for example, require to read the existing value of + * the DOS attribute in order to update this attribute. + */ + // @ts-ignore + setSystem(value: boolean): void; + /** + * Updates the value of the archive attribute. + *

It is implementation specific if the attribute can be updated as an + * atomic operation with respect to other file system operations. An + * implementation may, for example, require to read the existing value of + * the DOS attribute in order to update this attribute. + */ + // @ts-ignore + setArchive(value: boolean): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.attribute.DosFileAttributes.d.ts b/packages/types/dist/typings/jdk/java.nio.file.attribute.DosFileAttributes.d.ts new file mode 100644 index 00000000..d2ca20d0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.attribute.DosFileAttributes.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + namespace attribute { + // @ts-ignore + interface DosFileAttributes { + /** + * Returns the value of the read-only attribute. + *

This attribute is often used as a simple access control mechanism + * to prevent files from being deleted or updated. Whether the file system + * or platform does any enforcement to prevent read-only files + * from being updated is implementation specific. + */ + // @ts-ignore + isReadOnly(): boolean; + /** + * Returns the value of the hidden attribute. + *

This attribute is often used to indicate if the file is visible to + * users. + */ + // @ts-ignore + isHidden(): boolean; + /** + * Returns the value of the archive attribute. + *

This attribute is typically used by backup programs. + */ + // @ts-ignore + isArchive(): boolean; + /** + * Returns the value of the system attribute. + *

This attribute is often used to indicate that the file is a component + * of the operating system. + */ + // @ts-ignore + isSystem(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.attribute.FileAttribute.d.ts b/packages/types/dist/typings/jdk/java.nio.file.attribute.FileAttribute.d.ts new file mode 100644 index 00000000..566cf8df --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.attribute.FileAttribute.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + namespace attribute { + // @ts-ignore + interface FileAttribute { + /** + * Returns the attribute name. + */ + // @ts-ignore + name(): string; + /** + * Returns the attribute value. + */ + // @ts-ignore + value(): java.lang.Object; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.attribute.FileAttributeView.d.ts b/packages/types/dist/typings/jdk/java.nio.file.attribute.FileAttributeView.d.ts new file mode 100644 index 00000000..366c11f2 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.attribute.FileAttributeView.d.ts @@ -0,0 +1,12 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + namespace attribute { + // @ts-ignore + interface FileAttributeView { + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.attribute.FileOwnerAttributeView.d.ts b/packages/types/dist/typings/jdk/java.nio.file.attribute.FileOwnerAttributeView.d.ts new file mode 100644 index 00000000..3c4d9571 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.attribute.FileOwnerAttributeView.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + namespace attribute { + // @ts-ignore + interface FileOwnerAttributeView { + /** + * Returns the name of the attribute view. Attribute views of this type + * have the name {@code "owner"}. + */ + // @ts-ignore + name(): string; + /** + * Read the file owner. + *

It it implementation specific if the file owner can be a {@link + * GroupPrincipal group}. + */ + // @ts-ignore + getOwner(): java.nio.file.attribute.UserPrincipal; + /** + * Updates the file owner. + *

It it implementation specific if the file owner can be a {@link + * GroupPrincipal group}. To ensure consistent and correct behavior + * across platforms it is recommended that this method should only be used + * to set the file owner to a user principal that is not a group. + */ + // @ts-ignore + setOwner(owner: java.nio.file.attribute.UserPrincipal): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.attribute.FileStoreAttributeView.d.ts b/packages/types/dist/typings/jdk/java.nio.file.attribute.FileStoreAttributeView.d.ts new file mode 100644 index 00000000..c783b6c2 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.attribute.FileStoreAttributeView.d.ts @@ -0,0 +1,12 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + namespace attribute { + // @ts-ignore + interface FileStoreAttributeView { + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.attribute.FileTime.d.ts b/packages/types/dist/typings/jdk/java.nio.file.attribute.FileTime.d.ts new file mode 100644 index 00000000..1962de7f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.attribute.FileTime.d.ts @@ -0,0 +1,101 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + namespace attribute { + // @ts-ignore + class FileTime extends java.lang.Object { + /** + * Returns a {@code FileTime} representing a value at the given unit of + * granularity. + */ + // @ts-ignore + public static from(value: number, unit: java.util.concurrent.TimeUnit): java.nio.file.attribute.FileTime; + /** + * Returns a {@code FileTime} representing the given value in milliseconds. + */ + // @ts-ignore + public static fromMillis(value: number): java.nio.file.attribute.FileTime; + /** + * Returns a {@code FileTime} representing the same point of time value + * on the time-line as the provided {@code Instant} object. + */ + // @ts-ignore + public static from(instant: java.time.Instant): java.nio.file.attribute.FileTime; + /** + * Returns the value at the given unit of granularity. + *

Conversion from a coarser granularity that would numerically overflow + * saturate to {@code Long.MIN_VALUE} if negative or {@code Long.MAX_VALUE} + * if positive. + */ + // @ts-ignore + public to(unit: java.util.concurrent.TimeUnit): number; + /** + * Returns the value in milliseconds. + *

Conversion from a coarser granularity that would numerically overflow + * saturate to {@code Long.MIN_VALUE} if negative or {@code Long.MAX_VALUE} + * if positive. + */ + // @ts-ignore + public toMillis(): number; + /** + * Converts this {@code FileTime} object to an {@code Instant}. + *

The conversion creates an {@code Instant} that represents the + * same point on the time-line as this {@code FileTime}. + *

{@code FileTime} can store points on the time-line further in the + * future and further in the past than {@code Instant}. Conversion + * from such further time points saturates to {@link Instant#MIN} if + * earlier than {@code Instant.MIN} or {@link Instant#MAX} if later + * than {@code Instant.MAX}. + */ + // @ts-ignore + public toInstant(): java.time.Instant; + /** + * Tests this {@code FileTime} for equality with the given object. + *

The result is {@code true} if and only if the argument is not {@code + * null} and is a {@code FileTime} that represents the same time. This + * method satisfies the general contract of the {@code Object.equals} method. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Computes a hash code for this file time. + *

The hash code is based upon the value represented, and satisfies the + * general contract of the {@link Object#hashCode} method. + */ + // @ts-ignore + public hashCode(): number; + /** + * Compares the value of two {@code FileTime} objects for order. + */ + // @ts-ignore + public compareTo(other: java.nio.file.attribute.FileTime): number; + /** + * Returns the string representation of this {@code FileTime}. The string + * is returned in the ISO 8601 format: + *

+                     * YYYY-MM-DDThh:mm:ss[.s+]Z
+                     * 
+ * where "{@code [.s+]}" represents a dot followed by one of more digits + * for the decimal fraction of a second. It is only present when the decimal + * fraction of a second is not zero. For example, {@code + * FileTime.fromMillis(1234567890000L).toString()} yields {@code + * "2009-02-13T23:31:30Z"}, and {@code FileTime.fromMillis(1234567890123L).toString()} + * yields {@code "2009-02-13T23:31:30.123Z"}. + *

A {@code FileTime} is primarily intended to represent the value of a + * file's time stamp. Where used to represent extreme values, where + * the year is less than "{@code 0001}" or greater than "{@code 9999}" then + * this method deviates from ISO 8601 in the same manner as the + * XML Schema + * language. That is, the year may be expanded to more than four digits + * and may be negative-signed. If more than four digits then leading zeros + * are not present. The year before "{@code 0001}" is "{@code -0001}". + */ + // @ts-ignore + public toString(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.attribute.GroupPrincipal.d.ts b/packages/types/dist/typings/jdk/java.nio.file.attribute.GroupPrincipal.d.ts new file mode 100644 index 00000000..fa2e3a34 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.attribute.GroupPrincipal.d.ts @@ -0,0 +1,12 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + namespace attribute { + // @ts-ignore + interface GroupPrincipal { + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.attribute.PosixFileAttributeView.d.ts b/packages/types/dist/typings/jdk/java.nio.file.attribute.PosixFileAttributeView.d.ts new file mode 100644 index 00000000..7c93d77e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.attribute.PosixFileAttributeView.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + namespace attribute { + // @ts-ignore + interface PosixFileAttributeView { + /** + * Returns the name of the attribute view. Attribute views of this type + * have the name {@code "posix"}. + */ + // @ts-ignore + name(): string; + // @ts-ignore + readAttributes(): java.nio.file.attribute.PosixFileAttributes; + /** + * Updates the file permissions. + */ + // @ts-ignore + setPermissions(perms: java.util.Set): void; + /** + * Updates the file group-owner. + */ + // @ts-ignore + setGroup(group: java.nio.file.attribute.GroupPrincipal): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.attribute.PosixFileAttributes.d.ts b/packages/types/dist/typings/jdk/java.nio.file.attribute.PosixFileAttributes.d.ts new file mode 100644 index 00000000..8755dcfd --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.attribute.PosixFileAttributes.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + namespace attribute { + // @ts-ignore + interface PosixFileAttributes { + /** + * Returns the owner of the file. + */ + // @ts-ignore + owner(): java.nio.file.attribute.UserPrincipal; + /** + * Returns the group owner of the file. + */ + // @ts-ignore + group(): java.nio.file.attribute.GroupPrincipal; + /** + * Returns the permissions of the file. The file permissions are returned + * as a set of {@link PosixFilePermission} elements. The returned set is a + * copy of the file permissions and is modifiable. This allows the result + * to be modified and passed to the {@link PosixFileAttributeView#setPermissions + * setPermissions} method to update the file's permissions. + */ + // @ts-ignore + permissions(): java.util.Set; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.attribute.PosixFilePermission.d.ts b/packages/types/dist/typings/jdk/java.nio.file.attribute.PosixFilePermission.d.ts new file mode 100644 index 00000000..a77d85fb --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.attribute.PosixFilePermission.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + namespace attribute { + // @ts-ignore + class PosixFilePermission extends java.lang.Enum { + // @ts-ignore + public static OWNER_READ: java.nio.file.attribute.PosixFilePermission; + // @ts-ignore + public static OWNER_WRITE: java.nio.file.attribute.PosixFilePermission; + // @ts-ignore + public static OWNER_EXECUTE: java.nio.file.attribute.PosixFilePermission; + // @ts-ignore + public static GROUP_READ: java.nio.file.attribute.PosixFilePermission; + // @ts-ignore + public static GROUP_WRITE: java.nio.file.attribute.PosixFilePermission; + // @ts-ignore + public static GROUP_EXECUTE: java.nio.file.attribute.PosixFilePermission; + // @ts-ignore + public static OTHERS_READ: java.nio.file.attribute.PosixFilePermission; + // @ts-ignore + public static OTHERS_WRITE: java.nio.file.attribute.PosixFilePermission; + // @ts-ignore + public static OTHERS_EXECUTE: java.nio.file.attribute.PosixFilePermission; + // @ts-ignore + public static values(): java.nio.file.attribute.PosixFilePermission[]; + // @ts-ignore + public static valueOf(name: string): java.nio.file.attribute.PosixFilePermission; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.attribute.PosixFilePermissions.d.ts b/packages/types/dist/typings/jdk/java.nio.file.attribute.PosixFilePermissions.d.ts new file mode 100644 index 00000000..76b8f26d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.attribute.PosixFilePermissions.d.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + namespace attribute { + // @ts-ignore + class PosixFilePermissions extends java.lang.Object { + /** + * Returns the {@code String} representation of a set of permissions. It + * is guaranteed that the returned {@code String} can be parsed by the + * {@link #fromString} method. + *

If the set contains {@code null} or elements that are not of type + * {@code PosixFilePermission} then these elements are ignored. + */ + // @ts-ignore + public static toString(perms: java.util.Set): string; + /** + * Returns the set of permissions corresponding to a given {@code String} + * representation. + *

The {@code perms} parameter is a {@code String} representing the + * permissions. It has 9 characters that are interpreted as three sets of + * three. The first set refers to the owner's permissions; the next to the + * group permissions and the last to others. Within each set, the first + * character is {@code 'r'} to indicate permission to read, the second + * character is {@code 'w'} to indicate permission to write, and the third + * character is {@code 'x'} for execute permission. Where a permission is + * not set then the corresponding character is set to {@code '-'}. + *

Usage Example: + * Suppose we require the set of permissions that indicate the owner has read, + * write, and execute permissions, the group has read and execute permissions + * and others have none. + *

+                     * Set<PosixFilePermission> perms = PosixFilePermissions.fromString("rwxr-x---");
+                     * 
+ */ + // @ts-ignore + public static fromString(perms: string): java.util.Set; + /** + * Creates a {@link FileAttribute}, encapsulating a copy of the given file + * permissions, suitable for passing to the {@link java.nio.file.Files#createFile + * createFile} or {@link java.nio.file.Files#createDirectory createDirectory} + * methods. + */ + // @ts-ignore + public static asFileAttribute(perms: java.util.Set): java.nio.file.attribute.FileAttribute; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.attribute.UserDefinedFileAttributeView.d.ts b/packages/types/dist/typings/jdk/java.nio.file.attribute.UserDefinedFileAttributeView.d.ts new file mode 100644 index 00000000..f7c05eff --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.attribute.UserDefinedFileAttributeView.d.ts @@ -0,0 +1,86 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + namespace attribute { + // @ts-ignore + interface UserDefinedFileAttributeView { + /** + * Returns the name of this attribute view. Attribute views of this type + * have the name {@code "user"}. + */ + // @ts-ignore + name(): string; + /** + * Returns a list containing the names of the user-defined attributes. + */ + // @ts-ignore + list(): java.util.List; + /** + * Returns the size of the value of a user-defined attribute. + */ + // @ts-ignore + size(name: string): number; + /** + * Read the value of a user-defined attribute into a buffer. + *

This method reads the value of the attribute into the given buffer + * as a sequence of bytes, failing if the number of bytes remaining in + * the buffer is insufficient to read the complete attribute value. The + * number of bytes transferred into the buffer is {@code n}, where {@code n} + * is the size of the attribute value. The first byte in the sequence is at + * index {@code p} and the last byte is at index {@code p + n - 1}, where + * {@code p} is the buffer's position. Upon return the buffer's position + * will be equal to {@code p + n}; its limit will not have changed. + *

Usage Example: + * Suppose we want to read a file's MIME type that is stored as a user-defined + * attribute with the name "{@code user.mimetype}". + *

+                     * UserDefinedFileAttributeView view =
+                     * Files.getFileAttributeView(path, UserDefinedFileAttributeView.class);
+                     * String name = "user.mimetype";
+                     * ByteBuffer buf = ByteBuffer.allocate(view.size(name));
+                     * view.read(name, buf);
+                     * buf.flip();
+                     * String value = Charset.defaultCharset().decode(buf).toString();
+                     * 
+ */ + // @ts-ignore + read(name: string, dst: java.nio.ByteBuffer): number; + /** + * Writes the value of a user-defined attribute from a buffer. + *

This method writes the value of the attribute from a given buffer as + * a sequence of bytes. The size of the value to transfer is {@code r}, + * where {@code r} is the number of bytes remaining in the buffer, that is + * {@code src.remaining()}. The sequence of bytes is transferred from the + * buffer starting at index {@code p}, where {@code p} is the buffer's + * position. Upon return, the buffer's position will be equal to {@code + * p + n}, where {@code n} is the number of bytes transferred; its limit + * will not have changed. + *

If an attribute of the given name already exists then its value is + * replaced. If the attribute does not exist then it is created. If it + * implementation specific if a test to check for the existence of the + * attribute and the creation of attribute are atomic with respect to other + * file system activities. + *

Where there is insufficient space to store the attribute, or the + * attribute name or value exceed an implementation specific maximum size + * then an {@code IOException} is thrown. + *

Usage Example: + * Suppose we want to write a file's MIME type as a user-defined attribute: + *

+                     * UserDefinedFileAttributeView view =
+                     * FIles.getFileAttributeView(path, UserDefinedFileAttributeView.class);
+                     * view.write("user.mimetype", Charset.defaultCharset().encode("text/html"));
+                     * 
+ */ + // @ts-ignore + write(name: string, src: java.nio.ByteBuffer): number; + /** + * Deletes a user-defined attribute. + */ + // @ts-ignore + delete(name: string): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.attribute.UserPrincipal.d.ts b/packages/types/dist/typings/jdk/java.nio.file.attribute.UserPrincipal.d.ts new file mode 100644 index 00000000..3e3b2c39 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.attribute.UserPrincipal.d.ts @@ -0,0 +1,12 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + namespace attribute { + // @ts-ignore + interface UserPrincipal { + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.attribute.UserPrincipalLookupService.d.ts b/packages/types/dist/typings/jdk/java.nio.file.attribute.UserPrincipalLookupService.d.ts new file mode 100644 index 00000000..c29a7273 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.attribute.UserPrincipalLookupService.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + namespace attribute { + // @ts-ignore + abstract class UserPrincipalLookupService extends java.lang.Object { + /** + * Initializes a new instance of this class. + */ + // @ts-ignore + constructor() + /** + * Lookup a user principal by name. + */ + // @ts-ignore + public abstract lookupPrincipalByName(name: string): java.nio.file.attribute.UserPrincipal; + /** + * Lookup a group principal by group name. + *

Where an implementation does not support any notion of group then + * this method always throws {@link UserPrincipalNotFoundException}. Where + * the namespace for user accounts and groups is the same, then this method + * is identical to invoking {@link #lookupPrincipalByName + * lookupPrincipalByName}. + */ + // @ts-ignore + public abstract lookupPrincipalByGroupName(group: string): java.nio.file.attribute.GroupPrincipal; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.attribute.UserPrincipalNotFoundException.d.ts b/packages/types/dist/typings/jdk/java.nio.file.attribute.UserPrincipalNotFoundException.d.ts new file mode 100644 index 00000000..d9d1a4b9 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.attribute.UserPrincipalNotFoundException.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + namespace attribute { + // @ts-ignore + class UserPrincipalNotFoundException extends java.io.IOException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor(name: string) + /** + * Returns the user principal name if this exception was created with the + * user principal name that was not found, otherwise null. + */ + // @ts-ignore + public getName(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.spi.FileSystemProvider.d.ts b/packages/types/dist/typings/jdk/java.nio.file.spi.FileSystemProvider.d.ts new file mode 100644 index 00000000..e7e7bbdd --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.spi.FileSystemProvider.d.ts @@ -0,0 +1,316 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + namespace spi { + // @ts-ignore + abstract class FileSystemProvider extends java.lang.Object { + /** + * Initializes a new instance of this class. + *

During construction a provider may safely access files associated + * with the default provider but care needs to be taken to avoid circular + * loading of other installed providers. If circular loading of installed + * providers is detected then an unspecified error is thrown. + */ + // @ts-ignore + constructor() + /** + * Returns a list of the installed file system providers. + *

The first invocation of this method causes the default provider to be + * initialized (if not already initialized) and loads any other installed + * providers as described by the {@link FileSystems} class. + */ + // @ts-ignore + public static installedProviders(): java.util.List; + /** + * Returns the URI scheme that identifies this provider. + */ + // @ts-ignore + public abstract getScheme(): string; + /** + * Constructs a new {@code FileSystem} object identified by a URI. This + * method is invoked by the {@link FileSystems#newFileSystem(URI,Map)} + * method to open a new file system identified by a URI. + *

The {@code uri} parameter is an absolute, hierarchical URI, with a + * scheme equal (without regard to case) to the scheme supported by this + * provider. The exact form of the URI is highly provider dependent. The + * {@code env} parameter is a map of provider specific properties to configure + * the file system. + *

This method throws {@link FileSystemAlreadyExistsException} if the + * file system already exists because it was previously created by an + * invocation of this method. Once a file system is {@link + * java.nio.file.FileSystem#close closed} it is provider-dependent if the + * provider allows a new file system to be created with the same URI as a + * file system it previously created. + */ + // @ts-ignore + public abstract newFileSystem(uri: java.net.URI, env: java.util.Map): java.nio.file.FileSystem; + /** + * Returns an existing {@code FileSystem} created by this provider. + *

This method returns a reference to a {@code FileSystem} that was + * created by invoking the {@link #newFileSystem(URI,Map) newFileSystem(URI,Map)} + * method. File systems created the {@link #newFileSystem(Path,Map) + * newFileSystem(Path,Map)} method are not returned by this method. + * The file system is identified by its {@code URI}. Its exact form + * is highly provider dependent. In the case of the default provider the URI's + * path component is {@code "/"} and the authority, query and fragment components + * are undefined (Undefined components are represented by {@code null}). + *

Once a file system created by this provider is {@link + * java.nio.file.FileSystem#close closed} it is provider-dependent if this + * method returns a reference to the closed file system or throws {@link + * FileSystemNotFoundException}. If the provider allows a new file system to + * be created with the same URI as a file system it previously created then + * this method throws the exception if invoked after the file system is + * closed (and before a new instance is created by the {@link #newFileSystem + * newFileSystem} method). + *

If a security manager is installed then a provider implementation + * may require to check a permission before returning a reference to an + * existing file system. In the case of the {@link FileSystems#getDefault + * default} file system, no permission check is required. + */ + // @ts-ignore + public abstract getFileSystem(uri: java.net.URI): java.nio.file.FileSystem; + /** + * Return a {@code Path} object by converting the given {@link URI}. The + * resulting {@code Path} is associated with a {@link FileSystem} that + * already exists or is constructed automatically. + *

The exact form of the URI is file system provider dependent. In the + * case of the default provider, the URI scheme is {@code "file"} and the + * given URI has a non-empty path component, and undefined query, and + * fragment components. The resulting {@code Path} is associated with the + * default {@link FileSystems#getDefault default} {@code FileSystem}. + *

If a security manager is installed then a provider implementation + * may require to check a permission. In the case of the {@link + * FileSystems#getDefault default} file system, no permission check is + * required. + */ + // @ts-ignore + public abstract getPath(uri: java.net.URI): java.nio.file.Path; + /** + * Constructs a new {@code FileSystem} to access the contents of a file as a + * file system. + *

This method is intended for specialized providers of pseudo file + * systems where the contents of one or more files is treated as a file + * system. The {@code env} parameter is a map of provider specific properties + * to configure the file system. + *

If this provider does not support the creation of such file systems + * or if the provider does not recognize the file type of the given file then + * it throws {@code UnsupportedOperationException}. The default implementation + * of this method throws {@code UnsupportedOperationException}. + */ + // @ts-ignore + public newFileSystem(path: java.nio.file.Path, env: java.util.Map): java.nio.file.FileSystem; + /** + * Opens a file, returning an input stream to read from the file. This + * method works in exactly the manner specified by the {@link + * Files#newInputStream} method. + *

The default implementation of this method opens a channel to the file + * as if by invoking the {@link #newByteChannel} method and constructs a + * stream that reads bytes from the channel. This method should be overridden + * where appropriate. + */ + // @ts-ignore + public newInputStream(path: java.nio.file.Path, options: java.nio.file.OpenOption): java.io.InputStream; + /** + * Opens or creates a file, returning an output stream that may be used to + * write bytes to the file. This method works in exactly the manner + * specified by the {@link Files#newOutputStream} method. + *

The default implementation of this method opens a channel to the file + * as if by invoking the {@link #newByteChannel} method and constructs a + * stream that writes bytes to the channel. This method should be overridden + * where appropriate. + */ + // @ts-ignore + public newOutputStream(path: java.nio.file.Path, options: java.nio.file.OpenOption): java.io.OutputStream; + /** + * Opens or creates a file for reading and/or writing, returning a file + * channel to access the file. This method works in exactly the manner + * specified by the {@link FileChannel#open(Path,Set,FileAttribute[]) + * FileChannel.open} method. A provider that does not support all the + * features required to construct a file channel throws {@code + * UnsupportedOperationException}. The default provider is required to + * support the creation of file channels. When not overridden, the default + * implementation throws {@code UnsupportedOperationException}. + */ + // @ts-ignore + public newFileChannel(path: java.nio.file.Path, options: java.util.Set, attrs: java.nio.file.attribute.FileAttribute): java.nio.channels.FileChannel; + /** + * Opens or creates a file for reading and/or writing, returning an + * asynchronous file channel to access the file. This method works in + * exactly the manner specified by the {@link + * AsynchronousFileChannel#open(Path,Set,ExecutorService,FileAttribute[]) + * AsynchronousFileChannel.open} method. + * A provider that does not support all the features required to construct + * an asynchronous file channel throws {@code UnsupportedOperationException}. + * The default provider is required to support the creation of asynchronous + * file channels. When not overridden, the default implementation of this + * method throws {@code UnsupportedOperationException}. + */ + // @ts-ignore + public newAsynchronousFileChannel(path: java.nio.file.Path, options: java.util.Set, executor: java.util.concurrent.ExecutorService, attrs: java.nio.file.attribute.FileAttribute): java.nio.channels.AsynchronousFileChannel; + /** + * Opens or creates a file, returning a seekable byte channel to access the + * file. This method works in exactly the manner specified by the {@link + * Files#newByteChannel(Path,Set,FileAttribute[])} method. + */ + // @ts-ignore + public abstract newByteChannel(path: java.nio.file.Path, options: java.util.Set, attrs: java.nio.file.attribute.FileAttribute): java.nio.channels.SeekableByteChannel; + /** + * Opens a directory, returning a {@code DirectoryStream} to iterate over + * the entries in the directory. This method works in exactly the manner + * specified by the {@link + * Files#newDirectoryStream(java.nio.file.Path, java.nio.file.DirectoryStream.Filter)} + * method. + */ + // @ts-ignore + public abstract newDirectoryStream(dir: java.nio.file.Path, filter: java.nio.file.DirectoryStream.Filter): java.nio.file.DirectoryStream; + /** + * Creates a new directory. This method works in exactly the manner + * specified by the {@link Files#createDirectory} method. + */ + // @ts-ignore + public abstract createDirectory(dir: java.nio.file.Path, attrs: java.nio.file.attribute.FileAttribute): void; + /** + * Creates a symbolic link to a target. This method works in exactly the + * manner specified by the {@link Files#createSymbolicLink} method. + *

The default implementation of this method throws {@code + * UnsupportedOperationException}. + */ + // @ts-ignore + public createSymbolicLink(link: java.nio.file.Path, target: java.nio.file.Path, attrs: java.nio.file.attribute.FileAttribute): void; + /** + * Creates a new link (directory entry) for an existing file. This method + * works in exactly the manner specified by the {@link Files#createLink} + * method. + *

The default implementation of this method throws {@code + * UnsupportedOperationException}. + */ + // @ts-ignore + public createLink(link: java.nio.file.Path, existing: java.nio.file.Path): void; + /** + * Deletes a file. This method works in exactly the manner specified by the + * {@link Files#delete} method. + */ + // @ts-ignore + public abstract delete(path: java.nio.file.Path): void; + /** + * Deletes a file if it exists. This method works in exactly the manner + * specified by the {@link Files#deleteIfExists} method. + *

The default implementation of this method simply invokes {@link + * #delete} ignoring the {@code NoSuchFileException} when the file does not + * exist. It may be overridden where appropriate. + */ + // @ts-ignore + public deleteIfExists(path: java.nio.file.Path): boolean; + /** + * Reads the target of a symbolic link. This method works in exactly the + * manner specified by the {@link Files#readSymbolicLink} method. + *

The default implementation of this method throws {@code + * UnsupportedOperationException}. + */ + // @ts-ignore + public readSymbolicLink(link: java.nio.file.Path): java.nio.file.Path; + /** + * Copy a file to a target file. This method works in exactly the manner + * specified by the {@link Files#copy(Path,Path,CopyOption[])} method + * except that both the source and target paths must be associated with + * this provider. + */ + // @ts-ignore + public abstract copy(source: java.nio.file.Path, target: java.nio.file.Path, options: java.nio.file.CopyOption): void; + /** + * Move or rename a file to a target file. This method works in exactly the + * manner specified by the {@link Files#move} method except that both the + * source and target paths must be associated with this provider. + */ + // @ts-ignore + public abstract move(source: java.nio.file.Path, target: java.nio.file.Path, options: java.nio.file.CopyOption): void; + /** + * Tests if two paths locate the same file. This method works in exactly the + * manner specified by the {@link Files#isSameFile} method. + */ + // @ts-ignore + public abstract isSameFile(path: java.nio.file.Path, path2: java.nio.file.Path): boolean; + /** + * Tells whether or not a file is considered hidden. This method + * works in exactly the manner specified by the {@link Files#isHidden} + * method. + *

This method is invoked by the {@link Files#isHidden isHidden} method. + */ + // @ts-ignore + public abstract isHidden(path: java.nio.file.Path): boolean; + /** + * Returns the {@link FileStore} representing the file store where a file + * is located. This method works in exactly the manner specified by the + * {@link Files#getFileStore} method. + */ + // @ts-ignore + public abstract getFileStore(path: java.nio.file.Path): java.nio.file.FileStore; + /** + * Checks the existence, and optionally the accessibility, of a file. + *

This method may be used by the {@link Files#isReadable isReadable}, + * {@link Files#isWritable isWritable} and {@link Files#isExecutable + * isExecutable} methods to check the accessibility of a file. + *

This method checks the existence of a file and that this Java virtual + * machine has appropriate privileges that would allow it access the file + * according to all of access modes specified in the {@code modes} parameter + * as follows: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Value Description
{@link AccessMode#READ READ} Checks that the file exists and that the Java virtual machine has + * permission to read the file.
{@link AccessMode#WRITE WRITE} Checks that the file exists and that the Java virtual machine has + * permission to write to the file,
{@link AccessMode#EXECUTE EXECUTE} Checks that the file exists and that the Java virtual machine has + * permission to {@link Runtime#exec execute} the file. The semantics + * may differ when checking access to a directory. For example, on UNIX + * systems, checking for {@code EXECUTE} access checks that the Java + * virtual machine has permission to search the directory in order to + * access file or subdirectories.
+ *

If the {@code modes} parameter is of length zero, then the existence + * of the file is checked. + *

This method follows symbolic links if the file referenced by this + * object is a symbolic link. Depending on the implementation, this method + * may require to read file permissions, access control lists, or other + * file attributes in order to check the effective access to the file. To + * determine the effective access to a file may require access to several + * attributes and so in some implementations this method may not be atomic + * with respect to other file system operations. + */ + // @ts-ignore + public abstract checkAccess(path: java.nio.file.Path, modes: java.nio.file.AccessMode): void; + /** + * Returns a file attribute view of a given type. This method works in + * exactly the manner specified by the {@link Files#getFileAttributeView} + * method. + */ + // @ts-ignore + public abstract getFileAttributeView(path: java.nio.file.Path, type: java.lang.Class, options: java.nio.file.LinkOption): java.nio.file.attribute.FileAttributeView; + /** + * Reads a file's attributes as a bulk operation. This method works in + * exactly the manner specified by the {@link + * Files#readAttributes(Path,Class,LinkOption[])} method. + */ + // @ts-ignore + public abstract readAttributes(path: java.nio.file.Path, type: java.lang.Class, options: java.nio.file.LinkOption): java.nio.file.attribute.BasicFileAttributes; + /** + * Sets the value of a file attribute. This method works in exactly the + * manner specified by the {@link Files#setAttribute} method. + */ + // @ts-ignore + public abstract setAttribute(path: java.nio.file.Path, attribute: string, value: java.lang.Object, options: java.nio.file.LinkOption): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.nio.file.spi.FileTypeDetector.d.ts b/packages/types/dist/typings/jdk/java.nio.file.spi.FileTypeDetector.d.ts new file mode 100644 index 00000000..3c38137e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.nio.file.spi.FileTypeDetector.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace java { + namespace nio { + namespace file { + namespace spi { + // @ts-ignore + abstract class FileTypeDetector extends java.lang.Object { + /** + * Initializes a new instance of this class. + */ + // @ts-ignore + constructor() + /** + * Probes the given file to guess its content type. + *

The means by which this method determines the file type is highly + * implementation specific. It may simply examine the file name, it may use + * a file attribute, + * or it may examines bytes in the file. + *

The probe result is the string form of the value of a + * Multipurpose Internet Mail Extension (MIME) content type as + * defined by RFC 2045: + * Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet + * Message Bodies. The string must be parsable according to the + * grammar in the RFC 2045. + */ + // @ts-ignore + public abstract probeContentType(path: java.nio.file.Path): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.AccessException.d.ts b/packages/types/dist/typings/jdk/java.rmi.AccessException.d.ts new file mode 100644 index 00000000..33365e12 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.AccessException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + // @ts-ignore + class AccessException extends java.rmi.RemoteException { + /** + * Constructs an AccessException with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + /** + * Constructs an AccessException with the specified + * detail message and nested exception. + */ + // @ts-ignore + constructor(s: string, ex: java.lang.Exception) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.AlreadyBoundException.d.ts b/packages/types/dist/typings/jdk/java.rmi.AlreadyBoundException.d.ts new file mode 100644 index 00000000..00a7e58b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.AlreadyBoundException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + // @ts-ignore + class AlreadyBoundException extends java.lang.Exception { + /** + * Constructs an AlreadyBoundException with no + * specified detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs an AlreadyBoundException with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.ConnectException.d.ts b/packages/types/dist/typings/jdk/java.rmi.ConnectException.d.ts new file mode 100644 index 00000000..04f5bd09 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.ConnectException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + // @ts-ignore + class ConnectException extends java.rmi.RemoteException { + /** + * Constructs a ConnectException with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + /** + * Constructs a ConnectException with the specified + * detail message and nested exception. + */ + // @ts-ignore + constructor(s: string, ex: java.lang.Exception) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.ConnectIOException.d.ts b/packages/types/dist/typings/jdk/java.rmi.ConnectIOException.d.ts new file mode 100644 index 00000000..ee6decf7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.ConnectIOException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + // @ts-ignore + class ConnectIOException extends java.rmi.RemoteException { + /** + * Constructs a ConnectIOException with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + /** + * Constructs a ConnectIOException with the specified + * detail message and nested exception. + */ + // @ts-ignore + constructor(s: string, ex: java.lang.Exception) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.MarshalException.d.ts b/packages/types/dist/typings/jdk/java.rmi.MarshalException.d.ts new file mode 100644 index 00000000..6fd3b7e1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.MarshalException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + // @ts-ignore + class MarshalException extends java.rmi.RemoteException { + /** + * Constructs a MarshalException with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + /** + * Constructs a MarshalException with the specified + * detail message and nested exception. + */ + // @ts-ignore + constructor(s: string, ex: java.lang.Exception) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.MarshalledObject.d.ts b/packages/types/dist/typings/jdk/java.rmi.MarshalledObject.d.ts new file mode 100644 index 00000000..bed2d171 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.MarshalledObject.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + // @ts-ignore + class MarshalledObject extends java.lang.Object { + /** + * Creates a new MarshalledObject that contains the + * serialized representation of the current state of the supplied object. + * The object is serialized with the semantics used for marshaling + * parameters for RMI calls. + */ + // @ts-ignore + constructor(obj: java.lang.Object) + /** + * Returns a new copy of the contained marshalledobject. The internal + * representation is deserialized with the semantics used for + * unmarshaling parameters for RMI calls. + */ + // @ts-ignore + public get(): java.lang.Object; + /** + * Return a hash code for this MarshalledObject. + */ + // @ts-ignore + public hashCode(): number; + /** + * Compares this MarshalledObject to another object. + * Returns true if and only if the argument refers to a + * MarshalledObject that contains exactly the same + * serialized representation of an object as this one does. The + * comparison ignores any class codebase annotation, meaning that + * two objects are equivalent if they have the same serialized + * representation except for the codebase of each class + * in the serialized representation. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.Naming.d.ts b/packages/types/dist/typings/jdk/java.rmi.Naming.d.ts new file mode 100644 index 00000000..95dbb028 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.Naming.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + // @ts-ignore + class Naming extends java.lang.Object { + /** + * Returns a reference, a stub, for the remote object associated + * with the specified name. + */ + // @ts-ignore + public static lookup(name: string): java.rmi.Remote; + /** + * Binds the specified name to a remote object. + */ + // @ts-ignore + public static bind(name: string, obj: java.rmi.Remote): void; + /** + * Destroys the binding for the specified name that is associated + * with a remote object. + */ + // @ts-ignore + public static unbind(name: string): void; + /** + * Rebinds the specified name to a new remote object. Any existing + * binding for the name is replaced. + */ + // @ts-ignore + public static rebind(name: string, obj: java.rmi.Remote): void; + /** + * Returns an array of the names bound in the registry. The names are + * URL-formatted (without the scheme component) strings. The array contains + * a snapshot of the names present in the registry at the time of the + * call. + */ + // @ts-ignore + public static list(name: string): java.lang.String[]; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.NoSuchObjectException.d.ts b/packages/types/dist/typings/jdk/java.rmi.NoSuchObjectException.d.ts new file mode 100644 index 00000000..e8b89333 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.NoSuchObjectException.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + // @ts-ignore + class NoSuchObjectException extends java.rmi.RemoteException { + /** + * Constructs a NoSuchObjectException with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.NotBoundException.d.ts b/packages/types/dist/typings/jdk/java.rmi.NotBoundException.d.ts new file mode 100644 index 00000000..09e41fde --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.NotBoundException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + // @ts-ignore + class NotBoundException extends java.lang.Exception { + /** + * Constructs a NotBoundException with no + * specified detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs a NotBoundException with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.RMISecurityException.d.ts b/packages/types/dist/typings/jdk/java.rmi.RMISecurityException.d.ts new file mode 100644 index 00000000..3da07730 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.RMISecurityException.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + // @ts-ignore + class RMISecurityException extends java.lang.SecurityException { + /** + * Construct an RMISecurityException with a detail message. + */ + // @ts-ignore + constructor(name: string) + /** + * Construct an RMISecurityException with a detail message. + */ + // @ts-ignore + constructor(name: string, arg: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.RMISecurityManager.d.ts b/packages/types/dist/typings/jdk/java.rmi.RMISecurityManager.d.ts new file mode 100644 index 00000000..79b544a1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.RMISecurityManager.d.ts @@ -0,0 +1,13 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + // @ts-ignore + class RMISecurityManager extends java.lang.SecurityManager { + /** + * Constructs a new {@code RMISecurityManager}. + */ + // @ts-ignore + constructor() + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.Remote.d.ts b/packages/types/dist/typings/jdk/java.rmi.Remote.d.ts new file mode 100644 index 00000000..7ae07662 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.Remote.d.ts @@ -0,0 +1,8 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + // @ts-ignore + interface Remote { + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.RemoteException.d.ts b/packages/types/dist/typings/jdk/java.rmi.RemoteException.d.ts new file mode 100644 index 00000000..39ed49c7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.RemoteException.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + // @ts-ignore + class RemoteException extends java.io.IOException { + /** + * Constructs a RemoteException. + */ + // @ts-ignore + constructor() + /** + * Constructs a RemoteException with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + /** + * Constructs a RemoteException with the specified detail + * message and cause. This constructor sets the {@link #detail} + * field to the specified Throwable. + */ + // @ts-ignore + constructor(s: string, cause: java.lang.Throwable) + // @ts-ignore + public detail: java.lang.Throwable; + /** + * Returns the detail message, including the message from the cause, if + * any, of this exception. + */ + // @ts-ignore + public getMessage(): string; + /** + * Returns the cause of this exception. This method returns the value + * of the {@link #detail} field. + */ + // @ts-ignore + public getCause(): java.lang.Throwable; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.ServerError.d.ts b/packages/types/dist/typings/jdk/java.rmi.ServerError.d.ts new file mode 100644 index 00000000..8b52a733 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.ServerError.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + // @ts-ignore + class ServerError extends java.rmi.RemoteException { + /** + * Constructs a ServerError with the specified + * detail message and nested error. + */ + // @ts-ignore + constructor(s: string, err: java.lang.Error) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.ServerException.d.ts b/packages/types/dist/typings/jdk/java.rmi.ServerException.d.ts new file mode 100644 index 00000000..0c0e87a0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.ServerException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + // @ts-ignore + class ServerException extends java.rmi.RemoteException { + /** + * Constructs a ServerException with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + /** + * Constructs a ServerException with the specified + * detail message and nested exception. + */ + // @ts-ignore + constructor(s: string, ex: java.lang.Exception) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.ServerRuntimeException.d.ts b/packages/types/dist/typings/jdk/java.rmi.ServerRuntimeException.d.ts new file mode 100644 index 00000000..e8a1c739 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.ServerRuntimeException.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + // @ts-ignore + class ServerRuntimeException extends java.rmi.RemoteException { + /** + * Constructs a ServerRuntimeException with the specified + * detail message and nested exception. + */ + // @ts-ignore + constructor(s: string, ex: java.lang.Exception) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.StubNotFoundException.d.ts b/packages/types/dist/typings/jdk/java.rmi.StubNotFoundException.d.ts new file mode 100644 index 00000000..86eb721f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.StubNotFoundException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + // @ts-ignore + class StubNotFoundException extends java.rmi.RemoteException { + /** + * Constructs a StubNotFoundException with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + /** + * Constructs a StubNotFoundException with the specified + * detail message and nested exception. + */ + // @ts-ignore + constructor(s: string, ex: java.lang.Exception) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.UnexpectedException.d.ts b/packages/types/dist/typings/jdk/java.rmi.UnexpectedException.d.ts new file mode 100644 index 00000000..ef1cc550 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.UnexpectedException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + // @ts-ignore + class UnexpectedException extends java.rmi.RemoteException { + /** + * Constructs an UnexpectedException with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + /** + * Constructs a UnexpectedException with the specified + * detail message and nested exception. + */ + // @ts-ignore + constructor(s: string, ex: java.lang.Exception) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.UnknownHostException.d.ts b/packages/types/dist/typings/jdk/java.rmi.UnknownHostException.d.ts new file mode 100644 index 00000000..25520eb8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.UnknownHostException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + // @ts-ignore + class UnknownHostException extends java.rmi.RemoteException { + /** + * Constructs an UnknownHostException with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + /** + * Constructs an UnknownHostException with the specified + * detail message and nested exception. + */ + // @ts-ignore + constructor(s: string, ex: java.lang.Exception) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.UnmarshalException.d.ts b/packages/types/dist/typings/jdk/java.rmi.UnmarshalException.d.ts new file mode 100644 index 00000000..841eddd7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.UnmarshalException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + // @ts-ignore + class UnmarshalException extends java.rmi.RemoteException { + /** + * Constructs an UnmarshalException with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + /** + * Constructs an UnmarshalException with the specified + * detail message and nested exception. + */ + // @ts-ignore + constructor(s: string, ex: java.lang.Exception) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.activation.Activatable.d.ts b/packages/types/dist/typings/jdk/java.rmi.activation.Activatable.d.ts new file mode 100644 index 00000000..c685b7fa --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.activation.Activatable.d.ts @@ -0,0 +1,213 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace activation { + // @ts-ignore + abstract class Activatable extends java.rmi.server.RemoteServer { + /** + * Constructs an activatable remote object by registering + * an activation descriptor (with the specified location, data, and + * restart mode) for this object, and exporting the object with the + * specified port. + *

Note: Using the Activatable + * constructors that both register and export an activatable remote + * object is strongly discouraged because the actions of registering + * and exporting the remote object are not guaranteed to be + * atomic. Instead, an application should register an activation + * descriptor and export a remote object separately, so that exceptions + * can be handled properly. + *

This method invokes the {@link + * #exportObject(Remote,String,MarshalledObject,boolean,int) + * exportObject} method with this object, and the specified location, + * data, restart mode, and port. Subsequent calls to {@link #getID} + * will return the activation identifier returned from the call to + * exportObject. + */ + // @ts-ignore + constructor(location: string, data: java.rmi.MarshalledObject, restart: boolean, port: number) + /** + * Constructs an activatable remote object by registering + * an activation descriptor (with the specified location, data, and + * restart mode) for this object, and exporting the object with the + * specified port, and specified client and server socket factories. + *

Note: Using the Activatable + * constructors that both register and export an activatable remote + * object is strongly discouraged because the actions of registering + * and exporting the remote object are not guaranteed to be + * atomic. Instead, an application should register an activation + * descriptor and export a remote object separately, so that exceptions + * can be handled properly. + *

This method invokes the {@link + * #exportObject(Remote,String,MarshalledObject,boolean,int,RMIClientSocketFactory,RMIServerSocketFactory) + * exportObject} method with this object, and the specified location, + * data, restart mode, port, and client and server socket factories. + * Subsequent calls to {@link #getID} will return the activation + * identifier returned from the call to exportObject. + */ + // @ts-ignore + constructor(location: string, data: java.rmi.MarshalledObject, restart: boolean, port: number, csf: java.rmi.server.RMIClientSocketFactory, ssf: java.rmi.server.RMIServerSocketFactory) + /** + * Constructor used to activate/export the object on a specified + * port. An "activatable" remote object must have a constructor that + * takes two arguments:

    + *
  • the object's activation identifier (ActivationID), and + *
  • the object's initialization data (a MarshalledObject). + *

+ * A concrete subclass of this class must call this constructor when it is + * activated via the two parameter constructor described above. As + * a side-effect of construction, the remote object is "exported" + * to the RMI runtime (on the specified port) and is + * available to accept incoming calls from clients. + */ + // @ts-ignore + constructor(id: java.rmi.activation.ActivationID, port: number) + /** + * Constructor used to activate/export the object on a specified + * port. An "activatable" remote object must have a constructor that + * takes two arguments:

    + *
  • the object's activation identifier (ActivationID), and + *
  • the object's initialization data (a MarshalledObject). + *

+ * A concrete subclass of this class must call this constructor when it is + * activated via the two parameter constructor described above. As + * a side-effect of construction, the remote object is "exported" + * to the RMI runtime (on the specified port) and is + * available to accept incoming calls from clients. + */ + // @ts-ignore + constructor(id: java.rmi.activation.ActivationID, port: number, csf: java.rmi.server.RMIClientSocketFactory, ssf: java.rmi.server.RMIServerSocketFactory) + /** + * Returns the object's activation identifier. The method is + * protected so that only subclasses can obtain an object's + * identifier. + */ + // @ts-ignore + protected getID(): java.rmi.activation.ActivationID; + /** + * Register an object descriptor for an activatable remote + * object so that is can be activated on demand. + */ + // @ts-ignore + public static register(desc: java.rmi.activation.ActivationDesc): java.rmi.Remote; + /** + * Informs the system that the object with the corresponding activation + * id is currently inactive. If the object is currently + * active, the object is "unexported" from the RMI runtime (only if + * there are no pending or in-progress calls) + * so the that it can no longer receive incoming calls. This call + * informs this VM's ActivationGroup that the object is inactive, + * that, in turn, informs its ActivationMonitor. If this call + * completes successfully, a subsequent activate request to the activator + * will cause the object to reactivate. The operation may still + * succeed if the object is considered active but has already + * unexported itself. + */ + // @ts-ignore + public static inactive(id: java.rmi.activation.ActivationID): boolean; + /** + * Revokes previous registration for the activation descriptor + * associated with id. An object can no longer be + * activated via that id. + */ + // @ts-ignore + public static unregister(id: java.rmi.activation.ActivationID): void; + /** + * Registers an activation descriptor (with the specified location, + * data, and restart mode) for the specified object, and exports that + * object with the specified port. + *

Note: Using this method (as well as the + * Activatable constructors that both register and export + * an activatable remote object) is strongly discouraged because the + * actions of registering and exporting the remote object are + * not guaranteed to be atomic. Instead, an application should + * register an activation descriptor and export a remote object + * separately, so that exceptions can be handled properly. + *

This method invokes the {@link + * #exportObject(Remote,String,MarshalledObject,boolean,int,RMIClientSocketFactory,RMIServerSocketFactory) + * exportObject} method with the specified object, location, data, + * restart mode, and port, and null for both client and + * server socket factories, and then returns the resulting activation + * identifier. + */ + // @ts-ignore + public static exportObject(obj: java.rmi.Remote, location: string, data: java.rmi.MarshalledObject, restart: boolean, port: number): java.rmi.activation.ActivationID; + /** + * Registers an activation descriptor (with the specified location, + * data, and restart mode) for the specified object, and exports that + * object with the specified port, and the specified client and server + * socket factories. + *

Note: Using this method (as well as the + * Activatable constructors that both register and export + * an activatable remote object) is strongly discouraged because the + * actions of registering and exporting the remote object are + * not guaranteed to be atomic. Instead, an application should + * register an activation descriptor and export a remote object + * separately, so that exceptions can be handled properly. + *

This method first registers an activation descriptor for the + * specified object as follows. It obtains the activation system by + * invoking the method {@link ActivationGroup#getSystem + * ActivationGroup.getSystem}. This method then obtains an {@link + * ActivationID} for the object by invoking the activation system's + * {@link ActivationSystem#registerObject registerObject} method with + * an {@link ActivationDesc} constructed with the specified object's + * class name, and the specified location, data, and restart mode. If + * an exception occurs obtaining the activation system or registering + * the activation descriptor, that exception is thrown to the caller. + *

Next, this method exports the object by invoking the {@link + * #exportObject(Remote,ActivationID,int,RMIClientSocketFactory,RMIServerSocketFactory) + * exportObject} method with the specified remote object, the + * activation identifier obtained from registration, the specified + * port, and the specified client and server socket factories. If an + * exception occurs exporting the object, this method attempts to + * unregister the activation identifier (obtained from registration) by + * invoking the activation system's {@link + * ActivationSystem#unregisterObject unregisterObject} method with the + * activation identifier. If an exception occurs unregistering the + * identifier, that exception is ignored, and the original exception + * that occurred exporting the object is thrown to the caller. + *

Finally, this method invokes the {@link + * ActivationGroup#activeObject activeObject} method on the activation + * group in this VM with the activation identifier and the specified + * remote object, and returns the activation identifier to the caller. + */ + // @ts-ignore + public static exportObject(obj: java.rmi.Remote, location: string, data: java.rmi.MarshalledObject, restart: boolean, port: number, csf: java.rmi.server.RMIClientSocketFactory, ssf: java.rmi.server.RMIServerSocketFactory): java.rmi.activation.ActivationID; + /** + * Export the activatable remote object to the RMI runtime to make + * the object available to receive incoming calls. The object is + * exported on an anonymous port, if port is zero.

+ * During activation, this exportObject method should + * be invoked explicitly by an "activatable" object, that does not + * extend the Activatable class. There is no need for objects + * that do extend the Activatable class to invoke this + * method directly because the object is exported during construction. + */ + // @ts-ignore + public static exportObject(obj: java.rmi.Remote, id: java.rmi.activation.ActivationID, port: number): java.rmi.Remote; + /** + * Export the activatable remote object to the RMI runtime to make + * the object available to receive incoming calls. The object is + * exported on an anonymous port, if port is zero.

+ * During activation, this exportObject method should + * be invoked explicitly by an "activatable" object, that does not + * extend the Activatable class. There is no need for objects + * that do extend the Activatable class to invoke this + * method directly because the object is exported during construction. + */ + // @ts-ignore + public static exportObject(obj: java.rmi.Remote, id: java.rmi.activation.ActivationID, port: number, csf: java.rmi.server.RMIClientSocketFactory, ssf: java.rmi.server.RMIServerSocketFactory): java.rmi.Remote; + /** + * Remove the remote object, obj, from the RMI runtime. If + * successful, the object can no longer accept incoming RMI calls. + * If the force parameter is true, the object is forcibly unexported + * even if there are pending calls to the remote object or the + * remote object still has calls in progress. If the force + * parameter is false, the object is only unexported if there are + * no pending or in progress calls to the object. + */ + // @ts-ignore + public static unexportObject(obj: java.rmi.Remote, force: boolean): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.activation.ActivateFailedException.d.ts b/packages/types/dist/typings/jdk/java.rmi.activation.ActivateFailedException.d.ts new file mode 100644 index 00000000..6f347f11 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.activation.ActivateFailedException.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace activation { + // @ts-ignore + class ActivateFailedException extends java.rmi.RemoteException { + /** + * Constructs an ActivateFailedException with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + /** + * Constructs an ActivateFailedException with the specified + * detail message and nested exception. + */ + // @ts-ignore + constructor(s: string, ex: java.lang.Exception) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.activation.ActivationDesc.d.ts b/packages/types/dist/typings/jdk/java.rmi.activation.ActivationDesc.d.ts new file mode 100644 index 00000000..36317d01 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.activation.ActivationDesc.d.ts @@ -0,0 +1,110 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace activation { + // @ts-ignore + class ActivationDesc extends java.lang.Object { + /** + * Constructs an object descriptor for an object whose class name + * is className, that can be loaded from the + * code location and whose initialization + * information is data. If this form of the constructor + * is used, the groupID defaults to the current id for + * ActivationGroup for this VM. All objects with the + * same ActivationGroupID are activated in the same VM. + *

Note that objects specified by a descriptor created with this + * constructor will only be activated on demand (by default, the restart + * mode is false). If an activatable object requires restart + * services, use one of the ActivationDesc constructors that + * takes a boolean parameter, restart. + *

This constructor will throw ActivationException if + * there is no current activation group for this VM. To create an + * ActivationGroup use the + * ActivationGroup.createGroup method. + */ + // @ts-ignore + constructor(className: string, location: string, data: java.rmi.MarshalledObject) + /** + * Constructs an object descriptor for an object whose class name + * is className, that can be loaded from the + * code location and whose initialization + * information is data. If this form of the constructor + * is used, the groupID defaults to the current id for + * ActivationGroup for this VM. All objects with the + * same ActivationGroupID are activated in the same VM. + *

This constructor will throw ActivationException if + * there is no current activation group for this VM. To create an + * ActivationGroup use the + * ActivationGroup.createGroup method. + */ + // @ts-ignore + constructor(className: string, location: string, data: java.rmi.MarshalledObject, restart: boolean) + /** + * Constructs an object descriptor for an object whose class name + * is className that can be loaded from the + * code location and whose initialization + * information is data. All objects with the same + * groupID are activated in the same Java VM. + *

Note that objects specified by a descriptor created with this + * constructor will only be activated on demand (by default, the restart + * mode is false). If an activatable object requires restart + * services, use one of the ActivationDesc constructors that + * takes a boolean parameter, restart. + */ + // @ts-ignore + constructor(groupID: java.rmi.activation.ActivationGroupID, className: string, location: string, data: java.rmi.MarshalledObject) + /** + * Constructs an object descriptor for an object whose class name + * is className that can be loaded from the + * code location and whose initialization + * information is data. All objects with the same + * groupID are activated in the same Java VM. + */ + // @ts-ignore + constructor(groupID: java.rmi.activation.ActivationGroupID, className: string, location: string, data: java.rmi.MarshalledObject, restart: boolean) + /** + * Returns the group identifier for the object specified by this + * descriptor. A group provides a way to aggregate objects into a + * single Java virtual machine. RMI creates/activates objects with + * the same groupID in the same virtual machine. + */ + // @ts-ignore + public getGroupID(): java.rmi.activation.ActivationGroupID; + /** + * Returns the class name for the object specified by this + * descriptor. + */ + // @ts-ignore + public getClassName(): string; + /** + * Returns the code location for the object specified by + * this descriptor. + */ + // @ts-ignore + public getLocation(): string; + /** + * Returns a "marshalled object" containing intialization/activation + * data for the object specified by this descriptor. + */ + // @ts-ignore + public getData(): java.rmi.MarshalledObject; + /** + * Returns the "restart" mode of the object associated with + * this activation descriptor. + */ + // @ts-ignore + public getRestartMode(): boolean; + /** + * Compares two activation descriptors for content equality. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Return the same hashCode for similar ActivationDescs. + */ + // @ts-ignore + public hashCode(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.activation.ActivationException.d.ts b/packages/types/dist/typings/jdk/java.rmi.activation.ActivationException.d.ts new file mode 100644 index 00000000..9420343a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.activation.ActivationException.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace activation { + // @ts-ignore + class ActivationException extends java.lang.Exception { + /** + * Constructs an ActivationException. + */ + // @ts-ignore + constructor() + /** + * Constructs an ActivationException with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + /** + * Constructs an ActivationException with the specified + * detail message and cause. This constructor sets the {@link #detail} + * field to the specified Throwable. + */ + // @ts-ignore + constructor(s: string, cause: java.lang.Throwable) + // @ts-ignore + public detail: java.lang.Throwable; + /** + * Returns the detail message, including the message from the cause, if + * any, of this exception. + */ + // @ts-ignore + public getMessage(): string; + /** + * Returns the cause of this exception. This method returns the value + * of the {@link #detail} field. + */ + // @ts-ignore + public getCause(): java.lang.Throwable; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.activation.ActivationGroup.d.ts b/packages/types/dist/typings/jdk/java.rmi.activation.ActivationGroup.d.ts new file mode 100644 index 00000000..9aa13250 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.activation.ActivationGroup.d.ts @@ -0,0 +1,156 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace activation { + // @ts-ignore + abstract class ActivationGroup extends java.rmi.server.UnicastRemoteObject { + /** + * Constructs an activation group with the given activation group + * identifier. The group is exported as a + * java.rmi.server.UnicastRemoteObject. + */ + // @ts-ignore + constructor(groupID: java.rmi.activation.ActivationGroupID) + /** + * The group's inactiveObject method is called + * indirectly via a call to the Activatable.inactive + * method. A remote object implementation must call + * Activatable's inactive method when + * that object deactivates (the object deems that it is no longer + * active). If the object does not call + * Activatable.inactive when it deactivates, the + * object will never be garbage collected since the group keeps + * strong references to the objects it creates. + *

The group's inactiveObject method unexports the + * remote object from the RMI runtime so that the object can no + * longer receive incoming RMI calls. An object will only be unexported + * if the object has no pending or executing calls. + * The subclass of ActivationGroup must override this + * method and unexport the object. + *

After removing the object from the RMI runtime, the group + * must inform its ActivationMonitor (via the monitor's + * inactiveObject method) that the remote object is + * not currently active so that the remote object will be + * re-activated by the activator upon a subsequent activation + * request. + *

This method simply informs the group's monitor that the object + * is inactive. It is up to the concrete subclass of ActivationGroup + * to fulfill the additional requirement of unexporting the object.

+ */ + // @ts-ignore + public inactiveObject(id: java.rmi.activation.ActivationID): boolean; + /** + * The group's activeObject method is called when an + * object is exported (either by Activatable object + * construction or an explicit call to + * Activatable.exportObject. The group must inform its + * ActivationMonitor that the object is active (via + * the monitor's activeObject method) if the group + * hasn't already done so. + */ + // @ts-ignore + public abstract activeObject(id: java.rmi.activation.ActivationID, obj: java.rmi.Remote): void; + /** + * Create and set the activation group for the current VM. The + * activation group can only be set if it is not currently set. + * An activation group is set using the createGroup + * method when the Activator initiates the + * re-creation of an activation group in order to carry out + * incoming activate requests. A group must first be + * registered with the ActivationSystem before it can + * be created via this method. + *

The group class specified by the + * ActivationGroupDesc must be a concrete subclass of + * ActivationGroup and have a public constructor that + * takes two arguments: the ActivationGroupID for the + * group and the MarshalledObject containing the + * group's initialization data (obtained from the + * ActivationGroupDesc. + *

If the group class name specified in the + * ActivationGroupDesc is null, then + * this method will behave as if the group descriptor contained + * the name of the default activation group implementation class. + *

Note that if your application creates its own custom + * activation group, a security manager must be set for that + * group. Otherwise objects cannot be activated in the group. + * {@link SecurityManager} is set by default. + *

If a security manager is already set in the group VM, this + * method first calls the security manager's + * checkSetFactory method. This could result in a + * SecurityException. If your application needs to + * set a different security manager, you must ensure that the + * policy file specified by the group's + * ActivationGroupDesc grants the group the necessary + * permissions to set a new security manager. (Note: This will be + * necessary if your group downloads and sets a security manager). + *

After the group is created, the + * ActivationSystem is informed that the group is + * active by calling the activeGroup method which + * returns the ActivationMonitor for the group. The + * application need not call activeGroup + * independently since it is taken care of by this method. + *

Once a group is created, subsequent calls to the + * currentGroupID method will return the identifier + * for this group until the group becomes inactive. + */ + // @ts-ignore + public static createGroup(id: java.rmi.activation.ActivationGroupID, desc: java.rmi.activation.ActivationGroupDesc, incarnation: number): java.rmi.activation.ActivationGroup; + /** + * Returns the current activation group's identifier. Returns null + * if no group is currently active for this VM. + */ + // @ts-ignore + public static currentGroupID(): java.rmi.activation.ActivationGroupID; + /** + * Set the activation system for the VM. The activation system can + * only be set it if no group is currently active. If the activation + * system is not set via this call, then the getSystem + * method attempts to obtain a reference to the + * ActivationSystem by looking up the name + * "java.rmi.activation.ActivationSystem" in the Activator's + * registry. By default, the port number used to look up the + * activation system is defined by + * ActivationSystem.SYSTEM_PORT. This port can be overridden + * by setting the property java.rmi.activation.port. + *

If there is a security manager, this method first + * calls the security manager's checkSetFactory method. + * This could result in a SecurityException. + */ + // @ts-ignore + public static setSystem(system: java.rmi.activation.ActivationSystem): void; + /** + * Returns the activation system for the VM. The activation system + * may be set by the setSystem method. If the + * activation system is not set via the setSystem + * method, then the getSystem method attempts to + * obtain a reference to the ActivationSystem by + * looking up the name "java.rmi.activation.ActivationSystem" in + * the Activator's registry. By default, the port number used to + * look up the activation system is defined by + * ActivationSystem.SYSTEM_PORT. This port can be + * overridden by setting the property + * java.rmi.activation.port. + */ + // @ts-ignore + public static getSystem(): java.rmi.activation.ActivationSystem; + /** + * This protected method is necessary for subclasses to + * make the activeObject callback to the group's + * monitor. The call is simply forwarded to the group's + * ActivationMonitor. + */ + // @ts-ignore + protected activeObject(id: java.rmi.activation.ActivationID, mobj: java.rmi.MarshalledObject): void; + /** + * This protected method is necessary for subclasses to + * make the inactiveGroup callback to the group's + * monitor. The call is simply forwarded to the group's + * ActivationMonitor. Also, the current group + * for the VM is set to null. + */ + // @ts-ignore + protected inactiveGroup(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.activation.ActivationGroupDesc.CommandEnvironment.d.ts b/packages/types/dist/typings/jdk/java.rmi.activation.ActivationGroupDesc.CommandEnvironment.d.ts new file mode 100644 index 00000000..50c05ef7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.activation.ActivationGroupDesc.CommandEnvironment.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace activation { + namespace ActivationGroupDesc { + // @ts-ignore + class CommandEnvironment extends java.lang.Object { + /** + * Create a CommandEnvironment with all the necessary + * information. + */ + // @ts-ignore + constructor(cmdpath: string, argv: string) + /** + * Fetch the configured path-qualified java command name. + */ + // @ts-ignore + public getCommandPath(): string; + /** + * Fetch the configured java command options. + */ + // @ts-ignore + public getCommandOptions(): java.lang.String[]; + /** + * Compares two command environments for content equality. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Return identical values for similar + * CommandEnvironments. + */ + // @ts-ignore + public hashCode(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.activation.ActivationGroupDesc.d.ts b/packages/types/dist/typings/jdk/java.rmi.activation.ActivationGroupDesc.d.ts new file mode 100644 index 00000000..0dc804e3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.activation.ActivationGroupDesc.d.ts @@ -0,0 +1,67 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace activation { + // @ts-ignore + class ActivationGroupDesc extends java.lang.Object { + /** + * Constructs a group descriptor that uses the system defaults for group + * implementation and code location. Properties specify Java + * environment overrides (which will override system properties in + * the group implementation's VM). The command + * environment can control the exact command/options used in + * starting the child VM, or can be null to accept + * rmid's default. + *

This constructor will create an ActivationGroupDesc + * with a null group class name, which indicates the system's + * default ActivationGroup implementation. + */ + // @ts-ignore + constructor(overrides: java.util.Properties, cmd: java.rmi.activation.ActivationGroupDesc.CommandEnvironment) + /** + * Specifies an alternate group implementation and execution + * environment to be used for the group. + */ + // @ts-ignore + constructor(className: string, location: string, data: java.rmi.MarshalledObject, overrides: java.util.Properties, cmd: java.rmi.activation.ActivationGroupDesc.CommandEnvironment) + /** + * Returns the group's class name (possibly null). A + * null group class name indicates the system's default + * ActivationGroup implementation. + */ + // @ts-ignore + public getClassName(): string; + /** + * Returns the group's code location. + */ + // @ts-ignore + public getLocation(): string; + /** + * Returns the group's initialization data. + */ + // @ts-ignore + public getData(): java.rmi.MarshalledObject; + /** + * Returns the group's property-override list. + */ + // @ts-ignore + public getPropertyOverrides(): java.util.Properties; + /** + * Returns the group's command-environment control object. + */ + // @ts-ignore + public getCommandEnvironment(): java.rmi.activation.ActivationGroupDesc.CommandEnvironment; + /** + * Compares two activation group descriptors for content equality. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Produce identical numbers for similar ActivationGroupDescs. + */ + // @ts-ignore + public hashCode(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.activation.ActivationGroupID.d.ts b/packages/types/dist/typings/jdk/java.rmi.activation.ActivationGroupID.d.ts new file mode 100644 index 00000000..ed1d1eb4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.activation.ActivationGroupID.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace activation { + // @ts-ignore + class ActivationGroupID extends java.lang.Object { + /** + * Constructs a unique group id. + */ + // @ts-ignore + constructor(system: java.rmi.activation.ActivationSystem) + /** + * Returns the group's activation system. + */ + // @ts-ignore + public getSystem(): java.rmi.activation.ActivationSystem; + /** + * Returns a hashcode for the group's identifier. Two group + * identifiers that refer to the same remote group will have the + * same hash code. + */ + // @ts-ignore + public hashCode(): number; + /** + * Compares two group identifiers for content equality. + * Returns true if both of the following conditions are true: + * 1) the unique identifiers are equivalent (by content), and + * 2) the activation system specified in each + * refers to the same remote object. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.activation.ActivationID.d.ts b/packages/types/dist/typings/jdk/java.rmi.activation.ActivationID.d.ts new file mode 100644 index 00000000..8949655a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.activation.ActivationID.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace activation { + // @ts-ignore + class ActivationID extends java.lang.Object { + /** + * The constructor for ActivationID takes a single + * argument, activator, that specifies a remote reference to the + * activator responsible for activating the object associated with + * this identifier. An instance of ActivationID is globally + * unique. + */ + // @ts-ignore + constructor(activator: java.rmi.activation.Activator) + /** + * Activate the object for this id. + */ + // @ts-ignore + public activate(force: boolean): java.rmi.Remote; + /** + * Returns a hashcode for the activation id. Two identifiers that + * refer to the same remote object will have the same hash code. + */ + // @ts-ignore + public hashCode(): number; + /** + * Compares two activation ids for content equality. + * Returns true if both of the following conditions are true: + * 1) the unique identifiers equivalent (by content), and + * 2) the activator specified in each identifier + * refers to the same remote object. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.activation.ActivationInstantiator.d.ts b/packages/types/dist/typings/jdk/java.rmi.activation.ActivationInstantiator.d.ts new file mode 100644 index 00000000..30e08a63 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.activation.ActivationInstantiator.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace activation { + // @ts-ignore + interface ActivationInstantiator { + /** + * The activator calls an instantiator's newInstance + * method in order to recreate in that group an object with the + * activation identifier, id, and descriptor, + * desc. The instantiator is responsible for:

    + *
  • determining the class for the object using the descriptor's + * getClassName method, + *
  • loading the class from the code location obtained from the + * descriptor (using the getLocation method), + *
  • creating an instance of the class by invoking the special + * "activation" constructor of the object's class that takes two + * arguments: the object's ActivationID, and the + * MarshalledObject containing object specific + * initialization data, and + *
  • returning a MarshalledObject containing the stub for the + * remote object it created
+ */ + // @ts-ignore + newInstance(id: java.rmi.activation.ActivationID, desc: java.rmi.activation.ActivationDesc): java.rmi.MarshalledObject; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.activation.ActivationMonitor.d.ts b/packages/types/dist/typings/jdk/java.rmi.activation.ActivationMonitor.d.ts new file mode 100644 index 00000000..bf15ab4f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.activation.ActivationMonitor.d.ts @@ -0,0 +1,44 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace activation { + // @ts-ignore + interface ActivationMonitor { + /** + * An activation group calls its monitor's + * inactiveObject method when an object in its group + * becomes inactive (deactivates). An activation group discovers + * that an object (that it participated in activating) in its VM + * is no longer active, via calls to the activation group's + * inactiveObject method.

+ * The inactiveObject call informs the + * ActivationMonitor that the remote object reference + * it holds for the object with the activation identifier, + * id, is no longer valid. The monitor considers the + * reference associated with id as a stale reference. + * Since the reference is considered stale, a subsequent + * activate call for the same activation identifier + * results in re-activating the remote object.

+ */ + // @ts-ignore + inactiveObject(id: java.rmi.activation.ActivationID): void; + /** + * Informs that an object is now active. An ActivationGroup + * informs its monitor if an object in its group becomes active by + * other means than being activated directly (i.e., the object + * is registered and "activated" itself). + */ + // @ts-ignore + activeObject(id: java.rmi.activation.ActivationID, obj: java.rmi.MarshalledObject): void; + /** + * Informs that the group is now inactive. The group will be + * recreated upon a subsequent request to activate an object + * within the group. A group becomes inactive when all objects + * in the group report that they are inactive. + */ + // @ts-ignore + inactiveGroup(id: java.rmi.activation.ActivationGroupID, incarnation: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.activation.ActivationSystem.d.ts b/packages/types/dist/typings/jdk/java.rmi.activation.ActivationSystem.d.ts new file mode 100644 index 00000000..4d2dbdaf --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.activation.ActivationSystem.d.ts @@ -0,0 +1,92 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace activation { + // @ts-ignore + interface ActivationSystem { + // @ts-ignore + SYSTEM_PORT: number; + /** + * The registerObject method is used to register an + * activation descriptor, desc, and obtain an + * activation identifier for a activatable remote object. The + * ActivationSystem creates an + * ActivationID (a activation identifier) for the + * object specified by the descriptor, desc, and + * records, in stable storage, the activation descriptor and its + * associated identifier for later use. When the Activator + * receives an activate request for a specific identifier, it + * looks up the activation descriptor (registered previously) for + * the specified identifier and uses that information to activate + * the object.

+ */ + // @ts-ignore + registerObject(desc: java.rmi.activation.ActivationDesc): java.rmi.activation.ActivationID; + /** + * Remove the activation id and associated descriptor previously + * registered with the ActivationSystem; the object + * can no longer be activated via the object's activation id. + */ + // @ts-ignore + unregisterObject(id: java.rmi.activation.ActivationID): void; + /** + * Register the activation group. An activation group must be + * registered with the ActivationSystem before objects + * can be registered within that group. + */ + // @ts-ignore + registerGroup(desc: java.rmi.activation.ActivationGroupDesc): java.rmi.activation.ActivationGroupID; + /** + * Callback to inform activation system that group is now + * active. This call is made internally by the + * ActivationGroup.createGroup method to inform + * the ActivationSystem that the group is now + * active. + */ + // @ts-ignore + activeGroup(id: java.rmi.activation.ActivationGroupID, group: java.rmi.activation.ActivationInstantiator, incarnation: number): java.rmi.activation.ActivationMonitor; + /** + * Remove the activation group. An activation group makes this call back + * to inform the activator that the group should be removed (destroyed). + * If this call completes successfully, objects can no longer be + * registered or activated within the group. All information of the + * group and its associated objects is removed from the system. + */ + // @ts-ignore + unregisterGroup(id: java.rmi.activation.ActivationGroupID): void; + /** + * Shutdown the activation system. Destroys all groups spawned by + * the activation daemon and exits the activation daemon. + */ + // @ts-ignore + shutdown(): void; + /** + * Set the activation descriptor, desc for the object with + * the activation identifier, id. The change will take + * effect upon subsequent activation of the object. + */ + // @ts-ignore + setActivationDesc(id: java.rmi.activation.ActivationID, desc: java.rmi.activation.ActivationDesc): java.rmi.activation.ActivationDesc; + /** + * Set the activation group descriptor, desc for the object + * with the activation group identifier, id. The change will + * take effect upon subsequent activation of the group. + */ + // @ts-ignore + setActivationGroupDesc(id: java.rmi.activation.ActivationGroupID, desc: java.rmi.activation.ActivationGroupDesc): java.rmi.activation.ActivationGroupDesc; + /** + * Returns the activation descriptor, for the object with the activation + * identifier, id. + */ + // @ts-ignore + getActivationDesc(id: java.rmi.activation.ActivationID): java.rmi.activation.ActivationDesc; + /** + * Returns the activation group descriptor, for the group + * with the activation group identifier, id. + */ + // @ts-ignore + getActivationGroupDesc(id: java.rmi.activation.ActivationGroupID): java.rmi.activation.ActivationGroupDesc; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.activation.Activator.d.ts b/packages/types/dist/typings/jdk/java.rmi.activation.Activator.d.ts new file mode 100644 index 00000000..5f19c57c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.activation.Activator.d.ts @@ -0,0 +1,45 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace activation { + // @ts-ignore + interface Activator { + /** + * Activate the object associated with the activation identifier, + * id. If the activator knows the object to be active + * already, and force is false , the stub with a + * "live" reference is returned immediately to the caller; + * otherwise, if the activator does not know that corresponding + * the remote object is active, the activator uses the activation + * descriptor information (previously registered) to determine the + * group (VM) in which the object should be activated. If an + * ActivationInstantiator corresponding to the + * object's group descriptor already exists, the activator invokes + * the activation group's newInstance method passing + * it the object's id and descriptor.

+ * If the activation group for the object's group descriptor does + * not yet exist, the activator starts an + * ActivationInstantiator executing (by spawning a + * child process, for example). When the activator receives the + * activation group's call back (via the + * ActivationSystem's activeGroup + * method) specifying the activation group's reference, the + * activator can then invoke that activation instantiator's + * newInstance method to forward each pending + * activation request to the activation group and return the + * result (a marshalled remote object reference, a stub) to the + * caller.

+ * Note that the activator receives a "marshalled" object instead of a + * Remote object so that the activator does not need to load the + * code for that object, or participate in distributed garbage + * collection for that object. If the activator kept a strong + * reference to the remote object, the activator would then + * prevent the object from being garbage collected under the + * normal distributed garbage collection mechanism.

+ */ + // @ts-ignore + activate(id: java.rmi.activation.ActivationID, force: boolean): java.rmi.MarshalledObject; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.activation.UnknownGroupException.d.ts b/packages/types/dist/typings/jdk/java.rmi.activation.UnknownGroupException.d.ts new file mode 100644 index 00000000..482b01f6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.activation.UnknownGroupException.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace activation { + // @ts-ignore + class UnknownGroupException extends java.rmi.activation.ActivationException { + /** + * Constructs an UnknownGroupException with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.activation.UnknownObjectException.d.ts b/packages/types/dist/typings/jdk/java.rmi.activation.UnknownObjectException.d.ts new file mode 100644 index 00000000..6359df09 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.activation.UnknownObjectException.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace activation { + // @ts-ignore + class UnknownObjectException extends java.rmi.activation.ActivationException { + /** + * Constructs an UnknownObjectException with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.dgc.DGC.d.ts b/packages/types/dist/typings/jdk/java.rmi.dgc.DGC.d.ts new file mode 100644 index 00000000..33a595be --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.dgc.DGC.d.ts @@ -0,0 +1,55 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace dgc { + // @ts-ignore + interface DGC { + /** + * The dirty call requests leases for the remote object references + * associated with the object identifiers contained in the array + * 'ids'. The 'lease' contains a client's unique VM identifier (VMID) + * and a requested lease period. For each remote object exported + * in the local VM, the garbage collector maintains a reference + * list-a list of clients that hold references to it. If the lease + * is granted, the garbage collector adds the client's VMID to the + * reference list for each remote object indicated in 'ids'. The + * 'sequenceNum' parameter is a sequence number that is used to + * detect and discard late calls to the garbage collector. The + * sequence number should always increase for each subsequent call + * to the garbage collector. + * Some clients are unable to generate a VMID, since a VMID is a + * universally unique identifier that contains a host address + * which some clients are unable to obtain due to security + * restrictions. In this case, a client can use a VMID of null, + * and the distributed garbage collector will assign a VMID for + * the client. + * The dirty call returns a Lease object that contains the VMID + * used and the lease period granted for the remote references (a + * server may decide to grant a smaller lease period than the + * client requests). A client must use the VMID the garbage + * collector uses in order to make corresponding clean calls when + * the client drops remote object references. + * A client VM need only make one initial dirty call for each + * remote reference referenced in the VM (even if it has multiple + * references to the same remote object). The client must also + * make a dirty call to renew leases on remote references before + * such leases expire. When the client no longer has any + * references to a specific remote object, it must schedule a + * clean call for the object ID associated with the reference. + */ + // @ts-ignore + dirty(ids: java.rmi.server.ObjID, sequenceNum: number, lease: java.rmi.dgc.Lease): java.rmi.dgc.Lease; + /** + * The clean call removes the 'vmid' from the reference list of + * each remote object indicated in 'id's. The sequence number is + * used to detect late clean calls. If the argument 'strong' is + * true, then the clean call is a result of a failed dirty call, + * thus the sequence number for the client 'vmid' needs to be + * remembered. + */ + // @ts-ignore + clean(ids: java.rmi.server.ObjID, sequenceNum: number, vmid: java.rmi.dgc.VMID, strong: boolean): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.dgc.Lease.d.ts b/packages/types/dist/typings/jdk/java.rmi.dgc.Lease.d.ts new file mode 100644 index 00000000..fb476cc4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.dgc.Lease.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace dgc { + // @ts-ignore + class Lease extends java.lang.Object { + /** + * Constructs a lease with a specific VMID and lease duration. The + * vmid may be null. + */ + // @ts-ignore + constructor(id: java.rmi.dgc.VMID, duration: number) + /** + * Returns the client VMID associated with the lease. + */ + // @ts-ignore + public getVMID(): java.rmi.dgc.VMID; + /** + * Returns the lease duration. + */ + // @ts-ignore + public getValue(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.dgc.VMID.d.ts b/packages/types/dist/typings/jdk/java.rmi.dgc.VMID.d.ts new file mode 100644 index 00000000..b83d215f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.dgc.VMID.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace dgc { + // @ts-ignore + class VMID extends java.lang.Object { + /** + * Create a new VMID. Each new VMID returned from this constructor + * is unique for all Java virtual machines under the following + * conditions: a) the conditions for uniqueness for objects of + * the class java.rmi.server.UID are satisfied, and b) an + * address can be obtained for this host that is unique and constant + * for the lifetime of this object. + */ + // @ts-ignore + constructor() + /** + * Return true if an accurate address can be determined for this + * host. If false, reliable VMID cannot be generated from this host + */ + // @ts-ignore + public static isUnique(): boolean; + /** + * Compute hash code for this VMID. + */ + // @ts-ignore + public hashCode(): number; + /** + * Compare this VMID to another, and return true if they are the + * same identifier. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Return string representation of this VMID. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.registry.LocateRegistry.d.ts b/packages/types/dist/typings/jdk/java.rmi.registry.LocateRegistry.d.ts new file mode 100644 index 00000000..66f83cb9 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.registry.LocateRegistry.d.ts @@ -0,0 +1,79 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace registry { + // @ts-ignore + class LocateRegistry extends java.lang.Object { + /** + * Returns a reference to the the remote object Registry for + * the local host on the default registry port of 1099. + */ + // @ts-ignore + public static getRegistry(): java.rmi.registry.Registry; + /** + * Returns a reference to the the remote object Registry for + * the local host on the specified port. + */ + // @ts-ignore + public static getRegistry(port: number): java.rmi.registry.Registry; + /** + * Returns a reference to the remote object Registry on the + * specified host on the default registry port of 1099. If + * host is null, the local host is used. + */ + // @ts-ignore + public static getRegistry(host: string): java.rmi.registry.Registry; + /** + * Returns a reference to the remote object Registry on the + * specified host and port. If host + * is null, the local host is used. + */ + // @ts-ignore + public static getRegistry(host: string, port: number): java.rmi.registry.Registry; + /** + * Returns a locally created remote reference to the remote object + * Registry on the specified host and + * port. Communication with this remote registry will + * use the supplied RMIClientSocketFactory csf + * to create Socket connections to the registry on the + * remote host and port. + */ + // @ts-ignore + public static getRegistry(host: string, port: number, csf: java.rmi.server.RMIClientSocketFactory): java.rmi.registry.Registry; + /** + * Creates and exports a Registry instance on the local + * host that accepts requests on the specified port. + *

The Registry instance is exported as if the static + * {@link UnicastRemoteObject#exportObject(Remote,int) + * UnicastRemoteObject.exportObject} method is invoked, passing the + * Registry instance and the specified port as + * arguments, except that the Registry instance is + * exported with a well-known object identifier, an {@link ObjID} + * instance constructed with the value {@link ObjID#REGISTRY_ID}. + */ + // @ts-ignore + public static createRegistry(port: number): java.rmi.registry.Registry; + /** + * Creates and exports a Registry instance on the local + * host that uses custom socket factories for communication with that + * instance. The registry that is created listens for incoming + * requests on the given port using a + * ServerSocket created from the supplied + * RMIServerSocketFactory. + *

The Registry instance is exported as if + * the static {@link + * UnicastRemoteObject#exportObject(Remote,int,RMIClientSocketFactory,RMIServerSocketFactory) + * UnicastRemoteObject.exportObject} method is invoked, passing the + * Registry instance, the specified port, the + * specified RMIClientSocketFactory, and the specified + * RMIServerSocketFactory as arguments, except that the + * Registry instance is exported with a well-known object + * identifier, an {@link ObjID} instance constructed with the value + * {@link ObjID#REGISTRY_ID}. + */ + // @ts-ignore + public static createRegistry(port: number, csf: java.rmi.server.RMIClientSocketFactory, ssf: java.rmi.server.RMIServerSocketFactory): java.rmi.registry.Registry; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.registry.Registry.d.ts b/packages/types/dist/typings/jdk/java.rmi.registry.Registry.d.ts new file mode 100644 index 00000000..ce166979 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.registry.Registry.d.ts @@ -0,0 +1,45 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace registry { + // @ts-ignore + interface Registry { + // @ts-ignore + REGISTRY_PORT: number; + /** + * Returns the remote reference bound to the specified + * name in this registry. + */ + // @ts-ignore + lookup(name: string): java.rmi.Remote; + /** + * Binds a remote reference to the specified name in + * this registry. + */ + // @ts-ignore + bind(name: string, obj: java.rmi.Remote): void; + /** + * Removes the binding for the specified name in + * this registry. + */ + // @ts-ignore + unbind(name: string): void; + /** + * Replaces the binding for the specified name in + * this registry with the supplied remote reference. If there is + * an existing binding for the specified name, it is + * discarded. + */ + // @ts-ignore + rebind(name: string, obj: java.rmi.Remote): void; + /** + * Returns an array of the names bound in this registry. The + * array will contain a snapshot of the names bound in this + * registry at the time of the given invocation of this method. + */ + // @ts-ignore + list(): java.lang.String[]; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.registry.RegistryHandler.d.ts b/packages/types/dist/typings/jdk/java.rmi.registry.RegistryHandler.d.ts new file mode 100644 index 00000000..8b5dcf96 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.registry.RegistryHandler.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace registry { + // @ts-ignore + interface RegistryHandler { + /** + * Returns a "stub" for contacting a remote registry + * on the specified host and port. + */ + // @ts-ignore + registryStub(host: string, port: number): java.rmi.registry.Registry; + /** + * Constructs and exports a Registry on the specified port. + * The port must be non-zero. + */ + // @ts-ignore + registryImpl(port: number): java.rmi.registry.Registry; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.server.ExportException.d.ts b/packages/types/dist/typings/jdk/java.rmi.server.ExportException.d.ts new file mode 100644 index 00000000..868d0c68 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.server.ExportException.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace server { + // @ts-ignore + class ExportException extends java.rmi.RemoteException { + /** + * Constructs an ExportException with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + /** + * Constructs an ExportException with the specified + * detail message and nested exception. + */ + // @ts-ignore + constructor(s: string, ex: java.lang.Exception) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.server.LoaderHandler.d.ts b/packages/types/dist/typings/jdk/java.rmi.server.LoaderHandler.d.ts new file mode 100644 index 00000000..9ecf3363 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.server.LoaderHandler.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace server { + // @ts-ignore + interface LoaderHandler { + // @ts-ignore + packagePrefix: string; + /** + * Loads a class from the location specified by the + * java.rmi.server.codebase property. + */ + // @ts-ignore + loadClass(name: string): java.lang.Class; + /** + * Loads a class from a URL. + */ + // @ts-ignore + loadClass(codebase: java.net.URL, name: string): java.lang.Class; + /** + * Returns the security context of the given class loader. + */ + // @ts-ignore + getSecurityContext(loader: java.lang.ClassLoader): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.server.LogStream.d.ts b/packages/types/dist/typings/jdk/java.rmi.server.LogStream.d.ts new file mode 100644 index 00000000..7e071cda --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.server.LogStream.d.ts @@ -0,0 +1,67 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace server { + // @ts-ignore + class LogStream extends java.io.PrintStream { + // @ts-ignore + public static SILENT: number; + // @ts-ignore + public static BRIEF: number; + // @ts-ignore + public static VERBOSE: number; + /** + * Return the LogStream identified by the given name. If + * a log corresponding to "name" does not exist, a log using + * the default stream is created. + */ + // @ts-ignore + public static log(name: string): java.rmi.server.LogStream; + /** + * Return the current default stream for new logs. + */ + // @ts-ignore + public static getDefaultStream(): java.io.PrintStream; + /** + * Set the default stream for new logs. + */ + // @ts-ignore + public static setDefaultStream(newDefault: java.io.PrintStream): void; + /** + * Return the current stream to which output from this log is sent. + */ + // @ts-ignore + public getOutputStream(): java.io.OutputStream; + /** + * Set the stream to which output from this log is sent. + */ + // @ts-ignore + public setOutputStream(out: java.io.OutputStream): void; + /** + * Write a byte of data to the stream. If it is not a newline, then + * the byte is appended to the internal buffer. If it is a newline, + * then the currently buffered line is sent to the log's output + * stream, prefixed with the appropriate logging information. + */ + // @ts-ignore + public write(b: number): void; + /** + * Write a subarray of bytes. Pass each through write byte method. + */ + // @ts-ignore + public write(b: number, off: number, len: number): void; + /** + * Return log name as string representation. + */ + // @ts-ignore + public toString(): string; + /** + * Convert a string name of a logging level to its internal + * integer representation. + */ + // @ts-ignore + public static parseLevel(s: string): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.server.ObjID.d.ts b/packages/types/dist/typings/jdk/java.rmi.server.ObjID.d.ts new file mode 100644 index 00000000..ef3158c1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.server.ObjID.d.ts @@ -0,0 +1,79 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace server { + // @ts-ignore + class ObjID extends java.lang.Object { + /** + * Generates a unique object identifier. + *

If the system property java.rmi.server.randomIDs + * is defined to equal the string "true" (case insensitive), + * then this constructor will use a cryptographically + * strong random number generator to choose the object number of the + * returned ObjID. + */ + // @ts-ignore + constructor() + /** + * Creates a "well-known" object identifier. + *

An ObjID created via this constructor will not + * clash with any ObjIDs generated via the no-arg + * constructor. + */ + // @ts-ignore + constructor(objNum: number) + // @ts-ignore + public static REGISTRY_ID: number; + // @ts-ignore + public static ACTIVATOR_ID: number; + // @ts-ignore + public static DGC_ID: number; + /** + * Marshals a binary representation of this ObjID to + * an ObjectOutput instance. + *

Specifically, this method first invokes the given stream's + * {@link ObjectOutput#writeLong(long)} method with this object + * identifier's object number, and then it writes its address + * space identifier by invoking its {@link UID#write(DataOutput)} + * method with the stream. + */ + // @ts-ignore + public write(out: java.io.ObjectOutput): void; + /** + * Constructs and returns a new ObjID instance by + * unmarshalling a binary representation from an + * ObjectInput instance. + *

Specifically, this method first invokes the given stream's + * {@link ObjectInput#readLong()} method to read an object number, + * then it invokes {@link UID#read(DataInput)} with the + * stream to read an address space identifier, and then it + * creates and returns a new ObjID instance that + * contains the object number and address space identifier that + * were read from the stream. + */ + // @ts-ignore + public static read(input: java.io.ObjectInput): java.rmi.server.ObjID; + /** + * Returns the hash code value for this object identifier, the + * object number. + */ + // @ts-ignore + public hashCode(): number; + /** + * Compares the specified object with this ObjID for + * equality. + * This method returns true if and only if the + * specified object is an ObjID instance with the same + * object number and address space identifier as this one. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a string representation of this object identifier. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.server.Operation.d.ts b/packages/types/dist/typings/jdk/java.rmi.server.Operation.d.ts new file mode 100644 index 00000000..98d007e1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.server.Operation.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace server { + // @ts-ignore + class Operation extends java.lang.Object { + /** + * Creates a new Operation object. + */ + // @ts-ignore + constructor(op: string) + /** + * Returns the name of the method. + */ + // @ts-ignore + public getOperation(): string; + /** + * Returns the string representation of the operation. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.server.RMIClassLoader.d.ts b/packages/types/dist/typings/jdk/java.rmi.server.RMIClassLoader.d.ts new file mode 100644 index 00000000..5227eea3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.server.RMIClassLoader.d.ts @@ -0,0 +1,284 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace server { + // @ts-ignore + class RMIClassLoader extends java.lang.Object { + /** + * Loads the class with the specified name. + *

This method delegates to {@link #loadClass(String,String)}, + * passing null as the first argument and + * name as the second argument. + */ + // @ts-ignore + public static loadClass(name: string): java.lang.Class; + /** + * Loads a class from a codebase URL. + * If codebase is null, then this method + * will behave the same as {@link #loadClass(String,String)} with a + * null codebase and the given class name. + *

This method delegates to the + * {@link RMIClassLoaderSpi#loadClass(String,String,ClassLoader)} + * method of the provider instance, passing the result of invoking + * {@link URL#toString} on the given URL (or null if + * codebase is null) as the first argument, + * name as the second argument, + * and null as the third argument. + */ + // @ts-ignore + public static loadClass(codebase: java.net.URL, name: string): java.lang.Class; + /** + * Loads a class from a codebase URL path. + *

This method delegates to the + * {@link RMIClassLoaderSpi#loadClass(String,String,ClassLoader)} + * method of the provider instance, passing codebase + * as the first argument, name as the second argument, + * and null as the third argument. + */ + // @ts-ignore + public static loadClass(codebase: string, name: string): java.lang.Class; + /** + * Loads a class from a codebase URL path, optionally using the + * supplied loader. + * This method should be used when the caller would like to make + * available to the provider implementation an additional contextual + * class loader to consider, such as the loader of a caller on the + * stack. Typically, a provider implementation will attempt to + * resolve the named class using the given defaultLoader, + * if specified, before attempting to resolve the class from the + * codebase URL path. + *

This method delegates to the + * {@link RMIClassLoaderSpi#loadClass(String,String,ClassLoader)} + * method of the provider instance, passing codebase + * as the first argument, name as the second argument, + * and defaultLoader as the third argument. + */ + // @ts-ignore + public static loadClass(codebase: string, name: string, defaultLoader: java.lang.ClassLoader): java.lang.Class; + /** + * Loads a dynamic proxy class (see {@link java.lang.reflect.Proxy}) + * that implements a set of interfaces with the given names + * from a codebase URL path. + *

The interfaces will be resolved similar to classes loaded via + * the {@link #loadClass(String,String)} method using the given + * codebase. + *

This method delegates to the + * {@link RMIClassLoaderSpi#loadProxyClass(String,String[],ClassLoader)} + * method of the provider instance, passing codebase + * as the first argument, interfaces as the second argument, + * and defaultLoader as the third argument. + */ + // @ts-ignore + public static loadProxyClass(codebase: string, interfaces: string, defaultLoader: java.lang.ClassLoader): java.lang.Class; + /** + * Returns a class loader that loads classes from the given codebase + * URL path. + *

The class loader returned is the class loader that the + * {@link #loadClass(String,String)} method would use to load classes + * for the same codebase argument. + *

This method delegates to the + * {@link RMIClassLoaderSpi#getClassLoader(String)} method + * of the provider instance, passing codebase as the argument. + *

If there is a security manger, its checkPermission + * method will be invoked with a + * RuntimePermission("getClassLoader") permission; + * this could result in a SecurityException. + * The provider implementation of this method may also perform further + * security checks to verify that the calling context has permission to + * connect to all of the URLs in the codebase URL path. + */ + // @ts-ignore + public static getClassLoader(codebase: string): java.lang.ClassLoader; + /** + * Returns the annotation string (representing a location for + * the class definition) that RMI will use to annotate the class + * descriptor when marshalling objects of the given class. + *

This method delegates to the + * {@link RMIClassLoaderSpi#getClassAnnotation(Class)} method + * of the provider instance, passing cl as the argument. + */ + // @ts-ignore + public static getClassAnnotation(cl: java.lang.Class): string; + /** + * Returns the canonical instance of the default provider + * for the service provider interface {@link RMIClassLoaderSpi}. + * If the system property java.rmi.server.RMIClassLoaderSpi + * is not defined, then the RMIClassLoader static + * methods + *

    + *
  • {@link #loadClass(URL,String)} + *
  • {@link #loadClass(String,String)} + *
  • {@link #loadClass(String,String,ClassLoader)} + *
  • {@link #loadProxyClass(String,String[],ClassLoader)} + *
  • {@link #getClassLoader(String)} + *
  • {@link #getClassAnnotation(Class)} + *
+ * will use the canonical instance of the default provider + * as the service provider instance. + *

If there is a security manager, its + * checkPermission method will be invoked with a + * RuntimePermission("setFactory") permission; this + * could result in a SecurityException. + *

The default service provider instance implements + * {@link RMIClassLoaderSpi} as follows: + *

+ *

The {@link RMIClassLoaderSpi#getClassAnnotation(Class) + * getClassAnnotation} method returns a String + * representing the codebase URL path that a remote party should + * use to download the definition for the specified class. The + * format of the returned string is a path of URLs separated by + * spaces. + * The codebase string returned depends on the defining class + * loader of the specified class: + *

    + *
  • If the class loader is the system class loader (see + * {@link ClassLoader#getSystemClassLoader}), a parent of the + * system class loader such as the loader used for installed + * extensions, or the bootstrap class loader (which may be + * represented by null), then the value of the + * java.rmi.server.codebase property (or possibly an + * earlier cached value) is returned, or + * null is returned if that property is not set. + *

  • Otherwise, if the class loader is an instance of + * URLClassLoader, then the returned string is a + * space-separated list of the external forms of the URLs returned + * by invoking the getURLs methods of the loader. If + * the URLClassLoader was created by this provider to + * service an invocation of its loadClass or + * loadProxyClass methods, then no permissions are + * required to get the associated codebase string. If it is an + * arbitrary other URLClassLoader instance, then if + * there is a security manager, its checkPermission + * method will be invoked once for each URL returned by the + * getURLs method, with the permission returned by + * invoking openConnection().getPermission() on each + * URL; if any of those invocations throws a + * SecurityException or an IOException, + * then the value of the java.rmi.server.codebase + * property (or possibly an earlier cached value) is returned, or + * null is returned if that property is not set. + *

  • Finally, if the class loader is not an instance of + * URLClassLoader, then the value of the + * java.rmi.server.codebase property (or possibly an + * earlier cached value) is returned, or + * null is returned if that property is not set. + *

+ *

For the implementations of the methods described below, + * which all take a String parameter named + * codebase that is a space-separated list of URLs, + * each invocation has an associated codebase loader that + * is identified using the codebase argument in + * conjunction with the current thread's context class loader (see + * {@link Thread#getContextClassLoader()}). When there is a + * security manager, this provider maintains an internal table of + * class loader instances (which are at least instances of {@link + * java.net.URLClassLoader}) keyed by the pair of their parent + * class loader and their codebase URL path (an ordered list of + * URLs). If the codebase argument is null, + * the codebase URL path is the value of the system property + * java.rmi.server.codebase or possibly an + * earlier cached value. For a given codebase URL path passed as the + * codebase argument to an invocation of one of the + * below methods in a given context, the codebase loader is the + * loader in the table with the specified codebase URL path and + * the current thread's context class loader as its parent. If no + * such loader exists, then one is created and added to the table. + * The table does not maintain strong references to its contained + * loaders, in order to allow them and their defined classes to be + * garbage collected when not otherwise reachable. In order to + * prevent arbitrary untrusted code from being implicitly loaded + * into a virtual machine with no security manager, if there is no + * security manager set, the codebase loader is just the current + * thread's context class loader (the supplied codebase URL path + * is ignored, so remote class loading is disabled). + *

The {@link RMIClassLoaderSpi#getClassLoader(String) + * getClassLoader} method returns the codebase loader for the + * specified codebase URL path. If there is a security manager, + * then if the calling context does not have permission to connect + * to all of the URLs in the codebase URL path, a + * SecurityException will be thrown. + *

The {@link + * RMIClassLoaderSpi#loadClass(String,String,ClassLoader) + * loadClass} method attempts to load the class with the + * specified name as follows: + *

+ * If the defaultLoader argument is + * non-null, it first attempts to load the class with the + * specified name using the + * defaultLoader, such as by evaluating + *
+                 * Class.forName(name, false, defaultLoader)
+                 * 
+ * If the class is successfully loaded from the + * defaultLoader, that class is returned. If an + * exception other than ClassNotFoundException is + * thrown, that exception is thrown to the caller. + *

Next, the loadClass method attempts to load the + * class with the specified name using the codebase + * loader for the specified codebase URL path. + * If there is a security manager, then the calling context + * must have permission to connect to all of the URLs in the + * codebase URL path; otherwise, the current thread's context + * class loader will be used instead of the codebase loader. + *

+ *

The {@link + * RMIClassLoaderSpi#loadProxyClass(String,String[],ClassLoader) + * loadProxyClass} method attempts to return a dynamic proxy + * class with the named interface as follows: + *

+ *

If the defaultLoader argument is + * non-null and all of the named interfaces can be + * resolved through that loader, then, + *

    + *
  • if all of the resolved interfaces are public, + * then it first attempts to obtain a dynamic proxy class (using + * {@link + * java.lang.reflect.Proxy#getProxyClass(ClassLoader,Class[]) + * Proxy.getProxyClass}) for the resolved interfaces defined in + * the codebase loader; if that attempt throws an + * IllegalArgumentException, it then attempts to + * obtain a dynamic proxy class for the resolved interfaces + * defined in the defaultLoader. If both attempts + * throw IllegalArgumentException, then this method + * throws a ClassNotFoundException. If any other + * exception is thrown, that exception is thrown to the caller. + *
  • if all of the non-public resolved interfaces + * are defined in the same class loader, then it attempts to + * obtain a dynamic proxy class for the resolved interfaces + * defined in that loader. + *
  • otherwise, a LinkageError is thrown (because a + * class that implements all of the specified interfaces cannot be + * defined in any loader). + *
+ *

Otherwise, if all of the named interfaces can be resolved + * through the codebase loader, then, + *

    + *
  • if all of the resolved interfaces are public, + * then it attempts to obtain a dynamic proxy class for the + * resolved interfaces in the codebase loader. If the attempt + * throws an IllegalArgumentException, then this + * method throws a ClassNotFoundException. + *
  • if all of the non-public resolved interfaces + * are defined in the same class loader, then it attempts to + * obtain a dynamic proxy class for the resolved interfaces + * defined in that loader. + *
  • otherwise, a LinkageError is thrown (because a + * class that implements all of the specified interfaces cannot be + * defined in any loader). + *
+ *

Otherwise, a ClassNotFoundException is thrown + * for one of the named interfaces that could not be resolved. + *

+ *
+ */ + // @ts-ignore + public static getDefaultProviderInstance(): java.rmi.server.RMIClassLoaderSpi; + /** + * Returns the security context of the given class loader. + */ + // @ts-ignore + public static getSecurityContext(loader: java.lang.ClassLoader): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.server.RMIClassLoaderSpi.d.ts b/packages/types/dist/typings/jdk/java.rmi.server.RMIClassLoaderSpi.d.ts new file mode 100644 index 00000000..fcb18b8c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.server.RMIClassLoaderSpi.d.ts @@ -0,0 +1,63 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace server { + // @ts-ignore + abstract class RMIClassLoaderSpi extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Provides the implementation for + * {@link RMIClassLoader#loadClass(URL,String)}, + * {@link RMIClassLoader#loadClass(String,String)}, and + * {@link RMIClassLoader#loadClass(String,String,ClassLoader)}. + * Loads a class from a codebase URL path, optionally using the + * supplied loader. + * Typically, a provider implementation will attempt to + * resolve the named class using the given defaultLoader, + * if specified, before attempting to resolve the class from the + * codebase URL path. + *

An implementation of this method must either return a class + * with the given name or throw an exception. + */ + // @ts-ignore + public abstract loadClass(codebase: string, name: string, defaultLoader: java.lang.ClassLoader): java.lang.Class; + /** + * Provides the implementation for + * {@link RMIClassLoader#loadProxyClass(String,String[],ClassLoader)}. + * Loads a dynamic proxy class (see {@link java.lang.reflect.Proxy} + * that implements a set of interfaces with the given names + * from a codebase URL path, optionally using the supplied loader. + *

An implementation of this method must either return a proxy + * class that implements the named interfaces or throw an exception. + */ + // @ts-ignore + public abstract loadProxyClass(codebase: string, interfaces: string, defaultLoader: java.lang.ClassLoader): java.lang.Class; + /** + * Provides the implementation for + * {@link RMIClassLoader#getClassLoader(String)}. + * Returns a class loader that loads classes from the given codebase + * URL path. + *

If there is a security manger, its checkPermission + * method will be invoked with a + * RuntimePermission("getClassLoader") permission; + * this could result in a SecurityException. + * The implementation of this method may also perform further security + * checks to verify that the calling context has permission to connect + * to all of the URLs in the codebase URL path. + */ + // @ts-ignore + public abstract getClassLoader(codebase: string): java.lang.ClassLoader; + /** + * Provides the implementation for + * {@link RMIClassLoader#getClassAnnotation(Class)}. + * Returns the annotation string (representing a location for + * the class definition) that RMI will use to annotate the class + * descriptor when marshalling objects of the given class. + */ + // @ts-ignore + public abstract getClassAnnotation(cl: java.lang.Class): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.server.RMIClientSocketFactory.d.ts b/packages/types/dist/typings/jdk/java.rmi.server.RMIClientSocketFactory.d.ts new file mode 100644 index 00000000..b4fa5af4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.server.RMIClientSocketFactory.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace server { + // @ts-ignore + interface RMIClientSocketFactory { + /** + * Create a client socket connected to the specified host and port. + */ + // @ts-ignore + createSocket(host: string, port: number): java.net.Socket; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.server.RMIFailureHandler.d.ts b/packages/types/dist/typings/jdk/java.rmi.server.RMIFailureHandler.d.ts new file mode 100644 index 00000000..9938538f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.server.RMIFailureHandler.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace server { + // @ts-ignore + interface RMIFailureHandler { + /** + * The failure callback is invoked when the RMI + * runtime is unable to create a ServerSocket via the + * RMISocketFactory. An RMIFailureHandler + * is registered via a call to + * RMISocketFacotry.setFailureHandler. If no failure + * handler is installed, the default behavior is to attempt to + * re-create the ServerSocket. + */ + // @ts-ignore + failure(ex: java.lang.Exception): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.server.RMIServerSocketFactory.d.ts b/packages/types/dist/typings/jdk/java.rmi.server.RMIServerSocketFactory.d.ts new file mode 100644 index 00000000..3459ab4e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.server.RMIServerSocketFactory.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace server { + // @ts-ignore + interface RMIServerSocketFactory { + /** + * Create a server socket on the specified port (port 0 indicates + * an anonymous port). + */ + // @ts-ignore + createServerSocket(port: number): java.net.ServerSocket; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.server.RMISocketFactory.d.ts b/packages/types/dist/typings/jdk/java.rmi.server.RMISocketFactory.d.ts new file mode 100644 index 00000000..d4bdd423 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.server.RMISocketFactory.d.ts @@ -0,0 +1,69 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace server { + // @ts-ignore + abstract class RMISocketFactory extends java.lang.Object { + /** + * Constructs an RMISocketFactory. + */ + // @ts-ignore + constructor() + /** + * Creates a client socket connected to the specified host and port. + */ + // @ts-ignore + public abstract createSocket(host: string, port: number): java.net.Socket; + /** + * Create a server socket on the specified port (port 0 indicates + * an anonymous port). + */ + // @ts-ignore + public abstract createServerSocket(port: number): java.net.ServerSocket; + /** + * Set the global socket factory from which RMI gets sockets (if the + * remote object is not associated with a specific client and/or server + * socket factory). The RMI socket factory can only be set once. Note: The + * RMISocketFactory may only be set if the current security manager allows + * setting a socket factory; if disallowed, a SecurityException will be + * thrown. + */ + // @ts-ignore + public static setSocketFactory(fac: java.rmi.server.RMISocketFactory): void; + /** + * Returns the socket factory set by the setSocketFactory + * method. Returns null if no socket factory has been + * set. + */ + // @ts-ignore + public static getSocketFactory(): java.rmi.server.RMISocketFactory; + /** + * Returns a reference to the default socket factory used + * by this RMI implementation. This will be the factory used + * by the RMI runtime when getSocketFactory + * returns null. + */ + // @ts-ignore + public static getDefaultSocketFactory(): java.rmi.server.RMISocketFactory; + /** + * Sets the failure handler to be called by the RMI runtime if server + * socket creation fails. By default, if no failure handler is installed + * and server socket creation fails, the RMI runtime does attempt to + * recreate the server socket. + *

If there is a security manager, this method first calls + * the security manager's checkSetFactory method + * to ensure the operation is allowed. + * This could result in a SecurityException. + */ + // @ts-ignore + public static setFailureHandler(fh: java.rmi.server.RMIFailureHandler): void; + /** + * Returns the handler for socket creation failure set by the + * setFailureHandler method. + */ + // @ts-ignore + public static getFailureHandler(): java.rmi.server.RMIFailureHandler; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.server.RemoteCall.d.ts b/packages/types/dist/typings/jdk/java.rmi.server.RemoteCall.d.ts new file mode 100644 index 00000000..d2d8c405 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.server.RemoteCall.d.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace server { + // @ts-ignore + interface RemoteCall { + /** + * Return the output stream the stub/skeleton should put arguments/results + * into. + */ + // @ts-ignore + getOutputStream(): java.io.ObjectOutput; + /** + * Release the output stream; in some transports this would release + * the stream. + */ + // @ts-ignore + releaseOutputStream(): void; + /** + * Get the InputStream that the stub/skeleton should get + * results/arguments from. + */ + // @ts-ignore + getInputStream(): java.io.ObjectInput; + /** + * Release the input stream. This would allow some transports to release + * the channel early. + */ + // @ts-ignore + releaseInputStream(): void; + /** + * Returns an output stream (may put out header information + * relating to the success of the call). Should only succeed + * once per remote call. + */ + // @ts-ignore + getResultStream(success: boolean): java.io.ObjectOutput; + /** + * Do whatever it takes to execute the call. + */ + // @ts-ignore + executeCall(): void; + /** + * Allow cleanup after the remote call has completed. + */ + // @ts-ignore + done(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.server.RemoteObject.d.ts b/packages/types/dist/typings/jdk/java.rmi.server.RemoteObject.d.ts new file mode 100644 index 00000000..ea356ac5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.server.RemoteObject.d.ts @@ -0,0 +1,67 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace server { + // @ts-ignore + abstract class RemoteObject extends java.lang.Object { + /** + * Creates a remote object. + */ + // @ts-ignore + constructor() + /** + * Creates a remote object, initialized with the specified remote + * reference. + */ + // @ts-ignore + constructor(newref: java.rmi.server.RemoteRef) + // @ts-ignore + protected ref: java.rmi.server.RemoteRef; + /** + * Returns the remote reference for the remote object. + *

Note: The object returned from this method may be an instance of + * an implementation-specific class. The RemoteObject + * class ensures serialization portability of its instances' remote + * references through the behavior of its custom + * writeObject and readObject methods. An + * instance of RemoteRef should not be serialized outside + * of its RemoteObject wrapper instance or the result may + * be unportable. + */ + // @ts-ignore + public getRef(): java.rmi.server.RemoteRef; + /** + * Returns the stub for the remote object obj passed + * as a parameter. This operation is only valid after + * the object has been exported. + */ + // @ts-ignore + public static toStub(obj: java.rmi.Remote): java.rmi.Remote; + /** + * Returns a hashcode for a remote object. Two remote object stubs + * that refer to the same remote object will have the same hash code + * (in order to support remote objects as keys in hash tables). + */ + // @ts-ignore + public hashCode(): number; + /** + * Compares two remote objects for equality. + * Returns a boolean that indicates whether this remote object is + * equivalent to the specified Object. This method is used when a + * remote object is stored in a hashtable. + * If the specified Object is not itself an instance of RemoteObject, + * then this method delegates by returning the result of invoking the + * equals method of its parameter with this remote object + * as the argument. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a String that represents the value of this remote object. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.server.RemoteObjectInvocationHandler.d.ts b/packages/types/dist/typings/jdk/java.rmi.server.RemoteObjectInvocationHandler.d.ts new file mode 100644 index 00000000..5f6b54e9 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.server.RemoteObjectInvocationHandler.d.ts @@ -0,0 +1,57 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace server { + // @ts-ignore + class RemoteObjectInvocationHandler extends java.rmi.server.RemoteObject { + /** + * Creates a new RemoteObjectInvocationHandler constructed + * with the specified RemoteRef. + */ + // @ts-ignore + constructor(ref: java.rmi.server.RemoteRef) + /** + * Processes a method invocation made on the encapsulating + * proxy instance, proxy, and returns the result. + *

RemoteObjectInvocationHandler implements this method + * as follows: + *

If method is one of the following methods, it + * is processed as described below: + *

    + *
  • {@link Object#hashCode Object.hashCode}: Returns the hash + * code value for the proxy. + *
  • {@link Object#equals Object.equals}: Returns true + * if the argument (args[0]) is an instance of a dynamic + * proxy class and this invocation handler is equal to the invocation + * handler of that argument, and returns false otherwise. + *
  • {@link Object#toString Object.toString}: Returns a string + * representation of the proxy. + *
+ *

Otherwise, a remote call is made as follows: + *

    + *
  • If proxy is not an instance of the interface + * {@link Remote}, then an {@link IllegalArgumentException} is thrown. + *
  • Otherwise, the {@link RemoteRef#invoke invoke} method is invoked + * on this invocation handler's RemoteRef, passing + * proxy, method, args, and the + * method hash (defined in section 8.3 of the "Java Remote Method + * Invocation (RMI) Specification") for method, and the + * result is returned. + *
  • If an exception is thrown by RemoteRef.invoke and + * that exception is a checked exception that is not assignable to any + * exception in the throws clause of the method + * implemented by the proxy's class, then that exception + * is wrapped in an {@link UnexpectedException} and the wrapped + * exception is thrown. Otherwise, the exception thrown by + * invoke is thrown by this method. + *
+ *

The semantics of this method are unspecified if the + * arguments could not have been produced by an instance of some + * valid dynamic proxy class containing this invocation handler. + */ + // @ts-ignore + public invoke(proxy: java.lang.Object, method: java.lang.reflect.Method, args: java.lang.Object): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.server.RemoteRef.d.ts b/packages/types/dist/typings/jdk/java.rmi.server.RemoteRef.d.ts new file mode 100644 index 00000000..9550cf58 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.server.RemoteRef.d.ts @@ -0,0 +1,81 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace server { + // @ts-ignore + interface RemoteRef { + // @ts-ignore + serialVersionUID: number; + // @ts-ignore + packagePrefix: string; + /** + * Invoke a method. This form of delegating method invocation + * to the reference allows the reference to take care of + * setting up the connection to the remote host, marshaling + * some representation for the method and parameters, then + * communicating the method invocation to the remote host. + * This method either returns the result of a method invocation + * on the remote object which resides on the remote host or + * throws a RemoteException if the call failed or an + * application-level exception if the remote invocation throws + * an exception. + */ + // @ts-ignore + invoke(obj: java.rmi.Remote, method: java.lang.reflect.Method, params: java.lang.Object, opnum: number): java.lang.Object; + /** + * Creates an appropriate call object for a new remote method + * invocation on this object. Passing operation array and index, + * allows the stubs generator to assign the operation indexes and + * interpret them. The remote reference may need the operation to + * encode in the call. + */ + // @ts-ignore + newCall(obj: java.rmi.server.RemoteObject, op: java.rmi.server.Operation, opnum: number, hash: number): java.rmi.server.RemoteCall; + /** + * Executes the remote call. + * Invoke will raise any "user" exceptions which + * should pass through and not be caught by the stub. If any + * exception is raised during the remote invocation, invoke should + * take care of cleaning up the connection before raising the + * "user" or remote exception. + */ + // @ts-ignore + invoke(call: java.rmi.server.RemoteCall): void; + /** + * Allows the remote reference to clean up (or reuse) the connection. + * Done should only be called if the invoke returns successfully + * (non-exceptionally) to the stub. + */ + // @ts-ignore + done(call: java.rmi.server.RemoteCall): void; + /** + * Returns the class name of the ref type to be serialized onto + * the stream 'out'. + */ + // @ts-ignore + getRefClass(out: java.io.ObjectOutput): string; + /** + * Returns a hashcode for a remote object. Two remote object stubs + * that refer to the same remote object will have the same hash code + * (in order to support remote objects as keys in hash tables). + */ + // @ts-ignore + remoteHashCode(): number; + /** + * Compares two remote objects for equality. + * Returns a boolean that indicates whether this remote object is + * equivalent to the specified Object. This method is used when a + * remote object is stored in a hashtable. + */ + // @ts-ignore + remoteEquals(obj: java.rmi.server.RemoteRef): boolean; + /** + * Returns a String that represents the reference of this remote + * object. + */ + // @ts-ignore + remoteToString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.server.RemoteServer.d.ts b/packages/types/dist/typings/jdk/java.rmi.server.RemoteServer.d.ts new file mode 100644 index 00000000..7a001ded --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.server.RemoteServer.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace server { + // @ts-ignore + abstract class RemoteServer extends java.rmi.server.RemoteObject { + /** + * Constructs a RemoteServer. + */ + // @ts-ignore + constructor() + /** + * Constructs a RemoteServer with the given reference type. + */ + // @ts-ignore + constructor(ref: java.rmi.server.RemoteRef) + /** + * Returns a string representation of the client host for the + * remote method invocation being processed in the current thread. + */ + // @ts-ignore + public static getClientHost(): string; + /** + * Log RMI calls to the output stream out. If + * out is null, call logging is turned off. + *

If there is a security manager, its + * checkPermission method will be invoked with a + * java.util.logging.LoggingPermission("control") + * permission; this could result in a SecurityException. + */ + // @ts-ignore + public static setLog(out: java.io.OutputStream): void; + /** + * Returns stream for the RMI call log. + */ + // @ts-ignore + public static getLog(): java.io.PrintStream; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.server.RemoteStub.d.ts b/packages/types/dist/typings/jdk/java.rmi.server.RemoteStub.d.ts new file mode 100644 index 00000000..5438e70d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.server.RemoteStub.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace server { + // @ts-ignore + abstract class RemoteStub extends java.rmi.server.RemoteObject { + /** + * Constructs a {@code RemoteStub}. + */ + // @ts-ignore + constructor() + /** + * Constructs a {@code RemoteStub} with the specified remote + * reference. + */ + // @ts-ignore + constructor(ref: java.rmi.server.RemoteRef) + /** + * Throws {@link UnsupportedOperationException}. + */ + // @ts-ignore + protected static setRef(stub: java.rmi.server.RemoteStub, ref: java.rmi.server.RemoteRef): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.server.ServerCloneException.d.ts b/packages/types/dist/typings/jdk/java.rmi.server.ServerCloneException.d.ts new file mode 100644 index 00000000..73c1aacd --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.server.ServerCloneException.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace server { + // @ts-ignore + class ServerCloneException extends java.lang.CloneNotSupportedException { + /** + * Constructs a ServerCloneException with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + /** + * Constructs a ServerCloneException with the specified + * detail message and cause. + */ + // @ts-ignore + constructor(s: string, cause: java.lang.Exception) + // @ts-ignore + public detail: java.lang.Exception; + /** + * Returns the detail message, including the message from the cause, if + * any, of this exception. + */ + // @ts-ignore + public getMessage(): string; + /** + * Returns the cause of this exception. This method returns the value + * of the {@link #detail} field. + */ + // @ts-ignore + public getCause(): java.lang.Throwable; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.server.ServerNotActiveException.d.ts b/packages/types/dist/typings/jdk/java.rmi.server.ServerNotActiveException.d.ts new file mode 100644 index 00000000..edb8690f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.server.ServerNotActiveException.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace server { + // @ts-ignore + class ServerNotActiveException extends java.lang.Exception { + /** + * Constructs an ServerNotActiveException with no specified + * detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs an ServerNotActiveException with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.server.ServerRef.d.ts b/packages/types/dist/typings/jdk/java.rmi.server.ServerRef.d.ts new file mode 100644 index 00000000..8a30e4cc --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.server.ServerRef.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace server { + // @ts-ignore + interface ServerRef { + // @ts-ignore + serialVersionUID: number; + /** + * Creates a client stub object for the supplied Remote object. + * If the call completes successfully, the remote object should + * be able to accept incoming calls from clients. + */ + // @ts-ignore + exportObject(obj: java.rmi.Remote, data: java.lang.Object): java.rmi.server.RemoteStub; + /** + * Returns the hostname of the current client. When called from a + * thread actively handling a remote method invocation the + * hostname of the client is returned. + */ + // @ts-ignore + getClientHost(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.server.Skeleton.d.ts b/packages/types/dist/typings/jdk/java.rmi.server.Skeleton.d.ts new file mode 100644 index 00000000..c2aae54c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.server.Skeleton.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace server { + // @ts-ignore + interface Skeleton { + /** + * Unmarshals arguments, calls the actual remote object implementation, + * and marshals the return value or any exception. + */ + // @ts-ignore + dispatch(obj: java.rmi.Remote, theCall: java.rmi.server.RemoteCall, opnum: number, hash: number): void; + /** + * Returns the operations supported by the skeleton. + */ + // @ts-ignore + getOperations(): java.rmi.server.Operation[]; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.server.SkeletonMismatchException.d.ts b/packages/types/dist/typings/jdk/java.rmi.server.SkeletonMismatchException.d.ts new file mode 100644 index 00000000..777911ca --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.server.SkeletonMismatchException.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace server { + // @ts-ignore + class SkeletonMismatchException extends java.rmi.RemoteException { + /** + * Constructs a new SkeletonMismatchException with + * a specified detail message. + */ + // @ts-ignore + constructor(s: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.server.SkeletonNotFoundException.d.ts b/packages/types/dist/typings/jdk/java.rmi.server.SkeletonNotFoundException.d.ts new file mode 100644 index 00000000..1dc769f1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.server.SkeletonNotFoundException.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace server { + // @ts-ignore + class SkeletonNotFoundException extends java.rmi.RemoteException { + /** + * Constructs a SkeletonNotFoundException with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + /** + * Constructs a SkeletonNotFoundException with the specified + * detail message and nested exception. + */ + // @ts-ignore + constructor(s: string, ex: java.lang.Exception) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.server.SocketSecurityException.d.ts b/packages/types/dist/typings/jdk/java.rmi.server.SocketSecurityException.d.ts new file mode 100644 index 00000000..010eedac --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.server.SocketSecurityException.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace server { + // @ts-ignore + class SocketSecurityException extends java.rmi.server.ExportException { + /** + * Constructs an SocketSecurityException with the specified + * detail message. + */ + // @ts-ignore + constructor(s: string) + /** + * Constructs an SocketSecurityException with the specified + * detail message and nested exception. + */ + // @ts-ignore + constructor(s: string, ex: java.lang.Exception) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.server.UID.d.ts b/packages/types/dist/typings/jdk/java.rmi.server.UID.d.ts new file mode 100644 index 00000000..19bed4e7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.server.UID.d.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace server { + // @ts-ignore + class UID extends java.lang.Object { + /** + * Generates a UID that is unique over time with + * respect to the host that it was generated on. + */ + // @ts-ignore + constructor() + /** + * Creates a "well-known" UID. + * There are 216 possible such well-known ids. + *

A UID created via this constructor will not + * clash with any UIDs generated via the no-arg + * constructor. + */ + // @ts-ignore + constructor(num: number) + /** + * Returns the hash code value for this UID. + */ + // @ts-ignore + public hashCode(): number; + /** + * Compares the specified object with this UID for + * equality. + * This method returns true if and only if the + * specified object is a UID instance with the same + * unique, time, and count + * values as this one. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a string representation of this UID. + */ + // @ts-ignore + public toString(): string; + /** + * Marshals a binary representation of this UID to + * a DataOutput instance. + *

Specifically, this method first invokes the given stream's + * {@link DataOutput#writeInt(int)} method with this UID's + * unique value, then it invokes the stream's + * {@link DataOutput#writeLong(long)} method with this UID's + * time value, and then it invokes the stream's + * {@link DataOutput#writeShort(int)} method with this UID's + * count value. + */ + // @ts-ignore + public write(out: java.io.DataOutput): void; + /** + * Constructs and returns a new UID instance by + * unmarshalling a binary representation from an + * DataInput instance. + *

Specifically, this method first invokes the given stream's + * {@link DataInput#readInt()} method to read a unique value, + * then it invoke's the stream's + * {@link DataInput#readLong()} method to read a time value, + * then it invoke's the stream's + * {@link DataInput#readShort()} method to read a count value, + * and then it creates and returns a new UID instance + * that contains the unique, time, and + * count values that were read from the stream. + */ + // @ts-ignore + public static read(input: java.io.DataInput): java.rmi.server.UID; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.server.UnicastRemoteObject.d.ts b/packages/types/dist/typings/jdk/java.rmi.server.UnicastRemoteObject.d.ts new file mode 100644 index 00000000..ac6b5b41 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.server.UnicastRemoteObject.d.ts @@ -0,0 +1,78 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace server { + // @ts-ignore + class UnicastRemoteObject extends java.rmi.server.RemoteServer { + /** + * Creates and exports a new UnicastRemoteObject object using an + * anonymous port. + *

The object is exported with a server socket + * created using the {@link RMISocketFactory} class. + */ + // @ts-ignore + constructor() + /** + * Creates and exports a new UnicastRemoteObject object using the + * particular supplied port. + *

The object is exported with a server socket + * created using the {@link RMISocketFactory} class. + */ + // @ts-ignore + constructor(port: number) + /** + * Creates and exports a new UnicastRemoteObject object using the + * particular supplied port and socket factories. + *

Either socket factory may be {@code null}, in which case + * the corresponding client or server socket creation method of + * {@link RMISocketFactory} is used instead. + */ + // @ts-ignore + constructor(port: number, csf: java.rmi.server.RMIClientSocketFactory, ssf: java.rmi.server.RMIServerSocketFactory) + /** + * Returns a clone of the remote object that is distinct from + * the original. + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Exports the remote object to make it available to receive incoming + * calls using an anonymous port. This method will always return a + * statically generated stub. + *

The object is exported with a server socket + * created using the {@link RMISocketFactory} class. + */ + // @ts-ignore + public static exportObject(obj: java.rmi.Remote): java.rmi.server.RemoteStub; + /** + * Exports the remote object to make it available to receive incoming + * calls, using the particular supplied port. + *

The object is exported with a server socket + * created using the {@link RMISocketFactory} class. + */ + // @ts-ignore + public static exportObject(obj: java.rmi.Remote, port: number): java.rmi.Remote; + /** + * Exports the remote object to make it available to receive incoming + * calls, using a transport specified by the given socket factory. + *

Either socket factory may be {@code null}, in which case + * the corresponding client or server socket creation method of + * {@link RMISocketFactory} is used instead. + */ + // @ts-ignore + public static exportObject(obj: java.rmi.Remote, port: number, csf: java.rmi.server.RMIClientSocketFactory, ssf: java.rmi.server.RMIServerSocketFactory): java.rmi.Remote; + /** + * Removes the remote object, obj, from the RMI runtime. If + * successful, the object can no longer accept incoming RMI calls. + * If the force parameter is true, the object is forcibly unexported + * even if there are pending calls to the remote object or the + * remote object still has calls in progress. If the force + * parameter is false, the object is only unexported if there are + * no pending or in progress calls to the object. + */ + // @ts-ignore + public static unexportObject(obj: java.rmi.Remote, force: boolean): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.rmi.server.Unreferenced.d.ts b/packages/types/dist/typings/jdk/java.rmi.server.Unreferenced.d.ts new file mode 100644 index 00000000..6fd6fd54 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.rmi.server.Unreferenced.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace java { + namespace rmi { + namespace server { + // @ts-ignore + interface Unreferenced { + /** + * Called by the RMI runtime sometime after the runtime determines that + * the reference list, the list of clients referencing the remote object, + * becomes empty. + */ + // @ts-ignore + unreferenced(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.AccessControlContext.d.ts b/packages/types/dist/typings/jdk/java.security.AccessControlContext.d.ts new file mode 100644 index 00000000..bb900b48 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.AccessControlContext.d.ts @@ -0,0 +1,47 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class AccessControlContext extends java.lang.Object { + /** + * Constructs a new instance of this class given an array of + * protection domains. + */ + // @ts-ignore + constructor(fromContext: java.security.ProtectionDomain) + /** + * Constructs a new instance of this class given a context + * and a DomainCombiner + */ + // @ts-ignore + constructor(acc: java.security.AccessControlContext, combiner: java.security.DomainCombiner) + /** + * Checks if the permission perm is allowed in this context. + * All ProtectionDomains must grant the permission for it to be granted. + */ + // @ts-ignore + public checkPermission(perm: java.security.Permission): void; + /** + * Compares the argument to the receiver, and answers true + * if they represent the same object using a class + * specific comparison. In this case, they must both be + * AccessControlContexts and contain the same protection domains. + */ + // @ts-ignore + public equals(o: java.lang.Object): boolean; + /** + * Answers an integer hash code for the receiver. Any two + * objects which answer true when passed to + * equals must answer the same value for this + * method. + */ + // @ts-ignore + public hashCode(): number; + /** + * Answers the DomainCombiner for the receiver. + */ + // @ts-ignore + public getDomainCombiner(): java.security.DomainCombiner; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.AccessControlException.d.ts b/packages/types/dist/typings/jdk/java.security.AccessControlException.d.ts new file mode 100644 index 00000000..47027e9a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.AccessControlException.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class AccessControlException extends java.lang.SecurityException { + /** + * Constructs an {@code AccessControlException} with the + * specified, detailed message. + */ + // @ts-ignore + constructor(s: string) + /** + * Constructs an {@code AccessControlException} with the + * specified, detailed message, and the requested permission that caused + * the exception. + */ + // @ts-ignore + constructor(s: string, p: java.security.Permission) + /** + * Gets the Permission object associated with this exception, or + * null if there was no corresponding Permission object. + */ + // @ts-ignore + public getPermission(): java.security.Permission; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.AccessController.d.ts b/packages/types/dist/typings/jdk/java.security.AccessController.d.ts new file mode 100644 index 00000000..4d9e606a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.AccessController.d.ts @@ -0,0 +1,138 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class AccessController extends java.lang.Object { + /** + * Checks whether the running program is allowed to + * access the resource being guarded by the given + * Permission argument. + */ + // @ts-ignore + public static checkPermission(perm: java.security.Permission): void; + /** + * Answers the access controller context of the current thread, + * including the inherited ones. It basically retrieves all the + * protection domains from the calling stack and creates an + * AccessControlContext with them. + */ + // @ts-ignore + public static getContext(): java.security.AccessControlContext; + /** + * Performs the privileged action specified by action. + *

+ * When permission checks are made, if the permission has been granted by all + * frames below and including the one representing the call to this method, + * then the permission is granted. In other words, the check stops here. + * Any unchecked exception generated by this method will propagate up the chain. + */ + // @ts-ignore + public static doPrivileged(action: java.security.PrivilegedAction): java.lang.Object; + /** + * Performs the privileged action specified by action. + *

+ * When permission checks are made, if the permission has been granted by all + * frames below and including the one representing the call to this method, + * then the permission is granted iff it is granted by the AccessControlContext + * context. In other words, no more checking of the current stack + * is performed. Instead, the passed in context is checked. + * Any unchecked exception generated by this method will propagate up the chain. + */ + // @ts-ignore + public static doPrivileged(action: java.security.PrivilegedAction, context: java.security.AccessControlContext): java.lang.Object; + /** + * Performs the privileged action specified by action. + *

+ * When permission checks are made, if the permission has been granted by all + * frames below and including the one representing the call to this method, + * then the permission is granted. In other words, the check stops here. + * Any unchecked exception generated by this method will propagate up the chain. + * However, checked exceptions will be caught an re-thrown as PrivilegedActionExceptions + */ + // @ts-ignore + public static doPrivileged(action: java.security.PrivilegedExceptionAction): java.lang.Object; + /** + * Performs the privileged action specified by action. + *

+ * When permission checks are made, if the permission has been granted by all + * frames below and including the one representing the call to this method, + * then the permission is granted iff it is granted by the AccessControlContext + * context. In other words, no more checking of the current stack + * is performed. Instead, the passed in context is checked. + * Any unchecked exception generated by this method will propagate up the chain. + * However, checked exceptions will be caught an re-thrown as PrivilegedActionExceptions + */ + // @ts-ignore + public static doPrivileged(action: java.security.PrivilegedExceptionAction, context: java.security.AccessControlContext): java.lang.Object; + /** + * Performs the privileged action specified by action, retaining + * any current DomainCombiner. + *

+ * When permission checks are made, if the permission has been granted by all + * frames below and including the one representing the call to this method, + * then the permission is granted. In other words, the check stops here. + * Any unchecked exception generated by this method will propagate up the chain. + */ + // @ts-ignore + public static doPrivilegedWithCombiner(action: java.security.PrivilegedAction): java.lang.Object; + /** + * Performs the privileged action specified by action, retaining + * any current DomainCombiner. + *

+ * When permission checks are made, if the permission has been granted by all + * frames below and including the one representing the call to this method, + * then the permission is granted. In other words, the check stops here. + * Any unchecked exception generated by this method will propagate up the chain. + * However, checked exceptions will be caught an re-thrown as PrivilegedActionExceptions + */ + // @ts-ignore + public static doPrivilegedWithCombiner(action: java.security.PrivilegedExceptionAction): java.lang.Object; + /** + * Performs the privileged action specified by action. + *

+ * When permission checks are made, if the permission has been granted by all + * frames below and including the one representing the call to this method, + * then the permission is granted iff it is granted by the AccessControlContext + * context and also granted by one of the permissions arguments. + * Any unchecked exception generated by this method will propagate up the chain. + */ + // @ts-ignore + public static doPrivileged(action: java.security.PrivilegedAction, context: java.security.AccessControlContext, perms: java.security.Permission): java.lang.Object; + /** + * Performs the privileged action specified by action, retaining + * any current DomainCombiner. + *

+ * When permission checks are made, if the permission has been granted by all + * frames below and including the one representing the call to this method, + * then the permission is granted iff it is granted by one of the permissions arguments. + * Any unchecked exception generated by this method will propagate up the chain. + */ + // @ts-ignore + public static doPrivilegedWithCombiner(action: java.security.PrivilegedAction, context: java.security.AccessControlContext, perms: java.security.Permission): java.lang.Object; + /** + * Performs the privileged action specified by action. + *

+ * When permission checks are made, if the permission has been granted by all + * frames below and including the one representing the call to this method, + * then the permission is granted iff it is granted by the AccessControlContext + * context and also granted by one of the permissions arguments. + * Any unchecked exception generated by this method will propagate up the chain. + * However, checked exceptions will be caught an re-thrown as PrivilegedActionExceptions + */ + // @ts-ignore + public static doPrivileged(action: java.security.PrivilegedExceptionAction, context: java.security.AccessControlContext, perms: java.security.Permission): java.lang.Object; + /** + * Performs the privileged action specified by action, retaining + * any current DomainCombiner. + *

+ * When permission checks are made, if the permission has been granted by all + * frames below and including the one representing the call to this method, + * then the permission is granted and also granted by one of the permissions arguments. + * Any unchecked exception generated by this method will propagate up the chain. + * However, checked exceptions will be caught an re-thrown as PrivilegedActionExceptions + */ + // @ts-ignore + public static doPrivilegedWithCombiner(action: java.security.PrivilegedExceptionAction, context: java.security.AccessControlContext, perms: java.security.Permission): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.AlgorithmConstraints.d.ts b/packages/types/dist/typings/jdk/java.security.AlgorithmConstraints.d.ts new file mode 100644 index 00000000..5b06bc2c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.AlgorithmConstraints.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + interface AlgorithmConstraints { + /** + * Determines whether an algorithm is granted permission for the + * specified cryptographic primitives. + */ + // @ts-ignore + permits(primitives: java.util.Set, algorithm: string, parameters: java.security.AlgorithmParameters): boolean; + /** + * Determines whether a key is granted permission for the specified + * cryptographic primitives. + *

+ * This method is usually used to check key size and key usage. + */ + // @ts-ignore + permits(primitives: java.util.Set, key: java.security.Key): boolean; + /** + * Determines whether an algorithm and the corresponding key are granted + * permission for the specified cryptographic primitives. + */ + // @ts-ignore + permits(primitives: java.util.Set, algorithm: string, key: java.security.Key, parameters: java.security.AlgorithmParameters): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.AlgorithmParameterGenerator.d.ts b/packages/types/dist/typings/jdk/java.security.AlgorithmParameterGenerator.d.ts new file mode 100644 index 00000000..160dffd4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.AlgorithmParameterGenerator.d.ts @@ -0,0 +1,99 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class AlgorithmParameterGenerator extends java.lang.Object { + /** + * Creates an AlgorithmParameterGenerator object. + */ + // @ts-ignore + constructor(paramGenSpi: java.security.AlgorithmParameterGeneratorSpi, provider: java.security.Provider, algorithm: string) + /** + * Returns the standard name of the algorithm this parameter + * generator is associated with. + */ + // @ts-ignore + public getAlgorithm(): string; + /** + * Returns an AlgorithmParameterGenerator object for generating + * a set of parameters to be used with the specified algorithm. + *

This method traverses the list of registered security Providers, + * starting with the most preferred Provider. + * A new AlgorithmParameterGenerator object encapsulating the + * AlgorithmParameterGeneratorSpi implementation from the first + * Provider that supports the specified algorithm is returned. + *

Note that the list of registered providers may be retrieved via + * the {@link Security#getProviders() Security.getProviders()} method. + */ + // @ts-ignore + public static getInstance(algorithm: string): java.security.AlgorithmParameterGenerator; + /** + * Returns an AlgorithmParameterGenerator object for generating + * a set of parameters to be used with the specified algorithm. + *

A new AlgorithmParameterGenerator object encapsulating the + * AlgorithmParameterGeneratorSpi implementation from the specified provider + * is returned. The specified provider must be registered + * in the security provider list. + *

Note that the list of registered providers may be retrieved via + * the {@link Security#getProviders() Security.getProviders()} method. + */ + // @ts-ignore + public static getInstance(algorithm: string, provider: string): java.security.AlgorithmParameterGenerator; + /** + * Returns an AlgorithmParameterGenerator object for generating + * a set of parameters to be used with the specified algorithm. + *

A new AlgorithmParameterGenerator object encapsulating the + * AlgorithmParameterGeneratorSpi implementation from the specified Provider + * object is returned. Note that the specified Provider object + * does not have to be registered in the provider list. + */ + // @ts-ignore + public static getInstance(algorithm: string, provider: java.security.Provider): java.security.AlgorithmParameterGenerator; + /** + * Returns the provider of this algorithm parameter generator object. + */ + // @ts-ignore + public getProvider(): java.security.Provider; + /** + * Initializes this parameter generator for a certain size. + * To create the parameters, the {@code SecureRandom} + * implementation of the highest-priority installed provider is used as + * the source of randomness. + * (If none of the installed providers supply an implementation of + * {@code SecureRandom}, a system-provided source of randomness is + * used.) + */ + // @ts-ignore + public init(size: number): void; + /** + * Initializes this parameter generator for a certain size and source + * of randomness. + */ + // @ts-ignore + public init(size: number, random: java.security.SecureRandom): void; + /** + * Initializes this parameter generator with a set of algorithm-specific + * parameter generation values. + * To generate the parameters, the {@code SecureRandom} + * implementation of the highest-priority installed provider is used as + * the source of randomness. + * (If none of the installed providers supply an implementation of + * {@code SecureRandom}, a system-provided source of randomness is + * used.) + */ + // @ts-ignore + public init(genParamSpec: java.security.spec.AlgorithmParameterSpec): void; + /** + * Initializes this parameter generator with a set of algorithm-specific + * parameter generation values. + */ + // @ts-ignore + public init(genParamSpec: java.security.spec.AlgorithmParameterSpec, random: java.security.SecureRandom): void; + /** + * Generates the parameters. + */ + // @ts-ignore + public generateParameters(): java.security.AlgorithmParameters; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.AlgorithmParameterGeneratorSpi.d.ts b/packages/types/dist/typings/jdk/java.security.AlgorithmParameterGeneratorSpi.d.ts new file mode 100644 index 00000000..de0fe0cf --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.AlgorithmParameterGeneratorSpi.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + abstract class AlgorithmParameterGeneratorSpi extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Initializes this parameter generator for a certain size + * and source of randomness. + */ + // @ts-ignore + protected abstract engineInit(size: number, random: java.security.SecureRandom): void; + /** + * Generates the parameters. + */ + // @ts-ignore + protected abstract engineGenerateParameters(): java.security.AlgorithmParameters; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.AlgorithmParameters.d.ts b/packages/types/dist/typings/jdk/java.security.AlgorithmParameters.d.ts new file mode 100644 index 00000000..be8bf3fc --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.AlgorithmParameters.d.ts @@ -0,0 +1,119 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class AlgorithmParameters extends java.lang.Object { + /** + * Creates an AlgorithmParameters object. + */ + // @ts-ignore + constructor(paramSpi: java.security.AlgorithmParametersSpi, provider: java.security.Provider, algorithm: string) + /** + * Returns the name of the algorithm associated with this parameter object. + */ + // @ts-ignore + public getAlgorithm(): string; + /** + * Returns a parameter object for the specified algorithm. + *

This method traverses the list of registered security Providers, + * starting with the most preferred Provider. + * A new AlgorithmParameters object encapsulating the + * AlgorithmParametersSpi implementation from the first + * Provider that supports the specified algorithm is returned. + *

Note that the list of registered providers may be retrieved via + * the {@link Security#getProviders() Security.getProviders()} method. + *

The returned parameter object must be initialized via a call to + * {@code init}, using an appropriate parameter specification or + * parameter encoding. + */ + // @ts-ignore + public static getInstance(algorithm: string): java.security.AlgorithmParameters; + /** + * Returns a parameter object for the specified algorithm. + *

A new AlgorithmParameters object encapsulating the + * AlgorithmParametersSpi implementation from the specified provider + * is returned. The specified provider must be registered + * in the security provider list. + *

Note that the list of registered providers may be retrieved via + * the {@link Security#getProviders() Security.getProviders()} method. + *

The returned parameter object must be initialized via a call to + * {@code init}, using an appropriate parameter specification or + * parameter encoding. + */ + // @ts-ignore + public static getInstance(algorithm: string, provider: string): java.security.AlgorithmParameters; + /** + * Returns a parameter object for the specified algorithm. + *

A new AlgorithmParameters object encapsulating the + * AlgorithmParametersSpi implementation from the specified Provider + * object is returned. Note that the specified Provider object + * does not have to be registered in the provider list. + *

The returned parameter object must be initialized via a call to + * {@code init}, using an appropriate parameter specification or + * parameter encoding. + */ + // @ts-ignore + public static getInstance(algorithm: string, provider: java.security.Provider): java.security.AlgorithmParameters; + /** + * Returns the provider of this parameter object. + */ + // @ts-ignore + public getProvider(): java.security.Provider; + /** + * Initializes this parameter object using the parameters + * specified in {@code paramSpec}. + */ + // @ts-ignore + public init(paramSpec: java.security.spec.AlgorithmParameterSpec): void; + /** + * Imports the specified parameters and decodes them according to the + * primary decoding format for parameters. The primary decoding + * format for parameters is ASN.1, if an ASN.1 specification for this type + * of parameters exists. + */ + // @ts-ignore + public init(params: number): void; + /** + * Imports the parameters from {@code params} and decodes them + * according to the specified decoding scheme. + * If {@code format} is null, the + * primary decoding format for parameters is used. The primary decoding + * format is ASN.1, if an ASN.1 specification for these parameters + * exists. + */ + // @ts-ignore + public init(params: number, format: string): void; + /** + * Returns a (transparent) specification of this parameter object. + * {@code paramSpec} identifies the specification class in which + * the parameters should be returned. It could, for example, be + * {@code DSAParameterSpec.class}, to indicate that the + * parameters should be returned in an instance of the + * {@code DSAParameterSpec} class. + */ + // @ts-ignore + public getParameterSpec(paramSpec: java.lang.Class): java.security.spec.AlgorithmParameterSpec; + /** + * Returns the parameters in their primary encoding format. + * The primary encoding format for parameters is ASN.1, if an ASN.1 + * specification for this type of parameters exists. + */ + // @ts-ignore + public getEncoded(): number[]; + /** + * Returns the parameters encoded in the specified scheme. + * If {@code format} is null, the + * primary encoding format for parameters is used. The primary encoding + * format is ASN.1, if an ASN.1 specification for these parameters + * exists. + */ + // @ts-ignore + public getEncoded(format: string): number[]; + /** + * Returns a formatted string describing the parameters. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.AlgorithmParametersSpi.d.ts b/packages/types/dist/typings/jdk/java.security.AlgorithmParametersSpi.d.ts new file mode 100644 index 00000000..0decd10b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.AlgorithmParametersSpi.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + abstract class AlgorithmParametersSpi extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Initializes this parameters object using the parameters + * specified in {@code paramSpec}. + */ + // @ts-ignore + protected abstract engineInit(paramSpec: java.security.spec.AlgorithmParameterSpec): void; + /** + * Returns a (transparent) specification of this parameters + * object. + * {@code paramSpec} identifies the specification class in which + * the parameters should be returned. It could, for example, be + * {@code DSAParameterSpec.class}, to indicate that the + * parameters should be returned in an instance of the + * {@code DSAParameterSpec} class. + */ + // @ts-ignore + protected abstract engineGetParameterSpec(paramSpec: java.lang.Class): java.security.spec.AlgorithmParameterSpec; + /** + * Returns the parameters in their primary encoding format. + * The primary encoding format for parameters is ASN.1, if an ASN.1 + * specification for this type of parameters exists. + */ + // @ts-ignore + protected abstract engineGetEncoded(): number[]; + /** + * Returns a formatted string describing the parameters. + */ + // @ts-ignore + protected abstract engineToString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.AllPermission.d.ts b/packages/types/dist/typings/jdk/java.security.AllPermission.d.ts new file mode 100644 index 00000000..1b4d64c3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.AllPermission.d.ts @@ -0,0 +1,49 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class AllPermission extends java.security.Permission { + /** + * Creates a new AllPermission object. + */ + // @ts-ignore + constructor() + /** + * Creates a new AllPermission object. This + * constructor exists for use by the {@code Policy} object + * to instantiate new Permission objects. + */ + // @ts-ignore + constructor(name: string, actions: string) + /** + * Checks if the specified permission is "implied" by + * this object. This method always returns true. + */ + // @ts-ignore + public implies(p: java.security.Permission): boolean; + /** + * Checks two AllPermission objects for equality. Two AllPermission + * objects are always equal. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns the hash code value for this object. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns the canonical string representation of the actions. + */ + // @ts-ignore + public getActions(): string; + /** + * Returns a new PermissionCollection object for storing AllPermission + * objects. + *

+ */ + // @ts-ignore + public newPermissionCollection(): java.security.PermissionCollection; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.AuthProvider.d.ts b/packages/types/dist/typings/jdk/java.security.AuthProvider.d.ts new file mode 100644 index 00000000..64872533 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.AuthProvider.d.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + abstract class AuthProvider extends java.security.Provider { + /** + * Constructs a provider with the specified name, version number, + * and information. + */ + // @ts-ignore + constructor(name: string, version: number, info: string) + /** + * Log in to this provider. + *

The provider relies on a {@code CallbackHandler} + * to obtain authentication information from the caller + * (a PIN, for example). If the caller passes a {@code null} + * handler to this method, the provider uses the handler set in the + * {@code setCallbackHandler} method. + * If no handler was set in that method, the provider queries the + * auth.login.defaultCallbackHandler security property + * for the fully qualified class name of a default handler implementation. + * If the security property is not set, + * the provider is assumed to have alternative means + * for obtaining authentication information. + */ + // @ts-ignore + public abstract login(subject: any /*javax.security.auth.Subject*/, handler: any /*javax.security.auth.callback.CallbackHandler*/): void; + /** + * Log out from this provider. + */ + // @ts-ignore + public abstract logout(): void; + /** + * Set a {@code CallbackHandler}. + *

The provider uses this handler if one is not passed to the + * {@code login} method. The provider also uses this handler + * if it invokes {@code login} on behalf of callers. + * In either case if a handler is not set via this method, + * the provider queries the + * auth.login.defaultCallbackHandler security property + * for the fully qualified class name of a default handler implementation. + * If the security property is not set, + * the provider is assumed to have alternative means + * for obtaining authentication information. + */ + // @ts-ignore + public abstract setCallbackHandler(handler: any /*javax.security.auth.callback.CallbackHandler*/): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.BasicPermission.d.ts b/packages/types/dist/typings/jdk/java.security.BasicPermission.d.ts new file mode 100644 index 00000000..b55d6ec1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.BasicPermission.d.ts @@ -0,0 +1,70 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + abstract class BasicPermission extends java.security.Permission { + /** + * Creates a new BasicPermission with the specified name. + * Name is the symbolic name of the permission, such as + * "setFactory", + * "print.queueJob", or "topLevelWindow", etc. + */ + // @ts-ignore + constructor(name: string) + /** + * Creates a new BasicPermission object with the specified name. + * The name is the symbolic name of the BasicPermission, and the + * actions String is currently unused. + */ + // @ts-ignore + constructor(name: string, actions: string) + /** + * Checks if the specified permission is "implied" by + * this object. + *

+ * More specifically, this method returns true if: + *

    + *
  • p's class is the same as this object's class, and + *
  • p's name equals or (in the case of wildcards) + * is implied by this object's + * name. For example, "a.b.*" implies "a.b.c". + *
+ */ + // @ts-ignore + public implies(p: java.security.Permission): boolean; + /** + * Checks two BasicPermission objects for equality. + * Checks that obj's class is the same as this object's class + * and has the same name as this object. + *

+ */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns the hash code value for this object. + * The hash code used is the hash code of the name, that is, + * {@code getName().hashCode()}, where {@code getName} is + * from the Permission superclass. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns the canonical string representation of the actions, + * which currently is the empty string "", since there are no actions for + * a BasicPermission. + */ + // @ts-ignore + public getActions(): string; + /** + * Returns a new PermissionCollection object for storing BasicPermission + * objects. + *

BasicPermission objects must be stored in a manner that allows them + * to be inserted in any order, but that also enables the + * PermissionCollection {@code implies} method + * to be implemented in an efficient (and consistent) manner. + */ + // @ts-ignore + public newPermissionCollection(): java.security.PermissionCollection; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.Certificate.d.ts b/packages/types/dist/typings/jdk/java.security.Certificate.d.ts new file mode 100644 index 00000000..ea5ad60a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.Certificate.d.ts @@ -0,0 +1,55 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + interface Certificate { + /** + * Returns the guarantor of the certificate, that is, the principal + * guaranteeing that the public key associated with this certificate + * is that of the principal associated with this certificate. For X.509 + * certificates, the guarantor will typically be a Certificate Authority + * (such as the United States Postal Service or Verisign, Inc.). + */ + // @ts-ignore + getGuarantor(): java.security.Principal; + /** + * Returns the principal of the principal-key pair being guaranteed by + * the guarantor. + */ + // @ts-ignore + getPrincipal(): java.security.Principal; + /** + * Returns the key of the principal-key pair being guaranteed by + * the guarantor. + */ + // @ts-ignore + getPublicKey(): java.security.PublicKey; + /** + * Encodes the certificate to an output stream in a format that can + * be decoded by the {@code decode} method. + */ + // @ts-ignore + encode(stream: java.io.OutputStream): void; + /** + * Decodes a certificate from an input stream. The format should be + * that returned by {@code getFormat} and produced by + * {@code encode}. + */ + // @ts-ignore + decode(stream: java.io.InputStream): void; + /** + * Returns the name of the coding format. This is used as a hint to find + * an appropriate parser. It could be "X.509", "PGP", etc. This is + * the format produced and understood by the {@code encode} + * and {@code decode} methods. + */ + // @ts-ignore + getFormat(): string; + /** + * Returns a string that represents the contents of the certificate. + */ + // @ts-ignore + toString(detailed: boolean): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.CodeSigner.d.ts b/packages/types/dist/typings/jdk/java.security.CodeSigner.d.ts new file mode 100644 index 00000000..ff14dc4e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.CodeSigner.d.ts @@ -0,0 +1,43 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class CodeSigner extends java.lang.Object { + /** + * Constructs a CodeSigner object. + */ + // @ts-ignore + constructor(signerCertPath: java.security.cert.CertPath, timestamp: java.security.Timestamp) + /** + * Returns the signer's certificate path. + */ + // @ts-ignore + public getSignerCertPath(): java.security.cert.CertPath; + /** + * Returns the signature timestamp. + */ + // @ts-ignore + public getTimestamp(): java.security.Timestamp; + /** + * Returns the hash code value for this code signer. + * The hash code is generated using the signer's certificate path and the + * timestamp, if present. + */ + // @ts-ignore + public hashCode(): number; + /** + * Tests for equality between the specified object and this + * code signer. Two code signers are considered equal if their + * signer certificate paths are equal and if their timestamps are equal, + * if present in both. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a string describing this code signer. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.CodeSource.d.ts b/packages/types/dist/typings/jdk/java.security.CodeSource.d.ts new file mode 100644 index 00000000..e1e52b74 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.CodeSource.d.ts @@ -0,0 +1,128 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class CodeSource extends java.lang.Object { + /** + * Constructs a CodeSource and associates it with the specified + * location and set of certificates. + */ + // @ts-ignore + constructor(url: java.net.URL, certs: java.security.cert.Certificate) + /** + * Constructs a CodeSource and associates it with the specified + * location and set of code signers. + */ + // @ts-ignore + constructor(url: java.net.URL, signers: java.security.CodeSigner) + /** + * Returns the hash code value for this object. + */ + // @ts-ignore + public hashCode(): number; + /** + * Tests for equality between the specified object and this + * object. Two CodeSource objects are considered equal if their + * locations are of identical value and if their signer certificate + * chains are of identical value. It is not required that + * the certificate chains be in the same order. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns the location associated with this CodeSource. + */ + // @ts-ignore + public getLocation(): java.net.URL; + /** + * Returns the certificates associated with this CodeSource. + *

+ * If this CodeSource object was created using the + * {@link #CodeSource(URL url, CodeSigner[] signers)} + * constructor then its certificate chains are extracted and used to + * create an array of Certificate objects. Each signer certificate is + * followed by its supporting certificate chain (which may be empty). + * Each signer certificate and its supporting certificate chain is ordered + * bottom-to-top (i.e., with the signer certificate first and the (root) + * certificate authority last). + */ + // @ts-ignore + public getCertificates(): java.security.cert.Certificate[]; + /** + * Returns the code signers associated with this CodeSource. + *

+ * If this CodeSource object was created using the + * {@link #CodeSource(URL url, java.security.cert.Certificate[] certs)} + * constructor then its certificate chains are extracted and used to + * create an array of CodeSigner objects. Note that only X.509 certificates + * are examined - all other certificate types are ignored. + */ + // @ts-ignore + public getCodeSigners(): java.security.CodeSigner[]; + /** + * Returns true if this CodeSource object "implies" the specified CodeSource. + *

+ * More specifically, this method makes the following checks. + * If any fail, it returns false. If they all succeed, it returns true. + *

    + *
  • codesource must not be null. + *
  • If this object's certificates are not null, then all + * of this object's certificates must be present in codesource's + * certificates. + *
  • If this object's location (getLocation()) is not null, then the + * following checks are made against this object's location and + * codesource's: + *
      + *
    • codesource's location must not be null. + *
    • If this object's location + * equals codesource's location, then return true. + *
    • This object's protocol (getLocation().getProtocol()) must be + * equal to codesource's protocol, ignoring case. + *
    • If this object's host (getLocation().getHost()) is not null, + * then the SocketPermission + * constructed with this object's host must imply the + * SocketPermission constructed with codesource's host. + *
    • If this object's port (getLocation().getPort()) is not + * equal to -1 (that is, if a port is specified), it must equal + * codesource's port or default port + * (codesource.getLocation().getDefaultPort()). + *
    • If this object's file (getLocation().getFile()) doesn't equal + * codesource's file, then the following checks are made: + * If this object's file ends with "/-", + * then codesource's file must start with this object's + * file (exclusive the trailing "-"). + * If this object's file ends with a "/*", + * then codesource's file must start with this object's + * file and must not have any further "/" separators. + * If this object's file doesn't end with a "/", + * then codesource's file must match this object's + * file with a '/' appended. + *
    • If this object's reference (getLocation().getRef()) is + * not null, it must equal codesource's reference. + *
    + *
+ *

+ * For example, the codesource objects with the following locations + * and null certificates all imply + * the codesource with the location "http://java.sun.com/classes/foo.jar" + * and null certificates: + *

+             * http:
+             * http://*.sun.com/classes/*
+             * http://java.sun.com/classes/-
+             * http://java.sun.com/classes/foo.jar
+             * 
+ * Note that if this CodeSource has a null location and a null + * certificate chain, then it implies every other CodeSource. + */ + // @ts-ignore + public implies(codesource: java.security.CodeSource): boolean; + /** + * Returns a string describing this CodeSource, telling its + * URL and certificates. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.CryptoPrimitive.d.ts b/packages/types/dist/typings/jdk/java.security.CryptoPrimitive.d.ts new file mode 100644 index 00000000..36b7d8bc --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.CryptoPrimitive.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class CryptoPrimitive extends java.lang.Enum { + // @ts-ignore + public static MESSAGE_DIGEST: java.security.CryptoPrimitive; + // @ts-ignore + public static SECURE_RANDOM: java.security.CryptoPrimitive; + // @ts-ignore + public static BLOCK_CIPHER: java.security.CryptoPrimitive; + // @ts-ignore + public static STREAM_CIPHER: java.security.CryptoPrimitive; + // @ts-ignore + public static MAC: java.security.CryptoPrimitive; + // @ts-ignore + public static KEY_WRAP: java.security.CryptoPrimitive; + // @ts-ignore + public static PUBLIC_KEY_ENCRYPTION: java.security.CryptoPrimitive; + // @ts-ignore + public static SIGNATURE: java.security.CryptoPrimitive; + // @ts-ignore + public static KEY_ENCAPSULATION: java.security.CryptoPrimitive; + // @ts-ignore + public static KEY_AGREEMENT: java.security.CryptoPrimitive; + // @ts-ignore + public static values(): java.security.CryptoPrimitive[]; + // @ts-ignore + public static valueOf(name: string): java.security.CryptoPrimitive; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.DigestException.d.ts b/packages/types/dist/typings/jdk/java.security.DigestException.d.ts new file mode 100644 index 00000000..67518d58 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.DigestException.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class DigestException extends java.security.GeneralSecurityException { + /** + * Constructs a DigestException with no detail message. (A + * detail message is a String that describes this particular + * exception.) + */ + // @ts-ignore + constructor() + /** + * Constructs a DigestException with the specified detail + * message. (A detail message is a String that describes this + * particular exception.) + */ + // @ts-ignore + constructor(msg: string) + /** + * Creates a {@code DigestException} with the specified + * detail message and cause. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Creates a {@code DigestException} with the specified cause + * and a detail message of {@code (cause==null ? null : cause.toString())} + * (which typically contains the class and detail message of + * {@code cause}). + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.DigestInputStream.d.ts b/packages/types/dist/typings/jdk/java.security.DigestInputStream.d.ts new file mode 100644 index 00000000..d4abbe32 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.DigestInputStream.d.ts @@ -0,0 +1,63 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class DigestInputStream extends java.io.FilterInputStream { + /** + * Creates a digest input stream, using the specified input stream + * and message digest. + */ + // @ts-ignore + constructor(stream: java.io.InputStream, digest: java.security.MessageDigest) + // @ts-ignore + protected digest: java.security.MessageDigest; + /** + * Returns the message digest associated with this stream. + */ + // @ts-ignore + public getMessageDigest(): java.security.MessageDigest; + /** + * Associates the specified message digest with this stream. + */ + // @ts-ignore + public setMessageDigest(digest: java.security.MessageDigest): void; + /** + * Reads a byte, and updates the message digest (if the digest + * function is on). That is, this method reads a byte from the + * input stream, blocking until the byte is actually read. If the + * digest function is on (see {@link #on(boolean) on}), this method + * will then call {@code update} on the message digest associated + * with this stream, passing it the byte read. + */ + // @ts-ignore + public read(): number; + /** + * Reads into a byte array, and updates the message digest (if the + * digest function is on). That is, this method reads up to + * {@code len} bytes from the input stream into the array + * {@code b}, starting at offset {@code off}. This method + * blocks until the data is actually + * read. If the digest function is on (see + * {@link #on(boolean) on}), this method will then call {@code update} + * on the message digest associated with this stream, passing it + * the data. + */ + // @ts-ignore + public read(b: number, off: number, len: number): number; + /** + * Turns the digest function on or off. The default is on. When + * it is on, a call to one of the {@code read} methods results in an + * update on the message digest. But when it is off, the message + * digest is not updated. + */ + // @ts-ignore + public on(on: boolean): void; + /** + * Prints a string representation of this digest input stream and + * its associated message digest object. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.DigestOutputStream.d.ts b/packages/types/dist/typings/jdk/java.security.DigestOutputStream.d.ts new file mode 100644 index 00000000..ecd7f47f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.DigestOutputStream.d.ts @@ -0,0 +1,64 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class DigestOutputStream extends java.io.FilterOutputStream { + /** + * Creates a digest output stream, using the specified output stream + * and message digest. + */ + // @ts-ignore + constructor(stream: java.io.OutputStream, digest: java.security.MessageDigest) + // @ts-ignore + protected digest: java.security.MessageDigest; + /** + * Returns the message digest associated with this stream. + */ + // @ts-ignore + public getMessageDigest(): java.security.MessageDigest; + /** + * Associates the specified message digest with this stream. + */ + // @ts-ignore + public setMessageDigest(digest: java.security.MessageDigest): void; + /** + * Updates the message digest (if the digest function is on) using + * the specified byte, and in any case writes the byte + * to the output stream. That is, if the digest function is on + * (see {@link #on(boolean) on}), this method calls + * {@code update} on the message digest associated with this + * stream, passing it the byte {@code b}. This method then + * writes the byte to the output stream, blocking until the byte + * is actually written. + */ + // @ts-ignore + public write(b: number): void; + /** + * Updates the message digest (if the digest function is on) using + * the specified subarray, and in any case writes the subarray to + * the output stream. That is, if the digest function is on (see + * {@link #on(boolean) on}), this method calls {@code update} + * on the message digest associated with this stream, passing it + * the subarray specifications. This method then writes the subarray + * bytes to the output stream, blocking until the bytes are actually + * written. + */ + // @ts-ignore + public write(b: number, off: number, len: number): void; + /** + * Turns the digest function on or off. The default is on. When + * it is on, a call to one of the {@code write} methods results in an + * update on the message digest. But when it is off, the message + * digest is not updated. + */ + // @ts-ignore + public on(on: boolean): void; + /** + * Prints a string representation of this digest output stream and + * its associated message digest object. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.DomainCombiner.d.ts b/packages/types/dist/typings/jdk/java.security.DomainCombiner.d.ts new file mode 100644 index 00000000..b68d101c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.DomainCombiner.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + interface DomainCombiner { + /** + * Modify or update the provided ProtectionDomains. + * ProtectionDomains may be added to or removed from the given + * ProtectionDomains. The ProtectionDomains may be re-ordered. + * Individual ProtectionDomains may be modified (with a new + * set of Permissions, for example). + *

+ */ + // @ts-ignore + combine(currentDomains: java.security.ProtectionDomain, assignedDomains: java.security.ProtectionDomain): java.security.ProtectionDomain[]; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.DomainLoadStoreParameter.d.ts b/packages/types/dist/typings/jdk/java.security.DomainLoadStoreParameter.d.ts new file mode 100644 index 00000000..42a44670 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.DomainLoadStoreParameter.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class DomainLoadStoreParameter extends java.lang.Object { + /** + * Constructs a DomainLoadStoreParameter for a keystore domain with + * the parameters used to protect keystore data. + */ + // @ts-ignore + constructor(configuration: java.net.URI, protectionParams: java.util.Map) + /** + * Gets the identifier for the domain configuration data. + */ + // @ts-ignore + public getConfiguration(): java.net.URI; + /** + * Gets the keystore protection parameters for keystores in this + * domain. + */ + // @ts-ignore + public getProtectionParams(): java.util.Map; + /** + * Gets the keystore protection parameters for this domain. + * Keystore domains do not support a protection parameter. + */ + // @ts-ignore + public getProtectionParameter(): java.security.KeyStore.ProtectionParameter; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.GeneralSecurityException.d.ts b/packages/types/dist/typings/jdk/java.security.GeneralSecurityException.d.ts new file mode 100644 index 00000000..ea319816 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.GeneralSecurityException.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class GeneralSecurityException extends java.lang.Exception { + /** + * Constructs a GeneralSecurityException with no detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs a GeneralSecurityException with the specified detail + * message. + * A detail message is a String that describes this particular + * exception. + */ + // @ts-ignore + constructor(msg: string) + /** + * Creates a {@code GeneralSecurityException} with the specified + * detail message and cause. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Creates a {@code GeneralSecurityException} with the specified cause + * and a detail message of {@code (cause==null ? null : cause.toString())} + * (which typically contains the class and detail message of + * {@code cause}). + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.Guard.d.ts b/packages/types/dist/typings/jdk/java.security.Guard.d.ts new file mode 100644 index 00000000..8d279613 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.Guard.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + interface Guard { + /** + * Determines whether or not to allow access to the guarded object + * {@code object}. Returns silently if access is allowed. + * Otherwise, throws a SecurityException. + */ + // @ts-ignore + checkGuard(object: java.lang.Object): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.GuardedObject.d.ts b/packages/types/dist/typings/jdk/java.security.GuardedObject.d.ts new file mode 100644 index 00000000..cd106927 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.GuardedObject.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class GuardedObject extends java.lang.Object { + /** + * Constructs a GuardedObject using the specified object and guard. + * If the Guard object is null, then no restrictions will + * be placed on who can access the object. + */ + // @ts-ignore + constructor(object: java.lang.Object, guard: java.security.Guard) + /** + * Retrieves the guarded object, or throws an exception if access + * to the guarded object is denied by the guard. + */ + // @ts-ignore + public getObject(): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.Identity.d.ts b/packages/types/dist/typings/jdk/java.security.Identity.d.ts new file mode 100644 index 00000000..e7355f2d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.Identity.d.ts @@ -0,0 +1,127 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + abstract class Identity extends java.lang.Object { + /** + * Constructor for serialization only. + */ + // @ts-ignore + constructor() + /** + * Constructs an identity with the specified name and scope. + */ + // @ts-ignore + constructor(name: string, scope: java.security.IdentityScope) + /** + * Constructs an identity with the specified name and no scope. + */ + // @ts-ignore + constructor(name: string) + /** + * Returns this identity's name. + */ + // @ts-ignore + public getName(): string; + /** + * Returns this identity's scope. + */ + // @ts-ignore + public getScope(): java.security.IdentityScope; + /** + * Returns this identity's public key. + */ + // @ts-ignore + public getPublicKey(): java.security.PublicKey; + /** + * Sets this identity's public key. The old key and all of this + * identity's certificates are removed by this operation. + *

First, if there is a security manager, its {@code checkSecurityAccess} + * method is called with {@code "setIdentityPublicKey"} + * as its argument to see if it's ok to set the public key. + */ + // @ts-ignore + public setPublicKey(key: java.security.PublicKey): void; + /** + * Specifies a general information string for this identity. + *

First, if there is a security manager, its {@code checkSecurityAccess} + * method is called with {@code "setIdentityInfo"} + * as its argument to see if it's ok to specify the information string. + */ + // @ts-ignore + public setInfo(info: string): void; + /** + * Returns general information previously specified for this identity. + */ + // @ts-ignore + public getInfo(): string; + /** + * Adds a certificate for this identity. If the identity has a public + * key, the public key in the certificate must be the same, and if + * the identity does not have a public key, the identity's + * public key is set to be that specified in the certificate. + *

First, if there is a security manager, its {@code checkSecurityAccess} + * method is called with {@code "addIdentityCertificate"} + * as its argument to see if it's ok to add a certificate. + */ + // @ts-ignore + public addCertificate(certificate: java.security.Certificate): void; + /** + * Removes a certificate from this identity. + *

First, if there is a security manager, its {@code checkSecurityAccess} + * method is called with {@code "removeIdentityCertificate"} + * as its argument to see if it's ok to remove a certificate. + */ + // @ts-ignore + public removeCertificate(certificate: java.security.Certificate): void; + /** + * Returns a copy of all the certificates for this identity. + */ + // @ts-ignore + public certificates(): java.security.Certificate[]; + /** + * Tests for equality between the specified object and this identity. + * This first tests to see if the entities actually refer to the same + * object, in which case it returns true. Next, it checks to see if + * the entities have the same name and the same scope. If they do, + * the method returns true. Otherwise, it calls + * {@link #identityEquals(Identity) identityEquals}, which subclasses should + * override. + */ + // @ts-ignore + public equals(identity: java.lang.Object): boolean; + /** + * Tests for equality between the specified identity and this identity. + * This method should be overriden by subclasses to test for equality. + * The default behavior is to return true if the names and public keys + * are equal. + */ + // @ts-ignore + protected identityEquals(identity: java.security.Identity): boolean; + /** + * Returns a short string describing this identity, telling its + * name and its scope (if any). + *

First, if there is a security manager, its {@code checkSecurityAccess} + * method is called with {@code "printIdentity"} + * as its argument to see if it's ok to return the string. + */ + // @ts-ignore + public toString(): string; + /** + * Returns a string representation of this identity, with + * optionally more details than that provided by the + * {@code toString} method without any arguments. + *

First, if there is a security manager, its {@code checkSecurityAccess} + * method is called with {@code "printIdentity"} + * as its argument to see if it's ok to return the string. + */ + // @ts-ignore + public toString(detailed: boolean): string; + /** + * Returns a hashcode for this identity. + */ + // @ts-ignore + public hashCode(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.IdentityScope.d.ts b/packages/types/dist/typings/jdk/java.security.IdentityScope.d.ts new file mode 100644 index 00000000..92f94140 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.IdentityScope.d.ts @@ -0,0 +1,76 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + abstract class IdentityScope extends java.security.Identity { + /** + * This constructor is used for serialization only and should not + * be used by subclasses. + */ + // @ts-ignore + constructor() + /** + * Constructs a new identity scope with the specified name. + */ + // @ts-ignore + constructor(name: string) + /** + * Constructs a new identity scope with the specified name and scope. + */ + // @ts-ignore + constructor(name: string, scope: java.security.IdentityScope) + /** + * Returns the system's identity scope. + */ + // @ts-ignore + public static getSystemScope(): java.security.IdentityScope; + /** + * Sets the system's identity scope. + *

First, if there is a security manager, its + * {@code checkSecurityAccess} + * method is called with {@code "setSystemScope"} + * as its argument to see if it's ok to set the identity scope. + */ + // @ts-ignore + protected static setSystemScope(scope: java.security.IdentityScope): void; + /** + * Returns the number of identities within this identity scope. + */ + // @ts-ignore + public abstract size(): number; + /** + * Returns the identity in this scope with the specified name (if any). + */ + // @ts-ignore + public abstract getIdentity(name: string): java.security.Identity; + /** + * Retrieves the identity whose name is the same as that of the + * specified principal. (Note: Identity implements Principal.) + */ + // @ts-ignore + public getIdentity(principal: java.security.Principal): java.security.Identity; + /** + * Adds an identity to this identity scope. + */ + // @ts-ignore + public abstract addIdentity(identity: java.security.Identity): void; + /** + * Removes an identity from this identity scope. + */ + // @ts-ignore + public abstract removeIdentity(identity: java.security.Identity): void; + /** + * Returns an enumeration of all identities in this identity scope. + */ + // @ts-ignore + public abstract identities(): java.util.Enumeration; + /** + * Returns a string representation of this identity scope, including + * its name, its scope name, and the number of identities in this + * identity scope. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.InvalidAlgorithmParameterException.d.ts b/packages/types/dist/typings/jdk/java.security.InvalidAlgorithmParameterException.d.ts new file mode 100644 index 00000000..8d15fbb4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.InvalidAlgorithmParameterException.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class InvalidAlgorithmParameterException extends java.security.GeneralSecurityException { + /** + * Constructs an InvalidAlgorithmParameterException with no detail + * message. + * A detail message is a String that describes this particular + * exception. + */ + // @ts-ignore + constructor() + /** + * Constructs an InvalidAlgorithmParameterException with the specified + * detail message. + * A detail message is a String that describes this + * particular exception. + */ + // @ts-ignore + constructor(msg: string) + /** + * Creates a {@code InvalidAlgorithmParameterException} with the + * specified detail message and cause. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Creates a {@code InvalidAlgorithmParameterException} with the + * specified cause and a detail message of + * {@code (cause==null ? null : cause.toString())} + * (which typically contains the class and detail message of + * {@code cause}). + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.InvalidKeyException.d.ts b/packages/types/dist/typings/jdk/java.security.InvalidKeyException.d.ts new file mode 100644 index 00000000..30c67e3f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.InvalidKeyException.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class InvalidKeyException extends java.security.KeyException { + /** + * Constructs an InvalidKeyException with no detail message. A + * detail message is a String that describes this particular + * exception. + */ + // @ts-ignore + constructor() + /** + * Constructs an InvalidKeyException with the specified detail + * message. A detail message is a String that describes this + * particular exception. + */ + // @ts-ignore + constructor(msg: string) + /** + * Creates a {@code InvalidKeyException} with the specified + * detail message and cause. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Creates a {@code InvalidKeyException} with the specified cause + * and a detail message of {@code (cause==null ? null : cause.toString())} + * (which typically contains the class and detail message of + * {@code cause}). + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.InvalidParameterException.d.ts b/packages/types/dist/typings/jdk/java.security.InvalidParameterException.d.ts new file mode 100644 index 00000000..baa174dc --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.InvalidParameterException.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class InvalidParameterException extends java.lang.IllegalArgumentException { + /** + * Constructs an InvalidParameterException with no detail message. + * A detail message is a String that describes this particular + * exception. + */ + // @ts-ignore + constructor() + /** + * Constructs an InvalidParameterException with the specified + * detail message. A detail message is a String that describes + * this particular exception. + */ + // @ts-ignore + constructor(msg: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.Key.d.ts b/packages/types/dist/typings/jdk/java.security.Key.d.ts new file mode 100644 index 00000000..e500a26e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.Key.d.ts @@ -0,0 +1,43 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + interface Key { + // @ts-ignore + serialVersionUID: number; + /** + * Returns the standard algorithm name for this key. For + * example, "DSA" would indicate that this key is a DSA key. + * See Appendix A in the + * Java Cryptography Architecture API Specification & Reference + * for information about standard algorithm names. + */ + // @ts-ignore + getAlgorithm(): string; + /** + * Returns the name of the primary encoding format of this key, + * or null if this key does not support encoding. + * The primary encoding format is + * named in terms of the appropriate ASN.1 data format, if an + * ASN.1 specification for this key exists. + * For example, the name of the ASN.1 data format for public + * keys is SubjectPublicKeyInfo, as + * defined by the X.509 standard; in this case, the returned format is + * {@code "X.509"}. Similarly, + * the name of the ASN.1 data format for private keys is + * PrivateKeyInfo, + * as defined by the PKCS #8 standard; in this case, the returned format is + * {@code "PKCS#8"}. + */ + // @ts-ignore + getFormat(): string; + /** + * Returns the key in its primary encoding format, or null + * if this key does not support encoding. + */ + // @ts-ignore + getEncoded(): number[]; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.KeyException.d.ts b/packages/types/dist/typings/jdk/java.security.KeyException.d.ts new file mode 100644 index 00000000..fdbbbd13 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.KeyException.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class KeyException extends java.security.GeneralSecurityException { + /** + * Constructs a KeyException with no detail message. A detail + * message is a String that describes this particular exception. + */ + // @ts-ignore + constructor() + /** + * Constructs a KeyException with the specified detail message. + * A detail message is a String that describes this particular + * exception. + */ + // @ts-ignore + constructor(msg: string) + /** + * Creates a {@code KeyException} with the specified + * detail message and cause. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Creates a {@code KeyException} with the specified cause + * and a detail message of {@code (cause==null ? null : cause.toString())} + * (which typically contains the class and detail message of + * {@code cause}). + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.KeyFactory.d.ts b/packages/types/dist/typings/jdk/java.security.KeyFactory.d.ts new file mode 100644 index 00000000..77d39914 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.KeyFactory.d.ts @@ -0,0 +1,87 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class KeyFactory extends java.lang.Object { + /** + * Creates a KeyFactory object. + */ + // @ts-ignore + constructor(keyFacSpi: java.security.KeyFactorySpi, provider: java.security.Provider, algorithm: string) + /** + * Returns a KeyFactory object that converts + * public/private keys of the specified algorithm. + *

This method traverses the list of registered security Providers, + * starting with the most preferred Provider. + * A new KeyFactory object encapsulating the + * KeyFactorySpi implementation from the first + * Provider that supports the specified algorithm is returned. + *

Note that the list of registered providers may be retrieved via + * the {@link Security#getProviders() Security.getProviders()} method. + */ + // @ts-ignore + public static getInstance(algorithm: string): java.security.KeyFactory; + /** + * Returns a KeyFactory object that converts + * public/private keys of the specified algorithm. + *

A new KeyFactory object encapsulating the + * KeyFactorySpi implementation from the specified provider + * is returned. The specified provider must be registered + * in the security provider list. + *

Note that the list of registered providers may be retrieved via + * the {@link Security#getProviders() Security.getProviders()} method. + */ + // @ts-ignore + public static getInstance(algorithm: string, provider: string): java.security.KeyFactory; + /** + * Returns a KeyFactory object that converts + * public/private keys of the specified algorithm. + *

A new KeyFactory object encapsulating the + * KeyFactorySpi implementation from the specified Provider + * object is returned. Note that the specified Provider object + * does not have to be registered in the provider list. + */ + // @ts-ignore + public static getInstance(algorithm: string, provider: java.security.Provider): java.security.KeyFactory; + /** + * Returns the provider of this key factory object. + */ + // @ts-ignore + public getProvider(): java.security.Provider; + /** + * Gets the name of the algorithm + * associated with this {@code KeyFactory}. + */ + // @ts-ignore + public getAlgorithm(): string; + /** + * Generates a public key object from the provided key specification + * (key material). + */ + // @ts-ignore + public generatePublic(keySpec: java.security.spec.KeySpec): java.security.PublicKey; + /** + * Generates a private key object from the provided key specification + * (key material). + */ + // @ts-ignore + public generatePrivate(keySpec: java.security.spec.KeySpec): java.security.PrivateKey; + /** + * Returns a specification (key material) of the given key object. + * {@code keySpec} identifies the specification class in which + * the key material should be returned. It could, for example, be + * {@code DSAPublicKeySpec.class}, to indicate that the + * key material should be returned in an instance of the + * {@code DSAPublicKeySpec} class. + */ + // @ts-ignore + public getKeySpec(key: java.security.Key, keySpec: java.lang.Class): java.security.spec.KeySpec; + /** + * Translates a key object, whose provider may be unknown or potentially + * untrusted, into a corresponding key object of this key factory. + */ + // @ts-ignore + public translateKey(key: java.security.Key): java.security.Key; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.KeyFactorySpi.d.ts b/packages/types/dist/typings/jdk/java.security.KeyFactorySpi.d.ts new file mode 100644 index 00000000..7e6f8c17 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.KeyFactorySpi.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + abstract class KeyFactorySpi extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Generates a public key object from the provided key + * specification (key material). + */ + // @ts-ignore + protected abstract engineGeneratePublic(keySpec: java.security.spec.KeySpec): java.security.PublicKey; + /** + * Generates a private key object from the provided key + * specification (key material). + */ + // @ts-ignore + protected abstract engineGeneratePrivate(keySpec: java.security.spec.KeySpec): java.security.PrivateKey; + /** + * Returns a specification (key material) of the given key + * object. + * {@code keySpec} identifies the specification class in which + * the key material should be returned. It could, for example, be + * {@code DSAPublicKeySpec.class}, to indicate that the + * key material should be returned in an instance of the + * {@code DSAPublicKeySpec} class. + */ + // @ts-ignore + protected abstract engineGetKeySpec(key: java.security.Key, keySpec: java.lang.Class): java.security.spec.KeySpec; + /** + * Translates a key object, whose provider may be unknown or + * potentially untrusted, into a corresponding key object of this key + * factory. + */ + // @ts-ignore + protected abstract engineTranslateKey(key: java.security.Key): java.security.Key; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.KeyManagementException.d.ts b/packages/types/dist/typings/jdk/java.security.KeyManagementException.d.ts new file mode 100644 index 00000000..dccf0bf6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.KeyManagementException.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class KeyManagementException extends java.security.KeyException { + /** + * Constructs a KeyManagementException with no detail message. A + * detail message is a String that describes this particular + * exception. + */ + // @ts-ignore + constructor() + /** + * Constructs a KeyManagementException with the specified detail + * message. A detail message is a String that describes this + * particular exception. + */ + // @ts-ignore + constructor(msg: string) + /** + * Creates a {@code KeyManagementException} with the specified + * detail message and cause. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Creates a {@code KeyManagementException} with the specified cause + * and a detail message of {@code (cause==null ? null : cause.toString())} + * (which typically contains the class and detail message of + * {@code cause}). + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.KeyPair.d.ts b/packages/types/dist/typings/jdk/java.security.KeyPair.d.ts new file mode 100644 index 00000000..fbeebea3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.KeyPair.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class KeyPair extends java.lang.Object { + /** + * Constructs a key pair from the given public key and private key. + *

Note that this constructor only stores references to the public + * and private key components in the generated key pair. This is safe, + * because {@code Key} objects are immutable. + */ + // @ts-ignore + constructor(publicKey: java.security.PublicKey, privateKey: java.security.PrivateKey) + /** + * Returns a reference to the public key component of this key pair. + */ + // @ts-ignore + public getPublic(): java.security.PublicKey; + /** + * Returns a reference to the private key component of this key pair. + */ + // @ts-ignore + public getPrivate(): java.security.PrivateKey; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.KeyPairGenerator.d.ts b/packages/types/dist/typings/jdk/java.security.KeyPairGenerator.d.ts new file mode 100644 index 00000000..a1aa8cef --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.KeyPairGenerator.d.ts @@ -0,0 +1,139 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + abstract class KeyPairGenerator extends java.security.KeyPairGeneratorSpi { + /** + * Creates a KeyPairGenerator object for the specified algorithm. + */ + // @ts-ignore + constructor(algorithm: string) + /** + * Returns the standard name of the algorithm for this key pair generator. + * See the KeyPairGenerator section in the + * Java Cryptography Architecture Standard Algorithm Name Documentation + * for information about standard algorithm names. + */ + // @ts-ignore + public getAlgorithm(): string; + /** + * Returns a KeyPairGenerator object that generates public/private + * key pairs for the specified algorithm. + *

This method traverses the list of registered security Providers, + * starting with the most preferred Provider. + * A new KeyPairGenerator object encapsulating the + * KeyPairGeneratorSpi implementation from the first + * Provider that supports the specified algorithm is returned. + *

Note that the list of registered providers may be retrieved via + * the {@link Security#getProviders() Security.getProviders()} method. + */ + // @ts-ignore + public static getInstance(algorithm: string): java.security.KeyPairGenerator; + /** + * Returns a KeyPairGenerator object that generates public/private + * key pairs for the specified algorithm. + *

A new KeyPairGenerator object encapsulating the + * KeyPairGeneratorSpi implementation from the specified provider + * is returned. The specified provider must be registered + * in the security provider list. + *

Note that the list of registered providers may be retrieved via + * the {@link Security#getProviders() Security.getProviders()} method. + */ + // @ts-ignore + public static getInstance(algorithm: string, provider: string): java.security.KeyPairGenerator; + /** + * Returns a KeyPairGenerator object that generates public/private + * key pairs for the specified algorithm. + *

A new KeyPairGenerator object encapsulating the + * KeyPairGeneratorSpi implementation from the specified Provider + * object is returned. Note that the specified Provider object + * does not have to be registered in the provider list. + */ + // @ts-ignore + public static getInstance(algorithm: string, provider: java.security.Provider): java.security.KeyPairGenerator; + /** + * Returns the provider of this key pair generator object. + */ + // @ts-ignore + public getProvider(): java.security.Provider; + /** + * Initializes the key pair generator for a certain keysize using + * a default parameter set and the {@code SecureRandom} + * implementation of the highest-priority installed provider as the source + * of randomness. + * (If none of the installed providers supply an implementation of + * {@code SecureRandom}, a system-provided source of randomness is + * used.) + */ + // @ts-ignore + public initialize(keysize: number): void; + /** + * Initializes the key pair generator for a certain keysize with + * the given source of randomness (and a default parameter set). + */ + // @ts-ignore + public initialize(keysize: number, random: java.security.SecureRandom): void; + /** + * Initializes the key pair generator using the specified parameter + * set and the {@code SecureRandom} + * implementation of the highest-priority installed provider as the source + * of randomness. + * (If none of the installed providers supply an implementation of + * {@code SecureRandom}, a system-provided source of randomness is + * used.). + *

This concrete method has been added to this previously-defined + * abstract class. + * This method calls the KeyPairGeneratorSpi + * {@link KeyPairGeneratorSpi#initialize( + * java.security.spec.AlgorithmParameterSpec, + * java.security.SecureRandom) initialize} method, + * passing it {@code params} and a source of randomness (obtained + * from the highest-priority installed provider or system-provided if none + * of the installed providers supply one). + * That {@code initialize} method always throws an + * UnsupportedOperationException if it is not overridden by the provider. + */ + // @ts-ignore + public initialize(params: java.security.spec.AlgorithmParameterSpec): void; + /** + * Initializes the key pair generator with the given parameter + * set and source of randomness. + *

This concrete method has been added to this previously-defined + * abstract class. + * This method calls the KeyPairGeneratorSpi {@link + * KeyPairGeneratorSpi#initialize( + * java.security.spec.AlgorithmParameterSpec, + * java.security.SecureRandom) initialize} method, + * passing it {@code params} and {@code random}. + * That {@code initialize} + * method always throws an + * UnsupportedOperationException if it is not overridden by the provider. + */ + // @ts-ignore + public initialize(params: java.security.spec.AlgorithmParameterSpec, random: java.security.SecureRandom): void; + /** + * Generates a key pair. + *

If this KeyPairGenerator has not been initialized explicitly, + * provider-specific defaults will be used for the size and other + * (algorithm-specific) values of the generated keys. + *

This will generate a new key pair every time it is called. + *

This method is functionally equivalent to + * {@link #generateKeyPair() generateKeyPair}. + */ + // @ts-ignore + public genKeyPair(): java.security.KeyPair; + /** + * Generates a key pair. + *

If this KeyPairGenerator has not been initialized explicitly, + * provider-specific defaults will be used for the size and other + * (algorithm-specific) values of the generated keys. + *

This will generate a new key pair every time it is called. + *

This method is functionally equivalent to + * {@link #genKeyPair() genKeyPair}. + */ + // @ts-ignore + public generateKeyPair(): java.security.KeyPair; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.KeyPairGeneratorSpi.d.ts b/packages/types/dist/typings/jdk/java.security.KeyPairGeneratorSpi.d.ts new file mode 100644 index 00000000..7c624ceb --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.KeyPairGeneratorSpi.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + abstract class KeyPairGeneratorSpi extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Initializes the key pair generator for a certain keysize, using + * the default parameter set. + */ + // @ts-ignore + public abstract initialize(keysize: number, random: java.security.SecureRandom): void; + /** + * Initializes the key pair generator using the specified parameter + * set and user-provided source of randomness. + *

This concrete method has been added to this previously-defined + * abstract class. (For backwards compatibility, it cannot be abstract.) + * It may be overridden by a provider to initialize the key pair + * generator. Such an override + * is expected to throw an InvalidAlgorithmParameterException if + * a parameter is inappropriate for this key pair generator. + * If this method is not overridden, it always throws an + * UnsupportedOperationException. + */ + // @ts-ignore + public initialize(params: java.security.spec.AlgorithmParameterSpec, random: java.security.SecureRandom): void; + /** + * Generates a key pair. Unless an initialization method is called + * using a KeyPairGenerator interface, algorithm-specific defaults + * will be used. This will generate a new key pair every time it + * is called. + */ + // @ts-ignore + public abstract generateKeyPair(): java.security.KeyPair; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.KeyRep.Type.d.ts b/packages/types/dist/typings/jdk/java.security.KeyRep.Type.d.ts new file mode 100644 index 00000000..796f6118 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.KeyRep.Type.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace KeyRep { + // @ts-ignore + class Type extends java.lang.Enum { + // @ts-ignore + public static SECRET: java.security.KeyRep.Type; + // @ts-ignore + public static PUBLIC: java.security.KeyRep.Type; + // @ts-ignore + public static PRIVATE: java.security.KeyRep.Type; + // @ts-ignore + public static values(): java.security.KeyRep.Type[]; + // @ts-ignore + public static valueOf(name: string): java.security.KeyRep.Type; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.KeyRep.d.ts b/packages/types/dist/typings/jdk/java.security.KeyRep.d.ts new file mode 100644 index 00000000..61667d7a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.KeyRep.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class KeyRep extends java.lang.Object { + /** + * Construct the alternate Key class. + *

+ */ + // @ts-ignore + constructor(type: java.security.KeyRep.Type, algorithm: string, format: string, encoded: number) + /** + * Resolve the Key object. + *

This method supports three Type/format combinations: + *

    + *
  • Type.SECRET/"RAW" - returns a SecretKeySpec object + * constructed using encoded key bytes and algorithm + *
  • Type.PUBLIC/"X.509" - gets a KeyFactory instance for + * the key algorithm, constructs an X509EncodedKeySpec with the + * encoded key bytes, and generates a public key from the spec + *
  • Type.PRIVATE/"PKCS#8" - gets a KeyFactory instance for + * the key algorithm, constructs a PKCS8EncodedKeySpec with the + * encoded key bytes, and generates a private key from the spec + *
+ *

+ */ + // @ts-ignore + protected readResolve(): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.KeyStore.Builder.d.ts b/packages/types/dist/typings/jdk/java.security.KeyStore.Builder.d.ts new file mode 100644 index 00000000..94b7b9b1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.KeyStore.Builder.d.ts @@ -0,0 +1,86 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace KeyStore { + // @ts-ignore + abstract class Builder extends java.lang.Object { + /** + * Construct a new Builder. + */ + // @ts-ignore + constructor() + /** + * Returns the KeyStore described by this object. + */ + // @ts-ignore + public abstract getKeyStore(): java.security.KeyStore; + /** + * Returns the ProtectionParameters that should be used to obtain + * the {@link KeyStore.Entry Entry} with the given alias. + * The {@code getKeyStore} method must be invoked before this + * method may be called. + */ + // @ts-ignore + public abstract getProtectionParameter(alias: string): java.security.KeyStore.ProtectionParameter; + /** + * Returns a new Builder that encapsulates the given KeyStore. + * The {@linkplain #getKeyStore} method of the returned object + * will return {@code keyStore}, the {@linkplain + * #getProtectionParameter getProtectionParameter()} method will + * return {@code protectionParameters}. + *

This is useful if an existing KeyStore object needs to be + * used with Builder-based APIs. + */ + // @ts-ignore + public static newInstance(keyStore: java.security.KeyStore, protectionParameter: java.security.KeyStore.ProtectionParameter): java.security.KeyStore.Builder; + /** + * Returns a new Builder object. + *

The first call to the {@link #getKeyStore} method on the returned + * builder will create a KeyStore of type {@code type} and call + * its {@link KeyStore#load load()} method. + * The {@code inputStream} argument is constructed from + * {@code file}. + * If {@code protection} is a + * {@code PasswordProtection}, the password is obtained by + * calling the {@code getPassword} method. + * Otherwise, if {@code protection} is a + * {@code CallbackHandlerProtection}, the password is obtained + * by invoking the CallbackHandler. + *

Subsequent calls to {@link #getKeyStore} return the same object + * as the initial call. If the initial call to failed with a + * KeyStoreException, subsequent calls also throw a + * KeyStoreException. + *

The KeyStore is instantiated from {@code provider} if + * non-null. Otherwise, all installed providers are searched. + *

Calls to {@link #getProtectionParameter getProtectionParameter()} + * will return a {@link KeyStore.PasswordProtection PasswordProtection} + * object encapsulating the password that was used to invoke the + * {@code load} method. + *

Note that the {@link #getKeyStore} method is executed + * within the {@link AccessControlContext} of the code invoking this + * method. + */ + // @ts-ignore + public static newInstance(type: string, provider: java.security.Provider, file: java.io.File, protection: java.security.KeyStore.ProtectionParameter): java.security.KeyStore.Builder; + /** + * Returns a new Builder object. + *

Each call to the {@link #getKeyStore} method on the returned + * builder will return a new KeyStore object of type {@code type}. + * Its {@link KeyStore#load(KeyStore.LoadStoreParameter) load()} + * method is invoked using a + * {@code LoadStoreParameter} that encapsulates + * {@code protection}. + *

The KeyStore is instantiated from {@code provider} if + * non-null. Otherwise, all installed providers are searched. + *

Calls to {@link #getProtectionParameter getProtectionParameter()} + * will return {@code protection}. + *

Note that the {@link #getKeyStore} method is executed + * within the {@link AccessControlContext} of the code invoking this + * method. + */ + // @ts-ignore + public static newInstance(type: string, provider: java.security.Provider, protection: java.security.KeyStore.ProtectionParameter): java.security.KeyStore.Builder; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.KeyStore.CallbackHandlerProtection.d.ts b/packages/types/dist/typings/jdk/java.security.KeyStore.CallbackHandlerProtection.d.ts new file mode 100644 index 00000000..5be24a82 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.KeyStore.CallbackHandlerProtection.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace KeyStore { + // @ts-ignore + class CallbackHandlerProtection extends java.lang.Object { + /** + * Constructs a new CallbackHandlerProtection from a + * CallbackHandler. + */ + // @ts-ignore + constructor(handler: any /*javax.security.auth.callback.CallbackHandler*/) + /** + * Returns the CallbackHandler. + */ + // @ts-ignore + public getCallbackHandler(): any /*javax.security.auth.callback.CallbackHandler*/; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.KeyStore.Entry.Attribute.d.ts b/packages/types/dist/typings/jdk/java.security.KeyStore.Entry.Attribute.d.ts new file mode 100644 index 00000000..06ae3747 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.KeyStore.Entry.Attribute.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace KeyStore { + namespace Entry { + // @ts-ignore + interface Attribute { + /** + * Returns the attribute's name. + */ + // @ts-ignore + getName(): string; + /** + * Returns the attribute's value. + * Multi-valued attributes encode their values as a single string. + */ + // @ts-ignore + getValue(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.KeyStore.Entry.d.ts b/packages/types/dist/typings/jdk/java.security.KeyStore.Entry.d.ts new file mode 100644 index 00000000..92a4d9d5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.KeyStore.Entry.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace KeyStore { + // @ts-ignore + interface Entry { + /** + * Retrieves the attributes associated with an entry. + *

+ * The default implementation returns an empty {@code Set}. + */ + // @ts-ignore + getAttributes(): java.util.Set; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.KeyStore.LoadStoreParameter.d.ts b/packages/types/dist/typings/jdk/java.security.KeyStore.LoadStoreParameter.d.ts new file mode 100644 index 00000000..4e5947df --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.KeyStore.LoadStoreParameter.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace KeyStore { + // @ts-ignore + interface LoadStoreParameter { + /** + * Gets the parameter used to protect keystore data. + */ + // @ts-ignore + getProtectionParameter(): java.security.KeyStore.ProtectionParameter; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.KeyStore.PasswordProtection.d.ts b/packages/types/dist/typings/jdk/java.security.KeyStore.PasswordProtection.d.ts new file mode 100644 index 00000000..75723b0a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.KeyStore.PasswordProtection.d.ts @@ -0,0 +1,64 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace KeyStore { + // @ts-ignore + class PasswordProtection extends java.lang.Object { + /** + * Creates a password parameter. + *

The specified {@code password} is cloned before it is stored + * in the new {@code PasswordProtection} object. + */ + // @ts-ignore + constructor(password: string) + /** + * Creates a password parameter and specifies the protection algorithm + * and associated parameters to use when encrypting a keystore entry. + *

+ * The specified {@code password} is cloned before it is stored in the + * new {@code PasswordProtection} object. + */ + // @ts-ignore + constructor(password: string, protectionAlgorithm: string, protectionParameters: java.security.spec.AlgorithmParameterSpec) + /** + * Gets the name of the protection algorithm. + * If none was set then the keystore provider will use its default + * protection algorithm. The name of the default protection algorithm + * for a given keystore type is set using the + * {@code 'keystore..keyProtectionAlgorithm'} security property. + * For example, the + * {@code keystore.PKCS12.keyProtectionAlgorithm} property stores the + * name of the default key protection algorithm used for PKCS12 + * keystores. If the security property is not set, an + * implementation-specific algorithm will be used. + */ + // @ts-ignore + public getProtectionAlgorithm(): string; + /** + * Gets the parameters supplied for the protection algorithm. + */ + // @ts-ignore + public getProtectionParameters(): java.security.spec.AlgorithmParameterSpec; + /** + * Gets the password. + *

Note that this method returns a reference to the password. + * If a clone of the array is created it is the caller's + * responsibility to zero out the password information + * after it is no longer needed. + */ + // @ts-ignore + public getPassword(): string[]; + /** + * Clears the password. + */ + // @ts-ignore + public destroy(): void; + /** + * Determines if password has been cleared. + */ + // @ts-ignore + public isDestroyed(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.KeyStore.PrivateKeyEntry.d.ts b/packages/types/dist/typings/jdk/java.security.KeyStore.PrivateKeyEntry.d.ts new file mode 100644 index 00000000..684b2901 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.KeyStore.PrivateKeyEntry.d.ts @@ -0,0 +1,54 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace KeyStore { + // @ts-ignore + class PrivateKeyEntry extends java.lang.Object { + /** + * Constructs a {@code PrivateKeyEntry} with a + * {@code PrivateKey} and corresponding certificate chain. + *

The specified {@code chain} is cloned before it is stored + * in the new {@code PrivateKeyEntry} object. + */ + // @ts-ignore + constructor(privateKey: java.security.PrivateKey, chain: java.security.cert.Certificate) + /** + * Constructs a {@code PrivateKeyEntry} with a {@code PrivateKey} and + * corresponding certificate chain and associated entry attributes. + *

The specified {@code chain} and {@code attributes} are cloned + * before they are stored in the new {@code PrivateKeyEntry} object. + */ + // @ts-ignore + constructor(privateKey: java.security.PrivateKey, chain: java.security.cert.Certificate, attributes: java.util.Set) + /** + * Gets the {@code PrivateKey} from this entry. + */ + // @ts-ignore + public getPrivateKey(): java.security.PrivateKey; + /** + * Gets the {@code Certificate} chain from this entry. + *

The stored chain is cloned before being returned. + */ + // @ts-ignore + public getCertificateChain(): java.security.cert.Certificate[]; + /** + * Gets the end entity {@code Certificate} + * from the certificate chain in this entry. + */ + // @ts-ignore + public getCertificate(): java.security.cert.Certificate; + /** + * Retrieves the attributes associated with an entry. + *

+ */ + // @ts-ignore + public getAttributes(): java.util.Set; + /** + * Returns a string representation of this PrivateKeyEntry. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.KeyStore.ProtectionParameter.d.ts b/packages/types/dist/typings/jdk/java.security.KeyStore.ProtectionParameter.d.ts new file mode 100644 index 00000000..9ebd95f4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.KeyStore.ProtectionParameter.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace KeyStore { + // @ts-ignore + interface ProtectionParameter { + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.KeyStore.SecretKeyEntry.d.ts b/packages/types/dist/typings/jdk/java.security.KeyStore.SecretKeyEntry.d.ts new file mode 100644 index 00000000..b2326b1b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.KeyStore.SecretKeyEntry.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace KeyStore { + // @ts-ignore + class SecretKeyEntry extends java.lang.Object { + /** + * Constructs a {@code SecretKeyEntry} with a + * {@code SecretKey}. + */ + // @ts-ignore + constructor(secretKey: any /*javax.crypto.SecretKey*/) + /** + * Constructs a {@code SecretKeyEntry} with a {@code SecretKey} and + * associated entry attributes. + *

The specified {@code attributes} is cloned before it is stored + * in the new {@code SecretKeyEntry} object. + */ + // @ts-ignore + constructor(secretKey: any /*javax.crypto.SecretKey*/, attributes: java.util.Set) + /** + * Gets the {@code SecretKey} from this entry. + */ + // @ts-ignore + public getSecretKey(): any /*javax.crypto.SecretKey*/; + /** + * Retrieves the attributes associated with an entry. + *

+ */ + // @ts-ignore + public getAttributes(): java.util.Set; + /** + * Returns a string representation of this SecretKeyEntry. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.KeyStore.TrustedCertificateEntry.d.ts b/packages/types/dist/typings/jdk/java.security.KeyStore.TrustedCertificateEntry.d.ts new file mode 100644 index 00000000..04bdc8be --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.KeyStore.TrustedCertificateEntry.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace KeyStore { + // @ts-ignore + class TrustedCertificateEntry extends java.lang.Object { + /** + * Constructs a {@code TrustedCertificateEntry} with a + * trusted {@code Certificate}. + */ + // @ts-ignore + constructor(trustedCert: java.security.cert.Certificate) + /** + * Constructs a {@code TrustedCertificateEntry} with a + * trusted {@code Certificate} and associated entry attributes. + *

The specified {@code attributes} is cloned before it is stored + * in the new {@code TrustedCertificateEntry} object. + */ + // @ts-ignore + constructor(trustedCert: java.security.cert.Certificate, attributes: java.util.Set) + /** + * Gets the trusted {@code Certficate} from this entry. + */ + // @ts-ignore + public getTrustedCertificate(): java.security.cert.Certificate; + /** + * Retrieves the attributes associated with an entry. + *

+ */ + // @ts-ignore + public getAttributes(): java.util.Set; + /** + * Returns a string representation of this TrustedCertificateEntry. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.KeyStore.d.ts b/packages/types/dist/typings/jdk/java.security.KeyStore.d.ts new file mode 100644 index 00000000..e116de05 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.KeyStore.d.ts @@ -0,0 +1,256 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class KeyStore extends java.lang.Object { + /** + * Creates a KeyStore object of the given type, and encapsulates the given + * provider implementation (SPI object) in it. + */ + // @ts-ignore + constructor(keyStoreSpi: java.security.KeyStoreSpi, provider: java.security.Provider, type: string) + /** + * Returns a keystore object of the specified type. + *

This method traverses the list of registered security Providers, + * starting with the most preferred Provider. + * A new KeyStore object encapsulating the + * KeyStoreSpi implementation from the first + * Provider that supports the specified type is returned. + *

Note that the list of registered providers may be retrieved via + * the {@link Security#getProviders() Security.getProviders()} method. + */ + // @ts-ignore + public static getInstance(type: string): java.security.KeyStore; + /** + * Returns a keystore object of the specified type. + *

A new KeyStore object encapsulating the + * KeyStoreSpi implementation from the specified provider + * is returned. The specified provider must be registered + * in the security provider list. + *

Note that the list of registered providers may be retrieved via + * the {@link Security#getProviders() Security.getProviders()} method. + */ + // @ts-ignore + public static getInstance(type: string, provider: string): java.security.KeyStore; + /** + * Returns a keystore object of the specified type. + *

A new KeyStore object encapsulating the + * KeyStoreSpi implementation from the specified Provider + * object is returned. Note that the specified Provider object + * does not have to be registered in the provider list. + */ + // @ts-ignore + public static getInstance(type: string, provider: java.security.Provider): java.security.KeyStore; + /** + * Returns the default keystore type as specified by the + * {@code keystore.type} security property, or the string + * {@literal "jks"} (acronym for {@literal "Java keystore"}) + * if no such property exists. + *

The default keystore type can be used by applications that do not + * want to use a hard-coded keystore type when calling one of the + * {@code getInstance} methods, and want to provide a default keystore + * type in case a user does not specify its own. + *

The default keystore type can be changed by setting the value of the + * {@code keystore.type} security property to the desired keystore type. + */ + // @ts-ignore + public static getDefaultType(): string; + /** + * Returns the provider of this keystore. + */ + // @ts-ignore + public getProvider(): java.security.Provider; + /** + * Returns the type of this keystore. + */ + // @ts-ignore + public getType(): string; + /** + * Returns the key associated with the given alias, using the given + * password to recover it. The key must have been associated with + * the alias by a call to {@code setKeyEntry}, + * or by a call to {@code setEntry} with a + * {@code PrivateKeyEntry} or {@code SecretKeyEntry}. + */ + // @ts-ignore + public getKey(alias: string, password: string): java.security.Key; + /** + * Returns the certificate chain associated with the given alias. + * The certificate chain must have been associated with the alias + * by a call to {@code setKeyEntry}, + * or by a call to {@code setEntry} with a + * {@code PrivateKeyEntry}. + */ + // @ts-ignore + public getCertificateChain(alias: string): java.security.cert.Certificate[]; + /** + * Returns the certificate associated with the given alias. + *

If the given alias name identifies an entry + * created by a call to {@code setCertificateEntry}, + * or created by a call to {@code setEntry} with a + * {@code TrustedCertificateEntry}, + * then the trusted certificate contained in that entry is returned. + *

If the given alias name identifies an entry + * created by a call to {@code setKeyEntry}, + * or created by a call to {@code setEntry} with a + * {@code PrivateKeyEntry}, + * then the first element of the certificate chain in that entry + * is returned. + */ + // @ts-ignore + public getCertificate(alias: string): java.security.cert.Certificate; + /** + * Returns the creation date of the entry identified by the given alias. + */ + // @ts-ignore + public getCreationDate(alias: string): java.util.Date; + /** + * Assigns the given key to the given alias, protecting it with the given + * password. + *

If the given key is of type {@code java.security.PrivateKey}, + * it must be accompanied by a certificate chain certifying the + * corresponding public key. + *

If the given alias already exists, the keystore information + * associated with it is overridden by the given key (and possibly + * certificate chain). + */ + // @ts-ignore + public setKeyEntry(alias: string, key: java.security.Key, password: string, chain: java.security.cert.Certificate): void; + /** + * Assigns the given key (that has already been protected) to the given + * alias. + *

If the protected key is of type + * {@code java.security.PrivateKey}, it must be accompanied by a + * certificate chain certifying the corresponding public key. If the + * underlying keystore implementation is of type {@code jks}, + * {@code key} must be encoded as an + * {@code EncryptedPrivateKeyInfo} as defined in the PKCS #8 standard. + *

If the given alias already exists, the keystore information + * associated with it is overridden by the given key (and possibly + * certificate chain). + */ + // @ts-ignore + public setKeyEntry(alias: string, key: number, chain: java.security.cert.Certificate): void; + /** + * Assigns the given trusted certificate to the given alias. + *

If the given alias identifies an existing entry + * created by a call to {@code setCertificateEntry}, + * or created by a call to {@code setEntry} with a + * {@code TrustedCertificateEntry}, + * the trusted certificate in the existing entry + * is overridden by the given certificate. + */ + // @ts-ignore + public setCertificateEntry(alias: string, cert: java.security.cert.Certificate): void; + /** + * Deletes the entry identified by the given alias from this keystore. + */ + // @ts-ignore + public deleteEntry(alias: string): void; + /** + * Lists all the alias names of this keystore. + */ + // @ts-ignore + public aliases(): java.util.Enumeration; + /** + * Checks if the given alias exists in this keystore. + */ + // @ts-ignore + public containsAlias(alias: string): boolean; + /** + * Retrieves the number of entries in this keystore. + */ + // @ts-ignore + public size(): number; + /** + * Returns true if the entry identified by the given alias + * was created by a call to {@code setKeyEntry}, + * or created by a call to {@code setEntry} with a + * {@code PrivateKeyEntry} or a {@code SecretKeyEntry}. + */ + // @ts-ignore + public isKeyEntry(alias: string): boolean; + /** + * Returns true if the entry identified by the given alias + * was created by a call to {@code setCertificateEntry}, + * or created by a call to {@code setEntry} with a + * {@code TrustedCertificateEntry}. + */ + // @ts-ignore + public isCertificateEntry(alias: string): boolean; + /** + * Returns the (alias) name of the first keystore entry whose certificate + * matches the given certificate. + *

This method attempts to match the given certificate with each + * keystore entry. If the entry being considered was + * created by a call to {@code setCertificateEntry}, + * or created by a call to {@code setEntry} with a + * {@code TrustedCertificateEntry}, + * then the given certificate is compared to that entry's certificate. + *

If the entry being considered was + * created by a call to {@code setKeyEntry}, + * or created by a call to {@code setEntry} with a + * {@code PrivateKeyEntry}, + * then the given certificate is compared to the first + * element of that entry's certificate chain. + */ + // @ts-ignore + public getCertificateAlias(cert: java.security.cert.Certificate): string; + /** + * Stores this keystore to the given output stream, and protects its + * integrity with the given password. + */ + // @ts-ignore + public store(stream: java.io.OutputStream, password: string): void; + /** + * Stores this keystore using the given {@code LoadStoreParameter}. + */ + // @ts-ignore + public store(param: java.security.KeyStore.LoadStoreParameter): void; + /** + * Loads this KeyStore from the given input stream. + *

A password may be given to unlock the keystore + * (e.g. the keystore resides on a hardware token device), + * or to check the integrity of the keystore data. + * If a password is not given for integrity checking, + * then integrity checking is not performed. + *

In order to create an empty keystore, or if the keystore cannot + * be initialized from a stream, pass {@code null} + * as the {@code stream} argument. + *

Note that if this keystore has already been loaded, it is + * reinitialized and loaded again from the given input stream. + */ + // @ts-ignore + public load(stream: java.io.InputStream, password: string): void; + /** + * Loads this keystore using the given {@code LoadStoreParameter}. + *

Note that if this KeyStore has already been loaded, it is + * reinitialized and loaded again from the given parameter. + */ + // @ts-ignore + public load(param: java.security.KeyStore.LoadStoreParameter): void; + /** + * Gets a keystore {@code Entry} for the specified alias + * with the specified protection parameter. + */ + // @ts-ignore + public getEntry(alias: string, protParam: java.security.KeyStore.ProtectionParameter): java.security.KeyStore.Entry; + /** + * Saves a keystore {@code Entry} under the specified alias. + * The protection parameter is used to protect the + * {@code Entry}. + *

If an entry already exists for the specified alias, + * it is overridden. + */ + // @ts-ignore + public setEntry(alias: string, entry: java.security.KeyStore.Entry, protParam: java.security.KeyStore.ProtectionParameter): void; + /** + * Determines if the keystore {@code Entry} for the specified + * {@code alias} is an instance or subclass of the specified + * {@code entryClass}. + */ + // @ts-ignore + public entryInstanceOf(alias: string, entryClass: java.lang.Class): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.KeyStoreException.d.ts b/packages/types/dist/typings/jdk/java.security.KeyStoreException.d.ts new file mode 100644 index 00000000..bb7cd199 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.KeyStoreException.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class KeyStoreException extends java.security.GeneralSecurityException { + /** + * Constructs a KeyStoreException with no detail message. (A + * detail message is a String that describes this particular + * exception.) + */ + // @ts-ignore + constructor() + /** + * Constructs a KeyStoreException with the specified detail + * message. (A detail message is a String that describes this + * particular exception.) + */ + // @ts-ignore + constructor(msg: string) + /** + * Creates a {@code KeyStoreException} with the specified + * detail message and cause. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Creates a {@code KeyStoreException} with the specified cause + * and a detail message of {@code (cause==null ? null : cause.toString())} + * (which typically contains the class and detail message of + * {@code cause}). + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.KeyStoreSpi.d.ts b/packages/types/dist/typings/jdk/java.security.KeyStoreSpi.d.ts new file mode 100644 index 00000000..dc0abef6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.KeyStoreSpi.d.ts @@ -0,0 +1,178 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + abstract class KeyStoreSpi extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Returns the key associated with the given alias, using the given + * password to recover it. The key must have been associated with + * the alias by a call to {@code setKeyEntry}, + * or by a call to {@code setEntry} with a + * {@code PrivateKeyEntry} or {@code SecretKeyEntry}. + */ + // @ts-ignore + public abstract engineGetKey(alias: string, password: string): java.security.Key; + /** + * Returns the certificate chain associated with the given alias. + * The certificate chain must have been associated with the alias + * by a call to {@code setKeyEntry}, + * or by a call to {@code setEntry} with a + * {@code PrivateKeyEntry}. + */ + // @ts-ignore + public abstract engineGetCertificateChain(alias: string): java.security.cert.Certificate[]; + /** + * Returns the certificate associated with the given alias. + *

If the given alias name identifies an entry + * created by a call to {@code setCertificateEntry}, + * or created by a call to {@code setEntry} with a + * {@code TrustedCertificateEntry}, + * then the trusted certificate contained in that entry is returned. + *

If the given alias name identifies an entry + * created by a call to {@code setKeyEntry}, + * or created by a call to {@code setEntry} with a + * {@code PrivateKeyEntry}, + * then the first element of the certificate chain in that entry + * (if a chain exists) is returned. + */ + // @ts-ignore + public abstract engineGetCertificate(alias: string): java.security.cert.Certificate; + /** + * Returns the creation date of the entry identified by the given alias. + */ + // @ts-ignore + public abstract engineGetCreationDate(alias: string): java.util.Date; + /** + * Assigns the given key to the given alias, protecting it with the given + * password. + *

If the given key is of type {@code java.security.PrivateKey}, + * it must be accompanied by a certificate chain certifying the + * corresponding public key. + *

If the given alias already exists, the keystore information + * associated with it is overridden by the given key (and possibly + * certificate chain). + */ + // @ts-ignore + public abstract engineSetKeyEntry(alias: string, key: java.security.Key, password: string, chain: java.security.cert.Certificate): void; + /** + * Assigns the given certificate to the given alias. + *

If the given alias identifies an existing entry + * created by a call to {@code setCertificateEntry}, + * or created by a call to {@code setEntry} with a + * {@code TrustedCertificateEntry}, + * the trusted certificate in the existing entry + * is overridden by the given certificate. + */ + // @ts-ignore + public abstract engineSetCertificateEntry(alias: string, cert: java.security.cert.Certificate): void; + /** + * Deletes the entry identified by the given alias from this keystore. + */ + // @ts-ignore + public abstract engineDeleteEntry(alias: string): void; + /** + * Lists all the alias names of this keystore. + */ + // @ts-ignore + public abstract engineAliases(): java.util.Enumeration; + /** + * Checks if the given alias exists in this keystore. + */ + // @ts-ignore + public abstract engineContainsAlias(alias: string): boolean; + /** + * Retrieves the number of entries in this keystore. + */ + // @ts-ignore + public abstract engineSize(): number; + /** + * Returns true if the entry identified by the given alias + * was created by a call to {@code setKeyEntry}, + * or created by a call to {@code setEntry} with a + * {@code PrivateKeyEntry} or a {@code SecretKeyEntry}. + */ + // @ts-ignore + public abstract engineIsKeyEntry(alias: string): boolean; + /** + * Returns true if the entry identified by the given alias + * was created by a call to {@code setCertificateEntry}, + * or created by a call to {@code setEntry} with a + * {@code TrustedCertificateEntry}. + */ + // @ts-ignore + public abstract engineIsCertificateEntry(alias: string): boolean; + /** + * Returns the (alias) name of the first keystore entry whose certificate + * matches the given certificate. + *

This method attempts to match the given certificate with each + * keystore entry. If the entry being considered was + * created by a call to {@code setCertificateEntry}, + * or created by a call to {@code setEntry} with a + * {@code TrustedCertificateEntry}, + * then the given certificate is compared to that entry's certificate. + *

If the entry being considered was + * created by a call to {@code setKeyEntry}, + * or created by a call to {@code setEntry} with a + * {@code PrivateKeyEntry}, + * then the given certificate is compared to the first + * element of that entry's certificate chain. + */ + // @ts-ignore + public abstract engineGetCertificateAlias(cert: java.security.cert.Certificate): string; + /** + * Stores this keystore to the given output stream, and protects its + * integrity with the given password. + */ + // @ts-ignore + public abstract engineStore(stream: java.io.OutputStream, password: string): void; + /** + * Stores this keystore using the given + * {@code KeyStore.LoadStoreParmeter}. + */ + // @ts-ignore + public engineStore(param: java.security.KeyStore.LoadStoreParameter): void; + /** + * Loads the keystore from the given input stream. + *

A password may be given to unlock the keystore + * (e.g. the keystore resides on a hardware token device), + * or to check the integrity of the keystore data. + * If a password is not given for integrity checking, + * then integrity checking is not performed. + */ + // @ts-ignore + public abstract engineLoad(stream: java.io.InputStream, password: string): void; + /** + * Loads the keystore using the given + * {@code KeyStore.LoadStoreParameter}. + *

Note that if this KeyStore has already been loaded, it is + * reinitialized and loaded again from the given parameter. + */ + // @ts-ignore + public engineLoad(param: java.security.KeyStore.LoadStoreParameter): void; + /** + * Gets a {@code KeyStore.Entry} for the specified alias + * with the specified protection parameter. + */ + // @ts-ignore + public engineGetEntry(alias: string, protParam: java.security.KeyStore.ProtectionParameter): java.security.KeyStore.Entry; + /** + * Saves a {@code KeyStore.Entry} under the specified alias. + * The specified protection parameter is used to protect the + * {@code Entry}. + *

If an entry already exists for the specified alias, + * it is overridden. + */ + // @ts-ignore + public engineSetEntry(alias: string, entry: java.security.KeyStore.Entry, protParam: java.security.KeyStore.ProtectionParameter): void; + /** + * Determines if the keystore {@code Entry} for the specified + * {@code alias} is an instance or subclass of the specified + * {@code entryClass}. + */ + // @ts-ignore + public engineEntryInstanceOf(alias: string, entryClass: java.lang.Class): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.MessageDigest.d.ts b/packages/types/dist/typings/jdk/java.security.MessageDigest.d.ts new file mode 100644 index 00000000..86b082c2 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.MessageDigest.d.ts @@ -0,0 +1,136 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + abstract class MessageDigest extends java.security.MessageDigestSpi { + /** + * Creates a message digest with the specified algorithm name. + */ + // @ts-ignore + constructor(algorithm: string) + /** + * Returns a MessageDigest object that implements the specified digest + * algorithm. + *

This method traverses the list of registered security Providers, + * starting with the most preferred Provider. + * A new MessageDigest object encapsulating the + * MessageDigestSpi implementation from the first + * Provider that supports the specified algorithm is returned. + *

Note that the list of registered providers may be retrieved via + * the {@link Security#getProviders() Security.getProviders()} method. + */ + // @ts-ignore + public static getInstance(algorithm: string): java.security.MessageDigest; + /** + * Returns a MessageDigest object that implements the specified digest + * algorithm. + *

A new MessageDigest object encapsulating the + * MessageDigestSpi implementation from the specified provider + * is returned. The specified provider must be registered + * in the security provider list. + *

Note that the list of registered providers may be retrieved via + * the {@link Security#getProviders() Security.getProviders()} method. + */ + // @ts-ignore + public static getInstance(algorithm: string, provider: string): java.security.MessageDigest; + /** + * Returns a MessageDigest object that implements the specified digest + * algorithm. + *

A new MessageDigest object encapsulating the + * MessageDigestSpi implementation from the specified Provider + * object is returned. Note that the specified Provider object + * does not have to be registered in the provider list. + */ + // @ts-ignore + public static getInstance(algorithm: string, provider: java.security.Provider): java.security.MessageDigest; + /** + * Returns the provider of this message digest object. + */ + // @ts-ignore + public getProvider(): java.security.Provider; + /** + * Updates the digest using the specified byte. + */ + // @ts-ignore + public update(input: number): void; + /** + * Updates the digest using the specified array of bytes, starting + * at the specified offset. + */ + // @ts-ignore + public update(input: number, offset: number, len: number): void; + /** + * Updates the digest using the specified array of bytes. + */ + // @ts-ignore + public update(input: number): void; + /** + * Update the digest using the specified ByteBuffer. The digest is + * updated using the {@code input.remaining()} bytes starting + * at {@code input.position()}. + * Upon return, the buffer's position will be equal to its limit; + * its limit will not have changed. + */ + // @ts-ignore + public update(input: java.nio.ByteBuffer): void; + /** + * Completes the hash computation by performing final operations + * such as padding. The digest is reset after this call is made. + */ + // @ts-ignore + public digest(): number[]; + /** + * Completes the hash computation by performing final operations + * such as padding. The digest is reset after this call is made. + */ + // @ts-ignore + public digest(buf: number, offset: number, len: number): number; + /** + * Performs a final update on the digest using the specified array + * of bytes, then completes the digest computation. That is, this + * method first calls {@link #update(byte[]) update(input)}, + * passing the input array to the {@code update} method, + * then calls {@link #digest() digest()}. + */ + // @ts-ignore + public digest(input: number): number[]; + /** + * Returns a string representation of this message digest object. + */ + // @ts-ignore + public toString(): string; + /** + * Compares two digests for equality. Does a simple byte compare. + */ + // @ts-ignore + public static isEqual(digesta: number, digestb: number): boolean; + /** + * Resets the digest for further use. + */ + // @ts-ignore + public reset(): void; + /** + * Returns a string that identifies the algorithm, independent of + * implementation details. The name should be a standard + * Java Security name (such as "SHA-256"). + * See the MessageDigest section in the + * Java Cryptography Architecture Standard Algorithm Name Documentation + * for information about standard algorithm names. + */ + // @ts-ignore + public getAlgorithm(): string; + /** + * Returns the length of the digest in bytes, or 0 if this operation is + * not supported by the provider and the implementation is not cloneable. + */ + // @ts-ignore + public getDigestLength(): number; + /** + * Returns a clone if the implementation is cloneable. + */ + // @ts-ignore + public clone(): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.MessageDigestSpi.d.ts b/packages/types/dist/typings/jdk/java.security.MessageDigestSpi.d.ts new file mode 100644 index 00000000..369fb60a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.MessageDigestSpi.d.ts @@ -0,0 +1,67 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + abstract class MessageDigestSpi extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Returns the digest length in bytes. + *

This concrete method has been added to this previously-defined + * abstract class. (For backwards compatibility, it cannot be abstract.) + *

The default behavior is to return 0. + *

This method may be overridden by a provider to return the digest + * length. + */ + // @ts-ignore + protected engineGetDigestLength(): number; + /** + * Updates the digest using the specified byte. + */ + // @ts-ignore + protected abstract engineUpdate(input: number): void; + /** + * Update the digest using the specified ByteBuffer. The digest is + * updated using the {@code input.remaining()} bytes starting + * at {@code input.position()}. + * Upon return, the buffer's position will be equal to its limit; + * its limit will not have changed. + */ + // @ts-ignore + protected engineUpdate(input: java.nio.ByteBuffer): void; + /** + * Completes the hash computation by performing final + * operations such as padding. Once {@code engineDigest} has + * been called, the engine should be reset (see + * {@link #engineReset() engineReset}). + * Resetting is the responsibility of the + * engine implementor. + */ + // @ts-ignore + protected abstract engineDigest(): number[]; + /** + * Completes the hash computation by performing final + * operations such as padding. Once {@code engineDigest} has + * been called, the engine should be reset (see + * {@link #engineReset() engineReset}). + * Resetting is the responsibility of the + * engine implementor. + * This method should be abstract, but we leave it concrete for + * binary compatibility. Knowledgeable providers should override this + * method. + */ + // @ts-ignore + protected engineDigest(buf: number, offset: number, len: number): number; + /** + * Resets the digest for further use. + */ + // @ts-ignore + protected abstract engineReset(): void; + /** + * Returns a clone if the implementation is cloneable. + */ + // @ts-ignore + public clone(): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.NoSuchAlgorithmException.d.ts b/packages/types/dist/typings/jdk/java.security.NoSuchAlgorithmException.d.ts new file mode 100644 index 00000000..2dc7ae43 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.NoSuchAlgorithmException.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class NoSuchAlgorithmException extends java.security.GeneralSecurityException { + /** + * Constructs a NoSuchAlgorithmException with no detail + * message. A detail message is a String that describes this + * particular exception. + */ + // @ts-ignore + constructor() + /** + * Constructs a NoSuchAlgorithmException with the specified + * detail message. A detail message is a String that describes + * this particular exception, which may, for example, specify which + * algorithm is not available. + */ + // @ts-ignore + constructor(msg: string) + /** + * Creates a {@code NoSuchAlgorithmException} with the specified + * detail message and cause. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Creates a {@code NoSuchAlgorithmException} with the specified cause + * and a detail message of {@code (cause==null ? null : cause.toString())} + * (which typically contains the class and detail message of + * {@code cause}). + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.NoSuchProviderException.d.ts b/packages/types/dist/typings/jdk/java.security.NoSuchProviderException.d.ts new file mode 100644 index 00000000..ff56409e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.NoSuchProviderException.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class NoSuchProviderException extends java.security.GeneralSecurityException { + /** + * Constructs a NoSuchProviderException with no detail message. A + * detail message is a String that describes this particular + * exception. + */ + // @ts-ignore + constructor() + /** + * Constructs a NoSuchProviderException with the specified detail + * message. A detail message is a String that describes this + * particular exception. + */ + // @ts-ignore + constructor(msg: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.PKCS12Attribute.d.ts b/packages/types/dist/typings/jdk/java.security.PKCS12Attribute.d.ts new file mode 100644 index 00000000..611d7be5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.PKCS12Attribute.d.ts @@ -0,0 +1,88 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class PKCS12Attribute extends java.lang.Object { + /** + * Constructs a PKCS12 attribute from its name and value. + * The name is an ASN.1 Object Identifier represented as a list of + * dot-separated integers. + * A string value is represented as the string itself. + * A binary value is represented as a string of colon-separated + * pairs of hexadecimal digits. + * Multi-valued attributes are represented as a comma-separated + * list of values, enclosed in square brackets. See + * {@link Arrays#toString(java.lang.Object[])}. + *

+ * A string value will be DER-encoded as an ASN.1 UTF8String and a + * binary value will be DER-encoded as an ASN.1 Octet String. + */ + // @ts-ignore + constructor(name: string, value: string) + /** + * Constructs a PKCS12 attribute from its ASN.1 DER encoding. + * The DER encoding is specified by the following ASN.1 definition: + *

+             * Attribute ::= SEQUENCE {
+             * type   AttributeType,
+             * values SET OF AttributeValue
+             * }
+             * AttributeType ::= OBJECT IDENTIFIER
+             * AttributeValue ::= ANY defined by type
+             * 
+ */ + // @ts-ignore + constructor(encoded: number) + /** + * Returns the attribute's ASN.1 Object Identifier represented as a + * list of dot-separated integers. + */ + // @ts-ignore + public getName(): string; + /** + * Returns the attribute's ASN.1 DER-encoded value as a string. + * An ASN.1 DER-encoded value is returned in one of the following + * {@code String} formats: + *
    + *
  • the DER encoding of a basic ASN.1 type that has a natural + * string representation is returned as the string itself. + * Such types are currently limited to BOOLEAN, INTEGER, + * OBJECT IDENTIFIER, UTCTime, GeneralizedTime and the + * following six ASN.1 string types: UTF8String, + * PrintableString, T61String, IA5String, BMPString and + * GeneralString. + *
  • the DER encoding of any other ASN.1 type is not decoded but + * returned as a binary string of colon-separated pairs of + * hexadecimal digits. + *
+ * Multi-valued attributes are represented as a comma-separated + * list of values, enclosed in square brackets. See + * {@link Arrays#toString(java.lang.Object[])}. + */ + // @ts-ignore + public getValue(): string; + /** + * Returns the attribute's ASN.1 DER encoding. + */ + // @ts-ignore + public getEncoded(): number[]; + /** + * Compares this {@code PKCS12Attribute} and a specified object for + * equality. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns the hashcode for this {@code PKCS12Attribute}. + * The hash code is computed from its DER encoding. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns a string representation of this {@code PKCS12Attribute}. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.Permission.d.ts b/packages/types/dist/typings/jdk/java.security.Permission.d.ts new file mode 100644 index 00000000..96aca354 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.Permission.d.ts @@ -0,0 +1,106 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + abstract class Permission extends java.lang.Object { + /** + * Constructs a permission with the specified name. + */ + // @ts-ignore + constructor(name: string) + /** + * Implements the guard interface for a permission. The + * {@code SecurityManager.checkPermission} method is called, + * passing this permission object as the permission to check. + * Returns silently if access is granted. Otherwise, throws + * a SecurityException. + */ + // @ts-ignore + public checkGuard(object: java.lang.Object): void; + /** + * Checks if the specified permission's actions are "implied by" + * this object's actions. + *

+ * This must be implemented by subclasses of Permission, as they are the + * only ones that can impose semantics on a Permission object. + *

The {@code implies} method is used by the AccessController to determine + * whether or not a requested permission is implied by another permission that + * is known to be valid in the current execution context. + */ + // @ts-ignore + public abstract implies(permission: java.security.Permission): boolean; + /** + * Checks two Permission objects for equality. + *

+ * Do not use the {@code equals} method for making access control + * decisions; use the {@code implies} method. + */ + // @ts-ignore + public abstract equals(obj: java.lang.Object): boolean; + /** + * Returns the hash code value for this Permission object. + *

+ * The required {@code hashCode} behavior for Permission Objects is + * the following: + *

    + *
  • Whenever it is invoked on the same Permission object more than + * once during an execution of a Java application, the + * {@code hashCode} method + * must consistently return the same integer. This integer need not + * remain consistent from one execution of an application to another + * execution of the same application. + *
  • If two Permission objects are equal according to the + * {@code equals} + * method, then calling the {@code hashCode} method on each of the + * two Permission objects must produce the same integer result. + *
+ */ + // @ts-ignore + public abstract hashCode(): number; + /** + * Returns the name of this Permission. + * For example, in the case of a {@code java.io.FilePermission}, + * the name will be a pathname. + */ + // @ts-ignore + public getName(): string; + /** + * Returns the actions as a String. This is abstract + * so subclasses can defer creating a String representation until + * one is needed. Subclasses should always return actions in what they + * consider to be their + * canonical form. For example, two FilePermission objects created via + * the following: + *
+             * perm1 = new FilePermission(p1,"read,write");
+             * perm2 = new FilePermission(p2,"write,read");
+             * 
+ * both return + * "read,write" when the {@code getActions} method is invoked. + */ + // @ts-ignore + public abstract getActions(): string; + /** + * Returns an empty PermissionCollection for a given Permission object, or null if + * one is not defined. Subclasses of class Permission should + * override this if they need to store their permissions in a particular + * PermissionCollection object in order to provide the correct semantics + * when the {@code PermissionCollection.implies} method is called. + * If null is returned, + * then the caller of this method is free to store permissions of this + * type in any PermissionCollection they choose (one that uses a Hashtable, + * one that uses a Vector, etc). + */ + // @ts-ignore + public newPermissionCollection(): java.security.PermissionCollection; + /** + * Returns a string describing this Permission. The convention is to + * specify the class name, the permission name, and the actions in + * the following format: '("ClassName" "name" "actions")', or + * '("ClassName" "name")' if actions list is null or empty. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.PermissionCollection.d.ts b/packages/types/dist/typings/jdk/java.security.PermissionCollection.d.ts new file mode 100644 index 00000000..008b1871 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.PermissionCollection.d.ts @@ -0,0 +1,62 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + abstract class PermissionCollection extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Adds a permission object to the current collection of permission objects. + */ + // @ts-ignore + public abstract add(permission: java.security.Permission): void; + /** + * Checks to see if the specified permission is implied by + * the collection of Permission objects held in this PermissionCollection. + */ + // @ts-ignore + public abstract implies(permission: java.security.Permission): boolean; + /** + * Returns an enumeration of all the Permission objects in the collection. + */ + // @ts-ignore + public abstract elements(): java.util.Enumeration; + /** + * Marks this PermissionCollection object as "readonly". After + * a PermissionCollection object + * is marked as readonly, no new Permission objects can be added to it + * using {@code add}. + */ + // @ts-ignore + public setReadOnly(): void; + /** + * Returns true if this PermissionCollection object is marked as readonly. + * If it is readonly, no new Permission objects can be added to it + * using {@code add}. + *

By default, the object is not readonly. It can be set to + * readonly by a call to {@code setReadOnly}. + */ + // @ts-ignore + public isReadOnly(): boolean; + /** + * Returns a string describing this PermissionCollection object, + * providing information about all the permissions it contains. + * The format is: + *

+             * super.toString() (
+             * // enumerate all the Permission
+             * // objects and call toString() on them,
+             * // one per line..
+             * )
+ * {@code super.toString} is a call to the {@code toString} + * method of this + * object's superclass, which is Object. The result is + * this PermissionCollection's type name followed by this object's + * hashcode, thus enabling clients to differentiate different + * PermissionCollections object, even if they contain the same permissions. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.Permissions.d.ts b/packages/types/dist/typings/jdk/java.security.Permissions.d.ts new file mode 100644 index 00000000..4ad2d255 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.Permissions.d.ts @@ -0,0 +1,52 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class Permissions extends java.security.PermissionCollection { + /** + * Creates a new Permissions object containing no PermissionCollections. + */ + // @ts-ignore + constructor() + /** + * Adds a permission object to the PermissionCollection for the class the + * permission belongs to. For example, if permission is a + * FilePermission, it is added to the FilePermissionCollection stored + * in this Permissions object. + * This method creates + * a new PermissionCollection object (and adds the permission to it) + * if an appropriate collection does not yet exist.

+ */ + // @ts-ignore + public add(permission: java.security.Permission): void; + /** + * Checks to see if this object's PermissionCollection for permissions of + * the specified permission's class implies the permissions + * expressed in the permission object. Returns true if the + * combination of permissions in the appropriate PermissionCollection + * (e.g., a FilePermissionCollection for a FilePermission) together + * imply the specified permission. + *

For example, suppose there is a FilePermissionCollection in this + * Permissions object, and it contains one FilePermission that specifies + * "read" access for all files in all subdirectories of the "/tmp" + * directory, and another FilePermission that specifies "write" access + * for all files in the "/tmp/scratch/foo" directory. + * Then if the {@code implies} method + * is called with a permission specifying both "read" and "write" access + * to files in the "/tmp/scratch/foo" directory, {@code true} is + * returned. + *

Additionally, if this PermissionCollection contains the + * AllPermission, this method will always return true. + *

+ */ + // @ts-ignore + public implies(permission: java.security.Permission): boolean; + /** + * Returns an enumeration of all the Permission objects in all the + * PermissionCollections in this Permissions object. + */ + // @ts-ignore + public elements(): java.util.Enumeration; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.Policy.Parameters.d.ts b/packages/types/dist/typings/jdk/java.security.Policy.Parameters.d.ts new file mode 100644 index 00000000..c82fb2da --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.Policy.Parameters.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace Policy { + // @ts-ignore + interface Parameters { + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.Policy.d.ts b/packages/types/dist/typings/jdk/java.security.Policy.d.ts new file mode 100644 index 00000000..2cf70cd8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.Policy.d.ts @@ -0,0 +1,140 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + abstract class Policy extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static UNSUPPORTED_EMPTY_COLLECTION: java.security.PermissionCollection; + /** + * Returns the installed Policy object. This value should not be cached, + * as it may be changed by a call to {@code setPolicy}. + * This method first calls + * {@code SecurityManager.checkPermission} with a + * {@code SecurityPermission("getPolicy")} permission + * to ensure it's ok to get the Policy object. + */ + // @ts-ignore + public static getPolicy(): java.security.Policy; + /** + * Sets the system-wide Policy object. This method first calls + * {@code SecurityManager.checkPermission} with a + * {@code SecurityPermission("setPolicy")} + * permission to ensure it's ok to set the Policy. + */ + // @ts-ignore + public static setPolicy(p: java.security.Policy): void; + /** + * Returns a Policy object of the specified type. + *

This method traverses the list of registered security providers, + * starting with the most preferred Provider. + * A new Policy object encapsulating the + * PolicySpi implementation from the first + * Provider that supports the specified type is returned. + *

Note that the list of registered providers may be retrieved via + * the {@link Security#getProviders() Security.getProviders()} method. + */ + // @ts-ignore + public static getInstance(type: string, params: java.security.Policy.Parameters): java.security.Policy; + /** + * Returns a Policy object of the specified type. + *

A new Policy object encapsulating the + * PolicySpi implementation from the specified provider + * is returned. The specified provider must be registered + * in the provider list. + *

Note that the list of registered providers may be retrieved via + * the {@link Security#getProviders() Security.getProviders()} method. + */ + // @ts-ignore + public static getInstance(type: string, params: java.security.Policy.Parameters, provider: string): java.security.Policy; + /** + * Returns a Policy object of the specified type. + *

A new Policy object encapsulating the + * PolicySpi implementation from the specified Provider + * object is returned. Note that the specified Provider object + * does not have to be registered in the provider list. + */ + // @ts-ignore + public static getInstance(type: string, params: java.security.Policy.Parameters, provider: java.security.Provider): java.security.Policy; + /** + * Return the Provider of this Policy. + *

This Policy instance will only have a Provider if it + * was obtained via a call to {@code Policy.getInstance}. + * Otherwise this method returns null. + */ + // @ts-ignore + public getProvider(): java.security.Provider; + /** + * Return the type of this Policy. + *

This Policy instance will only have a type if it + * was obtained via a call to {@code Policy.getInstance}. + * Otherwise this method returns null. + */ + // @ts-ignore + public getType(): string; + /** + * Return Policy parameters. + *

This Policy instance will only have parameters if it + * was obtained via a call to {@code Policy.getInstance}. + * Otherwise this method returns null. + */ + // @ts-ignore + public getParameters(): java.security.Policy.Parameters; + /** + * Return a PermissionCollection object containing the set of + * permissions granted to the specified CodeSource. + *

Applications are discouraged from calling this method + * since this operation may not be supported by all policy implementations. + * Applications should solely rely on the {@code implies} method + * to perform policy checks. If an application absolutely must call + * a getPermissions method, it should call + * {@code getPermissions(ProtectionDomain)}. + *

The default implementation of this method returns + * Policy.UNSUPPORTED_EMPTY_COLLECTION. This method can be + * overridden if the policy implementation can return a set of + * permissions granted to a CodeSource. + */ + // @ts-ignore + public getPermissions(codesource: java.security.CodeSource): java.security.PermissionCollection; + /** + * Return a PermissionCollection object containing the set of + * permissions granted to the specified ProtectionDomain. + *

Applications are discouraged from calling this method + * since this operation may not be supported by all policy implementations. + * Applications should rely on the {@code implies} method + * to perform policy checks. + *

The default implementation of this method first retrieves + * the permissions returned via {@code getPermissions(CodeSource)} + * (the CodeSource is taken from the specified ProtectionDomain), + * as well as the permissions located inside the specified ProtectionDomain. + * All of these permissions are then combined and returned in a new + * PermissionCollection object. If {@code getPermissions(CodeSource)} + * returns Policy.UNSUPPORTED_EMPTY_COLLECTION, then this method + * returns the permissions contained inside the specified ProtectionDomain + * in a new PermissionCollection object. + *

This method can be overridden if the policy implementation + * supports returning a set of permissions granted to a ProtectionDomain. + */ + // @ts-ignore + public getPermissions(domain: java.security.ProtectionDomain): java.security.PermissionCollection; + /** + * Evaluates the global policy for the permissions granted to + * the ProtectionDomain and tests whether the permission is + * granted. + */ + // @ts-ignore + public implies(domain: java.security.ProtectionDomain, permission: java.security.Permission): boolean; + /** + * Refreshes/reloads the policy configuration. The behavior of this method + * depends on the implementation. For example, calling {@code refresh} + * on a file-based policy will cause the file to be re-read. + *

The default implementation of this method does nothing. + * This method should be overridden if a refresh operation is supported + * by the policy implementation. + */ + // @ts-ignore + public refresh(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.PolicySpi.d.ts b/packages/types/dist/typings/jdk/java.security.PolicySpi.d.ts new file mode 100644 index 00000000..044a88d0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.PolicySpi.d.ts @@ -0,0 +1,45 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + abstract class PolicySpi extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Check whether the policy has granted a Permission to a ProtectionDomain. + */ + // @ts-ignore + protected abstract engineImplies(domain: java.security.ProtectionDomain, permission: java.security.Permission): boolean; + /** + * Refreshes/reloads the policy configuration. The behavior of this method + * depends on the implementation. For example, calling {@code refresh} + * on a file-based policy will cause the file to be re-read. + *

The default implementation of this method does nothing. + * This method should be overridden if a refresh operation is supported + * by the policy implementation. + */ + // @ts-ignore + protected engineRefresh(): void; + /** + * Return a PermissionCollection object containing the set of + * permissions granted to the specified CodeSource. + *

The default implementation of this method returns + * Policy.UNSUPPORTED_EMPTY_COLLECTION object. This method can be + * overridden if the policy implementation can return a set of + * permissions granted to a CodeSource. + */ + // @ts-ignore + protected engineGetPermissions(codesource: java.security.CodeSource): java.security.PermissionCollection; + /** + * Return a PermissionCollection object containing the set of + * permissions granted to the specified ProtectionDomain. + *

The default implementation of this method returns + * Policy.UNSUPPORTED_EMPTY_COLLECTION object. This method can be + * overridden if the policy implementation can return a set of + * permissions granted to a ProtectionDomain. + */ + // @ts-ignore + protected engineGetPermissions(domain: java.security.ProtectionDomain): java.security.PermissionCollection; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.Principal.d.ts b/packages/types/dist/typings/jdk/java.security.Principal.d.ts new file mode 100644 index 00000000..73e80265 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.Principal.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + interface Principal { + /** + * Compares this principal to the specified object. Returns true + * if the object passed in matches the principal represented by + * the implementation of this interface. + */ + // @ts-ignore + equals(another: java.lang.Object): boolean; + /** + * Returns a string representation of this principal. + */ + // @ts-ignore + toString(): string; + /** + * Returns a hashcode for this principal. + */ + // @ts-ignore + hashCode(): number; + /** + * Returns the name of this principal. + */ + // @ts-ignore + getName(): string; + /** + * Returns true if the specified subject is implied by this principal. + *

The default implementation of this method returns true if + * {@code subject} is non-null and contains at least one principal that + * is equal to this principal. + *

Subclasses may override this with a different implementation, if + * necessary. + */ + // @ts-ignore + implies(subject: any /*javax.security.auth.Subject*/): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.PrivateKey.d.ts b/packages/types/dist/typings/jdk/java.security.PrivateKey.d.ts new file mode 100644 index 00000000..e9fd9350 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.PrivateKey.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + interface PrivateKey { + // @ts-ignore + serialVersionUID: number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.PrivilegedAction.d.ts b/packages/types/dist/typings/jdk/java.security.PrivilegedAction.d.ts new file mode 100644 index 00000000..262c00d6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.PrivilegedAction.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + interface PrivilegedAction { + /** + * Performs the computation. This method will be called by + * {@code AccessController.doPrivileged} after enabling privileges. + */ + // @ts-ignore + run(): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.PrivilegedActionException.d.ts b/packages/types/dist/typings/jdk/java.security.PrivilegedActionException.d.ts new file mode 100644 index 00000000..372f04b1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.PrivilegedActionException.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class PrivilegedActionException extends java.lang.Exception { + /** + * Constructs a new PrivilegedActionException "wrapping" + * the specific Exception. + */ + // @ts-ignore + constructor(exception: java.lang.Exception) + /** + * Returns the exception thrown by the privileged computation that + * resulted in this {@code PrivilegedActionException}. + *

This method predates the general-purpose exception chaining facility. + * The {@link Throwable#getCause()} method is now the preferred means of + * obtaining this information. + */ + // @ts-ignore + public getException(): java.lang.Exception; + /** + * Returns the cause of this exception (the exception thrown by + * the privileged computation that resulted in this + * {@code PrivilegedActionException}). + */ + // @ts-ignore + public getCause(): java.lang.Throwable; + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.PrivilegedExceptionAction.d.ts b/packages/types/dist/typings/jdk/java.security.PrivilegedExceptionAction.d.ts new file mode 100644 index 00000000..0d9ab257 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.PrivilegedExceptionAction.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + interface PrivilegedExceptionAction { + /** + * Performs the computation. This method will be called by + * {@code AccessController.doPrivileged} after enabling privileges. + */ + // @ts-ignore + run(): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.ProtectionDomain.d.ts b/packages/types/dist/typings/jdk/java.security.ProtectionDomain.d.ts new file mode 100644 index 00000000..3e461cb5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.ProtectionDomain.d.ts @@ -0,0 +1,88 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class ProtectionDomain extends java.lang.Object { + /** + * Creates a new ProtectionDomain with the given CodeSource and + * Permissions. If the permissions object is not null, then + * {@code setReadOnly())} will be called on the passed in + * Permissions object. The only permissions granted to this domain + * are the ones specified; the current Policy will not be consulted. + */ + // @ts-ignore + constructor(codesource: java.security.CodeSource, permissions: java.security.PermissionCollection) + /** + * Creates a new ProtectionDomain qualified by the given CodeSource, + * Permissions, ClassLoader and array of Principals. If the + * permissions object is not null, then {@code setReadOnly()} + * will be called on the passed in Permissions object. + * The permissions granted to this domain are dynamic; they include + * both the static permissions passed to this constructor, and any + * permissions granted to this domain by the current Policy at the + * time a permission is checked. + *

+ * This constructor is typically used by + * {@link SecureClassLoader ClassLoaders} + * and {@link DomainCombiner DomainCombiners} which delegate to + * {@code Policy} to actively associate the permissions granted to + * this domain. This constructor affords the + * Policy provider the opportunity to augment the supplied + * PermissionCollection to reflect policy changes. + *

+ */ + // @ts-ignore + constructor(codesource: java.security.CodeSource, permissions: java.security.PermissionCollection, classloader: java.lang.ClassLoader, principals: java.security.Principal) + /** + * Returns the CodeSource of this domain. + */ + // @ts-ignore + public getCodeSource(): java.security.CodeSource; + /** + * Returns the ClassLoader of this domain. + */ + // @ts-ignore + public getClassLoader(): java.lang.ClassLoader; + /** + * Returns an array of principals for this domain. + */ + // @ts-ignore + public getPrincipals(): java.security.Principal[]; + /** + * Returns the static permissions granted to this domain. + */ + // @ts-ignore + public getPermissions(): java.security.PermissionCollection; + /** + * Check and see if this ProtectionDomain implies the permissions + * expressed in the Permission object. + *

+ * The set of permissions evaluated is a function of whether the + * ProtectionDomain was constructed with a static set of permissions + * or it was bound to a dynamically mapped set of permissions. + *

+ * If the ProtectionDomain was constructed to a + * {@link #ProtectionDomain(CodeSource, PermissionCollection) + * statically bound} PermissionCollection then the permission will + * only be checked against the PermissionCollection supplied at + * construction. + *

+ * However, if the ProtectionDomain was constructed with + * the constructor variant which supports + * {@link #ProtectionDomain(CodeSource, PermissionCollection, + * ClassLoader, java.security.Principal[]) dynamically binding} + * permissions, then the permission will be checked against the + * combination of the PermissionCollection supplied at construction and + * the current Policy binding. + *

+ */ + // @ts-ignore + public implies(permission: java.security.Permission): boolean; + /** + * Convert a ProtectionDomain to a String. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.Provider.Service.d.ts b/packages/types/dist/typings/jdk/java.security.Provider.Service.d.ts new file mode 100644 index 00000000..b9cd7c7d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.Provider.Service.d.ts @@ -0,0 +1,82 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace Provider { + // @ts-ignore + class Service extends java.lang.Object { + /** + * Construct a new service. + */ + // @ts-ignore + constructor(provider: java.security.Provider, type: string, algorithm: string, className: string, aliases: java.util.List, attributes: java.util.Map) + /** + * Get the type of this service. For example, {@code MessageDigest}. + */ + // @ts-ignore + public getType(): string; + /** + * Return the name of the algorithm of this service. For example, + * {@code SHA-1}. + */ + // @ts-ignore + public getAlgorithm(): string; + /** + * Return the Provider of this service. + */ + // @ts-ignore + public getProvider(): java.security.Provider; + /** + * Return the name of the class implementing this service. + */ + // @ts-ignore + public getClassName(): string; + /** + * Return the value of the specified attribute or null if this + * attribute is not set for this Service. + */ + // @ts-ignore + public getAttribute(name: string): string; + /** + * Return a new instance of the implementation described by this + * service. The security provider framework uses this method to + * construct implementations. Applications will typically not need + * to call it. + *

The default implementation uses reflection to invoke the + * standard constructor for this type of service. + * Security providers can override this method to implement + * instantiation in a different way. + * For details and the values of constructorParameter that are + * valid for the various types of services see the + * + * Java Cryptography Architecture API Specification & + * Reference. + */ + // @ts-ignore + public newInstance(constructorParameter: java.lang.Object): java.lang.Object; + /** + * Test whether this Service can use the specified parameter. + * Returns false if this service cannot use the parameter. Returns + * true if this service can use the parameter, if a fast test is + * infeasible, or if the status is unknown. + *

The security provider framework uses this method with + * some types of services to quickly exclude non-matching + * implementations for consideration. + * Applications will typically not need to call it. + *

For details and the values of parameter that are valid for the + * various types of services see the top of this class and the + * + * Java Cryptography Architecture API Specification & + * Reference. + * Security providers can override it to implement their own test. + */ + // @ts-ignore + public supportsParameter(parameter: java.lang.Object): boolean; + /** + * Return a String representation of this service. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.Provider.d.ts b/packages/types/dist/typings/jdk/java.security.Provider.d.ts new file mode 100644 index 00000000..45f818f9 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.Provider.d.ts @@ -0,0 +1,266 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + abstract class Provider extends java.util.Properties { + /** + * Constructs a provider with the specified name, version number, + * and information. + */ + // @ts-ignore + constructor(name: string, version: number, info: string) + /** + * Returns the name of this provider. + */ + // @ts-ignore + public getName(): string; + /** + * Returns the version number for this provider. + */ + // @ts-ignore + public getVersion(): number; + /** + * Returns a human-readable description of the provider and its + * services. This may return an HTML page, with relevant links. + */ + // @ts-ignore + public getInfo(): string; + /** + * Returns a string with the name and the version number + * of this provider. + */ + // @ts-ignore + public toString(): string; + /** + * Clears this provider so that it no longer contains the properties + * used to look up facilities implemented by the provider. + *

If a security manager is enabled, its {@code checkSecurityAccess} + * method is called with the string {@code "clearProviderProperties."+name} + * (where {@code name} is the provider name) to see if it's ok to clear + * this provider. + */ + // @ts-ignore + public clear(): void; + /** + * Reads a property list (key and element pairs) from the input stream. + */ + // @ts-ignore + public load(inStream: java.io.InputStream): void; + /** + * Copies all of the mappings from the specified Map to this provider. + * These mappings will replace any properties that this provider had + * for any of the keys currently in the specified Map. + */ + // @ts-ignore + public putAll(t: java.util.Map): void; + /** + * Returns an unmodifiable Set view of the property entries contained + * in this Provider. + */ + // @ts-ignore + public entrySet(): java.util.Set; + /** + * Returns an unmodifiable Set view of the property keys contained in + * this provider. + */ + // @ts-ignore + public keySet(): java.util.Set; + /** + * Returns an unmodifiable Collection view of the property values + * contained in this provider. + */ + // @ts-ignore + public values(): java.util.Collection; + /** + * Sets the {@code key} property to have the specified + * {@code value}. + *

If a security manager is enabled, its {@code checkSecurityAccess} + * method is called with the string {@code "putProviderProperty."+name}, + * where {@code name} is the provider name, to see if it's ok to set this + * provider's property values. + */ + // @ts-ignore + public put(key: java.lang.Object, value: java.lang.Object): java.lang.Object; + /** + * If the specified key is not already associated with a value (or is mapped + * to {@code null}) associates it with the given value and returns + * {@code null}, else returns the current value. + *

If a security manager is enabled, its {@code checkSecurityAccess} + * method is called with the string {@code "putProviderProperty."+name}, + * where {@code name} is the provider name, to see if it's ok to set this + * provider's property values. + */ + // @ts-ignore + public putIfAbsent(key: java.lang.Object, value: java.lang.Object): java.lang.Object; + /** + * Removes the {@code key} property (and its corresponding + * {@code value}). + *

If a security manager is enabled, its {@code checkSecurityAccess} + * method is called with the string {@code "removeProviderProperty."+name}, + * where {@code name} is the provider name, to see if it's ok to remove this + * provider's properties. + */ + // @ts-ignore + public remove(key: java.lang.Object): java.lang.Object; + /** + * Removes the entry for the specified key only if it is currently + * mapped to the specified value. + *

If a security manager is enabled, its {@code checkSecurityAccess} + * method is called with the string {@code "removeProviderProperty."+name}, + * where {@code name} is the provider name, to see if it's ok to remove this + * provider's properties. + */ + // @ts-ignore + public remove(key: java.lang.Object, value: java.lang.Object): boolean; + /** + * Replaces the entry for the specified key only if currently + * mapped to the specified value. + *

If a security manager is enabled, its {@code checkSecurityAccess} + * method is called with the string {@code "putProviderProperty."+name}, + * where {@code name} is the provider name, to see if it's ok to set this + * provider's property values. + */ + // @ts-ignore + public replace(key: java.lang.Object, oldValue: java.lang.Object, newValue: java.lang.Object): boolean; + /** + * Replaces the entry for the specified key only if it is + * currently mapped to some value. + *

If a security manager is enabled, its {@code checkSecurityAccess} + * method is called with the string {@code "putProviderProperty."+name}, + * where {@code name} is the provider name, to see if it's ok to set this + * provider's property values. + */ + // @ts-ignore + public replace(key: java.lang.Object, value: java.lang.Object): java.lang.Object; + /** + * Replaces each entry's value with the result of invoking the given + * function on that entry, in the order entries are returned by an entry + * set iterator, until all entries have been processed or the function + * throws an exception. + *

If a security manager is enabled, its {@code checkSecurityAccess} + * method is called with the string {@code "putProviderProperty."+name}, + * where {@code name} is the provider name, to see if it's ok to set this + * provider's property values. + */ + // @ts-ignore + public replaceAll(func: java.util.function$.BiFunction): void; + /** + * Attempts to compute a mapping for the specified key and its + * current mapped value (or {@code null} if there is no current + * mapping). + *

If a security manager is enabled, its {@code checkSecurityAccess} + * method is called with the strings {@code "putProviderProperty."+name} + * and {@code "removeProviderProperty."+name}, where {@code name} is the + * provider name, to see if it's ok to set this provider's property values + * and remove this provider's properties. + */ + // @ts-ignore + public compute(key: java.lang.Object, remappingFunction: java.util.function$.BiFunction): java.lang.Object; + /** + * If the specified key is not already associated with a value (or + * is mapped to {@code null}), attempts to compute its value using + * the given mapping function and enters it into this map unless + * {@code null}. + *

If a security manager is enabled, its {@code checkSecurityAccess} + * method is called with the strings {@code "putProviderProperty."+name} + * and {@code "removeProviderProperty."+name}, where {@code name} is the + * provider name, to see if it's ok to set this provider's property values + * and remove this provider's properties. + */ + // @ts-ignore + public computeIfAbsent(key: java.lang.Object, mappingFunction: java.util.function$.Function): java.lang.Object; + /** + * If the value for the specified key is present and non-null, attempts to + * compute a new mapping given the key and its current mapped value. + *

If a security manager is enabled, its {@code checkSecurityAccess} + * method is called with the strings {@code "putProviderProperty."+name} + * and {@code "removeProviderProperty."+name}, where {@code name} is the + * provider name, to see if it's ok to set this provider's property values + * and remove this provider's properties. + */ + // @ts-ignore + public computeIfPresent(key: java.lang.Object, remappingFunction: java.util.function$.BiFunction): java.lang.Object; + /** + * If the specified key is not already associated with a value or is + * associated with null, associates it with the given value. Otherwise, + * replaces the value with the results of the given remapping function, + * or removes if the result is null. This method may be of use when + * combining multiple mapped values for a key. + *

If a security manager is enabled, its {@code checkSecurityAccess} + * method is called with the strings {@code "putProviderProperty."+name} + * and {@code "removeProviderProperty."+name}, where {@code name} is the + * provider name, to see if it's ok to set this provider's property values + * and remove this provider's properties. + */ + // @ts-ignore + public merge(key: java.lang.Object, value: java.lang.Object, remappingFunction: java.util.function$.BiFunction): java.lang.Object; + // @ts-ignore + public get(key: java.lang.Object): java.lang.Object; + // @ts-ignore + public getOrDefault(key: java.lang.Object, defaultValue: java.lang.Object): java.lang.Object; + // @ts-ignore + public forEach(action: java.util.function$.BiConsumer): void; + // @ts-ignore + public keys(): java.util.Enumeration; + // @ts-ignore + public elements(): java.util.Enumeration; + // @ts-ignore + public getProperty(key: string): string; + /** + * Get the service describing this Provider's implementation of the + * specified type of this algorithm or alias. If no such + * implementation exists, this method returns null. If there are two + * matching services, one added to this provider using + * {@link #putService putService()} and one added via {@link #put put()}, + * the service added via {@link #putService putService()} is returned. + */ + // @ts-ignore + public getService(type: string, algorithm: string): java.security.Provider.Service; + /** + * Get an unmodifiable Set of all services supported by + * this Provider. + */ + // @ts-ignore + public getServices(): java.util.Set; + /** + * Add a service. If a service of the same type with the same algorithm + * name exists and it was added using {@link #putService putService()}, + * it is replaced by the new service. + * This method also places information about this service + * in the provider's Hashtable values in the format described in the + * + * Java Cryptography Architecture API Specification & Reference . + *

Also, if there is a security manager, its + * {@code checkSecurityAccess} method is called with the string + * {@code "putProviderProperty."+name}, where {@code name} is + * the provider name, to see if it's ok to set this provider's property + * values. If the default implementation of {@code checkSecurityAccess} + * is used (that is, that method is not overriden), then this results in + * a call to the security manager's {@code checkPermission} method with + * a {@code SecurityPermission("putProviderProperty."+name)} + * permission. + */ + // @ts-ignore + protected putService(s: java.security.Provider.Service): void; + /** + * Remove a service previously added using + * {@link #putService putService()}. The specified service is removed from + * this provider. It will no longer be returned by + * {@link #getService getService()} and its information will be removed + * from this provider's Hashtable. + *

Also, if there is a security manager, its + * {@code checkSecurityAccess} method is called with the string + * {@code "removeProviderProperty."+name}, where {@code name} is + * the provider name, to see if it's ok to remove this provider's + * properties. If the default implementation of + * {@code checkSecurityAccess} is used (that is, that method is not + * overriden), then this results in a call to the security manager's + * {@code checkPermission} method with a + * {@code SecurityPermission("removeProviderProperty."+name)} + * permission. + */ + // @ts-ignore + protected removeService(s: java.security.Provider.Service): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.ProviderException.d.ts b/packages/types/dist/typings/jdk/java.security.ProviderException.d.ts new file mode 100644 index 00000000..54ead73d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.ProviderException.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class ProviderException extends java.lang.RuntimeException { + /** + * Constructs a ProviderException with no detail message. A + * detail message is a String that describes this particular + * exception. + */ + // @ts-ignore + constructor() + /** + * Constructs a ProviderException with the specified detail + * message. A detail message is a String that describes this + * particular exception. + */ + // @ts-ignore + constructor(s: string) + /** + * Creates a {@code ProviderException} with the specified + * detail message and cause. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Creates a {@code ProviderException} with the specified cause + * and a detail message of {@code (cause==null ? null : cause.toString())} + * (which typically contains the class and detail message of + * {@code cause}). + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.PublicKey.d.ts b/packages/types/dist/typings/jdk/java.security.PublicKey.d.ts new file mode 100644 index 00000000..877eab62 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.PublicKey.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + interface PublicKey { + // @ts-ignore + serialVersionUID: number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.SecureClassLoader.d.ts b/packages/types/dist/typings/jdk/java.security.SecureClassLoader.d.ts new file mode 100644 index 00000000..c7750276 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.SecureClassLoader.d.ts @@ -0,0 +1,59 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class SecureClassLoader extends java.lang.ClassLoader { + /** + * Creates a new SecureClassLoader using the specified parent + * class loader for delegation. + *

If there is a security manager, this method first + * calls the security manager's {@code checkCreateClassLoader} + * method to ensure creation of a class loader is allowed. + *

+ */ + // @ts-ignore + constructor(parent: java.lang.ClassLoader) + /** + * Creates a new SecureClassLoader using the default parent class + * loader for delegation. + *

If there is a security manager, this method first + * calls the security manager's {@code checkCreateClassLoader} + * method to ensure creation of a class loader is allowed. + */ + // @ts-ignore + constructor() + /** + * Converts an array of bytes into an instance of class Class, + * with an optional CodeSource. Before the + * class can be used it must be resolved. + *

+ * If a non-null CodeSource is supplied a ProtectionDomain is + * constructed and associated with the class being defined. + *

+ */ + // @ts-ignore + protected defineClass(name: string, b: number, off: number, len: number, cs: java.security.CodeSource): java.lang.Class; + /** + * Converts a {@link java.nio.ByteBuffer ByteBuffer} + * into an instance of class {@code Class}, with an optional CodeSource. + * Before the class can be used it must be resolved. + *

+ * If a non-null CodeSource is supplied a ProtectionDomain is + * constructed and associated with the class being defined. + *

+ */ + // @ts-ignore + protected defineClass(name: string, b: java.nio.ByteBuffer, cs: java.security.CodeSource): java.lang.Class; + /** + * Returns the permissions for the given CodeSource object. + *

+ * This method is invoked by the defineClass method which takes + * a CodeSource as an argument when it is constructing the + * ProtectionDomain for the class being defined. + *

+ */ + // @ts-ignore + protected getPermissions(codesource: java.security.CodeSource): java.security.PermissionCollection; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.SecureRandom.d.ts b/packages/types/dist/typings/jdk/java.security.SecureRandom.d.ts new file mode 100644 index 00000000..aafeb8c5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.SecureRandom.d.ts @@ -0,0 +1,195 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class SecureRandom extends java.util.Random { + /** + * Constructs a secure random number generator (RNG) implementing the + * default random number algorithm. + *

This constructor traverses the list of registered security Providers, + * starting with the most preferred Provider. + * A new SecureRandom object encapsulating the + * SecureRandomSpi implementation from the first + * Provider that supports a SecureRandom (RNG) algorithm is returned. + * If none of the Providers support a RNG algorithm, + * then an implementation-specific default is returned. + *

Note that the list of registered providers may be retrieved via + * the {@link Security#getProviders() Security.getProviders()} method. + *

See the SecureRandom section in the + * Java Cryptography Architecture Standard Algorithm Name Documentation + * for information about standard RNG algorithm names. + *

The returned SecureRandom object has not been seeded. To seed the + * returned object, call the {@code setSeed} method. + * If {@code setSeed} is not called, the first call to + * {@code nextBytes} will force the SecureRandom object to seed itself. + * This self-seeding will not occur if {@code setSeed} was + * previously called. + */ + // @ts-ignore + constructor() + /** + * Constructs a secure random number generator (RNG) implementing the + * default random number algorithm. + * The SecureRandom instance is seeded with the specified seed bytes. + *

This constructor traverses the list of registered security Providers, + * starting with the most preferred Provider. + * A new SecureRandom object encapsulating the + * SecureRandomSpi implementation from the first + * Provider that supports a SecureRandom (RNG) algorithm is returned. + * If none of the Providers support a RNG algorithm, + * then an implementation-specific default is returned. + *

Note that the list of registered providers may be retrieved via + * the {@link Security#getProviders() Security.getProviders()} method. + *

See the SecureRandom section in the + * Java Cryptography Architecture Standard Algorithm Name Documentation + * for information about standard RNG algorithm names. + */ + // @ts-ignore + constructor(seed: number) + /** + * Creates a SecureRandom object. + */ + // @ts-ignore + constructor(secureRandomSpi: java.security.SecureRandomSpi, provider: java.security.Provider) + /** + * Returns a SecureRandom object that implements the specified + * Random Number Generator (RNG) algorithm. + *

This method traverses the list of registered security Providers, + * starting with the most preferred Provider. + * A new SecureRandom object encapsulating the + * SecureRandomSpi implementation from the first + * Provider that supports the specified algorithm is returned. + *

Note that the list of registered providers may be retrieved via + * the {@link Security#getProviders() Security.getProviders()} method. + *

The returned SecureRandom object has not been seeded. To seed the + * returned object, call the {@code setSeed} method. + * If {@code setSeed} is not called, the first call to + * {@code nextBytes} will force the SecureRandom object to seed itself. + * This self-seeding will not occur if {@code setSeed} was + * previously called. + */ + // @ts-ignore + public static getInstance(algorithm: string): java.security.SecureRandom; + /** + * Returns a SecureRandom object that implements the specified + * Random Number Generator (RNG) algorithm. + *

A new SecureRandom object encapsulating the + * SecureRandomSpi implementation from the specified provider + * is returned. The specified provider must be registered + * in the security provider list. + *

Note that the list of registered providers may be retrieved via + * the {@link Security#getProviders() Security.getProviders()} method. + *

The returned SecureRandom object has not been seeded. To seed the + * returned object, call the {@code setSeed} method. + * If {@code setSeed} is not called, the first call to + * {@code nextBytes} will force the SecureRandom object to seed itself. + * This self-seeding will not occur if {@code setSeed} was + * previously called. + */ + // @ts-ignore + public static getInstance(algorithm: string, provider: string): java.security.SecureRandom; + /** + * Returns a SecureRandom object that implements the specified + * Random Number Generator (RNG) algorithm. + *

A new SecureRandom object encapsulating the + * SecureRandomSpi implementation from the specified Provider + * object is returned. Note that the specified Provider object + * does not have to be registered in the provider list. + *

The returned SecureRandom object has not been seeded. To seed the + * returned object, call the {@code setSeed} method. + * If {@code setSeed} is not called, the first call to + * {@code nextBytes} will force the SecureRandom object to seed itself. + * This self-seeding will not occur if {@code setSeed} was + * previously called. + */ + // @ts-ignore + public static getInstance(algorithm: string, provider: java.security.Provider): java.security.SecureRandom; + /** + * Returns the provider of this SecureRandom object. + */ + // @ts-ignore + public getProvider(): java.security.Provider; + /** + * Returns the name of the algorithm implemented by this SecureRandom + * object. + */ + // @ts-ignore + public getAlgorithm(): string; + /** + * Reseeds this random object. The given seed supplements, rather than + * replaces, the existing seed. Thus, repeated calls are guaranteed + * never to reduce randomness. + */ + // @ts-ignore + public setSeed(seed: number): void; + /** + * Reseeds this random object, using the eight bytes contained + * in the given {@code long seed}. The given seed supplements, + * rather than replaces, the existing seed. Thus, repeated calls + * are guaranteed never to reduce randomness. + *

This method is defined for compatibility with + * {@code java.util.Random}. + */ + // @ts-ignore + public setSeed(seed: number): void; + /** + * Generates a user-specified number of random bytes. + *

If a call to {@code setSeed} had not occurred previously, + * the first call to this method forces this SecureRandom object + * to seed itself. This self-seeding will not occur if + * {@code setSeed} was previously called. + */ + // @ts-ignore + public nextBytes(bytes: number): void; + /** + * Generates an integer containing the user-specified number of + * pseudo-random bits (right justified, with leading zeros). This + * method overrides a {@code java.util.Random} method, and serves + * to provide a source of random bits to all of the methods inherited + * from that class (for example, {@code nextInt}, + * {@code nextLong}, and {@code nextFloat}). + */ + // @ts-ignore + protected next(numBits: number): number; + /** + * Returns the given number of seed bytes, computed using the seed + * generation algorithm that this class uses to seed itself. This + * call may be used to seed other random number generators. + *

This method is only included for backwards compatibility. + * The caller is encouraged to use one of the alternative + * {@code getInstance} methods to obtain a SecureRandom object, and + * then call the {@code generateSeed} method to obtain seed bytes + * from that object. + */ + // @ts-ignore + public static getSeed(numBytes: number): number[]; + /** + * Returns the given number of seed bytes, computed using the seed + * generation algorithm that this class uses to seed itself. This + * call may be used to seed other random number generators. + */ + // @ts-ignore + public generateSeed(numBytes: number): number[]; + /** + * Returns a {@code SecureRandom} object that was selected by using + * the algorithms/providers specified in the {@code + * securerandom.strongAlgorithms} {@link Security} property. + *

+ * Some situations require strong random values, such as when + * creating high-value/long-lived secrets like RSA public/private + * keys. To help guide applications in selecting a suitable strong + * {@code SecureRandom} implementation, Java distributions + * include a list of known strong {@code SecureRandom} + * implementations in the {@code securerandom.strongAlgorithms} + * Security property. + *

+ * Every implementation of the Java platform is required to + * support at least one strong {@code SecureRandom} implementation. + */ + // @ts-ignore + public static getInstanceStrong(): java.security.SecureRandom; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.SecureRandomSpi.d.ts b/packages/types/dist/typings/jdk/java.security.SecureRandomSpi.d.ts new file mode 100644 index 00000000..a1b36807 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.SecureRandomSpi.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + abstract class SecureRandomSpi extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Reseeds this random object. The given seed supplements, rather than + * replaces, the existing seed. Thus, repeated calls are guaranteed + * never to reduce randomness. + */ + // @ts-ignore + protected abstract engineSetSeed(seed: number): void; + /** + * Generates a user-specified number of random bytes. + *

If a call to {@code engineSetSeed} had not occurred previously, + * the first call to this method forces this SecureRandom implementation + * to seed itself. This self-seeding will not occur if + * {@code engineSetSeed} was previously called. + */ + // @ts-ignore + protected abstract engineNextBytes(bytes: number): void; + /** + * Returns the given number of seed bytes. This call may be used to + * seed other random number generators. + */ + // @ts-ignore + protected abstract engineGenerateSeed(numBytes: number): number[]; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.Security.d.ts b/packages/types/dist/typings/jdk/java.security.Security.d.ts new file mode 100644 index 00000000..7aafb632 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.Security.d.ts @@ -0,0 +1,202 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class Security extends java.lang.Object { + /** + * Gets a specified property for an algorithm. The algorithm name + * should be a standard name. See the + * Java Cryptography Architecture Standard Algorithm Name Documentation + * for information about standard algorithm names. + * One possible use is by specialized algorithm parsers, which may map + * classes to algorithms which they understand (much like Key parsers + * do). + */ + // @ts-ignore + public static getAlgorithmProperty(algName: string, propName: string): string; + /** + * Adds a new provider, at a specified position. The position is + * the preference order in which providers are searched for + * requested algorithms. The position is 1-based, that is, + * 1 is most preferred, followed by 2, and so on. + *

If the given provider is installed at the requested position, + * the provider that used to be at that position, and all providers + * with a position greater than {@code position}, are shifted up + * one position (towards the end of the list of installed providers). + *

A provider cannot be added if it is already installed. + *

If there is a security manager, the + * {@link java.lang.SecurityManager#checkSecurityAccess} method is called + * with the {@code "insertProvider"} permission target name to see if + * it's ok to add a new provider. If this permission check is denied, + * {@code checkSecurityAccess} is called again with the + * {@code "insertProvider."+provider.getName()} permission target name. If + * both checks are denied, a {@code SecurityException} is thrown. + */ + // @ts-ignore + public static insertProviderAt(provider: java.security.Provider, position: number): number; + /** + * Adds a provider to the next position available. + *

If there is a security manager, the + * {@link java.lang.SecurityManager#checkSecurityAccess} method is called + * with the {@code "insertProvider"} permission target name to see if + * it's ok to add a new provider. If this permission check is denied, + * {@code checkSecurityAccess} is called again with the + * {@code "insertProvider."+provider.getName()} permission target name. If + * both checks are denied, a {@code SecurityException} is thrown. + */ + // @ts-ignore + public static addProvider(provider: java.security.Provider): number; + /** + * Removes the provider with the specified name. + *

When the specified provider is removed, all providers located + * at a position greater than where the specified provider was are shifted + * down one position (towards the head of the list of installed + * providers). + *

This method returns silently if the provider is not installed or + * if name is null. + *

First, if there is a security manager, its + * {@code checkSecurityAccess} + * method is called with the string {@code "removeProvider."+name} + * to see if it's ok to remove the provider. + * If the default implementation of {@code checkSecurityAccess} + * is used (i.e., that method is not overriden), then this will result in + * a call to the security manager's {@code checkPermission} method + * with a {@code SecurityPermission("removeProvider."+name)} + * permission. + */ + // @ts-ignore + public static removeProvider(name: string): void; + /** + * Returns an array containing all the installed providers. The order of + * the providers in the array is their preference order. + */ + // @ts-ignore + public static getProviders(): java.security.Provider[]; + /** + * Returns the provider installed with the specified name, if + * any. Returns null if no provider with the specified name is + * installed or if name is null. + */ + // @ts-ignore + public static getProvider(name: string): java.security.Provider; + /** + * Returns an array containing all installed providers that satisfy the + * specified selection criterion, or null if no such providers have been + * installed. The returned providers are ordered + * according to their + * {@linkplain #insertProviderAt(java.security.Provider, int) preference order}. + *

A cryptographic service is always associated with a particular + * algorithm or type. For example, a digital signature service is + * always associated with a particular algorithm (e.g., DSA), + * and a CertificateFactory service is always associated with + * a particular certificate type (e.g., X.509). + *

The selection criterion must be specified in one of the following two + * formats: + *

    + *
  • {@literal .} + *

    The cryptographic service name must not contain any dots. + *

    A + * provider satisfies the specified selection criterion iff the provider + * implements the + * specified algorithm or type for the specified cryptographic service. + *

    For example, "CertificateFactory.X.509" + * would be satisfied by any provider that supplied + * a CertificateFactory implementation for X.509 certificates. + *

  • {@literal . + * :} + *

    The cryptographic service name must not contain any dots. There + * must be one or more space characters between the + * {@literal } and the + * {@literal }. + *

    A provider satisfies this selection criterion iff the + * provider implements the specified algorithm or type for the specified + * cryptographic service and its implementation meets the + * constraint expressed by the specified attribute name/value pair. + *

    For example, "Signature.SHA1withDSA KeySize:1024" would be + * satisfied by any provider that implemented + * the SHA1withDSA signature algorithm with a keysize of 1024 (or larger). + *

+ *

See the + * Java Cryptography Architecture Standard Algorithm Name Documentation + * for information about standard cryptographic service names, standard + * algorithm names and standard attribute names. + */ + // @ts-ignore + public static getProviders(filter: string): java.security.Provider[]; + /** + * Returns an array containing all installed providers that satisfy the + * specified* selection criteria, or null if no such providers have been + * installed. The returned providers are ordered + * according to their + * {@linkplain #insertProviderAt(java.security.Provider, int) + * preference order}. + *

The selection criteria are represented by a map. + * Each map entry represents a selection criterion. + * A provider is selected iff it satisfies all selection + * criteria. The key for any entry in such a map must be in one of the + * following two formats: + *

    + *
  • {@literal .} + *

    The cryptographic service name must not contain any dots. + *

    The value associated with the key must be an empty string. + *

    A provider + * satisfies this selection criterion iff the provider implements the + * specified algorithm or type for the specified cryptographic service. + *

  • {@literal }. + * {@literal } + *

    The cryptographic service name must not contain any dots. There + * must be one or more space characters between the + * {@literal } + * and the {@literal }. + *

    The value associated with the key must be a non-empty string. + * A provider satisfies this selection criterion iff the + * provider implements the specified algorithm or type for the specified + * cryptographic service and its implementation meets the + * constraint expressed by the specified attribute name/value pair. + *

+ *

See the + * Java Cryptography Architecture Standard Algorithm Name Documentation + * for information about standard cryptographic service names, standard + * algorithm names and standard attribute names. + */ + // @ts-ignore + public static getProviders(filter: java.util.Map): java.security.Provider[]; + /** + * Gets a security property value. + *

First, if there is a security manager, its + * {@code checkPermission} method is called with a + * {@code java.security.SecurityPermission("getProperty."+key)} + * permission to see if it's ok to retrieve the specified + * security property value.. + */ + // @ts-ignore + public static getProperty(key: string): string; + /** + * Sets a security property value. + *

First, if there is a security manager, its + * {@code checkPermission} method is called with a + * {@code java.security.SecurityPermission("setProperty."+key)} + * permission to see if it's ok to set the specified + * security property value. + */ + // @ts-ignore + public static setProperty(key: string, datum: string): void; + /** + * Returns a Set of Strings containing the names of all available + * algorithms or types for the specified Java cryptographic service + * (e.g., Signature, MessageDigest, Cipher, Mac, KeyStore). Returns + * an empty Set if there is no provider that supports the + * specified service or if serviceName is null. For a complete list + * of Java cryptographic services, please see the + * Java + * Cryptography Architecture API Specification & Reference. + * Note: the returned set is immutable. + */ + // @ts-ignore + public static getAlgorithms(serviceName: string): java.util.Set; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.SecurityPermission.d.ts b/packages/types/dist/typings/jdk/java.security.SecurityPermission.d.ts new file mode 100644 index 00000000..2ea07091 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.SecurityPermission.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class SecurityPermission extends java.security.BasicPermission { + /** + * Creates a new SecurityPermission with the specified name. + * The name is the symbolic name of the SecurityPermission. An asterisk + * may appear at the end of the name, following a ".", or by itself, to + * signify a wildcard match. + */ + // @ts-ignore + constructor(name: string) + /** + * Creates a new SecurityPermission object with the specified name. + * The name is the symbolic name of the SecurityPermission, and the + * actions String is currently unused and should be null. + */ + // @ts-ignore + constructor(name: string, actions: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.Signature.d.ts b/packages/types/dist/typings/jdk/java.security.Signature.d.ts new file mode 100644 index 00000000..f41e76a7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.Signature.d.ts @@ -0,0 +1,223 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + abstract class Signature extends java.security.SignatureSpi { + /** + * Creates a Signature object for the specified algorithm. + */ + // @ts-ignore + constructor(algorithm: string) + // @ts-ignore + protected static UNINITIALIZED: number; + // @ts-ignore + protected static SIGN: number; + // @ts-ignore + protected static VERIFY: number; + // @ts-ignore + protected state: number; + /** + * Returns a Signature object that implements the specified signature + * algorithm. + *

This method traverses the list of registered security Providers, + * starting with the most preferred Provider. + * A new Signature object encapsulating the + * SignatureSpi implementation from the first + * Provider that supports the specified algorithm is returned. + *

Note that the list of registered providers may be retrieved via + * the {@link Security#getProviders() Security.getProviders()} method. + */ + // @ts-ignore + public static getInstance(algorithm: string): java.security.Signature; + /** + * Returns a Signature object that implements the specified signature + * algorithm. + *

A new Signature object encapsulating the + * SignatureSpi implementation from the specified provider + * is returned. The specified provider must be registered + * in the security provider list. + *

Note that the list of registered providers may be retrieved via + * the {@link Security#getProviders() Security.getProviders()} method. + */ + // @ts-ignore + public static getInstance(algorithm: string, provider: string): java.security.Signature; + /** + * Returns a Signature object that implements the specified + * signature algorithm. + *

A new Signature object encapsulating the + * SignatureSpi implementation from the specified Provider + * object is returned. Note that the specified Provider object + * does not have to be registered in the provider list. + */ + // @ts-ignore + public static getInstance(algorithm: string, provider: java.security.Provider): java.security.Signature; + /** + * Returns the provider of this signature object. + */ + // @ts-ignore + public getProvider(): java.security.Provider; + /** + * Initializes this object for verification. If this method is called + * again with a different argument, it negates the effect + * of this call. + */ + // @ts-ignore + public initVerify(publicKey: java.security.PublicKey): void; + /** + * Initializes this object for verification, using the public key from + * the given certificate. + *

If the certificate is of type X.509 and has a key usage + * extension field marked as critical, and the value of the key usage + * extension field implies that the public key in + * the certificate and its corresponding private key are not + * supposed to be used for digital signatures, an + * {@code InvalidKeyException} is thrown. + */ + // @ts-ignore + public initVerify(certificate: java.security.cert.Certificate): void; + /** + * Initialize this object for signing. If this method is called + * again with a different argument, it negates the effect + * of this call. + */ + // @ts-ignore + public initSign(privateKey: java.security.PrivateKey): void; + /** + * Initialize this object for signing. If this method is called + * again with a different argument, it negates the effect + * of this call. + */ + // @ts-ignore + public initSign(privateKey: java.security.PrivateKey, random: java.security.SecureRandom): void; + /** + * Returns the signature bytes of all the data updated. + * The format of the signature depends on the underlying + * signature scheme. + *

A call to this method resets this signature object to the state + * it was in when previously initialized for signing via a + * call to {@code initSign(PrivateKey)}. That is, the object is + * reset and available to generate another signature from the same + * signer, if desired, via new calls to {@code update} and + * {@code sign}. + */ + // @ts-ignore + public sign(): number[]; + /** + * Finishes the signature operation and stores the resulting signature + * bytes in the provided buffer {@code outbuf}, starting at + * {@code offset}. + * The format of the signature depends on the underlying + * signature scheme. + *

This signature object is reset to its initial state (the state it + * was in after a call to one of the {@code initSign} methods) and + * can be reused to generate further signatures with the same private key. + */ + // @ts-ignore + public sign(outbuf: number, offset: number, len: number): number; + /** + * Verifies the passed-in signature. + *

A call to this method resets this signature object to the state + * it was in when previously initialized for verification via a + * call to {@code initVerify(PublicKey)}. That is, the object is + * reset and available to verify another signature from the identity + * whose public key was specified in the call to {@code initVerify}. + */ + // @ts-ignore + public verify(signature: number): boolean; + /** + * Verifies the passed-in signature in the specified array + * of bytes, starting at the specified offset. + *

A call to this method resets this signature object to the state + * it was in when previously initialized for verification via a + * call to {@code initVerify(PublicKey)}. That is, the object is + * reset and available to verify another signature from the identity + * whose public key was specified in the call to {@code initVerify}. + */ + // @ts-ignore + public verify(signature: number, offset: number, length: number): boolean; + /** + * Updates the data to be signed or verified by a byte. + */ + // @ts-ignore + public update(b: number): void; + /** + * Updates the data to be signed or verified, using the specified + * array of bytes. + */ + // @ts-ignore + public update(data: number): void; + /** + * Updates the data to be signed or verified, using the specified + * array of bytes, starting at the specified offset. + */ + // @ts-ignore + public update(data: number, off: number, len: number): void; + /** + * Updates the data to be signed or verified using the specified + * ByteBuffer. Processes the {@code data.remaining()} bytes + * starting at at {@code data.position()}. + * Upon return, the buffer's position will be equal to its limit; + * its limit will not have changed. + */ + // @ts-ignore + public update(data: java.nio.ByteBuffer): void; + /** + * Returns the name of the algorithm for this signature object. + */ + // @ts-ignore + public getAlgorithm(): string; + /** + * Returns a string representation of this signature object, + * providing information that includes the state of the object + * and the name of the algorithm used. + */ + // @ts-ignore + public toString(): string; + /** + * Sets the specified algorithm parameter to the specified value. + * This method supplies a general-purpose mechanism through + * which it is possible to set the various parameters of this object. + * A parameter may be any settable parameter for the algorithm, such as + * a parameter size, or a source of random bits for signature generation + * (if appropriate), or an indication of whether or not to perform + * a specific but optional computation. A uniform algorithm-specific + * naming scheme for each parameter is desirable but left unspecified + * at this time. + */ + // @ts-ignore + public setParameter(param: string, value: java.lang.Object): void; + /** + * Initializes this signature engine with the specified parameter set. + */ + // @ts-ignore + public setParameter(params: java.security.spec.AlgorithmParameterSpec): void; + /** + * Returns the parameters used with this signature object. + *

The returned parameters may be the same that were used to initialize + * this signature, or may contain a combination of default and randomly + * generated parameter values used by the underlying signature + * implementation if this signature requires algorithm parameters but + * was not initialized with any. + */ + // @ts-ignore + public getParameters(): java.security.AlgorithmParameters; + /** + * Gets the value of the specified algorithm parameter. This method + * supplies a general-purpose mechanism through which it is possible to + * get the various parameters of this object. A parameter may be any + * settable parameter for the algorithm, such as a parameter size, or + * a source of random bits for signature generation (if appropriate), + * or an indication of whether or not to perform a specific but optional + * computation. A uniform algorithm-specific naming scheme for each + * parameter is desirable but left unspecified at this time. + */ + // @ts-ignore + public getParameter(param: string): java.lang.Object; + /** + * Returns a clone if the implementation is cloneable. + */ + // @ts-ignore + public clone(): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.SignatureException.d.ts b/packages/types/dist/typings/jdk/java.security.SignatureException.d.ts new file mode 100644 index 00000000..d1ed555d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.SignatureException.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class SignatureException extends java.security.GeneralSecurityException { + /** + * Constructs a SignatureException with no detail message. A + * detail message is a String that describes this particular + * exception. + */ + // @ts-ignore + constructor() + /** + * Constructs a SignatureException with the specified detail + * message. A detail message is a String that describes this + * particular exception. + */ + // @ts-ignore + constructor(msg: string) + /** + * Creates a {@code SignatureException} with the specified + * detail message and cause. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Creates a {@code SignatureException} with the specified cause + * and a detail message of {@code (cause==null ? null : cause.toString())} + * (which typically contains the class and detail message of + * {@code cause}). + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.SignatureSpi.d.ts b/packages/types/dist/typings/jdk/java.security.SignatureSpi.d.ts new file mode 100644 index 00000000..1b6e1f29 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.SignatureSpi.d.ts @@ -0,0 +1,133 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + abstract class SignatureSpi extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + protected appRandom: java.security.SecureRandom; + /** + * Initializes this signature object with the specified + * public key for verification operations. + */ + // @ts-ignore + protected abstract engineInitVerify(publicKey: java.security.PublicKey): void; + /** + * Initializes this signature object with the specified + * private key for signing operations. + */ + // @ts-ignore + protected abstract engineInitSign(privateKey: java.security.PrivateKey): void; + /** + * Initializes this signature object with the specified + * private key and source of randomness for signing operations. + *

This concrete method has been added to this previously-defined + * abstract class. (For backwards compatibility, it cannot be abstract.) + */ + // @ts-ignore + protected engineInitSign(privateKey: java.security.PrivateKey, random: java.security.SecureRandom): void; + /** + * Updates the data to be signed or verified + * using the specified byte. + */ + // @ts-ignore + protected abstract engineUpdate(b: number): void; + /** + * Updates the data to be signed or verified using the specified + * ByteBuffer. Processes the {@code data.remaining()} bytes + * starting at at {@code data.position()}. + * Upon return, the buffer's position will be equal to its limit; + * its limit will not have changed. + */ + // @ts-ignore + protected engineUpdate(input: java.nio.ByteBuffer): void; + /** + * Returns the signature bytes of all the data + * updated so far. + * The format of the signature depends on the underlying + * signature scheme. + */ + // @ts-ignore + protected abstract engineSign(): number[]; + /** + * Finishes this signature operation and stores the resulting signature + * bytes in the provided buffer {@code outbuf}, starting at + * {@code offset}. + * The format of the signature depends on the underlying + * signature scheme. + *

The signature implementation is reset to its initial state + * (the state it was in after a call to one of the + * {@code engineInitSign} methods) + * and can be reused to generate further signatures with the same private + * key. + * This method should be abstract, but we leave it concrete for + * binary compatibility. Knowledgeable providers should override this + * method. + */ + // @ts-ignore + protected engineSign(outbuf: number, offset: number, len: number): number; + /** + * Verifies the passed-in signature. + */ + // @ts-ignore + protected abstract engineVerify(sigBytes: number): boolean; + /** + * Verifies the passed-in signature in the specified array + * of bytes, starting at the specified offset. + *

Note: Subclasses should overwrite the default implementation. + */ + // @ts-ignore + protected engineVerify(sigBytes: number, offset: number, length: number): boolean; + /** + * Sets the specified algorithm parameter to the specified + * value. This method supplies a general-purpose mechanism through + * which it is possible to set the various parameters of this object. + * A parameter may be any settable parameter for the algorithm, such as + * a parameter size, or a source of random bits for signature generation + * (if appropriate), or an indication of whether or not to perform + * a specific but optional computation. A uniform algorithm-specific + * naming scheme for each parameter is desirable but left unspecified + * at this time. + */ + // @ts-ignore + protected abstract engineSetParameter(param: string, value: java.lang.Object): void; + /** + *

This method is overridden by providers to initialize + * this signature engine with the specified parameter set. + */ + // @ts-ignore + protected engineSetParameter(params: java.security.spec.AlgorithmParameterSpec): void; + /** + *

This method is overridden by providers to return the + * parameters used with this signature engine, or null + * if this signature engine does not use any parameters. + *

The returned parameters may be the same that were used to initialize + * this signature engine, or may contain a combination of default and + * randomly generated parameter values used by the underlying signature + * implementation if this signature engine requires algorithm parameters + * but was not initialized with any. + */ + // @ts-ignore + protected engineGetParameters(): java.security.AlgorithmParameters; + /** + * Gets the value of the specified algorithm parameter. + * This method supplies a general-purpose mechanism through which it + * is possible to get the various parameters of this object. A parameter + * may be any settable parameter for the algorithm, such as a parameter + * size, or a source of random bits for signature generation (if + * appropriate), or an indication of whether or not to perform a + * specific but optional computation. A uniform algorithm-specific + * naming scheme for each parameter is desirable but left unspecified + * at this time. + */ + // @ts-ignore + protected abstract engineGetParameter(param: string): java.lang.Object; + /** + * Returns a clone if the implementation is cloneable. + */ + // @ts-ignore + public clone(): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.SignedObject.d.ts b/packages/types/dist/typings/jdk/java.security.SignedObject.d.ts new file mode 100644 index 00000000..23eed617 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.SignedObject.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class SignedObject extends java.lang.Object { + /** + * Constructs a SignedObject from any Serializable object. + * The given object is signed with the given signing key, using the + * designated signature engine. + */ + // @ts-ignore + constructor(object: java.io.Serializable, signingKey: java.security.PrivateKey, signingEngine: java.security.Signature) + /** + * Retrieves the encapsulated object. + * The encapsulated object is de-serialized before it is returned. + */ + // @ts-ignore + public getObject(): java.lang.Object; + /** + * Retrieves the signature on the signed object, in the form of a + * byte array. + */ + // @ts-ignore + public getSignature(): number[]; + /** + * Retrieves the name of the signature algorithm. + */ + // @ts-ignore + public getAlgorithm(): string; + /** + * Verifies that the signature in this SignedObject is the valid + * signature for the object stored inside, with the given + * verification key, using the designated verification engine. + */ + // @ts-ignore + public verify(verificationKey: java.security.PublicKey, verificationEngine: java.security.Signature): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.Signer.d.ts b/packages/types/dist/typings/jdk/java.security.Signer.d.ts new file mode 100644 index 00000000..2b645fa4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.Signer.d.ts @@ -0,0 +1,45 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + abstract class Signer extends java.security.Identity { + /** + * Creates a signer. This constructor should only be used for + * serialization. + */ + // @ts-ignore + constructor() + /** + * Creates a signer with the specified identity name. + */ + // @ts-ignore + constructor(name: string) + /** + * Creates a signer with the specified identity name and scope. + */ + // @ts-ignore + constructor(name: string, scope: java.security.IdentityScope) + /** + * Returns this signer's private key. + *

First, if there is a security manager, its {@code checkSecurityAccess} + * method is called with {@code "getSignerPrivateKey"} + * as its argument to see if it's ok to return the private key. + */ + // @ts-ignore + public getPrivateKey(): java.security.PrivateKey; + /** + * Sets the key pair (public key and private key) for this signer. + *

First, if there is a security manager, its {@code checkSecurityAccess} + * method is called with {@code "setSignerKeyPair"} + * as its argument to see if it's ok to set the key pair. + */ + // @ts-ignore + public setKeyPair(pair: java.security.KeyPair): void; + /** + * Returns a string of information about the signer. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.Timestamp.d.ts b/packages/types/dist/typings/jdk/java.security.Timestamp.d.ts new file mode 100644 index 00000000..f3e59499 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.Timestamp.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class Timestamp extends java.lang.Object { + /** + * Constructs a Timestamp. + */ + // @ts-ignore + constructor(timestamp: java.util.Date, signerCertPath: java.security.cert.CertPath) + /** + * Returns the date and time when the timestamp was generated. + */ + // @ts-ignore + public getTimestamp(): java.util.Date; + /** + * Returns the certificate path for the Timestamping Authority. + */ + // @ts-ignore + public getSignerCertPath(): java.security.cert.CertPath; + /** + * Returns the hash code value for this timestamp. + * The hash code is generated using the date and time of the timestamp + * and the TSA's certificate path. + */ + // @ts-ignore + public hashCode(): number; + /** + * Tests for equality between the specified object and this + * timestamp. Two timestamps are considered equal if the date and time of + * their timestamp's and their signer's certificate paths are equal. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a string describing this timestamp. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.URIParameter.d.ts b/packages/types/dist/typings/jdk/java.security.URIParameter.d.ts new file mode 100644 index 00000000..2e57448a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.URIParameter.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class URIParameter extends java.lang.Object { + /** + * Constructs a URIParameter with the URI pointing to + * data intended for an SPI implementation. + */ + // @ts-ignore + constructor(uri: java.net.URI) + /** + * Returns the URI. + */ + // @ts-ignore + public getURI(): java.net.URI; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.UnrecoverableEntryException.d.ts b/packages/types/dist/typings/jdk/java.security.UnrecoverableEntryException.d.ts new file mode 100644 index 00000000..16143cfa --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.UnrecoverableEntryException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class UnrecoverableEntryException extends java.security.GeneralSecurityException { + /** + * Constructs an UnrecoverableEntryException with no detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs an UnrecoverableEntryException with the specified detail + * message, which provides more information about why this exception + * has been thrown. + */ + // @ts-ignore + constructor(msg: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.UnrecoverableKeyException.d.ts b/packages/types/dist/typings/jdk/java.security.UnrecoverableKeyException.d.ts new file mode 100644 index 00000000..c97c1822 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.UnrecoverableKeyException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class UnrecoverableKeyException extends java.security.UnrecoverableEntryException { + /** + * Constructs an UnrecoverableKeyException with no detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs an UnrecoverableKeyException with the specified detail + * message, which provides more information about why this exception + * has been thrown. + */ + // @ts-ignore + constructor(msg: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.UnresolvedPermission.d.ts b/packages/types/dist/typings/jdk/java.security.UnresolvedPermission.d.ts new file mode 100644 index 00000000..2ca10b9a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.UnresolvedPermission.d.ts @@ -0,0 +1,86 @@ +// @ts-nocheck +declare namespace java { + namespace security { + // @ts-ignore + class UnresolvedPermission extends java.security.Permission { + /** + * Creates a new UnresolvedPermission containing the permission + * information needed later to actually create a Permission of the + * specified class, when the permission is resolved. + */ + // @ts-ignore + constructor(type: string, name: string, actions: string, certs: java.security.cert.Certificate) + /** + * This method always returns false for unresolved permissions. + * That is, an UnresolvedPermission is never considered to + * imply another permission. + */ + // @ts-ignore + public implies(p: java.security.Permission): boolean; + /** + * Checks two UnresolvedPermission objects for equality. + * Checks that obj is an UnresolvedPermission, and has + * the same type (class) name, permission name, actions, and + * certificates as this object. + *

To determine certificate equality, this method only compares + * actual signer certificates. Supporting certificate chains + * are not taken into consideration by this method. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns the hash code value for this object. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns the canonical string representation of the actions, + * which currently is the empty string "", since there are no actions for + * an UnresolvedPermission. That is, the actions for the + * permission that will be created when this UnresolvedPermission + * is resolved may be non-null, but an UnresolvedPermission + * itself is never considered to have any actions. + */ + // @ts-ignore + public getActions(): string; + /** + * Get the type (class name) of the underlying permission that + * has not been resolved. + */ + // @ts-ignore + public getUnresolvedType(): string; + /** + * Get the target name of the underlying permission that + * has not been resolved. + */ + // @ts-ignore + public getUnresolvedName(): string; + /** + * Get the actions for the underlying permission that + * has not been resolved. + */ + // @ts-ignore + public getUnresolvedActions(): string; + /** + * Get the signer certificates (without any supporting chain) + * for the underlying permission that has not been resolved. + */ + // @ts-ignore + public getUnresolvedCerts(): java.security.cert.Certificate[]; + /** + * Returns a string describing this UnresolvedPermission. The convention + * is to specify the class name, the permission name, and the actions, in + * the following format: '(unresolved "ClassName" "name" "actions")'. + */ + // @ts-ignore + public toString(): string; + /** + * Returns a new PermissionCollection object for storing + * UnresolvedPermission objects. + *

+ */ + // @ts-ignore + public newPermissionCollection(): java.security.PermissionCollection; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.acl.Acl.d.ts b/packages/types/dist/typings/jdk/java.security.acl.Acl.d.ts new file mode 100644 index 00000000..7ab7ffe6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.acl.Acl.d.ts @@ -0,0 +1,94 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace acl { + // @ts-ignore + interface Acl { + /** + * Sets the name of this ACL. + */ + // @ts-ignore + setName(caller: java.security.Principal, name: string): void; + /** + * Returns the name of this ACL. + */ + // @ts-ignore + getName(): string; + /** + * Adds an ACL entry to this ACL. An entry associates a principal + * (e.g., an individual or a group) with a set of + * permissions. Each principal can have at most one positive ACL + * entry (specifying permissions to be granted to the principal) + * and one negative ACL entry (specifying permissions to be + * denied). If there is already an ACL entry of the same type + * (negative or positive) already in the ACL, false is returned. + */ + // @ts-ignore + addEntry(caller: java.security.Principal, entry: java.security.acl.AclEntry): boolean; + /** + * Removes an ACL entry from this ACL. + */ + // @ts-ignore + removeEntry(caller: java.security.Principal, entry: java.security.acl.AclEntry): boolean; + /** + * Returns an enumeration for the set of allowed permissions for the + * specified principal (representing an entity such as an individual or + * a group). This set of allowed permissions is calculated as + * follows: + *

    + *
  • If there is no entry in this Access Control List for the + * specified principal, an empty permission set is returned. + *
  • Otherwise, the principal's group permission sets are determined. + * (A principal can belong to one or more groups, where a group is a + * group of principals, represented by the Group interface.) + * The group positive permission set is the union of all + * the positive permissions of each group that the principal belongs to. + * The group negative permission set is the union of all + * the negative permissions of each group that the principal belongs to. + * If there is a specific permission that occurs in both + * the positive permission set and the negative permission set, + * it is removed from both.

    + * The individual positive and negative permission sets are also + * determined. The positive permission set contains the permissions + * specified in the positive ACL entry (if any) for the principal. + * Similarly, the negative permission set contains the permissions + * specified in the negative ACL entry (if any) for the principal. + * The individual positive (or negative) permission set is considered + * to be null if there is not a positive (negative) ACL entry for the + * principal in this ACL.

    + * The set of permissions granted to the principal is then calculated + * using the simple rule that individual permissions always override + * the group permissions. That is, the principal's individual negative + * permission set (specific denial of permissions) overrides the group + * positive permission set, and the principal's individual positive + * permission set overrides the group negative permission set. + *

+ */ + // @ts-ignore + getPermissions(user: java.security.Principal): java.util.Enumeration; + /** + * Returns an enumeration of the entries in this ACL. Each element in + * the enumeration is of type AclEntry. + */ + // @ts-ignore + entries(): java.util.Enumeration; + /** + * Checks whether or not the specified principal has the specified + * permission. If it does, true is returned, otherwise false is returned. + * More specifically, this method checks whether the passed permission + * is a member of the allowed permission set of the specified principal. + * The allowed permission set is determined by the same algorithm as is + * used by the {@code getPermissions} method. + */ + // @ts-ignore + checkPermission(principal: java.security.Principal, permission: java.security.acl.Permission): boolean; + /** + * Returns a string representation of the + * ACL contents. + */ + // @ts-ignore + toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.acl.AclEntry.d.ts b/packages/types/dist/typings/jdk/java.security.acl.AclEntry.d.ts new file mode 100644 index 00000000..8520e6ba --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.acl.AclEntry.d.ts @@ -0,0 +1,73 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace acl { + // @ts-ignore + interface AclEntry { + /** + * Specifies the principal for which permissions are granted or denied + * by this ACL entry. If a principal was already set for this ACL entry, + * false is returned, otherwise true is returned. + */ + // @ts-ignore + setPrincipal(user: java.security.Principal): boolean; + /** + * Returns the principal for which permissions are granted or denied by + * this ACL entry. Returns null if there is no principal set for this + * entry yet. + */ + // @ts-ignore + getPrincipal(): java.security.Principal; + /** + * Sets this ACL entry to be a negative one. That is, the associated + * principal (e.g., a user or a group) will be denied the permission set + * specified in the entry. + * Note: ACL entries are by default positive. An entry becomes a + * negative entry only if this {@code setNegativePermissions} + * method is called on it. + */ + // @ts-ignore + setNegativePermissions(): void; + /** + * Returns true if this is a negative ACL entry (one denying the + * associated principal the set of permissions in the entry), false + * otherwise. + */ + // @ts-ignore + isNegative(): boolean; + /** + * Adds the specified permission to this ACL entry. Note: An entry can + * have multiple permissions. + */ + // @ts-ignore + addPermission(permission: java.security.acl.Permission): boolean; + /** + * Removes the specified permission from this ACL entry. + */ + // @ts-ignore + removePermission(permission: java.security.acl.Permission): boolean; + /** + * Checks if the specified permission is part of the + * permission set in this entry. + */ + // @ts-ignore + checkPermission(permission: java.security.acl.Permission): boolean; + /** + * Returns an enumeration of the permissions in this ACL entry. + */ + // @ts-ignore + permissions(): java.util.Enumeration; + /** + * Returns a string representation of the contents of this ACL entry. + */ + // @ts-ignore + toString(): string; + /** + * Clones this ACL entry. + */ + // @ts-ignore + clone(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.acl.AclNotFoundException.d.ts b/packages/types/dist/typings/jdk/java.security.acl.AclNotFoundException.d.ts new file mode 100644 index 00000000..ac360feb --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.acl.AclNotFoundException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace acl { + // @ts-ignore + class AclNotFoundException extends java.lang.Exception { + /** + * Constructs an AclNotFoundException. + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.acl.Group.d.ts b/packages/types/dist/typings/jdk/java.security.acl.Group.d.ts new file mode 100644 index 00000000..0373218f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.acl.Group.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace acl { + // @ts-ignore + interface Group { + /** + * Adds the specified member to the group. + */ + // @ts-ignore + addMember(user: java.security.Principal): boolean; + /** + * Removes the specified member from the group. + */ + // @ts-ignore + removeMember(user: java.security.Principal): boolean; + /** + * Returns true if the passed principal is a member of the group. + * This method does a recursive search, so if a principal belongs to a + * group which is a member of this group, true is returned. + */ + // @ts-ignore + isMember(member: java.security.Principal): boolean; + /** + * Returns an enumeration of the members in the group. + * The returned objects can be instances of either Principal + * or Group (which is a subclass of Principal). + */ + // @ts-ignore + members(): java.util.Enumeration; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.acl.LastOwnerException.d.ts b/packages/types/dist/typings/jdk/java.security.acl.LastOwnerException.d.ts new file mode 100644 index 00000000..d8cb3821 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.acl.LastOwnerException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace acl { + // @ts-ignore + class LastOwnerException extends java.lang.Exception { + /** + * Constructs a LastOwnerException. + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.acl.NotOwnerException.d.ts b/packages/types/dist/typings/jdk/java.security.acl.NotOwnerException.d.ts new file mode 100644 index 00000000..216e5ffc --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.acl.NotOwnerException.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace acl { + // @ts-ignore + class NotOwnerException extends java.lang.Exception { + /** + * Constructs a NotOwnerException. + */ + // @ts-ignore + constructor() + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.acl.Owner.d.ts b/packages/types/dist/typings/jdk/java.security.acl.Owner.d.ts new file mode 100644 index 00000000..bb79ee4f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.acl.Owner.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace acl { + // @ts-ignore + interface Owner { + /** + * Adds an owner. Only owners can modify ACL contents. The caller + * principal must be an owner of the ACL in order to invoke this method. + * That is, only an owner can add another owner. The initial owner is + * configured at ACL construction time. + */ + // @ts-ignore + addOwner(caller: java.security.Principal, owner: java.security.Principal): boolean; + /** + * Deletes an owner. If this is the last owner in the ACL, an exception is + * raised.

+ * The caller principal must be an owner of the ACL in order to invoke + * this method. + */ + // @ts-ignore + deleteOwner(caller: java.security.Principal, owner: java.security.Principal): boolean; + /** + * Returns true if the given principal is an owner of the ACL. + */ + // @ts-ignore + isOwner(owner: java.security.Principal): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.acl.Permission.d.ts b/packages/types/dist/typings/jdk/java.security.acl.Permission.d.ts new file mode 100644 index 00000000..27d6a5d6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.acl.Permission.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace acl { + // @ts-ignore + interface Permission { + /** + * Returns true if the object passed matches the permission represented + * in this interface. + */ + // @ts-ignore + equals(another: java.lang.Object): boolean; + /** + * Prints a string representation of this permission. + */ + // @ts-ignore + toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.CRL.d.ts b/packages/types/dist/typings/jdk/java.security.cert.CRL.d.ts new file mode 100644 index 00000000..6b4f2246 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.CRL.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + abstract class CRL extends java.lang.Object { + /** + * Creates a CRL of the specified type. + */ + // @ts-ignore + constructor(type: string) + /** + * Returns the type of this CRL. + */ + // @ts-ignore + public getType(): string; + /** + * Returns a string representation of this CRL. + */ + // @ts-ignore + public abstract toString(): string; + /** + * Checks whether the given certificate is on this CRL. + */ + // @ts-ignore + public abstract isRevoked(cert: java.security.cert.Certificate): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.CRLException.d.ts b/packages/types/dist/typings/jdk/java.security.cert.CRLException.d.ts new file mode 100644 index 00000000..ea6f101b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.CRLException.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + class CRLException extends java.security.GeneralSecurityException { + /** + * Constructs a CRLException with no detail message. A + * detail message is a String that describes this particular + * exception. + */ + // @ts-ignore + constructor() + /** + * Constructs a CRLException with the specified detail + * message. A detail message is a String that describes this + * particular exception. + */ + // @ts-ignore + constructor(message: string) + /** + * Creates a {@code CRLException} with the specified + * detail message and cause. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Creates a {@code CRLException} with the specified cause + * and a detail message of {@code (cause==null ? null : cause.toString())} + * (which typically contains the class and detail message of + * {@code cause}). + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.CRLReason.d.ts b/packages/types/dist/typings/jdk/java.security.cert.CRLReason.d.ts new file mode 100644 index 00000000..fae3b40e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.CRLReason.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + class CRLReason extends java.lang.Enum { + // @ts-ignore + public static UNSPECIFIED: java.security.cert.CRLReason; + // @ts-ignore + public static KEY_COMPROMISE: java.security.cert.CRLReason; + // @ts-ignore + public static CA_COMPROMISE: java.security.cert.CRLReason; + // @ts-ignore + public static AFFILIATION_CHANGED: java.security.cert.CRLReason; + // @ts-ignore + public static SUPERSEDED: java.security.cert.CRLReason; + // @ts-ignore + public static CESSATION_OF_OPERATION: java.security.cert.CRLReason; + // @ts-ignore + public static CERTIFICATE_HOLD: java.security.cert.CRLReason; + // @ts-ignore + public static UNUSED: java.security.cert.CRLReason; + // @ts-ignore + public static REMOVE_FROM_CRL: java.security.cert.CRLReason; + // @ts-ignore + public static PRIVILEGE_WITHDRAWN: java.security.cert.CRLReason; + // @ts-ignore + public static AA_COMPROMISE: java.security.cert.CRLReason; + // @ts-ignore + public static values(): java.security.cert.CRLReason[]; + // @ts-ignore + public static valueOf(name: string): java.security.cert.CRLReason; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.CRLSelector.d.ts b/packages/types/dist/typings/jdk/java.security.cert.CRLSelector.d.ts new file mode 100644 index 00000000..b56b0857 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.CRLSelector.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + interface CRLSelector { + /** + * Decides whether a {@code CRL} should be selected. + */ + // @ts-ignore + match(crl: java.security.cert.CRL): boolean; + /** + * Makes a copy of this {@code CRLSelector}. Changes to the + * copy will not affect the original and vice versa. + */ + // @ts-ignore + clone(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.CertPath.CertPathRep.d.ts b/packages/types/dist/typings/jdk/java.security.cert.CertPath.CertPathRep.d.ts new file mode 100644 index 00000000..f1f0e06a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.CertPath.CertPathRep.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + namespace CertPath { + // @ts-ignore + protected class CertPathRep extends java.lang.Object { + /** + * Creates a {@code CertPathRep} with the specified + * type and encoded form of a certification path. + */ + // @ts-ignore + constructor(type: string, data: number) + /** + * Returns a {@code CertPath} constructed from the type and data. + */ + // @ts-ignore + protected readResolve(): java.lang.Object; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.CertPath.d.ts b/packages/types/dist/typings/jdk/java.security.cert.CertPath.d.ts new file mode 100644 index 00000000..fcb98eb1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.CertPath.d.ts @@ -0,0 +1,87 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + abstract class CertPath extends java.lang.Object { + /** + * Creates a {@code CertPath} of the specified type. + *

+ * This constructor is protected because most users should use a + * {@code CertificateFactory} to create {@code CertPath}s. + */ + // @ts-ignore + constructor(type: string) + /** + * Returns the type of {@code Certificate}s in this certification + * path. This is the same string that would be returned by + * {@link java.security.cert.Certificate#getType() cert.getType()} + * for all {@code Certificate}s in the certification path. + */ + // @ts-ignore + public getType(): string; + /** + * Returns an iteration of the encodings supported by this certification + * path, with the default encoding first. Attempts to modify the returned + * {@code Iterator} via its {@code remove} method result in an + * {@code UnsupportedOperationException}. + */ + // @ts-ignore + public abstract getEncodings(): java.util.Iterator; + /** + * Compares this certification path for equality with the specified + * object. Two {@code CertPath}s are equal if and only if their + * types are equal and their certificate {@code List}s (and by + * implication the {@code Certificate}s in those {@code List}s) + * are equal. A {@code CertPath} is never equal to an object that is + * not a {@code CertPath}. + *

+ * This algorithm is implemented by this method. If it is overridden, + * the behavior specified here must be maintained. + */ + // @ts-ignore + public equals(other: java.lang.Object): boolean; + /** + * Returns the hashcode for this certification path. The hash code of + * a certification path is defined to be the result of the following + * calculation: + *

{@code
+                 * hashCode = path.getType().hashCode();
+                 * hashCode = 31*hashCode + path.getCertificates().hashCode();
+                 * }
+ * This ensures that {@code path1.equals(path2)} implies that + * {@code path1.hashCode()==path2.hashCode()} for any two certification + * paths, {@code path1} and {@code path2}, as required by the + * general contract of {@code Object.hashCode}. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns a string representation of this certification path. + * This calls the {@code toString} method on each of the + * {@code Certificate}s in the path. + */ + // @ts-ignore + public toString(): string; + /** + * Returns the encoded form of this certification path, using the default + * encoding. + */ + // @ts-ignore + public abstract getEncoded(): number[]; + /** + * Returns the list of certificates in this certification path. + * The {@code List} returned must be immutable and thread-safe. + */ + // @ts-ignore + public abstract getCertificates(): java.util.List; + /** + * Replaces the {@code CertPath} to be serialized with a + * {@code CertPathRep} object. + */ + // @ts-ignore + protected writeReplace(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.CertPathBuilder.d.ts b/packages/types/dist/typings/jdk/java.security.cert.CertPathBuilder.d.ts new file mode 100644 index 00000000..71e897f8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.CertPathBuilder.d.ts @@ -0,0 +1,93 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + class CertPathBuilder extends java.lang.Object { + /** + * Creates a {@code CertPathBuilder} object of the given algorithm, + * and encapsulates the given provider implementation (SPI object) in it. + */ + // @ts-ignore + constructor(builderSpi: java.security.cert.CertPathBuilderSpi, provider: java.security.Provider, algorithm: string) + /** + * Returns a {@code CertPathBuilder} object that implements the + * specified algorithm. + *

This method traverses the list of registered security Providers, + * starting with the most preferred Provider. + * A new CertPathBuilder object encapsulating the + * CertPathBuilderSpi implementation from the first + * Provider that supports the specified algorithm is returned. + *

Note that the list of registered providers may be retrieved via + * the {@link Security#getProviders() Security.getProviders()} method. + */ + // @ts-ignore + public static getInstance(algorithm: string): java.security.cert.CertPathBuilder; + /** + * Returns a {@code CertPathBuilder} object that implements the + * specified algorithm. + *

A new CertPathBuilder object encapsulating the + * CertPathBuilderSpi implementation from the specified provider + * is returned. The specified provider must be registered + * in the security provider list. + *

Note that the list of registered providers may be retrieved via + * the {@link Security#getProviders() Security.getProviders()} method. + */ + // @ts-ignore + public static getInstance(algorithm: string, provider: string): java.security.cert.CertPathBuilder; + /** + * Returns a {@code CertPathBuilder} object that implements the + * specified algorithm. + *

A new CertPathBuilder object encapsulating the + * CertPathBuilderSpi implementation from the specified Provider + * object is returned. Note that the specified Provider object + * does not have to be registered in the provider list. + */ + // @ts-ignore + public static getInstance(algorithm: string, provider: java.security.Provider): java.security.cert.CertPathBuilder; + /** + * Returns the provider of this {@code CertPathBuilder}. + */ + // @ts-ignore + public getProvider(): java.security.Provider; + /** + * Returns the name of the algorithm of this {@code CertPathBuilder}. + */ + // @ts-ignore + public getAlgorithm(): string; + /** + * Attempts to build a certification path using the specified algorithm + * parameter set. + */ + // @ts-ignore + public build(params: java.security.cert.CertPathParameters): java.security.cert.CertPathBuilderResult; + /** + * Returns the default {@code CertPathBuilder} type as specified by + * the {@code certpathbuilder.type} security property, or the string + * {@literal "PKIX"} if no such property exists. + *

The default {@code CertPathBuilder} type can be used by + * applications that do not want to use a hard-coded type when calling one + * of the {@code getInstance} methods, and want to provide a default + * type in case a user does not specify its own. + *

The default {@code CertPathBuilder} type can be changed by + * setting the value of the {@code certpathbuilder.type} security property + * to the desired type. + */ + // @ts-ignore + public static getDefaultType(): string; + /** + * Returns a {@code CertPathChecker} that the encapsulated + * {@code CertPathBuilderSpi} implementation uses to check the revocation + * status of certificates. A PKIX implementation returns objects of + * type {@code PKIXRevocationChecker}. Each invocation of this method + * returns a new instance of {@code CertPathChecker}. + *

The primary purpose of this method is to allow callers to specify + * additional input parameters and options specific to revocation checking. + * See the class description for an example. + */ + // @ts-ignore + public getRevocationChecker(): java.security.cert.CertPathChecker; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.CertPathBuilderException.d.ts b/packages/types/dist/typings/jdk/java.security.cert.CertPathBuilderException.d.ts new file mode 100644 index 00000000..3b51e456 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.CertPathBuilderException.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + class CertPathBuilderException extends java.security.GeneralSecurityException { + /** + * Creates a {@code CertPathBuilderException} with {@code null} + * as its detail message. + */ + // @ts-ignore + constructor() + /** + * Creates a {@code CertPathBuilderException} with the given + * detail message. The detail message is a {@code String} that + * describes this particular exception in more detail. + */ + // @ts-ignore + constructor(msg: string) + /** + * Creates a {@code CertPathBuilderException} that wraps the specified + * throwable. This allows any exception to be converted into a + * {@code CertPathBuilderException}, while retaining information + * about the wrapped exception, which may be useful for debugging. The + * detail message is set to ({@code cause==null ? null : cause.toString()}) + * (which typically contains the class and detail message of + * cause). + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + /** + * Creates a {@code CertPathBuilderException} with the specified + * detail message and cause. + */ + // @ts-ignore + constructor(msg: string, cause: java.lang.Throwable) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.CertPathBuilderResult.d.ts b/packages/types/dist/typings/jdk/java.security.cert.CertPathBuilderResult.d.ts new file mode 100644 index 00000000..1c483e45 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.CertPathBuilderResult.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + interface CertPathBuilderResult { + /** + * Returns the built certification path. + */ + // @ts-ignore + getCertPath(): java.security.cert.CertPath; + /** + * Makes a copy of this {@code CertPathBuilderResult}. Changes to the + * copy will not affect the original and vice versa. + */ + // @ts-ignore + clone(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.CertPathBuilderSpi.d.ts b/packages/types/dist/typings/jdk/java.security.cert.CertPathBuilderSpi.d.ts new file mode 100644 index 00000000..9c1d4e6c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.CertPathBuilderSpi.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + abstract class CertPathBuilderSpi extends java.lang.Object { + /** + * The default constructor. + */ + // @ts-ignore + constructor() + /** + * Attempts to build a certification path using the specified + * algorithm parameter set. + */ + // @ts-ignore + public abstract engineBuild(params: java.security.cert.CertPathParameters): java.security.cert.CertPathBuilderResult; + /** + * Returns a {@code CertPathChecker} that this implementation uses to + * check the revocation status of certificates. A PKIX implementation + * returns objects of type {@code PKIXRevocationChecker}. + *

The primary purpose of this method is to allow callers to specify + * additional input parameters and options specific to revocation checking. + * See the class description of {@code CertPathBuilder} for an example. + *

This method was added to version 1.8 of the Java Platform Standard + * Edition. In order to maintain backwards compatibility with existing + * service providers, this method cannot be abstract and by default throws + * an {@code UnsupportedOperationException}. + */ + // @ts-ignore + public engineGetRevocationChecker(): java.security.cert.CertPathChecker; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.CertPathChecker.d.ts b/packages/types/dist/typings/jdk/java.security.cert.CertPathChecker.d.ts new file mode 100644 index 00000000..cd46e441 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.CertPathChecker.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + interface CertPathChecker { + /** + * Initializes the internal state of this {@code CertPathChecker}. + *

The {@code forward} flag specifies the order that certificates will + * be passed to the {@link #check check} method (forward or reverse). + */ + // @ts-ignore + init(forward: boolean): void; + /** + * Indicates if forward checking is supported. Forward checking refers + * to the ability of the {@code CertPathChecker} to perform its checks + * when certificates are presented to the {@code check} method in the + * forward direction (from target to trust anchor). + */ + // @ts-ignore + isForwardCheckingSupported(): boolean; + /** + * Performs the check(s) on the specified certificate using its internal + * state. The certificates are presented in the order specified by the + * {@code init} method. + */ + // @ts-ignore + check(cert: java.security.cert.Certificate): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.CertPathParameters.d.ts b/packages/types/dist/typings/jdk/java.security.cert.CertPathParameters.d.ts new file mode 100644 index 00000000..ec4d9f01 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.CertPathParameters.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + interface CertPathParameters { + /** + * Makes a copy of this {@code CertPathParameters}. Changes to the + * copy will not affect the original and vice versa. + */ + // @ts-ignore + clone(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.CertPathValidator.d.ts b/packages/types/dist/typings/jdk/java.security.cert.CertPathValidator.d.ts new file mode 100644 index 00000000..eab662b2 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.CertPathValidator.d.ts @@ -0,0 +1,100 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + class CertPathValidator extends java.lang.Object { + /** + * Creates a {@code CertPathValidator} object of the given algorithm, + * and encapsulates the given provider implementation (SPI object) in it. + */ + // @ts-ignore + constructor(validatorSpi: java.security.cert.CertPathValidatorSpi, provider: java.security.Provider, algorithm: string) + /** + * Returns a {@code CertPathValidator} object that implements the + * specified algorithm. + *

This method traverses the list of registered security Providers, + * starting with the most preferred Provider. + * A new CertPathValidator object encapsulating the + * CertPathValidatorSpi implementation from the first + * Provider that supports the specified algorithm is returned. + *

Note that the list of registered providers may be retrieved via + * the {@link Security#getProviders() Security.getProviders()} method. + */ + // @ts-ignore + public static getInstance(algorithm: string): java.security.cert.CertPathValidator; + /** + * Returns a {@code CertPathValidator} object that implements the + * specified algorithm. + *

A new CertPathValidator object encapsulating the + * CertPathValidatorSpi implementation from the specified provider + * is returned. The specified provider must be registered + * in the security provider list. + *

Note that the list of registered providers may be retrieved via + * the {@link Security#getProviders() Security.getProviders()} method. + */ + // @ts-ignore + public static getInstance(algorithm: string, provider: string): java.security.cert.CertPathValidator; + /** + * Returns a {@code CertPathValidator} object that implements the + * specified algorithm. + *

A new CertPathValidator object encapsulating the + * CertPathValidatorSpi implementation from the specified Provider + * object is returned. Note that the specified Provider object + * does not have to be registered in the provider list. + */ + // @ts-ignore + public static getInstance(algorithm: string, provider: java.security.Provider): java.security.cert.CertPathValidator; + /** + * Returns the {@code Provider} of this + * {@code CertPathValidator}. + */ + // @ts-ignore + public getProvider(): java.security.Provider; + /** + * Returns the algorithm name of this {@code CertPathValidator}. + */ + // @ts-ignore + public getAlgorithm(): string; + /** + * Validates the specified certification path using the specified + * algorithm parameter set. + *

+ * The {@code CertPath} specified must be of a type that is + * supported by the validation algorithm, otherwise an + * {@code InvalidAlgorithmParameterException} will be thrown. For + * example, a {@code CertPathValidator} that implements the PKIX + * algorithm validates {@code CertPath} objects of type X.509. + */ + // @ts-ignore + public validate(certPath: java.security.cert.CertPath, params: java.security.cert.CertPathParameters): java.security.cert.CertPathValidatorResult; + /** + * Returns the default {@code CertPathValidator} type as specified by + * the {@code certpathvalidator.type} security property, or the string + * {@literal "PKIX"} if no such property exists. + *

The default {@code CertPathValidator} type can be used by + * applications that do not want to use a hard-coded type when calling one + * of the {@code getInstance} methods, and want to provide a default + * type in case a user does not specify its own. + *

The default {@code CertPathValidator} type can be changed by + * setting the value of the {@code certpathvalidator.type} security + * property to the desired type. + */ + // @ts-ignore + public static getDefaultType(): string; + /** + * Returns a {@code CertPathChecker} that the encapsulated + * {@code CertPathValidatorSpi} implementation uses to check the revocation + * status of certificates. A PKIX implementation returns objects of + * type {@code PKIXRevocationChecker}. Each invocation of this method + * returns a new instance of {@code CertPathChecker}. + *

The primary purpose of this method is to allow callers to specify + * additional input parameters and options specific to revocation checking. + * See the class description for an example. + */ + // @ts-ignore + public getRevocationChecker(): java.security.cert.CertPathChecker; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.CertPathValidatorException.BasicReason.d.ts b/packages/types/dist/typings/jdk/java.security.cert.CertPathValidatorException.BasicReason.d.ts new file mode 100644 index 00000000..9f589579 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.CertPathValidatorException.BasicReason.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + namespace CertPathValidatorException { + // @ts-ignore + class BasicReason extends java.lang.Enum { + // @ts-ignore + public static UNSPECIFIED: java.security.cert.CertPathValidatorException.BasicReason; + // @ts-ignore + public static EXPIRED: java.security.cert.CertPathValidatorException.BasicReason; + // @ts-ignore + public static NOT_YET_VALID: java.security.cert.CertPathValidatorException.BasicReason; + // @ts-ignore + public static REVOKED: java.security.cert.CertPathValidatorException.BasicReason; + // @ts-ignore + public static UNDETERMINED_REVOCATION_STATUS: java.security.cert.CertPathValidatorException.BasicReason; + // @ts-ignore + public static INVALID_SIGNATURE: java.security.cert.CertPathValidatorException.BasicReason; + // @ts-ignore + public static ALGORITHM_CONSTRAINED: java.security.cert.CertPathValidatorException.BasicReason; + // @ts-ignore + public static values(): java.security.cert.CertPathValidatorException.BasicReason[]; + // @ts-ignore + public static valueOf(name: string): java.security.cert.CertPathValidatorException.BasicReason; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.CertPathValidatorException.Reason.d.ts b/packages/types/dist/typings/jdk/java.security.cert.CertPathValidatorException.Reason.d.ts new file mode 100644 index 00000000..e7d843ec --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.CertPathValidatorException.Reason.d.ts @@ -0,0 +1,12 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + namespace CertPathValidatorException { + // @ts-ignore + interface Reason { + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.CertPathValidatorException.d.ts b/packages/types/dist/typings/jdk/java.security.cert.CertPathValidatorException.d.ts new file mode 100644 index 00000000..5514ea0e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.CertPathValidatorException.d.ts @@ -0,0 +1,73 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + class CertPathValidatorException extends java.security.GeneralSecurityException { + /** + * Creates a {@code CertPathValidatorException} with + * no detail message. + */ + // @ts-ignore + constructor() + /** + * Creates a {@code CertPathValidatorException} with the given + * detail message. A detail message is a {@code String} that + * describes this particular exception. + */ + // @ts-ignore + constructor(msg: string) + /** + * Creates a {@code CertPathValidatorException} that wraps the + * specified throwable. This allows any exception to be converted into a + * {@code CertPathValidatorException}, while retaining information + * about the wrapped exception, which may be useful for debugging. The + * detail message is set to ({@code cause==null ? null : cause.toString()}) + * (which typically contains the class and detail message of + * cause). + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + /** + * Creates a {@code CertPathValidatorException} with the specified + * detail message and cause. + */ + // @ts-ignore + constructor(msg: string, cause: java.lang.Throwable) + /** + * Creates a {@code CertPathValidatorException} with the specified + * detail message, cause, certification path, and index. + */ + // @ts-ignore + constructor(msg: string, cause: java.lang.Throwable, certPath: java.security.cert.CertPath, index: number) + /** + * Creates a {@code CertPathValidatorException} with the specified + * detail message, cause, certification path, index, and reason. + */ + // @ts-ignore + constructor(msg: string, cause: java.lang.Throwable, certPath: java.security.cert.CertPath, index: number, reason: java.security.cert.CertPathValidatorException.Reason) + /** + * Returns the certification path that was being validated when + * the exception was thrown. + */ + // @ts-ignore + public getCertPath(): java.security.cert.CertPath; + /** + * Returns the index of the certificate in the certification path + * that caused the exception to be thrown. Note that the list of + * certificates in a {@code CertPath} is zero based. If no + * index has been set, -1 is returned. + */ + // @ts-ignore + public getIndex(): number; + /** + * Returns the reason that the validation failed. The reason is + * associated with the index of the certificate returned by + * {@link #getIndex}. + */ + // @ts-ignore + public getReason(): java.security.cert.CertPathValidatorException.Reason; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.CertPathValidatorResult.d.ts b/packages/types/dist/typings/jdk/java.security.cert.CertPathValidatorResult.d.ts new file mode 100644 index 00000000..2efd5c69 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.CertPathValidatorResult.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + interface CertPathValidatorResult { + /** + * Makes a copy of this {@code CertPathValidatorResult}. Changes to the + * copy will not affect the original and vice versa. + */ + // @ts-ignore + clone(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.CertPathValidatorSpi.d.ts b/packages/types/dist/typings/jdk/java.security.cert.CertPathValidatorSpi.d.ts new file mode 100644 index 00000000..34a4d2c7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.CertPathValidatorSpi.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + abstract class CertPathValidatorSpi extends java.lang.Object { + /** + * The default constructor. + */ + // @ts-ignore + constructor() + /** + * Validates the specified certification path using the specified + * algorithm parameter set. + *

+ * The {@code CertPath} specified must be of a type that is + * supported by the validation algorithm, otherwise an + * {@code InvalidAlgorithmParameterException} will be thrown. For + * example, a {@code CertPathValidator} that implements the PKIX + * algorithm validates {@code CertPath} objects of type X.509. + */ + // @ts-ignore + public abstract engineValidate(certPath: java.security.cert.CertPath, params: java.security.cert.CertPathParameters): java.security.cert.CertPathValidatorResult; + /** + * Returns a {@code CertPathChecker} that this implementation uses to + * check the revocation status of certificates. A PKIX implementation + * returns objects of type {@code PKIXRevocationChecker}. + *

The primary purpose of this method is to allow callers to specify + * additional input parameters and options specific to revocation checking. + * See the class description of {@code CertPathValidator} for an example. + *

This method was added to version 1.8 of the Java Platform Standard + * Edition. In order to maintain backwards compatibility with existing + * service providers, this method cannot be abstract and by default throws + * an {@code UnsupportedOperationException}. + */ + // @ts-ignore + public engineGetRevocationChecker(): java.security.cert.CertPathChecker; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.CertSelector.d.ts b/packages/types/dist/typings/jdk/java.security.cert.CertSelector.d.ts new file mode 100644 index 00000000..567c9df5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.CertSelector.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + interface CertSelector { + /** + * Decides whether a {@code Certificate} should be selected. + */ + // @ts-ignore + match(cert: java.security.cert.Certificate): boolean; + /** + * Makes a copy of this {@code CertSelector}. Changes to the + * copy will not affect the original and vice versa. + */ + // @ts-ignore + clone(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.CertStore.d.ts b/packages/types/dist/typings/jdk/java.security.cert.CertStore.d.ts new file mode 100644 index 00000000..ee886be0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.CertStore.d.ts @@ -0,0 +1,138 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + class CertStore extends java.lang.Object { + /** + * Creates a {@code CertStore} object of the given type, and + * encapsulates the given provider implementation (SPI object) in it. + */ + // @ts-ignore + constructor(storeSpi: java.security.cert.CertStoreSpi, provider: java.security.Provider, type: string, params: java.security.cert.CertStoreParameters) + /** + * Returns a {@code Collection} of {@code Certificate}s that + * match the specified selector. If no {@code Certificate}s + * match the selector, an empty {@code Collection} will be returned. + *

+ * For some {@code CertStore} types, the resulting + * {@code Collection} may not contain all of the + * {@code Certificate}s that match the selector. For instance, + * an LDAP {@code CertStore} may not search all entries in the + * directory. Instead, it may just search entries that are likely to + * contain the {@code Certificate}s it is looking for. + *

+ * Some {@code CertStore} implementations (especially LDAP + * {@code CertStore}s) may throw a {@code CertStoreException} + * unless a non-null {@code CertSelector} is provided that + * includes specific criteria that can be used to find the certificates. + * Issuer and/or subject names are especially useful criteria. + */ + // @ts-ignore + public getCertificates(selector: java.security.cert.CertSelector): java.util.Collection; + /** + * Returns a {@code Collection} of {@code CRL}s that + * match the specified selector. If no {@code CRL}s + * match the selector, an empty {@code Collection} will be returned. + *

+ * For some {@code CertStore} types, the resulting + * {@code Collection} may not contain all of the + * {@code CRL}s that match the selector. For instance, + * an LDAP {@code CertStore} may not search all entries in the + * directory. Instead, it may just search entries that are likely to + * contain the {@code CRL}s it is looking for. + *

+ * Some {@code CertStore} implementations (especially LDAP + * {@code CertStore}s) may throw a {@code CertStoreException} + * unless a non-null {@code CRLSelector} is provided that + * includes specific criteria that can be used to find the CRLs. + * Issuer names and/or the certificate to be checked are especially useful. + */ + // @ts-ignore + public getCRLs(selector: java.security.cert.CRLSelector): java.util.Collection; + /** + * Returns a {@code CertStore} object that implements the specified + * {@code CertStore} type and is initialized with the specified + * parameters. + *

This method traverses the list of registered security Providers, + * starting with the most preferred Provider. + * A new CertStore object encapsulating the + * CertStoreSpi implementation from the first + * Provider that supports the specified type is returned. + *

Note that the list of registered providers may be retrieved via + * the {@link Security#getProviders() Security.getProviders()} method. + *

The {@code CertStore} that is returned is initialized with the + * specified {@code CertStoreParameters}. The type of parameters + * needed may vary between different types of {@code CertStore}s. + * Note that the specified {@code CertStoreParameters} object is + * cloned. + */ + // @ts-ignore + public static getInstance(type: string, params: java.security.cert.CertStoreParameters): java.security.cert.CertStore; + /** + * Returns a {@code CertStore} object that implements the specified + * {@code CertStore} type. + *

A new CertStore object encapsulating the + * CertStoreSpi implementation from the specified provider + * is returned. The specified provider must be registered + * in the security provider list. + *

Note that the list of registered providers may be retrieved via + * the {@link Security#getProviders() Security.getProviders()} method. + *

The {@code CertStore} that is returned is initialized with the + * specified {@code CertStoreParameters}. The type of parameters + * needed may vary between different types of {@code CertStore}s. + * Note that the specified {@code CertStoreParameters} object is + * cloned. + */ + // @ts-ignore + public static getInstance(type: string, params: java.security.cert.CertStoreParameters, provider: string): java.security.cert.CertStore; + /** + * Returns a {@code CertStore} object that implements the specified + * {@code CertStore} type. + *

A new CertStore object encapsulating the + * CertStoreSpi implementation from the specified Provider + * object is returned. Note that the specified Provider object + * does not have to be registered in the provider list. + *

The {@code CertStore} that is returned is initialized with the + * specified {@code CertStoreParameters}. The type of parameters + * needed may vary between different types of {@code CertStore}s. + * Note that the specified {@code CertStoreParameters} object is + * cloned. + */ + // @ts-ignore + public static getInstance(type: string, params: java.security.cert.CertStoreParameters, provider: java.security.Provider): java.security.cert.CertStore; + /** + * Returns the parameters used to initialize this {@code CertStore}. + * Note that the {@code CertStoreParameters} object is cloned before + * it is returned. + */ + // @ts-ignore + public getCertStoreParameters(): java.security.cert.CertStoreParameters; + /** + * Returns the type of this {@code CertStore}. + */ + // @ts-ignore + public getType(): string; + /** + * Returns the provider of this {@code CertStore}. + */ + // @ts-ignore + public getProvider(): java.security.Provider; + /** + * Returns the default {@code CertStore} type as specified by the + * {@code certstore.type} security property, or the string + * {@literal "LDAP"} if no such property exists. + *

The default {@code CertStore} type can be used by applications + * that do not want to use a hard-coded type when calling one of the + * {@code getInstance} methods, and want to provide a default + * {@code CertStore} type in case a user does not specify its own. + *

The default {@code CertStore} type can be changed by setting + * the value of the {@code certstore.type} security property to the + * desired type. + */ + // @ts-ignore + public static getDefaultType(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.CertStoreException.d.ts b/packages/types/dist/typings/jdk/java.security.cert.CertStoreException.d.ts new file mode 100644 index 00000000..85e696c7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.CertStoreException.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + class CertStoreException extends java.security.GeneralSecurityException { + /** + * Creates a {@code CertStoreException} with {@code null} as + * its detail message. + */ + // @ts-ignore + constructor() + /** + * Creates a {@code CertStoreException} with the given detail + * message. A detail message is a {@code String} that describes this + * particular exception. + */ + // @ts-ignore + constructor(msg: string) + /** + * Creates a {@code CertStoreException} that wraps the specified + * throwable. This allows any exception to be converted into a + * {@code CertStoreException}, while retaining information about the + * cause, which may be useful for debugging. The detail message is + * set to ({@code cause==null ? null : cause.toString()}) (which + * typically contains the class and detail message of cause). + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + /** + * Creates a {@code CertStoreException} with the specified detail + * message and cause. + */ + // @ts-ignore + constructor(msg: string, cause: java.lang.Throwable) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.CertStoreParameters.d.ts b/packages/types/dist/typings/jdk/java.security.cert.CertStoreParameters.d.ts new file mode 100644 index 00000000..be1b5e22 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.CertStoreParameters.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + interface CertStoreParameters { + /** + * Makes a copy of this {@code CertStoreParameters}. + *

+ * The precise meaning of "copy" may depend on the class of + * the {@code CertStoreParameters} object. A typical implementation + * performs a "deep copy" of this object, but this is not an absolute + * requirement. Some implementations may perform a "shallow copy" of some + * or all of the fields of this object. + *

+ * Note that the {@code CertStore.getInstance} methods make a copy + * of the specified {@code CertStoreParameters}. A deep copy + * implementation of {@code clone} is safer and more robust, as it + * prevents the caller from corrupting a shared {@code CertStore} by + * subsequently modifying the contents of its initialization parameters. + * However, a shallow copy implementation of {@code clone} is more + * appropriate for applications that need to hold a reference to a + * parameter contained in the {@code CertStoreParameters}. For example, + * a shallow copy clone allows an application to release the resources of + * a particular {@code CertStore} initialization parameter immediately, + * rather than waiting for the garbage collection mechanism. This should + * be done with the utmost care, since the {@code CertStore} may still + * be in use by other threads. + *

+ * Each subclass should state the precise behavior of this method so + * that users and developers know what to expect. + */ + // @ts-ignore + clone(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.CertStoreSpi.d.ts b/packages/types/dist/typings/jdk/java.security.cert.CertStoreSpi.d.ts new file mode 100644 index 00000000..6a0ad997 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.CertStoreSpi.d.ts @@ -0,0 +1,55 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + abstract class CertStoreSpi extends java.lang.Object { + /** + * The sole constructor. + */ + // @ts-ignore + constructor(params: java.security.cert.CertStoreParameters) + /** + * Returns a {@code Collection} of {@code Certificate}s that + * match the specified selector. If no {@code Certificate}s + * match the selector, an empty {@code Collection} will be returned. + *

+ * For some {@code CertStore} types, the resulting + * {@code Collection} may not contain all of the + * {@code Certificate}s that match the selector. For instance, + * an LDAP {@code CertStore} may not search all entries in the + * directory. Instead, it may just search entries that are likely to + * contain the {@code Certificate}s it is looking for. + *

+ * Some {@code CertStore} implementations (especially LDAP + * {@code CertStore}s) may throw a {@code CertStoreException} + * unless a non-null {@code CertSelector} is provided that includes + * specific criteria that can be used to find the certificates. Issuer + * and/or subject names are especially useful criteria. + */ + // @ts-ignore + public abstract engineGetCertificates(selector: java.security.cert.CertSelector): java.util.Collection; + /** + * Returns a {@code Collection} of {@code CRL}s that + * match the specified selector. If no {@code CRL}s + * match the selector, an empty {@code Collection} will be returned. + *

+ * For some {@code CertStore} types, the resulting + * {@code Collection} may not contain all of the + * {@code CRL}s that match the selector. For instance, + * an LDAP {@code CertStore} may not search all entries in the + * directory. Instead, it may just search entries that are likely to + * contain the {@code CRL}s it is looking for. + *

+ * Some {@code CertStore} implementations (especially LDAP + * {@code CertStore}s) may throw a {@code CertStoreException} + * unless a non-null {@code CRLSelector} is provided that includes + * specific criteria that can be used to find the CRLs. Issuer names + * and/or the certificate to be checked are especially useful. + */ + // @ts-ignore + public abstract engineGetCRLs(selector: java.security.cert.CRLSelector): java.util.Collection; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.Certificate.CertificateRep.d.ts b/packages/types/dist/typings/jdk/java.security.cert.Certificate.CertificateRep.d.ts new file mode 100644 index 00000000..2110c97a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.Certificate.CertificateRep.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + namespace Certificate { + // @ts-ignore + protected class CertificateRep extends java.lang.Object { + /** + * Construct the alternate Certificate class with the Certificate + * type and Certificate encoding bytes. + *

+ */ + // @ts-ignore + constructor(type: string, data: number) + /** + * Resolve the Certificate Object. + *

+ */ + // @ts-ignore + protected readResolve(): java.lang.Object; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.Certificate.d.ts b/packages/types/dist/typings/jdk/java.security.cert.Certificate.d.ts new file mode 100644 index 00000000..02f68324 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.Certificate.d.ts @@ -0,0 +1,77 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + abstract class Certificate extends java.lang.Object { + /** + * Creates a certificate of the specified type. + */ + // @ts-ignore + constructor(type: string) + /** + * Returns the type of this certificate. + */ + // @ts-ignore + public getType(): string; + /** + * Compares this certificate for equality with the specified + * object. If the {@code other} object is an + * {@code instanceof} {@code Certificate}, then + * its encoded form is retrieved and compared with the + * encoded form of this certificate. + */ + // @ts-ignore + public equals(other: java.lang.Object): boolean; + /** + * Returns a hashcode value for this certificate from its + * encoded form. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns the encoded form of this certificate. It is + * assumed that each certificate type would have only a single + * form of encoding; for example, X.509 certificates would + * be encoded as ASN.1 DER. + */ + // @ts-ignore + public abstract getEncoded(): number[]; + /** + * Verifies that this certificate was signed using the + * private key that corresponds to the specified public key. + */ + // @ts-ignore + public abstract verify(key: java.security.PublicKey): void; + /** + * Verifies that this certificate was signed using the + * private key that corresponds to the specified public key. + * This method uses the signature verification engine + * supplied by the specified provider. Note that the specified + * Provider object does not have to be registered in the provider list. + *

This method was added to version 1.8 of the Java Platform + * Standard Edition. In order to maintain backwards compatibility with + * existing service providers, this method cannot be {@code abstract} + * and by default throws an {@code UnsupportedOperationException}. + */ + // @ts-ignore + public verify(key: java.security.PublicKey, sigProvider: java.security.Provider): void; + /** + * Returns a string representation of this certificate. + */ + // @ts-ignore + public abstract toString(): string; + /** + * Gets the public key from this certificate. + */ + // @ts-ignore + public abstract getPublicKey(): java.security.PublicKey; + /** + * Replace the Certificate to be serialized. + */ + // @ts-ignore + protected writeReplace(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.CertificateEncodingException.d.ts b/packages/types/dist/typings/jdk/java.security.cert.CertificateEncodingException.d.ts new file mode 100644 index 00000000..9a6ad563 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.CertificateEncodingException.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + class CertificateEncodingException extends java.security.cert.CertificateException { + /** + * Constructs a CertificateEncodingException with no detail message. A + * detail message is a String that describes this particular + * exception. + */ + // @ts-ignore + constructor() + /** + * Constructs a CertificateEncodingException with the specified detail + * message. A detail message is a String that describes this + * particular exception. + */ + // @ts-ignore + constructor(message: string) + /** + * Creates a {@code CertificateEncodingException} with the specified + * detail message and cause. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Creates a {@code CertificateEncodingException} + * with the specified cause and a detail message of + * {@code (cause==null ? null : cause.toString())} + * (which typically contains the class and detail message of + * {@code cause}). + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.CertificateException.d.ts b/packages/types/dist/typings/jdk/java.security.cert.CertificateException.d.ts new file mode 100644 index 00000000..b095f05f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.CertificateException.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + class CertificateException extends java.security.GeneralSecurityException { + /** + * Constructs a certificate exception with no detail message. A detail + * message is a String that describes this particular exception. + */ + // @ts-ignore + constructor() + /** + * Constructs a certificate exception with the given detail + * message. A detail message is a String that describes this + * particular exception. + */ + // @ts-ignore + constructor(msg: string) + /** + * Creates a {@code CertificateException} with the specified + * detail message and cause. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Creates a {@code CertificateException} with the specified cause + * and a detail message of {@code (cause==null ? null : cause.toString())} + * (which typically contains the class and detail message of + * {@code cause}). + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.CertificateExpiredException.d.ts b/packages/types/dist/typings/jdk/java.security.cert.CertificateExpiredException.d.ts new file mode 100644 index 00000000..041b0695 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.CertificateExpiredException.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + class CertificateExpiredException extends java.security.cert.CertificateException { + /** + * Constructs a CertificateExpiredException with no detail message. A + * detail message is a String that describes this particular + * exception. + */ + // @ts-ignore + constructor() + /** + * Constructs a CertificateExpiredException with the specified detail + * message. A detail message is a String that describes this + * particular exception. + */ + // @ts-ignore + constructor(message: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.CertificateFactory.d.ts b/packages/types/dist/typings/jdk/java.security.cert.CertificateFactory.d.ts new file mode 100644 index 00000000..5a7d6b1c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.CertificateFactory.d.ts @@ -0,0 +1,206 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + class CertificateFactory extends java.lang.Object { + /** + * Creates a CertificateFactory object of the given type, and encapsulates + * the given provider implementation (SPI object) in it. + */ + // @ts-ignore + constructor(certFacSpi: java.security.cert.CertificateFactorySpi, provider: java.security.Provider, type: string) + /** + * Returns a certificate factory object that implements the + * specified certificate type. + *

This method traverses the list of registered security Providers, + * starting with the most preferred Provider. + * A new CertificateFactory object encapsulating the + * CertificateFactorySpi implementation from the first + * Provider that supports the specified type is returned. + *

Note that the list of registered providers may be retrieved via + * the {@link Security#getProviders() Security.getProviders()} method. + */ + // @ts-ignore + public static getInstance(type: string): java.security.cert.CertificateFactory; + /** + * Returns a certificate factory object for the specified + * certificate type. + *

A new CertificateFactory object encapsulating the + * CertificateFactorySpi implementation from the specified provider + * is returned. The specified provider must be registered + * in the security provider list. + *

Note that the list of registered providers may be retrieved via + * the {@link Security#getProviders() Security.getProviders()} method. + */ + // @ts-ignore + public static getInstance(type: string, provider: string): java.security.cert.CertificateFactory; + /** + * Returns a certificate factory object for the specified + * certificate type. + *

A new CertificateFactory object encapsulating the + * CertificateFactorySpi implementation from the specified Provider + * object is returned. Note that the specified Provider object + * does not have to be registered in the provider list. + */ + // @ts-ignore + public static getInstance(type: string, provider: java.security.Provider): java.security.cert.CertificateFactory; + /** + * Returns the provider of this certificate factory. + */ + // @ts-ignore + public getProvider(): java.security.Provider; + /** + * Returns the name of the certificate type associated with this + * certificate factory. + */ + // @ts-ignore + public getType(): string; + /** + * Generates a certificate object and initializes it with + * the data read from the input stream {@code inStream}. + *

In order to take advantage of the specialized certificate format + * supported by this certificate factory, + * the returned certificate object can be typecast to the corresponding + * certificate class. For example, if this certificate + * factory implements X.509 certificates, the returned certificate object + * can be typecast to the {@code X509Certificate} class. + *

In the case of a certificate factory for X.509 certificates, the + * certificate provided in {@code inStream} must be DER-encoded and + * may be supplied in binary or printable (Base64) encoding. If the + * certificate is provided in Base64 encoding, it must be bounded at + * the beginning by -----BEGIN CERTIFICATE-----, and must be bounded at + * the end by -----END CERTIFICATE-----. + *

Note that if the given input stream does not support + * {@link java.io.InputStream#mark(int) mark} and + * {@link java.io.InputStream#reset() reset}, this method will + * consume the entire input stream. Otherwise, each call to this + * method consumes one certificate and the read position of the + * input stream is positioned to the next available byte after + * the inherent end-of-certificate marker. If the data in the input stream + * does not contain an inherent end-of-certificate marker (other + * than EOF) and there is trailing data after the certificate is parsed, a + * {@code CertificateException} is thrown. + */ + // @ts-ignore + public generateCertificate(inStream: java.io.InputStream): java.security.cert.Certificate; + /** + * Returns an iteration of the {@code CertPath} encodings supported + * by this certificate factory, with the default encoding first. See + * the CertPath Encodings section in the + * Java Cryptography Architecture Standard Algorithm Name Documentation + * for information about standard encoding names and their formats. + *

+ * Attempts to modify the returned {@code Iterator} via its + * {@code remove} method result in an + * {@code UnsupportedOperationException}. + */ + // @ts-ignore + public getCertPathEncodings(): java.util.Iterator; + /** + * Generates a {@code CertPath} object and initializes it with + * the data read from the {@code InputStream} inStream. The data + * is assumed to be in the default encoding. The name of the default + * encoding is the first element of the {@code Iterator} returned by + * the {@link #getCertPathEncodings getCertPathEncodings} method. + */ + // @ts-ignore + public generateCertPath(inStream: java.io.InputStream): java.security.cert.CertPath; + /** + * Generates a {@code CertPath} object and initializes it with + * the data read from the {@code InputStream} inStream. The data + * is assumed to be in the specified encoding. See + * the CertPath Encodings section in the + * Java Cryptography Architecture Standard Algorithm Name Documentation + * for information about standard encoding names and their formats. + */ + // @ts-ignore + public generateCertPath(inStream: java.io.InputStream, encoding: string): java.security.cert.CertPath; + /** + * Generates a {@code CertPath} object and initializes it with + * a {@code List} of {@code Certificate}s. + *

+ * The certificates supplied must be of a type supported by the + * {@code CertificateFactory}. They will be copied out of the supplied + * {@code List} object. + */ + // @ts-ignore + public generateCertPath(certificates: java.util.List): java.security.cert.CertPath; + /** + * Returns a (possibly empty) collection view of the certificates read + * from the given input stream {@code inStream}. + *

In order to take advantage of the specialized certificate format + * supported by this certificate factory, each element in + * the returned collection view can be typecast to the corresponding + * certificate class. For example, if this certificate + * factory implements X.509 certificates, the elements in the returned + * collection can be typecast to the {@code X509Certificate} class. + *

In the case of a certificate factory for X.509 certificates, + * {@code inStream} may contain a sequence of DER-encoded certificates + * in the formats described for + * {@link #generateCertificate(java.io.InputStream) generateCertificate}. + * In addition, {@code inStream} may contain a PKCS#7 certificate + * chain. This is a PKCS#7 SignedData object, with the only + * significant field being certificates. In particular, the + * signature and the contents are ignored. This format allows multiple + * certificates to be downloaded at once. If no certificates are present, + * an empty collection is returned. + *

Note that if the given input stream does not support + * {@link java.io.InputStream#mark(int) mark} and + * {@link java.io.InputStream#reset() reset}, this method will + * consume the entire input stream. + */ + // @ts-ignore + public generateCertificates(inStream: java.io.InputStream): java.util.Collection; + /** + * Generates a certificate revocation list (CRL) object and initializes it + * with the data read from the input stream {@code inStream}. + *

In order to take advantage of the specialized CRL format + * supported by this certificate factory, + * the returned CRL object can be typecast to the corresponding + * CRL class. For example, if this certificate + * factory implements X.509 CRLs, the returned CRL object + * can be typecast to the {@code X509CRL} class. + *

Note that if the given input stream does not support + * {@link java.io.InputStream#mark(int) mark} and + * {@link java.io.InputStream#reset() reset}, this method will + * consume the entire input stream. Otherwise, each call to this + * method consumes one CRL and the read position of the input stream + * is positioned to the next available byte after the inherent + * end-of-CRL marker. If the data in the + * input stream does not contain an inherent end-of-CRL marker (other + * than EOF) and there is trailing data after the CRL is parsed, a + * {@code CRLException} is thrown. + */ + // @ts-ignore + public generateCRL(inStream: java.io.InputStream): java.security.cert.CRL; + /** + * Returns a (possibly empty) collection view of the CRLs read + * from the given input stream {@code inStream}. + *

In order to take advantage of the specialized CRL format + * supported by this certificate factory, each element in + * the returned collection view can be typecast to the corresponding + * CRL class. For example, if this certificate + * factory implements X.509 CRLs, the elements in the returned + * collection can be typecast to the {@code X509CRL} class. + *

In the case of a certificate factory for X.509 CRLs, + * {@code inStream} may contain a sequence of DER-encoded CRLs. + * In addition, {@code inStream} may contain a PKCS#7 CRL + * set. This is a PKCS#7 SignedData object, with the only + * significant field being crls. In particular, the + * signature and the contents are ignored. This format allows multiple + * CRLs to be downloaded at once. If no CRLs are present, + * an empty collection is returned. + *

Note that if the given input stream does not support + * {@link java.io.InputStream#mark(int) mark} and + * {@link java.io.InputStream#reset() reset}, this method will + * consume the entire input stream. + */ + // @ts-ignore + public generateCRLs(inStream: java.io.InputStream): java.util.Collection; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.CertificateFactorySpi.d.ts b/packages/types/dist/typings/jdk/java.security.cert.CertificateFactorySpi.d.ts new file mode 100644 index 00000000..14bed45f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.CertificateFactorySpi.d.ts @@ -0,0 +1,167 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + abstract class CertificateFactorySpi extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Generates a certificate object and initializes it with + * the data read from the input stream {@code inStream}. + *

In order to take advantage of the specialized certificate format + * supported by this certificate factory, + * the returned certificate object can be typecast to the corresponding + * certificate class. For example, if this certificate + * factory implements X.509 certificates, the returned certificate object + * can be typecast to the {@code X509Certificate} class. + *

In the case of a certificate factory for X.509 certificates, the + * certificate provided in {@code inStream} must be DER-encoded and + * may be supplied in binary or printable (Base64) encoding. If the + * certificate is provided in Base64 encoding, it must be bounded at + * the beginning by -----BEGIN CERTIFICATE-----, and must be bounded at + * the end by -----END CERTIFICATE-----. + *

Note that if the given input stream does not support + * {@link java.io.InputStream#mark(int) mark} and + * {@link java.io.InputStream#reset() reset}, this method will + * consume the entire input stream. Otherwise, each call to this + * method consumes one certificate and the read position of the input stream + * is positioned to the next available byte after the inherent + * end-of-certificate marker. If the data in the + * input stream does not contain an inherent end-of-certificate marker (other + * than EOF) and there is trailing data after the certificate is parsed, a + * {@code CertificateException} is thrown. + */ + // @ts-ignore + public abstract engineGenerateCertificate(inStream: java.io.InputStream): java.security.cert.Certificate; + /** + * Generates a {@code CertPath} object and initializes it with + * the data read from the {@code InputStream} inStream. The data + * is assumed to be in the default encoding. + *

This method was added to version 1.4 of the Java 2 Platform + * Standard Edition. In order to maintain backwards compatibility with + * existing service providers, this method cannot be {@code abstract} + * and by default throws an {@code UnsupportedOperationException}. + */ + // @ts-ignore + public engineGenerateCertPath(inStream: java.io.InputStream): java.security.cert.CertPath; + /** + * Generates a {@code CertPath} object and initializes it with + * the data read from the {@code InputStream} inStream. The data + * is assumed to be in the specified encoding. + *

This method was added to version 1.4 of the Java 2 Platform + * Standard Edition. In order to maintain backwards compatibility with + * existing service providers, this method cannot be {@code abstract} + * and by default throws an {@code UnsupportedOperationException}. + */ + // @ts-ignore + public engineGenerateCertPath(inStream: java.io.InputStream, encoding: string): java.security.cert.CertPath; + /** + * Generates a {@code CertPath} object and initializes it with + * a {@code List} of {@code Certificate}s. + *

+ * The certificates supplied must be of a type supported by the + * {@code CertificateFactory}. They will be copied out of the supplied + * {@code List} object. + *

This method was added to version 1.4 of the Java 2 Platform + * Standard Edition. In order to maintain backwards compatibility with + * existing service providers, this method cannot be {@code abstract} + * and by default throws an {@code UnsupportedOperationException}. + */ + // @ts-ignore + public engineGenerateCertPath(certificates: java.util.List): java.security.cert.CertPath; + /** + * Returns an iteration of the {@code CertPath} encodings supported + * by this certificate factory, with the default encoding first. See + * the CertPath Encodings section in the + * Java Cryptography Architecture Standard Algorithm Name Documentation + * for information about standard encoding names. + *

+ * Attempts to modify the returned {@code Iterator} via its + * {@code remove} method result in an + * {@code UnsupportedOperationException}. + *

This method was added to version 1.4 of the Java 2 Platform + * Standard Edition. In order to maintain backwards compatibility with + * existing service providers, this method cannot be {@code abstract} + * and by default throws an {@code UnsupportedOperationException}. + */ + // @ts-ignore + public engineGetCertPathEncodings(): java.util.Iterator; + /** + * Returns a (possibly empty) collection view of the certificates read + * from the given input stream {@code inStream}. + *

In order to take advantage of the specialized certificate format + * supported by this certificate factory, each element in + * the returned collection view can be typecast to the corresponding + * certificate class. For example, if this certificate + * factory implements X.509 certificates, the elements in the returned + * collection can be typecast to the {@code X509Certificate} class. + *

In the case of a certificate factory for X.509 certificates, + * {@code inStream} may contain a single DER-encoded certificate + * in the formats described for + * {@link CertificateFactory#generateCertificate(java.io.InputStream) + * generateCertificate}. + * In addition, {@code inStream} may contain a PKCS#7 certificate + * chain. This is a PKCS#7 SignedData object, with the only + * significant field being certificates. In particular, the + * signature and the contents are ignored. This format allows multiple + * certificates to be downloaded at once. If no certificates are present, + * an empty collection is returned. + *

Note that if the given input stream does not support + * {@link java.io.InputStream#mark(int) mark} and + * {@link java.io.InputStream#reset() reset}, this method will + * consume the entire input stream. + */ + // @ts-ignore + public abstract engineGenerateCertificates(inStream: java.io.InputStream): java.util.Collection; + /** + * Generates a certificate revocation list (CRL) object and initializes it + * with the data read from the input stream {@code inStream}. + *

In order to take advantage of the specialized CRL format + * supported by this certificate factory, + * the returned CRL object can be typecast to the corresponding + * CRL class. For example, if this certificate + * factory implements X.509 CRLs, the returned CRL object + * can be typecast to the {@code X509CRL} class. + *

Note that if the given input stream does not support + * {@link java.io.InputStream#mark(int) mark} and + * {@link java.io.InputStream#reset() reset}, this method will + * consume the entire input stream. Otherwise, each call to this + * method consumes one CRL and the read position of the input stream + * is positioned to the next available byte after the inherent + * end-of-CRL marker. If the data in the + * input stream does not contain an inherent end-of-CRL marker (other + * than EOF) and there is trailing data after the CRL is parsed, a + * {@code CRLException} is thrown. + */ + // @ts-ignore + public abstract engineGenerateCRL(inStream: java.io.InputStream): java.security.cert.CRL; + /** + * Returns a (possibly empty) collection view of the CRLs read + * from the given input stream {@code inStream}. + *

In order to take advantage of the specialized CRL format + * supported by this certificate factory, each element in + * the returned collection view can be typecast to the corresponding + * CRL class. For example, if this certificate + * factory implements X.509 CRLs, the elements in the returned + * collection can be typecast to the {@code X509CRL} class. + *

In the case of a certificate factory for X.509 CRLs, + * {@code inStream} may contain a single DER-encoded CRL. + * In addition, {@code inStream} may contain a PKCS#7 CRL + * set. This is a PKCS#7 SignedData object, with the only + * significant field being crls. In particular, the + * signature and the contents are ignored. This format allows multiple + * CRLs to be downloaded at once. If no CRLs are present, + * an empty collection is returned. + *

Note that if the given input stream does not support + * {@link java.io.InputStream#mark(int) mark} and + * {@link java.io.InputStream#reset() reset}, this method will + * consume the entire input stream. + */ + // @ts-ignore + public abstract engineGenerateCRLs(inStream: java.io.InputStream): java.util.Collection; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.CertificateNotYetValidException.d.ts b/packages/types/dist/typings/jdk/java.security.cert.CertificateNotYetValidException.d.ts new file mode 100644 index 00000000..9c9c4043 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.CertificateNotYetValidException.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + class CertificateNotYetValidException extends java.security.cert.CertificateException { + /** + * Constructs a CertificateNotYetValidException with no detail message. A + * detail message is a String that describes this particular + * exception. + */ + // @ts-ignore + constructor() + /** + * Constructs a CertificateNotYetValidException with the specified detail + * message. A detail message is a String that describes this + * particular exception. + */ + // @ts-ignore + constructor(message: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.CertificateParsingException.d.ts b/packages/types/dist/typings/jdk/java.security.cert.CertificateParsingException.d.ts new file mode 100644 index 00000000..dd203989 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.CertificateParsingException.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + class CertificateParsingException extends java.security.cert.CertificateException { + /** + * Constructs a CertificateParsingException with no detail message. A + * detail message is a String that describes this particular + * exception. + */ + // @ts-ignore + constructor() + /** + * Constructs a CertificateParsingException with the specified detail + * message. A detail message is a String that describes this + * particular exception. + */ + // @ts-ignore + constructor(message: string) + /** + * Creates a {@code CertificateParsingException} with the specified + * detail message and cause. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Creates a {@code CertificateParsingException} with the + * specified cause and a detail message of + * {@code (cause==null ? null : cause.toString())} + * (which typically contains the class and detail message of + * {@code cause}). + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.CertificateRevokedException.d.ts b/packages/types/dist/typings/jdk/java.security.cert.CertificateRevokedException.d.ts new file mode 100644 index 00000000..ff3d8128 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.CertificateRevokedException.d.ts @@ -0,0 +1,58 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + class CertificateRevokedException extends java.security.cert.CertificateException { + /** + * Constructs a {@code CertificateRevokedException} with + * the specified revocation date, reason code, authority name, and map + * of extensions. + */ + // @ts-ignore + constructor(revocationDate: java.util.Date, reason: java.security.cert.CRLReason, authority: any /*javax.security.auth.x500.X500Principal*/, extensions: java.util.Map) + /** + * Returns the date on which the certificate was revoked. A new copy is + * returned each time the method is invoked to protect against subsequent + * modification. + */ + // @ts-ignore + public getRevocationDate(): java.util.Date; + /** + * Returns the reason the certificate was revoked. + */ + // @ts-ignore + public getRevocationReason(): java.security.cert.CRLReason; + /** + * Returns the name of the authority that signed the certificate's + * revocation status information. + */ + // @ts-ignore + public getAuthorityName(): any /*javax.security.auth.x500.X500Principal*/; + /** + * Returns the invalidity date, as specified in the Invalidity Date + * extension of this {@code CertificateRevokedException}. The + * invalidity date is the date on which it is known or suspected that the + * private key was compromised or that the certificate otherwise became + * invalid. This implementation calls {@code getExtensions()} and + * checks the returned map for an entry for the Invalidity Date extension + * OID ("2.5.29.24"). If found, it returns the invalidity date in the + * extension; otherwise null. A new Date object is returned each time the + * method is invoked to protect against subsequent modification. + */ + // @ts-ignore + public getInvalidityDate(): java.util.Date; + /** + * Returns a map of X.509 extensions containing additional information + * about the revoked certificate, such as the Invalidity Date + * Extension. Each key is an OID String that maps to the corresponding + * Extension. + */ + // @ts-ignore + public getExtensions(): java.util.Map; + // @ts-ignore + public getMessage(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.CollectionCertStoreParameters.d.ts b/packages/types/dist/typings/jdk/java.security.cert.CollectionCertStoreParameters.d.ts new file mode 100644 index 00000000..ac369ed7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.CollectionCertStoreParameters.d.ts @@ -0,0 +1,60 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + class CollectionCertStoreParameters extends java.lang.Object { + /** + * Creates an instance of {@code CollectionCertStoreParameters} + * which will allow certificates and CRLs to be retrieved from the + * specified {@code Collection}. If the specified + * {@code Collection} contains an object that is not a + * {@code Certificate} or {@code CRL}, that object will be + * ignored by the Collection {@code CertStore}. + *

+ * The {@code Collection} is not copied. Instead, a + * reference is used. This allows the caller to subsequently add or + * remove {@code Certificates} or {@code CRL}s from the + * {@code Collection}, thus changing the set of + * {@code Certificates} or {@code CRL}s available to the + * Collection {@code CertStore}. The Collection {@code CertStore} + * will not modify the contents of the {@code Collection}. + *

+ * If the {@code Collection} will be modified by one thread while + * another thread is calling a method of a Collection {@code CertStore} + * that has been initialized with this {@code Collection}, the + * {@code Collection} must have fail-fast iterators. + */ + // @ts-ignore + constructor(collection: java.util.Collection) + /** + * Creates an instance of {@code CollectionCertStoreParameters} with + * the default parameter values (an empty and immutable + * {@code Collection}). + */ + // @ts-ignore + constructor() + /** + * Returns the {@code Collection} from which {@code Certificate}s + * and {@code CRL}s are retrieved. This is not a copy of the + * {@code Collection}, it is a reference. This allows the caller to + * subsequently add or remove {@code Certificates} or + * {@code CRL}s from the {@code Collection}. + */ + // @ts-ignore + public getCollection(): java.util.Collection; + /** + * Returns a copy of this object. Note that only a reference to the + * {@code Collection} is copied, and not the contents. + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Returns a formatted string describing the parameters. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.Extension.d.ts b/packages/types/dist/typings/jdk/java.security.cert.Extension.d.ts new file mode 100644 index 00000000..98c22bbf --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.Extension.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + interface Extension { + /** + * Gets the extensions's object identifier. + */ + // @ts-ignore + getId(): string; + /** + * Gets the extension's criticality setting. + */ + // @ts-ignore + isCritical(): boolean; + /** + * Gets the extensions's DER-encoded value. Note, this is the bytes + * that are encoded as an OCTET STRING. It does not include the OCTET + * STRING tag and length. + */ + // @ts-ignore + getValue(): number[]; + /** + * Generates the extension's DER encoding and writes it to the output + * stream. + */ + // @ts-ignore + encode(out: java.io.OutputStream): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.LDAPCertStoreParameters.d.ts b/packages/types/dist/typings/jdk/java.security.cert.LDAPCertStoreParameters.d.ts new file mode 100644 index 00000000..8171e6e8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.LDAPCertStoreParameters.d.ts @@ -0,0 +1,54 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + class LDAPCertStoreParameters extends java.lang.Object { + /** + * Creates an instance of {@code LDAPCertStoreParameters} with the + * specified parameter values. + */ + // @ts-ignore + constructor(serverName: string, port: number) + /** + * Creates an instance of {@code LDAPCertStoreParameters} with the + * specified server name and a default port of 389. + */ + // @ts-ignore + constructor(serverName: string) + /** + * Creates an instance of {@code LDAPCertStoreParameters} with the + * default parameter values (server name "localhost", port 389). + */ + // @ts-ignore + constructor() + /** + * Returns the DNS name of the LDAP server. + */ + // @ts-ignore + public getServerName(): string; + /** + * Returns the port number of the LDAP server. + */ + // @ts-ignore + public getPort(): number; + /** + * Returns a copy of this object. Changes to the copy will not affect + * the original and vice versa. + *

+ * Note: this method currently performs a shallow copy of the object + * (simply calls {@code Object.clone()}). This may be changed in a + * future revision to perform a deep copy if new parameters are added + * that should not be shared. + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Returns a formatted string describing the parameters. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.PKIXBuilderParameters.d.ts b/packages/types/dist/typings/jdk/java.security.cert.PKIXBuilderParameters.d.ts new file mode 100644 index 00000000..a9e9f41f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.PKIXBuilderParameters.d.ts @@ -0,0 +1,63 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + class PKIXBuilderParameters extends java.security.cert.PKIXParameters { + /** + * Creates an instance of {@code PKIXBuilderParameters} with + * the specified {@code Set} of most-trusted CAs. + * Each element of the set is a {@link TrustAnchor TrustAnchor}. + *

Note that the {@code Set} is copied to protect against + * subsequent modifications. + */ + // @ts-ignore + constructor(trustAnchors: java.util.Set, targetConstraints: java.security.cert.CertSelector) + /** + * Creates an instance of {@code PKIXBuilderParameters} that + * populates the set of most-trusted CAs from the trusted + * certificate entries contained in the specified {@code KeyStore}. + * Only keystore entries that contain trusted {@code X509Certificate}s + * are considered; all other certificate types are ignored. + */ + // @ts-ignore + constructor(keystore: java.security.KeyStore, targetConstraints: java.security.cert.CertSelector) + /** + * Sets the value of the maximum number of non-self-issued intermediate + * certificates that may exist in a certification path. A certificate + * is self-issued if the DNs that appear in the subject and issuer + * fields are identical and are not empty. Note that the last certificate + * in a certification path is not an intermediate certificate, and is not + * included in this limit. Usually the last certificate is an end entity + * certificate, but it can be a CA certificate. A PKIX + * {@code CertPathBuilder} instance must not build + * paths longer than the length specified. + *

A value of 0 implies that the path can only contain + * a single certificate. A value of -1 implies that the + * path length is unconstrained (i.e. there is no maximum). + * The default maximum path length, if not specified, is 5. + * Setting a value less than -1 will cause an exception to be thrown. + *

If any of the CA certificates contain the + * {@code BasicConstraintsExtension}, the value of the + * {@code pathLenConstraint} field of the extension overrides + * the maximum path length parameter whenever the result is a + * certification path of smaller length. + */ + // @ts-ignore + public setMaxPathLength(maxPathLength: number): void; + /** + * Returns the value of the maximum number of intermediate non-self-issued + * certificates that may exist in a certification path. See + * the {@link #setMaxPathLength} method for more details. + */ + // @ts-ignore + public getMaxPathLength(): number; + /** + * Returns a formatted string describing the parameters. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.PKIXCertPathBuilderResult.d.ts b/packages/types/dist/typings/jdk/java.security.cert.PKIXCertPathBuilderResult.d.ts new file mode 100644 index 00000000..78fb662d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.PKIXCertPathBuilderResult.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + class PKIXCertPathBuilderResult extends java.security.cert.PKIXCertPathValidatorResult { + /** + * Creates an instance of {@code PKIXCertPathBuilderResult} + * containing the specified parameters. + */ + // @ts-ignore + constructor(certPath: java.security.cert.CertPath, trustAnchor: java.security.cert.TrustAnchor, policyTree: java.security.cert.PolicyNode, subjectPublicKey: java.security.PublicKey) + /** + * Returns the built and validated certification path. The + * {@code CertPath} object does not include the trust anchor. + * Instead, use the {@link #getTrustAnchor() getTrustAnchor()} method to + * obtain the {@code TrustAnchor} that served as the trust anchor + * for the certification path. + */ + // @ts-ignore + public getCertPath(): java.security.cert.CertPath; + /** + * Return a printable representation of this + * {@code PKIXCertPathBuilderResult}. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.PKIXCertPathChecker.d.ts b/packages/types/dist/typings/jdk/java.security.cert.PKIXCertPathChecker.d.ts new file mode 100644 index 00000000..e9d8a63b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.PKIXCertPathChecker.d.ts @@ -0,0 +1,72 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + abstract class PKIXCertPathChecker extends java.lang.Object { + /** + * Default constructor. + */ + // @ts-ignore + constructor() + /** + * Initializes the internal state of this {@code PKIXCertPathChecker}. + *

+ * The {@code forward} flag specifies the order that + * certificates will be passed to the {@link #check check} method + * (forward or reverse). A {@code PKIXCertPathChecker} must + * support reverse checking and may support forward checking. + */ + // @ts-ignore + public abstract init(forward: boolean): void; + /** + * Indicates if forward checking is supported. Forward checking refers + * to the ability of the {@code PKIXCertPathChecker} to perform + * its checks when certificates are presented to the {@code check} + * method in the forward direction (from target to most-trusted CA). + */ + // @ts-ignore + public abstract isForwardCheckingSupported(): boolean; + /** + * Returns an immutable {@code Set} of X.509 certificate extensions + * that this {@code PKIXCertPathChecker} supports (i.e. recognizes, is + * able to process), or {@code null} if no extensions are supported. + *

+ * Each element of the set is a {@code String} representing the + * Object Identifier (OID) of the X.509 extension that is supported. + * The OID is represented by a set of nonnegative integers separated by + * periods. + *

+ * All X.509 certificate extensions that a {@code PKIXCertPathChecker} + * might possibly be able to process should be included in the set. + */ + // @ts-ignore + public abstract getSupportedExtensions(): java.util.Set; + /** + * Performs the check(s) on the specified certificate using its internal + * state and removes any critical extensions that it processes from the + * specified collection of OID strings that represent the unresolved + * critical extensions. The certificates are presented in the order + * specified by the {@code init} method. + */ + // @ts-ignore + public abstract check(cert: java.security.cert.Certificate, unresolvedCritExts: java.util.Collection): void; + /** + * {@inheritDoc} + *

This implementation calls + * {@code check(cert, java.util.Collections.emptySet())}. + */ + // @ts-ignore + public check(cert: java.security.cert.Certificate): void; + /** + * Returns a clone of this object. Calls the {@code Object.clone()} + * method. + * All subclasses which maintain state must support and + * override this method, if necessary. + */ + // @ts-ignore + public clone(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.PKIXCertPathValidatorResult.d.ts b/packages/types/dist/typings/jdk/java.security.cert.PKIXCertPathValidatorResult.d.ts new file mode 100644 index 00000000..c2e0baca --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.PKIXCertPathValidatorResult.d.ts @@ -0,0 +1,54 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + class PKIXCertPathValidatorResult extends java.lang.Object { + /** + * Creates an instance of {@code PKIXCertPathValidatorResult} + * containing the specified parameters. + */ + // @ts-ignore + constructor(trustAnchor: java.security.cert.TrustAnchor, policyTree: java.security.cert.PolicyNode, subjectPublicKey: java.security.PublicKey) + /** + * Returns the {@code TrustAnchor} describing the CA that served + * as a trust anchor for the certification path. + */ + // @ts-ignore + public getTrustAnchor(): java.security.cert.TrustAnchor; + /** + * Returns the root node of the valid policy tree resulting from the + * PKIX certification path validation algorithm. The + * {@code PolicyNode} object that is returned and any objects that + * it returns through public methods are immutable. + *

Most applications will not need to examine the valid policy tree. + * They can achieve their policy processing goals by setting the + * policy-related parameters in {@code PKIXParameters}. However, more + * sophisticated applications, especially those that process policy + * qualifiers, may need to traverse the valid policy tree using the + * {@link PolicyNode#getParent PolicyNode.getParent} and + * {@link PolicyNode#getChildren PolicyNode.getChildren} methods. + */ + // @ts-ignore + public getPolicyTree(): java.security.cert.PolicyNode; + /** + * Returns the public key of the subject (target) of the certification + * path, including any inherited public key parameters if applicable. + */ + // @ts-ignore + public getPublicKey(): java.security.PublicKey; + /** + * Returns a copy of this object. + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Return a printable representation of this + * {@code PKIXCertPathValidatorResult}. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.PKIXParameters.d.ts b/packages/types/dist/typings/jdk/java.security.cert.PKIXParameters.d.ts new file mode 100644 index 00000000..265c0ee3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.PKIXParameters.d.ts @@ -0,0 +1,303 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + class PKIXParameters extends java.lang.Object { + /** + * Creates an instance of {@code PKIXParameters} with the specified + * {@code Set} of most-trusted CAs. Each element of the + * set is a {@link TrustAnchor TrustAnchor}. + *

+ * Note that the {@code Set} is copied to protect against + * subsequent modifications. + */ + // @ts-ignore + constructor(trustAnchors: java.util.Set) + /** + * Creates an instance of {@code PKIXParameters} that + * populates the set of most-trusted CAs from the trusted + * certificate entries contained in the specified {@code KeyStore}. + * Only keystore entries that contain trusted {@code X509Certificates} + * are considered; all other certificate types are ignored. + */ + // @ts-ignore + constructor(keystore: java.security.KeyStore) + /** + * Returns an immutable {@code Set} of the most-trusted + * CAs. + */ + // @ts-ignore + public getTrustAnchors(): java.util.Set; + /** + * Sets the {@code Set} of most-trusted CAs. + *

+ * Note that the {@code Set} is copied to protect against + * subsequent modifications. + */ + // @ts-ignore + public setTrustAnchors(trustAnchors: java.util.Set): void; + /** + * Returns an immutable {@code Set} of initial + * policy identifiers (OID strings), indicating that any one of these + * policies would be acceptable to the certificate user for the purposes of + * certification path processing. The default return value is an empty + * {@code Set}, which is interpreted as meaning that any policy would + * be acceptable. + */ + // @ts-ignore + public getInitialPolicies(): java.util.Set; + /** + * Sets the {@code Set} of initial policy identifiers + * (OID strings), indicating that any one of these + * policies would be acceptable to the certificate user for the purposes of + * certification path processing. By default, any policy is acceptable + * (i.e. all policies), so a user that wants to allow any policy as + * acceptable does not need to call this method, or can call it + * with an empty {@code Set} (or {@code null}). + *

+ * Note that the {@code Set} is copied to protect against + * subsequent modifications. + */ + // @ts-ignore + public setInitialPolicies(initialPolicies: java.util.Set): void; + /** + * Sets the list of {@code CertStore}s to be used in finding + * certificates and CRLs. May be {@code null}, in which case + * no {@code CertStore}s will be used. The first + * {@code CertStore}s in the list may be preferred to those that + * appear later. + *

+ * Note that the {@code List} is copied to protect against + * subsequent modifications. + */ + // @ts-ignore + public setCertStores(stores: java.util.List): void; + /** + * Adds a {@code CertStore} to the end of the list of + * {@code CertStore}s used in finding certificates and CRLs. + */ + // @ts-ignore + public addCertStore(store: java.security.cert.CertStore): void; + /** + * Returns an immutable {@code List} of {@code CertStore}s that + * are used to find certificates and CRLs. + */ + // @ts-ignore + public getCertStores(): java.util.List; + /** + * Sets the RevocationEnabled flag. If this flag is true, the default + * revocation checking mechanism of the underlying PKIX service provider + * will be used. If this flag is false, the default revocation checking + * mechanism will be disabled (not used). + *

+ * When a {@code PKIXParameters} object is created, this flag is set + * to true. This setting reflects the most common strategy for checking + * revocation, since each service provider must support revocation + * checking to be PKIX compliant. Sophisticated applications should set + * this flag to false when it is not practical to use a PKIX service + * provider's default revocation checking mechanism or when an alternative + * revocation checking mechanism is to be substituted (by also calling the + * {@link #addCertPathChecker addCertPathChecker} or {@link + * #setCertPathCheckers setCertPathCheckers} methods). + */ + // @ts-ignore + public setRevocationEnabled(val: boolean): void; + /** + * Checks the RevocationEnabled flag. If this flag is true, the default + * revocation checking mechanism of the underlying PKIX service provider + * will be used. If this flag is false, the default revocation checking + * mechanism will be disabled (not used). See the {@link + * #setRevocationEnabled setRevocationEnabled} method for more details on + * setting the value of this flag. + */ + // @ts-ignore + public isRevocationEnabled(): boolean; + /** + * Sets the ExplicitPolicyRequired flag. If this flag is true, an + * acceptable policy needs to be explicitly identified in every certificate. + * By default, the ExplicitPolicyRequired flag is false. + */ + // @ts-ignore + public setExplicitPolicyRequired(val: boolean): void; + /** + * Checks if explicit policy is required. If this flag is true, an + * acceptable policy needs to be explicitly identified in every certificate. + * By default, the ExplicitPolicyRequired flag is false. + */ + // @ts-ignore + public isExplicitPolicyRequired(): boolean; + /** + * Sets the PolicyMappingInhibited flag. If this flag is true, policy + * mapping is inhibited. By default, policy mapping is not inhibited (the + * flag is false). + */ + // @ts-ignore + public setPolicyMappingInhibited(val: boolean): void; + /** + * Checks if policy mapping is inhibited. If this flag is true, policy + * mapping is inhibited. By default, policy mapping is not inhibited (the + * flag is false). + */ + // @ts-ignore + public isPolicyMappingInhibited(): boolean; + /** + * Sets state to determine if the any policy OID should be processed + * if it is included in a certificate. By default, the any policy OID + * is not inhibited ({@link #isAnyPolicyInhibited isAnyPolicyInhibited()} + * returns {@code false}). + */ + // @ts-ignore + public setAnyPolicyInhibited(val: boolean): void; + /** + * Checks whether the any policy OID should be processed if it + * is included in a certificate. + */ + // @ts-ignore + public isAnyPolicyInhibited(): boolean; + /** + * Sets the PolicyQualifiersRejected flag. If this flag is true, + * certificates that include policy qualifiers in a certificate + * policies extension that is marked critical are rejected. + * If the flag is false, certificates are not rejected on this basis. + *

When a {@code PKIXParameters} object is created, this flag is + * set to true. This setting reflects the most common (and simplest) + * strategy for processing policy qualifiers. Applications that want to use + * a more sophisticated policy must set this flag to false. + *

+ * Note that the PKIX certification path validation algorithm specifies + * that any policy qualifier in a certificate policies extension that is + * marked critical must be processed and validated. Otherwise the + * certification path must be rejected. If the policyQualifiersRejected flag + * is set to false, it is up to the application to validate all policy + * qualifiers in this manner in order to be PKIX compliant. + */ + // @ts-ignore + public setPolicyQualifiersRejected(qualifiersRejected: boolean): void; + /** + * Gets the PolicyQualifiersRejected flag. If this flag is true, + * certificates that include policy qualifiers in a certificate policies + * extension that is marked critical are rejected. + * If the flag is false, certificates are not rejected on this basis. + *

When a {@code PKIXParameters} object is created, this flag is + * set to true. This setting reflects the most common (and simplest) + * strategy for processing policy qualifiers. Applications that want to use + * a more sophisticated policy must set this flag to false. + */ + // @ts-ignore + public getPolicyQualifiersRejected(): boolean; + /** + * Returns the time for which the validity of the certification path + * should be determined. If {@code null}, the current time is used. + *

+ * Note that the {@code Date} returned is copied to protect against + * subsequent modifications. + */ + // @ts-ignore + public getDate(): java.util.Date; + /** + * Sets the time for which the validity of the certification path + * should be determined. If {@code null}, the current time is used. + *

+ * Note that the {@code Date} supplied here is copied to protect + * against subsequent modifications. + */ + // @ts-ignore + public setDate(date: java.util.Date): void; + /** + * Sets a {@code List} of additional certification path checkers. If + * the specified {@code List} contains an object that is not a + * {@code PKIXCertPathChecker}, it is ignored. + *

+ * Each {@code PKIXCertPathChecker} specified implements + * additional checks on a certificate. Typically, these are checks to + * process and verify private extensions contained in certificates. + * Each {@code PKIXCertPathChecker} should be instantiated with any + * initialization parameters needed to execute the check. + *

+ * This method allows sophisticated applications to extend a PKIX + * {@code CertPathValidator} or {@code CertPathBuilder}. + * Each of the specified {@code PKIXCertPathChecker}s will be called, + * in turn, by a PKIX {@code CertPathValidator} or + * {@code CertPathBuilder} for each certificate processed or + * validated. + *

+ * Regardless of whether these additional {@code PKIXCertPathChecker}s + * are set, a PKIX {@code CertPathValidator} or + * {@code CertPathBuilder} must perform all of the required PKIX + * checks on each certificate. The one exception to this rule is if the + * RevocationEnabled flag is set to false (see the {@link + * #setRevocationEnabled setRevocationEnabled} method). + *

+ * Note that the {@code List} supplied here is copied and each + * {@code PKIXCertPathChecker} in the list is cloned to protect + * against subsequent modifications. + */ + // @ts-ignore + public setCertPathCheckers(checkers: java.util.List): void; + /** + * Returns the {@code List} of certification path checkers. + * The returned {@code List} is immutable, and each + * {@code PKIXCertPathChecker} in the {@code List} is cloned + * to protect against subsequent modifications. + */ + // @ts-ignore + public getCertPathCheckers(): java.util.List; + /** + * Adds a {@code PKIXCertPathChecker} to the list of certification + * path checkers. See the {@link #setCertPathCheckers setCertPathCheckers} + * method for more details. + *

+ * Note that the {@code PKIXCertPathChecker} is cloned to protect + * against subsequent modifications. + */ + // @ts-ignore + public addCertPathChecker(checker: java.security.cert.PKIXCertPathChecker): void; + /** + * Returns the signature provider's name, or {@code null} + * if not set. + */ + // @ts-ignore + public getSigProvider(): string; + /** + * Sets the signature provider's name. The specified provider will be + * preferred when creating {@link java.security.Signature Signature} + * objects. If {@code null} or not set, the first provider found + * supporting the algorithm will be used. + */ + // @ts-ignore + public setSigProvider(sigProvider: string): void; + /** + * Returns the required constraints on the target certificate. + * The constraints are returned as an instance of {@code CertSelector}. + * If {@code null}, no constraints are defined. + *

Note that the {@code CertSelector} returned is cloned + * to protect against subsequent modifications. + */ + // @ts-ignore + public getTargetCertConstraints(): java.security.cert.CertSelector; + /** + * Sets the required constraints on the target certificate. + * The constraints are specified as an instance of + * {@code CertSelector}. If {@code null}, no constraints are + * defined. + *

Note that the {@code CertSelector} specified is cloned + * to protect against subsequent modifications. + */ + // @ts-ignore + public setTargetCertConstraints(selector: java.security.cert.CertSelector): void; + /** + * Makes a copy of this {@code PKIXParameters} object. Changes + * to the copy will not affect the original and vice versa. + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Returns a formatted string describing the parameters. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.PKIXReason.d.ts b/packages/types/dist/typings/jdk/java.security.cert.PKIXReason.d.ts new file mode 100644 index 00000000..4f655e41 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.PKIXReason.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + class PKIXReason extends java.lang.Enum { + // @ts-ignore + public static NAME_CHAINING: java.security.cert.PKIXReason; + // @ts-ignore + public static INVALID_KEY_USAGE: java.security.cert.PKIXReason; + // @ts-ignore + public static INVALID_POLICY: java.security.cert.PKIXReason; + // @ts-ignore + public static NO_TRUST_ANCHOR: java.security.cert.PKIXReason; + // @ts-ignore + public static UNRECOGNIZED_CRIT_EXT: java.security.cert.PKIXReason; + // @ts-ignore + public static NOT_CA_CERT: java.security.cert.PKIXReason; + // @ts-ignore + public static PATH_TOO_LONG: java.security.cert.PKIXReason; + // @ts-ignore + public static INVALID_NAME: java.security.cert.PKIXReason; + // @ts-ignore + public static values(): java.security.cert.PKIXReason[]; + // @ts-ignore + public static valueOf(name: string): java.security.cert.PKIXReason; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.PKIXRevocationChecker.Option.d.ts b/packages/types/dist/typings/jdk/java.security.cert.PKIXRevocationChecker.Option.d.ts new file mode 100644 index 00000000..519dc91c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.PKIXRevocationChecker.Option.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + namespace PKIXRevocationChecker { + // @ts-ignore + class Option extends java.lang.Enum { + // @ts-ignore + public static ONLY_END_ENTITY: java.security.cert.PKIXRevocationChecker.Option; + // @ts-ignore + public static PREFER_CRLS: java.security.cert.PKIXRevocationChecker.Option; + // @ts-ignore + public static NO_FALLBACK: java.security.cert.PKIXRevocationChecker.Option; + // @ts-ignore + public static SOFT_FAIL: java.security.cert.PKIXRevocationChecker.Option; + // @ts-ignore + public static values(): java.security.cert.PKIXRevocationChecker.Option[]; + // @ts-ignore + public static valueOf(name: string): java.security.cert.PKIXRevocationChecker.Option; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.PKIXRevocationChecker.d.ts b/packages/types/dist/typings/jdk/java.security.cert.PKIXRevocationChecker.d.ts new file mode 100644 index 00000000..62cf8c35 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.PKIXRevocationChecker.d.ts @@ -0,0 +1,97 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + abstract class PKIXRevocationChecker extends java.security.cert.PKIXCertPathChecker { + /** + * Default constructor. + */ + // @ts-ignore + constructor() + /** + * Sets the URI that identifies the location of the OCSP responder. This + * overrides the {@code ocsp.responderURL} security property and any + * responder specified in a certificate's Authority Information Access + * Extension, as defined in RFC 5280. + */ + // @ts-ignore + public setOcspResponder(uri: java.net.URI): void; + /** + * Gets the URI that identifies the location of the OCSP responder. This + * overrides the {@code ocsp.responderURL} security property. If this + * parameter or the {@code ocsp.responderURL} property is not set, the + * location is determined from the certificate's Authority Information + * Access Extension, as defined in RFC 5280. + */ + // @ts-ignore + public getOcspResponder(): java.net.URI; + /** + * Sets the OCSP responder's certificate. This overrides the + * {@code ocsp.responderCertSubjectName}, + * {@code ocsp.responderCertIssuerName}, + * and {@code ocsp.responderCertSerialNumber} security properties. + */ + // @ts-ignore + public setOcspResponderCert(cert: java.security.cert.X509Certificate): void; + /** + * Gets the OCSP responder's certificate. This overrides the + * {@code ocsp.responderCertSubjectName}, + * {@code ocsp.responderCertIssuerName}, + * and {@code ocsp.responderCertSerialNumber} security properties. If this + * parameter or the aforementioned properties are not set, then the + * responder's certificate is determined as specified in RFC 2560. + */ + // @ts-ignore + public getOcspResponderCert(): java.security.cert.X509Certificate; + /** + * Sets the optional OCSP request extensions. + */ + // @ts-ignore + public setOcspExtensions(extensions: java.util.List): void; + /** + * Gets the optional OCSP request extensions. + */ + // @ts-ignore + public getOcspExtensions(): java.util.List; + /** + * Sets the OCSP responses. These responses are used to determine + * the revocation status of the specified certificates when OCSP is used. + */ + // @ts-ignore + public setOcspResponses(responses: java.util.Map): void; + /** + * Gets the OCSP responses. These responses are used to determine + * the revocation status of the specified certificates when OCSP is used. + */ + // @ts-ignore + public getOcspResponses(): java.util.Map; + /** + * Sets the revocation options. + */ + // @ts-ignore + public setOptions(options: java.util.Set): void; + /** + * Gets the revocation options. + */ + // @ts-ignore + public getOptions(): java.util.Set; + /** + * Returns a list containing the exceptions that are ignored by the + * revocation checker when the {@link Option#SOFT_FAIL SOFT_FAIL} option + * is set. The list is cleared each time {@link #init init} is called. + * The list is ordered in ascending order according to the certificate + * index returned by {@link CertPathValidatorException#getIndex getIndex} + * method of each entry. + *

+ * An implementation of {@code PKIXRevocationChecker} is responsible for + * adding the ignored exceptions to the list. + */ + // @ts-ignore + public abstract getSoftFailExceptions(): java.util.List; + // @ts-ignore + public clone(): java.security.cert.PKIXRevocationChecker; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.PolicyNode.d.ts b/packages/types/dist/typings/jdk/java.security.cert.PolicyNode.d.ts new file mode 100644 index 00000000..02f2d5bd --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.PolicyNode.d.ts @@ -0,0 +1,52 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + interface PolicyNode { + /** + * Returns the parent of this node, or {@code null} if this is the + * root node. + */ + // @ts-ignore + getParent(): java.security.cert.PolicyNode; + /** + * Returns an iterator over the children of this node. Any attempts to + * modify the children of this node through the + * {@code Iterator}'s remove method must throw an + * {@code UnsupportedOperationException}. + */ + // @ts-ignore + getChildren(): java.util.Iterator; + /** + * Returns the depth of this node in the valid policy tree. + */ + // @ts-ignore + getDepth(): number; + /** + * Returns the valid policy represented by this node. + */ + // @ts-ignore + getValidPolicy(): string; + /** + * Returns the set of policy qualifiers associated with the + * valid policy represented by this node. + */ + // @ts-ignore + getPolicyQualifiers(): java.util.Set; + /** + * Returns the set of expected policies that would satisfy this + * node's valid policy in the next certificate to be processed. + */ + // @ts-ignore + getExpectedPolicies(): java.util.Set; + /** + * Returns the criticality indicator of the certificate policy extension + * in the most recently processed certificate. + */ + // @ts-ignore + isCritical(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.PolicyQualifierInfo.d.ts b/packages/types/dist/typings/jdk/java.security.cert.PolicyQualifierInfo.d.ts new file mode 100644 index 00000000..9a8651e9 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.PolicyQualifierInfo.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + class PolicyQualifierInfo extends java.lang.Object { + /** + * Creates an instance of {@code PolicyQualifierInfo} from the + * encoded bytes. The encoded byte array is copied on construction. + */ + // @ts-ignore + constructor(encoded: number) + /** + * Returns the {@code policyQualifierId} field of this + * {@code PolicyQualifierInfo}. The {@code policyQualifierId} + * is an Object Identifier (OID) represented by a set of nonnegative + * integers separated by periods. + */ + // @ts-ignore + public getPolicyQualifierId(): string; + /** + * Returns the ASN.1 DER encoded form of this + * {@code PolicyQualifierInfo}. + */ + // @ts-ignore + public getEncoded(): number[]; + /** + * Returns the ASN.1 DER encoded form of the {@code qualifier} + * field of this {@code PolicyQualifierInfo}. + */ + // @ts-ignore + public getPolicyQualifier(): number[]; + /** + * Return a printable representation of this + * {@code PolicyQualifierInfo}. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.TrustAnchor.d.ts b/packages/types/dist/typings/jdk/java.security.cert.TrustAnchor.d.ts new file mode 100644 index 00000000..4d5765b0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.TrustAnchor.d.ts @@ -0,0 +1,130 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + class TrustAnchor extends java.lang.Object { + /** + * Creates an instance of {@code TrustAnchor} with the specified + * {@code X509Certificate} and optional name constraints, which + * are intended to be used as additional constraints when validating + * an X.509 certification path. + *

+ * The name constraints are specified as a byte array. This byte array + * should contain the DER encoded form of the name constraints, as they + * would appear in the NameConstraints structure defined in + * RFC 3280 + * and X.509. The ASN.1 definition of this structure appears below. + *

{@code
+                 * NameConstraints ::= SEQUENCE {
+                 * permittedSubtrees       [0]     GeneralSubtrees OPTIONAL,
+                 * excludedSubtrees        [1]     GeneralSubtrees OPTIONAL }
+                 * GeneralSubtrees ::= SEQUENCE SIZE (1..MAX) OF GeneralSubtree
+                 * GeneralSubtree ::= SEQUENCE {
+                 * base                    GeneralName,
+                 * minimum         [0]     BaseDistance DEFAULT 0,
+                 * maximum         [1]     BaseDistance OPTIONAL }
+                 * BaseDistance ::= INTEGER (0..MAX)
+                 * GeneralName ::= CHOICE {
+                 * otherName                       [0]     OtherName,
+                 * rfc822Name                      [1]     IA5String,
+                 * dNSName                         [2]     IA5String,
+                 * x400Address                     [3]     ORAddress,
+                 * directoryName                   [4]     Name,
+                 * ediPartyName                    [5]     EDIPartyName,
+                 * uniformResourceIdentifier       [6]     IA5String,
+                 * iPAddress                       [7]     OCTET STRING,
+                 * registeredID                    [8]     OBJECT IDENTIFIER}
+                 * }
+ *

+ * Note that the name constraints byte array supplied is cloned to protect + * against subsequent modifications. + */ + // @ts-ignore + constructor(trustedCert: java.security.cert.X509Certificate, nameConstraints: number) + /** + * Creates an instance of {@code TrustAnchor} where the + * most-trusted CA is specified as an X500Principal and public key. + * Name constraints are an optional parameter, and are intended to be used + * as additional constraints when validating an X.509 certification path. + *

+ * The name constraints are specified as a byte array. This byte array + * contains the DER encoded form of the name constraints, as they + * would appear in the NameConstraints structure defined in RFC 3280 + * and X.509. The ASN.1 notation for this structure is supplied in the + * documentation for + * {@link #TrustAnchor(X509Certificate, byte[]) + * TrustAnchor(X509Certificate trustedCert, byte[] nameConstraints) }. + *

+ * Note that the name constraints byte array supplied here is cloned to + * protect against subsequent modifications. + */ + // @ts-ignore + constructor(caPrincipal: any /*javax.security.auth.x500.X500Principal*/, pubKey: java.security.PublicKey, nameConstraints: number) + /** + * Creates an instance of {@code TrustAnchor} where the + * most-trusted CA is specified as a distinguished name and public key. + * Name constraints are an optional parameter, and are intended to be used + * as additional constraints when validating an X.509 certification path. + *

+ * The name constraints are specified as a byte array. This byte array + * contains the DER encoded form of the name constraints, as they + * would appear in the NameConstraints structure defined in RFC 3280 + * and X.509. The ASN.1 notation for this structure is supplied in the + * documentation for + * {@link #TrustAnchor(X509Certificate, byte[]) + * TrustAnchor(X509Certificate trustedCert, byte[] nameConstraints) }. + *

+ * Note that the name constraints byte array supplied here is cloned to + * protect against subsequent modifications. + */ + // @ts-ignore + constructor(caName: string, pubKey: java.security.PublicKey, nameConstraints: number) + /** + * Returns the most-trusted CA certificate. + */ + // @ts-ignore + public getTrustedCert(): java.security.cert.X509Certificate; + /** + * Returns the name of the most-trusted CA as an X500Principal. + */ + // @ts-ignore + public getCA(): any /*javax.security.auth.x500.X500Principal*/; + /** + * Returns the name of the most-trusted CA in RFC 2253 {@code String} + * format. + */ + // @ts-ignore + public getCAName(): string; + /** + * Returns the public key of the most-trusted CA. + */ + // @ts-ignore + public getCAPublicKey(): java.security.PublicKey; + /** + * Returns the name constraints parameter. The specified name constraints + * are associated with this trust anchor and are intended to be used + * as additional constraints when validating an X.509 certification path. + *

+ * The name constraints are returned as a byte array. This byte array + * contains the DER encoded form of the name constraints, as they + * would appear in the NameConstraints structure defined in RFC 3280 + * and X.509. The ASN.1 notation for this structure is supplied in the + * documentation for + * {@link #TrustAnchor(X509Certificate, byte[]) + * TrustAnchor(X509Certificate trustedCert, byte[] nameConstraints) }. + *

+ * Note that the byte array returned is cloned to protect against + * subsequent modifications. + */ + // @ts-ignore + public getNameConstraints(): number[]; + /** + * Returns a formatted string describing the {@code TrustAnchor}. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.X509CRL.d.ts b/packages/types/dist/typings/jdk/java.security.cert.X509CRL.d.ts new file mode 100644 index 00000000..ec96b0ba --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.X509CRL.d.ts @@ -0,0 +1,211 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + abstract class X509CRL extends java.security.cert.CRL { + /** + * Constructor for X.509 CRLs. + */ + // @ts-ignore + constructor() + /** + * Compares this CRL for equality with the given + * object. If the {@code other} object is an + * {@code instanceof} {@code X509CRL}, then + * its encoded form is retrieved and compared with the + * encoded form of this CRL. + */ + // @ts-ignore + public equals(other: java.lang.Object): boolean; + /** + * Returns a hashcode value for this CRL from its + * encoded form. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns the ASN.1 DER-encoded form of this CRL. + */ + // @ts-ignore + public abstract getEncoded(): number[]; + /** + * Verifies that this CRL was signed using the + * private key that corresponds to the given public key. + */ + // @ts-ignore + public abstract verify(key: java.security.PublicKey): void; + /** + * Verifies that this CRL was signed using the + * private key that corresponds to the given public key. + * This method uses the signature verification engine + * supplied by the given provider. Note that the specified Provider object + * does not have to be registered in the provider list. + * This method was added to version 1.8 of the Java Platform Standard + * Edition. In order to maintain backwards compatibility with existing + * service providers, this method is not {@code abstract} + * and it provides a default implementation. + */ + // @ts-ignore + public verify(key: java.security.PublicKey, sigProvider: java.security.Provider): void; + /** + * Gets the {@code version} (version number) value from the CRL. + * The ASN.1 definition for this is: + *

+                 * version    Version OPTIONAL,
+                 * -- if present, must be v2
+                 * Version  ::=  INTEGER  {  v1(0), v2(1), v3(2)  }
+                 * -- v3 does not apply to CRLs but appears for consistency
+                 * -- with definition of Version for certs
+                 * 
+ */ + // @ts-ignore + public abstract getVersion(): number; + /** + * Denigrated, replaced by {@linkplain + * #getIssuerX500Principal()}. This method returns the {@code issuer} + * as an implementation specific Principal object, which should not be + * relied upon by portable code. + *

+ * Gets the {@code issuer} (issuer distinguished name) value from + * the CRL. The issuer name identifies the entity that signed (and + * issued) the CRL. + *

The issuer name field contains an + * X.500 distinguished name (DN). + * The ASN.1 definition for this is: + *

+                 * issuer    Name
+                 * Name ::= CHOICE { RDNSequence }
+                 * RDNSequence ::= SEQUENCE OF RelativeDistinguishedName
+                 * RelativeDistinguishedName ::=
+                 * SET OF AttributeValueAssertion
+                 * AttributeValueAssertion ::= SEQUENCE {
+                 * AttributeType,
+                 * AttributeValue }
+                 * AttributeType ::= OBJECT IDENTIFIER
+                 * AttributeValue ::= ANY
+                 * 
+ * The {@code Name} describes a hierarchical name composed of + * attributes, + * such as country name, and corresponding values, such as US. + * The type of the {@code AttributeValue} component is determined by + * the {@code AttributeType}; in general it will be a + * {@code directoryString}. A {@code directoryString} is usually + * one of {@code PrintableString}, + * {@code TeletexString} or {@code UniversalString}. + */ + // @ts-ignore + public abstract getIssuerDN(): java.security.Principal; + /** + * Returns the issuer (issuer distinguished name) value from the + * CRL as an {@code X500Principal}. + *

+ * It is recommended that subclasses override this method. + */ + // @ts-ignore + public getIssuerX500Principal(): any /*javax.security.auth.x500.X500Principal*/; + /** + * Gets the {@code thisUpdate} date from the CRL. + * The ASN.1 definition for this is: + *

+                 * thisUpdate   ChoiceOfTime
+                 * ChoiceOfTime ::= CHOICE {
+                 * utcTime        UTCTime,
+                 * generalTime    GeneralizedTime }
+                 * 
+ */ + // @ts-ignore + public abstract getThisUpdate(): java.util.Date; + /** + * Gets the {@code nextUpdate} date from the CRL. + */ + // @ts-ignore + public abstract getNextUpdate(): java.util.Date; + /** + * Gets the CRL entry, if any, with the given certificate serialNumber. + */ + // @ts-ignore + public abstract getRevokedCertificate(serialNumber: java.math.BigInteger): java.security.cert.X509CRLEntry; + /** + * Get the CRL entry, if any, for the given certificate. + *

This method can be used to lookup CRL entries in indirect CRLs, + * that means CRLs that contain entries from issuers other than the CRL + * issuer. The default implementation will only return entries for + * certificates issued by the CRL issuer. Subclasses that wish to + * support indirect CRLs should override this method. + */ + // @ts-ignore + public getRevokedCertificate(certificate: java.security.cert.X509Certificate): java.security.cert.X509CRLEntry; + /** + * Gets all the entries from this CRL. + * This returns a Set of X509CRLEntry objects. + */ + // @ts-ignore + public abstract getRevokedCertificates(): java.util.Set; + /** + * Gets the DER-encoded CRL information, the + * {@code tbsCertList} from this CRL. + * This can be used to verify the signature independently. + */ + // @ts-ignore + public abstract getTBSCertList(): number[]; + /** + * Gets the {@code signature} value (the raw signature bits) from + * the CRL. + * The ASN.1 definition for this is: + *

+                 * signature     BIT STRING
+                 * 
+ */ + // @ts-ignore + public abstract getSignature(): number[]; + /** + * Gets the signature algorithm name for the CRL + * signature algorithm. An example is the string "SHA256withRSA". + * The ASN.1 definition for this is: + *
+                 * signatureAlgorithm   AlgorithmIdentifier
+                 * AlgorithmIdentifier  ::=  SEQUENCE  {
+                 * algorithm               OBJECT IDENTIFIER,
+                 * parameters              ANY DEFINED BY algorithm OPTIONAL  }
+                 * -- contains a value of the type
+                 * -- registered for use with the
+                 * -- algorithm object identifier value
+                 * 
+ *

The algorithm name is determined from the {@code algorithm} + * OID string. + */ + // @ts-ignore + public abstract getSigAlgName(): string; + /** + * Gets the signature algorithm OID string from the CRL. + * An OID is represented by a set of nonnegative whole numbers separated + * by periods. + * For example, the string "1.2.840.10040.4.3" identifies the SHA-1 + * with DSA signature algorithm defined in + * RFC 3279: Algorithms and + * Identifiers for the Internet X.509 Public Key Infrastructure Certificate + * and CRL Profile. + *

See {@link #getSigAlgName() getSigAlgName} for + * relevant ASN.1 definitions. + */ + // @ts-ignore + public abstract getSigAlgOID(): string; + /** + * Gets the DER-encoded signature algorithm parameters from this + * CRL's signature algorithm. In most cases, the signature + * algorithm parameters are null; the parameters are usually + * supplied with the public key. + * If access to individual parameter values is needed then use + * {@link java.security.AlgorithmParameters AlgorithmParameters} + * and instantiate with the name returned by + * {@link #getSigAlgName() getSigAlgName}. + *

See {@link #getSigAlgName() getSigAlgName} for + * relevant ASN.1 definitions. + */ + // @ts-ignore + public abstract getSigAlgParams(): number[]; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.X509CRLEntry.d.ts b/packages/types/dist/typings/jdk/java.security.cert.X509CRLEntry.d.ts new file mode 100644 index 00000000..930561b5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.X509CRLEntry.d.ts @@ -0,0 +1,71 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + abstract class X509CRLEntry extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Compares this CRL entry for equality with the given + * object. If the {@code other} object is an + * {@code instanceof} {@code X509CRLEntry}, then + * its encoded form (the inner SEQUENCE) is retrieved and compared + * with the encoded form of this CRL entry. + */ + // @ts-ignore + public equals(other: java.lang.Object): boolean; + /** + * Returns a hashcode value for this CRL entry from its + * encoded form. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns the ASN.1 DER-encoded form of this CRL Entry, + * that is the inner SEQUENCE. + */ + // @ts-ignore + public abstract getEncoded(): number[]; + /** + * Gets the serial number from this X509CRLEntry, + * the userCertificate. + */ + // @ts-ignore + public abstract getSerialNumber(): java.math.BigInteger; + /** + * Get the issuer of the X509Certificate described by this entry. If + * the certificate issuer is also the CRL issuer, this method returns + * null. + *

This method is used with indirect CRLs. The default implementation + * always returns null. Subclasses that wish to support indirect CRLs + * should override it. + */ + // @ts-ignore + public getCertificateIssuer(): any /*javax.security.auth.x500.X500Principal*/; + /** + * Gets the revocation date from this X509CRLEntry, + * the revocationDate. + */ + // @ts-ignore + public abstract getRevocationDate(): java.util.Date; + /** + * Returns true if this CRL entry has extensions. + */ + // @ts-ignore + public abstract hasExtensions(): boolean; + /** + * Returns a string representation of this CRL entry. + */ + // @ts-ignore + public abstract toString(): string; + /** + * Returns the reason the certificate has been revoked, as specified + * in the Reason Code extension of this CRL entry. + */ + // @ts-ignore + public getRevocationReason(): java.security.cert.CRLReason; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.X509CRLSelector.d.ts b/packages/types/dist/typings/jdk/java.security.cert.X509CRLSelector.d.ts new file mode 100644 index 00000000..061a9f33 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.X509CRLSelector.d.ts @@ -0,0 +1,272 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + class X509CRLSelector extends java.lang.Object { + /** + * Creates an {@code X509CRLSelector}. Initially, no criteria are set + * so any {@code X509CRL} will match. + */ + // @ts-ignore + constructor() + /** + * Sets the issuerNames criterion. The issuer distinguished name in the + * {@code X509CRL} must match at least one of the specified + * distinguished names. If {@code null}, any issuer distinguished name + * will do. + *

+ * This method allows the caller to specify, with a single method call, + * the complete set of issuer names which {@code X509CRLs} may contain. + * The specified value replaces the previous value for the issuerNames + * criterion. + *

+ * The {@code names} parameter (if not {@code null}) is a + * {@code Collection} of {@code X500Principal}s. + *

+ * Note that the {@code names} parameter can contain duplicate + * distinguished names, but they may be removed from the + * {@code Collection} of names returned by the + * {@link #getIssuers getIssuers} method. + *

+ * Note that a copy is performed on the {@code Collection} to + * protect against subsequent modifications. + */ + // @ts-ignore + public setIssuers(issuers: java.util.Collection): void; + /** + * Note: use {@linkplain #setIssuers(Collection)} instead + * or only specify the byte array form of distinguished names when using + * this method. See {@link #addIssuerName(String)} for more information. + *

+ * Sets the issuerNames criterion. The issuer distinguished name in the + * {@code X509CRL} must match at least one of the specified + * distinguished names. If {@code null}, any issuer distinguished name + * will do. + *

+ * This method allows the caller to specify, with a single method call, + * the complete set of issuer names which {@code X509CRLs} may contain. + * The specified value replaces the previous value for the issuerNames + * criterion. + *

+ * The {@code names} parameter (if not {@code null}) is a + * {@code Collection} of names. Each name is a {@code String} + * or a byte array representing a distinguished name (in + * RFC 2253 or + * ASN.1 DER encoded form, respectively). If {@code null} is supplied + * as the value for this argument, no issuerNames check will be performed. + *

+ * Note that the {@code names} parameter can contain duplicate + * distinguished names, but they may be removed from the + * {@code Collection} of names returned by the + * {@link #getIssuerNames getIssuerNames} method. + *

+ * If a name is specified as a byte array, it should contain a single DER + * encoded distinguished name, as defined in X.501. The ASN.1 notation for + * this structure is as follows. + *

{@code
+                 * Name ::= CHOICE {
+                 * RDNSequence }
+                 * RDNSequence ::= SEQUENCE OF RelativeDistinguishedName
+                 * RelativeDistinguishedName ::=
+                 * SET SIZE (1 .. MAX) OF AttributeTypeAndValue
+                 * AttributeTypeAndValue ::= SEQUENCE {
+                 * type     AttributeType,
+                 * value    AttributeValue }
+                 * AttributeType ::= OBJECT IDENTIFIER
+                 * AttributeValue ::= ANY DEFINED BY AttributeType
+                 * ....
+                 * DirectoryString ::= CHOICE {
+                 * teletexString           TeletexString (SIZE (1..MAX)),
+                 * printableString         PrintableString (SIZE (1..MAX)),
+                 * universalString         UniversalString (SIZE (1..MAX)),
+                 * utf8String              UTF8String (SIZE (1.. MAX)),
+                 * bmpString               BMPString (SIZE (1..MAX)) }
+                 * }
+ *

+ * Note that a deep copy is performed on the {@code Collection} to + * protect against subsequent modifications. + */ + // @ts-ignore + public setIssuerNames(names: java.util.Collection): void; + /** + * Adds a name to the issuerNames criterion. The issuer distinguished + * name in the {@code X509CRL} must match at least one of the specified + * distinguished names. + *

+ * This method allows the caller to add a name to the set of issuer names + * which {@code X509CRLs} may contain. The specified name is added to + * any previous value for the issuerNames criterion. + * If the specified name is a duplicate, it may be ignored. + */ + // @ts-ignore + public addIssuer(issuer: any /*javax.security.auth.x500.X500Principal*/): void; + /** + * Denigrated, use + * {@linkplain #addIssuer(X500Principal)} or + * {@linkplain #addIssuerName(byte[])} instead. This method should not be + * relied on as it can fail to match some CRLs because of a loss of + * encoding information in the RFC 2253 String form of some distinguished + * names. + *

+ * Adds a name to the issuerNames criterion. The issuer distinguished + * name in the {@code X509CRL} must match at least one of the specified + * distinguished names. + *

+ * This method allows the caller to add a name to the set of issuer names + * which {@code X509CRLs} may contain. The specified name is added to + * any previous value for the issuerNames criterion. + * If the specified name is a duplicate, it may be ignored. + */ + // @ts-ignore + public addIssuerName(name: string): void; + /** + * Adds a name to the issuerNames criterion. The issuer distinguished + * name in the {@code X509CRL} must match at least one of the specified + * distinguished names. + *

+ * This method allows the caller to add a name to the set of issuer names + * which {@code X509CRLs} may contain. The specified name is added to + * any previous value for the issuerNames criterion. If the specified name + * is a duplicate, it may be ignored. + * If a name is specified as a byte array, it should contain a single DER + * encoded distinguished name, as defined in X.501. The ASN.1 notation for + * this structure is as follows. + *

+ * The name is provided as a byte array. This byte array should contain + * a single DER encoded distinguished name, as defined in X.501. The ASN.1 + * notation for this structure appears in the documentation for + * {@link #setIssuerNames setIssuerNames(Collection names)}. + *

+ * Note that the byte array supplied here is cloned to protect against + * subsequent modifications. + */ + // @ts-ignore + public addIssuerName(name: number): void; + /** + * Sets the minCRLNumber criterion. The {@code X509CRL} must have a + * CRL number extension whose value is greater than or equal to the + * specified value. If {@code null}, no minCRLNumber check will be + * done. + */ + // @ts-ignore + public setMinCRLNumber(minCRL: java.math.BigInteger): void; + /** + * Sets the maxCRLNumber criterion. The {@code X509CRL} must have a + * CRL number extension whose value is less than or equal to the + * specified value. If {@code null}, no maxCRLNumber check will be + * done. + */ + // @ts-ignore + public setMaxCRLNumber(maxCRL: java.math.BigInteger): void; + /** + * Sets the dateAndTime criterion. The specified date must be + * equal to or later than the value of the thisUpdate component + * of the {@code X509CRL} and earlier than the value of the + * nextUpdate component. There is no match if the {@code X509CRL} + * does not contain a nextUpdate component. + * If {@code null}, no dateAndTime check will be done. + *

+ * Note that the {@code Date} supplied here is cloned to protect + * against subsequent modifications. + */ + // @ts-ignore + public setDateAndTime(dateAndTime: java.util.Date): void; + /** + * Sets the certificate being checked. This is not a criterion. Rather, + * it is optional information that may help a {@code CertStore} + * find CRLs that would be relevant when checking revocation for the + * specified certificate. If {@code null} is specified, then no + * such optional information is provided. + */ + // @ts-ignore + public setCertificateChecking(cert: java.security.cert.X509Certificate): void; + /** + * Returns the issuerNames criterion. The issuer distinguished + * name in the {@code X509CRL} must match at least one of the specified + * distinguished names. If the value returned is {@code null}, any + * issuer distinguished name will do. + *

+ * If the value returned is not {@code null}, it is a + * unmodifiable {@code Collection} of {@code X500Principal}s. + */ + // @ts-ignore + public getIssuers(): java.util.Collection; + /** + * Returns a copy of the issuerNames criterion. The issuer distinguished + * name in the {@code X509CRL} must match at least one of the specified + * distinguished names. If the value returned is {@code null}, any + * issuer distinguished name will do. + *

+ * If the value returned is not {@code null}, it is a + * {@code Collection} of names. Each name is a {@code String} + * or a byte array representing a distinguished name (in RFC 2253 or + * ASN.1 DER encoded form, respectively). Note that the + * {@code Collection} returned may contain duplicate names. + *

+ * If a name is specified as a byte array, it should contain a single DER + * encoded distinguished name, as defined in X.501. The ASN.1 notation for + * this structure is given in the documentation for + * {@link #setIssuerNames setIssuerNames(Collection names)}. + *

+ * Note that a deep copy is performed on the {@code Collection} to + * protect against subsequent modifications. + */ + // @ts-ignore + public getIssuerNames(): java.util.Collection; + /** + * Returns the minCRLNumber criterion. The {@code X509CRL} must have a + * CRL number extension whose value is greater than or equal to the + * specified value. If {@code null}, no minCRLNumber check will be done. + */ + // @ts-ignore + public getMinCRL(): java.math.BigInteger; + /** + * Returns the maxCRLNumber criterion. The {@code X509CRL} must have a + * CRL number extension whose value is less than or equal to the + * specified value. If {@code null}, no maxCRLNumber check will be + * done. + */ + // @ts-ignore + public getMaxCRL(): java.math.BigInteger; + /** + * Returns the dateAndTime criterion. The specified date must be + * equal to or later than the value of the thisUpdate component + * of the {@code X509CRL} and earlier than the value of the + * nextUpdate component. There is no match if the + * {@code X509CRL} does not contain a nextUpdate component. + * If {@code null}, no dateAndTime check will be done. + *

+ * Note that the {@code Date} returned is cloned to protect against + * subsequent modifications. + */ + // @ts-ignore + public getDateAndTime(): java.util.Date; + /** + * Returns the certificate being checked. This is not a criterion. Rather, + * it is optional information that may help a {@code CertStore} + * find CRLs that would be relevant when checking revocation for the + * specified certificate. If the value returned is {@code null}, then + * no such optional information is provided. + */ + // @ts-ignore + public getCertificateChecking(): java.security.cert.X509Certificate; + /** + * Returns a printable representation of the {@code X509CRLSelector}. + */ + // @ts-ignore + public toString(): string; + /** + * Decides whether a {@code CRL} should be selected. + */ + // @ts-ignore + public match(crl: java.security.cert.CRL): boolean; + /** + * Returns a copy of this object. + */ + // @ts-ignore + public clone(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.X509CertSelector.d.ts b/packages/types/dist/typings/jdk/java.security.cert.X509CertSelector.d.ts new file mode 100644 index 00000000..28bf11bd --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.X509CertSelector.d.ts @@ -0,0 +1,900 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + class X509CertSelector extends java.lang.Object { + /** + * Creates an {@code X509CertSelector}. Initially, no criteria are set + * so any {@code X509Certificate} will match. + */ + // @ts-ignore + constructor() + /** + * Sets the certificateEquals criterion. The specified + * {@code X509Certificate} must be equal to the + * {@code X509Certificate} passed to the {@code match} method. + * If {@code null}, then this check is not applied. + *

This method is particularly useful when it is necessary to + * match a single certificate. Although other criteria can be specified + * in conjunction with the certificateEquals criterion, it is usually not + * practical or necessary. + */ + // @ts-ignore + public setCertificate(cert: java.security.cert.X509Certificate): void; + /** + * Sets the serialNumber criterion. The specified serial number + * must match the certificate serial number in the + * {@code X509Certificate}. If {@code null}, any certificate + * serial number will do. + */ + // @ts-ignore + public setSerialNumber(serial: java.math.BigInteger): void; + /** + * Sets the issuer criterion. The specified distinguished name + * must match the issuer distinguished name in the + * {@code X509Certificate}. If {@code null}, any issuer + * distinguished name will do. + */ + // @ts-ignore + public setIssuer(issuer: any /*javax.security.auth.x500.X500Principal*/): void; + /** + * Denigrated, use {@linkplain #setIssuer(X500Principal)} + * or {@linkplain #setIssuer(byte[])} instead. This method should not be + * relied on as it can fail to match some certificates because of a loss of + * encoding information in the + * RFC 2253 String form + * of some distinguished names. + *

+ * Sets the issuer criterion. The specified distinguished name + * must match the issuer distinguished name in the + * {@code X509Certificate}. If {@code null}, any issuer + * distinguished name will do. + *

+ * If {@code issuerDN} is not {@code null}, it should contain a + * distinguished name, in RFC 2253 format. + */ + // @ts-ignore + public setIssuer(issuerDN: string): void; + /** + * Sets the issuer criterion. The specified distinguished name + * must match the issuer distinguished name in the + * {@code X509Certificate}. If {@code null} is specified, + * the issuer criterion is disabled and any issuer distinguished name will + * do. + *

+ * If {@code issuerDN} is not {@code null}, it should contain a + * single DER encoded distinguished name, as defined in X.501. The ASN.1 + * notation for this structure is as follows. + *

{@code
+                 * Name ::= CHOICE {
+                 * RDNSequence }
+                 * RDNSequence ::= SEQUENCE OF RelativeDistinguishedName
+                 * RelativeDistinguishedName ::=
+                 * SET SIZE (1 .. MAX) OF AttributeTypeAndValue
+                 * AttributeTypeAndValue ::= SEQUENCE {
+                 * type     AttributeType,
+                 * value    AttributeValue }
+                 * AttributeType ::= OBJECT IDENTIFIER
+                 * AttributeValue ::= ANY DEFINED BY AttributeType
+                 * ....
+                 * DirectoryString ::= CHOICE {
+                 * teletexString           TeletexString (SIZE (1..MAX)),
+                 * printableString         PrintableString (SIZE (1..MAX)),
+                 * universalString         UniversalString (SIZE (1..MAX)),
+                 * utf8String              UTF8String (SIZE (1.. MAX)),
+                 * bmpString               BMPString (SIZE (1..MAX)) }
+                 * }
+ *

+ * Note that the byte array specified here is cloned to protect against + * subsequent modifications. + */ + // @ts-ignore + public setIssuer(issuerDN: number): void; + /** + * Sets the subject criterion. The specified distinguished name + * must match the subject distinguished name in the + * {@code X509Certificate}. If {@code null}, any subject + * distinguished name will do. + */ + // @ts-ignore + public setSubject(subject: any /*javax.security.auth.x500.X500Principal*/): void; + /** + * Denigrated, use {@linkplain #setSubject(X500Principal)} + * or {@linkplain #setSubject(byte[])} instead. This method should not be + * relied on as it can fail to match some certificates because of a loss of + * encoding information in the RFC 2253 String form of some distinguished + * names. + *

+ * Sets the subject criterion. The specified distinguished name + * must match the subject distinguished name in the + * {@code X509Certificate}. If {@code null}, any subject + * distinguished name will do. + *

+ * If {@code subjectDN} is not {@code null}, it should contain a + * distinguished name, in RFC 2253 format. + */ + // @ts-ignore + public setSubject(subjectDN: string): void; + /** + * Sets the subject criterion. The specified distinguished name + * must match the subject distinguished name in the + * {@code X509Certificate}. If {@code null}, any subject + * distinguished name will do. + *

+ * If {@code subjectDN} is not {@code null}, it should contain a + * single DER encoded distinguished name, as defined in X.501. For the ASN.1 + * notation for this structure, see + * {@link #setIssuer(byte [] issuerDN) setIssuer(byte [] issuerDN)}. + */ + // @ts-ignore + public setSubject(subjectDN: number): void; + /** + * Sets the subjectKeyIdentifier criterion. The + * {@code X509Certificate} must contain a SubjectKeyIdentifier + * extension for which the contents of the extension + * matches the specified criterion value. + * If the criterion value is {@code null}, no + * subjectKeyIdentifier check will be done. + *

+ * If {@code subjectKeyID} is not {@code null}, it + * should contain a single DER encoded value corresponding to the contents + * of the extension value (not including the object identifier, + * criticality setting, and encapsulating OCTET STRING) + * for a SubjectKeyIdentifier extension. + * The ASN.1 notation for this structure follows. + *

{@code
+                 * SubjectKeyIdentifier ::= KeyIdentifier
+                 * KeyIdentifier ::= OCTET STRING
+                 * }
+ *

+ * Since the format of subject key identifiers is not mandated by + * any standard, subject key identifiers are not parsed by the + * {@code X509CertSelector}. Instead, the values are compared using + * a byte-by-byte comparison. + *

+ * Note that the byte array supplied here is cloned to protect against + * subsequent modifications. + */ + // @ts-ignore + public setSubjectKeyIdentifier(subjectKeyID: number): void; + /** + * Sets the authorityKeyIdentifier criterion. The + * {@code X509Certificate} must contain an + * AuthorityKeyIdentifier extension for which the contents of the + * extension value matches the specified criterion value. + * If the criterion value is {@code null}, no + * authorityKeyIdentifier check will be done. + *

+ * If {@code authorityKeyID} is not {@code null}, it + * should contain a single DER encoded value corresponding to the contents + * of the extension value (not including the object identifier, + * criticality setting, and encapsulating OCTET STRING) + * for an AuthorityKeyIdentifier extension. + * The ASN.1 notation for this structure follows. + *

{@code
+                 * AuthorityKeyIdentifier ::= SEQUENCE {
+                 * keyIdentifier             [0] KeyIdentifier           OPTIONAL,
+                 * authorityCertIssuer       [1] GeneralNames            OPTIONAL,
+                 * authorityCertSerialNumber [2] CertificateSerialNumber OPTIONAL  }
+                 * KeyIdentifier ::= OCTET STRING
+                 * }
+ *

+ * Authority key identifiers are not parsed by the + * {@code X509CertSelector}. Instead, the values are + * compared using a byte-by-byte comparison. + *

+ * When the {@code keyIdentifier} field of + * {@code AuthorityKeyIdentifier} is populated, the value is + * usually taken from the {@code SubjectKeyIdentifier} extension + * in the issuer's certificate. Note, however, that the result of + * {@code X509Certificate.getExtensionValue()} on the issuer's certificate may NOT be used + * directly as the input to {@code setAuthorityKeyIdentifier}. + * This is because the SubjectKeyIdentifier contains + * only a KeyIdentifier OCTET STRING, and not a SEQUENCE of + * KeyIdentifier, GeneralNames, and CertificateSerialNumber. + * In order to use the extension value of the issuer certificate's + * {@code SubjectKeyIdentifier} + * extension, it will be necessary to extract the value of the embedded + * {@code KeyIdentifier} OCTET STRING, then DER encode this OCTET + * STRING inside a SEQUENCE. + * For more details on SubjectKeyIdentifier, see + * {@link #setSubjectKeyIdentifier(byte[] subjectKeyID)}. + *

+ * Note also that the byte array supplied here is cloned to protect against + * subsequent modifications. + */ + // @ts-ignore + public setAuthorityKeyIdentifier(authorityKeyID: number): void; + /** + * Sets the certificateValid criterion. The specified date must fall + * within the certificate validity period for the + * {@code X509Certificate}. If {@code null}, no certificateValid + * check will be done. + *

+ * Note that the {@code Date} supplied here is cloned to protect + * against subsequent modifications. + */ + // @ts-ignore + public setCertificateValid(certValid: java.util.Date): void; + /** + * Sets the privateKeyValid criterion. The specified date must fall + * within the private key validity period for the + * {@code X509Certificate}. If {@code null}, no privateKeyValid + * check will be done. + *

+ * Note that the {@code Date} supplied here is cloned to protect + * against subsequent modifications. + */ + // @ts-ignore + public setPrivateKeyValid(privateKeyValid: java.util.Date): void; + /** + * Sets the subjectPublicKeyAlgID criterion. The + * {@code X509Certificate} must contain a subject public key + * with the specified algorithm. If {@code null}, no + * subjectPublicKeyAlgID check will be done. + */ + // @ts-ignore + public setSubjectPublicKeyAlgID(oid: string): void; + /** + * Sets the subjectPublicKey criterion. The + * {@code X509Certificate} must contain the specified subject public + * key. If {@code null}, no subjectPublicKey check will be done. + */ + // @ts-ignore + public setSubjectPublicKey(key: java.security.PublicKey): void; + /** + * Sets the subjectPublicKey criterion. The {@code X509Certificate} + * must contain the specified subject public key. If {@code null}, + * no subjectPublicKey check will be done. + *

+ * Because this method allows the public key to be specified as a byte + * array, it may be used for unknown key types. + *

+ * If {@code key} is not {@code null}, it should contain a + * single DER encoded SubjectPublicKeyInfo structure, as defined in X.509. + * The ASN.1 notation for this structure is as follows. + *

{@code
+                 * SubjectPublicKeyInfo  ::=  SEQUENCE  {
+                 * algorithm            AlgorithmIdentifier,
+                 * subjectPublicKey     BIT STRING  }
+                 * AlgorithmIdentifier  ::=  SEQUENCE  {
+                 * algorithm               OBJECT IDENTIFIER,
+                 * parameters              ANY DEFINED BY algorithm OPTIONAL  }
+                 * -- contains a value of the type
+                 * -- registered for use with the
+                 * -- algorithm object identifier value
+                 * }
+ *

+ * Note that the byte array supplied here is cloned to protect against + * subsequent modifications. + */ + // @ts-ignore + public setSubjectPublicKey(key: number): void; + /** + * Sets the keyUsage criterion. The {@code X509Certificate} + * must allow the specified keyUsage values. If {@code null}, no + * keyUsage check will be done. Note that an {@code X509Certificate} + * that has no keyUsage extension implicitly allows all keyUsage values. + *

+ * Note that the boolean array supplied here is cloned to protect against + * subsequent modifications. + */ + // @ts-ignore + public setKeyUsage(keyUsage: boolean): void; + /** + * Sets the extendedKeyUsage criterion. The {@code X509Certificate} + * must allow the specified key purposes in its extended key usage + * extension. If {@code keyPurposeSet} is empty or {@code null}, + * no extendedKeyUsage check will be done. Note that an + * {@code X509Certificate} that has no extendedKeyUsage extension + * implicitly allows all key purposes. + *

+ * Note that the {@code Set} is cloned to protect against + * subsequent modifications. + */ + // @ts-ignore + public setExtendedKeyUsage(keyPurposeSet: java.util.Set): void; + /** + * Enables/disables matching all of the subjectAlternativeNames + * specified in the {@link #setSubjectAlternativeNames + * setSubjectAlternativeNames} or {@link #addSubjectAlternativeName + * addSubjectAlternativeName} methods. If enabled, + * the {@code X509Certificate} must contain all of the + * specified subject alternative names. If disabled, the + * {@code X509Certificate} must contain at least one of the + * specified subject alternative names. + *

The matchAllNames flag is {@code true} by default. + */ + // @ts-ignore + public setMatchAllSubjectAltNames(matchAllNames: boolean): void; + /** + * Sets the subjectAlternativeNames criterion. The + * {@code X509Certificate} must contain all or at least one of the + * specified subjectAlternativeNames, depending on the value of + * the matchAllNames flag (see {@link #setMatchAllSubjectAltNames + * setMatchAllSubjectAltNames}). + *

+ * This method allows the caller to specify, with a single method call, + * the complete set of subject alternative names for the + * subjectAlternativeNames criterion. The specified value replaces + * the previous value for the subjectAlternativeNames criterion. + *

+ * The {@code names} parameter (if not {@code null}) is a + * {@code Collection} with one + * entry for each name to be included in the subject alternative name + * criterion. Each entry is a {@code List} whose first entry is an + * {@code Integer} (the name type, 0-8) and whose second + * entry is a {@code String} or a byte array (the name, in + * string or ASN.1 DER encoded form, respectively). + * There can be multiple names of the same type. If {@code null} + * is supplied as the value for this argument, no + * subjectAlternativeNames check will be performed. + *

+ * Each subject alternative name in the {@code Collection} + * may be specified either as a {@code String} or as an ASN.1 encoded + * byte array. For more details about the formats used, see + * {@link #addSubjectAlternativeName(int type, String name) + * addSubjectAlternativeName(int type, String name)} and + * {@link #addSubjectAlternativeName(int type, byte [] name) + * addSubjectAlternativeName(int type, byte [] name)}. + *

+ * Note: for distinguished names, specify the byte + * array form instead of the String form. See the note in + * {@link #addSubjectAlternativeName(int, String)} for more information. + *

+ * Note that the {@code names} parameter can contain duplicate + * names (same name and name type), but they may be removed from the + * {@code Collection} of names returned by the + * {@link #getSubjectAlternativeNames getSubjectAlternativeNames} method. + *

+ * Note that a deep copy is performed on the {@code Collection} to + * protect against subsequent modifications. + */ + // @ts-ignore + public setSubjectAlternativeNames(names: java.util.Collection): void; + /** + * Adds a name to the subjectAlternativeNames criterion. The + * {@code X509Certificate} must contain all or at least one + * of the specified subjectAlternativeNames, depending on the value of + * the matchAllNames flag (see {@link #setMatchAllSubjectAltNames + * setMatchAllSubjectAltNames}). + *

+ * This method allows the caller to add a name to the set of subject + * alternative names. + * The specified name is added to any previous value for the + * subjectAlternativeNames criterion. If the specified name is a + * duplicate, it may be ignored. + *

+ * The name is provided in string format. + * RFC 822, DNS, and URI + * names use the well-established string formats for those types (subject to + * the restrictions included in RFC 3280). IPv4 address names are + * supplied using dotted quad notation. OID address names are represented + * as a series of nonnegative integers separated by periods. And + * directory names (distinguished names) are supplied in RFC 2253 format. + * No standard string format is defined for otherNames, X.400 names, + * EDI party names, IPv6 address names, or any other type of names. They + * should be specified using the + * {@link #addSubjectAlternativeName(int type, byte [] name) + * addSubjectAlternativeName(int type, byte [] name)} + * method. + *

+ * Note: for distinguished names, use + * {@linkplain #addSubjectAlternativeName(int, byte[])} instead. + * This method should not be relied on as it can fail to match some + * certificates because of a loss of encoding information in the RFC 2253 + * String form of some distinguished names. + */ + // @ts-ignore + public addSubjectAlternativeName(type: number, name: string): void; + /** + * Adds a name to the subjectAlternativeNames criterion. The + * {@code X509Certificate} must contain all or at least one + * of the specified subjectAlternativeNames, depending on the value of + * the matchAllNames flag (see {@link #setMatchAllSubjectAltNames + * setMatchAllSubjectAltNames}). + *

+ * This method allows the caller to add a name to the set of subject + * alternative names. + * The specified name is added to any previous value for the + * subjectAlternativeNames criterion. If the specified name is a + * duplicate, it may be ignored. + *

+ * The name is provided as a byte array. This byte array should contain + * the DER encoded name, as it would appear in the GeneralName structure + * defined in RFC 3280 and X.509. The encoded byte array should only contain + * the encoded value of the name, and should not include the tag associated + * with the name in the GeneralName structure. The ASN.1 definition of this + * structure appears below. + *

{@code
+                 * GeneralName ::= CHOICE {
+                 * otherName                       [0]     OtherName,
+                 * rfc822Name                      [1]     IA5String,
+                 * dNSName                         [2]     IA5String,
+                 * x400Address                     [3]     ORAddress,
+                 * directoryName                   [4]     Name,
+                 * ediPartyName                    [5]     EDIPartyName,
+                 * uniformResourceIdentifier       [6]     IA5String,
+                 * iPAddress                       [7]     OCTET STRING,
+                 * registeredID                    [8]     OBJECT IDENTIFIER}
+                 * }
+ *

+ * Note that the byte array supplied here is cloned to protect against + * subsequent modifications. + */ + // @ts-ignore + public addSubjectAlternativeName(type: number, name: number): void; + /** + * Sets the name constraints criterion. The {@code X509Certificate} + * must have subject and subject alternative names that + * meet the specified name constraints. + *

+ * The name constraints are specified as a byte array. This byte array + * should contain the DER encoded form of the name constraints, as they + * would appear in the NameConstraints structure defined in RFC 3280 + * and X.509. The ASN.1 definition of this structure appears below. + *

{@code
+                 * NameConstraints ::= SEQUENCE {
+                 * permittedSubtrees       [0]     GeneralSubtrees OPTIONAL,
+                 * excludedSubtrees        [1]     GeneralSubtrees OPTIONAL }
+                 * GeneralSubtrees ::= SEQUENCE SIZE (1..MAX) OF GeneralSubtree
+                 * GeneralSubtree ::= SEQUENCE {
+                 * base                    GeneralName,
+                 * minimum         [0]     BaseDistance DEFAULT 0,
+                 * maximum         [1]     BaseDistance OPTIONAL }
+                 * BaseDistance ::= INTEGER (0..MAX)
+                 * GeneralName ::= CHOICE {
+                 * otherName                       [0]     OtherName,
+                 * rfc822Name                      [1]     IA5String,
+                 * dNSName                         [2]     IA5String,
+                 * x400Address                     [3]     ORAddress,
+                 * directoryName                   [4]     Name,
+                 * ediPartyName                    [5]     EDIPartyName,
+                 * uniformResourceIdentifier       [6]     IA5String,
+                 * iPAddress                       [7]     OCTET STRING,
+                 * registeredID                    [8]     OBJECT IDENTIFIER}
+                 * }
+ *

+ * Note that the byte array supplied here is cloned to protect against + * subsequent modifications. + */ + // @ts-ignore + public setNameConstraints(bytes: number): void; + /** + * Sets the basic constraints constraint. If the value is greater than or + * equal to zero, {@code X509Certificates} must include a + * basicConstraints extension with + * a pathLen of at least this value. If the value is -2, only end-entity + * certificates are accepted. If the value is -1, no check is done. + *

+ * This constraint is useful when building a certification path forward + * (from the target toward the trust anchor. If a partial path has been + * built, any candidate certificate must have a maxPathLen value greater + * than or equal to the number of certificates in the partial path. + */ + // @ts-ignore + public setBasicConstraints(minMaxPathLen: number): void; + /** + * Sets the policy constraint. The {@code X509Certificate} must + * include at least one of the specified policies in its certificate + * policies extension. If {@code certPolicySet} is empty, then the + * {@code X509Certificate} must include at least some specified policy + * in its certificate policies extension. If {@code certPolicySet} is + * {@code null}, no policy check will be performed. + *

+ * Note that the {@code Set} is cloned to protect against + * subsequent modifications. + */ + // @ts-ignore + public setPolicy(certPolicySet: java.util.Set): void; + /** + * Sets the pathToNames criterion. The {@code X509Certificate} must + * not include name constraints that would prohibit building a + * path to the specified names. + *

+ * This method allows the caller to specify, with a single method call, + * the complete set of names which the {@code X509Certificates}'s + * name constraints must permit. The specified value replaces + * the previous value for the pathToNames criterion. + *

+ * This constraint is useful when building a certification path forward + * (from the target toward the trust anchor. If a partial path has been + * built, any candidate certificate must not include name constraints that + * would prohibit building a path to any of the names in the partial path. + *

+ * The {@code names} parameter (if not {@code null}) is a + * {@code Collection} with one + * entry for each name to be included in the pathToNames + * criterion. Each entry is a {@code List} whose first entry is an + * {@code Integer} (the name type, 0-8) and whose second + * entry is a {@code String} or a byte array (the name, in + * string or ASN.1 DER encoded form, respectively). + * There can be multiple names of the same type. If {@code null} + * is supplied as the value for this argument, no + * pathToNames check will be performed. + *

+ * Each name in the {@code Collection} + * may be specified either as a {@code String} or as an ASN.1 encoded + * byte array. For more details about the formats used, see + * {@link #addPathToName(int type, String name) + * addPathToName(int type, String name)} and + * {@link #addPathToName(int type, byte [] name) + * addPathToName(int type, byte [] name)}. + *

+ * Note: for distinguished names, specify the byte + * array form instead of the String form. See the note in + * {@link #addPathToName(int, String)} for more information. + *

+ * Note that the {@code names} parameter can contain duplicate + * names (same name and name type), but they may be removed from the + * {@code Collection} of names returned by the + * {@link #getPathToNames getPathToNames} method. + *

+ * Note that a deep copy is performed on the {@code Collection} to + * protect against subsequent modifications. + */ + // @ts-ignore + public setPathToNames(names: java.util.Collection): void; + /** + * Adds a name to the pathToNames criterion. The {@code X509Certificate} + * must not include name constraints that would prohibit building a + * path to the specified name. + *

+ * This method allows the caller to add a name to the set of names which + * the {@code X509Certificates}'s name constraints must permit. + * The specified name is added to any previous value for the + * pathToNames criterion. If the name is a duplicate, it may be ignored. + *

+ * The name is provided in string format. RFC 822, DNS, and URI names + * use the well-established string formats for those types (subject to + * the restrictions included in RFC 3280). IPv4 address names are + * supplied using dotted quad notation. OID address names are represented + * as a series of nonnegative integers separated by periods. And + * directory names (distinguished names) are supplied in RFC 2253 format. + * No standard string format is defined for otherNames, X.400 names, + * EDI party names, IPv6 address names, or any other type of names. They + * should be specified using the + * {@link #addPathToName(int type, byte [] name) + * addPathToName(int type, byte [] name)} method. + *

+ * Note: for distinguished names, use + * {@linkplain #addPathToName(int, byte[])} instead. + * This method should not be relied on as it can fail to match some + * certificates because of a loss of encoding information in the RFC 2253 + * String form of some distinguished names. + */ + // @ts-ignore + public addPathToName(type: number, name: string): void; + /** + * Adds a name to the pathToNames criterion. The {@code X509Certificate} + * must not include name constraints that would prohibit building a + * path to the specified name. + *

+ * This method allows the caller to add a name to the set of names which + * the {@code X509Certificates}'s name constraints must permit. + * The specified name is added to any previous value for the + * pathToNames criterion. If the name is a duplicate, it may be ignored. + *

+ * The name is provided as a byte array. This byte array should contain + * the DER encoded name, as it would appear in the GeneralName structure + * defined in RFC 3280 and X.509. The ASN.1 definition of this structure + * appears in the documentation for + * {@link #addSubjectAlternativeName(int type, byte [] name) + * addSubjectAlternativeName(int type, byte [] name)}. + *

+ * Note that the byte array supplied here is cloned to protect against + * subsequent modifications. + */ + // @ts-ignore + public addPathToName(type: number, name: number): void; + /** + * Returns the certificateEquals criterion. The specified + * {@code X509Certificate} must be equal to the + * {@code X509Certificate} passed to the {@code match} method. + * If {@code null}, this check is not applied. + */ + // @ts-ignore + public getCertificate(): java.security.cert.X509Certificate; + /** + * Returns the serialNumber criterion. The specified serial number + * must match the certificate serial number in the + * {@code X509Certificate}. If {@code null}, any certificate + * serial number will do. + */ + // @ts-ignore + public getSerialNumber(): java.math.BigInteger; + /** + * Returns the issuer criterion as an {@code X500Principal}. This + * distinguished name must match the issuer distinguished name in the + * {@code X509Certificate}. If {@code null}, the issuer criterion + * is disabled and any issuer distinguished name will do. + */ + // @ts-ignore + public getIssuer(): any /*javax.security.auth.x500.X500Principal*/; + /** + * Denigrated, use {@linkplain #getIssuer()} or + * {@linkplain #getIssuerAsBytes()} instead. This method should not be + * relied on as it can fail to match some certificates because of a loss of + * encoding information in the RFC 2253 String form of some distinguished + * names. + *

+ * Returns the issuer criterion as a {@code String}. This + * distinguished name must match the issuer distinguished name in the + * {@code X509Certificate}. If {@code null}, the issuer criterion + * is disabled and any issuer distinguished name will do. + *

+ * If the value returned is not {@code null}, it is a + * distinguished name, in RFC 2253 format. + */ + // @ts-ignore + public getIssuerAsString(): string; + /** + * Returns the issuer criterion as a byte array. This distinguished name + * must match the issuer distinguished name in the + * {@code X509Certificate}. If {@code null}, the issuer criterion + * is disabled and any issuer distinguished name will do. + *

+ * If the value returned is not {@code null}, it is a byte + * array containing a single DER encoded distinguished name, as defined in + * X.501. The ASN.1 notation for this structure is supplied in the + * documentation for + * {@link #setIssuer(byte [] issuerDN) setIssuer(byte [] issuerDN)}. + *

+ * Note that the byte array returned is cloned to protect against + * subsequent modifications. + */ + // @ts-ignore + public getIssuerAsBytes(): number[]; + /** + * Returns the subject criterion as an {@code X500Principal}. This + * distinguished name must match the subject distinguished name in the + * {@code X509Certificate}. If {@code null}, the subject criterion + * is disabled and any subject distinguished name will do. + */ + // @ts-ignore + public getSubject(): any /*javax.security.auth.x500.X500Principal*/; + /** + * Denigrated, use {@linkplain #getSubject()} or + * {@linkplain #getSubjectAsBytes()} instead. This method should not be + * relied on as it can fail to match some certificates because of a loss of + * encoding information in the RFC 2253 String form of some distinguished + * names. + *

+ * Returns the subject criterion as a {@code String}. This + * distinguished name must match the subject distinguished name in the + * {@code X509Certificate}. If {@code null}, the subject criterion + * is disabled and any subject distinguished name will do. + *

+ * If the value returned is not {@code null}, it is a + * distinguished name, in RFC 2253 format. + */ + // @ts-ignore + public getSubjectAsString(): string; + /** + * Returns the subject criterion as a byte array. This distinguished name + * must match the subject distinguished name in the + * {@code X509Certificate}. If {@code null}, the subject criterion + * is disabled and any subject distinguished name will do. + *

+ * If the value returned is not {@code null}, it is a byte + * array containing a single DER encoded distinguished name, as defined in + * X.501. The ASN.1 notation for this structure is supplied in the + * documentation for + * {@link #setSubject(byte [] subjectDN) setSubject(byte [] subjectDN)}. + *

+ * Note that the byte array returned is cloned to protect against + * subsequent modifications. + */ + // @ts-ignore + public getSubjectAsBytes(): number[]; + /** + * Returns the subjectKeyIdentifier criterion. The + * {@code X509Certificate} must contain a SubjectKeyIdentifier + * extension with the specified value. If {@code null}, no + * subjectKeyIdentifier check will be done. + *

+ * Note that the byte array returned is cloned to protect against + * subsequent modifications. + */ + // @ts-ignore + public getSubjectKeyIdentifier(): number[]; + /** + * Returns the authorityKeyIdentifier criterion. The + * {@code X509Certificate} must contain a AuthorityKeyIdentifier + * extension with the specified value. If {@code null}, no + * authorityKeyIdentifier check will be done. + *

+ * Note that the byte array returned is cloned to protect against + * subsequent modifications. + */ + // @ts-ignore + public getAuthorityKeyIdentifier(): number[]; + /** + * Returns the certificateValid criterion. The specified date must fall + * within the certificate validity period for the + * {@code X509Certificate}. If {@code null}, no certificateValid + * check will be done. + *

+ * Note that the {@code Date} returned is cloned to protect against + * subsequent modifications. + */ + // @ts-ignore + public getCertificateValid(): java.util.Date; + /** + * Returns the privateKeyValid criterion. The specified date must fall + * within the private key validity period for the + * {@code X509Certificate}. If {@code null}, no privateKeyValid + * check will be done. + *

+ * Note that the {@code Date} returned is cloned to protect against + * subsequent modifications. + */ + // @ts-ignore + public getPrivateKeyValid(): java.util.Date; + /** + * Returns the subjectPublicKeyAlgID criterion. The + * {@code X509Certificate} must contain a subject public key + * with the specified algorithm. If {@code null}, no + * subjectPublicKeyAlgID check will be done. + */ + // @ts-ignore + public getSubjectPublicKeyAlgID(): string; + /** + * Returns the subjectPublicKey criterion. The + * {@code X509Certificate} must contain the specified subject + * public key. If {@code null}, no subjectPublicKey check will be done. + */ + // @ts-ignore + public getSubjectPublicKey(): java.security.PublicKey; + /** + * Returns the keyUsage criterion. The {@code X509Certificate} + * must allow the specified keyUsage values. If null, no keyUsage + * check will be done. + *

+ * Note that the boolean array returned is cloned to protect against + * subsequent modifications. + */ + // @ts-ignore + public getKeyUsage(): boolean[]; + /** + * Returns the extendedKeyUsage criterion. The {@code X509Certificate} + * must allow the specified key purposes in its extended key usage + * extension. If the {@code keyPurposeSet} returned is empty or + * {@code null}, no extendedKeyUsage check will be done. Note that an + * {@code X509Certificate} that has no extendedKeyUsage extension + * implicitly allows all key purposes. + */ + // @ts-ignore + public getExtendedKeyUsage(): java.util.Set; + /** + * Indicates if the {@code X509Certificate} must contain all + * or at least one of the subjectAlternativeNames + * specified in the {@link #setSubjectAlternativeNames + * setSubjectAlternativeNames} or {@link #addSubjectAlternativeName + * addSubjectAlternativeName} methods. If {@code true}, + * the {@code X509Certificate} must contain all of the + * specified subject alternative names. If {@code false}, the + * {@code X509Certificate} must contain at least one of the + * specified subject alternative names. + */ + // @ts-ignore + public getMatchAllSubjectAltNames(): boolean; + /** + * Returns a copy of the subjectAlternativeNames criterion. + * The {@code X509Certificate} must contain all or at least one + * of the specified subjectAlternativeNames, depending on the value + * of the matchAllNames flag (see {@link #getMatchAllSubjectAltNames + * getMatchAllSubjectAltNames}). If the value returned is + * {@code null}, no subjectAlternativeNames check will be performed. + *

+ * If the value returned is not {@code null}, it is a + * {@code Collection} with + * one entry for each name to be included in the subject alternative name + * criterion. Each entry is a {@code List} whose first entry is an + * {@code Integer} (the name type, 0-8) and whose second + * entry is a {@code String} or a byte array (the name, in + * string or ASN.1 DER encoded form, respectively). + * There can be multiple names of the same type. Note that the + * {@code Collection} returned may contain duplicate names (same name + * and name type). + *

+ * Each subject alternative name in the {@code Collection} + * may be specified either as a {@code String} or as an ASN.1 encoded + * byte array. For more details about the formats used, see + * {@link #addSubjectAlternativeName(int type, String name) + * addSubjectAlternativeName(int type, String name)} and + * {@link #addSubjectAlternativeName(int type, byte [] name) + * addSubjectAlternativeName(int type, byte [] name)}. + *

+ * Note that a deep copy is performed on the {@code Collection} to + * protect against subsequent modifications. + */ + // @ts-ignore + public getSubjectAlternativeNames(): java.util.Collection; + /** + * Returns the name constraints criterion. The {@code X509Certificate} + * must have subject and subject alternative names that + * meet the specified name constraints. + *

+ * The name constraints are returned as a byte array. This byte array + * contains the DER encoded form of the name constraints, as they + * would appear in the NameConstraints structure defined in RFC 3280 + * and X.509. The ASN.1 notation for this structure is supplied in the + * documentation for + * {@link #setNameConstraints(byte [] bytes) setNameConstraints(byte [] bytes)}. + *

+ * Note that the byte array returned is cloned to protect against + * subsequent modifications. + */ + // @ts-ignore + public getNameConstraints(): number[]; + /** + * Returns the basic constraints constraint. If the value is greater than + * or equal to zero, the {@code X509Certificates} must include a + * basicConstraints extension with a pathLen of at least this value. + * If the value is -2, only end-entity certificates are accepted. If + * the value is -1, no basicConstraints check is done. + */ + // @ts-ignore + public getBasicConstraints(): number; + /** + * Returns the policy criterion. The {@code X509Certificate} must + * include at least one of the specified policies in its certificate policies + * extension. If the {@code Set} returned is empty, then the + * {@code X509Certificate} must include at least some specified policy + * in its certificate policies extension. If the {@code Set} returned is + * {@code null}, no policy check will be performed. + */ + // @ts-ignore + public getPolicy(): java.util.Set; + /** + * Returns a copy of the pathToNames criterion. The + * {@code X509Certificate} must not include name constraints that would + * prohibit building a path to the specified names. If the value + * returned is {@code null}, no pathToNames check will be performed. + *

+ * If the value returned is not {@code null}, it is a + * {@code Collection} with one + * entry for each name to be included in the pathToNames + * criterion. Each entry is a {@code List} whose first entry is an + * {@code Integer} (the name type, 0-8) and whose second + * entry is a {@code String} or a byte array (the name, in + * string or ASN.1 DER encoded form, respectively). + * There can be multiple names of the same type. Note that the + * {@code Collection} returned may contain duplicate names (same + * name and name type). + *

+ * Each name in the {@code Collection} + * may be specified either as a {@code String} or as an ASN.1 encoded + * byte array. For more details about the formats used, see + * {@link #addPathToName(int type, String name) + * addPathToName(int type, String name)} and + * {@link #addPathToName(int type, byte [] name) + * addPathToName(int type, byte [] name)}. + *

+ * Note that a deep copy is performed on the {@code Collection} to + * protect against subsequent modifications. + */ + // @ts-ignore + public getPathToNames(): java.util.Collection; + /** + * Return a printable representation of the {@code CertSelector}. + */ + // @ts-ignore + public toString(): string; + /** + * Decides whether a {@code Certificate} should be selected. + */ + // @ts-ignore + public match(cert: java.security.cert.Certificate): boolean; + /** + * Returns a copy of this object. + */ + // @ts-ignore + public clone(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.X509Certificate.d.ts b/packages/types/dist/typings/jdk/java.security.cert.X509Certificate.d.ts new file mode 100644 index 00000000..d57a0ea1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.X509Certificate.d.ts @@ -0,0 +1,420 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + abstract class X509Certificate extends java.security.cert.Certificate { + /** + * Constructor for X.509 certificates. + */ + // @ts-ignore + constructor() + /** + * Checks that the certificate is currently valid. It is if + * the current date and time are within the validity period given in the + * certificate. + *

+ * The validity period consists of two date/time values: + * the first and last dates (and times) on which the certificate + * is valid. It is defined in + * ASN.1 as: + *

+                 * validity             Validity
+                 * Validity ::= SEQUENCE {
+                 * notBefore      CertificateValidityDate,
+                 * notAfter       CertificateValidityDate }
+                 * CertificateValidityDate ::= CHOICE {
+                 * utcTime        UTCTime,
+                 * generalTime    GeneralizedTime }
+                 * 
+ */ + // @ts-ignore + public abstract checkValidity(): void; + /** + * Gets the {@code version} (version number) value from the + * certificate. + * The ASN.1 definition for this is: + *
+                 * version  [0] EXPLICIT Version DEFAULT v1
+                 * Version ::=  INTEGER  {  v1(0), v2(1), v3(2)  }
+                 * 
+ */ + // @ts-ignore + public abstract getVersion(): number; + /** + * Gets the {@code serialNumber} value from the certificate. + * The serial number is an integer assigned by the certification + * authority to each certificate. It must be unique for each + * certificate issued by a given CA (i.e., the issuer name and + * serial number identify a unique certificate). + * The ASN.1 definition for this is: + *
+                 * serialNumber     CertificateSerialNumber
+                 * CertificateSerialNumber  ::=  INTEGER
+                 * 
+ */ + // @ts-ignore + public abstract getSerialNumber(): java.math.BigInteger; + /** + * Denigrated, replaced by {@linkplain + * #getIssuerX500Principal()}. This method returns the {@code issuer} + * as an implementation specific Principal object, which should not be + * relied upon by portable code. + *

+ * Gets the {@code issuer} (issuer distinguished name) value from + * the certificate. The issuer name identifies the entity that signed (and + * issued) the certificate. + *

The issuer name field contains an + * X.500 distinguished name (DN). + * The ASN.1 definition for this is: + *

+                 * issuer    Name
+                 * Name ::= CHOICE { RDNSequence }
+                 * RDNSequence ::= SEQUENCE OF RelativeDistinguishedName
+                 * RelativeDistinguishedName ::=
+                 * SET OF AttributeValueAssertion
+                 * AttributeValueAssertion ::= SEQUENCE {
+                 * AttributeType,
+                 * AttributeValue }
+                 * AttributeType ::= OBJECT IDENTIFIER
+                 * AttributeValue ::= ANY
+                 * 
+ * The {@code Name} describes a hierarchical name composed of + * attributes, + * such as country name, and corresponding values, such as US. + * The type of the {@code AttributeValue} component is determined by + * the {@code AttributeType}; in general it will be a + * {@code directoryString}. A {@code directoryString} is usually + * one of {@code PrintableString}, + * {@code TeletexString} or {@code UniversalString}. + */ + // @ts-ignore + public abstract getIssuerDN(): java.security.Principal; + /** + * Returns the issuer (issuer distinguished name) value from the + * certificate as an {@code X500Principal}. + *

+ * It is recommended that subclasses override this method. + */ + // @ts-ignore + public getIssuerX500Principal(): any /*javax.security.auth.x500.X500Principal*/; + /** + * Denigrated, replaced by {@linkplain + * #getSubjectX500Principal()}. This method returns the {@code subject} + * as an implementation specific Principal object, which should not be + * relied upon by portable code. + *

+ * Gets the {@code subject} (subject distinguished name) value + * from the certificate. If the {@code subject} value is empty, + * then the {@code getName()} method of the returned + * {@code Principal} object returns an empty string (""). + *

The ASN.1 definition for this is: + *

+                 * subject    Name
+                 * 
+ *

See {@link #getIssuerDN() getIssuerDN} for {@code Name} + * and other relevant definitions. + */ + // @ts-ignore + public abstract getSubjectDN(): java.security.Principal; + /** + * Returns the subject (subject distinguished name) value from the + * certificate as an {@code X500Principal}. If the subject value + * is empty, then the {@code getName()} method of the returned + * {@code X500Principal} object returns an empty string (""). + *

+ * It is recommended that subclasses override this method. + */ + // @ts-ignore + public getSubjectX500Principal(): any /*javax.security.auth.x500.X500Principal*/; + /** + * Gets the {@code notBefore} date from the validity period of + * the certificate. + * The relevant ASN.1 definitions are: + *

+                 * validity             Validity
+                 * Validity ::= SEQUENCE {
+                 * notBefore      CertificateValidityDate,
+                 * notAfter       CertificateValidityDate }
+                 * CertificateValidityDate ::= CHOICE {
+                 * utcTime        UTCTime,
+                 * generalTime    GeneralizedTime }
+                 * 
+ */ + // @ts-ignore + public abstract getNotBefore(): java.util.Date; + /** + * Gets the {@code notAfter} date from the validity period of + * the certificate. See {@link #getNotBefore() getNotBefore} + * for relevant ASN.1 definitions. + */ + // @ts-ignore + public abstract getNotAfter(): java.util.Date; + /** + * Gets the DER-encoded certificate information, the + * {@code tbsCertificate} from this certificate. + * This can be used to verify the signature independently. + */ + // @ts-ignore + public abstract getTBSCertificate(): number[]; + /** + * Gets the {@code signature} value (the raw signature bits) from + * the certificate. + * The ASN.1 definition for this is: + *
+                 * signature     BIT STRING
+                 * 
+ */ + // @ts-ignore + public abstract getSignature(): number[]; + /** + * Gets the signature algorithm name for the certificate + * signature algorithm. An example is the string "SHA256withRSA". + * The ASN.1 definition for this is: + *
+                 * signatureAlgorithm   AlgorithmIdentifier
+                 * AlgorithmIdentifier  ::=  SEQUENCE  {
+                 * algorithm               OBJECT IDENTIFIER,
+                 * parameters              ANY DEFINED BY algorithm OPTIONAL  }
+                 * -- contains a value of the type
+                 * -- registered for use with the
+                 * -- algorithm object identifier value
+                 * 
+ *

The algorithm name is determined from the {@code algorithm} + * OID string. + */ + // @ts-ignore + public abstract getSigAlgName(): string; + /** + * Gets the signature algorithm OID string from the certificate. + * An OID is represented by a set of nonnegative whole numbers separated + * by periods. + * For example, the string "1.2.840.10040.4.3" identifies the SHA-1 + * with DSA signature algorithm defined in + * RFC 3279: Algorithms and + * Identifiers for the Internet X.509 Public Key Infrastructure Certificate + * and CRL Profile. + *

See {@link #getSigAlgName() getSigAlgName} for + * relevant ASN.1 definitions. + */ + // @ts-ignore + public abstract getSigAlgOID(): string; + /** + * Gets the DER-encoded signature algorithm parameters from this + * certificate's signature algorithm. In most cases, the signature + * algorithm parameters are null; the parameters are usually + * supplied with the certificate's public key. + * If access to individual parameter values is needed then use + * {@link java.security.AlgorithmParameters AlgorithmParameters} + * and instantiate with the name returned by + * {@link #getSigAlgName() getSigAlgName}. + *

See {@link #getSigAlgName() getSigAlgName} for + * relevant ASN.1 definitions. + */ + // @ts-ignore + public abstract getSigAlgParams(): number[]; + /** + * Gets the {@code issuerUniqueID} value from the certificate. + * The issuer unique identifier is present in the certificate + * to handle the possibility of reuse of issuer names over time. + * RFC 3280 recommends that names not be reused and that + * conforming certificates not make use of unique identifiers. + * Applications conforming to that profile should be capable of + * parsing unique identifiers and making comparisons. + *

The ASN.1 definition for this is: + *

+                 * issuerUniqueID  [1]  IMPLICIT UniqueIdentifier OPTIONAL
+                 * UniqueIdentifier  ::=  BIT STRING
+                 * 
+ */ + // @ts-ignore + public abstract getIssuerUniqueID(): boolean[]; + /** + * Gets the {@code subjectUniqueID} value from the certificate. + *

The ASN.1 definition for this is: + *

+                 * subjectUniqueID  [2]  IMPLICIT UniqueIdentifier OPTIONAL
+                 * UniqueIdentifier  ::=  BIT STRING
+                 * 
+ */ + // @ts-ignore + public abstract getSubjectUniqueID(): boolean[]; + /** + * Gets a boolean array representing bits of + * the {@code KeyUsage} extension, (OID = 2.5.29.15). + * The key usage extension defines the purpose (e.g., encipherment, + * signature, certificate signing) of the key contained in the + * certificate. + * The ASN.1 definition for this is: + *
+                 * KeyUsage ::= BIT STRING {
+                 * digitalSignature        (0),
+                 * nonRepudiation          (1),
+                 * keyEncipherment         (2),
+                 * dataEncipherment        (3),
+                 * keyAgreement            (4),
+                 * keyCertSign             (5),
+                 * cRLSign                 (6),
+                 * encipherOnly            (7),
+                 * decipherOnly            (8) }
+                 * 
+ * RFC 3280 recommends that when used, this be marked + * as a critical extension. + */ + // @ts-ignore + public abstract getKeyUsage(): boolean[]; + /** + * Gets an unmodifiable list of Strings representing the OBJECT + * IDENTIFIERs of the {@code ExtKeyUsageSyntax} field of the + * extended key usage extension, (OID = 2.5.29.37). It indicates + * one or more purposes for which the certified public key may be + * used, in addition to or in place of the basic purposes + * indicated in the key usage extension field. The ASN.1 + * definition for this is: + *
+                 * ExtKeyUsageSyntax ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId
+                 * KeyPurposeId ::= OBJECT IDENTIFIER
+                 * 
+ * Key purposes may be defined by any organization with a + * need. Object identifiers used to identify key purposes shall be + * assigned in accordance with IANA or ITU-T Rec. X.660 | + * ISO/IEC/ITU 9834-1. + *

+ * This method was added to version 1.4 of the Java 2 Platform Standard + * Edition. In order to maintain backwards compatibility with existing + * service providers, this method is not {@code abstract} + * and it provides a default implementation. Subclasses + * should override this method with a correct implementation. + */ + // @ts-ignore + public getExtendedKeyUsage(): java.util.List; + /** + * Gets the certificate constraints path length from the + * critical {@code BasicConstraints} extension, (OID = 2.5.29.19). + *

+ * The basic constraints extension identifies whether the subject + * of the certificate is a Certificate Authority (CA) and + * how deep a certification path may exist through that CA. The + * {@code pathLenConstraint} field (see below) is meaningful + * only if {@code cA} is set to TRUE. In this case, it gives the + * maximum number of CA certificates that may follow this certificate in a + * certification path. A value of zero indicates that only an end-entity + * certificate may follow in the path. + *

+ * The ASN.1 definition for this is: + *

+                 * BasicConstraints ::= SEQUENCE {
+                 * cA                  BOOLEAN DEFAULT FALSE,
+                 * pathLenConstraint   INTEGER (0..MAX) OPTIONAL }
+                 * 
+ */ + // @ts-ignore + public abstract getBasicConstraints(): number; + /** + * Gets an immutable collection of subject alternative names from the + * {@code SubjectAltName} extension, (OID = 2.5.29.17). + *

+ * The ASN.1 definition of the {@code SubjectAltName} extension is: + *

+                 * SubjectAltName ::= GeneralNames
+                 * GeneralNames :: = SEQUENCE SIZE (1..MAX) OF GeneralName
+                 * GeneralName ::= CHOICE {
+                 * otherName                       [0]     OtherName,
+                 * rfc822Name                      [1]     IA5String,
+                 * dNSName                         [2]     IA5String,
+                 * x400Address                     [3]     ORAddress,
+                 * directoryName                   [4]     Name,
+                 * ediPartyName                    [5]     EDIPartyName,
+                 * uniformResourceIdentifier       [6]     IA5String,
+                 * iPAddress                       [7]     OCTET STRING,
+                 * registeredID                    [8]     OBJECT IDENTIFIER}
+                 * 
+ *

+ * If this certificate does not contain a {@code SubjectAltName} + * extension, {@code null} is returned. Otherwise, a + * {@code Collection} is returned with an entry representing each + * {@code GeneralName} included in the extension. Each entry is a + * {@code List} whose first entry is an {@code Integer} + * (the name type, 0-8) and whose second entry is a {@code String} + * or a byte array (the name, in string or ASN.1 DER encoded form, + * respectively). + *

+ * RFC 822, DNS, and URI + * names are returned as {@code String}s, + * using the well-established string formats for those types (subject to + * the restrictions included in RFC 3280). IPv4 address names are + * returned using dotted quad notation. IPv6 address names are returned + * in the form "a1:a2:...:a8", where a1-a8 are hexadecimal values + * representing the eight 16-bit pieces of the address. OID names are + * returned as {@code String}s represented as a series of nonnegative + * integers separated by periods. And directory names (distinguished names) + * are returned in + * RFC 2253 string format. No standard string format is + * defined for otherNames, X.400 names, EDI party names, or any + * other type of names. They are returned as byte arrays + * containing the ASN.1 DER encoded form of the name. + *

+ * Note that the {@code Collection} returned may contain more + * than one name of the same type. Also, note that the returned + * {@code Collection} is immutable and any entries containing byte + * arrays are cloned to protect against subsequent modifications. + *

+ * This method was added to version 1.4 of the Java 2 Platform Standard + * Edition. In order to maintain backwards compatibility with existing + * service providers, this method is not {@code abstract} + * and it provides a default implementation. Subclasses + * should override this method with a correct implementation. + */ + // @ts-ignore + public getSubjectAlternativeNames(): java.util.Collection; + /** + * Gets an immutable collection of issuer alternative names from the + * {@code IssuerAltName} extension, (OID = 2.5.29.18). + *

+ * The ASN.1 definition of the {@code IssuerAltName} extension is: + *

+                 * IssuerAltName ::= GeneralNames
+                 * 
+ * The ASN.1 definition of {@code GeneralNames} is defined + * in {@link #getSubjectAlternativeNames getSubjectAlternativeNames}. + *

+ * If this certificate does not contain an {@code IssuerAltName} + * extension, {@code null} is returned. Otherwise, a + * {@code Collection} is returned with an entry representing each + * {@code GeneralName} included in the extension. Each entry is a + * {@code List} whose first entry is an {@code Integer} + * (the name type, 0-8) and whose second entry is a {@code String} + * or a byte array (the name, in string or ASN.1 DER encoded form, + * respectively). For more details about the formats used for each + * name type, see the {@code getSubjectAlternativeNames} method. + *

+ * Note that the {@code Collection} returned may contain more + * than one name of the same type. Also, note that the returned + * {@code Collection} is immutable and any entries containing byte + * arrays are cloned to protect against subsequent modifications. + *

+ * This method was added to version 1.4 of the Java 2 Platform Standard + * Edition. In order to maintain backwards compatibility with existing + * service providers, this method is not {@code abstract} + * and it provides a default implementation. Subclasses + * should override this method with a correct implementation. + */ + // @ts-ignore + public getIssuerAlternativeNames(): java.util.Collection; + /** + * Verifies that this certificate was signed using the + * private key that corresponds to the specified public key. + * This method uses the signature verification engine + * supplied by the specified provider. Note that the specified + * Provider object does not have to be registered in the provider list. + * This method was added to version 1.8 of the Java Platform Standard + * Edition. In order to maintain backwards compatibility with existing + * service providers, this method is not {@code abstract} + * and it provides a default implementation. + */ + // @ts-ignore + public verify(key: java.security.PublicKey, sigProvider: java.security.Provider): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.cert.X509Extension.d.ts b/packages/types/dist/typings/jdk/java.security.cert.X509Extension.d.ts new file mode 100644 index 00000000..ba622208 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.cert.X509Extension.d.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace cert { + // @ts-ignore + interface X509Extension { + /** + * Check if there is a critical extension that is not supported. + */ + // @ts-ignore + hasUnsupportedCriticalExtension(): boolean; + /** + * Gets a Set of the OID strings for the extension(s) marked + * CRITICAL in the certificate/CRL managed by the object + * implementing this interface. + * Here is sample code to get a Set of critical extensions from an + * X509Certificate and print the OIDs: + *

{@code
+                 * X509Certificate cert = null;
+                 * try (InputStream inStrm = new FileInputStream("DER-encoded-Cert")) {
+                 * CertificateFactory cf = CertificateFactory.getInstance("X.509");
+                 * cert = (X509Certificate)cf.generateCertificate(inStrm);
+                 * }
+                 * Set critSet = cert.getCriticalExtensionOIDs();
+                 * if (critSet != null && !critSet.isEmpty()) {
+                 * System.out.println("Set of critical extensions:");
+                 * for (String oid : critSet) {
+                 * System.out.println(oid);
+                 * }
+                 * }
+                 * }
+ */ + // @ts-ignore + getCriticalExtensionOIDs(): java.util.Set; + /** + * Gets a Set of the OID strings for the extension(s) marked + * NON-CRITICAL in the certificate/CRL managed by the object + * implementing this interface. + * Here is sample code to get a Set of non-critical extensions from an + * X509CRL revoked certificate entry and print the OIDs: + *
{@code
+                 * CertificateFactory cf = null;
+                 * X509CRL crl = null;
+                 * try (InputStream inStrm = new FileInputStream("DER-encoded-CRL")) {
+                 * cf = CertificateFactory.getInstance("X.509");
+                 * crl = (X509CRL)cf.generateCRL(inStrm);
+                 * }
+                 * byte[] certData = 
+                 * ByteArrayInputStream bais = new ByteArrayInputStream(certData);
+                 * X509Certificate cert = (X509Certificate)cf.generateCertificate(bais);
+                 * X509CRLEntry badCert =
+                 * crl.getRevokedCertificate(cert.getSerialNumber());
+                 * if (badCert != null) {
+                 * Set nonCritSet = badCert.getNonCriticalExtensionOIDs();
+                 * if (nonCritSet != null)
+                 * for (String oid : nonCritSet) {
+                 * System.out.println(oid);
+                 * }
+                 * }
+                 * }
+ */ + // @ts-ignore + getNonCriticalExtensionOIDs(): java.util.Set; + /** + * Gets the DER-encoded OCTET string for the extension value + * (extnValue) identified by the passed-in {@code oid} + * String. + * The {@code oid} string is + * represented by a set of nonnegative whole numbers separated + * by periods. + *

For example:
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
OID (Object Identifier)Extension Name
2.5.29.14SubjectKeyIdentifier
2.5.29.15KeyUsage
2.5.29.16PrivateKeyUsage
2.5.29.17SubjectAlternativeName
2.5.29.18IssuerAlternativeName
2.5.29.19BasicConstraints
2.5.29.30NameConstraints
2.5.29.33PolicyMappings
2.5.29.35AuthorityKeyIdentifier
2.5.29.36PolicyConstraints
+ */ + // @ts-ignore + getExtensionValue(oid: string): number[]; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.interfaces.DSAKey.d.ts b/packages/types/dist/typings/jdk/java.security.interfaces.DSAKey.d.ts new file mode 100644 index 00000000..640ffc23 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.interfaces.DSAKey.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace interfaces { + // @ts-ignore + interface DSAKey { + /** + * Returns the DSA-specific key parameters. These parameters are + * never secret. + */ + // @ts-ignore + getParams(): java.security.interfaces.DSAParams; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.interfaces.DSAKeyPairGenerator.d.ts b/packages/types/dist/typings/jdk/java.security.interfaces.DSAKeyPairGenerator.d.ts new file mode 100644 index 00000000..4690b4e4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.interfaces.DSAKeyPairGenerator.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace interfaces { + // @ts-ignore + interface DSAKeyPairGenerator { + /** + * Initializes the key pair generator using the DSA family parameters + * (p,q and g) and an optional SecureRandom bit source. If a + * SecureRandom bit source is needed but not supplied, i.e. null, a + * default SecureRandom instance will be used. + */ + // @ts-ignore + initialize(params: java.security.interfaces.DSAParams, random: java.security.SecureRandom): void; + /** + * Initializes the key pair generator for a given modulus length + * (instead of parameters), and an optional SecureRandom bit source. + * If a SecureRandom bit source is needed but not supplied, i.e. + * null, a default SecureRandom instance will be used. + *

If {@code genParams} is true, this method generates new + * p, q and g parameters. If it is false, the method uses precomputed + * parameters for the modulus length requested. If there are no + * precomputed parameters for that modulus length, an exception will be + * thrown. It is guaranteed that there will always be + * default parameters for modulus lengths of 512 and 1024 bits. + */ + // @ts-ignore + initialize(modlen: number, genParams: boolean, random: java.security.SecureRandom): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.interfaces.DSAParams.d.ts b/packages/types/dist/typings/jdk/java.security.interfaces.DSAParams.d.ts new file mode 100644 index 00000000..d1c8ce2c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.interfaces.DSAParams.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace interfaces { + // @ts-ignore + interface DSAParams { + /** + * Returns the prime, {@code p}. + */ + // @ts-ignore + getP(): java.math.BigInteger; + /** + * Returns the subprime, {@code q}. + */ + // @ts-ignore + getQ(): java.math.BigInteger; + /** + * Returns the base, {@code g}. + */ + // @ts-ignore + getG(): java.math.BigInteger; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.interfaces.DSAPrivateKey.d.ts b/packages/types/dist/typings/jdk/java.security.interfaces.DSAPrivateKey.d.ts new file mode 100644 index 00000000..a33898bb --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.interfaces.DSAPrivateKey.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace interfaces { + // @ts-ignore + interface DSAPrivateKey { + // @ts-ignore + serialVersionUID: number; + /** + * Returns the value of the private key, {@code x}. + */ + // @ts-ignore + getX(): java.math.BigInteger; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.interfaces.DSAPublicKey.d.ts b/packages/types/dist/typings/jdk/java.security.interfaces.DSAPublicKey.d.ts new file mode 100644 index 00000000..bb3ee64f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.interfaces.DSAPublicKey.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace interfaces { + // @ts-ignore + interface DSAPublicKey { + // @ts-ignore + serialVersionUID: number; + /** + * Returns the value of the public key, {@code y}. + */ + // @ts-ignore + getY(): java.math.BigInteger; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.interfaces.ECKey.d.ts b/packages/types/dist/typings/jdk/java.security.interfaces.ECKey.d.ts new file mode 100644 index 00000000..ceff2d6d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.interfaces.ECKey.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace interfaces { + // @ts-ignore + interface ECKey { + /** + * Returns the domain parameters associated + * with this key. The domain parameters are + * either explicitly specified or implicitly + * created during key generation. + */ + // @ts-ignore + getParams(): java.security.spec.ECParameterSpec; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.interfaces.ECPrivateKey.d.ts b/packages/types/dist/typings/jdk/java.security.interfaces.ECPrivateKey.d.ts new file mode 100644 index 00000000..1e02d389 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.interfaces.ECPrivateKey.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace interfaces { + // @ts-ignore + interface ECPrivateKey { + // @ts-ignore + serialVersionUID: number; + /** + * Returns the private value S. + */ + // @ts-ignore + getS(): java.math.BigInteger; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.interfaces.ECPublicKey.d.ts b/packages/types/dist/typings/jdk/java.security.interfaces.ECPublicKey.d.ts new file mode 100644 index 00000000..e063464c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.interfaces.ECPublicKey.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace interfaces { + // @ts-ignore + interface ECPublicKey { + // @ts-ignore + serialVersionUID: number; + /** + * Returns the public point W. + */ + // @ts-ignore + getW(): java.security.spec.ECPoint; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.interfaces.RSAKey.d.ts b/packages/types/dist/typings/jdk/java.security.interfaces.RSAKey.d.ts new file mode 100644 index 00000000..a4de9ec5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.interfaces.RSAKey.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace interfaces { + // @ts-ignore + interface RSAKey { + /** + * Returns the modulus. + */ + // @ts-ignore + getModulus(): java.math.BigInteger; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.interfaces.RSAMultiPrimePrivateCrtKey.d.ts b/packages/types/dist/typings/jdk/java.security.interfaces.RSAMultiPrimePrivateCrtKey.d.ts new file mode 100644 index 00000000..a72a1650 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.interfaces.RSAMultiPrimePrivateCrtKey.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace interfaces { + // @ts-ignore + interface RSAMultiPrimePrivateCrtKey { + // @ts-ignore + serialVersionUID: number; + /** + * Returns the public exponent. + */ + // @ts-ignore + getPublicExponent(): java.math.BigInteger; + /** + * Returns the primeP. + */ + // @ts-ignore + getPrimeP(): java.math.BigInteger; + /** + * Returns the primeQ. + */ + // @ts-ignore + getPrimeQ(): java.math.BigInteger; + /** + * Returns the primeExponentP. + */ + // @ts-ignore + getPrimeExponentP(): java.math.BigInteger; + /** + * Returns the primeExponentQ. + */ + // @ts-ignore + getPrimeExponentQ(): java.math.BigInteger; + /** + * Returns the crtCoefficient. + */ + // @ts-ignore + getCrtCoefficient(): java.math.BigInteger; + /** + * Returns the otherPrimeInfo or null if there are only + * two prime factors (p and q). + */ + // @ts-ignore + getOtherPrimeInfo(): java.security.spec.RSAOtherPrimeInfo[]; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.interfaces.RSAPrivateCrtKey.d.ts b/packages/types/dist/typings/jdk/java.security.interfaces.RSAPrivateCrtKey.d.ts new file mode 100644 index 00000000..c44951cc --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.interfaces.RSAPrivateCrtKey.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace interfaces { + // @ts-ignore + interface RSAPrivateCrtKey { + // @ts-ignore + serialVersionUID: number; + /** + * Returns the public exponent. + */ + // @ts-ignore + getPublicExponent(): java.math.BigInteger; + /** + * Returns the primeP. + */ + // @ts-ignore + getPrimeP(): java.math.BigInteger; + /** + * Returns the primeQ. + */ + // @ts-ignore + getPrimeQ(): java.math.BigInteger; + /** + * Returns the primeExponentP. + */ + // @ts-ignore + getPrimeExponentP(): java.math.BigInteger; + /** + * Returns the primeExponentQ. + */ + // @ts-ignore + getPrimeExponentQ(): java.math.BigInteger; + /** + * Returns the crtCoefficient. + */ + // @ts-ignore + getCrtCoefficient(): java.math.BigInteger; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.interfaces.RSAPrivateKey.d.ts b/packages/types/dist/typings/jdk/java.security.interfaces.RSAPrivateKey.d.ts new file mode 100644 index 00000000..cf585f19 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.interfaces.RSAPrivateKey.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace interfaces { + // @ts-ignore + interface RSAPrivateKey { + // @ts-ignore + serialVersionUID: number; + /** + * Returns the private exponent. + */ + // @ts-ignore + getPrivateExponent(): java.math.BigInteger; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.interfaces.RSAPublicKey.d.ts b/packages/types/dist/typings/jdk/java.security.interfaces.RSAPublicKey.d.ts new file mode 100644 index 00000000..7232b816 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.interfaces.RSAPublicKey.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace interfaces { + // @ts-ignore + interface RSAPublicKey { + // @ts-ignore + serialVersionUID: number; + /** + * Returns the public exponent. + */ + // @ts-ignore + getPublicExponent(): java.math.BigInteger; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.spec.AlgorithmParameterSpec.d.ts b/packages/types/dist/typings/jdk/java.security.spec.AlgorithmParameterSpec.d.ts new file mode 100644 index 00000000..3af740bd --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.spec.AlgorithmParameterSpec.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace spec { + // @ts-ignore + interface AlgorithmParameterSpec { + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.spec.DSAGenParameterSpec.d.ts b/packages/types/dist/typings/jdk/java.security.spec.DSAGenParameterSpec.d.ts new file mode 100644 index 00000000..3afc1e37 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.spec.DSAGenParameterSpec.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace spec { + // @ts-ignore + class DSAGenParameterSpec extends java.lang.Object { + /** + * Creates a domain parameter specification for DSA parameter + * generation using {@code primePLen} and {@code subprimeQLen}. + * The value of {@code subprimeQLen} is also used as the default + * length of the domain parameter seed in bits. + */ + // @ts-ignore + constructor(primePLen: number, subprimeQLen: number) + /** + * Creates a domain parameter specification for DSA parameter + * generation using {@code primePLen}, {@code subprimeQLen}, + * and {@code seedLen}. + */ + // @ts-ignore + constructor(primePLen: number, subprimeQLen: number, seedLen: number) + /** + * Returns the desired length of the prime P of the + * to-be-generated DSA domain parameters in bits. + */ + // @ts-ignore + public getPrimePLength(): number; + /** + * Returns the desired length of the sub-prime Q of the + * to-be-generated DSA domain parameters in bits. + */ + // @ts-ignore + public getSubprimeQLength(): number; + /** + * Returns the desired length of the domain parameter seed in bits. + */ + // @ts-ignore + public getSeedLength(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.spec.DSAParameterSpec.d.ts b/packages/types/dist/typings/jdk/java.security.spec.DSAParameterSpec.d.ts new file mode 100644 index 00000000..6c40886b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.spec.DSAParameterSpec.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace spec { + // @ts-ignore + class DSAParameterSpec extends java.lang.Object { + /** + * Creates a new DSAParameterSpec with the specified parameter values. + */ + // @ts-ignore + constructor(p: java.math.BigInteger, q: java.math.BigInteger, g: java.math.BigInteger) + /** + * Returns the prime {@code p}. + */ + // @ts-ignore + public getP(): java.math.BigInteger; + /** + * Returns the sub-prime {@code q}. + */ + // @ts-ignore + public getQ(): java.math.BigInteger; + /** + * Returns the base {@code g}. + */ + // @ts-ignore + public getG(): java.math.BigInteger; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.spec.DSAPrivateKeySpec.d.ts b/packages/types/dist/typings/jdk/java.security.spec.DSAPrivateKeySpec.d.ts new file mode 100644 index 00000000..72ec68e6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.spec.DSAPrivateKeySpec.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace spec { + // @ts-ignore + class DSAPrivateKeySpec extends java.lang.Object { + /** + * Creates a new DSAPrivateKeySpec with the specified parameter values. + */ + // @ts-ignore + constructor(x: java.math.BigInteger, p: java.math.BigInteger, q: java.math.BigInteger, g: java.math.BigInteger) + /** + * Returns the private key {@code x}. + */ + // @ts-ignore + public getX(): java.math.BigInteger; + /** + * Returns the prime {@code p}. + */ + // @ts-ignore + public getP(): java.math.BigInteger; + /** + * Returns the sub-prime {@code q}. + */ + // @ts-ignore + public getQ(): java.math.BigInteger; + /** + * Returns the base {@code g}. + */ + // @ts-ignore + public getG(): java.math.BigInteger; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.spec.DSAPublicKeySpec.d.ts b/packages/types/dist/typings/jdk/java.security.spec.DSAPublicKeySpec.d.ts new file mode 100644 index 00000000..f625aee0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.spec.DSAPublicKeySpec.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace spec { + // @ts-ignore + class DSAPublicKeySpec extends java.lang.Object { + /** + * Creates a new DSAPublicKeySpec with the specified parameter values. + */ + // @ts-ignore + constructor(y: java.math.BigInteger, p: java.math.BigInteger, q: java.math.BigInteger, g: java.math.BigInteger) + /** + * Returns the public key {@code y}. + */ + // @ts-ignore + public getY(): java.math.BigInteger; + /** + * Returns the prime {@code p}. + */ + // @ts-ignore + public getP(): java.math.BigInteger; + /** + * Returns the sub-prime {@code q}. + */ + // @ts-ignore + public getQ(): java.math.BigInteger; + /** + * Returns the base {@code g}. + */ + // @ts-ignore + public getG(): java.math.BigInteger; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.spec.ECField.d.ts b/packages/types/dist/typings/jdk/java.security.spec.ECField.d.ts new file mode 100644 index 00000000..5102a3a2 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.spec.ECField.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace spec { + // @ts-ignore + interface ECField { + /** + * Returns the field size in bits. Note: For prime finite + * field ECFieldFp, size of prime p in bits is returned. + * For characteristic 2 finite field ECFieldF2m, m is returned. + */ + // @ts-ignore + getFieldSize(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.spec.ECFieldF2m.d.ts b/packages/types/dist/typings/jdk/java.security.spec.ECFieldF2m.d.ts new file mode 100644 index 00000000..9050ff99 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.spec.ECFieldF2m.d.ts @@ -0,0 +1,89 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace spec { + // @ts-ignore + class ECFieldF2m extends java.lang.Object { + /** + * Creates an elliptic curve characteristic 2 finite + * field which has 2^{@code m} elements with normal basis. + */ + // @ts-ignore + constructor(m: number) + /** + * Creates an elliptic curve characteristic 2 finite + * field which has 2^{@code m} elements with + * polynomial basis. + * The reduction polynomial for this field is based + * on {@code rp} whose i-th bit corresponds to + * the i-th coefficient of the reduction polynomial.

+ * Note: A valid reduction polynomial is either a + * trinomial (X^{@code m} + X^{@code k} + 1 + * with {@code m} > {@code k} >= 1) or a + * pentanomial (X^{@code m} + X^{@code k3} + * + X^{@code k2} + X^{@code k1} + 1 with + * {@code m} > {@code k3} > {@code k2} + * > {@code k1} >= 1). + */ + // @ts-ignore + constructor(m: number, rp: java.math.BigInteger) + /** + * Creates an elliptic curve characteristic 2 finite + * field which has 2^{@code m} elements with + * polynomial basis. The reduction polynomial for this + * field is based on {@code ks} whose content + * contains the order of the middle term(s) of the + * reduction polynomial. + * Note: A valid reduction polynomial is either a + * trinomial (X^{@code m} + X^{@code k} + 1 + * with {@code m} > {@code k} >= 1) or a + * pentanomial (X^{@code m} + X^{@code k3} + * + X^{@code k2} + X^{@code k1} + 1 with + * {@code m} > {@code k3} > {@code k2} + * > {@code k1} >= 1), so {@code ks} should + * have length 1 or 3. + */ + // @ts-ignore + constructor(m: number, ks: number) + /** + * Returns the field size in bits which is {@code m} + * for this characteristic 2 finite field. + */ + // @ts-ignore + public getFieldSize(): number; + /** + * Returns the value {@code m} of this characteristic + * 2 finite field. + */ + // @ts-ignore + public getM(): number; + /** + * Returns a BigInteger whose i-th bit corresponds to the + * i-th coefficient of the reduction polynomial for polynomial + * basis or null for normal basis. + */ + // @ts-ignore + public getReductionPolynomial(): java.math.BigInteger; + /** + * Returns an integer array which contains the order of the + * middle term(s) of the reduction polynomial for polynomial + * basis or null for normal basis. + */ + // @ts-ignore + public getMidTermsOfReductionPolynomial(): number[]; + /** + * Compares this finite field for equality with the + * specified object. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a hash code value for this characteristic 2 + * finite field. + */ + // @ts-ignore + public hashCode(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.spec.ECFieldFp.d.ts b/packages/types/dist/typings/jdk/java.security.spec.ECFieldFp.d.ts new file mode 100644 index 00000000..94676aa7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.spec.ECFieldFp.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace spec { + // @ts-ignore + class ECFieldFp extends java.lang.Object { + /** + * Creates an elliptic curve prime finite field + * with the specified prime {@code p}. + */ + // @ts-ignore + constructor(p: java.math.BigInteger) + /** + * Returns the field size in bits which is size of prime p + * for this prime finite field. + */ + // @ts-ignore + public getFieldSize(): number; + /** + * Returns the prime {@code p} of this prime finite field. + */ + // @ts-ignore + public getP(): java.math.BigInteger; + /** + * Compares this prime finite field for equality with the + * specified object. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a hash code value for this prime finite field. + */ + // @ts-ignore + public hashCode(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.spec.ECGenParameterSpec.d.ts b/packages/types/dist/typings/jdk/java.security.spec.ECGenParameterSpec.d.ts new file mode 100644 index 00000000..f8e83422 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.spec.ECGenParameterSpec.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace spec { + // @ts-ignore + class ECGenParameterSpec extends java.lang.Object { + /** + * Creates a parameter specification for EC parameter + * generation using a standard (or predefined) name + * {@code stdName} in order to generate the corresponding + * (precomputed) elliptic curve domain parameters. For the + * list of supported names, please consult the documentation + * of provider whose implementation will be used. + */ + // @ts-ignore + constructor(stdName: string) + /** + * Returns the standard or predefined name of the + * to-be-generated EC domain parameters. + */ + // @ts-ignore + public getName(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.spec.ECParameterSpec.d.ts b/packages/types/dist/typings/jdk/java.security.spec.ECParameterSpec.d.ts new file mode 100644 index 00000000..7332f86b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.spec.ECParameterSpec.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace spec { + // @ts-ignore + class ECParameterSpec extends java.lang.Object { + /** + * Creates elliptic curve domain parameters based on the + * specified values. + */ + // @ts-ignore + constructor(curve: java.security.spec.EllipticCurve, g: java.security.spec.ECPoint, n: java.math.BigInteger, h: number) + /** + * Returns the elliptic curve that this parameter defines. + */ + // @ts-ignore + public getCurve(): java.security.spec.EllipticCurve; + /** + * Returns the generator which is also known as the base point. + */ + // @ts-ignore + public getGenerator(): java.security.spec.ECPoint; + /** + * Returns the order of the generator. + */ + // @ts-ignore + public getOrder(): java.math.BigInteger; + /** + * Returns the cofactor. + */ + // @ts-ignore + public getCofactor(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.spec.ECPoint.d.ts b/packages/types/dist/typings/jdk/java.security.spec.ECPoint.d.ts new file mode 100644 index 00000000..ac25aa06 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.spec.ECPoint.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace spec { + // @ts-ignore + class ECPoint extends java.lang.Object { + /** + * Creates an ECPoint from the specified affine x-coordinate + * {@code x} and affine y-coordinate {@code y}. + */ + // @ts-ignore + constructor(x: java.math.BigInteger, y: java.math.BigInteger) + // @ts-ignore + public static POINT_INFINITY: java.security.spec.ECPoint; + /** + * Returns the affine x-coordinate {@code x}. + * Note: POINT_INFINITY has a null affine x-coordinate. + */ + // @ts-ignore + public getAffineX(): java.math.BigInteger; + /** + * Returns the affine y-coordinate {@code y}. + * Note: POINT_INFINITY has a null affine y-coordinate. + */ + // @ts-ignore + public getAffineY(): java.math.BigInteger; + /** + * Compares this elliptic curve point for equality with + * the specified object. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a hash code value for this elliptic curve point. + */ + // @ts-ignore + public hashCode(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.spec.ECPrivateKeySpec.d.ts b/packages/types/dist/typings/jdk/java.security.spec.ECPrivateKeySpec.d.ts new file mode 100644 index 00000000..aa71f91e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.spec.ECPrivateKeySpec.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace spec { + // @ts-ignore + class ECPrivateKeySpec extends java.lang.Object { + /** + * Creates a new ECPrivateKeySpec with the specified + * parameter values. + */ + // @ts-ignore + constructor(s: java.math.BigInteger, params: java.security.spec.ECParameterSpec) + /** + * Returns the private value S. + */ + // @ts-ignore + public getS(): java.math.BigInteger; + /** + * Returns the associated elliptic curve domain + * parameters. + */ + // @ts-ignore + public getParams(): java.security.spec.ECParameterSpec; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.spec.ECPublicKeySpec.d.ts b/packages/types/dist/typings/jdk/java.security.spec.ECPublicKeySpec.d.ts new file mode 100644 index 00000000..f269f6c0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.spec.ECPublicKeySpec.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace spec { + // @ts-ignore + class ECPublicKeySpec extends java.lang.Object { + /** + * Creates a new ECPublicKeySpec with the specified + * parameter values. + */ + // @ts-ignore + constructor(w: java.security.spec.ECPoint, params: java.security.spec.ECParameterSpec) + /** + * Returns the public point W. + */ + // @ts-ignore + public getW(): java.security.spec.ECPoint; + /** + * Returns the associated elliptic curve domain + * parameters. + */ + // @ts-ignore + public getParams(): java.security.spec.ECParameterSpec; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.spec.EllipticCurve.d.ts b/packages/types/dist/typings/jdk/java.security.spec.EllipticCurve.d.ts new file mode 100644 index 00000000..298f03b7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.spec.EllipticCurve.d.ts @@ -0,0 +1,59 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace spec { + // @ts-ignore + class EllipticCurve extends java.lang.Object { + /** + * Creates an elliptic curve with the specified elliptic field + * {@code field} and the coefficients {@code a} and + * {@code b}. + */ + // @ts-ignore + constructor(field: java.security.spec.ECField, a: java.math.BigInteger, b: java.math.BigInteger) + /** + * Creates an elliptic curve with the specified elliptic field + * {@code field}, the coefficients {@code a} and + * {@code b}, and the {@code seed} used for curve generation. + */ + // @ts-ignore + constructor(field: java.security.spec.ECField, a: java.math.BigInteger, b: java.math.BigInteger, seed: number) + /** + * Returns the finite field {@code field} that this + * elliptic curve is over. + */ + // @ts-ignore + public getField(): java.security.spec.ECField; + /** + * Returns the first coefficient {@code a} of the + * elliptic curve. + */ + // @ts-ignore + public getA(): java.math.BigInteger; + /** + * Returns the second coefficient {@code b} of the + * elliptic curve. + */ + // @ts-ignore + public getB(): java.math.BigInteger; + /** + * Returns the seeding bytes {@code seed} used + * during curve generation. May be null if not specified. + */ + // @ts-ignore + public getSeed(): number[]; + /** + * Compares this elliptic curve for equality with the + * specified object. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a hash code value for this elliptic curve. + */ + // @ts-ignore + public hashCode(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.spec.EncodedKeySpec.d.ts b/packages/types/dist/typings/jdk/java.security.spec.EncodedKeySpec.d.ts new file mode 100644 index 00000000..d5740ffe --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.spec.EncodedKeySpec.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace spec { + // @ts-ignore + abstract class EncodedKeySpec extends java.lang.Object { + /** + * Creates a new EncodedKeySpec with the given encoded key. + */ + // @ts-ignore + constructor(encodedKey: number) + /** + * Returns the encoded key. + */ + // @ts-ignore + public getEncoded(): number[]; + /** + * Returns the name of the encoding format associated with this + * key specification. + *

If the opaque representation of a key + * (see {@link java.security.Key Key}) can be transformed + * (see {@link java.security.KeyFactory KeyFactory}) + * into this key specification (or a subclass of it), + * {@code getFormat} called + * on the opaque key returns the same value as the + * {@code getFormat} method + * of this key specification. + */ + // @ts-ignore + public abstract getFormat(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.spec.InvalidKeySpecException.d.ts b/packages/types/dist/typings/jdk/java.security.spec.InvalidKeySpecException.d.ts new file mode 100644 index 00000000..0a191d0c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.spec.InvalidKeySpecException.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace spec { + // @ts-ignore + class InvalidKeySpecException extends java.security.GeneralSecurityException { + /** + * Constructs an InvalidKeySpecException with no detail message. A + * detail message is a String that describes this particular + * exception. + */ + // @ts-ignore + constructor() + /** + * Constructs an InvalidKeySpecException with the specified detail + * message. A detail message is a String that describes this + * particular exception. + */ + // @ts-ignore + constructor(msg: string) + /** + * Creates a {@code InvalidKeySpecException} with the specified + * detail message and cause. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Creates a {@code InvalidKeySpecException} with the specified cause + * and a detail message of {@code (cause==null ? null : cause.toString())} + * (which typically contains the class and detail message of + * {@code cause}). + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.spec.InvalidParameterSpecException.d.ts b/packages/types/dist/typings/jdk/java.security.spec.InvalidParameterSpecException.d.ts new file mode 100644 index 00000000..aa88a443 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.spec.InvalidParameterSpecException.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace spec { + // @ts-ignore + class InvalidParameterSpecException extends java.security.GeneralSecurityException { + /** + * Constructs an InvalidParameterSpecException with no detail message. A + * detail message is a String that describes this particular + * exception. + */ + // @ts-ignore + constructor() + /** + * Constructs an InvalidParameterSpecException with the specified detail + * message. A detail message is a String that describes this + * particular exception. + */ + // @ts-ignore + constructor(msg: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.spec.KeySpec.d.ts b/packages/types/dist/typings/jdk/java.security.spec.KeySpec.d.ts new file mode 100644 index 00000000..3a90ef49 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.spec.KeySpec.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace spec { + // @ts-ignore + interface KeySpec { + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.spec.MGF1ParameterSpec.d.ts b/packages/types/dist/typings/jdk/java.security.spec.MGF1ParameterSpec.d.ts new file mode 100644 index 00000000..82954abd --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.spec.MGF1ParameterSpec.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace spec { + // @ts-ignore + class MGF1ParameterSpec extends java.lang.Object { + /** + * Constructs a parameter set for mask generation function MGF1 + * as defined in the PKCS #1 standard. + */ + // @ts-ignore + constructor(mdName: string) + // @ts-ignore + public static SHA1: java.security.spec.MGF1ParameterSpec; + // @ts-ignore + public static SHA224: java.security.spec.MGF1ParameterSpec; + // @ts-ignore + public static SHA256: java.security.spec.MGF1ParameterSpec; + // @ts-ignore + public static SHA384: java.security.spec.MGF1ParameterSpec; + // @ts-ignore + public static SHA512: java.security.spec.MGF1ParameterSpec; + /** + * Returns the algorithm name of the message digest used by the mask + * generation function. + */ + // @ts-ignore + public getDigestAlgorithm(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.spec.PKCS8EncodedKeySpec.d.ts b/packages/types/dist/typings/jdk/java.security.spec.PKCS8EncodedKeySpec.d.ts new file mode 100644 index 00000000..e4a0f83f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.spec.PKCS8EncodedKeySpec.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace spec { + // @ts-ignore + class PKCS8EncodedKeySpec extends java.security.spec.EncodedKeySpec { + /** + * Creates a new PKCS8EncodedKeySpec with the given encoded key. + */ + // @ts-ignore + constructor(encodedKey: number) + /** + * Returns the key bytes, encoded according to the PKCS #8 standard. + */ + // @ts-ignore + public getEncoded(): number[]; + /** + * Returns the name of the encoding format associated with this + * key specification. + */ + // @ts-ignore + public getFormat(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.spec.PSSParameterSpec.d.ts b/packages/types/dist/typings/jdk/java.security.spec.PSSParameterSpec.d.ts new file mode 100644 index 00000000..53ff0e26 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.spec.PSSParameterSpec.d.ts @@ -0,0 +1,52 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace spec { + // @ts-ignore + class PSSParameterSpec extends java.lang.Object { + /** + * Creates a new {@code PSSParameterSpec} as defined in + * the PKCS #1 standard using the specified message digest, + * mask generation function, parameters for mask generation + * function, salt length, and trailer field values. + */ + // @ts-ignore + constructor(mdName: string, mgfName: string, mgfSpec: java.security.spec.AlgorithmParameterSpec, saltLen: number, trailerField: number) + /** + * Creates a new {@code PSSParameterSpec} + * using the specified salt length and other default values as + * defined in PKCS#1. + */ + // @ts-ignore + constructor(saltLen: number) + // @ts-ignore + public static DEFAULT: java.security.spec.PSSParameterSpec; + /** + * Returns the message digest algorithm name. + */ + // @ts-ignore + public getDigestAlgorithm(): string; + /** + * Returns the mask generation function algorithm name. + */ + // @ts-ignore + public getMGFAlgorithm(): string; + /** + * Returns the parameters for the mask generation function. + */ + // @ts-ignore + public getMGFParameters(): java.security.spec.AlgorithmParameterSpec; + /** + * Returns the salt length in bits. + */ + // @ts-ignore + public getSaltLength(): number; + /** + * Returns the value for the trailer field, i.e. bc in PKCS#1 v2.1. + */ + // @ts-ignore + public getTrailerField(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.spec.RSAKeyGenParameterSpec.d.ts b/packages/types/dist/typings/jdk/java.security.spec.RSAKeyGenParameterSpec.d.ts new file mode 100644 index 00000000..2cfe0a84 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.spec.RSAKeyGenParameterSpec.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace spec { + // @ts-ignore + class RSAKeyGenParameterSpec extends java.lang.Object { + /** + * Constructs a new {@code RSAParameterSpec} object from the + * given keysize and public-exponent value. + */ + // @ts-ignore + constructor(keysize: number, publicExponent: java.math.BigInteger) + // @ts-ignore + public static F0: java.math.BigInteger; + // @ts-ignore + public static F4: java.math.BigInteger; + /** + * Returns the keysize. + */ + // @ts-ignore + public getKeysize(): number; + /** + * Returns the public-exponent value. + */ + // @ts-ignore + public getPublicExponent(): java.math.BigInteger; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.spec.RSAMultiPrimePrivateCrtKeySpec.d.ts b/packages/types/dist/typings/jdk/java.security.spec.RSAMultiPrimePrivateCrtKeySpec.d.ts new file mode 100644 index 00000000..b35cbdb1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.spec.RSAMultiPrimePrivateCrtKeySpec.d.ts @@ -0,0 +1,57 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace spec { + // @ts-ignore + class RSAMultiPrimePrivateCrtKeySpec extends java.security.spec.RSAPrivateKeySpec { + /** + * Creates a new {@code RSAMultiPrimePrivateCrtKeySpec} + * given the modulus, publicExponent, privateExponent, + * primeP, primeQ, primeExponentP, primeExponentQ, + * crtCoefficient, and otherPrimeInfo as defined in PKCS#1 v2.1. + *

Note that the contents of {@code otherPrimeInfo} + * are copied to protect against subsequent modification when + * constructing this object. + */ + // @ts-ignore + constructor(modulus: java.math.BigInteger, publicExponent: java.math.BigInteger, privateExponent: java.math.BigInteger, primeP: java.math.BigInteger, primeQ: java.math.BigInteger, primeExponentP: java.math.BigInteger, primeExponentQ: java.math.BigInteger, crtCoefficient: java.math.BigInteger, otherPrimeInfo: java.security.spec.RSAOtherPrimeInfo) + /** + * Returns the public exponent. + */ + // @ts-ignore + public getPublicExponent(): java.math.BigInteger; + /** + * Returns the primeP. + */ + // @ts-ignore + public getPrimeP(): java.math.BigInteger; + /** + * Returns the primeQ. + */ + // @ts-ignore + public getPrimeQ(): java.math.BigInteger; + /** + * Returns the primeExponentP. + */ + // @ts-ignore + public getPrimeExponentP(): java.math.BigInteger; + /** + * Returns the primeExponentQ. + */ + // @ts-ignore + public getPrimeExponentQ(): java.math.BigInteger; + /** + * Returns the crtCoefficient. + */ + // @ts-ignore + public getCrtCoefficient(): java.math.BigInteger; + /** + * Returns a copy of the otherPrimeInfo or null if there are + * only two prime factors (p and q). + */ + // @ts-ignore + public getOtherPrimeInfo(): java.security.spec.RSAOtherPrimeInfo[]; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.spec.RSAOtherPrimeInfo.d.ts b/packages/types/dist/typings/jdk/java.security.spec.RSAOtherPrimeInfo.d.ts new file mode 100644 index 00000000..b94db0b9 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.spec.RSAOtherPrimeInfo.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace spec { + // @ts-ignore + class RSAOtherPrimeInfo extends java.lang.Object { + /** + * Creates a new {@code RSAOtherPrimeInfo} + * given the prime, primeExponent, and + * crtCoefficient as defined in PKCS#1. + */ + // @ts-ignore + constructor(prime: java.math.BigInteger, primeExponent: java.math.BigInteger, crtCoefficient: java.math.BigInteger) + /** + * Returns the prime. + */ + // @ts-ignore + public getPrime(): java.math.BigInteger; + /** + * Returns the prime's exponent. + */ + // @ts-ignore + public getExponent(): java.math.BigInteger; + /** + * Returns the prime's crtCoefficient. + */ + // @ts-ignore + public getCrtCoefficient(): java.math.BigInteger; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.spec.RSAPrivateCrtKeySpec.d.ts b/packages/types/dist/typings/jdk/java.security.spec.RSAPrivateCrtKeySpec.d.ts new file mode 100644 index 00000000..548e6a01 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.spec.RSAPrivateCrtKeySpec.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace spec { + // @ts-ignore + class RSAPrivateCrtKeySpec extends java.security.spec.RSAPrivateKeySpec { + /** + * Creates a new {@code RSAPrivateCrtKeySpec} + * given the modulus, publicExponent, privateExponent, + * primeP, primeQ, primeExponentP, primeExponentQ, and + * crtCoefficient as defined in PKCS#1. + */ + // @ts-ignore + constructor(modulus: java.math.BigInteger, publicExponent: java.math.BigInteger, privateExponent: java.math.BigInteger, primeP: java.math.BigInteger, primeQ: java.math.BigInteger, primeExponentP: java.math.BigInteger, primeExponentQ: java.math.BigInteger, crtCoefficient: java.math.BigInteger) + /** + * Returns the public exponent. + */ + // @ts-ignore + public getPublicExponent(): java.math.BigInteger; + /** + * Returns the primeP. + */ + // @ts-ignore + public getPrimeP(): java.math.BigInteger; + /** + * Returns the primeQ. + */ + // @ts-ignore + public getPrimeQ(): java.math.BigInteger; + /** + * Returns the primeExponentP. + */ + // @ts-ignore + public getPrimeExponentP(): java.math.BigInteger; + /** + * Returns the primeExponentQ. + */ + // @ts-ignore + public getPrimeExponentQ(): java.math.BigInteger; + /** + * Returns the crtCoefficient. + */ + // @ts-ignore + public getCrtCoefficient(): java.math.BigInteger; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.spec.RSAPrivateKeySpec.d.ts b/packages/types/dist/typings/jdk/java.security.spec.RSAPrivateKeySpec.d.ts new file mode 100644 index 00000000..0c47bab3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.spec.RSAPrivateKeySpec.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace spec { + // @ts-ignore + class RSAPrivateKeySpec extends java.lang.Object { + /** + * Creates a new RSAPrivateKeySpec. + */ + // @ts-ignore + constructor(modulus: java.math.BigInteger, privateExponent: java.math.BigInteger) + /** + * Returns the modulus. + */ + // @ts-ignore + public getModulus(): java.math.BigInteger; + /** + * Returns the private exponent. + */ + // @ts-ignore + public getPrivateExponent(): java.math.BigInteger; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.spec.RSAPublicKeySpec.d.ts b/packages/types/dist/typings/jdk/java.security.spec.RSAPublicKeySpec.d.ts new file mode 100644 index 00000000..fee2c0bb --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.spec.RSAPublicKeySpec.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace spec { + // @ts-ignore + class RSAPublicKeySpec extends java.lang.Object { + /** + * Creates a new RSAPublicKeySpec. + */ + // @ts-ignore + constructor(modulus: java.math.BigInteger, publicExponent: java.math.BigInteger) + /** + * Returns the modulus. + */ + // @ts-ignore + public getModulus(): java.math.BigInteger; + /** + * Returns the public exponent. + */ + // @ts-ignore + public getPublicExponent(): java.math.BigInteger; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.security.spec.X509EncodedKeySpec.d.ts b/packages/types/dist/typings/jdk/java.security.spec.X509EncodedKeySpec.d.ts new file mode 100644 index 00000000..903e2e94 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.security.spec.X509EncodedKeySpec.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace java { + namespace security { + namespace spec { + // @ts-ignore + class X509EncodedKeySpec extends java.security.spec.EncodedKeySpec { + /** + * Creates a new X509EncodedKeySpec with the given encoded key. + */ + // @ts-ignore + constructor(encodedKey: number) + /** + * Returns the key bytes, encoded according to the X.509 standard. + */ + // @ts-ignore + public getEncoded(): number[]; + /** + * Returns the name of the encoding format associated with this + * key specification. + */ + // @ts-ignore + public getFormat(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.Array.d.ts b/packages/types/dist/typings/jdk/java.sql.Array.d.ts new file mode 100644 index 00000000..ea498f8f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.Array.d.ts @@ -0,0 +1,181 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + interface Array { + /** + * Retrieves the SQL type name of the elements in + * the array designated by this Array object. + * If the elements are a built-in type, it returns + * the database-specific type name of the elements. + * If the elements are a user-defined type (UDT), + * this method returns the fully-qualified SQL type name. + */ + // @ts-ignore + getBaseTypeName(): string; + /** + * Retrieves the JDBC type of the elements in the array designated + * by this Array object. + */ + // @ts-ignore + getBaseType(): number; + /** + * Retrieves the contents of the SQL ARRAY value designated + * by this + * Array object in the form of an array in the Java + * programming language. This version of the method getArray + * uses the type map associated with the connection for customizations of + * the type mappings. + *

+ * Note: When getArray is used to materialize + * a base type that maps to a primitive data type, then it is + * implementation-defined whether the array returned is an array of + * that primitive data type or an array of Object. + */ + // @ts-ignore + getArray(): java.lang.Object; + /** + * Retrieves the contents of the SQL ARRAY value designated by this + * Array object. + * This method uses + * the specified map for type map customizations + * unless the base type of the array does not match a user-defined + * type in map, in which case it + * uses the standard mapping. This version of the method + * getArray uses either the given type map or the standard mapping; + * it never uses the type map associated with the connection. + *

+ * Note: When getArray is used to materialize + * a base type that maps to a primitive data type, then it is + * implementation-defined whether the array returned is an array of + * that primitive data type or an array of Object. + */ + // @ts-ignore + getArray(map: java.util.Map): java.lang.Object; + /** + * Retrieves a slice of the SQL ARRAY + * value designated by this Array object, beginning with the + * specified index and containing up to count + * successive elements of the SQL array. This method uses the type map + * associated with the connection for customizations of the type mappings. + *

+ * Note: When getArray is used to materialize + * a base type that maps to a primitive data type, then it is + * implementation-defined whether the array returned is an array of + * that primitive data type or an array of Object. + */ + // @ts-ignore + getArray(index: number, count: number): java.lang.Object; + /** + * Retreives a slice of the SQL ARRAY value + * designated by this Array object, beginning with the specified + * index and containing up to count + * successive elements of the SQL array. + *

+ * This method uses + * the specified map for type map customizations + * unless the base type of the array does not match a user-defined + * type in map, in which case it + * uses the standard mapping. This version of the method + * getArray uses either the given type map or the standard mapping; + * it never uses the type map associated with the connection. + *

+ * Note: When getArray is used to materialize + * a base type that maps to a primitive data type, then it is + * implementation-defined whether the array returned is an array of + * that primitive data type or an array of Object. + */ + // @ts-ignore + getArray(index: number, count: number, map: java.util.Map): java.lang.Object; + /** + * Retrieves a result set that contains the elements of the SQL + * ARRAY value + * designated by this Array object. If appropriate, + * the elements of the array are mapped using the connection's type + * map; otherwise, the standard mapping is used. + *

+ * The result set contains one row for each array element, with + * two columns in each row. The second column stores the element + * value; the first column stores the index into the array for + * that element (with the first array element being at index 1). + * The rows are in ascending order corresponding to + * the order of the indices. + */ + // @ts-ignore + getResultSet(): java.sql.ResultSet; + /** + * Retrieves a result set that contains the elements of the SQL + * ARRAY value designated by this Array object. + * This method uses + * the specified map for type map customizations + * unless the base type of the array does not match a user-defined + * type in map, in which case it + * uses the standard mapping. This version of the method + * getResultSet uses either the given type map or the standard mapping; + * it never uses the type map associated with the connection. + *

+ * The result set contains one row for each array element, with + * two columns in each row. The second column stores the element + * value; the first column stores the index into the array for + * that element (with the first array element being at index 1). + * The rows are in ascending order corresponding to + * the order of the indices. + */ + // @ts-ignore + getResultSet(map: java.util.Map): java.sql.ResultSet; + /** + * Retrieves a result set holding the elements of the subarray that + * starts at index index and contains up to + * count successive elements. This method uses + * the connection's type map to map the elements of the array if + * the map contains an entry for the base type. Otherwise, the + * standard mapping is used. + *

+ * The result set has one row for each element of the SQL array + * designated by this object, with the first row containing the + * element at index index. The result set has + * up to count rows in ascending order based on the + * indices. Each row has two columns: The second column stores + * the element value; the first column stores the index into the + * array for that element. + */ + // @ts-ignore + getResultSet(index: number, count: number): java.sql.ResultSet; + /** + * Retrieves a result set holding the elements of the subarray that + * starts at index index and contains up to + * count successive elements. + * This method uses + * the specified map for type map customizations + * unless the base type of the array does not match a user-defined + * type in map, in which case it + * uses the standard mapping. This version of the method + * getResultSet uses either the given type map or the standard mapping; + * it never uses the type map associated with the connection. + *

+ * The result set has one row for each element of the SQL array + * designated by this object, with the first row containing the + * element at index index. The result set has + * up to count rows in ascending order based on the + * indices. Each row has two columns: The second column stores + * the element value; the first column stores the index into the + * array for that element. + */ + // @ts-ignore + getResultSet(index: number, count: number, map: java.util.Map): java.sql.ResultSet; + /** + * This method frees the Array object and releases the resources that + * it holds. The object is invalid once the free + * method is called. + *

+ * After free has been called, any attempt to invoke a + * method other than free will result in a SQLException + * being thrown. If free is called multiple times, the subsequent + * calls to free are treated as a no-op. + *

+ */ + // @ts-ignore + free(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.BatchUpdateException.d.ts b/packages/types/dist/typings/jdk/java.sql.BatchUpdateException.d.ts new file mode 100644 index 00000000..82f37289 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.BatchUpdateException.d.ts @@ -0,0 +1,189 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + class BatchUpdateException extends java.sql.SQLException { + /** + * Constructs a BatchUpdateException object initialized with a given + * reason, SQLState, vendorCode and + * updateCounts. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ * Note: There is no validation of {@code updateCounts} for + * overflow and because of this it is recommended that you use the constructor + * {@code BatchUpdateException(String reason, String SQLState, + * int vendorCode, long []updateCounts,Throwable cause) }. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, vendorCode: number, updateCounts: number) + /** + * Constructs a BatchUpdateException object initialized with a given + * reason, SQLState and + * updateCounts. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. The vendor code + * is initialized to 0. + *

+ * Note: There is no validation of {@code updateCounts} for + * overflow and because of this it is recommended that you use the constructor + * {@code BatchUpdateException(String reason, String SQLState, + * int vendorCode, long []updateCounts,Throwable cause) }. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, updateCounts: number) + /** + * Constructs a BatchUpdateException object initialized with a given + * reason and updateCounts. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. The + * SQLState is initialized to null + * and the vendor code is initialized to 0. + *

+ * Note: There is no validation of {@code updateCounts} for + * overflow and because of this it is recommended that you use the constructor + * {@code BatchUpdateException(String reason, String SQLState, + * int vendorCode, long []updateCounts,Throwable cause) }. + *

+ */ + // @ts-ignore + constructor(reason: string, updateCounts: number) + /** + * Constructs a BatchUpdateException object initialized with a given + * updateCounts. + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. The reason + * and SQLState are initialized to null and the vendor code + * is initialized to 0. + *

+ * Note: There is no validation of {@code updateCounts} for + * overflow and because of this it is recommended that you use the constructor + * {@code BatchUpdateException(String reason, String SQLState, + * int vendorCode, long []updateCounts,Throwable cause) }. + *

+ */ + // @ts-ignore + constructor(updateCounts: number) + /** + * Constructs a BatchUpdateException object. + * The reason, SQLState and updateCounts + * are initialized to null and the vendor code is initialized to 0. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor() + /** + * Constructs a BatchUpdateException object initialized with + * a given cause. + * The SQLState and updateCounts + * are initialized + * to null and the vendor code is initialized to 0. + * The reason is initialized to null if + * cause==null or to cause.toString() if + * cause!=null. + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + /** + * Constructs a BatchUpdateException object initialized with a + * given cause and updateCounts. + * The SQLState is initialized + * to null and the vendor code is initialized to 0. + * The reason is initialized to null if + * cause==null or to cause.toString() if + * cause!=null. + *

+ * Note: There is no validation of {@code updateCounts} for + * overflow and because of this it is recommended that you use the constructor + * {@code BatchUpdateException(String reason, String SQLState, + * int vendorCode, long []updateCounts,Throwable cause) }. + *

+ */ + // @ts-ignore + constructor(updateCounts: number, cause: java.lang.Throwable) + /** + * Constructs a BatchUpdateException object initialized with + * a given reason, cause + * and updateCounts. The SQLState is initialized + * to null and the vendor code is initialized to 0. + *

+ * Note: There is no validation of {@code updateCounts} for + * overflow and because of this it is recommended that you use the constructor + * {@code BatchUpdateException(String reason, String SQLState, + * int vendorCode, long []updateCounts,Throwable cause) }. + *

+ */ + // @ts-ignore + constructor(reason: string, updateCounts: number, cause: java.lang.Throwable) + /** + * Constructs a BatchUpdateException object initialized with + * a given reason, SQLState,cause, and + * updateCounts. The vendor code is initialized to 0. + */ + // @ts-ignore + constructor(reason: string, SQLState: string, updateCounts: number, cause: java.lang.Throwable) + /** + * Constructs a BatchUpdateException object initialized with + * a given reason, SQLState, vendorCode + * cause and updateCounts. + */ + // @ts-ignore + constructor(reason: string, SQLState: string, vendorCode: number, updateCounts: number, cause: java.lang.Throwable) + /** + * Constructs a BatchUpdateException object initialized with + * a given reason, SQLState, vendorCode + * cause and updateCounts. + *

+ * This constructor should be used when the returned update count may exceed + * {@link Integer#MAX_VALUE}. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, vendorCode: number, updateCounts: number, cause: java.lang.Throwable) + /** + * Retrieves the update count for each update statement in the batch + * update that executed successfully before this exception occurred. + * A driver that implements batch updates may or may not continue to + * process the remaining commands in a batch when one of the commands + * fails to execute properly. If the driver continues processing commands, + * the array returned by this method will have as many elements as + * there are commands in the batch; otherwise, it will contain an + * update count for each command that executed successfully before + * the BatchUpdateException was thrown. + *

+ * The possible return values for this method were modified for + * the Java 2 SDK, Standard Edition, version 1.3. This was done to + * accommodate the new option of continuing to process commands + * in a batch update after a BatchUpdateException object + * has been thrown. + */ + // @ts-ignore + public getUpdateCounts(): number[]; + /** + * Retrieves the update count for each update statement in the batch + * update that executed successfully before this exception occurred. + * A driver that implements batch updates may or may not continue to + * process the remaining commands in a batch when one of the commands + * fails to execute properly. If the driver continues processing commands, + * the array returned by this method will have as many elements as + * there are commands in the batch; otherwise, it will contain an + * update count for each command that executed successfully before + * the BatchUpdateException was thrown. + *

+ * This method should be used when {@code Statement.executeLargeBatch} is + * invoked and the returned update count may exceed {@link Integer#MAX_VALUE}. + *

+ */ + // @ts-ignore + public getLargeUpdateCounts(): number[]; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.Blob.d.ts b/packages/types/dist/typings/jdk/java.sql.Blob.d.ts new file mode 100644 index 00000000..b1aa0d64 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.Blob.d.ts @@ -0,0 +1,132 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + interface Blob { + /** + * Returns the number of bytes in the BLOB value + * designated by this Blob object. + */ + // @ts-ignore + length(): number; + /** + * Retrieves all or part of the BLOB + * value that this Blob object represents, as an array of + * bytes. This byte array contains up to length + * consecutive bytes starting at position pos. + */ + // @ts-ignore + getBytes(pos: number, length: number): number[]; + /** + * Retrieves the BLOB value designated by this + * Blob instance as a stream. + */ + // @ts-ignore + getBinaryStream(): java.io.InputStream; + /** + * Retrieves the byte position at which the specified byte array + * pattern begins within the BLOB + * value that this Blob object represents. The + * search for pattern begins at position + * start. + */ + // @ts-ignore + position(pattern: number, start: number): number; + /** + * Retrieves the byte position in the BLOB value + * designated by this Blob object at which + * pattern begins. The search begins at position + * start. + */ + // @ts-ignore + position(pattern: java.sql.Blob, start: number): number; + /** + * Writes the given array of bytes to the BLOB value that + * this Blob object represents, starting at position + * pos, and returns the number of bytes written. + * The array of bytes will overwrite the existing bytes + * in the Blob object starting at the position + * pos. If the end of the Blob value is reached + * while writing the array of bytes, then the length of the Blob + * value will be increased to accommodate the extra bytes. + *

+ * Note: If the value specified for pos + * is greater then the length+1 of the BLOB value then the + * behavior is undefined. Some JDBC drivers may throw a + * SQLException while other drivers may support this + * operation. + */ + // @ts-ignore + setBytes(pos: number, bytes: number): number; + /** + * Writes all or part of the given byte array to the + * BLOB value that this Blob object represents + * and returns the number of bytes written. + * Writing starts at position pos in the BLOB + * value; len bytes from the given byte array are written. + * The array of bytes will overwrite the existing bytes + * in the Blob object starting at the position + * pos. If the end of the Blob value is reached + * while writing the array of bytes, then the length of the Blob + * value will be increased to accommodate the extra bytes. + *

+ * Note: If the value specified for pos + * is greater then the length+1 of the BLOB value then the + * behavior is undefined. Some JDBC drivers may throw a + * SQLException while other drivers may support this + * operation. + */ + // @ts-ignore + setBytes(pos: number, bytes: number, offset: number, len: number): number; + /** + * Retrieves a stream that can be used to write to the BLOB + * value that this Blob object represents. The stream begins + * at position pos. + * The bytes written to the stream will overwrite the existing bytes + * in the Blob object starting at the position + * pos. If the end of the Blob value is reached + * while writing to the stream, then the length of the Blob + * value will be increased to accommodate the extra bytes. + *

+ * Note: If the value specified for pos + * is greater then the length+1 of the BLOB value then the + * behavior is undefined. Some JDBC drivers may throw a + * SQLException while other drivers may support this + * operation. + */ + // @ts-ignore + setBinaryStream(pos: number): java.io.OutputStream; + /** + * Truncates the BLOB value that this Blob + * object represents to be len bytes in length. + *

+ * Note: If the value specified for pos + * is greater then the length+1 of the BLOB value then the + * behavior is undefined. Some JDBC drivers may throw a + * SQLException while other drivers may support this + * operation. + */ + // @ts-ignore + truncate(len: number): void; + /** + * This method frees the Blob object and releases the resources that + * it holds. The object is invalid once the free + * method is called. + *

+ * After free has been called, any attempt to invoke a + * method other than free will result in a SQLException + * being thrown. If free is called multiple times, the subsequent + * calls to free are treated as a no-op. + *

+ */ + // @ts-ignore + free(): void; + /** + * Returns an InputStream object that contains a partial Blob value, + * starting with the byte specified by pos, which is length bytes in length. + */ + // @ts-ignore + getBinaryStream(pos: number, length: number): java.io.InputStream; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.CallableStatement.d.ts b/packages/types/dist/typings/jdk/java.sql.CallableStatement.d.ts new file mode 100644 index 00000000..7acc4f7d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.CallableStatement.d.ts @@ -0,0 +1,1292 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + interface CallableStatement { + /** + * Registers the OUT parameter in ordinal position + * parameterIndex to the JDBC type + * sqlType. All OUT parameters must be registered + * before a stored procedure is executed. + *

+ * The JDBC type specified by sqlType for an OUT + * parameter determines the Java type that must be used + * in the get method to read the value of that parameter. + *

+ * If the JDBC type expected to be returned to this output parameter + * is specific to this particular database, sqlType + * should be java.sql.Types.OTHER. The method + * {@link #getObject} retrieves the value. + */ + // @ts-ignore + registerOutParameter(parameterIndex: number, sqlType: number): void; + /** + * Registers the parameter in ordinal position + * parameterIndex to be of JDBC type + * sqlType. All OUT parameters must be registered + * before a stored procedure is executed. + *

+ * The JDBC type specified by sqlType for an OUT + * parameter determines the Java type that must be used + * in the get method to read the value of that parameter. + *

+ * This version of registerOutParameter should be + * used when the parameter is of JDBC type NUMERIC + * or DECIMAL. + */ + // @ts-ignore + registerOutParameter(parameterIndex: number, sqlType: number, scale: number): void; + /** + * Retrieves whether the last OUT parameter read had the value of + * SQL NULL. Note that this method should be called only after + * calling a getter method; otherwise, there is no value to use in + * determining whether it is null or not. + */ + // @ts-ignore + wasNull(): boolean; + /** + * Retrieves the value of the designated JDBC CHAR, + * VARCHAR, or LONGVARCHAR parameter as a + * String in the Java programming language. + *

+ * For the fixed-length type JDBC CHAR, + * the String object + * returned has exactly the same value the SQL + * CHAR value had in the + * database, including any padding added by the database. + */ + // @ts-ignore + getString(parameterIndex: number): string; + /** + * Retrieves the value of the designated JDBC BIT + * or BOOLEAN parameter as a + * boolean in the Java programming language. + */ + // @ts-ignore + getBoolean(parameterIndex: number): boolean; + /** + * Retrieves the value of the designated JDBC TINYINT parameter + * as a byte in the Java programming language. + */ + // @ts-ignore + getByte(parameterIndex: number): number; + /** + * Retrieves the value of the designated JDBC SMALLINT parameter + * as a short in the Java programming language. + */ + // @ts-ignore + getShort(parameterIndex: number): number; + /** + * Retrieves the value of the designated JDBC INTEGER parameter + * as an int in the Java programming language. + */ + // @ts-ignore + getInt(parameterIndex: number): number; + /** + * Retrieves the value of the designated JDBC BIGINT parameter + * as a long in the Java programming language. + */ + // @ts-ignore + getLong(parameterIndex: number): number; + /** + * Retrieves the value of the designated JDBC FLOAT parameter + * as a float in the Java programming language. + */ + // @ts-ignore + getFloat(parameterIndex: number): number; + /** + * Retrieves the value of the designated JDBC DOUBLE parameter as a double + * in the Java programming language. + */ + // @ts-ignore + getDouble(parameterIndex: number): number; + /** + * Retrieves the value of the designated JDBC NUMERIC parameter as a + * java.math.BigDecimal object with scale digits to + * the right of the decimal point. + */ + // @ts-ignore + getBigDecimal(parameterIndex: number, scale: number): java.math.BigDecimal; + /** + * Retrieves the value of the designated JDBC BINARY or + * VARBINARY parameter as an array of byte + * values in the Java programming language. + */ + // @ts-ignore + getBytes(parameterIndex: number): number[]; + /** + * Retrieves the value of the designated JDBC DATE parameter as a + * java.sql.Date object. + */ + // @ts-ignore + getDate(parameterIndex: number): java.sql.Date; + /** + * Retrieves the value of the designated JDBC TIME parameter as a + * java.sql.Time object. + */ + // @ts-ignore + getTime(parameterIndex: number): java.sql.Time; + /** + * Retrieves the value of the designated JDBC TIMESTAMP parameter as a + * java.sql.Timestamp object. + */ + // @ts-ignore + getTimestamp(parameterIndex: number): java.sql.Timestamp; + /** + * Retrieves the value of the designated parameter as an Object + * in the Java programming language. If the value is an SQL NULL, + * the driver returns a Java null. + *

+ * This method returns a Java object whose type corresponds to the JDBC + * type that was registered for this parameter using the method + * registerOutParameter. By registering the target JDBC + * type as java.sql.Types.OTHER, this method can be used + * to read database-specific abstract data types. + */ + // @ts-ignore + getObject(parameterIndex: number): java.lang.Object; + /** + * Retrieves the value of the designated JDBC NUMERIC parameter as a + * java.math.BigDecimal object with as many digits to the + * right of the decimal point as the value contains. + */ + // @ts-ignore + getBigDecimal(parameterIndex: number): java.math.BigDecimal; + /** + * Returns an object representing the value of OUT parameter + * parameterIndex and uses map for the custom + * mapping of the parameter value. + *

+ * This method returns a Java object whose type corresponds to the + * JDBC type that was registered for this parameter using the method + * registerOutParameter. By registering the target + * JDBC type as java.sql.Types.OTHER, this method can + * be used to read database-specific abstract data types. + */ + // @ts-ignore + getObject(parameterIndex: number, map: java.util.Map): java.lang.Object; + /** + * Retrieves the value of the designated JDBC REF(<structured-type>) + * parameter as a {@link java.sql.Ref} object in the Java programming language. + */ + // @ts-ignore + getRef(parameterIndex: number): java.sql.Ref; + /** + * Retrieves the value of the designated JDBC BLOB parameter as a + * {@link java.sql.Blob} object in the Java programming language. + */ + // @ts-ignore + getBlob(parameterIndex: number): java.sql.Blob; + /** + * Retrieves the value of the designated JDBC CLOB parameter as a + * java.sql.Clob object in the Java programming language. + */ + // @ts-ignore + getClob(parameterIndex: number): java.sql.Clob; + /** + * Retrieves the value of the designated JDBC ARRAY parameter as an + * {@link java.sql.Array} object in the Java programming language. + */ + // @ts-ignore + getArray(parameterIndex: number): java.sql.Array; + /** + * Retrieves the value of the designated JDBC DATE parameter as a + * java.sql.Date object, using + * the given Calendar object + * to construct the date. + * With a Calendar object, the driver + * can calculate the date taking into account a custom timezone and locale. + * If no Calendar object is specified, the driver uses the + * default timezone and locale. + */ + // @ts-ignore + getDate(parameterIndex: number, cal: java.util.Calendar): java.sql.Date; + /** + * Retrieves the value of the designated JDBC TIME parameter as a + * java.sql.Time object, using + * the given Calendar object + * to construct the time. + * With a Calendar object, the driver + * can calculate the time taking into account a custom timezone and locale. + * If no Calendar object is specified, the driver uses the + * default timezone and locale. + */ + // @ts-ignore + getTime(parameterIndex: number, cal: java.util.Calendar): java.sql.Time; + /** + * Retrieves the value of the designated JDBC TIMESTAMP parameter as a + * java.sql.Timestamp object, using + * the given Calendar object to construct + * the Timestamp object. + * With a Calendar object, the driver + * can calculate the timestamp taking into account a custom timezone and locale. + * If no Calendar object is specified, the driver uses the + * default timezone and locale. + */ + // @ts-ignore + getTimestamp(parameterIndex: number, cal: java.util.Calendar): java.sql.Timestamp; + /** + * Registers the designated output parameter. + * This version of + * the method registerOutParameter + * should be used for a user-defined or REF output parameter. Examples + * of user-defined types include: STRUCT, DISTINCT, + * JAVA_OBJECT, and named array types. + *

+ * All OUT parameters must be registered + * before a stored procedure is executed. + *

For a user-defined parameter, the fully-qualified SQL + * type name of the parameter should also be given, while a REF + * parameter requires that the fully-qualified type name of the + * referenced type be given. A JDBC driver that does not need the + * type code and type name information may ignore it. To be portable, + * however, applications should always provide these values for + * user-defined and REF parameters. + * Although it is intended for user-defined and REF parameters, + * this method may be used to register a parameter of any JDBC type. + * If the parameter does not have a user-defined or REF type, the + * typeName parameter is ignored. + *

Note: When reading the value of an out parameter, you + * must use the getter method whose Java type corresponds to the + * parameter's registered SQL type. + */ + // @ts-ignore + registerOutParameter(parameterIndex: number, sqlType: number, typeName: string): void; + /** + * Registers the OUT parameter named + * parameterName to the JDBC type + * sqlType. All OUT parameters must be registered + * before a stored procedure is executed. + *

+ * The JDBC type specified by sqlType for an OUT + * parameter determines the Java type that must be used + * in the get method to read the value of that parameter. + *

+ * If the JDBC type expected to be returned to this output parameter + * is specific to this particular database, sqlType + * should be java.sql.Types.OTHER. The method + * {@link #getObject} retrieves the value. + */ + // @ts-ignore + registerOutParameter(parameterName: string, sqlType: number): void; + /** + * Registers the parameter named + * parameterName to be of JDBC type + * sqlType. All OUT parameters must be registered + * before a stored procedure is executed. + *

+ * The JDBC type specified by sqlType for an OUT + * parameter determines the Java type that must be used + * in the get method to read the value of that parameter. + *

+ * This version of registerOutParameter should be + * used when the parameter is of JDBC type NUMERIC + * or DECIMAL. + */ + // @ts-ignore + registerOutParameter(parameterName: string, sqlType: number, scale: number): void; + /** + * Registers the designated output parameter. This version of + * the method registerOutParameter + * should be used for a user-named or REF output parameter. Examples + * of user-named types include: STRUCT, DISTINCT, JAVA_OBJECT, and + * named array types. + *

+ * All OUT parameters must be registered + * before a stored procedure is executed. + *

+ * For a user-named parameter the fully-qualified SQL + * type name of the parameter should also be given, while a REF + * parameter requires that the fully-qualified type name of the + * referenced type be given. A JDBC driver that does not need the + * type code and type name information may ignore it. To be portable, + * however, applications should always provide these values for + * user-named and REF parameters. + * Although it is intended for user-named and REF parameters, + * this method may be used to register a parameter of any JDBC type. + * If the parameter does not have a user-named or REF type, the + * typeName parameter is ignored. + *

Note: When reading the value of an out parameter, you + * must use the getXXX method whose Java type XXX corresponds to the + * parameter's registered SQL type. + */ + // @ts-ignore + registerOutParameter(parameterName: string, sqlType: number, typeName: string): void; + /** + * Retrieves the value of the designated JDBC DATALINK parameter as a + * java.net.URL object. + */ + // @ts-ignore + getURL(parameterIndex: number): java.net.URL; + /** + * Sets the designated parameter to the given java.net.URL object. + * The driver converts this to an SQL DATALINK value when + * it sends it to the database. + */ + // @ts-ignore + setURL(parameterName: string, val: java.net.URL): void; + /** + * Sets the designated parameter to SQL NULL. + *

Note: You must specify the parameter's SQL type. + */ + // @ts-ignore + setNull(parameterName: string, sqlType: number): void; + /** + * Sets the designated parameter to the given Java boolean value. + * The driver converts this + * to an SQL BIT or BOOLEAN value when it sends it to the database. + */ + // @ts-ignore + setBoolean(parameterName: string, x: boolean): void; + /** + * Sets the designated parameter to the given Java byte value. + * The driver converts this + * to an SQL TINYINT value when it sends it to the database. + */ + // @ts-ignore + setByte(parameterName: string, x: number): void; + /** + * Sets the designated parameter to the given Java short value. + * The driver converts this + * to an SQL SMALLINT value when it sends it to the database. + */ + // @ts-ignore + setShort(parameterName: string, x: number): void; + /** + * Sets the designated parameter to the given Java int value. + * The driver converts this + * to an SQL INTEGER value when it sends it to the database. + */ + // @ts-ignore + setInt(parameterName: string, x: number): void; + /** + * Sets the designated parameter to the given Java long value. + * The driver converts this + * to an SQL BIGINT value when it sends it to the database. + */ + // @ts-ignore + setLong(parameterName: string, x: number): void; + /** + * Sets the designated parameter to the given Java float value. + * The driver converts this + * to an SQL FLOAT value when it sends it to the database. + */ + // @ts-ignore + setFloat(parameterName: string, x: number): void; + /** + * Sets the designated parameter to the given Java double value. + * The driver converts this + * to an SQL DOUBLE value when it sends it to the database. + */ + // @ts-ignore + setDouble(parameterName: string, x: number): void; + /** + * Sets the designated parameter to the given + * java.math.BigDecimal value. + * The driver converts this to an SQL NUMERIC value when + * it sends it to the database. + */ + // @ts-ignore + setBigDecimal(parameterName: string, x: java.math.BigDecimal): void; + /** + * Sets the designated parameter to the given Java String value. + * The driver converts this + * to an SQL VARCHAR or LONGVARCHAR value + * (depending on the argument's + * size relative to the driver's limits on VARCHAR values) + * when it sends it to the database. + */ + // @ts-ignore + setString(parameterName: string, x: string): void; + /** + * Sets the designated parameter to the given Java array of bytes. + * The driver converts this to an SQL VARBINARY or + * LONGVARBINARY (depending on the argument's size relative + * to the driver's limits on VARBINARY values) when it sends + * it to the database. + */ + // @ts-ignore + setBytes(parameterName: string, x: number): void; + /** + * Sets the designated parameter to the given java.sql.Date value + * using the default time zone of the virtual machine that is running + * the application. + * The driver converts this + * to an SQL DATE value when it sends it to the database. + */ + // @ts-ignore + setDate(parameterName: string, x: java.sql.Date): void; + /** + * Sets the designated parameter to the given java.sql.Time value. + * The driver converts this + * to an SQL TIME value when it sends it to the database. + */ + // @ts-ignore + setTime(parameterName: string, x: java.sql.Time): void; + /** + * Sets the designated parameter to the given java.sql.Timestamp value. + * The driver + * converts this to an SQL TIMESTAMP value when it sends it to the + * database. + */ + // @ts-ignore + setTimestamp(parameterName: string, x: java.sql.Timestamp): void; + /** + * Sets the designated parameter to the given input stream, which will have + * the specified number of bytes. + * When a very large ASCII value is input to a LONGVARCHAR + * parameter, it may be more practical to send it via a + * java.io.InputStream. Data will be read from the stream + * as needed until end-of-file is reached. The JDBC driver will + * do any necessary conversion from ASCII to the database char format. + *

Note: This stream object can either be a standard + * Java stream object or your own subclass that implements the + * standard interface. + */ + // @ts-ignore + setAsciiStream(parameterName: string, x: java.io.InputStream, length: number): void; + /** + * Sets the designated parameter to the given input stream, which will have + * the specified number of bytes. + * When a very large binary value is input to a LONGVARBINARY + * parameter, it may be more practical to send it via a + * java.io.InputStream object. The data will be read from the stream + * as needed until end-of-file is reached. + *

Note: This stream object can either be a standard + * Java stream object or your own subclass that implements the + * standard interface. + */ + // @ts-ignore + setBinaryStream(parameterName: string, x: java.io.InputStream, length: number): void; + /** + * Sets the value of the designated parameter with the given object. + *

The given Java object will be converted to the given targetSqlType + * before being sent to the database. + * If the object has a custom mapping (is of a class implementing the + * interface SQLData), + * the JDBC driver should call the method SQLData.writeSQL to write it + * to the SQL data stream. + * If, on the other hand, the object is of a class implementing + * Ref, Blob, Clob, NClob, + * Struct, java.net.URL, + * or Array, the driver should pass it to the database as a + * value of the corresponding SQL type. + *

+ * Note that this method may be used to pass datatabase- + * specific abstract data types. + */ + // @ts-ignore + setObject(parameterName: string, x: java.lang.Object, targetSqlType: number, scale: number): void; + /** + * Sets the value of the designated parameter with the given object. + * This method is similar to {@link #setObject(String parameterName, + * Object x, int targetSqlType, int scaleOrLength)}, + * except that it assumes a scale of zero. + */ + // @ts-ignore + setObject(parameterName: string, x: java.lang.Object, targetSqlType: number): void; + /** + * Sets the value of the designated parameter with the given object. + *

The JDBC specification specifies a standard mapping from + * Java Object types to SQL types. The given argument + * will be converted to the corresponding SQL type before being + * sent to the database. + *

Note that this method may be used to pass datatabase- + * specific abstract data types, by using a driver-specific Java + * type. + * If the object is of a class implementing the interface SQLData, + * the JDBC driver should call the method SQLData.writeSQL + * to write it to the SQL data stream. + * If, on the other hand, the object is of a class implementing + * Ref, Blob, Clob, NClob, + * Struct, java.net.URL, + * or Array, the driver should pass it to the database as a + * value of the corresponding SQL type. + *

+ * This method throws an exception if there is an ambiguity, for example, if the + * object is of a class implementing more than one of the interfaces named above. + *

+ * Note: Not all databases allow for a non-typed Null to be sent to + * the backend. For maximum portability, the setNull or the + * setObject(String parameterName, Object x, int sqlType) + * method should be used + * instead of setObject(String parameterName, Object x). + *

+ */ + // @ts-ignore + setObject(parameterName: string, x: java.lang.Object): void; + /** + * Sets the designated parameter to the given Reader + * object, which is the given number of characters long. + * When a very large UNICODE value is input to a LONGVARCHAR + * parameter, it may be more practical to send it via a + * java.io.Reader object. The data will be read from the stream + * as needed until end-of-file is reached. The JDBC driver will + * do any necessary conversion from UNICODE to the database char format. + *

Note: This stream object can either be a standard + * Java stream object or your own subclass that implements the + * standard interface. + */ + // @ts-ignore + setCharacterStream(parameterName: string, reader: java.io.Reader, length: number): void; + /** + * Sets the designated parameter to the given java.sql.Date value, + * using the given Calendar object. The driver uses + * the Calendar object to construct an SQL DATE value, + * which the driver then sends to the database. With a + * a Calendar object, the driver can calculate the date + * taking into account a custom timezone. If no + * Calendar object is specified, the driver uses the default + * timezone, which is that of the virtual machine running the application. + */ + // @ts-ignore + setDate(parameterName: string, x: java.sql.Date, cal: java.util.Calendar): void; + /** + * Sets the designated parameter to the given java.sql.Time value, + * using the given Calendar object. The driver uses + * the Calendar object to construct an SQL TIME value, + * which the driver then sends to the database. With a + * a Calendar object, the driver can calculate the time + * taking into account a custom timezone. If no + * Calendar object is specified, the driver uses the default + * timezone, which is that of the virtual machine running the application. + */ + // @ts-ignore + setTime(parameterName: string, x: java.sql.Time, cal: java.util.Calendar): void; + /** + * Sets the designated parameter to the given java.sql.Timestamp value, + * using the given Calendar object. The driver uses + * the Calendar object to construct an SQL TIMESTAMP value, + * which the driver then sends to the database. With a + * a Calendar object, the driver can calculate the timestamp + * taking into account a custom timezone. If no + * Calendar object is specified, the driver uses the default + * timezone, which is that of the virtual machine running the application. + */ + // @ts-ignore + setTimestamp(parameterName: string, x: java.sql.Timestamp, cal: java.util.Calendar): void; + /** + * Sets the designated parameter to SQL NULL. + * This version of the method setNull should + * be used for user-defined types and REF type parameters. Examples + * of user-defined types include: STRUCT, DISTINCT, JAVA_OBJECT, and + * named array types. + *

Note: To be portable, applications must give the + * SQL type code and the fully-qualified SQL type name when specifying + * a NULL user-defined or REF parameter. In the case of a user-defined type + * the name is the type name of the parameter itself. For a REF + * parameter, the name is the type name of the referenced type. + *

+ * Although it is intended for user-defined and Ref parameters, + * this method may be used to set a null parameter of any JDBC type. + * If the parameter does not have a user-defined or REF type, the given + * typeName is ignored. + */ + // @ts-ignore + setNull(parameterName: string, sqlType: number, typeName: string): void; + /** + * Retrieves the value of a JDBC CHAR, VARCHAR, + * or LONGVARCHAR parameter as a String in + * the Java programming language. + *

+ * For the fixed-length type JDBC CHAR, + * the String object + * returned has exactly the same value the SQL + * CHAR value had in the + * database, including any padding added by the database. + */ + // @ts-ignore + getString(parameterName: string): string; + /** + * Retrieves the value of a JDBC BIT or BOOLEAN + * parameter as a + * boolean in the Java programming language. + */ + // @ts-ignore + getBoolean(parameterName: string): boolean; + /** + * Retrieves the value of a JDBC TINYINT parameter as a byte + * in the Java programming language. + */ + // @ts-ignore + getByte(parameterName: string): number; + /** + * Retrieves the value of a JDBC SMALLINT parameter as a short + * in the Java programming language. + */ + // @ts-ignore + getShort(parameterName: string): number; + /** + * Retrieves the value of a JDBC INTEGER parameter as an int + * in the Java programming language. + */ + // @ts-ignore + getInt(parameterName: string): number; + /** + * Retrieves the value of a JDBC BIGINT parameter as a long + * in the Java programming language. + */ + // @ts-ignore + getLong(parameterName: string): number; + /** + * Retrieves the value of a JDBC FLOAT parameter as a float + * in the Java programming language. + */ + // @ts-ignore + getFloat(parameterName: string): number; + /** + * Retrieves the value of a JDBC DOUBLE parameter as a double + * in the Java programming language. + */ + // @ts-ignore + getDouble(parameterName: string): number; + /** + * Retrieves the value of a JDBC BINARY or VARBINARY + * parameter as an array of byte values in the Java + * programming language. + */ + // @ts-ignore + getBytes(parameterName: string): number[]; + /** + * Retrieves the value of a JDBC DATE parameter as a + * java.sql.Date object. + */ + // @ts-ignore + getDate(parameterName: string): java.sql.Date; + /** + * Retrieves the value of a JDBC TIME parameter as a + * java.sql.Time object. + */ + // @ts-ignore + getTime(parameterName: string): java.sql.Time; + /** + * Retrieves the value of a JDBC TIMESTAMP parameter as a + * java.sql.Timestamp object. + */ + // @ts-ignore + getTimestamp(parameterName: string): java.sql.Timestamp; + /** + * Retrieves the value of a parameter as an Object in the Java + * programming language. If the value is an SQL NULL, the + * driver returns a Java null. + *

+ * This method returns a Java object whose type corresponds to the JDBC + * type that was registered for this parameter using the method + * registerOutParameter. By registering the target JDBC + * type as java.sql.Types.OTHER, this method can be used + * to read database-specific abstract data types. + */ + // @ts-ignore + getObject(parameterName: string): java.lang.Object; + /** + * Retrieves the value of a JDBC NUMERIC parameter as a + * java.math.BigDecimal object with as many digits to the + * right of the decimal point as the value contains. + */ + // @ts-ignore + getBigDecimal(parameterName: string): java.math.BigDecimal; + /** + * Returns an object representing the value of OUT parameter + * parameterName and uses map for the custom + * mapping of the parameter value. + *

+ * This method returns a Java object whose type corresponds to the + * JDBC type that was registered for this parameter using the method + * registerOutParameter. By registering the target + * JDBC type as java.sql.Types.OTHER, this method can + * be used to read database-specific abstract data types. + */ + // @ts-ignore + getObject(parameterName: string, map: java.util.Map): java.lang.Object; + /** + * Retrieves the value of a JDBC REF(<structured-type>) + * parameter as a {@link java.sql.Ref} object in the Java programming language. + */ + // @ts-ignore + getRef(parameterName: string): java.sql.Ref; + /** + * Retrieves the value of a JDBC BLOB parameter as a + * {@link java.sql.Blob} object in the Java programming language. + */ + // @ts-ignore + getBlob(parameterName: string): java.sql.Blob; + /** + * Retrieves the value of a JDBC CLOB parameter as a + * java.sql.Clob object in the Java programming language. + */ + // @ts-ignore + getClob(parameterName: string): java.sql.Clob; + /** + * Retrieves the value of a JDBC ARRAY parameter as an + * {@link java.sql.Array} object in the Java programming language. + */ + // @ts-ignore + getArray(parameterName: string): java.sql.Array; + /** + * Retrieves the value of a JDBC DATE parameter as a + * java.sql.Date object, using + * the given Calendar object + * to construct the date. + * With a Calendar object, the driver + * can calculate the date taking into account a custom timezone and locale. + * If no Calendar object is specified, the driver uses the + * default timezone and locale. + */ + // @ts-ignore + getDate(parameterName: string, cal: java.util.Calendar): java.sql.Date; + /** + * Retrieves the value of a JDBC TIME parameter as a + * java.sql.Time object, using + * the given Calendar object + * to construct the time. + * With a Calendar object, the driver + * can calculate the time taking into account a custom timezone and locale. + * If no Calendar object is specified, the driver uses the + * default timezone and locale. + */ + // @ts-ignore + getTime(parameterName: string, cal: java.util.Calendar): java.sql.Time; + /** + * Retrieves the value of a JDBC TIMESTAMP parameter as a + * java.sql.Timestamp object, using + * the given Calendar object to construct + * the Timestamp object. + * With a Calendar object, the driver + * can calculate the timestamp taking into account a custom timezone and locale. + * If no Calendar object is specified, the driver uses the + * default timezone and locale. + */ + // @ts-ignore + getTimestamp(parameterName: string, cal: java.util.Calendar): java.sql.Timestamp; + /** + * Retrieves the value of a JDBC DATALINK parameter as a + * java.net.URL object. + */ + // @ts-ignore + getURL(parameterName: string): java.net.URL; + /** + * Retrieves the value of the designated JDBC ROWID parameter as a + * java.sql.RowId object. + */ + // @ts-ignore + getRowId(parameterIndex: number): java.sql.RowId; + /** + * Retrieves the value of the designated JDBC ROWID parameter as a + * java.sql.RowId object. + */ + // @ts-ignore + getRowId(parameterName: string): java.sql.RowId; + /** + * Sets the designated parameter to the given java.sql.RowId object. The + * driver converts this to a SQL ROWID when it sends it to the + * database. + */ + // @ts-ignore + setRowId(parameterName: string, x: java.sql.RowId): void; + /** + * Sets the designated parameter to the given String object. + * The driver converts this to a SQL NCHAR or + * NVARCHAR or LONGNVARCHAR + */ + // @ts-ignore + setNString(parameterName: string, value: string): void; + /** + * Sets the designated parameter to a Reader object. The + * Reader reads the data till end-of-file is reached. The + * driver does the necessary conversion from Java character format to + * the national character set in the database. + */ + // @ts-ignore + setNCharacterStream(parameterName: string, value: java.io.Reader, length: number): void; + /** + * Sets the designated parameter to a java.sql.NClob object. The object + * implements the java.sql.NClob interface. This NClob + * object maps to a SQL NCLOB. + */ + // @ts-ignore + setNClob(parameterName: string, value: java.sql.NClob): void; + /** + * Sets the designated parameter to a Reader object. The reader must contain the number + * of characters specified by length otherwise a SQLException will be + * generated when the CallableStatement is executed. + * This method differs from the setCharacterStream (int, Reader, int) method + * because it informs the driver that the parameter value should be sent to + * the server as a CLOB. When the setCharacterStream method is used, the + * driver may have to do extra work to determine whether the parameter + * data should be send to the server as a LONGVARCHAR or a CLOB + */ + // @ts-ignore + setClob(parameterName: string, reader: java.io.Reader, length: number): void; + /** + * Sets the designated parameter to a InputStream object. The inputstream must contain the number + * of characters specified by length, otherwise a SQLException will be + * generated when the CallableStatement is executed. + * This method differs from the setBinaryStream (int, InputStream, int) + * method because it informs the driver that the parameter value should be + * sent to the server as a BLOB. When the setBinaryStream method is used, + * the driver may have to do extra work to determine whether the parameter + * data should be sent to the server as a LONGVARBINARY or a BLOB + */ + // @ts-ignore + setBlob(parameterName: string, inputStream: java.io.InputStream, length: number): void; + /** + * Sets the designated parameter to a Reader object. The reader must contain the number + * of characters specified by length otherwise a SQLException will be + * generated when the CallableStatement is executed. + * This method differs from the setCharacterStream (int, Reader, int) method + * because it informs the driver that the parameter value should be sent to + * the server as a NCLOB. When the setCharacterStream method is used, the + * driver may have to do extra work to determine whether the parameter + * data should be send to the server as a LONGNVARCHAR or a NCLOB + */ + // @ts-ignore + setNClob(parameterName: string, reader: java.io.Reader, length: number): void; + /** + * Retrieves the value of the designated JDBC NCLOB parameter as a + * java.sql.NClob object in the Java programming language. + */ + // @ts-ignore + getNClob(parameterIndex: number): java.sql.NClob; + /** + * Retrieves the value of a JDBC NCLOB parameter as a + * java.sql.NClob object in the Java programming language. + */ + // @ts-ignore + getNClob(parameterName: string): java.sql.NClob; + /** + * Sets the designated parameter to the given java.sql.SQLXML object. The driver converts this to an + * SQL XML value when it sends it to the database. + */ + // @ts-ignore + setSQLXML(parameterName: string, xmlObject: java.sql.SQLXML): void; + /** + * Retrieves the value of the designated SQL XML parameter as a + * java.sql.SQLXML object in the Java programming language. + */ + // @ts-ignore + getSQLXML(parameterIndex: number): java.sql.SQLXML; + /** + * Retrieves the value of the designated SQL XML parameter as a + * java.sql.SQLXML object in the Java programming language. + */ + // @ts-ignore + getSQLXML(parameterName: string): java.sql.SQLXML; + /** + * Retrieves the value of the designated NCHAR, + * NVARCHAR + * or LONGNVARCHAR parameter as + * a String in the Java programming language. + *

+ * For the fixed-length type JDBC NCHAR, + * the String object + * returned has exactly the same value the SQL + * NCHAR value had in the + * database, including any padding added by the database. + */ + // @ts-ignore + getNString(parameterIndex: number): string; + /** + * Retrieves the value of the designated NCHAR, + * NVARCHAR + * or LONGNVARCHAR parameter as + * a String in the Java programming language. + *

+ * For the fixed-length type JDBC NCHAR, + * the String object + * returned has exactly the same value the SQL + * NCHAR value had in the + * database, including any padding added by the database. + */ + // @ts-ignore + getNString(parameterName: string): string; + /** + * Retrieves the value of the designated parameter as a + * java.io.Reader object in the Java programming language. + * It is intended for use when + * accessing NCHAR,NVARCHAR + * and LONGNVARCHAR parameters. + */ + // @ts-ignore + getNCharacterStream(parameterIndex: number): java.io.Reader; + /** + * Retrieves the value of the designated parameter as a + * java.io.Reader object in the Java programming language. + * It is intended for use when + * accessing NCHAR,NVARCHAR + * and LONGNVARCHAR parameters. + */ + // @ts-ignore + getNCharacterStream(parameterName: string): java.io.Reader; + /** + * Retrieves the value of the designated parameter as a + * java.io.Reader object in the Java programming language. + */ + // @ts-ignore + getCharacterStream(parameterIndex: number): java.io.Reader; + /** + * Retrieves the value of the designated parameter as a + * java.io.Reader object in the Java programming language. + */ + // @ts-ignore + getCharacterStream(parameterName: string): java.io.Reader; + /** + * Sets the designated parameter to the given java.sql.Blob object. + * The driver converts this to an SQL BLOB value when it + * sends it to the database. + */ + // @ts-ignore + setBlob(parameterName: string, x: java.sql.Blob): void; + /** + * Sets the designated parameter to the given java.sql.Clob object. + * The driver converts this to an SQL CLOB value when it + * sends it to the database. + */ + // @ts-ignore + setClob(parameterName: string, x: java.sql.Clob): void; + /** + * Sets the designated parameter to the given input stream, which will have + * the specified number of bytes. + * When a very large ASCII value is input to a LONGVARCHAR + * parameter, it may be more practical to send it via a + * java.io.InputStream. Data will be read from the stream + * as needed until end-of-file is reached. The JDBC driver will + * do any necessary conversion from ASCII to the database char format. + *

Note: This stream object can either be a standard + * Java stream object or your own subclass that implements the + * standard interface. + */ + // @ts-ignore + setAsciiStream(parameterName: string, x: java.io.InputStream, length: number): void; + /** + * Sets the designated parameter to the given input stream, which will have + * the specified number of bytes. + * When a very large binary value is input to a LONGVARBINARY + * parameter, it may be more practical to send it via a + * java.io.InputStream object. The data will be read from the stream + * as needed until end-of-file is reached. + *

Note: This stream object can either be a standard + * Java stream object or your own subclass that implements the + * standard interface. + */ + // @ts-ignore + setBinaryStream(parameterName: string, x: java.io.InputStream, length: number): void; + /** + * Sets the designated parameter to the given Reader + * object, which is the given number of characters long. + * When a very large UNICODE value is input to a LONGVARCHAR + * parameter, it may be more practical to send it via a + * java.io.Reader object. The data will be read from the stream + * as needed until end-of-file is reached. The JDBC driver will + * do any necessary conversion from UNICODE to the database char format. + *

Note: This stream object can either be a standard + * Java stream object or your own subclass that implements the + * standard interface. + */ + // @ts-ignore + setCharacterStream(parameterName: string, reader: java.io.Reader, length: number): void; + /** + * Sets the designated parameter to the given input stream. + * When a very large ASCII value is input to a LONGVARCHAR + * parameter, it may be more practical to send it via a + * java.io.InputStream. Data will be read from the stream + * as needed until end-of-file is reached. The JDBC driver will + * do any necessary conversion from ASCII to the database char format. + *

Note: This stream object can either be a standard + * Java stream object or your own subclass that implements the + * standard interface. + *

Note: Consult your JDBC driver documentation to determine if + * it might be more efficient to use a version of + * setAsciiStream which takes a length parameter. + */ + // @ts-ignore + setAsciiStream(parameterName: string, x: java.io.InputStream): void; + /** + * Sets the designated parameter to the given input stream. + * When a very large binary value is input to a LONGVARBINARY + * parameter, it may be more practical to send it via a + * java.io.InputStream object. The data will be read from the + * stream as needed until end-of-file is reached. + *

Note: This stream object can either be a standard + * Java stream object or your own subclass that implements the + * standard interface. + *

Note: Consult your JDBC driver documentation to determine if + * it might be more efficient to use a version of + * setBinaryStream which takes a length parameter. + */ + // @ts-ignore + setBinaryStream(parameterName: string, x: java.io.InputStream): void; + /** + * Sets the designated parameter to the given Reader + * object. + * When a very large UNICODE value is input to a LONGVARCHAR + * parameter, it may be more practical to send it via a + * java.io.Reader object. The data will be read from the stream + * as needed until end-of-file is reached. The JDBC driver will + * do any necessary conversion from UNICODE to the database char format. + *

Note: This stream object can either be a standard + * Java stream object or your own subclass that implements the + * standard interface. + *

Note: Consult your JDBC driver documentation to determine if + * it might be more efficient to use a version of + * setCharacterStream which takes a length parameter. + */ + // @ts-ignore + setCharacterStream(parameterName: string, reader: java.io.Reader): void; + /** + * Sets the designated parameter to a Reader object. The + * Reader reads the data till end-of-file is reached. The + * driver does the necessary conversion from Java character format to + * the national character set in the database. + *

Note: This stream object can either be a standard + * Java stream object or your own subclass that implements the + * standard interface. + *

Note: Consult your JDBC driver documentation to determine if + * it might be more efficient to use a version of + * setNCharacterStream which takes a length parameter. + */ + // @ts-ignore + setNCharacterStream(parameterName: string, value: java.io.Reader): void; + /** + * Sets the designated parameter to a Reader object. + * This method differs from the setCharacterStream (int, Reader) method + * because it informs the driver that the parameter value should be sent to + * the server as a CLOB. When the setCharacterStream method is used, the + * driver may have to do extra work to determine whether the parameter + * data should be send to the server as a LONGVARCHAR or a CLOB + *

Note: Consult your JDBC driver documentation to determine if + * it might be more efficient to use a version of + * setClob which takes a length parameter. + */ + // @ts-ignore + setClob(parameterName: string, reader: java.io.Reader): void; + /** + * Sets the designated parameter to a InputStream object. + * This method differs from the setBinaryStream (int, InputStream) + * method because it informs the driver that the parameter value should be + * sent to the server as a BLOB. When the setBinaryStream method is used, + * the driver may have to do extra work to determine whether the parameter + * data should be send to the server as a LONGVARBINARY or a BLOB + *

Note: Consult your JDBC driver documentation to determine if + * it might be more efficient to use a version of + * setBlob which takes a length parameter. + */ + // @ts-ignore + setBlob(parameterName: string, inputStream: java.io.InputStream): void; + /** + * Sets the designated parameter to a Reader object. + * This method differs from the setCharacterStream (int, Reader) method + * because it informs the driver that the parameter value should be sent to + * the server as a NCLOB. When the setCharacterStream method is used, the + * driver may have to do extra work to determine whether the parameter + * data should be send to the server as a LONGNVARCHAR or a NCLOB + *

Note: Consult your JDBC driver documentation to determine if + * it might be more efficient to use a version of + * setNClob which takes a length parameter. + */ + // @ts-ignore + setNClob(parameterName: string, reader: java.io.Reader): void; + /** + *

Returns an object representing the value of OUT parameter + * {@code parameterIndex} and will convert from the + * SQL type of the parameter to the requested Java data type, if the + * conversion is supported. If the conversion is not + * supported or null is specified for the type, a + * SQLException is thrown. + *

+ * At a minimum, an implementation must support the conversions defined in + * Appendix B, Table B-3 and conversion of appropriate user defined SQL + * types to a Java type which implements {@code SQLData}, or {@code Struct}. + * Additional conversions may be supported and are vendor defined. + */ + // @ts-ignore + getObject(parameterIndex: number, type: java.lang.Class): java.lang.Object; + /** + *

Returns an object representing the value of OUT parameter + * {@code parameterName} and will convert from the + * SQL type of the parameter to the requested Java data type, if the + * conversion is supported. If the conversion is not + * supported or null is specified for the type, a + * SQLException is thrown. + *

+ * At a minimum, an implementation must support the conversions defined in + * Appendix B, Table B-3 and conversion of appropriate user defined SQL + * types to a Java type which implements {@code SQLData}, or {@code Struct}. + * Additional conversions may be supported and are vendor defined. + */ + // @ts-ignore + getObject(parameterName: string, type: java.lang.Class): java.lang.Object; + /** + *

Sets the value of the designated parameter with the given object. + * If the second argument is an {@code InputStream} then the stream + * must contain the number of bytes specified by scaleOrLength. + * If the second argument is a {@code Reader} then the reader must + * contain the number of characters specified + * by scaleOrLength. If these conditions are not true the driver + * will generate a + * {@code SQLException} when the prepared statement is executed. + *

The given Java object will be converted to the given targetSqlType + * before being sent to the database. + * If the object has a custom mapping (is of a class implementing the + * interface {@code SQLData}), + * the JDBC driver should call the method {@code SQLData.writeSQL} to + * write it to the SQL data stream. + * If, on the other hand, the object is of a class implementing + * {@code Ref}, {@code Blob}, {@code Clob}, {@code NClob}, + * {@code Struct}, {@code java.net.URL}, + * or {@code Array}, the driver should pass it to the database as a + * value of the corresponding SQL type. + *

Note that this method may be used to pass database-specific + * abstract data types. + *

+ * The default implementation will throw {@code SQLFeatureNotSupportedException} + */ + // @ts-ignore + setObject(parameterName: string, x: java.lang.Object, targetSqlType: java.sql.SQLType, scaleOrLength: number): void; + /** + * Sets the value of the designated parameter with the given object. + * This method is similar to {@link #setObject(String parameterName, + * Object x, SQLType targetSqlType, int scaleOrLength)}, + * except that it assumes a scale of zero. + *

+ * The default implementation will throw {@code SQLFeatureNotSupportedException} + */ + // @ts-ignore + setObject(parameterName: string, x: java.lang.Object, targetSqlType: java.sql.SQLType): void; + /** + * Registers the OUT parameter in ordinal position + * {@code parameterIndex} to the JDBC type + * {@code sqlType}. All OUT parameters must be registered + * before a stored procedure is executed. + *

+ * The JDBC type specified by {@code sqlType} for an OUT + * parameter determines the Java type that must be used + * in the {@code get} method to read the value of that parameter. + *

+ * If the JDBC type expected to be returned to this output parameter + * is specific to this particular database, {@code sqlType} + * may be {@code JDBCType.OTHER} or a {@code SQLType} that is supported by + * the JDBC driver. The method + * {@link #getObject} retrieves the value. + *

+ * The default implementation will throw {@code SQLFeatureNotSupportedException} + */ + // @ts-ignore + registerOutParameter(parameterIndex: number, sqlType: java.sql.SQLType): void; + /** + * Registers the parameter in ordinal position + * {@code parameterIndex} to be of JDBC type + * {@code sqlType}. All OUT parameters must be registered + * before a stored procedure is executed. + *

+ * The JDBC type specified by {@code sqlType} for an OUT + * parameter determines the Java type that must be used + * in the {@code get} method to read the value of that parameter. + *

+ * This version of {@code registerOutParameter} should be + * used when the parameter is of JDBC type {@code JDBCType.NUMERIC} + * or {@code JDBCType.DECIMAL}. + *

+ * The default implementation will throw {@code SQLFeatureNotSupportedException} + */ + // @ts-ignore + registerOutParameter(parameterIndex: number, sqlType: java.sql.SQLType, scale: number): void; + /** + * Registers the designated output parameter. + * This version of + * the method {@code registerOutParameter} + * should be used for a user-defined or {@code REF} output parameter. + * Examples + * of user-defined types include: {@code STRUCT}, {@code DISTINCT}, + * {@code JAVA_OBJECT}, and named array types. + *

+ * All OUT parameters must be registered + * before a stored procedure is executed. + *

For a user-defined parameter, the fully-qualified SQL + * type name of the parameter should also be given, while a {@code REF} + * parameter requires that the fully-qualified type name of the + * referenced type be given. A JDBC driver that does not need the + * type code and type name information may ignore it. To be portable, + * however, applications should always provide these values for + * user-defined and {@code REF} parameters. + * Although it is intended for user-defined and {@code REF} parameters, + * this method may be used to register a parameter of any JDBC type. + * If the parameter does not have a user-defined or {@code REF} type, the + * typeName parameter is ignored. + *

Note: When reading the value of an out parameter, you + * must use the getter method whose Java type corresponds to the + * parameter's registered SQL type. + *

+ * The default implementation will throw {@code SQLFeatureNotSupportedException} + */ + // @ts-ignore + registerOutParameter(parameterIndex: number, sqlType: java.sql.SQLType, typeName: string): void; + /** + * Registers the OUT parameter named + * parameterName to the JDBC type + * {@code sqlType}. All OUT parameters must be registered + * before a stored procedure is executed. + *

+ * The JDBC type specified by {@code sqlType} for an OUT + * parameter determines the Java type that must be used + * in the {@code get} method to read the value of that parameter. + *

+ * If the JDBC type expected to be returned to this output parameter + * is specific to this particular database, {@code sqlType} + * should be {@code JDBCType.OTHER} or a {@code SQLType} that is supported + * by the JDBC driver.. The method + * {@link #getObject} retrieves the value. + *

+ * The default implementation will throw {@code SQLFeatureNotSupportedException} + */ + // @ts-ignore + registerOutParameter(parameterName: string, sqlType: java.sql.SQLType): void; + /** + * Registers the parameter named + * parameterName to be of JDBC type + * {@code sqlType}. All OUT parameters must be registered + * before a stored procedure is executed. + *

+ * The JDBC type specified by {@code sqlType} for an OUT + * parameter determines the Java type that must be used + * in the {@code get} method to read the value of that parameter. + *

+ * This version of {@code registerOutParameter} should be + * used when the parameter is of JDBC type {@code JDBCType.NUMERIC} + * or {@code JDBCType.DECIMAL}. + *

+ * The default implementation will throw {@code SQLFeatureNotSupportedException} + */ + // @ts-ignore + registerOutParameter(parameterName: string, sqlType: java.sql.SQLType, scale: number): void; + /** + * Registers the designated output parameter. This version of + * the method {@code registerOutParameter} + * should be used for a user-named or REF output parameter. Examples + * of user-named types include: STRUCT, DISTINCT, JAVA_OBJECT, and + * named array types. + *

+ * All OUT parameters must be registered + * before a stored procedure is executed. + *

+ * For a user-named parameter the fully-qualified SQL + * type name of the parameter should also be given, while a REF + * parameter requires that the fully-qualified type name of the + * referenced type be given. A JDBC driver that does not need the + * type code and type name information may ignore it. To be portable, + * however, applications should always provide these values for + * user-named and REF parameters. + * Although it is intended for user-named and REF parameters, + * this method may be used to register a parameter of any JDBC type. + * If the parameter does not have a user-named or REF type, the + * typeName parameter is ignored. + *

Note: When reading the value of an out parameter, you + * must use the {@code getXXX} method whose Java type XXX corresponds to the + * parameter's registered SQL type. + *

+ * The default implementation will throw {@code SQLFeatureNotSupportedException} + */ + // @ts-ignore + registerOutParameter(parameterName: string, sqlType: java.sql.SQLType, typeName: string): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.ClientInfoStatus.d.ts b/packages/types/dist/typings/jdk/java.sql.ClientInfoStatus.d.ts new file mode 100644 index 00000000..45496429 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.ClientInfoStatus.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + class ClientInfoStatus extends java.lang.Enum { + // @ts-ignore + public static REASON_UNKNOWN: java.sql.ClientInfoStatus; + // @ts-ignore + public static REASON_UNKNOWN_PROPERTY: java.sql.ClientInfoStatus; + // @ts-ignore + public static REASON_VALUE_INVALID: java.sql.ClientInfoStatus; + // @ts-ignore + public static REASON_VALUE_TRUNCATED: java.sql.ClientInfoStatus; + // @ts-ignore + public static values(): java.sql.ClientInfoStatus[]; + // @ts-ignore + public static valueOf(name: string): java.sql.ClientInfoStatus; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.Clob.d.ts b/packages/types/dist/typings/jdk/java.sql.Clob.d.ts new file mode 100644 index 00000000..82777ad2 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.Clob.d.ts @@ -0,0 +1,156 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + interface Clob { + /** + * Retrieves the number of characters + * in the CLOB value + * designated by this Clob object. + */ + // @ts-ignore + length(): number; + /** + * Retrieves a copy of the specified substring + * in the CLOB value + * designated by this Clob object. + * The substring begins at position + * pos and has up to length consecutive + * characters. + */ + // @ts-ignore + getSubString(pos: number, length: number): string; + /** + * Retrieves the CLOB value designated by this Clob + * object as a java.io.Reader object (or as a stream of + * characters). + */ + // @ts-ignore + getCharacterStream(): java.io.Reader; + /** + * Retrieves the CLOB value designated by this Clob + * object as an ascii stream. + */ + // @ts-ignore + getAsciiStream(): java.io.InputStream; + /** + * Retrieves the character position at which the specified substring + * searchstr appears in the SQL CLOB value + * represented by this Clob object. The search + * begins at position start. + */ + // @ts-ignore + position(searchstr: string, start: number): number; + /** + * Retrieves the character position at which the specified + * Clob object searchstr appears in this + * Clob object. The search begins at position + * start. + */ + // @ts-ignore + position(searchstr: java.sql.Clob, start: number): number; + /** + * Writes the given Java String to the CLOB + * value that this Clob object designates at the position + * pos. The string will overwrite the existing characters + * in the Clob object starting at the position + * pos. If the end of the Clob value is reached + * while writing the given string, then the length of the Clob + * value will be increased to accommodate the extra characters. + *

+ * Note: If the value specified for pos + * is greater then the length+1 of the CLOB value then the + * behavior is undefined. Some JDBC drivers may throw a + * SQLException while other drivers may support this + * operation. + */ + // @ts-ignore + setString(pos: number, str: string): number; + /** + * Writes len characters of str, starting + * at character offset, to the CLOB value + * that this Clob represents. The string will overwrite the existing characters + * in the Clob object starting at the position + * pos. If the end of the Clob value is reached + * while writing the given string, then the length of the Clob + * value will be increased to accommodate the extra characters. + *

+ * Note: If the value specified for pos + * is greater then the length+1 of the CLOB value then the + * behavior is undefined. Some JDBC drivers may throw a + * SQLException while other drivers may support this + * operation. + */ + // @ts-ignore + setString(pos: number, str: string, offset: number, len: number): number; + /** + * Retrieves a stream to be used to write Ascii characters to the + * CLOB value that this Clob object represents, + * starting at position pos. Characters written to the stream + * will overwrite the existing characters + * in the Clob object starting at the position + * pos. If the end of the Clob value is reached + * while writing characters to the stream, then the length of the Clob + * value will be increased to accommodate the extra characters. + *

+ * Note: If the value specified for pos + * is greater then the length+1 of the CLOB value then the + * behavior is undefined. Some JDBC drivers may throw a + * SQLException while other drivers may support this + * operation. + */ + // @ts-ignore + setAsciiStream(pos: number): java.io.OutputStream; + /** + * Retrieves a stream to be used to write a stream of Unicode characters + * to the CLOB value that this Clob object + * represents, at position pos. Characters written to the stream + * will overwrite the existing characters + * in the Clob object starting at the position + * pos. If the end of the Clob value is reached + * while writing characters to the stream, then the length of the Clob + * value will be increased to accommodate the extra characters. + *

+ * Note: If the value specified for pos + * is greater then the length+1 of the CLOB value then the + * behavior is undefined. Some JDBC drivers may throw a + * SQLException while other drivers may support this + * operation. + */ + // @ts-ignore + setCharacterStream(pos: number): java.io.Writer; + /** + * Truncates the CLOB value that this Clob + * designates to have a length of len + * characters. + *

+ * Note: If the value specified for pos + * is greater then the length+1 of the CLOB value then the + * behavior is undefined. Some JDBC drivers may throw a + * SQLException while other drivers may support this + * operation. + */ + // @ts-ignore + truncate(len: number): void; + /** + * This method frees the Clob object and releases the resources the resources + * that it holds. The object is invalid once the free method + * is called. + *

+ * After free has been called, any attempt to invoke a + * method other than free will result in a SQLException + * being thrown. If free is called multiple times, the subsequent + * calls to free are treated as a no-op. + *

+ */ + // @ts-ignore + free(): void; + /** + * Returns a Reader object that contains a partial Clob value, starting + * with the character specified by pos, which is length characters in length. + */ + // @ts-ignore + getCharacterStream(pos: number, length: number): java.io.Reader; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.Connection.d.ts b/packages/types/dist/typings/jdk/java.sql.Connection.d.ts new file mode 100644 index 00000000..de6f5c80 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.Connection.d.ts @@ -0,0 +1,768 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + interface Connection { + // @ts-ignore + TRANSACTION_NONE: number; + // @ts-ignore + TRANSACTION_READ_UNCOMMITTED: number; + // @ts-ignore + TRANSACTION_READ_COMMITTED: number; + // @ts-ignore + TRANSACTION_REPEATABLE_READ: number; + // @ts-ignore + TRANSACTION_SERIALIZABLE: number; + /** + * Creates a Statement object for sending + * SQL statements to the database. + * SQL statements without parameters are normally + * executed using Statement objects. If the same SQL statement + * is executed many times, it may be more efficient to use a + * PreparedStatement object. + *

+ * Result sets created using the returned Statement + * object will by default be type TYPE_FORWARD_ONLY + * and have a concurrency level of CONCUR_READ_ONLY. + * The holdability of the created result sets can be determined by + * calling {@link #getHoldability}. + */ + // @ts-ignore + createStatement(): java.sql.Statement; + /** + * Creates a PreparedStatement object for sending + * parameterized SQL statements to the database. + *

+ * A SQL statement with or without IN parameters can be + * pre-compiled and stored in a PreparedStatement object. This + * object can then be used to efficiently execute this statement + * multiple times. + *

Note: This method is optimized for handling + * parametric SQL statements that benefit from precompilation. If + * the driver supports precompilation, + * the method prepareStatement will send + * the statement to the database for precompilation. Some drivers + * may not support precompilation. In this case, the statement may + * not be sent to the database until the PreparedStatement + * object is executed. This has no direct effect on users; however, it does + * affect which methods throw certain SQLException objects. + *

+ * Result sets created using the returned PreparedStatement + * object will by default be type TYPE_FORWARD_ONLY + * and have a concurrency level of CONCUR_READ_ONLY. + * The holdability of the created result sets can be determined by + * calling {@link #getHoldability}. + */ + // @ts-ignore + prepareStatement(sql: string): java.sql.PreparedStatement; + /** + * Creates a CallableStatement object for calling + * database stored procedures. + * The CallableStatement object provides + * methods for setting up its IN and OUT parameters, and + * methods for executing the call to a stored procedure. + *

Note: This method is optimized for handling stored + * procedure call statements. Some drivers may send the call + * statement to the database when the method prepareCall + * is done; others + * may wait until the CallableStatement object + * is executed. This has no + * direct effect on users; however, it does affect which method + * throws certain SQLExceptions. + *

+ * Result sets created using the returned CallableStatement + * object will by default be type TYPE_FORWARD_ONLY + * and have a concurrency level of CONCUR_READ_ONLY. + * The holdability of the created result sets can be determined by + * calling {@link #getHoldability}. + */ + // @ts-ignore + prepareCall(sql: string): java.sql.CallableStatement; + /** + * Converts the given SQL statement into the system's native SQL grammar. + * A driver may convert the JDBC SQL grammar into its system's + * native SQL grammar prior to sending it. This method returns the + * native form of the statement that the driver would have sent. + */ + // @ts-ignore + nativeSQL(sql: string): string; + /** + * Sets this connection's auto-commit mode to the given state. + * If a connection is in auto-commit mode, then all its SQL + * statements will be executed and committed as individual + * transactions. Otherwise, its SQL statements are grouped into + * transactions that are terminated by a call to either + * the method commit or the method rollback. + * By default, new connections are in auto-commit + * mode. + *

+ * The commit occurs when the statement completes. The time when the statement + * completes depends on the type of SQL Statement: + *

    + *
  • For DML statements, such as Insert, Update or Delete, and DDL statements, + * the statement is complete as soon as it has finished executing. + *
  • For Select statements, the statement is complete when the associated result + * set is closed. + *
  • For CallableStatement objects or for statements that return + * multiple results, the statement is complete + * when all of the associated result sets have been closed, and all update + * counts and output parameters have been retrieved. + *
+ *

+ * NOTE: If this method is called during a transaction and the + * auto-commit mode is changed, the transaction is committed. If + * setAutoCommit is called and the auto-commit mode is + * not changed, the call is a no-op. + */ + // @ts-ignore + setAutoCommit(autoCommit: boolean): void; + /** + * Retrieves the current auto-commit mode for this Connection + * object. + */ + // @ts-ignore + getAutoCommit(): boolean; + /** + * Makes all changes made since the previous + * commit/rollback permanent and releases any database locks + * currently held by this Connection object. + * This method should be + * used only when auto-commit mode has been disabled. + */ + // @ts-ignore + commit(): void; + /** + * Undoes all changes made in the current transaction + * and releases any database locks currently held + * by this Connection object. This method should be + * used only when auto-commit mode has been disabled. + */ + // @ts-ignore + rollback(): void; + /** + * Releases this Connection object's database and JDBC resources + * immediately instead of waiting for them to be automatically released. + *

+ * Calling the method close on a Connection + * object that is already closed is a no-op. + *

+ * It is strongly recommended that an application explicitly + * commits or rolls back an active transaction prior to calling the + * close method. If the close method is called + * and there is an active transaction, the results are implementation-defined. + *

+ */ + // @ts-ignore + close(): void; + /** + * Retrieves whether this Connection object has been + * closed. A connection is closed if the method close + * has been called on it or if certain fatal errors have occurred. + * This method is guaranteed to return true only when + * it is called after the method Connection.close has + * been called. + *

+ * This method generally cannot be called to determine whether a + * connection to a database is valid or invalid. A typical client + * can determine that a connection is invalid by catching any + * exceptions that might be thrown when an operation is attempted. + */ + // @ts-ignore + isClosed(): boolean; + /** + * Retrieves a DatabaseMetaData object that contains + * metadata about the database to which this + * Connection object represents a connection. + * The metadata includes information about the database's + * tables, its supported SQL grammar, its stored + * procedures, the capabilities of this connection, and so on. + */ + // @ts-ignore + getMetaData(): java.sql.DatabaseMetaData; + /** + * Puts this connection in read-only mode as a hint to the driver to enable + * database optimizations. + *

Note: This method cannot be called during a transaction. + */ + // @ts-ignore + setReadOnly(readOnly: boolean): void; + /** + * Retrieves whether this Connection + * object is in read-only mode. + */ + // @ts-ignore + isReadOnly(): boolean; + /** + * Sets the given catalog name in order to select + * a subspace of this Connection object's database + * in which to work. + *

+ * If the driver does not support catalogs, it will + * silently ignore this request. + *

+ * Calling {@code setCatalog} has no effect on previously created or prepared + * {@code Statement} objects. It is implementation defined whether a DBMS + * prepare operation takes place immediately when the {@code Connection} + * method {@code prepareStatement} or {@code prepareCall} is invoked. + * For maximum portability, {@code setCatalog} should be called before a + * {@code Statement} is created or prepared. + */ + // @ts-ignore + setCatalog(catalog: string): void; + /** + * Retrieves this Connection object's current catalog name. + */ + // @ts-ignore + getCatalog(): string; + /** + * Attempts to change the transaction isolation level for this + * Connection object to the one given. + * The constants defined in the interface Connection + * are the possible transaction isolation levels. + *

+ * Note: If this method is called during a transaction, the result + * is implementation-defined. + */ + // @ts-ignore + setTransactionIsolation(level: number): void; + /** + * Retrieves this Connection object's current + * transaction isolation level. + */ + // @ts-ignore + getTransactionIsolation(): number; + /** + * Retrieves the first warning reported by calls on this + * Connection object. If there is more than one + * warning, subsequent warnings will be chained to the first one + * and can be retrieved by calling the method + * SQLWarning.getNextWarning on the warning + * that was retrieved previously. + *

+ * This method may not be + * called on a closed connection; doing so will cause an + * SQLException to be thrown. + *

Note: Subsequent warnings will be chained to this + * SQLWarning. + */ + // @ts-ignore + getWarnings(): java.sql.SQLWarning; + /** + * Clears all warnings reported for this Connection object. + * After a call to this method, the method getWarnings + * returns null until a new warning is + * reported for this Connection object. + */ + // @ts-ignore + clearWarnings(): void; + /** + * Creates a Statement object that will generate + * ResultSet objects with the given type and concurrency. + * This method is the same as the createStatement method + * above, but it allows the default result set + * type and concurrency to be overridden. + * The holdability of the created result sets can be determined by + * calling {@link #getHoldability}. + */ + // @ts-ignore + createStatement(resultSetType: number, resultSetConcurrency: number): java.sql.Statement; + /** + * Creates a PreparedStatement object that will generate + * ResultSet objects with the given type and concurrency. + * This method is the same as the prepareStatement method + * above, but it allows the default result set + * type and concurrency to be overridden. + * The holdability of the created result sets can be determined by + * calling {@link #getHoldability}. + */ + // @ts-ignore + prepareStatement(sql: string, resultSetType: number, resultSetConcurrency: number): java.sql.PreparedStatement; + /** + * Creates a CallableStatement object that will generate + * ResultSet objects with the given type and concurrency. + * This method is the same as the prepareCall method + * above, but it allows the default result set + * type and concurrency to be overridden. + * The holdability of the created result sets can be determined by + * calling {@link #getHoldability}. + */ + // @ts-ignore + prepareCall(sql: string, resultSetType: number, resultSetConcurrency: number): java.sql.CallableStatement; + /** + * Retrieves the Map object associated with this + * Connection object. + * Unless the application has added an entry, the type map returned + * will be empty. + *

+ * You must invoke setTypeMap after making changes to the + * Map object returned from + * getTypeMap as a JDBC driver may create an internal + * copy of the Map object passed to setTypeMap: + *

+             * Map<String,Class<?>> myMap = con.getTypeMap();
+             * myMap.put("mySchemaName.ATHLETES", Athletes.class);
+             * con.setTypeMap(myMap);
+             * 
+ */ + // @ts-ignore + getTypeMap(): java.util.Map; + /** + * Installs the given TypeMap object as the type map for + * this Connection object. The type map will be used for the + * custom mapping of SQL structured types and distinct types. + *

+ * You must set the the values for the TypeMap prior to + * callng setMap as a JDBC driver may create an internal copy + * of the TypeMap: + *

+             * Map myMap<String,Class<?>> = new HashMap<String,Class<?>>();
+             * myMap.put("mySchemaName.ATHLETES", Athletes.class);
+             * con.setTypeMap(myMap);
+             * 
+ */ + // @ts-ignore + setTypeMap(map: java.util.Map): void; + /** + * Changes the default holdability of ResultSet objects + * created using this Connection object to the given + * holdability. The default holdability of ResultSet objects + * can be be determined by invoking + * {@link DatabaseMetaData#getResultSetHoldability}. + */ + // @ts-ignore + setHoldability(holdability: number): void; + /** + * Retrieves the current holdability of ResultSet objects + * created using this Connection object. + */ + // @ts-ignore + getHoldability(): number; + /** + * Creates an unnamed savepoint in the current transaction and + * returns the new Savepoint object that represents it. + *

if setSavepoint is invoked outside of an active transaction, a transaction will be started at this newly created + * savepoint. + */ + // @ts-ignore + setSavepoint(): java.sql.Savepoint; + /** + * Creates a savepoint with the given name in the current transaction + * and returns the new Savepoint object that represents it. + *

if setSavepoint is invoked outside of an active transaction, a transaction will be started at this newly created + * savepoint. + */ + // @ts-ignore + setSavepoint(name: string): java.sql.Savepoint; + /** + * Undoes all changes made after the given Savepoint object + * was set. + *

+ * This method should be used only when auto-commit has been disabled. + */ + // @ts-ignore + rollback(savepoint: java.sql.Savepoint): void; + /** + * Removes the specified Savepoint and subsequent Savepoint objects from the current + * transaction. Any reference to the savepoint after it have been removed + * will cause an SQLException to be thrown. + */ + // @ts-ignore + releaseSavepoint(savepoint: java.sql.Savepoint): void; + /** + * Creates a Statement object that will generate + * ResultSet objects with the given type, concurrency, + * and holdability. + * This method is the same as the createStatement method + * above, but it allows the default result set + * type, concurrency, and holdability to be overridden. + */ + // @ts-ignore + createStatement(resultSetType: number, resultSetConcurrency: number, resultSetHoldability: number): java.sql.Statement; + /** + * Creates a PreparedStatement object that will generate + * ResultSet objects with the given type, concurrency, + * and holdability. + *

+ * This method is the same as the prepareStatement method + * above, but it allows the default result set + * type, concurrency, and holdability to be overridden. + */ + // @ts-ignore + prepareStatement(sql: string, resultSetType: number, resultSetConcurrency: number, resultSetHoldability: number): java.sql.PreparedStatement; + /** + * Creates a CallableStatement object that will generate + * ResultSet objects with the given type and concurrency. + * This method is the same as the prepareCall method + * above, but it allows the default result set + * type, result set concurrency type and holdability to be overridden. + */ + // @ts-ignore + prepareCall(sql: string, resultSetType: number, resultSetConcurrency: number, resultSetHoldability: number): java.sql.CallableStatement; + /** + * Creates a default PreparedStatement object that has + * the capability to retrieve auto-generated keys. The given constant + * tells the driver whether it should make auto-generated keys + * available for retrieval. This parameter is ignored if the SQL statement + * is not an INSERT statement, or an SQL statement able to return + * auto-generated keys (the list of such statements is vendor-specific). + *

+ * Note: This method is optimized for handling + * parametric SQL statements that benefit from precompilation. If + * the driver supports precompilation, + * the method prepareStatement will send + * the statement to the database for precompilation. Some drivers + * may not support precompilation. In this case, the statement may + * not be sent to the database until the PreparedStatement + * object is executed. This has no direct effect on users; however, it does + * affect which methods throw certain SQLExceptions. + *

+ * Result sets created using the returned PreparedStatement + * object will by default be type TYPE_FORWARD_ONLY + * and have a concurrency level of CONCUR_READ_ONLY. + * The holdability of the created result sets can be determined by + * calling {@link #getHoldability}. + */ + // @ts-ignore + prepareStatement(sql: string, autoGeneratedKeys: number): java.sql.PreparedStatement; + /** + * Creates a default PreparedStatement object capable + * of returning the auto-generated keys designated by the given array. + * This array contains the indexes of the columns in the target + * table that contain the auto-generated keys that should be made + * available. The driver will ignore the array if the SQL statement + * is not an INSERT statement, or an SQL statement able to return + * auto-generated keys (the list of such statements is vendor-specific). + *

+ * An SQL statement with or without IN parameters can be + * pre-compiled and stored in a PreparedStatement object. This + * object can then be used to efficiently execute this statement + * multiple times. + *

+ * Note: This method is optimized for handling + * parametric SQL statements that benefit from precompilation. If + * the driver supports precompilation, + * the method prepareStatement will send + * the statement to the database for precompilation. Some drivers + * may not support precompilation. In this case, the statement may + * not be sent to the database until the PreparedStatement + * object is executed. This has no direct effect on users; however, it does + * affect which methods throw certain SQLExceptions. + *

+ * Result sets created using the returned PreparedStatement + * object will by default be type TYPE_FORWARD_ONLY + * and have a concurrency level of CONCUR_READ_ONLY. + * The holdability of the created result sets can be determined by + * calling {@link #getHoldability}. + */ + // @ts-ignore + prepareStatement(sql: string, columnIndexes: number): java.sql.PreparedStatement; + /** + * Creates a default PreparedStatement object capable + * of returning the auto-generated keys designated by the given array. + * This array contains the names of the columns in the target + * table that contain the auto-generated keys that should be returned. + * The driver will ignore the array if the SQL statement + * is not an INSERT statement, or an SQL statement able to return + * auto-generated keys (the list of such statements is vendor-specific). + *

+ * An SQL statement with or without IN parameters can be + * pre-compiled and stored in a PreparedStatement object. This + * object can then be used to efficiently execute this statement + * multiple times. + *

+ * Note: This method is optimized for handling + * parametric SQL statements that benefit from precompilation. If + * the driver supports precompilation, + * the method prepareStatement will send + * the statement to the database for precompilation. Some drivers + * may not support precompilation. In this case, the statement may + * not be sent to the database until the PreparedStatement + * object is executed. This has no direct effect on users; however, it does + * affect which methods throw certain SQLExceptions. + *

+ * Result sets created using the returned PreparedStatement + * object will by default be type TYPE_FORWARD_ONLY + * and have a concurrency level of CONCUR_READ_ONLY. + * The holdability of the created result sets can be determined by + * calling {@link #getHoldability}. + */ + // @ts-ignore + prepareStatement(sql: string, columnNames: string): java.sql.PreparedStatement; + /** + * Constructs an object that implements the Clob interface. The object + * returned initially contains no data. The setAsciiStream, + * setCharacterStream and setString methods of + * the Clob interface may be used to add data to the Clob. + */ + // @ts-ignore + createClob(): java.sql.Clob; + /** + * Constructs an object that implements the Blob interface. The object + * returned initially contains no data. The setBinaryStream and + * setBytes methods of the Blob interface may be used to add data to + * the Blob. + */ + // @ts-ignore + createBlob(): java.sql.Blob; + /** + * Constructs an object that implements the NClob interface. The object + * returned initially contains no data. The setAsciiStream, + * setCharacterStream and setString methods of the NClob interface may + * be used to add data to the NClob. + */ + // @ts-ignore + createNClob(): java.sql.NClob; + /** + * Constructs an object that implements the SQLXML interface. The object + * returned initially contains no data. The createXmlStreamWriter object and + * setString method of the SQLXML interface may be used to add data to the SQLXML + * object. + */ + // @ts-ignore + createSQLXML(): java.sql.SQLXML; + /** + * Returns true if the connection has not been closed and is still valid. + * The driver shall submit a query on the connection or use some other + * mechanism that positively verifies the connection is still valid when + * this method is called. + *

+ * The query submitted by the driver to validate the connection shall be + * executed in the context of the current transaction. + */ + // @ts-ignore + isValid(timeout: number): boolean; + /** + * Sets the value of the client info property specified by name to the + * value specified by value. + *

+ * Applications may use the DatabaseMetaData.getClientInfoProperties + * method to determine the client info properties supported by the driver + * and the maximum length that may be specified for each property. + *

+ * The driver stores the value specified in a suitable location in the + * database. For example in a special register, session parameter, or + * system table column. For efficiency the driver may defer setting the + * value in the database until the next time a statement is executed or + * prepared. Other than storing the client information in the appropriate + * place in the database, these methods shall not alter the behavior of + * the connection in anyway. The values supplied to these methods are + * used for accounting, diagnostics and debugging purposes only. + *

+ * The driver shall generate a warning if the client info name specified + * is not recognized by the driver. + *

+ * If the value specified to this method is greater than the maximum + * length for the property the driver may either truncate the value and + * generate a warning or generate a SQLClientInfoException. If the driver + * generates a SQLClientInfoException, the value specified was not set on the + * connection. + *

+ * The following are standard client info properties. Drivers are not + * required to support these properties however if the driver supports a + * client info property that can be described by one of the standard + * properties, the standard property name should be used. + *

    + *
  • ApplicationName - The name of the application currently utilizing + * the connection
  • + *
  • ClientUser - The name of the user that the application using + * the connection is performing work for. This may + * not be the same as the user name that was used + * in establishing the connection.
  • + *
  • ClientHostname - The hostname of the computer the application + * using the connection is running on.
  • + *
+ *

+ */ + // @ts-ignore + setClientInfo(name: string, value: string): void; + /** + * Sets the value of the connection's client info properties. The + * Properties object contains the names and values of the client info + * properties to be set. The set of client info properties contained in + * the properties list replaces the current set of client info properties + * on the connection. If a property that is currently set on the + * connection is not present in the properties list, that property is + * cleared. Specifying an empty properties list will clear all of the + * properties on the connection. See setClientInfo (String, String) for + * more information. + *

+ * If an error occurs in setting any of the client info properties, a + * SQLClientInfoException is thrown. The SQLClientInfoException + * contains information indicating which client info properties were not set. + * The state of the client information is unknown because + * some databases do not allow multiple client info properties to be set + * atomically. For those databases, one or more properties may have been + * set before the error occurred. + *

+ */ + // @ts-ignore + setClientInfo(properties: java.util.Properties): void; + /** + * Returns the value of the client info property specified by name. This + * method may return null if the specified client info property has not + * been set and does not have a default value. This method will also + * return null if the specified client info property name is not supported + * by the driver. + *

+ * Applications may use the DatabaseMetaData.getClientInfoProperties + * method to determine the client info properties supported by the driver. + *

+ */ + // @ts-ignore + getClientInfo(name: string): string; + /** + * Returns a list containing the name and current value of each client info + * property supported by the driver. The value of a client info property + * may be null if the property has not been set and does not have a + * default value. + *

+ */ + // @ts-ignore + getClientInfo(): java.util.Properties; + /** + * Factory method for creating Array objects. + *

+ * Note: When createArrayOf is used to create an array object + * that maps to a primitive data type, then it is implementation-defined + * whether the Array object is an array of that primitive + * data type or an array of Object. + *

+ * Note: The JDBC driver is responsible for mapping the elements + * Object array to the default JDBC SQL type defined in + * java.sql.Types for the given class of Object. The default + * mapping is specified in Appendix B of the JDBC specification. If the + * resulting JDBC type is not the appropriate type for the given typeName then + * it is implementation defined whether an SQLException is + * thrown or the driver supports the resulting conversion. + */ + // @ts-ignore + createArrayOf(typeName: string, elements: java.lang.Object): java.sql.Array; + /** + * Factory method for creating Struct objects. + */ + // @ts-ignore + createStruct(typeName: string, attributes: java.lang.Object): java.sql.Struct; + /** + * Sets the given schema name to access. + *

+ * If the driver does not support schemas, it will + * silently ignore this request. + *

+ * Calling {@code setSchema} has no effect on previously created or prepared + * {@code Statement} objects. It is implementation defined whether a DBMS + * prepare operation takes place immediately when the {@code Connection} + * method {@code prepareStatement} or {@code prepareCall} is invoked. + * For maximum portability, {@code setSchema} should be called before a + * {@code Statement} is created or prepared. + */ + // @ts-ignore + setSchema(schema: string): void; + /** + * Retrieves this Connection object's current schema name. + */ + // @ts-ignore + getSchema(): string; + /** + * Terminates an open connection. Calling abort results in: + *

    + *
  • The connection marked as closed + *
  • Closes any physical connection to the database + *
  • Releases resources used by the connection + *
  • Insures that any thread that is currently accessing the connection + * will either progress to completion or throw an SQLException. + *
+ *

+ * Calling abort marks the connection closed and releases any + * resources. Calling abort on a closed connection is a + * no-op. + *

+ * It is possible that the aborting and releasing of the resources that are + * held by the connection can take an extended period of time. When the + * abort method returns, the connection will have been marked as + * closed and the Executor that was passed as a parameter to abort + * may still be executing tasks to release resources. + *

+ * This method checks to see that there is an SQLPermission + * object before allowing the method to proceed. If a + * SecurityManager exists and its + * checkPermission method denies calling abort, + * this method throws a + * java.lang.SecurityException. + */ + // @ts-ignore + abort(executor: java.util.concurrent.Executor): void; + /** + * Sets the maximum period a Connection or + * objects created from the Connection + * will wait for the database to reply to any one request. If any + * request remains unanswered, the waiting method will + * return with a SQLException, and the Connection + * or objects created from the Connection will be marked as + * closed. Any subsequent use of + * the objects, with the exception of the close, + * isClosed or Connection.isValid + * methods, will result in a SQLException. + *

+ * Note: This method is intended to address a rare but serious + * condition where network partitions can cause threads issuing JDBC calls + * to hang uninterruptedly in socket reads, until the OS TCP-TIMEOUT + * (typically 10 minutes). This method is related to the + * {@link #abort abort() } method which provides an administrator + * thread a means to free any such threads in cases where the + * JDBC connection is accessible to the administrator thread. + * The setNetworkTimeout method will cover cases where + * there is no administrator thread, or it has no access to the + * connection. This method is severe in it's effects, and should be + * given a high enough value so it is never triggered before any more + * normal timeouts, such as transaction timeouts. + *

+ * JDBC driver implementations may also choose to support the + * {@code setNetworkTimeout} method to impose a limit on database + * response time, in environments where no network is present. + *

+ * Drivers may internally implement some or all of their API calls with + * multiple internal driver-database transmissions, and it is left to the + * driver implementation to determine whether the limit will be + * applied always to the response to the API call, or to any + * single request made during the API call. + *

+ * This method can be invoked more than once, such as to set a limit for an + * area of JDBC code, and to reset to the default on exit from this area. + * Invocation of this method has no impact on already outstanding + * requests. + *

+ * The {@code Statement.setQueryTimeout()} timeout value is independent of the + * timeout value specified in {@code setNetworkTimeout}. If the query timeout + * expires before the network timeout then the + * statement execution will be canceled. If the network is still + * active the result will be that both the statement and connection + * are still usable. However if the network timeout expires before + * the query timeout or if the statement timeout fails due to network + * problems, the connection will be marked as closed, any resources held by + * the connection will be released and both the connection and + * statement will be unusable. + *

+ * When the driver determines that the {@code setNetworkTimeout} timeout + * value has expired, the JDBC driver marks the connection + * closed and releases any resources held by the connection. + *

+ * This method checks to see that there is an SQLPermission + * object before allowing the method to proceed. If a + * SecurityManager exists and its + * checkPermission method denies calling + * setNetworkTimeout, this method throws a + * java.lang.SecurityException. + */ + // @ts-ignore + setNetworkTimeout(executor: java.util.concurrent.Executor, milliseconds: number): void; + /** + * Retrieves the number of milliseconds the driver will + * wait for a database request to complete. + * If the limit is exceeded, a + * SQLException is thrown. + */ + // @ts-ignore + getNetworkTimeout(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.DataTruncation.d.ts b/packages/types/dist/typings/jdk/java.sql.DataTruncation.d.ts new file mode 100644 index 00000000..b7c5c571 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.DataTruncation.d.ts @@ -0,0 +1,66 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + class DataTruncation extends java.sql.SQLWarning { + /** + * Creates a DataTruncation object + * with the SQLState initialized + * to 01004 when read is set to true and 22001 + * when read is set to false, + * the reason set to "Data truncation", the + * vendor code set to 0, and + * the other fields set to the given values. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor(index: number, parameter: boolean, read: boolean, dataSize: number, transferSize: number) + /** + * Creates a DataTruncation object + * with the SQLState initialized + * to 01004 when read is set to true and 22001 + * when read is set to false, + * the reason set to "Data truncation", the + * vendor code set to 0, and + * the other fields set to the given values. + *

+ */ + // @ts-ignore + constructor(index: number, parameter: boolean, read: boolean, dataSize: number, transferSize: number, cause: java.lang.Throwable) + /** + * Retrieves the index of the column or parameter that was truncated. + *

This may be -1 if the column or parameter index is unknown, in + * which case the parameter and read fields should be ignored. + */ + // @ts-ignore + public getIndex(): number; + /** + * Indicates whether the value truncated was a parameter value or + * a column value. + */ + // @ts-ignore + public getParameter(): boolean; + /** + * Indicates whether or not the value was truncated on a read. + */ + // @ts-ignore + public getRead(): boolean; + /** + * Gets the number of bytes of data that should have been transferred. + * This number may be approximate if data conversions were being + * performed. The value may be -1 if the size is unknown. + */ + // @ts-ignore + public getDataSize(): number; + /** + * Gets the number of bytes of data actually transferred. + * The value may be -1 if the size is unknown. + */ + // @ts-ignore + public getTransferSize(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.DatabaseMetaData.d.ts b/packages/types/dist/typings/jdk/java.sql.DatabaseMetaData.d.ts new file mode 100644 index 00000000..475118c6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.DatabaseMetaData.d.ts @@ -0,0 +1,2024 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + interface DatabaseMetaData { + // @ts-ignore + procedureResultUnknown: number; + // @ts-ignore + procedureNoResult: number; + // @ts-ignore + procedureReturnsResult: number; + // @ts-ignore + procedureColumnUnknown: number; + // @ts-ignore + procedureColumnIn: number; + // @ts-ignore + procedureColumnInOut: number; + // @ts-ignore + procedureColumnOut: number; + // @ts-ignore + procedureColumnReturn: number; + // @ts-ignore + procedureColumnResult: number; + // @ts-ignore + procedureNoNulls: number; + // @ts-ignore + procedureNullable: number; + // @ts-ignore + procedureNullableUnknown: number; + // @ts-ignore + columnNoNulls: number; + // @ts-ignore + columnNullable: number; + // @ts-ignore + columnNullableUnknown: number; + // @ts-ignore + bestRowTemporary: number; + // @ts-ignore + bestRowTransaction: number; + // @ts-ignore + bestRowSession: number; + // @ts-ignore + bestRowUnknown: number; + // @ts-ignore + bestRowNotPseudo: number; + // @ts-ignore + bestRowPseudo: number; + // @ts-ignore + versionColumnUnknown: number; + // @ts-ignore + versionColumnNotPseudo: number; + // @ts-ignore + versionColumnPseudo: number; + // @ts-ignore + importedKeyCascade: number; + // @ts-ignore + importedKeyRestrict: number; + // @ts-ignore + importedKeySetNull: number; + // @ts-ignore + importedKeyNoAction: number; + // @ts-ignore + importedKeySetDefault: number; + // @ts-ignore + importedKeyInitiallyDeferred: number; + // @ts-ignore + importedKeyInitiallyImmediate: number; + // @ts-ignore + importedKeyNotDeferrable: number; + // @ts-ignore + typeNoNulls: number; + // @ts-ignore + typeNullable: number; + // @ts-ignore + typeNullableUnknown: number; + // @ts-ignore + typePredNone: number; + // @ts-ignore + typePredChar: number; + // @ts-ignore + typePredBasic: number; + // @ts-ignore + typeSearchable: number; + // @ts-ignore + tableIndexStatistic: number; + // @ts-ignore + tableIndexClustered: number; + // @ts-ignore + tableIndexHashed: number; + // @ts-ignore + tableIndexOther: number; + // @ts-ignore + attributeNoNulls: number; + // @ts-ignore + attributeNullable: number; + // @ts-ignore + attributeNullableUnknown: number; + // @ts-ignore + sqlStateXOpen: number; + // @ts-ignore + sqlStateSQL: number; + // @ts-ignore + sqlStateSQL99: number; + // @ts-ignore + functionColumnUnknown: number; + // @ts-ignore + functionColumnIn: number; + // @ts-ignore + functionColumnInOut: number; + // @ts-ignore + functionColumnOut: number; + // @ts-ignore + functionReturn: number; + // @ts-ignore + functionColumnResult: number; + // @ts-ignore + functionNoNulls: number; + // @ts-ignore + functionNullable: number; + // @ts-ignore + functionNullableUnknown: number; + // @ts-ignore + functionResultUnknown: number; + // @ts-ignore + functionNoTable: number; + // @ts-ignore + functionReturnsTable: number; + /** + * Retrieves whether the current user can call all the procedures + * returned by the method getProcedures. + */ + // @ts-ignore + allProceduresAreCallable(): boolean; + /** + * Retrieves whether the current user can use all the tables returned + * by the method getTables in a SELECT + * statement. + */ + // @ts-ignore + allTablesAreSelectable(): boolean; + /** + * Retrieves the URL for this DBMS. + */ + // @ts-ignore + getURL(): string; + /** + * Retrieves the user name as known to this database. + */ + // @ts-ignore + getUserName(): string; + /** + * Retrieves whether this database is in read-only mode. + */ + // @ts-ignore + isReadOnly(): boolean; + /** + * Retrieves whether NULL values are sorted high. + * Sorted high means that NULL values + * sort higher than any other value in a domain. In an ascending order, + * if this method returns true, NULL values + * will appear at the end. By contrast, the method + * nullsAreSortedAtEnd indicates whether NULL values + * are sorted at the end regardless of sort order. + */ + // @ts-ignore + nullsAreSortedHigh(): boolean; + /** + * Retrieves whether NULL values are sorted low. + * Sorted low means that NULL values + * sort lower than any other value in a domain. In an ascending order, + * if this method returns true, NULL values + * will appear at the beginning. By contrast, the method + * nullsAreSortedAtStart indicates whether NULL values + * are sorted at the beginning regardless of sort order. + */ + // @ts-ignore + nullsAreSortedLow(): boolean; + /** + * Retrieves whether NULL values are sorted at the start regardless + * of sort order. + */ + // @ts-ignore + nullsAreSortedAtStart(): boolean; + /** + * Retrieves whether NULL values are sorted at the end regardless of + * sort order. + */ + // @ts-ignore + nullsAreSortedAtEnd(): boolean; + /** + * Retrieves the name of this database product. + */ + // @ts-ignore + getDatabaseProductName(): string; + /** + * Retrieves the version number of this database product. + */ + // @ts-ignore + getDatabaseProductVersion(): string; + /** + * Retrieves the name of this JDBC driver. + */ + // @ts-ignore + getDriverName(): string; + /** + * Retrieves the version number of this JDBC driver as a String. + */ + // @ts-ignore + getDriverVersion(): string; + /** + * Retrieves this JDBC driver's major version number. + */ + // @ts-ignore + getDriverMajorVersion(): number; + /** + * Retrieves this JDBC driver's minor version number. + */ + // @ts-ignore + getDriverMinorVersion(): number; + /** + * Retrieves whether this database stores tables in a local file. + */ + // @ts-ignore + usesLocalFiles(): boolean; + /** + * Retrieves whether this database uses a file for each table. + */ + // @ts-ignore + usesLocalFilePerTable(): boolean; + /** + * Retrieves whether this database treats mixed case unquoted SQL identifiers as + * case sensitive and as a result stores them in mixed case. + */ + // @ts-ignore + supportsMixedCaseIdentifiers(): boolean; + /** + * Retrieves whether this database treats mixed case unquoted SQL identifiers as + * case insensitive and stores them in upper case. + */ + // @ts-ignore + storesUpperCaseIdentifiers(): boolean; + /** + * Retrieves whether this database treats mixed case unquoted SQL identifiers as + * case insensitive and stores them in lower case. + */ + // @ts-ignore + storesLowerCaseIdentifiers(): boolean; + /** + * Retrieves whether this database treats mixed case unquoted SQL identifiers as + * case insensitive and stores them in mixed case. + */ + // @ts-ignore + storesMixedCaseIdentifiers(): boolean; + /** + * Retrieves whether this database treats mixed case quoted SQL identifiers as + * case sensitive and as a result stores them in mixed case. + */ + // @ts-ignore + supportsMixedCaseQuotedIdentifiers(): boolean; + /** + * Retrieves whether this database treats mixed case quoted SQL identifiers as + * case insensitive and stores them in upper case. + */ + // @ts-ignore + storesUpperCaseQuotedIdentifiers(): boolean; + /** + * Retrieves whether this database treats mixed case quoted SQL identifiers as + * case insensitive and stores them in lower case. + */ + // @ts-ignore + storesLowerCaseQuotedIdentifiers(): boolean; + /** + * Retrieves whether this database treats mixed case quoted SQL identifiers as + * case insensitive and stores them in mixed case. + */ + // @ts-ignore + storesMixedCaseQuotedIdentifiers(): boolean; + /** + * Retrieves the string used to quote SQL identifiers. + * This method returns a space " " if identifier quoting is not supported. + */ + // @ts-ignore + getIdentifierQuoteString(): string; + /** + * Retrieves a comma-separated list of all of this database's SQL keywords + * that are NOT also SQL:2003 keywords. + */ + // @ts-ignore + getSQLKeywords(): string; + /** + * Retrieves a comma-separated list of math functions available with + * this database. These are the Open /Open CLI math function names used in + * the JDBC function escape clause. + */ + // @ts-ignore + getNumericFunctions(): string; + /** + * Retrieves a comma-separated list of string functions available with + * this database. These are the Open Group CLI string function names used + * in the JDBC function escape clause. + */ + // @ts-ignore + getStringFunctions(): string; + /** + * Retrieves a comma-separated list of system functions available with + * this database. These are the Open Group CLI system function names used + * in the JDBC function escape clause. + */ + // @ts-ignore + getSystemFunctions(): string; + /** + * Retrieves a comma-separated list of the time and date functions available + * with this database. + */ + // @ts-ignore + getTimeDateFunctions(): string; + /** + * Retrieves the string that can be used to escape wildcard characters. + * This is the string that can be used to escape '_' or '%' in + * the catalog search parameters that are a pattern (and therefore use one + * of the wildcard characters). + *

The '_' character represents any single character; + * the '%' character represents any sequence of zero or + * more characters. + */ + // @ts-ignore + getSearchStringEscape(): string; + /** + * Retrieves all the "extra" characters that can be used in unquoted + * identifier names (those beyond a-z, A-Z, 0-9 and _). + */ + // @ts-ignore + getExtraNameCharacters(): string; + /** + * Retrieves whether this database supports ALTER TABLE + * with add column. + */ + // @ts-ignore + supportsAlterTableWithAddColumn(): boolean; + /** + * Retrieves whether this database supports ALTER TABLE + * with drop column. + */ + // @ts-ignore + supportsAlterTableWithDropColumn(): boolean; + /** + * Retrieves whether this database supports column aliasing. + *

If so, the SQL AS clause can be used to provide names for + * computed columns or to provide alias names for columns as + * required. + */ + // @ts-ignore + supportsColumnAliasing(): boolean; + /** + * Retrieves whether this database supports concatenations between + * NULL and non-NULL values being + * NULL. + */ + // @ts-ignore + nullPlusNonNullIsNull(): boolean; + /** + * Retrieves whether this database supports the JDBC scalar function + * CONVERT for the conversion of one JDBC type to another. + * The JDBC types are the generic SQL data types defined + * in java.sql.Types. + */ + // @ts-ignore + supportsConvert(): boolean; + /** + * Retrieves whether this database supports the JDBC scalar function + * CONVERT for conversions between the JDBC types fromType + * and toType. The JDBC types are the generic SQL data types defined + * in java.sql.Types. + */ + // @ts-ignore + supportsConvert(fromType: number, toType: number): boolean; + /** + * Retrieves whether this database supports table correlation names. + */ + // @ts-ignore + supportsTableCorrelationNames(): boolean; + /** + * Retrieves whether, when table correlation names are supported, they + * are restricted to being different from the names of the tables. + */ + // @ts-ignore + supportsDifferentTableCorrelationNames(): boolean; + /** + * Retrieves whether this database supports expressions in + * ORDER BY lists. + */ + // @ts-ignore + supportsExpressionsInOrderBy(): boolean; + /** + * Retrieves whether this database supports using a column that is + * not in the SELECT statement in an + * ORDER BY clause. + */ + // @ts-ignore + supportsOrderByUnrelated(): boolean; + /** + * Retrieves whether this database supports some form of + * GROUP BY clause. + */ + // @ts-ignore + supportsGroupBy(): boolean; + /** + * Retrieves whether this database supports using a column that is + * not in the SELECT statement in a + * GROUP BY clause. + */ + // @ts-ignore + supportsGroupByUnrelated(): boolean; + /** + * Retrieves whether this database supports using columns not included in + * the SELECT statement in a GROUP BY clause + * provided that all of the columns in the SELECT statement + * are included in the GROUP BY clause. + */ + // @ts-ignore + supportsGroupByBeyondSelect(): boolean; + /** + * Retrieves whether this database supports specifying a + * LIKE escape clause. + */ + // @ts-ignore + supportsLikeEscapeClause(): boolean; + /** + * Retrieves whether this database supports getting multiple + * ResultSet objects from a single call to the + * method execute. + */ + // @ts-ignore + supportsMultipleResultSets(): boolean; + /** + * Retrieves whether this database allows having multiple + * transactions open at once (on different connections). + */ + // @ts-ignore + supportsMultipleTransactions(): boolean; + /** + * Retrieves whether columns in this database may be defined as non-nullable. + */ + // @ts-ignore + supportsNonNullableColumns(): boolean; + /** + * Retrieves whether this database supports the ODBC Minimum SQL grammar. + */ + // @ts-ignore + supportsMinimumSQLGrammar(): boolean; + /** + * Retrieves whether this database supports the ODBC Core SQL grammar. + */ + // @ts-ignore + supportsCoreSQLGrammar(): boolean; + /** + * Retrieves whether this database supports the ODBC Extended SQL grammar. + */ + // @ts-ignore + supportsExtendedSQLGrammar(): boolean; + /** + * Retrieves whether this database supports the ANSI92 entry level SQL + * grammar. + */ + // @ts-ignore + supportsANSI92EntryLevelSQL(): boolean; + /** + * Retrieves whether this database supports the ANSI92 intermediate SQL grammar supported. + */ + // @ts-ignore + supportsANSI92IntermediateSQL(): boolean; + /** + * Retrieves whether this database supports the ANSI92 full SQL grammar supported. + */ + // @ts-ignore + supportsANSI92FullSQL(): boolean; + /** + * Retrieves whether this database supports the SQL Integrity + * Enhancement Facility. + */ + // @ts-ignore + supportsIntegrityEnhancementFacility(): boolean; + /** + * Retrieves whether this database supports some form of outer join. + */ + // @ts-ignore + supportsOuterJoins(): boolean; + /** + * Retrieves whether this database supports full nested outer joins. + */ + // @ts-ignore + supportsFullOuterJoins(): boolean; + /** + * Retrieves whether this database provides limited support for outer + * joins. (This will be true if the method + * supportsFullOuterJoins returns true). + */ + // @ts-ignore + supportsLimitedOuterJoins(): boolean; + /** + * Retrieves the database vendor's preferred term for "schema". + */ + // @ts-ignore + getSchemaTerm(): string; + /** + * Retrieves the database vendor's preferred term for "procedure". + */ + // @ts-ignore + getProcedureTerm(): string; + /** + * Retrieves the database vendor's preferred term for "catalog". + */ + // @ts-ignore + getCatalogTerm(): string; + /** + * Retrieves whether a catalog appears at the start of a fully qualified + * table name. If not, the catalog appears at the end. + */ + // @ts-ignore + isCatalogAtStart(): boolean; + /** + * Retrieves the String that this database uses as the + * separator between a catalog and table name. + */ + // @ts-ignore + getCatalogSeparator(): string; + /** + * Retrieves whether a schema name can be used in a data manipulation statement. + */ + // @ts-ignore + supportsSchemasInDataManipulation(): boolean; + /** + * Retrieves whether a schema name can be used in a procedure call statement. + */ + // @ts-ignore + supportsSchemasInProcedureCalls(): boolean; + /** + * Retrieves whether a schema name can be used in a table definition statement. + */ + // @ts-ignore + supportsSchemasInTableDefinitions(): boolean; + /** + * Retrieves whether a schema name can be used in an index definition statement. + */ + // @ts-ignore + supportsSchemasInIndexDefinitions(): boolean; + /** + * Retrieves whether a schema name can be used in a privilege definition statement. + */ + // @ts-ignore + supportsSchemasInPrivilegeDefinitions(): boolean; + /** + * Retrieves whether a catalog name can be used in a data manipulation statement. + */ + // @ts-ignore + supportsCatalogsInDataManipulation(): boolean; + /** + * Retrieves whether a catalog name can be used in a procedure call statement. + */ + // @ts-ignore + supportsCatalogsInProcedureCalls(): boolean; + /** + * Retrieves whether a catalog name can be used in a table definition statement. + */ + // @ts-ignore + supportsCatalogsInTableDefinitions(): boolean; + /** + * Retrieves whether a catalog name can be used in an index definition statement. + */ + // @ts-ignore + supportsCatalogsInIndexDefinitions(): boolean; + /** + * Retrieves whether a catalog name can be used in a privilege definition statement. + */ + // @ts-ignore + supportsCatalogsInPrivilegeDefinitions(): boolean; + /** + * Retrieves whether this database supports positioned DELETE + * statements. + */ + // @ts-ignore + supportsPositionedDelete(): boolean; + /** + * Retrieves whether this database supports positioned UPDATE + * statements. + */ + // @ts-ignore + supportsPositionedUpdate(): boolean; + /** + * Retrieves whether this database supports SELECT FOR UPDATE + * statements. + */ + // @ts-ignore + supportsSelectForUpdate(): boolean; + /** + * Retrieves whether this database supports stored procedure calls + * that use the stored procedure escape syntax. + */ + // @ts-ignore + supportsStoredProcedures(): boolean; + /** + * Retrieves whether this database supports subqueries in comparison + * expressions. + */ + // @ts-ignore + supportsSubqueriesInComparisons(): boolean; + /** + * Retrieves whether this database supports subqueries in + * EXISTS expressions. + */ + // @ts-ignore + supportsSubqueriesInExists(): boolean; + /** + * Retrieves whether this database supports subqueries in + * IN expressions. + */ + // @ts-ignore + supportsSubqueriesInIns(): boolean; + /** + * Retrieves whether this database supports subqueries in quantified + * expressions. + */ + // @ts-ignore + supportsSubqueriesInQuantifieds(): boolean; + /** + * Retrieves whether this database supports correlated subqueries. + */ + // @ts-ignore + supportsCorrelatedSubqueries(): boolean; + /** + * Retrieves whether this database supports SQL UNION. + */ + // @ts-ignore + supportsUnion(): boolean; + /** + * Retrieves whether this database supports SQL UNION ALL. + */ + // @ts-ignore + supportsUnionAll(): boolean; + /** + * Retrieves whether this database supports keeping cursors open + * across commits. + */ + // @ts-ignore + supportsOpenCursorsAcrossCommit(): boolean; + /** + * Retrieves whether this database supports keeping cursors open + * across rollbacks. + */ + // @ts-ignore + supportsOpenCursorsAcrossRollback(): boolean; + /** + * Retrieves whether this database supports keeping statements open + * across commits. + */ + // @ts-ignore + supportsOpenStatementsAcrossCommit(): boolean; + /** + * Retrieves whether this database supports keeping statements open + * across rollbacks. + */ + // @ts-ignore + supportsOpenStatementsAcrossRollback(): boolean; + /** + * Retrieves the maximum number of hex characters this database allows in an + * inline binary literal. + */ + // @ts-ignore + getMaxBinaryLiteralLength(): number; + /** + * Retrieves the maximum number of characters this database allows + * for a character literal. + */ + // @ts-ignore + getMaxCharLiteralLength(): number; + /** + * Retrieves the maximum number of characters this database allows + * for a column name. + */ + // @ts-ignore + getMaxColumnNameLength(): number; + /** + * Retrieves the maximum number of columns this database allows in a + * GROUP BY clause. + */ + // @ts-ignore + getMaxColumnsInGroupBy(): number; + /** + * Retrieves the maximum number of columns this database allows in an index. + */ + // @ts-ignore + getMaxColumnsInIndex(): number; + /** + * Retrieves the maximum number of columns this database allows in an + * ORDER BY clause. + */ + // @ts-ignore + getMaxColumnsInOrderBy(): number; + /** + * Retrieves the maximum number of columns this database allows in a + * SELECT list. + */ + // @ts-ignore + getMaxColumnsInSelect(): number; + /** + * Retrieves the maximum number of columns this database allows in a table. + */ + // @ts-ignore + getMaxColumnsInTable(): number; + /** + * Retrieves the maximum number of concurrent connections to this + * database that are possible. + */ + // @ts-ignore + getMaxConnections(): number; + /** + * Retrieves the maximum number of characters that this database allows in a + * cursor name. + */ + // @ts-ignore + getMaxCursorNameLength(): number; + /** + * Retrieves the maximum number of bytes this database allows for an + * index, including all of the parts of the index. + */ + // @ts-ignore + getMaxIndexLength(): number; + /** + * Retrieves the maximum number of characters that this database allows in a + * schema name. + */ + // @ts-ignore + getMaxSchemaNameLength(): number; + /** + * Retrieves the maximum number of characters that this database allows in a + * procedure name. + */ + // @ts-ignore + getMaxProcedureNameLength(): number; + /** + * Retrieves the maximum number of characters that this database allows in a + * catalog name. + */ + // @ts-ignore + getMaxCatalogNameLength(): number; + /** + * Retrieves the maximum number of bytes this database allows in + * a single row. + */ + // @ts-ignore + getMaxRowSize(): number; + /** + * Retrieves whether the return value for the method + * getMaxRowSize includes the SQL data types + * LONGVARCHAR and LONGVARBINARY. + */ + // @ts-ignore + doesMaxRowSizeIncludeBlobs(): boolean; + /** + * Retrieves the maximum number of characters this database allows in + * an SQL statement. + */ + // @ts-ignore + getMaxStatementLength(): number; + /** + * Retrieves the maximum number of active statements to this database + * that can be open at the same time. + */ + // @ts-ignore + getMaxStatements(): number; + /** + * Retrieves the maximum number of characters this database allows in + * a table name. + */ + // @ts-ignore + getMaxTableNameLength(): number; + /** + * Retrieves the maximum number of tables this database allows in a + * SELECT statement. + */ + // @ts-ignore + getMaxTablesInSelect(): number; + /** + * Retrieves the maximum number of characters this database allows in + * a user name. + */ + // @ts-ignore + getMaxUserNameLength(): number; + /** + * Retrieves this database's default transaction isolation level. The + * possible values are defined in java.sql.Connection. + */ + // @ts-ignore + getDefaultTransactionIsolation(): number; + /** + * Retrieves whether this database supports transactions. If not, invoking the + * method commit is a noop, and the isolation level is + * TRANSACTION_NONE. + */ + // @ts-ignore + supportsTransactions(): boolean; + /** + * Retrieves whether this database supports the given transaction isolation level. + */ + // @ts-ignore + supportsTransactionIsolationLevel(level: number): boolean; + /** + * Retrieves whether this database supports both data definition and + * data manipulation statements within a transaction. + */ + // @ts-ignore + supportsDataDefinitionAndDataManipulationTransactions(): boolean; + /** + * Retrieves whether this database supports only data manipulation + * statements within a transaction. + */ + // @ts-ignore + supportsDataManipulationTransactionsOnly(): boolean; + /** + * Retrieves whether a data definition statement within a transaction forces + * the transaction to commit. + */ + // @ts-ignore + dataDefinitionCausesTransactionCommit(): boolean; + /** + * Retrieves whether this database ignores a data definition statement + * within a transaction. + */ + // @ts-ignore + dataDefinitionIgnoredInTransactions(): boolean; + /** + * Retrieves a description of the stored procedures available in the given + * catalog. + *

+ * Only procedure descriptions matching the schema and + * procedure name criteria are returned. They are ordered by + * PROCEDURE_CAT, PROCEDURE_SCHEM, + * PROCEDURE_NAME and SPECIFIC_ NAME. + *

Each procedure description has the the following columns: + *

    + *
  1. PROCEDURE_CAT String {@code =>} procedure catalog (may be null) + *
  2. PROCEDURE_SCHEM String {@code =>} procedure schema (may be null) + *
  3. PROCEDURE_NAME String {@code =>} procedure name + *
  4. reserved for future use + *
  5. reserved for future use + *
  6. reserved for future use + *
  7. REMARKS String {@code =>} explanatory comment on the procedure + *
  8. PROCEDURE_TYPE short {@code =>} kind of procedure: + *
      + *
    • procedureResultUnknown - Cannot determine if a return value + * will be returned + *
    • procedureNoResult - Does not return a return value + *
    • procedureReturnsResult - Returns a return value + *
    + *
  9. SPECIFIC_NAME String {@code =>} The name which uniquely identifies this + * procedure within its schema. + *
+ *

+ * A user may not have permissions to execute any of the procedures that are + * returned by getProcedures + */ + // @ts-ignore + getProcedures(catalog: string, schemaPattern: string, procedureNamePattern: string): java.sql.ResultSet; + /** + * Retrieves a description of the given catalog's stored procedure parameter + * and result columns. + *

Only descriptions matching the schema, procedure and + * parameter name criteria are returned. They are ordered by + * PROCEDURE_CAT, PROCEDURE_SCHEM, PROCEDURE_NAME and SPECIFIC_NAME. Within this, the return value, + * if any, is first. Next are the parameter descriptions in call + * order. The column descriptions follow in column number order. + *

Each row in the ResultSet is a parameter description or + * column description with the following fields: + *

    + *
  1. PROCEDURE_CAT String {@code =>} procedure catalog (may be null) + *
  2. PROCEDURE_SCHEM String {@code =>} procedure schema (may be null) + *
  3. PROCEDURE_NAME String {@code =>} procedure name + *
  4. COLUMN_NAME String {@code =>} column/parameter name + *
  5. COLUMN_TYPE Short {@code =>} kind of column/parameter: + *
      + *
    • procedureColumnUnknown - nobody knows + *
    • procedureColumnIn - IN parameter + *
    • procedureColumnInOut - INOUT parameter + *
    • procedureColumnOut - OUT parameter + *
    • procedureColumnReturn - procedure return value + *
    • procedureColumnResult - result column in ResultSet + *
    + *
  6. DATA_TYPE int {@code =>} SQL type from java.sql.Types + *
  7. TYPE_NAME String {@code =>} SQL type name, for a UDT type the + * type name is fully qualified + *
  8. PRECISION int {@code =>} precision + *
  9. LENGTH int {@code =>} length in bytes of data + *
  10. SCALE short {@code =>} scale - null is returned for data types where + * SCALE is not applicable. + *
  11. RADIX short {@code =>} radix + *
  12. NULLABLE short {@code =>} can it contain NULL. + *
      + *
    • procedureNoNulls - does not allow NULL values + *
    • procedureNullable - allows NULL values + *
    • procedureNullableUnknown - nullability unknown + *
    + *
  13. REMARKS String {@code =>} comment describing parameter/column + *
  14. COLUMN_DEF String {@code =>} default value for the column, which should be interpreted as a string when the value is enclosed in single quotes (may be null) + *
      + *
    • The string NULL (not enclosed in quotes) - if NULL was specified as the default value + *
    • TRUNCATE (not enclosed in quotes) - if the specified default value cannot be represented without truncation + *
    • NULL - if a default value was not specified + *
    + *
  15. SQL_DATA_TYPE int {@code =>} reserved for future use + *
  16. SQL_DATETIME_SUB int {@code =>} reserved for future use + *
  17. CHAR_OCTET_LENGTH int {@code =>} the maximum length of binary and character based columns. For any other datatype the returned value is a + * NULL + *
  18. ORDINAL_POSITION int {@code =>} the ordinal position, starting from 1, for the input and output parameters for a procedure. A value of 0 + * is returned if this row describes the procedure's return value. For result set columns, it is the + * ordinal position of the column in the result set starting from 1. If there are + * multiple result sets, the column ordinal positions are implementation + * defined. + *
  19. IS_NULLABLE String {@code =>} ISO rules are used to determine the nullability for a column. + *
      + *
    • YES --- if the column can include NULLs + *
    • NO --- if the column cannot include NULLs + *
    • empty string --- if the nullability for the + * column is unknown + *
    + *
  20. SPECIFIC_NAME String {@code =>} the name which uniquely identifies this procedure within its schema. + *
+ *

Note: Some databases may not return the column + * descriptions for a procedure. + *

The PRECISION column represents the specified column size for the given column. + * For numeric data, this is the maximum precision. For character data, this is the length in characters. + * For datetime datatypes, this is the length in characters of the String representation (assuming the + * maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For the ROWID datatype, + * this is the length in bytes. Null is returned for data types where the + * column size is not applicable. + */ + // @ts-ignore + getProcedureColumns(catalog: string, schemaPattern: string, procedureNamePattern: string, columnNamePattern: string): java.sql.ResultSet; + /** + * Retrieves a description of the tables available in the given catalog. + * Only table descriptions matching the catalog, schema, table + * name and type criteria are returned. They are ordered by + * TABLE_TYPE, TABLE_CAT, + * TABLE_SCHEM and TABLE_NAME. + *

+ * Each table description has the following columns: + *

    + *
  1. TABLE_CAT String {@code =>} table catalog (may be null) + *
  2. TABLE_SCHEM String {@code =>} table schema (may be null) + *
  3. TABLE_NAME String {@code =>} table name + *
  4. TABLE_TYPE String {@code =>} table type. Typical types are "TABLE", + * "VIEW", "SYSTEM TABLE", "GLOBAL TEMPORARY", + * "LOCAL TEMPORARY", "ALIAS", "SYNONYM". + *
  5. REMARKS String {@code =>} explanatory comment on the table + *
  6. TYPE_CAT String {@code =>} the types catalog (may be null) + *
  7. TYPE_SCHEM String {@code =>} the types schema (may be null) + *
  8. TYPE_NAME String {@code =>} type name (may be null) + *
  9. SELF_REFERENCING_COL_NAME String {@code =>} name of the designated + * "identifier" column of a typed table (may be null) + *
  10. REF_GENERATION String {@code =>} specifies how values in + * SELF_REFERENCING_COL_NAME are created. Values are + * "SYSTEM", "USER", "DERIVED". (may be null) + *
+ *

Note: Some databases may not return information for + * all tables. + */ + // @ts-ignore + getTables(catalog: string, schemaPattern: string, tableNamePattern: string, types: string): java.sql.ResultSet; + /** + * Retrieves the schema names available in this database. The results + * are ordered by TABLE_CATALOG and + * TABLE_SCHEM. + *

The schema columns are: + *

    + *
  1. TABLE_SCHEM String {@code =>} schema name + *
  2. TABLE_CATALOG String {@code =>} catalog name (may be null) + *
+ */ + // @ts-ignore + getSchemas(): java.sql.ResultSet; + /** + * Retrieves the catalog names available in this database. The results + * are ordered by catalog name. + *

The catalog column is: + *

    + *
  1. TABLE_CAT String {@code =>} catalog name + *
+ */ + // @ts-ignore + getCatalogs(): java.sql.ResultSet; + /** + * Retrieves the table types available in this database. The results + * are ordered by table type. + *

The table type is: + *

    + *
  1. TABLE_TYPE String {@code =>} table type. Typical types are "TABLE", + * "VIEW", "SYSTEM TABLE", "GLOBAL TEMPORARY", + * "LOCAL TEMPORARY", "ALIAS", "SYNONYM". + *
+ */ + // @ts-ignore + getTableTypes(): java.sql.ResultSet; + /** + * Retrieves a description of table columns available in + * the specified catalog. + *

Only column descriptions matching the catalog, schema, table + * and column name criteria are returned. They are ordered by + * TABLE_CAT,TABLE_SCHEM, + * TABLE_NAME, and ORDINAL_POSITION. + *

Each column description has the following columns: + *

    + *
  1. TABLE_CAT String {@code =>} table catalog (may be null) + *
  2. TABLE_SCHEM String {@code =>} table schema (may be null) + *
  3. TABLE_NAME String {@code =>} table name + *
  4. COLUMN_NAME String {@code =>} column name + *
  5. DATA_TYPE int {@code =>} SQL type from java.sql.Types + *
  6. TYPE_NAME String {@code =>} Data source dependent type name, + * for a UDT the type name is fully qualified + *
  7. COLUMN_SIZE int {@code =>} column size. + *
  8. BUFFER_LENGTH is not used. + *
  9. DECIMAL_DIGITS int {@code =>} the number of fractional digits. Null is returned for data types where + * DECIMAL_DIGITS is not applicable. + *
  10. NUM_PREC_RADIX int {@code =>} Radix (typically either 10 or 2) + *
  11. NULLABLE int {@code =>} is NULL allowed. + *
      + *
    • columnNoNulls - might not allow NULL values + *
    • columnNullable - definitely allows NULL values + *
    • columnNullableUnknown - nullability unknown + *
    + *
  12. REMARKS String {@code =>} comment describing column (may be null) + *
  13. COLUMN_DEF String {@code =>} default value for the column, which should be interpreted as a string when the value is enclosed in single quotes (may be null) + *
  14. SQL_DATA_TYPE int {@code =>} unused + *
  15. SQL_DATETIME_SUB int {@code =>} unused + *
  16. CHAR_OCTET_LENGTH int {@code =>} for char types the + * maximum number of bytes in the column + *
  17. ORDINAL_POSITION int {@code =>} index of column in table + * (starting at 1) + *
  18. IS_NULLABLE String {@code =>} ISO rules are used to determine the nullability for a column. + *
      + *
    • YES --- if the column can include NULLs + *
    • NO --- if the column cannot include NULLs + *
    • empty string --- if the nullability for the + * column is unknown + *
    + *
  19. SCOPE_CATALOG String {@code =>} catalog of table that is the scope + * of a reference attribute (null if DATA_TYPE isn't REF) + *
  20. SCOPE_SCHEMA String {@code =>} schema of table that is the scope + * of a reference attribute (null if the DATA_TYPE isn't REF) + *
  21. SCOPE_TABLE String {@code =>} table name that this the scope + * of a reference attribute (null if the DATA_TYPE isn't REF) + *
  22. SOURCE_DATA_TYPE short {@code =>} source type of a distinct type or user-generated + * Ref type, SQL type from java.sql.Types (null if DATA_TYPE + * isn't DISTINCT or user-generated REF) + *
  23. IS_AUTOINCREMENT String {@code =>} Indicates whether this column is auto incremented + *
      + *
    • YES --- if the column is auto incremented + *
    • NO --- if the column is not auto incremented + *
    • empty string --- if it cannot be determined whether the column is auto incremented + *
    + *
  24. IS_GENERATEDCOLUMN String {@code =>} Indicates whether this is a generated column + *
      + *
    • YES --- if this a generated column + *
    • NO --- if this not a generated column + *
    • empty string --- if it cannot be determined whether this is a generated column + *
    + *
+ *

The COLUMN_SIZE column specifies the column size for the given column. + * For numeric data, this is the maximum precision. For character data, this is the length in characters. + * For datetime datatypes, this is the length in characters of the String representation (assuming the + * maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For the ROWID datatype, + * this is the length in bytes. Null is returned for data types where the + * column size is not applicable. + */ + // @ts-ignore + getColumns(catalog: string, schemaPattern: string, tableNamePattern: string, columnNamePattern: string): java.sql.ResultSet; + /** + * Retrieves a description of the access rights for a table's columns. + *

Only privileges matching the column name criteria are + * returned. They are ordered by COLUMN_NAME and PRIVILEGE. + *

Each privilege description has the following columns: + *

    + *
  1. TABLE_CAT String {@code =>} table catalog (may be null) + *
  2. TABLE_SCHEM String {@code =>} table schema (may be null) + *
  3. TABLE_NAME String {@code =>} table name + *
  4. COLUMN_NAME String {@code =>} column name + *
  5. GRANTOR String {@code =>} grantor of access (may be null) + *
  6. GRANTEE String {@code =>} grantee of access + *
  7. PRIVILEGE String {@code =>} name of access (SELECT, + * INSERT, UPDATE, REFRENCES, ...) + *
  8. IS_GRANTABLE String {@code =>} "YES" if grantee is permitted + * to grant to others; "NO" if not; null if unknown + *
+ */ + // @ts-ignore + getColumnPrivileges(catalog: string, schema: string, table: string, columnNamePattern: string): java.sql.ResultSet; + /** + * Retrieves a description of the access rights for each table available + * in a catalog. Note that a table privilege applies to one or + * more columns in the table. It would be wrong to assume that + * this privilege applies to all columns (this may be true for + * some systems but is not true for all.) + *

Only privileges matching the schema and table name + * criteria are returned. They are ordered by + * TABLE_CAT, + * TABLE_SCHEM, TABLE_NAME, + * and PRIVILEGE. + *

Each privilege description has the following columns: + *

    + *
  1. TABLE_CAT String {@code =>} table catalog (may be null) + *
  2. TABLE_SCHEM String {@code =>} table schema (may be null) + *
  3. TABLE_NAME String {@code =>} table name + *
  4. GRANTOR String {@code =>} grantor of access (may be null) + *
  5. GRANTEE String {@code =>} grantee of access + *
  6. PRIVILEGE String {@code =>} name of access (SELECT, + * INSERT, UPDATE, REFRENCES, ...) + *
  7. IS_GRANTABLE String {@code =>} "YES" if grantee is permitted + * to grant to others; "NO" if not; null if unknown + *
+ */ + // @ts-ignore + getTablePrivileges(catalog: string, schemaPattern: string, tableNamePattern: string): java.sql.ResultSet; + /** + * Retrieves a description of a table's optimal set of columns that + * uniquely identifies a row. They are ordered by SCOPE. + *

Each column description has the following columns: + *

    + *
  1. SCOPE short {@code =>} actual scope of result + *
      + *
    • bestRowTemporary - very temporary, while using row + *
    • bestRowTransaction - valid for remainder of current transaction + *
    • bestRowSession - valid for remainder of current session + *
    + *
  2. COLUMN_NAME String {@code =>} column name + *
  3. DATA_TYPE int {@code =>} SQL data type from java.sql.Types + *
  4. TYPE_NAME String {@code =>} Data source dependent type name, + * for a UDT the type name is fully qualified + *
  5. COLUMN_SIZE int {@code =>} precision + *
  6. BUFFER_LENGTH int {@code =>} not used + *
  7. DECIMAL_DIGITS short {@code =>} scale - Null is returned for data types where + * DECIMAL_DIGITS is not applicable. + *
  8. PSEUDO_COLUMN short {@code =>} is this a pseudo column + * like an Oracle ROWID + *
      + *
    • bestRowUnknown - may or may not be pseudo column + *
    • bestRowNotPseudo - is NOT a pseudo column + *
    • bestRowPseudo - is a pseudo column + *
    + *
+ *

The COLUMN_SIZE column represents the specified column size for the given column. + * For numeric data, this is the maximum precision. For character data, this is the length in characters. + * For datetime datatypes, this is the length in characters of the String representation (assuming the + * maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For the ROWID datatype, + * this is the length in bytes. Null is returned for data types where the + * column size is not applicable. + */ + // @ts-ignore + getBestRowIdentifier(catalog: string, schema: string, table: string, scope: number, nullable: boolean): java.sql.ResultSet; + /** + * Retrieves a description of a table's columns that are automatically + * updated when any value in a row is updated. They are + * unordered. + *

Each column description has the following columns: + *

    + *
  1. SCOPE short {@code =>} is not used + *
  2. COLUMN_NAME String {@code =>} column name + *
  3. DATA_TYPE int {@code =>} SQL data type from java.sql.Types + *
  4. TYPE_NAME String {@code =>} Data source-dependent type name + *
  5. COLUMN_SIZE int {@code =>} precision + *
  6. BUFFER_LENGTH int {@code =>} length of column value in bytes + *
  7. DECIMAL_DIGITS short {@code =>} scale - Null is returned for data types where + * DECIMAL_DIGITS is not applicable. + *
  8. PSEUDO_COLUMN short {@code =>} whether this is pseudo column + * like an Oracle ROWID + *
      + *
    • versionColumnUnknown - may or may not be pseudo column + *
    • versionColumnNotPseudo - is NOT a pseudo column + *
    • versionColumnPseudo - is a pseudo column + *
    + *
+ *

The COLUMN_SIZE column represents the specified column size for the given column. + * For numeric data, this is the maximum precision. For character data, this is the length in characters. + * For datetime datatypes, this is the length in characters of the String representation (assuming the + * maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For the ROWID datatype, + * this is the length in bytes. Null is returned for data types where the + * column size is not applicable. + */ + // @ts-ignore + getVersionColumns(catalog: string, schema: string, table: string): java.sql.ResultSet; + /** + * Retrieves a description of the given table's primary key columns. They + * are ordered by COLUMN_NAME. + *

Each primary key column description has the following columns: + *

    + *
  1. TABLE_CAT String {@code =>} table catalog (may be null) + *
  2. TABLE_SCHEM String {@code =>} table schema (may be null) + *
  3. TABLE_NAME String {@code =>} table name + *
  4. COLUMN_NAME String {@code =>} column name + *
  5. KEY_SEQ short {@code =>} sequence number within primary key( a value + * of 1 represents the first column of the primary key, a value of 2 would + * represent the second column within the primary key). + *
  6. PK_NAME String {@code =>} primary key name (may be null) + *
+ */ + // @ts-ignore + getPrimaryKeys(catalog: string, schema: string, table: string): java.sql.ResultSet; + /** + * Retrieves a description of the primary key columns that are + * referenced by the given table's foreign key columns (the primary keys + * imported by a table). They are ordered by PKTABLE_CAT, + * PKTABLE_SCHEM, PKTABLE_NAME, and KEY_SEQ. + *

Each primary key column description has the following columns: + *

    + *
  1. PKTABLE_CAT String {@code =>} primary key table catalog + * being imported (may be null) + *
  2. PKTABLE_SCHEM String {@code =>} primary key table schema + * being imported (may be null) + *
  3. PKTABLE_NAME String {@code =>} primary key table name + * being imported + *
  4. PKCOLUMN_NAME String {@code =>} primary key column name + * being imported + *
  5. FKTABLE_CAT String {@code =>} foreign key table catalog (may be null) + *
  6. FKTABLE_SCHEM String {@code =>} foreign key table schema (may be null) + *
  7. FKTABLE_NAME String {@code =>} foreign key table name + *
  8. FKCOLUMN_NAME String {@code =>} foreign key column name + *
  9. KEY_SEQ short {@code =>} sequence number within a foreign key( a value + * of 1 represents the first column of the foreign key, a value of 2 would + * represent the second column within the foreign key). + *
  10. UPDATE_RULE short {@code =>} What happens to a + * foreign key when the primary key is updated: + *
      + *
    • importedNoAction - do not allow update of primary + * key if it has been imported + *
    • importedKeyCascade - change imported key to agree + * with primary key update + *
    • importedKeySetNull - change imported key to NULL + * if its primary key has been updated + *
    • importedKeySetDefault - change imported key to default values + * if its primary key has been updated + *
    • importedKeyRestrict - same as importedKeyNoAction + * (for ODBC 2.x compatibility) + *
    + *
  11. DELETE_RULE short {@code =>} What happens to + * the foreign key when primary is deleted. + *
      + *
    • importedKeyNoAction - do not allow delete of primary + * key if it has been imported + *
    • importedKeyCascade - delete rows that import a deleted key + *
    • importedKeySetNull - change imported key to NULL if + * its primary key has been deleted + *
    • importedKeyRestrict - same as importedKeyNoAction + * (for ODBC 2.x compatibility) + *
    • importedKeySetDefault - change imported key to default if + * its primary key has been deleted + *
    + *
  12. FK_NAME String {@code =>} foreign key name (may be null) + *
  13. PK_NAME String {@code =>} primary key name (may be null) + *
  14. DEFERRABILITY short {@code =>} can the evaluation of foreign key + * constraints be deferred until commit + *
      + *
    • importedKeyInitiallyDeferred - see SQL92 for definition + *
    • importedKeyInitiallyImmediate - see SQL92 for definition + *
    • importedKeyNotDeferrable - see SQL92 for definition + *
    + *
+ */ + // @ts-ignore + getImportedKeys(catalog: string, schema: string, table: string): java.sql.ResultSet; + /** + * Retrieves a description of the foreign key columns that reference the + * given table's primary key columns (the foreign keys exported by a + * table). They are ordered by FKTABLE_CAT, FKTABLE_SCHEM, + * FKTABLE_NAME, and KEY_SEQ. + *

Each foreign key column description has the following columns: + *

    + *
  1. PKTABLE_CAT String {@code =>} primary key table catalog (may be null) + *
  2. PKTABLE_SCHEM String {@code =>} primary key table schema (may be null) + *
  3. PKTABLE_NAME String {@code =>} primary key table name + *
  4. PKCOLUMN_NAME String {@code =>} primary key column name + *
  5. FKTABLE_CAT String {@code =>} foreign key table catalog (may be null) + * being exported (may be null) + *
  6. FKTABLE_SCHEM String {@code =>} foreign key table schema (may be null) + * being exported (may be null) + *
  7. FKTABLE_NAME String {@code =>} foreign key table name + * being exported + *
  8. FKCOLUMN_NAME String {@code =>} foreign key column name + * being exported + *
  9. KEY_SEQ short {@code =>} sequence number within foreign key( a value + * of 1 represents the first column of the foreign key, a value of 2 would + * represent the second column within the foreign key). + *
  10. UPDATE_RULE short {@code =>} What happens to + * foreign key when primary is updated: + *
      + *
    • importedNoAction - do not allow update of primary + * key if it has been imported + *
    • importedKeyCascade - change imported key to agree + * with primary key update + *
    • importedKeySetNull - change imported key to NULL if + * its primary key has been updated + *
    • importedKeySetDefault - change imported key to default values + * if its primary key has been updated + *
    • importedKeyRestrict - same as importedKeyNoAction + * (for ODBC 2.x compatibility) + *
    + *
  11. DELETE_RULE short {@code =>} What happens to + * the foreign key when primary is deleted. + *
      + *
    • importedKeyNoAction - do not allow delete of primary + * key if it has been imported + *
    • importedKeyCascade - delete rows that import a deleted key + *
    • importedKeySetNull - change imported key to NULL if + * its primary key has been deleted + *
    • importedKeyRestrict - same as importedKeyNoAction + * (for ODBC 2.x compatibility) + *
    • importedKeySetDefault - change imported key to default if + * its primary key has been deleted + *
    + *
  12. FK_NAME String {@code =>} foreign key name (may be null) + *
  13. PK_NAME String {@code =>} primary key name (may be null) + *
  14. DEFERRABILITY short {@code =>} can the evaluation of foreign key + * constraints be deferred until commit + *
      + *
    • importedKeyInitiallyDeferred - see SQL92 for definition + *
    • importedKeyInitiallyImmediate - see SQL92 for definition + *
    • importedKeyNotDeferrable - see SQL92 for definition + *
    + *
+ */ + // @ts-ignore + getExportedKeys(catalog: string, schema: string, table: string): java.sql.ResultSet; + /** + * Retrieves a description of the foreign key columns in the given foreign key + * table that reference the primary key or the columns representing a unique constraint of the parent table (could be the same or a different table). + * The number of columns returned from the parent table must match the number of + * columns that make up the foreign key. They + * are ordered by FKTABLE_CAT, FKTABLE_SCHEM, FKTABLE_NAME, and + * KEY_SEQ. + *

Each foreign key column description has the following columns: + *

    + *
  1. PKTABLE_CAT String {@code =>} parent key table catalog (may be null) + *
  2. PKTABLE_SCHEM String {@code =>} parent key table schema (may be null) + *
  3. PKTABLE_NAME String {@code =>} parent key table name + *
  4. PKCOLUMN_NAME String {@code =>} parent key column name + *
  5. FKTABLE_CAT String {@code =>} foreign key table catalog (may be null) + * being exported (may be null) + *
  6. FKTABLE_SCHEM String {@code =>} foreign key table schema (may be null) + * being exported (may be null) + *
  7. FKTABLE_NAME String {@code =>} foreign key table name + * being exported + *
  8. FKCOLUMN_NAME String {@code =>} foreign key column name + * being exported + *
  9. KEY_SEQ short {@code =>} sequence number within foreign key( a value + * of 1 represents the first column of the foreign key, a value of 2 would + * represent the second column within the foreign key). + *
  10. UPDATE_RULE short {@code =>} What happens to + * foreign key when parent key is updated: + *
      + *
    • importedNoAction - do not allow update of parent + * key if it has been imported + *
    • importedKeyCascade - change imported key to agree + * with parent key update + *
    • importedKeySetNull - change imported key to NULL if + * its parent key has been updated + *
    • importedKeySetDefault - change imported key to default values + * if its parent key has been updated + *
    • importedKeyRestrict - same as importedKeyNoAction + * (for ODBC 2.x compatibility) + *
    + *
  11. DELETE_RULE short {@code =>} What happens to + * the foreign key when parent key is deleted. + *
      + *
    • importedKeyNoAction - do not allow delete of parent + * key if it has been imported + *
    • importedKeyCascade - delete rows that import a deleted key + *
    • importedKeySetNull - change imported key to NULL if + * its primary key has been deleted + *
    • importedKeyRestrict - same as importedKeyNoAction + * (for ODBC 2.x compatibility) + *
    • importedKeySetDefault - change imported key to default if + * its parent key has been deleted + *
    + *
  12. FK_NAME String {@code =>} foreign key name (may be null) + *
  13. PK_NAME String {@code =>} parent key name (may be null) + *
  14. DEFERRABILITY short {@code =>} can the evaluation of foreign key + * constraints be deferred until commit + *
      + *
    • importedKeyInitiallyDeferred - see SQL92 for definition + *
    • importedKeyInitiallyImmediate - see SQL92 for definition + *
    • importedKeyNotDeferrable - see SQL92 for definition + *
    + *
+ */ + // @ts-ignore + getCrossReference(parentCatalog: string, parentSchema: string, parentTable: string, foreignCatalog: string, foreignSchema: string, foreignTable: string): java.sql.ResultSet; + /** + * Retrieves a description of all the data types supported by + * this database. They are ordered by DATA_TYPE and then by how + * closely the data type maps to the corresponding JDBC SQL type. + *

If the database supports SQL distinct types, then getTypeInfo() will return + * a single row with a TYPE_NAME of DISTINCT and a DATA_TYPE of Types.DISTINCT. + * If the database supports SQL structured types, then getTypeInfo() will return + * a single row with a TYPE_NAME of STRUCT and a DATA_TYPE of Types.STRUCT. + *

If SQL distinct or structured types are supported, then information on the + * individual types may be obtained from the getUDTs() method. + *

Each type description has the following columns: + *

    + *
  1. TYPE_NAME String {@code =>} Type name + *
  2. DATA_TYPE int {@code =>} SQL data type from java.sql.Types + *
  3. PRECISION int {@code =>} maximum precision + *
  4. LITERAL_PREFIX String {@code =>} prefix used to quote a literal + * (may be null) + *
  5. LITERAL_SUFFIX String {@code =>} suffix used to quote a literal + * (may be null) + *
  6. CREATE_PARAMS String {@code =>} parameters used in creating + * the type (may be null) + *
  7. NULLABLE short {@code =>} can you use NULL for this type. + *
      + *
    • typeNoNulls - does not allow NULL values + *
    • typeNullable - allows NULL values + *
    • typeNullableUnknown - nullability unknown + *
    + *
  8. CASE_SENSITIVE boolean{@code =>} is it case sensitive. + *
  9. SEARCHABLE short {@code =>} can you use "WHERE" based on this type: + *
      + *
    • typePredNone - No support + *
    • typePredChar - Only supported with WHERE .. LIKE + *
    • typePredBasic - Supported except for WHERE .. LIKE + *
    • typeSearchable - Supported for all WHERE .. + *
    + *
  10. UNSIGNED_ATTRIBUTE boolean {@code =>} is it unsigned. + *
  11. FIXED_PREC_SCALE boolean {@code =>} can it be a money value. + *
  12. AUTO_INCREMENT boolean {@code =>} can it be used for an + * auto-increment value. + *
  13. LOCAL_TYPE_NAME String {@code =>} localized version of type name + * (may be null) + *
  14. MINIMUM_SCALE short {@code =>} minimum scale supported + *
  15. MAXIMUM_SCALE short {@code =>} maximum scale supported + *
  16. SQL_DATA_TYPE int {@code =>} unused + *
  17. SQL_DATETIME_SUB int {@code =>} unused + *
  18. NUM_PREC_RADIX int {@code =>} usually 2 or 10 + *
+ *

The PRECISION column represents the maximum column size that the server supports for the given datatype. + * For numeric data, this is the maximum precision. For character data, this is the length in characters. + * For datetime datatypes, this is the length in characters of the String representation (assuming the + * maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For the ROWID datatype, + * this is the length in bytes. Null is returned for data types where the + * column size is not applicable. + */ + // @ts-ignore + getTypeInfo(): java.sql.ResultSet; + /** + * Retrieves a description of the given table's indices and statistics. They are + * ordered by NON_UNIQUE, TYPE, INDEX_NAME, and ORDINAL_POSITION. + *

Each index column description has the following columns: + *

    + *
  1. TABLE_CAT String {@code =>} table catalog (may be null) + *
  2. TABLE_SCHEM String {@code =>} table schema (may be null) + *
  3. TABLE_NAME String {@code =>} table name + *
  4. NON_UNIQUE boolean {@code =>} Can index values be non-unique. + * false when TYPE is tableIndexStatistic + *
  5. INDEX_QUALIFIER String {@code =>} index catalog (may be null); + * null when TYPE is tableIndexStatistic + *
  6. INDEX_NAME String {@code =>} index name; null when TYPE is + * tableIndexStatistic + *
  7. TYPE short {@code =>} index type: + *
      + *
    • tableIndexStatistic - this identifies table statistics that are + * returned in conjuction with a table's index descriptions + *
    • tableIndexClustered - this is a clustered index + *
    • tableIndexHashed - this is a hashed index + *
    • tableIndexOther - this is some other style of index + *
    + *
  8. ORDINAL_POSITION short {@code =>} column sequence number + * within index; zero when TYPE is tableIndexStatistic + *
  9. COLUMN_NAME String {@code =>} column name; null when TYPE is + * tableIndexStatistic + *
  10. ASC_OR_DESC String {@code =>} column sort sequence, "A" {@code =>} ascending, + * "D" {@code =>} descending, may be null if sort sequence is not supported; + * null when TYPE is tableIndexStatistic + *
  11. CARDINALITY long {@code =>} When TYPE is tableIndexStatistic, then + * this is the number of rows in the table; otherwise, it is the + * number of unique values in the index. + *
  12. PAGES long {@code =>} When TYPE is tableIndexStatisic then + * this is the number of pages used for the table, otherwise it + * is the number of pages used for the current index. + *
  13. FILTER_CONDITION String {@code =>} Filter condition, if any. + * (may be null) + *
+ */ + // @ts-ignore + getIndexInfo(catalog: string, schema: string, table: string, unique: boolean, approximate: boolean): java.sql.ResultSet; + /** + * Retrieves whether this database supports the given result set type. + */ + // @ts-ignore + supportsResultSetType(type: number): boolean; + /** + * Retrieves whether this database supports the given concurrency type + * in combination with the given result set type. + */ + // @ts-ignore + supportsResultSetConcurrency(type: number, concurrency: number): boolean; + /** + * Retrieves whether for the given type of ResultSet object, + * the result set's own updates are visible. + */ + // @ts-ignore + ownUpdatesAreVisible(type: number): boolean; + /** + * Retrieves whether a result set's own deletes are visible. + */ + // @ts-ignore + ownDeletesAreVisible(type: number): boolean; + /** + * Retrieves whether a result set's own inserts are visible. + */ + // @ts-ignore + ownInsertsAreVisible(type: number): boolean; + /** + * Retrieves whether updates made by others are visible. + */ + // @ts-ignore + othersUpdatesAreVisible(type: number): boolean; + /** + * Retrieves whether deletes made by others are visible. + */ + // @ts-ignore + othersDeletesAreVisible(type: number): boolean; + /** + * Retrieves whether inserts made by others are visible. + */ + // @ts-ignore + othersInsertsAreVisible(type: number): boolean; + /** + * Retrieves whether or not a visible row update can be detected by + * calling the method ResultSet.rowUpdated. + */ + // @ts-ignore + updatesAreDetected(type: number): boolean; + /** + * Retrieves whether or not a visible row delete can be detected by + * calling the method ResultSet.rowDeleted. If the method + * deletesAreDetected returns false, it means that + * deleted rows are removed from the result set. + */ + // @ts-ignore + deletesAreDetected(type: number): boolean; + /** + * Retrieves whether or not a visible row insert can be detected + * by calling the method ResultSet.rowInserted. + */ + // @ts-ignore + insertsAreDetected(type: number): boolean; + /** + * Retrieves whether this database supports batch updates. + */ + // @ts-ignore + supportsBatchUpdates(): boolean; + /** + * Retrieves a description of the user-defined types (UDTs) defined + * in a particular schema. Schema-specific UDTs may have type + * JAVA_OBJECT, STRUCT, + * or DISTINCT. + *

Only types matching the catalog, schema, type name and type + * criteria are returned. They are ordered by DATA_TYPE, + * TYPE_CAT, TYPE_SCHEM and + * TYPE_NAME. The type name parameter may be a fully-qualified + * name. In this case, the catalog and schemaPattern parameters are + * ignored. + *

Each type description has the following columns: + *

    + *
  1. TYPE_CAT String {@code =>} the type's catalog (may be null) + *
  2. TYPE_SCHEM String {@code =>} type's schema (may be null) + *
  3. TYPE_NAME String {@code =>} type name + *
  4. CLASS_NAME String {@code =>} Java class name + *
  5. DATA_TYPE int {@code =>} type value defined in java.sql.Types. + * One of JAVA_OBJECT, STRUCT, or DISTINCT + *
  6. REMARKS String {@code =>} explanatory comment on the type + *
  7. BASE_TYPE short {@code =>} type code of the source type of a + * DISTINCT type or the type that implements the user-generated + * reference type of the SELF_REFERENCING_COLUMN of a structured + * type as defined in java.sql.Types (null if DATA_TYPE is not + * DISTINCT or not STRUCT with REFERENCE_GENERATION = USER_DEFINED) + *
+ *

Note: If the driver does not support UDTs, an empty + * result set is returned. + */ + // @ts-ignore + getUDTs(catalog: string, schemaPattern: string, typeNamePattern: string, types: number): java.sql.ResultSet; + /** + * Retrieves the connection that produced this metadata object. + *

+ */ + // @ts-ignore + getConnection(): java.sql.Connection; + /** + * Retrieves whether this database supports savepoints. + */ + // @ts-ignore + supportsSavepoints(): boolean; + /** + * Retrieves whether this database supports named parameters to callable + * statements. + */ + // @ts-ignore + supportsNamedParameters(): boolean; + /** + * Retrieves whether it is possible to have multiple ResultSet objects + * returned from a CallableStatement object + * simultaneously. + */ + // @ts-ignore + supportsMultipleOpenResults(): boolean; + /** + * Retrieves whether auto-generated keys can be retrieved after + * a statement has been executed + */ + // @ts-ignore + supportsGetGeneratedKeys(): boolean; + /** + * Retrieves a description of the user-defined type (UDT) hierarchies defined in a + * particular schema in this database. Only the immediate super type/ + * sub type relationship is modeled. + *

+ * Only supertype information for UDTs matching the catalog, + * schema, and type name is returned. The type name parameter + * may be a fully-qualified name. When the UDT name supplied is a + * fully-qualified name, the catalog and schemaPattern parameters are + * ignored. + *

+ * If a UDT does not have a direct super type, it is not listed here. + * A row of the ResultSet object returned by this method + * describes the designated UDT and a direct supertype. A row has the following + * columns: + *

    + *
  1. TYPE_CAT String {@code =>} the UDT's catalog (may be null) + *
  2. TYPE_SCHEM String {@code =>} UDT's schema (may be null) + *
  3. TYPE_NAME String {@code =>} type name of the UDT + *
  4. SUPERTYPE_CAT String {@code =>} the direct super type's catalog + * (may be null) + *
  5. SUPERTYPE_SCHEM String {@code =>} the direct super type's schema + * (may be null) + *
  6. SUPERTYPE_NAME String {@code =>} the direct super type's name + *
+ *

Note: If the driver does not support type hierarchies, an + * empty result set is returned. + */ + // @ts-ignore + getSuperTypes(catalog: string, schemaPattern: string, typeNamePattern: string): java.sql.ResultSet; + /** + * Retrieves a description of the table hierarchies defined in a particular + * schema in this database. + *

Only supertable information for tables matching the catalog, schema + * and table name are returned. The table name parameter may be a fully- + * qualified name, in which case, the catalog and schemaPattern parameters + * are ignored. If a table does not have a super table, it is not listed here. + * Supertables have to be defined in the same catalog and schema as the + * sub tables. Therefore, the type description does not need to include + * this information for the supertable. + *

Each type description has the following columns: + *

    + *
  1. TABLE_CAT String {@code =>} the type's catalog (may be null) + *
  2. TABLE_SCHEM String {@code =>} type's schema (may be null) + *
  3. TABLE_NAME String {@code =>} type name + *
  4. SUPERTABLE_NAME String {@code =>} the direct super type's name + *
+ *

Note: If the driver does not support type hierarchies, an + * empty result set is returned. + */ + // @ts-ignore + getSuperTables(catalog: string, schemaPattern: string, tableNamePattern: string): java.sql.ResultSet; + /** + * Retrieves a description of the given attribute of the given type + * for a user-defined type (UDT) that is available in the given schema + * and catalog. + *

+ * Descriptions are returned only for attributes of UDTs matching the + * catalog, schema, type, and attribute name criteria. They are ordered by + * TYPE_CAT, TYPE_SCHEM, + * TYPE_NAME and ORDINAL_POSITION. This description + * does not contain inherited attributes. + *

+ * The ResultSet object that is returned has the following + * columns: + *

    + *
  1. TYPE_CAT String {@code =>} type catalog (may be null) + *
  2. TYPE_SCHEM String {@code =>} type schema (may be null) + *
  3. TYPE_NAME String {@code =>} type name + *
  4. ATTR_NAME String {@code =>} attribute name + *
  5. DATA_TYPE int {@code =>} attribute type SQL type from java.sql.Types + *
  6. ATTR_TYPE_NAME String {@code =>} Data source dependent type name. + * For a UDT, the type name is fully qualified. For a REF, the type name is + * fully qualified and represents the target type of the reference type. + *
  7. ATTR_SIZE int {@code =>} column size. For char or date + * types this is the maximum number of characters; for numeric or + * decimal types this is precision. + *
  8. DECIMAL_DIGITS int {@code =>} the number of fractional digits. Null is returned for data types where + * DECIMAL_DIGITS is not applicable. + *
  9. NUM_PREC_RADIX int {@code =>} Radix (typically either 10 or 2) + *
  10. NULLABLE int {@code =>} whether NULL is allowed + *
      + *
    • attributeNoNulls - might not allow NULL values + *
    • attributeNullable - definitely allows NULL values + *
    • attributeNullableUnknown - nullability unknown + *
    + *
  11. REMARKS String {@code =>} comment describing column (may be null) + *
  12. ATTR_DEF String {@code =>} default value (may be null) + *
  13. SQL_DATA_TYPE int {@code =>} unused + *
  14. SQL_DATETIME_SUB int {@code =>} unused + *
  15. CHAR_OCTET_LENGTH int {@code =>} for char types the + * maximum number of bytes in the column + *
  16. ORDINAL_POSITION int {@code =>} index of the attribute in the UDT + * (starting at 1) + *
  17. IS_NULLABLE String {@code =>} ISO rules are used to determine + * the nullability for a attribute. + *
      + *
    • YES --- if the attribute can include NULLs + *
    • NO --- if the attribute cannot include NULLs + *
    • empty string --- if the nullability for the + * attribute is unknown + *
    + *
  18. SCOPE_CATALOG String {@code =>} catalog of table that is the + * scope of a reference attribute (null if DATA_TYPE isn't REF) + *
  19. SCOPE_SCHEMA String {@code =>} schema of table that is the + * scope of a reference attribute (null if DATA_TYPE isn't REF) + *
  20. SCOPE_TABLE String {@code =>} table name that is the scope of a + * reference attribute (null if the DATA_TYPE isn't REF) + *
  21. SOURCE_DATA_TYPE short {@code =>} source type of a distinct type or user-generated + * Ref type,SQL type from java.sql.Types (null if DATA_TYPE + * isn't DISTINCT or user-generated REF) + *
+ */ + // @ts-ignore + getAttributes(catalog: string, schemaPattern: string, typeNamePattern: string, attributeNamePattern: string): java.sql.ResultSet; + /** + * Retrieves whether this database supports the given result set holdability. + */ + // @ts-ignore + supportsResultSetHoldability(holdability: number): boolean; + /** + * Retrieves this database's default holdability for ResultSet + * objects. + */ + // @ts-ignore + getResultSetHoldability(): number; + /** + * Retrieves the major version number of the underlying database. + */ + // @ts-ignore + getDatabaseMajorVersion(): number; + /** + * Retrieves the minor version number of the underlying database. + */ + // @ts-ignore + getDatabaseMinorVersion(): number; + /** + * Retrieves the major JDBC version number for this + * driver. + */ + // @ts-ignore + getJDBCMajorVersion(): number; + /** + * Retrieves the minor JDBC version number for this + * driver. + */ + // @ts-ignore + getJDBCMinorVersion(): number; + /** + * Indicates whether the SQLSTATE returned by SQLException.getSQLState + * is X/Open (now known as Open Group) SQL CLI or SQL:2003. + */ + // @ts-ignore + getSQLStateType(): number; + /** + * Indicates whether updates made to a LOB are made on a copy or directly + * to the LOB. + */ + // @ts-ignore + locatorsUpdateCopy(): boolean; + /** + * Retrieves whether this database supports statement pooling. + */ + // @ts-ignore + supportsStatementPooling(): boolean; + /** + * Indicates whether or not this data source supports the SQL ROWID type, + * and if so the lifetime for which a RowId object remains valid. + *

+ * The returned int values have the following relationship: + *

{@code
+             * ROWID_UNSUPPORTED < ROWID_VALID_OTHER < ROWID_VALID_TRANSACTION
+             * < ROWID_VALID_SESSION < ROWID_VALID_FOREVER
+             * }
+ * so conditional logic such as + *
{@code
+             * if (metadata.getRowIdLifetime() > DatabaseMetaData.ROWID_VALID_TRANSACTION)
+             * }
+ * can be used. Valid Forever means valid across all Sessions, and valid for + * a Session means valid across all its contained Transactions. + */ + // @ts-ignore + getRowIdLifetime(): java.sql.RowIdLifetime; + /** + * Retrieves the schema names available in this database. The results + * are ordered by TABLE_CATALOG and + * TABLE_SCHEM. + *

The schema columns are: + *

    + *
  1. TABLE_SCHEM String {@code =>} schema name + *
  2. TABLE_CATALOG String {@code =>} catalog name (may be null) + *
+ */ + // @ts-ignore + getSchemas(catalog: string, schemaPattern: string): java.sql.ResultSet; + /** + * Retrieves whether this database supports invoking user-defined or vendor functions + * using the stored procedure escape syntax. + */ + // @ts-ignore + supportsStoredFunctionsUsingCallSyntax(): boolean; + /** + * Retrieves whether a SQLException while autoCommit is true indicates + * that all open ResultSets are closed, even ones that are holdable. When a SQLException occurs while + * autocommit is true, it is vendor specific whether the JDBC driver responds with a commit operation, a + * rollback operation, or by doing neither a commit nor a rollback. A potential result of this difference + * is in whether or not holdable ResultSets are closed. + */ + // @ts-ignore + autoCommitFailureClosesAllResultSets(): boolean; + /** + * Retrieves a list of the client info properties + * that the driver supports. The result set contains the following columns + *
    + *
  1. NAME String{@code =>} The name of the client info property
    + *
  2. MAX_LEN int{@code =>} The maximum length of the value for the property
    + *
  3. DEFAULT_VALUE String{@code =>} The default value of the property
    + *
  4. DESCRIPTION String{@code =>} A description of the property. This will typically + * contain information as to where this property is + * stored in the database. + *
+ *

+ * The ResultSet is sorted by the NAME column + *

+ */ + // @ts-ignore + getClientInfoProperties(): java.sql.ResultSet; + /** + * Retrieves a description of the system and user functions available + * in the given catalog. + *

+ * Only system and user function descriptions matching the schema and + * function name criteria are returned. They are ordered by + * FUNCTION_CAT, FUNCTION_SCHEM, + * FUNCTION_NAME and + * SPECIFIC_ NAME. + *

Each function description has the the following columns: + *

    + *
  1. FUNCTION_CAT String {@code =>} function catalog (may be null) + *
  2. FUNCTION_SCHEM String {@code =>} function schema (may be null) + *
  3. FUNCTION_NAME String {@code =>} function name. This is the name + * used to invoke the function + *
  4. REMARKS String {@code =>} explanatory comment on the function + *
  5. FUNCTION_TYPE short {@code =>} kind of function: + *
      + *
    • functionResultUnknown - Cannot determine if a return value + * or table will be returned + *
    • functionNoTable- Does not return a table + *
    • functionReturnsTable - Returns a table + *
    + *
  6. SPECIFIC_NAME String {@code =>} the name which uniquely identifies + * this function within its schema. This is a user specified, or DBMS + * generated, name that may be different then the FUNCTION_NAME + * for example with overload functions + *
+ *

+ * A user may not have permission to execute any of the functions that are + * returned by getFunctions + */ + // @ts-ignore + getFunctions(catalog: string, schemaPattern: string, functionNamePattern: string): java.sql.ResultSet; + /** + * Retrieves a description of the given catalog's system or user + * function parameters and return type. + *

Only descriptions matching the schema, function and + * parameter name criteria are returned. They are ordered by + * FUNCTION_CAT, FUNCTION_SCHEM, + * FUNCTION_NAME and + * SPECIFIC_ NAME. Within this, the return value, + * if any, is first. Next are the parameter descriptions in call + * order. The column descriptions follow in column number order. + *

Each row in the ResultSet + * is a parameter description, column description or + * return type description with the following fields: + *

    + *
  1. FUNCTION_CAT String {@code =>} function catalog (may be null) + *
  2. FUNCTION_SCHEM String {@code =>} function schema (may be null) + *
  3. FUNCTION_NAME String {@code =>} function name. This is the name + * used to invoke the function + *
  4. COLUMN_NAME String {@code =>} column/parameter name + *
  5. COLUMN_TYPE Short {@code =>} kind of column/parameter: + *
      + *
    • functionColumnUnknown - nobody knows + *
    • functionColumnIn - IN parameter + *
    • functionColumnInOut - INOUT parameter + *
    • functionColumnOut - OUT parameter + *
    • functionColumnReturn - function return value + *
    • functionColumnResult - Indicates that the parameter or column + * is a column in the ResultSet + *
    + *
  6. DATA_TYPE int {@code =>} SQL type from java.sql.Types + *
  7. TYPE_NAME String {@code =>} SQL type name, for a UDT type the + * type name is fully qualified + *
  8. PRECISION int {@code =>} precision + *
  9. LENGTH int {@code =>} length in bytes of data + *
  10. SCALE short {@code =>} scale - null is returned for data types where + * SCALE is not applicable. + *
  11. RADIX short {@code =>} radix + *
  12. NULLABLE short {@code =>} can it contain NULL. + *
      + *
    • functionNoNulls - does not allow NULL values + *
    • functionNullable - allows NULL values + *
    • functionNullableUnknown - nullability unknown + *
    + *
  13. REMARKS String {@code =>} comment describing column/parameter + *
  14. CHAR_OCTET_LENGTH int {@code =>} the maximum length of binary + * and character based parameters or columns. For any other datatype the returned value + * is a NULL + *
  15. ORDINAL_POSITION int {@code =>} the ordinal position, starting + * from 1, for the input and output parameters. A value of 0 + * is returned if this row describes the function's return value. + * For result set columns, it is the + * ordinal position of the column in the result set starting from 1. + *
  16. IS_NULLABLE String {@code =>} ISO rules are used to determine + * the nullability for a parameter or column. + *
      + *
    • YES --- if the parameter or column can include NULLs + *
    • NO --- if the parameter or column cannot include NULLs + *
    • empty string --- if the nullability for the + * parameter or column is unknown + *
    + *
  17. SPECIFIC_NAME String {@code =>} the name which uniquely identifies + * this function within its schema. This is a user specified, or DBMS + * generated, name that may be different then the FUNCTION_NAME + * for example with overload functions + *
+ *

The PRECISION column represents the specified column size for the given + * parameter or column. + * For numeric data, this is the maximum precision. For character data, this is the length in characters. + * For datetime datatypes, this is the length in characters of the String representation (assuming the + * maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For the ROWID datatype, + * this is the length in bytes. Null is returned for data types where the + * column size is not applicable. + */ + // @ts-ignore + getFunctionColumns(catalog: string, schemaPattern: string, functionNamePattern: string, columnNamePattern: string): java.sql.ResultSet; + /** + * Retrieves a description of the pseudo or hidden columns available + * in a given table within the specified catalog and schema. + * Pseudo or hidden columns may not always be stored within + * a table and are not visible in a ResultSet unless they are + * specified in the query's outermost SELECT list. Pseudo or hidden + * columns may not necessarily be able to be modified. If there are + * no pseudo or hidden columns, an empty ResultSet is returned. + *

Only column descriptions matching the catalog, schema, table + * and column name criteria are returned. They are ordered by + * TABLE_CAT,TABLE_SCHEM, TABLE_NAME + * and COLUMN_NAME. + *

Each column description has the following columns: + *

    + *
  1. TABLE_CAT String {@code =>} table catalog (may be null) + *
  2. TABLE_SCHEM String {@code =>} table schema (may be null) + *
  3. TABLE_NAME String {@code =>} table name + *
  4. COLUMN_NAME String {@code =>} column name + *
  5. DATA_TYPE int {@code =>} SQL type from java.sql.Types + *
  6. COLUMN_SIZE int {@code =>} column size. + *
  7. DECIMAL_DIGITS int {@code =>} the number of fractional digits. Null is returned for data types where + * DECIMAL_DIGITS is not applicable. + *
  8. NUM_PREC_RADIX int {@code =>} Radix (typically either 10 or 2) + *
  9. COLUMN_USAGE String {@code =>} The allowed usage for the column. The + * value returned will correspond to the enum name returned by {@link PseudoColumnUsage#name PseudoColumnUsage.name()} + *
  10. REMARKS String {@code =>} comment describing column (may be null) + *
  11. CHAR_OCTET_LENGTH int {@code =>} for char types the + * maximum number of bytes in the column + *
  12. IS_NULLABLE String {@code =>} ISO rules are used to determine the nullability for a column. + *
      + *
    • YES --- if the column can include NULLs + *
    • NO --- if the column cannot include NULLs + *
    • empty string --- if the nullability for the column is unknown + *
    + *
+ *

The COLUMN_SIZE column specifies the column size for the given column. + * For numeric data, this is the maximum precision. For character data, this is the length in characters. + * For datetime datatypes, this is the length in characters of the String representation (assuming the + * maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For the ROWID datatype, + * this is the length in bytes. Null is returned for data types where the + * column size is not applicable. + */ + // @ts-ignore + getPseudoColumns(catalog: string, schemaPattern: string, tableNamePattern: string, columnNamePattern: string): java.sql.ResultSet; + /** + * Retrieves whether a generated key will always be returned if the column + * name(s) or index(es) specified for the auto generated key column(s) + * are valid and the statement succeeds. The key that is returned may or + * may not be based on the column(s) for the auto generated key. + * Consult your JDBC driver documentation for additional details. + */ + // @ts-ignore + generatedKeyAlwaysReturned(): boolean; + /** + * Retrieves the maximum number of bytes this database allows for + * the logical size for a {@code LOB}. + *

+ * The default implementation will return {@code 0} + */ + // @ts-ignore + getMaxLogicalLobSize(): number; + /** + * Retrieves whether this database supports REF CURSOR. + *

+ * The default implementation will return {@code false} + */ + // @ts-ignore + supportsRefCursors(): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.Date.d.ts b/packages/types/dist/typings/jdk/java.sql.Date.d.ts new file mode 100644 index 00000000..f128319d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.Date.d.ts @@ -0,0 +1,108 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + class Date extends java.util.Date { + /** + * Constructs a Date object initialized with the given + * year, month, and day. + *

+ * The result is undefined if a given argument is out of bounds. + */ + // @ts-ignore + constructor(year: number, month: number, day: number) + /** + * Constructs a Date object using the given milliseconds + * time value. If the given milliseconds value contains time + * information, the driver will set the time components to the + * time in the default time zone (the time zone of the Java virtual + * machine running the application) that corresponds to zero GMT. + */ + // @ts-ignore + constructor(date: number) + /** + * Sets an existing Date object + * using the given milliseconds time value. + * If the given milliseconds value contains time information, + * the driver will set the time components to the + * time in the default time zone (the time zone of the Java virtual + * machine running the application) that corresponds to zero GMT. + */ + // @ts-ignore + public setTime(date: number): void; + /** + * Converts a string in JDBC date escape format to + * a Date value. + */ + // @ts-ignore + public static valueOf(s: string): java.sql.Date; + /** + * Formats a date in the date escape format yyyy-mm-dd. + *

+ */ + // @ts-ignore + public toString(): string; + /** + * This method is deprecated and should not be used because SQL Date + * values do not have a time component. + */ + // @ts-ignore + public getHours(): number; + /** + * This method is deprecated and should not be used because SQL Date + * values do not have a time component. + */ + // @ts-ignore + public getMinutes(): number; + /** + * This method is deprecated and should not be used because SQL Date + * values do not have a time component. + */ + // @ts-ignore + public getSeconds(): number; + /** + * This method is deprecated and should not be used because SQL Date + * values do not have a time component. + */ + // @ts-ignore + public setHours(i: number): void; + /** + * This method is deprecated and should not be used because SQL Date + * values do not have a time component. + */ + // @ts-ignore + public setMinutes(i: number): void; + /** + * This method is deprecated and should not be used because SQL Date + * values do not have a time component. + */ + // @ts-ignore + public setSeconds(i: number): void; + /** + * Obtains an instance of {@code Date} from a {@link LocalDate} object + * with the same year, month and day of month value as the given + * {@code LocalDate}. + *

+ * The provided {@code LocalDate} is interpreted as the local date + * in the local time zone. + */ + // @ts-ignore + public static valueOf(date: java.time.LocalDate): java.sql.Date; + /** + * Converts this {@code Date} object to a {@code LocalDate} + *

+ * The conversion creates a {@code LocalDate} that represents the same + * date value as this {@code Date} in local time zone + */ + // @ts-ignore + public toLocalDate(): java.time.LocalDate; + /** + * This method always throws an UnsupportedOperationException and should + * not be used because SQL {@code Date} values do not have a time + * component. + */ + // @ts-ignore + public toInstant(): java.time.Instant; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.Driver.d.ts b/packages/types/dist/typings/jdk/java.sql.Driver.d.ts new file mode 100644 index 00000000..8163d66d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.Driver.d.ts @@ -0,0 +1,88 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + interface Driver { + /** + * Attempts to make a database connection to the given URL. + * The driver should return "null" if it realizes it is the wrong kind + * of driver to connect to the given URL. This will be common, as when + * the JDBC driver manager is asked to connect to a given URL it passes + * the URL to each loaded driver in turn. + *

The driver should throw an SQLException if it is the right + * driver to connect to the given URL but has trouble connecting to + * the database. + *

The {@code Properties} argument can be used to pass + * arbitrary string tag/value pairs as connection arguments. + * Normally at least "user" and "password" properties should be + * included in the {@code Properties} object. + *

+ * Note: If a property is specified as part of the {@code url} and + * is also specified in the {@code Properties} object, it is + * implementation-defined as to which value will take precedence. For + * maximum portability, an application should only specify a property once. + */ + // @ts-ignore + connect(url: string, info: java.util.Properties): java.sql.Connection; + /** + * Retrieves whether the driver thinks that it can open a connection + * to the given URL. Typically drivers will return true if they + * understand the sub-protocol specified in the URL and false if + * they do not. + */ + // @ts-ignore + acceptsURL(url: string): boolean; + /** + * Gets information about the possible properties for this driver. + *

+ * The getPropertyInfo method is intended to allow a generic + * GUI tool to discover what properties it should prompt + * a human for in order to get + * enough information to connect to a database. Note that depending on + * the values the human has supplied so far, additional values may become + * necessary, so it may be necessary to iterate though several calls + * to the getPropertyInfo method. + */ + // @ts-ignore + getPropertyInfo(url: string, info: java.util.Properties): java.sql.DriverPropertyInfo[]; + /** + * Retrieves the driver's major version number. Initially this should be 1. + */ + // @ts-ignore + getMajorVersion(): number; + /** + * Gets the driver's minor version number. Initially this should be 0. + */ + // @ts-ignore + getMinorVersion(): number; + /** + * Reports whether this driver is a genuine JDBC + * Compliant™ driver. + * A driver may only report true here if it passes the JDBC + * compliance tests; otherwise it is required to return false. + *

+ * JDBC compliance requires full support for the JDBC API and full support + * for SQL 92 Entry Level. It is expected that JDBC compliant drivers will + * be available for all the major commercial databases. + *

+ * This method is not intended to encourage the development of non-JDBC + * compliant drivers, but is a recognition of the fact that some vendors + * are interested in using the JDBC API and framework for lightweight + * databases that do not support full database functionality, or for + * special databases such as document information retrieval where a SQL + * implementation may not be feasible. + */ + // @ts-ignore + jdbcCompliant(): boolean; + /** + * Return the parent Logger of all the Loggers used by this driver. This + * should be the Logger farthest from the root Logger that is + * still an ancestor of all of the Loggers used by this driver. Configuring + * this Logger will affect all of the log messages generated by the driver. + * In the worst case, this may be the root Logger. + */ + // @ts-ignore + getParentLogger(): java.util.logging.Logger; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.DriverAction.d.ts b/packages/types/dist/typings/jdk/java.sql.DriverAction.d.ts new file mode 100644 index 00000000..83328cc2 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.DriverAction.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + interface DriverAction { + /** + * Method called by + * {@linkplain DriverManager#deregisterDriver(Driver) } + * to notify the JDBC driver that it was de-registered. + *

+ * The {@code deregister} method is intended only to be used by JDBC Drivers + * and not by applications. JDBC drivers are recommended to not implement + * {@code DriverAction} in a public class. If there are active + * connections to the database at the time that the {@code deregister} + * method is called, it is implementation specific as to whether the + * connections are closed or allowed to continue. Once this method is + * called, it is implementation specific as to whether the driver may + * limit the ability to create new connections to the database, invoke + * other {@code Driver} methods or throw a {@code SQLException}. + * Consult your JDBC driver's documentation for additional information + * on its behavior. + */ + // @ts-ignore + deregister(): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.DriverManager.d.ts b/packages/types/dist/typings/jdk/java.sql.DriverManager.d.ts new file mode 100644 index 00000000..a847157e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.DriverManager.d.ts @@ -0,0 +1,160 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + class DriverManager extends java.lang.Object { + /** + * Retrieves the log writer. + * The getLogWriter and setLogWriter + * methods should be used instead + * of the get/setlogStream methods, which are deprecated. + */ + // @ts-ignore + public static getLogWriter(): java.io.PrintWriter; + /** + * Sets the logging/tracing PrintWriter object + * that is used by the DriverManager and all drivers. + *

+ * There is a minor versioning problem created by the introduction + * of the method setLogWriter. The + * method setLogWriter cannot create a PrintStream object + * that will be returned by getLogStream---the Java platform does + * not provide a backward conversion. As a result, a new application + * that uses setLogWriter and also uses a JDBC 1.0 driver that uses + * getLogStream will likely not see debugging information written + * by that driver. + *

+ * Starting with the Java 2 SDK, Standard Edition, version 1.3 release, this method checks + * to see that there is an SQLPermission object before setting + * the logging stream. If a SecurityManager exists and its + * checkPermission method denies setting the log writer, this + * method throws a java.lang.SecurityException. + */ + // @ts-ignore + public static setLogWriter(out: java.io.PrintWriter): void; + /** + * Attempts to establish a connection to the given database URL. + * The DriverManager attempts to select an appropriate driver from + * the set of registered JDBC drivers. + *

+ * Note: If a property is specified as part of the {@code url} and + * is also specified in the {@code Properties} object, it is + * implementation-defined as to which value will take precedence. + * For maximum portability, an application should only specify a + * property once. + */ + // @ts-ignore + public static getConnection(url: string, info: java.util.Properties): java.sql.Connection; + /** + * Attempts to establish a connection to the given database URL. + * The DriverManager attempts to select an appropriate driver from + * the set of registered JDBC drivers. + *

+ * Note: If the {@code user} or {@code password} property are + * also specified as part of the {@code url}, it is + * implementation-defined as to which value will take precedence. + * For maximum portability, an application should only specify a + * property once. + */ + // @ts-ignore + public static getConnection(url: string, user: string, password: string): java.sql.Connection; + /** + * Attempts to establish a connection to the given database URL. + * The DriverManager attempts to select an appropriate driver from + * the set of registered JDBC drivers. + */ + // @ts-ignore + public static getConnection(url: string): java.sql.Connection; + /** + * Attempts to locate a driver that understands the given URL. + * The DriverManager attempts to select an appropriate driver from + * the set of registered JDBC drivers. + */ + // @ts-ignore + public static getDriver(url: string): java.sql.Driver; + /** + * Registers the given driver with the {@code DriverManager}. + * A newly-loaded driver class should call + * the method {@code registerDriver} to make itself + * known to the {@code DriverManager}. If the driver is currently + * registered, no action is taken. + */ + // @ts-ignore + public static registerDriver(driver: java.sql.Driver): void; + /** + * Registers the given driver with the {@code DriverManager}. + * A newly-loaded driver class should call + * the method {@code registerDriver} to make itself + * known to the {@code DriverManager}. If the driver is currently + * registered, no action is taken. + */ + // @ts-ignore + public static registerDriver(driver: java.sql.Driver, da: java.sql.DriverAction): void; + /** + * Removes the specified driver from the {@code DriverManager}'s list of + * registered drivers. + *

+ * If a {@code null} value is specified for the driver to be removed, then no + * action is taken. + *

+ * If a security manager exists and its {@code checkPermission} denies + * permission, then a {@code SecurityException} will be thrown. + *

+ * If the specified driver is not found in the list of registered drivers, + * then no action is taken. If the driver was found, it will be removed + * from the list of registered drivers. + *

+ * If a {@code DriverAction} instance was specified when the JDBC driver was + * registered, its deregister method will be called + * prior to the driver being removed from the list of registered drivers. + */ + // @ts-ignore + public static deregisterDriver(driver: java.sql.Driver): void; + /** + * Retrieves an Enumeration with all of the currently loaded JDBC drivers + * to which the current caller has access. + *

Note: The classname of a driver can be found using + * d.getClass().getName() + */ + // @ts-ignore + public static getDrivers(): java.util.Enumeration; + /** + * Sets the maximum time in seconds that a driver will wait + * while attempting to connect to a database once the driver has + * been identified. + */ + // @ts-ignore + public static setLoginTimeout(seconds: number): void; + /** + * Gets the maximum time in seconds that a driver can wait + * when attempting to log in to a database. + */ + // @ts-ignore + public static getLoginTimeout(): number; + /** + * Sets the logging/tracing PrintStream that is used + * by the DriverManager + * and all drivers. + *

+ * In the Java 2 SDK, Standard Edition, version 1.3 release, this method checks + * to see that there is an SQLPermission object before setting + * the logging stream. If a SecurityManager exists and its + * checkPermission method denies setting the log writer, this + * method throws a java.lang.SecurityException. + */ + // @ts-ignore + public static setLogStream(out: java.io.PrintStream): void; + /** + * Retrieves the logging/tracing PrintStream that is used by the DriverManager + * and all drivers. + */ + // @ts-ignore + public static getLogStream(): java.io.PrintStream; + /** + * Prints a message to the current JDBC log stream. + */ + // @ts-ignore + public static println(message: string): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.DriverPropertyInfo.d.ts b/packages/types/dist/typings/jdk/java.sql.DriverPropertyInfo.d.ts new file mode 100644 index 00000000..83af9ce2 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.DriverPropertyInfo.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + class DriverPropertyInfo extends java.lang.Object { + /** + * Constructs a DriverPropertyInfo object with a given + * name and value. The description and choices + * are initialized to null and required is initialized + * to false. + */ + // @ts-ignore + constructor(name: string, value: string) + // @ts-ignore + public name: string; + // @ts-ignore + public description: string; + // @ts-ignore + public required: boolean; + // @ts-ignore + public value: string; + // @ts-ignore + public choices: java.lang.String[]; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.JDBCType.d.ts b/packages/types/dist/typings/jdk/java.sql.JDBCType.d.ts new file mode 100644 index 00000000..a8f6637f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.JDBCType.d.ts @@ -0,0 +1,111 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + class JDBCType extends java.lang.Enum { + // @ts-ignore + public static BIT: java.sql.JDBCType; + // @ts-ignore + public static TINYINT: java.sql.JDBCType; + // @ts-ignore + public static SMALLINT: java.sql.JDBCType; + // @ts-ignore + public static INTEGER: java.sql.JDBCType; + // @ts-ignore + public static BIGINT: java.sql.JDBCType; + // @ts-ignore + public static FLOAT: java.sql.JDBCType; + // @ts-ignore + public static REAL: java.sql.JDBCType; + // @ts-ignore + public static DOUBLE: java.sql.JDBCType; + // @ts-ignore + public static NUMERIC: java.sql.JDBCType; + // @ts-ignore + public static DECIMAL: java.sql.JDBCType; + // @ts-ignore + public static CHAR: java.sql.JDBCType; + // @ts-ignore + public static VARCHAR: java.sql.JDBCType; + // @ts-ignore + public static LONGVARCHAR: java.sql.JDBCType; + // @ts-ignore + public static DATE: java.sql.JDBCType; + // @ts-ignore + public static TIME: java.sql.JDBCType; + // @ts-ignore + public static TIMESTAMP: java.sql.JDBCType; + // @ts-ignore + public static BINARY: java.sql.JDBCType; + // @ts-ignore + public static VARBINARY: java.sql.JDBCType; + // @ts-ignore + public static LONGVARBINARY: java.sql.JDBCType; + // @ts-ignore + public static NULL: java.sql.JDBCType; + // @ts-ignore + public static OTHER: java.sql.JDBCType; + // @ts-ignore + public static JAVA_OBJECT: java.sql.JDBCType; + // @ts-ignore + public static DISTINCT: java.sql.JDBCType; + // @ts-ignore + public static STRUCT: java.sql.JDBCType; + // @ts-ignore + public static ARRAY: java.sql.JDBCType; + // @ts-ignore + public static BLOB: java.sql.JDBCType; + // @ts-ignore + public static CLOB: java.sql.JDBCType; + // @ts-ignore + public static REF: java.sql.JDBCType; + // @ts-ignore + public static DATALINK: java.sql.JDBCType; + // @ts-ignore + public static BOOLEAN: java.sql.JDBCType; + // @ts-ignore + public static ROWID: java.sql.JDBCType; + // @ts-ignore + public static NCHAR: java.sql.JDBCType; + // @ts-ignore + public static NVARCHAR: java.sql.JDBCType; + // @ts-ignore + public static LONGNVARCHAR: java.sql.JDBCType; + // @ts-ignore + public static NCLOB: java.sql.JDBCType; + // @ts-ignore + public static SQLXML: java.sql.JDBCType; + // @ts-ignore + public static REF_CURSOR: java.sql.JDBCType; + // @ts-ignore + public static TIME_WITH_TIMEZONE: java.sql.JDBCType; + // @ts-ignore + public static TIMESTAMP_WITH_TIMEZONE: java.sql.JDBCType; + // @ts-ignore + public static values(): java.sql.JDBCType[]; + // @ts-ignore + public static valueOf(name: string): java.sql.JDBCType; + /** + * {@inheritDoc } + */ + // @ts-ignore + public getName(): string; + /** + * Returns the name of the vendor that supports this data type. + */ + // @ts-ignore + public getVendor(): string; + /** + * Returns the vendor specific type number for the data type. + */ + // @ts-ignore + public getVendorTypeNumber(): java.lang.Integer; + /** + * Returns the {@code JDBCType} that corresponds to the specified + * {@code Types} value + */ + // @ts-ignore + public static valueOf(type: number): java.sql.JDBCType; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.NClob.d.ts b/packages/types/dist/typings/jdk/java.sql.NClob.d.ts new file mode 100644 index 00000000..8f439f15 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.NClob.d.ts @@ -0,0 +1,8 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + interface NClob { + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.ParameterMetaData.d.ts b/packages/types/dist/typings/jdk/java.sql.ParameterMetaData.d.ts new file mode 100644 index 00000000..8a241427 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.ParameterMetaData.d.ts @@ -0,0 +1,77 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + interface ParameterMetaData { + // @ts-ignore + parameterNoNulls: number; + // @ts-ignore + parameterNullable: number; + // @ts-ignore + parameterNullableUnknown: number; + // @ts-ignore + parameterModeUnknown: number; + // @ts-ignore + parameterModeIn: number; + // @ts-ignore + parameterModeInOut: number; + // @ts-ignore + parameterModeOut: number; + /** + * Retrieves the number of parameters in the PreparedStatement + * object for which this ParameterMetaData object contains + * information. + */ + // @ts-ignore + getParameterCount(): number; + /** + * Retrieves whether null values are allowed in the designated parameter. + */ + // @ts-ignore + isNullable(param: number): number; + /** + * Retrieves whether values for the designated parameter can be signed numbers. + */ + // @ts-ignore + isSigned(param: number): boolean; + /** + * Retrieves the designated parameter's specified column size. + *

The returned value represents the maximum column size for the given parameter. + * For numeric data, this is the maximum precision. For character data, this is the length in characters. + * For datetime datatypes, this is the length in characters of the String representation (assuming the + * maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For the ROWID datatype, + * this is the length in bytes. 0 is returned for data types where the + * column size is not applicable. + */ + // @ts-ignore + getPrecision(param: number): number; + /** + * Retrieves the designated parameter's number of digits to right of the decimal point. + * 0 is returned for data types where the scale is not applicable. + */ + // @ts-ignore + getScale(param: number): number; + /** + * Retrieves the designated parameter's SQL type. + */ + // @ts-ignore + getParameterType(param: number): number; + /** + * Retrieves the designated parameter's database-specific type name. + */ + // @ts-ignore + getParameterTypeName(param: number): string; + /** + * Retrieves the fully-qualified name of the Java class whose instances + * should be passed to the method PreparedStatement.setObject. + */ + // @ts-ignore + getParameterClassName(param: number): string; + /** + * Retrieves the designated parameter's mode. + */ + // @ts-ignore + getParameterMode(param: number): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.PreparedStatement.d.ts b/packages/types/dist/typings/jdk/java.sql.PreparedStatement.d.ts new file mode 100644 index 00000000..48542eaa --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.PreparedStatement.d.ts @@ -0,0 +1,659 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + interface PreparedStatement { + /** + * Executes the SQL query in this PreparedStatement object + * and returns the ResultSet object generated by the query. + */ + // @ts-ignore + executeQuery(): java.sql.ResultSet; + /** + * Executes the SQL statement in this PreparedStatement object, + * which must be an SQL Data Manipulation Language (DML) statement, such as INSERT, UPDATE or + * DELETE; or an SQL statement that returns nothing, + * such as a DDL statement. + */ + // @ts-ignore + executeUpdate(): number; + /** + * Sets the designated parameter to SQL NULL. + *

Note: You must specify the parameter's SQL type. + */ + // @ts-ignore + setNull(parameterIndex: number, sqlType: number): void; + /** + * Sets the designated parameter to the given Java boolean value. + * The driver converts this + * to an SQL BIT or BOOLEAN value when it sends it to the database. + */ + // @ts-ignore + setBoolean(parameterIndex: number, x: boolean): void; + /** + * Sets the designated parameter to the given Java byte value. + * The driver converts this + * to an SQL TINYINT value when it sends it to the database. + */ + // @ts-ignore + setByte(parameterIndex: number, x: number): void; + /** + * Sets the designated parameter to the given Java short value. + * The driver converts this + * to an SQL SMALLINT value when it sends it to the database. + */ + // @ts-ignore + setShort(parameterIndex: number, x: number): void; + /** + * Sets the designated parameter to the given Java int value. + * The driver converts this + * to an SQL INTEGER value when it sends it to the database. + */ + // @ts-ignore + setInt(parameterIndex: number, x: number): void; + /** + * Sets the designated parameter to the given Java long value. + * The driver converts this + * to an SQL BIGINT value when it sends it to the database. + */ + // @ts-ignore + setLong(parameterIndex: number, x: number): void; + /** + * Sets the designated parameter to the given Java float value. + * The driver converts this + * to an SQL REAL value when it sends it to the database. + */ + // @ts-ignore + setFloat(parameterIndex: number, x: number): void; + /** + * Sets the designated parameter to the given Java double value. + * The driver converts this + * to an SQL DOUBLE value when it sends it to the database. + */ + // @ts-ignore + setDouble(parameterIndex: number, x: number): void; + /** + * Sets the designated parameter to the given java.math.BigDecimal value. + * The driver converts this to an SQL NUMERIC value when + * it sends it to the database. + */ + // @ts-ignore + setBigDecimal(parameterIndex: number, x: java.math.BigDecimal): void; + /** + * Sets the designated parameter to the given Java String value. + * The driver converts this + * to an SQL VARCHAR or LONGVARCHAR value + * (depending on the argument's + * size relative to the driver's limits on VARCHAR values) + * when it sends it to the database. + */ + // @ts-ignore + setString(parameterIndex: number, x: string): void; + /** + * Sets the designated parameter to the given Java array of bytes. The driver converts + * this to an SQL VARBINARY or LONGVARBINARY + * (depending on the argument's size relative to the driver's limits on + * VARBINARY values) when it sends it to the database. + */ + // @ts-ignore + setBytes(parameterIndex: number, x: number): void; + /** + * Sets the designated parameter to the given java.sql.Date value + * using the default time zone of the virtual machine that is running + * the application. + * The driver converts this + * to an SQL DATE value when it sends it to the database. + */ + // @ts-ignore + setDate(parameterIndex: number, x: java.sql.Date): void; + /** + * Sets the designated parameter to the given java.sql.Time value. + * The driver converts this + * to an SQL TIME value when it sends it to the database. + */ + // @ts-ignore + setTime(parameterIndex: number, x: java.sql.Time): void; + /** + * Sets the designated parameter to the given java.sql.Timestamp value. + * The driver + * converts this to an SQL TIMESTAMP value when it sends it to the + * database. + */ + // @ts-ignore + setTimestamp(parameterIndex: number, x: java.sql.Timestamp): void; + /** + * Sets the designated parameter to the given input stream, which will have + * the specified number of bytes. + * When a very large ASCII value is input to a LONGVARCHAR + * parameter, it may be more practical to send it via a + * java.io.InputStream. Data will be read from the stream + * as needed until end-of-file is reached. The JDBC driver will + * do any necessary conversion from ASCII to the database char format. + *

Note: This stream object can either be a standard + * Java stream object or your own subclass that implements the + * standard interface. + */ + // @ts-ignore + setAsciiStream(parameterIndex: number, x: java.io.InputStream, length: number): void; + /** + * Sets the designated parameter to the given input stream, which + * will have the specified number of bytes. + * When a very large Unicode value is input to a LONGVARCHAR + * parameter, it may be more practical to send it via a + * java.io.InputStream object. The data will be read from the + * stream as needed until end-of-file is reached. The JDBC driver will + * do any necessary conversion from Unicode to the database char format. + * The byte format of the Unicode stream must be a Java UTF-8, as defined in the + * Java Virtual Machine Specification. + *

Note: This stream object can either be a standard + * Java stream object or your own subclass that implements the + * standard interface. + */ + // @ts-ignore + setUnicodeStream(parameterIndex: number, x: java.io.InputStream, length: number): void; + /** + * Sets the designated parameter to the given input stream, which will have + * the specified number of bytes. + * When a very large binary value is input to a LONGVARBINARY + * parameter, it may be more practical to send it via a + * java.io.InputStream object. The data will be read from the + * stream as needed until end-of-file is reached. + *

Note: This stream object can either be a standard + * Java stream object or your own subclass that implements the + * standard interface. + */ + // @ts-ignore + setBinaryStream(parameterIndex: number, x: java.io.InputStream, length: number): void; + /** + * Clears the current parameter values immediately. + *

In general, parameter values remain in force for repeated use of a + * statement. Setting a parameter value automatically clears its + * previous value. However, in some cases it is useful to immediately + * release the resources used by the current parameter values; this can + * be done by calling the method clearParameters. + */ + // @ts-ignore + clearParameters(): void; + /** + * Sets the value of the designated parameter with the given object. + * This method is similar to {@link #setObject(int parameterIndex, + * Object x, int targetSqlType, int scaleOrLength)}, + * except that it assumes a scale of zero. + */ + // @ts-ignore + setObject(parameterIndex: number, x: java.lang.Object, targetSqlType: number): void; + /** + *

Sets the value of the designated parameter using the given object. + *

The JDBC specification specifies a standard mapping from + * Java Object types to SQL types. The given argument + * will be converted to the corresponding SQL type before being + * sent to the database. + *

Note that this method may be used to pass datatabase- + * specific abstract data types, by using a driver-specific Java + * type. + * If the object is of a class implementing the interface SQLData, + * the JDBC driver should call the method SQLData.writeSQL + * to write it to the SQL data stream. + * If, on the other hand, the object is of a class implementing + * Ref, Blob, Clob, NClob, + * Struct, java.net.URL, RowId, SQLXML + * or Array, the driver should pass it to the database as a + * value of the corresponding SQL type. + *

+ * Note: Not all databases allow for a non-typed Null to be sent to + * the backend. For maximum portability, the setNull or the + * setObject(int parameterIndex, Object x, int sqlType) + * method should be used + * instead of setObject(int parameterIndex, Object x). + *

+ * Note: This method throws an exception if there is an ambiguity, for example, if the + * object is of a class implementing more than one of the interfaces named above. + */ + // @ts-ignore + setObject(parameterIndex: number, x: java.lang.Object): void; + /** + * Executes the SQL statement in this PreparedStatement object, + * which may be any kind of SQL statement. + * Some prepared statements return multiple results; the execute + * method handles these complex statements as well as the simpler + * form of statements handled by the methods executeQuery + * and executeUpdate. + *

+ * The execute method returns a boolean to + * indicate the form of the first result. You must call either the method + * getResultSet or getUpdateCount + * to retrieve the result; you must call getMoreResults to + * move to any subsequent result(s). + */ + // @ts-ignore + execute(): boolean; + /** + * Adds a set of parameters to this PreparedStatement + * object's batch of commands. + */ + // @ts-ignore + addBatch(): void; + /** + * Sets the designated parameter to the given Reader + * object, which is the given number of characters long. + * When a very large UNICODE value is input to a LONGVARCHAR + * parameter, it may be more practical to send it via a + * java.io.Reader object. The data will be read from the stream + * as needed until end-of-file is reached. The JDBC driver will + * do any necessary conversion from UNICODE to the database char format. + *

Note: This stream object can either be a standard + * Java stream object or your own subclass that implements the + * standard interface. + */ + // @ts-ignore + setCharacterStream(parameterIndex: number, reader: java.io.Reader, length: number): void; + /** + * Sets the designated parameter to the given + * REF(<structured-type>) value. + * The driver converts this to an SQL REF value when it + * sends it to the database. + */ + // @ts-ignore + setRef(parameterIndex: number, x: java.sql.Ref): void; + /** + * Sets the designated parameter to the given java.sql.Blob object. + * The driver converts this to an SQL BLOB value when it + * sends it to the database. + */ + // @ts-ignore + setBlob(parameterIndex: number, x: java.sql.Blob): void; + /** + * Sets the designated parameter to the given java.sql.Clob object. + * The driver converts this to an SQL CLOB value when it + * sends it to the database. + */ + // @ts-ignore + setClob(parameterIndex: number, x: java.sql.Clob): void; + /** + * Sets the designated parameter to the given java.sql.Array object. + * The driver converts this to an SQL ARRAY value when it + * sends it to the database. + */ + // @ts-ignore + setArray(parameterIndex: number, x: java.sql.Array): void; + /** + * Retrieves a ResultSetMetaData object that contains + * information about the columns of the ResultSet object + * that will be returned when this PreparedStatement object + * is executed. + *

+ * Because a PreparedStatement object is precompiled, it is + * possible to know about the ResultSet object that it will + * return without having to execute it. Consequently, it is possible + * to invoke the method getMetaData on a + * PreparedStatement object rather than waiting to execute + * it and then invoking the ResultSet.getMetaData method + * on the ResultSet object that is returned. + *

+ * NOTE: Using this method may be expensive for some drivers due + * to the lack of underlying DBMS support. + */ + // @ts-ignore + getMetaData(): java.sql.ResultSetMetaData; + /** + * Sets the designated parameter to the given java.sql.Date value, + * using the given Calendar object. The driver uses + * the Calendar object to construct an SQL DATE value, + * which the driver then sends to the database. With + * a Calendar object, the driver can calculate the date + * taking into account a custom timezone. If no + * Calendar object is specified, the driver uses the default + * timezone, which is that of the virtual machine running the application. + */ + // @ts-ignore + setDate(parameterIndex: number, x: java.sql.Date, cal: java.util.Calendar): void; + /** + * Sets the designated parameter to the given java.sql.Time value, + * using the given Calendar object. The driver uses + * the Calendar object to construct an SQL TIME value, + * which the driver then sends to the database. With + * a Calendar object, the driver can calculate the time + * taking into account a custom timezone. If no + * Calendar object is specified, the driver uses the default + * timezone, which is that of the virtual machine running the application. + */ + // @ts-ignore + setTime(parameterIndex: number, x: java.sql.Time, cal: java.util.Calendar): void; + /** + * Sets the designated parameter to the given java.sql.Timestamp value, + * using the given Calendar object. The driver uses + * the Calendar object to construct an SQL TIMESTAMP value, + * which the driver then sends to the database. With a + * Calendar object, the driver can calculate the timestamp + * taking into account a custom timezone. If no + * Calendar object is specified, the driver uses the default + * timezone, which is that of the virtual machine running the application. + */ + // @ts-ignore + setTimestamp(parameterIndex: number, x: java.sql.Timestamp, cal: java.util.Calendar): void; + /** + * Sets the designated parameter to SQL NULL. + * This version of the method setNull should + * be used for user-defined types and REF type parameters. Examples + * of user-defined types include: STRUCT, DISTINCT, JAVA_OBJECT, and + * named array types. + *

Note: To be portable, applications must give the + * SQL type code and the fully-qualified SQL type name when specifying + * a NULL user-defined or REF parameter. In the case of a user-defined type + * the name is the type name of the parameter itself. For a REF + * parameter, the name is the type name of the referenced type. If + * a JDBC driver does not need the type code or type name information, + * it may ignore it. + * Although it is intended for user-defined and Ref parameters, + * this method may be used to set a null parameter of any JDBC type. + * If the parameter does not have a user-defined or REF type, the given + * typeName is ignored. + */ + // @ts-ignore + setNull(parameterIndex: number, sqlType: number, typeName: string): void; + /** + * Sets the designated parameter to the given java.net.URL value. + * The driver converts this to an SQL DATALINK value + * when it sends it to the database. + */ + // @ts-ignore + setURL(parameterIndex: number, x: java.net.URL): void; + /** + * Retrieves the number, types and properties of this + * PreparedStatement object's parameters. + */ + // @ts-ignore + getParameterMetaData(): java.sql.ParameterMetaData; + /** + * Sets the designated parameter to the given java.sql.RowId object. The + * driver converts this to a SQL ROWID value when it sends it + * to the database + */ + // @ts-ignore + setRowId(parameterIndex: number, x: java.sql.RowId): void; + /** + * Sets the designated parameter to the given String object. + * The driver converts this to a SQL NCHAR or + * NVARCHAR or LONGNVARCHAR value + * (depending on the argument's + * size relative to the driver's limits on NVARCHAR values) + * when it sends it to the database. + */ + // @ts-ignore + setNString(parameterIndex: number, value: string): void; + /** + * Sets the designated parameter to a Reader object. The + * Reader reads the data till end-of-file is reached. The + * driver does the necessary conversion from Java character format to + * the national character set in the database. + */ + // @ts-ignore + setNCharacterStream(parameterIndex: number, value: java.io.Reader, length: number): void; + /** + * Sets the designated parameter to a java.sql.NClob object. The driver converts this to a + * SQL NCLOB value when it sends it to the database. + */ + // @ts-ignore + setNClob(parameterIndex: number, value: java.sql.NClob): void; + /** + * Sets the designated parameter to a Reader object. The reader must contain the number + * of characters specified by length otherwise a SQLException will be + * generated when the PreparedStatement is executed. + * This method differs from the setCharacterStream (int, Reader, int) method + * because it informs the driver that the parameter value should be sent to + * the server as a CLOB. When the setCharacterStream method is used, the + * driver may have to do extra work to determine whether the parameter + * data should be sent to the server as a LONGVARCHAR or a CLOB + */ + // @ts-ignore + setClob(parameterIndex: number, reader: java.io.Reader, length: number): void; + /** + * Sets the designated parameter to a InputStream object. The inputstream must contain the number + * of characters specified by length otherwise a SQLException will be + * generated when the PreparedStatement is executed. + * This method differs from the setBinaryStream (int, InputStream, int) + * method because it informs the driver that the parameter value should be + * sent to the server as a BLOB. When the setBinaryStream method is used, + * the driver may have to do extra work to determine whether the parameter + * data should be sent to the server as a LONGVARBINARY or a BLOB + */ + // @ts-ignore + setBlob(parameterIndex: number, inputStream: java.io.InputStream, length: number): void; + /** + * Sets the designated parameter to a Reader object. The reader must contain the number + * of characters specified by length otherwise a SQLException will be + * generated when the PreparedStatement is executed. + * This method differs from the setCharacterStream (int, Reader, int) method + * because it informs the driver that the parameter value should be sent to + * the server as a NCLOB. When the setCharacterStream method is used, the + * driver may have to do extra work to determine whether the parameter + * data should be sent to the server as a LONGNVARCHAR or a NCLOB + */ + // @ts-ignore + setNClob(parameterIndex: number, reader: java.io.Reader, length: number): void; + /** + * Sets the designated parameter to the given java.sql.SQLXML object. + * The driver converts this to an + * SQL XML value when it sends it to the database. + *

+ */ + // @ts-ignore + setSQLXML(parameterIndex: number, xmlObject: java.sql.SQLXML): void; + /** + *

Sets the value of the designated parameter with the given object. + * If the second argument is an InputStream then the stream must contain + * the number of bytes specified by scaleOrLength. If the second argument is a + * Reader then the reader must contain the number of characters specified + * by scaleOrLength. If these conditions are not true the driver will generate a + * SQLException when the prepared statement is executed. + *

The given Java object will be converted to the given targetSqlType + * before being sent to the database. + * If the object has a custom mapping (is of a class implementing the + * interface SQLData), + * the JDBC driver should call the method SQLData.writeSQL to + * write it to the SQL data stream. + * If, on the other hand, the object is of a class implementing + * Ref, Blob, Clob, NClob, + * Struct, java.net.URL, + * or Array, the driver should pass it to the database as a + * value of the corresponding SQL type. + *

Note that this method may be used to pass database-specific + * abstract data types. + */ + // @ts-ignore + setObject(parameterIndex: number, x: java.lang.Object, targetSqlType: number, scaleOrLength: number): void; + /** + * Sets the designated parameter to the given input stream, which will have + * the specified number of bytes. + * When a very large ASCII value is input to a LONGVARCHAR + * parameter, it may be more practical to send it via a + * java.io.InputStream. Data will be read from the stream + * as needed until end-of-file is reached. The JDBC driver will + * do any necessary conversion from ASCII to the database char format. + *

Note: This stream object can either be a standard + * Java stream object or your own subclass that implements the + * standard interface. + */ + // @ts-ignore + setAsciiStream(parameterIndex: number, x: java.io.InputStream, length: number): void; + /** + * Sets the designated parameter to the given input stream, which will have + * the specified number of bytes. + * When a very large binary value is input to a LONGVARBINARY + * parameter, it may be more practical to send it via a + * java.io.InputStream object. The data will be read from the + * stream as needed until end-of-file is reached. + *

Note: This stream object can either be a standard + * Java stream object or your own subclass that implements the + * standard interface. + */ + // @ts-ignore + setBinaryStream(parameterIndex: number, x: java.io.InputStream, length: number): void; + /** + * Sets the designated parameter to the given Reader + * object, which is the given number of characters long. + * When a very large UNICODE value is input to a LONGVARCHAR + * parameter, it may be more practical to send it via a + * java.io.Reader object. The data will be read from the stream + * as needed until end-of-file is reached. The JDBC driver will + * do any necessary conversion from UNICODE to the database char format. + *

Note: This stream object can either be a standard + * Java stream object or your own subclass that implements the + * standard interface. + */ + // @ts-ignore + setCharacterStream(parameterIndex: number, reader: java.io.Reader, length: number): void; + /** + * Sets the designated parameter to the given input stream. + * When a very large ASCII value is input to a LONGVARCHAR + * parameter, it may be more practical to send it via a + * java.io.InputStream. Data will be read from the stream + * as needed until end-of-file is reached. The JDBC driver will + * do any necessary conversion from ASCII to the database char format. + *

Note: This stream object can either be a standard + * Java stream object or your own subclass that implements the + * standard interface. + *

Note: Consult your JDBC driver documentation to determine if + * it might be more efficient to use a version of + * setAsciiStream which takes a length parameter. + */ + // @ts-ignore + setAsciiStream(parameterIndex: number, x: java.io.InputStream): void; + /** + * Sets the designated parameter to the given input stream. + * When a very large binary value is input to a LONGVARBINARY + * parameter, it may be more practical to send it via a + * java.io.InputStream object. The data will be read from the + * stream as needed until end-of-file is reached. + *

Note: This stream object can either be a standard + * Java stream object or your own subclass that implements the + * standard interface. + *

Note: Consult your JDBC driver documentation to determine if + * it might be more efficient to use a version of + * setBinaryStream which takes a length parameter. + */ + // @ts-ignore + setBinaryStream(parameterIndex: number, x: java.io.InputStream): void; + /** + * Sets the designated parameter to the given Reader + * object. + * When a very large UNICODE value is input to a LONGVARCHAR + * parameter, it may be more practical to send it via a + * java.io.Reader object. The data will be read from the stream + * as needed until end-of-file is reached. The JDBC driver will + * do any necessary conversion from UNICODE to the database char format. + *

Note: This stream object can either be a standard + * Java stream object or your own subclass that implements the + * standard interface. + *

Note: Consult your JDBC driver documentation to determine if + * it might be more efficient to use a version of + * setCharacterStream which takes a length parameter. + */ + // @ts-ignore + setCharacterStream(parameterIndex: number, reader: java.io.Reader): void; + /** + * Sets the designated parameter to a Reader object. The + * Reader reads the data till end-of-file is reached. The + * driver does the necessary conversion from Java character format to + * the national character set in the database. + *

Note: This stream object can either be a standard + * Java stream object or your own subclass that implements the + * standard interface. + *

Note: Consult your JDBC driver documentation to determine if + * it might be more efficient to use a version of + * setNCharacterStream which takes a length parameter. + */ + // @ts-ignore + setNCharacterStream(parameterIndex: number, value: java.io.Reader): void; + /** + * Sets the designated parameter to a Reader object. + * This method differs from the setCharacterStream (int, Reader) method + * because it informs the driver that the parameter value should be sent to + * the server as a CLOB. When the setCharacterStream method is used, the + * driver may have to do extra work to determine whether the parameter + * data should be sent to the server as a LONGVARCHAR or a CLOB + *

Note: Consult your JDBC driver documentation to determine if + * it might be more efficient to use a version of + * setClob which takes a length parameter. + */ + // @ts-ignore + setClob(parameterIndex: number, reader: java.io.Reader): void; + /** + * Sets the designated parameter to a InputStream object. + * This method differs from the setBinaryStream (int, InputStream) + * method because it informs the driver that the parameter value should be + * sent to the server as a BLOB. When the setBinaryStream method is used, + * the driver may have to do extra work to determine whether the parameter + * data should be sent to the server as a LONGVARBINARY or a BLOB + *

Note: Consult your JDBC driver documentation to determine if + * it might be more efficient to use a version of + * setBlob which takes a length parameter. + */ + // @ts-ignore + setBlob(parameterIndex: number, inputStream: java.io.InputStream): void; + /** + * Sets the designated parameter to a Reader object. + * This method differs from the setCharacterStream (int, Reader) method + * because it informs the driver that the parameter value should be sent to + * the server as a NCLOB. When the setCharacterStream method is used, the + * driver may have to do extra work to determine whether the parameter + * data should be sent to the server as a LONGNVARCHAR or a NCLOB + *

Note: Consult your JDBC driver documentation to determine if + * it might be more efficient to use a version of + * setNClob which takes a length parameter. + */ + // @ts-ignore + setNClob(parameterIndex: number, reader: java.io.Reader): void; + /** + *

Sets the value of the designated parameter with the given object. + * If the second argument is an {@code InputStream} then the stream + * must contain the number of bytes specified by scaleOrLength. + * If the second argument is a {@code Reader} then the reader must + * contain the number of characters specified by scaleOrLength. If these + * conditions are not true the driver will generate a + * {@code SQLException} when the prepared statement is executed. + *

The given Java object will be converted to the given targetSqlType + * before being sent to the database. + * If the object has a custom mapping (is of a class implementing the + * interface {@code SQLData}), + * the JDBC driver should call the method {@code SQLData.writeSQL} to + * write it to the SQL data stream. + * If, on the other hand, the object is of a class implementing + * {@code Ref}, {@code Blob}, {@code Clob}, {@code NClob}, + * {@code Struct}, {@code java.net.URL}, + * or {@code Array}, the driver should pass it to the database as a + * value of the corresponding SQL type. + *

Note that this method may be used to pass database-specific + * abstract data types. + *

+ * The default implementation will throw {@code SQLFeatureNotSupportedException} + */ + // @ts-ignore + setObject(parameterIndex: number, x: java.lang.Object, targetSqlType: java.sql.SQLType, scaleOrLength: number): void; + /** + * Sets the value of the designated parameter with the given object. + * This method is similar to {@link #setObject(int parameterIndex, + * Object x, SQLType targetSqlType, int scaleOrLength)}, + * except that it assumes a scale of zero. + *

+ * The default implementation will throw {@code SQLFeatureNotSupportedException} + */ + // @ts-ignore + setObject(parameterIndex: number, x: java.lang.Object, targetSqlType: java.sql.SQLType): void; + /** + * Executes the SQL statement in this PreparedStatement object, + * which must be an SQL Data Manipulation Language (DML) statement, + * such as INSERT, UPDATE or + * DELETE; or an SQL statement that returns nothing, + * such as a DDL statement. + *

+ * This method should be used when the returned row count may exceed + * {@link Integer#MAX_VALUE}. + *

+ * The default implementation will throw {@code UnsupportedOperationException} + */ + // @ts-ignore + executeLargeUpdate(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.PseudoColumnUsage.d.ts b/packages/types/dist/typings/jdk/java.sql.PseudoColumnUsage.d.ts new file mode 100644 index 00000000..c8ca625d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.PseudoColumnUsage.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + class PseudoColumnUsage extends java.lang.Enum { + // @ts-ignore + public static SELECT_LIST_ONLY: java.sql.PseudoColumnUsage; + // @ts-ignore + public static WHERE_CLAUSE_ONLY: java.sql.PseudoColumnUsage; + // @ts-ignore + public static NO_USAGE_RESTRICTIONS: java.sql.PseudoColumnUsage; + // @ts-ignore + public static USAGE_UNKNOWN: java.sql.PseudoColumnUsage; + // @ts-ignore + public static values(): java.sql.PseudoColumnUsage[]; + // @ts-ignore + public static valueOf(name: string): java.sql.PseudoColumnUsage; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.Ref.d.ts b/packages/types/dist/typings/jdk/java.sql.Ref.d.ts new file mode 100644 index 00000000..7c3567dd --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.Ref.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + interface Ref { + /** + * Retrieves the fully-qualified SQL name of the SQL structured type that + * this Ref object references. + */ + // @ts-ignore + getBaseTypeName(): string; + /** + * Retrieves the referenced object and maps it to a Java type + * using the given type map. + */ + // @ts-ignore + getObject(map: java.util.Map): java.lang.Object; + /** + * Retrieves the SQL structured type instance referenced by + * this Ref object. If the connection's type map has an entry + * for the structured type, the instance will be custom mapped to + * the Java class indicated in the type map. Otherwise, the + * structured type instance will be mapped to a Struct object. + */ + // @ts-ignore + getObject(): java.lang.Object; + /** + * Sets the structured type value that this Ref + * object references to the given instance of Object. + * The driver converts this to an SQL structured type when it + * sends it to the database. + */ + // @ts-ignore + setObject(value: java.lang.Object): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.ResultSet.d.ts b/packages/types/dist/typings/jdk/java.sql.ResultSet.d.ts new file mode 100644 index 00000000..5060c51f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.ResultSet.d.ts @@ -0,0 +1,2071 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + interface ResultSet { + // @ts-ignore + FETCH_FORWARD: number; + // @ts-ignore + FETCH_REVERSE: number; + // @ts-ignore + FETCH_UNKNOWN: number; + // @ts-ignore + TYPE_FORWARD_ONLY: number; + // @ts-ignore + TYPE_SCROLL_INSENSITIVE: number; + // @ts-ignore + TYPE_SCROLL_SENSITIVE: number; + // @ts-ignore + CONCUR_READ_ONLY: number; + // @ts-ignore + CONCUR_UPDATABLE: number; + // @ts-ignore + HOLD_CURSORS_OVER_COMMIT: number; + // @ts-ignore + CLOSE_CURSORS_AT_COMMIT: number; + /** + * Moves the cursor forward one row from its current position. + * A ResultSet cursor is initially positioned + * before the first row; the first call to the method + * next makes the first row the current row; the + * second call makes the second row the current row, and so on. + *

+ * When a call to the next method returns false, + * the cursor is positioned after the last row. Any + * invocation of a ResultSet method which requires a + * current row will result in a SQLException being thrown. + * If the result set type is TYPE_FORWARD_ONLY, it is vendor specified + * whether their JDBC driver implementation will return false or + * throw an SQLException on a + * subsequent call to next. + *

If an input stream is open for the current row, a call + * to the method next will + * implicitly close it. A ResultSet object's + * warning chain is cleared when a new row is read. + */ + // @ts-ignore + next(): boolean; + /** + * Releases this ResultSet object's database and + * JDBC resources immediately instead of waiting for + * this to happen when it is automatically closed. + *

The closing of a ResultSet object does not close the Blob, + * Clob or NClob objects created by the ResultSet. Blob, + * Clob or NClob objects remain valid for at least the duration of the + * transaction in which they are created, unless their free method is invoked. + *

+ * When a ResultSet is closed, any ResultSetMetaData + * instances that were created by calling the getMetaData + * method remain accessible. + *

Note: A ResultSet object + * is automatically closed by the + * Statement object that generated it when + * that Statement object is closed, + * re-executed, or is used to retrieve the next result from a + * sequence of multiple results. + *

+ * Calling the method close on a ResultSet + * object that is already closed is a no-op. + */ + // @ts-ignore + close(): void; + /** + * Reports whether + * the last column read had a value of SQL NULL. + * Note that you must first call one of the getter methods + * on a column to try to read its value and then call + * the method wasNull to see if the value read was + * SQL NULL. + */ + // @ts-ignore + wasNull(): boolean; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as + * a String in the Java programming language. + */ + // @ts-ignore + getString(columnIndex: number): string; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as + * a boolean in the Java programming language. + *

If the designated column has a datatype of CHAR or VARCHAR + * and contains a "0" or has a datatype of BIT, TINYINT, SMALLINT, INTEGER or BIGINT + * and contains a 0, a value of false is returned. If the designated column has a datatype + * of CHAR or VARCHAR + * and contains a "1" or has a datatype of BIT, TINYINT, SMALLINT, INTEGER or BIGINT + * and contains a 1, a value of true is returned. + */ + // @ts-ignore + getBoolean(columnIndex: number): boolean; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as + * a byte in the Java programming language. + */ + // @ts-ignore + getByte(columnIndex: number): number; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as + * a short in the Java programming language. + */ + // @ts-ignore + getShort(columnIndex: number): number; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as + * an int in the Java programming language. + */ + // @ts-ignore + getInt(columnIndex: number): number; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as + * a long in the Java programming language. + */ + // @ts-ignore + getLong(columnIndex: number): number; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as + * a float in the Java programming language. + */ + // @ts-ignore + getFloat(columnIndex: number): number; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as + * a double in the Java programming language. + */ + // @ts-ignore + getDouble(columnIndex: number): number; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as + * a java.sql.BigDecimal in the Java programming language. + */ + // @ts-ignore + getBigDecimal(columnIndex: number, scale: number): java.math.BigDecimal; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as + * a byte array in the Java programming language. + * The bytes represent the raw values returned by the driver. + */ + // @ts-ignore + getBytes(columnIndex: number): number[]; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as + * a java.sql.Date object in the Java programming language. + */ + // @ts-ignore + getDate(columnIndex: number): java.sql.Date; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as + * a java.sql.Time object in the Java programming language. + */ + // @ts-ignore + getTime(columnIndex: number): java.sql.Time; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as + * a java.sql.Timestamp object in the Java programming language. + */ + // @ts-ignore + getTimestamp(columnIndex: number): java.sql.Timestamp; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as + * a stream of ASCII characters. The value can then be read in chunks from the + * stream. This method is particularly + * suitable for retrieving large LONGVARCHAR values. + * The JDBC driver will + * do any necessary conversion from the database format into ASCII. + *

Note: All the data in the returned stream must be + * read prior to getting the value of any other column. The next + * call to a getter method implicitly closes the stream. Also, a + * stream may return 0 when the method + * InputStream.available + * is called whether there is data available or not. + */ + // @ts-ignore + getAsciiStream(columnIndex: number): java.io.InputStream; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as + * as a stream of two-byte 3 characters. The first byte is + * the high byte; the second byte is the low byte. + * The value can then be read in chunks from the + * stream. This method is particularly + * suitable for retrieving large LONGVARCHARvalues. The + * JDBC driver will do any necessary conversion from the database + * format into Unicode. + *

Note: All the data in the returned stream must be + * read prior to getting the value of any other column. The next + * call to a getter method implicitly closes the stream. + * Also, a stream may return 0 when the method + * InputStream.available + * is called, whether there is data available or not. + */ + // @ts-ignore + getUnicodeStream(columnIndex: number): java.io.InputStream; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as a stream of + * uninterpreted bytes. The value can then be read in chunks from the + * stream. This method is particularly + * suitable for retrieving large LONGVARBINARY values. + *

Note: All the data in the returned stream must be + * read prior to getting the value of any other column. The next + * call to a getter method implicitly closes the stream. Also, a + * stream may return 0 when the method + * InputStream.available + * is called whether there is data available or not. + */ + // @ts-ignore + getBinaryStream(columnIndex: number): java.io.InputStream; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as + * a String in the Java programming language. + */ + // @ts-ignore + getString(columnLabel: string): string; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as + * a boolean in the Java programming language. + *

If the designated column has a datatype of CHAR or VARCHAR + * and contains a "0" or has a datatype of BIT, TINYINT, SMALLINT, INTEGER or BIGINT + * and contains a 0, a value of false is returned. If the designated column has a datatype + * of CHAR or VARCHAR + * and contains a "1" or has a datatype of BIT, TINYINT, SMALLINT, INTEGER or BIGINT + * and contains a 1, a value of true is returned. + */ + // @ts-ignore + getBoolean(columnLabel: string): boolean; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as + * a byte in the Java programming language. + */ + // @ts-ignore + getByte(columnLabel: string): number; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as + * a short in the Java programming language. + */ + // @ts-ignore + getShort(columnLabel: string): number; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as + * an int in the Java programming language. + */ + // @ts-ignore + getInt(columnLabel: string): number; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as + * a long in the Java programming language. + */ + // @ts-ignore + getLong(columnLabel: string): number; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as + * a float in the Java programming language. + */ + // @ts-ignore + getFloat(columnLabel: string): number; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as + * a double in the Java programming language. + */ + // @ts-ignore + getDouble(columnLabel: string): number; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as + * a java.math.BigDecimal in the Java programming language. + */ + // @ts-ignore + getBigDecimal(columnLabel: string, scale: number): java.math.BigDecimal; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as + * a byte array in the Java programming language. + * The bytes represent the raw values returned by the driver. + */ + // @ts-ignore + getBytes(columnLabel: string): number[]; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as + * a java.sql.Date object in the Java programming language. + */ + // @ts-ignore + getDate(columnLabel: string): java.sql.Date; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as + * a java.sql.Time object in the Java programming language. + */ + // @ts-ignore + getTime(columnLabel: string): java.sql.Time; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as + * a java.sql.Timestamp object in the Java programming language. + */ + // @ts-ignore + getTimestamp(columnLabel: string): java.sql.Timestamp; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as a stream of + * ASCII characters. The value can then be read in chunks from the + * stream. This method is particularly + * suitable for retrieving large LONGVARCHAR values. + * The JDBC driver will + * do any necessary conversion from the database format into ASCII. + *

Note: All the data in the returned stream must be + * read prior to getting the value of any other column. The next + * call to a getter method implicitly closes the stream. Also, a + * stream may return 0 when the method available + * is called whether there is data available or not. + */ + // @ts-ignore + getAsciiStream(columnLabel: string): java.io.InputStream; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as a stream of two-byte + * Unicode characters. The first byte is the high byte; the second + * byte is the low byte. + * The value can then be read in chunks from the + * stream. This method is particularly + * suitable for retrieving large LONGVARCHAR values. + * The JDBC technology-enabled driver will + * do any necessary conversion from the database format into Unicode. + *

Note: All the data in the returned stream must be + * read prior to getting the value of any other column. The next + * call to a getter method implicitly closes the stream. + * Also, a stream may return 0 when the method + * InputStream.available is called, whether there + * is data available or not. + */ + // @ts-ignore + getUnicodeStream(columnLabel: string): java.io.InputStream; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as a stream of uninterpreted + * bytes. + * The value can then be read in chunks from the + * stream. This method is particularly + * suitable for retrieving large LONGVARBINARY + * values. + *

Note: All the data in the returned stream must be + * read prior to getting the value of any other column. The next + * call to a getter method implicitly closes the stream. Also, a + * stream may return 0 when the method available + * is called whether there is data available or not. + */ + // @ts-ignore + getBinaryStream(columnLabel: string): java.io.InputStream; + /** + * Retrieves the first warning reported by calls on this + * ResultSet object. + * Subsequent warnings on this ResultSet object + * will be chained to the SQLWarning object that + * this method returns. + *

The warning chain is automatically cleared each time a new + * row is read. This method may not be called on a ResultSet + * object that has been closed; doing so will cause an + * SQLException to be thrown. + *

+ * Note: This warning chain only covers warnings caused + * by ResultSet methods. Any warning caused by + * Statement methods + * (such as reading OUT parameters) will be chained on the + * Statement object. + */ + // @ts-ignore + getWarnings(): java.sql.SQLWarning; + /** + * Clears all warnings reported on this ResultSet object. + * After this method is called, the method getWarnings + * returns null until a new warning is + * reported for this ResultSet object. + */ + // @ts-ignore + clearWarnings(): void; + /** + * Retrieves the name of the SQL cursor used by this ResultSet + * object. + *

In SQL, a result table is retrieved through a cursor that is + * named. The current row of a result set can be updated or deleted + * using a positioned update/delete statement that references the + * cursor name. To insure that the cursor has the proper isolation + * level to support update, the cursor's SELECT statement + * should be of the form SELECT FOR UPDATE. If + * FOR UPDATE is omitted, the positioned updates may fail. + *

The JDBC API supports this SQL feature by providing the name of the + * SQL cursor used by a ResultSet object. + * The current row of a ResultSet object + * is also the current row of this SQL cursor. + */ + // @ts-ignore + getCursorName(): string; + /** + * Retrieves the number, types and properties of + * this ResultSet object's columns. + */ + // @ts-ignore + getMetaData(): java.sql.ResultSetMetaData; + /** + *

Gets the value of the designated column in the current row + * of this ResultSet object as + * an Object in the Java programming language. + *

This method will return the value of the given column as a + * Java object. The type of the Java object will be the default + * Java object type corresponding to the column's SQL type, + * following the mapping for built-in types specified in the JDBC + * specification. If the value is an SQL NULL, + * the driver returns a Java null. + *

This method may also be used to read database-specific + * abstract data types. + * In the JDBC 2.0 API, the behavior of method + * getObject is extended to materialize + * data of SQL user-defined types. + *

+ * If Connection.getTypeMap does not throw a + * SQLFeatureNotSupportedException, + * then when a column contains a structured or distinct value, + * the behavior of this method is as + * if it were a call to: getObject(columnIndex, + * this.getStatement().getConnection().getTypeMap()). + * If Connection.getTypeMap does throw a + * SQLFeatureNotSupportedException, + * then structured values are not supported, and distinct values + * are mapped to the default Java class as determined by the + * underlying SQL type of the DISTINCT type. + */ + // @ts-ignore + getObject(columnIndex: number): java.lang.Object; + /** + *

Gets the value of the designated column in the current row + * of this ResultSet object as + * an Object in the Java programming language. + *

This method will return the value of the given column as a + * Java object. The type of the Java object will be the default + * Java object type corresponding to the column's SQL type, + * following the mapping for built-in types specified in the JDBC + * specification. If the value is an SQL NULL, + * the driver returns a Java null. + *

+ * This method may also be used to read database-specific + * abstract data types. + *

+ * In the JDBC 2.0 API, the behavior of the method + * getObject is extended to materialize + * data of SQL user-defined types. When a column contains + * a structured or distinct value, the behavior of this method is as + * if it were a call to: getObject(columnIndex, + * this.getStatement().getConnection().getTypeMap()). + */ + // @ts-ignore + getObject(columnLabel: string): java.lang.Object; + /** + * Maps the given ResultSet column label to its + * ResultSet column index. + */ + // @ts-ignore + findColumn(columnLabel: string): number; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as a + * java.io.Reader object. + */ + // @ts-ignore + getCharacterStream(columnIndex: number): java.io.Reader; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as a + * java.io.Reader object. + */ + // @ts-ignore + getCharacterStream(columnLabel: string): java.io.Reader; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as a + * java.math.BigDecimal with full precision. + */ + // @ts-ignore + getBigDecimal(columnIndex: number): java.math.BigDecimal; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as a + * java.math.BigDecimal with full precision. + */ + // @ts-ignore + getBigDecimal(columnLabel: string): java.math.BigDecimal; + /** + * Retrieves whether the cursor is before the first row in + * this ResultSet object. + *

+ * Note:Support for the isBeforeFirst method + * is optional for ResultSets with a result + * set type of TYPE_FORWARD_ONLY + */ + // @ts-ignore + isBeforeFirst(): boolean; + /** + * Retrieves whether the cursor is after the last row in + * this ResultSet object. + *

+ * Note:Support for the isAfterLast method + * is optional for ResultSets with a result + * set type of TYPE_FORWARD_ONLY + */ + // @ts-ignore + isAfterLast(): boolean; + /** + * Retrieves whether the cursor is on the first row of + * this ResultSet object. + *

+ * Note:Support for the isFirst method + * is optional for ResultSets with a result + * set type of TYPE_FORWARD_ONLY + */ + // @ts-ignore + isFirst(): boolean; + /** + * Retrieves whether the cursor is on the last row of + * this ResultSet object. + * Note: Calling the method isLast may be expensive + * because the JDBC driver + * might need to fetch ahead one row in order to determine + * whether the current row is the last row in the result set. + *

+ * Note: Support for the isLast method + * is optional for ResultSets with a result + * set type of TYPE_FORWARD_ONLY + */ + // @ts-ignore + isLast(): boolean; + /** + * Moves the cursor to the front of + * this ResultSet object, just before the + * first row. This method has no effect if the result set contains no rows. + */ + // @ts-ignore + beforeFirst(): void; + /** + * Moves the cursor to the end of + * this ResultSet object, just after the + * last row. This method has no effect if the result set contains no rows. + */ + // @ts-ignore + afterLast(): void; + /** + * Moves the cursor to the first row in + * this ResultSet object. + */ + // @ts-ignore + first(): boolean; + /** + * Moves the cursor to the last row in + * this ResultSet object. + */ + // @ts-ignore + last(): boolean; + /** + * Retrieves the current row number. The first row is number 1, the + * second number 2, and so on. + *

+ * Note:Support for the getRow method + * is optional for ResultSets with a result + * set type of TYPE_FORWARD_ONLY + */ + // @ts-ignore + getRow(): number; + /** + * Moves the cursor to the given row number in + * this ResultSet object. + *

If the row number is positive, the cursor moves to + * the given row number with respect to the + * beginning of the result set. The first row is row 1, the second + * is row 2, and so on. + *

If the given row number is negative, the cursor moves to + * an absolute row position with respect to + * the end of the result set. For example, calling the method + * absolute(-1) positions the + * cursor on the last row; calling the method absolute(-2) + * moves the cursor to the next-to-last row, and so on. + *

If the row number specified is zero, the cursor is moved to + * before the first row. + *

An attempt to position the cursor beyond the first/last row in + * the result set leaves the cursor before the first row or after + * the last row. + *

Note: Calling absolute(1) is the same + * as calling first(). Calling absolute(-1) + * is the same as calling last(). + */ + // @ts-ignore + absolute(row: number): boolean; + /** + * Moves the cursor a relative number of rows, either positive or negative. + * Attempting to move beyond the first/last row in the + * result set positions the cursor before/after the + * the first/last row. Calling relative(0) is valid, but does + * not change the cursor position. + *

Note: Calling the method relative(1) + * is identical to calling the method next() and + * calling the method relative(-1) is identical + * to calling the method previous(). + */ + // @ts-ignore + relative(rows: number): boolean; + /** + * Moves the cursor to the previous row in this + * ResultSet object. + *

+ * When a call to the previous method returns false, + * the cursor is positioned before the first row. Any invocation of a + * ResultSet method which requires a current row will result in a + * SQLException being thrown. + *

+ * If an input stream is open for the current row, a call to the method + * previous will implicitly close it. A ResultSet + * object's warning change is cleared when a new row is read. + *

+ */ + // @ts-ignore + previous(): boolean; + /** + * Gives a hint as to the direction in which the rows in this + * ResultSet object will be processed. + * The initial value is determined by the + * Statement object + * that produced this ResultSet object. + * The fetch direction may be changed at any time. + */ + // @ts-ignore + setFetchDirection(direction: number): void; + /** + * Retrieves the fetch direction for this + * ResultSet object. + */ + // @ts-ignore + getFetchDirection(): number; + /** + * Gives the JDBC driver a hint as to the number of rows that should + * be fetched from the database when more rows are needed for this + * ResultSet object. + * If the fetch size specified is zero, the JDBC driver + * ignores the value and is free to make its own best guess as to what + * the fetch size should be. The default value is set by the + * Statement object + * that created the result set. The fetch size may be changed at any time. + */ + // @ts-ignore + setFetchSize(rows: number): void; + /** + * Retrieves the fetch size for this + * ResultSet object. + */ + // @ts-ignore + getFetchSize(): number; + /** + * Retrieves the type of this ResultSet object. + * The type is determined by the Statement object + * that created the result set. + */ + // @ts-ignore + getType(): number; + /** + * Retrieves the concurrency mode of this ResultSet object. + * The concurrency used is determined by the + * Statement object that created the result set. + */ + // @ts-ignore + getConcurrency(): number; + /** + * Retrieves whether the current row has been updated. The value returned + * depends on whether or not the result set can detect updates. + *

+ * Note: Support for the rowUpdated method is optional with a result set + * concurrency of CONCUR_READ_ONLY + */ + // @ts-ignore + rowUpdated(): boolean; + /** + * Retrieves whether the current row has had an insertion. + * The value returned depends on whether or not this + * ResultSet object can detect visible inserts. + *

+ * Note: Support for the rowInserted method is optional with a result set + * concurrency of CONCUR_READ_ONLY + */ + // @ts-ignore + rowInserted(): boolean; + /** + * Retrieves whether a row has been deleted. A deleted row may leave + * a visible "hole" in a result set. This method can be used to + * detect holes in a result set. The value returned depends on whether + * or not this ResultSet object can detect deletions. + *

+ * Note: Support for the rowDeleted method is optional with a result set + * concurrency of CONCUR_READ_ONLY + */ + // @ts-ignore + rowDeleted(): boolean; + /** + * Updates the designated column with a null value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow + * or insertRow methods are called to update the database. + */ + // @ts-ignore + updateNull(columnIndex: number): void; + /** + * Updates the designated column with a boolean value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateBoolean(columnIndex: number, x: boolean): void; + /** + * Updates the designated column with a byte value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateByte(columnIndex: number, x: number): void; + /** + * Updates the designated column with a short value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateShort(columnIndex: number, x: number): void; + /** + * Updates the designated column with an int value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateInt(columnIndex: number, x: number): void; + /** + * Updates the designated column with a long value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateLong(columnIndex: number, x: number): void; + /** + * Updates the designated column with a float value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateFloat(columnIndex: number, x: number): void; + /** + * Updates the designated column with a double value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateDouble(columnIndex: number, x: number): void; + /** + * Updates the designated column with a java.math.BigDecimal + * value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateBigDecimal(columnIndex: number, x: java.math.BigDecimal): void; + /** + * Updates the designated column with a String value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateString(columnIndex: number, x: string): void; + /** + * Updates the designated column with a byte array value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateBytes(columnIndex: number, x: number): void; + /** + * Updates the designated column with a java.sql.Date value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateDate(columnIndex: number, x: java.sql.Date): void; + /** + * Updates the designated column with a java.sql.Time value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateTime(columnIndex: number, x: java.sql.Time): void; + /** + * Updates the designated column with a java.sql.Timestamp + * value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateTimestamp(columnIndex: number, x: java.sql.Timestamp): void; + /** + * Updates the designated column with an ascii stream value, which will have + * the specified number of bytes. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateAsciiStream(columnIndex: number, x: java.io.InputStream, length: number): void; + /** + * Updates the designated column with a binary stream value, which will have + * the specified number of bytes. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateBinaryStream(columnIndex: number, x: java.io.InputStream, length: number): void; + /** + * Updates the designated column with a character stream value, which will have + * the specified number of bytes. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateCharacterStream(columnIndex: number, x: java.io.Reader, length: number): void; + /** + * Updates the designated column with an Object value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + *

+ * If the second argument is an InputStream then the stream must contain + * the number of bytes specified by scaleOrLength. If the second argument is a + * Reader then the reader must contain the number of characters specified + * by scaleOrLength. If these conditions are not true the driver will generate a + * SQLException when the statement is executed. + */ + // @ts-ignore + updateObject(columnIndex: number, x: java.lang.Object, scaleOrLength: number): void; + /** + * Updates the designated column with an Object value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateObject(columnIndex: number, x: java.lang.Object): void; + /** + * Updates the designated column with a null value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateNull(columnLabel: string): void; + /** + * Updates the designated column with a boolean value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateBoolean(columnLabel: string, x: boolean): void; + /** + * Updates the designated column with a byte value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateByte(columnLabel: string, x: number): void; + /** + * Updates the designated column with a short value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateShort(columnLabel: string, x: number): void; + /** + * Updates the designated column with an int value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateInt(columnLabel: string, x: number): void; + /** + * Updates the designated column with a long value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateLong(columnLabel: string, x: number): void; + /** + * Updates the designated column with a float value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateFloat(columnLabel: string, x: number): void; + /** + * Updates the designated column with a double value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateDouble(columnLabel: string, x: number): void; + /** + * Updates the designated column with a java.sql.BigDecimal + * value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateBigDecimal(columnLabel: string, x: java.math.BigDecimal): void; + /** + * Updates the designated column with a String value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateString(columnLabel: string, x: string): void; + /** + * Updates the designated column with a byte array value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow + * or insertRow methods are called to update the database. + */ + // @ts-ignore + updateBytes(columnLabel: string, x: number): void; + /** + * Updates the designated column with a java.sql.Date value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateDate(columnLabel: string, x: java.sql.Date): void; + /** + * Updates the designated column with a java.sql.Time value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateTime(columnLabel: string, x: java.sql.Time): void; + /** + * Updates the designated column with a java.sql.Timestamp + * value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateTimestamp(columnLabel: string, x: java.sql.Timestamp): void; + /** + * Updates the designated column with an ascii stream value, which will have + * the specified number of bytes. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateAsciiStream(columnLabel: string, x: java.io.InputStream, length: number): void; + /** + * Updates the designated column with a binary stream value, which will have + * the specified number of bytes. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateBinaryStream(columnLabel: string, x: java.io.InputStream, length: number): void; + /** + * Updates the designated column with a character stream value, which will have + * the specified number of bytes. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateCharacterStream(columnLabel: string, reader: java.io.Reader, length: number): void; + /** + * Updates the designated column with an Object value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + *

+ * If the second argument is an InputStream then the stream must contain + * the number of bytes specified by scaleOrLength. If the second argument is a + * Reader then the reader must contain the number of characters specified + * by scaleOrLength. If these conditions are not true the driver will generate a + * SQLException when the statement is executed. + */ + // @ts-ignore + updateObject(columnLabel: string, x: java.lang.Object, scaleOrLength: number): void; + /** + * Updates the designated column with an Object value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateObject(columnLabel: string, x: java.lang.Object): void; + /** + * Inserts the contents of the insert row into this + * ResultSet object and into the database. + * The cursor must be on the insert row when this method is called. + */ + // @ts-ignore + insertRow(): void; + /** + * Updates the underlying database with the new contents of the + * current row of this ResultSet object. + * This method cannot be called when the cursor is on the insert row. + */ + // @ts-ignore + updateRow(): void; + /** + * Deletes the current row from this ResultSet object + * and from the underlying database. This method cannot be called when + * the cursor is on the insert row. + */ + // @ts-ignore + deleteRow(): void; + /** + * Refreshes the current row with its most recent value in + * the database. This method cannot be called when + * the cursor is on the insert row. + *

The refreshRow method provides a way for an + * application to + * explicitly tell the JDBC driver to refetch a row(s) from the + * database. An application may want to call refreshRow when + * caching or prefetching is being done by the JDBC driver to + * fetch the latest value of a row from the database. The JDBC driver + * may actually refresh multiple rows at once if the fetch size is + * greater than one. + *

All values are refetched subject to the transaction isolation + * level and cursor sensitivity. If refreshRow is called after + * calling an updater method, but before calling + * the method updateRow, then the + * updates made to the row are lost. Calling the method + * refreshRow frequently will likely slow performance. + */ + // @ts-ignore + refreshRow(): void; + /** + * Cancels the updates made to the current row in this + * ResultSet object. + * This method may be called after calling an + * updater method(s) and before calling + * the method updateRow to roll back + * the updates made to a row. If no updates have been made or + * updateRow has already been called, this method has no + * effect. + */ + // @ts-ignore + cancelRowUpdates(): void; + /** + * Moves the cursor to the insert row. The current cursor position is + * remembered while the cursor is positioned on the insert row. + * The insert row is a special row associated with an updatable + * result set. It is essentially a buffer where a new row may + * be constructed by calling the updater methods prior to + * inserting the row into the result set. + * Only the updater, getter, + * and insertRow methods may be + * called when the cursor is on the insert row. All of the columns in + * a result set must be given a value each time this method is + * called before calling insertRow. + * An updater method must be called before a + * getter method can be called on a column value. + */ + // @ts-ignore + moveToInsertRow(): void; + /** + * Moves the cursor to the remembered cursor position, usually the + * current row. This method has no effect if the cursor is not on + * the insert row. + */ + // @ts-ignore + moveToCurrentRow(): void; + /** + * Retrieves the Statement object that produced this + * ResultSet object. + * If the result set was generated some other way, such as by a + * DatabaseMetaData method, this method may return + * null. + */ + // @ts-ignore + getStatement(): java.sql.Statement; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as an Object + * in the Java programming language. + * If the value is an SQL NULL, + * the driver returns a Java null. + * This method uses the given Map object + * for the custom mapping of the + * SQL structured or distinct type that is being retrieved. + */ + // @ts-ignore + getObject(columnIndex: number, map: java.util.Map): java.lang.Object; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as a Ref object + * in the Java programming language. + */ + // @ts-ignore + getRef(columnIndex: number): java.sql.Ref; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as a Blob object + * in the Java programming language. + */ + // @ts-ignore + getBlob(columnIndex: number): java.sql.Blob; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as a Clob object + * in the Java programming language. + */ + // @ts-ignore + getClob(columnIndex: number): java.sql.Clob; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as an Array object + * in the Java programming language. + */ + // @ts-ignore + getArray(columnIndex: number): java.sql.Array; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as an Object + * in the Java programming language. + * If the value is an SQL NULL, + * the driver returns a Java null. + * This method uses the specified Map object for + * custom mapping if appropriate. + */ + // @ts-ignore + getObject(columnLabel: string, map: java.util.Map): java.lang.Object; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as a Ref object + * in the Java programming language. + */ + // @ts-ignore + getRef(columnLabel: string): java.sql.Ref; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as a Blob object + * in the Java programming language. + */ + // @ts-ignore + getBlob(columnLabel: string): java.sql.Blob; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as a Clob object + * in the Java programming language. + */ + // @ts-ignore + getClob(columnLabel: string): java.sql.Clob; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as an Array object + * in the Java programming language. + */ + // @ts-ignore + getArray(columnLabel: string): java.sql.Array; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as a java.sql.Date object + * in the Java programming language. + * This method uses the given calendar to construct an appropriate millisecond + * value for the date if the underlying database does not store + * timezone information. + */ + // @ts-ignore + getDate(columnIndex: number, cal: java.util.Calendar): java.sql.Date; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as a java.sql.Date object + * in the Java programming language. + * This method uses the given calendar to construct an appropriate millisecond + * value for the date if the underlying database does not store + * timezone information. + */ + // @ts-ignore + getDate(columnLabel: string, cal: java.util.Calendar): java.sql.Date; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as a java.sql.Time object + * in the Java programming language. + * This method uses the given calendar to construct an appropriate millisecond + * value for the time if the underlying database does not store + * timezone information. + */ + // @ts-ignore + getTime(columnIndex: number, cal: java.util.Calendar): java.sql.Time; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as a java.sql.Time object + * in the Java programming language. + * This method uses the given calendar to construct an appropriate millisecond + * value for the time if the underlying database does not store + * timezone information. + */ + // @ts-ignore + getTime(columnLabel: string, cal: java.util.Calendar): java.sql.Time; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as a java.sql.Timestamp object + * in the Java programming language. + * This method uses the given calendar to construct an appropriate millisecond + * value for the timestamp if the underlying database does not store + * timezone information. + */ + // @ts-ignore + getTimestamp(columnIndex: number, cal: java.util.Calendar): java.sql.Timestamp; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as a java.sql.Timestamp object + * in the Java programming language. + * This method uses the given calendar to construct an appropriate millisecond + * value for the timestamp if the underlying database does not store + * timezone information. + */ + // @ts-ignore + getTimestamp(columnLabel: string, cal: java.util.Calendar): java.sql.Timestamp; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as a java.net.URL + * object in the Java programming language. + */ + // @ts-ignore + getURL(columnIndex: number): java.net.URL; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as a java.net.URL + * object in the Java programming language. + */ + // @ts-ignore + getURL(columnLabel: string): java.net.URL; + /** + * Updates the designated column with a java.sql.Ref value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateRef(columnIndex: number, x: java.sql.Ref): void; + /** + * Updates the designated column with a java.sql.Ref value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateRef(columnLabel: string, x: java.sql.Ref): void; + /** + * Updates the designated column with a java.sql.Blob value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateBlob(columnIndex: number, x: java.sql.Blob): void; + /** + * Updates the designated column with a java.sql.Blob value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateBlob(columnLabel: string, x: java.sql.Blob): void; + /** + * Updates the designated column with a java.sql.Clob value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateClob(columnIndex: number, x: java.sql.Clob): void; + /** + * Updates the designated column with a java.sql.Clob value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateClob(columnLabel: string, x: java.sql.Clob): void; + /** + * Updates the designated column with a java.sql.Array value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateArray(columnIndex: number, x: java.sql.Array): void; + /** + * Updates the designated column with a java.sql.Array value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateArray(columnLabel: string, x: java.sql.Array): void; + /** + * Retrieves the value of the designated column in the current row of this + * ResultSet object as a java.sql.RowId object in the Java + * programming language. + */ + // @ts-ignore + getRowId(columnIndex: number): java.sql.RowId; + /** + * Retrieves the value of the designated column in the current row of this + * ResultSet object as a java.sql.RowId object in the Java + * programming language. + */ + // @ts-ignore + getRowId(columnLabel: string): java.sql.RowId; + /** + * Updates the designated column with a RowId value. The updater + * methods are used to update column values in the current row or the insert + * row. The updater methods do not update the underlying database; instead + * the updateRow or insertRow methods are called + * to update the database. + */ + // @ts-ignore + updateRowId(columnIndex: number, x: java.sql.RowId): void; + /** + * Updates the designated column with a RowId value. The updater + * methods are used to update column values in the current row or the insert + * row. The updater methods do not update the underlying database; instead + * the updateRow or insertRow methods are called + * to update the database. + */ + // @ts-ignore + updateRowId(columnLabel: string, x: java.sql.RowId): void; + /** + * Retrieves the holdability of this ResultSet object + */ + // @ts-ignore + getHoldability(): number; + /** + * Retrieves whether this ResultSet object has been closed. A ResultSet is closed if the + * method close has been called on it, or if it is automatically closed. + */ + // @ts-ignore + isClosed(): boolean; + /** + * Updates the designated column with a String value. + * It is intended for use when updating NCHAR,NVARCHAR + * and LONGNVARCHAR columns. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateNString(columnIndex: number, nString: string): void; + /** + * Updates the designated column with a String value. + * It is intended for use when updating NCHAR,NVARCHAR + * and LONGNVARCHAR columns. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateNString(columnLabel: string, nString: string): void; + /** + * Updates the designated column with a java.sql.NClob value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateNClob(columnIndex: number, nClob: java.sql.NClob): void; + /** + * Updates the designated column with a java.sql.NClob value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateNClob(columnLabel: string, nClob: java.sql.NClob): void; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as a NClob object + * in the Java programming language. + */ + // @ts-ignore + getNClob(columnIndex: number): java.sql.NClob; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as a NClob object + * in the Java programming language. + */ + // @ts-ignore + getNClob(columnLabel: string): java.sql.NClob; + /** + * Retrieves the value of the designated column in the current row of + * this ResultSet as a + * java.sql.SQLXML object in the Java programming language. + */ + // @ts-ignore + getSQLXML(columnIndex: number): java.sql.SQLXML; + /** + * Retrieves the value of the designated column in the current row of + * this ResultSet as a + * java.sql.SQLXML object in the Java programming language. + */ + // @ts-ignore + getSQLXML(columnLabel: string): java.sql.SQLXML; + /** + * Updates the designated column with a java.sql.SQLXML value. + * The updater + * methods are used to update column values in the current row or the insert + * row. The updater methods do not update the underlying database; instead + * the updateRow or insertRow methods are called + * to update the database. + *

+ */ + // @ts-ignore + updateSQLXML(columnIndex: number, xmlObject: java.sql.SQLXML): void; + /** + * Updates the designated column with a java.sql.SQLXML value. + * The updater + * methods are used to update column values in the current row or the insert + * row. The updater methods do not update the underlying database; instead + * the updateRow or insertRow methods are called + * to update the database. + *

+ */ + // @ts-ignore + updateSQLXML(columnLabel: string, xmlObject: java.sql.SQLXML): void; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as + * a String in the Java programming language. + * It is intended for use when + * accessing NCHAR,NVARCHAR + * and LONGNVARCHAR columns. + */ + // @ts-ignore + getNString(columnIndex: number): string; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as + * a String in the Java programming language. + * It is intended for use when + * accessing NCHAR,NVARCHAR + * and LONGNVARCHAR columns. + */ + // @ts-ignore + getNString(columnLabel: string): string; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as a + * java.io.Reader object. + * It is intended for use when + * accessing NCHAR,NVARCHAR + * and LONGNVARCHAR columns. + */ + // @ts-ignore + getNCharacterStream(columnIndex: number): java.io.Reader; + /** + * Retrieves the value of the designated column in the current row + * of this ResultSet object as a + * java.io.Reader object. + * It is intended for use when + * accessing NCHAR,NVARCHAR + * and LONGNVARCHAR columns. + */ + // @ts-ignore + getNCharacterStream(columnLabel: string): java.io.Reader; + /** + * Updates the designated column with a character stream value, which will have + * the specified number of bytes. The + * driver does the necessary conversion from Java character format to + * the national character set in the database. + * It is intended for use when + * updating NCHAR,NVARCHAR + * and LONGNVARCHAR columns. + *

+ * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateNCharacterStream(columnIndex: number, x: java.io.Reader, length: number): void; + /** + * Updates the designated column with a character stream value, which will have + * the specified number of bytes. The + * driver does the necessary conversion from Java character format to + * the national character set in the database. + * It is intended for use when + * updating NCHAR,NVARCHAR + * and LONGNVARCHAR columns. + *

+ * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateNCharacterStream(columnLabel: string, reader: java.io.Reader, length: number): void; + /** + * Updates the designated column with an ascii stream value, which will have + * the specified number of bytes. + *

+ * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateAsciiStream(columnIndex: number, x: java.io.InputStream, length: number): void; + /** + * Updates the designated column with a binary stream value, which will have + * the specified number of bytes. + *

+ * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateBinaryStream(columnIndex: number, x: java.io.InputStream, length: number): void; + /** + * Updates the designated column with a character stream value, which will have + * the specified number of bytes. + *

+ * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateCharacterStream(columnIndex: number, x: java.io.Reader, length: number): void; + /** + * Updates the designated column with an ascii stream value, which will have + * the specified number of bytes. + *

+ * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateAsciiStream(columnLabel: string, x: java.io.InputStream, length: number): void; + /** + * Updates the designated column with a binary stream value, which will have + * the specified number of bytes. + *

+ * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateBinaryStream(columnLabel: string, x: java.io.InputStream, length: number): void; + /** + * Updates the designated column with a character stream value, which will have + * the specified number of bytes. + *

+ * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateCharacterStream(columnLabel: string, reader: java.io.Reader, length: number): void; + /** + * Updates the designated column using the given input stream, which + * will have the specified number of bytes. + *

+ * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateBlob(columnIndex: number, inputStream: java.io.InputStream, length: number): void; + /** + * Updates the designated column using the given input stream, which + * will have the specified number of bytes. + *

+ * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateBlob(columnLabel: string, inputStream: java.io.InputStream, length: number): void; + /** + * Updates the designated column using the given Reader + * object, which is the given number of characters long. + * When a very large UNICODE value is input to a LONGVARCHAR + * parameter, it may be more practical to send it via a + * java.io.Reader object. The JDBC driver will + * do any necessary conversion from UNICODE to the database char format. + *

+ * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateClob(columnIndex: number, reader: java.io.Reader, length: number): void; + /** + * Updates the designated column using the given Reader + * object, which is the given number of characters long. + * When a very large UNICODE value is input to a LONGVARCHAR + * parameter, it may be more practical to send it via a + * java.io.Reader object. The JDBC driver will + * do any necessary conversion from UNICODE to the database char format. + *

+ * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateClob(columnLabel: string, reader: java.io.Reader, length: number): void; + /** + * Updates the designated column using the given Reader + * object, which is the given number of characters long. + * When a very large UNICODE value is input to a LONGVARCHAR + * parameter, it may be more practical to send it via a + * java.io.Reader object. The JDBC driver will + * do any necessary conversion from UNICODE to the database char format. + *

+ * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateNClob(columnIndex: number, reader: java.io.Reader, length: number): void; + /** + * Updates the designated column using the given Reader + * object, which is the given number of characters long. + * When a very large UNICODE value is input to a LONGVARCHAR + * parameter, it may be more practical to send it via a + * java.io.Reader object. The JDBC driver will + * do any necessary conversion from UNICODE to the database char format. + *

+ * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + */ + // @ts-ignore + updateNClob(columnLabel: string, reader: java.io.Reader, length: number): void; + /** + * Updates the designated column with a character stream value. + * The data will be read from the stream + * as needed until end-of-stream is reached. The + * driver does the necessary conversion from Java character format to + * the national character set in the database. + * It is intended for use when + * updating NCHAR,NVARCHAR + * and LONGNVARCHAR columns. + *

+ * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + *

Note: Consult your JDBC driver documentation to determine if + * it might be more efficient to use a version of + * updateNCharacterStream which takes a length parameter. + */ + // @ts-ignore + updateNCharacterStream(columnIndex: number, x: java.io.Reader): void; + /** + * Updates the designated column with a character stream value. + * The data will be read from the stream + * as needed until end-of-stream is reached. The + * driver does the necessary conversion from Java character format to + * the national character set in the database. + * It is intended for use when + * updating NCHAR,NVARCHAR + * and LONGNVARCHAR columns. + *

+ * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + *

Note: Consult your JDBC driver documentation to determine if + * it might be more efficient to use a version of + * updateNCharacterStream which takes a length parameter. + */ + // @ts-ignore + updateNCharacterStream(columnLabel: string, reader: java.io.Reader): void; + /** + * Updates the designated column with an ascii stream value. + * The data will be read from the stream + * as needed until end-of-stream is reached. + *

+ * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + *

Note: Consult your JDBC driver documentation to determine if + * it might be more efficient to use a version of + * updateAsciiStream which takes a length parameter. + */ + // @ts-ignore + updateAsciiStream(columnIndex: number, x: java.io.InputStream): void; + /** + * Updates the designated column with a binary stream value. + * The data will be read from the stream + * as needed until end-of-stream is reached. + *

+ * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + *

Note: Consult your JDBC driver documentation to determine if + * it might be more efficient to use a version of + * updateBinaryStream which takes a length parameter. + */ + // @ts-ignore + updateBinaryStream(columnIndex: number, x: java.io.InputStream): void; + /** + * Updates the designated column with a character stream value. + * The data will be read from the stream + * as needed until end-of-stream is reached. + *

+ * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + *

Note: Consult your JDBC driver documentation to determine if + * it might be more efficient to use a version of + * updateCharacterStream which takes a length parameter. + */ + // @ts-ignore + updateCharacterStream(columnIndex: number, x: java.io.Reader): void; + /** + * Updates the designated column with an ascii stream value. + * The data will be read from the stream + * as needed until end-of-stream is reached. + *

+ * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + *

Note: Consult your JDBC driver documentation to determine if + * it might be more efficient to use a version of + * updateAsciiStream which takes a length parameter. + */ + // @ts-ignore + updateAsciiStream(columnLabel: string, x: java.io.InputStream): void; + /** + * Updates the designated column with a binary stream value. + * The data will be read from the stream + * as needed until end-of-stream is reached. + *

+ * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + *

Note: Consult your JDBC driver documentation to determine if + * it might be more efficient to use a version of + * updateBinaryStream which takes a length parameter. + */ + // @ts-ignore + updateBinaryStream(columnLabel: string, x: java.io.InputStream): void; + /** + * Updates the designated column with a character stream value. + * The data will be read from the stream + * as needed until end-of-stream is reached. + *

+ * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + *

Note: Consult your JDBC driver documentation to determine if + * it might be more efficient to use a version of + * updateCharacterStream which takes a length parameter. + */ + // @ts-ignore + updateCharacterStream(columnLabel: string, reader: java.io.Reader): void; + /** + * Updates the designated column using the given input stream. The data will be read from the stream + * as needed until end-of-stream is reached. + *

+ * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + *

Note: Consult your JDBC driver documentation to determine if + * it might be more efficient to use a version of + * updateBlob which takes a length parameter. + */ + // @ts-ignore + updateBlob(columnIndex: number, inputStream: java.io.InputStream): void; + /** + * Updates the designated column using the given input stream. The data will be read from the stream + * as needed until end-of-stream is reached. + *

+ * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + *

Note: Consult your JDBC driver documentation to determine if + * it might be more efficient to use a version of + * updateBlob which takes a length parameter. + */ + // @ts-ignore + updateBlob(columnLabel: string, inputStream: java.io.InputStream): void; + /** + * Updates the designated column using the given Reader + * object. + * The data will be read from the stream + * as needed until end-of-stream is reached. The JDBC driver will + * do any necessary conversion from UNICODE to the database char format. + *

+ * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + *

Note: Consult your JDBC driver documentation to determine if + * it might be more efficient to use a version of + * updateClob which takes a length parameter. + */ + // @ts-ignore + updateClob(columnIndex: number, reader: java.io.Reader): void; + /** + * Updates the designated column using the given Reader + * object. + * The data will be read from the stream + * as needed until end-of-stream is reached. The JDBC driver will + * do any necessary conversion from UNICODE to the database char format. + *

+ * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + *

Note: Consult your JDBC driver documentation to determine if + * it might be more efficient to use a version of + * updateClob which takes a length parameter. + */ + // @ts-ignore + updateClob(columnLabel: string, reader: java.io.Reader): void; + /** + * Updates the designated column using the given Reader + * The data will be read from the stream + * as needed until end-of-stream is reached. The JDBC driver will + * do any necessary conversion from UNICODE to the database char format. + *

+ * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + *

Note: Consult your JDBC driver documentation to determine if + * it might be more efficient to use a version of + * updateNClob which takes a length parameter. + */ + // @ts-ignore + updateNClob(columnIndex: number, reader: java.io.Reader): void; + /** + * Updates the designated column using the given Reader + * object. + * The data will be read from the stream + * as needed until end-of-stream is reached. The JDBC driver will + * do any necessary conversion from UNICODE to the database char format. + *

+ * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the updateRow or + * insertRow methods are called to update the database. + *

Note: Consult your JDBC driver documentation to determine if + * it might be more efficient to use a version of + * updateNClob which takes a length parameter. + */ + // @ts-ignore + updateNClob(columnLabel: string, reader: java.io.Reader): void; + /** + *

Retrieves the value of the designated column in the current row + * of this ResultSet object and will convert from the + * SQL type of the column to the requested Java data type, if the + * conversion is supported. If the conversion is not + * supported or null is specified for the type, a + * SQLException is thrown. + *

+ * At a minimum, an implementation must support the conversions defined in + * Appendix B, Table B-3 and conversion of appropriate user defined SQL + * types to a Java type which implements {@code SQLData}, or {@code Struct}. + * Additional conversions may be supported and are vendor defined. + */ + // @ts-ignore + getObject(columnIndex: number, type: java.lang.Class): java.lang.Object; + /** + *

Retrieves the value of the designated column in the current row + * of this ResultSet object and will convert from the + * SQL type of the column to the requested Java data type, if the + * conversion is supported. If the conversion is not + * supported or null is specified for the type, a + * SQLException is thrown. + *

+ * At a minimum, an implementation must support the conversions defined in + * Appendix B, Table B-3 and conversion of appropriate user defined SQL + * types to a Java type which implements {@code SQLData}, or {@code Struct}. + * Additional conversions may be supported and are vendor defined. + */ + // @ts-ignore + getObject(columnLabel: string, type: java.lang.Class): java.lang.Object; + /** + * Updates the designated column with an {@code Object} value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the {@code updateRow} or + * {@code insertRow} methods are called to update the database. + *

+ * If the second argument is an {@code InputStream} then the stream must contain + * the number of bytes specified by scaleOrLength. If the second argument is a + * {@code Reader} then the reader must contain the number of characters specified + * by scaleOrLength. If these conditions are not true the driver will generate a + * {@code SQLException} when the statement is executed. + *

+ * The default implementation will throw {@code SQLFeatureNotSupportedException} + */ + // @ts-ignore + updateObject(columnIndex: number, x: java.lang.Object, targetSqlType: java.sql.SQLType, scaleOrLength: number): void; + /** + * Updates the designated column with an {@code Object} value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the {@code updateRow} or + * {@code insertRow} methods are called to update the database. + *

+ * If the second argument is an {@code InputStream} then the stream must + * contain number of bytes specified by scaleOrLength. If the second + * argument is a {@code Reader} then the reader must contain the number + * of characters specified by scaleOrLength. If these conditions are not + * true the driver will generate a + * {@code SQLException} when the statement is executed. + *

+ * The default implementation will throw {@code SQLFeatureNotSupportedException} + */ + // @ts-ignore + updateObject(columnLabel: string, x: java.lang.Object, targetSqlType: java.sql.SQLType, scaleOrLength: number): void; + /** + * Updates the designated column with an {@code Object} value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the {@code updateRow} or + * {@code insertRow} methods are called to update the database. + *

+ * The default implementation will throw {@code SQLFeatureNotSupportedException} + */ + // @ts-ignore + updateObject(columnIndex: number, x: java.lang.Object, targetSqlType: java.sql.SQLType): void; + /** + * Updates the designated column with an {@code Object} value. + * The updater methods are used to update column values in the + * current row or the insert row. The updater methods do not + * update the underlying database; instead the {@code updateRow} or + * {@code insertRow} methods are called to update the database. + *

+ * The default implementation will throw {@code SQLFeatureNotSupportedException} + */ + // @ts-ignore + updateObject(columnLabel: string, x: java.lang.Object, targetSqlType: java.sql.SQLType): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.ResultSetMetaData.d.ts b/packages/types/dist/typings/jdk/java.sql.ResultSetMetaData.d.ts new file mode 100644 index 00000000..19c89d7a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.ResultSetMetaData.d.ts @@ -0,0 +1,133 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + interface ResultSetMetaData { + // @ts-ignore + columnNoNulls: number; + // @ts-ignore + columnNullable: number; + // @ts-ignore + columnNullableUnknown: number; + /** + * Returns the number of columns in this ResultSet object. + */ + // @ts-ignore + getColumnCount(): number; + /** + * Indicates whether the designated column is automatically numbered. + */ + // @ts-ignore + isAutoIncrement(column: number): boolean; + /** + * Indicates whether a column's case matters. + */ + // @ts-ignore + isCaseSensitive(column: number): boolean; + /** + * Indicates whether the designated column can be used in a where clause. + */ + // @ts-ignore + isSearchable(column: number): boolean; + /** + * Indicates whether the designated column is a cash value. + */ + // @ts-ignore + isCurrency(column: number): boolean; + /** + * Indicates the nullability of values in the designated column. + */ + // @ts-ignore + isNullable(column: number): number; + /** + * Indicates whether values in the designated column are signed numbers. + */ + // @ts-ignore + isSigned(column: number): boolean; + /** + * Indicates the designated column's normal maximum width in characters. + */ + // @ts-ignore + getColumnDisplaySize(column: number): number; + /** + * Gets the designated column's suggested title for use in printouts and + * displays. The suggested title is usually specified by the SQL AS + * clause. If a SQL AS is not specified, the value returned from + * getColumnLabel will be the same as the value returned by the + * getColumnName method. + */ + // @ts-ignore + getColumnLabel(column: number): string; + /** + * Get the designated column's name. + */ + // @ts-ignore + getColumnName(column: number): string; + /** + * Get the designated column's table's schema. + */ + // @ts-ignore + getSchemaName(column: number): string; + /** + * Get the designated column's specified column size. + * For numeric data, this is the maximum precision. For character data, this is the length in characters. + * For datetime datatypes, this is the length in characters of the String representation (assuming the + * maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For the ROWID datatype, + * this is the length in bytes. 0 is returned for data types where the + * column size is not applicable. + */ + // @ts-ignore + getPrecision(column: number): number; + /** + * Gets the designated column's number of digits to right of the decimal point. + * 0 is returned for data types where the scale is not applicable. + */ + // @ts-ignore + getScale(column: number): number; + /** + * Gets the designated column's table name. + */ + // @ts-ignore + getTableName(column: number): string; + /** + * Gets the designated column's table's catalog name. + */ + // @ts-ignore + getCatalogName(column: number): string; + /** + * Retrieves the designated column's SQL type. + */ + // @ts-ignore + getColumnType(column: number): number; + /** + * Retrieves the designated column's database-specific type name. + */ + // @ts-ignore + getColumnTypeName(column: number): string; + /** + * Indicates whether the designated column is definitely not writable. + */ + // @ts-ignore + isReadOnly(column: number): boolean; + /** + * Indicates whether it is possible for a write on the designated column to succeed. + */ + // @ts-ignore + isWritable(column: number): boolean; + /** + * Indicates whether a write on the designated column will definitely succeed. + */ + // @ts-ignore + isDefinitelyWritable(column: number): boolean; + /** + *

Returns the fully-qualified name of the Java class whose instances + * are manufactured if the method ResultSet.getObject + * is called to retrieve a value + * from the column. ResultSet.getObject may return a subclass of the + * class returned by this method. + */ + // @ts-ignore + getColumnClassName(column: number): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.RowId.d.ts b/packages/types/dist/typings/jdk/java.sql.RowId.d.ts new file mode 100644 index 00000000..f9a6f0cf --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.RowId.d.ts @@ -0,0 +1,49 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + interface RowId { + /** + * Compares this RowId to the specified object. The result is + * true if and only if the argument is not null and is a RowId + * object that represents the same ROWID as this object. + *

+ * It is important + * to consider both the origin and the valid lifetime of a RowId + * when comparing it to another RowId. If both are valid, and + * both are from the same table on the same data source, then if they are equal + * they identify + * the same row; if one or more is no longer guaranteed to be valid, or if + * they originate from different data sources, or different tables on the + * same data source, they may be equal but still + * not identify the same row. + */ + // @ts-ignore + equals(obj: java.lang.Object): boolean; + /** + * Returns an array of bytes representing the value of the SQL ROWID + * designated by this java.sql.RowId object. + */ + // @ts-ignore + getBytes(): number[]; + /** + * Returns a String representing the value of the SQL ROWID designated by this + * java.sql.RowId object. + *

+ * Like java.sql.Date.toString() + * returns the contents of its DATE as the String "2004-03-17" + * rather than as DATE literal in SQL (which would have been the String + * DATE "2004-03-17"), toString() + * returns the contents of its ROWID in a form specific to the driver supplying + * the connection, and possibly not as a ROWID literal. + */ + // @ts-ignore + toString(): string; + /** + * Returns a hash code value of this RowId object. + */ + // @ts-ignore + hashCode(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.RowIdLifetime.d.ts b/packages/types/dist/typings/jdk/java.sql.RowIdLifetime.d.ts new file mode 100644 index 00000000..20bbf4d8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.RowIdLifetime.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + class RowIdLifetime extends java.lang.Enum { + // @ts-ignore + public static ROWID_UNSUPPORTED: java.sql.RowIdLifetime; + // @ts-ignore + public static ROWID_VALID_OTHER: java.sql.RowIdLifetime; + // @ts-ignore + public static ROWID_VALID_SESSION: java.sql.RowIdLifetime; + // @ts-ignore + public static ROWID_VALID_TRANSACTION: java.sql.RowIdLifetime; + // @ts-ignore + public static ROWID_VALID_FOREVER: java.sql.RowIdLifetime; + // @ts-ignore + public static values(): java.sql.RowIdLifetime[]; + // @ts-ignore + public static valueOf(name: string): java.sql.RowIdLifetime; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.SQLClientInfoException.d.ts b/packages/types/dist/typings/jdk/java.sql.SQLClientInfoException.d.ts new file mode 100644 index 00000000..b4348f5d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.SQLClientInfoException.d.ts @@ -0,0 +1,113 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + class SQLClientInfoException extends java.sql.SQLException { + /** + * Constructs a SQLClientInfoException Object. + * The reason, + * SQLState, and failedProperties list are initialized to + * null and the vendor code is initialized to 0. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor() + /** + * Constructs a SQLClientInfoException object initialized with a + * given failedProperties. + * The reason and SQLState are initialized + * to null and the vendor code is initialized to 0. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor(failedProperties: java.util.Map) + /** + * Constructs a SQLClientInfoException object initialized with + * a given cause and failedProperties. + * The reason is initialized to null if + * cause==null or to cause.toString() if + * cause!=null and the vendor code is initialized to 0. + *

+ */ + // @ts-ignore + constructor(failedProperties: java.util.Map, cause: java.lang.Throwable) + /** + * Constructs a SQLClientInfoException object initialized with a + * given reason and failedProperties. + * The SQLState is initialized + * to null and the vendor code is initialized to 0. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor(reason: string, failedProperties: java.util.Map) + /** + * Constructs a SQLClientInfoException object initialized with a + * given reason, cause and + * failedProperties. + * The SQLState is initialized + * to null and the vendor code is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, failedProperties: java.util.Map, cause: java.lang.Throwable) + /** + * Constructs a SQLClientInfoException object initialized with a + * given reason, SQLState and + * failedProperties. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. The vendor code + * is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, failedProperties: java.util.Map) + /** + * Constructs a SQLClientInfoException object initialized with a + * given reason, SQLState, cause + * and failedProperties. The vendor code is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, failedProperties: java.util.Map, cause: java.lang.Throwable) + /** + * Constructs a SQLClientInfoException object initialized with a + * given reason, SQLState, + * vendorCode and failedProperties. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, vendorCode: number, failedProperties: java.util.Map) + /** + * Constructs a SQLClientInfoException object initialized with a + * given reason, SQLState, + * cause, vendorCode and + * failedProperties. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, vendorCode: number, failedProperties: java.util.Map, cause: java.lang.Throwable) + /** + * Returns the list of client info properties that could not be set. The + * keys in the Map contain the names of the client info + * properties that could not be set and the values contain one of the + * reason codes defined in ClientInfoStatus + *

+ */ + // @ts-ignore + public getFailedProperties(): java.util.Map; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.SQLData.d.ts b/packages/types/dist/typings/jdk/java.sql.SQLData.d.ts new file mode 100644 index 00000000..f0367316 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.SQLData.d.ts @@ -0,0 +1,56 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + interface SQLData { + /** + * Returns the fully-qualified + * name of the SQL user-defined type that this object represents. + * This method is called by the JDBC driver to get the name of the + * UDT instance that is being mapped to this instance of + * SQLData. + */ + // @ts-ignore + getSQLTypeName(): string; + /** + * Populates this object with data read from the database. + * The implementation of the method must follow this protocol: + *

    + *
  • It must read each of the attributes or elements of the SQL + * type from the given input stream. This is done + * by calling a method of the input stream to read each + * item, in the order that they appear in the SQL definition + * of the type. + *
  • The method readSQL then + * assigns the data to appropriate fields or + * elements (of this or other objects). + * Specifically, it must call the appropriate reader method + * (SQLInput.readString, SQLInput.readBigDecimal, + * and so on) method(s) to do the following: + * for a distinct type, read its single data element; + * for a structured type, read a value for each attribute of the SQL type. + *
+ * The JDBC driver initializes the input stream with a type map + * before calling this method, which is used by the appropriate + * SQLInput reader method on the stream. + */ + // @ts-ignore + readSQL(stream: java.sql.SQLInput, typeName: string): void; + /** + * Writes this object to the given SQL data stream, converting it back to + * its SQL value in the data source. + * The implementation of the method must follow this protocol:
+ * It must write each of the attributes of the SQL type + * to the given output stream. This is done by calling a + * method of the output stream to write each item, in the order that + * they appear in the SQL definition of the type. + * Specifically, it must call the appropriate SQLOutput writer + * method(s) (writeInt, writeString, and so on) + * to do the following: for a Distinct Type, write its single data element; + * for a Structured Type, write a value for each attribute of the SQL type. + */ + // @ts-ignore + writeSQL(stream: java.sql.SQLOutput): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.SQLDataException.d.ts b/packages/types/dist/typings/jdk/java.sql.SQLDataException.d.ts new file mode 100644 index 00000000..2a294720 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.SQLDataException.d.ts @@ -0,0 +1,90 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + class SQLDataException extends java.sql.SQLNonTransientException { + /** + * Constructs a SQLDataException object. + * The reason, SQLState are initialized + * to null and the vendor code is initialized to 0. + * The cause is not initialized, and may subsequently be + * initialized by a call to + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor() + /** + * Constructs a SQLDataException object with a given + * reason. + * The SQLState is initialized + * to null and the vendor code is initialized to 0. + * The cause is not initialized, and may subsequently be + * initialized by a call to + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor(reason: string) + /** + * Constructs a SQLDataException object with a given + * reason and SQLState. The + * vendor code is initialized to 0. + * The cause is not initialized, and may subsequently be + * initialized by a call to + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string) + /** + * Constructs a SQLDataException object with a given + * reason, SQLState and + * vendorCode. + * The cause is not initialized, and may subsequently be + * initialized by a call to + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, vendorCode: number) + /** + * Constructs a SQLDataException object with a given + * cause. + * The SQLState is initialized + * to null and the vendor code is initialized to 0. + * The reason is initialized to null if + * cause==null or to cause.toString() if + * cause!=null. + *

+ */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + /** + * Constructs a SQLDataException object with a given + * reason and cause. + * The SQLState is initialized to null + * and the vendor code is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, cause: java.lang.Throwable) + /** + * Constructs a SQLDataException object with a given + * reason, SQLState and cause. + * The vendor code is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, cause: java.lang.Throwable) + /** + * Constructs a SQLDataException object with a given + * reason, SQLState, vendorCode + * and cause. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, vendorCode: number, cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.SQLException.d.ts b/packages/types/dist/typings/jdk/java.sql.SQLException.d.ts new file mode 100644 index 00000000..90993c53 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.SQLException.d.ts @@ -0,0 +1,117 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + class SQLException extends java.lang.Exception { + /** + * Constructs a SQLException object with a given + * reason, SQLState and + * vendorCode. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, vendorCode: number) + /** + * Constructs a SQLException object with a given + * reason and SQLState. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. The vendor code + * is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string) + /** + * Constructs a SQLException object with a given + * reason. The SQLState is initialized to + * null and the vendor code is initialized to 0. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor(reason: string) + /** + * Constructs a SQLException object. + * The reason, SQLState are initialized + * to null and the vendor code is initialized to 0. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + */ + // @ts-ignore + constructor() + /** + * Constructs a SQLException object with a given + * cause. + * The SQLState is initialized + * to null and the vendor code is initialized to 0. + * The reason is initialized to null if + * cause==null or to cause.toString() if + * cause!=null. + *

+ */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + /** + * Constructs a SQLException object with a given + * reason and cause. + * The SQLState is initialized to null + * and the vendor code is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, cause: java.lang.Throwable) + /** + * Constructs a SQLException object with a given + * reason, SQLState and cause. + * The vendor code is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, sqlState: string, cause: java.lang.Throwable) + /** + * Constructs a SQLException object with a given + * reason, SQLState, vendorCode + * and cause. + *

+ */ + // @ts-ignore + constructor(reason: string, sqlState: string, vendorCode: number, cause: java.lang.Throwable) + /** + * Retrieves the SQLState for this SQLException object. + */ + // @ts-ignore + public getSQLState(): string; + /** + * Retrieves the vendor-specific exception code + * for this SQLException object. + */ + // @ts-ignore + public getErrorCode(): number; + /** + * Retrieves the exception chained to this + * SQLException object by setNextException(SQLException ex). + */ + // @ts-ignore + public getNextException(): java.sql.SQLException; + /** + * Adds an SQLException object to the end of the chain. + */ + // @ts-ignore + public setNextException(ex: java.sql.SQLException): void; + /** + * Returns an iterator over the chained SQLExceptions. The iterator will + * be used to iterate over each SQLException and its underlying cause + * (if any). + */ + // @ts-ignore + public iterator(): java.util.Iterator; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.SQLFeatureNotSupportedException.d.ts b/packages/types/dist/typings/jdk/java.sql.SQLFeatureNotSupportedException.d.ts new file mode 100644 index 00000000..e7cf2b56 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.SQLFeatureNotSupportedException.d.ts @@ -0,0 +1,93 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + class SQLFeatureNotSupportedException extends java.sql.SQLNonTransientException { + /** + * Constructs a SQLFeatureNotSupportedException object. + * The reason, SQLState are initialized + * to null and the vendor code is initialized to 0. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor() + /** + * Constructs a SQLFeatureNotSupportedException object + * with a given reason. The SQLState + * is initialized to null and the vendor code is initialized + * to 0. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor(reason: string) + /** + * Constructs a SQLFeatureNotSupportedException object + * with a given reason and SQLState. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. The vendor code + * is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string) + /** + * Constructs a SQLFeatureNotSupportedException object + * with a given reason, SQLState and + * vendorCode. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, vendorCode: number) + /** + * Constructs a SQLFeatureNotSupportedException object + * with a given cause. + * The SQLState is initialized + * to null and the vendor code is initialized to 0. + * The reason is initialized to null if + * cause==null or to cause.toString() if + * cause!=null. + *

+ */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + /** + * Constructs a SQLFeatureNotSupportedException object + * with a given + * reason and cause. + * The SQLState is initialized to null + * and the vendor code is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, cause: java.lang.Throwable) + /** + * Constructs a SQLFeatureNotSupportedException object + * with a given + * reason, SQLState and cause. + * The vendor code is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, cause: java.lang.Throwable) + /** + * Constructs a SQLFeatureNotSupportedException object + * with a given + * reason, SQLState, vendorCode + * and cause. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, vendorCode: number, cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.SQLInput.d.ts b/packages/types/dist/typings/jdk/java.sql.SQLInput.d.ts new file mode 100644 index 00000000..5039330a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.SQLInput.d.ts @@ -0,0 +1,198 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + interface SQLInput { + /** + * Reads the next attribute in the stream and returns it as a String + * in the Java programming language. + */ + // @ts-ignore + readString(): string; + /** + * Reads the next attribute in the stream and returns it as a boolean + * in the Java programming language. + */ + // @ts-ignore + readBoolean(): boolean; + /** + * Reads the next attribute in the stream and returns it as a byte + * in the Java programming language. + */ + // @ts-ignore + readByte(): number; + /** + * Reads the next attribute in the stream and returns it as a short + * in the Java programming language. + */ + // @ts-ignore + readShort(): number; + /** + * Reads the next attribute in the stream and returns it as an int + * in the Java programming language. + */ + // @ts-ignore + readInt(): number; + /** + * Reads the next attribute in the stream and returns it as a long + * in the Java programming language. + */ + // @ts-ignore + readLong(): number; + /** + * Reads the next attribute in the stream and returns it as a float + * in the Java programming language. + */ + // @ts-ignore + readFloat(): number; + /** + * Reads the next attribute in the stream and returns it as a double + * in the Java programming language. + */ + // @ts-ignore + readDouble(): number; + /** + * Reads the next attribute in the stream and returns it as a java.math.BigDecimal + * object in the Java programming language. + */ + // @ts-ignore + readBigDecimal(): java.math.BigDecimal; + /** + * Reads the next attribute in the stream and returns it as an array of bytes + * in the Java programming language. + */ + // @ts-ignore + readBytes(): number[]; + /** + * Reads the next attribute in the stream and returns it as a java.sql.Date object. + */ + // @ts-ignore + readDate(): java.sql.Date; + /** + * Reads the next attribute in the stream and returns it as a java.sql.Time object. + */ + // @ts-ignore + readTime(): java.sql.Time; + /** + * Reads the next attribute in the stream and returns it as a java.sql.Timestamp object. + */ + // @ts-ignore + readTimestamp(): java.sql.Timestamp; + /** + * Reads the next attribute in the stream and returns it as a stream of Unicode characters. + */ + // @ts-ignore + readCharacterStream(): java.io.Reader; + /** + * Reads the next attribute in the stream and returns it as a stream of ASCII characters. + */ + // @ts-ignore + readAsciiStream(): java.io.InputStream; + /** + * Reads the next attribute in the stream and returns it as a stream of uninterpreted + * bytes. + */ + // @ts-ignore + readBinaryStream(): java.io.InputStream; + /** + * Reads the datum at the head of the stream and returns it as an + * Object in the Java programming language. The + * actual type of the object returned is determined by the default type + * mapping, and any customizations present in this stream's type map. + *

A type map is registered with the stream by the JDBC driver before the + * stream is passed to the application. + *

When the datum at the head of the stream is an SQL NULL, + * the method returns null. If the datum is an SQL structured or distinct + * type, it determines the SQL type of the datum at the head of the stream. + * If the stream's type map has an entry for that SQL type, the driver + * constructs an object of the appropriate class and calls the method + * SQLData.readSQL on that object, which reads additional data from the + * stream, using the protocol described for that method. + */ + // @ts-ignore + readObject(): java.lang.Object; + /** + * Reads an SQL REF value from the stream and returns it as a + * Ref object in the Java programming language. + */ + // @ts-ignore + readRef(): java.sql.Ref; + /** + * Reads an SQL BLOB value from the stream and returns it as a + * Blob object in the Java programming language. + */ + // @ts-ignore + readBlob(): java.sql.Blob; + /** + * Reads an SQL CLOB value from the stream and returns it as a + * Clob object in the Java programming language. + */ + // @ts-ignore + readClob(): java.sql.Clob; + /** + * Reads an SQL ARRAY value from the stream and returns it as an + * Array object in the Java programming language. + */ + // @ts-ignore + readArray(): java.sql.Array; + /** + * Retrieves whether the last value read was SQL NULL. + */ + // @ts-ignore + wasNull(): boolean; + /** + * Reads an SQL DATALINK value from the stream and returns it as a + * java.net.URL object in the Java programming language. + */ + // @ts-ignore + readURL(): java.net.URL; + /** + * Reads an SQL NCLOB value from the stream and returns it as a + * NClob object in the Java programming language. + */ + // @ts-ignore + readNClob(): java.sql.NClob; + /** + * Reads the next attribute in the stream and returns it as a String + * in the Java programming language. It is intended for use when + * accessing NCHAR,NVARCHAR + * and LONGNVARCHAR columns. + */ + // @ts-ignore + readNString(): string; + /** + * Reads an SQL XML value from the stream and returns it as a + * SQLXML object in the Java programming language. + */ + // @ts-ignore + readSQLXML(): java.sql.SQLXML; + /** + * Reads an SQL ROWID value from the stream and returns it as a + * RowId object in the Java programming language. + */ + // @ts-ignore + readRowId(): java.sql.RowId; + /** + * Reads the next attribute in the stream and returns it as an + * {@code Object} in the Java programming language. The + * actual type of the object returned is determined by the specified + * Java data type, and any customizations present in this + * stream's type map. + *

A type map is registered with the stream by the JDBC driver before the + * stream is passed to the application. + *

When the attribute at the head of the stream is an SQL {@code NULL} + * the method returns {@code null}. If the attribute is an SQL + * structured or distinct + * type, it determines the SQL type of the attribute at the head of the stream. + * If the stream's type map has an entry for that SQL type, the driver + * constructs an object of the appropriate class and calls the method + * {@code SQLData.readSQL} on that object, which reads additional data from the + * stream, using the protocol described for that method. + *

+ * The default implementation will throw {@code SQLFeatureNotSupportedException} + */ + // @ts-ignore + readObject(type: java.lang.Class): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.SQLIntegrityConstraintViolationException.d.ts b/packages/types/dist/typings/jdk/java.sql.SQLIntegrityConstraintViolationException.d.ts new file mode 100644 index 00000000..d3cb8d22 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.SQLIntegrityConstraintViolationException.d.ts @@ -0,0 +1,93 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + class SQLIntegrityConstraintViolationException extends java.sql.SQLNonTransientException { + /** + * Constructs a SQLIntegrityConstraintViolationException object. + * The reason, SQLState are initialized + * to null and the vendor code is initialized to 0. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor() + /** + * Constructs a SQLIntegrityConstraintViolationException + * with a given reason. The SQLState + * is initialized to null and the vendor code is initialized + * to 0. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor(reason: string) + /** + * Constructs a SQLIntegrityConstraintViolationException + * object with a given reason and SQLState. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. The vendor code + * is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string) + /** + * Constructs a SQLIntegrityConstraintViolationException object + * with a given reason, SQLState and + * vendorCode. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, vendorCode: number) + /** + * Constructs an SQLIntegrityConstraintViolationException object with + * a given cause. + * The SQLState is initialized + * to null and the vendor code is initialized to 0. + * The reason is initialized to null if + * cause==null or to cause.toString() if + * cause!=null. + *

+ */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + /** + * Constructs a SQLIntegrityConstraintViolationException object + * with a given + * reason and cause. + * The SQLState is initialized to null + * and the vendor code is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, cause: java.lang.Throwable) + /** + * Constructs a SQLIntegrityConstraintViolationException object + * with a given + * reason, SQLState and cause. + * The vendor code is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, cause: java.lang.Throwable) + /** + * Constructs a SQLIntegrityConstraintViolationException object + * with a given + * reason, SQLState, vendorCode + * and cause. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, vendorCode: number, cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.SQLInvalidAuthorizationSpecException.d.ts b/packages/types/dist/typings/jdk/java.sql.SQLInvalidAuthorizationSpecException.d.ts new file mode 100644 index 00000000..12df8675 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.SQLInvalidAuthorizationSpecException.d.ts @@ -0,0 +1,93 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + class SQLInvalidAuthorizationSpecException extends java.sql.SQLNonTransientException { + /** + * Constructs a SQLInvalidAuthorizationSpecException object. + * The reason, SQLState are initialized + * to null and the vendor code is initialized to 0. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor() + /** + * Constructs a SQLInvalidAuthorizationSpecException object + * with a given reason. The SQLState + * is initialized to null and the vendor code is initialized + * to 0. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor(reason: string) + /** + * Constructs a SQLInvalidAuthorizationSpecException object + * with a given reason and SQLState. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. The vendor code + * is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string) + /** + * Constructs a SQLInvalidAuthorizationSpecException object + * with a given reason, SQLState and + * vendorCode. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, vendorCode: number) + /** + * Constructs a SQLInvalidAuthorizationSpecException object + * with a given cause. + * The SQLState is initialized + * to null and the vendor code is initialized to 0. + * The reason is initialized to null if + * cause==null or to cause.toString() if + * cause!=null. + *

+ */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + /** + * Constructs a SQLInvalidAuthorizationSpecException object + * with a given + * reason and cause. + * The SQLState is initialized to null + * and the vendor code is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, cause: java.lang.Throwable) + /** + * Constructs a SQLInvalidAuthorizationSpecException object + * with a given + * reason, SQLState and cause. + * The vendor code is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, cause: java.lang.Throwable) + /** + * Constructs a SQLInvalidAuthorizationSpecException object + * with a given + * reason, SQLState, vendorCode + * and cause. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, vendorCode: number, cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.SQLNonTransientConnectionException.d.ts b/packages/types/dist/typings/jdk/java.sql.SQLNonTransientConnectionException.d.ts new file mode 100644 index 00000000..66c8b074 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.SQLNonTransientConnectionException.d.ts @@ -0,0 +1,93 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + class SQLNonTransientConnectionException extends java.sql.SQLNonTransientException { + /** + * Constructs a SQLNonTransientConnectionException object. + * The reason, SQLState are initialized + * to null and the vendor code is initialized to 0. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor() + /** + * Constructs a SQLNonTransientConnectionException object + * with a given reason. The SQLState + * is initialized to null and the vendor code is initialized + * to 0. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor(reason: string) + /** + * Constructs a SQLNonTransientConnectionException object + * with a given reason and SQLState. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. The vendor code + * is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string) + /** + * Constructs a SQLNonTransientConnectionException object + * with a given reason, SQLState and + * vendorCode. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, vendorCode: number) + /** + * Constructs a SQLNonTransientConnectionException object + * with a given cause. + * The SQLState is initialized + * to null and the vendor code is initialized to 0. + * The reason is initialized to null if + * cause==null or to cause.toString() if + * cause!=null. + *

+ */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + /** + * Constructs a SQLTransientException object + * with a given + * reason and cause. + * The SQLState is initialized to null + * and the vendor code is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, cause: java.lang.Throwable) + /** + * Constructs a SQLNonTransientConnectionException object + * with a given + * reason, SQLState and cause. + * The vendor code is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, cause: java.lang.Throwable) + /** + * Constructs a SQLNonTransientConnectionException object + * with a given + * reason, SQLState, vendorCode + * and cause. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, vendorCode: number, cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.SQLNonTransientException.d.ts b/packages/types/dist/typings/jdk/java.sql.SQLNonTransientException.d.ts new file mode 100644 index 00000000..49151d15 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.SQLNonTransientException.d.ts @@ -0,0 +1,93 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + class SQLNonTransientException extends java.sql.SQLException { + /** + * Constructs a SQLNonTransientException object. + * The reason, SQLState are initialized + * to null and the vendor code is initialized to 0. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor() + /** + * Constructs a SQLNonTransientException object + * with a given reason. The SQLState + * is initialized to null and the vendor code is initialized + * to 0. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor(reason: string) + /** + * Constructs a SQLNonTransientException object + * with a given reason and SQLState. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. The vendor code + * is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string) + /** + * Constructs a SQLNonTransientException object + * with a given reason, SQLState and + * vendorCode. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, vendorCode: number) + /** + * Constructs a SQLNonTransientException object + * with a given cause. + * The SQLState is initialized + * to null and the vendor code is initialized to 0. + * The reason is initialized to null if + * cause==null or to cause.toString() if + * cause!=null. + *

+ */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + /** + * Constructs a SQLTransientException object + * with a given + * reason and cause. + * The SQLState is initialized to null + * and the vendor code is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, cause: java.lang.Throwable) + /** + * Constructs a SQLNonTransientException object + * with a given + * reason, SQLState and cause. + * The vendor code is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, cause: java.lang.Throwable) + /** + * Constructs a SQLNonTransientException object + * with a given + * reason, SQLState, vendorCode + * and cause. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, vendorCode: number, cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.SQLOutput.d.ts b/packages/types/dist/typings/jdk/java.sql.SQLOutput.d.ts new file mode 100644 index 00000000..5e3c134d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.SQLOutput.d.ts @@ -0,0 +1,210 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + interface SQLOutput { + /** + * Writes the next attribute to the stream as a String + * in the Java programming language. + */ + // @ts-ignore + writeString(x: string): void; + /** + * Writes the next attribute to the stream as a Java boolean. + * Writes the next attribute to the stream as a String + * in the Java programming language. + */ + // @ts-ignore + writeBoolean(x: boolean): void; + /** + * Writes the next attribute to the stream as a Java byte. + * Writes the next attribute to the stream as a String + * in the Java programming language. + */ + // @ts-ignore + writeByte(x: number): void; + /** + * Writes the next attribute to the stream as a Java short. + * Writes the next attribute to the stream as a String + * in the Java programming language. + */ + // @ts-ignore + writeShort(x: number): void; + /** + * Writes the next attribute to the stream as a Java int. + * Writes the next attribute to the stream as a String + * in the Java programming language. + */ + // @ts-ignore + writeInt(x: number): void; + /** + * Writes the next attribute to the stream as a Java long. + * Writes the next attribute to the stream as a String + * in the Java programming language. + */ + // @ts-ignore + writeLong(x: number): void; + /** + * Writes the next attribute to the stream as a Java float. + * Writes the next attribute to the stream as a String + * in the Java programming language. + */ + // @ts-ignore + writeFloat(x: number): void; + /** + * Writes the next attribute to the stream as a Java double. + * Writes the next attribute to the stream as a String + * in the Java programming language. + */ + // @ts-ignore + writeDouble(x: number): void; + /** + * Writes the next attribute to the stream as a java.math.BigDecimal object. + * Writes the next attribute to the stream as a String + * in the Java programming language. + */ + // @ts-ignore + writeBigDecimal(x: java.math.BigDecimal): void; + /** + * Writes the next attribute to the stream as an array of bytes. + * Writes the next attribute to the stream as a String + * in the Java programming language. + */ + // @ts-ignore + writeBytes(x: number): void; + /** + * Writes the next attribute to the stream as a java.sql.Date object. + * Writes the next attribute to the stream as a java.sql.Date object + * in the Java programming language. + */ + // @ts-ignore + writeDate(x: java.sql.Date): void; + /** + * Writes the next attribute to the stream as a java.sql.Time object. + * Writes the next attribute to the stream as a java.sql.Date object + * in the Java programming language. + */ + // @ts-ignore + writeTime(x: java.sql.Time): void; + /** + * Writes the next attribute to the stream as a java.sql.Timestamp object. + * Writes the next attribute to the stream as a java.sql.Date object + * in the Java programming language. + */ + // @ts-ignore + writeTimestamp(x: java.sql.Timestamp): void; + /** + * Writes the next attribute to the stream as a stream of Unicode characters. + */ + // @ts-ignore + writeCharacterStream(x: java.io.Reader): void; + /** + * Writes the next attribute to the stream as a stream of ASCII characters. + */ + // @ts-ignore + writeAsciiStream(x: java.io.InputStream): void; + /** + * Writes the next attribute to the stream as a stream of uninterpreted + * bytes. + */ + // @ts-ignore + writeBinaryStream(x: java.io.InputStream): void; + /** + * Writes to the stream the data contained in the given + * SQLData object. + * When the SQLData object is null, this + * method writes an SQL NULL to the stream. + * Otherwise, it calls the SQLData.writeSQL + * method of the given object, which + * writes the object's attributes to the stream. + * The implementation of the method SQLData.writeSQL + * calls the appropriate SQLOutput writer method(s) + * for writing each of the object's attributes in order. + * The attributes must be read from an SQLInput + * input stream and written to an SQLOutput + * output stream in the same order in which they were + * listed in the SQL definition of the user-defined type. + */ + // @ts-ignore + writeObject(x: java.sql.SQLData): void; + /** + * Writes an SQL REF value to the stream. + */ + // @ts-ignore + writeRef(x: java.sql.Ref): void; + /** + * Writes an SQL BLOB value to the stream. + */ + // @ts-ignore + writeBlob(x: java.sql.Blob): void; + /** + * Writes an SQL CLOB value to the stream. + */ + // @ts-ignore + writeClob(x: java.sql.Clob): void; + /** + * Writes an SQL structured type value to the stream. + */ + // @ts-ignore + writeStruct(x: java.sql.Struct): void; + /** + * Writes an SQL ARRAY value to the stream. + */ + // @ts-ignore + writeArray(x: java.sql.Array): void; + /** + * Writes a SQL DATALINK value to the stream. + */ + // @ts-ignore + writeURL(x: java.net.URL): void; + /** + * Writes the next attribute to the stream as a String + * in the Java programming language. The driver converts this to a + * SQL NCHAR or + * NVARCHAR or LONGNVARCHAR value + * (depending on the argument's + * size relative to the driver's limits on NVARCHAR values) + * when it sends it to the stream. + */ + // @ts-ignore + writeNString(x: string): void; + /** + * Writes an SQL NCLOB value to the stream. + */ + // @ts-ignore + writeNClob(x: java.sql.NClob): void; + /** + * Writes an SQL ROWID value to the stream. + */ + // @ts-ignore + writeRowId(x: java.sql.RowId): void; + /** + * Writes an SQL XML value to the stream. + */ + // @ts-ignore + writeSQLXML(x: java.sql.SQLXML): void; + /** + * Writes to the stream the data contained in the given object. The + * object will be converted to the specified targetSqlType + * before being sent to the stream. + *

+ * When the {@code object} is {@code null}, this + * method writes an SQL {@code NULL} to the stream. + *

+ * If the object has a custom mapping (is of a class implementing the + * interface {@code SQLData}), + * the JDBC driver should call the method {@code SQLData.writeSQL} to + * write it to the SQL data stream. + * If, on the other hand, the object is of a class implementing + * {@code Ref}, {@code Blob}, {@code Clob}, {@code NClob}, + * {@code Struct}, {@code java.net.URL}, + * or {@code Array}, the driver should pass it to the database as a + * value of the corresponding SQL type. + *

+ * The default implementation will throw {@code SQLFeatureNotSupportedException} + */ + // @ts-ignore + writeObject(x: java.lang.Object, targetSqlType: java.sql.SQLType): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.SQLPermission.d.ts b/packages/types/dist/typings/jdk/java.sql.SQLPermission.d.ts new file mode 100644 index 00000000..ce9e8623 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.SQLPermission.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + class SQLPermission extends java.security.BasicPermission { + /** + * Creates a new SQLPermission object with the specified name. + * The name is the symbolic name of the SQLPermission. + */ + // @ts-ignore + constructor(name: string) + /** + * Creates a new SQLPermission object with the specified name. + * The name is the symbolic name of the SQLPermission; the + * actions String is currently unused and should be + * null. + */ + // @ts-ignore + constructor(name: string, actions: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.SQLRecoverableException.d.ts b/packages/types/dist/typings/jdk/java.sql.SQLRecoverableException.d.ts new file mode 100644 index 00000000..479989f5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.SQLRecoverableException.d.ts @@ -0,0 +1,93 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + class SQLRecoverableException extends java.sql.SQLException { + /** + * Constructs a SQLRecoverableException object. + * The reason, SQLState are initialized + * to null and the vendor code is initialized to 0. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor() + /** + * Constructs a SQLRecoverableException object + * with a given reason. The SQLState + * is initialized to null and the vendor code is initialized + * to 0. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor(reason: string) + /** + * Constructs a SQLRecoverableException object + * with a given reason and SQLState. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. The vendor code + * is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string) + /** + * Constructs a SQLRecoverableException object + * with a given reason, SQLState and + * vendorCode. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, vendorCode: number) + /** + * Constructs a SQLRecoverableException object + * with a given cause. + * The SQLState is initialized + * to null and the vendor code is initialized to 0. + * The reason is initialized to null if + * cause==null or to cause.toString() if + * cause!=null. + *

+ */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + /** + * Constructs a SQLRecoverableException object + * with a given + * reason and cause. + * The SQLState is initialized to null + * and the vendor code is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, cause: java.lang.Throwable) + /** + * Constructs a SQLRecoverableException object + * with a given + * reason, SQLState and cause. + * The vendor code is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, cause: java.lang.Throwable) + /** + * Constructs a SQLRecoverableException object + * with a given + * reason, SQLState, vendorCode + * and cause. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, vendorCode: number, cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.SQLSyntaxErrorException.d.ts b/packages/types/dist/typings/jdk/java.sql.SQLSyntaxErrorException.d.ts new file mode 100644 index 00000000..51f9090b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.SQLSyntaxErrorException.d.ts @@ -0,0 +1,93 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + class SQLSyntaxErrorException extends java.sql.SQLNonTransientException { + /** + * Constructs a SQLSyntaxErrorException object. + * The reason, SQLState are initialized + * to null and the vendor code is initialized to 0. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor() + /** + * Constructs a SQLSyntaxErrorException object + * with a given reason. The SQLState + * is initialized to null and the vendor code is initialized + * to 0. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor(reason: string) + /** + * Constructs a SQLSyntaxErrorException object + * with a given reason and SQLState. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. The vendor code + * is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string) + /** + * Constructs a SQLSyntaxErrorException object + * with a given reason, SQLState and + * vendorCode. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, vendorCode: number) + /** + * Constructs a SQLSyntaxErrorException object + * with a given cause. + * The SQLState is initialized + * to null and the vendor code is initialized to 0. + * The reason is initialized to null if + * cause==null or to cause.toString() if + * cause!=null. + *

+ */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + /** + * Constructs a SQLSyntaxErrorException object + * with a given + * reason and cause. + * The SQLState is initialized to null + * and the vendor code is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, cause: java.lang.Throwable) + /** + * Constructs a SQLSyntaxErrorException object + * with a given + * reason, SQLState and cause. + * The vendor code is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, cause: java.lang.Throwable) + /** + * Constructs a SQLSyntaxErrorException object + * with a given + * reason, SQLState, vendorCode + * and cause. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, vendorCode: number, cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.SQLTimeoutException.d.ts b/packages/types/dist/typings/jdk/java.sql.SQLTimeoutException.d.ts new file mode 100644 index 00000000..0d87eb0b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.SQLTimeoutException.d.ts @@ -0,0 +1,93 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + class SQLTimeoutException extends java.sql.SQLTransientException { + /** + * Constructs a SQLTimeoutException object. + * The reason, SQLState are initialized + * to null and the vendor code is initialized to 0. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor() + /** + * Constructs a SQLTimeoutException object + * with a given reason. The SQLState + * is initialized to null and the vendor code is initialized + * to 0. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor(reason: string) + /** + * Constructs a SQLTimeoutException object + * with a given reason and SQLState. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. The vendor code + * is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string) + /** + * Constructs a SQLTimeoutException object + * with a given reason, SQLState and + * vendorCode. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, vendorCode: number) + /** + * Constructs a SQLTimeoutException object + * with a given cause. + * The SQLState is initialized + * to null and the vendor code is initialized to 0. + * The reason is initialized to null if + * cause==null or to cause.toString() if + * cause!=null. + *

+ */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + /** + * Constructs a SQLTimeoutException object + * with a given + * reason and cause. + * The SQLState is initialized to null + * and the vendor code is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, cause: java.lang.Throwable) + /** + * Constructs a SQLTimeoutException object + * with a given + * reason, SQLState and cause. + * The vendor code is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, cause: java.lang.Throwable) + /** + * Constructs a SQLTimeoutException object + * with a given + * reason, SQLState, vendorCode + * and cause. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, vendorCode: number, cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.SQLTransactionRollbackException.d.ts b/packages/types/dist/typings/jdk/java.sql.SQLTransactionRollbackException.d.ts new file mode 100644 index 00000000..fe3be102 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.SQLTransactionRollbackException.d.ts @@ -0,0 +1,93 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + class SQLTransactionRollbackException extends java.sql.SQLTransientException { + /** + * Constructs a SQLTransactionRollbackException object. + * The reason, SQLState are initialized + * to null and the vendor code is initialized to 0. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor() + /** + * Constructs a SQLTransactionRollbackException object + * with a given reason. The SQLState + * is initialized to null and the vendor code is initialized + * to 0. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor(reason: string) + /** + * Constructs a SQLTransactionRollbackException object + * with a given reason and SQLState. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. The vendor code + * is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string) + /** + * Constructs a SQLTransactionRollbackException object + * with a given reason, SQLState and + * vendorCode. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, vendorCode: number) + /** + * Constructs a SQLTransactionRollbackException object + * with a given cause. + * The SQLState is initialized + * to null and the vendor code is initialized to 0. + * The reason is initialized to null if + * cause==null or to cause.toString() if + * cause!=null. + *

+ */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + /** + * Constructs a SQLTransactionRollbackException object + * with a given + * reason and cause. + * The SQLState is initialized to null + * and the vendor code is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, cause: java.lang.Throwable) + /** + * Constructs a SQLTransactionRollbackException object + * with a given + * reason, SQLState and cause. + * The vendor code is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, cause: java.lang.Throwable) + /** + * Constructs a SQLTransactionRollbackException object + * with a given + * reason, SQLState, vendorCode + * and cause. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, vendorCode: number, cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.SQLTransientConnectionException.d.ts b/packages/types/dist/typings/jdk/java.sql.SQLTransientConnectionException.d.ts new file mode 100644 index 00000000..394a4b8e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.SQLTransientConnectionException.d.ts @@ -0,0 +1,93 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + class SQLTransientConnectionException extends java.sql.SQLTransientException { + /** + * Constructs a SQLTransientConnectionException object. + * The reason, SQLState are initialized + * to null and the vendor code is initialized to 0. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor() + /** + * Constructs a SQLTransientConnectionException object + * with a given reason. The SQLState + * is initialized to null and the vendor code is initialized + * to 0. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor(reason: string) + /** + * Constructs a SQLTransientConnectionException object + * with a given reason and SQLState. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. The vendor code + * is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string) + /** + * Constructs a SQLTransientConnectionException object + * with a given reason, SQLState and + * vendorCode. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, vendorCode: number) + /** + * Constructs a SQLTransientConnectionException object + * with a given cause. + * The SQLState is initialized + * to null and the vendor code is initialized to 0. + * The reason is initialized to null if + * cause==null or to cause.toString() if + * cause!=null. + *

+ */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + /** + * Constructs a SQLTransientConnectionException object + * with a given + * reason and cause. + * The SQLState is initialized to null + * and the vendor code is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, cause: java.lang.Throwable) + /** + * Constructs a SQLTransientConnectionException object + * with a given + * reason, SQLState and cause. + * The vendor code is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, cause: java.lang.Throwable) + /** + * Constructs a SQLTransientConnectionException object + * with a given + * reason, SQLState, vendorCode + * and cause. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, vendorCode: number, cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.SQLTransientException.d.ts b/packages/types/dist/typings/jdk/java.sql.SQLTransientException.d.ts new file mode 100644 index 00000000..ebf139d1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.SQLTransientException.d.ts @@ -0,0 +1,93 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + class SQLTransientException extends java.sql.SQLException { + /** + * Constructs a SQLTransientException object. + * The reason, SQLState are initialized + * to null and the vendor code is initialized to 0. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor() + /** + * Constructs a SQLTransientException object + * with a given reason. The SQLState + * is initialized to null and the vendor code is initialized + * to 0. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor(reason: string) + /** + * Constructs a SQLTransientException object + * with a given reason and SQLState. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. The vendor code + * is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string) + /** + * Constructs a SQLTransientException object + * with a given reason, SQLState and + * vendorCode. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, vendorCode: number) + /** + * Constructs a SQLTransientException object + * with a given cause. + * The SQLState is initialized + * to null and the vendor code is initialized to 0. + * The reason is initialized to null if + * cause==null or to cause.toString() if + * cause!=null. + *

+ */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + /** + * Constructs a SQLTransientException object + * with a given + * reason and cause. + * The SQLState is initialized to null + * and the vendor code is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, cause: java.lang.Throwable) + /** + * Constructs a SQLTransientException object + * with a given + * reason, SQLState and cause. + * The vendor code is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, cause: java.lang.Throwable) + /** + * Constructs a SQLTransientException object + * with a given + * reason, SQLState, vendorCode + * and cause. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, vendorCode: number, cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.SQLType.d.ts b/packages/types/dist/typings/jdk/java.sql.SQLType.d.ts new file mode 100644 index 00000000..a7894dc5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.SQLType.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + interface SQLType { + /** + * Returns the {@code SQLType} name that represents a SQL data type. + */ + // @ts-ignore + getName(): string; + /** + * Returns the name of the vendor that supports this data type. The value + * returned typically is the package name for this vendor. + */ + // @ts-ignore + getVendor(): string; + /** + * Returns the vendor specific type number for the data type. + */ + // @ts-ignore + getVendorTypeNumber(): java.lang.Integer; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.SQLWarning.d.ts b/packages/types/dist/typings/jdk/java.sql.SQLWarning.d.ts new file mode 100644 index 00000000..69c1ec75 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.SQLWarning.d.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + class SQLWarning extends java.sql.SQLException { + /** + * Constructs a SQLWarning object + * with a given reason, SQLState and + * vendorCode. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, vendorCode: number) + /** + * Constructs a SQLWarning object + * with a given reason and SQLState. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. The vendor code + * is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string) + /** + * Constructs a SQLWarning object + * with a given reason. The SQLState + * is initialized to null and the vendor code is initialized + * to 0. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + *

+ */ + // @ts-ignore + constructor(reason: string) + /** + * Constructs a SQLWarning object. + * The reason, SQLState are initialized + * to null and the vendor code is initialized to 0. + * The cause is not initialized, and may subsequently be + * initialized by a call to the + * {@link Throwable#initCause(java.lang.Throwable)} method. + */ + // @ts-ignore + constructor() + /** + * Constructs a SQLWarning object + * with a given cause. + * The SQLState is initialized + * to null and the vendor code is initialized to 0. + * The reason is initialized to null if + * cause==null or to cause.toString() if + * cause!=null. + *

+ */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + /** + * Constructs a SQLWarning object + * with a given + * reason and cause. + * The SQLState is initialized to null + * and the vendor code is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, cause: java.lang.Throwable) + /** + * Constructs a SQLWarning object + * with a given + * reason, SQLState and cause. + * The vendor code is initialized to 0. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, cause: java.lang.Throwable) + /** + * Constructs aSQLWarning object + * with a given + * reason, SQLState, vendorCode + * and cause. + *

+ */ + // @ts-ignore + constructor(reason: string, SQLState: string, vendorCode: number, cause: java.lang.Throwable) + /** + * Retrieves the warning chained to this SQLWarning object by + * setNextWarning. + */ + // @ts-ignore + public getNextWarning(): java.sql.SQLWarning; + /** + * Adds a SQLWarning object to the end of the chain. + */ + // @ts-ignore + public setNextWarning(w: java.sql.SQLWarning): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.SQLXML.d.ts b/packages/types/dist/typings/jdk/java.sql.SQLXML.d.ts new file mode 100644 index 00000000..390a3827 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.SQLXML.d.ts @@ -0,0 +1,147 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + interface SQLXML { + /** + * This method closes this object and releases the resources that it held. + * The SQL XML object becomes invalid and neither readable or writeable + * when this method is called. + * After free has been called, any attempt to invoke a + * method other than free will result in a SQLException + * being thrown. If free is called multiple times, the subsequent + * calls to free are treated as a no-op. + */ + // @ts-ignore + free(): void; + /** + * Retrieves the XML value designated by this SQLXML instance as a stream. + * The bytes of the input stream are interpreted according to appendix F of the XML 1.0 specification. + * The behavior of this method is the same as ResultSet.getBinaryStream() + * when the designated column of the ResultSet has a type java.sql.Types of SQLXML. + *

+ * The SQL XML object becomes not readable when this method is called and + * may also become not writable depending on implementation. + */ + // @ts-ignore + getBinaryStream(): java.io.InputStream; + /** + * Retrieves a stream that can be used to write the XML value that this SQLXML instance represents. + * The stream begins at position 0. + * The bytes of the stream are interpreted according to appendix F of the XML 1.0 specification + * The behavior of this method is the same as ResultSet.updateBinaryStream() + * when the designated column of the ResultSet has a type java.sql.Types of SQLXML. + *

+ * The SQL XML object becomes not writeable when this method is called and + * may also become not readable depending on implementation. + */ + // @ts-ignore + setBinaryStream(): java.io.OutputStream; + /** + * Retrieves the XML value designated by this SQLXML instance as a java.io.Reader object. + * The format of this stream is defined by org.xml.sax.InputSource, + * where the characters in the stream represent the unicode code points for + * XML according to section 2 and appendix B of the XML 1.0 specification. + * Although an encoding declaration other than unicode may be present, + * the encoding of the stream is unicode. + * The behavior of this method is the same as ResultSet.getCharacterStream() + * when the designated column of the ResultSet has a type java.sql.Types of SQLXML. + *

+ * The SQL XML object becomes not readable when this method is called and + * may also become not writable depending on implementation. + */ + // @ts-ignore + getCharacterStream(): java.io.Reader; + /** + * Retrieves a stream to be used to write the XML value that this SQLXML instance represents. + * The format of this stream is defined by org.xml.sax.InputSource, + * where the characters in the stream represent the unicode code points for + * XML according to section 2 and appendix B of the XML 1.0 specification. + * Although an encoding declaration other than unicode may be present, + * the encoding of the stream is unicode. + * The behavior of this method is the same as ResultSet.updateCharacterStream() + * when the designated column of the ResultSet has a type java.sql.Types of SQLXML. + *

+ * The SQL XML object becomes not writeable when this method is called and + * may also become not readable depending on implementation. + */ + // @ts-ignore + setCharacterStream(): java.io.Writer; + /** + * Returns a string representation of the XML value designated by this SQLXML instance. + * The format of this String is defined by org.xml.sax.InputSource, + * where the characters in the stream represent the unicode code points for + * XML according to section 2 and appendix B of the XML 1.0 specification. + * Although an encoding declaration other than unicode may be present, + * the encoding of the String is unicode. + * The behavior of this method is the same as ResultSet.getString() + * when the designated column of the ResultSet has a type java.sql.Types of SQLXML. + *

+ * The SQL XML object becomes not readable when this method is called and + * may also become not writable depending on implementation. + */ + // @ts-ignore + getString(): string; + /** + * Sets the XML value designated by this SQLXML instance to the given String representation. + * The format of this String is defined by org.xml.sax.InputSource, + * where the characters in the stream represent the unicode code points for + * XML according to section 2 and appendix B of the XML 1.0 specification. + * Although an encoding declaration other than unicode may be present, + * the encoding of the String is unicode. + * The behavior of this method is the same as ResultSet.updateString() + * when the designated column of the ResultSet has a type java.sql.Types of SQLXML. + *

+ * The SQL XML object becomes not writeable when this method is called and + * may also become not readable depending on implementation. + */ + // @ts-ignore + setString(value: string): void; + /** + * Returns a Source for reading the XML value designated by this SQLXML instance. + * Sources are used as inputs to XML parsers and XSLT transformers. + *

+ * Sources for XML parsers will have namespace processing on by default. + * The systemID of the Source is implementation dependent. + *

+ * The SQL XML object becomes not readable when this method is called and + * may also become not writable depending on implementation. + *

+ * Note that SAX is a callback architecture, so a returned + * SAXSource should then be set with a content handler that will + * receive the SAX events from parsing. The content handler + * will receive callbacks based on the contents of the XML. + *

+             * SAXSource saxSource = sqlxml.getSource(SAXSource.class);
+             * XMLReader xmlReader = saxSource.getXMLReader();
+             * xmlReader.setContentHandler(myHandler);
+             * xmlReader.parse(saxSource.getInputSource());
+             * 
+ */ + // @ts-ignore + getSource(sourceClass: java.lang.Class): any /*javax.xml.transform.Source*/; + /** + * Returns a Result for setting the XML value designated by this SQLXML instance. + *

+ * The systemID of the Result is implementation dependent. + *

+ * The SQL XML object becomes not writeable when this method is called and + * may also become not readable depending on implementation. + *

+ * Note that SAX is a callback architecture and the returned + * SAXResult has a content handler assigned that will receive the + * SAX events based on the contents of the XML. Call the content + * handler with the contents of the XML document to assign the values. + *

+             * SAXResult saxResult = sqlxml.setResult(SAXResult.class);
+             * ContentHandler contentHandler = saxResult.getXMLReader().getContentHandler();
+             * contentHandler.startDocument();
+             * // set the XML elements and attributes into the result
+             * contentHandler.endDocument();
+             * 
+ */ + // @ts-ignore + setResult(resultClass: java.lang.Class): any /*javax.xml.transform.Result*/; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.Savepoint.d.ts b/packages/types/dist/typings/jdk/java.sql.Savepoint.d.ts new file mode 100644 index 00000000..fec2c209 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.Savepoint.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + interface Savepoint { + /** + * Retrieves the generated ID for the savepoint that this + * Savepoint object represents. + */ + // @ts-ignore + getSavepointId(): number; + /** + * Retrieves the name of the savepoint that this Savepoint + * object represents. + */ + // @ts-ignore + getSavepointName(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.Statement.d.ts b/packages/types/dist/typings/jdk/java.sql.Statement.d.ts new file mode 100644 index 00000000..58c069bb --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.Statement.d.ts @@ -0,0 +1,709 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + interface Statement { + // @ts-ignore + CLOSE_CURRENT_RESULT: number; + // @ts-ignore + KEEP_CURRENT_RESULT: number; + // @ts-ignore + CLOSE_ALL_RESULTS: number; + // @ts-ignore + SUCCESS_NO_INFO: number; + // @ts-ignore + EXECUTE_FAILED: number; + // @ts-ignore + RETURN_GENERATED_KEYS: number; + // @ts-ignore + NO_GENERATED_KEYS: number; + /** + * Executes the given SQL statement, which returns a single + * ResultSet object. + *

+ * Note:This method cannot be called on a + * PreparedStatement or CallableStatement. + */ + // @ts-ignore + executeQuery(sql: string): java.sql.ResultSet; + /** + * Executes the given SQL statement, which may be an INSERT, + * UPDATE, or DELETE statement or an + * SQL statement that returns nothing, such as an SQL DDL statement. + *

+ * Note:This method cannot be called on a + * PreparedStatement or CallableStatement. + */ + // @ts-ignore + executeUpdate(sql: string): number; + /** + * Releases this Statement object's database + * and JDBC resources immediately instead of waiting for + * this to happen when it is automatically closed. + * It is generally good practice to release resources as soon as + * you are finished with them to avoid tying up database + * resources. + *

+ * Calling the method close on a Statement + * object that is already closed has no effect. + *

+ * Note:When a Statement object is + * closed, its current ResultSet object, if one exists, is + * also closed. + */ + // @ts-ignore + close(): void; + /** + * Retrieves the maximum number of bytes that can be + * returned for character and binary column values in a ResultSet + * object produced by this Statement object. + * This limit applies only to BINARY, VARBINARY, + * LONGVARBINARY, CHAR, VARCHAR, + * NCHAR, NVARCHAR, LONGNVARCHAR + * and LONGVARCHAR columns. If the limit is exceeded, the + * excess data is silently discarded. + */ + // @ts-ignore + getMaxFieldSize(): number; + /** + * Sets the limit for the maximum number of bytes that can be returned for + * character and binary column values in a ResultSet + * object produced by this Statement object. + * This limit applies + * only to BINARY, VARBINARY, + * LONGVARBINARY, CHAR, VARCHAR, + * NCHAR, NVARCHAR, LONGNVARCHAR and + * LONGVARCHAR fields. If the limit is exceeded, the excess data + * is silently discarded. For maximum portability, use values + * greater than 256. + */ + // @ts-ignore + setMaxFieldSize(max: number): void; + /** + * Retrieves the maximum number of rows that a + * ResultSet object produced by this + * Statement object can contain. If this limit is exceeded, + * the excess rows are silently dropped. + */ + // @ts-ignore + getMaxRows(): number; + /** + * Sets the limit for the maximum number of rows that any + * ResultSet object generated by this Statement + * object can contain to the given number. + * If the limit is exceeded, the excess + * rows are silently dropped. + */ + // @ts-ignore + setMaxRows(max: number): void; + /** + * Sets escape processing on or off. + * If escape scanning is on (the default), the driver will do + * escape substitution before sending the SQL statement to the database. + *

+ * The {@code Connection} and {@code DataSource} property + * {@code escapeProcessing} may be used to change the default escape processing + * behavior. A value of true (the default) enables escape Processing for + * all {@code Statement} objects. A value of false disables escape processing + * for all {@code Statement} objects. The {@code setEscapeProcessing} + * method may be used to specify the escape processing behavior for an + * individual {@code Statement} object. + *

+ * Note: Since prepared statements have usually been parsed prior + * to making this call, disabling escape processing for + * PreparedStatements objects will have no effect. + */ + // @ts-ignore + setEscapeProcessing(enable: boolean): void; + /** + * Retrieves the number of seconds the driver will + * wait for a Statement object to execute. + * If the limit is exceeded, a + * SQLException is thrown. + */ + // @ts-ignore + getQueryTimeout(): number; + /** + * Sets the number of seconds the driver will wait for a + * Statement object to execute to the given number of seconds. + * By default there is no limit on the amount of time allowed for a running + * statement to complete. If the limit is exceeded, an + * SQLTimeoutException is thrown. + * A JDBC driver must apply this limit to the execute, + * executeQuery and executeUpdate methods. + *

+ * Note: JDBC driver implementations may also apply this + * limit to {@code ResultSet} methods + * (consult your driver vendor documentation for details). + *

+ * Note: In the case of {@code Statement} batching, it is + * implementation defined as to whether the time-out is applied to + * individual SQL commands added via the {@code addBatch} method or to + * the entire batch of SQL commands invoked by the {@code executeBatch} + * method (consult your driver vendor documentation for details). + */ + // @ts-ignore + setQueryTimeout(seconds: number): void; + /** + * Cancels this Statement object if both the DBMS and + * driver support aborting an SQL statement. + * This method can be used by one thread to cancel a statement that + * is being executed by another thread. + */ + // @ts-ignore + cancel(): void; + /** + * Retrieves the first warning reported by calls on this Statement object. + * Subsequent Statement object warnings will be chained to this + * SQLWarning object. + *

The warning chain is automatically cleared each time + * a statement is (re)executed. This method may not be called on a closed + * Statement object; doing so will cause an SQLException + * to be thrown. + *

Note: If you are processing a ResultSet object, any + * warnings associated with reads on that ResultSet object + * will be chained on it rather than on the Statement + * object that produced it. + */ + // @ts-ignore + getWarnings(): java.sql.SQLWarning; + /** + * Clears all the warnings reported on this Statement + * object. After a call to this method, + * the method getWarnings will return + * null until a new warning is reported for this + * Statement object. + */ + // @ts-ignore + clearWarnings(): void; + /** + * Sets the SQL cursor name to the given String, which + * will be used by subsequent Statement object + * execute methods. This name can then be + * used in SQL positioned update or delete statements to identify the + * current row in the ResultSet object generated by this + * statement. If the database does not support positioned update/delete, + * this method is a noop. To insure that a cursor has the proper isolation + * level to support updates, the cursor's SELECT statement + * should have the form SELECT FOR UPDATE. If + * FOR UPDATE is not present, positioned updates may fail. + *

Note: By definition, the execution of positioned updates and + * deletes must be done by a different Statement object than + * the one that generated the ResultSet object being used for + * positioning. Also, cursor names must be unique within a connection. + */ + // @ts-ignore + setCursorName(name: string): void; + /** + * Executes the given SQL statement, which may return multiple results. + * In some (uncommon) situations, a single SQL statement may return + * multiple result sets and/or update counts. Normally you can ignore + * this unless you are (1) executing a stored procedure that you know may + * return multiple results or (2) you are dynamically executing an + * unknown SQL string. + *

+ * The execute method executes an SQL statement and indicates the + * form of the first result. You must then use the methods + * getResultSet or getUpdateCount + * to retrieve the result, and getMoreResults to + * move to any subsequent result(s). + *

+ * Note:This method cannot be called on a + * PreparedStatement or CallableStatement. + */ + // @ts-ignore + execute(sql: string): boolean; + /** + * Retrieves the current result as a ResultSet object. + * This method should be called only once per result. + */ + // @ts-ignore + getResultSet(): java.sql.ResultSet; + /** + * Retrieves the current result as an update count; + * if the result is a ResultSet object or there are no more results, -1 + * is returned. This method should be called only once per result. + */ + // @ts-ignore + getUpdateCount(): number; + /** + * Moves to this Statement object's next result, returns + * true if it is a ResultSet object, and + * implicitly closes any current ResultSet + * object(s) obtained with the method getResultSet. + *

There are no more results when the following is true: + *

{@code
+             * // stmt is a Statement object
+             * ((stmt.getMoreResults() == false) && (stmt.getUpdateCount() == -1))
+             * }
+ */ + // @ts-ignore + getMoreResults(): boolean; + /** + * Gives the driver a hint as to the direction in which + * rows will be processed in ResultSet + * objects created using this Statement object. The + * default value is ResultSet.FETCH_FORWARD. + *

+ * Note that this method sets the default fetch direction for + * result sets generated by this Statement object. + * Each result set has its own methods for getting and setting + * its own fetch direction. + */ + // @ts-ignore + setFetchDirection(direction: number): void; + /** + * Retrieves the direction for fetching rows from + * database tables that is the default for result sets + * generated from this Statement object. + * If this Statement object has not set + * a fetch direction by calling the method setFetchDirection, + * the return value is implementation-specific. + */ + // @ts-ignore + getFetchDirection(): number; + /** + * Gives the JDBC driver a hint as to the number of rows that should + * be fetched from the database when more rows are needed for + * ResultSet objects generated by this Statement. + * If the value specified is zero, then the hint is ignored. + * The default value is zero. + */ + // @ts-ignore + setFetchSize(rows: number): void; + /** + * Retrieves the number of result set rows that is the default + * fetch size for ResultSet objects + * generated from this Statement object. + * If this Statement object has not set + * a fetch size by calling the method setFetchSize, + * the return value is implementation-specific. + */ + // @ts-ignore + getFetchSize(): number; + /** + * Retrieves the result set concurrency for ResultSet objects + * generated by this Statement object. + */ + // @ts-ignore + getResultSetConcurrency(): number; + /** + * Retrieves the result set type for ResultSet objects + * generated by this Statement object. + */ + // @ts-ignore + getResultSetType(): number; + /** + * Adds the given SQL command to the current list of commands for this + * Statement object. The commands in this list can be + * executed as a batch by calling the method executeBatch. + *

+ * Note:This method cannot be called on a + * PreparedStatement or CallableStatement. + */ + // @ts-ignore + addBatch(sql: string): void; + /** + * Empties this Statement object's current list of + * SQL commands. + *

+ */ + // @ts-ignore + clearBatch(): void; + /** + * Submits a batch of commands to the database for execution and + * if all commands execute successfully, returns an array of update counts. + * The int elements of the array that is returned are ordered + * to correspond to the commands in the batch, which are ordered + * according to the order in which they were added to the batch. + * The elements in the array returned by the method executeBatch + * may be one of the following: + *

    + *
  1. A number greater than or equal to zero -- indicates that the + * command was processed successfully and is an update count giving the + * number of rows in the database that were affected by the command's + * execution + *
  2. A value of SUCCESS_NO_INFO -- indicates that the command was + * processed successfully but that the number of rows affected is + * unknown + *

    + * If one of the commands in a batch update fails to execute properly, + * this method throws a BatchUpdateException, and a JDBC + * driver may or may not continue to process the remaining commands in + * the batch. However, the driver's behavior must be consistent with a + * particular DBMS, either always continuing to process commands or never + * continuing to process commands. If the driver continues processing + * after a failure, the array returned by the method + * BatchUpdateException.getUpdateCounts + * will contain as many elements as there are commands in the batch, and + * at least one of the elements will be the following: + *

  3. A value of EXECUTE_FAILED -- indicates that the command failed + * to execute successfully and occurs only if a driver continues to + * process commands after a command fails + *
+ *

+ * The possible implementations and return values have been modified in + * the Java 2 SDK, Standard Edition, version 1.3 to + * accommodate the option of continuing to process commands in a batch + * update after a BatchUpdateException object has been thrown. + */ + // @ts-ignore + executeBatch(): number[]; + /** + * Retrieves the Connection object + * that produced this Statement object. + */ + // @ts-ignore + getConnection(): java.sql.Connection; + /** + * Moves to this Statement object's next result, deals with + * any current ResultSet object(s) according to the instructions + * specified by the given flag, and returns + * true if the next result is a ResultSet object. + *

There are no more results when the following is true: + *

{@code
+             * // stmt is a Statement object
+             * ((stmt.getMoreResults(current) == false) && (stmt.getUpdateCount() == -1))
+             * }
+ */ + // @ts-ignore + getMoreResults(current: number): boolean; + /** + * Retrieves any auto-generated keys created as a result of executing this + * Statement object. If this Statement object did + * not generate any keys, an empty ResultSet + * object is returned. + *

Note:If the columns which represent the auto-generated keys were not specified, + * the JDBC driver implementation will determine the columns which best represent the auto-generated keys. + */ + // @ts-ignore + getGeneratedKeys(): java.sql.ResultSet; + /** + * Executes the given SQL statement and signals the driver with the + * given flag about whether the + * auto-generated keys produced by this Statement object + * should be made available for retrieval. The driver will ignore the + * flag if the SQL statement + * is not an INSERT statement, or an SQL statement able to return + * auto-generated keys (the list of such statements is vendor-specific). + *

+ * Note:This method cannot be called on a + * PreparedStatement or CallableStatement. + */ + // @ts-ignore + executeUpdate(sql: string, autoGeneratedKeys: number): number; + /** + * Executes the given SQL statement and signals the driver that the + * auto-generated keys indicated in the given array should be made available + * for retrieval. This array contains the indexes of the columns in the + * target table that contain the auto-generated keys that should be made + * available. The driver will ignore the array if the SQL statement + * is not an INSERT statement, or an SQL statement able to return + * auto-generated keys (the list of such statements is vendor-specific). + *

+ * Note:This method cannot be called on a + * PreparedStatement or CallableStatement. + */ + // @ts-ignore + executeUpdate(sql: string, columnIndexes: number): number; + /** + * Executes the given SQL statement and signals the driver that the + * auto-generated keys indicated in the given array should be made available + * for retrieval. This array contains the names of the columns in the + * target table that contain the auto-generated keys that should be made + * available. The driver will ignore the array if the SQL statement + * is not an INSERT statement, or an SQL statement able to return + * auto-generated keys (the list of such statements is vendor-specific). + *

+ * Note:This method cannot be called on a + * PreparedStatement or CallableStatement. + */ + // @ts-ignore + executeUpdate(sql: string, columnNames: string): number; + /** + * Executes the given SQL statement, which may return multiple results, + * and signals the driver that any + * auto-generated keys should be made available + * for retrieval. The driver will ignore this signal if the SQL statement + * is not an INSERT statement, or an SQL statement able to return + * auto-generated keys (the list of such statements is vendor-specific). + *

+ * In some (uncommon) situations, a single SQL statement may return + * multiple result sets and/or update counts. Normally you can ignore + * this unless you are (1) executing a stored procedure that you know may + * return multiple results or (2) you are dynamically executing an + * unknown SQL string. + *

+ * The execute method executes an SQL statement and indicates the + * form of the first result. You must then use the methods + * getResultSet or getUpdateCount + * to retrieve the result, and getMoreResults to + * move to any subsequent result(s). + *

+ * Note:This method cannot be called on a + * PreparedStatement or CallableStatement. + */ + // @ts-ignore + execute(sql: string, autoGeneratedKeys: number): boolean; + /** + * Executes the given SQL statement, which may return multiple results, + * and signals the driver that the + * auto-generated keys indicated in the given array should be made available + * for retrieval. This array contains the indexes of the columns in the + * target table that contain the auto-generated keys that should be made + * available. The driver will ignore the array if the SQL statement + * is not an INSERT statement, or an SQL statement able to return + * auto-generated keys (the list of such statements is vendor-specific). + *

+ * Under some (uncommon) situations, a single SQL statement may return + * multiple result sets and/or update counts. Normally you can ignore + * this unless you are (1) executing a stored procedure that you know may + * return multiple results or (2) you are dynamically executing an + * unknown SQL string. + *

+ * The execute method executes an SQL statement and indicates the + * form of the first result. You must then use the methods + * getResultSet or getUpdateCount + * to retrieve the result, and getMoreResults to + * move to any subsequent result(s). + *

+ * Note:This method cannot be called on a + * PreparedStatement or CallableStatement. + */ + // @ts-ignore + execute(sql: string, columnIndexes: number): boolean; + /** + * Executes the given SQL statement, which may return multiple results, + * and signals the driver that the + * auto-generated keys indicated in the given array should be made available + * for retrieval. This array contains the names of the columns in the + * target table that contain the auto-generated keys that should be made + * available. The driver will ignore the array if the SQL statement + * is not an INSERT statement, or an SQL statement able to return + * auto-generated keys (the list of such statements is vendor-specific). + *

+ * In some (uncommon) situations, a single SQL statement may return + * multiple result sets and/or update counts. Normally you can ignore + * this unless you are (1) executing a stored procedure that you know may + * return multiple results or (2) you are dynamically executing an + * unknown SQL string. + *

+ * The execute method executes an SQL statement and indicates the + * form of the first result. You must then use the methods + * getResultSet or getUpdateCount + * to retrieve the result, and getMoreResults to + * move to any subsequent result(s). + *

+ * Note:This method cannot be called on a + * PreparedStatement or CallableStatement. + */ + // @ts-ignore + execute(sql: string, columnNames: string): boolean; + /** + * Retrieves the result set holdability for ResultSet objects + * generated by this Statement object. + */ + // @ts-ignore + getResultSetHoldability(): number; + /** + * Retrieves whether this Statement object has been closed. A Statement is closed if the + * method close has been called on it, or if it is automatically closed. + */ + // @ts-ignore + isClosed(): boolean; + /** + * Requests that a Statement be pooled or not pooled. The value + * specified is a hint to the statement pool implementation indicating + * whether the application wants the statement to be pooled. It is up to + * the statement pool manager as to whether the hint is used. + *

+ * The poolable value of a statement is applicable to both internal + * statement caches implemented by the driver and external statement caches + * implemented by application servers and other applications. + *

+ * By default, a Statement is not poolable when created, and + * a PreparedStatement and CallableStatement + * are poolable when created. + *

+ */ + // @ts-ignore + setPoolable(poolable: boolean): void; + /** + * Returns a value indicating whether the Statement + * is poolable or not. + *

+ */ + // @ts-ignore + isPoolable(): boolean; + /** + * Specifies that this {@code Statement} will be closed when all its + * dependent result sets are closed. If execution of the {@code Statement} + * does not produce any result sets, this method has no effect. + *

+ * Note: Multiple calls to {@code closeOnCompletion} do + * not toggle the effect on this {@code Statement}. However, a call to + * {@code closeOnCompletion} does effect both the subsequent execution of + * statements, and statements that currently have open, dependent, + * result sets. + */ + // @ts-ignore + closeOnCompletion(): void; + /** + * Returns a value indicating whether this {@code Statement} will be + * closed when all its dependent result sets are closed. + */ + // @ts-ignore + isCloseOnCompletion(): boolean; + /** + * Retrieves the current result as an update count; if the result + * is a ResultSet object or there are no more results, -1 + * is returned. This method should be called only once per result. + *

+ * This method should be used when the returned row count may exceed + * {@link Integer#MAX_VALUE}. + *

+ * The default implementation will throw {@code UnsupportedOperationException} + */ + // @ts-ignore + getLargeUpdateCount(): number; + /** + * Sets the limit for the maximum number of rows that any + * ResultSet object generated by this Statement + * object can contain to the given number. + * If the limit is exceeded, the excess + * rows are silently dropped. + *

+ * This method should be used when the row limit may exceed + * {@link Integer#MAX_VALUE}. + *

+ * The default implementation will throw {@code UnsupportedOperationException} + */ + // @ts-ignore + setLargeMaxRows(max: number): void; + /** + * Retrieves the maximum number of rows that a + * ResultSet object produced by this + * Statement object can contain. If this limit is exceeded, + * the excess rows are silently dropped. + *

+ * This method should be used when the returned row limit may exceed + * {@link Integer#MAX_VALUE}. + *

+ * The default implementation will return {@code 0} + */ + // @ts-ignore + getLargeMaxRows(): number; + /** + * Submits a batch of commands to the database for execution and + * if all commands execute successfully, returns an array of update counts. + * The long elements of the array that is returned are ordered + * to correspond to the commands in the batch, which are ordered + * according to the order in which they were added to the batch. + * The elements in the array returned by the method {@code executeLargeBatch} + * may be one of the following: + *

    + *
  1. A number greater than or equal to zero -- indicates that the + * command was processed successfully and is an update count giving the + * number of rows in the database that were affected by the command's + * execution + *
  2. A value of SUCCESS_NO_INFO -- indicates that the command was + * processed successfully but that the number of rows affected is + * unknown + *

    + * If one of the commands in a batch update fails to execute properly, + * this method throws a BatchUpdateException, and a JDBC + * driver may or may not continue to process the remaining commands in + * the batch. However, the driver's behavior must be consistent with a + * particular DBMS, either always continuing to process commands or never + * continuing to process commands. If the driver continues processing + * after a failure, the array returned by the method + * BatchUpdateException.getLargeUpdateCounts + * will contain as many elements as there are commands in the batch, and + * at least one of the elements will be the following: + *

  3. A value of EXECUTE_FAILED -- indicates that the command failed + * to execute successfully and occurs only if a driver continues to + * process commands after a command fails + *
+ *

+ * This method should be used when the returned row count may exceed + * {@link Integer#MAX_VALUE}. + *

+ * The default implementation will throw {@code UnsupportedOperationException} + */ + // @ts-ignore + executeLargeBatch(): number[]; + /** + * Executes the given SQL statement, which may be an INSERT, + * UPDATE, or DELETE statement or an + * SQL statement that returns nothing, such as an SQL DDL statement. + *

+ * This method should be used when the returned row count may exceed + * {@link Integer#MAX_VALUE}. + *

+ * Note:This method cannot be called on a + * PreparedStatement or CallableStatement. + *

+ * The default implementation will throw {@code UnsupportedOperationException} + */ + // @ts-ignore + executeLargeUpdate(sql: string): number; + /** + * Executes the given SQL statement and signals the driver with the + * given flag about whether the + * auto-generated keys produced by this Statement object + * should be made available for retrieval. The driver will ignore the + * flag if the SQL statement + * is not an INSERT statement, or an SQL statement able to return + * auto-generated keys (the list of such statements is vendor-specific). + *

+ * This method should be used when the returned row count may exceed + * {@link Integer#MAX_VALUE}. + *

+ * Note:This method cannot be called on a + * PreparedStatement or CallableStatement. + *

+ * The default implementation will throw {@code SQLFeatureNotSupportedException} + */ + // @ts-ignore + executeLargeUpdate(sql: string, autoGeneratedKeys: number): number; + /** + * Executes the given SQL statement and signals the driver that the + * auto-generated keys indicated in the given array should be made available + * for retrieval. This array contains the indexes of the columns in the + * target table that contain the auto-generated keys that should be made + * available. The driver will ignore the array if the SQL statement + * is not an INSERT statement, or an SQL statement able to return + * auto-generated keys (the list of such statements is vendor-specific). + *

+ * This method should be used when the returned row count may exceed + * {@link Integer#MAX_VALUE}. + *

+ * Note:This method cannot be called on a + * PreparedStatement or CallableStatement. + *

+ * The default implementation will throw {@code SQLFeatureNotSupportedException} + */ + // @ts-ignore + executeLargeUpdate(sql: string, columnIndexes: number): number; + /** + * Executes the given SQL statement and signals the driver that the + * auto-generated keys indicated in the given array should be made available + * for retrieval. This array contains the names of the columns in the + * target table that contain the auto-generated keys that should be made + * available. The driver will ignore the array if the SQL statement + * is not an INSERT statement, or an SQL statement able to return + * auto-generated keys (the list of such statements is vendor-specific). + *

+ * This method should be used when the returned row count may exceed + * {@link Integer#MAX_VALUE}. + *

+ * Note:This method cannot be called on a + * PreparedStatement or CallableStatement. + *

+ * The default implementation will throw {@code SQLFeatureNotSupportedException} + */ + // @ts-ignore + executeLargeUpdate(sql: string, columnNames: string): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.Struct.d.ts b/packages/types/dist/typings/jdk/java.sql.Struct.d.ts new file mode 100644 index 00000000..da8be92b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.Struct.d.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + interface Struct { + /** + * Retrieves the SQL type name of the SQL structured type + * that this Struct object represents. + */ + // @ts-ignore + getSQLTypeName(): string; + /** + * Produces the ordered values of the attributes of the SQL + * structured type that this Struct object represents. + * As individual attributes are processed, this method uses the type map + * associated with the + * connection for customizations of the type mappings. + * If there is no + * entry in the connection's type map that matches the structured + * type that an attribute represents, + * the driver uses the standard mapping. + *

+ * Conceptually, this method calls the method + * getObject on each attribute + * of the structured type and returns a Java array containing + * the result. + */ + // @ts-ignore + getAttributes(): java.lang.Object[]; + /** + * Produces the ordered values of the attributes of the SQL + * structured type that this Struct object represents. + * As individual attributes are processed, this method uses the given type map + * for customizations of the type mappings. + * If there is no + * entry in the given type map that matches the structured + * type that an attribute represents, + * the driver uses the standard mapping. This method never + * uses the type map associated with the connection. + *

+ * Conceptually, this method calls the method + * getObject on each attribute + * of the structured type and returns a Java array containing + * the result. + */ + // @ts-ignore + getAttributes(map: java.util.Map): java.lang.Object[]; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.Time.d.ts b/packages/types/dist/typings/jdk/java.sql.Time.d.ts new file mode 100644 index 00000000..6f94a460 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.Time.d.ts @@ -0,0 +1,104 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + class Time extends java.util.Date { + /** + * Constructs a Time object initialized with the + * given values for the hour, minute, and second. + * The driver sets the date components to January 1, 1970. + * Any method that attempts to access the date components of a + * Time object will throw a + * java.lang.IllegalArgumentException. + *

+ * The result is undefined if a given argument is out of bounds. + */ + // @ts-ignore + constructor(hour: number, minute: number, second: number) + /** + * Constructs a Time object using a milliseconds time value. + */ + // @ts-ignore + constructor(time: number) + /** + * Sets a Time object using a milliseconds time value. + */ + // @ts-ignore + public setTime(time: number): void; + /** + * Converts a string in JDBC time escape format to a Time value. + */ + // @ts-ignore + public static valueOf(s: string): java.sql.Time; + /** + * Formats a time in JDBC time escape format. + */ + // @ts-ignore + public toString(): string; + /** + * This method is deprecated and should not be used because SQL TIME + * values do not have a year component. + */ + // @ts-ignore + public getYear(): number; + /** + * This method is deprecated and should not be used because SQL TIME + * values do not have a month component. + */ + // @ts-ignore + public getMonth(): number; + /** + * This method is deprecated and should not be used because SQL TIME + * values do not have a day component. + */ + // @ts-ignore + public getDay(): number; + /** + * This method is deprecated and should not be used because SQL TIME + * values do not have a date component. + */ + // @ts-ignore + public getDate(): number; + /** + * This method is deprecated and should not be used because SQL TIME + * values do not have a year component. + */ + // @ts-ignore + public setYear(i: number): void; + /** + * This method is deprecated and should not be used because SQL TIME + * values do not have a month component. + */ + // @ts-ignore + public setMonth(i: number): void; + /** + * This method is deprecated and should not be used because SQL TIME + * values do not have a date component. + */ + // @ts-ignore + public setDate(i: number): void; + /** + * Obtains an instance of {@code Time} from a {@link LocalTime} object + * with the same hour, minute and second time value as the given + * {@code LocalTime}. + */ + // @ts-ignore + public static valueOf(time: java.time.LocalTime): java.sql.Time; + /** + * Converts this {@code Time} object to a {@code LocalTime}. + *

+ * The conversion creates a {@code LocalTime} that represents the same + * hour, minute, and second time value as this {@code Time}. + */ + // @ts-ignore + public toLocalTime(): java.time.LocalTime; + /** + * This method always throws an UnsupportedOperationException and should + * not be used because SQL {@code Time} values do not have a date + * component. + */ + // @ts-ignore + public toInstant(): java.time.Instant; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.Timestamp.d.ts b/packages/types/dist/typings/jdk/java.sql.Timestamp.d.ts new file mode 100644 index 00000000..85edf317 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.Timestamp.d.ts @@ -0,0 +1,145 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + class Timestamp extends java.util.Date { + /** + * Constructs a Timestamp object initialized + * with the given values. + */ + // @ts-ignore + constructor(year: number, month: number, date: number, hour: number, minute: number, second: number, nano: number) + /** + * Constructs a Timestamp object + * using a milliseconds time value. The + * integral seconds are stored in the underlying date value; the + * fractional seconds are stored in the nanos field of + * the Timestamp object. + */ + // @ts-ignore + constructor(time: number) + /** + * Sets this Timestamp object to represent a point in time that is + * time milliseconds after January 1, 1970 00:00:00 GMT. + */ + // @ts-ignore + public setTime(time: number): void; + /** + * Returns the number of milliseconds since January 1, 1970, 00:00:00 GMT + * represented by this Timestamp object. + */ + // @ts-ignore + public getTime(): number; + /** + * Converts a String object in JDBC timestamp escape format to a + * Timestamp value. + */ + // @ts-ignore + public static valueOf(s: string): java.sql.Timestamp; + /** + * Formats a timestamp in JDBC timestamp escape format. + * yyyy-mm-dd hh:mm:ss.fffffffff, + * where ffffffffff indicates nanoseconds. + *

+ */ + // @ts-ignore + public toString(): string; + /** + * Gets this Timestamp object's nanos value. + */ + // @ts-ignore + public getNanos(): number; + /** + * Sets this Timestamp object's nanos field + * to the given value. + */ + // @ts-ignore + public setNanos(n: number): void; + /** + * Tests to see if this Timestamp object is + * equal to the given Timestamp object. + */ + // @ts-ignore + public equals(ts: java.sql.Timestamp): boolean; + /** + * Tests to see if this Timestamp object is + * equal to the given object. + * This version of the method equals has been added + * to fix the incorrect + * signature of Timestamp.equals(Timestamp) and to preserve backward + * compatibility with existing class files. + * Note: This method is not symmetric with respect to the + * equals(Object) method in the base class. + */ + // @ts-ignore + public equals(ts: java.lang.Object): boolean; + /** + * Indicates whether this Timestamp object is + * earlier than the given Timestamp object. + */ + // @ts-ignore + public before(ts: java.sql.Timestamp): boolean; + /** + * Indicates whether this Timestamp object is + * later than the given Timestamp object. + */ + // @ts-ignore + public after(ts: java.sql.Timestamp): boolean; + /** + * Compares this Timestamp object to the given + * Timestamp object. + */ + // @ts-ignore + public compareTo(ts: java.sql.Timestamp): number; + /** + * Compares this Timestamp object to the given + * Date object. + */ + // @ts-ignore + public compareTo(o: java.util.Date): number; + /** + * {@inheritDoc} + * The {@code hashCode} method uses the underlying {@code java.util.Date} + * implementation and therefore does not include nanos in its computation. + */ + // @ts-ignore + public hashCode(): number; + /** + * Obtains an instance of {@code Timestamp} from a {@code LocalDateTime} + * object, with the same year, month, day of month, hours, minutes, + * seconds and nanos date-time value as the provided {@code LocalDateTime}. + *

+ * The provided {@code LocalDateTime} is interpreted as the local + * date-time in the local time zone. + */ + // @ts-ignore + public static valueOf(dateTime: java.time.LocalDateTime): java.sql.Timestamp; + /** + * Converts this {@code Timestamp} object to a {@code LocalDateTime}. + *

+ * The conversion creates a {@code LocalDateTime} that represents the + * same year, month, day of month, hours, minutes, seconds and nanos + * date-time value as this {@code Timestamp} in the local time zone. + */ + // @ts-ignore + public toLocalDateTime(): java.time.LocalDateTime; + /** + * Obtains an instance of {@code Timestamp} from an {@link Instant} object. + *

+ * {@code Instant} can store points on the time-line further in the future + * and further in the past than {@code Date}. In this scenario, this method + * will throw an exception. + */ + // @ts-ignore + public static from(instant: java.time.Instant): java.sql.Timestamp; + /** + * Converts this {@code Timestamp} object to an {@code Instant}. + *

+ * The conversion creates an {@code Instant} that represents the same + * point on the time-line as this {@code Timestamp}. + */ + // @ts-ignore + public toInstant(): java.time.Instant; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.Types.d.ts b/packages/types/dist/typings/jdk/java.sql.Types.d.ts new file mode 100644 index 00000000..f01bac3f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.Types.d.ts @@ -0,0 +1,86 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + class Types extends java.lang.Object { + // @ts-ignore + public static BIT: number; + // @ts-ignore + public static TINYINT: number; + // @ts-ignore + public static SMALLINT: number; + // @ts-ignore + public static INTEGER: number; + // @ts-ignore + public static BIGINT: number; + // @ts-ignore + public static FLOAT: number; + // @ts-ignore + public static REAL: number; + // @ts-ignore + public static DOUBLE: number; + // @ts-ignore + public static NUMERIC: number; + // @ts-ignore + public static DECIMAL: number; + // @ts-ignore + public static CHAR: number; + // @ts-ignore + public static VARCHAR: number; + // @ts-ignore + public static LONGVARCHAR: number; + // @ts-ignore + public static DATE: number; + // @ts-ignore + public static TIME: number; + // @ts-ignore + public static TIMESTAMP: number; + // @ts-ignore + public static BINARY: number; + // @ts-ignore + public static VARBINARY: number; + // @ts-ignore + public static LONGVARBINARY: number; + // @ts-ignore + public static NULL: number; + // @ts-ignore + public static OTHER: number; + // @ts-ignore + public static JAVA_OBJECT: number; + // @ts-ignore + public static DISTINCT: number; + // @ts-ignore + public static STRUCT: number; + // @ts-ignore + public static ARRAY: number; + // @ts-ignore + public static BLOB: number; + // @ts-ignore + public static CLOB: number; + // @ts-ignore + public static REF: number; + // @ts-ignore + public static DATALINK: number; + // @ts-ignore + public static BOOLEAN: number; + // @ts-ignore + public static ROWID: number; + // @ts-ignore + public static NCHAR: number; + // @ts-ignore + public static NVARCHAR: number; + // @ts-ignore + public static LONGNVARCHAR: number; + // @ts-ignore + public static NCLOB: number; + // @ts-ignore + public static SQLXML: number; + // @ts-ignore + public static REF_CURSOR: number; + // @ts-ignore + public static TIME_WITH_TIMEZONE: number; + // @ts-ignore + public static TIMESTAMP_WITH_TIMEZONE: number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.sql.Wrapper.d.ts b/packages/types/dist/typings/jdk/java.sql.Wrapper.d.ts new file mode 100644 index 00000000..3cb5287b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.sql.Wrapper.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace java { + namespace sql { + // @ts-ignore + interface Wrapper { + /** + * Returns an object that implements the given interface to allow access to + * non-standard methods, or standard methods not exposed by the proxy. + * If the receiver implements the interface then the result is the receiver + * or a proxy for the receiver. If the receiver is a wrapper + * and the wrapped object implements the interface then the result is the + * wrapped object or a proxy for the wrapped object. Otherwise return the + * the result of calling unwrap recursively on the wrapped object + * or a proxy for that result. If the receiver is not a + * wrapper and does not implement the interface, then an SQLException is thrown. + */ + // @ts-ignore + unwrap(iface: java.lang.Class): java.lang.Object; + /** + * Returns true if this either implements the interface argument or is directly or indirectly a wrapper + * for an object that does. Returns false otherwise. If this implements the interface then return true, + * else if this is a wrapper then return the result of recursively calling isWrapperFor on the wrapped + * object. If this does not implement the interface and is not a wrapper, return false. + * This method should be implemented as a low-cost operation compared to unwrap so that + * callers can use this method to avoid expensive unwrap calls that may fail. If this method + * returns true then calling unwrap with the same argument should succeed. + */ + // @ts-ignore + isWrapperFor(iface: java.lang.Class): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.Annotation.d.ts b/packages/types/dist/typings/jdk/java.text.Annotation.d.ts new file mode 100644 index 00000000..f9972230 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.Annotation.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace java { + namespace text { + // @ts-ignore + class Annotation extends java.lang.Object { + /** + * Constructs an annotation record with the given value, which + * may be null. + */ + // @ts-ignore + constructor(value: java.lang.Object) + /** + * Returns the value of the attribute, which may be null. + */ + // @ts-ignore + public getValue(): java.lang.Object; + /** + * Returns the String representation of this Annotation. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.AttributedCharacterIterator.Attribute.d.ts b/packages/types/dist/typings/jdk/java.text.AttributedCharacterIterator.Attribute.d.ts new file mode 100644 index 00000000..7d9176d4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.AttributedCharacterIterator.Attribute.d.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +declare namespace java { + namespace text { + namespace AttributedCharacterIterator { + // @ts-ignore + class Attribute extends java.lang.Object { + /** + * Constructs an {@code Attribute} with the given name. + */ + // @ts-ignore + constructor(name: string) + // @ts-ignore + public static LANGUAGE: java.text.AttributedCharacterIterator.Attribute; + // @ts-ignore + public static READING: java.text.AttributedCharacterIterator.Attribute; + // @ts-ignore + public static INPUT_METHOD_SEGMENT: java.text.AttributedCharacterIterator.Attribute; + /** + * Compares two objects for equality. This version only returns true + * for {@code x.equals(y)} if {@code x} and {@code y} refer + * to the same object, and guarantees this for all subclasses. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a hash code value for the object. This version is identical to + * the one in {@code Object}, but is also final. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns a string representation of the object. This version returns the + * concatenation of class name, {@code "("}, a name identifying the attribute + * and {@code ")"}. + */ + // @ts-ignore + public toString(): string; + /** + * Returns the name of the attribute. + */ + // @ts-ignore + protected getName(): string; + /** + * Resolves instances being deserialized to the predefined constants. + */ + // @ts-ignore + protected readResolve(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.AttributedCharacterIterator.d.ts b/packages/types/dist/typings/jdk/java.text.AttributedCharacterIterator.d.ts new file mode 100644 index 00000000..35fbc7d8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.AttributedCharacterIterator.d.ts @@ -0,0 +1,69 @@ +// @ts-nocheck +declare namespace java { + namespace text { + // @ts-ignore + interface AttributedCharacterIterator { + /** + * Returns the index of the first character of the run + * with respect to all attributes containing the current character. + *

Any contiguous text segments having the same attributes (the + * same set of attribute/value pairs) are treated as separate runs + * if the attributes have been given to those text segments separately. + */ + // @ts-ignore + getRunStart(): number; + /** + * Returns the index of the first character of the run + * with respect to the given {@code attribute} containing the current character. + */ + // @ts-ignore + getRunStart(attribute: java.text.AttributedCharacterIterator.Attribute): number; + /** + * Returns the index of the first character of the run + * with respect to the given {@code attributes} containing the current character. + */ + // @ts-ignore + getRunStart(attributes: java.util.Set): number; + /** + * Returns the index of the first character following the run + * with respect to all attributes containing the current character. + *

Any contiguous text segments having the same attributes (the + * same set of attribute/value pairs) are treated as separate runs + * if the attributes have been given to those text segments separately. + */ + // @ts-ignore + getRunLimit(): number; + /** + * Returns the index of the first character following the run + * with respect to the given {@code attribute} containing the current character. + */ + // @ts-ignore + getRunLimit(attribute: java.text.AttributedCharacterIterator.Attribute): number; + /** + * Returns the index of the first character following the run + * with respect to the given {@code attributes} containing the current character. + */ + // @ts-ignore + getRunLimit(attributes: java.util.Set): number; + /** + * Returns a map with the attributes defined on the current + * character. + */ + // @ts-ignore + getAttributes(): java.util.Map; + /** + * Returns the value of the named {@code attribute} for the current character. + * Returns {@code null} if the {@code attribute} is not defined. + */ + // @ts-ignore + getAttribute(attribute: java.text.AttributedCharacterIterator.Attribute): java.lang.Object; + /** + * Returns the keys of all attributes defined on the + * iterator's text range. The set is empty if no + * attributes are defined. + */ + // @ts-ignore + getAllAttributeKeys(): java.util.Set; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.AttributedString.d.ts b/packages/types/dist/typings/jdk/java.text.AttributedString.d.ts new file mode 100644 index 00000000..ea1b459b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.AttributedString.d.ts @@ -0,0 +1,87 @@ +// @ts-nocheck +declare namespace java { + namespace text { + // @ts-ignore + class AttributedString extends java.lang.Object { + /** + * Constructs an AttributedString instance with the given text. + */ + // @ts-ignore + constructor(text: string) + /** + * Constructs an AttributedString instance with the given text and attributes. + */ + // @ts-ignore + constructor(text: string, attributes: java.util.Map) + /** + * Constructs an AttributedString instance with the given attributed + * text represented by AttributedCharacterIterator. + */ + // @ts-ignore + constructor(text: java.text.AttributedCharacterIterator) + /** + * Constructs an AttributedString instance with the subrange of + * the given attributed text represented by + * AttributedCharacterIterator. If the given range produces an + * empty text, all attributes will be discarded. Note that any + * attributes wrapped by an Annotation object are discarded for a + * subrange of the original attribute range. + */ + // @ts-ignore + constructor(text: java.text.AttributedCharacterIterator, beginIndex: number, endIndex: number) + /** + * Constructs an AttributedString instance with the subrange of + * the given attributed text represented by + * AttributedCharacterIterator. Only attributes that match the + * given attributes will be incorporated into the instance. If the + * given range produces an empty text, all attributes will be + * discarded. Note that any attributes wrapped by an Annotation + * object are discarded for a subrange of the original attribute + * range. + */ + // @ts-ignore + constructor(text: java.text.AttributedCharacterIterator, beginIndex: number, endIndex: number, attributes: java.text.AttributedCharacterIterator.Attribute) + /** + * Adds an attribute to the entire string. + */ + // @ts-ignore + public addAttribute(attribute: java.text.AttributedCharacterIterator.Attribute, value: java.lang.Object): void; + /** + * Adds an attribute to a subrange of the string. + */ + // @ts-ignore + public addAttribute(attribute: java.text.AttributedCharacterIterator.Attribute, value: java.lang.Object, beginIndex: number, endIndex: number): void; + /** + * Adds a set of attributes to a subrange of the string. + */ + // @ts-ignore + public addAttributes(attributes: java.util.Map, beginIndex: number, endIndex: number): void; + /** + * Creates an AttributedCharacterIterator instance that provides access to the entire contents of + * this string. + */ + // @ts-ignore + public getIterator(): java.text.AttributedCharacterIterator; + /** + * Creates an AttributedCharacterIterator instance that provides access to + * selected contents of this string. + * Information about attributes not listed in attributes that the + * implementor may have need not be made accessible through the iterator. + * If the list is null, all available attribute information should be made + * accessible. + */ + // @ts-ignore + public getIterator(attributes: java.text.AttributedCharacterIterator.Attribute): java.text.AttributedCharacterIterator; + /** + * Creates an AttributedCharacterIterator instance that provides access to + * selected contents of this string. + * Information about attributes not listed in attributes that the + * implementor may have need not be made accessible through the iterator. + * If the list is null, all available attribute information should be made + * accessible. + */ + // @ts-ignore + public getIterator(attributes: java.text.AttributedCharacterIterator.Attribute, beginIndex: number, endIndex: number): java.text.AttributedCharacterIterator; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.Bidi.d.ts b/packages/types/dist/typings/jdk/java.text.Bidi.d.ts new file mode 100644 index 00000000..382e3399 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.Bidi.d.ts @@ -0,0 +1,144 @@ +// @ts-nocheck +declare namespace java { + namespace text { + // @ts-ignore + class Bidi extends java.lang.Object { + /** + * Create Bidi from the given paragraph of text and base direction. + */ + // @ts-ignore + constructor(paragraph: string, flags: number) + /** + * Create Bidi from the given paragraph of text. + *

+ * The RUN_DIRECTION attribute in the text, if present, determines the base + * direction (left-to-right or right-to-left). If not present, the base + * direction is computes using the Unicode Bidirectional Algorithm, defaulting to left-to-right + * if there are no strong directional characters in the text. This attribute, if + * present, must be applied to all the text in the paragraph. + *

+ * The BIDI_EMBEDDING attribute in the text, if present, represents embedding level + * information. Negative values from -1 to -62 indicate overrides at the absolute value + * of the level. Positive values from 1 to 62 indicate embeddings. Where values are + * zero or not defined, the base embedding level as determined by the base direction + * is assumed. + *

+ * The NUMERIC_SHAPING attribute in the text, if present, converts European digits to + * other decimal digits before running the bidi algorithm. This attribute, if present, + * must be applied to all the text in the paragraph. + */ + // @ts-ignore + constructor(paragraph: java.text.AttributedCharacterIterator) + /** + * Create Bidi from the given text, embedding, and direction information. + * The embeddings array may be null. If present, the values represent embedding level + * information. Negative values from -1 to -61 indicate overrides at the absolute value + * of the level. Positive values from 1 to 61 indicate embeddings. Where values are + * zero, the base embedding level as determined by the base direction is assumed. + */ + // @ts-ignore + constructor(text: string, textStart: number, embeddings: number, embStart: number, paragraphLength: number, flags: number) + // @ts-ignore + public static DIRECTION_LEFT_TO_RIGHT: number; + // @ts-ignore + public static DIRECTION_RIGHT_TO_LEFT: number; + // @ts-ignore + public static DIRECTION_DEFAULT_LEFT_TO_RIGHT: number; + // @ts-ignore + public static DIRECTION_DEFAULT_RIGHT_TO_LEFT: number; + /** + * Create a Bidi object representing the bidi information on a line of text within + * the paragraph represented by the current Bidi. This call is not required if the + * entire paragraph fits on one line. + */ + // @ts-ignore + public createLineBidi(lineStart: number, lineLimit: number): java.text.Bidi; + /** + * Return true if the line is not left-to-right or right-to-left. This means it either has mixed runs of left-to-right + * and right-to-left text, or the base direction differs from the direction of the only run of text. + */ + // @ts-ignore + public isMixed(): boolean; + /** + * Return true if the line is all left-to-right text and the base direction is left-to-right. + */ + // @ts-ignore + public isLeftToRight(): boolean; + /** + * Return true if the line is all right-to-left text, and the base direction is right-to-left. + */ + // @ts-ignore + public isRightToLeft(): boolean; + /** + * Return the length of text in the line. + */ + // @ts-ignore + public getLength(): number; + /** + * Return true if the base direction is left-to-right. + */ + // @ts-ignore + public baseIsLeftToRight(): boolean; + /** + * Return the base level (0 if left-to-right, 1 if right-to-left). + */ + // @ts-ignore + public getBaseLevel(): number; + /** + * Return the resolved level of the character at offset. If offset is + * {@literal <} 0 or ≥ the length of the line, return the base direction + * level. + */ + // @ts-ignore + public getLevelAt(offset: number): number; + /** + * Return the number of level runs. + */ + // @ts-ignore + public getRunCount(): number; + /** + * Return the level of the nth logical run in this line. + */ + // @ts-ignore + public getRunLevel(run: number): number; + /** + * Return the index of the character at the start of the nth logical run in this line, as + * an offset from the start of the line. + */ + // @ts-ignore + public getRunStart(run: number): number; + /** + * Return the index of the character past the end of the nth logical run in this line, as + * an offset from the start of the line. For example, this will return the length + * of the line for the last run on the line. + */ + // @ts-ignore + public getRunLimit(run: number): number; + /** + * Return true if the specified text requires bidi analysis. If this returns false, + * the text will display left-to-right. Clients can then avoid constructing a Bidi object. + * Text in the Arabic Presentation Forms area of Unicode is presumed to already be shaped + * and ordered for display, and so will not cause this function to return true. + */ + // @ts-ignore + public static requiresBidi(text: string, start: number, limit: number): boolean; + /** + * Reorder the objects in the array into visual order based on their levels. + * This is a utility function to use when you have a collection of objects + * representing runs of text in logical order, each run containing text + * at a single level. The elements at index from + * objectStart up to objectStart + count + * in the objects array will be reordered into visual order assuming + * each run of text has the level indicated by the corresponding element + * in the levels array (at index - objectStart + levelStart). + */ + // @ts-ignore + public static reorderVisually(levels: number, levelStart: number, objects: java.lang.Object, objectStart: number, count: number): void; + /** + * Display the bidi internal state, used in debugging. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.BreakIterator.d.ts b/packages/types/dist/typings/jdk/java.text.BreakIterator.d.ts new file mode 100644 index 00000000..1d6c65a7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.BreakIterator.d.ts @@ -0,0 +1,169 @@ +// @ts-nocheck +declare namespace java { + namespace text { + // @ts-ignore + abstract class BreakIterator extends java.lang.Object { + /** + * Constructor. BreakIterator is stateless and has no default behavior. + */ + // @ts-ignore + constructor() + // @ts-ignore + public static DONE: number; + /** + * Create a copy of this iterator + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Returns the first boundary. The iterator's current position is set + * to the first text boundary. + */ + // @ts-ignore + public abstract first(): number; + /** + * Returns the last boundary. The iterator's current position is set + * to the last text boundary. + */ + // @ts-ignore + public abstract last(): number; + /** + * Returns the nth boundary from the current boundary. If either + * the first or last text boundary has been reached, it returns + * BreakIterator.DONE and the current position is set to either + * the first or last text boundary depending on which one is reached. Otherwise, + * the iterator's current position is set to the new boundary. + * For example, if the iterator's current position is the mth text boundary + * and three more boundaries exist from the current boundary to the last text + * boundary, the next(2) call will return m + 2. The new text position is set + * to the (m + 2)th text boundary. A next(4) call would return + * BreakIterator.DONE and the last text boundary would become the + * new text position. + */ + // @ts-ignore + public abstract next(n: number): number; + /** + * Returns the boundary preceding the current boundary. If the current boundary + * is the first text boundary, it returns BreakIterator.DONE and + * the iterator's current position is unchanged. Otherwise, the iterator's + * current position is set to the boundary preceding the current boundary. + */ + // @ts-ignore + public abstract previous(): number; + /** + * Returns the first boundary following the specified character offset. If the + * specified offset equals to the last text boundary, it returns + * BreakIterator.DONE and the iterator's current position is unchanged. + * Otherwise, the iterator's current position is set to the returned boundary. + * The value returned is always greater than the offset or the value + * BreakIterator.DONE. + */ + // @ts-ignore + public abstract following(offset: number): number; + /** + * Returns the last boundary preceding the specified character offset. If the + * specified offset equals to the first text boundary, it returns + * BreakIterator.DONE and the iterator's current position is unchanged. + * Otherwise, the iterator's current position is set to the returned boundary. + * The value returned is always less than the offset or the value + * BreakIterator.DONE. + */ + // @ts-ignore + public preceding(offset: number): number; + /** + * Returns true if the specified character offset is a text boundary. + */ + // @ts-ignore + public isBoundary(offset: number): boolean; + /** + * Returns character index of the text boundary that was most + * recently returned by next(), next(int), previous(), first(), last(), + * following(int) or preceding(int). If any of these methods returns + * BreakIterator.DONE because either first or last text boundary + * has been reached, it returns the first or last text boundary depending on + * which one is reached. + */ + // @ts-ignore + public abstract current(): number; + /** + * Get the text being scanned + */ + // @ts-ignore + public abstract getText(): java.text.CharacterIterator; + /** + * Set a new text string to be scanned. The current scan + * position is reset to first(). + */ + // @ts-ignore + public setText(newText: string): void; + /** + * Returns a new BreakIterator instance + * for word breaks + * for the {@linkplain Locale#getDefault() default locale}. + */ + // @ts-ignore + public static getWordInstance(): java.text.BreakIterator; + /** + * Returns a new BreakIterator instance + * for word breaks + * for the given locale. + */ + // @ts-ignore + public static getWordInstance(locale: java.util.Locale): java.text.BreakIterator; + /** + * Returns a new BreakIterator instance + * for line breaks + * for the {@linkplain Locale#getDefault() default locale}. + */ + // @ts-ignore + public static getLineInstance(): java.text.BreakIterator; + /** + * Returns a new BreakIterator instance + * for line breaks + * for the given locale. + */ + // @ts-ignore + public static getLineInstance(locale: java.util.Locale): java.text.BreakIterator; + /** + * Returns a new BreakIterator instance + * for character breaks + * for the {@linkplain Locale#getDefault() default locale}. + */ + // @ts-ignore + public static getCharacterInstance(): java.text.BreakIterator; + /** + * Returns a new BreakIterator instance + * for character breaks + * for the given locale. + */ + // @ts-ignore + public static getCharacterInstance(locale: java.util.Locale): java.text.BreakIterator; + /** + * Returns a new BreakIterator instance + * for sentence breaks + * for the {@linkplain Locale#getDefault() default locale}. + */ + // @ts-ignore + public static getSentenceInstance(): java.text.BreakIterator; + /** + * Returns a new BreakIterator instance + * for sentence breaks + * for the given locale. + */ + // @ts-ignore + public static getSentenceInstance(locale: java.util.Locale): java.text.BreakIterator; + /** + * Returns an array of all locales for which the + * get*Instance methods of this class can return + * localized instances. + * The returned array represents the union of locales supported by the Java + * runtime and by installed + * {@link java.text.spi.BreakIteratorProvider BreakIteratorProvider} implementations. + * It must contain at least a Locale + * instance equal to {@link java.util.Locale#US Locale.US}. + */ + // @ts-ignore + public static getAvailableLocales(): java.util.Locale[]; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.CharacterIterator.d.ts b/packages/types/dist/typings/jdk/java.text.CharacterIterator.d.ts new file mode 100644 index 00000000..0d3aec4e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.CharacterIterator.d.ts @@ -0,0 +1,69 @@ +// @ts-nocheck +declare namespace java { + namespace text { + // @ts-ignore + interface CharacterIterator { + // @ts-ignore + DONE: string; + /** + * Sets the position to getBeginIndex() and returns the character at that + * position. + */ + // @ts-ignore + first(): string; + /** + * Sets the position to getEndIndex()-1 (getEndIndex() if the text is empty) + * and returns the character at that position. + */ + // @ts-ignore + last(): string; + /** + * Gets the character at the current position (as returned by getIndex()). + */ + // @ts-ignore + current(): string; + /** + * Increments the iterator's index by one and returns the character + * at the new index. If the resulting index is greater or equal + * to getEndIndex(), the current index is reset to getEndIndex() and + * a value of DONE is returned. + */ + // @ts-ignore + next(): string; + /** + * Decrements the iterator's index by one and returns the character + * at the new index. If the current index is getBeginIndex(), the index + * remains at getBeginIndex() and a value of DONE is returned. + */ + // @ts-ignore + previous(): string; + /** + * Sets the position to the specified position in the text and returns that + * character. + */ + // @ts-ignore + setIndex(position: number): string; + /** + * Returns the start index of the text. + */ + // @ts-ignore + getBeginIndex(): number; + /** + * Returns the end index of the text. This index is the index of the first + * character following the end of the text. + */ + // @ts-ignore + getEndIndex(): number; + /** + * Returns the current index. + */ + // @ts-ignore + getIndex(): number; + /** + * Create a copy of this iterator + */ + // @ts-ignore + clone(): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.ChoiceFormat.d.ts b/packages/types/dist/typings/jdk/java.text.ChoiceFormat.d.ts new file mode 100644 index 00000000..e2d204ed --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.ChoiceFormat.d.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +declare namespace java { + namespace text { + // @ts-ignore + class ChoiceFormat extends java.text.NumberFormat { + /** + * Constructs with limits and corresponding formats based on the pattern. + */ + // @ts-ignore + constructor(newPattern: string) + /** + * Constructs with the limits and the corresponding formats. + */ + // @ts-ignore + constructor(limits: number, formats: string) + /** + * Sets the pattern. + */ + // @ts-ignore + public applyPattern(newPattern: string): void; + /** + * Gets the pattern. + */ + // @ts-ignore + public toPattern(): string; + /** + * Set the choices to be used in formatting. + */ + // @ts-ignore + public setChoices(limits: number, formats: string): void; + /** + * Get the limits passed in the constructor. + */ + // @ts-ignore + public getLimits(): number[]; + /** + * Get the formats passed in the constructor. + */ + // @ts-ignore + public getFormats(): java.lang.Object[]; + /** + * Specialization of format. This method really calls + * format(double, StringBuffer, FieldPosition) + * thus the range of longs that are supported is only equal to + * the range that can be stored by double. This will never be + * a practical limitation. + */ + // @ts-ignore + public format(number: number, toAppendTo: java.lang.StringBuffer, status: java.text.FieldPosition): java.lang.StringBuffer; + /** + * Returns pattern with formatted double. + */ + // @ts-ignore + public format(number: number, toAppendTo: java.lang.StringBuffer, status: java.text.FieldPosition): java.lang.StringBuffer; + /** + * Parses a Number from the input text. + */ + // @ts-ignore + public parse(text: string, status: java.text.ParsePosition): java.lang.Number; + /** + * Finds the least double greater than {@code d}. + * If {@code NaN}, returns same value. + *

Used to make half-open intervals. + */ + // @ts-ignore + public static nextDouble(d: number): number; + /** + * Finds the greatest double less than {@code d}. + * If {@code NaN}, returns same value. + */ + // @ts-ignore + public static previousDouble(d: number): number; + /** + * Overrides Cloneable + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Generates a hash code for the message format object. + */ + // @ts-ignore + public hashCode(): number; + /** + * Equality comparision between two + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Finds the least double greater than {@code d} (if {@code positive} is + * {@code true}), or the greatest double less than {@code d} (if + * {@code positive} is {@code false}). + * If {@code NaN}, returns same value. + * Does not affect floating-point flags, + * provided these member functions do not: + * Double.longBitsToDouble(long) + * Double.doubleToLongBits(double) + * Double.isNaN(double) + */ + // @ts-ignore + public static nextDouble(d: number, positive: boolean): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.CollationElementIterator.d.ts b/packages/types/dist/typings/jdk/java.text.CollationElementIterator.d.ts new file mode 100644 index 00000000..47b88669 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.CollationElementIterator.d.ts @@ -0,0 +1,105 @@ +// @ts-nocheck +declare namespace java { + namespace text { + // @ts-ignore + class CollationElementIterator extends java.lang.Object { + // @ts-ignore + public static NULLORDER: number; + /** + * Resets the cursor to the beginning of the string. The next call + * to next() will return the first collation element in the string. + */ + // @ts-ignore + public reset(): void; + /** + * Get the next collation element in the string.

This iterator iterates + * over a sequence of collation elements that were built from the string. + * Because there isn't necessarily a one-to-one mapping from characters to + * collation elements, this doesn't mean the same thing as "return the + * collation element [or ordering priority] of the next character in the + * string".

+ *

This function returns the collation element that the iterator is currently + * pointing to and then updates the internal pointer to point to the next element. + * previous() updates the pointer first and then returns the element. This + * means that when you change direction while iterating (i.e., call next() and + * then call previous(), or call previous() and then call next()), you'll get + * back the same element twice.

+ */ + // @ts-ignore + public next(): number; + /** + * Get the previous collation element in the string.

This iterator iterates + * over a sequence of collation elements that were built from the string. + * Because there isn't necessarily a one-to-one mapping from characters to + * collation elements, this doesn't mean the same thing as "return the + * collation element [or ordering priority] of the previous character in the + * string".

+ *

This function updates the iterator's internal pointer to point to the + * collation element preceding the one it's currently pointing to and then + * returns that element, while next() returns the current element and then + * updates the pointer. This means that when you change direction while + * iterating (i.e., call next() and then call previous(), or call previous() + * and then call next()), you'll get back the same element twice.

+ */ + // @ts-ignore + public previous(): number; + /** + * Return the primary component of a collation element. + */ + // @ts-ignore + public static primaryOrder(order: number): number; + /** + * Return the secondary component of a collation element. + */ + // @ts-ignore + public static secondaryOrder(order: number): number; + /** + * Return the tertiary component of a collation element. + */ + // @ts-ignore + public static tertiaryOrder(order: number): number; + /** + * Sets the iterator to point to the collation element corresponding to + * the specified character (the parameter is a CHARACTER offset in the + * original string, not an offset into its corresponding sequence of + * collation elements). The value returned by the next call to next() + * will be the collation element corresponding to the specified position + * in the text. If that position is in the middle of a contracting + * character sequence, the result of the next call to next() is the + * collation element for that sequence. This means that getOffset() + * is not guaranteed to return the same value as was passed to a preceding + * call to setOffset(). + */ + // @ts-ignore + public setOffset(newOffset: number): void; + /** + * Returns the character offset in the original text corresponding to the next + * collation element. (That is, getOffset() returns the position in the text + * corresponding to the collation element that will be returned by the next + * call to next().) This value will always be the index of the FIRST character + * corresponding to the collation element (a contracting character sequence is + * when two or more characters all correspond to the same collation element). + * This means if you do setOffset(x) followed immediately by getOffset(), getOffset() + * won't necessarily return x. + */ + // @ts-ignore + public getOffset(): number; + /** + * Return the maximum length of any expansion sequences that end + * with the specified comparison order. + */ + // @ts-ignore + public getMaxExpansion(order: number): number; + /** + * Set a new string over which to iterate. + */ + // @ts-ignore + public setText(source: string): void; + /** + * Set a new string over which to iterate. + */ + // @ts-ignore + public setText(source: java.text.CharacterIterator): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.CollationKey.d.ts b/packages/types/dist/typings/jdk/java.text.CollationKey.d.ts new file mode 100644 index 00000000..b59b4829 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.CollationKey.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace java { + namespace text { + // @ts-ignore + abstract class CollationKey extends java.lang.Object { + /** + * CollationKey constructor. + */ + // @ts-ignore + constructor(source: string) + /** + * Compare this CollationKey to the target CollationKey. The collation rules of the + * Collator object which created these keys are applied. Note: + * CollationKeys created by different Collators can not be compared. + */ + // @ts-ignore + public abstract compareTo(target: java.text.CollationKey): number; + /** + * Returns the String that this CollationKey represents. + */ + // @ts-ignore + public getSourceString(): string; + /** + * Converts the CollationKey to a sequence of bits. If two CollationKeys + * could be legitimately compared, then one could compare the byte arrays + * for each of those keys to obtain the same result. Byte arrays are + * organized most significant byte first. + */ + // @ts-ignore + public abstract toByteArray(): number[]; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.Collator.d.ts b/packages/types/dist/typings/jdk/java.text.Collator.d.ts new file mode 100644 index 00000000..e44ecbfd --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.Collator.d.ts @@ -0,0 +1,141 @@ +// @ts-nocheck +declare namespace java { + namespace text { + // @ts-ignore + abstract class Collator extends java.lang.Object { + /** + * Default constructor. This constructor is + * protected so subclasses can get access to it. Users typically create + * a Collator sub-class by calling the factory method getInstance. + */ + // @ts-ignore + constructor() + // @ts-ignore + public static PRIMARY: number; + // @ts-ignore + public static SECONDARY: number; + // @ts-ignore + public static TERTIARY: number; + // @ts-ignore + public static IDENTICAL: number; + // @ts-ignore + public static NO_DECOMPOSITION: number; + // @ts-ignore + public static CANONICAL_DECOMPOSITION: number; + // @ts-ignore + public static FULL_DECOMPOSITION: number; + /** + * Gets the Collator for the current default locale. + * The default locale is determined by java.util.Locale.getDefault. + */ + // @ts-ignore + public static getInstance(): java.text.Collator; + /** + * Gets the Collator for the desired locale. + */ + // @ts-ignore + public static getInstance(desiredLocale: java.util.Locale): java.text.Collator; + /** + * Compares the source string to the target string according to the + * collation rules for this Collator. Returns an integer less than, + * equal to or greater than zero depending on whether the source String is + * less than, equal to or greater than the target string. See the Collator + * class description for an example of use. + *

+ * For a one time comparison, this method has the best performance. If a + * given String will be involved in multiple comparisons, CollationKey.compareTo + * has the best performance. See the Collator class description for an example + * using CollationKeys. + */ + // @ts-ignore + public abstract compare(source: string, target: string): number; + /** + * Compares its two arguments for order. Returns a negative integer, + * zero, or a positive integer as the first argument is less than, equal + * to, or greater than the second. + *

+ * This implementation merely returns + * compare((String)o1, (String)o2) . + */ + // @ts-ignore + public compare(o1: java.lang.Object, o2: java.lang.Object): number; + /** + * Transforms the String into a series of bits that can be compared bitwise + * to other CollationKeys. CollationKeys provide better performance than + * Collator.compare when Strings are involved in multiple comparisons. + * See the Collator class description for an example using CollationKeys. + */ + // @ts-ignore + public abstract getCollationKey(source: string): java.text.CollationKey; + /** + * Convenience method for comparing the equality of two strings based on + * this Collator's collation rules. + */ + // @ts-ignore + public equals(source: string, target: string): boolean; + /** + * Returns this Collator's strength property. The strength property determines + * the minimum level of difference considered significant during comparison. + * See the Collator class description for an example of use. + */ + // @ts-ignore + public getStrength(): number; + /** + * Sets this Collator's strength property. The strength property determines + * the minimum level of difference considered significant during comparison. + * See the Collator class description for an example of use. + */ + // @ts-ignore + public setStrength(newStrength: number): void; + /** + * Get the decomposition mode of this Collator. Decomposition mode + * determines how Unicode composed characters are handled. Adjusting + * decomposition mode allows the user to select between faster and more + * complete collation behavior. + *

The three values for decomposition mode are: + *

    + *
  • NO_DECOMPOSITION, + *
  • CANONICAL_DECOMPOSITION + *
  • FULL_DECOMPOSITION. + *
+ * See the documentation for these three constants for a description + * of their meaning. + */ + // @ts-ignore + public getDecomposition(): number; + /** + * Set the decomposition mode of this Collator. See getDecomposition + * for a description of decomposition mode. + */ + // @ts-ignore + public setDecomposition(decompositionMode: number): void; + /** + * Returns an array of all locales for which the + * getInstance methods of this class can return + * localized instances. + * The returned array represents the union of locales supported + * by the Java runtime and by installed + * {@link java.text.spi.CollatorProvider CollatorProvider} implementations. + * It must contain at least a Locale instance equal to + * {@link java.util.Locale#US Locale.US}. + */ + // @ts-ignore + public static getAvailableLocales(): java.util.Locale[]; + /** + * Overrides Cloneable + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Compares the equality of two Collators. + */ + // @ts-ignore + public equals(that: java.lang.Object): boolean; + /** + * Generates the hash code for this Collator. + */ + // @ts-ignore + public abstract hashCode(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.DateFormat.Field.d.ts b/packages/types/dist/typings/jdk/java.text.DateFormat.Field.d.ts new file mode 100644 index 00000000..f08d0b1f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.DateFormat.Field.d.ts @@ -0,0 +1,73 @@ +// @ts-nocheck +declare namespace java { + namespace text { + namespace DateFormat { + // @ts-ignore + class Field extends java.text.Format.Field { + /** + * Creates a Field. + */ + // @ts-ignore + constructor(name: string, calendarField: number) + // @ts-ignore + public static ERA: java.text.DateFormat.Field; + // @ts-ignore + public static YEAR: java.text.DateFormat.Field; + // @ts-ignore + public static MONTH: java.text.DateFormat.Field; + // @ts-ignore + public static DAY_OF_MONTH: java.text.DateFormat.Field; + // @ts-ignore + public static HOUR_OF_DAY1: java.text.DateFormat.Field; + // @ts-ignore + public static HOUR_OF_DAY0: java.text.DateFormat.Field; + // @ts-ignore + public static MINUTE: java.text.DateFormat.Field; + // @ts-ignore + public static SECOND: java.text.DateFormat.Field; + // @ts-ignore + public static MILLISECOND: java.text.DateFormat.Field; + // @ts-ignore + public static DAY_OF_WEEK: java.text.DateFormat.Field; + // @ts-ignore + public static DAY_OF_YEAR: java.text.DateFormat.Field; + // @ts-ignore + public static DAY_OF_WEEK_IN_MONTH: java.text.DateFormat.Field; + // @ts-ignore + public static WEEK_OF_YEAR: java.text.DateFormat.Field; + // @ts-ignore + public static WEEK_OF_MONTH: java.text.DateFormat.Field; + // @ts-ignore + public static AM_PM: java.text.DateFormat.Field; + // @ts-ignore + public static HOUR1: java.text.DateFormat.Field; + // @ts-ignore + public static HOUR0: java.text.DateFormat.Field; + // @ts-ignore + public static TIME_ZONE: java.text.DateFormat.Field; + /** + * Returns the Field constant that corresponds to + * the Calendar constant calendarField. + * If there is no direct mapping between the Calendar + * constant and a Field, null is returned. + */ + // @ts-ignore + public static ofCalendarField(calendarField: number): java.text.DateFormat.Field; + /** + * Returns the Calendar field associated with this + * attribute. For example, if this represents the hours field of + * a Calendar, this would return + * Calendar.HOUR. If there is no corresponding + * Calendar constant, this will return -1. + */ + // @ts-ignore + public getCalendarField(): number; + /** + * Resolves instances being deserialized to the predefined constants. + */ + // @ts-ignore + protected readResolve(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.DateFormat.d.ts b/packages/types/dist/typings/jdk/java.text.DateFormat.d.ts new file mode 100644 index 00000000..795a16ac --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.DateFormat.d.ts @@ -0,0 +1,278 @@ +// @ts-nocheck +declare namespace java { + namespace text { + // @ts-ignore + abstract class DateFormat extends java.text.Format { + /** + * Create a new date format. + */ + // @ts-ignore + constructor() + // @ts-ignore + protected calendar: java.util.Calendar; + // @ts-ignore + protected numberFormat: java.text.NumberFormat; + // @ts-ignore + public static ERA_FIELD: number; + // @ts-ignore + public static YEAR_FIELD: number; + // @ts-ignore + public static MONTH_FIELD: number; + // @ts-ignore + public static DATE_FIELD: number; + // @ts-ignore + public static HOUR_OF_DAY1_FIELD: number; + // @ts-ignore + public static HOUR_OF_DAY0_FIELD: number; + // @ts-ignore + public static MINUTE_FIELD: number; + // @ts-ignore + public static SECOND_FIELD: number; + // @ts-ignore + public static MILLISECOND_FIELD: number; + // @ts-ignore + public static DAY_OF_WEEK_FIELD: number; + // @ts-ignore + public static DAY_OF_YEAR_FIELD: number; + // @ts-ignore + public static DAY_OF_WEEK_IN_MONTH_FIELD: number; + // @ts-ignore + public static WEEK_OF_YEAR_FIELD: number; + // @ts-ignore + public static WEEK_OF_MONTH_FIELD: number; + // @ts-ignore + public static AM_PM_FIELD: number; + // @ts-ignore + public static HOUR1_FIELD: number; + // @ts-ignore + public static HOUR0_FIELD: number; + // @ts-ignore + public static TIMEZONE_FIELD: number; + // @ts-ignore + public static FULL: number; + // @ts-ignore + public static LONG: number; + // @ts-ignore + public static MEDIUM: number; + // @ts-ignore + public static SHORT: number; + // @ts-ignore + public static DEFAULT: number; + /** + * Overrides Format. + * Formats a time object into a time string. Examples of time objects + * are a time value expressed in milliseconds and a Date object. + */ + // @ts-ignore + public format(obj: java.lang.Object, toAppendTo: java.lang.StringBuffer, fieldPosition: java.text.FieldPosition): java.lang.StringBuffer; + /** + * Formats a Date into a date/time string. + */ + // @ts-ignore + public format(date: java.util.Date): string; + /** + * Parses text from the beginning of the given string to produce a date. + * The method may not use the entire text of the given string. + *

+ * See the {@link #parse(String, ParsePosition)} method for more information + * on date parsing. + */ + // @ts-ignore + public parse(source: string): java.util.Date; + /** + * Parses text from a string to produce a Date. + *

+ * The method attempts to parse text starting at the index given by + * pos. + * If parsing succeeds, then the index of pos is updated + * to the index after the last character used (parsing does not necessarily + * use all characters up to the end of the string), and the parsed + * date is returned. The updated pos can be used to + * indicate the starting point for the next call to this method. + * If an error occurs, then the index of pos is not + * changed, the error index of pos is set to the index of + * the character where the error occurred, and null is returned. + *

+ * See the {@link #parse(String, ParsePosition)} method for more information + * on date parsing. + */ + // @ts-ignore + public parseObject(source: string, pos: java.text.ParsePosition): java.lang.Object; + /** + * Gets the time formatter with the default formatting style + * for the default {@link java.util.Locale.Category#FORMAT FORMAT} locale. + *

This is equivalent to calling + * {@link #getTimeInstance(int, Locale) getTimeInstance(DEFAULT, + * Locale.getDefault(Locale.Category.FORMAT))}. + */ + // @ts-ignore + public static getTimeInstance(): java.text.DateFormat; + /** + * Gets the time formatter with the given formatting style + * for the default {@link java.util.Locale.Category#FORMAT FORMAT} locale. + *

This is equivalent to calling + * {@link #getTimeInstance(int, Locale) getTimeInstance(style, + * Locale.getDefault(Locale.Category.FORMAT))}. + */ + // @ts-ignore + public static getTimeInstance(style: number): java.text.DateFormat; + /** + * Gets the time formatter with the given formatting style + * for the given locale. + */ + // @ts-ignore + public static getTimeInstance(style: number, aLocale: java.util.Locale): java.text.DateFormat; + /** + * Gets the date formatter with the default formatting style + * for the default {@link java.util.Locale.Category#FORMAT FORMAT} locale. + *

This is equivalent to calling + * {@link #getDateInstance(int, Locale) getDateInstance(DEFAULT, + * Locale.getDefault(Locale.Category.FORMAT))}. + */ + // @ts-ignore + public static getDateInstance(): java.text.DateFormat; + /** + * Gets the date formatter with the given formatting style + * for the default {@link java.util.Locale.Category#FORMAT FORMAT} locale. + *

This is equivalent to calling + * {@link #getDateInstance(int, Locale) getDateInstance(style, + * Locale.getDefault(Locale.Category.FORMAT))}. + */ + // @ts-ignore + public static getDateInstance(style: number): java.text.DateFormat; + /** + * Gets the date formatter with the given formatting style + * for the given locale. + */ + // @ts-ignore + public static getDateInstance(style: number, aLocale: java.util.Locale): java.text.DateFormat; + /** + * Gets the date/time formatter with the default formatting style + * for the default {@link java.util.Locale.Category#FORMAT FORMAT} locale. + *

This is equivalent to calling + * {@link #getDateTimeInstance(int, int, Locale) getDateTimeInstance(DEFAULT, + * DEFAULT, Locale.getDefault(Locale.Category.FORMAT))}. + */ + // @ts-ignore + public static getDateTimeInstance(): java.text.DateFormat; + /** + * Gets the date/time formatter with the given date and time + * formatting styles for the default {@link java.util.Locale.Category#FORMAT FORMAT} locale. + *

This is equivalent to calling + * {@link #getDateTimeInstance(int, int, Locale) getDateTimeInstance(dateStyle, + * timeStyle, Locale.getDefault(Locale.Category.FORMAT))}. + */ + // @ts-ignore + public static getDateTimeInstance(dateStyle: number, timeStyle: number): java.text.DateFormat; + /** + * Gets the date/time formatter with the given formatting styles + * for the given locale. + */ + // @ts-ignore + public static getDateTimeInstance(dateStyle: number, timeStyle: number, aLocale: java.util.Locale): java.text.DateFormat; + /** + * Get a default date/time formatter that uses the SHORT style for both the + * date and the time. + */ + // @ts-ignore + public static getInstance(): java.text.DateFormat; + /** + * Returns an array of all locales for which the + * get*Instance methods of this class can return + * localized instances. + * The returned array represents the union of locales supported by the Java + * runtime and by installed + * {@link java.text.spi.DateFormatProvider DateFormatProvider} implementations. + * It must contain at least a Locale instance equal to + * {@link java.util.Locale#US Locale.US}. + */ + // @ts-ignore + public static getAvailableLocales(): java.util.Locale[]; + /** + * Set the calendar to be used by this date format. Initially, the default + * calendar for the specified or default locale is used. + *

Any {@link java.util.TimeZone TimeZone} and {@linkplain + * #isLenient() leniency} values that have previously been set are + * overwritten by {@code newCalendar}'s values. + */ + // @ts-ignore + public setCalendar(newCalendar: java.util.Calendar): void; + /** + * Gets the calendar associated with this date/time formatter. + */ + // @ts-ignore + public getCalendar(): java.util.Calendar; + /** + * Allows you to set the number formatter. + */ + // @ts-ignore + public setNumberFormat(newNumberFormat: java.text.NumberFormat): void; + /** + * Gets the number formatter which this date/time formatter uses to + * format and parse a time. + */ + // @ts-ignore + public getNumberFormat(): java.text.NumberFormat; + /** + * Sets the time zone for the calendar of this {@code DateFormat} object. + * This method is equivalent to the following call. + *

{@code
+             * getCalendar().setTimeZone(zone)
+             * }
+ *

The {@code TimeZone} set by this method is overwritten by a + * {@link #setCalendar(java.util.Calendar) setCalendar} call. + *

The {@code TimeZone} set by this method may be overwritten as + * a result of a call to the parse method. + */ + // @ts-ignore + public setTimeZone(zone: java.util.TimeZone): void; + /** + * Gets the time zone. + * This method is equivalent to the following call. + *

{@code
+             * getCalendar().getTimeZone()
+             * }
+ */ + // @ts-ignore + public getTimeZone(): java.util.TimeZone; + /** + * Specify whether or not date/time parsing is to be lenient. With + * lenient parsing, the parser may use heuristics to interpret inputs that + * do not precisely match this object's format. With strict parsing, + * inputs must match this object's format. + *

This method is equivalent to the following call. + *

{@code
+             * getCalendar().setLenient(lenient)
+             * }
+ *

This leniency value is overwritten by a call to {@link + * #setCalendar(java.util.Calendar) setCalendar()}. + */ + // @ts-ignore + public setLenient(lenient: boolean): void; + /** + * Tell whether date/time parsing is to be lenient. + * This method is equivalent to the following call. + *

{@code
+             * getCalendar().isLenient()
+             * }
+ */ + // @ts-ignore + public isLenient(): boolean; + /** + * Overrides hashCode + */ + // @ts-ignore + public hashCode(): number; + /** + * Overrides equals + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Overrides Cloneable + */ + // @ts-ignore + public clone(): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.DateFormatSymbols.d.ts b/packages/types/dist/typings/jdk/java.text.DateFormatSymbols.d.ts new file mode 100644 index 00000000..092c5a02 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.DateFormatSymbols.d.ts @@ -0,0 +1,234 @@ +// @ts-nocheck +declare namespace java { + namespace text { + // @ts-ignore + class DateFormatSymbols extends java.lang.Object { + /** + * Construct a DateFormatSymbols object by loading format data from + * resources for the default {@link java.util.Locale.Category#FORMAT FORMAT} + * locale. This constructor can only + * construct instances for the locales supported by the Java + * runtime environment, not for those supported by installed + * {@link java.text.spi.DateFormatSymbolsProvider DateFormatSymbolsProvider} + * implementations. For full locale coverage, use the + * {@link #getInstance(Locale) getInstance} method. + *

This is equivalent to calling + * {@link #DateFormatSymbols(Locale) + * DateFormatSymbols(Locale.getDefault(Locale.Category.FORMAT))}. + */ + // @ts-ignore + constructor() + /** + * Construct a DateFormatSymbols object by loading format data from + * resources for the given locale. This constructor can only + * construct instances for the locales supported by the Java + * runtime environment, not for those supported by installed + * {@link java.text.spi.DateFormatSymbolsProvider DateFormatSymbolsProvider} + * implementations. For full locale coverage, use the + * {@link #getInstance(Locale) getInstance} method. + */ + // @ts-ignore + constructor(locale: java.util.Locale) + /** + * Returns an array of all locales for which the + * getInstance methods of this class can return + * localized instances. + * The returned array represents the union of locales supported by the + * Java runtime and by installed + * {@link java.text.spi.DateFormatSymbolsProvider DateFormatSymbolsProvider} + * implementations. It must contain at least a Locale + * instance equal to {@link java.util.Locale#US Locale.US}. + */ + // @ts-ignore + public static getAvailableLocales(): java.util.Locale[]; + /** + * Gets the DateFormatSymbols instance for the default + * locale. This method provides access to DateFormatSymbols + * instances for locales supported by the Java runtime itself as well + * as for those supported by installed + * {@link java.text.spi.DateFormatSymbolsProvider DateFormatSymbolsProvider} + * implementations. + *

This is equivalent to calling {@link #getInstance(Locale) + * getInstance(Locale.getDefault(Locale.Category.FORMAT))}. + */ + // @ts-ignore + public static getInstance(): java.text.DateFormatSymbols; + /** + * Gets the DateFormatSymbols instance for the specified + * locale. This method provides access to DateFormatSymbols + * instances for locales supported by the Java runtime itself as well + * as for those supported by installed + * {@link java.text.spi.DateFormatSymbolsProvider DateFormatSymbolsProvider} + * implementations. + */ + // @ts-ignore + public static getInstance(locale: java.util.Locale): java.text.DateFormatSymbols; + /** + * Gets era strings. For example: "AD" and "BC". + */ + // @ts-ignore + public getEras(): java.lang.String[]; + /** + * Sets era strings. For example: "AD" and "BC". + */ + // @ts-ignore + public setEras(newEras: string): void; + /** + * Gets month strings. For example: "January", "February", etc. + *

If the language requires different forms for formatting and + * stand-alone usages, this method returns month names in the + * formatting form. For example, the preferred month name for + * January in the Czech language is ledna in the + * formatting form, while it is leden in the stand-alone + * form. This method returns {@code "ledna"} in this case. Refer + * to the + * Calendar Elements in the Unicode Locale Data Markup Language + * (LDML) specification for more details. + */ + // @ts-ignore + public getMonths(): java.lang.String[]; + /** + * Sets month strings. For example: "January", "February", etc. + */ + // @ts-ignore + public setMonths(newMonths: string): void; + /** + * Gets short month strings. For example: "Jan", "Feb", etc. + *

If the language requires different forms for formatting and + * stand-alone usages, This method returns short month names in + * the formatting form. For example, the preferred abbreviation + * for January in the Catalan language is de gen. in the + * formatting form, while it is gen. in the stand-alone + * form. This method returns {@code "de gen."} in this case. Refer + * to the + * Calendar Elements in the Unicode Locale Data Markup Language + * (LDML) specification for more details. + */ + // @ts-ignore + public getShortMonths(): java.lang.String[]; + /** + * Sets short month strings. For example: "Jan", "Feb", etc. + */ + // @ts-ignore + public setShortMonths(newShortMonths: string): void; + /** + * Gets weekday strings. For example: "Sunday", "Monday", etc. + */ + // @ts-ignore + public getWeekdays(): java.lang.String[]; + /** + * Sets weekday strings. For example: "Sunday", "Monday", etc. + */ + // @ts-ignore + public setWeekdays(newWeekdays: string): void; + /** + * Gets short weekday strings. For example: "Sun", "Mon", etc. + */ + // @ts-ignore + public getShortWeekdays(): java.lang.String[]; + /** + * Sets short weekday strings. For example: "Sun", "Mon", etc. + */ + // @ts-ignore + public setShortWeekdays(newShortWeekdays: string): void; + /** + * Gets ampm strings. For example: "AM" and "PM". + */ + // @ts-ignore + public getAmPmStrings(): java.lang.String[]; + /** + * Sets ampm strings. For example: "AM" and "PM". + */ + // @ts-ignore + public setAmPmStrings(newAmpms: string): void; + /** + * Gets time zone strings. Use of this method is discouraged; use + * {@link java.util.TimeZone#getDisplayName() TimeZone.getDisplayName()} + * instead. + *

+ * The value returned is a + * two-dimensional array of strings of size n by m, + * where m is at least 5. Each of the n rows is an + * entry containing the localized names for a single TimeZone. + * Each such row contains (with i ranging from + * 0..n-1): + *

    + *
  • zoneStrings[i][0] - time zone ID
  • + *
  • zoneStrings[i][1] - long name of zone in standard + * time
  • + *
  • zoneStrings[i][2] - short name of zone in + * standard time
  • + *
  • zoneStrings[i][3] - long name of zone in daylight + * saving time
  • + *
  • zoneStrings[i][4] - short name of zone in daylight + * saving time
  • + *
+ * The zone ID is not localized; it's one of the valid IDs of + * the {@link java.util.TimeZone TimeZone} class that are not + * custom IDs. + * All other entries are localized names. If a zone does not implement + * daylight saving time, the daylight saving time names should not be used. + *

+ * If {@link #setZoneStrings(String[][]) setZoneStrings} has been called + * on this DateFormatSymbols instance, then the strings + * provided by that call are returned. Otherwise, the returned array + * contains names provided by the Java runtime and by installed + * {@link java.util.spi.TimeZoneNameProvider TimeZoneNameProvider} + * implementations. + */ + // @ts-ignore + public getZoneStrings(): java.lang.String[][]; + /** + * Sets time zone strings. The argument must be a + * two-dimensional array of strings of size n by m, + * where m is at least 5. Each of the n rows is an + * entry containing the localized names for a single TimeZone. + * Each such row contains (with i ranging from + * 0..n-1): + *

    + *
  • zoneStrings[i][0] - time zone ID
  • + *
  • zoneStrings[i][1] - long name of zone in standard + * time
  • + *
  • zoneStrings[i][2] - short name of zone in + * standard time
  • + *
  • zoneStrings[i][3] - long name of zone in daylight + * saving time
  • + *
  • zoneStrings[i][4] - short name of zone in daylight + * saving time
  • + *
+ * The zone ID is not localized; it's one of the valid IDs of + * the {@link java.util.TimeZone TimeZone} class that are not + * custom IDs. + * All other entries are localized names. + */ + // @ts-ignore + public setZoneStrings(newZoneStrings: string): void; + /** + * Gets localized date-time pattern characters. For example: 'u', 't', etc. + */ + // @ts-ignore + public getLocalPatternChars(): string; + /** + * Sets localized date-time pattern characters. For example: 'u', 't', etc. + */ + // @ts-ignore + public setLocalPatternChars(newLocalPatternChars: string): void; + /** + * Overrides Cloneable + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Override hashCode. + * Generates a hash code for the DateFormatSymbols object. + */ + // @ts-ignore + public hashCode(): number; + /** + * Override equals + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.DecimalFormat.d.ts b/packages/types/dist/typings/jdk/java.text.DecimalFormat.d.ts new file mode 100644 index 00000000..8de84e39 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.DecimalFormat.d.ts @@ -0,0 +1,423 @@ +// @ts-nocheck +declare namespace java { + namespace text { + // @ts-ignore + class DecimalFormat extends java.text.NumberFormat { + /** + * Creates a DecimalFormat using the default pattern and symbols + * for the default {@link java.util.Locale.Category#FORMAT FORMAT} locale. + * This is a convenient way to obtain a + * DecimalFormat when internationalization is not the main concern. + *

+ * To obtain standard formats for a given locale, use the factory methods + * on NumberFormat such as getNumberInstance. These factories will + * return the most appropriate sub-class of NumberFormat for a given + * locale. + */ + // @ts-ignore + constructor() + /** + * Creates a DecimalFormat using the given pattern and the symbols + * for the default {@link java.util.Locale.Category#FORMAT FORMAT} locale. + * This is a convenient way to obtain a + * DecimalFormat when internationalization is not the main concern. + *

+ * To obtain standard formats for a given locale, use the factory methods + * on NumberFormat such as getNumberInstance. These factories will + * return the most appropriate sub-class of NumberFormat for a given + * locale. + */ + // @ts-ignore + constructor(pattern: string) + /** + * Creates a DecimalFormat using the given pattern and symbols. + * Use this constructor when you need to completely customize the + * behavior of the format. + *

+ * To obtain standard formats for a given + * locale, use the factory methods on NumberFormat such as + * getInstance or getCurrencyInstance. If you need only minor adjustments + * to a standard format, you can modify the format returned by + * a NumberFormat factory method. + */ + // @ts-ignore + constructor(pattern: string, symbols: java.text.DecimalFormatSymbols) + /** + * Formats a number and appends the resulting text to the given string + * buffer. + * The number can be of any subclass of {@link java.lang.Number}. + *

+ * This implementation uses the maximum precision permitted. + */ + // @ts-ignore + public format(number: java.lang.Object, toAppendTo: java.lang.StringBuffer, pos: java.text.FieldPosition): java.lang.StringBuffer; + /** + * Formats a double to produce a string. + */ + // @ts-ignore + public format(number: number, result: java.lang.StringBuffer, fieldPosition: java.text.FieldPosition): java.lang.StringBuffer; + /** + * Format a long to produce a string. + */ + // @ts-ignore + public format(number: number, result: java.lang.StringBuffer, fieldPosition: java.text.FieldPosition): java.lang.StringBuffer; + /** + * Formats an Object producing an AttributedCharacterIterator. + * You can use the returned AttributedCharacterIterator + * to build the resulting String, as well as to determine information + * about the resulting String. + *

+ * Each attribute key of the AttributedCharacterIterator will be of type + * NumberFormat.Field, with the attribute value being the + * same as the attribute key. + */ + // @ts-ignore + public formatToCharacterIterator(obj: java.lang.Object): java.text.AttributedCharacterIterator; + /** + * Parses text from a string to produce a Number. + *

+ * The method attempts to parse text starting at the index given by + * pos. + * If parsing succeeds, then the index of pos is updated + * to the index after the last character used (parsing does not necessarily + * use all characters up to the end of the string), and the parsed + * number is returned. The updated pos can be used to + * indicate the starting point for the next call to this method. + * If an error occurs, then the index of pos is not + * changed, the error index of pos is set to the index of + * the character where the error occurred, and null is returned. + *

+ * The subclass returned depends on the value of {@link #isParseBigDecimal} + * as well as on the string being parsed. + *

    + *
  • If isParseBigDecimal() is false (the default), + * most integer values are returned as Long + * objects, no matter how they are written: "17" and + * "17.000" both parse to Long(17). + * Values that cannot fit into a Long are returned as + * Doubles. This includes values with a fractional part, + * infinite values, NaN, and the value -0.0. + * DecimalFormat does not decide whether to + * return a Double or a Long based on the + * presence of a decimal separator in the source string. Doing so + * would prevent integers that overflow the mantissa of a double, + * such as "-9,223,372,036,854,775,808.00", from being + * parsed accurately. + *

    + * Callers may use the Number methods + * doubleValue, longValue, etc., to obtain + * the type they want. + *

  • If isParseBigDecimal() is true, values are returned + * as BigDecimal objects. The values are the ones + * constructed by {@link java.math.BigDecimal#BigDecimal(String)} + * for corresponding strings in locale-independent format. The + * special cases negative and positive infinity and NaN are returned + * as Double instances holding the values of the + * corresponding Double constants. + *
+ *

+ * DecimalFormat parses all Unicode characters that represent + * decimal digits, as defined by Character.digit(). In + * addition, DecimalFormat also recognizes as digits the ten + * consecutive characters starting with the localized zero digit defined in + * the DecimalFormatSymbols object. + */ + // @ts-ignore + public parse(text: string, pos: java.text.ParsePosition): java.lang.Number; + /** + * Returns a copy of the decimal format symbols, which is generally not + * changed by the programmer or user. + */ + // @ts-ignore + public getDecimalFormatSymbols(): java.text.DecimalFormatSymbols; + /** + * Sets the decimal format symbols, which is generally not changed + * by the programmer or user. + */ + // @ts-ignore + public setDecimalFormatSymbols(newSymbols: java.text.DecimalFormatSymbols): void; + /** + * Get the positive prefix. + *

Examples: +123, $123, sFr123 + */ + // @ts-ignore + public getPositivePrefix(): string; + /** + * Set the positive prefix. + *

Examples: +123, $123, sFr123 + */ + // @ts-ignore + public setPositivePrefix(newValue: string): void; + /** + * Get the negative prefix. + *

Examples: -123, ($123) (with negative suffix), sFr-123 + */ + // @ts-ignore + public getNegativePrefix(): string; + /** + * Set the negative prefix. + *

Examples: -123, ($123) (with negative suffix), sFr-123 + */ + // @ts-ignore + public setNegativePrefix(newValue: string): void; + /** + * Get the positive suffix. + *

Example: 123% + */ + // @ts-ignore + public getPositiveSuffix(): string; + /** + * Set the positive suffix. + *

Example: 123% + */ + // @ts-ignore + public setPositiveSuffix(newValue: string): void; + /** + * Get the negative suffix. + *

Examples: -123%, ($123) (with positive suffixes) + */ + // @ts-ignore + public getNegativeSuffix(): string; + /** + * Set the negative suffix. + *

Examples: 123% + */ + // @ts-ignore + public setNegativeSuffix(newValue: string): void; + /** + * Gets the multiplier for use in percent, per mille, and similar + * formats. + */ + // @ts-ignore + public getMultiplier(): number; + /** + * Sets the multiplier for use in percent, per mille, and similar + * formats. + * For a percent format, set the multiplier to 100 and the suffixes to + * have '%' (for Arabic, use the Arabic percent sign). + * For a per mille format, set the multiplier to 1000 and the suffixes to + * have '\u2030'. + *

Example: with multiplier 100, 1.23 is formatted as "123", and + * "123" is parsed into 1.23. + */ + // @ts-ignore + public setMultiplier(newValue: number): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public setGroupingUsed(newValue: boolean): void; + /** + * Return the grouping size. Grouping size is the number of digits between + * grouping separators in the integer portion of a number. For example, + * in the number "123,456.78", the grouping size is 3. + */ + // @ts-ignore + public getGroupingSize(): number; + /** + * Set the grouping size. Grouping size is the number of digits between + * grouping separators in the integer portion of a number. For example, + * in the number "123,456.78", the grouping size is 3. + *
+ * The value passed in is converted to a byte, which may lose information. + */ + // @ts-ignore + public setGroupingSize(newValue: number): void; + /** + * Allows you to get the behavior of the decimal separator with integers. + * (The decimal separator will always appear with decimals.) + *

Example: Decimal ON: 12345 → 12345.; OFF: 12345 → 12345 + */ + // @ts-ignore + public isDecimalSeparatorAlwaysShown(): boolean; + /** + * Allows you to set the behavior of the decimal separator with integers. + * (The decimal separator will always appear with decimals.) + *

Example: Decimal ON: 12345 → 12345.; OFF: 12345 → 12345 + */ + // @ts-ignore + public setDecimalSeparatorAlwaysShown(newValue: boolean): void; + /** + * Returns whether the {@link #parse(java.lang.String, java.text.ParsePosition)} + * method returns BigDecimal. The default value is false. + */ + // @ts-ignore + public isParseBigDecimal(): boolean; + /** + * Sets whether the {@link #parse(java.lang.String, java.text.ParsePosition)} + * method returns BigDecimal. + */ + // @ts-ignore + public setParseBigDecimal(newValue: boolean): void; + /** + * Standard override; no change in semantics. + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Overrides equals + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Overrides hashCode + */ + // @ts-ignore + public hashCode(): number; + /** + * Synthesizes a pattern string that represents the current state + * of this Format object. + */ + // @ts-ignore + public toPattern(): string; + /** + * Synthesizes a localized pattern string that represents the current + * state of this Format object. + */ + // @ts-ignore + public toLocalizedPattern(): string; + /** + * Apply the given pattern to this Format object. A pattern is a + * short-hand specification for the various formatting properties. + * These properties can also be changed individually through the + * various setter methods. + *

+ * There is no limit to integer digits set + * by this routine, since that is the typical end-user desire; + * use setMaximumInteger if you want to set a real value. + * For negative numbers, use a second pattern, separated by a semicolon + *

Example "#,#00.0#" → 1,234.56 + *

This means a minimum of 2 integer digits, 1 fraction digit, and + * a maximum of 2 fraction digits. + *

Example: "#,#00.0#;(#,#00.0#)" for negatives in + * parentheses. + *

In negative patterns, the minimum and maximum counts are ignored; + * these are presumed to be set in the positive pattern. + */ + // @ts-ignore + public applyPattern(pattern: string): void; + /** + * Apply the given pattern to this Format object. The pattern + * is assumed to be in a localized notation. A pattern is a + * short-hand specification for the various formatting properties. + * These properties can also be changed individually through the + * various setter methods. + *

+ * There is no limit to integer digits set + * by this routine, since that is the typical end-user desire; + * use setMaximumInteger if you want to set a real value. + * For negative numbers, use a second pattern, separated by a semicolon + *

Example "#,#00.0#" → 1,234.56 + *

This means a minimum of 2 integer digits, 1 fraction digit, and + * a maximum of 2 fraction digits. + *

Example: "#,#00.0#;(#,#00.0#)" for negatives in + * parentheses. + *

In negative patterns, the minimum and maximum counts are ignored; + * these are presumed to be set in the positive pattern. + */ + // @ts-ignore + public applyLocalizedPattern(pattern: string): void; + /** + * Sets the maximum number of digits allowed in the integer portion of a + * number. + * For formatting numbers other than BigInteger and + * BigDecimal objects, the lower of newValue and + * 309 is used. Negative input values are replaced with 0. + */ + // @ts-ignore + public setMaximumIntegerDigits(newValue: number): void; + /** + * Sets the minimum number of digits allowed in the integer portion of a + * number. + * For formatting numbers other than BigInteger and + * BigDecimal objects, the lower of newValue and + * 309 is used. Negative input values are replaced with 0. + */ + // @ts-ignore + public setMinimumIntegerDigits(newValue: number): void; + /** + * Sets the maximum number of digits allowed in the fraction portion of a + * number. + * For formatting numbers other than BigInteger and + * BigDecimal objects, the lower of newValue and + * 340 is used. Negative input values are replaced with 0. + */ + // @ts-ignore + public setMaximumFractionDigits(newValue: number): void; + /** + * Sets the minimum number of digits allowed in the fraction portion of a + * number. + * For formatting numbers other than BigInteger and + * BigDecimal objects, the lower of newValue and + * 340 is used. Negative input values are replaced with 0. + */ + // @ts-ignore + public setMinimumFractionDigits(newValue: number): void; + /** + * Gets the maximum number of digits allowed in the integer portion of a + * number. + * For formatting numbers other than BigInteger and + * BigDecimal objects, the lower of the return value and + * 309 is used. + */ + // @ts-ignore + public getMaximumIntegerDigits(): number; + /** + * Gets the minimum number of digits allowed in the integer portion of a + * number. + * For formatting numbers other than BigInteger and + * BigDecimal objects, the lower of the return value and + * 309 is used. + */ + // @ts-ignore + public getMinimumIntegerDigits(): number; + /** + * Gets the maximum number of digits allowed in the fraction portion of a + * number. + * For formatting numbers other than BigInteger and + * BigDecimal objects, the lower of the return value and + * 340 is used. + */ + // @ts-ignore + public getMaximumFractionDigits(): number; + /** + * Gets the minimum number of digits allowed in the fraction portion of a + * number. + * For formatting numbers other than BigInteger and + * BigDecimal objects, the lower of the return value and + * 340 is used. + */ + // @ts-ignore + public getMinimumFractionDigits(): number; + /** + * Gets the currency used by this decimal format when formatting + * currency values. + * The currency is obtained by calling + * {@link DecimalFormatSymbols#getCurrency DecimalFormatSymbols.getCurrency} + * on this number format's symbols. + */ + // @ts-ignore + public getCurrency(): java.util.Currency; + /** + * Sets the currency used by this number format when formatting + * currency values. This does not update the minimum or maximum + * number of fraction digits used by the number format. + * The currency is set by calling + * {@link DecimalFormatSymbols#setCurrency DecimalFormatSymbols.setCurrency} + * on this number format's symbols. + */ + // @ts-ignore + public setCurrency(currency: java.util.Currency): void; + /** + * Gets the {@link java.math.RoundingMode} used in this DecimalFormat. + */ + // @ts-ignore + public getRoundingMode(): java.math.RoundingMode; + /** + * Sets the {@link java.math.RoundingMode} used in this DecimalFormat. + */ + // @ts-ignore + public setRoundingMode(roundingMode: java.math.RoundingMode): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.DecimalFormatSymbols.d.ts b/packages/types/dist/typings/jdk/java.text.DecimalFormatSymbols.d.ts new file mode 100644 index 00000000..b7c39c1b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.DecimalFormatSymbols.d.ts @@ -0,0 +1,278 @@ +// @ts-nocheck +declare namespace java { + namespace text { + // @ts-ignore + class DecimalFormatSymbols extends java.lang.Object { + /** + * Create a DecimalFormatSymbols object for the default + * {@link java.util.Locale.Category#FORMAT FORMAT} locale. + * This constructor can only construct instances for the locales + * supported by the Java runtime environment, not for those + * supported by installed + * {@link java.text.spi.DecimalFormatSymbolsProvider DecimalFormatSymbolsProvider} + * implementations. For full locale coverage, use the + * {@link #getInstance(Locale) getInstance} method. + *

This is equivalent to calling + * {@link #DecimalFormatSymbols(Locale) + * DecimalFormatSymbols(Locale.getDefault(Locale.Category.FORMAT))}. + */ + // @ts-ignore + constructor() + /** + * Create a DecimalFormatSymbols object for the given locale. + * This constructor can only construct instances for the locales + * supported by the Java runtime environment, not for those + * supported by installed + * {@link java.text.spi.DecimalFormatSymbolsProvider DecimalFormatSymbolsProvider} + * implementations. For full locale coverage, use the + * {@link #getInstance(Locale) getInstance} method. + * If the specified locale contains the {@link java.util.Locale#UNICODE_LOCALE_EXTENSION} + * for the numbering system, the instance is initialized with the specified numbering + * system if the JRE implementation supports it. For example, + *

+             * NumberFormat.getNumberInstance(Locale.forLanguageTag("th-TH-u-nu-thai"))
+             * 
+ * This may return a {@code NumberFormat} instance with the Thai numbering system, + * instead of the Latin numbering system. + */ + // @ts-ignore + constructor(locale: java.util.Locale) + /** + * Returns an array of all locales for which the + * getInstance methods of this class can return + * localized instances. + * The returned array represents the union of locales supported by the Java + * runtime and by installed + * {@link java.text.spi.DecimalFormatSymbolsProvider DecimalFormatSymbolsProvider} + * implementations. It must contain at least a Locale + * instance equal to {@link java.util.Locale#US Locale.US}. + */ + // @ts-ignore + public static getAvailableLocales(): java.util.Locale[]; + /** + * Gets the DecimalFormatSymbols instance for the default + * locale. This method provides access to DecimalFormatSymbols + * instances for locales supported by the Java runtime itself as well + * as for those supported by installed + * {@link java.text.spi.DecimalFormatSymbolsProvider + * DecimalFormatSymbolsProvider} implementations. + *

This is equivalent to calling + * {@link #getInstance(Locale) + * getInstance(Locale.getDefault(Locale.Category.FORMAT))}. + */ + // @ts-ignore + public static getInstance(): java.text.DecimalFormatSymbols; + /** + * Gets the DecimalFormatSymbols instance for the specified + * locale. This method provides access to DecimalFormatSymbols + * instances for locales supported by the Java runtime itself as well + * as for those supported by installed + * {@link java.text.spi.DecimalFormatSymbolsProvider + * DecimalFormatSymbolsProvider} implementations. + * If the specified locale contains the {@link java.util.Locale#UNICODE_LOCALE_EXTENSION} + * for the numbering system, the instance is initialized with the specified numbering + * system if the JRE implementation supports it. For example, + *

+             * NumberFormat.getNumberInstance(Locale.forLanguageTag("th-TH-u-nu-thai"))
+             * 
+ * This may return a {@code NumberFormat} instance with the Thai numbering system, + * instead of the Latin numbering system. + */ + // @ts-ignore + public static getInstance(locale: java.util.Locale): java.text.DecimalFormatSymbols; + /** + * Gets the character used for zero. Different for Arabic, etc. + */ + // @ts-ignore + public getZeroDigit(): string; + /** + * Sets the character used for zero. Different for Arabic, etc. + */ + // @ts-ignore + public setZeroDigit(zeroDigit: string): void; + /** + * Gets the character used for thousands separator. Different for French, etc. + */ + // @ts-ignore + public getGroupingSeparator(): string; + /** + * Sets the character used for thousands separator. Different for French, etc. + */ + // @ts-ignore + public setGroupingSeparator(groupingSeparator: string): void; + /** + * Gets the character used for decimal sign. Different for French, etc. + */ + // @ts-ignore + public getDecimalSeparator(): string; + /** + * Sets the character used for decimal sign. Different for French, etc. + */ + // @ts-ignore + public setDecimalSeparator(decimalSeparator: string): void; + /** + * Gets the character used for per mille sign. Different for Arabic, etc. + */ + // @ts-ignore + public getPerMill(): string; + /** + * Sets the character used for per mille sign. Different for Arabic, etc. + */ + // @ts-ignore + public setPerMill(perMill: string): void; + /** + * Gets the character used for percent sign. Different for Arabic, etc. + */ + // @ts-ignore + public getPercent(): string; + /** + * Sets the character used for percent sign. Different for Arabic, etc. + */ + // @ts-ignore + public setPercent(percent: string): void; + /** + * Gets the character used for a digit in a pattern. + */ + // @ts-ignore + public getDigit(): string; + /** + * Sets the character used for a digit in a pattern. + */ + // @ts-ignore + public setDigit(digit: string): void; + /** + * Gets the character used to separate positive and negative subpatterns + * in a pattern. + */ + // @ts-ignore + public getPatternSeparator(): string; + /** + * Sets the character used to separate positive and negative subpatterns + * in a pattern. + */ + // @ts-ignore + public setPatternSeparator(patternSeparator: string): void; + /** + * Gets the string used to represent infinity. Almost always left + * unchanged. + */ + // @ts-ignore + public getInfinity(): string; + /** + * Sets the string used to represent infinity. Almost always left + * unchanged. + */ + // @ts-ignore + public setInfinity(infinity: string): void; + /** + * Gets the string used to represent "not a number". Almost always left + * unchanged. + */ + // @ts-ignore + public getNaN(): string; + /** + * Sets the string used to represent "not a number". Almost always left + * unchanged. + */ + // @ts-ignore + public setNaN(NaN: string): void; + /** + * Gets the character used to represent minus sign. If no explicit + * negative format is specified, one is formed by prefixing + * minusSign to the positive format. + */ + // @ts-ignore + public getMinusSign(): string; + /** + * Sets the character used to represent minus sign. If no explicit + * negative format is specified, one is formed by prefixing + * minusSign to the positive format. + */ + // @ts-ignore + public setMinusSign(minusSign: string): void; + /** + * Returns the currency symbol for the currency of these + * DecimalFormatSymbols in their locale. + */ + // @ts-ignore + public getCurrencySymbol(): string; + /** + * Sets the currency symbol for the currency of these + * DecimalFormatSymbols in their locale. + */ + // @ts-ignore + public setCurrencySymbol(currency: string): void; + /** + * Returns the ISO 4217 currency code of the currency of these + * DecimalFormatSymbols. + */ + // @ts-ignore + public getInternationalCurrencySymbol(): string; + /** + * Sets the ISO 4217 currency code of the currency of these + * DecimalFormatSymbols. + * If the currency code is valid (as defined by + * {@link java.util.Currency#getInstance(java.lang.String) Currency.getInstance}), + * this also sets the currency attribute to the corresponding Currency + * instance and the currency symbol attribute to the currency's symbol + * in the DecimalFormatSymbols' locale. If the currency code is not valid, + * then the currency attribute is set to null and the currency symbol + * attribute is not modified. + */ + // @ts-ignore + public setInternationalCurrencySymbol(currencyCode: string): void; + /** + * Gets the currency of these DecimalFormatSymbols. May be null if the + * currency symbol attribute was previously set to a value that's not + * a valid ISO 4217 currency code. + */ + // @ts-ignore + public getCurrency(): java.util.Currency; + /** + * Sets the currency of these DecimalFormatSymbols. + * This also sets the currency symbol attribute to the currency's symbol + * in the DecimalFormatSymbols' locale, and the international currency + * symbol attribute to the currency's ISO 4217 currency code. + */ + // @ts-ignore + public setCurrency(currency: java.util.Currency): void; + /** + * Returns the monetary decimal separator. + */ + // @ts-ignore + public getMonetaryDecimalSeparator(): string; + /** + * Sets the monetary decimal separator. + */ + // @ts-ignore + public setMonetaryDecimalSeparator(sep: string): void; + /** + * Returns the string used to separate the mantissa from the exponent. + * Examples: "x10^" for 1.23x10^4, "E" for 1.23E4. + */ + // @ts-ignore + public getExponentSeparator(): string; + /** + * Sets the string used to separate the mantissa from the exponent. + * Examples: "x10^" for 1.23x10^4, "E" for 1.23E4. + */ + // @ts-ignore + public setExponentSeparator(exp: string): void; + /** + * Standard override. + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Override equals. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Override hashCode. + */ + // @ts-ignore + public hashCode(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.FieldPosition.d.ts b/packages/types/dist/typings/jdk/java.text.FieldPosition.d.ts new file mode 100644 index 00000000..a88480af --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.FieldPosition.d.ts @@ -0,0 +1,85 @@ +// @ts-nocheck +declare namespace java { + namespace text { + // @ts-ignore + class FieldPosition extends java.lang.Object { + /** + * Creates a FieldPosition object for the given field. Fields are + * identified by constants, whose names typically end with _FIELD, + * in the various subclasses of Format. + */ + // @ts-ignore + constructor(field: number) + /** + * Creates a FieldPosition object for the given field constant. Fields are + * identified by constants defined in the various Format + * subclasses. This is equivalent to calling + * new FieldPosition(attribute, -1). + */ + // @ts-ignore + constructor(attribute: java.text.Format.Field) + /** + * Creates a FieldPosition object for the given field. + * The field is identified by an attribute constant from one of the + * Field subclasses as well as an integer field ID + * defined by the Format subclasses. Format + * subclasses that are aware of Field should give precedence + * to attribute and ignore fieldID if + * attribute is not null. However, older Format + * subclasses may not be aware of Field and rely on + * fieldID. If the field has no corresponding integer + * constant, fieldID should be -1. + */ + // @ts-ignore + constructor(attribute: java.text.Format.Field, fieldID: number) + /** + * Returns the field identifier as an attribute constant + * from one of the Field subclasses. May return null if + * the field is specified only by an integer field ID. + */ + // @ts-ignore + public getFieldAttribute(): java.text.Format.Field; + /** + * Retrieves the field identifier. + */ + // @ts-ignore + public getField(): number; + /** + * Retrieves the index of the first character in the requested field. + */ + // @ts-ignore + public getBeginIndex(): number; + /** + * Retrieves the index of the character following the last character in the + * requested field. + */ + // @ts-ignore + public getEndIndex(): number; + /** + * Sets the begin index. For use by subclasses of Format. + */ + // @ts-ignore + public setBeginIndex(bi: number): void; + /** + * Sets the end index. For use by subclasses of Format. + */ + // @ts-ignore + public setEndIndex(ei: number): void; + /** + * Overrides equals + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a hash code for this FieldPosition. + */ + // @ts-ignore + public hashCode(): number; + /** + * Return a string representation of this FieldPosition. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.Format.Field.d.ts b/packages/types/dist/typings/jdk/java.text.Format.Field.d.ts new file mode 100644 index 00000000..efed208b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.Format.Field.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace text { + namespace Format { + // @ts-ignore + class Field extends java.text.AttributedCharacterIterator.Attribute { + /** + * Creates a Field with the specified name. + */ + // @ts-ignore + constructor(name: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.Format.d.ts b/packages/types/dist/typings/jdk/java.text.Format.d.ts new file mode 100644 index 00000000..1a5124db --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.Format.d.ts @@ -0,0 +1,68 @@ +// @ts-nocheck +declare namespace java { + namespace text { + // @ts-ignore + abstract class Format extends java.lang.Object { + /** + * Sole constructor. (For invocation by subclass constructors, typically + * implicit.) + */ + // @ts-ignore + constructor() + /** + * Formats an object to produce a string. This is equivalent to + *
+ * {@link #format(Object, StringBuffer, FieldPosition) format}(obj, + * new StringBuffer(), new FieldPosition(0)).toString(); + *
+ */ + // @ts-ignore + public format(obj: java.lang.Object): string; + /** + * Formats an Object producing an AttributedCharacterIterator. + * You can use the returned AttributedCharacterIterator + * to build the resulting String, as well as to determine information + * about the resulting String. + *

+ * Each attribute key of the AttributedCharacterIterator will be of type + * Field. It is up to each Format implementation + * to define what the legal values are for each attribute in the + * AttributedCharacterIterator, but typically the attribute + * key is also used as the attribute value. + *

The default implementation creates an + * AttributedCharacterIterator with no attributes. Subclasses + * that support fields should override this and create an + * AttributedCharacterIterator with meaningful attributes. + */ + // @ts-ignore + public formatToCharacterIterator(obj: java.lang.Object): java.text.AttributedCharacterIterator; + /** + * Parses text from a string to produce an object. + *

+ * The method attempts to parse text starting at the index given by + * pos. + * If parsing succeeds, then the index of pos is updated + * to the index after the last character used (parsing does not necessarily + * use all characters up to the end of the string), and the parsed + * object is returned. The updated pos can be used to + * indicate the starting point for the next call to this method. + * If an error occurs, then the index of pos is not + * changed, the error index of pos is set to the index of + * the character where the error occurred, and null is returned. + */ + // @ts-ignore + public abstract parseObject(source: string, pos: java.text.ParsePosition): java.lang.Object; + /** + * Parses text from the beginning of the given string to produce an object. + * The method may not use the entire text of the given string. + */ + // @ts-ignore + public parseObject(source: string): java.lang.Object; + /** + * Creates and returns a copy of this object. + */ + // @ts-ignore + public clone(): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.MessageFormat.Field.d.ts b/packages/types/dist/typings/jdk/java.text.MessageFormat.Field.d.ts new file mode 100644 index 00000000..2fea27cc --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.MessageFormat.Field.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace text { + namespace MessageFormat { + // @ts-ignore + class Field extends java.text.Format.Field { + /** + * Creates a Field with the specified name. + */ + // @ts-ignore + constructor(name: string) + // @ts-ignore + public static ARGUMENT: java.text.MessageFormat.Field; + /** + * Resolves instances being deserialized to the predefined constants. + */ + // @ts-ignore + protected readResolve(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.MessageFormat.d.ts b/packages/types/dist/typings/jdk/java.text.MessageFormat.d.ts new file mode 100644 index 00000000..a7ecef97 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.MessageFormat.d.ts @@ -0,0 +1,353 @@ +// @ts-nocheck +declare namespace java { + namespace text { + // @ts-ignore + class MessageFormat extends java.text.Format { + /** + * Constructs a MessageFormat for the default + * {@link java.util.Locale.Category#FORMAT FORMAT} locale and the + * specified pattern. + * The constructor first sets the locale, then parses the pattern and + * creates a list of subformats for the format elements contained in it. + * Patterns and their interpretation are specified in the + * class description. + */ + // @ts-ignore + constructor(pattern: string) + /** + * Constructs a MessageFormat for the specified locale and + * pattern. + * The constructor first sets the locale, then parses the pattern and + * creates a list of subformats for the format elements contained in it. + * Patterns and their interpretation are specified in the + * class description. + */ + // @ts-ignore + constructor(pattern: string, locale: java.util.Locale) + /** + * Sets the locale to be used when creating or comparing subformats. + * This affects subsequent calls + *

    + *
  • to the {@link #applyPattern applyPattern} + * and {@link #toPattern toPattern} methods if format elements specify + * a format type and therefore have the subformats created in the + * applyPattern method, as well as + *
  • to the format and + * {@link #formatToCharacterIterator formatToCharacterIterator} methods + * if format elements do not specify a format type and therefore have + * the subformats created in the formatting methods. + *
+ * Subformats that have already been created are not affected. + */ + // @ts-ignore + public setLocale(locale: java.util.Locale): void; + /** + * Gets the locale that's used when creating or comparing subformats. + */ + // @ts-ignore + public getLocale(): java.util.Locale; + /** + * Sets the pattern used by this message format. + * The method parses the pattern and creates a list of subformats + * for the format elements contained in it. + * Patterns and their interpretation are specified in the + * class description. + */ + // @ts-ignore + public applyPattern(pattern: string): void; + /** + * Returns a pattern representing the current state of the message format. + * The string is constructed from internal information and therefore + * does not necessarily equal the previously applied pattern. + */ + // @ts-ignore + public toPattern(): string; + /** + * Sets the formats to use for the values passed into + * format methods or returned from parse + * methods. The indices of elements in newFormats + * correspond to the argument indices used in the previously set + * pattern string. + * The order of formats in newFormats thus corresponds to + * the order of elements in the arguments array passed + * to the format methods or the result array returned + * by the parse methods. + *

+ * If an argument index is used for more than one format element + * in the pattern string, then the corresponding new format is used + * for all such format elements. If an argument index is not used + * for any format element in the pattern string, then the + * corresponding new format is ignored. If fewer formats are provided + * than needed, then only the formats for argument indices less + * than newFormats.length are replaced. + */ + // @ts-ignore + public setFormatsByArgumentIndex(newFormats: java.text.Format): void; + /** + * Sets the formats to use for the format elements in the + * previously set pattern string. + * The order of formats in newFormats corresponds to + * the order of format elements in the pattern string. + *

+ * If more formats are provided than needed by the pattern string, + * the remaining ones are ignored. If fewer formats are provided + * than needed, then only the first newFormats.length + * formats are replaced. + *

+ * Since the order of format elements in a pattern string often + * changes during localization, it is generally better to use the + * {@link #setFormatsByArgumentIndex setFormatsByArgumentIndex} + * method, which assumes an order of formats corresponding to the + * order of elements in the arguments array passed to + * the format methods or the result array returned by + * the parse methods. + */ + // @ts-ignore + public setFormats(newFormats: java.text.Format): void; + /** + * Sets the format to use for the format elements within the + * previously set pattern string that use the given argument + * index. + * The argument index is part of the format element definition and + * represents an index into the arguments array passed + * to the format methods or the result array returned + * by the parse methods. + *

+ * If the argument index is used for more than one format element + * in the pattern string, then the new format is used for all such + * format elements. If the argument index is not used for any format + * element in the pattern string, then the new format is ignored. + */ + // @ts-ignore + public setFormatByArgumentIndex(argumentIndex: number, newFormat: java.text.Format): void; + /** + * Sets the format to use for the format element with the given + * format element index within the previously set pattern string. + * The format element index is the zero-based number of the format + * element counting from the start of the pattern string. + *

+ * Since the order of format elements in a pattern string often + * changes during localization, it is generally better to use the + * {@link #setFormatByArgumentIndex setFormatByArgumentIndex} + * method, which accesses format elements based on the argument + * index they specify. + */ + // @ts-ignore + public setFormat(formatElementIndex: number, newFormat: java.text.Format): void; + /** + * Gets the formats used for the values passed into + * format methods or returned from parse + * methods. The indices of elements in the returned array + * correspond to the argument indices used in the previously set + * pattern string. + * The order of formats in the returned array thus corresponds to + * the order of elements in the arguments array passed + * to the format methods or the result array returned + * by the parse methods. + *

+ * If an argument index is used for more than one format element + * in the pattern string, then the format used for the last such + * format element is returned in the array. If an argument index + * is not used for any format element in the pattern string, then + * null is returned in the array. + */ + // @ts-ignore + public getFormatsByArgumentIndex(): java.text.Format[]; + /** + * Gets the formats used for the format elements in the + * previously set pattern string. + * The order of formats in the returned array corresponds to + * the order of format elements in the pattern string. + *

+ * Since the order of format elements in a pattern string often + * changes during localization, it's generally better to use the + * {@link #getFormatsByArgumentIndex getFormatsByArgumentIndex} + * method, which assumes an order of formats corresponding to the + * order of elements in the arguments array passed to + * the format methods or the result array returned by + * the parse methods. + */ + // @ts-ignore + public getFormats(): java.text.Format[]; + /** + * Formats an array of objects and appends the MessageFormat's + * pattern, with format elements replaced by the formatted objects, to the + * provided StringBuffer. + *

+ * The text substituted for the individual format elements is derived from + * the current subformat of the format element and the + * arguments element at the format element's argument index + * as indicated by the first matching line of the following table. An + * argument is unavailable if arguments is + * null or has fewer than argumentIndex+1 elements. + * + * + * + * + * + * + * + * + * + * + *
Subformat + * Argument + * Formatted Text + *
any + * unavailable + * "{" + argumentIndex + "}" + *
any + * null + * "null" + *
instanceof ChoiceFormat + * any + * subformat.format(argument).indexOf('{') >= 0 ?
+ * (new MessageFormat(subformat.format(argument), getLocale())).format(argument) : + * subformat.format(argument)
+ *
!= null + * any + * subformat.format(argument) + *
null + * instanceof Number + * NumberFormat.getInstance(getLocale()).format(argument) + *
null + * instanceof Date + * DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, getLocale()).format(argument) + *
null + * instanceof String + * argument + *
null + * any + * argument.toString() + *
+ *

+ * If pos is non-null, and refers to + * Field.ARGUMENT, the location of the first formatted + * string will be returned. + */ + // @ts-ignore + public format(arguments: java.lang.Object, result: java.lang.StringBuffer, pos: java.text.FieldPosition): java.lang.StringBuffer; + /** + * Creates a MessageFormat with the given pattern and uses it + * to format the given arguments. This is equivalent to + *

+ * (new {@link #MessageFormat(String) MessageFormat}(pattern)).{@link #format(java.lang.Object[], java.lang.StringBuffer, java.text.FieldPosition) format}(arguments, new StringBuffer(), null).toString() + *
+ */ + // @ts-ignore + public static format(pattern: string, arguments: java.lang.Object): string; + /** + * Formats an array of objects and appends the MessageFormat's + * pattern, with format elements replaced by the formatted objects, to the + * provided StringBuffer. + * This is equivalent to + *
+ * {@link #format(java.lang.Object[], java.lang.StringBuffer, java.text.FieldPosition) format}((Object[]) arguments, result, pos) + *
+ */ + // @ts-ignore + public format(arguments: java.lang.Object, result: java.lang.StringBuffer, pos: java.text.FieldPosition): java.lang.StringBuffer; + /** + * Formats an array of objects and inserts them into the + * MessageFormat's pattern, producing an + * AttributedCharacterIterator. + * You can use the returned AttributedCharacterIterator + * to build the resulting String, as well as to determine information + * about the resulting String. + *

+ * The text of the returned AttributedCharacterIterator is + * the same that would be returned by + *

+ * {@link #format(java.lang.Object[], java.lang.StringBuffer, java.text.FieldPosition) format}(arguments, new StringBuffer(), null).toString() + *
+ *

+ * In addition, the AttributedCharacterIterator contains at + * least attributes indicating where text was generated from an + * argument in the arguments array. The keys of these attributes are of + * type MessageFormat.Field, their values are + * Integer objects indicating the index in the arguments + * array of the argument from which the text was generated. + *

+ * The attributes/value from the underlying Format + * instances that MessageFormat uses will also be + * placed in the resulting AttributedCharacterIterator. + * This allows you to not only find where an argument is placed in the + * resulting String, but also which fields it contains in turn. + */ + // @ts-ignore + public formatToCharacterIterator(arguments: java.lang.Object): java.text.AttributedCharacterIterator; + /** + * Parses the string. + *

Caveats: The parse may fail in a number of circumstances. + * For example: + *

    + *
  • If one of the arguments does not occur in the pattern. + *
  • If the format of an argument loses information, such as + * with a choice format where a large number formats to "many". + *
  • Does not yet handle recursion (where + * the substituted strings contain {n} references.) + *
  • Will not always find a match (or the correct match) + * if some part of the parse is ambiguous. + * For example, if the pattern "{1},{2}" is used with the + * string arguments {"a,b", "c"}, it will format as "a,b,c". + * When the result is parsed, it will return {"a", "b,c"}. + *
  • If a single argument is parsed more than once in the string, + * then the later parse wins. + *
+ * When the parse fails, use ParsePosition.getErrorIndex() to find out + * where in the string the parsing failed. The returned error + * index is the starting offset of the sub-patterns that the string + * is comparing with. For example, if the parsing string "AAA {0} BBB" + * is comparing against the pattern "AAD {0} BBB", the error index is + * 0. When an error occurs, the call to this method will return null. + * If the source is null, return an empty array. + */ + // @ts-ignore + public parse(source: string, pos: java.text.ParsePosition): java.lang.Object[]; + /** + * Parses text from the beginning of the given string to produce an object + * array. + * The method may not use the entire text of the given string. + *

+ * See the {@link #parse(String, ParsePosition)} method for more information + * on message parsing. + */ + // @ts-ignore + public parse(source: string): java.lang.Object[]; + /** + * Parses text from a string to produce an object array. + *

+ * The method attempts to parse text starting at the index given by + * pos. + * If parsing succeeds, then the index of pos is updated + * to the index after the last character used (parsing does not necessarily + * use all characters up to the end of the string), and the parsed + * object array is returned. The updated pos can be used to + * indicate the starting point for the next call to this method. + * If an error occurs, then the index of pos is not + * changed, the error index of pos is set to the index of + * the character where the error occurred, and null is returned. + *

+ * See the {@link #parse(String, ParsePosition)} method for more information + * on message parsing. + */ + // @ts-ignore + public parseObject(source: string, pos: java.text.ParsePosition): java.lang.Object; + /** + * Creates and returns a copy of this object. + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Equality comparison between two message format objects + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Generates a hash code for the message format object. + */ + // @ts-ignore + public hashCode(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.Normalizer.Form.d.ts b/packages/types/dist/typings/jdk/java.text.Normalizer.Form.d.ts new file mode 100644 index 00000000..5fb7514f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.Normalizer.Form.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace text { + namespace Normalizer { + // @ts-ignore + class Form extends java.lang.Enum { + // @ts-ignore + public static NFD: java.text.Normalizer.Form; + // @ts-ignore + public static NFC: java.text.Normalizer.Form; + // @ts-ignore + public static NFKD: java.text.Normalizer.Form; + // @ts-ignore + public static NFKC: java.text.Normalizer.Form; + // @ts-ignore + public static values(): java.text.Normalizer.Form[]; + // @ts-ignore + public static valueOf(name: string): java.text.Normalizer.Form; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.Normalizer.d.ts b/packages/types/dist/typings/jdk/java.text.Normalizer.d.ts new file mode 100644 index 00000000..cabaf8a3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.Normalizer.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace text { + // @ts-ignore + class Normalizer extends java.lang.Object { + /** + * Normalize a sequence of char values. + * The sequence will be normalized according to the specified normalization + * from. + */ + // @ts-ignore + public static normalize(src: java.lang.CharSequence, form: java.text.Normalizer.Form): string; + /** + * Determines if the given sequence of char values is normalized. + */ + // @ts-ignore + public static isNormalized(src: java.lang.CharSequence, form: java.text.Normalizer.Form): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.NumberFormat.Field.d.ts b/packages/types/dist/typings/jdk/java.text.NumberFormat.Field.d.ts new file mode 100644 index 00000000..d254c30c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.NumberFormat.Field.d.ts @@ -0,0 +1,43 @@ +// @ts-nocheck +declare namespace java { + namespace text { + namespace NumberFormat { + // @ts-ignore + class Field extends java.text.Format.Field { + /** + * Creates a Field instance with the specified + * name. + */ + // @ts-ignore + constructor(name: string) + // @ts-ignore + public static INTEGER: java.text.NumberFormat.Field; + // @ts-ignore + public static FRACTION: java.text.NumberFormat.Field; + // @ts-ignore + public static EXPONENT: java.text.NumberFormat.Field; + // @ts-ignore + public static DECIMAL_SEPARATOR: java.text.NumberFormat.Field; + // @ts-ignore + public static SIGN: java.text.NumberFormat.Field; + // @ts-ignore + public static GROUPING_SEPARATOR: java.text.NumberFormat.Field; + // @ts-ignore + public static EXPONENT_SYMBOL: java.text.NumberFormat.Field; + // @ts-ignore + public static PERCENT: java.text.NumberFormat.Field; + // @ts-ignore + public static PERMILLE: java.text.NumberFormat.Field; + // @ts-ignore + public static CURRENCY: java.text.NumberFormat.Field; + // @ts-ignore + public static EXPONENT_SIGN: java.text.NumberFormat.Field; + /** + * Resolves instances being deserialized to the predefined constants. + */ + // @ts-ignore + protected readResolve(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.NumberFormat.d.ts b/packages/types/dist/typings/jdk/java.text.NumberFormat.d.ts new file mode 100644 index 00000000..e34df8cd --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.NumberFormat.d.ts @@ -0,0 +1,322 @@ +// @ts-nocheck +declare namespace java { + namespace text { + // @ts-ignore + abstract class NumberFormat extends java.text.Format { + /** + * Sole constructor. (For invocation by subclass constructors, typically + * implicit.) + */ + // @ts-ignore + constructor() + // @ts-ignore + public static INTEGER_FIELD: number; + // @ts-ignore + public static FRACTION_FIELD: number; + /** + * Formats a number and appends the resulting text to the given string + * buffer. + * The number can be of any subclass of {@link java.lang.Number}. + *

+ * This implementation extracts the number's value using + * {@link java.lang.Number#longValue()} for all integral type values that + * can be converted to long without loss of information, + * including BigInteger values with a + * {@link java.math.BigInteger#bitLength() bit length} of less than 64, + * and {@link java.lang.Number#doubleValue()} for all other types. It + * then calls + * {@link #format(long,java.lang.StringBuffer,java.text.FieldPosition)} + * or {@link #format(double,java.lang.StringBuffer,java.text.FieldPosition)}. + * This may result in loss of magnitude information and precision for + * BigInteger and BigDecimal values. + */ + // @ts-ignore + public format(number: java.lang.Object, toAppendTo: java.lang.StringBuffer, pos: java.text.FieldPosition): java.lang.StringBuffer; + /** + * Parses text from a string to produce a Number. + *

+ * The method attempts to parse text starting at the index given by + * pos. + * If parsing succeeds, then the index of pos is updated + * to the index after the last character used (parsing does not necessarily + * use all characters up to the end of the string), and the parsed + * number is returned. The updated pos can be used to + * indicate the starting point for the next call to this method. + * If an error occurs, then the index of pos is not + * changed, the error index of pos is set to the index of + * the character where the error occurred, and null is returned. + *

+ * See the {@link #parse(String, ParsePosition)} method for more information + * on number parsing. + */ + // @ts-ignore + public parseObject(source: string, pos: java.text.ParsePosition): java.lang.Object; + /** + * Specialization of format. + */ + // @ts-ignore + public format(number: number): string; + /** + * Specialization of format. + */ + // @ts-ignore + public format(number: number): string; + /** + * Returns a Long if possible (e.g., within the range [Long.MIN_VALUE, + * Long.MAX_VALUE] and with no decimals), otherwise a Double. + * If IntegerOnly is set, will stop at a decimal + * point (or equivalent; e.g., for rational numbers "1 2/3", will stop + * after the 1). + * Does not throw an exception; if no object can be parsed, index is + * unchanged! + */ + // @ts-ignore + public abstract parse(source: string, parsePosition: java.text.ParsePosition): java.lang.Number; + /** + * Parses text from the beginning of the given string to produce a number. + * The method may not use the entire text of the given string. + *

+ * See the {@link #parse(String, ParsePosition)} method for more information + * on number parsing. + */ + // @ts-ignore + public parse(source: string): java.lang.Number; + /** + * Returns true if this format will parse numbers as integers only. + * For example in the English locale, with ParseIntegerOnly true, the + * string "1234." would be parsed as the integer value 1234 and parsing + * would stop at the "." character. Of course, the exact format accepted + * by the parse operation is locale dependant and determined by sub-classes + * of NumberFormat. + */ + // @ts-ignore + public isParseIntegerOnly(): boolean; + /** + * Sets whether or not numbers should be parsed as integers only. + */ + // @ts-ignore + public setParseIntegerOnly(value: boolean): void; + /** + * Returns a general-purpose number format for the current default + * {@link java.util.Locale.Category#FORMAT FORMAT} locale. + * This is the same as calling + * {@link #getNumberInstance() getNumberInstance()}. + */ + // @ts-ignore + public static getInstance(): java.text.NumberFormat; + /** + * Returns a general-purpose number format for the specified locale. + * This is the same as calling + * {@link #getNumberInstance(java.util.Locale) getNumberInstance(inLocale)}. + */ + // @ts-ignore + public static getInstance(inLocale: java.util.Locale): java.text.NumberFormat; + /** + * Returns a general-purpose number format for the current default + * {@link java.util.Locale.Category#FORMAT FORMAT} locale. + *

This is equivalent to calling + * {@link #getNumberInstance(Locale) + * getNumberInstance(Locale.getDefault(Locale.Category.FORMAT))}. + */ + // @ts-ignore + public static getNumberInstance(): java.text.NumberFormat; + /** + * Returns a general-purpose number format for the specified locale. + */ + // @ts-ignore + public static getNumberInstance(inLocale: java.util.Locale): java.text.NumberFormat; + /** + * Returns an integer number format for the current default + * {@link java.util.Locale.Category#FORMAT FORMAT} locale. The + * returned number format is configured to round floating point numbers + * to the nearest integer using half-even rounding (see {@link + * java.math.RoundingMode#HALF_EVEN RoundingMode.HALF_EVEN}) for formatting, + * and to parse only the integer part of an input string (see {@link + * #isParseIntegerOnly isParseIntegerOnly}). + *

This is equivalent to calling + * {@link #getIntegerInstance(Locale) + * getIntegerInstance(Locale.getDefault(Locale.Category.FORMAT))}. + */ + // @ts-ignore + public static getIntegerInstance(): java.text.NumberFormat; + /** + * Returns an integer number format for the specified locale. The + * returned number format is configured to round floating point numbers + * to the nearest integer using half-even rounding (see {@link + * java.math.RoundingMode#HALF_EVEN RoundingMode.HALF_EVEN}) for formatting, + * and to parse only the integer part of an input string (see {@link + * #isParseIntegerOnly isParseIntegerOnly}). + */ + // @ts-ignore + public static getIntegerInstance(inLocale: java.util.Locale): java.text.NumberFormat; + /** + * Returns a currency format for the current default + * {@link java.util.Locale.Category#FORMAT FORMAT} locale. + *

This is equivalent to calling + * {@link #getCurrencyInstance(Locale) + * getCurrencyInstance(Locale.getDefault(Locale.Category.FORMAT))}. + */ + // @ts-ignore + public static getCurrencyInstance(): java.text.NumberFormat; + /** + * Returns a currency format for the specified locale. + */ + // @ts-ignore + public static getCurrencyInstance(inLocale: java.util.Locale): java.text.NumberFormat; + /** + * Returns a percentage format for the current default + * {@link java.util.Locale.Category#FORMAT FORMAT} locale. + *

This is equivalent to calling + * {@link #getPercentInstance(Locale) + * getPercentInstance(Locale.getDefault(Locale.Category.FORMAT))}. + */ + // @ts-ignore + public static getPercentInstance(): java.text.NumberFormat; + /** + * Returns a percentage format for the specified locale. + */ + // @ts-ignore + public static getPercentInstance(inLocale: java.util.Locale): java.text.NumberFormat; + /** + * Returns an array of all locales for which the + * get*Instance methods of this class can return + * localized instances. + * The returned array represents the union of locales supported by the Java + * runtime and by installed + * {@link java.text.spi.NumberFormatProvider NumberFormatProvider} implementations. + * It must contain at least a Locale instance equal to + * {@link java.util.Locale#US Locale.US}. + */ + // @ts-ignore + public static getAvailableLocales(): java.util.Locale[]; + /** + * Overrides hashCode. + */ + // @ts-ignore + public hashCode(): number; + /** + * Overrides equals. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Overrides Cloneable. + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Returns true if grouping is used in this format. For example, in the + * English locale, with grouping on, the number 1234567 might be formatted + * as "1,234,567". The grouping separator as well as the size of each group + * is locale dependant and is determined by sub-classes of NumberFormat. + */ + // @ts-ignore + public isGroupingUsed(): boolean; + /** + * Set whether or not grouping will be used in this format. + */ + // @ts-ignore + public setGroupingUsed(newValue: boolean): void; + /** + * Returns the maximum number of digits allowed in the integer portion of a + * number. + */ + // @ts-ignore + public getMaximumIntegerDigits(): number; + /** + * Sets the maximum number of digits allowed in the integer portion of a + * number. maximumIntegerDigits must be ≥ minimumIntegerDigits. If the + * new value for maximumIntegerDigits is less than the current value + * of minimumIntegerDigits, then minimumIntegerDigits will also be set to + * the new value. + */ + // @ts-ignore + public setMaximumIntegerDigits(newValue: number): void; + /** + * Returns the minimum number of digits allowed in the integer portion of a + * number. + */ + // @ts-ignore + public getMinimumIntegerDigits(): number; + /** + * Sets the minimum number of digits allowed in the integer portion of a + * number. minimumIntegerDigits must be ≤ maximumIntegerDigits. If the + * new value for minimumIntegerDigits exceeds the current value + * of maximumIntegerDigits, then maximumIntegerDigits will also be set to + * the new value + */ + // @ts-ignore + public setMinimumIntegerDigits(newValue: number): void; + /** + * Returns the maximum number of digits allowed in the fraction portion of a + * number. + */ + // @ts-ignore + public getMaximumFractionDigits(): number; + /** + * Sets the maximum number of digits allowed in the fraction portion of a + * number. maximumFractionDigits must be ≥ minimumFractionDigits. If the + * new value for maximumFractionDigits is less than the current value + * of minimumFractionDigits, then minimumFractionDigits will also be set to + * the new value. + */ + // @ts-ignore + public setMaximumFractionDigits(newValue: number): void; + /** + * Returns the minimum number of digits allowed in the fraction portion of a + * number. + */ + // @ts-ignore + public getMinimumFractionDigits(): number; + /** + * Sets the minimum number of digits allowed in the fraction portion of a + * number. minimumFractionDigits must be ≤ maximumFractionDigits. If the + * new value for minimumFractionDigits exceeds the current value + * of maximumFractionDigits, then maximumIntegerDigits will also be set to + * the new value + */ + // @ts-ignore + public setMinimumFractionDigits(newValue: number): void; + /** + * Gets the currency used by this number format when formatting + * currency values. The initial value is derived in a locale dependent + * way. The returned value may be null if no valid + * currency could be determined and no currency has been set using + * {@link #setCurrency(java.util.Currency) setCurrency}. + *

+ * The default implementation throws + * UnsupportedOperationException. + */ + // @ts-ignore + public getCurrency(): java.util.Currency; + /** + * Sets the currency used by this number format when formatting + * currency values. This does not update the minimum or maximum + * number of fraction digits used by the number format. + *

+ * The default implementation throws + * UnsupportedOperationException. + */ + // @ts-ignore + public setCurrency(currency: java.util.Currency): void; + /** + * Gets the {@link java.math.RoundingMode} used in this NumberFormat. + * The default implementation of this method in NumberFormat + * always throws {@link java.lang.UnsupportedOperationException}. + * Subclasses which handle different rounding modes should override + * this method. + */ + // @ts-ignore + public getRoundingMode(): java.math.RoundingMode; + /** + * Sets the {@link java.math.RoundingMode} used in this NumberFormat. + * The default implementation of this method in NumberFormat always + * throws {@link java.lang.UnsupportedOperationException}. + * Subclasses which handle different rounding modes should override + * this method. + */ + // @ts-ignore + public setRoundingMode(roundingMode: java.math.RoundingMode): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.ParseException.d.ts b/packages/types/dist/typings/jdk/java.text.ParseException.d.ts new file mode 100644 index 00000000..ba905c66 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.ParseException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace text { + // @ts-ignore + class ParseException extends java.lang.Exception { + /** + * Constructs a ParseException with the specified detail message and + * offset. + * A detail message is a String that describes this particular exception. + */ + // @ts-ignore + constructor(s: string, errorOffset: number) + /** + * Returns the position where the error was found. + */ + // @ts-ignore + public getErrorOffset(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.ParsePosition.d.ts b/packages/types/dist/typings/jdk/java.text.ParsePosition.d.ts new file mode 100644 index 00000000..08b16da3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.ParsePosition.d.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +declare namespace java { + namespace text { + // @ts-ignore + class ParsePosition extends java.lang.Object { + /** + * Create a new ParsePosition with the given initial index. + */ + // @ts-ignore + constructor(index: number) + /** + * Retrieve the current parse position. On input to a parse method, this + * is the index of the character at which parsing will begin; on output, it + * is the index of the character following the last character parsed. + */ + // @ts-ignore + public getIndex(): number; + /** + * Set the current parse position. + */ + // @ts-ignore + public setIndex(index: number): void; + /** + * Set the index at which a parse error occurred. Formatters + * should set this before returning an error code from their + * parseObject method. The default value is -1 if this is not set. + */ + // @ts-ignore + public setErrorIndex(ei: number): void; + /** + * Retrieve the index at which an error occurred, or -1 if the + * error index has not been set. + */ + // @ts-ignore + public getErrorIndex(): number; + /** + * Overrides equals + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a hash code for this ParsePosition. + */ + // @ts-ignore + public hashCode(): number; + /** + * Return a string representation of this ParsePosition. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.RuleBasedCollator.d.ts b/packages/types/dist/typings/jdk/java.text.RuleBasedCollator.d.ts new file mode 100644 index 00000000..43fc3273 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.RuleBasedCollator.d.ts @@ -0,0 +1,60 @@ +// @ts-nocheck +declare namespace java { + namespace text { + // @ts-ignore + class RuleBasedCollator extends java.text.Collator { + /** + * RuleBasedCollator constructor. This takes the table rules and builds + * a collation table out of them. Please see RuleBasedCollator class + * description for more details on the collation rule syntax. + */ + // @ts-ignore + constructor(rules: string) + /** + * Gets the table-based rules for the collation object. + */ + // @ts-ignore + public getRules(): string; + /** + * Returns a CollationElementIterator for the given String. + */ + // @ts-ignore + public getCollationElementIterator(source: string): java.text.CollationElementIterator; + /** + * Returns a CollationElementIterator for the given CharacterIterator. + */ + // @ts-ignore + public getCollationElementIterator(source: java.text.CharacterIterator): java.text.CollationElementIterator; + /** + * Compares the character data stored in two different strings based on the + * collation rules. Returns information about whether a string is less + * than, greater than or equal to another string in a language. + * This can be overriden in a subclass. + */ + // @ts-ignore + public compare(source: string, target: string): number; + /** + * Transforms the string into a series of characters that can be compared + * with CollationKey.compareTo. This overrides java.text.Collator.getCollationKey. + * It can be overriden in a subclass. + */ + // @ts-ignore + public getCollationKey(source: string): java.text.CollationKey; + /** + * Standard override; no change in semantics. + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Compares the equality of two collation objects. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Generates the hash code for the table-based collation object + */ + // @ts-ignore + public hashCode(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.SimpleDateFormat.d.ts b/packages/types/dist/typings/jdk/java.text.SimpleDateFormat.d.ts new file mode 100644 index 00000000..3c10b33a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.SimpleDateFormat.d.ts @@ -0,0 +1,152 @@ +// @ts-nocheck +declare namespace java { + namespace text { + // @ts-ignore + class SimpleDateFormat extends java.text.DateFormat { + /** + * Constructs a SimpleDateFormat using the default pattern and + * date format symbols for the default + * {@link java.util.Locale.Category#FORMAT FORMAT} locale. + * Note: This constructor may not support all locales. + * For full coverage, use the factory methods in the {@link DateFormat} + * class. + */ + // @ts-ignore + constructor() + /** + * Constructs a SimpleDateFormat using the given pattern and + * the default date format symbols for the default + * {@link java.util.Locale.Category#FORMAT FORMAT} locale. + * Note: This constructor may not support all locales. + * For full coverage, use the factory methods in the {@link DateFormat} + * class. + *

This is equivalent to calling + * {@link #SimpleDateFormat(String, Locale) + * SimpleDateFormat(pattern, Locale.getDefault(Locale.Category.FORMAT))}. + */ + // @ts-ignore + constructor(pattern: string) + /** + * Constructs a SimpleDateFormat using the given pattern and + * the default date format symbols for the given locale. + * Note: This constructor may not support all locales. + * For full coverage, use the factory methods in the {@link DateFormat} + * class. + */ + // @ts-ignore + constructor(pattern: string, locale: java.util.Locale) + /** + * Constructs a SimpleDateFormat using the given pattern and + * date format symbols. + */ + // @ts-ignore + constructor(pattern: string, formatSymbols: java.text.DateFormatSymbols) + /** + * Sets the 100-year period 2-digit years will be interpreted as being in + * to begin on the date the user specifies. + */ + // @ts-ignore + public set2DigitYearStart(startDate: java.util.Date): void; + /** + * Returns the beginning date of the 100-year period 2-digit years are interpreted + * as being within. + */ + // @ts-ignore + public get2DigitYearStart(): java.util.Date; + /** + * Formats the given Date into a date/time string and appends + * the result to the given StringBuffer. + */ + // @ts-ignore + public format(date: java.util.Date, toAppendTo: java.lang.StringBuffer, pos: java.text.FieldPosition): java.lang.StringBuffer; + /** + * Formats an Object producing an AttributedCharacterIterator. + * You can use the returned AttributedCharacterIterator + * to build the resulting String, as well as to determine information + * about the resulting String. + *

+ * Each attribute key of the AttributedCharacterIterator will be of type + * DateFormat.Field, with the corresponding attribute value + * being the same as the attribute key. + */ + // @ts-ignore + public formatToCharacterIterator(obj: java.lang.Object): java.text.AttributedCharacterIterator; + /** + * Parses text from a string to produce a Date. + *

+ * The method attempts to parse text starting at the index given by + * pos. + * If parsing succeeds, then the index of pos is updated + * to the index after the last character used (parsing does not necessarily + * use all characters up to the end of the string), and the parsed + * date is returned. The updated pos can be used to + * indicate the starting point for the next call to this method. + * If an error occurs, then the index of pos is not + * changed, the error index of pos is set to the index of + * the character where the error occurred, and null is returned. + *

This parsing operation uses the {@link DateFormat#calendar + * calendar} to produce a {@code Date}. All of the {@code + * calendar}'s date-time fields are {@linkplain Calendar#clear() + * cleared} before parsing, and the {@code calendar}'s default + * values of the date-time fields are used for any missing + * date-time information. For example, the year value of the + * parsed {@code Date} is 1970 with {@link GregorianCalendar} if + * no year value is given from the parsing operation. The {@code + * TimeZone} value may be overwritten, depending on the given + * pattern and the time zone value in {@code text}. Any {@code + * TimeZone} value that has previously been set by a call to + * {@link #setTimeZone(java.util.TimeZone) setTimeZone} may need + * to be restored for further operations. + */ + // @ts-ignore + public parse(text: string, pos: java.text.ParsePosition): java.util.Date; + /** + * Returns a pattern string describing this date format. + */ + // @ts-ignore + public toPattern(): string; + /** + * Returns a localized pattern string describing this date format. + */ + // @ts-ignore + public toLocalizedPattern(): string; + /** + * Applies the given pattern string to this date format. + */ + // @ts-ignore + public applyPattern(pattern: string): void; + /** + * Applies the given localized pattern string to this date format. + */ + // @ts-ignore + public applyLocalizedPattern(pattern: string): void; + /** + * Gets a copy of the date and time format symbols of this date format. + */ + // @ts-ignore + public getDateFormatSymbols(): java.text.DateFormatSymbols; + /** + * Sets the date and time format symbols of this date format. + */ + // @ts-ignore + public setDateFormatSymbols(newFormatSymbols: java.text.DateFormatSymbols): void; + /** + * Creates a copy of this SimpleDateFormat. This also + * clones the format's date format symbols. + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Returns the hash code value for this SimpleDateFormat object. + */ + // @ts-ignore + public hashCode(): number; + /** + * Compares the given object with this SimpleDateFormat for + * equality. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.StringCharacterIterator.d.ts b/packages/types/dist/typings/jdk/java.text.StringCharacterIterator.d.ts new file mode 100644 index 00000000..53d01f9b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.StringCharacterIterator.d.ts @@ -0,0 +1,92 @@ +// @ts-nocheck +declare namespace java { + namespace text { + // @ts-ignore + class StringCharacterIterator extends java.lang.Object { + /** + * Constructs an iterator with an initial index of 0. + */ + // @ts-ignore + constructor(text: string) + /** + * Constructs an iterator with the specified initial index. + */ + // @ts-ignore + constructor(text: string, pos: number) + /** + * Constructs an iterator over the given range of the given string, with the + * index set at the specified position. + */ + // @ts-ignore + constructor(text: string, begin: number, end: number, pos: number) + /** + * Reset this iterator to point to a new string. This package-visible + * method is used by other java.text classes that want to avoid allocating + * new StringCharacterIterator objects every time their setText method + * is called. + */ + // @ts-ignore + public setText(text: string): void; + /** + * Implements CharacterIterator.first() for String. + */ + // @ts-ignore + public first(): string; + /** + * Implements CharacterIterator.last() for String. + */ + // @ts-ignore + public last(): string; + /** + * Implements CharacterIterator.setIndex() for String. + */ + // @ts-ignore + public setIndex(p: number): string; + /** + * Implements CharacterIterator.current() for String. + */ + // @ts-ignore + public current(): string; + /** + * Implements CharacterIterator.next() for String. + */ + // @ts-ignore + public next(): string; + /** + * Implements CharacterIterator.previous() for String. + */ + // @ts-ignore + public previous(): string; + /** + * Implements CharacterIterator.getBeginIndex() for String. + */ + // @ts-ignore + public getBeginIndex(): number; + /** + * Implements CharacterIterator.getEndIndex() for String. + */ + // @ts-ignore + public getEndIndex(): number; + /** + * Implements CharacterIterator.getIndex() for String. + */ + // @ts-ignore + public getIndex(): number; + /** + * Compares the equality of two StringCharacterIterator objects. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Computes a hashcode for this iterator. + */ + // @ts-ignore + public hashCode(): number; + /** + * Creates a copy of this iterator. + */ + // @ts-ignore + public clone(): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.spi.BreakIteratorProvider.d.ts b/packages/types/dist/typings/jdk/java.text.spi.BreakIteratorProvider.d.ts new file mode 100644 index 00000000..3e7223d4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.spi.BreakIteratorProvider.d.ts @@ -0,0 +1,44 @@ +// @ts-nocheck +declare namespace java { + namespace text { + namespace spi { + // @ts-ignore + abstract class BreakIteratorProvider extends java.util.spi.LocaleServiceProvider { + /** + * Sole constructor. (For invocation by subclass constructors, typically + * implicit.) + */ + // @ts-ignore + constructor() + /** + * Returns a new BreakIterator instance + * for word breaks + * for the given locale. + */ + // @ts-ignore + public abstract getWordInstance(locale: java.util.Locale): java.text.BreakIterator; + /** + * Returns a new BreakIterator instance + * for line breaks + * for the given locale. + */ + // @ts-ignore + public abstract getLineInstance(locale: java.util.Locale): java.text.BreakIterator; + /** + * Returns a new BreakIterator instance + * for character breaks + * for the given locale. + */ + // @ts-ignore + public abstract getCharacterInstance(locale: java.util.Locale): java.text.BreakIterator; + /** + * Returns a new BreakIterator instance + * for sentence breaks + * for the given locale. + */ + // @ts-ignore + public abstract getSentenceInstance(locale: java.util.Locale): java.text.BreakIterator; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.spi.CollatorProvider.d.ts b/packages/types/dist/typings/jdk/java.text.spi.CollatorProvider.d.ts new file mode 100644 index 00000000..7709802d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.spi.CollatorProvider.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace java { + namespace text { + namespace spi { + // @ts-ignore + abstract class CollatorProvider extends java.util.spi.LocaleServiceProvider { + /** + * Sole constructor. (For invocation by subclass constructors, typically + * implicit.) + */ + // @ts-ignore + constructor() + /** + * Returns a new Collator instance for the specified locale. + */ + // @ts-ignore + public abstract getInstance(locale: java.util.Locale): java.text.Collator; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.spi.DateFormatProvider.d.ts b/packages/types/dist/typings/jdk/java.text.spi.DateFormatProvider.d.ts new file mode 100644 index 00000000..81a58f25 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.spi.DateFormatProvider.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace java { + namespace text { + namespace spi { + // @ts-ignore + abstract class DateFormatProvider extends java.util.spi.LocaleServiceProvider { + /** + * Sole constructor. (For invocation by subclass constructors, typically + * implicit.) + */ + // @ts-ignore + constructor() + /** + * Returns a new DateFormat instance which formats time + * with the given formatting style for the specified locale. + */ + // @ts-ignore + public abstract getTimeInstance(style: number, locale: java.util.Locale): java.text.DateFormat; + /** + * Returns a new DateFormat instance which formats date + * with the given formatting style for the specified locale. + */ + // @ts-ignore + public abstract getDateInstance(style: number, locale: java.util.Locale): java.text.DateFormat; + /** + * Returns a new DateFormat instance which formats date and time + * with the given formatting style for the specified locale. + */ + // @ts-ignore + public abstract getDateTimeInstance(dateStyle: number, timeStyle: number, locale: java.util.Locale): java.text.DateFormat; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.spi.DateFormatSymbolsProvider.d.ts b/packages/types/dist/typings/jdk/java.text.spi.DateFormatSymbolsProvider.d.ts new file mode 100644 index 00000000..aa7f6c89 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.spi.DateFormatSymbolsProvider.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace text { + namespace spi { + // @ts-ignore + abstract class DateFormatSymbolsProvider extends java.util.spi.LocaleServiceProvider { + /** + * Sole constructor. (For invocation by subclass constructors, typically + * implicit.) + */ + // @ts-ignore + constructor() + /** + * Returns a new DateFormatSymbols instance for the + * specified locale. + */ + // @ts-ignore + public abstract getInstance(locale: java.util.Locale): java.text.DateFormatSymbols; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.spi.DecimalFormatSymbolsProvider.d.ts b/packages/types/dist/typings/jdk/java.text.spi.DecimalFormatSymbolsProvider.d.ts new file mode 100644 index 00000000..6a47585e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.spi.DecimalFormatSymbolsProvider.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace text { + namespace spi { + // @ts-ignore + abstract class DecimalFormatSymbolsProvider extends java.util.spi.LocaleServiceProvider { + /** + * Sole constructor. (For invocation by subclass constructors, typically + * implicit.) + */ + // @ts-ignore + constructor() + /** + * Returns a new DecimalFormatSymbols instance for the + * specified locale. + */ + // @ts-ignore + public abstract getInstance(locale: java.util.Locale): java.text.DecimalFormatSymbols; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.text.spi.NumberFormatProvider.d.ts b/packages/types/dist/typings/jdk/java.text.spi.NumberFormatProvider.d.ts new file mode 100644 index 00000000..c699eec8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.text.spi.NumberFormatProvider.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace java { + namespace text { + namespace spi { + // @ts-ignore + abstract class NumberFormatProvider extends java.util.spi.LocaleServiceProvider { + /** + * Sole constructor. (For invocation by subclass constructors, typically + * implicit.) + */ + // @ts-ignore + constructor() + /** + * Returns a new NumberFormat instance which formats + * monetary values for the specified locale. + */ + // @ts-ignore + public abstract getCurrencyInstance(locale: java.util.Locale): java.text.NumberFormat; + /** + * Returns a new NumberFormat instance which formats + * integer values for the specified locale. + * The returned number format is configured to + * round floating point numbers to the nearest integer using + * half-even rounding (see {@link java.math.RoundingMode#HALF_EVEN HALF_EVEN}) + * for formatting, and to parse only the integer part of + * an input string (see {@link + * java.text.NumberFormat#isParseIntegerOnly isParseIntegerOnly}). + */ + // @ts-ignore + public abstract getIntegerInstance(locale: java.util.Locale): java.text.NumberFormat; + /** + * Returns a new general-purpose NumberFormat instance for + * the specified locale. + */ + // @ts-ignore + public abstract getNumberInstance(locale: java.util.Locale): java.text.NumberFormat; + /** + * Returns a new NumberFormat instance which formats + * percentage values for the specified locale. + */ + // @ts-ignore + public abstract getPercentInstance(locale: java.util.Locale): java.text.NumberFormat; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.Clock.d.ts b/packages/types/dist/typings/jdk/java.time.Clock.d.ts new file mode 100644 index 00000000..b26732b1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.Clock.d.ts @@ -0,0 +1,210 @@ +// @ts-nocheck +declare namespace java { + namespace time { + // @ts-ignore + abstract class Clock extends java.lang.Object { + /** + * Constructor accessible by subclasses. + */ + // @ts-ignore + constructor() + /** + * Obtains a clock that returns the current instant using the best available + * system clock, converting to date and time using the UTC time-zone. + *

+ * This clock, rather than {@link #systemDefaultZone()}, should be used when + * you need the current instant without the date or time. + *

+ * This clock is based on the best available system clock. + * This may use {@link System#currentTimeMillis()}, or a higher resolution + * clock if one is available. + *

+ * Conversion from instant to date or time uses the {@linkplain ZoneOffset#UTC UTC time-zone}. + *

+ * The returned implementation is immutable, thread-safe and {@code Serializable}. + * It is equivalent to {@code system(ZoneOffset.UTC)}. + */ + // @ts-ignore + public static systemUTC(): java.time.Clock; + /** + * Obtains a clock that returns the current instant using the best available + * system clock, converting to date and time using the default time-zone. + *

+ * This clock is based on the best available system clock. + * This may use {@link System#currentTimeMillis()}, or a higher resolution + * clock if one is available. + *

+ * Using this method hard codes a dependency to the default time-zone into your application. + * It is recommended to avoid this and use a specific time-zone whenever possible. + * The {@link #systemUTC() UTC clock} should be used when you need the current instant + * without the date or time. + *

+ * The returned implementation is immutable, thread-safe and {@code Serializable}. + * It is equivalent to {@code system(ZoneId.systemDefault())}. + */ + // @ts-ignore + public static systemDefaultZone(): java.time.Clock; + /** + * Obtains a clock that returns the current instant using best available + * system clock. + *

+ * This clock is based on the best available system clock. + * This may use {@link System#currentTimeMillis()}, or a higher resolution + * clock if one is available. + *

+ * Conversion from instant to date or time uses the specified time-zone. + *

+ * The returned implementation is immutable, thread-safe and {@code Serializable}. + */ + // @ts-ignore + public static system(zone: java.time.ZoneId): java.time.Clock; + /** + * Obtains a clock that returns the current instant ticking in whole seconds + * using best available system clock. + *

+ * This clock will always have the nano-of-second field set to zero. + * This ensures that the visible time ticks in whole seconds. + * The underlying clock is the best available system clock, equivalent to + * using {@link #system(ZoneId)}. + *

+ * Implementations may use a caching strategy for performance reasons. + * As such, it is possible that the start of the second observed via this + * clock will be later than that observed directly via the underlying clock. + *

+ * The returned implementation is immutable, thread-safe and {@code Serializable}. + * It is equivalent to {@code tick(system(zone), Duration.ofSeconds(1))}. + */ + // @ts-ignore + public static tickSeconds(zone: java.time.ZoneId): java.time.Clock; + /** + * Obtains a clock that returns the current instant ticking in whole minutes + * using best available system clock. + *

+ * This clock will always have the nano-of-second and second-of-minute fields set to zero. + * This ensures that the visible time ticks in whole minutes. + * The underlying clock is the best available system clock, equivalent to + * using {@link #system(ZoneId)}. + *

+ * Implementations may use a caching strategy for performance reasons. + * As such, it is possible that the start of the minute observed via this + * clock will be later than that observed directly via the underlying clock. + *

+ * The returned implementation is immutable, thread-safe and {@code Serializable}. + * It is equivalent to {@code tick(system(zone), Duration.ofMinutes(1))}. + */ + // @ts-ignore + public static tickMinutes(zone: java.time.ZoneId): java.time.Clock; + /** + * Obtains a clock that returns instants from the specified clock truncated + * to the nearest occurrence of the specified duration. + *

+ * This clock will only tick as per the specified duration. Thus, if the duration + * is half a second, the clock will return instants truncated to the half second. + *

+ * The tick duration must be positive. If it has a part smaller than a whole + * millisecond, then the whole duration must divide into one second without + * leaving a remainder. All normal tick durations will match these criteria, + * including any multiple of hours, minutes, seconds and milliseconds, and + * sensible nanosecond durations, such as 20ns, 250,000ns and 500,000ns. + *

+ * A duration of zero or one nanosecond would have no truncation effect. + * Passing one of these will return the underlying clock. + *

+ * Implementations may use a caching strategy for performance reasons. + * As such, it is possible that the start of the requested duration observed + * via this clock will be later than that observed directly via the underlying clock. + *

+ * The returned implementation is immutable, thread-safe and {@code Serializable} + * providing that the base clock is. + */ + // @ts-ignore + public static tick(baseClock: java.time.Clock, tickDuration: java.time.Duration): java.time.Clock; + /** + * Obtains a clock that always returns the same instant. + *

+ * This clock simply returns the specified instant. + * As such, it is not a clock in the conventional sense. + * The main use case for this is in testing, where the fixed clock ensures + * tests are not dependent on the current clock. + *

+ * The returned implementation is immutable, thread-safe and {@code Serializable}. + */ + // @ts-ignore + public static fixed(fixedInstant: java.time.Instant, zone: java.time.ZoneId): java.time.Clock; + /** + * Obtains a clock that returns instants from the specified clock with the + * specified duration added + *

+ * This clock wraps another clock, returning instants that are later by the + * specified duration. If the duration is negative, the instants will be + * earlier than the current date and time. + * The main use case for this is to simulate running in the future or in the past. + *

+ * A duration of zero would have no offsetting effect. + * Passing zero will return the underlying clock. + *

+ * The returned implementation is immutable, thread-safe and {@code Serializable} + * providing that the base clock is. + */ + // @ts-ignore + public static offset(baseClock: java.time.Clock, offsetDuration: java.time.Duration): java.time.Clock; + /** + * Gets the time-zone being used to create dates and times. + *

+ * A clock will typically obtain the current instant and then convert that + * to a date or time using a time-zone. This method returns the time-zone used. + */ + // @ts-ignore + public abstract getZone(): java.time.ZoneId; + /** + * Returns a copy of this clock with a different time-zone. + *

+ * A clock will typically obtain the current instant and then convert that + * to a date or time using a time-zone. This method returns a clock with + * similar properties but using a different time-zone. + */ + // @ts-ignore + public abstract withZone(zone: java.time.ZoneId): java.time.Clock; + /** + * Gets the current millisecond instant of the clock. + *

+ * This returns the millisecond-based instant, measured from 1970-01-01T00:00Z (UTC). + * This is equivalent to the definition of {@link System#currentTimeMillis()}. + *

+ * Most applications should avoid this method and use {@link Instant} to represent + * an instant on the time-line rather than a raw millisecond value. + * This method is provided to allow the use of the clock in high performance use cases + * where the creation of an object would be unacceptable. + *

+ * The default implementation currently calls {@link #instant}. + */ + // @ts-ignore + public millis(): number; + /** + * Gets the current instant of the clock. + *

+ * This returns an instant representing the current instant as defined by the clock. + */ + // @ts-ignore + public abstract instant(): java.time.Instant; + /** + * Checks if this clock is equal to another clock. + *

+ * Clocks should override this method to compare equals based on + * their state and to meet the contract of {@link Object#equals}. + * If not overridden, the behavior is defined by {@link Object#equals} + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * A hash code for this clock. + *

+ * Clocks should override this method based on + * their state and to meet the contract of {@link Object#hashCode}. + * If not overridden, the behavior is defined by {@link Object#hashCode} + */ + // @ts-ignore + public hashCode(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.DateTimeException.d.ts b/packages/types/dist/typings/jdk/java.time.DateTimeException.d.ts new file mode 100644 index 00000000..dac958e7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.DateTimeException.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace java { + namespace time { + // @ts-ignore + class DateTimeException extends java.lang.RuntimeException { + /** + * Constructs a new date-time exception with the specified message. + */ + // @ts-ignore + constructor(message: string) + /** + * Constructs a new date-time exception with the specified message and cause. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.DayOfWeek.d.ts b/packages/types/dist/typings/jdk/java.time.DayOfWeek.d.ts new file mode 100644 index 00000000..f4026769 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.DayOfWeek.d.ts @@ -0,0 +1,212 @@ +// @ts-nocheck +declare namespace java { + namespace time { + // @ts-ignore + class DayOfWeek extends java.lang.Enum { + // @ts-ignore + public static MONDAY: java.time.DayOfWeek; + // @ts-ignore + public static TUESDAY: java.time.DayOfWeek; + // @ts-ignore + public static WEDNESDAY: java.time.DayOfWeek; + // @ts-ignore + public static THURSDAY: java.time.DayOfWeek; + // @ts-ignore + public static FRIDAY: java.time.DayOfWeek; + // @ts-ignore + public static SATURDAY: java.time.DayOfWeek; + // @ts-ignore + public static SUNDAY: java.time.DayOfWeek; + // @ts-ignore + public static values(): java.time.DayOfWeek[]; + // @ts-ignore + public static valueOf(name: string): java.time.DayOfWeek; + /** + * Obtains an instance of {@code DayOfWeek} from an {@code int} value. + *

+ * {@code DayOfWeek} is an enum representing the 7 days of the week. + * This factory allows the enum to be obtained from the {@code int} value. + * The {@code int} value follows the ISO-8601 standard, from 1 (Monday) to 7 (Sunday). + */ + // @ts-ignore + public static of(dayOfWeek: number): java.time.DayOfWeek; + /** + * Obtains an instance of {@code DayOfWeek} from a temporal object. + *

+ * This obtains a day-of-week based on the specified temporal. + * A {@code TemporalAccessor} represents an arbitrary set of date and time information, + * which this factory converts to an instance of {@code DayOfWeek}. + *

+ * The conversion extracts the {@link ChronoField#DAY_OF_WEEK DAY_OF_WEEK} field. + *

+ * This method matches the signature of the functional interface {@link TemporalQuery} + * allowing it to be used as a query via method reference, {@code DayOfWeek::from}. + */ + // @ts-ignore + public static from(temporal: java.time.temporal.TemporalAccessor): java.time.DayOfWeek; + /** + * Gets the day-of-week {@code int} value. + *

+ * The values are numbered following the ISO-8601 standard, from 1 (Monday) to 7 (Sunday). + * See {@link java.time.temporal.WeekFields#dayOfWeek()} for localized week-numbering. + */ + // @ts-ignore + public getValue(): number; + /** + * Gets the textual representation, such as 'Mon' or 'Friday'. + *

+ * This returns the textual name used to identify the day-of-week, + * suitable for presentation to the user. + * The parameters control the style of the returned text and the locale. + *

+ * If no textual mapping is found then the {@link #getValue() numeric value} is returned. + */ + // @ts-ignore + public getDisplayName(style: java.time.format.TextStyle, locale: java.util.Locale): string; + /** + * Checks if the specified field is supported. + *

+ * This checks if this day-of-week can be queried for the specified field. + * If false, then calling the {@link #range(TemporalField) range} and + * {@link #get(TemporalField) get} methods will throw an exception. + *

+ * If the field is {@link ChronoField#DAY_OF_WEEK DAY_OF_WEEK} then + * this method returns true. + * All other {@code ChronoField} instances will return false. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.isSupportedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the field is supported is determined by the field. + */ + // @ts-ignore + public isSupported(field: java.time.temporal.TemporalField): boolean; + /** + * Gets the range of valid values for the specified field. + *

+ * The range object expresses the minimum and maximum valid values for a field. + * This day-of-week is used to enhance the accuracy of the returned range. + * If it is not possible to return the range, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is {@link ChronoField#DAY_OF_WEEK DAY_OF_WEEK} then the + * range of the day-of-week, from 1 to 7, will be returned. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.rangeRefinedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the range can be obtained is determined by the field. + */ + // @ts-ignore + public range(field: java.time.temporal.TemporalField): java.time.temporal.ValueRange; + /** + * Gets the value of the specified field from this day-of-week as an {@code int}. + *

+ * This queries this day-of-week for the value of the specified field. + * The returned value will always be within the valid range of values for the field. + * If it is not possible to return the value, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is {@link ChronoField#DAY_OF_WEEK DAY_OF_WEEK} then the + * value of the day-of-week, from 1 to 7, will be returned. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)} + * passing {@code this} as the argument. Whether the value can be obtained, + * and what the value represents, is determined by the field. + */ + // @ts-ignore + public get(field: java.time.temporal.TemporalField): number; + /** + * Gets the value of the specified field from this day-of-week as a {@code long}. + *

+ * This queries this day-of-week for the value of the specified field. + * If it is not possible to return the value, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is {@link ChronoField#DAY_OF_WEEK DAY_OF_WEEK} then the + * value of the day-of-week, from 1 to 7, will be returned. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)} + * passing {@code this} as the argument. Whether the value can be obtained, + * and what the value represents, is determined by the field. + */ + // @ts-ignore + public getLong(field: java.time.temporal.TemporalField): number; + /** + * Returns the day-of-week that is the specified number of days after this one. + *

+ * The calculation rolls around the end of the week from Sunday to Monday. + * The specified period may be negative. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plus(days: number): java.time.DayOfWeek; + /** + * Returns the day-of-week that is the specified number of days before this one. + *

+ * The calculation rolls around the start of the year from Monday to Sunday. + * The specified period may be negative. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minus(days: number): java.time.DayOfWeek; + /** + * Queries this day-of-week using the specified query. + *

+ * This queries this day-of-week using the specified query strategy object. + * The {@code TemporalQuery} object defines the logic to be used to + * obtain the result. Read the documentation of the query to understand + * what the result of this method will be. + *

+ * The result of this method is obtained by invoking the + * {@link TemporalQuery#queryFrom(TemporalAccessor)} method on the + * specified query passing {@code this} as the argument. + */ + // @ts-ignore + public query(query: java.time.temporal.TemporalQuery): java.lang.Object; + /** + * Adjusts the specified temporal object to have this day-of-week. + *

+ * This returns a temporal object of the same observable type as the input + * with the day-of-week changed to be the same as this. + *

+ * The adjustment is equivalent to using {@link Temporal#with(TemporalField, long)} + * passing {@link ChronoField#DAY_OF_WEEK} as the field. + * Note that this adjusts forwards or backwards within a Monday to Sunday week. + * See {@link java.time.temporal.WeekFields#dayOfWeek()} for localized week start days. + * See {@code TemporalAdjuster} for other adjusters with more control, + * such as {@code next(MONDAY)}. + *

+ * In most cases, it is clearer to reverse the calling pattern by using + * {@link Temporal#with(TemporalAdjuster)}: + *

+             * // these two lines are equivalent, but the second approach is recommended
+             * temporal = thisDayOfWeek.adjustInto(temporal);
+             * temporal = temporal.with(thisDayOfWeek);
+             * 
+ *

+ * For example, given a date that is a Wednesday, the following are output: + *

+             * dateOnWed.with(MONDAY);     // two days earlier
+             * dateOnWed.with(TUESDAY);    // one day earlier
+             * dateOnWed.with(WEDNESDAY);  // same date
+             * dateOnWed.with(THURSDAY);   // one day later
+             * dateOnWed.with(FRIDAY);     // two days later
+             * dateOnWed.with(SATURDAY);   // three days later
+             * dateOnWed.with(SUNDAY);     // four days later
+             * 
+ *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public adjustInto(temporal: java.time.temporal.Temporal): java.time.temporal.Temporal; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.Duration.d.ts b/packages/types/dist/typings/jdk/java.time.Duration.d.ts new file mode 100644 index 00000000..998b5b7b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.Duration.d.ts @@ -0,0 +1,552 @@ +// @ts-nocheck +declare namespace java { + namespace time { + // @ts-ignore + class Duration extends java.lang.Object { + // @ts-ignore + public static ZERO: java.time.Duration; + /** + * Obtains a {@code Duration} representing a number of standard 24 hour days. + *

+ * The seconds are calculated based on the standard definition of a day, + * where each day is 86400 seconds which implies a 24 hour day. + * The nanosecond in second field is set to zero. + */ + // @ts-ignore + public static ofDays(days: number): java.time.Duration; + /** + * Obtains a {@code Duration} representing a number of standard hours. + *

+ * The seconds are calculated based on the standard definition of an hour, + * where each hour is 3600 seconds. + * The nanosecond in second field is set to zero. + */ + // @ts-ignore + public static ofHours(hours: number): java.time.Duration; + /** + * Obtains a {@code Duration} representing a number of standard minutes. + *

+ * The seconds are calculated based on the standard definition of a minute, + * where each minute is 60 seconds. + * The nanosecond in second field is set to zero. + */ + // @ts-ignore + public static ofMinutes(minutes: number): java.time.Duration; + /** + * Obtains a {@code Duration} representing a number of seconds. + *

+ * The nanosecond in second field is set to zero. + */ + // @ts-ignore + public static ofSeconds(seconds: number): java.time.Duration; + /** + * Obtains a {@code Duration} representing a number of seconds and an + * adjustment in nanoseconds. + *

+ * This method allows an arbitrary number of nanoseconds to be passed in. + * The factory will alter the values of the second and nanosecond in order + * to ensure that the stored nanosecond is in the range 0 to 999,999,999. + * For example, the following will result in the exactly the same duration: + *

+             * Duration.ofSeconds(3, 1);
+             * Duration.ofSeconds(4, -999_999_999);
+             * Duration.ofSeconds(2, 1000_000_001);
+             * 
+ */ + // @ts-ignore + public static ofSeconds(seconds: number, nanoAdjustment: number): java.time.Duration; + /** + * Obtains a {@code Duration} representing a number of milliseconds. + *

+ * The seconds and nanoseconds are extracted from the specified milliseconds. + */ + // @ts-ignore + public static ofMillis(millis: number): java.time.Duration; + /** + * Obtains a {@code Duration} representing a number of nanoseconds. + *

+ * The seconds and nanoseconds are extracted from the specified nanoseconds. + */ + // @ts-ignore + public static ofNanos(nanos: number): java.time.Duration; + /** + * Obtains a {@code Duration} representing an amount in the specified unit. + *

+ * The parameters represent the two parts of a phrase like '6 Hours'. For example: + *

+             * Duration.of(3, SECONDS);
+             * Duration.of(465, HOURS);
+             * 
+ * Only a subset of units are accepted by this method. + * The unit must either have an {@linkplain TemporalUnit#isDurationEstimated() exact duration} or + * be {@link ChronoUnit#DAYS} which is treated as 24 hours. Other units throw an exception. + */ + // @ts-ignore + public static of(amount: number, unit: java.time.temporal.TemporalUnit): java.time.Duration; + /** + * Obtains an instance of {@code Duration} from a temporal amount. + *

+ * This obtains a duration based on the specified amount. + * A {@code TemporalAmount} represents an amount of time, which may be + * date-based or time-based, which this factory extracts to a duration. + *

+ * The conversion loops around the set of units from the amount and uses + * the {@linkplain TemporalUnit#getDuration() duration} of the unit to + * calculate the total {@code Duration}. + * Only a subset of units are accepted by this method. The unit must either + * have an {@linkplain TemporalUnit#isDurationEstimated() exact duration} + * or be {@link ChronoUnit#DAYS} which is treated as 24 hours. + * If any other units are found then an exception is thrown. + */ + // @ts-ignore + public static from(amount: java.time.temporal.TemporalAmount): java.time.Duration; + /** + * Obtains a {@code Duration} from a text string such as {@code PnDTnHnMn.nS}. + *

+ * This will parse a textual representation of a duration, including the + * string produced by {@code toString()}. The formats accepted are based + * on the ISO-8601 duration format {@code PnDTnHnMn.nS} with days + * considered to be exactly 24 hours. + *

+ * The string starts with an optional sign, denoted by the ASCII negative + * or positive symbol. If negative, the whole period is negated. + * The ASCII letter "P" is next in upper or lower case. + * There are then four sections, each consisting of a number and a suffix. + * The sections have suffixes in ASCII of "D", "H", "M" and "S" for + * days, hours, minutes and seconds, accepted in upper or lower case. + * The suffixes must occur in order. The ASCII letter "T" must occur before + * the first occurrence, if any, of an hour, minute or second section. + * At least one of the four sections must be present, and if "T" is present + * there must be at least one section after the "T". + * The number part of each section must consist of one or more ASCII digits. + * The number may be prefixed by the ASCII negative or positive symbol. + * The number of days, hours and minutes must parse to an {@code long}. + * The number of seconds must parse to an {@code long} with optional fraction. + * The decimal point may be either a dot or a comma. + * The fractional part may have from zero to 9 digits. + *

+ * The leading plus/minus sign, and negative values for other units are + * not part of the ISO-8601 standard. + *

+ * Examples: + *

+             * "PT20.345S" -- parses as "20.345 seconds"
+             * "PT15M"     -- parses as "15 minutes" (where a minute is 60 seconds)
+             * "PT10H"     -- parses as "10 hours" (where an hour is 3600 seconds)
+             * "P2D"       -- parses as "2 days" (where a day is 24 hours or 86400 seconds)
+             * "P2DT3H4M"  -- parses as "2 days, 3 hours and 4 minutes"
+             * "P-6H3M"    -- parses as "-6 hours and +3 minutes"
+             * "-P6H3M"    -- parses as "-6 hours and -3 minutes"
+             * "-P-6H+3M"  -- parses as "+6 hours and -3 minutes"
+             * 
+ */ + // @ts-ignore + public static parse(text: java.lang.CharSequence): java.time.Duration; + /** + * Obtains a {@code Duration} representing the duration between two temporal objects. + *

+ * This calculates the duration between two temporal objects. If the objects + * are of different types, then the duration is calculated based on the type + * of the first object. For example, if the first argument is a {@code LocalTime} + * then the second argument is converted to a {@code LocalTime}. + *

+ * The specified temporal objects must support the {@link ChronoUnit#SECONDS SECONDS} unit. + * For full accuracy, either the {@link ChronoUnit#NANOS NANOS} unit or the + * {@link ChronoField#NANO_OF_SECOND NANO_OF_SECOND} field should be supported. + *

+ * The result of this method can be a negative period if the end is before the start. + * To guarantee to obtain a positive duration call {@link #abs()} on the result. + */ + // @ts-ignore + public static between(startInclusive: java.time.temporal.Temporal, endExclusive: java.time.temporal.Temporal): java.time.Duration; + /** + * Gets the value of the requested unit. + *

+ * This returns a value for each of the two supported units, + * {@link ChronoUnit#SECONDS SECONDS} and {@link ChronoUnit#NANOS NANOS}. + * All other units throw an exception. + */ + // @ts-ignore + public get(unit: java.time.temporal.TemporalUnit): number; + /** + * Gets the set of units supported by this duration. + *

+ * The supported units are {@link ChronoUnit#SECONDS SECONDS}, + * and {@link ChronoUnit#NANOS NANOS}. + * They are returned in the order seconds, nanos. + *

+ * This set can be used in conjunction with {@link #get(TemporalUnit)} + * to access the entire state of the duration. + */ + // @ts-ignore + public getUnits(): java.util.List; + /** + * Checks if this duration is zero length. + *

+ * A {@code Duration} represents a directed distance between two points on + * the time-line and can therefore be positive, zero or negative. + * This method checks whether the length is zero. + */ + // @ts-ignore + public isZero(): boolean; + /** + * Checks if this duration is negative, excluding zero. + *

+ * A {@code Duration} represents a directed distance between two points on + * the time-line and can therefore be positive, zero or negative. + * This method checks whether the length is less than zero. + */ + // @ts-ignore + public isNegative(): boolean; + /** + * Gets the number of seconds in this duration. + *

+ * The length of the duration is stored using two fields - seconds and nanoseconds. + * The nanoseconds part is a value from 0 to 999,999,999 that is an adjustment to + * the length in seconds. + * The total duration is defined by calling this method and {@link #getNano()}. + *

+ * A {@code Duration} represents a directed distance between two points on the time-line. + * A negative duration is expressed by the negative sign of the seconds part. + * A duration of -1 nanosecond is stored as -1 seconds plus 999,999,999 nanoseconds. + */ + // @ts-ignore + public getSeconds(): number; + /** + * Gets the number of nanoseconds within the second in this duration. + *

+ * The length of the duration is stored using two fields - seconds and nanoseconds. + * The nanoseconds part is a value from 0 to 999,999,999 that is an adjustment to + * the length in seconds. + * The total duration is defined by calling this method and {@link #getSeconds()}. + *

+ * A {@code Duration} represents a directed distance between two points on the time-line. + * A negative duration is expressed by the negative sign of the seconds part. + * A duration of -1 nanosecond is stored as -1 seconds plus 999,999,999 nanoseconds. + */ + // @ts-ignore + public getNano(): number; + /** + * Returns a copy of this duration with the specified amount of seconds. + *

+ * This returns a duration with the specified seconds, retaining the + * nano-of-second part of this duration. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withSeconds(seconds: number): java.time.Duration; + /** + * Returns a copy of this duration with the specified nano-of-second. + *

+ * This returns a duration with the specified nano-of-second, retaining the + * seconds part of this duration. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withNanos(nanoOfSecond: number): java.time.Duration; + /** + * Returns a copy of this duration with the specified duration added. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plus(duration: java.time.Duration): java.time.Duration; + /** + * Returns a copy of this duration with the specified duration added. + *

+ * The duration amount is measured in terms of the specified unit. + * Only a subset of units are accepted by this method. + * The unit must either have an {@linkplain TemporalUnit#isDurationEstimated() exact duration} or + * be {@link ChronoUnit#DAYS} which is treated as 24 hours. Other units throw an exception. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plus(amountToAdd: number, unit: java.time.temporal.TemporalUnit): java.time.Duration; + /** + * Returns a copy of this duration with the specified duration in standard 24 hour days added. + *

+ * The number of days is multiplied by 86400 to obtain the number of seconds to add. + * This is based on the standard definition of a day as 24 hours. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusDays(daysToAdd: number): java.time.Duration; + /** + * Returns a copy of this duration with the specified duration in hours added. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusHours(hoursToAdd: number): java.time.Duration; + /** + * Returns a copy of this duration with the specified duration in minutes added. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusMinutes(minutesToAdd: number): java.time.Duration; + /** + * Returns a copy of this duration with the specified duration in seconds added. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusSeconds(secondsToAdd: number): java.time.Duration; + /** + * Returns a copy of this duration with the specified duration in milliseconds added. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusMillis(millisToAdd: number): java.time.Duration; + /** + * Returns a copy of this duration with the specified duration in nanoseconds added. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusNanos(nanosToAdd: number): java.time.Duration; + /** + * Returns a copy of this duration with the specified duration subtracted. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minus(duration: java.time.Duration): java.time.Duration; + /** + * Returns a copy of this duration with the specified duration subtracted. + *

+ * The duration amount is measured in terms of the specified unit. + * Only a subset of units are accepted by this method. + * The unit must either have an {@linkplain TemporalUnit#isDurationEstimated() exact duration} or + * be {@link ChronoUnit#DAYS} which is treated as 24 hours. Other units throw an exception. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minus(amountToSubtract: number, unit: java.time.temporal.TemporalUnit): java.time.Duration; + /** + * Returns a copy of this duration with the specified duration in standard 24 hour days subtracted. + *

+ * The number of days is multiplied by 86400 to obtain the number of seconds to subtract. + * This is based on the standard definition of a day as 24 hours. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusDays(daysToSubtract: number): java.time.Duration; + /** + * Returns a copy of this duration with the specified duration in hours subtracted. + *

+ * The number of hours is multiplied by 3600 to obtain the number of seconds to subtract. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusHours(hoursToSubtract: number): java.time.Duration; + /** + * Returns a copy of this duration with the specified duration in minutes subtracted. + *

+ * The number of hours is multiplied by 60 to obtain the number of seconds to subtract. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusMinutes(minutesToSubtract: number): java.time.Duration; + /** + * Returns a copy of this duration with the specified duration in seconds subtracted. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusSeconds(secondsToSubtract: number): java.time.Duration; + /** + * Returns a copy of this duration with the specified duration in milliseconds subtracted. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusMillis(millisToSubtract: number): java.time.Duration; + /** + * Returns a copy of this duration with the specified duration in nanoseconds subtracted. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusNanos(nanosToSubtract: number): java.time.Duration; + /** + * Returns a copy of this duration multiplied by the scalar. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public multipliedBy(multiplicand: number): java.time.Duration; + /** + * Returns a copy of this duration divided by the specified value. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public dividedBy(divisor: number): java.time.Duration; + /** + * Returns a copy of this duration with the length negated. + *

+ * This method swaps the sign of the total length of this duration. + * For example, {@code PT1.3S} will be returned as {@code PT-1.3S}. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public negated(): java.time.Duration; + /** + * Returns a copy of this duration with a positive length. + *

+ * This method returns a positive duration by effectively removing the sign from any negative total length. + * For example, {@code PT-1.3S} will be returned as {@code PT1.3S}. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public abs(): java.time.Duration; + /** + * Adds this duration to the specified temporal object. + *

+ * This returns a temporal object of the same observable type as the input + * with this duration added. + *

+ * In most cases, it is clearer to reverse the calling pattern by using + * {@link Temporal#plus(TemporalAmount)}. + *

+             * // these two lines are equivalent, but the second approach is recommended
+             * dateTime = thisDuration.addTo(dateTime);
+             * dateTime = dateTime.plus(thisDuration);
+             * 
+ *

+ * The calculation will add the seconds, then nanos. + * Only non-zero amounts will be added. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public addTo(temporal: java.time.temporal.Temporal): java.time.temporal.Temporal; + /** + * Subtracts this duration from the specified temporal object. + *

+ * This returns a temporal object of the same observable type as the input + * with this duration subtracted. + *

+ * In most cases, it is clearer to reverse the calling pattern by using + * {@link Temporal#minus(TemporalAmount)}. + *

+             * // these two lines are equivalent, but the second approach is recommended
+             * dateTime = thisDuration.subtractFrom(dateTime);
+             * dateTime = dateTime.minus(thisDuration);
+             * 
+ *

+ * The calculation will subtract the seconds, then nanos. + * Only non-zero amounts will be added. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public subtractFrom(temporal: java.time.temporal.Temporal): java.time.temporal.Temporal; + /** + * Gets the number of days in this duration. + *

+ * This returns the total number of days in the duration by dividing the + * number of seconds by 86400. + * This is based on the standard definition of a day as 24 hours. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public toDays(): number; + /** + * Gets the number of hours in this duration. + *

+ * This returns the total number of hours in the duration by dividing the + * number of seconds by 3600. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public toHours(): number; + /** + * Gets the number of minutes in this duration. + *

+ * This returns the total number of minutes in the duration by dividing the + * number of seconds by 60. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public toMinutes(): number; + /** + * Converts this duration to the total length in milliseconds. + *

+ * If this duration is too large to fit in a {@code long} milliseconds, then an + * exception is thrown. + *

+ * If this duration has greater than millisecond precision, then the conversion + * will drop any excess precision information as though the amount in nanoseconds + * was subject to integer division by one million. + */ + // @ts-ignore + public toMillis(): number; + /** + * Converts this duration to the total length in nanoseconds expressed as a {@code long}. + *

+ * If this duration is too large to fit in a {@code long} nanoseconds, then an + * exception is thrown. + */ + // @ts-ignore + public toNanos(): number; + /** + * Compares this duration to the specified {@code Duration}. + *

+ * The comparison is based on the total length of the durations. + * It is "consistent with equals", as defined by {@link Comparable}. + */ + // @ts-ignore + public compareTo(otherDuration: java.time.Duration): number; + /** + * Checks if this duration is equal to the specified {@code Duration}. + *

+ * The comparison is based on the total length of the durations. + */ + // @ts-ignore + public equals(otherDuration: java.lang.Object): boolean; + /** + * A hash code for this duration. + */ + // @ts-ignore + public hashCode(): number; + /** + * A string representation of this duration using ISO-8601 seconds + * based representation, such as {@code PT8H6M12.345S}. + *

+ * The format of the returned string will be {@code PTnHnMnS}, where n is + * the relevant hours, minutes or seconds part of the duration. + * Any fractional seconds are placed after a decimal point i the seconds section. + * If a section has a zero value, it is omitted. + * The hours, minutes and seconds will all have the same sign. + *

+ * Examples: + *

+             * "20.345 seconds"                 -- "PT20.345S
+             * "15 minutes" (15 * 60 seconds)   -- "PT15M"
+             * "10 hours" (10 * 3600 seconds)   -- "PT10H"
+             * "2 days" (2 * 86400 seconds)     -- "PT48H"
+             * 
+ * Note that multiples of 24 hours are not output as days to avoid confusion + * with {@code Period}. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.Instant.d.ts b/packages/types/dist/typings/jdk/java.time.Instant.d.ts new file mode 100644 index 00000000..68d4157f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.Instant.d.ts @@ -0,0 +1,590 @@ +// @ts-nocheck +declare namespace java { + namespace time { + // @ts-ignore + class Instant extends java.lang.Object { + // @ts-ignore + public static EPOCH: java.time.Instant; + // @ts-ignore + public static MIN: java.time.Instant; + // @ts-ignore + public static MAX: java.time.Instant; + /** + * Obtains the current instant from the system clock. + *

+ * This will query the {@link Clock#systemUTC() system UTC clock} to + * obtain the current instant. + *

+ * Using this method will prevent the ability to use an alternate time-source for + * testing because the clock is effectively hard-coded. + */ + // @ts-ignore + public static now(): java.time.Instant; + /** + * Obtains the current instant from the specified clock. + *

+ * This will query the specified clock to obtain the current time. + *

+ * Using this method allows the use of an alternate clock for testing. + * The alternate clock may be introduced using {@link Clock dependency injection}. + */ + // @ts-ignore + public static now(clock: java.time.Clock): java.time.Instant; + /** + * Obtains an instance of {@code Instant} using seconds from the + * epoch of 1970-01-01T00:00:00Z. + *

+ * The nanosecond field is set to zero. + */ + // @ts-ignore + public static ofEpochSecond(epochSecond: number): java.time.Instant; + /** + * Obtains an instance of {@code Instant} using seconds from the + * epoch of 1970-01-01T00:00:00Z and nanosecond fraction of second. + *

+ * This method allows an arbitrary number of nanoseconds to be passed in. + * The factory will alter the values of the second and nanosecond in order + * to ensure that the stored nanosecond is in the range 0 to 999,999,999. + * For example, the following will result in the exactly the same instant: + *

+             * Instant.ofEpochSecond(3, 1);
+             * Instant.ofEpochSecond(4, -999_999_999);
+             * Instant.ofEpochSecond(2, 1000_000_001);
+             * 
+ */ + // @ts-ignore + public static ofEpochSecond(epochSecond: number, nanoAdjustment: number): java.time.Instant; + /** + * Obtains an instance of {@code Instant} using milliseconds from the + * epoch of 1970-01-01T00:00:00Z. + *

+ * The seconds and nanoseconds are extracted from the specified milliseconds. + */ + // @ts-ignore + public static ofEpochMilli(epochMilli: number): java.time.Instant; + /** + * Obtains an instance of {@code Instant} from a temporal object. + *

+ * This obtains an instant based on the specified temporal. + * A {@code TemporalAccessor} represents an arbitrary set of date and time information, + * which this factory converts to an instance of {@code Instant}. + *

+ * The conversion extracts the {@link ChronoField#INSTANT_SECONDS INSTANT_SECONDS} + * and {@link ChronoField#NANO_OF_SECOND NANO_OF_SECOND} fields. + *

+ * This method matches the signature of the functional interface {@link TemporalQuery} + * allowing it to be used as a query via method reference, {@code Instant::from}. + */ + // @ts-ignore + public static from(temporal: java.time.temporal.TemporalAccessor): java.time.Instant; + /** + * Obtains an instance of {@code Instant} from a text string such as + * {@code 2007-12-03T10:15:30.00Z}. + *

+ * The string must represent a valid instant in UTC and is parsed using + * {@link DateTimeFormatter#ISO_INSTANT}. + */ + // @ts-ignore + public static parse(text: java.lang.CharSequence): java.time.Instant; + /** + * Checks if the specified field is supported. + *

+ * This checks if this instant can be queried for the specified field. + * If false, then calling the {@link #range(TemporalField) range}, + * {@link #get(TemporalField) get} and {@link #with(TemporalField, long)} + * methods will throw an exception. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The supported fields are: + *

    + *
  • {@code NANO_OF_SECOND} + *
  • {@code MICRO_OF_SECOND} + *
  • {@code MILLI_OF_SECOND} + *
  • {@code INSTANT_SECONDS} + *
+ * All other {@code ChronoField} instances will return false. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.isSupportedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the field is supported is determined by the field. + */ + // @ts-ignore + public isSupported(field: java.time.temporal.TemporalField): boolean; + /** + * Checks if the specified unit is supported. + *

+ * This checks if the specified unit can be added to, or subtracted from, this date-time. + * If false, then calling the {@link #plus(long, TemporalUnit)} and + * {@link #minus(long, TemporalUnit) minus} methods will throw an exception. + *

+ * If the unit is a {@link ChronoUnit} then the query is implemented here. + * The supported units are: + *

    + *
  • {@code NANOS} + *
  • {@code MICROS} + *
  • {@code MILLIS} + *
  • {@code SECONDS} + *
  • {@code MINUTES} + *
  • {@code HOURS} + *
  • {@code HALF_DAYS} + *
  • {@code DAYS} + *
+ * All other {@code ChronoUnit} instances will return false. + *

+ * If the unit is not a {@code ChronoUnit}, then the result of this method + * is obtained by invoking {@code TemporalUnit.isSupportedBy(Temporal)} + * passing {@code this} as the argument. + * Whether the unit is supported is determined by the unit. + */ + // @ts-ignore + public isSupported(unit: java.time.temporal.TemporalUnit): boolean; + /** + * Gets the range of valid values for the specified field. + *

+ * The range object expresses the minimum and maximum valid values for a field. + * This instant is used to enhance the accuracy of the returned range. + * If it is not possible to return the range, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@link #isSupported(TemporalField) supported fields} will return + * appropriate range instances. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.rangeRefinedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the range can be obtained is determined by the field. + */ + // @ts-ignore + public range(field: java.time.temporal.TemporalField): java.time.temporal.ValueRange; + /** + * Gets the value of the specified field from this instant as an {@code int}. + *

+ * This queries this instant for the value of the specified field. + * The returned value will always be within the valid range of values for the field. + * If it is not possible to return the value, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@link #isSupported(TemporalField) supported fields} will return valid + * values based on this date-time, except {@code INSTANT_SECONDS} which is too + * large to fit in an {@code int} and throws a {@code DateTimeException}. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)} + * passing {@code this} as the argument. Whether the value can be obtained, + * and what the value represents, is determined by the field. + */ + // @ts-ignore + public get(field: java.time.temporal.TemporalField): number; + /** + * Gets the value of the specified field from this instant as a {@code long}. + *

+ * This queries this instant for the value of the specified field. + * If it is not possible to return the value, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@link #isSupported(TemporalField) supported fields} will return valid + * values based on this date-time. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)} + * passing {@code this} as the argument. Whether the value can be obtained, + * and what the value represents, is determined by the field. + */ + // @ts-ignore + public getLong(field: java.time.temporal.TemporalField): number; + /** + * Gets the number of seconds from the Java epoch of 1970-01-01T00:00:00Z. + *

+ * The epoch second count is a simple incrementing count of seconds where + * second 0 is 1970-01-01T00:00:00Z. + * The nanosecond part of the day is returned by {@code getNanosOfSecond}. + */ + // @ts-ignore + public getEpochSecond(): number; + /** + * Gets the number of nanoseconds, later along the time-line, from the start + * of the second. + *

+ * The nanosecond-of-second value measures the total number of nanoseconds from + * the second returned by {@code getEpochSecond}. + */ + // @ts-ignore + public getNano(): number; + /** + * Returns an adjusted copy of this instant. + *

+ * This returns an {@code Instant}, based on this one, with the instant adjusted. + * The adjustment takes place using the specified adjuster strategy object. + * Read the documentation of the adjuster to understand what adjustment will be made. + *

+ * The result of this method is obtained by invoking the + * {@link TemporalAdjuster#adjustInto(Temporal)} method on the + * specified adjuster passing {@code this} as the argument. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public with(adjuster: java.time.temporal.TemporalAdjuster): java.time.Instant; + /** + * Returns a copy of this instant with the specified field set to a new value. + *

+ * This returns an {@code Instant}, based on this one, with the value + * for the specified field changed. + * If it is not possible to set the value, because the field is not supported or for + * some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the adjustment is implemented here. + * The supported fields behave as follows: + *

    + *
  • {@code NANO_OF_SECOND} - + * Returns an {@code Instant} with the specified nano-of-second. + * The epoch-second will be unchanged. + *
  • {@code MICRO_OF_SECOND} - + * Returns an {@code Instant} with the nano-of-second replaced by the specified + * micro-of-second multiplied by 1,000. The epoch-second will be unchanged. + *
  • {@code MILLI_OF_SECOND} - + * Returns an {@code Instant} with the nano-of-second replaced by the specified + * milli-of-second multiplied by 1,000,000. The epoch-second will be unchanged. + *
  • {@code INSTANT_SECONDS} - + * Returns an {@code Instant} with the specified epoch-second. + * The nano-of-second will be unchanged. + *
+ *

+ * In all cases, if the new value is outside the valid range of values for the field + * then a {@code DateTimeException} will be thrown. + *

+ * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.adjustInto(Temporal, long)} + * passing {@code this} as the argument. In this case, the field determines + * whether and how to adjust the instant. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public with(field: java.time.temporal.TemporalField, newValue: number): java.time.Instant; + /** + * Returns a copy of this {@code Instant} truncated to the specified unit. + *

+ * Truncating the instant returns a copy of the original with fields + * smaller than the specified unit set to zero. + * The fields are calculated on the basis of using a UTC offset as seen + * in {@code toString}. + * For example, truncating with the {@link ChronoUnit#MINUTES MINUTES} unit will + * round down to the nearest minute, setting the seconds and nanoseconds to zero. + *

+ * The unit must have a {@linkplain TemporalUnit#getDuration() duration} + * that divides into the length of a standard day without remainder. + * This includes all supplied time units on {@link ChronoUnit} and + * {@link ChronoUnit#DAYS DAYS}. Other units throw an exception. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public truncatedTo(unit: java.time.temporal.TemporalUnit): java.time.Instant; + /** + * Returns a copy of this instant with the specified amount added. + *

+ * This returns an {@code Instant}, based on this one, with the specified amount added. + * The amount is typically {@link Duration} but may be any other type implementing + * the {@link TemporalAmount} interface. + *

+ * The calculation is delegated to the amount object by calling + * {@link TemporalAmount#addTo(Temporal)}. The amount implementation is free + * to implement the addition in any way it wishes, however it typically + * calls back to {@link #plus(long, TemporalUnit)}. Consult the documentation + * of the amount implementation to determine if it can be successfully added. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plus(amountToAdd: java.time.temporal.TemporalAmount): java.time.Instant; + /** + * Returns a copy of this instant with the specified amount added. + *

+ * This returns an {@code Instant}, based on this one, with the amount + * in terms of the unit added. If it is not possible to add the amount, because the + * unit is not supported or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoUnit} then the addition is implemented here. + * The supported fields behave as follows: + *

    + *
  • {@code NANOS} - + * Returns a {@code Instant} with the specified number of nanoseconds added. + * This is equivalent to {@link #plusNanos(long)}. + *
  • {@code MICROS} - + * Returns a {@code Instant} with the specified number of microseconds added. + * This is equivalent to {@link #plusNanos(long)} with the amount + * multiplied by 1,000. + *
  • {@code MILLIS} - + * Returns a {@code Instant} with the specified number of milliseconds added. + * This is equivalent to {@link #plusNanos(long)} with the amount + * multiplied by 1,000,000. + *
  • {@code SECONDS} - + * Returns a {@code Instant} with the specified number of seconds added. + * This is equivalent to {@link #plusSeconds(long)}. + *
  • {@code MINUTES} - + * Returns a {@code Instant} with the specified number of minutes added. + * This is equivalent to {@link #plusSeconds(long)} with the amount + * multiplied by 60. + *
  • {@code HOURS} - + * Returns a {@code Instant} with the specified number of hours added. + * This is equivalent to {@link #plusSeconds(long)} with the amount + * multiplied by 3,600. + *
  • {@code HALF_DAYS} - + * Returns a {@code Instant} with the specified number of half-days added. + * This is equivalent to {@link #plusSeconds(long)} with the amount + * multiplied by 43,200 (12 hours). + *
  • {@code DAYS} - + * Returns a {@code Instant} with the specified number of days added. + * This is equivalent to {@link #plusSeconds(long)} with the amount + * multiplied by 86,400 (24 hours). + *
+ *

+ * All other {@code ChronoUnit} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoUnit}, then the result of this method + * is obtained by invoking {@code TemporalUnit.addTo(Temporal, long)} + * passing {@code this} as the argument. In this case, the unit determines + * whether and how to perform the addition. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plus(amountToAdd: number, unit: java.time.temporal.TemporalUnit): java.time.Instant; + /** + * Returns a copy of this instant with the specified duration in seconds added. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusSeconds(secondsToAdd: number): java.time.Instant; + /** + * Returns a copy of this instant with the specified duration in milliseconds added. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusMillis(millisToAdd: number): java.time.Instant; + /** + * Returns a copy of this instant with the specified duration in nanoseconds added. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusNanos(nanosToAdd: number): java.time.Instant; + /** + * Returns a copy of this instant with the specified amount subtracted. + *

+ * This returns an {@code Instant}, based on this one, with the specified amount subtracted. + * The amount is typically {@link Duration} but may be any other type implementing + * the {@link TemporalAmount} interface. + *

+ * The calculation is delegated to the amount object by calling + * {@link TemporalAmount#subtractFrom(Temporal)}. The amount implementation is free + * to implement the subtraction in any way it wishes, however it typically + * calls back to {@link #minus(long, TemporalUnit)}. Consult the documentation + * of the amount implementation to determine if it can be successfully subtracted. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minus(amountToSubtract: java.time.temporal.TemporalAmount): java.time.Instant; + /** + * Returns a copy of this instant with the specified amount subtracted. + *

+ * This returns a {@code Instant}, based on this one, with the amount + * in terms of the unit subtracted. If it is not possible to subtract the amount, + * because the unit is not supported or for some other reason, an exception is thrown. + *

+ * This method is equivalent to {@link #plus(long, TemporalUnit)} with the amount negated. + * See that method for a full description of how addition, and thus subtraction, works. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minus(amountToSubtract: number, unit: java.time.temporal.TemporalUnit): java.time.Instant; + /** + * Returns a copy of this instant with the specified duration in seconds subtracted. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusSeconds(secondsToSubtract: number): java.time.Instant; + /** + * Returns a copy of this instant with the specified duration in milliseconds subtracted. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusMillis(millisToSubtract: number): java.time.Instant; + /** + * Returns a copy of this instant with the specified duration in nanoseconds subtracted. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusNanos(nanosToSubtract: number): java.time.Instant; + /** + * Queries this instant using the specified query. + *

+ * This queries this instant using the specified query strategy object. + * The {@code TemporalQuery} object defines the logic to be used to + * obtain the result. Read the documentation of the query to understand + * what the result of this method will be. + *

+ * The result of this method is obtained by invoking the + * {@link TemporalQuery#queryFrom(TemporalAccessor)} method on the + * specified query passing {@code this} as the argument. + */ + // @ts-ignore + public query(query: java.time.temporal.TemporalQuery): java.lang.Object; + /** + * Adjusts the specified temporal object to have this instant. + *

+ * This returns a temporal object of the same observable type as the input + * with the instant changed to be the same as this. + *

+ * The adjustment is equivalent to using {@link Temporal#with(TemporalField, long)} + * twice, passing {@link ChronoField#INSTANT_SECONDS} and + * {@link ChronoField#NANO_OF_SECOND} as the fields. + *

+ * In most cases, it is clearer to reverse the calling pattern by using + * {@link Temporal#with(TemporalAdjuster)}: + *

+             * // these two lines are equivalent, but the second approach is recommended
+             * temporal = thisInstant.adjustInto(temporal);
+             * temporal = temporal.with(thisInstant);
+             * 
+ *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public adjustInto(temporal: java.time.temporal.Temporal): java.time.temporal.Temporal; + /** + * Calculates the amount of time until another instant in terms of the specified unit. + *

+ * This calculates the amount of time between two {@code Instant} + * objects in terms of a single {@code TemporalUnit}. + * The start and end points are {@code this} and the specified instant. + * The result will be negative if the end is before the start. + * The calculation returns a whole number, representing the number of + * complete units between the two instants. + * The {@code Temporal} passed to this method is converted to a + * {@code Instant} using {@link #from(TemporalAccessor)}. + * For example, the amount in days between two dates can be calculated + * using {@code startInstant.until(endInstant, SECONDS)}. + *

+ * There are two equivalent ways of using this method. + * The first is to invoke this method. + * The second is to use {@link TemporalUnit#between(Temporal, Temporal)}: + *

+             * // these two lines are equivalent
+             * amount = start.until(end, SECONDS);
+             * amount = SECONDS.between(start, end);
+             * 
+ * The choice should be made based on which makes the code more readable. + *

+ * The calculation is implemented in this method for {@link ChronoUnit}. + * The units {@code NANOS}, {@code MICROS}, {@code MILLIS}, {@code SECONDS}, + * {@code MINUTES}, {@code HOURS}, {@code HALF_DAYS} and {@code DAYS} + * are supported. Other {@code ChronoUnit} values will throw an exception. + *

+ * If the unit is not a {@code ChronoUnit}, then the result of this method + * is obtained by invoking {@code TemporalUnit.between(Temporal, Temporal)} + * passing {@code this} as the first argument and the converted input temporal + * as the second argument. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public until(endExclusive: java.time.temporal.Temporal, unit: java.time.temporal.TemporalUnit): number; + /** + * Combines this instant with an offset to create an {@code OffsetDateTime}. + *

+ * This returns an {@code OffsetDateTime} formed from this instant at the + * specified offset from UTC/Greenwich. An exception will be thrown if the + * instant is too large to fit into an offset date-time. + *

+ * This method is equivalent to + * {@link OffsetDateTime#ofInstant(Instant, ZoneId) OffsetDateTime.ofInstant(this, offset)}. + */ + // @ts-ignore + public atOffset(offset: java.time.ZoneOffset): java.time.OffsetDateTime; + /** + * Combines this instant with a time-zone to create a {@code ZonedDateTime}. + *

+ * This returns an {@code ZonedDateTime} formed from this instant at the + * specified time-zone. An exception will be thrown if the instant is too + * large to fit into a zoned date-time. + *

+ * This method is equivalent to + * {@link ZonedDateTime#ofInstant(Instant, ZoneId) ZonedDateTime.ofInstant(this, zone)}. + */ + // @ts-ignore + public atZone(zone: java.time.ZoneId): java.time.ZonedDateTime; + /** + * Converts this instant to the number of milliseconds from the epoch + * of 1970-01-01T00:00:00Z. + *

+ * If this instant represents a point on the time-line too far in the future + * or past to fit in a {@code long} milliseconds, then an exception is thrown. + *

+ * If this instant has greater than millisecond precision, then the conversion + * will drop any excess precision information as though the amount in nanoseconds + * was subject to integer division by one million. + */ + // @ts-ignore + public toEpochMilli(): number; + /** + * Compares this instant to the specified instant. + *

+ * The comparison is based on the time-line position of the instants. + * It is "consistent with equals", as defined by {@link Comparable}. + */ + // @ts-ignore + public compareTo(otherInstant: java.time.Instant): number; + /** + * Checks if this instant is after the specified instant. + *

+ * The comparison is based on the time-line position of the instants. + */ + // @ts-ignore + public isAfter(otherInstant: java.time.Instant): boolean; + /** + * Checks if this instant is before the specified instant. + *

+ * The comparison is based on the time-line position of the instants. + */ + // @ts-ignore + public isBefore(otherInstant: java.time.Instant): boolean; + /** + * Checks if this instant is equal to the specified instant. + *

+ * The comparison is based on the time-line position of the instants. + */ + // @ts-ignore + public equals(otherInstant: java.lang.Object): boolean; + /** + * Returns a hash code for this instant. + */ + // @ts-ignore + public hashCode(): number; + /** + * A string representation of this instant using ISO-8601 representation. + *

+ * The format used is the same as {@link DateTimeFormatter#ISO_INSTANT}. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.LocalDate.d.ts b/packages/types/dist/typings/jdk/java.time.LocalDate.d.ts new file mode 100644 index 00000000..0603c74f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.LocalDate.d.ts @@ -0,0 +1,1049 @@ +// @ts-nocheck +declare namespace java { + namespace time { + // @ts-ignore + class LocalDate extends java.lang.Object { + // @ts-ignore + public static MIN: java.time.LocalDate; + // @ts-ignore + public static MAX: java.time.LocalDate; + /** + * Obtains the current date from the system clock in the default time-zone. + *

+ * This will query the {@link Clock#systemDefaultZone() system clock} in the default + * time-zone to obtain the current date. + *

+ * Using this method will prevent the ability to use an alternate clock for testing + * because the clock is hard-coded. + */ + // @ts-ignore + public static now(): java.time.LocalDate; + /** + * Obtains the current date from the system clock in the specified time-zone. + *

+ * This will query the {@link Clock#system(ZoneId) system clock} to obtain the current date. + * Specifying the time-zone avoids dependence on the default time-zone. + *

+ * Using this method will prevent the ability to use an alternate clock for testing + * because the clock is hard-coded. + */ + // @ts-ignore + public static now(zone: java.time.ZoneId): java.time.LocalDate; + /** + * Obtains the current date from the specified clock. + *

+ * This will query the specified clock to obtain the current date - today. + * Using this method allows the use of an alternate clock for testing. + * The alternate clock may be introduced using {@link Clock dependency injection}. + */ + // @ts-ignore + public static now(clock: java.time.Clock): java.time.LocalDate; + /** + * Obtains an instance of {@code LocalDate} from a year, month and day. + *

+ * This returns a {@code LocalDate} with the specified year, month and day-of-month. + * The day must be valid for the year and month, otherwise an exception will be thrown. + */ + // @ts-ignore + public static of(year: number, month: java.time.Month, dayOfMonth: number): java.time.LocalDate; + /** + * Obtains an instance of {@code LocalDate} from a year, month and day. + *

+ * This returns a {@code LocalDate} with the specified year, month and day-of-month. + * The day must be valid for the year and month, otherwise an exception will be thrown. + */ + // @ts-ignore + public static of(year: number, month: number, dayOfMonth: number): java.time.LocalDate; + /** + * Obtains an instance of {@code LocalDate} from a year and day-of-year. + *

+ * This returns a {@code LocalDate} with the specified year and day-of-year. + * The day-of-year must be valid for the year, otherwise an exception will be thrown. + */ + // @ts-ignore + public static ofYearDay(year: number, dayOfYear: number): java.time.LocalDate; + /** + * Obtains an instance of {@code LocalDate} from the epoch day count. + *

+ * This returns a {@code LocalDate} with the specified epoch-day. + * The {@link ChronoField#EPOCH_DAY EPOCH_DAY} is a simple incrementing count + * of days where day 0 is 1970-01-01. Negative numbers represent earlier days. + */ + // @ts-ignore + public static ofEpochDay(epochDay: number): java.time.LocalDate; + /** + * Obtains an instance of {@code LocalDate} from a temporal object. + *

+ * This obtains a local date based on the specified temporal. + * A {@code TemporalAccessor} represents an arbitrary set of date and time information, + * which this factory converts to an instance of {@code LocalDate}. + *

+ * The conversion uses the {@link TemporalQueries#localDate()} query, which relies + * on extracting the {@link ChronoField#EPOCH_DAY EPOCH_DAY} field. + *

+ * This method matches the signature of the functional interface {@link TemporalQuery} + * allowing it to be used as a query via method reference, {@code LocalDate::from}. + */ + // @ts-ignore + public static from(temporal: java.time.temporal.TemporalAccessor): java.time.LocalDate; + /** + * Obtains an instance of {@code LocalDate} from a text string such as {@code 2007-12-03}. + *

+ * The string must represent a valid date and is parsed using + * {@link java.time.format.DateTimeFormatter#ISO_LOCAL_DATE}. + */ + // @ts-ignore + public static parse(text: java.lang.CharSequence): java.time.LocalDate; + /** + * Obtains an instance of {@code LocalDate} from a text string using a specific formatter. + *

+ * The text is parsed using the formatter, returning a date. + */ + // @ts-ignore + public static parse(text: java.lang.CharSequence, formatter: java.time.format.DateTimeFormatter): java.time.LocalDate; + /** + * Checks if the specified field is supported. + *

+ * This checks if this date can be queried for the specified field. + * If false, then calling the {@link #range(TemporalField) range}, + * {@link #get(TemporalField) get} and {@link #with(TemporalField, long)} + * methods will throw an exception. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The supported fields are: + *

    + *
  • {@code DAY_OF_WEEK} + *
  • {@code ALIGNED_DAY_OF_WEEK_IN_MONTH} + *
  • {@code ALIGNED_DAY_OF_WEEK_IN_YEAR} + *
  • {@code DAY_OF_MONTH} + *
  • {@code DAY_OF_YEAR} + *
  • {@code EPOCH_DAY} + *
  • {@code ALIGNED_WEEK_OF_MONTH} + *
  • {@code ALIGNED_WEEK_OF_YEAR} + *
  • {@code MONTH_OF_YEAR} + *
  • {@code PROLEPTIC_MONTH} + *
  • {@code YEAR_OF_ERA} + *
  • {@code YEAR} + *
  • {@code ERA} + *
+ * All other {@code ChronoField} instances will return false. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.isSupportedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the field is supported is determined by the field. + */ + // @ts-ignore + public isSupported(field: java.time.temporal.TemporalField): boolean; + /** + * Checks if the specified unit is supported. + *

+ * This checks if the specified unit can be added to, or subtracted from, this date. + * If false, then calling the {@link #plus(long, TemporalUnit)} and + * {@link #minus(long, TemporalUnit) minus} methods will throw an exception. + *

+ * If the unit is a {@link ChronoUnit} then the query is implemented here. + * The supported units are: + *

    + *
  • {@code DAYS} + *
  • {@code WEEKS} + *
  • {@code MONTHS} + *
  • {@code YEARS} + *
  • {@code DECADES} + *
  • {@code CENTURIES} + *
  • {@code MILLENNIA} + *
  • {@code ERAS} + *
+ * All other {@code ChronoUnit} instances will return false. + *

+ * If the unit is not a {@code ChronoUnit}, then the result of this method + * is obtained by invoking {@code TemporalUnit.isSupportedBy(Temporal)} + * passing {@code this} as the argument. + * Whether the unit is supported is determined by the unit. + */ + // @ts-ignore + public isSupported(unit: java.time.temporal.TemporalUnit): boolean; + /** + * Gets the range of valid values for the specified field. + *

+ * The range object expresses the minimum and maximum valid values for a field. + * This date is used to enhance the accuracy of the returned range. + * If it is not possible to return the range, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@link #isSupported(TemporalField) supported fields} will return + * appropriate range instances. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.rangeRefinedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the range can be obtained is determined by the field. + */ + // @ts-ignore + public range(field: java.time.temporal.TemporalField): java.time.temporal.ValueRange; + /** + * Gets the value of the specified field from this date as an {@code int}. + *

+ * This queries this date for the value of the specified field. + * The returned value will always be within the valid range of values for the field. + * If it is not possible to return the value, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@link #isSupported(TemporalField) supported fields} will return valid + * values based on this date, except {@code EPOCH_DAY} and {@code PROLEPTIC_MONTH} + * which are too large to fit in an {@code int} and throw a {@code DateTimeException}. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)} + * passing {@code this} as the argument. Whether the value can be obtained, + * and what the value represents, is determined by the field. + */ + // @ts-ignore + public get(field: java.time.temporal.TemporalField): number; + /** + * Gets the value of the specified field from this date as a {@code long}. + *

+ * This queries this date for the value of the specified field. + * If it is not possible to return the value, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@link #isSupported(TemporalField) supported fields} will return valid + * values based on this date. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)} + * passing {@code this} as the argument. Whether the value can be obtained, + * and what the value represents, is determined by the field. + */ + // @ts-ignore + public getLong(field: java.time.temporal.TemporalField): number; + /** + * Gets the chronology of this date, which is the ISO calendar system. + *

+ * The {@code Chronology} represents the calendar system in use. + * The ISO-8601 calendar system is the modern civil calendar system used today + * in most of the world. It is equivalent to the proleptic Gregorian calendar + * system, in which today's rules for leap years are applied for all time. + */ + // @ts-ignore + public getChronology(): java.time.chrono.IsoChronology; + /** + * Gets the era applicable at this date. + *

+ * The official ISO-8601 standard does not define eras, however {@code IsoChronology} does. + * It defines two eras, 'CE' from year one onwards and 'BCE' from year zero backwards. + * Since dates before the Julian-Gregorian cutover are not in line with history, + * the cutover between 'BCE' and 'CE' is also not aligned with the commonly used + * eras, often referred to using 'BC' and 'AD'. + *

+ * Users of this class should typically ignore this method as it exists primarily + * to fulfill the {@link ChronoLocalDate} contract where it is necessary to support + * the Japanese calendar system. + *

+ * The returned era will be a singleton capable of being compared with the constants + * in {@link IsoChronology} using the {@code ==} operator. + */ + // @ts-ignore + public getEra(): java.time.chrono.Era; + /** + * Gets the year field. + *

+ * This method returns the primitive {@code int} value for the year. + *

+ * The year returned by this method is proleptic as per {@code get(YEAR)}. + * To obtain the year-of-era, use {@code get(YEAR_OF_ERA)}. + */ + // @ts-ignore + public getYear(): number; + /** + * Gets the month-of-year field from 1 to 12. + *

+ * This method returns the month as an {@code int} from 1 to 12. + * Application code is frequently clearer if the enum {@link Month} + * is used by calling {@link #getMonth()}. + */ + // @ts-ignore + public getMonthValue(): number; + /** + * Gets the month-of-year field using the {@code Month} enum. + *

+ * This method returns the enum {@link Month} for the month. + * This avoids confusion as to what {@code int} values mean. + * If you need access to the primitive {@code int} value then the enum + * provides the {@link Month#getValue() int value}. + */ + // @ts-ignore + public getMonth(): java.time.Month; + /** + * Gets the day-of-month field. + *

+ * This method returns the primitive {@code int} value for the day-of-month. + */ + // @ts-ignore + public getDayOfMonth(): number; + /** + * Gets the day-of-year field. + *

+ * This method returns the primitive {@code int} value for the day-of-year. + */ + // @ts-ignore + public getDayOfYear(): number; + /** + * Gets the day-of-week field, which is an enum {@code DayOfWeek}. + *

+ * This method returns the enum {@link DayOfWeek} for the day-of-week. + * This avoids confusion as to what {@code int} values mean. + * If you need access to the primitive {@code int} value then the enum + * provides the {@link DayOfWeek#getValue() int value}. + *

+ * Additional information can be obtained from the {@code DayOfWeek}. + * This includes textual names of the values. + */ + // @ts-ignore + public getDayOfWeek(): java.time.DayOfWeek; + /** + * Checks if the year is a leap year, according to the ISO proleptic + * calendar system rules. + *

+ * This method applies the current rules for leap years across the whole time-line. + * In general, a year is a leap year if it is divisible by four without + * remainder. However, years divisible by 100, are not leap years, with + * the exception of years divisible by 400 which are. + *

+ * For example, 1904 is a leap year it is divisible by 4. + * 1900 was not a leap year as it is divisible by 100, however 2000 was a + * leap year as it is divisible by 400. + *

+ * The calculation is proleptic - applying the same rules into the far future and far past. + * This is historically inaccurate, but is correct for the ISO-8601 standard. + */ + // @ts-ignore + public isLeapYear(): boolean; + /** + * Returns the length of the month represented by this date. + *

+ * This returns the length of the month in days. + * For example, a date in January would return 31. + */ + // @ts-ignore + public lengthOfMonth(): number; + /** + * Returns the length of the year represented by this date. + *

+ * This returns the length of the year in days, either 365 or 366. + */ + // @ts-ignore + public lengthOfYear(): number; + /** + * Returns an adjusted copy of this date. + *

+ * This returns a {@code LocalDate}, based on this one, with the date adjusted. + * The adjustment takes place using the specified adjuster strategy object. + * Read the documentation of the adjuster to understand what adjustment will be made. + *

+ * A simple adjuster might simply set the one of the fields, such as the year field. + * A more complex adjuster might set the date to the last day of the month. + *

+ * A selection of common adjustments is provided in + * {@link java.time.temporal.TemporalAdjusters TemporalAdjusters}. + * These include finding the "last day of the month" and "next Wednesday". + * Key date-time classes also implement the {@code TemporalAdjuster} interface, + * such as {@link Month} and {@link java.time.MonthDay MonthDay}. + * The adjuster is responsible for handling special cases, such as the varying + * lengths of month and leap years. + *

+ * For example this code returns a date on the last day of July: + *

+             * import static java.time.Month.*;
+             * import static java.time.temporal.TemporalAdjusters.*;
+             * result = localDate.with(JULY).with(lastDayOfMonth());
+             * 
+ *

+ * The result of this method is obtained by invoking the + * {@link TemporalAdjuster#adjustInto(Temporal)} method on the + * specified adjuster passing {@code this} as the argument. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public with(adjuster: java.time.temporal.TemporalAdjuster): java.time.LocalDate; + /** + * Returns a copy of this date with the specified field set to a new value. + *

+ * This returns a {@code LocalDate}, based on this one, with the value + * for the specified field changed. + * This can be used to change any supported field, such as the year, month or day-of-month. + * If it is not possible to set the value, because the field is not supported or for + * some other reason, an exception is thrown. + *

+ * In some cases, changing the specified field can cause the resulting date to become invalid, + * such as changing the month from 31st January to February would make the day-of-month invalid. + * In cases like this, the field is responsible for resolving the date. Typically it will choose + * the previous valid date, which would be the last valid day of February in this example. + *

+ * If the field is a {@link ChronoField} then the adjustment is implemented here. + * The supported fields behave as follows: + *

    + *
  • {@code DAY_OF_WEEK} - + * Returns a {@code LocalDate} with the specified day-of-week. + * The date is adjusted up to 6 days forward or backward within the boundary + * of a Monday to Sunday week. + *
  • {@code ALIGNED_DAY_OF_WEEK_IN_MONTH} - + * Returns a {@code LocalDate} with the specified aligned-day-of-week. + * The date is adjusted to the specified month-based aligned-day-of-week. + * Aligned weeks are counted such that the first week of a given month starts + * on the first day of that month. + * This may cause the date to be moved up to 6 days into the following month. + *
  • {@code ALIGNED_DAY_OF_WEEK_IN_YEAR} - + * Returns a {@code LocalDate} with the specified aligned-day-of-week. + * The date is adjusted to the specified year-based aligned-day-of-week. + * Aligned weeks are counted such that the first week of a given year starts + * on the first day of that year. + * This may cause the date to be moved up to 6 days into the following year. + *
  • {@code DAY_OF_MONTH} - + * Returns a {@code LocalDate} with the specified day-of-month. + * The month and year will be unchanged. If the day-of-month is invalid for the + * year and month, then a {@code DateTimeException} is thrown. + *
  • {@code DAY_OF_YEAR} - + * Returns a {@code LocalDate} with the specified day-of-year. + * The year will be unchanged. If the day-of-year is invalid for the + * year, then a {@code DateTimeException} is thrown. + *
  • {@code EPOCH_DAY} - + * Returns a {@code LocalDate} with the specified epoch-day. + * This completely replaces the date and is equivalent to {@link #ofEpochDay(long)}. + *
  • {@code ALIGNED_WEEK_OF_MONTH} - + * Returns a {@code LocalDate} with the specified aligned-week-of-month. + * Aligned weeks are counted such that the first week of a given month starts + * on the first day of that month. + * This adjustment moves the date in whole week chunks to match the specified week. + * The result will have the same day-of-week as this date. + * This may cause the date to be moved into the following month. + *
  • {@code ALIGNED_WEEK_OF_YEAR} - + * Returns a {@code LocalDate} with the specified aligned-week-of-year. + * Aligned weeks are counted such that the first week of a given year starts + * on the first day of that year. + * This adjustment moves the date in whole week chunks to match the specified week. + * The result will have the same day-of-week as this date. + * This may cause the date to be moved into the following year. + *
  • {@code MONTH_OF_YEAR} - + * Returns a {@code LocalDate} with the specified month-of-year. + * The year will be unchanged. The day-of-month will also be unchanged, + * unless it would be invalid for the new month and year. In that case, the + * day-of-month is adjusted to the maximum valid value for the new month and year. + *
  • {@code PROLEPTIC_MONTH} - + * Returns a {@code LocalDate} with the specified proleptic-month. + * The day-of-month will be unchanged, unless it would be invalid for the new month + * and year. In that case, the day-of-month is adjusted to the maximum valid value + * for the new month and year. + *
  • {@code YEAR_OF_ERA} - + * Returns a {@code LocalDate} with the specified year-of-era. + * The era and month will be unchanged. The day-of-month will also be unchanged, + * unless it would be invalid for the new month and year. In that case, the + * day-of-month is adjusted to the maximum valid value for the new month and year. + *
  • {@code YEAR} - + * Returns a {@code LocalDate} with the specified year. + * The month will be unchanged. The day-of-month will also be unchanged, + * unless it would be invalid for the new month and year. In that case, the + * day-of-month is adjusted to the maximum valid value for the new month and year. + *
  • {@code ERA} - + * Returns a {@code LocalDate} with the specified era. + * The year-of-era and month will be unchanged. The day-of-month will also be unchanged, + * unless it would be invalid for the new month and year. In that case, the + * day-of-month is adjusted to the maximum valid value for the new month and year. + *
+ *

+ * In all cases, if the new value is outside the valid range of values for the field + * then a {@code DateTimeException} will be thrown. + *

+ * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.adjustInto(Temporal, long)} + * passing {@code this} as the argument. In this case, the field determines + * whether and how to adjust the instant. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public with(field: java.time.temporal.TemporalField, newValue: number): java.time.LocalDate; + /** + * Returns a copy of this {@code LocalDate} with the year altered. + *

+ * If the day-of-month is invalid for the year, it will be changed to the last valid day of the month. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withYear(year: number): java.time.LocalDate; + /** + * Returns a copy of this {@code LocalDate} with the month-of-year altered. + *

+ * If the day-of-month is invalid for the year, it will be changed to the last valid day of the month. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withMonth(month: number): java.time.LocalDate; + /** + * Returns a copy of this {@code LocalDate} with the day-of-month altered. + *

+ * If the resulting date is invalid, an exception is thrown. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withDayOfMonth(dayOfMonth: number): java.time.LocalDate; + /** + * Returns a copy of this {@code LocalDate} with the day-of-year altered. + *

+ * If the resulting date is invalid, an exception is thrown. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withDayOfYear(dayOfYear: number): java.time.LocalDate; + /** + * Returns a copy of this date with the specified amount added. + *

+ * This returns a {@code LocalDate}, based on this one, with the specified amount added. + * The amount is typically {@link Period} but may be any other type implementing + * the {@link TemporalAmount} interface. + *

+ * The calculation is delegated to the amount object by calling + * {@link TemporalAmount#addTo(Temporal)}. The amount implementation is free + * to implement the addition in any way it wishes, however it typically + * calls back to {@link #plus(long, TemporalUnit)}. Consult the documentation + * of the amount implementation to determine if it can be successfully added. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plus(amountToAdd: java.time.temporal.TemporalAmount): java.time.LocalDate; + /** + * Returns a copy of this date with the specified amount added. + *

+ * This returns a {@code LocalDate}, based on this one, with the amount + * in terms of the unit added. If it is not possible to add the amount, because the + * unit is not supported or for some other reason, an exception is thrown. + *

+ * In some cases, adding the amount can cause the resulting date to become invalid. + * For example, adding one month to 31st January would result in 31st February. + * In cases like this, the unit is responsible for resolving the date. + * Typically it will choose the previous valid date, which would be the last valid + * day of February in this example. + *

+ * If the field is a {@link ChronoUnit} then the addition is implemented here. + * The supported fields behave as follows: + *

    + *
  • {@code DAYS} - + * Returns a {@code LocalDate} with the specified number of days added. + * This is equivalent to {@link #plusDays(long)}. + *
  • {@code WEEKS} - + * Returns a {@code LocalDate} with the specified number of weeks added. + * This is equivalent to {@link #plusWeeks(long)} and uses a 7 day week. + *
  • {@code MONTHS} - + * Returns a {@code LocalDate} with the specified number of months added. + * This is equivalent to {@link #plusMonths(long)}. + * The day-of-month will be unchanged unless it would be invalid for the new + * month and year. In that case, the day-of-month is adjusted to the maximum + * valid value for the new month and year. + *
  • {@code YEARS} - + * Returns a {@code LocalDate} with the specified number of years added. + * This is equivalent to {@link #plusYears(long)}. + * The day-of-month will be unchanged unless it would be invalid for the new + * month and year. In that case, the day-of-month is adjusted to the maximum + * valid value for the new month and year. + *
  • {@code DECADES} - + * Returns a {@code LocalDate} with the specified number of decades added. + * This is equivalent to calling {@link #plusYears(long)} with the amount + * multiplied by 10. + * The day-of-month will be unchanged unless it would be invalid for the new + * month and year. In that case, the day-of-month is adjusted to the maximum + * valid value for the new month and year. + *
  • {@code CENTURIES} - + * Returns a {@code LocalDate} with the specified number of centuries added. + * This is equivalent to calling {@link #plusYears(long)} with the amount + * multiplied by 100. + * The day-of-month will be unchanged unless it would be invalid for the new + * month and year. In that case, the day-of-month is adjusted to the maximum + * valid value for the new month and year. + *
  • {@code MILLENNIA} - + * Returns a {@code LocalDate} with the specified number of millennia added. + * This is equivalent to calling {@link #plusYears(long)} with the amount + * multiplied by 1,000. + * The day-of-month will be unchanged unless it would be invalid for the new + * month and year. In that case, the day-of-month is adjusted to the maximum + * valid value for the new month and year. + *
  • {@code ERAS} - + * Returns a {@code LocalDate} with the specified number of eras added. + * Only two eras are supported so the amount must be one, zero or minus one. + * If the amount is non-zero then the year is changed such that the year-of-era + * is unchanged. + * The day-of-month will be unchanged unless it would be invalid for the new + * month and year. In that case, the day-of-month is adjusted to the maximum + * valid value for the new month and year. + *
+ *

+ * All other {@code ChronoUnit} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoUnit}, then the result of this method + * is obtained by invoking {@code TemporalUnit.addTo(Temporal, long)} + * passing {@code this} as the argument. In this case, the unit determines + * whether and how to perform the addition. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plus(amountToAdd: number, unit: java.time.temporal.TemporalUnit): java.time.LocalDate; + /** + * Returns a copy of this {@code LocalDate} with the specified number of years added. + *

+ * This method adds the specified amount to the years field in three steps: + *

    + *
  1. Add the input years to the year field
  2. + *
  3. Check if the resulting date would be invalid
  4. + *
  5. Adjust the day-of-month to the last valid day if necessary
  6. + *
+ *

+ * For example, 2008-02-29 (leap year) plus one year would result in the + * invalid date 2009-02-29 (standard year). Instead of returning an invalid + * result, the last valid day of the month, 2009-02-28, is selected instead. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusYears(yearsToAdd: number): java.time.LocalDate; + /** + * Returns a copy of this {@code LocalDate} with the specified number of months added. + *

+ * This method adds the specified amount to the months field in three steps: + *

    + *
  1. Add the input months to the month-of-year field
  2. + *
  3. Check if the resulting date would be invalid
  4. + *
  5. Adjust the day-of-month to the last valid day if necessary
  6. + *
+ *

+ * For example, 2007-03-31 plus one month would result in the invalid date + * 2007-04-31. Instead of returning an invalid result, the last valid day + * of the month, 2007-04-30, is selected instead. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusMonths(monthsToAdd: number): java.time.LocalDate; + /** + * Returns a copy of this {@code LocalDate} with the specified number of weeks added. + *

+ * This method adds the specified amount in weeks to the days field incrementing + * the month and year fields as necessary to ensure the result remains valid. + * The result is only invalid if the maximum/minimum year is exceeded. + *

+ * For example, 2008-12-31 plus one week would result in 2009-01-07. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusWeeks(weeksToAdd: number): java.time.LocalDate; + /** + * Returns a copy of this {@code LocalDate} with the specified number of days added. + *

+ * This method adds the specified amount to the days field incrementing the + * month and year fields as necessary to ensure the result remains valid. + * The result is only invalid if the maximum/minimum year is exceeded. + *

+ * For example, 2008-12-31 plus one day would result in 2009-01-01. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusDays(daysToAdd: number): java.time.LocalDate; + /** + * Returns a copy of this date with the specified amount subtracted. + *

+ * This returns a {@code LocalDate}, based on this one, with the specified amount subtracted. + * The amount is typically {@link Period} but may be any other type implementing + * the {@link TemporalAmount} interface. + *

+ * The calculation is delegated to the amount object by calling + * {@link TemporalAmount#subtractFrom(Temporal)}. The amount implementation is free + * to implement the subtraction in any way it wishes, however it typically + * calls back to {@link #minus(long, TemporalUnit)}. Consult the documentation + * of the amount implementation to determine if it can be successfully subtracted. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minus(amountToSubtract: java.time.temporal.TemporalAmount): java.time.LocalDate; + /** + * Returns a copy of this date with the specified amount subtracted. + *

+ * This returns a {@code LocalDate}, based on this one, with the amount + * in terms of the unit subtracted. If it is not possible to subtract the amount, + * because the unit is not supported or for some other reason, an exception is thrown. + *

+ * This method is equivalent to {@link #plus(long, TemporalUnit)} with the amount negated. + * See that method for a full description of how addition, and thus subtraction, works. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minus(amountToSubtract: number, unit: java.time.temporal.TemporalUnit): java.time.LocalDate; + /** + * Returns a copy of this {@code LocalDate} with the specified number of years subtracted. + *

+ * This method subtracts the specified amount from the years field in three steps: + *

    + *
  1. Subtract the input years from the year field
  2. + *
  3. Check if the resulting date would be invalid
  4. + *
  5. Adjust the day-of-month to the last valid day if necessary
  6. + *
+ *

+ * For example, 2008-02-29 (leap year) minus one year would result in the + * invalid date 2007-02-29 (standard year). Instead of returning an invalid + * result, the last valid day of the month, 2007-02-28, is selected instead. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusYears(yearsToSubtract: number): java.time.LocalDate; + /** + * Returns a copy of this {@code LocalDate} with the specified number of months subtracted. + *

+ * This method subtracts the specified amount from the months field in three steps: + *

    + *
  1. Subtract the input months from the month-of-year field
  2. + *
  3. Check if the resulting date would be invalid
  4. + *
  5. Adjust the day-of-month to the last valid day if necessary
  6. + *
+ *

+ * For example, 2007-03-31 minus one month would result in the invalid date + * 2007-02-31. Instead of returning an invalid result, the last valid day + * of the month, 2007-02-28, is selected instead. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusMonths(monthsToSubtract: number): java.time.LocalDate; + /** + * Returns a copy of this {@code LocalDate} with the specified number of weeks subtracted. + *

+ * This method subtracts the specified amount in weeks from the days field decrementing + * the month and year fields as necessary to ensure the result remains valid. + * The result is only invalid if the maximum/minimum year is exceeded. + *

+ * For example, 2009-01-07 minus one week would result in 2008-12-31. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusWeeks(weeksToSubtract: number): java.time.LocalDate; + /** + * Returns a copy of this {@code LocalDate} with the specified number of days subtracted. + *

+ * This method subtracts the specified amount from the days field decrementing the + * month and year fields as necessary to ensure the result remains valid. + * The result is only invalid if the maximum/minimum year is exceeded. + *

+ * For example, 2009-01-01 minus one day would result in 2008-12-31. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusDays(daysToSubtract: number): java.time.LocalDate; + /** + * Queries this date using the specified query. + *

+ * This queries this date using the specified query strategy object. + * The {@code TemporalQuery} object defines the logic to be used to + * obtain the result. Read the documentation of the query to understand + * what the result of this method will be. + *

+ * The result of this method is obtained by invoking the + * {@link TemporalQuery#queryFrom(TemporalAccessor)} method on the + * specified query passing {@code this} as the argument. + */ + // @ts-ignore + public query(query: java.time.temporal.TemporalQuery): java.lang.Object; + /** + * Adjusts the specified temporal object to have the same date as this object. + *

+ * This returns a temporal object of the same observable type as the input + * with the date changed to be the same as this. + *

+ * The adjustment is equivalent to using {@link Temporal#with(TemporalField, long)} + * passing {@link ChronoField#EPOCH_DAY} as the field. + *

+ * In most cases, it is clearer to reverse the calling pattern by using + * {@link Temporal#with(TemporalAdjuster)}: + *

+             * // these two lines are equivalent, but the second approach is recommended
+             * temporal = thisLocalDate.adjustInto(temporal);
+             * temporal = temporal.with(thisLocalDate);
+             * 
+ *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public adjustInto(temporal: java.time.temporal.Temporal): java.time.temporal.Temporal; + /** + * Calculates the amount of time until another date in terms of the specified unit. + *

+ * This calculates the amount of time between two {@code LocalDate} + * objects in terms of a single {@code TemporalUnit}. + * The start and end points are {@code this} and the specified date. + * The result will be negative if the end is before the start. + * The {@code Temporal} passed to this method is converted to a + * {@code LocalDate} using {@link #from(TemporalAccessor)}. + * For example, the amount in days between two dates can be calculated + * using {@code startDate.until(endDate, DAYS)}. + *

+ * The calculation returns a whole number, representing the number of + * complete units between the two dates. + * For example, the amount in months between 2012-06-15 and 2012-08-14 + * will only be one month as it is one day short of two months. + *

+ * There are two equivalent ways of using this method. + * The first is to invoke this method. + * The second is to use {@link TemporalUnit#between(Temporal, Temporal)}: + *

+             * // these two lines are equivalent
+             * amount = start.until(end, MONTHS);
+             * amount = MONTHS.between(start, end);
+             * 
+ * The choice should be made based on which makes the code more readable. + *

+ * The calculation is implemented in this method for {@link ChronoUnit}. + * The units {@code DAYS}, {@code WEEKS}, {@code MONTHS}, {@code YEARS}, + * {@code DECADES}, {@code CENTURIES}, {@code MILLENNIA} and {@code ERAS} + * are supported. Other {@code ChronoUnit} values will throw an exception. + *

+ * If the unit is not a {@code ChronoUnit}, then the result of this method + * is obtained by invoking {@code TemporalUnit.between(Temporal, Temporal)} + * passing {@code this} as the first argument and the converted input temporal + * as the second argument. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public until(endExclusive: java.time.temporal.Temporal, unit: java.time.temporal.TemporalUnit): number; + /** + * Calculates the period between this date and another date as a {@code Period}. + *

+ * This calculates the period between two dates in terms of years, months and days. + * The start and end points are {@code this} and the specified date. + * The result will be negative if the end is before the start. + * The negative sign will be the same in each of year, month and day. + *

+ * The calculation is performed using the ISO calendar system. + * If necessary, the input date will be converted to ISO. + *

+ * The start date is included, but the end date is not. + * The period is calculated by removing complete months, then calculating + * the remaining number of days, adjusting to ensure that both have the same sign. + * The number of months is then normalized into years and months based on a 12 month year. + * A month is considered to be complete if the end day-of-month is greater + * than or equal to the start day-of-month. + * For example, from {@code 2010-01-15} to {@code 2011-03-18} is "1 year, 2 months and 3 days". + *

+ * There are two equivalent ways of using this method. + * The first is to invoke this method. + * The second is to use {@link Period#between(LocalDate, LocalDate)}: + *

+             * // these two lines are equivalent
+             * period = start.until(end);
+             * period = Period.between(start, end);
+             * 
+ * The choice should be made based on which makes the code more readable. + */ + // @ts-ignore + public until(endDateExclusive: java.time.chrono.ChronoLocalDate): java.time.Period; + /** + * Formats this date using the specified formatter. + *

+ * This date will be passed to the formatter to produce a string. + */ + // @ts-ignore + public format(formatter: java.time.format.DateTimeFormatter): string; + /** + * Combines this date with a time to create a {@code LocalDateTime}. + *

+ * This returns a {@code LocalDateTime} formed from this date at the specified time. + * All possible combinations of date and time are valid. + */ + // @ts-ignore + public atTime(time: java.time.LocalTime): java.time.LocalDateTime; + /** + * Combines this date with a time to create a {@code LocalDateTime}. + *

+ * This returns a {@code LocalDateTime} formed from this date at the + * specified hour and minute. + * The seconds and nanosecond fields will be set to zero. + * The individual time fields must be within their valid range. + * All possible combinations of date and time are valid. + */ + // @ts-ignore + public atTime(hour: number, minute: number): java.time.LocalDateTime; + /** + * Combines this date with a time to create a {@code LocalDateTime}. + *

+ * This returns a {@code LocalDateTime} formed from this date at the + * specified hour, minute and second. + * The nanosecond field will be set to zero. + * The individual time fields must be within their valid range. + * All possible combinations of date and time are valid. + */ + // @ts-ignore + public atTime(hour: number, minute: number, second: number): java.time.LocalDateTime; + /** + * Combines this date with a time to create a {@code LocalDateTime}. + *

+ * This returns a {@code LocalDateTime} formed from this date at the + * specified hour, minute, second and nanosecond. + * The individual time fields must be within their valid range. + * All possible combinations of date and time are valid. + */ + // @ts-ignore + public atTime(hour: number, minute: number, second: number, nanoOfSecond: number): java.time.LocalDateTime; + /** + * Combines this date with an offset time to create an {@code OffsetDateTime}. + *

+ * This returns an {@code OffsetDateTime} formed from this date at the specified time. + * All possible combinations of date and time are valid. + */ + // @ts-ignore + public atTime(time: java.time.OffsetTime): java.time.OffsetDateTime; + /** + * Combines this date with the time of midnight to create a {@code LocalDateTime} + * at the start of this date. + *

+ * This returns a {@code LocalDateTime} formed from this date at the time of + * midnight, 00:00, at the start of this date. + */ + // @ts-ignore + public atStartOfDay(): java.time.LocalDateTime; + /** + * Returns a zoned date-time from this date at the earliest valid time according + * to the rules in the time-zone. + *

+ * Time-zone rules, such as daylight savings, mean that not every local date-time + * is valid for the specified zone, thus the local date-time may not be midnight. + *

+ * In most cases, there is only one valid offset for a local date-time. + * In the case of an overlap, there are two valid offsets, and the earlier one is used, + * corresponding to the first occurrence of midnight on the date. + * In the case of a gap, the zoned date-time will represent the instant just after the gap. + *

+ * If the zone ID is a {@link ZoneOffset}, then the result always has a time of midnight. + *

+ * To convert to a specific time in a given time-zone call {@link #atTime(LocalTime)} + * followed by {@link LocalDateTime#atZone(ZoneId)}. + */ + // @ts-ignore + public atStartOfDay(zone: java.time.ZoneId): java.time.ZonedDateTime; + // @ts-ignore + public toEpochDay(): number; + /** + * Compares this date to another date. + *

+ * The comparison is primarily based on the date, from earliest to latest. + * It is "consistent with equals", as defined by {@link Comparable}. + *

+ * If all the dates being compared are instances of {@code LocalDate}, + * then the comparison will be entirely based on the date. + * If some dates being compared are in different chronologies, then the + * chronology is also considered, see {@link java.time.chrono.ChronoLocalDate#compareTo}. + */ + // @ts-ignore + public compareTo(other: java.time.chrono.ChronoLocalDate): number; + /** + * Checks if this date is after the specified date. + *

+ * This checks to see if this date represents a point on the + * local time-line after the other date. + *

+             * LocalDate a = LocalDate.of(2012, 6, 30);
+             * LocalDate b = LocalDate.of(2012, 7, 1);
+             * a.isAfter(b) == false
+             * a.isAfter(a) == false
+             * b.isAfter(a) == true
+             * 
+ *

+ * This method only considers the position of the two dates on the local time-line. + * It does not take into account the chronology, or calendar system. + * This is different from the comparison in {@link #compareTo(ChronoLocalDate)}, + * but is the same approach as {@link ChronoLocalDate#timeLineOrder()}. + */ + // @ts-ignore + public isAfter(other: java.time.chrono.ChronoLocalDate): boolean; + /** + * Checks if this date is before the specified date. + *

+ * This checks to see if this date represents a point on the + * local time-line before the other date. + *

+             * LocalDate a = LocalDate.of(2012, 6, 30);
+             * LocalDate b = LocalDate.of(2012, 7, 1);
+             * a.isBefore(b) == true
+             * a.isBefore(a) == false
+             * b.isBefore(a) == false
+             * 
+ *

+ * This method only considers the position of the two dates on the local time-line. + * It does not take into account the chronology, or calendar system. + * This is different from the comparison in {@link #compareTo(ChronoLocalDate)}, + * but is the same approach as {@link ChronoLocalDate#timeLineOrder()}. + */ + // @ts-ignore + public isBefore(other: java.time.chrono.ChronoLocalDate): boolean; + /** + * Checks if this date is equal to the specified date. + *

+ * This checks to see if this date represents the same point on the + * local time-line as the other date. + *

+             * LocalDate a = LocalDate.of(2012, 6, 30);
+             * LocalDate b = LocalDate.of(2012, 7, 1);
+             * a.isEqual(b) == false
+             * a.isEqual(a) == true
+             * b.isEqual(a) == false
+             * 
+ *

+ * This method only considers the position of the two dates on the local time-line. + * It does not take into account the chronology, or calendar system. + * This is different from the comparison in {@link #compareTo(ChronoLocalDate)} + * but is the same approach as {@link ChronoLocalDate#timeLineOrder()}. + */ + // @ts-ignore + public isEqual(other: java.time.chrono.ChronoLocalDate): boolean; + /** + * Checks if this date is equal to another date. + *

+ * Compares this {@code LocalDate} with another ensuring that the date is the same. + *

+ * Only objects of type {@code LocalDate} are compared, other types return false. + * To compare the dates of two {@code TemporalAccessor} instances, including dates + * in two different chronologies, use {@link ChronoField#EPOCH_DAY} as a comparator. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * A hash code for this date. + */ + // @ts-ignore + public hashCode(): number; + /** + * Outputs this date as a {@code String}, such as {@code 2007-12-03}. + *

+ * The output will be in the ISO-8601 format {@code uuuu-MM-dd}. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.LocalDateTime.d.ts b/packages/types/dist/typings/jdk/java.time.LocalDateTime.d.ts new file mode 100644 index 00000000..3b1e195c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.LocalDateTime.d.ts @@ -0,0 +1,1027 @@ +// @ts-nocheck +declare namespace java { + namespace time { + // @ts-ignore + class LocalDateTime extends java.lang.Object { + // @ts-ignore + public static MIN: java.time.LocalDateTime; + // @ts-ignore + public static MAX: java.time.LocalDateTime; + /** + * Obtains the current date-time from the system clock in the default time-zone. + *

+ * This will query the {@link Clock#systemDefaultZone() system clock} in the default + * time-zone to obtain the current date-time. + *

+ * Using this method will prevent the ability to use an alternate clock for testing + * because the clock is hard-coded. + */ + // @ts-ignore + public static now(): java.time.LocalDateTime; + /** + * Obtains the current date-time from the system clock in the specified time-zone. + *

+ * This will query the {@link Clock#system(ZoneId) system clock} to obtain the current date-time. + * Specifying the time-zone avoids dependence on the default time-zone. + *

+ * Using this method will prevent the ability to use an alternate clock for testing + * because the clock is hard-coded. + */ + // @ts-ignore + public static now(zone: java.time.ZoneId): java.time.LocalDateTime; + /** + * Obtains the current date-time from the specified clock. + *

+ * This will query the specified clock to obtain the current date-time. + * Using this method allows the use of an alternate clock for testing. + * The alternate clock may be introduced using {@link Clock dependency injection}. + */ + // @ts-ignore + public static now(clock: java.time.Clock): java.time.LocalDateTime; + /** + * Obtains an instance of {@code LocalDateTime} from year, month, + * day, hour and minute, setting the second and nanosecond to zero. + *

+ * This returns a {@code LocalDateTime} with the specified year, month, + * day-of-month, hour and minute. + * The day must be valid for the year and month, otherwise an exception will be thrown. + * The second and nanosecond fields will be set to zero. + */ + // @ts-ignore + public static of(year: number, month: java.time.Month, dayOfMonth: number, hour: number, minute: number): java.time.LocalDateTime; + /** + * Obtains an instance of {@code LocalDateTime} from year, month, + * day, hour, minute and second, setting the nanosecond to zero. + *

+ * This returns a {@code LocalDateTime} with the specified year, month, + * day-of-month, hour, minute and second. + * The day must be valid for the year and month, otherwise an exception will be thrown. + * The nanosecond field will be set to zero. + */ + // @ts-ignore + public static of(year: number, month: java.time.Month, dayOfMonth: number, hour: number, minute: number, second: number): java.time.LocalDateTime; + /** + * Obtains an instance of {@code LocalDateTime} from year, month, + * day, hour, minute, second and nanosecond. + *

+ * This returns a {@code LocalDateTime} with the specified year, month, + * day-of-month, hour, minute, second and nanosecond. + * The day must be valid for the year and month, otherwise an exception will be thrown. + */ + // @ts-ignore + public static of(year: number, month: java.time.Month, dayOfMonth: number, hour: number, minute: number, second: number, nanoOfSecond: number): java.time.LocalDateTime; + /** + * Obtains an instance of {@code LocalDateTime} from year, month, + * day, hour and minute, setting the second and nanosecond to zero. + *

+ * This returns a {@code LocalDateTime} with the specified year, month, + * day-of-month, hour and minute. + * The day must be valid for the year and month, otherwise an exception will be thrown. + * The second and nanosecond fields will be set to zero. + */ + // @ts-ignore + public static of(year: number, month: number, dayOfMonth: number, hour: number, minute: number): java.time.LocalDateTime; + /** + * Obtains an instance of {@code LocalDateTime} from year, month, + * day, hour, minute and second, setting the nanosecond to zero. + *

+ * This returns a {@code LocalDateTime} with the specified year, month, + * day-of-month, hour, minute and second. + * The day must be valid for the year and month, otherwise an exception will be thrown. + * The nanosecond field will be set to zero. + */ + // @ts-ignore + public static of(year: number, month: number, dayOfMonth: number, hour: number, minute: number, second: number): java.time.LocalDateTime; + /** + * Obtains an instance of {@code LocalDateTime} from year, month, + * day, hour, minute, second and nanosecond. + *

+ * This returns a {@code LocalDateTime} with the specified year, month, + * day-of-month, hour, minute, second and nanosecond. + * The day must be valid for the year and month, otherwise an exception will be thrown. + */ + // @ts-ignore + public static of(year: number, month: number, dayOfMonth: number, hour: number, minute: number, second: number, nanoOfSecond: number): java.time.LocalDateTime; + /** + * Obtains an instance of {@code LocalDateTime} from a date and time. + */ + // @ts-ignore + public static of(date: java.time.LocalDate, time: java.time.LocalTime): java.time.LocalDateTime; + /** + * Obtains an instance of {@code LocalDateTime} from an {@code Instant} and zone ID. + *

+ * This creates a local date-time based on the specified instant. + * First, the offset from UTC/Greenwich is obtained using the zone ID and instant, + * which is simple as there is only one valid offset for each instant. + * Then, the instant and offset are used to calculate the local date-time. + */ + // @ts-ignore + public static ofInstant(instant: java.time.Instant, zone: java.time.ZoneId): java.time.LocalDateTime; + /** + * Obtains an instance of {@code LocalDateTime} using seconds from the + * epoch of 1970-01-01T00:00:00Z. + *

+ * This allows the {@link ChronoField#INSTANT_SECONDS epoch-second} field + * to be converted to a local date-time. This is primarily intended for + * low-level conversions rather than general application usage. + */ + // @ts-ignore + public static ofEpochSecond(epochSecond: number, nanoOfSecond: number, offset: java.time.ZoneOffset): java.time.LocalDateTime; + /** + * Obtains an instance of {@code LocalDateTime} from a temporal object. + *

+ * This obtains a local date-time based on the specified temporal. + * A {@code TemporalAccessor} represents an arbitrary set of date and time information, + * which this factory converts to an instance of {@code LocalDateTime}. + *

+ * The conversion extracts and combines the {@code LocalDate} and the + * {@code LocalTime} from the temporal object. + * Implementations are permitted to perform optimizations such as accessing + * those fields that are equivalent to the relevant objects. + *

+ * This method matches the signature of the functional interface {@link TemporalQuery} + * allowing it to be used as a query via method reference, {@code LocalDateTime::from}. + */ + // @ts-ignore + public static from(temporal: java.time.temporal.TemporalAccessor): java.time.LocalDateTime; + /** + * Obtains an instance of {@code LocalDateTime} from a text string such as {@code 2007-12-03T10:15:30}. + *

+ * The string must represent a valid date-time and is parsed using + * {@link java.time.format.DateTimeFormatter#ISO_LOCAL_DATE_TIME}. + */ + // @ts-ignore + public static parse(text: java.lang.CharSequence): java.time.LocalDateTime; + /** + * Obtains an instance of {@code LocalDateTime} from a text string using a specific formatter. + *

+ * The text is parsed using the formatter, returning a date-time. + */ + // @ts-ignore + public static parse(text: java.lang.CharSequence, formatter: java.time.format.DateTimeFormatter): java.time.LocalDateTime; + /** + * Checks if the specified field is supported. + *

+ * This checks if this date-time can be queried for the specified field. + * If false, then calling the {@link #range(TemporalField) range}, + * {@link #get(TemporalField) get} and {@link #with(TemporalField, long)} + * methods will throw an exception. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The supported fields are: + *

    + *
  • {@code NANO_OF_SECOND} + *
  • {@code NANO_OF_DAY} + *
  • {@code MICRO_OF_SECOND} + *
  • {@code MICRO_OF_DAY} + *
  • {@code MILLI_OF_SECOND} + *
  • {@code MILLI_OF_DAY} + *
  • {@code SECOND_OF_MINUTE} + *
  • {@code SECOND_OF_DAY} + *
  • {@code MINUTE_OF_HOUR} + *
  • {@code MINUTE_OF_DAY} + *
  • {@code HOUR_OF_AMPM} + *
  • {@code CLOCK_HOUR_OF_AMPM} + *
  • {@code HOUR_OF_DAY} + *
  • {@code CLOCK_HOUR_OF_DAY} + *
  • {@code AMPM_OF_DAY} + *
  • {@code DAY_OF_WEEK} + *
  • {@code ALIGNED_DAY_OF_WEEK_IN_MONTH} + *
  • {@code ALIGNED_DAY_OF_WEEK_IN_YEAR} + *
  • {@code DAY_OF_MONTH} + *
  • {@code DAY_OF_YEAR} + *
  • {@code EPOCH_DAY} + *
  • {@code ALIGNED_WEEK_OF_MONTH} + *
  • {@code ALIGNED_WEEK_OF_YEAR} + *
  • {@code MONTH_OF_YEAR} + *
  • {@code PROLEPTIC_MONTH} + *
  • {@code YEAR_OF_ERA} + *
  • {@code YEAR} + *
  • {@code ERA} + *
+ * All other {@code ChronoField} instances will return false. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.isSupportedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the field is supported is determined by the field. + */ + // @ts-ignore + public isSupported(field: java.time.temporal.TemporalField): boolean; + /** + * Checks if the specified unit is supported. + *

+ * This checks if the specified unit can be added to, or subtracted from, this date-time. + * If false, then calling the {@link #plus(long, TemporalUnit)} and + * {@link #minus(long, TemporalUnit) minus} methods will throw an exception. + *

+ * If the unit is a {@link ChronoUnit} then the query is implemented here. + * The supported units are: + *

    + *
  • {@code NANOS} + *
  • {@code MICROS} + *
  • {@code MILLIS} + *
  • {@code SECONDS} + *
  • {@code MINUTES} + *
  • {@code HOURS} + *
  • {@code HALF_DAYS} + *
  • {@code DAYS} + *
  • {@code WEEKS} + *
  • {@code MONTHS} + *
  • {@code YEARS} + *
  • {@code DECADES} + *
  • {@code CENTURIES} + *
  • {@code MILLENNIA} + *
  • {@code ERAS} + *
+ * All other {@code ChronoUnit} instances will return false. + *

+ * If the unit is not a {@code ChronoUnit}, then the result of this method + * is obtained by invoking {@code TemporalUnit.isSupportedBy(Temporal)} + * passing {@code this} as the argument. + * Whether the unit is supported is determined by the unit. + */ + // @ts-ignore + public isSupported(unit: java.time.temporal.TemporalUnit): boolean; + /** + * Gets the range of valid values for the specified field. + *

+ * The range object expresses the minimum and maximum valid values for a field. + * This date-time is used to enhance the accuracy of the returned range. + * If it is not possible to return the range, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@link #isSupported(TemporalField) supported fields} will return + * appropriate range instances. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.rangeRefinedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the range can be obtained is determined by the field. + */ + // @ts-ignore + public range(field: java.time.temporal.TemporalField): java.time.temporal.ValueRange; + /** + * Gets the value of the specified field from this date-time as an {@code int}. + *

+ * This queries this date-time for the value of the specified field. + * The returned value will always be within the valid range of values for the field. + * If it is not possible to return the value, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@link #isSupported(TemporalField) supported fields} will return valid + * values based on this date-time, except {@code NANO_OF_DAY}, {@code MICRO_OF_DAY}, + * {@code EPOCH_DAY} and {@code PROLEPTIC_MONTH} which are too large to fit in + * an {@code int} and throw a {@code DateTimeException}. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)} + * passing {@code this} as the argument. Whether the value can be obtained, + * and what the value represents, is determined by the field. + */ + // @ts-ignore + public get(field: java.time.temporal.TemporalField): number; + /** + * Gets the value of the specified field from this date-time as a {@code long}. + *

+ * This queries this date-time for the value of the specified field. + * If it is not possible to return the value, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@link #isSupported(TemporalField) supported fields} will return valid + * values based on this date-time. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)} + * passing {@code this} as the argument. Whether the value can be obtained, + * and what the value represents, is determined by the field. + */ + // @ts-ignore + public getLong(field: java.time.temporal.TemporalField): number; + /** + * Gets the {@code LocalDate} part of this date-time. + *

+ * This returns a {@code LocalDate} with the same year, month and day + * as this date-time. + */ + // @ts-ignore + public toLocalDate(): java.time.LocalDate; + /** + * Gets the year field. + *

+ * This method returns the primitive {@code int} value for the year. + *

+ * The year returned by this method is proleptic as per {@code get(YEAR)}. + * To obtain the year-of-era, use {@code get(YEAR_OF_ERA)}. + */ + // @ts-ignore + public getYear(): number; + /** + * Gets the month-of-year field from 1 to 12. + *

+ * This method returns the month as an {@code int} from 1 to 12. + * Application code is frequently clearer if the enum {@link Month} + * is used by calling {@link #getMonth()}. + */ + // @ts-ignore + public getMonthValue(): number; + /** + * Gets the month-of-year field using the {@code Month} enum. + *

+ * This method returns the enum {@link Month} for the month. + * This avoids confusion as to what {@code int} values mean. + * If you need access to the primitive {@code int} value then the enum + * provides the {@link Month#getValue() int value}. + */ + // @ts-ignore + public getMonth(): java.time.Month; + /** + * Gets the day-of-month field. + *

+ * This method returns the primitive {@code int} value for the day-of-month. + */ + // @ts-ignore + public getDayOfMonth(): number; + /** + * Gets the day-of-year field. + *

+ * This method returns the primitive {@code int} value for the day-of-year. + */ + // @ts-ignore + public getDayOfYear(): number; + /** + * Gets the day-of-week field, which is an enum {@code DayOfWeek}. + *

+ * This method returns the enum {@link DayOfWeek} for the day-of-week. + * This avoids confusion as to what {@code int} values mean. + * If you need access to the primitive {@code int} value then the enum + * provides the {@link DayOfWeek#getValue() int value}. + *

+ * Additional information can be obtained from the {@code DayOfWeek}. + * This includes textual names of the values. + */ + // @ts-ignore + public getDayOfWeek(): java.time.DayOfWeek; + /** + * Gets the {@code LocalTime} part of this date-time. + *

+ * This returns a {@code LocalTime} with the same hour, minute, second and + * nanosecond as this date-time. + */ + // @ts-ignore + public toLocalTime(): java.time.LocalTime; + /** + * Gets the hour-of-day field. + */ + // @ts-ignore + public getHour(): number; + /** + * Gets the minute-of-hour field. + */ + // @ts-ignore + public getMinute(): number; + /** + * Gets the second-of-minute field. + */ + // @ts-ignore + public getSecond(): number; + /** + * Gets the nano-of-second field. + */ + // @ts-ignore + public getNano(): number; + /** + * Returns an adjusted copy of this date-time. + *

+ * This returns a {@code LocalDateTime}, based on this one, with the date-time adjusted. + * The adjustment takes place using the specified adjuster strategy object. + * Read the documentation of the adjuster to understand what adjustment will be made. + *

+ * A simple adjuster might simply set the one of the fields, such as the year field. + * A more complex adjuster might set the date to the last day of the month. + *

+ * A selection of common adjustments is provided in + * {@link java.time.temporal.TemporalAdjusters TemporalAdjusters}. + * These include finding the "last day of the month" and "next Wednesday". + * Key date-time classes also implement the {@code TemporalAdjuster} interface, + * such as {@link Month} and {@link java.time.MonthDay MonthDay}. + * The adjuster is responsible for handling special cases, such as the varying + * lengths of month and leap years. + *

+ * For example this code returns a date on the last day of July: + *

+             * import static java.time.Month.*;
+             * import static java.time.temporal.TemporalAdjusters.*;
+             * result = localDateTime.with(JULY).with(lastDayOfMonth());
+             * 
+ *

+ * The classes {@link LocalDate} and {@link LocalTime} implement {@code TemporalAdjuster}, + * thus this method can be used to change the date, time or offset: + *

+             * result = localDateTime.with(date);
+             * result = localDateTime.with(time);
+             * 
+ *

+ * The result of this method is obtained by invoking the + * {@link TemporalAdjuster#adjustInto(Temporal)} method on the + * specified adjuster passing {@code this} as the argument. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public with(adjuster: java.time.temporal.TemporalAdjuster): java.time.LocalDateTime; + /** + * Returns a copy of this date-time with the specified field set to a new value. + *

+ * This returns a {@code LocalDateTime}, based on this one, with the value + * for the specified field changed. + * This can be used to change any supported field, such as the year, month or day-of-month. + * If it is not possible to set the value, because the field is not supported or for + * some other reason, an exception is thrown. + *

+ * In some cases, changing the specified field can cause the resulting date-time to become invalid, + * such as changing the month from 31st January to February would make the day-of-month invalid. + * In cases like this, the field is responsible for resolving the date. Typically it will choose + * the previous valid date, which would be the last valid day of February in this example. + *

+ * If the field is a {@link ChronoField} then the adjustment is implemented here. + * The {@link #isSupported(TemporalField) supported fields} will behave as per + * the matching method on {@link LocalDate#with(TemporalField, long) LocalDate} + * or {@link LocalTime#with(TemporalField, long) LocalTime}. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.adjustInto(Temporal, long)} + * passing {@code this} as the argument. In this case, the field determines + * whether and how to adjust the instant. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public with(field: java.time.temporal.TemporalField, newValue: number): java.time.LocalDateTime; + /** + * Returns a copy of this {@code LocalDateTime} with the year altered. + *

+ * The time does not affect the calculation and will be the same in the result. + * If the day-of-month is invalid for the year, it will be changed to the last valid day of the month. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withYear(year: number): java.time.LocalDateTime; + /** + * Returns a copy of this {@code LocalDateTime} with the month-of-year altered. + *

+ * The time does not affect the calculation and will be the same in the result. + * If the day-of-month is invalid for the year, it will be changed to the last valid day of the month. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withMonth(month: number): java.time.LocalDateTime; + /** + * Returns a copy of this {@code LocalDateTime} with the day-of-month altered. + *

+ * If the resulting date-time is invalid, an exception is thrown. + * The time does not affect the calculation and will be the same in the result. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withDayOfMonth(dayOfMonth: number): java.time.LocalDateTime; + /** + * Returns a copy of this {@code LocalDateTime} with the day-of-year altered. + *

+ * If the resulting date-time is invalid, an exception is thrown. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withDayOfYear(dayOfYear: number): java.time.LocalDateTime; + /** + * Returns a copy of this {@code LocalDateTime} with the hour-of-day altered. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withHour(hour: number): java.time.LocalDateTime; + /** + * Returns a copy of this {@code LocalDateTime} with the minute-of-hour altered. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withMinute(minute: number): java.time.LocalDateTime; + /** + * Returns a copy of this {@code LocalDateTime} with the second-of-minute altered. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withSecond(second: number): java.time.LocalDateTime; + /** + * Returns a copy of this {@code LocalDateTime} with the nano-of-second altered. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withNano(nanoOfSecond: number): java.time.LocalDateTime; + /** + * Returns a copy of this {@code LocalDateTime} with the time truncated. + *

+ * Truncation returns a copy of the original date-time with fields + * smaller than the specified unit set to zero. + * For example, truncating with the {@link ChronoUnit#MINUTES minutes} unit + * will set the second-of-minute and nano-of-second field to zero. + *

+ * The unit must have a {@linkplain TemporalUnit#getDuration() duration} + * that divides into the length of a standard day without remainder. + * This includes all supplied time units on {@link ChronoUnit} and + * {@link ChronoUnit#DAYS DAYS}. Other units throw an exception. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public truncatedTo(unit: java.time.temporal.TemporalUnit): java.time.LocalDateTime; + /** + * Returns a copy of this date-time with the specified amount added. + *

+ * This returns a {@code LocalDateTime}, based on this one, with the specified amount added. + * The amount is typically {@link Period} or {@link Duration} but may be + * any other type implementing the {@link TemporalAmount} interface. + *

+ * The calculation is delegated to the amount object by calling + * {@link TemporalAmount#addTo(Temporal)}. The amount implementation is free + * to implement the addition in any way it wishes, however it typically + * calls back to {@link #plus(long, TemporalUnit)}. Consult the documentation + * of the amount implementation to determine if it can be successfully added. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plus(amountToAdd: java.time.temporal.TemporalAmount): java.time.LocalDateTime; + /** + * Returns a copy of this date-time with the specified amount added. + *

+ * This returns a {@code LocalDateTime}, based on this one, with the amount + * in terms of the unit added. If it is not possible to add the amount, because the + * unit is not supported or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoUnit} then the addition is implemented here. + * Date units are added as per {@link LocalDate#plus(long, TemporalUnit)}. + * Time units are added as per {@link LocalTime#plus(long, TemporalUnit)} with + * any overflow in days added equivalent to using {@link #plusDays(long)}. + *

+ * If the field is not a {@code ChronoUnit}, then the result of this method + * is obtained by invoking {@code TemporalUnit.addTo(Temporal, long)} + * passing {@code this} as the argument. In this case, the unit determines + * whether and how to perform the addition. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plus(amountToAdd: number, unit: java.time.temporal.TemporalUnit): java.time.LocalDateTime; + /** + * Returns a copy of this {@code LocalDateTime} with the specified number of years added. + *

+ * This method adds the specified amount to the years field in three steps: + *

    + *
  1. Add the input years to the year field
  2. + *
  3. Check if the resulting date would be invalid
  4. + *
  5. Adjust the day-of-month to the last valid day if necessary
  6. + *
+ *

+ * For example, 2008-02-29 (leap year) plus one year would result in the + * invalid date 2009-02-29 (standard year). Instead of returning an invalid + * result, the last valid day of the month, 2009-02-28, is selected instead. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusYears(years: number): java.time.LocalDateTime; + /** + * Returns a copy of this {@code LocalDateTime} with the specified number of months added. + *

+ * This method adds the specified amount to the months field in three steps: + *

    + *
  1. Add the input months to the month-of-year field
  2. + *
  3. Check if the resulting date would be invalid
  4. + *
  5. Adjust the day-of-month to the last valid day if necessary
  6. + *
+ *

+ * For example, 2007-03-31 plus one month would result in the invalid date + * 2007-04-31. Instead of returning an invalid result, the last valid day + * of the month, 2007-04-30, is selected instead. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusMonths(months: number): java.time.LocalDateTime; + /** + * Returns a copy of this {@code LocalDateTime} with the specified number of weeks added. + *

+ * This method adds the specified amount in weeks to the days field incrementing + * the month and year fields as necessary to ensure the result remains valid. + * The result is only invalid if the maximum/minimum year is exceeded. + *

+ * For example, 2008-12-31 plus one week would result in 2009-01-07. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusWeeks(weeks: number): java.time.LocalDateTime; + /** + * Returns a copy of this {@code LocalDateTime} with the specified number of days added. + *

+ * This method adds the specified amount to the days field incrementing the + * month and year fields as necessary to ensure the result remains valid. + * The result is only invalid if the maximum/minimum year is exceeded. + *

+ * For example, 2008-12-31 plus one day would result in 2009-01-01. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusDays(days: number): java.time.LocalDateTime; + /** + * Returns a copy of this {@code LocalDateTime} with the specified number of hours added. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusHours(hours: number): java.time.LocalDateTime; + /** + * Returns a copy of this {@code LocalDateTime} with the specified number of minutes added. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusMinutes(minutes: number): java.time.LocalDateTime; + /** + * Returns a copy of this {@code LocalDateTime} with the specified number of seconds added. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusSeconds(seconds: number): java.time.LocalDateTime; + /** + * Returns a copy of this {@code LocalDateTime} with the specified number of nanoseconds added. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusNanos(nanos: number): java.time.LocalDateTime; + /** + * Returns a copy of this date-time with the specified amount subtracted. + *

+ * This returns a {@code LocalDateTime}, based on this one, with the specified amount subtracted. + * The amount is typically {@link Period} or {@link Duration} but may be + * any other type implementing the {@link TemporalAmount} interface. + *

+ * The calculation is delegated to the amount object by calling + * {@link TemporalAmount#subtractFrom(Temporal)}. The amount implementation is free + * to implement the subtraction in any way it wishes, however it typically + * calls back to {@link #minus(long, TemporalUnit)}. Consult the documentation + * of the amount implementation to determine if it can be successfully subtracted. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minus(amountToSubtract: java.time.temporal.TemporalAmount): java.time.LocalDateTime; + /** + * Returns a copy of this date-time with the specified amount subtracted. + *

+ * This returns a {@code LocalDateTime}, based on this one, with the amount + * in terms of the unit subtracted. If it is not possible to subtract the amount, + * because the unit is not supported or for some other reason, an exception is thrown. + *

+ * This method is equivalent to {@link #plus(long, TemporalUnit)} with the amount negated. + * See that method for a full description of how addition, and thus subtraction, works. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minus(amountToSubtract: number, unit: java.time.temporal.TemporalUnit): java.time.LocalDateTime; + /** + * Returns a copy of this {@code LocalDateTime} with the specified number of years subtracted. + *

+ * This method subtracts the specified amount from the years field in three steps: + *

    + *
  1. Subtract the input years from the year field
  2. + *
  3. Check if the resulting date would be invalid
  4. + *
  5. Adjust the day-of-month to the last valid day if necessary
  6. + *
+ *

+ * For example, 2008-02-29 (leap year) minus one year would result in the + * invalid date 2009-02-29 (standard year). Instead of returning an invalid + * result, the last valid day of the month, 2009-02-28, is selected instead. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusYears(years: number): java.time.LocalDateTime; + /** + * Returns a copy of this {@code LocalDateTime} with the specified number of months subtracted. + *

+ * This method subtracts the specified amount from the months field in three steps: + *

    + *
  1. Subtract the input months from the month-of-year field
  2. + *
  3. Check if the resulting date would be invalid
  4. + *
  5. Adjust the day-of-month to the last valid day if necessary
  6. + *
+ *

+ * For example, 2007-03-31 minus one month would result in the invalid date + * 2007-04-31. Instead of returning an invalid result, the last valid day + * of the month, 2007-04-30, is selected instead. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusMonths(months: number): java.time.LocalDateTime; + /** + * Returns a copy of this {@code LocalDateTime} with the specified number of weeks subtracted. + *

+ * This method subtracts the specified amount in weeks from the days field decrementing + * the month and year fields as necessary to ensure the result remains valid. + * The result is only invalid if the maximum/minimum year is exceeded. + *

+ * For example, 2009-01-07 minus one week would result in 2008-12-31. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusWeeks(weeks: number): java.time.LocalDateTime; + /** + * Returns a copy of this {@code LocalDateTime} with the specified number of days subtracted. + *

+ * This method subtracts the specified amount from the days field decrementing the + * month and year fields as necessary to ensure the result remains valid. + * The result is only invalid if the maximum/minimum year is exceeded. + *

+ * For example, 2009-01-01 minus one day would result in 2008-12-31. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusDays(days: number): java.time.LocalDateTime; + /** + * Returns a copy of this {@code LocalDateTime} with the specified number of hours subtracted. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusHours(hours: number): java.time.LocalDateTime; + /** + * Returns a copy of this {@code LocalDateTime} with the specified number of minutes subtracted. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusMinutes(minutes: number): java.time.LocalDateTime; + /** + * Returns a copy of this {@code LocalDateTime} with the specified number of seconds subtracted. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusSeconds(seconds: number): java.time.LocalDateTime; + /** + * Returns a copy of this {@code LocalDateTime} with the specified number of nanoseconds subtracted. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusNanos(nanos: number): java.time.LocalDateTime; + /** + * Queries this date-time using the specified query. + *

+ * This queries this date-time using the specified query strategy object. + * The {@code TemporalQuery} object defines the logic to be used to + * obtain the result. Read the documentation of the query to understand + * what the result of this method will be. + *

+ * The result of this method is obtained by invoking the + * {@link TemporalQuery#queryFrom(TemporalAccessor)} method on the + * specified query passing {@code this} as the argument. + */ + // @ts-ignore + public query(query: java.time.temporal.TemporalQuery): java.lang.Object; + /** + * Adjusts the specified temporal object to have the same date and time as this object. + *

+ * This returns a temporal object of the same observable type as the input + * with the date and time changed to be the same as this. + *

+ * The adjustment is equivalent to using {@link Temporal#with(TemporalField, long)} + * twice, passing {@link ChronoField#EPOCH_DAY} and + * {@link ChronoField#NANO_OF_DAY} as the fields. + *

+ * In most cases, it is clearer to reverse the calling pattern by using + * {@link Temporal#with(TemporalAdjuster)}: + *

+             * // these two lines are equivalent, but the second approach is recommended
+             * temporal = thisLocalDateTime.adjustInto(temporal);
+             * temporal = temporal.with(thisLocalDateTime);
+             * 
+ *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public adjustInto(temporal: java.time.temporal.Temporal): java.time.temporal.Temporal; + /** + * Calculates the amount of time until another date-time in terms of the specified unit. + *

+ * This calculates the amount of time between two {@code LocalDateTime} + * objects in terms of a single {@code TemporalUnit}. + * The start and end points are {@code this} and the specified date-time. + * The result will be negative if the end is before the start. + * The {@code Temporal} passed to this method is converted to a + * {@code LocalDateTime} using {@link #from(TemporalAccessor)}. + * For example, the amount in days between two date-times can be calculated + * using {@code startDateTime.until(endDateTime, DAYS)}. + *

+ * The calculation returns a whole number, representing the number of + * complete units between the two date-times. + * For example, the amount in months between 2012-06-15T00:00 and 2012-08-14T23:59 + * will only be one month as it is one minute short of two months. + *

+ * There are two equivalent ways of using this method. + * The first is to invoke this method. + * The second is to use {@link TemporalUnit#between(Temporal, Temporal)}: + *

+             * // these two lines are equivalent
+             * amount = start.until(end, MONTHS);
+             * amount = MONTHS.between(start, end);
+             * 
+ * The choice should be made based on which makes the code more readable. + *

+ * The calculation is implemented in this method for {@link ChronoUnit}. + * The units {@code NANOS}, {@code MICROS}, {@code MILLIS}, {@code SECONDS}, + * {@code MINUTES}, {@code HOURS} and {@code HALF_DAYS}, {@code DAYS}, + * {@code WEEKS}, {@code MONTHS}, {@code YEARS}, {@code DECADES}, + * {@code CENTURIES}, {@code MILLENNIA} and {@code ERAS} are supported. + * Other {@code ChronoUnit} values will throw an exception. + *

+ * If the unit is not a {@code ChronoUnit}, then the result of this method + * is obtained by invoking {@code TemporalUnit.between(Temporal, Temporal)} + * passing {@code this} as the first argument and the converted input temporal + * as the second argument. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public until(endExclusive: java.time.temporal.Temporal, unit: java.time.temporal.TemporalUnit): number; + /** + * Formats this date-time using the specified formatter. + *

+ * This date-time will be passed to the formatter to produce a string. + */ + // @ts-ignore + public format(formatter: java.time.format.DateTimeFormatter): string; + /** + * Combines this date-time with an offset to create an {@code OffsetDateTime}. + *

+ * This returns an {@code OffsetDateTime} formed from this date-time at the specified offset. + * All possible combinations of date-time and offset are valid. + */ + // @ts-ignore + public atOffset(offset: java.time.ZoneOffset): java.time.OffsetDateTime; + /** + * Combines this date-time with a time-zone to create a {@code ZonedDateTime}. + *

+ * This returns a {@code ZonedDateTime} formed from this date-time at the + * specified time-zone. The result will match this date-time as closely as possible. + * Time-zone rules, such as daylight savings, mean that not every local date-time + * is valid for the specified zone, thus the local date-time may be adjusted. + *

+ * The local date-time is resolved to a single instant on the time-line. + * This is achieved by finding a valid offset from UTC/Greenwich for the local + * date-time as defined by the {@link ZoneRules rules} of the zone ID. + *

+ * In most cases, there is only one valid offset for a local date-time. + * In the case of an overlap, where clocks are set back, there are two valid offsets. + * This method uses the earlier offset typically corresponding to "summer". + *

+ * In the case of a gap, where clocks jump forward, there is no valid offset. + * Instead, the local date-time is adjusted to be later by the length of the gap. + * For a typical one hour daylight savings change, the local date-time will be + * moved one hour later into the offset typically corresponding to "summer". + *

+ * To obtain the later offset during an overlap, call + * {@link ZonedDateTime#withLaterOffsetAtOverlap()} on the result of this method. + * To throw an exception when there is a gap or overlap, use + * {@link ZonedDateTime#ofStrict(LocalDateTime, ZoneOffset, ZoneId)}. + */ + // @ts-ignore + public atZone(zone: java.time.ZoneId): java.time.ZonedDateTime; + /** + * Compares this date-time to another date-time. + *

+ * The comparison is primarily based on the date-time, from earliest to latest. + * It is "consistent with equals", as defined by {@link Comparable}. + *

+ * If all the date-times being compared are instances of {@code LocalDateTime}, + * then the comparison will be entirely based on the date-time. + * If some dates being compared are in different chronologies, then the + * chronology is also considered, see {@link ChronoLocalDateTime#compareTo}. + */ + // @ts-ignore + public compareTo(other: java.time.chrono.ChronoLocalDateTime): number; + /** + * Checks if this date-time is after the specified date-time. + *

+ * This checks to see if this date-time represents a point on the + * local time-line after the other date-time. + *

+             * LocalDate a = LocalDateTime.of(2012, 6, 30, 12, 00);
+             * LocalDate b = LocalDateTime.of(2012, 7, 1, 12, 00);
+             * a.isAfter(b) == false
+             * a.isAfter(a) == false
+             * b.isAfter(a) == true
+             * 
+ *

+ * This method only considers the position of the two date-times on the local time-line. + * It does not take into account the chronology, or calendar system. + * This is different from the comparison in {@link #compareTo(ChronoLocalDateTime)}, + * but is the same approach as {@link ChronoLocalDateTime#timeLineOrder()}. + */ + // @ts-ignore + public isAfter(other: java.time.chrono.ChronoLocalDateTime): boolean; + /** + * Checks if this date-time is before the specified date-time. + *

+ * This checks to see if this date-time represents a point on the + * local time-line before the other date-time. + *

+             * LocalDate a = LocalDateTime.of(2012, 6, 30, 12, 00);
+             * LocalDate b = LocalDateTime.of(2012, 7, 1, 12, 00);
+             * a.isBefore(b) == true
+             * a.isBefore(a) == false
+             * b.isBefore(a) == false
+             * 
+ *

+ * This method only considers the position of the two date-times on the local time-line. + * It does not take into account the chronology, or calendar system. + * This is different from the comparison in {@link #compareTo(ChronoLocalDateTime)}, + * but is the same approach as {@link ChronoLocalDateTime#timeLineOrder()}. + */ + // @ts-ignore + public isBefore(other: java.time.chrono.ChronoLocalDateTime): boolean; + /** + * Checks if this date-time is equal to the specified date-time. + *

+ * This checks to see if this date-time represents the same point on the + * local time-line as the other date-time. + *

+             * LocalDate a = LocalDateTime.of(2012, 6, 30, 12, 00);
+             * LocalDate b = LocalDateTime.of(2012, 7, 1, 12, 00);
+             * a.isEqual(b) == false
+             * a.isEqual(a) == true
+             * b.isEqual(a) == false
+             * 
+ *

+ * This method only considers the position of the two date-times on the local time-line. + * It does not take into account the chronology, or calendar system. + * This is different from the comparison in {@link #compareTo(ChronoLocalDateTime)}, + * but is the same approach as {@link ChronoLocalDateTime#timeLineOrder()}. + */ + // @ts-ignore + public isEqual(other: java.time.chrono.ChronoLocalDateTime): boolean; + /** + * Checks if this date-time is equal to another date-time. + *

+ * Compares this {@code LocalDateTime} with another ensuring that the date-time is the same. + * Only objects of type {@code LocalDateTime} are compared, other types return false. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * A hash code for this date-time. + */ + // @ts-ignore + public hashCode(): number; + /** + * Outputs this date-time as a {@code String}, such as {@code 2007-12-03T10:15:30}. + *

+ * The output will be one of the following ISO-8601 formats: + *

    + *
  • {@code uuuu-MM-dd'T'HH:mm}
  • + *
  • {@code uuuu-MM-dd'T'HH:mm:ss}
  • + *
  • {@code uuuu-MM-dd'T'HH:mm:ss.SSS}
  • + *
  • {@code uuuu-MM-dd'T'HH:mm:ss.SSSSSS}
  • + *
  • {@code uuuu-MM-dd'T'HH:mm:ss.SSSSSSSSS}
  • + *
+ * The format used will be the shortest that outputs the full value of + * the time where the omitted parts are implied to be zero. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.LocalTime.d.ts b/packages/types/dist/typings/jdk/java.time.LocalTime.d.ts new file mode 100644 index 00000000..b1a84b77 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.LocalTime.d.ts @@ -0,0 +1,738 @@ +// @ts-nocheck +declare namespace java { + namespace time { + // @ts-ignore + class LocalTime extends java.lang.Object { + // @ts-ignore + public static MIN: java.time.LocalTime; + // @ts-ignore + public static MAX: java.time.LocalTime; + // @ts-ignore + public static MIDNIGHT: java.time.LocalTime; + // @ts-ignore + public static NOON: java.time.LocalTime; + /** + * Obtains the current time from the system clock in the default time-zone. + *

+ * This will query the {@link Clock#systemDefaultZone() system clock} in the default + * time-zone to obtain the current time. + *

+ * Using this method will prevent the ability to use an alternate clock for testing + * because the clock is hard-coded. + */ + // @ts-ignore + public static now(): java.time.LocalTime; + /** + * Obtains the current time from the system clock in the specified time-zone. + *

+ * This will query the {@link Clock#system(ZoneId) system clock} to obtain the current time. + * Specifying the time-zone avoids dependence on the default time-zone. + *

+ * Using this method will prevent the ability to use an alternate clock for testing + * because the clock is hard-coded. + */ + // @ts-ignore + public static now(zone: java.time.ZoneId): java.time.LocalTime; + /** + * Obtains the current time from the specified clock. + *

+ * This will query the specified clock to obtain the current time. + * Using this method allows the use of an alternate clock for testing. + * The alternate clock may be introduced using {@link Clock dependency injection}. + */ + // @ts-ignore + public static now(clock: java.time.Clock): java.time.LocalTime; + /** + * Obtains an instance of {@code LocalTime} from an hour and minute. + *

+ * This returns a {@code LocalTime} with the specified hour and minute. + * The second and nanosecond fields will be set to zero. + */ + // @ts-ignore + public static of(hour: number, minute: number): java.time.LocalTime; + /** + * Obtains an instance of {@code LocalTime} from an hour, minute and second. + *

+ * This returns a {@code LocalTime} with the specified hour, minute and second. + * The nanosecond field will be set to zero. + */ + // @ts-ignore + public static of(hour: number, minute: number, second: number): java.time.LocalTime; + /** + * Obtains an instance of {@code LocalTime} from an hour, minute, second and nanosecond. + *

+ * This returns a {@code LocalTime} with the specified hour, minute, second and nanosecond. + */ + // @ts-ignore + public static of(hour: number, minute: number, second: number, nanoOfSecond: number): java.time.LocalTime; + /** + * Obtains an instance of {@code LocalTime} from a second-of-day value. + *

+ * This returns a {@code LocalTime} with the specified second-of-day. + * The nanosecond field will be set to zero. + */ + // @ts-ignore + public static ofSecondOfDay(secondOfDay: number): java.time.LocalTime; + /** + * Obtains an instance of {@code LocalTime} from a nanos-of-day value. + *

+ * This returns a {@code LocalTime} with the specified nanosecond-of-day. + */ + // @ts-ignore + public static ofNanoOfDay(nanoOfDay: number): java.time.LocalTime; + /** + * Obtains an instance of {@code LocalTime} from a temporal object. + *

+ * This obtains a local time based on the specified temporal. + * A {@code TemporalAccessor} represents an arbitrary set of date and time information, + * which this factory converts to an instance of {@code LocalTime}. + *

+ * The conversion uses the {@link TemporalQueries#localTime()} query, which relies + * on extracting the {@link ChronoField#NANO_OF_DAY NANO_OF_DAY} field. + *

+ * This method matches the signature of the functional interface {@link TemporalQuery} + * allowing it to be used as a query via method reference, {@code LocalTime::from}. + */ + // @ts-ignore + public static from(temporal: java.time.temporal.TemporalAccessor): java.time.LocalTime; + /** + * Obtains an instance of {@code LocalTime} from a text string such as {@code 10:15}. + *

+ * The string must represent a valid time and is parsed using + * {@link java.time.format.DateTimeFormatter#ISO_LOCAL_TIME}. + */ + // @ts-ignore + public static parse(text: java.lang.CharSequence): java.time.LocalTime; + /** + * Obtains an instance of {@code LocalTime} from a text string using a specific formatter. + *

+ * The text is parsed using the formatter, returning a time. + */ + // @ts-ignore + public static parse(text: java.lang.CharSequence, formatter: java.time.format.DateTimeFormatter): java.time.LocalTime; + /** + * Checks if the specified field is supported. + *

+ * This checks if this time can be queried for the specified field. + * If false, then calling the {@link #range(TemporalField) range}, + * {@link #get(TemporalField) get} and {@link #with(TemporalField, long)} + * methods will throw an exception. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The supported fields are: + *

    + *
  • {@code NANO_OF_SECOND} + *
  • {@code NANO_OF_DAY} + *
  • {@code MICRO_OF_SECOND} + *
  • {@code MICRO_OF_DAY} + *
  • {@code MILLI_OF_SECOND} + *
  • {@code MILLI_OF_DAY} + *
  • {@code SECOND_OF_MINUTE} + *
  • {@code SECOND_OF_DAY} + *
  • {@code MINUTE_OF_HOUR} + *
  • {@code MINUTE_OF_DAY} + *
  • {@code HOUR_OF_AMPM} + *
  • {@code CLOCK_HOUR_OF_AMPM} + *
  • {@code HOUR_OF_DAY} + *
  • {@code CLOCK_HOUR_OF_DAY} + *
  • {@code AMPM_OF_DAY} + *
+ * All other {@code ChronoField} instances will return false. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.isSupportedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the field is supported is determined by the field. + */ + // @ts-ignore + public isSupported(field: java.time.temporal.TemporalField): boolean; + /** + * Checks if the specified unit is supported. + *

+ * This checks if the specified unit can be added to, or subtracted from, this time. + * If false, then calling the {@link #plus(long, TemporalUnit)} and + * {@link #minus(long, TemporalUnit) minus} methods will throw an exception. + *

+ * If the unit is a {@link ChronoUnit} then the query is implemented here. + * The supported units are: + *

    + *
  • {@code NANOS} + *
  • {@code MICROS} + *
  • {@code MILLIS} + *
  • {@code SECONDS} + *
  • {@code MINUTES} + *
  • {@code HOURS} + *
  • {@code HALF_DAYS} + *
+ * All other {@code ChronoUnit} instances will return false. + *

+ * If the unit is not a {@code ChronoUnit}, then the result of this method + * is obtained by invoking {@code TemporalUnit.isSupportedBy(Temporal)} + * passing {@code this} as the argument. + * Whether the unit is supported is determined by the unit. + */ + // @ts-ignore + public isSupported(unit: java.time.temporal.TemporalUnit): boolean; + /** + * Gets the range of valid values for the specified field. + *

+ * The range object expresses the minimum and maximum valid values for a field. + * This time is used to enhance the accuracy of the returned range. + * If it is not possible to return the range, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@link #isSupported(TemporalField) supported fields} will return + * appropriate range instances. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.rangeRefinedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the range can be obtained is determined by the field. + */ + // @ts-ignore + public range(field: java.time.temporal.TemporalField): java.time.temporal.ValueRange; + /** + * Gets the value of the specified field from this time as an {@code int}. + *

+ * This queries this time for the value of the specified field. + * The returned value will always be within the valid range of values for the field. + * If it is not possible to return the value, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@link #isSupported(TemporalField) supported fields} will return valid + * values based on this time, except {@code NANO_OF_DAY} and {@code MICRO_OF_DAY} + * which are too large to fit in an {@code int} and throw a {@code DateTimeException}. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)} + * passing {@code this} as the argument. Whether the value can be obtained, + * and what the value represents, is determined by the field. + */ + // @ts-ignore + public get(field: java.time.temporal.TemporalField): number; + /** + * Gets the value of the specified field from this time as a {@code long}. + *

+ * This queries this time for the value of the specified field. + * If it is not possible to return the value, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@link #isSupported(TemporalField) supported fields} will return valid + * values based on this time. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)} + * passing {@code this} as the argument. Whether the value can be obtained, + * and what the value represents, is determined by the field. + */ + // @ts-ignore + public getLong(field: java.time.temporal.TemporalField): number; + /** + * Gets the hour-of-day field. + */ + // @ts-ignore + public getHour(): number; + /** + * Gets the minute-of-hour field. + */ + // @ts-ignore + public getMinute(): number; + /** + * Gets the second-of-minute field. + */ + // @ts-ignore + public getSecond(): number; + /** + * Gets the nano-of-second field. + */ + // @ts-ignore + public getNano(): number; + /** + * Returns an adjusted copy of this time. + *

+ * This returns a {@code LocalTime}, based on this one, with the time adjusted. + * The adjustment takes place using the specified adjuster strategy object. + * Read the documentation of the adjuster to understand what adjustment will be made. + *

+ * A simple adjuster might simply set the one of the fields, such as the hour field. + * A more complex adjuster might set the time to the last hour of the day. + *

+ * The result of this method is obtained by invoking the + * {@link TemporalAdjuster#adjustInto(Temporal)} method on the + * specified adjuster passing {@code this} as the argument. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public with(adjuster: java.time.temporal.TemporalAdjuster): java.time.LocalTime; + /** + * Returns a copy of this time with the specified field set to a new value. + *

+ * This returns a {@code LocalTime}, based on this one, with the value + * for the specified field changed. + * This can be used to change any supported field, such as the hour, minute or second. + * If it is not possible to set the value, because the field is not supported or for + * some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the adjustment is implemented here. + * The supported fields behave as follows: + *

    + *
  • {@code NANO_OF_SECOND} - + * Returns a {@code LocalTime} with the specified nano-of-second. + * The hour, minute and second will be unchanged. + *
  • {@code NANO_OF_DAY} - + * Returns a {@code LocalTime} with the specified nano-of-day. + * This completely replaces the time and is equivalent to {@link #ofNanoOfDay(long)}. + *
  • {@code MICRO_OF_SECOND} - + * Returns a {@code LocalTime} with the nano-of-second replaced by the specified + * micro-of-second multiplied by 1,000. + * The hour, minute and second will be unchanged. + *
  • {@code MICRO_OF_DAY} - + * Returns a {@code LocalTime} with the specified micro-of-day. + * This completely replaces the time and is equivalent to using {@link #ofNanoOfDay(long)} + * with the micro-of-day multiplied by 1,000. + *
  • {@code MILLI_OF_SECOND} - + * Returns a {@code LocalTime} with the nano-of-second replaced by the specified + * milli-of-second multiplied by 1,000,000. + * The hour, minute and second will be unchanged. + *
  • {@code MILLI_OF_DAY} - + * Returns a {@code LocalTime} with the specified milli-of-day. + * This completely replaces the time and is equivalent to using {@link #ofNanoOfDay(long)} + * with the milli-of-day multiplied by 1,000,000. + *
  • {@code SECOND_OF_MINUTE} - + * Returns a {@code LocalTime} with the specified second-of-minute. + * The hour, minute and nano-of-second will be unchanged. + *
  • {@code SECOND_OF_DAY} - + * Returns a {@code LocalTime} with the specified second-of-day. + * The nano-of-second will be unchanged. + *
  • {@code MINUTE_OF_HOUR} - + * Returns a {@code LocalTime} with the specified minute-of-hour. + * The hour, second-of-minute and nano-of-second will be unchanged. + *
  • {@code MINUTE_OF_DAY} - + * Returns a {@code LocalTime} with the specified minute-of-day. + * The second-of-minute and nano-of-second will be unchanged. + *
  • {@code HOUR_OF_AMPM} - + * Returns a {@code LocalTime} with the specified hour-of-am-pm. + * The AM/PM, minute-of-hour, second-of-minute and nano-of-second will be unchanged. + *
  • {@code CLOCK_HOUR_OF_AMPM} - + * Returns a {@code LocalTime} with the specified clock-hour-of-am-pm. + * The AM/PM, minute-of-hour, second-of-minute and nano-of-second will be unchanged. + *
  • {@code HOUR_OF_DAY} - + * Returns a {@code LocalTime} with the specified hour-of-day. + * The minute-of-hour, second-of-minute and nano-of-second will be unchanged. + *
  • {@code CLOCK_HOUR_OF_DAY} - + * Returns a {@code LocalTime} with the specified clock-hour-of-day. + * The minute-of-hour, second-of-minute and nano-of-second will be unchanged. + *
  • {@code AMPM_OF_DAY} - + * Returns a {@code LocalTime} with the specified AM/PM. + * The hour-of-am-pm, minute-of-hour, second-of-minute and nano-of-second will be unchanged. + *
+ *

+ * In all cases, if the new value is outside the valid range of values for the field + * then a {@code DateTimeException} will be thrown. + *

+ * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.adjustInto(Temporal, long)} + * passing {@code this} as the argument. In this case, the field determines + * whether and how to adjust the instant. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public with(field: java.time.temporal.TemporalField, newValue: number): java.time.LocalTime; + /** + * Returns a copy of this {@code LocalTime} with the hour-of-day altered. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withHour(hour: number): java.time.LocalTime; + /** + * Returns a copy of this {@code LocalTime} with the minute-of-hour altered. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withMinute(minute: number): java.time.LocalTime; + /** + * Returns a copy of this {@code LocalTime} with the second-of-minute altered. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withSecond(second: number): java.time.LocalTime; + /** + * Returns a copy of this {@code LocalTime} with the nano-of-second altered. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withNano(nanoOfSecond: number): java.time.LocalTime; + /** + * Returns a copy of this {@code LocalTime} with the time truncated. + *

+ * Truncation returns a copy of the original time with fields + * smaller than the specified unit set to zero. + * For example, truncating with the {@link ChronoUnit#MINUTES minutes} unit + * will set the second-of-minute and nano-of-second field to zero. + *

+ * The unit must have a {@linkplain TemporalUnit#getDuration() duration} + * that divides into the length of a standard day without remainder. + * This includes all supplied time units on {@link ChronoUnit} and + * {@link ChronoUnit#DAYS DAYS}. Other units throw an exception. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public truncatedTo(unit: java.time.temporal.TemporalUnit): java.time.LocalTime; + /** + * Returns a copy of this time with the specified amount added. + *

+ * This returns a {@code LocalTime}, based on this one, with the specified amount added. + * The amount is typically {@link Duration} but may be any other type implementing + * the {@link TemporalAmount} interface. + *

+ * The calculation is delegated to the amount object by calling + * {@link TemporalAmount#addTo(Temporal)}. The amount implementation is free + * to implement the addition in any way it wishes, however it typically + * calls back to {@link #plus(long, TemporalUnit)}. Consult the documentation + * of the amount implementation to determine if it can be successfully added. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plus(amountToAdd: java.time.temporal.TemporalAmount): java.time.LocalTime; + /** + * Returns a copy of this time with the specified amount added. + *

+ * This returns a {@code LocalTime}, based on this one, with the amount + * in terms of the unit added. If it is not possible to add the amount, because the + * unit is not supported or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoUnit} then the addition is implemented here. + * The supported fields behave as follows: + *

    + *
  • {@code NANOS} - + * Returns a {@code LocalTime} with the specified number of nanoseconds added. + * This is equivalent to {@link #plusNanos(long)}. + *
  • {@code MICROS} - + * Returns a {@code LocalTime} with the specified number of microseconds added. + * This is equivalent to {@link #plusNanos(long)} with the amount + * multiplied by 1,000. + *
  • {@code MILLIS} - + * Returns a {@code LocalTime} with the specified number of milliseconds added. + * This is equivalent to {@link #plusNanos(long)} with the amount + * multiplied by 1,000,000. + *
  • {@code SECONDS} - + * Returns a {@code LocalTime} with the specified number of seconds added. + * This is equivalent to {@link #plusSeconds(long)}. + *
  • {@code MINUTES} - + * Returns a {@code LocalTime} with the specified number of minutes added. + * This is equivalent to {@link #plusMinutes(long)}. + *
  • {@code HOURS} - + * Returns a {@code LocalTime} with the specified number of hours added. + * This is equivalent to {@link #plusHours(long)}. + *
  • {@code HALF_DAYS} - + * Returns a {@code LocalTime} with the specified number of half-days added. + * This is equivalent to {@link #plusHours(long)} with the amount + * multiplied by 12. + *
+ *

+ * All other {@code ChronoUnit} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoUnit}, then the result of this method + * is obtained by invoking {@code TemporalUnit.addTo(Temporal, long)} + * passing {@code this} as the argument. In this case, the unit determines + * whether and how to perform the addition. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plus(amountToAdd: number, unit: java.time.temporal.TemporalUnit): java.time.LocalTime; + /** + * Returns a copy of this {@code LocalTime} with the specified number of hours added. + *

+ * This adds the specified number of hours to this time, returning a new time. + * The calculation wraps around midnight. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusHours(hoursToAdd: number): java.time.LocalTime; + /** + * Returns a copy of this {@code LocalTime} with the specified number of minutes added. + *

+ * This adds the specified number of minutes to this time, returning a new time. + * The calculation wraps around midnight. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusMinutes(minutesToAdd: number): java.time.LocalTime; + /** + * Returns a copy of this {@code LocalTime} with the specified number of seconds added. + *

+ * This adds the specified number of seconds to this time, returning a new time. + * The calculation wraps around midnight. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusSeconds(secondstoAdd: number): java.time.LocalTime; + /** + * Returns a copy of this {@code LocalTime} with the specified number of nanoseconds added. + *

+ * This adds the specified number of nanoseconds to this time, returning a new time. + * The calculation wraps around midnight. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusNanos(nanosToAdd: number): java.time.LocalTime; + /** + * Returns a copy of this time with the specified amount subtracted. + *

+ * This returns a {@code LocalTime}, based on this one, with the specified amount subtracted. + * The amount is typically {@link Duration} but may be any other type implementing + * the {@link TemporalAmount} interface. + *

+ * The calculation is delegated to the amount object by calling + * {@link TemporalAmount#subtractFrom(Temporal)}. The amount implementation is free + * to implement the subtraction in any way it wishes, however it typically + * calls back to {@link #minus(long, TemporalUnit)}. Consult the documentation + * of the amount implementation to determine if it can be successfully subtracted. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minus(amountToSubtract: java.time.temporal.TemporalAmount): java.time.LocalTime; + /** + * Returns a copy of this time with the specified amount subtracted. + *

+ * This returns a {@code LocalTime}, based on this one, with the amount + * in terms of the unit subtracted. If it is not possible to subtract the amount, + * because the unit is not supported or for some other reason, an exception is thrown. + *

+ * This method is equivalent to {@link #plus(long, TemporalUnit)} with the amount negated. + * See that method for a full description of how addition, and thus subtraction, works. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minus(amountToSubtract: number, unit: java.time.temporal.TemporalUnit): java.time.LocalTime; + /** + * Returns a copy of this {@code LocalTime} with the specified number of hours subtracted. + *

+ * This subtracts the specified number of hours from this time, returning a new time. + * The calculation wraps around midnight. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusHours(hoursToSubtract: number): java.time.LocalTime; + /** + * Returns a copy of this {@code LocalTime} with the specified number of minutes subtracted. + *

+ * This subtracts the specified number of minutes from this time, returning a new time. + * The calculation wraps around midnight. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusMinutes(minutesToSubtract: number): java.time.LocalTime; + /** + * Returns a copy of this {@code LocalTime} with the specified number of seconds subtracted. + *

+ * This subtracts the specified number of seconds from this time, returning a new time. + * The calculation wraps around midnight. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusSeconds(secondsToSubtract: number): java.time.LocalTime; + /** + * Returns a copy of this {@code LocalTime} with the specified number of nanoseconds subtracted. + *

+ * This subtracts the specified number of nanoseconds from this time, returning a new time. + * The calculation wraps around midnight. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusNanos(nanosToSubtract: number): java.time.LocalTime; + /** + * Queries this time using the specified query. + *

+ * This queries this time using the specified query strategy object. + * The {@code TemporalQuery} object defines the logic to be used to + * obtain the result. Read the documentation of the query to understand + * what the result of this method will be. + *

+ * The result of this method is obtained by invoking the + * {@link TemporalQuery#queryFrom(TemporalAccessor)} method on the + * specified query passing {@code this} as the argument. + */ + // @ts-ignore + public query(query: java.time.temporal.TemporalQuery): java.lang.Object; + /** + * Adjusts the specified temporal object to have the same time as this object. + *

+ * This returns a temporal object of the same observable type as the input + * with the time changed to be the same as this. + *

+ * The adjustment is equivalent to using {@link Temporal#with(TemporalField, long)} + * passing {@link ChronoField#NANO_OF_DAY} as the field. + *

+ * In most cases, it is clearer to reverse the calling pattern by using + * {@link Temporal#with(TemporalAdjuster)}: + *

+             * // these two lines are equivalent, but the second approach is recommended
+             * temporal = thisLocalTime.adjustInto(temporal);
+             * temporal = temporal.with(thisLocalTime);
+             * 
+ *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public adjustInto(temporal: java.time.temporal.Temporal): java.time.temporal.Temporal; + /** + * Calculates the amount of time until another time in terms of the specified unit. + *

+ * This calculates the amount of time between two {@code LocalTime} + * objects in terms of a single {@code TemporalUnit}. + * The start and end points are {@code this} and the specified time. + * The result will be negative if the end is before the start. + * The {@code Temporal} passed to this method is converted to a + * {@code LocalTime} using {@link #from(TemporalAccessor)}. + * For example, the amount in hours between two times can be calculated + * using {@code startTime.until(endTime, HOURS)}. + *

+ * The calculation returns a whole number, representing the number of + * complete units between the two times. + * For example, the amount in hours between 11:30 and 13:29 will only + * be one hour as it is one minute short of two hours. + *

+ * There are two equivalent ways of using this method. + * The first is to invoke this method. + * The second is to use {@link TemporalUnit#between(Temporal, Temporal)}: + *

+             * // these two lines are equivalent
+             * amount = start.until(end, MINUTES);
+             * amount = MINUTES.between(start, end);
+             * 
+ * The choice should be made based on which makes the code more readable. + *

+ * The calculation is implemented in this method for {@link ChronoUnit}. + * The units {@code NANOS}, {@code MICROS}, {@code MILLIS}, {@code SECONDS}, + * {@code MINUTES}, {@code HOURS} and {@code HALF_DAYS} are supported. + * Other {@code ChronoUnit} values will throw an exception. + *

+ * If the unit is not a {@code ChronoUnit}, then the result of this method + * is obtained by invoking {@code TemporalUnit.between(Temporal, Temporal)} + * passing {@code this} as the first argument and the converted input temporal + * as the second argument. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public until(endExclusive: java.time.temporal.Temporal, unit: java.time.temporal.TemporalUnit): number; + /** + * Formats this time using the specified formatter. + *

+ * This time will be passed to the formatter to produce a string. + */ + // @ts-ignore + public format(formatter: java.time.format.DateTimeFormatter): string; + /** + * Combines this time with a date to create a {@code LocalDateTime}. + *

+ * This returns a {@code LocalDateTime} formed from this time at the specified date. + * All possible combinations of date and time are valid. + */ + // @ts-ignore + public atDate(date: java.time.LocalDate): java.time.LocalDateTime; + /** + * Combines this time with an offset to create an {@code OffsetTime}. + *

+ * This returns an {@code OffsetTime} formed from this time at the specified offset. + * All possible combinations of time and offset are valid. + */ + // @ts-ignore + public atOffset(offset: java.time.ZoneOffset): java.time.OffsetTime; + /** + * Extracts the time as seconds of day, + * from {@code 0} to {@code 24 * 60 * 60 - 1}. + */ + // @ts-ignore + public toSecondOfDay(): number; + /** + * Extracts the time as nanos of day, + * from {@code 0} to {@code 24 * 60 * 60 * 1,000,000,000 - 1}. + */ + // @ts-ignore + public toNanoOfDay(): number; + /** + * Compares this time to another time. + *

+ * The comparison is based on the time-line position of the local times within a day. + * It is "consistent with equals", as defined by {@link Comparable}. + */ + // @ts-ignore + public compareTo(other: java.time.LocalTime): number; + /** + * Checks if this time is after the specified time. + *

+ * The comparison is based on the time-line position of the time within a day. + */ + // @ts-ignore + public isAfter(other: java.time.LocalTime): boolean; + /** + * Checks if this time is before the specified time. + *

+ * The comparison is based on the time-line position of the time within a day. + */ + // @ts-ignore + public isBefore(other: java.time.LocalTime): boolean; + /** + * Checks if this time is equal to another time. + *

+ * The comparison is based on the time-line position of the time within a day. + *

+ * Only objects of type {@code LocalTime} are compared, other types return false. + * To compare the date of two {@code TemporalAccessor} instances, use + * {@link ChronoField#NANO_OF_DAY} as a comparator. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * A hash code for this time. + */ + // @ts-ignore + public hashCode(): number; + /** + * Outputs this time as a {@code String}, such as {@code 10:15}. + *

+ * The output will be one of the following ISO-8601 formats: + *

    + *
  • {@code HH:mm}
  • + *
  • {@code HH:mm:ss}
  • + *
  • {@code HH:mm:ss.SSS}
  • + *
  • {@code HH:mm:ss.SSSSSS}
  • + *
  • {@code HH:mm:ss.SSSSSSSSS}
  • + *
+ * The format used will be the shortest that outputs the full value of + * the time where the omitted parts are implied to be zero. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.Month.d.ts b/packages/types/dist/typings/jdk/java.time.Month.d.ts new file mode 100644 index 00000000..44d93832 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.Month.d.ts @@ -0,0 +1,269 @@ +// @ts-nocheck +declare namespace java { + namespace time { + // @ts-ignore + class Month extends java.lang.Enum { + // @ts-ignore + public static JANUARY: java.time.Month; + // @ts-ignore + public static FEBRUARY: java.time.Month; + // @ts-ignore + public static MARCH: java.time.Month; + // @ts-ignore + public static APRIL: java.time.Month; + // @ts-ignore + public static MAY: java.time.Month; + // @ts-ignore + public static JUNE: java.time.Month; + // @ts-ignore + public static JULY: java.time.Month; + // @ts-ignore + public static AUGUST: java.time.Month; + // @ts-ignore + public static SEPTEMBER: java.time.Month; + // @ts-ignore + public static OCTOBER: java.time.Month; + // @ts-ignore + public static NOVEMBER: java.time.Month; + // @ts-ignore + public static DECEMBER: java.time.Month; + // @ts-ignore + public static values(): java.time.Month[]; + // @ts-ignore + public static valueOf(name: string): java.time.Month; + /** + * Obtains an instance of {@code Month} from an {@code int} value. + *

+ * {@code Month} is an enum representing the 12 months of the year. + * This factory allows the enum to be obtained from the {@code int} value. + * The {@code int} value follows the ISO-8601 standard, from 1 (January) to 12 (December). + */ + // @ts-ignore + public static of(month: number): java.time.Month; + /** + * Obtains an instance of {@code Month} from a temporal object. + *

+ * This obtains a month based on the specified temporal. + * A {@code TemporalAccessor} represents an arbitrary set of date and time information, + * which this factory converts to an instance of {@code Month}. + *

+ * The conversion extracts the {@link ChronoField#MONTH_OF_YEAR MONTH_OF_YEAR} field. + * The extraction is only permitted if the temporal object has an ISO + * chronology, or can be converted to a {@code LocalDate}. + *

+ * This method matches the signature of the functional interface {@link TemporalQuery} + * allowing it to be used as a query via method reference, {@code Month::from}. + */ + // @ts-ignore + public static from(temporal: java.time.temporal.TemporalAccessor): java.time.Month; + /** + * Gets the month-of-year {@code int} value. + *

+ * The values are numbered following the ISO-8601 standard, + * from 1 (January) to 12 (December). + */ + // @ts-ignore + public getValue(): number; + /** + * Gets the textual representation, such as 'Jan' or 'December'. + *

+ * This returns the textual name used to identify the month-of-year, + * suitable for presentation to the user. + * The parameters control the style of the returned text and the locale. + *

+ * If no textual mapping is found then the {@link #getValue() numeric value} is returned. + */ + // @ts-ignore + public getDisplayName(style: java.time.format.TextStyle, locale: java.util.Locale): string; + /** + * Checks if the specified field is supported. + *

+ * This checks if this month-of-year can be queried for the specified field. + * If false, then calling the {@link #range(TemporalField) range} and + * {@link #get(TemporalField) get} methods will throw an exception. + *

+ * If the field is {@link ChronoField#MONTH_OF_YEAR MONTH_OF_YEAR} then + * this method returns true. + * All other {@code ChronoField} instances will return false. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.isSupportedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the field is supported is determined by the field. + */ + // @ts-ignore + public isSupported(field: java.time.temporal.TemporalField): boolean; + /** + * Gets the range of valid values for the specified field. + *

+ * The range object expresses the minimum and maximum valid values for a field. + * This month is used to enhance the accuracy of the returned range. + * If it is not possible to return the range, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is {@link ChronoField#MONTH_OF_YEAR MONTH_OF_YEAR} then the + * range of the month-of-year, from 1 to 12, will be returned. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.rangeRefinedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the range can be obtained is determined by the field. + */ + // @ts-ignore + public range(field: java.time.temporal.TemporalField): java.time.temporal.ValueRange; + /** + * Gets the value of the specified field from this month-of-year as an {@code int}. + *

+ * This queries this month for the value of the specified field. + * The returned value will always be within the valid range of values for the field. + * If it is not possible to return the value, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is {@link ChronoField#MONTH_OF_YEAR MONTH_OF_YEAR} then the + * value of the month-of-year, from 1 to 12, will be returned. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)} + * passing {@code this} as the argument. Whether the value can be obtained, + * and what the value represents, is determined by the field. + */ + // @ts-ignore + public get(field: java.time.temporal.TemporalField): number; + /** + * Gets the value of the specified field from this month-of-year as a {@code long}. + *

+ * This queries this month for the value of the specified field. + * If it is not possible to return the value, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is {@link ChronoField#MONTH_OF_YEAR MONTH_OF_YEAR} then the + * value of the month-of-year, from 1 to 12, will be returned. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)} + * passing {@code this} as the argument. Whether the value can be obtained, + * and what the value represents, is determined by the field. + */ + // @ts-ignore + public getLong(field: java.time.temporal.TemporalField): number; + /** + * Returns the month-of-year that is the specified number of quarters after this one. + *

+ * The calculation rolls around the end of the year from December to January. + * The specified period may be negative. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plus(months: number): java.time.Month; + /** + * Returns the month-of-year that is the specified number of months before this one. + *

+ * The calculation rolls around the start of the year from January to December. + * The specified period may be negative. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minus(months: number): java.time.Month; + /** + * Gets the length of this month in days. + *

+ * This takes a flag to determine whether to return the length for a leap year or not. + *

+ * February has 28 days in a standard year and 29 days in a leap year. + * April, June, September and November have 30 days. + * All other months have 31 days. + */ + // @ts-ignore + public length(leapYear: boolean): number; + /** + * Gets the minimum length of this month in days. + *

+ * February has a minimum length of 28 days. + * April, June, September and November have 30 days. + * All other months have 31 days. + */ + // @ts-ignore + public minLength(): number; + /** + * Gets the maximum length of this month in days. + *

+ * February has a maximum length of 29 days. + * April, June, September and November have 30 days. + * All other months have 31 days. + */ + // @ts-ignore + public maxLength(): number; + /** + * Gets the day-of-year corresponding to the first day of this month. + *

+ * This returns the day-of-year that this month begins on, using the leap + * year flag to determine the length of February. + */ + // @ts-ignore + public firstDayOfYear(leapYear: boolean): number; + /** + * Gets the month corresponding to the first month of this quarter. + *

+ * The year can be divided into four quarters. + * This method returns the first month of the quarter for the base month. + * January, February and March return January. + * April, May and June return April. + * July, August and September return July. + * October, November and December return October. + */ + // @ts-ignore + public firstMonthOfQuarter(): java.time.Month; + /** + * Queries this month-of-year using the specified query. + *

+ * This queries this month-of-year using the specified query strategy object. + * The {@code TemporalQuery} object defines the logic to be used to + * obtain the result. Read the documentation of the query to understand + * what the result of this method will be. + *

+ * The result of this method is obtained by invoking the + * {@link TemporalQuery#queryFrom(TemporalAccessor)} method on the + * specified query passing {@code this} as the argument. + */ + // @ts-ignore + public query(query: java.time.temporal.TemporalQuery): java.lang.Object; + /** + * Adjusts the specified temporal object to have this month-of-year. + *

+ * This returns a temporal object of the same observable type as the input + * with the month-of-year changed to be the same as this. + *

+ * The adjustment is equivalent to using {@link Temporal#with(TemporalField, long)} + * passing {@link ChronoField#MONTH_OF_YEAR} as the field. + * If the specified temporal object does not use the ISO calendar system then + * a {@code DateTimeException} is thrown. + *

+ * In most cases, it is clearer to reverse the calling pattern by using + * {@link Temporal#with(TemporalAdjuster)}: + *

+             * // these two lines are equivalent, but the second approach is recommended
+             * temporal = thisMonth.adjustInto(temporal);
+             * temporal = temporal.with(thisMonth);
+             * 
+ *

+ * For example, given a date in May, the following are output: + *

+             * dateInMay.with(JANUARY);    // four months earlier
+             * dateInMay.with(APRIL);      // one months earlier
+             * dateInMay.with(MAY);        // same date
+             * dateInMay.with(JUNE);       // one month later
+             * dateInMay.with(DECEMBER);   // seven months later
+             * 
+ *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public adjustInto(temporal: java.time.temporal.Temporal): java.time.temporal.Temporal; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.MonthDay.d.ts b/packages/types/dist/typings/jdk/java.time.MonthDay.d.ts new file mode 100644 index 00000000..8386a018 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.MonthDay.d.ts @@ -0,0 +1,336 @@ +// @ts-nocheck +declare namespace java { + namespace time { + // @ts-ignore + class MonthDay extends java.lang.Object { + /** + * Obtains the current month-day from the system clock in the default time-zone. + *

+ * This will query the {@link Clock#systemDefaultZone() system clock} in the default + * time-zone to obtain the current month-day. + *

+ * Using this method will prevent the ability to use an alternate clock for testing + * because the clock is hard-coded. + */ + // @ts-ignore + public static now(): java.time.MonthDay; + /** + * Obtains the current month-day from the system clock in the specified time-zone. + *

+ * This will query the {@link Clock#system(ZoneId) system clock} to obtain the current month-day. + * Specifying the time-zone avoids dependence on the default time-zone. + *

+ * Using this method will prevent the ability to use an alternate clock for testing + * because the clock is hard-coded. + */ + // @ts-ignore + public static now(zone: java.time.ZoneId): java.time.MonthDay; + /** + * Obtains the current month-day from the specified clock. + *

+ * This will query the specified clock to obtain the current month-day. + * Using this method allows the use of an alternate clock for testing. + * The alternate clock may be introduced using {@link Clock dependency injection}. + */ + // @ts-ignore + public static now(clock: java.time.Clock): java.time.MonthDay; + /** + * Obtains an instance of {@code MonthDay}. + *

+ * The day-of-month must be valid for the month within a leap year. + * Hence, for February, day 29 is valid. + *

+ * For example, passing in April and day 31 will throw an exception, as + * there can never be April 31st in any year. By contrast, passing in + * February 29th is permitted, as that month-day can sometimes be valid. + */ + // @ts-ignore + public static of(month: java.time.Month, dayOfMonth: number): java.time.MonthDay; + /** + * Obtains an instance of {@code MonthDay}. + *

+ * The day-of-month must be valid for the month within a leap year. + * Hence, for month 2 (February), day 29 is valid. + *

+ * For example, passing in month 4 (April) and day 31 will throw an exception, as + * there can never be April 31st in any year. By contrast, passing in + * February 29th is permitted, as that month-day can sometimes be valid. + */ + // @ts-ignore + public static of(month: number, dayOfMonth: number): java.time.MonthDay; + /** + * Obtains an instance of {@code MonthDay} from a temporal object. + *

+ * This obtains a month-day based on the specified temporal. + * A {@code TemporalAccessor} represents an arbitrary set of date and time information, + * which this factory converts to an instance of {@code MonthDay}. + *

+ * The conversion extracts the {@link ChronoField#MONTH_OF_YEAR MONTH_OF_YEAR} and + * {@link ChronoField#DAY_OF_MONTH DAY_OF_MONTH} fields. + * The extraction is only permitted if the temporal object has an ISO + * chronology, or can be converted to a {@code LocalDate}. + *

+ * This method matches the signature of the functional interface {@link TemporalQuery} + * allowing it to be used as a query via method reference, {@code MonthDay::from}. + */ + // @ts-ignore + public static from(temporal: java.time.temporal.TemporalAccessor): java.time.MonthDay; + /** + * Obtains an instance of {@code MonthDay} from a text string such as {@code --12-03}. + *

+ * The string must represent a valid month-day. + * The format is {@code --MM-dd}. + */ + // @ts-ignore + public static parse(text: java.lang.CharSequence): java.time.MonthDay; + /** + * Obtains an instance of {@code MonthDay} from a text string using a specific formatter. + *

+ * The text is parsed using the formatter, returning a month-day. + */ + // @ts-ignore + public static parse(text: java.lang.CharSequence, formatter: java.time.format.DateTimeFormatter): java.time.MonthDay; + /** + * Checks if the specified field is supported. + *

+ * This checks if this month-day can be queried for the specified field. + * If false, then calling the {@link #range(TemporalField) range} and + * {@link #get(TemporalField) get} methods will throw an exception. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The supported fields are: + *

    + *
  • {@code MONTH_OF_YEAR} + *
  • {@code YEAR} + *
+ * All other {@code ChronoField} instances will return false. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.isSupportedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the field is supported is determined by the field. + */ + // @ts-ignore + public isSupported(field: java.time.temporal.TemporalField): boolean; + /** + * Gets the range of valid values for the specified field. + *

+ * The range object expresses the minimum and maximum valid values for a field. + * This month-day is used to enhance the accuracy of the returned range. + * If it is not possible to return the range, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@link #isSupported(TemporalField) supported fields} will return + * appropriate range instances. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.rangeRefinedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the range can be obtained is determined by the field. + */ + // @ts-ignore + public range(field: java.time.temporal.TemporalField): java.time.temporal.ValueRange; + /** + * Gets the value of the specified field from this month-day as an {@code int}. + *

+ * This queries this month-day for the value of the specified field. + * The returned value will always be within the valid range of values for the field. + * If it is not possible to return the value, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@link #isSupported(TemporalField) supported fields} will return valid + * values based on this month-day. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)} + * passing {@code this} as the argument. Whether the value can be obtained, + * and what the value represents, is determined by the field. + */ + // @ts-ignore + public get(field: java.time.temporal.TemporalField): number; + /** + * Gets the value of the specified field from this month-day as a {@code long}. + *

+ * This queries this month-day for the value of the specified field. + * If it is not possible to return the value, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@link #isSupported(TemporalField) supported fields} will return valid + * values based on this month-day. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)} + * passing {@code this} as the argument. Whether the value can be obtained, + * and what the value represents, is determined by the field. + */ + // @ts-ignore + public getLong(field: java.time.temporal.TemporalField): number; + /** + * Gets the month-of-year field from 1 to 12. + *

+ * This method returns the month as an {@code int} from 1 to 12. + * Application code is frequently clearer if the enum {@link Month} + * is used by calling {@link #getMonth()}. + */ + // @ts-ignore + public getMonthValue(): number; + /** + * Gets the month-of-year field using the {@code Month} enum. + *

+ * This method returns the enum {@link Month} for the month. + * This avoids confusion as to what {@code int} values mean. + * If you need access to the primitive {@code int} value then the enum + * provides the {@link Month#getValue() int value}. + */ + // @ts-ignore + public getMonth(): java.time.Month; + /** + * Gets the day-of-month field. + *

+ * This method returns the primitive {@code int} value for the day-of-month. + */ + // @ts-ignore + public getDayOfMonth(): number; + /** + * Checks if the year is valid for this month-day. + *

+ * This method checks whether this month and day and the input year form + * a valid date. This can only return false for February 29th. + */ + // @ts-ignore + public isValidYear(year: number): boolean; + /** + * Returns a copy of this {@code MonthDay} with the month-of-year altered. + *

+ * This returns a month-day with the specified month. + * If the day-of-month is invalid for the specified month, the day will + * be adjusted to the last valid day-of-month. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withMonth(month: number): java.time.MonthDay; + /** + * Returns a copy of this {@code MonthDay} with the month-of-year altered. + *

+ * This returns a month-day with the specified month. + * If the day-of-month is invalid for the specified month, the day will + * be adjusted to the last valid day-of-month. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public with(month: java.time.Month): java.time.MonthDay; + /** + * Returns a copy of this {@code MonthDay} with the day-of-month altered. + *

+ * This returns a month-day with the specified day-of-month. + * If the day-of-month is invalid for the month, an exception is thrown. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withDayOfMonth(dayOfMonth: number): java.time.MonthDay; + /** + * Queries this month-day using the specified query. + *

+ * This queries this month-day using the specified query strategy object. + * The {@code TemporalQuery} object defines the logic to be used to + * obtain the result. Read the documentation of the query to understand + * what the result of this method will be. + *

+ * The result of this method is obtained by invoking the + * {@link TemporalQuery#queryFrom(TemporalAccessor)} method on the + * specified query passing {@code this} as the argument. + */ + // @ts-ignore + public query(query: java.time.temporal.TemporalQuery): java.lang.Object; + /** + * Adjusts the specified temporal object to have this month-day. + *

+ * This returns a temporal object of the same observable type as the input + * with the month and day-of-month changed to be the same as this. + *

+ * The adjustment is equivalent to using {@link Temporal#with(TemporalField, long)} + * twice, passing {@link ChronoField#MONTH_OF_YEAR} and + * {@link ChronoField#DAY_OF_MONTH} as the fields. + * If the specified temporal object does not use the ISO calendar system then + * a {@code DateTimeException} is thrown. + *

+ * In most cases, it is clearer to reverse the calling pattern by using + * {@link Temporal#with(TemporalAdjuster)}: + *

+             * // these two lines are equivalent, but the second approach is recommended
+             * temporal = thisMonthDay.adjustInto(temporal);
+             * temporal = temporal.with(thisMonthDay);
+             * 
+ *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public adjustInto(temporal: java.time.temporal.Temporal): java.time.temporal.Temporal; + /** + * Formats this month-day using the specified formatter. + *

+ * This month-day will be passed to the formatter to produce a string. + */ + // @ts-ignore + public format(formatter: java.time.format.DateTimeFormatter): string; + /** + * Combines this month-day with a year to create a {@code LocalDate}. + *

+ * This returns a {@code LocalDate} formed from this month-day and the specified year. + *

+ * A month-day of February 29th will be adjusted to February 28th in the resulting + * date if the year is not a leap year. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public atYear(year: number): java.time.LocalDate; + /** + * Compares this month-day to another month-day. + *

+ * The comparison is based first on value of the month, then on the value of the day. + * It is "consistent with equals", as defined by {@link Comparable}. + */ + // @ts-ignore + public compareTo(other: java.time.MonthDay): number; + /** + * Checks if this month-day is after the specified month-day. + */ + // @ts-ignore + public isAfter(other: java.time.MonthDay): boolean; + /** + * Checks if this month-day is before the specified month-day. + */ + // @ts-ignore + public isBefore(other: java.time.MonthDay): boolean; + /** + * Checks if this month-day is equal to another month-day. + *

+ * The comparison is based on the time-line position of the month-day within a year. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * A hash code for this month-day. + */ + // @ts-ignore + public hashCode(): number; + /** + * Outputs this month-day as a {@code String}, such as {@code --12-03}. + *

+ * The output will be in the format {@code --MM-dd}: + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.OffsetDateTime.d.ts b/packages/types/dist/typings/jdk/java.time.OffsetDateTime.d.ts new file mode 100644 index 00000000..c1732691 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.OffsetDateTime.d.ts @@ -0,0 +1,1078 @@ +// @ts-nocheck +declare namespace java { + namespace time { + // @ts-ignore + class OffsetDateTime extends java.lang.Object { + // @ts-ignore + public static MIN: java.time.OffsetDateTime; + // @ts-ignore + public static MAX: java.time.OffsetDateTime; + /** + * Gets a comparator that compares two {@code OffsetDateTime} instances + * based solely on the instant. + *

+ * This method differs from the comparison in {@link #compareTo} in that it + * only compares the underlying instant. + */ + // @ts-ignore + public static timeLineOrder(): java.util.Comparator; + /** + * Obtains the current date-time from the system clock in the default time-zone. + *

+ * This will query the {@link Clock#systemDefaultZone() system clock} in the default + * time-zone to obtain the current date-time. + * The offset will be calculated from the time-zone in the clock. + *

+ * Using this method will prevent the ability to use an alternate clock for testing + * because the clock is hard-coded. + */ + // @ts-ignore + public static now(): java.time.OffsetDateTime; + /** + * Obtains the current date-time from the system clock in the specified time-zone. + *

+ * This will query the {@link Clock#system(ZoneId) system clock} to obtain the current date-time. + * Specifying the time-zone avoids dependence on the default time-zone. + * The offset will be calculated from the specified time-zone. + *

+ * Using this method will prevent the ability to use an alternate clock for testing + * because the clock is hard-coded. + */ + // @ts-ignore + public static now(zone: java.time.ZoneId): java.time.OffsetDateTime; + /** + * Obtains the current date-time from the specified clock. + *

+ * This will query the specified clock to obtain the current date-time. + * The offset will be calculated from the time-zone in the clock. + *

+ * Using this method allows the use of an alternate clock for testing. + * The alternate clock may be introduced using {@link Clock dependency injection}. + */ + // @ts-ignore + public static now(clock: java.time.Clock): java.time.OffsetDateTime; + /** + * Obtains an instance of {@code OffsetDateTime} from a date, time and offset. + *

+ * This creates an offset date-time with the specified local date, time and offset. + */ + // @ts-ignore + public static of(date: java.time.LocalDate, time: java.time.LocalTime, offset: java.time.ZoneOffset): java.time.OffsetDateTime; + /** + * Obtains an instance of {@code OffsetDateTime} from a date-time and offset. + *

+ * This creates an offset date-time with the specified local date-time and offset. + */ + // @ts-ignore + public static of(dateTime: java.time.LocalDateTime, offset: java.time.ZoneOffset): java.time.OffsetDateTime; + /** + * Obtains an instance of {@code OffsetDateTime} from a year, month, day, + * hour, minute, second, nanosecond and offset. + *

+ * This creates an offset date-time with the seven specified fields. + *

+ * This method exists primarily for writing test cases. + * Non test-code will typically use other methods to create an offset time. + * {@code LocalDateTime} has five additional convenience variants of the + * equivalent factory method taking fewer arguments. + * They are not provided here to reduce the footprint of the API. + */ + // @ts-ignore + public static of(year: number, month: number, dayOfMonth: number, hour: number, minute: number, second: number, nanoOfSecond: number, offset: java.time.ZoneOffset): java.time.OffsetDateTime; + /** + * Obtains an instance of {@code OffsetDateTime} from an {@code Instant} and zone ID. + *

+ * This creates an offset date-time with the same instant as that specified. + * Finding the offset from UTC/Greenwich is simple as there is only one valid + * offset for each instant. + */ + // @ts-ignore + public static ofInstant(instant: java.time.Instant, zone: java.time.ZoneId): java.time.OffsetDateTime; + /** + * Obtains an instance of {@code OffsetDateTime} from a temporal object. + *

+ * This obtains an offset date-time based on the specified temporal. + * A {@code TemporalAccessor} represents an arbitrary set of date and time information, + * which this factory converts to an instance of {@code OffsetDateTime}. + *

+ * The conversion will first obtain a {@code ZoneOffset} from the temporal object. + * It will then try to obtain a {@code LocalDateTime}, falling back to an {@code Instant} if necessary. + * The result will be the combination of {@code ZoneOffset} with either + * with {@code LocalDateTime} or {@code Instant}. + * Implementations are permitted to perform optimizations such as accessing + * those fields that are equivalent to the relevant objects. + *

+ * This method matches the signature of the functional interface {@link TemporalQuery} + * allowing it to be used as a query via method reference, {@code OffsetDateTime::from}. + */ + // @ts-ignore + public static from(temporal: java.time.temporal.TemporalAccessor): java.time.OffsetDateTime; + /** + * Obtains an instance of {@code OffsetDateTime} from a text string + * such as {@code 2007-12-03T10:15:30+01:00}. + *

+ * The string must represent a valid date-time and is parsed using + * {@link java.time.format.DateTimeFormatter#ISO_OFFSET_DATE_TIME}. + */ + // @ts-ignore + public static parse(text: java.lang.CharSequence): java.time.OffsetDateTime; + /** + * Obtains an instance of {@code OffsetDateTime} from a text string using a specific formatter. + *

+ * The text is parsed using the formatter, returning a date-time. + */ + // @ts-ignore + public static parse(text: java.lang.CharSequence, formatter: java.time.format.DateTimeFormatter): java.time.OffsetDateTime; + /** + * Checks if the specified field is supported. + *

+ * This checks if this date-time can be queried for the specified field. + * If false, then calling the {@link #range(TemporalField) range}, + * {@link #get(TemporalField) get} and {@link #with(TemporalField, long)} + * methods will throw an exception. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The supported fields are: + *

    + *
  • {@code NANO_OF_SECOND} + *
  • {@code NANO_OF_DAY} + *
  • {@code MICRO_OF_SECOND} + *
  • {@code MICRO_OF_DAY} + *
  • {@code MILLI_OF_SECOND} + *
  • {@code MILLI_OF_DAY} + *
  • {@code SECOND_OF_MINUTE} + *
  • {@code SECOND_OF_DAY} + *
  • {@code MINUTE_OF_HOUR} + *
  • {@code MINUTE_OF_DAY} + *
  • {@code HOUR_OF_AMPM} + *
  • {@code CLOCK_HOUR_OF_AMPM} + *
  • {@code HOUR_OF_DAY} + *
  • {@code CLOCK_HOUR_OF_DAY} + *
  • {@code AMPM_OF_DAY} + *
  • {@code DAY_OF_WEEK} + *
  • {@code ALIGNED_DAY_OF_WEEK_IN_MONTH} + *
  • {@code ALIGNED_DAY_OF_WEEK_IN_YEAR} + *
  • {@code DAY_OF_MONTH} + *
  • {@code DAY_OF_YEAR} + *
  • {@code EPOCH_DAY} + *
  • {@code ALIGNED_WEEK_OF_MONTH} + *
  • {@code ALIGNED_WEEK_OF_YEAR} + *
  • {@code MONTH_OF_YEAR} + *
  • {@code PROLEPTIC_MONTH} + *
  • {@code YEAR_OF_ERA} + *
  • {@code YEAR} + *
  • {@code ERA} + *
  • {@code INSTANT_SECONDS} + *
  • {@code OFFSET_SECONDS} + *
+ * All other {@code ChronoField} instances will return false. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.isSupportedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the field is supported is determined by the field. + */ + // @ts-ignore + public isSupported(field: java.time.temporal.TemporalField): boolean; + /** + * Checks if the specified unit is supported. + *

+ * This checks if the specified unit can be added to, or subtracted from, this date-time. + * If false, then calling the {@link #plus(long, TemporalUnit)} and + * {@link #minus(long, TemporalUnit) minus} methods will throw an exception. + *

+ * If the unit is a {@link ChronoUnit} then the query is implemented here. + * The supported units are: + *

    + *
  • {@code NANOS} + *
  • {@code MICROS} + *
  • {@code MILLIS} + *
  • {@code SECONDS} + *
  • {@code MINUTES} + *
  • {@code HOURS} + *
  • {@code HALF_DAYS} + *
  • {@code DAYS} + *
  • {@code WEEKS} + *
  • {@code MONTHS} + *
  • {@code YEARS} + *
  • {@code DECADES} + *
  • {@code CENTURIES} + *
  • {@code MILLENNIA} + *
  • {@code ERAS} + *
+ * All other {@code ChronoUnit} instances will return false. + *

+ * If the unit is not a {@code ChronoUnit}, then the result of this method + * is obtained by invoking {@code TemporalUnit.isSupportedBy(Temporal)} + * passing {@code this} as the argument. + * Whether the unit is supported is determined by the unit. + */ + // @ts-ignore + public isSupported(unit: java.time.temporal.TemporalUnit): boolean; + /** + * Gets the range of valid values for the specified field. + *

+ * The range object expresses the minimum and maximum valid values for a field. + * This date-time is used to enhance the accuracy of the returned range. + * If it is not possible to return the range, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@link #isSupported(TemporalField) supported fields} will return + * appropriate range instances. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.rangeRefinedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the range can be obtained is determined by the field. + */ + // @ts-ignore + public range(field: java.time.temporal.TemporalField): java.time.temporal.ValueRange; + /** + * Gets the value of the specified field from this date-time as an {@code int}. + *

+ * This queries this date-time for the value of the specified field. + * The returned value will always be within the valid range of values for the field. + * If it is not possible to return the value, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@link #isSupported(TemporalField) supported fields} will return valid + * values based on this date-time, except {@code NANO_OF_DAY}, {@code MICRO_OF_DAY}, + * {@code EPOCH_DAY}, {@code PROLEPTIC_MONTH} and {@code INSTANT_SECONDS} which are too + * large to fit in an {@code int} and throw a {@code DateTimeException}. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)} + * passing {@code this} as the argument. Whether the value can be obtained, + * and what the value represents, is determined by the field. + */ + // @ts-ignore + public get(field: java.time.temporal.TemporalField): number; + /** + * Gets the value of the specified field from this date-time as a {@code long}. + *

+ * This queries this date-time for the value of the specified field. + * If it is not possible to return the value, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@link #isSupported(TemporalField) supported fields} will return valid + * values based on this date-time. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)} + * passing {@code this} as the argument. Whether the value can be obtained, + * and what the value represents, is determined by the field. + */ + // @ts-ignore + public getLong(field: java.time.temporal.TemporalField): number; + /** + * Gets the zone offset, such as '+01:00'. + *

+ * This is the offset of the local date-time from UTC/Greenwich. + */ + // @ts-ignore + public getOffset(): java.time.ZoneOffset; + /** + * Returns a copy of this {@code OffsetDateTime} with the specified offset ensuring + * that the result has the same local date-time. + *

+ * This method returns an object with the same {@code LocalDateTime} and the specified {@code ZoneOffset}. + * No calculation is needed or performed. + * For example, if this time represents {@code 2007-12-03T10:30+02:00} and the offset specified is + * {@code +03:00}, then this method will return {@code 2007-12-03T10:30+03:00}. + *

+ * To take into account the difference between the offsets, and adjust the time fields, + * use {@link #withOffsetSameInstant}. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withOffsetSameLocal(offset: java.time.ZoneOffset): java.time.OffsetDateTime; + /** + * Returns a copy of this {@code OffsetDateTime} with the specified offset ensuring + * that the result is at the same instant. + *

+ * This method returns an object with the specified {@code ZoneOffset} and a {@code LocalDateTime} + * adjusted by the difference between the two offsets. + * This will result in the old and new objects representing the same instant. + * This is useful for finding the local time in a different offset. + * For example, if this time represents {@code 2007-12-03T10:30+02:00} and the offset specified is + * {@code +03:00}, then this method will return {@code 2007-12-03T11:30+03:00}. + *

+ * To change the offset without adjusting the local time use {@link #withOffsetSameLocal}. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withOffsetSameInstant(offset: java.time.ZoneOffset): java.time.OffsetDateTime; + /** + * Gets the {@code LocalDateTime} part of this date-time. + *

+ * This returns a {@code LocalDateTime} with the same year, month, day and time + * as this date-time. + */ + // @ts-ignore + public toLocalDateTime(): java.time.LocalDateTime; + /** + * Gets the {@code LocalDate} part of this date-time. + *

+ * This returns a {@code LocalDate} with the same year, month and day + * as this date-time. + */ + // @ts-ignore + public toLocalDate(): java.time.LocalDate; + /** + * Gets the year field. + *

+ * This method returns the primitive {@code int} value for the year. + *

+ * The year returned by this method is proleptic as per {@code get(YEAR)}. + * To obtain the year-of-era, use {@code get(YEAR_OF_ERA)}. + */ + // @ts-ignore + public getYear(): number; + /** + * Gets the month-of-year field from 1 to 12. + *

+ * This method returns the month as an {@code int} from 1 to 12. + * Application code is frequently clearer if the enum {@link Month} + * is used by calling {@link #getMonth()}. + */ + // @ts-ignore + public getMonthValue(): number; + /** + * Gets the month-of-year field using the {@code Month} enum. + *

+ * This method returns the enum {@link Month} for the month. + * This avoids confusion as to what {@code int} values mean. + * If you need access to the primitive {@code int} value then the enum + * provides the {@link Month#getValue() int value}. + */ + // @ts-ignore + public getMonth(): java.time.Month; + /** + * Gets the day-of-month field. + *

+ * This method returns the primitive {@code int} value for the day-of-month. + */ + // @ts-ignore + public getDayOfMonth(): number; + /** + * Gets the day-of-year field. + *

+ * This method returns the primitive {@code int} value for the day-of-year. + */ + // @ts-ignore + public getDayOfYear(): number; + /** + * Gets the day-of-week field, which is an enum {@code DayOfWeek}. + *

+ * This method returns the enum {@link DayOfWeek} for the day-of-week. + * This avoids confusion as to what {@code int} values mean. + * If you need access to the primitive {@code int} value then the enum + * provides the {@link DayOfWeek#getValue() int value}. + *

+ * Additional information can be obtained from the {@code DayOfWeek}. + * This includes textual names of the values. + */ + // @ts-ignore + public getDayOfWeek(): java.time.DayOfWeek; + /** + * Gets the {@code LocalTime} part of this date-time. + *

+ * This returns a {@code LocalTime} with the same hour, minute, second and + * nanosecond as this date-time. + */ + // @ts-ignore + public toLocalTime(): java.time.LocalTime; + /** + * Gets the hour-of-day field. + */ + // @ts-ignore + public getHour(): number; + /** + * Gets the minute-of-hour field. + */ + // @ts-ignore + public getMinute(): number; + /** + * Gets the second-of-minute field. + */ + // @ts-ignore + public getSecond(): number; + /** + * Gets the nano-of-second field. + */ + // @ts-ignore + public getNano(): number; + /** + * Returns an adjusted copy of this date-time. + *

+ * This returns an {@code OffsetDateTime}, based on this one, with the date-time adjusted. + * The adjustment takes place using the specified adjuster strategy object. + * Read the documentation of the adjuster to understand what adjustment will be made. + *

+ * A simple adjuster might simply set the one of the fields, such as the year field. + * A more complex adjuster might set the date to the last day of the month. + * A selection of common adjustments is provided in + * {@link java.time.temporal.TemporalAdjusters TemporalAdjusters}. + * These include finding the "last day of the month" and "next Wednesday". + * Key date-time classes also implement the {@code TemporalAdjuster} interface, + * such as {@link Month} and {@link java.time.MonthDay MonthDay}. + * The adjuster is responsible for handling special cases, such as the varying + * lengths of month and leap years. + *

+ * For example this code returns a date on the last day of July: + *

+             * import static java.time.Month.*;
+             * import static java.time.temporal.TemporalAdjusters.*;
+             * result = offsetDateTime.with(JULY).with(lastDayOfMonth());
+             * 
+ *

+ * The classes {@link LocalDate}, {@link LocalTime} and {@link ZoneOffset} implement + * {@code TemporalAdjuster}, thus this method can be used to change the date, time or offset: + *

+             * result = offsetDateTime.with(date);
+             * result = offsetDateTime.with(time);
+             * result = offsetDateTime.with(offset);
+             * 
+ *

+ * The result of this method is obtained by invoking the + * {@link TemporalAdjuster#adjustInto(Temporal)} method on the + * specified adjuster passing {@code this} as the argument. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public with(adjuster: java.time.temporal.TemporalAdjuster): java.time.OffsetDateTime; + /** + * Returns a copy of this date-time with the specified field set to a new value. + *

+ * This returns an {@code OffsetDateTime}, based on this one, with the value + * for the specified field changed. + * This can be used to change any supported field, such as the year, month or day-of-month. + * If it is not possible to set the value, because the field is not supported or for + * some other reason, an exception is thrown. + *

+ * In some cases, changing the specified field can cause the resulting date-time to become invalid, + * such as changing the month from 31st January to February would make the day-of-month invalid. + * In cases like this, the field is responsible for resolving the date. Typically it will choose + * the previous valid date, which would be the last valid day of February in this example. + *

+ * If the field is a {@link ChronoField} then the adjustment is implemented here. + *

+ * The {@code INSTANT_SECONDS} field will return a date-time with the specified instant. + * The offset and nano-of-second are unchanged. + * If the new instant value is outside the valid range then a {@code DateTimeException} will be thrown. + *

+ * The {@code OFFSET_SECONDS} field will return a date-time with the specified offset. + * The local date-time is unaltered. If the new offset value is outside the valid range + * then a {@code DateTimeException} will be thrown. + *

+ * The other {@link #isSupported(TemporalField) supported fields} will behave as per + * the matching method on {@link LocalDateTime#with(TemporalField, long) LocalDateTime}. + * In this case, the offset is not part of the calculation and will be unchanged. + *

+ * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.adjustInto(Temporal, long)} + * passing {@code this} as the argument. In this case, the field determines + * whether and how to adjust the instant. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public with(field: java.time.temporal.TemporalField, newValue: number): java.time.OffsetDateTime; + /** + * Returns a copy of this {@code OffsetDateTime} with the year altered. + *

+ * The time and offset do not affect the calculation and will be the same in the result. + * If the day-of-month is invalid for the year, it will be changed to the last valid day of the month. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withYear(year: number): java.time.OffsetDateTime; + /** + * Returns a copy of this {@code OffsetDateTime} with the month-of-year altered. + *

+ * The time and offset do not affect the calculation and will be the same in the result. + * If the day-of-month is invalid for the year, it will be changed to the last valid day of the month. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withMonth(month: number): java.time.OffsetDateTime; + /** + * Returns a copy of this {@code OffsetDateTime} with the day-of-month altered. + *

+ * If the resulting {@code OffsetDateTime} is invalid, an exception is thrown. + * The time and offset do not affect the calculation and will be the same in the result. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withDayOfMonth(dayOfMonth: number): java.time.OffsetDateTime; + /** + * Returns a copy of this {@code OffsetDateTime} with the day-of-year altered. + *

+ * The time and offset do not affect the calculation and will be the same in the result. + * If the resulting {@code OffsetDateTime} is invalid, an exception is thrown. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withDayOfYear(dayOfYear: number): java.time.OffsetDateTime; + /** + * Returns a copy of this {@code OffsetDateTime} with the hour-of-day altered. + *

+ * The date and offset do not affect the calculation and will be the same in the result. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withHour(hour: number): java.time.OffsetDateTime; + /** + * Returns a copy of this {@code OffsetDateTime} with the minute-of-hour altered. + *

+ * The date and offset do not affect the calculation and will be the same in the result. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withMinute(minute: number): java.time.OffsetDateTime; + /** + * Returns a copy of this {@code OffsetDateTime} with the second-of-minute altered. + *

+ * The date and offset do not affect the calculation and will be the same in the result. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withSecond(second: number): java.time.OffsetDateTime; + /** + * Returns a copy of this {@code OffsetDateTime} with the nano-of-second altered. + *

+ * The date and offset do not affect the calculation and will be the same in the result. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withNano(nanoOfSecond: number): java.time.OffsetDateTime; + /** + * Returns a copy of this {@code OffsetDateTime} with the time truncated. + *

+ * Truncation returns a copy of the original date-time with fields + * smaller than the specified unit set to zero. + * For example, truncating with the {@link ChronoUnit#MINUTES minutes} unit + * will set the second-of-minute and nano-of-second field to zero. + *

+ * The unit must have a {@linkplain TemporalUnit#getDuration() duration} + * that divides into the length of a standard day without remainder. + * This includes all supplied time units on {@link ChronoUnit} and + * {@link ChronoUnit#DAYS DAYS}. Other units throw an exception. + *

+ * The offset does not affect the calculation and will be the same in the result. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public truncatedTo(unit: java.time.temporal.TemporalUnit): java.time.OffsetDateTime; + /** + * Returns a copy of this date-time with the specified amount added. + *

+ * This returns an {@code OffsetDateTime}, based on this one, with the specified amount added. + * The amount is typically {@link Period} or {@link Duration} but may be + * any other type implementing the {@link TemporalAmount} interface. + *

+ * The calculation is delegated to the amount object by calling + * {@link TemporalAmount#addTo(Temporal)}. The amount implementation is free + * to implement the addition in any way it wishes, however it typically + * calls back to {@link #plus(long, TemporalUnit)}. Consult the documentation + * of the amount implementation to determine if it can be successfully added. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plus(amountToAdd: java.time.temporal.TemporalAmount): java.time.OffsetDateTime; + /** + * Returns a copy of this date-time with the specified amount added. + *

+ * This returns an {@code OffsetDateTime}, based on this one, with the amount + * in terms of the unit added. If it is not possible to add the amount, because the + * unit is not supported or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoUnit} then the addition is implemented by + * {@link LocalDateTime#plus(long, TemporalUnit)}. + * The offset is not part of the calculation and will be unchanged in the result. + *

+ * If the field is not a {@code ChronoUnit}, then the result of this method + * is obtained by invoking {@code TemporalUnit.addTo(Temporal, long)} + * passing {@code this} as the argument. In this case, the unit determines + * whether and how to perform the addition. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plus(amountToAdd: number, unit: java.time.temporal.TemporalUnit): java.time.OffsetDateTime; + /** + * Returns a copy of this {@code OffsetDateTime} with the specified number of years added. + *

+ * This method adds the specified amount to the years field in three steps: + *

    + *
  1. Add the input years to the year field
  2. + *
  3. Check if the resulting date would be invalid
  4. + *
  5. Adjust the day-of-month to the last valid day if necessary
  6. + *
+ *

+ * For example, 2008-02-29 (leap year) plus one year would result in the + * invalid date 2009-02-29 (standard year). Instead of returning an invalid + * result, the last valid day of the month, 2009-02-28, is selected instead. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusYears(years: number): java.time.OffsetDateTime; + /** + * Returns a copy of this {@code OffsetDateTime} with the specified number of months added. + *

+ * This method adds the specified amount to the months field in three steps: + *

    + *
  1. Add the input months to the month-of-year field
  2. + *
  3. Check if the resulting date would be invalid
  4. + *
  5. Adjust the day-of-month to the last valid day if necessary
  6. + *
+ *

+ * For example, 2007-03-31 plus one month would result in the invalid date + * 2007-04-31. Instead of returning an invalid result, the last valid day + * of the month, 2007-04-30, is selected instead. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusMonths(months: number): java.time.OffsetDateTime; + /** + * Returns a copy of this OffsetDateTime with the specified number of weeks added. + *

+ * This method adds the specified amount in weeks to the days field incrementing + * the month and year fields as necessary to ensure the result remains valid. + * The result is only invalid if the maximum/minimum year is exceeded. + *

+ * For example, 2008-12-31 plus one week would result in 2009-01-07. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusWeeks(weeks: number): java.time.OffsetDateTime; + /** + * Returns a copy of this OffsetDateTime with the specified number of days added. + *

+ * This method adds the specified amount to the days field incrementing the + * month and year fields as necessary to ensure the result remains valid. + * The result is only invalid if the maximum/minimum year is exceeded. + *

+ * For example, 2008-12-31 plus one day would result in 2009-01-01. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusDays(days: number): java.time.OffsetDateTime; + /** + * Returns a copy of this {@code OffsetDateTime} with the specified number of hours added. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusHours(hours: number): java.time.OffsetDateTime; + /** + * Returns a copy of this {@code OffsetDateTime} with the specified number of minutes added. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusMinutes(minutes: number): java.time.OffsetDateTime; + /** + * Returns a copy of this {@code OffsetDateTime} with the specified number of seconds added. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusSeconds(seconds: number): java.time.OffsetDateTime; + /** + * Returns a copy of this {@code OffsetDateTime} with the specified number of nanoseconds added. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusNanos(nanos: number): java.time.OffsetDateTime; + /** + * Returns a copy of this date-time with the specified amount subtracted. + *

+ * This returns an {@code OffsetDateTime}, based on this one, with the specified amount subtracted. + * The amount is typically {@link Period} or {@link Duration} but may be + * any other type implementing the {@link TemporalAmount} interface. + *

+ * The calculation is delegated to the amount object by calling + * {@link TemporalAmount#subtractFrom(Temporal)}. The amount implementation is free + * to implement the subtraction in any way it wishes, however it typically + * calls back to {@link #minus(long, TemporalUnit)}. Consult the documentation + * of the amount implementation to determine if it can be successfully subtracted. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minus(amountToSubtract: java.time.temporal.TemporalAmount): java.time.OffsetDateTime; + /** + * Returns a copy of this date-time with the specified amount subtracted. + *

+ * This returns an {@code OffsetDateTime}, based on this one, with the amount + * in terms of the unit subtracted. If it is not possible to subtract the amount, + * because the unit is not supported or for some other reason, an exception is thrown. + *

+ * This method is equivalent to {@link #plus(long, TemporalUnit)} with the amount negated. + * See that method for a full description of how addition, and thus subtraction, works. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minus(amountToSubtract: number, unit: java.time.temporal.TemporalUnit): java.time.OffsetDateTime; + /** + * Returns a copy of this {@code OffsetDateTime} with the specified number of years subtracted. + *

+ * This method subtracts the specified amount from the years field in three steps: + *

    + *
  1. Subtract the input years from the year field
  2. + *
  3. Check if the resulting date would be invalid
  4. + *
  5. Adjust the day-of-month to the last valid day if necessary
  6. + *
+ *

+ * For example, 2008-02-29 (leap year) minus one year would result in the + * invalid date 2009-02-29 (standard year). Instead of returning an invalid + * result, the last valid day of the month, 2009-02-28, is selected instead. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusYears(years: number): java.time.OffsetDateTime; + /** + * Returns a copy of this {@code OffsetDateTime} with the specified number of months subtracted. + *

+ * This method subtracts the specified amount from the months field in three steps: + *

    + *
  1. Subtract the input months from the month-of-year field
  2. + *
  3. Check if the resulting date would be invalid
  4. + *
  5. Adjust the day-of-month to the last valid day if necessary
  6. + *
+ *

+ * For example, 2007-03-31 minus one month would result in the invalid date + * 2007-04-31. Instead of returning an invalid result, the last valid day + * of the month, 2007-04-30, is selected instead. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusMonths(months: number): java.time.OffsetDateTime; + /** + * Returns a copy of this {@code OffsetDateTime} with the specified number of weeks subtracted. + *

+ * This method subtracts the specified amount in weeks from the days field decrementing + * the month and year fields as necessary to ensure the result remains valid. + * The result is only invalid if the maximum/minimum year is exceeded. + *

+ * For example, 2008-12-31 minus one week would result in 2009-01-07. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusWeeks(weeks: number): java.time.OffsetDateTime; + /** + * Returns a copy of this {@code OffsetDateTime} with the specified number of days subtracted. + *

+ * This method subtracts the specified amount from the days field decrementing the + * month and year fields as necessary to ensure the result remains valid. + * The result is only invalid if the maximum/minimum year is exceeded. + *

+ * For example, 2008-12-31 minus one day would result in 2009-01-01. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusDays(days: number): java.time.OffsetDateTime; + /** + * Returns a copy of this {@code OffsetDateTime} with the specified number of hours subtracted. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusHours(hours: number): java.time.OffsetDateTime; + /** + * Returns a copy of this {@code OffsetDateTime} with the specified number of minutes subtracted. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusMinutes(minutes: number): java.time.OffsetDateTime; + /** + * Returns a copy of this {@code OffsetDateTime} with the specified number of seconds subtracted. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusSeconds(seconds: number): java.time.OffsetDateTime; + /** + * Returns a copy of this {@code OffsetDateTime} with the specified number of nanoseconds subtracted. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusNanos(nanos: number): java.time.OffsetDateTime; + /** + * Queries this date-time using the specified query. + *

+ * This queries this date-time using the specified query strategy object. + * The {@code TemporalQuery} object defines the logic to be used to + * obtain the result. Read the documentation of the query to understand + * what the result of this method will be. + *

+ * The result of this method is obtained by invoking the + * {@link TemporalQuery#queryFrom(TemporalAccessor)} method on the + * specified query passing {@code this} as the argument. + */ + // @ts-ignore + public query(query: java.time.temporal.TemporalQuery): java.lang.Object; + /** + * Adjusts the specified temporal object to have the same offset, date + * and time as this object. + *

+ * This returns a temporal object of the same observable type as the input + * with the offset, date and time changed to be the same as this. + *

+ * The adjustment is equivalent to using {@link Temporal#with(TemporalField, long)} + * three times, passing {@link ChronoField#EPOCH_DAY}, + * {@link ChronoField#NANO_OF_DAY} and {@link ChronoField#OFFSET_SECONDS} as the fields. + *

+ * In most cases, it is clearer to reverse the calling pattern by using + * {@link Temporal#with(TemporalAdjuster)}: + *

+             * // these two lines are equivalent, but the second approach is recommended
+             * temporal = thisOffsetDateTime.adjustInto(temporal);
+             * temporal = temporal.with(thisOffsetDateTime);
+             * 
+ *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public adjustInto(temporal: java.time.temporal.Temporal): java.time.temporal.Temporal; + /** + * Calculates the amount of time until another date-time in terms of the specified unit. + *

+ * This calculates the amount of time between two {@code OffsetDateTime} + * objects in terms of a single {@code TemporalUnit}. + * The start and end points are {@code this} and the specified date-time. + * The result will be negative if the end is before the start. + * For example, the amount in days between two date-times can be calculated + * using {@code startDateTime.until(endDateTime, DAYS)}. + *

+ * The {@code Temporal} passed to this method is converted to a + * {@code OffsetDateTime} using {@link #from(TemporalAccessor)}. + * If the offset differs between the two date-times, the specified + * end date-time is normalized to have the same offset as this date-time. + *

+ * The calculation returns a whole number, representing the number of + * complete units between the two date-times. + * For example, the amount in months between 2012-06-15T00:00Z and 2012-08-14T23:59Z + * will only be one month as it is one minute short of two months. + *

+ * There are two equivalent ways of using this method. + * The first is to invoke this method. + * The second is to use {@link TemporalUnit#between(Temporal, Temporal)}: + *

+             * // these two lines are equivalent
+             * amount = start.until(end, MONTHS);
+             * amount = MONTHS.between(start, end);
+             * 
+ * The choice should be made based on which makes the code more readable. + *

+ * The calculation is implemented in this method for {@link ChronoUnit}. + * The units {@code NANOS}, {@code MICROS}, {@code MILLIS}, {@code SECONDS}, + * {@code MINUTES}, {@code HOURS} and {@code HALF_DAYS}, {@code DAYS}, + * {@code WEEKS}, {@code MONTHS}, {@code YEARS}, {@code DECADES}, + * {@code CENTURIES}, {@code MILLENNIA} and {@code ERAS} are supported. + * Other {@code ChronoUnit} values will throw an exception. + *

+ * If the unit is not a {@code ChronoUnit}, then the result of this method + * is obtained by invoking {@code TemporalUnit.between(Temporal, Temporal)} + * passing {@code this} as the first argument and the converted input temporal + * as the second argument. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public until(endExclusive: java.time.temporal.Temporal, unit: java.time.temporal.TemporalUnit): number; + /** + * Formats this date-time using the specified formatter. + *

+ * This date-time will be passed to the formatter to produce a string. + */ + // @ts-ignore + public format(formatter: java.time.format.DateTimeFormatter): string; + /** + * Combines this date-time with a time-zone to create a {@code ZonedDateTime} + * ensuring that the result has the same instant. + *

+ * This returns a {@code ZonedDateTime} formed from this date-time and the specified time-zone. + * This conversion will ignore the visible local date-time and use the underlying instant instead. + * This avoids any problems with local time-line gaps or overlaps. + * The result might have different values for fields such as hour, minute an even day. + *

+ * To attempt to retain the values of the fields, use {@link #atZoneSimilarLocal(ZoneId)}. + * To use the offset as the zone ID, use {@link #toZonedDateTime()}. + */ + // @ts-ignore + public atZoneSameInstant(zone: java.time.ZoneId): java.time.ZonedDateTime; + /** + * Combines this date-time with a time-zone to create a {@code ZonedDateTime} + * trying to keep the same local date and time. + *

+ * This returns a {@code ZonedDateTime} formed from this date-time and the specified time-zone. + * Where possible, the result will have the same local date-time as this object. + *

+ * Time-zone rules, such as daylight savings, mean that not every time on the + * local time-line exists. If the local date-time is in a gap or overlap according to + * the rules then a resolver is used to determine the resultant local time and offset. + * This method uses {@link ZonedDateTime#ofLocal(LocalDateTime, ZoneId, ZoneOffset)} + * to retain the offset from this instance if possible. + *

+ * Finer control over gaps and overlaps is available in two ways. + * If you simply want to use the later offset at overlaps then call + * {@link ZonedDateTime#withLaterOffsetAtOverlap()} immediately after this method. + *

+ * To create a zoned date-time at the same instant irrespective of the local time-line, + * use {@link #atZoneSameInstant(ZoneId)}. + * To use the offset as the zone ID, use {@link #toZonedDateTime()}. + */ + // @ts-ignore + public atZoneSimilarLocal(zone: java.time.ZoneId): java.time.ZonedDateTime; + /** + * Converts this date-time to an {@code OffsetTime}. + *

+ * This returns an offset time with the same local time and offset. + */ + // @ts-ignore + public toOffsetTime(): java.time.OffsetTime; + /** + * Converts this date-time to a {@code ZonedDateTime} using the offset as the zone ID. + *

+ * This creates the simplest possible {@code ZonedDateTime} using the offset + * as the zone ID. + *

+ * To control the time-zone used, see {@link #atZoneSameInstant(ZoneId)} and + * {@link #atZoneSimilarLocal(ZoneId)}. + */ + // @ts-ignore + public toZonedDateTime(): java.time.ZonedDateTime; + /** + * Converts this date-time to an {@code Instant}. + *

+ * This returns an {@code Instant} representing the same point on the + * time-line as this date-time. + */ + // @ts-ignore + public toInstant(): java.time.Instant; + /** + * Converts this date-time to the number of seconds from the epoch of 1970-01-01T00:00:00Z. + *

+ * This allows this date-time to be converted to a value of the + * {@link ChronoField#INSTANT_SECONDS epoch-seconds} field. This is primarily + * intended for low-level conversions rather than general application usage. + */ + // @ts-ignore + public toEpochSecond(): number; + /** + * Compares this date-time to another date-time. + *

+ * The comparison is based on the instant then on the local date-time. + * It is "consistent with equals", as defined by {@link Comparable}. + *

+ * For example, the following is the comparator order: + *

    + *
  1. {@code 2008-12-03T10:30+01:00}
  2. + *
  3. {@code 2008-12-03T11:00+01:00}
  4. + *
  5. {@code 2008-12-03T12:00+02:00}
  6. + *
  7. {@code 2008-12-03T11:30+01:00}
  8. + *
  9. {@code 2008-12-03T12:00+01:00}
  10. + *
  11. {@code 2008-12-03T12:30+01:00}
  12. + *
+ * Values #2 and #3 represent the same instant on the time-line. + * When two values represent the same instant, the local date-time is compared + * to distinguish them. This step is needed to make the ordering + * consistent with {@code equals()}. + */ + // @ts-ignore + public compareTo(other: java.time.OffsetDateTime): number; + /** + * Checks if the instant of this date-time is after that of the specified date-time. + *

+ * This method differs from the comparison in {@link #compareTo} and {@link #equals} in that it + * only compares the instant of the date-time. This is equivalent to using + * {@code dateTime1.toInstant().isAfter(dateTime2.toInstant());}. + */ + // @ts-ignore + public isAfter(other: java.time.OffsetDateTime): boolean; + /** + * Checks if the instant of this date-time is before that of the specified date-time. + *

+ * This method differs from the comparison in {@link #compareTo} in that it + * only compares the instant of the date-time. This is equivalent to using + * {@code dateTime1.toInstant().isBefore(dateTime2.toInstant());}. + */ + // @ts-ignore + public isBefore(other: java.time.OffsetDateTime): boolean; + /** + * Checks if the instant of this date-time is equal to that of the specified date-time. + *

+ * This method differs from the comparison in {@link #compareTo} and {@link #equals} + * in that it only compares the instant of the date-time. This is equivalent to using + * {@code dateTime1.toInstant().equals(dateTime2.toInstant());}. + */ + // @ts-ignore + public isEqual(other: java.time.OffsetDateTime): boolean; + /** + * Checks if this date-time is equal to another date-time. + *

+ * The comparison is based on the local date-time and the offset. + * To compare for the same instant on the time-line, use {@link #isEqual}. + * Only objects of type {@code OffsetDateTime} are compared, other types return false. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * A hash code for this date-time. + */ + // @ts-ignore + public hashCode(): number; + /** + * Outputs this date-time as a {@code String}, such as {@code 2007-12-03T10:15:30+01:00}. + *

+ * The output will be one of the following ISO-8601 formats: + *

    + *
  • {@code uuuu-MM-dd'T'HH:mmXXXXX}
  • + *
  • {@code uuuu-MM-dd'T'HH:mm:ssXXXXX}
  • + *
  • {@code uuuu-MM-dd'T'HH:mm:ss.SSSXXXXX}
  • + *
  • {@code uuuu-MM-dd'T'HH:mm:ss.SSSSSSXXXXX}
  • + *
  • {@code uuuu-MM-dd'T'HH:mm:ss.SSSSSSSSSXXXXX}
  • + *
+ * The format used will be the shortest that outputs the full value of + * the time where the omitted parts are implied to be zero. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.OffsetTime.d.ts b/packages/types/dist/typings/jdk/java.time.OffsetTime.d.ts new file mode 100644 index 00000000..4e05160f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.OffsetTime.d.ts @@ -0,0 +1,744 @@ +// @ts-nocheck +declare namespace java { + namespace time { + // @ts-ignore + class OffsetTime extends java.lang.Object { + // @ts-ignore + public static MIN: java.time.OffsetTime; + // @ts-ignore + public static MAX: java.time.OffsetTime; + /** + * Obtains the current time from the system clock in the default time-zone. + *

+ * This will query the {@link Clock#systemDefaultZone() system clock} in the default + * time-zone to obtain the current time. + * The offset will be calculated from the time-zone in the clock. + *

+ * Using this method will prevent the ability to use an alternate clock for testing + * because the clock is hard-coded. + */ + // @ts-ignore + public static now(): java.time.OffsetTime; + /** + * Obtains the current time from the system clock in the specified time-zone. + *

+ * This will query the {@link Clock#system(ZoneId) system clock} to obtain the current time. + * Specifying the time-zone avoids dependence on the default time-zone. + * The offset will be calculated from the specified time-zone. + *

+ * Using this method will prevent the ability to use an alternate clock for testing + * because the clock is hard-coded. + */ + // @ts-ignore + public static now(zone: java.time.ZoneId): java.time.OffsetTime; + /** + * Obtains the current time from the specified clock. + *

+ * This will query the specified clock to obtain the current time. + * The offset will be calculated from the time-zone in the clock. + *

+ * Using this method allows the use of an alternate clock for testing. + * The alternate clock may be introduced using {@link Clock dependency injection}. + */ + // @ts-ignore + public static now(clock: java.time.Clock): java.time.OffsetTime; + /** + * Obtains an instance of {@code OffsetTime} from a local time and an offset. + */ + // @ts-ignore + public static of(time: java.time.LocalTime, offset: java.time.ZoneOffset): java.time.OffsetTime; + /** + * Obtains an instance of {@code OffsetTime} from an hour, minute, second and nanosecond. + *

+ * This creates an offset time with the four specified fields. + *

+ * This method exists primarily for writing test cases. + * Non test-code will typically use other methods to create an offset time. + * {@code LocalTime} has two additional convenience variants of the + * equivalent factory method taking fewer arguments. + * They are not provided here to reduce the footprint of the API. + */ + // @ts-ignore + public static of(hour: number, minute: number, second: number, nanoOfSecond: number, offset: java.time.ZoneOffset): java.time.OffsetTime; + /** + * Obtains an instance of {@code OffsetTime} from an {@code Instant} and zone ID. + *

+ * This creates an offset time with the same instant as that specified. + * Finding the offset from UTC/Greenwich is simple as there is only one valid + * offset for each instant. + *

+ * The date component of the instant is dropped during the conversion. + * This means that the conversion can never fail due to the instant being + * out of the valid range of dates. + */ + // @ts-ignore + public static ofInstant(instant: java.time.Instant, zone: java.time.ZoneId): java.time.OffsetTime; + /** + * Obtains an instance of {@code OffsetTime} from a temporal object. + *

+ * This obtains an offset time based on the specified temporal. + * A {@code TemporalAccessor} represents an arbitrary set of date and time information, + * which this factory converts to an instance of {@code OffsetTime}. + *

+ * The conversion extracts and combines the {@code ZoneOffset} and the + * {@code LocalTime} from the temporal object. + * Implementations are permitted to perform optimizations such as accessing + * those fields that are equivalent to the relevant objects. + *

+ * This method matches the signature of the functional interface {@link TemporalQuery} + * allowing it to be used as a query via method reference, {@code OffsetTime::from}. + */ + // @ts-ignore + public static from(temporal: java.time.temporal.TemporalAccessor): java.time.OffsetTime; + /** + * Obtains an instance of {@code OffsetTime} from a text string such as {@code 10:15:30+01:00}. + *

+ * The string must represent a valid time and is parsed using + * {@link java.time.format.DateTimeFormatter#ISO_OFFSET_TIME}. + */ + // @ts-ignore + public static parse(text: java.lang.CharSequence): java.time.OffsetTime; + /** + * Obtains an instance of {@code OffsetTime} from a text string using a specific formatter. + *

+ * The text is parsed using the formatter, returning a time. + */ + // @ts-ignore + public static parse(text: java.lang.CharSequence, formatter: java.time.format.DateTimeFormatter): java.time.OffsetTime; + /** + * Checks if the specified field is supported. + *

+ * This checks if this time can be queried for the specified field. + * If false, then calling the {@link #range(TemporalField) range}, + * {@link #get(TemporalField) get} and {@link #with(TemporalField, long)} + * methods will throw an exception. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The supported fields are: + *

    + *
  • {@code NANO_OF_SECOND} + *
  • {@code NANO_OF_DAY} + *
  • {@code MICRO_OF_SECOND} + *
  • {@code MICRO_OF_DAY} + *
  • {@code MILLI_OF_SECOND} + *
  • {@code MILLI_OF_DAY} + *
  • {@code SECOND_OF_MINUTE} + *
  • {@code SECOND_OF_DAY} + *
  • {@code MINUTE_OF_HOUR} + *
  • {@code MINUTE_OF_DAY} + *
  • {@code HOUR_OF_AMPM} + *
  • {@code CLOCK_HOUR_OF_AMPM} + *
  • {@code HOUR_OF_DAY} + *
  • {@code CLOCK_HOUR_OF_DAY} + *
  • {@code AMPM_OF_DAY} + *
  • {@code OFFSET_SECONDS} + *
+ * All other {@code ChronoField} instances will return false. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.isSupportedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the field is supported is determined by the field. + */ + // @ts-ignore + public isSupported(field: java.time.temporal.TemporalField): boolean; + /** + * Checks if the specified unit is supported. + *

+ * This checks if the specified unit can be added to, or subtracted from, this offset-time. + * If false, then calling the {@link #plus(long, TemporalUnit)} and + * {@link #minus(long, TemporalUnit) minus} methods will throw an exception. + *

+ * If the unit is a {@link ChronoUnit} then the query is implemented here. + * The supported units are: + *

    + *
  • {@code NANOS} + *
  • {@code MICROS} + *
  • {@code MILLIS} + *
  • {@code SECONDS} + *
  • {@code MINUTES} + *
  • {@code HOURS} + *
  • {@code HALF_DAYS} + *
+ * All other {@code ChronoUnit} instances will return false. + *

+ * If the unit is not a {@code ChronoUnit}, then the result of this method + * is obtained by invoking {@code TemporalUnit.isSupportedBy(Temporal)} + * passing {@code this} as the argument. + * Whether the unit is supported is determined by the unit. + */ + // @ts-ignore + public isSupported(unit: java.time.temporal.TemporalUnit): boolean; + /** + * Gets the range of valid values for the specified field. + *

+ * The range object expresses the minimum and maximum valid values for a field. + * This time is used to enhance the accuracy of the returned range. + * If it is not possible to return the range, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@link #isSupported(TemporalField) supported fields} will return + * appropriate range instances. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.rangeRefinedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the range can be obtained is determined by the field. + */ + // @ts-ignore + public range(field: java.time.temporal.TemporalField): java.time.temporal.ValueRange; + /** + * Gets the value of the specified field from this time as an {@code int}. + *

+ * This queries this time for the value of the specified field. + * The returned value will always be within the valid range of values for the field. + * If it is not possible to return the value, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@link #isSupported(TemporalField) supported fields} will return valid + * values based on this time, except {@code NANO_OF_DAY} and {@code MICRO_OF_DAY} + * which are too large to fit in an {@code int} and throw a {@code DateTimeException}. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)} + * passing {@code this} as the argument. Whether the value can be obtained, + * and what the value represents, is determined by the field. + */ + // @ts-ignore + public get(field: java.time.temporal.TemporalField): number; + /** + * Gets the value of the specified field from this time as a {@code long}. + *

+ * This queries this time for the value of the specified field. + * If it is not possible to return the value, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@link #isSupported(TemporalField) supported fields} will return valid + * values based on this time. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)} + * passing {@code this} as the argument. Whether the value can be obtained, + * and what the value represents, is determined by the field. + */ + // @ts-ignore + public getLong(field: java.time.temporal.TemporalField): number; + /** + * Gets the zone offset, such as '+01:00'. + *

+ * This is the offset of the local time from UTC/Greenwich. + */ + // @ts-ignore + public getOffset(): java.time.ZoneOffset; + /** + * Returns a copy of this {@code OffsetTime} with the specified offset ensuring + * that the result has the same local time. + *

+ * This method returns an object with the same {@code LocalTime} and the specified {@code ZoneOffset}. + * No calculation is needed or performed. + * For example, if this time represents {@code 10:30+02:00} and the offset specified is + * {@code +03:00}, then this method will return {@code 10:30+03:00}. + *

+ * To take into account the difference between the offsets, and adjust the time fields, + * use {@link #withOffsetSameInstant}. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withOffsetSameLocal(offset: java.time.ZoneOffset): java.time.OffsetTime; + /** + * Returns a copy of this {@code OffsetTime} with the specified offset ensuring + * that the result is at the same instant on an implied day. + *

+ * This method returns an object with the specified {@code ZoneOffset} and a {@code LocalTime} + * adjusted by the difference between the two offsets. + * This will result in the old and new objects representing the same instant on an implied day. + * This is useful for finding the local time in a different offset. + * For example, if this time represents {@code 10:30+02:00} and the offset specified is + * {@code +03:00}, then this method will return {@code 11:30+03:00}. + *

+ * To change the offset without adjusting the local time use {@link #withOffsetSameLocal}. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withOffsetSameInstant(offset: java.time.ZoneOffset): java.time.OffsetTime; + /** + * Gets the {@code LocalTime} part of this date-time. + *

+ * This returns a {@code LocalTime} with the same hour, minute, second and + * nanosecond as this date-time. + */ + // @ts-ignore + public toLocalTime(): java.time.LocalTime; + /** + * Gets the hour-of-day field. + */ + // @ts-ignore + public getHour(): number; + /** + * Gets the minute-of-hour field. + */ + // @ts-ignore + public getMinute(): number; + /** + * Gets the second-of-minute field. + */ + // @ts-ignore + public getSecond(): number; + /** + * Gets the nano-of-second field. + */ + // @ts-ignore + public getNano(): number; + /** + * Returns an adjusted copy of this time. + *

+ * This returns an {@code OffsetTime}, based on this one, with the time adjusted. + * The adjustment takes place using the specified adjuster strategy object. + * Read the documentation of the adjuster to understand what adjustment will be made. + *

+ * A simple adjuster might simply set the one of the fields, such as the hour field. + * A more complex adjuster might set the time to the last hour of the day. + *

+ * The classes {@link LocalTime} and {@link ZoneOffset} implement {@code TemporalAdjuster}, + * thus this method can be used to change the time or offset: + *

+             * result = offsetTime.with(time);
+             * result = offsetTime.with(offset);
+             * 
+ *

+ * The result of this method is obtained by invoking the + * {@link TemporalAdjuster#adjustInto(Temporal)} method on the + * specified adjuster passing {@code this} as the argument. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public with(adjuster: java.time.temporal.TemporalAdjuster): java.time.OffsetTime; + /** + * Returns a copy of this time with the specified field set to a new value. + *

+ * This returns an {@code OffsetTime}, based on this one, with the value + * for the specified field changed. + * This can be used to change any supported field, such as the hour, minute or second. + * If it is not possible to set the value, because the field is not supported or for + * some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the adjustment is implemented here. + *

+ * The {@code OFFSET_SECONDS} field will return a time with the specified offset. + * The local time is unaltered. If the new offset value is outside the valid range + * then a {@code DateTimeException} will be thrown. + *

+ * The other {@link #isSupported(TemporalField) supported fields} will behave as per + * the matching method on {@link LocalTime#with(TemporalField, long)} LocalTime}. + * In this case, the offset is not part of the calculation and will be unchanged. + *

+ * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.adjustInto(Temporal, long)} + * passing {@code this} as the argument. In this case, the field determines + * whether and how to adjust the instant. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public with(field: java.time.temporal.TemporalField, newValue: number): java.time.OffsetTime; + /** + * Returns a copy of this {@code OffsetTime} with the hour-of-day altered. + *

+ * The offset does not affect the calculation and will be the same in the result. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withHour(hour: number): java.time.OffsetTime; + /** + * Returns a copy of this {@code OffsetTime} with the minute-of-hour altered. + *

+ * The offset does not affect the calculation and will be the same in the result. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withMinute(minute: number): java.time.OffsetTime; + /** + * Returns a copy of this {@code OffsetTime} with the second-of-minute altered. + *

+ * The offset does not affect the calculation and will be the same in the result. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withSecond(second: number): java.time.OffsetTime; + /** + * Returns a copy of this {@code OffsetTime} with the nano-of-second altered. + *

+ * The offset does not affect the calculation and will be the same in the result. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withNano(nanoOfSecond: number): java.time.OffsetTime; + /** + * Returns a copy of this {@code OffsetTime} with the time truncated. + *

+ * Truncation returns a copy of the original time with fields + * smaller than the specified unit set to zero. + * For example, truncating with the {@link ChronoUnit#MINUTES minutes} unit + * will set the second-of-minute and nano-of-second field to zero. + *

+ * The unit must have a {@linkplain TemporalUnit#getDuration() duration} + * that divides into the length of a standard day without remainder. + * This includes all supplied time units on {@link ChronoUnit} and + * {@link ChronoUnit#DAYS DAYS}. Other units throw an exception. + *

+ * The offset does not affect the calculation and will be the same in the result. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public truncatedTo(unit: java.time.temporal.TemporalUnit): java.time.OffsetTime; + /** + * Returns a copy of this time with the specified amount added. + *

+ * This returns an {@code OffsetTime}, based on this one, with the specified amount added. + * The amount is typically {@link Duration} but may be any other type implementing + * the {@link TemporalAmount} interface. + *

+ * The calculation is delegated to the amount object by calling + * {@link TemporalAmount#addTo(Temporal)}. The amount implementation is free + * to implement the addition in any way it wishes, however it typically + * calls back to {@link #plus(long, TemporalUnit)}. Consult the documentation + * of the amount implementation to determine if it can be successfully added. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plus(amountToAdd: java.time.temporal.TemporalAmount): java.time.OffsetTime; + /** + * Returns a copy of this time with the specified amount added. + *

+ * This returns an {@code OffsetTime}, based on this one, with the amount + * in terms of the unit added. If it is not possible to add the amount, because the + * unit is not supported or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoUnit} then the addition is implemented by + * {@link LocalTime#plus(long, TemporalUnit)}. + * The offset is not part of the calculation and will be unchanged in the result. + *

+ * If the field is not a {@code ChronoUnit}, then the result of this method + * is obtained by invoking {@code TemporalUnit.addTo(Temporal, long)} + * passing {@code this} as the argument. In this case, the unit determines + * whether and how to perform the addition. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plus(amountToAdd: number, unit: java.time.temporal.TemporalUnit): java.time.OffsetTime; + /** + * Returns a copy of this {@code OffsetTime} with the specified number of hours added. + *

+ * This adds the specified number of hours to this time, returning a new time. + * The calculation wraps around midnight. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusHours(hours: number): java.time.OffsetTime; + /** + * Returns a copy of this {@code OffsetTime} with the specified number of minutes added. + *

+ * This adds the specified number of minutes to this time, returning a new time. + * The calculation wraps around midnight. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusMinutes(minutes: number): java.time.OffsetTime; + /** + * Returns a copy of this {@code OffsetTime} with the specified number of seconds added. + *

+ * This adds the specified number of seconds to this time, returning a new time. + * The calculation wraps around midnight. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusSeconds(seconds: number): java.time.OffsetTime; + /** + * Returns a copy of this {@code OffsetTime} with the specified number of nanoseconds added. + *

+ * This adds the specified number of nanoseconds to this time, returning a new time. + * The calculation wraps around midnight. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusNanos(nanos: number): java.time.OffsetTime; + /** + * Returns a copy of this time with the specified amount subtracted. + *

+ * This returns an {@code OffsetTime}, based on this one, with the specified amount subtracted. + * The amount is typically {@link Duration} but may be any other type implementing + * the {@link TemporalAmount} interface. + *

+ * The calculation is delegated to the amount object by calling + * {@link TemporalAmount#subtractFrom(Temporal)}. The amount implementation is free + * to implement the subtraction in any way it wishes, however it typically + * calls back to {@link #minus(long, TemporalUnit)}. Consult the documentation + * of the amount implementation to determine if it can be successfully subtracted. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minus(amountToSubtract: java.time.temporal.TemporalAmount): java.time.OffsetTime; + /** + * Returns a copy of this time with the specified amount subtracted. + *

+ * This returns an {@code OffsetTime}, based on this one, with the amount + * in terms of the unit subtracted. If it is not possible to subtract the amount, + * because the unit is not supported or for some other reason, an exception is thrown. + *

+ * This method is equivalent to {@link #plus(long, TemporalUnit)} with the amount negated. + * See that method for a full description of how addition, and thus subtraction, works. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minus(amountToSubtract: number, unit: java.time.temporal.TemporalUnit): java.time.OffsetTime; + /** + * Returns a copy of this {@code OffsetTime} with the specified number of hours subtracted. + *

+ * This subtracts the specified number of hours from this time, returning a new time. + * The calculation wraps around midnight. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusHours(hours: number): java.time.OffsetTime; + /** + * Returns a copy of this {@code OffsetTime} with the specified number of minutes subtracted. + *

+ * This subtracts the specified number of minutes from this time, returning a new time. + * The calculation wraps around midnight. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusMinutes(minutes: number): java.time.OffsetTime; + /** + * Returns a copy of this {@code OffsetTime} with the specified number of seconds subtracted. + *

+ * This subtracts the specified number of seconds from this time, returning a new time. + * The calculation wraps around midnight. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusSeconds(seconds: number): java.time.OffsetTime; + /** + * Returns a copy of this {@code OffsetTime} with the specified number of nanoseconds subtracted. + *

+ * This subtracts the specified number of nanoseconds from this time, returning a new time. + * The calculation wraps around midnight. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusNanos(nanos: number): java.time.OffsetTime; + /** + * Queries this time using the specified query. + *

+ * This queries this time using the specified query strategy object. + * The {@code TemporalQuery} object defines the logic to be used to + * obtain the result. Read the documentation of the query to understand + * what the result of this method will be. + *

+ * The result of this method is obtained by invoking the + * {@link TemporalQuery#queryFrom(TemporalAccessor)} method on the + * specified query passing {@code this} as the argument. + */ + // @ts-ignore + public query(query: java.time.temporal.TemporalQuery): java.lang.Object; + /** + * Adjusts the specified temporal object to have the same offset and time + * as this object. + *

+ * This returns a temporal object of the same observable type as the input + * with the offset and time changed to be the same as this. + *

+ * The adjustment is equivalent to using {@link Temporal#with(TemporalField, long)} + * twice, passing {@link ChronoField#NANO_OF_DAY} and + * {@link ChronoField#OFFSET_SECONDS} as the fields. + *

+ * In most cases, it is clearer to reverse the calling pattern by using + * {@link Temporal#with(TemporalAdjuster)}: + *

+             * // these two lines are equivalent, but the second approach is recommended
+             * temporal = thisOffsetTime.adjustInto(temporal);
+             * temporal = temporal.with(thisOffsetTime);
+             * 
+ *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public adjustInto(temporal: java.time.temporal.Temporal): java.time.temporal.Temporal; + /** + * Calculates the amount of time until another time in terms of the specified unit. + *

+ * This calculates the amount of time between two {@code OffsetTime} + * objects in terms of a single {@code TemporalUnit}. + * The start and end points are {@code this} and the specified time. + * The result will be negative if the end is before the start. + * For example, the amount in hours between two times can be calculated + * using {@code startTime.until(endTime, HOURS)}. + *

+ * The {@code Temporal} passed to this method is converted to a + * {@code OffsetTime} using {@link #from(TemporalAccessor)}. + * If the offset differs between the two times, then the specified + * end time is normalized to have the same offset as this time. + *

+ * The calculation returns a whole number, representing the number of + * complete units between the two times. + * For example, the amount in hours between 11:30Z and 13:29Z will only + * be one hour as it is one minute short of two hours. + *

+ * There are two equivalent ways of using this method. + * The first is to invoke this method. + * The second is to use {@link TemporalUnit#between(Temporal, Temporal)}: + *

+             * // these two lines are equivalent
+             * amount = start.until(end, MINUTES);
+             * amount = MINUTES.between(start, end);
+             * 
+ * The choice should be made based on which makes the code more readable. + *

+ * The calculation is implemented in this method for {@link ChronoUnit}. + * The units {@code NANOS}, {@code MICROS}, {@code MILLIS}, {@code SECONDS}, + * {@code MINUTES}, {@code HOURS} and {@code HALF_DAYS} are supported. + * Other {@code ChronoUnit} values will throw an exception. + *

+ * If the unit is not a {@code ChronoUnit}, then the result of this method + * is obtained by invoking {@code TemporalUnit.between(Temporal, Temporal)} + * passing {@code this} as the first argument and the converted input temporal + * as the second argument. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public until(endExclusive: java.time.temporal.Temporal, unit: java.time.temporal.TemporalUnit): number; + /** + * Formats this time using the specified formatter. + *

+ * This time will be passed to the formatter to produce a string. + */ + // @ts-ignore + public format(formatter: java.time.format.DateTimeFormatter): string; + /** + * Combines this time with a date to create an {@code OffsetDateTime}. + *

+ * This returns an {@code OffsetDateTime} formed from this time and the specified date. + * All possible combinations of date and time are valid. + */ + // @ts-ignore + public atDate(date: java.time.LocalDate): java.time.OffsetDateTime; + /** + * Compares this {@code OffsetTime} to another time. + *

+ * The comparison is based first on the UTC equivalent instant, then on the local time. + * It is "consistent with equals", as defined by {@link Comparable}. + *

+ * For example, the following is the comparator order: + *

    + *
  1. {@code 10:30+01:00}
  2. + *
  3. {@code 11:00+01:00}
  4. + *
  5. {@code 12:00+02:00}
  6. + *
  7. {@code 11:30+01:00}
  8. + *
  9. {@code 12:00+01:00}
  10. + *
  11. {@code 12:30+01:00}
  12. + *
+ * Values #2 and #3 represent the same instant on the time-line. + * When two values represent the same instant, the local time is compared + * to distinguish them. This step is needed to make the ordering + * consistent with {@code equals()}. + *

+ * To compare the underlying local time of two {@code TemporalAccessor} instances, + * use {@link ChronoField#NANO_OF_DAY} as a comparator. + */ + // @ts-ignore + public compareTo(other: java.time.OffsetTime): number; + /** + * Checks if the instant of this {@code OffsetTime} is after that of the + * specified time applying both times to a common date. + *

+ * This method differs from the comparison in {@link #compareTo} in that it + * only compares the instant of the time. This is equivalent to converting both + * times to an instant using the same date and comparing the instants. + */ + // @ts-ignore + public isAfter(other: java.time.OffsetTime): boolean; + /** + * Checks if the instant of this {@code OffsetTime} is before that of the + * specified time applying both times to a common date. + *

+ * This method differs from the comparison in {@link #compareTo} in that it + * only compares the instant of the time. This is equivalent to converting both + * times to an instant using the same date and comparing the instants. + */ + // @ts-ignore + public isBefore(other: java.time.OffsetTime): boolean; + /** + * Checks if the instant of this {@code OffsetTime} is equal to that of the + * specified time applying both times to a common date. + *

+ * This method differs from the comparison in {@link #compareTo} and {@link #equals} + * in that it only compares the instant of the time. This is equivalent to converting both + * times to an instant using the same date and comparing the instants. + */ + // @ts-ignore + public isEqual(other: java.time.OffsetTime): boolean; + /** + * Checks if this time is equal to another time. + *

+ * The comparison is based on the local-time and the offset. + * To compare for the same instant on the time-line, use {@link #isEqual(OffsetTime)}. + *

+ * Only objects of type {@code OffsetTime} are compared, other types return false. + * To compare the underlying local time of two {@code TemporalAccessor} instances, + * use {@link ChronoField#NANO_OF_DAY} as a comparator. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * A hash code for this time. + */ + // @ts-ignore + public hashCode(): number; + /** + * Outputs this time as a {@code String}, such as {@code 10:15:30+01:00}. + *

+ * The output will be one of the following ISO-8601 formats: + *

    + *
  • {@code HH:mmXXXXX}
  • + *
  • {@code HH:mm:ssXXXXX}
  • + *
  • {@code HH:mm:ss.SSSXXXXX}
  • + *
  • {@code HH:mm:ss.SSSSSSXXXXX}
  • + *
  • {@code HH:mm:ss.SSSSSSSSSXXXXX}
  • + *
+ * The format used will be the shortest that outputs the full value of + * the time where the omitted parts are implied to be zero. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.Period.d.ts b/packages/types/dist/typings/jdk/java.time.Period.d.ts new file mode 100644 index 00000000..7ff749cc --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.Period.d.ts @@ -0,0 +1,464 @@ +// @ts-nocheck +declare namespace java { + namespace time { + // @ts-ignore + class Period extends java.lang.Object { + // @ts-ignore + public static ZERO: java.time.Period; + /** + * Obtains a {@code Period} representing a number of years. + *

+ * The resulting period will have the specified years. + * The months and days units will be zero. + */ + // @ts-ignore + public static ofYears(years: number): java.time.Period; + /** + * Obtains a {@code Period} representing a number of months. + *

+ * The resulting period will have the specified months. + * The years and days units will be zero. + */ + // @ts-ignore + public static ofMonths(months: number): java.time.Period; + /** + * Obtains a {@code Period} representing a number of weeks. + *

+ * The resulting period will be day-based, with the amount of days + * equal to the number of weeks multiplied by 7. + * The years and months units will be zero. + */ + // @ts-ignore + public static ofWeeks(weeks: number): java.time.Period; + /** + * Obtains a {@code Period} representing a number of days. + *

+ * The resulting period will have the specified days. + * The years and months units will be zero. + */ + // @ts-ignore + public static ofDays(days: number): java.time.Period; + /** + * Obtains a {@code Period} representing a number of years, months and days. + *

+ * This creates an instance based on years, months and days. + */ + // @ts-ignore + public static of(years: number, months: number, days: number): java.time.Period; + /** + * Obtains an instance of {@code Period} from a temporal amount. + *

+ * This obtains a period based on the specified amount. + * A {@code TemporalAmount} represents an amount of time, which may be + * date-based or time-based, which this factory extracts to a {@code Period}. + *

+ * The conversion loops around the set of units from the amount and uses + * the {@link ChronoUnit#YEARS YEARS}, {@link ChronoUnit#MONTHS MONTHS} + * and {@link ChronoUnit#DAYS DAYS} units to create a period. + * If any other units are found then an exception is thrown. + *

+ * If the amount is a {@code ChronoPeriod} then it must use the ISO chronology. + */ + // @ts-ignore + public static from(amount: java.time.temporal.TemporalAmount): java.time.Period; + /** + * Obtains a {@code Period} from a text string such as {@code PnYnMnD}. + *

+ * This will parse the string produced by {@code toString()} which is + * based on the ISO-8601 period formats {@code PnYnMnD} and {@code PnW}. + *

+ * The string starts with an optional sign, denoted by the ASCII negative + * or positive symbol. If negative, the whole period is negated. + * The ASCII letter "P" is next in upper or lower case. + * There are then four sections, each consisting of a number and a suffix. + * At least one of the four sections must be present. + * The sections have suffixes in ASCII of "Y", "M", "W" and "D" for + * years, months, weeks and days, accepted in upper or lower case. + * The suffixes must occur in order. + * The number part of each section must consist of ASCII digits. + * The number may be prefixed by the ASCII negative or positive symbol. + * The number must parse to an {@code int}. + *

+ * The leading plus/minus sign, and negative values for other units are + * not part of the ISO-8601 standard. In addition, ISO-8601 does not + * permit mixing between the {@code PnYnMnD} and {@code PnW} formats. + * Any week-based input is multiplied by 7 and treated as a number of days. + *

+ * For example, the following are valid inputs: + *

+             * "P2Y"             -- Period.ofYears(2)
+             * "P3M"             -- Period.ofMonths(3)
+             * "P4W"             -- Period.ofWeeks(4)
+             * "P5D"             -- Period.ofDays(5)
+             * "P1Y2M3D"         -- Period.of(1, 2, 3)
+             * "P1Y2M3W4D"       -- Period.of(1, 2, 25)
+             * "P-1Y2M"          -- Period.of(-1, 2, 0)
+             * "-P1Y2M"          -- Period.of(-1, -2, 0)
+             * 
+ */ + // @ts-ignore + public static parse(text: java.lang.CharSequence): java.time.Period; + /** + * Obtains a {@code Period} consisting of the number of years, months, + * and days between two dates. + *

+ * The start date is included, but the end date is not. + * The period is calculated by removing complete months, then calculating + * the remaining number of days, adjusting to ensure that both have the same sign. + * The number of months is then split into years and months based on a 12 month year. + * A month is considered if the end day-of-month is greater than or equal to the start day-of-month. + * For example, from {@code 2010-01-15} to {@code 2011-03-18} is one year, two months and three days. + *

+ * The result of this method can be a negative period if the end is before the start. + * The negative sign will be the same in each of year, month and day. + */ + // @ts-ignore + public static between(startDateInclusive: java.time.LocalDate, endDateExclusive: java.time.LocalDate): java.time.Period; + /** + * Gets the value of the requested unit. + *

+ * This returns a value for each of the three supported units, + * {@link ChronoUnit#YEARS YEARS}, {@link ChronoUnit#MONTHS MONTHS} and + * {@link ChronoUnit#DAYS DAYS}. + * All other units throw an exception. + */ + // @ts-ignore + public get(unit: java.time.temporal.TemporalUnit): number; + /** + * Gets the set of units supported by this period. + *

+ * The supported units are {@link ChronoUnit#YEARS YEARS}, + * {@link ChronoUnit#MONTHS MONTHS} and {@link ChronoUnit#DAYS DAYS}. + * They are returned in the order years, months, days. + *

+ * This set can be used in conjunction with {@link #get(TemporalUnit)} + * to access the entire state of the period. + */ + // @ts-ignore + public getUnits(): java.util.List; + /** + * Gets the chronology of this period, which is the ISO calendar system. + *

+ * The {@code Chronology} represents the calendar system in use. + * The ISO-8601 calendar system is the modern civil calendar system used today + * in most of the world. It is equivalent to the proleptic Gregorian calendar + * system, in which today's rules for leap years are applied for all time. + */ + // @ts-ignore + public getChronology(): java.time.chrono.IsoChronology; + /** + * Checks if all three units of this period are zero. + *

+ * A zero period has the value zero for the years, months and days units. + */ + // @ts-ignore + public isZero(): boolean; + /** + * Checks if any of the three units of this period are negative. + *

+ * This checks whether the years, months or days units are less than zero. + */ + // @ts-ignore + public isNegative(): boolean; + /** + * Gets the amount of years of this period. + *

+ * This returns the years unit. + *

+ * The months unit is not automatically normalized with the years unit. + * This means that a period of "15 months" is different to a period + * of "1 year and 3 months". + */ + // @ts-ignore + public getYears(): number; + /** + * Gets the amount of months of this period. + *

+ * This returns the months unit. + *

+ * The months unit is not automatically normalized with the years unit. + * This means that a period of "15 months" is different to a period + * of "1 year and 3 months". + */ + // @ts-ignore + public getMonths(): number; + /** + * Gets the amount of days of this period. + *

+ * This returns the days unit. + */ + // @ts-ignore + public getDays(): number; + /** + * Returns a copy of this period with the specified amount of years. + *

+ * This sets the amount of the years unit in a copy of this period. + * The months and days units are unaffected. + *

+ * The months unit is not automatically normalized with the years unit. + * This means that a period of "15 months" is different to a period + * of "1 year and 3 months". + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withYears(years: number): java.time.Period; + /** + * Returns a copy of this period with the specified amount of months. + *

+ * This sets the amount of the months unit in a copy of this period. + * The years and days units are unaffected. + *

+ * The months unit is not automatically normalized with the years unit. + * This means that a period of "15 months" is different to a period + * of "1 year and 3 months". + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withMonths(months: number): java.time.Period; + /** + * Returns a copy of this period with the specified amount of days. + *

+ * This sets the amount of the days unit in a copy of this period. + * The years and months units are unaffected. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withDays(days: number): java.time.Period; + /** + * Returns a copy of this period with the specified period added. + *

+ * This operates separately on the years, months and days. + * No normalization is performed. + *

+ * For example, "1 year, 6 months and 3 days" plus "2 years, 2 months and 2 days" + * returns "3 years, 8 months and 5 days". + *

+ * The specified amount is typically an instance of {@code Period}. + * Other types are interpreted using {@link Period#from(TemporalAmount)}. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plus(amountToAdd: java.time.temporal.TemporalAmount): java.time.Period; + /** + * Returns a copy of this period with the specified years added. + *

+ * This adds the amount to the years unit in a copy of this period. + * The months and days units are unaffected. + * For example, "1 year, 6 months and 3 days" plus 2 years returns "3 years, 6 months and 3 days". + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusYears(yearsToAdd: number): java.time.Period; + /** + * Returns a copy of this period with the specified months added. + *

+ * This adds the amount to the months unit in a copy of this period. + * The years and days units are unaffected. + * For example, "1 year, 6 months and 3 days" plus 2 months returns "1 year, 8 months and 3 days". + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusMonths(monthsToAdd: number): java.time.Period; + /** + * Returns a copy of this period with the specified days added. + *

+ * This adds the amount to the days unit in a copy of this period. + * The years and months units are unaffected. + * For example, "1 year, 6 months and 3 days" plus 2 days returns "1 year, 6 months and 5 days". + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusDays(daysToAdd: number): java.time.Period; + /** + * Returns a copy of this period with the specified period subtracted. + *

+ * This operates separately on the years, months and days. + * No normalization is performed. + *

+ * For example, "1 year, 6 months and 3 days" minus "2 years, 2 months and 2 days" + * returns "-1 years, 4 months and 1 day". + *

+ * The specified amount is typically an instance of {@code Period}. + * Other types are interpreted using {@link Period#from(TemporalAmount)}. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minus(amountToSubtract: java.time.temporal.TemporalAmount): java.time.Period; + /** + * Returns a copy of this period with the specified years subtracted. + *

+ * This subtracts the amount from the years unit in a copy of this period. + * The months and days units are unaffected. + * For example, "1 year, 6 months and 3 days" minus 2 years returns "-1 years, 6 months and 3 days". + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusYears(yearsToSubtract: number): java.time.Period; + /** + * Returns a copy of this period with the specified months subtracted. + *

+ * This subtracts the amount from the months unit in a copy of this period. + * The years and days units are unaffected. + * For example, "1 year, 6 months and 3 days" minus 2 months returns "1 year, 4 months and 3 days". + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusMonths(monthsToSubtract: number): java.time.Period; + /** + * Returns a copy of this period with the specified days subtracted. + *

+ * This subtracts the amount from the days unit in a copy of this period. + * The years and months units are unaffected. + * For example, "1 year, 6 months and 3 days" minus 2 days returns "1 year, 6 months and 1 day". + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusDays(daysToSubtract: number): java.time.Period; + /** + * Returns a new instance with each element in this period multiplied + * by the specified scalar. + *

+ * This returns a period with each of the years, months and days units + * individually multiplied. + * For example, a period of "2 years, -3 months and 4 days" multiplied by + * 3 will return "6 years, -9 months and 12 days". + * No normalization is performed. + */ + // @ts-ignore + public multipliedBy(scalar: number): java.time.Period; + /** + * Returns a new instance with each amount in this period negated. + *

+ * This returns a period with each of the years, months and days units + * individually negated. + * For example, a period of "2 years, -3 months and 4 days" will be + * negated to "-2 years, 3 months and -4 days". + * No normalization is performed. + */ + // @ts-ignore + public negated(): java.time.Period; + /** + * Returns a copy of this period with the years and months normalized. + *

+ * This normalizes the years and months units, leaving the days unit unchanged. + * The months unit is adjusted to have an absolute value less than 11, + * with the years unit being adjusted to compensate. For example, a period of + * "1 Year and 15 months" will be normalized to "2 years and 3 months". + *

+ * The sign of the years and months units will be the same after normalization. + * For example, a period of "1 year and -25 months" will be normalized to + * "-1 year and -1 month". + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public normalized(): java.time.Period; + /** + * Gets the total number of months in this period. + *

+ * This returns the total number of months in the period by multiplying the + * number of years by 12 and adding the number of months. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public toTotalMonths(): number; + /** + * Adds this period to the specified temporal object. + *

+ * This returns a temporal object of the same observable type as the input + * with this period added. + * If the temporal has a chronology, it must be the ISO chronology. + *

+ * In most cases, it is clearer to reverse the calling pattern by using + * {@link Temporal#plus(TemporalAmount)}. + *

+             * // these two lines are equivalent, but the second approach is recommended
+             * dateTime = thisPeriod.addTo(dateTime);
+             * dateTime = dateTime.plus(thisPeriod);
+             * 
+ *

+ * The calculation operates as follows. + * First, the chronology of the temporal is checked to ensure it is ISO chronology or null. + * Second, if the months are zero, the years are added if non-zero, otherwise + * the combination of years and months is added if non-zero. + * Finally, any days are added. + *

+ * This approach ensures that a partial period can be added to a partial date. + * For example, a period of years and/or months can be added to a {@code YearMonth}, + * but a period including days cannot. + * The approach also adds years and months together when necessary, which ensures + * correct behaviour at the end of the month. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public addTo(temporal: java.time.temporal.Temporal): java.time.temporal.Temporal; + /** + * Subtracts this period from the specified temporal object. + *

+ * This returns a temporal object of the same observable type as the input + * with this period subtracted. + * If the temporal has a chronology, it must be the ISO chronology. + *

+ * In most cases, it is clearer to reverse the calling pattern by using + * {@link Temporal#minus(TemporalAmount)}. + *

+             * // these two lines are equivalent, but the second approach is recommended
+             * dateTime = thisPeriod.subtractFrom(dateTime);
+             * dateTime = dateTime.minus(thisPeriod);
+             * 
+ *

+ * The calculation operates as follows. + * First, the chronology of the temporal is checked to ensure it is ISO chronology or null. + * Second, if the months are zero, the years are subtracted if non-zero, otherwise + * the combination of years and months is subtracted if non-zero. + * Finally, any days are subtracted. + *

+ * This approach ensures that a partial period can be subtracted from a partial date. + * For example, a period of years and/or months can be subtracted from a {@code YearMonth}, + * but a period including days cannot. + * The approach also subtracts years and months together when necessary, which ensures + * correct behaviour at the end of the month. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public subtractFrom(temporal: java.time.temporal.Temporal): java.time.temporal.Temporal; + /** + * Checks if this period is equal to another period. + *

+ * The comparison is based on the type {@code Period} and each of the three amounts. + * To be equal, the years, months and days units must be individually equal. + * Note that this means that a period of "15 Months" is not equal to a period + * of "1 Year and 3 Months". + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * A hash code for this period. + */ + // @ts-ignore + public hashCode(): number; + /** + * Outputs this period as a {@code String}, such as {@code P6Y3M1D}. + *

+ * The output will be in the ISO-8601 period format. + * A zero period will be represented as zero days, 'P0D'. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.Year.d.ts b/packages/types/dist/typings/jdk/java.time.Year.d.ts new file mode 100644 index 00000000..28b5b2e0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.Year.d.ts @@ -0,0 +1,571 @@ +// @ts-nocheck +declare namespace java { + namespace time { + // @ts-ignore + class Year extends java.lang.Object { + // @ts-ignore + public static MIN_VALUE: number; + // @ts-ignore + public static MAX_VALUE: number; + /** + * Obtains the current year from the system clock in the default time-zone. + *

+ * This will query the {@link Clock#systemDefaultZone() system clock} in the default + * time-zone to obtain the current year. + *

+ * Using this method will prevent the ability to use an alternate clock for testing + * because the clock is hard-coded. + */ + // @ts-ignore + public static now(): java.time.Year; + /** + * Obtains the current year from the system clock in the specified time-zone. + *

+ * This will query the {@link Clock#system(ZoneId) system clock} to obtain the current year. + * Specifying the time-zone avoids dependence on the default time-zone. + *

+ * Using this method will prevent the ability to use an alternate clock for testing + * because the clock is hard-coded. + */ + // @ts-ignore + public static now(zone: java.time.ZoneId): java.time.Year; + /** + * Obtains the current year from the specified clock. + *

+ * This will query the specified clock to obtain the current year. + * Using this method allows the use of an alternate clock for testing. + * The alternate clock may be introduced using {@link Clock dependency injection}. + */ + // @ts-ignore + public static now(clock: java.time.Clock): java.time.Year; + /** + * Obtains an instance of {@code Year}. + *

+ * This method accepts a year value from the proleptic ISO calendar system. + *

+ * The year 2AD/CE is represented by 2.
+ * The year 1AD/CE is represented by 1.
+ * The year 1BC/BCE is represented by 0.
+ * The year 2BC/BCE is represented by -1.
+ */ + // @ts-ignore + public static of(isoYear: number): java.time.Year; + /** + * Obtains an instance of {@code Year} from a temporal object. + *

+ * This obtains a year based on the specified temporal. + * A {@code TemporalAccessor} represents an arbitrary set of date and time information, + * which this factory converts to an instance of {@code Year}. + *

+ * The conversion extracts the {@link ChronoField#YEAR year} field. + * The extraction is only permitted if the temporal object has an ISO + * chronology, or can be converted to a {@code LocalDate}. + *

+ * This method matches the signature of the functional interface {@link TemporalQuery} + * allowing it to be used as a query via method reference, {@code Year::from}. + */ + // @ts-ignore + public static from(temporal: java.time.temporal.TemporalAccessor): java.time.Year; + /** + * Obtains an instance of {@code Year} from a text string such as {@code 2007}. + *

+ * The string must represent a valid year. + * Years outside the range 0000 to 9999 must be prefixed by the plus or minus symbol. + */ + // @ts-ignore + public static parse(text: java.lang.CharSequence): java.time.Year; + /** + * Obtains an instance of {@code Year} from a text string using a specific formatter. + *

+ * The text is parsed using the formatter, returning a year. + */ + // @ts-ignore + public static parse(text: java.lang.CharSequence, formatter: java.time.format.DateTimeFormatter): java.time.Year; + /** + * Checks if the year is a leap year, according to the ISO proleptic + * calendar system rules. + *

+ * This method applies the current rules for leap years across the whole time-line. + * In general, a year is a leap year if it is divisible by four without + * remainder. However, years divisible by 100, are not leap years, with + * the exception of years divisible by 400 which are. + *

+ * For example, 1904 is a leap year it is divisible by 4. + * 1900 was not a leap year as it is divisible by 100, however 2000 was a + * leap year as it is divisible by 400. + *

+ * The calculation is proleptic - applying the same rules into the far future and far past. + * This is historically inaccurate, but is correct for the ISO-8601 standard. + */ + // @ts-ignore + public static isLeap(year: number): boolean; + /** + * Gets the year value. + *

+ * The year returned by this method is proleptic as per {@code get(YEAR)}. + */ + // @ts-ignore + public getValue(): number; + /** + * Checks if the specified field is supported. + *

+ * This checks if this year can be queried for the specified field. + * If false, then calling the {@link #range(TemporalField) range}, + * {@link #get(TemporalField) get} and {@link #with(TemporalField, long)} + * methods will throw an exception. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The supported fields are: + *

    + *
  • {@code YEAR_OF_ERA} + *
  • {@code YEAR} + *
  • {@code ERA} + *
+ * All other {@code ChronoField} instances will return false. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.isSupportedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the field is supported is determined by the field. + */ + // @ts-ignore + public isSupported(field: java.time.temporal.TemporalField): boolean; + /** + * Checks if the specified unit is supported. + *

+ * This checks if the specified unit can be added to, or subtracted from, this year. + * If false, then calling the {@link #plus(long, TemporalUnit)} and + * {@link #minus(long, TemporalUnit) minus} methods will throw an exception. + *

+ * If the unit is a {@link ChronoUnit} then the query is implemented here. + * The supported units are: + *

    + *
  • {@code YEARS} + *
  • {@code DECADES} + *
  • {@code CENTURIES} + *
  • {@code MILLENNIA} + *
  • {@code ERAS} + *
+ * All other {@code ChronoUnit} instances will return false. + *

+ * If the unit is not a {@code ChronoUnit}, then the result of this method + * is obtained by invoking {@code TemporalUnit.isSupportedBy(Temporal)} + * passing {@code this} as the argument. + * Whether the unit is supported is determined by the unit. + */ + // @ts-ignore + public isSupported(unit: java.time.temporal.TemporalUnit): boolean; + /** + * Gets the range of valid values for the specified field. + *

+ * The range object expresses the minimum and maximum valid values for a field. + * This year is used to enhance the accuracy of the returned range. + * If it is not possible to return the range, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@link #isSupported(TemporalField) supported fields} will return + * appropriate range instances. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.rangeRefinedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the range can be obtained is determined by the field. + */ + // @ts-ignore + public range(field: java.time.temporal.TemporalField): java.time.temporal.ValueRange; + /** + * Gets the value of the specified field from this year as an {@code int}. + *

+ * This queries this year for the value of the specified field. + * The returned value will always be within the valid range of values for the field. + * If it is not possible to return the value, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@link #isSupported(TemporalField) supported fields} will return valid + * values based on this year. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)} + * passing {@code this} as the argument. Whether the value can be obtained, + * and what the value represents, is determined by the field. + */ + // @ts-ignore + public get(field: java.time.temporal.TemporalField): number; + /** + * Gets the value of the specified field from this year as a {@code long}. + *

+ * This queries this year for the value of the specified field. + * If it is not possible to return the value, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@link #isSupported(TemporalField) supported fields} will return valid + * values based on this year. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)} + * passing {@code this} as the argument. Whether the value can be obtained, + * and what the value represents, is determined by the field. + */ + // @ts-ignore + public getLong(field: java.time.temporal.TemporalField): number; + /** + * Checks if the year is a leap year, according to the ISO proleptic + * calendar system rules. + *

+ * This method applies the current rules for leap years across the whole time-line. + * In general, a year is a leap year if it is divisible by four without + * remainder. However, years divisible by 100, are not leap years, with + * the exception of years divisible by 400 which are. + *

+ * For example, 1904 is a leap year it is divisible by 4. + * 1900 was not a leap year as it is divisible by 100, however 2000 was a + * leap year as it is divisible by 400. + *

+ * The calculation is proleptic - applying the same rules into the far future and far past. + * This is historically inaccurate, but is correct for the ISO-8601 standard. + */ + // @ts-ignore + public isLeap(): boolean; + /** + * Checks if the month-day is valid for this year. + *

+ * This method checks whether this year and the input month and day form + * a valid date. + */ + // @ts-ignore + public isValidMonthDay(monthDay: java.time.MonthDay): boolean; + /** + * Gets the length of this year in days. + */ + // @ts-ignore + public length(): number; + /** + * Returns an adjusted copy of this year. + *

+ * This returns a {@code Year}, based on this one, with the year adjusted. + * The adjustment takes place using the specified adjuster strategy object. + * Read the documentation of the adjuster to understand what adjustment will be made. + *

+ * The result of this method is obtained by invoking the + * {@link TemporalAdjuster#adjustInto(Temporal)} method on the + * specified adjuster passing {@code this} as the argument. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public with(adjuster: java.time.temporal.TemporalAdjuster): java.time.Year; + /** + * Returns a copy of this year with the specified field set to a new value. + *

+ * This returns a {@code Year}, based on this one, with the value + * for the specified field changed. + * If it is not possible to set the value, because the field is not supported or for + * some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the adjustment is implemented here. + * The supported fields behave as follows: + *

    + *
  • {@code YEAR_OF_ERA} - + * Returns a {@code Year} with the specified year-of-era + * The era will be unchanged. + *
  • {@code YEAR} - + * Returns a {@code Year} with the specified year. + * This completely replaces the date and is equivalent to {@link #of(int)}. + *
  • {@code ERA} - + * Returns a {@code Year} with the specified era. + * The year-of-era will be unchanged. + *
+ *

+ * In all cases, if the new value is outside the valid range of values for the field + * then a {@code DateTimeException} will be thrown. + *

+ * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.adjustInto(Temporal, long)} + * passing {@code this} as the argument. In this case, the field determines + * whether and how to adjust the instant. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public with(field: java.time.temporal.TemporalField, newValue: number): java.time.Year; + /** + * Returns a copy of this year with the specified amount added. + *

+ * This returns a {@code Year}, based on this one, with the specified amount added. + * The amount is typically {@link Period} but may be any other type implementing + * the {@link TemporalAmount} interface. + *

+ * The calculation is delegated to the amount object by calling + * {@link TemporalAmount#addTo(Temporal)}. The amount implementation is free + * to implement the addition in any way it wishes, however it typically + * calls back to {@link #plus(long, TemporalUnit)}. Consult the documentation + * of the amount implementation to determine if it can be successfully added. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plus(amountToAdd: java.time.temporal.TemporalAmount): java.time.Year; + /** + * Returns a copy of this year with the specified amount added. + *

+ * This returns a {@code Year}, based on this one, with the amount + * in terms of the unit added. If it is not possible to add the amount, because the + * unit is not supported or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoUnit} then the addition is implemented here. + * The supported fields behave as follows: + *

    + *
  • {@code YEARS} - + * Returns a {@code Year} with the specified number of years added. + * This is equivalent to {@link #plusYears(long)}. + *
  • {@code DECADES} - + * Returns a {@code Year} with the specified number of decades added. + * This is equivalent to calling {@link #plusYears(long)} with the amount + * multiplied by 10. + *
  • {@code CENTURIES} - + * Returns a {@code Year} with the specified number of centuries added. + * This is equivalent to calling {@link #plusYears(long)} with the amount + * multiplied by 100. + *
  • {@code MILLENNIA} - + * Returns a {@code Year} with the specified number of millennia added. + * This is equivalent to calling {@link #plusYears(long)} with the amount + * multiplied by 1,000. + *
  • {@code ERAS} - + * Returns a {@code Year} with the specified number of eras added. + * Only two eras are supported so the amount must be one, zero or minus one. + * If the amount is non-zero then the year is changed such that the year-of-era + * is unchanged. + *
+ *

+ * All other {@code ChronoUnit} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoUnit}, then the result of this method + * is obtained by invoking {@code TemporalUnit.addTo(Temporal, long)} + * passing {@code this} as the argument. In this case, the unit determines + * whether and how to perform the addition. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plus(amountToAdd: number, unit: java.time.temporal.TemporalUnit): java.time.Year; + /** + * Returns a copy of this {@code Year} with the specified number of years added. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusYears(yearsToAdd: number): java.time.Year; + /** + * Returns a copy of this year with the specified amount subtracted. + *

+ * This returns a {@code Year}, based on this one, with the specified amount subtracted. + * The amount is typically {@link Period} but may be any other type implementing + * the {@link TemporalAmount} interface. + *

+ * The calculation is delegated to the amount object by calling + * {@link TemporalAmount#subtractFrom(Temporal)}. The amount implementation is free + * to implement the subtraction in any way it wishes, however it typically + * calls back to {@link #minus(long, TemporalUnit)}. Consult the documentation + * of the amount implementation to determine if it can be successfully subtracted. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minus(amountToSubtract: java.time.temporal.TemporalAmount): java.time.Year; + /** + * Returns a copy of this year with the specified amount subtracted. + *

+ * This returns a {@code Year}, based on this one, with the amount + * in terms of the unit subtracted. If it is not possible to subtract the amount, + * because the unit is not supported or for some other reason, an exception is thrown. + *

+ * This method is equivalent to {@link #plus(long, TemporalUnit)} with the amount negated. + * See that method for a full description of how addition, and thus subtraction, works. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minus(amountToSubtract: number, unit: java.time.temporal.TemporalUnit): java.time.Year; + /** + * Returns a copy of this {@code Year} with the specified number of years subtracted. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusYears(yearsToSubtract: number): java.time.Year; + /** + * Queries this year using the specified query. + *

+ * This queries this year using the specified query strategy object. + * The {@code TemporalQuery} object defines the logic to be used to + * obtain the result. Read the documentation of the query to understand + * what the result of this method will be. + *

+ * The result of this method is obtained by invoking the + * {@link TemporalQuery#queryFrom(TemporalAccessor)} method on the + * specified query passing {@code this} as the argument. + */ + // @ts-ignore + public query(query: java.time.temporal.TemporalQuery): java.lang.Object; + /** + * Adjusts the specified temporal object to have this year. + *

+ * This returns a temporal object of the same observable type as the input + * with the year changed to be the same as this. + *

+ * The adjustment is equivalent to using {@link Temporal#with(TemporalField, long)} + * passing {@link ChronoField#YEAR} as the field. + * If the specified temporal object does not use the ISO calendar system then + * a {@code DateTimeException} is thrown. + *

+ * In most cases, it is clearer to reverse the calling pattern by using + * {@link Temporal#with(TemporalAdjuster)}: + *

+             * // these two lines are equivalent, but the second approach is recommended
+             * temporal = thisYear.adjustInto(temporal);
+             * temporal = temporal.with(thisYear);
+             * 
+ *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public adjustInto(temporal: java.time.temporal.Temporal): java.time.temporal.Temporal; + /** + * Calculates the amount of time until another year in terms of the specified unit. + *

+ * This calculates the amount of time between two {@code Year} + * objects in terms of a single {@code TemporalUnit}. + * The start and end points are {@code this} and the specified year. + * The result will be negative if the end is before the start. + * The {@code Temporal} passed to this method is converted to a + * {@code Year} using {@link #from(TemporalAccessor)}. + * For example, the amount in decades between two year can be calculated + * using {@code startYear.until(endYear, DECADES)}. + *

+ * The calculation returns a whole number, representing the number of + * complete units between the two years. + * For example, the amount in decades between 2012 and 2031 + * will only be one decade as it is one year short of two decades. + *

+ * There are two equivalent ways of using this method. + * The first is to invoke this method. + * The second is to use {@link TemporalUnit#between(Temporal, Temporal)}: + *

+             * // these two lines are equivalent
+             * amount = start.until(end, YEARS);
+             * amount = YEARS.between(start, end);
+             * 
+ * The choice should be made based on which makes the code more readable. + *

+ * The calculation is implemented in this method for {@link ChronoUnit}. + * The units {@code YEARS}, {@code DECADES}, {@code CENTURIES}, + * {@code MILLENNIA} and {@code ERAS} are supported. + * Other {@code ChronoUnit} values will throw an exception. + *

+ * If the unit is not a {@code ChronoUnit}, then the result of this method + * is obtained by invoking {@code TemporalUnit.between(Temporal, Temporal)} + * passing {@code this} as the first argument and the converted input temporal + * as the second argument. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public until(endExclusive: java.time.temporal.Temporal, unit: java.time.temporal.TemporalUnit): number; + /** + * Formats this year using the specified formatter. + *

+ * This year will be passed to the formatter to produce a string. + */ + // @ts-ignore + public format(formatter: java.time.format.DateTimeFormatter): string; + /** + * Combines this year with a day-of-year to create a {@code LocalDate}. + *

+ * This returns a {@code LocalDate} formed from this year and the specified day-of-year. + *

+ * The day-of-year value 366 is only valid in a leap year. + */ + // @ts-ignore + public atDay(dayOfYear: number): java.time.LocalDate; + /** + * Combines this year with a month to create a {@code YearMonth}. + *

+ * This returns a {@code YearMonth} formed from this year and the specified month. + * All possible combinations of year and month are valid. + *

+ * This method can be used as part of a chain to produce a date: + *

+             * LocalDate date = year.atMonth(month).atDay(day);
+             * 
+ */ + // @ts-ignore + public atMonth(month: java.time.Month): java.time.YearMonth; + /** + * Combines this year with a month to create a {@code YearMonth}. + *

+ * This returns a {@code YearMonth} formed from this year and the specified month. + * All possible combinations of year and month are valid. + *

+ * This method can be used as part of a chain to produce a date: + *

+             * LocalDate date = year.atMonth(month).atDay(day);
+             * 
+ */ + // @ts-ignore + public atMonth(month: number): java.time.YearMonth; + /** + * Combines this year with a month-day to create a {@code LocalDate}. + *

+ * This returns a {@code LocalDate} formed from this year and the specified month-day. + *

+ * A month-day of February 29th will be adjusted to February 28th in the resulting + * date if the year is not a leap year. + */ + // @ts-ignore + public atMonthDay(monthDay: java.time.MonthDay): java.time.LocalDate; + /** + * Compares this year to another year. + *

+ * The comparison is based on the value of the year. + * It is "consistent with equals", as defined by {@link Comparable}. + */ + // @ts-ignore + public compareTo(other: java.time.Year): number; + /** + * Checks if this year is after the specified year. + */ + // @ts-ignore + public isAfter(other: java.time.Year): boolean; + /** + * Checks if this year is before the specified year. + */ + // @ts-ignore + public isBefore(other: java.time.Year): boolean; + /** + * Checks if this year is equal to another year. + *

+ * The comparison is based on the time-line position of the years. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * A hash code for this year. + */ + // @ts-ignore + public hashCode(): number; + /** + * Outputs this year as a {@code String}. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.YearMonth.d.ts b/packages/types/dist/typings/jdk/java.time.YearMonth.d.ts new file mode 100644 index 00000000..67ac8647 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.YearMonth.d.ts @@ -0,0 +1,611 @@ +// @ts-nocheck +declare namespace java { + namespace time { + // @ts-ignore + class YearMonth extends java.lang.Object { + /** + * Obtains the current year-month from the system clock in the default time-zone. + *

+ * This will query the {@link Clock#systemDefaultZone() system clock} in the default + * time-zone to obtain the current year-month. + *

+ * Using this method will prevent the ability to use an alternate clock for testing + * because the clock is hard-coded. + */ + // @ts-ignore + public static now(): java.time.YearMonth; + /** + * Obtains the current year-month from the system clock in the specified time-zone. + *

+ * This will query the {@link Clock#system(ZoneId) system clock} to obtain the current year-month. + * Specifying the time-zone avoids dependence on the default time-zone. + *

+ * Using this method will prevent the ability to use an alternate clock for testing + * because the clock is hard-coded. + */ + // @ts-ignore + public static now(zone: java.time.ZoneId): java.time.YearMonth; + /** + * Obtains the current year-month from the specified clock. + *

+ * This will query the specified clock to obtain the current year-month. + * Using this method allows the use of an alternate clock for testing. + * The alternate clock may be introduced using {@link Clock dependency injection}. + */ + // @ts-ignore + public static now(clock: java.time.Clock): java.time.YearMonth; + /** + * Obtains an instance of {@code YearMonth} from a year and month. + */ + // @ts-ignore + public static of(year: number, month: java.time.Month): java.time.YearMonth; + /** + * Obtains an instance of {@code YearMonth} from a year and month. + */ + // @ts-ignore + public static of(year: number, month: number): java.time.YearMonth; + /** + * Obtains an instance of {@code YearMonth} from a temporal object. + *

+ * This obtains a year-month based on the specified temporal. + * A {@code TemporalAccessor} represents an arbitrary set of date and time information, + * which this factory converts to an instance of {@code YearMonth}. + *

+ * The conversion extracts the {@link ChronoField#YEAR YEAR} and + * {@link ChronoField#MONTH_OF_YEAR MONTH_OF_YEAR} fields. + * The extraction is only permitted if the temporal object has an ISO + * chronology, or can be converted to a {@code LocalDate}. + *

+ * This method matches the signature of the functional interface {@link TemporalQuery} + * allowing it to be used as a query via method reference, {@code YearMonth::from}. + */ + // @ts-ignore + public static from(temporal: java.time.temporal.TemporalAccessor): java.time.YearMonth; + /** + * Obtains an instance of {@code YearMonth} from a text string such as {@code 2007-12}. + *

+ * The string must represent a valid year-month. + * The format must be {@code uuuu-MM}. + * Years outside the range 0000 to 9999 must be prefixed by the plus or minus symbol. + */ + // @ts-ignore + public static parse(text: java.lang.CharSequence): java.time.YearMonth; + /** + * Obtains an instance of {@code YearMonth} from a text string using a specific formatter. + *

+ * The text is parsed using the formatter, returning a year-month. + */ + // @ts-ignore + public static parse(text: java.lang.CharSequence, formatter: java.time.format.DateTimeFormatter): java.time.YearMonth; + /** + * Checks if the specified field is supported. + *

+ * This checks if this year-month can be queried for the specified field. + * If false, then calling the {@link #range(TemporalField) range}, + * {@link #get(TemporalField) get} and {@link #with(TemporalField, long)} + * methods will throw an exception. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The supported fields are: + *

    + *
  • {@code MONTH_OF_YEAR} + *
  • {@code PROLEPTIC_MONTH} + *
  • {@code YEAR_OF_ERA} + *
  • {@code YEAR} + *
  • {@code ERA} + *
+ * All other {@code ChronoField} instances will return false. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.isSupportedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the field is supported is determined by the field. + */ + // @ts-ignore + public isSupported(field: java.time.temporal.TemporalField): boolean; + /** + * Checks if the specified unit is supported. + *

+ * This checks if the specified unit can be added to, or subtracted from, this year-month. + * If false, then calling the {@link #plus(long, TemporalUnit)} and + * {@link #minus(long, TemporalUnit) minus} methods will throw an exception. + *

+ * If the unit is a {@link ChronoUnit} then the query is implemented here. + * The supported units are: + *

    + *
  • {@code MONTHS} + *
  • {@code YEARS} + *
  • {@code DECADES} + *
  • {@code CENTURIES} + *
  • {@code MILLENNIA} + *
  • {@code ERAS} + *
+ * All other {@code ChronoUnit} instances will return false. + *

+ * If the unit is not a {@code ChronoUnit}, then the result of this method + * is obtained by invoking {@code TemporalUnit.isSupportedBy(Temporal)} + * passing {@code this} as the argument. + * Whether the unit is supported is determined by the unit. + */ + // @ts-ignore + public isSupported(unit: java.time.temporal.TemporalUnit): boolean; + /** + * Gets the range of valid values for the specified field. + *

+ * The range object expresses the minimum and maximum valid values for a field. + * This year-month is used to enhance the accuracy of the returned range. + * If it is not possible to return the range, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@link #isSupported(TemporalField) supported fields} will return + * appropriate range instances. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.rangeRefinedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the range can be obtained is determined by the field. + */ + // @ts-ignore + public range(field: java.time.temporal.TemporalField): java.time.temporal.ValueRange; + /** + * Gets the value of the specified field from this year-month as an {@code int}. + *

+ * This queries this year-month for the value of the specified field. + * The returned value will always be within the valid range of values for the field. + * If it is not possible to return the value, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@link #isSupported(TemporalField) supported fields} will return valid + * values based on this year-month, except {@code PROLEPTIC_MONTH} which is too + * large to fit in an {@code int} and throw a {@code DateTimeException}. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)} + * passing {@code this} as the argument. Whether the value can be obtained, + * and what the value represents, is determined by the field. + */ + // @ts-ignore + public get(field: java.time.temporal.TemporalField): number; + /** + * Gets the value of the specified field from this year-month as a {@code long}. + *

+ * This queries this year-month for the value of the specified field. + * If it is not possible to return the value, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@link #isSupported(TemporalField) supported fields} will return valid + * values based on this year-month. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)} + * passing {@code this} as the argument. Whether the value can be obtained, + * and what the value represents, is determined by the field. + */ + // @ts-ignore + public getLong(field: java.time.temporal.TemporalField): number; + /** + * Gets the year field. + *

+ * This method returns the primitive {@code int} value for the year. + *

+ * The year returned by this method is proleptic as per {@code get(YEAR)}. + */ + // @ts-ignore + public getYear(): number; + /** + * Gets the month-of-year field from 1 to 12. + *

+ * This method returns the month as an {@code int} from 1 to 12. + * Application code is frequently clearer if the enum {@link Month} + * is used by calling {@link #getMonth()}. + */ + // @ts-ignore + public getMonthValue(): number; + /** + * Gets the month-of-year field using the {@code Month} enum. + *

+ * This method returns the enum {@link Month} for the month. + * This avoids confusion as to what {@code int} values mean. + * If you need access to the primitive {@code int} value then the enum + * provides the {@link Month#getValue() int value}. + */ + // @ts-ignore + public getMonth(): java.time.Month; + /** + * Checks if the year is a leap year, according to the ISO proleptic + * calendar system rules. + *

+ * This method applies the current rules for leap years across the whole time-line. + * In general, a year is a leap year if it is divisible by four without + * remainder. However, years divisible by 100, are not leap years, with + * the exception of years divisible by 400 which are. + *

+ * For example, 1904 is a leap year it is divisible by 4. + * 1900 was not a leap year as it is divisible by 100, however 2000 was a + * leap year as it is divisible by 400. + *

+ * The calculation is proleptic - applying the same rules into the far future and far past. + * This is historically inaccurate, but is correct for the ISO-8601 standard. + */ + // @ts-ignore + public isLeapYear(): boolean; + /** + * Checks if the day-of-month is valid for this year-month. + *

+ * This method checks whether this year and month and the input day form + * a valid date. + */ + // @ts-ignore + public isValidDay(dayOfMonth: number): boolean; + /** + * Returns the length of the month, taking account of the year. + *

+ * This returns the length of the month in days. + * For example, a date in January would return 31. + */ + // @ts-ignore + public lengthOfMonth(): number; + /** + * Returns the length of the year. + *

+ * This returns the length of the year in days, either 365 or 366. + */ + // @ts-ignore + public lengthOfYear(): number; + /** + * Returns an adjusted copy of this year-month. + *

+ * This returns a {@code YearMonth}, based on this one, with the year-month adjusted. + * The adjustment takes place using the specified adjuster strategy object. + * Read the documentation of the adjuster to understand what adjustment will be made. + *

+ * A simple adjuster might simply set the one of the fields, such as the year field. + * A more complex adjuster might set the year-month to the next month that + * Halley's comet will pass the Earth. + *

+ * The result of this method is obtained by invoking the + * {@link TemporalAdjuster#adjustInto(Temporal)} method on the + * specified adjuster passing {@code this} as the argument. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public with(adjuster: java.time.temporal.TemporalAdjuster): java.time.YearMonth; + /** + * Returns a copy of this year-month with the specified field set to a new value. + *

+ * This returns a {@code YearMonth}, based on this one, with the value + * for the specified field changed. + * This can be used to change any supported field, such as the year or month. + * If it is not possible to set the value, because the field is not supported or for + * some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the adjustment is implemented here. + * The supported fields behave as follows: + *

    + *
  • {@code MONTH_OF_YEAR} - + * Returns a {@code YearMonth} with the specified month-of-year. + * The year will be unchanged. + *
  • {@code PROLEPTIC_MONTH} - + * Returns a {@code YearMonth} with the specified proleptic-month. + * This completely replaces the year and month of this object. + *
  • {@code YEAR_OF_ERA} - + * Returns a {@code YearMonth} with the specified year-of-era + * The month and era will be unchanged. + *
  • {@code YEAR} - + * Returns a {@code YearMonth} with the specified year. + * The month will be unchanged. + *
  • {@code ERA} - + * Returns a {@code YearMonth} with the specified era. + * The month and year-of-era will be unchanged. + *
+ *

+ * In all cases, if the new value is outside the valid range of values for the field + * then a {@code DateTimeException} will be thrown. + *

+ * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.adjustInto(Temporal, long)} + * passing {@code this} as the argument. In this case, the field determines + * whether and how to adjust the instant. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public with(field: java.time.temporal.TemporalField, newValue: number): java.time.YearMonth; + /** + * Returns a copy of this {@code YearMonth} with the year altered. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withYear(year: number): java.time.YearMonth; + /** + * Returns a copy of this {@code YearMonth} with the month-of-year altered. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withMonth(month: number): java.time.YearMonth; + /** + * Returns a copy of this year-month with the specified amount added. + *

+ * This returns a {@code YearMonth}, based on this one, with the specified amount added. + * The amount is typically {@link Period} but may be any other type implementing + * the {@link TemporalAmount} interface. + *

+ * The calculation is delegated to the amount object by calling + * {@link TemporalAmount#addTo(Temporal)}. The amount implementation is free + * to implement the addition in any way it wishes, however it typically + * calls back to {@link #plus(long, TemporalUnit)}. Consult the documentation + * of the amount implementation to determine if it can be successfully added. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plus(amountToAdd: java.time.temporal.TemporalAmount): java.time.YearMonth; + /** + * Returns a copy of this year-month with the specified amount added. + *

+ * This returns a {@code YearMonth}, based on this one, with the amount + * in terms of the unit added. If it is not possible to add the amount, because the + * unit is not supported or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoUnit} then the addition is implemented here. + * The supported fields behave as follows: + *

    + *
  • {@code MONTHS} - + * Returns a {@code YearMonth} with the specified number of months added. + * This is equivalent to {@link #plusMonths(long)}. + *
  • {@code YEARS} - + * Returns a {@code YearMonth} with the specified number of years added. + * This is equivalent to {@link #plusYears(long)}. + *
  • {@code DECADES} - + * Returns a {@code YearMonth} with the specified number of decades added. + * This is equivalent to calling {@link #plusYears(long)} with the amount + * multiplied by 10. + *
  • {@code CENTURIES} - + * Returns a {@code YearMonth} with the specified number of centuries added. + * This is equivalent to calling {@link #plusYears(long)} with the amount + * multiplied by 100. + *
  • {@code MILLENNIA} - + * Returns a {@code YearMonth} with the specified number of millennia added. + * This is equivalent to calling {@link #plusYears(long)} with the amount + * multiplied by 1,000. + *
  • {@code ERAS} - + * Returns a {@code YearMonth} with the specified number of eras added. + * Only two eras are supported so the amount must be one, zero or minus one. + * If the amount is non-zero then the year is changed such that the year-of-era + * is unchanged. + *
+ *

+ * All other {@code ChronoUnit} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoUnit}, then the result of this method + * is obtained by invoking {@code TemporalUnit.addTo(Temporal, long)} + * passing {@code this} as the argument. In this case, the unit determines + * whether and how to perform the addition. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plus(amountToAdd: number, unit: java.time.temporal.TemporalUnit): java.time.YearMonth; + /** + * Returns a copy of this {@code YearMonth} with the specified number of years added. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusYears(yearsToAdd: number): java.time.YearMonth; + /** + * Returns a copy of this {@code YearMonth} with the specified number of months added. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusMonths(monthsToAdd: number): java.time.YearMonth; + /** + * Returns a copy of this year-month with the specified amount subtracted. + *

+ * This returns a {@code YearMonth}, based on this one, with the specified amount subtracted. + * The amount is typically {@link Period} but may be any other type implementing + * the {@link TemporalAmount} interface. + *

+ * The calculation is delegated to the amount object by calling + * {@link TemporalAmount#subtractFrom(Temporal)}. The amount implementation is free + * to implement the subtraction in any way it wishes, however it typically + * calls back to {@link #minus(long, TemporalUnit)}. Consult the documentation + * of the amount implementation to determine if it can be successfully subtracted. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minus(amountToSubtract: java.time.temporal.TemporalAmount): java.time.YearMonth; + /** + * Returns a copy of this year-month with the specified amount subtracted. + *

+ * This returns a {@code YearMonth}, based on this one, with the amount + * in terms of the unit subtracted. If it is not possible to subtract the amount, + * because the unit is not supported or for some other reason, an exception is thrown. + *

+ * This method is equivalent to {@link #plus(long, TemporalUnit)} with the amount negated. + * See that method for a full description of how addition, and thus subtraction, works. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minus(amountToSubtract: number, unit: java.time.temporal.TemporalUnit): java.time.YearMonth; + /** + * Returns a copy of this {@code YearMonth} with the specified number of years subtracted. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusYears(yearsToSubtract: number): java.time.YearMonth; + /** + * Returns a copy of this {@code YearMonth} with the specified number of months subtracted. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusMonths(monthsToSubtract: number): java.time.YearMonth; + /** + * Queries this year-month using the specified query. + *

+ * This queries this year-month using the specified query strategy object. + * The {@code TemporalQuery} object defines the logic to be used to + * obtain the result. Read the documentation of the query to understand + * what the result of this method will be. + *

+ * The result of this method is obtained by invoking the + * {@link TemporalQuery#queryFrom(TemporalAccessor)} method on the + * specified query passing {@code this} as the argument. + */ + // @ts-ignore + public query(query: java.time.temporal.TemporalQuery): java.lang.Object; + /** + * Adjusts the specified temporal object to have this year-month. + *

+ * This returns a temporal object of the same observable type as the input + * with the year and month changed to be the same as this. + *

+ * The adjustment is equivalent to using {@link Temporal#with(TemporalField, long)} + * passing {@link ChronoField#PROLEPTIC_MONTH} as the field. + * If the specified temporal object does not use the ISO calendar system then + * a {@code DateTimeException} is thrown. + *

+ * In most cases, it is clearer to reverse the calling pattern by using + * {@link Temporal#with(TemporalAdjuster)}: + *

+             * // these two lines are equivalent, but the second approach is recommended
+             * temporal = thisYearMonth.adjustInto(temporal);
+             * temporal = temporal.with(thisYearMonth);
+             * 
+ *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public adjustInto(temporal: java.time.temporal.Temporal): java.time.temporal.Temporal; + /** + * Calculates the amount of time until another year-month in terms of the specified unit. + *

+ * This calculates the amount of time between two {@code YearMonth} + * objects in terms of a single {@code TemporalUnit}. + * The start and end points are {@code this} and the specified year-month. + * The result will be negative if the end is before the start. + * The {@code Temporal} passed to this method is converted to a + * {@code YearMonth} using {@link #from(TemporalAccessor)}. + * For example, the amount in years between two year-months can be calculated + * using {@code startYearMonth.until(endYearMonth, YEARS)}. + *

+ * The calculation returns a whole number, representing the number of + * complete units between the two year-months. + * For example, the amount in decades between 2012-06 and 2032-05 + * will only be one decade as it is one month short of two decades. + *

+ * There are two equivalent ways of using this method. + * The first is to invoke this method. + * The second is to use {@link TemporalUnit#between(Temporal, Temporal)}: + *

+             * // these two lines are equivalent
+             * amount = start.until(end, MONTHS);
+             * amount = MONTHS.between(start, end);
+             * 
+ * The choice should be made based on which makes the code more readable. + *

+ * The calculation is implemented in this method for {@link ChronoUnit}. + * The units {@code MONTHS}, {@code YEARS}, {@code DECADES}, + * {@code CENTURIES}, {@code MILLENNIA} and {@code ERAS} are supported. + * Other {@code ChronoUnit} values will throw an exception. + *

+ * If the unit is not a {@code ChronoUnit}, then the result of this method + * is obtained by invoking {@code TemporalUnit.between(Temporal, Temporal)} + * passing {@code this} as the first argument and the converted input temporal + * as the second argument. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public until(endExclusive: java.time.temporal.Temporal, unit: java.time.temporal.TemporalUnit): number; + /** + * Formats this year-month using the specified formatter. + *

+ * This year-month will be passed to the formatter to produce a string. + */ + // @ts-ignore + public format(formatter: java.time.format.DateTimeFormatter): string; + /** + * Combines this year-month with a day-of-month to create a {@code LocalDate}. + *

+ * This returns a {@code LocalDate} formed from this year-month and the specified day-of-month. + *

+ * The day-of-month value must be valid for the year-month. + *

+ * This method can be used as part of a chain to produce a date: + *

+             * LocalDate date = year.atMonth(month).atDay(day);
+             * 
+ */ + // @ts-ignore + public atDay(dayOfMonth: number): java.time.LocalDate; + /** + * Returns a {@code LocalDate} at the end of the month. + *

+ * This returns a {@code LocalDate} based on this year-month. + * The day-of-month is set to the last valid day of the month, taking + * into account leap years. + *

+ * This method can be used as part of a chain to produce a date: + *

+             * LocalDate date = year.atMonth(month).atEndOfMonth();
+             * 
+ */ + // @ts-ignore + public atEndOfMonth(): java.time.LocalDate; + /** + * Compares this year-month to another year-month. + *

+ * The comparison is based first on the value of the year, then on the value of the month. + * It is "consistent with equals", as defined by {@link Comparable}. + */ + // @ts-ignore + public compareTo(other: java.time.YearMonth): number; + /** + * Checks if this year-month is after the specified year-month. + */ + // @ts-ignore + public isAfter(other: java.time.YearMonth): boolean; + /** + * Checks if this year-month is before the specified year-month. + */ + // @ts-ignore + public isBefore(other: java.time.YearMonth): boolean; + /** + * Checks if this year-month is equal to another year-month. + *

+ * The comparison is based on the time-line position of the year-months. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * A hash code for this year-month. + */ + // @ts-ignore + public hashCode(): number; + /** + * Outputs this year-month as a {@code String}, such as {@code 2007-12}. + *

+ * The output will be in the format {@code uuuu-MM}: + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.ZoneId.d.ts b/packages/types/dist/typings/jdk/java.time.ZoneId.d.ts new file mode 100644 index 00000000..289bcaaa --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.ZoneId.d.ts @@ -0,0 +1,176 @@ +// @ts-nocheck +declare namespace java { + namespace time { + // @ts-ignore + abstract class ZoneId extends java.lang.Object { + // @ts-ignore + public static SHORT_IDS: java.util.Map; + /** + * Gets the system default time-zone. + *

+ * This queries {@link TimeZone#getDefault()} to find the default time-zone + * and converts it to a {@code ZoneId}. If the system default time-zone is changed, + * then the result of this method will also change. + */ + // @ts-ignore + public static systemDefault(): java.time.ZoneId; + /** + * Gets the set of available zone IDs. + *

+ * This set includes the string form of all available region-based IDs. + * Offset-based zone IDs are not included in the returned set. + * The ID can be passed to {@link #of(String)} to create a {@code ZoneId}. + *

+ * The set of zone IDs can increase over time, although in a typical application + * the set of IDs is fixed. Each call to this method is thread-safe. + */ + // @ts-ignore + public static getAvailableZoneIds(): java.util.Set; + /** + * Obtains an instance of {@code ZoneId} using its ID using a map + * of aliases to supplement the standard zone IDs. + *

+ * Many users of time-zones use short abbreviations, such as PST for + * 'Pacific Standard Time' and PDT for 'Pacific Daylight Time'. + * These abbreviations are not unique, and so cannot be used as IDs. + * This method allows a map of string to time-zone to be setup and reused + * within an application. + */ + // @ts-ignore + public static of(zoneId: string, aliasMap: java.util.Map): java.time.ZoneId; + /** + * Obtains an instance of {@code ZoneId} from an ID ensuring that the + * ID is valid and available for use. + *

+ * This method parses the ID producing a {@code ZoneId} or {@code ZoneOffset}. + * A {@code ZoneOffset} is returned if the ID is 'Z', or starts with '+' or '-'. + * The result will always be a valid ID for which {@link ZoneRules} can be obtained. + *

+ * Parsing matches the zone ID step by step as follows. + *

    + *
  • If the zone ID equals 'Z', the result is {@code ZoneOffset.UTC}. + *
  • If the zone ID consists of a single letter, the zone ID is invalid + * and {@code DateTimeException} is thrown. + *
  • If the zone ID starts with '+' or '-', the ID is parsed as a + * {@code ZoneOffset} using {@link ZoneOffset#of(String)}. + *
  • If the zone ID equals 'GMT', 'UTC' or 'UT' then the result is a {@code ZoneId} + * with the same ID and rules equivalent to {@code ZoneOffset.UTC}. + *
  • If the zone ID starts with 'UTC+', 'UTC-', 'GMT+', 'GMT-', 'UT+' or 'UT-' + * then the ID is a prefixed offset-based ID. The ID is split in two, with + * a two or three letter prefix and a suffix starting with the sign. + * The suffix is parsed as a {@link ZoneOffset#of(String) ZoneOffset}. + * The result will be a {@code ZoneId} with the specified UTC/GMT/UT prefix + * and the normalized offset ID as per {@link ZoneOffset#getId()}. + * The rules of the returned {@code ZoneId} will be equivalent to the + * parsed {@code ZoneOffset}. + *
  • All other IDs are parsed as region-based zone IDs. Region IDs must + * match the regular expression [A-Za-z][A-Za-z0-9~/._+-]+ + * otherwise a {@code DateTimeException} is thrown. If the zone ID is not + * in the configured set of IDs, {@code ZoneRulesException} is thrown. + * The detailed format of the region ID depends on the group supplying the data. + * The default set of data is supplied by the IANA Time Zone Database (TZDB). + * This has region IDs of the form '{area}/{city}', such as 'Europe/Paris' or 'America/New_York'. + * This is compatible with most IDs from {@link java.util.TimeZone}. + *
+ */ + // @ts-ignore + public static of(zoneId: string): java.time.ZoneId; + /** + * Obtains an instance of {@code ZoneId} wrapping an offset. + *

+ * If the prefix is "GMT", "UTC", or "UT" a {@code ZoneId} + * with the prefix and the non-zero offset is returned. + * If the prefix is empty {@code ""} the {@code ZoneOffset} is returned. + */ + // @ts-ignore + public static ofOffset(prefix: string, offset: java.time.ZoneOffset): java.time.ZoneId; + /** + * Obtains an instance of {@code ZoneId} from a temporal object. + *

+ * This obtains a zone based on the specified temporal. + * A {@code TemporalAccessor} represents an arbitrary set of date and time information, + * which this factory converts to an instance of {@code ZoneId}. + *

+ * A {@code TemporalAccessor} represents some form of date and time information. + * This factory converts the arbitrary temporal object to an instance of {@code ZoneId}. + *

+ * The conversion will try to obtain the zone in a way that favours region-based + * zones over offset-based zones using {@link TemporalQueries#zone()}. + *

+ * This method matches the signature of the functional interface {@link TemporalQuery} + * allowing it to be used as a query via method reference, {@code ZoneId::from}. + */ + // @ts-ignore + public static from(temporal: java.time.temporal.TemporalAccessor): java.time.ZoneId; + /** + * Gets the unique time-zone ID. + *

+ * This ID uniquely defines this object. + * The format of an offset based ID is defined by {@link ZoneOffset#getId()}. + */ + // @ts-ignore + public abstract getId(): string; + /** + * Gets the textual representation of the zone, such as 'British Time' or + * '+02:00'. + *

+ * This returns the textual name used to identify the time-zone ID, + * suitable for presentation to the user. + * The parameters control the style of the returned text and the locale. + *

+ * If no textual mapping is found then the {@link #getId() full ID} is returned. + */ + // @ts-ignore + public getDisplayName(style: java.time.format.TextStyle, locale: java.util.Locale): string; + /** + * Gets the time-zone rules for this ID allowing calculations to be performed. + *

+ * The rules provide the functionality associated with a time-zone, + * such as finding the offset for a given instant or local date-time. + *

+ * A time-zone can be invalid if it is deserialized in a Java Runtime which + * does not have the same rules loaded as the Java Runtime that stored it. + * In this case, calling this method will throw a {@code ZoneRulesException}. + *

+ * The rules are supplied by {@link ZoneRulesProvider}. An advanced provider may + * support dynamic updates to the rules without restarting the Java Runtime. + * If so, then the result of this method may change over time. + * Each individual call will be still remain thread-safe. + *

+ * {@link ZoneOffset} will always return a set of rules where the offset never changes. + */ + // @ts-ignore + public abstract getRules(): java.time.zone.ZoneRules; + /** + * Normalizes the time-zone ID, returning a {@code ZoneOffset} where possible. + *

+ * The returns a normalized {@code ZoneId} that can be used in place of this ID. + * The result will have {@code ZoneRules} equivalent to those returned by this object, + * however the ID returned by {@code getId()} may be different. + *

+ * The normalization checks if the rules of this {@code ZoneId} have a fixed offset. + * If they do, then the {@code ZoneOffset} equal to that offset is returned. + * Otherwise {@code this} is returned. + */ + // @ts-ignore + public normalized(): java.time.ZoneId; + /** + * Checks if this time-zone ID is equal to another time-zone ID. + *

+ * The comparison is based on the ID. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * A hash code for this time-zone ID. + */ + // @ts-ignore + public hashCode(): number; + /** + * Outputs this zone as a {@code String}, using the ID. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.ZoneOffset.d.ts b/packages/types/dist/typings/jdk/java.time.ZoneOffset.d.ts new file mode 100644 index 00000000..932bef16 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.ZoneOffset.d.ts @@ -0,0 +1,260 @@ +// @ts-nocheck +declare namespace java { + namespace time { + // @ts-ignore + class ZoneOffset extends java.time.ZoneId { + // @ts-ignore + public static UTC: java.time.ZoneOffset; + // @ts-ignore + public static MIN: java.time.ZoneOffset; + // @ts-ignore + public static MAX: java.time.ZoneOffset; + /** + * Obtains an instance of {@code ZoneOffset} using the ID. + *

+ * This method parses the string ID of a {@code ZoneOffset} to + * return an instance. The parsing accepts all the formats generated by + * {@link #getId()}, plus some additional formats: + *

    + *
  • {@code Z} - for UTC + *
  • {@code +h} + *
  • {@code +hh} + *
  • {@code +hh:mm} + *
  • {@code -hh:mm} + *
  • {@code +hhmm} + *
  • {@code -hhmm} + *
  • {@code +hh:mm:ss} + *
  • {@code -hh:mm:ss} + *
  • {@code +hhmmss} + *
  • {@code -hhmmss} + *
+ * Note that ± means either the plus or minus symbol. + *

+ * The ID of the returned offset will be normalized to one of the formats + * described by {@link #getId()}. + *

+ * The maximum supported range is from +18:00 to -18:00 inclusive. + */ + // @ts-ignore + public static of(offsetId: string): java.time.ZoneOffset; + /** + * Obtains an instance of {@code ZoneOffset} using an offset in hours. + */ + // @ts-ignore + public static ofHours(hours: number): java.time.ZoneOffset; + /** + * Obtains an instance of {@code ZoneOffset} using an offset in + * hours and minutes. + *

+ * The sign of the hours and minutes components must match. + * Thus, if the hours is negative, the minutes must be negative or zero. + * If the hours is zero, the minutes may be positive, negative or zero. + */ + // @ts-ignore + public static ofHoursMinutes(hours: number, minutes: number): java.time.ZoneOffset; + /** + * Obtains an instance of {@code ZoneOffset} using an offset in + * hours, minutes and seconds. + *

+ * The sign of the hours, minutes and seconds components must match. + * Thus, if the hours is negative, the minutes and seconds must be negative or zero. + */ + // @ts-ignore + public static ofHoursMinutesSeconds(hours: number, minutes: number, seconds: number): java.time.ZoneOffset; + /** + * Obtains an instance of {@code ZoneOffset} from a temporal object. + *

+ * This obtains an offset based on the specified temporal. + * A {@code TemporalAccessor} represents an arbitrary set of date and time information, + * which this factory converts to an instance of {@code ZoneOffset}. + *

+ * A {@code TemporalAccessor} represents some form of date and time information. + * This factory converts the arbitrary temporal object to an instance of {@code ZoneOffset}. + *

+ * The conversion uses the {@link TemporalQueries#offset()} query, which relies + * on extracting the {@link ChronoField#OFFSET_SECONDS OFFSET_SECONDS} field. + *

+ * This method matches the signature of the functional interface {@link TemporalQuery} + * allowing it to be used as a query via method reference, {@code ZoneOffset::from}. + */ + // @ts-ignore + public static from(temporal: java.time.temporal.TemporalAccessor): java.time.ZoneOffset; + /** + * Obtains an instance of {@code ZoneOffset} specifying the total offset in seconds + *

+ * The offset must be in the range {@code -18:00} to {@code +18:00}, which corresponds to -64800 to +64800. + */ + // @ts-ignore + public static ofTotalSeconds(totalSeconds: number): java.time.ZoneOffset; + /** + * Gets the total zone offset in seconds. + *

+ * This is the primary way to access the offset amount. + * It returns the total of the hours, minutes and seconds fields as a + * single offset that can be added to a time. + */ + // @ts-ignore + public getTotalSeconds(): number; + /** + * Gets the normalized zone offset ID. + *

+ * The ID is minor variation to the standard ISO-8601 formatted string + * for the offset. There are three formats: + *

    + *
  • {@code Z} - for UTC (ISO-8601) + *
  • {@code +hh:mm} or {@code -hh:mm} - if the seconds are zero (ISO-8601) + *
  • {@code +hh:mm:ss} or {@code -hh:mm:ss} - if the seconds are non-zero (not ISO-8601) + *
+ */ + // @ts-ignore + public getId(): string; + /** + * Gets the associated time-zone rules. + *

+ * The rules will always return this offset when queried. + * The implementation class is immutable, thread-safe and serializable. + */ + // @ts-ignore + public getRules(): java.time.zone.ZoneRules; + /** + * Checks if the specified field is supported. + *

+ * This checks if this offset can be queried for the specified field. + * If false, then calling the {@link #range(TemporalField) range} and + * {@link #get(TemporalField) get} methods will throw an exception. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@code OFFSET_SECONDS} field returns true. + * All other {@code ChronoField} instances will return false. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.isSupportedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the field is supported is determined by the field. + */ + // @ts-ignore + public isSupported(field: java.time.temporal.TemporalField): boolean; + /** + * Gets the range of valid values for the specified field. + *

+ * The range object expresses the minimum and maximum valid values for a field. + * This offset is used to enhance the accuracy of the returned range. + * If it is not possible to return the range, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@link #isSupported(TemporalField) supported fields} will return + * appropriate range instances. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.rangeRefinedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the range can be obtained is determined by the field. + */ + // @ts-ignore + public range(field: java.time.temporal.TemporalField): java.time.temporal.ValueRange; + /** + * Gets the value of the specified field from this offset as an {@code int}. + *

+ * This queries this offset for the value of the specified field. + * The returned value will always be within the valid range of values for the field. + * If it is not possible to return the value, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@code OFFSET_SECONDS} field returns the value of the offset. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)} + * passing {@code this} as the argument. Whether the value can be obtained, + * and what the value represents, is determined by the field. + */ + // @ts-ignore + public get(field: java.time.temporal.TemporalField): number; + /** + * Gets the value of the specified field from this offset as a {@code long}. + *

+ * This queries this offset for the value of the specified field. + * If it is not possible to return the value, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@code OFFSET_SECONDS} field returns the value of the offset. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)} + * passing {@code this} as the argument. Whether the value can be obtained, + * and what the value represents, is determined by the field. + */ + // @ts-ignore + public getLong(field: java.time.temporal.TemporalField): number; + /** + * Queries this offset using the specified query. + *

+ * This queries this offset using the specified query strategy object. + * The {@code TemporalQuery} object defines the logic to be used to + * obtain the result. Read the documentation of the query to understand + * what the result of this method will be. + *

+ * The result of this method is obtained by invoking the + * {@link TemporalQuery#queryFrom(TemporalAccessor)} method on the + * specified query passing {@code this} as the argument. + */ + // @ts-ignore + public query(query: java.time.temporal.TemporalQuery): java.lang.Object; + /** + * Adjusts the specified temporal object to have the same offset as this object. + *

+ * This returns a temporal object of the same observable type as the input + * with the offset changed to be the same as this. + *

+ * The adjustment is equivalent to using {@link Temporal#with(TemporalField, long)} + * passing {@link ChronoField#OFFSET_SECONDS} as the field. + *

+ * In most cases, it is clearer to reverse the calling pattern by using + * {@link Temporal#with(TemporalAdjuster)}: + *

+             * // these two lines are equivalent, but the second approach is recommended
+             * temporal = thisOffset.adjustInto(temporal);
+             * temporal = temporal.with(thisOffset);
+             * 
+ *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public adjustInto(temporal: java.time.temporal.Temporal): java.time.temporal.Temporal; + /** + * Compares this offset to another offset in descending order. + *

+ * The offsets are compared in the order that they occur for the same time + * of day around the world. Thus, an offset of {@code +10:00} comes before an + * offset of {@code +09:00} and so on down to {@code -18:00}. + *

+ * The comparison is "consistent with equals", as defined by {@link Comparable}. + */ + // @ts-ignore + public compareTo(other: java.time.ZoneOffset): number; + /** + * Checks if this offset is equal to another offset. + *

+ * The comparison is based on the amount of the offset in seconds. + * This is equivalent to a comparison by ID. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * A hash code for this offset. + */ + // @ts-ignore + public hashCode(): number; + /** + * Outputs this offset as a {@code String}, using the normalized ID. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.ZonedDateTime.d.ts b/packages/types/dist/typings/jdk/java.time.ZonedDateTime.d.ts new file mode 100644 index 00000000..a3607965 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.ZonedDateTime.d.ts @@ -0,0 +1,1256 @@ +// @ts-nocheck +declare namespace java { + namespace time { + // @ts-ignore + class ZonedDateTime extends java.lang.Object { + /** + * Obtains the current date-time from the system clock in the default time-zone. + *

+ * This will query the {@link Clock#systemDefaultZone() system clock} in the default + * time-zone to obtain the current date-time. + * The zone and offset will be set based on the time-zone in the clock. + *

+ * Using this method will prevent the ability to use an alternate clock for testing + * because the clock is hard-coded. + */ + // @ts-ignore + public static now(): java.time.ZonedDateTime; + /** + * Obtains the current date-time from the system clock in the specified time-zone. + *

+ * This will query the {@link Clock#system(ZoneId) system clock} to obtain the current date-time. + * Specifying the time-zone avoids dependence on the default time-zone. + * The offset will be calculated from the specified time-zone. + *

+ * Using this method will prevent the ability to use an alternate clock for testing + * because the clock is hard-coded. + */ + // @ts-ignore + public static now(zone: java.time.ZoneId): java.time.ZonedDateTime; + /** + * Obtains the current date-time from the specified clock. + *

+ * This will query the specified clock to obtain the current date-time. + * The zone and offset will be set based on the time-zone in the clock. + *

+ * Using this method allows the use of an alternate clock for testing. + * The alternate clock may be introduced using {@link Clock dependency injection}. + */ + // @ts-ignore + public static now(clock: java.time.Clock): java.time.ZonedDateTime; + /** + * Obtains an instance of {@code ZonedDateTime} from a local date and time. + *

+ * This creates a zoned date-time matching the input local date and time as closely as possible. + * Time-zone rules, such as daylight savings, mean that not every local date-time + * is valid for the specified zone, thus the local date-time may be adjusted. + *

+ * The local date time and first combined to form a local date-time. + * The local date-time is then resolved to a single instant on the time-line. + * This is achieved by finding a valid offset from UTC/Greenwich for the local + * date-time as defined by the {@link ZoneRules rules} of the zone ID. + *

+ * In most cases, there is only one valid offset for a local date-time. + * In the case of an overlap, when clocks are set back, there are two valid offsets. + * This method uses the earlier offset typically corresponding to "summer". + *

+ * In the case of a gap, when clocks jump forward, there is no valid offset. + * Instead, the local date-time is adjusted to be later by the length of the gap. + * For a typical one hour daylight savings change, the local date-time will be + * moved one hour later into the offset typically corresponding to "summer". + */ + // @ts-ignore + public static of(date: java.time.LocalDate, time: java.time.LocalTime, zone: java.time.ZoneId): java.time.ZonedDateTime; + /** + * Obtains an instance of {@code ZonedDateTime} from a local date-time. + *

+ * This creates a zoned date-time matching the input local date-time as closely as possible. + * Time-zone rules, such as daylight savings, mean that not every local date-time + * is valid for the specified zone, thus the local date-time may be adjusted. + *

+ * The local date-time is resolved to a single instant on the time-line. + * This is achieved by finding a valid offset from UTC/Greenwich for the local + * date-time as defined by the {@link ZoneRules rules} of the zone ID. + *

+ * In most cases, there is only one valid offset for a local date-time. + * In the case of an overlap, when clocks are set back, there are two valid offsets. + * This method uses the earlier offset typically corresponding to "summer". + *

+ * In the case of a gap, when clocks jump forward, there is no valid offset. + * Instead, the local date-time is adjusted to be later by the length of the gap. + * For a typical one hour daylight savings change, the local date-time will be + * moved one hour later into the offset typically corresponding to "summer". + */ + // @ts-ignore + public static of(localDateTime: java.time.LocalDateTime, zone: java.time.ZoneId): java.time.ZonedDateTime; + /** + * Obtains an instance of {@code ZonedDateTime} from a year, month, day, + * hour, minute, second, nanosecond and time-zone. + *

+ * This creates a zoned date-time matching the local date-time of the seven + * specified fields as closely as possible. + * Time-zone rules, such as daylight savings, mean that not every local date-time + * is valid for the specified zone, thus the local date-time may be adjusted. + *

+ * The local date-time is resolved to a single instant on the time-line. + * This is achieved by finding a valid offset from UTC/Greenwich for the local + * date-time as defined by the {@link ZoneRules rules} of the zone ID. + *

+ * In most cases, there is only one valid offset for a local date-time. + * In the case of an overlap, when clocks are set back, there are two valid offsets. + * This method uses the earlier offset typically corresponding to "summer". + *

+ * In the case of a gap, when clocks jump forward, there is no valid offset. + * Instead, the local date-time is adjusted to be later by the length of the gap. + * For a typical one hour daylight savings change, the local date-time will be + * moved one hour later into the offset typically corresponding to "summer". + *

+ * This method exists primarily for writing test cases. + * Non test-code will typically use other methods to create an offset time. + * {@code LocalDateTime} has five additional convenience variants of the + * equivalent factory method taking fewer arguments. + * They are not provided here to reduce the footprint of the API. + */ + // @ts-ignore + public static of(year: number, month: number, dayOfMonth: number, hour: number, minute: number, second: number, nanoOfSecond: number, zone: java.time.ZoneId): java.time.ZonedDateTime; + /** + * Obtains an instance of {@code ZonedDateTime} from a local date-time + * using the preferred offset if possible. + *

+ * The local date-time is resolved to a single instant on the time-line. + * This is achieved by finding a valid offset from UTC/Greenwich for the local + * date-time as defined by the {@link ZoneRules rules} of the zone ID. + *

+ * In most cases, there is only one valid offset for a local date-time. + * In the case of an overlap, where clocks are set back, there are two valid offsets. + * If the preferred offset is one of the valid offsets then it is used. + * Otherwise the earlier valid offset is used, typically corresponding to "summer". + *

+ * In the case of a gap, where clocks jump forward, there is no valid offset. + * Instead, the local date-time is adjusted to be later by the length of the gap. + * For a typical one hour daylight savings change, the local date-time will be + * moved one hour later into the offset typically corresponding to "summer". + */ + // @ts-ignore + public static ofLocal(localDateTime: java.time.LocalDateTime, zone: java.time.ZoneId, preferredOffset: java.time.ZoneOffset): java.time.ZonedDateTime; + /** + * Obtains an instance of {@code ZonedDateTime} from an {@code Instant}. + *

+ * This creates a zoned date-time with the same instant as that specified. + * Calling {@link #toInstant()} will return an instant equal to the one used here. + *

+ * Converting an instant to a zoned date-time is simple as there is only one valid + * offset for each instant. + */ + // @ts-ignore + public static ofInstant(instant: java.time.Instant, zone: java.time.ZoneId): java.time.ZonedDateTime; + /** + * Obtains an instance of {@code ZonedDateTime} from the instant formed by combining + * the local date-time and offset. + *

+ * This creates a zoned date-time by {@link LocalDateTime#toInstant(ZoneOffset) combining} + * the {@code LocalDateTime} and {@code ZoneOffset}. + * This combination uniquely specifies an instant without ambiguity. + *

+ * Converting an instant to a zoned date-time is simple as there is only one valid + * offset for each instant. If the valid offset is different to the offset specified, + * then the date-time and offset of the zoned date-time will differ from those specified. + *

+ * If the {@code ZoneId} to be used is a {@code ZoneOffset}, this method is equivalent + * to {@link #of(LocalDateTime, ZoneId)}. + */ + // @ts-ignore + public static ofInstant(localDateTime: java.time.LocalDateTime, offset: java.time.ZoneOffset, zone: java.time.ZoneId): java.time.ZonedDateTime; + /** + * Obtains an instance of {@code ZonedDateTime} strictly validating the + * combination of local date-time, offset and zone ID. + *

+ * This creates a zoned date-time ensuring that the offset is valid for the + * local date-time according to the rules of the specified zone. + * If the offset is invalid, an exception is thrown. + */ + // @ts-ignore + public static ofStrict(localDateTime: java.time.LocalDateTime, offset: java.time.ZoneOffset, zone: java.time.ZoneId): java.time.ZonedDateTime; + /** + * Obtains an instance of {@code ZonedDateTime} from a temporal object. + *

+ * This obtains a zoned date-time based on the specified temporal. + * A {@code TemporalAccessor} represents an arbitrary set of date and time information, + * which this factory converts to an instance of {@code ZonedDateTime}. + *

+ * The conversion will first obtain a {@code ZoneId} from the temporal object, + * falling back to a {@code ZoneOffset} if necessary. It will then try to obtain + * an {@code Instant}, falling back to a {@code LocalDateTime} if necessary. + * The result will be either the combination of {@code ZoneId} or {@code ZoneOffset} + * with {@code Instant} or {@code LocalDateTime}. + * Implementations are permitted to perform optimizations such as accessing + * those fields that are equivalent to the relevant objects. + *

+ * This method matches the signature of the functional interface {@link TemporalQuery} + * allowing it to be used as a query via method reference, {@code ZonedDateTime::from}. + */ + // @ts-ignore + public static from(temporal: java.time.temporal.TemporalAccessor): java.time.ZonedDateTime; + /** + * Obtains an instance of {@code ZonedDateTime} from a text string such as + * {@code 2007-12-03T10:15:30+01:00[Europe/Paris]}. + *

+ * The string must represent a valid date-time and is parsed using + * {@link java.time.format.DateTimeFormatter#ISO_ZONED_DATE_TIME}. + */ + // @ts-ignore + public static parse(text: java.lang.CharSequence): java.time.ZonedDateTime; + /** + * Obtains an instance of {@code ZonedDateTime} from a text string using a specific formatter. + *

+ * The text is parsed using the formatter, returning a date-time. + */ + // @ts-ignore + public static parse(text: java.lang.CharSequence, formatter: java.time.format.DateTimeFormatter): java.time.ZonedDateTime; + /** + * Checks if the specified field is supported. + *

+ * This checks if this date-time can be queried for the specified field. + * If false, then calling the {@link #range(TemporalField) range}, + * {@link #get(TemporalField) get} and {@link #with(TemporalField, long)} + * methods will throw an exception. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The supported fields are: + *

    + *
  • {@code NANO_OF_SECOND} + *
  • {@code NANO_OF_DAY} + *
  • {@code MICRO_OF_SECOND} + *
  • {@code MICRO_OF_DAY} + *
  • {@code MILLI_OF_SECOND} + *
  • {@code MILLI_OF_DAY} + *
  • {@code SECOND_OF_MINUTE} + *
  • {@code SECOND_OF_DAY} + *
  • {@code MINUTE_OF_HOUR} + *
  • {@code MINUTE_OF_DAY} + *
  • {@code HOUR_OF_AMPM} + *
  • {@code CLOCK_HOUR_OF_AMPM} + *
  • {@code HOUR_OF_DAY} + *
  • {@code CLOCK_HOUR_OF_DAY} + *
  • {@code AMPM_OF_DAY} + *
  • {@code DAY_OF_WEEK} + *
  • {@code ALIGNED_DAY_OF_WEEK_IN_MONTH} + *
  • {@code ALIGNED_DAY_OF_WEEK_IN_YEAR} + *
  • {@code DAY_OF_MONTH} + *
  • {@code DAY_OF_YEAR} + *
  • {@code EPOCH_DAY} + *
  • {@code ALIGNED_WEEK_OF_MONTH} + *
  • {@code ALIGNED_WEEK_OF_YEAR} + *
  • {@code MONTH_OF_YEAR} + *
  • {@code PROLEPTIC_MONTH} + *
  • {@code YEAR_OF_ERA} + *
  • {@code YEAR} + *
  • {@code ERA} + *
  • {@code INSTANT_SECONDS} + *
  • {@code OFFSET_SECONDS} + *
+ * All other {@code ChronoField} instances will return false. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.isSupportedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the field is supported is determined by the field. + */ + // @ts-ignore + public isSupported(field: java.time.temporal.TemporalField): boolean; + /** + * Checks if the specified unit is supported. + *

+ * This checks if the specified unit can be added to, or subtracted from, this date-time. + * If false, then calling the {@link #plus(long, TemporalUnit)} and + * {@link #minus(long, TemporalUnit) minus} methods will throw an exception. + *

+ * If the unit is a {@link ChronoUnit} then the query is implemented here. + * The supported units are: + *

    + *
  • {@code NANOS} + *
  • {@code MICROS} + *
  • {@code MILLIS} + *
  • {@code SECONDS} + *
  • {@code MINUTES} + *
  • {@code HOURS} + *
  • {@code HALF_DAYS} + *
  • {@code DAYS} + *
  • {@code WEEKS} + *
  • {@code MONTHS} + *
  • {@code YEARS} + *
  • {@code DECADES} + *
  • {@code CENTURIES} + *
  • {@code MILLENNIA} + *
  • {@code ERAS} + *
+ * All other {@code ChronoUnit} instances will return false. + *

+ * If the unit is not a {@code ChronoUnit}, then the result of this method + * is obtained by invoking {@code TemporalUnit.isSupportedBy(Temporal)} + * passing {@code this} as the argument. + * Whether the unit is supported is determined by the unit. + */ + // @ts-ignore + public isSupported(unit: java.time.temporal.TemporalUnit): boolean; + /** + * Gets the range of valid values for the specified field. + *

+ * The range object expresses the minimum and maximum valid values for a field. + * This date-time is used to enhance the accuracy of the returned range. + * If it is not possible to return the range, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@link #isSupported(TemporalField) supported fields} will return + * appropriate range instances. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.rangeRefinedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the range can be obtained is determined by the field. + */ + // @ts-ignore + public range(field: java.time.temporal.TemporalField): java.time.temporal.ValueRange; + /** + * Gets the value of the specified field from this date-time as an {@code int}. + *

+ * This queries this date-time for the value of the specified field. + * The returned value will always be within the valid range of values for the field. + * If it is not possible to return the value, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@link #isSupported(TemporalField) supported fields} will return valid + * values based on this date-time, except {@code NANO_OF_DAY}, {@code MICRO_OF_DAY}, + * {@code EPOCH_DAY}, {@code PROLEPTIC_MONTH} and {@code INSTANT_SECONDS} which are too + * large to fit in an {@code int} and throw a {@code DateTimeException}. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)} + * passing {@code this} as the argument. Whether the value can be obtained, + * and what the value represents, is determined by the field. + */ + // @ts-ignore + public get(field: java.time.temporal.TemporalField): number; + /** + * Gets the value of the specified field from this date-time as a {@code long}. + *

+ * This queries this date-time for the value of the specified field. + * If it is not possible to return the value, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@link #isSupported(TemporalField) supported fields} will return valid + * values based on this date-time. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)} + * passing {@code this} as the argument. Whether the value can be obtained, + * and what the value represents, is determined by the field. + */ + // @ts-ignore + public getLong(field: java.time.temporal.TemporalField): number; + /** + * Gets the zone offset, such as '+01:00'. + *

+ * This is the offset of the local date-time from UTC/Greenwich. + */ + // @ts-ignore + public getOffset(): java.time.ZoneOffset; + /** + * Returns a copy of this date-time changing the zone offset to the + * earlier of the two valid offsets at a local time-line overlap. + *

+ * This method only has any effect when the local time-line overlaps, such as + * at an autumn daylight savings cutover. In this scenario, there are two + * valid offsets for the local date-time. Calling this method will return + * a zoned date-time with the earlier of the two selected. + *

+ * If this method is called when it is not an overlap, {@code this} + * is returned. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withEarlierOffsetAtOverlap(): java.time.ZonedDateTime; + /** + * Returns a copy of this date-time changing the zone offset to the + * later of the two valid offsets at a local time-line overlap. + *

+ * This method only has any effect when the local time-line overlaps, such as + * at an autumn daylight savings cutover. In this scenario, there are two + * valid offsets for the local date-time. Calling this method will return + * a zoned date-time with the later of the two selected. + *

+ * If this method is called when it is not an overlap, {@code this} + * is returned. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withLaterOffsetAtOverlap(): java.time.ZonedDateTime; + /** + * Gets the time-zone, such as 'Europe/Paris'. + *

+ * This returns the zone ID. This identifies the time-zone {@link ZoneRules rules} + * that determine when and how the offset from UTC/Greenwich changes. + *

+ * The zone ID may be same as the {@linkplain #getOffset() offset}. + * If this is true, then any future calculations, such as addition or subtraction, + * have no complex edge cases due to time-zone rules. + * See also {@link #withFixedOffsetZone()}. + */ + // @ts-ignore + public getZone(): java.time.ZoneId; + /** + * Returns a copy of this date-time with a different time-zone, + * retaining the local date-time if possible. + *

+ * This method changes the time-zone and retains the local date-time. + * The local date-time is only changed if it is invalid for the new zone, + * determined using the same approach as + * {@link #ofLocal(LocalDateTime, ZoneId, ZoneOffset)}. + *

+ * To change the zone and adjust the local date-time, + * use {@link #withZoneSameInstant(ZoneId)}. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withZoneSameLocal(zone: java.time.ZoneId): java.time.ZonedDateTime; + /** + * Returns a copy of this date-time with a different time-zone, + * retaining the instant. + *

+ * This method changes the time-zone and retains the instant. + * This normally results in a change to the local date-time. + *

+ * This method is based on retaining the same instant, thus gaps and overlaps + * in the local time-line have no effect on the result. + *

+ * To change the offset while keeping the local time, + * use {@link #withZoneSameLocal(ZoneId)}. + */ + // @ts-ignore + public withZoneSameInstant(zone: java.time.ZoneId): java.time.ZonedDateTime; + /** + * Returns a copy of this date-time with the zone ID set to the offset. + *

+ * This returns a zoned date-time where the zone ID is the same as {@link #getOffset()}. + * The local date-time, offset and instant of the result will be the same as in this date-time. + *

+ * Setting the date-time to a fixed single offset means that any future + * calculations, such as addition or subtraction, have no complex edge cases + * due to time-zone rules. + * This might also be useful when sending a zoned date-time across a network, + * as most protocols, such as ISO-8601, only handle offsets, + * and not region-based zone IDs. + *

+ * This is equivalent to {@code ZonedDateTime.of(zdt.toLocalDateTime(), zdt.getOffset())}. + */ + // @ts-ignore + public withFixedOffsetZone(): java.time.ZonedDateTime; + /** + * Gets the {@code LocalDateTime} part of this date-time. + *

+ * This returns a {@code LocalDateTime} with the same year, month, day and time + * as this date-time. + */ + // @ts-ignore + public toLocalDateTime(): java.time.LocalDateTime; + /** + * Gets the {@code LocalDate} part of this date-time. + *

+ * This returns a {@code LocalDate} with the same year, month and day + * as this date-time. + */ + // @ts-ignore + public toLocalDate(): java.time.LocalDate; + /** + * Gets the year field. + *

+ * This method returns the primitive {@code int} value for the year. + *

+ * The year returned by this method is proleptic as per {@code get(YEAR)}. + * To obtain the year-of-era, use {@code get(YEAR_OF_ERA)}. + */ + // @ts-ignore + public getYear(): number; + /** + * Gets the month-of-year field from 1 to 12. + *

+ * This method returns the month as an {@code int} from 1 to 12. + * Application code is frequently clearer if the enum {@link Month} + * is used by calling {@link #getMonth()}. + */ + // @ts-ignore + public getMonthValue(): number; + /** + * Gets the month-of-year field using the {@code Month} enum. + *

+ * This method returns the enum {@link Month} for the month. + * This avoids confusion as to what {@code int} values mean. + * If you need access to the primitive {@code int} value then the enum + * provides the {@link Month#getValue() int value}. + */ + // @ts-ignore + public getMonth(): java.time.Month; + /** + * Gets the day-of-month field. + *

+ * This method returns the primitive {@code int} value for the day-of-month. + */ + // @ts-ignore + public getDayOfMonth(): number; + /** + * Gets the day-of-year field. + *

+ * This method returns the primitive {@code int} value for the day-of-year. + */ + // @ts-ignore + public getDayOfYear(): number; + /** + * Gets the day-of-week field, which is an enum {@code DayOfWeek}. + *

+ * This method returns the enum {@link DayOfWeek} for the day-of-week. + * This avoids confusion as to what {@code int} values mean. + * If you need access to the primitive {@code int} value then the enum + * provides the {@link DayOfWeek#getValue() int value}. + *

+ * Additional information can be obtained from the {@code DayOfWeek}. + * This includes textual names of the values. + */ + // @ts-ignore + public getDayOfWeek(): java.time.DayOfWeek; + /** + * Gets the {@code LocalTime} part of this date-time. + *

+ * This returns a {@code LocalTime} with the same hour, minute, second and + * nanosecond as this date-time. + */ + // @ts-ignore + public toLocalTime(): java.time.LocalTime; + /** + * Gets the hour-of-day field. + */ + // @ts-ignore + public getHour(): number; + /** + * Gets the minute-of-hour field. + */ + // @ts-ignore + public getMinute(): number; + /** + * Gets the second-of-minute field. + */ + // @ts-ignore + public getSecond(): number; + /** + * Gets the nano-of-second field. + */ + // @ts-ignore + public getNano(): number; + /** + * Returns an adjusted copy of this date-time. + *

+ * This returns a {@code ZonedDateTime}, based on this one, with the date-time adjusted. + * The adjustment takes place using the specified adjuster strategy object. + * Read the documentation of the adjuster to understand what adjustment will be made. + *

+ * A simple adjuster might simply set the one of the fields, such as the year field. + * A more complex adjuster might set the date to the last day of the month. + * A selection of common adjustments is provided in + * {@link java.time.temporal.TemporalAdjusters TemporalAdjusters}. + * These include finding the "last day of the month" and "next Wednesday". + * Key date-time classes also implement the {@code TemporalAdjuster} interface, + * such as {@link Month} and {@link java.time.MonthDay MonthDay}. + * The adjuster is responsible for handling special cases, such as the varying + * lengths of month and leap years. + *

+ * For example this code returns a date on the last day of July: + *

+             * import static java.time.Month.*;
+             * import static java.time.temporal.TemporalAdjusters.*;
+             * result = zonedDateTime.with(JULY).with(lastDayOfMonth());
+             * 
+ *

+ * The classes {@link LocalDate} and {@link LocalTime} implement {@code TemporalAdjuster}, + * thus this method can be used to change the date, time or offset: + *

+             * result = zonedDateTime.with(date);
+             * result = zonedDateTime.with(time);
+             * 
+ *

+ * {@link ZoneOffset} also implements {@code TemporalAdjuster} however using it + * as an argument typically has no effect. The offset of a {@code ZonedDateTime} is + * controlled primarily by the time-zone. As such, changing the offset does not generally + * make sense, because there is only one valid offset for the local date-time and zone. + * If the zoned date-time is in a daylight savings overlap, then the offset is used + * to switch between the two valid offsets. In all other cases, the offset is ignored. + *

+ * The result of this method is obtained by invoking the + * {@link TemporalAdjuster#adjustInto(Temporal)} method on the + * specified adjuster passing {@code this} as the argument. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public with(adjuster: java.time.temporal.TemporalAdjuster): java.time.ZonedDateTime; + /** + * Returns a copy of this date-time with the specified field set to a new value. + *

+ * This returns a {@code ZonedDateTime}, based on this one, with the value + * for the specified field changed. + * This can be used to change any supported field, such as the year, month or day-of-month. + * If it is not possible to set the value, because the field is not supported or for + * some other reason, an exception is thrown. + *

+ * In some cases, changing the specified field can cause the resulting date-time to become invalid, + * such as changing the month from 31st January to February would make the day-of-month invalid. + * In cases like this, the field is responsible for resolving the date. Typically it will choose + * the previous valid date, which would be the last valid day of February in this example. + *

+ * If the field is a {@link ChronoField} then the adjustment is implemented here. + *

+ * The {@code INSTANT_SECONDS} field will return a date-time with the specified instant. + * The zone and nano-of-second are unchanged. + * The result will have an offset derived from the new instant and original zone. + * If the new instant value is outside the valid range then a {@code DateTimeException} will be thrown. + *

+ * The {@code OFFSET_SECONDS} field will typically be ignored. + * The offset of a {@code ZonedDateTime} is controlled primarily by the time-zone. + * As such, changing the offset does not generally make sense, because there is only + * one valid offset for the local date-time and zone. + * If the zoned date-time is in a daylight savings overlap, then the offset is used + * to switch between the two valid offsets. In all other cases, the offset is ignored. + * If the new offset value is outside the valid range then a {@code DateTimeException} will be thrown. + *

+ * The other {@link #isSupported(TemporalField) supported fields} will behave as per + * the matching method on {@link LocalDateTime#with(TemporalField, long) LocalDateTime}. + * The zone is not part of the calculation and will be unchanged. + * When converting back to {@code ZonedDateTime}, if the local date-time is in an overlap, + * then the offset will be retained if possible, otherwise the earlier offset will be used. + * If in a gap, the local date-time will be adjusted forward by the length of the gap. + *

+ * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.adjustInto(Temporal, long)} + * passing {@code this} as the argument. In this case, the field determines + * whether and how to adjust the instant. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public with(field: java.time.temporal.TemporalField, newValue: number): java.time.ZonedDateTime; + /** + * Returns a copy of this {@code ZonedDateTime} with the year altered. + *

+ * This operates on the local time-line, + * {@link LocalDateTime#withYear(int) changing the year} of the local date-time. + * This is then converted back to a {@code ZonedDateTime}, using the zone ID + * to obtain the offset. + *

+ * When converting back to {@code ZonedDateTime}, if the local date-time is in an overlap, + * then the offset will be retained if possible, otherwise the earlier offset will be used. + * If in a gap, the local date-time will be adjusted forward by the length of the gap. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withYear(year: number): java.time.ZonedDateTime; + /** + * Returns a copy of this {@code ZonedDateTime} with the month-of-year altered. + *

+ * This operates on the local time-line, + * {@link LocalDateTime#withMonth(int) changing the month} of the local date-time. + * This is then converted back to a {@code ZonedDateTime}, using the zone ID + * to obtain the offset. + *

+ * When converting back to {@code ZonedDateTime}, if the local date-time is in an overlap, + * then the offset will be retained if possible, otherwise the earlier offset will be used. + * If in a gap, the local date-time will be adjusted forward by the length of the gap. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withMonth(month: number): java.time.ZonedDateTime; + /** + * Returns a copy of this {@code ZonedDateTime} with the day-of-month altered. + *

+ * This operates on the local time-line, + * {@link LocalDateTime#withDayOfMonth(int) changing the day-of-month} of the local date-time. + * This is then converted back to a {@code ZonedDateTime}, using the zone ID + * to obtain the offset. + *

+ * When converting back to {@code ZonedDateTime}, if the local date-time is in an overlap, + * then the offset will be retained if possible, otherwise the earlier offset will be used. + * If in a gap, the local date-time will be adjusted forward by the length of the gap. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withDayOfMonth(dayOfMonth: number): java.time.ZonedDateTime; + /** + * Returns a copy of this {@code ZonedDateTime} with the day-of-year altered. + *

+ * This operates on the local time-line, + * {@link LocalDateTime#withDayOfYear(int) changing the day-of-year} of the local date-time. + * This is then converted back to a {@code ZonedDateTime}, using the zone ID + * to obtain the offset. + *

+ * When converting back to {@code ZonedDateTime}, if the local date-time is in an overlap, + * then the offset will be retained if possible, otherwise the earlier offset will be used. + * If in a gap, the local date-time will be adjusted forward by the length of the gap. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withDayOfYear(dayOfYear: number): java.time.ZonedDateTime; + /** + * Returns a copy of this {@code ZonedDateTime} with the hour-of-day altered. + *

+ * This operates on the local time-line, + * {@linkplain LocalDateTime#withHour(int) changing the time} of the local date-time. + * This is then converted back to a {@code ZonedDateTime}, using the zone ID + * to obtain the offset. + *

+ * When converting back to {@code ZonedDateTime}, if the local date-time is in an overlap, + * then the offset will be retained if possible, otherwise the earlier offset will be used. + * If in a gap, the local date-time will be adjusted forward by the length of the gap. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withHour(hour: number): java.time.ZonedDateTime; + /** + * Returns a copy of this {@code ZonedDateTime} with the minute-of-hour altered. + *

+ * This operates on the local time-line, + * {@linkplain LocalDateTime#withMinute(int) changing the time} of the local date-time. + * This is then converted back to a {@code ZonedDateTime}, using the zone ID + * to obtain the offset. + *

+ * When converting back to {@code ZonedDateTime}, if the local date-time is in an overlap, + * then the offset will be retained if possible, otherwise the earlier offset will be used. + * If in a gap, the local date-time will be adjusted forward by the length of the gap. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withMinute(minute: number): java.time.ZonedDateTime; + /** + * Returns a copy of this {@code ZonedDateTime} with the second-of-minute altered. + *

+ * This operates on the local time-line, + * {@linkplain LocalDateTime#withSecond(int) changing the time} of the local date-time. + * This is then converted back to a {@code ZonedDateTime}, using the zone ID + * to obtain the offset. + *

+ * When converting back to {@code ZonedDateTime}, if the local date-time is in an overlap, + * then the offset will be retained if possible, otherwise the earlier offset will be used. + * If in a gap, the local date-time will be adjusted forward by the length of the gap. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withSecond(second: number): java.time.ZonedDateTime; + /** + * Returns a copy of this {@code ZonedDateTime} with the nano-of-second altered. + *

+ * This operates on the local time-line, + * {@linkplain LocalDateTime#withNano(int) changing the time} of the local date-time. + * This is then converted back to a {@code ZonedDateTime}, using the zone ID + * to obtain the offset. + *

+ * When converting back to {@code ZonedDateTime}, if the local date-time is in an overlap, + * then the offset will be retained if possible, otherwise the earlier offset will be used. + * If in a gap, the local date-time will be adjusted forward by the length of the gap. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withNano(nanoOfSecond: number): java.time.ZonedDateTime; + /** + * Returns a copy of this {@code ZonedDateTime} with the time truncated. + *

+ * Truncation returns a copy of the original date-time with fields + * smaller than the specified unit set to zero. + * For example, truncating with the {@link ChronoUnit#MINUTES minutes} unit + * will set the second-of-minute and nano-of-second field to zero. + *

+ * The unit must have a {@linkplain TemporalUnit#getDuration() duration} + * that divides into the length of a standard day without remainder. + * This includes all supplied time units on {@link ChronoUnit} and + * {@link ChronoUnit#DAYS DAYS}. Other units throw an exception. + *

+ * This operates on the local time-line, + * {@link LocalDateTime#truncatedTo(TemporalUnit) truncating} + * the underlying local date-time. This is then converted back to a + * {@code ZonedDateTime}, using the zone ID to obtain the offset. + *

+ * When converting back to {@code ZonedDateTime}, if the local date-time is in an overlap, + * then the offset will be retained if possible, otherwise the earlier offset will be used. + * If in a gap, the local date-time will be adjusted forward by the length of the gap. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public truncatedTo(unit: java.time.temporal.TemporalUnit): java.time.ZonedDateTime; + /** + * Returns a copy of this date-time with the specified amount added. + *

+ * This returns a {@code ZonedDateTime}, based on this one, with the specified amount added. + * The amount is typically {@link Period} or {@link Duration} but may be + * any other type implementing the {@link TemporalAmount} interface. + *

+ * The calculation is delegated to the amount object by calling + * {@link TemporalAmount#addTo(Temporal)}. The amount implementation is free + * to implement the addition in any way it wishes, however it typically + * calls back to {@link #plus(long, TemporalUnit)}. Consult the documentation + * of the amount implementation to determine if it can be successfully added. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plus(amountToAdd: java.time.temporal.TemporalAmount): java.time.ZonedDateTime; + /** + * Returns a copy of this date-time with the specified amount added. + *

+ * This returns a {@code ZonedDateTime}, based on this one, with the amount + * in terms of the unit added. If it is not possible to add the amount, because the + * unit is not supported or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoUnit} then the addition is implemented here. + * The zone is not part of the calculation and will be unchanged in the result. + * The calculation for date and time units differ. + *

+ * Date units operate on the local time-line. + * The period is first added to the local date-time, then converted back + * to a zoned date-time using the zone ID. + * The conversion uses {@link #ofLocal(LocalDateTime, ZoneId, ZoneOffset)} + * with the offset before the addition. + *

+ * Time units operate on the instant time-line. + * The period is first added to the local date-time, then converted back to + * a zoned date-time using the zone ID. + * The conversion uses {@link #ofInstant(LocalDateTime, ZoneOffset, ZoneId)} + * with the offset before the addition. + *

+ * If the field is not a {@code ChronoUnit}, then the result of this method + * is obtained by invoking {@code TemporalUnit.addTo(Temporal, long)} + * passing {@code this} as the argument. In this case, the unit determines + * whether and how to perform the addition. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plus(amountToAdd: number, unit: java.time.temporal.TemporalUnit): java.time.ZonedDateTime; + /** + * Returns a copy of this {@code ZonedDateTime} with the specified number of years added. + *

+ * This operates on the local time-line, + * {@link LocalDateTime#plusYears(long) adding years} to the local date-time. + * This is then converted back to a {@code ZonedDateTime}, using the zone ID + * to obtain the offset. + *

+ * When converting back to {@code ZonedDateTime}, if the local date-time is in an overlap, + * then the offset will be retained if possible, otherwise the earlier offset will be used. + * If in a gap, the local date-time will be adjusted forward by the length of the gap. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusYears(years: number): java.time.ZonedDateTime; + /** + * Returns a copy of this {@code ZonedDateTime} with the specified number of months added. + *

+ * This operates on the local time-line, + * {@link LocalDateTime#plusMonths(long) adding months} to the local date-time. + * This is then converted back to a {@code ZonedDateTime}, using the zone ID + * to obtain the offset. + *

+ * When converting back to {@code ZonedDateTime}, if the local date-time is in an overlap, + * then the offset will be retained if possible, otherwise the earlier offset will be used. + * If in a gap, the local date-time will be adjusted forward by the length of the gap. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusMonths(months: number): java.time.ZonedDateTime; + /** + * Returns a copy of this {@code ZonedDateTime} with the specified number of weeks added. + *

+ * This operates on the local time-line, + * {@link LocalDateTime#plusWeeks(long) adding weeks} to the local date-time. + * This is then converted back to a {@code ZonedDateTime}, using the zone ID + * to obtain the offset. + *

+ * When converting back to {@code ZonedDateTime}, if the local date-time is in an overlap, + * then the offset will be retained if possible, otherwise the earlier offset will be used. + * If in a gap, the local date-time will be adjusted forward by the length of the gap. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusWeeks(weeks: number): java.time.ZonedDateTime; + /** + * Returns a copy of this {@code ZonedDateTime} with the specified number of days added. + *

+ * This operates on the local time-line, + * {@link LocalDateTime#plusDays(long) adding days} to the local date-time. + * This is then converted back to a {@code ZonedDateTime}, using the zone ID + * to obtain the offset. + *

+ * When converting back to {@code ZonedDateTime}, if the local date-time is in an overlap, + * then the offset will be retained if possible, otherwise the earlier offset will be used. + * If in a gap, the local date-time will be adjusted forward by the length of the gap. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusDays(days: number): java.time.ZonedDateTime; + /** + * Returns a copy of this {@code ZonedDateTime} with the specified number of hours added. + *

+ * This operates on the instant time-line, such that adding one hour will + * always be a duration of one hour later. + * This may cause the local date-time to change by an amount other than one hour. + * Note that this is a different approach to that used by days, months and years, + * thus adding one day is not the same as adding 24 hours. + *

+ * For example, consider a time-zone where the spring DST cutover means that the + * local times 01:00 to 01:59 occur twice changing from offset +02:00 to +01:00. + *

    + *
  • Adding one hour to 00:30+02:00 will result in 01:30+02:00 + *
  • Adding one hour to 01:30+02:00 will result in 01:30+01:00 + *
  • Adding one hour to 01:30+01:00 will result in 02:30+01:00 + *
  • Adding three hours to 00:30+02:00 will result in 02:30+01:00 + *
+ *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusHours(hours: number): java.time.ZonedDateTime; + /** + * Returns a copy of this {@code ZonedDateTime} with the specified number of minutes added. + *

+ * This operates on the instant time-line, such that adding one minute will + * always be a duration of one minute later. + * This may cause the local date-time to change by an amount other than one minute. + * Note that this is a different approach to that used by days, months and years. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusMinutes(minutes: number): java.time.ZonedDateTime; + /** + * Returns a copy of this {@code ZonedDateTime} with the specified number of seconds added. + *

+ * This operates on the instant time-line, such that adding one second will + * always be a duration of one second later. + * This may cause the local date-time to change by an amount other than one second. + * Note that this is a different approach to that used by days, months and years. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusSeconds(seconds: number): java.time.ZonedDateTime; + /** + * Returns a copy of this {@code ZonedDateTime} with the specified number of nanoseconds added. + *

+ * This operates on the instant time-line, such that adding one nano will + * always be a duration of one nano later. + * This may cause the local date-time to change by an amount other than one nano. + * Note that this is a different approach to that used by days, months and years. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public plusNanos(nanos: number): java.time.ZonedDateTime; + /** + * Returns a copy of this date-time with the specified amount subtracted. + *

+ * This returns a {@code ZonedDateTime}, based on this one, with the specified amount subtracted. + * The amount is typically {@link Period} or {@link Duration} but may be + * any other type implementing the {@link TemporalAmount} interface. + *

+ * The calculation is delegated to the amount object by calling + * {@link TemporalAmount#subtractFrom(Temporal)}. The amount implementation is free + * to implement the subtraction in any way it wishes, however it typically + * calls back to {@link #minus(long, TemporalUnit)}. Consult the documentation + * of the amount implementation to determine if it can be successfully subtracted. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minus(amountToSubtract: java.time.temporal.TemporalAmount): java.time.ZonedDateTime; + /** + * Returns a copy of this date-time with the specified amount subtracted. + *

+ * This returns a {@code ZonedDateTime}, based on this one, with the amount + * in terms of the unit subtracted. If it is not possible to subtract the amount, + * because the unit is not supported or for some other reason, an exception is thrown. + *

+ * The calculation for date and time units differ. + *

+ * Date units operate on the local time-line. + * The period is first subtracted from the local date-time, then converted back + * to a zoned date-time using the zone ID. + * The conversion uses {@link #ofLocal(LocalDateTime, ZoneId, ZoneOffset)} + * with the offset before the subtraction. + *

+ * Time units operate on the instant time-line. + * The period is first subtracted from the local date-time, then converted back to + * a zoned date-time using the zone ID. + * The conversion uses {@link #ofInstant(LocalDateTime, ZoneOffset, ZoneId)} + * with the offset before the subtraction. + *

+ * This method is equivalent to {@link #plus(long, TemporalUnit)} with the amount negated. + * See that method for a full description of how addition, and thus subtraction, works. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minus(amountToSubtract: number, unit: java.time.temporal.TemporalUnit): java.time.ZonedDateTime; + /** + * Returns a copy of this {@code ZonedDateTime} with the specified number of years subtracted. + *

+ * This operates on the local time-line, + * {@link LocalDateTime#minusYears(long) subtracting years} to the local date-time. + * This is then converted back to a {@code ZonedDateTime}, using the zone ID + * to obtain the offset. + *

+ * When converting back to {@code ZonedDateTime}, if the local date-time is in an overlap, + * then the offset will be retained if possible, otherwise the earlier offset will be used. + * If in a gap, the local date-time will be adjusted forward by the length of the gap. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusYears(years: number): java.time.ZonedDateTime; + /** + * Returns a copy of this {@code ZonedDateTime} with the specified number of months subtracted. + *

+ * This operates on the local time-line, + * {@link LocalDateTime#minusMonths(long) subtracting months} to the local date-time. + * This is then converted back to a {@code ZonedDateTime}, using the zone ID + * to obtain the offset. + *

+ * When converting back to {@code ZonedDateTime}, if the local date-time is in an overlap, + * then the offset will be retained if possible, otherwise the earlier offset will be used. + * If in a gap, the local date-time will be adjusted forward by the length of the gap. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusMonths(months: number): java.time.ZonedDateTime; + /** + * Returns a copy of this {@code ZonedDateTime} with the specified number of weeks subtracted. + *

+ * This operates on the local time-line, + * {@link LocalDateTime#minusWeeks(long) subtracting weeks} to the local date-time. + * This is then converted back to a {@code ZonedDateTime}, using the zone ID + * to obtain the offset. + *

+ * When converting back to {@code ZonedDateTime}, if the local date-time is in an overlap, + * then the offset will be retained if possible, otherwise the earlier offset will be used. + * If in a gap, the local date-time will be adjusted forward by the length of the gap. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusWeeks(weeks: number): java.time.ZonedDateTime; + /** + * Returns a copy of this {@code ZonedDateTime} with the specified number of days subtracted. + *

+ * This operates on the local time-line, + * {@link LocalDateTime#minusDays(long) subtracting days} to the local date-time. + * This is then converted back to a {@code ZonedDateTime}, using the zone ID + * to obtain the offset. + *

+ * When converting back to {@code ZonedDateTime}, if the local date-time is in an overlap, + * then the offset will be retained if possible, otherwise the earlier offset will be used. + * If in a gap, the local date-time will be adjusted forward by the length of the gap. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusDays(days: number): java.time.ZonedDateTime; + /** + * Returns a copy of this {@code ZonedDateTime} with the specified number of hours subtracted. + *

+ * This operates on the instant time-line, such that subtracting one hour will + * always be a duration of one hour earlier. + * This may cause the local date-time to change by an amount other than one hour. + * Note that this is a different approach to that used by days, months and years, + * thus subtracting one day is not the same as adding 24 hours. + *

+ * For example, consider a time-zone where the spring DST cutover means that the + * local times 01:00 to 01:59 occur twice changing from offset +02:00 to +01:00. + *

    + *
  • Subtracting one hour from 02:30+01:00 will result in 01:30+02:00 + *
  • Subtracting one hour from 01:30+01:00 will result in 01:30+02:00 + *
  • Subtracting one hour from 01:30+02:00 will result in 00:30+01:00 + *
  • Subtracting three hours from 02:30+01:00 will result in 00:30+02:00 + *
+ *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusHours(hours: number): java.time.ZonedDateTime; + /** + * Returns a copy of this {@code ZonedDateTime} with the specified number of minutes subtracted. + *

+ * This operates on the instant time-line, such that subtracting one minute will + * always be a duration of one minute earlier. + * This may cause the local date-time to change by an amount other than one minute. + * Note that this is a different approach to that used by days, months and years. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusMinutes(minutes: number): java.time.ZonedDateTime; + /** + * Returns a copy of this {@code ZonedDateTime} with the specified number of seconds subtracted. + *

+ * This operates on the instant time-line, such that subtracting one second will + * always be a duration of one second earlier. + * This may cause the local date-time to change by an amount other than one second. + * Note that this is a different approach to that used by days, months and years. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusSeconds(seconds: number): java.time.ZonedDateTime; + /** + * Returns a copy of this {@code ZonedDateTime} with the specified number of nanoseconds subtracted. + *

+ * This operates on the instant time-line, such that subtracting one nano will + * always be a duration of one nano earlier. + * This may cause the local date-time to change by an amount other than one nano. + * Note that this is a different approach to that used by days, months and years. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public minusNanos(nanos: number): java.time.ZonedDateTime; + /** + * Queries this date-time using the specified query. + *

+ * This queries this date-time using the specified query strategy object. + * The {@code TemporalQuery} object defines the logic to be used to + * obtain the result. Read the documentation of the query to understand + * what the result of this method will be. + *

+ * The result of this method is obtained by invoking the + * {@link TemporalQuery#queryFrom(TemporalAccessor)} method on the + * specified query passing {@code this} as the argument. + */ + // @ts-ignore + public query(query: java.time.temporal.TemporalQuery): java.lang.Object; + /** + * Calculates the amount of time until another date-time in terms of the specified unit. + *

+ * This calculates the amount of time between two {@code ZonedDateTime} + * objects in terms of a single {@code TemporalUnit}. + * The start and end points are {@code this} and the specified date-time. + * The result will be negative if the end is before the start. + * For example, the amount in days between two date-times can be calculated + * using {@code startDateTime.until(endDateTime, DAYS)}. + *

+ * The {@code Temporal} passed to this method is converted to a + * {@code ZonedDateTime} using {@link #from(TemporalAccessor)}. + * If the time-zone differs between the two zoned date-times, the specified + * end date-time is normalized to have the same zone as this date-time. + *

+ * The calculation returns a whole number, representing the number of + * complete units between the two date-times. + * For example, the amount in months between 2012-06-15T00:00Z and 2012-08-14T23:59Z + * will only be one month as it is one minute short of two months. + *

+ * There are two equivalent ways of using this method. + * The first is to invoke this method. + * The second is to use {@link TemporalUnit#between(Temporal, Temporal)}: + *

+             * // these two lines are equivalent
+             * amount = start.until(end, MONTHS);
+             * amount = MONTHS.between(start, end);
+             * 
+ * The choice should be made based on which makes the code more readable. + *

+ * The calculation is implemented in this method for {@link ChronoUnit}. + * The units {@code NANOS}, {@code MICROS}, {@code MILLIS}, {@code SECONDS}, + * {@code MINUTES}, {@code HOURS} and {@code HALF_DAYS}, {@code DAYS}, + * {@code WEEKS}, {@code MONTHS}, {@code YEARS}, {@code DECADES}, + * {@code CENTURIES}, {@code MILLENNIA} and {@code ERAS} are supported. + * Other {@code ChronoUnit} values will throw an exception. + *

+ * The calculation for date and time units differ. + *

+ * Date units operate on the local time-line, using the local date-time. + * For example, the period from noon on day 1 to noon the following day + * in days will always be counted as exactly one day, irrespective of whether + * there was a daylight savings change or not. + *

+ * Time units operate on the instant time-line. + * The calculation effectively converts both zoned date-times to instants + * and then calculates the period between the instants. + * For example, the period from noon on day 1 to noon the following day + * in hours may be 23, 24 or 25 hours (or some other amount) depending on + * whether there was a daylight savings change or not. + *

+ * If the unit is not a {@code ChronoUnit}, then the result of this method + * is obtained by invoking {@code TemporalUnit.between(Temporal, Temporal)} + * passing {@code this} as the first argument and the converted input temporal + * as the second argument. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public until(endExclusive: java.time.temporal.Temporal, unit: java.time.temporal.TemporalUnit): number; + /** + * Formats this date-time using the specified formatter. + *

+ * This date-time will be passed to the formatter to produce a string. + */ + // @ts-ignore + public format(formatter: java.time.format.DateTimeFormatter): string; + /** + * Converts this date-time to an {@code OffsetDateTime}. + *

+ * This creates an offset date-time using the local date-time and offset. + * The zone ID is ignored. + */ + // @ts-ignore + public toOffsetDateTime(): java.time.OffsetDateTime; + /** + * Checks if this date-time is equal to another date-time. + *

+ * The comparison is based on the offset date-time and the zone. + * Only objects of type {@code ZonedDateTime} are compared, other types return false. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * A hash code for this date-time. + */ + // @ts-ignore + public hashCode(): number; + /** + * Outputs this date-time as a {@code String}, such as + * {@code 2007-12-03T10:15:30+01:00[Europe/Paris]}. + *

+ * The format consists of the {@code LocalDateTime} followed by the {@code ZoneOffset}. + * If the {@code ZoneId} is not the same as the offset, then the ID is output. + * The output is compatible with ISO-8601 if the offset and ID are the same. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.chrono.AbstractChronology.d.ts b/packages/types/dist/typings/jdk/java.time.chrono.AbstractChronology.d.ts new file mode 100644 index 00000000..fb14c38a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.chrono.AbstractChronology.d.ts @@ -0,0 +1,131 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace chrono { + // @ts-ignore + abstract class AbstractChronology extends java.lang.Object { + /** + * Creates an instance. + */ + // @ts-ignore + constructor() + /** + * Resolves parsed {@code ChronoField} values into a date during parsing. + *

+ * Most {@code TemporalField} implementations are resolved using the + * resolve method on the field. By contrast, the {@code ChronoField} class + * defines fields that only have meaning relative to the chronology. + * As such, {@code ChronoField} date fields are resolved here in the + * context of a specific chronology. + *

+ * {@code ChronoField} instances are resolved by this method, which may + * be overridden in subclasses. + *

    + *
  • {@code EPOCH_DAY} - If present, this is converted to a date and + * all other date fields are then cross-checked against the date. + *
  • {@code PROLEPTIC_MONTH} - If present, then it is split into the + * {@code YEAR} and {@code MONTH_OF_YEAR}. If the mode is strict or smart + * then the field is validated. + *
  • {@code YEAR_OF_ERA} and {@code ERA} - If both are present, then they + * are combined to form a {@code YEAR}. In lenient mode, the {@code YEAR_OF_ERA} + * range is not validated, in smart and strict mode it is. The {@code ERA} is + * validated for range in all three modes. If only the {@code YEAR_OF_ERA} is + * present, and the mode is smart or lenient, then the last available era + * is assumed. In strict mode, no era is assumed and the {@code YEAR_OF_ERA} is + * left untouched. If only the {@code ERA} is present, then it is left untouched. + *
  • {@code YEAR}, {@code MONTH_OF_YEAR} and {@code DAY_OF_MONTH} - + * If all three are present, then they are combined to form a date. + * In all three modes, the {@code YEAR} is validated. + * If the mode is smart or strict, then the month and day are validated. + * If the mode is lenient, then the date is combined in a manner equivalent to + * creating a date on the first day of the first month in the requested year, + * then adding the difference in months, then the difference in days. + * If the mode is smart, and the day-of-month is greater than the maximum for + * the year-month, then the day-of-month is adjusted to the last day-of-month. + * If the mode is strict, then the three fields must form a valid date. + *
  • {@code YEAR} and {@code DAY_OF_YEAR} - + * If both are present, then they are combined to form a date. + * In all three modes, the {@code YEAR} is validated. + * If the mode is lenient, then the date is combined in a manner equivalent to + * creating a date on the first day of the requested year, then adding + * the difference in days. + * If the mode is smart or strict, then the two fields must form a valid date. + *
  • {@code YEAR}, {@code MONTH_OF_YEAR}, {@code ALIGNED_WEEK_OF_MONTH} and + * {@code ALIGNED_DAY_OF_WEEK_IN_MONTH} - + * If all four are present, then they are combined to form a date. + * In all three modes, the {@code YEAR} is validated. + * If the mode is lenient, then the date is combined in a manner equivalent to + * creating a date on the first day of the first month in the requested year, then adding + * the difference in months, then the difference in weeks, then in days. + * If the mode is smart or strict, then the all four fields are validated to + * their outer ranges. The date is then combined in a manner equivalent to + * creating a date on the first day of the requested year and month, then adding + * the amount in weeks and days to reach their values. If the mode is strict, + * the date is additionally validated to check that the day and week adjustment + * did not change the month. + *
  • {@code YEAR}, {@code MONTH_OF_YEAR}, {@code ALIGNED_WEEK_OF_MONTH} and + * {@code DAY_OF_WEEK} - If all four are present, then they are combined to + * form a date. The approach is the same as described above for + * years, months and weeks in {@code ALIGNED_DAY_OF_WEEK_IN_MONTH}. + * The day-of-week is adjusted as the next or same matching day-of-week once + * the years, months and weeks have been handled. + *
  • {@code YEAR}, {@code ALIGNED_WEEK_OF_YEAR} and {@code ALIGNED_DAY_OF_WEEK_IN_YEAR} - + * If all three are present, then they are combined to form a date. + * In all three modes, the {@code YEAR} is validated. + * If the mode is lenient, then the date is combined in a manner equivalent to + * creating a date on the first day of the requested year, then adding + * the difference in weeks, then in days. + * If the mode is smart or strict, then the all three fields are validated to + * their outer ranges. The date is then combined in a manner equivalent to + * creating a date on the first day of the requested year, then adding + * the amount in weeks and days to reach their values. If the mode is strict, + * the date is additionally validated to check that the day and week adjustment + * did not change the year. + *
  • {@code YEAR}, {@code ALIGNED_WEEK_OF_YEAR} and {@code DAY_OF_WEEK} - + * If all three are present, then they are combined to form a date. + * The approach is the same as described above for years and weeks in + * {@code ALIGNED_DAY_OF_WEEK_IN_YEAR}. The day-of-week is adjusted as the + * next or same matching day-of-week once the years and weeks have been handled. + *
+ *

+ * The default implementation is suitable for most calendar systems. + * If {@link java.time.temporal.ChronoField#YEAR_OF_ERA} is found without an {@link java.time.temporal.ChronoField#ERA} + * then the last era in {@link #eras()} is used. + * The implementation assumes a 7 day week, that the first day-of-month + * has the value 1, that first day-of-year has the value 1, and that the + * first of the month and year always exists. + */ + // @ts-ignore + public resolveDate(fieldValues: java.util.Map, resolverStyle: java.time.format.ResolverStyle): java.time.chrono.ChronoLocalDate; + /** + * Compares this chronology to another chronology. + *

+ * The comparison order first by the chronology ID string, then by any + * additional information specific to the subclass. + * It is "consistent with equals", as defined by {@link Comparable}. + */ + // @ts-ignore + public compareTo(other: java.time.chrono.Chronology): number; + /** + * Checks if this chronology is equal to another chronology. + *

+ * The comparison is based on the entire state of the object. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * A hash code for this chronology. + *

+ * The hash code should be based on the entire state of the object. + */ + // @ts-ignore + public hashCode(): number; + /** + * Outputs this chronology as a {@code String}, using the chronology ID. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.chrono.ChronoLocalDate.d.ts b/packages/types/dist/typings/jdk/java.time.chrono.ChronoLocalDate.d.ts new file mode 100644 index 00000000..dbb4bbc8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.chrono.ChronoLocalDate.d.ts @@ -0,0 +1,366 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace chrono { + // @ts-ignore + interface ChronoLocalDate { + /** + * Gets a comparator that compares {@code ChronoLocalDate} in + * time-line order ignoring the chronology. + *

+ * This comparator differs from the comparison in {@link #compareTo} in that it + * only compares the underlying date and not the chronology. + * This allows dates in different calendar systems to be compared based + * on the position of the date on the local time-line. + * The underlying comparison is equivalent to comparing the epoch-day. + */ + // @ts-ignore + timeLineOrder(): java.util.Comparator; + /** + * Obtains an instance of {@code ChronoLocalDate} from a temporal object. + *

+ * This obtains a local date based on the specified temporal. + * A {@code TemporalAccessor} represents an arbitrary set of date and time information, + * which this factory converts to an instance of {@code ChronoLocalDate}. + *

+ * The conversion extracts and combines the chronology and the date + * from the temporal object. The behavior is equivalent to using + * {@link Chronology#date(TemporalAccessor)} with the extracted chronology. + * Implementations are permitted to perform optimizations such as accessing + * those fields that are equivalent to the relevant objects. + *

+ * This method matches the signature of the functional interface {@link TemporalQuery} + * allowing it to be used as a query via method reference, {@code ChronoLocalDate::from}. + */ + // @ts-ignore + from(temporal: java.time.temporal.TemporalAccessor): java.time.chrono.ChronoLocalDate; + /** + * Gets the chronology of this date. + *

+ * The {@code Chronology} represents the calendar system in use. + * The era and other fields in {@link ChronoField} are defined by the chronology. + */ + // @ts-ignore + getChronology(): java.time.chrono.Chronology; + /** + * Gets the era, as defined by the chronology. + *

+ * The era is, conceptually, the largest division of the time-line. + * Most calendar systems have a single epoch dividing the time-line into two eras. + * However, some have multiple eras, such as one for the reign of each leader. + * The exact meaning is determined by the {@code Chronology}. + *

+ * All correctly implemented {@code Era} classes are singletons, thus it + * is valid code to write {@code date.getEra() == SomeChrono.ERA_NAME)}. + *

+ * This default implementation uses {@link Chronology#eraOf(int)}. + */ + // @ts-ignore + getEra(): java.time.chrono.Era; + /** + * Checks if the year is a leap year, as defined by the calendar system. + *

+ * A leap-year is a year of a longer length than normal. + * The exact meaning is determined by the chronology with the constraint that + * a leap-year must imply a year-length longer than a non leap-year. + *

+ * This default implementation uses {@link Chronology#isLeapYear(long)}. + */ + // @ts-ignore + isLeapYear(): boolean; + /** + * Returns the length of the month represented by this date, as defined by the calendar system. + *

+ * This returns the length of the month in days. + */ + // @ts-ignore + lengthOfMonth(): number; + /** + * Returns the length of the year represented by this date, as defined by the calendar system. + *

+ * This returns the length of the year in days. + *

+ * The default implementation uses {@link #isLeapYear()} and returns 365 or 366. + */ + // @ts-ignore + lengthOfYear(): number; + /** + * Checks if the specified field is supported. + *

+ * This checks if the specified field can be queried on this date. + * If false, then calling the {@link #range(TemporalField) range}, + * {@link #get(TemporalField) get} and {@link #with(TemporalField, long)} + * methods will throw an exception. + *

+ * The set of supported fields is defined by the chronology and normally includes + * all {@code ChronoField} date fields. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.isSupportedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the field is supported is determined by the field. + */ + // @ts-ignore + isSupported(field: java.time.temporal.TemporalField): boolean; + /** + * Checks if the specified unit is supported. + *

+ * This checks if the specified unit can be added to or subtracted from this date. + * If false, then calling the {@link #plus(long, TemporalUnit)} and + * {@link #minus(long, TemporalUnit) minus} methods will throw an exception. + *

+ * The set of supported units is defined by the chronology and normally includes + * all {@code ChronoUnit} date units except {@code FOREVER}. + *

+ * If the unit is not a {@code ChronoUnit}, then the result of this method + * is obtained by invoking {@code TemporalUnit.isSupportedBy(Temporal)} + * passing {@code this} as the argument. + * Whether the unit is supported is determined by the unit. + */ + // @ts-ignore + isSupported(unit: java.time.temporal.TemporalUnit): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + with(adjuster: java.time.temporal.TemporalAdjuster): java.time.chrono.ChronoLocalDate; + /** + * {@inheritDoc} + */ + // @ts-ignore + with(field: java.time.temporal.TemporalField, newValue: number): java.time.chrono.ChronoLocalDate; + /** + * {@inheritDoc} + */ + // @ts-ignore + plus(amount: java.time.temporal.TemporalAmount): java.time.chrono.ChronoLocalDate; + /** + * {@inheritDoc} + */ + // @ts-ignore + plus(amountToAdd: number, unit: java.time.temporal.TemporalUnit): java.time.chrono.ChronoLocalDate; + /** + * {@inheritDoc} + */ + // @ts-ignore + minus(amount: java.time.temporal.TemporalAmount): java.time.chrono.ChronoLocalDate; + /** + * {@inheritDoc} + */ + // @ts-ignore + minus(amountToSubtract: number, unit: java.time.temporal.TemporalUnit): java.time.chrono.ChronoLocalDate; + /** + * Queries this date using the specified query. + *

+ * This queries this date using the specified query strategy object. + * The {@code TemporalQuery} object defines the logic to be used to + * obtain the result. Read the documentation of the query to understand + * what the result of this method will be. + *

+ * The result of this method is obtained by invoking the + * {@link TemporalQuery#queryFrom(TemporalAccessor)} method on the + * specified query passing {@code this} as the argument. + */ + // @ts-ignore + query(query: java.time.temporal.TemporalQuery): java.lang.Object; + /** + * Adjusts the specified temporal object to have the same date as this object. + *

+ * This returns a temporal object of the same observable type as the input + * with the date changed to be the same as this. + *

+ * The adjustment is equivalent to using {@link Temporal#with(TemporalField, long)} + * passing {@link ChronoField#EPOCH_DAY} as the field. + *

+ * In most cases, it is clearer to reverse the calling pattern by using + * {@link Temporal#with(TemporalAdjuster)}: + *

+                 * // these two lines are equivalent, but the second approach is recommended
+                 * temporal = thisLocalDate.adjustInto(temporal);
+                 * temporal = temporal.with(thisLocalDate);
+                 * 
+ *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + adjustInto(temporal: java.time.temporal.Temporal): java.time.temporal.Temporal; + /** + * Calculates the amount of time until another date in terms of the specified unit. + *

+ * This calculates the amount of time between two {@code ChronoLocalDate} + * objects in terms of a single {@code TemporalUnit}. + * The start and end points are {@code this} and the specified date. + * The result will be negative if the end is before the start. + * The {@code Temporal} passed to this method is converted to a + * {@code ChronoLocalDate} using {@link Chronology#date(TemporalAccessor)}. + * The calculation returns a whole number, representing the number of + * complete units between the two dates. + * For example, the amount in days between two dates can be calculated + * using {@code startDate.until(endDate, DAYS)}. + *

+ * There are two equivalent ways of using this method. + * The first is to invoke this method. + * The second is to use {@link TemporalUnit#between(Temporal, Temporal)}: + *

+                 * // these two lines are equivalent
+                 * amount = start.until(end, MONTHS);
+                 * amount = MONTHS.between(start, end);
+                 * 
+ * The choice should be made based on which makes the code more readable. + *

+ * The calculation is implemented in this method for {@link ChronoUnit}. + * The units {@code DAYS}, {@code WEEKS}, {@code MONTHS}, {@code YEARS}, + * {@code DECADES}, {@code CENTURIES}, {@code MILLENNIA} and {@code ERAS} + * should be supported by all implementations. + * Other {@code ChronoUnit} values will throw an exception. + *

+ * If the unit is not a {@code ChronoUnit}, then the result of this method + * is obtained by invoking {@code TemporalUnit.between(Temporal, Temporal)} + * passing {@code this} as the first argument and the converted input temporal as + * the second argument. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + until(endExclusive: java.time.temporal.Temporal, unit: java.time.temporal.TemporalUnit): number; + /** + * Calculates the period between this date and another date as a {@code ChronoPeriod}. + *

+ * This calculates the period between two dates. All supplied chronologies + * calculate the period using years, months and days, however the + * {@code ChronoPeriod} API allows the period to be represented using other units. + *

+ * The start and end points are {@code this} and the specified date. + * The result will be negative if the end is before the start. + * The negative sign will be the same in each of year, month and day. + *

+ * The calculation is performed using the chronology of this date. + * If necessary, the input date will be converted to match. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + until(endDateExclusive: java.time.chrono.ChronoLocalDate): java.time.chrono.ChronoPeriod; + /** + * Formats this date using the specified formatter. + *

+ * This date will be passed to the formatter to produce a string. + *

+ * The default implementation must behave as follows: + *

+                 * return formatter.format(this);
+                 * 
+ */ + // @ts-ignore + format(formatter: java.time.format.DateTimeFormatter): string; + /** + * Combines this date with a time to create a {@code ChronoLocalDateTime}. + *

+ * This returns a {@code ChronoLocalDateTime} formed from this date at the specified time. + * All possible combinations of date and time are valid. + */ + // @ts-ignore + atTime(localTime: java.time.LocalTime): java.time.chrono.ChronoLocalDateTime; + /** + * Converts this date to the Epoch Day. + *

+ * The {@link ChronoField#EPOCH_DAY Epoch Day count} is a simple + * incrementing count of days where day 0 is 1970-01-01 (ISO). + * This definition is the same for all chronologies, enabling conversion. + *

+ * This default implementation queries the {@code EPOCH_DAY} field. + */ + // @ts-ignore + toEpochDay(): number; + /** + * Compares this date to another date, including the chronology. + *

+ * The comparison is based first on the underlying time-line date, then + * on the chronology. + * It is "consistent with equals", as defined by {@link Comparable}. + *

+ * For example, the following is the comparator order: + *

    + *
  1. {@code 2012-12-03 (ISO)}
  2. + *
  3. {@code 2012-12-04 (ISO)}
  4. + *
  5. {@code 2555-12-04 (ThaiBuddhist)}
  6. + *
  7. {@code 2012-12-05 (ISO)}
  8. + *
+ * Values #2 and #3 represent the same date on the time-line. + * When two values represent the same date, the chronology ID is compared to distinguish them. + * This step is needed to make the ordering "consistent with equals". + *

+ * If all the date objects being compared are in the same chronology, then the + * additional chronology stage is not required and only the local date is used. + * To compare the dates of two {@code TemporalAccessor} instances, including dates + * in two different chronologies, use {@link ChronoField#EPOCH_DAY} as a comparator. + *

+ * This default implementation performs the comparison defined above. + */ + // @ts-ignore + compareTo(other: java.time.chrono.ChronoLocalDate): number; + /** + * Checks if this date is after the specified date ignoring the chronology. + *

+ * This method differs from the comparison in {@link #compareTo} in that it + * only compares the underlying date and not the chronology. + * This allows dates in different calendar systems to be compared based + * on the time-line position. + * This is equivalent to using {@code date1.toEpochDay() > date2.toEpochDay()}. + *

+ * This default implementation performs the comparison based on the epoch-day. + */ + // @ts-ignore + isAfter(other: java.time.chrono.ChronoLocalDate): boolean; + /** + * Checks if this date is before the specified date ignoring the chronology. + *

+ * This method differs from the comparison in {@link #compareTo} in that it + * only compares the underlying date and not the chronology. + * This allows dates in different calendar systems to be compared based + * on the time-line position. + * This is equivalent to using {@code date1.toEpochDay() < date2.toEpochDay()}. + *

+ * This default implementation performs the comparison based on the epoch-day. + */ + // @ts-ignore + isBefore(other: java.time.chrono.ChronoLocalDate): boolean; + /** + * Checks if this date is equal to the specified date ignoring the chronology. + *

+ * This method differs from the comparison in {@link #compareTo} in that it + * only compares the underlying date and not the chronology. + * This allows dates in different calendar systems to be compared based + * on the time-line position. + * This is equivalent to using {@code date1.toEpochDay() == date2.toEpochDay()}. + *

+ * This default implementation performs the comparison based on the epoch-day. + */ + // @ts-ignore + isEqual(other: java.time.chrono.ChronoLocalDate): boolean; + /** + * Checks if this date is equal to another date, including the chronology. + *

+ * Compares this date with another ensuring that the date and chronology are the same. + *

+ * To compare the dates of two {@code TemporalAccessor} instances, including dates + * in two different chronologies, use {@link ChronoField#EPOCH_DAY} as a comparator. + */ + // @ts-ignore + equals(obj: java.lang.Object): boolean; + /** + * A hash code for this date. + */ + // @ts-ignore + hashCode(): number; + /** + * Outputs this date as a {@code String}. + *

+ * The output will include the full local date. + */ + // @ts-ignore + toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.chrono.ChronoLocalDateTime.d.ts b/packages/types/dist/typings/jdk/java.time.chrono.ChronoLocalDateTime.d.ts new file mode 100644 index 00000000..e75df54c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.chrono.ChronoLocalDateTime.d.ts @@ -0,0 +1,310 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace chrono { + // @ts-ignore + interface ChronoLocalDateTime { + /** + * Gets a comparator that compares {@code ChronoLocalDateTime} in + * time-line order ignoring the chronology. + *

+ * This comparator differs from the comparison in {@link #compareTo} in that it + * only compares the underlying date-time and not the chronology. + * This allows dates in different calendar systems to be compared based + * on the position of the date-time on the local time-line. + * The underlying comparison is equivalent to comparing the epoch-day and nano-of-day. + */ + // @ts-ignore + timeLineOrder(): java.util.Comparator; + /** + * Obtains an instance of {@code ChronoLocalDateTime} from a temporal object. + *

+ * This obtains a local date-time based on the specified temporal. + * A {@code TemporalAccessor} represents an arbitrary set of date and time information, + * which this factory converts to an instance of {@code ChronoLocalDateTime}. + *

+ * The conversion extracts and combines the chronology and the date-time + * from the temporal object. The behavior is equivalent to using + * {@link Chronology#localDateTime(TemporalAccessor)} with the extracted chronology. + * Implementations are permitted to perform optimizations such as accessing + * those fields that are equivalent to the relevant objects. + *

+ * This method matches the signature of the functional interface {@link TemporalQuery} + * allowing it to be used as a query via method reference, {@code ChronoLocalDateTime::from}. + */ + // @ts-ignore + from(temporal: java.time.temporal.TemporalAccessor): java.time.chrono.ChronoLocalDateTime; + /** + * Gets the chronology of this date-time. + *

+ * The {@code Chronology} represents the calendar system in use. + * The era and other fields in {@link ChronoField} are defined by the chronology. + */ + // @ts-ignore + getChronology(): java.time.chrono.Chronology; + /** + * Gets the local date part of this date-time. + *

+ * This returns a local date with the same year, month and day + * as this date-time. + */ + // @ts-ignore + toLocalDate(): java.time.chrono.ChronoLocalDate; + /** + * Gets the local time part of this date-time. + *

+ * This returns a local time with the same hour, minute, second and + * nanosecond as this date-time. + */ + // @ts-ignore + toLocalTime(): java.time.LocalTime; + /** + * Checks if the specified field is supported. + *

+ * This checks if the specified field can be queried on this date-time. + * If false, then calling the {@link #range(TemporalField) range}, + * {@link #get(TemporalField) get} and {@link #with(TemporalField, long)} + * methods will throw an exception. + *

+ * The set of supported fields is defined by the chronology and normally includes + * all {@code ChronoField} date and time fields. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.isSupportedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the field is supported is determined by the field. + */ + // @ts-ignore + isSupported(field: java.time.temporal.TemporalField): boolean; + /** + * Checks if the specified unit is supported. + *

+ * This checks if the specified unit can be added to or subtracted from this date-time. + * If false, then calling the {@link #plus(long, TemporalUnit)} and + * {@link #minus(long, TemporalUnit) minus} methods will throw an exception. + *

+ * The set of supported units is defined by the chronology and normally includes + * all {@code ChronoUnit} units except {@code FOREVER}. + *

+ * If the unit is not a {@code ChronoUnit}, then the result of this method + * is obtained by invoking {@code TemporalUnit.isSupportedBy(Temporal)} + * passing {@code this} as the argument. + * Whether the unit is supported is determined by the unit. + */ + // @ts-ignore + isSupported(unit: java.time.temporal.TemporalUnit): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + with(adjuster: java.time.temporal.TemporalAdjuster): java.time.chrono.ChronoLocalDateTime; + /** + * {@inheritDoc} + */ + // @ts-ignore + with(field: java.time.temporal.TemporalField, newValue: number): java.time.chrono.ChronoLocalDateTime; + /** + * {@inheritDoc} + */ + // @ts-ignore + plus(amount: java.time.temporal.TemporalAmount): java.time.chrono.ChronoLocalDateTime; + /** + * {@inheritDoc} + */ + // @ts-ignore + plus(amountToAdd: number, unit: java.time.temporal.TemporalUnit): java.time.chrono.ChronoLocalDateTime; + /** + * {@inheritDoc} + */ + // @ts-ignore + minus(amount: java.time.temporal.TemporalAmount): java.time.chrono.ChronoLocalDateTime; + /** + * {@inheritDoc} + */ + // @ts-ignore + minus(amountToSubtract: number, unit: java.time.temporal.TemporalUnit): java.time.chrono.ChronoLocalDateTime; + /** + * Queries this date-time using the specified query. + *

+ * This queries this date-time using the specified query strategy object. + * The {@code TemporalQuery} object defines the logic to be used to + * obtain the result. Read the documentation of the query to understand + * what the result of this method will be. + *

+ * The result of this method is obtained by invoking the + * {@link TemporalQuery#queryFrom(TemporalAccessor)} method on the + * specified query passing {@code this} as the argument. + */ + // @ts-ignore + query(query: java.time.temporal.TemporalQuery): java.lang.Object; + /** + * Adjusts the specified temporal object to have the same date and time as this object. + *

+ * This returns a temporal object of the same observable type as the input + * with the date and time changed to be the same as this. + *

+ * The adjustment is equivalent to using {@link Temporal#with(TemporalField, long)} + * twice, passing {@link ChronoField#EPOCH_DAY} and + * {@link ChronoField#NANO_OF_DAY} as the fields. + *

+ * In most cases, it is clearer to reverse the calling pattern by using + * {@link Temporal#with(TemporalAdjuster)}: + *

+                 * // these two lines are equivalent, but the second approach is recommended
+                 * temporal = thisLocalDateTime.adjustInto(temporal);
+                 * temporal = temporal.with(thisLocalDateTime);
+                 * 
+ *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + adjustInto(temporal: java.time.temporal.Temporal): java.time.temporal.Temporal; + /** + * Formats this date-time using the specified formatter. + *

+ * This date-time will be passed to the formatter to produce a string. + *

+ * The default implementation must behave as follows: + *

+                 * return formatter.format(this);
+                 * 
+ */ + // @ts-ignore + format(formatter: java.time.format.DateTimeFormatter): string; + /** + * Combines this time with a time-zone to create a {@code ChronoZonedDateTime}. + *

+ * This returns a {@code ChronoZonedDateTime} formed from this date-time at the + * specified time-zone. The result will match this date-time as closely as possible. + * Time-zone rules, such as daylight savings, mean that not every local date-time + * is valid for the specified zone, thus the local date-time may be adjusted. + *

+ * The local date-time is resolved to a single instant on the time-line. + * This is achieved by finding a valid offset from UTC/Greenwich for the local + * date-time as defined by the {@link ZoneRules rules} of the zone ID. + *

+ * In most cases, there is only one valid offset for a local date-time. + * In the case of an overlap, where clocks are set back, there are two valid offsets. + * This method uses the earlier offset typically corresponding to "summer". + *

+ * In the case of a gap, where clocks jump forward, there is no valid offset. + * Instead, the local date-time is adjusted to be later by the length of the gap. + * For a typical one hour daylight savings change, the local date-time will be + * moved one hour later into the offset typically corresponding to "summer". + *

+ * To obtain the later offset during an overlap, call + * {@link ChronoZonedDateTime#withLaterOffsetAtOverlap()} on the result of this method. + */ + // @ts-ignore + atZone(zone: java.time.ZoneId): java.time.chrono.ChronoZonedDateTime; + /** + * Converts this date-time to an {@code Instant}. + *

+ * This combines this local date-time and the specified offset to form + * an {@code Instant}. + *

+ * This default implementation calculates from the epoch-day of the date and the + * second-of-day of the time. + */ + // @ts-ignore + toInstant(offset: java.time.ZoneOffset): java.time.Instant; + /** + * Converts this date-time to the number of seconds from the epoch + * of 1970-01-01T00:00:00Z. + *

+ * This combines this local date-time and the specified offset to calculate the + * epoch-second value, which is the number of elapsed seconds from 1970-01-01T00:00:00Z. + * Instants on the time-line after the epoch are positive, earlier are negative. + *

+ * This default implementation calculates from the epoch-day of the date and the + * second-of-day of the time. + */ + // @ts-ignore + toEpochSecond(offset: java.time.ZoneOffset): number; + /** + * Compares this date-time to another date-time, including the chronology. + *

+ * The comparison is based first on the underlying time-line date-time, then + * on the chronology. + * It is "consistent with equals", as defined by {@link Comparable}. + *

+ * For example, the following is the comparator order: + *

    + *
  1. {@code 2012-12-03T12:00 (ISO)}
  2. + *
  3. {@code 2012-12-04T12:00 (ISO)}
  4. + *
  5. {@code 2555-12-04T12:00 (ThaiBuddhist)}
  6. + *
  7. {@code 2012-12-05T12:00 (ISO)}
  8. + *
+ * Values #2 and #3 represent the same date-time on the time-line. + * When two values represent the same date-time, the chronology ID is compared to distinguish them. + * This step is needed to make the ordering "consistent with equals". + *

+ * If all the date-time objects being compared are in the same chronology, then the + * additional chronology stage is not required and only the local date-time is used. + *

+ * This default implementation performs the comparison defined above. + */ + // @ts-ignore + compareTo(other: java.time.chrono.ChronoLocalDateTime): number; + /** + * Checks if this date-time is after the specified date-time ignoring the chronology. + *

+ * This method differs from the comparison in {@link #compareTo} in that it + * only compares the underlying date-time and not the chronology. + * This allows dates in different calendar systems to be compared based + * on the time-line position. + *

+ * This default implementation performs the comparison based on the epoch-day + * and nano-of-day. + */ + // @ts-ignore + isAfter(other: java.time.chrono.ChronoLocalDateTime): boolean; + /** + * Checks if this date-time is before the specified date-time ignoring the chronology. + *

+ * This method differs from the comparison in {@link #compareTo} in that it + * only compares the underlying date-time and not the chronology. + * This allows dates in different calendar systems to be compared based + * on the time-line position. + *

+ * This default implementation performs the comparison based on the epoch-day + * and nano-of-day. + */ + // @ts-ignore + isBefore(other: java.time.chrono.ChronoLocalDateTime): boolean; + /** + * Checks if this date-time is equal to the specified date-time ignoring the chronology. + *

+ * This method differs from the comparison in {@link #compareTo} in that it + * only compares the underlying date and time and not the chronology. + * This allows date-times in different calendar systems to be compared based + * on the time-line position. + *

+ * This default implementation performs the comparison based on the epoch-day + * and nano-of-day. + */ + // @ts-ignore + isEqual(other: java.time.chrono.ChronoLocalDateTime): boolean; + /** + * Checks if this date-time is equal to another date-time, including the chronology. + *

+ * Compares this date-time with another ensuring that the date-time and chronology are the same. + */ + // @ts-ignore + equals(obj: java.lang.Object): boolean; + /** + * A hash code for this date-time. + */ + // @ts-ignore + hashCode(): number; + /** + * Outputs this date-time as a {@code String}. + *

+ * The output will include the full local date-time. + */ + // @ts-ignore + toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.chrono.ChronoPeriod.d.ts b/packages/types/dist/typings/jdk/java.time.chrono.ChronoPeriod.d.ts new file mode 100644 index 00000000..42770ada --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.chrono.ChronoPeriod.d.ts @@ -0,0 +1,187 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace chrono { + // @ts-ignore + interface ChronoPeriod { + /** + * Obtains a {@code ChronoPeriod} consisting of amount of time between two dates. + *

+ * The start date is included, but the end date is not. + * The period is calculated using {@link ChronoLocalDate#until(ChronoLocalDate)}. + * As such, the calculation is chronology specific. + *

+ * The chronology of the first date is used. + * The chronology of the second date is ignored, with the date being converted + * to the target chronology system before the calculation starts. + *

+ * The result of this method can be a negative period if the end is before the start. + * In most cases, the positive/negative sign will be the same in each of the supported fields. + */ + // @ts-ignore + between(startDateInclusive: java.time.chrono.ChronoLocalDate, endDateExclusive: java.time.chrono.ChronoLocalDate): java.time.chrono.ChronoPeriod; + /** + * Gets the value of the requested unit. + *

+ * The supported units are chronology specific. + * They will typically be {@link ChronoUnit#YEARS YEARS}, + * {@link ChronoUnit#MONTHS MONTHS} and {@link ChronoUnit#DAYS DAYS}. + * Requesting an unsupported unit will throw an exception. + */ + // @ts-ignore + get(unit: java.time.temporal.TemporalUnit): number; + /** + * Gets the set of units supported by this period. + *

+ * The supported units are chronology specific. + * They will typically be {@link ChronoUnit#YEARS YEARS}, + * {@link ChronoUnit#MONTHS MONTHS} and {@link ChronoUnit#DAYS DAYS}. + * They are returned in order from largest to smallest. + *

+ * This set can be used in conjunction with {@link #get(TemporalUnit)} + * to access the entire state of the period. + */ + // @ts-ignore + getUnits(): java.util.List; + /** + * Gets the chronology that defines the meaning of the supported units. + *

+ * The period is defined by the chronology. + * It controls the supported units and restricts addition/subtraction + * to {@code ChronoLocalDate} instances of the same chronology. + */ + // @ts-ignore + getChronology(): java.time.chrono.Chronology; + /** + * Checks if all the supported units of this period are zero. + */ + // @ts-ignore + isZero(): boolean; + /** + * Checks if any of the supported units of this period are negative. + */ + // @ts-ignore + isNegative(): boolean; + /** + * Returns a copy of this period with the specified period added. + *

+ * If the specified amount is a {@code ChronoPeriod} then it must have + * the same chronology as this period. Implementations may choose to + * accept or reject other {@code TemporalAmount} implementations. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + plus(amountToAdd: java.time.temporal.TemporalAmount): java.time.chrono.ChronoPeriod; + /** + * Returns a copy of this period with the specified period subtracted. + *

+ * If the specified amount is a {@code ChronoPeriod} then it must have + * the same chronology as this period. Implementations may choose to + * accept or reject other {@code TemporalAmount} implementations. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + minus(amountToSubtract: java.time.temporal.TemporalAmount): java.time.chrono.ChronoPeriod; + /** + * Returns a new instance with each amount in this period in this period + * multiplied by the specified scalar. + *

+ * This returns a period with each supported unit individually multiplied. + * For example, a period of "2 years, -3 months and 4 days" multiplied by + * 3 will return "6 years, -9 months and 12 days". + * No normalization is performed. + */ + // @ts-ignore + multipliedBy(scalar: number): java.time.chrono.ChronoPeriod; + /** + * Returns a new instance with each amount in this period negated. + *

+ * This returns a period with each supported unit individually negated. + * For example, a period of "2 years, -3 months and 4 days" will be + * negated to "-2 years, 3 months and -4 days". + * No normalization is performed. + */ + // @ts-ignore + negated(): java.time.chrono.ChronoPeriod; + /** + * Returns a copy of this period with the amounts of each unit normalized. + *

+ * The process of normalization is specific to each calendar system. + * For example, in the ISO calendar system, the years and months are + * normalized but the days are not, such that "15 months" would be + * normalized to "1 year and 3 months". + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + normalized(): java.time.chrono.ChronoPeriod; + /** + * Adds this period to the specified temporal object. + *

+ * This returns a temporal object of the same observable type as the input + * with this period added. + *

+ * In most cases, it is clearer to reverse the calling pattern by using + * {@link Temporal#plus(TemporalAmount)}. + *

+                 * // these two lines are equivalent, but the second approach is recommended
+                 * dateTime = thisPeriod.addTo(dateTime);
+                 * dateTime = dateTime.plus(thisPeriod);
+                 * 
+ *

+ * The specified temporal must have the same chronology as this period. + * This returns a temporal with the non-zero supported units added. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + addTo(temporal: java.time.temporal.Temporal): java.time.temporal.Temporal; + /** + * Subtracts this period from the specified temporal object. + *

+ * This returns a temporal object of the same observable type as the input + * with this period subtracted. + *

+ * In most cases, it is clearer to reverse the calling pattern by using + * {@link Temporal#minus(TemporalAmount)}. + *

+                 * // these two lines are equivalent, but the second approach is recommended
+                 * dateTime = thisPeriod.subtractFrom(dateTime);
+                 * dateTime = dateTime.minus(thisPeriod);
+                 * 
+ *

+ * The specified temporal must have the same chronology as this period. + * This returns a temporal with the non-zero supported units subtracted. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + subtractFrom(temporal: java.time.temporal.Temporal): java.time.temporal.Temporal; + /** + * Checks if this period is equal to another period, including the chronology. + *

+ * Compares this period with another ensuring that the type, each amount and + * the chronology are the same. + * Note that this means that a period of "15 Months" is not equal to a period + * of "1 Year and 3 Months". + */ + // @ts-ignore + equals(obj: java.lang.Object): boolean; + /** + * A hash code for this period. + */ + // @ts-ignore + hashCode(): number; + /** + * Outputs this period as a {@code String}. + *

+ * The output will include the period amounts and chronology. + */ + // @ts-ignore + toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.chrono.ChronoZonedDateTime.d.ts b/packages/types/dist/typings/jdk/java.time.chrono.ChronoZonedDateTime.d.ts new file mode 100644 index 00000000..edf6d7fb --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.chrono.ChronoZonedDateTime.d.ts @@ -0,0 +1,336 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace chrono { + // @ts-ignore + interface ChronoZonedDateTime { + /** + * Gets a comparator that compares {@code ChronoZonedDateTime} in + * time-line order ignoring the chronology. + *

+ * This comparator differs from the comparison in {@link #compareTo} in that it + * only compares the underlying instant and not the chronology. + * This allows dates in different calendar systems to be compared based + * on the position of the date-time on the instant time-line. + * The underlying comparison is equivalent to comparing the epoch-second and nano-of-second. + */ + // @ts-ignore + timeLineOrder(): java.util.Comparator; + /** + * Obtains an instance of {@code ChronoZonedDateTime} from a temporal object. + *

+ * This creates a zoned date-time based on the specified temporal. + * A {@code TemporalAccessor} represents an arbitrary set of date and time information, + * which this factory converts to an instance of {@code ChronoZonedDateTime}. + *

+ * The conversion extracts and combines the chronology, date, time and zone + * from the temporal object. The behavior is equivalent to using + * {@link Chronology#zonedDateTime(TemporalAccessor)} with the extracted chronology. + * Implementations are permitted to perform optimizations such as accessing + * those fields that are equivalent to the relevant objects. + *

+ * This method matches the signature of the functional interface {@link TemporalQuery} + * allowing it to be used as a query via method reference, {@code ChronoZonedDateTime::from}. + */ + // @ts-ignore + from(temporal: java.time.temporal.TemporalAccessor): java.time.chrono.ChronoZonedDateTime; + // @ts-ignore + range(field: java.time.temporal.TemporalField): java.time.temporal.ValueRange; + // @ts-ignore + get(field: java.time.temporal.TemporalField): number; + // @ts-ignore + getLong(field: java.time.temporal.TemporalField): number; + /** + * Gets the local date part of this date-time. + *

+ * This returns a local date with the same year, month and day + * as this date-time. + */ + // @ts-ignore + toLocalDate(): java.time.chrono.ChronoLocalDate; + /** + * Gets the local time part of this date-time. + *

+ * This returns a local time with the same hour, minute, second and + * nanosecond as this date-time. + */ + // @ts-ignore + toLocalTime(): java.time.LocalTime; + /** + * Gets the local date-time part of this date-time. + *

+ * This returns a local date with the same year, month and day + * as this date-time. + */ + // @ts-ignore + toLocalDateTime(): java.time.chrono.ChronoLocalDateTime; + /** + * Gets the chronology of this date-time. + *

+ * The {@code Chronology} represents the calendar system in use. + * The era and other fields in {@link ChronoField} are defined by the chronology. + */ + // @ts-ignore + getChronology(): java.time.chrono.Chronology; + /** + * Gets the zone offset, such as '+01:00'. + *

+ * This is the offset of the local date-time from UTC/Greenwich. + */ + // @ts-ignore + getOffset(): java.time.ZoneOffset; + /** + * Gets the zone ID, such as 'Europe/Paris'. + *

+ * This returns the stored time-zone id used to determine the time-zone rules. + */ + // @ts-ignore + getZone(): java.time.ZoneId; + /** + * Returns a copy of this date-time changing the zone offset to the + * earlier of the two valid offsets at a local time-line overlap. + *

+ * This method only has any effect when the local time-line overlaps, such as + * at an autumn daylight savings cutover. In this scenario, there are two + * valid offsets for the local date-time. Calling this method will return + * a zoned date-time with the earlier of the two selected. + *

+ * If this method is called when it is not an overlap, {@code this} + * is returned. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + withEarlierOffsetAtOverlap(): java.time.chrono.ChronoZonedDateTime; + /** + * Returns a copy of this date-time changing the zone offset to the + * later of the two valid offsets at a local time-line overlap. + *

+ * This method only has any effect when the local time-line overlaps, such as + * at an autumn daylight savings cutover. In this scenario, there are two + * valid offsets for the local date-time. Calling this method will return + * a zoned date-time with the later of the two selected. + *

+ * If this method is called when it is not an overlap, {@code this} + * is returned. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + withLaterOffsetAtOverlap(): java.time.chrono.ChronoZonedDateTime; + /** + * Returns a copy of this date-time with a different time-zone, + * retaining the local date-time if possible. + *

+ * This method changes the time-zone and retains the local date-time. + * The local date-time is only changed if it is invalid for the new zone. + *

+ * To change the zone and adjust the local date-time, + * use {@link #withZoneSameInstant(ZoneId)}. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + withZoneSameLocal(zone: java.time.ZoneId): java.time.chrono.ChronoZonedDateTime; + /** + * Returns a copy of this date-time with a different time-zone, + * retaining the instant. + *

+ * This method changes the time-zone and retains the instant. + * This normally results in a change to the local date-time. + *

+ * This method is based on retaining the same instant, thus gaps and overlaps + * in the local time-line have no effect on the result. + *

+ * To change the offset while keeping the local time, + * use {@link #withZoneSameLocal(ZoneId)}. + */ + // @ts-ignore + withZoneSameInstant(zone: java.time.ZoneId): java.time.chrono.ChronoZonedDateTime; + /** + * Checks if the specified field is supported. + *

+ * This checks if the specified field can be queried on this date-time. + * If false, then calling the {@link #range(TemporalField) range}, + * {@link #get(TemporalField) get} and {@link #with(TemporalField, long)} + * methods will throw an exception. + *

+ * The set of supported fields is defined by the chronology and normally includes + * all {@code ChronoField} fields. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.isSupportedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the field is supported is determined by the field. + */ + // @ts-ignore + isSupported(field: java.time.temporal.TemporalField): boolean; + /** + * Checks if the specified unit is supported. + *

+ * This checks if the specified unit can be added to or subtracted from this date-time. + * If false, then calling the {@link #plus(long, TemporalUnit)} and + * {@link #minus(long, TemporalUnit) minus} methods will throw an exception. + *

+ * The set of supported units is defined by the chronology and normally includes + * all {@code ChronoUnit} units except {@code FOREVER}. + *

+ * If the unit is not a {@code ChronoUnit}, then the result of this method + * is obtained by invoking {@code TemporalUnit.isSupportedBy(Temporal)} + * passing {@code this} as the argument. + * Whether the unit is supported is determined by the unit. + */ + // @ts-ignore + isSupported(unit: java.time.temporal.TemporalUnit): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + with(adjuster: java.time.temporal.TemporalAdjuster): java.time.chrono.ChronoZonedDateTime; + /** + * {@inheritDoc} + */ + // @ts-ignore + with(field: java.time.temporal.TemporalField, newValue: number): java.time.chrono.ChronoZonedDateTime; + /** + * {@inheritDoc} + */ + // @ts-ignore + plus(amount: java.time.temporal.TemporalAmount): java.time.chrono.ChronoZonedDateTime; + /** + * {@inheritDoc} + */ + // @ts-ignore + plus(amountToAdd: number, unit: java.time.temporal.TemporalUnit): java.time.chrono.ChronoZonedDateTime; + /** + * {@inheritDoc} + */ + // @ts-ignore + minus(amount: java.time.temporal.TemporalAmount): java.time.chrono.ChronoZonedDateTime; + /** + * {@inheritDoc} + */ + // @ts-ignore + minus(amountToSubtract: number, unit: java.time.temporal.TemporalUnit): java.time.chrono.ChronoZonedDateTime; + /** + * Queries this date-time using the specified query. + *

+ * This queries this date-time using the specified query strategy object. + * The {@code TemporalQuery} object defines the logic to be used to + * obtain the result. Read the documentation of the query to understand + * what the result of this method will be. + *

+ * The result of this method is obtained by invoking the + * {@link TemporalQuery#queryFrom(TemporalAccessor)} method on the + * specified query passing {@code this} as the argument. + */ + // @ts-ignore + query(query: java.time.temporal.TemporalQuery): java.lang.Object; + /** + * Formats this date-time using the specified formatter. + *

+ * This date-time will be passed to the formatter to produce a string. + *

+ * The default implementation must behave as follows: + *

+                 * return formatter.format(this);
+                 * 
+ */ + // @ts-ignore + format(formatter: java.time.format.DateTimeFormatter): string; + /** + * Converts this date-time to an {@code Instant}. + *

+ * This returns an {@code Instant} representing the same point on the + * time-line as this date-time. The calculation combines the + * {@linkplain #toLocalDateTime() local date-time} and + * {@linkplain #getOffset() offset}. + */ + // @ts-ignore + toInstant(): java.time.Instant; + /** + * Converts this date-time to the number of seconds from the epoch + * of 1970-01-01T00:00:00Z. + *

+ * This uses the {@linkplain #toLocalDateTime() local date-time} and + * {@linkplain #getOffset() offset} to calculate the epoch-second value, + * which is the number of elapsed seconds from 1970-01-01T00:00:00Z. + * Instants on the time-line after the epoch are positive, earlier are negative. + */ + // @ts-ignore + toEpochSecond(): number; + /** + * Compares this date-time to another date-time, including the chronology. + *

+ * The comparison is based first on the instant, then on the local date-time, + * then on the zone ID, then on the chronology. + * It is "consistent with equals", as defined by {@link Comparable}. + *

+ * If all the date-time objects being compared are in the same chronology, then the + * additional chronology stage is not required. + *

+ * This default implementation performs the comparison defined above. + */ + // @ts-ignore + compareTo(other: java.time.chrono.ChronoZonedDateTime): number; + /** + * Checks if the instant of this date-time is before that of the specified date-time. + *

+ * This method differs from the comparison in {@link #compareTo} in that it + * only compares the instant of the date-time. This is equivalent to using + * {@code dateTime1.toInstant().isBefore(dateTime2.toInstant());}. + *

+ * This default implementation performs the comparison based on the epoch-second + * and nano-of-second. + */ + // @ts-ignore + isBefore(other: java.time.chrono.ChronoZonedDateTime): boolean; + /** + * Checks if the instant of this date-time is after that of the specified date-time. + *

+ * This method differs from the comparison in {@link #compareTo} in that it + * only compares the instant of the date-time. This is equivalent to using + * {@code dateTime1.toInstant().isAfter(dateTime2.toInstant());}. + *

+ * This default implementation performs the comparison based on the epoch-second + * and nano-of-second. + */ + // @ts-ignore + isAfter(other: java.time.chrono.ChronoZonedDateTime): boolean; + /** + * Checks if the instant of this date-time is equal to that of the specified date-time. + *

+ * This method differs from the comparison in {@link #compareTo} and {@link #equals} + * in that it only compares the instant of the date-time. This is equivalent to using + * {@code dateTime1.toInstant().equals(dateTime2.toInstant());}. + *

+ * This default implementation performs the comparison based on the epoch-second + * and nano-of-second. + */ + // @ts-ignore + isEqual(other: java.time.chrono.ChronoZonedDateTime): boolean; + /** + * Checks if this date-time is equal to another date-time. + *

+ * The comparison is based on the offset date-time and the zone. + * To compare for the same instant on the time-line, use {@link #compareTo}. + * Only objects of type {@code ChronoZonedDateTime} are compared, other types return false. + */ + // @ts-ignore + equals(obj: java.lang.Object): boolean; + /** + * A hash code for this date-time. + */ + // @ts-ignore + hashCode(): number; + /** + * Outputs this date-time as a {@code String}. + *

+ * The output will include the full zoned date-time. + */ + // @ts-ignore + toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.chrono.Chronology.d.ts b/packages/types/dist/typings/jdk/java.time.chrono.Chronology.d.ts new file mode 100644 index 00000000..7525eb07 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.chrono.Chronology.d.ts @@ -0,0 +1,361 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace chrono { + // @ts-ignore + interface Chronology { + /** + * Obtains an instance of {@code Chronology} from a temporal object. + *

+ * This obtains a chronology based on the specified temporal. + * A {@code TemporalAccessor} represents an arbitrary set of date and time information, + * which this factory converts to an instance of {@code Chronology}. + *

+ * The conversion will obtain the chronology using {@link TemporalQueries#chronology()}. + * If the specified temporal object does not have a chronology, {@link IsoChronology} is returned. + *

+ * This method matches the signature of the functional interface {@link TemporalQuery} + * allowing it to be used as a query via method reference, {@code Chronology::from}. + */ + // @ts-ignore + from(temporal: java.time.temporal.TemporalAccessor): java.time.chrono.Chronology; + /** + * Obtains an instance of {@code Chronology} from a locale. + *

+ * This returns a {@code Chronology} based on the specified locale, + * typically returning {@code IsoChronology}. Other calendar systems + * are only returned if they are explicitly selected within the locale. + *

+ * The {@link Locale} class provide access to a range of information useful + * for localizing an application. This includes the language and region, + * such as "en-GB" for English as used in Great Britain. + *

+ * The {@code Locale} class also supports an extension mechanism that + * can be used to identify a calendar system. The mechanism is a form + * of key-value pairs, where the calendar system has the key "ca". + * For example, the locale "en-JP-u-ca-japanese" represents the English + * language as used in Japan with the Japanese calendar system. + *

+ * This method finds the desired calendar system by in a manner equivalent + * to passing "ca" to {@link Locale#getUnicodeLocaleType(String)}. + * If the "ca" key is not present, then {@code IsoChronology} is returned. + *

+ * Note that the behavior of this method differs from the older + * {@link java.util.Calendar#getInstance(Locale)} method. + * If that method receives a locale of "th_TH" it will return {@code BuddhistCalendar}. + * By contrast, this method will return {@code IsoChronology}. + * Passing the locale "th-TH-u-ca-buddhist" into either method will + * result in the Thai Buddhist calendar system and is therefore the + * recommended approach going forward for Thai calendar system localization. + *

+ * A similar, but simpler, situation occurs for the Japanese calendar system. + * The locale "jp_JP_JP" has previously been used to access the calendar. + * However, unlike the Thai locale, "ja_JP_JP" is automatically converted by + * {@code Locale} to the modern and recommended form of "ja-JP-u-ca-japanese". + * Thus, there is no difference in behavior between this method and + * {@code Calendar#getInstance(Locale)}. + */ + // @ts-ignore + ofLocale(locale: java.util.Locale): java.time.chrono.Chronology; + /** + * Obtains an instance of {@code Chronology} from a chronology ID or + * calendar system type. + *

+ * This returns a chronology based on either the ID or the type. + * The {@link #getId() chronology ID} uniquely identifies the chronology. + * The {@link #getCalendarType() calendar system type} is defined by the + * CLDR specification. + *

+ * The chronology may be a system chronology or a chronology + * provided by the application via ServiceLoader configuration. + *

+ * Since some calendars can be customized, the ID or type typically refers + * to the default customization. For example, the Gregorian calendar can have multiple + * cutover dates from the Julian, but the lookup only provides the default cutover date. + */ + // @ts-ignore + of(id: string): java.time.chrono.Chronology; + /** + * Returns the available chronologies. + *

+ * Each returned {@code Chronology} is available for use in the system. + * The set of chronologies includes the system chronologies and + * any chronologies provided by the application via ServiceLoader + * configuration. + */ + // @ts-ignore + getAvailableChronologies(): java.util.Set; + /** + * Gets the ID of the chronology. + *

+ * The ID uniquely identifies the {@code Chronology}. + * It can be used to lookup the {@code Chronology} using {@link #of(String)}. + */ + // @ts-ignore + getId(): string; + /** + * Gets the calendar type of the calendar system. + *

+ * The calendar type is an identifier defined by the CLDR and + * Unicode Locale Data Markup Language (LDML) specifications + * to uniquely identification a calendar. + * The {@code getCalendarType} is the concatenation of the CLDR calendar type + * and the variant, if applicable, is appended separated by "-". + * The calendar type is used to lookup the {@code Chronology} using {@link #of(String)}. + */ + // @ts-ignore + getCalendarType(): string; + /** + * Obtains a local date in this chronology from the era, year-of-era, + * month-of-year and day-of-month fields. + */ + // @ts-ignore + date(era: java.time.chrono.Era, yearOfEra: number, month: number, dayOfMonth: number): java.time.chrono.ChronoLocalDate; + /** + * Obtains a local date in this chronology from the proleptic-year, + * month-of-year and day-of-month fields. + */ + // @ts-ignore + date(prolepticYear: number, month: number, dayOfMonth: number): java.time.chrono.ChronoLocalDate; + /** + * Obtains a local date in this chronology from the era, year-of-era and + * day-of-year fields. + */ + // @ts-ignore + dateYearDay(era: java.time.chrono.Era, yearOfEra: number, dayOfYear: number): java.time.chrono.ChronoLocalDate; + /** + * Obtains a local date in this chronology from the proleptic-year and + * day-of-year fields. + */ + // @ts-ignore + dateYearDay(prolepticYear: number, dayOfYear: number): java.time.chrono.ChronoLocalDate; + /** + * Obtains a local date in this chronology from the epoch-day. + *

+ * The definition of {@link ChronoField#EPOCH_DAY EPOCH_DAY} is the same + * for all calendar systems, thus it can be used for conversion. + */ + // @ts-ignore + dateEpochDay(epochDay: number): java.time.chrono.ChronoLocalDate; + /** + * Obtains the current local date in this chronology from the system clock in the default time-zone. + *

+ * This will query the {@link Clock#systemDefaultZone() system clock} in the default + * time-zone to obtain the current date. + *

+ * Using this method will prevent the ability to use an alternate clock for testing + * because the clock is hard-coded. + */ + // @ts-ignore + dateNow(): java.time.chrono.ChronoLocalDate; + /** + * Obtains the current local date in this chronology from the system clock in the specified time-zone. + *

+ * This will query the {@link Clock#system(ZoneId) system clock} to obtain the current date. + * Specifying the time-zone avoids dependence on the default time-zone. + *

+ * Using this method will prevent the ability to use an alternate clock for testing + * because the clock is hard-coded. + */ + // @ts-ignore + dateNow(zone: java.time.ZoneId): java.time.chrono.ChronoLocalDate; + /** + * Obtains the current local date in this chronology from the specified clock. + *

+ * This will query the specified clock to obtain the current date - today. + * Using this method allows the use of an alternate clock for testing. + * The alternate clock may be introduced using {@link Clock dependency injection}. + */ + // @ts-ignore + dateNow(clock: java.time.Clock): java.time.chrono.ChronoLocalDate; + /** + * Obtains a local date in this chronology from another temporal object. + *

+ * This obtains a date in this chronology based on the specified temporal. + * A {@code TemporalAccessor} represents an arbitrary set of date and time information, + * which this factory converts to an instance of {@code ChronoLocalDate}. + *

+ * The conversion typically uses the {@link ChronoField#EPOCH_DAY EPOCH_DAY} + * field, which is standardized across calendar systems. + *

+ * This method matches the signature of the functional interface {@link TemporalQuery} + * allowing it to be used as a query via method reference, {@code aChronology::date}. + */ + // @ts-ignore + date(temporal: java.time.temporal.TemporalAccessor): java.time.chrono.ChronoLocalDate; + /** + * Obtains a local date-time in this chronology from another temporal object. + *

+ * This obtains a date-time in this chronology based on the specified temporal. + * A {@code TemporalAccessor} represents an arbitrary set of date and time information, + * which this factory converts to an instance of {@code ChronoLocalDateTime}. + *

+ * The conversion extracts and combines the {@code ChronoLocalDate} and the + * {@code LocalTime} from the temporal object. + * Implementations are permitted to perform optimizations such as accessing + * those fields that are equivalent to the relevant objects. + * The result uses this chronology. + *

+ * This method matches the signature of the functional interface {@link TemporalQuery} + * allowing it to be used as a query via method reference, {@code aChronology::localDateTime}. + */ + // @ts-ignore + localDateTime(temporal: java.time.temporal.TemporalAccessor): java.time.chrono.ChronoLocalDateTime; + /** + * Obtains a {@code ChronoZonedDateTime} in this chronology from another temporal object. + *

+ * This obtains a zoned date-time in this chronology based on the specified temporal. + * A {@code TemporalAccessor} represents an arbitrary set of date and time information, + * which this factory converts to an instance of {@code ChronoZonedDateTime}. + *

+ * The conversion will first obtain a {@code ZoneId} from the temporal object, + * falling back to a {@code ZoneOffset} if necessary. It will then try to obtain + * an {@code Instant}, falling back to a {@code ChronoLocalDateTime} if necessary. + * The result will be either the combination of {@code ZoneId} or {@code ZoneOffset} + * with {@code Instant} or {@code ChronoLocalDateTime}. + * Implementations are permitted to perform optimizations such as accessing + * those fields that are equivalent to the relevant objects. + * The result uses this chronology. + *

+ * This method matches the signature of the functional interface {@link TemporalQuery} + * allowing it to be used as a query via method reference, {@code aChronology::zonedDateTime}. + */ + // @ts-ignore + zonedDateTime(temporal: java.time.temporal.TemporalAccessor): java.time.chrono.ChronoZonedDateTime; + /** + * Obtains a {@code ChronoZonedDateTime} in this chronology from an {@code Instant}. + *

+ * This obtains a zoned date-time with the same instant as that specified. + */ + // @ts-ignore + zonedDateTime(instant: java.time.Instant, zone: java.time.ZoneId): java.time.chrono.ChronoZonedDateTime; + /** + * Checks if the specified year is a leap year. + *

+ * A leap-year is a year of a longer length than normal. + * The exact meaning is determined by the chronology according to the following constraints. + *

    + *
  • a leap-year must imply a year-length longer than a non leap-year. + *
  • a chronology that does not support the concept of a year must return false. + *
+ */ + // @ts-ignore + isLeapYear(prolepticYear: number): boolean; + /** + * Calculates the proleptic-year given the era and year-of-era. + *

+ * This combines the era and year-of-era into the single proleptic-year field. + *

+ * If the chronology makes active use of eras, such as {@code JapaneseChronology} + * then the year-of-era will be validated against the era. + * For other chronologies, validation is optional. + */ + // @ts-ignore + prolepticYear(era: java.time.chrono.Era, yearOfEra: number): number; + /** + * Creates the chronology era object from the numeric value. + *

+ * The era is, conceptually, the largest division of the time-line. + * Most calendar systems have a single epoch dividing the time-line into two eras. + * However, some have multiple eras, such as one for the reign of each leader. + * The exact meaning is determined by the chronology according to the following constraints. + *

+ * The era in use at 1970-01-01 must have the value 1. + * Later eras must have sequentially higher values. + * Earlier eras must have sequentially lower values. + * Each chronology must refer to an enum or similar singleton to provide the era values. + *

+ * This method returns the singleton era of the correct type for the specified era value. + */ + // @ts-ignore + eraOf(eraValue: number): java.time.chrono.Era; + /** + * Gets the list of eras for the chronology. + *

+ * Most calendar systems have an era, within which the year has meaning. + * If the calendar system does not support the concept of eras, an empty + * list must be returned. + */ + // @ts-ignore + eras(): java.util.List; + /** + * Gets the range of valid values for the specified field. + *

+ * All fields can be expressed as a {@code long} integer. + * This method returns an object that describes the valid range for that value. + *

+ * Note that the result only describes the minimum and maximum valid values + * and it is important not to read too much into them. For example, there + * could be values within the range that are invalid for the field. + *

+ * This method will return a result whether or not the chronology supports the field. + */ + // @ts-ignore + range(field: java.time.temporal.ChronoField): java.time.temporal.ValueRange; + /** + * Gets the textual representation of this chronology. + *

+ * This returns the textual name used to identify the chronology, + * suitable for presentation to the user. + * The parameters control the style of the returned text and the locale. + */ + // @ts-ignore + getDisplayName(style: java.time.format.TextStyle, locale: java.util.Locale): string; + /** + * Resolves parsed {@code ChronoField} values into a date during parsing. + *

+ * Most {@code TemporalField} implementations are resolved using the + * resolve method on the field. By contrast, the {@code ChronoField} class + * defines fields that only have meaning relative to the chronology. + * As such, {@code ChronoField} date fields are resolved here in the + * context of a specific chronology. + *

+ * The default implementation, which explains typical resolve behaviour, + * is provided in {@link AbstractChronology}. + */ + // @ts-ignore + resolveDate(fieldValues: java.util.Map, resolverStyle: java.time.format.ResolverStyle): java.time.chrono.ChronoLocalDate; + /** + * Obtains a period for this chronology based on years, months and days. + *

+ * This returns a period tied to this chronology using the specified + * years, months and days. All supplied chronologies use periods + * based on years, months and days, however the {@code ChronoPeriod} API + * allows the period to be represented using other units. + */ + // @ts-ignore + period(years: number, months: number, days: number): java.time.chrono.ChronoPeriod; + /** + * Compares this chronology to another chronology. + *

+ * The comparison order first by the chronology ID string, then by any + * additional information specific to the subclass. + * It is "consistent with equals", as defined by {@link Comparable}. + */ + // @ts-ignore + compareTo(other: java.time.chrono.Chronology): number; + /** + * Checks if this chronology is equal to another chronology. + *

+ * The comparison is based on the entire state of the object. + */ + // @ts-ignore + equals(obj: java.lang.Object): boolean; + /** + * A hash code for this chronology. + *

+ * The hash code should be based on the entire state of the object. + */ + // @ts-ignore + hashCode(): number; + /** + * Outputs this chronology as a {@code String}. + *

+ * The format should include the entire state of the object. + */ + // @ts-ignore + toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.chrono.Era.d.ts b/packages/types/dist/typings/jdk/java.time.chrono.Era.d.ts new file mode 100644 index 00000000..c4acc101 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.chrono.Era.d.ts @@ -0,0 +1,149 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace chrono { + // @ts-ignore + interface Era { + /** + * Gets the numeric value associated with the era as defined by the chronology. + * Each chronology defines the predefined Eras and methods to list the Eras + * of the chronology. + *

+ * All fields, including eras, have an associated numeric value. + * The meaning of the numeric value for era is determined by the chronology + * according to these principles: + *

    + *
  • The era in use at the epoch 1970-01-01 (ISO) has the value 1. + *
  • Later eras have sequentially higher values. + *
  • Earlier eras have sequentially lower values, which may be negative. + *
+ */ + // @ts-ignore + getValue(): number; + /** + * Checks if the specified field is supported. + *

+ * This checks if this era can be queried for the specified field. + * If false, then calling the {@link #range(TemporalField) range} and + * {@link #get(TemporalField) get} methods will throw an exception. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@code ERA} field returns true. + * All other {@code ChronoField} instances will return false. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.isSupportedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the field is supported is determined by the field. + */ + // @ts-ignore + isSupported(field: java.time.temporal.TemporalField): boolean; + /** + * Gets the range of valid values for the specified field. + *

+ * The range object expresses the minimum and maximum valid values for a field. + * This era is used to enhance the accuracy of the returned range. + * If it is not possible to return the range, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@code ERA} field returns the range. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.rangeRefinedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the range can be obtained is determined by the field. + *

+ * The default implementation must return a range for {@code ERA} from + * zero to one, suitable for two era calendar systems such as ISO. + */ + // @ts-ignore + range(field: java.time.temporal.TemporalField): java.time.temporal.ValueRange; + /** + * Gets the value of the specified field from this era as an {@code int}. + *

+ * This queries this era for the value of the specified field. + * The returned value will always be within the valid range of values for the field. + * If it is not possible to return the value, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@code ERA} field returns the value of the era. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)} + * passing {@code this} as the argument. Whether the value can be obtained, + * and what the value represents, is determined by the field. + */ + // @ts-ignore + get(field: java.time.temporal.TemporalField): number; + /** + * Gets the value of the specified field from this era as a {@code long}. + *

+ * This queries this era for the value of the specified field. + * If it is not possible to return the value, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@code ERA} field returns the value of the era. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)} + * passing {@code this} as the argument. Whether the value can be obtained, + * and what the value represents, is determined by the field. + */ + // @ts-ignore + getLong(field: java.time.temporal.TemporalField): number; + /** + * Queries this era using the specified query. + *

+ * This queries this era using the specified query strategy object. + * The {@code TemporalQuery} object defines the logic to be used to + * obtain the result. Read the documentation of the query to understand + * what the result of this method will be. + *

+ * The result of this method is obtained by invoking the + * {@link TemporalQuery#queryFrom(TemporalAccessor)} method on the + * specified query passing {@code this} as the argument. + */ + // @ts-ignore + query(query: java.time.temporal.TemporalQuery): java.lang.Object; + /** + * Adjusts the specified temporal object to have the same era as this object. + *

+ * This returns a temporal object of the same observable type as the input + * with the era changed to be the same as this. + *

+ * The adjustment is equivalent to using {@link Temporal#with(TemporalField, long)} + * passing {@link ChronoField#ERA} as the field. + *

+ * In most cases, it is clearer to reverse the calling pattern by using + * {@link Temporal#with(TemporalAdjuster)}: + *

+                 * // these two lines are equivalent, but the second approach is recommended
+                 * temporal = thisEra.adjustInto(temporal);
+                 * temporal = temporal.with(thisEra);
+                 * 
+ *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + adjustInto(temporal: java.time.temporal.Temporal): java.time.temporal.Temporal; + /** + * Gets the textual representation of this era. + *

+ * This returns the textual name used to identify the era, + * suitable for presentation to the user. + * The parameters control the style of the returned text and the locale. + *

+ * If no textual mapping is found then the {@link #getValue() numeric value} is returned. + */ + // @ts-ignore + getDisplayName(style: java.time.format.TextStyle, locale: java.util.Locale): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.chrono.HijrahChronology.d.ts b/packages/types/dist/typings/jdk/java.time.chrono.HijrahChronology.d.ts new file mode 100644 index 00000000..9aa554bb --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.chrono.HijrahChronology.d.ts @@ -0,0 +1,84 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace chrono { + // @ts-ignore + class HijrahChronology extends java.time.chrono.AbstractChronology { + // @ts-ignore + public static INSTANCE: java.time.chrono.HijrahChronology; + /** + * Gets the ID of the chronology. + *

+ * The ID uniquely identifies the {@code Chronology}. It can be used to + * lookup the {@code Chronology} using {@link Chronology#of(String)}. + */ + // @ts-ignore + public getId(): string; + /** + * Gets the calendar type of the Islamic calendar. + *

+ * The calendar type is an identifier defined by the + * Unicode Locale Data Markup Language (LDML) specification. + * It can be used to lookup the {@code Chronology} using {@link Chronology#of(String)}. + */ + // @ts-ignore + public getCalendarType(): string; + /** + * Obtains a local date in Hijrah calendar system from the + * era, year-of-era, month-of-year and day-of-month fields. + */ + // @ts-ignore + public date(era: java.time.chrono.Era, yearOfEra: number, month: number, dayOfMonth: number): java.time.chrono.HijrahDate; + /** + * Obtains a local date in Hijrah calendar system from the + * proleptic-year, month-of-year and day-of-month fields. + */ + // @ts-ignore + public date(prolepticYear: number, month: number, dayOfMonth: number): java.time.chrono.HijrahDate; + /** + * Obtains a local date in Hijrah calendar system from the + * era, year-of-era and day-of-year fields. + */ + // @ts-ignore + public dateYearDay(era: java.time.chrono.Era, yearOfEra: number, dayOfYear: number): java.time.chrono.HijrahDate; + /** + * Obtains a local date in Hijrah calendar system from the + * proleptic-year and day-of-year fields. + */ + // @ts-ignore + public dateYearDay(prolepticYear: number, dayOfYear: number): java.time.chrono.HijrahDate; + /** + * Obtains a local date in the Hijrah calendar system from the epoch-day. + */ + // @ts-ignore + public dateEpochDay(epochDay: number): java.time.chrono.HijrahDate; + // @ts-ignore + public dateNow(): java.time.chrono.HijrahDate; + // @ts-ignore + public dateNow(zone: java.time.ZoneId): java.time.chrono.HijrahDate; + // @ts-ignore + public dateNow(clock: java.time.Clock): java.time.chrono.HijrahDate; + // @ts-ignore + public date(temporal: java.time.temporal.TemporalAccessor): java.time.chrono.HijrahDate; + // @ts-ignore + public localDateTime(temporal: java.time.temporal.TemporalAccessor): java.time.chrono.ChronoLocalDateTime; + // @ts-ignore + public zonedDateTime(temporal: java.time.temporal.TemporalAccessor): java.time.chrono.ChronoZonedDateTime; + // @ts-ignore + public zonedDateTime(instant: java.time.Instant, zone: java.time.ZoneId): java.time.chrono.ChronoZonedDateTime; + // @ts-ignore + public isLeapYear(prolepticYear: number): boolean; + // @ts-ignore + public prolepticYear(era: java.time.chrono.Era, yearOfEra: number): number; + // @ts-ignore + public eraOf(eraValue: number): java.time.chrono.HijrahEra; + // @ts-ignore + public eras(): java.util.List; + // @ts-ignore + public range(field: java.time.temporal.ChronoField): java.time.temporal.ValueRange; + // @ts-ignore + public resolveDate(fieldValues: java.util.Map, resolverStyle: java.time.format.ResolverStyle): java.time.chrono.HijrahDate; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.chrono.HijrahDate.d.ts b/packages/types/dist/typings/jdk/java.time.chrono.HijrahDate.d.ts new file mode 100644 index 00000000..94d2dedb --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.chrono.HijrahDate.d.ts @@ -0,0 +1,162 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace chrono { + // @ts-ignore + class HijrahDate extends java.time.chrono.ChronoLocalDateImpl { + /** + * Obtains the current {@code HijrahDate} of the Islamic Umm Al-Qura calendar + * in the default time-zone. + *

+ * This will query the {@link Clock#systemDefaultZone() system clock} in the default + * time-zone to obtain the current date. + *

+ * Using this method will prevent the ability to use an alternate clock for testing + * because the clock is hard-coded. + */ + // @ts-ignore + public static now(): java.time.chrono.HijrahDate; + /** + * Obtains the current {@code HijrahDate} of the Islamic Umm Al-Qura calendar + * in the specified time-zone. + *

+ * This will query the {@link Clock#system(ZoneId) system clock} to obtain the current date. + * Specifying the time-zone avoids dependence on the default time-zone. + *

+ * Using this method will prevent the ability to use an alternate clock for testing + * because the clock is hard-coded. + */ + // @ts-ignore + public static now(zone: java.time.ZoneId): java.time.chrono.HijrahDate; + /** + * Obtains the current {@code HijrahDate} of the Islamic Umm Al-Qura calendar + * from the specified clock. + *

+ * This will query the specified clock to obtain the current date - today. + * Using this method allows the use of an alternate clock for testing. + * The alternate clock may be introduced using {@linkplain Clock dependency injection}. + */ + // @ts-ignore + public static now(clock: java.time.Clock): java.time.chrono.HijrahDate; + /** + * Obtains a {@code HijrahDate} of the Islamic Umm Al-Qura calendar + * from the proleptic-year, month-of-year and day-of-month fields. + *

+ * This returns a {@code HijrahDate} with the specified fields. + * The day must be valid for the year and month, otherwise an exception will be thrown. + */ + // @ts-ignore + public static of(prolepticYear: number, month: number, dayOfMonth: number): java.time.chrono.HijrahDate; + /** + * Obtains a {@code HijrahDate} of the Islamic Umm Al-Qura calendar from a temporal object. + *

+ * This obtains a date in the Hijrah calendar system based on the specified temporal. + * A {@code TemporalAccessor} represents an arbitrary set of date and time information, + * which this factory converts to an instance of {@code HijrahDate}. + *

+ * The conversion typically uses the {@link ChronoField#EPOCH_DAY EPOCH_DAY} + * field, which is standardized across calendar systems. + *

+ * This method matches the signature of the functional interface {@link TemporalQuery} + * allowing it to be used as a query via method reference, {@code HijrahDate::from}. + */ + // @ts-ignore + public static from(temporal: java.time.temporal.TemporalAccessor): java.time.chrono.HijrahDate; + /** + * Gets the chronology of this date, which is the Hijrah calendar system. + *

+ * The {@code Chronology} represents the calendar system in use. + * The era and other fields in {@link ChronoField} are defined by the chronology. + */ + // @ts-ignore + public getChronology(): java.time.chrono.HijrahChronology; + /** + * Gets the era applicable at this date. + *

+ * The Hijrah calendar system has one era, 'AH', + * defined by {@link HijrahEra}. + */ + // @ts-ignore + public getEra(): java.time.chrono.HijrahEra; + /** + * Returns the length of the month represented by this date. + *

+ * This returns the length of the month in days. + * Month lengths in the Hijrah calendar system vary between 29 and 30 days. + */ + // @ts-ignore + public lengthOfMonth(): number; + /** + * Returns the length of the year represented by this date. + *

+ * This returns the length of the year in days. + * A Hijrah calendar system year is typically shorter than + * that of the ISO calendar system. + */ + // @ts-ignore + public lengthOfYear(): number; + // @ts-ignore + public range(field: java.time.temporal.TemporalField): java.time.temporal.ValueRange; + // @ts-ignore + public getLong(field: java.time.temporal.TemporalField): number; + // @ts-ignore + public with(field: java.time.temporal.TemporalField, newValue: number): java.time.chrono.HijrahDate; + /** + * {@inheritDoc} + */ + // @ts-ignore + public with(adjuster: java.time.temporal.TemporalAdjuster): java.time.chrono.HijrahDate; + /** + * Returns a {@code HijrahDate} with the Chronology requested. + *

+ * The year, month, and day are checked against the new requested + * HijrahChronology. If the chronology has a shorter month length + * for the month, the day is reduced to be the last day of the month. + */ + // @ts-ignore + public withVariant(chronology: java.time.chrono.HijrahChronology): java.time.chrono.HijrahDate; + /** + * {@inheritDoc} + */ + // @ts-ignore + public plus(amount: java.time.temporal.TemporalAmount): java.time.chrono.HijrahDate; + /** + * {@inheritDoc} + */ + // @ts-ignore + public minus(amount: java.time.temporal.TemporalAmount): java.time.chrono.HijrahDate; + // @ts-ignore + public toEpochDay(): number; + /** + * Checks if the year is a leap year, according to the Hijrah calendar system rules. + */ + // @ts-ignore + public isLeapYear(): boolean; + // @ts-ignore + public plus(amountToAdd: number, unit: java.time.temporal.TemporalUnit): java.time.chrono.HijrahDate; + // @ts-ignore + public minus(amountToSubtract: number, unit: java.time.temporal.TemporalUnit): java.time.chrono.HijrahDate; + // @ts-ignore + public atTime(localTime: java.time.LocalTime): java.time.chrono.ChronoLocalDateTime; + // @ts-ignore + public until(endDate: java.time.chrono.ChronoLocalDate): java.time.chrono.ChronoPeriod; + /** + * Compares this date to another date, including the chronology. + *

+ * Compares this {@code HijrahDate} with another ensuring that the date is the same. + *

+ * Only objects of type {@code HijrahDate} are compared, other types return false. + * To compare the dates of two {@code TemporalAccessor} instances, including dates + * in two different chronologies, use {@link ChronoField#EPOCH_DAY} as a comparator. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * A hash code for this date. + */ + // @ts-ignore + public hashCode(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.chrono.HijrahEra.d.ts b/packages/types/dist/typings/jdk/java.time.chrono.HijrahEra.d.ts new file mode 100644 index 00000000..9a83457e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.chrono.HijrahEra.d.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace chrono { + // @ts-ignore + class HijrahEra extends java.lang.Enum { + // @ts-ignore + public static AH: java.time.chrono.HijrahEra; + // @ts-ignore + public static values(): java.time.chrono.HijrahEra[]; + // @ts-ignore + public static valueOf(name: string): java.time.chrono.HijrahEra; + /** + * Obtains an instance of {@code HijrahEra} from an {@code int} value. + *

+ * The current era, which is the only accepted value, has the value 1 + */ + // @ts-ignore + public static of(hijrahEra: number): java.time.chrono.HijrahEra; + /** + * Gets the numeric era {@code int} value. + *

+ * The era AH has the value 1. + */ + // @ts-ignore + public getValue(): number; + /** + * Gets the range of valid values for the specified field. + *

+ * The range object expresses the minimum and maximum valid values for a field. + * This era is used to enhance the accuracy of the returned range. + * If it is not possible to return the range, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@code ERA} field returns the range. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.rangeRefinedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the range can be obtained is determined by the field. + *

+ * The {@code ERA} field returns a range for the one valid Hijrah era. + */ + // @ts-ignore + public range(field: java.time.temporal.TemporalField): java.time.temporal.ValueRange; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.chrono.IsoChronology.d.ts b/packages/types/dist/typings/jdk/java.time.chrono.IsoChronology.d.ts new file mode 100644 index 00000000..e8201a46 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.chrono.IsoChronology.d.ts @@ -0,0 +1,238 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace chrono { + // @ts-ignore + class IsoChronology extends java.time.chrono.AbstractChronology { + // @ts-ignore + public static INSTANCE: java.time.chrono.IsoChronology; + /** + * Gets the ID of the chronology - 'ISO'. + *

+ * The ID uniquely identifies the {@code Chronology}. + * It can be used to lookup the {@code Chronology} using {@link Chronology#of(String)}. + */ + // @ts-ignore + public getId(): string; + /** + * Gets the calendar type of the underlying calendar system - 'iso8601'. + *

+ * The calendar type is an identifier defined by the + * Unicode Locale Data Markup Language (LDML) specification. + * It can be used to lookup the {@code Chronology} using {@link Chronology#of(String)}. + * It can also be used as part of a locale, accessible via + * {@link Locale#getUnicodeLocaleType(String)} with the key 'ca'. + */ + // @ts-ignore + public getCalendarType(): string; + /** + * Obtains an ISO local date from the era, year-of-era, month-of-year + * and day-of-month fields. + */ + // @ts-ignore + public date(era: java.time.chrono.Era, yearOfEra: number, month: number, dayOfMonth: number): java.time.LocalDate; + /** + * Obtains an ISO local date from the proleptic-year, month-of-year + * and day-of-month fields. + *

+ * This is equivalent to {@link LocalDate#of(int, int, int)}. + */ + // @ts-ignore + public date(prolepticYear: number, month: number, dayOfMonth: number): java.time.LocalDate; + /** + * Obtains an ISO local date from the era, year-of-era and day-of-year fields. + */ + // @ts-ignore + public dateYearDay(era: java.time.chrono.Era, yearOfEra: number, dayOfYear: number): java.time.LocalDate; + /** + * Obtains an ISO local date from the proleptic-year and day-of-year fields. + *

+ * This is equivalent to {@link LocalDate#ofYearDay(int, int)}. + */ + // @ts-ignore + public dateYearDay(prolepticYear: number, dayOfYear: number): java.time.LocalDate; + /** + * Obtains an ISO local date from the epoch-day. + *

+ * This is equivalent to {@link LocalDate#ofEpochDay(long)}. + */ + // @ts-ignore + public dateEpochDay(epochDay: number): java.time.LocalDate; + /** + * Obtains an ISO local date from another date-time object. + *

+ * This is equivalent to {@link LocalDate#from(TemporalAccessor)}. + */ + // @ts-ignore + public date(temporal: java.time.temporal.TemporalAccessor): java.time.LocalDate; + /** + * Obtains an ISO local date-time from another date-time object. + *

+ * This is equivalent to {@link LocalDateTime#from(TemporalAccessor)}. + */ + // @ts-ignore + public localDateTime(temporal: java.time.temporal.TemporalAccessor): java.time.LocalDateTime; + /** + * Obtains an ISO zoned date-time from another date-time object. + *

+ * This is equivalent to {@link ZonedDateTime#from(TemporalAccessor)}. + */ + // @ts-ignore + public zonedDateTime(temporal: java.time.temporal.TemporalAccessor): java.time.ZonedDateTime; + /** + * Obtains an ISO zoned date-time in this chronology from an {@code Instant}. + *

+ * This is equivalent to {@link ZonedDateTime#ofInstant(Instant, ZoneId)}. + */ + // @ts-ignore + public zonedDateTime(instant: java.time.Instant, zone: java.time.ZoneId): java.time.ZonedDateTime; + /** + * Obtains the current ISO local date from the system clock in the default time-zone. + *

+ * This will query the {@link Clock#systemDefaultZone() system clock} in the default + * time-zone to obtain the current date. + *

+ * Using this method will prevent the ability to use an alternate clock for testing + * because the clock is hard-coded. + */ + // @ts-ignore + public dateNow(): java.time.LocalDate; + /** + * Obtains the current ISO local date from the system clock in the specified time-zone. + *

+ * This will query the {@link Clock#system(ZoneId) system clock} to obtain the current date. + * Specifying the time-zone avoids dependence on the default time-zone. + *

+ * Using this method will prevent the ability to use an alternate clock for testing + * because the clock is hard-coded. + */ + // @ts-ignore + public dateNow(zone: java.time.ZoneId): java.time.LocalDate; + /** + * Obtains the current ISO local date from the specified clock. + *

+ * This will query the specified clock to obtain the current date - today. + * Using this method allows the use of an alternate clock for testing. + * The alternate clock may be introduced using {@link Clock dependency injection}. + */ + // @ts-ignore + public dateNow(clock: java.time.Clock): java.time.LocalDate; + /** + * Checks if the year is a leap year, according to the ISO proleptic + * calendar system rules. + *

+ * This method applies the current rules for leap years across the whole time-line. + * In general, a year is a leap year if it is divisible by four without + * remainder. However, years divisible by 100, are not leap years, with + * the exception of years divisible by 400 which are. + *

+ * For example, 1904 is a leap year it is divisible by 4. + * 1900 was not a leap year as it is divisible by 100, however 2000 was a + * leap year as it is divisible by 400. + *

+ * The calculation is proleptic - applying the same rules into the far future and far past. + * This is historically inaccurate, but is correct for the ISO-8601 standard. + */ + // @ts-ignore + public isLeapYear(prolepticYear: number): boolean; + // @ts-ignore + public prolepticYear(era: java.time.chrono.Era, yearOfEra: number): number; + // @ts-ignore + public eraOf(eraValue: number): java.time.chrono.IsoEra; + // @ts-ignore + public eras(): java.util.List; + /** + * Resolves parsed {@code ChronoField} values into a date during parsing. + *

+ * Most {@code TemporalField} implementations are resolved using the + * resolve method on the field. By contrast, the {@code ChronoField} class + * defines fields that only have meaning relative to the chronology. + * As such, {@code ChronoField} date fields are resolved here in the + * context of a specific chronology. + *

+ * {@code ChronoField} instances on the ISO calendar system are resolved + * as follows. + *

    + *
  • {@code EPOCH_DAY} - If present, this is converted to a {@code LocalDate} + * and all other date fields are then cross-checked against the date. + *
  • {@code PROLEPTIC_MONTH} - If present, then it is split into the + * {@code YEAR} and {@code MONTH_OF_YEAR}. If the mode is strict or smart + * then the field is validated. + *
  • {@code YEAR_OF_ERA} and {@code ERA} - If both are present, then they + * are combined to form a {@code YEAR}. In lenient mode, the {@code YEAR_OF_ERA} + * range is not validated, in smart and strict mode it is. The {@code ERA} is + * validated for range in all three modes. If only the {@code YEAR_OF_ERA} is + * present, and the mode is smart or lenient, then the current era (CE/AD) + * is assumed. In strict mode, no era is assumed and the {@code YEAR_OF_ERA} is + * left untouched. If only the {@code ERA} is present, then it is left untouched. + *
  • {@code YEAR}, {@code MONTH_OF_YEAR} and {@code DAY_OF_MONTH} - + * If all three are present, then they are combined to form a {@code LocalDate}. + * In all three modes, the {@code YEAR} is validated. If the mode is smart or strict, + * then the month and day are validated, with the day validated from 1 to 31. + * If the mode is lenient, then the date is combined in a manner equivalent to + * creating a date on the first of January in the requested year, then adding + * the difference in months, then the difference in days. + * If the mode is smart, and the day-of-month is greater than the maximum for + * the year-month, then the day-of-month is adjusted to the last day-of-month. + * If the mode is strict, then the three fields must form a valid date. + *
  • {@code YEAR} and {@code DAY_OF_YEAR} - + * If both are present, then they are combined to form a {@code LocalDate}. + * In all three modes, the {@code YEAR} is validated. + * If the mode is lenient, then the date is combined in a manner equivalent to + * creating a date on the first of January in the requested year, then adding + * the difference in days. + * If the mode is smart or strict, then the two fields must form a valid date. + *
  • {@code YEAR}, {@code MONTH_OF_YEAR}, {@code ALIGNED_WEEK_OF_MONTH} and + * {@code ALIGNED_DAY_OF_WEEK_IN_MONTH} - + * If all four are present, then they are combined to form a {@code LocalDate}. + * In all three modes, the {@code YEAR} is validated. + * If the mode is lenient, then the date is combined in a manner equivalent to + * creating a date on the first of January in the requested year, then adding + * the difference in months, then the difference in weeks, then in days. + * If the mode is smart or strict, then the all four fields are validated to + * their outer ranges. The date is then combined in a manner equivalent to + * creating a date on the first day of the requested year and month, then adding + * the amount in weeks and days to reach their values. If the mode is strict, + * the date is additionally validated to check that the day and week adjustment + * did not change the month. + *
  • {@code YEAR}, {@code MONTH_OF_YEAR}, {@code ALIGNED_WEEK_OF_MONTH} and + * {@code DAY_OF_WEEK} - If all four are present, then they are combined to + * form a {@code LocalDate}. The approach is the same as described above for + * years, months and weeks in {@code ALIGNED_DAY_OF_WEEK_IN_MONTH}. + * The day-of-week is adjusted as the next or same matching day-of-week once + * the years, months and weeks have been handled. + *
  • {@code YEAR}, {@code ALIGNED_WEEK_OF_YEAR} and {@code ALIGNED_DAY_OF_WEEK_IN_YEAR} - + * If all three are present, then they are combined to form a {@code LocalDate}. + * In all three modes, the {@code YEAR} is validated. + * If the mode is lenient, then the date is combined in a manner equivalent to + * creating a date on the first of January in the requested year, then adding + * the difference in weeks, then in days. + * If the mode is smart or strict, then the all three fields are validated to + * their outer ranges. The date is then combined in a manner equivalent to + * creating a date on the first day of the requested year, then adding + * the amount in weeks and days to reach their values. If the mode is strict, + * the date is additionally validated to check that the day and week adjustment + * did not change the year. + *
  • {@code YEAR}, {@code ALIGNED_WEEK_OF_YEAR} and {@code DAY_OF_WEEK} - + * If all three are present, then they are combined to form a {@code LocalDate}. + * The approach is the same as described above for years and weeks in + * {@code ALIGNED_DAY_OF_WEEK_IN_YEAR}. The day-of-week is adjusted as the + * next or same matching day-of-week once the years and weeks have been handled. + *
+ */ + // @ts-ignore + public resolveDate(fieldValues: java.util.Map, resolverStyle: java.time.format.ResolverStyle): java.time.LocalDate; + // @ts-ignore + public range(field: java.time.temporal.ChronoField): java.time.temporal.ValueRange; + /** + * Obtains a period for this chronology based on years, months and days. + *

+ * This returns a period tied to the ISO chronology using the specified + * years, months and days. See {@link Period} for further details. + */ + // @ts-ignore + public period(years: number, months: number, days: number): java.time.Period; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.chrono.IsoEra.d.ts b/packages/types/dist/typings/jdk/java.time.chrono.IsoEra.d.ts new file mode 100644 index 00000000..e2693ef5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.chrono.IsoEra.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace chrono { + // @ts-ignore + class IsoEra extends java.lang.Enum { + // @ts-ignore + public static BCE: java.time.chrono.IsoEra; + // @ts-ignore + public static CE: java.time.chrono.IsoEra; + // @ts-ignore + public static values(): java.time.chrono.IsoEra[]; + // @ts-ignore + public static valueOf(name: string): java.time.chrono.IsoEra; + /** + * Obtains an instance of {@code IsoEra} from an {@code int} value. + *

+ * {@code IsoEra} is an enum representing the ISO eras of BCE/CE. + * This factory allows the enum to be obtained from the {@code int} value. + */ + // @ts-ignore + public static of(isoEra: number): java.time.chrono.IsoEra; + /** + * Gets the numeric era {@code int} value. + *

+ * The era BCE has the value 0, while the era CE has the value 1. + */ + // @ts-ignore + public getValue(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.chrono.JapaneseChronology.d.ts b/packages/types/dist/typings/jdk/java.time.chrono.JapaneseChronology.d.ts new file mode 100644 index 00000000..9d727ec4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.chrono.JapaneseChronology.d.ts @@ -0,0 +1,127 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace chrono { + // @ts-ignore + class JapaneseChronology extends java.time.chrono.AbstractChronology { + // @ts-ignore + public static INSTANCE: java.time.chrono.JapaneseChronology; + /** + * Gets the ID of the chronology - 'Japanese'. + *

+ * The ID uniquely identifies the {@code Chronology}. + * It can be used to lookup the {@code Chronology} using {@link Chronology#of(String)}. + */ + // @ts-ignore + public getId(): string; + /** + * Gets the calendar type of the underlying calendar system - 'japanese'. + *

+ * The calendar type is an identifier defined by the + * Unicode Locale Data Markup Language (LDML) specification. + * It can be used to lookup the {@code Chronology} using {@link Chronology#of(String)}. + * It can also be used as part of a locale, accessible via + * {@link Locale#getUnicodeLocaleType(String)} with the key 'ca'. + */ + // @ts-ignore + public getCalendarType(): string; + /** + * Obtains a local date in Japanese calendar system from the + * era, year-of-era, month-of-year and day-of-month fields. + *

+ * The Japanese month and day-of-month are the same as those in the + * ISO calendar system. They are not reset when the era changes. + * For example: + *

+                 * 6th Jan Showa 64 = ISO 1989-01-06
+                 * 7th Jan Showa 64 = ISO 1989-01-07
+                 * 8th Jan Heisei 1 = ISO 1989-01-08
+                 * 9th Jan Heisei 1 = ISO 1989-01-09
+                 * 
+ */ + // @ts-ignore + public date(era: java.time.chrono.Era, yearOfEra: number, month: number, dayOfMonth: number): java.time.chrono.JapaneseDate; + /** + * Obtains a local date in Japanese calendar system from the + * proleptic-year, month-of-year and day-of-month fields. + *

+ * The Japanese proleptic year, month and day-of-month are the same as those + * in the ISO calendar system. They are not reset when the era changes. + */ + // @ts-ignore + public date(prolepticYear: number, month: number, dayOfMonth: number): java.time.chrono.JapaneseDate; + /** + * Obtains a local date in Japanese calendar system from the + * era, year-of-era and day-of-year fields. + *

+ * The day-of-year in this factory is expressed relative to the start of the year-of-era. + * This definition changes the normal meaning of day-of-year only in those years + * where the year-of-era is reset to one due to a change in the era. + * For example: + *

+                 * 6th Jan Showa 64 = day-of-year 6
+                 * 7th Jan Showa 64 = day-of-year 7
+                 * 8th Jan Heisei 1 = day-of-year 1
+                 * 9th Jan Heisei 1 = day-of-year 2
+                 * 
+ */ + // @ts-ignore + public dateYearDay(era: java.time.chrono.Era, yearOfEra: number, dayOfYear: number): java.time.chrono.JapaneseDate; + /** + * Obtains a local date in Japanese calendar system from the + * proleptic-year and day-of-year fields. + *

+ * The day-of-year in this factory is expressed relative to the start of the proleptic year. + * The Japanese proleptic year and day-of-year are the same as those in the ISO calendar system. + * They are not reset when the era changes. + */ + // @ts-ignore + public dateYearDay(prolepticYear: number, dayOfYear: number): java.time.chrono.JapaneseDate; + /** + * Obtains a local date in the Japanese calendar system from the epoch-day. + */ + // @ts-ignore + public dateEpochDay(epochDay: number): java.time.chrono.JapaneseDate; + // @ts-ignore + public dateNow(): java.time.chrono.JapaneseDate; + // @ts-ignore + public dateNow(zone: java.time.ZoneId): java.time.chrono.JapaneseDate; + // @ts-ignore + public dateNow(clock: java.time.Clock): java.time.chrono.JapaneseDate; + // @ts-ignore + public date(temporal: java.time.temporal.TemporalAccessor): java.time.chrono.JapaneseDate; + // @ts-ignore + public localDateTime(temporal: java.time.temporal.TemporalAccessor): java.time.chrono.ChronoLocalDateTime; + // @ts-ignore + public zonedDateTime(temporal: java.time.temporal.TemporalAccessor): java.time.chrono.ChronoZonedDateTime; + // @ts-ignore + public zonedDateTime(instant: java.time.Instant, zone: java.time.ZoneId): java.time.chrono.ChronoZonedDateTime; + /** + * Checks if the specified year is a leap year. + *

+ * Japanese calendar leap years occur exactly in line with ISO leap years. + * This method does not validate the year passed in, and only has a + * well-defined result for years in the supported range. + */ + // @ts-ignore + public isLeapYear(prolepticYear: number): boolean; + // @ts-ignore + public prolepticYear(era: java.time.chrono.Era, yearOfEra: number): number; + /** + * Returns the calendar system era object from the given numeric value. + * See the description of each Era for the numeric values of: + * {@link JapaneseEra#HEISEI}, {@link JapaneseEra#SHOWA},{@link JapaneseEra#TAISHO}, + * {@link JapaneseEra#MEIJI}), only Meiji and later eras are supported. + */ + // @ts-ignore + public eraOf(eraValue: number): java.time.chrono.JapaneseEra; + // @ts-ignore + public eras(): java.util.List; + // @ts-ignore + public range(field: java.time.temporal.ChronoField): java.time.temporal.ValueRange; + // @ts-ignore + public resolveDate(fieldValues: java.util.Map, resolverStyle: java.time.format.ResolverStyle): java.time.chrono.JapaneseDate; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.chrono.JapaneseDate.d.ts b/packages/types/dist/typings/jdk/java.time.chrono.JapaneseDate.d.ts new file mode 100644 index 00000000..21548c05 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.chrono.JapaneseDate.d.ts @@ -0,0 +1,188 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace chrono { + // @ts-ignore + class JapaneseDate extends java.time.chrono.ChronoLocalDateImpl { + /** + * Obtains the current {@code JapaneseDate} from the system clock in the default time-zone. + *

+ * This will query the {@link Clock#systemDefaultZone() system clock} in the default + * time-zone to obtain the current date. + *

+ * Using this method will prevent the ability to use an alternate clock for testing + * because the clock is hard-coded. + */ + // @ts-ignore + public static now(): java.time.chrono.JapaneseDate; + /** + * Obtains the current {@code JapaneseDate} from the system clock in the specified time-zone. + *

+ * This will query the {@link Clock#system(ZoneId) system clock} to obtain the current date. + * Specifying the time-zone avoids dependence on the default time-zone. + *

+ * Using this method will prevent the ability to use an alternate clock for testing + * because the clock is hard-coded. + */ + // @ts-ignore + public static now(zone: java.time.ZoneId): java.time.chrono.JapaneseDate; + /** + * Obtains the current {@code JapaneseDate} from the specified clock. + *

+ * This will query the specified clock to obtain the current date - today. + * Using this method allows the use of an alternate clock for testing. + * The alternate clock may be introduced using {@linkplain Clock dependency injection}. + */ + // @ts-ignore + public static now(clock: java.time.Clock): java.time.chrono.JapaneseDate; + /** + * Obtains a {@code JapaneseDate} representing a date in the Japanese calendar + * system from the era, year-of-era, month-of-year and day-of-month fields. + *

+ * This returns a {@code JapaneseDate} with the specified fields. + * The day must be valid for the year and month, otherwise an exception will be thrown. + *

+ * The Japanese month and day-of-month are the same as those in the + * ISO calendar system. They are not reset when the era changes. + * For example: + *

+                 * 6th Jan Showa 64 = ISO 1989-01-06
+                 * 7th Jan Showa 64 = ISO 1989-01-07
+                 * 8th Jan Heisei 1 = ISO 1989-01-08
+                 * 9th Jan Heisei 1 = ISO 1989-01-09
+                 * 
+ */ + // @ts-ignore + public static of(era: java.time.chrono.JapaneseEra, yearOfEra: number, month: number, dayOfMonth: number): java.time.chrono.JapaneseDate; + /** + * Obtains a {@code JapaneseDate} representing a date in the Japanese calendar + * system from the proleptic-year, month-of-year and day-of-month fields. + *

+ * This returns a {@code JapaneseDate} with the specified fields. + * The day must be valid for the year and month, otherwise an exception will be thrown. + *

+ * The Japanese proleptic year, month and day-of-month are the same as those + * in the ISO calendar system. They are not reset when the era changes. + */ + // @ts-ignore + public static of(prolepticYear: number, month: number, dayOfMonth: number): java.time.chrono.JapaneseDate; + /** + * Obtains a {@code JapaneseDate} from a temporal object. + *

+ * This obtains a date in the Japanese calendar system based on the specified temporal. + * A {@code TemporalAccessor} represents an arbitrary set of date and time information, + * which this factory converts to an instance of {@code JapaneseDate}. + *

+ * The conversion typically uses the {@link ChronoField#EPOCH_DAY EPOCH_DAY} + * field, which is standardized across calendar systems. + *

+ * This method matches the signature of the functional interface {@link TemporalQuery} + * allowing it to be used as a query via method reference, {@code JapaneseDate::from}. + */ + // @ts-ignore + public static from(temporal: java.time.temporal.TemporalAccessor): java.time.chrono.JapaneseDate; + /** + * Gets the chronology of this date, which is the Japanese calendar system. + *

+ * The {@code Chronology} represents the calendar system in use. + * The era and other fields in {@link ChronoField} are defined by the chronology. + */ + // @ts-ignore + public getChronology(): java.time.chrono.JapaneseChronology; + /** + * Gets the era applicable at this date. + *

+ * The Japanese calendar system has multiple eras defined by {@link JapaneseEra}. + */ + // @ts-ignore + public getEra(): java.time.chrono.JapaneseEra; + /** + * Returns the length of the month represented by this date. + *

+ * This returns the length of the month in days. + * Month lengths match those of the ISO calendar system. + */ + // @ts-ignore + public lengthOfMonth(): number; + // @ts-ignore + public lengthOfYear(): number; + /** + * Checks if the specified field is supported. + *

+ * This checks if this date can be queried for the specified field. + * If false, then calling the {@link #range(TemporalField) range} and + * {@link #get(TemporalField) get} methods will throw an exception. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The supported fields are: + *

    + *
  • {@code DAY_OF_WEEK} + *
  • {@code DAY_OF_MONTH} + *
  • {@code DAY_OF_YEAR} + *
  • {@code EPOCH_DAY} + *
  • {@code MONTH_OF_YEAR} + *
  • {@code PROLEPTIC_MONTH} + *
  • {@code YEAR_OF_ERA} + *
  • {@code YEAR} + *
  • {@code ERA} + *
+ * All other {@code ChronoField} instances will return false. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.isSupportedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the field is supported is determined by the field. + */ + // @ts-ignore + public isSupported(field: java.time.temporal.TemporalField): boolean; + // @ts-ignore + public range(field: java.time.temporal.TemporalField): java.time.temporal.ValueRange; + // @ts-ignore + public getLong(field: java.time.temporal.TemporalField): number; + // @ts-ignore + public with(field: java.time.temporal.TemporalField, newValue: number): java.time.chrono.JapaneseDate; + /** + * {@inheritDoc} + */ + // @ts-ignore + public with(adjuster: java.time.temporal.TemporalAdjuster): java.time.chrono.JapaneseDate; + /** + * {@inheritDoc} + */ + // @ts-ignore + public plus(amount: java.time.temporal.TemporalAmount): java.time.chrono.JapaneseDate; + /** + * {@inheritDoc} + */ + // @ts-ignore + public minus(amount: java.time.temporal.TemporalAmount): java.time.chrono.JapaneseDate; + // @ts-ignore + public plus(amountToAdd: number, unit: java.time.temporal.TemporalUnit): java.time.chrono.JapaneseDate; + // @ts-ignore + public minus(amountToAdd: number, unit: java.time.temporal.TemporalUnit): java.time.chrono.JapaneseDate; + // @ts-ignore + public atTime(localTime: java.time.LocalTime): java.time.chrono.ChronoLocalDateTime; + // @ts-ignore + public until(endDate: java.time.chrono.ChronoLocalDate): java.time.chrono.ChronoPeriod; + // @ts-ignore + public toEpochDay(): number; + /** + * Compares this date to another date, including the chronology. + *

+ * Compares this {@code JapaneseDate} with another ensuring that the date is the same. + *

+ * Only objects of type {@code JapaneseDate} are compared, other types return false. + * To compare the dates of two {@code TemporalAccessor} instances, including dates + * in two different chronologies, use {@link ChronoField#EPOCH_DAY} as a comparator. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * A hash code for this date. + */ + // @ts-ignore + public hashCode(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.chrono.JapaneseEra.d.ts b/packages/types/dist/typings/jdk/java.time.chrono.JapaneseEra.d.ts new file mode 100644 index 00000000..67b5a72d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.chrono.JapaneseEra.d.ts @@ -0,0 +1,84 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace chrono { + // @ts-ignore + class JapaneseEra extends java.lang.Object { + // @ts-ignore + public static MEIJI: java.time.chrono.JapaneseEra; + // @ts-ignore + public static TAISHO: java.time.chrono.JapaneseEra; + // @ts-ignore + public static SHOWA: java.time.chrono.JapaneseEra; + // @ts-ignore + public static HEISEI: java.time.chrono.JapaneseEra; + /** + * Obtains an instance of {@code JapaneseEra} from an {@code int} value. + *

+ * The {@link #SHOWA} era that contains 1970-01-01 (ISO calendar system) has the value 1 + * Later era is numbered 2 ({@link #HEISEI}). Earlier eras are numbered 0 ({@link #TAISHO}), + * -1 ({@link #MEIJI}), only Meiji and later eras are supported. + */ + // @ts-ignore + public static of(japaneseEra: number): java.time.chrono.JapaneseEra; + /** + * Returns the {@code JapaneseEra} with the name. + *

+ * The string must match exactly the name of the era. + * (Extraneous whitespace characters are not permitted.) + */ + // @ts-ignore + public static valueOf(japaneseEra: string): java.time.chrono.JapaneseEra; + /** + * Returns an array of JapaneseEras. + *

+ * This method may be used to iterate over the JapaneseEras as follows: + *

+                 * for (JapaneseEra c : JapaneseEra.values())
+                 * System.out.println(c);
+                 * 
+ */ + // @ts-ignore + public static values(): java.time.chrono.JapaneseEra[]; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getDisplayName(style: java.time.format.TextStyle, locale: java.util.Locale): string; + /** + * Gets the numeric era {@code int} value. + *

+ * The {@link #SHOWA} era that contains 1970-01-01 (ISO calendar system) has the value 1. + * Later eras are numbered from 2 ({@link #HEISEI}). + * Earlier eras are numbered 0 ({@link #TAISHO}), -1 ({@link #MEIJI})). + */ + // @ts-ignore + public getValue(): number; + /** + * Gets the range of valid values for the specified field. + *

+ * The range object expresses the minimum and maximum valid values for a field. + * This era is used to enhance the accuracy of the returned range. + * If it is not possible to return the range, because the field is not supported + * or for some other reason, an exception is thrown. + *

+ * If the field is a {@link ChronoField} then the query is implemented here. + * The {@code ERA} field returns the range. + * All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}. + *

+ * If the field is not a {@code ChronoField}, then the result of this method + * is obtained by invoking {@code TemporalField.rangeRefinedBy(TemporalAccessor)} + * passing {@code this} as the argument. + * Whether the range can be obtained is determined by the field. + *

+ * The range of valid Japanese eras can change over time due to the nature + * of the Japanese calendar system. + */ + // @ts-ignore + public range(field: java.time.temporal.TemporalField): java.time.temporal.ValueRange; + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.chrono.MinguoChronology.d.ts b/packages/types/dist/typings/jdk/java.time.chrono.MinguoChronology.d.ts new file mode 100644 index 00000000..50b583ec --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.chrono.MinguoChronology.d.ts @@ -0,0 +1,93 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace chrono { + // @ts-ignore + class MinguoChronology extends java.time.chrono.AbstractChronology { + // @ts-ignore + public static INSTANCE: java.time.chrono.MinguoChronology; + /** + * Gets the ID of the chronology - 'Minguo'. + *

+ * The ID uniquely identifies the {@code Chronology}. + * It can be used to lookup the {@code Chronology} using {@link Chronology#of(String)}. + */ + // @ts-ignore + public getId(): string; + /** + * Gets the calendar type of the underlying calendar system - 'roc'. + *

+ * The calendar type is an identifier defined by the + * Unicode Locale Data Markup Language (LDML) specification. + * It can be used to lookup the {@code Chronology} using {@link Chronology#of(String)}. + * It can also be used as part of a locale, accessible via + * {@link Locale#getUnicodeLocaleType(String)} with the key 'ca'. + */ + // @ts-ignore + public getCalendarType(): string; + /** + * Obtains a local date in Minguo calendar system from the + * era, year-of-era, month-of-year and day-of-month fields. + */ + // @ts-ignore + public date(era: java.time.chrono.Era, yearOfEra: number, month: number, dayOfMonth: number): java.time.chrono.MinguoDate; + /** + * Obtains a local date in Minguo calendar system from the + * proleptic-year, month-of-year and day-of-month fields. + */ + // @ts-ignore + public date(prolepticYear: number, month: number, dayOfMonth: number): java.time.chrono.MinguoDate; + /** + * Obtains a local date in Minguo calendar system from the + * era, year-of-era and day-of-year fields. + */ + // @ts-ignore + public dateYearDay(era: java.time.chrono.Era, yearOfEra: number, dayOfYear: number): java.time.chrono.MinguoDate; + /** + * Obtains a local date in Minguo calendar system from the + * proleptic-year and day-of-year fields. + */ + // @ts-ignore + public dateYearDay(prolepticYear: number, dayOfYear: number): java.time.chrono.MinguoDate; + /** + * Obtains a local date in the Minguo calendar system from the epoch-day. + */ + // @ts-ignore + public dateEpochDay(epochDay: number): java.time.chrono.MinguoDate; + // @ts-ignore + public dateNow(): java.time.chrono.MinguoDate; + // @ts-ignore + public dateNow(zone: java.time.ZoneId): java.time.chrono.MinguoDate; + // @ts-ignore + public dateNow(clock: java.time.Clock): java.time.chrono.MinguoDate; + // @ts-ignore + public date(temporal: java.time.temporal.TemporalAccessor): java.time.chrono.MinguoDate; + // @ts-ignore + public localDateTime(temporal: java.time.temporal.TemporalAccessor): java.time.chrono.ChronoLocalDateTime; + // @ts-ignore + public zonedDateTime(temporal: java.time.temporal.TemporalAccessor): java.time.chrono.ChronoZonedDateTime; + // @ts-ignore + public zonedDateTime(instant: java.time.Instant, zone: java.time.ZoneId): java.time.chrono.ChronoZonedDateTime; + /** + * Checks if the specified year is a leap year. + *

+ * Minguo leap years occur exactly in line with ISO leap years. + * This method does not validate the year passed in, and only has a + * well-defined result for years in the supported range. + */ + // @ts-ignore + public isLeapYear(prolepticYear: number): boolean; + // @ts-ignore + public prolepticYear(era: java.time.chrono.Era, yearOfEra: number): number; + // @ts-ignore + public eraOf(eraValue: number): java.time.chrono.MinguoEra; + // @ts-ignore + public eras(): java.util.List; + // @ts-ignore + public range(field: java.time.temporal.ChronoField): java.time.temporal.ValueRange; + // @ts-ignore + public resolveDate(fieldValues: java.util.Map, resolverStyle: java.time.format.ResolverStyle): java.time.chrono.MinguoDate; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.chrono.MinguoDate.d.ts b/packages/types/dist/typings/jdk/java.time.chrono.MinguoDate.d.ts new file mode 100644 index 00000000..678021c0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.chrono.MinguoDate.d.ts @@ -0,0 +1,136 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace chrono { + // @ts-ignore + class MinguoDate extends java.time.chrono.ChronoLocalDateImpl { + /** + * Obtains the current {@code MinguoDate} from the system clock in the default time-zone. + *

+ * This will query the {@link Clock#systemDefaultZone() system clock} in the default + * time-zone to obtain the current date. + *

+ * Using this method will prevent the ability to use an alternate clock for testing + * because the clock is hard-coded. + */ + // @ts-ignore + public static now(): java.time.chrono.MinguoDate; + /** + * Obtains the current {@code MinguoDate} from the system clock in the specified time-zone. + *

+ * This will query the {@link Clock#system(ZoneId) system clock} to obtain the current date. + * Specifying the time-zone avoids dependence on the default time-zone. + *

+ * Using this method will prevent the ability to use an alternate clock for testing + * because the clock is hard-coded. + */ + // @ts-ignore + public static now(zone: java.time.ZoneId): java.time.chrono.MinguoDate; + /** + * Obtains the current {@code MinguoDate} from the specified clock. + *

+ * This will query the specified clock to obtain the current date - today. + * Using this method allows the use of an alternate clock for testing. + * The alternate clock may be introduced using {@linkplain Clock dependency injection}. + */ + // @ts-ignore + public static now(clock: java.time.Clock): java.time.chrono.MinguoDate; + /** + * Obtains a {@code MinguoDate} representing a date in the Minguo calendar + * system from the proleptic-year, month-of-year and day-of-month fields. + *

+ * This returns a {@code MinguoDate} with the specified fields. + * The day must be valid for the year and month, otherwise an exception will be thrown. + */ + // @ts-ignore + public static of(prolepticYear: number, month: number, dayOfMonth: number): java.time.chrono.MinguoDate; + /** + * Obtains a {@code MinguoDate} from a temporal object. + *

+ * This obtains a date in the Minguo calendar system based on the specified temporal. + * A {@code TemporalAccessor} represents an arbitrary set of date and time information, + * which this factory converts to an instance of {@code MinguoDate}. + *

+ * The conversion typically uses the {@link ChronoField#EPOCH_DAY EPOCH_DAY} + * field, which is standardized across calendar systems. + *

+ * This method matches the signature of the functional interface {@link TemporalQuery} + * allowing it to be used as a query via method reference, {@code MinguoDate::from}. + */ + // @ts-ignore + public static from(temporal: java.time.temporal.TemporalAccessor): java.time.chrono.MinguoDate; + /** + * Gets the chronology of this date, which is the Minguo calendar system. + *

+ * The {@code Chronology} represents the calendar system in use. + * The era and other fields in {@link ChronoField} are defined by the chronology. + */ + // @ts-ignore + public getChronology(): java.time.chrono.MinguoChronology; + /** + * Gets the era applicable at this date. + *

+ * The Minguo calendar system has two eras, 'ROC' and 'BEFORE_ROC', + * defined by {@link MinguoEra}. + */ + // @ts-ignore + public getEra(): java.time.chrono.MinguoEra; + /** + * Returns the length of the month represented by this date. + *

+ * This returns the length of the month in days. + * Month lengths match those of the ISO calendar system. + */ + // @ts-ignore + public lengthOfMonth(): number; + // @ts-ignore + public range(field: java.time.temporal.TemporalField): java.time.temporal.ValueRange; + // @ts-ignore + public getLong(field: java.time.temporal.TemporalField): number; + // @ts-ignore + public with(field: java.time.temporal.TemporalField, newValue: number): java.time.chrono.MinguoDate; + /** + * {@inheritDoc} + */ + // @ts-ignore + public with(adjuster: java.time.temporal.TemporalAdjuster): java.time.chrono.MinguoDate; + /** + * {@inheritDoc} + */ + // @ts-ignore + public plus(amount: java.time.temporal.TemporalAmount): java.time.chrono.MinguoDate; + /** + * {@inheritDoc} + */ + // @ts-ignore + public minus(amount: java.time.temporal.TemporalAmount): java.time.chrono.MinguoDate; + // @ts-ignore + public plus(amountToAdd: number, unit: java.time.temporal.TemporalUnit): java.time.chrono.MinguoDate; + // @ts-ignore + public minus(amountToAdd: number, unit: java.time.temporal.TemporalUnit): java.time.chrono.MinguoDate; + // @ts-ignore + public atTime(localTime: java.time.LocalTime): java.time.chrono.ChronoLocalDateTime; + // @ts-ignore + public until(endDate: java.time.chrono.ChronoLocalDate): java.time.chrono.ChronoPeriod; + // @ts-ignore + public toEpochDay(): number; + /** + * Compares this date to another date, including the chronology. + *

+ * Compares this {@code MinguoDate} with another ensuring that the date is the same. + *

+ * Only objects of type {@code MinguoDate} are compared, other types return false. + * To compare the dates of two {@code TemporalAccessor} instances, including dates + * in two different chronologies, use {@link ChronoField#EPOCH_DAY} as a comparator. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * A hash code for this date. + */ + // @ts-ignore + public hashCode(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.chrono.MinguoEra.d.ts b/packages/types/dist/typings/jdk/java.time.chrono.MinguoEra.d.ts new file mode 100644 index 00000000..236e7d8d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.chrono.MinguoEra.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace chrono { + // @ts-ignore + class MinguoEra extends java.lang.Enum { + // @ts-ignore + public static BEFORE_ROC: java.time.chrono.MinguoEra; + // @ts-ignore + public static ROC: java.time.chrono.MinguoEra; + // @ts-ignore + public static values(): java.time.chrono.MinguoEra[]; + // @ts-ignore + public static valueOf(name: string): java.time.chrono.MinguoEra; + /** + * Obtains an instance of {@code MinguoEra} from an {@code int} value. + *

+ * {@code MinguoEra} is an enum representing the Minguo eras of BEFORE_ROC/ROC. + * This factory allows the enum to be obtained from the {@code int} value. + */ + // @ts-ignore + public static of(minguoEra: number): java.time.chrono.MinguoEra; + /** + * Gets the numeric era {@code int} value. + *

+ * The era BEFORE_ROC has the value 0, while the era ROC has the value 1. + */ + // @ts-ignore + public getValue(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.chrono.ThaiBuddhistChronology.d.ts b/packages/types/dist/typings/jdk/java.time.chrono.ThaiBuddhistChronology.d.ts new file mode 100644 index 00000000..a00537d8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.chrono.ThaiBuddhistChronology.d.ts @@ -0,0 +1,93 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace chrono { + // @ts-ignore + class ThaiBuddhistChronology extends java.time.chrono.AbstractChronology { + // @ts-ignore + public static INSTANCE: java.time.chrono.ThaiBuddhistChronology; + /** + * Gets the ID of the chronology - 'ThaiBuddhist'. + *

+ * The ID uniquely identifies the {@code Chronology}. + * It can be used to lookup the {@code Chronology} using {@link Chronology#of(String)}. + */ + // @ts-ignore + public getId(): string; + /** + * Gets the calendar type of the underlying calendar system - 'buddhist'. + *

+ * The calendar type is an identifier defined by the + * Unicode Locale Data Markup Language (LDML) specification. + * It can be used to lookup the {@code Chronology} using {@link Chronology#of(String)}. + * It can also be used as part of a locale, accessible via + * {@link Locale#getUnicodeLocaleType(String)} with the key 'ca'. + */ + // @ts-ignore + public getCalendarType(): string; + /** + * Obtains a local date in Thai Buddhist calendar system from the + * era, year-of-era, month-of-year and day-of-month fields. + */ + // @ts-ignore + public date(era: java.time.chrono.Era, yearOfEra: number, month: number, dayOfMonth: number): java.time.chrono.ThaiBuddhistDate; + /** + * Obtains a local date in Thai Buddhist calendar system from the + * proleptic-year, month-of-year and day-of-month fields. + */ + // @ts-ignore + public date(prolepticYear: number, month: number, dayOfMonth: number): java.time.chrono.ThaiBuddhistDate; + /** + * Obtains a local date in Thai Buddhist calendar system from the + * era, year-of-era and day-of-year fields. + */ + // @ts-ignore + public dateYearDay(era: java.time.chrono.Era, yearOfEra: number, dayOfYear: number): java.time.chrono.ThaiBuddhistDate; + /** + * Obtains a local date in Thai Buddhist calendar system from the + * proleptic-year and day-of-year fields. + */ + // @ts-ignore + public dateYearDay(prolepticYear: number, dayOfYear: number): java.time.chrono.ThaiBuddhistDate; + /** + * Obtains a local date in the Thai Buddhist calendar system from the epoch-day. + */ + // @ts-ignore + public dateEpochDay(epochDay: number): java.time.chrono.ThaiBuddhistDate; + // @ts-ignore + public dateNow(): java.time.chrono.ThaiBuddhistDate; + // @ts-ignore + public dateNow(zone: java.time.ZoneId): java.time.chrono.ThaiBuddhistDate; + // @ts-ignore + public dateNow(clock: java.time.Clock): java.time.chrono.ThaiBuddhistDate; + // @ts-ignore + public date(temporal: java.time.temporal.TemporalAccessor): java.time.chrono.ThaiBuddhistDate; + // @ts-ignore + public localDateTime(temporal: java.time.temporal.TemporalAccessor): java.time.chrono.ChronoLocalDateTime; + // @ts-ignore + public zonedDateTime(temporal: java.time.temporal.TemporalAccessor): java.time.chrono.ChronoZonedDateTime; + // @ts-ignore + public zonedDateTime(instant: java.time.Instant, zone: java.time.ZoneId): java.time.chrono.ChronoZonedDateTime; + /** + * Checks if the specified year is a leap year. + *

+ * Thai Buddhist leap years occur exactly in line with ISO leap years. + * This method does not validate the year passed in, and only has a + * well-defined result for years in the supported range. + */ + // @ts-ignore + public isLeapYear(prolepticYear: number): boolean; + // @ts-ignore + public prolepticYear(era: java.time.chrono.Era, yearOfEra: number): number; + // @ts-ignore + public eraOf(eraValue: number): java.time.chrono.ThaiBuddhistEra; + // @ts-ignore + public eras(): java.util.List; + // @ts-ignore + public range(field: java.time.temporal.ChronoField): java.time.temporal.ValueRange; + // @ts-ignore + public resolveDate(fieldValues: java.util.Map, resolverStyle: java.time.format.ResolverStyle): java.time.chrono.ThaiBuddhistDate; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.chrono.ThaiBuddhistDate.d.ts b/packages/types/dist/typings/jdk/java.time.chrono.ThaiBuddhistDate.d.ts new file mode 100644 index 00000000..85c824c1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.chrono.ThaiBuddhistDate.d.ts @@ -0,0 +1,136 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace chrono { + // @ts-ignore + class ThaiBuddhistDate extends java.time.chrono.ChronoLocalDateImpl { + /** + * Obtains the current {@code ThaiBuddhistDate} from the system clock in the default time-zone. + *

+ * This will query the {@link Clock#systemDefaultZone() system clock} in the default + * time-zone to obtain the current date. + *

+ * Using this method will prevent the ability to use an alternate clock for testing + * because the clock is hard-coded. + */ + // @ts-ignore + public static now(): java.time.chrono.ThaiBuddhistDate; + /** + * Obtains the current {@code ThaiBuddhistDate} from the system clock in the specified time-zone. + *

+ * This will query the {@link Clock#system(ZoneId) system clock} to obtain the current date. + * Specifying the time-zone avoids dependence on the default time-zone. + *

+ * Using this method will prevent the ability to use an alternate clock for testing + * because the clock is hard-coded. + */ + // @ts-ignore + public static now(zone: java.time.ZoneId): java.time.chrono.ThaiBuddhistDate; + /** + * Obtains the current {@code ThaiBuddhistDate} from the specified clock. + *

+ * This will query the specified clock to obtain the current date - today. + * Using this method allows the use of an alternate clock for testing. + * The alternate clock may be introduced using {@linkplain Clock dependency injection}. + */ + // @ts-ignore + public static now(clock: java.time.Clock): java.time.chrono.ThaiBuddhistDate; + /** + * Obtains a {@code ThaiBuddhistDate} representing a date in the Thai Buddhist calendar + * system from the proleptic-year, month-of-year and day-of-month fields. + *

+ * This returns a {@code ThaiBuddhistDate} with the specified fields. + * The day must be valid for the year and month, otherwise an exception will be thrown. + */ + // @ts-ignore + public static of(prolepticYear: number, month: number, dayOfMonth: number): java.time.chrono.ThaiBuddhistDate; + /** + * Obtains a {@code ThaiBuddhistDate} from a temporal object. + *

+ * This obtains a date in the Thai Buddhist calendar system based on the specified temporal. + * A {@code TemporalAccessor} represents an arbitrary set of date and time information, + * which this factory converts to an instance of {@code ThaiBuddhistDate}. + *

+ * The conversion typically uses the {@link ChronoField#EPOCH_DAY EPOCH_DAY} + * field, which is standardized across calendar systems. + *

+ * This method matches the signature of the functional interface {@link TemporalQuery} + * allowing it to be used as a query via method reference, {@code ThaiBuddhistDate::from}. + */ + // @ts-ignore + public static from(temporal: java.time.temporal.TemporalAccessor): java.time.chrono.ThaiBuddhistDate; + /** + * Gets the chronology of this date, which is the Thai Buddhist calendar system. + *

+ * The {@code Chronology} represents the calendar system in use. + * The era and other fields in {@link ChronoField} are defined by the chronology. + */ + // @ts-ignore + public getChronology(): java.time.chrono.ThaiBuddhistChronology; + /** + * Gets the era applicable at this date. + *

+ * The Thai Buddhist calendar system has two eras, 'BE' and 'BEFORE_BE', + * defined by {@link ThaiBuddhistEra}. + */ + // @ts-ignore + public getEra(): java.time.chrono.ThaiBuddhistEra; + /** + * Returns the length of the month represented by this date. + *

+ * This returns the length of the month in days. + * Month lengths match those of the ISO calendar system. + */ + // @ts-ignore + public lengthOfMonth(): number; + // @ts-ignore + public range(field: java.time.temporal.TemporalField): java.time.temporal.ValueRange; + // @ts-ignore + public getLong(field: java.time.temporal.TemporalField): number; + // @ts-ignore + public with(field: java.time.temporal.TemporalField, newValue: number): java.time.chrono.ThaiBuddhistDate; + /** + * {@inheritDoc} + */ + // @ts-ignore + public with(adjuster: java.time.temporal.TemporalAdjuster): java.time.chrono.ThaiBuddhistDate; + /** + * {@inheritDoc} + */ + // @ts-ignore + public plus(amount: java.time.temporal.TemporalAmount): java.time.chrono.ThaiBuddhistDate; + /** + * {@inheritDoc} + */ + // @ts-ignore + public minus(amount: java.time.temporal.TemporalAmount): java.time.chrono.ThaiBuddhistDate; + // @ts-ignore + public plus(amountToAdd: number, unit: java.time.temporal.TemporalUnit): java.time.chrono.ThaiBuddhistDate; + // @ts-ignore + public minus(amountToAdd: number, unit: java.time.temporal.TemporalUnit): java.time.chrono.ThaiBuddhistDate; + // @ts-ignore + public atTime(localTime: java.time.LocalTime): java.time.chrono.ChronoLocalDateTime; + // @ts-ignore + public until(endDate: java.time.chrono.ChronoLocalDate): java.time.chrono.ChronoPeriod; + // @ts-ignore + public toEpochDay(): number; + /** + * Compares this date to another date, including the chronology. + *

+ * Compares this {@code ThaiBuddhistDate} with another ensuring that the date is the same. + *

+ * Only objects of type {@code ThaiBuddhistDate} are compared, other types return false. + * To compare the dates of two {@code TemporalAccessor} instances, including dates + * in two different chronologies, use {@link ChronoField#EPOCH_DAY} as a comparator. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * A hash code for this date. + */ + // @ts-ignore + public hashCode(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.chrono.ThaiBuddhistEra.d.ts b/packages/types/dist/typings/jdk/java.time.chrono.ThaiBuddhistEra.d.ts new file mode 100644 index 00000000..7c37cef2 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.chrono.ThaiBuddhistEra.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace chrono { + // @ts-ignore + class ThaiBuddhistEra extends java.lang.Enum { + // @ts-ignore + public static BEFORE_BE: java.time.chrono.ThaiBuddhistEra; + // @ts-ignore + public static BE: java.time.chrono.ThaiBuddhistEra; + // @ts-ignore + public static values(): java.time.chrono.ThaiBuddhistEra[]; + // @ts-ignore + public static valueOf(name: string): java.time.chrono.ThaiBuddhistEra; + /** + * Obtains an instance of {@code ThaiBuddhistEra} from an {@code int} value. + *

+ * {@code ThaiBuddhistEra} is an enum representing the Thai Buddhist eras of BEFORE_BE/BE. + * This factory allows the enum to be obtained from the {@code int} value. + */ + // @ts-ignore + public static of(thaiBuddhistEra: number): java.time.chrono.ThaiBuddhistEra; + /** + * Gets the numeric era {@code int} value. + *

+ * The era BEFORE_BE has the value 0, while the era BE has the value 1. + */ + // @ts-ignore + public getValue(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.format.DateTimeFormatter.d.ts b/packages/types/dist/typings/jdk/java.time.format.DateTimeFormatter.d.ts new file mode 100644 index 00000000..120afe58 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.format.DateTimeFormatter.d.ts @@ -0,0 +1,623 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace format { + // @ts-ignore + class DateTimeFormatter extends java.lang.Object { + // @ts-ignore + public static ISO_LOCAL_DATE: java.time.format.DateTimeFormatter; + // @ts-ignore + public static ISO_OFFSET_DATE: java.time.format.DateTimeFormatter; + // @ts-ignore + public static ISO_DATE: java.time.format.DateTimeFormatter; + // @ts-ignore + public static ISO_LOCAL_TIME: java.time.format.DateTimeFormatter; + // @ts-ignore + public static ISO_OFFSET_TIME: java.time.format.DateTimeFormatter; + // @ts-ignore + public static ISO_TIME: java.time.format.DateTimeFormatter; + // @ts-ignore + public static ISO_LOCAL_DATE_TIME: java.time.format.DateTimeFormatter; + // @ts-ignore + public static ISO_OFFSET_DATE_TIME: java.time.format.DateTimeFormatter; + // @ts-ignore + public static ISO_ZONED_DATE_TIME: java.time.format.DateTimeFormatter; + // @ts-ignore + public static ISO_DATE_TIME: java.time.format.DateTimeFormatter; + // @ts-ignore + public static ISO_ORDINAL_DATE: java.time.format.DateTimeFormatter; + // @ts-ignore + public static ISO_WEEK_DATE: java.time.format.DateTimeFormatter; + // @ts-ignore + public static ISO_INSTANT: java.time.format.DateTimeFormatter; + // @ts-ignore + public static BASIC_ISO_DATE: java.time.format.DateTimeFormatter; + // @ts-ignore + public static RFC_1123_DATE_TIME: java.time.format.DateTimeFormatter; + /** + * Creates a formatter using the specified pattern. + *

+ * This method will create a formatter based on a simple + * pattern of letters and symbols + * as described in the class documentation. + * For example, {@code d MMM uuuu} will format 2011-12-03 as '3 Dec 2011'. + *

+ * The formatter will use the {@link Locale#getDefault(Locale.Category) default FORMAT locale}. + * This can be changed using {@link DateTimeFormatter#withLocale(Locale)} on the returned formatter + * Alternatively use the {@link #ofPattern(String, Locale)} variant of this method. + *

+ * The returned formatter has no override chronology or zone. + * It uses {@link ResolverStyle#SMART SMART} resolver style. + */ + // @ts-ignore + public static ofPattern(pattern: string): java.time.format.DateTimeFormatter; + /** + * Creates a formatter using the specified pattern and locale. + *

+ * This method will create a formatter based on a simple + * pattern of letters and symbols + * as described in the class documentation. + * For example, {@code d MMM uuuu} will format 2011-12-03 as '3 Dec 2011'. + *

+ * The formatter will use the specified locale. + * This can be changed using {@link DateTimeFormatter#withLocale(Locale)} on the returned formatter + *

+ * The returned formatter has no override chronology or zone. + * It uses {@link ResolverStyle#SMART SMART} resolver style. + */ + // @ts-ignore + public static ofPattern(pattern: string, locale: java.util.Locale): java.time.format.DateTimeFormatter; + /** + * Returns a locale specific date format for the ISO chronology. + *

+ * This returns a formatter that will format or parse a date. + * The exact format pattern used varies by locale. + *

+ * The locale is determined from the formatter. The formatter returned directly by + * this method will use the {@link Locale#getDefault(Locale.Category) default FORMAT locale}. + * The locale can be controlled using {@link DateTimeFormatter#withLocale(Locale) withLocale(Locale)} + * on the result of this method. + *

+ * Note that the localized pattern is looked up lazily. + * This {@code DateTimeFormatter} holds the style required and the locale, + * looking up the pattern required on demand. + *

+ * The returned formatter has a chronology of ISO set to ensure dates in + * other calendar systems are correctly converted. + * It has no override zone and uses the {@link ResolverStyle#SMART SMART} resolver style. + */ + // @ts-ignore + public static ofLocalizedDate(dateStyle: java.time.format.FormatStyle): java.time.format.DateTimeFormatter; + /** + * Returns a locale specific time format for the ISO chronology. + *

+ * This returns a formatter that will format or parse a time. + * The exact format pattern used varies by locale. + *

+ * The locale is determined from the formatter. The formatter returned directly by + * this method will use the {@link Locale#getDefault(Locale.Category) default FORMAT locale}. + * The locale can be controlled using {@link DateTimeFormatter#withLocale(Locale) withLocale(Locale)} + * on the result of this method. + *

+ * Note that the localized pattern is looked up lazily. + * This {@code DateTimeFormatter} holds the style required and the locale, + * looking up the pattern required on demand. + *

+ * The returned formatter has a chronology of ISO set to ensure dates in + * other calendar systems are correctly converted. + * It has no override zone and uses the {@link ResolverStyle#SMART SMART} resolver style. + */ + // @ts-ignore + public static ofLocalizedTime(timeStyle: java.time.format.FormatStyle): java.time.format.DateTimeFormatter; + /** + * Returns a locale specific date-time formatter for the ISO chronology. + *

+ * This returns a formatter that will format or parse a date-time. + * The exact format pattern used varies by locale. + *

+ * The locale is determined from the formatter. The formatter returned directly by + * this method will use the {@link Locale#getDefault(Locale.Category) default FORMAT locale}. + * The locale can be controlled using {@link DateTimeFormatter#withLocale(Locale) withLocale(Locale)} + * on the result of this method. + *

+ * Note that the localized pattern is looked up lazily. + * This {@code DateTimeFormatter} holds the style required and the locale, + * looking up the pattern required on demand. + *

+ * The returned formatter has a chronology of ISO set to ensure dates in + * other calendar systems are correctly converted. + * It has no override zone and uses the {@link ResolverStyle#SMART SMART} resolver style. + */ + // @ts-ignore + public static ofLocalizedDateTime(dateTimeStyle: java.time.format.FormatStyle): java.time.format.DateTimeFormatter; + /** + * Returns a locale specific date and time format for the ISO chronology. + *

+ * This returns a formatter that will format or parse a date-time. + * The exact format pattern used varies by locale. + *

+ * The locale is determined from the formatter. The formatter returned directly by + * this method will use the {@link Locale#getDefault() default FORMAT locale}. + * The locale can be controlled using {@link DateTimeFormatter#withLocale(Locale) withLocale(Locale)} + * on the result of this method. + *

+ * Note that the localized pattern is looked up lazily. + * This {@code DateTimeFormatter} holds the style required and the locale, + * looking up the pattern required on demand. + *

+ * The returned formatter has a chronology of ISO set to ensure dates in + * other calendar systems are correctly converted. + * It has no override zone and uses the {@link ResolverStyle#SMART SMART} resolver style. + */ + // @ts-ignore + public static ofLocalizedDateTime(dateStyle: java.time.format.FormatStyle, timeStyle: java.time.format.FormatStyle): java.time.format.DateTimeFormatter; + /** + * A query that provides access to the excess days that were parsed. + *

+ * This returns a singleton {@linkplain TemporalQuery query} that provides + * access to additional information from the parse. The query always returns + * a non-null period, with a zero period returned instead of null. + *

+ * There are two situations where this query may return a non-zero period. + *

    + *
  • If the {@code ResolverStyle} is {@code LENIENT} and a time is parsed + * without a date, then the complete result of the parse consists of a + * {@code LocalTime} and an excess {@code Period} in days. + *
  • If the {@code ResolverStyle} is {@code SMART} and a time is parsed + * without a date where the time is 24:00:00, then the complete result of + * the parse consists of a {@code LocalTime} of 00:00:00 and an excess + * {@code Period} of one day. + *
+ *

+ * In both cases, if a complete {@code ChronoLocalDateTime} or {@code Instant} + * is parsed, then the excess days are added to the date part. + * As a result, this query will return a zero period. + *

+ * The {@code SMART} behaviour handles the common "end of day" 24:00 value. + * Processing in {@code LENIENT} mode also produces the same result: + *

+                 * Text to parse        Parsed object                         Excess days
+                 * "2012-12-03T00:00"   LocalDateTime.of(2012, 12, 3, 0, 0)   ZERO
+                 * "2012-12-03T24:00"   LocalDateTime.of(2012, 12, 4, 0, 0)   ZERO
+                 * "00:00"              LocalTime.of(0, 0)                    ZERO
+                 * "24:00"              LocalTime.of(0, 0)                    Period.ofDays(1)
+                 * 
+ * The query can be used as follows: + *
+                 * TemporalAccessor parsed = formatter.parse(str);
+                 * LocalTime time = parsed.query(LocalTime::from);
+                 * Period extraDays = parsed.query(DateTimeFormatter.parsedExcessDays());
+                 * 
+ */ + // @ts-ignore + public static parsedExcessDays(): java.time.temporal.TemporalQuery; + /** + * A query that provides access to whether a leap-second was parsed. + *

+ * This returns a singleton {@linkplain TemporalQuery query} that provides + * access to additional information from the parse. The query always returns + * a non-null boolean, true if parsing saw a leap-second, false if not. + *

+ * Instant parsing handles the special "leap second" time of '23:59:60'. + * Leap seconds occur at '23:59:60' in the UTC time-zone, but at other + * local times in different time-zones. To avoid this potential ambiguity, + * the handling of leap-seconds is limited to + * {@link DateTimeFormatterBuilder#appendInstant()}, as that method + * always parses the instant with the UTC zone offset. + *

+ * If the time '23:59:60' is received, then a simple conversion is applied, + * replacing the second-of-minute of 60 with 59. This query can be used + * on the parse result to determine if the leap-second adjustment was made. + * The query will return {@code true} if it did adjust to remove the + * leap-second, and {@code false} if not. Note that applying a leap-second + * smoothing mechanism, such as UTC-SLS, is the responsibility of the + * application, as follows: + *

+                 * TemporalAccessor parsed = formatter.parse(str);
+                 * Instant instant = parsed.query(Instant::from);
+                 * if (parsed.query(DateTimeFormatter.parsedLeapSecond())) {
+                 * // validate leap-second is correct and apply correct smoothing
+                 * }
+                 * 
+ */ + // @ts-ignore + public static parsedLeapSecond(): java.time.temporal.TemporalQuery; + /** + * Gets the locale to be used during formatting. + *

+ * This is used to lookup any part of the formatter needing specific + * localization, such as the text or localized pattern. + */ + // @ts-ignore + public getLocale(): java.util.Locale; + /** + * Returns a copy of this formatter with a new locale. + *

+ * This is used to lookup any part of the formatter needing specific + * localization, such as the text or localized pattern. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withLocale(locale: java.util.Locale): java.time.format.DateTimeFormatter; + /** + * Gets the DecimalStyle to be used during formatting. + */ + // @ts-ignore + public getDecimalStyle(): java.time.format.DecimalStyle; + /** + * Returns a copy of this formatter with a new DecimalStyle. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withDecimalStyle(decimalStyle: java.time.format.DecimalStyle): java.time.format.DateTimeFormatter; + /** + * Gets the overriding chronology to be used during formatting. + *

+ * This returns the override chronology, used to convert dates. + * By default, a formatter has no override chronology, returning null. + * See {@link #withChronology(Chronology)} for more details on overriding. + */ + // @ts-ignore + public getChronology(): java.time.chrono.Chronology; + /** + * Returns a copy of this formatter with a new override chronology. + *

+ * This returns a formatter with similar state to this formatter but + * with the override chronology set. + * By default, a formatter has no override chronology, returning null. + *

+ * If an override is added, then any date that is formatted or parsed will be affected. + *

+ * When formatting, if the temporal object contains a date, then it will + * be converted to a date in the override chronology. + * Whether the temporal contains a date is determined by querying the + * {@link ChronoField#EPOCH_DAY EPOCH_DAY} field. + * Any time or zone will be retained unaltered unless overridden. + *

+ * If the temporal object does not contain a date, but does contain one + * or more {@code ChronoField} date fields, then a {@code DateTimeException} + * is thrown. In all other cases, the override chronology is added to the temporal, + * replacing any previous chronology, but without changing the date/time. + *

+ * When parsing, there are two distinct cases to consider. + * If a chronology has been parsed directly from the text, perhaps because + * {@link DateTimeFormatterBuilder#appendChronologyId()} was used, then + * this override chronology has no effect. + * If no zone has been parsed, then this override chronology will be used + * to interpret the {@code ChronoField} values into a date according to the + * date resolving rules of the chronology. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withChronology(chrono: java.time.chrono.Chronology): java.time.format.DateTimeFormatter; + /** + * Gets the overriding zone to be used during formatting. + *

+ * This returns the override zone, used to convert instants. + * By default, a formatter has no override zone, returning null. + * See {@link #withZone(ZoneId)} for more details on overriding. + */ + // @ts-ignore + public getZone(): java.time.ZoneId; + /** + * Returns a copy of this formatter with a new override zone. + *

+ * This returns a formatter with similar state to this formatter but + * with the override zone set. + * By default, a formatter has no override zone, returning null. + *

+ * If an override is added, then any instant that is formatted or parsed will be affected. + *

+ * When formatting, if the temporal object contains an instant, then it will + * be converted to a zoned date-time using the override zone. + * Whether the temporal is an instant is determined by querying the + * {@link ChronoField#INSTANT_SECONDS INSTANT_SECONDS} field. + * If the input has a chronology then it will be retained unless overridden. + * If the input does not have a chronology, such as {@code Instant}, then + * the ISO chronology will be used. + *

+ * If the temporal object does not contain an instant, but does contain + * an offset then an additional check is made. If the normalized override + * zone is an offset that differs from the offset of the temporal, then + * a {@code DateTimeException} is thrown. In all other cases, the override + * zone is added to the temporal, replacing any previous zone, but without + * changing the date/time. + *

+ * When parsing, there are two distinct cases to consider. + * If a zone has been parsed directly from the text, perhaps because + * {@link DateTimeFormatterBuilder#appendZoneId()} was used, then + * this override zone has no effect. + * If no zone has been parsed, then this override zone will be included in + * the result of the parse where it can be used to build instants and date-times. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withZone(zone: java.time.ZoneId): java.time.format.DateTimeFormatter; + /** + * Gets the resolver style to use during parsing. + *

+ * This returns the resolver style, used during the second phase of parsing + * when fields are resolved into dates and times. + * By default, a formatter has the {@link ResolverStyle#SMART SMART} resolver style. + * See {@link #withResolverStyle(ResolverStyle)} for more details. + */ + // @ts-ignore + public getResolverStyle(): java.time.format.ResolverStyle; + /** + * Returns a copy of this formatter with a new resolver style. + *

+ * This returns a formatter with similar state to this formatter but + * with the resolver style set. By default, a formatter has the + * {@link ResolverStyle#SMART SMART} resolver style. + *

+ * Changing the resolver style only has an effect during parsing. + * Parsing a text string occurs in two phases. + * Phase 1 is a basic text parse according to the fields added to the builder. + * Phase 2 resolves the parsed field-value pairs into date and/or time objects. + * The resolver style is used to control how phase 2, resolving, happens. + * See {@code ResolverStyle} for more information on the options available. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withResolverStyle(resolverStyle: java.time.format.ResolverStyle): java.time.format.DateTimeFormatter; + /** + * Gets the resolver fields to use during parsing. + *

+ * This returns the resolver fields, used during the second phase of parsing + * when fields are resolved into dates and times. + * By default, a formatter has no resolver fields, and thus returns null. + * See {@link #withResolverFields(Set)} for more details. + */ + // @ts-ignore + public getResolverFields(): java.util.Set; + /** + * Returns a copy of this formatter with a new set of resolver fields. + *

+ * This returns a formatter with similar state to this formatter but with + * the resolver fields set. By default, a formatter has no resolver fields. + *

+ * Changing the resolver fields only has an effect during parsing. + * Parsing a text string occurs in two phases. + * Phase 1 is a basic text parse according to the fields added to the builder. + * Phase 2 resolves the parsed field-value pairs into date and/or time objects. + * The resolver fields are used to filter the field-value pairs between phase 1 and 2. + *

+ * This can be used to select between two or more ways that a date or time might + * be resolved. For example, if the formatter consists of year, month, day-of-month + * and day-of-year, then there are two ways to resolve a date. + * Calling this method with the arguments {@link ChronoField#YEAR YEAR} and + * {@link ChronoField#DAY_OF_YEAR DAY_OF_YEAR} will ensure that the date is + * resolved using the year and day-of-year, effectively meaning that the month + * and day-of-month are ignored during the resolving phase. + *

+ * In a similar manner, this method can be used to ignore secondary fields that + * would otherwise be cross-checked. For example, if the formatter consists of year, + * month, day-of-month and day-of-week, then there is only one way to resolve a + * date, but the parsed value for day-of-week will be cross-checked against the + * resolved date. Calling this method with the arguments {@link ChronoField#YEAR YEAR}, + * {@link ChronoField#MONTH_OF_YEAR MONTH_OF_YEAR} and + * {@link ChronoField#DAY_OF_MONTH DAY_OF_MONTH} will ensure that the date is + * resolved correctly, but without any cross-check for the day-of-week. + *

+ * In implementation terms, this method behaves as follows. The result of the + * parsing phase can be considered to be a map of field to value. The behavior + * of this method is to cause that map to be filtered between phase 1 and 2, + * removing all fields other than those specified as arguments to this method. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withResolverFields(resolverFields: java.time.temporal.TemporalField): java.time.format.DateTimeFormatter; + /** + * Returns a copy of this formatter with a new set of resolver fields. + *

+ * This returns a formatter with similar state to this formatter but with + * the resolver fields set. By default, a formatter has no resolver fields. + *

+ * Changing the resolver fields only has an effect during parsing. + * Parsing a text string occurs in two phases. + * Phase 1 is a basic text parse according to the fields added to the builder. + * Phase 2 resolves the parsed field-value pairs into date and/or time objects. + * The resolver fields are used to filter the field-value pairs between phase 1 and 2. + *

+ * This can be used to select between two or more ways that a date or time might + * be resolved. For example, if the formatter consists of year, month, day-of-month + * and day-of-year, then there are two ways to resolve a date. + * Calling this method with the arguments {@link ChronoField#YEAR YEAR} and + * {@link ChronoField#DAY_OF_YEAR DAY_OF_YEAR} will ensure that the date is + * resolved using the year and day-of-year, effectively meaning that the month + * and day-of-month are ignored during the resolving phase. + *

+ * In a similar manner, this method can be used to ignore secondary fields that + * would otherwise be cross-checked. For example, if the formatter consists of year, + * month, day-of-month and day-of-week, then there is only one way to resolve a + * date, but the parsed value for day-of-week will be cross-checked against the + * resolved date. Calling this method with the arguments {@link ChronoField#YEAR YEAR}, + * {@link ChronoField#MONTH_OF_YEAR MONTH_OF_YEAR} and + * {@link ChronoField#DAY_OF_MONTH DAY_OF_MONTH} will ensure that the date is + * resolved correctly, but without any cross-check for the day-of-week. + *

+ * In implementation terms, this method behaves as follows. The result of the + * parsing phase can be considered to be a map of field to value. The behavior + * of this method is to cause that map to be filtered between phase 1 and 2, + * removing all fields other than those specified as arguments to this method. + *

+ * This instance is immutable and unaffected by this method call. + */ + // @ts-ignore + public withResolverFields(resolverFields: java.util.Set): java.time.format.DateTimeFormatter; + /** + * Formats a date-time object using this formatter. + *

+ * This formats the date-time to a String using the rules of the formatter. + */ + // @ts-ignore + public format(temporal: java.time.temporal.TemporalAccessor): string; + /** + * Formats a date-time object to an {@code Appendable} using this formatter. + *

+ * This outputs the formatted date-time to the specified destination. + * {@link Appendable} is a general purpose interface that is implemented by all + * key character output classes including {@code StringBuffer}, {@code StringBuilder}, + * {@code PrintStream} and {@code Writer}. + *

+ * Although {@code Appendable} methods throw an {@code IOException}, this method does not. + * Instead, any {@code IOException} is wrapped in a runtime exception. + */ + // @ts-ignore + public formatTo(temporal: java.time.temporal.TemporalAccessor, appendable: java.lang.Appendable): void; + /** + * Fully parses the text producing a temporal object. + *

+ * This parses the entire text producing a temporal object. + * It is typically more useful to use {@link #parse(CharSequence, TemporalQuery)}. + * The result of this method is {@code TemporalAccessor} which has been resolved, + * applying basic validation checks to help ensure a valid date-time. + *

+ * If the parse completes without reading the entire length of the text, + * or a problem occurs during parsing or merging, then an exception is thrown. + */ + // @ts-ignore + public parse(text: java.lang.CharSequence): java.time.temporal.TemporalAccessor; + /** + * Parses the text using this formatter, providing control over the text position. + *

+ * This parses the text without requiring the parse to start from the beginning + * of the string or finish at the end. + * The result of this method is {@code TemporalAccessor} which has been resolved, + * applying basic validation checks to help ensure a valid date-time. + *

+ * The text will be parsed from the specified start {@code ParsePosition}. + * The entire length of the text does not have to be parsed, the {@code ParsePosition} + * will be updated with the index at the end of parsing. + *

+ * The operation of this method is slightly different to similar methods using + * {@code ParsePosition} on {@code java.text.Format}. That class will return + * errors using the error index on the {@code ParsePosition}. By contrast, this + * method will throw a {@link DateTimeParseException} if an error occurs, with + * the exception containing the error index. + * This change in behavior is necessary due to the increased complexity of + * parsing and resolving dates/times in this API. + *

+ * If the formatter parses the same field more than once with different values, + * the result will be an error. + */ + // @ts-ignore + public parse(text: java.lang.CharSequence, position: java.text.ParsePosition): java.time.temporal.TemporalAccessor; + /** + * Fully parses the text producing an object of the specified type. + *

+ * Most applications should use this method for parsing. + * It parses the entire text to produce the required date-time. + * The query is typically a method reference to a {@code from(TemporalAccessor)} method. + * For example: + *

+                 * LocalDateTime dt = parser.parse(str, LocalDateTime::from);
+                 * 
+ * If the parse completes without reading the entire length of the text, + * or a problem occurs during parsing or merging, then an exception is thrown. + */ + // @ts-ignore + public parse(text: java.lang.CharSequence, query: java.time.temporal.TemporalQuery): java.lang.Object; + /** + * Fully parses the text producing an object of one of the specified types. + *

+ * This parse method is convenient for use when the parser can handle optional elements. + * For example, a pattern of 'uuuu-MM-dd HH.mm[ VV]' can be fully parsed to a {@code ZonedDateTime}, + * or partially parsed to a {@code LocalDateTime}. + * The queries must be specified in order, starting from the best matching full-parse option + * and ending with the worst matching minimal parse option. + * The query is typically a method reference to a {@code from(TemporalAccessor)} method. + *

+ * The result is associated with the first type that successfully parses. + * Normally, applications will use {@code instanceof} to check the result. + * For example: + *

+                 * TemporalAccessor dt = parser.parseBest(str, ZonedDateTime::from, LocalDateTime::from);
+                 * if (dt instanceof ZonedDateTime) {
+                 * ...
+                 * } else {
+                 * ...
+                 * }
+                 * 
+ * If the parse completes without reading the entire length of the text, + * or a problem occurs during parsing or merging, then an exception is thrown. + */ + // @ts-ignore + public parseBest(text: java.lang.CharSequence, queries: java.time.temporal.TemporalQuery): java.time.temporal.TemporalAccessor; + /** + * Parses the text using this formatter, without resolving the result, intended + * for advanced use cases. + *

+ * Parsing is implemented as a two-phase operation. + * First, the text is parsed using the layout defined by the formatter, producing + * a {@code Map} of field to value, a {@code ZoneId} and a {@code Chronology}. + * Second, the parsed data is resolved, by validating, combining and + * simplifying the various fields into more useful ones. + * This method performs the parsing stage but not the resolving stage. + *

+ * The result of this method is {@code TemporalAccessor} which represents the + * data as seen in the input. Values are not validated, thus parsing a date string + * of '2012-00-65' would result in a temporal with three fields - year of '2012', + * month of '0' and day-of-month of '65'. + *

+ * The text will be parsed from the specified start {@code ParsePosition}. + * The entire length of the text does not have to be parsed, the {@code ParsePosition} + * will be updated with the index at the end of parsing. + *

+ * Errors are returned using the error index field of the {@code ParsePosition} + * instead of {@code DateTimeParseException}. + * The returned error index will be set to an index indicative of the error. + * Callers must check for errors before using the result. + *

+ * If the formatter parses the same field more than once with different values, + * the result will be an error. + *

+ * This method is intended for advanced use cases that need access to the + * internal state during parsing. Typical application code should use + * {@link #parse(CharSequence, TemporalQuery)} or the parse method on the target type. + */ + // @ts-ignore + public parseUnresolved(text: java.lang.CharSequence, position: java.text.ParsePosition): java.time.temporal.TemporalAccessor; + /** + * Returns this formatter as a {@code java.text.Format} instance. + *

+ * The returned {@link Format} instance will format any {@link TemporalAccessor} + * and parses to a resolved {@link TemporalAccessor}. + *

+ * Exceptions will follow the definitions of {@code Format}, see those methods + * for details about {@code IllegalArgumentException} during formatting and + * {@code ParseException} or null during parsing. + * The format does not support attributing of the returned format string. + */ + // @ts-ignore + public toFormat(): java.text.Format; + /** + * Returns this formatter as a {@code java.text.Format} instance that will + * parse using the specified query. + *

+ * The returned {@link Format} instance will format any {@link TemporalAccessor} + * and parses to the type specified. + * The type must be one that is supported by {@link #parse}. + *

+ * Exceptions will follow the definitions of {@code Format}, see those methods + * for details about {@code IllegalArgumentException} during formatting and + * {@code ParseException} or null during parsing. + * The format does not support attributing of the returned format string. + */ + // @ts-ignore + public toFormat(parseQuery: java.time.temporal.TemporalQuery): java.text.Format; + /** + * Returns a description of the underlying formatters. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.format.DateTimeFormatterBuilder.d.ts b/packages/types/dist/typings/jdk/java.time.format.DateTimeFormatterBuilder.d.ts new file mode 100644 index 00000000..0ce273b4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.format.DateTimeFormatterBuilder.d.ts @@ -0,0 +1,1102 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace format { + // @ts-ignore + class DateTimeFormatterBuilder extends java.lang.Object { + /** + * Constructs a new instance of the builder. + */ + // @ts-ignore + constructor() + /** + * Gets the formatting pattern for date and time styles for a locale and chronology. + * The locale and chronology are used to lookup the locale specific format + * for the requested dateStyle and/or timeStyle. + */ + // @ts-ignore + public static getLocalizedDateTimePattern(dateStyle: java.time.format.FormatStyle, timeStyle: java.time.format.FormatStyle, chrono: java.time.chrono.Chronology, locale: java.util.Locale): string; + /** + * Changes the parse style to be case sensitive for the remainder of the formatter. + *

+ * Parsing can be case sensitive or insensitive - by default it is case sensitive. + * This method allows the case sensitivity setting of parsing to be changed. + *

+ * Calling this method changes the state of the builder such that all + * subsequent builder method calls will parse text in case sensitive mode. + * See {@link #parseCaseInsensitive} for the opposite setting. + * The parse case sensitive/insensitive methods may be called at any point + * in the builder, thus the parser can swap between case parsing modes + * multiple times during the parse. + *

+ * Since the default is case sensitive, this method should only be used after + * a previous call to {@code #parseCaseInsensitive}. + */ + // @ts-ignore + public parseCaseSensitive(): java.time.format.DateTimeFormatterBuilder; + /** + * Changes the parse style to be case insensitive for the remainder of the formatter. + *

+ * Parsing can be case sensitive or insensitive - by default it is case sensitive. + * This method allows the case sensitivity setting of parsing to be changed. + *

+ * Calling this method changes the state of the builder such that all + * subsequent builder method calls will parse text in case insensitive mode. + * See {@link #parseCaseSensitive()} for the opposite setting. + * The parse case sensitive/insensitive methods may be called at any point + * in the builder, thus the parser can swap between case parsing modes + * multiple times during the parse. + */ + // @ts-ignore + public parseCaseInsensitive(): java.time.format.DateTimeFormatterBuilder; + /** + * Changes the parse style to be strict for the remainder of the formatter. + *

+ * Parsing can be strict or lenient - by default its strict. + * This controls the degree of flexibility in matching the text and sign styles. + *

+ * When used, this method changes the parsing to be strict from this point onwards. + * As strict is the default, this is normally only needed after calling {@link #parseLenient()}. + * The change will remain in force until the end of the formatter that is eventually + * constructed or until {@code parseLenient} is called. + */ + // @ts-ignore + public parseStrict(): java.time.format.DateTimeFormatterBuilder; + /** + * Changes the parse style to be lenient for the remainder of the formatter. + * Note that case sensitivity is set separately to this method. + *

+ * Parsing can be strict or lenient - by default its strict. + * This controls the degree of flexibility in matching the text and sign styles. + * Applications calling this method should typically also call {@link #parseCaseInsensitive()}. + *

+ * When used, this method changes the parsing to be lenient from this point onwards. + * The change will remain in force until the end of the formatter that is eventually + * constructed or until {@code parseStrict} is called. + */ + // @ts-ignore + public parseLenient(): java.time.format.DateTimeFormatterBuilder; + /** + * Appends a default value for a field to the formatter for use in parsing. + *

+ * This appends an instruction to the builder to inject a default value + * into the parsed result. This is especially useful in conjunction with + * optional parts of the formatter. + *

+ * For example, consider a formatter that parses the year, followed by + * an optional month, with a further optional day-of-month. Using such a + * formatter would require the calling code to check whether a full date, + * year-month or just a year had been parsed. This method can be used to + * default the month and day-of-month to a sensible value, such as the + * first of the month, allowing the calling code to always get a date. + *

+ * During formatting, this method has no effect. + *

+ * During parsing, the current state of the parse is inspected. + * If the specified field has no associated value, because it has not been + * parsed successfully at that point, then the specified value is injected + * into the parse result. Injection is immediate, thus the field-value pair + * will be visible to any subsequent elements in the formatter. + * As such, this method is normally called at the end of the builder. + */ + // @ts-ignore + public parseDefaulting(field: java.time.temporal.TemporalField, value: number): java.time.format.DateTimeFormatterBuilder; + /** + * Appends the value of a date-time field to the formatter using a normal + * output style. + *

+ * The value of the field will be output during a format. + * If the value cannot be obtained then an exception will be thrown. + *

+ * The value will be printed as per the normal format of an integer value. + * Only negative numbers will be signed. No padding will be added. + *

+ * The parser for a variable width value such as this normally behaves greedily, + * requiring one digit, but accepting as many digits as possible. + * This behavior can be affected by 'adjacent value parsing'. + * See {@link #appendValue(java.time.temporal.TemporalField, int)} for full details. + */ + // @ts-ignore + public appendValue(field: java.time.temporal.TemporalField): java.time.format.DateTimeFormatterBuilder; + /** + * Appends the value of a date-time field to the formatter using a fixed + * width, zero-padded approach. + *

+ * The value of the field will be output during a format. + * If the value cannot be obtained then an exception will be thrown. + *

+ * The value will be zero-padded on the left. If the size of the value + * means that it cannot be printed within the width then an exception is thrown. + * If the value of the field is negative then an exception is thrown during formatting. + *

+ * This method supports a special technique of parsing known as 'adjacent value parsing'. + * This technique solves the problem where a value, variable or fixed width, is followed by one or more + * fixed length values. The standard parser is greedy, and thus it would normally + * steal the digits that are needed by the fixed width value parsers that follow the + * variable width one. + *

+ * No action is required to initiate 'adjacent value parsing'. + * When a call to {@code appendValue} is made, the builder + * enters adjacent value parsing setup mode. If the immediately subsequent method + * call or calls on the same builder are for a fixed width value, then the parser will reserve + * space so that the fixed width values can be parsed. + *

+ * For example, consider {@code builder.appendValue(YEAR).appendValue(MONTH_OF_YEAR, 2);} + * The year is a variable width parse of between 1 and 19 digits. + * The month is a fixed width parse of 2 digits. + * Because these were appended to the same builder immediately after one another, + * the year parser will reserve two digits for the month to parse. + * Thus, the text '201106' will correctly parse to a year of 2011 and a month of 6. + * Without adjacent value parsing, the year would greedily parse all six digits and leave + * nothing for the month. + *

+ * Adjacent value parsing applies to each set of fixed width not-negative values in the parser + * that immediately follow any kind of value, variable or fixed width. + * Calling any other append method will end the setup of adjacent value parsing. + * Thus, in the unlikely event that you need to avoid adjacent value parsing behavior, + * simply add the {@code appendValue} to another {@code DateTimeFormatterBuilder} + * and add that to this builder. + *

+ * If adjacent parsing is active, then parsing must match exactly the specified + * number of digits in both strict and lenient modes. + * In addition, no positive or negative sign is permitted. + */ + // @ts-ignore + public appendValue(field: java.time.temporal.TemporalField, width: number): java.time.format.DateTimeFormatterBuilder; + /** + * Appends the value of a date-time field to the formatter providing full + * control over formatting. + *

+ * The value of the field will be output during a format. + * If the value cannot be obtained then an exception will be thrown. + *

+ * This method provides full control of the numeric formatting, including + * zero-padding and the positive/negative sign. + *

+ * The parser for a variable width value such as this normally behaves greedily, + * accepting as many digits as possible. + * This behavior can be affected by 'adjacent value parsing'. + * See {@link #appendValue(java.time.temporal.TemporalField, int)} for full details. + *

+ * In strict parsing mode, the minimum number of parsed digits is {@code minWidth} + * and the maximum is {@code maxWidth}. + * In lenient parsing mode, the minimum number of parsed digits is one + * and the maximum is 19 (except as limited by adjacent value parsing). + *

+ * If this method is invoked with equal minimum and maximum widths and a sign style of + * {@code NOT_NEGATIVE} then it delegates to {@code appendValue(TemporalField,int)}. + * In this scenario, the formatting and parsing behavior described there occur. + */ + // @ts-ignore + public appendValue(field: java.time.temporal.TemporalField, minWidth: number, maxWidth: number, signStyle: java.time.format.SignStyle): java.time.format.DateTimeFormatterBuilder; + /** + * Appends the reduced value of a date-time field to the formatter. + *

+ * Since fields such as year vary by chronology, it is recommended to use the + * {@link #appendValueReduced(TemporalField, int, int, ChronoLocalDate)} date} + * variant of this method in most cases. This variant is suitable for + * simple fields or working with only the ISO chronology. + *

+ * For formatting, the {@code width} and {@code maxWidth} are used to + * determine the number of characters to format. + * If they are equal then the format is fixed width. + * If the value of the field is within the range of the {@code baseValue} using + * {@code width} characters then the reduced value is formatted otherwise the value is + * truncated to fit {@code maxWidth}. + * The rightmost characters are output to match the width, left padding with zero. + *

+ * For strict parsing, the number of characters allowed by {@code width} to {@code maxWidth} are parsed. + * For lenient parsing, the number of characters must be at least 1 and less than 10. + * If the number of digits parsed is equal to {@code width} and the value is positive, + * the value of the field is computed to be the first number greater than + * or equal to the {@code baseValue} with the same least significant characters, + * otherwise the value parsed is the field value. + * This allows a reduced value to be entered for values in range of the baseValue + * and width and absolute values can be entered for values outside the range. + *

+ * For example, a base value of {@code 1980} and a width of {@code 2} will have + * valid values from {@code 1980} to {@code 2079}. + * During parsing, the text {@code "12"} will result in the value {@code 2012} as that + * is the value within the range where the last two characters are "12". + * By contrast, parsing the text {@code "1915"} will result in the value {@code 1915}. + */ + // @ts-ignore + public appendValueReduced(field: java.time.temporal.TemporalField, width: number, maxWidth: number, baseValue: number): java.time.format.DateTimeFormatterBuilder; + /** + * Appends the reduced value of a date-time field to the formatter. + *

+ * This is typically used for formatting and parsing a two digit year. + *

+ * The base date is used to calculate the full value during parsing. + * For example, if the base date is 1950-01-01 then parsed values for + * a two digit year parse will be in the range 1950-01-01 to 2049-12-31. + * Only the year would be extracted from the date, thus a base date of + * 1950-08-25 would also parse to the range 1950-01-01 to 2049-12-31. + * This behavior is necessary to support fields such as week-based-year + * or other calendar systems where the parsed value does not align with + * standard ISO years. + *

+ * The exact behavior is as follows. Parse the full set of fields and + * determine the effective chronology using the last chronology if + * it appears more than once. Then convert the base date to the + * effective chronology. Then extract the specified field from the + * chronology-specific base date and use it to determine the + * {@code baseValue} used below. + *

+ * For formatting, the {@code width} and {@code maxWidth} are used to + * determine the number of characters to format. + * If they are equal then the format is fixed width. + * If the value of the field is within the range of the {@code baseValue} using + * {@code width} characters then the reduced value is formatted otherwise the value is + * truncated to fit {@code maxWidth}. + * The rightmost characters are output to match the width, left padding with zero. + *

+ * For strict parsing, the number of characters allowed by {@code width} to {@code maxWidth} are parsed. + * For lenient parsing, the number of characters must be at least 1 and less than 10. + * If the number of digits parsed is equal to {@code width} and the value is positive, + * the value of the field is computed to be the first number greater than + * or equal to the {@code baseValue} with the same least significant characters, + * otherwise the value parsed is the field value. + * This allows a reduced value to be entered for values in range of the baseValue + * and width and absolute values can be entered for values outside the range. + *

+ * For example, a base value of {@code 1980} and a width of {@code 2} will have + * valid values from {@code 1980} to {@code 2079}. + * During parsing, the text {@code "12"} will result in the value {@code 2012} as that + * is the value within the range where the last two characters are "12". + * By contrast, parsing the text {@code "1915"} will result in the value {@code 1915}. + */ + // @ts-ignore + public appendValueReduced(field: java.time.temporal.TemporalField, width: number, maxWidth: number, baseDate: java.time.chrono.ChronoLocalDate): java.time.format.DateTimeFormatterBuilder; + /** + * Appends the fractional value of a date-time field to the formatter. + *

+ * The fractional value of the field will be output including the + * preceding decimal point. The preceding value is not output. + * For example, the second-of-minute value of 15 would be output as {@code .25}. + *

+ * The width of the printed fraction can be controlled. Setting the + * minimum width to zero will cause no output to be generated. + * The printed fraction will have the minimum width necessary between + * the minimum and maximum widths - trailing zeroes are omitted. + * No rounding occurs due to the maximum width - digits are simply dropped. + *

+ * When parsing in strict mode, the number of parsed digits must be between + * the minimum and maximum width. When parsing in lenient mode, the minimum + * width is considered to be zero and the maximum is nine. + *

+ * If the value cannot be obtained then an exception will be thrown. + * If the value is negative an exception will be thrown. + * If the field does not have a fixed set of valid values then an + * exception will be thrown. + * If the field value in the date-time to be printed is invalid it + * cannot be printed and an exception will be thrown. + */ + // @ts-ignore + public appendFraction(field: java.time.temporal.TemporalField, minWidth: number, maxWidth: number, decimalPoint: boolean): java.time.format.DateTimeFormatterBuilder; + /** + * Appends the text of a date-time field to the formatter using the full + * text style. + *

+ * The text of the field will be output during a format. + * The value must be within the valid range of the field. + * If the value cannot be obtained then an exception will be thrown. + * If the field has no textual representation, then the numeric value will be used. + *

+ * The value will be printed as per the normal format of an integer value. + * Only negative numbers will be signed. No padding will be added. + */ + // @ts-ignore + public appendText(field: java.time.temporal.TemporalField): java.time.format.DateTimeFormatterBuilder; + /** + * Appends the text of a date-time field to the formatter. + *

+ * The text of the field will be output during a format. + * The value must be within the valid range of the field. + * If the value cannot be obtained then an exception will be thrown. + * If the field has no textual representation, then the numeric value will be used. + *

+ * The value will be printed as per the normal format of an integer value. + * Only negative numbers will be signed. No padding will be added. + */ + // @ts-ignore + public appendText(field: java.time.temporal.TemporalField, textStyle: java.time.format.TextStyle): java.time.format.DateTimeFormatterBuilder; + /** + * Appends the text of a date-time field to the formatter using the specified + * map to supply the text. + *

+ * The standard text outputting methods use the localized text in the JDK. + * This method allows that text to be specified directly. + * The supplied map is not validated by the builder to ensure that formatting or + * parsing is possible, thus an invalid map may throw an error during later use. + *

+ * Supplying the map of text provides considerable flexibility in formatting and parsing. + * For example, a legacy application might require or supply the months of the + * year as "JNY", "FBY", "MCH" etc. These do not match the standard set of text + * for localized month names. Using this method, a map can be created which + * defines the connection between each value and the text: + *

+                 * Map<Long, String> map = new HashMap<>();
+                 * map.put(1L, "JNY");
+                 * map.put(2L, "FBY");
+                 * map.put(3L, "MCH");
+                 * ...
+                 * builder.appendText(MONTH_OF_YEAR, map);
+                 * 
+ *

+ * Other uses might be to output the value with a suffix, such as "1st", "2nd", "3rd", + * or as Roman numerals "I", "II", "III", "IV". + *

+ * During formatting, the value is obtained and checked that it is in the valid range. + * If text is not available for the value then it is output as a number. + * During parsing, the parser will match against the map of text and numeric values. + */ + // @ts-ignore + public appendText(field: java.time.temporal.TemporalField, textLookup: java.util.Map): java.time.format.DateTimeFormatterBuilder; + /** + * Appends an instant using ISO-8601 to the formatter, formatting fractional + * digits in groups of three. + *

+ * Instants have a fixed output format. + * They are converted to a date-time with a zone-offset of UTC and formatted + * using the standard ISO-8601 format. + * With this method, formatting nano-of-second outputs zero, three, six + * or nine digits digits as necessary. + * The localized decimal style is not used. + *

+ * The instant is obtained using {@link ChronoField#INSTANT_SECONDS INSTANT_SECONDS} + * and optionally (@code NANO_OF_SECOND). The value of {@code INSTANT_SECONDS} + * may be outside the maximum range of {@code LocalDateTime}. + *

+ * The {@linkplain ResolverStyle resolver style} has no effect on instant parsing. + * The end-of-day time of '24:00' is handled as midnight at the start of the following day. + * The leap-second time of '23:59:59' is handled to some degree, see + * {@link DateTimeFormatter#parsedLeapSecond()} for full details. + *

+ * An alternative to this method is to format/parse the instant as a single + * epoch-seconds value. That is achieved using {@code appendValue(INSTANT_SECONDS)}. + */ + // @ts-ignore + public appendInstant(): java.time.format.DateTimeFormatterBuilder; + /** + * Appends an instant using ISO-8601 to the formatter with control over + * the number of fractional digits. + *

+ * Instants have a fixed output format, although this method provides some + * control over the fractional digits. They are converted to a date-time + * with a zone-offset of UTC and printed using the standard ISO-8601 format. + * The localized decimal style is not used. + *

+ * The {@code fractionalDigits} parameter allows the output of the fractional + * second to be controlled. Specifying zero will cause no fractional digits + * to be output. From 1 to 9 will output an increasing number of digits, using + * zero right-padding if necessary. The special value -1 is used to output as + * many digits as necessary to avoid any trailing zeroes. + *

+ * When parsing in strict mode, the number of parsed digits must match the + * fractional digits. When parsing in lenient mode, any number of fractional + * digits from zero to nine are accepted. + *

+ * The instant is obtained using {@link ChronoField#INSTANT_SECONDS INSTANT_SECONDS} + * and optionally (@code NANO_OF_SECOND). The value of {@code INSTANT_SECONDS} + * may be outside the maximum range of {@code LocalDateTime}. + *

+ * The {@linkplain ResolverStyle resolver style} has no effect on instant parsing. + * The end-of-day time of '24:00' is handled as midnight at the start of the following day. + * The leap-second time of '23:59:60' is handled to some degree, see + * {@link DateTimeFormatter#parsedLeapSecond()} for full details. + *

+ * An alternative to this method is to format/parse the instant as a single + * epoch-seconds value. That is achieved using {@code appendValue(INSTANT_SECONDS)}. + */ + // @ts-ignore + public appendInstant(fractionalDigits: number): java.time.format.DateTimeFormatterBuilder; + /** + * Appends the zone offset, such as '+01:00', to the formatter. + *

+ * This appends an instruction to format/parse the offset ID to the builder. + * This is equivalent to calling {@code appendOffset("+HH:MM:ss", "Z")}. + */ + // @ts-ignore + public appendOffsetId(): java.time.format.DateTimeFormatterBuilder; + /** + * Appends the zone offset, such as '+01:00', to the formatter. + *

+ * This appends an instruction to format/parse the offset ID to the builder. + *

+ * During formatting, the offset is obtained using a mechanism equivalent + * to querying the temporal with {@link TemporalQueries#offset()}. + * It will be printed using the format defined below. + * If the offset cannot be obtained then an exception is thrown unless the + * section of the formatter is optional. + *

+ * During parsing, the offset is parsed using the format defined below. + * If the offset cannot be parsed then an exception is thrown unless the + * section of the formatter is optional. + *

+ * The format of the offset is controlled by a pattern which must be one + * of the following: + *

    + *
  • {@code +HH} - hour only, ignoring minute and second + *
  • {@code +HHmm} - hour, with minute if non-zero, ignoring second, no colon + *
  • {@code +HH:mm} - hour, with minute if non-zero, ignoring second, with colon + *
  • {@code +HHMM} - hour and minute, ignoring second, no colon + *
  • {@code +HH:MM} - hour and minute, ignoring second, with colon + *
  • {@code +HHMMss} - hour and minute, with second if non-zero, no colon + *
  • {@code +HH:MM:ss} - hour and minute, with second if non-zero, with colon + *
  • {@code +HHMMSS} - hour, minute and second, no colon + *
  • {@code +HH:MM:SS} - hour, minute and second, with colon + *
+ * The "no offset" text controls what text is printed when the total amount of + * the offset fields to be output is zero. + * Example values would be 'Z', '+00:00', 'UTC' or 'GMT'. + * Three formats are accepted for parsing UTC - the "no offset" text, and the + * plus and minus versions of zero defined by the pattern. + */ + // @ts-ignore + public appendOffset(pattern: string, noOffsetText: string): java.time.format.DateTimeFormatterBuilder; + /** + * Appends the localized zone offset, such as 'GMT+01:00', to the formatter. + *

+ * This appends a localized zone offset to the builder, the format of the + * localized offset is controlled by the specified {@link FormatStyle style} + * to this method: + *

    + *
  • {@link TextStyle#FULL full} - formats with localized offset text, such + * as 'GMT, 2-digit hour and minute field, optional second field if non-zero, + * and colon. + *
  • {@link TextStyle#SHORT short} - formats with localized offset text, + * such as 'GMT, hour without leading zero, optional 2-digit minute and + * second if non-zero, and colon. + *
+ *

+ * During formatting, the offset is obtained using a mechanism equivalent + * to querying the temporal with {@link TemporalQueries#offset()}. + * If the offset cannot be obtained then an exception is thrown unless the + * section of the formatter is optional. + *

+ * During parsing, the offset is parsed using the format defined above. + * If the offset cannot be parsed then an exception is thrown unless the + * section of the formatter is optional. + *

+ */ + // @ts-ignore + public appendLocalizedOffset(style: java.time.format.TextStyle): java.time.format.DateTimeFormatterBuilder; + /** + * Appends the time-zone ID, such as 'Europe/Paris' or '+02:00', to the formatter. + *

+ * This appends an instruction to format/parse the zone ID to the builder. + * The zone ID is obtained in a strict manner suitable for {@code ZonedDateTime}. + * By contrast, {@code OffsetDateTime} does not have a zone ID suitable + * for use with this method, see {@link #appendZoneOrOffsetId()}. + *

+ * During formatting, the zone is obtained using a mechanism equivalent + * to querying the temporal with {@link TemporalQueries#zoneId()}. + * It will be printed using the result of {@link ZoneId#getId()}. + * If the zone cannot be obtained then an exception is thrown unless the + * section of the formatter is optional. + *

+ * During parsing, the text must match a known zone or offset. + * There are two types of zone ID, offset-based, such as '+01:30' and + * region-based, such as 'Europe/London'. These are parsed differently. + * If the parse starts with '+', '-', 'UT', 'UTC' or 'GMT', then the parser + * expects an offset-based zone and will not match region-based zones. + * The offset ID, such as '+02:30', may be at the start of the parse, + * or prefixed by 'UT', 'UTC' or 'GMT'. The offset ID parsing is + * equivalent to using {@link #appendOffset(String, String)} using the + * arguments 'HH:MM:ss' and the no offset string '0'. + * If the parse starts with 'UT', 'UTC' or 'GMT', and the parser cannot + * match a following offset ID, then {@link ZoneOffset#UTC} is selected. + * In all other cases, the list of known region-based zones is used to + * find the longest available match. If no match is found, and the parse + * starts with 'Z', then {@code ZoneOffset.UTC} is selected. + * The parser uses the {@linkplain #parseCaseInsensitive() case sensitive} setting. + *

+ * For example, the following will parse: + *

+                 * "Europe/London"           -- ZoneId.of("Europe/London")
+                 * "Z"                       -- ZoneOffset.UTC
+                 * "UT"                      -- ZoneId.of("UT")
+                 * "UTC"                     -- ZoneId.of("UTC")
+                 * "GMT"                     -- ZoneId.of("GMT")
+                 * "+01:30"                  -- ZoneOffset.of("+01:30")
+                 * "UT+01:30"                -- ZoneOffset.of("+01:30")
+                 * "UTC+01:30"               -- ZoneOffset.of("+01:30")
+                 * "GMT+01:30"               -- ZoneOffset.of("+01:30")
+                 * 
+ */ + // @ts-ignore + public appendZoneId(): java.time.format.DateTimeFormatterBuilder; + /** + * Appends the time-zone region ID, such as 'Europe/Paris', to the formatter, + * rejecting the zone ID if it is a {@code ZoneOffset}. + *

+ * This appends an instruction to format/parse the zone ID to the builder + * only if it is a region-based ID. + *

+ * During formatting, the zone is obtained using a mechanism equivalent + * to querying the temporal with {@link TemporalQueries#zoneId()}. + * If the zone is a {@code ZoneOffset} or it cannot be obtained then + * an exception is thrown unless the section of the formatter is optional. + * If the zone is not an offset, then the zone will be printed using + * the zone ID from {@link ZoneId#getId()}. + *

+ * During parsing, the text must match a known zone or offset. + * There are two types of zone ID, offset-based, such as '+01:30' and + * region-based, such as 'Europe/London'. These are parsed differently. + * If the parse starts with '+', '-', 'UT', 'UTC' or 'GMT', then the parser + * expects an offset-based zone and will not match region-based zones. + * The offset ID, such as '+02:30', may be at the start of the parse, + * or prefixed by 'UT', 'UTC' or 'GMT'. The offset ID parsing is + * equivalent to using {@link #appendOffset(String, String)} using the + * arguments 'HH:MM:ss' and the no offset string '0'. + * If the parse starts with 'UT', 'UTC' or 'GMT', and the parser cannot + * match a following offset ID, then {@link ZoneOffset#UTC} is selected. + * In all other cases, the list of known region-based zones is used to + * find the longest available match. If no match is found, and the parse + * starts with 'Z', then {@code ZoneOffset.UTC} is selected. + * The parser uses the {@linkplain #parseCaseInsensitive() case sensitive} setting. + *

+ * For example, the following will parse: + *

+                 * "Europe/London"           -- ZoneId.of("Europe/London")
+                 * "Z"                       -- ZoneOffset.UTC
+                 * "UT"                      -- ZoneId.of("UT")
+                 * "UTC"                     -- ZoneId.of("UTC")
+                 * "GMT"                     -- ZoneId.of("GMT")
+                 * "+01:30"                  -- ZoneOffset.of("+01:30")
+                 * "UT+01:30"                -- ZoneOffset.of("+01:30")
+                 * "UTC+01:30"               -- ZoneOffset.of("+01:30")
+                 * "GMT+01:30"               -- ZoneOffset.of("+01:30")
+                 * 
+ *

+ * Note that this method is identical to {@code appendZoneId()} except + * in the mechanism used to obtain the zone. + * Note also that parsing accepts offsets, whereas formatting will never + * produce one. + */ + // @ts-ignore + public appendZoneRegionId(): java.time.format.DateTimeFormatterBuilder; + /** + * Appends the time-zone ID, such as 'Europe/Paris' or '+02:00', to + * the formatter, using the best available zone ID. + *

+ * This appends an instruction to format/parse the best available + * zone or offset ID to the builder. + * The zone ID is obtained in a lenient manner that first attempts to + * find a true zone ID, such as that on {@code ZonedDateTime}, and + * then attempts to find an offset, such as that on {@code OffsetDateTime}. + *

+ * During formatting, the zone is obtained using a mechanism equivalent + * to querying the temporal with {@link TemporalQueries#zone()}. + * It will be printed using the result of {@link ZoneId#getId()}. + * If the zone cannot be obtained then an exception is thrown unless the + * section of the formatter is optional. + *

+ * During parsing, the text must match a known zone or offset. + * There are two types of zone ID, offset-based, such as '+01:30' and + * region-based, such as 'Europe/London'. These are parsed differently. + * If the parse starts with '+', '-', 'UT', 'UTC' or 'GMT', then the parser + * expects an offset-based zone and will not match region-based zones. + * The offset ID, such as '+02:30', may be at the start of the parse, + * or prefixed by 'UT', 'UTC' or 'GMT'. The offset ID parsing is + * equivalent to using {@link #appendOffset(String, String)} using the + * arguments 'HH:MM:ss' and the no offset string '0'. + * If the parse starts with 'UT', 'UTC' or 'GMT', and the parser cannot + * match a following offset ID, then {@link ZoneOffset#UTC} is selected. + * In all other cases, the list of known region-based zones is used to + * find the longest available match. If no match is found, and the parse + * starts with 'Z', then {@code ZoneOffset.UTC} is selected. + * The parser uses the {@linkplain #parseCaseInsensitive() case sensitive} setting. + *

+ * For example, the following will parse: + *

+                 * "Europe/London"           -- ZoneId.of("Europe/London")
+                 * "Z"                       -- ZoneOffset.UTC
+                 * "UT"                      -- ZoneId.of("UT")
+                 * "UTC"                     -- ZoneId.of("UTC")
+                 * "GMT"                     -- ZoneId.of("GMT")
+                 * "+01:30"                  -- ZoneOffset.of("+01:30")
+                 * "UT+01:30"                -- ZoneOffset.of("UT+01:30")
+                 * "UTC+01:30"               -- ZoneOffset.of("UTC+01:30")
+                 * "GMT+01:30"               -- ZoneOffset.of("GMT+01:30")
+                 * 
+ *

+ * Note that this method is identical to {@code appendZoneId()} except + * in the mechanism used to obtain the zone. + */ + // @ts-ignore + public appendZoneOrOffsetId(): java.time.format.DateTimeFormatterBuilder; + /** + * Appends the time-zone name, such as 'British Summer Time', to the formatter. + *

+ * This appends an instruction to format/parse the textual name of the zone to + * the builder. + *

+ * During formatting, the zone is obtained using a mechanism equivalent + * to querying the temporal with {@link TemporalQueries#zoneId()}. + * If the zone is a {@code ZoneOffset} it will be printed using the + * result of {@link ZoneOffset#getId()}. + * If the zone is not an offset, the textual name will be looked up + * for the locale set in the {@link DateTimeFormatter}. + * If the temporal object being printed represents an instant, then the text + * will be the summer or winter time text as appropriate. + * If the lookup for text does not find any suitable result, then the + * {@link ZoneId#getId() ID} will be printed instead. + * If the zone cannot be obtained then an exception is thrown unless the + * section of the formatter is optional. + *

+ * During parsing, either the textual zone name, the zone ID or the offset + * is accepted. Many textual zone names are not unique, such as CST can be + * for both "Central Standard Time" and "China Standard Time". In this + * situation, the zone id will be determined by the region information from + * formatter's {@link DateTimeFormatter#getLocale() locale} and the standard + * zone id for that area, for example, America/New_York for the America Eastern + * zone. The {@link #appendZoneText(TextStyle, Set)} may be used + * to specify a set of preferred {@link ZoneId} in this situation. + */ + // @ts-ignore + public appendZoneText(textStyle: java.time.format.TextStyle): java.time.format.DateTimeFormatterBuilder; + /** + * Appends the time-zone name, such as 'British Summer Time', to the formatter. + *

+ * This appends an instruction to format/parse the textual name of the zone to + * the builder. + *

+ * During formatting, the zone is obtained using a mechanism equivalent + * to querying the temporal with {@link TemporalQueries#zoneId()}. + * If the zone is a {@code ZoneOffset} it will be printed using the + * result of {@link ZoneOffset#getId()}. + * If the zone is not an offset, the textual name will be looked up + * for the locale set in the {@link DateTimeFormatter}. + * If the temporal object being printed represents an instant, then the text + * will be the summer or winter time text as appropriate. + * If the lookup for text does not find any suitable result, then the + * {@link ZoneId#getId() ID} will be printed instead. + * If the zone cannot be obtained then an exception is thrown unless the + * section of the formatter is optional. + *

+ * During parsing, either the textual zone name, the zone ID or the offset + * is accepted. Many textual zone names are not unique, such as CST can be + * for both "Central Standard Time" and "China Standard Time". In this + * situation, the zone id will be determined by the region information from + * formatter's {@link DateTimeFormatter#getLocale() locale} and the standard + * zone id for that area, for example, America/New_York for the America Eastern + * zone. This method also allows a set of preferred {@link ZoneId} to be + * specified for parsing. The matched preferred zone id will be used if the + * textural zone name being parsed is not unique. + *

+ * If the zone cannot be parsed then an exception is thrown unless the + * section of the formatter is optional. + */ + // @ts-ignore + public appendZoneText(textStyle: java.time.format.TextStyle, preferredZones: java.util.Set): java.time.format.DateTimeFormatterBuilder; + /** + * Appends the chronology ID, such as 'ISO' or 'ThaiBuddhist', to the formatter. + *

+ * This appends an instruction to format/parse the chronology ID to the builder. + *

+ * During formatting, the chronology is obtained using a mechanism equivalent + * to querying the temporal with {@link TemporalQueries#chronology()}. + * It will be printed using the result of {@link Chronology#getId()}. + * If the chronology cannot be obtained then an exception is thrown unless the + * section of the formatter is optional. + *

+ * During parsing, the chronology is parsed and must match one of the chronologies + * in {@link Chronology#getAvailableChronologies()}. + * If the chronology cannot be parsed then an exception is thrown unless the + * section of the formatter is optional. + * The parser uses the {@linkplain #parseCaseInsensitive() case sensitive} setting. + */ + // @ts-ignore + public appendChronologyId(): java.time.format.DateTimeFormatterBuilder; + /** + * Appends the chronology name to the formatter. + *

+ * The calendar system name will be output during a format. + * If the chronology cannot be obtained then an exception will be thrown. + */ + // @ts-ignore + public appendChronologyText(textStyle: java.time.format.TextStyle): java.time.format.DateTimeFormatterBuilder; + /** + * Appends a localized date-time pattern to the formatter. + *

+ * This appends a localized section to the builder, suitable for outputting + * a date, time or date-time combination. The format of the localized + * section is lazily looked up based on four items: + *

    + *
  • the {@code dateStyle} specified to this method + *
  • the {@code timeStyle} specified to this method + *
  • the {@code Locale} of the {@code DateTimeFormatter} + *
  • the {@code Chronology}, selecting the best available + *
+ * During formatting, the chronology is obtained from the temporal object + * being formatted, which may have been overridden by + * {@link DateTimeFormatter#withChronology(Chronology)}. + *

+ * During parsing, if a chronology has already been parsed, then it is used. + * Otherwise the default from {@code DateTimeFormatter.withChronology(Chronology)} + * is used, with {@code IsoChronology} as the fallback. + *

+ * Note that this method provides similar functionality to methods on + * {@code DateFormat} such as {@link java.text.DateFormat#getDateTimeInstance(int, int)}. + */ + // @ts-ignore + public appendLocalized(dateStyle: java.time.format.FormatStyle, timeStyle: java.time.format.FormatStyle): java.time.format.DateTimeFormatterBuilder; + /** + * Appends a character literal to the formatter. + *

+ * This character will be output during a format. + */ + // @ts-ignore + public appendLiteral(literal: string): java.time.format.DateTimeFormatterBuilder; + /** + * Appends a string literal to the formatter. + *

+ * This string will be output during a format. + *

+ * If the literal is empty, nothing is added to the formatter. + */ + // @ts-ignore + public appendLiteral(literal: string): java.time.format.DateTimeFormatterBuilder; + /** + * Appends all the elements of a formatter to the builder. + *

+ * This method has the same effect as appending each of the constituent + * parts of the formatter directly to this builder. + */ + // @ts-ignore + public append(formatter: java.time.format.DateTimeFormatter): java.time.format.DateTimeFormatterBuilder; + /** + * Appends a formatter to the builder which will optionally format/parse. + *

+ * This method has the same effect as appending each of the constituent + * parts directly to this builder surrounded by an {@link #optionalStart()} and + * {@link #optionalEnd()}. + *

+ * The formatter will format if data is available for all the fields contained within it. + * The formatter will parse if the string matches, otherwise no error is returned. + */ + // @ts-ignore + public appendOptional(formatter: java.time.format.DateTimeFormatter): java.time.format.DateTimeFormatterBuilder; + /** + * Appends the elements defined by the specified pattern to the builder. + *

+ * All letters 'A' to 'Z' and 'a' to 'z' are reserved as pattern letters. + * The characters '#', '{' and '}' are reserved for future use. + * The characters '[' and ']' indicate optional patterns. + * The following pattern letters are defined: + *

+                 * Symbol  Meaning                     Presentation      Examples
+                 * ------  -------                     ------------      -------
+                 * G       era                         text              AD; Anno Domini; A
+                 * u       year                        year              2004; 04
+                 * y       year-of-era                 year              2004; 04
+                 * D       day-of-year                 number            189
+                 * M/L     month-of-year               number/text       7; 07; Jul; July; J
+                 * d       day-of-month                number            10
+                 * Q/q     quarter-of-year             number/text       3; 03; Q3; 3rd quarter
+                 * Y       week-based-year             year              1996; 96
+                 * w       week-of-week-based-year     number            27
+                 * W       week-of-month               number            4
+                 * E       day-of-week                 text              Tue; Tuesday; T
+                 * e/c     localized day-of-week       number/text       2; 02; Tue; Tuesday; T
+                 * F       week-of-month               number            3
+                 * a       am-pm-of-day                text              PM
+                 * h       clock-hour-of-am-pm (1-12)  number            12
+                 * K       hour-of-am-pm (0-11)        number            0
+                 * k       clock-hour-of-am-pm (1-24)  number            0
+                 * H       hour-of-day (0-23)          number            0
+                 * m       minute-of-hour              number            30
+                 * s       second-of-minute            number            55
+                 * S       fraction-of-second          fraction          978
+                 * A       milli-of-day                number            1234
+                 * n       nano-of-second              number            987654321
+                 * N       nano-of-day                 number            1234000000
+                 * V       time-zone ID                zone-id           America/Los_Angeles; Z; -08:30
+                 * z       time-zone name              zone-name         Pacific Standard Time; PST
+                 * O       localized zone-offset       offset-O          GMT+8; GMT+08:00; UTC-08:00;
+                 * X       zone-offset 'Z' for zero    offset-X          Z; -08; -0830; -08:30; -083015; -08:30:15;
+                 * x       zone-offset                 offset-x          +0000; -08; -0830; -08:30; -083015; -08:30:15;
+                 * Z       zone-offset                 offset-Z          +0000; -0800; -08:00;
+                 * p       pad next                    pad modifier      1
+                 * '       escape for text             delimiter
+                 * ''      single quote                literal           '
+                 * [       optional section start
+                 * ]       optional section end
+                 * #       reserved for future use
+                 * {       reserved for future use
+                 * }       reserved for future use
+                 * 
+ *

+ * The count of pattern letters determine the format. + * See DateTimeFormatter for a user-focused description of the patterns. + * The following tables define how the pattern letters map to the builder. + *

+ * Date fields: Pattern letters to output a date. + *

+                 * Pattern  Count  Equivalent builder methods
+                 * -------  -----  --------------------------
+                 * G       1      appendText(ChronoField.ERA, TextStyle.SHORT)
+                 * GG      2      appendText(ChronoField.ERA, TextStyle.SHORT)
+                 * GGG     3      appendText(ChronoField.ERA, TextStyle.SHORT)
+                 * GGGG    4      appendText(ChronoField.ERA, TextStyle.FULL)
+                 * GGGGG   5      appendText(ChronoField.ERA, TextStyle.NARROW)
+                 * u       1      appendValue(ChronoField.YEAR, 1, 19, SignStyle.NORMAL);
+                 * uu      2      appendValueReduced(ChronoField.YEAR, 2, 2000);
+                 * uuu     3      appendValue(ChronoField.YEAR, 3, 19, SignStyle.NORMAL);
+                 * u..u    4..n   appendValue(ChronoField.YEAR, n, 19, SignStyle.EXCEEDS_PAD);
+                 * y       1      appendValue(ChronoField.YEAR_OF_ERA, 1, 19, SignStyle.NORMAL);
+                 * yy      2      appendValueReduced(ChronoField.YEAR_OF_ERA, 2, 2000);
+                 * yyy     3      appendValue(ChronoField.YEAR_OF_ERA, 3, 19, SignStyle.NORMAL);
+                 * y..y    4..n   appendValue(ChronoField.YEAR_OF_ERA, n, 19, SignStyle.EXCEEDS_PAD);
+                 * Y       1      append special localized WeekFields element for numeric week-based-year
+                 * YY      2      append special localized WeekFields element for reduced numeric week-based-year 2 digits;
+                 * YYY     3      append special localized WeekFields element for numeric week-based-year (3, 19, SignStyle.NORMAL);
+                 * Y..Y    4..n   append special localized WeekFields element for numeric week-based-year (n, 19, SignStyle.EXCEEDS_PAD);
+                 * Q       1      appendValue(IsoFields.QUARTER_OF_YEAR);
+                 * QQ      2      appendValue(IsoFields.QUARTER_OF_YEAR, 2);
+                 * QQQ     3      appendText(IsoFields.QUARTER_OF_YEAR, TextStyle.SHORT)
+                 * QQQQ    4      appendText(IsoFields.QUARTER_OF_YEAR, TextStyle.FULL)
+                 * QQQQQ   5      appendText(IsoFields.QUARTER_OF_YEAR, TextStyle.NARROW)
+                 * q       1      appendValue(IsoFields.QUARTER_OF_YEAR);
+                 * qq      2      appendValue(IsoFields.QUARTER_OF_YEAR, 2);
+                 * qqq     3      appendText(IsoFields.QUARTER_OF_YEAR, TextStyle.SHORT_STANDALONE)
+                 * qqqq    4      appendText(IsoFields.QUARTER_OF_YEAR, TextStyle.FULL_STANDALONE)
+                 * qqqqq   5      appendText(IsoFields.QUARTER_OF_YEAR, TextStyle.NARROW_STANDALONE)
+                 * M       1      appendValue(ChronoField.MONTH_OF_YEAR);
+                 * MM      2      appendValue(ChronoField.MONTH_OF_YEAR, 2);
+                 * MMM     3      appendText(ChronoField.MONTH_OF_YEAR, TextStyle.SHORT)
+                 * MMMM    4      appendText(ChronoField.MONTH_OF_YEAR, TextStyle.FULL)
+                 * MMMMM   5      appendText(ChronoField.MONTH_OF_YEAR, TextStyle.NARROW)
+                 * L       1      appendValue(ChronoField.MONTH_OF_YEAR);
+                 * LL      2      appendValue(ChronoField.MONTH_OF_YEAR, 2);
+                 * LLL     3      appendText(ChronoField.MONTH_OF_YEAR, TextStyle.SHORT_STANDALONE)
+                 * LLLL    4      appendText(ChronoField.MONTH_OF_YEAR, TextStyle.FULL_STANDALONE)
+                 * LLLLL   5      appendText(ChronoField.MONTH_OF_YEAR, TextStyle.NARROW_STANDALONE)
+                 * w       1      append special localized WeekFields element for numeric week-of-year
+                 * ww      2      append special localized WeekFields element for numeric week-of-year, zero-padded
+                 * W       1      append special localized WeekFields element for numeric week-of-month
+                 * d       1      appendValue(ChronoField.DAY_OF_MONTH)
+                 * dd      2      appendValue(ChronoField.DAY_OF_MONTH, 2)
+                 * D       1      appendValue(ChronoField.DAY_OF_YEAR)
+                 * DD      2      appendValue(ChronoField.DAY_OF_YEAR, 2)
+                 * DDD     3      appendValue(ChronoField.DAY_OF_YEAR, 3)
+                 * F       1      appendValue(ChronoField.ALIGNED_DAY_OF_WEEK_IN_MONTH)
+                 * E       1      appendText(ChronoField.DAY_OF_WEEK, TextStyle.SHORT)
+                 * EE      2      appendText(ChronoField.DAY_OF_WEEK, TextStyle.SHORT)
+                 * EEE     3      appendText(ChronoField.DAY_OF_WEEK, TextStyle.SHORT)
+                 * EEEE    4      appendText(ChronoField.DAY_OF_WEEK, TextStyle.FULL)
+                 * EEEEE   5      appendText(ChronoField.DAY_OF_WEEK, TextStyle.NARROW)
+                 * e       1      append special localized WeekFields element for numeric day-of-week
+                 * ee      2      append special localized WeekFields element for numeric day-of-week, zero-padded
+                 * eee     3      appendText(ChronoField.DAY_OF_WEEK, TextStyle.SHORT)
+                 * eeee    4      appendText(ChronoField.DAY_OF_WEEK, TextStyle.FULL)
+                 * eeeee   5      appendText(ChronoField.DAY_OF_WEEK, TextStyle.NARROW)
+                 * c       1      append special localized WeekFields element for numeric day-of-week
+                 * ccc     3      appendText(ChronoField.DAY_OF_WEEK, TextStyle.SHORT_STANDALONE)
+                 * cccc    4      appendText(ChronoField.DAY_OF_WEEK, TextStyle.FULL_STANDALONE)
+                 * ccccc   5      appendText(ChronoField.DAY_OF_WEEK, TextStyle.NARROW_STANDALONE)
+                 * 
+ *

+ * Time fields: Pattern letters to output a time. + *

+                 * Pattern  Count  Equivalent builder methods
+                 * -------  -----  --------------------------
+                 * a       1      appendText(ChronoField.AMPM_OF_DAY, TextStyle.SHORT)
+                 * h       1      appendValue(ChronoField.CLOCK_HOUR_OF_AMPM)
+                 * hh      2      appendValue(ChronoField.CLOCK_HOUR_OF_AMPM, 2)
+                 * H       1      appendValue(ChronoField.HOUR_OF_DAY)
+                 * HH      2      appendValue(ChronoField.HOUR_OF_DAY, 2)
+                 * k       1      appendValue(ChronoField.CLOCK_HOUR_OF_DAY)
+                 * kk      2      appendValue(ChronoField.CLOCK_HOUR_OF_DAY, 2)
+                 * K       1      appendValue(ChronoField.HOUR_OF_AMPM)
+                 * KK      2      appendValue(ChronoField.HOUR_OF_AMPM, 2)
+                 * m       1      appendValue(ChronoField.MINUTE_OF_HOUR)
+                 * mm      2      appendValue(ChronoField.MINUTE_OF_HOUR, 2)
+                 * s       1      appendValue(ChronoField.SECOND_OF_MINUTE)
+                 * ss      2      appendValue(ChronoField.SECOND_OF_MINUTE, 2)
+                 * S..S    1..n   appendFraction(ChronoField.NANO_OF_SECOND, n, n, false)
+                 * A       1      appendValue(ChronoField.MILLI_OF_DAY)
+                 * A..A    2..n   appendValue(ChronoField.MILLI_OF_DAY, n)
+                 * n       1      appendValue(ChronoField.NANO_OF_SECOND)
+                 * n..n    2..n   appendValue(ChronoField.NANO_OF_SECOND, n)
+                 * N       1      appendValue(ChronoField.NANO_OF_DAY)
+                 * N..N    2..n   appendValue(ChronoField.NANO_OF_DAY, n)
+                 * 
+ *

+ * Zone ID: Pattern letters to output {@code ZoneId}. + *

+                 * Pattern  Count  Equivalent builder methods
+                 * -------  -----  --------------------------
+                 * VV      2      appendZoneId()
+                 * z       1      appendZoneText(TextStyle.SHORT)
+                 * zz      2      appendZoneText(TextStyle.SHORT)
+                 * zzz     3      appendZoneText(TextStyle.SHORT)
+                 * zzzz    4      appendZoneText(TextStyle.FULL)
+                 * 
+ *

+ * Zone offset: Pattern letters to output {@code ZoneOffset}. + *

+                 * Pattern  Count  Equivalent builder methods
+                 * -------  -----  --------------------------
+                 * O       1      appendLocalizedOffsetPrefixed(TextStyle.SHORT);
+                 * OOOO    4      appendLocalizedOffsetPrefixed(TextStyle.FULL);
+                 * X       1      appendOffset("+HHmm","Z")
+                 * XX      2      appendOffset("+HHMM","Z")
+                 * XXX     3      appendOffset("+HH:MM","Z")
+                 * XXXX    4      appendOffset("+HHMMss","Z")
+                 * XXXXX   5      appendOffset("+HH:MM:ss","Z")
+                 * x       1      appendOffset("+HHmm","+00")
+                 * xx      2      appendOffset("+HHMM","+0000")
+                 * xxx     3      appendOffset("+HH:MM","+00:00")
+                 * xxxx    4      appendOffset("+HHMMss","+0000")
+                 * xxxxx   5      appendOffset("+HH:MM:ss","+00:00")
+                 * Z       1      appendOffset("+HHMM","+0000")
+                 * ZZ      2      appendOffset("+HHMM","+0000")
+                 * ZZZ     3      appendOffset("+HHMM","+0000")
+                 * ZZZZ    4      appendLocalizedOffset(TextStyle.FULL);
+                 * ZZZZZ   5      appendOffset("+HH:MM:ss","Z")
+                 * 
+ *

+ * Modifiers: Pattern letters that modify the rest of the pattern: + *

+                 * Pattern  Count  Equivalent builder methods
+                 * -------  -----  --------------------------
+                 * [       1      optionalStart()
+                 * ]       1      optionalEnd()
+                 * p..p    1..n   padNext(n)
+                 * 
+ *

+ * Any sequence of letters not specified above, unrecognized letter or + * reserved character will throw an exception. + * Future versions may add to the set of patterns. + * It is recommended to use single quotes around all characters that you want + * to output directly to ensure that future changes do not break your application. + *

+ * Note that the pattern string is similar, but not identical, to + * {@link java.text.SimpleDateFormat SimpleDateFormat}. + * The pattern string is also similar, but not identical, to that defined by the + * Unicode Common Locale Data Repository (CLDR/LDML). + * Pattern letters 'X' and 'u' are aligned with Unicode CLDR/LDML. + * By contrast, {@code SimpleDateFormat} uses 'u' for the numeric day of week. + * Pattern letters 'y' and 'Y' parse years of two digits and more than 4 digits differently. + * Pattern letters 'n', 'A', 'N', and 'p' are added. + * Number types will reject large numbers. + */ + // @ts-ignore + public appendPattern(pattern: string): java.time.format.DateTimeFormatterBuilder; + /** + * Causes the next added printer/parser to pad to a fixed width using a space. + *

+ * This padding will pad to a fixed width using spaces. + *

+ * During formatting, the decorated element will be output and then padded + * to the specified width. An exception will be thrown during formatting if + * the pad width is exceeded. + *

+ * During parsing, the padding and decorated element are parsed. + * If parsing is lenient, then the pad width is treated as a maximum. + * The padding is parsed greedily. Thus, if the decorated element starts with + * the pad character, it will not be parsed. + */ + // @ts-ignore + public padNext(padWidth: number): java.time.format.DateTimeFormatterBuilder; + /** + * Causes the next added printer/parser to pad to a fixed width. + *

+ * This padding is intended for padding other than zero-padding. + * Zero-padding should be achieved using the appendValue methods. + *

+ * During formatting, the decorated element will be output and then padded + * to the specified width. An exception will be thrown during formatting if + * the pad width is exceeded. + *

+ * During parsing, the padding and decorated element are parsed. + * If parsing is lenient, then the pad width is treated as a maximum. + * If parsing is case insensitive, then the pad character is matched ignoring case. + * The padding is parsed greedily. Thus, if the decorated element starts with + * the pad character, it will not be parsed. + */ + // @ts-ignore + public padNext(padWidth: number, padChar: string): java.time.format.DateTimeFormatterBuilder; + /** + * Mark the start of an optional section. + *

+ * The output of formatting can include optional sections, which may be nested. + * An optional section is started by calling this method and ended by calling + * {@link #optionalEnd()} or by ending the build process. + *

+ * All elements in the optional section are treated as optional. + * During formatting, the section is only output if data is available in the + * {@code TemporalAccessor} for all the elements in the section. + * During parsing, the whole section may be missing from the parsed string. + *

+ * For example, consider a builder setup as + * {@code builder.appendValue(HOUR_OF_DAY,2).optionalStart().appendValue(MINUTE_OF_HOUR,2)}. + * The optional section ends automatically at the end of the builder. + * During formatting, the minute will only be output if its value can be obtained from the date-time. + * During parsing, the input will be successfully parsed whether the minute is present or not. + */ + // @ts-ignore + public optionalStart(): java.time.format.DateTimeFormatterBuilder; + /** + * Ends an optional section. + *

+ * The output of formatting can include optional sections, which may be nested. + * An optional section is started by calling {@link #optionalStart()} and ended + * using this method (or at the end of the builder). + *

+ * Calling this method without having previously called {@code optionalStart} + * will throw an exception. + * Calling this method immediately after calling {@code optionalStart} has no effect + * on the formatter other than ending the (empty) optional section. + *

+ * All elements in the optional section are treated as optional. + * During formatting, the section is only output if data is available in the + * {@code TemporalAccessor} for all the elements in the section. + * During parsing, the whole section may be missing from the parsed string. + *

+ * For example, consider a builder setup as + * {@code builder.appendValue(HOUR_OF_DAY,2).optionalStart().appendValue(MINUTE_OF_HOUR,2).optionalEnd()}. + * During formatting, the minute will only be output if its value can be obtained from the date-time. + * During parsing, the input will be successfully parsed whether the minute is present or not. + */ + // @ts-ignore + public optionalEnd(): java.time.format.DateTimeFormatterBuilder; + /** + * Completes this builder by creating the {@code DateTimeFormatter} + * using the default locale. + *

+ * This will create a formatter with the {@linkplain Locale#getDefault(Locale.Category) default FORMAT locale}. + * Numbers will be printed and parsed using the standard DecimalStyle. + * The resolver style will be {@link ResolverStyle#SMART SMART}. + *

+ * Calling this method will end any open optional sections by repeatedly + * calling {@link #optionalEnd()} before creating the formatter. + *

+ * This builder can still be used after creating the formatter if desired, + * although the state may have been changed by calls to {@code optionalEnd}. + */ + // @ts-ignore + public toFormatter(): java.time.format.DateTimeFormatter; + /** + * Completes this builder by creating the {@code DateTimeFormatter} + * using the specified locale. + *

+ * This will create a formatter with the specified locale. + * Numbers will be printed and parsed using the standard DecimalStyle. + * The resolver style will be {@link ResolverStyle#SMART SMART}. + *

+ * Calling this method will end any open optional sections by repeatedly + * calling {@link #optionalEnd()} before creating the formatter. + *

+ * This builder can still be used after creating the formatter if desired, + * although the state may have been changed by calls to {@code optionalEnd}. + */ + // @ts-ignore + public toFormatter(locale: java.util.Locale): java.time.format.DateTimeFormatter; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.format.DateTimeParseException.d.ts b/packages/types/dist/typings/jdk/java.time.format.DateTimeParseException.d.ts new file mode 100644 index 00000000..4603f748 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.format.DateTimeParseException.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace format { + // @ts-ignore + class DateTimeParseException extends java.time.DateTimeException { + /** + * Constructs a new exception with the specified message. + */ + // @ts-ignore + constructor(message: string, parsedData: java.lang.CharSequence, errorIndex: number) + /** + * Constructs a new exception with the specified message and cause. + */ + // @ts-ignore + constructor(message: string, parsedData: java.lang.CharSequence, errorIndex: number, cause: java.lang.Throwable) + /** + * Returns the string that was being parsed. + */ + // @ts-ignore + public getParsedString(): string; + /** + * Returns the index where the error was found. + */ + // @ts-ignore + public getErrorIndex(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.format.DecimalStyle.d.ts b/packages/types/dist/typings/jdk/java.time.format.DecimalStyle.d.ts new file mode 100644 index 00000000..6c69efee --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.format.DecimalStyle.d.ts @@ -0,0 +1,117 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace format { + // @ts-ignore + class DecimalStyle extends java.lang.Object { + // @ts-ignore + public static STANDARD: java.time.format.DecimalStyle; + /** + * Lists all the locales that are supported. + *

+ * The locale 'en_US' will always be present. + */ + // @ts-ignore + public static getAvailableLocales(): java.util.Set; + /** + * Obtains the DecimalStyle for the default + * {@link java.util.Locale.Category#FORMAT FORMAT} locale. + *

+ * This method provides access to locale sensitive decimal style symbols. + *

+ * This is equivalent to calling + * {@link #of(Locale) + * of(Locale.getDefault(Locale.Category.FORMAT))}. + */ + // @ts-ignore + public static ofDefaultLocale(): java.time.format.DecimalStyle; + /** + * Obtains the DecimalStyle for the specified locale. + *

+ * This method provides access to locale sensitive decimal style symbols. + */ + // @ts-ignore + public static of(locale: java.util.Locale): java.time.format.DecimalStyle; + /** + * Gets the character that represents zero. + *

+ * The character used to represent digits may vary by culture. + * This method specifies the zero character to use, which implies the characters for one to nine. + */ + // @ts-ignore + public getZeroDigit(): string; + /** + * Returns a copy of the info with a new character that represents zero. + *

+ * The character used to represent digits may vary by culture. + * This method specifies the zero character to use, which implies the characters for one to nine. + */ + // @ts-ignore + public withZeroDigit(zeroDigit: string): java.time.format.DecimalStyle; + /** + * Gets the character that represents the positive sign. + *

+ * The character used to represent a positive number may vary by culture. + * This method specifies the character to use. + */ + // @ts-ignore + public getPositiveSign(): string; + /** + * Returns a copy of the info with a new character that represents the positive sign. + *

+ * The character used to represent a positive number may vary by culture. + * This method specifies the character to use. + */ + // @ts-ignore + public withPositiveSign(positiveSign: string): java.time.format.DecimalStyle; + /** + * Gets the character that represents the negative sign. + *

+ * The character used to represent a negative number may vary by culture. + * This method specifies the character to use. + */ + // @ts-ignore + public getNegativeSign(): string; + /** + * Returns a copy of the info with a new character that represents the negative sign. + *

+ * The character used to represent a negative number may vary by culture. + * This method specifies the character to use. + */ + // @ts-ignore + public withNegativeSign(negativeSign: string): java.time.format.DecimalStyle; + /** + * Gets the character that represents the decimal point. + *

+ * The character used to represent a decimal point may vary by culture. + * This method specifies the character to use. + */ + // @ts-ignore + public getDecimalSeparator(): string; + /** + * Returns a copy of the info with a new character that represents the decimal point. + *

+ * The character used to represent a decimal point may vary by culture. + * This method specifies the character to use. + */ + // @ts-ignore + public withDecimalSeparator(decimalSeparator: string): java.time.format.DecimalStyle; + /** + * Checks if this DecimalStyle is equal to another DecimalStyle. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * A hash code for this DecimalStyle. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns a string describing this DecimalStyle. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.format.FormatStyle.d.ts b/packages/types/dist/typings/jdk/java.time.format.FormatStyle.d.ts new file mode 100644 index 00000000..f8d8694a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.format.FormatStyle.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace format { + // @ts-ignore + class FormatStyle extends java.lang.Enum { + // @ts-ignore + public static FULL: java.time.format.FormatStyle; + // @ts-ignore + public static LONG: java.time.format.FormatStyle; + // @ts-ignore + public static MEDIUM: java.time.format.FormatStyle; + // @ts-ignore + public static SHORT: java.time.format.FormatStyle; + // @ts-ignore + public static values(): java.time.format.FormatStyle[]; + // @ts-ignore + public static valueOf(name: string): java.time.format.FormatStyle; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.format.ResolverStyle.d.ts b/packages/types/dist/typings/jdk/java.time.format.ResolverStyle.d.ts new file mode 100644 index 00000000..571bf4c9 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.format.ResolverStyle.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace format { + // @ts-ignore + class ResolverStyle extends java.lang.Enum { + // @ts-ignore + public static STRICT: java.time.format.ResolverStyle; + // @ts-ignore + public static SMART: java.time.format.ResolverStyle; + // @ts-ignore + public static LENIENT: java.time.format.ResolverStyle; + // @ts-ignore + public static values(): java.time.format.ResolverStyle[]; + // @ts-ignore + public static valueOf(name: string): java.time.format.ResolverStyle; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.format.SignStyle.d.ts b/packages/types/dist/typings/jdk/java.time.format.SignStyle.d.ts new file mode 100644 index 00000000..96376b4c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.format.SignStyle.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace format { + // @ts-ignore + class SignStyle extends java.lang.Enum { + // @ts-ignore + public static NORMAL: java.time.format.SignStyle; + // @ts-ignore + public static ALWAYS: java.time.format.SignStyle; + // @ts-ignore + public static NEVER: java.time.format.SignStyle; + // @ts-ignore + public static NOT_NEGATIVE: java.time.format.SignStyle; + // @ts-ignore + public static EXCEEDS_PAD: java.time.format.SignStyle; + // @ts-ignore + public static values(): java.time.format.SignStyle[]; + // @ts-ignore + public static valueOf(name: string): java.time.format.SignStyle; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.format.TextStyle.d.ts b/packages/types/dist/typings/jdk/java.time.format.TextStyle.d.ts new file mode 100644 index 00000000..1501a104 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.format.TextStyle.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace format { + // @ts-ignore + class TextStyle extends java.lang.Enum { + // @ts-ignore + public static FULL: java.time.format.TextStyle; + // @ts-ignore + public static FULL_STANDALONE: java.time.format.TextStyle; + // @ts-ignore + public static SHORT: java.time.format.TextStyle; + // @ts-ignore + public static SHORT_STANDALONE: java.time.format.TextStyle; + // @ts-ignore + public static NARROW: java.time.format.TextStyle; + // @ts-ignore + public static NARROW_STANDALONE: java.time.format.TextStyle; + // @ts-ignore + public static values(): java.time.format.TextStyle[]; + // @ts-ignore + public static valueOf(name: string): java.time.format.TextStyle; + /** + * Returns true if the Style is a stand-alone style. + */ + // @ts-ignore + public isStandalone(): boolean; + /** + * Returns the stand-alone style with the same size. + */ + // @ts-ignore + public asStandalone(): java.time.format.TextStyle; + /** + * Returns the normal style with the same size. + */ + // @ts-ignore + public asNormal(): java.time.format.TextStyle; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.temporal.ChronoField.d.ts b/packages/types/dist/typings/jdk/java.time.temporal.ChronoField.d.ts new file mode 100644 index 00000000..b5ec4f7c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.temporal.ChronoField.d.ts @@ -0,0 +1,148 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace temporal { + // @ts-ignore + class ChronoField extends java.lang.Enum { + // @ts-ignore + public static NANO_OF_SECOND: java.time.temporal.ChronoField; + // @ts-ignore + public static NANO_OF_DAY: java.time.temporal.ChronoField; + // @ts-ignore + public static MICRO_OF_SECOND: java.time.temporal.ChronoField; + // @ts-ignore + public static MICRO_OF_DAY: java.time.temporal.ChronoField; + // @ts-ignore + public static MILLI_OF_SECOND: java.time.temporal.ChronoField; + // @ts-ignore + public static MILLI_OF_DAY: java.time.temporal.ChronoField; + // @ts-ignore + public static SECOND_OF_MINUTE: java.time.temporal.ChronoField; + // @ts-ignore + public static SECOND_OF_DAY: java.time.temporal.ChronoField; + // @ts-ignore + public static MINUTE_OF_HOUR: java.time.temporal.ChronoField; + // @ts-ignore + public static MINUTE_OF_DAY: java.time.temporal.ChronoField; + // @ts-ignore + public static HOUR_OF_AMPM: java.time.temporal.ChronoField; + // @ts-ignore + public static CLOCK_HOUR_OF_AMPM: java.time.temporal.ChronoField; + // @ts-ignore + public static HOUR_OF_DAY: java.time.temporal.ChronoField; + // @ts-ignore + public static CLOCK_HOUR_OF_DAY: java.time.temporal.ChronoField; + // @ts-ignore + public static AMPM_OF_DAY: java.time.temporal.ChronoField; + // @ts-ignore + public static DAY_OF_WEEK: java.time.temporal.ChronoField; + // @ts-ignore + public static ALIGNED_DAY_OF_WEEK_IN_MONTH: java.time.temporal.ChronoField; + // @ts-ignore + public static ALIGNED_DAY_OF_WEEK_IN_YEAR: java.time.temporal.ChronoField; + // @ts-ignore + public static DAY_OF_MONTH: java.time.temporal.ChronoField; + // @ts-ignore + public static DAY_OF_YEAR: java.time.temporal.ChronoField; + // @ts-ignore + public static EPOCH_DAY: java.time.temporal.ChronoField; + // @ts-ignore + public static ALIGNED_WEEK_OF_MONTH: java.time.temporal.ChronoField; + // @ts-ignore + public static ALIGNED_WEEK_OF_YEAR: java.time.temporal.ChronoField; + // @ts-ignore + public static MONTH_OF_YEAR: java.time.temporal.ChronoField; + // @ts-ignore + public static PROLEPTIC_MONTH: java.time.temporal.ChronoField; + // @ts-ignore + public static YEAR_OF_ERA: java.time.temporal.ChronoField; + // @ts-ignore + public static YEAR: java.time.temporal.ChronoField; + // @ts-ignore + public static ERA: java.time.temporal.ChronoField; + // @ts-ignore + public static INSTANT_SECONDS: java.time.temporal.ChronoField; + // @ts-ignore + public static OFFSET_SECONDS: java.time.temporal.ChronoField; + // @ts-ignore + public static values(): java.time.temporal.ChronoField[]; + // @ts-ignore + public static valueOf(name: string): java.time.temporal.ChronoField; + // @ts-ignore + public getDisplayName(locale: java.util.Locale): string; + // @ts-ignore + public getBaseUnit(): java.time.temporal.TemporalUnit; + // @ts-ignore + public getRangeUnit(): java.time.temporal.TemporalUnit; + /** + * Gets the range of valid values for the field. + *

+ * All fields can be expressed as a {@code long} integer. + * This method returns an object that describes the valid range for that value. + *

+ * This method returns the range of the field in the ISO-8601 calendar system. + * This range may be incorrect for other calendar systems. + * Use {@link Chronology#range(ChronoField)} to access the correct range + * for a different calendar system. + *

+ * Note that the result only describes the minimum and maximum valid values + * and it is important not to read too much into them. For example, there + * could be values within the range that are invalid for the field. + */ + // @ts-ignore + public range(): java.time.temporal.ValueRange; + /** + * Checks if this field represents a component of a date. + *

+ * Fields from day-of-week to era are date-based. + */ + // @ts-ignore + public isDateBased(): boolean; + /** + * Checks if this field represents a component of a time. + *

+ * Fields from nano-of-second to am-pm-of-day are time-based. + */ + // @ts-ignore + public isTimeBased(): boolean; + /** + * Checks that the specified value is valid for this field. + *

+ * This validates that the value is within the outer range of valid values + * returned by {@link #range()}. + *

+ * This method checks against the range of the field in the ISO-8601 calendar system. + * This range may be incorrect for other calendar systems. + * Use {@link Chronology#range(ChronoField)} to access the correct range + * for a different calendar system. + */ + // @ts-ignore + public checkValidValue(value: number): number; + /** + * Checks that the specified value is valid and fits in an {@code int}. + *

+ * This validates that the value is within the outer range of valid values + * returned by {@link #range()}. + * It also checks that all valid values are within the bounds of an {@code int}. + *

+ * This method checks against the range of the field in the ISO-8601 calendar system. + * This range may be incorrect for other calendar systems. + * Use {@link Chronology#range(ChronoField)} to access the correct range + * for a different calendar system. + */ + // @ts-ignore + public checkValidIntValue(value: number): number; + // @ts-ignore + public isSupportedBy(temporal: java.time.temporal.TemporalAccessor): boolean; + // @ts-ignore + public rangeRefinedBy(temporal: java.time.temporal.TemporalAccessor): java.time.temporal.ValueRange; + // @ts-ignore + public getFrom(temporal: java.time.temporal.TemporalAccessor): number; + // @ts-ignore + public adjustInto(temporal: java.time.temporal.Temporal, newValue: number): java.time.temporal.Temporal; + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.temporal.ChronoUnit.d.ts b/packages/types/dist/typings/jdk/java.time.temporal.ChronoUnit.d.ts new file mode 100644 index 00000000..e9392bc0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.temporal.ChronoUnit.d.ts @@ -0,0 +1,89 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace temporal { + // @ts-ignore + class ChronoUnit extends java.lang.Enum { + // @ts-ignore + public static NANOS: java.time.temporal.ChronoUnit; + // @ts-ignore + public static MICROS: java.time.temporal.ChronoUnit; + // @ts-ignore + public static MILLIS: java.time.temporal.ChronoUnit; + // @ts-ignore + public static SECONDS: java.time.temporal.ChronoUnit; + // @ts-ignore + public static MINUTES: java.time.temporal.ChronoUnit; + // @ts-ignore + public static HOURS: java.time.temporal.ChronoUnit; + // @ts-ignore + public static HALF_DAYS: java.time.temporal.ChronoUnit; + // @ts-ignore + public static DAYS: java.time.temporal.ChronoUnit; + // @ts-ignore + public static WEEKS: java.time.temporal.ChronoUnit; + // @ts-ignore + public static MONTHS: java.time.temporal.ChronoUnit; + // @ts-ignore + public static YEARS: java.time.temporal.ChronoUnit; + // @ts-ignore + public static DECADES: java.time.temporal.ChronoUnit; + // @ts-ignore + public static CENTURIES: java.time.temporal.ChronoUnit; + // @ts-ignore + public static MILLENNIA: java.time.temporal.ChronoUnit; + // @ts-ignore + public static ERAS: java.time.temporal.ChronoUnit; + // @ts-ignore + public static FOREVER: java.time.temporal.ChronoUnit; + // @ts-ignore + public static values(): java.time.temporal.ChronoUnit[]; + // @ts-ignore + public static valueOf(name: string): java.time.temporal.ChronoUnit; + /** + * Gets the estimated duration of this unit in the ISO calendar system. + *

+ * All of the units in this class have an estimated duration. + * Days vary due to daylight saving time, while months have different lengths. + */ + // @ts-ignore + public getDuration(): java.time.Duration; + /** + * Checks if the duration of the unit is an estimate. + *

+ * All time units in this class are considered to be accurate, while all date + * units in this class are considered to be estimated. + *

+ * This definition ignores leap seconds, but considers that Days vary due to + * daylight saving time and months have different lengths. + */ + // @ts-ignore + public isDurationEstimated(): boolean; + /** + * Checks if this unit is a date unit. + *

+ * All units from days to eras inclusive are date-based. + * Time-based units and {@code FOREVER} return false. + */ + // @ts-ignore + public isDateBased(): boolean; + /** + * Checks if this unit is a time unit. + *

+ * All units from nanos to half-days inclusive are time-based. + * Date-based units and {@code FOREVER} return false. + */ + // @ts-ignore + public isTimeBased(): boolean; + // @ts-ignore + public isSupportedBy(temporal: java.time.temporal.Temporal): boolean; + // @ts-ignore + public addTo(temporal: java.time.temporal.Temporal, amount: number): java.time.temporal.Temporal; + // @ts-ignore + public between(temporal1Inclusive: java.time.temporal.Temporal, temporal2Exclusive: java.time.temporal.Temporal): number; + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.temporal.IsoFields.d.ts b/packages/types/dist/typings/jdk/java.time.temporal.IsoFields.d.ts new file mode 100644 index 00000000..6725ff36 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.temporal.IsoFields.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace temporal { + // @ts-ignore + class IsoFields extends java.lang.Object { + // @ts-ignore + public static DAY_OF_QUARTER: java.time.temporal.TemporalField; + // @ts-ignore + public static QUARTER_OF_YEAR: java.time.temporal.TemporalField; + // @ts-ignore + public static WEEK_OF_WEEK_BASED_YEAR: java.time.temporal.TemporalField; + // @ts-ignore + public static WEEK_BASED_YEAR: java.time.temporal.TemporalField; + // @ts-ignore + public static WEEK_BASED_YEARS: java.time.temporal.TemporalUnit; + // @ts-ignore + public static QUARTER_YEARS: java.time.temporal.TemporalUnit; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.temporal.JulianFields.d.ts b/packages/types/dist/typings/jdk/java.time.temporal.JulianFields.d.ts new file mode 100644 index 00000000..80c9c5c4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.temporal.JulianFields.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace temporal { + // @ts-ignore + class JulianFields extends java.lang.Object { + // @ts-ignore + public static JULIAN_DAY: java.time.temporal.TemporalField; + // @ts-ignore + public static MODIFIED_JULIAN_DAY: java.time.temporal.TemporalField; + // @ts-ignore + public static RATA_DIE: java.time.temporal.TemporalField; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.temporal.Temporal.d.ts b/packages/types/dist/typings/jdk/java.time.temporal.Temporal.d.ts new file mode 100644 index 00000000..f60a4bbd --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.temporal.Temporal.d.ts @@ -0,0 +1,156 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace temporal { + // @ts-ignore + interface Temporal { + /** + * Checks if the specified unit is supported. + *

+ * This checks if the specified unit can be added to, or subtracted from, this date-time. + * If false, then calling the {@link #plus(long, TemporalUnit)} and + * {@link #minus(long, TemporalUnit) minus} methods will throw an exception. + */ + // @ts-ignore + isSupported(unit: java.time.temporal.TemporalUnit): boolean; + /** + * Returns an adjusted object of the same type as this object with the adjustment made. + *

+ * This adjusts this date-time according to the rules of the specified adjuster. + * A simple adjuster might simply set the one of the fields, such as the year field. + * A more complex adjuster might set the date to the last day of the month. + * A selection of common adjustments is provided in + * {@link java.time.temporal.TemporalAdjusters TemporalAdjusters}. + * These include finding the "last day of the month" and "next Wednesday". + * The adjuster is responsible for handling special cases, such as the varying + * lengths of month and leap years. + *

+ * Some example code indicating how and why this method is used: + *

+                 * date = date.with(Month.JULY);        // most key classes implement TemporalAdjuster
+                 * date = date.with(lastDayOfMonth());  // static import from Adjusters
+                 * date = date.with(next(WEDNESDAY));   // static import from Adjusters and DayOfWeek
+                 * 
+ */ + // @ts-ignore + with(adjuster: java.time.temporal.TemporalAdjuster): java.time.temporal.Temporal; + /** + * Returns an object of the same type as this object with the specified field altered. + *

+ * This returns a new object based on this one with the value for the specified field changed. + * For example, on a {@code LocalDate}, this could be used to set the year, month or day-of-month. + * The returned object will have the same observable type as this object. + *

+ * In some cases, changing a field is not fully defined. For example, if the target object is + * a date representing the 31st January, then changing the month to February would be unclear. + * In cases like this, the field is responsible for resolving the result. Typically it will choose + * the previous valid date, which would be the last valid day of February in this example. + */ + // @ts-ignore + with(field: java.time.temporal.TemporalField, newValue: number): java.time.temporal.Temporal; + /** + * Returns an object of the same type as this object with an amount added. + *

+ * This adjusts this temporal, adding according to the rules of the specified amount. + * The amount is typically a {@link java.time.Period} but may be any other type implementing + * the {@link TemporalAmount} interface, such as {@link java.time.Duration}. + *

+ * Some example code indicating how and why this method is used: + *

+                 * date = date.plus(period);                // add a Period instance
+                 * date = date.plus(duration);              // add a Duration instance
+                 * date = date.plus(workingDays(6));        // example user-written workingDays method
+                 * 
+ *

+ * Note that calling {@code plus} followed by {@code minus} is not guaranteed to + * return the same date-time. + */ + // @ts-ignore + plus(amount: java.time.temporal.TemporalAmount): java.time.temporal.Temporal; + /** + * Returns an object of the same type as this object with the specified period added. + *

+ * This method returns a new object based on this one with the specified period added. + * For example, on a {@code LocalDate}, this could be used to add a number of years, months or days. + * The returned object will have the same observable type as this object. + *

+ * In some cases, changing a field is not fully defined. For example, if the target object is + * a date representing the 31st January, then adding one month would be unclear. + * In cases like this, the field is responsible for resolving the result. Typically it will choose + * the previous valid date, which would be the last valid day of February in this example. + */ + // @ts-ignore + plus(amountToAdd: number, unit: java.time.temporal.TemporalUnit): java.time.temporal.Temporal; + /** + * Returns an object of the same type as this object with an amount subtracted. + *

+ * This adjusts this temporal, subtracting according to the rules of the specified amount. + * The amount is typically a {@link java.time.Period} but may be any other type implementing + * the {@link TemporalAmount} interface, such as {@link java.time.Duration}. + *

+ * Some example code indicating how and why this method is used: + *

+                 * date = date.minus(period);               // subtract a Period instance
+                 * date = date.minus(duration);             // subtract a Duration instance
+                 * date = date.minus(workingDays(6));       // example user-written workingDays method
+                 * 
+ *

+ * Note that calling {@code plus} followed by {@code minus} is not guaranteed to + * return the same date-time. + */ + // @ts-ignore + minus(amount: java.time.temporal.TemporalAmount): java.time.temporal.Temporal; + /** + * Returns an object of the same type as this object with the specified period subtracted. + *

+ * This method returns a new object based on this one with the specified period subtracted. + * For example, on a {@code LocalDate}, this could be used to subtract a number of years, months or days. + * The returned object will have the same observable type as this object. + *

+ * In some cases, changing a field is not fully defined. For example, if the target object is + * a date representing the 31st March, then subtracting one month would be unclear. + * In cases like this, the field is responsible for resolving the result. Typically it will choose + * the previous valid date, which would be the last valid day of February in this example. + */ + // @ts-ignore + minus(amountToSubtract: number, unit: java.time.temporal.TemporalUnit): java.time.temporal.Temporal; + /** + * Calculates the amount of time until another temporal in terms of the specified unit. + *

+ * This calculates the amount of time between two temporal objects + * in terms of a single {@code TemporalUnit}. + * The start and end points are {@code this} and the specified temporal. + * The end point is converted to be of the same type as the start point if different. + * The result will be negative if the end is before the start. + * For example, the amount in hours between two temporal objects can be + * calculated using {@code startTime.until(endTime, HOURS)}. + *

+ * The calculation returns a whole number, representing the number of + * complete units between the two temporals. + * For example, the amount in hours between the times 11:30 and 13:29 + * will only be one hour as it is one minute short of two hours. + *

+ * There are two equivalent ways of using this method. + * The first is to invoke this method directly. + * The second is to use {@link TemporalUnit#between(Temporal, Temporal)}: + *

+                 * // these two lines are equivalent
+                 * temporal = start.until(end, unit);
+                 * temporal = unit.between(start, end);
+                 * 
+ * The choice should be made based on which makes the code more readable. + *

+ * For example, this method allows the number of days between two dates to + * be calculated: + *

+                 * long daysBetween = start.until(end, DAYS);
+                 * // or alternatively
+                 * long daysBetween = DAYS.between(start, end);
+                 * 
+ */ + // @ts-ignore + until(endExclusive: java.time.temporal.Temporal, unit: java.time.temporal.TemporalUnit): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.temporal.TemporalAccessor.d.ts b/packages/types/dist/typings/jdk/java.time.temporal.TemporalAccessor.d.ts new file mode 100644 index 00000000..ccd04b73 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.temporal.TemporalAccessor.d.ts @@ -0,0 +1,71 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace temporal { + // @ts-ignore + interface TemporalAccessor { + /** + * Checks if the specified field is supported. + *

+ * This checks if the date-time can be queried for the specified field. + * If false, then calling the {@link #range(TemporalField) range} and {@link #get(TemporalField) get} + * methods will throw an exception. + */ + // @ts-ignore + isSupported(field: java.time.temporal.TemporalField): boolean; + /** + * Gets the range of valid values for the specified field. + *

+ * All fields can be expressed as a {@code long} integer. + * This method returns an object that describes the valid range for that value. + * The value of this temporal object is used to enhance the accuracy of the returned range. + * If the date-time cannot return the range, because the field is unsupported or for + * some other reason, an exception will be thrown. + *

+ * Note that the result only describes the minimum and maximum valid values + * and it is important not to read too much into them. For example, there + * could be values within the range that are invalid for the field. + */ + // @ts-ignore + range(field: java.time.temporal.TemporalField): java.time.temporal.ValueRange; + /** + * Gets the value of the specified field as an {@code int}. + *

+ * This queries the date-time for the value of the specified field. + * The returned value will always be within the valid range of values for the field. + * If the date-time cannot return the value, because the field is unsupported or for + * some other reason, an exception will be thrown. + */ + // @ts-ignore + get(field: java.time.temporal.TemporalField): number; + /** + * Gets the value of the specified field as a {@code long}. + *

+ * This queries the date-time for the value of the specified field. + * The returned value may be outside the valid range of values for the field. + * If the date-time cannot return the value, because the field is unsupported or for + * some other reason, an exception will be thrown. + */ + // @ts-ignore + getLong(field: java.time.temporal.TemporalField): number; + /** + * Queries this date-time. + *

+ * This queries this date-time using the specified query strategy object. + *

+ * Queries are a key tool for extracting information from date-times. + * They exists to externalize the process of querying, permitting different + * approaches, as per the strategy design pattern. + * Examples might be a query that checks if the date is the day before February 29th + * in a leap year, or calculates the number of days to your next birthday. + *

+ * The most common query implementations are method references, such as + * {@code LocalDate::from} and {@code ZoneId::from}. + * Additional implementations are provided as static methods on {@link TemporalQuery}. + */ + // @ts-ignore + query(query: java.time.temporal.TemporalQuery): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.temporal.TemporalAdjuster.d.ts b/packages/types/dist/typings/jdk/java.time.temporal.TemporalAdjuster.d.ts new file mode 100644 index 00000000..b3ea85fe --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.temporal.TemporalAdjuster.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace temporal { + // @ts-ignore + interface TemporalAdjuster { + /** + * Adjusts the specified temporal object. + *

+ * This adjusts the specified temporal object using the logic + * encapsulated in the implementing class. + * Examples might be an adjuster that sets the date avoiding weekends, or one that + * sets the date to the last day of the month. + *

+ * There are two equivalent ways of using this method. + * The first is to invoke this method directly. + * The second is to use {@link Temporal#with(TemporalAdjuster)}: + *

+                 * // these two lines are equivalent, but the second approach is recommended
+                 * temporal = thisAdjuster.adjustInto(temporal);
+                 * temporal = temporal.with(thisAdjuster);
+                 * 
+ * It is recommended to use the second approach, {@code with(TemporalAdjuster)}, + * as it is a lot clearer to read in code. + */ + // @ts-ignore + adjustInto(temporal: java.time.temporal.Temporal): java.time.temporal.Temporal; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.temporal.TemporalAdjusters.d.ts b/packages/types/dist/typings/jdk/java.time.temporal.TemporalAdjusters.d.ts new file mode 100644 index 00000000..98b28ada --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.temporal.TemporalAdjusters.d.ts @@ -0,0 +1,247 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace temporal { + // @ts-ignore + class TemporalAdjusters extends java.lang.Object { + /** + * Obtains a {@code TemporalAdjuster} that wraps a date adjuster. + *

+ * The {@code TemporalAdjuster} is based on the low level {@code Temporal} interface. + * This method allows an adjustment from {@code LocalDate} to {@code LocalDate} + * to be wrapped to match the temporal-based interface. + * This is provided for convenience to make user-written adjusters simpler. + *

+ * In general, user-written adjusters should be static constants: + *

{@code
+                 * static TemporalAdjuster TWO_DAYS_LATER =
+                 * TemporalAdjusters.ofDateAdjuster(date -> date.plusDays(2));
+                 * }
+ */ + // @ts-ignore + public static ofDateAdjuster(dateBasedAdjuster: java.util.function$.UnaryOperator): java.time.temporal.TemporalAdjuster; + /** + * Returns the "first day of month" adjuster, which returns a new date set to + * the first day of the current month. + *

+ * The ISO calendar system behaves as follows:
+ * The input 2011-01-15 will return 2011-01-01.
+ * The input 2011-02-15 will return 2011-02-01. + *

+ * The behavior is suitable for use with most calendar systems. + * It is equivalent to: + *

+                 * temporal.with(DAY_OF_MONTH, 1);
+                 * 
+ */ + // @ts-ignore + public static firstDayOfMonth(): java.time.temporal.TemporalAdjuster; + /** + * Returns the "last day of month" adjuster, which returns a new date set to + * the last day of the current month. + *

+ * The ISO calendar system behaves as follows:
+ * The input 2011-01-15 will return 2011-01-31.
+ * The input 2011-02-15 will return 2011-02-28.
+ * The input 2012-02-15 will return 2012-02-29 (leap year).
+ * The input 2011-04-15 will return 2011-04-30. + *

+ * The behavior is suitable for use with most calendar systems. + * It is equivalent to: + *

+                 * long lastDay = temporal.range(DAY_OF_MONTH).getMaximum();
+                 * temporal.with(DAY_OF_MONTH, lastDay);
+                 * 
+ */ + // @ts-ignore + public static lastDayOfMonth(): java.time.temporal.TemporalAdjuster; + /** + * Returns the "first day of next month" adjuster, which returns a new date set to + * the first day of the next month. + *

+ * The ISO calendar system behaves as follows:
+ * The input 2011-01-15 will return 2011-02-01.
+ * The input 2011-02-15 will return 2011-03-01. + *

+ * The behavior is suitable for use with most calendar systems. + * It is equivalent to: + *

+                 * temporal.with(DAY_OF_MONTH, 1).plus(1, MONTHS);
+                 * 
+ */ + // @ts-ignore + public static firstDayOfNextMonth(): java.time.temporal.TemporalAdjuster; + /** + * Returns the "first day of year" adjuster, which returns a new date set to + * the first day of the current year. + *

+ * The ISO calendar system behaves as follows:
+ * The input 2011-01-15 will return 2011-01-01.
+ * The input 2011-02-15 will return 2011-01-01.
+ *

+ * The behavior is suitable for use with most calendar systems. + * It is equivalent to: + *

+                 * temporal.with(DAY_OF_YEAR, 1);
+                 * 
+ */ + // @ts-ignore + public static firstDayOfYear(): java.time.temporal.TemporalAdjuster; + /** + * Returns the "last day of year" adjuster, which returns a new date set to + * the last day of the current year. + *

+ * The ISO calendar system behaves as follows:
+ * The input 2011-01-15 will return 2011-12-31.
+ * The input 2011-02-15 will return 2011-12-31.
+ *

+ * The behavior is suitable for use with most calendar systems. + * It is equivalent to: + *

+                 * long lastDay = temporal.range(DAY_OF_YEAR).getMaximum();
+                 * temporal.with(DAY_OF_YEAR, lastDay);
+                 * 
+ */ + // @ts-ignore + public static lastDayOfYear(): java.time.temporal.TemporalAdjuster; + /** + * Returns the "first day of next year" adjuster, which returns a new date set to + * the first day of the next year. + *

+ * The ISO calendar system behaves as follows:
+ * The input 2011-01-15 will return 2012-01-01. + *

+ * The behavior is suitable for use with most calendar systems. + * It is equivalent to: + *

+                 * temporal.with(DAY_OF_YEAR, 1).plus(1, YEARS);
+                 * 
+ */ + // @ts-ignore + public static firstDayOfNextYear(): java.time.temporal.TemporalAdjuster; + /** + * Returns the first in month adjuster, which returns a new date + * in the same month with the first matching day-of-week. + * This is used for expressions like 'first Tuesday in March'. + *

+ * The ISO calendar system behaves as follows:
+ * The input 2011-12-15 for (MONDAY) will return 2011-12-05.
+ * The input 2011-12-15 for (FRIDAY) will return 2011-12-02.
+ *

+ * The behavior is suitable for use with most calendar systems. + * It uses the {@code DAY_OF_WEEK} and {@code DAY_OF_MONTH} fields + * and the {@code DAYS} unit, and assumes a seven day week. + */ + // @ts-ignore + public static firstInMonth(dayOfWeek: java.time.DayOfWeek): java.time.temporal.TemporalAdjuster; + /** + * Returns the last in month adjuster, which returns a new date + * in the same month with the last matching day-of-week. + * This is used for expressions like 'last Tuesday in March'. + *

+ * The ISO calendar system behaves as follows:
+ * The input 2011-12-15 for (MONDAY) will return 2011-12-26.
+ * The input 2011-12-15 for (FRIDAY) will return 2011-12-30.
+ *

+ * The behavior is suitable for use with most calendar systems. + * It uses the {@code DAY_OF_WEEK} and {@code DAY_OF_MONTH} fields + * and the {@code DAYS} unit, and assumes a seven day week. + */ + // @ts-ignore + public static lastInMonth(dayOfWeek: java.time.DayOfWeek): java.time.temporal.TemporalAdjuster; + /** + * Returns the day-of-week in month adjuster, which returns a new date + * in the same month with the ordinal day-of-week. + * This is used for expressions like the 'second Tuesday in March'. + *

+ * The ISO calendar system behaves as follows:
+ * The input 2011-12-15 for (1,TUESDAY) will return 2011-12-06.
+ * The input 2011-12-15 for (2,TUESDAY) will return 2011-12-13.
+ * The input 2011-12-15 for (3,TUESDAY) will return 2011-12-20.
+ * The input 2011-12-15 for (4,TUESDAY) will return 2011-12-27.
+ * The input 2011-12-15 for (5,TUESDAY) will return 2012-01-03.
+ * The input 2011-12-15 for (-1,TUESDAY) will return 2011-12-27 (last in month).
+ * The input 2011-12-15 for (-4,TUESDAY) will return 2011-12-06 (3 weeks before last in month).
+ * The input 2011-12-15 for (-5,TUESDAY) will return 2011-11-29 (4 weeks before last in month).
+ * The input 2011-12-15 for (0,TUESDAY) will return 2011-11-29 (last in previous month).
+ *

+ * For a positive or zero ordinal, the algorithm is equivalent to finding the first + * day-of-week that matches within the month and then adding a number of weeks to it. + * For a negative ordinal, the algorithm is equivalent to finding the last + * day-of-week that matches within the month and then subtracting a number of weeks to it. + * The ordinal number of weeks is not validated and is interpreted leniently + * according to this algorithm. This definition means that an ordinal of zero finds + * the last matching day-of-week in the previous month. + *

+ * The behavior is suitable for use with most calendar systems. + * It uses the {@code DAY_OF_WEEK} and {@code DAY_OF_MONTH} fields + * and the {@code DAYS} unit, and assumes a seven day week. + */ + // @ts-ignore + public static dayOfWeekInMonth(ordinal: number, dayOfWeek: java.time.DayOfWeek): java.time.temporal.TemporalAdjuster; + /** + * Returns the next day-of-week adjuster, which adjusts the date to the + * first occurrence of the specified day-of-week after the date being adjusted. + *

+ * The ISO calendar system behaves as follows:
+ * The input 2011-01-15 (a Saturday) for parameter (MONDAY) will return 2011-01-17 (two days later).
+ * The input 2011-01-15 (a Saturday) for parameter (WEDNESDAY) will return 2011-01-19 (four days later).
+ * The input 2011-01-15 (a Saturday) for parameter (SATURDAY) will return 2011-01-22 (seven days later). + *

+ * The behavior is suitable for use with most calendar systems. + * It uses the {@code DAY_OF_WEEK} field and the {@code DAYS} unit, + * and assumes a seven day week. + */ + // @ts-ignore + public static next(dayOfWeek: java.time.DayOfWeek): java.time.temporal.TemporalAdjuster; + /** + * Returns the next-or-same day-of-week adjuster, which adjusts the date to the + * first occurrence of the specified day-of-week after the date being adjusted + * unless it is already on that day in which case the same object is returned. + *

+ * The ISO calendar system behaves as follows:
+ * The input 2011-01-15 (a Saturday) for parameter (MONDAY) will return 2011-01-17 (two days later).
+ * The input 2011-01-15 (a Saturday) for parameter (WEDNESDAY) will return 2011-01-19 (four days later).
+ * The input 2011-01-15 (a Saturday) for parameter (SATURDAY) will return 2011-01-15 (same as input). + *

+ * The behavior is suitable for use with most calendar systems. + * It uses the {@code DAY_OF_WEEK} field and the {@code DAYS} unit, + * and assumes a seven day week. + */ + // @ts-ignore + public static nextOrSame(dayOfWeek: java.time.DayOfWeek): java.time.temporal.TemporalAdjuster; + /** + * Returns the previous day-of-week adjuster, which adjusts the date to the + * first occurrence of the specified day-of-week before the date being adjusted. + *

+ * The ISO calendar system behaves as follows:
+ * The input 2011-01-15 (a Saturday) for parameter (MONDAY) will return 2011-01-10 (five days earlier).
+ * The input 2011-01-15 (a Saturday) for parameter (WEDNESDAY) will return 2011-01-12 (three days earlier).
+ * The input 2011-01-15 (a Saturday) for parameter (SATURDAY) will return 2011-01-08 (seven days earlier). + *

+ * The behavior is suitable for use with most calendar systems. + * It uses the {@code DAY_OF_WEEK} field and the {@code DAYS} unit, + * and assumes a seven day week. + */ + // @ts-ignore + public static previous(dayOfWeek: java.time.DayOfWeek): java.time.temporal.TemporalAdjuster; + /** + * Returns the previous-or-same day-of-week adjuster, which adjusts the date to the + * first occurrence of the specified day-of-week before the date being adjusted + * unless it is already on that day in which case the same object is returned. + *

+ * The ISO calendar system behaves as follows:
+ * The input 2011-01-15 (a Saturday) for parameter (MONDAY) will return 2011-01-10 (five days earlier).
+ * The input 2011-01-15 (a Saturday) for parameter (WEDNESDAY) will return 2011-01-12 (three days earlier).
+ * The input 2011-01-15 (a Saturday) for parameter (SATURDAY) will return 2011-01-15 (same as input). + *

+ * The behavior is suitable for use with most calendar systems. + * It uses the {@code DAY_OF_WEEK} field and the {@code DAYS} unit, + * and assumes a seven day week. + */ + // @ts-ignore + public static previousOrSame(dayOfWeek: java.time.DayOfWeek): java.time.temporal.TemporalAdjuster; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.temporal.TemporalAmount.d.ts b/packages/types/dist/typings/jdk/java.time.temporal.TemporalAmount.d.ts new file mode 100644 index 00000000..b292d295 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.temporal.TemporalAmount.d.ts @@ -0,0 +1,66 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace temporal { + // @ts-ignore + interface TemporalAmount { + /** + * Returns the value of the requested unit. + * The units returned from {@link #getUnits()} uniquely define the + * value of the {@code TemporalAmount}. A value must be returned + * for each unit listed in {@code getUnits}. + */ + // @ts-ignore + get(unit: java.time.temporal.TemporalUnit): number; + /** + * Returns the list of units uniquely defining the value of this TemporalAmount. + * The list of {@code TemporalUnits} is defined by the implementation class. + * The list is a snapshot of the units at the time {@code getUnits} + * is called and is not mutable. + * The units are ordered from longest duration to the shortest duration + * of the unit. + */ + // @ts-ignore + getUnits(): java.util.List; + /** + * Adds to the specified temporal object. + *

+ * Adds the amount to the specified temporal object using the logic + * encapsulated in the implementing class. + *

+ * There are two equivalent ways of using this method. + * The first is to invoke this method directly. + * The second is to use {@link Temporal#plus(TemporalAmount)}: + *

+                 * // These two lines are equivalent, but the second approach is recommended
+                 * dateTime = amount.addTo(dateTime);
+                 * dateTime = dateTime.plus(adder);
+                 * 
+ * It is recommended to use the second approach, {@code plus(TemporalAmount)}, + * as it is a lot clearer to read in code. + */ + // @ts-ignore + addTo(temporal: java.time.temporal.Temporal): java.time.temporal.Temporal; + /** + * Subtracts this object from the specified temporal object. + *

+ * Subtracts the amount from the specified temporal object using the logic + * encapsulated in the implementing class. + *

+ * There are two equivalent ways of using this method. + * The first is to invoke this method directly. + * The second is to use {@link Temporal#minus(TemporalAmount)}: + *

+                 * // these two lines are equivalent, but the second approach is recommended
+                 * dateTime = amount.subtractFrom(dateTime);
+                 * dateTime = dateTime.minus(amount);
+                 * 
+ * It is recommended to use the second approach, {@code minus(TemporalAmount)}, + * as it is a lot clearer to read in code. + */ + // @ts-ignore + subtractFrom(temporal: java.time.temporal.Temporal): java.time.temporal.Temporal; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.temporal.TemporalField.d.ts b/packages/types/dist/typings/jdk/java.time.temporal.TemporalField.d.ts new file mode 100644 index 00000000..2775fe49 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.temporal.TemporalField.d.ts @@ -0,0 +1,202 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace temporal { + // @ts-ignore + interface TemporalField { + /** + * Gets the display name for the field in the requested locale. + *

+ * If there is no display name for the locale then a suitable default must be returned. + *

+ * The default implementation must check the locale is not null + * and return {@code toString()}. + */ + // @ts-ignore + getDisplayName(locale: java.util.Locale): string; + /** + * Gets the unit that the field is measured in. + *

+ * The unit of the field is the period that varies within the range. + * For example, in the field 'MonthOfYear', the unit is 'Months'. + * See also {@link #getRangeUnit()}. + */ + // @ts-ignore + getBaseUnit(): java.time.temporal.TemporalUnit; + /** + * Gets the range that the field is bound by. + *

+ * The range of the field is the period that the field varies within. + * For example, in the field 'MonthOfYear', the range is 'Years'. + * See also {@link #getBaseUnit()}. + *

+ * The range is never null. For example, the 'Year' field is shorthand for + * 'YearOfForever'. It therefore has a unit of 'Years' and a range of 'Forever'. + */ + // @ts-ignore + getRangeUnit(): java.time.temporal.TemporalUnit; + /** + * Gets the range of valid values for the field. + *

+ * All fields can be expressed as a {@code long} integer. + * This method returns an object that describes the valid range for that value. + * This method is generally only applicable to the ISO-8601 calendar system. + *

+ * Note that the result only describes the minimum and maximum valid values + * and it is important not to read too much into them. For example, there + * could be values within the range that are invalid for the field. + */ + // @ts-ignore + range(): java.time.temporal.ValueRange; + /** + * Checks if this field represents a component of a date. + *

+ * A field is date-based if it can be derived from + * {@link ChronoField#EPOCH_DAY EPOCH_DAY}. + * Note that it is valid for both {@code isDateBased()} and {@code isTimeBased()} + * to return false, such as when representing a field like minute-of-week. + */ + // @ts-ignore + isDateBased(): boolean; + /** + * Checks if this field represents a component of a time. + *

+ * A field is time-based if it can be derived from + * {@link ChronoField#NANO_OF_DAY NANO_OF_DAY}. + * Note that it is valid for both {@code isDateBased()} and {@code isTimeBased()} + * to return false, such as when representing a field like minute-of-week. + */ + // @ts-ignore + isTimeBased(): boolean; + /** + * Checks if this field is supported by the temporal object. + *

+ * This determines whether the temporal accessor supports this field. + * If this returns false, then the temporal cannot be queried for this field. + *

+ * There are two equivalent ways of using this method. + * The first is to invoke this method directly. + * The second is to use {@link TemporalAccessor#isSupported(TemporalField)}: + *

+                 * // these two lines are equivalent, but the second approach is recommended
+                 * temporal = thisField.isSupportedBy(temporal);
+                 * temporal = temporal.isSupported(thisField);
+                 * 
+ * It is recommended to use the second approach, {@code isSupported(TemporalField)}, + * as it is a lot clearer to read in code. + *

+ * Implementations should determine whether they are supported using the fields + * available in {@link ChronoField}. + */ + // @ts-ignore + isSupportedBy(temporal: java.time.temporal.TemporalAccessor): boolean; + /** + * Get the range of valid values for this field using the temporal object to + * refine the result. + *

+ * This uses the temporal object to find the range of valid values for the field. + * This is similar to {@link #range()}, however this method refines the result + * using the temporal. For example, if the field is {@code DAY_OF_MONTH} the + * {@code range} method is not accurate as there are four possible month lengths, + * 28, 29, 30 and 31 days. Using this method with a date allows the range to be + * accurate, returning just one of those four options. + *

+ * There are two equivalent ways of using this method. + * The first is to invoke this method directly. + * The second is to use {@link TemporalAccessor#range(TemporalField)}: + *

+                 * // these two lines are equivalent, but the second approach is recommended
+                 * temporal = thisField.rangeRefinedBy(temporal);
+                 * temporal = temporal.range(thisField);
+                 * 
+ * It is recommended to use the second approach, {@code range(TemporalField)}, + * as it is a lot clearer to read in code. + *

+ * Implementations should perform any queries or calculations using the fields + * available in {@link ChronoField}. + * If the field is not supported an {@code UnsupportedTemporalTypeException} must be thrown. + */ + // @ts-ignore + rangeRefinedBy(temporal: java.time.temporal.TemporalAccessor): java.time.temporal.ValueRange; + /** + * Gets the value of this field from the specified temporal object. + *

+ * This queries the temporal object for the value of this field. + *

+ * There are two equivalent ways of using this method. + * The first is to invoke this method directly. + * The second is to use {@link TemporalAccessor#getLong(TemporalField)} + * (or {@link TemporalAccessor#get(TemporalField)}): + *

+                 * // these two lines are equivalent, but the second approach is recommended
+                 * temporal = thisField.getFrom(temporal);
+                 * temporal = temporal.getLong(thisField);
+                 * 
+ * It is recommended to use the second approach, {@code getLong(TemporalField)}, + * as it is a lot clearer to read in code. + *

+ * Implementations should perform any queries or calculations using the fields + * available in {@link ChronoField}. + * If the field is not supported an {@code UnsupportedTemporalTypeException} must be thrown. + */ + // @ts-ignore + getFrom(temporal: java.time.temporal.TemporalAccessor): number; + /** + * Returns a copy of the specified temporal object with the value of this field set. + *

+ * This returns a new temporal object based on the specified one with the value for + * this field changed. For example, on a {@code LocalDate}, this could be used to + * set the year, month or day-of-month. + * The returned object has the same observable type as the specified object. + *

+ * In some cases, changing a field is not fully defined. For example, if the target object is + * a date representing the 31st January, then changing the month to February would be unclear. + * In cases like this, the implementation is responsible for resolving the result. + * Typically it will choose the previous valid date, which would be the last valid + * day of February in this example. + *

+ * There are two equivalent ways of using this method. + * The first is to invoke this method directly. + * The second is to use {@link Temporal#with(TemporalField, long)}: + *

+                 * // these two lines are equivalent, but the second approach is recommended
+                 * temporal = thisField.adjustInto(temporal);
+                 * temporal = temporal.with(thisField);
+                 * 
+ * It is recommended to use the second approach, {@code with(TemporalField)}, + * as it is a lot clearer to read in code. + *

+ * Implementations should perform any queries or calculations using the fields + * available in {@link ChronoField}. + * If the field is not supported an {@code UnsupportedTemporalTypeException} must be thrown. + *

+ * Implementations must not alter the specified temporal object. + * Instead, an adjusted copy of the original must be returned. + * This provides equivalent, safe behavior for immutable and mutable implementations. + */ + // @ts-ignore + adjustInto(temporal: java.time.temporal.Temporal, newValue: number): java.time.temporal.Temporal; + /** + * Resolves this field to provide a simpler alternative or a date. + *

+ * This method is invoked during the resolve phase of parsing. + * It is designed to allow application defined fields to be simplified into + * more standard fields, such as those on {@code ChronoField}, or into a date. + *

+ * Applications should not normally invoke this method directly. + */ + // @ts-ignore + resolve(fieldValues: java.util.Map, partialTemporal: java.time.temporal.TemporalAccessor, resolverStyle: java.time.format.ResolverStyle): java.time.temporal.TemporalAccessor; + /** + * Gets a descriptive name for the field. + *

+ * The should be of the format 'BaseOfRange', such as 'MonthOfYear', + * unless the field has a range of {@code FOREVER}, when only + * the base unit is mentioned, such as 'Year' or 'Era'. + */ + // @ts-ignore + toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.temporal.TemporalQueries.d.ts b/packages/types/dist/typings/jdk/java.time.temporal.TemporalQueries.d.ts new file mode 100644 index 00000000..8d42700e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.temporal.TemporalQueries.d.ts @@ -0,0 +1,185 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace temporal { + // @ts-ignore + class TemporalQueries extends java.lang.Object { + /** + * A strict query for the {@code ZoneId}. + *

+ * This queries a {@code TemporalAccessor} for the zone. + * The zone is only returned if the date-time conceptually contains a {@code ZoneId}. + * It will not be returned if the date-time only conceptually has an {@code ZoneOffset}. + * Thus a {@link java.time.ZonedDateTime} will return the result of {@code getZone()}, + * but an {@link java.time.OffsetDateTime} will return null. + *

+ * In most cases, applications should use {@link #zone()} as this query is too strict. + *

+ * The result from JDK classes implementing {@code TemporalAccessor} is as follows:
+ * {@code LocalDate} returns null
+ * {@code LocalTime} returns null
+ * {@code LocalDateTime} returns null
+ * {@code ZonedDateTime} returns the associated zone
+ * {@code OffsetTime} returns null
+ * {@code OffsetDateTime} returns null
+ * {@code ChronoLocalDate} returns null
+ * {@code ChronoLocalDateTime} returns null
+ * {@code ChronoZonedDateTime} returns the associated zone
+ * {@code Era} returns null
+ * {@code DayOfWeek} returns null
+ * {@code Month} returns null
+ * {@code Year} returns null
+ * {@code YearMonth} returns null
+ * {@code MonthDay} returns null
+ * {@code ZoneOffset} returns null
+ * {@code Instant} returns null
+ */ + // @ts-ignore + public static zoneId(): java.time.temporal.TemporalQuery; + /** + * A query for the {@code Chronology}. + *

+ * This queries a {@code TemporalAccessor} for the chronology. + * If the target {@code TemporalAccessor} represents a date, or part of a date, + * then it should return the chronology that the date is expressed in. + * As a result of this definition, objects only representing time, such as + * {@code LocalTime}, will return null. + *

+ * The result from JDK classes implementing {@code TemporalAccessor} is as follows:
+ * {@code LocalDate} returns {@code IsoChronology.INSTANCE}
+ * {@code LocalTime} returns null (does not represent a date)
+ * {@code LocalDateTime} returns {@code IsoChronology.INSTANCE}
+ * {@code ZonedDateTime} returns {@code IsoChronology.INSTANCE}
+ * {@code OffsetTime} returns null (does not represent a date)
+ * {@code OffsetDateTime} returns {@code IsoChronology.INSTANCE}
+ * {@code ChronoLocalDate} returns the associated chronology
+ * {@code ChronoLocalDateTime} returns the associated chronology
+ * {@code ChronoZonedDateTime} returns the associated chronology
+ * {@code Era} returns the associated chronology
+ * {@code DayOfWeek} returns null (shared across chronologies)
+ * {@code Month} returns {@code IsoChronology.INSTANCE}
+ * {@code Year} returns {@code IsoChronology.INSTANCE}
+ * {@code YearMonth} returns {@code IsoChronology.INSTANCE}
+ * {@code MonthDay} returns null {@code IsoChronology.INSTANCE}
+ * {@code ZoneOffset} returns null (does not represent a date)
+ * {@code Instant} returns null (does not represent a date)
+ *

+ * The method {@link java.time.chrono.Chronology#from(TemporalAccessor)} can be used as a + * {@code TemporalQuery} via a method reference, {@code Chronology::from}. + * That method is equivalent to this query, except that it throws an + * exception if a chronology cannot be obtained. + */ + // @ts-ignore + public static chronology(): java.time.temporal.TemporalQuery; + /** + * A query for the smallest supported unit. + *

+ * This queries a {@code TemporalAccessor} for the time precision. + * If the target {@code TemporalAccessor} represents a consistent or complete date-time, + * date or time then this must return the smallest precision actually supported. + * Note that fields such as {@code NANO_OF_DAY} and {@code NANO_OF_SECOND} + * are defined to always return ignoring the precision, thus this is the only + * way to find the actual smallest supported unit. + * For example, were {@code GregorianCalendar} to implement {@code TemporalAccessor} + * it would return a precision of {@code MILLIS}. + *

+ * The result from JDK classes implementing {@code TemporalAccessor} is as follows:
+ * {@code LocalDate} returns {@code DAYS}
+ * {@code LocalTime} returns {@code NANOS}
+ * {@code LocalDateTime} returns {@code NANOS}
+ * {@code ZonedDateTime} returns {@code NANOS}
+ * {@code OffsetTime} returns {@code NANOS}
+ * {@code OffsetDateTime} returns {@code NANOS}
+ * {@code ChronoLocalDate} returns {@code DAYS}
+ * {@code ChronoLocalDateTime} returns {@code NANOS}
+ * {@code ChronoZonedDateTime} returns {@code NANOS}
+ * {@code Era} returns {@code ERAS}
+ * {@code DayOfWeek} returns {@code DAYS}
+ * {@code Month} returns {@code MONTHS}
+ * {@code Year} returns {@code YEARS}
+ * {@code YearMonth} returns {@code MONTHS}
+ * {@code MonthDay} returns null (does not represent a complete date or time)
+ * {@code ZoneOffset} returns null (does not represent a date or time)
+ * {@code Instant} returns {@code NANOS}
+ */ + // @ts-ignore + public static precision(): java.time.temporal.TemporalQuery; + /** + * A lenient query for the {@code ZoneId}, falling back to the {@code ZoneOffset}. + *

+ * This queries a {@code TemporalAccessor} for the zone. + * It first tries to obtain the zone, using {@link #zoneId()}. + * If that is not found it tries to obtain the {@link #offset()}. + * Thus a {@link java.time.ZonedDateTime} will return the result of {@code getZone()}, + * while an {@link java.time.OffsetDateTime} will return the result of {@code getOffset()}. + *

+ * In most cases, applications should use this query rather than {@code #zoneId()}. + *

+ * The method {@link ZoneId#from(TemporalAccessor)} can be used as a + * {@code TemporalQuery} via a method reference, {@code ZoneId::from}. + * That method is equivalent to this query, except that it throws an + * exception if a zone cannot be obtained. + */ + // @ts-ignore + public static zone(): java.time.temporal.TemporalQuery; + /** + * A query for {@code ZoneOffset} returning null if not found. + *

+ * This returns a {@code TemporalQuery} that can be used to query a temporal + * object for the offset. The query will return null if the temporal + * object cannot supply an offset. + *

+ * The query implementation examines the {@link ChronoField#OFFSET_SECONDS OFFSET_SECONDS} + * field and uses it to create a {@code ZoneOffset}. + *

+ * The method {@link java.time.ZoneOffset#from(TemporalAccessor)} can be used as a + * {@code TemporalQuery} via a method reference, {@code ZoneOffset::from}. + * This query and {@code ZoneOffset::from} will return the same result if the + * temporal object contains an offset. If the temporal object does not contain + * an offset, then the method reference will throw an exception, whereas this + * query will return null. + */ + // @ts-ignore + public static offset(): java.time.temporal.TemporalQuery; + /** + * A query for {@code LocalDate} returning null if not found. + *

+ * This returns a {@code TemporalQuery} that can be used to query a temporal + * object for the local date. The query will return null if the temporal + * object cannot supply a local date. + *

+ * The query implementation examines the {@link ChronoField#EPOCH_DAY EPOCH_DAY} + * field and uses it to create a {@code LocalDate}. + *

+ * The method {@link ZoneOffset#from(TemporalAccessor)} can be used as a + * {@code TemporalQuery} via a method reference, {@code LocalDate::from}. + * This query and {@code LocalDate::from} will return the same result if the + * temporal object contains a date. If the temporal object does not contain + * a date, then the method reference will throw an exception, whereas this + * query will return null. + */ + // @ts-ignore + public static localDate(): java.time.temporal.TemporalQuery; + /** + * A query for {@code LocalTime} returning null if not found. + *

+ * This returns a {@code TemporalQuery} that can be used to query a temporal + * object for the local time. The query will return null if the temporal + * object cannot supply a local time. + *

+ * The query implementation examines the {@link ChronoField#NANO_OF_DAY NANO_OF_DAY} + * field and uses it to create a {@code LocalTime}. + *

+ * The method {@link ZoneOffset#from(TemporalAccessor)} can be used as a + * {@code TemporalQuery} via a method reference, {@code LocalTime::from}. + * This query and {@code LocalTime::from} will return the same result if the + * temporal object contains a time. If the temporal object does not contain + * a time, then the method reference will throw an exception, whereas this + * query will return null. + */ + // @ts-ignore + public static localTime(): java.time.temporal.TemporalQuery; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.temporal.TemporalQuery.d.ts b/packages/types/dist/typings/jdk/java.time.temporal.TemporalQuery.d.ts new file mode 100644 index 00000000..bb3989eb --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.temporal.TemporalQuery.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace temporal { + // @ts-ignore + interface TemporalQuery { + /** + * Queries the specified temporal object. + *

+ * This queries the specified temporal object to return an object using the logic + * encapsulated in the implementing class. + * Examples might be a query that checks if the date is the day before February 29th + * in a leap year, or calculates the number of days to your next birthday. + *

+ * There are two equivalent ways of using this method. + * The first is to invoke this method directly. + * The second is to use {@link TemporalAccessor#query(TemporalQuery)}: + *

+                 * // these two lines are equivalent, but the second approach is recommended
+                 * temporal = thisQuery.queryFrom(temporal);
+                 * temporal = temporal.query(thisQuery);
+                 * 
+ * It is recommended to use the second approach, {@code query(TemporalQuery)}, + * as it is a lot clearer to read in code. + */ + // @ts-ignore + queryFrom(temporal: java.time.temporal.TemporalAccessor): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.temporal.TemporalUnit.d.ts b/packages/types/dist/typings/jdk/java.time.temporal.TemporalUnit.d.ts new file mode 100644 index 00000000..5cac7636 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.temporal.TemporalUnit.d.ts @@ -0,0 +1,145 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace temporal { + // @ts-ignore + interface TemporalUnit { + /** + * Gets the duration of this unit, which may be an estimate. + *

+ * All units return a duration measured in standard nanoseconds from this method. + * The duration will be positive and non-zero. + * For example, an hour has a duration of {@code 60 * 60 * 1,000,000,000ns}. + *

+ * Some units may return an accurate duration while others return an estimate. + * For example, days have an estimated duration due to the possibility of + * daylight saving time changes. + * To determine if the duration is an estimate, use {@link #isDurationEstimated()}. + */ + // @ts-ignore + getDuration(): java.time.Duration; + /** + * Checks if the duration of the unit is an estimate. + *

+ * All units have a duration, however the duration is not always accurate. + * For example, days have an estimated duration due to the possibility of + * daylight saving time changes. + * This method returns true if the duration is an estimate and false if it is + * accurate. Note that accurate/estimated ignores leap seconds. + */ + // @ts-ignore + isDurationEstimated(): boolean; + /** + * Checks if this unit represents a component of a date. + *

+ * A date is time-based if it can be used to imply meaning from a date. + * It must have a {@linkplain #getDuration() duration} that is an integral + * multiple of the length of a standard day. + * Note that it is valid for both {@code isDateBased()} and {@code isTimeBased()} + * to return false, such as when representing a unit like 36 hours. + */ + // @ts-ignore + isDateBased(): boolean; + /** + * Checks if this unit represents a component of a time. + *

+ * A unit is time-based if it can be used to imply meaning from a time. + * It must have a {@linkplain #getDuration() duration} that divides into + * the length of a standard day without remainder. + * Note that it is valid for both {@code isDateBased()} and {@code isTimeBased()} + * to return false, such as when representing a unit like 36 hours. + */ + // @ts-ignore + isTimeBased(): boolean; + /** + * Checks if this unit is supported by the specified temporal object. + *

+ * This checks that the implementing date-time can add/subtract this unit. + * This can be used to avoid throwing an exception. + *

+ * This default implementation derives the value using + * {@link Temporal#plus(long, TemporalUnit)}. + */ + // @ts-ignore + isSupportedBy(temporal: java.time.temporal.Temporal): boolean; + /** + * Returns a copy of the specified temporal object with the specified period added. + *

+ * The period added is a multiple of this unit. For example, this method + * could be used to add "3 days" to a date by calling this method on the + * instance representing "days", passing the date and the period "3". + * The period to be added may be negative, which is equivalent to subtraction. + *

+ * There are two equivalent ways of using this method. + * The first is to invoke this method directly. + * The second is to use {@link Temporal#plus(long, TemporalUnit)}: + *

+                 * // these two lines are equivalent, but the second approach is recommended
+                 * temporal = thisUnit.addTo(temporal);
+                 * temporal = temporal.plus(thisUnit);
+                 * 
+ * It is recommended to use the second approach, {@code plus(TemporalUnit)}, + * as it is a lot clearer to read in code. + *

+ * Implementations should perform any queries or calculations using the units + * available in {@link ChronoUnit} or the fields available in {@link ChronoField}. + * If the unit is not supported an {@code UnsupportedTemporalTypeException} must be thrown. + *

+ * Implementations must not alter the specified temporal object. + * Instead, an adjusted copy of the original must be returned. + * This provides equivalent, safe behavior for immutable and mutable implementations. + */ + // @ts-ignore + addTo(temporal: java.time.temporal.Temporal, amount: number): java.time.temporal.Temporal; + /** + * Calculates the amount of time between two temporal objects. + *

+ * This calculates the amount in terms of this unit. The start and end + * points are supplied as temporal objects and must be of compatible types. + * The implementation will convert the second type to be an instance of the + * first type before the calculating the amount. + * The result will be negative if the end is before the start. + * For example, the amount in hours between two temporal objects can be + * calculated using {@code HOURS.between(startTime, endTime)}. + *

+ * The calculation returns a whole number, representing the number of + * complete units between the two temporals. + * For example, the amount in hours between the times 11:30 and 13:29 + * will only be one hour as it is one minute short of two hours. + *

+ * There are two equivalent ways of using this method. + * The first is to invoke this method directly. + * The second is to use {@link Temporal#until(Temporal, TemporalUnit)}: + *

+                 * // these two lines are equivalent
+                 * between = thisUnit.between(start, end);
+                 * between = start.until(end, thisUnit);
+                 * 
+ * The choice should be made based on which makes the code more readable. + *

+ * For example, this method allows the number of days between two dates to + * be calculated: + *

+                 * long daysBetween = DAYS.between(start, end);
+                 * // or alternatively
+                 * long daysBetween = start.until(end, DAYS);
+                 * 
+ *

+ * Implementations should perform any queries or calculations using the units + * available in {@link ChronoUnit} or the fields available in {@link ChronoField}. + * If the unit is not supported an {@code UnsupportedTemporalTypeException} must be thrown. + * Implementations must not alter the specified temporal objects. + */ + // @ts-ignore + between(temporal1Inclusive: java.time.temporal.Temporal, temporal2Exclusive: java.time.temporal.Temporal): number; + /** + * Gets a descriptive name for the unit. + *

+ * This should be in the plural and upper-first camel case, such as 'Days' or 'Minutes'. + */ + // @ts-ignore + toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.temporal.UnsupportedTemporalTypeException.d.ts b/packages/types/dist/typings/jdk/java.time.temporal.UnsupportedTemporalTypeException.d.ts new file mode 100644 index 00000000..c3ff078d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.temporal.UnsupportedTemporalTypeException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace temporal { + // @ts-ignore + class UnsupportedTemporalTypeException extends java.time.DateTimeException { + /** + * Constructs a new UnsupportedTemporalTypeException with the specified message. + */ + // @ts-ignore + constructor(message: string) + /** + * Constructs a new UnsupportedTemporalTypeException with the specified message and cause. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.temporal.ValueRange.d.ts b/packages/types/dist/typings/jdk/java.time.temporal.ValueRange.d.ts new file mode 100644 index 00000000..1db81d88 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.temporal.ValueRange.d.ts @@ -0,0 +1,141 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace temporal { + // @ts-ignore + class ValueRange extends java.lang.Object { + /** + * Obtains a fixed value range. + *

+ * This factory obtains a range where the minimum and maximum values are fixed. + * For example, the ISO month-of-year always runs from 1 to 12. + */ + // @ts-ignore + public static of(min: number, max: number): java.time.temporal.ValueRange; + /** + * Obtains a variable value range. + *

+ * This factory obtains a range where the minimum value is fixed and the maximum value may vary. + * For example, the ISO day-of-month always starts at 1, but ends between 28 and 31. + */ + // @ts-ignore + public static of(min: number, maxSmallest: number, maxLargest: number): java.time.temporal.ValueRange; + /** + * Obtains a fully variable value range. + *

+ * This factory obtains a range where both the minimum and maximum value may vary. + */ + // @ts-ignore + public static of(minSmallest: number, minLargest: number, maxSmallest: number, maxLargest: number): java.time.temporal.ValueRange; + /** + * Is the value range fixed and fully known. + *

+ * For example, the ISO day-of-month runs from 1 to between 28 and 31. + * Since there is uncertainty about the maximum value, the range is not fixed. + * However, for the month of January, the range is always 1 to 31, thus it is fixed. + */ + // @ts-ignore + public isFixed(): boolean; + /** + * Gets the minimum value that the field can take. + *

+ * For example, the ISO day-of-month always starts at 1. + * The minimum is therefore 1. + */ + // @ts-ignore + public getMinimum(): number; + /** + * Gets the largest possible minimum value that the field can take. + *

+ * For example, the ISO day-of-month always starts at 1. + * The largest minimum is therefore 1. + */ + // @ts-ignore + public getLargestMinimum(): number; + /** + * Gets the smallest possible maximum value that the field can take. + *

+ * For example, the ISO day-of-month runs to between 28 and 31 days. + * The smallest maximum is therefore 28. + */ + // @ts-ignore + public getSmallestMaximum(): number; + /** + * Gets the maximum value that the field can take. + *

+ * For example, the ISO day-of-month runs to between 28 and 31 days. + * The maximum is therefore 31. + */ + // @ts-ignore + public getMaximum(): number; + /** + * Checks if all values in the range fit in an {@code int}. + *

+ * This checks that all valid values are within the bounds of an {@code int}. + *

+ * For example, the ISO month-of-year has values from 1 to 12, which fits in an {@code int}. + * By comparison, ISO nano-of-day runs from 1 to 86,400,000,000,000 which does not fit in an {@code int}. + *

+ * This implementation uses {@link #getMinimum()} and {@link #getMaximum()}. + */ + // @ts-ignore + public isIntValue(): boolean; + /** + * Checks if the value is within the valid range. + *

+ * This checks that the value is within the stored range of values. + */ + // @ts-ignore + public isValidValue(value: number): boolean; + /** + * Checks if the value is within the valid range and that all values + * in the range fit in an {@code int}. + *

+ * This method combines {@link #isIntValue()} and {@link #isValidValue(long)}. + */ + // @ts-ignore + public isValidIntValue(value: number): boolean; + /** + * Checks that the specified value is valid. + *

+ * This validates that the value is within the valid range of values. + * The field is only used to improve the error message. + */ + // @ts-ignore + public checkValidValue(value: number, field: java.time.temporal.TemporalField): number; + /** + * Checks that the specified value is valid and fits in an {@code int}. + *

+ * This validates that the value is within the valid range of values and that + * all valid values are within the bounds of an {@code int}. + * The field is only used to improve the error message. + */ + // @ts-ignore + public checkValidIntValue(value: number, field: java.time.temporal.TemporalField): number; + /** + * Checks if this range is equal to another range. + *

+ * The comparison is based on the four values, minimum, largest minimum, + * smallest maximum and maximum. + * Only objects of type {@code ValueRange} are compared, other types return false. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * A hash code for this range. + */ + // @ts-ignore + public hashCode(): number; + /** + * Outputs this range as a {@code String}. + *

+ * The format will be '{min}/{largestMin} - {smallestMax}/{max}', + * where the largestMin or smallestMax sections may be omitted, together + * with associated slash, if they are the same as the min or max. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.temporal.WeekFields.d.ts b/packages/types/dist/typings/jdk/java.time.temporal.WeekFields.d.ts new file mode 100644 index 00000000..75cddad8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.temporal.WeekFields.d.ts @@ -0,0 +1,261 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace temporal { + // @ts-ignore + class WeekFields extends java.lang.Object { + // @ts-ignore + public static ISO: java.time.temporal.WeekFields; + // @ts-ignore + public static SUNDAY_START: java.time.temporal.WeekFields; + // @ts-ignore + public static WEEK_BASED_YEARS: java.time.temporal.TemporalUnit; + /** + * Obtains an instance of {@code WeekFields} appropriate for a locale. + *

+ * This will look up appropriate values from the provider of localization data. + */ + // @ts-ignore + public static of(locale: java.util.Locale): java.time.temporal.WeekFields; + /** + * Obtains an instance of {@code WeekFields} from the first day-of-week and minimal days. + *

+ * The first day-of-week defines the ISO {@code DayOfWeek} that is day 1 of the week. + * The minimal number of days in the first week defines how many days must be present + * in a month or year, starting from the first day-of-week, before the week is counted + * as the first week. A value of 1 will count the first day of the month or year as part + * of the first week, whereas a value of 7 will require the whole seven days to be in + * the new month or year. + *

+ * WeekFields instances are singletons; for each unique combination + * of {@code firstDayOfWeek} and {@code minimalDaysInFirstWeek} the + * the same instance will be returned. + */ + // @ts-ignore + public static of(firstDayOfWeek: java.time.DayOfWeek, minimalDaysInFirstWeek: number): java.time.temporal.WeekFields; + /** + * Gets the first day-of-week. + *

+ * The first day-of-week varies by culture. + * For example, the US uses Sunday, while France and the ISO-8601 standard use Monday. + * This method returns the first day using the standard {@code DayOfWeek} enum. + */ + // @ts-ignore + public getFirstDayOfWeek(): java.time.DayOfWeek; + /** + * Gets the minimal number of days in the first week. + *

+ * The number of days considered to define the first week of a month or year + * varies by culture. + * For example, the ISO-8601 requires 4 days (more than half a week) to + * be present before counting the first week. + */ + // @ts-ignore + public getMinimalDaysInFirstWeek(): number; + /** + * Returns a field to access the day of week based on this {@code WeekFields}. + *

+ * This is similar to {@link ChronoField#DAY_OF_WEEK} but uses values for + * the day-of-week based on this {@code WeekFields}. + * The days are numbered from 1 to 7 where the + * {@link #getFirstDayOfWeek() first day-of-week} is assigned the value 1. + *

+ * For example, if the first day-of-week is Sunday, then that will have the + * value 1, with other days ranging from Monday as 2 to Saturday as 7. + *

+ * In the resolving phase of parsing, a localized day-of-week will be converted + * to a standardized {@code ChronoField} day-of-week. + * The day-of-week must be in the valid range 1 to 7. + * Other fields in this class build dates using the standardized day-of-week. + */ + // @ts-ignore + public dayOfWeek(): java.time.temporal.TemporalField; + /** + * Returns a field to access the week of month based on this {@code WeekFields}. + *

+ * This represents the concept of the count of weeks within the month where weeks + * start on a fixed day-of-week, such as Monday. + * This field is typically used with {@link WeekFields#dayOfWeek()}. + *

+ * Week one (1) is the week starting on the {@link WeekFields#getFirstDayOfWeek} + * where there are at least {@link WeekFields#getMinimalDaysInFirstWeek()} days in the month. + * Thus, week one may start up to {@code minDays} days before the start of the month. + * If the first week starts after the start of the month then the period before is week zero (0). + *

+ * For example:
+ * - if the 1st day of the month is a Monday, week one starts on the 1st and there is no week zero
+ * - if the 2nd day of the month is a Monday, week one starts on the 2nd and the 1st is in week zero
+ * - if the 4th day of the month is a Monday, week one starts on the 4th and the 1st to 3rd is in week zero
+ * - if the 5th day of the month is a Monday, week two starts on the 5th and the 1st to 4th is in week one
+ *

+ * This field can be used with any calendar system. + *

+ * In the resolving phase of parsing, a date can be created from a year, + * week-of-month, month-of-year and day-of-week. + *

+ * In {@linkplain ResolverStyle#STRICT strict mode}, all four fields are + * validated against their range of valid values. The week-of-month field + * is validated to ensure that the resulting month is the month requested. + *

+ * In {@linkplain ResolverStyle#SMART smart mode}, all four fields are + * validated against their range of valid values. The week-of-month field + * is validated from 0 to 6, meaning that the resulting date can be in a + * different month to that specified. + *

+ * In {@linkplain ResolverStyle#LENIENT lenient mode}, the year and day-of-week + * are validated against the range of valid values. The resulting date is calculated + * equivalent to the following four stage approach. + * First, create a date on the first day of the first week of January in the requested year. + * Then take the month-of-year, subtract one, and add the amount in months to the date. + * Then take the week-of-month, subtract one, and add the amount in weeks to the date. + * Finally, adjust to the correct day-of-week within the localized week. + */ + // @ts-ignore + public weekOfMonth(): java.time.temporal.TemporalField; + /** + * Returns a field to access the week of year based on this {@code WeekFields}. + *

+ * This represents the concept of the count of weeks within the year where weeks + * start on a fixed day-of-week, such as Monday. + * This field is typically used with {@link WeekFields#dayOfWeek()}. + *

+ * Week one(1) is the week starting on the {@link WeekFields#getFirstDayOfWeek} + * where there are at least {@link WeekFields#getMinimalDaysInFirstWeek()} days in the year. + * Thus, week one may start up to {@code minDays} days before the start of the year. + * If the first week starts after the start of the year then the period before is week zero (0). + *

+ * For example:
+ * - if the 1st day of the year is a Monday, week one starts on the 1st and there is no week zero
+ * - if the 2nd day of the year is a Monday, week one starts on the 2nd and the 1st is in week zero
+ * - if the 4th day of the year is a Monday, week one starts on the 4th and the 1st to 3rd is in week zero
+ * - if the 5th day of the year is a Monday, week two starts on the 5th and the 1st to 4th is in week one
+ *

+ * This field can be used with any calendar system. + *

+ * In the resolving phase of parsing, a date can be created from a year, + * week-of-year and day-of-week. + *

+ * In {@linkplain ResolverStyle#STRICT strict mode}, all three fields are + * validated against their range of valid values. The week-of-year field + * is validated to ensure that the resulting year is the year requested. + *

+ * In {@linkplain ResolverStyle#SMART smart mode}, all three fields are + * validated against their range of valid values. The week-of-year field + * is validated from 0 to 54, meaning that the resulting date can be in a + * different year to that specified. + *

+ * In {@linkplain ResolverStyle#LENIENT lenient mode}, the year and day-of-week + * are validated against the range of valid values. The resulting date is calculated + * equivalent to the following three stage approach. + * First, create a date on the first day of the first week in the requested year. + * Then take the week-of-year, subtract one, and add the amount in weeks to the date. + * Finally, adjust to the correct day-of-week within the localized week. + */ + // @ts-ignore + public weekOfYear(): java.time.temporal.TemporalField; + /** + * Returns a field to access the week of a week-based-year based on this {@code WeekFields}. + *

+ * This represents the concept of the count of weeks within the year where weeks + * start on a fixed day-of-week, such as Monday and each week belongs to exactly one year. + * This field is typically used with {@link WeekFields#dayOfWeek()} and + * {@link WeekFields#weekBasedYear()}. + *

+ * Week one(1) is the week starting on the {@link WeekFields#getFirstDayOfWeek} + * where there are at least {@link WeekFields#getMinimalDaysInFirstWeek()} days in the year. + * If the first week starts after the start of the year then the period before + * is in the last week of the previous year. + *

+ * For example:
+ * - if the 1st day of the year is a Monday, week one starts on the 1st
+ * - if the 2nd day of the year is a Monday, week one starts on the 2nd and + * the 1st is in the last week of the previous year
+ * - if the 4th day of the year is a Monday, week one starts on the 4th and + * the 1st to 3rd is in the last week of the previous year
+ * - if the 5th day of the year is a Monday, week two starts on the 5th and + * the 1st to 4th is in week one
+ *

+ * This field can be used with any calendar system. + *

+ * In the resolving phase of parsing, a date can be created from a week-based-year, + * week-of-year and day-of-week. + *

+ * In {@linkplain ResolverStyle#STRICT strict mode}, all three fields are + * validated against their range of valid values. The week-of-year field + * is validated to ensure that the resulting week-based-year is the + * week-based-year requested. + *

+ * In {@linkplain ResolverStyle#SMART smart mode}, all three fields are + * validated against their range of valid values. The week-of-week-based-year field + * is validated from 1 to 53, meaning that the resulting date can be in the + * following week-based-year to that specified. + *

+ * In {@linkplain ResolverStyle#LENIENT lenient mode}, the year and day-of-week + * are validated against the range of valid values. The resulting date is calculated + * equivalent to the following three stage approach. + * First, create a date on the first day of the first week in the requested week-based-year. + * Then take the week-of-week-based-year, subtract one, and add the amount in weeks to the date. + * Finally, adjust to the correct day-of-week within the localized week. + */ + // @ts-ignore + public weekOfWeekBasedYear(): java.time.temporal.TemporalField; + /** + * Returns a field to access the year of a week-based-year based on this {@code WeekFields}. + *

+ * This represents the concept of the year where weeks start on a fixed day-of-week, + * such as Monday and each week belongs to exactly one year. + * This field is typically used with {@link WeekFields#dayOfWeek()} and + * {@link WeekFields#weekOfWeekBasedYear()}. + *

+ * Week one(1) is the week starting on the {@link WeekFields#getFirstDayOfWeek} + * where there are at least {@link WeekFields#getMinimalDaysInFirstWeek()} days in the year. + * Thus, week one may start before the start of the year. + * If the first week starts after the start of the year then the period before + * is in the last week of the previous year. + *

+ * This field can be used with any calendar system. + *

+ * In the resolving phase of parsing, a date can be created from a week-based-year, + * week-of-year and day-of-week. + *

+ * In {@linkplain ResolverStyle#STRICT strict mode}, all three fields are + * validated against their range of valid values. The week-of-year field + * is validated to ensure that the resulting week-based-year is the + * week-based-year requested. + *

+ * In {@linkplain ResolverStyle#SMART smart mode}, all three fields are + * validated against their range of valid values. The week-of-week-based-year field + * is validated from 1 to 53, meaning that the resulting date can be in the + * following week-based-year to that specified. + *

+ * In {@linkplain ResolverStyle#LENIENT lenient mode}, the year and day-of-week + * are validated against the range of valid values. The resulting date is calculated + * equivalent to the following three stage approach. + * First, create a date on the first day of the first week in the requested week-based-year. + * Then take the week-of-week-based-year, subtract one, and add the amount in weeks to the date. + * Finally, adjust to the correct day-of-week within the localized week. + */ + // @ts-ignore + public weekBasedYear(): java.time.temporal.TemporalField; + /** + * Checks if this {@code WeekFields} is equal to the specified object. + *

+ * The comparison is based on the entire state of the rules, which is + * the first day-of-week and minimal days. + */ + // @ts-ignore + public equals(object: java.lang.Object): boolean; + /** + * A hash code for this {@code WeekFields}. + */ + // @ts-ignore + public hashCode(): number; + /** + * A string representation of this {@code WeekFields} instance. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.zone.ZoneOffsetTransition.d.ts b/packages/types/dist/typings/jdk/java.time.zone.ZoneOffsetTransition.d.ts new file mode 100644 index 00000000..a063eae1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.zone.ZoneOffsetTransition.d.ts @@ -0,0 +1,131 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace zone { + // @ts-ignore + class ZoneOffsetTransition extends java.lang.Object { + /** + * Obtains an instance defining a transition between two offsets. + *

+ * Applications should normally obtain an instance from {@link ZoneRules}. + * This factory is only intended for use when creating {@link ZoneRules}. + */ + // @ts-ignore + public static of(transition: java.time.LocalDateTime, offsetBefore: java.time.ZoneOffset, offsetAfter: java.time.ZoneOffset): java.time.zone.ZoneOffsetTransition; + /** + * Gets the transition instant. + *

+ * This is the instant of the discontinuity, which is defined as the first + * instant that the 'after' offset applies. + *

+ * The methods {@link #getInstant()}, {@link #getDateTimeBefore()} and {@link #getDateTimeAfter()} + * all represent the same instant. + */ + // @ts-ignore + public getInstant(): java.time.Instant; + /** + * Gets the transition instant as an epoch second. + */ + // @ts-ignore + public toEpochSecond(): number; + /** + * Gets the local transition date-time, as would be expressed with the 'before' offset. + *

+ * This is the date-time where the discontinuity begins expressed with the 'before' offset. + * At this instant, the 'after' offset is actually used, therefore the combination of this + * date-time and the 'before' offset will never occur. + *

+ * The combination of the 'before' date-time and offset represents the same instant + * as the 'after' date-time and offset. + */ + // @ts-ignore + public getDateTimeBefore(): java.time.LocalDateTime; + /** + * Gets the local transition date-time, as would be expressed with the 'after' offset. + *

+ * This is the first date-time after the discontinuity, when the new offset applies. + *

+ * The combination of the 'before' date-time and offset represents the same instant + * as the 'after' date-time and offset. + */ + // @ts-ignore + public getDateTimeAfter(): java.time.LocalDateTime; + /** + * Gets the offset before the transition. + *

+ * This is the offset in use before the instant of the transition. + */ + // @ts-ignore + public getOffsetBefore(): java.time.ZoneOffset; + /** + * Gets the offset after the transition. + *

+ * This is the offset in use on and after the instant of the transition. + */ + // @ts-ignore + public getOffsetAfter(): java.time.ZoneOffset; + /** + * Gets the duration of the transition. + *

+ * In most cases, the transition duration is one hour, however this is not always the case. + * The duration will be positive for a gap and negative for an overlap. + * Time-zones are second-based, so the nanosecond part of the duration will be zero. + */ + // @ts-ignore + public getDuration(): java.time.Duration; + /** + * Does this transition represent a gap in the local time-line. + *

+ * Gaps occur where there are local date-times that simply do not exist. + * An example would be when the offset changes from {@code +01:00} to {@code +02:00}. + * This might be described as 'the clocks will move forward one hour tonight at 1am'. + */ + // @ts-ignore + public isGap(): boolean; + /** + * Does this transition represent an overlap in the local time-line. + *

+ * Overlaps occur where there are local date-times that exist twice. + * An example would be when the offset changes from {@code +02:00} to {@code +01:00}. + * This might be described as 'the clocks will move back one hour tonight at 2am'. + */ + // @ts-ignore + public isOverlap(): boolean; + /** + * Checks if the specified offset is valid during this transition. + *

+ * This checks to see if the given offset will be valid at some point in the transition. + * A gap will always return false. + * An overlap will return true if the offset is either the before or after offset. + */ + // @ts-ignore + public isValidOffset(offset: java.time.ZoneOffset): boolean; + /** + * Compares this transition to another based on the transition instant. + *

+ * This compares the instants of each transition. + * The offsets are ignored, making this order inconsistent with equals. + */ + // @ts-ignore + public compareTo(transition: java.time.zone.ZoneOffsetTransition): number; + /** + * Checks if this object equals another. + *

+ * The entire state of the object is compared. + */ + // @ts-ignore + public equals(other: java.lang.Object): boolean; + /** + * Returns a suitable hash code. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns a string describing this object. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.zone.ZoneOffsetTransitionRule.TimeDefinition.d.ts b/packages/types/dist/typings/jdk/java.time.zone.ZoneOffsetTransitionRule.TimeDefinition.d.ts new file mode 100644 index 00000000..f0557fa7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.zone.ZoneOffsetTransitionRule.TimeDefinition.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace zone { + namespace ZoneOffsetTransitionRule { + // @ts-ignore + class TimeDefinition extends java.lang.Enum { + // @ts-ignore + public static UTC: java.time.zone.ZoneOffsetTransitionRule.TimeDefinition; + // @ts-ignore + public static WALL: java.time.zone.ZoneOffsetTransitionRule.TimeDefinition; + // @ts-ignore + public static STANDARD: java.time.zone.ZoneOffsetTransitionRule.TimeDefinition; + // @ts-ignore + public static values(): java.time.zone.ZoneOffsetTransitionRule.TimeDefinition[]; + // @ts-ignore + public static valueOf(name: string): java.time.zone.ZoneOffsetTransitionRule.TimeDefinition; + /** + * Converts the specified local date-time to the local date-time actually + * seen on a wall clock. + *

+ * This method converts using the type of this enum. + * The output is defined relative to the 'before' offset of the transition. + *

+ * The UTC type uses the UTC offset. + * The STANDARD type uses the standard offset. + * The WALL type returns the input date-time. + * The result is intended for use with the wall-offset. + */ + // @ts-ignore + public createDateTime(dateTime: java.time.LocalDateTime, standardOffset: java.time.ZoneOffset, wallOffset: java.time.ZoneOffset): java.time.LocalDateTime; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.zone.ZoneOffsetTransitionRule.d.ts b/packages/types/dist/typings/jdk/java.time.zone.ZoneOffsetTransitionRule.d.ts new file mode 100644 index 00000000..eed658a3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.zone.ZoneOffsetTransitionRule.d.ts @@ -0,0 +1,120 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace zone { + // @ts-ignore + class ZoneOffsetTransitionRule extends java.lang.Object { + /** + * Obtains an instance defining the yearly rule to create transitions between two offsets. + *

+ * Applications should normally obtain an instance from {@link ZoneRules}. + * This factory is only intended for use when creating {@link ZoneRules}. + */ + // @ts-ignore + public static of(month: java.time.Month, dayOfMonthIndicator: number, dayOfWeek: java.time.DayOfWeek, time: java.time.LocalTime, timeEndOfDay: boolean, timeDefnition: java.time.zone.ZoneOffsetTransitionRule.TimeDefinition, standardOffset: java.time.ZoneOffset, offsetBefore: java.time.ZoneOffset, offsetAfter: java.time.ZoneOffset): java.time.zone.ZoneOffsetTransitionRule; + /** + * Gets the month of the transition. + *

+ * If the rule defines an exact date then the month is the month of that date. + *

+ * If the rule defines a week where the transition might occur, then the month + * if the month of either the earliest or latest possible date of the cutover. + */ + // @ts-ignore + public getMonth(): java.time.Month; + /** + * Gets the indicator of the day-of-month of the transition. + *

+ * If the rule defines an exact date then the day is the month of that date. + *

+ * If the rule defines a week where the transition might occur, then the day + * defines either the start of the end of the transition week. + *

+ * If the value is positive, then it represents a normal day-of-month, and is the + * earliest possible date that the transition can be. + * The date may refer to 29th February which should be treated as 1st March in non-leap years. + *

+ * If the value is negative, then it represents the number of days back from the + * end of the month where {@code -1} is the last day of the month. + * In this case, the day identified is the latest possible date that the transition can be. + */ + // @ts-ignore + public getDayOfMonthIndicator(): number; + /** + * Gets the day-of-week of the transition. + *

+ * If the rule defines an exact date then this returns null. + *

+ * If the rule defines a week where the cutover might occur, then this method + * returns the day-of-week that the month-day will be adjusted to. + * If the day is positive then the adjustment is later. + * If the day is negative then the adjustment is earlier. + */ + // @ts-ignore + public getDayOfWeek(): java.time.DayOfWeek; + /** + * Gets the local time of day of the transition which must be checked with + * {@link #isMidnightEndOfDay()}. + *

+ * The time is converted into an instant using the time definition. + */ + // @ts-ignore + public getLocalTime(): java.time.LocalTime; + /** + * Is the transition local time midnight at the end of day. + *

+ * The transition may be represented as occurring at 24:00. + */ + // @ts-ignore + public isMidnightEndOfDay(): boolean; + /** + * Gets the time definition, specifying how to convert the time to an instant. + *

+ * The local time can be converted to an instant using the standard offset, + * the wall offset or UTC. + */ + // @ts-ignore + public getTimeDefinition(): java.time.zone.ZoneOffsetTransitionRule.TimeDefinition; + /** + * Gets the standard offset in force at the transition. + */ + // @ts-ignore + public getStandardOffset(): java.time.ZoneOffset; + /** + * Gets the offset before the transition. + */ + // @ts-ignore + public getOffsetBefore(): java.time.ZoneOffset; + /** + * Gets the offset after the transition. + */ + // @ts-ignore + public getOffsetAfter(): java.time.ZoneOffset; + /** + * Creates a transition instance for the specified year. + *

+ * Calculations are performed using the ISO-8601 chronology. + */ + // @ts-ignore + public createTransition(year: number): java.time.zone.ZoneOffsetTransition; + /** + * Checks if this object equals another. + *

+ * The entire state of the object is compared. + */ + // @ts-ignore + public equals(otherRule: java.lang.Object): boolean; + /** + * Returns a suitable hash code. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns a string describing this object. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.zone.ZoneRules.d.ts b/packages/types/dist/typings/jdk/java.time.zone.ZoneRules.d.ts new file mode 100644 index 00000000..c5df33cf --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.zone.ZoneRules.d.ts @@ -0,0 +1,252 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace zone { + // @ts-ignore + class ZoneRules extends java.lang.Object { + /** + * Obtains an instance of a ZoneRules. + */ + // @ts-ignore + public static of(baseStandardOffset: java.time.ZoneOffset, baseWallOffset: java.time.ZoneOffset, standardOffsetTransitionList: java.util.List, transitionList: java.util.List, lastRules: java.util.List): java.time.zone.ZoneRules; + /** + * Obtains an instance of ZoneRules that has fixed zone rules. + */ + // @ts-ignore + public static of(offset: java.time.ZoneOffset): java.time.zone.ZoneRules; + /** + * Checks of the zone rules are fixed, such that the offset never varies. + */ + // @ts-ignore + public isFixedOffset(): boolean; + /** + * Gets the offset applicable at the specified instant in these rules. + *

+ * The mapping from an instant to an offset is simple, there is only + * one valid offset for each instant. + * This method returns that offset. + */ + // @ts-ignore + public getOffset(instant: java.time.Instant): java.time.ZoneOffset; + /** + * Gets a suitable offset for the specified local date-time in these rules. + *

+ * The mapping from a local date-time to an offset is not straightforward. + * There are three cases: + *

    + *
  • Normal, with one valid offset. For the vast majority of the year, the normal + * case applies, where there is a single valid offset for the local date-time.
  • + *
  • Gap, with zero valid offsets. This is when clocks jump forward typically + * due to the spring daylight savings change from "winter" to "summer". + * In a gap there are local date-time values with no valid offset.
  • + *
  • Overlap, with two valid offsets. This is when clocks are set back typically + * due to the autumn daylight savings change from "summer" to "winter". + * In an overlap there are local date-time values with two valid offsets.
  • + *
+ * Thus, for any given local date-time there can be zero, one or two valid offsets. + * This method returns the single offset in the Normal case, and in the Gap or Overlap + * case it returns the offset before the transition. + *

+ * Since, in the case of Gap and Overlap, the offset returned is a "best" value, rather + * than the "correct" value, it should be treated with care. Applications that care + * about the correct offset should use a combination of this method, + * {@link #getValidOffsets(LocalDateTime)} and {@link #getTransition(LocalDateTime)}. + */ + // @ts-ignore + public getOffset(localDateTime: java.time.LocalDateTime): java.time.ZoneOffset; + /** + * Gets the offset applicable at the specified local date-time in these rules. + *

+ * The mapping from a local date-time to an offset is not straightforward. + * There are three cases: + *

    + *
  • Normal, with one valid offset. For the vast majority of the year, the normal + * case applies, where there is a single valid offset for the local date-time.
  • + *
  • Gap, with zero valid offsets. This is when clocks jump forward typically + * due to the spring daylight savings change from "winter" to "summer". + * In a gap there are local date-time values with no valid offset.
  • + *
  • Overlap, with two valid offsets. This is when clocks are set back typically + * due to the autumn daylight savings change from "summer" to "winter". + * In an overlap there are local date-time values with two valid offsets.
  • + *
+ * Thus, for any given local date-time there can be zero, one or two valid offsets. + * This method returns that list of valid offsets, which is a list of size 0, 1 or 2. + * In the case where there are two offsets, the earlier offset is returned at index 0 + * and the later offset at index 1. + *

+ * There are various ways to handle the conversion from a {@code LocalDateTime}. + * One technique, using this method, would be: + *

+                 * List<ZoneOffset> validOffsets = rules.getOffset(localDT);
+                 * if (validOffsets.size() == 1) {
+                 * // Normal case: only one valid offset
+                 * zoneOffset = validOffsets.get(0);
+                 * } else {
+                 * // Gap or Overlap: determine what to do from transition (which will be non-null)
+                 * ZoneOffsetTransition trans = rules.getTransition(localDT);
+                 * }
+                 * 
+ *

+ * In theory, it is possible for there to be more than two valid offsets. + * This would happen if clocks to be put back more than once in quick succession. + * This has never happened in the history of time-zones and thus has no special handling. + * However, if it were to happen, then the list would return more than 2 entries. + */ + // @ts-ignore + public getValidOffsets(localDateTime: java.time.LocalDateTime): java.util.List; + /** + * Gets the offset transition applicable at the specified local date-time in these rules. + *

+ * The mapping from a local date-time to an offset is not straightforward. + * There are three cases: + *

    + *
  • Normal, with one valid offset. For the vast majority of the year, the normal + * case applies, where there is a single valid offset for the local date-time.
  • + *
  • Gap, with zero valid offsets. This is when clocks jump forward typically + * due to the spring daylight savings change from "winter" to "summer". + * In a gap there are local date-time values with no valid offset.
  • + *
  • Overlap, with two valid offsets. This is when clocks are set back typically + * due to the autumn daylight savings change from "summer" to "winter". + * In an overlap there are local date-time values with two valid offsets.
  • + *
+ * A transition is used to model the cases of a Gap or Overlap. + * The Normal case will return null. + *

+ * There are various ways to handle the conversion from a {@code LocalDateTime}. + * One technique, using this method, would be: + *

+                 * ZoneOffsetTransition trans = rules.getTransition(localDT);
+                 * if (trans == null) {
+                 * // Gap or Overlap: determine what to do from transition
+                 * } else {
+                 * // Normal case: only one valid offset
+                 * zoneOffset = rule.getOffset(localDT);
+                 * }
+                 * 
+ */ + // @ts-ignore + public getTransition(localDateTime: java.time.LocalDateTime): java.time.zone.ZoneOffsetTransition; + /** + * Gets the standard offset for the specified instant in this zone. + *

+ * This provides access to historic information on how the standard offset + * has changed over time. + * The standard offset is the offset before any daylight saving time is applied. + * This is typically the offset applicable during winter. + */ + // @ts-ignore + public getStandardOffset(instant: java.time.Instant): java.time.ZoneOffset; + /** + * Gets the amount of daylight savings in use for the specified instant in this zone. + *

+ * This provides access to historic information on how the amount of daylight + * savings has changed over time. + * This is the difference between the standard offset and the actual offset. + * Typically the amount is zero during winter and one hour during summer. + * Time-zones are second-based, so the nanosecond part of the duration will be zero. + *

+ * This default implementation calculates the duration from the + * {@link #getOffset(java.time.Instant) actual} and + * {@link #getStandardOffset(java.time.Instant) standard} offsets. + */ + // @ts-ignore + public getDaylightSavings(instant: java.time.Instant): java.time.Duration; + /** + * Checks if the specified instant is in daylight savings. + *

+ * This checks if the standard offset and the actual offset are the same + * for the specified instant. + * If they are not, it is assumed that daylight savings is in operation. + *

+ * This default implementation compares the {@link #getOffset(java.time.Instant) actual} + * and {@link #getStandardOffset(java.time.Instant) standard} offsets. + */ + // @ts-ignore + public isDaylightSavings(instant: java.time.Instant): boolean; + /** + * Checks if the offset date-time is valid for these rules. + *

+ * To be valid, the local date-time must not be in a gap and the offset + * must match one of the valid offsets. + *

+ * This default implementation checks if {@link #getValidOffsets(java.time.LocalDateTime)} + * contains the specified offset. + */ + // @ts-ignore + public isValidOffset(localDateTime: java.time.LocalDateTime, offset: java.time.ZoneOffset): boolean; + /** + * Gets the next transition after the specified instant. + *

+ * This returns details of the next transition after the specified instant. + * For example, if the instant represents a point where "Summer" daylight savings time + * applies, then the method will return the transition to the next "Winter" time. + */ + // @ts-ignore + public nextTransition(instant: java.time.Instant): java.time.zone.ZoneOffsetTransition; + /** + * Gets the previous transition before the specified instant. + *

+ * This returns details of the previous transition after the specified instant. + * For example, if the instant represents a point where "summer" daylight saving time + * applies, then the method will return the transition from the previous "winter" time. + */ + // @ts-ignore + public previousTransition(instant: java.time.Instant): java.time.zone.ZoneOffsetTransition; + /** + * Gets the complete list of fully defined transitions. + *

+ * The complete set of transitions for this rules instance is defined by this method + * and {@link #getTransitionRules()}. This method returns those transitions that have + * been fully defined. These are typically historical, but may be in the future. + *

+ * The list will be empty for fixed offset rules and for any time-zone where there has + * only ever been a single offset. The list will also be empty if the transition rules are unknown. + */ + // @ts-ignore + public getTransitions(): java.util.List; + /** + * Gets the list of transition rules for years beyond those defined in the transition list. + *

+ * The complete set of transitions for this rules instance is defined by this method + * and {@link #getTransitions()}. This method returns instances of {@link ZoneOffsetTransitionRule} + * that define an algorithm for when transitions will occur. + *

+ * For any given {@code ZoneRules}, this list contains the transition rules for years + * beyond those years that have been fully defined. These rules typically refer to future + * daylight saving time rule changes. + *

+ * If the zone defines daylight savings into the future, then the list will normally + * be of size two and hold information about entering and exiting daylight savings. + * If the zone does not have daylight savings, or information about future changes + * is uncertain, then the list will be empty. + *

+ * The list will be empty for fixed offset rules and for any time-zone where there is no + * daylight saving time. The list will also be empty if the transition rules are unknown. + */ + // @ts-ignore + public getTransitionRules(): java.util.List; + /** + * Checks if this set of rules equals another. + *

+ * Two rule sets are equal if they will always result in the same output + * for any given input instant or local date-time. + * Rules from two different groups may return false even if they are in fact the same. + *

+ * This definition should result in implementations comparing their entire state. + */ + // @ts-ignore + public equals(otherRules: java.lang.Object): boolean; + /** + * Returns a suitable hash code given the definition of {@code #equals}. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns a string describing this object. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.zone.ZoneRulesException.d.ts b/packages/types/dist/typings/jdk/java.time.zone.ZoneRulesException.d.ts new file mode 100644 index 00000000..82d982af --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.zone.ZoneRulesException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace zone { + // @ts-ignore + class ZoneRulesException extends java.time.DateTimeException { + /** + * Constructs a new date-time exception with the specified message. + */ + // @ts-ignore + constructor(message: string) + /** + * Constructs a new date-time exception with the specified message and cause. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.time.zone.ZoneRulesProvider.d.ts b/packages/types/dist/typings/jdk/java.time.zone.ZoneRulesProvider.d.ts new file mode 100644 index 00000000..7a2a4fb7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.time.zone.ZoneRulesProvider.d.ts @@ -0,0 +1,157 @@ +// @ts-nocheck +declare namespace java { + namespace time { + namespace zone { + // @ts-ignore + abstract class ZoneRulesProvider extends java.lang.Object { + /** + * Constructor. + */ + // @ts-ignore + constructor() + /** + * Gets the set of available zone IDs. + *

+ * These IDs are the string form of a {@link ZoneId}. + */ + // @ts-ignore + public static getAvailableZoneIds(): java.util.Set; + /** + * Gets the rules for the zone ID. + *

+ * This returns the latest available rules for the zone ID. + *

+ * This method relies on time-zone data provider files that are configured. + * These are loaded using a {@code ServiceLoader}. + *

+ * The caching flag is designed to allow provider implementations to + * prevent the rules being cached in {@code ZoneId}. + * Under normal circumstances, the caching of zone rules is highly desirable + * as it will provide greater performance. However, there is a use case where + * the caching would not be desirable, see {@link #provideRules}. + */ + // @ts-ignore + public static getRules(zoneId: string, forCaching: boolean): java.time.zone.ZoneRules; + /** + * Gets the history of rules for the zone ID. + *

+ * Time-zones are defined by governments and change frequently. + * This method allows applications to find the history of changes to the + * rules for a single zone ID. The map is keyed by a string, which is the + * version string associated with the rules. + *

+ * The exact meaning and format of the version is provider specific. + * The version must follow lexicographical order, thus the returned map will + * be order from the oldest known rules to the newest available rules. + * The default 'TZDB' group uses version numbering consisting of the year + * followed by a letter, such as '2009e' or '2012f'. + *

+ * Implementations must provide a result for each valid zone ID, however + * they do not have to provide a history of rules. + * Thus the map will always contain one element, and will only contain more + * than one element if historical rule information is available. + */ + // @ts-ignore + public static getVersions(zoneId: string): java.util.NavigableMap; + /** + * Registers a zone rules provider. + *

+ * This adds a new provider to those currently available. + * A provider supplies rules for one or more zone IDs. + * A provider cannot be registered if it supplies a zone ID that has already been + * registered. See the notes on time-zone IDs in {@link ZoneId}, especially + * the section on using the concept of a "group" to make IDs unique. + *

+ * To ensure the integrity of time-zones already created, there is no way + * to deregister providers. + */ + // @ts-ignore + public static registerProvider(provider: java.time.zone.ZoneRulesProvider): void; + /** + * Refreshes the rules from the underlying data provider. + *

+ * This method allows an application to request that the providers check + * for any updates to the provided rules. + * After calling this method, the offset stored in any {@link ZonedDateTime} + * may be invalid for the zone ID. + *

+ * Dynamic update of rules is a complex problem and most applications + * should not use this method or dynamic rules. + * To achieve dynamic rules, a provider implementation will have to be written + * as per the specification of this class. + * In addition, instances of {@code ZoneRules} must not be cached in the + * application as they will become stale. However, the boolean flag on + * {@link #provideRules(String, boolean)} allows provider implementations + * to control the caching of {@code ZoneId}, potentially ensuring that + * all objects in the system see the new rules. + * Note that there is likely to be a cost in performance of a dynamic rules + * provider. Note also that no dynamic rules provider is in this specification. + */ + // @ts-ignore + public static refresh(): boolean; + /** + * SPI method to get the available zone IDs. + *

+ * This obtains the IDs that this {@code ZoneRulesProvider} provides. + * A provider should provide data for at least one zone ID. + *

+ * The returned zone IDs remain available and valid for the lifetime of the application. + * A dynamic provider may increase the set of IDs as more data becomes available. + */ + // @ts-ignore + protected abstract provideZoneIds(): java.util.Set; + /** + * SPI method to get the rules for the zone ID. + *

+ * This loads the rules for the specified zone ID. + * The provider implementation must validate that the zone ID is valid and + * available, throwing a {@code ZoneRulesException} if it is not. + * The result of the method in the valid case depends on the caching flag. + *

+ * If the provider implementation is not dynamic, then the result of the + * method must be the non-null set of rules selected by the ID. + *

+ * If the provider implementation is dynamic, then the flag gives the option + * of preventing the returned rules from being cached in {@link ZoneId}. + * When the flag is true, the provider is permitted to return null, where + * null will prevent the rules from being cached in {@code ZoneId}. + * When the flag is false, the provider must return non-null rules. + */ + // @ts-ignore + protected abstract provideRules(zoneId: string, forCaching: boolean): java.time.zone.ZoneRules; + /** + * SPI method to get the history of rules for the zone ID. + *

+ * This returns a map of historical rules keyed by a version string. + * The exact meaning and format of the version is provider specific. + * The version must follow lexicographical order, thus the returned map will + * be order from the oldest known rules to the newest available rules. + * The default 'TZDB' group uses version numbering consisting of the year + * followed by a letter, such as '2009e' or '2012f'. + *

+ * Implementations must provide a result for each valid zone ID, however + * they do not have to provide a history of rules. + * Thus the map will contain at least one element, and will only contain + * more than one element if historical rule information is available. + *

+ * The returned versions remain available and valid for the lifetime of the application. + * A dynamic provider may increase the set of versions as more data becomes available. + */ + // @ts-ignore + protected abstract provideVersions(zoneId: string): java.util.NavigableMap; + /** + * SPI method to refresh the rules from the underlying data provider. + *

+ * This method provides the opportunity for a provider to dynamically + * recheck the underlying data provider to find the latest rules. + * This could be used to load new rules without stopping the JVM. + * Dynamic behavior is entirely optional and most providers do not support it. + *

+ * This implementation returns false. + */ + // @ts-ignore + protected provideRefresh(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.AbstractCollection.d.ts b/packages/types/dist/typings/jdk/java.util.AbstractCollection.d.ts new file mode 100644 index 00000000..687024a4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.AbstractCollection.d.ts @@ -0,0 +1,167 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + abstract class AbstractCollection extends java.lang.Object { + /** + * Sole constructor. (For invocation by subclass constructors, typically + * implicit.) + */ + // @ts-ignore + constructor() + /** + * Returns an iterator over the elements contained in this collection. + */ + // @ts-ignore + public abstract iterator(): java.util.Iterator; + // @ts-ignore + public abstract size(): number; + /** + * {@inheritDoc} + *

This implementation returns size() == 0. + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * {@inheritDoc} + *

This implementation iterates over the elements in the collection, + * checking each element in turn for equality with the specified element. + */ + // @ts-ignore + public contains(o: java.lang.Object): boolean; + /** + * {@inheritDoc} + *

This implementation returns an array containing all the elements + * returned by this collection's iterator, in the same order, stored in + * consecutive elements of the array, starting with index {@code 0}. + * The length of the returned array is equal to the number of elements + * returned by the iterator, even if the size of this collection changes + * during iteration, as might happen if the collection permits + * concurrent modification during iteration. The {@code size} method is + * called only as an optimization hint; the correct result is returned + * even if the iterator returns a different number of elements. + *

This method is equivalent to: + *

 {@code
+             * List list = new ArrayList(size());
+             * for (E e : this)
+             * list.add(e);
+             * return list.toArray();
+             * }
+ */ + // @ts-ignore + public toArray(): java.lang.Object[]; + /** + * {@inheritDoc} + *

This implementation returns an array containing all the elements + * returned by this collection's iterator in the same order, stored in + * consecutive elements of the array, starting with index {@code 0}. + * If the number of elements returned by the iterator is too large to + * fit into the specified array, then the elements are returned in a + * newly allocated array with length equal to the number of elements + * returned by the iterator, even if the size of this collection + * changes during iteration, as might happen if the collection permits + * concurrent modification during iteration. The {@code size} method is + * called only as an optimization hint; the correct result is returned + * even if the iterator returns a different number of elements. + *

This method is equivalent to: + *

 {@code
+             * List list = new ArrayList(size());
+             * for (E e : this)
+             * list.add(e);
+             * return list.toArray(a);
+             * }
+ */ + // @ts-ignore + public toArray(a: java.lang.Object): java.lang.Object[]; + /** + * {@inheritDoc} + *

This implementation always throws an + * UnsupportedOperationException. + */ + // @ts-ignore + public add(e: java.lang.Object): boolean; + /** + * {@inheritDoc} + *

This implementation iterates over the collection looking for the + * specified element. If it finds the element, it removes the element + * from the collection using the iterator's remove method. + *

Note that this implementation throws an + * UnsupportedOperationException if the iterator returned by this + * collection's iterator method does not implement the remove + * method and this collection contains the specified object. + */ + // @ts-ignore + public remove(o: java.lang.Object): boolean; + /** + * {@inheritDoc} + *

This implementation iterates over the specified collection, + * checking each element returned by the iterator in turn to see + * if it's contained in this collection. If all elements are so + * contained true is returned, otherwise false. + */ + // @ts-ignore + public containsAll(c: java.util.Collection): boolean; + /** + * {@inheritDoc} + *

This implementation iterates over the specified collection, and adds + * each object returned by the iterator to this collection, in turn. + *

Note that this implementation will throw an + * UnsupportedOperationException unless add is + * overridden (assuming the specified collection is non-empty). + */ + // @ts-ignore + public addAll(c: java.util.Collection): boolean; + /** + * {@inheritDoc} + *

This implementation iterates over this collection, checking each + * element returned by the iterator in turn to see if it's contained + * in the specified collection. If it's so contained, it's removed from + * this collection with the iterator's remove method. + *

Note that this implementation will throw an + * UnsupportedOperationException if the iterator returned by the + * iterator method does not implement the remove method + * and this collection contains one or more elements in common with the + * specified collection. + */ + // @ts-ignore + public removeAll(c: java.util.Collection): boolean; + /** + * {@inheritDoc} + *

This implementation iterates over this collection, checking each + * element returned by the iterator in turn to see if it's contained + * in the specified collection. If it's not so contained, it's removed + * from this collection with the iterator's remove method. + *

Note that this implementation will throw an + * UnsupportedOperationException if the iterator returned by the + * iterator method does not implement the remove method + * and this collection contains one or more elements not present in the + * specified collection. + */ + // @ts-ignore + public retainAll(c: java.util.Collection): boolean; + /** + * {@inheritDoc} + *

This implementation iterates over this collection, removing each + * element using the Iterator.remove operation. Most + * implementations will probably choose to override this method for + * efficiency. + *

Note that this implementation will throw an + * UnsupportedOperationException if the iterator returned by this + * collection's iterator method does not implement the + * remove method and this collection is non-empty. + */ + // @ts-ignore + public clear(): void; + /** + * Returns a string representation of this collection. The string + * representation consists of a list of the collection's elements in the + * order they are returned by its iterator, enclosed in square brackets + * ("[]"). Adjacent elements are separated by the characters + * ", " (comma and space). Elements are converted to strings as + * by {@link String#valueOf(Object)}. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.AbstractList.d.ts b/packages/types/dist/typings/jdk/java.util.AbstractList.d.ts new file mode 100644 index 00000000..49b6a92d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.AbstractList.d.ts @@ -0,0 +1,213 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + abstract class AbstractList extends java.util.AbstractCollection { + /** + * Sole constructor. (For invocation by subclass constructors, typically + * implicit.) + */ + // @ts-ignore + constructor() + // @ts-ignore + protected modCount: number; + /** + * Appends the specified element to the end of this list (optional + * operation). + *

Lists that support this operation may place limitations on what + * elements may be added to this list. In particular, some + * lists will refuse to add null elements, and others will impose + * restrictions on the type of elements that may be added. List + * classes should clearly specify in their documentation any restrictions + * on what elements may be added. + *

This implementation calls {@code add(size(), e)}. + *

Note that this implementation throws an + * {@code UnsupportedOperationException} unless + * {@link #add(int, Object) add(int, E)} is overridden. + */ + // @ts-ignore + public add(e: java.lang.Object): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public abstract get(index: number): java.lang.Object; + /** + * {@inheritDoc} + *

This implementation always throws an + * {@code UnsupportedOperationException}. + */ + // @ts-ignore + public set(index: number, element: java.lang.Object): java.lang.Object; + /** + * {@inheritDoc} + *

This implementation always throws an + * {@code UnsupportedOperationException}. + */ + // @ts-ignore + public add(index: number, element: java.lang.Object): void; + /** + * {@inheritDoc} + *

This implementation always throws an + * {@code UnsupportedOperationException}. + */ + // @ts-ignore + public remove(index: number): java.lang.Object; + /** + * {@inheritDoc} + *

This implementation first gets a list iterator (with + * {@code listIterator()}). Then, it iterates over the list until the + * specified element is found or the end of the list is reached. + */ + // @ts-ignore + public indexOf(o: java.lang.Object): number; + /** + * {@inheritDoc} + *

This implementation first gets a list iterator that points to the end + * of the list (with {@code listIterator(size())}). Then, it iterates + * backwards over the list until the specified element is found, or the + * beginning of the list is reached. + */ + // @ts-ignore + public lastIndexOf(o: java.lang.Object): number; + /** + * Removes all of the elements from this list (optional operation). + * The list will be empty after this call returns. + *

This implementation calls {@code removeRange(0, size())}. + *

Note that this implementation throws an + * {@code UnsupportedOperationException} unless {@code remove(int + * index)} or {@code removeRange(int fromIndex, int toIndex)} is + * overridden. + */ + // @ts-ignore + public clear(): void; + /** + * {@inheritDoc} + *

This implementation gets an iterator over the specified collection + * and iterates over it, inserting the elements obtained from the + * iterator into this list at the appropriate position, one at a time, + * using {@code add(int, E)}. + * Many implementations will override this method for efficiency. + *

Note that this implementation throws an + * {@code UnsupportedOperationException} unless + * {@link #add(int, Object) add(int, E)} is overridden. + */ + // @ts-ignore + public addAll(index: number, c: java.util.Collection): boolean; + /** + * Returns an iterator over the elements in this list in proper sequence. + *

This implementation returns a straightforward implementation of the + * iterator interface, relying on the backing list's {@code size()}, + * {@code get(int)}, and {@code remove(int)} methods. + *

Note that the iterator returned by this method will throw an + * {@link UnsupportedOperationException} in response to its + * {@code remove} method unless the list's {@code remove(int)} method is + * overridden. + *

This implementation can be made to throw runtime exceptions in the + * face of concurrent modification, as described in the specification + * for the (protected) {@link #modCount} field. + */ + // @ts-ignore + public iterator(): java.util.Iterator; + /** + * {@inheritDoc} + *

This implementation returns {@code listIterator(0)}. + */ + // @ts-ignore + public listIterator(): java.util.ListIterator; + /** + * {@inheritDoc} + *

This implementation returns a straightforward implementation of the + * {@code ListIterator} interface that extends the implementation of the + * {@code Iterator} interface returned by the {@code iterator()} method. + * The {@code ListIterator} implementation relies on the backing list's + * {@code get(int)}, {@code set(int, E)}, {@code add(int, E)} + * and {@code remove(int)} methods. + *

Note that the list iterator returned by this implementation will + * throw an {@link UnsupportedOperationException} in response to its + * {@code remove}, {@code set} and {@code add} methods unless the + * list's {@code remove(int)}, {@code set(int, E)}, and + * {@code add(int, E)} methods are overridden. + *

This implementation can be made to throw runtime exceptions in the + * face of concurrent modification, as described in the specification for + * the (protected) {@link #modCount} field. + */ + // @ts-ignore + public listIterator(index: number): java.util.ListIterator; + /** + * {@inheritDoc} + *

This implementation returns a list that subclasses + * {@code AbstractList}. The subclass stores, in private fields, the + * offset of the subList within the backing list, the size of the subList + * (which can change over its lifetime), and the expected + * {@code modCount} value of the backing list. There are two variants + * of the subclass, one of which implements {@code RandomAccess}. + * If this list implements {@code RandomAccess} the returned list will + * be an instance of the subclass that implements {@code RandomAccess}. + *

The subclass's {@code set(int, E)}, {@code get(int)}, + * {@code add(int, E)}, {@code remove(int)}, {@code addAll(int, + * Collection)} and {@code removeRange(int, int)} methods all + * delegate to the corresponding methods on the backing abstract list, + * after bounds-checking the index and adjusting for the offset. The + * {@code addAll(Collection c)} method merely returns {@code addAll(size, + * c)}. + *

The {@code listIterator(int)} method returns a "wrapper object" + * over a list iterator on the backing list, which is created with the + * corresponding method on the backing list. The {@code iterator} method + * merely returns {@code listIterator()}, and the {@code size} method + * merely returns the subclass's {@code size} field. + *

All methods first check to see if the actual {@code modCount} of + * the backing list is equal to its expected value, and throw a + * {@code ConcurrentModificationException} if it is not. + */ + // @ts-ignore + public subList(fromIndex: number, toIndex: number): java.util.List; + /** + * Compares the specified object with this list for equality. Returns + * {@code true} if and only if the specified object is also a list, both + * lists have the same size, and all corresponding pairs of elements in + * the two lists are equal. (Two elements {@code e1} and + * {@code e2} are equal if {@code (e1==null ? e2==null : + * e1.equals(e2))}.) In other words, two lists are defined to be + * equal if they contain the same elements in the same order.

+ * This implementation first checks if the specified object is this + * list. If so, it returns {@code true}; if not, it checks if the + * specified object is a list. If not, it returns {@code false}; if so, + * it iterates over both lists, comparing corresponding pairs of elements. + * If any comparison returns {@code false}, this method returns + * {@code false}. If either iterator runs out of elements before the + * other it returns {@code false} (as the lists are of unequal length); + * otherwise it returns {@code true} when the iterations complete. + */ + // @ts-ignore + public equals(o: java.lang.Object): boolean; + /** + * Returns the hash code value for this list. + *

This implementation uses exactly the code that is used to define the + * list hash function in the documentation for the {@link List#hashCode} + * method. + */ + // @ts-ignore + public hashCode(): number; + /** + * Removes from this list all of the elements whose index is between + * {@code fromIndex}, inclusive, and {@code toIndex}, exclusive. + * Shifts any succeeding elements to the left (reduces their index). + * This call shortens the list by {@code (toIndex - fromIndex)} elements. + * (If {@code toIndex==fromIndex}, this operation has no effect.) + *

This method is called by the {@code clear} operation on this list + * and its subLists. Overriding this method to take advantage of + * the internals of the list implementation can substantially + * improve the performance of the {@code clear} operation on this list + * and its subLists. + *

This implementation gets a list iterator positioned before + * {@code fromIndex}, and repeatedly calls {@code ListIterator.next} + * followed by {@code ListIterator.remove} until the entire range has + * been removed. Note: if {@code ListIterator.remove} requires linear + * time, this implementation requires quadratic time. + */ + // @ts-ignore + protected removeRange(fromIndex: number, toIndex: number): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.AbstractMap.SimpleEntry.d.ts b/packages/types/dist/typings/jdk/java.util.AbstractMap.SimpleEntry.d.ts new file mode 100644 index 00000000..8c2b99f7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.AbstractMap.SimpleEntry.d.ts @@ -0,0 +1,76 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace AbstractMap { + // @ts-ignore + class SimpleEntry extends java.lang.Object { + /** + * Creates an entry representing a mapping from the specified + * key to the specified value. + */ + // @ts-ignore + constructor(key: java.lang.Object, value: java.lang.Object) + /** + * Creates an entry representing the same mapping as the + * specified entry. + */ + // @ts-ignore + constructor(entry: java.util.Map.Entry) + /** + * Returns the key corresponding to this entry. + */ + // @ts-ignore + public getKey(): java.lang.Object; + /** + * Returns the value corresponding to this entry. + */ + // @ts-ignore + public getValue(): java.lang.Object; + /** + * Replaces the value corresponding to this entry with the specified + * value. + */ + // @ts-ignore + public setValue(value: java.lang.Object): java.lang.Object; + /** + * Compares the specified object with this entry for equality. + * Returns {@code true} if the given object is also a map entry and + * the two entries represent the same mapping. More formally, two + * entries {@code e1} and {@code e2} represent the same mapping + * if

+                 * (e1.getKey()==null ?
+                 * e2.getKey()==null :
+                 * e1.getKey().equals(e2.getKey()))
+                 * &&
+                 * (e1.getValue()==null ?
+                 * e2.getValue()==null :
+                 * e1.getValue().equals(e2.getValue()))
+ * This ensures that the {@code equals} method works properly across + * different implementations of the {@code Map.Entry} interface. + */ + // @ts-ignore + public equals(o: java.lang.Object): boolean; + /** + * Returns the hash code value for this map entry. The hash code + * of a map entry {@code e} is defined to be:
+                 * (e.getKey()==null   ? 0 : e.getKey().hashCode()) ^
+                 * (e.getValue()==null ? 0 : e.getValue().hashCode())
+ * This ensures that {@code e1.equals(e2)} implies that + * {@code e1.hashCode()==e2.hashCode()} for any two Entries + * {@code e1} and {@code e2}, as required by the general + * contract of {@link Object#hashCode}. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns a String representation of this map entry. This + * implementation returns the string representation of this + * entry's key followed by the equals character ("=") + * followed by the string representation of this entry's value. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.AbstractMap.SimpleImmutableEntry.d.ts b/packages/types/dist/typings/jdk/java.util.AbstractMap.SimpleImmutableEntry.d.ts new file mode 100644 index 00000000..5e3c9ccd --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.AbstractMap.SimpleImmutableEntry.d.ts @@ -0,0 +1,78 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace AbstractMap { + // @ts-ignore + class SimpleImmutableEntry extends java.lang.Object { + /** + * Creates an entry representing a mapping from the specified + * key to the specified value. + */ + // @ts-ignore + constructor(key: java.lang.Object, value: java.lang.Object) + /** + * Creates an entry representing the same mapping as the + * specified entry. + */ + // @ts-ignore + constructor(entry: java.util.Map.Entry) + /** + * Returns the key corresponding to this entry. + */ + // @ts-ignore + public getKey(): java.lang.Object; + /** + * Returns the value corresponding to this entry. + */ + // @ts-ignore + public getValue(): java.lang.Object; + /** + * Replaces the value corresponding to this entry with the specified + * value (optional operation). This implementation simply throws + * UnsupportedOperationException, as this class implements + * an immutable map entry. + */ + // @ts-ignore + public setValue(value: java.lang.Object): java.lang.Object; + /** + * Compares the specified object with this entry for equality. + * Returns {@code true} if the given object is also a map entry and + * the two entries represent the same mapping. More formally, two + * entries {@code e1} and {@code e2} represent the same mapping + * if
+                 * (e1.getKey()==null ?
+                 * e2.getKey()==null :
+                 * e1.getKey().equals(e2.getKey()))
+                 * &&
+                 * (e1.getValue()==null ?
+                 * e2.getValue()==null :
+                 * e1.getValue().equals(e2.getValue()))
+ * This ensures that the {@code equals} method works properly across + * different implementations of the {@code Map.Entry} interface. + */ + // @ts-ignore + public equals(o: java.lang.Object): boolean; + /** + * Returns the hash code value for this map entry. The hash code + * of a map entry {@code e} is defined to be:
+                 * (e.getKey()==null   ? 0 : e.getKey().hashCode()) ^
+                 * (e.getValue()==null ? 0 : e.getValue().hashCode())
+ * This ensures that {@code e1.equals(e2)} implies that + * {@code e1.hashCode()==e2.hashCode()} for any two Entries + * {@code e1} and {@code e2}, as required by the general + * contract of {@link Object#hashCode}. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns a String representation of this map entry. This + * implementation returns the string representation of this + * entry's key followed by the equals character ("=") + * followed by the string representation of this entry's value. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.AbstractMap.d.ts b/packages/types/dist/typings/jdk/java.util.AbstractMap.d.ts new file mode 100644 index 00000000..c6992978 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.AbstractMap.d.ts @@ -0,0 +1,110 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + abstract class AbstractMap extends java.lang.Object { + /** + * Sole constructor. (For invocation by subclass constructors, typically + * implicit.) + */ + // @ts-ignore + constructor() + /** + * {@inheritDoc} + */ + // @ts-ignore + public size(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public containsValue(value: java.lang.Object): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public containsKey(key: java.lang.Object): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public get(key: java.lang.Object): java.lang.Object; + /** + * {@inheritDoc} + */ + // @ts-ignore + public put(key: java.lang.Object, value: java.lang.Object): java.lang.Object; + /** + * {@inheritDoc} + */ + // @ts-ignore + public remove(key: java.lang.Object): java.lang.Object; + /** + * {@inheritDoc} + */ + // @ts-ignore + public putAll(m: java.util.Map): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public clear(): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + public keySet(): java.util.Set; + /** + * {@inheritDoc} + */ + // @ts-ignore + public values(): java.util.Collection; + // @ts-ignore + public abstract entrySet(): java.util.Set; + /** + * Compares the specified object with this map for equality. Returns + * true if the given object is also a map and the two maps + * represent the same mappings. More formally, two maps m1 and + * m2 represent the same mappings if + * m1.entrySet().equals(m2.entrySet()). This ensures that the + * equals method works properly across different implementations + * of the Map interface. + */ + // @ts-ignore + public equals(o: java.lang.Object): boolean; + /** + * Returns the hash code value for this map. The hash code of a map is + * defined to be the sum of the hash codes of each entry in the map's + * entrySet() view. This ensures that m1.equals(m2) + * implies that m1.hashCode()==m2.hashCode() for any two maps + * m1 and m2, as required by the general contract of + * {@link Object#hashCode}. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns a string representation of this map. The string representation + * consists of a list of key-value mappings in the order returned by the + * map's entrySet view's iterator, enclosed in braces + * ("{}"). Adjacent mappings are separated by the characters + * ", " (comma and space). Each key-value mapping is rendered as + * the key followed by an equals sign ("=") followed by the + * associated value. Keys and values are converted to strings as by + * {@link String#valueOf(Object)}. + */ + // @ts-ignore + public toString(): string; + /** + * Returns a shallow copy of this AbstractMap instance: the keys + * and values themselves are not cloned. + */ + // @ts-ignore + protected clone(): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.AbstractQueue.d.ts b/packages/types/dist/typings/jdk/java.util.AbstractQueue.d.ts new file mode 100644 index 00000000..45488121 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.AbstractQueue.d.ts @@ -0,0 +1,65 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + abstract class AbstractQueue extends java.util.AbstractCollection { + /** + * Constructor for use by subclasses. + */ + // @ts-ignore + constructor() + /** + * Inserts the specified element into this queue if it is possible to do so + * immediately without violating capacity restrictions, returning + * true upon success and throwing an IllegalStateException + * if no space is currently available. + *

This implementation returns true if offer succeeds, + * else throws an IllegalStateException. + */ + // @ts-ignore + public add(e: java.lang.Object): boolean; + /** + * Retrieves and removes the head of this queue. This method differs + * from {@link #poll poll} only in that it throws an exception if this + * queue is empty. + *

This implementation returns the result of poll + * unless the queue is empty. + */ + // @ts-ignore + public remove(): java.lang.Object; + /** + * Retrieves, but does not remove, the head of this queue. This method + * differs from {@link #peek peek} only in that it throws an exception if + * this queue is empty. + *

This implementation returns the result of peek + * unless the queue is empty. + */ + // @ts-ignore + public element(): java.lang.Object; + /** + * Removes all of the elements from this queue. + * The queue will be empty after this call returns. + *

This implementation repeatedly invokes {@link #poll poll} until it + * returns null. + */ + // @ts-ignore + public clear(): void; + /** + * Adds all of the elements in the specified collection to this + * queue. Attempts to addAll of a queue to itself result in + * IllegalArgumentException. Further, the behavior of + * this operation is undefined if the specified collection is + * modified while the operation is in progress. + *

This implementation iterates over the specified collection, + * and adds each element returned by the iterator to this + * queue, in turn. A runtime exception encountered while + * trying to add an element (including, in particular, a + * null element) may result in only some of the elements + * having been successfully added when the associated exception is + * thrown. + */ + // @ts-ignore + public addAll(c: java.util.Collection): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.AbstractSequentialList.d.ts b/packages/types/dist/typings/jdk/java.util.AbstractSequentialList.d.ts new file mode 100644 index 00000000..7234f2af --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.AbstractSequentialList.d.ts @@ -0,0 +1,99 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + abstract class AbstractSequentialList extends java.util.AbstractList { + /** + * Sole constructor. (For invocation by subclass constructors, typically + * implicit.) + */ + // @ts-ignore + constructor() + /** + * Returns the element at the specified position in this list. + *

This implementation first gets a list iterator pointing to the + * indexed element (with listIterator(index)). Then, it gets + * the element using ListIterator.next and returns it. + */ + // @ts-ignore + public get(index: number): java.lang.Object; + /** + * Replaces the element at the specified position in this list with the + * specified element (optional operation). + *

This implementation first gets a list iterator pointing to the + * indexed element (with listIterator(index)). Then, it gets + * the current element using ListIterator.next and replaces it + * with ListIterator.set. + *

Note that this implementation will throw an + * UnsupportedOperationException if the list iterator does not + * implement the set operation. + */ + // @ts-ignore + public set(index: number, element: java.lang.Object): java.lang.Object; + /** + * Inserts the specified element at the specified position in this list + * (optional operation). Shifts the element currently at that position + * (if any) and any subsequent elements to the right (adds one to their + * indices). + *

This implementation first gets a list iterator pointing to the + * indexed element (with listIterator(index)). Then, it + * inserts the specified element with ListIterator.add. + *

Note that this implementation will throw an + * UnsupportedOperationException if the list iterator does not + * implement the add operation. + */ + // @ts-ignore + public add(index: number, element: java.lang.Object): void; + /** + * Removes the element at the specified position in this list (optional + * operation). Shifts any subsequent elements to the left (subtracts one + * from their indices). Returns the element that was removed from the + * list. + *

This implementation first gets a list iterator pointing to the + * indexed element (with listIterator(index)). Then, it removes + * the element with ListIterator.remove. + *

Note that this implementation will throw an + * UnsupportedOperationException if the list iterator does not + * implement the remove operation. + */ + // @ts-ignore + public remove(index: number): java.lang.Object; + /** + * Inserts all of the elements in the specified collection into this + * list at the specified position (optional operation). Shifts the + * element currently at that position (if any) and any subsequent + * elements to the right (increases their indices). The new elements + * will appear in this list in the order that they are returned by the + * specified collection's iterator. The behavior of this operation is + * undefined if the specified collection is modified while the + * operation is in progress. (Note that this will occur if the specified + * collection is this list, and it's nonempty.) + *

This implementation gets an iterator over the specified collection and + * a list iterator over this list pointing to the indexed element (with + * listIterator(index)). Then, it iterates over the specified + * collection, inserting the elements obtained from the iterator into this + * list, one at a time, using ListIterator.add followed by + * ListIterator.next (to skip over the added element). + *

Note that this implementation will throw an + * UnsupportedOperationException if the list iterator returned by + * the listIterator method does not implement the add + * operation. + */ + // @ts-ignore + public addAll(index: number, c: java.util.Collection): boolean; + /** + * Returns an iterator over the elements in this list (in proper + * sequence).

+ * This implementation merely returns a list iterator over the list. + */ + // @ts-ignore + public iterator(): java.util.Iterator; + /** + * Returns a list iterator over the elements in this list (in proper + * sequence). + */ + // @ts-ignore + public abstract listIterator(index: number): java.util.ListIterator; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.AbstractSet.d.ts b/packages/types/dist/typings/jdk/java.util.AbstractSet.d.ts new file mode 100644 index 00000000..034a92fb --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.AbstractSet.d.ts @@ -0,0 +1,66 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + abstract class AbstractSet extends java.util.AbstractCollection { + /** + * Sole constructor. (For invocation by subclass constructors, typically + * implicit.) + */ + // @ts-ignore + constructor() + /** + * Compares the specified object with this set for equality. Returns + * true if the given object is also a set, the two sets have + * the same size, and every member of the given set is contained in + * this set. This ensures that the equals method works + * properly across different implementations of the Set + * interface.

+ * This implementation first checks if the specified object is this + * set; if so it returns true. Then, it checks if the + * specified object is a set whose size is identical to the size of + * this set; if not, it returns false. If so, it returns + * containsAll((Collection) o). + */ + // @ts-ignore + public equals(o: java.lang.Object): boolean; + /** + * Returns the hash code value for this set. The hash code of a set is + * defined to be the sum of the hash codes of the elements in the set, + * where the hash code of a null element is defined to be zero. + * This ensures that s1.equals(s2) implies that + * s1.hashCode()==s2.hashCode() for any two sets s1 + * and s2, as required by the general contract of + * {@link Object#hashCode}. + *

This implementation iterates over the set, calling the + * hashCode method on each element in the set, and adding up + * the results. + */ + // @ts-ignore + public hashCode(): number; + /** + * Removes from this set all of its elements that are contained in the + * specified collection (optional operation). If the specified + * collection is also a set, this operation effectively modifies this + * set so that its value is the asymmetric set difference of + * the two sets. + *

This implementation determines which is the smaller of this set + * and the specified collection, by invoking the size + * method on each. If this set has fewer elements, then the + * implementation iterates over this set, checking each element + * returned by the iterator in turn to see if it is contained in + * the specified collection. If it is so contained, it is removed + * from this set with the iterator's remove method. If + * the specified collection has fewer elements, then the + * implementation iterates over the specified collection, removing + * from this set each element returned by the iterator, using this + * set's remove method. + *

Note that this implementation will throw an + * UnsupportedOperationException if the iterator returned by the + * iterator method does not implement the remove method. + */ + // @ts-ignore + public removeAll(c: java.util.Collection): boolean; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.ArrayDeque.d.ts b/packages/types/dist/typings/jdk/java.util.ArrayDeque.d.ts new file mode 100644 index 00000000..3bd79f7e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.ArrayDeque.d.ts @@ -0,0 +1,240 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class ArrayDeque extends java.util.AbstractCollection { + /** + * Constructs an empty array deque with an initial capacity + * sufficient to hold 16 elements. + */ + // @ts-ignore + constructor() + /** + * Constructs an empty array deque with an initial capacity + * sufficient to hold the specified number of elements. + */ + // @ts-ignore + constructor(numElements: number) + /** + * Constructs a deque containing the elements of the specified + * collection, in the order they are returned by the collection's + * iterator. (The first element returned by the collection's + * iterator becomes the first element, or front of the + * deque.) + */ + // @ts-ignore + constructor(c: java.util.Collection) + /** + * Inserts the specified element at the front of this deque. + */ + // @ts-ignore + public addFirst(e: java.lang.Object): void; + /** + * Inserts the specified element at the end of this deque. + *

This method is equivalent to {@link #add}. + */ + // @ts-ignore + public addLast(e: java.lang.Object): void; + /** + * Inserts the specified element at the front of this deque. + */ + // @ts-ignore + public offerFirst(e: java.lang.Object): boolean; + /** + * Inserts the specified element at the end of this deque. + */ + // @ts-ignore + public offerLast(e: java.lang.Object): boolean; + // @ts-ignore + public removeFirst(): java.lang.Object; + // @ts-ignore + public removeLast(): java.lang.Object; + // @ts-ignore + public pollFirst(): java.lang.Object; + // @ts-ignore + public pollLast(): java.lang.Object; + // @ts-ignore + public getFirst(): java.lang.Object; + // @ts-ignore + public getLast(): java.lang.Object; + // @ts-ignore + public peekFirst(): java.lang.Object; + // @ts-ignore + public peekLast(): java.lang.Object; + /** + * Removes the first occurrence of the specified element in this + * deque (when traversing the deque from head to tail). + * If the deque does not contain the element, it is unchanged. + * More formally, removes the first element {@code e} such that + * {@code o.equals(e)} (if such an element exists). + * Returns {@code true} if this deque contained the specified element + * (or equivalently, if this deque changed as a result of the call). + */ + // @ts-ignore + public removeFirstOccurrence(o: java.lang.Object): boolean; + /** + * Removes the last occurrence of the specified element in this + * deque (when traversing the deque from head to tail). + * If the deque does not contain the element, it is unchanged. + * More formally, removes the last element {@code e} such that + * {@code o.equals(e)} (if such an element exists). + * Returns {@code true} if this deque contained the specified element + * (or equivalently, if this deque changed as a result of the call). + */ + // @ts-ignore + public removeLastOccurrence(o: java.lang.Object): boolean; + /** + * Inserts the specified element at the end of this deque. + *

This method is equivalent to {@link #addLast}. + */ + // @ts-ignore + public add(e: java.lang.Object): boolean; + /** + * Inserts the specified element at the end of this deque. + *

This method is equivalent to {@link #offerLast}. + */ + // @ts-ignore + public offer(e: java.lang.Object): boolean; + /** + * Retrieves and removes the head of the queue represented by this deque. + * This method differs from {@link #poll poll} only in that it throws an + * exception if this deque is empty. + *

This method is equivalent to {@link #removeFirst}. + */ + // @ts-ignore + public remove(): java.lang.Object; + /** + * Retrieves and removes the head of the queue represented by this deque + * (in other words, the first element of this deque), or returns + * {@code null} if this deque is empty. + *

This method is equivalent to {@link #pollFirst}. + */ + // @ts-ignore + public poll(): java.lang.Object; + /** + * Retrieves, but does not remove, the head of the queue represented by + * this deque. This method differs from {@link #peek peek} only in + * that it throws an exception if this deque is empty. + *

This method is equivalent to {@link #getFirst}. + */ + // @ts-ignore + public element(): java.lang.Object; + /** + * Retrieves, but does not remove, the head of the queue represented by + * this deque, or returns {@code null} if this deque is empty. + *

This method is equivalent to {@link #peekFirst}. + */ + // @ts-ignore + public peek(): java.lang.Object; + /** + * Pushes an element onto the stack represented by this deque. In other + * words, inserts the element at the front of this deque. + *

This method is equivalent to {@link #addFirst}. + */ + // @ts-ignore + public push(e: java.lang.Object): void; + /** + * Pops an element from the stack represented by this deque. In other + * words, removes and returns the first element of this deque. + *

This method is equivalent to {@link #removeFirst()}. + */ + // @ts-ignore + public pop(): java.lang.Object; + /** + * Returns the number of elements in this deque. + */ + // @ts-ignore + public size(): number; + /** + * Returns {@code true} if this deque contains no elements. + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * Returns an iterator over the elements in this deque. The elements + * will be ordered from first (head) to last (tail). This is the same + * order that elements would be dequeued (via successive calls to + * {@link #remove} or popped (via successive calls to {@link #pop}). + */ + // @ts-ignore + public iterator(): java.util.Iterator; + // @ts-ignore + public descendingIterator(): java.util.Iterator; + /** + * Returns {@code true} if this deque contains the specified element. + * More formally, returns {@code true} if and only if this deque contains + * at least one element {@code e} such that {@code o.equals(e)}. + */ + // @ts-ignore + public contains(o: java.lang.Object): boolean; + /** + * Removes a single instance of the specified element from this deque. + * If the deque does not contain the element, it is unchanged. + * More formally, removes the first element {@code e} such that + * {@code o.equals(e)} (if such an element exists). + * Returns {@code true} if this deque contained the specified element + * (or equivalently, if this deque changed as a result of the call). + *

This method is equivalent to {@link #removeFirstOccurrence(Object)}. + */ + // @ts-ignore + public remove(o: java.lang.Object): boolean; + /** + * Removes all of the elements from this deque. + * The deque will be empty after this call returns. + */ + // @ts-ignore + public clear(): void; + /** + * Returns an array containing all of the elements in this deque + * in proper sequence (from first to last element). + *

The returned array will be "safe" in that no references to it are + * maintained by this deque. (In other words, this method must allocate + * a new array). The caller is thus free to modify the returned array. + *

This method acts as bridge between array-based and collection-based + * APIs. + */ + // @ts-ignore + public toArray(): java.lang.Object[]; + /** + * Returns an array containing all of the elements in this deque in + * proper sequence (from first to last element); the runtime type of the + * returned array is that of the specified array. If the deque fits in + * the specified array, it is returned therein. Otherwise, a new array + * is allocated with the runtime type of the specified array and the + * size of this deque. + *

If this deque fits in the specified array with room to spare + * (i.e., the array has more elements than this deque), the element in + * the array immediately following the end of the deque is set to + * {@code null}. + *

Like the {@link #toArray()} method, this method acts as bridge between + * array-based and collection-based APIs. Further, this method allows + * precise control over the runtime type of the output array, and may, + * under certain circumstances, be used to save allocation costs. + *

Suppose {@code x} is a deque known to contain only strings. + * The following code can be used to dump the deque into a newly + * allocated array of {@code String}: + *

 {@code String[] y = x.toArray(new String[0]);}
+ * Note that {@code toArray(new Object[0])} is identical in function to + * {@code toArray()}. + */ + // @ts-ignore + public toArray(a: java.lang.Object): java.lang.Object[]; + /** + * Returns a copy of this deque. + */ + // @ts-ignore + public clone(): java.util.ArrayDeque; + /** + * Creates a late-binding + * and fail-fast {@link Spliterator} over the elements in this + * deque. + *

The {@code Spliterator} reports {@link Spliterator#SIZED}, + * {@link Spliterator#SUBSIZED}, {@link Spliterator#ORDERED}, and + * {@link Spliterator#NONNULL}. Overriding implementations should document + * the reporting of additional characteristic values. + */ + // @ts-ignore + public spliterator(): java.util.Spliterator; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.ArrayList.d.ts b/packages/types/dist/typings/jdk/java.util.ArrayList.d.ts new file mode 100644 index 00000000..c9bd6a28 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.ArrayList.d.ts @@ -0,0 +1,268 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class ArrayList extends java.util.AbstractList { + /** + * Constructs an empty list with the specified initial capacity. + */ + // @ts-ignore + constructor(initialCapacity: number) + /** + * Constructs an empty list with an initial capacity of ten. + */ + // @ts-ignore + constructor() + /** + * Constructs a list containing the elements of the specified + * collection, in the order they are returned by the collection's + * iterator. + */ + // @ts-ignore + constructor(c: java.util.Collection) + /** + * Trims the capacity of this ArrayList instance to be the + * list's current size. An application can use this operation to minimize + * the storage of an ArrayList instance. + */ + // @ts-ignore + public trimToSize(): void; + /** + * Increases the capacity of this ArrayList instance, if + * necessary, to ensure that it can hold at least the number of elements + * specified by the minimum capacity argument. + */ + // @ts-ignore + public ensureCapacity(minCapacity: number): void; + /** + * Returns the number of elements in this list. + */ + // @ts-ignore + public size(): number; + /** + * Returns true if this list contains no elements. + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * Returns true if this list contains the specified element. + * More formally, returns true if and only if this list contains + * at least one element e such that + * (o==null ? e==null : o.equals(e)). + */ + // @ts-ignore + public contains(o: java.lang.Object): boolean; + /** + * Returns the index of the first occurrence of the specified element + * in this list, or -1 if this list does not contain the element. + * More formally, returns the lowest index i such that + * (o==null ? get(i)==null : o.equals(get(i))), + * or -1 if there is no such index. + */ + // @ts-ignore + public indexOf(o: java.lang.Object): number; + /** + * Returns the index of the last occurrence of the specified element + * in this list, or -1 if this list does not contain the element. + * More formally, returns the highest index i such that + * (o==null ? get(i)==null : o.equals(get(i))), + * or -1 if there is no such index. + */ + // @ts-ignore + public lastIndexOf(o: java.lang.Object): number; + /** + * Returns a shallow copy of this ArrayList instance. (The + * elements themselves are not copied.) + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Returns an array containing all of the elements in this list + * in proper sequence (from first to last element). + *

The returned array will be "safe" in that no references to it are + * maintained by this list. (In other words, this method must allocate + * a new array). The caller is thus free to modify the returned array. + *

This method acts as bridge between array-based and collection-based + * APIs. + */ + // @ts-ignore + public toArray(): java.lang.Object[]; + /** + * Returns an array containing all of the elements in this list in proper + * sequence (from first to last element); the runtime type of the returned + * array is that of the specified array. If the list fits in the + * specified array, it is returned therein. Otherwise, a new array is + * allocated with the runtime type of the specified array and the size of + * this list. + *

If the list fits in the specified array with room to spare + * (i.e., the array has more elements than the list), the element in + * the array immediately following the end of the collection is set to + * null. (This is useful in determining the length of the + * list only if the caller knows that the list does not contain + * any null elements.) + */ + // @ts-ignore + public toArray(a: java.lang.Object): java.lang.Object[]; + /** + * Returns the element at the specified position in this list. + */ + // @ts-ignore + public get(index: number): java.lang.Object; + /** + * Replaces the element at the specified position in this list with + * the specified element. + */ + // @ts-ignore + public set(index: number, element: java.lang.Object): java.lang.Object; + /** + * Appends the specified element to the end of this list. + */ + // @ts-ignore + public add(e: java.lang.Object): boolean; + /** + * Inserts the specified element at the specified position in this + * list. Shifts the element currently at that position (if any) and + * any subsequent elements to the right (adds one to their indices). + */ + // @ts-ignore + public add(index: number, element: java.lang.Object): void; + /** + * Removes the element at the specified position in this list. + * Shifts any subsequent elements to the left (subtracts one from their + * indices). + */ + // @ts-ignore + public remove(index: number): java.lang.Object; + /** + * Removes the first occurrence of the specified element from this list, + * if it is present. If the list does not contain the element, it is + * unchanged. More formally, removes the element with the lowest index + * i such that + * (o==null ? get(i)==null : o.equals(get(i))) + * (if such an element exists). Returns true if this list + * contained the specified element (or equivalently, if this list + * changed as a result of the call). + */ + // @ts-ignore + public remove(o: java.lang.Object): boolean; + /** + * Removes all of the elements from this list. The list will + * be empty after this call returns. + */ + // @ts-ignore + public clear(): void; + /** + * Appends all of the elements in the specified collection to the end of + * this list, in the order that they are returned by the + * specified collection's Iterator. The behavior of this operation is + * undefined if the specified collection is modified while the operation + * is in progress. (This implies that the behavior of this call is + * undefined if the specified collection is this list, and this + * list is nonempty.) + */ + // @ts-ignore + public addAll(c: java.util.Collection): boolean; + /** + * Inserts all of the elements in the specified collection into this + * list, starting at the specified position. Shifts the element + * currently at that position (if any) and any subsequent elements to + * the right (increases their indices). The new elements will appear + * in the list in the order that they are returned by the + * specified collection's iterator. + */ + // @ts-ignore + public addAll(index: number, c: java.util.Collection): boolean; + /** + * Removes from this list all of the elements whose index is between + * {@code fromIndex}, inclusive, and {@code toIndex}, exclusive. + * Shifts any succeeding elements to the left (reduces their index). + * This call shortens the list by {@code (toIndex - fromIndex)} elements. + * (If {@code toIndex==fromIndex}, this operation has no effect.) + */ + // @ts-ignore + protected removeRange(fromIndex: number, toIndex: number): void; + /** + * Removes from this list all of its elements that are contained in the + * specified collection. + */ + // @ts-ignore + public removeAll(c: java.util.Collection): boolean; + /** + * Retains only the elements in this list that are contained in the + * specified collection. In other words, removes from this list all + * of its elements that are not contained in the specified collection. + */ + // @ts-ignore + public retainAll(c: java.util.Collection): boolean; + /** + * Returns a list iterator over the elements in this list (in proper + * sequence), starting at the specified position in the list. + * The specified index indicates the first element that would be + * returned by an initial call to {@link ListIterator#next next}. + * An initial call to {@link ListIterator#previous previous} would + * return the element with the specified index minus one. + *

The returned list iterator is fail-fast. + */ + // @ts-ignore + public listIterator(index: number): java.util.ListIterator; + /** + * Returns a list iterator over the elements in this list (in proper + * sequence). + *

The returned list iterator is fail-fast. + */ + // @ts-ignore + public listIterator(): java.util.ListIterator; + /** + * Returns an iterator over the elements in this list in proper sequence. + *

The returned iterator is fail-fast. + */ + // @ts-ignore + public iterator(): java.util.Iterator; + /** + * Returns a view of the portion of this list between the specified + * {@code fromIndex}, inclusive, and {@code toIndex}, exclusive. (If + * {@code fromIndex} and {@code toIndex} are equal, the returned list is + * empty.) The returned list is backed by this list, so non-structural + * changes in the returned list are reflected in this list, and vice-versa. + * The returned list supports all of the optional list operations. + *

This method eliminates the need for explicit range operations (of + * the sort that commonly exist for arrays). Any operation that expects + * a list can be used as a range operation by passing a subList view + * instead of a whole list. For example, the following idiom + * removes a range of elements from a list: + *

+             * list.subList(from, to).clear();
+             * 
+ * Similar idioms may be constructed for {@link #indexOf(Object)} and + * {@link #lastIndexOf(Object)}, and all of the algorithms in the + * {@link Collections} class can be applied to a subList. + *

The semantics of the list returned by this method become undefined if + * the backing list (i.e., this list) is structurally modified in + * any way other than via the returned list. (Structural modifications are + * those that change the size of this list, or otherwise perturb it in such + * a fashion that iterations in progress may yield incorrect results.) + */ + // @ts-ignore + public subList(fromIndex: number, toIndex: number): java.util.List; + // @ts-ignore + public forEach(action: java.util.function$.Consumer): void; + /** + * Creates a late-binding + * and fail-fast {@link Spliterator} over the elements in this + * list. + *

The {@code Spliterator} reports {@link Spliterator#SIZED}, + * {@link Spliterator#SUBSIZED}, and {@link Spliterator#ORDERED}. + * Overriding implementations should document the reporting of additional + * characteristic values. + */ + // @ts-ignore + public spliterator(): java.util.Spliterator; + // @ts-ignore + public removeIf(filter: java.util.function$.Predicate): boolean; + // @ts-ignore + public replaceAll(operator: java.util.function$.UnaryOperator): void; + // @ts-ignore + public sort(c: java.util.Comparator): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Arrays.d.ts b/packages/types/dist/typings/jdk/java.util.Arrays.d.ts new file mode 100644 index 00000000..2a227fef --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Arrays.d.ts @@ -0,0 +1,1808 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class Arrays extends java.lang.Object { + /** + * Sorts the specified array into ascending numerical order. + *

Implementation note: The sorting algorithm is a Dual-Pivot Quicksort + * by Vladimir Yaroslavskiy, Jon Bentley, and Joshua Bloch. This algorithm + * offers O(n log(n)) performance on many data sets that cause other + * quicksorts to degrade to quadratic performance, and is typically + * faster than traditional (one-pivot) Quicksort implementations. + */ + // @ts-ignore + public static sort(a: number): void; + /** + * Sorts the specified range of the array into ascending order. The range + * to be sorted extends from the index {@code fromIndex}, inclusive, to + * the index {@code toIndex}, exclusive. If {@code fromIndex == toIndex}, + * the range to be sorted is empty. + *

Implementation note: The sorting algorithm is a Dual-Pivot Quicksort + * by Vladimir Yaroslavskiy, Jon Bentley, and Joshua Bloch. This algorithm + * offers O(n log(n)) performance on many data sets that cause other + * quicksorts to degrade to quadratic performance, and is typically + * faster than traditional (one-pivot) Quicksort implementations. + */ + // @ts-ignore + public static sort(a: number, fromIndex: number, toIndex: number): void; + /** + * Sorts the specified array into ascending numerical order. + *

Implementation note: The sorting algorithm is a Dual-Pivot Quicksort + * by Vladimir Yaroslavskiy, Jon Bentley, and Joshua Bloch. This algorithm + * offers O(n log(n)) performance on many data sets that cause other + * quicksorts to degrade to quadratic performance, and is typically + * faster than traditional (one-pivot) Quicksort implementations. + */ + // @ts-ignore + public static sort(a: number): void; + /** + * Sorts the specified range of the array into ascending order. The range + * to be sorted extends from the index {@code fromIndex}, inclusive, to + * the index {@code toIndex}, exclusive. If {@code fromIndex == toIndex}, + * the range to be sorted is empty. + *

Implementation note: The sorting algorithm is a Dual-Pivot Quicksort + * by Vladimir Yaroslavskiy, Jon Bentley, and Joshua Bloch. This algorithm + * offers O(n log(n)) performance on many data sets that cause other + * quicksorts to degrade to quadratic performance, and is typically + * faster than traditional (one-pivot) Quicksort implementations. + */ + // @ts-ignore + public static sort(a: number, fromIndex: number, toIndex: number): void; + /** + * Sorts the specified array into ascending numerical order. + *

Implementation note: The sorting algorithm is a Dual-Pivot Quicksort + * by Vladimir Yaroslavskiy, Jon Bentley, and Joshua Bloch. This algorithm + * offers O(n log(n)) performance on many data sets that cause other + * quicksorts to degrade to quadratic performance, and is typically + * faster than traditional (one-pivot) Quicksort implementations. + */ + // @ts-ignore + public static sort(a: number): void; + /** + * Sorts the specified range of the array into ascending order. The range + * to be sorted extends from the index {@code fromIndex}, inclusive, to + * the index {@code toIndex}, exclusive. If {@code fromIndex == toIndex}, + * the range to be sorted is empty. + *

Implementation note: The sorting algorithm is a Dual-Pivot Quicksort + * by Vladimir Yaroslavskiy, Jon Bentley, and Joshua Bloch. This algorithm + * offers O(n log(n)) performance on many data sets that cause other + * quicksorts to degrade to quadratic performance, and is typically + * faster than traditional (one-pivot) Quicksort implementations. + */ + // @ts-ignore + public static sort(a: number, fromIndex: number, toIndex: number): void; + /** + * Sorts the specified array into ascending numerical order. + *

Implementation note: The sorting algorithm is a Dual-Pivot Quicksort + * by Vladimir Yaroslavskiy, Jon Bentley, and Joshua Bloch. This algorithm + * offers O(n log(n)) performance on many data sets that cause other + * quicksorts to degrade to quadratic performance, and is typically + * faster than traditional (one-pivot) Quicksort implementations. + */ + // @ts-ignore + public static sort(a: string): void; + /** + * Sorts the specified range of the array into ascending order. The range + * to be sorted extends from the index {@code fromIndex}, inclusive, to + * the index {@code toIndex}, exclusive. If {@code fromIndex == toIndex}, + * the range to be sorted is empty. + *

Implementation note: The sorting algorithm is a Dual-Pivot Quicksort + * by Vladimir Yaroslavskiy, Jon Bentley, and Joshua Bloch. This algorithm + * offers O(n log(n)) performance on many data sets that cause other + * quicksorts to degrade to quadratic performance, and is typically + * faster than traditional (one-pivot) Quicksort implementations. + */ + // @ts-ignore + public static sort(a: string, fromIndex: number, toIndex: number): void; + /** + * Sorts the specified array into ascending numerical order. + *

Implementation note: The sorting algorithm is a Dual-Pivot Quicksort + * by Vladimir Yaroslavskiy, Jon Bentley, and Joshua Bloch. This algorithm + * offers O(n log(n)) performance on many data sets that cause other + * quicksorts to degrade to quadratic performance, and is typically + * faster than traditional (one-pivot) Quicksort implementations. + */ + // @ts-ignore + public static sort(a: number): void; + /** + * Sorts the specified range of the array into ascending order. The range + * to be sorted extends from the index {@code fromIndex}, inclusive, to + * the index {@code toIndex}, exclusive. If {@code fromIndex == toIndex}, + * the range to be sorted is empty. + *

Implementation note: The sorting algorithm is a Dual-Pivot Quicksort + * by Vladimir Yaroslavskiy, Jon Bentley, and Joshua Bloch. This algorithm + * offers O(n log(n)) performance on many data sets that cause other + * quicksorts to degrade to quadratic performance, and is typically + * faster than traditional (one-pivot) Quicksort implementations. + */ + // @ts-ignore + public static sort(a: number, fromIndex: number, toIndex: number): void; + /** + * Sorts the specified array into ascending numerical order. + *

The {@code <} relation does not provide a total order on all float + * values: {@code -0.0f == 0.0f} is {@code true} and a {@code Float.NaN} + * value compares neither less than, greater than, nor equal to any value, + * even itself. This method uses the total order imposed by the method + * {@link Float#compareTo}: {@code -0.0f} is treated as less than value + * {@code 0.0f} and {@code Float.NaN} is considered greater than any + * other value and all {@code Float.NaN} values are considered equal. + *

Implementation note: The sorting algorithm is a Dual-Pivot Quicksort + * by Vladimir Yaroslavskiy, Jon Bentley, and Joshua Bloch. This algorithm + * offers O(n log(n)) performance on many data sets that cause other + * quicksorts to degrade to quadratic performance, and is typically + * faster than traditional (one-pivot) Quicksort implementations. + */ + // @ts-ignore + public static sort(a: number): void; + /** + * Sorts the specified range of the array into ascending order. The range + * to be sorted extends from the index {@code fromIndex}, inclusive, to + * the index {@code toIndex}, exclusive. If {@code fromIndex == toIndex}, + * the range to be sorted is empty. + *

The {@code <} relation does not provide a total order on all float + * values: {@code -0.0f == 0.0f} is {@code true} and a {@code Float.NaN} + * value compares neither less than, greater than, nor equal to any value, + * even itself. This method uses the total order imposed by the method + * {@link Float#compareTo}: {@code -0.0f} is treated as less than value + * {@code 0.0f} and {@code Float.NaN} is considered greater than any + * other value and all {@code Float.NaN} values are considered equal. + *

Implementation note: The sorting algorithm is a Dual-Pivot Quicksort + * by Vladimir Yaroslavskiy, Jon Bentley, and Joshua Bloch. This algorithm + * offers O(n log(n)) performance on many data sets that cause other + * quicksorts to degrade to quadratic performance, and is typically + * faster than traditional (one-pivot) Quicksort implementations. + */ + // @ts-ignore + public static sort(a: number, fromIndex: number, toIndex: number): void; + /** + * Sorts the specified array into ascending numerical order. + *

The {@code <} relation does not provide a total order on all double + * values: {@code -0.0d == 0.0d} is {@code true} and a {@code Double.NaN} + * value compares neither less than, greater than, nor equal to any value, + * even itself. This method uses the total order imposed by the method + * {@link Double#compareTo}: {@code -0.0d} is treated as less than value + * {@code 0.0d} and {@code Double.NaN} is considered greater than any + * other value and all {@code Double.NaN} values are considered equal. + *

Implementation note: The sorting algorithm is a Dual-Pivot Quicksort + * by Vladimir Yaroslavskiy, Jon Bentley, and Joshua Bloch. This algorithm + * offers O(n log(n)) performance on many data sets that cause other + * quicksorts to degrade to quadratic performance, and is typically + * faster than traditional (one-pivot) Quicksort implementations. + */ + // @ts-ignore + public static sort(a: number): void; + /** + * Sorts the specified range of the array into ascending order. The range + * to be sorted extends from the index {@code fromIndex}, inclusive, to + * the index {@code toIndex}, exclusive. If {@code fromIndex == toIndex}, + * the range to be sorted is empty. + *

The {@code <} relation does not provide a total order on all double + * values: {@code -0.0d == 0.0d} is {@code true} and a {@code Double.NaN} + * value compares neither less than, greater than, nor equal to any value, + * even itself. This method uses the total order imposed by the method + * {@link Double#compareTo}: {@code -0.0d} is treated as less than value + * {@code 0.0d} and {@code Double.NaN} is considered greater than any + * other value and all {@code Double.NaN} values are considered equal. + *

Implementation note: The sorting algorithm is a Dual-Pivot Quicksort + * by Vladimir Yaroslavskiy, Jon Bentley, and Joshua Bloch. This algorithm + * offers O(n log(n)) performance on many data sets that cause other + * quicksorts to degrade to quadratic performance, and is typically + * faster than traditional (one-pivot) Quicksort implementations. + */ + // @ts-ignore + public static sort(a: number, fromIndex: number, toIndex: number): void; + /** + * Sorts the specified array into ascending numerical order. + */ + // @ts-ignore + public static parallelSort(a: number): void; + /** + * Sorts the specified range of the array into ascending numerical order. + * The range to be sorted extends from the index {@code fromIndex}, + * inclusive, to the index {@code toIndex}, exclusive. If + * {@code fromIndex == toIndex}, the range to be sorted is empty. + */ + // @ts-ignore + public static parallelSort(a: number, fromIndex: number, toIndex: number): void; + /** + * Sorts the specified array into ascending numerical order. + */ + // @ts-ignore + public static parallelSort(a: string): void; + /** + * Sorts the specified range of the array into ascending numerical order. + * The range to be sorted extends from the index {@code fromIndex}, + * inclusive, to the index {@code toIndex}, exclusive. If + * {@code fromIndex == toIndex}, the range to be sorted is empty. + */ + // @ts-ignore + public static parallelSort(a: string, fromIndex: number, toIndex: number): void; + /** + * Sorts the specified array into ascending numerical order. + */ + // @ts-ignore + public static parallelSort(a: number): void; + /** + * Sorts the specified range of the array into ascending numerical order. + * The range to be sorted extends from the index {@code fromIndex}, + * inclusive, to the index {@code toIndex}, exclusive. If + * {@code fromIndex == toIndex}, the range to be sorted is empty. + */ + // @ts-ignore + public static parallelSort(a: number, fromIndex: number, toIndex: number): void; + /** + * Sorts the specified array into ascending numerical order. + */ + // @ts-ignore + public static parallelSort(a: number): void; + /** + * Sorts the specified range of the array into ascending numerical order. + * The range to be sorted extends from the index {@code fromIndex}, + * inclusive, to the index {@code toIndex}, exclusive. If + * {@code fromIndex == toIndex}, the range to be sorted is empty. + */ + // @ts-ignore + public static parallelSort(a: number, fromIndex: number, toIndex: number): void; + /** + * Sorts the specified array into ascending numerical order. + */ + // @ts-ignore + public static parallelSort(a: number): void; + /** + * Sorts the specified range of the array into ascending numerical order. + * The range to be sorted extends from the index {@code fromIndex}, + * inclusive, to the index {@code toIndex}, exclusive. If + * {@code fromIndex == toIndex}, the range to be sorted is empty. + */ + // @ts-ignore + public static parallelSort(a: number, fromIndex: number, toIndex: number): void; + /** + * Sorts the specified array into ascending numerical order. + *

The {@code <} relation does not provide a total order on all float + * values: {@code -0.0f == 0.0f} is {@code true} and a {@code Float.NaN} + * value compares neither less than, greater than, nor equal to any value, + * even itself. This method uses the total order imposed by the method + * {@link Float#compareTo}: {@code -0.0f} is treated as less than value + * {@code 0.0f} and {@code Float.NaN} is considered greater than any + * other value and all {@code Float.NaN} values are considered equal. + */ + // @ts-ignore + public static parallelSort(a: number): void; + /** + * Sorts the specified range of the array into ascending numerical order. + * The range to be sorted extends from the index {@code fromIndex}, + * inclusive, to the index {@code toIndex}, exclusive. If + * {@code fromIndex == toIndex}, the range to be sorted is empty. + *

The {@code <} relation does not provide a total order on all float + * values: {@code -0.0f == 0.0f} is {@code true} and a {@code Float.NaN} + * value compares neither less than, greater than, nor equal to any value, + * even itself. This method uses the total order imposed by the method + * {@link Float#compareTo}: {@code -0.0f} is treated as less than value + * {@code 0.0f} and {@code Float.NaN} is considered greater than any + * other value and all {@code Float.NaN} values are considered equal. + */ + // @ts-ignore + public static parallelSort(a: number, fromIndex: number, toIndex: number): void; + /** + * Sorts the specified array into ascending numerical order. + *

The {@code <} relation does not provide a total order on all double + * values: {@code -0.0d == 0.0d} is {@code true} and a {@code Double.NaN} + * value compares neither less than, greater than, nor equal to any value, + * even itself. This method uses the total order imposed by the method + * {@link Double#compareTo}: {@code -0.0d} is treated as less than value + * {@code 0.0d} and {@code Double.NaN} is considered greater than any + * other value and all {@code Double.NaN} values are considered equal. + */ + // @ts-ignore + public static parallelSort(a: number): void; + /** + * Sorts the specified range of the array into ascending numerical order. + * The range to be sorted extends from the index {@code fromIndex}, + * inclusive, to the index {@code toIndex}, exclusive. If + * {@code fromIndex == toIndex}, the range to be sorted is empty. + *

The {@code <} relation does not provide a total order on all double + * values: {@code -0.0d == 0.0d} is {@code true} and a {@code Double.NaN} + * value compares neither less than, greater than, nor equal to any value, + * even itself. This method uses the total order imposed by the method + * {@link Double#compareTo}: {@code -0.0d} is treated as less than value + * {@code 0.0d} and {@code Double.NaN} is considered greater than any + * other value and all {@code Double.NaN} values are considered equal. + */ + // @ts-ignore + public static parallelSort(a: number, fromIndex: number, toIndex: number): void; + /** + * Sorts the specified array of objects into ascending order, according + * to the {@linkplain Comparable natural ordering} of its elements. + * All elements in the array must implement the {@link Comparable} + * interface. Furthermore, all elements in the array must be + * mutually comparable (that is, {@code e1.compareTo(e2)} must + * not throw a {@code ClassCastException} for any elements {@code e1} + * and {@code e2} in the array). + *

This sort is guaranteed to be stable: equal elements will + * not be reordered as a result of the sort. + */ + // @ts-ignore + public static parallelSort(a: java.lang.Comparable): void; + /** + * Sorts the specified range of the specified array of objects into + * ascending order, according to the + * {@linkplain Comparable natural ordering} of its + * elements. The range to be sorted extends from index + * {@code fromIndex}, inclusive, to index {@code toIndex}, exclusive. + * (If {@code fromIndex==toIndex}, the range to be sorted is empty.) All + * elements in this range must implement the {@link Comparable} + * interface. Furthermore, all elements in this range must be mutually + * comparable (that is, {@code e1.compareTo(e2)} must not throw a + * {@code ClassCastException} for any elements {@code e1} and + * {@code e2} in the array). + *

This sort is guaranteed to be stable: equal elements will + * not be reordered as a result of the sort. + */ + // @ts-ignore + public static parallelSort(a: java.lang.Comparable, fromIndex: number, toIndex: number): void; + /** + * Sorts the specified array of objects according to the order induced by + * the specified comparator. All elements in the array must be + * mutually comparable by the specified comparator (that is, + * {@code c.compare(e1, e2)} must not throw a {@code ClassCastException} + * for any elements {@code e1} and {@code e2} in the array). + *

This sort is guaranteed to be stable: equal elements will + * not be reordered as a result of the sort. + */ + // @ts-ignore + public static parallelSort(a: java.lang.Object, cmp: java.util.Comparator): void; + /** + * Sorts the specified range of the specified array of objects according + * to the order induced by the specified comparator. The range to be + * sorted extends from index {@code fromIndex}, inclusive, to index + * {@code toIndex}, exclusive. (If {@code fromIndex==toIndex}, the + * range to be sorted is empty.) All elements in the range must be + * mutually comparable by the specified comparator (that is, + * {@code c.compare(e1, e2)} must not throw a {@code ClassCastException} + * for any elements {@code e1} and {@code e2} in the range). + *

This sort is guaranteed to be stable: equal elements will + * not be reordered as a result of the sort. + */ + // @ts-ignore + public static parallelSort(a: java.lang.Object, fromIndex: number, toIndex: number, cmp: java.util.Comparator): void; + /** + * Sorts the specified array of objects into ascending order, according + * to the {@linkplain Comparable natural ordering} of its elements. + * All elements in the array must implement the {@link Comparable} + * interface. Furthermore, all elements in the array must be + * mutually comparable (that is, {@code e1.compareTo(e2)} must + * not throw a {@code ClassCastException} for any elements {@code e1} + * and {@code e2} in the array). + *

This sort is guaranteed to be stable: equal elements will + * not be reordered as a result of the sort. + *

Implementation note: This implementation is a stable, adaptive, + * iterative mergesort that requires far fewer than n lg(n) comparisons + * when the input array is partially sorted, while offering the + * performance of a traditional mergesort when the input array is + * randomly ordered. If the input array is nearly sorted, the + * implementation requires approximately n comparisons. Temporary + * storage requirements vary from a small constant for nearly sorted + * input arrays to n/2 object references for randomly ordered input + * arrays. + *

The implementation takes equal advantage of ascending and + * descending order in its input array, and can take advantage of + * ascending and descending order in different parts of the the same + * input array. It is well-suited to merging two or more sorted arrays: + * simply concatenate the arrays and sort the resulting array. + *

The implementation was adapted from Tim Peters's list sort for Python + * ( + * TimSort). It uses techniques from Peter McIlroy's "Optimistic + * Sorting and Information Theoretic Complexity", in Proceedings of the + * Fourth Annual ACM-SIAM Symposium on Discrete Algorithms, pp 467-474, + * January 1993. + */ + // @ts-ignore + public static sort(a: java.lang.Object): void; + /** + * Sorts the specified range of the specified array of objects into + * ascending order, according to the + * {@linkplain Comparable natural ordering} of its + * elements. The range to be sorted extends from index + * {@code fromIndex}, inclusive, to index {@code toIndex}, exclusive. + * (If {@code fromIndex==toIndex}, the range to be sorted is empty.) All + * elements in this range must implement the {@link Comparable} + * interface. Furthermore, all elements in this range must be mutually + * comparable (that is, {@code e1.compareTo(e2)} must not throw a + * {@code ClassCastException} for any elements {@code e1} and + * {@code e2} in the array). + *

This sort is guaranteed to be stable: equal elements will + * not be reordered as a result of the sort. + *

Implementation note: This implementation is a stable, adaptive, + * iterative mergesort that requires far fewer than n lg(n) comparisons + * when the input array is partially sorted, while offering the + * performance of a traditional mergesort when the input array is + * randomly ordered. If the input array is nearly sorted, the + * implementation requires approximately n comparisons. Temporary + * storage requirements vary from a small constant for nearly sorted + * input arrays to n/2 object references for randomly ordered input + * arrays. + *

The implementation takes equal advantage of ascending and + * descending order in its input array, and can take advantage of + * ascending and descending order in different parts of the the same + * input array. It is well-suited to merging two or more sorted arrays: + * simply concatenate the arrays and sort the resulting array. + *

The implementation was adapted from Tim Peters's list sort for Python + * ( + * TimSort). It uses techniques from Peter McIlroy's "Optimistic + * Sorting and Information Theoretic Complexity", in Proceedings of the + * Fourth Annual ACM-SIAM Symposium on Discrete Algorithms, pp 467-474, + * January 1993. + */ + // @ts-ignore + public static sort(a: java.lang.Object, fromIndex: number, toIndex: number): void; + /** + * Sorts the specified array of objects according to the order induced by + * the specified comparator. All elements in the array must be + * mutually comparable by the specified comparator (that is, + * {@code c.compare(e1, e2)} must not throw a {@code ClassCastException} + * for any elements {@code e1} and {@code e2} in the array). + *

This sort is guaranteed to be stable: equal elements will + * not be reordered as a result of the sort. + *

Implementation note: This implementation is a stable, adaptive, + * iterative mergesort that requires far fewer than n lg(n) comparisons + * when the input array is partially sorted, while offering the + * performance of a traditional mergesort when the input array is + * randomly ordered. If the input array is nearly sorted, the + * implementation requires approximately n comparisons. Temporary + * storage requirements vary from a small constant for nearly sorted + * input arrays to n/2 object references for randomly ordered input + * arrays. + *

The implementation takes equal advantage of ascending and + * descending order in its input array, and can take advantage of + * ascending and descending order in different parts of the the same + * input array. It is well-suited to merging two or more sorted arrays: + * simply concatenate the arrays and sort the resulting array. + *

The implementation was adapted from Tim Peters's list sort for Python + * ( + * TimSort). It uses techniques from Peter McIlroy's "Optimistic + * Sorting and Information Theoretic Complexity", in Proceedings of the + * Fourth Annual ACM-SIAM Symposium on Discrete Algorithms, pp 467-474, + * January 1993. + */ + // @ts-ignore + public static sort(a: java.lang.Object, c: java.util.Comparator): void; + /** + * Sorts the specified range of the specified array of objects according + * to the order induced by the specified comparator. The range to be + * sorted extends from index {@code fromIndex}, inclusive, to index + * {@code toIndex}, exclusive. (If {@code fromIndex==toIndex}, the + * range to be sorted is empty.) All elements in the range must be + * mutually comparable by the specified comparator (that is, + * {@code c.compare(e1, e2)} must not throw a {@code ClassCastException} + * for any elements {@code e1} and {@code e2} in the range). + *

This sort is guaranteed to be stable: equal elements will + * not be reordered as a result of the sort. + *

Implementation note: This implementation is a stable, adaptive, + * iterative mergesort that requires far fewer than n lg(n) comparisons + * when the input array is partially sorted, while offering the + * performance of a traditional mergesort when the input array is + * randomly ordered. If the input array is nearly sorted, the + * implementation requires approximately n comparisons. Temporary + * storage requirements vary from a small constant for nearly sorted + * input arrays to n/2 object references for randomly ordered input + * arrays. + *

The implementation takes equal advantage of ascending and + * descending order in its input array, and can take advantage of + * ascending and descending order in different parts of the the same + * input array. It is well-suited to merging two or more sorted arrays: + * simply concatenate the arrays and sort the resulting array. + *

The implementation was adapted from Tim Peters's list sort for Python + * ( + * TimSort). It uses techniques from Peter McIlroy's "Optimistic + * Sorting and Information Theoretic Complexity", in Proceedings of the + * Fourth Annual ACM-SIAM Symposium on Discrete Algorithms, pp 467-474, + * January 1993. + */ + // @ts-ignore + public static sort(a: java.lang.Object, fromIndex: number, toIndex: number, c: java.util.Comparator): void; + /** + * Cumulates, in parallel, each element of the given array in place, + * using the supplied function. For example if the array initially + * holds {@code [2, 1, 0, 3]} and the operation performs addition, + * then upon return the array holds {@code [2, 3, 3, 6]}. + * Parallel prefix computation is usually more efficient than + * sequential loops for large arrays. + */ + // @ts-ignore + public static parallelPrefix(array: java.lang.Object, op: java.util.function$.BinaryOperator): void; + /** + * Performs {@link #parallelPrefix(Object[], BinaryOperator)} + * for the given subrange of the array. + */ + // @ts-ignore + public static parallelPrefix(array: java.lang.Object, fromIndex: number, toIndex: number, op: java.util.function$.BinaryOperator): void; + /** + * Cumulates, in parallel, each element of the given array in place, + * using the supplied function. For example if the array initially + * holds {@code [2, 1, 0, 3]} and the operation performs addition, + * then upon return the array holds {@code [2, 3, 3, 6]}. + * Parallel prefix computation is usually more efficient than + * sequential loops for large arrays. + */ + // @ts-ignore + public static parallelPrefix(array: number, op: java.util.function$.LongBinaryOperator): void; + /** + * Performs {@link #parallelPrefix(long[], LongBinaryOperator)} + * for the given subrange of the array. + */ + // @ts-ignore + public static parallelPrefix(array: number, fromIndex: number, toIndex: number, op: java.util.function$.LongBinaryOperator): void; + /** + * Cumulates, in parallel, each element of the given array in place, + * using the supplied function. For example if the array initially + * holds {@code [2.0, 1.0, 0.0, 3.0]} and the operation performs addition, + * then upon return the array holds {@code [2.0, 3.0, 3.0, 6.0]}. + * Parallel prefix computation is usually more efficient than + * sequential loops for large arrays. + *

Because floating-point operations may not be strictly associative, + * the returned result may not be identical to the value that would be + * obtained if the operation was performed sequentially. + */ + // @ts-ignore + public static parallelPrefix(array: number, op: java.util.function$.DoubleBinaryOperator): void; + /** + * Performs {@link #parallelPrefix(double[], DoubleBinaryOperator)} + * for the given subrange of the array. + */ + // @ts-ignore + public static parallelPrefix(array: number, fromIndex: number, toIndex: number, op: java.util.function$.DoubleBinaryOperator): void; + /** + * Cumulates, in parallel, each element of the given array in place, + * using the supplied function. For example if the array initially + * holds {@code [2, 1, 0, 3]} and the operation performs addition, + * then upon return the array holds {@code [2, 3, 3, 6]}. + * Parallel prefix computation is usually more efficient than + * sequential loops for large arrays. + */ + // @ts-ignore + public static parallelPrefix(array: number, op: java.util.function$.IntBinaryOperator): void; + /** + * Performs {@link #parallelPrefix(int[], IntBinaryOperator)} + * for the given subrange of the array. + */ + // @ts-ignore + public static parallelPrefix(array: number, fromIndex: number, toIndex: number, op: java.util.function$.IntBinaryOperator): void; + /** + * Searches the specified array of longs for the specified value using the + * binary search algorithm. The array must be sorted (as + * by the {@link #sort(long[])} method) prior to making this call. If it + * is not sorted, the results are undefined. If the array contains + * multiple elements with the specified value, there is no guarantee which + * one will be found. + */ + // @ts-ignore + public static binarySearch(a: number, key: number): number; + /** + * Searches a range of + * the specified array of longs for the specified value using the + * binary search algorithm. + * The range must be sorted (as + * by the {@link #sort(long[], int, int)} method) + * prior to making this call. If it + * is not sorted, the results are undefined. If the range contains + * multiple elements with the specified value, there is no guarantee which + * one will be found. + */ + // @ts-ignore + public static binarySearch(a: number, fromIndex: number, toIndex: number, key: number): number; + /** + * Searches the specified array of ints for the specified value using the + * binary search algorithm. The array must be sorted (as + * by the {@link #sort(int[])} method) prior to making this call. If it + * is not sorted, the results are undefined. If the array contains + * multiple elements with the specified value, there is no guarantee which + * one will be found. + */ + // @ts-ignore + public static binarySearch(a: number, key: number): number; + /** + * Searches a range of + * the specified array of ints for the specified value using the + * binary search algorithm. + * The range must be sorted (as + * by the {@link #sort(int[], int, int)} method) + * prior to making this call. If it + * is not sorted, the results are undefined. If the range contains + * multiple elements with the specified value, there is no guarantee which + * one will be found. + */ + // @ts-ignore + public static binarySearch(a: number, fromIndex: number, toIndex: number, key: number): number; + /** + * Searches the specified array of shorts for the specified value using + * the binary search algorithm. The array must be sorted + * (as by the {@link #sort(short[])} method) prior to making this call. If + * it is not sorted, the results are undefined. If the array contains + * multiple elements with the specified value, there is no guarantee which + * one will be found. + */ + // @ts-ignore + public static binarySearch(a: number, key: number): number; + /** + * Searches a range of + * the specified array of shorts for the specified value using + * the binary search algorithm. + * The range must be sorted + * (as by the {@link #sort(short[], int, int)} method) + * prior to making this call. If + * it is not sorted, the results are undefined. If the range contains + * multiple elements with the specified value, there is no guarantee which + * one will be found. + */ + // @ts-ignore + public static binarySearch(a: number, fromIndex: number, toIndex: number, key: number): number; + /** + * Searches the specified array of chars for the specified value using the + * binary search algorithm. The array must be sorted (as + * by the {@link #sort(char[])} method) prior to making this call. If it + * is not sorted, the results are undefined. If the array contains + * multiple elements with the specified value, there is no guarantee which + * one will be found. + */ + // @ts-ignore + public static binarySearch(a: string, key: string): number; + /** + * Searches a range of + * the specified array of chars for the specified value using the + * binary search algorithm. + * The range must be sorted (as + * by the {@link #sort(char[], int, int)} method) + * prior to making this call. If it + * is not sorted, the results are undefined. If the range contains + * multiple elements with the specified value, there is no guarantee which + * one will be found. + */ + // @ts-ignore + public static binarySearch(a: string, fromIndex: number, toIndex: number, key: string): number; + /** + * Searches the specified array of bytes for the specified value using the + * binary search algorithm. The array must be sorted (as + * by the {@link #sort(byte[])} method) prior to making this call. If it + * is not sorted, the results are undefined. If the array contains + * multiple elements with the specified value, there is no guarantee which + * one will be found. + */ + // @ts-ignore + public static binarySearch(a: number, key: number): number; + /** + * Searches a range of + * the specified array of bytes for the specified value using the + * binary search algorithm. + * The range must be sorted (as + * by the {@link #sort(byte[], int, int)} method) + * prior to making this call. If it + * is not sorted, the results are undefined. If the range contains + * multiple elements with the specified value, there is no guarantee which + * one will be found. + */ + // @ts-ignore + public static binarySearch(a: number, fromIndex: number, toIndex: number, key: number): number; + /** + * Searches the specified array of doubles for the specified value using + * the binary search algorithm. The array must be sorted + * (as by the {@link #sort(double[])} method) prior to making this call. + * If it is not sorted, the results are undefined. If the array contains + * multiple elements with the specified value, there is no guarantee which + * one will be found. This method considers all NaN values to be + * equivalent and equal. + */ + // @ts-ignore + public static binarySearch(a: number, key: number): number; + /** + * Searches a range of + * the specified array of doubles for the specified value using + * the binary search algorithm. + * The range must be sorted + * (as by the {@link #sort(double[], int, int)} method) + * prior to making this call. + * If it is not sorted, the results are undefined. If the range contains + * multiple elements with the specified value, there is no guarantee which + * one will be found. This method considers all NaN values to be + * equivalent and equal. + */ + // @ts-ignore + public static binarySearch(a: number, fromIndex: number, toIndex: number, key: number): number; + /** + * Searches the specified array of floats for the specified value using + * the binary search algorithm. The array must be sorted + * (as by the {@link #sort(float[])} method) prior to making this call. If + * it is not sorted, the results are undefined. If the array contains + * multiple elements with the specified value, there is no guarantee which + * one will be found. This method considers all NaN values to be + * equivalent and equal. + */ + // @ts-ignore + public static binarySearch(a: number, key: number): number; + /** + * Searches a range of + * the specified array of floats for the specified value using + * the binary search algorithm. + * The range must be sorted + * (as by the {@link #sort(float[], int, int)} method) + * prior to making this call. If + * it is not sorted, the results are undefined. If the range contains + * multiple elements with the specified value, there is no guarantee which + * one will be found. This method considers all NaN values to be + * equivalent and equal. + */ + // @ts-ignore + public static binarySearch(a: number, fromIndex: number, toIndex: number, key: number): number; + /** + * Searches the specified array for the specified object using the binary + * search algorithm. The array must be sorted into ascending order + * according to the + * {@linkplain Comparable natural ordering} + * of its elements (as by the + * {@link #sort(Object[])} method) prior to making this call. + * If it is not sorted, the results are undefined. + * (If the array contains elements that are not mutually comparable (for + * example, strings and integers), it cannot be sorted according + * to the natural ordering of its elements, hence results are undefined.) + * If the array contains multiple + * elements equal to the specified object, there is no guarantee which + * one will be found. + */ + // @ts-ignore + public static binarySearch(a: java.lang.Object, key: java.lang.Object): number; + /** + * Searches a range of + * the specified array for the specified object using the binary + * search algorithm. + * The range must be sorted into ascending order + * according to the + * {@linkplain Comparable natural ordering} + * of its elements (as by the + * {@link #sort(Object[], int, int)} method) prior to making this + * call. If it is not sorted, the results are undefined. + * (If the range contains elements that are not mutually comparable (for + * example, strings and integers), it cannot be sorted according + * to the natural ordering of its elements, hence results are undefined.) + * If the range contains multiple + * elements equal to the specified object, there is no guarantee which + * one will be found. + */ + // @ts-ignore + public static binarySearch(a: java.lang.Object, fromIndex: number, toIndex: number, key: java.lang.Object): number; + /** + * Searches the specified array for the specified object using the binary + * search algorithm. The array must be sorted into ascending order + * according to the specified comparator (as by the + * {@link #sort(Object[], Comparator) sort(T[], Comparator)} + * method) prior to making this call. If it is + * not sorted, the results are undefined. + * If the array contains multiple + * elements equal to the specified object, there is no guarantee which one + * will be found. + */ + // @ts-ignore + public static binarySearch(a: java.lang.Object, key: java.lang.Object, c: java.util.Comparator): number; + /** + * Searches a range of + * the specified array for the specified object using the binary + * search algorithm. + * The range must be sorted into ascending order + * according to the specified comparator (as by the + * {@link #sort(Object[], int, int, Comparator) + * sort(T[], int, int, Comparator)} + * method) prior to making this call. + * If it is not sorted, the results are undefined. + * If the range contains multiple elements equal to the specified object, + * there is no guarantee which one will be found. + */ + // @ts-ignore + public static binarySearch(a: java.lang.Object, fromIndex: number, toIndex: number, key: java.lang.Object, c: java.util.Comparator): number; + /** + * Returns true if the two specified arrays of longs are + * equal to one another. Two arrays are considered equal if both + * arrays contain the same number of elements, and all corresponding pairs + * of elements in the two arrays are equal. In other words, two arrays + * are equal if they contain the same elements in the same order. Also, + * two array references are considered equal if both are null.

+ */ + // @ts-ignore + public static equals(a: number, a2: number): boolean; + /** + * Returns true if the two specified arrays of ints are + * equal to one another. Two arrays are considered equal if both + * arrays contain the same number of elements, and all corresponding pairs + * of elements in the two arrays are equal. In other words, two arrays + * are equal if they contain the same elements in the same order. Also, + * two array references are considered equal if both are null.

+ */ + // @ts-ignore + public static equals(a: number, a2: number): boolean; + /** + * Returns true if the two specified arrays of shorts are + * equal to one another. Two arrays are considered equal if both + * arrays contain the same number of elements, and all corresponding pairs + * of elements in the two arrays are equal. In other words, two arrays + * are equal if they contain the same elements in the same order. Also, + * two array references are considered equal if both are null.

+ */ + // @ts-ignore + public static equals(a: number, a2: number): boolean; + /** + * Returns true if the two specified arrays of chars are + * equal to one another. Two arrays are considered equal if both + * arrays contain the same number of elements, and all corresponding pairs + * of elements in the two arrays are equal. In other words, two arrays + * are equal if they contain the same elements in the same order. Also, + * two array references are considered equal if both are null.

+ */ + // @ts-ignore + public static equals(a: string, a2: string): boolean; + /** + * Returns true if the two specified arrays of bytes are + * equal to one another. Two arrays are considered equal if both + * arrays contain the same number of elements, and all corresponding pairs + * of elements in the two arrays are equal. In other words, two arrays + * are equal if they contain the same elements in the same order. Also, + * two array references are considered equal if both are null.

+ */ + // @ts-ignore + public static equals(a: number, a2: number): boolean; + /** + * Returns true if the two specified arrays of booleans are + * equal to one another. Two arrays are considered equal if both + * arrays contain the same number of elements, and all corresponding pairs + * of elements in the two arrays are equal. In other words, two arrays + * are equal if they contain the same elements in the same order. Also, + * two array references are considered equal if both are null.

+ */ + // @ts-ignore + public static equals(a: boolean, a2: boolean): boolean; + /** + * Returns true if the two specified arrays of doubles are + * equal to one another. Two arrays are considered equal if both + * arrays contain the same number of elements, and all corresponding pairs + * of elements in the two arrays are equal. In other words, two arrays + * are equal if they contain the same elements in the same order. Also, + * two array references are considered equal if both are null.

+ * Two doubles d1 and d2 are considered equal if: + *

    new Double(d1).equals(new Double(d2))
+ * (Unlike the == operator, this method considers + * NaN equals to itself, and 0.0d unequal to -0.0d.) + */ + // @ts-ignore + public static equals(a: number, a2: number): boolean; + /** + * Returns true if the two specified arrays of floats are + * equal to one another. Two arrays are considered equal if both + * arrays contain the same number of elements, and all corresponding pairs + * of elements in the two arrays are equal. In other words, two arrays + * are equal if they contain the same elements in the same order. Also, + * two array references are considered equal if both are null.

+ * Two floats f1 and f2 are considered equal if: + *

    new Float(f1).equals(new Float(f2))
+ * (Unlike the == operator, this method considers + * NaN equals to itself, and 0.0f unequal to -0.0f.) + */ + // @ts-ignore + public static equals(a: number, a2: number): boolean; + /** + * Returns true if the two specified arrays of Objects are + * equal to one another. The two arrays are considered equal if + * both arrays contain the same number of elements, and all corresponding + * pairs of elements in the two arrays are equal. Two objects e1 + * and e2 are considered equal if (e1==null ? e2==null + * : e1.equals(e2)). In other words, the two arrays are equal if + * they contain the same elements in the same order. Also, two array + * references are considered equal if both are null.

+ */ + // @ts-ignore + public static equals(a: java.lang.Object, a2: java.lang.Object): boolean; + /** + * Assigns the specified long value to each element of the specified array + * of longs. + */ + // @ts-ignore + public static fill(a: number, val: number): void; + /** + * Assigns the specified long value to each element of the specified + * range of the specified array of longs. The range to be filled + * extends from index fromIndex, inclusive, to index + * toIndex, exclusive. (If fromIndex==toIndex, the + * range to be filled is empty.) + */ + // @ts-ignore + public static fill(a: number, fromIndex: number, toIndex: number, val: number): void; + /** + * Assigns the specified int value to each element of the specified array + * of ints. + */ + // @ts-ignore + public static fill(a: number, val: number): void; + /** + * Assigns the specified int value to each element of the specified + * range of the specified array of ints. The range to be filled + * extends from index fromIndex, inclusive, to index + * toIndex, exclusive. (If fromIndex==toIndex, the + * range to be filled is empty.) + */ + // @ts-ignore + public static fill(a: number, fromIndex: number, toIndex: number, val: number): void; + /** + * Assigns the specified short value to each element of the specified array + * of shorts. + */ + // @ts-ignore + public static fill(a: number, val: number): void; + /** + * Assigns the specified short value to each element of the specified + * range of the specified array of shorts. The range to be filled + * extends from index fromIndex, inclusive, to index + * toIndex, exclusive. (If fromIndex==toIndex, the + * range to be filled is empty.) + */ + // @ts-ignore + public static fill(a: number, fromIndex: number, toIndex: number, val: number): void; + /** + * Assigns the specified char value to each element of the specified array + * of chars. + */ + // @ts-ignore + public static fill(a: string, val: string): void; + /** + * Assigns the specified char value to each element of the specified + * range of the specified array of chars. The range to be filled + * extends from index fromIndex, inclusive, to index + * toIndex, exclusive. (If fromIndex==toIndex, the + * range to be filled is empty.) + */ + // @ts-ignore + public static fill(a: string, fromIndex: number, toIndex: number, val: string): void; + /** + * Assigns the specified byte value to each element of the specified array + * of bytes. + */ + // @ts-ignore + public static fill(a: number, val: number): void; + /** + * Assigns the specified byte value to each element of the specified + * range of the specified array of bytes. The range to be filled + * extends from index fromIndex, inclusive, to index + * toIndex, exclusive. (If fromIndex==toIndex, the + * range to be filled is empty.) + */ + // @ts-ignore + public static fill(a: number, fromIndex: number, toIndex: number, val: number): void; + /** + * Assigns the specified boolean value to each element of the specified + * array of booleans. + */ + // @ts-ignore + public static fill(a: boolean, val: boolean): void; + /** + * Assigns the specified boolean value to each element of the specified + * range of the specified array of booleans. The range to be filled + * extends from index fromIndex, inclusive, to index + * toIndex, exclusive. (If fromIndex==toIndex, the + * range to be filled is empty.) + */ + // @ts-ignore + public static fill(a: boolean, fromIndex: number, toIndex: number, val: boolean): void; + /** + * Assigns the specified double value to each element of the specified + * array of doubles. + */ + // @ts-ignore + public static fill(a: number, val: number): void; + /** + * Assigns the specified double value to each element of the specified + * range of the specified array of doubles. The range to be filled + * extends from index fromIndex, inclusive, to index + * toIndex, exclusive. (If fromIndex==toIndex, the + * range to be filled is empty.) + */ + // @ts-ignore + public static fill(a: number, fromIndex: number, toIndex: number, val: number): void; + /** + * Assigns the specified float value to each element of the specified array + * of floats. + */ + // @ts-ignore + public static fill(a: number, val: number): void; + /** + * Assigns the specified float value to each element of the specified + * range of the specified array of floats. The range to be filled + * extends from index fromIndex, inclusive, to index + * toIndex, exclusive. (If fromIndex==toIndex, the + * range to be filled is empty.) + */ + // @ts-ignore + public static fill(a: number, fromIndex: number, toIndex: number, val: number): void; + /** + * Assigns the specified Object reference to each element of the specified + * array of Objects. + */ + // @ts-ignore + public static fill(a: java.lang.Object, val: java.lang.Object): void; + /** + * Assigns the specified Object reference to each element of the specified + * range of the specified array of Objects. The range to be filled + * extends from index fromIndex, inclusive, to index + * toIndex, exclusive. (If fromIndex==toIndex, the + * range to be filled is empty.) + */ + // @ts-ignore + public static fill(a: java.lang.Object, fromIndex: number, toIndex: number, val: java.lang.Object): void; + /** + * Copies the specified array, truncating or padding with nulls (if necessary) + * so the copy has the specified length. For all indices that are + * valid in both the original array and the copy, the two arrays will + * contain identical values. For any indices that are valid in the + * copy but not the original, the copy will contain null. + * Such indices will exist if and only if the specified length + * is greater than that of the original array. + * The resulting array is of exactly the same class as the original array. + */ + // @ts-ignore + public static copyOf(original: java.lang.Object, newLength: number): java.lang.Object[]; + /** + * Copies the specified array, truncating or padding with nulls (if necessary) + * so the copy has the specified length. For all indices that are + * valid in both the original array and the copy, the two arrays will + * contain identical values. For any indices that are valid in the + * copy but not the original, the copy will contain null. + * Such indices will exist if and only if the specified length + * is greater than that of the original array. + * The resulting array is of the class newType. + */ + // @ts-ignore + public static copyOf(original: java.lang.Object, newLength: number, newType: java.lang.Class): java.lang.Object[]; + /** + * Copies the specified array, truncating or padding with zeros (if necessary) + * so the copy has the specified length. For all indices that are + * valid in both the original array and the copy, the two arrays will + * contain identical values. For any indices that are valid in the + * copy but not the original, the copy will contain (byte)0. + * Such indices will exist if and only if the specified length + * is greater than that of the original array. + */ + // @ts-ignore + public static copyOf(original: number, newLength: number): number[]; + /** + * Copies the specified array, truncating or padding with zeros (if necessary) + * so the copy has the specified length. For all indices that are + * valid in both the original array and the copy, the two arrays will + * contain identical values. For any indices that are valid in the + * copy but not the original, the copy will contain (short)0. + * Such indices will exist if and only if the specified length + * is greater than that of the original array. + */ + // @ts-ignore + public static copyOf(original: number, newLength: number): number[]; + /** + * Copies the specified array, truncating or padding with zeros (if necessary) + * so the copy has the specified length. For all indices that are + * valid in both the original array and the copy, the two arrays will + * contain identical values. For any indices that are valid in the + * copy but not the original, the copy will contain 0. + * Such indices will exist if and only if the specified length + * is greater than that of the original array. + */ + // @ts-ignore + public static copyOf(original: number, newLength: number): number[]; + /** + * Copies the specified array, truncating or padding with zeros (if necessary) + * so the copy has the specified length. For all indices that are + * valid in both the original array and the copy, the two arrays will + * contain identical values. For any indices that are valid in the + * copy but not the original, the copy will contain 0L. + * Such indices will exist if and only if the specified length + * is greater than that of the original array. + */ + // @ts-ignore + public static copyOf(original: number, newLength: number): number[]; + /** + * Copies the specified array, truncating or padding with null characters (if necessary) + * so the copy has the specified length. For all indices that are valid + * in both the original array and the copy, the two arrays will contain + * identical values. For any indices that are valid in the copy but not + * the original, the copy will contain '\\u000'. Such indices + * will exist if and only if the specified length is greater than that of + * the original array. + */ + // @ts-ignore + public static copyOf(original: string, newLength: number): string[]; + /** + * Copies the specified array, truncating or padding with zeros (if necessary) + * so the copy has the specified length. For all indices that are + * valid in both the original array and the copy, the two arrays will + * contain identical values. For any indices that are valid in the + * copy but not the original, the copy will contain 0f. + * Such indices will exist if and only if the specified length + * is greater than that of the original array. + */ + // @ts-ignore + public static copyOf(original: number, newLength: number): number[]; + /** + * Copies the specified array, truncating or padding with zeros (if necessary) + * so the copy has the specified length. For all indices that are + * valid in both the original array and the copy, the two arrays will + * contain identical values. For any indices that are valid in the + * copy but not the original, the copy will contain 0d. + * Such indices will exist if and only if the specified length + * is greater than that of the original array. + */ + // @ts-ignore + public static copyOf(original: number, newLength: number): number[]; + /** + * Copies the specified array, truncating or padding with false (if necessary) + * so the copy has the specified length. For all indices that are + * valid in both the original array and the copy, the two arrays will + * contain identical values. For any indices that are valid in the + * copy but not the original, the copy will contain false. + * Such indices will exist if and only if the specified length + * is greater than that of the original array. + */ + // @ts-ignore + public static copyOf(original: boolean, newLength: number): boolean[]; + /** + * Copies the specified range of the specified array into a new array. + * The initial index of the range (from) must lie between zero + * and original.length, inclusive. The value at + * original[from] is placed into the initial element of the copy + * (unless from == original.length or from == to). + * Values from subsequent elements in the original array are placed into + * subsequent elements in the copy. The final index of the range + * (to), which must be greater than or equal to from, + * may be greater than original.length, in which case + * null is placed in all elements of the copy whose index is + * greater than or equal to original.length - from. The length + * of the returned array will be to - from. + *

+ * The resulting array is of exactly the same class as the original array. + */ + // @ts-ignore + public static copyOfRange(original: java.lang.Object, from: number, to: number): java.lang.Object[]; + /** + * Copies the specified range of the specified array into a new array. + * The initial index of the range (from) must lie between zero + * and original.length, inclusive. The value at + * original[from] is placed into the initial element of the copy + * (unless from == original.length or from == to). + * Values from subsequent elements in the original array are placed into + * subsequent elements in the copy. The final index of the range + * (to), which must be greater than or equal to from, + * may be greater than original.length, in which case + * null is placed in all elements of the copy whose index is + * greater than or equal to original.length - from. The length + * of the returned array will be to - from. + * The resulting array is of the class newType. + */ + // @ts-ignore + public static copyOfRange(original: java.lang.Object, from: number, to: number, newType: java.lang.Class): java.lang.Object[]; + /** + * Copies the specified range of the specified array into a new array. + * The initial index of the range (from) must lie between zero + * and original.length, inclusive. The value at + * original[from] is placed into the initial element of the copy + * (unless from == original.length or from == to). + * Values from subsequent elements in the original array are placed into + * subsequent elements in the copy. The final index of the range + * (to), which must be greater than or equal to from, + * may be greater than original.length, in which case + * (byte)0 is placed in all elements of the copy whose index is + * greater than or equal to original.length - from. The length + * of the returned array will be to - from. + */ + // @ts-ignore + public static copyOfRange(original: number, from: number, to: number): number[]; + /** + * Copies the specified range of the specified array into a new array. + * The initial index of the range (from) must lie between zero + * and original.length, inclusive. The value at + * original[from] is placed into the initial element of the copy + * (unless from == original.length or from == to). + * Values from subsequent elements in the original array are placed into + * subsequent elements in the copy. The final index of the range + * (to), which must be greater than or equal to from, + * may be greater than original.length, in which case + * (short)0 is placed in all elements of the copy whose index is + * greater than or equal to original.length - from. The length + * of the returned array will be to - from. + */ + // @ts-ignore + public static copyOfRange(original: number, from: number, to: number): number[]; + /** + * Copies the specified range of the specified array into a new array. + * The initial index of the range (from) must lie between zero + * and original.length, inclusive. The value at + * original[from] is placed into the initial element of the copy + * (unless from == original.length or from == to). + * Values from subsequent elements in the original array are placed into + * subsequent elements in the copy. The final index of the range + * (to), which must be greater than or equal to from, + * may be greater than original.length, in which case + * 0 is placed in all elements of the copy whose index is + * greater than or equal to original.length - from. The length + * of the returned array will be to - from. + */ + // @ts-ignore + public static copyOfRange(original: number, from: number, to: number): number[]; + /** + * Copies the specified range of the specified array into a new array. + * The initial index of the range (from) must lie between zero + * and original.length, inclusive. The value at + * original[from] is placed into the initial element of the copy + * (unless from == original.length or from == to). + * Values from subsequent elements in the original array are placed into + * subsequent elements in the copy. The final index of the range + * (to), which must be greater than or equal to from, + * may be greater than original.length, in which case + * 0L is placed in all elements of the copy whose index is + * greater than or equal to original.length - from. The length + * of the returned array will be to - from. + */ + // @ts-ignore + public static copyOfRange(original: number, from: number, to: number): number[]; + /** + * Copies the specified range of the specified array into a new array. + * The initial index of the range (from) must lie between zero + * and original.length, inclusive. The value at + * original[from] is placed into the initial element of the copy + * (unless from == original.length or from == to). + * Values from subsequent elements in the original array are placed into + * subsequent elements in the copy. The final index of the range + * (to), which must be greater than or equal to from, + * may be greater than original.length, in which case + * '\\u000' is placed in all elements of the copy whose index is + * greater than or equal to original.length - from. The length + * of the returned array will be to - from. + */ + // @ts-ignore + public static copyOfRange(original: string, from: number, to: number): string[]; + /** + * Copies the specified range of the specified array into a new array. + * The initial index of the range (from) must lie between zero + * and original.length, inclusive. The value at + * original[from] is placed into the initial element of the copy + * (unless from == original.length or from == to). + * Values from subsequent elements in the original array are placed into + * subsequent elements in the copy. The final index of the range + * (to), which must be greater than or equal to from, + * may be greater than original.length, in which case + * 0f is placed in all elements of the copy whose index is + * greater than or equal to original.length - from. The length + * of the returned array will be to - from. + */ + // @ts-ignore + public static copyOfRange(original: number, from: number, to: number): number[]; + /** + * Copies the specified range of the specified array into a new array. + * The initial index of the range (from) must lie between zero + * and original.length, inclusive. The value at + * original[from] is placed into the initial element of the copy + * (unless from == original.length or from == to). + * Values from subsequent elements in the original array are placed into + * subsequent elements in the copy. The final index of the range + * (to), which must be greater than or equal to from, + * may be greater than original.length, in which case + * 0d is placed in all elements of the copy whose index is + * greater than or equal to original.length - from. The length + * of the returned array will be to - from. + */ + // @ts-ignore + public static copyOfRange(original: number, from: number, to: number): number[]; + /** + * Copies the specified range of the specified array into a new array. + * The initial index of the range (from) must lie between zero + * and original.length, inclusive. The value at + * original[from] is placed into the initial element of the copy + * (unless from == original.length or from == to). + * Values from subsequent elements in the original array are placed into + * subsequent elements in the copy. The final index of the range + * (to), which must be greater than or equal to from, + * may be greater than original.length, in which case + * false is placed in all elements of the copy whose index is + * greater than or equal to original.length - from. The length + * of the returned array will be to - from. + */ + // @ts-ignore + public static copyOfRange(original: boolean, from: number, to: number): boolean[]; + /** + * Returns a fixed-size list backed by the specified array. (Changes to + * the returned list "write through" to the array.) This method acts + * as bridge between array-based and collection-based APIs, in + * combination with {@link Collection#toArray}. The returned list is + * serializable and implements {@link RandomAccess}. + *

This method also provides a convenient way to create a fixed-size + * list initialized to contain several elements: + *

+             * List<String> stooges = Arrays.asList("Larry", "Moe", "Curly");
+             * 
+ */ + // @ts-ignore + public static asList(a: java.lang.Object): java.util.List; + /** + * Returns a hash code based on the contents of the specified array. + * For any two long arrays a and b + * such that Arrays.equals(a, b), it is also the case that + * Arrays.hashCode(a) == Arrays.hashCode(b). + *

The value returned by this method is the same value that would be + * obtained by invoking the {@link List#hashCode() hashCode} + * method on a {@link List} containing a sequence of {@link Long} + * instances representing the elements of a in the same order. + * If a is null, this method returns 0. + */ + // @ts-ignore + public static hashCode(a: number): number; + /** + * Returns a hash code based on the contents of the specified array. + * For any two non-null int arrays a and b + * such that Arrays.equals(a, b), it is also the case that + * Arrays.hashCode(a) == Arrays.hashCode(b). + *

The value returned by this method is the same value that would be + * obtained by invoking the {@link List#hashCode() hashCode} + * method on a {@link List} containing a sequence of {@link Integer} + * instances representing the elements of a in the same order. + * If a is null, this method returns 0. + */ + // @ts-ignore + public static hashCode(a: number): number; + /** + * Returns a hash code based on the contents of the specified array. + * For any two short arrays a and b + * such that Arrays.equals(a, b), it is also the case that + * Arrays.hashCode(a) == Arrays.hashCode(b). + *

The value returned by this method is the same value that would be + * obtained by invoking the {@link List#hashCode() hashCode} + * method on a {@link List} containing a sequence of {@link Short} + * instances representing the elements of a in the same order. + * If a is null, this method returns 0. + */ + // @ts-ignore + public static hashCode(a: number): number; + /** + * Returns a hash code based on the contents of the specified array. + * For any two char arrays a and b + * such that Arrays.equals(a, b), it is also the case that + * Arrays.hashCode(a) == Arrays.hashCode(b). + *

The value returned by this method is the same value that would be + * obtained by invoking the {@link List#hashCode() hashCode} + * method on a {@link List} containing a sequence of {@link Character} + * instances representing the elements of a in the same order. + * If a is null, this method returns 0. + */ + // @ts-ignore + public static hashCode(a: string): number; + /** + * Returns a hash code based on the contents of the specified array. + * For any two byte arrays a and b + * such that Arrays.equals(a, b), it is also the case that + * Arrays.hashCode(a) == Arrays.hashCode(b). + *

The value returned by this method is the same value that would be + * obtained by invoking the {@link List#hashCode() hashCode} + * method on a {@link List} containing a sequence of {@link Byte} + * instances representing the elements of a in the same order. + * If a is null, this method returns 0. + */ + // @ts-ignore + public static hashCode(a: number): number; + /** + * Returns a hash code based on the contents of the specified array. + * For any two boolean arrays a and b + * such that Arrays.equals(a, b), it is also the case that + * Arrays.hashCode(a) == Arrays.hashCode(b). + *

The value returned by this method is the same value that would be + * obtained by invoking the {@link List#hashCode() hashCode} + * method on a {@link List} containing a sequence of {@link Boolean} + * instances representing the elements of a in the same order. + * If a is null, this method returns 0. + */ + // @ts-ignore + public static hashCode(a: boolean): number; + /** + * Returns a hash code based on the contents of the specified array. + * For any two float arrays a and b + * such that Arrays.equals(a, b), it is also the case that + * Arrays.hashCode(a) == Arrays.hashCode(b). + *

The value returned by this method is the same value that would be + * obtained by invoking the {@link List#hashCode() hashCode} + * method on a {@link List} containing a sequence of {@link Float} + * instances representing the elements of a in the same order. + * If a is null, this method returns 0. + */ + // @ts-ignore + public static hashCode(a: number): number; + /** + * Returns a hash code based on the contents of the specified array. + * For any two double arrays a and b + * such that Arrays.equals(a, b), it is also the case that + * Arrays.hashCode(a) == Arrays.hashCode(b). + *

The value returned by this method is the same value that would be + * obtained by invoking the {@link List#hashCode() hashCode} + * method on a {@link List} containing a sequence of {@link Double} + * instances representing the elements of a in the same order. + * If a is null, this method returns 0. + */ + // @ts-ignore + public static hashCode(a: number): number; + /** + * Returns a hash code based on the contents of the specified array. If + * the array contains other arrays as elements, the hash code is based on + * their identities rather than their contents. It is therefore + * acceptable to invoke this method on an array that contains itself as an + * element, either directly or indirectly through one or more levels of + * arrays. + *

For any two arrays a and b such that + * Arrays.equals(a, b), it is also the case that + * Arrays.hashCode(a) == Arrays.hashCode(b). + *

The value returned by this method is equal to the value that would + * be returned by Arrays.asList(a).hashCode(), unless a + * is null, in which case 0 is returned. + */ + // @ts-ignore + public static hashCode(a: java.lang.Object): number; + /** + * Returns a hash code based on the "deep contents" of the specified + * array. If the array contains other arrays as elements, the + * hash code is based on their contents and so on, ad infinitum. + * It is therefore unacceptable to invoke this method on an array that + * contains itself as an element, either directly or indirectly through + * one or more levels of arrays. The behavior of such an invocation is + * undefined. + *

For any two arrays a and b such that + * Arrays.deepEquals(a, b), it is also the case that + * Arrays.deepHashCode(a) == Arrays.deepHashCode(b). + *

The computation of the value returned by this method is similar to + * that of the value returned by {@link List#hashCode()} on a list + * containing the same elements as a in the same order, with one + * difference: If an element e of a is itself an array, + * its hash code is computed not by calling e.hashCode(), but as + * by calling the appropriate overloading of Arrays.hashCode(e) + * if e is an array of a primitive type, or as by calling + * Arrays.deepHashCode(e) recursively if e is an array + * of a reference type. If a is null, this method + * returns 0. + */ + // @ts-ignore + public static deepHashCode(a: java.lang.Object): number; + /** + * Returns true if the two specified arrays are deeply + * equal to one another. Unlike the {@link #equals(Object[],Object[])} + * method, this method is appropriate for use with nested arrays of + * arbitrary depth. + *

Two array references are considered deeply equal if both + * are null, or if they refer to arrays that contain the same + * number of elements and all corresponding pairs of elements in the two + * arrays are deeply equal. + *

Two possibly null elements e1 and e2 are + * deeply equal if any of the following conditions hold: + *

    + *
  • e1 and e2 are both arrays of object reference + * types, and Arrays.deepEquals(e1, e2) would return true + *
  • e1 and e2 are arrays of the same primitive + * type, and the appropriate overloading of + * Arrays.equals(e1, e2) would return true. + *
  • e1 == e2 + *
  • e1.equals(e2) would return true. + *
+ * Note that this definition permits null elements at any depth. + *

If either of the specified arrays contain themselves as elements + * either directly or indirectly through one or more levels of arrays, + * the behavior of this method is undefined. + */ + // @ts-ignore + public static deepEquals(a1: java.lang.Object, a2: java.lang.Object): boolean; + /** + * Returns a string representation of the contents of the specified array. + * The string representation consists of a list of the array's elements, + * enclosed in square brackets ("[]"). Adjacent elements are + * separated by the characters ", " (a comma followed by a + * space). Elements are converted to strings as by + * String.valueOf(long). Returns "null" if a + * is null. + */ + // @ts-ignore + public static toString(a: number): string; + /** + * Returns a string representation of the contents of the specified array. + * The string representation consists of a list of the array's elements, + * enclosed in square brackets ("[]"). Adjacent elements are + * separated by the characters ", " (a comma followed by a + * space). Elements are converted to strings as by + * String.valueOf(int). Returns "null" if a is + * null. + */ + // @ts-ignore + public static toString(a: number): string; + /** + * Returns a string representation of the contents of the specified array. + * The string representation consists of a list of the array's elements, + * enclosed in square brackets ("[]"). Adjacent elements are + * separated by the characters ", " (a comma followed by a + * space). Elements are converted to strings as by + * String.valueOf(short). Returns "null" if a + * is null. + */ + // @ts-ignore + public static toString(a: number): string; + /** + * Returns a string representation of the contents of the specified array. + * The string representation consists of a list of the array's elements, + * enclosed in square brackets ("[]"). Adjacent elements are + * separated by the characters ", " (a comma followed by a + * space). Elements are converted to strings as by + * String.valueOf(char). Returns "null" if a + * is null. + */ + // @ts-ignore + public static toString(a: string): string; + /** + * Returns a string representation of the contents of the specified array. + * The string representation consists of a list of the array's elements, + * enclosed in square brackets ("[]"). Adjacent elements + * are separated by the characters ", " (a comma followed + * by a space). Elements are converted to strings as by + * String.valueOf(byte). Returns "null" if + * a is null. + */ + // @ts-ignore + public static toString(a: number): string; + /** + * Returns a string representation of the contents of the specified array. + * The string representation consists of a list of the array's elements, + * enclosed in square brackets ("[]"). Adjacent elements are + * separated by the characters ", " (a comma followed by a + * space). Elements are converted to strings as by + * String.valueOf(boolean). Returns "null" if + * a is null. + */ + // @ts-ignore + public static toString(a: boolean): string; + /** + * Returns a string representation of the contents of the specified array. + * The string representation consists of a list of the array's elements, + * enclosed in square brackets ("[]"). Adjacent elements are + * separated by the characters ", " (a comma followed by a + * space). Elements are converted to strings as by + * String.valueOf(float). Returns "null" if a + * is null. + */ + // @ts-ignore + public static toString(a: number): string; + /** + * Returns a string representation of the contents of the specified array. + * The string representation consists of a list of the array's elements, + * enclosed in square brackets ("[]"). Adjacent elements are + * separated by the characters ", " (a comma followed by a + * space). Elements are converted to strings as by + * String.valueOf(double). Returns "null" if a + * is null. + */ + // @ts-ignore + public static toString(a: number): string; + /** + * Returns a string representation of the contents of the specified array. + * If the array contains other arrays as elements, they are converted to + * strings by the {@link Object#toString} method inherited from + * Object, which describes their identities rather than + * their contents. + *

The value returned by this method is equal to the value that would + * be returned by Arrays.asList(a).toString(), unless a + * is null, in which case "null" is returned. + */ + // @ts-ignore + public static toString(a: java.lang.Object): string; + /** + * Returns a string representation of the "deep contents" of the specified + * array. If the array contains other arrays as elements, the string + * representation contains their contents and so on. This method is + * designed for converting multidimensional arrays to strings. + *

The string representation consists of a list of the array's + * elements, enclosed in square brackets ("[]"). Adjacent + * elements are separated by the characters ", " (a comma + * followed by a space). Elements are converted to strings as by + * String.valueOf(Object), unless they are themselves + * arrays. + *

If an element e is an array of a primitive type, it is + * converted to a string as by invoking the appropriate overloading of + * Arrays.toString(e). If an element e is an array of a + * reference type, it is converted to a string as by invoking + * this method recursively. + *

To avoid infinite recursion, if the specified array contains itself + * as an element, or contains an indirect reference to itself through one + * or more levels of arrays, the self-reference is converted to the string + * "[...]". For example, an array containing only a reference + * to itself would be rendered as "[[...]]". + *

This method returns "null" if the specified array + * is null. + */ + // @ts-ignore + public static deepToString(a: java.lang.Object): string; + /** + * Set all elements of the specified array, using the provided + * generator function to compute each element. + *

If the generator function throws an exception, it is relayed to + * the caller and the array is left in an indeterminate state. + */ + // @ts-ignore + public static setAll(array: java.lang.Object, generator: java.util.function$.IntFunction): void; + /** + * Set all elements of the specified array, in parallel, using the + * provided generator function to compute each element. + *

If the generator function throws an exception, an unchecked exception + * is thrown from {@code parallelSetAll} and the array is left in an + * indeterminate state. + */ + // @ts-ignore + public static parallelSetAll(array: java.lang.Object, generator: java.util.function$.IntFunction): void; + /** + * Set all elements of the specified array, using the provided + * generator function to compute each element. + *

If the generator function throws an exception, it is relayed to + * the caller and the array is left in an indeterminate state. + */ + // @ts-ignore + public static setAll(array: number, generator: java.util.function$.IntUnaryOperator): void; + /** + * Set all elements of the specified array, in parallel, using the + * provided generator function to compute each element. + *

If the generator function throws an exception, an unchecked exception + * is thrown from {@code parallelSetAll} and the array is left in an + * indeterminate state. + */ + // @ts-ignore + public static parallelSetAll(array: number, generator: java.util.function$.IntUnaryOperator): void; + /** + * Set all elements of the specified array, using the provided + * generator function to compute each element. + *

If the generator function throws an exception, it is relayed to + * the caller and the array is left in an indeterminate state. + */ + // @ts-ignore + public static setAll(array: number, generator: java.util.function$.IntToLongFunction): void; + /** + * Set all elements of the specified array, in parallel, using the + * provided generator function to compute each element. + *

If the generator function throws an exception, an unchecked exception + * is thrown from {@code parallelSetAll} and the array is left in an + * indeterminate state. + */ + // @ts-ignore + public static parallelSetAll(array: number, generator: java.util.function$.IntToLongFunction): void; + /** + * Set all elements of the specified array, using the provided + * generator function to compute each element. + *

If the generator function throws an exception, it is relayed to + * the caller and the array is left in an indeterminate state. + */ + // @ts-ignore + public static setAll(array: number, generator: java.util.function$.IntToDoubleFunction): void; + /** + * Set all elements of the specified array, in parallel, using the + * provided generator function to compute each element. + *

If the generator function throws an exception, an unchecked exception + * is thrown from {@code parallelSetAll} and the array is left in an + * indeterminate state. + */ + // @ts-ignore + public static parallelSetAll(array: number, generator: java.util.function$.IntToDoubleFunction): void; + /** + * Returns a {@link Spliterator} covering all of the specified array. + *

The spliterator reports {@link Spliterator#SIZED}, + * {@link Spliterator#SUBSIZED}, {@link Spliterator#ORDERED}, and + * {@link Spliterator#IMMUTABLE}. + */ + // @ts-ignore + public static spliterator(array: java.lang.Object): java.util.Spliterator; + /** + * Returns a {@link Spliterator} covering the specified range of the + * specified array. + *

The spliterator reports {@link Spliterator#SIZED}, + * {@link Spliterator#SUBSIZED}, {@link Spliterator#ORDERED}, and + * {@link Spliterator#IMMUTABLE}. + */ + // @ts-ignore + public static spliterator(array: java.lang.Object, startInclusive: number, endExclusive: number): java.util.Spliterator; + /** + * Returns a {@link Spliterator.OfInt} covering all of the specified array. + *

The spliterator reports {@link Spliterator#SIZED}, + * {@link Spliterator#SUBSIZED}, {@link Spliterator#ORDERED}, and + * {@link Spliterator#IMMUTABLE}. + */ + // @ts-ignore + public static spliterator(array: number): java.util.Spliterator.OfInt; + /** + * Returns a {@link Spliterator.OfInt} covering the specified range of the + * specified array. + *

The spliterator reports {@link Spliterator#SIZED}, + * {@link Spliterator#SUBSIZED}, {@link Spliterator#ORDERED}, and + * {@link Spliterator#IMMUTABLE}. + */ + // @ts-ignore + public static spliterator(array: number, startInclusive: number, endExclusive: number): java.util.Spliterator.OfInt; + /** + * Returns a {@link Spliterator.OfLong} covering all of the specified array. + *

The spliterator reports {@link Spliterator#SIZED}, + * {@link Spliterator#SUBSIZED}, {@link Spliterator#ORDERED}, and + * {@link Spliterator#IMMUTABLE}. + */ + // @ts-ignore + public static spliterator(array: number): java.util.Spliterator.OfLong; + /** + * Returns a {@link Spliterator.OfLong} covering the specified range of the + * specified array. + *

The spliterator reports {@link Spliterator#SIZED}, + * {@link Spliterator#SUBSIZED}, {@link Spliterator#ORDERED}, and + * {@link Spliterator#IMMUTABLE}. + */ + // @ts-ignore + public static spliterator(array: number, startInclusive: number, endExclusive: number): java.util.Spliterator.OfLong; + /** + * Returns a {@link Spliterator.OfDouble} covering all of the specified + * array. + *

The spliterator reports {@link Spliterator#SIZED}, + * {@link Spliterator#SUBSIZED}, {@link Spliterator#ORDERED}, and + * {@link Spliterator#IMMUTABLE}. + */ + // @ts-ignore + public static spliterator(array: number): java.util.Spliterator.OfDouble; + /** + * Returns a {@link Spliterator.OfDouble} covering the specified range of + * the specified array. + *

The spliterator reports {@link Spliterator#SIZED}, + * {@link Spliterator#SUBSIZED}, {@link Spliterator#ORDERED}, and + * {@link Spliterator#IMMUTABLE}. + */ + // @ts-ignore + public static spliterator(array: number, startInclusive: number, endExclusive: number): java.util.Spliterator.OfDouble; + /** + * Returns a sequential {@link Stream} with the specified array as its + * source. + */ + // @ts-ignore + public static stream(array: java.lang.Object): java.util.stream.Stream; + /** + * Returns a sequential {@link Stream} with the specified range of the + * specified array as its source. + */ + // @ts-ignore + public static stream(array: java.lang.Object, startInclusive: number, endExclusive: number): java.util.stream.Stream; + /** + * Returns a sequential {@link IntStream} with the specified array as its + * source. + */ + // @ts-ignore + public static stream(array: number): java.util.stream.IntStream; + /** + * Returns a sequential {@link IntStream} with the specified range of the + * specified array as its source. + */ + // @ts-ignore + public static stream(array: number, startInclusive: number, endExclusive: number): java.util.stream.IntStream; + /** + * Returns a sequential {@link LongStream} with the specified array as its + * source. + */ + // @ts-ignore + public static stream(array: number): java.util.stream.LongStream; + /** + * Returns a sequential {@link LongStream} with the specified range of the + * specified array as its source. + */ + // @ts-ignore + public static stream(array: number, startInclusive: number, endExclusive: number): java.util.stream.LongStream; + /** + * Returns a sequential {@link DoubleStream} with the specified array as its + * source. + */ + // @ts-ignore + public static stream(array: number): java.util.stream.DoubleStream; + /** + * Returns a sequential {@link DoubleStream} with the specified range of the + * specified array as its source. + */ + // @ts-ignore + public static stream(array: number, startInclusive: number, endExclusive: number): java.util.stream.DoubleStream; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Base64.Decoder.d.ts b/packages/types/dist/typings/jdk/java.util.Base64.Decoder.d.ts new file mode 100644 index 00000000..a06c14cc --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Base64.Decoder.d.ts @@ -0,0 +1,62 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace Base64 { + // @ts-ignore + class Decoder extends java.lang.Object { + /** + * Decodes all bytes from the input byte array using the {@link Base64} + * encoding scheme, writing the results into a newly-allocated output + * byte array. The returned byte array is of the length of the resulting + * bytes. + */ + // @ts-ignore + public decode(src: number): number[]; + /** + * Decodes a Base64 encoded String into a newly-allocated byte array + * using the {@link Base64} encoding scheme. + *

An invocation of this method has exactly the same effect as invoking + * {@code decode(src.getBytes(StandardCharsets.ISO_8859_1))} + */ + // @ts-ignore + public decode(src: string): number[]; + /** + * Decodes all bytes from the input byte array using the {@link Base64} + * encoding scheme, writing the results into the given output byte array, + * starting at offset 0. + *

It is the responsibility of the invoker of this method to make + * sure the output byte array {@code dst} has enough space for decoding + * all bytes from the input byte array. No bytes will be be written to + * the output byte array if the output byte array is not big enough. + *

If the input byte array is not in valid Base64 encoding scheme + * then some bytes may have been written to the output byte array before + * IllegalargumentException is thrown. + */ + // @ts-ignore + public decode(src: number, dst: number): number; + /** + * Decodes all bytes from the input byte buffer using the {@link Base64} + * encoding scheme, writing the results into a newly-allocated ByteBuffer. + *

Upon return, the source buffer's position will be updated to + * its limit; its limit will not have been changed. The returned + * output buffer's position will be zero and its limit will be the + * number of resulting decoded bytes + *

{@code IllegalArgumentException} is thrown if the input buffer + * is not in valid Base64 encoding scheme. The position of the input + * buffer will not be advanced in this case. + */ + // @ts-ignore + public decode(buffer: java.nio.ByteBuffer): java.nio.ByteBuffer; + /** + * Returns an input stream for decoding {@link Base64} encoded byte stream. + *

The {@code read} methods of the returned {@code InputStream} will + * throw {@code IOException} when reading bytes that cannot be decoded. + *

Closing the returned input stream will close the underlying + * input stream. + */ + // @ts-ignore + public wrap(is: java.io.InputStream): java.io.InputStream; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Base64.Encoder.d.ts b/packages/types/dist/typings/jdk/java.util.Base64.Encoder.d.ts new file mode 100644 index 00000000..24d155af --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Base64.Encoder.d.ts @@ -0,0 +1,72 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace Base64 { + // @ts-ignore + class Encoder extends java.lang.Object { + /** + * Encodes all bytes from the specified byte array into a newly-allocated + * byte array using the {@link Base64} encoding scheme. The returned byte + * array is of the length of the resulting bytes. + */ + // @ts-ignore + public encode(src: number): number[]; + /** + * Encodes all bytes from the specified byte array using the + * {@link Base64} encoding scheme, writing the resulting bytes to the + * given output byte array, starting at offset 0. + *

It is the responsibility of the invoker of this method to make + * sure the output byte array {@code dst} has enough space for encoding + * all bytes from the input byte array. No bytes will be written to the + * output byte array if the output byte array is not big enough. + */ + // @ts-ignore + public encode(src: number, dst: number): number; + /** + * Encodes the specified byte array into a String using the {@link Base64} + * encoding scheme. + *

This method first encodes all input bytes into a base64 encoded + * byte array and then constructs a new String by using the encoded byte + * array and the {@link java.nio.charset.StandardCharsets#ISO_8859_1 + * ISO-8859-1} charset. + *

In other words, an invocation of this method has exactly the same + * effect as invoking + * {@code new String(encode(src), StandardCharsets.ISO_8859_1)}. + */ + // @ts-ignore + public encodeToString(src: number): string; + /** + * Encodes all remaining bytes from the specified byte buffer into + * a newly-allocated ByteBuffer using the {@link Base64} encoding + * scheme. + * Upon return, the source buffer's position will be updated to + * its limit; its limit will not have been changed. The returned + * output buffer's position will be zero and its limit will be the + * number of resulting encoded bytes. + */ + // @ts-ignore + public encode(buffer: java.nio.ByteBuffer): java.nio.ByteBuffer; + /** + * Wraps an output stream for encoding byte data using the {@link Base64} + * encoding scheme. + *

It is recommended to promptly close the returned output stream after + * use, during which it will flush all possible leftover bytes to the underlying + * output stream. Closing the returned output stream will close the underlying + * output stream. + */ + // @ts-ignore + public wrap(os: java.io.OutputStream): java.io.OutputStream; + /** + * Returns an encoder instance that encodes equivalently to this one, + * but without adding any padding character at the end of the encoded + * byte data. + *

The encoding scheme of this encoder instance is unaffected by + * this invocation. The returned encoder instance should be used for + * non-padding encoding operation. + */ + // @ts-ignore + public withoutPadding(): java.util.Base64.Encoder; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Base64.d.ts b/packages/types/dist/typings/jdk/java.util.Base64.d.ts new file mode 100644 index 00000000..b8debe99 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Base64.d.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class Base64 extends java.lang.Object { + /** + * Returns a {@link Encoder} that encodes using the + * Basic type base64 encoding scheme. + */ + // @ts-ignore + public static getEncoder(): java.util.Base64.Encoder; + /** + * Returns a {@link Encoder} that encodes using the + * URL and Filename safe type base64 + * encoding scheme. + */ + // @ts-ignore + public static getUrlEncoder(): java.util.Base64.Encoder; + /** + * Returns a {@link Encoder} that encodes using the + * MIME type base64 encoding scheme. + */ + // @ts-ignore + public static getMimeEncoder(): java.util.Base64.Encoder; + /** + * Returns a {@link Encoder} that encodes using the + * MIME type base64 encoding scheme + * with specified line length and line separators. + */ + // @ts-ignore + public static getMimeEncoder(lineLength: number, lineSeparator: number): java.util.Base64.Encoder; + /** + * Returns a {@link Decoder} that decodes using the + * Basic type base64 encoding scheme. + */ + // @ts-ignore + public static getDecoder(): java.util.Base64.Decoder; + /** + * Returns a {@link Decoder} that decodes using the + * URL and Filename safe type base64 + * encoding scheme. + */ + // @ts-ignore + public static getUrlDecoder(): java.util.Base64.Decoder; + /** + * Returns a {@link Decoder} that decodes using the + * MIME type base64 decoding scheme. + */ + // @ts-ignore + public static getMimeDecoder(): java.util.Base64.Decoder; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.BitSet.d.ts b/packages/types/dist/typings/jdk/java.util.BitSet.d.ts new file mode 100644 index 00000000..d30d2fc6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.BitSet.d.ts @@ -0,0 +1,330 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class BitSet extends java.lang.Object { + /** + * Creates a new bit set. All bits are initially {@code false}. + */ + // @ts-ignore + constructor() + /** + * Creates a bit set whose initial size is large enough to explicitly + * represent bits with indices in the range {@code 0} through + * {@code nbits-1}. All bits are initially {@code false}. + */ + // @ts-ignore + constructor(nbits: number) + /** + * Returns a new bit set containing all the bits in the given long array. + *

More precisely, + *
{@code BitSet.valueOf(longs).get(n) == ((longs[n/64] & (1L<<(n%64))) != 0)} + *
for all {@code n < 64 * longs.length}. + *

This method is equivalent to + * {@code BitSet.valueOf(LongBuffer.wrap(longs))}. + */ + // @ts-ignore + public static valueOf(longs: number): java.util.BitSet; + /** + * Returns a new bit set containing all the bits in the given long + * buffer between its position and limit. + *

More precisely, + *
{@code BitSet.valueOf(lb).get(n) == ((lb.get(lb.position()+n/64) & (1L<<(n%64))) != 0)} + *
for all {@code n < 64 * lb.remaining()}. + *

The long buffer is not modified by this method, and no + * reference to the buffer is retained by the bit set. + */ + // @ts-ignore + public static valueOf(lb: java.nio.LongBuffer): java.util.BitSet; + /** + * Returns a new bit set containing all the bits in the given byte array. + *

More precisely, + *
{@code BitSet.valueOf(bytes).get(n) == ((bytes[n/8] & (1<<(n%8))) != 0)} + *
for all {@code n < 8 * bytes.length}. + *

This method is equivalent to + * {@code BitSet.valueOf(ByteBuffer.wrap(bytes))}. + */ + // @ts-ignore + public static valueOf(bytes: number): java.util.BitSet; + /** + * Returns a new bit set containing all the bits in the given byte + * buffer between its position and limit. + *

More precisely, + *
{@code BitSet.valueOf(bb).get(n) == ((bb.get(bb.position()+n/8) & (1<<(n%8))) != 0)} + *
for all {@code n < 8 * bb.remaining()}. + *

The byte buffer is not modified by this method, and no + * reference to the buffer is retained by the bit set. + */ + // @ts-ignore + public static valueOf(bb: java.nio.ByteBuffer): java.util.BitSet; + /** + * Returns a new byte array containing all the bits in this bit set. + *

More precisely, if + *
{@code byte[] bytes = s.toByteArray();} + *
then {@code bytes.length == (s.length()+7)/8} and + *
{@code s.get(n) == ((bytes[n/8] & (1<<(n%8))) != 0)} + *
for all {@code n < 8 * bytes.length}. + */ + // @ts-ignore + public toByteArray(): number[]; + /** + * Returns a new long array containing all the bits in this bit set. + *

More precisely, if + *
{@code long[] longs = s.toLongArray();} + *
then {@code longs.length == (s.length()+63)/64} and + *
{@code s.get(n) == ((longs[n/64] & (1L<<(n%64))) != 0)} + *
for all {@code n < 64 * longs.length}. + */ + // @ts-ignore + public toLongArray(): number[]; + /** + * Sets the bit at the specified index to the complement of its + * current value. + */ + // @ts-ignore + public flip(bitIndex: number): void; + /** + * Sets each bit from the specified {@code fromIndex} (inclusive) to the + * specified {@code toIndex} (exclusive) to the complement of its current + * value. + */ + // @ts-ignore + public flip(fromIndex: number, toIndex: number): void; + /** + * Sets the bit at the specified index to {@code true}. + */ + // @ts-ignore + public set(bitIndex: number): void; + /** + * Sets the bit at the specified index to the specified value. + */ + // @ts-ignore + public set(bitIndex: number, value: boolean): void; + /** + * Sets the bits from the specified {@code fromIndex} (inclusive) to the + * specified {@code toIndex} (exclusive) to {@code true}. + */ + // @ts-ignore + public set(fromIndex: number, toIndex: number): void; + /** + * Sets the bits from the specified {@code fromIndex} (inclusive) to the + * specified {@code toIndex} (exclusive) to the specified value. + */ + // @ts-ignore + public set(fromIndex: number, toIndex: number, value: boolean): void; + /** + * Sets the bit specified by the index to {@code false}. + */ + // @ts-ignore + public clear(bitIndex: number): void; + /** + * Sets the bits from the specified {@code fromIndex} (inclusive) to the + * specified {@code toIndex} (exclusive) to {@code false}. + */ + // @ts-ignore + public clear(fromIndex: number, toIndex: number): void; + /** + * Sets all of the bits in this BitSet to {@code false}. + */ + // @ts-ignore + public clear(): void; + /** + * Returns the value of the bit with the specified index. The value + * is {@code true} if the bit with the index {@code bitIndex} + * is currently set in this {@code BitSet}; otherwise, the result + * is {@code false}. + */ + // @ts-ignore + public get(bitIndex: number): boolean; + /** + * Returns a new {@code BitSet} composed of bits from this {@code BitSet} + * from {@code fromIndex} (inclusive) to {@code toIndex} (exclusive). + */ + // @ts-ignore + public get(fromIndex: number, toIndex: number): java.util.BitSet; + /** + * Returns the index of the first bit that is set to {@code true} + * that occurs on or after the specified starting index. If no such + * bit exists then {@code -1} is returned. + *

To iterate over the {@code true} bits in a {@code BitSet}, + * use the following loop: + *

 {@code
+             * for (int i = bs.nextSetBit(0); i >= 0; i = bs.nextSetBit(i+1)) {
+             * // operate on index i here
+             * if (i == Integer.MAX_VALUE) {
+             * break; // or (i+1) would overflow
+             * }
+             * }}
+ */ + // @ts-ignore + public nextSetBit(fromIndex: number): number; + /** + * Returns the index of the first bit that is set to {@code false} + * that occurs on or after the specified starting index. + */ + // @ts-ignore + public nextClearBit(fromIndex: number): number; + /** + * Returns the index of the nearest bit that is set to {@code true} + * that occurs on or before the specified starting index. + * If no such bit exists, or if {@code -1} is given as the + * starting index, then {@code -1} is returned. + *

To iterate over the {@code true} bits in a {@code BitSet}, + * use the following loop: + *

 {@code
+             * for (int i = bs.length(); (i = bs.previousSetBit(i-1)) >= 0; ) {
+             * // operate on index i here
+             * }}
+ */ + // @ts-ignore + public previousSetBit(fromIndex: number): number; + /** + * Returns the index of the nearest bit that is set to {@code false} + * that occurs on or before the specified starting index. + * If no such bit exists, or if {@code -1} is given as the + * starting index, then {@code -1} is returned. + */ + // @ts-ignore + public previousClearBit(fromIndex: number): number; + /** + * Returns the "logical size" of this {@code BitSet}: the index of + * the highest set bit in the {@code BitSet} plus one. Returns zero + * if the {@code BitSet} contains no set bits. + */ + // @ts-ignore + public length(): number; + /** + * Returns true if this {@code BitSet} contains no bits that are set + * to {@code true}. + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * Returns true if the specified {@code BitSet} has any bits set to + * {@code true} that are also set to {@code true} in this {@code BitSet}. + */ + // @ts-ignore + public intersects(set: java.util.BitSet): boolean; + /** + * Returns the number of bits set to {@code true} in this {@code BitSet}. + */ + // @ts-ignore + public cardinality(): number; + /** + * Performs a logical AND of this target bit set with the + * argument bit set. This bit set is modified so that each bit in it + * has the value {@code true} if and only if it both initially + * had the value {@code true} and the corresponding bit in the + * bit set argument also had the value {@code true}. + */ + // @ts-ignore + public and(set: java.util.BitSet): void; + /** + * Performs a logical OR of this bit set with the bit set + * argument. This bit set is modified so that a bit in it has the + * value {@code true} if and only if it either already had the + * value {@code true} or the corresponding bit in the bit set + * argument has the value {@code true}. + */ + // @ts-ignore + public or(set: java.util.BitSet): void; + /** + * Performs a logical XOR of this bit set with the bit set + * argument. This bit set is modified so that a bit in it has the + * value {@code true} if and only if one of the following + * statements holds: + *
    + *
  • The bit initially has the value {@code true}, and the + * corresponding bit in the argument has the value {@code false}. + *
  • The bit initially has the value {@code false}, and the + * corresponding bit in the argument has the value {@code true}. + *
+ */ + // @ts-ignore + public xor(set: java.util.BitSet): void; + /** + * Clears all of the bits in this {@code BitSet} whose corresponding + * bit is set in the specified {@code BitSet}. + */ + // @ts-ignore + public andNot(set: java.util.BitSet): void; + /** + * Returns the hash code value for this bit set. The hash code depends + * only on which bits are set within this {@code BitSet}. + *

The hash code is defined to be the result of the following + * calculation: + *

 {@code
+             * public int hashCode() {
+             * long h = 1234;
+             * long[] words = toLongArray();
+             * for (int i = words.length; --i >= 0; )
+             * h ^= words[i] * (i + 1);
+             * return (int)((h >> 32) ^ h);
+             * }}
+ * Note that the hash code changes if the set of bits is altered. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns the number of bits of space actually in use by this + * {@code BitSet} to represent bit values. + * The maximum element in the set is the size - 1st element. + */ + // @ts-ignore + public size(): number; + /** + * Compares this object against the specified object. + * The result is {@code true} if and only if the argument is + * not {@code null} and is a {@code Bitset} object that has + * exactly the same set of bits set to {@code true} as this bit + * set. That is, for every nonnegative {@code int} index {@code k}, + *
((BitSet)obj).get(k) == this.get(k)
+ * must be true. The current sizes of the two bit sets are not compared. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Cloning this {@code BitSet} produces a new {@code BitSet} + * that is equal to it. + * The clone of the bit set is another bit set that has exactly the + * same bits set to {@code true} as this bit set. + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Returns a string representation of this bit set. For every index + * for which this {@code BitSet} contains a bit in the set + * state, the decimal representation of that index is included in + * the result. Such indices are listed in order from lowest to + * highest, separated by ", " (a comma and a space) and + * surrounded by braces, resulting in the usual mathematical + * notation for a set of integers. + *

Example: + *

+             * BitSet drPepper = new BitSet();
+ * Now {@code drPepper.toString()} returns "{@code {}}". + *
+             * drPepper.set(2);
+ * Now {@code drPepper.toString()} returns "{@code {2}}". + *
+             * drPepper.set(4);
+             * drPepper.set(10);
+ * Now {@code drPepper.toString()} returns "{@code {2, 4, 10}}". + */ + // @ts-ignore + public toString(): string; + /** + * Returns a stream of indices for which this {@code BitSet} + * contains a bit in the set state. The indices are returned + * in order, from lowest to highest. The size of the stream + * is the number of bits in the set state, equal to the value + * returned by the {@link #cardinality()} method. + *

The bit set must remain constant during the execution of the + * terminal stream operation. Otherwise, the result of the terminal + * stream operation is undefined. + */ + // @ts-ignore + public stream(): java.util.stream.IntStream; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Calendar.Builder.d.ts b/packages/types/dist/typings/jdk/java.util.Calendar.Builder.d.ts new file mode 100644 index 00000000..77ab0b60 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Calendar.Builder.d.ts @@ -0,0 +1,172 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace Calendar { + // @ts-ignore + class Builder extends java.lang.Object { + /** + * Constructs a {@code Calendar.Builder}. + */ + // @ts-ignore + constructor() + /** + * Sets the instant parameter to the given {@code instant} value that is + * a millisecond offset from the + * Epoch. + */ + // @ts-ignore + public setInstant(instant: number): java.util.Calendar.Builder; + /** + * Sets the instant parameter to the {@code instant} value given by a + * {@link Date}. This method is equivalent to a call to + * {@link #setInstant(long) setInstant(instant.getTime())}. + */ + // @ts-ignore + public setInstant(instant: java.util.Date): java.util.Calendar.Builder; + /** + * Sets the {@code field} parameter to the given {@code value}. + * {@code field} is an index to the {@link Calendar#fields}, such as + * {@link Calendar#DAY_OF_MONTH DAY_OF_MONTH}. Field value validation is + * not performed in this method. Any out of range values are either + * normalized in lenient mode or detected as an invalid value in + * non-lenient mode when building a {@code Calendar}. + */ + // @ts-ignore + public set(field: number, value: number): java.util.Calendar.Builder; + /** + * Sets field parameters to their values given by + * {@code fieldValuePairs} that are pairs of a field and its value. + * For example, + *

+                 * setFeilds(Calendar.YEAR, 2013,
+                 * Calendar.MONTH, Calendar.DECEMBER,
+                 * Calendar.DAY_OF_MONTH, 23);
+ * is equivalent to the sequence of the following + * {@link #set(int, int) set} calls: + *
+                 * set(Calendar.YEAR, 2013)
+                 * .set(Calendar.MONTH, Calendar.DECEMBER)
+                 * .set(Calendar.DAY_OF_MONTH, 23);
+ */ + // @ts-ignore + public setFields(fieldValuePairs: number): java.util.Calendar.Builder; + /** + * Sets the date field parameters to the values given by {@code year}, + * {@code month}, and {@code dayOfMonth}. This method is equivalent to + * a call to: + *
+                 * setFields(Calendar.YEAR, year,
+                 * Calendar.MONTH, month,
+                 * Calendar.DAY_OF_MONTH, dayOfMonth);
+ */ + // @ts-ignore + public setDate(year: number, month: number, dayOfMonth: number): java.util.Calendar.Builder; + /** + * Sets the time of day field parameters to the values given by + * {@code hourOfDay}, {@code minute}, and {@code second}. This method is + * equivalent to a call to: + *
+                 * setTimeOfDay(hourOfDay, minute, second, 0);
+ */ + // @ts-ignore + public setTimeOfDay(hourOfDay: number, minute: number, second: number): java.util.Calendar.Builder; + /** + * Sets the time of day field parameters to the values given by + * {@code hourOfDay}, {@code minute}, {@code second}, and + * {@code millis}. This method is equivalent to a call to: + *
+                 * setFields(Calendar.HOUR_OF_DAY, hourOfDay,
+                 * Calendar.MINUTE, minute,
+                 * Calendar.SECOND, second,
+                 * Calendar.MILLISECOND, millis);
+ */ + // @ts-ignore + public setTimeOfDay(hourOfDay: number, minute: number, second: number, millis: number): java.util.Calendar.Builder; + /** + * Sets the week-based date parameters to the values with the given + * date specifiers - week year, week of year, and day of week. + *

If the specified calendar doesn't support week dates, the + * {@link #build() build} method will throw an {@link IllegalArgumentException}. + */ + // @ts-ignore + public setWeekDate(weekYear: number, weekOfYear: number, dayOfWeek: number): java.util.Calendar.Builder; + /** + * Sets the time zone parameter to the given {@code zone}. If no time + * zone parameter is given to this {@code Caledar.Builder}, the + * {@linkplain TimeZone#getDefault() default + * TimeZone} will be used in the {@link #build() build} + * method. + */ + // @ts-ignore + public setTimeZone(zone: java.util.TimeZone): java.util.Calendar.Builder; + /** + * Sets the lenient mode parameter to the value given by {@code lenient}. + * If no lenient parameter is given to this {@code Calendar.Builder}, + * lenient mode will be used in the {@link #build() build} method. + */ + // @ts-ignore + public setLenient(lenient: boolean): java.util.Calendar.Builder; + /** + * Sets the calendar type parameter to the given {@code type}. The + * calendar type given by this method has precedence over any explicit + * or implicit calendar type given by the + * {@linkplain #setLocale(Locale) locale}. + *

In addition to the available calendar types returned by the + * {@link Calendar#getAvailableCalendarTypes() Calendar.getAvailableCalendarTypes} + * method, {@code "gregorian"} and {@code "iso8601"} as aliases of + * {@code "gregory"} can be used with this method. + */ + // @ts-ignore + public setCalendarType(type: string): java.util.Calendar.Builder; + /** + * Sets the locale parameter to the given {@code locale}. If no locale + * is given to this {@code Calendar.Builder}, the {@linkplain + * Locale#getDefault(Locale.Category) default Locale} + * for {@link Locale.Category#FORMAT} will be used. + *

If no calendar type is explicitly given by a call to the + * {@link #setCalendarType(String) setCalendarType} method, + * the {@code Locale} value is used to determine what type of + * {@code Calendar} to be built. + *

If no week definition parameters are explicitly given by a call to + * the {@link #setWeekDefinition(int,int) setWeekDefinition} method, the + * {@code Locale}'s default values are used. + */ + // @ts-ignore + public setLocale(locale: java.util.Locale): java.util.Calendar.Builder; + /** + * Sets the week definition parameters to the values given by + * {@code firstDayOfWeek} and {@code minimalDaysInFirstWeek} that are + * used to determine the first + * week of a year. The parameters given by this method have + * precedence over the default values given by the + * {@linkplain #setLocale(Locale) locale}. + */ + // @ts-ignore + public setWeekDefinition(firstDayOfWeek: number, minimalDaysInFirstWeek: number): java.util.Calendar.Builder; + /** + * Returns a {@code Calendar} built from the parameters set by the + * setter methods. The calendar type given by the {@link #setCalendarType(String) + * setCalendarType} method or the {@linkplain #setLocale(Locale) locale} is + * used to determine what {@code Calendar} to be created. If no explicit + * calendar type is given, the locale's default calendar is created. + *

If the calendar type is {@code "iso8601"}, the + * {@linkplain GregorianCalendar#setGregorianChange(Date) Gregorian change date} + * of a {@link GregorianCalendar} is set to {@code Date(Long.MIN_VALUE)} + * to be the proleptic Gregorian calendar. Its week definition + * parameters are also set to be compatible + * with the ISO 8601 standard. Note that the + * {@link GregorianCalendar#getCalendarType() getCalendarType} method of + * a {@code GregorianCalendar} created with {@code "iso8601"} returns + * {@code "gregory"}. + *

The default values are used for locale and time zone if these + * parameters haven't been given explicitly. + *

Any out of range field values are either normalized in lenient + * mode or detected as an invalid value in non-lenient mode. + */ + // @ts-ignore + public build(): java.util.Calendar; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Calendar.d.ts b/packages/types/dist/typings/jdk/java.util.Calendar.d.ts new file mode 100644 index 00000000..1a369a0c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Calendar.d.ts @@ -0,0 +1,646 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + abstract class Calendar extends java.lang.Object { + /** + * Constructs a Calendar with the default time zone + * and the default {@link java.util.Locale.Category#FORMAT FORMAT} + * locale. + */ + // @ts-ignore + constructor() + /** + * Constructs a calendar with the specified time zone and locale. + */ + // @ts-ignore + constructor(zone: java.util.TimeZone, aLocale: java.util.Locale) + // @ts-ignore + public static ERA: number; + // @ts-ignore + public static YEAR: number; + // @ts-ignore + public static MONTH: number; + // @ts-ignore + public static WEEK_OF_YEAR: number; + // @ts-ignore + public static WEEK_OF_MONTH: number; + // @ts-ignore + public static DATE: number; + // @ts-ignore + public static DAY_OF_MONTH: number; + // @ts-ignore + public static DAY_OF_YEAR: number; + // @ts-ignore + public static DAY_OF_WEEK: number; + // @ts-ignore + public static DAY_OF_WEEK_IN_MONTH: number; + // @ts-ignore + public static AM_PM: number; + // @ts-ignore + public static HOUR: number; + // @ts-ignore + public static HOUR_OF_DAY: number; + // @ts-ignore + public static MINUTE: number; + // @ts-ignore + public static SECOND: number; + // @ts-ignore + public static MILLISECOND: number; + // @ts-ignore + public static ZONE_OFFSET: number; + // @ts-ignore + public static DST_OFFSET: number; + // @ts-ignore + public static FIELD_COUNT: number; + // @ts-ignore + public static SUNDAY: number; + // @ts-ignore + public static MONDAY: number; + // @ts-ignore + public static TUESDAY: number; + // @ts-ignore + public static WEDNESDAY: number; + // @ts-ignore + public static THURSDAY: number; + // @ts-ignore + public static FRIDAY: number; + // @ts-ignore + public static SATURDAY: number; + // @ts-ignore + public static JANUARY: number; + // @ts-ignore + public static FEBRUARY: number; + // @ts-ignore + public static MARCH: number; + // @ts-ignore + public static APRIL: number; + // @ts-ignore + public static MAY: number; + // @ts-ignore + public static JUNE: number; + // @ts-ignore + public static JULY: number; + // @ts-ignore + public static AUGUST: number; + // @ts-ignore + public static SEPTEMBER: number; + // @ts-ignore + public static OCTOBER: number; + // @ts-ignore + public static NOVEMBER: number; + // @ts-ignore + public static DECEMBER: number; + // @ts-ignore + public static UNDECIMBER: number; + // @ts-ignore + public static AM: number; + // @ts-ignore + public static PM: number; + // @ts-ignore + public static ALL_STYLES: number; + // @ts-ignore + public static SHORT: number; + // @ts-ignore + public static LONG: number; + // @ts-ignore + public static NARROW_FORMAT: number; + // @ts-ignore + public static NARROW_STANDALONE: number; + // @ts-ignore + public static SHORT_FORMAT: number; + // @ts-ignore + public static LONG_FORMAT: number; + // @ts-ignore + public static SHORT_STANDALONE: number; + // @ts-ignore + public static LONG_STANDALONE: number; + // @ts-ignore + protected fields: number[]; + // @ts-ignore + protected time: number; + // @ts-ignore + protected isTimeSet: boolean; + // @ts-ignore + protected areFieldsSet: boolean; + /** + * Gets a calendar using the default time zone and locale. The + * Calendar returned is based on the current time + * in the default time zone with the default + * {@link Locale.Category#FORMAT FORMAT} locale. + */ + // @ts-ignore + public static getInstance(): java.util.Calendar; + /** + * Gets a calendar using the specified time zone and default locale. + * The Calendar returned is based on the current time + * in the given time zone with the default + * {@link Locale.Category#FORMAT FORMAT} locale. + */ + // @ts-ignore + public static getInstance(zone: java.util.TimeZone): java.util.Calendar; + /** + * Gets a calendar using the default time zone and specified locale. + * The Calendar returned is based on the current time + * in the default time zone with the given locale. + */ + // @ts-ignore + public static getInstance(aLocale: java.util.Locale): java.util.Calendar; + /** + * Gets a calendar with the specified time zone and locale. + * The Calendar returned is based on the current time + * in the given time zone with the given locale. + */ + // @ts-ignore + public static getInstance(zone: java.util.TimeZone, aLocale: java.util.Locale): java.util.Calendar; + /** + * Returns an array of all locales for which the getInstance + * methods of this class can return localized instances. + * The array returned must contain at least a Locale + * instance equal to {@link java.util.Locale#US Locale.US}. + */ + // @ts-ignore + public static getAvailableLocales(): java.util.Locale[]; + /** + * Converts the current calendar field values in {@link #fields fields[]} + * to the millisecond time value + * {@link #time}. + */ + // @ts-ignore + protected abstract computeTime(): void; + /** + * Converts the current millisecond time value {@link #time} + * to calendar field values in {@link #fields fields[]}. + * This allows you to sync up the calendar field values with + * a new time that is set for the calendar. The time is not + * recomputed first; to recompute the time, then the fields, call the + * {@link #complete()} method. + */ + // @ts-ignore + protected abstract computeFields(): void; + /** + * Returns a Date object representing this + * Calendar's time value (millisecond offset from the Epoch"). + */ + // @ts-ignore + public getTime(): java.util.Date; + /** + * Sets this Calendar's time with the given Date. + *

+ * Note: Calling setTime() with + * Date(Long.MAX_VALUE) or Date(Long.MIN_VALUE) + * may yield incorrect field values from get(). + */ + // @ts-ignore + public setTime(date: java.util.Date): void; + /** + * Returns this Calendar's time value in milliseconds. + */ + // @ts-ignore + public getTimeInMillis(): number; + /** + * Sets this Calendar's current time from the given long value. + */ + // @ts-ignore + public setTimeInMillis(millis: number): void; + /** + * Returns the value of the given calendar field. In lenient mode, + * all calendar fields are normalized. In non-lenient mode, all + * calendar fields are validated and this method throws an + * exception if any calendar fields have out-of-range values. The + * normalization and validation are handled by the + * {@link #complete()} method, which process is calendar + * system dependent. + */ + // @ts-ignore + public get(field: number): number; + /** + * Returns the value of the given calendar field. This method does + * not involve normalization or validation of the field value. + */ + // @ts-ignore + protected internalGet(field: number): number; + /** + * Sets the given calendar field to the given value. The value is not + * interpreted by this method regardless of the leniency mode. + */ + // @ts-ignore + public set(field: number, value: number): void; + /** + * Sets the values for the calendar fields YEAR, + * MONTH, and DAY_OF_MONTH. + * Previous values of other calendar fields are retained. If this is not desired, + * call {@link #clear()} first. + */ + // @ts-ignore + public set(year: number, month: number, date: number): void; + /** + * Sets the values for the calendar fields YEAR, + * MONTH, DAY_OF_MONTH, + * HOUR_OF_DAY, and MINUTE. + * Previous values of other fields are retained. If this is not desired, + * call {@link #clear()} first. + */ + // @ts-ignore + public set(year: number, month: number, date: number, hourOfDay: number, minute: number): void; + /** + * Sets the values for the fields YEAR, MONTH, + * DAY_OF_MONTH, HOUR_OF_DAY, MINUTE, and + * SECOND. + * Previous values of other fields are retained. If this is not desired, + * call {@link #clear()} first. + */ + // @ts-ignore + public set(year: number, month: number, date: number, hourOfDay: number, minute: number, second: number): void; + /** + * Sets all the calendar field values and the time value + * (millisecond offset from the Epoch) of + * this Calendar undefined. This means that {@link + * #isSet(int) isSet()} will return false for all the + * calendar fields, and the date and time calculations will treat + * the fields as if they had never been set. A + * Calendar implementation class may use its specific + * default field values for date/time calculations. For example, + * GregorianCalendar uses 1970 if the + * YEAR field value is undefined. + */ + // @ts-ignore + public clear(): void; + /** + * Sets the given calendar field value and the time value + * (millisecond offset from the Epoch) of + * this Calendar undefined. This means that {@link + * #isSet(int) isSet(field)} will return false, and + * the date and time calculations will treat the field as if it + * had never been set. A Calendar implementation + * class may use the field's specific default value for date and + * time calculations. + *

The {@link #HOUR_OF_DAY}, {@link #HOUR} and {@link #AM_PM} + * fields are handled independently and the the resolution rule for the time of + * day is applied. Clearing one of the fields doesn't reset + * the hour of day value of this Calendar. Use {@link + * #set(int,int) set(Calendar.HOUR_OF_DAY, 0)} to reset the hour + * value. + */ + // @ts-ignore + public clear(field: number): void; + /** + * Determines if the given calendar field has a value set, + * including cases that the value has been set by internal fields + * calculations triggered by a get method call. + */ + // @ts-ignore + public isSet(field: number): boolean; + /** + * Returns the string representation of the calendar + * field value in the given style and + * locale. If no string representation is + * applicable, null is returned. This method calls + * {@link Calendar#get(int) get(field)} to get the calendar + * field value if the string representation is + * applicable to the given calendar field. + *

For example, if this Calendar is a + * GregorianCalendar and its date is 2005-01-01, then + * the string representation of the {@link #MONTH} field would be + * "January" in the long style in an English locale or "Jan" in + * the short style. However, no string representation would be + * available for the {@link #DAY_OF_MONTH} field, and this method + * would return null. + *

The default implementation supports the calendar fields for + * which a {@link DateFormatSymbols} has names in the given + * locale. + */ + // @ts-ignore + public getDisplayName(field: number, style: number, locale: java.util.Locale): string; + /** + * Returns a {@code Map} containing all names of the calendar + * {@code field} in the given {@code style} and + * {@code locale} and their corresponding field values. For + * example, if this {@code Calendar} is a {@link + * GregorianCalendar}, the returned map would contain "Jan" to + * {@link #JANUARY}, "Feb" to {@link #FEBRUARY}, and so on, in the + * {@linkplain #SHORT short} style in an English locale. + *

Narrow names may not be unique due to use of single characters, + * such as "S" for Sunday and Saturday. In that case narrow names are not + * included in the returned {@code Map}. + *

The values of other calendar fields may be taken into + * account to determine a set of display names. For example, if + * this {@code Calendar} is a lunisolar calendar system and + * the year value given by the {@link #YEAR} field has a leap + * month, this method would return month names containing the leap + * month name, and month names are mapped to their values specific + * for the year. + *

The default implementation supports display names contained in + * a {@link DateFormatSymbols}. For example, if {@code field} + * is {@link #MONTH} and {@code style} is {@link + * #ALL_STYLES}, this method returns a {@code Map} containing + * all strings returned by {@link DateFormatSymbols#getShortMonths()} + * and {@link DateFormatSymbols#getMonths()}. + */ + // @ts-ignore + public getDisplayNames(field: number, style: number, locale: java.util.Locale): java.util.Map; + /** + * Fills in any unset fields in the calendar fields. First, the {@link + * #computeTime()} method is called if the time value (millisecond offset + * from the Epoch) has not been calculated from + * calendar field values. Then, the {@link #computeFields()} method is + * called to calculate all calendar field values. + */ + // @ts-ignore + protected complete(): void; + /** + * Returns an unmodifiable {@code Set} containing all calendar types + * supported by {@code Calendar} in the runtime environment. The available + * calendar types can be used for the Unicode locale extensions. + * The {@code Set} returned contains at least {@code "gregory"}. The + * calendar types don't include aliases, such as {@code "gregorian"} for + * {@code "gregory"}. + */ + // @ts-ignore + public static getAvailableCalendarTypes(): java.util.Set; + /** + * Returns the calendar type of this {@code Calendar}. Calendar types are + * defined by the Unicode Locale Data Markup Language (LDML) + * specification. + *

The default implementation of this method returns the class name of + * this {@code Calendar} instance. Any subclasses that implement + * LDML-defined calendar systems should override this method to return + * appropriate calendar types. + */ + // @ts-ignore + public getCalendarType(): string; + /** + * Compares this Calendar to the specified + * Object. The result is true if and only if + * the argument is a Calendar object of the same calendar + * system that represents the same time value (millisecond offset from the + * Epoch) under the same + * Calendar parameters as this object. + *

The Calendar parameters are the values represented + * by the isLenient, getFirstDayOfWeek, + * getMinimalDaysInFirstWeek and getTimeZone + * methods. If there is any difference in those parameters + * between the two Calendars, this method returns + * false. + *

Use the {@link #compareTo(Calendar) compareTo} method to + * compare only the time values. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a hash code for this calendar. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns whether this Calendar represents a time + * before the time represented by the specified + * Object. This method is equivalent to: + *

{@code
+             * compareTo(when) < 0
+             * }
+ * if and only if when is a Calendar + * instance. Otherwise, the method returns false. + */ + // @ts-ignore + public before(when: java.lang.Object): boolean; + /** + * Returns whether this Calendar represents a time + * after the time represented by the specified + * Object. This method is equivalent to: + *
{@code
+             * compareTo(when) > 0
+             * }
+ * if and only if when is a Calendar + * instance. Otherwise, the method returns false. + */ + // @ts-ignore + public after(when: java.lang.Object): boolean; + /** + * Compares the time values (millisecond offsets from the Epoch) represented by two + * Calendar objects. + */ + // @ts-ignore + public compareTo(anotherCalendar: java.util.Calendar): number; + /** + * Adds or subtracts the specified amount of time to the given calendar field, + * based on the calendar's rules. For example, to subtract 5 days from + * the current time of the calendar, you can achieve it by calling: + *

add(Calendar.DAY_OF_MONTH, -5). + */ + // @ts-ignore + public abstract add(field: number, amount: number): void; + /** + * Adds or subtracts (up/down) a single unit of time on the given time + * field without changing larger fields. For example, to roll the current + * date up by one day, you can achieve it by calling: + *

roll(Calendar.DATE, true). + * When rolling on the year or Calendar.YEAR field, it will roll the year + * value in the range between 1 and the value returned by calling + * getMaximum(Calendar.YEAR). + * When rolling on the month or Calendar.MONTH field, other fields like + * date might conflict and, need to be changed. For instance, + * rolling the month on the date 01/31/96 will result in 02/29/96. + * When rolling on the hour-in-day or Calendar.HOUR_OF_DAY field, it will + * roll the hour value in the range between 0 and 23, which is zero-based. + */ + // @ts-ignore + public abstract roll(field: number, up: boolean): void; + /** + * Adds the specified (signed) amount to the specified calendar field + * without changing larger fields. A negative amount means to roll + * down. + *

NOTE: This default implementation on Calendar just repeatedly calls the + * version of {@link #roll(int,boolean) roll()} that rolls by one unit. This may not + * always do the right thing. For example, if the DAY_OF_MONTH field is 31, + * rolling through February will leave it set to 28. The GregorianCalendar + * version of this function takes care of this problem. Other subclasses + * should also provide overrides of this function that do the right thing. + */ + // @ts-ignore + public roll(field: number, amount: number): void; + /** + * Sets the time zone with the given time zone value. + */ + // @ts-ignore + public setTimeZone(value: java.util.TimeZone): void; + /** + * Gets the time zone. + */ + // @ts-ignore + public getTimeZone(): java.util.TimeZone; + /** + * Specifies whether or not date/time interpretation is to be lenient. With + * lenient interpretation, a date such as "February 942, 1996" will be + * treated as being equivalent to the 941st day after February 1, 1996. + * With strict (non-lenient) interpretation, such dates will cause an exception to be + * thrown. The default is lenient. + */ + // @ts-ignore + public setLenient(lenient: boolean): void; + /** + * Tells whether date/time interpretation is to be lenient. + */ + // @ts-ignore + public isLenient(): boolean; + /** + * Sets what the first day of the week is; e.g., SUNDAY in the U.S., + * MONDAY in France. + */ + // @ts-ignore + public setFirstDayOfWeek(value: number): void; + /** + * Gets what the first day of the week is; e.g., SUNDAY in the U.S., + * MONDAY in France. + */ + // @ts-ignore + public getFirstDayOfWeek(): number; + /** + * Sets what the minimal days required in the first week of the year are; + * For example, if the first week is defined as one that contains the first + * day of the first month of a year, call this method with value 1. If it + * must be a full week, use value 7. + */ + // @ts-ignore + public setMinimalDaysInFirstWeek(value: number): void; + /** + * Gets what the minimal days required in the first week of the year are; + * e.g., if the first week is defined as one that contains the first day + * of the first month of a year, this method returns 1. If + * the minimal days required must be a full week, this method + * returns 7. + */ + // @ts-ignore + public getMinimalDaysInFirstWeek(): number; + /** + * Returns whether this {@code Calendar} supports week dates. + *

The default implementation of this method returns {@code false}. + */ + // @ts-ignore + public isWeekDateSupported(): boolean; + /** + * Returns the week year represented by this {@code Calendar}. The + * week year is in sync with the week cycle. The {@linkplain + * #getFirstDayOfWeek() first day of the first week} is the first + * day of the week year. + *

The default implementation of this method throws an + * {@link UnsupportedOperationException}. + */ + // @ts-ignore + public getWeekYear(): number; + /** + * Sets the date of this {@code Calendar} with the the given date + * specifiers - week year, week of year, and day of week. + *

Unlike the {@code set} method, all of the calendar fields + * and {@code time} values are calculated upon return. + *

If {@code weekOfYear} is out of the valid week-of-year range + * in {@code weekYear}, the {@code weekYear} and {@code + * weekOfYear} values are adjusted in lenient mode, or an {@code + * IllegalArgumentException} is thrown in non-lenient mode. + *

The default implementation of this method throws an + * {@code UnsupportedOperationException}. + */ + // @ts-ignore + public setWeekDate(weekYear: number, weekOfYear: number, dayOfWeek: number): void; + /** + * Returns the number of weeks in the week year represented by this + * {@code Calendar}. + *

The default implementation of this method throws an + * {@code UnsupportedOperationException}. + */ + // @ts-ignore + public getWeeksInWeekYear(): number; + /** + * Returns the minimum value for the given calendar field of this + * Calendar instance. The minimum value is defined as + * the smallest value returned by the {@link #get(int) get} method + * for any possible time value. The minimum value depends on + * calendar system specific parameters of the instance. + */ + // @ts-ignore + public abstract getMinimum(field: number): number; + /** + * Returns the maximum value for the given calendar field of this + * Calendar instance. The maximum value is defined as + * the largest value returned by the {@link #get(int) get} method + * for any possible time value. The maximum value depends on + * calendar system specific parameters of the instance. + */ + // @ts-ignore + public abstract getMaximum(field: number): number; + /** + * Returns the highest minimum value for the given calendar field + * of this Calendar instance. The highest minimum + * value is defined as the largest value returned by {@link + * #getActualMinimum(int)} for any possible time value. The + * greatest minimum value depends on calendar system specific + * parameters of the instance. + */ + // @ts-ignore + public abstract getGreatestMinimum(field: number): number; + /** + * Returns the lowest maximum value for the given calendar field + * of this Calendar instance. The lowest maximum + * value is defined as the smallest value returned by {@link + * #getActualMaximum(int)} for any possible time value. The least + * maximum value depends on calendar system specific parameters of + * the instance. For example, a Calendar for the + * Gregorian calendar system returns 28 for the + * DAY_OF_MONTH field, because the 28th is the last + * day of the shortest month of this calendar, February in a + * common year. + */ + // @ts-ignore + public abstract getLeastMaximum(field: number): number; + /** + * Returns the minimum value that the specified calendar field + * could have, given the time value of this Calendar. + *

The default implementation of this method uses an iterative + * algorithm to determine the actual minimum value for the + * calendar field. Subclasses should, if possible, override this + * with a more efficient implementation - in many cases, they can + * simply return getMinimum(). + */ + // @ts-ignore + public getActualMinimum(field: number): number; + /** + * Returns the maximum value that the specified calendar field + * could have, given the time value of this + * Calendar. For example, the actual maximum value of + * the MONTH field is 12 in some years, and 13 in + * other years in the Hebrew calendar system. + *

The default implementation of this method uses an iterative + * algorithm to determine the actual maximum value for the + * calendar field. Subclasses should, if possible, override this + * with a more efficient implementation. + */ + // @ts-ignore + public getActualMaximum(field: number): number; + /** + * Creates and returns a copy of this object. + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Return a string representation of this calendar. This method + * is intended to be used only for debugging purposes, and the + * format of the returned string may vary between implementations. + * The returned string may be empty but may not be null. + */ + // @ts-ignore + public toString(): string; + /** + * Converts this object to an {@link Instant}. + *

+ * The conversion creates an {@code Instant} that represents the + * same point on the time-line as this {@code Calendar}. + */ + // @ts-ignore + public toInstant(): java.time.Instant; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Collection.d.ts b/packages/types/dist/typings/jdk/java.util.Collection.d.ts new file mode 100644 index 00000000..26a9885d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Collection.d.ts @@ -0,0 +1,237 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + interface Collection { + /** + * Returns the number of elements in this collection. If this collection + * contains more than Integer.MAX_VALUE elements, returns + * Integer.MAX_VALUE. + */ + // @ts-ignore + size(): number; + /** + * Returns true if this collection contains no elements. + */ + // @ts-ignore + isEmpty(): boolean; + /** + * Returns true if this collection contains the specified element. + * More formally, returns true if and only if this collection + * contains at least one element e such that + * (o==null ? e==null : o.equals(e)). + */ + // @ts-ignore + contains(o: java.lang.Object): boolean; + /** + * Returns an iterator over the elements in this collection. There are no + * guarantees concerning the order in which the elements are returned + * (unless this collection is an instance of some class that provides a + * guarantee). + */ + // @ts-ignore + iterator(): java.util.Iterator; + /** + * Returns an array containing all of the elements in this collection. + * If this collection makes any guarantees as to what order its elements + * are returned by its iterator, this method must return the elements in + * the same order. + *

The returned array will be "safe" in that no references to it are + * maintained by this collection. (In other words, this method must + * allocate a new array even if this collection is backed by an array). + * The caller is thus free to modify the returned array. + *

This method acts as bridge between array-based and collection-based + * APIs. + */ + // @ts-ignore + toArray(): java.lang.Object[]; + /** + * Returns an array containing all of the elements in this collection; + * the runtime type of the returned array is that of the specified array. + * If the collection fits in the specified array, it is returned therein. + * Otherwise, a new array is allocated with the runtime type of the + * specified array and the size of this collection. + *

If this collection fits in the specified array with room to spare + * (i.e., the array has more elements than this collection), the element + * in the array immediately following the end of the collection is set to + * null. (This is useful in determining the length of this + * collection only if the caller knows that this collection does + * not contain any null elements.) + *

If this collection makes any guarantees as to what order its elements + * are returned by its iterator, this method must return the elements in + * the same order. + *

Like the {@link #toArray()} method, this method acts as bridge between + * array-based and collection-based APIs. Further, this method allows + * precise control over the runtime type of the output array, and may, + * under certain circumstances, be used to save allocation costs. + *

Suppose x is a collection known to contain only strings. + * The following code can be used to dump the collection into a newly + * allocated array of String: + *

+             * String[] y = x.toArray(new String[0]);
+ * Note that toArray(new Object[0]) is identical in function to + * toArray(). + */ + // @ts-ignore + toArray(a: java.lang.Object): java.lang.Object[]; + /** + * Ensures that this collection contains the specified element (optional + * operation). Returns true if this collection changed as a + * result of the call. (Returns false if this collection does + * not permit duplicates and already contains the specified element.)

+ * Collections that support this operation may place limitations on what + * elements may be added to this collection. In particular, some + * collections will refuse to add null elements, and others will + * impose restrictions on the type of elements that may be added. + * Collection classes should clearly specify in their documentation any + * restrictions on what elements may be added.

+ * If a collection refuses to add a particular element for any reason + * other than that it already contains the element, it must throw + * an exception (rather than returning false). This preserves + * the invariant that a collection always contains the specified element + * after this call returns. + */ + // @ts-ignore + add(e: java.lang.Object): boolean; + /** + * Removes a single instance of the specified element from this + * collection, if it is present (optional operation). More formally, + * removes an element e such that + * (o==null ? e==null : o.equals(e)), if + * this collection contains one or more such elements. Returns + * true if this collection contained the specified element (or + * equivalently, if this collection changed as a result of the call). + */ + // @ts-ignore + remove(o: java.lang.Object): boolean; + /** + * Returns true if this collection contains all of the elements + * in the specified collection. + */ + // @ts-ignore + containsAll(c: java.util.Collection): boolean; + /** + * Adds all of the elements in the specified collection to this collection + * (optional operation). The behavior of this operation is undefined if + * the specified collection is modified while the operation is in progress. + * (This implies that the behavior of this call is undefined if the + * specified collection is this collection, and this collection is + * nonempty.) + */ + // @ts-ignore + addAll(c: java.util.Collection): boolean; + /** + * Removes all of this collection's elements that are also contained in the + * specified collection (optional operation). After this call returns, + * this collection will contain no elements in common with the specified + * collection. + */ + // @ts-ignore + removeAll(c: java.util.Collection): boolean; + /** + * Removes all of the elements of this collection that satisfy the given + * predicate. Errors or runtime exceptions thrown during iteration or by + * the predicate are relayed to the caller. + */ + // @ts-ignore + removeIf(filter: java.util.function$.Predicate): boolean; + /** + * Retains only the elements in this collection that are contained in the + * specified collection (optional operation). In other words, removes from + * this collection all of its elements that are not contained in the + * specified collection. + */ + // @ts-ignore + retainAll(c: java.util.Collection): boolean; + /** + * Removes all of the elements from this collection (optional operation). + * The collection will be empty after this method returns. + */ + // @ts-ignore + clear(): void; + /** + * Compares the specified object with this collection for equality.

+ * While the Collection interface adds no stipulations to the + * general contract for the Object.equals, programmers who + * implement the Collection interface "directly" (in other words, + * create a class that is a Collection but is not a Set + * or a List) must exercise care if they choose to override the + * Object.equals. It is not necessary to do so, and the simplest + * course of action is to rely on Object's implementation, but + * the implementor may wish to implement a "value comparison" in place of + * the default "reference comparison." (The List and + * Set interfaces mandate such value comparisons.)

+ * The general contract for the Object.equals method states that + * equals must be symmetric (in other words, a.equals(b) if and + * only if b.equals(a)). The contracts for List.equals + * and Set.equals state that lists are only equal to other lists, + * and sets to other sets. Thus, a custom equals method for a + * collection class that implements neither the List nor + * Set interface must return false when this collection + * is compared to any list or set. (By the same logic, it is not possible + * to write a class that correctly implements both the Set and + * List interfaces.) + */ + // @ts-ignore + equals(o: java.lang.Object): boolean; + /** + * Returns the hash code value for this collection. While the + * Collection interface adds no stipulations to the general + * contract for the Object.hashCode method, programmers should + * take note that any class that overrides the Object.equals + * method must also override the Object.hashCode method in order + * to satisfy the general contract for the Object.hashCode method. + * In particular, c1.equals(c2) implies that + * c1.hashCode()==c2.hashCode(). + */ + // @ts-ignore + hashCode(): number; + /** + * Creates a {@link Spliterator} over the elements in this collection. + * Implementations should document characteristic values reported by the + * spliterator. Such characteristic values are not required to be reported + * if the spliterator reports {@link Spliterator#SIZED} and this collection + * contains no elements. + *

The default implementation should be overridden by subclasses that + * can return a more efficient spliterator. In order to + * preserve expected laziness behavior for the {@link #stream()} and + * {@link #parallelStream()}} methods, spliterators should either have the + * characteristic of {@code IMMUTABLE} or {@code CONCURRENT}, or be + * late-binding. + * If none of these is practical, the overriding class should describe the + * spliterator's documented policy of binding and structural interference, + * and should override the {@link #stream()} and {@link #parallelStream()} + * methods to create streams using a {@code Supplier} of the spliterator, + * as in: + *

{@code
+             * Stream s = StreamSupport.stream(() -> spliterator(), spliteratorCharacteristics)
+             * }
+ *

These requirements ensure that streams produced by the + * {@link #stream()} and {@link #parallelStream()} methods will reflect the + * contents of the collection as of initiation of the terminal stream + * operation. + */ + // @ts-ignore + spliterator(): java.util.Spliterator; + /** + * Returns a sequential {@code Stream} with this collection as its source. + *

This method should be overridden when the {@link #spliterator()} + * method cannot return a spliterator that is {@code IMMUTABLE}, + * {@code CONCURRENT}, or late-binding. (See {@link #spliterator()} + * for details.) + */ + // @ts-ignore + stream(): java.util.stream.Stream; + /** + * Returns a possibly parallel {@code Stream} with this collection as its + * source. It is allowable for this method to return a sequential stream. + *

This method should be overridden when the {@link #spliterator()} + * method cannot return a spliterator that is {@code IMMUTABLE}, + * {@code CONCURRENT}, or late-binding. (See {@link #spliterator()} + * for details.) + */ + // @ts-ignore + parallelStream(): java.util.stream.Stream; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Collections.d.ts b/packages/types/dist/typings/jdk/java.util.Collections.d.ts new file mode 100644 index 00000000..8d6ac87b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Collections.d.ts @@ -0,0 +1,1113 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class Collections extends java.lang.Object { + // @ts-ignore + public static EMPTY_SET: java.util.Set; + // @ts-ignore + public static EMPTY_LIST: java.util.List; + // @ts-ignore + public static EMPTY_MAP: java.util.Map; + /** + * Sorts the specified list into ascending order, according to the + * {@linkplain Comparable natural ordering} of its elements. + * All elements in the list must implement the {@link Comparable} + * interface. Furthermore, all elements in the list must be + * mutually comparable (that is, {@code e1.compareTo(e2)} + * must not throw a {@code ClassCastException} for any elements + * {@code e1} and {@code e2} in the list). + *

This sort is guaranteed to be stable: equal elements will + * not be reordered as a result of the sort. + *

The specified list must be modifiable, but need not be resizable. + */ + // @ts-ignore + public static sort(list: java.util.List): void; + /** + * Sorts the specified list according to the order induced by the + * specified comparator. All elements in the list must be mutually + * comparable using the specified comparator (that is, + * {@code c.compare(e1, e2)} must not throw a {@code ClassCastException} + * for any elements {@code e1} and {@code e2} in the list). + *

This sort is guaranteed to be stable: equal elements will + * not be reordered as a result of the sort. + *

The specified list must be modifiable, but need not be resizable. + */ + // @ts-ignore + public static sort(list: java.util.List, c: java.util.Comparator): void; + /** + * Searches the specified list for the specified object using the binary + * search algorithm. The list must be sorted into ascending order + * according to the {@linkplain Comparable natural ordering} of its + * elements (as by the {@link #sort(List)} method) prior to making this + * call. If it is not sorted, the results are undefined. If the list + * contains multiple elements equal to the specified object, there is no + * guarantee which one will be found. + *

This method runs in log(n) time for a "random access" list (which + * provides near-constant-time positional access). If the specified list + * does not implement the {@link RandomAccess} interface and is large, + * this method will do an iterator-based binary search that performs + * O(n) link traversals and O(log n) element comparisons. + */ + // @ts-ignore + public static binarySearch(list: java.util.List, key: java.lang.Object): number; + /** + * Searches the specified list for the specified object using the binary + * search algorithm. The list must be sorted into ascending order + * according to the specified comparator (as by the + * {@link #sort(List, Comparator) sort(List, Comparator)} + * method), prior to making this call. If it is + * not sorted, the results are undefined. If the list contains multiple + * elements equal to the specified object, there is no guarantee which one + * will be found. + *

This method runs in log(n) time for a "random access" list (which + * provides near-constant-time positional access). If the specified list + * does not implement the {@link RandomAccess} interface and is large, + * this method will do an iterator-based binary search that performs + * O(n) link traversals and O(log n) element comparisons. + */ + // @ts-ignore + public static binarySearch(list: java.util.List, key: java.lang.Object, c: java.util.Comparator): number; + /** + * Reverses the order of the elements in the specified list.

+ * This method runs in linear time. + */ + // @ts-ignore + public static reverse(list: java.util.List): void; + /** + * Randomly permutes the specified list using a default source of + * randomness. All permutations occur with approximately equal + * likelihood. + *

The hedge "approximately" is used in the foregoing description because + * default source of randomness is only approximately an unbiased source + * of independently chosen bits. If it were a perfect source of randomly + * chosen bits, then the algorithm would choose permutations with perfect + * uniformity. + *

This implementation traverses the list backwards, from the last + * element up to the second, repeatedly swapping a randomly selected element + * into the "current position". Elements are randomly selected from the + * portion of the list that runs from the first element to the current + * position, inclusive. + *

This method runs in linear time. If the specified list does not + * implement the {@link RandomAccess} interface and is large, this + * implementation dumps the specified list into an array before shuffling + * it, and dumps the shuffled array back into the list. This avoids the + * quadratic behavior that would result from shuffling a "sequential + * access" list in place. + */ + // @ts-ignore + public static shuffle(list: java.util.List): void; + /** + * Randomly permute the specified list using the specified source of + * randomness. All permutations occur with equal likelihood + * assuming that the source of randomness is fair.

+ * This implementation traverses the list backwards, from the last element + * up to the second, repeatedly swapping a randomly selected element into + * the "current position". Elements are randomly selected from the + * portion of the list that runs from the first element to the current + * position, inclusive.

+ * This method runs in linear time. If the specified list does not + * implement the {@link RandomAccess} interface and is large, this + * implementation dumps the specified list into an array before shuffling + * it, and dumps the shuffled array back into the list. This avoids the + * quadratic behavior that would result from shuffling a "sequential + * access" list in place. + */ + // @ts-ignore + public static shuffle(list: java.util.List, rnd: java.util.Random): void; + /** + * Swaps the elements at the specified positions in the specified list. + * (If the specified positions are equal, invoking this method leaves + * the list unchanged.) + */ + // @ts-ignore + public static swap(list: java.util.List, i: number, j: number): void; + /** + * Replaces all of the elements of the specified list with the specified + * element.

+ * This method runs in linear time. + */ + // @ts-ignore + public static fill(list: java.util.List, obj: java.lang.Object): void; + /** + * Copies all of the elements from one list into another. After the + * operation, the index of each copied element in the destination list + * will be identical to its index in the source list. The destination + * list must be at least as long as the source list. If it is longer, the + * remaining elements in the destination list are unaffected.

+ * This method runs in linear time. + */ + // @ts-ignore + public static copy(dest: java.util.List, src: java.util.List): void; + /** + * Returns the minimum element of the given collection, according to the + * natural ordering of its elements. All elements in the + * collection must implement the Comparable interface. + * Furthermore, all elements in the collection must be mutually + * comparable (that is, e1.compareTo(e2) must not throw a + * ClassCastException for any elements e1 and + * e2 in the collection).

+ * This method iterates over the entire collection, hence it requires + * time proportional to the size of the collection. + */ + // @ts-ignore + public static min(coll: java.util.Collection): java.lang.Object; + /** + * Returns the minimum element of the given collection, according to the + * order induced by the specified comparator. All elements in the + * collection must be mutually comparable by the specified + * comparator (that is, comp.compare(e1, e2) must not throw a + * ClassCastException for any elements e1 and + * e2 in the collection).

+ * This method iterates over the entire collection, hence it requires + * time proportional to the size of the collection. + */ + // @ts-ignore + public static min(coll: java.util.Collection, comp: java.util.Comparator): java.lang.Object; + /** + * Returns the maximum element of the given collection, according to the + * natural ordering of its elements. All elements in the + * collection must implement the Comparable interface. + * Furthermore, all elements in the collection must be mutually + * comparable (that is, e1.compareTo(e2) must not throw a + * ClassCastException for any elements e1 and + * e2 in the collection).

+ * This method iterates over the entire collection, hence it requires + * time proportional to the size of the collection. + */ + // @ts-ignore + public static max(coll: java.util.Collection): java.lang.Object; + /** + * Returns the maximum element of the given collection, according to the + * order induced by the specified comparator. All elements in the + * collection must be mutually comparable by the specified + * comparator (that is, comp.compare(e1, e2) must not throw a + * ClassCastException for any elements e1 and + * e2 in the collection).

+ * This method iterates over the entire collection, hence it requires + * time proportional to the size of the collection. + */ + // @ts-ignore + public static max(coll: java.util.Collection, comp: java.util.Comparator): java.lang.Object; + /** + * Rotates the elements in the specified list by the specified distance. + * After calling this method, the element at index i will be + * the element previously at index (i - distance) mod + * list.size(), for all values of i between 0 + * and list.size()-1, inclusive. (This method has no effect on + * the size of the list.) + *

For example, suppose list comprises [t, a, n, k, s]. + * After invoking Collections.rotate(list, 1) (or + * Collections.rotate(list, -4)), list will comprise + * [s, t, a, n, k]. + *

Note that this method can usefully be applied to sublists to + * move one or more elements within a list while preserving the + * order of the remaining elements. For example, the following idiom + * moves the element at index j forward to position + * k (which must be greater than or equal to j): + *

+             * Collections.rotate(list.subList(j, k+1), -1);
+             * 
+ * To make this concrete, suppose list comprises + * [a, b, c, d, e]. To move the element at index 1 + * (b) forward two positions, perform the following invocation: + *
+             * Collections.rotate(l.subList(1, 4), -1);
+             * 
+ * The resulting list is [a, c, d, b, e]. + *

To move more than one element forward, increase the absolute value + * of the rotation distance. To move elements backward, use a positive + * shift distance. + *

If the specified list is small or implements the {@link + * RandomAccess} interface, this implementation exchanges the first + * element into the location it should go, and then repeatedly exchanges + * the displaced element into the location it should go until a displaced + * element is swapped into the first element. If necessary, the process + * is repeated on the second and successive elements, until the rotation + * is complete. If the specified list is large and doesn't implement the + * RandomAccess interface, this implementation breaks the + * list into two sublist views around index -distance mod size. + * Then the {@link #reverse(List)} method is invoked on each sublist view, + * and finally it is invoked on the entire list. For a more complete + * description of both algorithms, see Section 2.3 of Jon Bentley's + * Programming Pearls (Addison-Wesley, 1986). + */ + // @ts-ignore + public static rotate(list: java.util.List, distance: number): void; + /** + * Replaces all occurrences of one specified value in a list with another. + * More formally, replaces with newVal each element e + * in list such that + * (oldVal==null ? e==null : oldVal.equals(e)). + * (This method has no effect on the size of the list.) + */ + // @ts-ignore + public static replaceAll(list: java.util.List, oldVal: java.lang.Object, newVal: java.lang.Object): boolean; + /** + * Returns the starting position of the first occurrence of the specified + * target list within the specified source list, or -1 if there is no + * such occurrence. More formally, returns the lowest index i + * such that {@code source.subList(i, i+target.size()).equals(target)}, + * or -1 if there is no such index. (Returns -1 if + * {@code target.size() > source.size()}) + *

This implementation uses the "brute force" technique of scanning + * over the source list, looking for a match with the target at each + * location in turn. + */ + // @ts-ignore + public static indexOfSubList(source: java.util.List, target: java.util.List): number; + /** + * Returns the starting position of the last occurrence of the specified + * target list within the specified source list, or -1 if there is no such + * occurrence. More formally, returns the highest index i + * such that {@code source.subList(i, i+target.size()).equals(target)}, + * or -1 if there is no such index. (Returns -1 if + * {@code target.size() > source.size()}) + *

This implementation uses the "brute force" technique of iterating + * over the source list, looking for a match with the target at each + * location in turn. + */ + // @ts-ignore + public static lastIndexOfSubList(source: java.util.List, target: java.util.List): number; + /** + * Returns an unmodifiable view of the specified collection. This method + * allows modules to provide users with "read-only" access to internal + * collections. Query operations on the returned collection "read through" + * to the specified collection, and attempts to modify the returned + * collection, whether direct or via its iterator, result in an + * UnsupportedOperationException.

+ * The returned collection does not pass the hashCode and equals + * operations through to the backing collection, but relies on + * Object's equals and hashCode methods. This + * is necessary to preserve the contracts of these operations in the case + * that the backing collection is a set or a list.

+ * The returned collection will be serializable if the specified collection + * is serializable. + */ + // @ts-ignore + public static unmodifiableCollection(c: java.util.Collection): java.util.Collection; + /** + * Returns an unmodifiable view of the specified set. This method allows + * modules to provide users with "read-only" access to internal sets. + * Query operations on the returned set "read through" to the specified + * set, and attempts to modify the returned set, whether direct or via its + * iterator, result in an UnsupportedOperationException.

+ * The returned set will be serializable if the specified set + * is serializable. + */ + // @ts-ignore + public static unmodifiableSet(s: java.util.Set): java.util.Set; + /** + * Returns an unmodifiable view of the specified sorted set. This method + * allows modules to provide users with "read-only" access to internal + * sorted sets. Query operations on the returned sorted set "read + * through" to the specified sorted set. Attempts to modify the returned + * sorted set, whether direct, via its iterator, or via its + * subSet, headSet, or tailSet views, result in + * an UnsupportedOperationException.

+ * The returned sorted set will be serializable if the specified sorted set + * is serializable. + */ + // @ts-ignore + public static unmodifiableSortedSet(s: java.util.SortedSet): java.util.SortedSet; + /** + * Returns an unmodifiable view of the specified navigable set. This method + * allows modules to provide users with "read-only" access to internal + * navigable sets. Query operations on the returned navigable set "read + * through" to the specified navigable set. Attempts to modify the returned + * navigable set, whether direct, via its iterator, or via its + * {@code subSet}, {@code headSet}, or {@code tailSet} views, result in + * an {@code UnsupportedOperationException}.

+ * The returned navigable set will be serializable if the specified + * navigable set is serializable. + */ + // @ts-ignore + public static unmodifiableNavigableSet(s: java.util.NavigableSet): java.util.NavigableSet; + /** + * Returns an unmodifiable view of the specified list. This method allows + * modules to provide users with "read-only" access to internal + * lists. Query operations on the returned list "read through" to the + * specified list, and attempts to modify the returned list, whether + * direct or via its iterator, result in an + * UnsupportedOperationException.

+ * The returned list will be serializable if the specified list + * is serializable. Similarly, the returned list will implement + * {@link RandomAccess} if the specified list does. + */ + // @ts-ignore + public static unmodifiableList(list: java.util.List): java.util.List; + /** + * Returns an unmodifiable view of the specified map. This method + * allows modules to provide users with "read-only" access to internal + * maps. Query operations on the returned map "read through" + * to the specified map, and attempts to modify the returned + * map, whether direct or via its collection views, result in an + * UnsupportedOperationException.

+ * The returned map will be serializable if the specified map + * is serializable. + */ + // @ts-ignore + public static unmodifiableMap(m: java.util.Map): java.util.Map; + /** + * Returns an unmodifiable view of the specified sorted map. This method + * allows modules to provide users with "read-only" access to internal + * sorted maps. Query operations on the returned sorted map "read through" + * to the specified sorted map. Attempts to modify the returned + * sorted map, whether direct, via its collection views, or via its + * subMap, headMap, or tailMap views, result in + * an UnsupportedOperationException.

+ * The returned sorted map will be serializable if the specified sorted map + * is serializable. + */ + // @ts-ignore + public static unmodifiableSortedMap(m: java.util.SortedMap): java.util.SortedMap; + /** + * Returns an unmodifiable view of the specified navigable map. This method + * allows modules to provide users with "read-only" access to internal + * navigable maps. Query operations on the returned navigable map "read + * through" to the specified navigable map. Attempts to modify the returned + * navigable map, whether direct, via its collection views, or via its + * {@code subMap}, {@code headMap}, or {@code tailMap} views, result in + * an {@code UnsupportedOperationException}.

+ * The returned navigable map will be serializable if the specified + * navigable map is serializable. + */ + // @ts-ignore + public static unmodifiableNavigableMap(m: java.util.NavigableMap): java.util.NavigableMap; + /** + * Returns a synchronized (thread-safe) collection backed by the specified + * collection. In order to guarantee serial access, it is critical that + * all access to the backing collection is accomplished + * through the returned collection.

+ * It is imperative that the user manually synchronize on the returned + * collection when traversing it via {@link Iterator}, {@link Spliterator} + * or {@link Stream}: + *

+             * Collection c = Collections.synchronizedCollection(myCollection);
+             * ...
+             * synchronized (c) {
+             * Iterator i = c.iterator(); // Must be in the synchronized block
+             * while (i.hasNext())
+             * foo(i.next());
+             * }
+             * 
+ * Failure to follow this advice may result in non-deterministic behavior. + *

The returned collection does not pass the {@code hashCode} + * and {@code equals} operations through to the backing collection, but + * relies on {@code Object}'s equals and hashCode methods. This is + * necessary to preserve the contracts of these operations in the case + * that the backing collection is a set or a list.

+ * The returned collection will be serializable if the specified collection + * is serializable. + */ + // @ts-ignore + public static synchronizedCollection(c: java.util.Collection): java.util.Collection; + /** + * Returns a synchronized (thread-safe) set backed by the specified + * set. In order to guarantee serial access, it is critical that + * all access to the backing set is accomplished + * through the returned set.

+ * It is imperative that the user manually synchronize on the returned + * set when iterating over it: + *

+             * Set s = Collections.synchronizedSet(new HashSet());
+             * ...
+             * synchronized (s) {
+             * Iterator i = s.iterator(); // Must be in the synchronized block
+             * while (i.hasNext())
+             * foo(i.next());
+             * }
+             * 
+ * Failure to follow this advice may result in non-deterministic behavior. + *

The returned set will be serializable if the specified set is + * serializable. + */ + // @ts-ignore + public static synchronizedSet(s: java.util.Set): java.util.Set; + /** + * Returns a synchronized (thread-safe) sorted set backed by the specified + * sorted set. In order to guarantee serial access, it is critical that + * all access to the backing sorted set is accomplished + * through the returned sorted set (or its views).

+ * It is imperative that the user manually synchronize on the returned + * sorted set when iterating over it or any of its subSet, + * headSet, or tailSet views. + *

+             * SortedSet s = Collections.synchronizedSortedSet(new TreeSet());
+             * ...
+             * synchronized (s) {
+             * Iterator i = s.iterator(); // Must be in the synchronized block
+             * while (i.hasNext())
+             * foo(i.next());
+             * }
+             * 
+ * or: + *
+             * SortedSet s = Collections.synchronizedSortedSet(new TreeSet());
+             * SortedSet s2 = s.headSet(foo);
+             * ...
+             * synchronized (s) {  // Note: s, not s2!!!
+             * Iterator i = s2.iterator(); // Must be in the synchronized block
+             * while (i.hasNext())
+             * foo(i.next());
+             * }
+             * 
+ * Failure to follow this advice may result in non-deterministic behavior. + *

The returned sorted set will be serializable if the specified + * sorted set is serializable. + */ + // @ts-ignore + public static synchronizedSortedSet(s: java.util.SortedSet): java.util.SortedSet; + /** + * Returns a synchronized (thread-safe) navigable set backed by the + * specified navigable set. In order to guarantee serial access, it is + * critical that all access to the backing navigable set is + * accomplished through the returned navigable set (or its views).

+ * It is imperative that the user manually synchronize on the returned + * navigable set when iterating over it or any of its {@code subSet}, + * {@code headSet}, or {@code tailSet} views. + *

+             * NavigableSet s = Collections.synchronizedNavigableSet(new TreeSet());
+             * ...
+             * synchronized (s) {
+             * Iterator i = s.iterator(); // Must be in the synchronized block
+             * while (i.hasNext())
+             * foo(i.next());
+             * }
+             * 
+ * or: + *
+             * NavigableSet s = Collections.synchronizedNavigableSet(new TreeSet());
+             * NavigableSet s2 = s.headSet(foo, true);
+             * ...
+             * synchronized (s) {  // Note: s, not s2!!!
+             * Iterator i = s2.iterator(); // Must be in the synchronized block
+             * while (i.hasNext())
+             * foo(i.next());
+             * }
+             * 
+ * Failure to follow this advice may result in non-deterministic behavior. + *

The returned navigable set will be serializable if the specified + * navigable set is serializable. + */ + // @ts-ignore + public static synchronizedNavigableSet(s: java.util.NavigableSet): java.util.NavigableSet; + /** + * Returns a synchronized (thread-safe) list backed by the specified + * list. In order to guarantee serial access, it is critical that + * all access to the backing list is accomplished + * through the returned list.

+ * It is imperative that the user manually synchronize on the returned + * list when iterating over it: + *

+             * List list = Collections.synchronizedList(new ArrayList());
+             * ...
+             * synchronized (list) {
+             * Iterator i = list.iterator(); // Must be in synchronized block
+             * while (i.hasNext())
+             * foo(i.next());
+             * }
+             * 
+ * Failure to follow this advice may result in non-deterministic behavior. + *

The returned list will be serializable if the specified list is + * serializable. + */ + // @ts-ignore + public static synchronizedList(list: java.util.List): java.util.List; + /** + * Returns a synchronized (thread-safe) map backed by the specified + * map. In order to guarantee serial access, it is critical that + * all access to the backing map is accomplished + * through the returned map.

+ * It is imperative that the user manually synchronize on the returned + * map when iterating over any of its collection views: + *

+             * Map m = Collections.synchronizedMap(new HashMap());
+             * ...
+             * Set s = m.keySet();  // Needn't be in synchronized block
+             * ...
+             * synchronized (m) {  // Synchronizing on m, not s!
+             * Iterator i = s.iterator(); // Must be in synchronized block
+             * while (i.hasNext())
+             * foo(i.next());
+             * }
+             * 
+ * Failure to follow this advice may result in non-deterministic behavior. + *

The returned map will be serializable if the specified map is + * serializable. + */ + // @ts-ignore + public static synchronizedMap(m: java.util.Map): java.util.Map; + /** + * Returns a synchronized (thread-safe) sorted map backed by the specified + * sorted map. In order to guarantee serial access, it is critical that + * all access to the backing sorted map is accomplished + * through the returned sorted map (or its views).

+ * It is imperative that the user manually synchronize on the returned + * sorted map when iterating over any of its collection views, or the + * collections views of any of its subMap, headMap or + * tailMap views. + *

+             * SortedMap m = Collections.synchronizedSortedMap(new TreeMap());
+             * ...
+             * Set s = m.keySet();  // Needn't be in synchronized block
+             * ...
+             * synchronized (m) {  // Synchronizing on m, not s!
+             * Iterator i = s.iterator(); // Must be in synchronized block
+             * while (i.hasNext())
+             * foo(i.next());
+             * }
+             * 
+ * or: + *
+             * SortedMap m = Collections.synchronizedSortedMap(new TreeMap());
+             * SortedMap m2 = m.subMap(foo, bar);
+             * ...
+             * Set s2 = m2.keySet();  // Needn't be in synchronized block
+             * ...
+             * synchronized (m) {  // Synchronizing on m, not m2 or s2!
+             * Iterator i = s.iterator(); // Must be in synchronized block
+             * while (i.hasNext())
+             * foo(i.next());
+             * }
+             * 
+ * Failure to follow this advice may result in non-deterministic behavior. + *

The returned sorted map will be serializable if the specified + * sorted map is serializable. + */ + // @ts-ignore + public static synchronizedSortedMap(m: java.util.SortedMap): java.util.SortedMap; + /** + * Returns a synchronized (thread-safe) navigable map backed by the + * specified navigable map. In order to guarantee serial access, it is + * critical that all access to the backing navigable map is + * accomplished through the returned navigable map (or its views).

+ * It is imperative that the user manually synchronize on the returned + * navigable map when iterating over any of its collection views, or the + * collections views of any of its {@code subMap}, {@code headMap} or + * {@code tailMap} views. + *

+             * NavigableMap m = Collections.synchronizedNavigableMap(new TreeMap());
+             * ...
+             * Set s = m.keySet();  // Needn't be in synchronized block
+             * ...
+             * synchronized (m) {  // Synchronizing on m, not s!
+             * Iterator i = s.iterator(); // Must be in synchronized block
+             * while (i.hasNext())
+             * foo(i.next());
+             * }
+             * 
+ * or: + *
+             * NavigableMap m = Collections.synchronizedNavigableMap(new TreeMap());
+             * NavigableMap m2 = m.subMap(foo, true, bar, false);
+             * ...
+             * Set s2 = m2.keySet();  // Needn't be in synchronized block
+             * ...
+             * synchronized (m) {  // Synchronizing on m, not m2 or s2!
+             * Iterator i = s.iterator(); // Must be in synchronized block
+             * while (i.hasNext())
+             * foo(i.next());
+             * }
+             * 
+ * Failure to follow this advice may result in non-deterministic behavior. + *

The returned navigable map will be serializable if the specified + * navigable map is serializable. + */ + // @ts-ignore + public static synchronizedNavigableMap(m: java.util.NavigableMap): java.util.NavigableMap; + /** + * Returns a dynamically typesafe view of the specified collection. + * Any attempt to insert an element of the wrong type will result in an + * immediate {@link ClassCastException}. Assuming a collection + * contains no incorrectly typed elements prior to the time a + * dynamically typesafe view is generated, and that all subsequent + * access to the collection takes place through the view, it is + * guaranteed that the collection cannot contain an incorrectly + * typed element. + *

The generics mechanism in the language provides compile-time + * (static) type checking, but it is possible to defeat this mechanism + * with unchecked casts. Usually this is not a problem, as the compiler + * issues warnings on all such unchecked operations. There are, however, + * times when static type checking alone is not sufficient. For example, + * suppose a collection is passed to a third-party library and it is + * imperative that the library code not corrupt the collection by + * inserting an element of the wrong type. + *

Another use of dynamically typesafe views is debugging. Suppose a + * program fails with a {@code ClassCastException}, indicating that an + * incorrectly typed element was put into a parameterized collection. + * Unfortunately, the exception can occur at any time after the erroneous + * element is inserted, so it typically provides little or no information + * as to the real source of the problem. If the problem is reproducible, + * one can quickly determine its source by temporarily modifying the + * program to wrap the collection with a dynamically typesafe view. + * For example, this declaration: + *

 {@code
+             * Collection c = new HashSet<>();
+             * }
+ * may be replaced temporarily by this one: + *
 {@code
+             * Collection c = Collections.checkedCollection(
+             * new HashSet<>(), String.class);
+             * }
+ * Running the program again will cause it to fail at the point where + * an incorrectly typed element is inserted into the collection, clearly + * identifying the source of the problem. Once the problem is fixed, the + * modified declaration may be reverted back to the original. + *

The returned collection does not pass the hashCode and equals + * operations through to the backing collection, but relies on + * {@code Object}'s {@code equals} and {@code hashCode} methods. This + * is necessary to preserve the contracts of these operations in the case + * that the backing collection is a set or a list. + *

The returned collection will be serializable if the specified + * collection is serializable. + *

Since {@code null} is considered to be a value of any reference + * type, the returned collection permits insertion of null elements + * whenever the backing collection does. + */ + // @ts-ignore + public static checkedCollection(c: java.util.Collection, type: java.lang.Class): java.util.Collection; + /** + * Returns a dynamically typesafe view of the specified queue. + * Any attempt to insert an element of the wrong type will result in + * an immediate {@link ClassCastException}. Assuming a queue contains + * no incorrectly typed elements prior to the time a dynamically typesafe + * view is generated, and that all subsequent access to the queue + * takes place through the view, it is guaranteed that the + * queue cannot contain an incorrectly typed element. + *

A discussion of the use of dynamically typesafe views may be + * found in the documentation for the {@link #checkedCollection + * checkedCollection} method. + *

The returned queue will be serializable if the specified queue + * is serializable. + *

Since {@code null} is considered to be a value of any reference + * type, the returned queue permits insertion of {@code null} elements + * whenever the backing queue does. + */ + // @ts-ignore + public static checkedQueue(queue: java.util.Queue, type: java.lang.Class): java.util.Queue; + /** + * Returns a dynamically typesafe view of the specified set. + * Any attempt to insert an element of the wrong type will result in + * an immediate {@link ClassCastException}. Assuming a set contains + * no incorrectly typed elements prior to the time a dynamically typesafe + * view is generated, and that all subsequent access to the set + * takes place through the view, it is guaranteed that the + * set cannot contain an incorrectly typed element. + *

A discussion of the use of dynamically typesafe views may be + * found in the documentation for the {@link #checkedCollection + * checkedCollection} method. + *

The returned set will be serializable if the specified set is + * serializable. + *

Since {@code null} is considered to be a value of any reference + * type, the returned set permits insertion of null elements whenever + * the backing set does. + */ + // @ts-ignore + public static checkedSet(s: java.util.Set, type: java.lang.Class): java.util.Set; + /** + * Returns a dynamically typesafe view of the specified sorted set. + * Any attempt to insert an element of the wrong type will result in an + * immediate {@link ClassCastException}. Assuming a sorted set + * contains no incorrectly typed elements prior to the time a + * dynamically typesafe view is generated, and that all subsequent + * access to the sorted set takes place through the view, it is + * guaranteed that the sorted set cannot contain an incorrectly + * typed element. + *

A discussion of the use of dynamically typesafe views may be + * found in the documentation for the {@link #checkedCollection + * checkedCollection} method. + *

The returned sorted set will be serializable if the specified sorted + * set is serializable. + *

Since {@code null} is considered to be a value of any reference + * type, the returned sorted set permits insertion of null elements + * whenever the backing sorted set does. + */ + // @ts-ignore + public static checkedSortedSet(s: java.util.SortedSet, type: java.lang.Class): java.util.SortedSet; + /** + * Returns a dynamically typesafe view of the specified navigable set. + * Any attempt to insert an element of the wrong type will result in an + * immediate {@link ClassCastException}. Assuming a navigable set + * contains no incorrectly typed elements prior to the time a + * dynamically typesafe view is generated, and that all subsequent + * access to the navigable set takes place through the view, it is + * guaranteed that the navigable set cannot contain an incorrectly + * typed element. + *

A discussion of the use of dynamically typesafe views may be + * found in the documentation for the {@link #checkedCollection + * checkedCollection} method. + *

The returned navigable set will be serializable if the specified + * navigable set is serializable. + *

Since {@code null} is considered to be a value of any reference + * type, the returned navigable set permits insertion of null elements + * whenever the backing sorted set does. + */ + // @ts-ignore + public static checkedNavigableSet(s: java.util.NavigableSet, type: java.lang.Class): java.util.NavigableSet; + /** + * Returns a dynamically typesafe view of the specified list. + * Any attempt to insert an element of the wrong type will result in + * an immediate {@link ClassCastException}. Assuming a list contains + * no incorrectly typed elements prior to the time a dynamically typesafe + * view is generated, and that all subsequent access to the list + * takes place through the view, it is guaranteed that the + * list cannot contain an incorrectly typed element. + *

A discussion of the use of dynamically typesafe views may be + * found in the documentation for the {@link #checkedCollection + * checkedCollection} method. + *

The returned list will be serializable if the specified list + * is serializable. + *

Since {@code null} is considered to be a value of any reference + * type, the returned list permits insertion of null elements whenever + * the backing list does. + */ + // @ts-ignore + public static checkedList(list: java.util.List, type: java.lang.Class): java.util.List; + /** + * Returns a dynamically typesafe view of the specified map. + * Any attempt to insert a mapping whose key or value have the wrong + * type will result in an immediate {@link ClassCastException}. + * Similarly, any attempt to modify the value currently associated with + * a key will result in an immediate {@link ClassCastException}, + * whether the modification is attempted directly through the map + * itself, or through a {@link Map.Entry} instance obtained from the + * map's {@link Map#entrySet() entry set} view. + *

Assuming a map contains no incorrectly typed keys or values + * prior to the time a dynamically typesafe view is generated, and + * that all subsequent access to the map takes place through the view + * (or one of its collection views), it is guaranteed that the + * map cannot contain an incorrectly typed key or value. + *

A discussion of the use of dynamically typesafe views may be + * found in the documentation for the {@link #checkedCollection + * checkedCollection} method. + *

The returned map will be serializable if the specified map is + * serializable. + *

Since {@code null} is considered to be a value of any reference + * type, the returned map permits insertion of null keys or values + * whenever the backing map does. + */ + // @ts-ignore + public static checkedMap(m: java.util.Map, keyType: java.lang.Class, valueType: java.lang.Class): java.util.Map; + /** + * Returns a dynamically typesafe view of the specified sorted map. + * Any attempt to insert a mapping whose key or value have the wrong + * type will result in an immediate {@link ClassCastException}. + * Similarly, any attempt to modify the value currently associated with + * a key will result in an immediate {@link ClassCastException}, + * whether the modification is attempted directly through the map + * itself, or through a {@link Map.Entry} instance obtained from the + * map's {@link Map#entrySet() entry set} view. + *

Assuming a map contains no incorrectly typed keys or values + * prior to the time a dynamically typesafe view is generated, and + * that all subsequent access to the map takes place through the view + * (or one of its collection views), it is guaranteed that the + * map cannot contain an incorrectly typed key or value. + *

A discussion of the use of dynamically typesafe views may be + * found in the documentation for the {@link #checkedCollection + * checkedCollection} method. + *

The returned map will be serializable if the specified map is + * serializable. + *

Since {@code null} is considered to be a value of any reference + * type, the returned map permits insertion of null keys or values + * whenever the backing map does. + */ + // @ts-ignore + public static checkedSortedMap(m: java.util.SortedMap, keyType: java.lang.Class, valueType: java.lang.Class): java.util.SortedMap; + /** + * Returns a dynamically typesafe view of the specified navigable map. + * Any attempt to insert a mapping whose key or value have the wrong + * type will result in an immediate {@link ClassCastException}. + * Similarly, any attempt to modify the value currently associated with + * a key will result in an immediate {@link ClassCastException}, + * whether the modification is attempted directly through the map + * itself, or through a {@link Map.Entry} instance obtained from the + * map's {@link Map#entrySet() entry set} view. + *

Assuming a map contains no incorrectly typed keys or values + * prior to the time a dynamically typesafe view is generated, and + * that all subsequent access to the map takes place through the view + * (or one of its collection views), it is guaranteed that the + * map cannot contain an incorrectly typed key or value. + *

A discussion of the use of dynamically typesafe views may be + * found in the documentation for the {@link #checkedCollection + * checkedCollection} method. + *

The returned map will be serializable if the specified map is + * serializable. + *

Since {@code null} is considered to be a value of any reference + * type, the returned map permits insertion of null keys or values + * whenever the backing map does. + */ + // @ts-ignore + public static checkedNavigableMap(m: java.util.NavigableMap, keyType: java.lang.Class, valueType: java.lang.Class): java.util.NavigableMap; + /** + * Returns an iterator that has no elements. More precisely, + *

    + *
  • {@link Iterator#hasNext hasNext} always returns {@code + * false}.
  • + *
  • {@link Iterator#next next} always throws {@link + * NoSuchElementException}.
  • + *
  • {@link Iterator#remove remove} always throws {@link + * IllegalStateException}.
  • + *
+ *

Implementations of this method are permitted, but not + * required, to return the same object from multiple invocations. + */ + // @ts-ignore + public static emptyIterator(): java.util.Iterator; + /** + * Returns a list iterator that has no elements. More precisely, + *

    + *
  • {@link Iterator#hasNext hasNext} and {@link + * ListIterator#hasPrevious hasPrevious} always return {@code + * false}.
  • + *
  • {@link Iterator#next next} and {@link ListIterator#previous + * previous} always throw {@link NoSuchElementException}.
  • + *
  • {@link Iterator#remove remove} and {@link ListIterator#set + * set} always throw {@link IllegalStateException}.
  • + *
  • {@link ListIterator#add add} always throws {@link + * UnsupportedOperationException}.
  • + *
  • {@link ListIterator#nextIndex nextIndex} always returns + * {@code 0}.
  • + *
  • {@link ListIterator#previousIndex previousIndex} always + * returns {@code -1}.
  • + *
+ *

Implementations of this method are permitted, but not + * required, to return the same object from multiple invocations. + */ + // @ts-ignore + public static emptyListIterator(): java.util.ListIterator; + /** + * Returns an enumeration that has no elements. More precisely, + *

    + *
  • {@link Enumeration#hasMoreElements hasMoreElements} always + * returns {@code false}.
  • + *
  • {@link Enumeration#nextElement nextElement} always throws + * {@link NoSuchElementException}.
  • + *
+ *

Implementations of this method are permitted, but not + * required, to return the same object from multiple invocations. + */ + // @ts-ignore + public static emptyEnumeration(): java.util.Enumeration; + /** + * Returns an empty set (immutable). This set is serializable. + * Unlike the like-named field, this method is parameterized. + *

This example illustrates the type-safe way to obtain an empty set: + *

+             * Set<String> s = Collections.emptySet();
+             * 
+ */ + // @ts-ignore + public static emptySet(): java.util.Set; + /** + * Returns an empty sorted set (immutable). This set is serializable. + *

This example illustrates the type-safe way to obtain an empty + * sorted set: + *

 {@code
+             * SortedSet s = Collections.emptySortedSet();
+             * }
+ */ + // @ts-ignore + public static emptySortedSet(): java.util.SortedSet; + /** + * Returns an empty navigable set (immutable). This set is serializable. + *

This example illustrates the type-safe way to obtain an empty + * navigable set: + *

 {@code
+             * NavigableSet s = Collections.emptyNavigableSet();
+             * }
+ */ + // @ts-ignore + public static emptyNavigableSet(): java.util.NavigableSet; + /** + * Returns an empty list (immutable). This list is serializable. + *

This example illustrates the type-safe way to obtain an empty list: + *

+             * List<String> s = Collections.emptyList();
+             * 
+ */ + // @ts-ignore + public static emptyList(): java.util.List; + /** + * Returns an empty map (immutable). This map is serializable. + *

This example illustrates the type-safe way to obtain an empty map: + *

+             * Map<String, Date> s = Collections.emptyMap();
+             * 
+ */ + // @ts-ignore + public static emptyMap(): java.util.Map; + /** + * Returns an empty sorted map (immutable). This map is serializable. + *

This example illustrates the type-safe way to obtain an empty map: + *

 {@code
+             * SortedMap s = Collections.emptySortedMap();
+             * }
+ */ + // @ts-ignore + public static emptySortedMap(): java.util.SortedMap; + /** + * Returns an empty navigable map (immutable). This map is serializable. + *

This example illustrates the type-safe way to obtain an empty map: + *

 {@code
+             * NavigableMap s = Collections.emptyNavigableMap();
+             * }
+ */ + // @ts-ignore + public static emptyNavigableMap(): java.util.NavigableMap; + /** + * Returns an immutable set containing only the specified object. + * The returned set is serializable. + */ + // @ts-ignore + public static singleton(o: java.lang.Object): java.util.Set; + /** + * Returns an immutable list containing only the specified object. + * The returned list is serializable. + */ + // @ts-ignore + public static singletonList(o: java.lang.Object): java.util.List; + /** + * Returns an immutable map, mapping only the specified key to the + * specified value. The returned map is serializable. + */ + // @ts-ignore + public static singletonMap(key: java.lang.Object, value: java.lang.Object): java.util.Map; + /** + * Returns an immutable list consisting of n copies of the + * specified object. The newly allocated data object is tiny (it contains + * a single reference to the data object). This method is useful in + * combination with the List.addAll method to grow lists. + * The returned list is serializable. + */ + // @ts-ignore + public static nCopies(n: number, o: java.lang.Object): java.util.List; + /** + * Returns a comparator that imposes the reverse of the natural + * ordering on a collection of objects that implement the + * {@code Comparable} interface. (The natural ordering is the ordering + * imposed by the objects' own {@code compareTo} method.) This enables a + * simple idiom for sorting (or maintaining) collections (or arrays) of + * objects that implement the {@code Comparable} interface in + * reverse-natural-order. For example, suppose {@code a} is an array of + * strings. Then:
+             * Arrays.sort(a, Collections.reverseOrder());
+             * 
sorts the array in reverse-lexicographic (alphabetical) order.

+ * The returned comparator is serializable. + */ + // @ts-ignore + public static reverseOrder(): java.util.Comparator; + /** + * Returns a comparator that imposes the reverse ordering of the specified + * comparator. If the specified comparator is {@code null}, this method is + * equivalent to {@link #reverseOrder()} (in other words, it returns a + * comparator that imposes the reverse of the natural ordering on + * a collection of objects that implement the Comparable interface). + *

The returned comparator is serializable (assuming the specified + * comparator is also serializable or {@code null}). + */ + // @ts-ignore + public static reverseOrder(cmp: java.util.Comparator): java.util.Comparator; + /** + * Returns an enumeration over the specified collection. This provides + * interoperability with legacy APIs that require an enumeration + * as input. + */ + // @ts-ignore + public static enumeration(c: java.util.Collection): java.util.Enumeration; + /** + * Returns an array list containing the elements returned by the + * specified enumeration in the order they are returned by the + * enumeration. This method provides interoperability between + * legacy APIs that return enumerations and new APIs that require + * collections. + */ + // @ts-ignore + public static list(e: java.util.Enumeration): java.util.ArrayList; + /** + * Returns the number of elements in the specified collection equal to the + * specified object. More formally, returns the number of elements + * e in the collection such that + * (o == null ? e == null : o.equals(e)). + */ + // @ts-ignore + public static frequency(c: java.util.Collection, o: java.lang.Object): number; + /** + * Returns {@code true} if the two specified collections have no + * elements in common. + *

Care must be exercised if this method is used on collections that + * do not comply with the general contract for {@code Collection}. + * Implementations may elect to iterate over either collection and test + * for containment in the other collection (or to perform any equivalent + * computation). If either collection uses a nonstandard equality test + * (as does a {@link SortedSet} whose ordering is not compatible with + * equals, or the key set of an {@link IdentityHashMap}), both + * collections must use the same nonstandard equality test, or the + * result of this method is undefined. + *

Care must also be exercised when using collections that have + * restrictions on the elements that they may contain. Collection + * implementations are allowed to throw exceptions for any operation + * involving elements they deem ineligible. For absolute safety the + * specified collections should contain only elements which are + * eligible elements for both collections. + *

Note that it is permissible to pass the same collection in both + * parameters, in which case the method will return {@code true} if and + * only if the collection is empty. + */ + // @ts-ignore + public static disjoint(c1: java.util.Collection, c2: java.util.Collection): boolean; + /** + * Adds all of the specified elements to the specified collection. + * Elements to be added may be specified individually or as an array. + * The behavior of this convenience method is identical to that of + * c.addAll(Arrays.asList(elements)), but this method is likely + * to run significantly faster under most implementations. + *

When elements are specified individually, this method provides a + * convenient way to add a few elements to an existing collection: + *

+             * Collections.addAll(flavors, "Peaches 'n Plutonium", "Rocky Racoon");
+             * 
+ */ + // @ts-ignore + public static addAll(c: java.util.Collection, elements: java.lang.Object): boolean; + /** + * Returns a set backed by the specified map. The resulting set displays + * the same ordering, concurrency, and performance characteristics as the + * backing map. In essence, this factory method provides a {@link Set} + * implementation corresponding to any {@link Map} implementation. There + * is no need to use this method on a {@link Map} implementation that + * already has a corresponding {@link Set} implementation (such as {@link + * HashMap} or {@link TreeMap}). + *

Each method invocation on the set returned by this method results in + * exactly one method invocation on the backing map or its keySet + * view, with one exception. The addAll method is implemented + * as a sequence of put invocations on the backing map. + *

The specified map must be empty at the time this method is invoked, + * and should not be accessed directly after this method returns. These + * conditions are ensured if the map is created empty, passed directly + * to this method, and no reference to the map is retained, as illustrated + * in the following code fragment: + *

+             * Set<Object> weakHashSet = Collections.newSetFromMap(
+             * new WeakHashMap<Object, Boolean>());
+             * 
+ */ + // @ts-ignore + public static newSetFromMap(map: java.util.Map): java.util.Set; + /** + * Returns a view of a {@link Deque} as a Last-in-first-out (Lifo) + * {@link Queue}. Method add is mapped to push, + * remove is mapped to pop and so on. This + * view can be useful when you would like to use a method + * requiring a Queue but you need Lifo ordering. + *

Each method invocation on the queue returned by this method + * results in exactly one method invocation on the backing deque, with + * one exception. The {@link Queue#addAll addAll} method is + * implemented as a sequence of {@link Deque#addFirst addFirst} + * invocations on the backing deque. + */ + // @ts-ignore + public static asLifoQueue(deque: java.util.Deque): java.util.Queue; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Comparator.d.ts b/packages/types/dist/typings/jdk/java.util.Comparator.d.ts new file mode 100644 index 00000000..62c0ac26 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Comparator.d.ts @@ -0,0 +1,179 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + interface Comparator { + /** + * Compares its two arguments for order. Returns a negative integer, + * zero, or a positive integer as the first argument is less than, equal + * to, or greater than the second.

+ * In the foregoing description, the notation + * sgn(expression) designates the mathematical + * signum function, which is defined to return one of -1, + * 0, or 1 according to whether the value of + * expression is negative, zero or positive.

+ * The implementor must ensure that sgn(compare(x, y)) == + * -sgn(compare(y, x)) for all x and y. (This + * implies that compare(x, y) must throw an exception if and only + * if compare(y, x) throws an exception.)

+ * The implementor must also ensure that the relation is transitive: + * ((compare(x, y)>0) && (compare(y, z)>0)) implies + * compare(x, z)>0.

+ * Finally, the implementor must ensure that compare(x, y)==0 + * implies that sgn(compare(x, z))==sgn(compare(y, z)) for all + * z.

+ * It is generally the case, but not strictly required that + * (compare(x, y)==0) == (x.equals(y)). Generally speaking, + * any comparator that violates this condition should clearly indicate + * this fact. The recommended language is "Note: this comparator + * imposes orderings that are inconsistent with equals." + */ + // @ts-ignore + compare(o1: java.lang.Object, o2: java.lang.Object): number; + /** + * Indicates whether some other object is "equal to" this + * comparator. This method must obey the general contract of + * {@link Object#equals(Object)}. Additionally, this method can return + * true only if the specified object is also a comparator + * and it imposes the same ordering as this comparator. Thus, + * comp1.equals(comp2) implies that sgn(comp1.compare(o1, + * o2))==sgn(comp2.compare(o1, o2)) for every object reference + * o1 and o2.

+ * Note that it is always safe not to override + * Object.equals(Object). However, overriding this method may, + * in some cases, improve performance by allowing programs to determine + * that two distinct comparators impose the same order. + */ + // @ts-ignore + equals(obj: java.lang.Object): boolean; + /** + * Returns a comparator that imposes the reverse ordering of this + * comparator. + */ + // @ts-ignore + reversed(): java.util.Comparator; + /** + * Returns a lexicographic-order comparator with another comparator. + * If this {@code Comparator} considers two elements equal, i.e. + * {@code compare(a, b) == 0}, {@code other} is used to determine the order. + *

The returned comparator is serializable if the specified comparator + * is also serializable. + */ + // @ts-ignore + thenComparing(other: java.util.Comparator): java.util.Comparator; + /** + * Returns a lexicographic-order comparator with a function that + * extracts a key to be compared with the given {@code Comparator}. + */ + // @ts-ignore + thenComparing(keyExtractor: java.util.function$.Function, keyComparator: java.util.Comparator): java.util.Comparator; + /** + * Returns a lexicographic-order comparator with a function that + * extracts a {@code Comparable} sort key. + */ + // @ts-ignore + thenComparing(keyExtractor: java.util.function$.Function): java.util.Comparator; + /** + * Returns a lexicographic-order comparator with a function that + * extracts a {@code int} sort key. + */ + // @ts-ignore + thenComparingInt(keyExtractor: java.util.function$.ToIntFunction): java.util.Comparator; + /** + * Returns a lexicographic-order comparator with a function that + * extracts a {@code long} sort key. + */ + // @ts-ignore + thenComparingLong(keyExtractor: java.util.function$.ToLongFunction): java.util.Comparator; + /** + * Returns a lexicographic-order comparator with a function that + * extracts a {@code double} sort key. + */ + // @ts-ignore + thenComparingDouble(keyExtractor: java.util.function$.ToDoubleFunction): java.util.Comparator; + /** + * Returns a comparator that imposes the reverse of the natural + * ordering. + *

The returned comparator is serializable and throws {@link + * NullPointerException} when comparing {@code null}. + */ + // @ts-ignore + reverseOrder(): java.util.Comparator; + /** + * Returns a comparator that compares {@link Comparable} objects in natural + * order. + *

The returned comparator is serializable and throws {@link + * NullPointerException} when comparing {@code null}. + */ + // @ts-ignore + naturalOrder(): java.util.Comparator; + /** + * Returns a null-friendly comparator that considers {@code null} to be + * less than non-null. When both are {@code null}, they are considered + * equal. If both are non-null, the specified {@code Comparator} is used + * to determine the order. If the specified comparator is {@code null}, + * then the returned comparator considers all non-null values to be equal. + *

The returned comparator is serializable if the specified comparator + * is serializable. + */ + // @ts-ignore + nullsFirst(comparator: java.util.Comparator): java.util.Comparator; + /** + * Returns a null-friendly comparator that considers {@code null} to be + * greater than non-null. When both are {@code null}, they are considered + * equal. If both are non-null, the specified {@code Comparator} is used + * to determine the order. If the specified comparator is {@code null}, + * then the returned comparator considers all non-null values to be equal. + *

The returned comparator is serializable if the specified comparator + * is serializable. + */ + // @ts-ignore + nullsLast(comparator: java.util.Comparator): java.util.Comparator; + /** + * Accepts a function that extracts a sort key from a type {@code T}, and + * returns a {@code Comparator} that compares by that sort key using + * the specified {@link Comparator}. + *

The returned comparator is serializable if the specified function + * and comparator are both serializable. + */ + // @ts-ignore + comparing(keyExtractor: java.util.function$.Function, keyComparator: java.util.Comparator): java.util.Comparator; + /** + * Accepts a function that extracts a {@link java.lang.Comparable + * Comparable} sort key from a type {@code T}, and returns a {@code + * Comparator} that compares by that sort key. + *

The returned comparator is serializable if the specified function + * is also serializable. + */ + // @ts-ignore + comparing(keyExtractor: java.util.function$.Function): java.util.Comparator; + /** + * Accepts a function that extracts an {@code int} sort key from a type + * {@code T}, and returns a {@code Comparator} that compares by that + * sort key. + *

The returned comparator is serializable if the specified function + * is also serializable. + */ + // @ts-ignore + comparingInt(keyExtractor: java.util.function$.ToIntFunction): java.util.Comparator; + /** + * Accepts a function that extracts a {@code long} sort key from a type + * {@code T}, and returns a {@code Comparator} that compares by that + * sort key. + *

The returned comparator is serializable if the specified function is + * also serializable. + */ + // @ts-ignore + comparingLong(keyExtractor: java.util.function$.ToLongFunction): java.util.Comparator; + /** + * Accepts a function that extracts a {@code double} sort key from a type + * {@code T}, and returns a {@code Comparator} that compares by that + * sort key. + *

The returned comparator is serializable if the specified function + * is also serializable. + */ + // @ts-ignore + comparingDouble(keyExtractor: java.util.function$.ToDoubleFunction): java.util.Comparator; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.ConcurrentModificationException.d.ts b/packages/types/dist/typings/jdk/java.util.ConcurrentModificationException.d.ts new file mode 100644 index 00000000..0b1a16ea --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.ConcurrentModificationException.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class ConcurrentModificationException extends java.lang.RuntimeException { + /** + * Constructs a ConcurrentModificationException with no + * detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs a {@code ConcurrentModificationException} with the + * specified detail message. + */ + // @ts-ignore + constructor(message: string) + /** + * Constructs a new exception with the specified cause and a detail + * message of {@code (cause==null ? null : cause.toString())} (which + * typically contains the class and detail message of {@code cause}. + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + /** + * Constructs a new exception with the specified detail message and + * cause. + *

Note that the detail message associated with cause is + * not automatically incorporated in this exception's detail + * message. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Currency.d.ts b/packages/types/dist/typings/jdk/java.util.Currency.d.ts new file mode 100644 index 00000000..1b9c8b44 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Currency.d.ts @@ -0,0 +1,99 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class Currency extends java.lang.Object { + /** + * Returns the Currency instance for the given currency code. + */ + // @ts-ignore + public static getInstance(currencyCode: string): java.util.Currency; + /** + * Returns the Currency instance for the country of the + * given locale. The language and variant components of the locale + * are ignored. The result may vary over time, as countries change their + * currencies. For example, for the original member countries of the + * European Monetary Union, the method returns the old national currencies + * until December 31, 2001, and the Euro from January 1, 2002, local time + * of the respective countries. + *

+ * The method returns null for territories that don't + * have a currency, such as Antarctica. + */ + // @ts-ignore + public static getInstance(locale: java.util.Locale): java.util.Currency; + /** + * Gets the set of available currencies. The returned set of currencies + * contains all of the available currencies, which may include currencies + * that represent obsolete ISO 4217 codes. The set can be modified + * without affecting the available currencies in the runtime. + */ + // @ts-ignore + public static getAvailableCurrencies(): java.util.Set; + /** + * Gets the ISO 4217 currency code of this currency. + */ + // @ts-ignore + public getCurrencyCode(): string; + /** + * Gets the symbol of this currency for the default + * {@link Locale.Category#DISPLAY DISPLAY} locale. + * For example, for the US Dollar, the symbol is "$" if the default + * locale is the US, while for other locales it may be "US$". If no + * symbol can be determined, the ISO 4217 currency code is returned. + *

+ * This is equivalent to calling + * {@link #getSymbol(Locale) + * getSymbol(Locale.getDefault(Locale.Category.DISPLAY))}. + */ + // @ts-ignore + public getSymbol(): string; + /** + * Gets the symbol of this currency for the specified locale. + * For example, for the US Dollar, the symbol is "$" if the specified + * locale is the US, while for other locales it may be "US$". If no + * symbol can be determined, the ISO 4217 currency code is returned. + */ + // @ts-ignore + public getSymbol(locale: java.util.Locale): string; + /** + * Gets the default number of fraction digits used with this currency. + * For example, the default number of fraction digits for the Euro is 2, + * while for the Japanese Yen it's 0. + * In the case of pseudo-currencies, such as IMF Special Drawing Rights, + * -1 is returned. + */ + // @ts-ignore + public getDefaultFractionDigits(): number; + /** + * Returns the ISO 4217 numeric code of this currency. + */ + // @ts-ignore + public getNumericCode(): number; + /** + * Gets the name that is suitable for displaying this currency for + * the default {@link Locale.Category#DISPLAY DISPLAY} locale. + * If there is no suitable display name found + * for the default locale, the ISO 4217 currency code is returned. + *

+ * This is equivalent to calling + * {@link #getDisplayName(Locale) + * getDisplayName(Locale.getDefault(Locale.Category.DISPLAY))}. + */ + // @ts-ignore + public getDisplayName(): string; + /** + * Gets the name that is suitable for displaying this currency for + * the specified locale. If there is no suitable display name found + * for the specified locale, the ISO 4217 currency code is returned. + */ + // @ts-ignore + public getDisplayName(locale: java.util.Locale): string; + /** + * Returns the ISO 4217 currency code of this currency. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Date.d.ts b/packages/types/dist/typings/jdk/java.util.Date.d.ts new file mode 100644 index 00000000..65feafa6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Date.d.ts @@ -0,0 +1,464 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class Date extends java.lang.Object { + /** + * Allocates a Date object and initializes it so that + * it represents the time at which it was allocated, measured to the + * nearest millisecond. + */ + // @ts-ignore + constructor() + /** + * Allocates a Date object and initializes it to + * represent the specified number of milliseconds since the + * standard base time known as "the epoch", namely January 1, + * 1970, 00:00:00 GMT. + */ + // @ts-ignore + constructor(date: number) + /** + * Allocates a Date object and initializes it so that + * it represents midnight, local time, at the beginning of the day + * specified by the year, month, and + * date arguments. + */ + // @ts-ignore + constructor(year: number, month: number, date: number) + /** + * Allocates a Date object and initializes it so that + * it represents the instant at the start of the minute specified by + * the year, month, date, + * hrs, and min arguments, in the local + * time zone. + */ + // @ts-ignore + constructor(year: number, month: number, date: number, hrs: number, min: number) + /** + * Allocates a Date object and initializes it so that + * it represents the instant at the start of the second specified + * by the year, month, date, + * hrs, min, and sec arguments, + * in the local time zone. + */ + // @ts-ignore + constructor(year: number, month: number, date: number, hrs: number, min: number, sec: number) + /** + * Allocates a Date object and initializes it so that + * it represents the date and time indicated by the string + * s, which is interpreted as if by the + * {@link Date#parse} method. + */ + // @ts-ignore + constructor(s: string) + /** + * Return a copy of this object. + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Determines the date and time based on the arguments. The + * arguments are interpreted as a year, month, day of the month, + * hour of the day, minute within the hour, and second within the + * minute, exactly as for the Date constructor with six + * arguments, except that the arguments are interpreted relative + * to UTC rather than to the local time zone. The time indicated is + * returned represented as the distance, measured in milliseconds, + * of that time from the epoch (00:00:00 GMT on January 1, 1970). + */ + // @ts-ignore + public static UTC(year: number, month: number, date: number, hrs: number, min: number, sec: number): number; + /** + * Attempts to interpret the string s as a representation + * of a date and time. If the attempt is successful, the time + * indicated is returned represented as the distance, measured in + * milliseconds, of that time from the epoch (00:00:00 GMT on + * January 1, 1970). If the attempt fails, an + * IllegalArgumentException is thrown. + *

+ * It accepts many syntaxes; in particular, it recognizes the IETF + * standard date syntax: "Sat, 12 Aug 1995 13:30:00 GMT". It also + * understands the continental U.S. time-zone abbreviations, but for + * general use, a time-zone offset should be used: "Sat, 12 Aug 1995 + * 13:30:00 GMT+0430" (4 hours, 30 minutes west of the Greenwich + * meridian). If no time zone is specified, the local time zone is + * assumed. GMT and UTC are considered equivalent. + *

+ * The string s is processed from left to right, looking for + * data of interest. Any material in s that is within the + * ASCII parenthesis characters ( and ) is ignored. + * Parentheses may be nested. Otherwise, the only characters permitted + * within s are these ASCII characters: + *

+             * abcdefghijklmnopqrstuvwxyz
+             * ABCDEFGHIJKLMNOPQRSTUVWXYZ
+             * 0123456789,+-:/
+ * and whitespace characters.

+ * A consecutive sequence of decimal digits is treated as a decimal + * number:

    + *
  • If a number is preceded by + or - and a year + * has already been recognized, then the number is a time-zone + * offset. If the number is less than 24, it is an offset measured + * in hours. Otherwise, it is regarded as an offset in minutes, + * expressed in 24-hour time format without punctuation. A + * preceding - means a westward offset. Time zone offsets + * are always relative to UTC (Greenwich). Thus, for example, + * -5 occurring in the string would mean "five hours west + * of Greenwich" and +0430 would mean "four hours and + * thirty minutes east of Greenwich." It is permitted for the + * string to specify GMT, UT, or UTC + * redundantly-for example, GMT-5 or utc+0430. + *
  • The number is regarded as a year number if one of the + * following conditions is true: + *
      + *
    • The number is equal to or greater than 70 and followed by a + * space, comma, slash, or end of string + *
    • The number is less than 70, and both a month and a day of + * the month have already been recognized
    • + *
    + * If the recognized year number is less than 100, it is + * interpreted as an abbreviated year relative to a century of + * which dates are within 80 years before and 19 years after + * the time when the Date class is initialized. + * After adjusting the year number, 1900 is subtracted from + * it. For example, if the current year is 1999 then years in + * the range 19 to 99 are assumed to mean 1919 to 1999, while + * years from 0 to 18 are assumed to mean 2000 to 2018. Note + * that this is slightly different from the interpretation of + * years less than 100 that is used in {@link java.text.SimpleDateFormat}. + *
  • If the number is followed by a colon, it is regarded as an hour, + * unless an hour has already been recognized, in which case it is + * regarded as a minute. + *
  • If the number is followed by a slash, it is regarded as a month + * (it is decreased by 1 to produce a number in the range 0 + * to 11), unless a month has already been recognized, in + * which case it is regarded as a day of the month. + *
  • If the number is followed by whitespace, a comma, a hyphen, or + * end of string, then if an hour has been recognized but not a + * minute, it is regarded as a minute; otherwise, if a minute has + * been recognized but not a second, it is regarded as a second; + * otherwise, it is regarded as a day of the month.

+ * A consecutive sequence of letters is regarded as a word and treated + * as follows:

    + *
  • A word that matches AM, ignoring case, is ignored (but + * the parse fails if an hour has not been recognized or is less + * than 1 or greater than 12). + *
  • A word that matches PM, ignoring case, adds 12 + * to the hour (but the parse fails if an hour has not been + * recognized or is less than 1 or greater than 12). + *
  • Any word that matches any prefix of SUNDAY, MONDAY, TUESDAY, + * WEDNESDAY, THURSDAY, FRIDAY, or SATURDAY, ignoring + * case, is ignored. For example, sat, Friday, TUE, and + * Thurs are ignored. + *
  • Otherwise, any word that matches any prefix of JANUARY, + * FEBRUARY, MARCH, APRIL, MAY, JUNE, JULY, AUGUST, SEPTEMBER, + * OCTOBER, NOVEMBER, or DECEMBER, ignoring case, and + * considering them in the order given here, is recognized as + * specifying a month and is converted to a number (0 to + * 11). For example, aug, Sept, april, and + * NOV are recognized as months. So is Ma, which + * is recognized as MARCH, not MAY. + *
  • Any word that matches GMT, UT, or UTC, ignoring + * case, is treated as referring to UTC. + *
  • Any word that matches EST, CST, MST, or PST, + * ignoring case, is recognized as referring to the time zone in + * North America that is five, six, seven, or eight hours west of + * Greenwich, respectively. Any word that matches EDT, CDT, + * MDT, or PDT, ignoring case, is recognized as + * referring to the same time zone, respectively, during daylight + * saving time.

+ * Once the entire string s has been scanned, it is converted to a time + * result in one of two ways. If a time zone or time-zone offset has been + * recognized, then the year, month, day of month, hour, minute, and + * second are interpreted in UTC and then the time-zone offset is + * applied. Otherwise, the year, month, day of month, hour, minute, and + * second are interpreted in the local time zone. + */ + // @ts-ignore + public static parse(s: string): number; + /** + * Returns a value that is the result of subtracting 1900 from the + * year that contains or begins with the instant in time represented + * by this Date object, as interpreted in the local + * time zone. + */ + // @ts-ignore + public getYear(): number; + /** + * Sets the year of this Date object to be the specified + * value plus 1900. This Date object is modified so + * that it represents a point in time within the specified year, + * with the month, date, hour, minute, and second the same as + * before, as interpreted in the local time zone. (Of course, if + * the date was February 29, for example, and the year is set to a + * non-leap year, then the new date will be treated as if it were + * on March 1.) + */ + // @ts-ignore + public setYear(year: number): void; + /** + * Returns a number representing the month that contains or begins + * with the instant in time represented by this Date object. + * The value returned is between 0 and 11, + * with the value 0 representing January. + */ + // @ts-ignore + public getMonth(): number; + /** + * Sets the month of this date to the specified value. This + * Date object is modified so that it represents a point + * in time within the specified month, with the year, date, hour, + * minute, and second the same as before, as interpreted in the + * local time zone. If the date was October 31, for example, and + * the month is set to June, then the new date will be treated as + * if it were on July 1, because June has only 30 days. + */ + // @ts-ignore + public setMonth(month: number): void; + /** + * Returns the day of the month represented by this Date object. + * The value returned is between 1 and 31 + * representing the day of the month that contains or begins with the + * instant in time represented by this Date object, as + * interpreted in the local time zone. + */ + // @ts-ignore + public getDate(): number; + /** + * Sets the day of the month of this Date object to the + * specified value. This Date object is modified so that + * it represents a point in time within the specified day of the + * month, with the year, month, hour, minute, and second the same + * as before, as interpreted in the local time zone. If the date + * was April 30, for example, and the date is set to 31, then it + * will be treated as if it were on May 1, because April has only + * 30 days. + */ + // @ts-ignore + public setDate(date: number): void; + /** + * Returns the day of the week represented by this date. The + * returned value (0 = Sunday, 1 = Monday, + * 2 = Tuesday, 3 = Wednesday, 4 = + * Thursday, 5 = Friday, 6 = Saturday) + * represents the day of the week that contains or begins with + * the instant in time represented by this Date object, + * as interpreted in the local time zone. + */ + // @ts-ignore + public getDay(): number; + /** + * Returns the hour represented by this Date object. The + * returned value is a number (0 through 23) + * representing the hour within the day that contains or begins + * with the instant in time represented by this Date + * object, as interpreted in the local time zone. + */ + // @ts-ignore + public getHours(): number; + /** + * Sets the hour of this Date object to the specified value. + * This Date object is modified so that it represents a point + * in time within the specified hour of the day, with the year, month, + * date, minute, and second the same as before, as interpreted in the + * local time zone. + */ + // @ts-ignore + public setHours(hours: number): void; + /** + * Returns the number of minutes past the hour represented by this date, + * as interpreted in the local time zone. + * The value returned is between 0 and 59. + */ + // @ts-ignore + public getMinutes(): number; + /** + * Sets the minutes of this Date object to the specified value. + * This Date object is modified so that it represents a point + * in time within the specified minute of the hour, with the year, month, + * date, hour, and second the same as before, as interpreted in the + * local time zone. + */ + // @ts-ignore + public setMinutes(minutes: number): void; + /** + * Returns the number of seconds past the minute represented by this date. + * The value returned is between 0 and 61. The + * values 60 and 61 can only occur on those + * Java Virtual Machines that take leap seconds into account. + */ + // @ts-ignore + public getSeconds(): number; + /** + * Sets the seconds of this Date to the specified value. + * This Date object is modified so that it represents a + * point in time within the specified second of the minute, with + * the year, month, date, hour, and minute the same as before, as + * interpreted in the local time zone. + */ + // @ts-ignore + public setSeconds(seconds: number): void; + /** + * Returns the number of milliseconds since January 1, 1970, 00:00:00 GMT + * represented by this Date object. + */ + // @ts-ignore + public getTime(): number; + /** + * Sets this Date object to represent a point in time that is + * time milliseconds after January 1, 1970 00:00:00 GMT. + */ + // @ts-ignore + public setTime(time: number): void; + /** + * Tests if this date is before the specified date. + */ + // @ts-ignore + public before(when: java.util.Date): boolean; + /** + * Tests if this date is after the specified date. + */ + // @ts-ignore + public after(when: java.util.Date): boolean; + /** + * Compares two dates for equality. + * The result is true if and only if the argument is + * not null and is a Date object that + * represents the same point in time, to the millisecond, as this object. + *

+ * Thus, two Date objects are equal if and only if the + * getTime method returns the same long + * value for both. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Compares two Dates for ordering. + */ + // @ts-ignore + public compareTo(anotherDate: java.util.Date): number; + /** + * Returns a hash code value for this object. The result is the + * exclusive OR of the two halves of the primitive long + * value returned by the {@link Date#getTime} + * method. That is, the hash code is the value of the expression: + *

{@code
+             * (int)(this.getTime()^(this.getTime() >>> 32))
+             * }
+ */ + // @ts-ignore + public hashCode(): number; + /** + * Converts this Date object to a String + * of the form: + *
+             * dow mon dd hh:mm:ss zzz yyyy
+ * where:
    + *
  • dow is the day of the week (Sun, Mon, Tue, Wed, + * Thu, Fri, Sat). + *
  • mon is the month (Jan, Feb, Mar, Apr, May, Jun, + * Jul, Aug, Sep, Oct, Nov, Dec). + *
  • dd is the day of the month (01 through + * 31), as two decimal digits. + *
  • hh is the hour of the day (00 through + * 23), as two decimal digits. + *
  • mm is the minute within the hour (00 through + * 59), as two decimal digits. + *
  • ss is the second within the minute (00 through + * 61, as two decimal digits. + *
  • zzz is the time zone (and may reflect daylight saving + * time). Standard time zone abbreviations include those + * recognized by the method parse. If time zone + * information is not available, then zzz is empty - + * that is, it consists of no characters at all. + *
  • yyyy is the year, as four decimal digits. + *
+ */ + // @ts-ignore + public toString(): string; + /** + * Creates a string representation of this Date object in an + * implementation-dependent form. The intent is that the form should + * be familiar to the user of the Java application, wherever it may + * happen to be running. The intent is comparable to that of the + * "%c" format supported by the strftime() + * function of ISO C. + */ + // @ts-ignore + public toLocaleString(): string; + /** + * Creates a string representation of this Date object of + * the form: + *
+             * d mon yyyy hh:mm:ss GMT
+ * where:
    + *
  • d is the day of the month (1 through 31), + * as one or two decimal digits. + *
  • mon is the month (Jan, Feb, Mar, Apr, May, Jun, Jul, + * Aug, Sep, Oct, Nov, Dec). + *
  • yyyy is the year, as four decimal digits. + *
  • hh is the hour of the day (00 through 23), + * as two decimal digits. + *
  • mm is the minute within the hour (00 through + * 59), as two decimal digits. + *
  • ss is the second within the minute (00 through + * 61), as two decimal digits. + *
  • GMT is exactly the ASCII letters "GMT" to indicate + * Greenwich Mean Time. + *

+ * The result does not depend on the local time zone. + */ + // @ts-ignore + public toGMTString(): string; + /** + * Returns the offset, measured in minutes, for the local time zone + * relative to UTC that is appropriate for the time represented by + * this Date object. + *

+ * For example, in Massachusetts, five time zones west of Greenwich: + *

+             * new Date(96, 1, 14).getTimezoneOffset() returns 300
+ * because on February 14, 1996, standard time (Eastern Standard Time) + * is in use, which is offset five hours from UTC; but: + *
+             * new Date(96, 5, 1).getTimezoneOffset() returns 240
+ * because on June 1, 1996, daylight saving time (Eastern Daylight Time) + * is in use, which is offset only four hours from UTC.

+ * This method produces the same result as if it computed: + *

+             * (this.getTime() - UTC(this.getYear(),
+             * this.getMonth(),
+             * this.getDate(),
+             * this.getHours(),
+             * this.getMinutes(),
+             * this.getSeconds())) / (60 * 1000)
+             * 
+ */ + // @ts-ignore + public getTimezoneOffset(): number; + /** + * Obtains an instance of {@code Date} from an {@code Instant} object. + *

+ * {@code Instant} uses a precision of nanoseconds, whereas {@code Date} + * uses a precision of milliseconds. The conversion will trancate any + * excess precision information as though the amount in nanoseconds was + * subject to integer division by one million. + *

+ * {@code Instant} can store points on the time-line further in the future + * and further in the past than {@code Date}. In this scenario, this method + * will throw an exception. + */ + // @ts-ignore + public static from(instant: java.time.Instant): java.util.Date; + /** + * Converts this {@code Date} object to an {@code Instant}. + *

+ * The conversion creates an {@code Instant} that represents the same + * point on the time-line as this {@code Date}. + */ + // @ts-ignore + public toInstant(): java.time.Instant; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Deque.d.ts b/packages/types/dist/typings/jdk/java.util.Deque.d.ts new file mode 100644 index 00000000..5ef4ae8c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Deque.d.ts @@ -0,0 +1,229 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + interface Deque { + /** + * Inserts the specified element at the front of this deque if it is + * possible to do so immediately without violating capacity restrictions, + * throwing an {@code IllegalStateException} if no space is currently + * available. When using a capacity-restricted deque, it is generally + * preferable to use method {@link #offerFirst}. + */ + // @ts-ignore + addFirst(e: java.lang.Object): void; + /** + * Inserts the specified element at the end of this deque if it is + * possible to do so immediately without violating capacity restrictions, + * throwing an {@code IllegalStateException} if no space is currently + * available. When using a capacity-restricted deque, it is generally + * preferable to use method {@link #offerLast}. + *

This method is equivalent to {@link #add}. + */ + // @ts-ignore + addLast(e: java.lang.Object): void; + /** + * Inserts the specified element at the front of this deque unless it would + * violate capacity restrictions. When using a capacity-restricted deque, + * this method is generally preferable to the {@link #addFirst} method, + * which can fail to insert an element only by throwing an exception. + */ + // @ts-ignore + offerFirst(e: java.lang.Object): boolean; + /** + * Inserts the specified element at the end of this deque unless it would + * violate capacity restrictions. When using a capacity-restricted deque, + * this method is generally preferable to the {@link #addLast} method, + * which can fail to insert an element only by throwing an exception. + */ + // @ts-ignore + offerLast(e: java.lang.Object): boolean; + /** + * Retrieves and removes the first element of this deque. This method + * differs from {@link #pollFirst pollFirst} only in that it throws an + * exception if this deque is empty. + */ + // @ts-ignore + removeFirst(): java.lang.Object; + /** + * Retrieves and removes the last element of this deque. This method + * differs from {@link #pollLast pollLast} only in that it throws an + * exception if this deque is empty. + */ + // @ts-ignore + removeLast(): java.lang.Object; + /** + * Retrieves and removes the first element of this deque, + * or returns {@code null} if this deque is empty. + */ + // @ts-ignore + pollFirst(): java.lang.Object; + /** + * Retrieves and removes the last element of this deque, + * or returns {@code null} if this deque is empty. + */ + // @ts-ignore + pollLast(): java.lang.Object; + /** + * Retrieves, but does not remove, the first element of this deque. + * This method differs from {@link #peekFirst peekFirst} only in that it + * throws an exception if this deque is empty. + */ + // @ts-ignore + getFirst(): java.lang.Object; + /** + * Retrieves, but does not remove, the last element of this deque. + * This method differs from {@link #peekLast peekLast} only in that it + * throws an exception if this deque is empty. + */ + // @ts-ignore + getLast(): java.lang.Object; + /** + * Retrieves, but does not remove, the first element of this deque, + * or returns {@code null} if this deque is empty. + */ + // @ts-ignore + peekFirst(): java.lang.Object; + /** + * Retrieves, but does not remove, the last element of this deque, + * or returns {@code null} if this deque is empty. + */ + // @ts-ignore + peekLast(): java.lang.Object; + /** + * Removes the first occurrence of the specified element from this deque. + * If the deque does not contain the element, it is unchanged. + * More formally, removes the first element {@code e} such that + * (o==null ? e==null : o.equals(e)) + * (if such an element exists). + * Returns {@code true} if this deque contained the specified element + * (or equivalently, if this deque changed as a result of the call). + */ + // @ts-ignore + removeFirstOccurrence(o: java.lang.Object): boolean; + /** + * Removes the last occurrence of the specified element from this deque. + * If the deque does not contain the element, it is unchanged. + * More formally, removes the last element {@code e} such that + * (o==null ? e==null : o.equals(e)) + * (if such an element exists). + * Returns {@code true} if this deque contained the specified element + * (or equivalently, if this deque changed as a result of the call). + */ + // @ts-ignore + removeLastOccurrence(o: java.lang.Object): boolean; + /** + * Inserts the specified element into the queue represented by this deque + * (in other words, at the tail of this deque) if it is possible to do so + * immediately without violating capacity restrictions, returning + * {@code true} upon success and throwing an + * {@code IllegalStateException} if no space is currently available. + * When using a capacity-restricted deque, it is generally preferable to + * use {@link #offer(Object) offer}. + *

This method is equivalent to {@link #addLast}. + */ + // @ts-ignore + add(e: java.lang.Object): boolean; + /** + * Inserts the specified element into the queue represented by this deque + * (in other words, at the tail of this deque) if it is possible to do so + * immediately without violating capacity restrictions, returning + * {@code true} upon success and {@code false} if no space is currently + * available. When using a capacity-restricted deque, this method is + * generally preferable to the {@link #add} method, which can fail to + * insert an element only by throwing an exception. + *

This method is equivalent to {@link #offerLast}. + */ + // @ts-ignore + offer(e: java.lang.Object): boolean; + /** + * Retrieves and removes the head of the queue represented by this deque + * (in other words, the first element of this deque). + * This method differs from {@link #poll poll} only in that it throws an + * exception if this deque is empty. + *

This method is equivalent to {@link #removeFirst()}. + */ + // @ts-ignore + remove(): java.lang.Object; + /** + * Retrieves and removes the head of the queue represented by this deque + * (in other words, the first element of this deque), or returns + * {@code null} if this deque is empty. + *

This method is equivalent to {@link #pollFirst()}. + */ + // @ts-ignore + poll(): java.lang.Object; + /** + * Retrieves, but does not remove, the head of the queue represented by + * this deque (in other words, the first element of this deque). + * This method differs from {@link #peek peek} only in that it throws an + * exception if this deque is empty. + *

This method is equivalent to {@link #getFirst()}. + */ + // @ts-ignore + element(): java.lang.Object; + /** + * Retrieves, but does not remove, the head of the queue represented by + * this deque (in other words, the first element of this deque), or + * returns {@code null} if this deque is empty. + *

This method is equivalent to {@link #peekFirst()}. + */ + // @ts-ignore + peek(): java.lang.Object; + /** + * Pushes an element onto the stack represented by this deque (in other + * words, at the head of this deque) if it is possible to do so + * immediately without violating capacity restrictions, throwing an + * {@code IllegalStateException} if no space is currently available. + *

This method is equivalent to {@link #addFirst}. + */ + // @ts-ignore + push(e: java.lang.Object): void; + /** + * Pops an element from the stack represented by this deque. In other + * words, removes and returns the first element of this deque. + *

This method is equivalent to {@link #removeFirst()}. + */ + // @ts-ignore + pop(): java.lang.Object; + /** + * Removes the first occurrence of the specified element from this deque. + * If the deque does not contain the element, it is unchanged. + * More formally, removes the first element {@code e} such that + * (o==null ? e==null : o.equals(e)) + * (if such an element exists). + * Returns {@code true} if this deque contained the specified element + * (or equivalently, if this deque changed as a result of the call). + *

This method is equivalent to {@link #removeFirstOccurrence(Object)}. + */ + // @ts-ignore + remove(o: java.lang.Object): boolean; + /** + * Returns {@code true} if this deque contains the specified element. + * More formally, returns {@code true} if and only if this deque contains + * at least one element {@code e} such that + * (o==null ? e==null : o.equals(e)). + */ + // @ts-ignore + contains(o: java.lang.Object): boolean; + /** + * Returns the number of elements in this deque. + */ + // @ts-ignore + size(): number; + /** + * Returns an iterator over the elements in this deque in proper sequence. + * The elements will be returned in order from first (head) to last (tail). + */ + // @ts-ignore + iterator(): java.util.Iterator; + /** + * Returns an iterator over the elements in this deque in reverse + * sequential order. The elements will be returned in order from + * last (tail) to first (head). + */ + // @ts-ignore + descendingIterator(): java.util.Iterator; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Dictionary.d.ts b/packages/types/dist/typings/jdk/java.util.Dictionary.d.ts new file mode 100644 index 00000000..4b948a51 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Dictionary.d.ts @@ -0,0 +1,76 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + abstract class Dictionary extends java.lang.Object { + /** + * Sole constructor. (For invocation by subclass constructors, typically + * implicit.) + */ + // @ts-ignore + constructor() + /** + * Returns the number of entries (distinct keys) in this dictionary. + */ + // @ts-ignore + public abstract size(): number; + /** + * Tests if this dictionary maps no keys to value. The general contract + * for the isEmpty method is that the result is true if and only + * if this dictionary contains no entries. + */ + // @ts-ignore + public abstract isEmpty(): boolean; + /** + * Returns an enumeration of the keys in this dictionary. The general + * contract for the keys method is that an Enumeration object + * is returned that will generate all the keys for which this dictionary + * contains entries. + */ + // @ts-ignore + public abstract keys(): java.util.Enumeration; + /** + * Returns an enumeration of the values in this dictionary. The general + * contract for the elements method is that an + * Enumeration is returned that will generate all the elements + * contained in entries in this dictionary. + */ + // @ts-ignore + public abstract elements(): java.util.Enumeration; + /** + * Returns the value to which the key is mapped in this dictionary. + * The general contract for the isEmpty method is that if this + * dictionary contains an entry for the specified key, the associated + * value is returned; otherwise, null is returned. + */ + // @ts-ignore + public abstract get(key: java.lang.Object): java.lang.Object; + /** + * Maps the specified key to the specified + * value in this dictionary. Neither the key nor the + * value can be null. + *

+ * If this dictionary already contains an entry for the specified + * key, the value already in this dictionary for that + * key is returned, after modifying the entry to contain the + * new element.

If this dictionary does not already have an entry + * for the specified key, an entry is created for the + * specified key and value, and null is + * returned. + *

+ * The value can be retrieved by calling the + * get method with a key that is equal to + * the original key. + */ + // @ts-ignore + public abstract put(key: java.lang.Object, value: java.lang.Object): java.lang.Object; + /** + * Removes the key (and its corresponding + * value) from this dictionary. This method does nothing + * if the key is not in this dictionary. + */ + // @ts-ignore + public abstract remove(key: java.lang.Object): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.DoubleSummaryStatistics.d.ts b/packages/types/dist/typings/jdk/java.util.DoubleSummaryStatistics.d.ts new file mode 100644 index 00000000..542a15ab --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.DoubleSummaryStatistics.d.ts @@ -0,0 +1,85 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class DoubleSummaryStatistics extends java.lang.Object { + /** + * Construct an empty instance with zero count, zero sum, + * {@code Double.POSITIVE_INFINITY} min, {@code Double.NEGATIVE_INFINITY} + * max and zero average. + */ + // @ts-ignore + constructor() + /** + * Records another value into the summary information. + */ + // @ts-ignore + public accept(value: number): void; + /** + * Combines the state of another {@code DoubleSummaryStatistics} into this + * one. + */ + // @ts-ignore + public combine(other: java.util.DoubleSummaryStatistics): void; + /** + * Return the count of values recorded. + */ + // @ts-ignore + public getCount(): number; + /** + * Returns the sum of values recorded, or zero if no values have been + * recorded. + * If any recorded value is a NaN or the sum is at any point a NaN + * then the sum will be NaN. + *

The value of a floating-point sum is a function both of the + * input values as well as the order of addition operations. The + * order of addition operations of this method is intentionally + * not defined to allow for implementation flexibility to improve + * the speed and accuracy of the computed result. + * In particular, this method may be implemented using compensated + * summation or other technique to reduce the error bound in the + * numerical sum compared to a simple summation of {@code double} + * values. + */ + // @ts-ignore + public getSum(): number; + /** + * Returns the minimum recorded value, {@code Double.NaN} if any recorded + * value was NaN or {@code Double.POSITIVE_INFINITY} if no values were + * recorded. Unlike the numerical comparison operators, this method + * considers negative zero to be strictly smaller than positive zero. + */ + // @ts-ignore + public getMin(): number; + /** + * Returns the maximum recorded value, {@code Double.NaN} if any recorded + * value was NaN or {@code Double.NEGATIVE_INFINITY} if no values were + * recorded. Unlike the numerical comparison operators, this method + * considers negative zero to be strictly smaller than positive zero. + */ + // @ts-ignore + public getMax(): number; + /** + * Returns the arithmetic mean of values recorded, or zero if no + * values have been recorded. + * If any recorded value is a NaN or the sum is at any point a NaN + * then the average will be code NaN. + *

The average returned can vary depending upon the order in + * which values are recorded. + * This method may be implemented using compensated summation or + * other technique to reduce the error bound in the {@link #getSum + * numerical sum} used to compute the average. + */ + // @ts-ignore + public getAverage(): number; + /** + * {@inheritDoc} + * Returns a non-empty string representation of this object suitable for + * debugging. The exact presentation format is unspecified and may vary + * between implementations and versions. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.DuplicateFormatFlagsException.d.ts b/packages/types/dist/typings/jdk/java.util.DuplicateFormatFlagsException.d.ts new file mode 100644 index 00000000..1dc7bcfe --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.DuplicateFormatFlagsException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class DuplicateFormatFlagsException extends java.util.IllegalFormatException { + /** + * Constructs an instance of this class with the specified flags. + */ + // @ts-ignore + constructor(f: string) + /** + * Returns the set of flags which contains a duplicate flag. + */ + // @ts-ignore + public getFlags(): string; + // @ts-ignore + public getMessage(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.EmptyStackException.d.ts b/packages/types/dist/typings/jdk/java.util.EmptyStackException.d.ts new file mode 100644 index 00000000..26eea2d9 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.EmptyStackException.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class EmptyStackException extends java.lang.RuntimeException { + /** + * Constructs a new EmptyStackException with null + * as its error message string. + */ + // @ts-ignore + constructor() + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.EnumMap.d.ts b/packages/types/dist/typings/jdk/java.util.EnumMap.d.ts new file mode 100644 index 00000000..29ace672 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.EnumMap.d.ts @@ -0,0 +1,132 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class EnumMap extends java.util.AbstractMap { + /** + * Creates an empty enum map with the specified key type. + */ + // @ts-ignore + constructor(keyType: java.lang.Class) + /** + * Creates an enum map with the same key type as the specified enum + * map, initially containing the same mappings (if any). + */ + // @ts-ignore + constructor(m: java.util.EnumMap) + /** + * Creates an enum map initialized from the specified map. If the + * specified map is an EnumMap instance, this constructor behaves + * identically to {@link #EnumMap(EnumMap)}. Otherwise, the specified map + * must contain at least one mapping (in order to determine the new + * enum map's key type). + */ + // @ts-ignore + constructor(m: java.util.Map) + /** + * Returns the number of key-value mappings in this map. + */ + // @ts-ignore + public size(): number; + /** + * Returns true if this map maps one or more keys to the + * specified value. + */ + // @ts-ignore + public containsValue(value: java.lang.Object): boolean; + /** + * Returns true if this map contains a mapping for the specified + * key. + */ + // @ts-ignore + public containsKey(key: java.lang.Object): boolean; + /** + * Returns the value to which the specified key is mapped, + * or {@code null} if this map contains no mapping for the key. + *

More formally, if this map contains a mapping from a key + * {@code k} to a value {@code v} such that {@code (key == k)}, + * then this method returns {@code v}; otherwise it returns + * {@code null}. (There can be at most one such mapping.) + *

A return value of {@code null} does not necessarily + * indicate that the map contains no mapping for the key; it's also + * possible that the map explicitly maps the key to {@code null}. + * The {@link #containsKey containsKey} operation may be used to + * distinguish these two cases. + */ + // @ts-ignore + public get(key: java.lang.Object): java.lang.Object; + /** + * Associates the specified value with the specified key in this map. + * If the map previously contained a mapping for this key, the old + * value is replaced. + */ + // @ts-ignore + public put(key: java.lang.Enum, value: java.lang.Object): java.lang.Object; + /** + * Removes the mapping for this key from this map if present. + */ + // @ts-ignore + public remove(key: java.lang.Object): java.lang.Object; + /** + * Copies all of the mappings from the specified map to this map. + * These mappings will replace any mappings that this map had for + * any of the keys currently in the specified map. + */ + // @ts-ignore + public putAll(m: java.util.Map): void; + /** + * Removes all mappings from this map. + */ + // @ts-ignore + public clear(): void; + /** + * Returns a {@link Set} view of the keys contained in this map. + * The returned set obeys the general contract outlined in + * {@link Map#keySet()}. The set's iterator will return the keys + * in their natural order (the order in which the enum constants + * are declared). + */ + // @ts-ignore + public keySet(): java.util.Set; + /** + * Returns a {@link Collection} view of the values contained in this map. + * The returned collection obeys the general contract outlined in + * {@link Map#values()}. The collection's iterator will return the + * values in the order their corresponding keys appear in map, + * which is their natural order (the order in which the enum constants + * are declared). + */ + // @ts-ignore + public values(): java.util.Collection; + /** + * Returns a {@link Set} view of the mappings contained in this map. + * The returned set obeys the general contract outlined in + * {@link Map#keySet()}. The set's iterator will return the + * mappings in the order their keys appear in map, which is their + * natural order (the order in which the enum constants are declared). + */ + // @ts-ignore + public entrySet(): java.util.Set; + /** + * Compares the specified object with this map for equality. Returns + * true if the given object is also a map and the two maps + * represent the same mappings, as specified in the {@link + * Map#equals(Object)} contract. + */ + // @ts-ignore + public equals(o: java.lang.Object): boolean; + /** + * Returns the hash code value for this map. The hash code of a map is + * defined to be the sum of the hash codes of each entry in the map. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns a shallow copy of this enum map. (The values themselves + * are not cloned. + */ + // @ts-ignore + public clone(): java.util.EnumMap; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.EnumSet.d.ts b/packages/types/dist/typings/jdk/java.util.EnumSet.d.ts new file mode 100644 index 00000000..086374ee --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.EnumSet.d.ts @@ -0,0 +1,113 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + abstract class EnumSet extends java.util.AbstractSet { + /** + * Creates an empty enum set with the specified element type. + */ + // @ts-ignore + public static noneOf(elementType: java.lang.Class): java.util.EnumSet; + /** + * Creates an enum set containing all of the elements in the specified + * element type. + */ + // @ts-ignore + public static allOf(elementType: java.lang.Class): java.util.EnumSet; + /** + * Creates an enum set with the same element type as the specified enum + * set, initially containing the same elements (if any). + */ + // @ts-ignore + public static copyOf(s: java.util.EnumSet): java.util.EnumSet; + /** + * Creates an enum set initialized from the specified collection. If + * the specified collection is an EnumSet instance, this static + * factory method behaves identically to {@link #copyOf(EnumSet)}. + * Otherwise, the specified collection must contain at least one element + * (in order to determine the new enum set's element type). + */ + // @ts-ignore + public static copyOf(c: java.util.Collection): java.util.EnumSet; + /** + * Creates an enum set with the same element type as the specified enum + * set, initially containing all the elements of this type that are + * not contained in the specified set. + */ + // @ts-ignore + public static complementOf(s: java.util.EnumSet): java.util.EnumSet; + /** + * Creates an enum set initially containing the specified element. + * Overloadings of this method exist to initialize an enum set with + * one through five elements. A sixth overloading is provided that + * uses the varargs feature. This overloading may be used to create + * an enum set initially containing an arbitrary number of elements, but + * is likely to run slower than the overloadings that do not use varargs. + */ + // @ts-ignore + public static of(e: java.lang.Enum): java.util.EnumSet; + /** + * Creates an enum set initially containing the specified elements. + * Overloadings of this method exist to initialize an enum set with + * one through five elements. A sixth overloading is provided that + * uses the varargs feature. This overloading may be used to create + * an enum set initially containing an arbitrary number of elements, but + * is likely to run slower than the overloadings that do not use varargs. + */ + // @ts-ignore + public static of(e1: java.lang.Enum, e2: java.lang.Enum): java.util.EnumSet; + /** + * Creates an enum set initially containing the specified elements. + * Overloadings of this method exist to initialize an enum set with + * one through five elements. A sixth overloading is provided that + * uses the varargs feature. This overloading may be used to create + * an enum set initially containing an arbitrary number of elements, but + * is likely to run slower than the overloadings that do not use varargs. + */ + // @ts-ignore + public static of(e1: java.lang.Enum, e2: java.lang.Enum, e3: java.lang.Enum): java.util.EnumSet; + /** + * Creates an enum set initially containing the specified elements. + * Overloadings of this method exist to initialize an enum set with + * one through five elements. A sixth overloading is provided that + * uses the varargs feature. This overloading may be used to create + * an enum set initially containing an arbitrary number of elements, but + * is likely to run slower than the overloadings that do not use varargs. + */ + // @ts-ignore + public static of(e1: java.lang.Enum, e2: java.lang.Enum, e3: java.lang.Enum, e4: java.lang.Enum): java.util.EnumSet; + /** + * Creates an enum set initially containing the specified elements. + * Overloadings of this method exist to initialize an enum set with + * one through five elements. A sixth overloading is provided that + * uses the varargs feature. This overloading may be used to create + * an enum set initially containing an arbitrary number of elements, but + * is likely to run slower than the overloadings that do not use varargs. + */ + // @ts-ignore + public static of(e1: java.lang.Enum, e2: java.lang.Enum, e3: java.lang.Enum, e4: java.lang.Enum, e5: java.lang.Enum): java.util.EnumSet; + /** + * Creates an enum set initially containing the specified elements. + * This factory, whose parameter list uses the varargs feature, may + * be used to create an enum set initially containing an arbitrary + * number of elements, but it is likely to run slower than the overloadings + * that do not use varargs. + */ + // @ts-ignore + public static of(first: java.lang.Enum, rest: java.lang.Enum): java.util.EnumSet; + /** + * Creates an enum set initially containing all of the elements in the + * range defined by the two specified endpoints. The returned set will + * contain the endpoints themselves, which may be identical but must not + * be out of order. + */ + // @ts-ignore + public static range(from: java.lang.Enum, to: java.lang.Enum): java.util.EnumSet; + /** + * Returns a copy of this set. + */ + // @ts-ignore + public clone(): java.util.EnumSet; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Enumeration.d.ts b/packages/types/dist/typings/jdk/java.util.Enumeration.d.ts new file mode 100644 index 00000000..bbad87fc --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Enumeration.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + interface Enumeration { + /** + * Tests if this enumeration contains more elements. + */ + // @ts-ignore + hasMoreElements(): boolean; + /** + * Returns the next element of this enumeration if this enumeration + * object has at least one more element to provide. + */ + // @ts-ignore + nextElement(): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.EventListener.d.ts b/packages/types/dist/typings/jdk/java.util.EventListener.d.ts new file mode 100644 index 00000000..01417b98 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.EventListener.d.ts @@ -0,0 +1,8 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + interface EventListener { + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.EventListenerProxy.d.ts b/packages/types/dist/typings/jdk/java.util.EventListenerProxy.d.ts new file mode 100644 index 00000000..335a3178 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.EventListenerProxy.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + abstract class EventListenerProxy extends java.lang.Object { + /** + * Creates a proxy for the specified listener. + */ + // @ts-ignore + constructor(listener: java.util.EventListener) + /** + * Returns the listener associated with the proxy. + */ + // @ts-ignore + public getListener(): java.util.EventListener; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.EventObject.d.ts b/packages/types/dist/typings/jdk/java.util.EventObject.d.ts new file mode 100644 index 00000000..68500b0d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.EventObject.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class EventObject extends java.lang.Object { + /** + * Constructs a prototypical Event. + */ + // @ts-ignore + constructor(source: java.lang.Object) + // @ts-ignore + protected source: java.lang.Object; + /** + * The object on which the Event initially occurred. + */ + // @ts-ignore + public getSource(): java.lang.Object; + /** + * Returns a String representation of this EventObject. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.FormatFlagsConversionMismatchException.d.ts b/packages/types/dist/typings/jdk/java.util.FormatFlagsConversionMismatchException.d.ts new file mode 100644 index 00000000..f5ff4716 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.FormatFlagsConversionMismatchException.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class FormatFlagsConversionMismatchException extends java.util.IllegalFormatException { + /** + * Constructs an instance of this class with the specified flag + * and conversion. + */ + // @ts-ignore + constructor(f: string, c: string) + /** + * Returns the incompatible flag. + */ + // @ts-ignore + public getFlags(): string; + /** + * Returns the incompatible conversion. + */ + // @ts-ignore + public getConversion(): string; + // @ts-ignore + public getMessage(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Formattable.d.ts b/packages/types/dist/typings/jdk/java.util.Formattable.d.ts new file mode 100644 index 00000000..19f0235c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Formattable.d.ts @@ -0,0 +1,13 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + interface Formattable { + /** + * Formats the object using the provided {@link Formatter formatter}. + */ + // @ts-ignore + formatTo(formatter: java.util.Formatter, flags: number, width: number, precision: number): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.FormattableFlags.d.ts b/packages/types/dist/typings/jdk/java.util.FormattableFlags.d.ts new file mode 100644 index 00000000..1e14570c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.FormattableFlags.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class FormattableFlags extends java.lang.Object { + // @ts-ignore + public static LEFT_JUSTIFY: number; + // @ts-ignore + public static UPPERCASE: number; + // @ts-ignore + public static ALTERNATE: number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Formatter.BigDecimalLayoutForm.d.ts b/packages/types/dist/typings/jdk/java.util.Formatter.BigDecimalLayoutForm.d.ts new file mode 100644 index 00000000..cf132abb --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Formatter.BigDecimalLayoutForm.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace Formatter { + // @ts-ignore + class BigDecimalLayoutForm extends java.lang.Enum { + // @ts-ignore + public static SCIENTIFIC: java.util.Formatter.BigDecimalLayoutForm; + // @ts-ignore + public static DECIMAL_FLOAT: java.util.Formatter.BigDecimalLayoutForm; + // @ts-ignore + public static values(): java.util.Formatter.BigDecimalLayoutForm[]; + // @ts-ignore + public static valueOf(name: string): java.util.Formatter.BigDecimalLayoutForm; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Formatter.d.ts b/packages/types/dist/typings/jdk/java.util.Formatter.d.ts new file mode 100644 index 00000000..fcb3d829 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Formatter.d.ts @@ -0,0 +1,212 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class Formatter extends java.lang.Object { + /** + * Constructs a new formatter. + *

The destination of the formatted output is a {@link StringBuilder} + * which may be retrieved by invoking {@link #out out()} and whose + * current content may be converted into a string by invoking {@link + * #toString toString()}. The locale used is the {@linkplain + * Locale#getDefault(Locale.Category) default locale} for + * {@linkplain Locale.Category#FORMAT formatting} for this instance of the Java + * virtual machine. + */ + // @ts-ignore + constructor() + /** + * Constructs a new formatter with the specified destination. + *

The locale used is the {@linkplain + * Locale#getDefault(Locale.Category) default locale} for + * {@linkplain Locale.Category#FORMAT formatting} for this instance of the Java + * virtual machine. + */ + // @ts-ignore + constructor(a: java.lang.Appendable) + /** + * Constructs a new formatter with the specified locale. + *

The destination of the formatted output is a {@link StringBuilder} + * which may be retrieved by invoking {@link #out out()} and whose current + * content may be converted into a string by invoking {@link #toString + * toString()}. + */ + // @ts-ignore + constructor(l: java.util.Locale) + /** + * Constructs a new formatter with the specified destination and locale. + */ + // @ts-ignore + constructor(a: java.lang.Appendable, l: java.util.Locale) + /** + * Constructs a new formatter with the specified file name. + *

The charset used is the {@linkplain + * java.nio.charset.Charset#defaultCharset() default charset} for this + * instance of the Java virtual machine. + *

The locale used is the {@linkplain + * Locale#getDefault(Locale.Category) default locale} for + * {@linkplain Locale.Category#FORMAT formatting} for this instance of the Java + * virtual machine. + */ + // @ts-ignore + constructor(fileName: string) + /** + * Constructs a new formatter with the specified file name and charset. + *

The locale used is the {@linkplain + * Locale#getDefault(Locale.Category) default locale} for + * {@linkplain Locale.Category#FORMAT formatting} for this instance of the Java + * virtual machine. + */ + // @ts-ignore + constructor(fileName: string, csn: string) + /** + * Constructs a new formatter with the specified file name, charset, and + * locale. + */ + // @ts-ignore + constructor(fileName: string, csn: string, l: java.util.Locale) + /** + * Constructs a new formatter with the specified file. + *

The charset used is the {@linkplain + * java.nio.charset.Charset#defaultCharset() default charset} for this + * instance of the Java virtual machine. + *

The locale used is the {@linkplain + * Locale#getDefault(Locale.Category) default locale} for + * {@linkplain Locale.Category#FORMAT formatting} for this instance of the Java + * virtual machine. + */ + // @ts-ignore + constructor(file: java.io.File) + /** + * Constructs a new formatter with the specified file and charset. + *

The locale used is the {@linkplain + * Locale#getDefault(Locale.Category) default locale} for + * {@linkplain Locale.Category#FORMAT formatting} for this instance of the Java + * virtual machine. + */ + // @ts-ignore + constructor(file: java.io.File, csn: string) + /** + * Constructs a new formatter with the specified file, charset, and + * locale. + */ + // @ts-ignore + constructor(file: java.io.File, csn: string, l: java.util.Locale) + /** + * Constructs a new formatter with the specified print stream. + *

The locale used is the {@linkplain + * Locale#getDefault(Locale.Category) default locale} for + * {@linkplain Locale.Category#FORMAT formatting} for this instance of the Java + * virtual machine. + *

Characters are written to the given {@link java.io.PrintStream + * PrintStream} object and are therefore encoded using that object's + * charset. + */ + // @ts-ignore + constructor(ps: java.io.PrintStream) + /** + * Constructs a new formatter with the specified output stream. + *

The charset used is the {@linkplain + * java.nio.charset.Charset#defaultCharset() default charset} for this + * instance of the Java virtual machine. + *

The locale used is the {@linkplain + * Locale#getDefault(Locale.Category) default locale} for + * {@linkplain Locale.Category#FORMAT formatting} for this instance of the Java + * virtual machine. + */ + // @ts-ignore + constructor(os: java.io.OutputStream) + /** + * Constructs a new formatter with the specified output stream and + * charset. + *

The locale used is the {@linkplain + * Locale#getDefault(Locale.Category) default locale} for + * {@linkplain Locale.Category#FORMAT formatting} for this instance of the Java + * virtual machine. + */ + // @ts-ignore + constructor(os: java.io.OutputStream, csn: string) + /** + * Constructs a new formatter with the specified output stream, charset, + * and locale. + */ + // @ts-ignore + constructor(os: java.io.OutputStream, csn: string, l: java.util.Locale) + /** + * Returns the locale set by the construction of this formatter. + *

The {@link #format(java.util.Locale,String,Object...) format} method + * for this object which has a locale argument does not change this value. + */ + // @ts-ignore + public locale(): java.util.Locale; + /** + * Returns the destination for the output. + */ + // @ts-ignore + public out(): java.lang.Appendable; + /** + * Returns the result of invoking {@code toString()} on the destination + * for the output. For example, the following code formats text into a + * {@link StringBuilder} then retrieves the resultant string: + *

+             * Formatter f = new Formatter();
+             * f.format("Last reboot at %tc", lastRebootDate);
+             * String s = f.toString();
+             * // -> s == "Last reboot at Sat Jan 01 00:00:00 PST 2000"
+             * 
+ *

An invocation of this method behaves in exactly the same way as the + * invocation + *

+             * out().toString() 
+ *

Depending on the specification of {@code toString} for the {@link + * Appendable}, the returned string may or may not contain the characters + * written to the destination. For instance, buffers typically return + * their contents in {@code toString()}, but streams cannot since the + * data is discarded. + */ + // @ts-ignore + public toString(): string; + /** + * Flushes this formatter. If the destination implements the {@link + * java.io.Flushable} interface, its {@code flush} method will be invoked. + *

Flushing a formatter writes any buffered output in the destination + * to the underlying stream. + */ + // @ts-ignore + public flush(): void; + /** + * Closes this formatter. If the destination implements the {@link + * java.io.Closeable} interface, its {@code close} method will be invoked. + *

Closing a formatter allows it to release resources it may be holding + * (such as open files). If the formatter is already closed, then invoking + * this method has no effect. + *

Attempting to invoke any methods except {@link #ioException()} in + * this formatter after it has been closed will result in a {@link + * FormatterClosedException}. + */ + // @ts-ignore + public close(): void; + /** + * Returns the {@code IOException} last thrown by this formatter's {@link + * Appendable}. + *

If the destination's {@code append()} method never throws + * {@code IOException}, then this method will always return {@code null}. + */ + // @ts-ignore + public ioException(): java.io.IOException; + /** + * Writes a formatted string to this object's destination using the + * specified format string and arguments. The locale used is the one + * defined during the construction of this formatter. + */ + // @ts-ignore + public format(format: string, args: java.lang.Object): java.util.Formatter; + /** + * Writes a formatted string to this object's destination using the + * specified locale, format string, and arguments. + */ + // @ts-ignore + public format(l: java.util.Locale, format: string, args: java.lang.Object): java.util.Formatter; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.FormatterClosedException.d.ts b/packages/types/dist/typings/jdk/java.util.FormatterClosedException.d.ts new file mode 100644 index 00000000..6224e2c5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.FormatterClosedException.d.ts @@ -0,0 +1,13 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class FormatterClosedException extends java.lang.IllegalStateException { + /** + * Constructs an instance of this class. + */ + // @ts-ignore + constructor() + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.GregorianCalendar.d.ts b/packages/types/dist/typings/jdk/java.util.GregorianCalendar.d.ts new file mode 100644 index 00000000..6c696c18 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.GregorianCalendar.d.ts @@ -0,0 +1,363 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class GregorianCalendar extends java.util.Calendar { + /** + * Constructs a default GregorianCalendar using the current time + * in the default time zone with the default + * {@link Locale.Category#FORMAT FORMAT} locale. + */ + // @ts-ignore + constructor() + /** + * Constructs a GregorianCalendar based on the current time + * in the given time zone with the default + * {@link Locale.Category#FORMAT FORMAT} locale. + */ + // @ts-ignore + constructor(zone: java.util.TimeZone) + /** + * Constructs a GregorianCalendar based on the current time + * in the default time zone with the given locale. + */ + // @ts-ignore + constructor(aLocale: java.util.Locale) + /** + * Constructs a GregorianCalendar based on the current time + * in the given time zone with the given locale. + */ + // @ts-ignore + constructor(zone: java.util.TimeZone, aLocale: java.util.Locale) + /** + * Constructs a GregorianCalendar with the given date set + * in the default time zone with the default locale. + */ + // @ts-ignore + constructor(year: number, month: number, dayOfMonth: number) + /** + * Constructs a GregorianCalendar with the given date + * and time set for the default time zone with the default locale. + */ + // @ts-ignore + constructor(year: number, month: number, dayOfMonth: number, hourOfDay: number, minute: number) + /** + * Constructs a GregorianCalendar with the given date + * and time set for the default time zone with the default locale. + */ + // @ts-ignore + constructor(year: number, month: number, dayOfMonth: number, hourOfDay: number, minute: number, second: number) + // @ts-ignore + public static BC: number; + // @ts-ignore + public static AD: number; + /** + * Sets the GregorianCalendar change date. This is the point when the switch + * from Julian dates to Gregorian dates occurred. Default is October 15, + * 1582 (Gregorian). Previous to this, dates will be in the Julian calendar. + *

+ * To obtain a pure Julian calendar, set the change date to + * Date(Long.MAX_VALUE). To obtain a pure Gregorian calendar, + * set the change date to Date(Long.MIN_VALUE). + */ + // @ts-ignore + public setGregorianChange(date: java.util.Date): void; + /** + * Gets the Gregorian Calendar change date. This is the point when the + * switch from Julian dates to Gregorian dates occurred. Default is + * October 15, 1582 (Gregorian). Previous to this, dates will be in the Julian + * calendar. + */ + // @ts-ignore + public getGregorianChange(): java.util.Date; + /** + * Determines if the given year is a leap year. Returns true if + * the given year is a leap year. To specify BC year numbers, + * 1 - year number must be given. For example, year BC 4 is + * specified as -3. + */ + // @ts-ignore + public isLeapYear(year: number): boolean; + /** + * Returns {@code "gregory"} as the calendar type. + */ + // @ts-ignore + public getCalendarType(): string; + /** + * Compares this GregorianCalendar to the specified + * Object. The result is true if and + * only if the argument is a GregorianCalendar object + * that represents the same time value (millisecond offset from + * the Epoch) under the same + * Calendar parameters and Gregorian change date as + * this object. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Generates the hash code for this GregorianCalendar object. + */ + // @ts-ignore + public hashCode(): number; + /** + * Adds the specified (signed) amount of time to the given calendar field, + * based on the calendar's rules. + *

Add rule 1. The value of field + * after the call minus the value of field before the + * call is amount, modulo any overflow that has occurred in + * field. Overflow occurs when a field value exceeds its + * range and, as a result, the next larger field is incremented or + * decremented and the field value is adjusted back into its range.

+ *

Add rule 2. If a smaller field is expected to be + * invariant, but it is impossible for it to be equal to its + * prior value because of changes in its minimum or maximum after + * field is changed, then its value is adjusted to be as close + * as possible to its expected value. A smaller field represents a + * smaller unit of time. HOUR is a smaller field than + * DAY_OF_MONTH. No adjustment is made to smaller fields + * that are not expected to be invariant. The calendar system + * determines what fields are expected to be invariant.

+ */ + // @ts-ignore + public add(field: number, amount: number): void; + /** + * Adds or subtracts (up/down) a single unit of time on the given time + * field without changing larger fields. + *

+ * Example: Consider a GregorianCalendar + * originally set to December 31, 1999. Calling {@link #roll(int,boolean) roll(Calendar.MONTH, true)} + * sets the calendar to January 31, 1999. The YEAR field is unchanged + * because it is a larger field than MONTH.

+ */ + // @ts-ignore + public roll(field: number, up: boolean): void; + /** + * Adds a signed amount to the specified calendar field without changing larger fields. + * A negative roll amount means to subtract from field without changing + * larger fields. If the specified amount is 0, this method performs nothing. + *

This method calls {@link #complete()} before adding the + * amount so that all the calendar fields are normalized. If there + * is any calendar field having an out-of-range value in non-lenient mode, then an + * IllegalArgumentException is thrown. + *

+ * Example: Consider a GregorianCalendar + * originally set to August 31, 1999. Calling roll(Calendar.MONTH, + * 8) sets the calendar to April 30, 1999. Using a + * GregorianCalendar, the DAY_OF_MONTH field cannot + * be 31 in the month April. DAY_OF_MONTH is set to the closest possible + * value, 30. The YEAR field maintains the value of 1999 because it + * is a larger field than MONTH. + *

+ * Example: Consider a GregorianCalendar + * originally set to Sunday June 6, 1999. Calling + * roll(Calendar.WEEK_OF_MONTH, -1) sets the calendar to + * Tuesday June 1, 1999, whereas calling + * add(Calendar.WEEK_OF_MONTH, -1) sets the calendar to + * Sunday May 30, 1999. This is because the roll rule imposes an + * additional constraint: The MONTH must not change when the + * WEEK_OF_MONTH is rolled. Taken together with add rule 1, + * the resultant date must be between Tuesday June 1 and Saturday June + * 5. According to add rule 2, the DAY_OF_WEEK, an invariant + * when changing the WEEK_OF_MONTH, is set to Tuesday, the + * closest possible value to Sunday (where Sunday is the first day of the + * week).

+ */ + // @ts-ignore + public roll(field: number, amount: number): void; + /** + * Returns the minimum value for the given calendar field of this + * GregorianCalendar instance. The minimum value is + * defined as the smallest value returned by the {@link + * Calendar#get(int) get} method for any possible time value, + * taking into consideration the current values of the + * {@link Calendar#getFirstDayOfWeek() getFirstDayOfWeek}, + * {@link Calendar#getMinimalDaysInFirstWeek() getMinimalDaysInFirstWeek}, + * {@link #getGregorianChange() getGregorianChange} and + * {@link Calendar#getTimeZone() getTimeZone} methods. + */ + // @ts-ignore + public getMinimum(field: number): number; + /** + * Returns the maximum value for the given calendar field of this + * GregorianCalendar instance. The maximum value is + * defined as the largest value returned by the {@link + * Calendar#get(int) get} method for any possible time value, + * taking into consideration the current values of the + * {@link Calendar#getFirstDayOfWeek() getFirstDayOfWeek}, + * {@link Calendar#getMinimalDaysInFirstWeek() getMinimalDaysInFirstWeek}, + * {@link #getGregorianChange() getGregorianChange} and + * {@link Calendar#getTimeZone() getTimeZone} methods. + */ + // @ts-ignore + public getMaximum(field: number): number; + /** + * Returns the highest minimum value for the given calendar field + * of this GregorianCalendar instance. The highest + * minimum value is defined as the largest value returned by + * {@link #getActualMinimum(int)} for any possible time value, + * taking into consideration the current values of the + * {@link Calendar#getFirstDayOfWeek() getFirstDayOfWeek}, + * {@link Calendar#getMinimalDaysInFirstWeek() getMinimalDaysInFirstWeek}, + * {@link #getGregorianChange() getGregorianChange} and + * {@link Calendar#getTimeZone() getTimeZone} methods. + */ + // @ts-ignore + public getGreatestMinimum(field: number): number; + /** + * Returns the lowest maximum value for the given calendar field + * of this GregorianCalendar instance. The lowest + * maximum value is defined as the smallest value returned by + * {@link #getActualMaximum(int)} for any possible time value, + * taking into consideration the current values of the + * {@link Calendar#getFirstDayOfWeek() getFirstDayOfWeek}, + * {@link Calendar#getMinimalDaysInFirstWeek() getMinimalDaysInFirstWeek}, + * {@link #getGregorianChange() getGregorianChange} and + * {@link Calendar#getTimeZone() getTimeZone} methods. + */ + // @ts-ignore + public getLeastMaximum(field: number): number; + /** + * Returns the minimum value that this calendar field could have, + * taking into consideration the given time value and the current + * values of the + * {@link Calendar#getFirstDayOfWeek() getFirstDayOfWeek}, + * {@link Calendar#getMinimalDaysInFirstWeek() getMinimalDaysInFirstWeek}, + * {@link #getGregorianChange() getGregorianChange} and + * {@link Calendar#getTimeZone() getTimeZone} methods. + *

For example, if the Gregorian change date is January 10, + * 1970 and the date of this GregorianCalendar is + * January 20, 1970, the actual minimum value of the + * DAY_OF_MONTH field is 10 because the previous date + * of January 10, 1970 is December 27, 1996 (in the Julian + * calendar). Therefore, December 28, 1969 to January 9, 1970 + * don't exist. + */ + // @ts-ignore + public getActualMinimum(field: number): number; + /** + * Returns the maximum value that this calendar field could have, + * taking into consideration the given time value and the current + * values of the + * {@link Calendar#getFirstDayOfWeek() getFirstDayOfWeek}, + * {@link Calendar#getMinimalDaysInFirstWeek() getMinimalDaysInFirstWeek}, + * {@link #getGregorianChange() getGregorianChange} and + * {@link Calendar#getTimeZone() getTimeZone} methods. + * For example, if the date of this instance is February 1, 2004, + * the actual maximum value of the DAY_OF_MONTH field + * is 29 because 2004 is a leap year, and if the date of this + * instance is February 1, 2005, it's 28. + *

This method calculates the maximum value of {@link + * Calendar#WEEK_OF_YEAR WEEK_OF_YEAR} based on the {@link + * Calendar#YEAR YEAR} (calendar year) value, not the week year. Call {@link + * #getWeeksInWeekYear()} to get the maximum value of {@code + * WEEK_OF_YEAR} in the week year of this {@code GregorianCalendar}. + */ + // @ts-ignore + public getActualMaximum(field: number): number; + // @ts-ignore + public clone(): java.lang.Object; + // @ts-ignore + public getTimeZone(): java.util.TimeZone; + // @ts-ignore + public setTimeZone(zone: java.util.TimeZone): void; + /** + * Returns {@code true} indicating this {@code GregorianCalendar} + * supports week dates. + */ + // @ts-ignore + public isWeekDateSupported(): boolean; + /** + * Returns the week year represented by this + * {@code GregorianCalendar}. The dates in the weeks between 1 and the + * maximum week number of the week year have the same week year value + * that may be one year before or after the {@link Calendar#YEAR YEAR} + * (calendar year) value. + *

This method calls {@link Calendar#complete()} before + * calculating the week year. + */ + // @ts-ignore + public getWeekYear(): number; + /** + * Sets this {@code GregorianCalendar} to the date given by the + * date specifiers - {@code weekYear}, + * {@code weekOfYear}, and {@code dayOfWeek}. {@code weekOfYear} + * follows the {@code WEEK_OF_YEAR} + * numbering. The {@code dayOfWeek} value must be one of the + * {@link Calendar#DAY_OF_WEEK DAY_OF_WEEK} values: {@link + * Calendar#SUNDAY SUNDAY} to {@link Calendar#SATURDAY SATURDAY}. + *

Note that the numeric day-of-week representation differs from + * the ISO 8601 standard, and that the {@code weekOfYear} + * numbering is compatible with the standard when {@code + * getFirstDayOfWeek()} is {@code MONDAY} and {@code + * getMinimalDaysInFirstWeek()} is 4. + *

Unlike the {@code set} method, all of the calendar fields + * and the instant of time value are calculated upon return. + *

If {@code weekOfYear} is out of the valid week-of-year + * range in {@code weekYear}, the {@code weekYear} + * and {@code weekOfYear} values are adjusted in lenient + * mode, or an {@code IllegalArgumentException} is thrown in + * non-lenient mode. + */ + // @ts-ignore + public setWeekDate(weekYear: number, weekOfYear: number, dayOfWeek: number): void; + /** + * Returns the number of weeks in the week year + * represented by this {@code GregorianCalendar}. + *

For example, if this {@code GregorianCalendar}'s date is + * December 31, 2008 with the ISO + * 8601 compatible setting, this method will return 53 for the + * period: December 29, 2008 to January 3, 2010 while {@link + * #getActualMaximum(int) getActualMaximum(WEEK_OF_YEAR)} will return + * 52 for the period: December 31, 2007 to December 28, 2008. + */ + // @ts-ignore + public getWeeksInWeekYear(): number; + /** + * Converts the time value (millisecond offset from the Epoch) to calendar field values. + * The time is not + * recomputed first; to recompute the time, then the fields, call the + * complete method. + */ + // @ts-ignore + protected computeFields(): void; + /** + * Converts calendar field values to the time value (millisecond + * offset from the Epoch). + */ + // @ts-ignore + protected computeTime(): void; + /** + * Converts this object to a {@code ZonedDateTime} that represents + * the same point on the time-line as this {@code GregorianCalendar}. + *

+ * Since this object supports a Julian-Gregorian cutover date and + * {@code ZonedDateTime} does not, it is possible that the resulting year, + * month and day will have different values. The result will represent the + * correct date in the ISO calendar system, which will also be the same value + * for Modified Julian Days. + */ + // @ts-ignore + public toZonedDateTime(): java.time.ZonedDateTime; + /** + * Obtains an instance of {@code GregorianCalendar} with the default locale + * from a {@code ZonedDateTime} object. + *

+ * Since {@code ZonedDateTime} does not support a Julian-Gregorian cutover + * date and uses ISO calendar system, the return GregorianCalendar is a pure + * Gregorian calendar and uses ISO 8601 standard for week definitions, + * which has {@code MONDAY} as the {@link Calendar#getFirstDayOfWeek() + * FirstDayOfWeek} and {@code 4} as the value of the + * {@link Calendar#getMinimalDaysInFirstWeek() MinimalDaysInFirstWeek}. + *

+ * {@code ZoneDateTime} can store points on the time-line further in the + * future and further in the past than {@code GregorianCalendar}. In this + * scenario, this method will throw an {@code IllegalArgumentException} + * exception. + */ + // @ts-ignore + public static from(zdt: java.time.ZonedDateTime): java.util.GregorianCalendar; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.HashMap.d.ts b/packages/types/dist/typings/jdk/java.util.HashMap.d.ts new file mode 100644 index 00000000..afd3791d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.HashMap.d.ts @@ -0,0 +1,170 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class HashMap extends java.util.AbstractMap { + /** + * Constructs an empty HashMap with the specified initial + * capacity and load factor. + */ + // @ts-ignore + constructor(initialCapacity: number, loadFactor: number) + /** + * Constructs an empty HashMap with the specified initial + * capacity and the default load factor (0.75). + */ + // @ts-ignore + constructor(initialCapacity: number) + /** + * Constructs an empty HashMap with the default initial capacity + * (16) and the default load factor (0.75). + */ + // @ts-ignore + constructor() + /** + * Constructs a new HashMap with the same mappings as the + * specified Map. The HashMap is created with + * default load factor (0.75) and an initial capacity sufficient to + * hold the mappings in the specified Map. + */ + // @ts-ignore + constructor(m: java.util.Map) + /** + * Returns the number of key-value mappings in this map. + */ + // @ts-ignore + public size(): number; + /** + * Returns true if this map contains no key-value mappings. + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * Returns the value to which the specified key is mapped, + * or {@code null} if this map contains no mapping for the key. + *

More formally, if this map contains a mapping from a key + * {@code k} to a value {@code v} such that {@code (key==null ? k==null : + * key.equals(k))}, then this method returns {@code v}; otherwise + * it returns {@code null}. (There can be at most one such mapping.) + *

A return value of {@code null} does not necessarily + * indicate that the map contains no mapping for the key; it's also + * possible that the map explicitly maps the key to {@code null}. + * The {@link #containsKey containsKey} operation may be used to + * distinguish these two cases. + */ + // @ts-ignore + public get(key: java.lang.Object): java.lang.Object; + /** + * Returns true if this map contains a mapping for the + * specified key. + */ + // @ts-ignore + public containsKey(key: java.lang.Object): boolean; + /** + * Associates the specified value with the specified key in this map. + * If the map previously contained a mapping for the key, the old + * value is replaced. + */ + // @ts-ignore + public put(key: java.lang.Object, value: java.lang.Object): java.lang.Object; + /** + * Copies all of the mappings from the specified map to this map. + * These mappings will replace any mappings that this map had for + * any of the keys currently in the specified map. + */ + // @ts-ignore + public putAll(m: java.util.Map): void; + /** + * Removes the mapping for the specified key from this map if present. + */ + // @ts-ignore + public remove(key: java.lang.Object): java.lang.Object; + /** + * Removes all of the mappings from this map. + * The map will be empty after this call returns. + */ + // @ts-ignore + public clear(): void; + /** + * Returns true if this map maps one or more keys to the + * specified value. + */ + // @ts-ignore + public containsValue(value: java.lang.Object): boolean; + /** + * Returns a {@link Set} view of the keys contained in this map. + * The set is backed by the map, so changes to the map are + * reflected in the set, and vice-versa. If the map is modified + * while an iteration over the set is in progress (except through + * the iterator's own remove operation), the results of + * the iteration are undefined. The set supports element removal, + * which removes the corresponding mapping from the map, via the + * Iterator.remove, Set.remove, + * removeAll, retainAll, and clear + * operations. It does not support the add or addAll + * operations. + */ + // @ts-ignore + public keySet(): java.util.Set; + /** + * Returns a {@link Collection} view of the values contained in this map. + * The collection is backed by the map, so changes to the map are + * reflected in the collection, and vice-versa. If the map is + * modified while an iteration over the collection is in progress + * (except through the iterator's own remove operation), + * the results of the iteration are undefined. The collection + * supports element removal, which removes the corresponding + * mapping from the map, via the Iterator.remove, + * Collection.remove, removeAll, + * retainAll and clear operations. It does not + * support the add or addAll operations. + */ + // @ts-ignore + public values(): java.util.Collection; + /** + * Returns a {@link Set} view of the mappings contained in this map. + * The set is backed by the map, so changes to the map are + * reflected in the set, and vice-versa. If the map is modified + * while an iteration over the set is in progress (except through + * the iterator's own remove operation, or through the + * setValue operation on a map entry returned by the + * iterator) the results of the iteration are undefined. The set + * supports element removal, which removes the corresponding + * mapping from the map, via the Iterator.remove, + * Set.remove, removeAll, retainAll and + * clear operations. It does not support the + * add or addAll operations. + */ + // @ts-ignore + public entrySet(): java.util.Set; + // @ts-ignore + public getOrDefault(key: java.lang.Object, defaultValue: java.lang.Object): java.lang.Object; + // @ts-ignore + public putIfAbsent(key: java.lang.Object, value: java.lang.Object): java.lang.Object; + // @ts-ignore + public remove(key: java.lang.Object, value: java.lang.Object): boolean; + // @ts-ignore + public replace(key: java.lang.Object, oldValue: java.lang.Object, newValue: java.lang.Object): boolean; + // @ts-ignore + public replace(key: java.lang.Object, value: java.lang.Object): java.lang.Object; + // @ts-ignore + public computeIfAbsent(key: java.lang.Object, mappingFunction: java.util.function$.Function): java.lang.Object; + // @ts-ignore + public computeIfPresent(key: java.lang.Object, remappingFunction: java.util.function$.BiFunction): java.lang.Object; + // @ts-ignore + public compute(key: java.lang.Object, remappingFunction: java.util.function$.BiFunction): java.lang.Object; + // @ts-ignore + public merge(key: java.lang.Object, value: java.lang.Object, remappingFunction: java.util.function$.BiFunction): java.lang.Object; + // @ts-ignore + public forEach(action: java.util.function$.BiConsumer): void; + // @ts-ignore + public replaceAll(func: java.util.function$.BiFunction): void; + /** + * Returns a shallow copy of this HashMap instance: the keys and + * values themselves are not cloned. + */ + // @ts-ignore + public clone(): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.HashSet.d.ts b/packages/types/dist/typings/jdk/java.util.HashSet.d.ts new file mode 100644 index 00000000..cb8a91fd --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.HashSet.d.ts @@ -0,0 +1,101 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class HashSet extends java.util.AbstractSet { + /** + * Constructs a new, empty set; the backing HashMap instance has + * default initial capacity (16) and load factor (0.75). + */ + // @ts-ignore + constructor() + /** + * Constructs a new set containing the elements in the specified + * collection. The HashMap is created with default load factor + * (0.75) and an initial capacity sufficient to contain the elements in + * the specified collection. + */ + // @ts-ignore + constructor(c: java.util.Collection) + /** + * Constructs a new, empty set; the backing HashMap instance has + * the specified initial capacity and the specified load factor. + */ + // @ts-ignore + constructor(initialCapacity: number, loadFactor: number) + /** + * Constructs a new, empty set; the backing HashMap instance has + * the specified initial capacity and default load factor (0.75). + */ + // @ts-ignore + constructor(initialCapacity: number) + /** + * Returns an iterator over the elements in this set. The elements + * are returned in no particular order. + */ + // @ts-ignore + public iterator(): java.util.Iterator; + /** + * Returns the number of elements in this set (its cardinality). + */ + // @ts-ignore + public size(): number; + /** + * Returns true if this set contains no elements. + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * Returns true if this set contains the specified element. + * More formally, returns true if and only if this set + * contains an element e such that + * (o==null ? e==null : o.equals(e)). + */ + // @ts-ignore + public contains(o: java.lang.Object): boolean; + /** + * Adds the specified element to this set if it is not already present. + * More formally, adds the specified element e to this set if + * this set contains no element e2 such that + * (e==null ? e2==null : e.equals(e2)). + * If this set already contains the element, the call leaves the set + * unchanged and returns false. + */ + // @ts-ignore + public add(e: java.lang.Object): boolean; + /** + * Removes the specified element from this set if it is present. + * More formally, removes an element e such that + * (o==null ? e==null : o.equals(e)), + * if this set contains such an element. Returns true if + * this set contained the element (or equivalently, if this set + * changed as a result of the call). (This set will not contain the + * element once the call returns.) + */ + // @ts-ignore + public remove(o: java.lang.Object): boolean; + /** + * Removes all of the elements from this set. + * The set will be empty after this call returns. + */ + // @ts-ignore + public clear(): void; + /** + * Returns a shallow copy of this HashSet instance: the elements + * themselves are not cloned. + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Creates a late-binding + * and fail-fast {@link Spliterator} over the elements in this + * set. + *

The {@code Spliterator} reports {@link Spliterator#SIZED} and + * {@link Spliterator#DISTINCT}. Overriding implementations should document + * the reporting of additional characteristic values. + */ + // @ts-ignore + public spliterator(): java.util.Spliterator; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Hashtable.d.ts b/packages/types/dist/typings/jdk/java.util.Hashtable.d.ts new file mode 100644 index 00000000..ddf16416 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Hashtable.d.ts @@ -0,0 +1,220 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class Hashtable extends java.util.Dictionary { + /** + * Constructs a new, empty hashtable with the specified initial + * capacity and the specified load factor. + */ + // @ts-ignore + constructor(initialCapacity: number, loadFactor: number) + /** + * Constructs a new, empty hashtable with the specified initial capacity + * and default load factor (0.75). + */ + // @ts-ignore + constructor(initialCapacity: number) + /** + * Constructs a new, empty hashtable with a default initial capacity (11) + * and load factor (0.75). + */ + // @ts-ignore + constructor() + /** + * Constructs a new hashtable with the same mappings as the given + * Map. The hashtable is created with an initial capacity sufficient to + * hold the mappings in the given Map and a default load factor (0.75). + */ + // @ts-ignore + constructor(t: java.util.Map) + /** + * Returns the number of keys in this hashtable. + */ + // @ts-ignore + public size(): number; + /** + * Tests if this hashtable maps no keys to values. + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * Returns an enumeration of the keys in this hashtable. + */ + // @ts-ignore + public keys(): java.util.Enumeration; + /** + * Returns an enumeration of the values in this hashtable. + * Use the Enumeration methods on the returned object to fetch the elements + * sequentially. + */ + // @ts-ignore + public elements(): java.util.Enumeration; + /** + * Tests if some key maps into the specified value in this hashtable. + * This operation is more expensive than the {@link #containsKey + * containsKey} method. + *

Note that this method is identical in functionality to + * {@link #containsValue containsValue}, (which is part of the + * {@link Map} interface in the collections framework). + */ + // @ts-ignore + public contains(value: java.lang.Object): boolean; + /** + * Returns true if this hashtable maps one or more keys to this value. + *

Note that this method is identical in functionality to {@link + * #contains contains} (which predates the {@link Map} interface). + */ + // @ts-ignore + public containsValue(value: java.lang.Object): boolean; + /** + * Tests if the specified object is a key in this hashtable. + */ + // @ts-ignore + public containsKey(key: java.lang.Object): boolean; + /** + * Returns the value to which the specified key is mapped, + * or {@code null} if this map contains no mapping for the key. + *

More formally, if this map contains a mapping from a key + * {@code k} to a value {@code v} such that {@code (key.equals(k))}, + * then this method returns {@code v}; otherwise it returns + * {@code null}. (There can be at most one such mapping.) + */ + // @ts-ignore + public get(key: java.lang.Object): java.lang.Object; + /** + * Increases the capacity of and internally reorganizes this + * hashtable, in order to accommodate and access its entries more + * efficiently. This method is called automatically when the + * number of keys in the hashtable exceeds this hashtable's capacity + * and load factor. + */ + // @ts-ignore + protected rehash(): void; + /** + * Maps the specified key to the specified + * value in this hashtable. Neither the key nor the + * value can be null.

+ * The value can be retrieved by calling the get method + * with a key that is equal to the original key. + */ + // @ts-ignore + public put(key: java.lang.Object, value: java.lang.Object): java.lang.Object; + /** + * Removes the key (and its corresponding value) from this + * hashtable. This method does nothing if the key is not in the hashtable. + */ + // @ts-ignore + public remove(key: java.lang.Object): java.lang.Object; + /** + * Copies all of the mappings from the specified map to this hashtable. + * These mappings will replace any mappings that this hashtable had for any + * of the keys currently in the specified map. + */ + // @ts-ignore + public putAll(t: java.util.Map): void; + /** + * Clears this hashtable so that it contains no keys. + */ + // @ts-ignore + public clear(): void; + /** + * Creates a shallow copy of this hashtable. All the structure of the + * hashtable itself is copied, but the keys and values are not cloned. + * This is a relatively expensive operation. + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Returns a string representation of this Hashtable object + * in the form of a set of entries, enclosed in braces and separated + * by the ASCII characters "" (comma and space). Each + * entry is rendered as the key, an equals sign =, and the + * associated element, where the toString method is used to + * convert the key and element to strings. + */ + // @ts-ignore + public toString(): string; + /** + * Returns a {@link Set} view of the keys contained in this map. + * The set is backed by the map, so changes to the map are + * reflected in the set, and vice-versa. If the map is modified + * while an iteration over the set is in progress (except through + * the iterator's own remove operation), the results of + * the iteration are undefined. The set supports element removal, + * which removes the corresponding mapping from the map, via the + * Iterator.remove, Set.remove, + * removeAll, retainAll, and clear + * operations. It does not support the add or addAll + * operations. + */ + // @ts-ignore + public keySet(): java.util.Set; + /** + * Returns a {@link Set} view of the mappings contained in this map. + * The set is backed by the map, so changes to the map are + * reflected in the set, and vice-versa. If the map is modified + * while an iteration over the set is in progress (except through + * the iterator's own remove operation, or through the + * setValue operation on a map entry returned by the + * iterator) the results of the iteration are undefined. The set + * supports element removal, which removes the corresponding + * mapping from the map, via the Iterator.remove, + * Set.remove, removeAll, retainAll and + * clear operations. It does not support the + * add or addAll operations. + */ + // @ts-ignore + public entrySet(): java.util.Set; + /** + * Returns a {@link Collection} view of the values contained in this map. + * The collection is backed by the map, so changes to the map are + * reflected in the collection, and vice-versa. If the map is + * modified while an iteration over the collection is in progress + * (except through the iterator's own remove operation), + * the results of the iteration are undefined. The collection + * supports element removal, which removes the corresponding + * mapping from the map, via the Iterator.remove, + * Collection.remove, removeAll, + * retainAll and clear operations. It does not + * support the add or addAll operations. + */ + // @ts-ignore + public values(): java.util.Collection; + /** + * Compares the specified Object with this Map for equality, + * as per the definition in the Map interface. + */ + // @ts-ignore + public equals(o: java.lang.Object): boolean; + /** + * Returns the hash code value for this Map as per the definition in the + * Map interface. + */ + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public getOrDefault(key: java.lang.Object, defaultValue: java.lang.Object): java.lang.Object; + // @ts-ignore + public forEach(action: java.util.function$.BiConsumer): void; + // @ts-ignore + public replaceAll(func: java.util.function$.BiFunction): void; + // @ts-ignore + public putIfAbsent(key: java.lang.Object, value: java.lang.Object): java.lang.Object; + // @ts-ignore + public remove(key: java.lang.Object, value: java.lang.Object): boolean; + // @ts-ignore + public replace(key: java.lang.Object, oldValue: java.lang.Object, newValue: java.lang.Object): boolean; + // @ts-ignore + public replace(key: java.lang.Object, value: java.lang.Object): java.lang.Object; + // @ts-ignore + public computeIfAbsent(key: java.lang.Object, mappingFunction: java.util.function$.Function): java.lang.Object; + // @ts-ignore + public computeIfPresent(key: java.lang.Object, remappingFunction: java.util.function$.BiFunction): java.lang.Object; + // @ts-ignore + public compute(key: java.lang.Object, remappingFunction: java.util.function$.BiFunction): java.lang.Object; + // @ts-ignore + public merge(key: java.lang.Object, value: java.lang.Object, remappingFunction: java.util.function$.BiFunction): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.IdentityHashMap.d.ts b/packages/types/dist/typings/jdk/java.util.IdentityHashMap.d.ts new file mode 100644 index 00000000..6bd53370 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.IdentityHashMap.d.ts @@ -0,0 +1,221 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class IdentityHashMap extends java.util.AbstractMap { + /** + * Constructs a new, empty identity hash map with a default expected + * maximum size (21). + */ + // @ts-ignore + constructor() + /** + * Constructs a new, empty map with the specified expected maximum size. + * Putting more than the expected number of key-value mappings into + * the map may cause the internal data structure to grow, which may be + * somewhat time-consuming. + */ + // @ts-ignore + constructor(expectedMaxSize: number) + /** + * Constructs a new identity hash map containing the keys-value mappings + * in the specified map. + */ + // @ts-ignore + constructor(m: java.util.Map) + /** + * Returns the number of key-value mappings in this identity hash map. + */ + // @ts-ignore + public size(): number; + /** + * Returns true if this identity hash map contains no key-value + * mappings. + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * Returns the value to which the specified key is mapped, + * or {@code null} if this map contains no mapping for the key. + *

More formally, if this map contains a mapping from a key + * {@code k} to a value {@code v} such that {@code (key == k)}, + * then this method returns {@code v}; otherwise it returns + * {@code null}. (There can be at most one such mapping.) + *

A return value of {@code null} does not necessarily + * indicate that the map contains no mapping for the key; it's also + * possible that the map explicitly maps the key to {@code null}. + * The {@link #containsKey containsKey} operation may be used to + * distinguish these two cases. + */ + // @ts-ignore + public get(key: java.lang.Object): java.lang.Object; + /** + * Tests whether the specified object reference is a key in this identity + * hash map. + */ + // @ts-ignore + public containsKey(key: java.lang.Object): boolean; + /** + * Tests whether the specified object reference is a value in this identity + * hash map. + */ + // @ts-ignore + public containsValue(value: java.lang.Object): boolean; + /** + * Associates the specified value with the specified key in this identity + * hash map. If the map previously contained a mapping for the key, the + * old value is replaced. + */ + // @ts-ignore + public put(key: java.lang.Object, value: java.lang.Object): java.lang.Object; + /** + * Copies all of the mappings from the specified map to this map. + * These mappings will replace any mappings that this map had for + * any of the keys currently in the specified map. + */ + // @ts-ignore + public putAll(m: java.util.Map): void; + /** + * Removes the mapping for this key from this map if present. + */ + // @ts-ignore + public remove(key: java.lang.Object): java.lang.Object; + /** + * Removes all of the mappings from this map. + * The map will be empty after this call returns. + */ + // @ts-ignore + public clear(): void; + /** + * Compares the specified object with this map for equality. Returns + * true if the given object is also a map and the two maps + * represent identical object-reference mappings. More formally, this + * map is equal to another map m if and only if + * this.entrySet().equals(m.entrySet()). + *

Owing to the reference-equality-based semantics of this map it is + * possible that the symmetry and transitivity requirements of the + * Object.equals contract may be violated if this map is compared + * to a normal map. However, the Object.equals contract is + * guaranteed to hold among IdentityHashMap instances. + */ + // @ts-ignore + public equals(o: java.lang.Object): boolean; + /** + * Returns the hash code value for this map. The hash code of a map is + * defined to be the sum of the hash codes of each entry in the map's + * entrySet() view. This ensures that m1.equals(m2) + * implies that m1.hashCode()==m2.hashCode() for any two + * IdentityHashMap instances m1 and m2, as + * required by the general contract of {@link Object#hashCode}. + *

Owing to the reference-equality-based semantics of the + * Map.Entry instances in the set returned by this map's + * entrySet method, it is possible that the contractual + * requirement of Object.hashCode mentioned in the previous + * paragraph will be violated if one of the two objects being compared is + * an IdentityHashMap instance and the other is a normal map. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns a shallow copy of this identity hash map: the keys and values + * themselves are not cloned. + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Returns an identity-based set view of the keys contained in this map. + * The set is backed by the map, so changes to the map are reflected in + * the set, and vice-versa. If the map is modified while an iteration + * over the set is in progress, the results of the iteration are + * undefined. The set supports element removal, which removes the + * corresponding mapping from the map, via the Iterator.remove, + * Set.remove, removeAll, retainAll, and + * clear methods. It does not support the add or + * addAll methods. + *

While the object returned by this method implements the + * Set interface, it does not obey Set's general + * contract. Like its backing map, the set returned by this method + * defines element equality as reference-equality rather than + * object-equality. This affects the behavior of its contains, + * remove, containsAll, equals, and + * hashCode methods. + *

The equals method of the returned set returns true + * only if the specified object is a set containing exactly the same + * object references as the returned set. The symmetry and transitivity + * requirements of the Object.equals contract may be violated if + * the set returned by this method is compared to a normal set. However, + * the Object.equals contract is guaranteed to hold among sets + * returned by this method. + *

The hashCode method of the returned set returns the sum of + * the identity hashcodes of the elements in the set, rather than + * the sum of their hashcodes. This is mandated by the change in the + * semantics of the equals method, in order to enforce the + * general contract of the Object.hashCode method among sets + * returned by this method. + */ + // @ts-ignore + public keySet(): java.util.Set; + /** + * Returns a {@link Collection} view of the values contained in this map. + * The collection is backed by the map, so changes to the map are + * reflected in the collection, and vice-versa. If the map is + * modified while an iteration over the collection is in progress, + * the results of the iteration are undefined. The collection + * supports element removal, which removes the corresponding + * mapping from the map, via the Iterator.remove, + * Collection.remove, removeAll, + * retainAll and clear methods. It does not + * support the add or addAll methods. + *

While the object returned by this method implements the + * Collection interface, it does not obey + * Collection's general contract. Like its backing map, + * the collection returned by this method defines element equality as + * reference-equality rather than object-equality. This affects the + * behavior of its contains, remove and + * containsAll methods. + */ + // @ts-ignore + public values(): java.util.Collection; + /** + * Returns a {@link Set} view of the mappings contained in this map. + * Each element in the returned set is a reference-equality-based + * Map.Entry. The set is backed by the map, so changes + * to the map are reflected in the set, and vice-versa. If the + * map is modified while an iteration over the set is in progress, + * the results of the iteration are undefined. The set supports + * element removal, which removes the corresponding mapping from + * the map, via the Iterator.remove, Set.remove, + * removeAll, retainAll and clear + * methods. It does not support the add or + * addAll methods. + *

Like the backing map, the Map.Entry objects in the set + * returned by this method define key and value equality as + * reference-equality rather than object-equality. This affects the + * behavior of the equals and hashCode methods of these + * Map.Entry objects. A reference-equality based Map.Entry + * e is equal to an object o if and only if o is a + * Map.Entry and e.getKey()==o.getKey() && + * e.getValue()==o.getValue(). To accommodate these equals + * semantics, the hashCode method returns + * System.identityHashCode(e.getKey()) ^ + * System.identityHashCode(e.getValue()). + *

Owing to the reference-equality-based semantics of the + * Map.Entry instances in the set returned by this method, + * it is possible that the symmetry and transitivity requirements of + * the {@link Object#equals(Object)} contract may be violated if any of + * the entries in the set is compared to a normal map entry, or if + * the set returned by this method is compared to a set of normal map + * entries (such as would be returned by a call to this method on a normal + * map). However, the Object.equals contract is guaranteed to + * hold among identity-based map entries, and among sets of such entries. + * + */ + // @ts-ignore + public entrySet(): java.util.Set; + // @ts-ignore + public forEach(action: java.util.function$.BiConsumer): void; + // @ts-ignore + public replaceAll(func: java.util.function$.BiFunction): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.IllegalFormatCodePointException.d.ts b/packages/types/dist/typings/jdk/java.util.IllegalFormatCodePointException.d.ts new file mode 100644 index 00000000..1945ea5d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.IllegalFormatCodePointException.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class IllegalFormatCodePointException extends java.util.IllegalFormatException { + /** + * Constructs an instance of this class with the specified illegal code + * point as defined by {@link Character#isValidCodePoint}. + */ + // @ts-ignore + constructor(c: number) + /** + * Returns the illegal code point as defined by {@link + * Character#isValidCodePoint}. + */ + // @ts-ignore + public getCodePoint(): number; + // @ts-ignore + public getMessage(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.IllegalFormatConversionException.d.ts b/packages/types/dist/typings/jdk/java.util.IllegalFormatConversionException.d.ts new file mode 100644 index 00000000..6edfe801 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.IllegalFormatConversionException.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class IllegalFormatConversionException extends java.util.IllegalFormatException { + /** + * Constructs an instance of this class with the mismatched conversion and + * the corresponding argument class. + */ + // @ts-ignore + constructor(c: string, arg: java.lang.Class) + /** + * Returns the inapplicable conversion. + */ + // @ts-ignore + public getConversion(): string; + /** + * Returns the class of the mismatched argument. + */ + // @ts-ignore + public getArgumentClass(): java.lang.Class; + // @ts-ignore + public getMessage(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.IllegalFormatException.d.ts b/packages/types/dist/typings/jdk/java.util.IllegalFormatException.d.ts new file mode 100644 index 00000000..e75717e1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.IllegalFormatException.d.ts @@ -0,0 +1,8 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class IllegalFormatException extends java.lang.IllegalArgumentException { + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.IllegalFormatFlagsException.d.ts b/packages/types/dist/typings/jdk/java.util.IllegalFormatFlagsException.d.ts new file mode 100644 index 00000000..05052874 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.IllegalFormatFlagsException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class IllegalFormatFlagsException extends java.util.IllegalFormatException { + /** + * Constructs an instance of this class with the specified flags. + */ + // @ts-ignore + constructor(f: string) + /** + * Returns the set of flags which contains an illegal combination. + */ + // @ts-ignore + public getFlags(): string; + // @ts-ignore + public getMessage(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.IllegalFormatPrecisionException.d.ts b/packages/types/dist/typings/jdk/java.util.IllegalFormatPrecisionException.d.ts new file mode 100644 index 00000000..4d435218 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.IllegalFormatPrecisionException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class IllegalFormatPrecisionException extends java.util.IllegalFormatException { + /** + * Constructs an instance of this class with the specified precision. + */ + // @ts-ignore + constructor(p: number) + /** + * Returns the precision + */ + // @ts-ignore + public getPrecision(): number; + // @ts-ignore + public getMessage(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.IllegalFormatWidthException.d.ts b/packages/types/dist/typings/jdk/java.util.IllegalFormatWidthException.d.ts new file mode 100644 index 00000000..9b080d12 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.IllegalFormatWidthException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class IllegalFormatWidthException extends java.util.IllegalFormatException { + /** + * Constructs an instance of this class with the specified width. + */ + // @ts-ignore + constructor(w: number) + /** + * Returns the width + */ + // @ts-ignore + public getWidth(): number; + // @ts-ignore + public getMessage(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.IllformedLocaleException.d.ts b/packages/types/dist/typings/jdk/java.util.IllformedLocaleException.d.ts new file mode 100644 index 00000000..5ca93e9e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.IllformedLocaleException.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class IllformedLocaleException extends java.lang.RuntimeException { + /** + * Constructs a new IllformedLocaleException with no + * detail message and -1 as the error index. + */ + // @ts-ignore + constructor() + /** + * Constructs a new IllformedLocaleException with the + * given message and -1 as the error index. + */ + // @ts-ignore + constructor(message: string) + /** + * Constructs a new IllformedLocaleException with the + * given message and the error index. The error index is the approximate + * offset from the start of the ill-formed value to the point where the + * parse first detected an error. A negative error index value indicates + * either the error index is not applicable or unknown. + */ + // @ts-ignore + constructor(message: string, errorIndex: number) + /** + * Returns the index where the error was found. A negative value indicates + * either the error index is not applicable or unknown. + */ + // @ts-ignore + public getErrorIndex(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.InputMismatchException.d.ts b/packages/types/dist/typings/jdk/java.util.InputMismatchException.d.ts new file mode 100644 index 00000000..772bfdc9 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.InputMismatchException.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class InputMismatchException extends java.util.NoSuchElementException { + /** + * Constructs an InputMismatchException with null + * as its error message string. + */ + // @ts-ignore + constructor() + /** + * Constructs an InputMismatchException, saving a reference + * to the error message string s for later retrieval by the + * getMessage method. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.IntSummaryStatistics.d.ts b/packages/types/dist/typings/jdk/java.util.IntSummaryStatistics.d.ts new file mode 100644 index 00000000..e2fa91fc --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.IntSummaryStatistics.d.ts @@ -0,0 +1,56 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class IntSummaryStatistics extends java.lang.Object { + /** + * Construct an empty instance with zero count, zero sum, + * {@code Integer.MAX_VALUE} min, {@code Integer.MIN_VALUE} max and zero + * average. + */ + // @ts-ignore + constructor() + /** + * Records a new value into the summary information + */ + // @ts-ignore + public accept(value: number): void; + /** + * Combines the state of another {@code IntSummaryStatistics} into this one. + */ + // @ts-ignore + public combine(other: java.util.IntSummaryStatistics): void; + /** + * Returns the count of values recorded. + */ + // @ts-ignore + public getCount(): number; + /** + * Returns the sum of values recorded, or zero if no values have been + * recorded. + */ + // @ts-ignore + public getSum(): number; + /** + * Returns the minimum value recorded, or {@code Integer.MAX_VALUE} if no + * values have been recorded. + */ + // @ts-ignore + public getMin(): number; + /** + * Returns the maximum value recorded, or {@code Integer.MIN_VALUE} if no + * values have been recorded. + */ + // @ts-ignore + public getMax(): number; + /** + * Returns the arithmetic mean of values recorded, or zero if no values have been + * recorded. + */ + // @ts-ignore + public getAverage(): number; + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.InvalidPropertiesFormatException.d.ts b/packages/types/dist/typings/jdk/java.util.InvalidPropertiesFormatException.d.ts new file mode 100644 index 00000000..07baaf6c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.InvalidPropertiesFormatException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class InvalidPropertiesFormatException extends java.io.IOException { + /** + * Constructs an InvalidPropertiesFormatException with the specified + * cause. + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + /** + * Constructs an InvalidPropertiesFormatException with the specified + * detail message. + */ + // @ts-ignore + constructor(message: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Iterator.d.ts b/packages/types/dist/typings/jdk/java.util.Iterator.d.ts new file mode 100644 index 00000000..b104d906 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Iterator.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + interface Iterator { + /** + * Returns {@code true} if the iteration has more elements. + * (In other words, returns {@code true} if {@link #next} would + * return an element rather than throwing an exception.) + */ + // @ts-ignore + hasNext(): boolean; + /** + * Returns the next element in the iteration. + */ + // @ts-ignore + next(): java.lang.Object; + /** + * Removes from the underlying collection the last element returned + * by this iterator (optional operation). This method can be called + * only once per call to {@link #next}. The behavior of an iterator + * is unspecified if the underlying collection is modified while the + * iteration is in progress in any way other than by calling this + * method. + */ + // @ts-ignore + remove(): void; + /** + * Performs the given action for each remaining element until all elements + * have been processed or the action throws an exception. Actions are + * performed in the order of iteration, if that order is specified. + * Exceptions thrown by the action are relayed to the caller. + */ + // @ts-ignore + forEachRemaining(action: java.util.function$.Consumer): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.LinkedHashMap.d.ts b/packages/types/dist/typings/jdk/java.util.LinkedHashMap.d.ts new file mode 100644 index 00000000..78897e1d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.LinkedHashMap.d.ts @@ -0,0 +1,158 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class LinkedHashMap extends java.util.HashMap { + /** + * Constructs an empty insertion-ordered LinkedHashMap instance + * with the specified initial capacity and load factor. + */ + // @ts-ignore + constructor(initialCapacity: number, loadFactor: number) + /** + * Constructs an empty insertion-ordered LinkedHashMap instance + * with the specified initial capacity and a default load factor (0.75). + */ + // @ts-ignore + constructor(initialCapacity: number) + /** + * Constructs an empty insertion-ordered LinkedHashMap instance + * with the default initial capacity (16) and load factor (0.75). + */ + // @ts-ignore + constructor() + /** + * Constructs an insertion-ordered LinkedHashMap instance with + * the same mappings as the specified map. The LinkedHashMap + * instance is created with a default load factor (0.75) and an initial + * capacity sufficient to hold the mappings in the specified map. + */ + // @ts-ignore + constructor(m: java.util.Map) + /** + * Constructs an empty LinkedHashMap instance with the + * specified initial capacity, load factor and ordering mode. + */ + // @ts-ignore + constructor(initialCapacity: number, loadFactor: number, accessOrder: boolean) + /** + * Returns true if this map maps one or more keys to the + * specified value. + */ + // @ts-ignore + public containsValue(value: java.lang.Object): boolean; + /** + * Returns the value to which the specified key is mapped, + * or {@code null} if this map contains no mapping for the key. + *

More formally, if this map contains a mapping from a key + * {@code k} to a value {@code v} such that {@code (key==null ? k==null : + * key.equals(k))}, then this method returns {@code v}; otherwise + * it returns {@code null}. (There can be at most one such mapping.) + *

A return value of {@code null} does not necessarily + * indicate that the map contains no mapping for the key; it's also + * possible that the map explicitly maps the key to {@code null}. + * The {@link #containsKey containsKey} operation may be used to + * distinguish these two cases. + */ + // @ts-ignore + public get(key: java.lang.Object): java.lang.Object; + /** + * {@inheritDoc} + */ + // @ts-ignore + public getOrDefault(key: java.lang.Object, defaultValue: java.lang.Object): java.lang.Object; + /** + * {@inheritDoc} + */ + // @ts-ignore + public clear(): void; + /** + * Returns true if this map should remove its eldest entry. + * This method is invoked by put and putAll after + * inserting a new entry into the map. It provides the implementor + * with the opportunity to remove the eldest entry each time a new one + * is added. This is useful if the map represents a cache: it allows + * the map to reduce memory consumption by deleting stale entries. + *

Sample use: this override will allow the map to grow up to 100 + * entries and then delete the eldest entry each time a new entry is + * added, maintaining a steady state of 100 entries. + *

+             * private static final int MAX_ENTRIES = 100;
+             * protected boolean removeEldestEntry(Map.Entry eldest) {
+             * return size() > MAX_ENTRIES;
+             * }
+             * 
+ *

This method typically does not modify the map in any way, + * instead allowing the map to modify itself as directed by its + * return value. It is permitted for this method to modify + * the map directly, but if it does so, it must return + * false (indicating that the map should not attempt any + * further modification). The effects of returning true + * after modifying the map from within this method are unspecified. + *

This implementation merely returns false (so that this + * map acts like a normal map - the eldest element is never removed). + */ + // @ts-ignore + protected removeEldestEntry(eldest: java.util.Map.Entry): boolean; + /** + * Returns a {@link Set} view of the keys contained in this map. + * The set is backed by the map, so changes to the map are + * reflected in the set, and vice-versa. If the map is modified + * while an iteration over the set is in progress (except through + * the iterator's own remove operation), the results of + * the iteration are undefined. The set supports element removal, + * which removes the corresponding mapping from the map, via the + * Iterator.remove, Set.remove, + * removeAll, retainAll, and clear + * operations. It does not support the add or addAll + * operations. + * Its {@link Spliterator} typically provides faster sequential + * performance but much poorer parallel performance than that of + * {@code HashMap}. + */ + // @ts-ignore + public keySet(): java.util.Set; + /** + * Returns a {@link Collection} view of the values contained in this map. + * The collection is backed by the map, so changes to the map are + * reflected in the collection, and vice-versa. If the map is + * modified while an iteration over the collection is in progress + * (except through the iterator's own remove operation), + * the results of the iteration are undefined. The collection + * supports element removal, which removes the corresponding + * mapping from the map, via the Iterator.remove, + * Collection.remove, removeAll, + * retainAll and clear operations. It does not + * support the add or addAll operations. + * Its {@link Spliterator} typically provides faster sequential + * performance but much poorer parallel performance than that of + * {@code HashMap}. + */ + // @ts-ignore + public values(): java.util.Collection; + /** + * Returns a {@link Set} view of the mappings contained in this map. + * The set is backed by the map, so changes to the map are + * reflected in the set, and vice-versa. If the map is modified + * while an iteration over the set is in progress (except through + * the iterator's own remove operation, or through the + * setValue operation on a map entry returned by the + * iterator) the results of the iteration are undefined. The set + * supports element removal, which removes the corresponding + * mapping from the map, via the Iterator.remove, + * Set.remove, removeAll, retainAll and + * clear operations. It does not support the + * add or addAll operations. + * Its {@link Spliterator} typically provides faster sequential + * performance but much poorer parallel performance than that of + * {@code HashMap}. + */ + // @ts-ignore + public entrySet(): java.util.Set; + // @ts-ignore + public forEach(action: java.util.function$.BiConsumer): void; + // @ts-ignore + public replaceAll(func: java.util.function$.BiFunction): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.LinkedHashSet.d.ts b/packages/types/dist/typings/jdk/java.util.LinkedHashSet.d.ts new file mode 100644 index 00000000..c45cb19f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.LinkedHashSet.d.ts @@ -0,0 +1,43 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class LinkedHashSet extends java.util.HashSet { + /** + * Constructs a new, empty linked hash set with the specified initial + * capacity and load factor. + */ + // @ts-ignore + constructor(initialCapacity: number, loadFactor: number) + /** + * Constructs a new, empty linked hash set with the specified initial + * capacity and the default load factor (0.75). + */ + // @ts-ignore + constructor(initialCapacity: number) + /** + * Constructs a new, empty linked hash set with the default initial + * capacity (16) and load factor (0.75). + */ + // @ts-ignore + constructor() + /** + * Constructs a new linked hash set with the same elements as the + * specified collection. The linked hash set is created with an initial + * capacity sufficient to hold the elements in the specified collection + * and the default load factor (0.75). + */ + // @ts-ignore + constructor(c: java.util.Collection) + /** + * Creates a late-binding + * and fail-fast {@code Spliterator} over the elements in this set. + *

The {@code Spliterator} reports {@link Spliterator#SIZED}, + * {@link Spliterator#DISTINCT}, and {@code ORDERED}. Implementations + * should document the reporting of additional characteristic values. + */ + // @ts-ignore + public spliterator(): java.util.Spliterator; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.LinkedList.d.ts b/packages/types/dist/typings/jdk/java.util.LinkedList.d.ts new file mode 100644 index 00000000..aaa2c7f3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.LinkedList.d.ts @@ -0,0 +1,308 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class LinkedList extends java.util.AbstractSequentialList { + /** + * Constructs an empty list. + */ + // @ts-ignore + constructor() + /** + * Constructs a list containing the elements of the specified + * collection, in the order they are returned by the collection's + * iterator. + */ + // @ts-ignore + constructor(c: java.util.Collection) + /** + * Returns the first element in this list. + */ + // @ts-ignore + public getFirst(): java.lang.Object; + /** + * Returns the last element in this list. + */ + // @ts-ignore + public getLast(): java.lang.Object; + /** + * Removes and returns the first element from this list. + */ + // @ts-ignore + public removeFirst(): java.lang.Object; + /** + * Removes and returns the last element from this list. + */ + // @ts-ignore + public removeLast(): java.lang.Object; + /** + * Inserts the specified element at the beginning of this list. + */ + // @ts-ignore + public addFirst(e: java.lang.Object): void; + /** + * Appends the specified element to the end of this list. + *

This method is equivalent to {@link #add}. + */ + // @ts-ignore + public addLast(e: java.lang.Object): void; + /** + * Returns {@code true} if this list contains the specified element. + * More formally, returns {@code true} if and only if this list contains + * at least one element {@code e} such that + * (o==null ? e==null : o.equals(e)). + */ + // @ts-ignore + public contains(o: java.lang.Object): boolean; + /** + * Returns the number of elements in this list. + */ + // @ts-ignore + public size(): number; + /** + * Appends the specified element to the end of this list. + *

This method is equivalent to {@link #addLast}. + */ + // @ts-ignore + public add(e: java.lang.Object): boolean; + /** + * Removes the first occurrence of the specified element from this list, + * if it is present. If this list does not contain the element, it is + * unchanged. More formally, removes the element with the lowest index + * {@code i} such that + * (o==null ? get(i)==null : o.equals(get(i))) + * (if such an element exists). Returns {@code true} if this list + * contained the specified element (or equivalently, if this list + * changed as a result of the call). + */ + // @ts-ignore + public remove(o: java.lang.Object): boolean; + /** + * Appends all of the elements in the specified collection to the end of + * this list, in the order that they are returned by the specified + * collection's iterator. The behavior of this operation is undefined if + * the specified collection is modified while the operation is in + * progress. (Note that this will occur if the specified collection is + * this list, and it's nonempty.) + */ + // @ts-ignore + public addAll(c: java.util.Collection): boolean; + /** + * Inserts all of the elements in the specified collection into this + * list, starting at the specified position. Shifts the element + * currently at that position (if any) and any subsequent elements to + * the right (increases their indices). The new elements will appear + * in the list in the order that they are returned by the + * specified collection's iterator. + */ + // @ts-ignore + public addAll(index: number, c: java.util.Collection): boolean; + /** + * Removes all of the elements from this list. + * The list will be empty after this call returns. + */ + // @ts-ignore + public clear(): void; + /** + * Returns the element at the specified position in this list. + */ + // @ts-ignore + public get(index: number): java.lang.Object; + /** + * Replaces the element at the specified position in this list with the + * specified element. + */ + // @ts-ignore + public set(index: number, element: java.lang.Object): java.lang.Object; + /** + * Inserts the specified element at the specified position in this list. + * Shifts the element currently at that position (if any) and any + * subsequent elements to the right (adds one to their indices). + */ + // @ts-ignore + public add(index: number, element: java.lang.Object): void; + /** + * Removes the element at the specified position in this list. Shifts any + * subsequent elements to the left (subtracts one from their indices). + * Returns the element that was removed from the list. + */ + // @ts-ignore + public remove(index: number): java.lang.Object; + /** + * Returns the index of the first occurrence of the specified element + * in this list, or -1 if this list does not contain the element. + * More formally, returns the lowest index {@code i} such that + * (o==null ? get(i)==null : o.equals(get(i))), + * or -1 if there is no such index. + */ + // @ts-ignore + public indexOf(o: java.lang.Object): number; + /** + * Returns the index of the last occurrence of the specified element + * in this list, or -1 if this list does not contain the element. + * More formally, returns the highest index {@code i} such that + * (o==null ? get(i)==null : o.equals(get(i))), + * or -1 if there is no such index. + */ + // @ts-ignore + public lastIndexOf(o: java.lang.Object): number; + /** + * Retrieves, but does not remove, the head (first element) of this list. + */ + // @ts-ignore + public peek(): java.lang.Object; + /** + * Retrieves, but does not remove, the head (first element) of this list. + */ + // @ts-ignore + public element(): java.lang.Object; + /** + * Retrieves and removes the head (first element) of this list. + */ + // @ts-ignore + public poll(): java.lang.Object; + /** + * Retrieves and removes the head (first element) of this list. + */ + // @ts-ignore + public remove(): java.lang.Object; + /** + * Adds the specified element as the tail (last element) of this list. + */ + // @ts-ignore + public offer(e: java.lang.Object): boolean; + /** + * Inserts the specified element at the front of this list. + */ + // @ts-ignore + public offerFirst(e: java.lang.Object): boolean; + /** + * Inserts the specified element at the end of this list. + */ + // @ts-ignore + public offerLast(e: java.lang.Object): boolean; + /** + * Retrieves, but does not remove, the first element of this list, + * or returns {@code null} if this list is empty. + */ + // @ts-ignore + public peekFirst(): java.lang.Object; + /** + * Retrieves, but does not remove, the last element of this list, + * or returns {@code null} if this list is empty. + */ + // @ts-ignore + public peekLast(): java.lang.Object; + /** + * Retrieves and removes the first element of this list, + * or returns {@code null} if this list is empty. + */ + // @ts-ignore + public pollFirst(): java.lang.Object; + /** + * Retrieves and removes the last element of this list, + * or returns {@code null} if this list is empty. + */ + // @ts-ignore + public pollLast(): java.lang.Object; + /** + * Pushes an element onto the stack represented by this list. In other + * words, inserts the element at the front of this list. + *

This method is equivalent to {@link #addFirst}. + */ + // @ts-ignore + public push(e: java.lang.Object): void; + /** + * Pops an element from the stack represented by this list. In other + * words, removes and returns the first element of this list. + *

This method is equivalent to {@link #removeFirst()}. + */ + // @ts-ignore + public pop(): java.lang.Object; + /** + * Removes the first occurrence of the specified element in this + * list (when traversing the list from head to tail). If the list + * does not contain the element, it is unchanged. + */ + // @ts-ignore + public removeFirstOccurrence(o: java.lang.Object): boolean; + /** + * Removes the last occurrence of the specified element in this + * list (when traversing the list from head to tail). If the list + * does not contain the element, it is unchanged. + */ + // @ts-ignore + public removeLastOccurrence(o: java.lang.Object): boolean; + /** + * Returns a list-iterator of the elements in this list (in proper + * sequence), starting at the specified position in the list. + * Obeys the general contract of {@code List.listIterator(int)}.

+ * The list-iterator is fail-fast: if the list is structurally + * modified at any time after the Iterator is created, in any way except + * through the list-iterator's own {@code remove} or {@code add} + * methods, the list-iterator will throw a + * {@code ConcurrentModificationException}. Thus, in the face of + * concurrent modification, the iterator fails quickly and cleanly, rather + * than risking arbitrary, non-deterministic behavior at an undetermined + * time in the future. + */ + // @ts-ignore + public listIterator(index: number): java.util.ListIterator; + // @ts-ignore + public descendingIterator(): java.util.Iterator; + /** + * Returns a shallow copy of this {@code LinkedList}. (The elements + * themselves are not cloned.) + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Returns an array containing all of the elements in this list + * in proper sequence (from first to last element). + *

The returned array will be "safe" in that no references to it are + * maintained by this list. (In other words, this method must allocate + * a new array). The caller is thus free to modify the returned array. + *

This method acts as bridge between array-based and collection-based + * APIs. + */ + // @ts-ignore + public toArray(): java.lang.Object[]; + /** + * Returns an array containing all of the elements in this list in + * proper sequence (from first to last element); the runtime type of + * the returned array is that of the specified array. If the list fits + * in the specified array, it is returned therein. Otherwise, a new + * array is allocated with the runtime type of the specified array and + * the size of this list. + *

If the list fits in the specified array with room to spare (i.e., + * the array has more elements than the list), the element in the array + * immediately following the end of the list is set to {@code null}. + * (This is useful in determining the length of the list only if + * the caller knows that the list does not contain any null elements.) + *

Like the {@link #toArray()} method, this method acts as bridge between + * array-based and collection-based APIs. Further, this method allows + * precise control over the runtime type of the output array, and may, + * under certain circumstances, be used to save allocation costs. + *

Suppose {@code x} is a list known to contain only strings. + * The following code can be used to dump the list into a newly + * allocated array of {@code String}: + *

+             * String[] y = x.toArray(new String[0]);
+ * Note that {@code toArray(new Object[0])} is identical in function to + * {@code toArray()}. + */ + // @ts-ignore + public toArray(a: java.lang.Object): java.lang.Object[]; + /** + * Creates a late-binding + * and fail-fast {@link Spliterator} over the elements in this + * list. + *

The {@code Spliterator} reports {@link Spliterator#SIZED} and + * {@link Spliterator#ORDERED}. Overriding implementations should document + * the reporting of additional characteristic values. + */ + // @ts-ignore + public spliterator(): java.util.Spliterator; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.List.d.ts b/packages/types/dist/typings/jdk/java.util.List.d.ts new file mode 100644 index 00000000..1beb2121 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.List.d.ts @@ -0,0 +1,290 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + interface List { + /** + * Returns the number of elements in this list. If this list contains + * more than Integer.MAX_VALUE elements, returns + * Integer.MAX_VALUE. + */ + // @ts-ignore + size(): number; + /** + * Returns true if this list contains no elements. + */ + // @ts-ignore + isEmpty(): boolean; + /** + * Returns true if this list contains the specified element. + * More formally, returns true if and only if this list contains + * at least one element e such that + * (o==null ? e==null : o.equals(e)). + */ + // @ts-ignore + contains(o: java.lang.Object): boolean; + /** + * Returns an iterator over the elements in this list in proper sequence. + */ + // @ts-ignore + iterator(): java.util.Iterator; + /** + * Returns an array containing all of the elements in this list in proper + * sequence (from first to last element). + *

The returned array will be "safe" in that no references to it are + * maintained by this list. (In other words, this method must + * allocate a new array even if this list is backed by an array). + * The caller is thus free to modify the returned array. + *

This method acts as bridge between array-based and collection-based + * APIs. + */ + // @ts-ignore + toArray(): java.lang.Object[]; + /** + * Returns an array containing all of the elements in this list in + * proper sequence (from first to last element); the runtime type of + * the returned array is that of the specified array. If the list fits + * in the specified array, it is returned therein. Otherwise, a new + * array is allocated with the runtime type of the specified array and + * the size of this list. + *

If the list fits in the specified array with room to spare (i.e., + * the array has more elements than the list), the element in the array + * immediately following the end of the list is set to null. + * (This is useful in determining the length of the list only if + * the caller knows that the list does not contain any null elements.) + *

Like the {@link #toArray()} method, this method acts as bridge between + * array-based and collection-based APIs. Further, this method allows + * precise control over the runtime type of the output array, and may, + * under certain circumstances, be used to save allocation costs. + *

Suppose x is a list known to contain only strings. + * The following code can be used to dump the list into a newly + * allocated array of String: + *

{@code
+             * String[] y = x.toArray(new String[0]);
+             * }
+ * Note that toArray(new Object[0]) is identical in function to + * toArray(). + */ + // @ts-ignore + toArray(a: java.lang.Object): java.lang.Object[]; + /** + * Appends the specified element to the end of this list (optional + * operation). + *

Lists that support this operation may place limitations on what + * elements may be added to this list. In particular, some + * lists will refuse to add null elements, and others will impose + * restrictions on the type of elements that may be added. List + * classes should clearly specify in their documentation any restrictions + * on what elements may be added. + */ + // @ts-ignore + add(e: java.lang.Object): boolean; + /** + * Removes the first occurrence of the specified element from this list, + * if it is present (optional operation). If this list does not contain + * the element, it is unchanged. More formally, removes the element with + * the lowest index i such that + * (o==null ? get(i)==null : o.equals(get(i))) + * (if such an element exists). Returns true if this list + * contained the specified element (or equivalently, if this list changed + * as a result of the call). + */ + // @ts-ignore + remove(o: java.lang.Object): boolean; + /** + * Returns true if this list contains all of the elements of the + * specified collection. + */ + // @ts-ignore + containsAll(c: java.util.Collection): boolean; + /** + * Appends all of the elements in the specified collection to the end of + * this list, in the order that they are returned by the specified + * collection's iterator (optional operation). The behavior of this + * operation is undefined if the specified collection is modified while + * the operation is in progress. (Note that this will occur if the + * specified collection is this list, and it's nonempty.) + */ + // @ts-ignore + addAll(c: java.util.Collection): boolean; + /** + * Inserts all of the elements in the specified collection into this + * list at the specified position (optional operation). Shifts the + * element currently at that position (if any) and any subsequent + * elements to the right (increases their indices). The new elements + * will appear in this list in the order that they are returned by the + * specified collection's iterator. The behavior of this operation is + * undefined if the specified collection is modified while the + * operation is in progress. (Note that this will occur if the specified + * collection is this list, and it's nonempty.) + */ + // @ts-ignore + addAll(index: number, c: java.util.Collection): boolean; + /** + * Removes from this list all of its elements that are contained in the + * specified collection (optional operation). + */ + // @ts-ignore + removeAll(c: java.util.Collection): boolean; + /** + * Retains only the elements in this list that are contained in the + * specified collection (optional operation). In other words, removes + * from this list all of its elements that are not contained in the + * specified collection. + */ + // @ts-ignore + retainAll(c: java.util.Collection): boolean; + /** + * Replaces each element of this list with the result of applying the + * operator to that element. Errors or runtime exceptions thrown by + * the operator are relayed to the caller. + */ + // @ts-ignore + replaceAll(operator: java.util.function$.UnaryOperator): void; + /** + * Sorts this list according to the order induced by the specified + * {@link Comparator}. + *

All elements in this list must be mutually comparable using the + * specified comparator (that is, {@code c.compare(e1, e2)} must not throw + * a {@code ClassCastException} for any elements {@code e1} and {@code e2} + * in the list). + *

If the specified comparator is {@code null} then all elements in this + * list must implement the {@link Comparable} interface and the elements' + * {@linkplain Comparable natural ordering} should be used. + *

This list must be modifiable, but need not be resizable. + */ + // @ts-ignore + sort(c: java.util.Comparator): void; + /** + * Removes all of the elements from this list (optional operation). + * The list will be empty after this call returns. + */ + // @ts-ignore + clear(): void; + /** + * Compares the specified object with this list for equality. Returns + * true if and only if the specified object is also a list, both + * lists have the same size, and all corresponding pairs of elements in + * the two lists are equal. (Two elements e1 and + * e2 are equal if (e1==null ? e2==null : + * e1.equals(e2)).) In other words, two lists are defined to be + * equal if they contain the same elements in the same order. This + * definition ensures that the equals method works properly across + * different implementations of the List interface. + */ + // @ts-ignore + equals(o: java.lang.Object): boolean; + /** + * Returns the hash code value for this list. The hash code of a list + * is defined to be the result of the following calculation: + *

{@code
+             * int hashCode = 1;
+             * for (E e : list)
+             * hashCode = 31*hashCode + (e==null ? 0 : e.hashCode());
+             * }
+ * This ensures that list1.equals(list2) implies that + * list1.hashCode()==list2.hashCode() for any two lists, + * list1 and list2, as required by the general + * contract of {@link Object#hashCode}. + */ + // @ts-ignore + hashCode(): number; + /** + * Returns the element at the specified position in this list. + */ + // @ts-ignore + get(index: number): java.lang.Object; + /** + * Replaces the element at the specified position in this list with the + * specified element (optional operation). + */ + // @ts-ignore + set(index: number, element: java.lang.Object): java.lang.Object; + /** + * Inserts the specified element at the specified position in this list + * (optional operation). Shifts the element currently at that position + * (if any) and any subsequent elements to the right (adds one to their + * indices). + */ + // @ts-ignore + add(index: number, element: java.lang.Object): void; + /** + * Removes the element at the specified position in this list (optional + * operation). Shifts any subsequent elements to the left (subtracts one + * from their indices). Returns the element that was removed from the + * list. + */ + // @ts-ignore + remove(index: number): java.lang.Object; + /** + * Returns the index of the first occurrence of the specified element + * in this list, or -1 if this list does not contain the element. + * More formally, returns the lowest index i such that + * (o==null ? get(i)==null : o.equals(get(i))), + * or -1 if there is no such index. + */ + // @ts-ignore + indexOf(o: java.lang.Object): number; + /** + * Returns the index of the last occurrence of the specified element + * in this list, or -1 if this list does not contain the element. + * More formally, returns the highest index i such that + * (o==null ? get(i)==null : o.equals(get(i))), + * or -1 if there is no such index. + */ + // @ts-ignore + lastIndexOf(o: java.lang.Object): number; + /** + * Returns a list iterator over the elements in this list (in proper + * sequence). + */ + // @ts-ignore + listIterator(): java.util.ListIterator; + /** + * Returns a list iterator over the elements in this list (in proper + * sequence), starting at the specified position in the list. + * The specified index indicates the first element that would be + * returned by an initial call to {@link ListIterator#next next}. + * An initial call to {@link ListIterator#previous previous} would + * return the element with the specified index minus one. + */ + // @ts-ignore + listIterator(index: number): java.util.ListIterator; + /** + * Returns a view of the portion of this list between the specified + * fromIndex, inclusive, and toIndex, exclusive. (If + * fromIndex and toIndex are equal, the returned list is + * empty.) The returned list is backed by this list, so non-structural + * changes in the returned list are reflected in this list, and vice-versa. + * The returned list supports all of the optional list operations supported + * by this list.

+ * This method eliminates the need for explicit range operations (of + * the sort that commonly exist for arrays). Any operation that expects + * a list can be used as a range operation by passing a subList view + * instead of a whole list. For example, the following idiom + * removes a range of elements from a list: + *

{@code
+             * list.subList(from, to).clear();
+             * }
+ * Similar idioms may be constructed for indexOf and + * lastIndexOf, and all of the algorithms in the + * Collections class can be applied to a subList.

+ * The semantics of the list returned by this method become undefined if + * the backing list (i.e., this list) is structurally modified in + * any way other than via the returned list. (Structural modifications are + * those that change the size of this list, or otherwise perturb it in such + * a fashion that iterations in progress may yield incorrect results.) + */ + // @ts-ignore + subList(fromIndex: number, toIndex: number): java.util.List; + /** + * Creates a {@link Spliterator} over the elements in this list. + *

The {@code Spliterator} reports {@link Spliterator#SIZED} and + * {@link Spliterator#ORDERED}. Implementations should document the + * reporting of additional characteristic values. + */ + // @ts-ignore + spliterator(): java.util.Spliterator; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.ListIterator.d.ts b/packages/types/dist/typings/jdk/java.util.ListIterator.d.ts new file mode 100644 index 00000000..82f963da --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.ListIterator.d.ts @@ -0,0 +1,89 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + interface ListIterator { + /** + * Returns {@code true} if this list iterator has more elements when + * traversing the list in the forward direction. (In other words, + * returns {@code true} if {@link #next} would return an element rather + * than throwing an exception.) + */ + // @ts-ignore + hasNext(): boolean; + /** + * Returns the next element in the list and advances the cursor position. + * This method may be called repeatedly to iterate through the list, + * or intermixed with calls to {@link #previous} to go back and forth. + * (Note that alternating calls to {@code next} and {@code previous} + * will return the same element repeatedly.) + */ + // @ts-ignore + next(): java.lang.Object; + /** + * Returns {@code true} if this list iterator has more elements when + * traversing the list in the reverse direction. (In other words, + * returns {@code true} if {@link #previous} would return an element + * rather than throwing an exception.) + */ + // @ts-ignore + hasPrevious(): boolean; + /** + * Returns the previous element in the list and moves the cursor + * position backwards. This method may be called repeatedly to + * iterate through the list backwards, or intermixed with calls to + * {@link #next} to go back and forth. (Note that alternating calls + * to {@code next} and {@code previous} will return the same + * element repeatedly.) + */ + // @ts-ignore + previous(): java.lang.Object; + /** + * Returns the index of the element that would be returned by a + * subsequent call to {@link #next}. (Returns list size if the list + * iterator is at the end of the list.) + */ + // @ts-ignore + nextIndex(): number; + /** + * Returns the index of the element that would be returned by a + * subsequent call to {@link #previous}. (Returns -1 if the list + * iterator is at the beginning of the list.) + */ + // @ts-ignore + previousIndex(): number; + /** + * Removes from the list the last element that was returned by {@link + * #next} or {@link #previous} (optional operation). This call can + * only be made once per call to {@code next} or {@code previous}. + * It can be made only if {@link #add} has not been + * called after the last call to {@code next} or {@code previous}. + */ + // @ts-ignore + remove(): void; + /** + * Replaces the last element returned by {@link #next} or + * {@link #previous} with the specified element (optional operation). + * This call can be made only if neither {@link #remove} nor {@link + * #add} have been called after the last call to {@code next} or + * {@code previous}. + */ + // @ts-ignore + set(e: java.lang.Object): void; + /** + * Inserts the specified element into the list (optional operation). + * The element is inserted immediately before the element that + * would be returned by {@link #next}, if any, and after the element + * that would be returned by {@link #previous}, if any. (If the + * list contains no elements, the new element becomes the sole element + * on the list.) The new element is inserted before the implicit + * cursor: a subsequent call to {@code next} would be unaffected, and a + * subsequent call to {@code previous} would return the new element. + * (This call increases by one the value that would be returned by a + * call to {@code nextIndex} or {@code previousIndex}.) + */ + // @ts-ignore + add(e: java.lang.Object): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.ListResourceBundle.d.ts b/packages/types/dist/typings/jdk/java.util.ListResourceBundle.d.ts new file mode 100644 index 00000000..6fcb794d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.ListResourceBundle.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + abstract class ListResourceBundle extends java.util.ResourceBundle { + /** + * Sole constructor. (For invocation by subclass constructors, typically + * implicit.) + */ + // @ts-ignore + constructor() + // @ts-ignore + public handleGetObject(key: string): java.lang.Object; + /** + * Returns an Enumeration of the keys contained in + * this ResourceBundle and its parent bundles. + */ + // @ts-ignore + public getKeys(): java.util.Enumeration; + /** + * Returns a Set of the keys contained + * only in this ResourceBundle. + */ + // @ts-ignore + protected handleKeySet(): java.util.Set; + /** + * Returns an array in which each item is a pair of objects in an + * Object array. The first element of each pair is + * the key, which must be a String, and the second + * element is the value associated with that key. See the class + * description for details. + */ + // @ts-ignore + protected abstract getContents(): java.lang.Object[][]; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Locale.Builder.d.ts b/packages/types/dist/typings/jdk/java.util.Locale.Builder.d.ts new file mode 100644 index 00000000..74130263 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Locale.Builder.d.ts @@ -0,0 +1,157 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace Locale { + // @ts-ignore + class Builder extends java.lang.Object { + /** + * Constructs an empty Builder. The default value of all + * fields, extensions, and private use information is the + * empty string. + */ + // @ts-ignore + constructor() + /** + * Resets the Builder to match the provided + * locale. Existing state is discarded. + *

All fields of the locale must be well-formed, see {@link Locale}. + *

Locales with any ill-formed fields cause + * IllformedLocaleException to be thrown, except for the + * following three cases which are accepted for compatibility + * reasons:

    + *
  • Locale("ja", "JP", "JP") is treated as "ja-JP-u-ca-japanese" + *
  • Locale("th", "TH", "TH") is treated as "th-TH-u-nu-thai" + *
  • Locale("no", "NO", "NY") is treated as "nn-NO"
+ */ + // @ts-ignore + public setLocale(locale: java.util.Locale): java.util.Locale.Builder; + /** + * Resets the Builder to match the provided IETF BCP 47 + * language tag. Discards the existing state. Null and the + * empty string cause the builder to be reset, like {@link + * #clear}. Grandfathered tags (see {@link + * Locale#forLanguageTag}) are converted to their canonical + * form before being processed. Otherwise, the language tag + * must be well-formed (see {@link Locale}) or an exception is + * thrown (unlike Locale.forLanguageTag, which + * just discards ill-formed and following portions of the + * tag). + */ + // @ts-ignore + public setLanguageTag(languageTag: string): java.util.Locale.Builder; + /** + * Sets the language. If language is the empty string or + * null, the language in this Builder is removed. Otherwise, + * the language must be well-formed + * or an exception is thrown. + *

The typical language value is a two or three-letter language + * code as defined in ISO639. + */ + // @ts-ignore + public setLanguage(language: string): java.util.Locale.Builder; + /** + * Sets the script. If script is null or the empty string, + * the script in this Builder is removed. + * Otherwise, the script must be well-formed or an + * exception is thrown. + *

The typical script value is a four-letter script code as defined by ISO 15924. + */ + // @ts-ignore + public setScript(script: string): java.util.Locale.Builder; + /** + * Sets the region. If region is null or the empty string, the region + * in this Builder is removed. Otherwise, + * the region must be well-formed or an + * exception is thrown. + *

The typical region value is a two-letter ISO 3166 code or a + * three-digit UN M.49 area code. + *

The country value in the Locale created by the + * Builder is always normalized to upper case. + */ + // @ts-ignore + public setRegion(region: string): java.util.Locale.Builder; + /** + * Sets the variant. If variant is null or the empty string, the + * variant in this Builder is removed. Otherwise, it + * must consist of one or more well-formed + * subtags, or an exception is thrown. + *

Note: This method checks if variant + * satisfies the IETF BCP 47 variant subtag's syntax requirements, + * and normalizes the value to lowercase letters. However, + * the Locale class does not impose any syntactic + * restriction on variant, and the variant value in + * Locale is case sensitive. To set such a variant, + * use a Locale constructor. + */ + // @ts-ignore + public setVariant(variant: string): java.util.Locale.Builder; + /** + * Sets the extension for the given key. If the value is null or the + * empty string, the extension is removed. Otherwise, the extension + * must be well-formed or an exception + * is thrown. + *

Note: The key {@link Locale#UNICODE_LOCALE_EXTENSION + * UNICODE_LOCALE_EXTENSION} ('u') is used for the Unicode locale extension. + * Setting a value for this key replaces any existing Unicode locale key/type + * pairs with those defined in the extension. + *

Note: The key {@link Locale#PRIVATE_USE_EXTENSION + * PRIVATE_USE_EXTENSION} ('x') is used for the private use code. To be + * well-formed, the value for this key needs only to have subtags of one to + * eight alphanumeric characters, not two to eight as in the general case. + */ + // @ts-ignore + public setExtension(key: string, value: string): java.util.Locale.Builder; + /** + * Sets the Unicode locale keyword type for the given key. If the type + * is null, the Unicode keyword is removed. Otherwise, the key must be + * non-null and both key and type must be well-formed or an exception + * is thrown. + *

Keys and types are converted to lower case. + *

Note:Setting the 'u' extension via {@link #setExtension} + * replaces all Unicode locale keywords with those defined in the + * extension. + */ + // @ts-ignore + public setUnicodeLocaleKeyword(key: string, type: string): java.util.Locale.Builder; + /** + * Adds a unicode locale attribute, if not already present, otherwise + * has no effect. The attribute must not be null and must be well-formed or an exception + * is thrown. + */ + // @ts-ignore + public addUnicodeLocaleAttribute(attribute: string): java.util.Locale.Builder; + /** + * Removes a unicode locale attribute, if present, otherwise has no + * effect. The attribute must not be null and must be well-formed or an exception + * is thrown. + *

Attribute comparision for removal is case-insensitive. + */ + // @ts-ignore + public removeUnicodeLocaleAttribute(attribute: string): java.util.Locale.Builder; + /** + * Resets the builder to its initial, empty state. + */ + // @ts-ignore + public clear(): java.util.Locale.Builder; + /** + * Resets the extensions to their initial, empty state. + * Language, script, region and variant are unchanged. + */ + // @ts-ignore + public clearExtensions(): java.util.Locale.Builder; + /** + * Returns an instance of Locale created from the fields set + * on this builder. + *

This applies the conversions listed in {@link Locale#forLanguageTag} + * when constructing a Locale. (Grandfathered tags are handled in + * {@link #setLanguageTag}.) + */ + // @ts-ignore + public build(): java.util.Locale; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Locale.Category.d.ts b/packages/types/dist/typings/jdk/java.util.Locale.Category.d.ts new file mode 100644 index 00000000..cb20129f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Locale.Category.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace Locale { + // @ts-ignore + class Category extends java.lang.Enum { + // @ts-ignore + public static DISPLAY: java.util.Locale.Category; + // @ts-ignore + public static FORMAT: java.util.Locale.Category; + // @ts-ignore + public static values(): java.util.Locale.Category[]; + // @ts-ignore + public static valueOf(name: string): java.util.Locale.Category; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Locale.FilteringMode.d.ts b/packages/types/dist/typings/jdk/java.util.Locale.FilteringMode.d.ts new file mode 100644 index 00000000..b782d6e5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Locale.FilteringMode.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace Locale { + // @ts-ignore + class FilteringMode extends java.lang.Enum { + // @ts-ignore + public static AUTOSELECT_FILTERING: java.util.Locale.FilteringMode; + // @ts-ignore + public static EXTENDED_FILTERING: java.util.Locale.FilteringMode; + // @ts-ignore + public static IGNORE_EXTENDED_RANGES: java.util.Locale.FilteringMode; + // @ts-ignore + public static MAP_EXTENDED_RANGES: java.util.Locale.FilteringMode; + // @ts-ignore + public static REJECT_EXTENDED_RANGES: java.util.Locale.FilteringMode; + // @ts-ignore + public static values(): java.util.Locale.FilteringMode[]; + // @ts-ignore + public static valueOf(name: string): java.util.Locale.FilteringMode; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Locale.LanguageRange.d.ts b/packages/types/dist/typings/jdk/java.util.Locale.LanguageRange.d.ts new file mode 100644 index 00000000..3cb5bccc --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Locale.LanguageRange.d.ts @@ -0,0 +1,143 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace Locale { + // @ts-ignore + class LanguageRange extends java.lang.Object { + /** + * Constructs a {@code LanguageRange} using the given {@code range}. + * Note that no validation is done against the IANA Language Subtag + * Registry at time of construction. + *

This is equivalent to {@code LanguageRange(range, MAX_WEIGHT)}. + */ + // @ts-ignore + constructor(range: string) + /** + * Constructs a {@code LanguageRange} using the given {@code range} and + * {@code weight}. Note that no validation is done against the IANA + * Language Subtag Registry at time of construction. + */ + // @ts-ignore + constructor(range: string, weight: number) + // @ts-ignore + public static MAX_WEIGHT: number; + // @ts-ignore + public static MIN_WEIGHT: number; + /** + * Returns the language range of this {@code LanguageRange}. + */ + // @ts-ignore + public getRange(): string; + /** + * Returns the weight of this {@code LanguageRange}. + */ + // @ts-ignore + public getWeight(): number; + /** + * Parses the given {@code ranges} to generate a Language Priority List. + *

This method performs a syntactic check for each language range in + * the given {@code ranges} but doesn't do validation using the IANA + * Language Subtag Registry. + *

The {@code ranges} to be given can take one of the following + * forms: + *

+                 * "Accept-Language: ja,en;q=0.4"  (weighted list with Accept-Language prefix)
+                 * "ja,en;q=0.4"                   (weighted list)
+                 * "ja,en"                         (prioritized list)
+                 * 
+ * In a weighted list, each language range is given a weight value. + * The weight value is identical to the "quality value" in + * RFC 2616, and it + * expresses how much the user prefers the language. A weight value is + * specified after a corresponding language range followed by + * {@code ";q="}, and the default weight value is {@code MAX_WEIGHT} + * when it is omitted. + *

Unlike a weighted list, language ranges in a prioritized list + * are sorted in the descending order based on its priority. The first + * language range has the highest priority and meets the user's + * preference most. + *

In either case, language ranges are sorted in descending order in + * the Language Priority List based on priority or weight. If a + * language range appears in the given {@code ranges} more than once, + * only the first one is included on the Language Priority List. + *

The returned list consists of language ranges from the given + * {@code ranges} and their equivalents found in the IANA Language + * Subtag Registry. For example, if the given {@code ranges} is + * {@code "Accept-Language: iw,en-us;q=0.7,en;q=0.3"}, the elements in + * the list to be returned are: + *

+                 * Range                                   Weight
+                 * "iw" (older tag for Hebrew)             1.0
+                 * "he" (new preferred code for Hebrew)    1.0
+                 * "en-us" (English, United States)        0.7
+                 * "en" (English)                          0.3
+                 * 
+ * Two language ranges, {@code "iw"} and {@code "he"}, have the same + * highest priority in the list. By adding {@code "he"} to the user's + * Language Priority List, locale-matching method can find Hebrew as a + * matching locale (or language tag) even if the application or system + * offers only {@code "he"} as a supported locale (or language tag). + */ + // @ts-ignore + public static parse(ranges: string): java.util.List; + /** + * Parses the given {@code ranges} to generate a Language Priority + * List, and then customizes the list using the given {@code map}. + * This method is equivalent to + * {@code mapEquivalents(parse(ranges), map)}. + */ + // @ts-ignore + public static parse(ranges: string, map: java.util.Map): java.util.List; + /** + * Generates a new customized Language Priority List using the given + * {@code priorityList} and {@code map}. If the given {@code map} is + * empty, this method returns a copy of the given {@code priorityList}. + *

In the map, a key represents a language range whereas a value is + * a list of equivalents of it. {@code '*'} cannot be used in the map. + * Each equivalent language range has the same weight value as its + * original language range. + *

+                 * An example of map:
+                 * Key                            Value
+                 * "zh" (Chinese)                 "zh",
+                 * "zh-Hans"(Simplified Chinese)
+                 * "zh-HK" (Chinese, Hong Kong)   "zh-HK"
+                 * "zh-TW" (Chinese, Taiwan)      "zh-TW"
+                 * 
+ * The customization is performed after modification using the IANA + * Language Subtag Registry. + *

For example, if a user's Language Priority List consists of five + * language ranges ({@code "zh"}, {@code "zh-CN"}, {@code "en"}, + * {@code "zh-TW"}, and {@code "zh-HK"}), the newly generated Language + * Priority List which is customized using the above map example will + * consists of {@code "zh"}, {@code "zh-Hans"}, {@code "zh-CN"}, + * {@code "zh-Hans-CN"}, {@code "en"}, {@code "zh-TW"}, and + * {@code "zh-HK"}. + *

{@code "zh-HK"} and {@code "zh-TW"} aren't converted to + * {@code "zh-Hans-HK"} nor {@code "zh-Hans-TW"} even if they are + * included in the Language Priority List. In this example, mapping + * is used to clearly distinguish Simplified Chinese and Traditional + * Chinese. + *

If the {@code "zh"}-to-{@code "zh"} mapping isn't included in the + * map, a simple replacement will be performed and the customized list + * won't include {@code "zh"} and {@code "zh-CN"}. + */ + // @ts-ignore + public static mapEquivalents(priorityList: java.util.List, map: java.util.Map): java.util.List; + /** + * Returns a hash code value for the object. + */ + // @ts-ignore + public hashCode(): number; + /** + * Compares this object to the specified object. The result is true if + * and only if the argument is not {@code null} and is a + * {@code LanguageRange} object that contains the same {@code range} + * and {@code weight} values as this object. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Locale.d.ts b/packages/types/dist/typings/jdk/java.util.Locale.d.ts new file mode 100644 index 00000000..22657e57 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Locale.d.ts @@ -0,0 +1,700 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class Locale extends java.lang.Object { + /** + * Construct a locale from language, country and variant. + * This constructor normalizes the language value to lowercase and + * the country value to uppercase. + *

+ * Note: + *

    + *
  • ISO 639 is not a stable standard; some of the language codes it defines + * (specifically "iw", "ji", and "in") have changed. This constructor accepts both the + * old codes ("iw", "ji", and "in") and the new codes ("he", "yi", and "id"), but all other + * API on Locale will return only the OLD codes. + *
  • For backward compatibility reasons, this constructor does not make + * any syntactic checks on the input. + *
  • The two cases ("ja", "JP", "JP") and ("th", "TH", "TH") are handled specially, + * see Special Cases for more information. + *
+ */ + // @ts-ignore + constructor(language: string, country: string, variant: string) + /** + * Construct a locale from language and country. + * This constructor normalizes the language value to lowercase and + * the country value to uppercase. + *

+ * Note: + *

    + *
  • ISO 639 is not a stable standard; some of the language codes it defines + * (specifically "iw", "ji", and "in") have changed. This constructor accepts both the + * old codes ("iw", "ji", and "in") and the new codes ("he", "yi", and "id"), but all other + * API on Locale will return only the OLD codes. + *
  • For backward compatibility reasons, this constructor does not make + * any syntactic checks on the input. + *
+ */ + // @ts-ignore + constructor(language: string, country: string) + /** + * Construct a locale from a language code. + * This constructor normalizes the language value to lowercase. + *

+ * Note: + *

    + *
  • ISO 639 is not a stable standard; some of the language codes it defines + * (specifically "iw", "ji", and "in") have changed. This constructor accepts both the + * old codes ("iw", "ji", and "in") and the new codes ("he", "yi", and "id"), but all other + * API on Locale will return only the OLD codes. + *
  • For backward compatibility reasons, this constructor does not make + * any syntactic checks on the input. + *
+ */ + // @ts-ignore + constructor(language: string) + // @ts-ignore + public static ENGLISH: java.util.Locale; + // @ts-ignore + public static FRENCH: java.util.Locale; + // @ts-ignore + public static GERMAN: java.util.Locale; + // @ts-ignore + public static ITALIAN: java.util.Locale; + // @ts-ignore + public static JAPANESE: java.util.Locale; + // @ts-ignore + public static KOREAN: java.util.Locale; + // @ts-ignore + public static CHINESE: java.util.Locale; + // @ts-ignore + public static SIMPLIFIED_CHINESE: java.util.Locale; + // @ts-ignore + public static TRADITIONAL_CHINESE: java.util.Locale; + // @ts-ignore + public static FRANCE: java.util.Locale; + // @ts-ignore + public static GERMANY: java.util.Locale; + // @ts-ignore + public static ITALY: java.util.Locale; + // @ts-ignore + public static JAPAN: java.util.Locale; + // @ts-ignore + public static KOREA: java.util.Locale; + // @ts-ignore + public static CHINA: java.util.Locale; + // @ts-ignore + public static PRC: java.util.Locale; + // @ts-ignore + public static TAIWAN: java.util.Locale; + // @ts-ignore + public static UK: java.util.Locale; + // @ts-ignore + public static US: java.util.Locale; + // @ts-ignore + public static CANADA: java.util.Locale; + // @ts-ignore + public static CANADA_FRENCH: java.util.Locale; + // @ts-ignore + public static ROOT: java.util.Locale; + // @ts-ignore + public static PRIVATE_USE_EXTENSION: string; + // @ts-ignore + public static UNICODE_LOCALE_EXTENSION: string; + /** + * Gets the current value of the default locale for this instance + * of the Java Virtual Machine. + *

+ * The Java Virtual Machine sets the default locale during startup + * based on the host environment. It is used by many locale-sensitive + * methods if no locale is explicitly specified. + * It can be changed using the + * {@link #setDefault(java.util.Locale) setDefault} method. + */ + // @ts-ignore + public static getDefault(): java.util.Locale; + /** + * Gets the current value of the default locale for the specified Category + * for this instance of the Java Virtual Machine. + *

+ * The Java Virtual Machine sets the default locale during startup based + * on the host environment. It is used by many locale-sensitive methods + * if no locale is explicitly specified. It can be changed using the + * setDefault(Locale.Category, Locale) method. + */ + // @ts-ignore + public static getDefault(category: java.util.Locale.Category): java.util.Locale; + /** + * Sets the default locale for this instance of the Java Virtual Machine. + * This does not affect the host locale. + *

+ * If there is a security manager, its checkPermission + * method is called with a PropertyPermission("user.language", "write") + * permission before the default locale is changed. + *

+ * The Java Virtual Machine sets the default locale during startup + * based on the host environment. It is used by many locale-sensitive + * methods if no locale is explicitly specified. + *

+ * Since changing the default locale may affect many different areas + * of functionality, this method should only be used if the caller + * is prepared to reinitialize locale-sensitive code running + * within the same Java Virtual Machine. + *

+ * By setting the default locale with this method, all of the default + * locales for each Category are also set to the specified default locale. + */ + // @ts-ignore + public static setDefault(newLocale: java.util.Locale): void; + /** + * Sets the default locale for the specified Category for this instance + * of the Java Virtual Machine. This does not affect the host locale. + *

+ * If there is a security manager, its checkPermission method is called + * with a PropertyPermission("user.language", "write") permission before + * the default locale is changed. + *

+ * The Java Virtual Machine sets the default locale during startup based + * on the host environment. It is used by many locale-sensitive methods + * if no locale is explicitly specified. + *

+ * Since changing the default locale may affect many different areas of + * functionality, this method should only be used if the caller is + * prepared to reinitialize locale-sensitive code running within the + * same Java Virtual Machine. + *

+ */ + // @ts-ignore + public static setDefault(category: java.util.Locale.Category, newLocale: java.util.Locale): void; + /** + * Returns an array of all installed locales. + * The returned array represents the union of locales supported + * by the Java runtime environment and by installed + * {@link java.util.spi.LocaleServiceProvider LocaleServiceProvider} + * implementations. It must contain at least a Locale + * instance equal to {@link java.util.Locale#US Locale.US}. + */ + // @ts-ignore + public static getAvailableLocales(): java.util.Locale[]; + /** + * Returns a list of all 2-letter country codes defined in ISO 3166. + * Can be used to create Locales. + *

+ * Note: The Locale class also supports other codes for + * country (region), such as 3-letter numeric UN M.49 area codes. + * Therefore, the list returned by this method does not contain ALL valid + * codes that can be used to create Locales. + */ + // @ts-ignore + public static getISOCountries(): java.lang.String[]; + /** + * Returns a list of all 2-letter language codes defined in ISO 639. + * Can be used to create Locales. + *

+ * Note: + *

    + *
  • ISO 639 is not a stable standard— some languages' codes have changed. + * The list this function returns includes both the new and the old codes for the + * languages whose codes have changed. + *
  • The Locale class also supports language codes up to + * 8 characters in length. Therefore, the list returned by this method does + * not contain ALL valid codes that can be used to create Locales. + *
+ */ + // @ts-ignore + public static getISOLanguages(): java.lang.String[]; + /** + * Returns the language code of this Locale. + *

Note: ISO 639 is not a stable standard— some languages' codes have changed. + * Locale's constructor recognizes both the new and the old codes for the languages + * whose codes have changed, but this function always returns the old code. If you + * want to check for a specific language whose code has changed, don't do + *

+             * if (locale.getLanguage().equals("he")) // BAD!
+             * ...
+             * 
+ * Instead, do + *
+             * if (locale.getLanguage().equals(new Locale("he").getLanguage()))
+             * ...
+             * 
+ */ + // @ts-ignore + public getLanguage(): string; + /** + * Returns the script for this locale, which should + * either be the empty string or an ISO 15924 4-letter script + * code. The first letter is uppercase and the rest are + * lowercase, for example, 'Latn', 'Cyrl'. + */ + // @ts-ignore + public getScript(): string; + /** + * Returns the country/region code for this locale, which should + * either be the empty string, an uppercase ISO 3166 2-letter code, + * or a UN M.49 3-digit code. + */ + // @ts-ignore + public getCountry(): string; + /** + * Returns the variant code for this locale. + */ + // @ts-ignore + public getVariant(): string; + /** + * Returns {@code true} if this {@code Locale} has any + * extensions. + */ + // @ts-ignore + public hasExtensions(): boolean; + /** + * Returns a copy of this {@code Locale} with no + * extensions. If this {@code Locale} has no extensions, this {@code Locale} + * is returned. + */ + // @ts-ignore + public stripExtensions(): java.util.Locale; + /** + * Returns the extension (or private use) value associated with + * the specified key, or null if there is no extension + * associated with the key. To be well-formed, the key must be one + * of [0-9A-Za-z]. Keys are case-insensitive, so + * for example 'z' and 'Z' represent the same extension. + */ + // @ts-ignore + public getExtension(key: string): string; + /** + * Returns the set of extension keys associated with this locale, or the + * empty set if it has no extensions. The returned set is unmodifiable. + * The keys will all be lower-case. + */ + // @ts-ignore + public getExtensionKeys(): java.util.Set; + /** + * Returns the set of unicode locale attributes associated with + * this locale, or the empty set if it has no attributes. The + * returned set is unmodifiable. + */ + // @ts-ignore + public getUnicodeLocaleAttributes(): java.util.Set; + /** + * Returns the Unicode locale type associated with the specified Unicode locale key + * for this locale. Returns the empty string for keys that are defined with no type. + * Returns null if the key is not defined. Keys are case-insensitive. The key must + * be two alphanumeric characters ([0-9a-zA-Z]), or an IllegalArgumentException is + * thrown. + */ + // @ts-ignore + public getUnicodeLocaleType(key: string): string; + /** + * Returns the set of Unicode locale keys defined by this locale, or the empty set if + * this locale has none. The returned set is immutable. Keys are all lower case. + */ + // @ts-ignore + public getUnicodeLocaleKeys(): java.util.Set; + /** + * Returns a string representation of this Locale + * object, consisting of language, country, variant, script, + * and extensions as below: + *
+ * language + "_" + country + "_" + (variant + "_#" | "#") + script + "-" + extensions + *
+ * Language is always lower case, country is always upper case, script is always title + * case, and extensions are always lower case. Extensions and private use subtags + * will be in canonical order as explained in {@link #toLanguageTag}. + *

When the locale has neither script nor extensions, the result is the same as in + * Java 6 and prior. + *

If both the language and country fields are missing, this function will return + * the empty string, even if the variant, script, or extensions field is present (you + * can't have a locale with just a variant, the variant must accompany a well-formed + * language or country code). + *

If script or extensions are present and variant is missing, no underscore is + * added before the "#". + *

This behavior is designed to support debugging and to be compatible with + * previous uses of toString that expected language, country, and variant + * fields only. To represent a Locale as a String for interchange purposes, use + * {@link #toLanguageTag}. + *

Examples:

    + *
  • en
  • + *
  • de_DE
  • + *
  • _GB
  • + *
  • en_US_WIN
  • + *
  • de__POSIX
  • + *
  • zh_CN_#Hans
  • + *
  • zh_TW_#Hant-x-java
  • + *
  • th_TH_TH_#u-nu-thai
+ */ + // @ts-ignore + public toString(): string; + /** + * Returns a well-formed IETF BCP 47 language tag representing + * this locale. + *

If this Locale has a language, country, or + * variant that does not satisfy the IETF BCP 47 language tag + * syntax requirements, this method handles these fields as + * described below: + *

Language: If language is empty, or not well-formed (for example "a" or + * "e2"), it will be emitted as "und" (Undetermined). + *

Country: If country is not well-formed (for example "12" or "USA"), + * it will be omitted. + *

Variant: If variant is well-formed, each sub-segment + * (delimited by '-' or '_') is emitted as a subtag. Otherwise: + *

    + *
  • if all sub-segments match [0-9a-zA-Z]{1,8} + * (for example "WIN" or "Oracle_JDK_Standard_Edition"), the first + * ill-formed sub-segment and all following will be appended to + * the private use subtag. The first appended subtag will be + * "lvariant", followed by the sub-segments in order, separated by + * hyphen. For example, "x-lvariant-WIN", + * "Oracle-x-lvariant-JDK-Standard-Edition". + *
  • if any sub-segment does not match + * [0-9a-zA-Z]{1,8}, the variant will be truncated + * and the problematic sub-segment and all following sub-segments + * will be omitted. If the remainder is non-empty, it will be + * emitted as a private use subtag as above (even if the remainder + * turns out to be well-formed). For example, + * "Solaris_isjustthecoolestthing" is emitted as + * "x-lvariant-Solaris", not as "solaris".
+ *

Special Conversions: Java supports some old locale + * representations, including deprecated ISO language codes, + * for compatibility. This method performs the following + * conversions: + *

    + *
  • Deprecated ISO language codes "iw", "ji", and "in" are + * converted to "he", "yi", and "id", respectively. + *
  • A locale with language "no", country "NO", and variant + * "NY", representing Norwegian Nynorsk (Norway), is converted + * to a language tag "nn-NO".
+ *

Note: Although the language tag created by this + * method is well-formed (satisfies the syntax requirements + * defined by the IETF BCP 47 specification), it is not + * necessarily a valid BCP 47 language tag. For example, + *

+             * new Locale("xx", "YY").toLanguageTag();
+ * will return "xx-YY", but the language subtag "xx" and the + * region subtag "YY" are invalid because they are not registered + * in the IANA Language Subtag Registry. + */ + // @ts-ignore + public toLanguageTag(): string; + /** + * Returns a locale for the specified IETF BCP 47 language tag string. + *

If the specified language tag contains any ill-formed subtags, + * the first such subtag and all following subtags are ignored. Compare + * to {@link Locale.Builder#setLanguageTag} which throws an exception + * in this case. + *

The following conversions are performed:

    + *
  • The language code "und" is mapped to language "". + *
  • The language codes "he", "yi", and "id" are mapped to "iw", + * "ji", and "in" respectively. (This is the same canonicalization + * that's done in Locale's constructors.) + *
  • The portion of a private use subtag prefixed by "lvariant", + * if any, is removed and appended to the variant field in the + * result locale (without case normalization). If it is then + * empty, the private use subtag is discarded: + *
    +             * Locale loc;
    +             * loc = Locale.forLanguageTag("en-US-x-lvariant-POSIX");
    +             * loc.getVariant(); // returns "POSIX"
    +             * loc.getExtension('x'); // returns null
    +             * loc = Locale.forLanguageTag("de-POSIX-x-URP-lvariant-Abc-Def");
    +             * loc.getVariant(); // returns "POSIX_Abc_Def"
    +             * loc.getExtension('x'); // returns "urp"
    +             * 
    + *
  • When the languageTag argument contains an extlang subtag, + * the first such subtag is used as the language, and the primary + * language subtag and other extlang subtags are ignored: + *
    +             * Locale.forLanguageTag("ar-aao").getLanguage(); // returns "aao"
    +             * Locale.forLanguageTag("en-abc-def-us").toString(); // returns "abc_US"
    +             * 
    + *
  • Case is normalized except for variant tags, which are left + * unchanged. Language is normalized to lower case, script to + * title case, country to upper case, and extensions to lower + * case. + *
  • If, after processing, the locale would exactly match either + * ja_JP_JP or th_TH_TH with no extensions, the appropriate + * extensions are added as though the constructor had been called: + *
    +             * Locale.forLanguageTag("ja-JP-x-lvariant-JP").toLanguageTag();
    +             * // returns "ja-JP-u-ca-japanese-x-lvariant-JP"
    +             * Locale.forLanguageTag("th-TH-x-lvariant-TH").toLanguageTag();
    +             * // returns "th-TH-u-nu-thai-x-lvariant-TH"
    +             * 
+ *

This implements the 'Language-Tag' production of BCP47, and + * so supports grandfathered (regular and irregular) as well as + * private use language tags. Stand alone private use tags are + * represented as empty language and extension 'x-whatever', + * and grandfathered tags are converted to their canonical replacements + * where they exist. + *

Grandfathered tags with canonical replacements are as follows: + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
grandfathered tag modern replacement
art-lojban jbo
i-ami ami
i-bnn bnn
i-hak hak
i-klingon tlh
i-lux lb
i-navajo nv
i-pwn pwn
i-tao tao
i-tay tay
i-tsu tsu
no-bok nb
no-nyn nn
sgn-BE-FR sfb
sgn-BE-NL vgt
sgn-CH-DE sgg
zh-guoyu cmn
zh-hakka hak
zh-min-nan nan
zh-xiang hsn
+ *

Grandfathered tags with no modern replacement will be + * converted as follows: + * + * + * + * + * + * + * + * + * + * + *
grandfathered tag converts to
cel-gaulish xtg-x-cel-gaulish
en-GB-oed en-GB-x-oed
i-default en-x-i-default
i-enochian und-x-i-enochian
i-mingo see-x-i-mingo
zh-min nan-x-zh-min
+ *

For a list of all grandfathered tags, see the + * IANA Language Subtag Registry (search for "Type: grandfathered"). + *

Note: there is no guarantee that toLanguageTag + * and forLanguageTag will round-trip. + */ + // @ts-ignore + public static forLanguageTag(languageTag: string): java.util.Locale; + /** + * Returns a three-letter abbreviation of this locale's language. + * If the language matches an ISO 639-1 two-letter code, the + * corresponding ISO 639-2/T three-letter lowercase code is + * returned. The ISO 639-2 language codes can be found on-line, + * see "Codes for the Representation of Names of Languages Part 2: + * Alpha-3 Code". If the locale specifies a three-letter + * language, the language is returned as is. If the locale does + * not specify a language the empty string is returned. + */ + // @ts-ignore + public getISO3Language(): string; + /** + * Returns a three-letter abbreviation for this locale's country. + * If the country matches an ISO 3166-1 alpha-2 code, the + * corresponding ISO 3166-1 alpha-3 uppercase code is returned. + * If the locale doesn't specify a country, this will be the empty + * string. + *

The ISO 3166-1 codes can be found on-line. + */ + // @ts-ignore + public getISO3Country(): string; + /** + * Returns a name for the locale's language that is appropriate for display to the + * user. + * If possible, the name returned will be localized for the default + * {@link Locale.Category#DISPLAY DISPLAY} locale. + * For example, if the locale is fr_FR and the default + * {@link Locale.Category#DISPLAY DISPLAY} locale + * is en_US, getDisplayLanguage() will return "French"; if the locale is en_US and + * the default {@link Locale.Category#DISPLAY DISPLAY} locale is fr_FR, + * getDisplayLanguage() will return "anglais". + * If the name returned cannot be localized for the default + * {@link Locale.Category#DISPLAY DISPLAY} locale, + * (say, we don't have a Japanese name for Croatian), + * this function falls back on the English name, and uses the ISO code as a last-resort + * value. If the locale doesn't specify a language, this function returns the empty string. + */ + // @ts-ignore + public getDisplayLanguage(): string; + /** + * Returns a name for the locale's language that is appropriate for display to the + * user. + * If possible, the name returned will be localized according to inLocale. + * For example, if the locale is fr_FR and inLocale + * is en_US, getDisplayLanguage() will return "French"; if the locale is en_US and + * inLocale is fr_FR, getDisplayLanguage() will return "anglais". + * If the name returned cannot be localized according to inLocale, + * (say, we don't have a Japanese name for Croatian), + * this function falls back on the English name, and finally + * on the ISO code as a last-resort value. If the locale doesn't specify a language, + * this function returns the empty string. + */ + // @ts-ignore + public getDisplayLanguage(inLocale: java.util.Locale): string; + /** + * Returns a name for the the locale's script that is appropriate for display to + * the user. If possible, the name will be localized for the default + * {@link Locale.Category#DISPLAY DISPLAY} locale. Returns + * the empty string if this locale doesn't specify a script code. + */ + // @ts-ignore + public getDisplayScript(): string; + /** + * Returns a name for the locale's script that is appropriate + * for display to the user. If possible, the name will be + * localized for the given locale. Returns the empty string if + * this locale doesn't specify a script code. + */ + // @ts-ignore + public getDisplayScript(inLocale: java.util.Locale): string; + /** + * Returns a name for the locale's country that is appropriate for display to the + * user. + * If possible, the name returned will be localized for the default + * {@link Locale.Category#DISPLAY DISPLAY} locale. + * For example, if the locale is fr_FR and the default + * {@link Locale.Category#DISPLAY DISPLAY} locale + * is en_US, getDisplayCountry() will return "France"; if the locale is en_US and + * the default {@link Locale.Category#DISPLAY DISPLAY} locale is fr_FR, + * getDisplayCountry() will return "Etats-Unis". + * If the name returned cannot be localized for the default + * {@link Locale.Category#DISPLAY DISPLAY} locale, + * (say, we don't have a Japanese name for Croatia), + * this function falls back on the English name, and uses the ISO code as a last-resort + * value. If the locale doesn't specify a country, this function returns the empty string. + */ + // @ts-ignore + public getDisplayCountry(): string; + /** + * Returns a name for the locale's country that is appropriate for display to the + * user. + * If possible, the name returned will be localized according to inLocale. + * For example, if the locale is fr_FR and inLocale + * is en_US, getDisplayCountry() will return "France"; if the locale is en_US and + * inLocale is fr_FR, getDisplayCountry() will return "Etats-Unis". + * If the name returned cannot be localized according to inLocale. + * (say, we don't have a Japanese name for Croatia), + * this function falls back on the English name, and finally + * on the ISO code as a last-resort value. If the locale doesn't specify a country, + * this function returns the empty string. + */ + // @ts-ignore + public getDisplayCountry(inLocale: java.util.Locale): string; + /** + * Returns a name for the locale's variant code that is appropriate for display to the + * user. If possible, the name will be localized for the default + * {@link Locale.Category#DISPLAY DISPLAY} locale. If the locale + * doesn't specify a variant code, this function returns the empty string. + */ + // @ts-ignore + public getDisplayVariant(): string; + /** + * Returns a name for the locale's variant code that is appropriate for display to the + * user. If possible, the name will be localized for inLocale. If the locale + * doesn't specify a variant code, this function returns the empty string. + */ + // @ts-ignore + public getDisplayVariant(inLocale: java.util.Locale): string; + /** + * Returns a name for the locale that is appropriate for display to the + * user. This will be the values returned by getDisplayLanguage(), + * getDisplayScript(), getDisplayCountry(), and getDisplayVariant() assembled + * into a single string. The the non-empty values are used in order, + * with the second and subsequent names in parentheses. For example: + *

+ * language (script, country, variant)
+ * language (country)
+ * language (variant)
+ * script (country)
+ * country
+ *
+ * depending on which fields are specified in the locale. If the + * language, script, country, and variant fields are all empty, + * this function returns the empty string. + */ + // @ts-ignore + public getDisplayName(): string; + /** + * Returns a name for the locale that is appropriate for display + * to the user. This will be the values returned by + * getDisplayLanguage(), getDisplayScript(),getDisplayCountry(), + * and getDisplayVariant() assembled into a single string. + * The non-empty values are used in order, + * with the second and subsequent names in parentheses. For example: + *
+ * language (script, country, variant)
+ * language (country)
+ * language (variant)
+ * script (country)
+ * country
+ *
+ * depending on which fields are specified in the locale. If the + * language, script, country, and variant fields are all empty, + * this function returns the empty string. + */ + // @ts-ignore + public getDisplayName(inLocale: java.util.Locale): string; + /** + * Overrides Cloneable. + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Override hashCode. + * Since Locales are often used in hashtables, caches the value + * for speed. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns true if this Locale is equal to another object. A Locale is + * deemed equal to another Locale with identical language, script, country, + * variant and extensions, and unequal to all other objects. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns a list of matching {@code Locale} instances using the filtering + * mechanism defined in RFC 4647. + */ + // @ts-ignore + public static filter(priorityList: java.util.List, locales: java.util.Collection, mode: java.util.Locale.FilteringMode): java.util.List; + /** + * Returns a list of matching {@code Locale} instances using the filtering + * mechanism defined in RFC 4647. This is equivalent to + * {@link #filter(List, Collection, FilteringMode)} when {@code mode} is + * {@link FilteringMode#AUTOSELECT_FILTERING}. + */ + // @ts-ignore + public static filter(priorityList: java.util.List, locales: java.util.Collection): java.util.List; + /** + * Returns a list of matching languages tags using the basic filtering + * mechanism defined in RFC 4647. + */ + // @ts-ignore + public static filterTags(priorityList: java.util.List, tags: java.util.Collection, mode: java.util.Locale.FilteringMode): java.util.List; + /** + * Returns a list of matching languages tags using the basic filtering + * mechanism defined in RFC 4647. This is equivalent to + * {@link #filterTags(List, Collection, FilteringMode)} when {@code mode} + * is {@link FilteringMode#AUTOSELECT_FILTERING}. + */ + // @ts-ignore + public static filterTags(priorityList: java.util.List, tags: java.util.Collection): java.util.List; + /** + * Returns a {@code Locale} instance for the best-matching language + * tag using the lookup mechanism defined in RFC 4647. + */ + // @ts-ignore + public static lookup(priorityList: java.util.List, locales: java.util.Collection): java.util.Locale; + /** + * Returns the best-matching language tag using the lookup mechanism + * defined in RFC 4647. + */ + // @ts-ignore + public static lookupTag(priorityList: java.util.List, tags: java.util.Collection): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.LongSummaryStatistics.d.ts b/packages/types/dist/typings/jdk/java.util.LongSummaryStatistics.d.ts new file mode 100644 index 00000000..56c8ddc8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.LongSummaryStatistics.d.ts @@ -0,0 +1,62 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class LongSummaryStatistics extends java.lang.Object { + /** + * Construct an empty instance with zero count, zero sum, + * {@code Long.MAX_VALUE} min, {@code Long.MIN_VALUE} max and zero + * average. + */ + // @ts-ignore + constructor() + /** + * Records a new {@code int} value into the summary information. + */ + // @ts-ignore + public accept(value: number): void; + /** + * Records a new {@code long} value into the summary information. + */ + // @ts-ignore + public accept(value: number): void; + /** + * Combines the state of another {@code LongSummaryStatistics} into this + * one. + */ + // @ts-ignore + public combine(other: java.util.LongSummaryStatistics): void; + /** + * Returns the count of values recorded. + */ + // @ts-ignore + public getCount(): number; + /** + * Returns the sum of values recorded, or zero if no values have been + * recorded. + */ + // @ts-ignore + public getSum(): number; + /** + * Returns the minimum value recorded, or {@code Long.MAX_VALUE} if no + * values have been recorded. + */ + // @ts-ignore + public getMin(): number; + /** + * Returns the maximum value recorded, or {@code Long.MIN_VALUE} if no + * values have been recorded + */ + // @ts-ignore + public getMax(): number; + /** + * Returns the arithmetic mean of values recorded, or zero if no values have been + * recorded. + */ + // @ts-ignore + public getAverage(): number; + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Map.Entry.d.ts b/packages/types/dist/typings/jdk/java.util.Map.Entry.d.ts new file mode 100644 index 00000000..89a1625b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Map.Entry.d.ts @@ -0,0 +1,89 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace Map { + // @ts-ignore + interface Entry { + /** + * Returns the key corresponding to this entry. + */ + // @ts-ignore + getKey(): java.lang.Object; + /** + * Returns the value corresponding to this entry. If the mapping + * has been removed from the backing map (by the iterator's + * remove operation), the results of this call are undefined. + */ + // @ts-ignore + getValue(): java.lang.Object; + /** + * Replaces the value corresponding to this entry with the specified + * value (optional operation). (Writes through to the map.) The + * behavior of this call is undefined if the mapping has already been + * removed from the map (by the iterator's remove operation). + */ + // @ts-ignore + setValue(value: java.lang.Object): java.lang.Object; + /** + * Compares the specified object with this entry for equality. + * Returns true if the given object is also a map entry and + * the two entries represent the same mapping. More formally, two + * entries e1 and e2 represent the same mapping + * if
+                 * (e1.getKey()==null ?
+                 * e2.getKey()==null : e1.getKey().equals(e2.getKey()))  &&
+                 * (e1.getValue()==null ?
+                 * e2.getValue()==null : e1.getValue().equals(e2.getValue()))
+                 * 
+ * This ensures that the equals method works properly across + * different implementations of the Map.Entry interface. + */ + // @ts-ignore + equals(o: java.lang.Object): boolean; + /** + * Returns the hash code value for this map entry. The hash code + * of a map entry e is defined to be:
+                 * (e.getKey()==null   ? 0 : e.getKey().hashCode()) ^
+                 * (e.getValue()==null ? 0 : e.getValue().hashCode())
+                 * 
+ * This ensures that e1.equals(e2) implies that + * e1.hashCode()==e2.hashCode() for any two Entries + * e1 and e2, as required by the general + * contract of Object.hashCode. + */ + // @ts-ignore + hashCode(): number; + /** + * Returns a comparator that compares {@link Map.Entry} in natural order on key. + *

The returned comparator is serializable and throws {@link + * NullPointerException} when comparing an entry with a null key. + */ + // @ts-ignore + comparingByKey(): java.util.Comparator; + /** + * Returns a comparator that compares {@link Map.Entry} in natural order on value. + *

The returned comparator is serializable and throws {@link + * NullPointerException} when comparing an entry with null values. + */ + // @ts-ignore + comparingByValue(): java.util.Comparator; + /** + * Returns a comparator that compares {@link Map.Entry} by key using the given + * {@link Comparator}. + *

The returned comparator is serializable if the specified comparator + * is also serializable. + */ + // @ts-ignore + comparingByKey(cmp: java.util.Comparator): java.util.Comparator; + /** + * Returns a comparator that compares {@link Map.Entry} by value using the given + * {@link Comparator}. + *

The returned comparator is serializable if the specified comparator + * is also serializable. + */ + // @ts-ignore + comparingByValue(cmp: java.util.Comparator): java.util.Comparator; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Map.d.ts b/packages/types/dist/typings/jdk/java.util.Map.d.ts new file mode 100644 index 00000000..cc5cb358 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Map.d.ts @@ -0,0 +1,273 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + interface Map { + /** + * Returns the number of key-value mappings in this map. If the + * map contains more than Integer.MAX_VALUE elements, returns + * Integer.MAX_VALUE. + */ + // @ts-ignore + size(): number; + /** + * Returns true if this map contains no key-value mappings. + */ + // @ts-ignore + isEmpty(): boolean; + /** + * Returns true if this map contains a mapping for the specified + * key. More formally, returns true if and only if + * this map contains a mapping for a key k such that + * (key==null ? k==null : key.equals(k)). (There can be + * at most one such mapping.) + */ + // @ts-ignore + containsKey(key: java.lang.Object): boolean; + /** + * Returns true if this map maps one or more keys to the + * specified value. More formally, returns true if and only if + * this map contains at least one mapping to a value v such that + * (value==null ? v==null : value.equals(v)). This operation + * will probably require time linear in the map size for most + * implementations of the Map interface. + */ + // @ts-ignore + containsValue(value: java.lang.Object): boolean; + /** + * Returns the value to which the specified key is mapped, + * or {@code null} if this map contains no mapping for the key. + *

More formally, if this map contains a mapping from a key + * {@code k} to a value {@code v} such that {@code (key==null ? k==null : + * key.equals(k))}, then this method returns {@code v}; otherwise + * it returns {@code null}. (There can be at most one such mapping.) + *

If this map permits null values, then a return value of + * {@code null} does not necessarily indicate that the map + * contains no mapping for the key; it's also possible that the map + * explicitly maps the key to {@code null}. The {@link #containsKey + * containsKey} operation may be used to distinguish these two cases. + */ + // @ts-ignore + get(key: java.lang.Object): java.lang.Object; + /** + * Associates the specified value with the specified key in this map + * (optional operation). If the map previously contained a mapping for + * the key, the old value is replaced by the specified value. (A map + * m is said to contain a mapping for a key k if and only + * if {@link #containsKey(Object) m.containsKey(k)} would return + * true.) + */ + // @ts-ignore + put(key: java.lang.Object, value: java.lang.Object): java.lang.Object; + /** + * Removes the mapping for a key from this map if it is present + * (optional operation). More formally, if this map contains a mapping + * from key k to value v such that + * (key==null ? k==null : key.equals(k)), that mapping + * is removed. (The map can contain at most one such mapping.) + *

Returns the value to which this map previously associated the key, + * or null if the map contained no mapping for the key. + *

If this map permits null values, then a return value of + * null does not necessarily indicate that the map + * contained no mapping for the key; it's also possible that the map + * explicitly mapped the key to null. + *

The map will not contain a mapping for the specified key once the + * call returns. + */ + // @ts-ignore + remove(key: java.lang.Object): java.lang.Object; + /** + * Copies all of the mappings from the specified map to this map + * (optional operation). The effect of this call is equivalent to that + * of calling {@link #put(Object,Object) put(k, v)} on this map once + * for each mapping from key k to value v in the + * specified map. The behavior of this operation is undefined if the + * specified map is modified while the operation is in progress. + */ + // @ts-ignore + putAll(m: java.util.Map): void; + /** + * Removes all of the mappings from this map (optional operation). + * The map will be empty after this call returns. + */ + // @ts-ignore + clear(): void; + /** + * Returns a {@link Set} view of the keys contained in this map. + * The set is backed by the map, so changes to the map are + * reflected in the set, and vice-versa. If the map is modified + * while an iteration over the set is in progress (except through + * the iterator's own remove operation), the results of + * the iteration are undefined. The set supports element removal, + * which removes the corresponding mapping from the map, via the + * Iterator.remove, Set.remove, + * removeAll, retainAll, and clear + * operations. It does not support the add or addAll + * operations. + */ + // @ts-ignore + keySet(): java.util.Set; + /** + * Returns a {@link Collection} view of the values contained in this map. + * The collection is backed by the map, so changes to the map are + * reflected in the collection, and vice-versa. If the map is + * modified while an iteration over the collection is in progress + * (except through the iterator's own remove operation), + * the results of the iteration are undefined. The collection + * supports element removal, which removes the corresponding + * mapping from the map, via the Iterator.remove, + * Collection.remove, removeAll, + * retainAll and clear operations. It does not + * support the add or addAll operations. + */ + // @ts-ignore + values(): java.util.Collection; + /** + * Returns a {@link Set} view of the mappings contained in this map. + * The set is backed by the map, so changes to the map are + * reflected in the set, and vice-versa. If the map is modified + * while an iteration over the set is in progress (except through + * the iterator's own remove operation, or through the + * setValue operation on a map entry returned by the + * iterator) the results of the iteration are undefined. The set + * supports element removal, which removes the corresponding + * mapping from the map, via the Iterator.remove, + * Set.remove, removeAll, retainAll and + * clear operations. It does not support the + * add or addAll operations. + */ + // @ts-ignore + entrySet(): java.util.Set; + /** + * Compares the specified object with this map for equality. Returns + * true if the given object is also a map and the two maps + * represent the same mappings. More formally, two maps m1 and + * m2 represent the same mappings if + * m1.entrySet().equals(m2.entrySet()). This ensures that the + * equals method works properly across different implementations + * of the Map interface. + */ + // @ts-ignore + equals(o: java.lang.Object): boolean; + /** + * Returns the hash code value for this map. The hash code of a map is + * defined to be the sum of the hash codes of each entry in the map's + * entrySet() view. This ensures that m1.equals(m2) + * implies that m1.hashCode()==m2.hashCode() for any two maps + * m1 and m2, as required by the general contract of + * {@link Object#hashCode}. + */ + // @ts-ignore + hashCode(): number; + /** + * Returns the value to which the specified key is mapped, or + * {@code defaultValue} if this map contains no mapping for the key. + */ + // @ts-ignore + getOrDefault(key: java.lang.Object, defaultValue: java.lang.Object): java.lang.Object; + /** + * Performs the given action for each entry in this map until all entries + * have been processed or the action throws an exception. Unless + * otherwise specified by the implementing class, actions are performed in + * the order of entry set iteration (if an iteration order is specified.) + * Exceptions thrown by the action are relayed to the caller. + */ + // @ts-ignore + forEach(action: java.util.function$.BiConsumer): void; + /** + * Replaces each entry's value with the result of invoking the given + * function on that entry until all entries have been processed or the + * function throws an exception. Exceptions thrown by the function are + * relayed to the caller. + */ + // @ts-ignore + replaceAll(func: java.util.function$.BiFunction): void; + /** + * If the specified key is not already associated with a value (or is mapped + * to {@code null}) associates it with the given value and returns + * {@code null}, else returns the current value. + */ + // @ts-ignore + putIfAbsent(key: java.lang.Object, value: java.lang.Object): java.lang.Object; + /** + * Removes the entry for the specified key only if it is currently + * mapped to the specified value. + */ + // @ts-ignore + remove(key: java.lang.Object, value: java.lang.Object): boolean; + /** + * Replaces the entry for the specified key only if currently + * mapped to the specified value. + */ + // @ts-ignore + replace(key: java.lang.Object, oldValue: java.lang.Object, newValue: java.lang.Object): boolean; + /** + * Replaces the entry for the specified key only if it is + * currently mapped to some value. + */ + // @ts-ignore + replace(key: java.lang.Object, value: java.lang.Object): java.lang.Object; + /** + * If the specified key is not already associated with a value (or is mapped + * to {@code null}), attempts to compute its value using the given mapping + * function and enters it into this map unless {@code null}. + *

If the function returns {@code null} no mapping is recorded. If + * the function itself throws an (unchecked) exception, the + * exception is rethrown, and no mapping is recorded. The most + * common usage is to construct a new object serving as an initial + * mapped value or memoized result, as in: + *

 {@code
+             * map.computeIfAbsent(key, k -> new Value(f(k)));
+             * }
+ *

Or to implement a multi-value map, {@code Map>}, + * supporting multiple values per key: + *

 {@code
+             * map.computeIfAbsent(key, k -> new HashSet()).add(v);
+             * }
+ */ + // @ts-ignore + computeIfAbsent(key: java.lang.Object, mappingFunction: java.util.function$.Function): java.lang.Object; + /** + * If the value for the specified key is present and non-null, attempts to + * compute a new mapping given the key and its current mapped value. + *

If the function returns {@code null}, the mapping is removed. If the + * function itself throws an (unchecked) exception, the exception is + * rethrown, and the current mapping is left unchanged. + */ + // @ts-ignore + computeIfPresent(key: java.lang.Object, remappingFunction: java.util.function$.BiFunction): java.lang.Object; + /** + * Attempts to compute a mapping for the specified key and its current + * mapped value (or {@code null} if there is no current mapping). For + * example, to either create or append a {@code String} msg to a value + * mapping: + *

 {@code
+             * map.compute(key, (k, v) -> (v == null) ? msg : v.concat(msg))}
+ * (Method {@link #merge merge()} is often simpler to use for such purposes.) + *

If the function returns {@code null}, the mapping is removed (or + * remains absent if initially absent). If the function itself throws an + * (unchecked) exception, the exception is rethrown, and the current mapping + * is left unchanged. + */ + // @ts-ignore + compute(key: java.lang.Object, remappingFunction: java.util.function$.BiFunction): java.lang.Object; + /** + * If the specified key is not already associated with a value or is + * associated with null, associates it with the given non-null value. + * Otherwise, replaces the associated value with the results of the given + * remapping function, or removes if the result is {@code null}. This + * method may be of use when combining multiple mapped values for a key. + * For example, to either create or append a {@code String msg} to a + * value mapping: + *

 {@code
+             * map.merge(key, msg, String::concat)
+             * }
+ *

If the function returns {@code null} the mapping is removed. If the + * function itself throws an (unchecked) exception, the exception is + * rethrown, and the current mapping is left unchanged. + */ + // @ts-ignore + merge(key: java.lang.Object, value: java.lang.Object, remappingFunction: java.util.function$.BiFunction): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.MissingFormatArgumentException.d.ts b/packages/types/dist/typings/jdk/java.util.MissingFormatArgumentException.d.ts new file mode 100644 index 00000000..e78c4e53 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.MissingFormatArgumentException.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class MissingFormatArgumentException extends java.util.IllegalFormatException { + /** + * Constructs an instance of this class with the unmatched format + * specifier. + */ + // @ts-ignore + constructor(s: string) + /** + * Returns the unmatched format specifier. + */ + // @ts-ignore + public getFormatSpecifier(): string; + // @ts-ignore + public getMessage(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.MissingFormatWidthException.d.ts b/packages/types/dist/typings/jdk/java.util.MissingFormatWidthException.d.ts new file mode 100644 index 00000000..2cd549c2 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.MissingFormatWidthException.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class MissingFormatWidthException extends java.util.IllegalFormatException { + /** + * Constructs an instance of this class with the specified format + * specifier. + */ + // @ts-ignore + constructor(s: string) + /** + * Returns the format specifier which does not have a width. + */ + // @ts-ignore + public getFormatSpecifier(): string; + // @ts-ignore + public getMessage(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.MissingResourceException.d.ts b/packages/types/dist/typings/jdk/java.util.MissingResourceException.d.ts new file mode 100644 index 00000000..481a850b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.MissingResourceException.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class MissingResourceException extends java.lang.RuntimeException { + /** + * Constructs a MissingResourceException with the specified information. + * A detail message is a String that describes this particular exception. + */ + // @ts-ignore + constructor(s: string, className: string, key: string) + /** + * Gets parameter passed by constructor. + */ + // @ts-ignore + public getClassName(): string; + /** + * Gets parameter passed by constructor. + */ + // @ts-ignore + public getKey(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.NavigableMap.d.ts b/packages/types/dist/typings/jdk/java.util.NavigableMap.d.ts new file mode 100644 index 00000000..97f6a766 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.NavigableMap.d.ts @@ -0,0 +1,180 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + interface NavigableMap { + /** + * Returns a key-value mapping associated with the greatest key + * strictly less than the given key, or {@code null} if there is + * no such key. + */ + // @ts-ignore + lowerEntry(key: java.lang.Object): java.util.Map.Entry; + /** + * Returns the greatest key strictly less than the given key, or + * {@code null} if there is no such key. + */ + // @ts-ignore + lowerKey(key: java.lang.Object): java.lang.Object; + /** + * Returns a key-value mapping associated with the greatest key + * less than or equal to the given key, or {@code null} if there + * is no such key. + */ + // @ts-ignore + floorEntry(key: java.lang.Object): java.util.Map.Entry; + /** + * Returns the greatest key less than or equal to the given key, + * or {@code null} if there is no such key. + */ + // @ts-ignore + floorKey(key: java.lang.Object): java.lang.Object; + /** + * Returns a key-value mapping associated with the least key + * greater than or equal to the given key, or {@code null} if + * there is no such key. + */ + // @ts-ignore + ceilingEntry(key: java.lang.Object): java.util.Map.Entry; + /** + * Returns the least key greater than or equal to the given key, + * or {@code null} if there is no such key. + */ + // @ts-ignore + ceilingKey(key: java.lang.Object): java.lang.Object; + /** + * Returns a key-value mapping associated with the least key + * strictly greater than the given key, or {@code null} if there + * is no such key. + */ + // @ts-ignore + higherEntry(key: java.lang.Object): java.util.Map.Entry; + /** + * Returns the least key strictly greater than the given key, or + * {@code null} if there is no such key. + */ + // @ts-ignore + higherKey(key: java.lang.Object): java.lang.Object; + /** + * Returns a key-value mapping associated with the least + * key in this map, or {@code null} if the map is empty. + */ + // @ts-ignore + firstEntry(): java.util.Map.Entry; + /** + * Returns a key-value mapping associated with the greatest + * key in this map, or {@code null} if the map is empty. + */ + // @ts-ignore + lastEntry(): java.util.Map.Entry; + /** + * Removes and returns a key-value mapping associated with + * the least key in this map, or {@code null} if the map is empty. + */ + // @ts-ignore + pollFirstEntry(): java.util.Map.Entry; + /** + * Removes and returns a key-value mapping associated with + * the greatest key in this map, or {@code null} if the map is empty. + */ + // @ts-ignore + pollLastEntry(): java.util.Map.Entry; + /** + * Returns a reverse order view of the mappings contained in this map. + * The descending map is backed by this map, so changes to the map are + * reflected in the descending map, and vice-versa. If either map is + * modified while an iteration over a collection view of either map + * is in progress (except through the iterator's own {@code remove} + * operation), the results of the iteration are undefined. + *

The returned map has an ordering equivalent to + * {@link Collections#reverseOrder(Comparator) Collections.reverseOrder}(comparator()). + * The expression {@code m.descendingMap().descendingMap()} returns a + * view of {@code m} essentially equivalent to {@code m}. + */ + // @ts-ignore + descendingMap(): java.util.NavigableMap; + /** + * Returns a {@link NavigableSet} view of the keys contained in this map. + * The set's iterator returns the keys in ascending order. + * The set is backed by the map, so changes to the map are reflected in + * the set, and vice-versa. If the map is modified while an iteration + * over the set is in progress (except through the iterator's own {@code + * remove} operation), the results of the iteration are undefined. The + * set supports element removal, which removes the corresponding mapping + * from the map, via the {@code Iterator.remove}, {@code Set.remove}, + * {@code removeAll}, {@code retainAll}, and {@code clear} operations. + * It does not support the {@code add} or {@code addAll} operations. + */ + // @ts-ignore + navigableKeySet(): java.util.NavigableSet; + /** + * Returns a reverse order {@link NavigableSet} view of the keys contained in this map. + * The set's iterator returns the keys in descending order. + * The set is backed by the map, so changes to the map are reflected in + * the set, and vice-versa. If the map is modified while an iteration + * over the set is in progress (except through the iterator's own {@code + * remove} operation), the results of the iteration are undefined. The + * set supports element removal, which removes the corresponding mapping + * from the map, via the {@code Iterator.remove}, {@code Set.remove}, + * {@code removeAll}, {@code retainAll}, and {@code clear} operations. + * It does not support the {@code add} or {@code addAll} operations. + */ + // @ts-ignore + descendingKeySet(): java.util.NavigableSet; + /** + * Returns a view of the portion of this map whose keys range from + * {@code fromKey} to {@code toKey}. If {@code fromKey} and + * {@code toKey} are equal, the returned map is empty unless + * {@code fromInclusive} and {@code toInclusive} are both true. The + * returned map is backed by this map, so changes in the returned map are + * reflected in this map, and vice-versa. The returned map supports all + * optional map operations that this map supports. + *

The returned map will throw an {@code IllegalArgumentException} + * on an attempt to insert a key outside of its range, or to construct a + * submap either of whose endpoints lie outside its range. + */ + // @ts-ignore + subMap(fromKey: java.lang.Object, fromInclusive: boolean, toKey: java.lang.Object, toInclusive: boolean): java.util.NavigableMap; + /** + * Returns a view of the portion of this map whose keys are less than (or + * equal to, if {@code inclusive} is true) {@code toKey}. The returned + * map is backed by this map, so changes in the returned map are reflected + * in this map, and vice-versa. The returned map supports all optional + * map operations that this map supports. + *

The returned map will throw an {@code IllegalArgumentException} + * on an attempt to insert a key outside its range. + */ + // @ts-ignore + headMap(toKey: java.lang.Object, inclusive: boolean): java.util.NavigableMap; + /** + * Returns a view of the portion of this map whose keys are greater than (or + * equal to, if {@code inclusive} is true) {@code fromKey}. The returned + * map is backed by this map, so changes in the returned map are reflected + * in this map, and vice-versa. The returned map supports all optional + * map operations that this map supports. + *

The returned map will throw an {@code IllegalArgumentException} + * on an attempt to insert a key outside its range. + */ + // @ts-ignore + tailMap(fromKey: java.lang.Object, inclusive: boolean): java.util.NavigableMap; + /** + * {@inheritDoc} + *

Equivalent to {@code subMap(fromKey, true, toKey, false)}. + */ + // @ts-ignore + subMap(fromKey: java.lang.Object, toKey: java.lang.Object): java.util.SortedMap; + /** + * {@inheritDoc} + *

Equivalent to {@code headMap(toKey, false)}. + */ + // @ts-ignore + headMap(toKey: java.lang.Object): java.util.SortedMap; + /** + * {@inheritDoc} + *

Equivalent to {@code tailMap(fromKey, true)}. + */ + // @ts-ignore + tailMap(fromKey: java.lang.Object): java.util.SortedMap; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.NavigableSet.d.ts b/packages/types/dist/typings/jdk/java.util.NavigableSet.d.ts new file mode 100644 index 00000000..d95618d0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.NavigableSet.d.ts @@ -0,0 +1,122 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + interface NavigableSet { + /** + * Returns the greatest element in this set strictly less than the + * given element, or {@code null} if there is no such element. + */ + // @ts-ignore + lower(e: java.lang.Object): java.lang.Object; + /** + * Returns the greatest element in this set less than or equal to + * the given element, or {@code null} if there is no such element. + */ + // @ts-ignore + floor(e: java.lang.Object): java.lang.Object; + /** + * Returns the least element in this set greater than or equal to + * the given element, or {@code null} if there is no such element. + */ + // @ts-ignore + ceiling(e: java.lang.Object): java.lang.Object; + /** + * Returns the least element in this set strictly greater than the + * given element, or {@code null} if there is no such element. + */ + // @ts-ignore + higher(e: java.lang.Object): java.lang.Object; + /** + * Retrieves and removes the first (lowest) element, + * or returns {@code null} if this set is empty. + */ + // @ts-ignore + pollFirst(): java.lang.Object; + /** + * Retrieves and removes the last (highest) element, + * or returns {@code null} if this set is empty. + */ + // @ts-ignore + pollLast(): java.lang.Object; + /** + * Returns an iterator over the elements in this set, in ascending order. + */ + // @ts-ignore + iterator(): java.util.Iterator; + /** + * Returns a reverse order view of the elements contained in this set. + * The descending set is backed by this set, so changes to the set are + * reflected in the descending set, and vice-versa. If either set is + * modified while an iteration over either set is in progress (except + * through the iterator's own {@code remove} operation), the results of + * the iteration are undefined. + *

The returned set has an ordering equivalent to + * {@link Collections#reverseOrder(Comparator) Collections.reverseOrder}(comparator()). + * The expression {@code s.descendingSet().descendingSet()} returns a + * view of {@code s} essentially equivalent to {@code s}. + */ + // @ts-ignore + descendingSet(): java.util.NavigableSet; + /** + * Returns an iterator over the elements in this set, in descending order. + * Equivalent in effect to {@code descendingSet().iterator()}. + */ + // @ts-ignore + descendingIterator(): java.util.Iterator; + /** + * Returns a view of the portion of this set whose elements range from + * {@code fromElement} to {@code toElement}. If {@code fromElement} and + * {@code toElement} are equal, the returned set is empty unless {@code + * fromInclusive} and {@code toInclusive} are both true. The returned set + * is backed by this set, so changes in the returned set are reflected in + * this set, and vice-versa. The returned set supports all optional set + * operations that this set supports. + *

The returned set will throw an {@code IllegalArgumentException} + * on an attempt to insert an element outside its range. + */ + // @ts-ignore + subSet(fromElement: java.lang.Object, fromInclusive: boolean, toElement: java.lang.Object, toInclusive: boolean): java.util.NavigableSet; + /** + * Returns a view of the portion of this set whose elements are less than + * (or equal to, if {@code inclusive} is true) {@code toElement}. The + * returned set is backed by this set, so changes in the returned set are + * reflected in this set, and vice-versa. The returned set supports all + * optional set operations that this set supports. + *

The returned set will throw an {@code IllegalArgumentException} + * on an attempt to insert an element outside its range. + */ + // @ts-ignore + headSet(toElement: java.lang.Object, inclusive: boolean): java.util.NavigableSet; + /** + * Returns a view of the portion of this set whose elements are greater + * than (or equal to, if {@code inclusive} is true) {@code fromElement}. + * The returned set is backed by this set, so changes in the returned set + * are reflected in this set, and vice-versa. The returned set supports + * all optional set operations that this set supports. + *

The returned set will throw an {@code IllegalArgumentException} + * on an attempt to insert an element outside its range. + */ + // @ts-ignore + tailSet(fromElement: java.lang.Object, inclusive: boolean): java.util.NavigableSet; + /** + * {@inheritDoc} + *

Equivalent to {@code subSet(fromElement, true, toElement, false)}. + */ + // @ts-ignore + subSet(fromElement: java.lang.Object, toElement: java.lang.Object): java.util.SortedSet; + /** + * {@inheritDoc} + *

Equivalent to {@code headSet(toElement, false)}. + */ + // @ts-ignore + headSet(toElement: java.lang.Object): java.util.SortedSet; + /** + * {@inheritDoc} + *

Equivalent to {@code tailSet(fromElement, true)}. + */ + // @ts-ignore + tailSet(fromElement: java.lang.Object): java.util.SortedSet; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.NoSuchElementException.d.ts b/packages/types/dist/typings/jdk/java.util.NoSuchElementException.d.ts new file mode 100644 index 00000000..b2e1964e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.NoSuchElementException.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class NoSuchElementException extends java.lang.RuntimeException { + /** + * Constructs a NoSuchElementException with null + * as its error message string. + */ + // @ts-ignore + constructor() + /** + * Constructs a NoSuchElementException, saving a reference + * to the error message string s for later retrieval by the + * getMessage method. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Objects.d.ts b/packages/types/dist/typings/jdk/java.util.Objects.d.ts new file mode 100644 index 00000000..c11c73fe --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Objects.d.ts @@ -0,0 +1,132 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class Objects extends java.lang.Object { + /** + * Returns {@code true} if the arguments are equal to each other + * and {@code false} otherwise. + * Consequently, if both arguments are {@code null}, {@code true} + * is returned and if exactly one argument is {@code null}, {@code + * false} is returned. Otherwise, equality is determined by using + * the {@link Object#equals equals} method of the first + * argument. + */ + // @ts-ignore + public static equals(a: java.lang.Object, b: java.lang.Object): boolean; + /** + * Returns {@code true} if the arguments are deeply equal to each other + * and {@code false} otherwise. + * Two {@code null} values are deeply equal. If both arguments are + * arrays, the algorithm in {@link Arrays#deepEquals(Object[], + * Object[]) Arrays.deepEquals} is used to determine equality. + * Otherwise, equality is determined by using the {@link + * Object#equals equals} method of the first argument. + */ + // @ts-ignore + public static deepEquals(a: java.lang.Object, b: java.lang.Object): boolean; + /** + * Returns the hash code of a non-{@code null} argument and 0 for + * a {@code null} argument. + */ + // @ts-ignore + public static hashCode(o: java.lang.Object): number; + /** + * Generates a hash code for a sequence of input values. The hash + * code is generated as if all the input values were placed into an + * array, and that array were hashed by calling {@link + * Arrays#hashCode(Object[])}. + *

This method is useful for implementing {@link + * Object#hashCode()} on objects containing multiple fields. For + * example, if an object that has three fields, {@code x}, {@code + * y}, and {@code z}, one could write: + *

+             * @Override public int hashCode() {
+             * return Objects.hash(x, y, z);
+             * }
+             * 
+ * Warning: When a single object reference is supplied, the returned + * value does not equal the hash code of that object reference. This + * value can be computed by calling {@link #hashCode(Object)}. + */ + // @ts-ignore + public static hash(values: java.lang.Object): number; + /** + * Returns the result of calling {@code toString} for a non-{@code + * null} argument and {@code "null"} for a {@code null} argument. + */ + // @ts-ignore + public static toString(o: java.lang.Object): string; + /** + * Returns the result of calling {@code toString} on the first + * argument if the first argument is not {@code null} and returns + * the second argument otherwise. + */ + // @ts-ignore + public static toString(o: java.lang.Object, nullDefault: string): string; + /** + * Returns 0 if the arguments are identical and {@code + * c.compare(a, b)} otherwise. + * Consequently, if both arguments are {@code null} 0 + * is returned. + *

Note that if one of the arguments is {@code null}, a {@code + * NullPointerException} may or may not be thrown depending on + * what ordering policy, if any, the {@link Comparator Comparator} + * chooses to have for {@code null} values. + */ + // @ts-ignore + public static compare(a: java.lang.Object, b: java.lang.Object, c: java.util.Comparator): number; + /** + * Checks that the specified object reference is not {@code null}. This + * method is designed primarily for doing parameter validation in methods + * and constructors, as demonstrated below: + *

+             * public Foo(Bar bar) {
+             * this.bar = Objects.requireNonNull(bar);
+             * }
+             * 
+ */ + // @ts-ignore + public static requireNonNull(obj: java.lang.Object): java.lang.Object; + /** + * Checks that the specified object reference is not {@code null} and + * throws a customized {@link NullPointerException} if it is. This method + * is designed primarily for doing parameter validation in methods and + * constructors with multiple parameters, as demonstrated below: + *
+             * public Foo(Bar bar, Baz baz) {
+             * this.bar = Objects.requireNonNull(bar, "bar must not be null");
+             * this.baz = Objects.requireNonNull(baz, "baz must not be null");
+             * }
+             * 
+ */ + // @ts-ignore + public static requireNonNull(obj: java.lang.Object, message: string): java.lang.Object; + /** + * Returns {@code true} if the provided reference is {@code null} otherwise + * returns {@code false}. + */ + // @ts-ignore + public static isNull(obj: java.lang.Object): boolean; + /** + * Returns {@code true} if the provided reference is non-{@code null} + * otherwise returns {@code false}. + */ + // @ts-ignore + public static nonNull(obj: java.lang.Object): boolean; + /** + * Checks that the specified object reference is not {@code null} and + * throws a customized {@link NullPointerException} if it is. + *

Unlike the method {@link #requireNonNull(Object, String)}, + * this method allows creation of the message to be deferred until + * after the null check is made. While this may confer a + * performance advantage in the non-null case, when deciding to + * call this method care should be taken that the costs of + * creating the message supplier are less than the cost of just + * creating the string message directly. + */ + // @ts-ignore + public static requireNonNull(obj: java.lang.Object, messageSupplier: java.util.function$.Supplier): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Observable.d.ts b/packages/types/dist/typings/jdk/java.util.Observable.d.ts new file mode 100644 index 00000000..9280335f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Observable.d.ts @@ -0,0 +1,82 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class Observable extends java.lang.Object { + /** + * Construct an Observable with zero Observers. + */ + // @ts-ignore + constructor() + /** + * Adds an observer to the set of observers for this object, provided + * that it is not the same as some observer already in the set. + * The order in which notifications will be delivered to multiple + * observers is not specified. See the class comment. + */ + // @ts-ignore + public addObserver(o: java.util.Observer): void; + /** + * Deletes an observer from the set of observers of this object. + * Passing null to this method will have no effect. + */ + // @ts-ignore + public deleteObserver(o: java.util.Observer): void; + /** + * If this object has changed, as indicated by the + * hasChanged method, then notify all of its observers + * and then call the clearChanged method to + * indicate that this object has no longer changed. + *

+ * Each observer has its update method called with two + * arguments: this observable object and null. In other + * words, this method is equivalent to: + *

+ * notifyObservers(null)
+ */ + // @ts-ignore + public notifyObservers(): void; + /** + * If this object has changed, as indicated by the + * hasChanged method, then notify all of its observers + * and then call the clearChanged method to indicate + * that this object has no longer changed. + *

+ * Each observer has its update method called with two + * arguments: this observable object and the arg argument. + */ + // @ts-ignore + public notifyObservers(arg: java.lang.Object): void; + /** + * Clears the observer list so that this object no longer has any observers. + */ + // @ts-ignore + public deleteObservers(): void; + /** + * Marks this Observable object as having been changed; the + * hasChanged method will now return true. + */ + // @ts-ignore + protected setChanged(): void; + /** + * Indicates that this object has no longer changed, or that it has + * already notified all of its observers of its most recent change, + * so that the hasChanged method will now return false. + * This method is called automatically by the + * notifyObservers methods. + */ + // @ts-ignore + protected clearChanged(): void; + /** + * Tests if this object has changed. + */ + // @ts-ignore + public hasChanged(): boolean; + /** + * Returns the number of observers of this Observable object. + */ + // @ts-ignore + public countObservers(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Observer.d.ts b/packages/types/dist/typings/jdk/java.util.Observer.d.ts new file mode 100644 index 00000000..1ab041a4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Observer.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + interface Observer { + /** + * This method is called whenever the observed object is changed. An + * application calls an Observable object's + * notifyObservers method to have all the object's + * observers notified of the change. + */ + // @ts-ignore + update(o: java.util.Observable, arg: java.lang.Object): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Optional.d.ts b/packages/types/dist/typings/jdk/java.util.Optional.d.ts new file mode 100644 index 00000000..4de5bfdb --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Optional.d.ts @@ -0,0 +1,107 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class Optional extends java.lang.Object { + /** + * Returns an empty {@code Optional} instance. No value is present for this + * Optional. + */ + // @ts-ignore + public static empty(): java.util.Optional; + /** + * Returns an {@code Optional} with the specified present non-null value. + */ + // @ts-ignore + public static of(value: java.lang.Object): java.util.Optional; + /** + * Returns an {@code Optional} describing the specified value, if non-null, + * otherwise returns an empty {@code Optional}. + */ + // @ts-ignore + public static ofNullable(value: java.lang.Object): java.util.Optional; + /** + * If a value is present in this {@code Optional}, returns the value, + * otherwise throws {@code NoSuchElementException}. + */ + // @ts-ignore + public get(): java.lang.Object; + /** + * Return {@code true} if there is a value present, otherwise {@code false}. + */ + // @ts-ignore + public isPresent(): boolean; + /** + * If a value is present, invoke the specified consumer with the value, + * otherwise do nothing. + */ + // @ts-ignore + public ifPresent(consumer: java.util.function$.Consumer): void; + /** + * If a value is present, and the value matches the given predicate, + * return an {@code Optional} describing the value, otherwise return an + * empty {@code Optional}. + */ + // @ts-ignore + public filter(predicate: java.util.function$.Predicate): java.util.Optional; + /** + * If a value is present, apply the provided mapping function to it, + * and if the result is non-null, return an {@code Optional} describing the + * result. Otherwise return an empty {@code Optional}. + */ + // @ts-ignore + public map(mapper: java.util.function$.Function): java.util.Optional; + /** + * If a value is present, apply the provided {@code Optional}-bearing + * mapping function to it, return that result, otherwise return an empty + * {@code Optional}. This method is similar to {@link #map(Function)}, + * but the provided mapper is one whose result is already an {@code Optional}, + * and if invoked, {@code flatMap} does not wrap it with an additional + * {@code Optional}. + */ + // @ts-ignore + public flatMap(mapper: java.util.function$.Function): java.util.Optional; + /** + * Return the value if present, otherwise return {@code other}. + */ + // @ts-ignore + public orElse(other: java.lang.Object): java.lang.Object; + /** + * Return the value if present, otherwise invoke {@code other} and return + * the result of that invocation. + */ + // @ts-ignore + public orElseGet(other: java.util.function$.Supplier): java.lang.Object; + /** + * Return the contained value, if present, otherwise throw an exception + * to be created by the provided supplier. + */ + // @ts-ignore + public orElseThrow(exceptionSupplier: java.util.function$.Supplier): java.lang.Object; + /** + * Indicates whether some other object is "equal to" this Optional. The + * other object is considered equal if: + *

    + *
  • it is also an {@code Optional} and; + *
  • both instances have no value present or; + *
  • the present values are "equal to" each other via {@code equals()}. + *
+ */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns the hash code value of the present value, if any, or 0 (zero) if + * no value is present. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns a non-empty string representation of this Optional suitable for + * debugging. The exact presentation format is unspecified and may vary + * between implementations and versions. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.OptionalDouble.d.ts b/packages/types/dist/typings/jdk/java.util.OptionalDouble.d.ts new file mode 100644 index 00000000..e34ae0b8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.OptionalDouble.d.ts @@ -0,0 +1,78 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class OptionalDouble extends java.lang.Object { + /** + * Returns an empty {@code OptionalDouble} instance. No value is present for this + * OptionalDouble. + */ + // @ts-ignore + public static empty(): java.util.OptionalDouble; + /** + * Return an {@code OptionalDouble} with the specified value present. + */ + // @ts-ignore + public static of(value: number): java.util.OptionalDouble; + /** + * If a value is present in this {@code OptionalDouble}, returns the value, + * otherwise throws {@code NoSuchElementException}. + */ + // @ts-ignore + public getAsDouble(): number; + /** + * Return {@code true} if there is a value present, otherwise {@code false}. + */ + // @ts-ignore + public isPresent(): boolean; + /** + * Have the specified consumer accept the value if a value is present, + * otherwise do nothing. + */ + // @ts-ignore + public ifPresent(consumer: java.util.function$.DoubleConsumer): void; + /** + * Return the value if present, otherwise return {@code other}. + */ + // @ts-ignore + public orElse(other: number): number; + /** + * Return the value if present, otherwise invoke {@code other} and return + * the result of that invocation. + */ + // @ts-ignore + public orElseGet(other: java.util.function$.DoubleSupplier): number; + /** + * Return the contained value, if present, otherwise throw an exception + * to be created by the provided supplier. + */ + // @ts-ignore + public orElseThrow(exceptionSupplier: java.util.function$.Supplier): number; + /** + * Indicates whether some other object is "equal to" this OptionalDouble. The + * other object is considered equal if: + *
    + *
  • it is also an {@code OptionalDouble} and; + *
  • both instances have no value present or; + *
  • the present values are "equal to" each other via {@code Double.compare() == 0}. + *
+ */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns the hash code value of the present value, if any, or 0 (zero) if + * no value is present. + */ + // @ts-ignore + public hashCode(): number; + /** + * {@inheritDoc} + * Returns a non-empty string representation of this object suitable for + * debugging. The exact presentation format is unspecified and may vary + * between implementations and versions. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.OptionalInt.d.ts b/packages/types/dist/typings/jdk/java.util.OptionalInt.d.ts new file mode 100644 index 00000000..406cac25 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.OptionalInt.d.ts @@ -0,0 +1,78 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class OptionalInt extends java.lang.Object { + /** + * Returns an empty {@code OptionalInt} instance. No value is present for this + * OptionalInt. + */ + // @ts-ignore + public static empty(): java.util.OptionalInt; + /** + * Return an {@code OptionalInt} with the specified value present. + */ + // @ts-ignore + public static of(value: number): java.util.OptionalInt; + /** + * If a value is present in this {@code OptionalInt}, returns the value, + * otherwise throws {@code NoSuchElementException}. + */ + // @ts-ignore + public getAsInt(): number; + /** + * Return {@code true} if there is a value present, otherwise {@code false}. + */ + // @ts-ignore + public isPresent(): boolean; + /** + * Have the specified consumer accept the value if a value is present, + * otherwise do nothing. + */ + // @ts-ignore + public ifPresent(consumer: java.util.function$.IntConsumer): void; + /** + * Return the value if present, otherwise return {@code other}. + */ + // @ts-ignore + public orElse(other: number): number; + /** + * Return the value if present, otherwise invoke {@code other} and return + * the result of that invocation. + */ + // @ts-ignore + public orElseGet(other: java.util.function$.IntSupplier): number; + /** + * Return the contained value, if present, otherwise throw an exception + * to be created by the provided supplier. + */ + // @ts-ignore + public orElseThrow(exceptionSupplier: java.util.function$.Supplier): number; + /** + * Indicates whether some other object is "equal to" this OptionalInt. The + * other object is considered equal if: + *
    + *
  • it is also an {@code OptionalInt} and; + *
  • both instances have no value present or; + *
  • the present values are "equal to" each other via {@code ==}. + *
+ */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns the hash code value of the present value, if any, or 0 (zero) if + * no value is present. + */ + // @ts-ignore + public hashCode(): number; + /** + * {@inheritDoc} + * Returns a non-empty string representation of this object suitable for + * debugging. The exact presentation format is unspecified and may vary + * between implementations and versions. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.OptionalLong.d.ts b/packages/types/dist/typings/jdk/java.util.OptionalLong.d.ts new file mode 100644 index 00000000..44d7a93b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.OptionalLong.d.ts @@ -0,0 +1,78 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class OptionalLong extends java.lang.Object { + /** + * Returns an empty {@code OptionalLong} instance. No value is present for this + * OptionalLong. + */ + // @ts-ignore + public static empty(): java.util.OptionalLong; + /** + * Return an {@code OptionalLong} with the specified value present. + */ + // @ts-ignore + public static of(value: number): java.util.OptionalLong; + /** + * If a value is present in this {@code OptionalLong}, returns the value, + * otherwise throws {@code NoSuchElementException}. + */ + // @ts-ignore + public getAsLong(): number; + /** + * Return {@code true} if there is a value present, otherwise {@code false}. + */ + // @ts-ignore + public isPresent(): boolean; + /** + * Have the specified consumer accept the value if a value is present, + * otherwise do nothing. + */ + // @ts-ignore + public ifPresent(consumer: java.util.function$.LongConsumer): void; + /** + * Return the value if present, otherwise return {@code other}. + */ + // @ts-ignore + public orElse(other: number): number; + /** + * Return the value if present, otherwise invoke {@code other} and return + * the result of that invocation. + */ + // @ts-ignore + public orElseGet(other: java.util.function$.LongSupplier): number; + /** + * Return the contained value, if present, otherwise throw an exception + * to be created by the provided supplier. + */ + // @ts-ignore + public orElseThrow(exceptionSupplier: java.util.function$.Supplier): number; + /** + * Indicates whether some other object is "equal to" this OptionalLong. The + * other object is considered equal if: + *
    + *
  • it is also an {@code OptionalLong} and; + *
  • both instances have no value present or; + *
  • the present values are "equal to" each other via {@code ==}. + *
+ */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns the hash code value of the present value, if any, or 0 (zero) if + * no value is present. + */ + // @ts-ignore + public hashCode(): number; + /** + * {@inheritDoc} + * Returns a non-empty string representation of this object suitable for + * debugging. The exact presentation format is unspecified and may vary + * between implementations and versions. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.PrimitiveIterator.OfDouble.d.ts b/packages/types/dist/typings/jdk/java.util.PrimitiveIterator.OfDouble.d.ts new file mode 100644 index 00000000..b475909f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.PrimitiveIterator.OfDouble.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace PrimitiveIterator { + // @ts-ignore + interface OfDouble { + /** + * Returns the next {@code double} element in the iteration. + */ + // @ts-ignore + nextDouble(): number; + /** + * Performs the given action for each remaining element until all elements + * have been processed or the action throws an exception. Actions are + * performed in the order of iteration, if that order is specified. + * Exceptions thrown by the action are relayed to the caller. + */ + // @ts-ignore + forEachRemaining(action: java.util.function$.DoubleConsumer): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + next(): java.lang.Double; + /** + * {@inheritDoc} + */ + // @ts-ignore + forEachRemaining(action: java.util.function$.Consumer): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.PrimitiveIterator.OfInt.d.ts b/packages/types/dist/typings/jdk/java.util.PrimitiveIterator.OfInt.d.ts new file mode 100644 index 00000000..af82372f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.PrimitiveIterator.OfInt.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace PrimitiveIterator { + // @ts-ignore + interface OfInt { + /** + * Returns the next {@code int} element in the iteration. + */ + // @ts-ignore + nextInt(): number; + /** + * Performs the given action for each remaining element until all elements + * have been processed or the action throws an exception. Actions are + * performed in the order of iteration, if that order is specified. + * Exceptions thrown by the action are relayed to the caller. + */ + // @ts-ignore + forEachRemaining(action: java.util.function$.IntConsumer): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + next(): java.lang.Integer; + /** + * {@inheritDoc} + */ + // @ts-ignore + forEachRemaining(action: java.util.function$.Consumer): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.PrimitiveIterator.OfLong.d.ts b/packages/types/dist/typings/jdk/java.util.PrimitiveIterator.OfLong.d.ts new file mode 100644 index 00000000..fa568158 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.PrimitiveIterator.OfLong.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace PrimitiveIterator { + // @ts-ignore + interface OfLong { + /** + * Returns the next {@code long} element in the iteration. + */ + // @ts-ignore + nextLong(): number; + /** + * Performs the given action for each remaining element until all elements + * have been processed or the action throws an exception. Actions are + * performed in the order of iteration, if that order is specified. + * Exceptions thrown by the action are relayed to the caller. + */ + // @ts-ignore + forEachRemaining(action: java.util.function$.LongConsumer): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + next(): java.lang.Long; + /** + * {@inheritDoc} + */ + // @ts-ignore + forEachRemaining(action: java.util.function$.Consumer): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.PrimitiveIterator.d.ts b/packages/types/dist/typings/jdk/java.util.PrimitiveIterator.d.ts new file mode 100644 index 00000000..d51425df --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.PrimitiveIterator.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + interface PrimitiveIterator { + /** + * Performs the given action for each remaining element, in the order + * elements occur when iterating, until all elements have been processed + * or the action throws an exception. Errors or runtime exceptions + * thrown by the action are relayed to the caller. + */ + // @ts-ignore + forEachRemaining(action: java.lang.Object): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.PriorityQueue.d.ts b/packages/types/dist/typings/jdk/java.util.PriorityQueue.d.ts new file mode 100644 index 00000000..d59bd0e6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.PriorityQueue.d.ts @@ -0,0 +1,157 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class PriorityQueue extends java.util.AbstractQueue { + /** + * Creates a {@code PriorityQueue} with the default initial + * capacity (11) that orders its elements according to their + * {@linkplain Comparable natural ordering}. + */ + // @ts-ignore + constructor() + /** + * Creates a {@code PriorityQueue} with the specified initial + * capacity that orders its elements according to their + * {@linkplain Comparable natural ordering}. + */ + // @ts-ignore + constructor(initialCapacity: number) + /** + * Creates a {@code PriorityQueue} with the default initial capacity and + * whose elements are ordered according to the specified comparator. + */ + // @ts-ignore + constructor(comparator: java.util.Comparator) + /** + * Creates a {@code PriorityQueue} with the specified initial capacity + * that orders its elements according to the specified comparator. + */ + // @ts-ignore + constructor(initialCapacity: number, comparator: java.util.Comparator) + /** + * Creates a {@code PriorityQueue} containing the elements in the + * specified collection. If the specified collection is an instance of + * a {@link SortedSet} or is another {@code PriorityQueue}, this + * priority queue will be ordered according to the same ordering. + * Otherwise, this priority queue will be ordered according to the + * {@linkplain Comparable natural ordering} of its elements. + */ + // @ts-ignore + constructor(c: java.util.Collection) + /** + * Creates a {@code PriorityQueue} containing the elements in the + * specified priority queue. This priority queue will be + * ordered according to the same ordering as the given priority + * queue. + */ + // @ts-ignore + constructor(c: java.util.PriorityQueue) + /** + * Creates a {@code PriorityQueue} containing the elements in the + * specified sorted set. This priority queue will be ordered + * according to the same ordering as the given sorted set. + */ + // @ts-ignore + constructor(c: java.util.SortedSet) + /** + * Inserts the specified element into this priority queue. + */ + // @ts-ignore + public add(e: java.lang.Object): boolean; + /** + * Inserts the specified element into this priority queue. + */ + // @ts-ignore + public offer(e: java.lang.Object): boolean; + // @ts-ignore + public peek(): java.lang.Object; + /** + * Removes a single instance of the specified element from this queue, + * if it is present. More formally, removes an element {@code e} such + * that {@code o.equals(e)}, if this queue contains one or more such + * elements. Returns {@code true} if and only if this queue contained + * the specified element (or equivalently, if this queue changed as a + * result of the call). + */ + // @ts-ignore + public remove(o: java.lang.Object): boolean; + /** + * Returns {@code true} if this queue contains the specified element. + * More formally, returns {@code true} if and only if this queue contains + * at least one element {@code e} such that {@code o.equals(e)}. + */ + // @ts-ignore + public contains(o: java.lang.Object): boolean; + /** + * Returns an array containing all of the elements in this queue. + * The elements are in no particular order. + *

The returned array will be "safe" in that no references to it are + * maintained by this queue. (In other words, this method must allocate + * a new array). The caller is thus free to modify the returned array. + *

This method acts as bridge between array-based and collection-based + * APIs. + */ + // @ts-ignore + public toArray(): java.lang.Object[]; + /** + * Returns an array containing all of the elements in this queue; the + * runtime type of the returned array is that of the specified array. + * The returned array elements are in no particular order. + * If the queue fits in the specified array, it is returned therein. + * Otherwise, a new array is allocated with the runtime type of the + * specified array and the size of this queue. + *

If the queue fits in the specified array with room to spare + * (i.e., the array has more elements than the queue), the element in + * the array immediately following the end of the collection is set to + * {@code null}. + *

Like the {@link #toArray()} method, this method acts as bridge between + * array-based and collection-based APIs. Further, this method allows + * precise control over the runtime type of the output array, and may, + * under certain circumstances, be used to save allocation costs. + *

Suppose {@code x} is a queue known to contain only strings. + * The following code can be used to dump the queue into a newly + * allocated array of {@code String}: + *

 {@code String[] y = x.toArray(new String[0]);}
+ * Note that {@code toArray(new Object[0])} is identical in function to + * {@code toArray()}. + */ + // @ts-ignore + public toArray(a: java.lang.Object): java.lang.Object[]; + /** + * Returns an iterator over the elements in this queue. The iterator + * does not return the elements in any particular order. + */ + // @ts-ignore + public iterator(): java.util.Iterator; + // @ts-ignore + public size(): number; + /** + * Removes all of the elements from this priority queue. + * The queue will be empty after this call returns. + */ + // @ts-ignore + public clear(): void; + // @ts-ignore + public poll(): java.lang.Object; + /** + * Returns the comparator used to order the elements in this + * queue, or {@code null} if this queue is sorted according to + * the {@linkplain Comparable natural ordering} of its elements. + */ + // @ts-ignore + public comparator(): java.util.Comparator; + /** + * Creates a late-binding + * and fail-fast {@link Spliterator} over the elements in this + * queue. + *

The {@code Spliterator} reports {@link Spliterator#SIZED}, + * {@link Spliterator#SUBSIZED}, and {@link Spliterator#NONNULL}. + * Overriding implementations should document the reporting of additional + * characteristic values. + */ + // @ts-ignore + public spliterator(): java.util.Spliterator; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Properties.d.ts b/packages/types/dist/typings/jdk/java.util.Properties.d.ts new file mode 100644 index 00000000..4bb9453f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Properties.d.ts @@ -0,0 +1,339 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class Properties extends java.util.Hashtable { + /** + * Creates an empty property list with no default values. + */ + // @ts-ignore + constructor() + /** + * Creates an empty property list with the specified defaults. + */ + // @ts-ignore + constructor(defaults: java.util.Properties) + // @ts-ignore + protected defaults: java.util.Properties; + /** + * Calls the Hashtable method {@code put}. Provided for + * parallelism with the getProperty method. Enforces use of + * strings for property keys and values. The value returned is the + * result of the Hashtable call to {@code put}. + */ + // @ts-ignore + public setProperty(key: string, value: string): java.lang.Object; + /** + * Reads a property list (key and element pairs) from the input + * character stream in a simple line-oriented format. + *

+ * Properties are processed in terms of lines. There are two + * kinds of line, natural lines and logical lines. + * A natural line is defined as a line of + * characters that is terminated either by a set of line terminator + * characters ({@code \n} or {@code \r} or {@code \r\n}) + * or by the end of the stream. A natural line may be either a blank line, + * a comment line, or hold all or some of a key-element pair. A logical + * line holds all the data of a key-element pair, which may be spread + * out across several adjacent natural lines by escaping + * the line terminator sequence with a backslash character + * {@code \}. Note that a comment line cannot be extended + * in this manner; every natural line that is a comment must have + * its own comment indicator, as described below. Lines are read from + * input until the end of the stream is reached. + *

+ * A natural line that contains only white space characters is + * considered blank and is ignored. A comment line has an ASCII + * {@code '#'} or {@code '!'} as its first non-white + * space character; comment lines are also ignored and do not + * encode key-element information. In addition to line + * terminators, this format considers the characters space + * ({@code ' '}, {@code '\u0020'}), tab + * ({@code '\t'}, {@code '\u0009'}), and form feed + * ({@code '\f'}, {@code '\u000C'}) to be white + * space. + *

+ * If a logical line is spread across several natural lines, the + * backslash escaping the line terminator sequence, the line + * terminator sequence, and any white space at the start of the + * following line have no affect on the key or element values. + * The remainder of the discussion of key and element parsing + * (when loading) will assume all the characters constituting + * the key and element appear on a single natural line after + * line continuation characters have been removed. Note that + * it is not sufficient to only examine the character + * preceding a line terminator sequence to decide if the line + * terminator is escaped; there must be an odd number of + * contiguous backslashes for the line terminator to be escaped. + * Since the input is processed from left to right, a + * non-zero even number of 2n contiguous backslashes + * before a line terminator (or elsewhere) encodes n + * backslashes after escape processing. + *

+ * The key contains all of the characters in the line starting + * with the first non-white space character and up to, but not + * including, the first unescaped {@code '='}, + * {@code ':'}, or white space character other than a line + * terminator. All of these key termination characters may be + * included in the key by escaping them with a preceding backslash + * character; for example,

+ * {@code \:\=}

+ * would be the two-character key {@code ":="}. Line + * terminator characters can be included using {@code \r} and + * {@code \n} escape sequences. Any white space after the + * key is skipped; if the first non-white space character after + * the key is {@code '='} or {@code ':'}, then it is + * ignored and any white space characters after it are also + * skipped. All remaining characters on the line become part of + * the associated element string; if there are no remaining + * characters, the element is the empty string + * {@code ""}. Once the raw character sequences + * constituting the key and element are identified, escape + * processing is performed as described above. + *

+ * As an example, each of the following three lines specifies the key + * {@code "Truth"} and the associated element value + * {@code "Beauty"}: + *

+             * Truth = Beauty
+             * Truth:Beauty
+             * Truth                    :Beauty
+             * 
+ * As another example, the following three lines specify a single + * property: + *
+             * fruits                           apple, banana, pear, \
+             * cantaloupe, watermelon, \
+             * kiwi, mango
+             * 
+ * The key is {@code "fruits"} and the associated element is: + *
"apple, banana, pear, cantaloupe, watermelon, kiwi, mango"
+ * Note that a space appears before each {@code \} so that a space + * will appear after each comma in the final result; the {@code \}, + * line terminator, and leading white space on the continuation line are + * merely discarded and are not replaced by one or more other + * characters. + *

+ * As a third example, the line: + *

cheeses
+             * 
+ * specifies that the key is {@code "cheeses"} and the associated + * element is the empty string {@code ""}. + *

+ * + * Characters in keys and elements can be represented in escape + * sequences similar to those used for character and string literals + * (see sections 3.3 and 3.10.6 of + * The Java™ Language Specification). + * The differences from the character escape sequences and Unicode + * escapes used for characters and strings are: + *

    + *
  • Octal escapes are not recognized. + *
  • The character sequence {@code \b} does not + * represent a backspace character. + *
  • The method does not treat a backslash character, + * {@code \}, before a non-valid escape character as an + * error; the backslash is silently dropped. For example, in a + * Java string the sequence {@code "\z"} would cause a + * compile time error. In contrast, this method silently drops + * the backslash. Therefore, this method treats the two character + * sequence {@code "\b"} as equivalent to the single + * character {@code 'b'}. + *
  • Escapes are not necessary for single and double quotes; + * however, by the rule above, single and double quote characters + * preceded by a backslash still yield single and double quote + * characters, respectively. + *
  • Only a single 'u' character is allowed in a Unicode escape + * sequence. + *
+ *

+ * The specified stream remains open after this method returns. + */ + // @ts-ignore + public load(reader: java.io.Reader): void; + /** + * Reads a property list (key and element pairs) from the input + * byte stream. The input stream is in a simple line-oriented + * format as specified in + * {@link #load(java.io.Reader) load(Reader)} and is assumed to use + * the ISO 8859-1 character encoding; that is each byte is one Latin1 + * character. Characters not in Latin1, and certain special characters, + * are represented in keys and elements using Unicode escapes as defined in + * section 3.3 of + * The Java™ Language Specification. + *

+ * The specified stream remains open after this method returns. + */ + // @ts-ignore + public load(inStream: java.io.InputStream): void; + /** + * Calls the {@code store(OutputStream out, String comments)} method + * and suppresses IOExceptions that were thrown. + */ + // @ts-ignore + public save(out: java.io.OutputStream, comments: string): void; + /** + * Writes this property list (key and element pairs) in this + * {@code Properties} table to the output character stream in a + * format suitable for using the {@link #load(java.io.Reader) load(Reader)} + * method. + *

+ * Properties from the defaults table of this {@code Properties} + * table (if any) are not written out by this method. + *

+ * If the comments argument is not null, then an ASCII {@code #} + * character, the comments string, and a line separator are first written + * to the output stream. Thus, the {@code comments} can serve as an + * identifying comment. Any one of a line feed ('\n'), a carriage + * return ('\r'), or a carriage return followed immediately by a line feed + * in comments is replaced by a line separator generated by the {@code Writer} + * and if the next character in comments is not character {@code #} or + * character {@code !} then an ASCII {@code #} is written out + * after that line separator. + *

+ * Next, a comment line is always written, consisting of an ASCII + * {@code #} character, the current date and time (as if produced + * by the {@code toString} method of {@code Date} for the + * current time), and a line separator as generated by the {@code Writer}. + *

+ * Then every entry in this {@code Properties} table is + * written out, one per line. For each entry the key string is + * written, then an ASCII {@code =}, then the associated + * element string. For the key, all space characters are + * written with a preceding {@code \} character. For the + * element, leading space characters, but not embedded or trailing + * space characters, are written with a preceding {@code \} + * character. The key and element characters {@code #}, + * {@code !}, {@code =}, and {@code :} are written + * with a preceding backslash to ensure that they are properly loaded. + *

+ * After the entries have been written, the output stream is flushed. + * The output stream remains open after this method returns. + *

+ */ + // @ts-ignore + public store(writer: java.io.Writer, comments: string): void; + /** + * Writes this property list (key and element pairs) in this + * {@code Properties} table to the output stream in a format suitable + * for loading into a {@code Properties} table using the + * {@link #load(InputStream) load(InputStream)} method. + *

+ * Properties from the defaults table of this {@code Properties} + * table (if any) are not written out by this method. + *

+ * This method outputs the comments, properties keys and values in + * the same format as specified in + * {@link #store(java.io.Writer, java.lang.String) store(Writer)}, + * with the following differences: + *

    + *
  • The stream is written using the ISO 8859-1 character encoding. + *
  • Characters not in Latin-1 in the comments are written as + * {@code \u}xxxx for their appropriate unicode + * hexadecimal value xxxx. + *
  • Characters less than {@code \u0020} and characters greater + * than {@code \u007E} in property keys or values are written + * as {@code \u}xxxx for the appropriate hexadecimal + * value xxxx. + *
+ *

+ * After the entries have been written, the output stream is flushed. + * The output stream remains open after this method returns. + *

+ */ + // @ts-ignore + public store(out: java.io.OutputStream, comments: string): void; + /** + * Loads all of the properties represented by the XML document on the + * specified input stream into this properties table. + *

The XML document must have the following DOCTYPE declaration: + *

+             * <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
+             * 
+ * Furthermore, the document must satisfy the properties DTD described + * above. + *

An implementation is required to read XML documents that use the + * "{@code UTF-8}" or "{@code UTF-16}" encoding. An implementation may + * support additional encodings. + *

The specified stream is closed after this method returns. + */ + // @ts-ignore + public loadFromXML(input: java.io.InputStream): void; + /** + * Emits an XML document representing all of the properties contained + * in this table. + *

An invocation of this method of the form props.storeToXML(os, + * comment) behaves in exactly the same way as the invocation + * props.storeToXML(os, comment, "UTF-8");. + */ + // @ts-ignore + public storeToXML(os: java.io.OutputStream, comment: string): void; + /** + * Emits an XML document representing all of the properties contained + * in this table, using the specified encoding. + *

The XML document will have the following DOCTYPE declaration: + *

+             * <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
+             * 
+ *

If the specified comment is {@code null} then no comment + * will be stored in the document. + *

An implementation is required to support writing of XML documents + * that use the "{@code UTF-8}" or "{@code UTF-16}" encoding. An + * implementation may support additional encodings. + *

The specified stream remains open after this method returns. + */ + // @ts-ignore + public storeToXML(os: java.io.OutputStream, comment: string, encoding: string): void; + /** + * Searches for the property with the specified key in this property list. + * If the key is not found in this property list, the default property list, + * and its defaults, recursively, are then checked. The method returns + * {@code null} if the property is not found. + */ + // @ts-ignore + public getProperty(key: string): string; + /** + * Searches for the property with the specified key in this property list. + * If the key is not found in this property list, the default property list, + * and its defaults, recursively, are then checked. The method returns the + * default value argument if the property is not found. + */ + // @ts-ignore + public getProperty(key: string, defaultValue: string): string; + /** + * Returns an enumeration of all the keys in this property list, + * including distinct keys in the default property list if a key + * of the same name has not already been found from the main + * properties list. + */ + // @ts-ignore + public propertyNames(): java.util.Enumeration; + /** + * Returns a set of keys in this property list where + * the key and its corresponding value are strings, + * including distinct keys in the default property list if a key + * of the same name has not already been found from the main + * properties list. Properties whose key or value is not + * of type String are omitted. + *

+ * The returned set is not backed by the Properties object. + * Changes to this Properties are not reflected in the set, + * or vice versa. + */ + // @ts-ignore + public stringPropertyNames(): java.util.Set; + /** + * Prints this property list out to the specified output stream. + * This method is useful for debugging. + */ + // @ts-ignore + public list(out: java.io.PrintStream): void; + /** + * Prints this property list out to the specified output stream. + * This method is useful for debugging. + */ + // @ts-ignore + public list(out: java.io.PrintWriter): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.PropertyPermission.d.ts b/packages/types/dist/typings/jdk/java.util.PropertyPermission.d.ts new file mode 100644 index 00000000..a56c6922 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.PropertyPermission.d.ts @@ -0,0 +1,63 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class PropertyPermission extends java.security.BasicPermission { + /** + * Creates a new PropertyPermission object with the specified name. + * The name is the name of the system property, and + * actions contains a comma-separated list of the + * desired actions granted on the property. Possible actions are + * "read" and "write". + */ + // @ts-ignore + constructor(name: string, actions: string) + /** + * Checks if this PropertyPermission object "implies" the specified + * permission. + *

+ * More specifically, this method returns true if: + *

    + *
  • p is an instanceof PropertyPermission, + *
  • p's actions are a subset of this + * object's actions, and + *
  • p's name is implied by this object's + * name. For example, "java.*" implies "java.home". + *
+ */ + // @ts-ignore + public implies(p: java.security.Permission): boolean; + /** + * Checks two PropertyPermission objects for equality. Checks that obj is + * a PropertyPermission, and has the same name and actions as this object. + *

+ */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns the hash code value for this object. + * The hash code used is the hash code of this permissions name, that is, + * getName().hashCode(), where getName is + * from the Permission superclass. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns the "canonical string representation" of the actions. + * That is, this method always returns present actions in the following order: + * read, write. For example, if this PropertyPermission object + * allows both write and read actions, a call to getActions + * will return the string "read,write". + */ + // @ts-ignore + public getActions(): string; + /** + * Returns a new PermissionCollection object for storing + * PropertyPermission objects. + *

+ */ + // @ts-ignore + public newPermissionCollection(): java.security.PermissionCollection; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.PropertyResourceBundle.d.ts b/packages/types/dist/typings/jdk/java.util.PropertyResourceBundle.d.ts new file mode 100644 index 00000000..90b8a8b2 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.PropertyResourceBundle.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class PropertyResourceBundle extends java.util.ResourceBundle { + /** + * Creates a property resource bundle from an {@link java.io.InputStream + * InputStream}. The property file read with this constructor + * must be encoded in ISO-8859-1. + */ + // @ts-ignore + constructor(stream: java.io.InputStream) + /** + * Creates a property resource bundle from a {@link java.io.Reader + * Reader}. Unlike the constructor + * {@link #PropertyResourceBundle(java.io.InputStream) PropertyResourceBundle(InputStream)}, + * there is no limitation as to the encoding of the input property file. + */ + // @ts-ignore + constructor(reader: java.io.Reader) + // @ts-ignore + public handleGetObject(key: string): java.lang.Object; + /** + * Returns an Enumeration of the keys contained in + * this ResourceBundle and its parent bundles. + */ + // @ts-ignore + public getKeys(): java.util.Enumeration; + /** + * Returns a Set of the keys contained + * only in this ResourceBundle. + */ + // @ts-ignore + protected handleKeySet(): java.util.Set; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Queue.d.ts b/packages/types/dist/typings/jdk/java.util.Queue.d.ts new file mode 100644 index 00000000..c7e45748 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Queue.d.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + interface Queue { + /** + * Inserts the specified element into this queue if it is possible to do so + * immediately without violating capacity restrictions, returning + * {@code true} upon success and throwing an {@code IllegalStateException} + * if no space is currently available. + */ + // @ts-ignore + add(e: java.lang.Object): boolean; + /** + * Inserts the specified element into this queue if it is possible to do + * so immediately without violating capacity restrictions. + * When using a capacity-restricted queue, this method is generally + * preferable to {@link #add}, which can fail to insert an element only + * by throwing an exception. + */ + // @ts-ignore + offer(e: java.lang.Object): boolean; + /** + * Retrieves and removes the head of this queue. This method differs + * from {@link #poll poll} only in that it throws an exception if this + * queue is empty. + */ + // @ts-ignore + remove(): java.lang.Object; + /** + * Retrieves and removes the head of this queue, + * or returns {@code null} if this queue is empty. + */ + // @ts-ignore + poll(): java.lang.Object; + /** + * Retrieves, but does not remove, the head of this queue. This method + * differs from {@link #peek peek} only in that it throws an exception + * if this queue is empty. + */ + // @ts-ignore + element(): java.lang.Object; + /** + * Retrieves, but does not remove, the head of this queue, + * or returns {@code null} if this queue is empty. + */ + // @ts-ignore + peek(): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Random.d.ts b/packages/types/dist/typings/jdk/java.util.Random.d.ts new file mode 100644 index 00000000..88f07dcd --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Random.d.ts @@ -0,0 +1,464 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class Random extends java.lang.Object { + /** + * Creates a new random number generator. This constructor sets + * the seed of the random number generator to a value very likely + * to be distinct from any other invocation of this constructor. + */ + // @ts-ignore + constructor() + /** + * Creates a new random number generator using a single {@code long} seed. + * The seed is the initial value of the internal state of the pseudorandom + * number generator which is maintained by method {@link #next}. + *

The invocation {@code new Random(seed)} is equivalent to: + *

 {@code
+             * Random rnd = new Random();
+             * rnd.setSeed(seed);}
+ */ + // @ts-ignore + constructor(seed: number) + /** + * Sets the seed of this random number generator using a single + * {@code long} seed. The general contract of {@code setSeed} is + * that it alters the state of this random number generator object + * so as to be in exactly the same state as if it had just been + * created with the argument {@code seed} as a seed. The method + * {@code setSeed} is implemented by class {@code Random} by + * atomically updating the seed to + *
{@code (seed ^ 0x5DEECE66DL) & ((1L << 48) - 1)}
+ * and clearing the {@code haveNextNextGaussian} flag used by {@link + * #nextGaussian}. + *

The implementation of {@code setSeed} by class {@code Random} + * happens to use only 48 bits of the given seed. In general, however, + * an overriding method may use all 64 bits of the {@code long} + * argument as a seed value. + */ + // @ts-ignore + public setSeed(seed: number): void; + /** + * Generates the next pseudorandom number. Subclasses should + * override this, as this is used by all other methods. + *

The general contract of {@code next} is that it returns an + * {@code int} value and if the argument {@code bits} is between + * {@code 1} and {@code 32} (inclusive), then that many low-order + * bits of the returned value will be (approximately) independently + * chosen bit values, each of which is (approximately) equally + * likely to be {@code 0} or {@code 1}. The method {@code next} is + * implemented by class {@code Random} by atomically updating the seed to + *

{@code (seed * 0x5DEECE66DL + 0xBL) & ((1L << 48) - 1)}
+ * and returning + *
{@code (int)(seed >>> (48 - bits))}.
+ * This is a linear congruential pseudorandom number generator, as + * defined by D. H. Lehmer and described by Donald E. Knuth in + * The Art of Computer Programming, Volume 3: + * Seminumerical Algorithms, section 3.2.1. + */ + // @ts-ignore + protected next(bits: number): number; + /** + * Generates random bytes and places them into a user-supplied + * byte array. The number of random bytes produced is equal to + * the length of the byte array. + *

The method {@code nextBytes} is implemented by class {@code Random} + * as if by: + *

 {@code
+             * public void nextBytes(byte[] bytes) {
+             * for (int i = 0; i < bytes.length; )
+             * for (int rnd = nextInt(), n = Math.min(bytes.length - i, 4);
+             * n-- > 0; rnd >>= 8)
+             * bytes[i++] = (byte)rnd;
+             * }}
+ */ + // @ts-ignore + public nextBytes(bytes: number): void; + /** + * Returns the next pseudorandom, uniformly distributed {@code int} + * value from this random number generator's sequence. The general + * contract of {@code nextInt} is that one {@code int} value is + * pseudorandomly generated and returned. All 232 possible + * {@code int} values are produced with (approximately) equal probability. + *

The method {@code nextInt} is implemented by class {@code Random} + * as if by: + *

 {@code
+             * public int nextInt() {
+             * return next(32);
+             * }}
+ */ + // @ts-ignore + public nextInt(): number; + /** + * Returns a pseudorandom, uniformly distributed {@code int} value + * between 0 (inclusive) and the specified value (exclusive), drawn from + * this random number generator's sequence. The general contract of + * {@code nextInt} is that one {@code int} value in the specified range + * is pseudorandomly generated and returned. All {@code bound} possible + * {@code int} values are produced with (approximately) equal + * probability. The method {@code nextInt(int bound)} is implemented by + * class {@code Random} as if by: + *
 {@code
+             * public int nextInt(int bound) {
+             * if (bound <= 0)
+             * throw new IllegalArgumentException("bound must be positive");
+             * if ((bound & -bound) == bound)  // i.e., bound is a power of 2
+             * return (int)((bound * (long)next(31)) >> 31);
+             * int bits, val;
+             * do {
+             * bits = next(31);
+             * val = bits % bound;
+             * } while (bits - val + (bound-1) < 0);
+             * return val;
+             * }}
+ *

The hedge "approximately" is used in the foregoing description only + * because the next method is only approximately an unbiased source of + * independently chosen bits. If it were a perfect source of randomly + * chosen bits, then the algorithm shown would choose {@code int} + * values from the stated range with perfect uniformity. + *

+ * The algorithm is slightly tricky. It rejects values that would result + * in an uneven distribution (due to the fact that 2^31 is not divisible + * by n). The probability of a value being rejected depends on n. The + * worst case is n=2^30+1, for which the probability of a reject is 1/2, + * and the expected number of iterations before the loop terminates is 2. + *

+ * The algorithm treats the case where n is a power of two specially: it + * returns the correct number of high-order bits from the underlying + * pseudo-random number generator. In the absence of special treatment, + * the correct number of low-order bits would be returned. Linear + * congruential pseudo-random number generators such as the one + * implemented by this class are known to have short periods in the + * sequence of values of their low-order bits. Thus, this special case + * greatly increases the length of the sequence of values returned by + * successive calls to this method if n is a small power of two. + */ + // @ts-ignore + public nextInt(bound: number): number; + /** + * Returns the next pseudorandom, uniformly distributed {@code long} + * value from this random number generator's sequence. The general + * contract of {@code nextLong} is that one {@code long} value is + * pseudorandomly generated and returned. + *

The method {@code nextLong} is implemented by class {@code Random} + * as if by: + *

 {@code
+             * public long nextLong() {
+             * return ((long)next(32) << 32) + next(32);
+             * }}
+ * Because class {@code Random} uses a seed with only 48 bits, + * this algorithm will not return all possible {@code long} values. + */ + // @ts-ignore + public nextLong(): number; + /** + * Returns the next pseudorandom, uniformly distributed + * {@code boolean} value from this random number generator's + * sequence. The general contract of {@code nextBoolean} is that one + * {@code boolean} value is pseudorandomly generated and returned. The + * values {@code true} and {@code false} are produced with + * (approximately) equal probability. + *

The method {@code nextBoolean} is implemented by class {@code Random} + * as if by: + *

 {@code
+             * public boolean nextBoolean() {
+             * return next(1) != 0;
+             * }}
+ */ + // @ts-ignore + public nextBoolean(): boolean; + /** + * Returns the next pseudorandom, uniformly distributed {@code float} + * value between {@code 0.0} and {@code 1.0} from this random + * number generator's sequence. + *

The general contract of {@code nextFloat} is that one + * {@code float} value, chosen (approximately) uniformly from the + * range {@code 0.0f} (inclusive) to {@code 1.0f} (exclusive), is + * pseudorandomly generated and returned. All 224 possible + * {@code float} values of the form m x 2-24, + * where m is a positive integer less than 224, are + * produced with (approximately) equal probability. + *

The method {@code nextFloat} is implemented by class {@code Random} + * as if by: + *

 {@code
+             * public float nextFloat() {
+             * return next(24) / ((float)(1 << 24));
+             * }}
+ *

The hedge "approximately" is used in the foregoing description only + * because the next method is only approximately an unbiased source of + * independently chosen bits. If it were a perfect source of randomly + * chosen bits, then the algorithm shown would choose {@code float} + * values from the stated range with perfect uniformity.

+ * [In early versions of Java, the result was incorrectly calculated as: + *

 {@code
+             * return next(30) / ((float)(1 << 30));}
+ * This might seem to be equivalent, if not better, but in fact it + * introduced a slight nonuniformity because of the bias in the rounding + * of floating-point numbers: it was slightly more likely that the + * low-order bit of the significand would be 0 than that it would be 1.] + */ + // @ts-ignore + public nextFloat(): number; + /** + * Returns the next pseudorandom, uniformly distributed + * {@code double} value between {@code 0.0} and + * {@code 1.0} from this random number generator's sequence. + *

The general contract of {@code nextDouble} is that one + * {@code double} value, chosen (approximately) uniformly from the + * range {@code 0.0d} (inclusive) to {@code 1.0d} (exclusive), is + * pseudorandomly generated and returned. + *

The method {@code nextDouble} is implemented by class {@code Random} + * as if by: + *

 {@code
+             * public double nextDouble() {
+             * return (((long)next(26) << 27) + next(27))
+             * / (double)(1L << 53);
+             * }}
+ *

The hedge "approximately" is used in the foregoing description only + * because the {@code next} method is only approximately an unbiased + * source of independently chosen bits. If it were a perfect source of + * randomly chosen bits, then the algorithm shown would choose + * {@code double} values from the stated range with perfect uniformity. + *

[In early versions of Java, the result was incorrectly calculated as: + *

 {@code
+             * return (((long)next(27) << 27) + next(27))
+             * / (double)(1L << 54);}
+ * This might seem to be equivalent, if not better, but in fact it + * introduced a large nonuniformity because of the bias in the rounding + * of floating-point numbers: it was three times as likely that the + * low-order bit of the significand would be 0 than that it would be 1! + * This nonuniformity probably doesn't matter much in practice, but we + * strive for perfection.] + */ + // @ts-ignore + public nextDouble(): number; + /** + * Returns the next pseudorandom, Gaussian ("normally") distributed + * {@code double} value with mean {@code 0.0} and standard + * deviation {@code 1.0} from this random number generator's sequence. + *

+ * The general contract of {@code nextGaussian} is that one + * {@code double} value, chosen from (approximately) the usual + * normal distribution with mean {@code 0.0} and standard deviation + * {@code 1.0}, is pseudorandomly generated and returned. + *

The method {@code nextGaussian} is implemented by class + * {@code Random} as if by a threadsafe version of the following: + *

 {@code
+             * private double nextNextGaussian;
+             * private boolean haveNextNextGaussian = false;
+             * public double nextGaussian() {
+             * if (haveNextNextGaussian) {
+             * haveNextNextGaussian = false;
+             * return nextNextGaussian;
+             * } else {
+             * double v1, v2, s;
+             * do {
+             * v1 = 2 * nextDouble() - 1;   // between -1.0 and 1.0
+             * v2 = 2 * nextDouble() - 1;   // between -1.0 and 1.0
+             * s = v1 * v1 + v2 * v2;
+             * } while (s >= 1 || s == 0);
+             * double multiplier = StrictMath.sqrt(-2 * StrictMath.log(s)/s);
+             * nextNextGaussian = v2 * multiplier;
+             * haveNextNextGaussian = true;
+             * return v1 * multiplier;
+             * }
+             * }}
+ * This uses the polar method of G. E. P. Box, M. E. Muller, and + * G. Marsaglia, as described by Donald E. Knuth in The Art of + * Computer Programming, Volume 3: Seminumerical Algorithms, + * section 3.4.1, subsection C, algorithm P. Note that it generates two + * independent values at the cost of only one call to {@code StrictMath.log} + * and one call to {@code StrictMath.sqrt}. + */ + // @ts-ignore + public nextGaussian(): number; + /** + * Returns a stream producing the given {@code streamSize} number of + * pseudorandom {@code int} values. + *

A pseudorandom {@code int} value is generated as if it's the result of + * calling the method {@link #nextInt()}. + */ + // @ts-ignore + public ints(streamSize: number): java.util.stream.IntStream; + /** + * Returns an effectively unlimited stream of pseudorandom {@code int} + * values. + *

A pseudorandom {@code int} value is generated as if it's the result of + * calling the method {@link #nextInt()}. + */ + // @ts-ignore + public ints(): java.util.stream.IntStream; + /** + * Returns a stream producing the given {@code streamSize} number + * of pseudorandom {@code int} values, each conforming to the given + * origin (inclusive) and bound (exclusive). + *

A pseudorandom {@code int} value is generated as if it's the result of + * calling the following method with the origin and bound: + *

 {@code
+             * int nextInt(int origin, int bound) {
+             * int n = bound - origin;
+             * if (n > 0) {
+             * return nextInt(n) + origin;
+             * }
+             * else {  // range not representable as int
+             * int r;
+             * do {
+             * r = nextInt();
+             * } while (r < origin || r >= bound);
+             * return r;
+             * }
+             * }}
+ */ + // @ts-ignore + public ints(streamSize: number, randomNumberOrigin: number, randomNumberBound: number): java.util.stream.IntStream; + /** + * Returns an effectively unlimited stream of pseudorandom {@code + * int} values, each conforming to the given origin (inclusive) and bound + * (exclusive). + *

A pseudorandom {@code int} value is generated as if it's the result of + * calling the following method with the origin and bound: + *

 {@code
+             * int nextInt(int origin, int bound) {
+             * int n = bound - origin;
+             * if (n > 0) {
+             * return nextInt(n) + origin;
+             * }
+             * else {  // range not representable as int
+             * int r;
+             * do {
+             * r = nextInt();
+             * } while (r < origin || r >= bound);
+             * return r;
+             * }
+             * }}
+ */ + // @ts-ignore + public ints(randomNumberOrigin: number, randomNumberBound: number): java.util.stream.IntStream; + /** + * Returns a stream producing the given {@code streamSize} number of + * pseudorandom {@code long} values. + *

A pseudorandom {@code long} value is generated as if it's the result + * of calling the method {@link #nextLong()}. + */ + // @ts-ignore + public longs(streamSize: number): java.util.stream.LongStream; + /** + * Returns an effectively unlimited stream of pseudorandom {@code long} + * values. + *

A pseudorandom {@code long} value is generated as if it's the result + * of calling the method {@link #nextLong()}. + */ + // @ts-ignore + public longs(): java.util.stream.LongStream; + /** + * Returns a stream producing the given {@code streamSize} number of + * pseudorandom {@code long}, each conforming to the given origin + * (inclusive) and bound (exclusive). + *

A pseudorandom {@code long} value is generated as if it's the result + * of calling the following method with the origin and bound: + *

 {@code
+             * long nextLong(long origin, long bound) {
+             * long r = nextLong();
+             * long n = bound - origin, m = n - 1;
+             * if ((n & m) == 0L)  // power of two
+             * r = (r & m) + origin;
+             * else if (n > 0L) {  // reject over-represented candidates
+             * for (long u = r >>> 1;            // ensure nonnegative
+             * u + m - (r = u % n) < 0L;    // rejection check
+             * u = nextLong() >>> 1) // retry
+             * ;
+             * r += origin;
+             * }
+             * else {              // range not representable as long
+             * while (r < origin || r >= bound)
+             * r = nextLong();
+             * }
+             * return r;
+             * }}
+ */ + // @ts-ignore + public longs(streamSize: number, randomNumberOrigin: number, randomNumberBound: number): java.util.stream.LongStream; + /** + * Returns an effectively unlimited stream of pseudorandom {@code + * long} values, each conforming to the given origin (inclusive) and bound + * (exclusive). + *

A pseudorandom {@code long} value is generated as if it's the result + * of calling the following method with the origin and bound: + *

 {@code
+             * long nextLong(long origin, long bound) {
+             * long r = nextLong();
+             * long n = bound - origin, m = n - 1;
+             * if ((n & m) == 0L)  // power of two
+             * r = (r & m) + origin;
+             * else if (n > 0L) {  // reject over-represented candidates
+             * for (long u = r >>> 1;            // ensure nonnegative
+             * u + m - (r = u % n) < 0L;    // rejection check
+             * u = nextLong() >>> 1) // retry
+             * ;
+             * r += origin;
+             * }
+             * else {              // range not representable as long
+             * while (r < origin || r >= bound)
+             * r = nextLong();
+             * }
+             * return r;
+             * }}
+ */ + // @ts-ignore + public longs(randomNumberOrigin: number, randomNumberBound: number): java.util.stream.LongStream; + /** + * Returns a stream producing the given {@code streamSize} number of + * pseudorandom {@code double} values, each between zero + * (inclusive) and one (exclusive). + *

A pseudorandom {@code double} value is generated as if it's the result + * of calling the method {@link #nextDouble()}. + */ + // @ts-ignore + public doubles(streamSize: number): java.util.stream.DoubleStream; + /** + * Returns an effectively unlimited stream of pseudorandom {@code + * double} values, each between zero (inclusive) and one + * (exclusive). + *

A pseudorandom {@code double} value is generated as if it's the result + * of calling the method {@link #nextDouble()}. + */ + // @ts-ignore + public doubles(): java.util.stream.DoubleStream; + /** + * Returns a stream producing the given {@code streamSize} number of + * pseudorandom {@code double} values, each conforming to the given origin + * (inclusive) and bound (exclusive). + *

A pseudorandom {@code double} value is generated as if it's the result + * of calling the following method with the origin and bound: + *

 {@code
+             * double nextDouble(double origin, double bound) {
+             * double r = nextDouble();
+             * r = r * (bound - origin) + origin;
+             * if (r >= bound) // correct for rounding
+             * r = Math.nextDown(bound);
+             * return r;
+             * }}
+ */ + // @ts-ignore + public doubles(streamSize: number, randomNumberOrigin: number, randomNumberBound: number): java.util.stream.DoubleStream; + /** + * Returns an effectively unlimited stream of pseudorandom {@code + * double} values, each conforming to the given origin (inclusive) and bound + * (exclusive). + *

A pseudorandom {@code double} value is generated as if it's the result + * of calling the following method with the origin and bound: + *

 {@code
+             * double nextDouble(double origin, double bound) {
+             * double r = nextDouble();
+             * r = r * (bound - origin) + origin;
+             * if (r >= bound) // correct for rounding
+             * r = Math.nextDown(bound);
+             * return r;
+             * }}
+ */ + // @ts-ignore + public doubles(randomNumberOrigin: number, randomNumberBound: number): java.util.stream.DoubleStream; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.RandomAccess.d.ts b/packages/types/dist/typings/jdk/java.util.RandomAccess.d.ts new file mode 100644 index 00000000..2357c50a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.RandomAccess.d.ts @@ -0,0 +1,8 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + interface RandomAccess { + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.ResourceBundle.Control.d.ts b/packages/types/dist/typings/jdk/java.util.ResourceBundle.Control.d.ts new file mode 100644 index 00000000..1af31c59 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.ResourceBundle.Control.d.ts @@ -0,0 +1,389 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace ResourceBundle { + // @ts-ignore + class Control extends java.lang.Object { + /** + * Sole constructor. (For invocation by subclass constructors, + * typically implicit.) + */ + // @ts-ignore + constructor() + // @ts-ignore + public static FORMAT_DEFAULT: java.util.List; + // @ts-ignore + public static FORMAT_CLASS: java.util.List; + // @ts-ignore + public static FORMAT_PROPERTIES: java.util.List; + // @ts-ignore + public static TTL_DONT_CACHE: number; + // @ts-ignore + public static TTL_NO_EXPIRATION_CONTROL: number; + /** + * Returns a ResourceBundle.Control in which the {@link + * #getFormats(String) getFormats} method returns the specified + * formats. The formats must be equal to + * one of {@link Control#FORMAT_PROPERTIES}, {@link + * Control#FORMAT_CLASS} or {@link + * Control#FORMAT_DEFAULT}. ResourceBundle.Control + * instances returned by this method are singletons and thread-safe. + *

Specifying {@link Control#FORMAT_DEFAULT} is equivalent to + * instantiating the ResourceBundle.Control class, + * except that this method returns a singleton. + */ + // @ts-ignore + public static getControl(formats: java.util.List): java.util.ResourceBundle.Control; + /** + * Returns a ResourceBundle.Control in which the {@link + * #getFormats(String) getFormats} method returns the specified + * formats and the {@link + * Control#getFallbackLocale(String, Locale) getFallbackLocale} + * method returns null. The formats must + * be equal to one of {@link Control#FORMAT_PROPERTIES}, {@link + * Control#FORMAT_CLASS} or {@link Control#FORMAT_DEFAULT}. + * ResourceBundle.Control instances returned by this + * method are singletons and thread-safe. + */ + // @ts-ignore + public static getNoFallbackControl(formats: java.util.List): java.util.ResourceBundle.Control; + /** + * Returns a List of Strings containing + * formats to be used to load resource bundles for the given + * baseName. The ResourceBundle.getBundle + * factory method tries to load resource bundles with formats in the + * order specified by the list. The list returned by this method + * must have at least one String. The predefined + * formats are "java.class" for class-based resource + * bundles and "java.properties" for {@linkplain + * PropertyResourceBundle properties-based} ones. Strings starting + * with "java." are reserved for future extensions and + * must not be used by application-defined formats. + *

It is not a requirement to return an immutable (unmodifiable) + * List. However, the returned List must + * not be mutated after it has been returned by + * getFormats. + *

The default implementation returns {@link #FORMAT_DEFAULT} so + * that the ResourceBundle.getBundle factory method + * looks up first class-based resource bundles, then + * properties-based ones. + */ + // @ts-ignore + public getFormats(baseName: string): java.util.List; + /** + * Returns a List of Locales as candidate + * locales for baseName and locale. This + * method is called by the ResourceBundle.getBundle + * factory method each time the factory method tries finding a + * resource bundle for a target Locale. + *

The sequence of the candidate locales also corresponds to the + * runtime resource lookup path (also known as the parent + * chain), if the corresponding resource bundles for the + * candidate locales exist and their parents are not defined by + * loaded resource bundles themselves. The last element of the list + * must be a {@linkplain Locale#ROOT root locale} if it is desired to + * have the base bundle as the terminal of the parent chain. + *

If the given locale is equal to Locale.ROOT (the + * root locale), a List containing only the root + * Locale must be returned. In this case, the + * ResourceBundle.getBundle factory method loads only + * the base bundle as the resulting resource bundle. + *

It is not a requirement to return an immutable (unmodifiable) + * List. However, the returned List must not + * be mutated after it has been returned by + * getCandidateLocales. + *

The default implementation returns a List containing + * Locales using the rules described below. In the + * description below, L, S, C and V + * respectively represent non-empty language, script, country, and + * variant. For example, [L, C] represents a + * Locale that has non-empty values only for language and + * country. The form L("xx") represents the (non-empty) + * language value is "xx". For all cases, Locales whose + * final component values are empty strings are omitted. + *

  1. For an input Locale with an empty script value, + * append candidate Locales by omitting the final component + * one by one as below: + *
      + *
    • [L, C, V]
    • + *
    • [L, C]
    • + *
    • [L]
    • + *
    • Locale.ROOT
    • + *
  2. + *
  3. For an input Locale with a non-empty script value, + * append candidate Locales by omitting the final component + * up to language, then append candidates generated from the + * Locale with country and variant restored: + *
      + *
    • [L, S, C, V]
    • + *
    • [L, S, C]
    • + *
    • [L, S]
    • + *
    • [L, C, V]
    • + *
    • [L, C]
    • + *
    • [L]
    • + *
    • Locale.ROOT
    • + *
  4. + *
  5. For an input Locale with a variant value consisting + * of multiple subtags separated by underscore, generate candidate + * Locales by omitting the variant subtags one by one, then + * insert them after every occurrence of Locales with the + * full variant value in the original list. For example, if the + * the variant consists of two subtags V1 and V2: + *
      + *
    • [L, S, C, V1, V2]
    • + *
    • [L, S, C, V1]
    • + *
    • [L, S, C]
    • + *
    • [L, S]
    • + *
    • [L, C, V1, V2]
    • + *
    • [L, C, V1]
    • + *
    • [L, C]
    • + *
    • [L]
    • + *
    • Locale.ROOT
    • + *
  6. + *
  7. Special cases for Chinese. When an input Locale has the + * language "zh" (Chinese) and an empty script value, either "Hans" (Simplified) or + * "Hant" (Traditional) might be supplied, depending on the country. + * When the country is "CN" (China) or "SG" (Singapore), "Hans" is supplied. + * When the country is "HK" (Hong Kong SAR China), "MO" (Macau SAR China), + * or "TW" (Taiwan), "Hant" is supplied. For all other countries or when the country + * is empty, no script is supplied. For example, for Locale("zh", "CN") + * , the candidate list will be: + *
      + *
    • [L("zh"), S("Hans"), C("CN")]
    • + *
    • [L("zh"), S("Hans")]
    • + *
    • [L("zh"), C("CN")]
    • + *
    • [L("zh")]
    • + *
    • Locale.ROOT
    • + *
    + * For Locale("zh", "TW"), the candidate list will be: + *
      + *
    • [L("zh"), S("Hant"), C("TW")]
    • + *
    • [L("zh"), S("Hant")]
    • + *
    • [L("zh"), C("TW")]
    • + *
    • [L("zh")]
    • + *
    • Locale.ROOT
    • + *
  8. + *
  9. Special cases for Norwegian. Both Locale("no", "NO", + * "NY") and Locale("nn", "NO") represent Norwegian + * Nynorsk. When a locale's language is "nn", the standard candidate + * list is generated up to [L("nn")], and then the following + * candidates are added: + *
    • [L("no"), C("NO"), V("NY")]
    • + *
    • [L("no"), C("NO")]
    • + *
    • [L("no")]
    • + *
    • Locale.ROOT
    • + *
    + * If the locale is exactly Locale("no", "NO", "NY"), it is first + * converted to Locale("nn", "NO") and then the above procedure is + * followed. + *

    Also, Java treats the language "no" as a synonym of Norwegian + * Bokmål "nb". Except for the single case Locale("no", + * "NO", "NY") (handled above), when an input Locale + * has language "no" or "nb", candidate Locales with + * language code "no" and "nb" are interleaved, first using the + * requested language, then using its synonym. For example, + * Locale("nb", "NO", "POSIX") generates the following + * candidate list: + *

      + *
    • [L("nb"), C("NO"), V("POSIX")]
    • + *
    • [L("no"), C("NO"), V("POSIX")]
    • + *
    • [L("nb"), C("NO")]
    • + *
    • [L("no"), C("NO")]
    • + *
    • [L("nb")]
    • + *
    • [L("no")]
    • + *
    • Locale.ROOT
    • + *
    + * Locale("no", "NO", "POSIX") would generate the same list + * except that locales with "no" would appear before the corresponding + * locales with "nb".
  10. + *
+ *

The default implementation uses an {@link ArrayList} that + * overriding implementations may modify before returning it to the + * caller. However, a subclass must not modify it after it has + * been returned by getCandidateLocales. + *

For example, if the given baseName is "Messages" + * and the given locale is + * Locale("ja", "", "XX"), then a + * List of Locales: + *

+                 * Locale("ja", "", "XX")
+                 * Locale("ja")
+                 * Locale.ROOT
+                 * 
+ * is returned. And if the resource bundles for the "ja" and + * "" Locales are found, then the runtime resource + * lookup path (parent chain) is: + *
{@code
+                 * Messages_ja -> Messages
+                 * }
+ */ + // @ts-ignore + public getCandidateLocales(baseName: string, locale: java.util.Locale): java.util.List; + /** + * Returns a Locale to be used as a fallback locale for + * further resource bundle searches by the + * ResourceBundle.getBundle factory method. This method + * is called from the factory method every time when no resulting + * resource bundle has been found for baseName and + * locale, where locale is either the parameter for + * ResourceBundle.getBundle or the previous fallback + * locale returned by this method. + *

The method returns null if no further fallback + * search is desired. + *

The default implementation returns the {@linkplain + * Locale#getDefault() default Locale} if the given + * locale isn't the default one. Otherwise, + * null is returned. + */ + // @ts-ignore + public getFallbackLocale(baseName: string, locale: java.util.Locale): java.util.Locale; + /** + * Instantiates a resource bundle for the given bundle name of the + * given format and locale, using the given class loader if + * necessary. This method returns null if there is no + * resource bundle available for the given parameters. If a resource + * bundle can't be instantiated due to an unexpected error, the + * error must be reported by throwing an Error or + * Exception rather than simply returning + * null. + *

If the reload flag is true, it + * indicates that this method is being called because the previously + * loaded resource bundle has expired. + *

The default implementation instantiates a + * ResourceBundle as follows. + *

    + *
  • The bundle name is obtained by calling {@link + * #toBundleName(String, Locale) toBundleName(baseName, + * locale)}.
  • + *
  • If format is "java.class", the + * {@link Class} specified by the bundle name is loaded by calling + * {@link ClassLoader#loadClass(String)}. Then, a + * ResourceBundle is instantiated by calling {@link + * Class#newInstance()}. Note that the reload flag is + * ignored for loading class-based resource bundles in this default + * implementation.
  • + *
  • If format is "java.properties", + * {@link #toResourceName(String, String) toResourceName(bundlename, + * "properties")} is called to get the resource name. + * If reload is true, {@link + * ClassLoader#getResource(String) load.getResource} is called + * to get a {@link URL} for creating a {@link + * URLConnection}. This URLConnection is used to + * {@linkplain URLConnection#setUseCaches(boolean) disable the + * caches} of the underlying resource loading layers, + * and to {@linkplain URLConnection#getInputStream() get an + * InputStream}. + * Otherwise, {@link ClassLoader#getResourceAsStream(String) + * loader.getResourceAsStream} is called to get an {@link + * InputStream}. Then, a {@link + * PropertyResourceBundle} is constructed with the + * InputStream.
  • + *
  • If format is neither "java.class" + * nor "java.properties", an + * IllegalArgumentException is thrown.
  • + *
+ */ + // @ts-ignore + public newBundle(baseName: string, locale: java.util.Locale, format: string, loader: java.lang.ClassLoader, reload: boolean): java.util.ResourceBundle; + /** + * Returns the time-to-live (TTL) value for resource bundles that + * are loaded under this + * ResourceBundle.Control. Positive time-to-live values + * specify the number of milliseconds a bundle can remain in the + * cache without being validated against the source data from which + * it was constructed. The value 0 indicates that a bundle must be + * validated each time it is retrieved from the cache. {@link + * #TTL_DONT_CACHE} specifies that loaded resource bundles are not + * put in the cache. {@link #TTL_NO_EXPIRATION_CONTROL} specifies + * that loaded resource bundles are put in the cache with no + * expiration control. + *

The expiration affects only the bundle loading process by the + * ResourceBundle.getBundle factory method. That is, + * if the factory method finds a resource bundle in the cache that + * has expired, the factory method calls the {@link + * #needsReload(String, Locale, String, ClassLoader, ResourceBundle, + * long) needsReload} method to determine whether the resource + * bundle needs to be reloaded. If needsReload returns + * true, the cached resource bundle instance is removed + * from the cache. Otherwise, the instance stays in the cache, + * updated with the new TTL value returned by this method. + *

All cached resource bundles are subject to removal from the + * cache due to memory constraints of the runtime environment. + * Returning a large positive value doesn't mean to lock loaded + * resource bundles in the cache. + *

The default implementation returns {@link #TTL_NO_EXPIRATION_CONTROL}. + */ + // @ts-ignore + public getTimeToLive(baseName: string, locale: java.util.Locale): number; + /** + * Determines if the expired bundle in the cache needs + * to be reloaded based on the loading time given by + * loadTime or some other criteria. The method returns + * true if reloading is required; false + * otherwise. loadTime is a millisecond offset since + * the Calendar + * Epoch. + * The calling ResourceBundle.getBundle factory method + * calls this method on the ResourceBundle.Control + * instance used for its current invocation, not on the instance + * used in the invocation that originally loaded the resource + * bundle. + *

The default implementation compares loadTime and + * the last modified time of the source data of the resource + * bundle. If it's determined that the source data has been modified + * since loadTime, true is + * returned. Otherwise, false is returned. This + * implementation assumes that the given format is the + * same string as its file suffix if it's not one of the default + * formats, "java.class" or + * "java.properties". + */ + // @ts-ignore + public needsReload(baseName: string, locale: java.util.Locale, format: string, loader: java.lang.ClassLoader, bundle: java.util.ResourceBundle, loadTime: number): boolean; + /** + * Converts the given baseName and locale + * to the bundle name. This method is called from the default + * implementation of the {@link #newBundle(String, Locale, String, + * ClassLoader, boolean) newBundle} and {@link #needsReload(String, + * Locale, String, ClassLoader, ResourceBundle, long) needsReload} + * methods. + *

This implementation returns the following value: + *

+                 * baseName + "_" + language + "_" + script + "_" + country + "_" + variant
+                 * 
+ * where language, script, country, + * and variant are the language, script, country, and variant + * values of locale, respectively. Final component values that + * are empty Strings are omitted along with the preceding '_'. When the + * script is empty, the script value is omitted along with the preceding '_'. + * If all of the values are empty strings, then baseName + * is returned. + *

For example, if baseName is + * "baseName" and locale is + * Locale("ja", "", "XX"), then + * "baseName_ja_ _XX" is returned. If the given + * locale is Locale("en"), then + * "baseName_en" is returned. + *

Overriding this method allows applications to use different + * conventions in the organization and packaging of localized + * resources. + */ + // @ts-ignore + public toBundleName(baseName: string, locale: java.util.Locale): string; + /** + * Converts the given bundleName to the form required + * by the {@link ClassLoader#getResource ClassLoader.getResource} + * method by replacing all occurrences of '.' in + * bundleName with '/' and appending a + * '.' and the given file suffix. For + * example, if bundleName is + * "foo.bar.MyResources_ja_JP" and suffix + * is "properties", then + * "foo/bar/MyResources_ja_JP.properties" is returned. + */ + // @ts-ignore + public toResourceName(bundleName: string, suffix: string): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.ResourceBundle.d.ts b/packages/types/dist/typings/jdk/java.util.ResourceBundle.d.ts new file mode 100644 index 00000000..074a926e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.ResourceBundle.d.ts @@ -0,0 +1,492 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + abstract class ResourceBundle extends java.lang.Object { + /** + * Sole constructor. (For invocation by subclass constructors, typically + * implicit.) + */ + // @ts-ignore + constructor() + // @ts-ignore + protected parent: java.util.ResourceBundle; + /** + * Returns the base name of this bundle, if known, or {@code null} if unknown. + * If not null, then this is the value of the {@code baseName} parameter + * that was passed to the {@code ResourceBundle.getBundle(...)} method + * when the resource bundle was loaded. + */ + // @ts-ignore + public getBaseBundleName(): string; + /** + * Gets a string for the given key from this resource bundle or one of its parents. + * Calling this method is equivalent to calling + *

+ * (String) {@link #getObject(java.lang.String) getObject}(key). + *
+ */ + // @ts-ignore + public getString(key: string): string; + /** + * Gets a string array for the given key from this resource bundle or one of its parents. + * Calling this method is equivalent to calling + *
+ * (String[]) {@link #getObject(java.lang.String) getObject}(key). + *
+ */ + // @ts-ignore + public getStringArray(key: string): java.lang.String[]; + /** + * Gets an object for the given key from this resource bundle or one of its parents. + * This method first tries to obtain the object from this resource bundle using + * {@link #handleGetObject(java.lang.String) handleGetObject}. + * If not successful, and the parent resource bundle is not null, + * it calls the parent's getObject method. + * If still not successful, it throws a MissingResourceException. + */ + // @ts-ignore + public getObject(key: string): java.lang.Object; + /** + * Returns the locale of this resource bundle. This method can be used after a + * call to getBundle() to determine whether the resource bundle returned really + * corresponds to the requested locale or is a fallback. + */ + // @ts-ignore + public getLocale(): java.util.Locale; + /** + * Sets the parent bundle of this bundle. + * The parent bundle is searched by {@link #getObject getObject} + * when this bundle does not contain a particular resource. + */ + // @ts-ignore + protected setParent(parent: java.util.ResourceBundle): void; + /** + * Gets a resource bundle using the specified base name, the default locale, + * and the caller's class loader. Calling this method is equivalent to calling + *
+ * getBundle(baseName, Locale.getDefault(), this.getClass().getClassLoader()), + *
+ * except that getClassLoader() is run with the security + * privileges of ResourceBundle. + * See {@link #getBundle(String, Locale, ClassLoader) getBundle} + * for a complete description of the search and instantiation strategy. + */ + // @ts-ignore + public static getBundle(baseName: string): java.util.ResourceBundle; + /** + * Returns a resource bundle using the specified base name, the + * default locale and the specified control. Calling this method + * is equivalent to calling + *
+             * getBundle(baseName, Locale.getDefault(),
+             * this.getClass().getClassLoader(), control),
+             * 
+ * except that getClassLoader() is run with the security + * privileges of ResourceBundle. See {@link + * #getBundle(String, Locale, ClassLoader, Control) getBundle} for the + * complete description of the resource bundle loading process with a + * ResourceBundle.Control. + */ + // @ts-ignore + public static getBundle(baseName: string, control: java.util.ResourceBundle.Control): java.util.ResourceBundle; + /** + * Gets a resource bundle using the specified base name and locale, + * and the caller's class loader. Calling this method is equivalent to calling + *
+ * getBundle(baseName, locale, this.getClass().getClassLoader()), + *
+ * except that getClassLoader() is run with the security + * privileges of ResourceBundle. + * See {@link #getBundle(String, Locale, ClassLoader) getBundle} + * for a complete description of the search and instantiation strategy. + */ + // @ts-ignore + public static getBundle(baseName: string, locale: java.util.Locale): java.util.ResourceBundle; + /** + * Returns a resource bundle using the specified base name, target + * locale and control, and the caller's class loader. Calling this + * method is equivalent to calling + *
+             * getBundle(baseName, targetLocale, this.getClass().getClassLoader(),
+             * control),
+             * 
+ * except that getClassLoader() is run with the security + * privileges of ResourceBundle. See {@link + * #getBundle(String, Locale, ClassLoader, Control) getBundle} for the + * complete description of the resource bundle loading process with a + * ResourceBundle.Control. + */ + // @ts-ignore + public static getBundle(baseName: string, targetLocale: java.util.Locale, control: java.util.ResourceBundle.Control): java.util.ResourceBundle; + /** + * Gets a resource bundle using the specified base name, locale, and class + * loader. + *

This method behaves the same as calling + * {@link #getBundle(String, Locale, ClassLoader, Control)} passing a + * default instance of {@link Control} unless another {@link Control} is + * provided with the {@link ResourceBundleControlProvider} SPI. Refer to the + * description of modifying the default + * behavior. + *

The following describes the default + * behavior. + *

getBundle uses the base name, the specified locale, and + * the default locale (obtained from {@link java.util.Locale#getDefault() + * Locale.getDefault}) to generate a sequence of candidate bundle names. If the specified + * locale's language, script, country, and variant are all empty strings, + * then the base name is the only candidate bundle name. Otherwise, a list + * of candidate locales is generated from the attribute values of the + * specified locale (language, script, country and variant) and appended to + * the base name. Typically, this will look like the following: + *

+             * baseName + "_" + language + "_" + script + "_" + country + "_" + variant
+             * baseName + "_" + language + "_" + script + "_" + country
+             * baseName + "_" + language + "_" + script
+             * baseName + "_" + language + "_" + country + "_" + variant
+             * baseName + "_" + language + "_" + country
+             * baseName + "_" + language
+             * 
+ *

Candidate bundle names where the final component is an empty string + * are omitted, along with the underscore. For example, if country is an + * empty string, the second and the fifth candidate bundle names above + * would be omitted. Also, if script is an empty string, the candidate names + * including script are omitted. For example, a locale with language "de" + * and variant "JAVA" will produce candidate names with base name + * "MyResource" below. + *

+             * MyResource_de__JAVA
+             * MyResource_de
+             * 
+ * In the case that the variant contains one or more underscores ('_'), a + * sequence of bundle names generated by truncating the last underscore and + * the part following it is inserted after a candidate bundle name with the + * original variant. For example, for a locale with language "en", script + * "Latn, country "US" and variant "WINDOWS_VISTA", and bundle base name + * "MyResource", the list of candidate bundle names below is generated: + *
+             * MyResource_en_Latn_US_WINDOWS_VISTA
+             * MyResource_en_Latn_US_WINDOWS
+             * MyResource_en_Latn_US
+             * MyResource_en_Latn
+             * MyResource_en_US_WINDOWS_VISTA
+             * MyResource_en_US_WINDOWS
+             * MyResource_en_US
+             * MyResource_en
+             * 
+ *
Note: For some Locales, the list of + * candidate bundle names contains extra names, or the order of bundle names + * is slightly modified. See the description of the default implementation + * of {@link Control#getCandidateLocales(String, Locale) + * getCandidateLocales} for details.
+ *

getBundle then iterates over the candidate bundle names + * to find the first one for which it can instantiate an actual + * resource bundle. It uses the default controls' {@link Control#getFormats + * getFormats} method, which generates two bundle names for each generated + * name, the first a class name and the second a properties file name. For + * each candidate bundle name, it attempts to create a resource bundle: + *

  • First, it attempts to load a class using the generated class name. + * If such a class can be found and loaded using the specified class + * loader, is assignment compatible with ResourceBundle, is accessible from + * ResourceBundle, and can be instantiated, getBundle creates a + * new instance of this class and uses it as the result resource + * bundle. + *
  • Otherwise, getBundle attempts to locate a property + * resource file using the generated properties file name. It generates a + * path name from the candidate bundle name by replacing all "." characters + * with "/" and appending the string ".properties". It attempts to find a + * "resource" with this name using {@link + * java.lang.ClassLoader#getResource(java.lang.String) + * ClassLoader.getResource}. (Note that a "resource" in the sense of + * getResource has nothing to do with the contents of a + * resource bundle, it is just a container of data, such as a file.) If it + * finds a "resource", it attempts to create a new {@link + * PropertyResourceBundle} instance from its contents. If successful, this + * instance becomes the result resource bundle.
+ *

This continues until a result resource bundle is instantiated or the + * list of candidate bundle names is exhausted. If no matching resource + * bundle is found, the default control's {@link Control#getFallbackLocale + * getFallbackLocale} method is called, which returns the current default + * locale. A new sequence of candidate locale names is generated using this + * locale and and searched again, as above. + *

If still no result bundle is found, the base name alone is looked up. If + * this still fails, a MissingResourceException is thrown. + *

Once a result resource bundle has been found, + * its parent chain is instantiated. If the result bundle already + * has a parent (perhaps because it was returned from a cache) the chain is + * complete. + *

Otherwise, getBundle examines the remainder of the + * candidate locale list that was used during the pass that generated the + * result resource bundle. (As before, candidate bundle names where the + * final component is an empty string are omitted.) When it comes to the + * end of the candidate list, it tries the plain bundle name. With each of the + * candidate bundle names it attempts to instantiate a resource bundle (first + * looking for a class and then a properties file, as described above). + *

Whenever it succeeds, it calls the previously instantiated resource + * bundle's {@link #setParent(java.util.ResourceBundle) setParent} method + * with the new resource bundle. This continues until the list of names + * is exhausted or the current bundle already has a non-null parent. + *

Once the parent chain is complete, the bundle is returned. + *

Note: getBundle caches instantiated resource + * bundles and might return the same resource bundle instance multiple times. + *

Note:The baseName argument should be a fully + * qualified class name. However, for compatibility with earlier versions, + * Sun's Java SE Runtime Environments do not verify this, and so it is + * possible to access PropertyResourceBundles by specifying a + * path name (using "/") instead of a fully qualified class name (using + * "."). + *

+ * Example: + *

+ * The following class and property files are provided: + *

+             * MyResources.class
+             * MyResources.properties
+             * MyResources_fr.properties
+             * MyResources_fr_CH.class
+             * MyResources_fr_CH.properties
+             * MyResources_en.properties
+             * MyResources_es_ES.class
+             * 
+ * The contents of all files are valid (that is, public non-abstract + * subclasses of ResourceBundle for the ".class" files, + * syntactically correct ".properties" files). The default locale is + * Locale("en", "GB"). + *

Calling getBundle with the locale arguments below will + * instantiate resource bundles as follows: + * + * + * + * + * + * + *
Locale("fr", "CH")MyResources_fr_CH.class, parent MyResources_fr.properties, parent MyResources.class
Locale("fr", "FR")MyResources_fr.properties, parent MyResources.class
Locale("de", "DE")MyResources_en.properties, parent MyResources.class
Locale("en", "US")MyResources_en.properties, parent MyResources.class
Locale("es", "ES")MyResources_es_ES.class, parent MyResources.class
+ *

The file MyResources_fr_CH.properties is never used because it is + * hidden by the MyResources_fr_CH.class. Likewise, MyResources.properties + * is also hidden by MyResources.class. + */ + // @ts-ignore + public static getBundle(baseName: string, locale: java.util.Locale, loader: java.lang.ClassLoader): java.util.ResourceBundle; + /** + * Returns a resource bundle using the specified base name, target + * locale, class loader and control. Unlike the {@linkplain + * #getBundle(String, Locale, ClassLoader) getBundle + * factory methods with no control argument}, the given + * control specifies how to locate and instantiate resource + * bundles. Conceptually, the bundle loading process with the given + * control is performed in the following steps. + *

    + *
  1. This factory method looks up the resource bundle in the cache for + * the specified baseName, targetLocale and + * loader. If the requested resource bundle instance is + * found in the cache and the time-to-live periods of the instance and + * all of its parent instances have not expired, the instance is returned + * to the caller. Otherwise, this factory method proceeds with the + * loading process below.
  2. + *
  3. The {@link ResourceBundle.Control#getFormats(String) + * control.getFormats} method is called to get resource bundle formats + * to produce bundle or resource names. The strings + * "java.class" and "java.properties" + * designate class-based and {@linkplain PropertyResourceBundle + * property}-based resource bundles, respectively. Other strings + * starting with "java." are reserved for future extensions + * and must not be used for application-defined formats. Other strings + * designate application-defined formats.
  4. + *
  5. The {@link ResourceBundle.Control#getCandidateLocales(String, + * Locale) control.getCandidateLocales} method is called with the target + * locale to get a list of candidate Locales for + * which resource bundles are searched.
  6. + *
  7. The {@link ResourceBundle.Control#newBundle(String, Locale, + * String, ClassLoader, boolean) control.newBundle} method is called to + * instantiate a ResourceBundle for the base bundle name, a + * candidate locale, and a format. (Refer to the note on the cache + * lookup below.) This step is iterated over all combinations of the + * candidate locales and formats until the newBundle method + * returns a ResourceBundle instance or the iteration has + * used up all the combinations. For example, if the candidate locales + * are Locale("de", "DE"), Locale("de") and + * Locale("") and the formats are "java.class" + * and "java.properties", then the following is the + * sequence of locale-format combinations to be used to call + * control.newBundle. + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
    Locale
    + *
    format
    + *
    Locale("de", "DE")
    + *
    java.class
    + *
    Locale("de", "DE")java.properties
    + *
    Locale("de")java.class
    Locale("de")java.properties
    Locale("")
    + *
    java.class
    Locale("")java.properties
    + *
  8. + *
  9. If the previous step has found no resource bundle, proceed to + * Step 6. If a bundle has been found that is a base bundle (a bundle + * for Locale("")), and the candidate locale list only contained + * Locale(""), return the bundle to the caller. If a bundle + * has been found that is a base bundle, but the candidate locale list + * contained locales other than Locale(""), put the bundle on hold and + * proceed to Step 6. If a bundle has been found that is not a base + * bundle, proceed to Step 7.
  10. + *
  11. The {@link ResourceBundle.Control#getFallbackLocale(String, + * Locale) control.getFallbackLocale} method is called to get a fallback + * locale (alternative to the current target locale) to try further + * finding a resource bundle. If the method returns a non-null locale, + * it becomes the next target locale and the loading process starts over + * from Step 3. Otherwise, if a base bundle was found and put on hold in + * a previous Step 5, it is returned to the caller now. Otherwise, a + * MissingResourceException is thrown.
  12. + *
  13. At this point, we have found a resource bundle that's not the + * base bundle. If this bundle set its parent during its instantiation, + * it is returned to the caller. Otherwise, its parent chain is + * instantiated based on the list of candidate locales from which it was + * found. Finally, the bundle is returned to the caller.
  14. + *
+ *

During the resource bundle loading process above, this factory + * method looks up the cache before calling the {@link + * Control#newBundle(String, Locale, String, ClassLoader, boolean) + * control.newBundle} method. If the time-to-live period of the + * resource bundle found in the cache has expired, the factory method + * calls the {@link ResourceBundle.Control#needsReload(String, Locale, + * String, ClassLoader, ResourceBundle, long) control.needsReload} + * method to determine whether the resource bundle needs to be reloaded. + * If reloading is required, the factory method calls + * control.newBundle to reload the resource bundle. If + * control.newBundle returns null, the factory + * method puts a dummy resource bundle in the cache as a mark of + * nonexistent resource bundles in order to avoid lookup overhead for + * subsequent requests. Such dummy resource bundles are under the same + * expiration control as specified by control. + *

All resource bundles loaded are cached by default. Refer to + * {@link Control#getTimeToLive(String,Locale) + * control.getTimeToLive} for details. + *

The following is an example of the bundle loading process with the + * default ResourceBundle.Control implementation. + *

Conditions: + *

    + *
  • Base bundle name: foo.bar.Messages + *
  • Requested Locale: {@link Locale#ITALY}
  • + *
  • Default Locale: {@link Locale#FRENCH}
  • + *
  • Available resource bundles: + * foo/bar/Messages_fr.properties and + * foo/bar/Messages.properties
  • + *
+ *

First, getBundle tries loading a resource bundle in + * the following sequence. + *

    + *
  • class foo.bar.Messages_it_IT + *
  • file foo/bar/Messages_it_IT.properties + *
  • class foo.bar.Messages_it
  • + *
  • file foo/bar/Messages_it.properties
  • + *
  • class foo.bar.Messages
  • + *
  • file foo/bar/Messages.properties
  • + *
+ *

At this point, getBundle finds + * foo/bar/Messages.properties, which is put on hold + * because it's the base bundle. getBundle calls {@link + * Control#getFallbackLocale(String, Locale) + * control.getFallbackLocale("foo.bar.Messages", Locale.ITALY)} which + * returns Locale.FRENCH. Next, getBundle + * tries loading a bundle in the following sequence. + *

    + *
  • class foo.bar.Messages_fr
  • + *
  • file foo/bar/Messages_fr.properties
  • + *
  • class foo.bar.Messages
  • + *
  • file foo/bar/Messages.properties
  • + *
+ *

getBundle finds + * foo/bar/Messages_fr.properties and creates a + * ResourceBundle instance. Then, getBundle + * sets up its parent chain from the list of the candidate locales. Only + * foo/bar/Messages.properties is found in the list and + * getBundle creates a ResourceBundle instance + * that becomes the parent of the instance for + * foo/bar/Messages_fr.properties. + */ + // @ts-ignore + public static getBundle(baseName: string, targetLocale: java.util.Locale, loader: java.lang.ClassLoader, control: java.util.ResourceBundle.Control): java.util.ResourceBundle; + /** + * Removes all resource bundles from the cache that have been loaded + * using the caller's class loader. + */ + // @ts-ignore + public static clearCache(): void; + /** + * Removes all resource bundles from the cache that have been loaded + * using the given class loader. + */ + // @ts-ignore + public static clearCache(loader: java.lang.ClassLoader): void; + /** + * Gets an object for the given key from this resource bundle. + * Returns null if this resource bundle does not contain an + * object for the given key. + */ + // @ts-ignore + protected abstract handleGetObject(key: string): java.lang.Object; + /** + * Returns an enumeration of the keys. + */ + // @ts-ignore + public abstract getKeys(): java.util.Enumeration; + /** + * Determines whether the given key is contained in + * this ResourceBundle or its parent bundles. + */ + // @ts-ignore + public containsKey(key: string): boolean; + /** + * Returns a Set of all keys contained in this + * ResourceBundle and its parent bundles. + */ + // @ts-ignore + public keySet(): java.util.Set; + /** + * Returns a Set of the keys contained only + * in this ResourceBundle. + *

The default implementation returns a Set of the + * keys returned by the {@link #getKeys() getKeys} method except + * for the ones for which the {@link #handleGetObject(String) + * handleGetObject} method returns null. Once the + * Set has been created, the value is kept in this + * ResourceBundle in order to avoid producing the + * same Set in subsequent calls. Subclasses can + * override this method for faster handling. + */ + // @ts-ignore + protected handleKeySet(): java.util.Set; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Scanner.d.ts b/packages/types/dist/typings/jdk/java.util.Scanner.d.ts new file mode 100644 index 00000000..7837a27b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Scanner.d.ts @@ -0,0 +1,663 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class Scanner extends java.lang.Object { + /** + * Constructs a new Scanner that produces values scanned + * from the specified source. + */ + // @ts-ignore + constructor(source: java.lang.Readable) + /** + * Constructs a new Scanner that produces values scanned + * from the specified input stream. Bytes from the stream are converted + * into characters using the underlying platform's + * {@linkplain java.nio.charset.Charset#defaultCharset() default charset}. + */ + // @ts-ignore + constructor(source: java.io.InputStream) + /** + * Constructs a new Scanner that produces values scanned + * from the specified input stream. Bytes from the stream are converted + * into characters using the specified charset. + */ + // @ts-ignore + constructor(source: java.io.InputStream, charsetName: string) + /** + * Constructs a new Scanner that produces values scanned + * from the specified file. Bytes from the file are converted into + * characters using the underlying platform's + * {@linkplain java.nio.charset.Charset#defaultCharset() default charset}. + */ + // @ts-ignore + constructor(source: java.io.File) + /** + * Constructs a new Scanner that produces values scanned + * from the specified file. Bytes from the file are converted into + * characters using the specified charset. + */ + // @ts-ignore + constructor(source: java.io.File, charsetName: string) + /** + * Constructs a new Scanner that produces values scanned + * from the specified file. Bytes from the file are converted into + * characters using the underlying platform's + * {@linkplain java.nio.charset.Charset#defaultCharset() default charset}. + */ + // @ts-ignore + constructor(source: java.nio.file.Path) + /** + * Constructs a new Scanner that produces values scanned + * from the specified file. Bytes from the file are converted into + * characters using the specified charset. + */ + // @ts-ignore + constructor(source: java.nio.file.Path, charsetName: string) + /** + * Constructs a new Scanner that produces values scanned + * from the specified string. + */ + // @ts-ignore + constructor(source: string) + /** + * Constructs a new Scanner that produces values scanned + * from the specified channel. Bytes from the source are converted into + * characters using the underlying platform's + * {@linkplain java.nio.charset.Charset#defaultCharset() default charset}. + */ + // @ts-ignore + constructor(source: java.nio.channels.ReadableByteChannel) + /** + * Constructs a new Scanner that produces values scanned + * from the specified channel. Bytes from the source are converted into + * characters using the specified charset. + */ + // @ts-ignore + constructor(source: java.nio.channels.ReadableByteChannel, charsetName: string) + /** + * Closes this scanner. + *

If this scanner has not yet been closed then if its underlying + * {@linkplain java.lang.Readable readable} also implements the {@link + * java.io.Closeable} interface then the readable's close method + * will be invoked. If this scanner is already closed then invoking this + * method will have no effect. + *

Attempting to perform search operations after a scanner has + * been closed will result in an {@link IllegalStateException}. + */ + // @ts-ignore + public close(): void; + /** + * Returns the IOException last thrown by this + * Scanner's underlying Readable. This method + * returns null if no such exception exists. + */ + // @ts-ignore + public ioException(): java.io.IOException; + /** + * Returns the Pattern this Scanner is currently + * using to match delimiters. + */ + // @ts-ignore + public delimiter(): java.util.regex.Pattern; + /** + * Sets this scanner's delimiting pattern to the specified pattern. + */ + // @ts-ignore + public useDelimiter(pattern: java.util.regex.Pattern): java.util.Scanner; + /** + * Sets this scanner's delimiting pattern to a pattern constructed from + * the specified String. + *

An invocation of this method of the form + * useDelimiter(pattern) behaves in exactly the same way as the + * invocation useDelimiter(Pattern.compile(pattern)). + *

Invoking the {@link #reset} method will set the scanner's delimiter + * to the default. + */ + // @ts-ignore + public useDelimiter(pattern: string): java.util.Scanner; + /** + * Returns this scanner's locale. + *

A scanner's locale affects many elements of its default + * primitive matching regular expressions; see + * localized numbers above. + */ + // @ts-ignore + public locale(): java.util.Locale; + /** + * Sets this scanner's locale to the specified locale. + *

A scanner's locale affects many elements of its default + * primitive matching regular expressions; see + * localized numbers above. + *

Invoking the {@link #reset} method will set the scanner's locale to + * the initial locale. + */ + // @ts-ignore + public useLocale(locale: java.util.Locale): java.util.Scanner; + /** + * Returns this scanner's default radix. + *

A scanner's radix affects elements of its default + * number matching regular expressions; see + * localized numbers above. + */ + // @ts-ignore + public radix(): number; + /** + * Sets this scanner's default radix to the specified radix. + *

A scanner's radix affects elements of its default + * number matching regular expressions; see + * localized numbers above. + *

If the radix is less than Character.MIN_RADIX + * or greater than Character.MAX_RADIX, then an + * IllegalArgumentException is thrown. + *

Invoking the {@link #reset} method will set the scanner's radix to + * 10. + */ + // @ts-ignore + public useRadix(radix: number): java.util.Scanner; + /** + * Returns the match result of the last scanning operation performed + * by this scanner. This method throws IllegalStateException + * if no match has been performed, or if the last match was + * not successful. + *

The various nextmethods of Scanner + * make a match result available if they complete without throwing an + * exception. For instance, after an invocation of the {@link #nextInt} + * method that returned an int, this method returns a + * MatchResult for the search of the + * Integer regular expression + * defined above. Similarly the {@link #findInLine}, + * {@link #findWithinHorizon}, and {@link #skip} methods will make a + * match available if they succeed. + */ + // @ts-ignore + public match(): java.util.regex.MatchResult; + /** + *

Returns the string representation of this Scanner. The + * string representation of a Scanner contains information + * that may be useful for debugging. The exact format is unspecified. + */ + // @ts-ignore + public toString(): string; + /** + * Returns true if this scanner has another token in its input. + * This method may block while waiting for input to scan. + * The scanner does not advance past any input. + */ + // @ts-ignore + public hasNext(): boolean; + /** + * Finds and returns the next complete token from this scanner. + * A complete token is preceded and followed by input that matches + * the delimiter pattern. This method may block while waiting for input + * to scan, even if a previous invocation of {@link #hasNext} returned + * true. + */ + // @ts-ignore + public next(): string; + /** + * The remove operation is not supported by this implementation of + * Iterator. + */ + // @ts-ignore + public remove(): void; + /** + * Returns true if the next token matches the pattern constructed from the + * specified string. The scanner does not advance past any input. + *

An invocation of this method of the form hasNext(pattern) + * behaves in exactly the same way as the invocation + * hasNext(Pattern.compile(pattern)). + */ + // @ts-ignore + public hasNext(pattern: string): boolean; + /** + * Returns the next token if it matches the pattern constructed from the + * specified string. If the match is successful, the scanner advances + * past the input that matched the pattern. + *

An invocation of this method of the form next(pattern) + * behaves in exactly the same way as the invocation + * next(Pattern.compile(pattern)). + */ + // @ts-ignore + public next(pattern: string): string; + /** + * Returns true if the next complete token matches the specified pattern. + * A complete token is prefixed and postfixed by input that matches + * the delimiter pattern. This method may block while waiting for input. + * The scanner does not advance past any input. + */ + // @ts-ignore + public hasNext(pattern: java.util.regex.Pattern): boolean; + /** + * Returns the next token if it matches the specified pattern. This + * method may block while waiting for input to scan, even if a previous + * invocation of {@link #hasNext(Pattern)} returned true. + * If the match is successful, the scanner advances past the input that + * matched the pattern. + */ + // @ts-ignore + public next(pattern: java.util.regex.Pattern): string; + /** + * Returns true if there is another line in the input of this scanner. + * This method may block while waiting for input. The scanner does not + * advance past any input. + */ + // @ts-ignore + public hasNextLine(): boolean; + /** + * Advances this scanner past the current line and returns the input + * that was skipped. + * This method returns the rest of the current line, excluding any line + * separator at the end. The position is set to the beginning of the next + * line. + *

Since this method continues to search through the input looking + * for a line separator, it may buffer all of the input searching for + * the line to skip if no line separators are present. + */ + // @ts-ignore + public nextLine(): string; + /** + * Attempts to find the next occurrence of a pattern constructed from the + * specified string, ignoring delimiters. + *

An invocation of this method of the form findInLine(pattern) + * behaves in exactly the same way as the invocation + * findInLine(Pattern.compile(pattern)). + */ + // @ts-ignore + public findInLine(pattern: string): string; + /** + * Attempts to find the next occurrence of the specified pattern ignoring + * delimiters. If the pattern is found before the next line separator, the + * scanner advances past the input that matched and returns the string that + * matched the pattern. + * If no such pattern is detected in the input up to the next line + * separator, then null is returned and the scanner's + * position is unchanged. This method may block waiting for input that + * matches the pattern. + *

Since this method continues to search through the input looking + * for the specified pattern, it may buffer all of the input searching for + * the desired token if no line separators are present. + */ + // @ts-ignore + public findInLine(pattern: java.util.regex.Pattern): string; + /** + * Attempts to find the next occurrence of a pattern constructed from the + * specified string, ignoring delimiters. + *

An invocation of this method of the form + * findWithinHorizon(pattern) behaves in exactly the same way as + * the invocation + * findWithinHorizon(Pattern.compile(pattern, horizon)). + */ + // @ts-ignore + public findWithinHorizon(pattern: string, horizon: number): string; + /** + * Attempts to find the next occurrence of the specified pattern. + *

This method searches through the input up to the specified + * search horizon, ignoring delimiters. If the pattern is found the + * scanner advances past the input that matched and returns the string + * that matched the pattern. If no such pattern is detected then the + * null is returned and the scanner's position remains unchanged. This + * method may block waiting for input that matches the pattern. + *

A scanner will never search more than horizon code + * points beyond its current position. Note that a match may be clipped + * by the horizon; that is, an arbitrary match result may have been + * different if the horizon had been larger. The scanner treats the + * horizon as a transparent, non-anchoring bound (see {@link + * Matcher#useTransparentBounds} and {@link Matcher#useAnchoringBounds}). + *

If horizon is 0, then the horizon is ignored and + * this method continues to search through the input looking for the + * specified pattern without bound. In this case it may buffer all of + * the input searching for the pattern. + *

If horizon is negative, then an IllegalArgumentException is + * thrown. + */ + // @ts-ignore + public findWithinHorizon(pattern: java.util.regex.Pattern, horizon: number): string; + /** + * Skips input that matches the specified pattern, ignoring delimiters. + * This method will skip input if an anchored match of the specified + * pattern succeeds. + *

If a match to the specified pattern is not found at the + * current position, then no input is skipped and a + * NoSuchElementException is thrown. + *

Since this method seeks to match the specified pattern starting at + * the scanner's current position, patterns that can match a lot of + * input (".*", for example) may cause the scanner to buffer a large + * amount of input. + *

Note that it is possible to skip something without risking a + * NoSuchElementException by using a pattern that can + * match nothing, e.g., sc.skip("[ \t]*"). + */ + // @ts-ignore + public skip(pattern: java.util.regex.Pattern): java.util.Scanner; + /** + * Skips input that matches a pattern constructed from the specified + * string. + *

An invocation of this method of the form skip(pattern) + * behaves in exactly the same way as the invocation + * skip(Pattern.compile(pattern)). + */ + // @ts-ignore + public skip(pattern: string): java.util.Scanner; + /** + * Returns true if the next token in this scanner's input can be + * interpreted as a boolean value using a case insensitive pattern + * created from the string "true|false". The scanner does not + * advance past the input that matched. + */ + // @ts-ignore + public hasNextBoolean(): boolean; + /** + * Scans the next token of the input into a boolean value and returns + * that value. This method will throw InputMismatchException + * if the next token cannot be translated into a valid boolean value. + * If the match is successful, the scanner advances past the input that + * matched. + */ + // @ts-ignore + public nextBoolean(): boolean; + /** + * Returns true if the next token in this scanner's input can be + * interpreted as a byte value in the default radix using the + * {@link #nextByte} method. The scanner does not advance past any input. + */ + // @ts-ignore + public hasNextByte(): boolean; + /** + * Returns true if the next token in this scanner's input can be + * interpreted as a byte value in the specified radix using the + * {@link #nextByte} method. The scanner does not advance past any input. + */ + // @ts-ignore + public hasNextByte(radix: number): boolean; + /** + * Scans the next token of the input as a byte. + *

An invocation of this method of the form + * nextByte() behaves in exactly the same way as the + * invocation nextByte(radix), where radix + * is the default radix of this scanner. + */ + // @ts-ignore + public nextByte(): number; + /** + * Scans the next token of the input as a byte. + * This method will throw InputMismatchException + * if the next token cannot be translated into a valid byte value as + * described below. If the translation is successful, the scanner advances + * past the input that matched. + *

If the next token matches the Integer regular expression defined + * above then the token is converted into a byte value as if by + * removing all locale specific prefixes, group separators, and locale + * specific suffixes, then mapping non-ASCII digits into ASCII + * digits via {@link Character#digit Character.digit}, prepending a + * negative sign (-) if the locale specific negative prefixes and suffixes + * were present, and passing the resulting string to + * {@link Byte#parseByte(String, int) Byte.parseByte} with the + * specified radix. + */ + // @ts-ignore + public nextByte(radix: number): number; + /** + * Returns true if the next token in this scanner's input can be + * interpreted as a short value in the default radix using the + * {@link #nextShort} method. The scanner does not advance past any input. + */ + // @ts-ignore + public hasNextShort(): boolean; + /** + * Returns true if the next token in this scanner's input can be + * interpreted as a short value in the specified radix using the + * {@link #nextShort} method. The scanner does not advance past any input. + */ + // @ts-ignore + public hasNextShort(radix: number): boolean; + /** + * Scans the next token of the input as a short. + *

An invocation of this method of the form + * nextShort() behaves in exactly the same way as the + * invocation nextShort(radix), where radix + * is the default radix of this scanner. + */ + // @ts-ignore + public nextShort(): number; + /** + * Scans the next token of the input as a short. + * This method will throw InputMismatchException + * if the next token cannot be translated into a valid short value as + * described below. If the translation is successful, the scanner advances + * past the input that matched. + *

If the next token matches the Integer regular expression defined + * above then the token is converted into a short value as if by + * removing all locale specific prefixes, group separators, and locale + * specific suffixes, then mapping non-ASCII digits into ASCII + * digits via {@link Character#digit Character.digit}, prepending a + * negative sign (-) if the locale specific negative prefixes and suffixes + * were present, and passing the resulting string to + * {@link Short#parseShort(String, int) Short.parseShort} with the + * specified radix. + */ + // @ts-ignore + public nextShort(radix: number): number; + /** + * Returns true if the next token in this scanner's input can be + * interpreted as an int value in the default radix using the + * {@link #nextInt} method. The scanner does not advance past any input. + */ + // @ts-ignore + public hasNextInt(): boolean; + /** + * Returns true if the next token in this scanner's input can be + * interpreted as an int value in the specified radix using the + * {@link #nextInt} method. The scanner does not advance past any input. + */ + // @ts-ignore + public hasNextInt(radix: number): boolean; + /** + * Scans the next token of the input as an int. + *

An invocation of this method of the form + * nextInt() behaves in exactly the same way as the + * invocation nextInt(radix), where radix + * is the default radix of this scanner. + */ + // @ts-ignore + public nextInt(): number; + /** + * Scans the next token of the input as an int. + * This method will throw InputMismatchException + * if the next token cannot be translated into a valid int value as + * described below. If the translation is successful, the scanner advances + * past the input that matched. + *

If the next token matches the Integer regular expression defined + * above then the token is converted into an int value as if by + * removing all locale specific prefixes, group separators, and locale + * specific suffixes, then mapping non-ASCII digits into ASCII + * digits via {@link Character#digit Character.digit}, prepending a + * negative sign (-) if the locale specific negative prefixes and suffixes + * were present, and passing the resulting string to + * {@link Integer#parseInt(String, int) Integer.parseInt} with the + * specified radix. + */ + // @ts-ignore + public nextInt(radix: number): number; + /** + * Returns true if the next token in this scanner's input can be + * interpreted as a long value in the default radix using the + * {@link #nextLong} method. The scanner does not advance past any input. + */ + // @ts-ignore + public hasNextLong(): boolean; + /** + * Returns true if the next token in this scanner's input can be + * interpreted as a long value in the specified radix using the + * {@link #nextLong} method. The scanner does not advance past any input. + */ + // @ts-ignore + public hasNextLong(radix: number): boolean; + /** + * Scans the next token of the input as a long. + *

An invocation of this method of the form + * nextLong() behaves in exactly the same way as the + * invocation nextLong(radix), where radix + * is the default radix of this scanner. + */ + // @ts-ignore + public nextLong(): number; + /** + * Scans the next token of the input as a long. + * This method will throw InputMismatchException + * if the next token cannot be translated into a valid long value as + * described below. If the translation is successful, the scanner advances + * past the input that matched. + *

If the next token matches the Integer regular expression defined + * above then the token is converted into a long value as if by + * removing all locale specific prefixes, group separators, and locale + * specific suffixes, then mapping non-ASCII digits into ASCII + * digits via {@link Character#digit Character.digit}, prepending a + * negative sign (-) if the locale specific negative prefixes and suffixes + * were present, and passing the resulting string to + * {@link Long#parseLong(String, int) Long.parseLong} with the + * specified radix. + */ + // @ts-ignore + public nextLong(radix: number): number; + /** + * Returns true if the next token in this scanner's input can be + * interpreted as a float value using the {@link #nextFloat} + * method. The scanner does not advance past any input. + */ + // @ts-ignore + public hasNextFloat(): boolean; + /** + * Scans the next token of the input as a float. + * This method will throw InputMismatchException + * if the next token cannot be translated into a valid float value as + * described below. If the translation is successful, the scanner advances + * past the input that matched. + *

If the next token matches the Float regular expression defined above + * then the token is converted into a float value as if by + * removing all locale specific prefixes, group separators, and locale + * specific suffixes, then mapping non-ASCII digits into ASCII + * digits via {@link Character#digit Character.digit}, prepending a + * negative sign (-) if the locale specific negative prefixes and suffixes + * were present, and passing the resulting string to + * {@link Float#parseFloat Float.parseFloat}. If the token matches + * the localized NaN or infinity strings, then either "Nan" or "Infinity" + * is passed to {@link Float#parseFloat(String) Float.parseFloat} as + * appropriate. + */ + // @ts-ignore + public nextFloat(): number; + /** + * Returns true if the next token in this scanner's input can be + * interpreted as a double value using the {@link #nextDouble} + * method. The scanner does not advance past any input. + */ + // @ts-ignore + public hasNextDouble(): boolean; + /** + * Scans the next token of the input as a double. + * This method will throw InputMismatchException + * if the next token cannot be translated into a valid double value. + * If the translation is successful, the scanner advances past the input + * that matched. + *

If the next token matches the Float regular expression defined above + * then the token is converted into a double value as if by + * removing all locale specific prefixes, group separators, and locale + * specific suffixes, then mapping non-ASCII digits into ASCII + * digits via {@link Character#digit Character.digit}, prepending a + * negative sign (-) if the locale specific negative prefixes and suffixes + * were present, and passing the resulting string to + * {@link Double#parseDouble Double.parseDouble}. If the token matches + * the localized NaN or infinity strings, then either "Nan" or "Infinity" + * is passed to {@link Double#parseDouble(String) Double.parseDouble} as + * appropriate. + */ + // @ts-ignore + public nextDouble(): number; + /** + * Returns true if the next token in this scanner's input can be + * interpreted as a BigInteger in the default radix using the + * {@link #nextBigInteger} method. The scanner does not advance past any + * input. + */ + // @ts-ignore + public hasNextBigInteger(): boolean; + /** + * Returns true if the next token in this scanner's input can be + * interpreted as a BigInteger in the specified radix using + * the {@link #nextBigInteger} method. The scanner does not advance past + * any input. + */ + // @ts-ignore + public hasNextBigInteger(radix: number): boolean; + /** + * Scans the next token of the input as a {@link java.math.BigInteger + * BigInteger}. + *

An invocation of this method of the form + * nextBigInteger() behaves in exactly the same way as the + * invocation nextBigInteger(radix), where radix + * is the default radix of this scanner. + */ + // @ts-ignore + public nextBigInteger(): java.math.BigInteger; + /** + * Scans the next token of the input as a {@link java.math.BigInteger + * BigInteger}. + *

If the next token matches the Integer regular expression defined + * above then the token is converted into a BigInteger value as if + * by removing all group separators, mapping non-ASCII digits into ASCII + * digits via the {@link Character#digit Character.digit}, and passing the + * resulting string to the {@link + * java.math.BigInteger#BigInteger(java.lang.String) + * BigInteger(String, int)} constructor with the specified radix. + */ + // @ts-ignore + public nextBigInteger(radix: number): java.math.BigInteger; + /** + * Returns true if the next token in this scanner's input can be + * interpreted as a BigDecimal using the + * {@link #nextBigDecimal} method. The scanner does not advance past any + * input. + */ + // @ts-ignore + public hasNextBigDecimal(): boolean; + /** + * Scans the next token of the input as a {@link java.math.BigDecimal + * BigDecimal}. + *

If the next token matches the Decimal regular expression defined + * above then the token is converted into a BigDecimal value as if + * by removing all group separators, mapping non-ASCII digits into ASCII + * digits via the {@link Character#digit Character.digit}, and passing the + * resulting string to the {@link + * java.math.BigDecimal#BigDecimal(java.lang.String) BigDecimal(String)} + * constructor. + */ + // @ts-ignore + public nextBigDecimal(): java.math.BigDecimal; + /** + * Resets this scanner. + *

Resetting a scanner discards all of its explicit state + * information which may have been changed by invocations of {@link + * #useDelimiter}, {@link #useLocale}, or {@link #useRadix}. + *

An invocation of this method of the form + * scanner.reset() behaves in exactly the same way as the + * invocation + *

{@code
+             * scanner.useDelimiter("\\p{javaWhitespace}+")
+             * .useLocale(Locale.getDefault(Locale.Category.FORMAT))
+             * .useRadix(10);
+             * }
+ */ + // @ts-ignore + public reset(): java.util.Scanner; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.ServiceConfigurationError.d.ts b/packages/types/dist/typings/jdk/java.util.ServiceConfigurationError.d.ts new file mode 100644 index 00000000..d5133a82 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.ServiceConfigurationError.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class ServiceConfigurationError extends java.lang.Error { + /** + * Constructs a new instance with the specified message. + */ + // @ts-ignore + constructor(msg: string) + /** + * Constructs a new instance with the specified message and cause. + */ + // @ts-ignore + constructor(msg: string, cause: java.lang.Throwable) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.ServiceLoader.d.ts b/packages/types/dist/typings/jdk/java.util.ServiceLoader.d.ts new file mode 100644 index 00000000..75a6b9b9 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.ServiceLoader.d.ts @@ -0,0 +1,95 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class ServiceLoader extends java.lang.Object { + /** + * Clear this loader's provider cache so that all providers will be + * reloaded. + *

After invoking this method, subsequent invocations of the {@link + * #iterator() iterator} method will lazily look up and instantiate + * providers from scratch, just as is done by a newly-created loader. + *

This method is intended for use in situations in which new providers + * can be installed into a running Java virtual machine. + */ + // @ts-ignore + public reload(): void; + /** + * Lazily loads the available providers of this loader's service. + *

The iterator returned by this method first yields all of the + * elements of the provider cache, in instantiation order. It then lazily + * loads and instantiates any remaining providers, adding each one to the + * cache in turn. + *

To achieve laziness the actual work of parsing the available + * provider-configuration files and instantiating providers must be done by + * the iterator itself. Its {@link java.util.Iterator#hasNext hasNext} and + * {@link java.util.Iterator#next next} methods can therefore throw a + * {@link ServiceConfigurationError} if a provider-configuration file + * violates the specified format, or if it names a provider class that + * cannot be found and instantiated, or if the result of instantiating the + * class is not assignable to the service type, or if any other kind of + * exception or error is thrown as the next provider is located and + * instantiated. To write robust code it is only necessary to catch {@link + * ServiceConfigurationError} when using a service iterator. + *

If such an error is thrown then subsequent invocations of the + * iterator will make a best effort to locate and instantiate the next + * available provider, but in general such recovery cannot be guaranteed. + *

Design Note + * Throwing an error in these cases may seem extreme. The rationale for + * this behavior is that a malformed provider-configuration file, like a + * malformed class file, indicates a serious problem with the way the Java + * virtual machine is configured or is being used. As such it is + * preferable to throw an error rather than try to recover or, even worse, + * fail silently.
+ *

The iterator returned by this method does not support removal. + * Invoking its {@link java.util.Iterator#remove() remove} method will + * cause an {@link UnsupportedOperationException} to be thrown. + */ + // @ts-ignore + public iterator(): java.util.Iterator; + /** + * Creates a new service loader for the given service type and class + * loader. + */ + // @ts-ignore + public static load(service: java.lang.Class, loader: java.lang.ClassLoader): java.util.ServiceLoader; + /** + * Creates a new service loader for the given service type, using the + * current thread's {@linkplain java.lang.Thread#getContextClassLoader + * context class loader}. + *

An invocation of this convenience method of the form + *

+             * ServiceLoader.load(service)
+ * is equivalent to + *
+             * ServiceLoader.load(service,
+             * Thread.currentThread().getContextClassLoader())
+ */ + // @ts-ignore + public static load(service: java.lang.Class): java.util.ServiceLoader; + /** + * Creates a new service loader for the given service type, using the + * extension class loader. + *

This convenience method simply locates the extension class loader, + * call it extClassLoader, and then returns + *

+             * ServiceLoader.load(service, extClassLoader)
+ *

If the extension class loader cannot be found then the system class + * loader is used; if there is no system class loader then the bootstrap + * class loader is used. + *

This method is intended for use when only installed providers are + * desired. The resulting service will only find and load providers that + * have been installed into the current Java virtual machine; providers on + * the application's class path will be ignored. + */ + // @ts-ignore + public static loadInstalled(service: java.lang.Class): java.util.ServiceLoader; + /** + * Returns a string describing this service. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Set.d.ts b/packages/types/dist/typings/jdk/java.util.Set.d.ts new file mode 100644 index 00000000..a5800b72 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Set.d.ts @@ -0,0 +1,181 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + interface Set { + /** + * Returns the number of elements in this set (its cardinality). If this + * set contains more than Integer.MAX_VALUE elements, returns + * Integer.MAX_VALUE. + */ + // @ts-ignore + size(): number; + /** + * Returns true if this set contains no elements. + */ + // @ts-ignore + isEmpty(): boolean; + /** + * Returns true if this set contains the specified element. + * More formally, returns true if and only if this set + * contains an element e such that + * (o==null ? e==null : o.equals(e)). + */ + // @ts-ignore + contains(o: java.lang.Object): boolean; + /** + * Returns an iterator over the elements in this set. The elements are + * returned in no particular order (unless this set is an instance of some + * class that provides a guarantee). + */ + // @ts-ignore + iterator(): java.util.Iterator; + /** + * Returns an array containing all of the elements in this set. + * If this set makes any guarantees as to what order its elements + * are returned by its iterator, this method must return the + * elements in the same order. + *

The returned array will be "safe" in that no references to it + * are maintained by this set. (In other words, this method must + * allocate a new array even if this set is backed by an array). + * The caller is thus free to modify the returned array. + *

This method acts as bridge between array-based and collection-based + * APIs. + */ + // @ts-ignore + toArray(): java.lang.Object[]; + /** + * Returns an array containing all of the elements in this set; the + * runtime type of the returned array is that of the specified array. + * If the set fits in the specified array, it is returned therein. + * Otherwise, a new array is allocated with the runtime type of the + * specified array and the size of this set. + *

If this set fits in the specified array with room to spare + * (i.e., the array has more elements than this set), the element in + * the array immediately following the end of the set is set to + * null. (This is useful in determining the length of this + * set only if the caller knows that this set does not contain + * any null elements.) + *

If this set makes any guarantees as to what order its elements + * are returned by its iterator, this method must return the elements + * in the same order. + *

Like the {@link #toArray()} method, this method acts as bridge between + * array-based and collection-based APIs. Further, this method allows + * precise control over the runtime type of the output array, and may, + * under certain circumstances, be used to save allocation costs. + *

Suppose x is a set known to contain only strings. + * The following code can be used to dump the set into a newly allocated + * array of String: + *

+             * String[] y = x.toArray(new String[0]);
+ * Note that toArray(new Object[0]) is identical in function to + * toArray(). + */ + // @ts-ignore + toArray(a: java.lang.Object): java.lang.Object[]; + /** + * Adds the specified element to this set if it is not already present + * (optional operation). More formally, adds the specified element + * e to this set if the set contains no element e2 + * such that + * (e==null ? e2==null : e.equals(e2)). + * If this set already contains the element, the call leaves the set + * unchanged and returns false. In combination with the + * restriction on constructors, this ensures that sets never contain + * duplicate elements. + *

The stipulation above does not imply that sets must accept all + * elements; sets may refuse to add any particular element, including + * null, and throw an exception, as described in the + * specification for {@link Collection#add Collection.add}. + * Individual set implementations should clearly document any + * restrictions on the elements that they may contain. + */ + // @ts-ignore + add(e: java.lang.Object): boolean; + /** + * Removes the specified element from this set if it is present + * (optional operation). More formally, removes an element e + * such that + * (o==null ? e==null : o.equals(e)), if + * this set contains such an element. Returns true if this set + * contained the element (or equivalently, if this set changed as a + * result of the call). (This set will not contain the element once the + * call returns.) + */ + // @ts-ignore + remove(o: java.lang.Object): boolean; + /** + * Returns true if this set contains all of the elements of the + * specified collection. If the specified collection is also a set, this + * method returns true if it is a subset of this set. + */ + // @ts-ignore + containsAll(c: java.util.Collection): boolean; + /** + * Adds all of the elements in the specified collection to this set if + * they're not already present (optional operation). If the specified + * collection is also a set, the addAll operation effectively + * modifies this set so that its value is the union of the two + * sets. The behavior of this operation is undefined if the specified + * collection is modified while the operation is in progress. + */ + // @ts-ignore + addAll(c: java.util.Collection): boolean; + /** + * Retains only the elements in this set that are contained in the + * specified collection (optional operation). In other words, removes + * from this set all of its elements that are not contained in the + * specified collection. If the specified collection is also a set, this + * operation effectively modifies this set so that its value is the + * intersection of the two sets. + */ + // @ts-ignore + retainAll(c: java.util.Collection): boolean; + /** + * Removes from this set all of its elements that are contained in the + * specified collection (optional operation). If the specified + * collection is also a set, this operation effectively modifies this + * set so that its value is the asymmetric set difference of + * the two sets. + */ + // @ts-ignore + removeAll(c: java.util.Collection): boolean; + /** + * Removes all of the elements from this set (optional operation). + * The set will be empty after this call returns. + */ + // @ts-ignore + clear(): void; + /** + * Compares the specified object with this set for equality. Returns + * true if the specified object is also a set, the two sets + * have the same size, and every member of the specified set is + * contained in this set (or equivalently, every member of this set is + * contained in the specified set). This definition ensures that the + * equals method works properly across different implementations of the + * set interface. + */ + // @ts-ignore + equals(o: java.lang.Object): boolean; + /** + * Returns the hash code value for this set. The hash code of a set is + * defined to be the sum of the hash codes of the elements in the set, + * where the hash code of a null element is defined to be zero. + * This ensures that s1.equals(s2) implies that + * s1.hashCode()==s2.hashCode() for any two sets s1 + * and s2, as required by the general contract of + * {@link Object#hashCode}. + */ + // @ts-ignore + hashCode(): number; + /** + * Creates a {@code Spliterator} over the elements in this set. + *

The {@code Spliterator} reports {@link Spliterator#DISTINCT}. + * Implementations should document the reporting of additional + * characteristic values. + */ + // @ts-ignore + spliterator(): java.util.Spliterator; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.SimpleTimeZone.d.ts b/packages/types/dist/typings/jdk/java.util.SimpleTimeZone.d.ts new file mode 100644 index 00000000..14f43e3d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.SimpleTimeZone.d.ts @@ -0,0 +1,217 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class SimpleTimeZone extends java.util.TimeZone { + /** + * Constructs a SimpleTimeZone with the given base time zone offset from GMT + * and time zone ID with no daylight saving time schedule. + */ + // @ts-ignore + constructor(rawOffset: number, ID: string) + /** + * Constructs a SimpleTimeZone with the given base time zone offset from + * GMT, time zone ID, and rules for starting and ending the daylight + * time. + * Both startTime and endTime are specified to be + * represented in the wall clock time. The amount of daylight saving is + * assumed to be 3600000 milliseconds (i.e., one hour). This constructor is + * equivalent to: + *


+             * SimpleTimeZone(rawOffset,
+             * ID,
+             * startMonth,
+             * startDay,
+             * startDayOfWeek,
+             * startTime,
+             * SimpleTimeZone.{@link #WALL_TIME},
+             * endMonth,
+             * endDay,
+             * endDayOfWeek,
+             * endTime,
+             * SimpleTimeZone.{@link #WALL_TIME},
+             * 3600000)
+             * 
+ */ + // @ts-ignore + constructor(rawOffset: number, ID: string, startMonth: number, startDay: number, startDayOfWeek: number, startTime: number, endMonth: number, endDay: number, endDayOfWeek: number, endTime: number) + /** + * Constructs a SimpleTimeZone with the given base time zone offset from + * GMT, time zone ID, and rules for starting and ending the daylight + * time. + * Both startTime and endTime are assumed to be + * represented in the wall clock time. This constructor is equivalent to: + *

+             * SimpleTimeZone(rawOffset,
+             * ID,
+             * startMonth,
+             * startDay,
+             * startDayOfWeek,
+             * startTime,
+             * SimpleTimeZone.{@link #WALL_TIME},
+             * endMonth,
+             * endDay,
+             * endDayOfWeek,
+             * endTime,
+             * SimpleTimeZone.{@link #WALL_TIME},
+             * dstSavings)
+             * 
+ */ + // @ts-ignore + constructor(rawOffset: number, ID: string, startMonth: number, startDay: number, startDayOfWeek: number, startTime: number, endMonth: number, endDay: number, endDayOfWeek: number, endTime: number, dstSavings: number) + /** + * Constructs a SimpleTimeZone with the given base time zone offset from + * GMT, time zone ID, and rules for starting and ending the daylight + * time. + * This constructor takes the full set of the start and end rules + * parameters, including modes of startTime and + * endTime. The mode specifies either {@link #WALL_TIME wall + * time} or {@link #STANDARD_TIME standard time} or {@link #UTC_TIME UTC + * time}. + */ + // @ts-ignore + constructor(rawOffset: number, ID: string, startMonth: number, startDay: number, startDayOfWeek: number, startTime: number, startTimeMode: number, endMonth: number, endDay: number, endDayOfWeek: number, endTime: number, endTimeMode: number, dstSavings: number) + // @ts-ignore + public static WALL_TIME: number; + // @ts-ignore + public static STANDARD_TIME: number; + // @ts-ignore + public static UTC_TIME: number; + /** + * Sets the daylight saving time starting year. + */ + // @ts-ignore + public setStartYear(year: number): void; + /** + * Sets the daylight saving time start rule. For example, if daylight saving + * time starts on the first Sunday in April at 2 am in local wall clock + * time, you can set the start rule by calling: + *
setStartRule(Calendar.APRIL, 1, Calendar.SUNDAY, 2*60*60*1000);
+ */ + // @ts-ignore + public setStartRule(startMonth: number, startDay: number, startDayOfWeek: number, startTime: number): void; + /** + * Sets the daylight saving time start rule to a fixed date within a month. + * This method is equivalent to: + *
setStartRule(startMonth, startDay, 0, startTime)
+ */ + // @ts-ignore + public setStartRule(startMonth: number, startDay: number, startTime: number): void; + /** + * Sets the daylight saving time start rule to a weekday before or after the given date within + * a month, e.g., the first Monday on or after the 8th. + */ + // @ts-ignore + public setStartRule(startMonth: number, startDay: number, startDayOfWeek: number, startTime: number, after: boolean): void; + /** + * Sets the daylight saving time end rule. For example, if daylight saving time + * ends on the last Sunday in October at 2 am in wall clock time, + * you can set the end rule by calling: + * setEndRule(Calendar.OCTOBER, -1, Calendar.SUNDAY, 2*60*60*1000); + */ + // @ts-ignore + public setEndRule(endMonth: number, endDay: number, endDayOfWeek: number, endTime: number): void; + /** + * Sets the daylight saving time end rule to a fixed date within a month. + * This method is equivalent to: + *
setEndRule(endMonth, endDay, 0, endTime)
+ */ + // @ts-ignore + public setEndRule(endMonth: number, endDay: number, endTime: number): void; + /** + * Sets the daylight saving time end rule to a weekday before or after the given date within + * a month, e.g., the first Monday on or after the 8th. + */ + // @ts-ignore + public setEndRule(endMonth: number, endDay: number, endDayOfWeek: number, endTime: number, after: boolean): void; + /** + * Returns the offset of this time zone from UTC at the given + * time. If daylight saving time is in effect at the given time, + * the offset value is adjusted with the amount of daylight + * saving. + */ + // @ts-ignore + public getOffset(date: number): number; + /** + * Returns the difference in milliseconds between local time and + * UTC, taking into account both the raw offset and the effect of + * daylight saving, for the specified date and time. This method + * assumes that the start and end month are distinct. It also + * uses a default {@link GregorianCalendar} object as its + * underlying calendar, such as for determining leap years. Do + * not use the result of this method with a calendar other than a + * default GregorianCalendar. + *

Note: In general, clients should use + * Calendar.get(ZONE_OFFSET) + Calendar.get(DST_OFFSET) + * instead of calling this method. + */ + // @ts-ignore + public getOffset(era: number, year: number, month: number, day: number, dayOfWeek: number, millis: number): number; + /** + * Gets the GMT offset for this time zone. + */ + // @ts-ignore + public getRawOffset(): number; + /** + * Sets the base time zone offset to GMT. + * This is the offset to add to UTC to get local time. + */ + // @ts-ignore + public setRawOffset(offsetMillis: number): void; + /** + * Sets the amount of time in milliseconds that the clock is advanced + * during daylight saving time. + */ + // @ts-ignore + public setDSTSavings(millisSavedDuringDST: number): void; + /** + * Returns the amount of time in milliseconds that the clock is + * advanced during daylight saving time. + */ + // @ts-ignore + public getDSTSavings(): number; + /** + * Queries if this time zone uses daylight saving time. + */ + // @ts-ignore + public useDaylightTime(): boolean; + /** + * Returns {@code true} if this {@code SimpleTimeZone} observes + * Daylight Saving Time. This method is equivalent to {@link + * #useDaylightTime()}. + */ + // @ts-ignore + public observesDaylightTime(): boolean; + /** + * Queries if the given date is in daylight saving time. + */ + // @ts-ignore + public inDaylightTime(date: java.util.Date): boolean; + /** + * Returns a clone of this SimpleTimeZone instance. + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Generates the hash code for the SimpleDateFormat object. + */ + // @ts-ignore + public hashCode(): number; + /** + * Compares the equality of two SimpleTimeZone objects. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Returns true if this zone has the same rules and offset as another zone. + */ + // @ts-ignore + public hasSameRules(other: java.util.TimeZone): boolean; + /** + * Returns a string representation of this time zone. + */ + // @ts-ignore + public toString(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.SortedMap.d.ts b/packages/types/dist/typings/jdk/java.util.SortedMap.d.ts new file mode 100644 index 00000000..ed9432fa --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.SortedMap.d.ts @@ -0,0 +1,110 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + interface SortedMap { + /** + * Returns the comparator used to order the keys in this map, or + * {@code null} if this map uses the {@linkplain Comparable + * natural ordering} of its keys. + */ + // @ts-ignore + comparator(): java.util.Comparator; + /** + * Returns a view of the portion of this map whose keys range from + * {@code fromKey}, inclusive, to {@code toKey}, exclusive. (If + * {@code fromKey} and {@code toKey} are equal, the returned map + * is empty.) The returned map is backed by this map, so changes + * in the returned map are reflected in this map, and vice-versa. + * The returned map supports all optional map operations that this + * map supports. + *

The returned map will throw an {@code IllegalArgumentException} + * on an attempt to insert a key outside its range. + */ + // @ts-ignore + subMap(fromKey: java.lang.Object, toKey: java.lang.Object): java.util.SortedMap; + /** + * Returns a view of the portion of this map whose keys are + * strictly less than {@code toKey}. The returned map is backed + * by this map, so changes in the returned map are reflected in + * this map, and vice-versa. The returned map supports all + * optional map operations that this map supports. + *

The returned map will throw an {@code IllegalArgumentException} + * on an attempt to insert a key outside its range. + */ + // @ts-ignore + headMap(toKey: java.lang.Object): java.util.SortedMap; + /** + * Returns a view of the portion of this map whose keys are + * greater than or equal to {@code fromKey}. The returned map is + * backed by this map, so changes in the returned map are + * reflected in this map, and vice-versa. The returned map + * supports all optional map operations that this map supports. + *

The returned map will throw an {@code IllegalArgumentException} + * on an attempt to insert a key outside its range. + */ + // @ts-ignore + tailMap(fromKey: java.lang.Object): java.util.SortedMap; + /** + * Returns the first (lowest) key currently in this map. + */ + // @ts-ignore + firstKey(): java.lang.Object; + /** + * Returns the last (highest) key currently in this map. + */ + // @ts-ignore + lastKey(): java.lang.Object; + /** + * Returns a {@link Set} view of the keys contained in this map. + * The set's iterator returns the keys in ascending order. + * The set is backed by the map, so changes to the map are + * reflected in the set, and vice-versa. If the map is modified + * while an iteration over the set is in progress (except through + * the iterator's own {@code remove} operation), the results of + * the iteration are undefined. The set supports element removal, + * which removes the corresponding mapping from the map, via the + * {@code Iterator.remove}, {@code Set.remove}, + * {@code removeAll}, {@code retainAll}, and {@code clear} + * operations. It does not support the {@code add} or {@code addAll} + * operations. + */ + // @ts-ignore + keySet(): java.util.Set; + /** + * Returns a {@link Collection} view of the values contained in this map. + * The collection's iterator returns the values in ascending order + * of the corresponding keys. + * The collection is backed by the map, so changes to the map are + * reflected in the collection, and vice-versa. If the map is + * modified while an iteration over the collection is in progress + * (except through the iterator's own {@code remove} operation), + * the results of the iteration are undefined. The collection + * supports element removal, which removes the corresponding + * mapping from the map, via the {@code Iterator.remove}, + * {@code Collection.remove}, {@code removeAll}, + * {@code retainAll} and {@code clear} operations. It does not + * support the {@code add} or {@code addAll} operations. + */ + // @ts-ignore + values(): java.util.Collection; + /** + * Returns a {@link Set} view of the mappings contained in this map. + * The set's iterator returns the entries in ascending key order. + * The set is backed by the map, so changes to the map are + * reflected in the set, and vice-versa. If the map is modified + * while an iteration over the set is in progress (except through + * the iterator's own {@code remove} operation, or through the + * {@code setValue} operation on a map entry returned by the + * iterator) the results of the iteration are undefined. The set + * supports element removal, which removes the corresponding + * mapping from the map, via the {@code Iterator.remove}, + * {@code Set.remove}, {@code removeAll}, {@code retainAll} and + * {@code clear} operations. It does not support the + * {@code add} or {@code addAll} operations. + */ + // @ts-ignore + entrySet(): java.util.Set; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.SortedSet.d.ts b/packages/types/dist/typings/jdk/java.util.SortedSet.d.ts new file mode 100644 index 00000000..e064c7b4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.SortedSet.d.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + interface SortedSet { + /** + * Returns the comparator used to order the elements in this set, + * or null if this set uses the {@linkplain Comparable + * natural ordering} of its elements. + */ + // @ts-ignore + comparator(): java.util.Comparator; + /** + * Returns a view of the portion of this set whose elements range + * from fromElement, inclusive, to toElement, + * exclusive. (If fromElement and toElement are + * equal, the returned set is empty.) The returned set is backed + * by this set, so changes in the returned set are reflected in + * this set, and vice-versa. The returned set supports all + * optional set operations that this set supports. + *

The returned set will throw an IllegalArgumentException + * on an attempt to insert an element outside its range. + */ + // @ts-ignore + subSet(fromElement: java.lang.Object, toElement: java.lang.Object): java.util.SortedSet; + /** + * Returns a view of the portion of this set whose elements are + * strictly less than toElement. The returned set is + * backed by this set, so changes in the returned set are + * reflected in this set, and vice-versa. The returned set + * supports all optional set operations that this set supports. + *

The returned set will throw an IllegalArgumentException + * on an attempt to insert an element outside its range. + */ + // @ts-ignore + headSet(toElement: java.lang.Object): java.util.SortedSet; + /** + * Returns a view of the portion of this set whose elements are + * greater than or equal to fromElement. The returned + * set is backed by this set, so changes in the returned set are + * reflected in this set, and vice-versa. The returned set + * supports all optional set operations that this set supports. + *

The returned set will throw an IllegalArgumentException + * on an attempt to insert an element outside its range. + */ + // @ts-ignore + tailSet(fromElement: java.lang.Object): java.util.SortedSet; + /** + * Returns the first (lowest) element currently in this set. + */ + // @ts-ignore + first(): java.lang.Object; + /** + * Returns the last (highest) element currently in this set. + */ + // @ts-ignore + last(): java.lang.Object; + /** + * Creates a {@code Spliterator} over the elements in this sorted set. + *

The {@code Spliterator} reports {@link Spliterator#DISTINCT}, + * {@link Spliterator#SORTED} and {@link Spliterator#ORDERED}. + * Implementations should document the reporting of additional + * characteristic values. + *

The spliterator's comparator (see + * {@link java.util.Spliterator#getComparator()}) must be {@code null} if + * the sorted set's comparator (see {@link #comparator()}) is {@code null}. + * Otherwise, the spliterator's comparator must be the same as or impose the + * same total ordering as the sorted set's comparator. + */ + // @ts-ignore + spliterator(): java.util.Spliterator; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Spliterator.OfDouble.d.ts b/packages/types/dist/typings/jdk/java.util.Spliterator.OfDouble.d.ts new file mode 100644 index 00000000..92e9ae2d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Spliterator.OfDouble.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace Spliterator { + // @ts-ignore + interface OfDouble { + // @ts-ignore + trySplit(): java.util.Spliterator.OfDouble; + // @ts-ignore + tryAdvance(action: java.util.function$.DoubleConsumer): boolean; + // @ts-ignore + forEachRemaining(action: java.util.function$.DoubleConsumer): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + tryAdvance(action: java.util.function$.Consumer): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + forEachRemaining(action: java.util.function$.Consumer): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Spliterator.OfInt.d.ts b/packages/types/dist/typings/jdk/java.util.Spliterator.OfInt.d.ts new file mode 100644 index 00000000..7b83b067 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Spliterator.OfInt.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace Spliterator { + // @ts-ignore + interface OfInt { + // @ts-ignore + trySplit(): java.util.Spliterator.OfInt; + // @ts-ignore + tryAdvance(action: java.util.function$.IntConsumer): boolean; + // @ts-ignore + forEachRemaining(action: java.util.function$.IntConsumer): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + tryAdvance(action: java.util.function$.Consumer): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + forEachRemaining(action: java.util.function$.Consumer): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Spliterator.OfLong.d.ts b/packages/types/dist/typings/jdk/java.util.Spliterator.OfLong.d.ts new file mode 100644 index 00000000..dfc780d0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Spliterator.OfLong.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace Spliterator { + // @ts-ignore + interface OfLong { + // @ts-ignore + trySplit(): java.util.Spliterator.OfLong; + // @ts-ignore + tryAdvance(action: java.util.function$.LongConsumer): boolean; + // @ts-ignore + forEachRemaining(action: java.util.function$.LongConsumer): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + tryAdvance(action: java.util.function$.Consumer): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + forEachRemaining(action: java.util.function$.Consumer): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Spliterator.OfPrimitive.d.ts b/packages/types/dist/typings/jdk/java.util.Spliterator.OfPrimitive.d.ts new file mode 100644 index 00000000..c02a5b3a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Spliterator.OfPrimitive.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace Spliterator { + // @ts-ignore + interface OfPrimitive { + // @ts-ignore + trySplit(): java.util.Spliterator.OfPrimitive; + /** + * If a remaining element exists, performs the given action on it, + * returning {@code true}; else returns {@code false}. If this + * Spliterator is {@link #ORDERED} the action is performed on the + * next element in encounter order. Exceptions thrown by the + * action are relayed to the caller. + */ + // @ts-ignore + tryAdvance(action: java.lang.Object): boolean; + /** + * Performs the given action for each remaining element, sequentially in + * the current thread, until all elements have been processed or the + * action throws an exception. If this Spliterator is {@link #ORDERED}, + * actions are performed in encounter order. Exceptions thrown by the + * action are relayed to the caller. + */ + // @ts-ignore + forEachRemaining(action: java.lang.Object): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Spliterator.d.ts b/packages/types/dist/typings/jdk/java.util.Spliterator.d.ts new file mode 100644 index 00000000..549eaee0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Spliterator.d.ts @@ -0,0 +1,115 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + interface Spliterator { + // @ts-ignore + ORDERED: number; + // @ts-ignore + DISTINCT: number; + // @ts-ignore + SORTED: number; + // @ts-ignore + SIZED: number; + // @ts-ignore + NONNULL: number; + // @ts-ignore + IMMUTABLE: number; + // @ts-ignore + CONCURRENT: number; + // @ts-ignore + SUBSIZED: number; + /** + * If a remaining element exists, performs the given action on it, + * returning {@code true}; else returns {@code false}. If this + * Spliterator is {@link #ORDERED} the action is performed on the + * next element in encounter order. Exceptions thrown by the + * action are relayed to the caller. + */ + // @ts-ignore + tryAdvance(action: java.util.function$.Consumer): boolean; + /** + * Performs the given action for each remaining element, sequentially in + * the current thread, until all elements have been processed or the action + * throws an exception. If this Spliterator is {@link #ORDERED}, actions + * are performed in encounter order. Exceptions thrown by the action + * are relayed to the caller. + */ + // @ts-ignore + forEachRemaining(action: java.util.function$.Consumer): void; + /** + * If this spliterator can be partitioned, returns a Spliterator + * covering elements, that will, upon return from this method, not + * be covered by this Spliterator. + *

If this Spliterator is {@link #ORDERED}, the returned Spliterator + * must cover a strict prefix of the elements. + *

Unless this Spliterator covers an infinite number of elements, + * repeated calls to {@code trySplit()} must eventually return {@code null}. + * Upon non-null return: + *

    + *
  • the value reported for {@code estimateSize()} before splitting, + * must, after splitting, be greater than or equal to {@code estimateSize()} + * for this and the returned Spliterator; and
  • + *
  • if this Spliterator is {@code SUBSIZED}, then {@code estimateSize()} + * for this spliterator before splitting must be equal to the sum of + * {@code estimateSize()} for this and the returned Spliterator after + * splitting.
  • + *
+ *

This method may return {@code null} for any reason, + * including emptiness, inability to split after traversal has + * commenced, data structure constraints, and efficiency + * considerations. + */ + // @ts-ignore + trySplit(): java.util.Spliterator; + /** + * Returns an estimate of the number of elements that would be + * encountered by a {@link #forEachRemaining} traversal, or returns {@link + * Long#MAX_VALUE} if infinite, unknown, or too expensive to compute. + *

If this Spliterator is {@link #SIZED} and has not yet been partially + * traversed or split, or this Spliterator is {@link #SUBSIZED} and has + * not yet been partially traversed, this estimate must be an accurate + * count of elements that would be encountered by a complete traversal. + * Otherwise, this estimate may be arbitrarily inaccurate, but must decrease + * as specified across invocations of {@link #trySplit}. + */ + // @ts-ignore + estimateSize(): number; + /** + * Convenience method that returns {@link #estimateSize()} if this + * Spliterator is {@link #SIZED}, else {@code -1}. + */ + // @ts-ignore + getExactSizeIfKnown(): number; + /** + * Returns a set of characteristics of this Spliterator and its + * elements. The result is represented as ORed values from {@link + * #ORDERED}, {@link #DISTINCT}, {@link #SORTED}, {@link #SIZED}, + * {@link #NONNULL}, {@link #IMMUTABLE}, {@link #CONCURRENT}, + * {@link #SUBSIZED}. Repeated calls to {@code characteristics()} on + * a given spliterator, prior to or in-between calls to {@code trySplit}, + * should always return the same result. + *

If a Spliterator reports an inconsistent set of + * characteristics (either those returned from a single invocation + * or across multiple invocations), no guarantees can be made + * about any computation using this Spliterator. + */ + // @ts-ignore + characteristics(): number; + /** + * Returns {@code true} if this Spliterator's {@link + * #characteristics} contain all of the given characteristics. + */ + // @ts-ignore + hasCharacteristics(characteristics: number): boolean; + /** + * If this Spliterator's source is {@link #SORTED} by a {@link Comparator}, + * returns that {@code Comparator}. If the source is {@code SORTED} in + * {@linkplain Comparable natural order}, returns {@code null}. Otherwise, + * if the source is not {@code SORTED}, throws {@link IllegalStateException}. + */ + // @ts-ignore + getComparator(): java.util.Comparator; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Spliterators.AbstractDoubleSpliterator.d.ts b/packages/types/dist/typings/jdk/java.util.Spliterators.AbstractDoubleSpliterator.d.ts new file mode 100644 index 00000000..b105d3a6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Spliterators.AbstractDoubleSpliterator.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace Spliterators { + // @ts-ignore + abstract class AbstractDoubleSpliterator extends java.lang.Object { + /** + * Creates a spliterator reporting the given estimated size and + * characteristics. + */ + // @ts-ignore + constructor(est: number, additionalCharacteristics: number) + /** + * {@inheritDoc} + * This implementation permits limited parallelism. + */ + // @ts-ignore + public trySplit(): java.util.Spliterator.OfDouble; + /** + * {@inheritDoc} + */ + // @ts-ignore + public estimateSize(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public characteristics(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Spliterators.AbstractIntSpliterator.d.ts b/packages/types/dist/typings/jdk/java.util.Spliterators.AbstractIntSpliterator.d.ts new file mode 100644 index 00000000..cc974cbf --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Spliterators.AbstractIntSpliterator.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace Spliterators { + // @ts-ignore + abstract class AbstractIntSpliterator extends java.lang.Object { + /** + * Creates a spliterator reporting the given estimated size and + * characteristics. + */ + // @ts-ignore + constructor(est: number, additionalCharacteristics: number) + /** + * {@inheritDoc} + * This implementation permits limited parallelism. + */ + // @ts-ignore + public trySplit(): java.util.Spliterator.OfInt; + /** + * {@inheritDoc} + */ + // @ts-ignore + public estimateSize(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public characteristics(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Spliterators.AbstractLongSpliterator.d.ts b/packages/types/dist/typings/jdk/java.util.Spliterators.AbstractLongSpliterator.d.ts new file mode 100644 index 00000000..b34fcda2 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Spliterators.AbstractLongSpliterator.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace Spliterators { + // @ts-ignore + abstract class AbstractLongSpliterator extends java.lang.Object { + /** + * Creates a spliterator reporting the given estimated size and + * characteristics. + */ + // @ts-ignore + constructor(est: number, additionalCharacteristics: number) + /** + * {@inheritDoc} + * This implementation permits limited parallelism. + */ + // @ts-ignore + public trySplit(): java.util.Spliterator.OfLong; + /** + * {@inheritDoc} + */ + // @ts-ignore + public estimateSize(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public characteristics(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Spliterators.AbstractSpliterator.d.ts b/packages/types/dist/typings/jdk/java.util.Spliterators.AbstractSpliterator.d.ts new file mode 100644 index 00000000..3e0809f5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Spliterators.AbstractSpliterator.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace Spliterators { + // @ts-ignore + abstract class AbstractSpliterator extends java.lang.Object { + /** + * Creates a spliterator reporting the given estimated size and + * additionalCharacteristics. + */ + // @ts-ignore + constructor(est: number, additionalCharacteristics: number) + /** + * {@inheritDoc} + * This implementation permits limited parallelism. + */ + // @ts-ignore + public trySplit(): java.util.Spliterator; + /** + * {@inheritDoc} + */ + // @ts-ignore + public estimateSize(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public characteristics(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Spliterators.d.ts b/packages/types/dist/typings/jdk/java.util.Spliterators.d.ts new file mode 100644 index 00000000..bbd45f9a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Spliterators.d.ts @@ -0,0 +1,328 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class Spliterators extends java.lang.Object { + /** + * Creates an empty {@code Spliterator} + *

The empty spliterator reports {@link Spliterator#SIZED} and + * {@link Spliterator#SUBSIZED}. Calls to + * {@link java.util.Spliterator#trySplit()} always return {@code null}. + */ + // @ts-ignore + public static emptySpliterator(): java.util.Spliterator; + /** + * Creates an empty {@code Spliterator.OfInt} + *

The empty spliterator reports {@link Spliterator#SIZED} and + * {@link Spliterator#SUBSIZED}. Calls to + * {@link java.util.Spliterator#trySplit()} always return {@code null}. + */ + // @ts-ignore + public static emptyIntSpliterator(): java.util.Spliterator.OfInt; + /** + * Creates an empty {@code Spliterator.OfLong} + *

The empty spliterator reports {@link Spliterator#SIZED} and + * {@link Spliterator#SUBSIZED}. Calls to + * {@link java.util.Spliterator#trySplit()} always return {@code null}. + */ + // @ts-ignore + public static emptyLongSpliterator(): java.util.Spliterator.OfLong; + /** + * Creates an empty {@code Spliterator.OfDouble} + *

The empty spliterator reports {@link Spliterator#SIZED} and + * {@link Spliterator#SUBSIZED}. Calls to + * {@link java.util.Spliterator#trySplit()} always return {@code null}. + */ + // @ts-ignore + public static emptyDoubleSpliterator(): java.util.Spliterator.OfDouble; + /** + * Creates a {@code Spliterator} covering the elements of a given array, + * using a customized set of spliterator characteristics. + *

This method is provided as an implementation convenience for + * Spliterators which store portions of their elements in arrays, and need + * fine control over Spliterator characteristics. Most other situations in + * which a Spliterator for an array is needed should use + * {@link Arrays#spliterator(Object[])}. + *

The returned spliterator always reports the characteristics + * {@code SIZED} and {@code SUBSIZED}. The caller may provide additional + * characteristics for the spliterator to report; it is common to + * additionally specify {@code IMMUTABLE} and {@code ORDERED}. + */ + // @ts-ignore + public static spliterator(array: java.lang.Object, additionalCharacteristics: number): java.util.Spliterator; + /** + * Creates a {@code Spliterator} covering a range of elements of a given + * array, using a customized set of spliterator characteristics. + *

This method is provided as an implementation convenience for + * Spliterators which store portions of their elements in arrays, and need + * fine control over Spliterator characteristics. Most other situations in + * which a Spliterator for an array is needed should use + * {@link Arrays#spliterator(Object[])}. + *

The returned spliterator always reports the characteristics + * {@code SIZED} and {@code SUBSIZED}. The caller may provide additional + * characteristics for the spliterator to report; it is common to + * additionally specify {@code IMMUTABLE} and {@code ORDERED}. + */ + // @ts-ignore + public static spliterator(array: java.lang.Object, fromIndex: number, toIndex: number, additionalCharacteristics: number): java.util.Spliterator; + /** + * Creates a {@code Spliterator.OfInt} covering the elements of a given array, + * using a customized set of spliterator characteristics. + *

This method is provided as an implementation convenience for + * Spliterators which store portions of their elements in arrays, and need + * fine control over Spliterator characteristics. Most other situations in + * which a Spliterator for an array is needed should use + * {@link Arrays#spliterator(int[])}. + *

The returned spliterator always reports the characteristics + * {@code SIZED} and {@code SUBSIZED}. The caller may provide additional + * characteristics for the spliterator to report; it is common to + * additionally specify {@code IMMUTABLE} and {@code ORDERED}. + */ + // @ts-ignore + public static spliterator(array: number, additionalCharacteristics: number): java.util.Spliterator.OfInt; + /** + * Creates a {@code Spliterator.OfInt} covering a range of elements of a + * given array, using a customized set of spliterator characteristics. + *

This method is provided as an implementation convenience for + * Spliterators which store portions of their elements in arrays, and need + * fine control over Spliterator characteristics. Most other situations in + * which a Spliterator for an array is needed should use + * {@link Arrays#spliterator(int[], int, int)}. + *

The returned spliterator always reports the characteristics + * {@code SIZED} and {@code SUBSIZED}. The caller may provide additional + * characteristics for the spliterator to report; it is common to + * additionally specify {@code IMMUTABLE} and {@code ORDERED}. + */ + // @ts-ignore + public static spliterator(array: number, fromIndex: number, toIndex: number, additionalCharacteristics: number): java.util.Spliterator.OfInt; + /** + * Creates a {@code Spliterator.OfLong} covering the elements of a given array, + * using a customized set of spliterator characteristics. + *

This method is provided as an implementation convenience for + * Spliterators which store portions of their elements in arrays, and need + * fine control over Spliterator characteristics. Most other situations in + * which a Spliterator for an array is needed should use + * {@link Arrays#spliterator(long[])}. + *

The returned spliterator always reports the characteristics + * {@code SIZED} and {@code SUBSIZED}. The caller may provide additional + * characteristics for the spliterator to report; it is common to + * additionally specify {@code IMMUTABLE} and {@code ORDERED}. + */ + // @ts-ignore + public static spliterator(array: number, additionalCharacteristics: number): java.util.Spliterator.OfLong; + /** + * Creates a {@code Spliterator.OfLong} covering a range of elements of a + * given array, using a customized set of spliterator characteristics. + *

This method is provided as an implementation convenience for + * Spliterators which store portions of their elements in arrays, and need + * fine control over Spliterator characteristics. Most other situations in + * which a Spliterator for an array is needed should use + * {@link Arrays#spliterator(long[], int, int)}. + *

The returned spliterator always reports the characteristics + * {@code SIZED} and {@code SUBSIZED}. The caller may provide additional + * characteristics for the spliterator to report. (For example, if it is + * known the array will not be further modified, specify {@code IMMUTABLE}; + * if the array data is considered to have an an encounter order, specify + * {@code ORDERED}). The method {@link Arrays#spliterator(long[], int, int)} can + * often be used instead, which returns a spliterator that reports + * {@code SIZED}, {@code SUBSIZED}, {@code IMMUTABLE}, and {@code ORDERED}. + */ + // @ts-ignore + public static spliterator(array: number, fromIndex: number, toIndex: number, additionalCharacteristics: number): java.util.Spliterator.OfLong; + /** + * Creates a {@code Spliterator.OfDouble} covering the elements of a given array, + * using a customized set of spliterator characteristics. + *

This method is provided as an implementation convenience for + * Spliterators which store portions of their elements in arrays, and need + * fine control over Spliterator characteristics. Most other situations in + * which a Spliterator for an array is needed should use + * {@link Arrays#spliterator(double[])}. + *

The returned spliterator always reports the characteristics + * {@code SIZED} and {@code SUBSIZED}. The caller may provide additional + * characteristics for the spliterator to report; it is common to + * additionally specify {@code IMMUTABLE} and {@code ORDERED}. + */ + // @ts-ignore + public static spliterator(array: number, additionalCharacteristics: number): java.util.Spliterator.OfDouble; + /** + * Creates a {@code Spliterator.OfDouble} covering a range of elements of a + * given array, using a customized set of spliterator characteristics. + *

This method is provided as an implementation convenience for + * Spliterators which store portions of their elements in arrays, and need + * fine control over Spliterator characteristics. Most other situations in + * which a Spliterator for an array is needed should use + * {@link Arrays#spliterator(double[], int, int)}. + *

The returned spliterator always reports the characteristics + * {@code SIZED} and {@code SUBSIZED}. The caller may provide additional + * characteristics for the spliterator to report. (For example, if it is + * known the array will not be further modified, specify {@code IMMUTABLE}; + * if the array data is considered to have an an encounter order, specify + * {@code ORDERED}). The method {@link Arrays#spliterator(long[], int, int)} can + * often be used instead, which returns a spliterator that reports + * {@code SIZED}, {@code SUBSIZED}, {@code IMMUTABLE}, and {@code ORDERED}. + */ + // @ts-ignore + public static spliterator(array: number, fromIndex: number, toIndex: number, additionalCharacteristics: number): java.util.Spliterator.OfDouble; + /** + * Creates a {@code Spliterator} using the given collection's + * {@link java.util.Collection#iterator()} as the source of elements, and + * reporting its {@link java.util.Collection#size()} as its initial size. + *

The spliterator is + * late-binding, inherits + * the fail-fast properties of the collection's iterator, and + * implements {@code trySplit} to permit limited parallelism. + */ + // @ts-ignore + public static spliterator(c: java.util.Collection, characteristics: number): java.util.Spliterator; + /** + * Creates a {@code Spliterator} using a given {@code Iterator} + * as the source of elements, and with a given initially reported size. + *

The spliterator is not + * late-binding, inherits + * the fail-fast properties of the iterator, and implements + * {@code trySplit} to permit limited parallelism. + *

Traversal of elements should be accomplished through the spliterator. + * The behaviour of splitting and traversal is undefined if the iterator is + * operated on after the spliterator is returned, or the initially reported + * size is not equal to the actual number of elements in the source. + */ + // @ts-ignore + public static spliterator(iterator: java.util.Iterator, size: number, characteristics: number): java.util.Spliterator; + /** + * Creates a {@code Spliterator} using a given {@code Iterator} + * as the source of elements, with no initial size estimate. + *

The spliterator is not + * late-binding, inherits + * the fail-fast properties of the iterator, and implements + * {@code trySplit} to permit limited parallelism. + *

Traversal of elements should be accomplished through the spliterator. + * The behaviour of splitting and traversal is undefined if the iterator is + * operated on after the spliterator is returned. + */ + // @ts-ignore + public static spliteratorUnknownSize(iterator: java.util.Iterator, characteristics: number): java.util.Spliterator; + /** + * Creates a {@code Spliterator.OfInt} using a given + * {@code IntStream.IntIterator} as the source of elements, and with a given + * initially reported size. + *

The spliterator is not + * late-binding, inherits + * the fail-fast properties of the iterator, and implements + * {@code trySplit} to permit limited parallelism. + *

Traversal of elements should be accomplished through the spliterator. + * The behaviour of splitting and traversal is undefined if the iterator is + * operated on after the spliterator is returned, or the initially reported + * size is not equal to the actual number of elements in the source. + */ + // @ts-ignore + public static spliterator(iterator: java.util.PrimitiveIterator.OfInt, size: number, characteristics: number): java.util.Spliterator.OfInt; + /** + * Creates a {@code Spliterator.OfInt} using a given + * {@code IntStream.IntIterator} as the source of elements, with no initial + * size estimate. + *

The spliterator is not + * late-binding, inherits + * the fail-fast properties of the iterator, and implements + * {@code trySplit} to permit limited parallelism. + *

Traversal of elements should be accomplished through the spliterator. + * The behaviour of splitting and traversal is undefined if the iterator is + * operated on after the spliterator is returned. + */ + // @ts-ignore + public static spliteratorUnknownSize(iterator: java.util.PrimitiveIterator.OfInt, characteristics: number): java.util.Spliterator.OfInt; + /** + * Creates a {@code Spliterator.OfLong} using a given + * {@code LongStream.LongIterator} as the source of elements, and with a + * given initially reported size. + *

The spliterator is not + * late-binding, inherits + * the fail-fast properties of the iterator, and implements + * {@code trySplit} to permit limited parallelism. + *

Traversal of elements should be accomplished through the spliterator. + * The behaviour of splitting and traversal is undefined if the iterator is + * operated on after the spliterator is returned, or the initially reported + * size is not equal to the actual number of elements in the source. + */ + // @ts-ignore + public static spliterator(iterator: java.util.PrimitiveIterator.OfLong, size: number, characteristics: number): java.util.Spliterator.OfLong; + /** + * Creates a {@code Spliterator.OfLong} using a given + * {@code LongStream.LongIterator} as the source of elements, with no + * initial size estimate. + *

The spliterator is not + * late-binding, inherits + * the fail-fast properties of the iterator, and implements + * {@code trySplit} to permit limited parallelism. + *

Traversal of elements should be accomplished through the spliterator. + * The behaviour of splitting and traversal is undefined if the iterator is + * operated on after the spliterator is returned. + */ + // @ts-ignore + public static spliteratorUnknownSize(iterator: java.util.PrimitiveIterator.OfLong, characteristics: number): java.util.Spliterator.OfLong; + /** + * Creates a {@code Spliterator.OfDouble} using a given + * {@code DoubleStream.DoubleIterator} as the source of elements, and with a + * given initially reported size. + *

The spliterator is not + * late-binding, inherits + * the fail-fast properties of the iterator, and implements + * {@code trySplit} to permit limited parallelism. + *

Traversal of elements should be accomplished through the spliterator. + * The behaviour of splitting and traversal is undefined if the iterator is + * operated on after the spliterator is returned, or the initially reported + * size is not equal to the actual number of elements in the source. + */ + // @ts-ignore + public static spliterator(iterator: java.util.PrimitiveIterator.OfDouble, size: number, characteristics: number): java.util.Spliterator.OfDouble; + /** + * Creates a {@code Spliterator.OfDouble} using a given + * {@code DoubleStream.DoubleIterator} as the source of elements, with no + * initial size estimate. + *

The spliterator is not + * late-binding, inherits + * the fail-fast properties of the iterator, and implements + * {@code trySplit} to permit limited parallelism. + *

Traversal of elements should be accomplished through the spliterator. + * The behaviour of splitting and traversal is undefined if the iterator is + * operated on after the spliterator is returned. + */ + // @ts-ignore + public static spliteratorUnknownSize(iterator: java.util.PrimitiveIterator.OfDouble, characteristics: number): java.util.Spliterator.OfDouble; + /** + * Creates an {@code Iterator} from a {@code Spliterator}. + *

Traversal of elements should be accomplished through the iterator. + * The behaviour of traversal is undefined if the spliterator is operated + * after the iterator is returned. + */ + // @ts-ignore + public static iterator(spliterator: java.util.Spliterator): java.util.Iterator; + /** + * Creates an {@code PrimitiveIterator.OfInt} from a + * {@code Spliterator.OfInt}. + *

Traversal of elements should be accomplished through the iterator. + * The behaviour of traversal is undefined if the spliterator is operated + * after the iterator is returned. + */ + // @ts-ignore + public static iterator(spliterator: java.util.Spliterator.OfInt): java.util.PrimitiveIterator.OfInt; + /** + * Creates an {@code PrimitiveIterator.OfLong} from a + * {@code Spliterator.OfLong}. + *

Traversal of elements should be accomplished through the iterator. + * The behaviour of traversal is undefined if the spliterator is operated + * after the iterator is returned. + */ + // @ts-ignore + public static iterator(spliterator: java.util.Spliterator.OfLong): java.util.PrimitiveIterator.OfLong; + /** + * Creates an {@code PrimitiveIterator.OfDouble} from a + * {@code Spliterator.OfDouble}. + *

Traversal of elements should be accomplished through the iterator. + * The behaviour of traversal is undefined if the spliterator is operated + * after the iterator is returned. + */ + // @ts-ignore + public static iterator(spliterator: java.util.Spliterator.OfDouble): java.util.PrimitiveIterator.OfDouble; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.SplittableRandom.d.ts b/packages/types/dist/typings/jdk/java.util.SplittableRandom.d.ts new file mode 100644 index 00000000..812ba465 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.SplittableRandom.d.ts @@ -0,0 +1,179 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class SplittableRandom extends java.lang.Object { + /** + * Creates a new SplittableRandom instance using the specified + * initial seed. SplittableRandom instances created with the same + * seed in the same program generate identical sequences of values. + */ + // @ts-ignore + constructor(seed: number) + /** + * Creates a new SplittableRandom instance that is likely to + * generate sequences of values that are statistically independent + * of those of any other instances in the current program; and + * may, and typically does, vary across program invocations. + */ + // @ts-ignore + constructor() + /** + * Constructs and returns a new SplittableRandom instance that + * shares no mutable state with this instance. However, with very + * high probability, the set of values collectively generated by + * the two objects has the same statistical properties as if the + * same quantity of values were generated by a single thread using + * a single SplittableRandom object. Either or both of the two + * objects may be further split using the {@code split()} method, + * and the same expected statistical properties apply to the + * entire set of generators constructed by such recursive + * splitting. + */ + // @ts-ignore + public split(): java.util.SplittableRandom; + /** + * Returns a pseudorandom {@code int} value. + */ + // @ts-ignore + public nextInt(): number; + /** + * Returns a pseudorandom {@code int} value between zero (inclusive) + * and the specified bound (exclusive). + */ + // @ts-ignore + public nextInt(bound: number): number; + /** + * Returns a pseudorandom {@code int} value between the specified + * origin (inclusive) and the specified bound (exclusive). + */ + // @ts-ignore + public nextInt(origin: number, bound: number): number; + /** + * Returns a pseudorandom {@code long} value. + */ + // @ts-ignore + public nextLong(): number; + /** + * Returns a pseudorandom {@code long} value between zero (inclusive) + * and the specified bound (exclusive). + */ + // @ts-ignore + public nextLong(bound: number): number; + /** + * Returns a pseudorandom {@code long} value between the specified + * origin (inclusive) and the specified bound (exclusive). + */ + // @ts-ignore + public nextLong(origin: number, bound: number): number; + /** + * Returns a pseudorandom {@code double} value between zero + * (inclusive) and one (exclusive). + */ + // @ts-ignore + public nextDouble(): number; + /** + * Returns a pseudorandom {@code double} value between 0.0 + * (inclusive) and the specified bound (exclusive). + */ + // @ts-ignore + public nextDouble(bound: number): number; + /** + * Returns a pseudorandom {@code double} value between the specified + * origin (inclusive) and bound (exclusive). + */ + // @ts-ignore + public nextDouble(origin: number, bound: number): number; + /** + * Returns a pseudorandom {@code boolean} value. + */ + // @ts-ignore + public nextBoolean(): boolean; + /** + * Returns a stream producing the given {@code streamSize} number + * of pseudorandom {@code int} values from this generator and/or + * one split from it. + */ + // @ts-ignore + public ints(streamSize: number): java.util.stream.IntStream; + /** + * Returns an effectively unlimited stream of pseudorandom {@code int} + * values from this generator and/or one split from it. + */ + // @ts-ignore + public ints(): java.util.stream.IntStream; + /** + * Returns a stream producing the given {@code streamSize} number + * of pseudorandom {@code int} values from this generator and/or one split + * from it; each value conforms to the given origin (inclusive) and bound + * (exclusive). + */ + // @ts-ignore + public ints(streamSize: number, randomNumberOrigin: number, randomNumberBound: number): java.util.stream.IntStream; + /** + * Returns an effectively unlimited stream of pseudorandom {@code + * int} values from this generator and/or one split from it; each value + * conforms to the given origin (inclusive) and bound (exclusive). + */ + // @ts-ignore + public ints(randomNumberOrigin: number, randomNumberBound: number): java.util.stream.IntStream; + /** + * Returns a stream producing the given {@code streamSize} number + * of pseudorandom {@code long} values from this generator and/or + * one split from it. + */ + // @ts-ignore + public longs(streamSize: number): java.util.stream.LongStream; + /** + * Returns an effectively unlimited stream of pseudorandom {@code + * long} values from this generator and/or one split from it. + */ + // @ts-ignore + public longs(): java.util.stream.LongStream; + /** + * Returns a stream producing the given {@code streamSize} number of + * pseudorandom {@code long} values from this generator and/or one split + * from it; each value conforms to the given origin (inclusive) and bound + * (exclusive). + */ + // @ts-ignore + public longs(streamSize: number, randomNumberOrigin: number, randomNumberBound: number): java.util.stream.LongStream; + /** + * Returns an effectively unlimited stream of pseudorandom {@code + * long} values from this generator and/or one split from it; each value + * conforms to the given origin (inclusive) and bound (exclusive). + */ + // @ts-ignore + public longs(randomNumberOrigin: number, randomNumberBound: number): java.util.stream.LongStream; + /** + * Returns a stream producing the given {@code streamSize} number of + * pseudorandom {@code double} values from this generator and/or one split + * from it; each value is between zero (inclusive) and one (exclusive). + */ + // @ts-ignore + public doubles(streamSize: number): java.util.stream.DoubleStream; + /** + * Returns an effectively unlimited stream of pseudorandom {@code + * double} values from this generator and/or one split from it; each value + * is between zero (inclusive) and one (exclusive). + */ + // @ts-ignore + public doubles(): java.util.stream.DoubleStream; + /** + * Returns a stream producing the given {@code streamSize} number of + * pseudorandom {@code double} values from this generator and/or one split + * from it; each value conforms to the given origin (inclusive) and bound + * (exclusive). + */ + // @ts-ignore + public doubles(streamSize: number, randomNumberOrigin: number, randomNumberBound: number): java.util.stream.DoubleStream; + /** + * Returns an effectively unlimited stream of pseudorandom {@code + * double} values from this generator and/or one split from it; each value + * conforms to the given origin (inclusive) and bound (exclusive). + */ + // @ts-ignore + public doubles(randomNumberOrigin: number, randomNumberBound: number): java.util.stream.DoubleStream; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Stack.d.ts b/packages/types/dist/typings/jdk/java.util.Stack.d.ts new file mode 100644 index 00000000..3079cfe7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Stack.d.ts @@ -0,0 +1,49 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class Stack extends java.util.Vector { + /** + * Creates an empty Stack. + */ + // @ts-ignore + constructor() + /** + * Pushes an item onto the top of this stack. This has exactly + * the same effect as: + *

+             * addElement(item)
+ */ + // @ts-ignore + public push(item: java.lang.Object): java.lang.Object; + /** + * Removes the object at the top of this stack and returns that + * object as the value of this function. + */ + // @ts-ignore + public pop(): java.lang.Object; + /** + * Looks at the object at the top of this stack without removing it + * from the stack. + */ + // @ts-ignore + public peek(): java.lang.Object; + /** + * Tests if this stack is empty. + */ + // @ts-ignore + public empty(): boolean; + /** + * Returns the 1-based position where an object is on this stack. + * If the object o occurs as an item in this stack, this + * method returns the distance from the top of the stack of the + * occurrence nearest the top of the stack; the topmost item on the + * stack is considered to be at distance 1. The equals + * method is used to compare o to the + * items in this stack. + */ + // @ts-ignore + public search(o: java.lang.Object): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.StringJoiner.d.ts b/packages/types/dist/typings/jdk/java.util.StringJoiner.d.ts new file mode 100644 index 00000000..79a57e54 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.StringJoiner.d.ts @@ -0,0 +1,78 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class StringJoiner extends java.lang.Object { + /** + * Constructs a {@code StringJoiner} with no characters in it, with no + * {@code prefix} or {@code suffix}, and a copy of the supplied + * {@code delimiter}. + * If no characters are added to the {@code StringJoiner} and methods + * accessing the value of it are invoked, it will not return a + * {@code prefix} or {@code suffix} (or properties thereof) in the result, + * unless {@code setEmptyValue} has first been called. + */ + // @ts-ignore + constructor(delimiter: java.lang.CharSequence) + /** + * Constructs a {@code StringJoiner} with no characters in it using copies + * of the supplied {@code prefix}, {@code delimiter} and {@code suffix}. + * If no characters are added to the {@code StringJoiner} and methods + * accessing the string value of it are invoked, it will return the + * {@code prefix + suffix} (or properties thereof) in the result, unless + * {@code setEmptyValue} has first been called. + */ + // @ts-ignore + constructor(delimiter: java.lang.CharSequence, prefix: java.lang.CharSequence, suffix: java.lang.CharSequence) + /** + * Sets the sequence of characters to be used when determining the string + * representation of this {@code StringJoiner} and no elements have been + * added yet, that is, when it is empty. A copy of the {@code emptyValue} + * parameter is made for this purpose. Note that once an add method has been + * called, the {@code StringJoiner} is no longer considered empty, even if + * the element(s) added correspond to the empty {@code String}. + */ + // @ts-ignore + public setEmptyValue(emptyValue: java.lang.CharSequence): java.util.StringJoiner; + /** + * Returns the current value, consisting of the {@code prefix}, the values + * added so far separated by the {@code delimiter}, and the {@code suffix}, + * unless no elements have been added in which case, the + * {@code prefix + suffix} or the {@code emptyValue} characters are returned + */ + // @ts-ignore + public toString(): string; + /** + * Adds a copy of the given {@code CharSequence} value as the next + * element of the {@code StringJoiner} value. If {@code newElement} is + * {@code null}, then {@code "null"} is added. + */ + // @ts-ignore + public add(newElement: java.lang.CharSequence): java.util.StringJoiner; + /** + * Adds the contents of the given {@code StringJoiner} without prefix and + * suffix as the next element if it is non-empty. If the given {@code + * StringJoiner} is empty, the call has no effect. + *

A {@code StringJoiner} is empty if {@link #add(CharSequence) add()} + * has never been called, and if {@code merge()} has never been called + * with a non-empty {@code StringJoiner} argument. + *

If the other {@code StringJoiner} is using a different delimiter, + * then elements from the other {@code StringJoiner} are concatenated with + * that delimiter and the result is appended to this {@code StringJoiner} + * as a single element. + */ + // @ts-ignore + public merge(other: java.util.StringJoiner): java.util.StringJoiner; + /** + * Returns the length of the {@code String} representation + * of this {@code StringJoiner}. Note that if + * no add methods have been called, then the length of the {@code String} + * representation (either {@code prefix + suffix} or {@code emptyValue}) + * will be returned. The value should be equivalent to + * {@code toString().length()}. + */ + // @ts-ignore + public length(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.StringTokenizer.d.ts b/packages/types/dist/typings/jdk/java.util.StringTokenizer.d.ts new file mode 100644 index 00000000..1c3a8fb6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.StringTokenizer.d.ts @@ -0,0 +1,94 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class StringTokenizer extends java.lang.Object { + /** + * Constructs a string tokenizer for the specified string. All + * characters in the delim argument are the delimiters + * for separating tokens. + *

+ * If the returnDelims flag is true, then + * the delimiter characters are also returned as tokens. Each + * delimiter is returned as a string of length one. If the flag is + * false, the delimiter characters are skipped and only + * serve as separators between tokens. + *

+ * Note that if delim is null, this constructor does + * not throw an exception. However, trying to invoke other methods on the + * resulting StringTokenizer may result in a + * NullPointerException. + */ + // @ts-ignore + constructor(str: string, delim: string, returnDelims: boolean) + /** + * Constructs a string tokenizer for the specified string. The + * characters in the delim argument are the delimiters + * for separating tokens. Delimiter characters themselves will not + * be treated as tokens. + *

+ * Note that if delim is null, this constructor does + * not throw an exception. However, trying to invoke other methods on the + * resulting StringTokenizer may result in a + * NullPointerException. + */ + // @ts-ignore + constructor(str: string, delim: string) + /** + * Constructs a string tokenizer for the specified string. The + * tokenizer uses the default delimiter set, which is + * " \t\n\r\f": the space character, + * the tab character, the newline character, the carriage-return character, + * and the form-feed character. Delimiter characters themselves will + * not be treated as tokens. + */ + // @ts-ignore + constructor(str: string) + /** + * Tests if there are more tokens available from this tokenizer's string. + * If this method returns true, then a subsequent call to + * nextToken with no argument will successfully return a token. + */ + // @ts-ignore + public hasMoreTokens(): boolean; + /** + * Returns the next token from this string tokenizer. + */ + // @ts-ignore + public nextToken(): string; + /** + * Returns the next token in this string tokenizer's string. First, + * the set of characters considered to be delimiters by this + * StringTokenizer object is changed to be the characters in + * the string delim. Then the next token in the string + * after the current position is returned. The current position is + * advanced beyond the recognized token. The new delimiter set + * remains the default after this call. + */ + // @ts-ignore + public nextToken(delim: string): string; + /** + * Returns the same value as the hasMoreTokens + * method. It exists so that this class can implement the + * Enumeration interface. + */ + // @ts-ignore + public hasMoreElements(): boolean; + /** + * Returns the same value as the nextToken method, + * except that its declared return value is Object rather than + * String. It exists so that this class can implement the + * Enumeration interface. + */ + // @ts-ignore + public nextElement(): java.lang.Object; + /** + * Calculates the number of times that this tokenizer's + * nextToken method can be called before it generates an + * exception. The current position is not advanced. + */ + // @ts-ignore + public countTokens(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.TimeZone.d.ts b/packages/types/dist/typings/jdk/java.util.TimeZone.d.ts new file mode 100644 index 00000000..f87d7d33 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.TimeZone.d.ts @@ -0,0 +1,242 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + abstract class TimeZone extends java.lang.Object { + /** + * Sole constructor. (For invocation by subclass constructors, typically + * implicit.) + */ + // @ts-ignore + constructor() + // @ts-ignore + public static SHORT: number; + // @ts-ignore + public static LONG: number; + /** + * Gets the time zone offset, for current date, modified in case of + * daylight savings. This is the offset to add to UTC to get local time. + *

+ * This method returns a historically correct offset if an + * underlying TimeZone implementation subclass + * supports historical Daylight Saving Time schedule and GMT + * offset changes. + */ + // @ts-ignore + public abstract getOffset(era: number, year: number, month: number, day: number, dayOfWeek: number, milliseconds: number): number; + /** + * Returns the offset of this time zone from UTC at the specified + * date. If Daylight Saving Time is in effect at the specified + * date, the offset value is adjusted with the amount of daylight + * saving. + *

+ * This method returns a historically correct offset value if an + * underlying TimeZone implementation subclass supports historical + * Daylight Saving Time schedule and GMT offset changes. + */ + // @ts-ignore + public getOffset(date: number): number; + /** + * Sets the base time zone offset to GMT. + * This is the offset to add to UTC to get local time. + *

+ * If an underlying TimeZone implementation subclass + * supports historical GMT offset changes, the specified GMT + * offset is set as the latest GMT offset and the difference from + * the known latest GMT offset value is used to adjust all + * historical GMT offset values. + */ + // @ts-ignore + public abstract setRawOffset(offsetMillis: number): void; + /** + * Returns the amount of time in milliseconds to add to UTC to get + * standard time in this time zone. Because this value is not + * affected by daylight saving time, it is called raw + * offset. + *

+ * If an underlying TimeZone implementation subclass + * supports historical GMT offset changes, the method returns the + * raw offset value of the current date. In Honolulu, for example, + * its raw offset changed from GMT-10:30 to GMT-10:00 in 1947, and + * this method always returns -36000000 milliseconds (i.e., -10 + * hours). + */ + // @ts-ignore + public abstract getRawOffset(): number; + /** + * Gets the ID of this time zone. + */ + // @ts-ignore + public getID(): string; + /** + * Sets the time zone ID. This does not change any other data in + * the time zone object. + */ + // @ts-ignore + public setID(ID: string): void; + /** + * Returns a long standard time name of this {@code TimeZone} suitable for + * presentation to the user in the default locale. + *

This method is equivalent to: + *

+             * getDisplayName(false, {@link #LONG},
+             * Locale.getDefault({@link Locale.Category#DISPLAY}))
+             * 
+ */ + // @ts-ignore + public getDisplayName(): string; + /** + * Returns a long standard time name of this {@code TimeZone} suitable for + * presentation to the user in the specified {@code locale}. + *

This method is equivalent to: + *

+             * getDisplayName(false, {@link #LONG}, locale)
+             * 
+ */ + // @ts-ignore + public getDisplayName(locale: java.util.Locale): string; + /** + * Returns a name in the specified {@code style} of this {@code TimeZone} + * suitable for presentation to the user in the default locale. If the + * specified {@code daylight} is {@code true}, a Daylight Saving Time name + * is returned (even if this {@code TimeZone} doesn't observe Daylight Saving + * Time). Otherwise, a Standard Time name is returned. + *

This method is equivalent to: + *

+             * getDisplayName(daylight, style,
+             * Locale.getDefault({@link Locale.Category#DISPLAY}))
+             * 
+ */ + // @ts-ignore + public getDisplayName(daylight: boolean, style: number): string; + /** + * Returns a name in the specified {@code style} of this {@code TimeZone} + * suitable for presentation to the user in the specified {@code + * locale}. If the specified {@code daylight} is {@code true}, a Daylight + * Saving Time name is returned (even if this {@code TimeZone} doesn't + * observe Daylight Saving Time). Otherwise, a Standard Time name is + * returned. + *

When looking up a time zone name, the {@linkplain + * ResourceBundle.Control#getCandidateLocales(String,Locale) default + * Locale search path of ResourceBundle} derived + * from the specified {@code locale} is used. (No {@linkplain + * ResourceBundle.Control#getFallbackLocale(String,Locale) fallback + * Locale} search is performed.) If a time zone name in any + * {@code Locale} of the search path, including {@link Locale#ROOT}, is + * found, the name is returned. Otherwise, a string in the + * normalized custom ID format is returned. + */ + // @ts-ignore + public getDisplayName(daylight: boolean, style: number, locale: java.util.Locale): string; + /** + * Returns the amount of time to be added to local standard time + * to get local wall clock time. + *

The default implementation returns 3600000 milliseconds + * (i.e., one hour) if a call to {@link #useDaylightTime()} + * returns {@code true}. Otherwise, 0 (zero) is returned. + *

If an underlying {@code TimeZone} implementation subclass + * supports historical and future Daylight Saving Time schedule + * changes, this method returns the amount of saving time of the + * last known Daylight Saving Time rule that can be a future + * prediction. + *

If the amount of saving time at any given time stamp is + * required, construct a {@link Calendar} with this {@code + * TimeZone} and the time stamp, and call {@link Calendar#get(int) + * Calendar.get}{@code (}{@link Calendar#DST_OFFSET}{@code )}. + */ + // @ts-ignore + public getDSTSavings(): number; + /** + * Queries if this {@code TimeZone} uses Daylight Saving Time. + *

If an underlying {@code TimeZone} implementation subclass + * supports historical and future Daylight Saving Time schedule + * changes, this method refers to the last known Daylight Saving Time + * rule that can be a future prediction and may not be the same as + * the current rule. Consider calling {@link #observesDaylightTime()} + * if the current rule should also be taken into account. + */ + // @ts-ignore + public abstract useDaylightTime(): boolean; + /** + * Returns {@code true} if this {@code TimeZone} is currently in + * Daylight Saving Time, or if a transition from Standard Time to + * Daylight Saving Time occurs at any future time. + *

The default implementation returns {@code true} if + * {@code useDaylightTime()} or {@code inDaylightTime(new Date())} + * returns {@code true}. + */ + // @ts-ignore + public observesDaylightTime(): boolean; + /** + * Queries if the given {@code date} is in Daylight Saving Time in + * this time zone. + */ + // @ts-ignore + public abstract inDaylightTime(date: java.util.Date): boolean; + /** + * Gets the TimeZone for the given ID. + */ + // @ts-ignore + public static getTimeZone(ID: string): java.util.TimeZone; + /** + * Gets the {@code TimeZone} for the given {@code zoneId}. + */ + // @ts-ignore + public static getTimeZone(zoneId: java.time.ZoneId): java.util.TimeZone; + /** + * Converts this {@code TimeZone} object to a {@code ZoneId}. + */ + // @ts-ignore + public toZoneId(): java.time.ZoneId; + /** + * Gets the available IDs according to the given time zone offset in milliseconds. + */ + // @ts-ignore + public static getAvailableIDs(rawOffset: number): java.lang.String[]; + /** + * Gets all the available IDs supported. + */ + // @ts-ignore + public static getAvailableIDs(): java.lang.String[]; + /** + * Gets the default {@code TimeZone} of the Java virtual machine. If the + * cached default {@code TimeZone} is available, its clone is returned. + * Otherwise, the method takes the following steps to determine the default + * time zone. + *

    + *
  • Use the {@code user.timezone} property value as the default + * time zone ID if it's available.
  • + *
  • Detect the platform time zone ID. The source of the + * platform time zone and ID mapping may vary with implementation.
  • + *
  • Use {@code GMT} as the last resort if the given or detected + * time zone ID is unknown.
  • + *
+ *

The default {@code TimeZone} created from the ID is cached, + * and its clone is returned. The {@code user.timezone} property + * value is set to the ID upon return. + */ + // @ts-ignore + public static getDefault(): java.util.TimeZone; + /** + * Sets the {@code TimeZone} that is returned by the {@code getDefault} + * method. {@code zone} is cached. If {@code zone} is null, the cached + * default {@code TimeZone} is cleared. This method doesn't change the value + * of the {@code user.timezone} property. + */ + // @ts-ignore + public static setDefault(zone: java.util.TimeZone): void; + /** + * Returns true if this zone has the same rule and offset as another zone. + * That is, if this zone differs only in ID, if at all. Returns false + * if the other zone is null. + */ + // @ts-ignore + public hasSameRules(other: java.util.TimeZone): boolean; + /** + * Creates a copy of this TimeZone. + */ + // @ts-ignore + public clone(): java.lang.Object; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Timer.d.ts b/packages/types/dist/typings/jdk/java.util.Timer.d.ts new file mode 100644 index 00000000..c2632ac4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Timer.d.ts @@ -0,0 +1,175 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class Timer extends java.lang.Object { + /** + * Creates a new timer. The associated thread does not + * {@linkplain Thread#setDaemon run as a daemon}. + */ + // @ts-ignore + constructor() + /** + * Creates a new timer whose associated thread may be specified to + * {@linkplain Thread#setDaemon run as a daemon}. + * A daemon thread is called for if the timer will be used to + * schedule repeating "maintenance activities", which must be + * performed as long as the application is running, but should not + * prolong the lifetime of the application. + */ + // @ts-ignore + constructor(isDaemon: boolean) + /** + * Creates a new timer whose associated thread has the specified name. + * The associated thread does not + * {@linkplain Thread#setDaemon run as a daemon}. + */ + // @ts-ignore + constructor(name: string) + /** + * Creates a new timer whose associated thread has the specified name, + * and may be specified to + * {@linkplain Thread#setDaemon run as a daemon}. + */ + // @ts-ignore + constructor(name: string, isDaemon: boolean) + /** + * Schedules the specified task for execution after the specified delay. + */ + // @ts-ignore + public schedule(task: java.util.TimerTask, delay: number): void; + /** + * Schedules the specified task for execution at the specified time. If + * the time is in the past, the task is scheduled for immediate execution. + */ + // @ts-ignore + public schedule(task: java.util.TimerTask, time: java.util.Date): void; + /** + * Schedules the specified task for repeated fixed-delay execution, + * beginning after the specified delay. Subsequent executions take place + * at approximately regular intervals separated by the specified period. + *

In fixed-delay execution, each execution is scheduled relative to + * the actual execution time of the previous execution. If an execution + * is delayed for any reason (such as garbage collection or other + * background activity), subsequent executions will be delayed as well. + * In the long run, the frequency of execution will generally be slightly + * lower than the reciprocal of the specified period (assuming the system + * clock underlying Object.wait(long) is accurate). + *

Fixed-delay execution is appropriate for recurring activities + * that require "smoothness." In other words, it is appropriate for + * activities where it is more important to keep the frequency accurate + * in the short run than in the long run. This includes most animation + * tasks, such as blinking a cursor at regular intervals. It also includes + * tasks wherein regular activity is performed in response to human + * input, such as automatically repeating a character as long as a key + * is held down. + */ + // @ts-ignore + public schedule(task: java.util.TimerTask, delay: number, period: number): void; + /** + * Schedules the specified task for repeated fixed-delay execution, + * beginning at the specified time. Subsequent executions take place at + * approximately regular intervals, separated by the specified period. + *

In fixed-delay execution, each execution is scheduled relative to + * the actual execution time of the previous execution. If an execution + * is delayed for any reason (such as garbage collection or other + * background activity), subsequent executions will be delayed as well. + * In the long run, the frequency of execution will generally be slightly + * lower than the reciprocal of the specified period (assuming the system + * clock underlying Object.wait(long) is accurate). As a + * consequence of the above, if the scheduled first time is in the past, + * it is scheduled for immediate execution. + *

Fixed-delay execution is appropriate for recurring activities + * that require "smoothness." In other words, it is appropriate for + * activities where it is more important to keep the frequency accurate + * in the short run than in the long run. This includes most animation + * tasks, such as blinking a cursor at regular intervals. It also includes + * tasks wherein regular activity is performed in response to human + * input, such as automatically repeating a character as long as a key + * is held down. + */ + // @ts-ignore + public schedule(task: java.util.TimerTask, firstTime: java.util.Date, period: number): void; + /** + * Schedules the specified task for repeated fixed-rate execution, + * beginning after the specified delay. Subsequent executions take place + * at approximately regular intervals, separated by the specified period. + *

In fixed-rate execution, each execution is scheduled relative to the + * scheduled execution time of the initial execution. If an execution is + * delayed for any reason (such as garbage collection or other background + * activity), two or more executions will occur in rapid succession to + * "catch up." In the long run, the frequency of execution will be + * exactly the reciprocal of the specified period (assuming the system + * clock underlying Object.wait(long) is accurate). + *

Fixed-rate execution is appropriate for recurring activities that + * are sensitive to absolute time, such as ringing a chime every + * hour on the hour, or running scheduled maintenance every day at a + * particular time. It is also appropriate for recurring activities + * where the total time to perform a fixed number of executions is + * important, such as a countdown timer that ticks once every second for + * ten seconds. Finally, fixed-rate execution is appropriate for + * scheduling multiple repeating timer tasks that must remain synchronized + * with respect to one another. + */ + // @ts-ignore + public scheduleAtFixedRate(task: java.util.TimerTask, delay: number, period: number): void; + /** + * Schedules the specified task for repeated fixed-rate execution, + * beginning at the specified time. Subsequent executions take place at + * approximately regular intervals, separated by the specified period. + *

In fixed-rate execution, each execution is scheduled relative to the + * scheduled execution time of the initial execution. If an execution is + * delayed for any reason (such as garbage collection or other background + * activity), two or more executions will occur in rapid succession to + * "catch up." In the long run, the frequency of execution will be + * exactly the reciprocal of the specified period (assuming the system + * clock underlying Object.wait(long) is accurate). As a + * consequence of the above, if the scheduled first time is in the past, + * then any "missed" executions will be scheduled for immediate "catch up" + * execution. + *

Fixed-rate execution is appropriate for recurring activities that + * are sensitive to absolute time, such as ringing a chime every + * hour on the hour, or running scheduled maintenance every day at a + * particular time. It is also appropriate for recurring activities + * where the total time to perform a fixed number of executions is + * important, such as a countdown timer that ticks once every second for + * ten seconds. Finally, fixed-rate execution is appropriate for + * scheduling multiple repeating timer tasks that must remain synchronized + * with respect to one another. + */ + // @ts-ignore + public scheduleAtFixedRate(task: java.util.TimerTask, firstTime: java.util.Date, period: number): void; + /** + * Terminates this timer, discarding any currently scheduled tasks. + * Does not interfere with a currently executing task (if it exists). + * Once a timer has been terminated, its execution thread terminates + * gracefully, and no more tasks may be scheduled on it. + *

Note that calling this method from within the run method of a + * timer task that was invoked by this timer absolutely guarantees that + * the ongoing task execution is the last task execution that will ever + * be performed by this timer. + *

This method may be called repeatedly; the second and subsequent + * calls have no effect. + */ + // @ts-ignore + public cancel(): void; + /** + * Removes all cancelled tasks from this timer's task queue. Calling + * this method has no effect on the behavior of the timer, but + * eliminates the references to the cancelled tasks from the queue. + * If there are no external references to these tasks, they become + * eligible for garbage collection. + *

Most programs will have no need to call this method. + * It is designed for use by the rare application that cancels a large + * number of tasks. Calling this method trades time for space: the + * runtime of the method may be proportional to n + c log n, where n + * is the number of tasks in the queue and c is the number of cancelled + * tasks. + *

Note that it is permissible to call this method from within a + * a task scheduled on this timer. + */ + // @ts-ignore + public purge(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.TimerTask.d.ts b/packages/types/dist/typings/jdk/java.util.TimerTask.d.ts new file mode 100644 index 00000000..7e8028c6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.TimerTask.d.ts @@ -0,0 +1,55 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + abstract class TimerTask extends java.lang.Object { + /** + * Creates a new timer task. + */ + // @ts-ignore + constructor() + /** + * The action to be performed by this timer task. + */ + // @ts-ignore + public abstract run(): void; + /** + * Cancels this timer task. If the task has been scheduled for one-time + * execution and has not yet run, or has not yet been scheduled, it will + * never run. If the task has been scheduled for repeated execution, it + * will never run again. (If the task is running when this call occurs, + * the task will run to completion, but will never run again.) + *

Note that calling this method from within the run method of + * a repeating timer task absolutely guarantees that the timer task will + * not run again. + *

This method may be called repeatedly; the second and subsequent + * calls have no effect. + */ + // @ts-ignore + public cancel(): boolean; + /** + * Returns the scheduled execution time of the most recent + * actual execution of this task. (If this method is invoked + * while task execution is in progress, the return value is the scheduled + * execution time of the ongoing task execution.) + *

This method is typically invoked from within a task's run method, to + * determine whether the current execution of the task is sufficiently + * timely to warrant performing the scheduled activity: + *

{@code
+             * public void run() {
+             * if (System.currentTimeMillis() - scheduledExecutionTime() >=
+             * MAX_TARDINESS)
+             * return;  // Too late; skip this execution.
+             * // Perform the task
+             * }
+             * }
+ * This method is typically not used in conjunction with + * fixed-delay execution repeating tasks, as their scheduled + * execution times are allowed to drift over time, and so are not terribly + * significant. + */ + // @ts-ignore + public scheduledExecutionTime(): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.TooManyListenersException.d.ts b/packages/types/dist/typings/jdk/java.util.TooManyListenersException.d.ts new file mode 100644 index 00000000..c95d51b9 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.TooManyListenersException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class TooManyListenersException extends java.lang.Exception { + /** + * Constructs a TooManyListenersException with no detail message. + * A detail message is a String that describes this particular exception. + */ + // @ts-ignore + constructor() + /** + * Constructs a TooManyListenersException with the specified detail message. + * A detail message is a String that describes this particular exception. + */ + // @ts-ignore + constructor(s: string) + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.TreeMap.d.ts b/packages/types/dist/typings/jdk/java.util.TreeMap.d.ts new file mode 100644 index 00000000..ce30116e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.TreeMap.d.ts @@ -0,0 +1,244 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class TreeMap extends java.util.AbstractMap { + /** + * Constructs a new, empty tree map, using the natural ordering of its + * keys. All keys inserted into the map must implement the {@link + * Comparable} interface. Furthermore, all such keys must be + * mutually comparable: {@code k1.compareTo(k2)} must not throw + * a {@code ClassCastException} for any keys {@code k1} and + * {@code k2} in the map. If the user attempts to put a key into the + * map that violates this constraint (for example, the user attempts to + * put a string key into a map whose keys are integers), the + * {@code put(Object key, Object value)} call will throw a + * {@code ClassCastException}. + */ + // @ts-ignore + constructor() + /** + * Constructs a new, empty tree map, ordered according to the given + * comparator. All keys inserted into the map must be mutually + * comparable by the given comparator: {@code comparator.compare(k1, + * k2)} must not throw a {@code ClassCastException} for any keys + * {@code k1} and {@code k2} in the map. If the user attempts to put + * a key into the map that violates this constraint, the {@code put(Object + * key, Object value)} call will throw a + * {@code ClassCastException}. + */ + // @ts-ignore + constructor(comparator: java.util.Comparator) + /** + * Constructs a new tree map containing the same mappings as the given + * map, ordered according to the natural ordering of its keys. + * All keys inserted into the new map must implement the {@link + * Comparable} interface. Furthermore, all such keys must be + * mutually comparable: {@code k1.compareTo(k2)} must not throw + * a {@code ClassCastException} for any keys {@code k1} and + * {@code k2} in the map. This method runs in n*log(n) time. + */ + // @ts-ignore + constructor(m: java.util.Map) + /** + * Constructs a new tree map containing the same mappings and + * using the same ordering as the specified sorted map. This + * method runs in linear time. + */ + // @ts-ignore + constructor(m: java.util.SortedMap) + /** + * Returns the number of key-value mappings in this map. + */ + // @ts-ignore + public size(): number; + /** + * Returns {@code true} if this map contains a mapping for the specified + * key. + */ + // @ts-ignore + public containsKey(key: java.lang.Object): boolean; + /** + * Returns {@code true} if this map maps one or more keys to the + * specified value. More formally, returns {@code true} if and only if + * this map contains at least one mapping to a value {@code v} such + * that {@code (value==null ? v==null : value.equals(v))}. This + * operation will probably require time linear in the map size for + * most implementations. + */ + // @ts-ignore + public containsValue(value: java.lang.Object): boolean; + /** + * Returns the value to which the specified key is mapped, + * or {@code null} if this map contains no mapping for the key. + *

More formally, if this map contains a mapping from a key + * {@code k} to a value {@code v} such that {@code key} compares + * equal to {@code k} according to the map's ordering, then this + * method returns {@code v}; otherwise it returns {@code null}. + * (There can be at most one such mapping.) + *

A return value of {@code null} does not necessarily + * indicate that the map contains no mapping for the key; it's also + * possible that the map explicitly maps the key to {@code null}. + * The {@link #containsKey containsKey} operation may be used to + * distinguish these two cases. + */ + // @ts-ignore + public get(key: java.lang.Object): java.lang.Object; + // @ts-ignore + public comparator(): java.util.Comparator; + // @ts-ignore + public firstKey(): java.lang.Object; + // @ts-ignore + public lastKey(): java.lang.Object; + /** + * Copies all of the mappings from the specified map to this map. + * These mappings replace any mappings that this map had for any + * of the keys currently in the specified map. + */ + // @ts-ignore + public putAll(map: java.util.Map): void; + /** + * Associates the specified value with the specified key in this map. + * If the map previously contained a mapping for the key, the old + * value is replaced. + */ + // @ts-ignore + public put(key: java.lang.Object, value: java.lang.Object): java.lang.Object; + /** + * Removes the mapping for this key from this TreeMap if present. + */ + // @ts-ignore + public remove(key: java.lang.Object): java.lang.Object; + /** + * Removes all of the mappings from this map. + * The map will be empty after this call returns. + */ + // @ts-ignore + public clear(): void; + /** + * Returns a shallow copy of this {@code TreeMap} instance. (The keys and + * values themselves are not cloned.) + */ + // @ts-ignore + public clone(): java.lang.Object; + // @ts-ignore + public firstEntry(): java.util.Map.Entry; + // @ts-ignore + public lastEntry(): java.util.Map.Entry; + // @ts-ignore + public pollFirstEntry(): java.util.Map.Entry; + // @ts-ignore + public pollLastEntry(): java.util.Map.Entry; + // @ts-ignore + public lowerEntry(key: java.lang.Object): java.util.Map.Entry; + // @ts-ignore + public lowerKey(key: java.lang.Object): java.lang.Object; + // @ts-ignore + public floorEntry(key: java.lang.Object): java.util.Map.Entry; + // @ts-ignore + public floorKey(key: java.lang.Object): java.lang.Object; + // @ts-ignore + public ceilingEntry(key: java.lang.Object): java.util.Map.Entry; + // @ts-ignore + public ceilingKey(key: java.lang.Object): java.lang.Object; + // @ts-ignore + public higherEntry(key: java.lang.Object): java.util.Map.Entry; + // @ts-ignore + public higherKey(key: java.lang.Object): java.lang.Object; + /** + * Returns a {@link Set} view of the keys contained in this map. + *

The set's iterator returns the keys in ascending order. + * The set's spliterator is + * late-binding, + * fail-fast, and additionally reports {@link Spliterator#SORTED} + * and {@link Spliterator#ORDERED} with an encounter order that is ascending + * key order. The spliterator's comparator (see + * {@link java.util.Spliterator#getComparator()}) is {@code null} if + * the tree map's comparator (see {@link #comparator()}) is {@code null}. + * Otherwise, the spliterator's comparator is the same as or imposes the + * same total ordering as the tree map's comparator. + *

The set is backed by the map, so changes to the map are + * reflected in the set, and vice-versa. If the map is modified + * while an iteration over the set is in progress (except through + * the iterator's own {@code remove} operation), the results of + * the iteration are undefined. The set supports element removal, + * which removes the corresponding mapping from the map, via the + * {@code Iterator.remove}, {@code Set.remove}, + * {@code removeAll}, {@code retainAll}, and {@code clear} + * operations. It does not support the {@code add} or {@code addAll} + * operations. + */ + // @ts-ignore + public keySet(): java.util.Set; + // @ts-ignore + public navigableKeySet(): java.util.NavigableSet; + // @ts-ignore + public descendingKeySet(): java.util.NavigableSet; + /** + * Returns a {@link Collection} view of the values contained in this map. + *

The collection's iterator returns the values in ascending order + * of the corresponding keys. The collection's spliterator is + * late-binding, + * fail-fast, and additionally reports {@link Spliterator#ORDERED} + * with an encounter order that is ascending order of the corresponding + * keys. + *

The collection is backed by the map, so changes to the map are + * reflected in the collection, and vice-versa. If the map is + * modified while an iteration over the collection is in progress + * (except through the iterator's own {@code remove} operation), + * the results of the iteration are undefined. The collection + * supports element removal, which removes the corresponding + * mapping from the map, via the {@code Iterator.remove}, + * {@code Collection.remove}, {@code removeAll}, + * {@code retainAll} and {@code clear} operations. It does not + * support the {@code add} or {@code addAll} operations. + */ + // @ts-ignore + public values(): java.util.Collection; + /** + * Returns a {@link Set} view of the mappings contained in this map. + *

The set's iterator returns the entries in ascending key order. The + * sets's spliterator is + * late-binding, + * fail-fast, and additionally reports {@link Spliterator#SORTED} and + * {@link Spliterator#ORDERED} with an encounter order that is ascending key + * order. + *

The set is backed by the map, so changes to the map are + * reflected in the set, and vice-versa. If the map is modified + * while an iteration over the set is in progress (except through + * the iterator's own {@code remove} operation, or through the + * {@code setValue} operation on a map entry returned by the + * iterator) the results of the iteration are undefined. The set + * supports element removal, which removes the corresponding + * mapping from the map, via the {@code Iterator.remove}, + * {@code Set.remove}, {@code removeAll}, {@code retainAll} and + * {@code clear} operations. It does not support the + * {@code add} or {@code addAll} operations. + */ + // @ts-ignore + public entrySet(): java.util.Set; + // @ts-ignore + public descendingMap(): java.util.NavigableMap; + // @ts-ignore + public subMap(fromKey: java.lang.Object, fromInclusive: boolean, toKey: java.lang.Object, toInclusive: boolean): java.util.NavigableMap; + // @ts-ignore + public headMap(toKey: java.lang.Object, inclusive: boolean): java.util.NavigableMap; + // @ts-ignore + public tailMap(fromKey: java.lang.Object, inclusive: boolean): java.util.NavigableMap; + // @ts-ignore + public subMap(fromKey: java.lang.Object, toKey: java.lang.Object): java.util.SortedMap; + // @ts-ignore + public headMap(toKey: java.lang.Object): java.util.SortedMap; + // @ts-ignore + public tailMap(fromKey: java.lang.Object): java.util.SortedMap; + // @ts-ignore + public replace(key: java.lang.Object, oldValue: java.lang.Object, newValue: java.lang.Object): boolean; + // @ts-ignore + public replace(key: java.lang.Object, value: java.lang.Object): java.lang.Object; + // @ts-ignore + public forEach(action: java.util.function$.BiConsumer): void; + // @ts-ignore + public replaceAll(func: java.util.function$.BiFunction): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.TreeSet.d.ts b/packages/types/dist/typings/jdk/java.util.TreeSet.d.ts new file mode 100644 index 00000000..75077603 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.TreeSet.d.ts @@ -0,0 +1,165 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class TreeSet extends java.util.AbstractSet { + /** + * Constructs a new, empty tree set, sorted according to the + * natural ordering of its elements. All elements inserted into + * the set must implement the {@link Comparable} interface. + * Furthermore, all such elements must be mutually + * comparable: {@code e1.compareTo(e2)} must not throw a + * {@code ClassCastException} for any elements {@code e1} and + * {@code e2} in the set. If the user attempts to add an element + * to the set that violates this constraint (for example, the user + * attempts to add a string element to a set whose elements are + * integers), the {@code add} call will throw a + * {@code ClassCastException}. + */ + // @ts-ignore + constructor() + /** + * Constructs a new, empty tree set, sorted according to the specified + * comparator. All elements inserted into the set must be mutually + * comparable by the specified comparator: {@code comparator.compare(e1, + * e2)} must not throw a {@code ClassCastException} for any elements + * {@code e1} and {@code e2} in the set. If the user attempts to add + * an element to the set that violates this constraint, the + * {@code add} call will throw a {@code ClassCastException}. + */ + // @ts-ignore + constructor(comparator: java.util.Comparator) + /** + * Constructs a new tree set containing the elements in the specified + * collection, sorted according to the natural ordering of its + * elements. All elements inserted into the set must implement the + * {@link Comparable} interface. Furthermore, all such elements must be + * mutually comparable: {@code e1.compareTo(e2)} must not throw a + * {@code ClassCastException} for any elements {@code e1} and + * {@code e2} in the set. + */ + // @ts-ignore + constructor(c: java.util.Collection) + /** + * Constructs a new tree set containing the same elements and + * using the same ordering as the specified sorted set. + */ + // @ts-ignore + constructor(s: java.util.SortedSet) + /** + * Returns an iterator over the elements in this set in ascending order. + */ + // @ts-ignore + public iterator(): java.util.Iterator; + /** + * Returns an iterator over the elements in this set in descending order. + */ + // @ts-ignore + public descendingIterator(): java.util.Iterator; + // @ts-ignore + public descendingSet(): java.util.NavigableSet; + /** + * Returns the number of elements in this set (its cardinality). + */ + // @ts-ignore + public size(): number; + /** + * Returns {@code true} if this set contains no elements. + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * Returns {@code true} if this set contains the specified element. + * More formally, returns {@code true} if and only if this set + * contains an element {@code e} such that + * (o==null ? e==null : o.equals(e)). + */ + // @ts-ignore + public contains(o: java.lang.Object): boolean; + /** + * Adds the specified element to this set if it is not already present. + * More formally, adds the specified element {@code e} to this set if + * the set contains no element {@code e2} such that + * (e==null ? e2==null : e.equals(e2)). + * If this set already contains the element, the call leaves the set + * unchanged and returns {@code false}. + */ + // @ts-ignore + public add(e: java.lang.Object): boolean; + /** + * Removes the specified element from this set if it is present. + * More formally, removes an element {@code e} such that + * (o==null ? e==null : o.equals(e)), + * if this set contains such an element. Returns {@code true} if + * this set contained the element (or equivalently, if this set + * changed as a result of the call). (This set will not contain the + * element once the call returns.) + */ + // @ts-ignore + public remove(o: java.lang.Object): boolean; + /** + * Removes all of the elements from this set. + * The set will be empty after this call returns. + */ + // @ts-ignore + public clear(): void; + /** + * Adds all of the elements in the specified collection to this set. + */ + // @ts-ignore + public addAll(c: java.util.Collection): boolean; + // @ts-ignore + public subSet(fromElement: java.lang.Object, fromInclusive: boolean, toElement: java.lang.Object, toInclusive: boolean): java.util.NavigableSet; + // @ts-ignore + public headSet(toElement: java.lang.Object, inclusive: boolean): java.util.NavigableSet; + // @ts-ignore + public tailSet(fromElement: java.lang.Object, inclusive: boolean): java.util.NavigableSet; + // @ts-ignore + public subSet(fromElement: java.lang.Object, toElement: java.lang.Object): java.util.SortedSet; + // @ts-ignore + public headSet(toElement: java.lang.Object): java.util.SortedSet; + // @ts-ignore + public tailSet(fromElement: java.lang.Object): java.util.SortedSet; + // @ts-ignore + public comparator(): java.util.Comparator; + // @ts-ignore + public first(): java.lang.Object; + // @ts-ignore + public last(): java.lang.Object; + // @ts-ignore + public lower(e: java.lang.Object): java.lang.Object; + // @ts-ignore + public floor(e: java.lang.Object): java.lang.Object; + // @ts-ignore + public ceiling(e: java.lang.Object): java.lang.Object; + // @ts-ignore + public higher(e: java.lang.Object): java.lang.Object; + // @ts-ignore + public pollFirst(): java.lang.Object; + // @ts-ignore + public pollLast(): java.lang.Object; + /** + * Returns a shallow copy of this {@code TreeSet} instance. (The elements + * themselves are not cloned.) + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Creates a late-binding + * and fail-fast {@link Spliterator} over the elements in this + * set. + *

The {@code Spliterator} reports {@link Spliterator#SIZED}, + * {@link Spliterator#DISTINCT}, {@link Spliterator#SORTED}, and + * {@link Spliterator#ORDERED}. Overriding implementations should document + * the reporting of additional characteristic values. + *

The spliterator's comparator (see + * {@link java.util.Spliterator#getComparator()}) is {@code null} if + * the tree set's comparator (see {@link #comparator()}) is {@code null}. + * Otherwise, the spliterator's comparator is the same as or imposes the + * same total ordering as the tree set's comparator. + */ + // @ts-ignore + public spliterator(): java.util.Spliterator; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.UUID.d.ts b/packages/types/dist/typings/jdk/java.util.UUID.d.ts new file mode 100644 index 00000000..600eaf0a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.UUID.d.ts @@ -0,0 +1,150 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class UUID extends java.lang.Object { + /** + * Constructs a new {@code UUID} using the specified data. {@code + * mostSigBits} is used for the most significant 64 bits of the {@code + * UUID} and {@code leastSigBits} becomes the least significant 64 bits of + * the {@code UUID}. + */ + // @ts-ignore + constructor(mostSigBits: number, leastSigBits: number) + /** + * Static factory to retrieve a type 4 (pseudo randomly generated) UUID. + * The {@code UUID} is generated using a cryptographically strong pseudo + * random number generator. + */ + // @ts-ignore + public static randomUUID(): java.util.UUID; + /** + * Static factory to retrieve a type 3 (name based) {@code UUID} based on + * the specified byte array. + */ + // @ts-ignore + public static nameUUIDFromBytes(name: number): java.util.UUID; + /** + * Creates a {@code UUID} from the string standard representation as + * described in the {@link #toString} method. + */ + // @ts-ignore + public static fromString(name: string): java.util.UUID; + /** + * Returns the least significant 64 bits of this UUID's 128 bit value. + */ + // @ts-ignore + public getLeastSignificantBits(): number; + /** + * Returns the most significant 64 bits of this UUID's 128 bit value. + */ + // @ts-ignore + public getMostSignificantBits(): number; + /** + * The version number associated with this {@code UUID}. The version + * number describes how this {@code UUID} was generated. + * The version number has the following meaning: + *

    + *
  • 1 Time-based UUID + *
  • 2 DCE security UUID + *
  • 3 Name-based UUID + *
  • 4 Randomly generated UUID + *
+ */ + // @ts-ignore + public version(): number; + /** + * The variant number associated with this {@code UUID}. The variant + * number describes the layout of the {@code UUID}. + * The variant number has the following meaning: + *
    + *
  • 0 Reserved for NCS backward compatibility + *
  • 2 IETF RFC 4122 + * (Leach-Salz), used by this class + *
  • 6 Reserved, Microsoft Corporation backward compatibility + *
  • 7 Reserved for future definition + *
+ */ + // @ts-ignore + public variant(): number; + /** + * The timestamp value associated with this UUID. + *

The 60 bit timestamp value is constructed from the time_low, + * time_mid, and time_hi fields of this {@code UUID}. The resulting + * timestamp is measured in 100-nanosecond units since midnight, + * October 15, 1582 UTC. + *

The timestamp value is only meaningful in a time-based UUID, which + * has version type 1. If this {@code UUID} is not a time-based UUID then + * this method throws UnsupportedOperationException. + */ + // @ts-ignore + public timestamp(): number; + /** + * The clock sequence value associated with this UUID. + *

The 14 bit clock sequence value is constructed from the clock + * sequence field of this UUID. The clock sequence field is used to + * guarantee temporal uniqueness in a time-based UUID. + *

The {@code clockSequence} value is only meaningful in a time-based + * UUID, which has version type 1. If this UUID is not a time-based UUID + * then this method throws UnsupportedOperationException. + */ + // @ts-ignore + public clockSequence(): number; + /** + * The node value associated with this UUID. + *

The 48 bit node value is constructed from the node field of this + * UUID. This field is intended to hold the IEEE 802 address of the machine + * that generated this UUID to guarantee spatial uniqueness. + *

The node value is only meaningful in a time-based UUID, which has + * version type 1. If this UUID is not a time-based UUID then this method + * throws UnsupportedOperationException. + */ + // @ts-ignore + public node(): number; + /** + * Returns a {@code String} object representing this {@code UUID}. + *

The UUID string representation is as described by this BNF: + *

+             * {@code
+             * UUID                   =  "-"  "-"
+             *  "-"
+             *  "-"
+             * 
+             * time_low               = 4*
+             * time_mid               = 2*
+             * time_high_and_version  = 2*
+             * variant_and_sequence   = 2*
+             * node                   = 6*
+             * hexOctet               = 
+             * hexDigit               =
+             * "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"
+             * | "a" | "b" | "c" | "d" | "e" | "f"
+             * | "A" | "B" | "C" | "D" | "E" | "F"
+             * }
+ */ + // @ts-ignore + public toString(): string; + /** + * Returns a hash code for this {@code UUID}. + */ + // @ts-ignore + public hashCode(): number; + /** + * Compares this object to the specified object. The result is {@code + * true} if and only if the argument is not {@code null}, is a {@code UUID} + * object, has the same variant, and contains the same value, bit for bit, + * as this {@code UUID}. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Compares this UUID with the specified UUID. + *

The first of two UUIDs is greater than the second if the most + * significant field in which the UUIDs differ is greater for the first + * UUID. + */ + // @ts-ignore + public compareTo(val: java.util.UUID): number; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.UnknownFormatConversionException.d.ts b/packages/types/dist/typings/jdk/java.util.UnknownFormatConversionException.d.ts new file mode 100644 index 00000000..fd2f3406 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.UnknownFormatConversionException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class UnknownFormatConversionException extends java.util.IllegalFormatException { + /** + * Constructs an instance of this class with the unknown conversion. + */ + // @ts-ignore + constructor(s: string) + /** + * Returns the unknown conversion. + */ + // @ts-ignore + public getConversion(): string; + // @ts-ignore + public getMessage(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.UnknownFormatFlagsException.d.ts b/packages/types/dist/typings/jdk/java.util.UnknownFormatFlagsException.d.ts new file mode 100644 index 00000000..249d3eb2 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.UnknownFormatFlagsException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class UnknownFormatFlagsException extends java.util.IllegalFormatException { + /** + * Constructs an instance of this class with the specified flags. + */ + // @ts-ignore + constructor(f: string) + /** + * Returns the set of flags which contains an unknown flag. + */ + // @ts-ignore + public getFlags(): string; + // @ts-ignore + public getMessage(): string; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.Vector.d.ts b/packages/types/dist/typings/jdk/java.util.Vector.d.ts new file mode 100644 index 00000000..3986703a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.Vector.d.ts @@ -0,0 +1,457 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class Vector extends java.util.AbstractList { + /** + * Constructs an empty vector with the specified initial capacity and + * capacity increment. + */ + // @ts-ignore + constructor(initialCapacity: number, capacityIncrement: number) + /** + * Constructs an empty vector with the specified initial capacity and + * with its capacity increment equal to zero. + */ + // @ts-ignore + constructor(initialCapacity: number) + /** + * Constructs an empty vector so that its internal data array + * has size {@code 10} and its standard capacity increment is + * zero. + */ + // @ts-ignore + constructor() + /** + * Constructs a vector containing the elements of the specified + * collection, in the order they are returned by the collection's + * iterator. + */ + // @ts-ignore + constructor(c: java.util.Collection) + // @ts-ignore + protected elementData: java.lang.Object[]; + // @ts-ignore + protected elementCount: number; + // @ts-ignore + protected capacityIncrement: number; + /** + * Copies the components of this vector into the specified array. + * The item at index {@code k} in this vector is copied into + * component {@code k} of {@code anArray}. + */ + // @ts-ignore + public copyInto(anArray: java.lang.Object): void; + /** + * Trims the capacity of this vector to be the vector's current + * size. If the capacity of this vector is larger than its current + * size, then the capacity is changed to equal the size by replacing + * its internal data array, kept in the field {@code elementData}, + * with a smaller one. An application can use this operation to + * minimize the storage of a vector. + */ + // @ts-ignore + public trimToSize(): void; + /** + * Increases the capacity of this vector, if necessary, to ensure + * that it can hold at least the number of components specified by + * the minimum capacity argument. + *

If the current capacity of this vector is less than + * {@code minCapacity}, then its capacity is increased by replacing its + * internal data array, kept in the field {@code elementData}, with a + * larger one. The size of the new data array will be the old size plus + * {@code capacityIncrement}, unless the value of + * {@code capacityIncrement} is less than or equal to zero, in which case + * the new capacity will be twice the old capacity; but if this new size + * is still smaller than {@code minCapacity}, then the new capacity will + * be {@code minCapacity}. + */ + // @ts-ignore + public ensureCapacity(minCapacity: number): void; + /** + * Sets the size of this vector. If the new size is greater than the + * current size, new {@code null} items are added to the end of + * the vector. If the new size is less than the current size, all + * components at index {@code newSize} and greater are discarded. + */ + // @ts-ignore + public setSize(newSize: number): void; + /** + * Returns the current capacity of this vector. + */ + // @ts-ignore + public capacity(): number; + /** + * Returns the number of components in this vector. + */ + // @ts-ignore + public size(): number; + /** + * Tests if this vector has no components. + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * Returns an enumeration of the components of this vector. The + * returned {@code Enumeration} object will generate all items in + * this vector. The first item generated is the item at index {@code 0}, + * then the item at index {@code 1}, and so on. + */ + // @ts-ignore + public elements(): java.util.Enumeration; + /** + * Returns {@code true} if this vector contains the specified element. + * More formally, returns {@code true} if and only if this vector + * contains at least one element {@code e} such that + * (o==null ? e==null : o.equals(e)). + */ + // @ts-ignore + public contains(o: java.lang.Object): boolean; + /** + * Returns the index of the first occurrence of the specified element + * in this vector, or -1 if this vector does not contain the element. + * More formally, returns the lowest index {@code i} such that + * (o==null ? get(i)==null : o.equals(get(i))), + * or -1 if there is no such index. + */ + // @ts-ignore + public indexOf(o: java.lang.Object): number; + /** + * Returns the index of the first occurrence of the specified element in + * this vector, searching forwards from {@code index}, or returns -1 if + * the element is not found. + * More formally, returns the lowest index {@code i} such that + * (i >= index && (o==null ? get(i)==null : o.equals(get(i)))), + * or -1 if there is no such index. + */ + // @ts-ignore + public indexOf(o: java.lang.Object, index: number): number; + /** + * Returns the index of the last occurrence of the specified element + * in this vector, or -1 if this vector does not contain the element. + * More formally, returns the highest index {@code i} such that + * (o==null ? get(i)==null : o.equals(get(i))), + * or -1 if there is no such index. + */ + // @ts-ignore + public lastIndexOf(o: java.lang.Object): number; + /** + * Returns the index of the last occurrence of the specified element in + * this vector, searching backwards from {@code index}, or returns -1 if + * the element is not found. + * More formally, returns the highest index {@code i} such that + * (i <= index && (o==null ? get(i)==null : o.equals(get(i)))), + * or -1 if there is no such index. + */ + // @ts-ignore + public lastIndexOf(o: java.lang.Object, index: number): number; + /** + * Returns the component at the specified index. + *

This method is identical in functionality to the {@link #get(int)} + * method (which is part of the {@link List} interface). + */ + // @ts-ignore + public elementAt(index: number): java.lang.Object; + /** + * Returns the first component (the item at index {@code 0}) of + * this vector. + */ + // @ts-ignore + public firstElement(): java.lang.Object; + /** + * Returns the last component of the vector. + */ + // @ts-ignore + public lastElement(): java.lang.Object; + /** + * Sets the component at the specified {@code index} of this + * vector to be the specified object. The previous component at that + * position is discarded. + *

The index must be a value greater than or equal to {@code 0} + * and less than the current size of the vector. + *

This method is identical in functionality to the + * {@link #set(int, Object) set(int, E)} + * method (which is part of the {@link List} interface). Note that the + * {@code set} method reverses the order of the parameters, to more closely + * match array usage. Note also that the {@code set} method returns the + * old value that was stored at the specified position. + */ + // @ts-ignore + public setElementAt(obj: java.lang.Object, index: number): void; + /** + * Deletes the component at the specified index. Each component in + * this vector with an index greater or equal to the specified + * {@code index} is shifted downward to have an index one + * smaller than the value it had previously. The size of this vector + * is decreased by {@code 1}. + *

The index must be a value greater than or equal to {@code 0} + * and less than the current size of the vector. + *

This method is identical in functionality to the {@link #remove(int)} + * method (which is part of the {@link List} interface). Note that the + * {@code remove} method returns the old value that was stored at the + * specified position. + */ + // @ts-ignore + public removeElementAt(index: number): void; + /** + * Inserts the specified object as a component in this vector at the + * specified {@code index}. Each component in this vector with + * an index greater or equal to the specified {@code index} is + * shifted upward to have an index one greater than the value it had + * previously. + *

The index must be a value greater than or equal to {@code 0} + * and less than or equal to the current size of the vector. (If the + * index is equal to the current size of the vector, the new element + * is appended to the Vector.) + *

This method is identical in functionality to the + * {@link #add(int, Object) add(int, E)} + * method (which is part of the {@link List} interface). Note that the + * {@code add} method reverses the order of the parameters, to more closely + * match array usage. + */ + // @ts-ignore + public insertElementAt(obj: java.lang.Object, index: number): void; + /** + * Adds the specified component to the end of this vector, + * increasing its size by one. The capacity of this vector is + * increased if its size becomes greater than its capacity. + *

This method is identical in functionality to the + * {@link #add(Object) add(E)} + * method (which is part of the {@link List} interface). + */ + // @ts-ignore + public addElement(obj: java.lang.Object): void; + /** + * Removes the first (lowest-indexed) occurrence of the argument + * from this vector. If the object is found in this vector, each + * component in the vector with an index greater or equal to the + * object's index is shifted downward to have an index one smaller + * than the value it had previously. + *

This method is identical in functionality to the + * {@link #remove(Object)} method (which is part of the + * {@link List} interface). + */ + // @ts-ignore + public removeElement(obj: java.lang.Object): boolean; + /** + * Removes all components from this vector and sets its size to zero. + *

This method is identical in functionality to the {@link #clear} + * method (which is part of the {@link List} interface). + */ + // @ts-ignore + public removeAllElements(): void; + /** + * Returns a clone of this vector. The copy will contain a + * reference to a clone of the internal data array, not a reference + * to the original internal data array of this {@code Vector} object. + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Returns an array containing all of the elements in this Vector + * in the correct order. + */ + // @ts-ignore + public toArray(): java.lang.Object[]; + /** + * Returns an array containing all of the elements in this Vector in the + * correct order; the runtime type of the returned array is that of the + * specified array. If the Vector fits in the specified array, it is + * returned therein. Otherwise, a new array is allocated with the runtime + * type of the specified array and the size of this Vector. + *

If the Vector fits in the specified array with room to spare + * (i.e., the array has more elements than the Vector), + * the element in the array immediately following the end of the + * Vector is set to null. (This is useful in determining the length + * of the Vector only if the caller knows that the Vector + * does not contain any null elements.) + */ + // @ts-ignore + public toArray(a: java.lang.Object): java.lang.Object[]; + /** + * Returns the element at the specified position in this Vector. + */ + // @ts-ignore + public get(index: number): java.lang.Object; + /** + * Replaces the element at the specified position in this Vector with the + * specified element. + */ + // @ts-ignore + public set(index: number, element: java.lang.Object): java.lang.Object; + /** + * Appends the specified element to the end of this Vector. + */ + // @ts-ignore + public add(e: java.lang.Object): boolean; + /** + * Removes the first occurrence of the specified element in this Vector + * If the Vector does not contain the element, it is unchanged. More + * formally, removes the element with the lowest index i such that + * {@code (o==null ? get(i)==null : o.equals(get(i)))} (if such + * an element exists). + */ + // @ts-ignore + public remove(o: java.lang.Object): boolean; + /** + * Inserts the specified element at the specified position in this Vector. + * Shifts the element currently at that position (if any) and any + * subsequent elements to the right (adds one to their indices). + */ + // @ts-ignore + public add(index: number, element: java.lang.Object): void; + /** + * Removes the element at the specified position in this Vector. + * Shifts any subsequent elements to the left (subtracts one from their + * indices). Returns the element that was removed from the Vector. + */ + // @ts-ignore + public remove(index: number): java.lang.Object; + /** + * Removes all of the elements from this Vector. The Vector will + * be empty after this call returns (unless it throws an exception). + */ + // @ts-ignore + public clear(): void; + /** + * Returns true if this Vector contains all of the elements in the + * specified Collection. + */ + // @ts-ignore + public containsAll(c: java.util.Collection): boolean; + /** + * Appends all of the elements in the specified Collection to the end of + * this Vector, in the order that they are returned by the specified + * Collection's Iterator. The behavior of this operation is undefined if + * the specified Collection is modified while the operation is in progress. + * (This implies that the behavior of this call is undefined if the + * specified Collection is this Vector, and this Vector is nonempty.) + */ + // @ts-ignore + public addAll(c: java.util.Collection): boolean; + /** + * Removes from this Vector all of its elements that are contained in the + * specified Collection. + */ + // @ts-ignore + public removeAll(c: java.util.Collection): boolean; + /** + * Retains only the elements in this Vector that are contained in the + * specified Collection. In other words, removes from this Vector all + * of its elements that are not contained in the specified Collection. + */ + // @ts-ignore + public retainAll(c: java.util.Collection): boolean; + /** + * Inserts all of the elements in the specified Collection into this + * Vector at the specified position. Shifts the element currently at + * that position (if any) and any subsequent elements to the right + * (increases their indices). The new elements will appear in the Vector + * in the order that they are returned by the specified Collection's + * iterator. + */ + // @ts-ignore + public addAll(index: number, c: java.util.Collection): boolean; + /** + * Compares the specified Object with this Vector for equality. Returns + * true if and only if the specified Object is also a List, both Lists + * have the same size, and all corresponding pairs of elements in the two + * Lists are equal. (Two elements {@code e1} and + * {@code e2} are equal if {@code (e1==null ? e2==null : + * e1.equals(e2))}.) In other words, two Lists are defined to be + * equal if they contain the same elements in the same order. + */ + // @ts-ignore + public equals(o: java.lang.Object): boolean; + /** + * Returns the hash code value for this Vector. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns a string representation of this Vector, containing + * the String representation of each element. + */ + // @ts-ignore + public toString(): string; + /** + * Returns a view of the portion of this List between fromIndex, + * inclusive, and toIndex, exclusive. (If fromIndex and toIndex are + * equal, the returned List is empty.) The returned List is backed by this + * List, so changes in the returned List are reflected in this List, and + * vice-versa. The returned List supports all of the optional List + * operations supported by this List. + *

This method eliminates the need for explicit range operations (of + * the sort that commonly exist for arrays). Any operation that expects + * a List can be used as a range operation by operating on a subList view + * instead of a whole List. For example, the following idiom + * removes a range of elements from a List: + *

+             * list.subList(from, to).clear();
+             * 
+ * Similar idioms may be constructed for indexOf and lastIndexOf, + * and all of the algorithms in the Collections class can be applied to + * a subList. + *

The semantics of the List returned by this method become undefined if + * the backing list (i.e., this List) is structurally modified in + * any way other than via the returned List. (Structural modifications are + * those that change the size of the List, or otherwise perturb it in such + * a fashion that iterations in progress may yield incorrect results.) + */ + // @ts-ignore + public subList(fromIndex: number, toIndex: number): java.util.List; + /** + * Removes from this list all of the elements whose index is between + * {@code fromIndex}, inclusive, and {@code toIndex}, exclusive. + * Shifts any succeeding elements to the left (reduces their index). + * This call shortens the list by {@code (toIndex - fromIndex)} elements. + * (If {@code toIndex==fromIndex}, this operation has no effect.) + */ + // @ts-ignore + protected removeRange(fromIndex: number, toIndex: number): void; + /** + * Returns a list iterator over the elements in this list (in proper + * sequence), starting at the specified position in the list. + * The specified index indicates the first element that would be + * returned by an initial call to {@link ListIterator#next next}. + * An initial call to {@link ListIterator#previous previous} would + * return the element with the specified index minus one. + *

The returned list iterator is fail-fast. + */ + // @ts-ignore + public listIterator(index: number): java.util.ListIterator; + /** + * Returns a list iterator over the elements in this list (in proper + * sequence). + *

The returned list iterator is fail-fast. + */ + // @ts-ignore + public listIterator(): java.util.ListIterator; + /** + * Returns an iterator over the elements in this list in proper sequence. + *

The returned iterator is fail-fast. + */ + // @ts-ignore + public iterator(): java.util.Iterator; + // @ts-ignore + public forEach(action: java.util.function$.Consumer): void; + // @ts-ignore + public removeIf(filter: java.util.function$.Predicate): boolean; + // @ts-ignore + public replaceAll(operator: java.util.function$.UnaryOperator): void; + // @ts-ignore + public sort(c: java.util.Comparator): void; + /** + * Creates a late-binding + * and fail-fast {@link Spliterator} over the elements in this + * list. + *

The {@code Spliterator} reports {@link Spliterator#SIZED}, + * {@link Spliterator#SUBSIZED}, and {@link Spliterator#ORDERED}. + * Overriding implementations should document the reporting of additional + * characteristic values. + */ + // @ts-ignore + public spliterator(): java.util.Spliterator; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.WeakHashMap.d.ts b/packages/types/dist/typings/jdk/java.util.WeakHashMap.d.ts new file mode 100644 index 00000000..d55802cd --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.WeakHashMap.d.ts @@ -0,0 +1,163 @@ +// @ts-nocheck +declare namespace java { + namespace util { + // @ts-ignore + class WeakHashMap extends java.util.AbstractMap { + /** + * Constructs a new, empty WeakHashMap with the given initial + * capacity and the given load factor. + */ + // @ts-ignore + constructor(initialCapacity: number, loadFactor: number) + /** + * Constructs a new, empty WeakHashMap with the given initial + * capacity and the default load factor (0.75). + */ + // @ts-ignore + constructor(initialCapacity: number) + /** + * Constructs a new, empty WeakHashMap with the default initial + * capacity (16) and load factor (0.75). + */ + // @ts-ignore + constructor() + /** + * Constructs a new WeakHashMap with the same mappings as the + * specified map. The WeakHashMap is created with the default + * load factor (0.75) and an initial capacity sufficient to hold the + * mappings in the specified map. + */ + // @ts-ignore + constructor(m: java.util.Map) + /** + * Returns the number of key-value mappings in this map. + * This result is a snapshot, and may not reflect unprocessed + * entries that will be removed before next attempted access + * because they are no longer referenced. + */ + // @ts-ignore + public size(): number; + /** + * Returns true if this map contains no key-value mappings. + * This result is a snapshot, and may not reflect unprocessed + * entries that will be removed before next attempted access + * because they are no longer referenced. + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * Returns the value to which the specified key is mapped, + * or {@code null} if this map contains no mapping for the key. + *

More formally, if this map contains a mapping from a key + * {@code k} to a value {@code v} such that {@code (key==null ? k==null : + * key.equals(k))}, then this method returns {@code v}; otherwise + * it returns {@code null}. (There can be at most one such mapping.) + *

A return value of {@code null} does not necessarily + * indicate that the map contains no mapping for the key; it's also + * possible that the map explicitly maps the key to {@code null}. + * The {@link #containsKey containsKey} operation may be used to + * distinguish these two cases. + */ + // @ts-ignore + public get(key: java.lang.Object): java.lang.Object; + /** + * Returns true if this map contains a mapping for the + * specified key. + */ + // @ts-ignore + public containsKey(key: java.lang.Object): boolean; + /** + * Associates the specified value with the specified key in this map. + * If the map previously contained a mapping for this key, the old + * value is replaced. + */ + // @ts-ignore + public put(key: java.lang.Object, value: java.lang.Object): java.lang.Object; + /** + * Copies all of the mappings from the specified map to this map. + * These mappings will replace any mappings that this map had for any + * of the keys currently in the specified map. + */ + // @ts-ignore + public putAll(m: java.util.Map): void; + /** + * Removes the mapping for a key from this weak hash map if it is present. + * More formally, if this map contains a mapping from key k to + * value v such that (key==null ? k==null : + * key.equals(k)), that mapping is removed. (The map can contain + * at most one such mapping.) + *

Returns the value to which this map previously associated the key, + * or null if the map contained no mapping for the key. A + * return value of null does not necessarily indicate + * that the map contained no mapping for the key; it's also possible + * that the map explicitly mapped the key to null. + *

The map will not contain a mapping for the specified key once the + * call returns. + */ + // @ts-ignore + public remove(key: java.lang.Object): java.lang.Object; + /** + * Removes all of the mappings from this map. + * The map will be empty after this call returns. + */ + // @ts-ignore + public clear(): void; + /** + * Returns true if this map maps one or more keys to the + * specified value. + */ + // @ts-ignore + public containsValue(value: java.lang.Object): boolean; + /** + * Returns a {@link Set} view of the keys contained in this map. + * The set is backed by the map, so changes to the map are + * reflected in the set, and vice-versa. If the map is modified + * while an iteration over the set is in progress (except through + * the iterator's own remove operation), the results of + * the iteration are undefined. The set supports element removal, + * which removes the corresponding mapping from the map, via the + * Iterator.remove, Set.remove, + * removeAll, retainAll, and clear + * operations. It does not support the add or addAll + * operations. + */ + // @ts-ignore + public keySet(): java.util.Set; + /** + * Returns a {@link Collection} view of the values contained in this map. + * The collection is backed by the map, so changes to the map are + * reflected in the collection, and vice-versa. If the map is + * modified while an iteration over the collection is in progress + * (except through the iterator's own remove operation), + * the results of the iteration are undefined. The collection + * supports element removal, which removes the corresponding + * mapping from the map, via the Iterator.remove, + * Collection.remove, removeAll, + * retainAll and clear operations. It does not + * support the add or addAll operations. + */ + // @ts-ignore + public values(): java.util.Collection; + /** + * Returns a {@link Set} view of the mappings contained in this map. + * The set is backed by the map, so changes to the map are + * reflected in the set, and vice-versa. If the map is modified + * while an iteration over the set is in progress (except through + * the iterator's own remove operation, or through the + * setValue operation on a map entry returned by the + * iterator) the results of the iteration are undefined. The set + * supports element removal, which removes the corresponding + * mapping from the map, via the Iterator.remove, + * Set.remove, removeAll, retainAll and + * clear operations. It does not support the + * add or addAll operations. + */ + // @ts-ignore + public entrySet(): java.util.Set; + // @ts-ignore + public forEach(action: java.util.function$.BiConsumer): void; + // @ts-ignore + public replaceAll(func: java.util.function$.BiFunction): void; + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.AbstractExecutorService.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.AbstractExecutorService.d.ts new file mode 100644 index 00000000..dc015daf --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.AbstractExecutorService.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + abstract class AbstractExecutorService extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Returns a {@code RunnableFuture} for the given runnable and default + * value. + */ + // @ts-ignore + protected newTaskFor(runnable: java.lang.Runnable, value: java.lang.Object): java.util.concurrent.RunnableFuture; + /** + * Returns a {@code RunnableFuture} for the given callable task. + */ + // @ts-ignore + protected newTaskFor(callable: java.util.concurrent.Callable): java.util.concurrent.RunnableFuture; + // @ts-ignore + public submit(task: java.lang.Runnable): java.util.concurrent.Future; + // @ts-ignore + public submit(task: java.lang.Runnable, result: java.lang.Object): java.util.concurrent.Future; + // @ts-ignore + public submit(task: java.util.concurrent.Callable): java.util.concurrent.Future; + // @ts-ignore + public invokeAny(tasks: java.util.Collection): java.lang.Object; + // @ts-ignore + public invokeAny(tasks: java.util.Collection, timeout: number, unit: java.util.concurrent.TimeUnit): java.lang.Object; + // @ts-ignore + public invokeAll(tasks: java.util.Collection): java.util.List; + // @ts-ignore + public invokeAll(tasks: java.util.Collection, timeout: number, unit: java.util.concurrent.TimeUnit): java.util.List; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.ArrayBlockingQueue.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.ArrayBlockingQueue.d.ts new file mode 100644 index 00000000..f69c51aa --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.ArrayBlockingQueue.d.ts @@ -0,0 +1,170 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class ArrayBlockingQueue extends java.util.AbstractQueue { + /** + * Creates an {@code ArrayBlockingQueue} with the given (fixed) + * capacity and default access policy. + */ + // @ts-ignore + constructor(capacity: number) + /** + * Creates an {@code ArrayBlockingQueue} with the given (fixed) + * capacity and the specified access policy. + */ + // @ts-ignore + constructor(capacity: number, fair: boolean) + /** + * Creates an {@code ArrayBlockingQueue} with the given (fixed) + * capacity, the specified access policy and initially containing the + * elements of the given collection, + * added in traversal order of the collection's iterator. + */ + // @ts-ignore + constructor(capacity: number, fair: boolean, c: java.util.Collection) + /** + * Inserts the specified element at the tail of this queue if it is + * possible to do so immediately without exceeding the queue's capacity, + * returning {@code true} upon success and throwing an + * {@code IllegalStateException} if this queue is full. + */ + // @ts-ignore + public add(e: java.lang.Object): boolean; + /** + * Inserts the specified element at the tail of this queue if it is + * possible to do so immediately without exceeding the queue's capacity, + * returning {@code true} upon success and {@code false} if this queue + * is full. This method is generally preferable to method {@link #add}, + * which can fail to insert an element only by throwing an exception. + */ + // @ts-ignore + public offer(e: java.lang.Object): boolean; + /** + * Inserts the specified element at the tail of this queue, waiting + * for space to become available if the queue is full. + */ + // @ts-ignore + public put(e: java.lang.Object): void; + /** + * Inserts the specified element at the tail of this queue, waiting + * up to the specified wait time for space to become available if + * the queue is full. + */ + // @ts-ignore + public offer(e: java.lang.Object, timeout: number, unit: java.util.concurrent.TimeUnit): boolean; + // @ts-ignore + public poll(): java.lang.Object; + // @ts-ignore + public take(): java.lang.Object; + // @ts-ignore + public poll(timeout: number, unit: java.util.concurrent.TimeUnit): java.lang.Object; + // @ts-ignore + public peek(): java.lang.Object; + /** + * Returns the number of elements in this queue. + */ + // @ts-ignore + public size(): number; + /** + * Returns the number of additional elements that this queue can ideally + * (in the absence of memory or resource constraints) accept without + * blocking. This is always equal to the initial capacity of this queue + * less the current {@code size} of this queue. + *

Note that you cannot always tell if an attempt to insert + * an element will succeed by inspecting {@code remainingCapacity} + * because it may be the case that another thread is about to + * insert or remove an element. + */ + // @ts-ignore + public remainingCapacity(): number; + /** + * Removes a single instance of the specified element from this queue, + * if it is present. More formally, removes an element {@code e} such + * that {@code o.equals(e)}, if this queue contains one or more such + * elements. + * Returns {@code true} if this queue contained the specified element + * (or equivalently, if this queue changed as a result of the call). + *

Removal of interior elements in circular array based queues + * is an intrinsically slow and disruptive operation, so should + * be undertaken only in exceptional circumstances, ideally + * only when the queue is known not to be accessible by other + * threads. + */ + // @ts-ignore + public remove(o: java.lang.Object): boolean; + /** + * Returns {@code true} if this queue contains the specified element. + * More formally, returns {@code true} if and only if this queue contains + * at least one element {@code e} such that {@code o.equals(e)}. + */ + // @ts-ignore + public contains(o: java.lang.Object): boolean; + /** + * Returns an array containing all of the elements in this queue, in + * proper sequence. + *

The returned array will be "safe" in that no references to it are + * maintained by this queue. (In other words, this method must allocate + * a new array). The caller is thus free to modify the returned array. + *

This method acts as bridge between array-based and collection-based + * APIs. + */ + // @ts-ignore + public toArray(): java.lang.Object[]; + /** + * Returns an array containing all of the elements in this queue, in + * proper sequence; the runtime type of the returned array is that of + * the specified array. If the queue fits in the specified array, it + * is returned therein. Otherwise, a new array is allocated with the + * runtime type of the specified array and the size of this queue. + *

If this queue fits in the specified array with room to spare + * (i.e., the array has more elements than this queue), the element in + * the array immediately following the end of the queue is set to + * {@code null}. + *

Like the {@link #toArray()} method, this method acts as bridge between + * array-based and collection-based APIs. Further, this method allows + * precise control over the runtime type of the output array, and may, + * under certain circumstances, be used to save allocation costs. + *

Suppose {@code x} is a queue known to contain only strings. + * The following code can be used to dump the queue into a newly + * allocated array of {@code String}: + *

 {@code String[] y = x.toArray(new String[0]);}
+ * Note that {@code toArray(new Object[0])} is identical in function to + * {@code toArray()}. + */ + // @ts-ignore + public toArray(a: java.lang.Object): java.lang.Object[]; + // @ts-ignore + public toString(): string; + /** + * Atomically removes all of the elements from this queue. + * The queue will be empty after this call returns. + */ + // @ts-ignore + public clear(): void; + // @ts-ignore + public drainTo(c: java.util.Collection): number; + // @ts-ignore + public drainTo(c: java.util.Collection, maxElements: number): number; + /** + * Returns an iterator over the elements in this queue in proper sequence. + * The elements will be returned in order from first (head) to last (tail). + *

The returned iterator is + * weakly consistent. + */ + // @ts-ignore + public iterator(): java.util.Iterator; + /** + * Returns a {@link Spliterator} over the elements in this queue. + *

The returned spliterator is + * weakly consistent. + *

The {@code Spliterator} reports {@link Spliterator#CONCURRENT}, + * {@link Spliterator#ORDERED}, and {@link Spliterator#NONNULL}. + */ + // @ts-ignore + public spliterator(): java.util.Spliterator; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.BlockingDeque.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.BlockingDeque.d.ts new file mode 100644 index 00000000..63e2e595 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.BlockingDeque.d.ts @@ -0,0 +1,253 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + interface BlockingDeque { + /** + * Inserts the specified element at the front of this deque if it is + * possible to do so immediately without violating capacity restrictions, + * throwing an {@code IllegalStateException} if no space is currently + * available. When using a capacity-restricted deque, it is generally + * preferable to use {@link #offerFirst(Object) offerFirst}. + */ + // @ts-ignore + addFirst(e: java.lang.Object): void; + /** + * Inserts the specified element at the end of this deque if it is + * possible to do so immediately without violating capacity restrictions, + * throwing an {@code IllegalStateException} if no space is currently + * available. When using a capacity-restricted deque, it is generally + * preferable to use {@link #offerLast(Object) offerLast}. + */ + // @ts-ignore + addLast(e: java.lang.Object): void; + /** + * Inserts the specified element at the front of this deque if it is + * possible to do so immediately without violating capacity restrictions, + * returning {@code true} upon success and {@code false} if no space is + * currently available. + * When using a capacity-restricted deque, this method is generally + * preferable to the {@link #addFirst(Object) addFirst} method, which can + * fail to insert an element only by throwing an exception. + */ + // @ts-ignore + offerFirst(e: java.lang.Object): boolean; + /** + * Inserts the specified element at the end of this deque if it is + * possible to do so immediately without violating capacity restrictions, + * returning {@code true} upon success and {@code false} if no space is + * currently available. + * When using a capacity-restricted deque, this method is generally + * preferable to the {@link #addLast(Object) addLast} method, which can + * fail to insert an element only by throwing an exception. + */ + // @ts-ignore + offerLast(e: java.lang.Object): boolean; + /** + * Inserts the specified element at the front of this deque, + * waiting if necessary for space to become available. + */ + // @ts-ignore + putFirst(e: java.lang.Object): void; + /** + * Inserts the specified element at the end of this deque, + * waiting if necessary for space to become available. + */ + // @ts-ignore + putLast(e: java.lang.Object): void; + /** + * Inserts the specified element at the front of this deque, + * waiting up to the specified wait time if necessary for space to + * become available. + */ + // @ts-ignore + offerFirst(e: java.lang.Object, timeout: number, unit: java.util.concurrent.TimeUnit): boolean; + /** + * Inserts the specified element at the end of this deque, + * waiting up to the specified wait time if necessary for space to + * become available. + */ + // @ts-ignore + offerLast(e: java.lang.Object, timeout: number, unit: java.util.concurrent.TimeUnit): boolean; + /** + * Retrieves and removes the first element of this deque, waiting + * if necessary until an element becomes available. + */ + // @ts-ignore + takeFirst(): java.lang.Object; + /** + * Retrieves and removes the last element of this deque, waiting + * if necessary until an element becomes available. + */ + // @ts-ignore + takeLast(): java.lang.Object; + /** + * Retrieves and removes the first element of this deque, waiting + * up to the specified wait time if necessary for an element to + * become available. + */ + // @ts-ignore + pollFirst(timeout: number, unit: java.util.concurrent.TimeUnit): java.lang.Object; + /** + * Retrieves and removes the last element of this deque, waiting + * up to the specified wait time if necessary for an element to + * become available. + */ + // @ts-ignore + pollLast(timeout: number, unit: java.util.concurrent.TimeUnit): java.lang.Object; + /** + * Removes the first occurrence of the specified element from this deque. + * If the deque does not contain the element, it is unchanged. + * More formally, removes the first element {@code e} such that + * {@code o.equals(e)} (if such an element exists). + * Returns {@code true} if this deque contained the specified element + * (or equivalently, if this deque changed as a result of the call). + */ + // @ts-ignore + removeFirstOccurrence(o: java.lang.Object): boolean; + /** + * Removes the last occurrence of the specified element from this deque. + * If the deque does not contain the element, it is unchanged. + * More formally, removes the last element {@code e} such that + * {@code o.equals(e)} (if such an element exists). + * Returns {@code true} if this deque contained the specified element + * (or equivalently, if this deque changed as a result of the call). + */ + // @ts-ignore + removeLastOccurrence(o: java.lang.Object): boolean; + /** + * Inserts the specified element into the queue represented by this deque + * (in other words, at the tail of this deque) if it is possible to do so + * immediately without violating capacity restrictions, returning + * {@code true} upon success and throwing an + * {@code IllegalStateException} if no space is currently available. + * When using a capacity-restricted deque, it is generally preferable to + * use {@link #offer(Object) offer}. + *

This method is equivalent to {@link #addLast(Object) addLast}. + */ + // @ts-ignore + add(e: java.lang.Object): boolean; + /** + * Inserts the specified element into the queue represented by this deque + * (in other words, at the tail of this deque) if it is possible to do so + * immediately without violating capacity restrictions, returning + * {@code true} upon success and {@code false} if no space is currently + * available. When using a capacity-restricted deque, this method is + * generally preferable to the {@link #add} method, which can fail to + * insert an element only by throwing an exception. + *

This method is equivalent to {@link #offerLast(Object) offerLast}. + */ + // @ts-ignore + offer(e: java.lang.Object): boolean; + /** + * Inserts the specified element into the queue represented by this deque + * (in other words, at the tail of this deque), waiting if necessary for + * space to become available. + *

This method is equivalent to {@link #putLast(Object) putLast}. + */ + // @ts-ignore + put(e: java.lang.Object): void; + /** + * Inserts the specified element into the queue represented by this deque + * (in other words, at the tail of this deque), waiting up to the + * specified wait time if necessary for space to become available. + *

This method is equivalent to + * {@link #offerLast(Object,long,TimeUnit) offerLast}. + */ + // @ts-ignore + offer(e: java.lang.Object, timeout: number, unit: java.util.concurrent.TimeUnit): boolean; + /** + * Retrieves and removes the head of the queue represented by this deque + * (in other words, the first element of this deque). + * This method differs from {@link #poll poll} only in that it + * throws an exception if this deque is empty. + *

This method is equivalent to {@link #removeFirst() removeFirst}. + */ + // @ts-ignore + remove(): java.lang.Object; + /** + * Retrieves and removes the head of the queue represented by this deque + * (in other words, the first element of this deque), or returns + * {@code null} if this deque is empty. + *

This method is equivalent to {@link #pollFirst()}. + */ + // @ts-ignore + poll(): java.lang.Object; + /** + * Retrieves and removes the head of the queue represented by this deque + * (in other words, the first element of this deque), waiting if + * necessary until an element becomes available. + *

This method is equivalent to {@link #takeFirst() takeFirst}. + */ + // @ts-ignore + take(): java.lang.Object; + /** + * Retrieves and removes the head of the queue represented by this deque + * (in other words, the first element of this deque), waiting up to the + * specified wait time if necessary for an element to become available. + *

This method is equivalent to + * {@link #pollFirst(long,TimeUnit) pollFirst}. + */ + // @ts-ignore + poll(timeout: number, unit: java.util.concurrent.TimeUnit): java.lang.Object; + /** + * Retrieves, but does not remove, the head of the queue represented by + * this deque (in other words, the first element of this deque). + * This method differs from {@link #peek peek} only in that it throws an + * exception if this deque is empty. + *

This method is equivalent to {@link #getFirst() getFirst}. + */ + // @ts-ignore + element(): java.lang.Object; + /** + * Retrieves, but does not remove, the head of the queue represented by + * this deque (in other words, the first element of this deque), or + * returns {@code null} if this deque is empty. + *

This method is equivalent to {@link #peekFirst() peekFirst}. + */ + // @ts-ignore + peek(): java.lang.Object; + /** + * Removes the first occurrence of the specified element from this deque. + * If the deque does not contain the element, it is unchanged. + * More formally, removes the first element {@code e} such that + * {@code o.equals(e)} (if such an element exists). + * Returns {@code true} if this deque contained the specified element + * (or equivalently, if this deque changed as a result of the call). + *

This method is equivalent to + * {@link #removeFirstOccurrence(Object) removeFirstOccurrence}. + */ + // @ts-ignore + remove(o: java.lang.Object): boolean; + /** + * Returns {@code true} if this deque contains the specified element. + * More formally, returns {@code true} if and only if this deque contains + * at least one element {@code e} such that {@code o.equals(e)}. + */ + // @ts-ignore + contains(o: java.lang.Object): boolean; + /** + * Returns the number of elements in this deque. + */ + // @ts-ignore + size(): number; + /** + * Returns an iterator over the elements in this deque in proper sequence. + * The elements will be returned in order from first (head) to last (tail). + */ + // @ts-ignore + iterator(): java.util.Iterator; + /** + * Pushes an element onto the stack represented by this deque (in other + * words, at the head of this deque) if it is possible to do so + * immediately without violating capacity restrictions, throwing an + * {@code IllegalStateException} if no space is currently available. + *

This method is equivalent to {@link #addFirst(Object) addFirst}. + */ + // @ts-ignore + push(e: java.lang.Object): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.BlockingQueue.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.BlockingQueue.d.ts new file mode 100644 index 00000000..80bf06ac --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.BlockingQueue.d.ts @@ -0,0 +1,110 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + interface BlockingQueue { + /** + * Inserts the specified element into this queue if it is possible to do + * so immediately without violating capacity restrictions, returning + * {@code true} upon success and throwing an + * {@code IllegalStateException} if no space is currently available. + * When using a capacity-restricted queue, it is generally preferable to + * use {@link #offer(Object) offer}. + */ + // @ts-ignore + add(e: java.lang.Object): boolean; + /** + * Inserts the specified element into this queue if it is possible to do + * so immediately without violating capacity restrictions, returning + * {@code true} upon success and {@code false} if no space is currently + * available. When using a capacity-restricted queue, this method is + * generally preferable to {@link #add}, which can fail to insert an + * element only by throwing an exception. + */ + // @ts-ignore + offer(e: java.lang.Object): boolean; + /** + * Inserts the specified element into this queue, waiting if necessary + * for space to become available. + */ + // @ts-ignore + put(e: java.lang.Object): void; + /** + * Inserts the specified element into this queue, waiting up to the + * specified wait time if necessary for space to become available. + */ + // @ts-ignore + offer(e: java.lang.Object, timeout: number, unit: java.util.concurrent.TimeUnit): boolean; + /** + * Retrieves and removes the head of this queue, waiting if necessary + * until an element becomes available. + */ + // @ts-ignore + take(): java.lang.Object; + /** + * Retrieves and removes the head of this queue, waiting up to the + * specified wait time if necessary for an element to become available. + */ + // @ts-ignore + poll(timeout: number, unit: java.util.concurrent.TimeUnit): java.lang.Object; + /** + * Returns the number of additional elements that this queue can ideally + * (in the absence of memory or resource constraints) accept without + * blocking, or {@code Integer.MAX_VALUE} if there is no intrinsic + * limit. + *

Note that you cannot always tell if an attempt to insert + * an element will succeed by inspecting {@code remainingCapacity} + * because it may be the case that another thread is about to + * insert or remove an element. + */ + // @ts-ignore + remainingCapacity(): number; + /** + * Removes a single instance of the specified element from this queue, + * if it is present. More formally, removes an element {@code e} such + * that {@code o.equals(e)}, if this queue contains one or more such + * elements. + * Returns {@code true} if this queue contained the specified element + * (or equivalently, if this queue changed as a result of the call). + */ + // @ts-ignore + remove(o: java.lang.Object): boolean; + /** + * Returns {@code true} if this queue contains the specified element. + * More formally, returns {@code true} if and only if this queue contains + * at least one element {@code e} such that {@code o.equals(e)}. + */ + // @ts-ignore + contains(o: java.lang.Object): boolean; + /** + * Removes all available elements from this queue and adds them + * to the given collection. This operation may be more + * efficient than repeatedly polling this queue. A failure + * encountered while attempting to add elements to + * collection {@code c} may result in elements being in neither, + * either or both collections when the associated exception is + * thrown. Attempts to drain a queue to itself result in + * {@code IllegalArgumentException}. Further, the behavior of + * this operation is undefined if the specified collection is + * modified while the operation is in progress. + */ + // @ts-ignore + drainTo(c: java.util.Collection): number; + /** + * Removes at most the given number of available elements from + * this queue and adds them to the given collection. A failure + * encountered while attempting to add elements to + * collection {@code c} may result in elements being in neither, + * either or both collections when the associated exception is + * thrown. Attempts to drain a queue to itself result in + * {@code IllegalArgumentException}. Further, the behavior of + * this operation is undefined if the specified collection is + * modified while the operation is in progress. + */ + // @ts-ignore + drainTo(c: java.util.Collection, maxElements: number): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.BrokenBarrierException.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.BrokenBarrierException.d.ts new file mode 100644 index 00000000..89d0cb7b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.BrokenBarrierException.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class BrokenBarrierException extends java.lang.Exception { + /** + * Constructs a {@code BrokenBarrierException} with no specified detail + * message. + */ + // @ts-ignore + constructor() + /** + * Constructs a {@code BrokenBarrierException} with the specified + * detail message. + */ + // @ts-ignore + constructor(message: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.Callable.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.Callable.d.ts new file mode 100644 index 00000000..569c2bd0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.Callable.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + interface Callable { + /** + * Computes a result, or throws an exception if unable to do so. + */ + // @ts-ignore + call(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.CancellationException.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.CancellationException.d.ts new file mode 100644 index 00000000..d5f0f619 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.CancellationException.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class CancellationException extends java.lang.IllegalStateException { + /** + * Constructs a {@code CancellationException} with no detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs a {@code CancellationException} with the specified detail + * message. + */ + // @ts-ignore + constructor(message: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.CompletableFuture.AsynchronousCompletionTask.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.CompletableFuture.AsynchronousCompletionTask.d.ts new file mode 100644 index 00000000..51b4d1cd --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.CompletableFuture.AsynchronousCompletionTask.d.ts @@ -0,0 +1,12 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace CompletableFuture { + // @ts-ignore + interface AsynchronousCompletionTask { + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.CompletableFuture.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.CompletableFuture.d.ts new file mode 100644 index 00000000..f6f2ea96 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.CompletableFuture.d.ts @@ -0,0 +1,275 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class CompletableFuture extends java.lang.Object { + /** + * Creates a new incomplete CompletableFuture. + */ + // @ts-ignore + constructor() + /** + * Returns a new CompletableFuture that is asynchronously completed + * by a task running in the {@link ForkJoinPool#commonPool()} with + * the value obtained by calling the given Supplier. + */ + // @ts-ignore + public static supplyAsync(supplier: java.util.function$.Supplier): java.util.concurrent.CompletableFuture; + /** + * Returns a new CompletableFuture that is asynchronously completed + * by a task running in the given executor with the value obtained + * by calling the given Supplier. + */ + // @ts-ignore + public static supplyAsync(supplier: java.util.function$.Supplier, executor: java.util.concurrent.Executor): java.util.concurrent.CompletableFuture; + /** + * Returns a new CompletableFuture that is asynchronously completed + * by a task running in the {@link ForkJoinPool#commonPool()} after + * it runs the given action. + */ + // @ts-ignore + public static runAsync(runnable: java.lang.Runnable): java.util.concurrent.CompletableFuture; + /** + * Returns a new CompletableFuture that is asynchronously completed + * by a task running in the given executor after it runs the given + * action. + */ + // @ts-ignore + public static runAsync(runnable: java.lang.Runnable, executor: java.util.concurrent.Executor): java.util.concurrent.CompletableFuture; + /** + * Returns a new CompletableFuture that is already completed with + * the given value. + */ + // @ts-ignore + public static completedFuture(value: java.lang.Object): java.util.concurrent.CompletableFuture; + /** + * Returns {@code true} if completed in any fashion: normally, + * exceptionally, or via cancellation. + */ + // @ts-ignore + public isDone(): boolean; + /** + * Waits if necessary for this future to complete, and then + * returns its result. + */ + // @ts-ignore + public get(): java.lang.Object; + /** + * Waits if necessary for at most the given time for this future + * to complete, and then returns its result, if available. + */ + // @ts-ignore + public get(timeout: number, unit: java.util.concurrent.TimeUnit): java.lang.Object; + /** + * Returns the result value when complete, or throws an + * (unchecked) exception if completed exceptionally. To better + * conform with the use of common functional forms, if a + * computation involved in the completion of this + * CompletableFuture threw an exception, this method throws an + * (unchecked) {@link CompletionException} with the underlying + * exception as its cause. + */ + // @ts-ignore + public join(): java.lang.Object; + /** + * Returns the result value (or throws any encountered exception) + * if completed, else returns the given valueIfAbsent. + */ + // @ts-ignore + public getNow(valueIfAbsent: java.lang.Object): java.lang.Object; + /** + * If not already completed, sets the value returned by {@link + * #get()} and related methods to the given value. + */ + // @ts-ignore + public complete(value: java.lang.Object): boolean; + /** + * If not already completed, causes invocations of {@link #get()} + * and related methods to throw the given exception. + */ + // @ts-ignore + public completeExceptionally(ex: java.lang.Throwable): boolean; + // @ts-ignore + public thenApply(fn: java.util.function$.Function): java.util.concurrent.CompletableFuture; + // @ts-ignore + public thenApplyAsync(fn: java.util.function$.Function): java.util.concurrent.CompletableFuture; + // @ts-ignore + public thenApplyAsync(fn: java.util.function$.Function, executor: java.util.concurrent.Executor): java.util.concurrent.CompletableFuture; + // @ts-ignore + public thenAccept(action: java.util.function$.Consumer): java.util.concurrent.CompletableFuture; + // @ts-ignore + public thenAcceptAsync(action: java.util.function$.Consumer): java.util.concurrent.CompletableFuture; + // @ts-ignore + public thenAcceptAsync(action: java.util.function$.Consumer, executor: java.util.concurrent.Executor): java.util.concurrent.CompletableFuture; + // @ts-ignore + public thenRun(action: java.lang.Runnable): java.util.concurrent.CompletableFuture; + // @ts-ignore + public thenRunAsync(action: java.lang.Runnable): java.util.concurrent.CompletableFuture; + // @ts-ignore + public thenRunAsync(action: java.lang.Runnable, executor: java.util.concurrent.Executor): java.util.concurrent.CompletableFuture; + // @ts-ignore + public thenCombine(other: java.util.concurrent.CompletionStage, fn: java.util.function$.BiFunction): java.util.concurrent.CompletableFuture; + // @ts-ignore + public thenCombineAsync(other: java.util.concurrent.CompletionStage, fn: java.util.function$.BiFunction): java.util.concurrent.CompletableFuture; + // @ts-ignore + public thenCombineAsync(other: java.util.concurrent.CompletionStage, fn: java.util.function$.BiFunction, executor: java.util.concurrent.Executor): java.util.concurrent.CompletableFuture; + // @ts-ignore + public thenAcceptBoth(other: java.util.concurrent.CompletionStage, action: java.util.function$.BiConsumer): java.util.concurrent.CompletableFuture; + // @ts-ignore + public thenAcceptBothAsync(other: java.util.concurrent.CompletionStage, action: java.util.function$.BiConsumer): java.util.concurrent.CompletableFuture; + // @ts-ignore + public thenAcceptBothAsync(other: java.util.concurrent.CompletionStage, action: java.util.function$.BiConsumer, executor: java.util.concurrent.Executor): java.util.concurrent.CompletableFuture; + // @ts-ignore + public runAfterBoth(other: java.util.concurrent.CompletionStage, action: java.lang.Runnable): java.util.concurrent.CompletableFuture; + // @ts-ignore + public runAfterBothAsync(other: java.util.concurrent.CompletionStage, action: java.lang.Runnable): java.util.concurrent.CompletableFuture; + // @ts-ignore + public runAfterBothAsync(other: java.util.concurrent.CompletionStage, action: java.lang.Runnable, executor: java.util.concurrent.Executor): java.util.concurrent.CompletableFuture; + // @ts-ignore + public applyToEither(other: java.util.concurrent.CompletionStage, fn: java.util.function$.Function): java.util.concurrent.CompletableFuture; + // @ts-ignore + public applyToEitherAsync(other: java.util.concurrent.CompletionStage, fn: java.util.function$.Function): java.util.concurrent.CompletableFuture; + // @ts-ignore + public applyToEitherAsync(other: java.util.concurrent.CompletionStage, fn: java.util.function$.Function, executor: java.util.concurrent.Executor): java.util.concurrent.CompletableFuture; + // @ts-ignore + public acceptEither(other: java.util.concurrent.CompletionStage, action: java.util.function$.Consumer): java.util.concurrent.CompletableFuture; + // @ts-ignore + public acceptEitherAsync(other: java.util.concurrent.CompletionStage, action: java.util.function$.Consumer): java.util.concurrent.CompletableFuture; + // @ts-ignore + public acceptEitherAsync(other: java.util.concurrent.CompletionStage, action: java.util.function$.Consumer, executor: java.util.concurrent.Executor): java.util.concurrent.CompletableFuture; + // @ts-ignore + public runAfterEither(other: java.util.concurrent.CompletionStage, action: java.lang.Runnable): java.util.concurrent.CompletableFuture; + // @ts-ignore + public runAfterEitherAsync(other: java.util.concurrent.CompletionStage, action: java.lang.Runnable): java.util.concurrent.CompletableFuture; + // @ts-ignore + public runAfterEitherAsync(other: java.util.concurrent.CompletionStage, action: java.lang.Runnable, executor: java.util.concurrent.Executor): java.util.concurrent.CompletableFuture; + // @ts-ignore + public thenCompose(fn: java.util.function$.Function): java.util.concurrent.CompletableFuture; + // @ts-ignore + public thenComposeAsync(fn: java.util.function$.Function): java.util.concurrent.CompletableFuture; + // @ts-ignore + public thenComposeAsync(fn: java.util.function$.Function, executor: java.util.concurrent.Executor): java.util.concurrent.CompletableFuture; + // @ts-ignore + public whenComplete(action: java.util.function$.BiConsumer): java.util.concurrent.CompletableFuture; + // @ts-ignore + public whenCompleteAsync(action: java.util.function$.BiConsumer): java.util.concurrent.CompletableFuture; + // @ts-ignore + public whenCompleteAsync(action: java.util.function$.BiConsumer, executor: java.util.concurrent.Executor): java.util.concurrent.CompletableFuture; + // @ts-ignore + public handle(fn: java.util.function$.BiFunction): java.util.concurrent.CompletableFuture; + // @ts-ignore + public handleAsync(fn: java.util.function$.BiFunction): java.util.concurrent.CompletableFuture; + // @ts-ignore + public handleAsync(fn: java.util.function$.BiFunction, executor: java.util.concurrent.Executor): java.util.concurrent.CompletableFuture; + /** + * Returns this CompletableFuture. + */ + // @ts-ignore + public toCompletableFuture(): java.util.concurrent.CompletableFuture; + /** + * Returns a new CompletableFuture that is completed when this + * CompletableFuture completes, with the result of the given + * function of the exception triggering this CompletableFuture's + * completion when it completes exceptionally; otherwise, if this + * CompletableFuture completes normally, then the returned + * CompletableFuture also completes normally with the same value. + * Note: More flexible versions of this functionality are + * available using methods {@code whenComplete} and {@code handle}. + */ + // @ts-ignore + public exceptionally(fn: java.util.function$.Function): java.util.concurrent.CompletableFuture; + /** + * Returns a new CompletableFuture that is completed when all of + * the given CompletableFutures complete. If any of the given + * CompletableFutures complete exceptionally, then the returned + * CompletableFuture also does so, with a CompletionException + * holding this exception as its cause. Otherwise, the results, + * if any, of the given CompletableFutures are not reflected in + * the returned CompletableFuture, but may be obtained by + * inspecting them individually. If no CompletableFutures are + * provided, returns a CompletableFuture completed with the value + * {@code null}. + *

Among the applications of this method is to await completion + * of a set of independent CompletableFutures before continuing a + * program, as in: {@code CompletableFuture.allOf(c1, c2, + * c3).join();}. + */ + // @ts-ignore + public static allOf(cfs: java.util.concurrent.CompletableFuture): java.util.concurrent.CompletableFuture; + /** + * Returns a new CompletableFuture that is completed when any of + * the given CompletableFutures complete, with the same result. + * Otherwise, if it completed exceptionally, the returned + * CompletableFuture also does so, with a CompletionException + * holding this exception as its cause. If no CompletableFutures + * are provided, returns an incomplete CompletableFuture. + */ + // @ts-ignore + public static anyOf(cfs: java.util.concurrent.CompletableFuture): java.util.concurrent.CompletableFuture; + /** + * If not already completed, completes this CompletableFuture with + * a {@link CancellationException}. Dependent CompletableFutures + * that have not already completed will also complete + * exceptionally, with a {@link CompletionException} caused by + * this {@code CancellationException}. + */ + // @ts-ignore + public cancel(mayInterruptIfRunning: boolean): boolean; + /** + * Returns {@code true} if this CompletableFuture was cancelled + * before it completed normally. + */ + // @ts-ignore + public isCancelled(): boolean; + /** + * Returns {@code true} if this CompletableFuture completed + * exceptionally, in any way. Possible causes include + * cancellation, explicit invocation of {@code + * completeExceptionally}, and abrupt termination of a + * CompletionStage action. + */ + // @ts-ignore + public isCompletedExceptionally(): boolean; + /** + * Forcibly sets or resets the value subsequently returned by + * method {@link #get()} and related methods, whether or not + * already completed. This method is designed for use only in + * error recovery actions, and even in such situations may result + * in ongoing dependent completions using established versus + * overwritten outcomes. + */ + // @ts-ignore + public obtrudeValue(value: java.lang.Object): void; + /** + * Forcibly causes subsequent invocations of method {@link #get()} + * and related methods to throw the given exception, whether or + * not already completed. This method is designed for use only in + * error recovery actions, and even in such situations may result + * in ongoing dependent completions using established versus + * overwritten outcomes. + */ + // @ts-ignore + public obtrudeException(ex: java.lang.Throwable): void; + /** + * Returns the estimated number of CompletableFutures whose + * completions are awaiting completion of this CompletableFuture. + * This method is designed for use in monitoring system state, not + * for synchronization control. + */ + // @ts-ignore + public getNumberOfDependents(): number; + /** + * Returns a string identifying this CompletableFuture, as well as + * its completion state. The state, in brackets, contains the + * String {@code "Completed Normally"} or the String {@code + * "Completed Exceptionally"}, or the String {@code "Not + * completed"} followed by the number of CompletableFutures + * dependent upon its completion, if any. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.CompletionException.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.CompletionException.d.ts new file mode 100644 index 00000000..a3c7a48d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.CompletionException.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class CompletionException extends java.lang.RuntimeException { + /** + * Constructs a {@code CompletionException} with no detail message. + * The cause is not initialized, and may subsequently be + * initialized by a call to {@link #initCause(Throwable) initCause}. + */ + // @ts-ignore + constructor() + /** + * Constructs a {@code CompletionException} with the specified detail + * message. The cause is not initialized, and may subsequently be + * initialized by a call to {@link #initCause(Throwable) initCause}. + */ + // @ts-ignore + constructor(message: string) + /** + * Constructs a {@code CompletionException} with the specified detail + * message and cause. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Constructs a {@code CompletionException} with the specified cause. + * The detail message is set to {@code (cause == null ? null : + * cause.toString())} (which typically contains the class and + * detail message of {@code cause}). + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.CompletionService.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.CompletionService.d.ts new file mode 100644 index 00000000..4d98ed29 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.CompletionService.d.ts @@ -0,0 +1,43 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + interface CompletionService { + /** + * Submits a value-returning task for execution and returns a Future + * representing the pending results of the task. Upon completion, + * this task may be taken or polled. + */ + // @ts-ignore + submit(task: java.util.concurrent.Callable): java.util.concurrent.Future; + /** + * Submits a Runnable task for execution and returns a Future + * representing that task. Upon completion, this task may be + * taken or polled. + */ + // @ts-ignore + submit(task: java.lang.Runnable, result: java.lang.Object): java.util.concurrent.Future; + /** + * Retrieves and removes the Future representing the next + * completed task, waiting if none are yet present. + */ + // @ts-ignore + take(): java.util.concurrent.Future; + /** + * Retrieves and removes the Future representing the next + * completed task, or {@code null} if none are present. + */ + // @ts-ignore + poll(): java.util.concurrent.Future; + /** + * Retrieves and removes the Future representing the next + * completed task, waiting if necessary up to the specified wait + * time if none are yet present. + */ + // @ts-ignore + poll(timeout: number, unit: java.util.concurrent.TimeUnit): java.util.concurrent.Future; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.CompletionStage.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.CompletionStage.d.ts new file mode 100644 index 00000000..97803923 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.CompletionStage.d.ts @@ -0,0 +1,377 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + interface CompletionStage { + /** + * Returns a new CompletionStage that, when this stage completes + * normally, is executed with this stage's result as the argument + * to the supplied function. + * See the {@link CompletionStage} documentation for rules + * covering exceptional completion. + */ + // @ts-ignore + thenApply(fn: java.util.function$.Function): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage that, when this stage completes + * normally, is executed using this stage's default asynchronous + * execution facility, with this stage's result as the argument to + * the supplied function. + * See the {@link CompletionStage} documentation for rules + * covering exceptional completion. + */ + // @ts-ignore + thenApplyAsync(fn: java.util.function$.Function): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage that, when this stage completes + * normally, is executed using the supplied Executor, with this + * stage's result as the argument to the supplied function. + * See the {@link CompletionStage} documentation for rules + * covering exceptional completion. + */ + // @ts-ignore + thenApplyAsync(fn: java.util.function$.Function, executor: java.util.concurrent.Executor): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage that, when this stage completes + * normally, is executed with this stage's result as the argument + * to the supplied action. + * See the {@link CompletionStage} documentation for rules + * covering exceptional completion. + */ + // @ts-ignore + thenAccept(action: java.util.function$.Consumer): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage that, when this stage completes + * normally, is executed using this stage's default asynchronous + * execution facility, with this stage's result as the argument to + * the supplied action. + * See the {@link CompletionStage} documentation for rules + * covering exceptional completion. + */ + // @ts-ignore + thenAcceptAsync(action: java.util.function$.Consumer): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage that, when this stage completes + * normally, is executed using the supplied Executor, with this + * stage's result as the argument to the supplied action. + * See the {@link CompletionStage} documentation for rules + * covering exceptional completion. + */ + // @ts-ignore + thenAcceptAsync(action: java.util.function$.Consumer, executor: java.util.concurrent.Executor): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage that, when this stage completes + * normally, executes the given action. + * See the {@link CompletionStage} documentation for rules + * covering exceptional completion. + */ + // @ts-ignore + thenRun(action: java.lang.Runnable): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage that, when this stage completes + * normally, executes the given action using this stage's default + * asynchronous execution facility. + * See the {@link CompletionStage} documentation for rules + * covering exceptional completion. + */ + // @ts-ignore + thenRunAsync(action: java.lang.Runnable): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage that, when this stage completes + * normally, executes the given action using the supplied Executor. + * See the {@link CompletionStage} documentation for rules + * covering exceptional completion. + */ + // @ts-ignore + thenRunAsync(action: java.lang.Runnable, executor: java.util.concurrent.Executor): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage that, when this and the other + * given stage both complete normally, is executed with the two + * results as arguments to the supplied function. + * See the {@link CompletionStage} documentation for rules + * covering exceptional completion. + */ + // @ts-ignore + thenCombine(other: java.util.concurrent.CompletionStage, fn: java.util.function$.BiFunction): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage that, when this and the other + * given stage complete normally, is executed using this stage's + * default asynchronous execution facility, with the two results + * as arguments to the supplied function. + * See the {@link CompletionStage} documentation for rules + * covering exceptional completion. + */ + // @ts-ignore + thenCombineAsync(other: java.util.concurrent.CompletionStage, fn: java.util.function$.BiFunction): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage that, when this and the other + * given stage complete normally, is executed using the supplied + * executor, with the two results as arguments to the supplied + * function. + * See the {@link CompletionStage} documentation for rules + * covering exceptional completion. + */ + // @ts-ignore + thenCombineAsync(other: java.util.concurrent.CompletionStage, fn: java.util.function$.BiFunction, executor: java.util.concurrent.Executor): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage that, when this and the other + * given stage both complete normally, is executed with the two + * results as arguments to the supplied action. + * See the {@link CompletionStage} documentation for rules + * covering exceptional completion. + */ + // @ts-ignore + thenAcceptBoth(other: java.util.concurrent.CompletionStage, action: java.util.function$.BiConsumer): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage that, when this and the other + * given stage complete normally, is executed using this stage's + * default asynchronous execution facility, with the two results + * as arguments to the supplied action. + */ + // @ts-ignore + thenAcceptBothAsync(other: java.util.concurrent.CompletionStage, action: java.util.function$.BiConsumer): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage that, when this and the other + * given stage complete normally, is executed using the supplied + * executor, with the two results as arguments to the supplied + * function. + */ + // @ts-ignore + thenAcceptBothAsync(other: java.util.concurrent.CompletionStage, action: java.util.function$.BiConsumer, executor: java.util.concurrent.Executor): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage that, when this and the other + * given stage both complete normally, executes the given action. + * See the {@link CompletionStage} documentation for rules + * covering exceptional completion. + */ + // @ts-ignore + runAfterBoth(other: java.util.concurrent.CompletionStage, action: java.lang.Runnable): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage that, when this and the other + * given stage complete normally, executes the given action using + * this stage's default asynchronous execution facility. + * See the {@link CompletionStage} documentation for rules + * covering exceptional completion. + */ + // @ts-ignore + runAfterBothAsync(other: java.util.concurrent.CompletionStage, action: java.lang.Runnable): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage that, when this and the other + * given stage complete normally, executes the given action using + * the supplied executor. + * See the {@link CompletionStage} documentation for rules + * covering exceptional completion. + */ + // @ts-ignore + runAfterBothAsync(other: java.util.concurrent.CompletionStage, action: java.lang.Runnable, executor: java.util.concurrent.Executor): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage that, when either this or the + * other given stage complete normally, is executed with the + * corresponding result as argument to the supplied function. + * See the {@link CompletionStage} documentation for rules + * covering exceptional completion. + */ + // @ts-ignore + applyToEither(other: java.util.concurrent.CompletionStage, fn: java.util.function$.Function): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage that, when either this or the + * other given stage complete normally, is executed using this + * stage's default asynchronous execution facility, with the + * corresponding result as argument to the supplied function. + * See the {@link CompletionStage} documentation for rules + * covering exceptional completion. + */ + // @ts-ignore + applyToEitherAsync(other: java.util.concurrent.CompletionStage, fn: java.util.function$.Function): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage that, when either this or the + * other given stage complete normally, is executed using the + * supplied executor, with the corresponding result as argument to + * the supplied function. + * See the {@link CompletionStage} documentation for rules + * covering exceptional completion. + */ + // @ts-ignore + applyToEitherAsync(other: java.util.concurrent.CompletionStage, fn: java.util.function$.Function, executor: java.util.concurrent.Executor): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage that, when either this or the + * other given stage complete normally, is executed with the + * corresponding result as argument to the supplied action. + * See the {@link CompletionStage} documentation for rules + * covering exceptional completion. + */ + // @ts-ignore + acceptEither(other: java.util.concurrent.CompletionStage, action: java.util.function$.Consumer): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage that, when either this or the + * other given stage complete normally, is executed using this + * stage's default asynchronous execution facility, with the + * corresponding result as argument to the supplied action. + * See the {@link CompletionStage} documentation for rules + * covering exceptional completion. + */ + // @ts-ignore + acceptEitherAsync(other: java.util.concurrent.CompletionStage, action: java.util.function$.Consumer): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage that, when either this or the + * other given stage complete normally, is executed using the + * supplied executor, with the corresponding result as argument to + * the supplied function. + * See the {@link CompletionStage} documentation for rules + * covering exceptional completion. + */ + // @ts-ignore + acceptEitherAsync(other: java.util.concurrent.CompletionStage, action: java.util.function$.Consumer, executor: java.util.concurrent.Executor): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage that, when either this or the + * other given stage complete normally, executes the given action. + * See the {@link CompletionStage} documentation for rules + * covering exceptional completion. + */ + // @ts-ignore + runAfterEither(other: java.util.concurrent.CompletionStage, action: java.lang.Runnable): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage that, when either this or the + * other given stage complete normally, executes the given action + * using this stage's default asynchronous execution facility. + * See the {@link CompletionStage} documentation for rules + * covering exceptional completion. + */ + // @ts-ignore + runAfterEitherAsync(other: java.util.concurrent.CompletionStage, action: java.lang.Runnable): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage that, when either this or the + * other given stage complete normally, executes the given action + * using the supplied executor. + * See the {@link CompletionStage} documentation for rules + * covering exceptional completion. + */ + // @ts-ignore + runAfterEitherAsync(other: java.util.concurrent.CompletionStage, action: java.lang.Runnable, executor: java.util.concurrent.Executor): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage that, when this stage completes + * normally, is executed with this stage as the argument + * to the supplied function. + * See the {@link CompletionStage} documentation for rules + * covering exceptional completion. + */ + // @ts-ignore + thenCompose(fn: java.util.function$.Function): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage that, when this stage completes + * normally, is executed using this stage's default asynchronous + * execution facility, with this stage as the argument to the + * supplied function. + * See the {@link CompletionStage} documentation for rules + * covering exceptional completion. + */ + // @ts-ignore + thenComposeAsync(fn: java.util.function$.Function): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage that, when this stage completes + * normally, is executed using the supplied Executor, with this + * stage's result as the argument to the supplied function. + * See the {@link CompletionStage} documentation for rules + * covering exceptional completion. + */ + // @ts-ignore + thenComposeAsync(fn: java.util.function$.Function, executor: java.util.concurrent.Executor): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage that, when this stage completes + * exceptionally, is executed with this stage's exception as the + * argument to the supplied function. Otherwise, if this stage + * completes normally, then the returned stage also completes + * normally with the same value. + */ + // @ts-ignore + exceptionally(fn: java.util.function$.Function): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage with the same result or exception as + * this stage, that executes the given action when this stage completes. + *

When this stage is complete, the given action is invoked with the + * result (or {@code null} if none) and the exception (or {@code null} + * if none) of this stage as arguments. The returned stage is completed + * when the action returns. If the supplied action itself encounters an + * exception, then the returned stage exceptionally completes with this + * exception unless this stage also completed exceptionally. + */ + // @ts-ignore + whenComplete(action: java.util.function$.BiConsumer): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage with the same result or exception as + * this stage, that executes the given action using this stage's + * default asynchronous execution facility when this stage completes. + *

When this stage is complete, the given action is invoked with the + * result (or {@code null} if none) and the exception (or {@code null} + * if none) of this stage as arguments. The returned stage is completed + * when the action returns. If the supplied action itself encounters an + * exception, then the returned stage exceptionally completes with this + * exception unless this stage also completed exceptionally. + */ + // @ts-ignore + whenCompleteAsync(action: java.util.function$.BiConsumer): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage with the same result or exception as + * this stage, that executes the given action using the supplied + * Executor when this stage completes. + *

When this stage is complete, the given action is invoked with the + * result (or {@code null} if none) and the exception (or {@code null} + * if none) of this stage as arguments. The returned stage is completed + * when the action returns. If the supplied action itself encounters an + * exception, then the returned stage exceptionally completes with this + * exception unless this stage also completed exceptionally. + */ + // @ts-ignore + whenCompleteAsync(action: java.util.function$.BiConsumer, executor: java.util.concurrent.Executor): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage that, when this stage completes + * either normally or exceptionally, is executed with this stage's + * result and exception as arguments to the supplied function. + *

When this stage is complete, the given function is invoked + * with the result (or {@code null} if none) and the exception (or + * {@code null} if none) of this stage as arguments, and the + * function's result is used to complete the returned stage. + */ + // @ts-ignore + handle(fn: java.util.function$.BiFunction): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage that, when this stage completes + * either normally or exceptionally, is executed using this stage's + * default asynchronous execution facility, with this stage's + * result and exception as arguments to the supplied function. + *

When this stage is complete, the given function is invoked + * with the result (or {@code null} if none) and the exception (or + * {@code null} if none) of this stage as arguments, and the + * function's result is used to complete the returned stage. + */ + // @ts-ignore + handleAsync(fn: java.util.function$.BiFunction): java.util.concurrent.CompletionStage; + /** + * Returns a new CompletionStage that, when this stage completes + * either normally or exceptionally, is executed using the + * supplied executor, with this stage's result and exception as + * arguments to the supplied function. + *

When this stage is complete, the given function is invoked + * with the result (or {@code null} if none) and the exception (or + * {@code null} if none) of this stage as arguments, and the + * function's result is used to complete the returned stage. + */ + // @ts-ignore + handleAsync(fn: java.util.function$.BiFunction, executor: java.util.concurrent.Executor): java.util.concurrent.CompletionStage; + /** + * Returns a {@link CompletableFuture} maintaining the same + * completion properties as this stage. If this stage is already a + * CompletableFuture, this method may return this stage itself. + * Otherwise, invocation of this method may be equivalent in + * effect to {@code thenApply(x -> x)}, but returning an instance + * of type {@code CompletableFuture}. A CompletionStage + * implementation that does not choose to interoperate with others + * may throw {@code UnsupportedOperationException}. + */ + // @ts-ignore + toCompletableFuture(): java.util.concurrent.CompletableFuture; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.ConcurrentHashMap.KeySetView.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.ConcurrentHashMap.KeySetView.d.ts new file mode 100644 index 00000000..f6072614 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.ConcurrentHashMap.KeySetView.d.ts @@ -0,0 +1,52 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace ConcurrentHashMap { + // @ts-ignore + class KeySetView extends java.util.concurrent.ConcurrentHashMap.CollectionView { + /** + * Returns the default mapped value for additions, + * or {@code null} if additions are not supported. + */ + // @ts-ignore + public getMappedValue(): java.lang.Object; + /** + * {@inheritDoc} + */ + // @ts-ignore + public contains(o: java.lang.Object): boolean; + /** + * Removes the key from this map view, by removing the key (and its + * corresponding value) from the backing map. This method does + * nothing if the key is not in the map. + */ + // @ts-ignore + public remove(o: java.lang.Object): boolean; + // @ts-ignore + public iterator(): java.util.Iterator; + /** + * Adds the specified key to this set view by mapping the key to + * the default mapped value in the backing map, if defined. + */ + // @ts-ignore + public add(e: java.lang.Object): boolean; + /** + * Adds all of the elements in the specified collection to this set, + * as if by calling {@link #add} on each one. + */ + // @ts-ignore + public addAll(c: java.util.Collection): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public spliterator(): java.util.Spliterator; + // @ts-ignore + public forEach(action: java.util.function$.Consumer): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.ConcurrentHashMap.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.ConcurrentHashMap.d.ts new file mode 100644 index 00000000..e6f08df1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.ConcurrentHashMap.d.ts @@ -0,0 +1,512 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class ConcurrentHashMap extends java.util.AbstractMap { + /** + * Creates a new, empty map with the default initial table size (16). + */ + // @ts-ignore + constructor() + /** + * Creates a new, empty map with an initial table size + * accommodating the specified number of elements without the need + * to dynamically resize. + */ + // @ts-ignore + constructor(initialCapacity: number) + /** + * Creates a new map with the same mappings as the given map. + */ + // @ts-ignore + constructor(m: java.util.Map) + /** + * Creates a new, empty map with an initial table size based on + * the given number of elements ({@code initialCapacity}) and + * initial table density ({@code loadFactor}). + */ + // @ts-ignore + constructor(initialCapacity: number, loadFactor: number) + /** + * Creates a new, empty map with an initial table size based on + * the given number of elements ({@code initialCapacity}), table + * density ({@code loadFactor}), and number of concurrently + * updating threads ({@code concurrencyLevel}). + */ + // @ts-ignore + constructor(initialCapacity: number, loadFactor: number, concurrencyLevel: number) + /** + * {@inheritDoc} + */ + // @ts-ignore + public size(): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * Returns the value to which the specified key is mapped, + * or {@code null} if this map contains no mapping for the key. + *

More formally, if this map contains a mapping from a key + * {@code k} to a value {@code v} such that {@code key.equals(k)}, + * then this method returns {@code v}; otherwise it returns + * {@code null}. (There can be at most one such mapping.) + */ + // @ts-ignore + public get(key: java.lang.Object): java.lang.Object; + /** + * Tests if the specified object is a key in this table. + */ + // @ts-ignore + public containsKey(key: java.lang.Object): boolean; + /** + * Returns {@code true} if this map maps one or more keys to the + * specified value. Note: This method may require a full traversal + * of the map, and is much slower than method {@code containsKey}. + */ + // @ts-ignore + public containsValue(value: java.lang.Object): boolean; + /** + * Maps the specified key to the specified value in this table. + * Neither the key nor the value can be null. + *

The value can be retrieved by calling the {@code get} method + * with a key that is equal to the original key. + */ + // @ts-ignore + public put(key: java.lang.Object, value: java.lang.Object): java.lang.Object; + /** + * Copies all of the mappings from the specified map to this one. + * These mappings replace any mappings that this map had for any of the + * keys currently in the specified map. + */ + // @ts-ignore + public putAll(m: java.util.Map): void; + /** + * Removes the key (and its corresponding value) from this map. + * This method does nothing if the key is not in the map. + */ + // @ts-ignore + public remove(key: java.lang.Object): java.lang.Object; + /** + * Removes all of the mappings from this map. + */ + // @ts-ignore + public clear(): void; + /** + * Returns a {@link Set} view of the keys contained in this map. + * The set is backed by the map, so changes to the map are + * reflected in the set, and vice-versa. The set supports element + * removal, which removes the corresponding mapping from this map, + * via the {@code Iterator.remove}, {@code Set.remove}, + * {@code removeAll}, {@code retainAll}, and {@code clear} + * operations. It does not support the {@code add} or + * {@code addAll} operations. + *

The view's iterators and spliterators are + * weakly consistent. + *

The view's {@code spliterator} reports {@link Spliterator#CONCURRENT}, + * {@link Spliterator#DISTINCT}, and {@link Spliterator#NONNULL}. + */ + // @ts-ignore + public keySet(): java.util.concurrent.ConcurrentHashMap.KeySetView; + /** + * Returns a {@link Collection} view of the values contained in this map. + * The collection is backed by the map, so changes to the map are + * reflected in the collection, and vice-versa. The collection + * supports element removal, which removes the corresponding + * mapping from this map, via the {@code Iterator.remove}, + * {@code Collection.remove}, {@code removeAll}, + * {@code retainAll}, and {@code clear} operations. It does not + * support the {@code add} or {@code addAll} operations. + *

The view's iterators and spliterators are + * weakly consistent. + *

The view's {@code spliterator} reports {@link Spliterator#CONCURRENT} + * and {@link Spliterator#NONNULL}. + */ + // @ts-ignore + public values(): java.util.Collection; + /** + * Returns a {@link Set} view of the mappings contained in this map. + * The set is backed by the map, so changes to the map are + * reflected in the set, and vice-versa. The set supports element + * removal, which removes the corresponding mapping from the map, + * via the {@code Iterator.remove}, {@code Set.remove}, + * {@code removeAll}, {@code retainAll}, and {@code clear} + * operations. + *

The view's iterators and spliterators are + * weakly consistent. + *

The view's {@code spliterator} reports {@link Spliterator#CONCURRENT}, + * {@link Spliterator#DISTINCT}, and {@link Spliterator#NONNULL}. + */ + // @ts-ignore + public entrySet(): java.util.Set; + /** + * Returns the hash code value for this {@link Map}, i.e., + * the sum of, for each key-value pair in the map, + * {@code key.hashCode() ^ value.hashCode()}. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns a string representation of this map. The string + * representation consists of a list of key-value mappings (in no + * particular order) enclosed in braces ("{@code {}}"). Adjacent + * mappings are separated by the characters {@code ", "} (comma + * and space). Each key-value mapping is rendered as the key + * followed by an equals sign ("{@code =}") followed by the + * associated value. + */ + // @ts-ignore + public toString(): string; + /** + * Compares the specified object with this map for equality. + * Returns {@code true} if the given object is a map with the same + * mappings as this map. This operation may return misleading + * results if either map is concurrently modified during execution + * of this method. + */ + // @ts-ignore + public equals(o: java.lang.Object): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public putIfAbsent(key: java.lang.Object, value: java.lang.Object): java.lang.Object; + /** + * {@inheritDoc} + */ + // @ts-ignore + public remove(key: java.lang.Object, value: java.lang.Object): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public replace(key: java.lang.Object, oldValue: java.lang.Object, newValue: java.lang.Object): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public replace(key: java.lang.Object, value: java.lang.Object): java.lang.Object; + /** + * Returns the value to which the specified key is mapped, or the + * given default value if this map contains no mapping for the + * key. + */ + // @ts-ignore + public getOrDefault(key: java.lang.Object, defaultValue: java.lang.Object): java.lang.Object; + // @ts-ignore + public forEach(action: java.util.function$.BiConsumer): void; + // @ts-ignore + public replaceAll(func: java.util.function$.BiFunction): void; + /** + * If the specified key is not already associated with a value, + * attempts to compute its value using the given mapping function + * and enters it into this map unless {@code null}. The entire + * method invocation is performed atomically, so the function is + * applied at most once per key. Some attempted update operations + * on this map by other threads may be blocked while computation + * is in progress, so the computation should be short and simple, + * and must not attempt to update any other mappings of this map. + */ + // @ts-ignore + public computeIfAbsent(key: java.lang.Object, mappingFunction: java.util.function$.Function): java.lang.Object; + /** + * If the value for the specified key is present, attempts to + * compute a new mapping given the key and its current mapped + * value. The entire method invocation is performed atomically. + * Some attempted update operations on this map by other threads + * may be blocked while computation is in progress, so the + * computation should be short and simple, and must not attempt to + * update any other mappings of this map. + */ + // @ts-ignore + public computeIfPresent(key: java.lang.Object, remappingFunction: java.util.function$.BiFunction): java.lang.Object; + /** + * Attempts to compute a mapping for the specified key and its + * current mapped value (or {@code null} if there is no current + * mapping). The entire method invocation is performed atomically. + * Some attempted update operations on this map by other threads + * may be blocked while computation is in progress, so the + * computation should be short and simple, and must not attempt to + * update any other mappings of this Map. + */ + // @ts-ignore + public compute(key: java.lang.Object, remappingFunction: java.util.function$.BiFunction): java.lang.Object; + /** + * If the specified key is not already associated with a + * (non-null) value, associates it with the given value. + * Otherwise, replaces the value with the results of the given + * remapping function, or removes if {@code null}. The entire + * method invocation is performed atomically. Some attempted + * update operations on this map by other threads may be blocked + * while computation is in progress, so the computation should be + * short and simple, and must not attempt to update any other + * mappings of this Map. + */ + // @ts-ignore + public merge(key: java.lang.Object, value: java.lang.Object, remappingFunction: java.util.function$.BiFunction): java.lang.Object; + /** + * Legacy method testing if some key maps into the specified value + * in this table. This method is identical in functionality to + * {@link #containsValue(Object)}, and exists solely to ensure + * full compatibility with class {@link java.util.Hashtable}, + * which supported this method prior to introduction of the + * Java Collections framework. + */ + // @ts-ignore + public contains(value: java.lang.Object): boolean; + /** + * Returns an enumeration of the keys in this table. + */ + // @ts-ignore + public keys(): java.util.Enumeration; + /** + * Returns an enumeration of the values in this table. + */ + // @ts-ignore + public elements(): java.util.Enumeration; + /** + * Returns the number of mappings. This method should be used + * instead of {@link #size} because a ConcurrentHashMap may + * contain more mappings than can be represented as an int. The + * value returned is an estimate; the actual count may differ if + * there are concurrent insertions or removals. + */ + // @ts-ignore + public mappingCount(): number; + /** + * Creates a new {@link Set} backed by a ConcurrentHashMap + * from the given type to {@code Boolean.TRUE}. + */ + // @ts-ignore + public static newKeySet(): java.util.concurrent.ConcurrentHashMap.KeySetView; + /** + * Creates a new {@link Set} backed by a ConcurrentHashMap + * from the given type to {@code Boolean.TRUE}. + */ + // @ts-ignore + public static newKeySet(initialCapacity: number): java.util.concurrent.ConcurrentHashMap.KeySetView; + /** + * Returns a {@link Set} view of the keys in this map, using the + * given common mapped value for any additions (i.e., {@link + * Collection#add} and {@link Collection#addAll(Collection)}). + * This is of course only appropriate if it is acceptable to use + * the same value for all additions from this view. + */ + // @ts-ignore + public keySet(mappedValue: java.lang.Object): java.util.concurrent.ConcurrentHashMap.KeySetView; + /** + * Performs the given action for each (key, value). + */ + // @ts-ignore + public forEach(parallelismThreshold: number, action: java.util.function$.BiConsumer): void; + /** + * Performs the given action for each non-null transformation + * of each (key, value). + */ + // @ts-ignore + public forEach(parallelismThreshold: number, transformer: java.util.function$.BiFunction, action: java.util.function$.Consumer): void; + /** + * Returns a non-null result from applying the given search + * function on each (key, value), or null if none. Upon + * success, further element processing is suppressed and the + * results of any other parallel invocations of the search + * function are ignored. + */ + // @ts-ignore + public search(parallelismThreshold: number, searchFunction: java.util.function$.BiFunction): java.lang.Object; + /** + * Returns the result of accumulating the given transformation + * of all (key, value) pairs using the given reducer to + * combine values, or null if none. + */ + // @ts-ignore + public reduce(parallelismThreshold: number, transformer: java.util.function$.BiFunction, reducer: java.util.function$.BiFunction): java.lang.Object; + /** + * Returns the result of accumulating the given transformation + * of all (key, value) pairs using the given reducer to + * combine values, and the given basis as an identity value. + */ + // @ts-ignore + public reduceToDouble(parallelismThreshold: number, transformer: java.util.function$.ToDoubleBiFunction, basis: number, reducer: java.util.function$.DoubleBinaryOperator): number; + /** + * Returns the result of accumulating the given transformation + * of all (key, value) pairs using the given reducer to + * combine values, and the given basis as an identity value. + */ + // @ts-ignore + public reduceToLong(parallelismThreshold: number, transformer: java.util.function$.ToLongBiFunction, basis: number, reducer: java.util.function$.LongBinaryOperator): number; + /** + * Returns the result of accumulating the given transformation + * of all (key, value) pairs using the given reducer to + * combine values, and the given basis as an identity value. + */ + // @ts-ignore + public reduceToInt(parallelismThreshold: number, transformer: java.util.function$.ToIntBiFunction, basis: number, reducer: java.util.function$.IntBinaryOperator): number; + /** + * Performs the given action for each key. + */ + // @ts-ignore + public forEachKey(parallelismThreshold: number, action: java.util.function$.Consumer): void; + /** + * Performs the given action for each non-null transformation + * of each key. + */ + // @ts-ignore + public forEachKey(parallelismThreshold: number, transformer: java.util.function$.Function, action: java.util.function$.Consumer): void; + /** + * Returns a non-null result from applying the given search + * function on each key, or null if none. Upon success, + * further element processing is suppressed and the results of + * any other parallel invocations of the search function are + * ignored. + */ + // @ts-ignore + public searchKeys(parallelismThreshold: number, searchFunction: java.util.function$.Function): java.lang.Object; + /** + * Returns the result of accumulating all keys using the given + * reducer to combine values, or null if none. + */ + // @ts-ignore + public reduceKeys(parallelismThreshold: number, reducer: java.util.function$.BiFunction): java.lang.Object; + /** + * Returns the result of accumulating the given transformation + * of all keys using the given reducer to combine values, or + * null if none. + */ + // @ts-ignore + public reduceKeys(parallelismThreshold: number, transformer: java.util.function$.Function, reducer: java.util.function$.BiFunction): java.lang.Object; + /** + * Returns the result of accumulating the given transformation + * of all keys using the given reducer to combine values, and + * the given basis as an identity value. + */ + // @ts-ignore + public reduceKeysToDouble(parallelismThreshold: number, transformer: java.util.function$.ToDoubleFunction, basis: number, reducer: java.util.function$.DoubleBinaryOperator): number; + /** + * Returns the result of accumulating the given transformation + * of all keys using the given reducer to combine values, and + * the given basis as an identity value. + */ + // @ts-ignore + public reduceKeysToLong(parallelismThreshold: number, transformer: java.util.function$.ToLongFunction, basis: number, reducer: java.util.function$.LongBinaryOperator): number; + /** + * Returns the result of accumulating the given transformation + * of all keys using the given reducer to combine values, and + * the given basis as an identity value. + */ + // @ts-ignore + public reduceKeysToInt(parallelismThreshold: number, transformer: java.util.function$.ToIntFunction, basis: number, reducer: java.util.function$.IntBinaryOperator): number; + /** + * Performs the given action for each value. + */ + // @ts-ignore + public forEachValue(parallelismThreshold: number, action: java.util.function$.Consumer): void; + /** + * Performs the given action for each non-null transformation + * of each value. + */ + // @ts-ignore + public forEachValue(parallelismThreshold: number, transformer: java.util.function$.Function, action: java.util.function$.Consumer): void; + /** + * Returns a non-null result from applying the given search + * function on each value, or null if none. Upon success, + * further element processing is suppressed and the results of + * any other parallel invocations of the search function are + * ignored. + */ + // @ts-ignore + public searchValues(parallelismThreshold: number, searchFunction: java.util.function$.Function): java.lang.Object; + /** + * Returns the result of accumulating all values using the + * given reducer to combine values, or null if none. + */ + // @ts-ignore + public reduceValues(parallelismThreshold: number, reducer: java.util.function$.BiFunction): java.lang.Object; + /** + * Returns the result of accumulating the given transformation + * of all values using the given reducer to combine values, or + * null if none. + */ + // @ts-ignore + public reduceValues(parallelismThreshold: number, transformer: java.util.function$.Function, reducer: java.util.function$.BiFunction): java.lang.Object; + /** + * Returns the result of accumulating the given transformation + * of all values using the given reducer to combine values, + * and the given basis as an identity value. + */ + // @ts-ignore + public reduceValuesToDouble(parallelismThreshold: number, transformer: java.util.function$.ToDoubleFunction, basis: number, reducer: java.util.function$.DoubleBinaryOperator): number; + /** + * Returns the result of accumulating the given transformation + * of all values using the given reducer to combine values, + * and the given basis as an identity value. + */ + // @ts-ignore + public reduceValuesToLong(parallelismThreshold: number, transformer: java.util.function$.ToLongFunction, basis: number, reducer: java.util.function$.LongBinaryOperator): number; + /** + * Returns the result of accumulating the given transformation + * of all values using the given reducer to combine values, + * and the given basis as an identity value. + */ + // @ts-ignore + public reduceValuesToInt(parallelismThreshold: number, transformer: java.util.function$.ToIntFunction, basis: number, reducer: java.util.function$.IntBinaryOperator): number; + /** + * Performs the given action for each entry. + */ + // @ts-ignore + public forEachEntry(parallelismThreshold: number, action: java.util.function$.Consumer): void; + /** + * Performs the given action for each non-null transformation + * of each entry. + */ + // @ts-ignore + public forEachEntry(parallelismThreshold: number, transformer: java.util.function$.Function, action: java.util.function$.Consumer): void; + /** + * Returns a non-null result from applying the given search + * function on each entry, or null if none. Upon success, + * further element processing is suppressed and the results of + * any other parallel invocations of the search function are + * ignored. + */ + // @ts-ignore + public searchEntries(parallelismThreshold: number, searchFunction: java.util.function$.Function): java.lang.Object; + /** + * Returns the result of accumulating all entries using the + * given reducer to combine values, or null if none. + */ + // @ts-ignore + public reduceEntries(parallelismThreshold: number, reducer: java.util.function$.BiFunction): java.util.Map.Entry; + /** + * Returns the result of accumulating the given transformation + * of all entries using the given reducer to combine values, + * or null if none. + */ + // @ts-ignore + public reduceEntries(parallelismThreshold: number, transformer: java.util.function$.Function, reducer: java.util.function$.BiFunction): java.lang.Object; + /** + * Returns the result of accumulating the given transformation + * of all entries using the given reducer to combine values, + * and the given basis as an identity value. + */ + // @ts-ignore + public reduceEntriesToDouble(parallelismThreshold: number, transformer: java.util.function$.ToDoubleFunction, basis: number, reducer: java.util.function$.DoubleBinaryOperator): number; + /** + * Returns the result of accumulating the given transformation + * of all entries using the given reducer to combine values, + * and the given basis as an identity value. + */ + // @ts-ignore + public reduceEntriesToLong(parallelismThreshold: number, transformer: java.util.function$.ToLongFunction, basis: number, reducer: java.util.function$.LongBinaryOperator): number; + /** + * Returns the result of accumulating the given transformation + * of all entries using the given reducer to combine values, + * and the given basis as an identity value. + */ + // @ts-ignore + public reduceEntriesToInt(parallelismThreshold: number, transformer: java.util.function$.ToIntFunction, basis: number, reducer: java.util.function$.IntBinaryOperator): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.ConcurrentLinkedDeque.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.ConcurrentLinkedDeque.d.ts new file mode 100644 index 00000000..e4411623 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.ConcurrentLinkedDeque.d.ts @@ -0,0 +1,213 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class ConcurrentLinkedDeque extends java.util.AbstractCollection { + /** + * Constructs an empty deque. + */ + // @ts-ignore + constructor() + /** + * Constructs a deque initially containing the elements of + * the given collection, added in traversal order of the + * collection's iterator. + */ + // @ts-ignore + constructor(c: java.util.Collection) + /** + * Inserts the specified element at the front of this deque. + * As the deque is unbounded, this method will never throw + * {@link IllegalStateException}. + */ + // @ts-ignore + public addFirst(e: java.lang.Object): void; + /** + * Inserts the specified element at the end of this deque. + * As the deque is unbounded, this method will never throw + * {@link IllegalStateException}. + *

This method is equivalent to {@link #add}. + */ + // @ts-ignore + public addLast(e: java.lang.Object): void; + /** + * Inserts the specified element at the front of this deque. + * As the deque is unbounded, this method will never return {@code false}. + */ + // @ts-ignore + public offerFirst(e: java.lang.Object): boolean; + /** + * Inserts the specified element at the end of this deque. + * As the deque is unbounded, this method will never return {@code false}. + *

This method is equivalent to {@link #add}. + */ + // @ts-ignore + public offerLast(e: java.lang.Object): boolean; + // @ts-ignore + public peekFirst(): java.lang.Object; + // @ts-ignore + public peekLast(): java.lang.Object; + // @ts-ignore + public getFirst(): java.lang.Object; + // @ts-ignore + public getLast(): java.lang.Object; + // @ts-ignore + public pollFirst(): java.lang.Object; + // @ts-ignore + public pollLast(): java.lang.Object; + // @ts-ignore + public removeFirst(): java.lang.Object; + // @ts-ignore + public removeLast(): java.lang.Object; + /** + * Inserts the specified element at the tail of this deque. + * As the deque is unbounded, this method will never return {@code false}. + */ + // @ts-ignore + public offer(e: java.lang.Object): boolean; + /** + * Inserts the specified element at the tail of this deque. + * As the deque is unbounded, this method will never throw + * {@link IllegalStateException} or return {@code false}. + */ + // @ts-ignore + public add(e: java.lang.Object): boolean; + // @ts-ignore + public poll(): java.lang.Object; + // @ts-ignore + public peek(): java.lang.Object; + // @ts-ignore + public remove(): java.lang.Object; + // @ts-ignore + public pop(): java.lang.Object; + // @ts-ignore + public element(): java.lang.Object; + // @ts-ignore + public push(e: java.lang.Object): void; + /** + * Removes the first element {@code e} such that + * {@code o.equals(e)}, if such an element exists in this deque. + * If the deque does not contain the element, it is unchanged. + */ + // @ts-ignore + public removeFirstOccurrence(o: java.lang.Object): boolean; + /** + * Removes the last element {@code e} such that + * {@code o.equals(e)}, if such an element exists in this deque. + * If the deque does not contain the element, it is unchanged. + */ + // @ts-ignore + public removeLastOccurrence(o: java.lang.Object): boolean; + /** + * Returns {@code true} if this deque contains at least one + * element {@code e} such that {@code o.equals(e)}. + */ + // @ts-ignore + public contains(o: java.lang.Object): boolean; + /** + * Returns {@code true} if this collection contains no elements. + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * Returns the number of elements in this deque. If this deque + * contains more than {@code Integer.MAX_VALUE} elements, it + * returns {@code Integer.MAX_VALUE}. + *

Beware that, unlike in most collections, this method is + * NOT a constant-time operation. Because of the + * asynchronous nature of these deques, determining the current + * number of elements requires traversing them all to count them. + * Additionally, it is possible for the size to change during + * execution of this method, in which case the returned result + * will be inaccurate. Thus, this method is typically not very + * useful in concurrent applications. + */ + // @ts-ignore + public size(): number; + /** + * Removes the first element {@code e} such that + * {@code o.equals(e)}, if such an element exists in this deque. + * If the deque does not contain the element, it is unchanged. + */ + // @ts-ignore + public remove(o: java.lang.Object): boolean; + /** + * Appends all of the elements in the specified collection to the end of + * this deque, in the order that they are returned by the specified + * collection's iterator. Attempts to {@code addAll} of a deque to + * itself result in {@code IllegalArgumentException}. + */ + // @ts-ignore + public addAll(c: java.util.Collection): boolean; + /** + * Removes all of the elements from this deque. + */ + // @ts-ignore + public clear(): void; + /** + * Returns an array containing all of the elements in this deque, in + * proper sequence (from first to last element). + *

The returned array will be "safe" in that no references to it are + * maintained by this deque. (In other words, this method must allocate + * a new array). The caller is thus free to modify the returned array. + *

This method acts as bridge between array-based and collection-based + * APIs. + */ + // @ts-ignore + public toArray(): java.lang.Object[]; + /** + * Returns an array containing all of the elements in this deque, + * in proper sequence (from first to last element); the runtime + * type of the returned array is that of the specified array. If + * the deque fits in the specified array, it is returned therein. + * Otherwise, a new array is allocated with the runtime type of + * the specified array and the size of this deque. + *

If this deque fits in the specified array with room to spare + * (i.e., the array has more elements than this deque), the element in + * the array immediately following the end of the deque is set to + * {@code null}. + *

Like the {@link #toArray()} method, this method acts as + * bridge between array-based and collection-based APIs. Further, + * this method allows precise control over the runtime type of the + * output array, and may, under certain circumstances, be used to + * save allocation costs. + *

Suppose {@code x} is a deque known to contain only strings. + * The following code can be used to dump the deque into a newly + * allocated array of {@code String}: + *

 {@code String[] y = x.toArray(new String[0]);}
+ * Note that {@code toArray(new Object[0])} is identical in function to + * {@code toArray()}. + */ + // @ts-ignore + public toArray(a: java.lang.Object): java.lang.Object[]; + /** + * Returns an iterator over the elements in this deque in proper sequence. + * The elements will be returned in order from first (head) to last (tail). + *

The returned iterator is + * weakly consistent. + */ + // @ts-ignore + public iterator(): java.util.Iterator; + /** + * Returns an iterator over the elements in this deque in reverse + * sequential order. The elements will be returned in order from + * last (tail) to first (head). + *

The returned iterator is + * weakly consistent. + */ + // @ts-ignore + public descendingIterator(): java.util.Iterator; + /** + * Returns a {@link Spliterator} over the elements in this deque. + *

The returned spliterator is + * weakly consistent. + *

The {@code Spliterator} reports {@link Spliterator#CONCURRENT}, + * {@link Spliterator#ORDERED}, and {@link Spliterator#NONNULL}. + */ + // @ts-ignore + public spliterator(): java.util.Spliterator; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.ConcurrentLinkedQueue.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.ConcurrentLinkedQueue.d.ts new file mode 100644 index 00000000..1dc31781 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.ConcurrentLinkedQueue.d.ts @@ -0,0 +1,135 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class ConcurrentLinkedQueue extends java.util.AbstractQueue { + /** + * Creates a {@code ConcurrentLinkedQueue} that is initially empty. + */ + // @ts-ignore + constructor() + /** + * Creates a {@code ConcurrentLinkedQueue} + * initially containing the elements of the given collection, + * added in traversal order of the collection's iterator. + */ + // @ts-ignore + constructor(c: java.util.Collection) + /** + * Inserts the specified element at the tail of this queue. + * As the queue is unbounded, this method will never throw + * {@link IllegalStateException} or return {@code false}. + */ + // @ts-ignore + public add(e: java.lang.Object): boolean; + /** + * Inserts the specified element at the tail of this queue. + * As the queue is unbounded, this method will never return {@code false}. + */ + // @ts-ignore + public offer(e: java.lang.Object): boolean; + // @ts-ignore + public poll(): java.lang.Object; + // @ts-ignore + public peek(): java.lang.Object; + /** + * Returns {@code true} if this queue contains no elements. + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * Returns the number of elements in this queue. If this queue + * contains more than {@code Integer.MAX_VALUE} elements, returns + * {@code Integer.MAX_VALUE}. + *

Beware that, unlike in most collections, this method is + * NOT a constant-time operation. Because of the + * asynchronous nature of these queues, determining the current + * number of elements requires an O(n) traversal. + * Additionally, if elements are added or removed during execution + * of this method, the returned result may be inaccurate. Thus, + * this method is typically not very useful in concurrent + * applications. + */ + // @ts-ignore + public size(): number; + /** + * Returns {@code true} if this queue contains the specified element. + * More formally, returns {@code true} if and only if this queue contains + * at least one element {@code e} such that {@code o.equals(e)}. + */ + // @ts-ignore + public contains(o: java.lang.Object): boolean; + /** + * Removes a single instance of the specified element from this queue, + * if it is present. More formally, removes an element {@code e} such + * that {@code o.equals(e)}, if this queue contains one or more such + * elements. + * Returns {@code true} if this queue contained the specified element + * (or equivalently, if this queue changed as a result of the call). + */ + // @ts-ignore + public remove(o: java.lang.Object): boolean; + /** + * Appends all of the elements in the specified collection to the end of + * this queue, in the order that they are returned by the specified + * collection's iterator. Attempts to {@code addAll} of a queue to + * itself result in {@code IllegalArgumentException}. + */ + // @ts-ignore + public addAll(c: java.util.Collection): boolean; + /** + * Returns an array containing all of the elements in this queue, in + * proper sequence. + *

The returned array will be "safe" in that no references to it are + * maintained by this queue. (In other words, this method must allocate + * a new array). The caller is thus free to modify the returned array. + *

This method acts as bridge between array-based and collection-based + * APIs. + */ + // @ts-ignore + public toArray(): java.lang.Object[]; + /** + * Returns an array containing all of the elements in this queue, in + * proper sequence; the runtime type of the returned array is that of + * the specified array. If the queue fits in the specified array, it + * is returned therein. Otherwise, a new array is allocated with the + * runtime type of the specified array and the size of this queue. + *

If this queue fits in the specified array with room to spare + * (i.e., the array has more elements than this queue), the element in + * the array immediately following the end of the queue is set to + * {@code null}. + *

Like the {@link #toArray()} method, this method acts as bridge between + * array-based and collection-based APIs. Further, this method allows + * precise control over the runtime type of the output array, and may, + * under certain circumstances, be used to save allocation costs. + *

Suppose {@code x} is a queue known to contain only strings. + * The following code can be used to dump the queue into a newly + * allocated array of {@code String}: + *

 {@code String[] y = x.toArray(new String[0]);}
+ * Note that {@code toArray(new Object[0])} is identical in function to + * {@code toArray()}. + */ + // @ts-ignore + public toArray(a: java.lang.Object): java.lang.Object[]; + /** + * Returns an iterator over the elements in this queue in proper sequence. + * The elements will be returned in order from first (head) to last (tail). + *

The returned iterator is + * weakly consistent. + */ + // @ts-ignore + public iterator(): java.util.Iterator; + /** + * Returns a {@link Spliterator} over the elements in this queue. + *

The returned spliterator is + * weakly consistent. + *

The {@code Spliterator} reports {@link Spliterator#CONCURRENT}, + * {@link Spliterator#ORDERED}, and {@link Spliterator#NONNULL}. + */ + // @ts-ignore + public spliterator(): java.util.Spliterator; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.ConcurrentMap.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.ConcurrentMap.d.ts new file mode 100644 index 00000000..140dbf9a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.ConcurrentMap.d.ts @@ -0,0 +1,100 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + interface ConcurrentMap { + /** + * {@inheritDoc} + */ + // @ts-ignore + getOrDefault(key: java.lang.Object, defaultValue: java.lang.Object): java.lang.Object; + /** + * {@inheritDoc} + */ + // @ts-ignore + forEach(action: java.util.function$.BiConsumer): void; + /** + * If the specified key is not already associated + * with a value, associate it with the given value. + * This is equivalent to + *

 {@code
+                 * if (!map.containsKey(key))
+                 * return map.put(key, value);
+                 * else
+                 * return map.get(key);
+                 * }
+ * except that the action is performed atomically. + */ + // @ts-ignore + putIfAbsent(key: java.lang.Object, value: java.lang.Object): java.lang.Object; + /** + * Removes the entry for a key only if currently mapped to a given value. + * This is equivalent to + *
 {@code
+                 * if (map.containsKey(key) && Objects.equals(map.get(key), value)) {
+                 * map.remove(key);
+                 * return true;
+                 * } else
+                 * return false;
+                 * }
+ * except that the action is performed atomically. + */ + // @ts-ignore + remove(key: java.lang.Object, value: java.lang.Object): boolean; + /** + * Replaces the entry for a key only if currently mapped to a given value. + * This is equivalent to + *
 {@code
+                 * if (map.containsKey(key) && Objects.equals(map.get(key), oldValue)) {
+                 * map.put(key, newValue);
+                 * return true;
+                 * } else
+                 * return false;
+                 * }
+ * except that the action is performed atomically. + */ + // @ts-ignore + replace(key: java.lang.Object, oldValue: java.lang.Object, newValue: java.lang.Object): boolean; + /** + * Replaces the entry for a key only if currently mapped to some value. + * This is equivalent to + *
 {@code
+                 * if (map.containsKey(key)) {
+                 * return map.put(key, value);
+                 * } else
+                 * return null;
+                 * }
+ * except that the action is performed atomically. + */ + // @ts-ignore + replace(key: java.lang.Object, value: java.lang.Object): java.lang.Object; + /** + * {@inheritDoc} + */ + // @ts-ignore + replaceAll(func: java.util.function$.BiFunction): void; + /** + * {@inheritDoc} + */ + // @ts-ignore + computeIfAbsent(key: java.lang.Object, mappingFunction: java.util.function$.Function): java.lang.Object; + /** + * {@inheritDoc} + */ + // @ts-ignore + computeIfPresent(key: java.lang.Object, remappingFunction: java.util.function$.BiFunction): java.lang.Object; + /** + * {@inheritDoc} + */ + // @ts-ignore + compute(key: java.lang.Object, remappingFunction: java.util.function$.BiFunction): java.lang.Object; + /** + * {@inheritDoc} + */ + // @ts-ignore + merge(key: java.lang.Object, value: java.lang.Object, remappingFunction: java.util.function$.BiFunction): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.ConcurrentNavigableMap.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.ConcurrentNavigableMap.d.ts new file mode 100644 index 00000000..3cd2efb4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.ConcurrentNavigableMap.d.ts @@ -0,0 +1,79 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + interface ConcurrentNavigableMap { + // @ts-ignore + subMap(fromKey: java.lang.Object, fromInclusive: boolean, toKey: java.lang.Object, toInclusive: boolean): java.util.concurrent.ConcurrentNavigableMap; + // @ts-ignore + headMap(toKey: java.lang.Object, inclusive: boolean): java.util.concurrent.ConcurrentNavigableMap; + // @ts-ignore + tailMap(fromKey: java.lang.Object, inclusive: boolean): java.util.concurrent.ConcurrentNavigableMap; + // @ts-ignore + subMap(fromKey: java.lang.Object, toKey: java.lang.Object): java.util.concurrent.ConcurrentNavigableMap; + // @ts-ignore + headMap(toKey: java.lang.Object): java.util.concurrent.ConcurrentNavigableMap; + // @ts-ignore + tailMap(fromKey: java.lang.Object): java.util.concurrent.ConcurrentNavigableMap; + /** + * Returns a reverse order view of the mappings contained in this map. + * The descending map is backed by this map, so changes to the map are + * reflected in the descending map, and vice-versa. + *

The returned map has an ordering equivalent to + * {@link Collections#reverseOrder(Comparator) Collections.reverseOrder}{@code (comparator())}. + * The expression {@code m.descendingMap().descendingMap()} returns a + * view of {@code m} essentially equivalent to {@code m}. + */ + // @ts-ignore + descendingMap(): java.util.concurrent.ConcurrentNavigableMap; + /** + * Returns a {@link NavigableSet} view of the keys contained in this map. + * The set's iterator returns the keys in ascending order. + * The set is backed by the map, so changes to the map are + * reflected in the set, and vice-versa. The set supports element + * removal, which removes the corresponding mapping from the map, + * via the {@code Iterator.remove}, {@code Set.remove}, + * {@code removeAll}, {@code retainAll}, and {@code clear} + * operations. It does not support the {@code add} or {@code addAll} + * operations. + *

The view's iterators and spliterators are + * weakly consistent. + */ + // @ts-ignore + navigableKeySet(): java.util.NavigableSet; + /** + * Returns a {@link NavigableSet} view of the keys contained in this map. + * The set's iterator returns the keys in ascending order. + * The set is backed by the map, so changes to the map are + * reflected in the set, and vice-versa. The set supports element + * removal, which removes the corresponding mapping from the map, + * via the {@code Iterator.remove}, {@code Set.remove}, + * {@code removeAll}, {@code retainAll}, and {@code clear} + * operations. It does not support the {@code add} or {@code addAll} + * operations. + *

The view's iterators and spliterators are + * weakly consistent. + *

This method is equivalent to method {@code navigableKeySet}. + */ + // @ts-ignore + keySet(): java.util.NavigableSet; + /** + * Returns a reverse order {@link NavigableSet} view of the keys contained in this map. + * The set's iterator returns the keys in descending order. + * The set is backed by the map, so changes to the map are + * reflected in the set, and vice-versa. The set supports element + * removal, which removes the corresponding mapping from the map, + * via the {@code Iterator.remove}, {@code Set.remove}, + * {@code removeAll}, {@code retainAll}, and {@code clear} + * operations. It does not support the {@code add} or {@code addAll} + * operations. + *

The view's iterators and spliterators are + * weakly consistent. + */ + // @ts-ignore + descendingKeySet(): java.util.NavigableSet; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.ConcurrentSkipListMap.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.ConcurrentSkipListMap.d.ts new file mode 100644 index 00000000..5ca2a9da --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.ConcurrentSkipListMap.d.ts @@ -0,0 +1,340 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class ConcurrentSkipListMap extends java.util.AbstractMap { + /** + * Constructs a new, empty map, sorted according to the + * {@linkplain Comparable natural ordering} of the keys. + */ + // @ts-ignore + constructor() + /** + * Constructs a new, empty map, sorted according to the specified + * comparator. + */ + // @ts-ignore + constructor(comparator: java.util.Comparator) + /** + * Constructs a new map containing the same mappings as the given map, + * sorted according to the {@linkplain Comparable natural ordering} of + * the keys. + */ + // @ts-ignore + constructor(m: java.util.Map) + /** + * Constructs a new map containing the same mappings and using the + * same ordering as the specified sorted map. + */ + // @ts-ignore + constructor(m: java.util.SortedMap) + /** + * Returns a shallow copy of this {@code ConcurrentSkipListMap} + * instance. (The keys and values themselves are not cloned.) + */ + // @ts-ignore + public clone(): java.util.concurrent.ConcurrentSkipListMap; + /** + * Returns {@code true} if this map contains a mapping for the specified + * key. + */ + // @ts-ignore + public containsKey(key: java.lang.Object): boolean; + /** + * Returns the value to which the specified key is mapped, + * or {@code null} if this map contains no mapping for the key. + *

More formally, if this map contains a mapping from a key + * {@code k} to a value {@code v} such that {@code key} compares + * equal to {@code k} according to the map's ordering, then this + * method returns {@code v}; otherwise it returns {@code null}. + * (There can be at most one such mapping.) + */ + // @ts-ignore + public get(key: java.lang.Object): java.lang.Object; + /** + * Returns the value to which the specified key is mapped, + * or the given defaultValue if this map contains no mapping for the key. + */ + // @ts-ignore + public getOrDefault(key: java.lang.Object, defaultValue: java.lang.Object): java.lang.Object; + /** + * Associates the specified value with the specified key in this map. + * If the map previously contained a mapping for the key, the old + * value is replaced. + */ + // @ts-ignore + public put(key: java.lang.Object, value: java.lang.Object): java.lang.Object; + /** + * Removes the mapping for the specified key from this map if present. + */ + // @ts-ignore + public remove(key: java.lang.Object): java.lang.Object; + /** + * Returns {@code true} if this map maps one or more keys to the + * specified value. This operation requires time linear in the + * map size. Additionally, it is possible for the map to change + * during execution of this method, in which case the returned + * result may be inaccurate. + */ + // @ts-ignore + public containsValue(value: java.lang.Object): boolean; + /** + * Returns the number of key-value mappings in this map. If this map + * contains more than {@code Integer.MAX_VALUE} elements, it + * returns {@code Integer.MAX_VALUE}. + *

Beware that, unlike in most collections, this method is + * NOT a constant-time operation. Because of the + * asynchronous nature of these maps, determining the current + * number of elements requires traversing them all to count them. + * Additionally, it is possible for the size to change during + * execution of this method, in which case the returned result + * will be inaccurate. Thus, this method is typically not very + * useful in concurrent applications. + */ + // @ts-ignore + public size(): number; + /** + * Returns {@code true} if this map contains no key-value mappings. + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * Removes all of the mappings from this map. + */ + // @ts-ignore + public clear(): void; + /** + * If the specified key is not already associated with a value, + * attempts to compute its value using the given mapping function + * and enters it into this map unless {@code null}. The function + * is NOT guaranteed to be applied once atomically only + * if the value is not present. + */ + // @ts-ignore + public computeIfAbsent(key: java.lang.Object, mappingFunction: java.util.function$.Function): java.lang.Object; + /** + * If the value for the specified key is present, attempts to + * compute a new mapping given the key and its current mapped + * value. The function is NOT guaranteed to be applied + * once atomically. + */ + // @ts-ignore + public computeIfPresent(key: java.lang.Object, remappingFunction: java.util.function$.BiFunction): java.lang.Object; + /** + * Attempts to compute a mapping for the specified key and its + * current mapped value (or {@code null} if there is no current + * mapping). The function is NOT guaranteed to be applied + * once atomically. + */ + // @ts-ignore + public compute(key: java.lang.Object, remappingFunction: java.util.function$.BiFunction): java.lang.Object; + /** + * If the specified key is not already associated with a value, + * associates it with the given value. Otherwise, replaces the + * value with the results of the given remapping function, or + * removes if {@code null}. The function is NOT + * guaranteed to be applied once atomically. + */ + // @ts-ignore + public merge(key: java.lang.Object, value: java.lang.Object, remappingFunction: java.util.function$.BiFunction): java.lang.Object; + /** + * Returns a {@link NavigableSet} view of the keys contained in this map. + *

The set's iterator returns the keys in ascending order. + * The set's spliterator additionally reports {@link Spliterator#CONCURRENT}, + * {@link Spliterator#NONNULL}, {@link Spliterator#SORTED} and + * {@link Spliterator#ORDERED}, with an encounter order that is ascending + * key order. The spliterator's comparator (see + * {@link java.util.Spliterator#getComparator()}) is {@code null} if + * the map's comparator (see {@link #comparator()}) is {@code null}. + * Otherwise, the spliterator's comparator is the same as or imposes the + * same total ordering as the map's comparator. + *

The set is backed by the map, so changes to the map are + * reflected in the set, and vice-versa. The set supports element + * removal, which removes the corresponding mapping from the map, + * via the {@code Iterator.remove}, {@code Set.remove}, + * {@code removeAll}, {@code retainAll}, and {@code clear} + * operations. It does not support the {@code add} or {@code addAll} + * operations. + *

The view's iterators and spliterators are + * weakly consistent. + *

This method is equivalent to method {@code navigableKeySet}. + */ + // @ts-ignore + public keySet(): java.util.NavigableSet; + // @ts-ignore + public navigableKeySet(): java.util.NavigableSet; + /** + * Returns a {@link Collection} view of the values contained in this map. + *

The collection's iterator returns the values in ascending order + * of the corresponding keys. The collections's spliterator additionally + * reports {@link Spliterator#CONCURRENT}, {@link Spliterator#NONNULL} and + * {@link Spliterator#ORDERED}, with an encounter order that is ascending + * order of the corresponding keys. + *

The collection is backed by the map, so changes to the map are + * reflected in the collection, and vice-versa. The collection + * supports element removal, which removes the corresponding + * mapping from the map, via the {@code Iterator.remove}, + * {@code Collection.remove}, {@code removeAll}, + * {@code retainAll} and {@code clear} operations. It does not + * support the {@code add} or {@code addAll} operations. + *

The view's iterators and spliterators are + * weakly consistent. + */ + // @ts-ignore + public values(): java.util.Collection; + /** + * Returns a {@link Set} view of the mappings contained in this map. + *

The set's iterator returns the entries in ascending key order. The + * set's spliterator additionally reports {@link Spliterator#CONCURRENT}, + * {@link Spliterator#NONNULL}, {@link Spliterator#SORTED} and + * {@link Spliterator#ORDERED}, with an encounter order that is ascending + * key order. + *

The set is backed by the map, so changes to the map are + * reflected in the set, and vice-versa. The set supports element + * removal, which removes the corresponding mapping from the map, + * via the {@code Iterator.remove}, {@code Set.remove}, + * {@code removeAll}, {@code retainAll} and {@code clear} + * operations. It does not support the {@code add} or + * {@code addAll} operations. + *

The view's iterators and spliterators are + * weakly consistent. + *

The {@code Map.Entry} elements traversed by the {@code iterator} + * or {@code spliterator} do not support the {@code setValue} + * operation. + */ + // @ts-ignore + public entrySet(): java.util.Set; + // @ts-ignore + public descendingMap(): java.util.concurrent.ConcurrentNavigableMap; + // @ts-ignore + public descendingKeySet(): java.util.NavigableSet; + /** + * Compares the specified object with this map for equality. + * Returns {@code true} if the given object is also a map and the + * two maps represent the same mappings. More formally, two maps + * {@code m1} and {@code m2} represent the same mappings if + * {@code m1.entrySet().equals(m2.entrySet())}. This + * operation may return misleading results if either map is + * concurrently modified during execution of this method. + */ + // @ts-ignore + public equals(o: java.lang.Object): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public putIfAbsent(key: java.lang.Object, value: java.lang.Object): java.lang.Object; + /** + * {@inheritDoc} + */ + // @ts-ignore + public remove(key: java.lang.Object, value: java.lang.Object): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public replace(key: java.lang.Object, oldValue: java.lang.Object, newValue: java.lang.Object): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public replace(key: java.lang.Object, value: java.lang.Object): java.lang.Object; + // @ts-ignore + public comparator(): java.util.Comparator; + // @ts-ignore + public firstKey(): java.lang.Object; + // @ts-ignore + public lastKey(): java.lang.Object; + // @ts-ignore + public subMap(fromKey: java.lang.Object, fromInclusive: boolean, toKey: java.lang.Object, toInclusive: boolean): java.util.concurrent.ConcurrentNavigableMap; + // @ts-ignore + public headMap(toKey: java.lang.Object, inclusive: boolean): java.util.concurrent.ConcurrentNavigableMap; + // @ts-ignore + public tailMap(fromKey: java.lang.Object, inclusive: boolean): java.util.concurrent.ConcurrentNavigableMap; + // @ts-ignore + public subMap(fromKey: java.lang.Object, toKey: java.lang.Object): java.util.concurrent.ConcurrentNavigableMap; + // @ts-ignore + public headMap(toKey: java.lang.Object): java.util.concurrent.ConcurrentNavigableMap; + // @ts-ignore + public tailMap(fromKey: java.lang.Object): java.util.concurrent.ConcurrentNavigableMap; + /** + * Returns a key-value mapping associated with the greatest key + * strictly less than the given key, or {@code null} if there is + * no such key. The returned entry does not support the + * {@code Entry.setValue} method. + */ + // @ts-ignore + public lowerEntry(key: java.lang.Object): java.util.Map.Entry; + // @ts-ignore + public lowerKey(key: java.lang.Object): java.lang.Object; + /** + * Returns a key-value mapping associated with the greatest key + * less than or equal to the given key, or {@code null} if there + * is no such key. The returned entry does not support + * the {@code Entry.setValue} method. + */ + // @ts-ignore + public floorEntry(key: java.lang.Object): java.util.Map.Entry; + // @ts-ignore + public floorKey(key: java.lang.Object): java.lang.Object; + /** + * Returns a key-value mapping associated with the least key + * greater than or equal to the given key, or {@code null} if + * there is no such entry. The returned entry does not + * support the {@code Entry.setValue} method. + */ + // @ts-ignore + public ceilingEntry(key: java.lang.Object): java.util.Map.Entry; + // @ts-ignore + public ceilingKey(key: java.lang.Object): java.lang.Object; + /** + * Returns a key-value mapping associated with the least key + * strictly greater than the given key, or {@code null} if there + * is no such key. The returned entry does not support + * the {@code Entry.setValue} method. + */ + // @ts-ignore + public higherEntry(key: java.lang.Object): java.util.Map.Entry; + // @ts-ignore + public higherKey(key: java.lang.Object): java.lang.Object; + /** + * Returns a key-value mapping associated with the least + * key in this map, or {@code null} if the map is empty. + * The returned entry does not support + * the {@code Entry.setValue} method. + */ + // @ts-ignore + public firstEntry(): java.util.Map.Entry; + /** + * Returns a key-value mapping associated with the greatest + * key in this map, or {@code null} if the map is empty. + * The returned entry does not support + * the {@code Entry.setValue} method. + */ + // @ts-ignore + public lastEntry(): java.util.Map.Entry; + /** + * Removes and returns a key-value mapping associated with + * the least key in this map, or {@code null} if the map is empty. + * The returned entry does not support + * the {@code Entry.setValue} method. + */ + // @ts-ignore + public pollFirstEntry(): java.util.Map.Entry; + /** + * Removes and returns a key-value mapping associated with + * the greatest key in this map, or {@code null} if the map is empty. + * The returned entry does not support + * the {@code Entry.setValue} method. + */ + // @ts-ignore + public pollLastEntry(): java.util.Map.Entry; + // @ts-ignore + public forEach(action: java.util.function$.BiConsumer): void; + // @ts-ignore + public replaceAll(func: java.util.function$.BiFunction): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.ConcurrentSkipListSet.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.ConcurrentSkipListSet.d.ts new file mode 100644 index 00000000..e8933266 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.ConcurrentSkipListSet.d.ts @@ -0,0 +1,177 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class ConcurrentSkipListSet extends java.util.AbstractSet { + /** + * Constructs a new, empty set that orders its elements according to + * their {@linkplain Comparable natural ordering}. + */ + // @ts-ignore + constructor() + /** + * Constructs a new, empty set that orders its elements according to + * the specified comparator. + */ + // @ts-ignore + constructor(comparator: java.util.Comparator) + /** + * Constructs a new set containing the elements in the specified + * collection, that orders its elements according to their + * {@linkplain Comparable natural ordering}. + */ + // @ts-ignore + constructor(c: java.util.Collection) + /** + * Constructs a new set containing the same elements and using the + * same ordering as the specified sorted set. + */ + // @ts-ignore + constructor(s: java.util.SortedSet) + /** + * Returns a shallow copy of this {@code ConcurrentSkipListSet} + * instance. (The elements themselves are not cloned.) + */ + // @ts-ignore + public clone(): java.util.concurrent.ConcurrentSkipListSet; + /** + * Returns the number of elements in this set. If this set + * contains more than {@code Integer.MAX_VALUE} elements, it + * returns {@code Integer.MAX_VALUE}. + *

Beware that, unlike in most collections, this method is + * NOT a constant-time operation. Because of the + * asynchronous nature of these sets, determining the current + * number of elements requires traversing them all to count them. + * Additionally, it is possible for the size to change during + * execution of this method, in which case the returned result + * will be inaccurate. Thus, this method is typically not very + * useful in concurrent applications. + */ + // @ts-ignore + public size(): number; + /** + * Returns {@code true} if this set contains no elements. + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * Returns {@code true} if this set contains the specified element. + * More formally, returns {@code true} if and only if this set + * contains an element {@code e} such that {@code o.equals(e)}. + */ + // @ts-ignore + public contains(o: java.lang.Object): boolean; + /** + * Adds the specified element to this set if it is not already present. + * More formally, adds the specified element {@code e} to this set if + * the set contains no element {@code e2} such that {@code e.equals(e2)}. + * If this set already contains the element, the call leaves the set + * unchanged and returns {@code false}. + */ + // @ts-ignore + public add(e: java.lang.Object): boolean; + /** + * Removes the specified element from this set if it is present. + * More formally, removes an element {@code e} such that + * {@code o.equals(e)}, if this set contains such an element. + * Returns {@code true} if this set contained the element (or + * equivalently, if this set changed as a result of the call). + * (This set will not contain the element once the call returns.) + */ + // @ts-ignore + public remove(o: java.lang.Object): boolean; + /** + * Removes all of the elements from this set. + */ + // @ts-ignore + public clear(): void; + /** + * Returns an iterator over the elements in this set in ascending order. + */ + // @ts-ignore + public iterator(): java.util.Iterator; + /** + * Returns an iterator over the elements in this set in descending order. + */ + // @ts-ignore + public descendingIterator(): java.util.Iterator; + /** + * Compares the specified object with this set for equality. Returns + * {@code true} if the specified object is also a set, the two sets + * have the same size, and every member of the specified set is + * contained in this set (or equivalently, every member of this set is + * contained in the specified set). This definition ensures that the + * equals method works properly across different implementations of the + * set interface. + */ + // @ts-ignore + public equals(o: java.lang.Object): boolean; + /** + * Removes from this set all of its elements that are contained in + * the specified collection. If the specified collection is also + * a set, this operation effectively modifies this set so that its + * value is the asymmetric set difference of the two sets. + */ + // @ts-ignore + public removeAll(c: java.util.Collection): boolean; + // @ts-ignore + public lower(e: java.lang.Object): java.lang.Object; + // @ts-ignore + public floor(e: java.lang.Object): java.lang.Object; + // @ts-ignore + public ceiling(e: java.lang.Object): java.lang.Object; + // @ts-ignore + public higher(e: java.lang.Object): java.lang.Object; + // @ts-ignore + public pollFirst(): java.lang.Object; + // @ts-ignore + public pollLast(): java.lang.Object; + // @ts-ignore + public comparator(): java.util.Comparator; + // @ts-ignore + public first(): java.lang.Object; + // @ts-ignore + public last(): java.lang.Object; + // @ts-ignore + public subSet(fromElement: java.lang.Object, fromInclusive: boolean, toElement: java.lang.Object, toInclusive: boolean): java.util.NavigableSet; + // @ts-ignore + public headSet(toElement: java.lang.Object, inclusive: boolean): java.util.NavigableSet; + // @ts-ignore + public tailSet(fromElement: java.lang.Object, inclusive: boolean): java.util.NavigableSet; + // @ts-ignore + public subSet(fromElement: java.lang.Object, toElement: java.lang.Object): java.util.NavigableSet; + // @ts-ignore + public headSet(toElement: java.lang.Object): java.util.NavigableSet; + // @ts-ignore + public tailSet(fromElement: java.lang.Object): java.util.NavigableSet; + /** + * Returns a reverse order view of the elements contained in this set. + * The descending set is backed by this set, so changes to the set are + * reflected in the descending set, and vice-versa. + *

The returned set has an ordering equivalent to + * {@link Collections#reverseOrder(Comparator) Collections.reverseOrder}{@code (comparator())}. + * The expression {@code s.descendingSet().descendingSet()} returns a + * view of {@code s} essentially equivalent to {@code s}. + */ + // @ts-ignore + public descendingSet(): java.util.NavigableSet; + /** + * Returns a {@link Spliterator} over the elements in this set. + *

The {@code Spliterator} reports {@link Spliterator#CONCURRENT}, + * {@link Spliterator#NONNULL}, {@link Spliterator#DISTINCT}, + * {@link Spliterator#SORTED} and {@link Spliterator#ORDERED}, with an + * encounter order that is ascending order. Overriding implementations + * should document the reporting of additional characteristic values. + *

The spliterator's comparator (see + * {@link java.util.Spliterator#getComparator()}) is {@code null} if + * the set's comparator (see {@link #comparator()}) is {@code null}. + * Otherwise, the spliterator's comparator is the same as or imposes the + * same total ordering as the set's comparator. + */ + // @ts-ignore + public spliterator(): java.util.Spliterator; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.CopyOnWriteArrayList.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.CopyOnWriteArrayList.d.ts new file mode 100644 index 00000000..17303966 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.CopyOnWriteArrayList.d.ts @@ -0,0 +1,303 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class CopyOnWriteArrayList extends java.lang.Object { + /** + * Creates an empty list. + */ + // @ts-ignore + constructor() + /** + * Creates a list containing the elements of the specified + * collection, in the order they are returned by the collection's + * iterator. + */ + // @ts-ignore + constructor(c: java.util.Collection) + /** + * Creates a list holding a copy of the given array. + */ + // @ts-ignore + constructor(toCopyIn: java.lang.Object) + /** + * Returns the number of elements in this list. + */ + // @ts-ignore + public size(): number; + /** + * Returns {@code true} if this list contains no elements. + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * Returns {@code true} if this list contains the specified element. + * More formally, returns {@code true} if and only if this list contains + * at least one element {@code e} such that + * (o==null ? e==null : o.equals(e)). + */ + // @ts-ignore + public contains(o: java.lang.Object): boolean; + /** + * {@inheritDoc} + */ + // @ts-ignore + public indexOf(o: java.lang.Object): number; + /** + * Returns the index of the first occurrence of the specified element in + * this list, searching forwards from {@code index}, or returns -1 if + * the element is not found. + * More formally, returns the lowest index {@code i} such that + * (i >= index && (e==null ? get(i)==null : e.equals(get(i)))), + * or -1 if there is no such index. + */ + // @ts-ignore + public indexOf(e: java.lang.Object, index: number): number; + /** + * {@inheritDoc} + */ + // @ts-ignore + public lastIndexOf(o: java.lang.Object): number; + /** + * Returns the index of the last occurrence of the specified element in + * this list, searching backwards from {@code index}, or returns -1 if + * the element is not found. + * More formally, returns the highest index {@code i} such that + * (i <= index && (e==null ? get(i)==null : e.equals(get(i)))), + * or -1 if there is no such index. + */ + // @ts-ignore + public lastIndexOf(e: java.lang.Object, index: number): number; + /** + * Returns a shallow copy of this list. (The elements themselves + * are not copied.) + */ + // @ts-ignore + public clone(): java.lang.Object; + /** + * Returns an array containing all of the elements in this list + * in proper sequence (from first to last element). + *

The returned array will be "safe" in that no references to it are + * maintained by this list. (In other words, this method must allocate + * a new array). The caller is thus free to modify the returned array. + *

This method acts as bridge between array-based and collection-based + * APIs. + */ + // @ts-ignore + public toArray(): java.lang.Object[]; + /** + * Returns an array containing all of the elements in this list in + * proper sequence (from first to last element); the runtime type of + * the returned array is that of the specified array. If the list fits + * in the specified array, it is returned therein. Otherwise, a new + * array is allocated with the runtime type of the specified array and + * the size of this list. + *

If this list fits in the specified array with room to spare + * (i.e., the array has more elements than this list), the element in + * the array immediately following the end of the list is set to + * {@code null}. (This is useful in determining the length of this + * list only if the caller knows that this list does not contain + * any null elements.) + *

Like the {@link #toArray()} method, this method acts as bridge between + * array-based and collection-based APIs. Further, this method allows + * precise control over the runtime type of the output array, and may, + * under certain circumstances, be used to save allocation costs. + *

Suppose {@code x} is a list known to contain only strings. + * The following code can be used to dump the list into a newly + * allocated array of {@code String}: + *

 {@code String[] y = x.toArray(new String[0]);}
+ * Note that {@code toArray(new Object[0])} is identical in function to + * {@code toArray()}. + */ + // @ts-ignore + public toArray(a: java.lang.Object): java.lang.Object[]; + /** + * {@inheritDoc} + */ + // @ts-ignore + public get(index: number): java.lang.Object; + /** + * Replaces the element at the specified position in this list with the + * specified element. + */ + // @ts-ignore + public set(index: number, element: java.lang.Object): java.lang.Object; + /** + * Appends the specified element to the end of this list. + */ + // @ts-ignore + public add(e: java.lang.Object): boolean; + /** + * Inserts the specified element at the specified position in this + * list. Shifts the element currently at that position (if any) and + * any subsequent elements to the right (adds one to their indices). + */ + // @ts-ignore + public add(index: number, element: java.lang.Object): void; + /** + * Removes the element at the specified position in this list. + * Shifts any subsequent elements to the left (subtracts one from their + * indices). Returns the element that was removed from the list. + */ + // @ts-ignore + public remove(index: number): java.lang.Object; + /** + * Removes the first occurrence of the specified element from this list, + * if it is present. If this list does not contain the element, it is + * unchanged. More formally, removes the element with the lowest index + * {@code i} such that + * (o==null ? get(i)==null : o.equals(get(i))) + * (if such an element exists). Returns {@code true} if this list + * contained the specified element (or equivalently, if this list + * changed as a result of the call). + */ + // @ts-ignore + public remove(o: java.lang.Object): boolean; + /** + * Appends the element, if not present. + */ + // @ts-ignore + public addIfAbsent(e: java.lang.Object): boolean; + /** + * Returns {@code true} if this list contains all of the elements of the + * specified collection. + */ + // @ts-ignore + public containsAll(c: java.util.Collection): boolean; + /** + * Removes from this list all of its elements that are contained in + * the specified collection. This is a particularly expensive operation + * in this class because of the need for an internal temporary array. + */ + // @ts-ignore + public removeAll(c: java.util.Collection): boolean; + /** + * Retains only the elements in this list that are contained in the + * specified collection. In other words, removes from this list all of + * its elements that are not contained in the specified collection. + */ + // @ts-ignore + public retainAll(c: java.util.Collection): boolean; + /** + * Appends all of the elements in the specified collection that + * are not already contained in this list, to the end of + * this list, in the order that they are returned by the + * specified collection's iterator. + */ + // @ts-ignore + public addAllAbsent(c: java.util.Collection): number; + /** + * Removes all of the elements from this list. + * The list will be empty after this call returns. + */ + // @ts-ignore + public clear(): void; + /** + * Appends all of the elements in the specified collection to the end + * of this list, in the order that they are returned by the specified + * collection's iterator. + */ + // @ts-ignore + public addAll(c: java.util.Collection): boolean; + /** + * Inserts all of the elements in the specified collection into this + * list, starting at the specified position. Shifts the element + * currently at that position (if any) and any subsequent elements to + * the right (increases their indices). The new elements will appear + * in this list in the order that they are returned by the + * specified collection's iterator. + */ + // @ts-ignore + public addAll(index: number, c: java.util.Collection): boolean; + // @ts-ignore + public forEach(action: java.util.function$.Consumer): void; + // @ts-ignore + public removeIf(filter: java.util.function$.Predicate): boolean; + // @ts-ignore + public replaceAll(operator: java.util.function$.UnaryOperator): void; + // @ts-ignore + public sort(c: java.util.Comparator): void; + /** + * Returns a string representation of this list. The string + * representation consists of the string representations of the list's + * elements in the order they are returned by its iterator, enclosed in + * square brackets ({@code "[]"}). Adjacent elements are separated by + * the characters {@code ", "} (comma and space). Elements are + * converted to strings as by {@link String#valueOf(Object)}. + */ + // @ts-ignore + public toString(): string; + /** + * Compares the specified object with this list for equality. + * Returns {@code true} if the specified object is the same object + * as this object, or if it is also a {@link List} and the sequence + * of elements returned by an {@linkplain List#iterator() iterator} + * over the specified list is the same as the sequence returned by + * an iterator over this list. The two sequences are considered to + * be the same if they have the same length and corresponding + * elements at the same position in the sequence are equal. + * Two elements {@code e1} and {@code e2} are considered + * equal if {@code (e1==null ? e2==null : e1.equals(e2))}. + */ + // @ts-ignore + public equals(o: java.lang.Object): boolean; + /** + * Returns the hash code value for this list. + *

This implementation uses the definition in {@link List#hashCode}. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns an iterator over the elements in this list in proper sequence. + *

The returned iterator provides a snapshot of the state of the list + * when the iterator was constructed. No synchronization is needed while + * traversing the iterator. The iterator does NOT support the + * {@code remove} method. + */ + // @ts-ignore + public iterator(): java.util.Iterator; + /** + * {@inheritDoc} + *

The returned iterator provides a snapshot of the state of the list + * when the iterator was constructed. No synchronization is needed while + * traversing the iterator. The iterator does NOT support the + * {@code remove}, {@code set} or {@code add} methods. + */ + // @ts-ignore + public listIterator(): java.util.ListIterator; + /** + * {@inheritDoc} + *

The returned iterator provides a snapshot of the state of the list + * when the iterator was constructed. No synchronization is needed while + * traversing the iterator. The iterator does NOT support the + * {@code remove}, {@code set} or {@code add} methods. + */ + // @ts-ignore + public listIterator(index: number): java.util.ListIterator; + /** + * Returns a {@link Spliterator} over the elements in this list. + *

The {@code Spliterator} reports {@link Spliterator#IMMUTABLE}, + * {@link Spliterator#ORDERED}, {@link Spliterator#SIZED}, and + * {@link Spliterator#SUBSIZED}. + *

The spliterator provides a snapshot of the state of the list + * when the spliterator was constructed. No synchronization is needed while + * operating on the spliterator. + */ + // @ts-ignore + public spliterator(): java.util.Spliterator; + /** + * Returns a view of the portion of this list between + * {@code fromIndex}, inclusive, and {@code toIndex}, exclusive. + * The returned list is backed by this list, so changes in the + * returned list are reflected in this list. + *

The semantics of the list returned by this method become + * undefined if the backing list (i.e., this list) is modified in + * any way other than via the returned list. + */ + // @ts-ignore + public subList(fromIndex: number, toIndex: number): java.util.List; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.CopyOnWriteArraySet.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.CopyOnWriteArraySet.d.ts new file mode 100644 index 00000000..e615472c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.CopyOnWriteArraySet.d.ts @@ -0,0 +1,184 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class CopyOnWriteArraySet extends java.util.AbstractSet { + /** + * Creates an empty set. + */ + // @ts-ignore + constructor() + /** + * Creates a set containing all of the elements of the specified + * collection. + */ + // @ts-ignore + constructor(c: java.util.Collection) + /** + * Returns the number of elements in this set. + */ + // @ts-ignore + public size(): number; + /** + * Returns {@code true} if this set contains no elements. + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * Returns {@code true} if this set contains the specified element. + * More formally, returns {@code true} if and only if this set + * contains an element {@code e} such that + * (o==null ? e==null : o.equals(e)). + */ + // @ts-ignore + public contains(o: java.lang.Object): boolean; + /** + * Returns an array containing all of the elements in this set. + * If this set makes any guarantees as to what order its elements + * are returned by its iterator, this method must return the + * elements in the same order. + *

The returned array will be "safe" in that no references to it + * are maintained by this set. (In other words, this method must + * allocate a new array even if this set is backed by an array). + * The caller is thus free to modify the returned array. + *

This method acts as bridge between array-based and collection-based + * APIs. + */ + // @ts-ignore + public toArray(): java.lang.Object[]; + /** + * Returns an array containing all of the elements in this set; the + * runtime type of the returned array is that of the specified array. + * If the set fits in the specified array, it is returned therein. + * Otherwise, a new array is allocated with the runtime type of the + * specified array and the size of this set. + *

If this set fits in the specified array with room to spare + * (i.e., the array has more elements than this set), the element in + * the array immediately following the end of the set is set to + * {@code null}. (This is useful in determining the length of this + * set only if the caller knows that this set does not contain + * any null elements.) + *

If this set makes any guarantees as to what order its elements + * are returned by its iterator, this method must return the elements + * in the same order. + *

Like the {@link #toArray()} method, this method acts as bridge between + * array-based and collection-based APIs. Further, this method allows + * precise control over the runtime type of the output array, and may, + * under certain circumstances, be used to save allocation costs. + *

Suppose {@code x} is a set known to contain only strings. + * The following code can be used to dump the set into a newly allocated + * array of {@code String}: + *

 {@code String[] y = x.toArray(new String[0]);}
+ * Note that {@code toArray(new Object[0])} is identical in function to + * {@code toArray()}. + */ + // @ts-ignore + public toArray(a: java.lang.Object): java.lang.Object[]; + /** + * Removes all of the elements from this set. + * The set will be empty after this call returns. + */ + // @ts-ignore + public clear(): void; + /** + * Removes the specified element from this set if it is present. + * More formally, removes an element {@code e} such that + * (o==null ? e==null : o.equals(e)), + * if this set contains such an element. Returns {@code true} if + * this set contained the element (or equivalently, if this set + * changed as a result of the call). (This set will not contain the + * element once the call returns.) + */ + // @ts-ignore + public remove(o: java.lang.Object): boolean; + /** + * Adds the specified element to this set if it is not already present. + * More formally, adds the specified element {@code e} to this set if + * the set contains no element {@code e2} such that + * (e==null ? e2==null : e.equals(e2)). + * If this set already contains the element, the call leaves the set + * unchanged and returns {@code false}. + */ + // @ts-ignore + public add(e: java.lang.Object): boolean; + /** + * Returns {@code true} if this set contains all of the elements of the + * specified collection. If the specified collection is also a set, this + * method returns {@code true} if it is a subset of this set. + */ + // @ts-ignore + public containsAll(c: java.util.Collection): boolean; + /** + * Adds all of the elements in the specified collection to this set if + * they're not already present. If the specified collection is also a + * set, the {@code addAll} operation effectively modifies this set so + * that its value is the union of the two sets. The behavior of + * this operation is undefined if the specified collection is modified + * while the operation is in progress. + */ + // @ts-ignore + public addAll(c: java.util.Collection): boolean; + /** + * Removes from this set all of its elements that are contained in the + * specified collection. If the specified collection is also a set, + * this operation effectively modifies this set so that its value is the + * asymmetric set difference of the two sets. + */ + // @ts-ignore + public removeAll(c: java.util.Collection): boolean; + /** + * Retains only the elements in this set that are contained in the + * specified collection. In other words, removes from this set all of + * its elements that are not contained in the specified collection. If + * the specified collection is also a set, this operation effectively + * modifies this set so that its value is the intersection of the + * two sets. + */ + // @ts-ignore + public retainAll(c: java.util.Collection): boolean; + /** + * Returns an iterator over the elements contained in this set + * in the order in which these elements were added. + *

The returned iterator provides a snapshot of the state of the set + * when the iterator was constructed. No synchronization is needed while + * traversing the iterator. The iterator does NOT support the + * {@code remove} method. + */ + // @ts-ignore + public iterator(): java.util.Iterator; + /** + * Compares the specified object with this set for equality. + * Returns {@code true} if the specified object is the same object + * as this object, or if it is also a {@link Set} and the elements + * returned by an {@linkplain Set#iterator() iterator} over the + * specified set are the same as the elements returned by an + * iterator over this set. More formally, the two iterators are + * considered to return the same elements if they return the same + * number of elements and for every element {@code e1} returned by + * the iterator over the specified set, there is an element + * {@code e2} returned by the iterator over this set such that + * {@code (e1==null ? e2==null : e1.equals(e2))}. + */ + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public removeIf(filter: java.util.function$.Predicate): boolean; + // @ts-ignore + public forEach(action: java.util.function$.Consumer): void; + /** + * Returns a {@link Spliterator} over the elements in this set in the order + * in which these elements were added. + *

The {@code Spliterator} reports {@link Spliterator#IMMUTABLE}, + * {@link Spliterator#DISTINCT}, {@link Spliterator#SIZED}, and + * {@link Spliterator#SUBSIZED}. + *

The spliterator provides a snapshot of the state of the set + * when the spliterator was constructed. No synchronization is needed while + * operating on the spliterator. + */ + // @ts-ignore + public spliterator(): java.util.Spliterator; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.CountDownLatch.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.CountDownLatch.d.ts new file mode 100644 index 00000000..83deb7d8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.CountDownLatch.d.ts @@ -0,0 +1,92 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class CountDownLatch extends java.lang.Object { + /** + * Constructs a {@code CountDownLatch} initialized with the given count. + */ + // @ts-ignore + constructor(count: number) + /** + * Causes the current thread to wait until the latch has counted down to + * zero, unless the thread is {@linkplain Thread#interrupt interrupted}. + *

If the current count is zero then this method returns immediately. + *

If the current count is greater than zero then the current + * thread becomes disabled for thread scheduling purposes and lies + * dormant until one of two things happen: + *

    + *
  • The count reaches zero due to invocations of the + * {@link #countDown} method; or + *
  • Some other thread {@linkplain Thread#interrupt interrupts} + * the current thread. + *
+ *

If the current thread: + *

    + *
  • has its interrupted status set on entry to this method; or + *
  • is {@linkplain Thread#interrupt interrupted} while waiting, + *
+ * then {@link InterruptedException} is thrown and the current thread's + * interrupted status is cleared. + */ + // @ts-ignore + public await(): void; + /** + * Causes the current thread to wait until the latch has counted down to + * zero, unless the thread is {@linkplain Thread#interrupt interrupted}, + * or the specified waiting time elapses. + *

If the current count is zero then this method returns immediately + * with the value {@code true}. + *

If the current count is greater than zero then the current + * thread becomes disabled for thread scheduling purposes and lies + * dormant until one of three things happen: + *

    + *
  • The count reaches zero due to invocations of the + * {@link #countDown} method; or + *
  • Some other thread {@linkplain Thread#interrupt interrupts} + * the current thread; or + *
  • The specified waiting time elapses. + *
+ *

If the count reaches zero then the method returns with the + * value {@code true}. + *

If the current thread: + *

    + *
  • has its interrupted status set on entry to this method; or + *
  • is {@linkplain Thread#interrupt interrupted} while waiting, + *
+ * then {@link InterruptedException} is thrown and the current thread's + * interrupted status is cleared. + *

If the specified waiting time elapses then the value {@code false} + * is returned. If the time is less than or equal to zero, the method + * will not wait at all. + */ + // @ts-ignore + public await(timeout: number, unit: java.util.concurrent.TimeUnit): boolean; + /** + * Decrements the count of the latch, releasing all waiting threads if + * the count reaches zero. + *

If the current count is greater than zero then it is decremented. + * If the new count is zero then all waiting threads are re-enabled for + * thread scheduling purposes. + *

If the current count equals zero then nothing happens. + */ + // @ts-ignore + public countDown(): void; + /** + * Returns the current count. + *

This method is typically used for debugging and testing purposes. + */ + // @ts-ignore + public getCount(): number; + /** + * Returns a string identifying this latch, as well as its state. + * The state, in brackets, includes the String {@code "Count ="} + * followed by the current count. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.CountedCompleter.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.CountedCompleter.d.ts new file mode 100644 index 00000000..ed86c3fe --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.CountedCompleter.d.ts @@ -0,0 +1,192 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + abstract class CountedCompleter extends java.util.concurrent.ForkJoinTask { + /** + * Creates a new CountedCompleter with the given completer + * and initial pending count. + */ + // @ts-ignore + constructor(completer: java.util.concurrent.CountedCompleter, initialPendingCount: number) + /** + * Creates a new CountedCompleter with the given completer + * and an initial pending count of zero. + */ + // @ts-ignore + constructor(completer: java.util.concurrent.CountedCompleter) + /** + * Creates a new CountedCompleter with no completer + * and an initial pending count of zero. + */ + // @ts-ignore + constructor() + /** + * The main computation performed by this task. + */ + // @ts-ignore + public abstract compute(): void; + /** + * Performs an action when method {@link #tryComplete} is invoked + * and the pending count is zero, or when the unconditional + * method {@link #complete} is invoked. By default, this method + * does nothing. You can distinguish cases by checking the + * identity of the given caller argument. If not equal to {@code + * this}, then it is typically a subtask that may contain results + * (and/or links to other results) to combine. + */ + // @ts-ignore + public onCompletion(caller: java.util.concurrent.CountedCompleter): void; + /** + * Performs an action when method {@link + * #completeExceptionally(Throwable)} is invoked or method {@link + * #compute} throws an exception, and this task has not already + * otherwise completed normally. On entry to this method, this task + * {@link ForkJoinTask#isCompletedAbnormally}. The return value + * of this method controls further propagation: If {@code true} + * and this task has a completer that has not completed, then that + * completer is also completed exceptionally, with the same + * exception as this completer. The default implementation of + * this method does nothing except return {@code true}. + */ + // @ts-ignore + public onExceptionalCompletion(ex: java.lang.Throwable, caller: java.util.concurrent.CountedCompleter): boolean; + /** + * Returns the completer established in this task's constructor, + * or {@code null} if none. + */ + // @ts-ignore + public getCompleter(): java.util.concurrent.CountedCompleter; + /** + * Returns the current pending count. + */ + // @ts-ignore + public getPendingCount(): number; + /** + * Sets the pending count to the given value. + */ + // @ts-ignore + public setPendingCount(count: number): void; + /** + * Adds (atomically) the given value to the pending count. + */ + // @ts-ignore + public addToPendingCount(delta: number): void; + /** + * Sets (atomically) the pending count to the given count only if + * it currently holds the given expected value. + */ + // @ts-ignore + public compareAndSetPendingCount(expected: number, count: number): boolean; + /** + * If the pending count is nonzero, (atomically) decrements it. + */ + // @ts-ignore + public decrementPendingCountUnlessZero(): number; + /** + * Returns the root of the current computation; i.e., this + * task if it has no completer, else its completer's root. + */ + // @ts-ignore + public getRoot(): java.util.concurrent.CountedCompleter; + /** + * If the pending count is nonzero, decrements the count; + * otherwise invokes {@link #onCompletion(CountedCompleter)} + * and then similarly tries to complete this task's completer, + * if one exists, else marks this task as complete. + */ + // @ts-ignore + public tryComplete(): void; + /** + * Equivalent to {@link #tryComplete} but does not invoke {@link + * #onCompletion(CountedCompleter)} along the completion path: + * If the pending count is nonzero, decrements the count; + * otherwise, similarly tries to complete this task's completer, if + * one exists, else marks this task as complete. This method may be + * useful in cases where {@code onCompletion} should not, or need + * not, be invoked for each completer in a computation. + */ + // @ts-ignore + public propagateCompletion(): void; + /** + * Regardless of pending count, invokes + * {@link #onCompletion(CountedCompleter)}, marks this task as + * complete and further triggers {@link #tryComplete} on this + * task's completer, if one exists. The given rawResult is + * used as an argument to {@link #setRawResult} before invoking + * {@link #onCompletion(CountedCompleter)} or marking this task + * as complete; its value is meaningful only for classes + * overriding {@code setRawResult}. This method does not modify + * the pending count. + *

This method may be useful when forcing completion as soon as + * any one (versus all) of several subtask results are obtained. + * However, in the common (and recommended) case in which {@code + * setRawResult} is not overridden, this effect can be obtained + * more simply using {@code quietlyCompleteRoot();}. + */ + // @ts-ignore + public complete(rawResult: java.lang.Object): void; + /** + * If this task's pending count is zero, returns this task; + * otherwise decrements its pending count and returns {@code + * null}. This method is designed to be used with {@link + * #nextComplete} in completion traversal loops. + */ + // @ts-ignore + public firstComplete(): java.util.concurrent.CountedCompleter; + /** + * If this task does not have a completer, invokes {@link + * ForkJoinTask#quietlyComplete} and returns {@code null}. Or, if + * the completer's pending count is non-zero, decrements that + * pending count and returns {@code null}. Otherwise, returns the + * completer. This method can be used as part of a completion + * traversal loop for homogeneous task hierarchies: + *

 {@code
+                 * for (CountedCompleter c = firstComplete();
+                 * c != null;
+                 * c = c.nextComplete()) {
+                 * // ... process c ...
+                 * }}
+ */ + // @ts-ignore + public nextComplete(): java.util.concurrent.CountedCompleter; + /** + * Equivalent to {@code getRoot().quietlyComplete()}. + */ + // @ts-ignore + public quietlyCompleteRoot(): void; + /** + * If this task has not completed, attempts to process at most the + * given number of other unprocessed tasks for which this task is + * on the completion path, if any are known to exist. + */ + // @ts-ignore + public helpComplete(maxTasks: number): void; + /** + * Implements execution conventions for CountedCompleters. + */ + // @ts-ignore + protected exec(): boolean; + /** + * Returns the result of the computation. By default + * returns {@code null}, which is appropriate for {@code Void} + * actions, but in other cases should be overridden, almost + * always to return a field or function of a field that + * holds the result upon completion. + */ + // @ts-ignore + public getRawResult(): java.lang.Object; + /** + * A method that result-bearing CountedCompleters may optionally + * use to help maintain result data. By default, does nothing. + * Overrides are not recommended. However, if this method is + * overridden to update existing objects or fields, then it must + * in general be defined to be thread-safe. + */ + // @ts-ignore + protected setRawResult(t: java.lang.Object): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.CyclicBarrier.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.CyclicBarrier.d.ts new file mode 100644 index 00000000..f387db27 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.CyclicBarrier.d.ts @@ -0,0 +1,136 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class CyclicBarrier extends java.lang.Object { + /** + * Creates a new {@code CyclicBarrier} that will trip when the + * given number of parties (threads) are waiting upon it, and which + * will execute the given barrier action when the barrier is tripped, + * performed by the last thread entering the barrier. + */ + // @ts-ignore + constructor(parties: number, barrierAction: java.lang.Runnable) + /** + * Creates a new {@code CyclicBarrier} that will trip when the + * given number of parties (threads) are waiting upon it, and + * does not perform a predefined action when the barrier is tripped. + */ + // @ts-ignore + constructor(parties: number) + /** + * Returns the number of parties required to trip this barrier. + */ + // @ts-ignore + public getParties(): number; + /** + * Waits until all {@linkplain #getParties parties} have invoked + * {@code await} on this barrier. + *

If the current thread is not the last to arrive then it is + * disabled for thread scheduling purposes and lies dormant until + * one of the following things happens: + *

    + *
  • The last thread arrives; or + *
  • Some other thread {@linkplain Thread#interrupt interrupts} + * the current thread; or + *
  • Some other thread {@linkplain Thread#interrupt interrupts} + * one of the other waiting threads; or + *
  • Some other thread times out while waiting for barrier; or + *
  • Some other thread invokes {@link #reset} on this barrier. + *
+ *

If the current thread: + *

    + *
  • has its interrupted status set on entry to this method; or + *
  • is {@linkplain Thread#interrupt interrupted} while waiting + *
+ * then {@link InterruptedException} is thrown and the current thread's + * interrupted status is cleared. + *

If the barrier is {@link #reset} while any thread is waiting, + * or if the barrier {@linkplain #isBroken is broken} when + * {@code await} is invoked, or while any thread is waiting, then + * {@link BrokenBarrierException} is thrown. + *

If any thread is {@linkplain Thread#interrupt interrupted} while waiting, + * then all other waiting threads will throw + * {@link BrokenBarrierException} and the barrier is placed in the broken + * state. + *

If the current thread is the last thread to arrive, and a + * non-null barrier action was supplied in the constructor, then the + * current thread runs the action before allowing the other threads to + * continue. + * If an exception occurs during the barrier action then that exception + * will be propagated in the current thread and the barrier is placed in + * the broken state. + */ + // @ts-ignore + public await(): number; + /** + * Waits until all {@linkplain #getParties parties} have invoked + * {@code await} on this barrier, or the specified waiting time elapses. + *

If the current thread is not the last to arrive then it is + * disabled for thread scheduling purposes and lies dormant until + * one of the following things happens: + *

    + *
  • The last thread arrives; or + *
  • The specified timeout elapses; or + *
  • Some other thread {@linkplain Thread#interrupt interrupts} + * the current thread; or + *
  • Some other thread {@linkplain Thread#interrupt interrupts} + * one of the other waiting threads; or + *
  • Some other thread times out while waiting for barrier; or + *
  • Some other thread invokes {@link #reset} on this barrier. + *
+ *

If the current thread: + *

    + *
  • has its interrupted status set on entry to this method; or + *
  • is {@linkplain Thread#interrupt interrupted} while waiting + *
+ * then {@link InterruptedException} is thrown and the current thread's + * interrupted status is cleared. + *

If the specified waiting time elapses then {@link TimeoutException} + * is thrown. If the time is less than or equal to zero, the + * method will not wait at all. + *

If the barrier is {@link #reset} while any thread is waiting, + * or if the barrier {@linkplain #isBroken is broken} when + * {@code await} is invoked, or while any thread is waiting, then + * {@link BrokenBarrierException} is thrown. + *

If any thread is {@linkplain Thread#interrupt interrupted} while + * waiting, then all other waiting threads will throw {@link + * BrokenBarrierException} and the barrier is placed in the broken + * state. + *

If the current thread is the last thread to arrive, and a + * non-null barrier action was supplied in the constructor, then the + * current thread runs the action before allowing the other threads to + * continue. + * If an exception occurs during the barrier action then that exception + * will be propagated in the current thread and the barrier is placed in + * the broken state. + */ + // @ts-ignore + public await(timeout: number, unit: java.util.concurrent.TimeUnit): number; + /** + * Queries if this barrier is in a broken state. + */ + // @ts-ignore + public isBroken(): boolean; + /** + * Resets the barrier to its initial state. If any parties are + * currently waiting at the barrier, they will return with a + * {@link BrokenBarrierException}. Note that resets after + * a breakage has occurred for other reasons can be complicated to + * carry out; threads need to re-synchronize in some other way, + * and choose one to perform the reset. It may be preferable to + * instead create a new barrier for subsequent use. + */ + // @ts-ignore + public reset(): void; + /** + * Returns the number of parties currently waiting at the barrier. + * This method is primarily useful for debugging and assertions. + */ + // @ts-ignore + public getNumberWaiting(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.DelayQueue.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.DelayQueue.d.ts new file mode 100644 index 00000000..49a9f1ad --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.DelayQueue.d.ts @@ -0,0 +1,140 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class DelayQueue extends java.util.AbstractQueue { + /** + * Creates a new {@code DelayQueue} that is initially empty. + */ + // @ts-ignore + constructor() + /** + * Creates a {@code DelayQueue} initially containing the elements of the + * given collection of {@link Delayed} instances. + */ + // @ts-ignore + constructor(c: java.util.Collection) + /** + * Inserts the specified element into this delay queue. + */ + // @ts-ignore + public add(e: java.util.concurrent.Delayed): boolean; + /** + * Inserts the specified element into this delay queue. + */ + // @ts-ignore + public offer(e: java.util.concurrent.Delayed): boolean; + /** + * Inserts the specified element into this delay queue. As the queue is + * unbounded this method will never block. + */ + // @ts-ignore + public put(e: java.util.concurrent.Delayed): void; + /** + * Inserts the specified element into this delay queue. As the queue is + * unbounded this method will never block. + */ + // @ts-ignore + public offer(e: java.util.concurrent.Delayed, timeout: number, unit: java.util.concurrent.TimeUnit): boolean; + /** + * Retrieves and removes the head of this queue, or returns {@code null} + * if this queue has no elements with an expired delay. + */ + // @ts-ignore + public poll(): java.util.concurrent.Delayed; + /** + * Retrieves and removes the head of this queue, waiting if necessary + * until an element with an expired delay is available on this queue. + */ + // @ts-ignore + public take(): java.util.concurrent.Delayed; + /** + * Retrieves and removes the head of this queue, waiting if necessary + * until an element with an expired delay is available on this queue, + * or the specified wait time expires. + */ + // @ts-ignore + public poll(timeout: number, unit: java.util.concurrent.TimeUnit): java.util.concurrent.Delayed; + /** + * Retrieves, but does not remove, the head of this queue, or + * returns {@code null} if this queue is empty. Unlike + * {@code poll}, if no expired elements are available in the queue, + * this method returns the element that will expire next, + * if one exists. + */ + // @ts-ignore + public peek(): java.util.concurrent.Delayed; + // @ts-ignore + public size(): number; + // @ts-ignore + public drainTo(c: java.util.Collection): number; + // @ts-ignore + public drainTo(c: java.util.Collection, maxElements: number): number; + /** + * Atomically removes all of the elements from this delay queue. + * The queue will be empty after this call returns. + * Elements with an unexpired delay are not waited for; they are + * simply discarded from the queue. + */ + // @ts-ignore + public clear(): void; + /** + * Always returns {@code Integer.MAX_VALUE} because + * a {@code DelayQueue} is not capacity constrained. + */ + // @ts-ignore + public remainingCapacity(): number; + /** + * Returns an array containing all of the elements in this queue. + * The returned array elements are in no particular order. + *

The returned array will be "safe" in that no references to it are + * maintained by this queue. (In other words, this method must allocate + * a new array). The caller is thus free to modify the returned array. + *

This method acts as bridge between array-based and collection-based + * APIs. + */ + // @ts-ignore + public toArray(): java.lang.Object[]; + /** + * Returns an array containing all of the elements in this queue; the + * runtime type of the returned array is that of the specified array. + * The returned array elements are in no particular order. + * If the queue fits in the specified array, it is returned therein. + * Otherwise, a new array is allocated with the runtime type of the + * specified array and the size of this queue. + *

If this queue fits in the specified array with room to spare + * (i.e., the array has more elements than this queue), the element in + * the array immediately following the end of the queue is set to + * {@code null}. + *

Like the {@link #toArray()} method, this method acts as bridge between + * array-based and collection-based APIs. Further, this method allows + * precise control over the runtime type of the output array, and may, + * under certain circumstances, be used to save allocation costs. + *

The following code can be used to dump a delay queue into a newly + * allocated array of {@code Delayed}: + *

 {@code Delayed[] a = q.toArray(new Delayed[0]);}
+ * Note that {@code toArray(new Object[0])} is identical in function to + * {@code toArray()}. + */ + // @ts-ignore + public toArray(a: java.lang.Object): java.lang.Object[]; + /** + * Removes a single instance of the specified element from this + * queue, if it is present, whether or not it has expired. + */ + // @ts-ignore + public remove(o: java.lang.Object): boolean; + /** + * Returns an iterator over all the elements (both expired and + * unexpired) in this queue. The iterator does not return the + * elements in any particular order. + *

The returned iterator is + * weakly consistent. + */ + // @ts-ignore + public iterator(): java.util.Iterator; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.Delayed.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.Delayed.d.ts new file mode 100644 index 00000000..7df4d771 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.Delayed.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + interface Delayed { + /** + * Returns the remaining delay associated with this object, in the + * given time unit. + */ + // @ts-ignore + getDelay(unit: java.util.concurrent.TimeUnit): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.Exchanger.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.Exchanger.d.ts new file mode 100644 index 00000000..70362116 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.Exchanger.d.ts @@ -0,0 +1,75 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class Exchanger extends java.lang.Object { + /** + * Creates a new Exchanger. + */ + // @ts-ignore + constructor() + /** + * Waits for another thread to arrive at this exchange point (unless + * the current thread is {@linkplain Thread#interrupt interrupted}), + * and then transfers the given object to it, receiving its object + * in return. + *

If another thread is already waiting at the exchange point then + * it is resumed for thread scheduling purposes and receives the object + * passed in by the current thread. The current thread returns immediately, + * receiving the object passed to the exchange by that other thread. + *

If no other thread is already waiting at the exchange then the + * current thread is disabled for thread scheduling purposes and lies + * dormant until one of two things happens: + *

    + *
  • Some other thread enters the exchange; or + *
  • Some other thread {@linkplain Thread#interrupt interrupts} + * the current thread. + *
+ *

If the current thread: + *

    + *
  • has its interrupted status set on entry to this method; or + *
  • is {@linkplain Thread#interrupt interrupted} while waiting + * for the exchange, + *
+ * then {@link InterruptedException} is thrown and the current thread's + * interrupted status is cleared. + */ + // @ts-ignore + public exchange(x: java.lang.Object): java.lang.Object; + /** + * Waits for another thread to arrive at this exchange point (unless + * the current thread is {@linkplain Thread#interrupt interrupted} or + * the specified waiting time elapses), and then transfers the given + * object to it, receiving its object in return. + *

If another thread is already waiting at the exchange point then + * it is resumed for thread scheduling purposes and receives the object + * passed in by the current thread. The current thread returns immediately, + * receiving the object passed to the exchange by that other thread. + *

If no other thread is already waiting at the exchange then the + * current thread is disabled for thread scheduling purposes and lies + * dormant until one of three things happens: + *

    + *
  • Some other thread enters the exchange; or + *
  • Some other thread {@linkplain Thread#interrupt interrupts} + * the current thread; or + *
  • The specified waiting time elapses. + *
+ *

If the current thread: + *

    + *
  • has its interrupted status set on entry to this method; or + *
  • is {@linkplain Thread#interrupt interrupted} while waiting + * for the exchange, + *
+ * then {@link InterruptedException} is thrown and the current thread's + * interrupted status is cleared. + *

If the specified waiting time elapses then {@link + * TimeoutException} is thrown. If the time is less than or equal + * to zero, the method will not wait at all. + */ + // @ts-ignore + public exchange(x: java.lang.Object, timeout: number, unit: java.util.concurrent.TimeUnit): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.ExecutionException.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.ExecutionException.d.ts new file mode 100644 index 00000000..2ada004f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.ExecutionException.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class ExecutionException extends java.lang.Exception { + /** + * Constructs an {@code ExecutionException} with no detail message. + * The cause is not initialized, and may subsequently be + * initialized by a call to {@link #initCause(Throwable) initCause}. + */ + // @ts-ignore + constructor() + /** + * Constructs an {@code ExecutionException} with the specified detail + * message. The cause is not initialized, and may subsequently be + * initialized by a call to {@link #initCause(Throwable) initCause}. + */ + // @ts-ignore + constructor(message: string) + /** + * Constructs an {@code ExecutionException} with the specified detail + * message and cause. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Constructs an {@code ExecutionException} with the specified cause. + * The detail message is set to {@code (cause == null ? null : + * cause.toString())} (which typically contains the class and + * detail message of {@code cause}). + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.Executor.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.Executor.d.ts new file mode 100644 index 00000000..066d28d5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.Executor.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + interface Executor { + /** + * Executes the given command at some time in the future. The command + * may execute in a new thread, in a pooled thread, or in the calling + * thread, at the discretion of the {@code Executor} implementation. + */ + // @ts-ignore + execute(command: java.lang.Runnable): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.ExecutorCompletionService.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.ExecutorCompletionService.d.ts new file mode 100644 index 00000000..8d0e0f9b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.ExecutorCompletionService.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class ExecutorCompletionService extends java.lang.Object { + /** + * Creates an ExecutorCompletionService using the supplied + * executor for base task execution and a + * {@link LinkedBlockingQueue} as a completion queue. + */ + // @ts-ignore + constructor(executor: java.util.concurrent.Executor) + /** + * Creates an ExecutorCompletionService using the supplied + * executor for base task execution and the supplied queue as its + * completion queue. + */ + // @ts-ignore + constructor(executor: java.util.concurrent.Executor, completionQueue: java.util.concurrent.BlockingQueue) + // @ts-ignore + public submit(task: java.util.concurrent.Callable): java.util.concurrent.Future; + // @ts-ignore + public submit(task: java.lang.Runnable, result: java.lang.Object): java.util.concurrent.Future; + // @ts-ignore + public take(): java.util.concurrent.Future; + // @ts-ignore + public poll(): java.util.concurrent.Future; + // @ts-ignore + public poll(timeout: number, unit: java.util.concurrent.TimeUnit): java.util.concurrent.Future; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.ExecutorService.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.ExecutorService.d.ts new file mode 100644 index 00000000..951d2b83 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.ExecutorService.d.ts @@ -0,0 +1,130 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + interface ExecutorService { + /** + * Initiates an orderly shutdown in which previously submitted + * tasks are executed, but no new tasks will be accepted. + * Invocation has no additional effect if already shut down. + *

This method does not wait for previously submitted tasks to + * complete execution. Use {@link #awaitTermination awaitTermination} + * to do that. + */ + // @ts-ignore + shutdown(): void; + /** + * Attempts to stop all actively executing tasks, halts the + * processing of waiting tasks, and returns a list of the tasks + * that were awaiting execution. + *

This method does not wait for actively executing tasks to + * terminate. Use {@link #awaitTermination awaitTermination} to + * do that. + *

There are no guarantees beyond best-effort attempts to stop + * processing actively executing tasks. For example, typical + * implementations will cancel via {@link Thread#interrupt}, so any + * task that fails to respond to interrupts may never terminate. + */ + // @ts-ignore + shutdownNow(): java.util.List; + /** + * Returns {@code true} if this executor has been shut down. + */ + // @ts-ignore + isShutdown(): boolean; + /** + * Returns {@code true} if all tasks have completed following shut down. + * Note that {@code isTerminated} is never {@code true} unless + * either {@code shutdown} or {@code shutdownNow} was called first. + */ + // @ts-ignore + isTerminated(): boolean; + /** + * Blocks until all tasks have completed execution after a shutdown + * request, or the timeout occurs, or the current thread is + * interrupted, whichever happens first. + */ + // @ts-ignore + awaitTermination(timeout: number, unit: java.util.concurrent.TimeUnit): boolean; + /** + * Submits a value-returning task for execution and returns a + * Future representing the pending results of the task. The + * Future's {@code get} method will return the task's result upon + * successful completion. + *

+ * If you would like to immediately block waiting + * for a task, you can use constructions of the form + * {@code result = exec.submit(aCallable).get();} + *

Note: The {@link Executors} class includes a set of methods + * that can convert some other common closure-like objects, + * for example, {@link java.security.PrivilegedAction} to + * {@link Callable} form so they can be submitted. + */ + // @ts-ignore + submit(task: java.util.concurrent.Callable): java.util.concurrent.Future; + /** + * Submits a Runnable task for execution and returns a Future + * representing that task. The Future's {@code get} method will + * return the given result upon successful completion. + */ + // @ts-ignore + submit(task: java.lang.Runnable, result: java.lang.Object): java.util.concurrent.Future; + /** + * Submits a Runnable task for execution and returns a Future + * representing that task. The Future's {@code get} method will + * return {@code null} upon successful completion. + */ + // @ts-ignore + submit(task: java.lang.Runnable): java.util.concurrent.Future; + /** + * Executes the given tasks, returning a list of Futures holding + * their status and results when all complete. + * {@link Future#isDone} is {@code true} for each + * element of the returned list. + * Note that a completed task could have + * terminated either normally or by throwing an exception. + * The results of this method are undefined if the given + * collection is modified while this operation is in progress. + */ + // @ts-ignore + invokeAll(tasks: java.util.Collection): java.util.List; + /** + * Executes the given tasks, returning a list of Futures holding + * their status and results + * when all complete or the timeout expires, whichever happens first. + * {@link Future#isDone} is {@code true} for each + * element of the returned list. + * Upon return, tasks that have not completed are cancelled. + * Note that a completed task could have + * terminated either normally or by throwing an exception. + * The results of this method are undefined if the given + * collection is modified while this operation is in progress. + */ + // @ts-ignore + invokeAll(tasks: java.util.Collection, timeout: number, unit: java.util.concurrent.TimeUnit): java.util.List; + /** + * Executes the given tasks, returning the result + * of one that has completed successfully (i.e., without throwing + * an exception), if any do. Upon normal or exceptional return, + * tasks that have not completed are cancelled. + * The results of this method are undefined if the given + * collection is modified while this operation is in progress. + */ + // @ts-ignore + invokeAny(tasks: java.util.Collection): java.lang.Object; + /** + * Executes the given tasks, returning the result + * of one that has completed successfully (i.e., without throwing + * an exception), if any do before the given timeout elapses. + * Upon normal or exceptional return, tasks that have not + * completed are cancelled. + * The results of this method are undefined if the given + * collection is modified while this operation is in progress. + */ + // @ts-ignore + invokeAny(tasks: java.util.Collection, timeout: number, unit: java.util.concurrent.TimeUnit): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.Executors.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.Executors.d.ts new file mode 100644 index 00000000..66388b28 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.Executors.d.ts @@ -0,0 +1,261 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class Executors extends java.lang.Object { + /** + * Creates a thread pool that reuses a fixed number of threads + * operating off a shared unbounded queue. At any point, at most + * {@code nThreads} threads will be active processing tasks. + * If additional tasks are submitted when all threads are active, + * they will wait in the queue until a thread is available. + * If any thread terminates due to a failure during execution + * prior to shutdown, a new one will take its place if needed to + * execute subsequent tasks. The threads in the pool will exist + * until it is explicitly {@link ExecutorService#shutdown shutdown}. + */ + // @ts-ignore + public static newFixedThreadPool(nThreads: number): java.util.concurrent.ExecutorService; + /** + * Creates a thread pool that maintains enough threads to support + * the given parallelism level, and may use multiple queues to + * reduce contention. The parallelism level corresponds to the + * maximum number of threads actively engaged in, or available to + * engage in, task processing. The actual number of threads may + * grow and shrink dynamically. A work-stealing pool makes no + * guarantees about the order in which submitted tasks are + * executed. + */ + // @ts-ignore + public static newWorkStealingPool(parallelism: number): java.util.concurrent.ExecutorService; + /** + * Creates a work-stealing thread pool using all + * {@link Runtime#availableProcessors available processors} + * as its target parallelism level. + */ + // @ts-ignore + public static newWorkStealingPool(): java.util.concurrent.ExecutorService; + /** + * Creates a thread pool that reuses a fixed number of threads + * operating off a shared unbounded queue, using the provided + * ThreadFactory to create new threads when needed. At any point, + * at most {@code nThreads} threads will be active processing + * tasks. If additional tasks are submitted when all threads are + * active, they will wait in the queue until a thread is + * available. If any thread terminates due to a failure during + * execution prior to shutdown, a new one will take its place if + * needed to execute subsequent tasks. The threads in the pool will + * exist until it is explicitly {@link ExecutorService#shutdown + * shutdown}. + */ + // @ts-ignore + public static newFixedThreadPool(nThreads: number, threadFactory: java.util.concurrent.ThreadFactory): java.util.concurrent.ExecutorService; + /** + * Creates an Executor that uses a single worker thread operating + * off an unbounded queue. (Note however that if this single + * thread terminates due to a failure during execution prior to + * shutdown, a new one will take its place if needed to execute + * subsequent tasks.) Tasks are guaranteed to execute + * sequentially, and no more than one task will be active at any + * given time. Unlike the otherwise equivalent + * {@code newFixedThreadPool(1)} the returned executor is + * guaranteed not to be reconfigurable to use additional threads. + */ + // @ts-ignore + public static newSingleThreadExecutor(): java.util.concurrent.ExecutorService; + /** + * Creates an Executor that uses a single worker thread operating + * off an unbounded queue, and uses the provided ThreadFactory to + * create a new thread when needed. Unlike the otherwise + * equivalent {@code newFixedThreadPool(1, threadFactory)} the + * returned executor is guaranteed not to be reconfigurable to use + * additional threads. + */ + // @ts-ignore + public static newSingleThreadExecutor(threadFactory: java.util.concurrent.ThreadFactory): java.util.concurrent.ExecutorService; + /** + * Creates a thread pool that creates new threads as needed, but + * will reuse previously constructed threads when they are + * available. These pools will typically improve the performance + * of programs that execute many short-lived asynchronous tasks. + * Calls to {@code execute} will reuse previously constructed + * threads if available. If no existing thread is available, a new + * thread will be created and added to the pool. Threads that have + * not been used for sixty seconds are terminated and removed from + * the cache. Thus, a pool that remains idle for long enough will + * not consume any resources. Note that pools with similar + * properties but different details (for example, timeout parameters) + * may be created using {@link ThreadPoolExecutor} constructors. + */ + // @ts-ignore + public static newCachedThreadPool(): java.util.concurrent.ExecutorService; + /** + * Creates a thread pool that creates new threads as needed, but + * will reuse previously constructed threads when they are + * available, and uses the provided + * ThreadFactory to create new threads when needed. + */ + // @ts-ignore + public static newCachedThreadPool(threadFactory: java.util.concurrent.ThreadFactory): java.util.concurrent.ExecutorService; + /** + * Creates a single-threaded executor that can schedule commands + * to run after a given delay, or to execute periodically. + * (Note however that if this single + * thread terminates due to a failure during execution prior to + * shutdown, a new one will take its place if needed to execute + * subsequent tasks.) Tasks are guaranteed to execute + * sequentially, and no more than one task will be active at any + * given time. Unlike the otherwise equivalent + * {@code newScheduledThreadPool(1)} the returned executor is + * guaranteed not to be reconfigurable to use additional threads. + */ + // @ts-ignore + public static newSingleThreadScheduledExecutor(): java.util.concurrent.ScheduledExecutorService; + /** + * Creates a single-threaded executor that can schedule commands + * to run after a given delay, or to execute periodically. (Note + * however that if this single thread terminates due to a failure + * during execution prior to shutdown, a new one will take its + * place if needed to execute subsequent tasks.) Tasks are + * guaranteed to execute sequentially, and no more than one task + * will be active at any given time. Unlike the otherwise + * equivalent {@code newScheduledThreadPool(1, threadFactory)} + * the returned executor is guaranteed not to be reconfigurable to + * use additional threads. + */ + // @ts-ignore + public static newSingleThreadScheduledExecutor(threadFactory: java.util.concurrent.ThreadFactory): java.util.concurrent.ScheduledExecutorService; + /** + * Creates a thread pool that can schedule commands to run after a + * given delay, or to execute periodically. + */ + // @ts-ignore + public static newScheduledThreadPool(corePoolSize: number): java.util.concurrent.ScheduledExecutorService; + /** + * Creates a thread pool that can schedule commands to run after a + * given delay, or to execute periodically. + */ + // @ts-ignore + public static newScheduledThreadPool(corePoolSize: number, threadFactory: java.util.concurrent.ThreadFactory): java.util.concurrent.ScheduledExecutorService; + /** + * Returns an object that delegates all defined {@link + * ExecutorService} methods to the given executor, but not any + * other methods that might otherwise be accessible using + * casts. This provides a way to safely "freeze" configuration and + * disallow tuning of a given concrete implementation. + */ + // @ts-ignore + public static unconfigurableExecutorService(executor: java.util.concurrent.ExecutorService): java.util.concurrent.ExecutorService; + /** + * Returns an object that delegates all defined {@link + * ScheduledExecutorService} methods to the given executor, but + * not any other methods that might otherwise be accessible using + * casts. This provides a way to safely "freeze" configuration and + * disallow tuning of a given concrete implementation. + */ + // @ts-ignore + public static unconfigurableScheduledExecutorService(executor: java.util.concurrent.ScheduledExecutorService): java.util.concurrent.ScheduledExecutorService; + /** + * Returns a default thread factory used to create new threads. + * This factory creates all new threads used by an Executor in the + * same {@link ThreadGroup}. If there is a {@link + * java.lang.SecurityManager}, it uses the group of {@link + * System#getSecurityManager}, else the group of the thread + * invoking this {@code defaultThreadFactory} method. Each new + * thread is created as a non-daemon thread with priority set to + * the smaller of {@code Thread.NORM_PRIORITY} and the maximum + * priority permitted in the thread group. New threads have names + * accessible via {@link Thread#getName} of + * pool-N-thread-M, where N is the sequence + * number of this factory, and M is the sequence number + * of the thread created by this factory. + */ + // @ts-ignore + public static defaultThreadFactory(): java.util.concurrent.ThreadFactory; + /** + * Returns a thread factory used to create new threads that + * have the same permissions as the current thread. + * This factory creates threads with the same settings as {@link + * Executors#defaultThreadFactory}, additionally setting the + * AccessControlContext and contextClassLoader of new threads to + * be the same as the thread invoking this + * {@code privilegedThreadFactory} method. A new + * {@code privilegedThreadFactory} can be created within an + * {@link AccessController#doPrivileged AccessController.doPrivileged} + * action setting the current thread's access control context to + * create threads with the selected permission settings holding + * within that action. + *

Note that while tasks running within such threads will have + * the same access control and class loader settings as the + * current thread, they need not have the same {@link + * java.lang.ThreadLocal} or {@link + * java.lang.InheritableThreadLocal} values. If necessary, + * particular values of thread locals can be set or reset before + * any task runs in {@link ThreadPoolExecutor} subclasses using + * {@link ThreadPoolExecutor#beforeExecute(Thread, Runnable)}. + * Also, if it is necessary to initialize worker threads to have + * the same InheritableThreadLocal settings as some other + * designated thread, you can create a custom ThreadFactory in + * which that thread waits for and services requests to create + * others that will inherit its values. + */ + // @ts-ignore + public static privilegedThreadFactory(): java.util.concurrent.ThreadFactory; + /** + * Returns a {@link Callable} object that, when + * called, runs the given task and returns the given result. This + * can be useful when applying methods requiring a + * {@code Callable} to an otherwise resultless action. + */ + // @ts-ignore + public static callable(task: java.lang.Runnable, result: java.lang.Object): java.util.concurrent.Callable; + /** + * Returns a {@link Callable} object that, when + * called, runs the given task and returns {@code null}. + */ + // @ts-ignore + public static callable(task: java.lang.Runnable): java.util.concurrent.Callable; + /** + * Returns a {@link Callable} object that, when + * called, runs the given privileged action and returns its result. + */ + // @ts-ignore + public static callable(action: java.security.PrivilegedAction): java.util.concurrent.Callable; + /** + * Returns a {@link Callable} object that, when + * called, runs the given privileged exception action and returns + * its result. + */ + // @ts-ignore + public static callable(action: java.security.PrivilegedExceptionAction): java.util.concurrent.Callable; + /** + * Returns a {@link Callable} object that will, when called, + * execute the given {@code callable} under the current access + * control context. This method should normally be invoked within + * an {@link AccessController#doPrivileged AccessController.doPrivileged} + * action to create callables that will, if possible, execute + * under the selected permission settings holding within that + * action; or if not possible, throw an associated {@link + * AccessControlException}. + */ + // @ts-ignore + public static privilegedCallable(callable: java.util.concurrent.Callable): java.util.concurrent.Callable; + /** + * Returns a {@link Callable} object that will, when called, + * execute the given {@code callable} under the current access + * control context, with the current context class loader as the + * context class loader. This method should normally be invoked + * within an + * {@link AccessController#doPrivileged AccessController.doPrivileged} + * action to create callables that will, if possible, execute + * under the selected permission settings holding within that + * action; or if not possible, throw an associated {@link + * AccessControlException}. + */ + // @ts-ignore + public static privilegedCallableUsingCurrentClassLoader(callable: java.util.concurrent.Callable): java.util.concurrent.Callable; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory.d.ts new file mode 100644 index 00000000..d0c4cf40 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace ForkJoinPool { + // @ts-ignore + interface ForkJoinWorkerThreadFactory { + /** + * Returns a new worker thread operating in the given pool. + */ + // @ts-ignore + newThread(pool: java.util.concurrent.ForkJoinPool): java.util.concurrent.ForkJoinWorkerThread; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.ForkJoinPool.ManagedBlocker.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.ForkJoinPool.ManagedBlocker.d.ts new file mode 100644 index 00000000..4592167f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.ForkJoinPool.ManagedBlocker.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace ForkJoinPool { + // @ts-ignore + interface ManagedBlocker { + /** + * Possibly blocks the current thread, for example waiting for + * a lock or condition. + */ + // @ts-ignore + block(): boolean; + /** + * Returns {@code true} if blocking is unnecessary. + */ + // @ts-ignore + isReleasable(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.ForkJoinPool.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.ForkJoinPool.d.ts new file mode 100644 index 00000000..55b7edc3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.ForkJoinPool.d.ts @@ -0,0 +1,294 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class ForkJoinPool extends java.util.concurrent.AbstractExecutorService { + /** + * Creates a {@code ForkJoinPool} with parallelism equal to {@link + * java.lang.Runtime#availableProcessors}, using the {@linkplain + * #defaultForkJoinWorkerThreadFactory default thread factory}, + * no UncaughtExceptionHandler, and non-async LIFO processing mode. + */ + // @ts-ignore + constructor() + /** + * Creates a {@code ForkJoinPool} with the indicated parallelism + * level, the {@linkplain + * #defaultForkJoinWorkerThreadFactory default thread factory}, + * no UncaughtExceptionHandler, and non-async LIFO processing mode. + */ + // @ts-ignore + constructor(parallelism: number) + /** + * Creates a {@code ForkJoinPool} with the given parameters. + */ + // @ts-ignore + constructor(parallelism: number, factory: java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory, handler: java.lang.Thread.UncaughtExceptionHandler, asyncMode: boolean) + // @ts-ignore + public static defaultForkJoinWorkerThreadFactory: java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory; + /** + * Returns the common pool instance. This pool is statically + * constructed; its run state is unaffected by attempts to {@link + * #shutdown} or {@link #shutdownNow}. However this pool and any + * ongoing processing are automatically terminated upon program + * {@link System#exit}. Any program that relies on asynchronous + * task processing to complete before program termination should + * invoke {@code commonPool().}{@link #awaitQuiescence awaitQuiescence}, + * before exit. + */ + // @ts-ignore + public static commonPool(): java.util.concurrent.ForkJoinPool; + /** + * Performs the given task, returning its result upon completion. + * If the computation encounters an unchecked Exception or Error, + * it is rethrown as the outcome of this invocation. Rethrown + * exceptions behave in the same way as regular exceptions, but, + * when possible, contain stack traces (as displayed for example + * using {@code ex.printStackTrace()}) of both the current thread + * as well as the thread actually encountering the exception; + * minimally only the latter. + */ + // @ts-ignore + public invoke(task: java.util.concurrent.ForkJoinTask): java.lang.Object; + /** + * Arranges for (asynchronous) execution of the given task. + */ + // @ts-ignore + public execute(task: java.util.concurrent.ForkJoinTask): void; + // @ts-ignore + public execute(task: java.lang.Runnable): void; + /** + * Submits a ForkJoinTask for execution. + */ + // @ts-ignore + public submit(task: java.util.concurrent.ForkJoinTask): java.util.concurrent.ForkJoinTask; + // @ts-ignore + public submit(task: java.util.concurrent.Callable): java.util.concurrent.ForkJoinTask; + // @ts-ignore + public submit(task: java.lang.Runnable, result: java.lang.Object): java.util.concurrent.ForkJoinTask; + // @ts-ignore + public submit(task: java.lang.Runnable): java.util.concurrent.ForkJoinTask; + // @ts-ignore + public invokeAll(tasks: java.util.Collection): java.util.List; + /** + * Returns the factory used for constructing new workers. + */ + // @ts-ignore + public getFactory(): java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory; + /** + * Returns the handler for internal worker threads that terminate + * due to unrecoverable errors encountered while executing tasks. + */ + // @ts-ignore + public getUncaughtExceptionHandler(): java.lang.Thread.UncaughtExceptionHandler; + /** + * Returns the targeted parallelism level of this pool. + */ + // @ts-ignore + public getParallelism(): number; + /** + * Returns the targeted parallelism level of the common pool. + */ + // @ts-ignore + public static getCommonPoolParallelism(): number; + /** + * Returns the number of worker threads that have started but not + * yet terminated. The result returned by this method may differ + * from {@link #getParallelism} when threads are created to + * maintain parallelism when others are cooperatively blocked. + */ + // @ts-ignore + public getPoolSize(): number; + /** + * Returns {@code true} if this pool uses local first-in-first-out + * scheduling mode for forked tasks that are never joined. + */ + // @ts-ignore + public getAsyncMode(): boolean; + /** + * Returns an estimate of the number of worker threads that are + * not blocked waiting to join tasks or for other managed + * synchronization. This method may overestimate the + * number of running threads. + */ + // @ts-ignore + public getRunningThreadCount(): number; + /** + * Returns an estimate of the number of threads that are currently + * stealing or executing tasks. This method may overestimate the + * number of active threads. + */ + // @ts-ignore + public getActiveThreadCount(): number; + /** + * Returns {@code true} if all worker threads are currently idle. + * An idle worker is one that cannot obtain a task to execute + * because none are available to steal from other threads, and + * there are no pending submissions to the pool. This method is + * conservative; it might not return {@code true} immediately upon + * idleness of all threads, but will eventually become true if + * threads remain inactive. + */ + // @ts-ignore + public isQuiescent(): boolean; + /** + * Returns an estimate of the total number of tasks stolen from + * one thread's work queue by another. The reported value + * underestimates the actual total number of steals when the pool + * is not quiescent. This value may be useful for monitoring and + * tuning fork/join programs: in general, steal counts should be + * high enough to keep threads busy, but low enough to avoid + * overhead and contention across threads. + */ + // @ts-ignore + public getStealCount(): number; + /** + * Returns an estimate of the total number of tasks currently held + * in queues by worker threads (but not including tasks submitted + * to the pool that have not begun executing). This value is only + * an approximation, obtained by iterating across all threads in + * the pool. This method may be useful for tuning task + * granularities. + */ + // @ts-ignore + public getQueuedTaskCount(): number; + /** + * Returns an estimate of the number of tasks submitted to this + * pool that have not yet begun executing. This method may take + * time proportional to the number of submissions. + */ + // @ts-ignore + public getQueuedSubmissionCount(): number; + /** + * Returns {@code true} if there are any tasks submitted to this + * pool that have not yet begun executing. + */ + // @ts-ignore + public hasQueuedSubmissions(): boolean; + /** + * Removes and returns the next unexecuted submission if one is + * available. This method may be useful in extensions to this + * class that re-assign work in systems with multiple pools. + */ + // @ts-ignore + protected pollSubmission(): java.util.concurrent.ForkJoinTask; + /** + * Removes all available unexecuted submitted and forked tasks + * from scheduling queues and adds them to the given collection, + * without altering their execution status. These may include + * artificially generated or wrapped tasks. This method is + * designed to be invoked only when the pool is known to be + * quiescent. Invocations at other times may not remove all + * tasks. A failure encountered while attempting to add elements + * to collection {@code c} may result in elements being in + * neither, either or both collections when the associated + * exception is thrown. The behavior of this operation is + * undefined if the specified collection is modified while the + * operation is in progress. + */ + // @ts-ignore + protected drainTasksTo(c: java.util.Collection): number; + /** + * Returns a string identifying this pool, as well as its state, + * including indications of run state, parallelism level, and + * worker and task counts. + */ + // @ts-ignore + public toString(): string; + /** + * Possibly initiates an orderly shutdown in which previously + * submitted tasks are executed, but no new tasks will be + * accepted. Invocation has no effect on execution state if this + * is the {@link #commonPool()}, and no additional effect if + * already shut down. Tasks that are in the process of being + * submitted concurrently during the course of this method may or + * may not be rejected. + */ + // @ts-ignore + public shutdown(): void; + /** + * Possibly attempts to cancel and/or stop all tasks, and reject + * all subsequently submitted tasks. Invocation has no effect on + * execution state if this is the {@link #commonPool()}, and no + * additional effect if already shut down. Otherwise, tasks that + * are in the process of being submitted or executed concurrently + * during the course of this method may or may not be + * rejected. This method cancels both existing and unexecuted + * tasks, in order to permit termination in the presence of task + * dependencies. So the method always returns an empty list + * (unlike the case for some other Executors). + */ + // @ts-ignore + public shutdownNow(): java.util.List; + /** + * Returns {@code true} if all tasks have completed following shut down. + */ + // @ts-ignore + public isTerminated(): boolean; + /** + * Returns {@code true} if the process of termination has + * commenced but not yet completed. This method may be useful for + * debugging. A return of {@code true} reported a sufficient + * period after shutdown may indicate that submitted tasks have + * ignored or suppressed interruption, or are waiting for I/O, + * causing this executor not to properly terminate. (See the + * advisory notes for class {@link ForkJoinTask} stating that + * tasks should not normally entail blocking operations. But if + * they do, they must abort them on interrupt.) + */ + // @ts-ignore + public isTerminating(): boolean; + /** + * Returns {@code true} if this pool has been shut down. + */ + // @ts-ignore + public isShutdown(): boolean; + /** + * Blocks until all tasks have completed execution after a + * shutdown request, or the timeout occurs, or the current thread + * is interrupted, whichever happens first. Because the {@link + * #commonPool()} never terminates until program shutdown, when + * applied to the common pool, this method is equivalent to {@link + * #awaitQuiescence(long, TimeUnit)} but always returns {@code false}. + */ + // @ts-ignore + public awaitTermination(timeout: number, unit: java.util.concurrent.TimeUnit): boolean; + /** + * If called by a ForkJoinTask operating in this pool, equivalent + * in effect to {@link ForkJoinTask#helpQuiesce}. Otherwise, + * waits and/or attempts to assist performing tasks until this + * pool {@link #isQuiescent} or the indicated timeout elapses. + */ + // @ts-ignore + public awaitQuiescence(timeout: number, unit: java.util.concurrent.TimeUnit): boolean; + /** + * Runs the given possibly blocking task. When {@linkplain + * ForkJoinTask#inForkJoinPool() running in a ForkJoinPool}, this + * method possibly arranges for a spare thread to be activated if + * necessary to ensure sufficient parallelism while the current + * thread is blocked in {@link ManagedBlocker#block blocker.block()}. + *

This method repeatedly calls {@code blocker.isReleasable()} and + * {@code blocker.block()} until either method returns {@code true}. + * Every call to {@code blocker.block()} is preceded by a call to + * {@code blocker.isReleasable()} that returned {@code false}. + *

If not running in a ForkJoinPool, this method is + * behaviorally equivalent to + *

 {@code
+                 * while (!blocker.isReleasable())
+                 * if (blocker.block())
+                 * break;}
+ * If running in a ForkJoinPool, the pool may first be expanded to + * ensure sufficient parallelism available during the call to + * {@code blocker.block()}. + */ + // @ts-ignore + public static managedBlock(blocker: java.util.concurrent.ForkJoinPool.ManagedBlocker): void; + // @ts-ignore + protected newTaskFor(runnable: java.lang.Runnable, value: java.lang.Object): java.util.concurrent.RunnableFuture; + // @ts-ignore + protected newTaskFor(callable: java.util.concurrent.Callable): java.util.concurrent.RunnableFuture; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.ForkJoinTask.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.ForkJoinTask.d.ts new file mode 100644 index 00000000..9e623990 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.ForkJoinTask.d.ts @@ -0,0 +1,368 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + abstract class ForkJoinTask extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Arranges to asynchronously execute this task in the pool the + * current task is running in, if applicable, or using the {@link + * ForkJoinPool#commonPool()} if not {@link #inForkJoinPool}. While + * it is not necessarily enforced, it is a usage error to fork a + * task more than once unless it has completed and been + * reinitialized. Subsequent modifications to the state of this + * task or any data it operates on are not necessarily + * consistently observable by any thread other than the one + * executing it unless preceded by a call to {@link #join} or + * related methods, or a call to {@link #isDone} returning {@code + * true}. + */ + // @ts-ignore + public fork(): java.util.concurrent.ForkJoinTask; + /** + * Returns the result of the computation when it {@link #isDone is + * done}. This method differs from {@link #get()} in that + * abnormal completion results in {@code RuntimeException} or + * {@code Error}, not {@code ExecutionException}, and that + * interrupts of the calling thread do not cause the + * method to abruptly return by throwing {@code + * InterruptedException}. + */ + // @ts-ignore + public join(): java.lang.Object; + /** + * Commences performing this task, awaits its completion if + * necessary, and returns its result, or throws an (unchecked) + * {@code RuntimeException} or {@code Error} if the underlying + * computation did so. + */ + // @ts-ignore + public invoke(): java.lang.Object; + /** + * Forks the given tasks, returning when {@code isDone} holds for + * each task or an (unchecked) exception is encountered, in which + * case the exception is rethrown. If more than one task + * encounters an exception, then this method throws any one of + * these exceptions. If any task encounters an exception, the + * other may be cancelled. However, the execution status of + * individual tasks is not guaranteed upon exceptional return. The + * status of each task may be obtained using {@link + * #getException()} and related methods to check if they have been + * cancelled, completed normally or exceptionally, or left + * unprocessed. + */ + // @ts-ignore + public static invokeAll(t1: java.util.concurrent.ForkJoinTask, t2: java.util.concurrent.ForkJoinTask): void; + /** + * Forks the given tasks, returning when {@code isDone} holds for + * each task or an (unchecked) exception is encountered, in which + * case the exception is rethrown. If more than one task + * encounters an exception, then this method throws any one of + * these exceptions. If any task encounters an exception, others + * may be cancelled. However, the execution status of individual + * tasks is not guaranteed upon exceptional return. The status of + * each task may be obtained using {@link #getException()} and + * related methods to check if they have been cancelled, completed + * normally or exceptionally, or left unprocessed. + */ + // @ts-ignore + public static invokeAll(tasks: java.util.concurrent.ForkJoinTask): void; + /** + * Forks all tasks in the specified collection, returning when + * {@code isDone} holds for each task or an (unchecked) exception + * is encountered, in which case the exception is rethrown. If + * more than one task encounters an exception, then this method + * throws any one of these exceptions. If any task encounters an + * exception, others may be cancelled. However, the execution + * status of individual tasks is not guaranteed upon exceptional + * return. The status of each task may be obtained using {@link + * #getException()} and related methods to check if they have been + * cancelled, completed normally or exceptionally, or left + * unprocessed. + */ + // @ts-ignore + public static invokeAll(tasks: java.util.Collection): java.util.Collection; + /** + * Attempts to cancel execution of this task. This attempt will + * fail if the task has already completed or could not be + * cancelled for some other reason. If successful, and this task + * has not started when {@code cancel} is called, execution of + * this task is suppressed. After this method returns + * successfully, unless there is an intervening call to {@link + * #reinitialize}, subsequent calls to {@link #isCancelled}, + * {@link #isDone}, and {@code cancel} will return {@code true} + * and calls to {@link #join} and related methods will result in + * {@code CancellationException}. + *

This method may be overridden in subclasses, but if so, must + * still ensure that these properties hold. In particular, the + * {@code cancel} method itself must not throw exceptions. + *

This method is designed to be invoked by other + * tasks. To terminate the current task, you can just return or + * throw an unchecked exception from its computation method, or + * invoke {@link #completeExceptionally(Throwable)}. + */ + // @ts-ignore + public cancel(mayInterruptIfRunning: boolean): boolean; + // @ts-ignore + public isDone(): boolean; + // @ts-ignore + public isCancelled(): boolean; + /** + * Returns {@code true} if this task threw an exception or was cancelled. + */ + // @ts-ignore + public isCompletedAbnormally(): boolean; + /** + * Returns {@code true} if this task completed without throwing an + * exception and was not cancelled. + */ + // @ts-ignore + public isCompletedNormally(): boolean; + /** + * Returns the exception thrown by the base computation, or a + * {@code CancellationException} if cancelled, or {@code null} if + * none or if the method has not yet completed. + */ + // @ts-ignore + public getException(): java.lang.Throwable; + /** + * Completes this task abnormally, and if not already aborted or + * cancelled, causes it to throw the given exception upon + * {@code join} and related operations. This method may be used + * to induce exceptions in asynchronous tasks, or to force + * completion of tasks that would not otherwise complete. Its use + * in other situations is discouraged. This method is + * overridable, but overridden versions must invoke {@code super} + * implementation to maintain guarantees. + */ + // @ts-ignore + public completeExceptionally(ex: java.lang.Throwable): void; + /** + * Completes this task, and if not already aborted or cancelled, + * returning the given value as the result of subsequent + * invocations of {@code join} and related operations. This method + * may be used to provide results for asynchronous tasks, or to + * provide alternative handling for tasks that would not otherwise + * complete normally. Its use in other situations is + * discouraged. This method is overridable, but overridden + * versions must invoke {@code super} implementation to maintain + * guarantees. + */ + // @ts-ignore + public complete(value: java.lang.Object): void; + /** + * Completes this task normally without setting a value. The most + * recent value established by {@link #setRawResult} (or {@code + * null} by default) will be returned as the result of subsequent + * invocations of {@code join} and related operations. + */ + // @ts-ignore + public quietlyComplete(): void; + /** + * Waits if necessary for the computation to complete, and then + * retrieves its result. + */ + // @ts-ignore + public get(): java.lang.Object; + /** + * Waits if necessary for at most the given time for the computation + * to complete, and then retrieves its result, if available. + */ + // @ts-ignore + public get(timeout: number, unit: java.util.concurrent.TimeUnit): java.lang.Object; + /** + * Joins this task, without returning its result or throwing its + * exception. This method may be useful when processing + * collections of tasks when some have been cancelled or otherwise + * known to have aborted. + */ + // @ts-ignore + public quietlyJoin(): void; + /** + * Commences performing this task and awaits its completion if + * necessary, without returning its result or throwing its + * exception. + */ + // @ts-ignore + public quietlyInvoke(): void; + /** + * Possibly executes tasks until the pool hosting the current task + * {@link ForkJoinPool#isQuiescent is quiescent}. This method may + * be of use in designs in which many tasks are forked, but none + * are explicitly joined, instead executing them until all are + * processed. + */ + // @ts-ignore + public static helpQuiesce(): void; + /** + * Resets the internal bookkeeping state of this task, allowing a + * subsequent {@code fork}. This method allows repeated reuse of + * this task, but only if reuse occurs when this task has either + * never been forked, or has been forked, then completed and all + * outstanding joins of this task have also completed. Effects + * under any other usage conditions are not guaranteed. + * This method may be useful when executing + * pre-constructed trees of subtasks in loops. + *

Upon completion of this method, {@code isDone()} reports + * {@code false}, and {@code getException()} reports {@code + * null}. However, the value returned by {@code getRawResult} is + * unaffected. To clear this value, you can invoke {@code + * setRawResult(null)}. + */ + // @ts-ignore + public reinitialize(): void; + /** + * Returns the pool hosting the current task execution, or null + * if this task is executing outside of any ForkJoinPool. + */ + // @ts-ignore + public static getPool(): java.util.concurrent.ForkJoinPool; + /** + * Returns {@code true} if the current thread is a {@link + * ForkJoinWorkerThread} executing as a ForkJoinPool computation. + */ + // @ts-ignore + public static inForkJoinPool(): boolean; + /** + * Tries to unschedule this task for execution. This method will + * typically (but is not guaranteed to) succeed if this task is + * the most recently forked task by the current thread, and has + * not commenced executing in another thread. This method may be + * useful when arranging alternative local processing of tasks + * that could have been, but were not, stolen. + */ + // @ts-ignore + public tryUnfork(): boolean; + /** + * Returns an estimate of the number of tasks that have been + * forked by the current worker thread but not yet executed. This + * value may be useful for heuristic decisions about whether to + * fork other tasks. + */ + // @ts-ignore + public static getQueuedTaskCount(): number; + /** + * Returns an estimate of how many more locally queued tasks are + * held by the current worker thread than there are other worker + * threads that might steal them, or zero if this thread is not + * operating in a ForkJoinPool. This value may be useful for + * heuristic decisions about whether to fork other tasks. In many + * usages of ForkJoinTasks, at steady state, each worker should + * aim to maintain a small constant surplus (for example, 3) of + * tasks, and to process computations locally if this threshold is + * exceeded. + */ + // @ts-ignore + public static getSurplusQueuedTaskCount(): number; + /** + * Returns the result that would be returned by {@link #join}, even + * if this task completed abnormally, or {@code null} if this task + * is not known to have been completed. This method is designed + * to aid debugging, as well as to support extensions. Its use in + * any other context is discouraged. + */ + // @ts-ignore + public abstract getRawResult(): java.lang.Object; + /** + * Forces the given value to be returned as a result. This method + * is designed to support extensions, and should not in general be + * called otherwise. + */ + // @ts-ignore + protected abstract setRawResult(value: java.lang.Object): void; + /** + * Immediately performs the base action of this task and returns + * true if, upon return from this method, this task is guaranteed + * to have completed normally. This method may return false + * otherwise, to indicate that this task is not necessarily + * complete (or is not known to be complete), for example in + * asynchronous actions that require explicit invocations of + * completion methods. This method may also throw an (unchecked) + * exception to indicate abnormal exit. This method is designed to + * support extensions, and should not in general be called + * otherwise. + */ + // @ts-ignore + protected abstract exec(): boolean; + /** + * Returns, but does not unschedule or execute, a task queued by + * the current thread but not yet executed, if one is immediately + * available. There is no guarantee that this task will actually + * be polled or executed next. Conversely, this method may return + * null even if a task exists but cannot be accessed without + * contention with other threads. This method is designed + * primarily to support extensions, and is unlikely to be useful + * otherwise. + */ + // @ts-ignore + protected static peekNextLocalTask(): java.util.concurrent.ForkJoinTask; + /** + * Unschedules and returns, without executing, the next task + * queued by the current thread but not yet executed, if the + * current thread is operating in a ForkJoinPool. This method is + * designed primarily to support extensions, and is unlikely to be + * useful otherwise. + */ + // @ts-ignore + protected static pollNextLocalTask(): java.util.concurrent.ForkJoinTask; + /** + * If the current thread is operating in a ForkJoinPool, + * unschedules and returns, without executing, the next task + * queued by the current thread but not yet executed, if one is + * available, or if not available, a task that was forked by some + * other thread, if available. Availability may be transient, so a + * {@code null} result does not necessarily imply quiescence of + * the pool this task is operating in. This method is designed + * primarily to support extensions, and is unlikely to be useful + * otherwise. + */ + // @ts-ignore + protected static pollTask(): java.util.concurrent.ForkJoinTask; + /** + * Returns the tag for this task. + */ + // @ts-ignore + public getForkJoinTaskTag(): number; + /** + * Atomically sets the tag value for this task. + */ + // @ts-ignore + public setForkJoinTaskTag(tag: number): number; + /** + * Atomically conditionally sets the tag value for this task. + * Among other applications, tags can be used as visit markers + * in tasks operating on graphs, as in methods that check: {@code + * if (task.compareAndSetForkJoinTaskTag((short)0, (short)1))} + * before processing, otherwise exiting because the node has + * already been visited. + */ + // @ts-ignore + public compareAndSetForkJoinTaskTag(e: number, tag: number): boolean; + /** + * Returns a new {@code ForkJoinTask} that performs the {@code run} + * method of the given {@code Runnable} as its action, and returns + * a null result upon {@link #join}. + */ + // @ts-ignore + public static adapt(runnable: java.lang.Runnable): java.util.concurrent.ForkJoinTask; + /** + * Returns a new {@code ForkJoinTask} that performs the {@code run} + * method of the given {@code Runnable} as its action, and returns + * the given result upon {@link #join}. + */ + // @ts-ignore + public static adapt(runnable: java.lang.Runnable, result: java.lang.Object): java.util.concurrent.ForkJoinTask; + /** + * Returns a new {@code ForkJoinTask} that performs the {@code call} + * method of the given {@code Callable} as its action, and returns + * its result upon {@link #join}, translating any checked exceptions + * encountered into {@code RuntimeException}. + */ + // @ts-ignore + public static adapt(callable: java.util.concurrent.Callable): java.util.concurrent.ForkJoinTask; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.ForkJoinWorkerThread.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.ForkJoinWorkerThread.d.ts new file mode 100644 index 00000000..e59388b7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.ForkJoinWorkerThread.d.ts @@ -0,0 +1,55 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class ForkJoinWorkerThread extends java.lang.Thread { + /** + * Creates a ForkJoinWorkerThread operating in the given pool. + */ + // @ts-ignore + constructor(pool: java.util.concurrent.ForkJoinPool) + /** + * Returns the pool hosting this thread. + */ + // @ts-ignore + public getPool(): java.util.concurrent.ForkJoinPool; + /** + * Returns the unique index number of this thread in its pool. + * The returned value ranges from zero to the maximum number of + * threads (minus one) that may exist in the pool, and does not + * change during the lifetime of the thread. This method may be + * useful for applications that track status or collect results + * per-worker-thread rather than per-task. + */ + // @ts-ignore + public getPoolIndex(): number; + /** + * Initializes internal state after construction but before + * processing any tasks. If you override this method, you must + * invoke {@code super.onStart()} at the beginning of the method. + * Initialization requires care: Most fields must have legal + * default values, to ensure that attempted accesses from other + * threads work correctly even before this thread starts + * processing tasks. + */ + // @ts-ignore + protected onStart(): void; + /** + * Performs cleanup associated with termination of this worker + * thread. If you override this method, you must invoke + * {@code super.onTermination} at the end of the overridden method. + */ + // @ts-ignore + protected onTermination(exception: java.lang.Throwable): void; + /** + * This method is required to be public, but should never be + * called explicitly. It performs the main run loop to execute + * {@link ForkJoinTask}s. + */ + // @ts-ignore + public run(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.Future.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.Future.d.ts new file mode 100644 index 00000000..39f3fc69 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.Future.d.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + interface Future { + /** + * Attempts to cancel execution of this task. This attempt will + * fail if the task has already completed, has already been cancelled, + * or could not be cancelled for some other reason. If successful, + * and this task has not started when {@code cancel} is called, + * this task should never run. If the task has already started, + * then the {@code mayInterruptIfRunning} parameter determines + * whether the thread executing this task should be interrupted in + * an attempt to stop the task. + *

After this method returns, subsequent calls to {@link #isDone} will + * always return {@code true}. Subsequent calls to {@link #isCancelled} + * will always return {@code true} if this method returned {@code true}. + */ + // @ts-ignore + cancel(mayInterruptIfRunning: boolean): boolean; + /** + * Returns {@code true} if this task was cancelled before it completed + * normally. + */ + // @ts-ignore + isCancelled(): boolean; + /** + * Returns {@code true} if this task completed. + * Completion may be due to normal termination, an exception, or + * cancellation -- in all of these cases, this method will return + * {@code true}. + */ + // @ts-ignore + isDone(): boolean; + /** + * Waits if necessary for the computation to complete, and then + * retrieves its result. + */ + // @ts-ignore + get(): java.lang.Object; + /** + * Waits if necessary for at most the given time for the computation + * to complete, and then retrieves its result, if available. + */ + // @ts-ignore + get(timeout: number, unit: java.util.concurrent.TimeUnit): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.FutureTask.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.FutureTask.d.ts new file mode 100644 index 00000000..cefa4a2e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.FutureTask.d.ts @@ -0,0 +1,72 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class FutureTask extends java.lang.Object { + /** + * Creates a {@code FutureTask} that will, upon running, execute the + * given {@code Callable}. + */ + // @ts-ignore + constructor(callable: java.util.concurrent.Callable) + /** + * Creates a {@code FutureTask} that will, upon running, execute the + * given {@code Runnable}, and arrange that {@code get} will return the + * given result on successful completion. + */ + // @ts-ignore + constructor(runnable: java.lang.Runnable, result: java.lang.Object) + // @ts-ignore + public isCancelled(): boolean; + // @ts-ignore + public isDone(): boolean; + // @ts-ignore + public cancel(mayInterruptIfRunning: boolean): boolean; + // @ts-ignore + public get(): java.lang.Object; + // @ts-ignore + public get(timeout: number, unit: java.util.concurrent.TimeUnit): java.lang.Object; + /** + * Protected method invoked when this task transitions to state + * {@code isDone} (whether normally or via cancellation). The + * default implementation does nothing. Subclasses may override + * this method to invoke completion callbacks or perform + * bookkeeping. Note that you can query status inside the + * implementation of this method to determine whether this task + * has been cancelled. + */ + // @ts-ignore + protected done(): void; + /** + * Sets the result of this future to the given value unless + * this future has already been set or has been cancelled. + *

This method is invoked internally by the {@link #run} method + * upon successful completion of the computation. + */ + // @ts-ignore + protected set(v: java.lang.Object): void; + /** + * Causes this future to report an {@link ExecutionException} + * with the given throwable as its cause, unless this future has + * already been set or has been cancelled. + *

This method is invoked internally by the {@link #run} method + * upon failure of the computation. + */ + // @ts-ignore + protected setException(t: java.lang.Throwable): void; + // @ts-ignore + public run(): void; + /** + * Executes the computation without setting its result, and then + * resets this future to initial state, failing to do so if the + * computation encounters an exception or is cancelled. This is + * designed for use with tasks that intrinsically execute more + * than once. + */ + // @ts-ignore + protected runAndReset(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.LinkedBlockingDeque.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.LinkedBlockingDeque.d.ts new file mode 100644 index 00000000..c5e54910 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.LinkedBlockingDeque.d.ts @@ -0,0 +1,223 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class LinkedBlockingDeque extends java.util.AbstractQueue { + /** + * Creates a {@code LinkedBlockingDeque} with a capacity of + * {@link Integer#MAX_VALUE}. + */ + // @ts-ignore + constructor() + /** + * Creates a {@code LinkedBlockingDeque} with the given (fixed) capacity. + */ + // @ts-ignore + constructor(capacity: number) + /** + * Creates a {@code LinkedBlockingDeque} with a capacity of + * {@link Integer#MAX_VALUE}, initially containing the elements of + * the given collection, added in traversal order of the + * collection's iterator. + */ + // @ts-ignore + constructor(c: java.util.Collection) + // @ts-ignore + public addFirst(e: java.lang.Object): void; + // @ts-ignore + public addLast(e: java.lang.Object): void; + // @ts-ignore + public offerFirst(e: java.lang.Object): boolean; + // @ts-ignore + public offerLast(e: java.lang.Object): boolean; + // @ts-ignore + public putFirst(e: java.lang.Object): void; + // @ts-ignore + public putLast(e: java.lang.Object): void; + // @ts-ignore + public offerFirst(e: java.lang.Object, timeout: number, unit: java.util.concurrent.TimeUnit): boolean; + // @ts-ignore + public offerLast(e: java.lang.Object, timeout: number, unit: java.util.concurrent.TimeUnit): boolean; + // @ts-ignore + public removeFirst(): java.lang.Object; + // @ts-ignore + public removeLast(): java.lang.Object; + // @ts-ignore + public pollFirst(): java.lang.Object; + // @ts-ignore + public pollLast(): java.lang.Object; + // @ts-ignore + public takeFirst(): java.lang.Object; + // @ts-ignore + public takeLast(): java.lang.Object; + // @ts-ignore + public pollFirst(timeout: number, unit: java.util.concurrent.TimeUnit): java.lang.Object; + // @ts-ignore + public pollLast(timeout: number, unit: java.util.concurrent.TimeUnit): java.lang.Object; + // @ts-ignore + public getFirst(): java.lang.Object; + // @ts-ignore + public getLast(): java.lang.Object; + // @ts-ignore + public peekFirst(): java.lang.Object; + // @ts-ignore + public peekLast(): java.lang.Object; + // @ts-ignore + public removeFirstOccurrence(o: java.lang.Object): boolean; + // @ts-ignore + public removeLastOccurrence(o: java.lang.Object): boolean; + /** + * Inserts the specified element at the end of this deque unless it would + * violate capacity restrictions. When using a capacity-restricted deque, + * it is generally preferable to use method {@link #offer(Object) offer}. + *

This method is equivalent to {@link #addLast}. + */ + // @ts-ignore + public add(e: java.lang.Object): boolean; + // @ts-ignore + public offer(e: java.lang.Object): boolean; + // @ts-ignore + public put(e: java.lang.Object): void; + // @ts-ignore + public offer(e: java.lang.Object, timeout: number, unit: java.util.concurrent.TimeUnit): boolean; + /** + * Retrieves and removes the head of the queue represented by this deque. + * This method differs from {@link #poll poll} only in that it throws an + * exception if this deque is empty. + *

This method is equivalent to {@link #removeFirst() removeFirst}. + */ + // @ts-ignore + public remove(): java.lang.Object; + // @ts-ignore + public poll(): java.lang.Object; + // @ts-ignore + public take(): java.lang.Object; + // @ts-ignore + public poll(timeout: number, unit: java.util.concurrent.TimeUnit): java.lang.Object; + /** + * Retrieves, but does not remove, the head of the queue represented by + * this deque. This method differs from {@link #peek peek} only in that + * it throws an exception if this deque is empty. + *

This method is equivalent to {@link #getFirst() getFirst}. + */ + // @ts-ignore + public element(): java.lang.Object; + // @ts-ignore + public peek(): java.lang.Object; + /** + * Returns the number of additional elements that this deque can ideally + * (in the absence of memory or resource constraints) accept without + * blocking. This is always equal to the initial capacity of this deque + * less the current {@code size} of this deque. + *

Note that you cannot always tell if an attempt to insert + * an element will succeed by inspecting {@code remainingCapacity} + * because it may be the case that another thread is about to + * insert or remove an element. + */ + // @ts-ignore + public remainingCapacity(): number; + // @ts-ignore + public drainTo(c: java.util.Collection): number; + // @ts-ignore + public drainTo(c: java.util.Collection, maxElements: number): number; + // @ts-ignore + public push(e: java.lang.Object): void; + // @ts-ignore + public pop(): java.lang.Object; + /** + * Removes the first occurrence of the specified element from this deque. + * If the deque does not contain the element, it is unchanged. + * More formally, removes the first element {@code e} such that + * {@code o.equals(e)} (if such an element exists). + * Returns {@code true} if this deque contained the specified element + * (or equivalently, if this deque changed as a result of the call). + *

This method is equivalent to + * {@link #removeFirstOccurrence(Object) removeFirstOccurrence}. + */ + // @ts-ignore + public remove(o: java.lang.Object): boolean; + /** + * Returns the number of elements in this deque. + */ + // @ts-ignore + public size(): number; + /** + * Returns {@code true} if this deque contains the specified element. + * More formally, returns {@code true} if and only if this deque contains + * at least one element {@code e} such that {@code o.equals(e)}. + */ + // @ts-ignore + public contains(o: java.lang.Object): boolean; + /** + * Returns an array containing all of the elements in this deque, in + * proper sequence (from first to last element). + *

The returned array will be "safe" in that no references to it are + * maintained by this deque. (In other words, this method must allocate + * a new array). The caller is thus free to modify the returned array. + *

This method acts as bridge between array-based and collection-based + * APIs. + */ + // @ts-ignore + public toArray(): java.lang.Object[]; + /** + * Returns an array containing all of the elements in this deque, in + * proper sequence; the runtime type of the returned array is that of + * the specified array. If the deque fits in the specified array, it + * is returned therein. Otherwise, a new array is allocated with the + * runtime type of the specified array and the size of this deque. + *

If this deque fits in the specified array with room to spare + * (i.e., the array has more elements than this deque), the element in + * the array immediately following the end of the deque is set to + * {@code null}. + *

Like the {@link #toArray()} method, this method acts as bridge between + * array-based and collection-based APIs. Further, this method allows + * precise control over the runtime type of the output array, and may, + * under certain circumstances, be used to save allocation costs. + *

Suppose {@code x} is a deque known to contain only strings. + * The following code can be used to dump the deque into a newly + * allocated array of {@code String}: + *

 {@code String[] y = x.toArray(new String[0]);}
+ * Note that {@code toArray(new Object[0])} is identical in function to + * {@code toArray()}. + */ + // @ts-ignore + public toArray(a: java.lang.Object): java.lang.Object[]; + // @ts-ignore + public toString(): string; + /** + * Atomically removes all of the elements from this deque. + * The deque will be empty after this call returns. + */ + // @ts-ignore + public clear(): void; + /** + * Returns an iterator over the elements in this deque in proper sequence. + * The elements will be returned in order from first (head) to last (tail). + *

The returned iterator is + * weakly consistent. + */ + // @ts-ignore + public iterator(): java.util.Iterator; + /** + * Returns an iterator over the elements in this deque in reverse + * sequential order. The elements will be returned in order from + * last (tail) to first (head). + *

The returned iterator is + * weakly consistent. + */ + // @ts-ignore + public descendingIterator(): java.util.Iterator; + /** + * Returns a {@link Spliterator} over the elements in this deque. + *

The returned spliterator is + * weakly consistent. + *

The {@code Spliterator} reports {@link Spliterator#CONCURRENT}, + * {@link Spliterator#ORDERED}, and {@link Spliterator#NONNULL}. + */ + // @ts-ignore + public spliterator(): java.util.Spliterator; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.LinkedBlockingQueue.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.LinkedBlockingQueue.d.ts new file mode 100644 index 00000000..bb04b8ea --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.LinkedBlockingQueue.d.ts @@ -0,0 +1,157 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class LinkedBlockingQueue extends java.util.AbstractQueue { + /** + * Creates a {@code LinkedBlockingQueue} with a capacity of + * {@link Integer#MAX_VALUE}. + */ + // @ts-ignore + constructor() + /** + * Creates a {@code LinkedBlockingQueue} with the given (fixed) capacity. + */ + // @ts-ignore + constructor(capacity: number) + /** + * Creates a {@code LinkedBlockingQueue} with a capacity of + * {@link Integer#MAX_VALUE}, initially containing the elements of the + * given collection, + * added in traversal order of the collection's iterator. + */ + // @ts-ignore + constructor(c: java.util.Collection) + /** + * Returns the number of elements in this queue. + */ + // @ts-ignore + public size(): number; + /** + * Returns the number of additional elements that this queue can ideally + * (in the absence of memory or resource constraints) accept without + * blocking. This is always equal to the initial capacity of this queue + * less the current {@code size} of this queue. + *

Note that you cannot always tell if an attempt to insert + * an element will succeed by inspecting {@code remainingCapacity} + * because it may be the case that another thread is about to + * insert or remove an element. + */ + // @ts-ignore + public remainingCapacity(): number; + /** + * Inserts the specified element at the tail of this queue, waiting if + * necessary for space to become available. + */ + // @ts-ignore + public put(e: java.lang.Object): void; + /** + * Inserts the specified element at the tail of this queue, waiting if + * necessary up to the specified wait time for space to become available. + */ + // @ts-ignore + public offer(e: java.lang.Object, timeout: number, unit: java.util.concurrent.TimeUnit): boolean; + /** + * Inserts the specified element at the tail of this queue if it is + * possible to do so immediately without exceeding the queue's capacity, + * returning {@code true} upon success and {@code false} if this queue + * is full. + * When using a capacity-restricted queue, this method is generally + * preferable to method {@link BlockingQueue#add add}, which can fail to + * insert an element only by throwing an exception. + */ + // @ts-ignore + public offer(e: java.lang.Object): boolean; + // @ts-ignore + public take(): java.lang.Object; + // @ts-ignore + public poll(timeout: number, unit: java.util.concurrent.TimeUnit): java.lang.Object; + // @ts-ignore + public poll(): java.lang.Object; + // @ts-ignore + public peek(): java.lang.Object; + /** + * Removes a single instance of the specified element from this queue, + * if it is present. More formally, removes an element {@code e} such + * that {@code o.equals(e)}, if this queue contains one or more such + * elements. + * Returns {@code true} if this queue contained the specified element + * (or equivalently, if this queue changed as a result of the call). + */ + // @ts-ignore + public remove(o: java.lang.Object): boolean; + /** + * Returns {@code true} if this queue contains the specified element. + * More formally, returns {@code true} if and only if this queue contains + * at least one element {@code e} such that {@code o.equals(e)}. + */ + // @ts-ignore + public contains(o: java.lang.Object): boolean; + /** + * Returns an array containing all of the elements in this queue, in + * proper sequence. + *

The returned array will be "safe" in that no references to it are + * maintained by this queue. (In other words, this method must allocate + * a new array). The caller is thus free to modify the returned array. + *

This method acts as bridge between array-based and collection-based + * APIs. + */ + // @ts-ignore + public toArray(): java.lang.Object[]; + /** + * Returns an array containing all of the elements in this queue, in + * proper sequence; the runtime type of the returned array is that of + * the specified array. If the queue fits in the specified array, it + * is returned therein. Otherwise, a new array is allocated with the + * runtime type of the specified array and the size of this queue. + *

If this queue fits in the specified array with room to spare + * (i.e., the array has more elements than this queue), the element in + * the array immediately following the end of the queue is set to + * {@code null}. + *

Like the {@link #toArray()} method, this method acts as bridge between + * array-based and collection-based APIs. Further, this method allows + * precise control over the runtime type of the output array, and may, + * under certain circumstances, be used to save allocation costs. + *

Suppose {@code x} is a queue known to contain only strings. + * The following code can be used to dump the queue into a newly + * allocated array of {@code String}: + *

 {@code String[] y = x.toArray(new String[0]);}
+ * Note that {@code toArray(new Object[0])} is identical in function to + * {@code toArray()}. + */ + // @ts-ignore + public toArray(a: java.lang.Object): java.lang.Object[]; + // @ts-ignore + public toString(): string; + /** + * Atomically removes all of the elements from this queue. + * The queue will be empty after this call returns. + */ + // @ts-ignore + public clear(): void; + // @ts-ignore + public drainTo(c: java.util.Collection): number; + // @ts-ignore + public drainTo(c: java.util.Collection, maxElements: number): number; + /** + * Returns an iterator over the elements in this queue in proper sequence. + * The elements will be returned in order from first (head) to last (tail). + *

The returned iterator is + * weakly consistent. + */ + // @ts-ignore + public iterator(): java.util.Iterator; + /** + * Returns a {@link Spliterator} over the elements in this queue. + *

The returned spliterator is + * weakly consistent. + *

The {@code Spliterator} reports {@link Spliterator#CONCURRENT}, + * {@link Spliterator#ORDERED}, and {@link Spliterator#NONNULL}. + */ + // @ts-ignore + public spliterator(): java.util.Spliterator; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.LinkedTransferQueue.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.LinkedTransferQueue.d.ts new file mode 100644 index 00000000..0190c193 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.LinkedTransferQueue.d.ts @@ -0,0 +1,152 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class LinkedTransferQueue extends java.util.AbstractQueue { + /** + * Creates an initially empty {@code LinkedTransferQueue}. + */ + // @ts-ignore + constructor() + /** + * Creates a {@code LinkedTransferQueue} + * initially containing the elements of the given collection, + * added in traversal order of the collection's iterator. + */ + // @ts-ignore + constructor(c: java.util.Collection) + /** + * Returns a {@link Spliterator} over the elements in this queue. + *

The returned spliterator is + * weakly consistent. + *

The {@code Spliterator} reports {@link Spliterator#CONCURRENT}, + * {@link Spliterator#ORDERED}, and {@link Spliterator#NONNULL}. + */ + // @ts-ignore + public spliterator(): java.util.Spliterator; + /** + * Inserts the specified element at the tail of this queue. + * As the queue is unbounded, this method will never block. + */ + // @ts-ignore + public put(e: java.lang.Object): void; + /** + * Inserts the specified element at the tail of this queue. + * As the queue is unbounded, this method will never block or + * return {@code false}. + */ + // @ts-ignore + public offer(e: java.lang.Object, timeout: number, unit: java.util.concurrent.TimeUnit): boolean; + /** + * Inserts the specified element at the tail of this queue. + * As the queue is unbounded, this method will never return {@code false}. + */ + // @ts-ignore + public offer(e: java.lang.Object): boolean; + /** + * Inserts the specified element at the tail of this queue. + * As the queue is unbounded, this method will never throw + * {@link IllegalStateException} or return {@code false}. + */ + // @ts-ignore + public add(e: java.lang.Object): boolean; + /** + * Transfers the element to a waiting consumer immediately, if possible. + *

More precisely, transfers the specified element immediately + * if there exists a consumer already waiting to receive it (in + * {@link #take} or timed {@link #poll(long,TimeUnit) poll}), + * otherwise returning {@code false} without enqueuing the element. + */ + // @ts-ignore + public tryTransfer(e: java.lang.Object): boolean; + /** + * Transfers the element to a consumer, waiting if necessary to do so. + *

More precisely, transfers the specified element immediately + * if there exists a consumer already waiting to receive it (in + * {@link #take} or timed {@link #poll(long,TimeUnit) poll}), + * else inserts the specified element at the tail of this queue + * and waits until the element is received by a consumer. + */ + // @ts-ignore + public transfer(e: java.lang.Object): void; + /** + * Transfers the element to a consumer if it is possible to do so + * before the timeout elapses. + *

More precisely, transfers the specified element immediately + * if there exists a consumer already waiting to receive it (in + * {@link #take} or timed {@link #poll(long,TimeUnit) poll}), + * else inserts the specified element at the tail of this queue + * and waits until the element is received by a consumer, + * returning {@code false} if the specified wait time elapses + * before the element can be transferred. + */ + // @ts-ignore + public tryTransfer(e: java.lang.Object, timeout: number, unit: java.util.concurrent.TimeUnit): boolean; + // @ts-ignore + public take(): java.lang.Object; + // @ts-ignore + public poll(timeout: number, unit: java.util.concurrent.TimeUnit): java.lang.Object; + // @ts-ignore + public poll(): java.lang.Object; + // @ts-ignore + public drainTo(c: java.util.Collection): number; + // @ts-ignore + public drainTo(c: java.util.Collection, maxElements: number): number; + /** + * Returns an iterator over the elements in this queue in proper sequence. + * The elements will be returned in order from first (head) to last (tail). + *

The returned iterator is + * weakly consistent. + */ + // @ts-ignore + public iterator(): java.util.Iterator; + // @ts-ignore + public peek(): java.lang.Object; + /** + * Returns {@code true} if this queue contains no elements. + */ + // @ts-ignore + public isEmpty(): boolean; + // @ts-ignore + public hasWaitingConsumer(): boolean; + /** + * Returns the number of elements in this queue. If this queue + * contains more than {@code Integer.MAX_VALUE} elements, returns + * {@code Integer.MAX_VALUE}. + *

Beware that, unlike in most collections, this method is + * NOT a constant-time operation. Because of the + * asynchronous nature of these queues, determining the current + * number of elements requires an O(n) traversal. + */ + // @ts-ignore + public size(): number; + // @ts-ignore + public getWaitingConsumerCount(): number; + /** + * Removes a single instance of the specified element from this queue, + * if it is present. More formally, removes an element {@code e} such + * that {@code o.equals(e)}, if this queue contains one or more such + * elements. + * Returns {@code true} if this queue contained the specified element + * (or equivalently, if this queue changed as a result of the call). + */ + // @ts-ignore + public remove(o: java.lang.Object): boolean; + /** + * Returns {@code true} if this queue contains the specified element. + * More formally, returns {@code true} if and only if this queue contains + * at least one element {@code e} such that {@code o.equals(e)}. + */ + // @ts-ignore + public contains(o: java.lang.Object): boolean; + /** + * Always returns {@code Integer.MAX_VALUE} because a + * {@code LinkedTransferQueue} is not capacity constrained. + */ + // @ts-ignore + public remainingCapacity(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.Phaser.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.Phaser.d.ts new file mode 100644 index 00000000..3ad5fbda --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.Phaser.d.ts @@ -0,0 +1,217 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class Phaser extends java.lang.Object { + /** + * Creates a new phaser with no initially registered parties, no + * parent, and initial phase number 0. Any thread using this + * phaser will need to first register for it. + */ + // @ts-ignore + constructor() + /** + * Creates a new phaser with the given number of registered + * unarrived parties, no parent, and initial phase number 0. + */ + // @ts-ignore + constructor(parties: number) + /** + * Equivalent to {@link #Phaser(Phaser, int) Phaser(parent, 0)}. + */ + // @ts-ignore + constructor(parent: java.util.concurrent.Phaser) + /** + * Creates a new phaser with the given parent and number of + * registered unarrived parties. When the given parent is non-null + * and the given number of parties is greater than zero, this + * child phaser is registered with its parent. + */ + // @ts-ignore + constructor(parent: java.util.concurrent.Phaser, parties: number) + /** + * Adds a new unarrived party to this phaser. If an ongoing + * invocation of {@link #onAdvance} is in progress, this method + * may await its completion before returning. If this phaser has + * a parent, and this phaser previously had no registered parties, + * this child phaser is also registered with its parent. If + * this phaser is terminated, the attempt to register has + * no effect, and a negative value is returned. + */ + // @ts-ignore + public register(): number; + /** + * Adds the given number of new unarrived parties to this phaser. + * If an ongoing invocation of {@link #onAdvance} is in progress, + * this method may await its completion before returning. If this + * phaser has a parent, and the given number of parties is greater + * than zero, and this phaser previously had no registered + * parties, this child phaser is also registered with its parent. + * If this phaser is terminated, the attempt to register has no + * effect, and a negative value is returned. + */ + // @ts-ignore + public bulkRegister(parties: number): number; + /** + * Arrives at this phaser, without waiting for others to arrive. + *

It is a usage error for an unregistered party to invoke this + * method. However, this error may result in an {@code + * IllegalStateException} only upon some subsequent operation on + * this phaser, if ever. + */ + // @ts-ignore + public arrive(): number; + /** + * Arrives at this phaser and deregisters from it without waiting + * for others to arrive. Deregistration reduces the number of + * parties required to advance in future phases. If this phaser + * has a parent, and deregistration causes this phaser to have + * zero parties, this phaser is also deregistered from its parent. + *

It is a usage error for an unregistered party to invoke this + * method. However, this error may result in an {@code + * IllegalStateException} only upon some subsequent operation on + * this phaser, if ever. + */ + // @ts-ignore + public arriveAndDeregister(): number; + /** + * Arrives at this phaser and awaits others. Equivalent in effect + * to {@code awaitAdvance(arrive())}. If you need to await with + * interruption or timeout, you can arrange this with an analogous + * construction using one of the other forms of the {@code + * awaitAdvance} method. If instead you need to deregister upon + * arrival, use {@code awaitAdvance(arriveAndDeregister())}. + *

It is a usage error for an unregistered party to invoke this + * method. However, this error may result in an {@code + * IllegalStateException} only upon some subsequent operation on + * this phaser, if ever. + */ + // @ts-ignore + public arriveAndAwaitAdvance(): number; + /** + * Awaits the phase of this phaser to advance from the given phase + * value, returning immediately if the current phase is not equal + * to the given phase value or this phaser is terminated. + */ + // @ts-ignore + public awaitAdvance(phase: number): number; + /** + * Awaits the phase of this phaser to advance from the given phase + * value, throwing {@code InterruptedException} if interrupted + * while waiting, or returning immediately if the current phase is + * not equal to the given phase value or this phaser is + * terminated. + */ + // @ts-ignore + public awaitAdvanceInterruptibly(phase: number): number; + /** + * Awaits the phase of this phaser to advance from the given phase + * value or the given timeout to elapse, throwing {@code + * InterruptedException} if interrupted while waiting, or + * returning immediately if the current phase is not equal to the + * given phase value or this phaser is terminated. + */ + // @ts-ignore + public awaitAdvanceInterruptibly(phase: number, timeout: number, unit: java.util.concurrent.TimeUnit): number; + /** + * Forces this phaser to enter termination state. Counts of + * registered parties are unaffected. If this phaser is a member + * of a tiered set of phasers, then all of the phasers in the set + * are terminated. If this phaser is already terminated, this + * method has no effect. This method may be useful for + * coordinating recovery after one or more tasks encounter + * unexpected exceptions. + */ + // @ts-ignore + public forceTermination(): void; + /** + * Returns the current phase number. The maximum phase number is + * {@code Integer.MAX_VALUE}, after which it restarts at + * zero. Upon termination, the phase number is negative, + * in which case the prevailing phase prior to termination + * may be obtained via {@code getPhase() + Integer.MIN_VALUE}. + */ + // @ts-ignore + public getPhase(): number; + /** + * Returns the number of parties registered at this phaser. + */ + // @ts-ignore + public getRegisteredParties(): number; + /** + * Returns the number of registered parties that have arrived at + * the current phase of this phaser. If this phaser has terminated, + * the returned value is meaningless and arbitrary. + */ + // @ts-ignore + public getArrivedParties(): number; + /** + * Returns the number of registered parties that have not yet + * arrived at the current phase of this phaser. If this phaser has + * terminated, the returned value is meaningless and arbitrary. + */ + // @ts-ignore + public getUnarrivedParties(): number; + /** + * Returns the parent of this phaser, or {@code null} if none. + */ + // @ts-ignore + public getParent(): java.util.concurrent.Phaser; + /** + * Returns the root ancestor of this phaser, which is the same as + * this phaser if it has no parent. + */ + // @ts-ignore + public getRoot(): java.util.concurrent.Phaser; + /** + * Returns {@code true} if this phaser has been terminated. + */ + // @ts-ignore + public isTerminated(): boolean; + /** + * Overridable method to perform an action upon impending phase + * advance, and to control termination. This method is invoked + * upon arrival of the party advancing this phaser (when all other + * waiting parties are dormant). If this method returns {@code + * true}, this phaser will be set to a final termination state + * upon advance, and subsequent calls to {@link #isTerminated} + * will return true. Any (unchecked) Exception or Error thrown by + * an invocation of this method is propagated to the party + * attempting to advance this phaser, in which case no advance + * occurs. + *

The arguments to this method provide the state of the phaser + * prevailing for the current transition. The effects of invoking + * arrival, registration, and waiting methods on this phaser from + * within {@code onAdvance} are unspecified and should not be + * relied on. + *

If this phaser is a member of a tiered set of phasers, then + * {@code onAdvance} is invoked only for its root phaser on each + * advance. + *

To support the most common use cases, the default + * implementation of this method returns {@code true} when the + * number of registered parties has become zero as the result of a + * party invoking {@code arriveAndDeregister}. You can disable + * this behavior, thus enabling continuation upon future + * registrations, by overriding this method to always return + * {@code false}: + *

 {@code
+                 * Phaser phaser = new Phaser() {
+                 * protected boolean onAdvance(int phase, int parties) { return false; }
+                 * }}
+ */ + // @ts-ignore + protected onAdvance(phase: number, registeredParties: number): boolean; + /** + * Returns a string identifying this phaser, as well as its + * state. The state, in brackets, includes the String {@code + * "phase = "} followed by the phase number, {@code "parties = "} + * followed by the number of registered parties, and {@code + * "arrived = "} followed by the number of arrived parties. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.PriorityBlockingQueue.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.PriorityBlockingQueue.d.ts new file mode 100644 index 00000000..16ec8a3f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.PriorityBlockingQueue.d.ts @@ -0,0 +1,169 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class PriorityBlockingQueue extends java.util.AbstractQueue { + /** + * Creates a {@code PriorityBlockingQueue} with the default + * initial capacity (11) that orders its elements according to + * their {@linkplain Comparable natural ordering}. + */ + // @ts-ignore + constructor() + /** + * Creates a {@code PriorityBlockingQueue} with the specified + * initial capacity that orders its elements according to their + * {@linkplain Comparable natural ordering}. + */ + // @ts-ignore + constructor(initialCapacity: number) + /** + * Creates a {@code PriorityBlockingQueue} with the specified initial + * capacity that orders its elements according to the specified + * comparator. + */ + // @ts-ignore + constructor(initialCapacity: number, comparator: java.util.Comparator) + /** + * Creates a {@code PriorityBlockingQueue} containing the elements + * in the specified collection. If the specified collection is a + * {@link SortedSet} or a {@link PriorityQueue}, this + * priority queue will be ordered according to the same ordering. + * Otherwise, this priority queue will be ordered according to the + * {@linkplain Comparable natural ordering} of its elements. + */ + // @ts-ignore + constructor(c: java.util.Collection) + /** + * Inserts the specified element into this priority queue. + */ + // @ts-ignore + public add(e: java.lang.Object): boolean; + /** + * Inserts the specified element into this priority queue. + * As the queue is unbounded, this method will never return {@code false}. + */ + // @ts-ignore + public offer(e: java.lang.Object): boolean; + /** + * Inserts the specified element into this priority queue. + * As the queue is unbounded, this method will never block. + */ + // @ts-ignore + public put(e: java.lang.Object): void; + /** + * Inserts the specified element into this priority queue. + * As the queue is unbounded, this method will never block or + * return {@code false}. + */ + // @ts-ignore + public offer(e: java.lang.Object, timeout: number, unit: java.util.concurrent.TimeUnit): boolean; + // @ts-ignore + public poll(): java.lang.Object; + // @ts-ignore + public take(): java.lang.Object; + // @ts-ignore + public poll(timeout: number, unit: java.util.concurrent.TimeUnit): java.lang.Object; + // @ts-ignore + public peek(): java.lang.Object; + /** + * Returns the comparator used to order the elements in this queue, + * or {@code null} if this queue uses the {@linkplain Comparable + * natural ordering} of its elements. + */ + // @ts-ignore + public comparator(): java.util.Comparator; + // @ts-ignore + public size(): number; + /** + * Always returns {@code Integer.MAX_VALUE} because + * a {@code PriorityBlockingQueue} is not capacity constrained. + */ + // @ts-ignore + public remainingCapacity(): number; + /** + * Removes a single instance of the specified element from this queue, + * if it is present. More formally, removes an element {@code e} such + * that {@code o.equals(e)}, if this queue contains one or more such + * elements. Returns {@code true} if and only if this queue contained + * the specified element (or equivalently, if this queue changed as a + * result of the call). + */ + // @ts-ignore + public remove(o: java.lang.Object): boolean; + /** + * Returns {@code true} if this queue contains the specified element. + * More formally, returns {@code true} if and only if this queue contains + * at least one element {@code e} such that {@code o.equals(e)}. + */ + // @ts-ignore + public contains(o: java.lang.Object): boolean; + /** + * Returns an array containing all of the elements in this queue. + * The returned array elements are in no particular order. + *

The returned array will be "safe" in that no references to it are + * maintained by this queue. (In other words, this method must allocate + * a new array). The caller is thus free to modify the returned array. + *

This method acts as bridge between array-based and collection-based + * APIs. + */ + // @ts-ignore + public toArray(): java.lang.Object[]; + // @ts-ignore + public toString(): string; + // @ts-ignore + public drainTo(c: java.util.Collection): number; + // @ts-ignore + public drainTo(c: java.util.Collection, maxElements: number): number; + /** + * Atomically removes all of the elements from this queue. + * The queue will be empty after this call returns. + */ + // @ts-ignore + public clear(): void; + /** + * Returns an array containing all of the elements in this queue; the + * runtime type of the returned array is that of the specified array. + * The returned array elements are in no particular order. + * If the queue fits in the specified array, it is returned therein. + * Otherwise, a new array is allocated with the runtime type of the + * specified array and the size of this queue. + *

If this queue fits in the specified array with room to spare + * (i.e., the array has more elements than this queue), the element in + * the array immediately following the end of the queue is set to + * {@code null}. + *

Like the {@link #toArray()} method, this method acts as bridge between + * array-based and collection-based APIs. Further, this method allows + * precise control over the runtime type of the output array, and may, + * under certain circumstances, be used to save allocation costs. + *

Suppose {@code x} is a queue known to contain only strings. + * The following code can be used to dump the queue into a newly + * allocated array of {@code String}: + *

 {@code String[] y = x.toArray(new String[0]);}
+ * Note that {@code toArray(new Object[0])} is identical in function to + * {@code toArray()}. + */ + // @ts-ignore + public toArray(a: java.lang.Object): java.lang.Object[]; + /** + * Returns an iterator over the elements in this queue. The + * iterator does not return the elements in any particular order. + *

The returned iterator is + * weakly consistent. + */ + // @ts-ignore + public iterator(): java.util.Iterator; + /** + * Returns a {@link Spliterator} over the elements in this queue. + *

The returned spliterator is + * weakly consistent. + *

The {@code Spliterator} reports {@link Spliterator#SIZED} and + * {@link Spliterator#NONNULL}. + */ + // @ts-ignore + public spliterator(): java.util.Spliterator; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.RecursiveAction.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.RecursiveAction.d.ts new file mode 100644 index 00000000..789d481e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.RecursiveAction.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + abstract class RecursiveAction extends java.util.concurrent.ForkJoinTask { + // @ts-ignore + constructor() + /** + * The main computation performed by this task. + */ + // @ts-ignore + protected abstract compute(): void; + /** + * Always returns {@code null}. + */ + // @ts-ignore + public getRawResult(): java.lang.Void; + /** + * Requires null completion value. + */ + // @ts-ignore + protected setRawResult(mustBeNull: java.lang.Void): void; + /** + * Implements execution conventions for RecursiveActions. + */ + // @ts-ignore + protected exec(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.RecursiveTask.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.RecursiveTask.d.ts new file mode 100644 index 00000000..4abc0a8c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.RecursiveTask.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + abstract class RecursiveTask extends java.util.concurrent.ForkJoinTask { + // @ts-ignore + constructor() + /** + * The main computation performed by this task. + */ + // @ts-ignore + protected abstract compute(): java.lang.Object; + // @ts-ignore + public getRawResult(): java.lang.Object; + // @ts-ignore + protected setRawResult(value: java.lang.Object): void; + /** + * Implements execution conventions for RecursiveTask. + */ + // @ts-ignore + protected exec(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.RejectedExecutionException.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.RejectedExecutionException.d.ts new file mode 100644 index 00000000..bfdcdc74 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.RejectedExecutionException.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class RejectedExecutionException extends java.lang.RuntimeException { + /** + * Constructs a {@code RejectedExecutionException} with no detail message. + * The cause is not initialized, and may subsequently be + * initialized by a call to {@link #initCause(Throwable) initCause}. + */ + // @ts-ignore + constructor() + /** + * Constructs a {@code RejectedExecutionException} with the + * specified detail message. The cause is not initialized, and may + * subsequently be initialized by a call to {@link + * #initCause(Throwable) initCause}. + */ + // @ts-ignore + constructor(message: string) + /** + * Constructs a {@code RejectedExecutionException} with the + * specified detail message and cause. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Constructs a {@code RejectedExecutionException} with the + * specified cause. The detail message is set to {@code (cause == + * null ? null : cause.toString())} (which typically contains + * the class and detail message of {@code cause}). + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.RejectedExecutionHandler.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.RejectedExecutionHandler.d.ts new file mode 100644 index 00000000..660dca7d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.RejectedExecutionHandler.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + interface RejectedExecutionHandler { + /** + * Method that may be invoked by a {@link ThreadPoolExecutor} when + * {@link ThreadPoolExecutor#execute execute} cannot accept a + * task. This may occur when no more threads or queue slots are + * available because their bounds would be exceeded, or upon + * shutdown of the Executor. + *

In the absence of other alternatives, the method may throw + * an unchecked {@link RejectedExecutionException}, which will be + * propagated to the caller of {@code execute}. + */ + // @ts-ignore + rejectedExecution(r: java.lang.Runnable, executor: java.util.concurrent.ThreadPoolExecutor): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.RunnableFuture.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.RunnableFuture.d.ts new file mode 100644 index 00000000..81bd5a66 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.RunnableFuture.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + interface RunnableFuture { + /** + * Sets this Future to the result of its computation + * unless it has been cancelled. + */ + // @ts-ignore + run(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.RunnableScheduledFuture.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.RunnableScheduledFuture.d.ts new file mode 100644 index 00000000..3cf04ebd --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.RunnableScheduledFuture.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + interface RunnableScheduledFuture { + /** + * Returns {@code true} if this task is periodic. A periodic task may + * re-run according to some schedule. A non-periodic task can be + * run only once. + */ + // @ts-ignore + isPeriodic(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.ScheduledExecutorService.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.ScheduledExecutorService.d.ts new file mode 100644 index 00000000..710b3aae --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.ScheduledExecutorService.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + interface ScheduledExecutorService { + /** + * Creates and executes a one-shot action that becomes enabled + * after the given delay. + */ + // @ts-ignore + schedule(command: java.lang.Runnable, delay: number, unit: java.util.concurrent.TimeUnit): java.util.concurrent.ScheduledFuture; + /** + * Creates and executes a ScheduledFuture that becomes enabled after the + * given delay. + */ + // @ts-ignore + schedule(callable: java.util.concurrent.Callable, delay: number, unit: java.util.concurrent.TimeUnit): java.util.concurrent.ScheduledFuture; + /** + * Creates and executes a periodic action that becomes enabled first + * after the given initial delay, and subsequently with the given + * period; that is executions will commence after + * {@code initialDelay} then {@code initialDelay+period}, then + * {@code initialDelay + 2 * period}, and so on. + * If any execution of the task + * encounters an exception, subsequent executions are suppressed. + * Otherwise, the task will only terminate via cancellation or + * termination of the executor. If any execution of this task + * takes longer than its period, then subsequent executions + * may start late, but will not concurrently execute. + */ + // @ts-ignore + scheduleAtFixedRate(command: java.lang.Runnable, initialDelay: number, period: number, unit: java.util.concurrent.TimeUnit): java.util.concurrent.ScheduledFuture; + /** + * Creates and executes a periodic action that becomes enabled first + * after the given initial delay, and subsequently with the + * given delay between the termination of one execution and the + * commencement of the next. If any execution of the task + * encounters an exception, subsequent executions are suppressed. + * Otherwise, the task will only terminate via cancellation or + * termination of the executor. + */ + // @ts-ignore + scheduleWithFixedDelay(command: java.lang.Runnable, initialDelay: number, delay: number, unit: java.util.concurrent.TimeUnit): java.util.concurrent.ScheduledFuture; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.ScheduledFuture.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.ScheduledFuture.d.ts new file mode 100644 index 00000000..f8b218aa --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.ScheduledFuture.d.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + interface ScheduledFuture { + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.ScheduledThreadPoolExecutor.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.ScheduledThreadPoolExecutor.d.ts new file mode 100644 index 00000000..f921769e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.ScheduledThreadPoolExecutor.d.ts @@ -0,0 +1,174 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class ScheduledThreadPoolExecutor extends java.util.concurrent.ThreadPoolExecutor { + /** + * Creates a new {@code ScheduledThreadPoolExecutor} with the + * given core pool size. + */ + // @ts-ignore + constructor(corePoolSize: number) + /** + * Creates a new {@code ScheduledThreadPoolExecutor} with the + * given initial parameters. + */ + // @ts-ignore + constructor(corePoolSize: number, threadFactory: java.util.concurrent.ThreadFactory) + /** + * Creates a new ScheduledThreadPoolExecutor with the given + * initial parameters. + */ + // @ts-ignore + constructor(corePoolSize: number, handler: java.util.concurrent.RejectedExecutionHandler) + /** + * Creates a new ScheduledThreadPoolExecutor with the given + * initial parameters. + */ + // @ts-ignore + constructor(corePoolSize: number, threadFactory: java.util.concurrent.ThreadFactory, handler: java.util.concurrent.RejectedExecutionHandler) + /** + * Modifies or replaces the task used to execute a runnable. + * This method can be used to override the concrete + * class used for managing internal tasks. + * The default implementation simply returns the given task. + */ + // @ts-ignore + protected decorateTask(runnable: java.lang.Runnable, task: java.util.concurrent.RunnableScheduledFuture): java.util.concurrent.RunnableScheduledFuture; + /** + * Modifies or replaces the task used to execute a callable. + * This method can be used to override the concrete + * class used for managing internal tasks. + * The default implementation simply returns the given task. + */ + // @ts-ignore + protected decorateTask(callable: java.util.concurrent.Callable, task: java.util.concurrent.RunnableScheduledFuture): java.util.concurrent.RunnableScheduledFuture; + // @ts-ignore + public schedule(command: java.lang.Runnable, delay: number, unit: java.util.concurrent.TimeUnit): java.util.concurrent.ScheduledFuture; + // @ts-ignore + public schedule(callable: java.util.concurrent.Callable, delay: number, unit: java.util.concurrent.TimeUnit): java.util.concurrent.ScheduledFuture; + // @ts-ignore + public scheduleAtFixedRate(command: java.lang.Runnable, initialDelay: number, period: number, unit: java.util.concurrent.TimeUnit): java.util.concurrent.ScheduledFuture; + // @ts-ignore + public scheduleWithFixedDelay(command: java.lang.Runnable, initialDelay: number, delay: number, unit: java.util.concurrent.TimeUnit): java.util.concurrent.ScheduledFuture; + /** + * Executes {@code command} with zero required delay. + * This has effect equivalent to + * {@link #schedule(Runnable,long,TimeUnit) schedule(command, 0, anyUnit)}. + * Note that inspections of the queue and of the list returned by + * {@code shutdownNow} will access the zero-delayed + * {@link ScheduledFuture}, not the {@code command} itself. + *

A consequence of the use of {@code ScheduledFuture} objects is + * that {@link ThreadPoolExecutor#afterExecute afterExecute} is always + * called with a null second {@code Throwable} argument, even if the + * {@code command} terminated abruptly. Instead, the {@code Throwable} + * thrown by such a task can be obtained via {@link Future#get}. + */ + // @ts-ignore + public execute(command: java.lang.Runnable): void; + // @ts-ignore + public submit(task: java.lang.Runnable): java.util.concurrent.Future; + // @ts-ignore + public submit(task: java.lang.Runnable, result: java.lang.Object): java.util.concurrent.Future; + // @ts-ignore + public submit(task: java.util.concurrent.Callable): java.util.concurrent.Future; + /** + * Sets the policy on whether to continue executing existing + * periodic tasks even when this executor has been {@code shutdown}. + * In this case, these tasks will only terminate upon + * {@code shutdownNow} or after setting the policy to + * {@code false} when already shutdown. + * This value is by default {@code false}. + */ + // @ts-ignore + public setContinueExistingPeriodicTasksAfterShutdownPolicy(value: boolean): void; + /** + * Gets the policy on whether to continue executing existing + * periodic tasks even when this executor has been {@code shutdown}. + * In this case, these tasks will only terminate upon + * {@code shutdownNow} or after setting the policy to + * {@code false} when already shutdown. + * This value is by default {@code false}. + */ + // @ts-ignore + public getContinueExistingPeriodicTasksAfterShutdownPolicy(): boolean; + /** + * Sets the policy on whether to execute existing delayed + * tasks even when this executor has been {@code shutdown}. + * In this case, these tasks will only terminate upon + * {@code shutdownNow}, or after setting the policy to + * {@code false} when already shutdown. + * This value is by default {@code true}. + */ + // @ts-ignore + public setExecuteExistingDelayedTasksAfterShutdownPolicy(value: boolean): void; + /** + * Gets the policy on whether to execute existing delayed + * tasks even when this executor has been {@code shutdown}. + * In this case, these tasks will only terminate upon + * {@code shutdownNow}, or after setting the policy to + * {@code false} when already shutdown. + * This value is by default {@code true}. + */ + // @ts-ignore + public getExecuteExistingDelayedTasksAfterShutdownPolicy(): boolean; + /** + * Sets the policy on whether cancelled tasks should be immediately + * removed from the work queue at time of cancellation. This value is + * by default {@code false}. + */ + // @ts-ignore + public setRemoveOnCancelPolicy(value: boolean): void; + /** + * Gets the policy on whether cancelled tasks should be immediately + * removed from the work queue at time of cancellation. This value is + * by default {@code false}. + */ + // @ts-ignore + public getRemoveOnCancelPolicy(): boolean; + /** + * Initiates an orderly shutdown in which previously submitted + * tasks are executed, but no new tasks will be accepted. + * Invocation has no additional effect if already shut down. + *

This method does not wait for previously submitted tasks to + * complete execution. Use {@link #awaitTermination awaitTermination} + * to do that. + *

If the {@code ExecuteExistingDelayedTasksAfterShutdownPolicy} + * has been set {@code false}, existing delayed tasks whose delays + * have not yet elapsed are cancelled. And unless the {@code + * ContinueExistingPeriodicTasksAfterShutdownPolicy} has been set + * {@code true}, future executions of existing periodic tasks will + * be cancelled. + */ + // @ts-ignore + public shutdown(): void; + /** + * Attempts to stop all actively executing tasks, halts the + * processing of waiting tasks, and returns a list of the tasks + * that were awaiting execution. + *

This method does not wait for actively executing tasks to + * terminate. Use {@link #awaitTermination awaitTermination} to + * do that. + *

There are no guarantees beyond best-effort attempts to stop + * processing actively executing tasks. This implementation + * cancels tasks via {@link Thread#interrupt}, so any task that + * fails to respond to interrupts may never terminate. + */ + // @ts-ignore + public shutdownNow(): java.util.List; + /** + * Returns the task queue used by this executor. Each element of + * this queue is a {@link ScheduledFuture}, including those + * tasks submitted using {@code execute} which are for scheduling + * purposes used as the basis of a zero-delay + * {@code ScheduledFuture}. Iteration over this queue is + * not guaranteed to traverse tasks in the order in + * which they will execute. + */ + // @ts-ignore + public getQueue(): java.util.concurrent.BlockingQueue; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.Semaphore.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.Semaphore.d.ts new file mode 100644 index 00000000..35812c9e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.Semaphore.d.ts @@ -0,0 +1,318 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class Semaphore extends java.lang.Object { + /** + * Creates a {@code Semaphore} with the given number of + * permits and nonfair fairness setting. + */ + // @ts-ignore + constructor(permits: number) + /** + * Creates a {@code Semaphore} with the given number of + * permits and the given fairness setting. + */ + // @ts-ignore + constructor(permits: number, fair: boolean) + /** + * Acquires a permit from this semaphore, blocking until one is + * available, or the thread is {@linkplain Thread#interrupt interrupted}. + *

Acquires a permit, if one is available and returns immediately, + * reducing the number of available permits by one. + *

If no permit is available then the current thread becomes + * disabled for thread scheduling purposes and lies dormant until + * one of two things happens: + *

    + *
  • Some other thread invokes the {@link #release} method for this + * semaphore and the current thread is next to be assigned a permit; or + *
  • Some other thread {@linkplain Thread#interrupt interrupts} + * the current thread. + *
+ *

If the current thread: + *

    + *
  • has its interrupted status set on entry to this method; or + *
  • is {@linkplain Thread#interrupt interrupted} while waiting + * for a permit, + *
+ * then {@link InterruptedException} is thrown and the current thread's + * interrupted status is cleared. + */ + // @ts-ignore + public acquire(): void; + /** + * Acquires a permit from this semaphore, blocking until one is + * available. + *

Acquires a permit, if one is available and returns immediately, + * reducing the number of available permits by one. + *

If no permit is available then the current thread becomes + * disabled for thread scheduling purposes and lies dormant until + * some other thread invokes the {@link #release} method for this + * semaphore and the current thread is next to be assigned a permit. + *

If the current thread is {@linkplain Thread#interrupt interrupted} + * while waiting for a permit then it will continue to wait, but the + * time at which the thread is assigned a permit may change compared to + * the time it would have received the permit had no interruption + * occurred. When the thread does return from this method its interrupt + * status will be set. + */ + // @ts-ignore + public acquireUninterruptibly(): void; + /** + * Acquires a permit from this semaphore, only if one is available at the + * time of invocation. + *

Acquires a permit, if one is available and returns immediately, + * with the value {@code true}, + * reducing the number of available permits by one. + *

If no permit is available then this method will return + * immediately with the value {@code false}. + *

Even when this semaphore has been set to use a + * fair ordering policy, a call to {@code tryAcquire()} will + * immediately acquire a permit if one is available, whether or not + * other threads are currently waiting. + * This "barging" behavior can be useful in certain + * circumstances, even though it breaks fairness. If you want to honor + * the fairness setting, then use + * {@link #tryAcquire(long, TimeUnit) tryAcquire(0, TimeUnit.SECONDS) } + * which is almost equivalent (it also detects interruption). + */ + // @ts-ignore + public tryAcquire(): boolean; + /** + * Acquires a permit from this semaphore, if one becomes available + * within the given waiting time and the current thread has not + * been {@linkplain Thread#interrupt interrupted}. + *

Acquires a permit, if one is available and returns immediately, + * with the value {@code true}, + * reducing the number of available permits by one. + *

If no permit is available then the current thread becomes + * disabled for thread scheduling purposes and lies dormant until + * one of three things happens: + *

    + *
  • Some other thread invokes the {@link #release} method for this + * semaphore and the current thread is next to be assigned a permit; or + *
  • Some other thread {@linkplain Thread#interrupt interrupts} + * the current thread; or + *
  • The specified waiting time elapses. + *
+ *

If a permit is acquired then the value {@code true} is returned. + *

If the current thread: + *

    + *
  • has its interrupted status set on entry to this method; or + *
  • is {@linkplain Thread#interrupt interrupted} while waiting + * to acquire a permit, + *
+ * then {@link InterruptedException} is thrown and the current thread's + * interrupted status is cleared. + *

If the specified waiting time elapses then the value {@code false} + * is returned. If the time is less than or equal to zero, the method + * will not wait at all. + */ + // @ts-ignore + public tryAcquire(timeout: number, unit: java.util.concurrent.TimeUnit): boolean; + /** + * Releases a permit, returning it to the semaphore. + *

Releases a permit, increasing the number of available permits by + * one. If any threads are trying to acquire a permit, then one is + * selected and given the permit that was just released. That thread + * is (re)enabled for thread scheduling purposes. + *

There is no requirement that a thread that releases a permit must + * have acquired that permit by calling {@link #acquire}. + * Correct usage of a semaphore is established by programming convention + * in the application. + */ + // @ts-ignore + public release(): void; + /** + * Acquires the given number of permits from this semaphore, + * blocking until all are available, + * or the thread is {@linkplain Thread#interrupt interrupted}. + *

Acquires the given number of permits, if they are available, + * and returns immediately, reducing the number of available permits + * by the given amount. + *

If insufficient permits are available then the current thread becomes + * disabled for thread scheduling purposes and lies dormant until + * one of two things happens: + *

    + *
  • Some other thread invokes one of the {@link #release() release} + * methods for this semaphore, the current thread is next to be assigned + * permits and the number of available permits satisfies this request; or + *
  • Some other thread {@linkplain Thread#interrupt interrupts} + * the current thread. + *
+ *

If the current thread: + *

    + *
  • has its interrupted status set on entry to this method; or + *
  • is {@linkplain Thread#interrupt interrupted} while waiting + * for a permit, + *
+ * then {@link InterruptedException} is thrown and the current thread's + * interrupted status is cleared. + * Any permits that were to be assigned to this thread are instead + * assigned to other threads trying to acquire permits, as if + * permits had been made available by a call to {@link #release()}. + */ + // @ts-ignore + public acquire(permits: number): void; + /** + * Acquires the given number of permits from this semaphore, + * blocking until all are available. + *

Acquires the given number of permits, if they are available, + * and returns immediately, reducing the number of available permits + * by the given amount. + *

If insufficient permits are available then the current thread becomes + * disabled for thread scheduling purposes and lies dormant until + * some other thread invokes one of the {@link #release() release} + * methods for this semaphore, the current thread is next to be assigned + * permits and the number of available permits satisfies this request. + *

If the current thread is {@linkplain Thread#interrupt interrupted} + * while waiting for permits then it will continue to wait and its + * position in the queue is not affected. When the thread does return + * from this method its interrupt status will be set. + */ + // @ts-ignore + public acquireUninterruptibly(permits: number): void; + /** + * Acquires the given number of permits from this semaphore, only + * if all are available at the time of invocation. + *

Acquires the given number of permits, if they are available, and + * returns immediately, with the value {@code true}, + * reducing the number of available permits by the given amount. + *

If insufficient permits are available then this method will return + * immediately with the value {@code false} and the number of available + * permits is unchanged. + *

Even when this semaphore has been set to use a fair ordering + * policy, a call to {@code tryAcquire} will + * immediately acquire a permit if one is available, whether or + * not other threads are currently waiting. This + * "barging" behavior can be useful in certain + * circumstances, even though it breaks fairness. If you want to + * honor the fairness setting, then use {@link #tryAcquire(int, + * long, TimeUnit) tryAcquire(permits, 0, TimeUnit.SECONDS) } + * which is almost equivalent (it also detects interruption). + */ + // @ts-ignore + public tryAcquire(permits: number): boolean; + /** + * Acquires the given number of permits from this semaphore, if all + * become available within the given waiting time and the current + * thread has not been {@linkplain Thread#interrupt interrupted}. + *

Acquires the given number of permits, if they are available and + * returns immediately, with the value {@code true}, + * reducing the number of available permits by the given amount. + *

If insufficient permits are available then + * the current thread becomes disabled for thread scheduling + * purposes and lies dormant until one of three things happens: + *

    + *
  • Some other thread invokes one of the {@link #release() release} + * methods for this semaphore, the current thread is next to be assigned + * permits and the number of available permits satisfies this request; or + *
  • Some other thread {@linkplain Thread#interrupt interrupts} + * the current thread; or + *
  • The specified waiting time elapses. + *
+ *

If the permits are acquired then the value {@code true} is returned. + *

If the current thread: + *

    + *
  • has its interrupted status set on entry to this method; or + *
  • is {@linkplain Thread#interrupt interrupted} while waiting + * to acquire the permits, + *
+ * then {@link InterruptedException} is thrown and the current thread's + * interrupted status is cleared. + * Any permits that were to be assigned to this thread, are instead + * assigned to other threads trying to acquire permits, as if + * the permits had been made available by a call to {@link #release()}. + *

If the specified waiting time elapses then the value {@code false} + * is returned. If the time is less than or equal to zero, the method + * will not wait at all. Any permits that were to be assigned to this + * thread, are instead assigned to other threads trying to acquire + * permits, as if the permits had been made available by a call to + * {@link #release()}. + */ + // @ts-ignore + public tryAcquire(permits: number, timeout: number, unit: java.util.concurrent.TimeUnit): boolean; + /** + * Releases the given number of permits, returning them to the semaphore. + *

Releases the given number of permits, increasing the number of + * available permits by that amount. + * If any threads are trying to acquire permits, then one + * is selected and given the permits that were just released. + * If the number of available permits satisfies that thread's request + * then that thread is (re)enabled for thread scheduling purposes; + * otherwise the thread will wait until sufficient permits are available. + * If there are still permits available + * after this thread's request has been satisfied, then those permits + * are assigned in turn to other threads trying to acquire permits. + *

There is no requirement that a thread that releases a permit must + * have acquired that permit by calling {@link Semaphore#acquire acquire}. + * Correct usage of a semaphore is established by programming convention + * in the application. + */ + // @ts-ignore + public release(permits: number): void; + /** + * Returns the current number of permits available in this semaphore. + *

This method is typically used for debugging and testing purposes. + */ + // @ts-ignore + public availablePermits(): number; + /** + * Acquires and returns all permits that are immediately available. + */ + // @ts-ignore + public drainPermits(): number; + /** + * Shrinks the number of available permits by the indicated + * reduction. This method can be useful in subclasses that use + * semaphores to track resources that become unavailable. This + * method differs from {@code acquire} in that it does not block + * waiting for permits to become available. + */ + // @ts-ignore + protected reducePermits(reduction: number): void; + /** + * Returns {@code true} if this semaphore has fairness set true. + */ + // @ts-ignore + public isFair(): boolean; + /** + * Queries whether any threads are waiting to acquire. Note that + * because cancellations may occur at any time, a {@code true} + * return does not guarantee that any other thread will ever + * acquire. This method is designed primarily for use in + * monitoring of the system state. + */ + // @ts-ignore + public hasQueuedThreads(): boolean; + /** + * Returns an estimate of the number of threads waiting to acquire. + * The value is only an estimate because the number of threads may + * change dynamically while this method traverses internal data + * structures. This method is designed for use in monitoring of the + * system state, not for synchronization control. + */ + // @ts-ignore + public getQueueLength(): number; + /** + * Returns a collection containing threads that may be waiting to acquire. + * Because the actual set of threads may change dynamically while + * constructing this result, the returned collection is only a best-effort + * estimate. The elements of the returned collection are in no particular + * order. This method is designed to facilitate construction of + * subclasses that provide more extensive monitoring facilities. + */ + // @ts-ignore + protected getQueuedThreads(): java.util.Collection; + /** + * Returns a string identifying this semaphore, as well as its state. + * The state, in brackets, includes the String {@code "Permits ="} + * followed by the number of permits. + */ + // @ts-ignore + public toString(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.SynchronousQueue.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.SynchronousQueue.d.ts new file mode 100644 index 00000000..65919bf2 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.SynchronousQueue.d.ts @@ -0,0 +1,145 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class SynchronousQueue extends java.util.AbstractQueue { + /** + * Creates a {@code SynchronousQueue} with nonfair access policy. + */ + // @ts-ignore + constructor() + /** + * Creates a {@code SynchronousQueue} with the specified fairness policy. + */ + // @ts-ignore + constructor(fair: boolean) + /** + * Adds the specified element to this queue, waiting if necessary for + * another thread to receive it. + */ + // @ts-ignore + public put(e: java.lang.Object): void; + /** + * Inserts the specified element into this queue, waiting if necessary + * up to the specified wait time for another thread to receive it. + */ + // @ts-ignore + public offer(e: java.lang.Object, timeout: number, unit: java.util.concurrent.TimeUnit): boolean; + /** + * Inserts the specified element into this queue, if another thread is + * waiting to receive it. + */ + // @ts-ignore + public offer(e: java.lang.Object): boolean; + /** + * Retrieves and removes the head of this queue, waiting if necessary + * for another thread to insert it. + */ + // @ts-ignore + public take(): java.lang.Object; + /** + * Retrieves and removes the head of this queue, waiting + * if necessary up to the specified wait time, for another thread + * to insert it. + */ + // @ts-ignore + public poll(timeout: number, unit: java.util.concurrent.TimeUnit): java.lang.Object; + /** + * Retrieves and removes the head of this queue, if another thread + * is currently making an element available. + */ + // @ts-ignore + public poll(): java.lang.Object; + /** + * Always returns {@code true}. + * A {@code SynchronousQueue} has no internal capacity. + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * Always returns zero. + * A {@code SynchronousQueue} has no internal capacity. + */ + // @ts-ignore + public size(): number; + /** + * Always returns zero. + * A {@code SynchronousQueue} has no internal capacity. + */ + // @ts-ignore + public remainingCapacity(): number; + /** + * Does nothing. + * A {@code SynchronousQueue} has no internal capacity. + */ + // @ts-ignore + public clear(): void; + /** + * Always returns {@code false}. + * A {@code SynchronousQueue} has no internal capacity. + */ + // @ts-ignore + public contains(o: java.lang.Object): boolean; + /** + * Always returns {@code false}. + * A {@code SynchronousQueue} has no internal capacity. + */ + // @ts-ignore + public remove(o: java.lang.Object): boolean; + /** + * Returns {@code false} unless the given collection is empty. + * A {@code SynchronousQueue} has no internal capacity. + */ + // @ts-ignore + public containsAll(c: java.util.Collection): boolean; + /** + * Always returns {@code false}. + * A {@code SynchronousQueue} has no internal capacity. + */ + // @ts-ignore + public removeAll(c: java.util.Collection): boolean; + /** + * Always returns {@code false}. + * A {@code SynchronousQueue} has no internal capacity. + */ + // @ts-ignore + public retainAll(c: java.util.Collection): boolean; + /** + * Always returns {@code null}. + * A {@code SynchronousQueue} does not return elements + * unless actively waited on. + */ + // @ts-ignore + public peek(): java.lang.Object; + /** + * Returns an empty iterator in which {@code hasNext} always returns + * {@code false}. + */ + // @ts-ignore + public iterator(): java.util.Iterator; + /** + * Returns an empty spliterator in which calls to + * {@link java.util.Spliterator#trySplit()} always return {@code null}. + */ + // @ts-ignore + public spliterator(): java.util.Spliterator; + /** + * Returns a zero-length array. + */ + // @ts-ignore + public toArray(): java.lang.Object[]; + /** + * Sets the zeroeth element of the specified array to {@code null} + * (if the array has non-zero length) and returns it. + */ + // @ts-ignore + public toArray(a: java.lang.Object): java.lang.Object[]; + // @ts-ignore + public drainTo(c: java.util.Collection): number; + // @ts-ignore + public drainTo(c: java.util.Collection, maxElements: number): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.ThreadFactory.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.ThreadFactory.d.ts new file mode 100644 index 00000000..8fca2651 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.ThreadFactory.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + interface ThreadFactory { + /** + * Constructs a new {@code Thread}. Implementations may also initialize + * priority, name, daemon status, {@code ThreadGroup}, etc. + */ + // @ts-ignore + newThread(r: java.lang.Runnable): java.lang.Thread; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.ThreadLocalRandom.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.ThreadLocalRandom.d.ts new file mode 100644 index 00000000..20455e81 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.ThreadLocalRandom.d.ts @@ -0,0 +1,168 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class ThreadLocalRandom extends java.util.Random { + /** + * Returns the current thread's {@code ThreadLocalRandom}. + */ + // @ts-ignore + public static current(): java.util.concurrent.ThreadLocalRandom; + /** + * Throws {@code UnsupportedOperationException}. Setting seeds in + * this generator is not supported. + */ + // @ts-ignore + public setSeed(seed: number): void; + // @ts-ignore + protected next(bits: number): number; + /** + * Returns a pseudorandom {@code int} value. + */ + // @ts-ignore + public nextInt(): number; + /** + * Returns a pseudorandom {@code int} value between zero (inclusive) + * and the specified bound (exclusive). + */ + // @ts-ignore + public nextInt(bound: number): number; + /** + * Returns a pseudorandom {@code int} value between the specified + * origin (inclusive) and the specified bound (exclusive). + */ + // @ts-ignore + public nextInt(origin: number, bound: number): number; + /** + * Returns a pseudorandom {@code long} value. + */ + // @ts-ignore + public nextLong(): number; + /** + * Returns a pseudorandom {@code long} value between zero (inclusive) + * and the specified bound (exclusive). + */ + // @ts-ignore + public nextLong(bound: number): number; + /** + * Returns a pseudorandom {@code long} value between the specified + * origin (inclusive) and the specified bound (exclusive). + */ + // @ts-ignore + public nextLong(origin: number, bound: number): number; + /** + * Returns a pseudorandom {@code double} value between zero + * (inclusive) and one (exclusive). + */ + // @ts-ignore + public nextDouble(): number; + /** + * Returns a pseudorandom {@code double} value between 0.0 + * (inclusive) and the specified bound (exclusive). + */ + // @ts-ignore + public nextDouble(bound: number): number; + /** + * Returns a pseudorandom {@code double} value between the specified + * origin (inclusive) and bound (exclusive). + */ + // @ts-ignore + public nextDouble(origin: number, bound: number): number; + /** + * Returns a pseudorandom {@code boolean} value. + */ + // @ts-ignore + public nextBoolean(): boolean; + /** + * Returns a pseudorandom {@code float} value between zero + * (inclusive) and one (exclusive). + */ + // @ts-ignore + public nextFloat(): number; + // @ts-ignore + public nextGaussian(): number; + /** + * Returns a stream producing the given {@code streamSize} number of + * pseudorandom {@code int} values. + */ + // @ts-ignore + public ints(streamSize: number): java.util.stream.IntStream; + /** + * Returns an effectively unlimited stream of pseudorandom {@code int} + * values. + */ + // @ts-ignore + public ints(): java.util.stream.IntStream; + /** + * Returns a stream producing the given {@code streamSize} number + * of pseudorandom {@code int} values, each conforming to the given + * origin (inclusive) and bound (exclusive). + */ + // @ts-ignore + public ints(streamSize: number, randomNumberOrigin: number, randomNumberBound: number): java.util.stream.IntStream; + /** + * Returns an effectively unlimited stream of pseudorandom {@code + * int} values, each conforming to the given origin (inclusive) and bound + * (exclusive). + */ + // @ts-ignore + public ints(randomNumberOrigin: number, randomNumberBound: number): java.util.stream.IntStream; + /** + * Returns a stream producing the given {@code streamSize} number of + * pseudorandom {@code long} values. + */ + // @ts-ignore + public longs(streamSize: number): java.util.stream.LongStream; + /** + * Returns an effectively unlimited stream of pseudorandom {@code long} + * values. + */ + // @ts-ignore + public longs(): java.util.stream.LongStream; + /** + * Returns a stream producing the given {@code streamSize} number of + * pseudorandom {@code long}, each conforming to the given origin + * (inclusive) and bound (exclusive). + */ + // @ts-ignore + public longs(streamSize: number, randomNumberOrigin: number, randomNumberBound: number): java.util.stream.LongStream; + /** + * Returns an effectively unlimited stream of pseudorandom {@code + * long} values, each conforming to the given origin (inclusive) and bound + * (exclusive). + */ + // @ts-ignore + public longs(randomNumberOrigin: number, randomNumberBound: number): java.util.stream.LongStream; + /** + * Returns a stream producing the given {@code streamSize} number of + * pseudorandom {@code double} values, each between zero + * (inclusive) and one (exclusive). + */ + // @ts-ignore + public doubles(streamSize: number): java.util.stream.DoubleStream; + /** + * Returns an effectively unlimited stream of pseudorandom {@code + * double} values, each between zero (inclusive) and one + * (exclusive). + */ + // @ts-ignore + public doubles(): java.util.stream.DoubleStream; + /** + * Returns a stream producing the given {@code streamSize} number of + * pseudorandom {@code double} values, each conforming to the given origin + * (inclusive) and bound (exclusive). + */ + // @ts-ignore + public doubles(streamSize: number, randomNumberOrigin: number, randomNumberBound: number): java.util.stream.DoubleStream; + /** + * Returns an effectively unlimited stream of pseudorandom {@code + * double} values, each conforming to the given origin (inclusive) and bound + * (exclusive). + */ + // @ts-ignore + public doubles(randomNumberOrigin: number, randomNumberBound: number): java.util.stream.DoubleStream; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.ThreadPoolExecutor.AbortPolicy.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.ThreadPoolExecutor.AbortPolicy.d.ts new file mode 100644 index 00000000..2396296f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.ThreadPoolExecutor.AbortPolicy.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace ThreadPoolExecutor { + // @ts-ignore + class AbortPolicy extends java.lang.Object { + /** + * Creates an {@code AbortPolicy}. + */ + // @ts-ignore + constructor() + /** + * Always throws RejectedExecutionException. + */ + // @ts-ignore + public rejectedExecution(r: java.lang.Runnable, e: java.util.concurrent.ThreadPoolExecutor): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy.d.ts new file mode 100644 index 00000000..83db088f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace ThreadPoolExecutor { + // @ts-ignore + class CallerRunsPolicy extends java.lang.Object { + /** + * Creates a {@code CallerRunsPolicy}. + */ + // @ts-ignore + constructor() + /** + * Executes task r in the caller's thread, unless the executor + * has been shut down, in which case the task is discarded. + */ + // @ts-ignore + public rejectedExecution(r: java.lang.Runnable, e: java.util.concurrent.ThreadPoolExecutor): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy.d.ts new file mode 100644 index 00000000..b696ad7e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace ThreadPoolExecutor { + // @ts-ignore + class DiscardOldestPolicy extends java.lang.Object { + /** + * Creates a {@code DiscardOldestPolicy} for the given executor. + */ + // @ts-ignore + constructor() + /** + * Obtains and ignores the next task that the executor + * would otherwise execute, if one is immediately available, + * and then retries execution of task r, unless the executor + * is shut down, in which case task r is instead discarded. + */ + // @ts-ignore + public rejectedExecution(r: java.lang.Runnable, e: java.util.concurrent.ThreadPoolExecutor): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.ThreadPoolExecutor.DiscardPolicy.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.ThreadPoolExecutor.DiscardPolicy.d.ts new file mode 100644 index 00000000..6f0c68d8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.ThreadPoolExecutor.DiscardPolicy.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace ThreadPoolExecutor { + // @ts-ignore + class DiscardPolicy extends java.lang.Object { + /** + * Creates a {@code DiscardPolicy}. + */ + // @ts-ignore + constructor() + /** + * Does nothing, which has the effect of discarding task r. + */ + // @ts-ignore + public rejectedExecution(r: java.lang.Runnable, e: java.util.concurrent.ThreadPoolExecutor): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.ThreadPoolExecutor.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.ThreadPoolExecutor.d.ts new file mode 100644 index 00000000..ac9c67ac --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.ThreadPoolExecutor.d.ts @@ -0,0 +1,330 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class ThreadPoolExecutor extends java.util.concurrent.AbstractExecutorService { + /** + * Creates a new {@code ThreadPoolExecutor} with the given initial + * parameters and default thread factory and rejected execution handler. + * It may be more convenient to use one of the {@link Executors} factory + * methods instead of this general purpose constructor. + */ + // @ts-ignore + constructor(corePoolSize: number, maximumPoolSize: number, keepAliveTime: number, unit: java.util.concurrent.TimeUnit, workQueue: java.util.concurrent.BlockingQueue) + /** + * Creates a new {@code ThreadPoolExecutor} with the given initial + * parameters and default rejected execution handler. + */ + // @ts-ignore + constructor(corePoolSize: number, maximumPoolSize: number, keepAliveTime: number, unit: java.util.concurrent.TimeUnit, workQueue: java.util.concurrent.BlockingQueue, threadFactory: java.util.concurrent.ThreadFactory) + /** + * Creates a new {@code ThreadPoolExecutor} with the given initial + * parameters and default thread factory. + */ + // @ts-ignore + constructor(corePoolSize: number, maximumPoolSize: number, keepAliveTime: number, unit: java.util.concurrent.TimeUnit, workQueue: java.util.concurrent.BlockingQueue, handler: java.util.concurrent.RejectedExecutionHandler) + /** + * Creates a new {@code ThreadPoolExecutor} with the given initial + * parameters. + */ + // @ts-ignore + constructor(corePoolSize: number, maximumPoolSize: number, keepAliveTime: number, unit: java.util.concurrent.TimeUnit, workQueue: java.util.concurrent.BlockingQueue, threadFactory: java.util.concurrent.ThreadFactory, handler: java.util.concurrent.RejectedExecutionHandler) + /** + * Executes the given task sometime in the future. The task + * may execute in a new thread or in an existing pooled thread. + * If the task cannot be submitted for execution, either because this + * executor has been shutdown or because its capacity has been reached, + * the task is handled by the current {@code RejectedExecutionHandler}. + */ + // @ts-ignore + public execute(command: java.lang.Runnable): void; + /** + * Initiates an orderly shutdown in which previously submitted + * tasks are executed, but no new tasks will be accepted. + * Invocation has no additional effect if already shut down. + *

This method does not wait for previously submitted tasks to + * complete execution. Use {@link #awaitTermination awaitTermination} + * to do that. + */ + // @ts-ignore + public shutdown(): void; + /** + * Attempts to stop all actively executing tasks, halts the + * processing of waiting tasks, and returns a list of the tasks + * that were awaiting execution. These tasks are drained (removed) + * from the task queue upon return from this method. + *

This method does not wait for actively executing tasks to + * terminate. Use {@link #awaitTermination awaitTermination} to + * do that. + *

There are no guarantees beyond best-effort attempts to stop + * processing actively executing tasks. This implementation + * cancels tasks via {@link Thread#interrupt}, so any task that + * fails to respond to interrupts may never terminate. + */ + // @ts-ignore + public shutdownNow(): java.util.List; + // @ts-ignore + public isShutdown(): boolean; + /** + * Returns true if this executor is in the process of terminating + * after {@link #shutdown} or {@link #shutdownNow} but has not + * completely terminated. This method may be useful for + * debugging. A return of {@code true} reported a sufficient + * period after shutdown may indicate that submitted tasks have + * ignored or suppressed interruption, causing this executor not + * to properly terminate. + */ + // @ts-ignore + public isTerminating(): boolean; + // @ts-ignore + public isTerminated(): boolean; + // @ts-ignore + public awaitTermination(timeout: number, unit: java.util.concurrent.TimeUnit): boolean; + /** + * Invokes {@code shutdown} when this executor is no longer + * referenced and it has no threads. + */ + // @ts-ignore + protected finalize(): void; + /** + * Sets the thread factory used to create new threads. + */ + // @ts-ignore + public setThreadFactory(threadFactory: java.util.concurrent.ThreadFactory): void; + /** + * Returns the thread factory used to create new threads. + */ + // @ts-ignore + public getThreadFactory(): java.util.concurrent.ThreadFactory; + /** + * Sets a new handler for unexecutable tasks. + */ + // @ts-ignore + public setRejectedExecutionHandler(handler: java.util.concurrent.RejectedExecutionHandler): void; + /** + * Returns the current handler for unexecutable tasks. + */ + // @ts-ignore + public getRejectedExecutionHandler(): java.util.concurrent.RejectedExecutionHandler; + /** + * Sets the core number of threads. This overrides any value set + * in the constructor. If the new value is smaller than the + * current value, excess existing threads will be terminated when + * they next become idle. If larger, new threads will, if needed, + * be started to execute any queued tasks. + */ + // @ts-ignore + public setCorePoolSize(corePoolSize: number): void; + /** + * Returns the core number of threads. + */ + // @ts-ignore + public getCorePoolSize(): number; + /** + * Starts a core thread, causing it to idly wait for work. This + * overrides the default policy of starting core threads only when + * new tasks are executed. This method will return {@code false} + * if all core threads have already been started. + */ + // @ts-ignore + public prestartCoreThread(): boolean; + /** + * Starts all core threads, causing them to idly wait for work. This + * overrides the default policy of starting core threads only when + * new tasks are executed. + */ + // @ts-ignore + public prestartAllCoreThreads(): number; + /** + * Returns true if this pool allows core threads to time out and + * terminate if no tasks arrive within the keepAlive time, being + * replaced if needed when new tasks arrive. When true, the same + * keep-alive policy applying to non-core threads applies also to + * core threads. When false (the default), core threads are never + * terminated due to lack of incoming tasks. + */ + // @ts-ignore + public allowsCoreThreadTimeOut(): boolean; + /** + * Sets the policy governing whether core threads may time out and + * terminate if no tasks arrive within the keep-alive time, being + * replaced if needed when new tasks arrive. When false, core + * threads are never terminated due to lack of incoming + * tasks. When true, the same keep-alive policy applying to + * non-core threads applies also to core threads. To avoid + * continual thread replacement, the keep-alive time must be + * greater than zero when setting {@code true}. This method + * should in general be called before the pool is actively used. + */ + // @ts-ignore + public allowCoreThreadTimeOut(value: boolean): void; + /** + * Sets the maximum allowed number of threads. This overrides any + * value set in the constructor. If the new value is smaller than + * the current value, excess existing threads will be + * terminated when they next become idle. + */ + // @ts-ignore + public setMaximumPoolSize(maximumPoolSize: number): void; + /** + * Returns the maximum allowed number of threads. + */ + // @ts-ignore + public getMaximumPoolSize(): number; + /** + * Sets the time limit for which threads may remain idle before + * being terminated. If there are more than the core number of + * threads currently in the pool, after waiting this amount of + * time without processing a task, excess threads will be + * terminated. This overrides any value set in the constructor. + */ + // @ts-ignore + public setKeepAliveTime(time: number, unit: java.util.concurrent.TimeUnit): void; + /** + * Returns the thread keep-alive time, which is the amount of time + * that threads in excess of the core pool size may remain + * idle before being terminated. + */ + // @ts-ignore + public getKeepAliveTime(unit: java.util.concurrent.TimeUnit): number; + /** + * Returns the task queue used by this executor. Access to the + * task queue is intended primarily for debugging and monitoring. + * This queue may be in active use. Retrieving the task queue + * does not prevent queued tasks from executing. + */ + // @ts-ignore + public getQueue(): java.util.concurrent.BlockingQueue; + /** + * Removes this task from the executor's internal queue if it is + * present, thus causing it not to be run if it has not already + * started. + *

This method may be useful as one part of a cancellation + * scheme. It may fail to remove tasks that have been converted + * into other forms before being placed on the internal queue. For + * example, a task entered using {@code submit} might be + * converted into a form that maintains {@code Future} status. + * However, in such cases, method {@link #purge} may be used to + * remove those Futures that have been cancelled. + */ + // @ts-ignore + public remove(task: java.lang.Runnable): boolean; + /** + * Tries to remove from the work queue all {@link Future} + * tasks that have been cancelled. This method can be useful as a + * storage reclamation operation, that has no other impact on + * functionality. Cancelled tasks are never executed, but may + * accumulate in work queues until worker threads can actively + * remove them. Invoking this method instead tries to remove them now. + * However, this method may fail to remove tasks in + * the presence of interference by other threads. + */ + // @ts-ignore + public purge(): void; + /** + * Returns the current number of threads in the pool. + */ + // @ts-ignore + public getPoolSize(): number; + /** + * Returns the approximate number of threads that are actively + * executing tasks. + */ + // @ts-ignore + public getActiveCount(): number; + /** + * Returns the largest number of threads that have ever + * simultaneously been in the pool. + */ + // @ts-ignore + public getLargestPoolSize(): number; + /** + * Returns the approximate total number of tasks that have ever been + * scheduled for execution. Because the states of tasks and + * threads may change dynamically during computation, the returned + * value is only an approximation. + */ + // @ts-ignore + public getTaskCount(): number; + /** + * Returns the approximate total number of tasks that have + * completed execution. Because the states of tasks and threads + * may change dynamically during computation, the returned value + * is only an approximation, but one that does not ever decrease + * across successive calls. + */ + // @ts-ignore + public getCompletedTaskCount(): number; + /** + * Returns a string identifying this pool, as well as its state, + * including indications of run state and estimated worker and + * task counts. + */ + // @ts-ignore + public toString(): string; + /** + * Method invoked prior to executing the given Runnable in the + * given thread. This method is invoked by thread {@code t} that + * will execute task {@code r}, and may be used to re-initialize + * ThreadLocals, or to perform logging. + *

This implementation does nothing, but may be customized in + * subclasses. Note: To properly nest multiple overridings, subclasses + * should generally invoke {@code super.beforeExecute} at the end of + * this method. + */ + // @ts-ignore + protected beforeExecute(t: java.lang.Thread, r: java.lang.Runnable): void; + /** + * Method invoked upon completion of execution of the given Runnable. + * This method is invoked by the thread that executed the task. If + * non-null, the Throwable is the uncaught {@code RuntimeException} + * or {@code Error} that caused execution to terminate abruptly. + *

This implementation does nothing, but may be customized in + * subclasses. Note: To properly nest multiple overridings, subclasses + * should generally invoke {@code super.afterExecute} at the + * beginning of this method. + *

Note: When actions are enclosed in tasks (such as + * {@link FutureTask}) either explicitly or via methods such as + * {@code submit}, these task objects catch and maintain + * computational exceptions, and so they do not cause abrupt + * termination, and the internal exceptions are not + * passed to this method. If you would like to trap both kinds of + * failures in this method, you can further probe for such cases, + * as in this sample subclass that prints either the direct cause + * or the underlying exception if a task has been aborted: + *

 {@code
+                 * class ExtendedExecutor extends ThreadPoolExecutor {
+                 * // ...
+                 * protected void afterExecute(Runnable r, Throwable t) {
+                 * super.afterExecute(r, t);
+                 * if (t == null && r instanceof Future) {
+                 * try {
+                 * Object result = ((Future) r).get();
+                 * } catch (CancellationException ce) {
+                 * t = ce;
+                 * } catch (ExecutionException ee) {
+                 * t = ee.getCause();
+                 * } catch (InterruptedException ie) {
+                 * Thread.currentThread().interrupt(); // ignore/reset
+                 * }
+                 * }
+                 * if (t != null)
+                 * System.out.println(t);
+                 * }
+                 * }}
+ */ + // @ts-ignore + protected afterExecute(r: java.lang.Runnable, t: java.lang.Throwable): void; + /** + * Method invoked when the Executor has terminated. Default + * implementation does nothing. Note: To properly nest multiple + * overridings, subclasses should generally invoke + * {@code super.terminated} within this method. + */ + // @ts-ignore + protected terminated(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.TimeUnit.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.TimeUnit.d.ts new file mode 100644 index 00000000..a8a5266b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.TimeUnit.d.ts @@ -0,0 +1,118 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class TimeUnit extends java.lang.Enum { + // @ts-ignore + public static NANOSECONDS: java.util.concurrent.TimeUnit; + // @ts-ignore + public static MICROSECONDS: java.util.concurrent.TimeUnit; + // @ts-ignore + public static MILLISECONDS: java.util.concurrent.TimeUnit; + // @ts-ignore + public static SECONDS: java.util.concurrent.TimeUnit; + // @ts-ignore + public static MINUTES: java.util.concurrent.TimeUnit; + // @ts-ignore + public static HOURS: java.util.concurrent.TimeUnit; + // @ts-ignore + public static DAYS: java.util.concurrent.TimeUnit; + // @ts-ignore + public static values(): java.util.concurrent.TimeUnit[]; + // @ts-ignore + public static valueOf(name: string): java.util.concurrent.TimeUnit; + /** + * Converts the given time duration in the given unit to this unit. + * Conversions from finer to coarser granularities truncate, so + * lose precision. For example, converting {@code 999} milliseconds + * to seconds results in {@code 0}. Conversions from coarser to + * finer granularities with arguments that would numerically + * overflow saturate to {@code Long.MIN_VALUE} if negative or + * {@code Long.MAX_VALUE} if positive. + *

For example, to convert 10 minutes to milliseconds, use: + * {@code TimeUnit.MILLISECONDS.convert(10L, TimeUnit.MINUTES)} + */ + // @ts-ignore + public convert(sourceDuration: number, sourceUnit: java.util.concurrent.TimeUnit): number; + /** + * Equivalent to + * {@link #convert(long, TimeUnit) NANOSECONDS.convert(duration, this)}. + */ + // @ts-ignore + public toNanos(duration: number): number; + /** + * Equivalent to + * {@link #convert(long, TimeUnit) MICROSECONDS.convert(duration, this)}. + */ + // @ts-ignore + public toMicros(duration: number): number; + /** + * Equivalent to + * {@link #convert(long, TimeUnit) MILLISECONDS.convert(duration, this)}. + */ + // @ts-ignore + public toMillis(duration: number): number; + /** + * Equivalent to + * {@link #convert(long, TimeUnit) SECONDS.convert(duration, this)}. + */ + // @ts-ignore + public toSeconds(duration: number): number; + /** + * Equivalent to + * {@link #convert(long, TimeUnit) MINUTES.convert(duration, this)}. + */ + // @ts-ignore + public toMinutes(duration: number): number; + /** + * Equivalent to + * {@link #convert(long, TimeUnit) HOURS.convert(duration, this)}. + */ + // @ts-ignore + public toHours(duration: number): number; + /** + * Equivalent to + * {@link #convert(long, TimeUnit) DAYS.convert(duration, this)}. + */ + // @ts-ignore + public toDays(duration: number): number; + /** + * Performs a timed {@link Object#wait(long, int) Object.wait} + * using this time unit. + * This is a convenience method that converts timeout arguments + * into the form required by the {@code Object.wait} method. + *

For example, you could implement a blocking {@code poll} + * method (see {@link BlockingQueue#poll BlockingQueue.poll}) + * using: + *

 {@code
+                 * public synchronized Object poll(long timeout, TimeUnit unit)
+                 * throws InterruptedException {
+                 * while (empty) {
+                 * unit.timedWait(this, timeout);
+                 * ...
+                 * }
+                 * }}
+ */ + // @ts-ignore + public timedWait(obj: java.lang.Object, timeout: number): void; + /** + * Performs a timed {@link Thread#join(long, int) Thread.join} + * using this time unit. + * This is a convenience method that converts time arguments into the + * form required by the {@code Thread.join} method. + */ + // @ts-ignore + public timedJoin(thread: java.lang.Thread, timeout: number): void; + /** + * Performs a {@link Thread#sleep(long, int) Thread.sleep} using + * this time unit. + * This is a convenience method that converts time arguments into the + * form required by the {@code Thread.sleep} method. + */ + // @ts-ignore + public sleep(timeout: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.TimeoutException.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.TimeoutException.d.ts new file mode 100644 index 00000000..56d8793f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.TimeoutException.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + class TimeoutException extends java.lang.Exception { + /** + * Constructs a {@code TimeoutException} with no specified detail + * message. + */ + // @ts-ignore + constructor() + /** + * Constructs a {@code TimeoutException} with the specified detail + * message. + */ + // @ts-ignore + constructor(message: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.TransferQueue.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.TransferQueue.d.ts new file mode 100644 index 00000000..1b15c6f9 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.TransferQueue.d.ts @@ -0,0 +1,61 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + // @ts-ignore + interface TransferQueue { + /** + * Transfers the element to a waiting consumer immediately, if possible. + *

More precisely, transfers the specified element immediately + * if there exists a consumer already waiting to receive it (in + * {@link #take} or timed {@link #poll(long,TimeUnit) poll}), + * otherwise returning {@code false} without enqueuing the element. + */ + // @ts-ignore + tryTransfer(e: java.lang.Object): boolean; + /** + * Transfers the element to a consumer, waiting if necessary to do so. + *

More precisely, transfers the specified element immediately + * if there exists a consumer already waiting to receive it (in + * {@link #take} or timed {@link #poll(long,TimeUnit) poll}), + * else waits until the element is received by a consumer. + */ + // @ts-ignore + transfer(e: java.lang.Object): void; + /** + * Transfers the element to a consumer if it is possible to do so + * before the timeout elapses. + *

More precisely, transfers the specified element immediately + * if there exists a consumer already waiting to receive it (in + * {@link #take} or timed {@link #poll(long,TimeUnit) poll}), + * else waits until the element is received by a consumer, + * returning {@code false} if the specified wait time elapses + * before the element can be transferred. + */ + // @ts-ignore + tryTransfer(e: java.lang.Object, timeout: number, unit: java.util.concurrent.TimeUnit): boolean; + /** + * Returns {@code true} if there is at least one consumer waiting + * to receive an element via {@link #take} or + * timed {@link #poll(long,TimeUnit) poll}. + * The return value represents a momentary state of affairs. + */ + // @ts-ignore + hasWaitingConsumer(): boolean; + /** + * Returns an estimate of the number of consumers waiting to + * receive elements via {@link #take} or timed + * {@link #poll(long,TimeUnit) poll}. The return value is an + * approximation of a momentary state of affairs, that may be + * inaccurate if consumers have completed or given up waiting. + * The value may be useful for monitoring and heuristics, but + * not for synchronization control. Implementations of this + * method are likely to be noticeably slower than those for + * {@link #hasWaitingConsumer}. + */ + // @ts-ignore + getWaitingConsumerCount(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicBoolean.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicBoolean.d.ts new file mode 100644 index 00000000..fe15ee05 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicBoolean.d.ts @@ -0,0 +1,62 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace atomic { + // @ts-ignore + class AtomicBoolean extends java.lang.Object { + /** + * Creates a new {@code AtomicBoolean} with the given initial value. + */ + // @ts-ignore + constructor(initialValue: boolean) + /** + * Creates a new {@code AtomicBoolean} with initial value {@code false}. + */ + // @ts-ignore + constructor() + /** + * Returns the current value. + */ + // @ts-ignore + public get(): boolean; + /** + * Atomically sets the value to the given updated value + * if the current value {@code ==} the expected value. + */ + // @ts-ignore + public compareAndSet(expect: boolean, update: boolean): boolean; + /** + * Atomically sets the value to the given updated value + * if the current value {@code ==} the expected value. + *

May fail + * spuriously and does not provide ordering guarantees, so is + * only rarely an appropriate alternative to {@code compareAndSet}. + */ + // @ts-ignore + public weakCompareAndSet(expect: boolean, update: boolean): boolean; + /** + * Unconditionally sets to the given value. + */ + // @ts-ignore + public set(newValue: boolean): void; + /** + * Eventually sets to the given value. + */ + // @ts-ignore + public lazySet(newValue: boolean): void; + /** + * Atomically sets to the given value and returns the previous value. + */ + // @ts-ignore + public getAndSet(newValue: boolean): boolean; + /** + * Returns the String representation of the current value. + */ + // @ts-ignore + public toString(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicInteger.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicInteger.d.ts new file mode 100644 index 00000000..9a6c12d1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicInteger.d.ts @@ -0,0 +1,153 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace atomic { + // @ts-ignore + class AtomicInteger extends java.lang.Number { + /** + * Creates a new AtomicInteger with the given initial value. + */ + // @ts-ignore + constructor(initialValue: number) + /** + * Creates a new AtomicInteger with initial value {@code 0}. + */ + // @ts-ignore + constructor() + /** + * Gets the current value. + */ + // @ts-ignore + public get(): number; + /** + * Sets to the given value. + */ + // @ts-ignore + public set(newValue: number): void; + /** + * Eventually sets to the given value. + */ + // @ts-ignore + public lazySet(newValue: number): void; + /** + * Atomically sets to the given value and returns the old value. + */ + // @ts-ignore + public getAndSet(newValue: number): number; + /** + * Atomically sets the value to the given updated value + * if the current value {@code ==} the expected value. + */ + // @ts-ignore + public compareAndSet(expect: number, update: number): boolean; + /** + * Atomically sets the value to the given updated value + * if the current value {@code ==} the expected value. + *

May fail + * spuriously and does not provide ordering guarantees, so is + * only rarely an appropriate alternative to {@code compareAndSet}. + */ + // @ts-ignore + public weakCompareAndSet(expect: number, update: number): boolean; + /** + * Atomically increments by one the current value. + */ + // @ts-ignore + public getAndIncrement(): number; + /** + * Atomically decrements by one the current value. + */ + // @ts-ignore + public getAndDecrement(): number; + /** + * Atomically adds the given value to the current value. + */ + // @ts-ignore + public getAndAdd(delta: number): number; + /** + * Atomically increments by one the current value. + */ + // @ts-ignore + public incrementAndGet(): number; + /** + * Atomically decrements by one the current value. + */ + // @ts-ignore + public decrementAndGet(): number; + /** + * Atomically adds the given value to the current value. + */ + // @ts-ignore + public addAndGet(delta: number): number; + /** + * Atomically updates the current value with the results of + * applying the given function, returning the previous value. The + * function should be side-effect-free, since it may be re-applied + * when attempted updates fail due to contention among threads. + */ + // @ts-ignore + public getAndUpdate(updateFunction: java.util.function$.IntUnaryOperator): number; + /** + * Atomically updates the current value with the results of + * applying the given function, returning the updated value. The + * function should be side-effect-free, since it may be re-applied + * when attempted updates fail due to contention among threads. + */ + // @ts-ignore + public updateAndGet(updateFunction: java.util.function$.IntUnaryOperator): number; + /** + * Atomically updates the current value with the results of + * applying the given function to the current and given values, + * returning the previous value. The function should be + * side-effect-free, since it may be re-applied when attempted + * updates fail due to contention among threads. The function + * is applied with the current value as its first argument, + * and the given update as the second argument. + */ + // @ts-ignore + public getAndAccumulate(x: number, accumulatorFunction: java.util.function$.IntBinaryOperator): number; + /** + * Atomically updates the current value with the results of + * applying the given function to the current and given values, + * returning the updated value. The function should be + * side-effect-free, since it may be re-applied when attempted + * updates fail due to contention among threads. The function + * is applied with the current value as its first argument, + * and the given update as the second argument. + */ + // @ts-ignore + public accumulateAndGet(x: number, accumulatorFunction: java.util.function$.IntBinaryOperator): number; + /** + * Returns the String representation of the current value. + */ + // @ts-ignore + public toString(): string; + /** + * Returns the value of this {@code AtomicInteger} as an {@code int}. + */ + // @ts-ignore + public intValue(): number; + /** + * Returns the value of this {@code AtomicInteger} as a {@code long} + * after a widening primitive conversion. + */ + // @ts-ignore + public longValue(): number; + /** + * Returns the value of this {@code AtomicInteger} as a {@code float} + * after a widening primitive conversion. + */ + // @ts-ignore + public floatValue(): number; + /** + * Returns the value of this {@code AtomicInteger} as a {@code double} + * after a widening primitive conversion. + */ + // @ts-ignore + public doubleValue(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicIntegerArray.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicIntegerArray.d.ts new file mode 100644 index 00000000..6228a3af --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicIntegerArray.d.ts @@ -0,0 +1,138 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace atomic { + // @ts-ignore + class AtomicIntegerArray extends java.lang.Object { + /** + * Creates a new AtomicIntegerArray of the given length, with all + * elements initially zero. + */ + // @ts-ignore + constructor(length: number) + /** + * Creates a new AtomicIntegerArray with the same length as, and + * all elements copied from, the given array. + */ + // @ts-ignore + constructor(array: number) + /** + * Returns the length of the array. + */ + // @ts-ignore + public length(): number; + /** + * Gets the current value at position {@code i}. + */ + // @ts-ignore + public get(i: number): number; + /** + * Sets the element at position {@code i} to the given value. + */ + // @ts-ignore + public set(i: number, newValue: number): void; + /** + * Eventually sets the element at position {@code i} to the given value. + */ + // @ts-ignore + public lazySet(i: number, newValue: number): void; + /** + * Atomically sets the element at position {@code i} to the given + * value and returns the old value. + */ + // @ts-ignore + public getAndSet(i: number, newValue: number): number; + /** + * Atomically sets the element at position {@code i} to the given + * updated value if the current value {@code ==} the expected value. + */ + // @ts-ignore + public compareAndSet(i: number, expect: number, update: number): boolean; + /** + * Atomically sets the element at position {@code i} to the given + * updated value if the current value {@code ==} the expected value. + *

May fail + * spuriously and does not provide ordering guarantees, so is + * only rarely an appropriate alternative to {@code compareAndSet}. + */ + // @ts-ignore + public weakCompareAndSet(i: number, expect: number, update: number): boolean; + /** + * Atomically increments by one the element at index {@code i}. + */ + // @ts-ignore + public getAndIncrement(i: number): number; + /** + * Atomically decrements by one the element at index {@code i}. + */ + // @ts-ignore + public getAndDecrement(i: number): number; + /** + * Atomically adds the given value to the element at index {@code i}. + */ + // @ts-ignore + public getAndAdd(i: number, delta: number): number; + /** + * Atomically increments by one the element at index {@code i}. + */ + // @ts-ignore + public incrementAndGet(i: number): number; + /** + * Atomically decrements by one the element at index {@code i}. + */ + // @ts-ignore + public decrementAndGet(i: number): number; + /** + * Atomically adds the given value to the element at index {@code i}. + */ + // @ts-ignore + public addAndGet(i: number, delta: number): number; + /** + * Atomically updates the element at index {@code i} with the results + * of applying the given function, returning the previous value. The + * function should be side-effect-free, since it may be re-applied + * when attempted updates fail due to contention among threads. + */ + // @ts-ignore + public getAndUpdate(i: number, updateFunction: java.util.function$.IntUnaryOperator): number; + /** + * Atomically updates the element at index {@code i} with the results + * of applying the given function, returning the updated value. The + * function should be side-effect-free, since it may be re-applied + * when attempted updates fail due to contention among threads. + */ + // @ts-ignore + public updateAndGet(i: number, updateFunction: java.util.function$.IntUnaryOperator): number; + /** + * Atomically updates the element at index {@code i} with the + * results of applying the given function to the current and + * given values, returning the previous value. The function should + * be side-effect-free, since it may be re-applied when attempted + * updates fail due to contention among threads. The function is + * applied with the current value at index {@code i} as its first + * argument, and the given update as the second argument. + */ + // @ts-ignore + public getAndAccumulate(i: number, x: number, accumulatorFunction: java.util.function$.IntBinaryOperator): number; + /** + * Atomically updates the element at index {@code i} with the + * results of applying the given function to the current and + * given values, returning the updated value. The function should + * be side-effect-free, since it may be re-applied when attempted + * updates fail due to contention among threads. The function is + * applied with the current value at index {@code i} as its first + * argument, and the given update as the second argument. + */ + // @ts-ignore + public accumulateAndGet(i: number, x: number, accumulatorFunction: java.util.function$.IntBinaryOperator): number; + /** + * Returns the String representation of the current values of array. + */ + // @ts-ignore + public toString(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicIntegerFieldUpdater.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicIntegerFieldUpdater.d.ts new file mode 100644 index 00000000..99200679 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicIntegerFieldUpdater.d.ts @@ -0,0 +1,144 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace atomic { + // @ts-ignore + abstract class AtomicIntegerFieldUpdater extends java.lang.Object { + /** + * Protected do-nothing constructor for use by subclasses. + */ + // @ts-ignore + constructor() + /** + * Creates and returns an updater for objects with the given field. + * The Class argument is needed to check that reflective types and + * generic types match. + */ + // @ts-ignore + public static newUpdater(tclass: java.lang.Class, fieldName: string): java.util.concurrent.atomic.AtomicIntegerFieldUpdater; + /** + * Atomically sets the field of the given object managed by this updater + * to the given updated value if the current value {@code ==} the + * expected value. This method is guaranteed to be atomic with respect to + * other calls to {@code compareAndSet} and {@code set}, but not + * necessarily with respect to other changes in the field. + */ + // @ts-ignore + public abstract compareAndSet(obj: java.lang.Object, expect: number, update: number): boolean; + /** + * Atomically sets the field of the given object managed by this updater + * to the given updated value if the current value {@code ==} the + * expected value. This method is guaranteed to be atomic with respect to + * other calls to {@code compareAndSet} and {@code set}, but not + * necessarily with respect to other changes in the field. + *

May fail + * spuriously and does not provide ordering guarantees, so is + * only rarely an appropriate alternative to {@code compareAndSet}. + */ + // @ts-ignore + public abstract weakCompareAndSet(obj: java.lang.Object, expect: number, update: number): boolean; + /** + * Sets the field of the given object managed by this updater to the + * given updated value. This operation is guaranteed to act as a volatile + * store with respect to subsequent invocations of {@code compareAndSet}. + */ + // @ts-ignore + public abstract set(obj: java.lang.Object, newValue: number): void; + /** + * Eventually sets the field of the given object managed by this + * updater to the given updated value. + */ + // @ts-ignore + public abstract lazySet(obj: java.lang.Object, newValue: number): void; + /** + * Gets the current value held in the field of the given object managed + * by this updater. + */ + // @ts-ignore + public abstract get(obj: java.lang.Object): number; + /** + * Atomically sets the field of the given object managed by this updater + * to the given value and returns the old value. + */ + // @ts-ignore + public getAndSet(obj: java.lang.Object, newValue: number): number; + /** + * Atomically increments by one the current value of the field of the + * given object managed by this updater. + */ + // @ts-ignore + public getAndIncrement(obj: java.lang.Object): number; + /** + * Atomically decrements by one the current value of the field of the + * given object managed by this updater. + */ + // @ts-ignore + public getAndDecrement(obj: java.lang.Object): number; + /** + * Atomically adds the given value to the current value of the field of + * the given object managed by this updater. + */ + // @ts-ignore + public getAndAdd(obj: java.lang.Object, delta: number): number; + /** + * Atomically increments by one the current value of the field of the + * given object managed by this updater. + */ + // @ts-ignore + public incrementAndGet(obj: java.lang.Object): number; + /** + * Atomically decrements by one the current value of the field of the + * given object managed by this updater. + */ + // @ts-ignore + public decrementAndGet(obj: java.lang.Object): number; + /** + * Atomically adds the given value to the current value of the field of + * the given object managed by this updater. + */ + // @ts-ignore + public addAndGet(obj: java.lang.Object, delta: number): number; + /** + * Atomically updates the field of the given object managed by this updater + * with the results of applying the given function, returning the previous + * value. The function should be side-effect-free, since it may be + * re-applied when attempted updates fail due to contention among threads. + */ + // @ts-ignore + public getAndUpdate(obj: java.lang.Object, updateFunction: java.util.function$.IntUnaryOperator): number; + /** + * Atomically updates the field of the given object managed by this updater + * with the results of applying the given function, returning the updated + * value. The function should be side-effect-free, since it may be + * re-applied when attempted updates fail due to contention among threads. + */ + // @ts-ignore + public updateAndGet(obj: java.lang.Object, updateFunction: java.util.function$.IntUnaryOperator): number; + /** + * Atomically updates the field of the given object managed by this + * updater with the results of applying the given function to the + * current and given values, returning the previous value. The + * function should be side-effect-free, since it may be re-applied + * when attempted updates fail due to contention among threads. The + * function is applied with the current value as its first argument, + * and the given update as the second argument. + */ + // @ts-ignore + public getAndAccumulate(obj: java.lang.Object, x: number, accumulatorFunction: java.util.function$.IntBinaryOperator): number; + /** + * Atomically updates the field of the given object managed by this + * updater with the results of applying the given function to the + * current and given values, returning the updated value. The + * function should be side-effect-free, since it may be re-applied + * when attempted updates fail due to contention among threads. The + * function is applied with the current value as its first argument, + * and the given update as the second argument. + */ + // @ts-ignore + public accumulateAndGet(obj: java.lang.Object, x: number, accumulatorFunction: java.util.function$.IntBinaryOperator): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicLong.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicLong.d.ts new file mode 100644 index 00000000..988ff4f1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicLong.d.ts @@ -0,0 +1,153 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace atomic { + // @ts-ignore + class AtomicLong extends java.lang.Number { + /** + * Creates a new AtomicLong with the given initial value. + */ + // @ts-ignore + constructor(initialValue: number) + /** + * Creates a new AtomicLong with initial value {@code 0}. + */ + // @ts-ignore + constructor() + /** + * Gets the current value. + */ + // @ts-ignore + public get(): number; + /** + * Sets to the given value. + */ + // @ts-ignore + public set(newValue: number): void; + /** + * Eventually sets to the given value. + */ + // @ts-ignore + public lazySet(newValue: number): void; + /** + * Atomically sets to the given value and returns the old value. + */ + // @ts-ignore + public getAndSet(newValue: number): number; + /** + * Atomically sets the value to the given updated value + * if the current value {@code ==} the expected value. + */ + // @ts-ignore + public compareAndSet(expect: number, update: number): boolean; + /** + * Atomically sets the value to the given updated value + * if the current value {@code ==} the expected value. + *

May fail + * spuriously and does not provide ordering guarantees, so is + * only rarely an appropriate alternative to {@code compareAndSet}. + */ + // @ts-ignore + public weakCompareAndSet(expect: number, update: number): boolean; + /** + * Atomically increments by one the current value. + */ + // @ts-ignore + public getAndIncrement(): number; + /** + * Atomically decrements by one the current value. + */ + // @ts-ignore + public getAndDecrement(): number; + /** + * Atomically adds the given value to the current value. + */ + // @ts-ignore + public getAndAdd(delta: number): number; + /** + * Atomically increments by one the current value. + */ + // @ts-ignore + public incrementAndGet(): number; + /** + * Atomically decrements by one the current value. + */ + // @ts-ignore + public decrementAndGet(): number; + /** + * Atomically adds the given value to the current value. + */ + // @ts-ignore + public addAndGet(delta: number): number; + /** + * Atomically updates the current value with the results of + * applying the given function, returning the previous value. The + * function should be side-effect-free, since it may be re-applied + * when attempted updates fail due to contention among threads. + */ + // @ts-ignore + public getAndUpdate(updateFunction: java.util.function$.LongUnaryOperator): number; + /** + * Atomically updates the current value with the results of + * applying the given function, returning the updated value. The + * function should be side-effect-free, since it may be re-applied + * when attempted updates fail due to contention among threads. + */ + // @ts-ignore + public updateAndGet(updateFunction: java.util.function$.LongUnaryOperator): number; + /** + * Atomically updates the current value with the results of + * applying the given function to the current and given values, + * returning the previous value. The function should be + * side-effect-free, since it may be re-applied when attempted + * updates fail due to contention among threads. The function + * is applied with the current value as its first argument, + * and the given update as the second argument. + */ + // @ts-ignore + public getAndAccumulate(x: number, accumulatorFunction: java.util.function$.LongBinaryOperator): number; + /** + * Atomically updates the current value with the results of + * applying the given function to the current and given values, + * returning the updated value. The function should be + * side-effect-free, since it may be re-applied when attempted + * updates fail due to contention among threads. The function + * is applied with the current value as its first argument, + * and the given update as the second argument. + */ + // @ts-ignore + public accumulateAndGet(x: number, accumulatorFunction: java.util.function$.LongBinaryOperator): number; + /** + * Returns the String representation of the current value. + */ + // @ts-ignore + public toString(): string; + /** + * Returns the value of this {@code AtomicLong} as an {@code int} + * after a narrowing primitive conversion. + */ + // @ts-ignore + public intValue(): number; + /** + * Returns the value of this {@code AtomicLong} as a {@code long}. + */ + // @ts-ignore + public longValue(): number; + /** + * Returns the value of this {@code AtomicLong} as a {@code float} + * after a widening primitive conversion. + */ + // @ts-ignore + public floatValue(): number; + /** + * Returns the value of this {@code AtomicLong} as a {@code double} + * after a widening primitive conversion. + */ + // @ts-ignore + public doubleValue(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicLongArray.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicLongArray.d.ts new file mode 100644 index 00000000..aaf4c997 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicLongArray.d.ts @@ -0,0 +1,138 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace atomic { + // @ts-ignore + class AtomicLongArray extends java.lang.Object { + /** + * Creates a new AtomicLongArray of the given length, with all + * elements initially zero. + */ + // @ts-ignore + constructor(length: number) + /** + * Creates a new AtomicLongArray with the same length as, and + * all elements copied from, the given array. + */ + // @ts-ignore + constructor(array: number) + /** + * Returns the length of the array. + */ + // @ts-ignore + public length(): number; + /** + * Gets the current value at position {@code i}. + */ + // @ts-ignore + public get(i: number): number; + /** + * Sets the element at position {@code i} to the given value. + */ + // @ts-ignore + public set(i: number, newValue: number): void; + /** + * Eventually sets the element at position {@code i} to the given value. + */ + // @ts-ignore + public lazySet(i: number, newValue: number): void; + /** + * Atomically sets the element at position {@code i} to the given value + * and returns the old value. + */ + // @ts-ignore + public getAndSet(i: number, newValue: number): number; + /** + * Atomically sets the element at position {@code i} to the given + * updated value if the current value {@code ==} the expected value. + */ + // @ts-ignore + public compareAndSet(i: number, expect: number, update: number): boolean; + /** + * Atomically sets the element at position {@code i} to the given + * updated value if the current value {@code ==} the expected value. + *

May fail + * spuriously and does not provide ordering guarantees, so is + * only rarely an appropriate alternative to {@code compareAndSet}. + */ + // @ts-ignore + public weakCompareAndSet(i: number, expect: number, update: number): boolean; + /** + * Atomically increments by one the element at index {@code i}. + */ + // @ts-ignore + public getAndIncrement(i: number): number; + /** + * Atomically decrements by one the element at index {@code i}. + */ + // @ts-ignore + public getAndDecrement(i: number): number; + /** + * Atomically adds the given value to the element at index {@code i}. + */ + // @ts-ignore + public getAndAdd(i: number, delta: number): number; + /** + * Atomically increments by one the element at index {@code i}. + */ + // @ts-ignore + public incrementAndGet(i: number): number; + /** + * Atomically decrements by one the element at index {@code i}. + */ + // @ts-ignore + public decrementAndGet(i: number): number; + /** + * Atomically adds the given value to the element at index {@code i}. + */ + // @ts-ignore + public addAndGet(i: number, delta: number): number; + /** + * Atomically updates the element at index {@code i} with the results + * of applying the given function, returning the previous value. The + * function should be side-effect-free, since it may be re-applied + * when attempted updates fail due to contention among threads. + */ + // @ts-ignore + public getAndUpdate(i: number, updateFunction: java.util.function$.LongUnaryOperator): number; + /** + * Atomically updates the element at index {@code i} with the results + * of applying the given function, returning the updated value. The + * function should be side-effect-free, since it may be re-applied + * when attempted updates fail due to contention among threads. + */ + // @ts-ignore + public updateAndGet(i: number, updateFunction: java.util.function$.LongUnaryOperator): number; + /** + * Atomically updates the element at index {@code i} with the + * results of applying the given function to the current and + * given values, returning the previous value. The function should + * be side-effect-free, since it may be re-applied when attempted + * updates fail due to contention among threads. The function is + * applied with the current value at index {@code i} as its first + * argument, and the given update as the second argument. + */ + // @ts-ignore + public getAndAccumulate(i: number, x: number, accumulatorFunction: java.util.function$.LongBinaryOperator): number; + /** + * Atomically updates the element at index {@code i} with the + * results of applying the given function to the current and + * given values, returning the updated value. The function should + * be side-effect-free, since it may be re-applied when attempted + * updates fail due to contention among threads. The function is + * applied with the current value at index {@code i} as its first + * argument, and the given update as the second argument. + */ + // @ts-ignore + public accumulateAndGet(i: number, x: number, accumulatorFunction: java.util.function$.LongBinaryOperator): number; + /** + * Returns the String representation of the current values of array. + */ + // @ts-ignore + public toString(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicLongFieldUpdater.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicLongFieldUpdater.d.ts new file mode 100644 index 00000000..c6d63a8d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicLongFieldUpdater.d.ts @@ -0,0 +1,144 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace atomic { + // @ts-ignore + abstract class AtomicLongFieldUpdater extends java.lang.Object { + /** + * Protected do-nothing constructor for use by subclasses. + */ + // @ts-ignore + constructor() + /** + * Creates and returns an updater for objects with the given field. + * The Class argument is needed to check that reflective types and + * generic types match. + */ + // @ts-ignore + public static newUpdater(tclass: java.lang.Class, fieldName: string): java.util.concurrent.atomic.AtomicLongFieldUpdater; + /** + * Atomically sets the field of the given object managed by this updater + * to the given updated value if the current value {@code ==} the + * expected value. This method is guaranteed to be atomic with respect to + * other calls to {@code compareAndSet} and {@code set}, but not + * necessarily with respect to other changes in the field. + */ + // @ts-ignore + public abstract compareAndSet(obj: java.lang.Object, expect: number, update: number): boolean; + /** + * Atomically sets the field of the given object managed by this updater + * to the given updated value if the current value {@code ==} the + * expected value. This method is guaranteed to be atomic with respect to + * other calls to {@code compareAndSet} and {@code set}, but not + * necessarily with respect to other changes in the field. + *

May fail + * spuriously and does not provide ordering guarantees, so is + * only rarely an appropriate alternative to {@code compareAndSet}. + */ + // @ts-ignore + public abstract weakCompareAndSet(obj: java.lang.Object, expect: number, update: number): boolean; + /** + * Sets the field of the given object managed by this updater to the + * given updated value. This operation is guaranteed to act as a volatile + * store with respect to subsequent invocations of {@code compareAndSet}. + */ + // @ts-ignore + public abstract set(obj: java.lang.Object, newValue: number): void; + /** + * Eventually sets the field of the given object managed by this + * updater to the given updated value. + */ + // @ts-ignore + public abstract lazySet(obj: java.lang.Object, newValue: number): void; + /** + * Gets the current value held in the field of the given object managed + * by this updater. + */ + // @ts-ignore + public abstract get(obj: java.lang.Object): number; + /** + * Atomically sets the field of the given object managed by this updater + * to the given value and returns the old value. + */ + // @ts-ignore + public getAndSet(obj: java.lang.Object, newValue: number): number; + /** + * Atomically increments by one the current value of the field of the + * given object managed by this updater. + */ + // @ts-ignore + public getAndIncrement(obj: java.lang.Object): number; + /** + * Atomically decrements by one the current value of the field of the + * given object managed by this updater. + */ + // @ts-ignore + public getAndDecrement(obj: java.lang.Object): number; + /** + * Atomically adds the given value to the current value of the field of + * the given object managed by this updater. + */ + // @ts-ignore + public getAndAdd(obj: java.lang.Object, delta: number): number; + /** + * Atomically increments by one the current value of the field of the + * given object managed by this updater. + */ + // @ts-ignore + public incrementAndGet(obj: java.lang.Object): number; + /** + * Atomically decrements by one the current value of the field of the + * given object managed by this updater. + */ + // @ts-ignore + public decrementAndGet(obj: java.lang.Object): number; + /** + * Atomically adds the given value to the current value of the field of + * the given object managed by this updater. + */ + // @ts-ignore + public addAndGet(obj: java.lang.Object, delta: number): number; + /** + * Atomically updates the field of the given object managed by this updater + * with the results of applying the given function, returning the previous + * value. The function should be side-effect-free, since it may be + * re-applied when attempted updates fail due to contention among threads. + */ + // @ts-ignore + public getAndUpdate(obj: java.lang.Object, updateFunction: java.util.function$.LongUnaryOperator): number; + /** + * Atomically updates the field of the given object managed by this updater + * with the results of applying the given function, returning the updated + * value. The function should be side-effect-free, since it may be + * re-applied when attempted updates fail due to contention among threads. + */ + // @ts-ignore + public updateAndGet(obj: java.lang.Object, updateFunction: java.util.function$.LongUnaryOperator): number; + /** + * Atomically updates the field of the given object managed by this + * updater with the results of applying the given function to the + * current and given values, returning the previous value. The + * function should be side-effect-free, since it may be re-applied + * when attempted updates fail due to contention among threads. The + * function is applied with the current value as its first argument, + * and the given update as the second argument. + */ + // @ts-ignore + public getAndAccumulate(obj: java.lang.Object, x: number, accumulatorFunction: java.util.function$.LongBinaryOperator): number; + /** + * Atomically updates the field of the given object managed by this + * updater with the results of applying the given function to the + * current and given values, returning the updated value. The + * function should be side-effect-free, since it may be re-applied + * when attempted updates fail due to contention among threads. The + * function is applied with the current value as its first argument, + * and the given update as the second argument. + */ + // @ts-ignore + public accumulateAndGet(obj: java.lang.Object, x: number, accumulatorFunction: java.util.function$.LongBinaryOperator): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicMarkableReference.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicMarkableReference.d.ts new file mode 100644 index 00000000..7de8fa81 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicMarkableReference.d.ts @@ -0,0 +1,69 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace atomic { + // @ts-ignore + class AtomicMarkableReference extends java.lang.Object { + /** + * Creates a new {@code AtomicMarkableReference} with the given + * initial values. + */ + // @ts-ignore + constructor(initialRef: java.lang.Object, initialMark: boolean) + /** + * Returns the current value of the reference. + */ + // @ts-ignore + public getReference(): java.lang.Object; + /** + * Returns the current value of the mark. + */ + // @ts-ignore + public isMarked(): boolean; + /** + * Returns the current values of both the reference and the mark. + * Typical usage is {@code boolean[1] holder; ref = v.get(holder); }. + */ + // @ts-ignore + public get(markHolder: boolean): java.lang.Object; + /** + * Atomically sets the value of both the reference and mark + * to the given update values if the + * current reference is {@code ==} to the expected reference + * and the current mark is equal to the expected mark. + *

May fail + * spuriously and does not provide ordering guarantees, so is + * only rarely an appropriate alternative to {@code compareAndSet}. + */ + // @ts-ignore + public weakCompareAndSet(expectedReference: java.lang.Object, newReference: java.lang.Object, expectedMark: boolean, newMark: boolean): boolean; + /** + * Atomically sets the value of both the reference and mark + * to the given update values if the + * current reference is {@code ==} to the expected reference + * and the current mark is equal to the expected mark. + */ + // @ts-ignore + public compareAndSet(expectedReference: java.lang.Object, newReference: java.lang.Object, expectedMark: boolean, newMark: boolean): boolean; + /** + * Unconditionally sets the value of both the reference and mark. + */ + // @ts-ignore + public set(newReference: java.lang.Object, newMark: boolean): void; + /** + * Atomically sets the value of the mark to the given update value + * if the current reference is {@code ==} to the expected + * reference. Any given invocation of this operation may fail + * (return {@code false}) spuriously, but repeated invocation + * when the current value holds the expected value and no other + * thread is also attempting to set the value will eventually + * succeed. + */ + // @ts-ignore + public attemptMark(expectedReference: java.lang.Object, newMark: boolean): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicReference.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicReference.d.ts new file mode 100644 index 00000000..78b71e8d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicReference.d.ts @@ -0,0 +1,100 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace atomic { + // @ts-ignore + class AtomicReference extends java.lang.Object { + /** + * Creates a new AtomicReference with the given initial value. + */ + // @ts-ignore + constructor(initialValue: java.lang.Object) + /** + * Creates a new AtomicReference with null initial value. + */ + // @ts-ignore + constructor() + /** + * Gets the current value. + */ + // @ts-ignore + public get(): java.lang.Object; + /** + * Sets to the given value. + */ + // @ts-ignore + public set(newValue: java.lang.Object): void; + /** + * Eventually sets to the given value. + */ + // @ts-ignore + public lazySet(newValue: java.lang.Object): void; + /** + * Atomically sets the value to the given updated value + * if the current value {@code ==} the expected value. + */ + // @ts-ignore + public compareAndSet(expect: java.lang.Object, update: java.lang.Object): boolean; + /** + * Atomically sets the value to the given updated value + * if the current value {@code ==} the expected value. + *

May fail + * spuriously and does not provide ordering guarantees, so is + * only rarely an appropriate alternative to {@code compareAndSet}. + */ + // @ts-ignore + public weakCompareAndSet(expect: java.lang.Object, update: java.lang.Object): boolean; + /** + * Atomically sets to the given value and returns the old value. + */ + // @ts-ignore + public getAndSet(newValue: java.lang.Object): java.lang.Object; + /** + * Atomically updates the current value with the results of + * applying the given function, returning the previous value. The + * function should be side-effect-free, since it may be re-applied + * when attempted updates fail due to contention among threads. + */ + // @ts-ignore + public getAndUpdate(updateFunction: java.util.function$.UnaryOperator): java.lang.Object; + /** + * Atomically updates the current value with the results of + * applying the given function, returning the updated value. The + * function should be side-effect-free, since it may be re-applied + * when attempted updates fail due to contention among threads. + */ + // @ts-ignore + public updateAndGet(updateFunction: java.util.function$.UnaryOperator): java.lang.Object; + /** + * Atomically updates the current value with the results of + * applying the given function to the current and given values, + * returning the previous value. The function should be + * side-effect-free, since it may be re-applied when attempted + * updates fail due to contention among threads. The function + * is applied with the current value as its first argument, + * and the given update as the second argument. + */ + // @ts-ignore + public getAndAccumulate(x: java.lang.Object, accumulatorFunction: java.util.function$.BinaryOperator): java.lang.Object; + /** + * Atomically updates the current value with the results of + * applying the given function to the current and given values, + * returning the updated value. The function should be + * side-effect-free, since it may be re-applied when attempted + * updates fail due to contention among threads. The function + * is applied with the current value as its first argument, + * and the given update as the second argument. + */ + // @ts-ignore + public accumulateAndGet(x: java.lang.Object, accumulatorFunction: java.util.function$.BinaryOperator): java.lang.Object; + /** + * Returns the String representation of the current value. + */ + // @ts-ignore + public toString(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicReferenceArray.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicReferenceArray.d.ts new file mode 100644 index 00000000..c51a812e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicReferenceArray.d.ts @@ -0,0 +1,108 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace atomic { + // @ts-ignore + class AtomicReferenceArray extends java.lang.Object { + /** + * Creates a new AtomicReferenceArray of the given length, with all + * elements initially null. + */ + // @ts-ignore + constructor(length: number) + /** + * Creates a new AtomicReferenceArray with the same length as, and + * all elements copied from, the given array. + */ + // @ts-ignore + constructor(array: java.lang.Object) + /** + * Returns the length of the array. + */ + // @ts-ignore + public length(): number; + /** + * Gets the current value at position {@code i}. + */ + // @ts-ignore + public get(i: number): java.lang.Object; + /** + * Sets the element at position {@code i} to the given value. + */ + // @ts-ignore + public set(i: number, newValue: java.lang.Object): void; + /** + * Eventually sets the element at position {@code i} to the given value. + */ + // @ts-ignore + public lazySet(i: number, newValue: java.lang.Object): void; + /** + * Atomically sets the element at position {@code i} to the given + * value and returns the old value. + */ + // @ts-ignore + public getAndSet(i: number, newValue: java.lang.Object): java.lang.Object; + /** + * Atomically sets the element at position {@code i} to the given + * updated value if the current value {@code ==} the expected value. + */ + // @ts-ignore + public compareAndSet(i: number, expect: java.lang.Object, update: java.lang.Object): boolean; + /** + * Atomically sets the element at position {@code i} to the given + * updated value if the current value {@code ==} the expected value. + *

May fail + * spuriously and does not provide ordering guarantees, so is + * only rarely an appropriate alternative to {@code compareAndSet}. + */ + // @ts-ignore + public weakCompareAndSet(i: number, expect: java.lang.Object, update: java.lang.Object): boolean; + /** + * Atomically updates the element at index {@code i} with the results + * of applying the given function, returning the previous value. The + * function should be side-effect-free, since it may be re-applied + * when attempted updates fail due to contention among threads. + */ + // @ts-ignore + public getAndUpdate(i: number, updateFunction: java.util.function$.UnaryOperator): java.lang.Object; + /** + * Atomically updates the element at index {@code i} with the results + * of applying the given function, returning the updated value. The + * function should be side-effect-free, since it may be re-applied + * when attempted updates fail due to contention among threads. + */ + // @ts-ignore + public updateAndGet(i: number, updateFunction: java.util.function$.UnaryOperator): java.lang.Object; + /** + * Atomically updates the element at index {@code i} with the + * results of applying the given function to the current and + * given values, returning the previous value. The function should + * be side-effect-free, since it may be re-applied when attempted + * updates fail due to contention among threads. The function is + * applied with the current value at index {@code i} as its first + * argument, and the given update as the second argument. + */ + // @ts-ignore + public getAndAccumulate(i: number, x: java.lang.Object, accumulatorFunction: java.util.function$.BinaryOperator): java.lang.Object; + /** + * Atomically updates the element at index {@code i} with the + * results of applying the given function to the current and + * given values, returning the updated value. The function should + * be side-effect-free, since it may be re-applied when attempted + * updates fail due to contention among threads. The function is + * applied with the current value at index {@code i} as its first + * argument, and the given update as the second argument. + */ + // @ts-ignore + public accumulateAndGet(i: number, x: java.lang.Object, accumulatorFunction: java.util.function$.BinaryOperator): java.lang.Object; + /** + * Returns the String representation of the current values of array. + */ + // @ts-ignore + public toString(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicReferenceFieldUpdater.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicReferenceFieldUpdater.d.ts new file mode 100644 index 00000000..94f0713f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicReferenceFieldUpdater.d.ts @@ -0,0 +1,108 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace atomic { + // @ts-ignore + abstract class AtomicReferenceFieldUpdater extends java.lang.Object { + /** + * Protected do-nothing constructor for use by subclasses. + */ + // @ts-ignore + constructor() + /** + * Creates and returns an updater for objects with the given field. + * The Class arguments are needed to check that reflective types and + * generic types match. + */ + // @ts-ignore + public static newUpdater(tclass: java.lang.Class, vclass: java.lang.Class, fieldName: string): java.util.concurrent.atomic.AtomicReferenceFieldUpdater; + /** + * Atomically sets the field of the given object managed by this updater + * to the given updated value if the current value {@code ==} the + * expected value. This method is guaranteed to be atomic with respect to + * other calls to {@code compareAndSet} and {@code set}, but not + * necessarily with respect to other changes in the field. + */ + // @ts-ignore + public abstract compareAndSet(obj: java.lang.Object, expect: java.lang.Object, update: java.lang.Object): boolean; + /** + * Atomically sets the field of the given object managed by this updater + * to the given updated value if the current value {@code ==} the + * expected value. This method is guaranteed to be atomic with respect to + * other calls to {@code compareAndSet} and {@code set}, but not + * necessarily with respect to other changes in the field. + *

May fail + * spuriously and does not provide ordering guarantees, so is + * only rarely an appropriate alternative to {@code compareAndSet}. + */ + // @ts-ignore + public abstract weakCompareAndSet(obj: java.lang.Object, expect: java.lang.Object, update: java.lang.Object): boolean; + /** + * Sets the field of the given object managed by this updater to the + * given updated value. This operation is guaranteed to act as a volatile + * store with respect to subsequent invocations of {@code compareAndSet}. + */ + // @ts-ignore + public abstract set(obj: java.lang.Object, newValue: java.lang.Object): void; + /** + * Eventually sets the field of the given object managed by this + * updater to the given updated value. + */ + // @ts-ignore + public abstract lazySet(obj: java.lang.Object, newValue: java.lang.Object): void; + /** + * Gets the current value held in the field of the given object managed + * by this updater. + */ + // @ts-ignore + public abstract get(obj: java.lang.Object): java.lang.Object; + /** + * Atomically sets the field of the given object managed by this updater + * to the given value and returns the old value. + */ + // @ts-ignore + public getAndSet(obj: java.lang.Object, newValue: java.lang.Object): java.lang.Object; + /** + * Atomically updates the field of the given object managed by this updater + * with the results of applying the given function, returning the previous + * value. The function should be side-effect-free, since it may be + * re-applied when attempted updates fail due to contention among threads. + */ + // @ts-ignore + public getAndUpdate(obj: java.lang.Object, updateFunction: java.util.function$.UnaryOperator): java.lang.Object; + /** + * Atomically updates the field of the given object managed by this updater + * with the results of applying the given function, returning the updated + * value. The function should be side-effect-free, since it may be + * re-applied when attempted updates fail due to contention among threads. + */ + // @ts-ignore + public updateAndGet(obj: java.lang.Object, updateFunction: java.util.function$.UnaryOperator): java.lang.Object; + /** + * Atomically updates the field of the given object managed by this + * updater with the results of applying the given function to the + * current and given values, returning the previous value. The + * function should be side-effect-free, since it may be re-applied + * when attempted updates fail due to contention among threads. The + * function is applied with the current value as its first argument, + * and the given update as the second argument. + */ + // @ts-ignore + public getAndAccumulate(obj: java.lang.Object, x: java.lang.Object, accumulatorFunction: java.util.function$.BinaryOperator): java.lang.Object; + /** + * Atomically updates the field of the given object managed by this + * updater with the results of applying the given function to the + * current and given values, returning the updated value. The + * function should be side-effect-free, since it may be re-applied + * when attempted updates fail due to contention among threads. The + * function is applied with the current value as its first argument, + * and the given update as the second argument. + */ + // @ts-ignore + public accumulateAndGet(obj: java.lang.Object, x: java.lang.Object, accumulatorFunction: java.util.function$.BinaryOperator): java.lang.Object; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicStampedReference.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicStampedReference.d.ts new file mode 100644 index 00000000..b8f31090 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.atomic.AtomicStampedReference.d.ts @@ -0,0 +1,69 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace atomic { + // @ts-ignore + class AtomicStampedReference extends java.lang.Object { + /** + * Creates a new {@code AtomicStampedReference} with the given + * initial values. + */ + // @ts-ignore + constructor(initialRef: java.lang.Object, initialStamp: number) + /** + * Returns the current value of the reference. + */ + // @ts-ignore + public getReference(): java.lang.Object; + /** + * Returns the current value of the stamp. + */ + // @ts-ignore + public getStamp(): number; + /** + * Returns the current values of both the reference and the stamp. + * Typical usage is {@code int[1] holder; ref = v.get(holder); }. + */ + // @ts-ignore + public get(stampHolder: number): java.lang.Object; + /** + * Atomically sets the value of both the reference and stamp + * to the given update values if the + * current reference is {@code ==} to the expected reference + * and the current stamp is equal to the expected stamp. + *

May fail + * spuriously and does not provide ordering guarantees, so is + * only rarely an appropriate alternative to {@code compareAndSet}. + */ + // @ts-ignore + public weakCompareAndSet(expectedReference: java.lang.Object, newReference: java.lang.Object, expectedStamp: number, newStamp: number): boolean; + /** + * Atomically sets the value of both the reference and stamp + * to the given update values if the + * current reference is {@code ==} to the expected reference + * and the current stamp is equal to the expected stamp. + */ + // @ts-ignore + public compareAndSet(expectedReference: java.lang.Object, newReference: java.lang.Object, expectedStamp: number, newStamp: number): boolean; + /** + * Unconditionally sets the value of both the reference and stamp. + */ + // @ts-ignore + public set(newReference: java.lang.Object, newStamp: number): void; + /** + * Atomically sets the value of the stamp to the given update value + * if the current reference is {@code ==} to the expected + * reference. Any given invocation of this operation may fail + * (return {@code false}) spuriously, but repeated invocation + * when the current value holds the expected value and no other + * thread is also attempting to set the value will eventually + * succeed. + */ + // @ts-ignore + public attemptStamp(expectedReference: java.lang.Object, newStamp: number): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.atomic.DoubleAccumulator.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.atomic.DoubleAccumulator.d.ts new file mode 100644 index 00000000..05e75769 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.atomic.DoubleAccumulator.d.ts @@ -0,0 +1,80 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace atomic { + // @ts-ignore + class DoubleAccumulator extends java.util.concurrent.atomic.Striped64 { + /** + * Creates a new instance using the given accumulator function + * and identity element. + */ + // @ts-ignore + constructor(accumulatorFunction: java.util.function$.DoubleBinaryOperator, identity: number) + /** + * Updates with the given value. + */ + // @ts-ignore + public accumulate(x: number): void; + /** + * Returns the current value. The returned value is NOT + * an atomic snapshot; invocation in the absence of concurrent + * updates returns an accurate result, but concurrent updates that + * occur while the value is being calculated might not be + * incorporated. + */ + // @ts-ignore + public get(): number; + /** + * Resets variables maintaining updates to the identity value. + * This method may be a useful alternative to creating a new + * updater, but is only effective if there are no concurrent + * updates. Because this method is intrinsically racy, it should + * only be used when it is known that no threads are concurrently + * updating. + */ + // @ts-ignore + public reset(): void; + /** + * Equivalent in effect to {@link #get} followed by {@link + * #reset}. This method may apply for example during quiescent + * points between multithreaded computations. If there are + * updates concurrent with this method, the returned value is + * not guaranteed to be the final value occurring before + * the reset. + */ + // @ts-ignore + public getThenReset(): number; + /** + * Returns the String representation of the current value. + */ + // @ts-ignore + public toString(): string; + /** + * Equivalent to {@link #get}. + */ + // @ts-ignore + public doubleValue(): number; + /** + * Returns the {@linkplain #get current value} as a {@code long} + * after a narrowing primitive conversion. + */ + // @ts-ignore + public longValue(): number; + /** + * Returns the {@linkplain #get current value} as an {@code int} + * after a narrowing primitive conversion. + */ + // @ts-ignore + public intValue(): number; + /** + * Returns the {@linkplain #get current value} as a {@code float} + * after a narrowing primitive conversion. + */ + // @ts-ignore + public floatValue(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.atomic.DoubleAdder.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.atomic.DoubleAdder.d.ts new file mode 100644 index 00000000..ac7a1a22 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.atomic.DoubleAdder.d.ts @@ -0,0 +1,81 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace atomic { + // @ts-ignore + class DoubleAdder extends java.util.concurrent.atomic.Striped64 { + /** + * Creates a new adder with initial sum of zero. + */ + // @ts-ignore + constructor() + /** + * Adds the given value. + */ + // @ts-ignore + public add(x: number): void; + /** + * Returns the current sum. The returned value is NOT an + * atomic snapshot; invocation in the absence of concurrent + * updates returns an accurate result, but concurrent updates that + * occur while the sum is being calculated might not be + * incorporated. Also, because floating-point arithmetic is not + * strictly associative, the returned result need not be identical + * to the value that would be obtained in a sequential series of + * updates to a single variable. + */ + // @ts-ignore + public sum(): number; + /** + * Resets variables maintaining the sum to zero. This method may + * be a useful alternative to creating a new adder, but is only + * effective if there are no concurrent updates. Because this + * method is intrinsically racy, it should only be used when it is + * known that no threads are concurrently updating. + */ + // @ts-ignore + public reset(): void; + /** + * Equivalent in effect to {@link #sum} followed by {@link + * #reset}. This method may apply for example during quiescent + * points between multithreaded computations. If there are + * updates concurrent with this method, the returned value is + * not guaranteed to be the final value occurring before + * the reset. + */ + // @ts-ignore + public sumThenReset(): number; + /** + * Returns the String representation of the {@link #sum}. + */ + // @ts-ignore + public toString(): string; + /** + * Equivalent to {@link #sum}. + */ + // @ts-ignore + public doubleValue(): number; + /** + * Returns the {@link #sum} as a {@code long} after a + * narrowing primitive conversion. + */ + // @ts-ignore + public longValue(): number; + /** + * Returns the {@link #sum} as an {@code int} after a + * narrowing primitive conversion. + */ + // @ts-ignore + public intValue(): number; + /** + * Returns the {@link #sum} as a {@code float} + * after a narrowing primitive conversion. + */ + // @ts-ignore + public floatValue(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.atomic.LongAccumulator.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.atomic.LongAccumulator.d.ts new file mode 100644 index 00000000..a21067ac --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.atomic.LongAccumulator.d.ts @@ -0,0 +1,80 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace atomic { + // @ts-ignore + class LongAccumulator extends java.util.concurrent.atomic.Striped64 { + /** + * Creates a new instance using the given accumulator function + * and identity element. + */ + // @ts-ignore + constructor(accumulatorFunction: java.util.function$.LongBinaryOperator, identity: number) + /** + * Updates with the given value. + */ + // @ts-ignore + public accumulate(x: number): void; + /** + * Returns the current value. The returned value is NOT + * an atomic snapshot; invocation in the absence of concurrent + * updates returns an accurate result, but concurrent updates that + * occur while the value is being calculated might not be + * incorporated. + */ + // @ts-ignore + public get(): number; + /** + * Resets variables maintaining updates to the identity value. + * This method may be a useful alternative to creating a new + * updater, but is only effective if there are no concurrent + * updates. Because this method is intrinsically racy, it should + * only be used when it is known that no threads are concurrently + * updating. + */ + // @ts-ignore + public reset(): void; + /** + * Equivalent in effect to {@link #get} followed by {@link + * #reset}. This method may apply for example during quiescent + * points between multithreaded computations. If there are + * updates concurrent with this method, the returned value is + * not guaranteed to be the final value occurring before + * the reset. + */ + // @ts-ignore + public getThenReset(): number; + /** + * Returns the String representation of the current value. + */ + // @ts-ignore + public toString(): string; + /** + * Equivalent to {@link #get}. + */ + // @ts-ignore + public longValue(): number; + /** + * Returns the {@linkplain #get current value} as an {@code int} + * after a narrowing primitive conversion. + */ + // @ts-ignore + public intValue(): number; + /** + * Returns the {@linkplain #get current value} as a {@code float} + * after a widening primitive conversion. + */ + // @ts-ignore + public floatValue(): number; + /** + * Returns the {@linkplain #get current value} as a {@code double} + * after a widening primitive conversion. + */ + // @ts-ignore + public doubleValue(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.atomic.LongAdder.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.atomic.LongAdder.d.ts new file mode 100644 index 00000000..6b3c7bf8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.atomic.LongAdder.d.ts @@ -0,0 +1,88 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace atomic { + // @ts-ignore + class LongAdder extends java.util.concurrent.atomic.Striped64 { + /** + * Creates a new adder with initial sum of zero. + */ + // @ts-ignore + constructor() + /** + * Adds the given value. + */ + // @ts-ignore + public add(x: number): void; + /** + * Equivalent to {@code add(1)}. + */ + // @ts-ignore + public increment(): void; + /** + * Equivalent to {@code add(-1)}. + */ + // @ts-ignore + public decrement(): void; + /** + * Returns the current sum. The returned value is NOT an + * atomic snapshot; invocation in the absence of concurrent + * updates returns an accurate result, but concurrent updates that + * occur while the sum is being calculated might not be + * incorporated. + */ + // @ts-ignore + public sum(): number; + /** + * Resets variables maintaining the sum to zero. This method may + * be a useful alternative to creating a new adder, but is only + * effective if there are no concurrent updates. Because this + * method is intrinsically racy, it should only be used when it is + * known that no threads are concurrently updating. + */ + // @ts-ignore + public reset(): void; + /** + * Equivalent in effect to {@link #sum} followed by {@link + * #reset}. This method may apply for example during quiescent + * points between multithreaded computations. If there are + * updates concurrent with this method, the returned value is + * not guaranteed to be the final value occurring before + * the reset. + */ + // @ts-ignore + public sumThenReset(): number; + /** + * Returns the String representation of the {@link #sum}. + */ + // @ts-ignore + public toString(): string; + /** + * Equivalent to {@link #sum}. + */ + // @ts-ignore + public longValue(): number; + /** + * Returns the {@link #sum} as an {@code int} after a narrowing + * primitive conversion. + */ + // @ts-ignore + public intValue(): number; + /** + * Returns the {@link #sum} as a {@code float} + * after a widening primitive conversion. + */ + // @ts-ignore + public floatValue(): number; + /** + * Returns the {@link #sum} as a {@code double} after a widening + * primitive conversion. + */ + // @ts-ignore + public doubleValue(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.locks.AbstractOwnableSynchronizer.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.locks.AbstractOwnableSynchronizer.d.ts new file mode 100644 index 00000000..fa5caef4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.locks.AbstractOwnableSynchronizer.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace locks { + // @ts-ignore + abstract class AbstractOwnableSynchronizer extends java.lang.Object { + /** + * Empty constructor for use by subclasses. + */ + // @ts-ignore + constructor() + /** + * Sets the thread that currently owns exclusive access. + * A {@code null} argument indicates that no thread owns access. + * This method does not otherwise impose any synchronization or + * {@code volatile} field accesses. + */ + // @ts-ignore + protected setExclusiveOwnerThread(thread: java.lang.Thread): void; + /** + * Returns the thread last set by {@code setExclusiveOwnerThread}, + * or {@code null} if never set. This method does not otherwise + * impose any synchronization or {@code volatile} field accesses. + */ + // @ts-ignore + protected getExclusiveOwnerThread(): java.lang.Thread; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.locks.AbstractQueuedLongSynchronizer.ConditionObject.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.locks.AbstractQueuedLongSynchronizer.ConditionObject.d.ts new file mode 100644 index 00000000..dd44cfb7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.locks.AbstractQueuedLongSynchronizer.ConditionObject.d.ts @@ -0,0 +1,127 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace locks { + namespace AbstractQueuedLongSynchronizer { + // @ts-ignore + class ConditionObject extends java.lang.Object { + /** + * Creates a new {@code ConditionObject} instance. + */ + // @ts-ignore + constructor() + /** + * Moves the longest-waiting thread, if one exists, from the + * wait queue for this condition to the wait queue for the + * owning lock. + */ + // @ts-ignore + public signal(): void; + /** + * Moves all threads from the wait queue for this condition to + * the wait queue for the owning lock. + */ + // @ts-ignore + public signalAll(): void; + /** + * Implements uninterruptible condition wait. + *

    + *
  1. Save lock state returned by {@link #getState}. + *
  2. Invoke {@link #release} with saved state as argument, + * throwing IllegalMonitorStateException if it fails. + *
  3. Block until signalled. + *
  4. Reacquire by invoking specialized version of + * {@link #acquire} with saved state as argument. + *
+ */ + // @ts-ignore + public awaitUninterruptibly(): void; + /** + * Implements interruptible condition wait. + *
    + *
  1. If current thread is interrupted, throw InterruptedException. + *
  2. Save lock state returned by {@link #getState}. + *
  3. Invoke {@link #release} with saved state as argument, + * throwing IllegalMonitorStateException if it fails. + *
  4. Block until signalled or interrupted. + *
  5. Reacquire by invoking specialized version of + * {@link #acquire} with saved state as argument. + *
  6. If interrupted while blocked in step 4, throw InterruptedException. + *
+ */ + // @ts-ignore + public await(): void; + /** + * Implements timed condition wait. + *
    + *
  1. If current thread is interrupted, throw InterruptedException. + *
  2. Save lock state returned by {@link #getState}. + *
  3. Invoke {@link #release} with saved state as argument, + * throwing IllegalMonitorStateException if it fails. + *
  4. Block until signalled, interrupted, or timed out. + *
  5. Reacquire by invoking specialized version of + * {@link #acquire} with saved state as argument. + *
  6. If interrupted while blocked in step 4, throw InterruptedException. + *
+ */ + // @ts-ignore + public awaitNanos(nanosTimeout: number): number; + /** + * Implements absolute timed condition wait. + *
    + *
  1. If current thread is interrupted, throw InterruptedException. + *
  2. Save lock state returned by {@link #getState}. + *
  3. Invoke {@link #release} with saved state as argument, + * throwing IllegalMonitorStateException if it fails. + *
  4. Block until signalled, interrupted, or timed out. + *
  5. Reacquire by invoking specialized version of + * {@link #acquire} with saved state as argument. + *
  6. If interrupted while blocked in step 4, throw InterruptedException. + *
  7. If timed out while blocked in step 4, return false, else true. + *
+ */ + // @ts-ignore + public awaitUntil(deadline: java.util.Date): boolean; + /** + * Implements timed condition wait. + *
    + *
  1. If current thread is interrupted, throw InterruptedException. + *
  2. Save lock state returned by {@link #getState}. + *
  3. Invoke {@link #release} with saved state as argument, + * throwing IllegalMonitorStateException if it fails. + *
  4. Block until signalled, interrupted, or timed out. + *
  5. Reacquire by invoking specialized version of + * {@link #acquire} with saved state as argument. + *
  6. If interrupted while blocked in step 4, throw InterruptedException. + *
  7. If timed out while blocked in step 4, return false, else true. + *
+ */ + // @ts-ignore + public await(time: number, unit: java.util.concurrent.TimeUnit): boolean; + /** + * Queries whether any threads are waiting on this condition. + * Implements {@link AbstractQueuedLongSynchronizer#hasWaiters(ConditionObject)}. + */ + // @ts-ignore + protected hasWaiters(): boolean; + /** + * Returns an estimate of the number of threads waiting on + * this condition. + * Implements {@link AbstractQueuedLongSynchronizer#getWaitQueueLength(ConditionObject)}. + */ + // @ts-ignore + protected getWaitQueueLength(): number; + /** + * Returns a collection containing those threads that may be + * waiting on this Condition. + * Implements {@link AbstractQueuedLongSynchronizer#getWaitingThreads(ConditionObject)}. + */ + // @ts-ignore + protected getWaitingThreads(): java.util.Collection; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.locks.AbstractQueuedLongSynchronizer.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.locks.AbstractQueuedLongSynchronizer.d.ts new file mode 100644 index 00000000..c3cadb8d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.locks.AbstractQueuedLongSynchronizer.d.ts @@ -0,0 +1,322 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace locks { + // @ts-ignore + abstract class AbstractQueuedLongSynchronizer extends java.util.concurrent.locks.AbstractOwnableSynchronizer { + /** + * Creates a new {@code AbstractQueuedLongSynchronizer} instance + * with initial synchronization state of zero. + */ + // @ts-ignore + constructor() + /** + * Returns the current value of synchronization state. + * This operation has memory semantics of a {@code volatile} read. + */ + // @ts-ignore + protected getState(): number; + /** + * Sets the value of synchronization state. + * This operation has memory semantics of a {@code volatile} write. + */ + // @ts-ignore + protected setState(newState: number): void; + /** + * Atomically sets synchronization state to the given updated + * value if the current state value equals the expected value. + * This operation has memory semantics of a {@code volatile} read + * and write. + */ + // @ts-ignore + protected compareAndSetState(expect: number, update: number): boolean; + /** + * Attempts to acquire in exclusive mode. This method should query + * if the state of the object permits it to be acquired in the + * exclusive mode, and if so to acquire it. + *

This method is always invoked by the thread performing + * acquire. If this method reports failure, the acquire method + * may queue the thread, if it is not already queued, until it is + * signalled by a release from some other thread. This can be used + * to implement method {@link Lock#tryLock()}. + *

The default + * implementation throws {@link UnsupportedOperationException}. + */ + // @ts-ignore + protected tryAcquire(arg: number): boolean; + /** + * Attempts to set the state to reflect a release in exclusive + * mode. + *

This method is always invoked by the thread performing release. + *

The default implementation throws + * {@link UnsupportedOperationException}. + */ + // @ts-ignore + protected tryRelease(arg: number): boolean; + /** + * Attempts to acquire in shared mode. This method should query if + * the state of the object permits it to be acquired in the shared + * mode, and if so to acquire it. + *

This method is always invoked by the thread performing + * acquire. If this method reports failure, the acquire method + * may queue the thread, if it is not already queued, until it is + * signalled by a release from some other thread. + *

The default implementation throws {@link + * UnsupportedOperationException}. + */ + // @ts-ignore + protected tryAcquireShared(arg: number): number; + /** + * Attempts to set the state to reflect a release in shared mode. + *

This method is always invoked by the thread performing release. + *

The default implementation throws + * {@link UnsupportedOperationException}. + */ + // @ts-ignore + protected tryReleaseShared(arg: number): boolean; + /** + * Returns {@code true} if synchronization is held exclusively with + * respect to the current (calling) thread. This method is invoked + * upon each call to a non-waiting {@link ConditionObject} method. + * (Waiting methods instead invoke {@link #release}.) + *

The default implementation throws {@link + * UnsupportedOperationException}. This method is invoked + * internally only within {@link ConditionObject} methods, so need + * not be defined if conditions are not used. + */ + // @ts-ignore + protected isHeldExclusively(): boolean; + /** + * Acquires in exclusive mode, ignoring interrupts. Implemented + * by invoking at least once {@link #tryAcquire}, + * returning on success. Otherwise the thread is queued, possibly + * repeatedly blocking and unblocking, invoking {@link + * #tryAcquire} until success. This method can be used + * to implement method {@link Lock#lock}. + */ + // @ts-ignore + public acquire(arg: number): void; + /** + * Acquires in exclusive mode, aborting if interrupted. + * Implemented by first checking interrupt status, then invoking + * at least once {@link #tryAcquire}, returning on + * success. Otherwise the thread is queued, possibly repeatedly + * blocking and unblocking, invoking {@link #tryAcquire} + * until success or the thread is interrupted. This method can be + * used to implement method {@link Lock#lockInterruptibly}. + */ + // @ts-ignore + public acquireInterruptibly(arg: number): void; + /** + * Attempts to acquire in exclusive mode, aborting if interrupted, + * and failing if the given timeout elapses. Implemented by first + * checking interrupt status, then invoking at least once {@link + * #tryAcquire}, returning on success. Otherwise, the thread is + * queued, possibly repeatedly blocking and unblocking, invoking + * {@link #tryAcquire} until success or the thread is interrupted + * or the timeout elapses. This method can be used to implement + * method {@link Lock#tryLock(long, TimeUnit)}. + */ + // @ts-ignore + public tryAcquireNanos(arg: number, nanosTimeout: number): boolean; + /** + * Releases in exclusive mode. Implemented by unblocking one or + * more threads if {@link #tryRelease} returns true. + * This method can be used to implement method {@link Lock#unlock}. + */ + // @ts-ignore + public release(arg: number): boolean; + /** + * Acquires in shared mode, ignoring interrupts. Implemented by + * first invoking at least once {@link #tryAcquireShared}, + * returning on success. Otherwise the thread is queued, possibly + * repeatedly blocking and unblocking, invoking {@link + * #tryAcquireShared} until success. + */ + // @ts-ignore + public acquireShared(arg: number): void; + /** + * Acquires in shared mode, aborting if interrupted. Implemented + * by first checking interrupt status, then invoking at least once + * {@link #tryAcquireShared}, returning on success. Otherwise the + * thread is queued, possibly repeatedly blocking and unblocking, + * invoking {@link #tryAcquireShared} until success or the thread + * is interrupted. + */ + // @ts-ignore + public acquireSharedInterruptibly(arg: number): void; + /** + * Attempts to acquire in shared mode, aborting if interrupted, and + * failing if the given timeout elapses. Implemented by first + * checking interrupt status, then invoking at least once {@link + * #tryAcquireShared}, returning on success. Otherwise, the + * thread is queued, possibly repeatedly blocking and unblocking, + * invoking {@link #tryAcquireShared} until success or the thread + * is interrupted or the timeout elapses. + */ + // @ts-ignore + public tryAcquireSharedNanos(arg: number, nanosTimeout: number): boolean; + /** + * Releases in shared mode. Implemented by unblocking one or more + * threads if {@link #tryReleaseShared} returns true. + */ + // @ts-ignore + public releaseShared(arg: number): boolean; + /** + * Queries whether any threads are waiting to acquire. Note that + * because cancellations due to interrupts and timeouts may occur + * at any time, a {@code true} return does not guarantee that any + * other thread will ever acquire. + *

In this implementation, this operation returns in + * constant time. + */ + // @ts-ignore + public hasQueuedThreads(): boolean; + /** + * Queries whether any threads have ever contended to acquire this + * synchronizer; that is if an acquire method has ever blocked. + *

In this implementation, this operation returns in + * constant time. + */ + // @ts-ignore + public hasContended(): boolean; + /** + * Returns the first (longest-waiting) thread in the queue, or + * {@code null} if no threads are currently queued. + *

In this implementation, this operation normally returns in + * constant time, but may iterate upon contention if other threads are + * concurrently modifying the queue. + */ + // @ts-ignore + public getFirstQueuedThread(): java.lang.Thread; + /** + * Returns true if the given thread is currently queued. + *

This implementation traverses the queue to determine + * presence of the given thread. + */ + // @ts-ignore + public isQueued(thread: java.lang.Thread): boolean; + /** + * Queries whether any threads have been waiting to acquire longer + * than the current thread. + *

An invocation of this method is equivalent to (but may be + * more efficient than): + *

 {@code
+                     * getFirstQueuedThread() != Thread.currentThread() &&
+                     * hasQueuedThreads()}
+ *

Note that because cancellations due to interrupts and + * timeouts may occur at any time, a {@code true} return does not + * guarantee that some other thread will acquire before the current + * thread. Likewise, it is possible for another thread to win a + * race to enqueue after this method has returned {@code false}, + * due to the queue being empty. + *

This method is designed to be used by a fair synchronizer to + * avoid barging. + * Such a synchronizer's {@link #tryAcquire} method should return + * {@code false}, and its {@link #tryAcquireShared} method should + * return a negative value, if this method returns {@code true} + * (unless this is a reentrant acquire). For example, the {@code + * tryAcquire} method for a fair, reentrant, exclusive mode + * synchronizer might look like this: + *

 {@code
+                     * protected boolean tryAcquire(int arg) {
+                     * if (isHeldExclusively()) {
+                     * // A reentrant acquire; increment hold count
+                     * return true;
+                     * } else if (hasQueuedPredecessors()) {
+                     * return false;
+                     * } else {
+                     * // try to acquire normally
+                     * }
+                     * }}
+ */ + // @ts-ignore + public hasQueuedPredecessors(): boolean; + /** + * Returns an estimate of the number of threads waiting to + * acquire. The value is only an estimate because the number of + * threads may change dynamically while this method traverses + * internal data structures. This method is designed for use in + * monitoring system state, not for synchronization + * control. + */ + // @ts-ignore + public getQueueLength(): number; + /** + * Returns a collection containing threads that may be waiting to + * acquire. Because the actual set of threads may change + * dynamically while constructing this result, the returned + * collection is only a best-effort estimate. The elements of the + * returned collection are in no particular order. This method is + * designed to facilitate construction of subclasses that provide + * more extensive monitoring facilities. + */ + // @ts-ignore + public getQueuedThreads(): java.util.Collection; + /** + * Returns a collection containing threads that may be waiting to + * acquire in exclusive mode. This has the same properties + * as {@link #getQueuedThreads} except that it only returns + * those threads waiting due to an exclusive acquire. + */ + // @ts-ignore + public getExclusiveQueuedThreads(): java.util.Collection; + /** + * Returns a collection containing threads that may be waiting to + * acquire in shared mode. This has the same properties + * as {@link #getQueuedThreads} except that it only returns + * those threads waiting due to a shared acquire. + */ + // @ts-ignore + public getSharedQueuedThreads(): java.util.Collection; + /** + * Returns a string identifying this synchronizer, as well as its state. + * The state, in brackets, includes the String {@code "State ="} + * followed by the current value of {@link #getState}, and either + * {@code "nonempty"} or {@code "empty"} depending on whether the + * queue is empty. + */ + // @ts-ignore + public toString(): string; + /** + * Queries whether the given ConditionObject + * uses this synchronizer as its lock. + */ + // @ts-ignore + public owns(condition: java.util.concurrent.locks.AbstractQueuedLongSynchronizer.ConditionObject): boolean; + /** + * Queries whether any threads are waiting on the given condition + * associated with this synchronizer. Note that because timeouts + * and interrupts may occur at any time, a {@code true} return + * does not guarantee that a future {@code signal} will awaken + * any threads. This method is designed primarily for use in + * monitoring of the system state. + */ + // @ts-ignore + public hasWaiters(condition: java.util.concurrent.locks.AbstractQueuedLongSynchronizer.ConditionObject): boolean; + /** + * Returns an estimate of the number of threads waiting on the + * given condition associated with this synchronizer. Note that + * because timeouts and interrupts may occur at any time, the + * estimate serves only as an upper bound on the actual number of + * waiters. This method is designed for use in monitoring of the + * system state, not for synchronization control. + */ + // @ts-ignore + public getWaitQueueLength(condition: java.util.concurrent.locks.AbstractQueuedLongSynchronizer.ConditionObject): number; + /** + * Returns a collection containing those threads that may be + * waiting on the given condition associated with this + * synchronizer. Because the actual set of threads may change + * dynamically while constructing this result, the returned + * collection is only a best-effort estimate. The elements of the + * returned collection are in no particular order. + */ + // @ts-ignore + public getWaitingThreads(condition: java.util.concurrent.locks.AbstractQueuedLongSynchronizer.ConditionObject): java.util.Collection; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.locks.AbstractQueuedSynchronizer.ConditionObject.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.locks.AbstractQueuedSynchronizer.ConditionObject.d.ts new file mode 100644 index 00000000..c889f618 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.locks.AbstractQueuedSynchronizer.ConditionObject.d.ts @@ -0,0 +1,127 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace locks { + namespace AbstractQueuedSynchronizer { + // @ts-ignore + class ConditionObject extends java.lang.Object { + /** + * Creates a new {@code ConditionObject} instance. + */ + // @ts-ignore + constructor() + /** + * Moves the longest-waiting thread, if one exists, from the + * wait queue for this condition to the wait queue for the + * owning lock. + */ + // @ts-ignore + public signal(): void; + /** + * Moves all threads from the wait queue for this condition to + * the wait queue for the owning lock. + */ + // @ts-ignore + public signalAll(): void; + /** + * Implements uninterruptible condition wait. + *
    + *
  1. Save lock state returned by {@link #getState}. + *
  2. Invoke {@link #release} with saved state as argument, + * throwing IllegalMonitorStateException if it fails. + *
  3. Block until signalled. + *
  4. Reacquire by invoking specialized version of + * {@link #acquire} with saved state as argument. + *
+ */ + // @ts-ignore + public awaitUninterruptibly(): void; + /** + * Implements interruptible condition wait. + *
    + *
  1. If current thread is interrupted, throw InterruptedException. + *
  2. Save lock state returned by {@link #getState}. + *
  3. Invoke {@link #release} with saved state as argument, + * throwing IllegalMonitorStateException if it fails. + *
  4. Block until signalled or interrupted. + *
  5. Reacquire by invoking specialized version of + * {@link #acquire} with saved state as argument. + *
  6. If interrupted while blocked in step 4, throw InterruptedException. + *
+ */ + // @ts-ignore + public await(): void; + /** + * Implements timed condition wait. + *
    + *
  1. If current thread is interrupted, throw InterruptedException. + *
  2. Save lock state returned by {@link #getState}. + *
  3. Invoke {@link #release} with saved state as argument, + * throwing IllegalMonitorStateException if it fails. + *
  4. Block until signalled, interrupted, or timed out. + *
  5. Reacquire by invoking specialized version of + * {@link #acquire} with saved state as argument. + *
  6. If interrupted while blocked in step 4, throw InterruptedException. + *
+ */ + // @ts-ignore + public awaitNanos(nanosTimeout: number): number; + /** + * Implements absolute timed condition wait. + *
    + *
  1. If current thread is interrupted, throw InterruptedException. + *
  2. Save lock state returned by {@link #getState}. + *
  3. Invoke {@link #release} with saved state as argument, + * throwing IllegalMonitorStateException if it fails. + *
  4. Block until signalled, interrupted, or timed out. + *
  5. Reacquire by invoking specialized version of + * {@link #acquire} with saved state as argument. + *
  6. If interrupted while blocked in step 4, throw InterruptedException. + *
  7. If timed out while blocked in step 4, return false, else true. + *
+ */ + // @ts-ignore + public awaitUntil(deadline: java.util.Date): boolean; + /** + * Implements timed condition wait. + *
    + *
  1. If current thread is interrupted, throw InterruptedException. + *
  2. Save lock state returned by {@link #getState}. + *
  3. Invoke {@link #release} with saved state as argument, + * throwing IllegalMonitorStateException if it fails. + *
  4. Block until signalled, interrupted, or timed out. + *
  5. Reacquire by invoking specialized version of + * {@link #acquire} with saved state as argument. + *
  6. If interrupted while blocked in step 4, throw InterruptedException. + *
  7. If timed out while blocked in step 4, return false, else true. + *
+ */ + // @ts-ignore + public await(time: number, unit: java.util.concurrent.TimeUnit): boolean; + /** + * Queries whether any threads are waiting on this condition. + * Implements {@link AbstractQueuedSynchronizer#hasWaiters(ConditionObject)}. + */ + // @ts-ignore + protected hasWaiters(): boolean; + /** + * Returns an estimate of the number of threads waiting on + * this condition. + * Implements {@link AbstractQueuedSynchronizer#getWaitQueueLength(ConditionObject)}. + */ + // @ts-ignore + protected getWaitQueueLength(): number; + /** + * Returns a collection containing those threads that may be + * waiting on this Condition. + * Implements {@link AbstractQueuedSynchronizer#getWaitingThreads(ConditionObject)}. + */ + // @ts-ignore + protected getWaitingThreads(): java.util.Collection; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.locks.AbstractQueuedSynchronizer.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.locks.AbstractQueuedSynchronizer.d.ts new file mode 100644 index 00000000..45fb8480 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.locks.AbstractQueuedSynchronizer.d.ts @@ -0,0 +1,322 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace locks { + // @ts-ignore + abstract class AbstractQueuedSynchronizer extends java.util.concurrent.locks.AbstractOwnableSynchronizer { + /** + * Creates a new {@code AbstractQueuedSynchronizer} instance + * with initial synchronization state of zero. + */ + // @ts-ignore + constructor() + /** + * Returns the current value of synchronization state. + * This operation has memory semantics of a {@code volatile} read. + */ + // @ts-ignore + protected getState(): number; + /** + * Sets the value of synchronization state. + * This operation has memory semantics of a {@code volatile} write. + */ + // @ts-ignore + protected setState(newState: number): void; + /** + * Atomically sets synchronization state to the given updated + * value if the current state value equals the expected value. + * This operation has memory semantics of a {@code volatile} read + * and write. + */ + // @ts-ignore + protected compareAndSetState(expect: number, update: number): boolean; + /** + * Attempts to acquire in exclusive mode. This method should query + * if the state of the object permits it to be acquired in the + * exclusive mode, and if so to acquire it. + *

This method is always invoked by the thread performing + * acquire. If this method reports failure, the acquire method + * may queue the thread, if it is not already queued, until it is + * signalled by a release from some other thread. This can be used + * to implement method {@link Lock#tryLock()}. + *

The default + * implementation throws {@link UnsupportedOperationException}. + */ + // @ts-ignore + protected tryAcquire(arg: number): boolean; + /** + * Attempts to set the state to reflect a release in exclusive + * mode. + *

This method is always invoked by the thread performing release. + *

The default implementation throws + * {@link UnsupportedOperationException}. + */ + // @ts-ignore + protected tryRelease(arg: number): boolean; + /** + * Attempts to acquire in shared mode. This method should query if + * the state of the object permits it to be acquired in the shared + * mode, and if so to acquire it. + *

This method is always invoked by the thread performing + * acquire. If this method reports failure, the acquire method + * may queue the thread, if it is not already queued, until it is + * signalled by a release from some other thread. + *

The default implementation throws {@link + * UnsupportedOperationException}. + */ + // @ts-ignore + protected tryAcquireShared(arg: number): number; + /** + * Attempts to set the state to reflect a release in shared mode. + *

This method is always invoked by the thread performing release. + *

The default implementation throws + * {@link UnsupportedOperationException}. + */ + // @ts-ignore + protected tryReleaseShared(arg: number): boolean; + /** + * Returns {@code true} if synchronization is held exclusively with + * respect to the current (calling) thread. This method is invoked + * upon each call to a non-waiting {@link ConditionObject} method. + * (Waiting methods instead invoke {@link #release}.) + *

The default implementation throws {@link + * UnsupportedOperationException}. This method is invoked + * internally only within {@link ConditionObject} methods, so need + * not be defined if conditions are not used. + */ + // @ts-ignore + protected isHeldExclusively(): boolean; + /** + * Acquires in exclusive mode, ignoring interrupts. Implemented + * by invoking at least once {@link #tryAcquire}, + * returning on success. Otherwise the thread is queued, possibly + * repeatedly blocking and unblocking, invoking {@link + * #tryAcquire} until success. This method can be used + * to implement method {@link Lock#lock}. + */ + // @ts-ignore + public acquire(arg: number): void; + /** + * Acquires in exclusive mode, aborting if interrupted. + * Implemented by first checking interrupt status, then invoking + * at least once {@link #tryAcquire}, returning on + * success. Otherwise the thread is queued, possibly repeatedly + * blocking and unblocking, invoking {@link #tryAcquire} + * until success or the thread is interrupted. This method can be + * used to implement method {@link Lock#lockInterruptibly}. + */ + // @ts-ignore + public acquireInterruptibly(arg: number): void; + /** + * Attempts to acquire in exclusive mode, aborting if interrupted, + * and failing if the given timeout elapses. Implemented by first + * checking interrupt status, then invoking at least once {@link + * #tryAcquire}, returning on success. Otherwise, the thread is + * queued, possibly repeatedly blocking and unblocking, invoking + * {@link #tryAcquire} until success or the thread is interrupted + * or the timeout elapses. This method can be used to implement + * method {@link Lock#tryLock(long, TimeUnit)}. + */ + // @ts-ignore + public tryAcquireNanos(arg: number, nanosTimeout: number): boolean; + /** + * Releases in exclusive mode. Implemented by unblocking one or + * more threads if {@link #tryRelease} returns true. + * This method can be used to implement method {@link Lock#unlock}. + */ + // @ts-ignore + public release(arg: number): boolean; + /** + * Acquires in shared mode, ignoring interrupts. Implemented by + * first invoking at least once {@link #tryAcquireShared}, + * returning on success. Otherwise the thread is queued, possibly + * repeatedly blocking and unblocking, invoking {@link + * #tryAcquireShared} until success. + */ + // @ts-ignore + public acquireShared(arg: number): void; + /** + * Acquires in shared mode, aborting if interrupted. Implemented + * by first checking interrupt status, then invoking at least once + * {@link #tryAcquireShared}, returning on success. Otherwise the + * thread is queued, possibly repeatedly blocking and unblocking, + * invoking {@link #tryAcquireShared} until success or the thread + * is interrupted. + */ + // @ts-ignore + public acquireSharedInterruptibly(arg: number): void; + /** + * Attempts to acquire in shared mode, aborting if interrupted, and + * failing if the given timeout elapses. Implemented by first + * checking interrupt status, then invoking at least once {@link + * #tryAcquireShared}, returning on success. Otherwise, the + * thread is queued, possibly repeatedly blocking and unblocking, + * invoking {@link #tryAcquireShared} until success or the thread + * is interrupted or the timeout elapses. + */ + // @ts-ignore + public tryAcquireSharedNanos(arg: number, nanosTimeout: number): boolean; + /** + * Releases in shared mode. Implemented by unblocking one or more + * threads if {@link #tryReleaseShared} returns true. + */ + // @ts-ignore + public releaseShared(arg: number): boolean; + /** + * Queries whether any threads are waiting to acquire. Note that + * because cancellations due to interrupts and timeouts may occur + * at any time, a {@code true} return does not guarantee that any + * other thread will ever acquire. + *

In this implementation, this operation returns in + * constant time. + */ + // @ts-ignore + public hasQueuedThreads(): boolean; + /** + * Queries whether any threads have ever contended to acquire this + * synchronizer; that is if an acquire method has ever blocked. + *

In this implementation, this operation returns in + * constant time. + */ + // @ts-ignore + public hasContended(): boolean; + /** + * Returns the first (longest-waiting) thread in the queue, or + * {@code null} if no threads are currently queued. + *

In this implementation, this operation normally returns in + * constant time, but may iterate upon contention if other threads are + * concurrently modifying the queue. + */ + // @ts-ignore + public getFirstQueuedThread(): java.lang.Thread; + /** + * Returns true if the given thread is currently queued. + *

This implementation traverses the queue to determine + * presence of the given thread. + */ + // @ts-ignore + public isQueued(thread: java.lang.Thread): boolean; + /** + * Queries whether any threads have been waiting to acquire longer + * than the current thread. + *

An invocation of this method is equivalent to (but may be + * more efficient than): + *

 {@code
+                     * getFirstQueuedThread() != Thread.currentThread() &&
+                     * hasQueuedThreads()}
+ *

Note that because cancellations due to interrupts and + * timeouts may occur at any time, a {@code true} return does not + * guarantee that some other thread will acquire before the current + * thread. Likewise, it is possible for another thread to win a + * race to enqueue after this method has returned {@code false}, + * due to the queue being empty. + *

This method is designed to be used by a fair synchronizer to + * avoid barging. + * Such a synchronizer's {@link #tryAcquire} method should return + * {@code false}, and its {@link #tryAcquireShared} method should + * return a negative value, if this method returns {@code true} + * (unless this is a reentrant acquire). For example, the {@code + * tryAcquire} method for a fair, reentrant, exclusive mode + * synchronizer might look like this: + *

 {@code
+                     * protected boolean tryAcquire(int arg) {
+                     * if (isHeldExclusively()) {
+                     * // A reentrant acquire; increment hold count
+                     * return true;
+                     * } else if (hasQueuedPredecessors()) {
+                     * return false;
+                     * } else {
+                     * // try to acquire normally
+                     * }
+                     * }}
+ */ + // @ts-ignore + public hasQueuedPredecessors(): boolean; + /** + * Returns an estimate of the number of threads waiting to + * acquire. The value is only an estimate because the number of + * threads may change dynamically while this method traverses + * internal data structures. This method is designed for use in + * monitoring system state, not for synchronization + * control. + */ + // @ts-ignore + public getQueueLength(): number; + /** + * Returns a collection containing threads that may be waiting to + * acquire. Because the actual set of threads may change + * dynamically while constructing this result, the returned + * collection is only a best-effort estimate. The elements of the + * returned collection are in no particular order. This method is + * designed to facilitate construction of subclasses that provide + * more extensive monitoring facilities. + */ + // @ts-ignore + public getQueuedThreads(): java.util.Collection; + /** + * Returns a collection containing threads that may be waiting to + * acquire in exclusive mode. This has the same properties + * as {@link #getQueuedThreads} except that it only returns + * those threads waiting due to an exclusive acquire. + */ + // @ts-ignore + public getExclusiveQueuedThreads(): java.util.Collection; + /** + * Returns a collection containing threads that may be waiting to + * acquire in shared mode. This has the same properties + * as {@link #getQueuedThreads} except that it only returns + * those threads waiting due to a shared acquire. + */ + // @ts-ignore + public getSharedQueuedThreads(): java.util.Collection; + /** + * Returns a string identifying this synchronizer, as well as its state. + * The state, in brackets, includes the String {@code "State ="} + * followed by the current value of {@link #getState}, and either + * {@code "nonempty"} or {@code "empty"} depending on whether the + * queue is empty. + */ + // @ts-ignore + public toString(): string; + /** + * Queries whether the given ConditionObject + * uses this synchronizer as its lock. + */ + // @ts-ignore + public owns(condition: java.util.concurrent.locks.AbstractQueuedSynchronizer.ConditionObject): boolean; + /** + * Queries whether any threads are waiting on the given condition + * associated with this synchronizer. Note that because timeouts + * and interrupts may occur at any time, a {@code true} return + * does not guarantee that a future {@code signal} will awaken + * any threads. This method is designed primarily for use in + * monitoring of the system state. + */ + // @ts-ignore + public hasWaiters(condition: java.util.concurrent.locks.AbstractQueuedSynchronizer.ConditionObject): boolean; + /** + * Returns an estimate of the number of threads waiting on the + * given condition associated with this synchronizer. Note that + * because timeouts and interrupts may occur at any time, the + * estimate serves only as an upper bound on the actual number of + * waiters. This method is designed for use in monitoring of the + * system state, not for synchronization control. + */ + // @ts-ignore + public getWaitQueueLength(condition: java.util.concurrent.locks.AbstractQueuedSynchronizer.ConditionObject): number; + /** + * Returns a collection containing those threads that may be + * waiting on the given condition associated with this + * synchronizer. Because the actual set of threads may change + * dynamically while constructing this result, the returned + * collection is only a best-effort estimate. The elements of the + * returned collection are in no particular order. + */ + // @ts-ignore + public getWaitingThreads(condition: java.util.concurrent.locks.AbstractQueuedSynchronizer.ConditionObject): java.util.Collection; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.locks.Condition.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.locks.Condition.d.ts new file mode 100644 index 00000000..630cd6c8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.locks.Condition.d.ts @@ -0,0 +1,258 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace locks { + // @ts-ignore + interface Condition { + /** + * Causes the current thread to wait until it is signalled or + * {@linkplain Thread#interrupt interrupted}. + *

The lock associated with this {@code Condition} is atomically + * released and the current thread becomes disabled for thread scheduling + * purposes and lies dormant until one of four things happens: + *

    + *
  • Some other thread invokes the {@link #signal} method for this + * {@code Condition} and the current thread happens to be chosen as the + * thread to be awakened; or + *
  • Some other thread invokes the {@link #signalAll} method for this + * {@code Condition}; or + *
  • Some other thread {@linkplain Thread#interrupt interrupts} the + * current thread, and interruption of thread suspension is supported; or + *
  • A "spurious wakeup" occurs. + *
+ *

In all cases, before this method can return the current thread must + * re-acquire the lock associated with this condition. When the + * thread returns it is guaranteed to hold this lock. + *

If the current thread: + *

    + *
  • has its interrupted status set on entry to this method; or + *
  • is {@linkplain Thread#interrupt interrupted} while waiting + * and interruption of thread suspension is supported, + *
+ * then {@link InterruptedException} is thrown and the current thread's + * interrupted status is cleared. It is not specified, in the first + * case, whether or not the test for interruption occurs before the lock + * is released. + *

Implementation Considerations + *

The current thread is assumed to hold the lock associated with this + * {@code Condition} when this method is called. + * It is up to the implementation to determine if this is + * the case and if not, how to respond. Typically, an exception will be + * thrown (such as {@link IllegalMonitorStateException}) and the + * implementation must document that fact. + *

An implementation can favor responding to an interrupt over normal + * method return in response to a signal. In that case the implementation + * must ensure that the signal is redirected to another waiting thread, if + * there is one. + */ + // @ts-ignore + await(): void; + /** + * Causes the current thread to wait until it is signalled. + *

The lock associated with this condition is atomically + * released and the current thread becomes disabled for thread scheduling + * purposes and lies dormant until one of three things happens: + *

    + *
  • Some other thread invokes the {@link #signal} method for this + * {@code Condition} and the current thread happens to be chosen as the + * thread to be awakened; or + *
  • Some other thread invokes the {@link #signalAll} method for this + * {@code Condition}; or + *
  • A "spurious wakeup" occurs. + *
+ *

In all cases, before this method can return the current thread must + * re-acquire the lock associated with this condition. When the + * thread returns it is guaranteed to hold this lock. + *

If the current thread's interrupted status is set when it enters + * this method, or it is {@linkplain Thread#interrupt interrupted} + * while waiting, it will continue to wait until signalled. When it finally + * returns from this method its interrupted status will still + * be set. + *

Implementation Considerations + *

The current thread is assumed to hold the lock associated with this + * {@code Condition} when this method is called. + * It is up to the implementation to determine if this is + * the case and if not, how to respond. Typically, an exception will be + * thrown (such as {@link IllegalMonitorStateException}) and the + * implementation must document that fact. + */ + // @ts-ignore + awaitUninterruptibly(): void; + /** + * Causes the current thread to wait until it is signalled or interrupted, + * or the specified waiting time elapses. + *

The lock associated with this condition is atomically + * released and the current thread becomes disabled for thread scheduling + * purposes and lies dormant until one of five things happens: + *

    + *
  • Some other thread invokes the {@link #signal} method for this + * {@code Condition} and the current thread happens to be chosen as the + * thread to be awakened; or + *
  • Some other thread invokes the {@link #signalAll} method for this + * {@code Condition}; or + *
  • Some other thread {@linkplain Thread#interrupt interrupts} the + * current thread, and interruption of thread suspension is supported; or + *
  • The specified waiting time elapses; or + *
  • A "spurious wakeup" occurs. + *
+ *

In all cases, before this method can return the current thread must + * re-acquire the lock associated with this condition. When the + * thread returns it is guaranteed to hold this lock. + *

If the current thread: + *

    + *
  • has its interrupted status set on entry to this method; or + *
  • is {@linkplain Thread#interrupt interrupted} while waiting + * and interruption of thread suspension is supported, + *
+ * then {@link InterruptedException} is thrown and the current thread's + * interrupted status is cleared. It is not specified, in the first + * case, whether or not the test for interruption occurs before the lock + * is released. + *

The method returns an estimate of the number of nanoseconds + * remaining to wait given the supplied {@code nanosTimeout} + * value upon return, or a value less than or equal to zero if it + * timed out. This value can be used to determine whether and how + * long to re-wait in cases where the wait returns but an awaited + * condition still does not hold. Typical uses of this method take + * the following form: + *

 {@code
+                     * boolean aMethod(long timeout, TimeUnit unit) {
+                     * long nanos = unit.toNanos(timeout);
+                     * lock.lock();
+                     * try {
+                     * while (!conditionBeingWaitedFor()) {
+                     * if (nanos <= 0L)
+                     * return false;
+                     * nanos = theCondition.awaitNanos(nanos);
+                     * }
+                     * // ...
+                     * } finally {
+                     * lock.unlock();
+                     * }
+                     * }}
+ *

Design note: This method requires a nanosecond argument so + * as to avoid truncation errors in reporting remaining times. + * Such precision loss would make it difficult for programmers to + * ensure that total waiting times are not systematically shorter + * than specified when re-waits occur. + *

Implementation Considerations + *

The current thread is assumed to hold the lock associated with this + * {@code Condition} when this method is called. + * It is up to the implementation to determine if this is + * the case and if not, how to respond. Typically, an exception will be + * thrown (such as {@link IllegalMonitorStateException}) and the + * implementation must document that fact. + *

An implementation can favor responding to an interrupt over normal + * method return in response to a signal, or over indicating the elapse + * of the specified waiting time. In either case the implementation + * must ensure that the signal is redirected to another waiting thread, if + * there is one. + */ + // @ts-ignore + awaitNanos(nanosTimeout: number): number; + /** + * Causes the current thread to wait until it is signalled or interrupted, + * or the specified waiting time elapses. This method is behaviorally + * equivalent to: + *

 {@code awaitNanos(unit.toNanos(time)) > 0}
+ */ + // @ts-ignore + await(time: number, unit: java.util.concurrent.TimeUnit): boolean; + /** + * Causes the current thread to wait until it is signalled or interrupted, + * or the specified deadline elapses. + *

The lock associated with this condition is atomically + * released and the current thread becomes disabled for thread scheduling + * purposes and lies dormant until one of five things happens: + *

    + *
  • Some other thread invokes the {@link #signal} method for this + * {@code Condition} and the current thread happens to be chosen as the + * thread to be awakened; or + *
  • Some other thread invokes the {@link #signalAll} method for this + * {@code Condition}; or + *
  • Some other thread {@linkplain Thread#interrupt interrupts} the + * current thread, and interruption of thread suspension is supported; or + *
  • The specified deadline elapses; or + *
  • A "spurious wakeup" occurs. + *
+ *

In all cases, before this method can return the current thread must + * re-acquire the lock associated with this condition. When the + * thread returns it is guaranteed to hold this lock. + *

If the current thread: + *

    + *
  • has its interrupted status set on entry to this method; or + *
  • is {@linkplain Thread#interrupt interrupted} while waiting + * and interruption of thread suspension is supported, + *
+ * then {@link InterruptedException} is thrown and the current thread's + * interrupted status is cleared. It is not specified, in the first + * case, whether or not the test for interruption occurs before the lock + * is released. + *

The return value indicates whether the deadline has elapsed, + * which can be used as follows: + *

 {@code
+                     * boolean aMethod(Date deadline) {
+                     * boolean stillWaiting = true;
+                     * lock.lock();
+                     * try {
+                     * while (!conditionBeingWaitedFor()) {
+                     * if (!stillWaiting)
+                     * return false;
+                     * stillWaiting = theCondition.awaitUntil(deadline);
+                     * }
+                     * // ...
+                     * } finally {
+                     * lock.unlock();
+                     * }
+                     * }}
+ *

Implementation Considerations + *

The current thread is assumed to hold the lock associated with this + * {@code Condition} when this method is called. + * It is up to the implementation to determine if this is + * the case and if not, how to respond. Typically, an exception will be + * thrown (such as {@link IllegalMonitorStateException}) and the + * implementation must document that fact. + *

An implementation can favor responding to an interrupt over normal + * method return in response to a signal, or over indicating the passing + * of the specified deadline. In either case the implementation + * must ensure that the signal is redirected to another waiting thread, if + * there is one. + */ + // @ts-ignore + awaitUntil(deadline: java.util.Date): boolean; + /** + * Wakes up one waiting thread. + *

If any threads are waiting on this condition then one + * is selected for waking up. That thread must then re-acquire the + * lock before returning from {@code await}. + *

Implementation Considerations + *

An implementation may (and typically does) require that the + * current thread hold the lock associated with this {@code + * Condition} when this method is called. Implementations must + * document this precondition and any actions taken if the lock is + * not held. Typically, an exception such as {@link + * IllegalMonitorStateException} will be thrown. + */ + // @ts-ignore + signal(): void; + /** + * Wakes up all waiting threads. + *

If any threads are waiting on this condition then they are + * all woken up. Each thread must re-acquire the lock before it can + * return from {@code await}. + *

Implementation Considerations + *

An implementation may (and typically does) require that the + * current thread hold the lock associated with this {@code + * Condition} when this method is called. Implementations must + * document this precondition and any actions taken if the lock is + * not held. Typically, an exception such as {@link + * IllegalMonitorStateException} will be thrown. + */ + // @ts-ignore + signalAll(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.locks.Lock.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.locks.Lock.d.ts new file mode 100644 index 00000000..24b0844b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.locks.Lock.d.ts @@ -0,0 +1,154 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace locks { + // @ts-ignore + interface Lock { + /** + * Acquires the lock. + *

If the lock is not available then the current thread becomes + * disabled for thread scheduling purposes and lies dormant until the + * lock has been acquired. + *

Implementation Considerations + *

A {@code Lock} implementation may be able to detect erroneous use + * of the lock, such as an invocation that would cause deadlock, and + * may throw an (unchecked) exception in such circumstances. The + * circumstances and the exception type must be documented by that + * {@code Lock} implementation. + */ + // @ts-ignore + lock(): void; + /** + * Acquires the lock unless the current thread is + * {@linkplain Thread#interrupt interrupted}. + *

Acquires the lock if it is available and returns immediately. + *

If the lock is not available then the current thread becomes + * disabled for thread scheduling purposes and lies dormant until + * one of two things happens: + *

    + *
  • The lock is acquired by the current thread; or + *
  • Some other thread {@linkplain Thread#interrupt interrupts} the + * current thread, and interruption of lock acquisition is supported. + *
+ *

If the current thread: + *

    + *
  • has its interrupted status set on entry to this method; or + *
  • is {@linkplain Thread#interrupt interrupted} while acquiring the + * lock, and interruption of lock acquisition is supported, + *
+ * then {@link InterruptedException} is thrown and the current thread's + * interrupted status is cleared. + *

Implementation Considerations + *

The ability to interrupt a lock acquisition in some + * implementations may not be possible, and if possible may be an + * expensive operation. The programmer should be aware that this + * may be the case. An implementation should document when this is + * the case. + *

An implementation can favor responding to an interrupt over + * normal method return. + *

A {@code Lock} implementation may be able to detect + * erroneous use of the lock, such as an invocation that would + * cause deadlock, and may throw an (unchecked) exception in such + * circumstances. The circumstances and the exception type must + * be documented by that {@code Lock} implementation. + */ + // @ts-ignore + lockInterruptibly(): void; + /** + * Acquires the lock only if it is free at the time of invocation. + *

Acquires the lock if it is available and returns immediately + * with the value {@code true}. + * If the lock is not available then this method will return + * immediately with the value {@code false}. + *

A typical usage idiom for this method would be: + *

 {@code
+                     * Lock lock = ...;
+                     * if (lock.tryLock()) {
+                     * try {
+                     * // manipulate protected state
+                     * } finally {
+                     * lock.unlock();
+                     * }
+                     * } else {
+                     * // perform alternative actions
+                     * }}
+ * This usage ensures that the lock is unlocked if it was acquired, and + * doesn't try to unlock if the lock was not acquired. + */ + // @ts-ignore + tryLock(): boolean; + /** + * Acquires the lock if it is free within the given waiting time and the + * current thread has not been {@linkplain Thread#interrupt interrupted}. + *

If the lock is available this method returns immediately + * with the value {@code true}. + * If the lock is not available then + * the current thread becomes disabled for thread scheduling + * purposes and lies dormant until one of three things happens: + *

    + *
  • The lock is acquired by the current thread; or + *
  • Some other thread {@linkplain Thread#interrupt interrupts} the + * current thread, and interruption of lock acquisition is supported; or + *
  • The specified waiting time elapses + *
+ *

If the lock is acquired then the value {@code true} is returned. + *

If the current thread: + *

    + *
  • has its interrupted status set on entry to this method; or + *
  • is {@linkplain Thread#interrupt interrupted} while acquiring + * the lock, and interruption of lock acquisition is supported, + *
+ * then {@link InterruptedException} is thrown and the current thread's + * interrupted status is cleared. + *

If the specified waiting time elapses then the value {@code false} + * is returned. + * If the time is + * less than or equal to zero, the method will not wait at all. + *

Implementation Considerations + *

The ability to interrupt a lock acquisition in some implementations + * may not be possible, and if possible may + * be an expensive operation. + * The programmer should be aware that this may be the case. An + * implementation should document when this is the case. + *

An implementation can favor responding to an interrupt over normal + * method return, or reporting a timeout. + *

A {@code Lock} implementation may be able to detect + * erroneous use of the lock, such as an invocation that would cause + * deadlock, and may throw an (unchecked) exception in such circumstances. + * The circumstances and the exception type must be documented by that + * {@code Lock} implementation. + */ + // @ts-ignore + tryLock(time: number, unit: java.util.concurrent.TimeUnit): boolean; + /** + * Releases the lock. + *

Implementation Considerations + *

A {@code Lock} implementation will usually impose + * restrictions on which thread can release a lock (typically only the + * holder of the lock can release it) and may throw + * an (unchecked) exception if the restriction is violated. + * Any restrictions and the exception + * type must be documented by that {@code Lock} implementation. + */ + // @ts-ignore + unlock(): void; + /** + * Returns a new {@link Condition} instance that is bound to this + * {@code Lock} instance. + *

Before waiting on the condition the lock must be held by the + * current thread. + * A call to {@link Condition#await()} will atomically release the lock + * before waiting and re-acquire the lock before the wait returns. + *

Implementation Considerations + *

The exact operation of the {@link Condition} instance depends on + * the {@code Lock} implementation and must be documented by that + * implementation. + */ + // @ts-ignore + newCondition(): java.util.concurrent.locks.Condition; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.locks.LockSupport.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.locks.LockSupport.d.ts new file mode 100644 index 00000000..36f79bcc --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.locks.LockSupport.d.ts @@ -0,0 +1,165 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace locks { + // @ts-ignore + class LockSupport extends java.lang.Object { + /** + * Makes available the permit for the given thread, if it + * was not already available. If the thread was blocked on + * {@code park} then it will unblock. Otherwise, its next call + * to {@code park} is guaranteed not to block. This operation + * is not guaranteed to have any effect at all if the given + * thread has not been started. + */ + // @ts-ignore + public static unpark(thread: java.lang.Thread): void; + /** + * Disables the current thread for thread scheduling purposes unless the + * permit is available. + *

If the permit is available then it is consumed and the call returns + * immediately; otherwise + * the current thread becomes disabled for thread scheduling + * purposes and lies dormant until one of three things happens: + *

    + *
  • Some other thread invokes {@link #unpark unpark} with the + * current thread as the target; or + *
  • Some other thread {@linkplain Thread#interrupt interrupts} + * the current thread; or + *
  • The call spuriously (that is, for no reason) returns. + *
+ *

This method does not report which of these caused the + * method to return. Callers should re-check the conditions which caused + * the thread to park in the first place. Callers may also determine, + * for example, the interrupt status of the thread upon return. + */ + // @ts-ignore + public static park(blocker: java.lang.Object): void; + /** + * Disables the current thread for thread scheduling purposes, for up to + * the specified waiting time, unless the permit is available. + *

If the permit is available then it is consumed and the call + * returns immediately; otherwise the current thread becomes disabled + * for thread scheduling purposes and lies dormant until one of four + * things happens: + *

    + *
  • Some other thread invokes {@link #unpark unpark} with the + * current thread as the target; or + *
  • Some other thread {@linkplain Thread#interrupt interrupts} + * the current thread; or + *
  • The specified waiting time elapses; or + *
  • The call spuriously (that is, for no reason) returns. + *
+ *

This method does not report which of these caused the + * method to return. Callers should re-check the conditions which caused + * the thread to park in the first place. Callers may also determine, + * for example, the interrupt status of the thread, or the elapsed time + * upon return. + */ + // @ts-ignore + public static parkNanos(blocker: java.lang.Object, nanos: number): void; + /** + * Disables the current thread for thread scheduling purposes, until + * the specified deadline, unless the permit is available. + *

If the permit is available then it is consumed and the call + * returns immediately; otherwise the current thread becomes disabled + * for thread scheduling purposes and lies dormant until one of four + * things happens: + *

    + *
  • Some other thread invokes {@link #unpark unpark} with the + * current thread as the target; or + *
  • Some other thread {@linkplain Thread#interrupt interrupts} the + * current thread; or + *
  • The specified deadline passes; or + *
  • The call spuriously (that is, for no reason) returns. + *
+ *

This method does not report which of these caused the + * method to return. Callers should re-check the conditions which caused + * the thread to park in the first place. Callers may also determine, + * for example, the interrupt status of the thread, or the current time + * upon return. + */ + // @ts-ignore + public static parkUntil(blocker: java.lang.Object, deadline: number): void; + /** + * Returns the blocker object supplied to the most recent + * invocation of a park method that has not yet unblocked, or null + * if not blocked. The value returned is just a momentary + * snapshot -- the thread may have since unblocked or blocked on a + * different blocker object. + */ + // @ts-ignore + public static getBlocker(t: java.lang.Thread): java.lang.Object; + /** + * Disables the current thread for thread scheduling purposes unless the + * permit is available. + *

If the permit is available then it is consumed and the call + * returns immediately; otherwise the current thread becomes disabled + * for thread scheduling purposes and lies dormant until one of three + * things happens: + *

    + *
  • Some other thread invokes {@link #unpark unpark} with the + * current thread as the target; or + *
  • Some other thread {@linkplain Thread#interrupt interrupts} + * the current thread; or + *
  • The call spuriously (that is, for no reason) returns. + *
+ *

This method does not report which of these caused the + * method to return. Callers should re-check the conditions which caused + * the thread to park in the first place. Callers may also determine, + * for example, the interrupt status of the thread upon return. + */ + // @ts-ignore + public static park(): void; + /** + * Disables the current thread for thread scheduling purposes, for up to + * the specified waiting time, unless the permit is available. + *

If the permit is available then it is consumed and the call + * returns immediately; otherwise the current thread becomes disabled + * for thread scheduling purposes and lies dormant until one of four + * things happens: + *

    + *
  • Some other thread invokes {@link #unpark unpark} with the + * current thread as the target; or + *
  • Some other thread {@linkplain Thread#interrupt interrupts} + * the current thread; or + *
  • The specified waiting time elapses; or + *
  • The call spuriously (that is, for no reason) returns. + *
+ *

This method does not report which of these caused the + * method to return. Callers should re-check the conditions which caused + * the thread to park in the first place. Callers may also determine, + * for example, the interrupt status of the thread, or the elapsed time + * upon return. + */ + // @ts-ignore + public static parkNanos(nanos: number): void; + /** + * Disables the current thread for thread scheduling purposes, until + * the specified deadline, unless the permit is available. + *

If the permit is available then it is consumed and the call + * returns immediately; otherwise the current thread becomes disabled + * for thread scheduling purposes and lies dormant until one of four + * things happens: + *

    + *
  • Some other thread invokes {@link #unpark unpark} with the + * current thread as the target; or + *
  • Some other thread {@linkplain Thread#interrupt interrupts} + * the current thread; or + *
  • The specified deadline passes; or + *
  • The call spuriously (that is, for no reason) returns. + *
+ *

This method does not report which of these caused the + * method to return. Callers should re-check the conditions which caused + * the thread to park in the first place. Callers may also determine, + * for example, the interrupt status of the thread, or the current time + * upon return. + */ + // @ts-ignore + public static parkUntil(deadline: number): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.locks.ReadWriteLock.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.locks.ReadWriteLock.d.ts new file mode 100644 index 00000000..ce4d2a19 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.locks.ReadWriteLock.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace locks { + // @ts-ignore + interface ReadWriteLock { + /** + * Returns the lock used for reading. + */ + // @ts-ignore + readLock(): java.util.concurrent.locks.Lock; + /** + * Returns the lock used for writing. + */ + // @ts-ignore + writeLock(): java.util.concurrent.locks.Lock; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.locks.ReentrantLock.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.locks.ReentrantLock.d.ts new file mode 100644 index 00000000..94c8d086 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.locks.ReentrantLock.d.ts @@ -0,0 +1,340 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace locks { + // @ts-ignore + class ReentrantLock extends java.lang.Object { + /** + * Creates an instance of {@code ReentrantLock}. + * This is equivalent to using {@code ReentrantLock(false)}. + */ + // @ts-ignore + constructor() + /** + * Creates an instance of {@code ReentrantLock} with the + * given fairness policy. + */ + // @ts-ignore + constructor(fair: boolean) + /** + * Acquires the lock. + *

Acquires the lock if it is not held by another thread and returns + * immediately, setting the lock hold count to one. + *

If the current thread already holds the lock then the hold + * count is incremented by one and the method returns immediately. + *

If the lock is held by another thread then the + * current thread becomes disabled for thread scheduling + * purposes and lies dormant until the lock has been acquired, + * at which time the lock hold count is set to one. + */ + // @ts-ignore + public lock(): void; + /** + * Acquires the lock unless the current thread is + * {@linkplain Thread#interrupt interrupted}. + *

Acquires the lock if it is not held by another thread and returns + * immediately, setting the lock hold count to one. + *

If the current thread already holds this lock then the hold count + * is incremented by one and the method returns immediately. + *

If the lock is held by another thread then the + * current thread becomes disabled for thread scheduling + * purposes and lies dormant until one of two things happens: + *

    + *
  • The lock is acquired by the current thread; or + *
  • Some other thread {@linkplain Thread#interrupt interrupts} the + * current thread. + *
+ *

If the lock is acquired by the current thread then the lock hold + * count is set to one. + *

If the current thread: + *

    + *
  • has its interrupted status set on entry to this method; or + *
  • is {@linkplain Thread#interrupt interrupted} while acquiring + * the lock, + *
+ * then {@link InterruptedException} is thrown and the current thread's + * interrupted status is cleared. + *

In this implementation, as this method is an explicit + * interruption point, preference is given to responding to the + * interrupt over normal or reentrant acquisition of the lock. + */ + // @ts-ignore + public lockInterruptibly(): void; + /** + * Acquires the lock only if it is not held by another thread at the time + * of invocation. + *

Acquires the lock if it is not held by another thread and + * returns immediately with the value {@code true}, setting the + * lock hold count to one. Even when this lock has been set to use a + * fair ordering policy, a call to {@code tryLock()} will + * immediately acquire the lock if it is available, whether or not + * other threads are currently waiting for the lock. + * This "barging" behavior can be useful in certain + * circumstances, even though it breaks fairness. If you want to honor + * the fairness setting for this lock, then use + * {@link #tryLock(long, TimeUnit) tryLock(0, TimeUnit.SECONDS) } + * which is almost equivalent (it also detects interruption). + *

If the current thread already holds this lock then the hold + * count is incremented by one and the method returns {@code true}. + *

If the lock is held by another thread then this method will return + * immediately with the value {@code false}. + */ + // @ts-ignore + public tryLock(): boolean; + /** + * Acquires the lock if it is not held by another thread within the given + * waiting time and the current thread has not been + * {@linkplain Thread#interrupt interrupted}. + *

Acquires the lock if it is not held by another thread and returns + * immediately with the value {@code true}, setting the lock hold count + * to one. If this lock has been set to use a fair ordering policy then + * an available lock will not be acquired if any other threads + * are waiting for the lock. This is in contrast to the {@link #tryLock()} + * method. If you want a timed {@code tryLock} that does permit barging on + * a fair lock then combine the timed and un-timed forms together: + *

 {@code
+                     * if (lock.tryLock() ||
+                     * lock.tryLock(timeout, unit)) {
+                     * ...
+                     * }}
+ *

If the current thread + * already holds this lock then the hold count is incremented by one and + * the method returns {@code true}. + *

If the lock is held by another thread then the + * current thread becomes disabled for thread scheduling + * purposes and lies dormant until one of three things happens: + *

    + *
  • The lock is acquired by the current thread; or + *
  • Some other thread {@linkplain Thread#interrupt interrupts} + * the current thread; or + *
  • The specified waiting time elapses + *
+ *

If the lock is acquired then the value {@code true} is returned and + * the lock hold count is set to one. + *

If the current thread: + *

    + *
  • has its interrupted status set on entry to this method; or + *
  • is {@linkplain Thread#interrupt interrupted} while + * acquiring the lock, + *
+ * then {@link InterruptedException} is thrown and the current thread's + * interrupted status is cleared. + *

If the specified waiting time elapses then the value {@code false} + * is returned. If the time is less than or equal to zero, the method + * will not wait at all. + *

In this implementation, as this method is an explicit + * interruption point, preference is given to responding to the + * interrupt over normal or reentrant acquisition of the lock, and + * over reporting the elapse of the waiting time. + */ + // @ts-ignore + public tryLock(timeout: number, unit: java.util.concurrent.TimeUnit): boolean; + /** + * Attempts to release this lock. + *

If the current thread is the holder of this lock then the hold + * count is decremented. If the hold count is now zero then the lock + * is released. If the current thread is not the holder of this + * lock then {@link IllegalMonitorStateException} is thrown. + */ + // @ts-ignore + public unlock(): void; + /** + * Returns a {@link Condition} instance for use with this + * {@link Lock} instance. + *

The returned {@link Condition} instance supports the same + * usages as do the {@link Object} monitor methods ({@link + * Object#wait() wait}, {@link Object#notify notify}, and {@link + * Object#notifyAll notifyAll}) when used with the built-in + * monitor lock. + *

    + *
  • If this lock is not held when any of the {@link Condition} + * {@linkplain Condition#await() waiting} or {@linkplain + * Condition#signal signalling} methods are called, then an {@link + * IllegalMonitorStateException} is thrown. + *
  • When the condition {@linkplain Condition#await() waiting} + * methods are called the lock is released and, before they + * return, the lock is reacquired and the lock hold count restored + * to what it was when the method was called. + *
  • If a thread is {@linkplain Thread#interrupt interrupted} + * while waiting then the wait will terminate, an {@link + * InterruptedException} will be thrown, and the thread's + * interrupted status will be cleared. + *
  • Waiting threads are signalled in FIFO order. + *
  • The ordering of lock reacquisition for threads returning + * from waiting methods is the same as for threads initially + * acquiring the lock, which is in the default case not specified, + * but for fair locks favors those threads that have been + * waiting the longest. + *
+ */ + // @ts-ignore + public newCondition(): java.util.concurrent.locks.Condition; + /** + * Queries the number of holds on this lock by the current thread. + *

A thread has a hold on a lock for each lock action that is not + * matched by an unlock action. + *

The hold count information is typically only used for testing and + * debugging purposes. For example, if a certain section of code should + * not be entered with the lock already held then we can assert that + * fact: + *

 {@code
+                     * class X {
+                     * ReentrantLock lock = new ReentrantLock();
+                     * // ...
+                     * public void m() {
+                     * assert lock.getHoldCount() == 0;
+                     * lock.lock();
+                     * try {
+                     * // ... method body
+                     * } finally {
+                     * lock.unlock();
+                     * }
+                     * }
+                     * }}
+ */ + // @ts-ignore + public getHoldCount(): number; + /** + * Queries if this lock is held by the current thread. + *

Analogous to the {@link Thread#holdsLock(Object)} method for + * built-in monitor locks, this method is typically used for + * debugging and testing. For example, a method that should only be + * called while a lock is held can assert that this is the case: + *

 {@code
+                     * class X {
+                     * ReentrantLock lock = new ReentrantLock();
+                     * // ...
+                     * public void m() {
+                     * assert lock.isHeldByCurrentThread();
+                     * // ... method body
+                     * }
+                     * }}
+ *

It can also be used to ensure that a reentrant lock is used + * in a non-reentrant manner, for example: + *

 {@code
+                     * class X {
+                     * ReentrantLock lock = new ReentrantLock();
+                     * // ...
+                     * public void m() {
+                     * assert !lock.isHeldByCurrentThread();
+                     * lock.lock();
+                     * try {
+                     * // ... method body
+                     * } finally {
+                     * lock.unlock();
+                     * }
+                     * }
+                     * }}
+ */ + // @ts-ignore + public isHeldByCurrentThread(): boolean; + /** + * Queries if this lock is held by any thread. This method is + * designed for use in monitoring of the system state, + * not for synchronization control. + */ + // @ts-ignore + public isLocked(): boolean; + /** + * Returns {@code true} if this lock has fairness set true. + */ + // @ts-ignore + public isFair(): boolean; + /** + * Returns the thread that currently owns this lock, or + * {@code null} if not owned. When this method is called by a + * thread that is not the owner, the return value reflects a + * best-effort approximation of current lock status. For example, + * the owner may be momentarily {@code null} even if there are + * threads trying to acquire the lock but have not yet done so. + * This method is designed to facilitate construction of + * subclasses that provide more extensive lock monitoring + * facilities. + */ + // @ts-ignore + protected getOwner(): java.lang.Thread; + /** + * Queries whether any threads are waiting to acquire this lock. Note that + * because cancellations may occur at any time, a {@code true} + * return does not guarantee that any other thread will ever + * acquire this lock. This method is designed primarily for use in + * monitoring of the system state. + */ + // @ts-ignore + public hasQueuedThreads(): boolean; + /** + * Queries whether the given thread is waiting to acquire this + * lock. Note that because cancellations may occur at any time, a + * {@code true} return does not guarantee that this thread + * will ever acquire this lock. This method is designed primarily for use + * in monitoring of the system state. + */ + // @ts-ignore + public hasQueuedThread(thread: java.lang.Thread): boolean; + /** + * Returns an estimate of the number of threads waiting to + * acquire this lock. The value is only an estimate because the number of + * threads may change dynamically while this method traverses + * internal data structures. This method is designed for use in + * monitoring of the system state, not for synchronization + * control. + */ + // @ts-ignore + public getQueueLength(): number; + /** + * Returns a collection containing threads that may be waiting to + * acquire this lock. Because the actual set of threads may change + * dynamically while constructing this result, the returned + * collection is only a best-effort estimate. The elements of the + * returned collection are in no particular order. This method is + * designed to facilitate construction of subclasses that provide + * more extensive monitoring facilities. + */ + // @ts-ignore + protected getQueuedThreads(): java.util.Collection; + /** + * Queries whether any threads are waiting on the given condition + * associated with this lock. Note that because timeouts and + * interrupts may occur at any time, a {@code true} return does + * not guarantee that a future {@code signal} will awaken any + * threads. This method is designed primarily for use in + * monitoring of the system state. + */ + // @ts-ignore + public hasWaiters(condition: java.util.concurrent.locks.Condition): boolean; + /** + * Returns an estimate of the number of threads waiting on the + * given condition associated with this lock. Note that because + * timeouts and interrupts may occur at any time, the estimate + * serves only as an upper bound on the actual number of waiters. + * This method is designed for use in monitoring of the system + * state, not for synchronization control. + */ + // @ts-ignore + public getWaitQueueLength(condition: java.util.concurrent.locks.Condition): number; + /** + * Returns a collection containing those threads that may be + * waiting on the given condition associated with this lock. + * Because the actual set of threads may change dynamically while + * constructing this result, the returned collection is only a + * best-effort estimate. The elements of the returned collection + * are in no particular order. This method is designed to + * facilitate construction of subclasses that provide more + * extensive condition monitoring facilities. + */ + // @ts-ignore + protected getWaitingThreads(condition: java.util.concurrent.locks.Condition): java.util.Collection; + /** + * Returns a string identifying this lock, as well as its lock state. + * The state, in brackets, includes either the String {@code "Unlocked"} + * or the String {@code "Locked by"} followed by the + * {@linkplain Thread#getName name} of the owning thread. + */ + // @ts-ignore + public toString(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock.d.ts new file mode 100644 index 00000000..b735c2a8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock.d.ts @@ -0,0 +1,145 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace locks { + namespace ReentrantReadWriteLock { + // @ts-ignore + class ReadLock extends java.lang.Object { + /** + * Constructor for use by subclasses + */ + // @ts-ignore + constructor(lock: java.util.concurrent.locks.ReentrantReadWriteLock) + /** + * Acquires the read lock. + *

Acquires the read lock if the write lock is not held by + * another thread and returns immediately. + *

If the write lock is held by another thread then + * the current thread becomes disabled for thread scheduling + * purposes and lies dormant until the read lock has been acquired. + */ + // @ts-ignore + public lock(): void; + /** + * Acquires the read lock unless the current thread is + * {@linkplain Thread#interrupt interrupted}. + *

Acquires the read lock if the write lock is not held + * by another thread and returns immediately. + *

If the write lock is held by another thread then the + * current thread becomes disabled for thread scheduling + * purposes and lies dormant until one of two things happens: + *

    + *
  • The read lock is acquired by the current thread; or + *
  • Some other thread {@linkplain Thread#interrupt interrupts} + * the current thread. + *
+ *

If the current thread: + *

    + *
  • has its interrupted status set on entry to this method; or + *
  • is {@linkplain Thread#interrupt interrupted} while + * acquiring the read lock, + *
+ * then {@link InterruptedException} is thrown and the current + * thread's interrupted status is cleared. + *

In this implementation, as this method is an explicit + * interruption point, preference is given to responding to + * the interrupt over normal or reentrant acquisition of the + * lock. + */ + // @ts-ignore + public lockInterruptibly(): void; + /** + * Acquires the read lock only if the write lock is not held by + * another thread at the time of invocation. + *

Acquires the read lock if the write lock is not held by + * another thread and returns immediately with the value + * {@code true}. Even when this lock has been set to use a + * fair ordering policy, a call to {@code tryLock()} + * will immediately acquire the read lock if it is + * available, whether or not other threads are currently + * waiting for the read lock. This "barging" behavior + * can be useful in certain circumstances, even though it + * breaks fairness. If you want to honor the fairness setting + * for this lock, then use {@link #tryLock(long, TimeUnit) + * tryLock(0, TimeUnit.SECONDS) } which is almost equivalent + * (it also detects interruption). + *

If the write lock is held by another thread then + * this method will return immediately with the value + * {@code false}. + */ + // @ts-ignore + public tryLock(): boolean; + /** + * Acquires the read lock if the write lock is not held by + * another thread within the given waiting time and the + * current thread has not been {@linkplain Thread#interrupt + * interrupted}. + *

Acquires the read lock if the write lock is not held by + * another thread and returns immediately with the value + * {@code true}. If this lock has been set to use a fair + * ordering policy then an available lock will not be + * acquired if any other threads are waiting for the + * lock. This is in contrast to the {@link #tryLock()} + * method. If you want a timed {@code tryLock} that does + * permit barging on a fair lock then combine the timed and + * un-timed forms together: + *

 {@code
+                         * if (lock.tryLock() ||
+                         * lock.tryLock(timeout, unit)) {
+                         * ...
+                         * }}
+ *

If the write lock is held by another thread then the + * current thread becomes disabled for thread scheduling + * purposes and lies dormant until one of three things happens: + *

    + *
  • The read lock is acquired by the current thread; or + *
  • Some other thread {@linkplain Thread#interrupt interrupts} + * the current thread; or + *
  • The specified waiting time elapses. + *
+ *

If the read lock is acquired then the value {@code true} is + * returned. + *

If the current thread: + *

    + *
  • has its interrupted status set on entry to this method; or + *
  • is {@linkplain Thread#interrupt interrupted} while + * acquiring the read lock, + *
then {@link InterruptedException} is thrown and the + * current thread's interrupted status is cleared. + *

If the specified waiting time elapses then the value + * {@code false} is returned. If the time is less than or + * equal to zero, the method will not wait at all. + *

In this implementation, as this method is an explicit + * interruption point, preference is given to responding to + * the interrupt over normal or reentrant acquisition of the + * lock, and over reporting the elapse of the waiting time. + */ + // @ts-ignore + public tryLock(timeout: number, unit: java.util.concurrent.TimeUnit): boolean; + /** + * Attempts to release this lock. + *

If the number of readers is now zero then the lock + * is made available for write lock attempts. + */ + // @ts-ignore + public unlock(): void; + /** + * Throws {@code UnsupportedOperationException} because + * {@code ReadLocks} do not support conditions. + */ + // @ts-ignore + public newCondition(): java.util.concurrent.locks.Condition; + /** + * Returns a string identifying this lock, as well as its lock state. + * The state, in brackets, includes the String {@code "Read locks ="} + * followed by the number of held read locks. + */ + // @ts-ignore + public toString(): string; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock.d.ts new file mode 100644 index 00000000..609b9097 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock.d.ts @@ -0,0 +1,216 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace locks { + namespace ReentrantReadWriteLock { + // @ts-ignore + class WriteLock extends java.lang.Object { + /** + * Constructor for use by subclasses + */ + // @ts-ignore + constructor(lock: java.util.concurrent.locks.ReentrantReadWriteLock) + /** + * Acquires the write lock. + *

Acquires the write lock if neither the read nor write lock + * are held by another thread + * and returns immediately, setting the write lock hold count to + * one. + *

If the current thread already holds the write lock then the + * hold count is incremented by one and the method returns + * immediately. + *

If the lock is held by another thread then the current + * thread becomes disabled for thread scheduling purposes and + * lies dormant until the write lock has been acquired, at which + * time the write lock hold count is set to one. + */ + // @ts-ignore + public lock(): void; + /** + * Acquires the write lock unless the current thread is + * {@linkplain Thread#interrupt interrupted}. + *

Acquires the write lock if neither the read nor write lock + * are held by another thread + * and returns immediately, setting the write lock hold count to + * one. + *

If the current thread already holds this lock then the + * hold count is incremented by one and the method returns + * immediately. + *

If the lock is held by another thread then the current + * thread becomes disabled for thread scheduling purposes and + * lies dormant until one of two things happens: + *

    + *
  • The write lock is acquired by the current thread; or + *
  • Some other thread {@linkplain Thread#interrupt interrupts} + * the current thread. + *
+ *

If the write lock is acquired by the current thread then the + * lock hold count is set to one. + *

If the current thread: + *

    + *
  • has its interrupted status set on entry to this method; + * or + *
  • is {@linkplain Thread#interrupt interrupted} while + * acquiring the write lock, + *
+ * then {@link InterruptedException} is thrown and the current + * thread's interrupted status is cleared. + *

In this implementation, as this method is an explicit + * interruption point, preference is given to responding to + * the interrupt over normal or reentrant acquisition of the + * lock. + */ + // @ts-ignore + public lockInterruptibly(): void; + /** + * Acquires the write lock only if it is not held by another thread + * at the time of invocation. + *

Acquires the write lock if neither the read nor write lock + * are held by another thread + * and returns immediately with the value {@code true}, + * setting the write lock hold count to one. Even when this lock has + * been set to use a fair ordering policy, a call to + * {@code tryLock()} will immediately acquire the + * lock if it is available, whether or not other threads are + * currently waiting for the write lock. This "barging" + * behavior can be useful in certain circumstances, even + * though it breaks fairness. If you want to honor the + * fairness setting for this lock, then use {@link + * #tryLock(long, TimeUnit) tryLock(0, TimeUnit.SECONDS) } + * which is almost equivalent (it also detects interruption). + *

If the current thread already holds this lock then the + * hold count is incremented by one and the method returns + * {@code true}. + *

If the lock is held by another thread then this method + * will return immediately with the value {@code false}. + */ + // @ts-ignore + public tryLock(): boolean; + /** + * Acquires the write lock if it is not held by another thread + * within the given waiting time and the current thread has + * not been {@linkplain Thread#interrupt interrupted}. + *

Acquires the write lock if neither the read nor write lock + * are held by another thread + * and returns immediately with the value {@code true}, + * setting the write lock hold count to one. If this lock has been + * set to use a fair ordering policy then an available lock + * will not be acquired if any other threads are + * waiting for the write lock. This is in contrast to the {@link + * #tryLock()} method. If you want a timed {@code tryLock} + * that does permit barging on a fair lock then combine the + * timed and un-timed forms together: + *

 {@code
+                         * if (lock.tryLock() ||
+                         * lock.tryLock(timeout, unit)) {
+                         * ...
+                         * }}
+ *

If the current thread already holds this lock then the + * hold count is incremented by one and the method returns + * {@code true}. + *

If the lock is held by another thread then the current + * thread becomes disabled for thread scheduling purposes and + * lies dormant until one of three things happens: + *

    + *
  • The write lock is acquired by the current thread; or + *
  • Some other thread {@linkplain Thread#interrupt interrupts} + * the current thread; or + *
  • The specified waiting time elapses + *
+ *

If the write lock is acquired then the value {@code true} is + * returned and the write lock hold count is set to one. + *

If the current thread: + *

    + *
  • has its interrupted status set on entry to this method; + * or + *
  • is {@linkplain Thread#interrupt interrupted} while + * acquiring the write lock, + *
+ * then {@link InterruptedException} is thrown and the current + * thread's interrupted status is cleared. + *

If the specified waiting time elapses then the value + * {@code false} is returned. If the time is less than or + * equal to zero, the method will not wait at all. + *

In this implementation, as this method is an explicit + * interruption point, preference is given to responding to + * the interrupt over normal or reentrant acquisition of the + * lock, and over reporting the elapse of the waiting time. + */ + // @ts-ignore + public tryLock(timeout: number, unit: java.util.concurrent.TimeUnit): boolean; + /** + * Attempts to release this lock. + *

If the current thread is the holder of this lock then + * the hold count is decremented. If the hold count is now + * zero then the lock is released. If the current thread is + * not the holder of this lock then {@link + * IllegalMonitorStateException} is thrown. + */ + // @ts-ignore + public unlock(): void; + /** + * Returns a {@link Condition} instance for use with this + * {@link Lock} instance. + *

The returned {@link Condition} instance supports the same + * usages as do the {@link Object} monitor methods ({@link + * Object#wait() wait}, {@link Object#notify notify}, and {@link + * Object#notifyAll notifyAll}) when used with the built-in + * monitor lock. + *

    + *
  • If this write lock is not held when any {@link + * Condition} method is called then an {@link + * IllegalMonitorStateException} is thrown. (Read locks are + * held independently of write locks, so are not checked or + * affected. However it is essentially always an error to + * invoke a condition waiting method when the current thread + * has also acquired read locks, since other threads that + * could unblock it will not be able to acquire the write + * lock.) + *
  • When the condition {@linkplain Condition#await() waiting} + * methods are called the write lock is released and, before + * they return, the write lock is reacquired and the lock hold + * count restored to what it was when the method was called. + *
  • If a thread is {@linkplain Thread#interrupt interrupted} while + * waiting then the wait will terminate, an {@link + * InterruptedException} will be thrown, and the thread's + * interrupted status will be cleared. + *
  • Waiting threads are signalled in FIFO order. + *
  • The ordering of lock reacquisition for threads returning + * from waiting methods is the same as for threads initially + * acquiring the lock, which is in the default case not specified, + * but for fair locks favors those threads that have been + * waiting the longest. + *
+ */ + // @ts-ignore + public newCondition(): java.util.concurrent.locks.Condition; + /** + * Returns a string identifying this lock, as well as its lock + * state. The state, in brackets includes either the String + * {@code "Unlocked"} or the String {@code "Locked by"} + * followed by the {@linkplain Thread#getName name} of the owning thread. + */ + // @ts-ignore + public toString(): string; + /** + * Queries if this write lock is held by the current thread. + * Identical in effect to {@link + * ReentrantReadWriteLock#isWriteLockedByCurrentThread}. + */ + // @ts-ignore + public isHeldByCurrentThread(): boolean; + /** + * Queries the number of holds on this write lock by the current + * thread. A thread has a hold on a lock for each lock action + * that is not matched by an unlock action. Identical in effect + * to {@link ReentrantReadWriteLock#getWriteHoldCount}. + */ + // @ts-ignore + public getHoldCount(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.locks.ReentrantReadWriteLock.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.locks.ReentrantReadWriteLock.d.ts new file mode 100644 index 00000000..4b3b7069 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.locks.ReentrantReadWriteLock.d.ts @@ -0,0 +1,181 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace locks { + // @ts-ignore + class ReentrantReadWriteLock extends java.lang.Object { + /** + * Creates a new {@code ReentrantReadWriteLock} with + * default (nonfair) ordering properties. + */ + // @ts-ignore + constructor() + /** + * Creates a new {@code ReentrantReadWriteLock} with + * the given fairness policy. + */ + // @ts-ignore + constructor(fair: boolean) + // @ts-ignore + public writeLock(): java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock; + // @ts-ignore + public readLock(): java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock; + /** + * Returns {@code true} if this lock has fairness set true. + */ + // @ts-ignore + public isFair(): boolean; + /** + * Returns the thread that currently owns the write lock, or + * {@code null} if not owned. When this method is called by a + * thread that is not the owner, the return value reflects a + * best-effort approximation of current lock status. For example, + * the owner may be momentarily {@code null} even if there are + * threads trying to acquire the lock but have not yet done so. + * This method is designed to facilitate construction of + * subclasses that provide more extensive lock monitoring + * facilities. + */ + // @ts-ignore + protected getOwner(): java.lang.Thread; + /** + * Queries the number of read locks held for this lock. This + * method is designed for use in monitoring system state, not for + * synchronization control. + */ + // @ts-ignore + public getReadLockCount(): number; + /** + * Queries if the write lock is held by any thread. This method is + * designed for use in monitoring system state, not for + * synchronization control. + */ + // @ts-ignore + public isWriteLocked(): boolean; + /** + * Queries if the write lock is held by the current thread. + */ + // @ts-ignore + public isWriteLockedByCurrentThread(): boolean; + /** + * Queries the number of reentrant write holds on this lock by the + * current thread. A writer thread has a hold on a lock for + * each lock action that is not matched by an unlock action. + */ + // @ts-ignore + public getWriteHoldCount(): number; + /** + * Queries the number of reentrant read holds on this lock by the + * current thread. A reader thread has a hold on a lock for + * each lock action that is not matched by an unlock action. + */ + // @ts-ignore + public getReadHoldCount(): number; + /** + * Returns a collection containing threads that may be waiting to + * acquire the write lock. Because the actual set of threads may + * change dynamically while constructing this result, the returned + * collection is only a best-effort estimate. The elements of the + * returned collection are in no particular order. This method is + * designed to facilitate construction of subclasses that provide + * more extensive lock monitoring facilities. + */ + // @ts-ignore + protected getQueuedWriterThreads(): java.util.Collection; + /** + * Returns a collection containing threads that may be waiting to + * acquire the read lock. Because the actual set of threads may + * change dynamically while constructing this result, the returned + * collection is only a best-effort estimate. The elements of the + * returned collection are in no particular order. This method is + * designed to facilitate construction of subclasses that provide + * more extensive lock monitoring facilities. + */ + // @ts-ignore + protected getQueuedReaderThreads(): java.util.Collection; + /** + * Queries whether any threads are waiting to acquire the read or + * write lock. Note that because cancellations may occur at any + * time, a {@code true} return does not guarantee that any other + * thread will ever acquire a lock. This method is designed + * primarily for use in monitoring of the system state. + */ + // @ts-ignore + public hasQueuedThreads(): boolean; + /** + * Queries whether the given thread is waiting to acquire either + * the read or write lock. Note that because cancellations may + * occur at any time, a {@code true} return does not guarantee + * that this thread will ever acquire a lock. This method is + * designed primarily for use in monitoring of the system state. + */ + // @ts-ignore + public hasQueuedThread(thread: java.lang.Thread): boolean; + /** + * Returns an estimate of the number of threads waiting to acquire + * either the read or write lock. The value is only an estimate + * because the number of threads may change dynamically while this + * method traverses internal data structures. This method is + * designed for use in monitoring of the system state, not for + * synchronization control. + */ + // @ts-ignore + public getQueueLength(): number; + /** + * Returns a collection containing threads that may be waiting to + * acquire either the read or write lock. Because the actual set + * of threads may change dynamically while constructing this + * result, the returned collection is only a best-effort estimate. + * The elements of the returned collection are in no particular + * order. This method is designed to facilitate construction of + * subclasses that provide more extensive monitoring facilities. + */ + // @ts-ignore + protected getQueuedThreads(): java.util.Collection; + /** + * Queries whether any threads are waiting on the given condition + * associated with the write lock. Note that because timeouts and + * interrupts may occur at any time, a {@code true} return does + * not guarantee that a future {@code signal} will awaken any + * threads. This method is designed primarily for use in + * monitoring of the system state. + */ + // @ts-ignore + public hasWaiters(condition: java.util.concurrent.locks.Condition): boolean; + /** + * Returns an estimate of the number of threads waiting on the + * given condition associated with the write lock. Note that because + * timeouts and interrupts may occur at any time, the estimate + * serves only as an upper bound on the actual number of waiters. + * This method is designed for use in monitoring of the system + * state, not for synchronization control. + */ + // @ts-ignore + public getWaitQueueLength(condition: java.util.concurrent.locks.Condition): number; + /** + * Returns a collection containing those threads that may be + * waiting on the given condition associated with the write lock. + * Because the actual set of threads may change dynamically while + * constructing this result, the returned collection is only a + * best-effort estimate. The elements of the returned collection + * are in no particular order. This method is designed to + * facilitate construction of subclasses that provide more + * extensive condition monitoring facilities. + */ + // @ts-ignore + protected getWaitingThreads(condition: java.util.concurrent.locks.Condition): java.util.Collection; + /** + * Returns a string identifying this lock, as well as its lock state. + * The state, in brackets, includes the String {@code "Write locks ="} + * followed by the number of reentrantly held write locks, and the + * String {@code "Read locks ="} followed by the number of held + * read locks. + */ + // @ts-ignore + public toString(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.concurrent.locks.StampedLock.d.ts b/packages/types/dist/typings/jdk/java.util.concurrent.locks.StampedLock.d.ts new file mode 100644 index 00000000..b728c796 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.concurrent.locks.StampedLock.d.ts @@ -0,0 +1,203 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace concurrent { + namespace locks { + // @ts-ignore + class StampedLock extends java.lang.Object { + /** + * Creates a new lock, initially in unlocked state. + */ + // @ts-ignore + constructor() + /** + * Exclusively acquires the lock, blocking if necessary + * until available. + */ + // @ts-ignore + public writeLock(): number; + /** + * Exclusively acquires the lock if it is immediately available. + */ + // @ts-ignore + public tryWriteLock(): number; + /** + * Exclusively acquires the lock if it is available within the + * given time and the current thread has not been interrupted. + * Behavior under timeout and interruption matches that specified + * for method {@link Lock#tryLock(long,TimeUnit)}. + */ + // @ts-ignore + public tryWriteLock(time: number, unit: java.util.concurrent.TimeUnit): number; + /** + * Exclusively acquires the lock, blocking if necessary + * until available or the current thread is interrupted. + * Behavior under interruption matches that specified + * for method {@link Lock#lockInterruptibly()}. + */ + // @ts-ignore + public writeLockInterruptibly(): number; + /** + * Non-exclusively acquires the lock, blocking if necessary + * until available. + */ + // @ts-ignore + public readLock(): number; + /** + * Non-exclusively acquires the lock if it is immediately available. + */ + // @ts-ignore + public tryReadLock(): number; + /** + * Non-exclusively acquires the lock if it is available within the + * given time and the current thread has not been interrupted. + * Behavior under timeout and interruption matches that specified + * for method {@link Lock#tryLock(long,TimeUnit)}. + */ + // @ts-ignore + public tryReadLock(time: number, unit: java.util.concurrent.TimeUnit): number; + /** + * Non-exclusively acquires the lock, blocking if necessary + * until available or the current thread is interrupted. + * Behavior under interruption matches that specified + * for method {@link Lock#lockInterruptibly()}. + */ + // @ts-ignore + public readLockInterruptibly(): number; + /** + * Returns a stamp that can later be validated, or zero + * if exclusively locked. + */ + // @ts-ignore + public tryOptimisticRead(): number; + /** + * Returns true if the lock has not been exclusively acquired + * since issuance of the given stamp. Always returns false if the + * stamp is zero. Always returns true if the stamp represents a + * currently held lock. Invoking this method with a value not + * obtained from {@link #tryOptimisticRead} or a locking method + * for this lock has no defined effect or result. + */ + // @ts-ignore + public validate(stamp: number): boolean; + /** + * If the lock state matches the given stamp, releases the + * exclusive lock. + */ + // @ts-ignore + public unlockWrite(stamp: number): void; + /** + * If the lock state matches the given stamp, releases the + * non-exclusive lock. + */ + // @ts-ignore + public unlockRead(stamp: number): void; + /** + * If the lock state matches the given stamp, releases the + * corresponding mode of the lock. + */ + // @ts-ignore + public unlock(stamp: number): void; + /** + * If the lock state matches the given stamp, performs one of + * the following actions. If the stamp represents holding a write + * lock, returns it. Or, if a read lock, if the write lock is + * available, releases the read lock and returns a write stamp. + * Or, if an optimistic read, returns a write stamp only if + * immediately available. This method returns zero in all other + * cases. + */ + // @ts-ignore + public tryConvertToWriteLock(stamp: number): number; + /** + * If the lock state matches the given stamp, performs one of + * the following actions. If the stamp represents holding a write + * lock, releases it and obtains a read lock. Or, if a read lock, + * returns it. Or, if an optimistic read, acquires a read lock and + * returns a read stamp only if immediately available. This method + * returns zero in all other cases. + */ + // @ts-ignore + public tryConvertToReadLock(stamp: number): number; + /** + * If the lock state matches the given stamp then, if the stamp + * represents holding a lock, releases it and returns an + * observation stamp. Or, if an optimistic read, returns it if + * validated. This method returns zero in all other cases, and so + * may be useful as a form of "tryUnlock". + */ + // @ts-ignore + public tryConvertToOptimisticRead(stamp: number): number; + /** + * Releases the write lock if it is held, without requiring a + * stamp value. This method may be useful for recovery after + * errors. + */ + // @ts-ignore + public tryUnlockWrite(): boolean; + /** + * Releases one hold of the read lock if it is held, without + * requiring a stamp value. This method may be useful for recovery + * after errors. + */ + // @ts-ignore + public tryUnlockRead(): boolean; + /** + * Returns {@code true} if the lock is currently held exclusively. + */ + // @ts-ignore + public isWriteLocked(): boolean; + /** + * Returns {@code true} if the lock is currently held non-exclusively. + */ + // @ts-ignore + public isReadLocked(): boolean; + /** + * Queries the number of read locks held for this lock. This + * method is designed for use in monitoring system state, not for + * synchronization control. + */ + // @ts-ignore + public getReadLockCount(): number; + /** + * Returns a string identifying this lock, as well as its lock + * state. The state, in brackets, includes the String {@code + * "Unlocked"} or the String {@code "Write-locked"} or the String + * {@code "Read-locks:"} followed by the current number of + * read-locks held. + */ + // @ts-ignore + public toString(): string; + /** + * Returns a plain {@link Lock} view of this StampedLock in which + * the {@link Lock#lock} method is mapped to {@link #readLock}, + * and similarly for other methods. The returned Lock does not + * support a {@link Condition}; method {@link + * Lock#newCondition()} throws {@code + * UnsupportedOperationException}. + */ + // @ts-ignore + public asReadLock(): java.util.concurrent.locks.Lock; + /** + * Returns a plain {@link Lock} view of this StampedLock in which + * the {@link Lock#lock} method is mapped to {@link #writeLock}, + * and similarly for other methods. The returned Lock does not + * support a {@link Condition}; method {@link + * Lock#newCondition()} throws {@code + * UnsupportedOperationException}. + */ + // @ts-ignore + public asWriteLock(): java.util.concurrent.locks.Lock; + /** + * Returns a {@link ReadWriteLock} view of this StampedLock in + * which the {@link ReadWriteLock#readLock()} method is mapped to + * {@link #asReadLock()}, and {@link ReadWriteLock#writeLock()} to + * {@link #asWriteLock()}. + */ + // @ts-ignore + public asReadWriteLock(): java.util.concurrent.locks.ReadWriteLock; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.BiConsumer.d.ts b/packages/types/dist/typings/jdk/java.util.function.BiConsumer.d.ts new file mode 100644 index 00000000..42873769 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.BiConsumer.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface BiConsumer { + /** + * Performs this operation on the given arguments. + */ + // @ts-ignore + accept(t: java.lang.Object, u: java.lang.Object): void; + /** + * Returns a composed {@code BiConsumer} that performs, in sequence, this + * operation followed by the {@code after} operation. If performing either + * operation throws an exception, it is relayed to the caller of the + * composed operation. If performing this operation throws an exception, + * the {@code after} operation will not be performed. + */ + // @ts-ignore + andThen(after: java.util.function$.BiConsumer): java.util.function$.BiConsumer; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.BiFunction.d.ts b/packages/types/dist/typings/jdk/java.util.function.BiFunction.d.ts new file mode 100644 index 00000000..a2d65641 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.BiFunction.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface BiFunction { + /** + * Applies this function to the given arguments. + */ + // @ts-ignore + apply(t: java.lang.Object, u: java.lang.Object): java.lang.Object; + /** + * Returns a composed function that first applies this function to + * its input, and then applies the {@code after} function to the result. + * If evaluation of either function throws an exception, it is relayed to + * the caller of the composed function. + */ + // @ts-ignore + andThen(after: java.util.function$.Function): java.util.function$.BiFunction; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.BiPredicate.d.ts b/packages/types/dist/typings/jdk/java.util.function.BiPredicate.d.ts new file mode 100644 index 00000000..78148bdd --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.BiPredicate.d.ts @@ -0,0 +1,43 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface BiPredicate { + /** + * Evaluates this predicate on the given arguments. + */ + // @ts-ignore + test(t: java.lang.Object, u: java.lang.Object): boolean; + /** + * Returns a composed predicate that represents a short-circuiting logical + * AND of this predicate and another. When evaluating the composed + * predicate, if this predicate is {@code false}, then the {@code other} + * predicate is not evaluated. + *

Any exceptions thrown during evaluation of either predicate are relayed + * to the caller; if evaluation of this predicate throws an exception, the + * {@code other} predicate will not be evaluated. + */ + // @ts-ignore + and(other: java.util.function$.BiPredicate): java.util.function$.BiPredicate; + /** + * Returns a predicate that represents the logical negation of this + * predicate. + */ + // @ts-ignore + negate(): java.util.function$.BiPredicate; + /** + * Returns a composed predicate that represents a short-circuiting logical + * OR of this predicate and another. When evaluating the composed + * predicate, if this predicate is {@code true}, then the {@code other} + * predicate is not evaluated. + *

Any exceptions thrown during evaluation of either predicate are relayed + * to the caller; if evaluation of this predicate throws an exception, the + * {@code other} predicate will not be evaluated. + */ + // @ts-ignore + or(other: java.util.function$.BiPredicate): java.util.function$.BiPredicate; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.BinaryOperator.d.ts b/packages/types/dist/typings/jdk/java.util.function.BinaryOperator.d.ts new file mode 100644 index 00000000..c84549b8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.BinaryOperator.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface BinaryOperator { + /** + * Returns a {@link BinaryOperator} which returns the lesser of two elements + * according to the specified {@code Comparator}. + */ + // @ts-ignore + minBy(comparator: java.util.Comparator): java.util.function$.BinaryOperator; + /** + * Returns a {@link BinaryOperator} which returns the greater of two elements + * according to the specified {@code Comparator}. + */ + // @ts-ignore + maxBy(comparator: java.util.Comparator): java.util.function$.BinaryOperator; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.BooleanSupplier.d.ts b/packages/types/dist/typings/jdk/java.util.function.BooleanSupplier.d.ts new file mode 100644 index 00000000..05917d19 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.BooleanSupplier.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface BooleanSupplier { + /** + * Gets a result. + */ + // @ts-ignore + getAsBoolean(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.Consumer.d.ts b/packages/types/dist/typings/jdk/java.util.function.Consumer.d.ts new file mode 100644 index 00000000..10e0bd01 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.Consumer.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface Consumer { + /** + * Performs this operation on the given argument. + */ + // @ts-ignore + accept(t: java.lang.Object): void; + /** + * Returns a composed {@code Consumer} that performs, in sequence, this + * operation followed by the {@code after} operation. If performing either + * operation throws an exception, it is relayed to the caller of the + * composed operation. If performing this operation throws an exception, + * the {@code after} operation will not be performed. + */ + // @ts-ignore + andThen(after: java.util.function$.Consumer): java.util.function$.Consumer; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.DoubleBinaryOperator.d.ts b/packages/types/dist/typings/jdk/java.util.function.DoubleBinaryOperator.d.ts new file mode 100644 index 00000000..22189764 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.DoubleBinaryOperator.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface DoubleBinaryOperator { + /** + * Applies this operator to the given operands. + */ + // @ts-ignore + applyAsDouble(left: number, right: number): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.DoubleConsumer.d.ts b/packages/types/dist/typings/jdk/java.util.function.DoubleConsumer.d.ts new file mode 100644 index 00000000..36ec2bf5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.DoubleConsumer.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface DoubleConsumer { + /** + * Performs this operation on the given argument. + */ + // @ts-ignore + accept(value: number): void; + /** + * Returns a composed {@code DoubleConsumer} that performs, in sequence, this + * operation followed by the {@code after} operation. If performing either + * operation throws an exception, it is relayed to the caller of the + * composed operation. If performing this operation throws an exception, + * the {@code after} operation will not be performed. + */ + // @ts-ignore + andThen(after: java.util.function$.DoubleConsumer): java.util.function$.DoubleConsumer; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.DoubleFunction.d.ts b/packages/types/dist/typings/jdk/java.util.function.DoubleFunction.d.ts new file mode 100644 index 00000000..d27c1065 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.DoubleFunction.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface DoubleFunction { + /** + * Applies this function to the given argument. + */ + // @ts-ignore + apply(value: number): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.DoublePredicate.d.ts b/packages/types/dist/typings/jdk/java.util.function.DoublePredicate.d.ts new file mode 100644 index 00000000..f7d00105 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.DoublePredicate.d.ts @@ -0,0 +1,43 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface DoublePredicate { + /** + * Evaluates this predicate on the given argument. + */ + // @ts-ignore + test(value: number): boolean; + /** + * Returns a composed predicate that represents a short-circuiting logical + * AND of this predicate and another. When evaluating the composed + * predicate, if this predicate is {@code false}, then the {@code other} + * predicate is not evaluated. + *

Any exceptions thrown during evaluation of either predicate are relayed + * to the caller; if evaluation of this predicate throws an exception, the + * {@code other} predicate will not be evaluated. + */ + // @ts-ignore + and(other: java.util.function$.DoublePredicate): java.util.function$.DoublePredicate; + /** + * Returns a predicate that represents the logical negation of this + * predicate. + */ + // @ts-ignore + negate(): java.util.function$.DoublePredicate; + /** + * Returns a composed predicate that represents a short-circuiting logical + * OR of this predicate and another. When evaluating the composed + * predicate, if this predicate is {@code true}, then the {@code other} + * predicate is not evaluated. + *

Any exceptions thrown during evaluation of either predicate are relayed + * to the caller; if evaluation of this predicate throws an exception, the + * {@code other} predicate will not be evaluated. + */ + // @ts-ignore + or(other: java.util.function$.DoublePredicate): java.util.function$.DoublePredicate; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.DoubleSupplier.d.ts b/packages/types/dist/typings/jdk/java.util.function.DoubleSupplier.d.ts new file mode 100644 index 00000000..d1fca563 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.DoubleSupplier.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface DoubleSupplier { + /** + * Gets a result. + */ + // @ts-ignore + getAsDouble(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.DoubleToIntFunction.d.ts b/packages/types/dist/typings/jdk/java.util.function.DoubleToIntFunction.d.ts new file mode 100644 index 00000000..0f2b95bf --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.DoubleToIntFunction.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface DoubleToIntFunction { + /** + * Applies this function to the given argument. + */ + // @ts-ignore + applyAsInt(value: number): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.DoubleToLongFunction.d.ts b/packages/types/dist/typings/jdk/java.util.function.DoubleToLongFunction.d.ts new file mode 100644 index 00000000..b07b4d32 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.DoubleToLongFunction.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface DoubleToLongFunction { + /** + * Applies this function to the given argument. + */ + // @ts-ignore + applyAsLong(value: number): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.DoubleUnaryOperator.d.ts b/packages/types/dist/typings/jdk/java.util.function.DoubleUnaryOperator.d.ts new file mode 100644 index 00000000..fc89ef28 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.DoubleUnaryOperator.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface DoubleUnaryOperator { + /** + * Applies this operator to the given operand. + */ + // @ts-ignore + applyAsDouble(operand: number): number; + /** + * Returns a composed operator that first applies the {@code before} + * operator to its input, and then applies this operator to the result. + * If evaluation of either operator throws an exception, it is relayed to + * the caller of the composed operator. + */ + // @ts-ignore + compose(before: java.util.function$.DoubleUnaryOperator): java.util.function$.DoubleUnaryOperator; + /** + * Returns a composed operator that first applies this operator to + * its input, and then applies the {@code after} operator to the result. + * If evaluation of either operator throws an exception, it is relayed to + * the caller of the composed operator. + */ + // @ts-ignore + andThen(after: java.util.function$.DoubleUnaryOperator): java.util.function$.DoubleUnaryOperator; + /** + * Returns a unary operator that always returns its input argument. + */ + // @ts-ignore + identity(): java.util.function$.DoubleUnaryOperator; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.Function.d.ts b/packages/types/dist/typings/jdk/java.util.function.Function.d.ts new file mode 100644 index 00000000..6e4f7b29 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.Function.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface Function { + /** + * Applies this function to the given argument. + */ + // @ts-ignore + apply(t: java.lang.Object): java.lang.Object; + /** + * Returns a composed function that first applies the {@code before} + * function to its input, and then applies this function to the result. + * If evaluation of either function throws an exception, it is relayed to + * the caller of the composed function. + */ + // @ts-ignore + compose(before: java.util.function$.Function): java.util.function$.Function; + /** + * Returns a composed function that first applies this function to + * its input, and then applies the {@code after} function to the result. + * If evaluation of either function throws an exception, it is relayed to + * the caller of the composed function. + */ + // @ts-ignore + andThen(after: java.util.function$.Function): java.util.function$.Function; + /** + * Returns a function that always returns its input argument. + */ + // @ts-ignore + identity(): java.util.function$.Function; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.IntBinaryOperator.d.ts b/packages/types/dist/typings/jdk/java.util.function.IntBinaryOperator.d.ts new file mode 100644 index 00000000..f4277ec3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.IntBinaryOperator.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface IntBinaryOperator { + /** + * Applies this operator to the given operands. + */ + // @ts-ignore + applyAsInt(left: number, right: number): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.IntConsumer.d.ts b/packages/types/dist/typings/jdk/java.util.function.IntConsumer.d.ts new file mode 100644 index 00000000..7721e623 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.IntConsumer.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface IntConsumer { + /** + * Performs this operation on the given argument. + */ + // @ts-ignore + accept(value: number): void; + /** + * Returns a composed {@code IntConsumer} that performs, in sequence, this + * operation followed by the {@code after} operation. If performing either + * operation throws an exception, it is relayed to the caller of the + * composed operation. If performing this operation throws an exception, + * the {@code after} operation will not be performed. + */ + // @ts-ignore + andThen(after: java.util.function$.IntConsumer): java.util.function$.IntConsumer; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.IntFunction.d.ts b/packages/types/dist/typings/jdk/java.util.function.IntFunction.d.ts new file mode 100644 index 00000000..0121534f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.IntFunction.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface IntFunction { + /** + * Applies this function to the given argument. + */ + // @ts-ignore + apply(value: number): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.IntPredicate.d.ts b/packages/types/dist/typings/jdk/java.util.function.IntPredicate.d.ts new file mode 100644 index 00000000..b8040538 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.IntPredicate.d.ts @@ -0,0 +1,43 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface IntPredicate { + /** + * Evaluates this predicate on the given argument. + */ + // @ts-ignore + test(value: number): boolean; + /** + * Returns a composed predicate that represents a short-circuiting logical + * AND of this predicate and another. When evaluating the composed + * predicate, if this predicate is {@code false}, then the {@code other} + * predicate is not evaluated. + *

Any exceptions thrown during evaluation of either predicate are relayed + * to the caller; if evaluation of this predicate throws an exception, the + * {@code other} predicate will not be evaluated. + */ + // @ts-ignore + and(other: java.util.function$.IntPredicate): java.util.function$.IntPredicate; + /** + * Returns a predicate that represents the logical negation of this + * predicate. + */ + // @ts-ignore + negate(): java.util.function$.IntPredicate; + /** + * Returns a composed predicate that represents a short-circuiting logical + * OR of this predicate and another. When evaluating the composed + * predicate, if this predicate is {@code true}, then the {@code other} + * predicate is not evaluated. + *

Any exceptions thrown during evaluation of either predicate are relayed + * to the caller; if evaluation of this predicate throws an exception, the + * {@code other} predicate will not be evaluated. + */ + // @ts-ignore + or(other: java.util.function$.IntPredicate): java.util.function$.IntPredicate; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.IntSupplier.d.ts b/packages/types/dist/typings/jdk/java.util.function.IntSupplier.d.ts new file mode 100644 index 00000000..4cc85e85 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.IntSupplier.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface IntSupplier { + /** + * Gets a result. + */ + // @ts-ignore + getAsInt(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.IntToDoubleFunction.d.ts b/packages/types/dist/typings/jdk/java.util.function.IntToDoubleFunction.d.ts new file mode 100644 index 00000000..2adec810 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.IntToDoubleFunction.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface IntToDoubleFunction { + /** + * Applies this function to the given argument. + */ + // @ts-ignore + applyAsDouble(value: number): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.IntToLongFunction.d.ts b/packages/types/dist/typings/jdk/java.util.function.IntToLongFunction.d.ts new file mode 100644 index 00000000..852b29ff --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.IntToLongFunction.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface IntToLongFunction { + /** + * Applies this function to the given argument. + */ + // @ts-ignore + applyAsLong(value: number): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.IntUnaryOperator.d.ts b/packages/types/dist/typings/jdk/java.util.function.IntUnaryOperator.d.ts new file mode 100644 index 00000000..0ca2dec1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.IntUnaryOperator.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface IntUnaryOperator { + /** + * Applies this operator to the given operand. + */ + // @ts-ignore + applyAsInt(operand: number): number; + /** + * Returns a composed operator that first applies the {@code before} + * operator to its input, and then applies this operator to the result. + * If evaluation of either operator throws an exception, it is relayed to + * the caller of the composed operator. + */ + // @ts-ignore + compose(before: java.util.function$.IntUnaryOperator): java.util.function$.IntUnaryOperator; + /** + * Returns a composed operator that first applies this operator to + * its input, and then applies the {@code after} operator to the result. + * If evaluation of either operator throws an exception, it is relayed to + * the caller of the composed operator. + */ + // @ts-ignore + andThen(after: java.util.function$.IntUnaryOperator): java.util.function$.IntUnaryOperator; + /** + * Returns a unary operator that always returns its input argument. + */ + // @ts-ignore + identity(): java.util.function$.IntUnaryOperator; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.LongBinaryOperator.d.ts b/packages/types/dist/typings/jdk/java.util.function.LongBinaryOperator.d.ts new file mode 100644 index 00000000..6db64684 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.LongBinaryOperator.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface LongBinaryOperator { + /** + * Applies this operator to the given operands. + */ + // @ts-ignore + applyAsLong(left: number, right: number): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.LongConsumer.d.ts b/packages/types/dist/typings/jdk/java.util.function.LongConsumer.d.ts new file mode 100644 index 00000000..98520092 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.LongConsumer.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface LongConsumer { + /** + * Performs this operation on the given argument. + */ + // @ts-ignore + accept(value: number): void; + /** + * Returns a composed {@code LongConsumer} that performs, in sequence, this + * operation followed by the {@code after} operation. If performing either + * operation throws an exception, it is relayed to the caller of the + * composed operation. If performing this operation throws an exception, + * the {@code after} operation will not be performed. + */ + // @ts-ignore + andThen(after: java.util.function$.LongConsumer): java.util.function$.LongConsumer; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.LongFunction.d.ts b/packages/types/dist/typings/jdk/java.util.function.LongFunction.d.ts new file mode 100644 index 00000000..b7472ab0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.LongFunction.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface LongFunction { + /** + * Applies this function to the given argument. + */ + // @ts-ignore + apply(value: number): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.LongPredicate.d.ts b/packages/types/dist/typings/jdk/java.util.function.LongPredicate.d.ts new file mode 100644 index 00000000..968006c6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.LongPredicate.d.ts @@ -0,0 +1,43 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface LongPredicate { + /** + * Evaluates this predicate on the given argument. + */ + // @ts-ignore + test(value: number): boolean; + /** + * Returns a composed predicate that represents a short-circuiting logical + * AND of this predicate and another. When evaluating the composed + * predicate, if this predicate is {@code false}, then the {@code other} + * predicate is not evaluated. + *

Any exceptions thrown during evaluation of either predicate are relayed + * to the caller; if evaluation of this predicate throws an exception, the + * {@code other} predicate will not be evaluated. + */ + // @ts-ignore + and(other: java.util.function$.LongPredicate): java.util.function$.LongPredicate; + /** + * Returns a predicate that represents the logical negation of this + * predicate. + */ + // @ts-ignore + negate(): java.util.function$.LongPredicate; + /** + * Returns a composed predicate that represents a short-circuiting logical + * OR of this predicate and another. When evaluating the composed + * predicate, if this predicate is {@code true}, then the {@code other} + * predicate is not evaluated. + *

Any exceptions thrown during evaluation of either predicate are relayed + * to the caller; if evaluation of this predicate throws an exception, the + * {@code other} predicate will not be evaluated. + */ + // @ts-ignore + or(other: java.util.function$.LongPredicate): java.util.function$.LongPredicate; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.LongSupplier.d.ts b/packages/types/dist/typings/jdk/java.util.function.LongSupplier.d.ts new file mode 100644 index 00000000..9b2ab896 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.LongSupplier.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface LongSupplier { + /** + * Gets a result. + */ + // @ts-ignore + getAsLong(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.LongToDoubleFunction.d.ts b/packages/types/dist/typings/jdk/java.util.function.LongToDoubleFunction.d.ts new file mode 100644 index 00000000..68a2918b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.LongToDoubleFunction.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface LongToDoubleFunction { + /** + * Applies this function to the given argument. + */ + // @ts-ignore + applyAsDouble(value: number): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.LongToIntFunction.d.ts b/packages/types/dist/typings/jdk/java.util.function.LongToIntFunction.d.ts new file mode 100644 index 00000000..dbfc7289 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.LongToIntFunction.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface LongToIntFunction { + /** + * Applies this function to the given argument. + */ + // @ts-ignore + applyAsInt(value: number): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.LongUnaryOperator.d.ts b/packages/types/dist/typings/jdk/java.util.function.LongUnaryOperator.d.ts new file mode 100644 index 00000000..06ba994f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.LongUnaryOperator.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface LongUnaryOperator { + /** + * Applies this operator to the given operand. + */ + // @ts-ignore + applyAsLong(operand: number): number; + /** + * Returns a composed operator that first applies the {@code before} + * operator to its input, and then applies this operator to the result. + * If evaluation of either operator throws an exception, it is relayed to + * the caller of the composed operator. + */ + // @ts-ignore + compose(before: java.util.function$.LongUnaryOperator): java.util.function$.LongUnaryOperator; + /** + * Returns a composed operator that first applies this operator to + * its input, and then applies the {@code after} operator to the result. + * If evaluation of either operator throws an exception, it is relayed to + * the caller of the composed operator. + */ + // @ts-ignore + andThen(after: java.util.function$.LongUnaryOperator): java.util.function$.LongUnaryOperator; + /** + * Returns a unary operator that always returns its input argument. + */ + // @ts-ignore + identity(): java.util.function$.LongUnaryOperator; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.ObjDoubleConsumer.d.ts b/packages/types/dist/typings/jdk/java.util.function.ObjDoubleConsumer.d.ts new file mode 100644 index 00000000..440a9b96 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.ObjDoubleConsumer.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface ObjDoubleConsumer { + /** + * Performs this operation on the given arguments. + */ + // @ts-ignore + accept(t: java.lang.Object, value: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.ObjIntConsumer.d.ts b/packages/types/dist/typings/jdk/java.util.function.ObjIntConsumer.d.ts new file mode 100644 index 00000000..d0429c0b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.ObjIntConsumer.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface ObjIntConsumer { + /** + * Performs this operation on the given arguments. + */ + // @ts-ignore + accept(t: java.lang.Object, value: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.ObjLongConsumer.d.ts b/packages/types/dist/typings/jdk/java.util.function.ObjLongConsumer.d.ts new file mode 100644 index 00000000..60159fe6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.ObjLongConsumer.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface ObjLongConsumer { + /** + * Performs this operation on the given arguments. + */ + // @ts-ignore + accept(t: java.lang.Object, value: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.Predicate.d.ts b/packages/types/dist/typings/jdk/java.util.function.Predicate.d.ts new file mode 100644 index 00000000..8928b9bd --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.Predicate.d.ts @@ -0,0 +1,49 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface Predicate { + /** + * Evaluates this predicate on the given argument. + */ + // @ts-ignore + test(t: java.lang.Object): boolean; + /** + * Returns a composed predicate that represents a short-circuiting logical + * AND of this predicate and another. When evaluating the composed + * predicate, if this predicate is {@code false}, then the {@code other} + * predicate is not evaluated. + *

Any exceptions thrown during evaluation of either predicate are relayed + * to the caller; if evaluation of this predicate throws an exception, the + * {@code other} predicate will not be evaluated. + */ + // @ts-ignore + and(other: java.util.function$.Predicate): java.util.function$.Predicate; + /** + * Returns a predicate that represents the logical negation of this + * predicate. + */ + // @ts-ignore + negate(): java.util.function$.Predicate; + /** + * Returns a composed predicate that represents a short-circuiting logical + * OR of this predicate and another. When evaluating the composed + * predicate, if this predicate is {@code true}, then the {@code other} + * predicate is not evaluated. + *

Any exceptions thrown during evaluation of either predicate are relayed + * to the caller; if evaluation of this predicate throws an exception, the + * {@code other} predicate will not be evaluated. + */ + // @ts-ignore + or(other: java.util.function$.Predicate): java.util.function$.Predicate; + /** + * Returns a predicate that tests if two arguments are equal according + * to {@link Objects#equals(Object, Object)}. + */ + // @ts-ignore + isEqual(targetRef: java.lang.Object): java.util.function$.Predicate; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.Supplier.d.ts b/packages/types/dist/typings/jdk/java.util.function.Supplier.d.ts new file mode 100644 index 00000000..2f319a7d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.Supplier.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface Supplier { + /** + * Gets a result. + */ + // @ts-ignore + get(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.ToDoubleBiFunction.d.ts b/packages/types/dist/typings/jdk/java.util.function.ToDoubleBiFunction.d.ts new file mode 100644 index 00000000..af97373f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.ToDoubleBiFunction.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface ToDoubleBiFunction { + /** + * Applies this function to the given arguments. + */ + // @ts-ignore + applyAsDouble(t: java.lang.Object, u: java.lang.Object): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.ToDoubleFunction.d.ts b/packages/types/dist/typings/jdk/java.util.function.ToDoubleFunction.d.ts new file mode 100644 index 00000000..ebf98bba --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.ToDoubleFunction.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface ToDoubleFunction { + /** + * Applies this function to the given argument. + */ + // @ts-ignore + applyAsDouble(value: java.lang.Object): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.ToIntBiFunction.d.ts b/packages/types/dist/typings/jdk/java.util.function.ToIntBiFunction.d.ts new file mode 100644 index 00000000..33f40f7b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.ToIntBiFunction.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface ToIntBiFunction { + /** + * Applies this function to the given arguments. + */ + // @ts-ignore + applyAsInt(t: java.lang.Object, u: java.lang.Object): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.ToIntFunction.d.ts b/packages/types/dist/typings/jdk/java.util.function.ToIntFunction.d.ts new file mode 100644 index 00000000..e8f3e35a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.ToIntFunction.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface ToIntFunction { + /** + * Applies this function to the given argument. + */ + // @ts-ignore + applyAsInt(value: java.lang.Object): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.ToLongBiFunction.d.ts b/packages/types/dist/typings/jdk/java.util.function.ToLongBiFunction.d.ts new file mode 100644 index 00000000..f7c6e67a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.ToLongBiFunction.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface ToLongBiFunction { + /** + * Applies this function to the given arguments. + */ + // @ts-ignore + applyAsLong(t: java.lang.Object, u: java.lang.Object): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.ToLongFunction.d.ts b/packages/types/dist/typings/jdk/java.util.function.ToLongFunction.d.ts new file mode 100644 index 00000000..5e57bb3a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.ToLongFunction.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface ToLongFunction { + /** + * Applies this function to the given argument. + */ + // @ts-ignore + applyAsLong(value: java.lang.Object): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.function.UnaryOperator.d.ts b/packages/types/dist/typings/jdk/java.util.function.UnaryOperator.d.ts new file mode 100644 index 00000000..84a4977f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.function.UnaryOperator.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace function$ { + // @ts-ignore + interface UnaryOperator { + /** + * Returns a unary operator that always returns its input argument. + */ + // @ts-ignore + identity(): java.util.function$.UnaryOperator; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.jar.Attributes.Name.d.ts b/packages/types/dist/typings/jdk/java.util.jar.Attributes.Name.d.ts new file mode 100644 index 00000000..9cb6a65a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.jar.Attributes.Name.d.ts @@ -0,0 +1,66 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace jar { + namespace Attributes { + // @ts-ignore + class Name extends java.lang.Object { + /** + * Constructs a new attribute name using the given string name. + */ + // @ts-ignore + constructor(name: string) + // @ts-ignore + public static MANIFEST_VERSION: java.util.jar.Attributes.Name; + // @ts-ignore + public static SIGNATURE_VERSION: java.util.jar.Attributes.Name; + // @ts-ignore + public static CONTENT_TYPE: java.util.jar.Attributes.Name; + // @ts-ignore + public static CLASS_PATH: java.util.jar.Attributes.Name; + // @ts-ignore + public static MAIN_CLASS: java.util.jar.Attributes.Name; + // @ts-ignore + public static SEALED: java.util.jar.Attributes.Name; + // @ts-ignore + public static EXTENSION_LIST: java.util.jar.Attributes.Name; + // @ts-ignore + public static EXTENSION_NAME: java.util.jar.Attributes.Name; + // @ts-ignore + public static EXTENSION_INSTALLATION: java.util.jar.Attributes.Name; + // @ts-ignore + public static IMPLEMENTATION_TITLE: java.util.jar.Attributes.Name; + // @ts-ignore + public static IMPLEMENTATION_VERSION: java.util.jar.Attributes.Name; + // @ts-ignore + public static IMPLEMENTATION_VENDOR: java.util.jar.Attributes.Name; + // @ts-ignore + public static IMPLEMENTATION_VENDOR_ID: java.util.jar.Attributes.Name; + // @ts-ignore + public static IMPLEMENTATION_URL: java.util.jar.Attributes.Name; + // @ts-ignore + public static SPECIFICATION_TITLE: java.util.jar.Attributes.Name; + // @ts-ignore + public static SPECIFICATION_VERSION: java.util.jar.Attributes.Name; + // @ts-ignore + public static SPECIFICATION_VENDOR: java.util.jar.Attributes.Name; + /** + * Compares this attribute name to another for equality. + */ + // @ts-ignore + public equals(o: java.lang.Object): boolean; + /** + * Computes the hash value for this attribute name. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns the attribute name as a String. + */ + // @ts-ignore + public toString(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.jar.Attributes.d.ts b/packages/types/dist/typings/jdk/java.util.jar.Attributes.d.ts new file mode 100644 index 00000000..6a8fb53f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.jar.Attributes.d.ts @@ -0,0 +1,153 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace jar { + // @ts-ignore + class Attributes extends java.lang.Object { + /** + * Constructs a new, empty Attributes object with default size. + */ + // @ts-ignore + constructor() + /** + * Constructs a new, empty Attributes object with the specified + * initial size. + */ + // @ts-ignore + constructor(size: number) + /** + * Constructs a new Attributes object with the same attribute name-value + * mappings as in the specified Attributes. + */ + // @ts-ignore + constructor(attr: java.util.jar.Attributes) + /** + * Returns the value of the specified attribute name, or null if the + * attribute name was not found. + */ + // @ts-ignore + public get(name: java.lang.Object): java.lang.Object; + /** + * Returns the value of the specified attribute name, specified as + * a string, or null if the attribute was not found. The attribute + * name is case-insensitive. + *

+ * This method is defined as: + *

+                 * return (String)get(new Attributes.Name((String)name));
+                 * 
+ */ + // @ts-ignore + public getValue(name: string): string; + /** + * Returns the value of the specified Attributes.Name, or null if the + * attribute was not found. + *

+ * This method is defined as: + *

+                 * return (String)get(name);
+                 * 
+ */ + // @ts-ignore + public getValue(name: java.util.jar.Attributes.Name): string; + /** + * Associates the specified value with the specified attribute name + * (key) in this Map. If the Map previously contained a mapping for + * the attribute name, the old value is replaced. + */ + // @ts-ignore + public put(name: java.lang.Object, value: java.lang.Object): java.lang.Object; + /** + * Associates the specified value with the specified attribute name, + * specified as a String. The attributes name is case-insensitive. + * If the Map previously contained a mapping for the attribute name, + * the old value is replaced. + *

+ * This method is defined as: + *

+                 * return (String)put(new Attributes.Name(name), value);
+                 * 
+ */ + // @ts-ignore + public putValue(name: string, value: string): string; + /** + * Removes the attribute with the specified name (key) from this Map. + * Returns the previous attribute value, or null if none. + */ + // @ts-ignore + public remove(name: java.lang.Object): java.lang.Object; + /** + * Returns true if this Map maps one or more attribute names (keys) + * to the specified value. + */ + // @ts-ignore + public containsValue(value: java.lang.Object): boolean; + /** + * Returns true if this Map contains the specified attribute name (key). + */ + // @ts-ignore + public containsKey(name: java.lang.Object): boolean; + /** + * Copies all of the attribute name-value mappings from the specified + * Attributes to this Map. Duplicate mappings will be replaced. + */ + // @ts-ignore + public putAll(attr: java.util.Map): void; + /** + * Removes all attributes from this Map. + */ + // @ts-ignore + public clear(): void; + /** + * Returns the number of attributes in this Map. + */ + // @ts-ignore + public size(): number; + /** + * Returns true if this Map contains no attributes. + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * Returns a Set view of the attribute names (keys) contained in this Map. + */ + // @ts-ignore + public keySet(): java.util.Set; + /** + * Returns a Collection view of the attribute values contained in this Map. + */ + // @ts-ignore + public values(): java.util.Collection; + /** + * Returns a Collection view of the attribute name-value mappings + * contained in this Map. + */ + // @ts-ignore + public entrySet(): java.util.Set; + /** + * Compares the specified Attributes object with this Map for equality. + * Returns true if the given object is also an instance of Attributes + * and the two Attributes objects represent the same mappings. + */ + // @ts-ignore + public equals(o: java.lang.Object): boolean; + /** + * Returns the hash code value for this Map. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns a copy of the Attributes, implemented as follows: + *
+                 * public Object clone() { return new Attributes(this); }
+                 * 
+ * Since the attribute names and values are themselves immutable, + * the Attributes returned can be safely modified without affecting + * the original. + */ + // @ts-ignore + public clone(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.jar.JarEntry.d.ts b/packages/types/dist/typings/jdk/java.util.jar.JarEntry.d.ts new file mode 100644 index 00000000..6e70bc3e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.jar.JarEntry.d.ts @@ -0,0 +1,60 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace jar { + // @ts-ignore + class JarEntry extends java.util.zip.ZipEntry { + /** + * Creates a new JarEntry for the specified JAR file + * entry name. + */ + // @ts-ignore + constructor(name: string) + /** + * Creates a new JarEntry with fields taken from the + * specified ZipEntry object. + */ + // @ts-ignore + constructor(ze: java.util.zip.ZipEntry) + /** + * Creates a new JarEntry with fields taken from the + * specified JarEntry object. + */ + // @ts-ignore + constructor(je: java.util.jar.JarEntry) + /** + * Returns the Manifest Attributes for this + * entry, or null if none. + */ + // @ts-ignore + public getAttributes(): java.util.jar.Attributes; + /** + * Returns the Certificate objects for this entry, or + * null if none. This method can only be called once + * the JarEntry has been completely verified by reading + * from the entry input stream until the end of the stream has been + * reached. Otherwise, this method will return null. + *

The returned certificate array comprises all the signer certificates + * that were used to verify this entry. Each signer certificate is + * followed by its supporting certificate chain (which may be empty). + * Each signer certificate and its supporting certificate chain are ordered + * bottom-to-top (i.e., with the signer certificate first and the (root) + * certificate authority last). + */ + // @ts-ignore + public getCertificates(): java.security.cert.Certificate[]; + /** + * Returns the CodeSigner objects for this entry, or + * null if none. This method can only be called once + * the JarEntry has been completely verified by reading + * from the entry input stream until the end of the stream has been + * reached. Otherwise, this method will return null. + *

The returned array comprises all the code signers that have signed + * this entry. + */ + // @ts-ignore + public getCodeSigners(): java.security.CodeSigner[]; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.jar.JarException.d.ts b/packages/types/dist/typings/jdk/java.util.jar.JarException.d.ts new file mode 100644 index 00000000..0d08363d --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.jar.JarException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace jar { + // @ts-ignore + class JarException extends java.util.zip.ZipException { + /** + * Constructs a JarException with no detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs a JarException with the specified detail message. + */ + // @ts-ignore + constructor(s: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.jar.JarFile.d.ts b/packages/types/dist/typings/jdk/java.util.jar.JarFile.d.ts new file mode 100644 index 00000000..17959d98 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.jar.JarFile.d.ts @@ -0,0 +1,75 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace jar { + // @ts-ignore + class JarFile extends java.util.zip.ZipFile { + /** + * Creates a new JarFile to read from the specified + * file name. The JarFile will be verified if + * it is signed. + */ + // @ts-ignore + constructor(name: string) + /** + * Creates a new JarFile to read from the specified + * file name. + */ + // @ts-ignore + constructor(name: string, verify: boolean) + /** + * Creates a new JarFile to read from the specified + * File object. The JarFile will be verified if + * it is signed. + */ + // @ts-ignore + constructor(file: java.io.File) + /** + * Creates a new JarFile to read from the specified + * File object. + */ + // @ts-ignore + constructor(file: java.io.File, verify: boolean) + /** + * Creates a new JarFile to read from the specified + * File object in the specified mode. The mode argument + * must be either OPEN_READ or OPEN_READ | OPEN_DELETE. + */ + // @ts-ignore + constructor(file: java.io.File, verify: boolean, mode: number) + // @ts-ignore + public static MANIFEST_NAME: string; + /** + * Returns the jar file manifest, or null if none. + */ + // @ts-ignore + public getManifest(): java.util.jar.Manifest; + /** + * Returns the JarEntry for the given entry name or + * null if not found. + */ + // @ts-ignore + public getJarEntry(name: string): java.util.jar.JarEntry; + /** + * Returns the ZipEntry for the given entry name or + * null if not found. + */ + // @ts-ignore + public getEntry(name: string): java.util.zip.ZipEntry; + /** + * Returns an enumeration of the zip file entries. + */ + // @ts-ignore + public entries(): java.util.Enumeration; + // @ts-ignore + public stream(): java.util.stream.Stream; + /** + * Returns an input stream for reading the contents of the specified + * zip file entry. + */ + // @ts-ignore + public getInputStream(ze: java.util.zip.ZipEntry): java.io.InputStream; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.jar.JarInputStream.d.ts b/packages/types/dist/typings/jdk/java.util.jar.JarInputStream.d.ts new file mode 100644 index 00000000..2c8f9717 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.jar.JarInputStream.d.ts @@ -0,0 +1,65 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace jar { + // @ts-ignore + class JarInputStream extends java.util.zip.ZipInputStream { + /** + * Creates a new JarInputStream and reads the optional + * manifest. If a manifest is present, also attempts to verify + * the signatures if the JarInputStream is signed. + */ + // @ts-ignore + constructor(input: java.io.InputStream) + /** + * Creates a new JarInputStream and reads the optional + * manifest. If a manifest is present and verify is true, also attempts + * to verify the signatures if the JarInputStream is signed. + */ + // @ts-ignore + constructor(input: java.io.InputStream, verify: boolean) + /** + * Returns the Manifest for this JAR file, or + * null if none. + */ + // @ts-ignore + public getManifest(): java.util.jar.Manifest; + /** + * Reads the next ZIP file entry and positions the stream at the + * beginning of the entry data. If verification has been enabled, + * any invalid signature detected while positioning the stream for + * the next entry will result in an exception. + */ + // @ts-ignore + public getNextEntry(): java.util.zip.ZipEntry; + /** + * Reads the next JAR file entry and positions the stream at the + * beginning of the entry data. If verification has been enabled, + * any invalid signature detected while positioning the stream for + * the next entry will result in an exception. + */ + // @ts-ignore + public getNextJarEntry(): java.util.jar.JarEntry; + /** + * Reads from the current JAR file entry into an array of bytes. + * If len is not zero, the method + * blocks until some input is available; otherwise, no + * bytes are read and 0 is returned. + * If verification has been enabled, any invalid signature + * on the current entry will be reported at some point before the + * end of the entry is reached. + */ + // @ts-ignore + public read(b: number, off: number, len: number): number; + /** + * Creates a new JarEntry (ZipEntry) for the + * specified JAR file entry name. The manifest attributes of + * the specified JAR file entry name will be copied to the new + * JarEntry. + */ + // @ts-ignore + protected createZipEntry(name: string): java.util.zip.ZipEntry; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.jar.JarOutputStream.d.ts b/packages/types/dist/typings/jdk/java.util.jar.JarOutputStream.d.ts new file mode 100644 index 00000000..e15af41c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.jar.JarOutputStream.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace jar { + // @ts-ignore + class JarOutputStream extends java.util.zip.ZipOutputStream { + /** + * Creates a new JarOutputStream with the specified + * Manifest. The manifest is written as the first + * entry to the output stream. + */ + // @ts-ignore + constructor(out: java.io.OutputStream, man: java.util.jar.Manifest) + /** + * Creates a new JarOutputStream with no manifest. + */ + // @ts-ignore + constructor(out: java.io.OutputStream) + /** + * Begins writing a new JAR file entry and positions the stream + * to the start of the entry data. This method will also close + * any previous entry. The default compression method will be + * used if no compression method was specified for the entry. + * The current time will be used if the entry has no set modification + * time. + */ + // @ts-ignore + public putNextEntry(ze: java.util.zip.ZipEntry): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.jar.Manifest.d.ts b/packages/types/dist/typings/jdk/java.util.jar.Manifest.d.ts new file mode 100644 index 00000000..9fb72fd8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.jar.Manifest.d.ts @@ -0,0 +1,99 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace jar { + // @ts-ignore + class Manifest extends java.lang.Object { + /** + * Constructs a new, empty Manifest. + */ + // @ts-ignore + constructor() + /** + * Constructs a new Manifest from the specified input stream. + */ + // @ts-ignore + constructor(is: java.io.InputStream) + /** + * Constructs a new Manifest that is a copy of the specified Manifest. + */ + // @ts-ignore + constructor(man: java.util.jar.Manifest) + /** + * Returns the main Attributes for the Manifest. + */ + // @ts-ignore + public getMainAttributes(): java.util.jar.Attributes; + /** + * Returns a Map of the entries contained in this Manifest. Each entry + * is represented by a String name (key) and associated Attributes (value). + * The Map permits the {@code null} key, but no entry with a null key is + * created by {@link #read}, nor is such an entry written by using {@link + * #write}. + */ + // @ts-ignore + public getEntries(): java.util.Map; + /** + * Returns the Attributes for the specified entry name. + * This method is defined as: + *

+                 * return (Attributes)getEntries().get(name)
+                 * 
+ * Though {@code null} is a valid {@code name}, when + * {@code getAttributes(null)} is invoked on a {@code Manifest} + * obtained from a jar file, {@code null} will be returned. While jar + * files themselves do not allow {@code null}-named attributes, it is + * possible to invoke {@link #getEntries} on a {@code Manifest}, and + * on that result, invoke {@code put} with a null key and an + * arbitrary value. Subsequent invocations of + * {@code getAttributes(null)} will return the just-{@code put} + * value. + *

+ * Note that this method does not return the manifest's main attributes; + * see {@link #getMainAttributes}. + */ + // @ts-ignore + public getAttributes(name: string): java.util.jar.Attributes; + /** + * Clears the main Attributes as well as the entries in this Manifest. + */ + // @ts-ignore + public clear(): void; + /** + * Writes the Manifest to the specified OutputStream. + * Attributes.Name.MANIFEST_VERSION must be set in + * MainAttributes prior to invoking this method. + */ + // @ts-ignore + public write(out: java.io.OutputStream): void; + /** + * Reads the Manifest from the specified InputStream. The entry + * names and attributes read will be merged in with the current + * manifest entries. + */ + // @ts-ignore + public read(is: java.io.InputStream): void; + /** + * Returns true if the specified Object is also a Manifest and has + * the same main Attributes and entries. + */ + // @ts-ignore + public equals(o: java.lang.Object): boolean; + /** + * Returns the hash code for this Manifest. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns a shallow copy of this Manifest. The shallow copy is + * implemented as follows: + *

+                 * public Object clone() { return new Manifest(this); }
+                 * 
+ */ + // @ts-ignore + public clone(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.jar.Pack200.Packer.d.ts b/packages/types/dist/typings/jdk/java.util.jar.Pack200.Packer.d.ts new file mode 100644 index 00000000..7825d058 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.jar.Pack200.Packer.d.ts @@ -0,0 +1,114 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace jar { + namespace Pack200 { + // @ts-ignore + interface Packer { + // @ts-ignore + SEGMENT_LIMIT: string; + // @ts-ignore + KEEP_FILE_ORDER: string; + // @ts-ignore + EFFORT: string; + // @ts-ignore + DEFLATE_HINT: string; + // @ts-ignore + MODIFICATION_TIME: string; + // @ts-ignore + PASS_FILE_PFX: string; + // @ts-ignore + UNKNOWN_ATTRIBUTE: string; + // @ts-ignore + CLASS_ATTRIBUTE_PFX: string; + // @ts-ignore + FIELD_ATTRIBUTE_PFX: string; + // @ts-ignore + METHOD_ATTRIBUTE_PFX: string; + // @ts-ignore + CODE_ATTRIBUTE_PFX: string; + // @ts-ignore + PROGRESS: string; + // @ts-ignore + KEEP: string; + // @ts-ignore + PASS: string; + // @ts-ignore + STRIP: string; + // @ts-ignore + ERROR: string; + // @ts-ignore + TRUE: string; + // @ts-ignore + FALSE: string; + // @ts-ignore + LATEST: string; + /** + * Get the set of this engine's properties. + * This set is a "live view", so that changing its + * contents immediately affects the Packer engine, and + * changes from the engine (such as progress indications) + * are immediately visible in the map. + *

The property map may contain pre-defined implementation + * specific and default properties. Users are encouraged to + * read the information and fully understand the implications, + * before modifying pre-existing properties. + *

+ * Implementation specific properties are prefixed with a + * package name associated with the implementor, beginning + * with com. or a similar prefix. + * All property names beginning with pack. and + * unpack. are reserved for use by this API. + *

+ * Unknown properties may be ignored or rejected with an + * unspecified error, and invalid entries may cause an + * unspecified error to be thrown. + *

+ * The returned map implements all optional {@link SortedMap} operations + */ + // @ts-ignore + properties(): java.util.SortedMap; + /** + * Takes a JarFile and converts it into a Pack200 archive. + *

+ * Closes its input but not its output. (Pack200 archives are appendable.) + */ + // @ts-ignore + pack(input: java.util.jar.JarFile, out: java.io.OutputStream): void; + /** + * Takes a JarInputStream and converts it into a Pack200 archive. + *

+ * Closes its input but not its output. (Pack200 archives are appendable.) + *

+ * The modification time and deflation hint attributes are not available, + * for the JAR manifest file and its containing directory. + */ + // @ts-ignore + pack(input: java.util.jar.JarInputStream, out: java.io.OutputStream): void; + /** + * Registers a listener for PropertyChange events on the properties map. + * This is typically used by applications to update a progress bar. + *

The default implementation of this method does nothing and has + * no side-effects.

+ *

WARNING: This method is omitted from the interface + * declaration in all subset Profiles of Java SE that do not include + * the {@code java.beans} package.

+ */ + // @ts-ignore + addPropertyChangeListener(listener: java.beans.PropertyChangeListener): void; + /** + * Remove a listener for PropertyChange events, added by + * the {@link #addPropertyChangeListener}. + *

The default implementation of this method does nothing and has + * no side-effects.

+ *

WARNING: This method is omitted from the interface + * declaration in all subset Profiles of Java SE that do not include + * the {@code java.beans} package.

+ */ + // @ts-ignore + removePropertyChangeListener(listener: java.beans.PropertyChangeListener): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.jar.Pack200.Unpacker.d.ts b/packages/types/dist/typings/jdk/java.util.jar.Pack200.Unpacker.d.ts new file mode 100644 index 00000000..a1cb23cd --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.jar.Pack200.Unpacker.d.ts @@ -0,0 +1,87 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace jar { + namespace Pack200 { + // @ts-ignore + interface Unpacker { + // @ts-ignore + KEEP: string; + // @ts-ignore + TRUE: string; + // @ts-ignore + FALSE: string; + // @ts-ignore + DEFLATE_HINT: string; + // @ts-ignore + PROGRESS: string; + /** + * Get the set of this engine's properties. This set is + * a "live view", so that changing its + * contents immediately affects the Packer engine, and + * changes from the engine (such as progress indications) + * are immediately visible in the map. + *

The property map may contain pre-defined implementation + * specific and default properties. Users are encouraged to + * read the information and fully understand the implications, + * before modifying pre-existing properties. + *

+ * Implementation specific properties are prefixed with a + * package name associated with the implementor, beginning + * with com. or a similar prefix. + * All property names beginning with pack. and + * unpack. are reserved for use by this API. + *

+ * Unknown properties may be ignored or rejected with an + * unspecified error, and invalid entries may cause an + * unspecified error to be thrown. + */ + // @ts-ignore + properties(): java.util.SortedMap; + /** + * Read a Pack200 archive, and write the encoded JAR to + * a JarOutputStream. + * The entire contents of the input stream will be read. + * It may be more efficient to read the Pack200 archive + * to a file and pass the File object, using the alternate + * method described below. + *

+ * Closes its input but not its output. (The output can accumulate more elements.) + */ + // @ts-ignore + unpack(input: java.io.InputStream, out: java.util.jar.JarOutputStream): void; + /** + * Read a Pack200 archive, and write the encoded JAR to + * a JarOutputStream. + *

+ * Does not close its output. (The output can accumulate more elements.) + */ + // @ts-ignore + unpack(input: java.io.File, out: java.util.jar.JarOutputStream): void; + /** + * Registers a listener for PropertyChange events on the properties map. + * This is typically used by applications to update a progress bar. + *

The default implementation of this method does nothing and has + * no side-effects.

+ *

WARNING: This method is omitted from the interface + * declaration in all subset Profiles of Java SE that do not include + * the {@code java.beans} package.

+ */ + // @ts-ignore + addPropertyChangeListener(listener: java.beans.PropertyChangeListener): void; + /** + * Remove a listener for PropertyChange events, added by + * the {@link #addPropertyChangeListener}. + *

The default implementation of this method does nothing and has + * no side-effects.

+ *

WARNING: This method is omitted from the interface + * declaration in all subset Profiles of Java SE that do not include + * the {@code java.beans} package.

+ */ + // @ts-ignore + removePropertyChangeListener(listener: java.beans.PropertyChangeListener): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.jar.Pack200.d.ts b/packages/types/dist/typings/jdk/java.util.jar.Pack200.d.ts new file mode 100644 index 00000000..0d54fff1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.jar.Pack200.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace jar { + // @ts-ignore + abstract class Pack200 extends java.lang.Object { + /** + * Obtain new instance of a class that implements Packer. + *
    + *
  • If the system property java.util.jar.Pack200.Packer + * is defined, then the value is taken to be the fully-qualified name + * of a concrete implementation class, which must implement Packer. + * This class is loaded and instantiated. If this process fails + * then an unspecified error is thrown.

  • + *
  • If an implementation has not been specified with the system + * property, then the system-default implementation class is instantiated, + * and the result is returned.

  • + *
+ *

Note: The returned object is not guaranteed to operate + * correctly if multiple threads use it at the same time. + * A multi-threaded application should either allocate multiple + * packer engines, or else serialize use of one engine with a lock. + */ + // @ts-ignore + public static newPacker(): java.util.jar.Pack200.Packer; + /** + * Obtain new instance of a class that implements Unpacker. + *

    + *
  • If the system property java.util.jar.Pack200.Unpacker + * is defined, then the value is taken to be the fully-qualified + * name of a concrete implementation class, which must implement Unpacker. + * The class is loaded and instantiated. If this process fails + * then an unspecified error is thrown.

  • + *
  • If an implementation has not been specified with the + * system property, then the system-default implementation class + * is instantiated, and the result is returned.

  • + *
+ *

Note: The returned object is not guaranteed to operate + * correctly if multiple threads use it at the same time. + * A multi-threaded application should either allocate multiple + * unpacker engines, or else serialize use of one engine with a lock. + */ + // @ts-ignore + public static newUnpacker(): java.util.jar.Pack200.Unpacker; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.logging.ConsoleHandler.d.ts b/packages/types/dist/typings/jdk/java.util.logging.ConsoleHandler.d.ts new file mode 100644 index 00000000..048047bf --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.logging.ConsoleHandler.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace logging { + // @ts-ignore + class ConsoleHandler extends java.util.logging.StreamHandler { + /** + * Create a ConsoleHandler for System.err. + *

+ * The ConsoleHandler is configured based on + * LogManager properties (or their default values). + */ + // @ts-ignore + constructor() + /** + * Publish a LogRecord. + *

+ * The logging request was made initially to a Logger object, + * which initialized the LogRecord and forwarded it here. + *

+ */ + // @ts-ignore + public publish(record: java.util.logging.LogRecord): void; + /** + * Override StreamHandler.close to do a flush but not + * to close the output stream. That is, we do not + * close System.err. + */ + // @ts-ignore + public close(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.logging.ErrorManager.d.ts b/packages/types/dist/typings/jdk/java.util.logging.ErrorManager.d.ts new file mode 100644 index 00000000..4e1bf908 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.logging.ErrorManager.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace logging { + // @ts-ignore + class ErrorManager extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static GENERIC_FAILURE: number; + // @ts-ignore + public static WRITE_FAILURE: number; + // @ts-ignore + public static FLUSH_FAILURE: number; + // @ts-ignore + public static CLOSE_FAILURE: number; + // @ts-ignore + public static OPEN_FAILURE: number; + // @ts-ignore + public static FORMAT_FAILURE: number; + /** + * The error method is called when a Handler failure occurs. + *

+ * This method may be overridden in subclasses. The default + * behavior in this base class is that the first call is + * reported to System.err, and subsequent calls are ignored. + */ + // @ts-ignore + public error(msg: string, ex: java.lang.Exception, code: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.logging.FileHandler.d.ts b/packages/types/dist/typings/jdk/java.util.logging.FileHandler.d.ts new file mode 100644 index 00000000..4057c185 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.logging.FileHandler.d.ts @@ -0,0 +1,88 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace logging { + // @ts-ignore + class FileHandler extends java.util.logging.StreamHandler { + /** + * Construct a default FileHandler. This will be configured + * entirely from LogManager properties (or their default values). + *

+ */ + // @ts-ignore + constructor() + /** + * Initialize a FileHandler to write to the given filename. + *

+ * The FileHandler is configured based on LogManager + * properties (or their default values) except that the given pattern + * argument is used as the filename pattern, the file limit is + * set to no limit, and the file count is set to one. + *

+ * There is no limit on the amount of data that may be written, + * so use this with care. + */ + // @ts-ignore + constructor(pattern: string) + /** + * Initialize a FileHandler to write to the given filename, + * with optional append. + *

+ * The FileHandler is configured based on LogManager + * properties (or their default values) except that the given pattern + * argument is used as the filename pattern, the file limit is + * set to no limit, the file count is set to one, and the append + * mode is set to the given append argument. + *

+ * There is no limit on the amount of data that may be written, + * so use this with care. + */ + // @ts-ignore + constructor(pattern: string, append: boolean) + /** + * Initialize a FileHandler to write to a set of files. When + * (approximately) the given limit has been written to one file, + * another file will be opened. The output will cycle through a set + * of count files. + *

+ * The FileHandler is configured based on LogManager + * properties (or their default values) except that the given pattern + * argument is used as the filename pattern, the file limit is + * set to the limit argument, and the file count is set to the + * given count argument. + *

+ * The count must be at least 1. + */ + // @ts-ignore + constructor(pattern: string, limit: number, count: number) + /** + * Initialize a FileHandler to write to a set of files + * with optional append. When (approximately) the given limit has + * been written to one file, another file will be opened. The + * output will cycle through a set of count files. + *

+ * The FileHandler is configured based on LogManager + * properties (or their default values) except that the given pattern + * argument is used as the filename pattern, the file limit is + * set to the limit argument, and the file count is set to the + * given count argument, and the append mode is set to the given + * append argument. + *

+ * The count must be at least 1. + */ + // @ts-ignore + constructor(pattern: string, limit: number, count: number, append: boolean) + /** + * Format and publish a LogRecord. + */ + // @ts-ignore + public publish(record: java.util.logging.LogRecord): void; + /** + * Close all the files. + */ + // @ts-ignore + public close(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.logging.Filter.d.ts b/packages/types/dist/typings/jdk/java.util.logging.Filter.d.ts new file mode 100644 index 00000000..cdd64333 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.logging.Filter.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace logging { + // @ts-ignore + interface Filter { + /** + * Check if a given log record should be published. + */ + // @ts-ignore + isLoggable(record: java.util.logging.LogRecord): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.logging.Formatter.d.ts b/packages/types/dist/typings/jdk/java.util.logging.Formatter.d.ts new file mode 100644 index 00000000..20a04366 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.logging.Formatter.d.ts @@ -0,0 +1,61 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace logging { + // @ts-ignore + abstract class Formatter extends java.lang.Object { + /** + * Construct a new formatter. + */ + // @ts-ignore + constructor() + /** + * Format the given log record and return the formatted string. + *

+ * The resulting formatted String will normally include a + * localized and formatted version of the LogRecord's message field. + * It is recommended to use the {@link Formatter#formatMessage} + * convenience method to localize and format the message field. + */ + // @ts-ignore + public abstract format(record: java.util.logging.LogRecord): string; + /** + * Return the header string for a set of formatted records. + *

+ * This base class returns an empty string, but this may be + * overridden by subclasses. + */ + // @ts-ignore + public getHead(h: java.util.logging.Handler): string; + /** + * Return the tail string for a set of formatted records. + *

+ * This base class returns an empty string, but this may be + * overridden by subclasses. + */ + // @ts-ignore + public getTail(h: java.util.logging.Handler): string; + /** + * Localize and format the message string from a log record. This + * method is provided as a convenience for Formatter subclasses to + * use when they are performing formatting. + *

+ * The message string is first localized to a format string using + * the record's ResourceBundle. (If there is no ResourceBundle, + * or if the message key is not found, then the key is used as the + * format string.) The format String uses java.text style + * formatting. + *

    + *
  • If there are no parameters, no formatter is used. + *
  • Otherwise, if the string contains "{0" then + * java.text.MessageFormat is used to format the string. + *
  • Otherwise no formatting is performed. + *
+ *

+ */ + // @ts-ignore + public formatMessage(record: java.util.logging.LogRecord): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.logging.Handler.d.ts b/packages/types/dist/typings/jdk/java.util.logging.Handler.d.ts new file mode 100644 index 00000000..cc613ed5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.logging.Handler.d.ts @@ -0,0 +1,137 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace logging { + // @ts-ignore + abstract class Handler extends java.lang.Object { + /** + * Default constructor. The resulting Handler has a log + * level of Level.ALL, no Formatter, and no + * Filter. A default ErrorManager instance is installed + * as the ErrorManager. + */ + // @ts-ignore + constructor() + /** + * Publish a LogRecord. + *

+ * The logging request was made initially to a Logger object, + * which initialized the LogRecord and forwarded it here. + *

+ * The Handler is responsible for formatting the message, when and + * if necessary. The formatting should include localization. + */ + // @ts-ignore + public abstract publish(record: java.util.logging.LogRecord): void; + /** + * Flush any buffered output. + */ + // @ts-ignore + public abstract flush(): void; + /** + * Close the Handler and free all associated resources. + *

+ * The close method will perform a flush and then close the + * Handler. After close has been called this Handler + * should no longer be used. Method calls may either be silently + * ignored or may throw runtime exceptions. + */ + // @ts-ignore + public abstract close(): void; + /** + * Set a Formatter. This Formatter will be used + * to format LogRecords for this Handler. + *

+ * Some Handlers may not use Formatters, in + * which case the Formatter will be remembered, but not used. + *

+ */ + // @ts-ignore + public setFormatter(newFormatter: java.util.logging.Formatter): void; + /** + * Return the Formatter for this Handler. + */ + // @ts-ignore + public getFormatter(): java.util.logging.Formatter; + /** + * Set the character encoding used by this Handler. + *

+ * The encoding should be set before any LogRecords are written + * to the Handler. + */ + // @ts-ignore + public setEncoding(encoding: string): void; + /** + * Return the character encoding for this Handler. + */ + // @ts-ignore + public getEncoding(): string; + /** + * Set a Filter to control output on this Handler. + *

+ * For each call of publish the Handler will call + * this Filter (if it is non-null) to check if the + * LogRecord should be published or discarded. + */ + // @ts-ignore + public setFilter(newFilter: java.util.logging.Filter): void; + /** + * Get the current Filter for this Handler. + */ + // @ts-ignore + public getFilter(): java.util.logging.Filter; + /** + * Define an ErrorManager for this Handler. + *

+ * The ErrorManager's "error" method will be invoked if any + * errors occur while using this Handler. + */ + // @ts-ignore + public setErrorManager(em: java.util.logging.ErrorManager): void; + /** + * Retrieves the ErrorManager for this Handler. + */ + // @ts-ignore + public getErrorManager(): java.util.logging.ErrorManager; + /** + * Protected convenience method to report an error to this Handler's + * ErrorManager. Note that this method retrieves and uses the ErrorManager + * without doing a security check. It can therefore be used in + * environments where the caller may be non-privileged. + */ + // @ts-ignore + protected reportError(msg: string, ex: java.lang.Exception, code: number): void; + /** + * Set the log level specifying which message levels will be + * logged by this Handler. Message levels lower than this + * value will be discarded. + *

+ * The intention is to allow developers to turn on voluminous + * logging, but to limit the messages that are sent to certain + * Handlers. + */ + // @ts-ignore + public setLevel(newLevel: java.util.logging.Level): void; + /** + * Get the log level specifying which messages will be + * logged by this Handler. Message levels lower + * than this level will be discarded. + */ + // @ts-ignore + public getLevel(): java.util.logging.Level; + /** + * Check if this Handler would actually log a given LogRecord. + *

+ * This method checks if the LogRecord has an appropriate + * Level and whether it satisfies any Filter. It also + * may make other Handler specific checks that might prevent a + * handler from logging the LogRecord. It will return false if + * the LogRecord is null. + *

+ */ + // @ts-ignore + public isLoggable(record: java.util.logging.LogRecord): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.logging.Level.d.ts b/packages/types/dist/typings/jdk/java.util.logging.Level.d.ts new file mode 100644 index 00000000..a08ad3b3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.logging.Level.d.ts @@ -0,0 +1,102 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace logging { + // @ts-ignore + class Level extends java.lang.Object { + /** + * Create a named Level with a given integer value. + *

+ * Note that this constructor is "protected" to allow subclassing. + * In general clients of logging should use one of the constant Level + * objects such as SEVERE or FINEST. However, if clients need to + * add new logging levels, they may subclass Level and define new + * constants. + */ + // @ts-ignore + constructor(name: string, value: number) + /** + * Create a named Level with a given integer value and a + * given localization resource name. + *

+ */ + // @ts-ignore + constructor(name: string, value: number, resourceBundleName: string) + // @ts-ignore + public static OFF: java.util.logging.Level; + // @ts-ignore + public static SEVERE: java.util.logging.Level; + // @ts-ignore + public static WARNING: java.util.logging.Level; + // @ts-ignore + public static INFO: java.util.logging.Level; + // @ts-ignore + public static CONFIG: java.util.logging.Level; + // @ts-ignore + public static FINE: java.util.logging.Level; + // @ts-ignore + public static FINER: java.util.logging.Level; + // @ts-ignore + public static FINEST: java.util.logging.Level; + // @ts-ignore + public static ALL: java.util.logging.Level; + /** + * Return the level's localization resource bundle name, or + * null if no localization bundle is defined. + */ + // @ts-ignore + public getResourceBundleName(): string; + /** + * Return the non-localized string name of the Level. + */ + // @ts-ignore + public getName(): string; + /** + * Return the localized string name of the Level, for + * the current default locale. + *

+ * If no localization information is available, the + * non-localized name is returned. + */ + // @ts-ignore + public getLocalizedName(): string; + /** + * Returns a string representation of this Level. + */ + // @ts-ignore + public toString(): string; + /** + * Get the integer value for this level. This integer value + * can be used for efficient ordering comparisons between + * Level objects. + */ + // @ts-ignore + public intValue(): number; + /** + * Parse a level name string into a Level. + *

+ * The argument string may consist of either a level name + * or an integer value. + *

+ * For example: + *

    + *
  • "SEVERE" + *
  • "1000" + *
+ */ + // @ts-ignore + public static parse(name: string): java.util.logging.Level; + /** + * Compare two objects for value equality. + */ + // @ts-ignore + public equals(ox: java.lang.Object): boolean; + /** + * Generate a hashcode. + */ + // @ts-ignore + public hashCode(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.logging.LogManager.d.ts b/packages/types/dist/typings/jdk/java.util.logging.LogManager.d.ts new file mode 100644 index 00000000..d80d74f5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.logging.LogManager.d.ts @@ -0,0 +1,156 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace logging { + // @ts-ignore + class LogManager extends java.lang.Object { + /** + * Protected constructor. This is protected so that container applications + * (such as J2EE containers) can subclass the object. It is non-public as + * it is intended that there only be one LogManager object, whose value is + * retrieved by calling LogManager.getLogManager. + */ + // @ts-ignore + constructor() + // @ts-ignore + public static LOGGING_MXBEAN_NAME: string; + /** + * Returns the global LogManager object. + */ + // @ts-ignore + public static getLogManager(): java.util.logging.LogManager; + /** + * Adds an event listener to be invoked when the logging + * properties are re-read. Adding multiple instances of + * the same event Listener results in multiple entries + * in the property event listener table. + *

WARNING: This method is omitted from this class in all subset + * Profiles of Java SE that do not include the {@code java.beans} package. + *

+ */ + // @ts-ignore + public addPropertyChangeListener(l: java.beans.PropertyChangeListener): void; + /** + * Removes an event listener for property change events. + * If the same listener instance has been added to the listener table + * through multiple invocations of addPropertyChangeListener, + * then an equivalent number of + * removePropertyChangeListener invocations are required to remove + * all instances of that listener from the listener table. + *

+ * Returns silently if the given listener is not found. + *

WARNING: This method is omitted from this class in all subset + * Profiles of Java SE that do not include the {@code java.beans} package. + *

+ */ + // @ts-ignore + public removePropertyChangeListener(l: java.beans.PropertyChangeListener): void; + /** + * Add a named logger. This does nothing and returns false if a logger + * with the same name is already registered. + *

+ * The Logger factory methods call this method to register each + * newly created Logger. + *

+ * The application should retain its own reference to the Logger + * object to avoid it being garbage collected. The LogManager + * may only retain a weak reference. + */ + // @ts-ignore + public addLogger(logger: java.util.logging.Logger): boolean; + /** + * Method to find a named logger. + *

+ * Note that since untrusted code may create loggers with + * arbitrary names this method should not be relied on to + * find Loggers for security sensitive logging. + * It is also important to note that the Logger associated with the + * String {@code name} may be garbage collected at any time if there + * is no strong reference to the Logger. The caller of this method + * must check the return value for null in order to properly handle + * the case where the Logger has been garbage collected. + *

+ */ + // @ts-ignore + public getLogger(name: string): java.util.logging.Logger; + /** + * Get an enumeration of known logger names. + *

+ * Note: Loggers may be added dynamically as new classes are loaded. + * This method only reports on the loggers that are currently registered. + * It is also important to note that this method only returns the name + * of a Logger, not a strong reference to the Logger itself. + * The returned String does nothing to prevent the Logger from being + * garbage collected. In particular, if the returned name is passed + * to {@code LogManager.getLogger()}, then the caller must check the + * return value from {@code LogManager.getLogger()} for null to properly + * handle the case where the Logger has been garbage collected in the + * time since its name was returned by this method. + *

+ */ + // @ts-ignore + public getLoggerNames(): java.util.Enumeration; + /** + * Reinitialize the logging properties and reread the logging configuration. + *

+ * The same rules are used for locating the configuration properties + * as are used at startup. So normally the logging properties will + * be re-read from the same file that was used at startup. + *

+ * Any log level definitions in the new configuration file will be + * applied using Logger.setLevel(), if the target Logger exists. + *

+ * A PropertyChangeEvent will be fired after the properties are read. + */ + // @ts-ignore + public readConfiguration(): void; + /** + * Reset the logging configuration. + *

+ * For all named loggers, the reset operation removes and closes + * all Handlers and (except for the root logger) sets the level + * to null. The root logger's level is set to Level.INFO. + */ + // @ts-ignore + public reset(): void; + /** + * Reinitialize the logging properties and reread the logging configuration + * from the given stream, which should be in java.util.Properties format. + * A PropertyChangeEvent will be fired after the properties are read. + *

+ * Any log level definitions in the new configuration file will be + * applied using Logger.setLevel(), if the target Logger exists. + */ + // @ts-ignore + public readConfiguration(ins: java.io.InputStream): void; + /** + * Get the value of a logging property. + * The method returns null if the property is not found. + */ + // @ts-ignore + public getProperty(name: string): string; + /** + * Check that the current context is trusted to modify the logging + * configuration. This requires LoggingPermission("control"). + *

+ * If the check fails we throw a SecurityException, otherwise + * we return normally. + */ + // @ts-ignore + public checkAccess(): void; + /** + * Returns LoggingMXBean for managing loggers. + * An alternative way to manage loggers is through the + * {@link java.lang.management.PlatformLoggingMXBean} interface + * that can be obtained by calling: + *

+                 * PlatformLoggingMXBean logging = {@link java.lang.management.ManagementFactory#getPlatformMXBean(Class)
+                 * ManagementFactory.getPlatformMXBean}(PlatformLoggingMXBean.class);
+                 * 
+ */ + // @ts-ignore + public static getLoggingMXBean(): java.util.logging.LoggingMXBean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.logging.LogRecord.d.ts b/packages/types/dist/typings/jdk/java.util.logging.LogRecord.d.ts new file mode 100644 index 00000000..b8d64ee4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.logging.LogRecord.d.ts @@ -0,0 +1,194 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace logging { + // @ts-ignore + class LogRecord extends java.lang.Object { + /** + * Construct a LogRecord with the given level and message values. + *

+ * The sequence property will be initialized with a new unique value. + * These sequence values are allocated in increasing order within a VM. + *

+ * The millis property will be initialized to the current time. + *

+ * The thread ID property will be initialized with a unique ID for + * the current thread. + *

+ * All other properties will be initialized to "null". + */ + // @ts-ignore + constructor(level: java.util.logging.Level, msg: string) + /** + * Get the source Logger's name. + */ + // @ts-ignore + public getLoggerName(): string; + /** + * Set the source Logger's name. + */ + // @ts-ignore + public setLoggerName(name: string): void; + /** + * Get the localization resource bundle + *

+ * This is the ResourceBundle that should be used to localize + * the message string before formatting it. The result may + * be null if the message is not localizable, or if no suitable + * ResourceBundle is available. + */ + // @ts-ignore + public getResourceBundle(): java.util.ResourceBundle; + /** + * Set the localization resource bundle. + */ + // @ts-ignore + public setResourceBundle(bundle: java.util.ResourceBundle): void; + /** + * Get the localization resource bundle name + *

+ * This is the name for the ResourceBundle that should be + * used to localize the message string before formatting it. + * The result may be null if the message is not localizable. + */ + // @ts-ignore + public getResourceBundleName(): string; + /** + * Set the localization resource bundle name. + */ + // @ts-ignore + public setResourceBundleName(name: string): void; + /** + * Get the logging message level, for example Level.SEVERE. + */ + // @ts-ignore + public getLevel(): java.util.logging.Level; + /** + * Set the logging message level, for example Level.SEVERE. + */ + // @ts-ignore + public setLevel(level: java.util.logging.Level): void; + /** + * Get the sequence number. + *

+ * Sequence numbers are normally assigned in the LogRecord + * constructor, which assigns unique sequence numbers to + * each new LogRecord in increasing order. + */ + // @ts-ignore + public getSequenceNumber(): number; + /** + * Set the sequence number. + *

+ * Sequence numbers are normally assigned in the LogRecord constructor, + * so it should not normally be necessary to use this method. + */ + // @ts-ignore + public setSequenceNumber(seq: number): void; + /** + * Get the name of the class that (allegedly) issued the logging request. + *

+ * Note that this sourceClassName is not verified and may be spoofed. + * This information may either have been provided as part of the + * logging call, or it may have been inferred automatically by the + * logging framework. In the latter case, the information may only + * be approximate and may in fact describe an earlier call on the + * stack frame. + *

+ * May be null if no information could be obtained. + */ + // @ts-ignore + public getSourceClassName(): string; + /** + * Set the name of the class that (allegedly) issued the logging request. + */ + // @ts-ignore + public setSourceClassName(sourceClassName: string): void; + /** + * Get the name of the method that (allegedly) issued the logging request. + *

+ * Note that this sourceMethodName is not verified and may be spoofed. + * This information may either have been provided as part of the + * logging call, or it may have been inferred automatically by the + * logging framework. In the latter case, the information may only + * be approximate and may in fact describe an earlier call on the + * stack frame. + *

+ * May be null if no information could be obtained. + */ + // @ts-ignore + public getSourceMethodName(): string; + /** + * Set the name of the method that (allegedly) issued the logging request. + */ + // @ts-ignore + public setSourceMethodName(sourceMethodName: string): void; + /** + * Get the "raw" log message, before localization or formatting. + *

+ * May be null, which is equivalent to the empty string "". + *

+ * This message may be either the final text or a localization key. + *

+ * During formatting, if the source logger has a localization + * ResourceBundle and if that ResourceBundle has an entry for + * this message string, then the message string is replaced + * with the localized value. + */ + // @ts-ignore + public getMessage(): string; + /** + * Set the "raw" log message, before localization or formatting. + */ + // @ts-ignore + public setMessage(message: string): void; + /** + * Get the parameters to the log message. + */ + // @ts-ignore + public getParameters(): java.lang.Object[]; + /** + * Set the parameters to the log message. + */ + // @ts-ignore + public setParameters(parameters: java.lang.Object): void; + /** + * Get an identifier for the thread where the message originated. + *

+ * This is a thread identifier within the Java VM and may or + * may not map to any operating system ID. + */ + // @ts-ignore + public getThreadID(): number; + /** + * Set an identifier for the thread where the message originated. + */ + // @ts-ignore + public setThreadID(threadID: number): void; + /** + * Get event time in milliseconds since 1970. + */ + // @ts-ignore + public getMillis(): number; + /** + * Set event time. + */ + // @ts-ignore + public setMillis(millis: number): void; + /** + * Get any throwable associated with the log record. + *

+ * If the event involved an exception, this will be the + * exception object. Otherwise null. + */ + // @ts-ignore + public getThrown(): java.lang.Throwable; + /** + * Set a throwable associated with the log event. + */ + // @ts-ignore + public setThrown(thrown: java.lang.Throwable): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.logging.Logger.d.ts b/packages/types/dist/typings/jdk/java.util.logging.Logger.d.ts new file mode 100644 index 00000000..cb1c476f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.logging.Logger.d.ts @@ -0,0 +1,746 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace logging { + // @ts-ignore + class Logger extends java.lang.Object { + /** + * Protected method to construct a logger for a named subsystem. + *

+ * The logger will be initially configured with a null Level + * and with useParentHandlers set to true. + */ + // @ts-ignore + constructor(name: string, resourceBundleName: string) + // @ts-ignore + public static GLOBAL_LOGGER_NAME: string; + // @ts-ignore + public static global: java.util.logging.Logger; + /** + * Return global logger object with the name Logger.GLOBAL_LOGGER_NAME. + */ + // @ts-ignore + public static getGlobal(): java.util.logging.Logger; + /** + * Find or create a logger for a named subsystem. If a logger has + * already been created with the given name it is returned. Otherwise + * a new logger is created. + *

+ * If a new logger is created its log level will be configured + * based on the LogManager configuration and it will configured + * to also send logging output to its parent's Handlers. It will + * be registered in the LogManager global namespace. + *

+ * Note: The LogManager may only retain a weak reference to the newly + * created Logger. It is important to understand that a previously + * created Logger with the given name may be garbage collected at any + * time if there is no strong reference to the Logger. In particular, + * this means that two back-to-back calls like + * {@code getLogger("MyLogger").log(...)} may use different Logger + * objects named "MyLogger" if there is no strong reference to the + * Logger named "MyLogger" elsewhere in the program. + */ + // @ts-ignore + public static getLogger(name: string): java.util.logging.Logger; + /** + * Find or create a logger for a named subsystem. If a logger has + * already been created with the given name it is returned. Otherwise + * a new logger is created. + *

+ * If a new logger is created its log level will be configured + * based on the LogManager and it will configured to also send logging + * output to its parent's Handlers. It will be registered in + * the LogManager global namespace. + *

+ * Note: The LogManager may only retain a weak reference to the newly + * created Logger. It is important to understand that a previously + * created Logger with the given name may be garbage collected at any + * time if there is no strong reference to the Logger. In particular, + * this means that two back-to-back calls like + * {@code getLogger("MyLogger", ...).log(...)} may use different Logger + * objects named "MyLogger" if there is no strong reference to the + * Logger named "MyLogger" elsewhere in the program. + *

+ * If the named Logger already exists and does not yet have a + * localization resource bundle then the given resource bundle + * name is used. If the named Logger already exists and has + * a different resource bundle name then an IllegalArgumentException + * is thrown. + *

+ */ + // @ts-ignore + public static getLogger(name: string, resourceBundleName: string): java.util.logging.Logger; + /** + * Create an anonymous Logger. The newly created Logger is not + * registered in the LogManager namespace. There will be no + * access checks on updates to the logger. + *

+ * This factory method is primarily intended for use from applets. + * Because the resulting Logger is anonymous it can be kept private + * by the creating class. This removes the need for normal security + * checks, which in turn allows untrusted applet code to update + * the control state of the Logger. For example an applet can do + * a setLevel or an addHandler on an anonymous Logger. + *

+ * Even although the new logger is anonymous, it is configured + * to have the root logger ("") as its parent. This means that + * by default it inherits its effective level and handlers + * from the root logger. Changing its parent via the + * {@link #setParent(java.util.logging.Logger) setParent} method + * will still require the security permission specified by that method. + *

+ */ + // @ts-ignore + public static getAnonymousLogger(): java.util.logging.Logger; + /** + * Create an anonymous Logger. The newly created Logger is not + * registered in the LogManager namespace. There will be no + * access checks on updates to the logger. + *

+ * This factory method is primarily intended for use from applets. + * Because the resulting Logger is anonymous it can be kept private + * by the creating class. This removes the need for normal security + * checks, which in turn allows untrusted applet code to update + * the control state of the Logger. For example an applet can do + * a setLevel or an addHandler on an anonymous Logger. + *

+ * Even although the new logger is anonymous, it is configured + * to have the root logger ("") as its parent. This means that + * by default it inherits its effective level and handlers + * from the root logger. Changing its parent via the + * {@link #setParent(java.util.logging.Logger) setParent} method + * will still require the security permission specified by that method. + *

+ */ + // @ts-ignore + public static getAnonymousLogger(resourceBundleName: string): java.util.logging.Logger; + /** + * Retrieve the localization resource bundle for this + * logger. + * This method will return a {@code ResourceBundle} that was either + * set by the {@link + * #setResourceBundle(java.util.ResourceBundle) setResourceBundle} method or + * mapped from the + * the resource bundle name set via the {@link + * Logger#getLogger(java.lang.String, java.lang.String) getLogger} factory + * method for the current default locale. + *
Note that if the result is {@code null}, then the Logger will use a resource + * bundle or resource bundle name inherited from its parent. + */ + // @ts-ignore + public getResourceBundle(): java.util.ResourceBundle; + /** + * Retrieve the localization resource bundle name for this + * logger. + * This is either the name specified through the {@link + * #getLogger(java.lang.String, java.lang.String) getLogger} factory method, + * or the {@linkplain ResourceBundle#getBaseBundleName() base name} of the + * ResourceBundle set through {@link + * #setResourceBundle(java.util.ResourceBundle) setResourceBundle} method. + *
Note that if the result is {@code null}, then the Logger will use a resource + * bundle or resource bundle name inherited from its parent. + */ + // @ts-ignore + public getResourceBundleName(): string; + /** + * Set a filter to control output on this Logger. + *

+ * After passing the initial "level" check, the Logger will + * call this Filter to check if a log record should really + * be published. + */ + // @ts-ignore + public setFilter(newFilter: java.util.logging.Filter): void; + /** + * Get the current filter for this Logger. + */ + // @ts-ignore + public getFilter(): java.util.logging.Filter; + /** + * Log a LogRecord. + *

+ * All the other logging methods in this class call through + * this method to actually perform any logging. Subclasses can + * override this single method to capture all log activity. + */ + // @ts-ignore + public log(record: java.util.logging.LogRecord): void; + /** + * Log a message, with no arguments. + *

+ * If the logger is currently enabled for the given message + * level then the given message is forwarded to all the + * registered output Handler objects. + *

+ */ + // @ts-ignore + public log(level: java.util.logging.Level, msg: string): void; + /** + * Log a message, which is only to be constructed if the logging level + * is such that the message will actually be logged. + *

+ * If the logger is currently enabled for the given message + * level then the message is constructed by invoking the provided + * supplier function and forwarded to all the registered output + * Handler objects. + *

+ */ + // @ts-ignore + public log(level: java.util.logging.Level, msgSupplier: java.util.function$.Supplier): void; + /** + * Log a message, with one object parameter. + *

+ * If the logger is currently enabled for the given message + * level then a corresponding LogRecord is created and forwarded + * to all the registered output Handler objects. + *

+ */ + // @ts-ignore + public log(level: java.util.logging.Level, msg: string, param1: java.lang.Object): void; + /** + * Log a message, with an array of object arguments. + *

+ * If the logger is currently enabled for the given message + * level then a corresponding LogRecord is created and forwarded + * to all the registered output Handler objects. + *

+ */ + // @ts-ignore + public log(level: java.util.logging.Level, msg: string, params: java.lang.Object): void; + /** + * Log a message, with associated Throwable information. + *

+ * If the logger is currently enabled for the given message + * level then the given arguments are stored in a LogRecord + * which is forwarded to all registered output handlers. + *

+ * Note that the thrown argument is stored in the LogRecord thrown + * property, rather than the LogRecord parameters property. Thus it is + * processed specially by output Formatters and is not treated + * as a formatting parameter to the LogRecord message property. + *

+ */ + // @ts-ignore + public log(level: java.util.logging.Level, msg: string, thrown: java.lang.Throwable): void; + /** + * Log a lazily constructed message, with associated Throwable information. + *

+ * If the logger is currently enabled for the given message level then the + * message is constructed by invoking the provided supplier function. The + * message and the given {@link Throwable} are then stored in a {@link + * LogRecord} which is forwarded to all registered output handlers. + *

+ * Note that the thrown argument is stored in the LogRecord thrown + * property, rather than the LogRecord parameters property. Thus it is + * processed specially by output Formatters and is not treated + * as a formatting parameter to the LogRecord message property. + *

+ */ + // @ts-ignore + public log(level: java.util.logging.Level, thrown: java.lang.Throwable, msgSupplier: java.util.function$.Supplier): void; + /** + * Log a message, specifying source class and method, + * with no arguments. + *

+ * If the logger is currently enabled for the given message + * level then the given message is forwarded to all the + * registered output Handler objects. + *

+ */ + // @ts-ignore + public logp(level: java.util.logging.Level, sourceClass: string, sourceMethod: string, msg: string): void; + /** + * Log a lazily constructed message, specifying source class and method, + * with no arguments. + *

+ * If the logger is currently enabled for the given message + * level then the message is constructed by invoking the provided + * supplier function and forwarded to all the registered output + * Handler objects. + *

+ */ + // @ts-ignore + public logp(level: java.util.logging.Level, sourceClass: string, sourceMethod: string, msgSupplier: java.util.function$.Supplier): void; + /** + * Log a message, specifying source class and method, + * with a single object parameter to the log message. + *

+ * If the logger is currently enabled for the given message + * level then a corresponding LogRecord is created and forwarded + * to all the registered output Handler objects. + *

+ */ + // @ts-ignore + public logp(level: java.util.logging.Level, sourceClass: string, sourceMethod: string, msg: string, param1: java.lang.Object): void; + /** + * Log a message, specifying source class and method, + * with an array of object arguments. + *

+ * If the logger is currently enabled for the given message + * level then a corresponding LogRecord is created and forwarded + * to all the registered output Handler objects. + *

+ */ + // @ts-ignore + public logp(level: java.util.logging.Level, sourceClass: string, sourceMethod: string, msg: string, params: java.lang.Object): void; + /** + * Log a message, specifying source class and method, + * with associated Throwable information. + *

+ * If the logger is currently enabled for the given message + * level then the given arguments are stored in a LogRecord + * which is forwarded to all registered output handlers. + *

+ * Note that the thrown argument is stored in the LogRecord thrown + * property, rather than the LogRecord parameters property. Thus it is + * processed specially by output Formatters and is not treated + * as a formatting parameter to the LogRecord message property. + *

+ */ + // @ts-ignore + public logp(level: java.util.logging.Level, sourceClass: string, sourceMethod: string, msg: string, thrown: java.lang.Throwable): void; + /** + * Log a lazily constructed message, specifying source class and method, + * with associated Throwable information. + *

+ * If the logger is currently enabled for the given message level then the + * message is constructed by invoking the provided supplier function. The + * message and the given {@link Throwable} are then stored in a {@link + * LogRecord} which is forwarded to all registered output handlers. + *

+ * Note that the thrown argument is stored in the LogRecord thrown + * property, rather than the LogRecord parameters property. Thus it is + * processed specially by output Formatters and is not treated + * as a formatting parameter to the LogRecord message property. + *

+ */ + // @ts-ignore + public logp(level: java.util.logging.Level, sourceClass: string, sourceMethod: string, thrown: java.lang.Throwable, msgSupplier: java.util.function$.Supplier): void; + /** + * Log a message, specifying source class, method, and resource bundle name + * with no arguments. + *

+ * If the logger is currently enabled for the given message + * level then the given message is forwarded to all the + * registered output Handler objects. + *

+ * The msg string is localized using the named resource bundle. If the + * resource bundle name is null, or an empty String or invalid + * then the msg string is not localized. + *

+ */ + // @ts-ignore + public logrb(level: java.util.logging.Level, sourceClass: string, sourceMethod: string, bundleName: string, msg: string): void; + /** + * Log a message, specifying source class, method, and resource bundle name, + * with a single object parameter to the log message. + *

+ * If the logger is currently enabled for the given message + * level then a corresponding LogRecord is created and forwarded + * to all the registered output Handler objects. + *

+ * The msg string is localized using the named resource bundle. If the + * resource bundle name is null, or an empty String or invalid + * then the msg string is not localized. + *

+ */ + // @ts-ignore + public logrb(level: java.util.logging.Level, sourceClass: string, sourceMethod: string, bundleName: string, msg: string, param1: java.lang.Object): void; + /** + * Log a message, specifying source class, method, and resource bundle name, + * with an array of object arguments. + *

+ * If the logger is currently enabled for the given message + * level then a corresponding LogRecord is created and forwarded + * to all the registered output Handler objects. + *

+ * The msg string is localized using the named resource bundle. If the + * resource bundle name is null, or an empty String or invalid + * then the msg string is not localized. + *

+ */ + // @ts-ignore + public logrb(level: java.util.logging.Level, sourceClass: string, sourceMethod: string, bundleName: string, msg: string, params: java.lang.Object): void; + /** + * Log a message, specifying source class, method, and resource bundle, + * with an optional list of message parameters. + *

+ * If the logger is currently enabled for the given message + * level then a corresponding LogRecord is created and forwarded + * to all the registered output Handler objects. + *

+ * The {@code msg} string is localized using the given resource bundle. + * If the resource bundle is {@code null}, then the {@code msg} string is not + * localized. + *

+ */ + // @ts-ignore + public logrb(level: java.util.logging.Level, sourceClass: string, sourceMethod: string, bundle: java.util.ResourceBundle, msg: string, params: java.lang.Object): void; + /** + * Log a message, specifying source class, method, and resource bundle name, + * with associated Throwable information. + *

+ * If the logger is currently enabled for the given message + * level then the given arguments are stored in a LogRecord + * which is forwarded to all registered output handlers. + *

+ * The msg string is localized using the named resource bundle. If the + * resource bundle name is null, or an empty String or invalid + * then the msg string is not localized. + *

+ * Note that the thrown argument is stored in the LogRecord thrown + * property, rather than the LogRecord parameters property. Thus it is + * processed specially by output Formatters and is not treated + * as a formatting parameter to the LogRecord message property. + *

+ */ + // @ts-ignore + public logrb(level: java.util.logging.Level, sourceClass: string, sourceMethod: string, bundleName: string, msg: string, thrown: java.lang.Throwable): void; + /** + * Log a message, specifying source class, method, and resource bundle, + * with associated Throwable information. + *

+ * If the logger is currently enabled for the given message + * level then the given arguments are stored in a LogRecord + * which is forwarded to all registered output handlers. + *

+ * The {@code msg} string is localized using the given resource bundle. + * If the resource bundle is {@code null}, then the {@code msg} string is not + * localized. + *

+ * Note that the thrown argument is stored in the LogRecord thrown + * property, rather than the LogRecord parameters property. Thus it is + * processed specially by output Formatters and is not treated + * as a formatting parameter to the LogRecord message property. + *

+ */ + // @ts-ignore + public logrb(level: java.util.logging.Level, sourceClass: string, sourceMethod: string, bundle: java.util.ResourceBundle, msg: string, thrown: java.lang.Throwable): void; + /** + * Log a method entry. + *

+ * This is a convenience method that can be used to log entry + * to a method. A LogRecord with message "ENTRY", log level + * FINER, and the given sourceMethod and sourceClass is logged. + *

+ */ + // @ts-ignore + public entering(sourceClass: string, sourceMethod: string): void; + /** + * Log a method entry, with one parameter. + *

+ * This is a convenience method that can be used to log entry + * to a method. A LogRecord with message "ENTRY {0}", log level + * FINER, and the given sourceMethod, sourceClass, and parameter + * is logged. + *

+ */ + // @ts-ignore + public entering(sourceClass: string, sourceMethod: string, param1: java.lang.Object): void; + /** + * Log a method entry, with an array of parameters. + *

+ * This is a convenience method that can be used to log entry + * to a method. A LogRecord with message "ENTRY" (followed by a + * format {N} indicator for each entry in the parameter array), + * log level FINER, and the given sourceMethod, sourceClass, and + * parameters is logged. + *

+ */ + // @ts-ignore + public entering(sourceClass: string, sourceMethod: string, params: java.lang.Object): void; + /** + * Log a method return. + *

+ * This is a convenience method that can be used to log returning + * from a method. A LogRecord with message "RETURN", log level + * FINER, and the given sourceMethod and sourceClass is logged. + *

+ */ + // @ts-ignore + public exiting(sourceClass: string, sourceMethod: string): void; + /** + * Log a method return, with result object. + *

+ * This is a convenience method that can be used to log returning + * from a method. A LogRecord with message "RETURN {0}", log level + * FINER, and the gives sourceMethod, sourceClass, and result + * object is logged. + *

+ */ + // @ts-ignore + public exiting(sourceClass: string, sourceMethod: string, result: java.lang.Object): void; + /** + * Log throwing an exception. + *

+ * This is a convenience method to log that a method is + * terminating by throwing an exception. The logging is done + * using the FINER level. + *

+ * If the logger is currently enabled for the given message + * level then the given arguments are stored in a LogRecord + * which is forwarded to all registered output handlers. The + * LogRecord's message is set to "THROW". + *

+ * Note that the thrown argument is stored in the LogRecord thrown + * property, rather than the LogRecord parameters property. Thus it is + * processed specially by output Formatters and is not treated + * as a formatting parameter to the LogRecord message property. + *

+ */ + // @ts-ignore + public throwing(sourceClass: string, sourceMethod: string, thrown: java.lang.Throwable): void; + /** + * Log a SEVERE message. + *

+ * If the logger is currently enabled for the SEVERE message + * level then the given message is forwarded to all the + * registered output Handler objects. + *

+ */ + // @ts-ignore + public severe(msg: string): void; + /** + * Log a WARNING message. + *

+ * If the logger is currently enabled for the WARNING message + * level then the given message is forwarded to all the + * registered output Handler objects. + *

+ */ + // @ts-ignore + public warning(msg: string): void; + /** + * Log an INFO message. + *

+ * If the logger is currently enabled for the INFO message + * level then the given message is forwarded to all the + * registered output Handler objects. + *

+ */ + // @ts-ignore + public info(msg: string): void; + /** + * Log a CONFIG message. + *

+ * If the logger is currently enabled for the CONFIG message + * level then the given message is forwarded to all the + * registered output Handler objects. + *

+ */ + // @ts-ignore + public config(msg: string): void; + /** + * Log a FINE message. + *

+ * If the logger is currently enabled for the FINE message + * level then the given message is forwarded to all the + * registered output Handler objects. + *

+ */ + // @ts-ignore + public fine(msg: string): void; + /** + * Log a FINER message. + *

+ * If the logger is currently enabled for the FINER message + * level then the given message is forwarded to all the + * registered output Handler objects. + *

+ */ + // @ts-ignore + public finer(msg: string): void; + /** + * Log a FINEST message. + *

+ * If the logger is currently enabled for the FINEST message + * level then the given message is forwarded to all the + * registered output Handler objects. + *

+ */ + // @ts-ignore + public finest(msg: string): void; + /** + * Log a SEVERE message, which is only to be constructed if the logging + * level is such that the message will actually be logged. + *

+ * If the logger is currently enabled for the SEVERE message + * level then the message is constructed by invoking the provided + * supplier function and forwarded to all the registered output + * Handler objects. + *

+ */ + // @ts-ignore + public severe(msgSupplier: java.util.function$.Supplier): void; + /** + * Log a WARNING message, which is only to be constructed if the logging + * level is such that the message will actually be logged. + *

+ * If the logger is currently enabled for the WARNING message + * level then the message is constructed by invoking the provided + * supplier function and forwarded to all the registered output + * Handler objects. + *

+ */ + // @ts-ignore + public warning(msgSupplier: java.util.function$.Supplier): void; + /** + * Log a INFO message, which is only to be constructed if the logging + * level is such that the message will actually be logged. + *

+ * If the logger is currently enabled for the INFO message + * level then the message is constructed by invoking the provided + * supplier function and forwarded to all the registered output + * Handler objects. + *

+ */ + // @ts-ignore + public info(msgSupplier: java.util.function$.Supplier): void; + /** + * Log a CONFIG message, which is only to be constructed if the logging + * level is such that the message will actually be logged. + *

+ * If the logger is currently enabled for the CONFIG message + * level then the message is constructed by invoking the provided + * supplier function and forwarded to all the registered output + * Handler objects. + *

+ */ + // @ts-ignore + public config(msgSupplier: java.util.function$.Supplier): void; + /** + * Log a FINE message, which is only to be constructed if the logging + * level is such that the message will actually be logged. + *

+ * If the logger is currently enabled for the FINE message + * level then the message is constructed by invoking the provided + * supplier function and forwarded to all the registered output + * Handler objects. + *

+ */ + // @ts-ignore + public fine(msgSupplier: java.util.function$.Supplier): void; + /** + * Log a FINER message, which is only to be constructed if the logging + * level is such that the message will actually be logged. + *

+ * If the logger is currently enabled for the FINER message + * level then the message is constructed by invoking the provided + * supplier function and forwarded to all the registered output + * Handler objects. + *

+ */ + // @ts-ignore + public finer(msgSupplier: java.util.function$.Supplier): void; + /** + * Log a FINEST message, which is only to be constructed if the logging + * level is such that the message will actually be logged. + *

+ * If the logger is currently enabled for the FINEST message + * level then the message is constructed by invoking the provided + * supplier function and forwarded to all the registered output + * Handler objects. + *

+ */ + // @ts-ignore + public finest(msgSupplier: java.util.function$.Supplier): void; + /** + * Set the log level specifying which message levels will be + * logged by this logger. Message levels lower than this + * value will be discarded. The level value Level.OFF + * can be used to turn off logging. + *

+ * If the new level is null, it means that this node should + * inherit its level from its nearest ancestor with a specific + * (non-null) level value. + */ + // @ts-ignore + public setLevel(newLevel: java.util.logging.Level): void; + /** + * Get the log Level that has been specified for this Logger. + * The result may be null, which means that this logger's + * effective level will be inherited from its parent. + */ + // @ts-ignore + public getLevel(): java.util.logging.Level; + /** + * Check if a message of the given level would actually be logged + * by this logger. This check is based on the Loggers effective level, + * which may be inherited from its parent. + */ + // @ts-ignore + public isLoggable(level: java.util.logging.Level): boolean; + /** + * Get the name for this logger. + */ + // @ts-ignore + public getName(): string; + /** + * Add a log Handler to receive logging messages. + *

+ * By default, Loggers also send their output to their parent logger. + * Typically the root Logger is configured with a set of Handlers + * that essentially act as default handlers for all loggers. + */ + // @ts-ignore + public addHandler(handler: java.util.logging.Handler): void; + /** + * Remove a log Handler. + *

+ * Returns silently if the given Handler is not found or is null + */ + // @ts-ignore + public removeHandler(handler: java.util.logging.Handler): void; + /** + * Get the Handlers associated with this logger. + *

+ */ + // @ts-ignore + public getHandlers(): java.util.logging.Handler[]; + /** + * Specify whether or not this logger should send its output + * to its parent Logger. This means that any LogRecords will + * also be written to the parent's Handlers, and potentially + * to its parent, recursively up the namespace. + */ + // @ts-ignore + public setUseParentHandlers(useParentHandlers: boolean): void; + /** + * Discover whether or not this logger is sending its output + * to its parent logger. + */ + // @ts-ignore + public getUseParentHandlers(): boolean; + /** + * Sets a resource bundle on this logger. + * All messages will be logged using the given resource bundle for its + * specific {@linkplain ResourceBundle#getLocale locale}. + */ + // @ts-ignore + public setResourceBundle(bundle: java.util.ResourceBundle): void; + /** + * Return the parent for this Logger. + *

+ * This method returns the nearest extant parent in the namespace. + * Thus if a Logger is called "a.b.c.d", and a Logger called "a.b" + * has been created but no logger "a.b.c" exists, then a call of + * getParent on the Logger "a.b.c.d" will return the Logger "a.b". + *

+ * The result will be null if it is called on the root Logger + * in the namespace. + */ + // @ts-ignore + public getParent(): java.util.logging.Logger; + /** + * Set the parent for this Logger. This method is used by + * the LogManager to update a Logger when the namespace changes. + *

+ * It should not be called from application code. + *

+ */ + // @ts-ignore + public setParent(parent: java.util.logging.Logger): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.logging.LoggingMXBean.d.ts b/packages/types/dist/typings/jdk/java.util.logging.LoggingMXBean.d.ts new file mode 100644 index 00000000..37b913b1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.logging.LoggingMXBean.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace logging { + // @ts-ignore + interface LoggingMXBean { + /** + * Returns the string name of the specified {@link Logger}instance's + * current log level. + */ + // @ts-ignore + getLoggerLevel(loggerName: string): string; + /** + * Returns a list of the names of all of the currently registered + * Logger instances. + */ + // @ts-ignore + getLoggerNames(): java.util.List; + /** + * Returns the name of the parent {@link Logger}of the specified registered + * Logger,loggerName. + */ + // @ts-ignore + getParentLoggerName(loggerName: string): string; + /** + * Attempts to update the log level of the {@link Logger} with name + * loggerName to levelName. + *

+ * If levelName is null then the Logger + * instance's log level is set to be null with the result that + * it will inherit its log level from its nearest parent which does not have + * a null log level value. + *

+ */ + // @ts-ignore + setLoggerLevel(loggerName: string, levelName: string): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.logging.LoggingPermission.d.ts b/packages/types/dist/typings/jdk/java.util.logging.LoggingPermission.d.ts new file mode 100644 index 00000000..7b19c753 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.logging.LoggingPermission.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace logging { + // @ts-ignore + class LoggingPermission extends java.security.BasicPermission { + /** + * Creates a new LoggingPermission object. + */ + // @ts-ignore + constructor(name: string, actions: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.logging.MemoryHandler.d.ts b/packages/types/dist/typings/jdk/java.util.logging.MemoryHandler.d.ts new file mode 100644 index 00000000..4a985936 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.logging.MemoryHandler.d.ts @@ -0,0 +1,84 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace logging { + // @ts-ignore + class MemoryHandler extends java.util.logging.Handler { + /** + * Create a MemoryHandler and configure it based on + * LogManager configuration properties. + */ + // @ts-ignore + constructor() + /** + * Create a MemoryHandler. + *

+ * The MemoryHandler is configured based on LogManager + * properties (or their default values) except that the given pushLevel + * argument and buffer size argument are used. + */ + // @ts-ignore + constructor(target: java.util.logging.Handler, size: number, pushLevel: java.util.logging.Level) + /** + * Store a LogRecord in an internal buffer. + *

+ * If there is a Filter, its isLoggable + * method is called to check if the given log record is loggable. + * If not we return. Otherwise the given record is copied into + * an internal circular buffer. Then the record's level property is + * compared with the pushLevel. If the given level is + * greater than or equal to the pushLevel then push + * is called to write all buffered records to the target output + * Handler. + */ + // @ts-ignore + public publish(record: java.util.logging.LogRecord): void; + /** + * Push any buffered output to the target Handler. + *

+ * The buffer is then cleared. + */ + // @ts-ignore + public push(): void; + /** + * Causes a flush on the target Handler. + *

+ * Note that the current contents of the MemoryHandler + * buffer are not written out. That requires a "push". + */ + // @ts-ignore + public flush(): void; + /** + * Close the Handler and free all associated resources. + * This will also close the target Handler. + */ + // @ts-ignore + public close(): void; + /** + * Set the pushLevel. After a LogRecord is copied + * into our internal buffer, if its level is greater than or equal to + * the pushLevel, then push will be called. + */ + // @ts-ignore + public setPushLevel(newLevel: java.util.logging.Level): void; + /** + * Get the pushLevel. + */ + // @ts-ignore + public getPushLevel(): java.util.logging.Level; + /** + * Check if this Handler would actually log a given + * LogRecord into its internal buffer. + *

+ * This method checks if the LogRecord has an appropriate level and + * whether it satisfies any Filter. However it does not + * check whether the LogRecord would result in a "push" of the + * buffer contents. It will return false if the LogRecord is null. + *

+ */ + // @ts-ignore + public isLoggable(record: java.util.logging.LogRecord): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.logging.SimpleFormatter.d.ts b/packages/types/dist/typings/jdk/java.util.logging.SimpleFormatter.d.ts new file mode 100644 index 00000000..6d7fcbb8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.logging.SimpleFormatter.d.ts @@ -0,0 +1,85 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace logging { + // @ts-ignore + class SimpleFormatter extends java.util.logging.Formatter { + // @ts-ignore + constructor() + /** + * Format the given LogRecord. + *

+ * The formatting can be customized by specifying the + * format string + * in the + * {@code java.util.logging.SimpleFormatter.format} property. + * The given {@code LogRecord} will be formatted as if by calling: + *

+                 * {@link String#format String.format}(format, date, source, logger, level, message, thrown);
+                 * 
+ * where the arguments are:
+ *
    + *
  1. {@code format} - the {@link java.util.Formatter + * java.util.Formatter} format string specified in the + * {@code java.util.logging.SimpleFormatter.format} property + * or the default format.
  2. + *
  3. {@code date} - a {@link Date} object representing + * {@linkplain LogRecord#getMillis event time} of the log record.
  4. + *
  5. {@code source} - a string representing the caller, if available; + * otherwise, the logger's name.
  6. + *
  7. {@code logger} - the logger's name.
  8. + *
  9. {@code level} - the {@linkplain Level#getLocalizedName + * log level}.
  10. + *
  11. {@code message} - the formatted log message + * returned from the {@link Formatter#formatMessage(LogRecord)} + * method. It uses {@link java.text.MessageFormat java.text} + * formatting and does not use the {@code java.util.Formatter + * format} argument.
  12. + *
  13. {@code thrown} - a string representing + * the {@linkplain LogRecord#getThrown throwable} + * associated with the log record and its backtrace + * beginning with a newline character, if any; + * otherwise, an empty string.
  14. + *
+ *

Some example formats:
+ *

    + *
  • {@code java.util.logging.SimpleFormatter.format="%4$s: %5$s [%1$tc]%n"} + *

    This prints 1 line with the log level ({@code 4$}), + * the log message ({@code 5$}) and the timestamp ({@code 1$}) in + * a square bracket. + *

    +                 * WARNING: warning message [Tue Mar 22 13:11:31 PDT 2011]
    +                 * 
  • + *
  • {@code java.util.logging.SimpleFormatter.format="%1$tc %2$s%n%4$s: %5$s%6$s%n"} + *

    This prints 2 lines where the first line includes + * the timestamp ({@code 1$}) and the source ({@code 2$}); + * the second line includes the log level ({@code 4$}) and + * the log message ({@code 5$}) followed with the throwable + * and its backtrace ({@code 6$}), if any: + *

    +                 * Tue Mar 22 13:11:31 PDT 2011 MyClass fatal
    +                 * SEVERE: several message with an exception
    +                 * java.lang.IllegalArgumentException: invalid argument
    +                 * at MyClass.mash(MyClass.java:9)
    +                 * at MyClass.crunch(MyClass.java:6)
    +                 * at MyClass.main(MyClass.java:3)
    +                 * 
  • + *
  • {@code java.util.logging.SimpleFormatter.format="%1$tb %1$td, %1$tY %1$tl:%1$tM:%1$tS %1$Tp %2$s%n%4$s: %5$s%n"} + *

    This prints 2 lines similar to the example above + * with a different date/time formatting and does not print + * the throwable and its backtrace: + *

    +                 * Mar 22, 2011 1:11:31 PM MyClass fatal
    +                 * SEVERE: several message with an exception
    +                 * 
  • + *
+ *

This method can also be overridden in a subclass. + * It is recommended to use the {@link Formatter#formatMessage} + * convenience method to localize and format the message field. + */ + // @ts-ignore + public format(record: java.util.logging.LogRecord): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.logging.SocketHandler.d.ts b/packages/types/dist/typings/jdk/java.util.logging.SocketHandler.d.ts new file mode 100644 index 00000000..ad1bca80 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.logging.SocketHandler.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace logging { + // @ts-ignore + class SocketHandler extends java.util.logging.StreamHandler { + /** + * Create a SocketHandler, using only LogManager properties + * (or their defaults). + */ + // @ts-ignore + constructor() + /** + * Construct a SocketHandler using a specified host and port. + * The SocketHandler is configured based on LogManager + * properties (or their default values) except that the given target host + * and port arguments are used. If the host argument is empty, but not + * null String then the localhost is used. + */ + // @ts-ignore + constructor(host: string, port: number) + /** + * Close this output stream. + */ + // @ts-ignore + public close(): void; + /** + * Format and publish a LogRecord. + */ + // @ts-ignore + public publish(record: java.util.logging.LogRecord): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.logging.StreamHandler.d.ts b/packages/types/dist/typings/jdk/java.util.logging.StreamHandler.d.ts new file mode 100644 index 00000000..5e02d07a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.logging.StreamHandler.d.ts @@ -0,0 +1,80 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace logging { + // @ts-ignore + class StreamHandler extends java.util.logging.Handler { + /** + * Create a StreamHandler, with no current output stream. + */ + // @ts-ignore + constructor() + /** + * Create a StreamHandler with a given Formatter + * and output stream. + *

+ */ + // @ts-ignore + constructor(out: java.io.OutputStream, formatter: java.util.logging.Formatter) + /** + * Change the output stream. + *

+ * If there is a current output stream then the Formatter's + * tail string is written and the stream is flushed and closed. + * Then the output stream is replaced with the new output stream. + */ + // @ts-ignore + protected setOutputStream(out: java.io.OutputStream): void; + /** + * Set (or change) the character encoding used by this Handler. + *

+ * The encoding should be set before any LogRecords are written + * to the Handler. + */ + // @ts-ignore + public setEncoding(encoding: string): void; + /** + * Format and publish a LogRecord. + *

+ * The StreamHandler first checks if there is an OutputStream + * and if the given LogRecord has at least the required log level. + * If not it silently returns. If so, it calls any associated + * Filter to check if the record should be published. If so, + * it calls its Formatter to format the record and then writes + * the result to the current output stream. + *

+ * If this is the first LogRecord to be written to a given + * OutputStream, the Formatter's "head" string is + * written to the stream before the LogRecord is written. + */ + // @ts-ignore + public publish(record: java.util.logging.LogRecord): void; + /** + * Check if this Handler would actually log a given LogRecord. + *

+ * This method checks if the LogRecord has an appropriate level and + * whether it satisfies any Filter. It will also return false if + * no output stream has been assigned yet or the LogRecord is null. + *

+ */ + // @ts-ignore + public isLoggable(record: java.util.logging.LogRecord): boolean; + /** + * Flush any buffered messages. + */ + // @ts-ignore + public flush(): void; + /** + * Close the current output stream. + *

+ * The Formatter's "tail" string is written to the stream before it + * is closed. In addition, if the Formatter's "head" string has not + * yet been written to the stream, it will be written before the + * "tail" string. + */ + // @ts-ignore + public close(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.logging.XMLFormatter.d.ts b/packages/types/dist/typings/jdk/java.util.logging.XMLFormatter.d.ts new file mode 100644 index 00000000..3c43041f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.logging.XMLFormatter.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace logging { + // @ts-ignore + class XMLFormatter extends java.util.logging.Formatter { + // @ts-ignore + constructor() + /** + * Format the given message to XML. + *

+ * This method can be overridden in a subclass. + * It is recommended to use the {@link Formatter#formatMessage} + * convenience method to localize and format the message field. + */ + // @ts-ignore + public format(record: java.util.logging.LogRecord): string; + /** + * Return the header string for a set of XML formatted records. + */ + // @ts-ignore + public getHead(h: java.util.logging.Handler): string; + /** + * Return the tail string for a set of XML formatted records. + */ + // @ts-ignore + public getTail(h: java.util.logging.Handler): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.prefs.AbstractPreferences.d.ts b/packages/types/dist/typings/jdk/java.util.prefs.AbstractPreferences.d.ts new file mode 100644 index 00000000..922849c7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.prefs.AbstractPreferences.d.ts @@ -0,0 +1,526 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace prefs { + // @ts-ignore + abstract class AbstractPreferences extends java.util.prefs.Preferences { + /** + * Creates a preference node with the specified parent and the specified + * name relative to its parent. + */ + // @ts-ignore + constructor(parent: java.util.prefs.AbstractPreferences, name: string) + // @ts-ignore + protected newNode: boolean; + // @ts-ignore + protected lock: java.lang.Object; + /** + * Implements the put method as per the specification in + * {@link Preferences#put(String,String)}. + *

This implementation checks that the key and value are legal, + * obtains this preference node's lock, checks that the node + * has not been removed, invokes {@link #putSpi(String,String)}, and if + * there are any preference change listeners, enqueues a notification + * event for processing by the event dispatch thread. + */ + // @ts-ignore + public put(key: string, value: string): void; + /** + * Implements the get method as per the specification in + * {@link Preferences#get(String,String)}. + *

This implementation first checks to see if key is + * null throwing a NullPointerException if this is + * the case. Then it obtains this preference node's lock, + * checks that the node has not been removed, invokes {@link + * #getSpi(String)}, and returns the result, unless the getSpi + * invocation returns null or throws an exception, in which case + * this invocation returns def. + */ + // @ts-ignore + public get(key: string, def: string): string; + /** + * Implements the remove(String) method as per the specification + * in {@link Preferences#remove(String)}. + *

This implementation obtains this preference node's lock, + * checks that the node has not been removed, invokes + * {@link #removeSpi(String)} and if there are any preference + * change listeners, enqueues a notification event for processing by the + * event dispatch thread. + */ + // @ts-ignore + public remove(key: string): void; + /** + * Implements the clear method as per the specification in + * {@link Preferences#clear()}. + *

This implementation obtains this preference node's lock, + * invokes {@link #keys()} to obtain an array of keys, and + * iterates over the array invoking {@link #remove(String)} on each key. + */ + // @ts-ignore + public clear(): void; + /** + * Implements the putInt method as per the specification in + * {@link Preferences#putInt(String,int)}. + *

This implementation translates value to a string with + * {@link Integer#toString(int)} and invokes {@link #put(String,String)} + * on the result. + */ + // @ts-ignore + public putInt(key: string, value: number): void; + /** + * Implements the getInt method as per the specification in + * {@link Preferences#getInt(String,int)}. + *

This implementation invokes {@link #get(String,String) get(key, + * null)}. If the return value is non-null, the implementation + * attempts to translate it to an int with + * {@link Integer#parseInt(String)}. If the attempt succeeds, the return + * value is returned by this method. Otherwise, def is returned. + */ + // @ts-ignore + public getInt(key: string, def: number): number; + /** + * Implements the putLong method as per the specification in + * {@link Preferences#putLong(String,long)}. + *

This implementation translates value to a string with + * {@link Long#toString(long)} and invokes {@link #put(String,String)} + * on the result. + */ + // @ts-ignore + public putLong(key: string, value: number): void; + /** + * Implements the getLong method as per the specification in + * {@link Preferences#getLong(String,long)}. + *

This implementation invokes {@link #get(String,String) get(key, + * null)}. If the return value is non-null, the implementation + * attempts to translate it to a long with + * {@link Long#parseLong(String)}. If the attempt succeeds, the return + * value is returned by this method. Otherwise, def is returned. + */ + // @ts-ignore + public getLong(key: string, def: number): number; + /** + * Implements the putBoolean method as per the specification in + * {@link Preferences#putBoolean(String,boolean)}. + *

This implementation translates value to a string with + * {@link String#valueOf(boolean)} and invokes {@link #put(String,String)} + * on the result. + */ + // @ts-ignore + public putBoolean(key: string, value: boolean): void; + /** + * Implements the getBoolean method as per the specification in + * {@link Preferences#getBoolean(String,boolean)}. + *

This implementation invokes {@link #get(String,String) get(key, + * null)}. If the return value is non-null, it is compared with + * "true" using {@link String#equalsIgnoreCase(String)}. If the + * comparison returns true, this invocation returns + * true. Otherwise, the original return value is compared with + * "false", again using {@link String#equalsIgnoreCase(String)}. + * If the comparison returns true, this invocation returns + * false. Otherwise, this invocation returns def. + */ + // @ts-ignore + public getBoolean(key: string, def: boolean): boolean; + /** + * Implements the putFloat method as per the specification in + * {@link Preferences#putFloat(String,float)}. + *

This implementation translates value to a string with + * {@link Float#toString(float)} and invokes {@link #put(String,String)} + * on the result. + */ + // @ts-ignore + public putFloat(key: string, value: number): void; + /** + * Implements the getFloat method as per the specification in + * {@link Preferences#getFloat(String,float)}. + *

This implementation invokes {@link #get(String,String) get(key, + * null)}. If the return value is non-null, the implementation + * attempts to translate it to an float with + * {@link Float#parseFloat(String)}. If the attempt succeeds, the return + * value is returned by this method. Otherwise, def is returned. + */ + // @ts-ignore + public getFloat(key: string, def: number): number; + /** + * Implements the putDouble method as per the specification in + * {@link Preferences#putDouble(String,double)}. + *

This implementation translates value to a string with + * {@link Double#toString(double)} and invokes {@link #put(String,String)} + * on the result. + */ + // @ts-ignore + public putDouble(key: string, value: number): void; + /** + * Implements the getDouble method as per the specification in + * {@link Preferences#getDouble(String,double)}. + *

This implementation invokes {@link #get(String,String) get(key, + * null)}. If the return value is non-null, the implementation + * attempts to translate it to an double with + * {@link Double#parseDouble(String)}. If the attempt succeeds, the return + * value is returned by this method. Otherwise, def is returned. + */ + // @ts-ignore + public getDouble(key: string, def: number): number; + /** + * Implements the putByteArray method as per the specification in + * {@link Preferences#putByteArray(String,byte[])}. + */ + // @ts-ignore + public putByteArray(key: string, value: number): void; + /** + * Implements the getByteArray method as per the specification in + * {@link Preferences#getByteArray(String,byte[])}. + */ + // @ts-ignore + public getByteArray(key: string, def: number): number[]; + /** + * Implements the keys method as per the specification in + * {@link Preferences#keys()}. + *

This implementation obtains this preference node's lock, checks that + * the node has not been removed and invokes {@link #keysSpi()}. + */ + // @ts-ignore + public keys(): java.lang.String[]; + /** + * Implements the children method as per the specification in + * {@link Preferences#childrenNames()}. + *

This implementation obtains this preference node's lock, checks that + * the node has not been removed, constructs a TreeSet initialized + * to the names of children already cached (the children in this node's + * "child-cache"), invokes {@link #childrenNamesSpi()}, and adds all of the + * returned child-names into the set. The elements of the tree set are + * dumped into a String array using the toArray method, + * and this array is returned. + */ + // @ts-ignore + public childrenNames(): java.lang.String[]; + /** + * Returns all known unremoved children of this node. + */ + // @ts-ignore + protected cachedChildren(): java.util.prefs.AbstractPreferences[]; + /** + * Implements the parent method as per the specification in + * {@link Preferences#parent()}. + *

This implementation obtains this preference node's lock, checks that + * the node has not been removed and returns the parent value that was + * passed to this node's constructor. + */ + // @ts-ignore + public parent(): java.util.prefs.Preferences; + /** + * Implements the node method as per the specification in + * {@link Preferences#node(String)}. + *

This implementation obtains this preference node's lock and checks + * that the node has not been removed. If path is "", + * this node is returned; if path is "/", this node's + * root is returned. If the first character in path is + * not '/', the implementation breaks path into + * tokens and recursively traverses the path from this node to the + * named node, "consuming" a name and a slash from path at + * each step of the traversal. At each step, the current node is locked + * and the node's child-cache is checked for the named node. If it is + * not found, the name is checked to make sure its length does not + * exceed MAX_NAME_LENGTH. Then the {@link #childSpi(String)} + * method is invoked, and the result stored in this node's child-cache. + * If the newly created Preferences object's {@link #newNode} + * field is true and there are any node change listeners, + * a notification event is enqueued for processing by the event dispatch + * thread. + *

When there are no more tokens, the last value found in the + * child-cache or returned by childSpi is returned by this + * method. If during the traversal, two "/" tokens occur + * consecutively, or the final token is "/" (rather than a name), + * an appropriate IllegalArgumentException is thrown. + *

If the first character of path is '/' + * (indicating an absolute path name) this preference node's + * lock is dropped prior to breaking path into tokens, and + * this method recursively traverses the path starting from the root + * (rather than starting from this node). The traversal is otherwise + * identical to the one described for relative path names. Dropping + * the lock on this node prior to commencing the traversal at the root + * node is essential to avoid the possibility of deadlock, as per the + * {@link #lock locking invariant}. + */ + // @ts-ignore + public node(path: string): java.util.prefs.Preferences; + /** + * Implements the nodeExists method as per the specification in + * {@link Preferences#nodeExists(String)}. + *

This implementation is very similar to {@link #node(String)}, + * except that {@link #getChild(String)} is used instead of {@link + * #childSpi(String)}. + */ + // @ts-ignore + public nodeExists(path: string): boolean; + /** + * Implements the removeNode() method as per the specification in + * {@link Preferences#removeNode()}. + *

This implementation checks to see that this node is the root; if so, + * it throws an appropriate exception. Then, it locks this node's parent, + * and calls a recursive helper method that traverses the subtree rooted at + * this node. The recursive method locks the node on which it was called, + * checks that it has not already been removed, and then ensures that all + * of its children are cached: The {@link #childrenNamesSpi()} method is + * invoked and each returned child name is checked for containment in the + * child-cache. If a child is not already cached, the {@link + * #childSpi(String)} method is invoked to create a Preferences + * instance for it, and this instance is put into the child-cache. Then + * the helper method calls itself recursively on each node contained in its + * child-cache. Next, it invokes {@link #removeNodeSpi()}, marks itself + * as removed, and removes itself from its parent's child-cache. Finally, + * if there are any node change listeners, it enqueues a notification + * event for processing by the event dispatch thread. + *

Note that the helper method is always invoked with all ancestors up + * to the "closest non-removed ancestor" locked. + */ + // @ts-ignore + public removeNode(): void; + /** + * Implements the name method as per the specification in + * {@link Preferences#name()}. + *

This implementation merely returns the name that was + * passed to this node's constructor. + */ + // @ts-ignore + public name(): string; + /** + * Implements the absolutePath method as per the specification in + * {@link Preferences#absolutePath()}. + *

This implementation merely returns the absolute path name that + * was computed at the time that this node was constructed (based on + * the name that was passed to this node's constructor, and the names + * that were passed to this node's ancestors' constructors). + */ + // @ts-ignore + public absolutePath(): string; + /** + * Implements the isUserNode method as per the specification in + * {@link Preferences#isUserNode()}. + *

This implementation compares this node's root node (which is stored + * in a private field) with the value returned by + * {@link Preferences#userRoot()}. If the two object references are + * identical, this method returns true. + */ + // @ts-ignore + public isUserNode(): boolean; + // @ts-ignore + public addPreferenceChangeListener(pcl: java.util.prefs.PreferenceChangeListener): void; + // @ts-ignore + public removePreferenceChangeListener(pcl: java.util.prefs.PreferenceChangeListener): void; + // @ts-ignore + public addNodeChangeListener(ncl: java.util.prefs.NodeChangeListener): void; + // @ts-ignore + public removeNodeChangeListener(ncl: java.util.prefs.NodeChangeListener): void; + /** + * Put the given key-value association into this preference node. It is + * guaranteed that key and value are non-null and of + * legal length. Also, it is guaranteed that this node has not been + * removed. (The implementor needn't check for any of these things.) + *

This method is invoked with the lock on this node held. + */ + // @ts-ignore + protected abstract putSpi(key: string, value: string): void; + /** + * Return the value associated with the specified key at this preference + * node, or null if there is no association for this key, or the + * association cannot be determined at this time. It is guaranteed that + * key is non-null. Also, it is guaranteed that this node has + * not been removed. (The implementor needn't check for either of these + * things.) + *

Generally speaking, this method should not throw an exception + * under any circumstances. If, however, if it does throw an exception, + * the exception will be intercepted and treated as a null + * return value. + *

This method is invoked with the lock on this node held. + */ + // @ts-ignore + protected abstract getSpi(key: string): string; + /** + * Remove the association (if any) for the specified key at this + * preference node. It is guaranteed that key is non-null. + * Also, it is guaranteed that this node has not been removed. + * (The implementor needn't check for either of these things.) + *

This method is invoked with the lock on this node held. + */ + // @ts-ignore + protected abstract removeSpi(key: string): void; + /** + * Removes this preference node, invalidating it and any preferences that + * it contains. The named child will have no descendants at the time this + * invocation is made (i.e., the {@link Preferences#removeNode()} method + * invokes this method repeatedly in a bottom-up fashion, removing each of + * a node's descendants before removing the node itself). + *

This method is invoked with the lock held on this node and its + * parent (and all ancestors that are being removed as a + * result of a single invocation to {@link Preferences#removeNode()}). + *

The removal of a node needn't become persistent until the + * flush method is invoked on this node (or an ancestor). + *

If this node throws a BackingStoreException, the exception + * will propagate out beyond the enclosing {@link #removeNode()} + * invocation. + */ + // @ts-ignore + protected abstract removeNodeSpi(): void; + /** + * Returns all of the keys that have an associated value in this + * preference node. (The returned array will be of size zero if + * this node has no preferences.) It is guaranteed that this node has not + * been removed. + *

This method is invoked with the lock on this node held. + *

If this node throws a BackingStoreException, the exception + * will propagate out beyond the enclosing {@link #keys()} invocation. + */ + // @ts-ignore + protected abstract keysSpi(): java.lang.String[]; + /** + * Returns the names of the children of this preference node. (The + * returned array will be of size zero if this node has no children.) + * This method need not return the names of any nodes already cached, + * but may do so without harm. + *

This method is invoked with the lock on this node held. + *

If this node throws a BackingStoreException, the exception + * will propagate out beyond the enclosing {@link #childrenNames()} + * invocation. + */ + // @ts-ignore + protected abstract childrenNamesSpi(): java.lang.String[]; + /** + * Returns the named child if it exists, or null if it does not. + * It is guaranteed that nodeName is non-null, non-empty, + * does not contain the slash character ('/'), and is no longer than + * {@link #MAX_NAME_LENGTH} characters. Also, it is guaranteed + * that this node has not been removed. (The implementor needn't check + * for any of these things if he chooses to override this method.) + *

Finally, it is guaranteed that the named node has not been returned + * by a previous invocation of this method or {@link #childSpi} after the + * last time that it was removed. In other words, a cached value will + * always be used in preference to invoking this method. (The implementor + * needn't maintain his own cache of previously returned children if he + * chooses to override this method.) + *

This implementation obtains this preference node's lock, invokes + * {@link #childrenNames()} to get an array of the names of this node's + * children, and iterates over the array comparing the name of each child + * with the specified node name. If a child node has the correct name, + * the {@link #childSpi(String)} method is invoked and the resulting + * node is returned. If the iteration completes without finding the + * specified name, null is returned. + */ + // @ts-ignore + protected getChild(nodeName: string): java.util.prefs.AbstractPreferences; + /** + * Returns the named child of this preference node, creating it if it does + * not already exist. It is guaranteed that name is non-null, + * non-empty, does not contain the slash character ('/'), and is no longer + * than {@link #MAX_NAME_LENGTH} characters. Also, it is guaranteed that + * this node has not been removed. (The implementor needn't check for any + * of these things.) + *

Finally, it is guaranteed that the named node has not been returned + * by a previous invocation of this method or {@link #getChild(String)} + * after the last time that it was removed. In other words, a cached + * value will always be used in preference to invoking this method. + * Subclasses need not maintain their own cache of previously returned + * children. + *

The implementer must ensure that the returned node has not been + * removed. If a like-named child of this node was previously removed, the + * implementer must return a newly constructed AbstractPreferences + * node; once removed, an AbstractPreferences node + * cannot be "resuscitated." + *

If this method causes a node to be created, this node is not + * guaranteed to be persistent until the flush method is + * invoked on this node or one of its ancestors (or descendants). + *

This method is invoked with the lock on this node held. + */ + // @ts-ignore + protected abstract childSpi(name: string): java.util.prefs.AbstractPreferences; + /** + * Returns the absolute path name of this preferences node. + */ + // @ts-ignore + public toString(): string; + /** + * Implements the sync method as per the specification in + * {@link Preferences#sync()}. + *

This implementation calls a recursive helper method that locks this + * node, invokes syncSpi() on it, unlocks this node, and recursively + * invokes this method on each "cached child." A cached child is a child + * of this node that has been created in this VM and not subsequently + * removed. In effect, this method does a depth first traversal of the + * "cached subtree" rooted at this node, calling syncSpi() on each node in + * the subTree while only that node is locked. Note that syncSpi() is + * invoked top-down. + */ + // @ts-ignore + public sync(): void; + /** + * This method is invoked with this node locked. The contract of this + * method is to synchronize any cached preferences stored at this node + * with any stored in the backing store. (It is perfectly possible that + * this node does not exist on the backing store, either because it has + * been deleted by another VM, or because it has not yet been created.) + * Note that this method should not synchronize the preferences in + * any subnodes of this node. If the backing store naturally syncs an + * entire subtree at once, the implementer is encouraged to override + * sync(), rather than merely overriding this method. + *

If this node throws a BackingStoreException, the exception + * will propagate out beyond the enclosing {@link #sync()} invocation. + */ + // @ts-ignore + protected abstract syncSpi(): void; + /** + * Implements the flush method as per the specification in + * {@link Preferences#flush()}. + *

This implementation calls a recursive helper method that locks this + * node, invokes flushSpi() on it, unlocks this node, and recursively + * invokes this method on each "cached child." A cached child is a child + * of this node that has been created in this VM and not subsequently + * removed. In effect, this method does a depth first traversal of the + * "cached subtree" rooted at this node, calling flushSpi() on each node in + * the subTree while only that node is locked. Note that flushSpi() is + * invoked top-down. + *

If this method is invoked on a node that has been removed with + * the {@link #removeNode()} method, flushSpi() is invoked on this node, + * but not on others. + */ + // @ts-ignore + public flush(): void; + /** + * This method is invoked with this node locked. The contract of this + * method is to force any cached changes in the contents of this + * preference node to the backing store, guaranteeing their persistence. + * (It is perfectly possible that this node does not exist on the backing + * store, either because it has been deleted by another VM, or because it + * has not yet been created.) Note that this method should not + * flush the preferences in any subnodes of this node. If the backing + * store naturally flushes an entire subtree at once, the implementer is + * encouraged to override flush(), rather than merely overriding this + * method. + *

If this node throws a BackingStoreException, the exception + * will propagate out beyond the enclosing {@link #flush()} invocation. + */ + // @ts-ignore + protected abstract flushSpi(): void; + /** + * Returns true iff this node (or an ancestor) has been + * removed with the {@link #removeNode()} method. This method + * locks this node prior to returning the contents of the private + * field used to track this state. + */ + // @ts-ignore + protected isRemoved(): boolean; + /** + * Implements the exportNode method as per the specification in + * {@link Preferences#exportNode(OutputStream)}. + */ + // @ts-ignore + public exportNode(os: java.io.OutputStream): void; + /** + * Implements the exportSubtree method as per the specification in + * {@link Preferences#exportSubtree(OutputStream)}. + */ + // @ts-ignore + public exportSubtree(os: java.io.OutputStream): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.prefs.BackingStoreException.d.ts b/packages/types/dist/typings/jdk/java.util.prefs.BackingStoreException.d.ts new file mode 100644 index 00000000..39b52581 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.prefs.BackingStoreException.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace prefs { + // @ts-ignore + class BackingStoreException extends java.lang.Exception { + /** + * Constructs a BackingStoreException with the specified detail message. + */ + // @ts-ignore + constructor(s: string) + /** + * Constructs a BackingStoreException with the specified cause. + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.prefs.InvalidPreferencesFormatException.d.ts b/packages/types/dist/typings/jdk/java.util.prefs.InvalidPreferencesFormatException.d.ts new file mode 100644 index 00000000..e552e28b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.prefs.InvalidPreferencesFormatException.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace prefs { + // @ts-ignore + class InvalidPreferencesFormatException extends java.lang.Exception { + /** + * Constructs an InvalidPreferencesFormatException with the specified + * cause. + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + /** + * Constructs an InvalidPreferencesFormatException with the specified + * detail message. + */ + // @ts-ignore + constructor(message: string) + /** + * Constructs an InvalidPreferencesFormatException with the specified + * detail message and cause. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.prefs.NodeChangeEvent.d.ts b/packages/types/dist/typings/jdk/java.util.prefs.NodeChangeEvent.d.ts new file mode 100644 index 00000000..d5381d54 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.prefs.NodeChangeEvent.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace prefs { + // @ts-ignore + class NodeChangeEvent extends java.util.EventObject { + /** + * Constructs a new NodeChangeEvent instance. + */ + // @ts-ignore + constructor(parent: java.util.prefs.Preferences, child: java.util.prefs.Preferences) + /** + * Returns the parent of the node that was added or removed. + */ + // @ts-ignore + public getParent(): java.util.prefs.Preferences; + /** + * Returns the node that was added or removed. + */ + // @ts-ignore + public getChild(): java.util.prefs.Preferences; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.prefs.NodeChangeListener.d.ts b/packages/types/dist/typings/jdk/java.util.prefs.NodeChangeListener.d.ts new file mode 100644 index 00000000..d62f24cb --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.prefs.NodeChangeListener.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace prefs { + // @ts-ignore + interface NodeChangeListener { + /** + * This method gets called when a child node is added. + */ + // @ts-ignore + childAdded(evt: java.util.prefs.NodeChangeEvent): void; + /** + * This method gets called when a child node is removed. + */ + // @ts-ignore + childRemoved(evt: java.util.prefs.NodeChangeEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.prefs.PreferenceChangeEvent.d.ts b/packages/types/dist/typings/jdk/java.util.prefs.PreferenceChangeEvent.d.ts new file mode 100644 index 00000000..386aafc7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.prefs.PreferenceChangeEvent.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace prefs { + // @ts-ignore + class PreferenceChangeEvent extends java.util.EventObject { + /** + * Constructs a new PreferenceChangeEvent instance. + */ + // @ts-ignore + constructor(node: java.util.prefs.Preferences, key: string, newValue: string) + /** + * Returns the preference node that emitted the event. + */ + // @ts-ignore + public getNode(): java.util.prefs.Preferences; + /** + * Returns the key of the preference that was changed. + */ + // @ts-ignore + public getKey(): string; + /** + * Returns the new value for the preference. + */ + // @ts-ignore + public getNewValue(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.prefs.PreferenceChangeListener.d.ts b/packages/types/dist/typings/jdk/java.util.prefs.PreferenceChangeListener.d.ts new file mode 100644 index 00000000..7fd6a460 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.prefs.PreferenceChangeListener.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace prefs { + // @ts-ignore + interface PreferenceChangeListener { + /** + * This method gets called when a preference is added, removed or when + * its value is changed. + *

+ */ + // @ts-ignore + preferenceChange(evt: java.util.prefs.PreferenceChangeEvent): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.prefs.Preferences.d.ts b/packages/types/dist/typings/jdk/java.util.prefs.Preferences.d.ts new file mode 100644 index 00000000..52d8982b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.prefs.Preferences.d.ts @@ -0,0 +1,529 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace prefs { + // @ts-ignore + abstract class Preferences extends java.lang.Object { + /** + * Sole constructor. (For invocation by subclass constructors, typically + * implicit.) + */ + // @ts-ignore + constructor() + // @ts-ignore + public static MAX_KEY_LENGTH: number; + // @ts-ignore + public static MAX_VALUE_LENGTH: number; + // @ts-ignore + public static MAX_NAME_LENGTH: number; + /** + * Returns the preference node from the calling user's preference tree + * that is associated (by convention) with the specified class's package. + * The convention is as follows: the absolute path name of the node is the + * fully qualified package name, preceded by a slash ('/'), and + * with each period ('.') replaced by a slash. For example the + * absolute path name of the node associated with the class + * com.acme.widget.Foo is /com/acme/widget. + *

This convention does not apply to the unnamed package, whose + * associated preference node is <unnamed>. This node + * is not intended for long term use, but for convenience in the early + * development of programs that do not yet belong to a package, and + * for "throwaway" programs. Valuable data should not be stored + * at this node as it is shared by all programs that use it. + *

A class Foo wishing to access preferences pertaining to its + * package can obtain a preference node as follows:

+                 * static Preferences prefs = Preferences.userNodeForPackage(Foo.class);
+                 * 
+ * This idiom obviates the need for using a string to describe the + * preferences node and decreases the likelihood of a run-time failure. + * (If the class name is misspelled, it will typically result in a + * compile-time error.) + *

Invoking this method will result in the creation of the returned + * node and its ancestors if they do not already exist. If the returned + * node did not exist prior to this call, this node and any ancestors that + * were created by this call are not guaranteed to become permanent until + * the flush method is called on the returned node (or one of its + * ancestors or descendants). + */ + // @ts-ignore + public static userNodeForPackage(c: java.lang.Class): java.util.prefs.Preferences; + /** + * Returns the preference node from the system preference tree that is + * associated (by convention) with the specified class's package. The + * convention is as follows: the absolute path name of the node is the + * fully qualified package name, preceded by a slash ('/'), and + * with each period ('.') replaced by a slash. For example the + * absolute path name of the node associated with the class + * com.acme.widget.Foo is /com/acme/widget. + *

This convention does not apply to the unnamed package, whose + * associated preference node is <unnamed>. This node + * is not intended for long term use, but for convenience in the early + * development of programs that do not yet belong to a package, and + * for "throwaway" programs. Valuable data should not be stored + * at this node as it is shared by all programs that use it. + *

A class Foo wishing to access preferences pertaining to its + * package can obtain a preference node as follows:

+                 * static Preferences prefs = Preferences.systemNodeForPackage(Foo.class);
+                 * 
+ * This idiom obviates the need for using a string to describe the + * preferences node and decreases the likelihood of a run-time failure. + * (If the class name is misspelled, it will typically result in a + * compile-time error.) + *

Invoking this method will result in the creation of the returned + * node and its ancestors if they do not already exist. If the returned + * node did not exist prior to this call, this node and any ancestors that + * were created by this call are not guaranteed to become permanent until + * the flush method is called on the returned node (or one of its + * ancestors or descendants). + */ + // @ts-ignore + public static systemNodeForPackage(c: java.lang.Class): java.util.prefs.Preferences; + /** + * Returns the root preference node for the calling user. + */ + // @ts-ignore + public static userRoot(): java.util.prefs.Preferences; + /** + * Returns the root preference node for the system. + */ + // @ts-ignore + public static systemRoot(): java.util.prefs.Preferences; + /** + * Associates the specified value with the specified key in this + * preference node. + */ + // @ts-ignore + public abstract put(key: string, value: string): void; + /** + * Returns the value associated with the specified key in this preference + * node. Returns the specified default if there is no value associated + * with the key, or the backing store is inaccessible. + *

Some implementations may store default values in their backing + * stores. If there is no value associated with the specified key + * but there is such a stored default, it is returned in + * preference to the specified default. + */ + // @ts-ignore + public abstract get(key: string, def: string): string; + /** + * Removes the value associated with the specified key in this preference + * node, if any. + *

If this implementation supports stored defaults, and there is + * such a default for the specified preference, the stored default will be + * "exposed" by this call, in the sense that it will be returned + * by a succeeding call to get. + */ + // @ts-ignore + public abstract remove(key: string): void; + /** + * Removes all of the preferences (key-value associations) in this + * preference node. This call has no effect on any descendants + * of this node. + *

If this implementation supports stored defaults, and this + * node in the preferences hierarchy contains any such defaults, + * the stored defaults will be "exposed" by this call, in the sense that + * they will be returned by succeeding calls to get. + */ + // @ts-ignore + public abstract clear(): void; + /** + * Associates a string representing the specified int value with the + * specified key in this preference node. The associated string is the + * one that would be returned if the int value were passed to + * {@link Integer#toString(int)}. This method is intended for use in + * conjunction with {@link #getInt}. + */ + // @ts-ignore + public abstract putInt(key: string, value: number): void; + /** + * Returns the int value represented by the string associated with the + * specified key in this preference node. The string is converted to + * an integer as by {@link Integer#parseInt(String)}. Returns the + * specified default if there is no value associated with the key, + * the backing store is inaccessible, or if + * Integer.parseInt(String) would throw a {@link + * NumberFormatException} if the associated value were passed. This + * method is intended for use in conjunction with {@link #putInt}. + *

If the implementation supports stored defaults and such a + * default exists, is accessible, and could be converted to an int + * with Integer.parseInt, this int is returned in preference to + * the specified default. + */ + // @ts-ignore + public abstract getInt(key: string, def: number): number; + /** + * Associates a string representing the specified long value with the + * specified key in this preference node. The associated string is the + * one that would be returned if the long value were passed to + * {@link Long#toString(long)}. This method is intended for use in + * conjunction with {@link #getLong}. + */ + // @ts-ignore + public abstract putLong(key: string, value: number): void; + /** + * Returns the long value represented by the string associated with the + * specified key in this preference node. The string is converted to + * a long as by {@link Long#parseLong(String)}. Returns the + * specified default if there is no value associated with the key, + * the backing store is inaccessible, or if + * Long.parseLong(String) would throw a {@link + * NumberFormatException} if the associated value were passed. This + * method is intended for use in conjunction with {@link #putLong}. + *

If the implementation supports stored defaults and such a + * default exists, is accessible, and could be converted to a long + * with Long.parseLong, this long is returned in preference to + * the specified default. + */ + // @ts-ignore + public abstract getLong(key: string, def: number): number; + /** + * Associates a string representing the specified boolean value with the + * specified key in this preference node. The associated string is + * "true" if the value is true, and "false" if it is + * false. This method is intended for use in conjunction with + * {@link #getBoolean}. + */ + // @ts-ignore + public abstract putBoolean(key: string, value: boolean): void; + /** + * Returns the boolean value represented by the string associated with the + * specified key in this preference node. Valid strings + * are "true", which represents true, and "false", which + * represents false. Case is ignored, so, for example, "TRUE" + * and "False" are also valid. This method is intended for use in + * conjunction with {@link #putBoolean}. + *

Returns the specified default if there is no value + * associated with the key, the backing store is inaccessible, or if the + * associated value is something other than "true" or + * "false", ignoring case. + *

If the implementation supports stored defaults and such a + * default exists and is accessible, it is used in preference to the + * specified default, unless the stored default is something other than + * "true" or "false", ignoring case, in which case the + * specified default is used. + */ + // @ts-ignore + public abstract getBoolean(key: string, def: boolean): boolean; + /** + * Associates a string representing the specified float value with the + * specified key in this preference node. The associated string is the + * one that would be returned if the float value were passed to + * {@link Float#toString(float)}. This method is intended for use in + * conjunction with {@link #getFloat}. + */ + // @ts-ignore + public abstract putFloat(key: string, value: number): void; + /** + * Returns the float value represented by the string associated with the + * specified key in this preference node. The string is converted to an + * integer as by {@link Float#parseFloat(String)}. Returns the specified + * default if there is no value associated with the key, the backing store + * is inaccessible, or if Float.parseFloat(String) would throw a + * {@link NumberFormatException} if the associated value were passed. + * This method is intended for use in conjunction with {@link #putFloat}. + *

If the implementation supports stored defaults and such a + * default exists, is accessible, and could be converted to a float + * with Float.parseFloat, this float is returned in preference to + * the specified default. + */ + // @ts-ignore + public abstract getFloat(key: string, def: number): number; + /** + * Associates a string representing the specified double value with the + * specified key in this preference node. The associated string is the + * one that would be returned if the double value were passed to + * {@link Double#toString(double)}. This method is intended for use in + * conjunction with {@link #getDouble}. + */ + // @ts-ignore + public abstract putDouble(key: string, value: number): void; + /** + * Returns the double value represented by the string associated with the + * specified key in this preference node. The string is converted to an + * integer as by {@link Double#parseDouble(String)}. Returns the specified + * default if there is no value associated with the key, the backing store + * is inaccessible, or if Double.parseDouble(String) would throw a + * {@link NumberFormatException} if the associated value were passed. + * This method is intended for use in conjunction with {@link #putDouble}. + *

If the implementation supports stored defaults and such a + * default exists, is accessible, and could be converted to a double + * with Double.parseDouble, this double is returned in preference + * to the specified default. + */ + // @ts-ignore + public abstract getDouble(key: string, def: number): number; + /** + * Associates a string representing the specified byte array with the + * specified key in this preference node. The associated string is + * the Base64 encoding of the byte array, as defined in RFC 2045, Section 6.8, + * with one minor change: the string will consist solely of characters + * from the Base64 Alphabet; it will not contain any newline + * characters. Note that the maximum length of the byte array is limited + * to three quarters of MAX_VALUE_LENGTH so that the length + * of the Base64 encoded String does not exceed MAX_VALUE_LENGTH. + * This method is intended for use in conjunction with + * {@link #getByteArray}. + */ + // @ts-ignore + public abstract putByteArray(key: string, value: number): void; + /** + * Returns the byte array value represented by the string associated with + * the specified key in this preference node. Valid strings are + * Base64 encoded binary data, as defined in RFC 2045, Section 6.8, + * with one minor change: the string must consist solely of characters + * from the Base64 Alphabet; no newline characters or + * extraneous characters are permitted. This method is intended for use + * in conjunction with {@link #putByteArray}. + *

Returns the specified default if there is no value + * associated with the key, the backing store is inaccessible, or if the + * associated value is not a valid Base64 encoded byte array + * (as defined above). + *

If the implementation supports stored defaults and such a + * default exists and is accessible, it is used in preference to the + * specified default, unless the stored default is not a valid Base64 + * encoded byte array (as defined above), in which case the + * specified default is used. + */ + // @ts-ignore + public abstract getByteArray(key: string, def: number): number[]; + /** + * Returns all of the keys that have an associated value in this + * preference node. (The returned array will be of size zero if + * this node has no preferences.) + *

If the implementation supports stored defaults and there + * are any such defaults at this node that have not been overridden, + * by explicit preferences, the defaults are returned in the array in + * addition to any explicit preferences. + */ + // @ts-ignore + public abstract keys(): java.lang.String[]; + /** + * Returns the names of the children of this preference node, relative to + * this node. (The returned array will be of size zero if this node has + * no children.) + */ + // @ts-ignore + public abstract childrenNames(): java.lang.String[]; + /** + * Returns the parent of this preference node, or null if this is + * the root. + */ + // @ts-ignore + public abstract parent(): java.util.prefs.Preferences; + /** + * Returns the named preference node in the same tree as this node, + * creating it and any of its ancestors if they do not already exist. + * Accepts a relative or absolute path name. Relative path names + * (which do not begin with the slash character ('/')) are + * interpreted relative to this preference node. + *

If the returned node did not exist prior to this call, this node and + * any ancestors that were created by this call are not guaranteed + * to become permanent until the flush method is called on + * the returned node (or one of its ancestors or descendants). + */ + // @ts-ignore + public abstract node(pathName: string): java.util.prefs.Preferences; + /** + * Returns true if the named preference node exists in the same tree + * as this node. Relative path names (which do not begin with the slash + * character ('/')) are interpreted relative to this preference + * node. + *

If this node (or an ancestor) has already been removed with the + * {@link #removeNode()} method, it is legal to invoke this method, + * but only with the path name ""; the invocation will return + * false. Thus, the idiom p.nodeExists("") may be + * used to test whether p has been removed. + */ + // @ts-ignore + public abstract nodeExists(pathName: string): boolean; + /** + * Removes this preference node and all of its descendants, invalidating + * any preferences contained in the removed nodes. Once a node has been + * removed, attempting any method other than {@link #name()}, + * {@link #absolutePath()}, {@link #isUserNode()}, {@link #flush()} or + * {@link #node(String) nodeExists("")} on the corresponding + * Preferences instance will fail with an + * IllegalStateException. (The methods defined on {@link Object} + * can still be invoked on a node after it has been removed; they will not + * throw IllegalStateException.) + *

The removal is not guaranteed to be persistent until the + * flush method is called on this node (or an ancestor). + *

If this implementation supports stored defaults, removing a + * node exposes any stored defaults at or below this node. Thus, a + * subsequent call to nodeExists on this node's path name may + * return true, and a subsequent call to node on this + * path name may return a (different) Preferences instance + * representing a non-empty collection of preferences and/or children. + */ + // @ts-ignore + public abstract removeNode(): void; + /** + * Returns this preference node's name, relative to its parent. + */ + // @ts-ignore + public abstract name(): string; + /** + * Returns this preference node's absolute path name. + */ + // @ts-ignore + public abstract absolutePath(): string; + /** + * Returns true if this preference node is in the user + * preference tree, false if it's in the system preference tree. + */ + // @ts-ignore + public abstract isUserNode(): boolean; + /** + * Returns a string representation of this preferences node, + * as if computed by the expression:(this.isUserNode() ? "User" : + * "System") + " Preference Node: " + this.absolutePath(). + */ + // @ts-ignore + public abstract toString(): string; + /** + * Forces any changes in the contents of this preference node and its + * descendants to the persistent store. Once this method returns + * successfully, it is safe to assume that all changes made in the + * subtree rooted at this node prior to the method invocation have become + * permanent. + *

Implementations are free to flush changes into the persistent store + * at any time. They do not need to wait for this method to be called. + *

When a flush occurs on a newly created node, it is made persistent, + * as are any ancestors (and descendants) that have yet to be made + * persistent. Note however that any preference value changes in + * ancestors are not guaranteed to be made persistent. + *

If this method is invoked on a node that has been removed with + * the {@link #removeNode()} method, flushSpi() is invoked on this node, + * but not on others. + */ + // @ts-ignore + public abstract flush(): void; + /** + * Ensures that future reads from this preference node and its + * descendants reflect any changes that were committed to the persistent + * store (from any VM) prior to the sync invocation. As a + * side-effect, forces any changes in the contents of this preference node + * and its descendants to the persistent store, as if the flush + * method had been invoked on this node. + */ + // @ts-ignore + public abstract sync(): void; + /** + * Registers the specified listener to receive preference change + * events for this preference node. A preference change event is + * generated when a preference is added to this node, removed from this + * node, or when the value associated with a preference is changed. + * (Preference change events are not generated by the {@link + * #removeNode()} method, which generates a node change event. + * Preference change events are generated by the clear + * method.) + *

Events are only guaranteed for changes made within the same JVM + * as the registered listener, though some implementations may generate + * events for changes made outside this JVM. Events may be generated + * before the changes have been made persistent. Events are not generated + * when preferences are modified in descendants of this node; a caller + * desiring such events must register with each descendant. + */ + // @ts-ignore + public abstract addPreferenceChangeListener(pcl: java.util.prefs.PreferenceChangeListener): void; + /** + * Removes the specified preference change listener, so it no longer + * receives preference change events. + */ + // @ts-ignore + public abstract removePreferenceChangeListener(pcl: java.util.prefs.PreferenceChangeListener): void; + /** + * Registers the specified listener to receive node change events + * for this node. A node change event is generated when a child node is + * added to or removed from this node. (A single {@link #removeNode()} + * invocation results in multiple node change events, one for every + * node in the subtree rooted at the removed node.) + *

Events are only guaranteed for changes made within the same JVM + * as the registered listener, though some implementations may generate + * events for changes made outside this JVM. Events may be generated + * before the changes have become permanent. Events are not generated + * when indirect descendants of this node are added or removed; a + * caller desiring such events must register with each descendant. + *

Few guarantees can be made regarding node creation. Because nodes + * are created implicitly upon access, it may not be feasible for an + * implementation to determine whether a child node existed in the backing + * store prior to access (for example, because the backing store is + * unreachable or cached information is out of date). Under these + * circumstances, implementations are neither required to generate node + * change events nor prohibited from doing so. + */ + // @ts-ignore + public abstract addNodeChangeListener(ncl: java.util.prefs.NodeChangeListener): void; + /** + * Removes the specified NodeChangeListener, so it no longer + * receives change events. + */ + // @ts-ignore + public abstract removeNodeChangeListener(ncl: java.util.prefs.NodeChangeListener): void; + /** + * Emits on the specified output stream an XML document representing all + * of the preferences contained in this node (but not its descendants). + * This XML document is, in effect, an offline backup of the node. + *

The XML document will have the following DOCTYPE declaration: + *

{@code
+                 * 
+                 * }
+ * The UTF-8 character encoding will be used. + *

This method is an exception to the general rule that the results of + * concurrently executing multiple methods in this class yields + * results equivalent to some serial execution. If the preferences + * at this node are modified concurrently with an invocation of this + * method, the exported preferences comprise a "fuzzy snapshot" of the + * preferences contained in the node; some of the concurrent modifications + * may be reflected in the exported data while others may not. + */ + // @ts-ignore + public abstract exportNode(os: java.io.OutputStream): void; + /** + * Emits an XML document representing all of the preferences contained + * in this node and all of its descendants. This XML document is, in + * effect, an offline backup of the subtree rooted at the node. + *

The XML document will have the following DOCTYPE declaration: + *

{@code
+                 * 
+                 * }
+ * The UTF-8 character encoding will be used. + *

This method is an exception to the general rule that the results of + * concurrently executing multiple methods in this class yields + * results equivalent to some serial execution. If the preferences + * or nodes in the subtree rooted at this node are modified concurrently + * with an invocation of this method, the exported preferences comprise a + * "fuzzy snapshot" of the subtree; some of the concurrent modifications + * may be reflected in the exported data while others may not. + */ + // @ts-ignore + public abstract exportSubtree(os: java.io.OutputStream): void; + /** + * Imports all of the preferences represented by the XML document on the + * specified input stream. The document may represent user preferences or + * system preferences. If it represents user preferences, the preferences + * will be imported into the calling user's preference tree (even if they + * originally came from a different user's preference tree). If any of + * the preferences described by the document inhabit preference nodes that + * do not exist, the nodes will be created. + *

The XML document must have the following DOCTYPE declaration: + *

{@code
+                 * 
+                 * }
+ * (This method is designed for use in conjunction with + * {@link #exportNode(OutputStream)} and + * {@link #exportSubtree(OutputStream)}. + *

This method is an exception to the general rule that the results of + * concurrently executing multiple methods in this class yields + * results equivalent to some serial execution. The method behaves + * as if implemented on top of the other public methods in this class, + * notably {@link #node(String)} and {@link #put(String, String)}. + */ + // @ts-ignore + public static importPreferences(is: java.io.InputStream): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.prefs.PreferencesFactory.d.ts b/packages/types/dist/typings/jdk/java.util.prefs.PreferencesFactory.d.ts new file mode 100644 index 00000000..302e9ca4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.prefs.PreferencesFactory.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace prefs { + // @ts-ignore + interface PreferencesFactory { + /** + * Returns the system root preference node. (Multiple calls on this + * method will return the same object reference.) + */ + // @ts-ignore + systemRoot(): java.util.prefs.Preferences; + /** + * Returns the user root preference node corresponding to the calling + * user. In a server, the returned value will typically depend on + * some implicit client-context. + */ + // @ts-ignore + userRoot(): java.util.prefs.Preferences; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.regex.MatchResult.d.ts b/packages/types/dist/typings/jdk/java.util.regex.MatchResult.d.ts new file mode 100644 index 00000000..09661182 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.regex.MatchResult.d.ts @@ -0,0 +1,81 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace regex { + // @ts-ignore + interface MatchResult { + /** + * Returns the start index of the match. + */ + // @ts-ignore + start(): number; + /** + * Returns the start index of the subsequence captured by the given group + * during this match. + *

Capturing groups are indexed from left + * to right, starting at one. Group zero denotes the entire pattern, so + * the expression m.start(0) is equivalent to + * m.start().

+ */ + // @ts-ignore + start(group: number): number; + /** + * Returns the offset after the last character matched. + */ + // @ts-ignore + end(): number; + /** + * Returns the offset after the last character of the subsequence + * captured by the given group during this match. + *

Capturing groups are indexed from left + * to right, starting at one. Group zero denotes the entire pattern, so + * the expression m.end(0) is equivalent to + * m.end().

+ */ + // @ts-ignore + end(group: number): number; + /** + * Returns the input subsequence matched by the previous match. + *

For a matcher m with input sequence s, + * the expressions m.group() and + * s.substring(m.start(), m.end()) + * are equivalent.

+ *

Note that some patterns, for example a*, match the empty + * string. This method will return the empty string when the pattern + * successfully matches the empty string in the input.

+ */ + // @ts-ignore + group(): string; + /** + * Returns the input subsequence captured by the given group during the + * previous match operation. + *

For a matcher m, input sequence s, and group index + * g, the expressions m.group(g) and + * s.substring(m.start(g), m.end(g)) + * are equivalent.

+ *

Capturing groups are indexed from left + * to right, starting at one. Group zero denotes the entire pattern, so + * the expression m.group(0) is equivalent to m.group(). + *

+ *

If the match was successful but the group specified failed to match + * any part of the input sequence, then null is returned. Note + * that some groups, for example (a*), match the empty string. + * This method will return the empty string when such a group successfully + * matches the empty string in the input.

+ */ + // @ts-ignore + group(group: number): string; + /** + * Returns the number of capturing groups in this match result's pattern. + *

Group zero denotes the entire pattern by convention. It is not + * included in this count. + *

Any non-negative integer smaller than or equal to the value + * returned by this method is guaranteed to be a valid group index for + * this matcher.

+ */ + // @ts-ignore + groupCount(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.regex.Matcher.d.ts b/packages/types/dist/typings/jdk/java.util.regex.Matcher.d.ts new file mode 100644 index 00000000..5b33366c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.regex.Matcher.d.ts @@ -0,0 +1,422 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace regex { + // @ts-ignore + class Matcher extends java.lang.Object { + /** + * Returns the pattern that is interpreted by this matcher. + */ + // @ts-ignore + public pattern(): java.util.regex.Pattern; + /** + * Returns the match state of this matcher as a {@link MatchResult}. + * The result is unaffected by subsequent operations performed upon this + * matcher. + */ + // @ts-ignore + public toMatchResult(): java.util.regex.MatchResult; + /** + * Changes the Pattern that this Matcher uses to + * find matches with. + *

This method causes this matcher to lose information + * about the groups of the last match that occurred. The + * matcher's position in the input is maintained and its + * last append position is unaffected.

+ */ + // @ts-ignore + public usePattern(newPattern: java.util.regex.Pattern): java.util.regex.Matcher; + /** + * Resets this matcher. + *

Resetting a matcher discards all of its explicit state information + * and sets its append position to zero. The matcher's region is set to the + * default region, which is its entire character sequence. The anchoring + * and transparency of this matcher's region boundaries are unaffected. + */ + // @ts-ignore + public reset(): java.util.regex.Matcher; + /** + * Resets this matcher with a new input sequence. + *

Resetting a matcher discards all of its explicit state information + * and sets its append position to zero. The matcher's region is set to + * the default region, which is its entire character sequence. The + * anchoring and transparency of this matcher's region boundaries are + * unaffected. + */ + // @ts-ignore + public reset(input: java.lang.CharSequence): java.util.regex.Matcher; + /** + * Returns the start index of the previous match. + */ + // @ts-ignore + public start(): number; + /** + * Returns the start index of the subsequence captured by the given group + * during the previous match operation. + *

Capturing groups are indexed from left + * to right, starting at one. Group zero denotes the entire pattern, so + * the expression m.start(0) is equivalent to + * m.start().

+ */ + // @ts-ignore + public start(group: number): number; + /** + * Returns the start index of the subsequence captured by the given + * named-capturing group during the + * previous match operation. + */ + // @ts-ignore + public start(name: string): number; + /** + * Returns the offset after the last character matched. + */ + // @ts-ignore + public end(): number; + /** + * Returns the offset after the last character of the subsequence + * captured by the given group during the previous match operation. + *

Capturing groups are indexed from left + * to right, starting at one. Group zero denotes the entire pattern, so + * the expression m.end(0) is equivalent to + * m.end().

+ */ + // @ts-ignore + public end(group: number): number; + /** + * Returns the offset after the last character of the subsequence + * captured by the given named-capturing + * group during the previous match operation. + */ + // @ts-ignore + public end(name: string): number; + /** + * Returns the input subsequence matched by the previous match. + *

For a matcher m with input sequence s, + * the expressions m.group() and + * s.substring(m.start(), m.end()) + * are equivalent.

+ *

Note that some patterns, for example a*, match the empty + * string. This method will return the empty string when the pattern + * successfully matches the empty string in the input.

+ */ + // @ts-ignore + public group(): string; + /** + * Returns the input subsequence captured by the given group during the + * previous match operation. + *

For a matcher m, input sequence s, and group index + * g, the expressions m.group(g) and + * s.substring(m.start(g), m.end(g)) + * are equivalent.

+ *

Capturing groups are indexed from left + * to right, starting at one. Group zero denotes the entire pattern, so + * the expression m.group(0) is equivalent to m.group(). + *

+ *

If the match was successful but the group specified failed to match + * any part of the input sequence, then null is returned. Note + * that some groups, for example (a*), match the empty string. + * This method will return the empty string when such a group successfully + * matches the empty string in the input.

+ */ + // @ts-ignore + public group(group: number): string; + /** + * Returns the input subsequence captured by the given + * named-capturing group during the previous + * match operation. + *

If the match was successful but the group specified failed to match + * any part of the input sequence, then null is returned. Note + * that some groups, for example (a*), match the empty string. + * This method will return the empty string when such a group successfully + * matches the empty string in the input.

+ */ + // @ts-ignore + public group(name: string): string; + /** + * Returns the number of capturing groups in this matcher's pattern. + *

Group zero denotes the entire pattern by convention. It is not + * included in this count. + *

Any non-negative integer smaller than or equal to the value + * returned by this method is guaranteed to be a valid group index for + * this matcher.

+ */ + // @ts-ignore + public groupCount(): number; + /** + * Attempts to match the entire region against the pattern. + *

If the match succeeds then more information can be obtained via the + * start, end, and group methods.

+ */ + // @ts-ignore + public matches(): boolean; + /** + * Attempts to find the next subsequence of the input sequence that matches + * the pattern. + *

This method starts at the beginning of this matcher's region, or, if + * a previous invocation of the method was successful and the matcher has + * not since been reset, at the first character not matched by the previous + * match. + *

If the match succeeds then more information can be obtained via the + * start, end, and group methods.

+ */ + // @ts-ignore + public find(): boolean; + /** + * Resets this matcher and then attempts to find the next subsequence of + * the input sequence that matches the pattern, starting at the specified + * index. + *

If the match succeeds then more information can be obtained via the + * start, end, and group methods, and subsequent + * invocations of the {@link #find()} method will start at the first + * character not matched by this match.

+ */ + // @ts-ignore + public find(start: number): boolean; + /** + * Attempts to match the input sequence, starting at the beginning of the + * region, against the pattern. + *

Like the {@link #matches matches} method, this method always starts + * at the beginning of the region; unlike that method, it does not + * require that the entire region be matched. + *

If the match succeeds then more information can be obtained via the + * start, end, and group methods.

+ */ + // @ts-ignore + public lookingAt(): boolean; + /** + * Returns a literal replacement String for the specified + * String. + * This method produces a String that will work + * as a literal replacement s in the + * appendReplacement method of the {@link Matcher} class. + * The String produced will match the sequence of characters + * in s treated as a literal sequence. Slashes ('\') and + * dollar signs ('$') will be given no special meaning. + */ + // @ts-ignore + public static quoteReplacement(s: string): string; + /** + * Implements a non-terminal append-and-replace step. + *

This method performs the following actions:

+ *
    + *
  1. It reads characters from the input sequence, starting at the + * append position, and appends them to the given string buffer. It + * stops after reading the last character preceding the previous match, + * that is, the character at index {@link + * #start()} - 1.

  2. + *
  3. It appends the given replacement string to the string buffer. + *

  4. + *
  5. It sets the append position of this matcher to the index of + * the last character matched, plus one, that is, to {@link #end()}. + *

  6. + *
+ *

The replacement string may contain references to subsequences + * captured during the previous match: Each occurrence of + * ${name} or $g + * will be replaced by the result of evaluating the corresponding + * {@link #group(String) group(name)} or {@link #group(int) group(g)} + * respectively. For $g, + * the first number after the $ is always treated as part of + * the group reference. Subsequent numbers are incorporated into g if + * they would form a legal group reference. Only the numerals '0' + * through '9' are considered as potential components of the group + * reference. If the second group matched the string "foo", for + * example, then passing the replacement string "$2bar" would + * cause "foobar" to be appended to the string buffer. A dollar + * sign ($) may be included as a literal in the replacement + * string by preceding it with a backslash (\$). + *

Note that backslashes (\) and dollar signs ($) in + * the replacement string may cause the results to be different than if it + * were being treated as a literal replacement string. Dollar signs may be + * treated as references to captured subsequences as described above, and + * backslashes are used to escape literal characters in the replacement + * string. + *

This method is intended to be used in a loop together with the + * {@link #appendTail appendTail} and {@link #find find} methods. The + * following code, for example, writes one dog two dogs in the + * yard to the standard-output stream:

+ *
+                 * Pattern p = Pattern.compile("cat");
+                 * Matcher m = p.matcher("one cat two cats in the yard");
+                 * StringBuffer sb = new StringBuffer();
+                 * while (m.find()) {
+                 * m.appendReplacement(sb, "dog");
+                 * }
+                 * m.appendTail(sb);
+                 * System.out.println(sb.toString());
+ */ + // @ts-ignore + public appendReplacement(sb: java.lang.StringBuffer, replacement: string): java.util.regex.Matcher; + /** + * Implements a terminal append-and-replace step. + *

This method reads characters from the input sequence, starting at + * the append position, and appends them to the given string buffer. It is + * intended to be invoked after one or more invocations of the {@link + * #appendReplacement appendReplacement} method in order to copy the + * remainder of the input sequence.

+ */ + // @ts-ignore + public appendTail(sb: java.lang.StringBuffer): java.lang.StringBuffer; + /** + * Replaces every subsequence of the input sequence that matches the + * pattern with the given replacement string. + *

This method first resets this matcher. It then scans the input + * sequence looking for matches of the pattern. Characters that are not + * part of any match are appended directly to the result string; each match + * is replaced in the result by the replacement string. The replacement + * string may contain references to captured subsequences as in the {@link + * #appendReplacement appendReplacement} method. + *

Note that backslashes (\) and dollar signs ($) in + * the replacement string may cause the results to be different than if it + * were being treated as a literal replacement string. Dollar signs may be + * treated as references to captured subsequences as described above, and + * backslashes are used to escape literal characters in the replacement + * string. + *

Given the regular expression a*b, the input + * "aabfooaabfooabfoob", and the replacement string + * "-", an invocation of this method on a matcher for that + * expression would yield the string "-foo-foo-foo-". + *

Invoking this method changes this matcher's state. If the matcher + * is to be used in further matching operations then it should first be + * reset.

+ */ + // @ts-ignore + public replaceAll(replacement: string): string; + /** + * Replaces the first subsequence of the input sequence that matches the + * pattern with the given replacement string. + *

This method first resets this matcher. It then scans the input + * sequence looking for a match of the pattern. Characters that are not + * part of the match are appended directly to the result string; the match + * is replaced in the result by the replacement string. The replacement + * string may contain references to captured subsequences as in the {@link + * #appendReplacement appendReplacement} method. + *

Note that backslashes (\) and dollar signs ($) in + * the replacement string may cause the results to be different than if it + * were being treated as a literal replacement string. Dollar signs may be + * treated as references to captured subsequences as described above, and + * backslashes are used to escape literal characters in the replacement + * string. + *

Given the regular expression dog, the input + * "zzzdogzzzdogzzz", and the replacement string + * "cat", an invocation of this method on a matcher for that + * expression would yield the string "zzzcatzzzdogzzz".

+ *

Invoking this method changes this matcher's state. If the matcher + * is to be used in further matching operations then it should first be + * reset.

+ */ + // @ts-ignore + public replaceFirst(replacement: string): string; + /** + * Sets the limits of this matcher's region. The region is the part of the + * input sequence that will be searched to find a match. Invoking this + * method resets the matcher, and then sets the region to start at the + * index specified by the start parameter and end at the + * index specified by the end parameter. + *

Depending on the transparency and anchoring being used (see + * {@link #useTransparentBounds useTransparentBounds} and + * {@link #useAnchoringBounds useAnchoringBounds}), certain constructs such + * as anchors may behave differently at or around the boundaries of the + * region. + */ + // @ts-ignore + public region(start: number, end: number): java.util.regex.Matcher; + /** + * Reports the start index of this matcher's region. The + * searches this matcher conducts are limited to finding matches + * within {@link #regionStart regionStart} (inclusive) and + * {@link #regionEnd regionEnd} (exclusive). + */ + // @ts-ignore + public regionStart(): number; + /** + * Reports the end index (exclusive) of this matcher's region. + * The searches this matcher conducts are limited to finding matches + * within {@link #regionStart regionStart} (inclusive) and + * {@link #regionEnd regionEnd} (exclusive). + */ + // @ts-ignore + public regionEnd(): number; + /** + * Queries the transparency of region bounds for this matcher. + *

This method returns true if this matcher uses + * transparent bounds, false if it uses opaque + * bounds. + *

See {@link #useTransparentBounds useTransparentBounds} for a + * description of transparent and opaque bounds. + *

By default, a matcher uses opaque region boundaries. + */ + // @ts-ignore + public hasTransparentBounds(): boolean; + /** + * Sets the transparency of region bounds for this matcher. + *

Invoking this method with an argument of true will set this + * matcher to use transparent bounds. If the boolean + * argument is false, then opaque bounds will be used. + *

Using transparent bounds, the boundaries of this + * matcher's region are transparent to lookahead, lookbehind, + * and boundary matching constructs. Those constructs can see beyond the + * boundaries of the region to see if a match is appropriate. + *

Using opaque bounds, the boundaries of this matcher's + * region are opaque to lookahead, lookbehind, and boundary matching + * constructs that may try to see beyond them. Those constructs cannot + * look past the boundaries so they will fail to match anything outside + * of the region. + *

By default, a matcher uses opaque bounds. + */ + // @ts-ignore + public useTransparentBounds(b: boolean): java.util.regex.Matcher; + /** + * Queries the anchoring of region bounds for this matcher. + *

This method returns true if this matcher uses + * anchoring bounds, false otherwise. + *

See {@link #useAnchoringBounds useAnchoringBounds} for a + * description of anchoring bounds. + *

By default, a matcher uses anchoring region boundaries. + */ + // @ts-ignore + public hasAnchoringBounds(): boolean; + /** + * Sets the anchoring of region bounds for this matcher. + *

Invoking this method with an argument of true will set this + * matcher to use anchoring bounds. If the boolean + * argument is false, then non-anchoring bounds will be + * used. + *

Using anchoring bounds, the boundaries of this + * matcher's region match anchors such as ^ and $. + *

Without anchoring bounds, the boundaries of this + * matcher's region will not match anchors such as ^ and $. + *

By default, a matcher uses anchoring region boundaries. + */ + // @ts-ignore + public useAnchoringBounds(b: boolean): java.util.regex.Matcher; + /** + *

Returns the string representation of this matcher. The + * string representation of a Matcher contains information + * that may be useful for debugging. The exact format is unspecified. + */ + // @ts-ignore + public toString(): string; + /** + *

Returns true if the end of input was hit by the search engine in + * the last match operation performed by this matcher. + *

When this method returns true, then it is possible that more input + * would have changed the result of the last search. + */ + // @ts-ignore + public hitEnd(): boolean; + /** + *

Returns true if more input could change a positive match into a + * negative one. + *

If this method returns true, and a match was found, then more + * input could cause the match to be lost. If this method returns false + * and a match was found, then more input might change the match but the + * match won't be lost. If a match was not found, then requireEnd has no + * meaning. + */ + // @ts-ignore + public requireEnd(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.regex.Pattern.d.ts b/packages/types/dist/typings/jdk/java.util.regex.Pattern.d.ts new file mode 100644 index 00000000..dae36ca0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.regex.Pattern.d.ts @@ -0,0 +1,185 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace regex { + // @ts-ignore + class Pattern extends java.lang.Object { + // @ts-ignore + public static UNIX_LINES: number; + // @ts-ignore + public static CASE_INSENSITIVE: number; + // @ts-ignore + public static COMMENTS: number; + // @ts-ignore + public static MULTILINE: number; + // @ts-ignore + public static LITERAL: number; + // @ts-ignore + public static DOTALL: number; + // @ts-ignore + public static UNICODE_CASE: number; + // @ts-ignore + public static CANON_EQ: number; + // @ts-ignore + public static UNICODE_CHARACTER_CLASS: number; + /** + * Compiles the given regular expression into a pattern. + */ + // @ts-ignore + public static compile(regex: string): java.util.regex.Pattern; + /** + * Compiles the given regular expression into a pattern with the given + * flags. + */ + // @ts-ignore + public static compile(regex: string, flags: number): java.util.regex.Pattern; + /** + * Returns the regular expression from which this pattern was compiled. + */ + // @ts-ignore + public pattern(): string; + /** + *

Returns the string representation of this pattern. This + * is the regular expression from which this pattern was + * compiled.

+ */ + // @ts-ignore + public toString(): string; + /** + * Creates a matcher that will match the given input against this pattern. + */ + // @ts-ignore + public matcher(input: java.lang.CharSequence): java.util.regex.Matcher; + /** + * Returns this pattern's match flags. + */ + // @ts-ignore + public flags(): number; + /** + * Compiles the given regular expression and attempts to match the given + * input against it. + *

An invocation of this convenience method of the form + *

+                 * Pattern.matches(regex, input);
+ * behaves in exactly the same way as the expression + *
+                 * Pattern.compile(regex).matcher(input).matches()
+ *

If a pattern is to be used multiple times, compiling it once and reusing + * it will be more efficient than invoking this method each time.

+ */ + // @ts-ignore + public static matches(regex: string, input: java.lang.CharSequence): boolean; + /** + * Splits the given input sequence around matches of this pattern. + *

The array returned by this method contains each substring of the + * input sequence that is terminated by another subsequence that matches + * this pattern or is terminated by the end of the input sequence. The + * substrings in the array are in the order in which they occur in the + * input. If this pattern does not match any subsequence of the input then + * the resulting array has just one element, namely the input sequence in + * string form. + *

When there is a positive-width match at the beginning of the input + * sequence then an empty leading substring is included at the beginning + * of the resulting array. A zero-width match at the beginning however + * never produces such empty leading substring. + *

The limit parameter controls the number of times the + * pattern is applied and therefore affects the length of the resulting + * array. If the limit n is greater than zero then the pattern + * will be applied at most n - 1 times, the array's + * length will be no greater than n, and the array's last entry + * will contain all input beyond the last matched delimiter. If n + * is non-positive then the pattern will be applied as many times as + * possible and the array can have any length. If n is zero then + * the pattern will be applied as many times as possible, the array can + * have any length, and trailing empty strings will be discarded. + *

The input "boo:and:foo", for example, yields the following + * results with these parameters: + *

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Regex    Limit    Result    
:2{ "boo", "and:foo" }
:5{ "boo", "and", "foo" }
:-2{ "boo", "and", "foo" }
o5{ "b", "", ":and:f", "", "" }
o-2{ "b", "", ":and:f", "", "" }
o0{ "b", "", ":and:f" }
+ */ + // @ts-ignore + public split(input: java.lang.CharSequence, limit: number): java.lang.String[]; + /** + * Splits the given input sequence around matches of this pattern. + *

This method works as if by invoking the two-argument {@link + * #split(java.lang.CharSequence, int) split} method with the given input + * sequence and a limit argument of zero. Trailing empty strings are + * therefore not included in the resulting array.

+ *

The input "boo:and:foo", for example, yields the following + * results with these expressions: + *

+ * + * + * + * + * + * + *
Regex    Result
:{ "boo", "and", "foo" }
o{ "b", "", ":and:f" }
+ */ + // @ts-ignore + public split(input: java.lang.CharSequence): java.lang.String[]; + /** + * Returns a literal pattern String for the specified + * String. + *

This method produces a String that can be used to + * create a Pattern that would match the string + * s as if it were a literal pattern.

Metacharacters + * or escape sequences in the input sequence will be given no special + * meaning. + */ + // @ts-ignore + public static quote(s: string): string; + /** + * Creates a predicate which can be used to match a string. + */ + // @ts-ignore + public asPredicate(): java.util.function$.Predicate; + /** + * Creates a stream from the given input sequence around matches of this + * pattern. + *

The stream returned by this method contains each substring of the + * input sequence that is terminated by another subsequence that matches + * this pattern or is terminated by the end of the input sequence. The + * substrings in the stream are in the order in which they occur in the + * input. Trailing empty strings will be discarded and not encountered in + * the stream. + *

If this pattern does not match any subsequence of the input then + * the resulting stream has just one element, namely the input sequence in + * string form. + *

When there is a positive-width match at the beginning of the input + * sequence then an empty leading substring is included at the beginning + * of the stream. A zero-width match at the beginning however never produces + * such empty leading substring. + *

If the input sequence is mutable, it must remain constant during the + * execution of the terminal stream operation. Otherwise, the result of the + * terminal stream operation is undefined. + */ + // @ts-ignore + public splitAsStream(input: java.lang.CharSequence): java.util.stream.Stream; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.regex.PatternSyntaxException.d.ts b/packages/types/dist/typings/jdk/java.util.regex.PatternSyntaxException.d.ts new file mode 100644 index 00000000..256771e3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.regex.PatternSyntaxException.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace regex { + // @ts-ignore + class PatternSyntaxException extends java.lang.IllegalArgumentException { + /** + * Constructs a new instance of this class. + */ + // @ts-ignore + constructor(desc: string, regex: string, index: number) + /** + * Retrieves the error index. + */ + // @ts-ignore + public getIndex(): number; + /** + * Retrieves the description of the error. + */ + // @ts-ignore + public getDescription(): string; + /** + * Retrieves the erroneous regular-expression pattern. + */ + // @ts-ignore + public getPattern(): string; + /** + * Returns a multi-line string containing the description of the syntax + * error and its index, the erroneous regular-expression pattern, and a + * visual indication of the error index within the pattern. + */ + // @ts-ignore + public getMessage(): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.spi.CalendarDataProvider.d.ts b/packages/types/dist/typings/jdk/java.util.spi.CalendarDataProvider.d.ts new file mode 100644 index 00000000..fd592eeb --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.spi.CalendarDataProvider.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace spi { + // @ts-ignore + abstract class CalendarDataProvider extends java.util.spi.LocaleServiceProvider { + /** + * Sole constructor. (For invocation by subclass constructors, typically + * implicit.) + */ + // @ts-ignore + constructor() + /** + * Returns the first day of a week in the given {@code locale}. This + * information is required by {@link Calendar} to support operations on the + * week-related calendar fields. + */ + // @ts-ignore + public abstract getFirstDayOfWeek(locale: java.util.Locale): number; + /** + * Returns the minimal number of days required in the first week of a + * year. This information is required by {@link Calendar} to determine the + * first week of a year. Refer to the description of how {@code Calendar} determines + * the first week. + */ + // @ts-ignore + public abstract getMinimalDaysInFirstWeek(locale: java.util.Locale): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.spi.CalendarNameProvider.d.ts b/packages/types/dist/typings/jdk/java.util.spi.CalendarNameProvider.d.ts new file mode 100644 index 00000000..7c2cec93 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.spi.CalendarNameProvider.d.ts @@ -0,0 +1,69 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace spi { + // @ts-ignore + abstract class CalendarNameProvider extends java.util.spi.LocaleServiceProvider { + /** + * Sole constructor. (For invocation by subclass constructors, typically + * implicit.) + */ + // @ts-ignore + constructor() + /** + * Returns the string representation (display name) of the calendar + * field value in the given style and + * locale. If no string representation is + * applicable, null is returned. + *

{@code field} is a {@code Calendar} field index, such as {@link + * Calendar#MONTH}. The time zone fields, {@link Calendar#ZONE_OFFSET} and + * {@link Calendar#DST_OFFSET}, are not supported by this + * method. {@code null} must be returned if any time zone fields are + * specified. + *

{@code value} is the numeric representation of the {@code field} value. + * For example, if {@code field} is {@link Calendar#DAY_OF_WEEK}, the valid + * values are {@link Calendar#SUNDAY} to {@link Calendar#SATURDAY} + * (inclusive). + *

{@code style} gives the style of the string representation. It is one + * of {@link Calendar#SHORT_FORMAT} ({@link Calendar#SHORT SHORT}), + * {@link Calendar#SHORT_STANDALONE}, {@link Calendar#LONG_FORMAT} + * ({@link Calendar#LONG LONG}), {@link Calendar#LONG_STANDALONE}, + * {@link Calendar#NARROW_FORMAT}, or {@link Calendar#NARROW_STANDALONE}. + *

For example, the following call will return {@code "Sunday"}. + *

+                 * getDisplayName("gregory", Calendar.DAY_OF_WEEK, Calendar.SUNDAY,
+                 * Calendar.LONG_STANDALONE, Locale.ENGLISH);
+                 * 
+ */ + // @ts-ignore + public abstract getDisplayName(calendarType: string, field: number, value: number, style: number, locale: java.util.Locale): string; + /** + * Returns a {@code Map} containing all string representations (display + * names) of the {@code Calendar} {@code field} in the given {@code style} + * and {@code locale} and their corresponding field values. + *

{@code field} is a {@code Calendar} field index, such as {@link + * Calendar#MONTH}. The time zone fields, {@link Calendar#ZONE_OFFSET} and + * {@link Calendar#DST_OFFSET}, are not supported by this + * method. {@code null} must be returned if any time zone fields are specified. + *

{@code style} gives the style of the string representation. It must be + * one of {@link Calendar#ALL_STYLES}, {@link Calendar#SHORT_FORMAT} ({@link + * Calendar#SHORT SHORT}), {@link Calendar#SHORT_STANDALONE}, {@link + * Calendar#LONG_FORMAT} ({@link Calendar#LONG LONG}), {@link + * Calendar#LONG_STANDALONE}, {@link Calendar#NARROW_FORMAT}, or + * {@link Calendar#NARROW_STANDALONE}. Note that narrow names may + * not be unique due to use of single characters, such as "S" for Sunday + * and Saturday, and that no narrow names are included in that case. + *

For example, the following call will return a {@code Map} containing + * {@code "January"} to {@link Calendar#JANUARY}, {@code "Jan"} to {@link + * Calendar#JANUARY}, {@code "February"} to {@link Calendar#FEBRUARY}, + * {@code "Feb"} to {@link Calendar#FEBRUARY}, and so on. + *

+                 * getDisplayNames("gregory", Calendar.MONTH, Calendar.ALL_STYLES, Locale.ENGLISH);
+                 * 
+ */ + // @ts-ignore + public abstract getDisplayNames(calendarType: string, field: number, style: number, locale: java.util.Locale): java.util.Map; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.spi.CurrencyNameProvider.d.ts b/packages/types/dist/typings/jdk/java.util.spi.CurrencyNameProvider.d.ts new file mode 100644 index 00000000..a0280085 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.spi.CurrencyNameProvider.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace spi { + // @ts-ignore + abstract class CurrencyNameProvider extends java.util.spi.LocaleServiceProvider { + /** + * Sole constructor. (For invocation by subclass constructors, typically + * implicit.) + */ + // @ts-ignore + constructor() + /** + * Gets the symbol of the given currency code for the specified locale. + * For example, for "USD" (US Dollar), the symbol is "$" if the specified + * locale is the US, while for other locales it may be "US$". If no + * symbol can be determined, null should be returned. + */ + // @ts-ignore + public abstract getSymbol(currencyCode: string, locale: java.util.Locale): string; + /** + * Returns a name for the currency that is appropriate for display to the + * user. The default implementation returns null. + */ + // @ts-ignore + public getDisplayName(currencyCode: string, locale: java.util.Locale): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.spi.LocaleNameProvider.d.ts b/packages/types/dist/typings/jdk/java.util.spi.LocaleNameProvider.d.ts new file mode 100644 index 00000000..ec1170c8 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.spi.LocaleNameProvider.d.ts @@ -0,0 +1,63 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace spi { + // @ts-ignore + abstract class LocaleNameProvider extends java.util.spi.LocaleServiceProvider { + /** + * Sole constructor. (For invocation by subclass constructors, typically + * implicit.) + */ + // @ts-ignore + constructor() + /** + * Returns a localized name for the given + * IETF BCP47 language code and the given locale that is appropriate for + * display to the user. + * For example, if languageCode is "fr" and locale + * is en_US, getDisplayLanguage() will return "French"; if languageCode + * is "en" and locale is fr_FR, getDisplayLanguage() will return "anglais". + * If the name returned cannot be localized according to locale, + * (say, the provider does not have a Japanese name for Croatian), + * this method returns null. + */ + // @ts-ignore + public abstract getDisplayLanguage(languageCode: string, locale: java.util.Locale): string; + /** + * Returns a localized name for the given + * IETF BCP47 script code and the given locale that is appropriate for + * display to the user. + * For example, if scriptCode is "Latn" and locale + * is en_US, getDisplayScript() will return "Latin"; if scriptCode + * is "Cyrl" and locale is fr_FR, getDisplayScript() will return "cyrillique". + * If the name returned cannot be localized according to locale, + * (say, the provider does not have a Japanese name for Cyrillic), + * this method returns null. The default implementation returns null. + */ + // @ts-ignore + public getDisplayScript(scriptCode: string, locale: java.util.Locale): string; + /** + * Returns a localized name for the given + * IETF BCP47 region code (either ISO 3166 country code or UN M.49 area + * codes) and the given locale that is appropriate for display to the user. + * For example, if countryCode is "FR" and locale + * is en_US, getDisplayCountry() will return "France"; if countryCode + * is "US" and locale is fr_FR, getDisplayCountry() will return "Etats-Unis". + * If the name returned cannot be localized according to locale, + * (say, the provider does not have a Japanese name for Croatia), + * this method returns null. + */ + // @ts-ignore + public abstract getDisplayCountry(countryCode: string, locale: java.util.Locale): string; + /** + * Returns a localized name for the given variant code and the given locale that + * is appropriate for display to the user. + * If the name returned cannot be localized according to locale, + * this method returns null. + */ + // @ts-ignore + public abstract getDisplayVariant(variant: string, locale: java.util.Locale): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.spi.LocaleServiceProvider.d.ts b/packages/types/dist/typings/jdk/java.util.spi.LocaleServiceProvider.d.ts new file mode 100644 index 00000000..65a1ecbe --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.spi.LocaleServiceProvider.d.ts @@ -0,0 +1,45 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace spi { + // @ts-ignore + abstract class LocaleServiceProvider extends java.lang.Object { + /** + * Sole constructor. (For invocation by subclass constructors, typically + * implicit.) + */ + // @ts-ignore + constructor() + /** + * Returns an array of all locales for which this locale service provider + * can provide localized objects or names. This information is used to + * compose {@code getAvailableLocales()} values of the locale-dependent + * services, such as {@code DateFormat.getAvailableLocales()}. + *

The array returned by this method should not include two or more + * {@code Locale} objects only differing in their extensions. + */ + // @ts-ignore + public abstract getAvailableLocales(): java.util.Locale[]; + /** + * Returns {@code true} if the given {@code locale} is supported by + * this locale service provider. The given {@code locale} may contain + * extensions that should be + * taken into account for the support determination. + *

The default implementation returns {@code true} if the given {@code locale} + * is equal to any of the available {@code Locale}s returned by + * {@link #getAvailableLocales()} with ignoring any extensions in both the + * given {@code locale} and the available locales. Concrete locale service + * provider implementations should override this method if those + * implementations are {@code Locale} extensions-aware. For example, + * {@code DecimalFormatSymbolsProvider} implementations will need to check + * extensions in the given {@code locale} to see if any numbering system is + * specified and can be supported. However, {@code CollatorProvider} + * implementations may not be affected by any particular numbering systems, + * and in that case, extensions for numbering systems should be ignored. + */ + // @ts-ignore + public isSupportedLocale(locale: java.util.Locale): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.spi.ResourceBundleControlProvider.d.ts b/packages/types/dist/typings/jdk/java.util.spi.ResourceBundleControlProvider.d.ts new file mode 100644 index 00000000..9dd87ddd --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.spi.ResourceBundleControlProvider.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace spi { + // @ts-ignore + interface ResourceBundleControlProvider { + /** + * Returns a {@code ResourceBundle.Control} instance that is used + * to handle resource bundle loading for the given {@code + * baseName}. This method must return {@code null} if the given + * {@code baseName} isn't handled by this provider. + */ + // @ts-ignore + getControl(baseName: string): java.util.ResourceBundle.Control; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.spi.TimeZoneNameProvider.d.ts b/packages/types/dist/typings/jdk/java.util.spi.TimeZoneNameProvider.d.ts new file mode 100644 index 00000000..8b322336 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.spi.TimeZoneNameProvider.d.ts @@ -0,0 +1,45 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace spi { + // @ts-ignore + abstract class TimeZoneNameProvider extends java.util.spi.LocaleServiceProvider { + /** + * Sole constructor. (For invocation by subclass constructors, typically + * implicit.) + */ + // @ts-ignore + constructor() + /** + * Returns a name for the given time zone ID that's suitable for + * presentation to the user in the specified locale. The given time + * zone ID is "GMT" or one of the names defined using "Zone" entries + * in the "tz database", a public domain time zone database at + * ftp://elsie.nci.nih.gov/pub/. + * The data of this database is contained in a file whose name starts with + * "tzdata", and the specification of the data format is part of the zic.8 + * man page, which is contained in a file whose name starts with "tzcode". + *

+ * If daylight is true, the method should return a name + * appropriate for daylight saving time even if the specified time zone + * has not observed daylight saving time in the past. + */ + // @ts-ignore + public abstract getDisplayName(ID: string, daylight: boolean, style: number, locale: java.util.Locale): string; + /** + * Returns a generic name for the given time zone {@code ID} that's suitable + * for presentation to the user in the specified {@code locale}. Generic + * time zone names are neutral from standard time and daylight saving + * time. For example, "PT" is the short generic name of time zone ID {@code + * America/Los_Angeles}, while its short standard time and daylight saving + * time names are "PST" and "PDT", respectively. Refer to + * {@link #getDisplayName(String, boolean, int, Locale) getDisplayName} + * for valid time zone IDs. + *

The default implementation of this method returns {@code null}. + */ + // @ts-ignore + public getGenericDisplayName(ID: string, style: number, locale: java.util.Locale): string; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.stream.BaseStream.d.ts b/packages/types/dist/typings/jdk/java.util.stream.BaseStream.d.ts new file mode 100644 index 00000000..7e903f2b --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.stream.BaseStream.d.ts @@ -0,0 +1,81 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace stream { + // @ts-ignore + interface BaseStream { + /** + * Returns an iterator for the elements of this stream. + *

This is a terminal + * operation. + */ + // @ts-ignore + iterator(): java.util.Iterator; + /** + * Returns a spliterator for the elements of this stream. + *

This is a terminal + * operation. + */ + // @ts-ignore + spliterator(): java.util.Spliterator; + /** + * Returns whether this stream, if a terminal operation were to be executed, + * would execute in parallel. Calling this method after invoking an + * terminal stream operation method may yield unpredictable results. + */ + // @ts-ignore + isParallel(): boolean; + /** + * Returns an equivalent stream that is sequential. May return + * itself, either because the stream was already sequential, or because + * the underlying stream state was modified to be sequential. + *

This is an intermediate + * operation. + */ + // @ts-ignore + sequential(): java.util.stream.BaseStream; + /** + * Returns an equivalent stream that is parallel. May return + * itself, either because the stream was already parallel, or because + * the underlying stream state was modified to be parallel. + *

This is an intermediate + * operation. + */ + // @ts-ignore + parallel(): java.util.stream.BaseStream; + /** + * Returns an equivalent stream that is + * unordered. May return + * itself, either because the stream was already unordered, or because + * the underlying stream state was modified to be unordered. + *

This is an intermediate + * operation. + */ + // @ts-ignore + unordered(): java.util.stream.BaseStream; + /** + * Returns an equivalent stream with an additional close handler. Close + * handlers are run when the {@link #close()} method + * is called on the stream, and are executed in the order they were + * added. All close handlers are run, even if earlier close handlers throw + * exceptions. If any close handler throws an exception, the first + * exception thrown will be relayed to the caller of {@code close()}, with + * any remaining exceptions added to that exception as suppressed exceptions + * (unless one of the remaining exceptions is the same exception as the + * first exception, since an exception cannot suppress itself.) May + * return itself. + *

This is an intermediate + * operation. + */ + // @ts-ignore + onClose(closeHandler: java.lang.Runnable): java.util.stream.BaseStream; + /** + * Closes this stream, causing all close handlers for this stream pipeline + * to be called. + */ + // @ts-ignore + close(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.stream.Collector.Characteristics.d.ts b/packages/types/dist/typings/jdk/java.util.stream.Collector.Characteristics.d.ts new file mode 100644 index 00000000..0f39ece9 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.stream.Collector.Characteristics.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace stream { + namespace Collector { + // @ts-ignore + class Characteristics extends java.lang.Enum { + // @ts-ignore + public static CONCURRENT: java.util.stream.Collector.Characteristics; + // @ts-ignore + public static UNORDERED: java.util.stream.Collector.Characteristics; + // @ts-ignore + public static IDENTITY_FINISH: java.util.stream.Collector.Characteristics; + // @ts-ignore + public static values(): java.util.stream.Collector.Characteristics[]; + // @ts-ignore + public static valueOf(name: string): java.util.stream.Collector.Characteristics; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.stream.Collector.d.ts b/packages/types/dist/typings/jdk/java.util.stream.Collector.d.ts new file mode 100644 index 00000000..a6491dbf --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.stream.Collector.d.ts @@ -0,0 +1,56 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace stream { + // @ts-ignore + interface Collector { + /** + * A function that creates and returns a new mutable result container. + */ + // @ts-ignore + supplier(): java.util.function$.Supplier; + /** + * A function that folds a value into a mutable result container. + */ + // @ts-ignore + accumulator(): java.util.function$.BiConsumer; + /** + * A function that accepts two partial results and merges them. The + * combiner function may fold state from one argument into the other and + * return that, or may return a new result container. + */ + // @ts-ignore + combiner(): java.util.function$.BinaryOperator; + /** + * Perform the final transformation from the intermediate accumulation type + * {@code A} to the final result type {@code R}. + *

If the characteristic {@code IDENTITY_TRANSFORM} is + * set, this function may be presumed to be an identity transform with an + * unchecked cast from {@code A} to {@code R}. + */ + // @ts-ignore + finisher(): java.util.function$.Function; + /** + * Returns a {@code Set} of {@code Collector.Characteristics} indicating + * the characteristics of this Collector. This set should be immutable. + */ + // @ts-ignore + characteristics(): java.util.Set; + /** + * Returns a new {@code Collector} described by the given {@code supplier}, + * {@code accumulator}, and {@code combiner} functions. The resulting + * {@code Collector} has the {@code Collector.Characteristics.IDENTITY_FINISH} + * characteristic. + */ + // @ts-ignore + of(supplier: java.util.function$.Supplier, accumulator: java.util.function$.BiConsumer, combiner: java.util.function$.BinaryOperator, characteristics: java.util.stream.Collector.Characteristics): java.util.stream.Collector; + /** + * Returns a new {@code Collector} described by the given {@code supplier}, + * {@code accumulator}, {@code combiner}, and {@code finisher} functions. + */ + // @ts-ignore + of(supplier: java.util.function$.Supplier, accumulator: java.util.function$.BiConsumer, combiner: java.util.function$.BinaryOperator, finisher: java.util.function$.Function, characteristics: java.util.stream.Collector.Characteristics): java.util.stream.Collector; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.stream.Collectors.d.ts b/packages/types/dist/typings/jdk/java.util.stream.Collectors.d.ts new file mode 100644 index 00000000..a65c0422 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.stream.Collectors.d.ts @@ -0,0 +1,400 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace stream { + // @ts-ignore + class Collectors extends java.lang.Object { + /** + * Returns a {@code Collector} that accumulates the input elements into a + * new {@code Collection}, in encounter order. The {@code Collection} is + * created by the provided factory. + */ + // @ts-ignore + public static toCollection(collectionFactory: java.util.function$.Supplier): java.util.stream.Collector; + /** + * Returns a {@code Collector} that accumulates the input elements into a + * new {@code List}. There are no guarantees on the type, mutability, + * serializability, or thread-safety of the {@code List} returned; if more + * control over the returned {@code List} is required, use {@link #toCollection(Supplier)}. + */ + // @ts-ignore + public static toList(): java.util.stream.Collector; + /** + * Returns a {@code Collector} that accumulates the input elements into a + * new {@code Set}. There are no guarantees on the type, mutability, + * serializability, or thread-safety of the {@code Set} returned; if more + * control over the returned {@code Set} is required, use + * {@link #toCollection(Supplier)}. + *

This is an {@link Collector.Characteristics#UNORDERED unordered} + * Collector. + */ + // @ts-ignore + public static toSet(): java.util.stream.Collector; + /** + * Returns a {@code Collector} that concatenates the input elements into a + * {@code String}, in encounter order. + */ + // @ts-ignore + public static joining(): java.util.stream.Collector; + /** + * Returns a {@code Collector} that concatenates the input elements, + * separated by the specified delimiter, in encounter order. + */ + // @ts-ignore + public static joining(delimiter: java.lang.CharSequence): java.util.stream.Collector; + /** + * Returns a {@code Collector} that concatenates the input elements, + * separated by the specified delimiter, with the specified prefix and + * suffix, in encounter order. + */ + // @ts-ignore + public static joining(delimiter: java.lang.CharSequence, prefix: java.lang.CharSequence, suffix: java.lang.CharSequence): java.util.stream.Collector; + /** + * Adapts a {@code Collector} accepting elements of type {@code U} to one + * accepting elements of type {@code T} by applying a mapping function to + * each input element before accumulation. + */ + // @ts-ignore + public static mapping(mapper: java.util.function$.Function, downstream: java.util.stream.Collector): java.util.stream.Collector; + /** + * Adapts a {@code Collector} to perform an additional finishing + * transformation. For example, one could adapt the {@link #toList()} + * collector to always produce an immutable list with: + *

{@code
+                 * List people
+                 * = people.stream().collect(collectingAndThen(toList(), Collections::unmodifiableList));
+                 * }
+ */ + // @ts-ignore + public static collectingAndThen(downstream: java.util.stream.Collector, finisher: java.util.function$.Function): java.util.stream.Collector; + /** + * Returns a {@code Collector} accepting elements of type {@code T} that + * counts the number of input elements. If no elements are present, the + * result is 0. + */ + // @ts-ignore + public static counting(): java.util.stream.Collector; + /** + * Returns a {@code Collector} that produces the minimal element according + * to a given {@code Comparator}, described as an {@code Optional}. + */ + // @ts-ignore + public static minBy(comparator: java.util.Comparator): java.util.stream.Collector; + /** + * Returns a {@code Collector} that produces the maximal element according + * to a given {@code Comparator}, described as an {@code Optional}. + */ + // @ts-ignore + public static maxBy(comparator: java.util.Comparator): java.util.stream.Collector; + /** + * Returns a {@code Collector} that produces the sum of a integer-valued + * function applied to the input elements. If no elements are present, + * the result is 0. + */ + // @ts-ignore + public static summingInt(mapper: java.util.function$.ToIntFunction): java.util.stream.Collector; + /** + * Returns a {@code Collector} that produces the sum of a long-valued + * function applied to the input elements. If no elements are present, + * the result is 0. + */ + // @ts-ignore + public static summingLong(mapper: java.util.function$.ToLongFunction): java.util.stream.Collector; + /** + * Returns a {@code Collector} that produces the sum of a double-valued + * function applied to the input elements. If no elements are present, + * the result is 0. + *

The sum returned can vary depending upon the order in which + * values are recorded, due to accumulated rounding error in + * addition of values of differing magnitudes. Values sorted by increasing + * absolute magnitude tend to yield more accurate results. If any recorded + * value is a {@code NaN} or the sum is at any point a {@code NaN} then the + * sum will be {@code NaN}. + */ + // @ts-ignore + public static summingDouble(mapper: java.util.function$.ToDoubleFunction): java.util.stream.Collector; + /** + * Returns a {@code Collector} that produces the arithmetic mean of an integer-valued + * function applied to the input elements. If no elements are present, + * the result is 0. + */ + // @ts-ignore + public static averagingInt(mapper: java.util.function$.ToIntFunction): java.util.stream.Collector; + /** + * Returns a {@code Collector} that produces the arithmetic mean of a long-valued + * function applied to the input elements. If no elements are present, + * the result is 0. + */ + // @ts-ignore + public static averagingLong(mapper: java.util.function$.ToLongFunction): java.util.stream.Collector; + /** + * Returns a {@code Collector} that produces the arithmetic mean of a double-valued + * function applied to the input elements. If no elements are present, + * the result is 0. + *

The average returned can vary depending upon the order in which + * values are recorded, due to accumulated rounding error in + * addition of values of differing magnitudes. Values sorted by increasing + * absolute magnitude tend to yield more accurate results. If any recorded + * value is a {@code NaN} or the sum is at any point a {@code NaN} then the + * average will be {@code NaN}. + */ + // @ts-ignore + public static averagingDouble(mapper: java.util.function$.ToDoubleFunction): java.util.stream.Collector; + /** + * Returns a {@code Collector} which performs a reduction of its + * input elements under a specified {@code BinaryOperator} using the + * provided identity. + */ + // @ts-ignore + public static reducing(identity: java.lang.Object, op: java.util.function$.BinaryOperator): java.util.stream.Collector; + /** + * Returns a {@code Collector} which performs a reduction of its + * input elements under a specified {@code BinaryOperator}. The result + * is described as an {@code Optional}. + */ + // @ts-ignore + public static reducing(op: java.util.function$.BinaryOperator): java.util.stream.Collector; + /** + * Returns a {@code Collector} which performs a reduction of its + * input elements under a specified mapping function and + * {@code BinaryOperator}. This is a generalization of + * {@link #reducing(Object, BinaryOperator)} which allows a transformation + * of the elements before reduction. + */ + // @ts-ignore + public static reducing(identity: java.lang.Object, mapper: java.util.function$.Function, op: java.util.function$.BinaryOperator): java.util.stream.Collector; + /** + * Returns a {@code Collector} implementing a "group by" operation on + * input elements of type {@code T}, grouping elements according to a + * classification function, and returning the results in a {@code Map}. + *

The classification function maps elements to some key type {@code K}. + * The collector produces a {@code Map>} whose keys are the + * values resulting from applying the classification function to the input + * elements, and whose corresponding values are {@code List}s containing the + * input elements which map to the associated key under the classification + * function. + *

There are no guarantees on the type, mutability, serializability, or + * thread-safety of the {@code Map} or {@code List} objects returned. + */ + // @ts-ignore + public static groupingBy(classifier: java.util.function$.Function): java.util.stream.Collector; + /** + * Returns a {@code Collector} implementing a cascaded "group by" operation + * on input elements of type {@code T}, grouping elements according to a + * classification function, and then performing a reduction operation on + * the values associated with a given key using the specified downstream + * {@code Collector}. + *

The classification function maps elements to some key type {@code K}. + * The downstream collector operates on elements of type {@code T} and + * produces a result of type {@code D}. The resulting collector produces a + * {@code Map}. + *

There are no guarantees on the type, mutability, + * serializability, or thread-safety of the {@code Map} returned. + *

For example, to compute the set of last names of people in each city: + *

{@code
+                 * Map> namesByCity
+                 * = people.stream().collect(groupingBy(Person::getCity,
+                 * mapping(Person::getLastName, toSet())));
+                 * }
+ */ + // @ts-ignore + public static groupingBy(classifier: java.util.function$.Function, downstream: java.util.stream.Collector): java.util.stream.Collector; + /** + * Returns a {@code Collector} implementing a cascaded "group by" operation + * on input elements of type {@code T}, grouping elements according to a + * classification function, and then performing a reduction operation on + * the values associated with a given key using the specified downstream + * {@code Collector}. The {@code Map} produced by the Collector is created + * with the supplied factory function. + *

The classification function maps elements to some key type {@code K}. + * The downstream collector operates on elements of type {@code T} and + * produces a result of type {@code D}. The resulting collector produces a + * {@code Map}. + *

For example, to compute the set of last names of people in each city, + * where the city names are sorted: + *

{@code
+                 * Map> namesByCity
+                 * = people.stream().collect(groupingBy(Person::getCity, TreeMap::new,
+                 * mapping(Person::getLastName, toSet())));
+                 * }
+ */ + // @ts-ignore + public static groupingBy(classifier: java.util.function$.Function, mapFactory: java.util.function$.Supplier, downstream: java.util.stream.Collector): java.util.stream.Collector; + /** + * Returns a concurrent {@code Collector} implementing a "group by" + * operation on input elements of type {@code T}, grouping elements + * according to a classification function. + *

This is a {@link Collector.Characteristics#CONCURRENT concurrent} and + * {@link Collector.Characteristics#UNORDERED unordered} Collector. + *

The classification function maps elements to some key type {@code K}. + * The collector produces a {@code ConcurrentMap>} whose keys are the + * values resulting from applying the classification function to the input + * elements, and whose corresponding values are {@code List}s containing the + * input elements which map to the associated key under the classification + * function. + *

There are no guarantees on the type, mutability, or serializability + * of the {@code Map} or {@code List} objects returned, or of the + * thread-safety of the {@code List} objects returned. + */ + // @ts-ignore + public static groupingByConcurrent(classifier: java.util.function$.Function): java.util.stream.Collector; + /** + * Returns a concurrent {@code Collector} implementing a cascaded "group by" + * operation on input elements of type {@code T}, grouping elements + * according to a classification function, and then performing a reduction + * operation on the values associated with a given key using the specified + * downstream {@code Collector}. + *

This is a {@link Collector.Characteristics#CONCURRENT concurrent} and + * {@link Collector.Characteristics#UNORDERED unordered} Collector. + *

The classification function maps elements to some key type {@code K}. + * The downstream collector operates on elements of type {@code T} and + * produces a result of type {@code D}. The resulting collector produces a + * {@code Map}. + *

For example, to compute the set of last names of people in each city, + * where the city names are sorted: + *

{@code
+                 * ConcurrentMap> namesByCity
+                 * = people.stream().collect(groupingByConcurrent(Person::getCity,
+                 * mapping(Person::getLastName, toSet())));
+                 * }
+ */ + // @ts-ignore + public static groupingByConcurrent(classifier: java.util.function$.Function, downstream: java.util.stream.Collector): java.util.stream.Collector; + /** + * Returns a concurrent {@code Collector} implementing a cascaded "group by" + * operation on input elements of type {@code T}, grouping elements + * according to a classification function, and then performing a reduction + * operation on the values associated with a given key using the specified + * downstream {@code Collector}. The {@code ConcurrentMap} produced by the + * Collector is created with the supplied factory function. + *

This is a {@link Collector.Characteristics#CONCURRENT concurrent} and + * {@link Collector.Characteristics#UNORDERED unordered} Collector. + *

The classification function maps elements to some key type {@code K}. + * The downstream collector operates on elements of type {@code T} and + * produces a result of type {@code D}. The resulting collector produces a + * {@code Map}. + *

For example, to compute the set of last names of people in each city, + * where the city names are sorted: + *

{@code
+                 * ConcurrentMap> namesByCity
+                 * = people.stream().collect(groupingBy(Person::getCity, ConcurrentSkipListMap::new,
+                 * mapping(Person::getLastName, toSet())));
+                 * }
+ */ + // @ts-ignore + public static groupingByConcurrent(classifier: java.util.function$.Function, mapFactory: java.util.function$.Supplier, downstream: java.util.stream.Collector): java.util.stream.Collector; + /** + * Returns a {@code Collector} which partitions the input elements according + * to a {@code Predicate}, and organizes them into a + * {@code Map>}. + * There are no guarantees on the type, mutability, + * serializability, or thread-safety of the {@code Map} returned. + */ + // @ts-ignore + public static partitioningBy(predicate: java.util.function$.Predicate): java.util.stream.Collector; + /** + * Returns a {@code Collector} which partitions the input elements according + * to a {@code Predicate}, reduces the values in each partition according to + * another {@code Collector}, and organizes them into a + * {@code Map} whose values are the result of the downstream + * reduction. + *

There are no guarantees on the type, mutability, + * serializability, or thread-safety of the {@code Map} returned. + */ + // @ts-ignore + public static partitioningBy(predicate: java.util.function$.Predicate, downstream: java.util.stream.Collector): java.util.stream.Collector; + /** + * Returns a {@code Collector} that accumulates elements into a + * {@code Map} whose keys and values are the result of applying the provided + * mapping functions to the input elements. + *

If the mapped keys contains duplicates (according to + * {@link Object#equals(Object)}), an {@code IllegalStateException} is + * thrown when the collection operation is performed. If the mapped keys + * may have duplicates, use {@link #toMap(Function, Function, BinaryOperator)} + * instead. + */ + // @ts-ignore + public static toMap(keyMapper: java.util.function$.Function, valueMapper: java.util.function$.Function): java.util.stream.Collector; + /** + * Returns a {@code Collector} that accumulates elements into a + * {@code Map} whose keys and values are the result of applying the provided + * mapping functions to the input elements. + *

If the mapped + * keys contains duplicates (according to {@link Object#equals(Object)}), + * the value mapping function is applied to each equal element, and the + * results are merged using the provided merging function. + */ + // @ts-ignore + public static toMap(keyMapper: java.util.function$.Function, valueMapper: java.util.function$.Function, mergeFunction: java.util.function$.BinaryOperator): java.util.stream.Collector; + /** + * Returns a {@code Collector} that accumulates elements into a + * {@code Map} whose keys and values are the result of applying the provided + * mapping functions to the input elements. + *

If the mapped + * keys contains duplicates (according to {@link Object#equals(Object)}), + * the value mapping function is applied to each equal element, and the + * results are merged using the provided merging function. The {@code Map} + * is created by a provided supplier function. + */ + // @ts-ignore + public static toMap(keyMapper: java.util.function$.Function, valueMapper: java.util.function$.Function, mergeFunction: java.util.function$.BinaryOperator, mapSupplier: java.util.function$.Supplier): java.util.stream.Collector; + /** + * Returns a concurrent {@code Collector} that accumulates elements into a + * {@code ConcurrentMap} whose keys and values are the result of applying + * the provided mapping functions to the input elements. + *

If the mapped keys contains duplicates (according to + * {@link Object#equals(Object)}), an {@code IllegalStateException} is + * thrown when the collection operation is performed. If the mapped keys + * may have duplicates, use + * {@link #toConcurrentMap(Function, Function, BinaryOperator)} instead. + */ + // @ts-ignore + public static toConcurrentMap(keyMapper: java.util.function$.Function, valueMapper: java.util.function$.Function): java.util.stream.Collector; + /** + * Returns a concurrent {@code Collector} that accumulates elements into a + * {@code ConcurrentMap} whose keys and values are the result of applying + * the provided mapping functions to the input elements. + *

If the mapped keys contains duplicates (according to {@link Object#equals(Object)}), + * the value mapping function is applied to each equal element, and the + * results are merged using the provided merging function. + */ + // @ts-ignore + public static toConcurrentMap(keyMapper: java.util.function$.Function, valueMapper: java.util.function$.Function, mergeFunction: java.util.function$.BinaryOperator): java.util.stream.Collector; + /** + * Returns a concurrent {@code Collector} that accumulates elements into a + * {@code ConcurrentMap} whose keys and values are the result of applying + * the provided mapping functions to the input elements. + *

If the mapped keys contains duplicates (according to {@link Object#equals(Object)}), + * the value mapping function is applied to each equal element, and the + * results are merged using the provided merging function. The + * {@code ConcurrentMap} is created by a provided supplier function. + *

This is a {@link Collector.Characteristics#CONCURRENT concurrent} and + * {@link Collector.Characteristics#UNORDERED unordered} Collector. + */ + // @ts-ignore + public static toConcurrentMap(keyMapper: java.util.function$.Function, valueMapper: java.util.function$.Function, mergeFunction: java.util.function$.BinaryOperator, mapSupplier: java.util.function$.Supplier): java.util.stream.Collector; + /** + * Returns a {@code Collector} which applies an {@code int}-producing + * mapping function to each input element, and returns summary statistics + * for the resulting values. + */ + // @ts-ignore + public static summarizingInt(mapper: java.util.function$.ToIntFunction): java.util.stream.Collector; + /** + * Returns a {@code Collector} which applies an {@code long}-producing + * mapping function to each input element, and returns summary statistics + * for the resulting values. + */ + // @ts-ignore + public static summarizingLong(mapper: java.util.function$.ToLongFunction): java.util.stream.Collector; + /** + * Returns a {@code Collector} which applies an {@code double}-producing + * mapping function to each input element, and returns summary statistics + * for the resulting values. + */ + // @ts-ignore + public static summarizingDouble(mapper: java.util.function$.ToDoubleFunction): java.util.stream.Collector; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.stream.DoubleStream.Builder.d.ts b/packages/types/dist/typings/jdk/java.util.stream.DoubleStream.Builder.d.ts new file mode 100644 index 00000000..f5745244 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.stream.DoubleStream.Builder.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace stream { + namespace DoubleStream { + // @ts-ignore + interface Builder { + /** + * Adds an element to the stream being built. + */ + // @ts-ignore + accept(t: number): void; + /** + * Adds an element to the stream being built. + */ + // @ts-ignore + add(t: number): java.util.stream.DoubleStream.Builder; + /** + * Builds the stream, transitioning this builder to the built state. + * An {@code IllegalStateException} is thrown if there are further + * attempts to operate on the builder after it has entered the built + * state. + */ + // @ts-ignore + build(): java.util.stream.DoubleStream; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.stream.DoubleStream.d.ts b/packages/types/dist/typings/jdk/java.util.stream.DoubleStream.d.ts new file mode 100644 index 00000000..71638d70 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.stream.DoubleStream.d.ts @@ -0,0 +1,428 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace stream { + // @ts-ignore + interface DoubleStream { + /** + * Returns a stream consisting of the elements of this stream that match + * the given predicate. + *

This is an intermediate + * operation. + */ + // @ts-ignore + filter(predicate: java.util.function$.DoublePredicate): java.util.stream.DoubleStream; + /** + * Returns a stream consisting of the results of applying the given + * function to the elements of this stream. + *

This is an intermediate + * operation. + */ + // @ts-ignore + map(mapper: java.util.function$.DoubleUnaryOperator): java.util.stream.DoubleStream; + /** + * Returns an object-valued {@code Stream} consisting of the results of + * applying the given function to the elements of this stream. + *

This is an + * intermediate operation. + */ + // @ts-ignore + mapToObj(mapper: java.util.function$.DoubleFunction): java.util.stream.Stream; + /** + * Returns an {@code IntStream} consisting of the results of applying the + * given function to the elements of this stream. + *

This is an intermediate + * operation. + */ + // @ts-ignore + mapToInt(mapper: java.util.function$.DoubleToIntFunction): java.util.stream.IntStream; + /** + * Returns a {@code LongStream} consisting of the results of applying the + * given function to the elements of this stream. + *

This is an intermediate + * operation. + */ + // @ts-ignore + mapToLong(mapper: java.util.function$.DoubleToLongFunction): java.util.stream.LongStream; + /** + * Returns a stream consisting of the results of replacing each element of + * this stream with the contents of a mapped stream produced by applying + * the provided mapping function to each element. Each mapped stream is + * {@link java.util.stream.BaseStream#close() closed} after its contents + * have been placed into this stream. (If a mapped stream is {@code null} + * an empty stream is used, instead.) + *

This is an intermediate + * operation. + */ + // @ts-ignore + flatMap(mapper: java.util.function$.DoubleFunction): java.util.stream.DoubleStream; + /** + * Returns a stream consisting of the distinct elements of this stream. The + * elements are compared for equality according to + * {@link java.lang.Double#compare(double, double)}. + *

This is a stateful + * intermediate operation. + */ + // @ts-ignore + distinct(): java.util.stream.DoubleStream; + /** + * Returns a stream consisting of the elements of this stream in sorted + * order. The elements are compared for equality according to + * {@link java.lang.Double#compare(double, double)}. + *

This is a stateful + * intermediate operation. + */ + // @ts-ignore + sorted(): java.util.stream.DoubleStream; + /** + * Returns a stream consisting of the elements of this stream, additionally + * performing the provided action on each element as elements are consumed + * from the resulting stream. + *

This is an intermediate + * operation. + *

For parallel stream pipelines, the action may be called at + * whatever time and in whatever thread the element is made available by the + * upstream operation. If the action modifies shared state, + * it is responsible for providing the required synchronization. + */ + // @ts-ignore + peek(action: java.util.function$.DoubleConsumer): java.util.stream.DoubleStream; + /** + * Returns a stream consisting of the elements of this stream, truncated + * to be no longer than {@code maxSize} in length. + *

This is a short-circuiting + * stateful intermediate operation. + */ + // @ts-ignore + limit(maxSize: number): java.util.stream.DoubleStream; + /** + * Returns a stream consisting of the remaining elements of this stream + * after discarding the first {@code n} elements of the stream. + * If this stream contains fewer than {@code n} elements then an + * empty stream will be returned. + *

This is a stateful + * intermediate operation. + */ + // @ts-ignore + skip(n: number): java.util.stream.DoubleStream; + /** + * Performs an action for each element of this stream. + *

This is a terminal + * operation. + *

For parallel stream pipelines, this operation does not + * guarantee to respect the encounter order of the stream, as doing so + * would sacrifice the benefit of parallelism. For any given element, the + * action may be performed at whatever time and in whatever thread the + * library chooses. If the action accesses shared state, it is + * responsible for providing the required synchronization. + */ + // @ts-ignore + forEach(action: java.util.function$.DoubleConsumer): void; + /** + * Performs an action for each element of this stream, guaranteeing that + * each element is processed in encounter order for streams that have a + * defined encounter order. + *

This is a terminal + * operation. + */ + // @ts-ignore + forEachOrdered(action: java.util.function$.DoubleConsumer): void; + /** + * Returns an array containing the elements of this stream. + *

This is a terminal + * operation. + */ + // @ts-ignore + toArray(): number[]; + /** + * Performs a reduction on the + * elements of this stream, using the provided identity value and an + * associative + * accumulation function, and returns the reduced value. This is equivalent + * to: + *

{@code
+                 * double result = identity;
+                 * for (double element : this stream)
+                 * result = accumulator.applyAsDouble(result, element)
+                 * return result;
+                 * }
+ * but is not constrained to execute sequentially. + *

The {@code identity} value must be an identity for the accumulator + * function. This means that for all {@code x}, + * {@code accumulator.apply(identity, x)} is equal to {@code x}. + * The {@code accumulator} function must be an + * associative function. + *

This is a terminal + * operation. + */ + // @ts-ignore + reduce(identity: number, op: java.util.function$.DoubleBinaryOperator): number; + /** + * Performs a reduction on the + * elements of this stream, using an + * associative accumulation + * function, and returns an {@code OptionalDouble} describing the reduced + * value, if any. This is equivalent to: + *

{@code
+                 * boolean foundAny = false;
+                 * double result = null;
+                 * for (double element : this stream) {
+                 * if (!foundAny) {
+                 * foundAny = true;
+                 * result = element;
+                 * }
+                 * else
+                 * result = accumulator.applyAsDouble(result, element);
+                 * }
+                 * return foundAny ? OptionalDouble.of(result) : OptionalDouble.empty();
+                 * }
+ * but is not constrained to execute sequentially. + *

The {@code accumulator} function must be an + * associative function. + *

This is a terminal + * operation. + */ + // @ts-ignore + reduce(op: java.util.function$.DoubleBinaryOperator): java.util.OptionalDouble; + /** + * Performs a mutable + * reduction operation on the elements of this stream. A mutable + * reduction is one in which the reduced value is a mutable result container, + * such as an {@code ArrayList}, and elements are incorporated by updating + * the state of the result rather than by replacing the result. This + * produces a result equivalent to: + *

{@code
+                 * R result = supplier.get();
+                 * for (double element : this stream)
+                 * accumulator.accept(result, element);
+                 * return result;
+                 * }
+ *

Like {@link #reduce(double, DoubleBinaryOperator)}, {@code collect} + * operations can be parallelized without requiring additional + * synchronization. + *

This is a terminal + * operation. + */ + // @ts-ignore + collect(supplier: java.util.function$.Supplier, accumulator: java.util.function$.ObjDoubleConsumer, combiner: java.util.function$.BiConsumer): java.lang.Object; + /** + * Returns the sum of elements in this stream. + * Summation is a special case of a reduction. If + * floating-point summation were exact, this method would be + * equivalent to: + *

{@code
+                 * return reduce(0, Double::sum);
+                 * }
+ * However, since floating-point summation is not exact, the above + * code is not necessarily equivalent to the summation computation + * done by this method. + *

If any stream element is a NaN or the sum is at any point a NaN + * then the sum will be NaN. + * The value of a floating-point sum is a function both + * of the input values as well as the order of addition + * operations. The order of addition operations of this method is + * intentionally not defined to allow for implementation + * flexibility to improve the speed and accuracy of the computed + * result. + * In particular, this method may be implemented using compensated + * summation or other technique to reduce the error bound in the + * numerical sum compared to a simple summation of {@code double} + * values. + *

This is a terminal + * operation. + */ + // @ts-ignore + sum(): number; + /** + * Returns an {@code OptionalDouble} describing the minimum element of this + * stream, or an empty OptionalDouble if this stream is empty. The minimum + * element will be {@code Double.NaN} if any stream element was NaN. Unlike + * the numerical comparison operators, this method considers negative zero + * to be strictly smaller than positive zero. This is a special case of a + * reduction and is + * equivalent to: + *

{@code
+                 * return reduce(Double::min);
+                 * }
+ *

This is a terminal + * operation. + */ + // @ts-ignore + min(): java.util.OptionalDouble; + /** + * Returns an {@code OptionalDouble} describing the maximum element of this + * stream, or an empty OptionalDouble if this stream is empty. The maximum + * element will be {@code Double.NaN} if any stream element was NaN. Unlike + * the numerical comparison operators, this method considers negative zero + * to be strictly smaller than positive zero. This is a + * special case of a + * reduction and is + * equivalent to: + *

{@code
+                 * return reduce(Double::max);
+                 * }
+ *

This is a terminal + * operation. + */ + // @ts-ignore + max(): java.util.OptionalDouble; + /** + * Returns the count of elements in this stream. This is a special case of + * a reduction and is + * equivalent to: + *

{@code
+                 * return mapToLong(e -> 1L).sum();
+                 * }
+ *

This is a terminal operation. + */ + // @ts-ignore + count(): number; + /** + * Returns an {@code OptionalDouble} describing the arithmetic + * mean of elements of this stream, or an empty optional if this + * stream is empty. + * If any recorded value is a NaN or the sum is at any point a NaN + * then the average will be NaN. + *

The average returned can vary depending upon the order in + * which values are recorded. + * This method may be implemented using compensated summation or + * other technique to reduce the error bound in the {@link #sum + * numerical sum} used to compute the average. + *

The average is a special case of a reduction. + *

This is a terminal + * operation. + */ + // @ts-ignore + average(): java.util.OptionalDouble; + /** + * Returns a {@code DoubleSummaryStatistics} describing various summary data + * about the elements of this stream. This is a special + * case of a reduction. + *

This is a terminal + * operation. + */ + // @ts-ignore + summaryStatistics(): java.util.DoubleSummaryStatistics; + /** + * Returns whether any elements of this stream match the provided + * predicate. May not evaluate the predicate on all elements if not + * necessary for determining the result. If the stream is empty then + * {@code false} is returned and the predicate is not evaluated. + *

This is a short-circuiting + * terminal operation. + */ + // @ts-ignore + anyMatch(predicate: java.util.function$.DoublePredicate): boolean; + /** + * Returns whether all elements of this stream match the provided predicate. + * May not evaluate the predicate on all elements if not necessary for + * determining the result. If the stream is empty then {@code true} is + * returned and the predicate is not evaluated. + *

This is a short-circuiting + * terminal operation. + */ + // @ts-ignore + allMatch(predicate: java.util.function$.DoublePredicate): boolean; + /** + * Returns whether no elements of this stream match the provided predicate. + * May not evaluate the predicate on all elements if not necessary for + * determining the result. If the stream is empty then {@code true} is + * returned and the predicate is not evaluated. + *

This is a short-circuiting + * terminal operation. + */ + // @ts-ignore + noneMatch(predicate: java.util.function$.DoublePredicate): boolean; + /** + * Returns an {@link OptionalDouble} describing the first element of this + * stream, or an empty {@code OptionalDouble} if the stream is empty. If + * the stream has no encounter order, then any element may be returned. + *

This is a short-circuiting + * terminal operation. + */ + // @ts-ignore + findFirst(): java.util.OptionalDouble; + /** + * Returns an {@link OptionalDouble} describing some element of the stream, + * or an empty {@code OptionalDouble} if the stream is empty. + *

This is a short-circuiting + * terminal operation. + *

The behavior of this operation is explicitly nondeterministic; it is + * free to select any element in the stream. This is to allow for maximal + * performance in parallel operations; the cost is that multiple invocations + * on the same source may not return the same result. (If a stable result + * is desired, use {@link #findFirst()} instead.) + */ + // @ts-ignore + findAny(): java.util.OptionalDouble; + /** + * Returns a {@code Stream} consisting of the elements of this stream, + * boxed to {@code Double}. + *

This is an intermediate + * operation. + */ + // @ts-ignore + boxed(): java.util.stream.Stream; + // @ts-ignore + sequential(): java.util.stream.DoubleStream; + // @ts-ignore + parallel(): java.util.stream.DoubleStream; + // @ts-ignore + iterator(): java.util.PrimitiveIterator.OfDouble; + // @ts-ignore + spliterator(): java.util.Spliterator.OfDouble; + /** + * Returns a builder for a {@code DoubleStream}. + */ + // @ts-ignore + builder(): java.util.stream.DoubleStream.Builder; + /** + * Returns an empty sequential {@code DoubleStream}. + */ + // @ts-ignore + empty(): java.util.stream.DoubleStream; + /** + * Returns a sequential {@code DoubleStream} containing a single element. + */ + // @ts-ignore + of(t: number): java.util.stream.DoubleStream; + /** + * Returns a sequential ordered stream whose elements are the specified values. + */ + // @ts-ignore + of(values: number): java.util.stream.DoubleStream; + /** + * Returns an infinite sequential ordered {@code DoubleStream} produced by iterative + * application of a function {@code f} to an initial element {@code seed}, + * producing a {@code Stream} consisting of {@code seed}, {@code f(seed)}, + * {@code f(f(seed))}, etc. + *

The first element (position {@code 0}) in the {@code DoubleStream} + * will be the provided {@code seed}. For {@code n > 0}, the element at + * position {@code n}, will be the result of applying the function {@code f} + * to the element at position {@code n - 1}. + */ + // @ts-ignore + iterate(seed: number, f: java.util.function$.DoubleUnaryOperator): java.util.stream.DoubleStream; + /** + * Returns an infinite sequential unordered stream where each element is + * generated by the provided {@code DoubleSupplier}. This is suitable for + * generating constant streams, streams of random elements, etc. + */ + // @ts-ignore + generate(s: java.util.function$.DoubleSupplier): java.util.stream.DoubleStream; + /** + * Creates a lazily concatenated stream whose elements are all the + * elements of the first stream followed by all the elements of the + * second stream. The resulting stream is ordered if both + * of the input streams are ordered, and parallel if either of the input + * streams is parallel. When the resulting stream is closed, the close + * handlers for both input streams are invoked. + */ + // @ts-ignore + concat(a: java.util.stream.DoubleStream, b: java.util.stream.DoubleStream): java.util.stream.DoubleStream; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.stream.IntStream.Builder.d.ts b/packages/types/dist/typings/jdk/java.util.stream.IntStream.Builder.d.ts new file mode 100644 index 00000000..9390ac9c --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.stream.IntStream.Builder.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace stream { + namespace IntStream { + // @ts-ignore + interface Builder { + /** + * Adds an element to the stream being built. + */ + // @ts-ignore + accept(t: number): void; + /** + * Adds an element to the stream being built. + */ + // @ts-ignore + add(t: number): java.util.stream.IntStream.Builder; + /** + * Builds the stream, transitioning this builder to the built state. + * An {@code IllegalStateException} is thrown if there are further + * attempts to operate on the builder after it has entered the built + * state. + */ + // @ts-ignore + build(): java.util.stream.IntStream; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.stream.IntStream.d.ts b/packages/types/dist/typings/jdk/java.util.stream.IntStream.d.ts new file mode 100644 index 00000000..3966faf5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.stream.IntStream.d.ts @@ -0,0 +1,421 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace stream { + // @ts-ignore + interface IntStream { + /** + * Returns a stream consisting of the elements of this stream that match + * the given predicate. + *

This is an intermediate + * operation. + */ + // @ts-ignore + filter(predicate: java.util.function$.IntPredicate): java.util.stream.IntStream; + /** + * Returns a stream consisting of the results of applying the given + * function to the elements of this stream. + *

This is an intermediate + * operation. + */ + // @ts-ignore + map(mapper: java.util.function$.IntUnaryOperator): java.util.stream.IntStream; + /** + * Returns an object-valued {@code Stream} consisting of the results of + * applying the given function to the elements of this stream. + *

This is an + * intermediate operation. + */ + // @ts-ignore + mapToObj(mapper: java.util.function$.IntFunction): java.util.stream.Stream; + /** + * Returns a {@code LongStream} consisting of the results of applying the + * given function to the elements of this stream. + *

This is an intermediate + * operation. + */ + // @ts-ignore + mapToLong(mapper: java.util.function$.IntToLongFunction): java.util.stream.LongStream; + /** + * Returns a {@code DoubleStream} consisting of the results of applying the + * given function to the elements of this stream. + *

This is an intermediate + * operation. + */ + // @ts-ignore + mapToDouble(mapper: java.util.function$.IntToDoubleFunction): java.util.stream.DoubleStream; + /** + * Returns a stream consisting of the results of replacing each element of + * this stream with the contents of a mapped stream produced by applying + * the provided mapping function to each element. Each mapped stream is + * {@link java.util.stream.BaseStream#close() closed} after its contents + * have been placed into this stream. (If a mapped stream is {@code null} + * an empty stream is used, instead.) + *

This is an intermediate + * operation. + */ + // @ts-ignore + flatMap(mapper: java.util.function$.IntFunction): java.util.stream.IntStream; + /** + * Returns a stream consisting of the distinct elements of this stream. + *

This is a stateful + * intermediate operation. + */ + // @ts-ignore + distinct(): java.util.stream.IntStream; + /** + * Returns a stream consisting of the elements of this stream in sorted + * order. + *

This is a stateful + * intermediate operation. + */ + // @ts-ignore + sorted(): java.util.stream.IntStream; + /** + * Returns a stream consisting of the elements of this stream, additionally + * performing the provided action on each element as elements are consumed + * from the resulting stream. + *

This is an intermediate + * operation. + *

For parallel stream pipelines, the action may be called at + * whatever time and in whatever thread the element is made available by the + * upstream operation. If the action modifies shared state, + * it is responsible for providing the required synchronization. + */ + // @ts-ignore + peek(action: java.util.function$.IntConsumer): java.util.stream.IntStream; + /** + * Returns a stream consisting of the elements of this stream, truncated + * to be no longer than {@code maxSize} in length. + *

This is a short-circuiting + * stateful intermediate operation. + */ + // @ts-ignore + limit(maxSize: number): java.util.stream.IntStream; + /** + * Returns a stream consisting of the remaining elements of this stream + * after discarding the first {@code n} elements of the stream. + * If this stream contains fewer than {@code n} elements then an + * empty stream will be returned. + *

This is a stateful + * intermediate operation. + */ + // @ts-ignore + skip(n: number): java.util.stream.IntStream; + /** + * Performs an action for each element of this stream. + *

This is a terminal + * operation. + *

For parallel stream pipelines, this operation does not + * guarantee to respect the encounter order of the stream, as doing so + * would sacrifice the benefit of parallelism. For any given element, the + * action may be performed at whatever time and in whatever thread the + * library chooses. If the action accesses shared state, it is + * responsible for providing the required synchronization. + */ + // @ts-ignore + forEach(action: java.util.function$.IntConsumer): void; + /** + * Performs an action for each element of this stream, guaranteeing that + * each element is processed in encounter order for streams that have a + * defined encounter order. + *

This is a terminal + * operation. + */ + // @ts-ignore + forEachOrdered(action: java.util.function$.IntConsumer): void; + /** + * Returns an array containing the elements of this stream. + *

This is a terminal + * operation. + */ + // @ts-ignore + toArray(): number[]; + /** + * Performs a reduction on the + * elements of this stream, using the provided identity value and an + * associative + * accumulation function, and returns the reduced value. This is equivalent + * to: + *

{@code
+                 * int result = identity;
+                 * for (int element : this stream)
+                 * result = accumulator.applyAsInt(result, element)
+                 * return result;
+                 * }
+ * but is not constrained to execute sequentially. + *

The {@code identity} value must be an identity for the accumulator + * function. This means that for all {@code x}, + * {@code accumulator.apply(identity, x)} is equal to {@code x}. + * The {@code accumulator} function must be an + * associative function. + *

This is a terminal + * operation. + */ + // @ts-ignore + reduce(identity: number, op: java.util.function$.IntBinaryOperator): number; + /** + * Performs a reduction on the + * elements of this stream, using an + * associative accumulation + * function, and returns an {@code OptionalInt} describing the reduced value, + * if any. This is equivalent to: + *

{@code
+                 * boolean foundAny = false;
+                 * int result = null;
+                 * for (int element : this stream) {
+                 * if (!foundAny) {
+                 * foundAny = true;
+                 * result = element;
+                 * }
+                 * else
+                 * result = accumulator.applyAsInt(result, element);
+                 * }
+                 * return foundAny ? OptionalInt.of(result) : OptionalInt.empty();
+                 * }
+ * but is not constrained to execute sequentially. + *

The {@code accumulator} function must be an + * associative function. + *

This is a terminal + * operation. + */ + // @ts-ignore + reduce(op: java.util.function$.IntBinaryOperator): java.util.OptionalInt; + /** + * Performs a mutable + * reduction operation on the elements of this stream. A mutable + * reduction is one in which the reduced value is a mutable result container, + * such as an {@code ArrayList}, and elements are incorporated by updating + * the state of the result rather than by replacing the result. This + * produces a result equivalent to: + *

{@code
+                 * R result = supplier.get();
+                 * for (int element : this stream)
+                 * accumulator.accept(result, element);
+                 * return result;
+                 * }
+ *

Like {@link #reduce(int, IntBinaryOperator)}, {@code collect} operations + * can be parallelized without requiring additional synchronization. + *

This is a terminal + * operation. + */ + // @ts-ignore + collect(supplier: java.util.function$.Supplier, accumulator: java.util.function$.ObjIntConsumer, combiner: java.util.function$.BiConsumer): java.lang.Object; + /** + * Returns the sum of elements in this stream. This is a special case + * of a reduction + * and is equivalent to: + *

{@code
+                 * return reduce(0, Integer::sum);
+                 * }
+ *

This is a terminal + * operation. + */ + // @ts-ignore + sum(): number; + /** + * Returns an {@code OptionalInt} describing the minimum element of this + * stream, or an empty optional if this stream is empty. This is a special + * case of a reduction + * and is equivalent to: + *

{@code
+                 * return reduce(Integer::min);
+                 * }
+ *

This is a terminal operation. + */ + // @ts-ignore + min(): java.util.OptionalInt; + /** + * Returns an {@code OptionalInt} describing the maximum element of this + * stream, or an empty optional if this stream is empty. This is a special + * case of a reduction + * and is equivalent to: + *

{@code
+                 * return reduce(Integer::max);
+                 * }
+ *

This is a terminal + * operation. + */ + // @ts-ignore + max(): java.util.OptionalInt; + /** + * Returns the count of elements in this stream. This is a special case of + * a reduction and is + * equivalent to: + *

{@code
+                 * return mapToLong(e -> 1L).sum();
+                 * }
+ *

This is a terminal operation. + */ + // @ts-ignore + count(): number; + /** + * Returns an {@code OptionalDouble} describing the arithmetic mean of elements of + * this stream, or an empty optional if this stream is empty. This is a + * special case of a + * reduction. + *

This is a terminal + * operation. + */ + // @ts-ignore + average(): java.util.OptionalDouble; + /** + * Returns an {@code IntSummaryStatistics} describing various + * summary data about the elements of this stream. This is a special + * case of a reduction. + *

This is a terminal + * operation. + */ + // @ts-ignore + summaryStatistics(): java.util.IntSummaryStatistics; + /** + * Returns whether any elements of this stream match the provided + * predicate. May not evaluate the predicate on all elements if not + * necessary for determining the result. If the stream is empty then + * {@code false} is returned and the predicate is not evaluated. + *

This is a short-circuiting + * terminal operation. + */ + // @ts-ignore + anyMatch(predicate: java.util.function$.IntPredicate): boolean; + /** + * Returns whether all elements of this stream match the provided predicate. + * May not evaluate the predicate on all elements if not necessary for + * determining the result. If the stream is empty then {@code true} is + * returned and the predicate is not evaluated. + *

This is a short-circuiting + * terminal operation. + */ + // @ts-ignore + allMatch(predicate: java.util.function$.IntPredicate): boolean; + /** + * Returns whether no elements of this stream match the provided predicate. + * May not evaluate the predicate on all elements if not necessary for + * determining the result. If the stream is empty then {@code true} is + * returned and the predicate is not evaluated. + *

This is a short-circuiting + * terminal operation. + */ + // @ts-ignore + noneMatch(predicate: java.util.function$.IntPredicate): boolean; + /** + * Returns an {@link OptionalInt} describing the first element of this + * stream, or an empty {@code OptionalInt} if the stream is empty. If the + * stream has no encounter order, then any element may be returned. + *

This is a short-circuiting + * terminal operation. + */ + // @ts-ignore + findFirst(): java.util.OptionalInt; + /** + * Returns an {@link OptionalInt} describing some element of the stream, or + * an empty {@code OptionalInt} if the stream is empty. + *

This is a short-circuiting + * terminal operation. + *

The behavior of this operation is explicitly nondeterministic; it is + * free to select any element in the stream. This is to allow for maximal + * performance in parallel operations; the cost is that multiple invocations + * on the same source may not return the same result. (If a stable result + * is desired, use {@link #findFirst()} instead.) + */ + // @ts-ignore + findAny(): java.util.OptionalInt; + /** + * Returns a {@code LongStream} consisting of the elements of this stream, + * converted to {@code long}. + *

This is an intermediate + * operation. + */ + // @ts-ignore + asLongStream(): java.util.stream.LongStream; + /** + * Returns a {@code DoubleStream} consisting of the elements of this stream, + * converted to {@code double}. + *

This is an intermediate + * operation. + */ + // @ts-ignore + asDoubleStream(): java.util.stream.DoubleStream; + /** + * Returns a {@code Stream} consisting of the elements of this stream, + * each boxed to an {@code Integer}. + *

This is an intermediate + * operation. + */ + // @ts-ignore + boxed(): java.util.stream.Stream; + // @ts-ignore + sequential(): java.util.stream.IntStream; + // @ts-ignore + parallel(): java.util.stream.IntStream; + // @ts-ignore + iterator(): java.util.PrimitiveIterator.OfInt; + // @ts-ignore + spliterator(): java.util.Spliterator.OfInt; + /** + * Returns a builder for an {@code IntStream}. + */ + // @ts-ignore + builder(): java.util.stream.IntStream.Builder; + /** + * Returns an empty sequential {@code IntStream}. + */ + // @ts-ignore + empty(): java.util.stream.IntStream; + /** + * Returns a sequential {@code IntStream} containing a single element. + */ + // @ts-ignore + of(t: number): java.util.stream.IntStream; + /** + * Returns a sequential ordered stream whose elements are the specified values. + */ + // @ts-ignore + of(values: number): java.util.stream.IntStream; + /** + * Returns an infinite sequential ordered {@code IntStream} produced by iterative + * application of a function {@code f} to an initial element {@code seed}, + * producing a {@code Stream} consisting of {@code seed}, {@code f(seed)}, + * {@code f(f(seed))}, etc. + *

The first element (position {@code 0}) in the {@code IntStream} will be + * the provided {@code seed}. For {@code n > 0}, the element at position + * {@code n}, will be the result of applying the function {@code f} to the + * element at position {@code n - 1}. + */ + // @ts-ignore + iterate(seed: number, f: java.util.function$.IntUnaryOperator): java.util.stream.IntStream; + /** + * Returns an infinite sequential unordered stream where each element is + * generated by the provided {@code IntSupplier}. This is suitable for + * generating constant streams, streams of random elements, etc. + */ + // @ts-ignore + generate(s: java.util.function$.IntSupplier): java.util.stream.IntStream; + /** + * Returns a sequential ordered {@code IntStream} from {@code startInclusive} + * (inclusive) to {@code endExclusive} (exclusive) by an incremental step of + * {@code 1}. + */ + // @ts-ignore + range(startInclusive: number, endExclusive: number): java.util.stream.IntStream; + /** + * Returns a sequential ordered {@code IntStream} from {@code startInclusive} + * (inclusive) to {@code endInclusive} (inclusive) by an incremental step of + * {@code 1}. + */ + // @ts-ignore + rangeClosed(startInclusive: number, endInclusive: number): java.util.stream.IntStream; + /** + * Creates a lazily concatenated stream whose elements are all the + * elements of the first stream followed by all the elements of the + * second stream. The resulting stream is ordered if both + * of the input streams are ordered, and parallel if either of the input + * streams is parallel. When the resulting stream is closed, the close + * handlers for both input streams are invoked. + */ + // @ts-ignore + concat(a: java.util.stream.IntStream, b: java.util.stream.IntStream): java.util.stream.IntStream; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.stream.LongStream.Builder.d.ts b/packages/types/dist/typings/jdk/java.util.stream.LongStream.Builder.d.ts new file mode 100644 index 00000000..e8187ca1 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.stream.LongStream.Builder.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace stream { + namespace LongStream { + // @ts-ignore + interface Builder { + /** + * Adds an element to the stream being built. + */ + // @ts-ignore + accept(t: number): void; + /** + * Adds an element to the stream being built. + */ + // @ts-ignore + add(t: number): java.util.stream.LongStream.Builder; + /** + * Builds the stream, transitioning this builder to the built state. + * An {@code IllegalStateException} is thrown if there are further + * attempts to operate on the builder after it has entered the built + * state. + */ + // @ts-ignore + build(): java.util.stream.LongStream; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.stream.LongStream.d.ts b/packages/types/dist/typings/jdk/java.util.stream.LongStream.d.ts new file mode 100644 index 00000000..04ca356e --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.stream.LongStream.d.ts @@ -0,0 +1,413 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace stream { + // @ts-ignore + interface LongStream { + /** + * Returns a stream consisting of the elements of this stream that match + * the given predicate. + *

This is an intermediate + * operation. + */ + // @ts-ignore + filter(predicate: java.util.function$.LongPredicate): java.util.stream.LongStream; + /** + * Returns a stream consisting of the results of applying the given + * function to the elements of this stream. + *

This is an intermediate + * operation. + */ + // @ts-ignore + map(mapper: java.util.function$.LongUnaryOperator): java.util.stream.LongStream; + /** + * Returns an object-valued {@code Stream} consisting of the results of + * applying the given function to the elements of this stream. + *

This is an + * intermediate operation. + */ + // @ts-ignore + mapToObj(mapper: java.util.function$.LongFunction): java.util.stream.Stream; + /** + * Returns an {@code IntStream} consisting of the results of applying the + * given function to the elements of this stream. + *

This is an intermediate + * operation. + */ + // @ts-ignore + mapToInt(mapper: java.util.function$.LongToIntFunction): java.util.stream.IntStream; + /** + * Returns a {@code DoubleStream} consisting of the results of applying the + * given function to the elements of this stream. + *

This is an intermediate + * operation. + */ + // @ts-ignore + mapToDouble(mapper: java.util.function$.LongToDoubleFunction): java.util.stream.DoubleStream; + /** + * Returns a stream consisting of the results of replacing each element of + * this stream with the contents of a mapped stream produced by applying + * the provided mapping function to each element. Each mapped stream is + * {@link java.util.stream.BaseStream#close() closed} after its contents + * have been placed into this stream. (If a mapped stream is {@code null} + * an empty stream is used, instead.) + *

This is an intermediate + * operation. + */ + // @ts-ignore + flatMap(mapper: java.util.function$.LongFunction): java.util.stream.LongStream; + /** + * Returns a stream consisting of the distinct elements of this stream. + *

This is a stateful + * intermediate operation. + */ + // @ts-ignore + distinct(): java.util.stream.LongStream; + /** + * Returns a stream consisting of the elements of this stream in sorted + * order. + *

This is a stateful + * intermediate operation. + */ + // @ts-ignore + sorted(): java.util.stream.LongStream; + /** + * Returns a stream consisting of the elements of this stream, additionally + * performing the provided action on each element as elements are consumed + * from the resulting stream. + *

This is an intermediate + * operation. + *

For parallel stream pipelines, the action may be called at + * whatever time and in whatever thread the element is made available by the + * upstream operation. If the action modifies shared state, + * it is responsible for providing the required synchronization. + */ + // @ts-ignore + peek(action: java.util.function$.LongConsumer): java.util.stream.LongStream; + /** + * Returns a stream consisting of the elements of this stream, truncated + * to be no longer than {@code maxSize} in length. + *

This is a short-circuiting + * stateful intermediate operation. + */ + // @ts-ignore + limit(maxSize: number): java.util.stream.LongStream; + /** + * Returns a stream consisting of the remaining elements of this stream + * after discarding the first {@code n} elements of the stream. + * If this stream contains fewer than {@code n} elements then an + * empty stream will be returned. + *

This is a stateful + * intermediate operation. + */ + // @ts-ignore + skip(n: number): java.util.stream.LongStream; + /** + * Performs an action for each element of this stream. + *

This is a terminal + * operation. + *

For parallel stream pipelines, this operation does not + * guarantee to respect the encounter order of the stream, as doing so + * would sacrifice the benefit of parallelism. For any given element, the + * action may be performed at whatever time and in whatever thread the + * library chooses. If the action accesses shared state, it is + * responsible for providing the required synchronization. + */ + // @ts-ignore + forEach(action: java.util.function$.LongConsumer): void; + /** + * Performs an action for each element of this stream, guaranteeing that + * each element is processed in encounter order for streams that have a + * defined encounter order. + *

This is a terminal + * operation. + */ + // @ts-ignore + forEachOrdered(action: java.util.function$.LongConsumer): void; + /** + * Returns an array containing the elements of this stream. + *

This is a terminal + * operation. + */ + // @ts-ignore + toArray(): number[]; + /** + * Performs a reduction on the + * elements of this stream, using the provided identity value and an + * associative + * accumulation function, and returns the reduced value. This is equivalent + * to: + *

{@code
+                 * long result = identity;
+                 * for (long element : this stream)
+                 * result = accumulator.applyAsLong(result, element)
+                 * return result;
+                 * }
+ * but is not constrained to execute sequentially. + *

The {@code identity} value must be an identity for the accumulator + * function. This means that for all {@code x}, + * {@code accumulator.apply(identity, x)} is equal to {@code x}. + * The {@code accumulator} function must be an + * associative function. + *

This is a terminal + * operation. + */ + // @ts-ignore + reduce(identity: number, op: java.util.function$.LongBinaryOperator): number; + /** + * Performs a reduction on the + * elements of this stream, using an + * associative accumulation + * function, and returns an {@code OptionalLong} describing the reduced value, + * if any. This is equivalent to: + *

{@code
+                 * boolean foundAny = false;
+                 * long result = null;
+                 * for (long element : this stream) {
+                 * if (!foundAny) {
+                 * foundAny = true;
+                 * result = element;
+                 * }
+                 * else
+                 * result = accumulator.applyAsLong(result, element);
+                 * }
+                 * return foundAny ? OptionalLong.of(result) : OptionalLong.empty();
+                 * }
+ * but is not constrained to execute sequentially. + *

The {@code accumulator} function must be an + * associative function. + *

This is a terminal + * operation. + */ + // @ts-ignore + reduce(op: java.util.function$.LongBinaryOperator): java.util.OptionalLong; + /** + * Performs a mutable + * reduction operation on the elements of this stream. A mutable + * reduction is one in which the reduced value is a mutable result container, + * such as an {@code ArrayList}, and elements are incorporated by updating + * the state of the result rather than by replacing the result. This + * produces a result equivalent to: + *

{@code
+                 * R result = supplier.get();
+                 * for (long element : this stream)
+                 * accumulator.accept(result, element);
+                 * return result;
+                 * }
+ *

Like {@link #reduce(long, LongBinaryOperator)}, {@code collect} operations + * can be parallelized without requiring additional synchronization. + *

This is a terminal + * operation. + */ + // @ts-ignore + collect(supplier: java.util.function$.Supplier, accumulator: java.util.function$.ObjLongConsumer, combiner: java.util.function$.BiConsumer): java.lang.Object; + /** + * Returns the sum of elements in this stream. This is a special case + * of a reduction + * and is equivalent to: + *

{@code
+                 * return reduce(0, Long::sum);
+                 * }
+ *

This is a terminal + * operation. + */ + // @ts-ignore + sum(): number; + /** + * Returns an {@code OptionalLong} describing the minimum element of this + * stream, or an empty optional if this stream is empty. This is a special + * case of a reduction + * and is equivalent to: + *

{@code
+                 * return reduce(Long::min);
+                 * }
+ *

This is a terminal operation. + */ + // @ts-ignore + min(): java.util.OptionalLong; + /** + * Returns an {@code OptionalLong} describing the maximum element of this + * stream, or an empty optional if this stream is empty. This is a special + * case of a reduction + * and is equivalent to: + *

{@code
+                 * return reduce(Long::max);
+                 * }
+ *

This is a terminal + * operation. + */ + // @ts-ignore + max(): java.util.OptionalLong; + /** + * Returns the count of elements in this stream. This is a special case of + * a reduction and is + * equivalent to: + *

{@code
+                 * return map(e -> 1L).sum();
+                 * }
+ *

This is a terminal operation. + */ + // @ts-ignore + count(): number; + /** + * Returns an {@code OptionalDouble} describing the arithmetic mean of elements of + * this stream, or an empty optional if this stream is empty. This is a + * special case of a + * reduction. + *

This is a terminal + * operation. + */ + // @ts-ignore + average(): java.util.OptionalDouble; + /** + * Returns a {@code LongSummaryStatistics} describing various summary data + * about the elements of this stream. This is a special case of a + * reduction. + *

This is a terminal + * operation. + */ + // @ts-ignore + summaryStatistics(): java.util.LongSummaryStatistics; + /** + * Returns whether any elements of this stream match the provided + * predicate. May not evaluate the predicate on all elements if not + * necessary for determining the result. If the stream is empty then + * {@code false} is returned and the predicate is not evaluated. + *

This is a short-circuiting + * terminal operation. + */ + // @ts-ignore + anyMatch(predicate: java.util.function$.LongPredicate): boolean; + /** + * Returns whether all elements of this stream match the provided predicate. + * May not evaluate the predicate on all elements if not necessary for + * determining the result. If the stream is empty then {@code true} is + * returned and the predicate is not evaluated. + *

This is a short-circuiting + * terminal operation. + */ + // @ts-ignore + allMatch(predicate: java.util.function$.LongPredicate): boolean; + /** + * Returns whether no elements of this stream match the provided predicate. + * May not evaluate the predicate on all elements if not necessary for + * determining the result. If the stream is empty then {@code true} is + * returned and the predicate is not evaluated. + *

This is a short-circuiting + * terminal operation. + */ + // @ts-ignore + noneMatch(predicate: java.util.function$.LongPredicate): boolean; + /** + * Returns an {@link OptionalLong} describing the first element of this + * stream, or an empty {@code OptionalLong} if the stream is empty. If the + * stream has no encounter order, then any element may be returned. + *

This is a short-circuiting + * terminal operation. + */ + // @ts-ignore + findFirst(): java.util.OptionalLong; + /** + * Returns an {@link OptionalLong} describing some element of the stream, or + * an empty {@code OptionalLong} if the stream is empty. + *

This is a short-circuiting + * terminal operation. + *

The behavior of this operation is explicitly nondeterministic; it is + * free to select any element in the stream. This is to allow for maximal + * performance in parallel operations; the cost is that multiple invocations + * on the same source may not return the same result. (If a stable result + * is desired, use {@link #findFirst()} instead.) + */ + // @ts-ignore + findAny(): java.util.OptionalLong; + /** + * Returns a {@code DoubleStream} consisting of the elements of this stream, + * converted to {@code double}. + *

This is an intermediate + * operation. + */ + // @ts-ignore + asDoubleStream(): java.util.stream.DoubleStream; + /** + * Returns a {@code Stream} consisting of the elements of this stream, + * each boxed to a {@code Long}. + *

This is an intermediate + * operation. + */ + // @ts-ignore + boxed(): java.util.stream.Stream; + // @ts-ignore + sequential(): java.util.stream.LongStream; + // @ts-ignore + parallel(): java.util.stream.LongStream; + // @ts-ignore + iterator(): java.util.PrimitiveIterator.OfLong; + // @ts-ignore + spliterator(): java.util.Spliterator.OfLong; + /** + * Returns a builder for a {@code LongStream}. + */ + // @ts-ignore + builder(): java.util.stream.LongStream.Builder; + /** + * Returns an empty sequential {@code LongStream}. + */ + // @ts-ignore + empty(): java.util.stream.LongStream; + /** + * Returns a sequential {@code LongStream} containing a single element. + */ + // @ts-ignore + of(t: number): java.util.stream.LongStream; + /** + * Returns a sequential ordered stream whose elements are the specified values. + */ + // @ts-ignore + of(values: number): java.util.stream.LongStream; + /** + * Returns an infinite sequential ordered {@code LongStream} produced by iterative + * application of a function {@code f} to an initial element {@code seed}, + * producing a {@code Stream} consisting of {@code seed}, {@code f(seed)}, + * {@code f(f(seed))}, etc. + *

The first element (position {@code 0}) in the {@code LongStream} will + * be the provided {@code seed}. For {@code n > 0}, the element at position + * {@code n}, will be the result of applying the function {@code f} to the + * element at position {@code n - 1}. + */ + // @ts-ignore + iterate(seed: number, f: java.util.function$.LongUnaryOperator): java.util.stream.LongStream; + /** + * Returns an infinite sequential unordered stream where each element is + * generated by the provided {@code LongSupplier}. This is suitable for + * generating constant streams, streams of random elements, etc. + */ + // @ts-ignore + generate(s: java.util.function$.LongSupplier): java.util.stream.LongStream; + /** + * Returns a sequential ordered {@code LongStream} from {@code startInclusive} + * (inclusive) to {@code endExclusive} (exclusive) by an incremental step of + * {@code 1}. + */ + // @ts-ignore + range(startInclusive: number, endExclusive: number): java.util.stream.LongStream; + /** + * Returns a sequential ordered {@code LongStream} from {@code startInclusive} + * (inclusive) to {@code endInclusive} (inclusive) by an incremental step of + * {@code 1}. + */ + // @ts-ignore + rangeClosed(startInclusive: number, endInclusive: number): java.util.stream.LongStream; + /** + * Creates a lazily concatenated stream whose elements are all the + * elements of the first stream followed by all the elements of the + * second stream. The resulting stream is ordered if both + * of the input streams are ordered, and parallel if either of the input + * streams is parallel. When the resulting stream is closed, the close + * handlers for both input streams are invoked. + */ + // @ts-ignore + concat(a: java.util.stream.LongStream, b: java.util.stream.LongStream): java.util.stream.LongStream; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.stream.Stream.Builder.d.ts b/packages/types/dist/typings/jdk/java.util.stream.Stream.Builder.d.ts new file mode 100644 index 00000000..3814f5be --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.stream.Stream.Builder.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace stream { + namespace Stream { + // @ts-ignore + interface Builder { + /** + * Adds an element to the stream being built. + */ + // @ts-ignore + accept(t: java.lang.Object): void; + /** + * Adds an element to the stream being built. + */ + // @ts-ignore + add(t: java.lang.Object): java.util.stream.Stream.Builder; + /** + * Builds the stream, transitioning this builder to the built state. + * An {@code IllegalStateException} is thrown if there are further attempts + * to operate on the builder after it has entered the built state. + */ + // @ts-ignore + build(): java.util.stream.Stream; + } + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.stream.Stream.d.ts b/packages/types/dist/typings/jdk/java.util.stream.Stream.d.ts new file mode 100644 index 00000000..5b3a9637 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.stream.Stream.d.ts @@ -0,0 +1,454 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace stream { + // @ts-ignore + interface Stream { + /** + * Returns a stream consisting of the elements of this stream that match + * the given predicate. + *

This is an intermediate + * operation. + */ + // @ts-ignore + filter(predicate: java.util.function$.Predicate): java.util.stream.Stream; + /** + * Returns a stream consisting of the results of applying the given + * function to the elements of this stream. + *

This is an intermediate + * operation. + */ + // @ts-ignore + map(mapper: java.util.function$.Function): java.util.stream.Stream; + /** + * Returns an {@code IntStream} consisting of the results of applying the + * given function to the elements of this stream. + *

This is an + * intermediate operation. + */ + // @ts-ignore + mapToInt(mapper: java.util.function$.ToIntFunction): java.util.stream.IntStream; + /** + * Returns a {@code LongStream} consisting of the results of applying the + * given function to the elements of this stream. + *

This is an intermediate + * operation. + */ + // @ts-ignore + mapToLong(mapper: java.util.function$.ToLongFunction): java.util.stream.LongStream; + /** + * Returns a {@code DoubleStream} consisting of the results of applying the + * given function to the elements of this stream. + *

This is an intermediate + * operation. + */ + // @ts-ignore + mapToDouble(mapper: java.util.function$.ToDoubleFunction): java.util.stream.DoubleStream; + /** + * Returns a stream consisting of the results of replacing each element of + * this stream with the contents of a mapped stream produced by applying + * the provided mapping function to each element. Each mapped stream is + * {@link java.util.stream.BaseStream#close() closed} after its contents + * have been placed into this stream. (If a mapped stream is {@code null} + * an empty stream is used, instead.) + *

This is an intermediate + * operation. + */ + // @ts-ignore + flatMap(mapper: java.util.function$.Function): java.util.stream.Stream; + /** + * Returns an {@code IntStream} consisting of the results of replacing each + * element of this stream with the contents of a mapped stream produced by + * applying the provided mapping function to each element. Each mapped + * stream is {@link java.util.stream.BaseStream#close() closed} after its + * contents have been placed into this stream. (If a mapped stream is + * {@code null} an empty stream is used, instead.) + *

This is an intermediate + * operation. + */ + // @ts-ignore + flatMapToInt(mapper: java.util.function$.Function): java.util.stream.IntStream; + /** + * Returns an {@code LongStream} consisting of the results of replacing each + * element of this stream with the contents of a mapped stream produced by + * applying the provided mapping function to each element. Each mapped + * stream is {@link java.util.stream.BaseStream#close() closed} after its + * contents have been placed into this stream. (If a mapped stream is + * {@code null} an empty stream is used, instead.) + *

This is an intermediate + * operation. + */ + // @ts-ignore + flatMapToLong(mapper: java.util.function$.Function): java.util.stream.LongStream; + /** + * Returns an {@code DoubleStream} consisting of the results of replacing + * each element of this stream with the contents of a mapped stream produced + * by applying the provided mapping function to each element. Each mapped + * stream is {@link java.util.stream.BaseStream#close() closed} after its + * contents have placed been into this stream. (If a mapped stream is + * {@code null} an empty stream is used, instead.) + *

This is an intermediate + * operation. + */ + // @ts-ignore + flatMapToDouble(mapper: java.util.function$.Function): java.util.stream.DoubleStream; + /** + * Returns a stream consisting of the distinct elements (according to + * {@link Object#equals(Object)}) of this stream. + *

For ordered streams, the selection of distinct elements is stable + * (for duplicated elements, the element appearing first in the encounter + * order is preserved.) For unordered streams, no stability guarantees + * are made. + *

This is a stateful + * intermediate operation. + */ + // @ts-ignore + distinct(): java.util.stream.Stream; + /** + * Returns a stream consisting of the elements of this stream, sorted + * according to natural order. If the elements of this stream are not + * {@code Comparable}, a {@code java.lang.ClassCastException} may be thrown + * when the terminal operation is executed. + *

For ordered streams, the sort is stable. For unordered streams, no + * stability guarantees are made. + *

This is a stateful + * intermediate operation. + */ + // @ts-ignore + sorted(): java.util.stream.Stream; + /** + * Returns a stream consisting of the elements of this stream, sorted + * according to the provided {@code Comparator}. + *

For ordered streams, the sort is stable. For unordered streams, no + * stability guarantees are made. + *

This is a stateful + * intermediate operation. + */ + // @ts-ignore + sorted(comparator: java.util.Comparator): java.util.stream.Stream; + /** + * Returns a stream consisting of the elements of this stream, additionally + * performing the provided action on each element as elements are consumed + * from the resulting stream. + *

This is an intermediate + * operation. + *

For parallel stream pipelines, the action may be called at + * whatever time and in whatever thread the element is made available by the + * upstream operation. If the action modifies shared state, + * it is responsible for providing the required synchronization. + */ + // @ts-ignore + peek(action: java.util.function$.Consumer): java.util.stream.Stream; + /** + * Returns a stream consisting of the elements of this stream, truncated + * to be no longer than {@code maxSize} in length. + *

This is a short-circuiting + * stateful intermediate operation. + */ + // @ts-ignore + limit(maxSize: number): java.util.stream.Stream; + /** + * Returns a stream consisting of the remaining elements of this stream + * after discarding the first {@code n} elements of the stream. + * If this stream contains fewer than {@code n} elements then an + * empty stream will be returned. + *

This is a stateful + * intermediate operation. + */ + // @ts-ignore + skip(n: number): java.util.stream.Stream; + /** + * Performs an action for each element of this stream. + *

This is a terminal + * operation. + *

The behavior of this operation is explicitly nondeterministic. + * For parallel stream pipelines, this operation does not + * guarantee to respect the encounter order of the stream, as doing so + * would sacrifice the benefit of parallelism. For any given element, the + * action may be performed at whatever time and in whatever thread the + * library chooses. If the action accesses shared state, it is + * responsible for providing the required synchronization. + */ + // @ts-ignore + forEach(action: java.util.function$.Consumer): void; + /** + * Performs an action for each element of this stream, in the encounter + * order of the stream if the stream has a defined encounter order. + *

This is a terminal + * operation. + *

This operation processes the elements one at a time, in encounter + * order if one exists. Performing the action for one element + * happens-before + * performing the action for subsequent elements, but for any given element, + * the action may be performed in whatever thread the library chooses. + */ + // @ts-ignore + forEachOrdered(action: java.util.function$.Consumer): void; + /** + * Returns an array containing the elements of this stream. + *

This is a terminal + * operation. + */ + // @ts-ignore + toArray(): java.lang.Object[]; + /** + * Returns an array containing the elements of this stream, using the + * provided {@code generator} function to allocate the returned array, as + * well as any additional arrays that might be required for a partitioned + * execution or for resizing. + *

This is a terminal + * operation. + */ + // @ts-ignore + toArray(generator: java.util.function$.IntFunction): java.lang.Object[]; + /** + * Performs a reduction on the + * elements of this stream, using the provided identity value and an + * associative + * accumulation function, and returns the reduced value. This is equivalent + * to: + *

{@code
+                 * T result = identity;
+                 * for (T element : this stream)
+                 * result = accumulator.apply(result, element)
+                 * return result;
+                 * }
+ * but is not constrained to execute sequentially. + *

The {@code identity} value must be an identity for the accumulator + * function. This means that for all {@code t}, + * {@code accumulator.apply(identity, t)} is equal to {@code t}. + * The {@code accumulator} function must be an + * associative function. + *

This is a terminal + * operation. + */ + // @ts-ignore + reduce(identity: java.lang.Object, accumulator: java.util.function$.BinaryOperator): java.lang.Object; + /** + * Performs a reduction on the + * elements of this stream, using an + * associative accumulation + * function, and returns an {@code Optional} describing the reduced value, + * if any. This is equivalent to: + *

{@code
+                 * boolean foundAny = false;
+                 * T result = null;
+                 * for (T element : this stream) {
+                 * if (!foundAny) {
+                 * foundAny = true;
+                 * result = element;
+                 * }
+                 * else
+                 * result = accumulator.apply(result, element);
+                 * }
+                 * return foundAny ? Optional.of(result) : Optional.empty();
+                 * }
+ * but is not constrained to execute sequentially. + *

The {@code accumulator} function must be an + * associative function. + *

This is a terminal + * operation. + */ + // @ts-ignore + reduce(accumulator: java.util.function$.BinaryOperator): java.util.Optional; + /** + * Performs a reduction on the + * elements of this stream, using the provided identity, accumulation and + * combining functions. This is equivalent to: + *

{@code
+                 * U result = identity;
+                 * for (T element : this stream)
+                 * result = accumulator.apply(result, element)
+                 * return result;
+                 * }
+ * but is not constrained to execute sequentially. + *

The {@code identity} value must be an identity for the combiner + * function. This means that for all {@code u}, {@code combiner(identity, u)} + * is equal to {@code u}. Additionally, the {@code combiner} function + * must be compatible with the {@code accumulator} function; for all + * {@code u} and {@code t}, the following must hold: + *

{@code
+                 * combiner.apply(u, accumulator.apply(identity, t)) == accumulator.apply(u, t)
+                 * }
+ *

This is a terminal + * operation. + */ + // @ts-ignore + reduce(identity: java.lang.Object, accumulator: java.util.function$.BiFunction, combiner: java.util.function$.BinaryOperator): java.lang.Object; + /** + * Performs a mutable + * reduction operation on the elements of this stream. A mutable + * reduction is one in which the reduced value is a mutable result container, + * such as an {@code ArrayList}, and elements are incorporated by updating + * the state of the result rather than by replacing the result. This + * produces a result equivalent to: + *

{@code
+                 * R result = supplier.get();
+                 * for (T element : this stream)
+                 * accumulator.accept(result, element);
+                 * return result;
+                 * }
+ *

Like {@link #reduce(Object, BinaryOperator)}, {@code collect} operations + * can be parallelized without requiring additional synchronization. + *

This is a terminal + * operation. + */ + // @ts-ignore + collect(supplier: java.util.function$.Supplier, accumulator: java.util.function$.BiConsumer, combiner: java.util.function$.BiConsumer): java.lang.Object; + /** + * Performs a mutable + * reduction operation on the elements of this stream using a + * {@code Collector}. A {@code Collector} + * encapsulates the functions used as arguments to + * {@link #collect(Supplier, BiConsumer, BiConsumer)}, allowing for reuse of + * collection strategies and composition of collect operations such as + * multiple-level grouping or partitioning. + *

If the stream is parallel, and the {@code Collector} + * is {@link Collector.Characteristics#CONCURRENT concurrent}, and + * either the stream is unordered or the collector is + * {@link Collector.Characteristics#UNORDERED unordered}, + * then a concurrent reduction will be performed (see {@link Collector} for + * details on concurrent reduction.) + *

This is a terminal + * operation. + *

When executed in parallel, multiple intermediate results may be + * instantiated, populated, and merged so as to maintain isolation of + * mutable data structures. Therefore, even when executed in parallel + * with non-thread-safe data structures (such as {@code ArrayList}), no + * additional synchronization is needed for a parallel reduction. + */ + // @ts-ignore + collect(collector: java.util.stream.Collector): java.lang.Object; + /** + * Returns the minimum element of this stream according to the provided + * {@code Comparator}. This is a special case of a + * reduction. + *

This is a terminal operation. + */ + // @ts-ignore + min(comparator: java.util.Comparator): java.util.Optional; + /** + * Returns the maximum element of this stream according to the provided + * {@code Comparator}. This is a special case of a + * reduction. + *

This is a terminal + * operation. + */ + // @ts-ignore + max(comparator: java.util.Comparator): java.util.Optional; + /** + * Returns the count of elements in this stream. This is a special case of + * a reduction and is + * equivalent to: + *

{@code
+                 * return mapToLong(e -> 1L).sum();
+                 * }
+ *

This is a terminal operation. + */ + // @ts-ignore + count(): number; + /** + * Returns whether any elements of this stream match the provided + * predicate. May not evaluate the predicate on all elements if not + * necessary for determining the result. If the stream is empty then + * {@code false} is returned and the predicate is not evaluated. + *

This is a short-circuiting + * terminal operation. + */ + // @ts-ignore + anyMatch(predicate: java.util.function$.Predicate): boolean; + /** + * Returns whether all elements of this stream match the provided predicate. + * May not evaluate the predicate on all elements if not necessary for + * determining the result. If the stream is empty then {@code true} is + * returned and the predicate is not evaluated. + *

This is a short-circuiting + * terminal operation. + */ + // @ts-ignore + allMatch(predicate: java.util.function$.Predicate): boolean; + /** + * Returns whether no elements of this stream match the provided predicate. + * May not evaluate the predicate on all elements if not necessary for + * determining the result. If the stream is empty then {@code true} is + * returned and the predicate is not evaluated. + *

This is a short-circuiting + * terminal operation. + */ + // @ts-ignore + noneMatch(predicate: java.util.function$.Predicate): boolean; + /** + * Returns an {@link Optional} describing the first element of this stream, + * or an empty {@code Optional} if the stream is empty. If the stream has + * no encounter order, then any element may be returned. + *

This is a short-circuiting + * terminal operation. + */ + // @ts-ignore + findFirst(): java.util.Optional; + /** + * Returns an {@link Optional} describing some element of the stream, or an + * empty {@code Optional} if the stream is empty. + *

This is a short-circuiting + * terminal operation. + *

The behavior of this operation is explicitly nondeterministic; it is + * free to select any element in the stream. This is to allow for maximal + * performance in parallel operations; the cost is that multiple invocations + * on the same source may not return the same result. (If a stable result + * is desired, use {@link #findFirst()} instead.) + */ + // @ts-ignore + findAny(): java.util.Optional; + /** + * Returns a builder for a {@code Stream}. + */ + // @ts-ignore + builder(): java.util.stream.Stream.Builder; + /** + * Returns an empty sequential {@code Stream}. + */ + // @ts-ignore + empty(): java.util.stream.Stream; + /** + * Returns a sequential {@code Stream} containing a single element. + */ + // @ts-ignore + of(t: java.lang.Object): java.util.stream.Stream; + /** + * Returns a sequential ordered stream whose elements are the specified values. + */ + // @ts-ignore + of(values: java.lang.Object): java.util.stream.Stream; + /** + * Returns an infinite sequential ordered {@code Stream} produced by iterative + * application of a function {@code f} to an initial element {@code seed}, + * producing a {@code Stream} consisting of {@code seed}, {@code f(seed)}, + * {@code f(f(seed))}, etc. + *

The first element (position {@code 0}) in the {@code Stream} will be + * the provided {@code seed}. For {@code n > 0}, the element at position + * {@code n}, will be the result of applying the function {@code f} to the + * element at position {@code n - 1}. + */ + // @ts-ignore + iterate(seed: java.lang.Object, f: java.util.function$.UnaryOperator): java.util.stream.Stream; + /** + * Returns an infinite sequential unordered stream where each element is + * generated by the provided {@code Supplier}. This is suitable for + * generating constant streams, streams of random elements, etc. + */ + // @ts-ignore + generate(s: java.util.function$.Supplier): java.util.stream.Stream; + /** + * Creates a lazily concatenated stream whose elements are all the + * elements of the first stream followed by all the elements of the + * second stream. The resulting stream is ordered if both + * of the input streams are ordered, and parallel if either of the input + * streams is parallel. When the resulting stream is closed, the close + * handlers for both input streams are invoked. + */ + // @ts-ignore + concat(a: java.util.stream.Stream, b: java.util.stream.Stream): java.util.stream.Stream; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.stream.StreamSupport.d.ts b/packages/types/dist/typings/jdk/java.util.stream.StreamSupport.d.ts new file mode 100644 index 00000000..b0daf548 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.stream.StreamSupport.d.ts @@ -0,0 +1,154 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace stream { + // @ts-ignore + class StreamSupport extends java.lang.Object { + /** + * Creates a new sequential or parallel {@code Stream} from a + * {@code Spliterator}. + *

The spliterator is only traversed, split, or queried for estimated + * size after the terminal operation of the stream pipeline commences. + *

It is strongly recommended the spliterator report a characteristic of + * {@code IMMUTABLE} or {@code CONCURRENT}, or be + * late-binding. Otherwise, + * {@link #stream(java.util.function.Supplier, int, boolean)} should be used + * to reduce the scope of potential interference with the source. See + * Non-Interference for + * more details. + */ + // @ts-ignore + public static stream(spliterator: java.util.Spliterator, parallel: boolean): java.util.stream.Stream; + /** + * Creates a new sequential or parallel {@code Stream} from a + * {@code Supplier} of {@code Spliterator}. + *

The {@link Supplier#get()} method will be invoked on the supplier no + * more than once, and only after the terminal operation of the stream pipeline + * commences. + *

For spliterators that report a characteristic of {@code IMMUTABLE} + * or {@code CONCURRENT}, or that are + * late-binding, it is likely + * more efficient to use {@link #stream(java.util.Spliterator, boolean)} + * instead. + *

The use of a {@code Supplier} in this form provides a level of + * indirection that reduces the scope of potential interference with the + * source. Since the supplier is only invoked after the terminal operation + * commences, any modifications to the source up to the start of the + * terminal operation are reflected in the stream result. See + * Non-Interference for + * more details. + */ + // @ts-ignore + public static stream(supplier: java.util.function$.Supplier, characteristics: number, parallel: boolean): java.util.stream.Stream; + /** + * Creates a new sequential or parallel {@code IntStream} from a + * {@code Spliterator.OfInt}. + *

The spliterator is only traversed, split, or queried for estimated size + * after the terminal operation of the stream pipeline commences. + *

It is strongly recommended the spliterator report a characteristic of + * {@code IMMUTABLE} or {@code CONCURRENT}, or be + * late-binding. Otherwise, + * {@link #intStream(java.util.function.Supplier, int, boolean)} should be + * used to reduce the scope of potential interference with the source. See + * Non-Interference for + * more details. + */ + // @ts-ignore + public static intStream(spliterator: java.util.Spliterator.OfInt, parallel: boolean): java.util.stream.IntStream; + /** + * Creates a new sequential or parallel {@code IntStream} from a + * {@code Supplier} of {@code Spliterator.OfInt}. + *

The {@link Supplier#get()} method will be invoked on the supplier no + * more than once, and only after the terminal operation of the stream pipeline + * commences. + *

For spliterators that report a characteristic of {@code IMMUTABLE} + * or {@code CONCURRENT}, or that are + * late-binding, it is likely + * more efficient to use {@link #intStream(java.util.Spliterator.OfInt, boolean)} + * instead. + *

The use of a {@code Supplier} in this form provides a level of + * indirection that reduces the scope of potential interference with the + * source. Since the supplier is only invoked after the terminal operation + * commences, any modifications to the source up to the start of the + * terminal operation are reflected in the stream result. See + * Non-Interference for + * more details. + */ + // @ts-ignore + public static intStream(supplier: java.util.function$.Supplier, characteristics: number, parallel: boolean): java.util.stream.IntStream; + /** + * Creates a new sequential or parallel {@code LongStream} from a + * {@code Spliterator.OfLong}. + *

The spliterator is only traversed, split, or queried for estimated + * size after the terminal operation of the stream pipeline commences. + *

It is strongly recommended the spliterator report a characteristic of + * {@code IMMUTABLE} or {@code CONCURRENT}, or be + * late-binding. Otherwise, + * {@link #longStream(java.util.function.Supplier, int, boolean)} should be + * used to reduce the scope of potential interference with the source. See + * Non-Interference for + * more details. + */ + // @ts-ignore + public static longStream(spliterator: java.util.Spliterator.OfLong, parallel: boolean): java.util.stream.LongStream; + /** + * Creates a new sequential or parallel {@code LongStream} from a + * {@code Supplier} of {@code Spliterator.OfLong}. + *

The {@link Supplier#get()} method will be invoked on the supplier no + * more than once, and only after the terminal operation of the stream pipeline + * commences. + *

For spliterators that report a characteristic of {@code IMMUTABLE} + * or {@code CONCURRENT}, or that are + * late-binding, it is likely + * more efficient to use {@link #longStream(java.util.Spliterator.OfLong, boolean)} + * instead. + *

The use of a {@code Supplier} in this form provides a level of + * indirection that reduces the scope of potential interference with the + * source. Since the supplier is only invoked after the terminal operation + * commences, any modifications to the source up to the start of the + * terminal operation are reflected in the stream result. See + * Non-Interference for + * more details. + */ + // @ts-ignore + public static longStream(supplier: java.util.function$.Supplier, characteristics: number, parallel: boolean): java.util.stream.LongStream; + /** + * Creates a new sequential or parallel {@code DoubleStream} from a + * {@code Spliterator.OfDouble}. + *

The spliterator is only traversed, split, or queried for estimated size + * after the terminal operation of the stream pipeline commences. + *

It is strongly recommended the spliterator report a characteristic of + * {@code IMMUTABLE} or {@code CONCURRENT}, or be + * late-binding. Otherwise, + * {@link #doubleStream(java.util.function.Supplier, int, boolean)} should + * be used to reduce the scope of potential interference with the source. See + * Non-Interference for + * more details. + */ + // @ts-ignore + public static doubleStream(spliterator: java.util.Spliterator.OfDouble, parallel: boolean): java.util.stream.DoubleStream; + /** + * Creates a new sequential or parallel {@code DoubleStream} from a + * {@code Supplier} of {@code Spliterator.OfDouble}. + *

The {@link Supplier#get()} method will be invoked on the supplier no + * more than once, and only after the terminal operation of the stream pipeline + * commences. + *

For spliterators that report a characteristic of {@code IMMUTABLE} + * or {@code CONCURRENT}, or that are + * late-binding, it is likely + * more efficient to use {@link #doubleStream(java.util.Spliterator.OfDouble, boolean)} + * instead. + *

The use of a {@code Supplier} in this form provides a level of + * indirection that reduces the scope of potential interference with the + * source. Since the supplier is only invoked after the terminal operation + * commences, any modifications to the source up to the start of the + * terminal operation are reflected in the stream result. See + * Non-Interference for + * more details. + */ + // @ts-ignore + public static doubleStream(supplier: java.util.function$.Supplier, characteristics: number, parallel: boolean): java.util.stream.DoubleStream; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.zip.Adler32.d.ts b/packages/types/dist/typings/jdk/java.util.zip.Adler32.d.ts new file mode 100644 index 00000000..d1e662a4 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.zip.Adler32.d.ts @@ -0,0 +1,52 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace zip { + // @ts-ignore + class Adler32 extends java.lang.Object { + /** + * Creates a new Adler32 object. + */ + // @ts-ignore + constructor() + /** + * Updates the checksum with the specified byte (the low eight + * bits of the argument b). + */ + // @ts-ignore + public update(b: number): void; + /** + * Updates the checksum with the specified array of bytes. + */ + // @ts-ignore + public update(b: number, off: number, len: number): void; + /** + * Updates the checksum with the specified array of bytes. + */ + // @ts-ignore + public update(b: number): void; + /** + * Updates the checksum with the bytes from the specified buffer. + * The checksum is updated using + * buffer.{@link java.nio.Buffer#remaining() remaining()} + * bytes starting at + * buffer.{@link java.nio.Buffer#position() position()} + * Upon return, the buffer's position will be updated to its + * limit; its limit will not have been changed. + */ + // @ts-ignore + public update(buffer: java.nio.ByteBuffer): void; + /** + * Resets the checksum to initial value. + */ + // @ts-ignore + public reset(): void; + /** + * Returns the checksum value. + */ + // @ts-ignore + public getValue(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.zip.CRC32.d.ts b/packages/types/dist/typings/jdk/java.util.zip.CRC32.d.ts new file mode 100644 index 00000000..4f1f84e7 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.zip.CRC32.d.ts @@ -0,0 +1,52 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace zip { + // @ts-ignore + class CRC32 extends java.lang.Object { + /** + * Creates a new CRC32 object. + */ + // @ts-ignore + constructor() + /** + * Updates the CRC-32 checksum with the specified byte (the low + * eight bits of the argument b). + */ + // @ts-ignore + public update(b: number): void; + /** + * Updates the CRC-32 checksum with the specified array of bytes. + */ + // @ts-ignore + public update(b: number, off: number, len: number): void; + /** + * Updates the CRC-32 checksum with the specified array of bytes. + */ + // @ts-ignore + public update(b: number): void; + /** + * Updates the checksum with the bytes from the specified buffer. + * The checksum is updated using + * buffer.{@link java.nio.Buffer#remaining() remaining()} + * bytes starting at + * buffer.{@link java.nio.Buffer#position() position()} + * Upon return, the buffer's position will + * be updated to its limit; its limit will not have been changed. + */ + // @ts-ignore + public update(buffer: java.nio.ByteBuffer): void; + /** + * Resets CRC-32 to initial value. + */ + // @ts-ignore + public reset(): void; + /** + * Returns CRC-32 value. + */ + // @ts-ignore + public getValue(): number; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.zip.CheckedInputStream.d.ts b/packages/types/dist/typings/jdk/java.util.zip.CheckedInputStream.d.ts new file mode 100644 index 00000000..b38112db --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.zip.CheckedInputStream.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace zip { + // @ts-ignore + class CheckedInputStream extends java.io.FilterInputStream { + /** + * Creates an input stream using the specified Checksum. + */ + // @ts-ignore + constructor(input: java.io.InputStream, cksum: java.util.zip.Checksum) + /** + * Reads a byte. Will block if no input is available. + */ + // @ts-ignore + public read(): number; + /** + * Reads into an array of bytes. If len is not zero, the method + * blocks until some input is available; otherwise, no + * bytes are read and 0 is returned. + */ + // @ts-ignore + public read(buf: number, off: number, len: number): number; + /** + * Skips specified number of bytes of input. + */ + // @ts-ignore + public skip(n: number): number; + /** + * Returns the Checksum for this input stream. + */ + // @ts-ignore + public getChecksum(): java.util.zip.Checksum; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.zip.CheckedOutputStream.d.ts b/packages/types/dist/typings/jdk/java.util.zip.CheckedOutputStream.d.ts new file mode 100644 index 00000000..572e003a --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.zip.CheckedOutputStream.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace zip { + // @ts-ignore + class CheckedOutputStream extends java.io.FilterOutputStream { + /** + * Creates an output stream with the specified Checksum. + */ + // @ts-ignore + constructor(out: java.io.OutputStream, cksum: java.util.zip.Checksum) + /** + * Writes a byte. Will block until the byte is actually written. + */ + // @ts-ignore + public write(b: number): void; + /** + * Writes an array of bytes. Will block until the bytes are + * actually written. + */ + // @ts-ignore + public write(b: number, off: number, len: number): void; + /** + * Returns the Checksum for this output stream. + */ + // @ts-ignore + public getChecksum(): java.util.zip.Checksum; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.zip.Checksum.d.ts b/packages/types/dist/typings/jdk/java.util.zip.Checksum.d.ts new file mode 100644 index 00000000..9b74de49 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.zip.Checksum.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace zip { + // @ts-ignore + interface Checksum { + /** + * Updates the current checksum with the specified byte. + */ + // @ts-ignore + update(b: number): void; + /** + * Updates the current checksum with the specified array of bytes. + */ + // @ts-ignore + update(b: number, off: number, len: number): void; + /** + * Returns the current checksum value. + */ + // @ts-ignore + getValue(): number; + /** + * Resets the checksum to its initial value. + */ + // @ts-ignore + reset(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.zip.DataFormatException.d.ts b/packages/types/dist/typings/jdk/java.util.zip.DataFormatException.d.ts new file mode 100644 index 00000000..abf5e0e0 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.zip.DataFormatException.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace zip { + // @ts-ignore + class DataFormatException extends java.lang.Exception { + /** + * Constructs a DataFormatException with no detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs a DataFormatException with the specified detail message. + * A detail message is a String that describes this particular exception. + */ + // @ts-ignore + constructor(s: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.zip.Deflater.d.ts b/packages/types/dist/typings/jdk/java.util.zip.Deflater.d.ts new file mode 100644 index 00000000..24208a11 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.zip.Deflater.d.ts @@ -0,0 +1,224 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace zip { + // @ts-ignore + class Deflater extends java.lang.Object { + /** + * Creates a new compressor using the specified compression level. + * If 'nowrap' is true then the ZLIB header and checksum fields will + * not be used in order to support the compression format used in + * both GZIP and PKZIP. + */ + // @ts-ignore + constructor(level: number, nowrap: boolean) + /** + * Creates a new compressor using the specified compression level. + * Compressed data will be generated in ZLIB format. + */ + // @ts-ignore + constructor(level: number) + /** + * Creates a new compressor with the default compression level. + * Compressed data will be generated in ZLIB format. + */ + // @ts-ignore + constructor() + // @ts-ignore + public static DEFLATED: number; + // @ts-ignore + public static NO_COMPRESSION: number; + // @ts-ignore + public static BEST_SPEED: number; + // @ts-ignore + public static BEST_COMPRESSION: number; + // @ts-ignore + public static DEFAULT_COMPRESSION: number; + // @ts-ignore + public static FILTERED: number; + // @ts-ignore + public static HUFFMAN_ONLY: number; + // @ts-ignore + public static DEFAULT_STRATEGY: number; + // @ts-ignore + public static NO_FLUSH: number; + // @ts-ignore + public static SYNC_FLUSH: number; + // @ts-ignore + public static FULL_FLUSH: number; + /** + * Sets input data for compression. This should be called whenever + * needsInput() returns true indicating that more input data is required. + */ + // @ts-ignore + public setInput(b: number, off: number, len: number): void; + /** + * Sets input data for compression. This should be called whenever + * needsInput() returns true indicating that more input data is required. + */ + // @ts-ignore + public setInput(b: number): void; + /** + * Sets preset dictionary for compression. A preset dictionary is used + * when the history buffer can be predetermined. When the data is later + * uncompressed with Inflater.inflate(), Inflater.getAdler() can be called + * in order to get the Adler-32 value of the dictionary required for + * decompression. + */ + // @ts-ignore + public setDictionary(b: number, off: number, len: number): void; + /** + * Sets preset dictionary for compression. A preset dictionary is used + * when the history buffer can be predetermined. When the data is later + * uncompressed with Inflater.inflate(), Inflater.getAdler() can be called + * in order to get the Adler-32 value of the dictionary required for + * decompression. + */ + // @ts-ignore + public setDictionary(b: number): void; + /** + * Sets the compression strategy to the specified value. + *

If the compression strategy is changed, the next invocation + * of {@code deflate} will compress the input available so far with + * the old strategy (and may be flushed); the new strategy will take + * effect only after that invocation. + */ + // @ts-ignore + public setStrategy(strategy: number): void; + /** + * Sets the compression level to the specified value. + *

If the compression level is changed, the next invocation + * of {@code deflate} will compress the input available so far + * with the old level (and may be flushed); the new level will + * take effect only after that invocation. + */ + // @ts-ignore + public setLevel(level: number): void; + /** + * Returns true if the input data buffer is empty and setInput() + * should be called in order to provide more input. + */ + // @ts-ignore + public needsInput(): boolean; + /** + * When called, indicates that compression should end with the current + * contents of the input buffer. + */ + // @ts-ignore + public finish(): void; + /** + * Returns true if the end of the compressed data output stream has + * been reached. + */ + // @ts-ignore + public finished(): boolean; + /** + * Compresses the input data and fills specified buffer with compressed + * data. Returns actual number of bytes of compressed data. A return value + * of 0 indicates that {@link #needsInput() needsInput} should be called + * in order to determine if more input data is required. + *

This method uses {@link #NO_FLUSH} as its compression flush mode. + * An invocation of this method of the form {@code deflater.deflate(b, off, len)} + * yields the same result as the invocation of + * {@code deflater.deflate(b, off, len, Deflater.NO_FLUSH)}. + */ + // @ts-ignore + public deflate(b: number, off: number, len: number): number; + /** + * Compresses the input data and fills specified buffer with compressed + * data. Returns actual number of bytes of compressed data. A return value + * of 0 indicates that {@link #needsInput() needsInput} should be called + * in order to determine if more input data is required. + *

This method uses {@link #NO_FLUSH} as its compression flush mode. + * An invocation of this method of the form {@code deflater.deflate(b)} + * yields the same result as the invocation of + * {@code deflater.deflate(b, 0, b.length, Deflater.NO_FLUSH)}. + */ + // @ts-ignore + public deflate(b: number): number; + /** + * Compresses the input data and fills the specified buffer with compressed + * data. Returns actual number of bytes of data compressed. + *

Compression flush mode is one of the following three modes: + *

    + *
  • {@link #NO_FLUSH}: allows the deflater to decide how much data + * to accumulate, before producing output, in order to achieve the best + * compression (should be used in normal use scenario). A return value + * of 0 in this flush mode indicates that {@link #needsInput()} should + * be called in order to determine if more input data is required. + *
  • {@link #SYNC_FLUSH}: all pending output in the deflater is flushed, + * to the specified output buffer, so that an inflater that works on + * compressed data can get all input data available so far (In particular + * the {@link #needsInput()} returns {@code true} after this invocation + * if enough output space is provided). Flushing with {@link #SYNC_FLUSH} + * may degrade compression for some compression algorithms and so it + * should be used only when necessary. + *
  • {@link #FULL_FLUSH}: all pending output is flushed out as with + * {@link #SYNC_FLUSH}. The compression state is reset so that the inflater + * that works on the compressed output data can restart from this point + * if previous compressed data has been damaged or if random access is + * desired. Using {@link #FULL_FLUSH} too often can seriously degrade + * compression. + *
+ *

In the case of {@link #FULL_FLUSH} or {@link #SYNC_FLUSH}, if + * the return value is {@code len}, the space available in output + * buffer {@code b}, this method should be invoked again with the same + * {@code flush} parameter and more output space. + */ + // @ts-ignore + public deflate(b: number, off: number, len: number, flush: number): number; + /** + * Returns the ADLER-32 value of the uncompressed data. + */ + // @ts-ignore + public getAdler(): number; + /** + * Returns the total number of uncompressed bytes input so far. + *

Since the number of bytes may be greater than + * Integer.MAX_VALUE, the {@link #getBytesRead()} method is now + * the preferred means of obtaining this information.

+ */ + // @ts-ignore + public getTotalIn(): number; + /** + * Returns the total number of uncompressed bytes input so far. + */ + // @ts-ignore + public getBytesRead(): number; + /** + * Returns the total number of compressed bytes output so far. + *

Since the number of bytes may be greater than + * Integer.MAX_VALUE, the {@link #getBytesWritten()} method is now + * the preferred means of obtaining this information.

+ */ + // @ts-ignore + public getTotalOut(): number; + /** + * Returns the total number of compressed bytes output so far. + */ + // @ts-ignore + public getBytesWritten(): number; + /** + * Resets deflater so that a new set of input data can be processed. + * Keeps current compression level and strategy settings. + */ + // @ts-ignore + public reset(): void; + /** + * Closes the compressor and discards any unprocessed input. + * This method should be called when the compressor is no longer + * being used, but will also be called automatically by the + * finalize() method. Once this method is called, the behavior + * of the Deflater object is undefined. + */ + // @ts-ignore + public end(): void; + /** + * Closes the compressor when garbage is collected. + */ + // @ts-ignore + protected finalize(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.zip.DeflaterInputStream.d.ts b/packages/types/dist/typings/jdk/java.util.zip.DeflaterInputStream.d.ts new file mode 100644 index 00000000..ccb3b7bc --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.zip.DeflaterInputStream.d.ts @@ -0,0 +1,83 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace zip { + // @ts-ignore + class DeflaterInputStream extends java.io.FilterInputStream { + /** + * Creates a new input stream with a default compressor and buffer + * size. + */ + // @ts-ignore + constructor(input: java.io.InputStream) + /** + * Creates a new input stream with the specified compressor and a + * default buffer size. + */ + // @ts-ignore + constructor(input: java.io.InputStream, defl: java.util.zip.Deflater) + /** + * Creates a new input stream with the specified compressor and buffer + * size. + */ + // @ts-ignore + constructor(input: java.io.InputStream, defl: java.util.zip.Deflater, bufLen: number) + // @ts-ignore + protected def: java.util.zip.Deflater; + // @ts-ignore + protected buf: number[]; + /** + * Closes this input stream and its underlying input stream, discarding + * any pending uncompressed data. + */ + // @ts-ignore + public close(): void; + /** + * Reads a single byte of compressed data from the input stream. + * This method will block until some input can be read and compressed. + */ + // @ts-ignore + public read(): number; + /** + * Reads compressed data into a byte array. + * This method will block until some input can be read and compressed. + */ + // @ts-ignore + public read(b: number, off: number, len: number): number; + /** + * Skips over and discards data from the input stream. + * This method may block until the specified number of bytes are read and + * skipped. Note: While {@code n} is given as a {@code long}, + * the maximum number of bytes which can be skipped is + * {@code Integer.MAX_VALUE}. + */ + // @ts-ignore + public skip(n: number): number; + /** + * Returns 0 after EOF has been reached, otherwise always return 1. + *

+ * Programs should not count on this method to return the actual number + * of bytes that could be read without blocking + */ + // @ts-ignore + public available(): number; + /** + * Always returns {@code false} because this input stream does not support + * the {@link #mark mark()} and {@link #reset reset()} methods. + */ + // @ts-ignore + public markSupported(): boolean; + /** + * This operation is not supported. + */ + // @ts-ignore + public mark(limit: number): void; + /** + * This operation is not supported. + */ + // @ts-ignore + public reset(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.zip.DeflaterOutputStream.d.ts b/packages/types/dist/typings/jdk/java.util.zip.DeflaterOutputStream.d.ts new file mode 100644 index 00000000..97e910a5 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.zip.DeflaterOutputStream.d.ts @@ -0,0 +1,97 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace zip { + // @ts-ignore + class DeflaterOutputStream extends java.io.FilterOutputStream { + /** + * Creates a new output stream with the specified compressor, + * buffer size and flush mode. + */ + // @ts-ignore + constructor(out: java.io.OutputStream, def: java.util.zip.Deflater, size: number, syncFlush: boolean) + /** + * Creates a new output stream with the specified compressor and + * buffer size. + *

The new output stream instance is created as if by invoking + * the 4-argument constructor DeflaterOutputStream(out, def, size, false). + */ + // @ts-ignore + constructor(out: java.io.OutputStream, def: java.util.zip.Deflater, size: number) + /** + * Creates a new output stream with the specified compressor, flush + * mode and a default buffer size. + */ + // @ts-ignore + constructor(out: java.io.OutputStream, def: java.util.zip.Deflater, syncFlush: boolean) + /** + * Creates a new output stream with the specified compressor and + * a default buffer size. + *

The new output stream instance is created as if by invoking + * the 3-argument constructor DeflaterOutputStream(out, def, false). + */ + // @ts-ignore + constructor(out: java.io.OutputStream, def: java.util.zip.Deflater) + /** + * Creates a new output stream with a default compressor, a default + * buffer size and the specified flush mode. + */ + // @ts-ignore + constructor(out: java.io.OutputStream, syncFlush: boolean) + /** + * Creates a new output stream with a default compressor and buffer size. + *

The new output stream instance is created as if by invoking + * the 2-argument constructor DeflaterOutputStream(out, false). + */ + // @ts-ignore + constructor(out: java.io.OutputStream) + // @ts-ignore + protected def: java.util.zip.Deflater; + // @ts-ignore + protected buf: number[]; + /** + * Writes a byte to the compressed output stream. This method will + * block until the byte can be written. + */ + // @ts-ignore + public write(b: number): void; + /** + * Writes an array of bytes to the compressed output stream. This + * method will block until all the bytes are written. + */ + // @ts-ignore + public write(b: number, off: number, len: number): void; + /** + * Finishes writing compressed data to the output stream without closing + * the underlying stream. Use this method when applying multiple filters + * in succession to the same output stream. + */ + // @ts-ignore + public finish(): void; + /** + * Writes remaining compressed data to the output stream and closes the + * underlying stream. + */ + // @ts-ignore + public close(): void; + /** + * Writes next block of compressed data to the output stream. + */ + // @ts-ignore + protected deflate(): void; + /** + * Flushes the compressed output stream. + * If {@link #DeflaterOutputStream(OutputStream, Deflater, int, boolean) + * syncFlush} is {@code true} when this compressed output stream is + * constructed, this method first flushes the underlying {@code compressor} + * with the flush mode {@link Deflater#SYNC_FLUSH} to force + * all pending data to be flushed out to the output stream and then + * flushes the output stream. Otherwise this method only flushes the + * output stream without flushing the {@code compressor}. + */ + // @ts-ignore + public flush(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.zip.GZIPInputStream.d.ts b/packages/types/dist/typings/jdk/java.util.zip.GZIPInputStream.d.ts new file mode 100644 index 00000000..33811e52 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.zip.GZIPInputStream.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace zip { + // @ts-ignore + class GZIPInputStream extends java.util.zip.InflaterInputStream { + /** + * Creates a new input stream with the specified buffer size. + */ + // @ts-ignore + constructor(input: java.io.InputStream, size: number) + /** + * Creates a new input stream with a default buffer size. + */ + // @ts-ignore + constructor(input: java.io.InputStream) + // @ts-ignore + protected crc: java.util.zip.CRC32; + // @ts-ignore + protected eos: boolean; + // @ts-ignore + public static GZIP_MAGIC: number; + /** + * Reads uncompressed data into an array of bytes. If len is not + * zero, the method will block until some input can be decompressed; otherwise, + * no bytes are read and 0 is returned. + */ + // @ts-ignore + public read(buf: number, off: number, len: number): number; + /** + * Closes this input stream and releases any system resources associated + * with the stream. + */ + // @ts-ignore + public close(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.zip.GZIPOutputStream.d.ts b/packages/types/dist/typings/jdk/java.util.zip.GZIPOutputStream.d.ts new file mode 100644 index 00000000..5fb8e700 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.zip.GZIPOutputStream.d.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace zip { + // @ts-ignore + class GZIPOutputStream extends java.util.zip.DeflaterOutputStream { + /** + * Creates a new output stream with the specified buffer size. + *

The new output stream instance is created as if by invoking + * the 3-argument constructor GZIPOutputStream(out, size, false). + */ + // @ts-ignore + constructor(out: java.io.OutputStream, size: number) + /** + * Creates a new output stream with the specified buffer size and + * flush mode. + */ + // @ts-ignore + constructor(out: java.io.OutputStream, size: number, syncFlush: boolean) + /** + * Creates a new output stream with a default buffer size. + *

The new output stream instance is created as if by invoking + * the 2-argument constructor GZIPOutputStream(out, false). + */ + // @ts-ignore + constructor(out: java.io.OutputStream) + /** + * Creates a new output stream with a default buffer size and + * the specified flush mode. + */ + // @ts-ignore + constructor(out: java.io.OutputStream, syncFlush: boolean) + // @ts-ignore + protected crc: java.util.zip.CRC32; + /** + * Writes array of bytes to the compressed output stream. This method + * will block until all the bytes are written. + */ + // @ts-ignore + public write(buf: number, off: number, len: number): void; + /** + * Finishes writing compressed data to the output stream without closing + * the underlying stream. Use this method when applying multiple filters + * in succession to the same output stream. + */ + // @ts-ignore + public finish(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.zip.Inflater.d.ts b/packages/types/dist/typings/jdk/java.util.zip.Inflater.d.ts new file mode 100644 index 00000000..2de8eeeb --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.zip.Inflater.d.ts @@ -0,0 +1,151 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace zip { + // @ts-ignore + class Inflater extends java.lang.Object { + /** + * Creates a new decompressor. If the parameter 'nowrap' is true then + * the ZLIB header and checksum fields will not be used. This provides + * compatibility with the compression format used by both GZIP and PKZIP. + *

+ * Note: When using the 'nowrap' option it is also necessary to provide + * an extra "dummy" byte as input. This is required by the ZLIB native + * library in order to support certain optimizations. + */ + // @ts-ignore + constructor(nowrap: boolean) + /** + * Creates a new decompressor. + */ + // @ts-ignore + constructor() + /** + * Sets input data for decompression. Should be called whenever + * needsInput() returns true indicating that more input data is + * required. + */ + // @ts-ignore + public setInput(b: number, off: number, len: number): void; + /** + * Sets input data for decompression. Should be called whenever + * needsInput() returns true indicating that more input data is + * required. + */ + // @ts-ignore + public setInput(b: number): void; + /** + * Sets the preset dictionary to the given array of bytes. Should be + * called when inflate() returns 0 and needsDictionary() returns true + * indicating that a preset dictionary is required. The method getAdler() + * can be used to get the Adler-32 value of the dictionary needed. + */ + // @ts-ignore + public setDictionary(b: number, off: number, len: number): void; + /** + * Sets the preset dictionary to the given array of bytes. Should be + * called when inflate() returns 0 and needsDictionary() returns true + * indicating that a preset dictionary is required. The method getAdler() + * can be used to get the Adler-32 value of the dictionary needed. + */ + // @ts-ignore + public setDictionary(b: number): void; + /** + * Returns the total number of bytes remaining in the input buffer. + * This can be used to find out what bytes still remain in the input + * buffer after decompression has finished. + */ + // @ts-ignore + public getRemaining(): number; + /** + * Returns true if no data remains in the input buffer. This can + * be used to determine if #setInput should be called in order + * to provide more input. + */ + // @ts-ignore + public needsInput(): boolean; + /** + * Returns true if a preset dictionary is needed for decompression. + */ + // @ts-ignore + public needsDictionary(): boolean; + /** + * Returns true if the end of the compressed data stream has been + * reached. + */ + // @ts-ignore + public finished(): boolean; + /** + * Uncompresses bytes into specified buffer. Returns actual number + * of bytes uncompressed. A return value of 0 indicates that + * needsInput() or needsDictionary() should be called in order to + * determine if more input data or a preset dictionary is required. + * In the latter case, getAdler() can be used to get the Adler-32 + * value of the dictionary required. + */ + // @ts-ignore + public inflate(b: number, off: number, len: number): number; + /** + * Uncompresses bytes into specified buffer. Returns actual number + * of bytes uncompressed. A return value of 0 indicates that + * needsInput() or needsDictionary() should be called in order to + * determine if more input data or a preset dictionary is required. + * In the latter case, getAdler() can be used to get the Adler-32 + * value of the dictionary required. + */ + // @ts-ignore + public inflate(b: number): number; + /** + * Returns the ADLER-32 value of the uncompressed data. + */ + // @ts-ignore + public getAdler(): number; + /** + * Returns the total number of compressed bytes input so far. + *

Since the number of bytes may be greater than + * Integer.MAX_VALUE, the {@link #getBytesRead()} method is now + * the preferred means of obtaining this information.

+ */ + // @ts-ignore + public getTotalIn(): number; + /** + * Returns the total number of compressed bytes input so far. + */ + // @ts-ignore + public getBytesRead(): number; + /** + * Returns the total number of uncompressed bytes output so far. + *

Since the number of bytes may be greater than + * Integer.MAX_VALUE, the {@link #getBytesWritten()} method is now + * the preferred means of obtaining this information.

+ */ + // @ts-ignore + public getTotalOut(): number; + /** + * Returns the total number of uncompressed bytes output so far. + */ + // @ts-ignore + public getBytesWritten(): number; + /** + * Resets inflater so that a new set of input data can be processed. + */ + // @ts-ignore + public reset(): void; + /** + * Closes the decompressor and discards any unprocessed input. + * This method should be called when the decompressor is no longer + * being used, but will also be called automatically by the finalize() + * method. Once this method is called, the behavior of the Inflater + * object is undefined. + */ + // @ts-ignore + public end(): void; + /** + * Closes the decompressor when garbage is collected. + */ + // @ts-ignore + protected finalize(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.zip.InflaterInputStream.d.ts b/packages/types/dist/typings/jdk/java.util.zip.InflaterInputStream.d.ts new file mode 100644 index 00000000..ff8cef3f --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.zip.InflaterInputStream.d.ts @@ -0,0 +1,94 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace zip { + // @ts-ignore + class InflaterInputStream extends java.io.FilterInputStream { + /** + * Creates a new input stream with the specified decompressor and + * buffer size. + */ + // @ts-ignore + constructor(input: java.io.InputStream, inf: java.util.zip.Inflater, size: number) + /** + * Creates a new input stream with the specified decompressor and a + * default buffer size. + */ + // @ts-ignore + constructor(input: java.io.InputStream, inf: java.util.zip.Inflater) + /** + * Creates a new input stream with a default decompressor and buffer size. + */ + // @ts-ignore + constructor(input: java.io.InputStream) + // @ts-ignore + protected inf: java.util.zip.Inflater; + // @ts-ignore + protected buf: number[]; + // @ts-ignore + protected len: number; + /** + * Reads a byte of uncompressed data. This method will block until + * enough input is available for decompression. + */ + // @ts-ignore + public read(): number; + /** + * Reads uncompressed data into an array of bytes. If len is not + * zero, the method will block until some input can be decompressed; otherwise, + * no bytes are read and 0 is returned. + */ + // @ts-ignore + public read(b: number, off: number, len: number): number; + /** + * Returns 0 after EOF has been reached, otherwise always return 1. + *

+ * Programs should not count on this method to return the actual number + * of bytes that could be read without blocking. + */ + // @ts-ignore + public available(): number; + /** + * Skips specified number of bytes of uncompressed data. + */ + // @ts-ignore + public skip(n: number): number; + /** + * Closes this input stream and releases any system resources associated + * with the stream. + */ + // @ts-ignore + public close(): void; + /** + * Fills input buffer with more data to decompress. + */ + // @ts-ignore + protected fill(): void; + /** + * Tests if this input stream supports the mark and + * reset methods. The markSupported + * method of InflaterInputStream returns + * false. + */ + // @ts-ignore + public markSupported(): boolean; + /** + * Marks the current position in this input stream. + *

The mark method of InflaterInputStream + * does nothing. + */ + // @ts-ignore + public mark(readlimit: number): void; + /** + * Repositions this stream to the position at the time the + * mark method was last called on this input stream. + *

The method reset for class + * InflaterInputStream does nothing except throw an + * IOException. + */ + // @ts-ignore + public reset(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.zip.InflaterOutputStream.d.ts b/packages/types/dist/typings/jdk/java.util.zip.InflaterOutputStream.d.ts new file mode 100644 index 00000000..f94b7696 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.zip.InflaterOutputStream.d.ts @@ -0,0 +1,61 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace zip { + // @ts-ignore + class InflaterOutputStream extends java.io.FilterOutputStream { + /** + * Creates a new output stream with a default decompressor and buffer + * size. + */ + // @ts-ignore + constructor(out: java.io.OutputStream) + /** + * Creates a new output stream with the specified decompressor and a + * default buffer size. + */ + // @ts-ignore + constructor(out: java.io.OutputStream, infl: java.util.zip.Inflater) + /** + * Creates a new output stream with the specified decompressor and + * buffer size. + */ + // @ts-ignore + constructor(out: java.io.OutputStream, infl: java.util.zip.Inflater, bufLen: number) + // @ts-ignore + protected inf: java.util.zip.Inflater; + // @ts-ignore + protected buf: number[]; + /** + * Writes any remaining uncompressed data to the output stream and closes + * the underlying output stream. + */ + // @ts-ignore + public close(): void; + /** + * Flushes this output stream, forcing any pending buffered output bytes to be + * written. + */ + // @ts-ignore + public flush(): void; + /** + * Finishes writing uncompressed data to the output stream without closing + * the underlying stream. Use this method when applying multiple filters in + * succession to the same output stream. + */ + // @ts-ignore + public finish(): void; + /** + * Writes a byte to the uncompressed output stream. + */ + // @ts-ignore + public write(b: number): void; + /** + * Writes an array of bytes to the uncompressed output stream. + */ + // @ts-ignore + public write(b: number, off: number, len: number): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.zip.ZipEntry.d.ts b/packages/types/dist/typings/jdk/java.util.zip.ZipEntry.d.ts new file mode 100644 index 00000000..88f42ea3 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.zip.ZipEntry.d.ts @@ -0,0 +1,198 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace zip { + // @ts-ignore + class ZipEntry extends java.lang.Object { + /** + * Creates a new zip entry with the specified name. + */ + // @ts-ignore + constructor(name: string) + /** + * Creates a new zip entry with fields taken from the specified + * zip entry. + */ + // @ts-ignore + constructor(e: java.util.zip.ZipEntry) + // @ts-ignore + public static STORED: number; + // @ts-ignore + public static DEFLATED: number; + /** + * Returns the name of the entry. + */ + // @ts-ignore + public getName(): string; + /** + * Sets the last modification time of the entry. + *

If the entry is output to a ZIP file or ZIP file formatted + * output stream the last modification time set by this method will + * be stored into the {@code date and time fields} of the zip file + * entry and encoded in standard {@code MS-DOS date and time format}. + * The {@link java.util.TimeZone#getDefault() default TimeZone} is + * used to convert the epoch time to the MS-DOS data and time. + */ + // @ts-ignore + public setTime(time: number): void; + /** + * Returns the last modification time of the entry. + *

If the entry is read from a ZIP file or ZIP file formatted + * input stream, this is the last modification time from the {@code + * date and time fields} of the zip file entry. The + * {@link java.util.TimeZone#getDefault() default TimeZone} is used + * to convert the standard MS-DOS formatted date and time to the + * epoch time. + */ + // @ts-ignore + public getTime(): number; + /** + * Sets the last modification time of the entry. + *

When output to a ZIP file or ZIP file formatted output stream + * the last modification time set by this method will be stored into + * zip file entry's {@code date and time fields} in {@code standard + * MS-DOS date and time format}), and the extended timestamp fields + * in {@code optional extra data} in UTC time. + */ + // @ts-ignore + public setLastModifiedTime(time: java.nio.file.attribute.FileTime): java.util.zip.ZipEntry; + /** + * Returns the last modification time of the entry. + *

If the entry is read from a ZIP file or ZIP file formatted + * input stream, this is the last modification time from the zip + * file entry's {@code optional extra data} if the extended timestamp + * fields are present. Otherwise the last modification time is read + * from the entry's {@code date and time fields}, the {@link + * java.util.TimeZone#getDefault() default TimeZone} is used to convert + * the standard MS-DOS formatted date and time to the epoch time. + */ + // @ts-ignore + public getLastModifiedTime(): java.nio.file.attribute.FileTime; + /** + * Sets the last access time of the entry. + *

If set, the last access time will be stored into the extended + * timestamp fields of entry's {@code optional extra data}, when output + * to a ZIP file or ZIP file formatted stream. + */ + // @ts-ignore + public setLastAccessTime(time: java.nio.file.attribute.FileTime): java.util.zip.ZipEntry; + /** + * Returns the last access time of the entry. + *

The last access time is from the extended timestamp fields + * of entry's {@code optional extra data} when read from a ZIP file + * or ZIP file formatted stream. + */ + // @ts-ignore + public getLastAccessTime(): java.nio.file.attribute.FileTime; + /** + * Sets the creation time of the entry. + *

If set, the creation time will be stored into the extended + * timestamp fields of entry's {@code optional extra data}, when + * output to a ZIP file or ZIP file formatted stream. + */ + // @ts-ignore + public setCreationTime(time: java.nio.file.attribute.FileTime): java.util.zip.ZipEntry; + /** + * Returns the creation time of the entry. + *

The creation time is from the extended timestamp fields of + * entry's {@code optional extra data} when read from a ZIP file + * or ZIP file formatted stream. + */ + // @ts-ignore + public getCreationTime(): java.nio.file.attribute.FileTime; + /** + * Sets the uncompressed size of the entry data. + */ + // @ts-ignore + public setSize(size: number): void; + /** + * Returns the uncompressed size of the entry data. + */ + // @ts-ignore + public getSize(): number; + /** + * Returns the size of the compressed entry data. + *

In the case of a stored entry, the compressed size will be the same + * as the uncompressed size of the entry. + */ + // @ts-ignore + public getCompressedSize(): number; + /** + * Sets the size of the compressed entry data. + */ + // @ts-ignore + public setCompressedSize(csize: number): void; + /** + * Sets the CRC-32 checksum of the uncompressed entry data. + */ + // @ts-ignore + public setCrc(crc: number): void; + /** + * Returns the CRC-32 checksum of the uncompressed entry data. + */ + // @ts-ignore + public getCrc(): number; + /** + * Sets the compression method for the entry. + */ + // @ts-ignore + public setMethod(method: number): void; + /** + * Returns the compression method of the entry. + */ + // @ts-ignore + public getMethod(): number; + /** + * Sets the optional extra field data for the entry. + *

Invoking this method may change this entry's last modification + * time, last access time and creation time, if the {@code extra} field + * data includes the extensible timestamp fields, such as {@code NTFS tag + * 0x0001} or {@code Info-ZIP Extended Timestamp}, as specified in + * Info-ZIP + * Application Note 970311. + */ + // @ts-ignore + public setExtra(extra: number): void; + /** + * Returns the extra field data for the entry. + */ + // @ts-ignore + public getExtra(): number[]; + /** + * Sets the optional comment string for the entry. + *

ZIP entry comments have maximum length of 0xffff. If the length of the + * specified comment string is greater than 0xFFFF bytes after encoding, only + * the first 0xFFFF bytes are output to the ZIP file entry. + */ + // @ts-ignore + public setComment(comment: string): void; + /** + * Returns the comment string for the entry. + */ + // @ts-ignore + public getComment(): string; + /** + * Returns true if this is a directory entry. A directory entry is + * defined to be one whose name ends with a '/'. + */ + // @ts-ignore + public isDirectory(): boolean; + /** + * Returns a string representation of the ZIP entry. + */ + // @ts-ignore + public toString(): string; + /** + * Returns the hash code value for this entry. + */ + // @ts-ignore + public hashCode(): number; + /** + * Returns a copy of this entry. + */ + // @ts-ignore + public clone(): java.lang.Object; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.zip.ZipError.d.ts b/packages/types/dist/typings/jdk/java.util.zip.ZipError.d.ts new file mode 100644 index 00000000..aba02fc6 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.zip.ZipError.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace zip { + // @ts-ignore + class ZipError extends java.lang.InternalError { + /** + * Constructs a ZipError with the given detail message. + */ + // @ts-ignore + constructor(s: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.zip.ZipException.d.ts b/packages/types/dist/typings/jdk/java.util.zip.ZipException.d.ts new file mode 100644 index 00000000..6f95e544 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.zip.ZipException.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace zip { + // @ts-ignore + class ZipException extends java.io.IOException { + /** + * Constructs a ZipException with null + * as its error detail message. + */ + // @ts-ignore + constructor() + /** + * Constructs a ZipException with the specified detail + * message. + */ + // @ts-ignore + constructor(s: string) + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.zip.ZipFile.d.ts b/packages/types/dist/typings/jdk/java.util.zip.ZipFile.d.ts new file mode 100644 index 00000000..c2e19faa --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.zip.ZipFile.d.ts @@ -0,0 +1,127 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace zip { + // @ts-ignore + class ZipFile extends java.lang.Object { + /** + * Opens a zip file for reading. + *

First, if there is a security manager, its checkRead + * method is called with the name argument as its argument + * to ensure the read is allowed. + *

The UTF-8 {@link java.nio.charset.Charset charset} is used to + * decode the entry names and comments. + */ + // @ts-ignore + constructor(name: string) + /** + * Opens a new ZipFile to read from the specified + * File object in the specified mode. The mode argument + * must be either OPEN_READ or OPEN_READ | OPEN_DELETE. + *

First, if there is a security manager, its checkRead + * method is called with the name argument as its argument to + * ensure the read is allowed. + *

The UTF-8 {@link java.nio.charset.Charset charset} is used to + * decode the entry names and comments + */ + // @ts-ignore + constructor(file: java.io.File, mode: number) + /** + * Opens a ZIP file for reading given the specified File object. + *

The UTF-8 {@link java.nio.charset.Charset charset} is used to + * decode the entry names and comments. + */ + // @ts-ignore + constructor(file: java.io.File) + /** + * Opens a new ZipFile to read from the specified + * File object in the specified mode. The mode argument + * must be either OPEN_READ or OPEN_READ | OPEN_DELETE. + *

First, if there is a security manager, its checkRead + * method is called with the name argument as its argument to + * ensure the read is allowed. + */ + // @ts-ignore + constructor(file: java.io.File, mode: number, charset: java.nio.charset.Charset) + /** + * Opens a zip file for reading. + *

First, if there is a security manager, its checkRead + * method is called with the name argument as its argument + * to ensure the read is allowed. + */ + // @ts-ignore + constructor(name: string, charset: java.nio.charset.Charset) + /** + * Opens a ZIP file for reading given the specified File object. + */ + // @ts-ignore + constructor(file: java.io.File, charset: java.nio.charset.Charset) + // @ts-ignore + public static OPEN_READ: number; + // @ts-ignore + public static OPEN_DELETE: number; + /** + * Returns the zip file comment, or null if none. + */ + // @ts-ignore + public getComment(): string; + /** + * Returns the zip file entry for the specified name, or null + * if not found. + */ + // @ts-ignore + public getEntry(name: string): java.util.zip.ZipEntry; + /** + * Returns an input stream for reading the contents of the specified + * zip file entry. + *

Closing this ZIP file will, in turn, close all input + * streams that have been returned by invocations of this method. + */ + // @ts-ignore + public getInputStream(entry: java.util.zip.ZipEntry): java.io.InputStream; + /** + * Returns the path name of the ZIP file. + */ + // @ts-ignore + public getName(): string; + /** + * Returns an enumeration of the ZIP file entries. + */ + // @ts-ignore + public entries(): java.util.Enumeration; + /** + * Return an ordered {@code Stream} over the ZIP file entries. + * Entries appear in the {@code Stream} in the order they appear in + * the central directory of the ZIP file. + */ + // @ts-ignore + public stream(): java.util.stream.Stream; + /** + * Returns the number of entries in the ZIP file. + */ + // @ts-ignore + public size(): number; + /** + * Closes the ZIP file. + *

Closing this ZIP file will close all of the input streams + * previously returned by invocations of the {@link #getInputStream + * getInputStream} method. + */ + // @ts-ignore + public close(): void; + /** + * Ensures that the system resources held by this ZipFile object are + * released when there are no more references to it. + *

+ * Since the time when GC would invoke this method is undetermined, + * it is strongly recommended that applications invoke the close + * method as soon they have finished accessing this ZipFile. + * This will prevent holding up system resources for an undetermined + * length of time. + */ + // @ts-ignore + protected finalize(): void; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.zip.ZipInputStream.d.ts b/packages/types/dist/typings/jdk/java.util.zip.ZipInputStream.d.ts new file mode 100644 index 00000000..1dbd8376 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.zip.ZipInputStream.d.ts @@ -0,0 +1,68 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace zip { + // @ts-ignore + class ZipInputStream extends java.util.zip.InflaterInputStream { + /** + * Creates a new ZIP input stream. + *

The UTF-8 {@link java.nio.charset.Charset charset} is used to + * decode the entry names. + */ + // @ts-ignore + constructor(input: java.io.InputStream) + /** + * Creates a new ZIP input stream. + */ + // @ts-ignore + constructor(input: java.io.InputStream, charset: java.nio.charset.Charset) + /** + * Reads the next ZIP file entry and positions the stream at the + * beginning of the entry data. + */ + // @ts-ignore + public getNextEntry(): java.util.zip.ZipEntry; + /** + * Closes the current ZIP entry and positions the stream for reading the + * next entry. + */ + // @ts-ignore + public closeEntry(): void; + /** + * Returns 0 after EOF has reached for the current entry data, + * otherwise always return 1. + *

+ * Programs should not count on this method to return the actual number + * of bytes that could be read without blocking. + */ + // @ts-ignore + public available(): number; + /** + * Reads from the current ZIP entry into an array of bytes. + * If len is not zero, the method + * blocks until some input is available; otherwise, no + * bytes are read and 0 is returned. + */ + // @ts-ignore + public read(b: number, off: number, len: number): number; + /** + * Skips specified number of bytes in the current ZIP entry. + */ + // @ts-ignore + public skip(n: number): number; + /** + * Closes this input stream and releases any system resources associated + * with the stream. + */ + // @ts-ignore + public close(): void; + /** + * Creates a new ZipEntry object for the specified + * entry name. + */ + // @ts-ignore + protected createZipEntry(name: string): java.util.zip.ZipEntry; + } + } + } +} diff --git a/packages/types/dist/typings/jdk/java.util.zip.ZipOutputStream.d.ts b/packages/types/dist/typings/jdk/java.util.zip.ZipOutputStream.d.ts new file mode 100644 index 00000000..80cc1360 --- /dev/null +++ b/packages/types/dist/typings/jdk/java.util.zip.ZipOutputStream.d.ts @@ -0,0 +1,77 @@ +// @ts-nocheck +declare namespace java { + namespace util { + namespace zip { + // @ts-ignore + class ZipOutputStream extends java.util.zip.DeflaterOutputStream { + /** + * Creates a new ZIP output stream. + *

The UTF-8 {@link java.nio.charset.Charset charset} is used + * to encode the entry names and comments. + */ + // @ts-ignore + constructor(out: java.io.OutputStream) + /** + * Creates a new ZIP output stream. + */ + // @ts-ignore + constructor(out: java.io.OutputStream, charset: java.nio.charset.Charset) + // @ts-ignore + public static STORED: number; + // @ts-ignore + public static DEFLATED: number; + /** + * Sets the ZIP file comment. + */ + // @ts-ignore + public setComment(comment: string): void; + /** + * Sets the default compression method for subsequent entries. This + * default will be used whenever the compression method is not specified + * for an individual ZIP file entry, and is initially set to DEFLATED. + */ + // @ts-ignore + public setMethod(method: number): void; + /** + * Sets the compression level for subsequent entries which are DEFLATED. + * The default setting is DEFAULT_COMPRESSION. + */ + // @ts-ignore + public setLevel(level: number): void; + /** + * Begins writing a new ZIP file entry and positions the stream to the + * start of the entry data. Closes the current entry if still active. + * The default compression method will be used if no compression method + * was specified for the entry, and the current time will be used if + * the entry has no set modification time. + */ + // @ts-ignore + public putNextEntry(e: java.util.zip.ZipEntry): void; + /** + * Closes the current ZIP entry and positions the stream for writing + * the next entry. + */ + // @ts-ignore + public closeEntry(): void; + /** + * Writes an array of bytes to the current ZIP entry data. This method + * will block until all the bytes are written. + */ + // @ts-ignore + public write(b: number, off: number, len: number): void; + /** + * Finishes writing the contents of the ZIP output stream without closing + * the underlying stream. Use this method when applying multiple filters + * in succession to the same output stream. + */ + // @ts-ignore + public finish(): void; + /** + * Closes the ZIP output stream as well as the stream being filtered. + */ + // @ts-ignore + public close(): void; + } + } + } +} diff --git a/packages/types/dist/typings/sponge/index.d.ts b/packages/types/dist/typings/sponge/index.d.ts new file mode 100644 index 00000000..56039310 --- /dev/null +++ b/packages/types/dist/typings/sponge/index.d.ts @@ -0,0 +1,1927 @@ +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.CatalogType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.CatalogType.d.ts new file mode 100644 index 00000000..d17d6d14 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.CatalogType.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + // @ts-ignore + interface CatalogType { + /** + * Gets the unique identifier of this {@link CatalogType}. The identifier is + * case insensitive, thus there cannot be another instance with a different + * character case. The id of this instance must remain the same for the + * entire duration of its existence. The identifier can be formatted however + * needed. + *

A typical id format follows the pattern of `modId:name` + * or `minecraft:name`. However the prefix may be omitted for + * default/vanilla minecraft types.

+ */ + // @ts-ignore + getId(): string; + /** + * Gets the human-readable name of this individual {@link CatalogType}. This + * name is not guaranteed to be unique. This value should not be used for + * serialization. + */ + // @ts-ignore + getName(): string; + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.CatalogTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.CatalogTypes.d.ts new file mode 100644 index 00000000..23c83eaf --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.CatalogTypes.d.ts @@ -0,0 +1,258 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + // @ts-ignore + class CatalogTypes extends java.lang.Object { + // @ts-ignore + public static ADVANCEMENT: java.lang.Class; + // @ts-ignore + public static ADVANCEMENT_TREE: java.lang.Class; + // @ts-ignore + public static ADVANCEMENT_TYPE: java.lang.Class; + // @ts-ignore + public static AI_TASK_TYPE: java.lang.Class; + // @ts-ignore + public static ARMOR_TYPE: java.lang.Class; + // @ts-ignore + public static ART: java.lang.Class; + // @ts-ignore + public static BANNER_PATTERN_SHAPE: java.lang.Class; + // @ts-ignore + public static BAN_TYPE: java.lang.Class; + // @ts-ignore + public static BIG_MUSHROOM_TYPE: java.lang.Class; + // @ts-ignore + public static BIOME_TREE_TYPE: java.lang.Class; + // @ts-ignore + public static BIOME_TYPE: java.lang.Class; + // @ts-ignore + public static BLOCK_PALETTE_TYPE: java.lang.Class; + // @ts-ignore + public static BLOCK_STATISTIC: java.lang.Class; + // @ts-ignore + public static BLOCK_TYPE: java.lang.Class; + // @ts-ignore + public static BODY_PART: java.lang.Class; + // @ts-ignore + public static BOSS_BAR_COLOR: java.lang.Class; + // @ts-ignore + public static BOSS_BAR_OVERLAY: java.lang.Class; + // @ts-ignore + public static BRICK_TYPE: java.lang.Class; + // @ts-ignore + public static CAREER: java.lang.Class; + // @ts-ignore + public static CHAT_TYPE: java.lang.Class; + // @ts-ignore + public static CHAT_VISIBILITY: java.lang.Class; + // @ts-ignore + public static COAL_TYPE: java.lang.Class; + // @ts-ignore + public static COLLISION_RULE: java.lang.Class; + // @ts-ignore + public static COMPARISON_TYPE: java.lang.Class; + // @ts-ignore + public static COOKED_FISH: java.lang.Class; + // @ts-ignore + public static CRAFTING_RECIPES: java.lang.Class; + // @ts-ignore + public static CRITERION: java.lang.Class; + // @ts-ignore + public static CURRENCY: java.lang.Class; + // @ts-ignore + public static DAMAGE_MODIFIER_TYPE: java.lang.Class; + // @ts-ignore + public static DAMAGE_TYPE: java.lang.Class; + // @ts-ignore + public static DATA_FORMAT: java.lang.Class; + // @ts-ignore + public static DATA_TRANSLATOR: java.lang.Class; + // @ts-ignore + public static DIFFICULTY: java.lang.Class; + // @ts-ignore + public static DIMENSION_TYPE: java.lang.Class; + // @ts-ignore + public static DIRT_TYPE: java.lang.Class; + // @ts-ignore + public static DISGUISED_BLOCK_TYPE: java.lang.Class; + // @ts-ignore + public static DISMOUNT_TYPE: java.lang.Class; + // @ts-ignore + public static DISPLAY_SLOT: java.lang.Class; + // @ts-ignore + public static DOUBLE_PLANT_TYPE: java.lang.Class; + // @ts-ignore + public static DYE_COLOR: java.lang.Class; + // @ts-ignore + public static ENCHANTMENT: java.lang.Class; + // @ts-ignore + public static ENCHANTMENT_TYPE: java.lang.Class; + // @ts-ignore + public static ENTITY_STATISTIC: java.lang.Class; + // @ts-ignore + public static ENTITY_TYPE: java.lang.Class; + // @ts-ignore + public static EQUIPMENT_TYPE: java.lang.Class; + // @ts-ignore + public static EVENT_CONTEXT_KEY: java.lang.Class; + // @ts-ignore + public static FIREWORK_SHAPE: java.lang.Class; + // @ts-ignore + public static FISH: java.lang.Class; + // @ts-ignore + public static FLUID_TYPE: java.lang.Class; + // @ts-ignore + public static GAME_MODE: java.lang.Class; + // @ts-ignore + public static GENERATOR_TYPE: java.lang.Class; + // @ts-ignore + public static GOAL_TYPE: java.lang.Class; + // @ts-ignore + public static GOLDEN_APPLE: java.lang.Class; + // @ts-ignore + public static HAND_PREFERENCE: java.lang.Class; + // @ts-ignore + public static HAND_TYPE: java.lang.Class; + // @ts-ignore + public static HEALING_TYPE: java.lang.Class; + // @ts-ignore + public static HEALTH_MODIFIER_TYPE: java.lang.Class; + // @ts-ignore + public static HELD_EQUIPMENT_TYPE: java.lang.Class; + // @ts-ignore + public static HINGE: java.lang.Class; + // @ts-ignore + public static HORSE_COLOR: java.lang.Class; + // @ts-ignore + public static HORSE_STYLE: java.lang.Class; + // @ts-ignore + public static INSTRUMENT_TYPE: java.lang.Class; + // @ts-ignore + public static INVENTORY_ARCHETYPE: java.lang.Class; + // @ts-ignore + public static ITEM_STATISTIC: java.lang.Class; + // @ts-ignore + public static ITEM_TYPE: java.lang.Class; + // @ts-ignore + public static LLAMA_VARIANT: java.lang.Class; + // @ts-ignore + public static LOG_AXIS: java.lang.Class; + // @ts-ignore + public static MUSHROOM_TYPE: java.lang.Class; + // @ts-ignore + public static NOTE_PITCH: java.lang.Class; + // @ts-ignore + public static OBJECTIVE_DISPLAY_MODE: java.lang.Class; + // @ts-ignore + public static OCELOT_TYPE: java.lang.Class; + // @ts-ignore + public static PARROT_VARIANT: java.lang.Class; + // @ts-ignore + public static PARTICLE_OPTION: java.lang.Class; + // @ts-ignore + public static PARTICLE_TYPE: java.lang.Class; + // @ts-ignore + public static PICKUP_RULE: java.lang.Class; + // @ts-ignore + public static PISTON_TYPE: java.lang.Class; + // @ts-ignore + public static PLANT_TYPE: java.lang.Class; + // @ts-ignore + public static POPULATOR_OBJECT: java.lang.Class; + // @ts-ignore + public static POPULATOR_TYPE: java.lang.Class; + // @ts-ignore + public static PORTAL_AGENT_TYPE: java.lang.Class; + // @ts-ignore + public static PORTION_TYPE: java.lang.Class; + // @ts-ignore + public static POTION_EFFECT_TYPE: java.lang.Class; + // @ts-ignore + public static PRISMARINE_TYPE: java.lang.Class; + // @ts-ignore + public static PROFESSION: java.lang.Class; + // @ts-ignore + public static QUARTZ_TYPE: java.lang.Class; + // @ts-ignore + public static QUERY_OPERATION_TYPE: java.lang.Class; + // @ts-ignore + public static RABBIT_TYPE: java.lang.Class; + // @ts-ignore + public static RAIL_DIRECTION: java.lang.Class; + // @ts-ignore + public static RECORD_TYPE: java.lang.Class; + // @ts-ignore + public static ROTATION: java.lang.Class; + // @ts-ignore + public static SANDSTONE_TYPE: java.lang.Class; + // @ts-ignore + public static SAND_TYPE: java.lang.Class; + // @ts-ignore + public static SELECTOR_TYPE: java.lang.Class; + // @ts-ignore + public static SERIALIZATION_BEHAVIOR: java.lang.Class; + // @ts-ignore + public static SHRUB_TYPE: java.lang.Class; + // @ts-ignore + public static SKIN_PART: java.lang.Class; + // @ts-ignore + public static SKULL_TYPE: java.lang.Class; + // @ts-ignore + public static SLAB_TYPE: java.lang.Class; + // @ts-ignore + public static SOUND_CATEGORY: java.lang.Class; + // @ts-ignore + public static SOUND_TYPE: java.lang.Class; + // @ts-ignore + public static SPAWN_TYPE: java.lang.Class; + // @ts-ignore + public static STAIR_SHAPE: java.lang.Class; + // @ts-ignore + public static STATISTIC: java.lang.Class; + // @ts-ignore + public static STATISTIC_TYPE: java.lang.Class; + // @ts-ignore + public static STONE_TYPE: java.lang.Class; + // @ts-ignore + public static STRUCTURE_MODE: java.lang.Class; + // @ts-ignore + public static TELEPORT_HELPER_FILTER: java.lang.Class; + // @ts-ignore + public static TELEPORT_TYPE: java.lang.Class; + // @ts-ignore + public static TEXT_COLOR: java.lang.Class; + // @ts-ignore + public static TEXT_SERIALIZER: java.lang.Class; + // @ts-ignore + public static TEXT_STYLE: java.lang.Class; + // @ts-ignore + public static TILE_ENTITY_TYPE: java.lang.Class; + // @ts-ignore + public static TOOL_TYPE: java.lang.Class; + // @ts-ignore + public static TRANSACTION_TYPE: java.lang.Class; + // @ts-ignore + public static TREE_TYPE: java.lang.Class; + // @ts-ignore + public static TRIGGER: java.lang.Class; + // @ts-ignore + public static VIRTUAL_BIOME_TYPE: java.lang.Class; + // @ts-ignore + public static VISIBILITY: java.lang.Class; + // @ts-ignore + public static WALL_TYPE: java.lang.Class; + // @ts-ignore + public static WEATHER: java.lang.Class; + // @ts-ignore + public static WIRE_ATTACHMENT_TYPE: java.lang.Class; + // @ts-ignore + public static WORLD_ARCHETYPE: java.lang.Class; + // @ts-ignore + public static WORLD_GENERATOR_MODIFIER: java.lang.Class; + // @ts-ignore + public static WORN_EQUIPMENT_TYPE: java.lang.Class; + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.Game.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.Game.d.ts new file mode 100644 index 00000000..ed9c1b6b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.Game.d.ts @@ -0,0 +1,130 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + // @ts-ignore + interface Game { + /** + * Gets the current {@link GameState} that this game is currently in. + */ + // @ts-ignore + getState(): org.spongepowered.api.GameState; + /** + * Gets the directory where the game's files are located. + */ + // @ts-ignore + getGameDirectory(): java.nio.file.Path; + /** + * Gets the directory where the game will store save files. + *

This location differs based on the implementation and is therefore + * implementation-specific.

+ *

To elaborate, this is how it is handled in Minecraft based on side: + *

+ *
    + *
  • Client + *
      This directory will point to {@link Game#getGameDirectory()}.resolve("saves").resolve(currentSaveName)
    + *
  • Server + *
      This directory will be equivalent to {@link Game#getGameDirectory()}.resolve(level-name).
    + *
+ *

Consult your specific implementation if they support placing this + * elsewhere.

+ */ + // @ts-ignore + getSavesDirectory(): java.nio.file.Path; + /** + * Returns if the {@link Server} is available for use. The result of this method is entirely + * dependent on the implementation. + */ + // @ts-ignore + isServerAvailable(): boolean; + /** + * Gets the {@link Server}. + */ + // @ts-ignore + getServer(): org.spongepowered.api.Server; + /** + * Retrieves the GameDictionary (item dictionary) for this {@link Game}. + */ + // @ts-ignore + getGameDictionary(): java.util.Optional; + /** + * Returns the current platform, or implementation, this {@link Game} is running on. + */ + // @ts-ignore + getPlatform(): org.spongepowered.api.Platform; + /** + * Gets the {@link GameRegistry}. + */ + // @ts-ignore + getRegistry(): org.spongepowered.api.GameRegistry; + /** + * Gets the {@link DataManager} instance to register + * {@link DataSerializable}s, and get the related {@link DataBuilder}s. + */ + // @ts-ignore + getDataManager(): org.spongepowered.api.data.DataManager; + /** + * Gets the {@link PropertyRegistry} instance to register + * {@link PropertyStore}s. + */ + // @ts-ignore + getPropertyRegistry(): org.spongepowered.api.data.property.PropertyRegistry; + /** + * Gets the {@link PluginManager}. + */ + // @ts-ignore + getPluginManager(): org.spongepowered.api.plugin.PluginManager; + /** + * Gets the {@link EventManager}. + */ + // @ts-ignore + getEventManager(): org.spongepowered.api.event.EventManager; + /** + * Gets the {@link AssetManager}. + */ + // @ts-ignore + getAssetManager(): org.spongepowered.api.asset.AssetManager; + /** + * Gets the {@link ConfigManager} used to load and manage configuration files + * for plugins. + */ + // @ts-ignore + getConfigManager(): org.spongepowered.api.config.ConfigManager; + /** + * Gets the command dispatcher used for registering and dispatching + * registered commands. + */ + // @ts-ignore + getCommandManager(): org.spongepowered.api.command.CommandManager; + /** + * Gets the game's instance of the service manager, which is the gateway + * to various services provided by Sponge (command registration and so on). + *

Services registered by other plugins may be available too.

+ */ + // @ts-ignore + getServiceManager(): org.spongepowered.api.service.ServiceManager; + /** + * Gets the scheduler used to schedule tasks. + */ + // @ts-ignore + getScheduler(): org.spongepowered.api.scheduler.Scheduler; + /** + * Gets the {@link ChannelRegistrar} for creating network channels. + */ + // @ts-ignore + getChannelRegistrar(): org.spongepowered.api.network.ChannelRegistrar; + /** + * Gets the {@link TeleportHelper}, used to find safe {@link Location}s. + */ + // @ts-ignore + getTeleportHelper(): org.spongepowered.api.world.TeleportHelper; + /** + * Gets the {@link CauseStackManager} for handling the current event cause + * stack and context information. + */ + // @ts-ignore + getCauseStackManager(): org.spongepowered.api.event.CauseStackManager; + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.GameDictionary.Entry.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.GameDictionary.Entry.d.ts new file mode 100644 index 00000000..6840750f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.GameDictionary.Entry.d.ts @@ -0,0 +1,43 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace GameDictionary { + // @ts-ignore + interface Entry { + /** + * Returns the type of item contained by this entry. + */ + // @ts-ignore + getType(): org.spongepowered.api.item.ItemType; + /** + * Tests whether the provided item stack matches this entry's + * specifications. + */ + // @ts-ignore + matches(stack: org.spongepowered.api.item.inventory.ItemStack): boolean; + /** + * Returns whether this entry checks against the item type and extra + * data associated with the stack. If this returns {@code true}, any + * {@link ItemStack} whose {@link ItemType} and manipulators match + * those of the {@linkplain #getTemplate() template} will {@linkplain + * #matches(ItemStack) match} this entry; however, not all manipulators + * present in the template are required to match those in the item + * stack to cause them to match. If this returns {@code false}, any + * item stack whose {@link ItemType} matches that of the entry will + * match this entry. + */ + // @ts-ignore + isSpecific(): boolean; + /** + * Returns an item stack snapshot for plugins to inspect this entry. + * The returned snapshot will {@linkplain #matches(ItemStack) match} + * this entry. The size of the snapshot will always be 1. + */ + // @ts-ignore + getTemplate(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.GameDictionary.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.GameDictionary.d.ts new file mode 100644 index 00000000..03cd105e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.GameDictionary.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + // @ts-ignore + interface GameDictionary { + /** + * Registers an {@link org.spongepowered.api.GameDictionary.Entry} + * in the dictionary with a String key. The stack size is ignored. + */ + // @ts-ignore + register(key: string, entry: org.spongepowered.api.GameDictionary.Entry): void; + /** + * Retrieves the entries registered for the given key. The stack sizes are + * set to 1. + */ + // @ts-ignore + get(key: string): java.util.Set; + /** + * Retrieves all entries registered in this game dictionary, mapped by their + * key. + */ + // @ts-ignore + getAll(): any; + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.GameRegistry.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.GameRegistry.d.ts new file mode 100644 index 00000000..eb035511 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.GameRegistry.d.ts @@ -0,0 +1,207 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + // @ts-ignore + interface GameRegistry { + /** + * Attempts to retrieve the specific type of {@link CatalogType} based on + * the string id given. + *

Some types may not be available for various reasons including but not + * restricted to: mods adding custom types, plugins providing custom types, + * game version changes.

+ */ + // @ts-ignore + getType(typeClass: java.lang.Class, id: string): java.util.Optional; + /** + * Gets a collection of all available found specific types of + * {@link CatalogType} requested. + *

The presented {@link CatalogType}s may not exist in default catalogs + * due to various reasons including but not restricted to: mods, plugins, + * game changes.

+ */ + // @ts-ignore + getAllOf(typeClass: java.lang.Class): java.util.Collection; + /** + * Gets a collection of all available found specific types of + * {@link CatalogType} requested. + */ + // @ts-ignore + getAllFor(pluginId: string, typeClass: java.lang.Class): java.util.Collection; + /** + * Gets all {@link CatalogType} for Minecraft as a base mod. Note that + * some {@link CatalogType}s are not originally from the game itself, and + * may be provided by Sponge. + */ + // @ts-ignore + getAllForMinecraft(typeClass: java.lang.Class): java.util.Collection; + /** + * Gets all {@link CatalogType} for Sponge as a base mod. Note that + * some {@link CatalogType}s are not originally from the game itself, and + * may be provided by Sponge. + */ + // @ts-ignore + getAllForSponge(typeClass: java.lang.Class): java.util.Collection; + /** + * Registers the {@link CatalogRegistryModule} for dummy registration and + * handling. + *

By default, the only supported modules that can be registered are + * dependent that plugins are not attempting to register new modules for + * API-provided {@link CatalogType}s.

+ */ + // @ts-ignore + registerModule(catalogClass: java.lang.Class, registryModule: org.spongepowered.api.registry.CatalogRegistryModule): org.spongepowered.api.GameRegistry; + /** + * Registers the desired {@link RegistryModule}. + */ + // @ts-ignore + registerModule(module: org.spongepowered.api.registry.RegistryModule): org.spongepowered.api.GameRegistry; + /** + * Registers a {@link Supplier} for creating the desired {@link ResettableBuilder}. + */ + // @ts-ignore + registerBuilderSupplier(builderClass: java.lang.Class, supplier: java.util.function$.Supplier): org.spongepowered.api.GameRegistry; + /** + * Gets a builder of the desired class type, examples may include: + * {@link org.spongepowered.api.item.inventory.ItemStack.Builder}, etc. + */ + // @ts-ignore + createBuilder(builderClass: java.lang.Class): org.spongepowered.api.util.ResettableBuilder; + /** + * Registers a new {@link CatalogType} instance if registration for that + * type is supported. + *

Note that this is intended only for registering new instances of + * already existing CatalogTypes, not for registering entirely new + * CatalogType classes.

+ */ + // @ts-ignore + register(type: java.lang.Class, obj: org.spongepowered.api.CatalogType): org.spongepowered.api.CatalogType; + /** + * Gets a {@link Collection} of the default GameRules. + */ + // @ts-ignore + getDefaultGameRules(): java.util.Collection; + /** + * Gets the {@link Statistic} for the given {@link StatisticType} and + * {@link EntityType}. If the statistic group is not a valid + * {@link EntityStatistic} group then {@link Optional#empty()} will be + * returned. + */ + // @ts-ignore + getEntityStatistic(statType: org.spongepowered.api.statistic.StatisticType, entityType: org.spongepowered.api.entity.EntityType): java.util.Optional; + /** + * Gets the {@link Statistic} for the given {@link StatisticType} and + * {@link ItemType}. If the statistic group is not a valid + * {@link ItemStatistic} group then {@link Optional#empty()} will be + * returned. + */ + // @ts-ignore + getItemStatistic(statType: org.spongepowered.api.statistic.StatisticType, itemType: org.spongepowered.api.item.ItemType): java.util.Optional; + /** + * Gets the {@link Statistic} for the given {@link StatisticType} and + * {@link BlockType}. If the statistic group is not a valid + * {@link BlockStatistic} group then {@link Optional#empty()} will be + * returned. + */ + // @ts-ignore + getBlockStatistic(statType: org.spongepowered.api.statistic.StatisticType, blockType: org.spongepowered.api.block.BlockType): java.util.Optional; + /** + * Gets the {@link Rotation} with the provided degrees. + */ + // @ts-ignore + getRotationFromDegree(degrees: number): java.util.Optional; + /** + * Loads a {@link Favicon} from the specified encoded string. The format of + * the input depends on the implementation. + */ + // @ts-ignore + loadFavicon(raw: string): org.spongepowered.api.network.status.Favicon; + /** + * Loads a favicon from a specified {@link Path}. + */ + // @ts-ignore + loadFavicon(path: java.nio.file.Path): org.spongepowered.api.network.status.Favicon; + /** + * Loads a favicon from a specified {@link URL}. + */ + // @ts-ignore + loadFavicon(url: java.net.URL): org.spongepowered.api.network.status.Favicon; + /** + * Loads a favicon from a specified {@link InputStream}. + */ + // @ts-ignore + loadFavicon(input: java.io.InputStream): org.spongepowered.api.network.status.Favicon; + /** + * Loads a favicon from a specified {@link BufferedImage}. + */ + // @ts-ignore + loadFavicon(image: java.awt.image.BufferedImage): org.spongepowered.api.network.status.Favicon; + /** + * Retrieves the crafting RecipeRegistry for this GameRegistry. + */ + // @ts-ignore + getCraftingRecipeRegistry(): org.spongepowered.api.item.recipe.crafting.CraftingRecipeRegistry; + /** + * Retrieves the smelting RecipeRegistry for this GameRegistry. + */ + // @ts-ignore + getSmeltingRecipeRegistry(): org.spongepowered.api.item.recipe.smelting.SmeltingRecipeRegistry; + /** + * Gets a {@link ResourcePack} that's already been created by its ID. + */ + // @ts-ignore + getResourcePackById(id: string): java.util.Optional; + /** + * Gets a {@link DisplaySlot} which displays only for teams with the + * provided color. + */ + // @ts-ignore + getDisplaySlotForColor(color: org.spongepowered.api.text.format.TextColor): java.util.Optional; + /** + * Registers a new {@link AbstractAITask} with an {@link Agent} as the + * owner. The complete id will be in the format of + * {@link PluginContainer#getId()}:id. + */ + // @ts-ignore + registerAITaskType(plugin: java.lang.Object, id: string, name: string, aiClass: java.lang.Class): org.spongepowered.api.entity.ai.task.AITaskType; + /** + * Gets the {@link ExtentBufferFactory} for creating buffers + * to store extent data. + */ + // @ts-ignore + getExtentBufferFactory(): org.spongepowered.api.world.extent.ExtentBufferFactory; + /** + * Gets the {@link ValueFactory} for creating values. + */ + // @ts-ignore + getValueFactory(): org.spongepowered.api.data.value.ValueFactory; + /** + * Gets the {@link VillagerRegistry} for the register mappings of + * {@link Career}s to {@link TradeOfferGenerator}s based on a level. + */ + // @ts-ignore + getVillagerRegistry(): org.spongepowered.api.item.merchant.VillagerRegistry; + /** + * Gets the internal {@link TextSerializerFactory}. + */ + // @ts-ignore + getTextSerializerFactory(): org.spongepowered.api.text.serializer.TextSerializerFactory; + /** + * Gets the internal {@link SelectorFactory}. + */ + // @ts-ignore + getSelectorFactory(): org.spongepowered.api.text.selector.SelectorFactory; + /** + * Gets a locale for the specified locale code, e.g. {@code en_US}. + */ + // @ts-ignore + getLocale(locale: string): java.util.Locale; + /** + * Gets the {@link Translation} with the provided ID. + */ + // @ts-ignore + getTranslationById(id: string): java.util.Optional; + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.GameState.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.GameState.d.ts new file mode 100644 index 00000000..c3d1ff64 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.GameState.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + // @ts-ignore + class GameState extends java.lang.Enum { + // @ts-ignore + public static CONSTRUCTION: org.spongepowered.api.GameState; + // @ts-ignore + public static PRE_INITIALIZATION: org.spongepowered.api.GameState; + // @ts-ignore + public static INITIALIZATION: org.spongepowered.api.GameState; + // @ts-ignore + public static POST_INITIALIZATION: org.spongepowered.api.GameState; + // @ts-ignore + public static LOAD_COMPLETE: org.spongepowered.api.GameState; + // @ts-ignore + public static SERVER_ABOUT_TO_START: org.spongepowered.api.GameState; + // @ts-ignore + public static SERVER_STARTING: org.spongepowered.api.GameState; + // @ts-ignore + public static SERVER_STARTED: org.spongepowered.api.GameState; + // @ts-ignore + public static SERVER_STOPPING: org.spongepowered.api.GameState; + // @ts-ignore + public static SERVER_STOPPED: org.spongepowered.api.GameState; + // @ts-ignore + public static GAME_STOPPING: org.spongepowered.api.GameState; + // @ts-ignore + public static GAME_STOPPED: org.spongepowered.api.GameState; + // @ts-ignore + public static values(): org.spongepowered.api.GameState[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.GameState; + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.MinecraftVersion.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.MinecraftVersion.d.ts new file mode 100644 index 00000000..a09017a7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.MinecraftVersion.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + // @ts-ignore + interface MinecraftVersion { + /** + * Gets the name of this Minecraft version. + *

+ * Note: The returned name does not necessarily represent + * the name of a Minecraft version. Depending on the client and + * implementation, this may also just return a numeric value. + *

+ */ + // @ts-ignore + getName(): string; + /** + * Returns whether this version is an older version that doesn't support + * all of the features in {@link StatusResponse}. These versions are only + * supported for the {@link ClientPingServerEvent}, normally they should not be + * able to join the server. + *

+ * For Vanilla, this returns {@code true} for all clients older than 1.7. + *

+ */ + // @ts-ignore + isLegacy(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.Nameable.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.Nameable.d.ts new file mode 100644 index 00000000..3501ceef --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.Nameable.d.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + // @ts-ignore + interface Nameable { + /** + * Gets the human-readable name of this object. + */ + // @ts-ignore + getName(): org.spongepowered.api.text.translation.Translation; + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.Platform.Component.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.Platform.Component.d.ts new file mode 100644 index 00000000..25ea1daf --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.Platform.Component.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace Platform { + // @ts-ignore + class Component extends java.lang.Enum { + // @ts-ignore + public static GAME: org.spongepowered.api.Platform.Component; + // @ts-ignore + public static API: org.spongepowered.api.Platform.Component; + // @ts-ignore + public static IMPLEMENTATION: org.spongepowered.api.Platform.Component; + // @ts-ignore + public static values(): org.spongepowered.api.Platform.Component[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.Platform.Component; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.Platform.Type.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.Platform.Type.d.ts new file mode 100644 index 00000000..785fdce0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.Platform.Type.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace Platform { + // @ts-ignore + class Type extends java.lang.Enum { + // @ts-ignore + public static CLIENT: org.spongepowered.api.Platform.Type; + // @ts-ignore + public static SERVER: org.spongepowered.api.Platform.Type; + // @ts-ignore + public static UNKNOWN: org.spongepowered.api.Platform.Type; + // @ts-ignore + public static values(): org.spongepowered.api.Platform.Type[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.Platform.Type; + /** + * Checks for whether the platform is {@link #SERVER}. + */ + // @ts-ignore + public isServer(): boolean; + /** + * Checks for whether the platform is {@link #CLIENT}. + */ + // @ts-ignore + public isClient(): boolean; + /** + * Checks for whether the platform is known. + */ + // @ts-ignore + public isKnown(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.Platform.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.Platform.d.ts new file mode 100644 index 00000000..4464bb33 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.Platform.d.ts @@ -0,0 +1,57 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + // @ts-ignore + interface Platform { + // @ts-ignore + API_ID: string; + /** + * Retrieves the current {@link Type} this platform is running on. + */ + // @ts-ignore + getType(): org.spongepowered.api.Platform.Type; + /** + * Retrieves the current {@link Type} the platform is executing on. + *

A Minecraft instance will have a client and server thread. If the + * server is executing, this will return {@linkplain Type#SERVER} but + * {@link Platform#getType()} would return {@linkplain Type#CLIENT}.

+ */ + // @ts-ignore + getExecutionType(): org.spongepowered.api.Platform.Type; + /** + * Returns the {@link PluginContainer} for the specified platform + * {@link Component}. + */ + // @ts-ignore + getContainer(component: org.spongepowered.api.Platform.Component): org.spongepowered.api.plugin.PluginContainer; + /** + * Returns the current API plugin container. + */ + // @ts-ignore + getApi(): org.spongepowered.api.plugin.PluginContainer; + /** + * Returns the current implementation plugin container. + */ + // @ts-ignore + getImplementation(): org.spongepowered.api.plugin.PluginContainer; + /** + * Gets the current Minecraft version of this platform. + */ + // @ts-ignore + getMinecraftVersion(): org.spongepowered.api.MinecraftVersion; + /** + * Returns this platform instance, as a key-value map. + *

The returned map instance is connected directly to this platform + * instance. Existing keys like name and version are not modifiable, but + * new keys are stored in this instance and are shared between any + * references to a map obtained through the retrieved map.

+ *

This mechanism allows for platform-specific information like Forge + * version.

+ */ + // @ts-ignore + asMap(): java.util.Map; + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.Server.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.Server.d.ts new file mode 100644 index 00000000..815dba5d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.Server.d.ts @@ -0,0 +1,282 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + // @ts-ignore + interface Server { + /** + * Gets the {@link Player}s currently online. + */ + // @ts-ignore + getOnlinePlayers(): java.util.Collection; + /** + * Gets the max players allowed on this server. + */ + // @ts-ignore + getMaxPlayers(): number; + /** + * Gets a {@link Player} by their UUID. + */ + // @ts-ignore + getPlayer(uniqueId: java.util.UUID): java.util.Optional; + /** + * Gets a {@link Player} by their name. + *

This only works for online players.

+ *

Note: Do not use names for persistent storage, the + * Notch of today may not be the Notch of yesterday.

+ */ + // @ts-ignore + getPlayer(name: string): java.util.Optional; + /** + * Gets all currently loaded {@link World}s. + */ + // @ts-ignore + getWorlds(): java.util.Collection; + /** + * Gets the properties of all unloaded worlds. + */ + // @ts-ignore + getUnloadedWorlds(): java.util.Collection; + /** + * Gets the properties of all worlds, loaded or otherwise. + */ + // @ts-ignore + getAllWorldProperties(): java.util.Collection; + /** + * Gets a loaded {@link World} by its unique id ({@link UUID}), if it + * exists. + */ + // @ts-ignore + getWorld(uniqueId: java.util.UUID): java.util.Optional; + /** + * Gets a loaded {@link World} by name, if it exists. + */ + // @ts-ignore + getWorld(worldName: string): java.util.Optional; + /** + * Gets the properties of default world. + */ + // @ts-ignore + getDefaultWorld(): java.util.Optional; + /** + * Gets the default {@link World} name that the server creates and loads. + */ + // @ts-ignore + getDefaultWorldName(): string; + /** + * Loads a {@link World} from the default storage container. If a world with + * the given name is already loaded then it is returned instead. + */ + // @ts-ignore + loadWorld(worldName: string): java.util.Optional; + /** + * Loads a {@link World} from the default storage container. If a world with + * the given UUID is already loaded then it is returned instead. + */ + // @ts-ignore + loadWorld(uniqueId: java.util.UUID): java.util.Optional; + /** + * Loads a {@link World} from the default storage container. If the world + * associated with the given properties is already loaded then it is + * returned instead. + */ + // @ts-ignore + loadWorld(properties: org.spongepowered.api.world.storage.WorldProperties): java.util.Optional; + /** + * Gets the {@link WorldProperties} of a world. If a world with the given + * name is loaded then this is equivalent to calling + * {@link World#getProperties()}. However, if no loaded world is found then + * an attempt will be made to match unloaded worlds. + */ + // @ts-ignore + getWorldProperties(worldName: string): java.util.Optional; + /** + * Gets the {@link WorldProperties} of a world. If a world with the given + * UUID is loaded then this is equivalent to calling + * {@link World#getProperties()}. However, if no loaded world is found then + * an attempt will be made to match unloaded worlds. + */ + // @ts-ignore + getWorldProperties(uniqueId: java.util.UUID): java.util.Optional; + /** + * Unloads a {@link World}, if there are any connected players in the given + * world then no operation will occur. + *

A world which is unloaded will be removed from memory. However if it + * is still enabled according to {@link WorldProperties#isEnabled()} then it + * will be loaded again if the server is restarted.

+ */ + // @ts-ignore + unloadWorld(world: org.spongepowered.api.world.World): boolean; + /** + * Creates a new {@link WorldProperties} from the given + * {@link WorldArchetype}. For the creation of the WorldArchetype please see + * {@link org.spongepowered.api.world.WorldArchetype.Builder}. + *

If the {@link World} exists at the folder name given, the properties + * representing that folder name are returned instead.

+ *

Although the world is created it is not loaded at this time. Please + * see one of the following methods for loading the world.

+ *
  • {@link #loadWorld(String)}
  • {@link #loadWorld(UUID)} + *
  • {@link #loadWorld(WorldProperties)}
+ */ + // @ts-ignore + createWorldProperties(folderName: string, archetype: org.spongepowered.api.world.WorldArchetype): org.spongepowered.api.world.storage.WorldProperties; + /** + * Creates a world copy asynchronously using the new name given and returns + * the new world properties if the copy was possible. + *

If the world is already loaded then the following will occur:

+ *
    + *
  • World is saved.
  • + *
  • World saving is disabled.
  • + *
  • World is copied.
  • + *
  • World saving is enabled.
  • + *
+ */ + // @ts-ignore + copyWorld(worldProperties: org.spongepowered.api.world.storage.WorldProperties, copyName: string): java.util.concurrent.CompletableFuture; + /** + * Renames an unloaded world. + */ + // @ts-ignore + renameWorld(worldProperties: org.spongepowered.api.world.storage.WorldProperties, newName: string): java.util.Optional; + /** + * Deletes the provided world's files asynchronously from the disk. + */ + // @ts-ignore + deleteWorld(worldProperties: org.spongepowered.api.world.storage.WorldProperties): java.util.concurrent.CompletableFuture; + /** + * Persists the given {@link WorldProperties} to the world storage for it, + * updating any modified values. + */ + // @ts-ignore + saveWorldProperties(properties: org.spongepowered.api.world.storage.WorldProperties): boolean; + /** + * Gets the 'server' scoreboard. In Vanilla, this is the scoreboard of + * dimension 0 (the overworld). + *

The sever scoreboard is used with the Vanilla /scoreboard command, + * automatic score updating through criteria, and other things.

+ *

The server scoreboard may not be available if dimension 0 + * is not yet loaded. In Vanilla, this will only occur when the + * server is first starting, as dimension 0 is normally always loaded.

+ */ + // @ts-ignore + getServerScoreboard(): java.util.Optional; + /** + * Returns information about the chunk layout used by this server + * implementation. + */ + // @ts-ignore + getChunkLayout(): org.spongepowered.api.world.storage.ChunkLayout; + /** + * Gets the time, in ticks, since this server began running for the current + * session. + *

This value is not persisted across server restarts, it is set to zero + * each time the server starts.

+ */ + // @ts-ignore + getRunningTimeTicks(): number; + /** + * Gets the message channel that server-wide messages are sent through. + */ + // @ts-ignore + getBroadcastChannel(): org.spongepowered.api.text.channel.MessageChannel; + /** + * Sets the channel that server-wide messages should be sent through. + */ + // @ts-ignore + setBroadcastChannel(channel: org.spongepowered.api.text.channel.MessageChannel): void; + /** + * Gets the bound {@link InetSocketAddress} from where this server is + * accepting connections. + */ + // @ts-ignore + getBoundAddress(): java.util.Optional; + /** + * Tests if the server has a whitelist enabled. + */ + // @ts-ignore + hasWhitelist(): boolean; + /** + * Sets whether the server is utilizing a whitelist. + */ + // @ts-ignore + setHasWhitelist(enabled: boolean): void; + /** + * Tests if this server is set to online mode. + * Online mode authenticates users against Minecraft's servers, false + * performs no validity checks. + */ + // @ts-ignore + getOnlineMode(): boolean; + /** + * Gets the default message that is displayed in the server list of the + * client. + */ + // @ts-ignore + getMotd(): org.spongepowered.api.text.Text; + /** + * Shuts down the server, and kicks all players with the default kic + * k message. + *

For the Sponge implementation on the client, this will trigger the + * Integrated Server to shutdown a tick later.

+ */ + // @ts-ignore + shutdown(): void; + /** + * Shuts down the server, and kicks all players with the given message. + */ + // @ts-ignore + shutdown(kickMessage: org.spongepowered.api.text.Text): void; + /** + * Gets the command source used for commands coming from this server's + * console. + */ + // @ts-ignore + getConsole(): org.spongepowered.api.command.source.ConsoleSource; + /** + * Gets the ChunkTicketManager used for requesting tickets to force load + * chunks. + */ + // @ts-ignore + getChunkTicketManager(): org.spongepowered.api.world.ChunkTicketManager; + /** + * Gets the {@link GameProfileManager} for resolving game profiles. + */ + // @ts-ignore + getGameProfileManager(): org.spongepowered.api.profile.GameProfileManager; + /** + * Gets the current ticks per second. A tick represents one cycle of the + * game loop. + *

Note: The server aims to limit itself at 20 ticks per second. Lower + * ticks per second may elude to the server taking more time to process + * information per tick. Examples of overburdening the server per tick + * include spawning 10,000 cows in a small area.

+ */ + // @ts-ignore + getTicksPerSecond(): number; + /** + * Gets the default resource pack. The default resource pack is sent to + * players when they join the server. + */ + // @ts-ignore + getDefaultResourcePack(): java.util.Optional; + /** + * Gets the player idle timeout, in minutes. + *

A return value of {@code 0} disables the player idle timeout.

+ */ + // @ts-ignore + getPlayerIdleTimeout(): number; + /** + * Sets the player idle timeout, in minutes. + *

A value of {@code 0} disables the player idle timeout.

+ */ + // @ts-ignore + setPlayerIdleTimeout(timeout: number): void; + /** + * Checks if the current thread matches the main thread of the server. + */ + // @ts-ignore + isMainThread(): boolean; + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.Sponge.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.Sponge.d.ts new file mode 100644 index 00000000..77becb31 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.Sponge.d.ts @@ -0,0 +1,125 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + // @ts-ignore + class Sponge extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Gets the {@link Game} instance. There is ever only going + * to be a single game instance at any given time, except during + * the various extraneous {@link GameState}s that the game instance + * is otherwise unavailable. + */ + // @ts-ignore + public static getGame(): org.spongepowered.api.Game; + /** + * Returns the current platform, or implementation, this {@link Game} + * is running on. + */ + // @ts-ignore + public static getPlatform(): org.spongepowered.api.Platform; + /** + * Gets the {@link GameRegistry} instance. + */ + // @ts-ignore + public static getRegistry(): org.spongepowered.api.GameRegistry; + /** + * Gets the {@link DataManager} instance. + */ + // @ts-ignore + public static getDataManager(): org.spongepowered.api.data.DataManager; + /** + * Gets the {@link PropertyRegistry} instance to register + * {@link PropertyStore}s. + */ + // @ts-ignore + public static getPropertyRegistry(): org.spongepowered.api.data.property.PropertyRegistry; + /** + * Gets the {@link PluginManager} instance. + */ + // @ts-ignore + public static getPluginManager(): org.spongepowered.api.plugin.PluginManager; + /** + * Gets the {@link EventManager} instance. + */ + // @ts-ignore + public static getEventManager(): org.spongepowered.api.event.EventManager; + /** + * Gets the {@link AssetManager} instance. + */ + // @ts-ignore + public static getAssetManager(): org.spongepowered.api.asset.AssetManager; + /** + * Gets the {@link ConfigManager} used to load and manage configuration files + * for plugins. + */ + // @ts-ignore + public static getConfigManager(): org.spongepowered.api.config.ConfigManager; + /** + * Gets the {@link CommandManager} instance. + */ + // @ts-ignore + public static getCommandManager(): org.spongepowered.api.command.CommandManager; + /** + * Gets the game's instance of the service manager, which is the gateway + * to various services provided by Sponge (command registration and so on). + *

Services registered by other plugins may be available too.

+ */ + // @ts-ignore + public static getServiceManager(): org.spongepowered.api.service.ServiceManager; + /** + * Gets the scheduler used to schedule tasks. + */ + // @ts-ignore + public static getScheduler(): org.spongepowered.api.scheduler.Scheduler; + /** + * Gets the {@link ChannelRegistrar} for creating network channels. + */ + // @ts-ignore + public static getChannelRegistrar(): org.spongepowered.api.network.ChannelRegistrar; + /** + * Gets the {@link TeleportHelper}, used to find safe {@link Location}s. + */ + // @ts-ignore + public static getTeleportHelper(): org.spongepowered.api.world.TeleportHelper; + /** + * Gets whether a {@link Server} instance is available without throwing an + * exception from calling {@link #getServer()}. + */ + // @ts-ignore + public static isServerAvailable(): boolean; + /** + * Gets the {@link Server} instance from the + * {@link Game} instance. + *

Note: During various {@link GameState}s, a {@link Server} instance + * may NOT be available. During these specific states, + * calling {@link Game#getServer()} will throw an exception. To double + * check, call {@link #isServerAvailable()}

+ */ + // @ts-ignore + public static getServer(): org.spongepowered.api.Server; + /** + * Gets the {@link GameDictionary} instance from the + * {@link Game} instance. + */ + // @ts-ignore + public static getDictionary(): java.util.Optional; + /** + * Gets the {@link CauseStackManager} instance from the + * {@link Game} instance. + */ + // @ts-ignore + public static getCauseStackManager(): org.spongepowered.api.event.CauseStackManager; + /** + * Gets the {@link MetricsConfigManager} instance, allowing data/metric gathering + * systems to determine whether they have permission to gather server + * metrics. + */ + // @ts-ignore + public static getMetricsConfigManager(): org.spongepowered.api.util.metric.MetricsConfigManager; + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.Advancement.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.Advancement.Builder.d.ts new file mode 100644 index 00000000..618d2943 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.Advancement.Builder.d.ts @@ -0,0 +1,44 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace Advancement { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.CatalogBuilder { + /** + * Sets the parent {@link Advancement}. Defaults to {code null}. + */ + // @ts-ignore + parent(parent: org.spongepowered.api.advancement.Advancement): org.spongepowered.api.advancement.Advancement.Builder; + /** + * Sets the {@link AdvancementCriterion} that should be used + * for the advancement. Defaults to {@link AdvancementCriterion#EMPTY}. + */ + // @ts-ignore + criterion(criterion: org.spongepowered.api.advancement.criteria.AdvancementCriterion): org.spongepowered.api.advancement.Advancement.Builder; + /** + * Sets the {@link DisplayInfo}. Defaults to {code null}. + */ + // @ts-ignore + displayInfo(displayInfo: org.spongepowered.api.advancement.DisplayInfo): org.spongepowered.api.advancement.Advancement.Builder; + // @ts-ignore + id(id: string): org.spongepowered.api.advancement.Advancement.Builder; + /** + * Sets the name of the {@link Advancement}. Defaults to + * the plain {@link DisplayInfo#getTitle()} if the + * {@link DisplayInfo} is present. Otherwise will it default + * to the identifier ({@link #id(String)}). + */ + // @ts-ignore + name(name: string): org.spongepowered.api.advancement.Advancement.Builder; + // @ts-ignore + build(): org.spongepowered.api.advancement.Advancement; + // @ts-ignore + from(value: org.spongepowered.api.advancement.Advancement): org.spongepowered.api.advancement.Advancement.Builder; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.Advancement.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.Advancement.d.ts new file mode 100644 index 00000000..3b86b9fe --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.Advancement.d.ts @@ -0,0 +1,54 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + // @ts-ignore + interface Advancement extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.TextRepresentable { + /** + * Creates a new {@link Builder} to create {@link Advancement}s. + */ + // @ts-ignore + builder(): org.spongepowered.api.advancement.Advancement.Builder; + /** + * Gets the {@link AdvancementTree} this advancement is located in, + * will only be present if the root advancement was used to create + * a {@link AdvancementTree}. + */ + // @ts-ignore + getTree(): java.util.Optional; + /** + * Gets all the children {@link Advancement}s. + */ + // @ts-ignore + getChildren(): java.util.Collection; + /** + * Gets all the {@link AdvancementCriterion} that should be achieved + * before this advancement is unlocked. {@link AdvancementCriterion#EMPTY} + * will be returned if no criterion was assigned. + *

This {@link AdvancementCriterion} can be a AND or OR operation that + * contains multiple possible {@link AdvancementCriterion}s.

+ */ + // @ts-ignore + getCriterion(): org.spongepowered.api.advancement.criteria.AdvancementCriterion; + /** + * Gets the parent {@link Advancement}, if present. + */ + // @ts-ignore + getParent(): java.util.Optional; + /** + * Gets the {@link DisplayInfo} of this advancement, if present. + */ + // @ts-ignore + getDisplayInfo(): java.util.Optional; + /** + * Gets the {@link Text} lines that would be used to + * display a toast notification. + */ + // @ts-ignore + toToastText(): java.util.List; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.AdvancementProgress.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.AdvancementProgress.d.ts new file mode 100644 index 00000000..8b6f804f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.AdvancementProgress.d.ts @@ -0,0 +1,49 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + // @ts-ignore + interface AdvancementProgress extends org.spongepowered.api.advancement.Progressable { + /** + * Gets the {@link Advancement}. + */ + // @ts-ignore + getAdvancement(): org.spongepowered.api.advancement.Advancement; + /** + * Gets the {@link CriterionProgress} for the given + * {@link AdvancementCriterion} if the specified criterion is + * present on the {@link Advancement}. + *

For AND and OR criteria will wrapped {@link CriterionProgress} be + * provided that will interact with the {@link CriterionProgress}s + * for every child {@link AdvancementCriterion}s.

+ */ + // @ts-ignore + get(criterion: org.spongepowered.api.advancement.criteria.AdvancementCriterion): java.util.Optional; + /** + * Gets the {@link ScoreCriterionProgress} for the given + * {@link ScoreAdvancementCriterion} if the specified criterion is + * present on the {@link Advancement}. + */ + // @ts-ignore + get(criterion: org.spongepowered.api.advancement.criteria.ScoreAdvancementCriterion): java.util.Optional; + /** + * Gets the {@link CriterionProgress} for the + * given {@link AdvancementCriterion}. + *

For AND and OR criteria will wrapped {@link CriterionProgress} be + * provided that will interact with the {@link CriterionProgress}s + * for every child {@link AdvancementCriterion}s.

+ */ + // @ts-ignore + require(criterion: org.spongepowered.api.advancement.criteria.AdvancementCriterion): org.spongepowered.api.advancement.criteria.CriterionProgress; + /** + * Gets the {@link ScoreCriterionProgress} for the + * given {@link ScoreAdvancementCriterion}. + */ + // @ts-ignore + require(criterion: org.spongepowered.api.advancement.criteria.ScoreAdvancementCriterion): org.spongepowered.api.advancement.criteria.ScoreCriterionProgress; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.AdvancementTree.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.AdvancementTree.Builder.d.ts new file mode 100644 index 00000000..a06c7bea --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.AdvancementTree.Builder.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace AdvancementTree { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.CatalogBuilder { + /** + * Sets the root {@link Advancement}. The root advancement MUST have + * {@link DisplayInfo} present. + */ + // @ts-ignore + rootAdvancement(rootAdvancement: org.spongepowered.api.advancement.Advancement): org.spongepowered.api.advancement.AdvancementTree.Builder; + /** + * Sets the background of {@link AdvancementTree}. + *

Defaults to the stone background: + * {@code minecraft:textures/gui/advancements/backgrounds/stone.png}

+ */ + // @ts-ignore + background(background: string): org.spongepowered.api.advancement.AdvancementTree.Builder; + // @ts-ignore + id(id: string): org.spongepowered.api.advancement.AdvancementTree.Builder; + /** + * Sets the name of the {@link AdvancementTree}. Defaults to + * the plain {@link DisplayInfo#getTitle()} of the root + * {@link Advancement} if {@link DisplayInfo} is present. + * Otherwise will it default to the identifier ({@link #id(String)}). + */ + // @ts-ignore + name(name: string): org.spongepowered.api.advancement.AdvancementTree.Builder; + // @ts-ignore + build(): org.spongepowered.api.advancement.AdvancementTree; + // @ts-ignore + from(value: org.spongepowered.api.advancement.AdvancementTree): org.spongepowered.api.advancement.AdvancementTree.Builder; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.AdvancementTree.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.AdvancementTree.d.ts new file mode 100644 index 00000000..ee82ce33 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.AdvancementTree.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + // @ts-ignore + interface AdvancementTree extends org.spongepowered.api.CatalogType { + /** + * Creates a new {@link Builder} to create {@link AdvancementTree}s. + */ + // @ts-ignore + builder(): org.spongepowered.api.advancement.AdvancementTree.Builder; + /** + * Gets the root {@link Advancement}. + */ + // @ts-ignore + getRootAdvancement(): org.spongepowered.api.advancement.Advancement; + /** + * Gets the background texture of this tree. + */ + // @ts-ignore + getBackgroundPath(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.AdvancementType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.AdvancementType.d.ts new file mode 100644 index 00000000..5d583fba --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.AdvancementType.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + // @ts-ignore + interface AdvancementType extends org.spongepowered.api.CatalogType { + /** + * Gets the {@link TextFormat} of the advancement type. + */ + // @ts-ignore + getTextFormat(): org.spongepowered.api.text.format.TextFormat; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.AdvancementTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.AdvancementTypes.d.ts new file mode 100644 index 00000000..0538ff36 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.AdvancementTypes.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + // @ts-ignore + class AdvancementTypes extends java.lang.Object { + // @ts-ignore + public static CHALLENGE: org.spongepowered.api.advancement.AdvancementType; + // @ts-ignore + public static GOAL: org.spongepowered.api.advancement.AdvancementType; + // @ts-ignore + public static TASK: org.spongepowered.api.advancement.AdvancementType; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.DisplayInfo.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.DisplayInfo.Builder.d.ts new file mode 100644 index 00000000..94d80d98 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.DisplayInfo.Builder.d.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace DisplayInfo { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the {@link AdvancementType}. Defaults + * to {@link AdvancementTypes#TASK}. + */ + // @ts-ignore + type(advancementType: org.spongepowered.api.advancement.AdvancementType): org.spongepowered.api.advancement.DisplayInfo.Builder; + /** + * Sets the description. Defaults to {@link Text#EMPTY}. + */ + // @ts-ignore + description(description: org.spongepowered.api.text.Text): org.spongepowered.api.advancement.DisplayInfo.Builder; + /** + * Sets the title. + */ + // @ts-ignore + title(title: org.spongepowered.api.text.Text): org.spongepowered.api.advancement.DisplayInfo.Builder; + /** + * Sets the icon of the advancement with the + * specified {@link ItemType}. + */ + // @ts-ignore + icon(itemType: org.spongepowered.api.item.ItemType): org.spongepowered.api.advancement.DisplayInfo.Builder; + /** + * Sets the icon of the advancement with the + * specified {@link ItemStack}. + */ + // @ts-ignore + icon(itemStack: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.advancement.DisplayInfo.Builder; + /** + * Sets the icon of the advancement with the + * specified {@link ItemStackSnapshot}. + */ + // @ts-ignore + icon(itemStackSnapshot: org.spongepowered.api.item.inventory.ItemStackSnapshot): org.spongepowered.api.advancement.DisplayInfo.Builder; + /** + * Sets whether a toast should be shown. This is the notification + * that will be displayed in the top right corner. + *

Defaults to {@code true}.

+ */ + // @ts-ignore + showToast(showToast: boolean): org.spongepowered.api.advancement.DisplayInfo.Builder; + /** + * Sets whether a notification should be shown in the global chat. + *

Defaults to {@code true}.

+ */ + // @ts-ignore + announceToChat(announceToChat: boolean): org.spongepowered.api.advancement.DisplayInfo.Builder; + /** + * Sets whether the {@link Advancement} should be hidden. + *

Hidden advancements will only appear in the tree once they + * are unlocked. The lines that connect them to other advancements + * are still present.

+ */ + // @ts-ignore + hidden(hidden: boolean): org.spongepowered.api.advancement.DisplayInfo.Builder; + /** + * Builds the {@link DisplayInfo}. + */ + // @ts-ignore + build(): org.spongepowered.api.advancement.DisplayInfo; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.DisplayInfo.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.DisplayInfo.d.ts new file mode 100644 index 00000000..62dc1750 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.DisplayInfo.d.ts @@ -0,0 +1,57 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + // @ts-ignore + interface DisplayInfo { + /** + * Creates a new {@link Builder} to create {@link DisplayInfo}s. + */ + // @ts-ignore + builder(): org.spongepowered.api.advancement.DisplayInfo.Builder; + /** + * Gets the {@link AdvancementType}. + */ + // @ts-ignore + getType(): org.spongepowered.api.advancement.AdvancementType; + /** + * Gets the description. + */ + // @ts-ignore + getDescription(): org.spongepowered.api.text.Text; + /** + * Gets the icon. + */ + // @ts-ignore + getIcon(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + /** + * Gets the title. + */ + // @ts-ignore + getTitle(): org.spongepowered.api.text.Text; + /** + * Gets whether a toast should be shown. + *

The toast is the notification that will be displayed + * in the top right corner.

+ */ + // @ts-ignore + doesShowToast(): boolean; + /** + * Gets whether a notification should be shown in the global chat. + */ + // @ts-ignore + doesAnnounceToChat(): boolean; + /** + * Gets whether this advancement is hidden. + *

Hidden advancements will only appear in the tree once they + * are unlocked. The lines that connect them to other advancements + * are still present.

+ */ + // @ts-ignore + isHidden(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.Progressable.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.Progressable.d.ts new file mode 100644 index 00000000..233b86da --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.Progressable.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + // @ts-ignore + interface Progressable { + /** + * Gets whether this {@link Progressable} is achieved. + */ + // @ts-ignore + achieved(): boolean; + /** + * Gets the time that the {@link Progressable} was + * achieved if present. + */ + // @ts-ignore + get(): java.util.Optional; + /** + * Grants this {@link Progressable}, if achieved before + * that time will be returned. + */ + // @ts-ignore + grant(): java.time.Instant; + /** + * Revokes the {@link Progressable} status. The time that the {@link Progressable} + * was achieved before will be returned if present. + */ + // @ts-ignore + revoke(): java.util.Optional; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.TreeLayout.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.TreeLayout.d.ts new file mode 100644 index 00000000..d6e7bc9e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.TreeLayout.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + // @ts-ignore + interface TreeLayout { + /** + * Gets the {@link AdvancementTree} this layout is assigned to. + */ + // @ts-ignore + getTree(): org.spongepowered.api.advancement.AdvancementTree; + /** + * Gets all the {@link TreeLayoutElement}s that are + * present in this layout. + */ + // @ts-ignore + getElements(): java.util.Collection; + /** + * Gets the {@link TreeLayoutElement} for the specified {@link Advancement}, + * {@link Optional#empty()} will be returned if the advancement is not present + * in the tree or if there is no {@link DisplayInfo} present. + */ + // @ts-ignore + getElement(advancement: org.spongepowered.api.advancement.Advancement): java.util.Optional; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.TreeLayoutElement.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.TreeLayoutElement.d.ts new file mode 100644 index 00000000..72d6f265 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.TreeLayoutElement.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + // @ts-ignore + interface TreeLayoutElement { + /** + * Gets the {@link Advancement}. + */ + // @ts-ignore + getAdvancement(): org.spongepowered.api.advancement.Advancement; + /** + * Gets the position of the {@link Advancement}. + */ + // @ts-ignore + getPosition(): any /*Vector2d*/; + /** + * Sets the position of the {@link Advancement}. + */ + // @ts-ignore + setPosition(position: any /*Vector2d*/): void; + /** + * Sets the position of the {@link Advancement}. + */ + // @ts-ignore + setPosition(x: number, y: number): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.AdvancementCriterion.BaseBuilder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.AdvancementCriterion.BaseBuilder.d.ts new file mode 100644 index 00000000..9489a99d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.AdvancementCriterion.BaseBuilder.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + namespace AdvancementCriterion { + // @ts-ignore + interface BaseBuilder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the {@link FilteredTrigger}. + */ + // @ts-ignore + trigger(trigger: org.spongepowered.api.advancement.criteria.trigger.FilteredTrigger): org.spongepowered.api.advancement.criteria.AdvancementCriterion.BaseBuilder; + /** + * Sets the name of the {@link AdvancementCriterion}. Names can be + * shared between multiple criteria, although it isn't allowed when + * using them for the same {@link Advancement}. + */ + // @ts-ignore + name(name: string): org.spongepowered.api.advancement.criteria.AdvancementCriterion.BaseBuilder; + /** + * Builds a new {@link AdvancementCriterion}. + */ + // @ts-ignore + build(): org.spongepowered.api.advancement.criteria.AdvancementCriterion; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.AdvancementCriterion.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.AdvancementCriterion.Builder.d.ts new file mode 100644 index 00000000..56f3583a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.AdvancementCriterion.Builder.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + namespace AdvancementCriterion { + // @ts-ignore + interface Builder extends org.spongepowered.api.advancement.criteria.AdvancementCriterion.BaseBuilder { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.AdvancementCriterion.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.AdvancementCriterion.d.ts new file mode 100644 index 00000000..016cd449 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.AdvancementCriterion.d.ts @@ -0,0 +1,70 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + // @ts-ignore + interface AdvancementCriterion { + // @ts-ignore + EMPTY: org.spongepowered.api.advancement.criteria.AdvancementCriterion; + // @ts-ignore + DUMMY: org.spongepowered.api.advancement.criteria.AdvancementCriterion; + /** + * Creates a new {@link Builder} to create {@link AdvancementCriterion}s. + */ + // @ts-ignore + builder(): org.spongepowered.api.advancement.criteria.AdvancementCriterion.Builder; + /** + * Gets the name of this criterion. + */ + // @ts-ignore + getName(): string; + /** + * Combines this {@link AdvancementCriterion} with the other criteria + * to create an AND operation. + *

There is no guarantee that the returned extends {@link AndCriterion}, + * this depends on if there are duplicate criteria, {@link #EMPTY} + * is present, or when no extra criteria are provided.

+ */ + // @ts-ignore + and(criteria: org.spongepowered.api.advancement.criteria.AdvancementCriterion): org.spongepowered.api.advancement.criteria.AdvancementCriterion; + /** + * Combines this {@link AdvancementCriterion} with the other criteria + * to create an AND operation. + *

There is no guarantee that the returned extends {@link AndCriterion}, + * this depends on if there are duplicate criteria, {@link #EMPTY} + * is present, or when no extra criteria are provided.

+ */ + // @ts-ignore + and(criteria: java.lang.Iterable): org.spongepowered.api.advancement.criteria.AdvancementCriterion; + /** + * Combines this {@link AdvancementCriterion} with the other criteria + * to create an OR operation. + *

There is no guarantee that the returned extends {@link OrCriterion}, + * this depends on if there are duplicate criteria, {@link #EMPTY} + * is present, or when no extra criteria are provided.

+ */ + // @ts-ignore + or(criteria: org.spongepowered.api.advancement.criteria.AdvancementCriterion): org.spongepowered.api.advancement.criteria.AdvancementCriterion; + /** + * Combines this {@link AdvancementCriterion} with the other criteria + * to create an OR operation. + *

There is no guarantee that the returned extends {@link OrCriterion}, + * this depends on if there are duplicate criteria, {@link #EMPTY} + * is present, or when no extra criteria are provided.

+ */ + // @ts-ignore + or(criteria: java.lang.Iterable): org.spongepowered.api.advancement.criteria.AdvancementCriterion; + /** + * Gets the {@link FilteredTrigger} of this + * {@link AdvancementCriterion}, if present. + */ + // @ts-ignore + getTrigger(): java.util.Optional; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.AndCriterion.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.AndCriterion.d.ts new file mode 100644 index 00000000..52f33f9f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.AndCriterion.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + // @ts-ignore + interface AndCriterion extends org.spongepowered.api.advancement.criteria.OperatorCriterion { + /** + * Attempts to build a new AND operation with the + * given {@link AdvancementCriterion}s. + *

There is no guarantee that the returned extends {@link AndCriterion}, + * this depends on if there are duplicate criteria, {@link #EMPTY} + * is present, or when no extra criteria are provided.

+ */ + // @ts-ignore + of(criteria: org.spongepowered.api.advancement.criteria.AdvancementCriterion): org.spongepowered.api.advancement.criteria.AdvancementCriterion; + /** + * Attempts to build a new AND operation with the + * given {@link AdvancementCriterion}s. + *

There is no guarantee that the returned extends {@link AndCriterion}, + * this depends on if there are duplicate criteria, {@link #EMPTY} + * is present, or when no extra criteria are provided.

+ */ + // @ts-ignore + of(criteria: java.lang.Iterable): org.spongepowered.api.advancement.criteria.AdvancementCriterion; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.CriterionProgress.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.CriterionProgress.d.ts new file mode 100644 index 00000000..c975963c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.CriterionProgress.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + // @ts-ignore + interface CriterionProgress extends org.spongepowered.api.advancement.Progressable { + /** + * Gets the {@link AdvancementCriterion}. + */ + // @ts-ignore + getCriterion(): org.spongepowered.api.advancement.criteria.AdvancementCriterion; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.OperatorCriterion.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.OperatorCriterion.d.ts new file mode 100644 index 00000000..615a6f23 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.OperatorCriterion.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + // @ts-ignore + interface OperatorCriterion extends org.spongepowered.api.advancement.criteria.AdvancementCriterion { + /** + * Attempts to find all the children {@link AdvancementCriterion}s + * with the specified name. The children will be checked recursively. + */ + // @ts-ignore + find(name: string): java.util.Collection; + /** + * Attempts to find the first child {@link AdvancementCriterion} with + * the specified name. The children will be checked recursively, but + * direct children are prioritized. + */ + // @ts-ignore + findFirst(name: string): java.util.Optional; + /** + * Gets the children {@link AdvancementCriterion}s of this + * {@link OperatorCriterion}. May contain {@link OperatorCriterion}s. + */ + // @ts-ignore + getCriteria(): java.util.Collection; + /** + * Gets the leaf {@link AdvancementCriterion}s. This means that there will + * never be any {@link OperatorCriterion}s in this list. + */ + // @ts-ignore + getLeafCriteria(): java.util.Collection; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.OrCriterion.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.OrCriterion.d.ts new file mode 100644 index 00000000..635ff5e3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.OrCriterion.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + // @ts-ignore + interface OrCriterion extends org.spongepowered.api.advancement.criteria.OperatorCriterion { + /** + * Attempts to build a new OR operation with the + * given {@link AdvancementCriterion}s. + *

There is no guarantee that the returned extends {@link OrCriterion}, + * this depends on if there are duplicate criteria, {@link #EMPTY} + * is present, or when no extra criteria are provided.

+ */ + // @ts-ignore + of(criteria: org.spongepowered.api.advancement.criteria.AdvancementCriterion): org.spongepowered.api.advancement.criteria.AdvancementCriterion; + /** + * Attempts to build a new OR operation with the + * given {@link AdvancementCriterion}s. + *

There is no guarantee that the returned extends {@link OrCriterion}, + * this depends on if there are duplicate criteria, {@link #EMPTY} + * is present, or when no extra criteria are provided.

+ */ + // @ts-ignore + of(criteria: java.lang.Iterable): org.spongepowered.api.advancement.criteria.AdvancementCriterion; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.ScoreAdvancementCriterion.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.ScoreAdvancementCriterion.Builder.d.ts new file mode 100644 index 00000000..5894ab0c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.ScoreAdvancementCriterion.Builder.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + namespace ScoreAdvancementCriterion { + // @ts-ignore + interface Builder extends org.spongepowered.api.advancement.criteria.AdvancementCriterion.BaseBuilder { + /** + * Sets the goal value. This value must be greater then zero. + *

Defaults to {@code 1}.

+ */ + // @ts-ignore + goal(goal: number): org.spongepowered.api.advancement.criteria.ScoreAdvancementCriterion.Builder; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.ScoreAdvancementCriterion.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.ScoreAdvancementCriterion.d.ts new file mode 100644 index 00000000..fd67b3e5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.ScoreAdvancementCriterion.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + // @ts-ignore + interface ScoreAdvancementCriterion extends org.spongepowered.api.advancement.criteria.AdvancementCriterion { + /** + * Creates a new {@link Builder} which can be used to create + * a {@link ScoreAdvancementCriterion}. + */ + // @ts-ignore + builder(): org.spongepowered.api.advancement.criteria.ScoreAdvancementCriterion.Builder; + /** + * Gets the goal value. + */ + // @ts-ignore + getGoal(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.ScoreCriterionProgress.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.ScoreCriterionProgress.d.ts new file mode 100644 index 00000000..02e67153 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.ScoreCriterionProgress.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + // @ts-ignore + interface ScoreCriterionProgress extends org.spongepowered.api.advancement.criteria.CriterionProgress { + // @ts-ignore + getCriterion(): org.spongepowered.api.advancement.criteria.ScoreAdvancementCriterion; + /** + * Gets the goal value. + */ + // @ts-ignore + getGoal(): number; + /** + * Gets the score value. + */ + // @ts-ignore + getScore(): number; + /** + * Adds the target score value, the score cannot exceed + * the goal value ({@link #getGoal()}) or be under zero. + * The achieved time will be returned if the goal is met. + */ + // @ts-ignore + set(score: number): java.util.Optional; + /** + * Adds the target score value, the score cannot exceed + * the goal value ({@link #getGoal()}). The achieved time + * will be returned if the goal is met. + */ + // @ts-ignore + add(score: number): java.util.Optional; + /** + * Removes the target score value, the score cannot go under zero. + * The achieved time will be returned if the goal is met before. + */ + // @ts-ignore + remove(score: number): java.util.Optional; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.trigger.FilteredTrigger.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.trigger.FilteredTrigger.Builder.d.ts new file mode 100644 index 00000000..babf5dab --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.trigger.FilteredTrigger.Builder.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + namespace trigger { + namespace FilteredTrigger { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the {@link Trigger}. + */ + // @ts-ignore + type(type: org.spongepowered.api.advancement.criteria.trigger.Trigger): org.spongepowered.api.advancement.criteria.trigger.FilteredTrigger.Builder; + /** + * Sets the {@link FilteredTriggerConfiguration}. + */ + // @ts-ignore + config(config: org.spongepowered.api.advancement.criteria.trigger.FilteredTriggerConfiguration): org.spongepowered.api.advancement.criteria.trigger.FilteredTrigger.Builder; + /** + * Builds the {@link FilteredTrigger}. + */ + // @ts-ignore + build(): org.spongepowered.api.advancement.criteria.trigger.FilteredTrigger; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.trigger.FilteredTrigger.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.trigger.FilteredTrigger.d.ts new file mode 100644 index 00000000..46f45101 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.trigger.FilteredTrigger.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + namespace trigger { + // @ts-ignore + interface FilteredTrigger { + /** + * Creates a new {@link Trigger.Builder}. + */ + // @ts-ignore + builder(): org.spongepowered.api.advancement.criteria.trigger.FilteredTrigger.Builder; + /** + * Gets the {@link Trigger}. + */ + // @ts-ignore + getType(): org.spongepowered.api.advancement.criteria.trigger.Trigger; + /** + * Gets the {@link FilteredTriggerConfiguration} of this trigger. + */ + // @ts-ignore + getConfiguration(): org.spongepowered.api.advancement.criteria.trigger.FilteredTriggerConfiguration; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.trigger.FilteredTriggerConfiguration.Empty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.trigger.FilteredTriggerConfiguration.Empty.d.ts new file mode 100644 index 00000000..32370c0f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.trigger.FilteredTriggerConfiguration.Empty.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + namespace trigger { + namespace FilteredTriggerConfiguration { + // @ts-ignore + class Empty extends java.lang.Object implements org.spongepowered.api.advancement.criteria.trigger.FilteredTriggerConfiguration { + // @ts-ignore + constructor() + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.trigger.FilteredTriggerConfiguration.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.trigger.FilteredTriggerConfiguration.d.ts new file mode 100644 index 00000000..b1fff8c2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.trigger.FilteredTriggerConfiguration.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + namespace trigger { + // @ts-ignore + interface FilteredTriggerConfiguration { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.trigger.Trigger.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.trigger.Trigger.Builder.d.ts new file mode 100644 index 00000000..203aa86a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.trigger.Trigger.Builder.d.ts @@ -0,0 +1,90 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + namespace trigger { + namespace Trigger { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the class for the {@link FilteredTriggerConfiguration} as + * a {@link DataSerializable}. The configuration will be constructed + * using the {@link DataBuilder} that is registered for + * the {@link DataSerializable}. + */ + // @ts-ignore + dataSerializableConfig(dataConfigClass: java.lang.Class): org.spongepowered.api.advancement.criteria.trigger.Trigger.Builder; + /** + * Sets the class for the {@link FilteredTriggerConfiguration} as + * a config serializable. This configuration will be constructed + * using Configurate (with {@link TypeSerializer}s). + */ + // @ts-ignore + typeSerializableConfig(configClass: java.lang.Class): org.spongepowered.api.advancement.criteria.trigger.Trigger.Builder; + /** + * Sets the class for the {@link FilteredTriggerConfiguration} as + * a config serializable. This configuration will be constructed using + * Configurate (with {@link TypeSerializer}s) with a + * specific {@link TypeSerializerCollection} instead of the global one. + */ + // @ts-ignore + typeSerializableConfig(configClass: java.lang.Class, typeSerializerCollection: any /*TypeSerializerCollection*/): org.spongepowered.api.advancement.criteria.trigger.Trigger.Builder; + /** + * Sets the class for the {@link FilteredTriggerConfiguration} as + * a json serializable. This configuration will be constructed using + * the provided {@link Gson} instance. + */ + // @ts-ignore + jsonSerializableConfig(configClass: java.lang.Class, gson: any /*Gson*/): org.spongepowered.api.advancement.criteria.trigger.Trigger.Builder; + /** + * Sets the class for the {@link FilteredTriggerConfiguration} as + * a json serializable. This configuration will be constructed using + * the default {@link Gson} instance. + */ + // @ts-ignore + jsonSerializableConfig(configClass: java.lang.Class): org.spongepowered.api.advancement.criteria.trigger.Trigger.Builder; + /** + * Sets the class for the {@link FilteredTriggerConfiguration} to use + * {@link FilteredTriggerConfiguration.Empty}. + */ + // @ts-ignore + emptyConfig(): org.spongepowered.api.advancement.criteria.trigger.Trigger.Builder; + /** + * Adds the {@link Consumer} to handle the triggers. If no handler is + * provided then will the result of the trigger always be {@code true}, + * which results in triggering the {@link Criterion}. + *

The {@link Cause} of the event should be used to determine + * whether the configuration matches the requirements to trigger + * the criterion.

+ */ + // @ts-ignore + listener(eventListener: java.util.function$.Consumer): org.spongepowered.api.advancement.criteria.trigger.Trigger.Builder; + /** + * Sets the identifier of the {@link Trigger} + * (without the namespace). + */ + // @ts-ignore + id(id: string): org.spongepowered.api.advancement.criteria.trigger.Trigger.Builder; + /** + * Sets the name of the {@link Trigger}. Defaults + * to the identifier ({@link #id(String)}). + */ + // @ts-ignore + name(name: string): org.spongepowered.api.advancement.criteria.trigger.Trigger.Builder; + /** + * Builds a {@link Trigger}. + */ + // @ts-ignore + build(): org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + from(value: org.spongepowered.api.advancement.criteria.trigger.Trigger): org.spongepowered.api.advancement.criteria.trigger.Trigger.Builder; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.trigger.Trigger.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.trigger.Trigger.d.ts new file mode 100644 index 00000000..72976be9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.trigger.Trigger.d.ts @@ -0,0 +1,45 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + namespace trigger { + // @ts-ignore + interface Trigger extends org.spongepowered.api.CatalogType { + /** + * Creates a new {@link Builder} which can be used to create + * a {@link Trigger}. + */ + // @ts-ignore + builder(): org.spongepowered.api.advancement.criteria.trigger.Trigger.Builder; + /** + * Gets the type of the used {@link FilteredTriggerConfiguration}. + */ + // @ts-ignore + getConfigurationType(): java.lang.Class; + /** + * Triggers the {@link Trigger} for all + * the online {@link Player}s. + */ + // @ts-ignore + trigger(): void; + /** + * Triggers the {@link Trigger} for the + * specified {@link Player}s. + */ + // @ts-ignore + trigger(players: java.lang.Iterable): void; + /** + * Triggers the {@link Trigger} for the + * specified {@link Player}. + */ + // @ts-ignore + trigger(player: org.spongepowered.api.entity.living.player.Player): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.trigger.Triggers.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.trigger.Triggers.d.ts new file mode 100644 index 00000000..1ae8e466 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.advancement.criteria.trigger.Triggers.d.ts @@ -0,0 +1,70 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace advancement { + namespace criteria { + namespace trigger { + // @ts-ignore + class Triggers extends java.lang.Object { + // @ts-ignore + public static BRED_ANIMALS: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static BREWED_POTION: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static CHANGED_DIMENSION: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static CONSTRUCT_BEACON: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static CONSUME_ITEM: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static CURED_ZOMBIE_VILLAGER: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static ENCHANTED_ITEM: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static ENTER_BLOCK: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static ENTITY_HURT_PLAYER: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static ENTITY_KILLED_PLAYER: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static IMPOSSIBLE: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static INVENTORY_CHANGED: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static ITEM_DURABILITY_CHANGED: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static LEVITATION: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static LOCATION: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static NETHER_TRAVEL: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static PLACED_BLOCK: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static PLAYER_HURT_ENTITY: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static PLAYER_KILLED_ENTITY: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static RECIPE_UNLOCKED: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static SLEPT_IN_BED: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static SUMMONED_ENTITY: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static TAME_ANIMAL: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static TICK: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static USED_ENDER_EYE: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static USED_TOTEM: org.spongepowered.api.advancement.criteria.trigger.Trigger; + // @ts-ignore + public static VILLAGER_TRADE: org.spongepowered.api.advancement.criteria.trigger.Trigger; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.asset.Asset.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.asset.Asset.d.ts new file mode 100644 index 00000000..2f85234f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.asset.Asset.d.ts @@ -0,0 +1,87 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace asset { + // @ts-ignore + interface Asset { + // @ts-ignore + DEFAULT_CHARSET: java.nio.charset.Charset; + /** + * Returns the original {@link Plugin} owner of this Asset. + */ + // @ts-ignore + getOwner(): org.spongepowered.api.plugin.PluginContainer; + /** + * Returns the {@link URL} to this Asset. + */ + // @ts-ignore + getUrl(): java.net.URL; + /** + * Copies this Asset to the specified 'output' {@link Path}. + */ + // @ts-ignore + copyToFile(output: java.nio.file.Path): void; + /** + * Copies this Asset to the specified 'output' {@link Path}. + */ + // @ts-ignore + copyToFile(output: java.nio.file.Path, overwrite: boolean): void; + /** + * Copies this Asset to the specified 'output' {@link Path}. + */ + // @ts-ignore + copyToFile(output: java.nio.file.Path, overwrite: boolean, onlyIfAbsent: boolean): void; + /** + * Copies this Asset to the specified 'outputDirectory' {@link Path}. + */ + // @ts-ignore + copyToDirectory(outputDirectory: java.nio.file.Path): void; + /** + * Copies this Asset to the specified 'outputDirectory' {@link Path}. + */ + // @ts-ignore + copyToDirectory(outputDirectory: java.nio.file.Path, overwrite: boolean): void; + /** + * Copies this Asset to the specified 'outputDirectory' {@link Path}. + */ + // @ts-ignore + copyToDirectory(outputDirectory: java.nio.file.Path, overwrite: boolean, onlyIfAbsent: boolean): void; + /** + * Returns the the last portion of the Asset URL, e.g. the file name. + */ + // @ts-ignore + getFileName(): string; + /** + * Reads this Asset in it's entirety as a {@link String} and returns the + * result. + */ + // @ts-ignore + readString(): string; + /** + * Reads this Asset in it's entirety as a {@link String} and returns the + * result. + */ + // @ts-ignore + readString(charset: java.nio.charset.Charset): string; + /** + * Reads all lines from the asset and returns the result. + */ + // @ts-ignore + readLines(): java.util.List; + /** + * Reads all lines from the asset and returns the result. + */ + // @ts-ignore + readLines(charset: java.nio.charset.Charset): java.util.List; + /** + * Reads this Asset in it's entirety as a byte array and returns the + * result. + */ + // @ts-ignore + readBytes(): number[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.asset.AssetId.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.asset.AssetId.d.ts new file mode 100644 index 00000000..8f5156d3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.asset.AssetId.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace asset { + // @ts-ignore + interface AssetId { + /** + * The path to the {@link Asset} in the asset folder of the plugin. + */ + // @ts-ignore + value(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.asset.AssetManager.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.asset.AssetManager.d.ts new file mode 100644 index 00000000..a0da40ca --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.asset.AssetManager.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace asset { + // @ts-ignore + interface AssetManager { + /** + * Returns the {@link Asset} of the specified name for the specified + * {@link Plugin} instance. + */ + // @ts-ignore + getAsset(plugin: java.lang.Object, name: string): java.util.Optional; + /** + * Returns the {@link Asset} of the specified name within the domain of the + * implementation. This method will typically call + * {@link #getAsset(Object, String)} using a dummy + * {@link PluginContainer} for the SpongeAPI implementation. + */ + // @ts-ignore + getAsset(name: string): java.util.Optional; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockSnapshot.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockSnapshot.Builder.d.ts new file mode 100644 index 00000000..bd81876a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockSnapshot.Builder.d.ts @@ -0,0 +1,49 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace BlockSnapshot { + // @ts-ignore + interface Builder extends org.spongepowered.api.data.ImmutableDataBuilder { + /** + * Sets the {@link WorldProperties} for this {@link BlockSnapshot}. + *

+ * This is used to grab the {@link UUID} of the World for this snapshot. + *

+ */ + // @ts-ignore + world(worldProperties: org.spongepowered.api.world.storage.WorldProperties): org.spongepowered.api.block.BlockSnapshot.Builder; + /** + * Sets the {@link BlockState} for this {@link BlockSnapshot}. + */ + // @ts-ignore + blockState(blockState: org.spongepowered.api.block.BlockState): org.spongepowered.api.block.BlockSnapshot.Builder; + /** + * Sets the coordinates of this {@link BlockSnapshot} from a {@link Vector3i}. + */ + // @ts-ignore + position(position: any /*Vector3i*/): org.spongepowered.api.block.BlockSnapshot.Builder; + /** + * Copies over block data from a {@link Location}. + */ + // @ts-ignore + from(location: org.spongepowered.api.world.Location): org.spongepowered.api.block.BlockSnapshot.Builder; + /** + * Sets the {@link UUID} of the user who created this + * {@link BlockSnapshot}. + */ + // @ts-ignore + creator(uuid: java.util.UUID): org.spongepowered.api.block.BlockSnapshot.Builder; + /** + * Sets the {@link UUID} of the user who last notified this + * {@link BlockSnapshot}. + */ + // @ts-ignore + notifier(uuid: java.util.UUID): org.spongepowered.api.block.BlockSnapshot.Builder; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockSnapshot.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockSnapshot.d.ts new file mode 100644 index 00000000..9f529f03 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockSnapshot.d.ts @@ -0,0 +1,83 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + // @ts-ignore + interface BlockSnapshot extends org.spongepowered.api.data.LocatableSnapshot { + // @ts-ignore + NONE: org.spongepowered.api.block.BlockSnapshot; + /** + * Creates a {@link Builder} to get {@link BlockSnapshot}s. + */ + // @ts-ignore + builder(): org.spongepowered.api.block.BlockSnapshot.Builder; + /** + * Gets the {@link BlockState}. + */ + // @ts-ignore + getState(): org.spongepowered.api.block.BlockState; + /** + * Gets the extended {@link BlockState}. This applies extended properties + * that are usually located around the associated {@link BlockType}. Check + * {@link BlockState#withExtendedProperties(Location)} for more info. + */ + // @ts-ignore + getExtendedState(): org.spongepowered.api.block.BlockState; + /** + * Creates a copy of the {@link BlockSnapshot} with the provided + * {@link BlockState}. Any additional data associated with a + * {@link TileEntity} or custom data may be lost. + *

Note: all custom data, including implementation detailed + * data relating to any and all {@link TileEntity} instances that + * was included in this snapshot will NOT copy over to the new + * snapshot.

+ */ + // @ts-ignore + withState(blockState: org.spongepowered.api.block.BlockState): org.spongepowered.api.block.BlockSnapshot; + /** + * Creates a copy of the {@link BlockSnapshot} with the provided + * {@link DataContainer}. Note that this is equal to calling + * {@link Builder#build(DataView)}. All data is + * validated and + */ + // @ts-ignore + withContainer(container: org.spongepowered.api.data.DataContainer): org.spongepowered.api.block.BlockSnapshot; + /** + * Restores the {@link BlockSnapshot} to the {@link Location} stored within + * the snapshot. If the {@link Location} is not available, the snapshot will + * not be restored. + *

If forced, the state of the block will change its {@link BlockType} + * to match that of the snapshot then set the state. However, if force is + * set to false and the {@link BlockType}s does not match, false will be + * returned. + * If notifyNeighbors is true, neighboring blocks will be notified of + * changes at the restored block location triggering physic updates.

+ */ + // @ts-ignore + restore(force: boolean, flag: org.spongepowered.api.world.BlockChangeFlag): boolean; + /** + * Gets the {@link UUID}, if available, of the user who created this + * {@link BlockSnapshot}. + */ + // @ts-ignore + getCreator(): java.util.Optional; + /** + * Gets the {@link UUID}, if available, of the user who last notified this + * {@link BlockSnapshot}. + */ + // @ts-ignore + getNotifier(): java.util.Optional; + /** + * Creates a new {@link TileEntityArchetype} for use with {@link Schematic}s + * and placing the archetype in multiple locations. + *

If this blocksnapshot does not contain a tile entity then this will + * return {@link Optional#empty()}.

+ */ + // @ts-ignore + createArchetype(): java.util.Optional; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockSoundGroup.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockSoundGroup.d.ts new file mode 100644 index 00000000..c680b706 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockSoundGroup.d.ts @@ -0,0 +1,47 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + // @ts-ignore + interface BlockSoundGroup { + /** + * Gets the volume used when playing sounds. + */ + // @ts-ignore + getVolume(): number; + /** + * Gets the pitch used when playing sounds. + */ + // @ts-ignore + getPitch(): number; + /** + * Gets the sound played when the block is breaking. + */ + // @ts-ignore + getBreakSound(): org.spongepowered.api.effect.sound.SoundType; + /** + * Gets the sound played when the block is stepped on. + */ + // @ts-ignore + getStepSound(): org.spongepowered.api.effect.sound.SoundType; + /** + * Gets the sound played when the block is placed. + */ + // @ts-ignore + getPlaceSound(): org.spongepowered.api.effect.sound.SoundType; + /** + * Gets the sound played when the block is hit. + */ + // @ts-ignore + getHitSound(): org.spongepowered.api.effect.sound.SoundType; + /** + * Gets the sound played when a {@link Living} entity falls onto the block. + */ + // @ts-ignore + getFallSound(): org.spongepowered.api.effect.sound.SoundType; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockState.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockState.Builder.d.ts new file mode 100644 index 00000000..e8e2c617 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockState.Builder.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace BlockState { + // @ts-ignore + interface Builder extends org.spongepowered.api.data.ImmutableDataBuilder { + /** + * Sets the {@link BlockType} for the {@link BlockState} to build. + *

The {@link BlockType} is used for some pre-validation on addition of + * {@link DataManipulator}s through {@link #add(DataManipulator)}. It is + * important to understand that not all manipulators are compatible with + * all {@link BlockType}s.

+ */ + // @ts-ignore + blockType(blockType: org.spongepowered.api.block.BlockType): org.spongepowered.api.block.BlockState.Builder; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockState.MatcherBuilder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockState.MatcherBuilder.d.ts new file mode 100644 index 00000000..319cf983 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockState.MatcherBuilder.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace BlockState { + // @ts-ignore + class MatcherBuilder extends java.lang.Object implements org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the root {@link BlockType} for the {@link StateMatcher}. + *

Note that the {@link BlockType type} must be set prior + * to setting various {@link BlockTrait traits} and their values.

+ */ + // @ts-ignore + public type(type: org.spongepowered.api.block.BlockType): org.spongepowered.api.block.BlockState.MatcherBuilder; + /** + * Adds the desired {@link BlockTrait} and {code value} to this + * builder, if the desired {@link BlockTrait} does not belong to the + * original {@link BlockType} as provided by {@link #type(BlockType)}, + * an exception is thrown. Likewise, if a {@code value} is not within + * the possible values for the desired trait of the desired type, an + * exception is thrown. + */ + // @ts-ignore + public trait(trait: org.spongepowered.api.block.trait.BlockTrait, value: java.lang.Comparable): org.spongepowered.api.block.BlockState.MatcherBuilder; + /** + * Creates a new {@link StateMatcher}. + */ + // @ts-ignore + public build(): org.spongepowered.api.block.BlockState.StateMatcher; + // @ts-ignore + public from(value: org.spongepowered.api.block.BlockState.StateMatcher): org.spongepowered.api.block.BlockState.MatcherBuilder; + // @ts-ignore + public reset(): org.spongepowered.api.block.BlockState.MatcherBuilder; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockState.StateMatcher.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockState.StateMatcher.d.ts new file mode 100644 index 00000000..734ccd0c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockState.StateMatcher.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace BlockState { + // @ts-ignore + class StateMatcher extends java.lang.Object { + /** + * Gets a {@code true} return value if the provided {@link BlockState} + * sufficiently matches this matcher, such that the {@link BlockType} + * matches, and the pre-defined {@link BlockTrait} values match. + */ + // @ts-ignore + public matches(state: org.spongepowered.api.block.BlockState): boolean; + // @ts-ignore + public test(blockState: org.spongepowered.api.block.BlockState): boolean; + /** + * Gets a {@link List} of compatible {@link BlockState}s. + * Since all {@link BlockState}s are known in the initialization + * of a {@link BlockType}, the states are already deterministic + * and cannot change themselves. + */ + // @ts-ignore + public getCompatibleStates(): java.util.List; + // @ts-ignore + public toString(): string; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockState.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockState.d.ts new file mode 100644 index 00000000..6abc278c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockState.d.ts @@ -0,0 +1,105 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + // @ts-ignore + interface BlockState extends org.spongepowered.api.data.ImmutableDataHolder, org.spongepowered.api.data.property.DirectionRelativePropertyHolder, org.spongepowered.api.CatalogType { + /** + * Creates a new {@link Builder} for building {@link BlockState}s. + */ + // @ts-ignore + builder(): org.spongepowered.api.block.BlockState.Builder; + /** + * Constructs a new {@link MatcherBuilder} to construct a {@link StateMatcher}. + */ + // @ts-ignore + matcher(type: org.spongepowered.api.block.BlockType): org.spongepowered.api.block.BlockState.MatcherBuilder; + /** + * Gets the base type of block. + *

The type does not include block data such as the contents of + * inventories.

+ */ + // @ts-ignore + getType(): org.spongepowered.api.block.BlockType; + /** + * Applies extended properties for the current @{link BlockType} if any to + * the current {@link BlockState}. This usually is gathered from surrounding + * {@link BlockState}'s. + *

Note: This should only be called for live {@link BlockState}'s at + * a specific {@link Location} for accurate results.

+ *

+ * Examples of some extended properties are: + *

+ *
    + *
  • snow on podzul dirt block
  • + *
  • occupied status for beds
  • + *
  • fence connections
  • + *
+ */ + // @ts-ignore + withExtendedProperties(location: org.spongepowered.api.world.Location): org.spongepowered.api.block.BlockState; + /** + * Gets the associated {@link BlockState} with the cycled + * {@link BaseValue}. Note that only {@link Cycleable} values can be + * cycled. To change a particular {@link Key}'ed {@link Value}, usage + * of the {@link BlockState#with(Key, Object)} is recommended. + */ + // @ts-ignore + cycleValue(key: org.spongepowered.api.data.key.Key): org.spongepowered.api.block.BlockState; + /** + * Creates a new {@link BlockSnapshot} with this current {@link BlockState} + * at the desired {@link Location}. If the {@link Location} has the same + * {@link BlockState}, and the {@link BlockType} can house a + * {@link TileEntity}, the data from the tile entity may be included in the + * returned {@link BlockSnapshot}. + */ + // @ts-ignore + snapshotFor(location: org.spongepowered.api.world.Location): org.spongepowered.api.block.BlockSnapshot; + /** + * Gets the {@link Comparable} value for the specific {@link BlockTrait} + * such that if the {@link BlockState} does not support the + * {@link BlockTrait}, {@link Optional#empty()} is returned. + */ + // @ts-ignore + getTraitValue(blockTrait: org.spongepowered.api.block.trait.BlockTrait): java.util.Optional; + /** + * Attempts to retrieve the {@link BlockTrait} instance associated with + * this {@link BlockState}s {@link BlockType} by string id. If there is no + * {@link BlockTrait} available, {@link Optional#empty()} is returned. + */ + // @ts-ignore + getTrait(blockTrait: string): java.util.Optional; + /** + * Gets the {@link BlockState} with the appropriate value for the given + * {@link BlockTrait}. If the {@link BlockTrait} is not supported, + * {@link Optional#empty()} is returned. If the object is not either + * an instance contained in {@link BlockTrait#getPossibleValues()} or + * an instance {@link Object#toString()}, {@link Optional#empty()} may be + * returned. + */ + // @ts-ignore + withTrait(trait: org.spongepowered.api.block.trait.BlockTrait, value: java.lang.Object): java.util.Optional; + /** + * Gets an immutable {@link Collection} of all applicable + * {@link BlockTrait}s for this {@link BlockState}. + */ + // @ts-ignore + getTraits(): java.util.Collection; + /** + * Gets an immutable {@link Collection} of all the values for all + * {@link BlockTrait}s for this {@link BlockState}. + */ + // @ts-ignore + getTraitValues(): java.util.Collection; + /** + * Gets an immutable or unmodifiable {@link Map} of the known {@link BlockTrait}s + * to their current values for this {@link BlockState}. + */ + // @ts-ignore + getTraitMap(): java.util.Map; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockType.d.ts new file mode 100644 index 00000000..52938cf9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockType.d.ts @@ -0,0 +1,66 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + // @ts-ignore + interface BlockType extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable, org.spongepowered.api.data.property.PropertyHolder { + /** + * Return the internal ID for the block. + *

The format of the internal ID may vary between implementations + * but in Minecraft, it follows the format of {@code domain:type}, an + * example being {@code minecraft:stone}.

+ */ + // @ts-ignore + getName(): string; + /** + * Return the default state for this block. + */ + // @ts-ignore + getDefaultState(): org.spongepowered.api.block.BlockState; + /** + * Gets a {@link Collection} of all {@link BlockState}s for this + * {@link BlockType}. + */ + // @ts-ignore + getAllBlockStates(): java.util.Collection; + /** + * Return the {@link ItemType} that represents this block. + */ + // @ts-ignore + getItem(): java.util.Optional; + /** + * Gets if this BlockType is set to receive random block ticks. + *

Random block ticks are most commonly used for growth of plants.

+ */ + // @ts-ignore + getTickRandomly(): boolean; + /** + * Sets if the BlockType should receive random block ticks. + *

Random block ticks are most commonly used for growth of plants.

+ */ + // @ts-ignore + setTickRandomly(tickRandomly: boolean): void; + /** + * Gets an immutable {@link Collection} of all applicable + * {@link BlockTrait}s for this {@link BlockType}. + */ + // @ts-ignore + getTraits(): java.util.Collection; + /** + * Attempts to retrieve the {@link BlockTrait} instance associated with + * this {@link BlockState}s {@link BlockType} by string id. If there is no + * {@link BlockTrait} available, {@link Optional#empty()} is returned. + */ + // @ts-ignore + getTrait(blockTrait: string): java.util.Optional; + /** + * Gets the {@link BlockSoundGroup} for this block. + */ + // @ts-ignore + getSoundGroup(): org.spongepowered.api.block.BlockSoundGroup; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockTypes.d.ts new file mode 100644 index 00000000..1afda573 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.BlockTypes.d.ts @@ -0,0 +1,520 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + // @ts-ignore + class BlockTypes extends java.lang.Object { + // @ts-ignore + public static ACACIA_DOOR: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static ACACIA_FENCE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static ACACIA_FENCE_GATE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static ACACIA_STAIRS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static ACTIVATOR_RAIL: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static AIR: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static ANVIL: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BARRIER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BEACON: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BED: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BEDROCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BEETROOTS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BIRCH_DOOR: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BIRCH_FENCE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BIRCH_FENCE_GATE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BIRCH_STAIRS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BLACK_GLAZED_TERRACOTTA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BLACK_SHULKER_BOX: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BLUE_GLAZED_TERRACOTTA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BLUE_SHULKER_BOX: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BONE_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BOOKSHELF: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BREWING_STAND: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BRICK_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BRICK_STAIRS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BROWN_GLAZED_TERRACOTTA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BROWN_MUSHROOM: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BROWN_MUSHROOM_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static BROWN_SHULKER_BOX: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static CACTUS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static CAKE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static CARPET: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static CARROTS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static CAULDRON: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static CHAIN_COMMAND_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static CHEST: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static CHORUS_FLOWER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static CHORUS_PLANT: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static CLAY: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static COAL_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static COAL_ORE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static COBBLESTONE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static COBBLESTONE_WALL: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static COCOA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static COMMAND_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static CONCRETE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static CONCRETE_POWDER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static CRAFTING_TABLE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static CYAN_GLAZED_TERRACOTTA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static CYAN_SHULKER_BOX: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DARK_OAK_DOOR: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DARK_OAK_FENCE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DARK_OAK_FENCE_GATE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DARK_OAK_STAIRS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DAYLIGHT_DETECTOR: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DAYLIGHT_DETECTOR_INVERTED: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DEADBUSH: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DETECTOR_RAIL: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DIAMOND_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DIAMOND_ORE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DIRT: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DISPENSER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DOUBLE_PLANT: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DOUBLE_STONE_SLAB: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DOUBLE_STONE_SLAB2: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DOUBLE_WOODEN_SLAB: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DRAGON_EGG: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static DROPPER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static EMERALD_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static EMERALD_ORE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static ENCHANTING_TABLE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static ENDER_CHEST: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static END_BRICKS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static END_GATEWAY: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static END_PORTAL: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static END_PORTAL_FRAME: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static END_ROD: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static END_STONE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static FARMLAND: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static FENCE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static FENCE_GATE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static FIRE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static FLOWER_POT: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static FLOWING_LAVA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static FLOWING_WATER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static FROSTED_ICE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static FURNACE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static GLASS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static GLASS_PANE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static GLOWSTONE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static GOLDEN_RAIL: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static GOLD_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static GOLD_ORE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static GRASS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static GRASS_PATH: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static GRAVEL: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static GRAY_GLAZED_TERRACOTTA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static GRAY_SHULKER_BOX: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static GREEN_GLAZED_TERRACOTTA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static GREEN_SHULKER_BOX: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static HARDENED_CLAY: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static HAY_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static HEAVY_WEIGHTED_PRESSURE_PLATE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static HOPPER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static ICE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static IRON_BARS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static IRON_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static IRON_DOOR: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static IRON_ORE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static IRON_TRAPDOOR: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static JUKEBOX: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static JUNGLE_DOOR: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static JUNGLE_FENCE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static JUNGLE_FENCE_GATE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static JUNGLE_STAIRS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LADDER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LAPIS_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LAPIS_ORE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LAVA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LEAVES: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LEAVES2: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LEVER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LIGHT_BLUE_GLAZED_TERRACOTTA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LIGHT_BLUE_SHULKER_BOX: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LIGHT_WEIGHTED_PRESSURE_PLATE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LIME_GLAZED_TERRACOTTA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LIME_SHULKER_BOX: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LIT_FURNACE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LIT_PUMPKIN: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LIT_REDSTONE_LAMP: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LIT_REDSTONE_ORE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LOG: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static LOG2: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static MAGENTA_GLAZED_TERRACOTTA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static MAGENTA_SHULKER_BOX: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static MAGMA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static MELON_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static MELON_STEM: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static MOB_SPAWNER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static MONSTER_EGG: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static MOSSY_COBBLESTONE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static MYCELIUM: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static NETHERRACK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static NETHER_BRICK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static NETHER_BRICK_FENCE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static NETHER_BRICK_STAIRS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static NETHER_WART: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static NETHER_WART_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static NOTEBLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static OAK_STAIRS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static OBSERVER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static OBSIDIAN: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static ORANGE_GLAZED_TERRACOTTA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static ORANGE_SHULKER_BOX: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PACKED_ICE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PINK_GLAZED_TERRACOTTA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PINK_SHULKER_BOX: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PISTON: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PISTON_EXTENSION: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PISTON_HEAD: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PLANKS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PORTAL: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static POTATOES: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static POWERED_COMPARATOR: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static POWERED_REPEATER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PRISMARINE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PUMPKIN: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PUMPKIN_STEM: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PURPLE_GLAZED_TERRACOTTA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PURPLE_SHULKER_BOX: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PURPUR_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PURPUR_DOUBLE_SLAB: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PURPUR_PILLAR: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PURPUR_SLAB: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static PURPUR_STAIRS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static QUARTZ_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static QUARTZ_ORE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static QUARTZ_STAIRS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static RAIL: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static REDSTONE_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static REDSTONE_LAMP: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static REDSTONE_ORE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static REDSTONE_TORCH: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static REDSTONE_WIRE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static RED_FLOWER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static RED_GLAZED_TERRACOTTA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static RED_MUSHROOM: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static RED_MUSHROOM_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static RED_NETHER_BRICK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static RED_SANDSTONE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static RED_SANDSTONE_STAIRS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static RED_SHULKER_BOX: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static REEDS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static REPEATING_COMMAND_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SAND: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SANDSTONE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SANDSTONE_STAIRS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SAPLING: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SEA_LANTERN: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SILVER_GLAZED_TERRACOTTA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SILVER_SHULKER_BOX: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SKULL: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SLIME: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SNOW: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SNOW_LAYER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SOUL_SAND: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SPONGE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SPRUCE_DOOR: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SPRUCE_FENCE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SPRUCE_FENCE_GATE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static SPRUCE_STAIRS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static STAINED_GLASS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static STAINED_GLASS_PANE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static STAINED_HARDENED_CLAY: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static STANDING_BANNER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static STANDING_SIGN: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static STICKY_PISTON: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static STONE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static STONEBRICK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static STONE_BRICK_STAIRS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static STONE_BUTTON: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static STONE_PRESSURE_PLATE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static STONE_SLAB: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static STONE_SLAB2: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static STONE_STAIRS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static STRUCTURE_BLOCK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static STRUCTURE_VOID: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static TALLGRASS: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static TNT: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static TORCH: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static TRAPDOOR: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static TRAPPED_CHEST: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static TRIPWIRE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static TRIPWIRE_HOOK: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static UNLIT_REDSTONE_TORCH: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static UNPOWERED_COMPARATOR: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static UNPOWERED_REPEATER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static VINE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static WALL_BANNER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static WALL_SIGN: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static WATER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static WATERLILY: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static WEB: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static WHEAT: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static WHITE_GLAZED_TERRACOTTA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static WHITE_SHULKER_BOX: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static WOODEN_BUTTON: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static WOODEN_DOOR: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static WOODEN_PRESSURE_PLATE: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static WOODEN_SLAB: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static WOOL: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static YELLOW_FLOWER: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static YELLOW_GLAZED_TERRACOTTA: org.spongepowered.api.block.BlockType; + // @ts-ignore + public static YELLOW_SHULKER_BOX: org.spongepowered.api.block.BlockType; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.ScheduledBlockUpdate.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.ScheduledBlockUpdate.d.ts new file mode 100644 index 00000000..ef1c938f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.ScheduledBlockUpdate.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + // @ts-ignore + interface ScheduledBlockUpdate extends org.spongepowered.api.world.Locatable { + /** + * Gets the amount of ticks until this SBU should cause the block to update. + */ + // @ts-ignore + getTicks(): number; + /** + * Sets the amount of ticks until this SBU should cause the block to update. + */ + // @ts-ignore + setTicks(ticks: number): void; + /** + * Gets the priority of this scheduled block update. + */ + // @ts-ignore + getPriority(): number; + /** + * Sets the priority of this scheduled block update. + */ + // @ts-ignore + setPriority(priority: number): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Banner.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Banner.d.ts new file mode 100644 index 00000000..660d2a2b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Banner.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface Banner extends org.spongepowered.api.block.tileentity.TileEntity { + /** + * Gets the {@link BannerData data} of this {@link Banner banner}. + */ + // @ts-ignore + getBannerData(): org.spongepowered.api.data.manipulator.mutable.tileentity.BannerData; + /** + * Gets the {@link Value} for the base {@link DyeColor}. + */ + // @ts-ignore + baseColor(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link PatternListValue} of all patterns for the + * {@link Banner}. + */ + // @ts-ignore + patternsList(): org.spongepowered.api.data.value.mutable.PatternListValue; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Bed.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Bed.d.ts new file mode 100644 index 00000000..443f3b20 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Bed.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface Bed extends org.spongepowered.api.block.tileentity.TileEntity { + /** + * Gets the {@link org.spongepowered.api.data.manipulator.mutable.tileentity.BedData data} of this {@link Bed bed}. + */ + // @ts-ignore + getBedData(): org.spongepowered.api.data.manipulator.mutable.tileentity.BedData; + /** + * Gets the {@link DyeableData data} of this {@link Bed bed}. + */ + // @ts-ignore + getDyeableData(): org.spongepowered.api.data.manipulator.mutable.DyeableData; + /** + * Gets the {@link Value} for the {@link DyeColor color}. + */ + // @ts-ignore + color(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.CommandBlock.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.CommandBlock.d.ts new file mode 100644 index 00000000..53b9c1d1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.CommandBlock.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface CommandBlock extends org.spongepowered.api.block.tileentity.TileEntity, org.spongepowered.api.command.source.CommandBlockSource { + /** + * Executes the currently stored command. + */ + // @ts-ignore + execute(): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Comparator.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Comparator.d.ts new file mode 100644 index 00000000..72b1c997 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Comparator.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface Comparator extends org.spongepowered.api.block.tileentity.TileEntity { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.DaylightDetector.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.DaylightDetector.d.ts new file mode 100644 index 00000000..0222962d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.DaylightDetector.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface DaylightDetector extends org.spongepowered.api.block.tileentity.TileEntity { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.EnchantmentTable.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.EnchantmentTable.d.ts new file mode 100644 index 00000000..69c1fd7f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.EnchantmentTable.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface EnchantmentTable extends org.spongepowered.api.block.tileentity.TileEntity { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.EndGateway.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.EndGateway.d.ts new file mode 100644 index 00000000..c91d7ea0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.EndGateway.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface EndGateway extends org.spongepowered.api.block.tileentity.TileEntity { + /** + * Gets a copy of the {@link EndGatewayData} containing all available + * data this {@link EndGateway} has. + */ + // @ts-ignore + getEndGatewayData(): org.spongepowered.api.data.manipulator.mutable.tileentity.EndGatewayData; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.EndPortal.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.EndPortal.d.ts new file mode 100644 index 00000000..7f7760e8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.EndPortal.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface EndPortal extends org.spongepowered.api.block.tileentity.TileEntity { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.EnderChest.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.EnderChest.d.ts new file mode 100644 index 00000000..9deb26e6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.EnderChest.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface EnderChest extends org.spongepowered.api.block.tileentity.TileEntity { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.FlowerPot.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.FlowerPot.d.ts new file mode 100644 index 00000000..6cc5f0d0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.FlowerPot.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface FlowerPot extends org.spongepowered.api.block.tileentity.TileEntity { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Jukebox.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Jukebox.d.ts new file mode 100644 index 00000000..eaf899de --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Jukebox.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface Jukebox extends org.spongepowered.api.block.tileentity.TileEntity { + /** + * Attempts to play the currently stored record according to the + * {@link RepresentedItemData} of this {@link Jukebox}. + */ + // @ts-ignore + playRecord(): void; + /** + * Stops the currently playing record, if any. + */ + // @ts-ignore + stopRecord(): void; + /** + * Ejects the record item in this Jukebox into the world. + */ + // @ts-ignore + ejectRecord(): void; + /** + * Ejects the current record in this Jukebox and inserts the given one. + */ + // @ts-ignore + insertRecord(record: org.spongepowered.api.item.inventory.ItemStack): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.MobSpawner.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.MobSpawner.d.ts new file mode 100644 index 00000000..7b654060 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.MobSpawner.d.ts @@ -0,0 +1,93 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface MobSpawner extends org.spongepowered.api.block.tileentity.TileEntity { + /** + * Trigger an immediate spawn of a batch of entities. + *

This will obey the restrictions of maximum nearby entities and player + * range unless the {@code force} flag is set.

+ */ + // @ts-ignore + spawnEntityBatchImmediately(force: boolean): void; + /** + * Gets the {@link MobSpawnerData} for this mob spawner. + */ + // @ts-ignore + getMobSpawnerData(): org.spongepowered.api.data.manipulator.mutable.MobSpawnerData; + /** + * Gets the {@link MutableBoundedValue} for the remaining delay before + * a new attempt at spawning an {@link Entity} is made. + */ + // @ts-ignore + remainingDelay(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the minimum spawn delay + * required between attempts to spawn an {@link Entity}. + */ + // @ts-ignore + minimumSpawnDelay(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the maximum spawn delay + * required between attempts to spawn an {@link Entity}. + */ + // @ts-ignore + maximumSpawnDelay(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the count of successful + * spawns of all {@link Entity} instances from the owning spawner. This + * count is simply a total count, there is no limitation on how many + * attempts are made to spawn an {@link Entity}. + */ + // @ts-ignore + spawnCount(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the limitation on the number + * of nearby {@link Entity} instances can exist near the owning spawner. The + * limitation is that if there are more {@link Entity} instances than the + * provided value, no attempts to spawn a new {@link Entity} will be made. + */ + // @ts-ignore + maximumNearbyEntities(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the minimum range a + * {@link Player} must remain in proximity of the spawner, such that if a + * {@link Player} is NOT within the provided range, no attempts to spawn an + * {@link Entity} is made. + */ + // @ts-ignore + requiredPlayerRange(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the maximum range that an + * {@link Entity} can be spawned from the spawner. + */ + // @ts-ignore + spawnRange(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link Value} + * for the overridden + * {@link WeightedSerializableObject}{@code } to spawn + * next. If possible, the next entity to spawn may be chosen from the + * already provided {@link #possibleEntitiesToSpawn()}. + */ + // @ts-ignore + nextEntityToSpawn(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link WeightedCollectionValue} of all possible + * {@link Entity} instances that can be spawned by the spawner. As they + * are all {@link WeightedSerializableObject}{@code } + * instances, their weight is defined as a {@link Random} to determine + * the next {@link Entity} that will be spawned, unless overriden by + * {@link #nextEntityToSpawn()}. + */ + // @ts-ignore + possibleEntitiesToSpawn(): org.spongepowered.api.data.value.mutable.WeightedCollectionValue; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Note.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Note.d.ts new file mode 100644 index 00000000..939f74db --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Note.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface Note extends org.spongepowered.api.block.tileentity.TileEntity { + /** + * Attempts to play the currently stored {@link NotePitch} from this + * {@link Note} tile entity. + */ + // @ts-ignore + playNote(): void; + /** + * Retrieves the {@link NoteData} for this note block. + */ + // @ts-ignore + getNoteData(): org.spongepowered.api.data.manipulator.mutable.tileentity.NoteData; + /** + * Gets the {@link Value} for the {@link NotePitch}. + */ + // @ts-ignore + note(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Piston.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Piston.d.ts new file mode 100644 index 00000000..5714f11e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Piston.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface Piston extends org.spongepowered.api.block.tileentity.TileEntity { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Sign.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Sign.d.ts new file mode 100644 index 00000000..09d024d2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Sign.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface Sign extends org.spongepowered.api.block.tileentity.TileEntity { + /** + * Gets the current {@link SignData} for this {@link Sign} tile entity. + */ + // @ts-ignore + getSignData(): org.spongepowered.api.data.manipulator.mutable.tileentity.SignData; + /** + * Gets the {@link ListValue} of {@link Text} for the {@link Sign} + * to show. + */ + // @ts-ignore + lines(): org.spongepowered.api.data.value.mutable.ListValue; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Skull.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Skull.d.ts new file mode 100644 index 00000000..bd9c5075 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Skull.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface Skull extends org.spongepowered.api.block.tileentity.TileEntity { + /** + * Gets the current {@link SkullData} for this {@link Skull} + * {@link TileEntity}. + */ + // @ts-ignore + getSkullData(): org.spongepowered.api.data.manipulator.mutable.SkullData; + /** + * Gets the current {@link SkullType} for this {@link Skull}. + */ + // @ts-ignore + skullType(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Structure.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Structure.d.ts new file mode 100644 index 00000000..436959c0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.Structure.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface Structure extends org.spongepowered.api.block.tileentity.TileEntity { + /** + * Gets a copy of the {@link Structure} containing all available + * data this {@link EndGateway} has. + */ + // @ts-ignore + getStructureData(): org.spongepowered.api.data.manipulator.mutable.tileentity.StructureData; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.TileEntity.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.TileEntity.d.ts new file mode 100644 index 00000000..c55356ff --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.TileEntity.d.ts @@ -0,0 +1,57 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface TileEntity extends org.spongepowered.api.data.DataHolder, org.spongepowered.api.world.Locatable { + /** + * Checks for whether the tile entity is currently valid or not. + *

Use this method to check if processing should be run on this + * {@link TileEntity}. If it is valid, then processing can be run on it. + * If not, then processing should wait until it becomes valid or is + * destroyed.

+ */ + // @ts-ignore + isValid(): boolean; + /** + * Changes the validation of this tile entity. + *

If the tile entity is invalid, no processing will be done on this + * {@link TileEntity} until it either becomes valid or is reset on the next + * tick.

+ *

If the tile entity is valid, then processing can continue and this + * {@link TileEntity} will not be reset on the next tick.

+ */ + // @ts-ignore + setValid(valid: boolean): void; + /** + * Gets the type of {@link TileEntity} this is. + */ + // @ts-ignore + getType(): org.spongepowered.api.block.tileentity.TileEntityType; + /** + * Gets the {@link BlockState} that this {@link TileEntity} represents. + */ + // @ts-ignore + getBlock(): org.spongepowered.api.block.BlockState; + /** + * Creates a new {@link TileEntityArchetype} for use with {@link Schematic}s + * and placing the archetype in multiple locations. + */ + // @ts-ignore + createArchetype(): org.spongepowered.api.block.tileentity.TileEntityArchetype; + /** + * Creates a {@link LocatableBlock} for this {@link TileEntity}. Can be used + * as a simpler method of making them. Since this does not persist the + * data of this {@link TileEntity}, it should not be used in place of a + * {@link BlockSnapshot} where data is being safely cloned. + */ + // @ts-ignore + getLocatableBlock(): org.spongepowered.api.world.LocatableBlock; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.TileEntityArchetype.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.TileEntityArchetype.Builder.d.ts new file mode 100644 index 00000000..ff06457d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.TileEntityArchetype.Builder.d.ts @@ -0,0 +1,44 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + namespace TileEntityArchetype { + // @ts-ignore + interface Builder extends org.spongepowered.api.data.persistence.DataBuilder { + // @ts-ignore + reset(): org.spongepowered.api.block.tileentity.TileEntityArchetype.Builder; + // @ts-ignore + from(value: org.spongepowered.api.block.tileentity.TileEntityArchetype): org.spongepowered.api.block.tileentity.TileEntityArchetype.Builder; + // @ts-ignore + from(location: org.spongepowered.api.world.Location): org.spongepowered.api.block.tileentity.TileEntityArchetype.Builder; + /** + * Sets the {@link BlockState} of the archetype. + */ + // @ts-ignore + state(state: org.spongepowered.api.block.BlockState): org.spongepowered.api.block.tileentity.TileEntityArchetype.Builder; + // @ts-ignore + tile(tileEntityType: org.spongepowered.api.block.tileentity.TileEntityType): org.spongepowered.api.block.tileentity.TileEntityArchetype.Builder; + // @ts-ignore + tile(tileEntity: org.spongepowered.api.block.tileentity.TileEntity): org.spongepowered.api.block.tileentity.TileEntityArchetype.Builder; + // @ts-ignore + tileData(dataView: org.spongepowered.api.data.DataView): org.spongepowered.api.block.tileentity.TileEntityArchetype.Builder; + // @ts-ignore + setData(manipulator: org.spongepowered.api.data.manipulator.DataManipulator): org.spongepowered.api.block.tileentity.TileEntityArchetype.Builder; + // @ts-ignore + set(value: org.spongepowered.api.data.value.BaseValue): org.spongepowered.api.block.tileentity.TileEntityArchetype.Builder; + // @ts-ignore + set(key: org.spongepowered.api.data.key.Key, value: java.lang.Object): org.spongepowered.api.block.tileentity.TileEntityArchetype.Builder; + /** + * Creates a new {@link TileEntityArchetype} from this builder. + */ + // @ts-ignore + build(): org.spongepowered.api.block.tileentity.TileEntityArchetype; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.TileEntityArchetype.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.TileEntityArchetype.d.ts new file mode 100644 index 00000000..d59fa050 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.TileEntityArchetype.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface TileEntityArchetype extends org.spongepowered.api.data.Archetype { + /** + * Creates a {@link Builder} to get {@link TileEntityArchetype}s. + */ + // @ts-ignore + builder(): org.spongepowered.api.block.tileentity.TileEntityArchetype.Builder; + /** + * Gets the block state for this archetype. Note that this state is + * unchangeable, as much as {@link #getTileEntityType()} is. The underlying + * data is mutable, but all the data is heavily tied to the tile entity + * type. + */ + // @ts-ignore + getState(): org.spongepowered.api.block.BlockState; + /** + * Gets the {@link TileEntityType} for this archetype. + */ + // @ts-ignore + getTileEntityType(): org.spongepowered.api.block.tileentity.TileEntityType; + /** + * Gets the raw {@link TileEntity} data that would be applied to the + * generated tile entity. Note that this is a copied container. + */ + // @ts-ignore + getTileData(): org.spongepowered.api.data.DataContainer; + /** + * Sets the raw data for the desired {@link TileEntity}. Note that position + * values are not used as those are dependent on usage. + */ + // @ts-ignore + setRawData(container: org.spongepowered.api.data.DataView): void; + // @ts-ignore + copy(): org.spongepowered.api.block.tileentity.TileEntityArchetype; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.TileEntityType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.TileEntityType.d.ts new file mode 100644 index 00000000..c35fedea --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.TileEntityType.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + interface TileEntityType extends org.spongepowered.api.CatalogType { + /** + * Returns the tile entity class for this type. + */ + // @ts-ignore + getTileEntityType(): java.lang.Class; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.TileEntityTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.TileEntityTypes.d.ts new file mode 100644 index 00000000..68b5689a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.TileEntityTypes.d.ts @@ -0,0 +1,62 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + // @ts-ignore + class TileEntityTypes extends java.lang.Object { + // @ts-ignore + public static BANNER: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static BEACON: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static BREWING_STAND: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static CHEST: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static COMMAND_BLOCK: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static COMPARATOR: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static DAYLIGHT_DETECTOR: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static DISPENSER: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static DROPPER: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static ENCHANTMENT_TABLE: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static ENDER_CHEST: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static END_GATEWAY: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static END_PORTAL: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static FLOWER_POT: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static FURNACE: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static HOPPER: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static JUKEBOX: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static MOB_SPAWNER: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static NOTE: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static PISTON: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static SHULKER_BOX: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static SIGN: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static SKULL: org.spongepowered.api.block.tileentity.TileEntityType; + // @ts-ignore + public static STRUCTURE: org.spongepowered.api.block.tileentity.TileEntityType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.Beacon.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.Beacon.d.ts new file mode 100644 index 00000000..ce2de936 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.Beacon.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + namespace carrier { + // @ts-ignore + interface Beacon extends org.spongepowered.api.block.tileentity.carrier.TileEntityCarrier { + /** + * Gets the number of completed levels of valid beacon structure blocks + * beneath this beacon. + */ + // @ts-ignore + getCompletedLevels(): number; + /** + * Gets the current {@link BeaconData} for this beacon. + */ + // @ts-ignore + getBeaconData(): org.spongepowered.api.data.manipulator.mutable.tileentity.BeaconData; + /** + * Gets the {@link OptionalValue} for the primary + * {@link PotionEffectType}. + */ + // @ts-ignore + primaryEffect(): org.spongepowered.api.data.value.mutable.OptionalValue; + /** + * Gets the {@link OptionalValue} for the secondary + * {@link PotionEffectType}. + */ + // @ts-ignore + secondaryEffect(): org.spongepowered.api.data.value.mutable.OptionalValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.BrewingStand.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.BrewingStand.d.ts new file mode 100644 index 00000000..f2dce15c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.BrewingStand.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + namespace carrier { + // @ts-ignore + interface BrewingStand extends org.spongepowered.api.block.tileentity.carrier.TileEntityCarrier { + /** + * Attempts to brew the current potions if possible. + *

This will work if there is a compatible recipe.

+ */ + // @ts-ignore + brew(): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.Chest.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.Chest.d.ts new file mode 100644 index 00000000..62849798 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.Chest.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + namespace carrier { + // @ts-ignore + interface Chest extends org.spongepowered.api.block.tileentity.carrier.TileEntityCarrier { + /** + * Returns the inventory representing the combination of this chest + * and its neighbor (which form a double chest), if available. + *

If this chest is not part of a double chest, then this method + * will return {@link Optional#empty()}.

+ */ + // @ts-ignore + getDoubleChestInventory(): java.util.Optional; + /** + * Returns the connected {@link Chest}s, if available. + */ + // @ts-ignore + getConnectedChests(): java.util.Set; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.Dispenser.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.Dispenser.d.ts new file mode 100644 index 00000000..5f1a5d26 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.Dispenser.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + namespace carrier { + // @ts-ignore + interface Dispenser extends org.spongepowered.api.block.tileentity.carrier.TileEntityCarrier, org.spongepowered.api.entity.projectile.source.BlockProjectileSource { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.Dropper.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.Dropper.d.ts new file mode 100644 index 00000000..5161d1ed --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.Dropper.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + namespace carrier { + // @ts-ignore + interface Dropper extends org.spongepowered.api.block.tileentity.carrier.TileEntityCarrier { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.Furnace.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.Furnace.d.ts new file mode 100644 index 00000000..68cd370b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.Furnace.d.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + namespace carrier { + // @ts-ignore + interface Furnace extends org.spongepowered.api.block.tileentity.carrier.TileEntityCarrier { + /** + * Attempts to smelt the current items if possible. + *

This will work if there is a compatible recipe.

+ */ + // @ts-ignore + smelt(): boolean; + /** + * Gets this furnace's {@link FurnaceData}. + */ + // @ts-ignore + getFurnaceData(): org.spongepowered.api.data.manipulator.mutable.tileentity.FurnaceData; + /** + * Gets the {@link MutableBoundedValue} for the already passed burn time. + */ + // @ts-ignore + passedBurnTime(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the maximum amount of fuel that + * can be supplied with the used fuel item. + */ + // @ts-ignore + maxBurnTime(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the already passed cook time of + * the item stack in this furnace. + */ + // @ts-ignore + passedCookTime(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the total time the item stack + * has to cook until it is cooked. + */ + // @ts-ignore + maxCookTime(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.Hopper.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.Hopper.d.ts new file mode 100644 index 00000000..d75852bf --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.Hopper.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + namespace carrier { + // @ts-ignore + interface Hopper extends org.spongepowered.api.block.tileentity.carrier.TileEntityCarrier { + /** + * Requests this {@link Hopper} to transfer an item to the next carrier. + *

Since {@link Hopper}s normally send items to other + * {@link TileEntityCarrier}s adjacent to themselves, if there is no + * available carrier to send an item to, this will perform nothing.

+ */ + // @ts-ignore + transferItem(): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.ShulkerBox.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.ShulkerBox.d.ts new file mode 100644 index 00000000..c5201a4f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.ShulkerBox.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + namespace carrier { + // @ts-ignore + interface ShulkerBox extends org.spongepowered.api.block.tileentity.carrier.TileEntityCarrier { + /** + * Gets a copy of the {@link DyeableData} representing the color of this + * {@link ShulkerBox}. + */ + // @ts-ignore + getDyeData(): org.spongepowered.api.data.manipulator.mutable.DyeableData; + /** + * Gets the current {@link Value} of {@link DyeColor} for this + * {@link ShulkerBox}. + */ + // @ts-ignore + color(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.TileEntityCarrier.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.TileEntityCarrier.d.ts new file mode 100644 index 00000000..7d33fb1e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.tileentity.carrier.TileEntityCarrier.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace tileentity { + namespace carrier { + // @ts-ignore + interface TileEntityCarrier extends org.spongepowered.api.block.tileentity.TileEntity, org.spongepowered.api.item.inventory.BlockCarrier { + // @ts-ignore + getInventory(): org.spongepowered.api.item.inventory.type.TileEntityInventory; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.trait.BlockTrait.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.trait.BlockTrait.d.ts new file mode 100644 index 00000000..45c21f23 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.trait.BlockTrait.d.ts @@ -0,0 +1,44 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace trait { + // @ts-ignore + interface BlockTrait extends org.spongepowered.api.CatalogType { + /** + * Gets the name of this {@link BlockTrait}. + */ + // @ts-ignore + getName(): string; + /** + * Gets all possible values for a specific {@link BlockTrait}. The + * included values may not be in any particular order. The returned + * {@link Collection} should be considered immutable. + */ + // @ts-ignore + getPossibleValues(): java.util.Collection; + /** + * Gets the class type of the {@link BlockTrait}'s values. + */ + // @ts-ignore + getValueClass(): java.lang.Class; + /** + * Gets the {@link Predicate} used to determine valid values for this. + * {@link BlockTrait}. Any "value" that returns true when + * {@link Predicate#test(Object)} is called is valid. The + * {@link Predicate} is specific to this trait. + */ + // @ts-ignore + getPredicate(): java.util.function$.Predicate; + /** + * Attempts to parse the provided value as a value dictated possible by this trait or {@link Optional#empty()} otherwise. + */ + // @ts-ignore + parseValue(value: string): java.util.Optional; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.trait.BooleanTrait.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.trait.BooleanTrait.d.ts new file mode 100644 index 00000000..fd33d56b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.trait.BooleanTrait.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace trait { + // @ts-ignore + interface BooleanTrait extends org.spongepowered.api.block.trait.BlockTrait { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.trait.BooleanTraits.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.trait.BooleanTraits.d.ts new file mode 100644 index 00000000..17a82e8d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.trait.BooleanTraits.d.ts @@ -0,0 +1,282 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace trait { + // @ts-ignore + class BooleanTraits extends java.lang.Object { + // @ts-ignore + public static ACACIA_DOOR_OPEN: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static ACACIA_DOOR_POWERED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static ACACIA_FENCE_EAST: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static ACACIA_FENCE_GATE_IN_WALL: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static ACACIA_FENCE_GATE_OPEN: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static ACACIA_FENCE_GATE_POWERED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static ACACIA_FENCE_NORTH: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static ACACIA_FENCE_SOUTH: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static ACACIA_FENCE_WEST: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static ACTIVATOR_RAIL_POWERED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static BED_OCCUPIED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static BIRCH_DOOR_OPEN: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static BIRCH_DOOR_POWERED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static BIRCH_FENCE_EAST: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static BIRCH_FENCE_GATE_IN_WALL: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static BIRCH_FENCE_GATE_OPEN: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static BIRCH_FENCE_GATE_POWERED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static BIRCH_FENCE_NORTH: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static BIRCH_FENCE_SOUTH: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static BIRCH_FENCE_WEST: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static BREWING_STAND_HAS_BOTTLE_0: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static BREWING_STAND_HAS_BOTTLE_1: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static BREWING_STAND_HAS_BOTTLE_2: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static COBBLESTONE_WALL_EAST: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static COBBLESTONE_WALL_NORTH: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static COBBLESTONE_WALL_SOUTH: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static COBBLESTONE_WALL_UP: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static COBBLESTONE_WALL_WEST: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static DARK_OAK_DOOR_OPEN: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static DARK_OAK_DOOR_POWERED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static DARK_OAK_FENCE_EAST: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static DARK_OAK_FENCE_GATE_IN_WALL: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static DARK_OAK_FENCE_GATE_OPEN: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static DARK_OAK_FENCE_GATE_POWERED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static DARK_OAK_FENCE_NORTH: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static DARK_OAK_FENCE_SOUTH: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static DARK_OAK_FENCE_WEST: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static DETECTOR_RAIL_POWERED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static DIRT_SNOWY: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static DISPENSER_TRIGGERED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static DOUBLE_STONE_SLAB2_SEAMLESS: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static DOUBLE_STONE_SLAB_SEAMLESS: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static DROPPER_TRIGGERED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static END_PORTAL_FRAME_EYE: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static FENCE_EAST: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static FENCE_GATE_IN_WALL: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static FENCE_GATE_OPEN: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static FENCE_GATE_POWERED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static FENCE_NORTH: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static FENCE_SOUTH: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static FENCE_WEST: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static FIRE_EAST: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static FIRE_NORTH: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static FIRE_SOUTH: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static FIRE_UP: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static FIRE_WEST: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static GLASS_PANE_EAST: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static GLASS_PANE_NORTH: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static GLASS_PANE_SOUTH: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static GLASS_PANE_WEST: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static GOLDEN_RAIL_POWERED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static GRASS_SNOWY: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static HOPPER_ENABLED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static IRON_BARS_EAST: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static IRON_BARS_NORTH: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static IRON_BARS_SOUTH: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static IRON_BARS_WEST: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static IRON_DOOR_OPEN: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static IRON_DOOR_POWERED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static IRON_TRAPDOOR_OPEN: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static JUKEBOX_HAS_RECORD: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static JUNGLE_DOOR_OPEN: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static JUNGLE_DOOR_POWERED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static JUNGLE_FENCE_EAST: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static JUNGLE_FENCE_GATE_IN_WALL: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static JUNGLE_FENCE_GATE_OPEN: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static JUNGLE_FENCE_GATE_POWERED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static JUNGLE_FENCE_NORTH: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static JUNGLE_FENCE_SOUTH: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static JUNGLE_FENCE_WEST: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static LEAVES2_CHECK_DECAY: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static LEAVES2_DECAYABLE: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static LEAVES_CHECK_DECAY: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static LEAVES_DECAYABLE: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static LEVER_POWERED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static MYCELIUM_SNOWY: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static NETHER_BRICK_FENCE_EAST: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static NETHER_BRICK_FENCE_NORTH: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static NETHER_BRICK_FENCE_SOUTH: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static NETHER_BRICK_FENCE_WEST: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static PISTON_EXTENDED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static PISTON_HEAD_SHORT: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static POWERED_COMPARATOR_POWERED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static POWERED_REPEATER_LOCKED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static SKULL_NODROP: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static SPONGE_WET: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static SPRUCE_DOOR_OPEN: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static SPRUCE_DOOR_POWERED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static SPRUCE_FENCE_EAST: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static SPRUCE_FENCE_GATE_IN_WALL: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static SPRUCE_FENCE_GATE_OPEN: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static SPRUCE_FENCE_GATE_POWERED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static SPRUCE_FENCE_NORTH: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static SPRUCE_FENCE_SOUTH: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static SPRUCE_FENCE_WEST: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static STAINED_GLASS_PANE_EAST: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static STAINED_GLASS_PANE_NORTH: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static STAINED_GLASS_PANE_SOUTH: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static STAINED_GLASS_PANE_WEST: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static STICKY_PISTON_EXTENDED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static STONE_BUTTON_POWERED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static STONE_PRESSURE_PLATE_POWERED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static TNT_EXPLODE: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static TRAPDOOR_OPEN: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static TRIPWIRE_ATTACHED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static TRIPWIRE_DISARMED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static TRIPWIRE_EAST: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static TRIPWIRE_HOOK_ATTACHED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static TRIPWIRE_HOOK_POWERED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static TRIPWIRE_NORTH: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static TRIPWIRE_POWERED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static TRIPWIRE_SOUTH: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static TRIPWIRE_WEST: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static UNPOWERED_COMPARATOR_POWERED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static UNPOWERED_REPEATER_LOCKED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static VINE_EAST: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static VINE_NORTH: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static VINE_SOUTH: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static VINE_UP: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static VINE_WEST: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static WOODEN_BUTTON_POWERED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static WOODEN_DOOR_OPEN: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static WOODEN_DOOR_POWERED: org.spongepowered.api.block.trait.BooleanTrait; + // @ts-ignore + public static WOODEN_PRESSURE_PLATE_POWERED: org.spongepowered.api.block.trait.BooleanTrait; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.trait.EnumTrait.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.trait.EnumTrait.d.ts new file mode 100644 index 00000000..cd9085e3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.trait.EnumTrait.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace trait { + // @ts-ignore + interface EnumTrait extends org.spongepowered.api.block.trait.BlockTrait { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.trait.EnumTraits.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.trait.EnumTraits.d.ts new file mode 100644 index 00000000..17f09c8a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.trait.EnumTraits.d.ts @@ -0,0 +1,334 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace trait { + // @ts-ignore + class EnumTraits extends java.lang.Object { + // @ts-ignore + public static ACACIA_DOOR_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static ACACIA_DOOR_HALF: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static ACACIA_DOOR_HINGE: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static ACACIA_FENCE_GATE_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static ACACIA_STAIRS_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static ACACIA_STAIRS_HALF: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static ACACIA_STAIRS_SHAPE: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static ACTIVATOR_RAIL_SHAPE: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static ANVIL_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static BED_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static BED_PART: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static BIRCH_DOOR_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static BIRCH_DOOR_HALF: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static BIRCH_DOOR_HINGE: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static BIRCH_FENCE_GATE_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static BIRCH_STAIRS_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static BIRCH_STAIRS_HALF: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static BIRCH_STAIRS_SHAPE: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static BRICK_STAIRS_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static BRICK_STAIRS_HALF: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static BRICK_STAIRS_SHAPE: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static BROWN_MUSHROOM_BLOCK_VARIANT: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static CARPET_COLOR: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static CHEST_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static COBBLESTONE_WALL_VARIANT: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static COCOA_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static DARK_OAK_DOOR_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static DARK_OAK_DOOR_HALF: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static DARK_OAK_DOOR_HINGE: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static DARK_OAK_FENCE_GATE_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static DARK_OAK_STAIRS_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static DARK_OAK_STAIRS_HALF: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static DARK_OAK_STAIRS_SHAPE: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static DETECTOR_RAIL_SHAPE: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static DIRT_VARIANT: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static DISPENSER_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static DOUBLE_PLANT_HALF: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static DOUBLE_PLANT_VARIANT: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static DOUBLE_STONE_SLAB2_VARIANT: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static DOUBLE_STONE_SLAB_VARIANT: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static DOUBLE_WOODEN_SLAB_VARIANT: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static DROPPER_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static ENDER_CHEST_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static END_PORTAL_FRAME_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static FENCE_GATE_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static FLOWER_POT_CONTENTS: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static FURNACE_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static GOLDEN_RAIL_SHAPE: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static HAY_BLOCK_AXIS: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static HOPPER_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static IRON_DOOR_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static IRON_DOOR_HALF: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static IRON_DOOR_HINGE: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static IRON_TRAPDOOR_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static IRON_TRAPDOOR_HALF: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static JUNGLE_DOOR_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static JUNGLE_DOOR_HALF: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static JUNGLE_DOOR_HINGE: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static JUNGLE_FENCE_GATE_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static JUNGLE_STAIRS_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static JUNGLE_STAIRS_HALF: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static JUNGLE_STAIRS_SHAPE: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static LADDER_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static LEAVES2_VARIANT: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static LEAVES_VARIANT: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static LEVER_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static LIT_FURNACE_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static LIT_PUMPKIN_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static LOG2_AXIS: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static LOG2_VARIANT: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static LOG_AXIS: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static LOG_VARIANT: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static MELON_STEM_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static MONSTER_EGG_VARIANT: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static NETHER_BRICK_STAIRS_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static NETHER_BRICK_STAIRS_HALF: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static NETHER_BRICK_STAIRS_SHAPE: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static OAK_STAIRS_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static OAK_STAIRS_HALF: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static OAK_STAIRS_SHAPE: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static PISTON_EXTENSION_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static PISTON_EXTENSION_TYPE: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static PISTON_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static PISTON_HEAD_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static PISTON_HEAD_TYPE: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static PLANKS_VARIANT: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static PORTAL_AXIS: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static POWERED_COMPARATOR_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static POWERED_COMPARATOR_MODE: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static POWERED_REPEATER_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static PRISMARINE_VARIANT: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static PUMPKIN_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static PUMPKIN_STEM_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static QUARTZ_BLOCK_VARIANT: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static QUARTZ_STAIRS_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static QUARTZ_STAIRS_HALF: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static QUARTZ_STAIRS_SHAPE: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static RAIL_SHAPE: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static REDSTONE_TORCH_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static REDSTONE_WIRE_EAST: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static REDSTONE_WIRE_NORTH: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static REDSTONE_WIRE_SOUTH: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static REDSTONE_WIRE_WEST: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static RED_FLOWER_TYPE: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static RED_MUSHROOM_BLOCK_VARIANT: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static RED_SANDSTONE_STAIRS_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static RED_SANDSTONE_STAIRS_HALF: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static RED_SANDSTONE_STAIRS_SHAPE: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static RED_SANDSTONE_TYPE: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static SANDSTONE_STAIRS_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static SANDSTONE_STAIRS_HALF: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static SANDSTONE_STAIRS_SHAPE: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static SANDSTONE_TYPE: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static SAND_VARIANT: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static SAPLING_TYPE: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static SKULL_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static SPRUCE_DOOR_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static SPRUCE_DOOR_HALF: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static SPRUCE_DOOR_HINGE: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static SPRUCE_FENCE_GATE_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static SPRUCE_STAIRS_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static SPRUCE_STAIRS_HALF: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static SPRUCE_STAIRS_SHAPE: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static STAINED_GLASS_COLOR: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static STAINED_GLASS_PANE_COLOR: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static STAINED_HARDENED_CLAY_COLOR: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static STICKY_PISTON_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static STONEBRICK_VARIANT: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static STONE_BRICK_STAIRS_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static STONE_BRICK_STAIRS_HALF: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static STONE_BRICK_STAIRS_SHAPE: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static STONE_BUTTON_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static STONE_SLAB2_HALF: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static STONE_SLAB2_VARIANT: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static STONE_SLAB_HALF: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static STONE_SLAB_VARIANT: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static STONE_STAIRS_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static STONE_STAIRS_HALF: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static STONE_STAIRS_SHAPE: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static STONE_VARIANT: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static TALLGRASS_TYPE: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static TORCH_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static TRAPDOOR_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static TRAPDOOR_HALF: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static TRAPPED_CHEST_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static TRIPWIRE_HOOK_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static UNLIT_REDSTONE_TORCH_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static UNPOWERED_COMPARATOR_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static UNPOWERED_COMPARATOR_MODE: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static UNPOWERED_REPEATER_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static WALL_BANNER_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static WALL_SIGN_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static WOODEN_BUTTON_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static WOODEN_DOOR_FACING: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static WOODEN_DOOR_HALF: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static WOODEN_DOOR_HINGE: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static WOODEN_SLAB_HALF: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static WOODEN_SLAB_VARIANT: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static WOOL_COLOR: org.spongepowered.api.block.trait.EnumTrait; + // @ts-ignore + public static YELLOW_FLOWER_TYPE: org.spongepowered.api.block.trait.EnumTrait; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.trait.IntegerTrait.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.trait.IntegerTrait.d.ts new file mode 100644 index 00000000..724d2aca --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.trait.IntegerTrait.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace trait { + // @ts-ignore + interface IntegerTrait extends org.spongepowered.api.block.trait.BlockTrait { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.block.trait.IntegerTraits.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.block.trait.IntegerTraits.d.ts new file mode 100644 index 00000000..04a7346d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.block.trait.IntegerTraits.d.ts @@ -0,0 +1,76 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace block { + namespace trait { + // @ts-ignore + class IntegerTraits extends java.lang.Object { + // @ts-ignore + public static ANVIL_DAMAGE: org.spongepowered.api.block.trait.IntegerTrait; + // @ts-ignore + public static BEETROOT_AGE: org.spongepowered.api.block.trait.IntegerTrait; + // @ts-ignore + public static CACTUS_AGE: org.spongepowered.api.block.trait.IntegerTrait; + // @ts-ignore + public static CAKE_BITES: org.spongepowered.api.block.trait.IntegerTrait; + // @ts-ignore + public static CARROTS_AGE: org.spongepowered.api.block.trait.IntegerTrait; + // @ts-ignore + public static CAULDRON_LEVEL: org.spongepowered.api.block.trait.IntegerTrait; + // @ts-ignore + public static COCOA_AGE: org.spongepowered.api.block.trait.IntegerTrait; + // @ts-ignore + public static DAYLIGHT_DETECTOR_INVERTED_POWER: org.spongepowered.api.block.trait.IntegerTrait; + // @ts-ignore + public static DAYLIGHT_DETECTOR_POWER: org.spongepowered.api.block.trait.IntegerTrait; + // @ts-ignore + public static FARMLAND_MOISTURE: org.spongepowered.api.block.trait.IntegerTrait; + // @ts-ignore + public static FIRE_AGE: org.spongepowered.api.block.trait.IntegerTrait; + // @ts-ignore + public static FLOWER_POT_LEGACY_DATA: org.spongepowered.api.block.trait.IntegerTrait; + // @ts-ignore + public static FLOWING_LAVA_LEVEL: org.spongepowered.api.block.trait.IntegerTrait; + // @ts-ignore + public static FLOWING_WATER_LEVEL: org.spongepowered.api.block.trait.IntegerTrait; + // @ts-ignore + public static HEAVY_WEIGHTED_PRESSURE_PLATE_POWER: org.spongepowered.api.block.trait.IntegerTrait; + // @ts-ignore + public static LAVA_LEVEL: org.spongepowered.api.block.trait.IntegerTrait; + // @ts-ignore + public static LIGHT_WEIGHTED_PRESSURE_PLATE_POWER: org.spongepowered.api.block.trait.IntegerTrait; + // @ts-ignore + public static MELON_STEM_AGE: org.spongepowered.api.block.trait.IntegerTrait; + // @ts-ignore + public static NETHER_WART_AGE: org.spongepowered.api.block.trait.IntegerTrait; + // @ts-ignore + public static POTATOES_AGE: org.spongepowered.api.block.trait.IntegerTrait; + // @ts-ignore + public static POWERED_REPEATER_DELAY: org.spongepowered.api.block.trait.IntegerTrait; + // @ts-ignore + public static PUMPKIN_STEM_AGE: org.spongepowered.api.block.trait.IntegerTrait; + // @ts-ignore + public static REDSTONE_WIRE_POWER: org.spongepowered.api.block.trait.IntegerTrait; + // @ts-ignore + public static REEDS_AGE: org.spongepowered.api.block.trait.IntegerTrait; + // @ts-ignore + public static SAPLING_STAGE: org.spongepowered.api.block.trait.IntegerTrait; + // @ts-ignore + public static SNOW_LAYER_LAYERS: org.spongepowered.api.block.trait.IntegerTrait; + // @ts-ignore + public static STANDING_BANNER_ROTATION: org.spongepowered.api.block.trait.IntegerTrait; + // @ts-ignore + public static STANDING_SIGN_ROTATION: org.spongepowered.api.block.trait.IntegerTrait; + // @ts-ignore + public static UNPOWERED_REPEATER_DELAY: org.spongepowered.api.block.trait.IntegerTrait; + // @ts-ignore + public static WATER_LEVEL: org.spongepowered.api.block.trait.IntegerTrait; + // @ts-ignore + public static WHEAT_AGE: org.spongepowered.api.block.trait.IntegerTrait; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.boss.BossBar.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.boss.BossBar.d.ts new file mode 100644 index 00000000..ab1846c6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.boss.BossBar.d.ts @@ -0,0 +1,83 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace boss { + // @ts-ignore + interface BossBar extends org.spongepowered.api.util.Identifiable { + /** + * Gets the name of this boss bar. + */ + // @ts-ignore + getName(): org.spongepowered.api.text.Text; + /** + * Sets the name of this boss bar. + */ + // @ts-ignore + setName(name: org.spongepowered.api.text.Text): org.spongepowered.api.boss.BossBar; + /** + * Gets the percent. + */ + // @ts-ignore + getPercent(): number; + /** + * Sets the percent. + *

The percent must be between {@code 0.0} and {@code 1.0}.

+ */ + // @ts-ignore + setPercent(percent: number): org.spongepowered.api.boss.BossBar; + /** + * Gets the color. + */ + // @ts-ignore + getColor(): org.spongepowered.api.boss.BossBarColor; + /** + * Sets the color. + */ + // @ts-ignore + setColor(color: org.spongepowered.api.boss.BossBarColor): org.spongepowered.api.boss.BossBar; + /** + * Gets the overlay. + */ + // @ts-ignore + getOverlay(): org.spongepowered.api.boss.BossBarOverlay; + /** + * Sets the overlay. + */ + // @ts-ignore + setOverlay(overlay: org.spongepowered.api.boss.BossBarOverlay): org.spongepowered.api.boss.BossBar; + /** + * If the sky should darken. + */ + // @ts-ignore + shouldDarkenSky(): boolean; + /** + * Sets if the sky should darken. + */ + // @ts-ignore + setDarkenSky(darkenSky: boolean): org.spongepowered.api.boss.BossBar; + /** + * If the end boss music should be played. + */ + // @ts-ignore + shouldPlayEndBossMusic(): boolean; + /** + * Sets if the end boss music should be played. + */ + // @ts-ignore + setPlayEndBossMusic(playEndBossMusic: boolean): org.spongepowered.api.boss.BossBar; + /** + * If fog should be created. + */ + // @ts-ignore + shouldCreateFog(): boolean; + /** + * Sets if fog should be created. + */ + // @ts-ignore + setCreateFog(createFog: boolean): org.spongepowered.api.boss.BossBar; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.boss.BossBarColor.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.boss.BossBarColor.d.ts new file mode 100644 index 00000000..c953494c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.boss.BossBarColor.d.ts @@ -0,0 +1,12 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace boss { + // @ts-ignore + interface BossBarColor extends org.spongepowered.api.CatalogType { + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.boss.BossBarColors.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.boss.BossBarColors.d.ts new file mode 100644 index 00000000..7a0d0b45 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.boss.BossBarColors.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace boss { + // @ts-ignore + class BossBarColors extends java.lang.Object { + // @ts-ignore + public static BLUE: org.spongepowered.api.boss.BossBarColor; + // @ts-ignore + public static GREEN: org.spongepowered.api.boss.BossBarColor; + // @ts-ignore + public static PINK: org.spongepowered.api.boss.BossBarColor; + // @ts-ignore + public static PURPLE: org.spongepowered.api.boss.BossBarColor; + // @ts-ignore + public static RED: org.spongepowered.api.boss.BossBarColor; + // @ts-ignore + public static WHITE: org.spongepowered.api.boss.BossBarColor; + // @ts-ignore + public static YELLOW: org.spongepowered.api.boss.BossBarColor; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.boss.BossBarOverlay.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.boss.BossBarOverlay.d.ts new file mode 100644 index 00000000..104cf4a8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.boss.BossBarOverlay.d.ts @@ -0,0 +1,12 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace boss { + // @ts-ignore + interface BossBarOverlay extends org.spongepowered.api.CatalogType { + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.boss.BossBarOverlays.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.boss.BossBarOverlays.d.ts new file mode 100644 index 00000000..602206be --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.boss.BossBarOverlays.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace boss { + // @ts-ignore + class BossBarOverlays extends java.lang.Object { + // @ts-ignore + public static NOTCHED_10: org.spongepowered.api.boss.BossBarOverlay; + // @ts-ignore + public static NOTCHED_12: org.spongepowered.api.boss.BossBarOverlay; + // @ts-ignore + public static NOTCHED_20: org.spongepowered.api.boss.BossBarOverlay; + // @ts-ignore + public static NOTCHED_6: org.spongepowered.api.boss.BossBarOverlay; + // @ts-ignore + public static PROGRESS: org.spongepowered.api.boss.BossBarOverlay; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.boss.ServerBossBar.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.boss.ServerBossBar.Builder.d.ts new file mode 100644 index 00000000..79758fa5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.boss.ServerBossBar.Builder.d.ts @@ -0,0 +1,60 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace boss { + namespace ServerBossBar { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the name of the boss bar. + */ + // @ts-ignore + name(name: org.spongepowered.api.text.Text): org.spongepowered.api.boss.ServerBossBar.Builder; + /** + * Sets the percent. + *

The percent must be between {@code 0.0} and {@code 1.0}.

+ */ + // @ts-ignore + percent(percent: number): org.spongepowered.api.boss.ServerBossBar.Builder; + /** + * Sets the color. + */ + // @ts-ignore + color(color: org.spongepowered.api.boss.BossBarColor): org.spongepowered.api.boss.ServerBossBar.Builder; + /** + * Sets the overlay. + */ + // @ts-ignore + overlay(overlay: org.spongepowered.api.boss.BossBarOverlay): org.spongepowered.api.boss.ServerBossBar.Builder; + /** + * Sets if the sky should darken. + */ + // @ts-ignore + darkenSky(darkenSky: boolean): org.spongepowered.api.boss.ServerBossBar.Builder; + /** + * Sets if the end boss music should be played. + */ + // @ts-ignore + playEndBossMusic(playEndBossMusic: boolean): org.spongepowered.api.boss.ServerBossBar.Builder; + /** + * Sets if fog should be created. + */ + // @ts-ignore + createFog(createFog: boolean): org.spongepowered.api.boss.ServerBossBar.Builder; + /** + * Sets if the boss bar is visible. + */ + // @ts-ignore + visible(visible: boolean): org.spongepowered.api.boss.ServerBossBar.Builder; + /** + * Build the boss bar from the values in this builder. + */ + // @ts-ignore + build(): org.spongepowered.api.boss.ServerBossBar; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.boss.ServerBossBar.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.boss.ServerBossBar.d.ts new file mode 100644 index 00000000..e1c93489 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.boss.ServerBossBar.d.ts @@ -0,0 +1,66 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace boss { + // @ts-ignore + interface ServerBossBar extends org.spongepowered.api.boss.BossBar { + /** + * Creates a new {@link Builder} to create {@link ServerBossBar}s. + */ + // @ts-ignore + builder(): org.spongepowered.api.boss.ServerBossBar.Builder; + // @ts-ignore + setName(name: org.spongepowered.api.text.Text): org.spongepowered.api.boss.ServerBossBar; + // @ts-ignore + setPercent(percent: number): org.spongepowered.api.boss.ServerBossBar; + // @ts-ignore + setColor(color: org.spongepowered.api.boss.BossBarColor): org.spongepowered.api.boss.ServerBossBar; + // @ts-ignore + setOverlay(overlay: org.spongepowered.api.boss.BossBarOverlay): org.spongepowered.api.boss.ServerBossBar; + // @ts-ignore + setDarkenSky(darkenSky: boolean): org.spongepowered.api.boss.ServerBossBar; + // @ts-ignore + setPlayEndBossMusic(playEndBossMusic: boolean): org.spongepowered.api.boss.ServerBossBar; + // @ts-ignore + setCreateFog(createFog: boolean): org.spongepowered.api.boss.ServerBossBar; + /** + * If this boss bar is visible. + */ + // @ts-ignore + isVisible(): boolean; + /** + * Sets if this boss bar is visible. + */ + // @ts-ignore + setVisible(visible: boolean): org.spongepowered.api.boss.ServerBossBar; + /** + * Gets a collection of all players on this boss bar. + */ + // @ts-ignore + getPlayers(): java.util.Collection; + /** + * Adds a player to this boss bar. + */ + // @ts-ignore + addPlayer(player: org.spongepowered.api.entity.living.player.Player): org.spongepowered.api.boss.ServerBossBar; + /** + * Adds a collection of players to this boss bar. + */ + // @ts-ignore + addPlayers(players: java.util.Collection): org.spongepowered.api.boss.ServerBossBar; + /** + * Removes a player from this boss bar. + */ + // @ts-ignore + removePlayer(player: org.spongepowered.api.entity.living.player.Player): org.spongepowered.api.boss.ServerBossBar; + /** + * Removes a collection of players from this boss bar. + */ + // @ts-ignore + removePlayers(players: java.util.Collection): org.spongepowered.api.boss.ServerBossBar; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandCallable.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandCallable.d.ts new file mode 100644 index 00000000..aa765359 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandCallable.d.ts @@ -0,0 +1,60 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + // @ts-ignore + interface CommandCallable { + /** + * Execute the command based on input arguments. + *

The implementing class must perform the necessary permission + * checks.

+ */ + // @ts-ignore + process(source: org.spongepowered.api.command.CommandSource, arguments: string): org.spongepowered.api.command.CommandResult; + /** + * Gets a list of suggestions based on input. + *

If a suggestion is chosen by the user, it will replace the last + * word.

+ */ + // @ts-ignore + getSuggestions(source: org.spongepowered.api.command.CommandSource, arguments: string, targetPosition: org.spongepowered.api.world.Location): java.util.List; + /** + * Test whether this command can probably be executed by the given source. + *

If implementations are unsure if the command can be executed by + * the source, {@code true} should be returned. Return values of this method + * may be used to determine whether this command is listed in command + * listings.

+ */ + // @ts-ignore + testPermission(source: org.spongepowered.api.command.CommandSource): boolean; + /** + * Gets a short one-line description of this command. + *

The help system may display the description in the command list.

+ */ + // @ts-ignore + getShortDescription(source: org.spongepowered.api.command.CommandSource): java.util.Optional; + /** + * Gets a longer formatted help message about this command. + *

It is recommended to use the default text color and style. Sections + * with text actions (e.g. hyperlinks) should be underlined.

+ *

Multi-line messages can be created by separating the lines with + * {@code \n}.

+ *

The help system may display this message when a source requests + * detailed information about a command.

+ */ + // @ts-ignore + getHelp(source: org.spongepowered.api.command.CommandSource): java.util.Optional; + /** + * Gets the usage string of this command. + *

A usage string may look like + * {@code [-w <world>] <var1> <var2>}.

+ *

The string must not contain the command alias.

+ */ + // @ts-ignore + getUsage(source: org.spongepowered.api.command.CommandSource): org.spongepowered.api.text.Text; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandException.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandException.d.ts new file mode 100644 index 00000000..376d6db8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandException.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + // @ts-ignore + class CommandException extends org.spongepowered.api.util.TextMessageException { + /** + * Constructs a new {@link CommandException} with the given message. + */ + // @ts-ignore + constructor(message: org.spongepowered.api.text.Text) + /** + * Constructs a new {@link CommandException} with the given message and + * the given cause. + */ + // @ts-ignore + constructor(message: org.spongepowered.api.text.Text, cause: java.lang.Throwable) + /** + * Constructs a new {@link CommandException} with the given message. + */ + // @ts-ignore + constructor(message: org.spongepowered.api.text.Text, includeUsage: boolean) + /** + * Constructs a new {@link CommandException} with the given message and + * the given cause. + */ + // @ts-ignore + constructor(message: org.spongepowered.api.text.Text, cause: java.lang.Throwable, includeUsage: boolean) + /** + * Gets whether the exception should include usage in + * the presentation of the exception/stack-trace. + */ + // @ts-ignore + public shouldIncludeUsage(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandManager.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandManager.d.ts new file mode 100644 index 00000000..455dc36c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandManager.d.ts @@ -0,0 +1,87 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + // @ts-ignore + interface CommandManager extends org.spongepowered.api.command.dispatcher.Dispatcher { + /** + * Register a given command using the given list of aliases. + *

If there is a conflict with one of the aliases (i.e. that alias + * is already assigned to another command), then the alias will be skipped. + * It is possible for there to be no alias to be available out of + * the provided list of aliases, which would mean that the command would not + * be assigned to any aliases.

+ *

The first non-conflicted alias becomes the "primary alias."

+ */ + // @ts-ignore + register(plugin: java.lang.Object, callable: org.spongepowered.api.command.CommandCallable, alias: string): java.util.Optional; + /** + * Register a given command using the given list of aliases. + *

If there is a conflict with one of the aliases (i.e. that alias + * is already assigned to another command), then the alias will be skipped. + * It is possible for there to be no alias to be available out of + * the provided list of aliases, which would mean that the command would + * not be assigned to any aliases.

+ *

The first non-conflicted alias becomes the "primary alias."

+ */ + // @ts-ignore + register(plugin: java.lang.Object, callable: org.spongepowered.api.command.CommandCallable, aliases: java.util.List): java.util.Optional; + /** + * Register a given command using a given list of aliases. + *

The provided callback function will be called with a list of aliases + * that are not taken (from the list of aliases that were requested) and + * it should return a list of aliases to actually register. Aliases may be + * removed, and if no aliases remain, then the command will not be + * registered. It may be possible that no aliases are available, and thus + * the callback would receive an empty list. New aliases should not be added + * to the list in the callback as this may cause + * {@link IllegalArgumentException} to be thrown.

+ *

The first non-conflicted alias becomes the "primary alias."

+ */ + // @ts-ignore + register(plugin: java.lang.Object, callable: org.spongepowered.api.command.CommandCallable, aliases: java.util.List, callback: java.util.function$.Function): java.util.Optional; + /** + * Remove a command identified by the given mapping. + */ + // @ts-ignore + removeMapping(mapping: org.spongepowered.api.command.CommandMapping): java.util.Optional; + /** + * Gets a set of plugin containers that have commands registered. + */ + // @ts-ignore + getPluginContainers(): java.util.Set; + /** + * Gets a set of commands owned by the given plugin instance. + */ + // @ts-ignore + getOwnedBy(instance: java.lang.Object): java.util.Set; + /** + * Gets the owner of a CommandMapping, if any is present. + */ + // @ts-ignore + getOwner(mapping: org.spongepowered.api.command.CommandMapping): java.util.Optional; + /** + * Gets the number of registered aliases. + */ + // @ts-ignore + size(): number; + /** + * Execute the command based on input arguments. + *

The implementing class must perform the necessary permission + * checks.

+ */ + // @ts-ignore + process(source: org.spongepowered.api.command.CommandSource, arguments: string): org.spongepowered.api.command.CommandResult; + /** + * Gets a list of suggestions based on input. + *

If a suggestion is chosen by the user, it will replace the last + * word.

+ */ + // @ts-ignore + getSuggestions(source: org.spongepowered.api.command.CommandSource, arguments: string, targetPosition: org.spongepowered.api.world.Location): java.util.List; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandMapping.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandMapping.d.ts new file mode 100644 index 00000000..5c628422 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandMapping.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + // @ts-ignore + interface CommandMapping { + /** + * Gets the primary alias. + */ + // @ts-ignore + getPrimaryAlias(): string; + /** + * Gets an immutable list of all aliases. + *

The returned list must contain at least one entry, of which one must + * be the one returned by {@link #getPrimaryAlias()}.

+ *

There may be several versions of the same alias with different + * casing, although generally implementations should ignore the casing + * of aliases.

+ */ + // @ts-ignore + getAllAliases(): java.util.Set; + /** + * Gets the callable. + */ + // @ts-ignore + getCallable(): org.spongepowered.api.command.CommandCallable; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandMessageFormatting.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandMessageFormatting.d.ts new file mode 100644 index 00000000..dab7cff7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandMessageFormatting.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + // @ts-ignore + class CommandMessageFormatting extends java.lang.Object { + // @ts-ignore + public static PIPE_TEXT: org.spongepowered.api.text.Text; + // @ts-ignore + public static SPACE_TEXT: org.spongepowered.api.text.Text; + // @ts-ignore + public static STAR_TEXT: org.spongepowered.api.text.Text; + // @ts-ignore + public static LT_TEXT: org.spongepowered.api.text.Text; + // @ts-ignore + public static GT_TEXT: org.spongepowered.api.text.Text; + // @ts-ignore + public static ELLIPSIS_TEXT: org.spongepowered.api.text.Text; + /** + * Format text to be output as an error directly to a sender. Not necessary + * when creating an exception to be thrown + */ + // @ts-ignore + public static error(error: org.spongepowered.api.text.Text): org.spongepowered.api.text.Text; + /** + * Format text to be output as a debug message directly to a sender. + */ + // @ts-ignore + public static debug(debug: org.spongepowered.api.text.Text): org.spongepowered.api.text.Text; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandNotFoundException.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandNotFoundException.d.ts new file mode 100644 index 00000000..af566bc4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandNotFoundException.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + // @ts-ignore + class CommandNotFoundException extends org.spongepowered.api.command.CommandException { + /** + * Create an exception with the default message. + */ + // @ts-ignore + constructor(command: string) + /** + * Create an exception with a custom message. + */ + // @ts-ignore + constructor(message: org.spongepowered.api.text.Text, command: string) + /** + * Returns the command that was queried for. + */ + // @ts-ignore + public getCommand(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandPermissionException.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandPermissionException.d.ts new file mode 100644 index 00000000..afda23ce --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandPermissionException.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + // @ts-ignore + class CommandPermissionException extends org.spongepowered.api.command.CommandException { + /** + * Create an exception with the default message. + */ + // @ts-ignore + constructor() + /** + * Create a permissions exception with a custom message. + */ + // @ts-ignore + constructor(message: org.spongepowered.api.text.Text) + /** + * Create a permissions exception with a custom message and cause. + */ + // @ts-ignore + constructor(message: org.spongepowered.api.text.Text, cause: java.lang.Throwable) + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandResult.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandResult.Builder.d.ts new file mode 100644 index 00000000..2b9331c5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandResult.Builder.d.ts @@ -0,0 +1,45 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace CommandResult { + // @ts-ignore + class Builder extends java.lang.Object { + /** + * Sets if the command has been processed. + */ + // @ts-ignore + public successCount(successCount: java.lang.Integer): org.spongepowered.api.command.CommandResult.Builder; + /** + * Sets the amount of blocks affected by the command. + */ + // @ts-ignore + public affectedBlocks(affectedBlocks: java.lang.Integer): org.spongepowered.api.command.CommandResult.Builder; + /** + * Sets the amount of entities affected by the command. + */ + // @ts-ignore + public affectedEntities(affectedEntities: java.lang.Integer): org.spongepowered.api.command.CommandResult.Builder; + /** + * Sets the amount of items affected by the command. + */ + // @ts-ignore + public affectedItems(affectedItems: java.lang.Integer): org.spongepowered.api.command.CommandResult.Builder; + /** + * Sets the query result of the command, e.g. the time of the day, + * an amount of money or a player's amount of XP. + */ + // @ts-ignore + public queryResult(queryResult: java.lang.Integer): org.spongepowered.api.command.CommandResult.Builder; + /** + * Builds the {@link CommandResult}. + */ + // @ts-ignore + public build(): org.spongepowered.api.command.CommandResult; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandResult.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandResult.d.ts new file mode 100644 index 00000000..39c146d7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandResult.d.ts @@ -0,0 +1,85 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + // @ts-ignore + class CommandResult extends java.lang.Object { + /** + * Returns a {@link Builder}. + */ + // @ts-ignore + public static builder(): org.spongepowered.api.command.CommandResult.Builder; + /** + * Returns a new {@link CommandResult} indicating that a command was + * processed. + */ + // @ts-ignore + public static empty(): org.spongepowered.api.command.CommandResult; + /** + * Returns a result indicating the command was processed with a single + * success. + */ + // @ts-ignore + public static success(): org.spongepowered.api.command.CommandResult; + /** + * Returns a result indicating the command was processed with a single + * success. + */ + // @ts-ignore + public static successCount(count: number): org.spongepowered.api.command.CommandResult; + /** + * Returns a result indicating the command was processed with an + * amount of affected blocks. + */ + // @ts-ignore + public static affectedBlocks(count: number): org.spongepowered.api.command.CommandResult; + /** + * Returns a result indicating the command was processed with an + * amount of affected entities. + */ + // @ts-ignore + public static affectedEntities(count: number): org.spongepowered.api.command.CommandResult; + /** + * Returns a result indicating the command was processed with an + * amount of affected items. + */ + // @ts-ignore + public static affectedItems(count: number): org.spongepowered.api.command.CommandResult; + /** + * Returns a result indicating the command was processed with an + * amount of queries. + */ + // @ts-ignore + public static queryResult(count: number): org.spongepowered.api.command.CommandResult; + /** + * Gets the success count of the command. + */ + // @ts-ignore + public getSuccessCount(): java.util.Optional; + /** + * Gets the number of blocks affected by the command. + */ + // @ts-ignore + public getAffectedBlocks(): java.util.Optional; + /** + * Gets the number of entities affected by the command. + */ + // @ts-ignore + public getAffectedEntities(): java.util.Optional; + /** + * Gets the number of items affected by the command. + */ + // @ts-ignore + public getAffectedItems(): java.util.Optional; + /** + * Gets the query result of the command, e.g. the time of the day, + * an amount of money or a player's amount of XP. + */ + // @ts-ignore + public getQueryResult(): java.util.Optional; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandSource.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandSource.d.ts new file mode 100644 index 00000000..d1c54c88 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.CommandSource.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + // @ts-ignore + interface CommandSource extends org.spongepowered.api.text.channel.MessageReceiver, org.spongepowered.api.service.permission.Subject { + /** + * Gets the name identifying this command source. + */ + // @ts-ignore + getName(): string; + /** + * Gets the locale used by this command source. If this + * {@link CommandSource} does have a {@link Locale} configured or does not + * support configuring a {@link Locale}, {@link Locales#DEFAULT} is used. + */ + // @ts-ignore + getLocale(): java.util.Locale; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.ImmutableCommandMapping.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.ImmutableCommandMapping.d.ts new file mode 100644 index 00000000..4c61ba5c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.ImmutableCommandMapping.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + // @ts-ignore + class ImmutableCommandMapping extends java.lang.Object implements org.spongepowered.api.command.CommandMapping { + /** + * Create a new instance. + */ + // @ts-ignore + constructor(callable: org.spongepowered.api.command.CommandCallable, primary: string, alias: string) + /** + * Create a new instance. + */ + // @ts-ignore + constructor(callable: org.spongepowered.api.command.CommandCallable, primary: string, aliases: java.util.Collection) + // @ts-ignore + public getPrimaryAlias(): string; + // @ts-ignore + public getAllAliases(): java.util.Set; + // @ts-ignore + public getCallable(): org.spongepowered.api.command.CommandCallable; + // @ts-ignore + public toString(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.InvocationCommandException.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.InvocationCommandException.d.ts new file mode 100644 index 00000000..536d4d65 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.InvocationCommandException.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + // @ts-ignore + class InvocationCommandException extends org.spongepowered.api.command.CommandException { + /** + * Constructs a new exception with the given message and the given cause. + */ + // @ts-ignore + constructor(message: org.spongepowered.api.text.Text, cause: java.lang.Throwable) + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.ArgumentParseException.WithUsage.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.ArgumentParseException.WithUsage.d.ts new file mode 100644 index 00000000..dc0c07ce --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.ArgumentParseException.WithUsage.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace args { + namespace ArgumentParseException { + // @ts-ignore + class WithUsage extends org.spongepowered.api.command.args.ArgumentParseException { + // @ts-ignore + constructor(wrapped: org.spongepowered.api.command.args.ArgumentParseException, usage: org.spongepowered.api.text.Text) + /** + * Gets the usage associated with this exception. + */ + // @ts-ignore + public getUsage(): org.spongepowered.api.text.Text; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.ArgumentParseException.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.ArgumentParseException.d.ts new file mode 100644 index 00000000..d838fd75 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.ArgumentParseException.d.ts @@ -0,0 +1,43 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace args { + // @ts-ignore + class ArgumentParseException extends org.spongepowered.api.command.CommandException { + /** + * Return a new {@link ArgumentParseException} with the given message, source and position. + */ + // @ts-ignore + constructor(message: org.spongepowered.api.text.Text, source: string, position: number) + /** + * Return a new {@link ArgumentParseException} with the given message, cause, source and position. + */ + // @ts-ignore + constructor(message: org.spongepowered.api.text.Text, cause: java.lang.Throwable, source: string, position: number) + // @ts-ignore + public getText(): org.spongepowered.api.text.Text; + /** + * Return a string pointing to the position of the arguments when this + * exception occurs. + */ + // @ts-ignore + public getAnnotatedPosition(): string; + /** + * Gets the position of the last fetched argument in the provided source + * string. + */ + // @ts-ignore + public getPosition(): number; + /** + * Returns the source string arguments are being parsed from. + */ + // @ts-ignore + public getSourceString(): string; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.ChildCommandElementExecutor.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.ChildCommandElementExecutor.d.ts new file mode 100644 index 00000000..879b5bbe --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.ChildCommandElementExecutor.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace args { + // @ts-ignore + class ChildCommandElementExecutor extends org.spongepowered.api.command.args.CommandElement implements org.spongepowered.api.command.spec.CommandExecutor { + /** + * Create a new combined argument element and executor to handle the + * parsing and execution of child commands. + */ + // @ts-ignore + constructor(fallbackExecutor: org.spongepowered.api.command.spec.CommandExecutor) + /** + * Create a new combined argument element and executor to handle the + * parsing and execution of child commands. + */ + // @ts-ignore + constructor(fallbackExecutor: org.spongepowered.api.command.spec.CommandExecutor, fallbackElements: org.spongepowered.api.command.args.CommandElement, fallbackOnFail: boolean) + /** + * Register a child command for a given set of aliases. + */ + // @ts-ignore + public register(callable: org.spongepowered.api.command.CommandCallable, aliases: java.util.List): java.util.Optional; + /** + * Register a child command for a given set of aliases. + */ + // @ts-ignore + public register(callable: org.spongepowered.api.command.CommandCallable, aliases: string): java.util.Optional; + // @ts-ignore + public complete(src: org.spongepowered.api.command.CommandSource, args: org.spongepowered.api.command.args.CommandArgs, context: org.spongepowered.api.command.args.CommandContext): java.util.List; + // @ts-ignore + public parse(source: org.spongepowered.api.command.CommandSource, args: org.spongepowered.api.command.args.CommandArgs, context: org.spongepowered.api.command.args.CommandContext): void; + // @ts-ignore + protected parseValue(source: org.spongepowered.api.command.CommandSource, args: org.spongepowered.api.command.args.CommandArgs): java.lang.Object; + // @ts-ignore + public execute(src: org.spongepowered.api.command.CommandSource, args: org.spongepowered.api.command.args.CommandContext): org.spongepowered.api.command.CommandResult; + // @ts-ignore + public getUsage(src: org.spongepowered.api.command.CommandSource): org.spongepowered.api.text.Text; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.CommandArgs.Snapshot.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.CommandArgs.Snapshot.d.ts new file mode 100644 index 00000000..683067ac --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.CommandArgs.Snapshot.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace args { + namespace CommandArgs { + // @ts-ignore + class Snapshot extends java.lang.Object { + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.CommandArgs.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.CommandArgs.d.ts new file mode 100644 index 00000000..2ef7e63b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.CommandArgs.d.ts @@ -0,0 +1,118 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace args { + // @ts-ignore + class CommandArgs extends java.lang.Object { + /** + * Create a new CommandArgs instance with the given raw input and arguments. + */ + // @ts-ignore + constructor(rawInput: string, args: java.util.List) + /** + * Return whether more arguments remain to be read. + */ + // @ts-ignore + public hasNext(): boolean; + /** + * Try to read the next argument without advancing the current index. + */ + // @ts-ignore + public peek(): string; + /** + * Try to read the next argument, advancing the current index if successful. + */ + // @ts-ignore + public next(): string; + /** + * Try to read the next argument, advancing the current index if successful + * or returning an absent optional if not. + */ + // @ts-ignore + public nextIfPresent(): java.util.Optional; + /** + * Create a parse exception with the provided message which has the position + * of the last parsed argument attached. The returned exception must be + * thrown at the target + */ + // @ts-ignore + public createError(message: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.ArgumentParseException; + /** + * Gets a list of all arguments as a string. The returned list is immutable. + */ + // @ts-ignore + public getAll(): java.util.List; + /** + * Return this arguments object's current state. Can be used to reset with + * the {@link #setState(Object)} method. + */ + // @ts-ignore + public getState(): java.lang.Object; + /** + * Restore the arguments object's state to a state previously used. + */ + // @ts-ignore + public setState(state: java.lang.Object): void; + /** + * Return the raw string used to provide input to this arguments object. + */ + // @ts-ignore + public getRaw(): string; + /** + * Get an arg at the specified position. + */ + // @ts-ignore + public get(index: number): string; + /** + * Insert an arg as the next arg to be returned by {@link #next()}. + */ + // @ts-ignore + public insertArg(value: string): void; + /** + * Remove the arguments parsed between startState and endState. + */ + // @ts-ignore + public removeArgs(startState: java.lang.Object, endState: java.lang.Object): void; + /** + * Remove the arguments parsed between two snapshots. + */ + // @ts-ignore + public removeArgs(startSnapshot: org.spongepowered.api.command.args.CommandArgs.Snapshot, endSnapshot: org.spongepowered.api.command.args.CommandArgs.Snapshot): void; + /** + * Returns the number of arguments + */ + // @ts-ignore + public size(): number; + /** + * Gets the current position in raw input. + */ + // @ts-ignore + public getRawPosition(): number; + /** + * Gets a snapshot of the data inside this context to allow it to be + * restored later. + */ + // @ts-ignore + public getSnapshot(): org.spongepowered.api.command.args.CommandArgs.Snapshot; + /** + * Resets a {@link CommandArgs} to a previous state using a previously + * created {@link CommandArgs.Snapshot}. + */ + // @ts-ignore + public applySnapshot(snapshot: org.spongepowered.api.command.args.CommandArgs.Snapshot): void; + /** + * Resets a {@link CommandArgs} to a previous state using a previously + * created {@link CommandArgs.Snapshot}. + *

If resetArgs is set to false, this snapshot will not reset the + * argument list to its previous state, only the index.

+ */ + // @ts-ignore + public applySnapshot(snapshot: org.spongepowered.api.command.args.CommandArgs.Snapshot, resetArgs: boolean): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.CommandContext.Snapshot.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.CommandContext.Snapshot.d.ts new file mode 100644 index 00000000..ccb4da34 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.CommandContext.Snapshot.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace args { + namespace CommandContext { + // @ts-ignore + class Snapshot extends java.lang.Object { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.CommandContext.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.CommandContext.d.ts new file mode 100644 index 00000000..9cce8ea5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.CommandContext.d.ts @@ -0,0 +1,105 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace args { + // @ts-ignore + class CommandContext extends java.lang.Object { + /** + * Create a new empty CommandContext. + */ + // @ts-ignore + constructor() + // @ts-ignore + public static TARGET_BLOCK_ARG: string; + // @ts-ignore + public static TAB_COMPLETION: string; + /** + * Gets all values for the given argument. May return an empty list if no + * values are present. + */ + // @ts-ignore + public getAll(key: string): java.util.Collection; + /** + * Gets all values for the given argument. May return an empty list if no + * values are present. + */ + // @ts-ignore + public getAll(key: org.spongepowered.api.text.Text): java.util.Collection; + /** + * Gets the value for the given key if the key has only one value. + *

An empty {@link Optional} indicates that there are either zero or more + * than one values for the given key. Use {@link #hasAny(Text)} to verify + * which.

+ */ + // @ts-ignore + public getOne(key: string): java.util.Optional; + /** + * Gets the value for the given key if the key has only one value. + *

An empty {@link Optional} indicates that there are either zero or more + * than one values for the given key. Use {@link #hasAny(Text)} to verify + * which.

+ */ + // @ts-ignore + public getOne(key: org.spongepowered.api.text.Text): java.util.Optional; + /** + * Gets the value for the given key if the key has only one value, throws an + * exception otherwise. + */ + // @ts-ignore + public requireOne(key: string): java.lang.Object; + /** + * Gets the value for the given key if the key has only one value, throws an + * exception otherwise. + */ + // @ts-ignore + public requireOne(key: org.spongepowered.api.text.Text): java.lang.Object; + /** + * Insert an argument into this context. + */ + // @ts-ignore + public putArg(key: string, value: java.lang.Object): void; + /** + * Insert an argument into this context. + */ + // @ts-ignore + public putArg(key: org.spongepowered.api.text.Text, value: java.lang.Object): void; + /** + * Perform a permissions check, throwing an exception if the required + * permissions are not present. + */ + // @ts-ignore + public checkPermission(commander: org.spongepowered.api.command.CommandSource, permission: string): void; + /** + * Returns whether this context has any value for the given argument key. + */ + // @ts-ignore + public hasAny(key: string): boolean; + /** + * Returns whether this context has any value for the given argument key. + */ + // @ts-ignore + public hasAny(key: org.spongepowered.api.text.Text): boolean; + /** + * Gets a snapshot of the data inside this context to allow it to be + * restored later. + *

This is only guaranteed to create a shallow copy of the + * backing store. If any value is mutable, any changes to that value + * will be reflected in this snapshot. It is therefore not recommended + * that you keep this snapshot around for longer than is necessary.

+ */ + // @ts-ignore + public createSnapshot(): org.spongepowered.api.command.args.CommandContext.Snapshot; + /** + * Resets a {@link CommandContext} to a previous state using a previously + * created {@link Snapshot}. + */ + // @ts-ignore + public applySnapshot(snapshot: org.spongepowered.api.command.args.CommandContext.Snapshot): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.CommandElement.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.CommandElement.d.ts new file mode 100644 index 00000000..b4e66f6d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.CommandElement.d.ts @@ -0,0 +1,57 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace args { + // @ts-ignore + abstract class CommandElement extends java.lang.Object { + // @ts-ignore + constructor(key: org.spongepowered.api.text.Text) + /** + * Return the key to be used for this object. + */ + // @ts-ignore + public getKey(): org.spongepowered.api.text.Text; + /** + * Return the plain key, to be used when looking up this command element in + * a {@link CommandContext}. If the key is a {@link TranslatableText}, this + * is the translation's id. Otherwise, this is the result of + * {@link Text#toPlain()}. + */ + // @ts-ignore + public getUntranslatedKey(): string; + /** + * Attempt to extract a value for this element from the given arguments and + * put it in the given context. This method normally delegates to + * {@link #parseValue(CommandSource, CommandArgs)} for getting the values. + * This method is expected to have no side-effects for the source, meaning + * that executing it will not change the state of the {@link CommandSource} + * in any way. + */ + // @ts-ignore + public parse(source: org.spongepowered.api.command.CommandSource, args: org.spongepowered.api.command.args.CommandArgs, context: org.spongepowered.api.command.args.CommandContext): void; + /** + * Attempt to extract a value for this element from the given arguments. + * This method is expected to have no side-effects for the source, meaning + * that executing it will not change the state of the {@link CommandSource} + * in any way. + */ + // @ts-ignore + protected abstract parseValue(source: org.spongepowered.api.command.CommandSource, args: org.spongepowered.api.command.args.CommandArgs): java.lang.Object; + /** + * Fetch completions for command arguments. + */ + // @ts-ignore + public abstract complete(src: org.spongepowered.api.command.CommandSource, args: org.spongepowered.api.command.args.CommandArgs, context: org.spongepowered.api.command.args.CommandContext): java.util.List; + /** + * Return a usage message for this specific argument. + */ + // @ts-ignore + public getUsage(src: org.spongepowered.api.command.CommandSource): org.spongepowered.api.text.Text; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.CommandFlags.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.CommandFlags.Builder.d.ts new file mode 100644 index 00000000..0df399ea --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.CommandFlags.Builder.d.ts @@ -0,0 +1,86 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace args { + namespace CommandFlags { + // @ts-ignore + class Builder extends java.lang.Object { + /** + * Allow a flag with any of the provided specifications that has no + * value. This flag will be exposed in a {@link CommandContext} under + * the key equivalent to the first flag in the specification array. + * The specifications are handled as so for each element in the + * {@code specs} array: + *
    + *
  • If the element starts with -, the remainder of the element + * is interpreted as a long flag (so, "-flag" means "--flag" will + * be matched in an argument string)
  • + *
  • Otherwise, each code point of the element is interpreted + * as a short flag (meaning "flag" will cause "-f", "-l", "-a" and + * "-g" to be matched in an argument string, storing "true" under + * the key "f".)
  • + *
+ */ + // @ts-ignore + public flag(specs: string): org.spongepowered.api.command.args.CommandFlags.Builder; + /** + * Allow a flag with any of the provided specifications that has no + * value but requires the source to have a specific permission to + * specify the command. + */ + // @ts-ignore + public permissionFlag(flagPermission: string, specs: string): org.spongepowered.api.command.args.CommandFlags.Builder; + /** + * Allow a flag with any of the provided specifications, with the given + * command element. The flag may be present multiple times, and may + * therefore have multiple values. + */ + // @ts-ignore + public valueFlag(value: org.spongepowered.api.command.args.CommandElement, specs: string): org.spongepowered.api.command.args.CommandFlags.Builder; + /** + * If this is true, any long flag (--) will be accepted and added as a + * flag. If false, unknown long flags are considered errors. + */ + // @ts-ignore + public setAcceptsArbitraryLongFlags(acceptsArbitraryLongFlags: boolean): org.spongepowered.api.command.args.CommandFlags.Builder; + /** + * Sets how long flags that are not registered should be handled when + * encountered. + */ + // @ts-ignore + public setUnknownLongFlagBehavior(behavior: org.spongepowered.api.command.args.CommandFlags.UnknownFlagBehavior): org.spongepowered.api.command.args.CommandFlags.Builder; + /** + * Sets how long flags that are not registered should be handled when + * encountered. + *

If a command that supports flags accepts negative numbers (or + * arguments that may begin with a dash), setting this to + * {@link UnknownFlagBehavior#IGNORE} will cause these elements to + * be ignored by the flag parser and will be parsed by the command's + * non-flag elements instead.

+ */ + // @ts-ignore + public setUnknownShortFlagBehavior(behavior: org.spongepowered.api.command.args.CommandFlags.UnknownFlagBehavior): org.spongepowered.api.command.args.CommandFlags.Builder; + /** + * Whether flags should be anchored to the beginning of the text (so + * flags will only be picked up if they are at the beginning of the + * input). + */ + // @ts-ignore + public setAnchorFlags(anchorFlags: boolean): org.spongepowered.api.command.args.CommandFlags.Builder; + /** + * Build a flag command element using the given command element to + * handle all non-flag arguments. + *

If you wish to add multiple elements here, wrap them in + * {@link GenericArguments#seq(CommandElement...)}

+ */ + // @ts-ignore + public buildWith(wrapped: org.spongepowered.api.command.args.CommandElement): org.spongepowered.api.command.args.CommandElement; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.CommandFlags.UnknownFlagBehavior.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.CommandFlags.UnknownFlagBehavior.d.ts new file mode 100644 index 00000000..874f3191 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.CommandFlags.UnknownFlagBehavior.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace args { + namespace CommandFlags { + // @ts-ignore + class UnknownFlagBehavior extends java.lang.Enum { + // @ts-ignore + public static ERROR: org.spongepowered.api.command.args.CommandFlags.UnknownFlagBehavior; + // @ts-ignore + public static ACCEPT_NONVALUE: org.spongepowered.api.command.args.CommandFlags.UnknownFlagBehavior; + // @ts-ignore + public static ACCEPT_VALUE: org.spongepowered.api.command.args.CommandFlags.UnknownFlagBehavior; + // @ts-ignore + public static IGNORE: org.spongepowered.api.command.args.CommandFlags.UnknownFlagBehavior; + // @ts-ignore + public static values(): org.spongepowered.api.command.args.CommandFlags.UnknownFlagBehavior[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.command.args.CommandFlags.UnknownFlagBehavior; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.CommandFlags.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.CommandFlags.d.ts new file mode 100644 index 00000000..5035d2cc --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.CommandFlags.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace args { + // @ts-ignore + class CommandFlags extends org.spongepowered.api.command.args.CommandElement { + // @ts-ignore + constructor(childElement: org.spongepowered.api.command.args.CommandElement, usageFlags: java.util.Map, shortFlags: java.util.Map, longFlags: java.util.Map, unknownShortFlagBehavior: org.spongepowered.api.command.args.CommandFlags.UnknownFlagBehavior, unknownLongFlagBehavior: org.spongepowered.api.command.args.CommandFlags.UnknownFlagBehavior, anchorFlags: boolean) + // @ts-ignore + public parse(source: org.spongepowered.api.command.CommandSource, args: org.spongepowered.api.command.args.CommandArgs, context: org.spongepowered.api.command.args.CommandContext): void; + // @ts-ignore + public getUsage(src: org.spongepowered.api.command.CommandSource): org.spongepowered.api.text.Text; + // @ts-ignore + protected parseValue(source: org.spongepowered.api.command.CommandSource, args: org.spongepowered.api.command.args.CommandArgs): java.lang.Object; + // @ts-ignore + public complete(src: org.spongepowered.api.command.CommandSource, args: org.spongepowered.api.command.args.CommandArgs, context: org.spongepowered.api.command.args.CommandContext): java.util.List; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.GenericArguments.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.GenericArguments.d.ts new file mode 100644 index 00000000..bf96a8f8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.GenericArguments.d.ts @@ -0,0 +1,633 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace args { + // @ts-ignore + class GenericArguments extends java.lang.Object { + /** + * Expects no arguments, returns no values. + */ + // @ts-ignore + public static none(): org.spongepowered.api.command.args.CommandElement; + /** + * Expects no arguments. Adds 'true' to the context when parsed. + *

This will return only one value.

+ */ + // @ts-ignore + public static markTrue(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to represent online players, or if nothing matches + * and the source is a {@link Player}, give the player. If nothing matches + * and the source is not a player, throw an exception. + *

Gives values of type {@link Player}.

+ *

This argument accepts the following inputs:

+ *
    + *
  • A player's name
  • + *
  • A regex that matches the beginning of one or more player's names + *
  • + *
  • A selector
  • + *
+ *

This may return multiple players. If you must only return one, wrap + * this element in an {@link #onlyOne(CommandElement)} call.

+ */ + // @ts-ignore + public static playerOrSource(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to represent online players. Returns values of type + * {@link Player}. + *

This argument accepts the following inputs:

+ *
    + *
  • A player's name
  • + *
  • A regex that matches the beginning of one or more player's names + *
  • + *
  • A selector
  • + *
+ *

This may return multiple players. If you must only return one, wrap + * this element in an {@link #onlyOne(CommandElement)} call.

+ */ + // @ts-ignore + public static player(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to represent players who have been online at some + * point, as a {@link User}. + *

This argument accepts the following inputs:

+ *
    + *
  • A player's name (offline or online)
  • + *
  • A regex that matches the beginning of one or more player's names + *
  • + *
  • A selector
  • + *
+ *

This may return multiple {@link User}s. If you must only return one, + * wrap this element in an {@link #onlyOne(CommandElement)} call.

+ *

This may not return the {@link Player} object for an online user. If + * you wish to operate on an associated {@link Player} object if the user is + * online, use {@link User#getPlayer()}.

+ */ + // @ts-ignore + public static user(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to represent players who have been online at some + * point, as a {@link User}, or if nothing matches and the source is a + * {@link User}, give the user. If nothing matches and the source is not + * a {@link User}, throw an exception. + *

This argument accepts the following inputs:

+ *
    + *
  • A player's name (offline or online)
  • + *
  • A regex that matches the beginning of one or more player's names + *
  • + *
  • A selector
  • + *
+ *

This may return multiple {@link User}s. If you must only return one, + * wrap this element in an {@link #onlyOne(CommandElement)} call.

+ *

This may not return the {@link Player} object for an online user. If + * you wish to operate on an associated {@link Player} object if the user is + * online, use {@link User#getPlayer()}.

+ */ + // @ts-ignore + public static userOrSource(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to represent a world. This returns + * {@link WorldProperties} objects rather than an actual {@link World} in + * order to include unloaded worlds. + *

This argument accepts the following inputs:

+ *
    + *
  • A world's name
  • + *
  • A regex that matches the beginning of one or more world's names + *
  • + *
+ *

This may return multiple {@link WorldProperties}s. If you must only + * return one, wrap this element in an {@link #onlyOne(CommandElement)} + * call.

+ */ + // @ts-ignore + public static world(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to represent a dimension. Returns values of type + * {@link DimensionType}. + *

This argument accepts the following inputs:

+ *
    + *
  • A dimension's id
  • + *
  • A regex that matches the beginning of one or more dimension id + *
  • + *
+ *

This may return multiple {@link DimensionType}s. If you must only + * return one, wrap this element in an {@link #onlyOne(CommandElement)} + * call.

+ */ + // @ts-ignore + public static dimension(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to represent a {@link Vector3d}. + *

This will return one value.

+ */ + // @ts-ignore + public static vector3d(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to represent a {@link Location}. + *

This will return one value.

+ */ + // @ts-ignore + public static location(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument that is a member of the specified {@link CatalogType} + * T. + *

This argument accepts the following inputs:

+ *
    + *
  • The value's {@link CatalogType#getId()}
  • + *
  • A regex that matches the beginning of one or more ids
  • + *
+ *

This may return multiple instances of T. If you must only return one, + * wrap this element in an {@link #onlyOne(CommandElement)} call.

+ */ + // @ts-ignore + public static catalogedElement(key: org.spongepowered.api.text.Text, catalogType: java.lang.Class): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to represent a {@link PluginContainer}'s id. + *

This argument accepts the following inputs:

+ *
    + *
  • The specified {@link PluginContainer}'s id
  • + *
  • A regex that matches the beginning of one or more plugin id
  • + *
+ *

This may return multiple {@link PluginContainer}s. If you must only + * return one, wrap this element in an {@link #onlyOne(CommandElement)} + * call.

+ */ + // @ts-ignore + public static plugin(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Gets a builder to create a command element that parses flags. + *

There should only be ONE of these in a command element sequence if you + * wish to use flags. A {@link CommandFlags.Builder} can handle multiple + * flags that have different behaviors. Using multiple builders in the same + * sequence may cause unexpected behavior.

+ *

Any command elements that are not associated with flags should be + * placed into the {@link CommandFlags.Builder#buildWith(CommandElement)} + * parameter, allowing the flags to be used throughout the argument string. + *

+ */ + // @ts-ignore + public static flags(): org.spongepowered.api.command.args.CommandFlags.Builder; + /** + * Consumes a series of arguments. Usage is the elements concatenated + */ + // @ts-ignore + public static seq(elements: org.spongepowered.api.command.args.CommandElement): org.spongepowered.api.command.args.CommandElement; + /** + * Return an argument that allows selecting from a limited set of values. + *

If there are 5 or fewer choices available, the choices will be shown + * in the command usage. Otherwise, the usage will only display only the + * key.

+ *

Choices are case sensitive. If you do not require + * case sensitivity, see {@link #choicesInsensitive(Text, Map)}.

+ *

To override this behavior, see + * {@link #choices(Text, Map, boolean, boolean)}.

+ *

When parsing, only one choice may be selected, returning its + * associated value.

+ */ + // @ts-ignore + public static choices(key: org.spongepowered.api.text.Text, choices: java.util.Map): org.spongepowered.api.command.args.CommandElement; + /** + * Return an argument that allows selecting from a limited set of values. + *

If there are 5 or fewer choices available, the choices will be shown + * in the command usage. Otherwise, the usage will only display only the + * key.

+ *

Choices are not case sensitive. If you require + * case sensitivity, see {@link #choices(Text, Map)}

+ *

To override this behavior, see + * {@link #choices(Text, Map, boolean, boolean)}.

+ *

When parsing, only one choice may be selected, returning its + * associated value.

+ */ + // @ts-ignore + public static choicesInsensitive(key: org.spongepowered.api.text.Text, choices: java.util.Map): org.spongepowered.api.command.args.CommandElement; + /** + * Return an argument that allows selecting from a limited set of values. + *

Unless {@code choicesInUsage} is true, general command usage will only + * display the provided key.

+ *

Choices are case sensitive. If you do not require + * case sensitivity, see {@link #choices(Text, Map, boolean, boolean)}

+ *

When parsing, only one choice may be selected, returning its + * associated value.

+ */ + // @ts-ignore + public static choices(key: org.spongepowered.api.text.Text, choices: java.util.Map, choicesInUsage: boolean): org.spongepowered.api.command.args.CommandElement; + /** + * Return an argument that allows selecting from a limited set of values. + *

Unless {@code choicesInUsage} is true, general command usage will only + * display the provided key.

+ *

When parsing, only one choice may be selected, returning its + * associated value.

+ */ + // @ts-ignore + public static choices(key: org.spongepowered.api.text.Text, choices: java.util.Map, choicesInUsage: boolean, caseSensitive: boolean): org.spongepowered.api.command.args.CommandElement; + /** + * Return an argument that allows selecting from a limited set of values. + *

If there are 5 or fewer choices available, the choices will be shown + * in the command usage. Otherwise, the usage will only display only the + * key.

+ *

To override this behavior, see {@link #choices(Text, Map, boolean)}. + *

+ *

Only one choice may be selected, returning its associated value.

+ */ + // @ts-ignore + public static choices(key: org.spongepowered.api.text.Text, keys: java.util.function$.Supplier, values: java.util.function$.Function): org.spongepowered.api.command.args.CommandElement; + /** + * Return an argument that allows selecting from a limited set of values. + * Unless {@code choicesInUsage} is true, general command usage will only + * display the provided key. + *

Only one choice may be selected, returning its associated value.

+ */ + // @ts-ignore + public static choices(key: org.spongepowered.api.text.Text, keys: java.util.function$.Supplier, values: java.util.function$.Function, choicesInUsage: boolean): org.spongepowered.api.command.args.CommandElement; + /** + * Returns a command element that matches the first of the provided elements + * that parses tab completion matches from all options. + */ + // @ts-ignore + public static firstParsing(elements: org.spongepowered.api.command.args.CommandElement): org.spongepowered.api.command.args.CommandElement; + /** + * Make the provided command element optional. + *

This means the command element is not required. However, if the + * element is provided with invalid format and there are no more args + * specified, any errors will still be passed on.

+ */ + // @ts-ignore + public static optional(element: org.spongepowered.api.command.args.CommandElement): org.spongepowered.api.command.args.CommandElement; + /** + * Make the provided command element optional. + *

This means the command element is not required. However, if the + * element is provided with invalid format and there are no more args + * specified, any errors will still be passed on. If the given element's key + * and {@code value} are not null and this element is not provided the + * element's key will be set to the given value.

+ */ + // @ts-ignore + public static optional(element: org.spongepowered.api.command.args.CommandElement, value: java.lang.Object): org.spongepowered.api.command.args.CommandElement; + /** + * Make the provided command element optional + * This means the command element is not required. + * If the argument is provided but of invalid format, it will be skipped. + */ + // @ts-ignore + public static optionalWeak(element: org.spongepowered.api.command.args.CommandElement): org.spongepowered.api.command.args.CommandElement; + /** + *

Make the provided command element optional.

+ *

This means the command element is not required.

+ *
    + *
  • If the argument is provided but of invalid format, it will be + * skipped.
  • + *
  • If the given element's key and {@code value} are not null and + * this element is not provided the element's key will be set to the + * given value.
  • + *
+ */ + // @ts-ignore + public static optionalWeak(element: org.spongepowered.api.command.args.CommandElement, value: java.lang.Object): org.spongepowered.api.command.args.CommandElement; + /** + * Require a given command element to be provided a certain number of times. + *

Command values will be stored under their provided keys in the + * CommandContext.

+ */ + // @ts-ignore + public static repeated(element: org.spongepowered.api.command.args.CommandElement, times: number): org.spongepowered.api.command.args.CommandElement; + /** + * Require all remaining args to match as many instances of + * {@link CommandElement} as will fit. Command element values will be stored + * under their provided keys in the CommandContext. + */ + // @ts-ignore + public static allOf(element: org.spongepowered.api.command.args.CommandElement): org.spongepowered.api.command.args.CommandElement; + /** + * Require an argument to be a string. Any provided argument will fit in + * under this argument. + *

Gives values of type {@link String}. This will return only one value. + *

+ */ + // @ts-ignore + public static string(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Require an argument to be an integer (base 10). + *

Gives values of type {@link Integer}. This will return only one value. + *

+ */ + // @ts-ignore + public static integer(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Require an argument to be a long (base 10). + *

Gives values of type {@link Long}. This will return only one value. + *

+ */ + // @ts-ignore + public static longNum(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Require an argument to be an double-precision floating point number. + *

Gives values of type {@link Double}. This will return only one value. + *

+ */ + // @ts-ignore + public static doubleNum(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Require an argument to be a boolean. + *

The recognized true values are:

+ *
    + *
  • true
  • + *
  • t
  • + *
  • yes
  • + *
  • y
  • + *
  • verymuchso
  • + *
+ *

The recognized false values are:

+ *
    + *
  • false
  • + *
  • f
  • + *
  • no
  • + *
  • n
  • + *
  • notatall
  • + *
+ *

Gives values of type {@link Boolean}. This will return only one value. + *

+ */ + // @ts-ignore + public static bool(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Require the argument to be a key under the provided enum. + *

Gives values of type T. This will return only one value.

+ */ + // @ts-ignore + public static enumValue(key: org.spongepowered.api.text.Text, type: java.lang.Class): org.spongepowered.api.command.args.CommandElement; + /** + * Require one or more strings, which are combined into a single, + * space-separated string. + *

Gives values of type {@link String}. This will return only one value. + *

+ */ + // @ts-ignore + public static remainingJoinedStrings(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Require one or more strings, without any processing, which are combined + * into a single, space-separated string. + *

Gives values of type {@link String}. This will return only one value. + *

+ */ + // @ts-ignore + public static remainingRawJoinedStrings(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect a literal sequence of arguments. This element matches the input + * against a predefined array of arguments expected to be present, + * case-insensitively. + *

This will return only one value.

+ */ + // @ts-ignore + public static literal(key: org.spongepowered.api.text.Text, expectedArgs: string): org.spongepowered.api.command.args.CommandElement; + /** + * Expect a literal sequence of arguments. This element matches the input + * against a predefined array of arguments expected to be present, + * case-insensitively. + *

This will return only one value.

+ */ + // @ts-ignore + public static literal(key: org.spongepowered.api.text.Text, putValue: java.lang.Object, expectedArgs: string): org.spongepowered.api.command.args.CommandElement; + /** + * Restricts the given command element to only insert one value into the + * context at the provided key. + *

If more than one value is returned by an element, or the target key + * already contains a value, this will throw an + * {@link ArgumentParseException}

+ */ + // @ts-ignore + public static onlyOne(element: org.spongepowered.api.command.args.CommandElement): org.spongepowered.api.command.args.CommandElement; + /** + * Checks a permission for a given command argument to be used. + *

If the element attempts to parse an argument and the user does not + * have the permission, a {@link ArgumentParseException} will be thrown.

+ */ + // @ts-ignore + public static requiringPermission(element: org.spongepowered.api.command.args.CommandElement, permission: string): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to represent an {@link Entity}. + *

This argument accepts the following inputs:

+ *
    + *
  • A player's name
  • + *
  • An entity's {@link UUID}
  • + *
  • A regex that matches the beginning of one or more player's names + * or entities UUIDs. + *
  • + *
  • A selector
  • + *
+ */ + // @ts-ignore + public static entity(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to represent an {@link Entity} of the specified type. + *

This argument accepts the following inputs:

+ *
    + *
  • A player's name (if appropriate)
  • + *
  • An entity's {@link UUID}
  • + *
  • A regex that matches the beginning of one or more player's names + * or entities UUIDs. + *
  • + *
  • A selector
  • + *
+ */ + // @ts-ignore + public static entity(key: org.spongepowered.api.text.Text, clazz: java.lang.Class): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to represent an {@link Entity} of the specified + * {@link EntityType}. + *

This argument accepts the following inputs:

+ *
    + *
  • A player's name (if appropriate)
  • + *
  • An entity's {@link UUID}
  • + *
  • A regex that matches the beginning of one or more player's names + * or entities UUIDs. + *
  • + *
  • A selector
  • + *
+ */ + // @ts-ignore + public static entity(key: org.spongepowered.api.text.Text, type: org.spongepowered.api.entity.EntityType): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to represent an {@link Entity}, or if the argument is + * not present and the {@link CommandSource} is an entity, return the + * source. + *

This argument accepts the following inputs:

+ *
    + *
  • A player's name
  • + *
  • An entity's {@link UUID}
  • + *
  • A regex that matches the beginning of one or more player's names + * or entities UUIDs. + *
  • + *
  • A selector
  • + *
+ */ + // @ts-ignore + public static entityOrSource(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to represent an {@link Entity}, or if the argument is + * not present and the {@link CommandSource} is looking at an entity, + * return that entity. + *

This argument accepts the following inputs:

+ *
    + *
  • A player's name
  • + *
  • An entity's {@link UUID}
  • + *
  • A regex that matches the beginning of one or more player's names + * or entities UUIDs. + *
  • + *
  • A selector
  • + *
+ */ + // @ts-ignore + public static entityOrTarget(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to represent an {@link Entity} of the specified type, + * or if the argument is not present and the {@link CommandSource} is + * looking at an applicable entity, return that entity. + *

This argument accepts the following inputs:

+ *
    + *
  • A player's name (if appropriate)
  • + *
  • An entity's {@link UUID}
  • + *
  • A regex that matches the beginning of one or more player's names + * or entities UUIDs. + *
  • + *
  • A selector
  • + *
+ */ + // @ts-ignore + public static entityOrTarget(key: org.spongepowered.api.text.Text, clazz: java.lang.Class): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to represent an {@link Entity} of the specified + * {@link EntityType}, or if the argument is not present and the + * {@link CommandSource} is looking at an applicable entity, return that + * entity. + *

This argument accepts the following inputs:

+ *
    + *
  • A player's name (if appropriate)
  • + *
  • An entity's {@link UUID}
  • + *
  • A regex that matches the beginning of one or more player's names + * or entities UUIDs. + *
  • + *
  • A selector
  • + *
+ */ + // @ts-ignore + public static entityOrTarget(key: org.spongepowered.api.text.Text, type: org.spongepowered.api.entity.EntityType): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to represent a {@link URL}. + *

This will return only one value.

+ */ + // @ts-ignore + public static url(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to return an IP address, in the form of an + * {@link InetAddress}. + *

This will return only one value.

+ */ + // @ts-ignore + public static ip(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to return an IP address, in the form of an + * {@link InetAddress}, or if nothing matches and the source is a + * {@link RemoteSource}, return the source's address. + *

This will return only one value.

+ */ + // @ts-ignore + public static ipOrSource(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to return a {@link BigDecimal}. + */ + // @ts-ignore + public static bigDecimal(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to return a {@link BigInteger}. + *

This will return only one value.

+ */ + // @ts-ignore + public static bigInteger(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to be a valid {@link DataContainer}. + *

This will return only one value.

+ */ + // @ts-ignore + public static dataContainer(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to be a {@link UUID}. + *

This will return only one value.

+ */ + // @ts-ignore + public static uuid(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to be valid {@link Text}. + *

This will return only one value.

+ */ + // @ts-ignore + public static text(key: org.spongepowered.api.text.Text, serializer: org.spongepowered.api.text.serializer.TextSerializer, allRemaining: boolean): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to be a date-time, in the form of a + * {@link LocalDateTime}. If no date is specified, {@link LocalDate#now()} + * is used; if no time is specified, {@link LocalTime#MIDNIGHT} is used. + *

Date-times are expected in the ISO-8601 format.

+ *

This will return only one value.

+ */ + // @ts-ignore + public static dateTime(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to be a date-time, in the form of a + * {@link LocalDateTime}. If no date is specified, {@link LocalDate#now()} + * is used; if no time is specified, {@link LocalTime#MIDNIGHT} is used. + *

If no argument at all is specified, defaults to + * {@link LocalDateTime#now()}.

+ *

Date-times are expected in the ISO-8601 format.

+ *

This will return only one value.

+ */ + // @ts-ignore + public static dateTimeOrNow(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Expect an argument to be a {@link Duration}. + *

Durations are expected in the following format: {@code #D#H#M#S}. + * This is not case sensitive.

+ *

This will return only one value.

+ */ + // @ts-ignore + public static duration(key: org.spongepowered.api.text.Text): org.spongepowered.api.command.args.CommandElement; + /** + * Uses a custom set of suggestions for an argument. The provided + * suggestions will replace the regular ones. + */ + // @ts-ignore + public static withSuggestions(argument: org.spongepowered.api.command.args.CommandElement, suggestions: java.lang.Iterable): org.spongepowered.api.command.args.CommandElement; + /** + * Uses a custom set of suggestions for an argument. The provided + * suggestions will replace the regular ones. + *

If {@code requireBegin} is false, then the already typed argument + * will not be used to filter the provided suggestions.

+ */ + // @ts-ignore + public static withSuggestions(argument: org.spongepowered.api.command.args.CommandElement, suggestions: java.lang.Iterable, requireBegin: boolean): org.spongepowered.api.command.args.CommandElement; + /** + * Uses a custom set of suggestions for an argument. The provided + * suggestions will replace the regular ones. + */ + // @ts-ignore + public static withSuggestions(argument: org.spongepowered.api.command.args.CommandElement, suggestions: java.util.function$.Function): org.spongepowered.api.command.args.CommandElement; + /** + * Uses a custom set of suggestions for an argument. The provided + * suggestions will replace the regular ones. + *

If {@code requireBegin} is false, then the already typed argument + * will not be used to filter the provided suggestions.

+ */ + // @ts-ignore + public static withSuggestions(argument: org.spongepowered.api.command.args.CommandElement, suggestions: java.util.function$.Function, requireBegin: boolean): org.spongepowered.api.command.args.CommandElement; + /** + * Filters an argument's suggestions. A suggestion will only be used if it + * matches the predicate. + */ + // @ts-ignore + public static withConstrainedSuggestions(argument: org.spongepowered.api.command.args.CommandElement, predicate: java.util.function$.Predicate): org.spongepowered.api.command.args.CommandElement; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.PatternMatchingCommandElement.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.PatternMatchingCommandElement.d.ts new file mode 100644 index 00000000..06829941 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.PatternMatchingCommandElement.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace args { + // @ts-ignore + abstract class PatternMatchingCommandElement extends org.spongepowered.api.command.args.CommandElement { + // @ts-ignore + constructor(key: org.spongepowered.api.text.Text) + // @ts-ignore + protected parseValue(source: org.spongepowered.api.command.CommandSource, args: org.spongepowered.api.command.args.CommandArgs): java.lang.Object; + // @ts-ignore + public complete(src: org.spongepowered.api.command.CommandSource, args: org.spongepowered.api.command.args.CommandArgs, context: org.spongepowered.api.command.args.CommandContext): java.util.List; + /** + * Tests a string against a set of valid choices to see if it is a + * case-insensitive match. + */ + // @ts-ignore + protected getExactMatch(choices: java.lang.Iterable, potentialChoice: string): java.util.Optional; + /** + * Gets the available choices for this command source. + */ + // @ts-ignore + protected abstract getChoices(source: org.spongepowered.api.command.CommandSource): java.lang.Iterable; + /** + * Gets the value for a given choice. For any result in + * {@link #getChoices(CommandSource)}, this must return a non-null value. + * Otherwise, an {@link IllegalArgumentException} may be throw. + */ + // @ts-ignore + protected abstract getValue(choice: string): java.lang.Object; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.SelectorCommandElement.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.SelectorCommandElement.d.ts new file mode 100644 index 00000000..ccbe8174 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.SelectorCommandElement.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace args { + // @ts-ignore + abstract class SelectorCommandElement extends org.spongepowered.api.command.args.PatternMatchingCommandElement { + // @ts-ignore + constructor(key: org.spongepowered.api.text.Text) + // @ts-ignore + protected parseValue(source: org.spongepowered.api.command.CommandSource, args: org.spongepowered.api.command.args.CommandArgs): java.lang.Object; + // @ts-ignore + public complete(src: org.spongepowered.api.command.CommandSource, args: org.spongepowered.api.command.args.CommandArgs, context: org.spongepowered.api.command.args.CommandContext): java.util.List; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.parsing.InputTokenizer.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.parsing.InputTokenizer.d.ts new file mode 100644 index 00000000..bb0f162c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.parsing.InputTokenizer.d.ts @@ -0,0 +1,45 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace args { + namespace parsing { + // @ts-ignore + interface InputTokenizer { + /** + * Use an input string tokenizer that supports quoted arguments and + * character escapes. + *

Forcing lenient to true makes the following apply:

+ *
    + *
  • Unclosed quotations are treated as a single string from the + * opening quotation to the end of the arguments rather than throwing + * an exception
  • + *
+ */ + // @ts-ignore + quotedStrings(forceLenient: boolean): org.spongepowered.api.command.args.parsing.InputTokenizer; + /** + * Returns an input tokenizer that takes input strings and splits them by + * space. + */ + // @ts-ignore + spaceSplitString(): org.spongepowered.api.command.args.parsing.InputTokenizer; + /** + * Returns an input tokenizer that returns the input string as a single + * argument. + */ + // @ts-ignore + rawInput(): org.spongepowered.api.command.args.parsing.InputTokenizer; + /** + * Take the input string and split it as appropriate into argument tokens. + */ + // @ts-ignore + tokenize(arguments: string, lenient: boolean): java.util.List; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.parsing.SingleArg.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.parsing.SingleArg.d.ts new file mode 100644 index 00000000..f3da3ad5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.args.parsing.SingleArg.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace args { + namespace parsing { + // @ts-ignore + class SingleArg extends java.lang.Object { + /** + * Create a new argument. + */ + // @ts-ignore + constructor(value: string, startIdx: number, endIdx: number) + /** + * Gets the string used. + */ + // @ts-ignore + public getValue(): string; + /** + * Gets the starting index. + */ + // @ts-ignore + public getStartIdx(): number; + /** + * Gets the ending index. + */ + // @ts-ignore + public getEndIdx(): number; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.dispatcher.Disambiguator.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.dispatcher.Disambiguator.d.ts new file mode 100644 index 00000000..0ff70b62 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.dispatcher.Disambiguator.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace dispatcher { + // @ts-ignore + interface Disambiguator { + /** + * Disambiguate an alias in cases where there are multiple command mappings + * registered for a given alias. + */ + // @ts-ignore + disambiguate(source: org.spongepowered.api.command.CommandSource, aliasUsed: string, availableOptions: java.util.List): java.util.Optional; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.dispatcher.Dispatcher.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.dispatcher.Dispatcher.d.ts new file mode 100644 index 00000000..6ff07966 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.dispatcher.Dispatcher.d.ts @@ -0,0 +1,69 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace dispatcher { + // @ts-ignore + interface Dispatcher extends org.spongepowered.api.command.CommandCallable { + /** + * Gets a list of commands. Each command, regardless of how many aliases it + * may have, will only appear once in the returned set. + *

The returned collection cannot be modified.

+ */ + // @ts-ignore + getCommands(): java.util.Set; + /** + * Gets a list of primary aliases. + *

The returned collection cannot be modified.

+ */ + // @ts-ignore + getPrimaryAliases(): java.util.Set; + /** + * Gets a list of all the command aliases, which includes the primary alias. + *

A command may have more than one alias assigned to it. The returned + * collection cannot be modified.

+ */ + // @ts-ignore + getAliases(): java.util.Set; + /** + * Gets the {@link CommandMapping} associated with an alias. Returns null if + * no command is named by the given alias. + */ + // @ts-ignore + get(alias: string): java.util.Optional; + /** + * Gets the {@link CommandMapping} associated with an alias in the context + * of a given {@link CommandSource}. Returns null if no command is named by + * the given alias. + */ + // @ts-ignore + get(alias: string, source: org.spongepowered.api.command.CommandSource): java.util.Optional; + /** + * Gets all the {@link CommandMapping}s associated with an alias. + */ + // @ts-ignore + getAll(alias: string): java.util.Set; + /** + * Gets all commands currently registered with this dispatcher. The returned + * value is immutable. + */ + // @ts-ignore + getAll(): any; + /** + * Returns whether the dispatcher contains a registered command for the + * given alias. + */ + // @ts-ignore + containsAlias(alias: string): boolean; + /** + * Returns whether the dispatcher contains the given mapping. + */ + // @ts-ignore + containsMapping(mapping: org.spongepowered.api.command.CommandMapping): boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.dispatcher.SimpleDispatcher.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.dispatcher.SimpleDispatcher.d.ts new file mode 100644 index 00000000..3596989f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.dispatcher.SimpleDispatcher.d.ts @@ -0,0 +1,117 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace dispatcher { + // @ts-ignore + class SimpleDispatcher extends java.lang.Object implements org.spongepowered.api.command.dispatcher.Dispatcher { + /** + * Creates a basic new dispatcher. + */ + // @ts-ignore + constructor() + /** + * Creates a new dispatcher with a specific disambiguator. + */ + // @ts-ignore + constructor(disambiguatorFunc: org.spongepowered.api.command.dispatcher.Disambiguator) + // @ts-ignore + public static FIRST_DISAMBIGUATOR: org.spongepowered.api.command.dispatcher.Disambiguator; + /** + * Register a given command using the given list of aliases. + *

If there is a conflict with one of the aliases (i.e. that alias + * is already assigned to another command), then the alias will be skipped. + * It is possible for there to be no alias to be available out of + * the provided list of aliases, which would mean that the command would not + * be assigned to any aliases.

+ *

The first non-conflicted alias becomes the "primary alias."

+ */ + // @ts-ignore + public register(callable: org.spongepowered.api.command.CommandCallable, alias: string): java.util.Optional; + /** + * Register a given command using the given list of aliases. + *

If there is a conflict with one of the aliases (i.e. that alias + * is already assigned to another command), then the alias will be skipped. + * It is possible for there to be no alias to be available out of + * the provided list of aliases, which would mean that the command would not + * be assigned to any aliases.

+ *

The first non-conflicted alias becomes the "primary alias."

+ */ + // @ts-ignore + public register(callable: org.spongepowered.api.command.CommandCallable, aliases: java.util.List): java.util.Optional; + /** + * Register a given command using a given list of aliases. + *

The provided callback function will be called with a list of aliases + * that are not taken (from the list of aliases that were requested) and + * it should return a list of aliases to actually register. Aliases may be + * removed, and if no aliases remain, then the command will not be + * registered. It may be possible that no aliases are available, and thus + * the callback would receive an empty list. New aliases should not be added + * to the list in the callback as this may cause + * {@link IllegalArgumentException} to be thrown.

+ *

The first non-conflicted alias becomes the "primary alias."

+ */ + // @ts-ignore + public register(callable: org.spongepowered.api.command.CommandCallable, aliases: java.util.List, callback: java.util.function$.Function): java.util.Optional; + /** + * Remove a mapping identified by the given alias. + */ + // @ts-ignore + public remove(alias: string): java.util.Collection; + /** + * Remove all mappings identified by the given aliases. + */ + // @ts-ignore + public removeAll(aliases: java.util.Collection): boolean; + /** + * Remove a command identified by the given mapping. + */ + // @ts-ignore + public removeMapping(mapping: org.spongepowered.api.command.CommandMapping): java.util.Optional; + /** + * Remove all mappings contained with the given collection. + */ + // @ts-ignore + public removeMappings(mappings: java.util.Collection): boolean; + // @ts-ignore + public getCommands(): java.util.Set; + // @ts-ignore + public getPrimaryAliases(): java.util.Set; + // @ts-ignore + public getAliases(): java.util.Set; + // @ts-ignore + public get(alias: string): java.util.Optional; + // @ts-ignore + public get(alias: string, source: org.spongepowered.api.command.CommandSource): java.util.Optional; + // @ts-ignore + public containsAlias(alias: string): boolean; + // @ts-ignore + public containsMapping(mapping: org.spongepowered.api.command.CommandMapping): boolean; + // @ts-ignore + public process(source: org.spongepowered.api.command.CommandSource, commandLine: string): org.spongepowered.api.command.CommandResult; + // @ts-ignore + public getSuggestions(src: org.spongepowered.api.command.CommandSource, arguments: string, targetPosition: org.spongepowered.api.world.Location): java.util.List; + // @ts-ignore + public testPermission(source: org.spongepowered.api.command.CommandSource): boolean; + // @ts-ignore + public getShortDescription(source: org.spongepowered.api.command.CommandSource): java.util.Optional; + // @ts-ignore + public getHelp(source: org.spongepowered.api.command.CommandSource): java.util.Optional; + /** + * Gets the number of registered aliases. + */ + // @ts-ignore + public size(): number; + // @ts-ignore + public getUsage(source: org.spongepowered.api.command.CommandSource): org.spongepowered.api.text.Text; + // @ts-ignore + public getAll(alias: string): java.util.Set; + // @ts-ignore + public getAll(): any; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.source.CommandBlockSource.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.source.CommandBlockSource.d.ts new file mode 100644 index 00000000..50f7dd5f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.source.CommandBlockSource.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace source { + // @ts-ignore + interface CommandBlockSource extends org.spongepowered.api.world.Locatable, org.spongepowered.api.command.CommandSource, org.spongepowered.api.data.DataHolder { + /** + * Gets the {@link CommandData} for this source. + */ + // @ts-ignore + getCommandData(): org.spongepowered.api.data.manipulator.mutable.CommandData; + /** + * Gets the currently stored command. + */ + // @ts-ignore + storedCommand(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the success count of the last executed command. + *

The success count is the number of times the most recently used + * command of this command block succeeded. Most commands can only succeed + * once per execution, but certain commands (such as those which accept + * players as arguments) can succeed multiple times, and this value will be + * set accordingly. This success count can also be polled via a redstone + * comparator.

+ */ + // @ts-ignore + successCount(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets whether this command block will keep track of the output from the + * last command it executed. + */ + // @ts-ignore + doesTrackOutput(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the last command output. + *

This will only be available if {@link #doesTrackOutput()} is set to + * true, otherwise {@link Optional#empty()} will be returned.

+ */ + // @ts-ignore + lastOutput(): org.spongepowered.api.data.value.mutable.OptionalValue; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.source.ConsoleSource.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.source.ConsoleSource.d.ts new file mode 100644 index 00000000..fe20466b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.source.ConsoleSource.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace source { + // @ts-ignore + interface ConsoleSource extends org.spongepowered.api.command.CommandSource { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.source.ProxySource.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.source.ProxySource.d.ts new file mode 100644 index 00000000..cb640fdc --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.source.ProxySource.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace source { + // @ts-ignore + interface ProxySource extends org.spongepowered.api.command.CommandSource { + /** + * Gets the {@link CommandSource} this source is created by. + */ + // @ts-ignore + getOriginalSource(): org.spongepowered.api.command.CommandSource; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.source.RconSource.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.source.RconSource.d.ts new file mode 100644 index 00000000..9b806eed --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.source.RconSource.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace source { + // @ts-ignore + interface RconSource extends org.spongepowered.api.command.source.RemoteSource { + /** + * Gets whether this client is logged in, or authenticated. + */ + // @ts-ignore + getLoggedIn(): boolean; + /** + * Sets whether this client is logged in, or authenticated. + */ + // @ts-ignore + setLoggedIn(loggedIn: boolean): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.source.RemoteSource.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.source.RemoteSource.d.ts new file mode 100644 index 00000000..41d74831 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.source.RemoteSource.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace source { + // @ts-ignore + interface RemoteSource extends org.spongepowered.api.command.CommandSource { + /** + * Gets connection information for this source. + */ + // @ts-ignore + getConnection(): org.spongepowered.api.network.RemoteConnection; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.source.SignSource.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.source.SignSource.d.ts new file mode 100644 index 00000000..9f628f37 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.source.SignSource.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace source { + // @ts-ignore + interface SignSource extends org.spongepowered.api.command.source.ProxySource, org.spongepowered.api.world.Locatable { + /** + * Gets the sign {@link TileEntity} that this source has been created for. + */ + // @ts-ignore + getSign(): org.spongepowered.api.block.tileentity.Sign; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.spec.CommandExecutor.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.spec.CommandExecutor.d.ts new file mode 100644 index 00000000..b7fe6f37 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.spec.CommandExecutor.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace spec { + // @ts-ignore + interface CommandExecutor { + /** + * Callback for the execution of a command. + */ + // @ts-ignore + execute(src: org.spongepowered.api.command.CommandSource, args: org.spongepowered.api.command.args.CommandContext): org.spongepowered.api.command.CommandResult; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.spec.CommandSpec.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.spec.CommandSpec.Builder.d.ts new file mode 100644 index 00000000..8fc35488 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.spec.CommandSpec.Builder.d.ts @@ -0,0 +1,96 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace spec { + namespace CommandSpec { + // @ts-ignore + class Builder extends java.lang.Object { + /** + * Sets the permission that will be checked before using this command. + */ + // @ts-ignore + public permission(permission: string): org.spongepowered.api.command.spec.CommandSpec.Builder; + /** + * Sets the callback that will handle this command's execution. + */ + // @ts-ignore + public executor(executor: org.spongepowered.api.command.spec.CommandExecutor): org.spongepowered.api.command.spec.CommandSpec.Builder; + /** + * Adds more child arguments for this command. + * If an executor or arguments are set, they are used as fallbacks. + */ + // @ts-ignore + public children(children: java.util.Map): org.spongepowered.api.command.spec.CommandSpec.Builder; + /** + * Add a single child command to this command. + */ + // @ts-ignore + public child(child: org.spongepowered.api.command.CommandCallable, aliases: string): org.spongepowered.api.command.spec.CommandSpec.Builder; + /** + * Add a single child command to this command. + */ + // @ts-ignore + public child(child: org.spongepowered.api.command.CommandCallable, aliases: java.util.Collection): org.spongepowered.api.command.spec.CommandSpec.Builder; + /** + * A short, one-line description of this command's purpose. + */ + // @ts-ignore + public description(description: org.spongepowered.api.text.Text): org.spongepowered.api.command.spec.CommandSpec.Builder; + /** + * Sets an extended description to use in longer help listings for this + * command. Will be appended to the short description and the command's + * usage. + */ + // @ts-ignore + public extendedDescription(extendedDescription: org.spongepowered.api.text.Text): org.spongepowered.api.command.spec.CommandSpec.Builder; + /** + * If a child command is selected but fails to parse arguments passed to + * it, the following determines the behavior. + *
    + *
  • If this is set to false, this command (the + * parent) will not attempt to parse the command, and will send back + * the error from the child.
  • + *
  • If this is set to true, the error from the + * child will simply be discarded, and the parent command will + * execute.
  • + *
+ *

The default for this is true, which emulates the + * behavior from previous API revisions.

+ */ + // @ts-ignore + public childArgumentParseExceptionFallback(childCommandFallback: boolean): org.spongepowered.api.command.spec.CommandSpec.Builder; + /** + * Sets the argument specification for this command. Generally, for a + * multi-argument command the {@link GenericArguments#seq(CommandElement...)} + * method is used to parse a sequence of args. + */ + // @ts-ignore + public arguments(args: org.spongepowered.api.command.args.CommandElement): org.spongepowered.api.command.spec.CommandSpec.Builder; + /** + * Sets the argument specification for this command. This method accepts + * a sequence of arguments. This is equivalent to calling {@code + * arguments(seq(args))}. + */ + // @ts-ignore + public arguments(args: org.spongepowered.api.command.args.CommandElement): org.spongepowered.api.command.spec.CommandSpec.Builder; + /** + * Sets the input tokenizer to be used to convert input from a string + * into a list of argument tokens. + */ + // @ts-ignore + public inputTokenizer(parser: org.spongepowered.api.command.args.parsing.InputTokenizer): org.spongepowered.api.command.spec.CommandSpec.Builder; + /** + * Create a new {@link CommandSpec} based on the data provided in this + * builder. + */ + // @ts-ignore + public build(): org.spongepowered.api.command.spec.CommandSpec; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.command.spec.CommandSpec.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.command.spec.CommandSpec.d.ts new file mode 100644 index 00000000..5f4c836d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.command.spec.CommandSpec.d.ts @@ -0,0 +1,85 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace command { + namespace spec { + // @ts-ignore + class CommandSpec extends java.lang.Object implements org.spongepowered.api.command.CommandCallable { + /** + * Return a new builder for a CommandSpec. + */ + // @ts-ignore + public static builder(): org.spongepowered.api.command.spec.CommandSpec.Builder; + /** + * Check the relevant permission for this command with the provided source, + * throwing an exception if the source does not have permission to use + * the command. + */ + // @ts-ignore + public checkPermission(source: org.spongepowered.api.command.CommandSource): void; + /** + * Process this command with existing arguments and context objects. + */ + // @ts-ignore + public populateContext(source: org.spongepowered.api.command.CommandSource, args: org.spongepowered.api.command.args.CommandArgs, context: org.spongepowered.api.command.args.CommandContext): void; + /** + * Return tab completion results using the existing parsed arguments and + * context. Primarily useful when including a subcommand in an existing + * specification. + */ + // @ts-ignore + public complete(source: org.spongepowered.api.command.CommandSource, args: org.spongepowered.api.command.args.CommandArgs, context: org.spongepowered.api.command.args.CommandContext): java.util.List; + /** + * Gets the active executor for this command. Generally not a good idea to + * call this directly, unless you are handling arg parsing specially + */ + // @ts-ignore + public getExecutor(): org.spongepowered.api.command.spec.CommandExecutor; + /** + * Gets the active input tokenizer used for this command. + */ + // @ts-ignore + public getInputTokenizer(): org.spongepowered.api.command.args.parsing.InputTokenizer; + // @ts-ignore + public process(source: org.spongepowered.api.command.CommandSource, arguments: string): org.spongepowered.api.command.CommandResult; + // @ts-ignore + public getSuggestions(source: org.spongepowered.api.command.CommandSource, arguments: string, targetPos: org.spongepowered.api.world.Location): java.util.List; + // @ts-ignore + public testPermission(source: org.spongepowered.api.command.CommandSource): boolean; + /** + * Gets a short, one-line description used with this command if any is + * present. + */ + // @ts-ignore + public getShortDescription(source: org.spongepowered.api.command.CommandSource): java.util.Optional; + /** + * Gets the extended description used with this command if any is present. + */ + // @ts-ignore + public getExtendedDescription(source: org.spongepowered.api.command.CommandSource): java.util.Optional; + /** + * Gets the usage for this command appropriate for the provided command + * source. + */ + // @ts-ignore + public getUsage(source: org.spongepowered.api.command.CommandSource): org.spongepowered.api.text.Text; + /** + * Return a longer description for this command. This description is + * composed of at least all present of the short description, the usage + * statement, and the extended description + */ + // @ts-ignore + public getHelp(source: org.spongepowered.api.command.CommandSource): java.util.Optional; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.config.ConfigDir.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.config.ConfigDir.d.ts new file mode 100644 index 00000000..30d82648 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.config.ConfigDir.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace config { + // @ts-ignore + interface ConfigDir { + /** + * Whether the the shared root for configuration should be used, or instead, + * the plugin-specific configuration directory. + */ + // @ts-ignore + sharedRoot(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.config.ConfigManager.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.config.ConfigManager.d.ts new file mode 100644 index 00000000..c15906b6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.config.ConfigManager.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace config { + // @ts-ignore + interface ConfigManager { + /** + * Gets the configuration root for a plugin that utilizes the shared + * configuration folder. + *

The shared configuration folder may refer to + * "config/" but this may vary between implementations and + * configurations.

+ *

The plugin parameter is used to determine the filename for + * {@link ConfigRoot#getConfigPath()}.

+ */ + // @ts-ignore + getSharedConfig(instance: java.lang.Object): org.spongepowered.api.config.ConfigRoot; + /** + * Gets the configuration root for a plugin that utilizes a configuration + * folder specific to the plugin, which may also be a + * su-directory of the shared configuration folder. + *

The provided plugin is used to determine the folder name.

+ */ + // @ts-ignore + getPluginConfig(instance: java.lang.Object): org.spongepowered.api.config.ConfigRoot; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.config.ConfigRoot.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.config.ConfigRoot.d.ts new file mode 100644 index 00000000..be0ce520 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.config.ConfigRoot.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace config { + // @ts-ignore + interface ConfigRoot { + /** + * Gets the pathname to the default configuration file for the plugin. + *

If the configuration root is shared, then the returned pathname will + * refer to the path {@code $config/$plugin_id.conf} (where "$config" is the + * shared configuration directory). Otherwise, the returned pathname will + * refer to a file named "config.conf" stored in a directory specific to + * the plugin.

+ *

The returned pathname may refer to a file that does not yet exist. + * It is up to the caller of this method to create the file if desired.

+ */ + // @ts-ignore + getConfigPath(): java.nio.file.Path; + /** + * Gets the configuration file that utilizes the default configuration + * pathname. + */ + // @ts-ignore + getConfig(): any; + /** + * Gets the directory that this configuration root refers to. + *

The returned pathname may not refer to a directory that exists + * yet.

+ */ + // @ts-ignore + getDirectory(): java.nio.file.Path; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.config.DefaultConfig.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.config.DefaultConfig.d.ts new file mode 100644 index 00000000..48a04890 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.config.DefaultConfig.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace config { + // @ts-ignore + interface DefaultConfig { + /** + * Whether the the shared root for configuration should be used. + */ + // @ts-ignore + sharedRoot(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.Archetype.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.Archetype.d.ts new file mode 100644 index 00000000..813954a8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.Archetype.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + interface Archetype extends org.spongepowered.api.data.DataHolder { + /** + * Creates a new instance based on this archetype at the given location. + */ + // @ts-ignore + apply(location: org.spongepowered.api.world.Location): java.util.Optional; + /** + * Creates a new immutable snapshot based on this archetype. + */ + // @ts-ignore + toSnapshot(location: org.spongepowered.api.world.Location): org.spongepowered.api.data.LocatableSnapshot; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataAlreadyRegisteredException.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataAlreadyRegisteredException.d.ts new file mode 100644 index 00000000..d488b5eb --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataAlreadyRegisteredException.d.ts @@ -0,0 +1,49 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + class DataAlreadyRegisteredException extends org.spongepowered.api.data.DataException { + /** + * Constructs a new data already registered exception. + */ + // @ts-ignore + constructor(manipulatorClass: java.lang.Class, immutableManipulatorClass: java.lang.Class, builder: org.spongepowered.api.data.manipulator.DataManipulatorBuilder) + /** + * Constructs a new data already registered exception with a message. + */ + // @ts-ignore + constructor(message: string, manipulatorClass: java.lang.Class, immutableManipulatorClass: java.lang.Class, builder: org.spongepowered.api.data.manipulator.DataManipulatorBuilder) + /** + * Constructs a new data already registered exception with a message and + * a throwable cause. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable, manipulatorClass: java.lang.Class, immutableManipulatorClass: java.lang.Class, builder: org.spongepowered.api.data.manipulator.DataManipulatorBuilder) + /** + * Constructs a new data already registered exception with + * a throwable cause. + */ + // @ts-ignore + constructor(cause: java.lang.Throwable, manipulatorClass: java.lang.Class, immutableManipulatorClass: java.lang.Class, builder: org.spongepowered.api.data.manipulator.DataManipulatorBuilder) + /** + * Gets the related data manipulator class. + */ + // @ts-ignore + public getManipulatorClass(): java.lang.Class; + /** + * Gets the related immutable data manipulator class. + */ + // @ts-ignore + public getImmutableManipulatorClass(): java.lang.Class; + /** + * Gets the related data manipulator builder. + */ + // @ts-ignore + public getBuilder(): org.spongepowered.api.data.manipulator.DataManipulatorBuilder; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataContainer.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataContainer.d.ts new file mode 100644 index 00000000..8f9ae933 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataContainer.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + interface DataContainer extends org.spongepowered.api.data.DataView { + /** + * Creates a new {@link DataContainer} with a default + * {@link org.spongepowered.api.data.DataView.SafetyMode} of + * {@link org.spongepowered.api.data.DataView.SafetyMode#ALL_DATA_CLONED}. + */ + // @ts-ignore + createNew(): org.spongepowered.api.data.DataContainer; + /** + * Creates a new {@link DataContainer} with the provided + * {@link org.spongepowered.api.data.DataView.SafetyMode}. + */ + // @ts-ignore + createNew(safety: org.spongepowered.api.data.DataView.SafetyMode): org.spongepowered.api.data.DataContainer; + // @ts-ignore + set(path: org.spongepowered.api.data.DataQuery, value: java.lang.Object): org.spongepowered.api.data.DataContainer; + // @ts-ignore + set(key: org.spongepowered.api.data.key.Key, value: java.lang.Object): org.spongepowered.api.data.DataContainer; + // @ts-ignore + remove(path: org.spongepowered.api.data.DataQuery): org.spongepowered.api.data.DataContainer; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataException.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataException.d.ts new file mode 100644 index 00000000..538cdce2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataException.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + class DataException extends java.lang.RuntimeException { + /** + * Constructs a new data exception. + */ + // @ts-ignore + constructor() + /** + * Constructs a new data exception with a message. + */ + // @ts-ignore + constructor(message: string) + /** + * Constructs a new data exception with a message and throwable cause. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Constructs a new data exception with a throwable cause. + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataHolder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataHolder.d.ts new file mode 100644 index 00000000..991ae1ba --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataHolder.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + interface DataHolder extends org.spongepowered.api.data.DataSerializable, org.spongepowered.api.data.property.PropertyHolder, org.spongepowered.api.data.value.mutable.CompositeValueStore { + /** + * Validates the container with known data required to set the raw data to + * this {@link DataHolder}. If the container is incomplete or contains + * invalid data, false is returned. + *

This validation should be checked prior to calling + * {@link #setRawData(DataView)} to avoid exceptions.

+ */ + // @ts-ignore + validateRawData(container: org.spongepowered.api.data.DataView): boolean; + /** + * Attempts to set all data of this {@link DataHolder} according to the + * {@link DataContainer}'s held information. Using this to modify known + * {@link DataManipulator} is unsupported and if the data is invalid, an + * {@link InvalidDataException} is thrown. + *

This setter is used to provide setting custom data that is not + * represented by the Data API, including forge mods and other + * unknown data. Attempts at validating known {@link DataManipulator}s + * contained in the data container are made with the assumption that all + * necessary data exists.

+ */ + // @ts-ignore + setRawData(container: org.spongepowered.api.data.DataView): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataManager.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataManager.d.ts new file mode 100644 index 00000000..ccd98e3f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataManager.d.ts @@ -0,0 +1,123 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + interface DataManager { + /** + * Registers a {@link DataBuilder} that will dynamically build + * the given {@link DataSerializable} from a {@link DataContainer}. + *

Builders may not always exist for a given {@link DataSerializable}, + * nor is it guaranteed that a provided builder will function with all + * {@link DataContainer}s. + *

+ */ + // @ts-ignore + registerBuilder(clazz: java.lang.Class, builder: org.spongepowered.api.data.persistence.DataBuilder): void; + /** + * Registers a {@link DataContentUpdater} for the desired + * {@link DataSerializable} such that any versioned data may be updated to + * newer versions for the most up to date {@link DataBuilder}. + */ + // @ts-ignore + registerContentUpdater(clazz: java.lang.Class, updater: org.spongepowered.api.data.persistence.DataContentUpdater): void; + /** + * Gets a wrapped fake {@link DataContentUpdater} that may wrap several + * {@link DataContentUpdater}s to translate versioned data from the desired + * {@code fromVersion} to the {@code toVersion}. If the version jump is too + * great or a {@link DataContentUpdater} has not been registered to cover + * the complete jump, {@link Optional#empty()} may be returned. + */ + // @ts-ignore + getWrappedContentUpdater(clazz: java.lang.Class, fromVersion: number, toVersion: number): java.util.Optional; + /** + * Attempts to retrieve the {@link DataBuilder} for the desired + * {@link DataSerializable} class. + *

Builders may not always exist for a given {@link DataSerializable}, + * nor is it guaranteed that a provided builder will function with all + * {@link DataContainer}s.

+ */ + // @ts-ignore + getBuilder(clazz: java.lang.Class): java.util.Optional; + /** + * Attempts to translate an instance of the {@link DataSerializable} from + * the provided {@link DataView}. If there is no {@link DataBuilder} + * registered for the provided {@link DataSerializable}, then + * {@link Optional#empty()} may be returned. + */ + // @ts-ignore + deserialize(clazz: java.lang.Class, dataView: org.spongepowered.api.data.DataView): java.util.Optional; + /** + * Registers the given {@link ImmutableDataHolder} class with it's + * associated {@link ImmutableDataBuilder}. The builder can be used to + * create new instances of the given {@link ImmutableDataHolder} for data + * retrieval, data representation, etc. + */ + // @ts-ignore + register(holderClass: java.lang.Class, builder: org.spongepowered.api.data.ImmutableDataBuilder): void; + /** + * Registers a legacy {@code id} that is used by a previous version of + * {@link DataRegistration} from a plugin such that the custom data can + * be retained, while not being lost. + */ + // @ts-ignore + registerLegacyManipulatorIds(legacyId: string, registration: org.spongepowered.api.data.DataRegistration): void; + /** + * Attempts to retrieve the builder for the given + * {@link ImmutableDataHolder}. + *

If the {@link ImmutableDataHolder} was not registered, multiple + * systems could fail to retrieve specific data.

+ */ + // @ts-ignore + getImmutableBuilder(holderClass: java.lang.Class): java.util.Optional; + /** + * Attempts to retrieve the builder for the given {@link DataManipulator}. + *

If the {@link DataManipulator} was not registered, multiple systems + * could fail to retrieve specific data.

+ */ + // @ts-ignore + getManipulatorBuilder(manipulatorClass: java.lang.Class): java.util.Optional; + /** + * Attempts to retrieve the builder for the given + * {@link ImmutableDataManipulator}. + *

If the {@link ImmutableDataManipulator} was not registered, multiple + * systems could fail to retrieve specific data.

+ */ + // @ts-ignore + getImmutableManipulatorBuilder(immutableManipulatorClass: java.lang.Class): java.util.Optional; + /** + * Registers a {@link DataTranslator} for the desired class. + */ + // @ts-ignore + registerTranslator(objectClass: java.lang.Class, translator: org.spongepowered.api.data.persistence.DataTranslator): void; + /** + * Gets the desired {@link DataTranslator} for the provided class. + */ + // @ts-ignore + getTranslator(objectClass: java.lang.Class): java.util.Optional; + /** + * Gets all {@link Class}es of all {@link DataManipulator}s registered for + * the provided {@link PluginContainer}. The provided {@link Collection} is + * considered immutable and can not be modified. + */ + // @ts-ignore + getAllRegistrationsFor(container: org.spongepowered.api.plugin.PluginContainer): java.util.Collection; + /** + * Creates a new {@link DataContainer} with a default + * {@link org.spongepowered.api.data.DataView.SafetyMode} of + * {@link org.spongepowered.api.data.DataView.SafetyMode#ALL_DATA_CLONED}. + */ + // @ts-ignore + createContainer(): org.spongepowered.api.data.DataContainer; + /** + * Creates a new {@link DataContainer} with the provided + * {@link org.spongepowered.api.data.DataView.SafetyMode}. + */ + // @ts-ignore + createContainer(safety: org.spongepowered.api.data.DataView.SafetyMode): org.spongepowered.api.data.DataContainer; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataQuery.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataQuery.d.ts new file mode 100644 index 00000000..cc7b9b99 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataQuery.d.ts @@ -0,0 +1,96 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + class DataQuery extends java.lang.Object { + /** + * Gets an empty {@link DataQuery}. This query is constant and never + * changes and therefor can be called multiple times returning the + * same instance. + */ + // @ts-ignore + public static of(): org.spongepowered.api.data.DataQuery; + /** + * Constructs a query using the given separator character and path. + *

As an example, {@code new DataQuery('/', "a/b/c")} and + * {@code new DataQuery('.', "a.b.c")} represent the same path but are + * constructed using different separators.

+ */ + // @ts-ignore + public static of(separator: string, path: string): org.spongepowered.api.data.DataQuery; + /** + * Constructs a query using the given parts. + */ + // @ts-ignore + public static of(parts: string): org.spongepowered.api.data.DataQuery; + /** + * Constructs a query using the given parts. + */ + // @ts-ignore + public static of(parts: java.util.List): org.spongepowered.api.data.DataQuery; + /** + * Gets the parts that make up this query. The returned list is immutable. + */ + // @ts-ignore + public getParts(): java.util.List; + /** + * Returns a new query that is made up of this query's parts followed by the + * given query's parts. + */ + // @ts-ignore + public then(that: org.spongepowered.api.data.DataQuery): org.spongepowered.api.data.DataQuery; + /** + * Returns a new query that is made up of this query's parts followed by the + * given query. + */ + // @ts-ignore + public then(that: string): org.spongepowered.api.data.DataQuery; + /** + * Returns the parts of this query as individual queries. The returned list + * is immutable. + */ + // @ts-ignore + public getQueryParts(): java.util.List; + /** + * Returns a {@link DataQuery} where the last node is "popped" off. If this + * query is already the top level query, then the {@link DataQuery#of()} is + * returned. + */ + // @ts-ignore + public pop(): org.spongepowered.api.data.DataQuery; + /** + * Returns a {@link DataQuery} where the first node is "popped" off. If this + * query is already the top level query, then the {@link DataQuery#of()} is + * returned. + */ + // @ts-ignore + public popFirst(): org.spongepowered.api.data.DataQuery; + /** + * Gets the last entry of this {@link DataQuery}. If this query is + * a single entry query or an empty query, it returns itself. + */ + // @ts-ignore + public last(): org.spongepowered.api.data.DataQuery; + /** + * Gets this query as a string separated by the given separator. + */ + // @ts-ignore + public asString(separator: string): string; + /** + * Gets this query as a string separated by the given separator character. + */ + // @ts-ignore + public asString(separator: string): string; + // @ts-ignore + public toString(): string; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataRegistration.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataRegistration.Builder.d.ts new file mode 100644 index 00000000..3cae8584 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataRegistration.Builder.d.ts @@ -0,0 +1,113 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace DataRegistration { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.CatalogBuilder { + /** + * Sets the {@link DataManipulator} class to be used. For the sake of + * generics, this method must be called prior to + * {@link #immutableClass(Class)} to properly infer generic usage + * by the compiler and at runtime. + */ + // @ts-ignore + dataClass(manipulatorClass: java.lang.Class): org.spongepowered.api.data.DataRegistration.Builder; + /** + * Sets the immutable class. THIS MUST BE CALLED AFTER + * {@link #dataClass(Class)}! + */ + // @ts-ignore + immutableClass(immutableDataClass: java.lang.Class): org.spongepowered.api.data.DataRegistration.Builder; + /** + * Optionally sets a separate implementation class for the + * {@link DataManipulator}. THIS MUST BE CALLED AFTER + * {@link #dataClass(Class)}! + */ + // @ts-ignore + dataImplementation(dataImplementationClass: java.lang.Class): org.spongepowered.api.data.DataRegistration.Builder; + /** + * Optionally sets a separate implementation class for the + * {@link ImmutableDataManipulator}. THIS MUST BE CALLED AFTER + * {@link #dataClass(Class)}! + */ + // @ts-ignore + immutableImplementation(immutableImplementationClass: java.lang.Class): org.spongepowered.api.data.DataRegistration.Builder; + /** + * Sets the id for the manipulator. The id should be formatted + * according to the normal {@link CatalogType} standard: + * {manipulator-id| since the + * "pluginid" + * is gathered from {@link #buildAndRegister(PluginContainer)} provided + * {@link PluginContainer}. + *

The importance of the id is that the id is what will be used for + * serialization and deserialization of custom plugin provided data, + * such that if the string changes, or a plugin is no longer available + * to register the data, the custom data being deserialized will not be + * available through the system, and may be lost.

+ */ + // @ts-ignore + manipulatorId(id: string): org.spongepowered.api.data.DataRegistration.Builder; + /** + * Sets a more generalized name to refer to the registered + * {@link DataManipulator} as a common name. + *

As an example: if I have a DummyTestData, a name could be "Dummy". + *

+ */ + // @ts-ignore + dataName(name: string): org.spongepowered.api.data.DataRegistration.Builder; + /** + * Sets the {@link DataManipulatorBuilder} to be used to generate new + * {@link DataManipulator DataManipulators} and + * {@link ImmutableDataManipulator ImmutableDataManipulators}. + */ + // @ts-ignore + builder(builder: org.spongepowered.api.data.manipulator.DataManipulatorBuilder): org.spongepowered.api.data.DataRegistration.Builder; + /** + * Since {@link DataRegistration} objects should be considered + * singletons in that the data registered upon creation is already + * preformed, creating a new {@link DataRegistration} will always + * fail. + */ + // @ts-ignore + from(value: org.spongepowered.api.data.DataRegistration): org.spongepowered.api.data.DataRegistration.Builder; + // @ts-ignore + reset(): org.spongepowered.api.data.DataRegistration.Builder; + /** + * Registers all of the objects for the provided {@link DataRegistration} + * object, including the registration's + * {@link DataRegistration#getManipulatorClass()} for the + * {@link DataManipulator} and + * {@link DataRegistration#getImmutableManipulatorClass()} + * and {@link DataRegistration#getDataManipulatorBuilder()} object. More + * importantly, this also allows the proper identification of the + * {@link DataManipulator} itself by the provided + * {@link DataRegistration#getId()}, + * which, much like {@link CatalogType#getId()} is formatted with + * {plugin-id|:{manipulator-id|. + *

It is expected that as the required {@link PluginContainer} is used + * is not a default container from Sponge. The + * {@link PluginContainer#getId()} is utilized to generate the final + * {@link DataRegistration#getId()} for serialization purposes.

+ */ + // @ts-ignore + buildAndRegister(container: org.spongepowered.api.plugin.PluginContainer): org.spongepowered.api.data.DataRegistration; + /** + * {@inheritDoc} + * All of the objects for the provided {@link DataRegistration} + * object, including the registration's + * {@link DataRegistration#getManipulatorClass()} for the + * {@link DataManipulator} and + * {@link DataRegistration#getImmutableManipulatorClass()} + * and {@link DataRegistration#getDataManipulatorBuilder()} + * object will also be registered. + */ + // @ts-ignore + build(): org.spongepowered.api.data.DataRegistration; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataRegistration.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataRegistration.d.ts new file mode 100644 index 00000000..862c7602 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataRegistration.d.ts @@ -0,0 +1,55 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + interface DataRegistration extends org.spongepowered.api.CatalogType { + /** + * Creates a new {@link Builder} to build a {@link DataRegistration}. + * Through the use of generics, this can be duck-typed to the generics of + * the desired {@link DataManipulator} type to be registered. + */ + // @ts-ignore + builder(): org.spongepowered.api.data.DataRegistration.Builder; + /** + * Gets the {@link DataManipulator} class for this registration. + */ + // @ts-ignore + getManipulatorClass(): java.lang.Class; + /** + * Gets the implementing class of the {@link DataManipulator} for this + * registration. + */ + // @ts-ignore + getImplementationClass(): java.lang.Class; + /** + * Gets the {@link ImmutableDataManipulator} class for this registration. + */ + // @ts-ignore + getImmutableManipulatorClass(): java.lang.Class; + /** + * Gets the implementing class of the {@link ImmutableDataManipulator} for + * this registration. + */ + // @ts-ignore + getImmutableImplementationClass(): java.lang.Class; + /** + * Gets the {@link DataManipulatorBuilder} registered for this registration. + */ + // @ts-ignore + getDataManipulatorBuilder(): org.spongepowered.api.data.manipulator.DataManipulatorBuilder; + /** + * Gets the owning {@link PluginContainer}. + */ + // @ts-ignore + getPluginContainer(): org.spongepowered.api.plugin.PluginContainer; + // @ts-ignore + getId(): string; + // @ts-ignore + getName(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataRegistrationNotFoundException.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataRegistrationNotFoundException.d.ts new file mode 100644 index 00000000..1040c2db --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataRegistrationNotFoundException.d.ts @@ -0,0 +1,70 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + class DataRegistrationNotFoundException extends org.spongepowered.api.data.DataException { + /** + * Constructs a basic data registration not found exception. + */ + // @ts-ignore + constructor() + /** + * Constructs a data registration not found exception with a specified + * registration query, which will be used as the message. + */ + // @ts-ignore + constructor(registrationQuery: string) + /** + * Constructs a data registration not found exception with a specified + * message and registration query. + */ + // @ts-ignore + constructor(message: string, registrationQuery: string) + /** + * Constructs a data registration not found exception with a message and a + * specified data manipulator class. + */ + // @ts-ignore + constructor(message: string, manipulatorClass: java.lang.Class) + /** + * Constructs a data registration not found exception with a message, + * a throwable cause, and a specified data manipulator class. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable, manipulatorClass: java.lang.Class) + /** + * Constructs a data registration not found exception with a message, + * an immutable data manipulator class, and a mutable + * data manipulator class. + */ + // @ts-ignore + constructor(message: string, manipulatorClass: java.lang.Class, immutableClass: java.lang.Class) + /** + * Constructs a data registration not found exception with a message, + * a throwable cause, an immutable data manipulator class, + * and a mutable data manipulator class. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable, manipulatorClass: java.lang.Class, immutableClass: java.lang.Class) + /** + * Gets the specified registration query, if present. + */ + // @ts-ignore + public getRegistrationQuery(): string; + /** + * Gets the data manipulator class, if present. + */ + // @ts-ignore + public getManipulatorClass(): java.lang.Class; + /** + * Gets the immutable data manipulator class, if present. + */ + // @ts-ignore + public getImmutableClass(): java.lang.Class; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataSerializable.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataSerializable.d.ts new file mode 100644 index 00000000..390a8887 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataSerializable.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + interface DataSerializable { + /** + * Gets the content version of this {@link DataSerializable}. The version + * may differ between instances of plugins and implementations such that + * the {@link DataView} from {@link #toContainer()} may include different + * information, or remove other information as they are no longer deemed + * necessary. The version goes hand in hand with {@link DataContentUpdater} + * as it is required when there exists any {@link DataView} of this + * {@link DataSerializable} with an "older" version. + */ + // @ts-ignore + getContentVersion(): number; + /** + * Serializes this object into a comprehensible {@link DataContainer}. + */ + // @ts-ignore + toContainer(): org.spongepowered.api.data.DataContainer; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataTransactionResult.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataTransactionResult.Builder.d.ts new file mode 100644 index 00000000..2432a258 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataTransactionResult.Builder.d.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace DataTransactionResult { + // @ts-ignore + class Builder extends java.lang.Object implements org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the expectant {@link Type} to the provided + * type. A {@link DataTransactionResult} must always have a type to mark + * the transaction a "success" or "failure". + */ + // @ts-ignore + public result(type: org.spongepowered.api.data.DataTransactionResult.Type): org.spongepowered.api.data.DataTransactionResult.Builder; + /** + * Adds the provided {@link ImmutableValue} to the {@link List} of + * "replaced" {@link ImmutableValue}s. The replaced values are always + * copied for every {@link DataTransactionResult} for referencing. It is + * also possible to retrieve these replaced {@link ImmutableValue}s to + * {@link DataHolder#undo(DataTransactionResult)} at a later point in + * the lifespan of the {@link DataHolder}. + */ + // @ts-ignore + public replace(value: org.spongepowered.api.data.value.immutable.ImmutableValue): org.spongepowered.api.data.DataTransactionResult.Builder; + /** + * Adds the provided {@link ImmutableValue}s to the {@link List} of + * "replaced" {@link ImmutableValue}s. The replaced values are always + * copied for every {@link DataTransactionResult} for referencing. It is + * also possible to retrieve these replaced {@link ImmutableValue}s to + * {@link DataHolder#undo(DataTransactionResult)} at a later point in + * the lifespan of the {@link DataHolder}. + */ + // @ts-ignore + public replace(values: java.lang.Iterable): org.spongepowered.api.data.DataTransactionResult.Builder; + /** + * Adds the provided {@link ImmutableValue} to the {@link List} of + * "rejected" {@link ImmutableValue}s. The rejected values are always + * copied for every {@link DataTransactionResult} for referencing. It is + * also possible to retrieve these rejected {@link ImmutableValue}s to + * {@link DataHolder#undo(DataTransactionResult)} at a later point in + * the lifespan of the {@link DataHolder}. + */ + // @ts-ignore + public reject(value: org.spongepowered.api.data.value.immutable.ImmutableValue): org.spongepowered.api.data.DataTransactionResult.Builder; + /** + * Adds the provided {@link ImmutableValue}s to the {@link List} of + * "rejected" {@link ImmutableValue}s. The rejected values are always + * copied for every {@link DataTransactionResult} for referencing. It is + * also possible to retrieve these rejected {@link ImmutableValue}s to + * {@link DataHolder#undo(DataTransactionResult)} at a later point in + * the lifespan of the {@link DataHolder}. + */ + // @ts-ignore + public reject(values: java.lang.Iterable): org.spongepowered.api.data.DataTransactionResult.Builder; + /** + * Adds the provided {@link ImmutableValue} to the {@link List} of + * "successful" {@link ImmutableValue}s. The rejected values are always + * copied for every {@link DataTransactionResult} for referencing. It is + * also possible to retrieve these successful {@link ImmutableValue}s to + * {@link DataHolder#undo(DataTransactionResult)} at a later point in + * the lifespan of the {@link DataHolder}. + */ + // @ts-ignore + public success(value: org.spongepowered.api.data.value.immutable.ImmutableValue): org.spongepowered.api.data.DataTransactionResult.Builder; + /** + * Adds the provided {@link ImmutableValue}s to the {@link List} of + * "successful" {@link ImmutableValue}s. The rejected values are always + * copied for every {@link DataTransactionResult} for referencing. It is + * also possible to retrieve these successful {@link ImmutableValue}s to + * {@link DataHolder#undo(DataTransactionResult)} at a later point in + * the lifespan of the {@link DataHolder}. + */ + // @ts-ignore + public success(values: java.lang.Iterable): org.spongepowered.api.data.DataTransactionResult.Builder; + /** + * Combines the currently building {@link DataTransactionResult} with the + * one provided. Usually, this means that there is some merging of the + * {@link ImmutableValue}s based on {@link Key}. If this builder already + * has an {@link ImmutableValue} as being successfully offered, and the + * provided result shows the same key as being rejected, the rejected + * {@link ImmutableValue} will remain in the final result. + */ + // @ts-ignore + public absorbResult(result: org.spongepowered.api.data.DataTransactionResult): org.spongepowered.api.data.DataTransactionResult.Builder; + /** + * Builds a new {@link DataTransactionResult} with the providing + * {@link List}s of {@link ImmutableValue}s that are successfully + * offered, {@link ImmutableValue}s that were replaced, and + * {@link ImmutableValue}s that were rejected. + */ + // @ts-ignore + public build(): org.spongepowered.api.data.DataTransactionResult; + // @ts-ignore + public from(value: org.spongepowered.api.data.DataTransactionResult): org.spongepowered.api.data.DataTransactionResult.Builder; + // @ts-ignore + public reset(): org.spongepowered.api.data.DataTransactionResult.Builder; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataTransactionResult.Type.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataTransactionResult.Type.d.ts new file mode 100644 index 00000000..70d3441c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataTransactionResult.Type.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace DataTransactionResult { + // @ts-ignore + class Type extends java.lang.Enum { + // @ts-ignore + public static UNDEFINED: org.spongepowered.api.data.DataTransactionResult.Type; + // @ts-ignore + public static SUCCESS: org.spongepowered.api.data.DataTransactionResult.Type; + // @ts-ignore + public static FAILURE: org.spongepowered.api.data.DataTransactionResult.Type; + // @ts-ignore + public static ERROR: org.spongepowered.api.data.DataTransactionResult.Type; + // @ts-ignore + public static CANCELLED: org.spongepowered.api.data.DataTransactionResult.Type; + // @ts-ignore + public static values(): org.spongepowered.api.data.DataTransactionResult.Type[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.data.DataTransactionResult.Type; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataTransactionResult.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataTransactionResult.d.ts new file mode 100644 index 00000000..cf432947 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataTransactionResult.d.ts @@ -0,0 +1,165 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + class DataTransactionResult extends java.lang.Object { + /** + * Gets a new {@link Builder} to build a new + * {@link DataTransactionResult}. + */ + // @ts-ignore + public static builder(): org.spongepowered.api.data.DataTransactionResult.Builder; + /** + * Creates a {@link DataTransactionResult} with no data successfully added, + * removed, or rejected, and with the + * {@link Type} of + * {@link Type#SUCCESS} + * result type. + */ + // @ts-ignore + public static successNoData(): org.spongepowered.api.data.DataTransactionResult; + /** + * Creates a new {@link DataTransactionResult} with the provided + * {@link ImmutableValue} being the successful addition. The result type is + * still {@link Type#SUCCESS}. If a {@link Value} is + * necessary, use {@link Value#asImmutable()} to use this method. A + * {@link DataTransactionResult} is always immutable once created, and any + * {@link BaseValue}s should be provided as {@link ImmutableValue}s or + * transformed into {@link ImmutableValue}s. + */ + // @ts-ignore + public static successResult(value: org.spongepowered.api.data.value.immutable.ImmutableValue): org.spongepowered.api.data.DataTransactionResult; + /** + * Creates a new {@link DataTransactionResult} with the provided + * {@link ImmutableValue} being the successful addition. The result type is + * still {@link Type#SUCCESS}. If a {@link Value} is + * necessary, use {@link Value#asImmutable()} to use this method. A + * {@link DataTransactionResult} is always immutable once created, and any + * {@link BaseValue}s should be provided as {@link ImmutableValue}s or + * transformed into {@link ImmutableValue}s. + */ + // @ts-ignore + public static successReplaceResult(successful: org.spongepowered.api.data.value.immutable.ImmutableValue, replaced: org.spongepowered.api.data.value.immutable.ImmutableValue): org.spongepowered.api.data.DataTransactionResult; + /** + * Creates a new {@link DataTransactionResult} with the provided + * {@link ImmutableValue}s being the successful additions and + * the provided {@link ImmutableValue}s that were replaced. The result type + * is still {@link Type#SUCCESS}. If a {@link Value} + * is necessary, use {@link Value#asImmutable()} to use this method. A + * {@link DataTransactionResult} is always immutable once created, and any + * {@link BaseValue}s should be provided as {@link ImmutableValue}s or + * transformed into {@link ImmutableValue}s. + */ + // @ts-ignore + public static successReplaceResult(successful: java.util.Collection, replaced: java.util.Collection): org.spongepowered.api.data.DataTransactionResult; + /** + * Creates a {@link DataTransactionResult} with the provided + * {@link ImmutableValue}s being successfully removed. The result type is + * still {@link Type#SUCCESS}. If a {@link Value} is necessary, use + * {@link Value#asImmutable()} to use this method. A {@link DataTransactionResult} + * is always immutable once created, and any {@link BaseValue}s should be provided + * as {@link ImmutableValue}s or transformed into {@link ImmutableValue}s. + */ + // @ts-ignore + public static successRemove(removed: java.util.Collection): org.spongepowered.api.data.DataTransactionResult; + /** + * Creates a {@link DataTransactionResult} with the provided + * {@link ImmutableValue} being successfully removed. The result type is + * still {@link Type#SUCCESS}. If a {@link Value} is necessary, use + * {@link Value#asImmutable()} to use this method. A + * {@link DataTransactionResult} is always immutable once created, and a + * {@link BaseValue} should be provided as an {@link ImmutableValue} or + * transformed into an {@link ImmutableValue}. + */ + // @ts-ignore + public static successRemove(removed: org.spongepowered.api.data.value.immutable.ImmutableValue): org.spongepowered.api.data.DataTransactionResult; + /** + * Creates a new {@link DataTransactionResult} that ends in failure. The + * provided {@link ImmutableValue} is considered "rejected" and was not + * successfully added. + */ + // @ts-ignore + public static failResult(value: org.spongepowered.api.data.value.immutable.ImmutableValue): org.spongepowered.api.data.DataTransactionResult; + /** + * Creates a new {@link DataTransactionResult} that ends in failure. The + * provided {@link ImmutableValue}s are considered "rejected" and were not + * successfully added. + */ + // @ts-ignore + public static failResult(values: java.lang.Iterable): org.spongepowered.api.data.DataTransactionResult; + /** + * Creates a new {@link DataTransactionResult} that ends in failure. There + * is no additional data to include. + */ + // @ts-ignore + public static failNoData(): org.spongepowered.api.data.DataTransactionResult; + /** + * Creates a new {@link DataTransactionResult} that ends in failure. The + * provided {@link ImmutableValue} is considered "incompatible" and was not + * successfully added. + */ + // @ts-ignore + public static errorResult(value: org.spongepowered.api.data.value.immutable.ImmutableValue): org.spongepowered.api.data.DataTransactionResult; + /** + * Gets the type of result. + */ + // @ts-ignore + public getType(): org.spongepowered.api.data.DataTransactionResult.Type; + /** + * Gets whether this {@link DataTransactionResult} was successful or not. + */ + // @ts-ignore + public isSuccessful(): boolean; + /** + * If any {@link BaseValue}s applied onto a {@link CompositeValueStore} were + * successful, they'll be stored in the given list. + */ + // @ts-ignore + public getSuccessfulData(): java.util.List; + /** + * If {@link Value}s were supplied to the operation, this + * collection will return any {@link ImmutableValue}s which were rejected + * by the target {@link DataHolder}. + */ + // @ts-ignore + public getRejectedData(): java.util.List; + /** + * If the operation replaced any {@link Value}s, this returns a collection + * of the replaced {@link ImmutableValue}s. + */ + // @ts-ignore + public getReplacedData(): java.util.List; + /** + * If this result of {@link #isSuccessful()} returns {@code true}, + * the provided {@link Consumer} is called provided a list of all + * "successful" data as retrieved from {@link #getSuccessfulData()}. + */ + // @ts-ignore + public ifSuccessful(consumer: java.util.function$.Consumer): void; + /** + * If this result of {@link #isSuccessful()} returns {@code true}, + * the provided {@link Consumer} is called provided a list of all + * "successful" data as retrieved from {@link #getSuccessfulData()}. + */ + // @ts-ignore + public ifSucessful(consumer: java.util.function$.Consumer): void; + /** + * Used to call a {@link Supplier} for an {@link Exception} of type + * {@code E} such that if this transaction's {@link #isSuccessful()} + * returns {@code false}, the supplier's exception is thrown. + */ + // @ts-ignore + public ifNotSuccessful(supplier: java.util.function$.Supplier): void; + // @ts-ignore + public toString(): string; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataView.SafetyMode.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataView.SafetyMode.d.ts new file mode 100644 index 00000000..d0227504 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataView.SafetyMode.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace DataView { + // @ts-ignore + class SafetyMode extends java.lang.Enum { + // @ts-ignore + public static ALL_DATA_CLONED: org.spongepowered.api.data.DataView.SafetyMode; + // @ts-ignore + public static CLONED_ON_SET: org.spongepowered.api.data.DataView.SafetyMode; + // @ts-ignore + public static NO_DATA_CLONED: org.spongepowered.api.data.DataView.SafetyMode; + // @ts-ignore + public static values(): org.spongepowered.api.data.DataView.SafetyMode[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.data.DataView.SafetyMode; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataView.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataView.d.ts new file mode 100644 index 00000000..b99ae4c6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.DataView.d.ts @@ -0,0 +1,392 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + interface DataView { + /** + * Gets the parent container of this DataView. + *

Every DataView will always have a {@link DataContainer}.

+ *

For any {@link DataContainer}, this will return itself.

+ */ + // @ts-ignore + getContainer(): org.spongepowered.api.data.DataContainer; + /** + * Gets the current path of this {@link DataView} from its root + * {@link DataContainer}. + *

For any {@link DataContainer} itself, this will return an + * empty string as it is the root of the path.

+ *

The full path will always include this {@link DataView}s name + * at the end of the path.

+ */ + // @ts-ignore + getCurrentPath(): org.spongepowered.api.data.DataQuery; + /** + * Gets the name of this individual {@link DataView} in the path. + *

This will always be the final substring of the full path + * from {@link #getCurrentPath()}.

+ */ + // @ts-ignore + getName(): string; + /** + * Gets the parent {@link DataView} of this view. The parent directly + * contains this view according to the {@link #getCurrentPath()}. + *

For any {@link DataContainer}, this will return an absent parent.

+ */ + // @ts-ignore + getParent(): java.util.Optional; + /** + * Gets a collection containing all keys in this {@link DataView}. + *

If deep is set to true, then this will contain all the keys + * within any child {@link DataView}s (and their children, etc). + * These will be in a valid path notation for you to use.

+ *

If deep is set to false, then this will contain only the keys + * of any direct children, and not their own children.

+ */ + // @ts-ignore + getKeys(deep: boolean): java.util.Set; + /** + * Gets a Map containing all keys and their values for this {@link DataView}. + *

If deep is set to true, then this will contain all the keys and + * values within any child {@link DataView}s (and their children, + * etc). These keys will be in a valid path notation for you to use.

+ *

If deep is set to false, then this will contain only the keys and + * values of any direct children, and not their own children.

+ */ + // @ts-ignore + getValues(deep: boolean): java.util.Map; + /** + * Returns whether this {@link DataView} contains the given path. + */ + // @ts-ignore + contains(path: org.spongepowered.api.data.DataQuery): boolean; + /** + * Returns whether this {@link DataView} contains an entry for all + * provided {@link DataQuery} objects. + */ + // @ts-ignore + contains(path: org.spongepowered.api.data.DataQuery, paths: org.spongepowered.api.data.DataQuery): boolean; + /** + * Returns whether this {@link DataView} contains the given {@link Key}'s + * defaulted {@link DataQuery}. + */ + // @ts-ignore + contains(key: org.spongepowered.api.data.key.Key): boolean; + /** + * Returns whether this {@link DataView} contains the given {@link Key}es + * defaulted {@link DataQuery}. + */ + // @ts-ignore + contains(key: org.spongepowered.api.data.key.Key, keys: org.spongepowered.api.data.key.Key): boolean; + /** + * Gets an object from the desired path. If the path is not defined, + * an absent Optional is returned. + */ + // @ts-ignore + get(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + /** + * Sets the given Object value according to the given path relative to + * this {@link DataView}'s path. + */ + // @ts-ignore + set(path: org.spongepowered.api.data.DataQuery, value: java.lang.Object): org.spongepowered.api.data.DataView; + /** + * Sets the given {@link Key}ed value according to the provided + * {@link Key}'s {@link Key#getQuery()}. + */ + // @ts-ignore + set(key: org.spongepowered.api.data.key.Key, value: java.lang.Object): org.spongepowered.api.data.DataView; + /** + * Removes the data associated to the given path relative to this + * {@link DataView}'s path. + *

Path can not be empty, to remove this {@link DataView}, call + * the associated parent to remove this views name.

+ */ + // @ts-ignore + remove(path: org.spongepowered.api.data.DataQuery): org.spongepowered.api.data.DataView; + /** + * Creates a new {@link DataView} at the desired path. + *

If any data existed at the given path, that data will be + * overwritten with the newly constructed {@link DataView}.

+ */ + // @ts-ignore + createView(path: org.spongepowered.api.data.DataQuery): org.spongepowered.api.data.DataView; + /** + * Creates a new {@link DataView} with the given data at the desired + * path. + *

If any data existed at the given path, that data will be overwritten + * with the newly constructed {@link DataView}.

+ */ + // @ts-ignore + createView(path: org.spongepowered.api.data.DataQuery, map: java.util.Map): org.spongepowered.api.data.DataView; + /** + * Gets the {@link DataView} by path, if available. + *

If a {@link DataView} does not exist, or the data residing at + * the path is not an instance of a {@link DataView}, an absent is + * returned.

+ */ + // @ts-ignore + getView(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + /** + * Gets the underlying {@link Map} by path, if available. + *

If a {@link Map} does not exist, or data residing at the path is not + * an instance of a {@link Map}, an absent is returned.

+ */ + // @ts-ignore + getMap(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + /** + * Gets the {@link Boolean} by path, if available. + *

If a {@link Boolean} does not exist, or the data residing at + * the path is not an instance of a {@link Boolean}, an absent is + * returned.

+ */ + // @ts-ignore + getBoolean(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + /** + * Gets the {@link Short} by path, if available. + *

If a {@link Short} does not exist, or the data residing at + * the path is not an instance of a {@link Short}, an absent is + * returned.

+ */ + // @ts-ignore + getShort(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + /** + * Gets the {@link Byte} by path, if available. + *

If a {@link Byte} does not exist, or the data residing at + * the path is not an instance of a {@link Byte}, an absent is + * returned.

+ */ + // @ts-ignore + getByte(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + /** + * Gets the {@link Integer} by path, if available. + *

If a {@link Integer} does not exist, or the data residing at + * the path is not an instance of a {@link Integer}, an absent is + * returned.

+ */ + // @ts-ignore + getInt(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + /** + * Gets the {@link Long} by path, if available. + *

If a {@link Long} does not exist, or the data residing at + * the path is not an instance of a {@link Long}, an absent is + * returned.

+ */ + // @ts-ignore + getLong(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + /** + * Gets the {@link Float} by path, if available. + *

If a {@link Float} does not exist, or the data residing at + * the path is not an instance of a {@link Float}, an absent is + * returned.

+ */ + // @ts-ignore + getFloat(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + /** + * Gets the {@link Double} by path, if available. + *

If a {@link Double} does not exist, or the data residing at + * the path is not an instance of a {@link Double}, an absent is + * returned.

+ */ + // @ts-ignore + getDouble(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + /** + * Gets the {@link String} by path, if available. + *

If a {@link String} does not exist, or the data residing at + * the path is not an instance of a {@link String}, an absent is + * returned.

+ */ + // @ts-ignore + getString(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + /** + * Gets the {@link List} of something by path, if available. + *

If a {@link List} of something does not exist, or the data + * residing at the path is not an instance of a {@link List} of something, + * an absent is returned.

+ */ + // @ts-ignore + getList(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + /** + * Gets the {@link List} of {@link String} by path, if available. + *

If a {@link List} of {@link String} does not exist, or the data + * residing at the path is not an instance of a {@link List} of + * {@link String}, an absent is returned.

+ */ + // @ts-ignore + getStringList(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + /** + * Gets the {@link List} of {@link Character} by path, if available. + *

If a {@link List} of {@link Character} does not exist, or the data + * residing at the path is not an instance of a {@link List} of + * {@link Character}, an absent is returned.

+ */ + // @ts-ignore + getCharacterList(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + /** + * Gets the {@link List} of {@link Boolean} by path, if available. + *

If a {@link List} of {@link Boolean} does not exist, or the data + * residing at the path is not an instance of a {@link List} of + * {@link Boolean}, an absent is returned.

+ */ + // @ts-ignore + getBooleanList(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + /** + * Gets the {@link List} of {@link Byte} by path, if available. + *

If a {@link List} of {@link Byte} does not exist, or the data + * residing at the path is not an instance of a {@link List} of + * {@link Byte}, an absent is returned.

+ */ + // @ts-ignore + getByteList(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + /** + * Gets the {@link List} of {@link Short} by path, if available. + *

If a {@link List} of {@link Short} does not exist, or the data + * residing at the path is not an instance of a {@link List} of + * {@link Short}, an absent is returned.

+ */ + // @ts-ignore + getShortList(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + /** + * Gets the {@link List} of {@link Integer} by path, if available. + *

If a {@link List} of {@link Integer} does not exist, or the data + * residing at the path is not an instance of a {@link List} of + * {@link Integer}, an absent is returned.

+ */ + // @ts-ignore + getIntegerList(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + /** + * Gets the {@link List} of {@link Long} by path, if available. + *

If a {@link List} of {@link Long} does not exist, or the data + * residing at the path is not an instance of a {@link List} of + * {@link Long}, an absent is returned.

+ */ + // @ts-ignore + getLongList(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + /** + * Gets the {@link List} of {@link Float} by path, if available. + *

If a {@link List} of {@link Float} does not exist, or the data + * residing at the path is not an instance of a {@link List} of + * {@link Float}, an absent is returned.

+ */ + // @ts-ignore + getFloatList(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + /** + * Gets the {@link List} of {@link Double} by path, if available. + *

If a {@link List} of {@link Double} does not exist, or the data + * residing at the path is not an instance of a {@link List} of + * {@link Double}, an absent is returned.

+ */ + // @ts-ignore + getDoubleList(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + /** + * Gets the {@link List} of {@link Map} by path, if available. + *

If a {@link List} of {@link Map} does not exist, or the data + * residing at the path is not an instance of a {@link List} of + * {@link Map}, an absent is returned.

+ */ + // @ts-ignore + getMapList(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + /** + * Gets the {@link List} of {@link DataView} by path, if available. + *

If a {@link List} of {@link DataView} does not exist, or the data + * residing at the path is not an instance of a {@link List} of + * {@link DataView}, an absent is returned.

+ */ + // @ts-ignore + getViewList(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + /** + * Gets the {@link DataSerializable} object by path, if available. + *

If a {@link DataSerializable} exists, but is not the proper class + * type, or there is no data at the path given, an absent is returned.

+ *

It is important that the {@link DataManager} provided is + * the same one that has registered many of the + * {@link DataBuilder}s to ensure the {@link DataSerializable} + * requested can be returned.

+ */ + // @ts-ignore + getSerializable(path: org.spongepowered.api.data.DataQuery, clazz: java.lang.Class): java.util.Optional; + /** + * Gets the {@link List} of {@link DataSerializable} by path, if available. + *

If a {@link List} exists, but the contents of the list are not + * considered {@link DataSerializable} or are not of the proper type of + * {@link DataSerializable}, an absent is returned.

+ *

It is important that the {@link DataManager} provided is + * the same one that has registered many of the + * {@link DataBuilder}s to ensure the {@link DataSerializable} + * requested can be returned.

+ */ + // @ts-ignore + getSerializableList(path: org.spongepowered.api.data.DataQuery, clazz: java.lang.Class): java.util.Optional; + /** + * Gets the {@link Object} object by path, if available. + *

If a {@link Object} exists, but is not the proper class + * type, or there is no data at the path given, an absent is returned.

+ *

It is important that the {@link DataManager} provided is + * the same one that has registered many of the + * {@link DataTranslator}s to ensure the {@link DataSerializable} + * requested can be returned.

+ */ + // @ts-ignore + getObject(path: org.spongepowered.api.data.DataQuery, objectClass: java.lang.Class): java.util.Optional; + /** + * Gets the {@link List} of {@link DataSerializable} by path, if available. + *

If a {@link List} exists, but the contents of the list are not + * considered {@link DataTranslator}"able" or are not of the proper type of + * {@link DataTranslator}, an absent is returned.

+ *

It is important that the {@link DataManager} provided is + * the same one that has registered many of the + * {@link DataTranslator}s to ensure the {@link Object} + * requested can be returned.

+ */ + // @ts-ignore + getObjectList(path: org.spongepowered.api.data.DataQuery, objectClass: java.lang.Class): java.util.Optional; + /** + * Gets the {@link CatalogType} object by path, if available. + *

If a {@link CatalogType} exists, but is not named properly, not + * existing in a registry, or simply an invalid value will return + * an empty value.

+ */ + // @ts-ignore + getCatalogType(path: org.spongepowered.api.data.DataQuery, catalogType: java.lang.Class): java.util.Optional; + /** + * Gets the {@link List} of {@link CatalogType}s by path, if available. + *

If a {@link List} exists, but contents of the list are not + * considered {@link CatalogType}s or are not of the proper type + * of {@link CatalogType}, an absent is returned.

+ */ + // @ts-ignore + getCatalogTypeList(path: org.spongepowered.api.data.DataQuery, catalogType: java.lang.Class): java.util.Optional; + /** + * Copies this {@link DataView} and all of it's contents into a new + * {@link DataContainer}. + *

Note that the copy will not have the same path as this + * {@link DataView} since it will be constructed with the top level path + * being itself.

+ */ + // @ts-ignore + copy(): org.spongepowered.api.data.DataContainer; + /** + * Copies this {@link DataView} and all of it's contents into a new + * {@link DataContainer} with the given safety mode. + *

Note that the copy will not have the same path as this + * {@link DataView} since it will be constructed with the top level path + * being itself.

+ */ + // @ts-ignore + copy(safety: org.spongepowered.api.data.DataView.SafetyMode): org.spongepowered.api.data.DataContainer; + /** + * Gets if this view contains no data. + */ + // @ts-ignore + isEmpty(): boolean; + /** + * Gets the {@link org.spongepowered.api.data.DataView.SafetyMode} of this data view. + */ + // @ts-ignore + getSafetyMode(): org.spongepowered.api.data.DataView.SafetyMode; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.ImmutableDataBuilder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.ImmutableDataBuilder.d.ts new file mode 100644 index 00000000..5441f8a9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.ImmutableDataBuilder.d.ts @@ -0,0 +1,43 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + interface ImmutableDataBuilder extends org.spongepowered.api.data.persistence.DataBuilder { + /** + * Adds the given {@link DataManipulator} to the builder. The + * {@link DataManipulator} is copied when the {@link ImmutableDataHolder} + * is created. + */ + // @ts-ignore + add(manipulator: org.spongepowered.api.data.manipulator.DataManipulator): org.spongepowered.api.data.ImmutableDataBuilder; + /** + * Adds the given {@link ImmutableDataManipulator} to the builder. + */ + // @ts-ignore + add(manipulator: org.spongepowered.api.data.manipulator.ImmutableDataManipulator): org.spongepowered.api.data.ImmutableDataBuilder; + /** + * Adds the given {@link Key} with the given value. + */ + // @ts-ignore + add(key: org.spongepowered.api.data.key.Key, value: java.lang.Object): org.spongepowered.api.data.ImmutableDataBuilder; + /** + * Copies all known {@link DataManipulator}s from the given + * {@link ImmutableDataHolder}. This is a defensive copy as + * {@link DataManipulator} is mutable. + */ + // @ts-ignore + from(holder: org.spongepowered.api.data.ImmutableDataHolder): org.spongepowered.api.data.ImmutableDataBuilder; + /** + * Attempts to build a new {@link ImmutableDataHolder}. + */ + // @ts-ignore + build(): org.spongepowered.api.data.ImmutableDataHolder; + // @ts-ignore + reset(): org.spongepowered.api.data.ImmutableDataBuilder; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.ImmutableDataHolder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.ImmutableDataHolder.d.ts new file mode 100644 index 00000000..73080261 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.ImmutableDataHolder.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + interface ImmutableDataHolder extends org.spongepowered.api.data.DataSerializable, org.spongepowered.api.data.property.PropertyHolder, org.spongepowered.api.data.value.immutable.ImmutableValueStore { + /** + * Gets a copy of all properties defined on this + * {@link ImmutableDataHolder}, with their current values. + */ + // @ts-ignore + getManipulators(): java.util.List; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.LocatableSnapshot.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.LocatableSnapshot.d.ts new file mode 100644 index 00000000..42ad754e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.LocatableSnapshot.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + interface LocatableSnapshot extends org.spongepowered.api.data.ImmutableDataHolder { + /** + * Gets the {@link UUID} of the world. + */ + // @ts-ignore + getWorldUniqueId(): java.util.UUID; + /** + * Gets the saved block position. + */ + // @ts-ignore + getPosition(): any /*Vector3i*/; + /** + * Gets the {@link Location} of the snapshot at which it may have been + * taken from. The {@link Location} being immutable signifies that the + * {@link LocatableSnapshot} can be re-created at the desired + * {@link Location}. + */ + // @ts-ignore + getLocation(): java.util.Optional; + /** + * Creates a copy of the snapshot with the provided + * {@link Location}. + */ + // @ts-ignore + withLocation(location: org.spongepowered.api.world.Location): org.spongepowered.api.data.LocatableSnapshot; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.MemoryDataContainer.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.MemoryDataContainer.d.ts new file mode 100644 index 00000000..088c8680 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.MemoryDataContainer.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + class MemoryDataContainer extends org.spongepowered.api.data.MemoryDataView implements org.spongepowered.api.data.DataContainer { + /** + * Creates a new {@link MemoryDataContainer} with a default + * {@link org.spongepowered.api.data.DataView.SafetyMode} of + * {@link org.spongepowered.api.data.DataView.SafetyMode#ALL_DATA_CLONED}. + */ + // @ts-ignore + constructor() + /** + * Creates a new {@link MemoryDataContainer} with the provided + * {@link org.spongepowered.api.data.DataView.SafetyMode}. + */ + // @ts-ignore + constructor(safety: org.spongepowered.api.data.DataView.SafetyMode) + // @ts-ignore + public getParent(): java.util.Optional; + // @ts-ignore + public getContainer(): org.spongepowered.api.data.DataContainer; + // @ts-ignore + public set(path: org.spongepowered.api.data.DataQuery, value: java.lang.Object): org.spongepowered.api.data.DataContainer; + // @ts-ignore + public set(key: org.spongepowered.api.data.key.Key, value: java.lang.Object): org.spongepowered.api.data.DataContainer; + // @ts-ignore + public remove(path: org.spongepowered.api.data.DataQuery): org.spongepowered.api.data.DataContainer; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.MemoryDataView.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.MemoryDataView.d.ts new file mode 100644 index 00000000..8bff096c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.MemoryDataView.d.ts @@ -0,0 +1,114 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + class MemoryDataView extends java.lang.Object implements org.spongepowered.api.data.DataView { + // @ts-ignore + constructor(safety: org.spongepowered.api.data.DataView.SafetyMode) + // @ts-ignore + constructor(parent: org.spongepowered.api.data.DataView, path: org.spongepowered.api.data.DataQuery, safety: org.spongepowered.api.data.DataView.SafetyMode) + // @ts-ignore + public getContainer(): org.spongepowered.api.data.DataContainer; + // @ts-ignore + public getCurrentPath(): org.spongepowered.api.data.DataQuery; + // @ts-ignore + public getName(): string; + // @ts-ignore + public getParent(): java.util.Optional; + // @ts-ignore + public getKeys(deep: boolean): java.util.Set; + // @ts-ignore + public getValues(deep: boolean): java.util.Map; + // @ts-ignore + public contains(path: org.spongepowered.api.data.DataQuery): boolean; + // @ts-ignore + public contains(path: org.spongepowered.api.data.DataQuery, paths: org.spongepowered.api.data.DataQuery): boolean; + // @ts-ignore + public get(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + // @ts-ignore + public set(path: org.spongepowered.api.data.DataQuery, value: java.lang.Object): org.spongepowered.api.data.DataView; + // @ts-ignore + public set(key: org.spongepowered.api.data.key.Key, value: java.lang.Object): org.spongepowered.api.data.DataView; + // @ts-ignore + public remove(path: org.spongepowered.api.data.DataQuery): org.spongepowered.api.data.DataView; + // @ts-ignore + public createView(path: org.spongepowered.api.data.DataQuery): org.spongepowered.api.data.DataView; + // @ts-ignore + public createView(path: org.spongepowered.api.data.DataQuery, map: java.util.Map): org.spongepowered.api.data.DataView; + // @ts-ignore + public getView(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + // @ts-ignore + public getMap(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + // @ts-ignore + public getBoolean(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + // @ts-ignore + public getByte(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + // @ts-ignore + public getShort(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + // @ts-ignore + public getInt(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + // @ts-ignore + public getLong(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + // @ts-ignore + public getFloat(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + // @ts-ignore + public getDouble(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + // @ts-ignore + public getString(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + // @ts-ignore + public getList(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + // @ts-ignore + public getStringList(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + // @ts-ignore + public getCharacterList(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + // @ts-ignore + public getBooleanList(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + // @ts-ignore + public getByteList(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + // @ts-ignore + public getShortList(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + // @ts-ignore + public getIntegerList(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + // @ts-ignore + public getLongList(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + // @ts-ignore + public getFloatList(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + // @ts-ignore + public getDoubleList(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + // @ts-ignore + public getMapList(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + // @ts-ignore + public getViewList(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + // @ts-ignore + public getSerializable(path: org.spongepowered.api.data.DataQuery, clazz: java.lang.Class): java.util.Optional; + // @ts-ignore + public getSerializableList(path: org.spongepowered.api.data.DataQuery, clazz: java.lang.Class): java.util.Optional; + // @ts-ignore + public getCatalogType(path: org.spongepowered.api.data.DataQuery, catalogType: java.lang.Class): java.util.Optional; + // @ts-ignore + public getCatalogTypeList(path: org.spongepowered.api.data.DataQuery, catalogType: java.lang.Class): java.util.Optional; + // @ts-ignore + public getObject(path: org.spongepowered.api.data.DataQuery, objectClass: java.lang.Class): java.util.Optional; + // @ts-ignore + public getObjectList(path: org.spongepowered.api.data.DataQuery, objectClass: java.lang.Class): java.util.Optional; + // @ts-ignore + public copy(): org.spongepowered.api.data.DataContainer; + // @ts-ignore + public copy(safety: org.spongepowered.api.data.DataView.SafetyMode): org.spongepowered.api.data.DataContainer; + // @ts-ignore + public isEmpty(): boolean; + // @ts-ignore + public getSafetyMode(): org.spongepowered.api.data.DataView.SafetyMode; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public toString(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.Property.Operator.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.Property.Operator.d.ts new file mode 100644 index 00000000..62d38a98 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.Property.Operator.d.ts @@ -0,0 +1,55 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace Property { + // @ts-ignore + class Operator extends java.lang.Enum { + // @ts-ignore + public static DELEGATE: org.spongepowered.api.data.Property.Operator; + // @ts-ignore + public static EQUAL: org.spongepowered.api.data.Property.Operator; + // @ts-ignore + public static NOTEQUAL: org.spongepowered.api.data.Property.Operator; + // @ts-ignore + public static GREATER: org.spongepowered.api.data.Property.Operator; + // @ts-ignore + public static GEQUAL: org.spongepowered.api.data.Property.Operator; + // @ts-ignore + public static LESS: org.spongepowered.api.data.Property.Operator; + // @ts-ignore + public static LEQUAL: org.spongepowered.api.data.Property.Operator; + // @ts-ignore + public static values(): org.spongepowered.api.data.Property.Operator[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.data.Property.Operator; + /** + *

Compare the two operands by applying this operator infix + * with respect to them. For example, if this object is + * {@link Operator#GREATER} then calling this method with + * object1 and object2 would effectively + * return:

+ *
returnValue = object1 > object2; + *
+ */ + // @ts-ignore + public compare(operand1: org.spongepowered.api.data.Property, operand2: org.spongepowered.api.data.Property): boolean; + /** + * Stub for subclasses to implement their logic. Used so we can get the + * null comparison logic out of the way first and then only proceed with + * comparison if both arguments are non-null. + */ + // @ts-ignore + protected apply(operand1: org.spongepowered.api.data.Property, operand2: org.spongepowered.api.data.Property): boolean; + /** + * Gets the default operator to use if none is specified. + */ + // @ts-ignore + public static defaultOperator(): org.spongepowered.api.data.Property.Operator; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.Property.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.Property.d.ts new file mode 100644 index 00000000..b3696d30 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.Property.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + interface Property { + /** + * Gets the key for this property. Key is only used if an item stack can + * have more than one property of a particular type. If the property has no + * specific key, the property class name is returned so that properties of + * the same type are implicitly comparable. + */ + // @ts-ignore + getKey(): java.lang.Object; + /** + * Gets the "value" of this property. "Value" may have different meanings + * depending on the exact type of this property. + */ + // @ts-ignore + getValue(): java.lang.Object; + /** + * Gets the operator to use when comparing another property with this + * property. + */ + // @ts-ignore + getOperator(): org.spongepowered.api.data.Property.Operator; + /** + *

Compares this property to other using this property's + * operator. This is equivalent to the code:

+ *
+ *
thisObject.getOperator().compare(thisObject, other);
+ *
+ *

The order of the operands is important, since {@link Operator} treats + * its type as infix between the two operands, and thus (for example) if + * this property's operator is set to GREATER, then when calling this method + * we want to know whether this is GREATER than other + * and must pass in the operands in the corresponding order.

+ */ + // @ts-ignore + matches(other: org.spongepowered.api.data.Property): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.Queries.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.Queries.d.ts new file mode 100644 index 00000000..a36a55e4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.Queries.d.ts @@ -0,0 +1,86 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + class Queries extends java.lang.Object { + // @ts-ignore + public static CONTENT_VERSION: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static TYPE_CLASS: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static ORIGINAL: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static DEFAULT_REPLACEMENT: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static CUSTOM_REPLACEMENT: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static VALID: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static WEIGHTED_SERIALIZABLE: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static WEIGHTED_SERIALIZABLE_WEIGHT: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static ENCHANTMENT_ID: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static LEVEL: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static WEIGHTED_ITEM_QUANTITY: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static WORLD_NAME: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static WORLD_ID: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static CHUNK_X: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static CHUNK_Y: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static CHUNK_Z: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static BLOCK_TYPE: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static POSITION_X: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static POSITION_Y: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static POSITION_Z: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static VARIABLE_CHANCE: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static VARIABLE_BASE: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static VARIABLE_VARIANCE: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static VARIABLE_AMOUNT: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static COLOR_RED: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static COLOR_BLUE: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static COLOR_GREEN: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static CREATOR_ID: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static NOTIFIER_ID: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static JSON: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static TEXT_TITLE: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static TEXT_AUTHOR: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static TEXT_PAGE_LIST: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static FORCED_SPAWN: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static UUID_LEAST: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static UUID_MOST: org.spongepowered.api.data.DataQuery; + // @ts-ignore + public static POSITION: org.spongepowered.api.data.DataQuery; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.Transaction.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.Transaction.d.ts new file mode 100644 index 00000000..e58fbb57 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.Transaction.d.ts @@ -0,0 +1,91 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + // @ts-ignore + class Transaction extends java.lang.Object implements org.spongepowered.api.data.DataSerializable { + /** + * Creates a new transaction. + */ + // @ts-ignore + constructor(original: org.spongepowered.api.data.DataSerializable, defaultReplacement: org.spongepowered.api.data.DataSerializable) + /** + * Creates a new {@link Transaction} with the added possibility of + * intermediary transactions that may have taken place between + * what is {@link #getOriginal() original} and {@link #getDefault() + * the default result}. The list may be {@code null}, however the list + * will wrapped to become an unmodifiable list. + *

It is imperative that the provided list is not to be modified + * outside this created {@link Transaction} synchronously and + * asynchronously as consumers of the provided list will not be able + * to react accordingly.

+ */ + // @ts-ignore + constructor(original: org.spongepowered.api.data.DataSerializable, defaultReplacement: org.spongepowered.api.data.DataSerializable, intermediary: java.util.List) + /** + * Gets the original snapshot. + */ + // @ts-ignore + public getOriginal(): org.spongepowered.api.data.DataSerializable; + /** + * Gets the default replacement snapshot. + */ + // @ts-ignore + public getDefault(): org.spongepowered.api.data.DataSerializable; + /** + * Gets a {@link List} of any and all intermediary transactions that may + * have taken place to get the final {@link Transaction} of + * {@link #getOriginal() the original} and {@link #getDefault() the default} + * results. This is exposed for monitoring purposes only, as the provided + * list is not modifiable. The list may be {@link List#isEmpty() empty} + * by default, but will never be {@code null}. + *

Note that special processing with this list may sometimes only take + * place if {@link #getCustom() a custom} result has not been set by a plugin, + * or if {@link #isValid()} returns {@code false}.

+ */ + // @ts-ignore + public getIntermediary(): java.util.List; + /** + * Gets the custom snapshot if one was set. + */ + // @ts-ignore + public getCustom(): java.util.Optional; + /** + * Sets the custom snapshot. If setting null, this will + * reset to use the {@link #getDefault()} snapshot. + */ + // @ts-ignore + public setCustom(custom: org.spongepowered.api.data.DataSerializable): void; + /** + * Gets the proposed final snapshot, if the {@link #getCustom()} returns + * {@link Optional#isPresent()}, the custom is returned, otherwise, + * {@link #getDefault()} is returned. + */ + // @ts-ignore + public getFinal(): org.spongepowered.api.data.DataSerializable; + /** + * Gets whether this transaction is marked as valid. + */ + // @ts-ignore + public isValid(): boolean; + /** + * Sets whether this transaction is valid or not. + */ + // @ts-ignore + public setValid(valid: boolean): void; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public toString(): string; + // @ts-ignore + public getContentVersion(): number; + // @ts-ignore + public toContainer(): org.spongepowered.api.data.DataContainer; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.key.Key.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.key.Key.Builder.d.ts new file mode 100644 index 00000000..ae4b78a5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.key.Key.Builder.d.ts @@ -0,0 +1,49 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace key { + namespace Key { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.CatalogBuilder { + /** + * Starter method for the builder, to be used immediately after + * {@link Key#builder()} is called. This defines the generics for the + * builder itself to provide the properly generified {@link Key}. + *

Common {@link TypeToken TypeTokens} can be found in + * {@link TypeTokens}. If a new TypeToken is to be created, it is + * recommended to create an anonymous class instance of a token, + * as recommended by Guava's wiki found + * here. + *

+ */ + // @ts-ignore + type(token: any): org.spongepowered.api.data.key.Key.Builder; + // @ts-ignore + id(id: string): org.spongepowered.api.data.key.Key.Builder; + // @ts-ignore + name(name: string): org.spongepowered.api.data.key.Key.Builder; + /** + * Sets the {@link DataQuery} recommended for use with + * {@link DataContainer}s. See {@link Key#getQuery()}. + */ + // @ts-ignore + query(query: org.spongepowered.api.data.DataQuery): org.spongepowered.api.data.key.Key.Builder; + /** + * Builds a new {@link Key}, provided that the + * {@link #type(TypeToken)}, {@link #id(String)}, + * {@link #name(String)}, and {@link #query(DataQuery)} + * are set. + */ + // @ts-ignore + build(): org.spongepowered.api.data.key.Key; + // @ts-ignore + from(value: org.spongepowered.api.data.key.Key): org.spongepowered.api.data.key.Key.Builder; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.key.Key.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.key.Key.d.ts new file mode 100644 index 00000000..afc03195 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.key.Key.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace key { + // @ts-ignore + interface Key extends org.spongepowered.api.CatalogType { + /** + * Creates a {@link Key.Builder} which allows creation of a {@link Key} + * to later be registered for accessing values from + * a {@link ValueContainer}. + */ + // @ts-ignore + builder(): org.spongepowered.api.data.key.Key.Builder; + /** + * Gets the class of the {@link BaseValue} this {@link Key} is representing. + */ + // @ts-ignore + getValueToken(): any; + /** + * Gets the class of the element of the {@link BaseValue} this {@link Key} + * is representing. On occasion, if the element is a {@link Collection} type, + * one can occasionally use {@link TypeToken#resolveType(Type)} with + * {@link Class#getTypeParameters()} as the type parameter of a collection + * is retrievable, such as the element type parameter for {@link List} or + * {@link Map}. + */ + // @ts-ignore + getElementToken(): any; + /** + * Gets the {@link DataQuery} for recommended use with + * {@link DataContainer}s. + */ + // @ts-ignore + getQuery(): org.spongepowered.api.data.DataQuery; + /** + * Register an event listener which listens to the value the key accesses + * changing. + */ + // @ts-ignore + registerEvent(holderFilter: java.lang.Class, listener: org.spongepowered.api.event.EventListener): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.key.KeyFactory.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.key.KeyFactory.d.ts new file mode 100644 index 00000000..28717a2a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.key.KeyFactory.d.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace key { + // @ts-ignore + class KeyFactory extends java.lang.Object { + /** + * Creates a new {@link Key} with the provided E element class + * and V {@link Value} class along with the provided default + * {@link DataQuery} to be used with the generated {@link Key}. + *

Note that {@link Key}s are not registered, but it is recommended to + * avoid generating {@link Key}s of potentially conflicting + * {@link DataQuery}(s).

+ */ + // @ts-ignore + public static makeSingleKey(elementToken: any, valueToken: any, query: org.spongepowered.api.data.DataQuery, id: string, name: string): org.spongepowered.api.data.key.Key; + /** + * Creates a new {@link Key} based on a {@link ListValue} of a type + * E element along with the provided {@link DataQuery}. + */ + // @ts-ignore + public static makeListKey(elementToken: any, valueToken: any, query: org.spongepowered.api.data.DataQuery, id: string, name: string): org.spongepowered.api.data.key.Key; + /** + * Creates a new {@link Key} based on a {@link SetValue} of a type + * E element along with the provided {@link DataQuery}. + */ + // @ts-ignore + public static makeSetKey(elementToken: any, valueToken: any, query: org.spongepowered.api.data.DataQuery, id: string, name: string): org.spongepowered.api.data.key.Key; + /** + * Creates a new {@link Key} based on a {@link MapValue} of the types + * K keys and V values with the provided + * {@link DataQuery} for accessing the {@link Map} in {@link DataView}s. + */ + // @ts-ignore + public static makeMapKey(elementToken: any, valueToken: any, query: org.spongepowered.api.data.DataQuery, id: string, name: string): org.spongepowered.api.data.key.Key; + /** + * Creates a new {@link Key} based on an {@link OptionalValue} of the type + * E element type with the provided {@link DataQuery} for + * accessing the optionally null value in {@link DataView}s. + */ + // @ts-ignore + public static makeOptionalKey(elementToken: any, valueToken: any, query: org.spongepowered.api.data.DataQuery, id: string, name: string): org.spongepowered.api.data.key.Key; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.key.Keys.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.key.Keys.d.ts new file mode 100644 index 00000000..3a64ceb1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.key.Keys.d.ts @@ -0,0 +1,540 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace key { + // @ts-ignore + class Keys extends java.lang.Object { + // @ts-ignore + public static ABSORPTION: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static ACCELERATION: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static ACTIVE_ITEM: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static AFFECTS_SPAWNING: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static AGE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static AI_ENABLED: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static ANGER: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static ANGRY: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static AREA_EFFECT_CLOUD_AGE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static AREA_EFFECT_CLOUD_COLOR: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static AREA_EFFECT_CLOUD_DURATION: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static AREA_EFFECT_CLOUD_DURATION_ON_USE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static AREA_EFFECT_CLOUD_PARTICLE_TYPE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static AREA_EFFECT_CLOUD_RADIUS: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static AREA_EFFECT_CLOUD_RADIUS_ON_USE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static AREA_EFFECT_CLOUD_RADIUS_PER_TICK: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static AREA_EFFECT_CLOUD_REAPPLICATION_DELAY: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static AREA_EFFECT_CLOUD_WAIT_TIME: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static ARMOR_STAND_HAS_ARMS: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static ARMOR_STAND_HAS_BASE_PLATE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static ARMOR_STAND_IS_SMALL: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static ARMOR_STAND_MARKER: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static ARMOR_STAND_TAKING_DISABLED: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static ARMOR_STAND_PLACING_DISABLED: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static ART: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static ATTACHED: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static ATTACK_DAMAGE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static AXIS: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static BANNER_BASE_COLOR: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static BANNER_PATTERNS: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static BASE_SIZE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static BASE_VEHICLE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static BEACON_PRIMARY_EFFECT: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static BEACON_SECONDARY_EFFECT: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static BIG_MUSHROOM_TYPE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static BODY_ROTATIONS: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static BOOK_AUTHOR: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static BOOK_PAGES: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static BREAKABLE_BLOCK_TYPES: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static BRICK_TYPE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static CAN_BREED: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static CAN_DROP_AS_ITEM: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static CAN_FLY: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static CAN_GRIEF: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static CAN_PLACE_AS_BLOCK: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static CAREER: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static CHEST_ROTATION: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static COAL_TYPE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static COLOR: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static COMMAND: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static COMPARATOR_TYPE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static CONNECTED_DIRECTIONS: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static CONNECTED_EAST: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static CONNECTED_NORTH: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static CONNECTED_SOUTH: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static CONNECTED_WEST: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static CONTAINED_EXPERIENCE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static COOKED_FISH: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static COOLDOWN: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static CREEPER_CHARGED: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static CRITICAL_HIT: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static CUSTOM_NAME_VISIBLE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static DAMAGE_ENTITY_MAP: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static DECAYABLE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static DELAY: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static DESPAWN_DELAY: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static DIRECTION: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static DIRT_TYPE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static DISARMED: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static DISGUISED_BLOCK_TYPE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static DISPLAY_NAME: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static DOMINANT_HAND: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static DOUBLE_PLANT_TYPE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static DYE_COLOR: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static END_GATEWAY_AGE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static END_GATEWAY_TELEPORT_COOLDOWN: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static EXACT_TELEPORT: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static EXHAUSTION: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static EXIT_POSITION: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static EXPERIENCE_FROM_START_OF_LEVEL: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static EXPERIENCE_LEVEL: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static EXPERIENCE_SINCE_LEVEL: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static EXPIRATION_TICKS: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static EXPLOSION_RADIUS: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static EXTENDED: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static FALLING_BLOCK_CAN_HURT_ENTITIES: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static FALLING_BLOCK_STATE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static FALL_DAMAGE_PER_BLOCK: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static FALL_DISTANCE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static FALL_TIME: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static FILLED: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static FIREWORK_EFFECTS: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static FIREWORK_FLIGHT_MODIFIER: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static FIRE_DAMAGE_DELAY: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static FIRE_TICKS: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static FIRST_DATE_PLAYED: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static FISH_TYPE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static FLUID_ITEM_STACK: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static FLUID_LEVEL: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static FLUID_TANK_CONTENTS: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static FLYING_SPEED: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static FOOD_LEVEL: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static FUSE_DURATION: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static GAME_MODE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static GENERATION: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static GLOWING: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static GOLDEN_APPLE_TYPE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static GROWTH_STAGE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static HAS_GRAVITY: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static HEAD_ROTATION: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static HEALTH: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static HEALTH_SCALE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static HEIGHT: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static HIDE_ATTRIBUTES: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static HIDE_CAN_DESTROY: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static HIDE_CAN_PLACE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static HIDE_ENCHANTMENTS: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static HIDE_MISCELLANEOUS: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static HIDE_UNBREAKABLE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static HINGE_POSITION: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static HORSE_COLOR: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static HORSE_STYLE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static INFINITE_DESPAWN_DELAY: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static INFINITE_PICKUP_DELAY: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static INVISIBLE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static INVULNERABILITY_TICKS: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static INVULNERABLE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static IN_WALL: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static IS_ADULT: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static IS_AFLAME: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static IS_ELYTRA_FLYING: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static IS_FLYING: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static IS_JOHNNY: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static IS_PLAYING: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static IS_SCREAMING: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static IS_SHEARED: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static IS_SILENT: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static IS_SITTING: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static IS_SLEEPING: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static IS_SNEAKING: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static IS_SPRINTING: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static IS_WET: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static ITEM_BLOCKSTATE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static ITEM_DURABILITY: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static ITEM_ENCHANTMENTS: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static ITEM_LORE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static JOHNNY_VINDICATOR: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static KNOCKBACK_STRENGTH: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static LAST_ATTACKER: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static LAST_COMMAND_OUTPUT: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static LAST_DAMAGE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static LAST_DATE_PLAYED: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static LAYER: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static LEFT_ARM_ROTATION: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static LEFT_LEG_ROTATION: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static LLAMA_STRENGTH: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static LLAMA_VARIANT: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static LOCK_TOKEN: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static LOG_AXIS: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static MAX_AIR: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static MAX_BURN_TIME: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static MAX_COOK_TIME: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static MAX_FALL_DAMAGE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static MAX_HEALTH: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static MOISTURE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static NOTE_PITCH: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static OCCUPIED: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static OCELOT_TYPE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static OFFSET: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static OPEN: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static PARROT_VARIANT: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static PASSED_BURN_TIME: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static PASSED_COOK_TIME: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static PASSENGERS: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static PERSISTS: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static PICKUP_DELAY: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static PICKUP_RULE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static PIG_SADDLE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static PISTON_TYPE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static PLACEABLE_BLOCKS: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static PLAIN_BOOK_PAGES: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static PLANT_TYPE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static PLAYER_CREATED: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static PORTION_TYPE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static POTION_EFFECTS: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static POTION_TYPE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static POWER: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static POWERED: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static PRISMARINE_TYPE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static QUARTZ_TYPE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static RABBIT_TYPE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static RAIL_DIRECTION: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static REMAINING_AIR: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static REMAINING_BREW_TIME: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static REPRESENTED_BLOCK: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static REPRESENTED_ITEM: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static REPRESENTED_PLAYER: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static RESPAWN_LOCATIONS: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static RIGHT_ARM_ROTATION: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static RIGHT_LEG_ROTATION: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static ROTATION: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static SANDSTONE_TYPE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static SAND_TYPE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static SATURATION: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static SCALE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static SEAMLESS: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static SHOULD_DROP: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static SHRUB_TYPE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static SIGN_LINES: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static SKIN_UNIQUE_ID: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static SKULL_TYPE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static SLAB_TYPE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static SLIME_SIZE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static SNOWED: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static SPAWNABLE_ENTITY_TYPE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static SPAWNER_ENTITIES: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static SPAWNER_MAXIMUM_DELAY: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static SPAWNER_MAXIMUM_NEARBY_ENTITIES: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static SPAWNER_MINIMUM_DELAY: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static SPAWNER_NEXT_ENTITY_TO_SPAWN: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static SPAWNER_REMAINING_DELAY: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static SPAWNER_REQUIRED_PLAYER_RANGE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static SPAWNER_SPAWN_COUNT: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static SPAWNER_SPAWN_RANGE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static STAIR_SHAPE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static STATISTICS: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static STONE_TYPE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static STORED_ENCHANTMENTS: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static STRUCTURE_AUTHOR: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static STRUCTURE_IGNORE_ENTITIES: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static STRUCTURE_INTEGRITY: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static STRUCTURE_MODE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static STRUCTURE_POSITION: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static STRUCTURE_POWERED: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static STRUCTURE_SEED: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static STRUCTURE_SHOW_AIR: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static STRUCTURE_SHOW_BOUNDING_BOX: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static STRUCTURE_SIZE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static STUCK_ARROWS: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static SUCCESS_COUNT: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static SUSPENDED: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static TAMED_OWNER: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static TARGETED_ENTITY: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static TARGETED_LOCATION: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static TICKS_REMAINING: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static TOTAL_EXPERIENCE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static TRACKS_OUTPUT: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static TRADE_OFFERS: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static TREE_TYPE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static UNBREAKABLE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static VANISH: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static VANISH_IGNORES_COLLISION: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static VANISH_PREVENTS_TARGETING: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static VEHICLE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static VELOCITY: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static WALKING_SPEED: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static WALL_TYPE: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static WILL_SHATTER: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static WIRE_ATTACHMENTS: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static WIRE_ATTACHMENT_EAST: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static WIRE_ATTACHMENT_NORTH: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static WIRE_ATTACHMENT_SOUTH: org.spongepowered.api.data.key.Key; + // @ts-ignore + public static WIRE_ATTACHMENT_WEST: org.spongepowered.api.data.key.Key; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.DataManipulator.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.DataManipulator.d.ts new file mode 100644 index 00000000..2150f34d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.DataManipulator.d.ts @@ -0,0 +1,104 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + // @ts-ignore + interface DataManipulator extends org.spongepowered.api.data.DataSerializable, org.spongepowered.api.data.value.ValueContainer { + /** + * Attempts to read data from the given {@link DataHolder} and fills the + * associated data onto this {@link DataManipulator}. + *

Any data that overlaps existing data from the {@link DataHolder} will + * take priority and be overwritten from the pre-existing data from the + * {@link DataHolder}. It is recommended that a call from + * {@link DataHolder#supports(Class)} is checked prior to using this + * method on any {@link DataHolder}.

+ */ + // @ts-ignore + fill(dataHolder: org.spongepowered.api.data.DataHolder): java.util.Optional; + /** + * Attempts to read data from the given {@link DataHolder} and fills the + * associated data onto this {@link DataManipulator}. Any data that + * overlaps between this and the given {@link DataHolder} will be resolved + * using the given {@link MergeFunction}. + *

Any data that overlaps existing data from the {@link DataHolder} will + * take priority and be overwritten from the pre-existing data from the + * {@link DataHolder}. It is recommended that a call from + * {@link DataHolder#supports(Class)} is checked prior to using this + * method on any {@link DataHolder}.

+ */ + // @ts-ignore + fill(dataHolder: org.spongepowered.api.data.DataHolder, overlap: org.spongepowered.api.data.merge.MergeFunction): java.util.Optional; + /** + * Attempts to read the raw data from the provided {@link DataContainer}. + * This manipulator should be "reset" to a default state and apply all data + * from the given {@link DataContainer}. If data is missing from the + * {@link DataContainer}, {@link Optional#empty()} can be returned. + */ + // @ts-ignore + from(container: org.spongepowered.api.data.DataContainer): java.util.Optional; + /** + * Sets the supported {@link Key}'s value such that the value is set on + * this {@link DataManipulator} without having to directly set the + * {@link Value} and {@link #set(BaseValue)} afterwards. The requirement + * for this to succeed is that the {@link Key} must be checked that it is + * supported via {@link #supports(BaseValue)} or {@link #supports(Key)} + * otherwise an {@link IllegalArgumentException} may be thrown. For + * fluency, after setting, this {@link DataManipulator} is returned. + */ + // @ts-ignore + set(key: org.spongepowered.api.data.key.Key, value: java.lang.Object): org.spongepowered.api.data.manipulator.DataManipulator; + /** + * Sets the supported {@link BaseValue} onto this {@link DataManipulator}. + * The requirement for this to succeed is that the {@link BaseValue} is + * checked for support via {@link #supports(BaseValue)} or + * {@link #supports(Key)} otherwise an {@link IllegalArgumentException} + * may be thrown. For fluency, after setting, this {@link DataManipulator} + * is returned. + */ + // @ts-ignore + set(value: org.spongepowered.api.data.value.BaseValue): org.spongepowered.api.data.manipulator.DataManipulator; + /** + * Sets the supported {@link BaseValue}s onto this {@link DataManipulator}. + * The requirement for this to succeed is that the {@link BaseValue} is + * checked for support via {@link #supports(BaseValue)} or + * {@link #supports(Key)} otherwise an {@link IllegalArgumentException} + * may be thrown. For fluency, after setting, this {@link DataManipulator} + * is returned. + */ + // @ts-ignore + set(values: org.spongepowered.api.data.value.BaseValue): org.spongepowered.api.data.manipulator.DataManipulator; + /** + * Sets the supported {@link BaseValue}s onto this {@link DataManipulator}. + * The requirement for this to succeed is that the {@link BaseValue} is + * checked for support via {@link #supports(BaseValue)} or + * {@link #supports(Key)} otherwise an {@link IllegalArgumentException} + * may be thrown. For fluency, after setting, this {@link DataManipulator} + * is returned. + */ + // @ts-ignore + set(values: java.lang.Iterable): org.spongepowered.api.data.manipulator.DataManipulator; + /** + * Applies a transformation on the provided value if available. This is + * the same as {@link CompositeValueStore#transform(Key, Function)}. + */ + // @ts-ignore + transform(key: org.spongepowered.api.data.key.Key, func: java.util.function$.Function): org.spongepowered.api.data.manipulator.DataManipulator; + // @ts-ignore + copy(): org.spongepowered.api.data.manipulator.DataManipulator; + /** + * Gets an {@link ImmutableDataManipulator} copy of this + * {@link DataManipulator} such that all backed {@link Value}s are copied + * into {@link ImmutableValue} counterparts. Any changes to this + * {@link DataManipulator} will NOT be reflected on the returned + * {@link ImmutableDataManipulator} and vice versa. + */ + // @ts-ignore + asImmutable(): org.spongepowered.api.data.manipulator.ImmutableDataManipulator; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.DataManipulatorBuilder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.DataManipulatorBuilder.d.ts new file mode 100644 index 00000000..c6f0f7b2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.DataManipulatorBuilder.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + // @ts-ignore + interface DataManipulatorBuilder extends org.spongepowered.api.data.persistence.DataBuilder { + /** + * Creates a new specific {@link DataManipulator} for consumption. + */ + // @ts-ignore + create(): org.spongepowered.api.data.manipulator.DataManipulator; + /** + * Attempts to read data from the given {@link DataHolder} and constructs + * a new copy of the {@link DataManipulator} as an instance of + * T. + *

If the {@link DataHolder} does not contain the necessary information + * to pre-populate the {@link DataManipulator}, a fresh new + * {@link DataManipulator} is returned. If the {@link DataManipulator} is + * incompatible with the {@link DataHolder}, {@link Optional#empty()} is + * returned.

+ */ + // @ts-ignore + createFrom(dataHolder: org.spongepowered.api.data.DataHolder): java.util.Optional; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.ImmutableDataManipulator.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.ImmutableDataManipulator.d.ts new file mode 100644 index 00000000..bb5cb1d9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.ImmutableDataManipulator.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + // @ts-ignore + interface ImmutableDataManipulator extends org.spongepowered.api.data.DataSerializable, org.spongepowered.api.data.value.ValueContainer { + /** + * Creates a new {@link ImmutableDataManipulator} with the provided value + * if the {@link Key} is supported by this {@link ImmutableDataManipulator} + * without exception. + */ + // @ts-ignore + with(key: org.spongepowered.api.data.key.Key, value: java.lang.Object): java.util.Optional; + /** + * Creates a new {@link ImmutableDataManipulator} with the provided + * {@link BaseValue} provided that the {@link BaseValue} is supported by + * this {@link ImmutableDataManipulator}. A simple check can be called for + * {@link #supports(BaseValue)} prior to ensure + * {@link Optional#isPresent()} returns {@code true}. + */ + // @ts-ignore + with(value: org.spongepowered.api.data.value.BaseValue): java.util.Optional; + // @ts-ignore + copy(): org.spongepowered.api.data.manipulator.ImmutableDataManipulator; + /** + * Gets a {@link DataManipulator} copy of this + * {@link ImmutableDataManipulator} such that all backed + * {@link ImmutableValue}s are copied into their {@link Value} + * counterparts. Any changes to this {@link ImmutableDataManipulator} will + * NOT be reflected on the returned {@link DataManipulator} and vice versa. + */ + // @ts-ignore + asMutable(): org.spongepowered.api.data.manipulator.DataManipulator; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.ImmutableDataManipulatorBuilder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.ImmutableDataManipulatorBuilder.d.ts new file mode 100644 index 00000000..79c4156d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.ImmutableDataManipulatorBuilder.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + // @ts-ignore + interface ImmutableDataManipulatorBuilder extends org.spongepowered.api.data.persistence.DataBuilder { + /** + * Creates a new specific {@link ImmutableDataManipulator} for consumption. + */ + // @ts-ignore + createImmutable(): org.spongepowered.api.data.manipulator.ImmutableDataManipulator; + /** + * Attempts to read data from the given {@link DataHolder} and constructs + * a new copy of the {@link DataManipulator} as an instance of + * T. + *

If the {@link DataHolder} does not contain the necessary information + * to pre-populate the {@link DataManipulator}, a fresh new + * {@link DataManipulator} is returned. If the {@link DataManipulator} is + * incompatible with the {@link DataHolder}, {@link Optional#empty()} is + * returned.

+ */ + // @ts-ignore + createFrom(dataHolder: org.spongepowered.api.data.DataHolder): java.util.Optional; + /** + * Creates the desired {@link ImmutableDataManipulator} from the provided + * {@link ImmutableDataHolder}, if it is supported. + */ + // @ts-ignore + createFrom(dataHolder: org.spongepowered.api.data.ImmutableDataHolder): java.util.Optional; + // @ts-ignore + reset(): org.spongepowered.api.data.manipulator.ImmutableDataManipulatorBuilder; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.catalog.CatalogBlockData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.catalog.CatalogBlockData.d.ts new file mode 100644 index 00000000..441c8b47 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.catalog.CatalogBlockData.d.ts @@ -0,0 +1,104 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace catalog { + // @ts-ignore + class CatalogBlockData extends java.lang.Object { + // @ts-ignore + public static ATTACHED_DATA: java.lang.Class; + // @ts-ignore + public static AXIS_DATA: java.lang.Class; + // @ts-ignore + public static BIG_MUSHROOM_DATA: java.lang.Class; + // @ts-ignore + public static BRICK_DATA: java.lang.Class; + // @ts-ignore + public static CONNECTED_DIRECTION_DATA: java.lang.Class; + // @ts-ignore + public static DECAYABLE_DATA: java.lang.Class; + // @ts-ignore + public static DELAYABLE_DATA: java.lang.Class; + // @ts-ignore + public static DIRECTIONAL_DATA: java.lang.Class; + // @ts-ignore + public static DIRT_DATA: java.lang.Class; + // @ts-ignore + public static DISARMED_DATA: java.lang.Class; + // @ts-ignore + public static DISGUISED_BLOCK_DATA: java.lang.Class; + // @ts-ignore + public static DOUBLE_PLANT_DATA: java.lang.Class; + // @ts-ignore + public static DYEABLE_DATA: java.lang.Class; + // @ts-ignore + public static EXTENDED_DATA: java.lang.Class; + // @ts-ignore + public static FILLED_DATA: java.lang.Class; + // @ts-ignore + public static FLUID_LEVEL_DATA: java.lang.Class; + // @ts-ignore + public static GROWTH_DATA: java.lang.Class; + // @ts-ignore + public static HINGE_DATA: java.lang.Class; + // @ts-ignore + public static IN_WALL_DATA: java.lang.Class; + // @ts-ignore + public static LAYERED_DATA: java.lang.Class; + // @ts-ignore + public static MOISTURE_DATA: java.lang.Class; + // @ts-ignore + public static NO_DROP_DATA: java.lang.Class; + // @ts-ignore + public static OCCUPIED_DATA: java.lang.Class; + // @ts-ignore + public static OPEN_DATA: java.lang.Class; + // @ts-ignore + public static PISTON_DATA: java.lang.Class; + // @ts-ignore + public static PORTION_DATA: java.lang.Class; + // @ts-ignore + public static POWERED_DATA: java.lang.Class; + // @ts-ignore + public static PRISMARINE_DATA: java.lang.Class; + // @ts-ignore + public static QUARTZ_DATA: java.lang.Class; + // @ts-ignore + public static RAIL_DIRECTION_DATA: java.lang.Class; + // @ts-ignore + public static REDSTONE_POWERED_DATA: java.lang.Class; + // @ts-ignore + public static ROTATIONAL_DATA: java.lang.Class; + // @ts-ignore + public static SAND_DATA: java.lang.Class; + // @ts-ignore + public static SANDSTONE_DATA: java.lang.Class; + // @ts-ignore + public static SEAMLESS_DATA: java.lang.Class; + // @ts-ignore + public static SHRUB_DATA: java.lang.Class; + // @ts-ignore + public static SLAB_DATA: java.lang.Class; + // @ts-ignore + public static SNOWED_DATA: java.lang.Class; + // @ts-ignore + public static STAIR_SHAPE_DATA: java.lang.Class; + // @ts-ignore + public static STONE_DATA: java.lang.Class; + // @ts-ignore + public static TREE_DATA: java.lang.Class; + // @ts-ignore + public static WALL_DATA: java.lang.Class; + // @ts-ignore + public static WET_DATA: java.lang.Class; + // @ts-ignore + public static WIRE_ATTACHMENT_DATA: java.lang.Class; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.catalog.CatalogEntityData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.catalog.CatalogEntityData.d.ts new file mode 100644 index 00000000..f3f5a24b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.catalog.CatalogEntityData.d.ts @@ -0,0 +1,150 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace catalog { + // @ts-ignore + class CatalogEntityData extends java.lang.Object { + // @ts-ignore + public static ACCELERATION_DATA: java.lang.Class; + // @ts-ignore + public static AGEABLE_DATA: java.lang.Class; + // @ts-ignore + public static AGENT_DATA: java.lang.Class; + // @ts-ignore + public static AGGRESSIVE_DATA: java.lang.Class; + // @ts-ignore + public static ANGERABLE_DATA: java.lang.Class; + // @ts-ignore + public static DISABLED_SLOTS_DATA: java.lang.Class; + // @ts-ignore + public static ART_DATA: java.lang.Class; + // @ts-ignore + public static BODY_PART_ROTATIONAL_DATA: java.lang.Class; + // @ts-ignore + public static BREATHING_DATA: java.lang.Class; + // @ts-ignore + public static BREEDABLE_DATA: java.lang.Class; + // @ts-ignore + public static CAREER_DATA: java.lang.Class; + // @ts-ignore + public static CHARGED_DATA: java.lang.Class; + // @ts-ignore + public static CRITICAL_HIT_DATA: java.lang.Class; + // @ts-ignore + public static DAMAGEABLE_DATA: java.lang.Class; + // @ts-ignore + public static DAMAGING_DATA: java.lang.Class; + // @ts-ignore + public static DISPLAY_NAME_DATA: java.lang.Class; + // @ts-ignore + public static DOMINANT_HAND_DATA: java.lang.Class; + // @ts-ignore + public static DYEABLE_DATA: java.lang.Class; + // @ts-ignore + public static EXPERIENCE_HOLDER_DATA: java.lang.Class; + // @ts-ignore + public static EXPIRABLE_DATA_CLASS: java.lang.Class; + // @ts-ignore + public static EXPLOSIVE_RADIUS_DATA: java.lang.Class; + // @ts-ignore + public static FALLING_BLOCK_DATA: java.lang.Class; + // @ts-ignore + public static FIREWORK_EFFECT_DATA: java.lang.Class; + // @ts-ignore + public static FIREWORK_ROCKET_DATA: java.lang.Class; + // @ts-ignore + public static FLYING_DATA: java.lang.Class; + // @ts-ignore + public static FOOD_DATA: java.lang.Class; + // @ts-ignore + public static FUSE_DATA: java.lang.Class; + // @ts-ignore + public static GAME_MODE_DATA: java.lang.Class; + // @ts-ignore + public static GLOWING_DATA: java.lang.Class; + // @ts-ignore + public static GRAVITY_DATA: java.lang.Class; + // @ts-ignore + public static GRIEFING_DATA: java.lang.Class; + // @ts-ignore + public static HEALTH_DATA: java.lang.Class; + // @ts-ignore + public static HORSE_DATA: java.lang.Class; + // @ts-ignore + public static IGNITEABLE_DATA: java.lang.Class; + // @ts-ignore + public static INVISIBILITY_DATA: java.lang.Class; + // @ts-ignore + public static JOHNNY_DATA: java.lang.Class; + // @ts-ignore + public static JOIN_DATA: java.lang.Class; + // @ts-ignore + public static KNOCKBACK_DATA: java.lang.Class; + // @ts-ignore + public static LEASH_DATA: java.lang.Class; + // @ts-ignore + public static TARGETED_ENTITY_DATA: java.lang.Class; + // @ts-ignore + public static LOCATION_DATA: java.lang.Class; + // @ts-ignore + public static MINECART_BLOCK_DATA: java.lang.Class; + // @ts-ignore + public static OCELOT_DATA: java.lang.Class; + // @ts-ignore + public static ORB_DATA: java.lang.Class; + // @ts-ignore + public static PASSENGER_DATA: java.lang.Class; + // @ts-ignore + public static PERSISTING_DATA: java.lang.Class; + // @ts-ignore + public static PLAYER_CREATED_DATA: java.lang.Class; + // @ts-ignore + public static PLAYING_DATA: java.lang.Class; + // @ts-ignore + public static POTION_EFFECT_DATA: java.lang.Class; + // @ts-ignore + public static RABBIT_DATA: java.lang.Class; + // @ts-ignore + public static REPRESENTED_ITEM_DATA: java.lang.Class; + // @ts-ignore + public static RESPAWN_LOCATION_DATA: java.lang.Class; + // @ts-ignore + public static PIG_SADDLE_DATA: java.lang.Class; + // @ts-ignore + public static SCREAMING_DATA: java.lang.Class; + // @ts-ignore + public static SILENT_DATA: java.lang.Class; + // @ts-ignore + public static SHATTERING_DATA: java.lang.Class; + // @ts-ignore + public static SHEARED_DATA: java.lang.Class; + // @ts-ignore + public static SITTING_DATA: java.lang.Class; + // @ts-ignore + public static SIZE_DATA: java.lang.Class; + // @ts-ignore + public static SLEEPING_DATA: java.lang.Class; + // @ts-ignore + public static SLIME_DATA: java.lang.Class; + // @ts-ignore + public static SNEAKING_DATA: java.lang.Class; + // @ts-ignore + public static STATISTIC_DATA: java.lang.Class; + // @ts-ignore + public static TAMEABLE_DATA: java.lang.Class; + // @ts-ignore + public static VEHICLE_DATA: java.lang.Class; + // @ts-ignore + public static VELOCITY_DATA: java.lang.Class; + // @ts-ignore + public static WET_DATA: java.lang.Class; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.catalog.CatalogItemData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.catalog.CatalogItemData.d.ts new file mode 100644 index 00000000..bc5bc145 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.catalog.CatalogItemData.d.ts @@ -0,0 +1,64 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace catalog { + // @ts-ignore + class CatalogItemData extends java.lang.Object { + // @ts-ignore + public static BLOCK_ITEM_DATA: java.lang.Class; + // @ts-ignore + public static BREAKABLE_DATA: java.lang.Class; + // @ts-ignore + public static CLONEABLE_DATA: java.lang.Class; + // @ts-ignore + public static COAL_ITEM_DATA: java.lang.Class; + // @ts-ignore + public static COLORED_ITEM_DATA: java.lang.Class; + // @ts-ignore + public static COOKED_FISH_ITEM_DATA: java.lang.Class; + // @ts-ignore + public static DISPLAY_NAME_DATA: java.lang.Class; + // @ts-ignore + public static DURABILITY_DATA: java.lang.Class; + // @ts-ignore + public static DYEABLE_DATA: java.lang.Class; + // @ts-ignore + public static ENCHANTMENT_DATA: java.lang.Class; + // @ts-ignore + public static FIREWORK_EFFECT_DATA: java.lang.Class; + // @ts-ignore + public static FIREWORK_ROCKET_DATA: java.lang.Class; + // @ts-ignore + public static FISH_DATA: java.lang.Class; + // @ts-ignore + public static GOLDEN_APPLE_ITEM_DATA: java.lang.Class; + // @ts-ignore + public static INVENTORY_ITEM_DATA: java.lang.Class; + // @ts-ignore + public static LORE_DATA: java.lang.Class; + // @ts-ignore + public static MAP_ITEM_DATA: java.lang.Class; + // @ts-ignore + public static PAGED_DATA: java.lang.Class; + // @ts-ignore + public static PLACEABLE_DATA: java.lang.Class; + // @ts-ignore + public static POTION_EFFECT_DATA: java.lang.Class; + // @ts-ignore + public static POTION_TYPE_DATA: java.lang.Class; + // @ts-ignore + public static SPAWNABLE_DATA: java.lang.Class; + // @ts-ignore + public static STORED_ENCHANTMENT_DATA: java.lang.Class; + // @ts-ignore + public static TARGETED_LOCATION_DATA: java.lang.Class; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.catalog.CatalogTileEntityData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.catalog.CatalogTileEntityData.d.ts new file mode 100644 index 00000000..4b2305e8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.catalog.CatalogTileEntityData.d.ts @@ -0,0 +1,44 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace catalog { + // @ts-ignore + class CatalogTileEntityData extends java.lang.Object { + // @ts-ignore + public static BANNER_DATA: java.lang.Class; + // @ts-ignore + public static BEACON_DATA: java.lang.Class; + // @ts-ignore + public static BREWING_DATA: java.lang.Class; + // @ts-ignore + public static COMMAND_DATA: java.lang.Class; + // @ts-ignore + public static COMPARISON_DATA: java.lang.Class; + // @ts-ignore + public static COOLDOWN_DATA: java.lang.Class; + // @ts-ignore + public static DISPLAY_NAME_DATA: java.lang.Class; + // @ts-ignore + public static FURNACE_DATA: java.lang.Class; + // @ts-ignore + public static LOCKABLE_DATA: java.lang.Class; + // @ts-ignore + public static NOTE_DATA: java.lang.Class; + // @ts-ignore + public static REPRESENTED_PLAYER_DATA: java.lang.Class; + // @ts-ignore + public static JUKEBOX_DATA: java.lang.Class; + // @ts-ignore + public static SIGN_DATA: java.lang.Class; + // @ts-ignore + public static MOB_SPAWNER_DATA: java.lang.Class; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableColoredData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableColoredData.d.ts new file mode 100644 index 00000000..218d036b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableColoredData.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + // @ts-ignore + interface ImmutableColoredData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the {@link Color}. + */ + // @ts-ignore + color(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableCommandData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableCommandData.d.ts new file mode 100644 index 00000000..f255900a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableCommandData.d.ts @@ -0,0 +1,45 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + // @ts-ignore + interface ImmutableCommandData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the currently stored command. + */ + // @ts-ignore + storedCommand(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the success count of the last executed command. + *

The success count is the number of times the most recently used + * command of this command block succeeded. Most commands can only succeed + * once per execution, but certain commands (such as those which accept + * players as arguments) can succeed multiple times, and this value will be + * set accordingly. This success count can also be polled via a redstone + * comparator.

+ */ + // @ts-ignore + successCount(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets whether this command block will keep track of the output from the + * last command it executed. + */ + // @ts-ignore + doesTrackOutput(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the last command output. + *

This will only be available if {@link #doesTrackOutput()} is set to + * true, otherwise {@link Optional#empty()} will be returned.

+ */ + // @ts-ignore + lastOutput(): org.spongepowered.api.data.value.immutable.ImmutableOptionalValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableDisplayNameData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableDisplayNameData.d.ts new file mode 100644 index 00000000..97d0d25e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableDisplayNameData.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + // @ts-ignore + interface ImmutableDisplayNameData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the display name as a {@link Text}. The display name may be + * player set, or it may be undefined. + */ + // @ts-ignore + displayName(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableDyeableData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableDyeableData.d.ts new file mode 100644 index 00000000..b6d03b9e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableDyeableData.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + // @ts-ignore + interface ImmutableDyeableData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableFireworkEffectData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableFireworkEffectData.d.ts new file mode 100644 index 00000000..c1d8abcc --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableFireworkEffectData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + // @ts-ignore + interface ImmutableFireworkEffectData extends org.spongepowered.api.data.manipulator.immutable.ImmutableListData { + /** + * Gets the {@link ImmutableListValue} of {@link FireworkEffect}s. + *

Note that for {@link ItemTypes#FIREWORK_CHARGE} only the first effect + * will apply to the charge.

+ */ + // @ts-ignore + effects(): org.spongepowered.api.data.value.immutable.ImmutableListValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableFireworkRocketData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableFireworkRocketData.d.ts new file mode 100644 index 00000000..04c5fdd9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableFireworkRocketData.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + // @ts-ignore + interface ImmutableFireworkRocketData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the flight modifier. + *

Flight modifiers are tiered ranks of flight duration. Generally, + * the modifier is used to calculate the fuse time of a firework when + * launched. This can be approximated by multiplying 10 and the modifier, + * and adding a random number between 0 and 13. Again, this is a general + * approximation of what vanilla Minecraft performs.

+ */ + // @ts-ignore + flightModifier(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableListData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableListData.d.ts new file mode 100644 index 00000000..b3f5aab7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableListData.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + // @ts-ignore + interface ImmutableListData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableListValue} of this {@link ImmutableListData}. + */ + // @ts-ignore + getListValue(): org.spongepowered.api.data.value.immutable.ImmutableListValue; + /** + * Gets the {@link List} value itself from this manipulator. + */ + // @ts-ignore + asList(): java.util.List; + /** + * Gets an element of type {@code E} by the provided {@code index}. + */ + // @ts-ignore + get(index: number): java.util.Optional; + /** + * Returns whether the underlying {@link List} contains the provided + * {@code element}. + */ + // @ts-ignore + contains(element: java.lang.Object): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableMappedData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableMappedData.d.ts new file mode 100644 index 00000000..a21bd11a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableMappedData.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + // @ts-ignore + interface ImmutableMappedData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@code value} for the provided {@code key}, if available. + */ + // @ts-ignore + get(key: java.lang.Object): java.util.Optional; + /** + * Gets a {@link Set} of {@code keys} available in this manipulator. + */ + // @ts-ignore + getMapKeys(): java.util.Set; + /** + * Gets the {@link java.util.Map.Entry} {@link Set} of values. + */ + // @ts-ignore + getMapValues(): java.util.Set; + /** + * Gets the {@link ImmutableMapValue} of this manipulator. + */ + // @ts-ignore + getMapValue(): org.spongepowered.api.data.value.immutable.ImmutableMapValue; + /** + * Gets this manipulator as a {@link Map}. + */ + // @ts-ignore + asMap(): java.util.Map; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableMobSpawnerData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableMobSpawnerData.d.ts new file mode 100644 index 00000000..b014c7a7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableMobSpawnerData.d.ts @@ -0,0 +1,81 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + // @ts-ignore + interface ImmutableMobSpawnerData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the remaining delay before + * a new attempt at spawning an {@link Entity} is made. + */ + // @ts-ignore + remainingDelay(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ImmutableBoundedValue} for the minimum spawn delay + * required between attempts to spawn an {@link Entity}. + */ + // @ts-ignore + minimumSpawnDelay(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ImmutableBoundedValue} for the maximum spawn delay + * required between attempts to spawn an {@link Entity}. + */ + // @ts-ignore + maximumSpawnDelay(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ImmutableBoundedValue} for the count of successful + * spawns of all {@link Entity} instances from the owning spawner. This + * count is simply a total count, there is no limitation on how many + * attempts are made to spawn an {@link Entity}. + */ + // @ts-ignore + spawnCount(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ImmutableBoundedValue} for the limitation on the number + * of nearby {@link Entity} instances can exist near the owning spawner. The + * limitation is that if there are more {@link Entity} instances than the + * provided value, no attempts to spawn a new {@link Entity} will be made. + */ + // @ts-ignore + maximumNearbyEntities(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ImmutableBoundedValue} for the minimum range a + * {@link Player} must remain in proximity of the spawner, such that if a + * {@link Player} is NOT within the provided range, no attempts to spawn an + * {@link Entity} is made. + */ + // @ts-ignore + requiredPlayerRange(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ImmutableBoundedValue} for the maximum range that an + * {@link Entity} can be spawned from the spawner. + */ + // @ts-ignore + spawnRange(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ImmutableValue} for the overridden + * {@link WeightedSerializableObject}{@code } to spawn next. If possible, the next entity to + * spawn may be chosen from the already provided + * {@link #possibleEntitiesToSpawn()}. + */ + // @ts-ignore + nextEntityToSpawn(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableWeightedCollectionValue} of all possible + * {@link Entity} instances that can be spawned by the spawner. As they + * are all {@link WeightedSerializableObject} instances, their weight is + * defined as a {@link Random} to determine the next {@link Entity} that + * will be spawned, unless overriden by {@link #nextEntityToSpawn()}. + */ + // @ts-ignore + possibleEntitiesToSpawn(): org.spongepowered.api.data.value.immutable.ImmutableWeightedCollectionValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutablePotionEffectData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutablePotionEffectData.d.ts new file mode 100644 index 00000000..fd582006 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutablePotionEffectData.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + // @ts-ignore + interface ImmutablePotionEffectData extends org.spongepowered.api.data.manipulator.immutable.ImmutableListData { + /** + * Gets the {@link ImmutableListValue} of the {@link PotionEffect}s. + */ + // @ts-ignore + effects(): org.spongepowered.api.data.value.immutable.ImmutableListValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutablePotionTypeData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutablePotionTypeData.d.ts new file mode 100644 index 00000000..3d115966 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutablePotionTypeData.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + // @ts-ignore + interface ImmutablePotionTypeData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} of the {@link PotionType}. + */ + // @ts-ignore + type(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableRepresentedItemData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableRepresentedItemData.d.ts new file mode 100644 index 00000000..c1aeac3d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableRepresentedItemData.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + // @ts-ignore + interface ImmutableRepresentedItemData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the represented {@link ItemStack} + * as an {@link ItemStackSnapshot}. + */ + // @ts-ignore + item(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableRepresentedPlayerData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableRepresentedPlayerData.d.ts new file mode 100644 index 00000000..6a4064de --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableRepresentedPlayerData.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + // @ts-ignore + interface ImmutableRepresentedPlayerData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the {@link GameProfile} that is + * represented by the {@link DataHolder}. + */ + // @ts-ignore + owner(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableRotationalData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableRotationalData.d.ts new file mode 100644 index 00000000..862ed776 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableRotationalData.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + // @ts-ignore + interface ImmutableRotationalData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableSkullData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableSkullData.d.ts new file mode 100644 index 00000000..59610ce3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableSkullData.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + // @ts-ignore + interface ImmutableSkullData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableTargetedLocationData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableTargetedLocationData.d.ts new file mode 100644 index 00000000..ba8e8f0a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableTargetedLocationData.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + // @ts-ignore + interface ImmutableTargetedLocationData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the targeted {@link Vector3d}. + */ + // @ts-ignore + target(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData.d.ts new file mode 100644 index 00000000..c9026396 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + // @ts-ignore + interface ImmutableVariantData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} of the the element type. + */ + // @ts-ignore + type(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableWetData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableWetData.d.ts new file mode 100644 index 00000000..80f716d9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.ImmutableWetData.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + // @ts-ignore + interface ImmutableWetData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "wet" state. + */ + // @ts-ignore + wet(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableAttachedData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableAttachedData.d.ts new file mode 100644 index 00000000..812cba55 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableAttachedData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableAttachedData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "attached" state. + */ + // @ts-ignore + attached(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableAxisData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableAxisData.d.ts new file mode 100644 index 00000000..a8a12b39 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableAxisData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableAxisData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + /** + * Gets the {@link ImmutableValue} for the {@link Axis} value. + */ + // @ts-ignore + axis(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableBigMushroomData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableBigMushroomData.d.ts new file mode 100644 index 00000000..f29fa2c6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableBigMushroomData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableBigMushroomData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableBrickData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableBrickData.d.ts new file mode 100644 index 00000000..5ad46372 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableBrickData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableBrickData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableComparatorData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableComparatorData.d.ts new file mode 100644 index 00000000..e05dcf8b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableComparatorData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableComparatorData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableConnectedDirectionData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableConnectedDirectionData.d.ts new file mode 100644 index 00000000..7c215051 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableConnectedDirectionData.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableConnectedDirectionData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableSetValue} for the currently "connected" + * {@link Direction}s. + */ + // @ts-ignore + connectedDirections(): org.spongepowered.api.data.value.immutable.ImmutableSetValue; + /** + * Gets the {@link ImmutableValue} for whether {@link Direction#NORTH} is + * "connected". + */ + // @ts-ignore + connectedNorth(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for whether {@link Direction#SOUTH} is + * "connected". + */ + // @ts-ignore + connectedSouth(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for whether {@link Direction#EAST} is + * "connected". + */ + // @ts-ignore + connectedEast(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for whether {@link Direction#WEST} is + * "connected". + */ + // @ts-ignore + connectedWest(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableDecayableData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableDecayableData.d.ts new file mode 100644 index 00000000..6e8464a9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableDecayableData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableDecayableData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for whether the "decayable" state is + * {@code true} or {@code false}. + */ + // @ts-ignore + decayable(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableDelayableData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableDelayableData.d.ts new file mode 100644 index 00000000..a8f524e1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableDelayableData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableDelayableData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the delay. + */ + // @ts-ignore + delay(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableDirectionalData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableDirectionalData.d.ts new file mode 100644 index 00000000..ba3b89a9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableDirectionalData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableDirectionalData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the current "facing" + * {@link Direction}. + */ + // @ts-ignore + direction(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableDirtData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableDirtData.d.ts new file mode 100644 index 00000000..d2dab3aa --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableDirtData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableDirtData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableDisarmedData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableDisarmedData.d.ts new file mode 100644 index 00000000..2134bed7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableDisarmedData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableDisarmedData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the current "disarmed" state. + */ + // @ts-ignore + disarmed(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableDisguisedBlockData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableDisguisedBlockData.d.ts new file mode 100644 index 00000000..69a8a77f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableDisguisedBlockData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableDisguisedBlockData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableDoublePlantData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableDoublePlantData.d.ts new file mode 100644 index 00000000..b8472cc7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableDoublePlantData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableDoublePlantData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableDropData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableDropData.d.ts new file mode 100644 index 00000000..a5e7ce71 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableDropData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableDropData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "droppable" state. + */ + // @ts-ignore + willDrop(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableExtendedData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableExtendedData.d.ts new file mode 100644 index 00000000..ce629976 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableExtendedData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableExtendedData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "extended" state. + */ + // @ts-ignore + extended(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableFilledData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableFilledData.d.ts new file mode 100644 index 00000000..deded0a7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableFilledData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableFilledData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "filled" state. + */ + // @ts-ignore + filled(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableFluidLevelData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableFluidLevelData.d.ts new file mode 100644 index 00000000..d67c8690 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableFluidLevelData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableFluidLevelData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} of the "fluid level" state. + */ + // @ts-ignore + level(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableGrowthData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableGrowthData.d.ts new file mode 100644 index 00000000..24913364 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableGrowthData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableGrowthData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the "growth" stage. + */ + // @ts-ignore + growthStage(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableHingeData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableHingeData.d.ts new file mode 100644 index 00000000..e3b65dde --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableHingeData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableHingeData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableInWallData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableInWallData.d.ts new file mode 100644 index 00000000..329215be --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableInWallData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableInWallData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "in-wall" state. + */ + // @ts-ignore + inWall(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableLayeredData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableLayeredData.d.ts new file mode 100644 index 00000000..1de85a7d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableLayeredData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableLayeredData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the "layer" state. + */ + // @ts-ignore + layer(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableLogAxisData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableLogAxisData.d.ts new file mode 100644 index 00000000..635a5112 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableLogAxisData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableLogAxisData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableMoistureData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableMoistureData.d.ts new file mode 100644 index 00000000..f8010164 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableMoistureData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableMoistureData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the "moisture" state. + */ + // @ts-ignore + moisture(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableOccupiedData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableOccupiedData.d.ts new file mode 100644 index 00000000..d7894960 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableOccupiedData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableOccupiedData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "occupied" state. + */ + // @ts-ignore + occupied(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableOpenData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableOpenData.d.ts new file mode 100644 index 00000000..b01b4995 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableOpenData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableOpenData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "open" state. + */ + // @ts-ignore + open(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutablePistonData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutablePistonData.d.ts new file mode 100644 index 00000000..ec5350bf --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutablePistonData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutablePistonData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutablePlantData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutablePlantData.d.ts new file mode 100644 index 00000000..e5ac85b7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutablePlantData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutablePlantData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutablePortionData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutablePortionData.d.ts new file mode 100644 index 00000000..2be29997 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutablePortionData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutablePortionData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutablePoweredData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutablePoweredData.d.ts new file mode 100644 index 00000000..53e0b727 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutablePoweredData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutablePoweredData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "powered" state. + */ + // @ts-ignore + powered(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutablePrismarineData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutablePrismarineData.d.ts new file mode 100644 index 00000000..6a94cff2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutablePrismarineData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutablePrismarineData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableQuartzData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableQuartzData.d.ts new file mode 100644 index 00000000..de1ed7f4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableQuartzData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableQuartzData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableRailDirectionData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableRailDirectionData.d.ts new file mode 100644 index 00000000..d7665cfe --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableRailDirectionData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableRailDirectionData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableRedstonePoweredData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableRedstonePoweredData.d.ts new file mode 100644 index 00000000..a71a9f08 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableRedstonePoweredData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableRedstonePoweredData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the output of "redstone + * power". + */ + // @ts-ignore + power(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableSandData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableSandData.d.ts new file mode 100644 index 00000000..c840077e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableSandData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableSandData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableSandstoneData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableSandstoneData.d.ts new file mode 100644 index 00000000..208d1265 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableSandstoneData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableSandstoneData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableSeamlessData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableSeamlessData.d.ts new file mode 100644 index 00000000..d27559d9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableSeamlessData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableSeamlessData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "seamless" state. + */ + // @ts-ignore + seamless(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableShrubData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableShrubData.d.ts new file mode 100644 index 00000000..b37d2295 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableShrubData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableShrubData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableSlabData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableSlabData.d.ts new file mode 100644 index 00000000..57905e75 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableSlabData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableSlabData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableSnowedData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableSnowedData.d.ts new file mode 100644 index 00000000..32252f9e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableSnowedData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableSnowedData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "snowed" state. + */ + // @ts-ignore + hasSnow(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableStairShapeData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableStairShapeData.d.ts new file mode 100644 index 00000000..340fa6ee --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableStairShapeData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableStairShapeData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableStoneData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableStoneData.d.ts new file mode 100644 index 00000000..84036629 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableStoneData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableStoneData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableTreeData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableTreeData.d.ts new file mode 100644 index 00000000..48370718 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableTreeData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableTreeData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableWallData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableWallData.d.ts new file mode 100644 index 00000000..de5039cb --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableWallData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableWallData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableWireAttachmentData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableWireAttachmentData.d.ts new file mode 100644 index 00000000..6fb33723 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.block.ImmutableWireAttachmentData.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace block { + // @ts-ignore + interface ImmutableWireAttachmentData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the current {@link ImmutableMapValue} for the available + * {@link Direction}s and associated{@link WireAttachmentType}s. + */ + // @ts-ignore + wireAttachments(): org.spongepowered.api.data.value.immutable.ImmutableMapValue; + /** + * Gets the {@link ImmutableValue} for the {@link Direction#NORTH}'s + * {@link WireAttachmentType}. + */ + // @ts-ignore + wireAttachmentNorth(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the {@link Direction#SOUTH}'s + * {@link WireAttachmentType}. + */ + // @ts-ignore + wireAttachmentSouth(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the {@link Direction#EAST}'s + * {@link WireAttachmentType}. + */ + // @ts-ignore + wireAttachmentEast(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the {@link Direction#WEST}'s + * {@link WireAttachmentType}. + */ + // @ts-ignore + wireAttachmentWest(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableBooleanData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableBooleanData.d.ts new file mode 100644 index 00000000..7af491f4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableBooleanData.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace common { + // @ts-ignore + abstract class AbstractImmutableBooleanData extends org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableSingleData { + // @ts-ignore + constructor(value: boolean, usedKey: org.spongepowered.api.data.key.Key, defaultValue: boolean) + // @ts-ignore + constructor(usedKey: org.spongepowered.api.data.key.Key, value: boolean) + // @ts-ignore + constructor(usedKey: org.spongepowered.api.data.key.Key, value: boolean, defaultValue: boolean) + // @ts-ignore + protected getValueGetter(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableBoundedComparableData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableBoundedComparableData.d.ts new file mode 100644 index 00000000..0832c4b9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableBoundedComparableData.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace common { + // @ts-ignore + abstract class AbstractImmutableBoundedComparableData extends org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableSingleData { + // @ts-ignore + constructor(value: java.lang.Comparable, usedKey: org.spongepowered.api.data.key.Key, comparator: java.util.Comparator, lowerBound: java.lang.Comparable, upperBound: java.lang.Comparable, defaultValue: java.lang.Comparable) + // @ts-ignore + constructor(usedKey: org.spongepowered.api.data.key.Key, value: java.lang.Comparable, lowerBound: java.lang.Comparable, upperBound: java.lang.Comparable, comparator: java.util.Comparator) + // @ts-ignore + constructor(usedKey: org.spongepowered.api.data.key.Key, value: java.lang.Comparable, defaultValue: java.lang.Comparable, lowerBound: java.lang.Comparable, upperBound: java.lang.Comparable, comparator: java.util.Comparator) + // @ts-ignore + protected comparator: java.util.Comparator; + // @ts-ignore + protected lowerBound: java.lang.Comparable; + // @ts-ignore + protected upperBound: java.lang.Comparable; + // @ts-ignore + protected defaultValue: java.lang.Comparable; + // @ts-ignore + protected getValueGetter(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableData.d.ts new file mode 100644 index 00000000..1c55676c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableData.d.ts @@ -0,0 +1,59 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace common { + // @ts-ignore + abstract class AbstractImmutableData extends java.lang.Object implements org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + // @ts-ignore + constructor() + /** + * Simple registration method for the keys to value return methods. + *

Note that this is still usable with Java 8 method references. + * Referencing {@code this::getfoo()} is recommended.

+ */ + // @ts-ignore + protected registerKeyValue(key: org.spongepowered.api.data.key.Key, func: java.util.function$.Supplier): void; + /** + * Simple registration method for the keys to field getter methods. + *

Note that this is still usable with Java 8 method references. + * Referencing {@code this::getfoo()} is recommended.

+ */ + // @ts-ignore + protected registerFieldGetter(key: org.spongepowered.api.data.key.Key, func: java.util.function$.Supplier): void; + // @ts-ignore + protected abstract registerGetters(): void; + // @ts-ignore + public copy(): org.spongepowered.api.data.manipulator.ImmutableDataManipulator; + // @ts-ignore + public get(key: org.spongepowered.api.data.key.Key): java.util.Optional; + // @ts-ignore + public getValue(key: org.spongepowered.api.data.key.Key): java.util.Optional; + // @ts-ignore + public supports(key: org.spongepowered.api.data.key.Key): boolean; + // @ts-ignore + public getKeys(): java.util.Set; + // @ts-ignore + public getValues(): java.util.Set; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public toContainer(): org.spongepowered.api.data.DataContainer; + /** + * Implement this method to add the data to be persisted. + */ + // @ts-ignore + protected fillContainer(dataContainer: org.spongepowered.api.data.DataContainer): org.spongepowered.api.data.DataContainer; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableListData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableListData.d.ts new file mode 100644 index 00000000..725b91c5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableListData.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace common { + // @ts-ignore + abstract class AbstractImmutableListData extends org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableSingleData implements org.spongepowered.api.data.manipulator.immutable.ImmutableListData { + // @ts-ignore + constructor(value: java.util.List, usedKey: org.spongepowered.api.data.key.Key) + // @ts-ignore + constructor(usedKey: org.spongepowered.api.data.key.Key, value: java.util.List) + // @ts-ignore + constructor(usedKey: org.spongepowered.api.data.key.Key, value: java.util.List, defaultValue: java.util.List) + // @ts-ignore + protected getValueGetter(): org.spongepowered.api.data.value.immutable.ImmutableListValue; + // @ts-ignore + public getListValue(): org.spongepowered.api.data.value.immutable.ImmutableListValue; + // @ts-ignore + public asList(): java.util.List; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableMappedData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableMappedData.d.ts new file mode 100644 index 00000000..54aea3e7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableMappedData.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace common { + // @ts-ignore + abstract class AbstractImmutableMappedData extends org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableSingleData implements org.spongepowered.api.data.manipulator.immutable.ImmutableMappedData { + // @ts-ignore + constructor(value: java.util.Map, usedKey: org.spongepowered.api.data.key.Key) + // @ts-ignore + constructor(usedKey: org.spongepowered.api.data.key.Key, value: java.util.Map) + // @ts-ignore + constructor(usedKey: org.spongepowered.api.data.key.Key, value: java.util.Map, defaultValue: java.util.Map) + // @ts-ignore + protected getValueGetter(): org.spongepowered.api.data.value.immutable.ImmutableMapValue; + // @ts-ignore + public get(key: java.lang.Object): java.util.Optional; + // @ts-ignore + public getMapKeys(): java.util.Set; + // @ts-ignore + public getMapValue(): org.spongepowered.api.data.value.immutable.ImmutableMapValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableSingleCatalogData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableSingleCatalogData.d.ts new file mode 100644 index 00000000..60364d24 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableSingleCatalogData.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace common { + // @ts-ignore + abstract class AbstractImmutableSingleCatalogData extends org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableSingleData implements org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + // @ts-ignore + constructor(value: org.spongepowered.api.CatalogType, defaultValue: org.spongepowered.api.CatalogType, usedKey: org.spongepowered.api.data.key.Key) + // @ts-ignore + constructor(usedKey: org.spongepowered.api.data.key.Key, value: org.spongepowered.api.CatalogType) + // @ts-ignore + constructor(usedKey: org.spongepowered.api.data.key.Key, value: org.spongepowered.api.CatalogType, defaultValue: org.spongepowered.api.CatalogType) + // @ts-ignore + protected getValueGetter(): org.spongepowered.api.data.value.immutable.ImmutableValue; + // @ts-ignore + public toContainer(): org.spongepowered.api.data.DataContainer; + // @ts-ignore + public type(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableSingleData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableSingleData.d.ts new file mode 100644 index 00000000..4c798ebe --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableSingleData.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace common { + // @ts-ignore + abstract class AbstractImmutableSingleData extends org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableData { + // @ts-ignore + constructor(value: java.lang.Object, usedKey: org.spongepowered.api.data.key.Key) + // @ts-ignore + constructor(usedKey: org.spongepowered.api.data.key.Key, value: java.lang.Object) + // @ts-ignore + constructor(usedKey: org.spongepowered.api.data.key.Key, value: java.lang.Object, defaultValue: java.lang.Object) + // @ts-ignore + protected usedKey: org.spongepowered.api.data.key.Key; + // @ts-ignore + protected value: java.lang.Object; + // @ts-ignore + protected defaultValue: java.lang.Object; + // @ts-ignore + protected abstract getValueGetter(): org.spongepowered.api.data.value.immutable.ImmutableValue; + // @ts-ignore + protected getValue(): java.lang.Object; + // @ts-ignore + public abstract asMutable(): org.spongepowered.api.data.manipulator.DataManipulator; + // @ts-ignore + protected registerGetters(): void; + // @ts-ignore + public get(key: org.spongepowered.api.data.key.Key): java.util.Optional; + // @ts-ignore + public supports(key: org.spongepowered.api.data.key.Key): boolean; + // @ts-ignore + public getKeys(): java.util.Set; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableSingleEnumData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableSingleEnumData.d.ts new file mode 100644 index 00000000..c0d5073a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableSingleEnumData.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace common { + // @ts-ignore + abstract class AbstractImmutableSingleEnumData extends org.spongepowered.api.data.manipulator.immutable.common.AbstractImmutableSingleData { + // @ts-ignore + constructor(value: java.lang.Enum, defaultValue: java.lang.Enum, usedKey: org.spongepowered.api.data.key.Key) + // @ts-ignore + constructor(usedKey: org.spongepowered.api.data.key.Key, value: java.lang.Enum) + // @ts-ignore + constructor(usedKey: org.spongepowered.api.data.key.Key, value: java.lang.Enum, defaultValue: java.lang.Enum) + // @ts-ignore + protected enumType(): org.spongepowered.api.data.value.immutable.ImmutableValue; + // @ts-ignore + protected getValueGetter(): org.spongepowered.api.data.value.immutable.ImmutableValue; + // @ts-ignore + public toContainer(): org.spongepowered.api.data.DataContainer; + // @ts-ignore + protected fillContainer(dataContainer: org.spongepowered.api.data.DataContainer): org.spongepowered.api.data.DataContainer; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAbsorptionData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAbsorptionData.d.ts new file mode 100644 index 00000000..c262f412 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAbsorptionData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableAbsorptionData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the absorption. + */ + // @ts-ignore + absorption(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAccelerationData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAccelerationData.d.ts new file mode 100644 index 00000000..5c83aeb1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAccelerationData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableAccelerationData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the current acceleration as a + * {@link Vector3d}. + */ + // @ts-ignore + acceleration(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableActiveItemData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableActiveItemData.d.ts new file mode 100644 index 00000000..e88013a8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableActiveItemData.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableActiveItemData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the item stack snapshot of the item that is currently being used. + *

If there is no item, the snapshot will be empty. You can check this + * with {@link ItemStackSnapshot#isEmpty()}.

+ */ + // @ts-ignore + activeItem(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAffectsSpawningData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAffectsSpawningData.d.ts new file mode 100644 index 00000000..c4968838 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAffectsSpawningData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableAffectsSpawningData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "affects spawning" state. + */ + // @ts-ignore + affectsSpawning(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAgeableData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAgeableData.d.ts new file mode 100644 index 00000000..02ccef66 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAgeableData.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableAgeableData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the "age" state. + */ + // @ts-ignore + age(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ImmutableValue} for whether the {@link #age()} is + * considered to be an "adult". + */ + // @ts-ignore + adult(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAgentData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAgentData.d.ts new file mode 100644 index 00000000..e847f9a6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAgentData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableAgentData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for whether AI tasks are enabled or not. + */ + // @ts-ignore + aiEnabled(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAggressiveData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAggressiveData.d.ts new file mode 100644 index 00000000..6b94eea5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAggressiveData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableAggressiveData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "aggressive" state. + */ + // @ts-ignore + aggressive(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAngerableData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAngerableData.d.ts new file mode 100644 index 00000000..dcf79dff --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAngerableData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableAngerableData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the "anger" level. + */ + // @ts-ignore + angerLevel(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAreaEffectCloudData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAreaEffectCloudData.d.ts new file mode 100644 index 00000000..fe1099d9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableAreaEffectCloudData.d.ts @@ -0,0 +1,86 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableAreaEffectCloudData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link Color} of this cloud, can be changed. + */ + // @ts-ignore + color(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@code radius} value of this cloud. + */ + // @ts-ignore + radius(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ParticleType} of this cloud. + */ + // @ts-ignore + particleType(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the bounded {@code duration} value of this cloud. + */ + // @ts-ignore + duration(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the bounded {@code waitTime} value of this cloud. The wait time + * dictates how long until this cloud will affect {@link Entity} instances + * with {@link PotionEffect}s. + */ + // @ts-ignore + waitTime(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the bounded {@code radiusOnUse} value of this cloud. + * The radius is reduced per {@link Entity} affected. + * Once the radius is {@code 0}, the cloud dissipates. + */ + // @ts-ignore + radiusOnUse(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the bounded {@code radiusPerTick} value of this cloud. + * The radius is reduced per tick (so technically can be set to + * {@code 0} to have it remain permanent until it's effects have + * been used up. + */ + // @ts-ignore + radiusPerTick(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the bounded {@code durationOnUse} value of this cloud. + * The duration on use is reduced for every time that this cloud + * applies it's {@link PotionEffect}s on an {@link Entity}. + */ + // @ts-ignore + durationOnUse(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the bounded {@code applicationDelay} value of this cloud. + * What this means is the application delay between times of application + * on an {@link Entity}. + */ + // @ts-ignore + applicationDelay(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ListValue} of {@link PotionEffect}s of this cloud. + * The potion effects will affect any {@link Entity} according to the + * various delays and ticks remaining of this cloud. + */ + // @ts-ignore + effects(): org.spongepowered.api.data.value.immutable.ImmutableListValue; + /** + * Gets the bounded {@code age} value of this cloud. + */ + // @ts-ignore + age(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableArmorStandData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableArmorStandData.d.ts new file mode 100644 index 00000000..9795b8f8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableArmorStandData.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableArmorStandData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Returns whether this armor stand is considered a "marker" where if + * it is a "marker", then the armor stand is not rendered itself, but + * the equipment it has would still be rendered. + */ + // @ts-ignore + marker(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Returns whether this armor stand is a small armor stand or not. + */ + // @ts-ignore + small(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Returns whether this armor stand shows arms or not. + *

Arms that do not show may also not show an item in hand.

+ */ + // @ts-ignore + arms(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets whether this armor stand has a visible base plate or not. + */ + // @ts-ignore + basePlate(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableArtData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableArtData.d.ts new file mode 100644 index 00000000..53899f41 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableArtData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableArtData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableBodyPartRotationalData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableBodyPartRotationalData.d.ts new file mode 100644 index 00000000..5f34118b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableBodyPartRotationalData.d.ts @@ -0,0 +1,60 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableBodyPartRotationalData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableMapValue} of {@link BodyPart}s to + * {@link Vector3d} rotations. + */ + // @ts-ignore + partRotation(): org.spongepowered.api.data.value.immutable.ImmutableMapValue; + /** + * Gets the individual {@link ImmutableValue} of the {@link Vector3d} + * rotation for {@link BodyParts#HEAD}. + */ + // @ts-ignore + headDirection(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the individual {@link ImmutableValue} of the {@link Vector3d} + * rotation for {@link BodyParts#CHEST}. + */ + // @ts-ignore + bodyRotation(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the individual {@link ImmutableValue} of the {@link Vector3d} + * rotation for {@link BodyParts#LEFT_ARM}. + */ + // @ts-ignore + leftArmDirection(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the individual {@link ImmutableValue} of the {@link Vector3d} + * rotation for {@link BodyParts#RIGHT_ARM}. + */ + // @ts-ignore + rightArmDirection(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the individual {@link ImmutableValue} of the {@link Vector3d} + * rotation for {@link BodyParts#LEFT_LEG}. + */ + // @ts-ignore + leftLegDirection(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the individual {@link ImmutableValue} of the {@link Vector3d} + * rotation for {@link BodyParts#RIGHT_LEG}. + */ + // @ts-ignore + rightLegDirection(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableBreathingData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableBreathingData.d.ts new file mode 100644 index 00000000..1854bd6b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableBreathingData.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableBreathingData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the remaining air. Can be + * changed to {@code (air >= 0 && air <= maxAir)}. + */ + // @ts-ignore + remainingAir(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ImmutableBoundedValue} for the maximum air capacity. + * The reasoning for it being bounded is that the air capacity must always + * remain at least 1. + */ + // @ts-ignore + maxAir(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableBreedableData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableBreedableData.d.ts new file mode 100644 index 00000000..b5f22805 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableBreedableData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableBreedableData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "breedable" state. + */ + // @ts-ignore + breedable(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableCareerData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableCareerData.d.ts new file mode 100644 index 00000000..214b40cb --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableCareerData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableCareerData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + /** + * Gets the {@link ImmutableValue} for the {@link Career}. + */ + // @ts-ignore + career(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableChargedData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableChargedData.d.ts new file mode 100644 index 00000000..856cd756 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableChargedData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableChargedData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the current "charged" state. + */ + // @ts-ignore + charged(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableCriticalHitData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableCriticalHitData.d.ts new file mode 100644 index 00000000..291bc813 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableCriticalHitData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableCriticalHitData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "critical hit" state. + */ + // @ts-ignore + criticalHit(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableCustomNameVisibleData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableCustomNameVisibleData.d.ts new file mode 100644 index 00000000..eb071100 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableCustomNameVisibleData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableCustomNameVisibleData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Returns whether the display name is visible to players. + */ + // @ts-ignore + customNameVisible(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDamageableData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDamageableData.d.ts new file mode 100644 index 00000000..e598046e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDamageableData.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableDamageableData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableOptionalValue} for the last attacker. + *

This will usually be an entity snapshot of a {@link Living}.

+ *

This data will usually only be present within 100 ticks of the attack + * occurring.

+ */ + // @ts-ignore + lastAttacker(): org.spongepowered.api.data.value.immutable.ImmutableOptionalValue; + /** + * Gets the last amount of damage taken by this entity as an optional value. + *

This data will usually only be present within 100 ticks of the attack + * occurring.

+ */ + // @ts-ignore + lastDamage(): org.spongepowered.api.data.value.immutable.ImmutableOptionalValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDamagingData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDamagingData.d.ts new file mode 100644 index 00000000..cbc08296 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDamagingData.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableDamagingData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the damage this projectile will deal to an {@link Entity} if hit. + */ + // @ts-ignore + damage(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableMapValue} for representing the custom damage + * values to use if the owner strikes an entity of that type. + *

Note that in events, the damage defined for the provided + * {@link EntityType} will take priority over the "default" damage as + * defined from {@link #damage()}.

+ */ + // @ts-ignore + damageForEntityTypes(): org.spongepowered.api.data.value.immutable.ImmutableMapValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDespawnDelayData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDespawnDelayData.d.ts new file mode 100644 index 00000000..baf16bdb --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDespawnDelayData.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableDespawnDelayData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the "despawn delay". + */ + // @ts-ignore + delay(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ImmutableValue} for the "is infinite" state of + * the despawn delay. + */ + // @ts-ignore + infinite(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDisabledSlotsData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDisabledSlotsData.d.ts new file mode 100644 index 00000000..558da1c0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDisabledSlotsData.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableDisabledSlotsData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Controls slots that players can't take items from. + */ + // @ts-ignore + takingDisabled(): org.spongepowered.api.data.value.immutable.ImmutableSetValue; + /** + * Controls slots that players can't place items into. + */ + // @ts-ignore + placingDisabled(): org.spongepowered.api.data.value.immutable.ImmutableSetValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDominantHandData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDominantHandData.d.ts new file mode 100644 index 00000000..10fd6edd --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableDominantHandData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableDominantHandData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + /** + * Gets the {@link ImmutableValue} representing the dominant {@link HandPreference} of an + * {@link Entity}. + */ + // @ts-ignore + dominantHand(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableElytraFlyingData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableElytraFlyingData.d.ts new file mode 100644 index 00000000..5ae2283f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableElytraFlyingData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableElytraFlyingData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} elytra flying state. + */ + // @ts-ignore + elytraFlying(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableExpOrbData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableExpOrbData.d.ts new file mode 100644 index 00000000..3c21f3fa --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableExpOrbData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableExpOrbData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the amount of "experience" stored. + */ + // @ts-ignore + experience(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableExperienceHolderData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableExperienceHolderData.d.ts new file mode 100644 index 00000000..d9920c64 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableExperienceHolderData.d.ts @@ -0,0 +1,47 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableExperienceHolderData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the amount of experience + * gained since the beginning of the current {@link #level()}. Normally, + * the higher the level, the more "experience" required to gain another + * level. + */ + // @ts-ignore + experienceSinceLevel(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ImmutableBoundedValue} for the amount of experience + * required between the current {@link #level()} and the next level. + * This can be presumed to be the supposed "maximum" for the + * {@link #experienceSinceLevel()} amount. + */ + // @ts-ignore + experienceBetweenLevels(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ImmutableBoundedValue} for the current "level" of + * experience deserved according to the {@link #totalExperience()} and + * a function from implementation defining how much experience required + * per level. + */ + // @ts-ignore + level(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the total amount of experience stored. + */ + // @ts-ignore + totalExperience(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableExpirableData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableExpirableData.d.ts new file mode 100644 index 00000000..2baf218f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableExpirableData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableExpirableData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the amount of "ticks" + * remaining before the "expiration" occurs. + */ + // @ts-ignore + expireTicks(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableExplosionRadiusData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableExplosionRadiusData.d.ts new file mode 100644 index 00000000..3d7a28c4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableExplosionRadiusData.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableExplosionRadiusData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * The radius in blocks that the explosion will affect. This value may be + * missing if the explosion radius is unknown such as when it is generated + * randomly on detonation. Setting this value on such explosives will + * override that behavior. + */ + // @ts-ignore + explosionRadius(): org.spongepowered.api.data.value.immutable.ImmutableOptionalValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFallDistanceData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFallDistanceData.d.ts new file mode 100644 index 00000000..be1ef77e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFallDistanceData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableFallDistanceData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the current fall distance. + */ + // @ts-ignore + fallDistance(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFallingBlockData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFallingBlockData.d.ts new file mode 100644 index 00000000..cb824252 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFallingBlockData.d.ts @@ -0,0 +1,58 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableFallingBlockData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the damage to deal per block + * the {@link FallingBlock} has fallen. + */ + // @ts-ignore + fallDamagePerBlock(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the maximum damage the {@link FallingBlock} can deal to another + * entity for falling on the entity. + */ + // @ts-ignore + maxFallDamage(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link BlockState} the falling block is representing. + */ + // @ts-ignore + blockState(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets whether this falling block will try to place itself where + * it lands. + */ + // @ts-ignore + canPlaceAsBlock(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets whether this falling block can drop as an item if it lands in a + * way that it can not be placed. + */ + // @ts-ignore + canDropAsItem(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the time the block has been falling if spawning a entity in air + * this will need to be set to 1 or it will be instantly removed. + */ + // @ts-ignore + fallTime(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets whether this falling block will damage entities where it lands. + */ + // @ts-ignore + canHurtEntities(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFlammableData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFlammableData.d.ts new file mode 100644 index 00000000..55fff286 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFlammableData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableFlammableData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "aflame" state. + */ + // @ts-ignore + flammable(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFlyingAbilityData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFlyingAbilityData.d.ts new file mode 100644 index 00000000..dddb5648 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFlyingAbilityData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableFlyingAbilityData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for whether the owner can "fly". + */ + // @ts-ignore + canFly(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFlyingData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFlyingData.d.ts new file mode 100644 index 00000000..d534cc16 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFlyingData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableFlyingData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "flying" state. + */ + // @ts-ignore + flying(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFoodData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFoodData.d.ts new file mode 100644 index 00000000..5403bf92 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFoodData.d.ts @@ -0,0 +1,45 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableFoodData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the current food level as an {@link ImmutableBoundedValue}. + *

Food level has health effects, depending on game difficulty and + * hunger levels. If the food level is high enough, the human entity + * may heal. If the food level is at 0, the human entity may starve.

+ */ + // @ts-ignore + foodLevel(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ImmutableBoundedValue} for the "exhaustion" level. + *

When the exhaustion level reaches 0, saturation is usually diminished + * such that saturation is decreased and then exhaustion is reset to the + * maximum. This type of effect occurs over time and can be modified by + * movements and actions performed by the {@link Humanoid} entity.

+ */ + // @ts-ignore + exhaustion(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ImmutableBoundedValue} for the "exhaustion" level. + *

When the saturation level reaches 0, the food level is usually + * diminished such that the food level is decreased by 1, then + * saturation is reset to the maximum value. This type of effect occurs + * over time and can be modified by movements and actions performed by the + * {@link Humanoid} entity.

+ */ + // @ts-ignore + saturation(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFuseData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFuseData.d.ts new file mode 100644 index 00000000..d669d71a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFuseData.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableFuseData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * The amount of ticks before the {@link FusedExplosive} detonates when + * primed. + */ + // @ts-ignore + fuseDuration(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * The amount of ticks before {@link FusedExplosive} detonates. This value + * may be zero if the {@link FusedExplosive} is not currently primed nor + * will setting this value have any effect if the {@link FusedExplosive} is + * not primed. + */ + // @ts-ignore + ticksRemaining(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableGameModeData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableGameModeData.d.ts new file mode 100644 index 00000000..36b3acde --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableGameModeData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableGameModeData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableGlowingData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableGlowingData.d.ts new file mode 100644 index 00000000..ee3aa87c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableGlowingData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableGlowingData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link Value} representing whether something is glowing. + */ + // @ts-ignore + glowing(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableGravityData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableGravityData.d.ts new file mode 100644 index 00000000..ed205608 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableGravityData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableGravityData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} of the gravity of an {@link Entity}. + * Returns true when the {@link Entity} has gravity. + */ + // @ts-ignore + gravity(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableGriefingData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableGriefingData.d.ts new file mode 100644 index 00000000..cd9d7935 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableGriefingData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableGriefingData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "griefing" state. + */ + // @ts-ignore + canGrief(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableHealthData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableHealthData.d.ts new file mode 100644 index 00000000..de232b9b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableHealthData.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableHealthData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets an {@link ImmutableBoundedValue} for the current health. + *

The range of the health depends on the object on which this + * method is defined. For players in Minecraft, the nominal range is + * between 0 and 20, inclusive, but the range can be adjusted.

+ *

Convention dictates that health does not follow below 0 but this + * convention may be broken for any reason.

+ */ + // @ts-ignore + health(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets an {@link ImmutableBoundedValue} for the maximum health. + *

The maximum health set here may affect the attribute increasing + * health points. The base health should be minded that it may be lower + * than the total maximum health of this entity.

+ */ + // @ts-ignore + maxHealth(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableHealthScalingData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableHealthScalingData.d.ts new file mode 100644 index 00000000..58c96240 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableHealthScalingData.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableHealthScalingData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Defines the amount of health to show client-side (in hearts) such that + * the maximum health is the value of this scale, and the current health + * is scaled as a ratio. + *

If the current maximum health is 400, and the player has 200, but the + * scale dictates 20, then the client will see 5 hearts (or 10 half hearts) + * out of 10 hearts.

+ */ + // @ts-ignore + healthScale(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableHorseData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableHorseData.d.ts new file mode 100644 index 00000000..53e67e18 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableHorseData.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableHorseData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets an {@link ImmutableValue} for the {@link HorseColor}. + */ + // @ts-ignore + color(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets an {@link ImmutableValue} for the {@link HorseStyle}. + */ + // @ts-ignore + style(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableIgniteableData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableIgniteableData.d.ts new file mode 100644 index 00000000..193acc09 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableIgniteableData.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableIgniteableData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the remaining amount of + * "ticks" the {@link Entity} remains on fire. + */ + // @ts-ignore + fireTicks(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ImmutableBoundedValue} for the remaining amount of + * "ticks" before the fire will damage the owning {@link Entity}. + */ + // @ts-ignore + fireDelay(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableInvisibilityData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableInvisibilityData.d.ts new file mode 100644 index 00000000..cb53aec0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableInvisibilityData.d.ts @@ -0,0 +1,47 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableInvisibilityData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} of the "invisible" state of an + * {@link Entity}. + *

Note that this is different from the {@link #vanish()} state as when an + * {@link Entity} is "invisible", update packets are still sent to all clients + * and the server. Likewise, no

+ */ + // @ts-ignore + invisible(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} of the "vanish" state of an + * {@link Entity}. + */ + // @ts-ignore + vanish(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link Value} of whether an {@link Entity} that is "vanished" will + * be ignored for collision detection. The collision detection can affect + * collisions with other {@link Entity entities}, blocks, etc. + */ + // @ts-ignore + ignoresCollisionDetection(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link Value} of whether an {@link Entity} that is "vanished" will + * be ignored when other {@link Entity entities} are processing possible "targets" + * for their AI. + */ + // @ts-ignore + untargetable(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableInvulnerabilityData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableInvulnerabilityData.d.ts new file mode 100644 index 00000000..c1ca4740 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableInvulnerabilityData.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableInvulnerabilityData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the amount of "ticks" of + * "invulnerability". + */ + // @ts-ignore + invulnerableTicks(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the boolean {@link ImmutableValue} which represents if an entity is + * invulnerable from most damage sources besides besides the void, + * players in creative mode, and manual killing like the /kill command. + *

This does not cover creative mode, where players can also + * be invulnerable.

+ */ + // @ts-ignore + invulnerable(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableJohnnyData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableJohnnyData.d.ts new file mode 100644 index 00000000..e4a1dbcd --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableJohnnyData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableJohnnyData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for whether this mob is exhibiting + * "johnny" behavior. + */ + // @ts-ignore + johnny(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableJoinData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableJoinData.d.ts new file mode 100644 index 00000000..f6ebdfe9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableJoinData.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableJoinData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} of the {@link Instant} that a + * {@link Player} joined the {@link Server} the first time. + */ + // @ts-ignore + firstPlayed(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} of the {@link Instant} that a + * {@link Player} joined the {@link Server} the last time. + */ + // @ts-ignore + lastPlayed(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableKnockbackData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableKnockbackData.d.ts new file mode 100644 index 00000000..0a9db8d9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableKnockbackData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableKnockbackData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the "knockback strength. + */ + // @ts-ignore + knockbackStrength(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableLeashData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableLeashData.d.ts new file mode 100644 index 00000000..e88d8529 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableLeashData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableLeashData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "leash holder". + */ + // @ts-ignore + leashHolder(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableMinecartBlockData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableMinecartBlockData.d.ts new file mode 100644 index 00000000..2211b495 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableMinecartBlockData.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableMinecartBlockData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link BlockState} represented by the {@link Minecart}. + */ + // @ts-ignore + block(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the offset of the represented block, in "pixels". + *

Positive values move the block upwards in relation to the minecart, + * and negative values move the block downwards.

+ */ + // @ts-ignore + offset(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableMovementSpeedData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableMovementSpeedData.d.ts new file mode 100644 index 00000000..3294ff5f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableMovementSpeedData.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableMovementSpeedData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the "walking" speed. + */ + // @ts-ignore + walkSpeed(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableBoundedValue} for the "flying" speed. + */ + // @ts-ignore + flySpeed(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableOcelotData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableOcelotData.d.ts new file mode 100644 index 00000000..c131412b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableOcelotData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableOcelotData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableParrotData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableParrotData.d.ts new file mode 100644 index 00000000..3c0a0bca --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableParrotData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableParrotData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePassengerData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePassengerData.d.ts new file mode 100644 index 00000000..8e09a9d2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePassengerData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutablePassengerData extends org.spongepowered.api.data.manipulator.immutable.ImmutableListData { + /** + * Gets the {@link ImmutableListValue} for the current {@link Entity} + * acting as a passenger. + */ + // @ts-ignore + passengers(): org.spongepowered.api.data.value.immutable.ImmutableListValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePersistingData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePersistingData.d.ts new file mode 100644 index 00000000..2a527213 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePersistingData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutablePersistingData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "persist" state of an + * {@link Entity}. + */ + // @ts-ignore + persists(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePickupDelayData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePickupDelayData.d.ts new file mode 100644 index 00000000..2e901959 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePickupDelayData.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutablePickupDelayData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the "pickup delay". + */ + // @ts-ignore + delay(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ImmutableValue} for the "is infinite" state of + * the pickup delay. + */ + // @ts-ignore + infinite(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePickupRuleData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePickupRuleData.d.ts new file mode 100644 index 00000000..945e54da --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePickupRuleData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutablePickupRuleData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePigSaddleData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePigSaddleData.d.ts new file mode 100644 index 00000000..76a723e5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePigSaddleData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutablePigSaddleData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "saddled" state. + */ + // @ts-ignore + saddle(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePlayerCreatedData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePlayerCreatedData.d.ts new file mode 100644 index 00000000..cb313ad7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePlayerCreatedData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutablePlayerCreatedData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "player created" state of an + * {@link IronGolem}. + */ + // @ts-ignore + playerCreated(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePlayingData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePlayingData.d.ts new file mode 100644 index 00000000..aef9ec4f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutablePlayingData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutablePlayingData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "playing" state. + */ + // @ts-ignore + playing(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableRabbitData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableRabbitData.d.ts new file mode 100644 index 00000000..b1013541 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableRabbitData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableRabbitData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableRespawnLocation.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableRespawnLocation.d.ts new file mode 100644 index 00000000..63d9443a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableRespawnLocation.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableRespawnLocation extends org.spongepowered.api.data.manipulator.immutable.ImmutableMappedData { + /** + * Gets the {@link ImmutableMapValue} for the "respawn" locations set for + * various {@link World#getUniqueId()} such that a {@link Player} may not + * have a respawn point for a particular {@link World}, but may have + * multiple respawn points for other {@link World}s. + */ + // @ts-ignore + respawnLocation(): org.spongepowered.api.data.value.immutable.ImmutableMapValue; + /** + * Gets the respawn location for the given world, if available. If the + * respawn point for that world has not been set, {@link Optional#empty()} + * is returned. + */ + // @ts-ignore + getForWorld(world: org.spongepowered.api.world.World): java.util.Optional; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableScreamingData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableScreamingData.d.ts new file mode 100644 index 00000000..9b9787c2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableScreamingData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableScreamingData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "screaming" state. + */ + // @ts-ignore + screaming(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableShatteringData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableShatteringData.d.ts new file mode 100644 index 00000000..bf1e7e2d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableShatteringData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableShatteringData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "shattering" state of an + * {@link EnderPearl}. + */ + // @ts-ignore + willShatter(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableShearedData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableShearedData.d.ts new file mode 100644 index 00000000..ac7fcfce --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableShearedData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableShearedData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} of the "sheared" state. + */ + // @ts-ignore + sheared(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSilentData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSilentData.d.ts new file mode 100644 index 00000000..275f41d8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSilentData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableSilentData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "silent state". + */ + // @ts-ignore + silent(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSittingData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSittingData.d.ts new file mode 100644 index 00000000..6520b08e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSittingData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableSittingData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "sitting" state. + */ + // @ts-ignore + sitting(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSizeData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSizeData.d.ts new file mode 100644 index 00000000..88d89eb1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSizeData.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableSizeData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "base" size. + */ + // @ts-ignore + base(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the "height" size. + */ + // @ts-ignore + height(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the "scale" size. + */ + // @ts-ignore + scale(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSkinData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSkinData.d.ts new file mode 100644 index 00000000..e16de8c5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSkinData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableSkinData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the {@link UUID} of the skin to + * display on a {@link Humanoid} entity for customization. + */ + // @ts-ignore + skinUniqueId(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSleepingData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSleepingData.d.ts new file mode 100644 index 00000000..5f9d3366 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSleepingData.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableSleepingData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "sleeping" state. + */ + // @ts-ignore + sleeping(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for whether the owning {@link Player}'s + * "sleeping" state is ignored when vanilla mechanics dictate that all + * {@link Player}s must be sleeping to advance through the night. + */ + // @ts-ignore + ignoreSleeping(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSlimeData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSlimeData.d.ts new file mode 100644 index 00000000..d6231f48 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSlimeData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableSlimeData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "size" of a slime. + */ + // @ts-ignore + size(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSneakingData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSneakingData.d.ts new file mode 100644 index 00000000..6de9458a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSneakingData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableSneakingData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "sneaking" state. + */ + // @ts-ignore + sneaking(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSprintData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSprintData.d.ts new file mode 100644 index 00000000..6fe8c396 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableSprintData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableSprintData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "sprinting" state. + */ + // @ts-ignore + sprinting(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableStatisticData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableStatisticData.d.ts new file mode 100644 index 00000000..59cf90dc --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableStatisticData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableStatisticData extends org.spongepowered.api.data.manipulator.immutable.ImmutableMappedData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableStuckArrowsData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableStuckArrowsData.d.ts new file mode 100644 index 00000000..dc9743f2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableStuckArrowsData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableStuckArrowsData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the stuck arrows. + */ + // @ts-ignore + stuckArrows(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableTameableData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableTameableData.d.ts new file mode 100644 index 00000000..f06a3df5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableTameableData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableTameableData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableOptionalValue} for the {@link UUID} of the + * {@link Tamer}. + */ + // @ts-ignore + owner(): org.spongepowered.api.data.value.immutable.ImmutableOptionalValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableTargetedEntityData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableTargetedEntityData.d.ts new file mode 100644 index 00000000..c26268b6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableTargetedEntityData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableTargetedEntityData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the targeted {@link Entity}. + */ + // @ts-ignore + value(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableTradeOfferData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableTradeOfferData.d.ts new file mode 100644 index 00000000..08b31008 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableTradeOfferData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableTradeOfferData extends org.spongepowered.api.data.manipulator.immutable.ImmutableListData { + /** + * Gets the {@link ImmutableListValue} of {@link TradeOffer}s that can be + * offered. + */ + // @ts-ignore + tradeOffers(): org.spongepowered.api.data.value.immutable.ImmutableListValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableVehicleData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableVehicleData.d.ts new file mode 100644 index 00000000..3d9f282a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableVehicleData.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableVehicleData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the current "vehicle" being ridden. + */ + // @ts-ignore + vehicle(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the base {@link ImmutableValue} for the "base vehicle" being ridden + * such that the current vehicle may be riding another {@link Entity}, + * causing that entity to be called the "base vehicle". + */ + // @ts-ignore + baseVehicle(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableVelocityData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableVelocityData.d.ts new file mode 100644 index 00000000..7d7c37ba --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.entity.ImmutableVelocityData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace entity { + // @ts-ignore + interface ImmutableVelocityData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the current velocity as a + * {@link Vector3d}. + */ + // @ts-ignore + velocity(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableAuthorData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableAuthorData.d.ts new file mode 100644 index 00000000..b6f5d1e7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableAuthorData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutableAuthorData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "author" of a book. + */ + // @ts-ignore + author(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableBlockItemData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableBlockItemData.d.ts new file mode 100644 index 00000000..4539f178 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableBlockItemData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutableBlockItemData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the currently represented + * {@link BlockState}. + */ + // @ts-ignore + state(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableBreakableData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableBreakableData.d.ts new file mode 100644 index 00000000..c30dd156 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableBreakableData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutableBreakableData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableSetValue} for all known {@link BlockType}s that + * can be broken by the owning {@link ItemStack}. + */ + // @ts-ignore + breakable(): org.spongepowered.api.data.value.immutable.ImmutableSetValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableCoalData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableCoalData.d.ts new file mode 100644 index 00000000..ed4d472b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableCoalData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutableCoalData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableCookedFishData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableCookedFishData.d.ts new file mode 100644 index 00000000..66e2815a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableCookedFishData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutableCookedFishData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableDurabilityData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableDurabilityData.d.ts new file mode 100644 index 00000000..bbbcd3c9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableDurabilityData.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutableDurabilityData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the "durability" remaining. + * The durability is a number signifying how many "uses' remain on the + * item. When the durability reaches 0, usually, the item breaks. + */ + // @ts-ignore + durability(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ImmutableValue} for the "unbreakable" state of the + * {@link ItemStack}. While the {@link ItemStack} is "unbreakable", + * the durability can not change. + */ + // @ts-ignore + unbreakable(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableEnchantmentData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableEnchantmentData.d.ts new file mode 100644 index 00000000..2fc91994 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableEnchantmentData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutableEnchantmentData extends org.spongepowered.api.data.manipulator.immutable.ImmutableListData { + /** + * Gets the {@link ImmutableListValue} of {@link Enchantment}s on + * item stacks. + */ + // @ts-ignore + enchantments(): org.spongepowered.api.data.value.immutable.ImmutableListValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableFishData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableFishData.d.ts new file mode 100644 index 00000000..71c6832b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableFishData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutableFishData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableGenerationData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableGenerationData.d.ts new file mode 100644 index 00000000..a065f429 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableGenerationData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutableGenerationData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} that represents the "generation" + * state of a book. + */ + // @ts-ignore + generation(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableGoldenAppleData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableGoldenAppleData.d.ts new file mode 100644 index 00000000..22b85cef --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableGoldenAppleData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutableGoldenAppleData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableHideData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableHideData.d.ts new file mode 100644 index 00000000..c77c73d4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableHideData.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutableHideData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "enchantments hidden" state of an itemstack. + */ + // @ts-ignore + hideEnchantments(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the "attributes hidden" state of an itemstack. + */ + // @ts-ignore + hideAttributes(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the "unbreakable hidden" state of an itemstack. + */ + // @ts-ignore + hideUnbreakable(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the "can destroy hidden" state of an itemstack. + */ + // @ts-ignore + hideCanDestroy(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the "can destroy hidden" state of an itemstack. + */ + // @ts-ignore + hideCanPlace(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the "miscellaneous hidden" state of an itemstack. + */ + // @ts-ignore + hideMiscellaneous(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableInventoryItemData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableInventoryItemData.d.ts new file mode 100644 index 00000000..7e13f54c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableInventoryItemData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutableInventoryItemData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator, org.spongepowered.api.item.inventory.Carrier { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableLoreData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableLoreData.d.ts new file mode 100644 index 00000000..ee693755 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableLoreData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutableLoreData extends org.spongepowered.api.data.manipulator.immutable.ImmutableListData { + /** + * Gets the {@link ImmutableListValue} of the "lore" {@link Text}. + */ + // @ts-ignore + lore(): org.spongepowered.api.data.value.immutable.ImmutableListValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableMapItemData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableMapItemData.d.ts new file mode 100644 index 00000000..73e6a97e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableMapItemData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutableMapItemData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutablePagedData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutablePagedData.d.ts new file mode 100644 index 00000000..16498894 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutablePagedData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutablePagedData extends org.spongepowered.api.data.manipulator.immutable.ImmutableListData { + /** + * Gets the {@link ImmutableListValue} for the {@link Text} pages. + */ + // @ts-ignore + pages(): org.spongepowered.api.data.value.immutable.ImmutableListValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutablePlaceableData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutablePlaceableData.d.ts new file mode 100644 index 00000000..48f7131a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutablePlaceableData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutablePlaceableData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableSetValue} of {@link BlockType}s the + * {@link ItemType} can be placed on. + */ + // @ts-ignore + placeable(): org.spongepowered.api.data.value.immutable.ImmutableSetValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutablePlainPagedData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutablePlainPagedData.d.ts new file mode 100644 index 00000000..c16fca3d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutablePlainPagedData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutablePlainPagedData extends org.spongepowered.api.data.manipulator.immutable.ImmutableListData { + /** + * Gets the {@link ImmutableListValue} for the {@link Text} pages. + */ + // @ts-ignore + pages(): org.spongepowered.api.data.value.immutable.ImmutableListValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableSpawnableData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableSpawnableData.d.ts new file mode 100644 index 00000000..6645d2f1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableSpawnableData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutableSpawnableData extends org.spongepowered.api.data.manipulator.immutable.ImmutableVariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableStoredEnchantmentData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableStoredEnchantmentData.d.ts new file mode 100644 index 00000000..dda1f4fe --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.item.ImmutableStoredEnchantmentData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace item { + // @ts-ignore + interface ImmutableStoredEnchantmentData extends org.spongepowered.api.data.manipulator.immutable.ImmutableListData { + /** + * Gets the {@link ImmutableListValue} of {@link Enchantment}s stored + * such that it can be applied to an {@link ItemStack}. + */ + // @ts-ignore + enchantments(): org.spongepowered.api.data.value.immutable.ImmutableListValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableBannerData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableBannerData.d.ts new file mode 100644 index 00000000..140326f8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableBannerData.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace tileentity { + // @ts-ignore + interface ImmutableBannerData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the base {@link DyeColor}. + */ + // @ts-ignore + baseColor(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutablePatternListValue} of all patterns for the + * {@link Banner}. + */ + // @ts-ignore + patterns(): org.spongepowered.api.data.value.immutable.ImmutablePatternListValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableBeaconData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableBeaconData.d.ts new file mode 100644 index 00000000..e34657e2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableBeaconData.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace tileentity { + // @ts-ignore + interface ImmutableBeaconData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableOptionalValue} for the primary + * {@link PotionEffectType}. + */ + // @ts-ignore + primaryEffect(): org.spongepowered.api.data.value.immutable.ImmutableOptionalValue; + /** + * Gets the {@link ImmutableOptionalValue} for the secondary + * {@link PotionEffectType}. + */ + // @ts-ignore + secondaryEffect(): org.spongepowered.api.data.value.immutable.ImmutableOptionalValue; + /** + * Creates a new {@link ImmutableBeaconData} with {@link Optional#empty()} + * values for the primary and secondary {@link PotionEffectType}s. + */ + // @ts-ignore + clearEffects(): org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableBeaconData; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableBedData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableBedData.d.ts new file mode 100644 index 00000000..799be204 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableBedData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace tileentity { + // @ts-ignore + interface ImmutableBedData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the {@link DyeColor color}. + */ + // @ts-ignore + color(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableBrewingStandData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableBrewingStandData.d.ts new file mode 100644 index 00000000..86455abc --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableBrewingStandData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace tileentity { + // @ts-ignore + interface ImmutableBrewingStandData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the remaining brew time. + *

If nothing is brewing the immutable value is 0.

+ */ + // @ts-ignore + remainingBrewTime(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableCooldownData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableCooldownData.d.ts new file mode 100644 index 00000000..1d78a8d9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableCooldownData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace tileentity { + // @ts-ignore + interface ImmutableCooldownData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "cooldown" remaining. + */ + // @ts-ignore + cooldown(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableEndGatewayData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableEndGatewayData.d.ts new file mode 100644 index 00000000..0a9d0029 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableEndGatewayData.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace tileentity { + // @ts-ignore + interface ImmutableEndGatewayData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the exit portal location of + * the {@link EndGateway}. + */ + // @ts-ignore + exitPortal(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the "should use exact teleport + * location" state of the {@link EndGateway}. + */ + // @ts-ignore + exactTeleport(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the age of the {@link EndGateway}. + */ + // @ts-ignore + age(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the teleport cooldown of the + * {@link EndGateway}. + */ + // @ts-ignore + teleportCooldown(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableFurnaceData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableFurnaceData.d.ts new file mode 100644 index 00000000..f6f2f333 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableFurnaceData.d.ts @@ -0,0 +1,47 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace tileentity { + // @ts-ignore + interface ImmutableFurnaceData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableBoundedValue} for the already passed burn + * time of the {@link Furnace}. When the {@code #passedBurnTime()} is equal + * to the {@link #maxBurnTime()}, the current used fuel is depleted. + */ + // @ts-ignore + passedBurnTime(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ImmutableBoundedValue} for the maximum amount of fuel + * that can be supplied with the used fuel item. + *

This is represented by the flame icon in the {@link Furnace}, if the + * flame is 100% filled the value is exactly this one. So its the maximum + * of the {@link #passedBurnTime()}.

+ */ + // @ts-ignore + maxBurnTime(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ImmutableBoundedValue} for the already passed cook time + * of the {@link ItemStack} in the {@link Furnace}. When this is equal + * to the {@link #maxCookTime()}, the {@link ItemStack} is cooked. + */ + // @ts-ignore + passedCookTime(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link ImmutableBoundedValue} for the total time the + * {@link ItemStack} has to cook until it is cooked. + */ + // @ts-ignore + maxCookTime(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableLockableData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableLockableData.d.ts new file mode 100644 index 00000000..6ce729b9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableLockableData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace tileentity { + // @ts-ignore + interface ImmutableLockableData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the "lock" token. + */ + // @ts-ignore + lockToken(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableNoteData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableNoteData.d.ts new file mode 100644 index 00000000..5f32bc3f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableNoteData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace tileentity { + // @ts-ignore + interface ImmutableNoteData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the {@link NotePitch}. + */ + // @ts-ignore + note(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableSignData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableSignData.d.ts new file mode 100644 index 00000000..b8d63072 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableSignData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace tileentity { + // @ts-ignore + interface ImmutableSignData extends org.spongepowered.api.data.manipulator.immutable.ImmutableListData { + /** + * Gets the {@link ImmutableListValue} of {@link Text} for the {@link Sign} + * to show. + */ + // @ts-ignore + lines(): org.spongepowered.api.data.value.immutable.ImmutableListValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableStructureData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableStructureData.d.ts new file mode 100644 index 00000000..5a0262ba --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableStructureData.d.ts @@ -0,0 +1,68 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace immutable { + namespace tileentity { + // @ts-ignore + interface ImmutableStructureData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} for the author of the {@link Structure}. + */ + // @ts-ignore + author(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the ignore entities state of the {@link Structure}. + */ + // @ts-ignore + ignoreEntities(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the integrity of the {@link Structure}. + */ + // @ts-ignore + integrity(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the mode of the {@link Structure}. + */ + // @ts-ignore + mode(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the position of the {@link Structure}. + */ + // @ts-ignore + position(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the powered state of the {@link Structure}. + */ + // @ts-ignore + powered(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the seed of the {@link Structure}. + */ + // @ts-ignore + seed(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the show air state of the {@link Structure}. + */ + // @ts-ignore + showAir(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the show bounding box state of the {@link Structure}. + */ + // @ts-ignore + showBoundingBox(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Gets the {@link ImmutableValue} for the size of the {@link Structure}. + */ + // @ts-ignore + size(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.ColoredData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.ColoredData.d.ts new file mode 100644 index 00000000..d79d30cd --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.ColoredData.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + // @ts-ignore + interface ColoredData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the {@link Color}. + */ + // @ts-ignore + color(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.CommandData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.CommandData.d.ts new file mode 100644 index 00000000..8edd7017 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.CommandData.d.ts @@ -0,0 +1,45 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + // @ts-ignore + interface CommandData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the currently stored command. + */ + // @ts-ignore + storedCommand(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the success count of the last executed command. + *

The success count is the number of times the most recently used + * command of this command block succeeded. Most commands can only succeed + * once per execution, but certain commands (such as those which accept + * players as arguments) can succeed multiple times, and this value will be + * set accordingly. This success count can also be polled via a redstone + * comparator.

+ */ + // @ts-ignore + successCount(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets whether this command block will keep track of the output from the + * last command it executed. + */ + // @ts-ignore + doesTrackOutput(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the last command output. + *

This will only be available if {@link #doesTrackOutput()} is set to + * true, otherwise {@link Optional#empty()} will be returned.

+ */ + // @ts-ignore + lastOutput(): org.spongepowered.api.data.value.mutable.OptionalValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.DisplayNameData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.DisplayNameData.d.ts new file mode 100644 index 00000000..146f3ec8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.DisplayNameData.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + // @ts-ignore + interface DisplayNameData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the display name as a {@link Text}. The display name may be + * player set, or it may be undefined. + */ + // @ts-ignore + displayName(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.DyeableData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.DyeableData.d.ts new file mode 100644 index 00000000..06966f6f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.DyeableData.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + // @ts-ignore + interface DyeableData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.FireworkEffectData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.FireworkEffectData.d.ts new file mode 100644 index 00000000..f53e5c7c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.FireworkEffectData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + // @ts-ignore + interface FireworkEffectData extends org.spongepowered.api.data.manipulator.mutable.ListData { + /** + * Gets the {@link ListValue} of {@link FireworkEffect}s. + *

Note that for {@link ItemTypes#FIREWORK_CHARGE} only the first effect + * will apply to the charge.

+ */ + // @ts-ignore + effects(): org.spongepowered.api.data.value.mutable.ListValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.FireworkRocketData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.FireworkRocketData.d.ts new file mode 100644 index 00000000..ed5b477f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.FireworkRocketData.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + // @ts-ignore + interface FireworkRocketData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the flight modifier for this firework. + *

Flight modifiers are tiered ranks of flight duration. Generally, + * the modifier is used to calculate the fuse time of a firework when + * launched. This can be approximated by multiplying 10 and the modifier, + * and adding a random number between 0 and 13. Again, this is a general + * approximation of what vanilla Minecraft performs.

+ */ + // @ts-ignore + flightModifier(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.ListData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.ListData.d.ts new file mode 100644 index 00000000..3086fc44 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.ListData.d.ts @@ -0,0 +1,89 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + // @ts-ignore + interface ListData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link ListValue} of this {@link ListData}. + */ + // @ts-ignore + getListValue(): org.spongepowered.api.data.value.mutable.ListValue; + /** + * Gets the {@link List} value itself from this manipulator. + */ + // @ts-ignore + asList(): java.util.List; + /** + * Gets an element of type {@code E} by the provided {@code index}. + */ + // @ts-ignore + get(index: number): java.util.Optional; + /** + * Returns whether the underlying {@link List} contains the provided + * {@code element}. + */ + // @ts-ignore + contains(element: java.lang.Object): boolean; + /** + * Replaces the element at the specified position in this list with the + * specified element (optional operation). + */ + // @ts-ignore + setElement(index: number, element: java.lang.Object): org.spongepowered.api.data.manipulator.mutable.ListData; + /** + * Replaces the underlying list of elements with the provided {@link List} + * of elements. + */ + // @ts-ignore + setElements(elements: java.util.List): org.spongepowered.api.data.manipulator.mutable.ListData; + /** + * Appends the provided element at the end of the underlying {@link List}. + */ + // @ts-ignore + addElement(element: java.lang.Object): org.spongepowered.api.data.manipulator.mutable.ListData; + /** + * Inserts the specified element at the specified position in this list. + * Shifts the element currently at that position (if any) and any + * subsequent elements to the right (adds one to their indices). + */ + // @ts-ignore + addElement(index: number, element: java.lang.Object): org.spongepowered.api.data.manipulator.mutable.ListData; + /** + * Appends the provided {@code E} elements to the end of the internal list + * of elements. + */ + // @ts-ignore + addElements(elements: java.lang.Iterable): org.spongepowered.api.data.manipulator.mutable.ListData; + /** + * Removes the desired {@code element} from the desired {@code index}. + */ + // @ts-ignore + remove(index: number): org.spongepowered.api.data.manipulator.mutable.ListData; + /** + * Removes the desired {@code element} from the underlying {@link List}. + */ + // @ts-ignore + remove(element: java.lang.Object): org.spongepowered.api.data.manipulator.mutable.ListData; + /** + * Removes all of the provided {@code elements} from the underlying + * {@link List}. + */ + // @ts-ignore + removeAll(elements: java.lang.Iterable): org.spongepowered.api.data.manipulator.mutable.ListData; + /** + * Removes any and all {@code elements} that match {@code true} to + * the provided {@link Predicate} from the underlying {@link List}. + */ + // @ts-ignore + removeAll(predicate: java.util.function$.Predicate): org.spongepowered.api.data.manipulator.mutable.ListData; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.MappedData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.MappedData.d.ts new file mode 100644 index 00000000..a44884b8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.MappedData.d.ts @@ -0,0 +1,57 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + // @ts-ignore + interface MappedData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@code value} for the provided {@code key}, if available. + */ + // @ts-ignore + get(key: java.lang.Object): java.util.Optional; + /** + * Gets a {@link Set} of {@code keys} available in this manipulator. + */ + // @ts-ignore + getMapKeys(): java.util.Set; + /** + * Gets the {@link java.util.Map.Entry} {@link Set} of values. + */ + // @ts-ignore + getMapValues(): java.util.Set; + /** + * Gets the {@link MapValue} of this manipulator. + */ + // @ts-ignore + getMapValue(): org.spongepowered.api.data.value.mutable.MapValue; + /** + * Gets this manipulator as a {@link Map}. + */ + // @ts-ignore + asMap(): java.util.Map; + /** + * Sets the {@code value} with the provided {@code key}. + */ + // @ts-ignore + put(key: java.lang.Object, value: java.lang.Object): org.spongepowered.api.data.manipulator.mutable.MappedData; + /** + * Sets all available {@link Map#entrySet()} values into this + * {@link MappedData} manipulator. + */ + // @ts-ignore + putAll(map: java.util.Map): org.spongepowered.api.data.manipulator.mutable.MappedData; + /** + * Removes any values keyed to the provided {@code key}. + */ + // @ts-ignore + remove(key: java.lang.Object): org.spongepowered.api.data.manipulator.mutable.MappedData; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.MobSpawnerData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.MobSpawnerData.d.ts new file mode 100644 index 00000000..414baf2e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.MobSpawnerData.d.ts @@ -0,0 +1,82 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + // @ts-ignore + interface MobSpawnerData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the remaining delay before + * a new attempt at spawning an {@link Entity} is made. + */ + // @ts-ignore + remainingDelay(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the minimum spawn delay + * required between attempts to spawn an {@link Entity}. + */ + // @ts-ignore + minimumSpawnDelay(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the maximum spawn delay + * required between attempts to spawn an {@link Entity}. + */ + // @ts-ignore + maximumSpawnDelay(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the count of successful + * spawns of all {@link Entity} instances from the owning spawner. This + * count is simply a total count, there is no limitation on how many + * attempts are made to spawn an {@link Entity}. + */ + // @ts-ignore + spawnCount(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the limitation on the number + * of nearby {@link Entity} instances can exist near the owning spawner. The + * limitation is that if there are more {@link Entity} instances than the + * provided value, no attempts to spawn a new {@link Entity} will be made. + */ + // @ts-ignore + maximumNearbyEntities(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the minimum range a + * {@link Player} must remain in proximity of the spawner, such that if a + * {@link Player} is NOT within the provided range, no attempts to spawn an + * {@link Entity} is made. + */ + // @ts-ignore + requiredPlayerRange(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the maximum range that an + * {@link Entity} can be spawned from the spawner. + */ + // @ts-ignore + spawnRange(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link Value} for the overridden + * {@link WeightedSerializableObject}{@code } to spawn + * next. If possible, the next entity to spawn may be chosen from the + * already provided {@link #possibleEntitiesToSpawn()}. + */ + // @ts-ignore + nextEntityToSpawn(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link WeightedCollectionValue} of all possible + * {@link Entity} instances that can be spawned by the spawner. As they + * are all {@link WeightedSerializableObject}{@code } + * instances, their weight is defined as a {@link Random} to determine + * the next {@link Entity} that will be spawned, unless overridden by + * {@link #nextEntityToSpawn()}. + */ + // @ts-ignore + possibleEntitiesToSpawn(): org.spongepowered.api.data.value.mutable.WeightedCollectionValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.PotionEffectData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.PotionEffectData.d.ts new file mode 100644 index 00000000..1ef299cf --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.PotionEffectData.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + // @ts-ignore + interface PotionEffectData extends org.spongepowered.api.data.manipulator.mutable.ListData { + /** + * Gets the {@link ListValue} of the {@link PotionEffect}s. + */ + // @ts-ignore + effects(): org.spongepowered.api.data.value.mutable.ListValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.PotionTypeData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.PotionTypeData.d.ts new file mode 100644 index 00000000..39f701bf --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.PotionTypeData.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + // @ts-ignore + interface PotionTypeData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the potion type. + */ + // @ts-ignore + type(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.RepresentedItemData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.RepresentedItemData.d.ts new file mode 100644 index 00000000..42df6def --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.RepresentedItemData.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + // @ts-ignore + interface RepresentedItemData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the represented {@link ItemStack} as + * an {@link ItemStackSnapshot}. + */ + // @ts-ignore + item(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.RepresentedPlayerData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.RepresentedPlayerData.d.ts new file mode 100644 index 00000000..b2c3fb58 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.RepresentedPlayerData.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + // @ts-ignore + interface RepresentedPlayerData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value}{@link GameProfile} that is + * represented by the {@link DataHolder}. + */ + // @ts-ignore + owner(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.RotationalData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.RotationalData.d.ts new file mode 100644 index 00000000..0157eeef --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.RotationalData.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + // @ts-ignore + interface RotationalData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.SkullData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.SkullData.d.ts new file mode 100644 index 00000000..f7acb2d5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.SkullData.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + // @ts-ignore + interface SkullData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.TargetedLocationData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.TargetedLocationData.d.ts new file mode 100644 index 00000000..bc4d749d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.TargetedLocationData.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + // @ts-ignore + interface TargetedLocationData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the targeted {@link Vector3d}. + */ + // @ts-ignore + target(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.VariantData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.VariantData.d.ts new file mode 100644 index 00000000..d4b5de26 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.VariantData.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + // @ts-ignore + interface VariantData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} of the the element type. + */ + // @ts-ignore + type(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.WetData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.WetData.d.ts new file mode 100644 index 00000000..5ad3cef3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.WetData.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + // @ts-ignore + interface WetData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "wet" state. + */ + // @ts-ignore + wet(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.AttachedData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.AttachedData.d.ts new file mode 100644 index 00000000..0105b98a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.AttachedData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface AttachedData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "attached" state. + */ + // @ts-ignore + attached(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.AxisData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.AxisData.d.ts new file mode 100644 index 00000000..923a32d0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.AxisData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface AxisData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.BigMushroomData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.BigMushroomData.d.ts new file mode 100644 index 00000000..ed51adac --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.BigMushroomData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface BigMushroomData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.BrickData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.BrickData.d.ts new file mode 100644 index 00000000..2c16a400 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.BrickData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface BrickData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.ComparatorData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.ComparatorData.d.ts new file mode 100644 index 00000000..5feecad9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.ComparatorData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface ComparatorData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.ConnectedDirectionData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.ConnectedDirectionData.d.ts new file mode 100644 index 00000000..ec3e0de4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.ConnectedDirectionData.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface ConnectedDirectionData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link SetValue} for the currently "connected" + * {@link Direction}s. + */ + // @ts-ignore + connectedDirections(): org.spongepowered.api.data.value.mutable.SetValue; + /** + * Gets the {@link Value} for whether {@link Direction#NORTH} is + * "connected". + */ + // @ts-ignore + connectedNorth(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for whether {@link Direction#SOUTH} is + * "connected". + */ + // @ts-ignore + connectedSouth(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for whether {@link Direction#EAST} is + * "connected". + */ + // @ts-ignore + connectedEast(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for whether {@link Direction#WEST} is + * "connected". + */ + // @ts-ignore + connectedWest(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.DecayableData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.DecayableData.d.ts new file mode 100644 index 00000000..0ed20ba3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.DecayableData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface DecayableData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for whether the "decayable" state is + * {@code true} or {@code false}. + */ + // @ts-ignore + decayable(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.DelayableData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.DelayableData.d.ts new file mode 100644 index 00000000..a60eecef --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.DelayableData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface DelayableData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the delay. + */ + // @ts-ignore + delay(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.DirectionalData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.DirectionalData.d.ts new file mode 100644 index 00000000..68707dec --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.DirectionalData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface DirectionalData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the current "facing" {@link Direction}. + */ + // @ts-ignore + direction(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.DirtData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.DirtData.d.ts new file mode 100644 index 00000000..6b79fcc5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.DirtData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface DirtData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.DisarmedData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.DisarmedData.d.ts new file mode 100644 index 00000000..12dc304d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.DisarmedData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface DisarmedData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the current "disarmed" state. + */ + // @ts-ignore + disarmed(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.DisguisedBlockData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.DisguisedBlockData.d.ts new file mode 100644 index 00000000..66095a44 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.DisguisedBlockData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface DisguisedBlockData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.DoublePlantData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.DoublePlantData.d.ts new file mode 100644 index 00000000..ce2260b5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.DoublePlantData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface DoublePlantData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.DropData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.DropData.d.ts new file mode 100644 index 00000000..7d873585 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.DropData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface DropData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "droppable" state. + */ + // @ts-ignore + willDrop(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.ExtendedData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.ExtendedData.d.ts new file mode 100644 index 00000000..4891b695 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.ExtendedData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface ExtendedData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "extended" state. + */ + // @ts-ignore + extended(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.FilledData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.FilledData.d.ts new file mode 100644 index 00000000..915c4367 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.FilledData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface FilledData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "filled" state. + */ + // @ts-ignore + filled(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.FluidLevelData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.FluidLevelData.d.ts new file mode 100644 index 00000000..e6301a96 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.FluidLevelData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface FluidLevelData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} of the "fluid level" state. + */ + // @ts-ignore + level(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.GrowthData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.GrowthData.d.ts new file mode 100644 index 00000000..406ff4be --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.GrowthData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface GrowthData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the "growth" stage. + */ + // @ts-ignore + growthStage(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.HingeData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.HingeData.d.ts new file mode 100644 index 00000000..505d3e07 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.HingeData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface HingeData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.InWallData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.InWallData.d.ts new file mode 100644 index 00000000..22213d17 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.InWallData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface InWallData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "in-wall" state. + */ + // @ts-ignore + inWall(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.LayeredData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.LayeredData.d.ts new file mode 100644 index 00000000..40026414 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.LayeredData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface LayeredData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the "layer" state. + */ + // @ts-ignore + layer(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.LogAxisData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.LogAxisData.d.ts new file mode 100644 index 00000000..e07004c6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.LogAxisData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface LogAxisData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.MoistureData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.MoistureData.d.ts new file mode 100644 index 00000000..a66d5da4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.MoistureData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface MoistureData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the "moisture" state. + */ + // @ts-ignore + moisture(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.OccupiedData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.OccupiedData.d.ts new file mode 100644 index 00000000..9fc250b6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.OccupiedData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface OccupiedData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "occupied" state. + */ + // @ts-ignore + occupied(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.OpenData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.OpenData.d.ts new file mode 100644 index 00000000..21a0265d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.OpenData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface OpenData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "open" state. + */ + // @ts-ignore + open(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.PistonData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.PistonData.d.ts new file mode 100644 index 00000000..d864794a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.PistonData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface PistonData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.PlantData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.PlantData.d.ts new file mode 100644 index 00000000..c2af93d7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.PlantData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface PlantData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.PortionData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.PortionData.d.ts new file mode 100644 index 00000000..61a7f526 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.PortionData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface PortionData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.PoweredData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.PoweredData.d.ts new file mode 100644 index 00000000..765e5370 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.PoweredData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface PoweredData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "powered" state. + */ + // @ts-ignore + powered(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.PrismarineData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.PrismarineData.d.ts new file mode 100644 index 00000000..a863b77e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.PrismarineData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface PrismarineData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.QuartzData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.QuartzData.d.ts new file mode 100644 index 00000000..141a534d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.QuartzData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface QuartzData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.RailDirectionData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.RailDirectionData.d.ts new file mode 100644 index 00000000..281d95df --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.RailDirectionData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface RailDirectionData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.RedstonePoweredData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.RedstonePoweredData.d.ts new file mode 100644 index 00000000..4c059e9c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.RedstonePoweredData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface RedstonePoweredData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the output of "redstone + * power". + */ + // @ts-ignore + power(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.SandData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.SandData.d.ts new file mode 100644 index 00000000..08bbd14f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.SandData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface SandData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.SandstoneData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.SandstoneData.d.ts new file mode 100644 index 00000000..c417d762 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.SandstoneData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface SandstoneData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.SeamlessData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.SeamlessData.d.ts new file mode 100644 index 00000000..56288c01 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.SeamlessData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface SeamlessData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "seamless" state. + */ + // @ts-ignore + seamless(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.ShrubData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.ShrubData.d.ts new file mode 100644 index 00000000..d34757d6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.ShrubData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface ShrubData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.SlabData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.SlabData.d.ts new file mode 100644 index 00000000..15ea0520 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.SlabData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface SlabData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.SnowedData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.SnowedData.d.ts new file mode 100644 index 00000000..e947328b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.SnowedData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface SnowedData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "snowed" state. + */ + // @ts-ignore + hasSnow(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.StairShapeData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.StairShapeData.d.ts new file mode 100644 index 00000000..eb988b74 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.StairShapeData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface StairShapeData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.StoneData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.StoneData.d.ts new file mode 100644 index 00000000..0d47d915 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.StoneData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface StoneData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.TreeData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.TreeData.d.ts new file mode 100644 index 00000000..2d3f0404 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.TreeData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface TreeData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.WallData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.WallData.d.ts new file mode 100644 index 00000000..e818b216 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.WallData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface WallData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.WireAttachmentData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.WireAttachmentData.d.ts new file mode 100644 index 00000000..f90eb722 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.block.WireAttachmentData.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace block { + // @ts-ignore + interface WireAttachmentData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the current {@link MapValue} for the available {@link Direction}s + * and associated{@link WireAttachmentType}s. + */ + // @ts-ignore + wireAttachments(): org.spongepowered.api.data.value.mutable.MapValue; + /** + * Gets the {@link Value} for the {@link Direction#NORTH}'s + * {@link WireAttachmentType}. + */ + // @ts-ignore + wireAttachmentNorth(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the {@link Direction#SOUTH}'s + * {@link WireAttachmentType}. + */ + // @ts-ignore + wireAttachmentSouth(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the {@link Direction#EAST}'s + * {@link WireAttachmentType}. + */ + // @ts-ignore + wireAttachmentEast(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the {@link Direction#WEST}'s + * {@link WireAttachmentType}. + */ + // @ts-ignore + wireAttachmentWest(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractBooleanData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractBooleanData.d.ts new file mode 100644 index 00000000..7fd11bcc --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractBooleanData.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace common { + // @ts-ignore + abstract class AbstractBooleanData extends org.spongepowered.api.data.manipulator.mutable.common.AbstractSingleData { + // @ts-ignore + constructor(value: boolean, usedKey: org.spongepowered.api.data.key.Key, defaultValue: boolean) + // @ts-ignore + constructor(usedKey: org.spongepowered.api.data.key.Key, value: boolean) + // @ts-ignore + constructor(usedKey: org.spongepowered.api.data.key.Key, value: boolean, defaultValue: boolean) + // @ts-ignore + protected getValueGetter(): org.spongepowered.api.data.value.mutable.Value; + // @ts-ignore + public toContainer(): org.spongepowered.api.data.DataContainer; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractBoundedComparableData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractBoundedComparableData.d.ts new file mode 100644 index 00000000..faaf64ec --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractBoundedComparableData.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace common { + // @ts-ignore + abstract class AbstractBoundedComparableData extends org.spongepowered.api.data.manipulator.mutable.common.AbstractSingleData { + // @ts-ignore + constructor(value: java.lang.Comparable, usedKey: org.spongepowered.api.data.key.Key, comparator: java.util.Comparator, lowerBound: java.lang.Comparable, upperBound: java.lang.Comparable, defaultValue: java.lang.Comparable) + // @ts-ignore + constructor(usedKey: org.spongepowered.api.data.key.Key, value: java.lang.Comparable, lowerBound: java.lang.Comparable, upperBound: java.lang.Comparable, comparator: java.util.Comparator) + // @ts-ignore + constructor(usedKey: org.spongepowered.api.data.key.Key, value: java.lang.Comparable, defaultValue: java.lang.Comparable, lowerBound: java.lang.Comparable, upperBound: java.lang.Comparable, comparator: java.util.Comparator) + // @ts-ignore + protected comparator: java.util.Comparator; + // @ts-ignore + protected lowerBound: java.lang.Comparable; + // @ts-ignore + protected upperBound: java.lang.Comparable; + // @ts-ignore + protected defaultValue: java.lang.Comparable; + // @ts-ignore + protected getValueGetter(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + // @ts-ignore + public setValue(value: java.lang.Comparable): org.spongepowered.api.data.manipulator.DataManipulator; + // @ts-ignore + public toContainer(): org.spongepowered.api.data.DataContainer; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractData.d.ts new file mode 100644 index 00000000..591618b6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractData.d.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace common { + // @ts-ignore + abstract class AbstractData extends java.lang.Object implements org.spongepowered.api.data.manipulator.DataManipulator { + // @ts-ignore + constructor() + /** + * Simple registration method for the keys to value return methods. + *

Note that this is still usable with Java 8 method references. + * Referencing {@code this::getfoo()} is recommended.

+ */ + // @ts-ignore + protected registerKeyValue(key: org.spongepowered.api.data.key.Key, func: java.util.function$.Supplier): void; + /** + * Simple registration method for the keys to field getter methods. + *

Note that this is still usable with Java 8 method references. + * Referencing {@code this::getfoo()} is recommended.

+ */ + // @ts-ignore + protected registerFieldGetter(key: org.spongepowered.api.data.key.Key, func: java.util.function$.Supplier): void; + /** + * Simple registration method for the keys to field setter methods. + *

Note that this is still usable with Java 8 method references. + * Referencing {@code this::setFoo(something)} is recommended.

+ */ + // @ts-ignore + protected registerFieldSetter(key: org.spongepowered.api.data.key.Key, func: java.util.function$.Consumer): void; + /** + * A required registration method for registering the various fields and + * value getters. It's suggested that if multiple fields are used, each + * field can be represented as a {@link Value} such that there is an + * associated {@link Key} to "get" that field value. + */ + // @ts-ignore + protected abstract registerGettersAndSetters(): void; + // @ts-ignore + public set(key: org.spongepowered.api.data.key.Key, value: java.lang.Object): org.spongepowered.api.data.manipulator.DataManipulator; + // @ts-ignore + public transform(key: org.spongepowered.api.data.key.Key, func: java.util.function$.Function): org.spongepowered.api.data.manipulator.DataManipulator; + // @ts-ignore + public get(key: org.spongepowered.api.data.key.Key): java.util.Optional; + // @ts-ignore + public getValue(key: org.spongepowered.api.data.key.Key): java.util.Optional; + // @ts-ignore + public supports(key: org.spongepowered.api.data.key.Key): boolean; + // @ts-ignore + public getKeys(): java.util.Set; + // @ts-ignore + public getValues(): java.util.Set; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public toContainer(): org.spongepowered.api.data.DataContainer; + /** + * Implement this method to add the data to be persisted. + */ + // @ts-ignore + protected fillContainer(dataContainer: org.spongepowered.api.data.DataContainer): org.spongepowered.api.data.DataContainer; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractIntData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractIntData.d.ts new file mode 100644 index 00000000..76526a27 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractIntData.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace common { + // @ts-ignore + abstract class AbstractIntData extends org.spongepowered.api.data.manipulator.mutable.common.AbstractSingleData { + // @ts-ignore + constructor(value: number, usedKey: org.spongepowered.api.data.key.Key) + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractListData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractListData.d.ts new file mode 100644 index 00000000..594d2ba2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractListData.d.ts @@ -0,0 +1,44 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace common { + // @ts-ignore + abstract class AbstractListData extends org.spongepowered.api.data.manipulator.mutable.common.AbstractSingleData implements org.spongepowered.api.data.manipulator.mutable.ListData { + // @ts-ignore + constructor(value: java.util.List, usedKey: org.spongepowered.api.data.key.Key) + // @ts-ignore + constructor(usedKey: org.spongepowered.api.data.key.Key, value: java.util.List) + // @ts-ignore + constructor(usedKey: org.spongepowered.api.data.key.Key, value: java.util.List, defaultValue: java.util.List) + // @ts-ignore + protected getValueGetter(): org.spongepowered.api.data.value.mutable.ListValue; + // @ts-ignore + public get(key: org.spongepowered.api.data.key.Key): java.util.Optional; + // @ts-ignore + public supports(key: org.spongepowered.api.data.key.Key): boolean; + // @ts-ignore + public abstract asImmutable(): org.spongepowered.api.data.manipulator.immutable.ImmutableListData; + // @ts-ignore + protected getValue(): java.util.List; + // @ts-ignore + protected setValue(value: java.util.List): org.spongepowered.api.data.manipulator.mutable.ListData; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public getListValue(): org.spongepowered.api.data.value.mutable.ListValue; + // @ts-ignore + public asList(): java.util.List; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractMappedData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractMappedData.d.ts new file mode 100644 index 00000000..f362780f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractMappedData.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace common { + // @ts-ignore + abstract class AbstractMappedData extends org.spongepowered.api.data.manipulator.mutable.common.AbstractSingleData implements org.spongepowered.api.data.manipulator.mutable.MappedData { + // @ts-ignore + constructor(value: java.util.Map, usedKey: org.spongepowered.api.data.key.Key) + // @ts-ignore + constructor(usedKey: org.spongepowered.api.data.key.Key, value: java.util.Map) + // @ts-ignore + constructor(usedKey: org.spongepowered.api.data.key.Key, value: java.util.Map, defaultValue: java.util.Map) + // @ts-ignore + protected getValueGetter(): org.spongepowered.api.data.value.mutable.MapValue; + // @ts-ignore + protected getValue(): java.util.Map; + // @ts-ignore + protected setValue(value: java.util.Map): org.spongepowered.api.data.manipulator.mutable.MappedData; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public getMapValue(): org.spongepowered.api.data.value.mutable.MapValue; + // @ts-ignore + public asMap(): java.util.Map; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractSingleCatalogData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractSingleCatalogData.d.ts new file mode 100644 index 00000000..4dc4efe3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractSingleCatalogData.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace common { + // @ts-ignore + abstract class AbstractSingleCatalogData extends org.spongepowered.api.data.manipulator.mutable.common.AbstractSingleData implements org.spongepowered.api.data.manipulator.mutable.VariantData { + // @ts-ignore + constructor(value: org.spongepowered.api.CatalogType, usedKey: org.spongepowered.api.data.key.Key) + // @ts-ignore + constructor(usedKey: org.spongepowered.api.data.key.Key, value: org.spongepowered.api.CatalogType) + // @ts-ignore + constructor(usedKey: org.spongepowered.api.data.key.Key, value: org.spongepowered.api.CatalogType, defaultValue: org.spongepowered.api.CatalogType) + // @ts-ignore + protected getValueGetter(): org.spongepowered.api.data.value.mutable.Value; + // @ts-ignore + public type(): org.spongepowered.api.data.value.mutable.Value; + // @ts-ignore + public toContainer(): org.spongepowered.api.data.DataContainer; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractSingleData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractSingleData.d.ts new file mode 100644 index 00000000..ebef9614 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractSingleData.d.ts @@ -0,0 +1,62 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace common { + // @ts-ignore + abstract class AbstractSingleData extends org.spongepowered.api.data.manipulator.mutable.common.AbstractData { + // @ts-ignore + constructor(value: java.lang.Object, usedKey: org.spongepowered.api.data.key.Key) + // @ts-ignore + constructor(usedKey: org.spongepowered.api.data.key.Key, value: java.lang.Object) + // @ts-ignore + constructor(usedKey: org.spongepowered.api.data.key.Key, value: java.lang.Object, defaultValue: java.lang.Object) + // @ts-ignore + protected usedKey: org.spongepowered.api.data.key.Key; + // @ts-ignore + protected defaultValue: java.lang.Object; + // @ts-ignore + protected value: java.lang.Object; + // @ts-ignore + protected registerGettersAndSetters(): void; + /** + * Gets the {@link Value} as a method since this manipulator only focuses + * on a single value. + */ + // @ts-ignore + protected abstract getValueGetter(): org.spongepowered.api.data.value.mutable.Value; + // @ts-ignore + public get(key: org.spongepowered.api.data.key.Key): java.util.Optional; + // @ts-ignore + public supports(key: org.spongepowered.api.data.key.Key): boolean; + // @ts-ignore + public abstract asImmutable(): org.spongepowered.api.data.manipulator.ImmutableDataManipulator; + /** + * A simple getter for usage with a {@link Supplier} for + * the {@link #registerFieldGetter(Key, Supplier)} method. + */ + // @ts-ignore + protected getValue(): java.lang.Object; + /** + * A simple setter for usage with a {@link Consumer} for + * the {@link #registerFieldSetter(Key, Consumer)} method. + */ + // @ts-ignore + protected setValue(value: java.lang.Object): org.spongepowered.api.data.manipulator.DataManipulator; + // @ts-ignore + protected fillContainer(dataContainer: org.spongepowered.api.data.DataContainer): org.spongepowered.api.data.DataContainer; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractSingleEnumData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractSingleEnumData.d.ts new file mode 100644 index 00000000..e4ed534d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.common.AbstractSingleEnumData.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace common { + // @ts-ignore + abstract class AbstractSingleEnumData extends org.spongepowered.api.data.manipulator.mutable.common.AbstractSingleData { + // @ts-ignore + constructor(value: java.lang.Enum, usedKey: org.spongepowered.api.data.key.Key, defaultValue: java.lang.Enum) + // @ts-ignore + constructor(usedKey: org.spongepowered.api.data.key.Key, value: java.lang.Enum) + // @ts-ignore + constructor(usedKey: org.spongepowered.api.data.key.Key, value: java.lang.Enum, defaultValue: java.lang.Enum) + // @ts-ignore + public toContainer(): org.spongepowered.api.data.DataContainer; + // @ts-ignore + protected fillContainer(dataContainer: org.spongepowered.api.data.DataContainer): org.spongepowered.api.data.DataContainer; + // @ts-ignore + protected getValueGetter(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.AbsorptionData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.AbsorptionData.d.ts new file mode 100644 index 00000000..1b740ebd --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.AbsorptionData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface AbsorptionData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the absorption. + */ + // @ts-ignore + absorption(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.AccelerationData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.AccelerationData.d.ts new file mode 100644 index 00000000..0066aab9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.AccelerationData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface AccelerationData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the current acceleration as a + * {@link Vector3d}. + */ + // @ts-ignore + acceleration(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ActiveItemData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ActiveItemData.d.ts new file mode 100644 index 00000000..bdb98a3c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ActiveItemData.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface ActiveItemData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the item stack snapshot of the item that is currently being used. + *

If there is no item, the snapshot will be empty. You can check this + * with {@link ItemStackSnapshot#isEmpty()}.

+ */ + // @ts-ignore + activeItem(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.AffectsSpawningData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.AffectsSpawningData.d.ts new file mode 100644 index 00000000..4abd5cc0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.AffectsSpawningData.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface AffectsSpawningData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "affects spawning" state. + *

A {@link Player} who does not affect spawning will be treated as a + * spectator in regards to spawning. A {@link MobSpawner} will not be + * activated by his presence and mobs around him may naturally despawn + * if there is no other Player around who affects spawning.

+ */ + // @ts-ignore + affectsSpawning(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.AgeableData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.AgeableData.d.ts new file mode 100644 index 00000000..e4a440dc --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.AgeableData.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface AgeableData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the "age" state. + */ + // @ts-ignore + age(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link Value} for whether the {@link #age()} is + * considered to be an "adult". + */ + // @ts-ignore + adult(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.AgentData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.AgentData.d.ts new file mode 100644 index 00000000..7f9e79f6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.AgentData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface AgentData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for whether AI tasks are enabled or not. + */ + // @ts-ignore + aiEnabled(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.AggressiveData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.AggressiveData.d.ts new file mode 100644 index 00000000..d3a910b0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.AggressiveData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface AggressiveData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "aggressive" state. + */ + // @ts-ignore + aggressive(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.AngerableData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.AngerableData.d.ts new file mode 100644 index 00000000..66575ae3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.AngerableData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface AngerableData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the "anger" level. + */ + // @ts-ignore + angerLevel(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.AreaEffectCloudData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.AreaEffectCloudData.d.ts new file mode 100644 index 00000000..a3751c6e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.AreaEffectCloudData.d.ts @@ -0,0 +1,92 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface AreaEffectCloudData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Color} of this cloud, can be changed. + */ + // @ts-ignore + color(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@code radius} value of this cloud. + */ + // @ts-ignore + radius(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link ParticleType} of this cloud. + */ + // @ts-ignore + particleType(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the bounded {@code duration} value of this cloud. + */ + // @ts-ignore + duration(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the bounded {@code waitTime} value of this cloud. The wait time + * dictates how long until this cloud will affect {@link Entity} instances + * with {@link PotionEffect}s. + */ + // @ts-ignore + waitTime(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the bounded {@code radiusOnUse} value of this cloud. + * The radius is modified per {@link Entity} affected. + * Once the radius is {@code 0}, the cloud dissipates. + *

A positive radiusOnUse value will make the cloud grow, a negative + * one will make it shrink.

+ */ + // @ts-ignore + radiusOnUse(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the bounded {@code radiusPerTick} value of this cloud. + *

The radius is increased every tick. A radiusPerTick of 0 will cause + * the cloud to stay at its original size until its duration runs out, a + * positive number will make it grow, and a negative number will make it + * shrink whenever it applies its effect. + */ + // @ts-ignore + radiusPerTick(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the bounded {@code durationOnUse} value of this cloud. + * The duration on use is added to the duration for every time + * that this cloud applies it's {@link PotionEffect}s on an + * {@link Entity}. + *

If the duration on use is negative, every application of + * an effect to an entity will decrease the cloud's duration

+ */ + // @ts-ignore + durationOnUse(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the bounded {@code applicationDelay} value of this cloud. + * What this means is the application delay between times of application + * on an {@link Entity}. + */ + // @ts-ignore + applicationDelay(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link ListValue} of {@link PotionEffect}s of this cloud. + * The potion effects will affect any {@link Entity} according to the + * various delays and ticks remaining of this cloud. + */ + // @ts-ignore + effects(): org.spongepowered.api.data.value.mutable.ListValue; + /** + * Gets the bounded {@code age} value of this cloud. + */ + // @ts-ignore + age(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ArmorStandData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ArmorStandData.d.ts new file mode 100644 index 00000000..117b122b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ArmorStandData.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface ArmorStandData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Returns whether this armor stand is rendered invisible and simply a + * "marker". The inventory contents and nameplate will still show, but + * the body itself of the armor stand will not be visible. + */ + // @ts-ignore + marker(): org.spongepowered.api.data.value.mutable.Value; + /** + * Returns whether this armor stand is a small armor stand or not. + */ + // @ts-ignore + small(): org.spongepowered.api.data.value.mutable.Value; + /** + * Returns whether this armor stand shows arms or not. + *

Arms that do not show may also not show an item in hand.

+ */ + // @ts-ignore + arms(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets whether this armor stand has a visible base plate or not. + */ + // @ts-ignore + basePlate(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ArtData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ArtData.d.ts new file mode 100644 index 00000000..290997a5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ArtData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface ArtData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.BodyPartRotationalData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.BodyPartRotationalData.d.ts new file mode 100644 index 00000000..b765f750 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.BodyPartRotationalData.d.ts @@ -0,0 +1,54 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface BodyPartRotationalData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MapValue} of {@link BodyPart}s to {@link Vector3d} + * rotations. + */ + // @ts-ignore + partRotation(): org.spongepowered.api.data.value.mutable.MapValue; + /** + * Gets the direction the headpiece is aiming at. + */ + // @ts-ignore + headDirection(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the direction the body is aiming at. + */ + // @ts-ignore + bodyRotation(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the direction the left arm is aiming at. + */ + // @ts-ignore + leftArmDirection(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the direction the right arm is aiming at. + */ + // @ts-ignore + rightArmDirection(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the direction the left leg is aiming at. + */ + // @ts-ignore + leftLegDirection(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the direction the right leg is aiming at. + */ + // @ts-ignore + rightLegDirection(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.BreathingData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.BreathingData.d.ts new file mode 100644 index 00000000..e3a12cfc --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.BreathingData.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface BreathingData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the remaining air. Can be + * changed to {@code (air >= 0 && air <= maxAir)}. + */ + // @ts-ignore + remainingAir(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the maximum air capacity. + * The reasoning for it being bounded is that the air capacity must always + * remain at least 1. + */ + // @ts-ignore + maxAir(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.BreedableData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.BreedableData.d.ts new file mode 100644 index 00000000..b4ed87f9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.BreedableData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface BreedableData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "breedable" state. + */ + // @ts-ignore + breedable(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.CareerData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.CareerData.d.ts new file mode 100644 index 00000000..8816919b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.CareerData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface CareerData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ChargedData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ChargedData.d.ts new file mode 100644 index 00000000..eee15a71 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ChargedData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface ChargedData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the current "charged" state. + */ + // @ts-ignore + charged(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.CriticalHitData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.CriticalHitData.d.ts new file mode 100644 index 00000000..1419baee --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.CriticalHitData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface CriticalHitData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "critical hit" state. + */ + // @ts-ignore + criticalHit(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.CustomNameVisibleData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.CustomNameVisibleData.d.ts new file mode 100644 index 00000000..15c3c360 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.CustomNameVisibleData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface CustomNameVisibleData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Returns whether the display name is visible to players. + */ + // @ts-ignore + customNameVisible(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.DamageableData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.DamageableData.d.ts new file mode 100644 index 00000000..4cdf300c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.DamageableData.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface DamageableData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link OptionalValue} for the last attacker. + *

This will usually be an entity snapshot of a {@link Living}.

+ *

This data will usually only be present within 100 ticks of the attack + * occurring.

+ */ + // @ts-ignore + lastAttacker(): org.spongepowered.api.data.value.mutable.OptionalValue; + /** + * Gets the last amount of damage taken by this entity as an optional value. + *

This data will usually only be present within 100 ticks of the attack + * occurring.

+ */ + // @ts-ignore + lastDamage(): org.spongepowered.api.data.value.mutable.OptionalValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.DamagingData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.DamagingData.d.ts new file mode 100644 index 00000000..e4ef249b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.DamagingData.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface DamagingData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the damage this projectile will deal to a {@link Living} + * if hit. + */ + // @ts-ignore + damage(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MapValue} for representing the custom damage + * values to use if the owner strikes an entity of that type. + *

Note that in events, the damage defined for the provided + * {@link EntityType} will take priority over the "default" damage as + * defined from {@link #damage()}.

+ */ + // @ts-ignore + damageForEntity(): org.spongepowered.api.data.value.mutable.MapValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.DespawnDelayData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.DespawnDelayData.d.ts new file mode 100644 index 00000000..b68c9f88 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.DespawnDelayData.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface DespawnDelayData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the "despawn delay". + */ + // @ts-ignore + delay(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link Value} for the "is infinite" state of + * the despawn delay. + */ + // @ts-ignore + infinite(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.DisabledSlotsData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.DisabledSlotsData.d.ts new file mode 100644 index 00000000..8c41ba61 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.DisabledSlotsData.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface DisabledSlotsData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Controls slots that players can't take items from. + */ + // @ts-ignore + takingDisabled(): org.spongepowered.api.data.value.mutable.SetValue; + /** + * Controls slots that players can't place items into. + */ + // @ts-ignore + placingDisabled(): org.spongepowered.api.data.value.mutable.SetValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.DominantHandData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.DominantHandData.d.ts new file mode 100644 index 00000000..b6de363d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.DominantHandData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface DominantHandData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + /** + * Gets the {@link Value} representing the dominant {@link HandPreference} of an + * {@link Entity}. + */ + // @ts-ignore + dominantHand(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ElytraFlyingData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ElytraFlyingData.d.ts new file mode 100644 index 00000000..2f6cb389 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ElytraFlyingData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface ElytraFlyingData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} elytra flying state. + */ + // @ts-ignore + elytraFlying(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ExpOrbData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ExpOrbData.d.ts new file mode 100644 index 00000000..015a66f9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ExpOrbData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface ExpOrbData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the amount of "experience" stored. + */ + // @ts-ignore + experience(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ExperienceHolderData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ExperienceHolderData.d.ts new file mode 100644 index 00000000..aa99bc06 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ExperienceHolderData.d.ts @@ -0,0 +1,47 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface ExperienceHolderData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the amount of experience + * gained since the beginning of the current {@link #level()}. Normally, + * the higher the level, the more "experience" required to gain another + * level. + */ + // @ts-ignore + experienceSinceLevel(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link ImmutableBoundedValue} for the amount of experience + * required between the current {@link #level()} and the next level. + * This can be presumed to be the supposed "maximum" for the + * {@link #experienceSinceLevel()} amount. + */ + // @ts-ignore + getExperienceBetweenLevels(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the current "level" of + * experience deserved according to the {@link #totalExperience()} and + * a function from implementation defining how much experience required + * per level. + */ + // @ts-ignore + level(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the total amount of experience stored. + */ + // @ts-ignore + totalExperience(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ExpirableData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ExpirableData.d.ts new file mode 100644 index 00000000..6baa2618 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ExpirableData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface ExpirableData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the amount of "ticks" + * remaining before the "expiration" occurs. + */ + // @ts-ignore + expireTicks(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ExplosionRadiusData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ExplosionRadiusData.d.ts new file mode 100644 index 00000000..7a56ef3a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ExplosionRadiusData.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface ExplosionRadiusData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * The radius in blocks that the explosion will affect. This value may be + * missing if the explosion radius is unknown such as when it is generated + * randomly on detonation. Setting this value on such explosives will + * override that behavior. + */ + // @ts-ignore + explosionRadius(): org.spongepowered.api.data.value.mutable.OptionalValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.FallDistanceData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.FallDistanceData.d.ts new file mode 100644 index 00000000..a5c05081 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.FallDistanceData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface FallDistanceData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the current fall distance. + */ + // @ts-ignore + fallDistance(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.FallingBlockData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.FallingBlockData.d.ts new file mode 100644 index 00000000..fb837fdd --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.FallingBlockData.d.ts @@ -0,0 +1,57 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface FallingBlockData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the damage to deal per block + * the {@link FallingBlock} has fallen. + */ + // @ts-ignore + fallDamagePerBlock(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the maximum damage the {@link FallingBlock} can deal to another + * entity for falling on the entity. + */ + // @ts-ignore + maxFallDamage(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link BlockState} the falling block is representing. + */ + // @ts-ignore + blockState(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets whether this falling block will try to place itself where + * it lands. + */ + // @ts-ignore + canPlaceAsBlock(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets whether this falling block can drop as an item if it lands in a + * way that it can not be placed. + */ + // @ts-ignore + canDropAsItem(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the number of ticks the block has been falling for. + */ + // @ts-ignore + fallTime(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets whether this falling block will damage entities where it lands. + */ + // @ts-ignore + canHurtEntities(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.FlammableData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.FlammableData.d.ts new file mode 100644 index 00000000..dc66c464 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.FlammableData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface FlammableData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "aflame" state. + */ + // @ts-ignore + flammable(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.FlyingAbilityData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.FlyingAbilityData.d.ts new file mode 100644 index 00000000..0023ff32 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.FlyingAbilityData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface FlyingAbilityData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for whether the owner can "fly". + */ + // @ts-ignore + canFly(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.FlyingData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.FlyingData.d.ts new file mode 100644 index 00000000..e2187350 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.FlyingData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface FlyingData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "flying" state. + */ + // @ts-ignore + flying(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.FoodData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.FoodData.d.ts new file mode 100644 index 00000000..7f306025 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.FoodData.d.ts @@ -0,0 +1,45 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface FoodData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the current food level as an {@link MutableBoundedValue}. + *

Food level has health effects, depending on game difficulty and + * hunger levels. If the food level is high enough, the human entity + * may heal. If the food level is at 0, the human entity may starve.

+ */ + // @ts-ignore + foodLevel(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the "exhaustion" level. + *

When the exhaustion level reaches 0, saturation is usually diminished + * such that saturation is decreased and then exhaustion is reset to the + * maximum. This type of effect occurs over time and can be modified by + * movements and actions performed by the {@link Humanoid} entity.

+ */ + // @ts-ignore + exhaustion(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the "saturation" level. + *

When the saturation level reaches 0, the food level is usually + * diminished such that the food level is decreased by 1, then + * saturation is reset to the maximum value. This type of effect occurs + * over time and can be modified by movements and actions performed by the + * {@link Humanoid} entity.

+ */ + // @ts-ignore + saturation(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.FuseData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.FuseData.d.ts new file mode 100644 index 00000000..d9eef4e7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.FuseData.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface FuseData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * The amount of ticks before the {@link FusedExplosive} detonates when + * primed. + */ + // @ts-ignore + fuseDuration(): org.spongepowered.api.data.value.mutable.Value; + /** + * The amount of ticks before {@link FusedExplosive} detonates. Setting + * this value has no effect if the explosive is not currently + * primed and is set to an arbitrary value that differs from explosive to + * explosive when not-primed. Therefore, this value should be ignored when + * the explosive is not primed. Instead, set the fuse duration of the + * explosive which is the value used to initialize this value when the + * explosive is primed. + */ + // @ts-ignore + ticksRemaining(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.GameModeData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.GameModeData.d.ts new file mode 100644 index 00000000..18debe4c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.GameModeData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface GameModeData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.GlowingData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.GlowingData.d.ts new file mode 100644 index 00000000..11018bf2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.GlowingData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface GlowingData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} representing whether an entity is glowing. + */ + // @ts-ignore + glowing(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.GravityData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.GravityData.d.ts new file mode 100644 index 00000000..b0944047 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.GravityData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface GravityData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} of the gravity of an {@link Entity}. Returns true + * when the {@link Entity} has gravity. + */ + // @ts-ignore + gravity(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.GriefingData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.GriefingData.d.ts new file mode 100644 index 00000000..03af492c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.GriefingData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface GriefingData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "griefing" state. + */ + // @ts-ignore + canGrief(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.HealthData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.HealthData.d.ts new file mode 100644 index 00000000..1b60adb0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.HealthData.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface HealthData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Returns the health amount. + *

The range of the health depends on the object on which this + * method is defined. For players in Minecraft, the nominal range is + * between 0 and 20, inclusive, but the range can be adjusted.

+ *

Convention dictates that health does not follow below 0 but this + * convention may be broken.

+ */ + // @ts-ignore + health(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the current maximum health. + *

The maximum health set here may affect the attribute increasing + * health points. The base health should be minded that it may be lower + * than the total maximum health of this entity.

+ */ + // @ts-ignore + maxHealth(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.HealthScalingData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.HealthScalingData.d.ts new file mode 100644 index 00000000..e5142a23 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.HealthScalingData.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface HealthScalingData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Defines the amount of health to show client-side (in hearts) such that + * the maximum health is the value of this scale, and the current health + * is scaled as a ratio. + *

If the current maximum health is 400, and the player has 200, but the + * scale dictates 20, then the client will see 5 hearts (or 10 half hearts) + * out of 10 hearts.

+ */ + // @ts-ignore + healthScale(): org.spongepowered.api.data.value.BoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.HorseData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.HorseData.d.ts new file mode 100644 index 00000000..25c4b8a5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.HorseData.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface HorseData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets a {@link Value} for the {@link HorseColor}. + */ + // @ts-ignore + color(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets a {@link Value} for the {@link HorseStyle}. + */ + // @ts-ignore + style(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.IgniteableData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.IgniteableData.d.ts new file mode 100644 index 00000000..2c9771ac --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.IgniteableData.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface IgniteableData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the remaining amount of + * "ticks" the {@link Entity} remains on fire. + */ + // @ts-ignore + fireTicks(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the remaining amount of + * "ticks" before the fire will damage the owning {@link Entity}. + */ + // @ts-ignore + fireDelay(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.InvisibilityData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.InvisibilityData.d.ts new file mode 100644 index 00000000..e406bdd4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.InvisibilityData.d.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface InvisibilityData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} of the "invisible" state of an {@link Entity}. + *

Note that this is different from the {@link #vanish()} state as when an + * {@link Entity} is "invisible", update packets are still sent to all clients + * and the server.

+ */ + // @ts-ignore + invisible(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} of the "vanish" state of an {@link Entity}. + *

The presence of a vanished entity will not be made known to a client; + * no packets pertaining to this entity are sent. Client-side, this entity + * will cease to exist. Server-side it may still be targeted by hostile + * entities or collide with other entities.

+ *

Vanishing an {@link Entity} ridden by other entities (see + * {@link PassengerData}) will cause problems.

+ */ + // @ts-ignore + vanish(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} of whether an {@link Entity} that is "vanished" will + * be ignored for collision detection. The collision detection can affect + * collisions with other {@link Entity entities}, blocks, etc. + */ + // @ts-ignore + ignoresCollisionDetection(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} of whether an {@link Entity} that is "vanished" will + * be ignored when other {@link Entity entities} are processing possible "targets" + * for their AI. + */ + // @ts-ignore + untargetable(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.InvulnerabilityData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.InvulnerabilityData.d.ts new file mode 100644 index 00000000..c270cffb --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.InvulnerabilityData.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface InvulnerabilityData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the amount of "ticks" of + * "invulnerability" an entity has because of being hurt recently. + */ + // @ts-ignore + invulnerableTicks(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the boolean {@link Value} which represents if an entity is + * invulnerable from most damage sources besides besides the void, + * players in creative mode, and manual killing like the /kill command. + *

This does not cover creative mode, where players can also + * be invulnerable.

+ */ + // @ts-ignore + invulnerable(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.JohnnyData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.JohnnyData.d.ts new file mode 100644 index 00000000..27f14a9f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.JohnnyData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface JohnnyData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for whether this mob is exhibiting + * "johnny" behavior. + */ + // @ts-ignore + johnny(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.JoinData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.JoinData.d.ts new file mode 100644 index 00000000..6a42ed0d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.JoinData.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface JoinData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} of the {@link Instant} that a {@link Player} joined + * the {@link Server} the first time. + */ + // @ts-ignore + firstPlayed(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} of the {@link Instant} that a {@link Player} joined + * the {@link Server} the last time. + */ + // @ts-ignore + lastPlayed(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.KnockbackData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.KnockbackData.d.ts new file mode 100644 index 00000000..29d6551b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.KnockbackData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface KnockbackData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the "knockback strength. + */ + // @ts-ignore + knockbackStrength(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.LeashData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.LeashData.d.ts new file mode 100644 index 00000000..40e874be --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.LeashData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface LeashData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "leash holder". + */ + // @ts-ignore + leashHolder(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.MinecartBlockData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.MinecartBlockData.d.ts new file mode 100644 index 00000000..c87c5ab7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.MinecartBlockData.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface MinecartBlockData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link BlockState} represented by the {@link Minecart}. + */ + // @ts-ignore + block(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the offset of the represented block, in "pixels". + *

Positive values move the block upwards in relation to the minecart, + * and negative values move the block downwards.

+ */ + // @ts-ignore + offset(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.MovementSpeedData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.MovementSpeedData.d.ts new file mode 100644 index 00000000..b7f92f18 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.MovementSpeedData.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface MovementSpeedData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the "walking" speed. + */ + // @ts-ignore + walkSpeed(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link MutableBoundedValue} for the "flying" speed. + */ + // @ts-ignore + flySpeed(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.OcelotData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.OcelotData.d.ts new file mode 100644 index 00000000..8e8a63cd --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.OcelotData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface OcelotData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ParrotData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ParrotData.d.ts new file mode 100644 index 00000000..e092b9ab --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ParrotData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface ParrotData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.PassengerData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.PassengerData.d.ts new file mode 100644 index 00000000..d7767919 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.PassengerData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface PassengerData extends org.spongepowered.api.data.manipulator.mutable.ListData { + /** + * Gets the {@link Value} for the current {@link Entity} acting + * as a passenger. + */ + // @ts-ignore + passengers(): org.spongepowered.api.data.value.mutable.ListValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.PersistingData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.PersistingData.d.ts new file mode 100644 index 00000000..b1127ad4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.PersistingData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface PersistingData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "persist" state of an + * {@link Entity}. + */ + // @ts-ignore + persists(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.PickupDelayData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.PickupDelayData.d.ts new file mode 100644 index 00000000..2b5a2944 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.PickupDelayData.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface PickupDelayData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the "pickup delay". + */ + // @ts-ignore + delay(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link Value} for the "is infinite" state of + * the pickup delay. + */ + // @ts-ignore + infinite(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.PickupRuleData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.PickupRuleData.d.ts new file mode 100644 index 00000000..2b47849e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.PickupRuleData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface PickupRuleData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.PigSaddleData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.PigSaddleData.d.ts new file mode 100644 index 00000000..75c59e75 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.PigSaddleData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface PigSaddleData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the the "saddled" state. + */ + // @ts-ignore + saddle(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.PlayerCreatedData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.PlayerCreatedData.d.ts new file mode 100644 index 00000000..7f70fefd --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.PlayerCreatedData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface PlayerCreatedData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "player created" state of an + * {@link IronGolem}. + */ + // @ts-ignore + playerCreated(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.PlayingData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.PlayingData.d.ts new file mode 100644 index 00000000..ee028fb5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.PlayingData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface PlayingData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "playing" state. + */ + // @ts-ignore + playing(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.RabbitData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.RabbitData.d.ts new file mode 100644 index 00000000..6f1edefe --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.RabbitData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface RabbitData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.RespawnLocationData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.RespawnLocationData.d.ts new file mode 100644 index 00000000..b6350766 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.RespawnLocationData.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface RespawnLocationData extends org.spongepowered.api.data.manipulator.mutable.MappedData { + /** + * Gets the {@link MapValue} for the "respawn" locations set for various + * {@link World#getUniqueId()} such that a {@link Player} may not have a + * respawn point for a particular {@link World}, but may have multiple + * respawn points for other {@link World}s. + */ + // @ts-ignore + respawnLocation(): org.spongepowered.api.data.value.mutable.MapValue; + /** + * Gets the respawn location for the given world, if available. If the + * respawn point for that world has not been set, {@link Optional#empty()} + * is returned. + */ + // @ts-ignore + getForWorld(world: org.spongepowered.api.world.World): java.util.Optional; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ScreamingData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ScreamingData.d.ts new file mode 100644 index 00000000..4e539240 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ScreamingData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface ScreamingData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "screaming" state. + */ + // @ts-ignore + screaming(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ShatteringData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ShatteringData.d.ts new file mode 100644 index 00000000..d4e09963 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ShatteringData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface ShatteringData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "shattering" state of an + * {@link EyeOfEnder}. + */ + // @ts-ignore + willShatter(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ShearedData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ShearedData.d.ts new file mode 100644 index 00000000..37d4e3d8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.ShearedData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface ShearedData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} of the "sheared" state. + */ + // @ts-ignore + sheared(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.SilentData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.SilentData.d.ts new file mode 100644 index 00000000..8b2d4c53 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.SilentData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface SilentData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "silent state". + */ + // @ts-ignore + silent(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.SittingData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.SittingData.d.ts new file mode 100644 index 00000000..35194b4b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.SittingData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface SittingData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "sitting" state. + */ + // @ts-ignore + sitting(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.SizeData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.SizeData.d.ts new file mode 100644 index 00000000..dbf18472 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.SizeData.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface SizeData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the current x/z size of this entity. + */ + // @ts-ignore + base(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the current y height of this entity. + */ + // @ts-ignore + height(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link MutableBoundedValue} for the "scale" size. + */ + // @ts-ignore + scale(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.SkinData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.SkinData.d.ts new file mode 100644 index 00000000..f1c10f68 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.SkinData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface SkinData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the {@link UUID} of the skin to display on a + * {@link Humanoid} entity for customization. + */ + // @ts-ignore + skinUniqueId(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.SleepingData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.SleepingData.d.ts new file mode 100644 index 00000000..1298b926 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.SleepingData.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface SleepingData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for whether the owning {@link Player}'s + * "sleeping" state is ignored when vanilla mechanics dictate that all + * {@link Player}s must be sleeping to advance through the night. + */ + // @ts-ignore + sleeping(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.SlimeData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.SlimeData.d.ts new file mode 100644 index 00000000..4c4630f8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.SlimeData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface SlimeData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the "size" of a slime. + */ + // @ts-ignore + size(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.SneakingData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.SneakingData.d.ts new file mode 100644 index 00000000..bd82ea5b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.SneakingData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface SneakingData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "sneaking" state. + */ + // @ts-ignore + sneaking(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.SprintData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.SprintData.d.ts new file mode 100644 index 00000000..d374bf73 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.SprintData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface SprintData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "sprinting" state. + */ + // @ts-ignore + sprinting(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.StatisticData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.StatisticData.d.ts new file mode 100644 index 00000000..4d7c004f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.StatisticData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface StatisticData extends org.spongepowered.api.data.manipulator.mutable.MappedData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.StuckArrowsData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.StuckArrowsData.d.ts new file mode 100644 index 00000000..d7b53025 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.StuckArrowsData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface StuckArrowsData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the stuck arrows. + */ + // @ts-ignore + stuckArrows(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.TameableData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.TameableData.d.ts new file mode 100644 index 00000000..f34ebcce --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.TameableData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface TameableData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link OptionalValue} for the {@link UUID} of the + * {@link Tamer}. + */ + // @ts-ignore + owner(): org.spongepowered.api.data.value.mutable.OptionalValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.TargetedEntityData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.TargetedEntityData.d.ts new file mode 100644 index 00000000..e63bd348 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.TargetedEntityData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface TargetedEntityData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the targeted {@link Entity}. + */ + // @ts-ignore + value(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.TradeOfferData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.TradeOfferData.d.ts new file mode 100644 index 00000000..d75c844d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.TradeOfferData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface TradeOfferData extends org.spongepowered.api.data.manipulator.mutable.ListData { + /** + * Gets the {@link ListValue} of {@link TradeOffer}s that can be + * offered. + */ + // @ts-ignore + tradeOffers(): org.spongepowered.api.data.value.mutable.ListValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.VehicleData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.VehicleData.d.ts new file mode 100644 index 00000000..9d46f668 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.VehicleData.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface VehicleData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the current "vehicle" being ridden. + */ + // @ts-ignore + vehicle(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the base {@link Value} for the "base vehicle" being ridden + * such that the current vehicle may be riding another {@link Entity}, + * causing that entity to be called the "base vehicle". + */ + // @ts-ignore + baseVehicle(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.VelocityData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.VelocityData.d.ts new file mode 100644 index 00000000..a4acd737 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.entity.VelocityData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace entity { + // @ts-ignore + interface VelocityData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the current velocity as a + * {@link Vector3d}. + */ + // @ts-ignore + velocity(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.AuthorData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.AuthorData.d.ts new file mode 100644 index 00000000..e747c94c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.AuthorData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface AuthorData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the author of this item. + */ + // @ts-ignore + author(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.BlockItemData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.BlockItemData.d.ts new file mode 100644 index 00000000..d576b924 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.BlockItemData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface BlockItemData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the currently represented + * {@link BlockState}. + */ + // @ts-ignore + state(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.BreakableData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.BreakableData.d.ts new file mode 100644 index 00000000..c21380ff --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.BreakableData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface BreakableData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link SetValue} for all known {@link BlockType}s that + * can be broken by the owning {@link ItemStack}. + */ + // @ts-ignore + breakable(): org.spongepowered.api.data.value.mutable.SetValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.CoalData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.CoalData.d.ts new file mode 100644 index 00000000..68942aea --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.CoalData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface CoalData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.CookedFishData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.CookedFishData.d.ts new file mode 100644 index 00000000..de3e6a23 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.CookedFishData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface CookedFishData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.DurabilityData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.DurabilityData.d.ts new file mode 100644 index 00000000..d17f3c7e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.DurabilityData.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface DurabilityData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the "durability" remaining. + * The durability is a number signifying how many "uses' remain on the + * item. When the durability reaches 0, usually, the item breaks. + */ + // @ts-ignore + durability(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link Value} for the "unbreakable" state of the + * {@link ItemStack}. While the {@link ItemStack} is "unbreakable", + * the durability can not change. + */ + // @ts-ignore + unbreakable(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.EnchantmentData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.EnchantmentData.d.ts new file mode 100644 index 00000000..c16fbac2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.EnchantmentData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface EnchantmentData extends org.spongepowered.api.data.manipulator.mutable.ListData { + /** + * Gets the {@link ListValue} of {@link Enchantment}s on item stacks. + */ + // @ts-ignore + enchantments(): org.spongepowered.api.data.value.mutable.ListValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.FishData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.FishData.d.ts new file mode 100644 index 00000000..39b653e6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.FishData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface FishData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.GenerationData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.GenerationData.d.ts new file mode 100644 index 00000000..15dbf9e3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.GenerationData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface GenerationData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} that represents the "generation" + * state of a book. + */ + // @ts-ignore + generation(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.GoldenAppleData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.GoldenAppleData.d.ts new file mode 100644 index 00000000..6a7b8b8d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.GoldenAppleData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface GoldenAppleData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.HideData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.HideData.d.ts new file mode 100644 index 00000000..5ee92f80 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.HideData.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface HideData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "enchantments hidden" state of an itemstack. + */ + // @ts-ignore + hideEnchantments(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the "attributes hidden" state of an itemstack. + */ + // @ts-ignore + hideAttributes(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the "unbreakable hidden" state of an itemstack. + */ + // @ts-ignore + hideUnbreakable(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the "can destroy hidden" state of an itemstack. + */ + // @ts-ignore + hideCanDestroy(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the "can place hidden" state of an itemstack. + */ + // @ts-ignore + hideCanPlace(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the "miscellaneous hidden" state of an itemstack. + */ + // @ts-ignore + hideMiscellaneous(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.InventoryItemData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.InventoryItemData.d.ts new file mode 100644 index 00000000..2f37336b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.InventoryItemData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface InventoryItemData extends org.spongepowered.api.data.manipulator.DataManipulator, org.spongepowered.api.item.inventory.Carrier { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.LoreData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.LoreData.d.ts new file mode 100644 index 00000000..89a1118e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.LoreData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface LoreData extends org.spongepowered.api.data.manipulator.mutable.ListData { + /** + * Gets the {@link ListValue} of the "lore" {@link Text}. + */ + // @ts-ignore + lore(): org.spongepowered.api.data.value.mutable.ListValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.MapItemData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.MapItemData.d.ts new file mode 100644 index 00000000..6e729ecb --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.MapItemData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface MapItemData extends org.spongepowered.api.data.manipulator.DataManipulator { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.PagedData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.PagedData.d.ts new file mode 100644 index 00000000..62ea2e4a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.PagedData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface PagedData extends org.spongepowered.api.data.manipulator.mutable.ListData { + /** + * Gets the {@link ListValue} for the {@link Text} pages. + */ + // @ts-ignore + pages(): org.spongepowered.api.data.value.mutable.ListValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.PlaceableData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.PlaceableData.d.ts new file mode 100644 index 00000000..99b67a6b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.PlaceableData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface PlaceableData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link SetValue} of {@link BlockType}s the + * {@link ItemType} can be placed on. + */ + // @ts-ignore + placeable(): org.spongepowered.api.data.value.mutable.SetValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.PlainPagedData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.PlainPagedData.d.ts new file mode 100644 index 00000000..d7a925f4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.PlainPagedData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface PlainPagedData extends org.spongepowered.api.data.manipulator.mutable.ListData { + /** + * Gets the {@link ListValue} for the {@link Text} pages. + */ + // @ts-ignore + pages(): org.spongepowered.api.data.value.mutable.ListValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.SpawnableData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.SpawnableData.d.ts new file mode 100644 index 00000000..b9c26475 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.SpawnableData.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface SpawnableData extends org.spongepowered.api.data.manipulator.mutable.VariantData { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.StoredEnchantmentData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.StoredEnchantmentData.d.ts new file mode 100644 index 00000000..82052ab5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.item.StoredEnchantmentData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace item { + // @ts-ignore + interface StoredEnchantmentData extends org.spongepowered.api.data.manipulator.mutable.ListData { + /** + * Gets the {@link ListValue} of {@link Enchantment}s stored such + * that it can be applied to an {@link ItemStack}. + */ + // @ts-ignore + enchantments(): org.spongepowered.api.data.value.mutable.ListValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.BannerData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.BannerData.d.ts new file mode 100644 index 00000000..5d2bc7a3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.BannerData.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace tileentity { + // @ts-ignore + interface BannerData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the base {@link DyeColor}. + */ + // @ts-ignore + baseColor(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link PatternListValue} of all patterns for the + * {@link Banner}. + */ + // @ts-ignore + patternsList(): org.spongepowered.api.data.value.mutable.PatternListValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.BeaconData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.BeaconData.d.ts new file mode 100644 index 00000000..51994244 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.BeaconData.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace tileentity { + // @ts-ignore + interface BeaconData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link OptionalValue} for the primary + * {@link PotionEffectType}. + */ + // @ts-ignore + primaryEffect(): org.spongepowered.api.data.value.mutable.OptionalValue; + /** + * Gets the {@link OptionalValue} for the secondary + * {@link PotionEffectType}. + */ + // @ts-ignore + secondaryEffect(): org.spongepowered.api.data.value.mutable.OptionalValue; + /** + * Fills the primary and secondary {@link PotionEffectType}s + * with {@link Optional#empty()} values as a semi "reset" state. + */ + // @ts-ignore + clearEffects(): org.spongepowered.api.data.manipulator.mutable.tileentity.BeaconData; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.BedData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.BedData.d.ts new file mode 100644 index 00000000..151d6f6c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.BedData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace tileentity { + // @ts-ignore + interface BedData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the {@link DyeColor color}. + */ + // @ts-ignore + color(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.BrewingStandData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.BrewingStandData.d.ts new file mode 100644 index 00000000..2893ec0c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.BrewingStandData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace tileentity { + // @ts-ignore + interface BrewingStandData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the remaining brew time. + *

If nothing is brewing the value is 0.

+ */ + // @ts-ignore + remainingBrewTime(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.CooldownData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.CooldownData.d.ts new file mode 100644 index 00000000..97409b73 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.CooldownData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace tileentity { + // @ts-ignore + interface CooldownData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "cooldown" remaining. + */ + // @ts-ignore + cooldown(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.EndGatewayData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.EndGatewayData.d.ts new file mode 100644 index 00000000..628da976 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.EndGatewayData.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace tileentity { + // @ts-ignore + interface EndGatewayData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the exit portal location of + * the {@link EndGateway}. + */ + // @ts-ignore + exitPosition(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the "should use exact teleport location" + * state of the {@link EndGateway}. + */ + // @ts-ignore + exactTeleport(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the age of the {@link EndGateway}. + */ + // @ts-ignore + age(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the teleport cooldown of the {@link EndGateway}. + */ + // @ts-ignore + teleportCooldown(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.FurnaceData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.FurnaceData.d.ts new file mode 100644 index 00000000..e394de14 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.FurnaceData.d.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace tileentity { + // @ts-ignore + interface FurnaceData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link MutableBoundedValue} for the already passed burn time of + * the {@link Furnace}. When this is equal to the {@link #maxBurnTime()}, + * the current used fuel is depleted. + */ + // @ts-ignore + passedBurnTime(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the maximum amount of fuel that + * can be supplied with the used fuel item. + *

This is represented by the flame icon in the {@link Furnace}, if the + * flame is 100% filled the value is exactly this one. So its the maximum + * of the {@link #passedBurnTime()}.

+ */ + // @ts-ignore + maxBurnTime(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the already passed cook time of + * the {@link ItemStack} in the {@link Furnace}. When this is equal to the + * {@link #maxCookTime()}, the {@link ItemStack} is cooked. + */ + // @ts-ignore + passedCookTime(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the total time the + * {@link ItemStack} has to cook until it is cooked. + *

This is represented by the arrow icon in the {@link Furnace}, if the + * arrow is 100% filled the value is exact this one. So its the maximum of + * the {@link #passedCookTime()}.

+ */ + // @ts-ignore + maxCookTime(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.LockableData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.LockableData.d.ts new file mode 100644 index 00000000..e3f25fa9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.LockableData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace tileentity { + // @ts-ignore + interface LockableData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the "lock" token. + */ + // @ts-ignore + lockToken(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.NoteData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.NoteData.d.ts new file mode 100644 index 00000000..d619b86b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.NoteData.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace tileentity { + // @ts-ignore + interface NoteData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the {@link NotePitch}. + */ + // @ts-ignore + note(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.SignData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.SignData.d.ts new file mode 100644 index 00000000..af90a450 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.SignData.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace tileentity { + // @ts-ignore + interface SignData extends org.spongepowered.api.data.manipulator.mutable.ListData { + /** + * Gets the {@link ListValue} of {@link Text} for the {@link Sign} + * to show. + */ + // @ts-ignore + lines(): org.spongepowered.api.data.value.mutable.ListValue; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.StructureData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.StructureData.d.ts new file mode 100644 index 00000000..a043ab40 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.manipulator.mutable.tileentity.StructureData.d.ts @@ -0,0 +1,68 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace manipulator { + namespace mutable { + namespace tileentity { + // @ts-ignore + interface StructureData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link Value} for the author of the {@link Structure}. + */ + // @ts-ignore + author(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the ignore entities state of the {@link Structure}. + */ + // @ts-ignore + ignoreEntities(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the integrity of the {@link Structure}. + */ + // @ts-ignore + integrity(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the mode of the {@link Structure}. + */ + // @ts-ignore + mode(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the position of the {@link Structure}. + */ + // @ts-ignore + position(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the powered state of the {@link Structure}. + */ + // @ts-ignore + powered(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the seed of the {@link Structure}. + */ + // @ts-ignore + seed(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the show air state of the {@link Structure}. + */ + // @ts-ignore + showAir(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the show bounding box state of the {@link Structure}. + */ + // @ts-ignore + showBoundingBox(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} for the size of the {@link Structure}. + */ + // @ts-ignore + size(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.merge.MergeFunction.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.merge.MergeFunction.d.ts new file mode 100644 index 00000000..8346e990 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.merge.MergeFunction.d.ts @@ -0,0 +1,56 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace merge { + // @ts-ignore + interface MergeFunction { + // @ts-ignore + IGNORE_ALL: org.spongepowered.api.data.merge.MergeFunction; + // @ts-ignore + FORCE_NOTHING: org.spongepowered.api.data.merge.MergeFunction; + /** + * Performs a merge of a type of {@link ValueContainer} such that a merge + * of the contained {@link BaseValue}s has been performed and the resulting + * merged {@link ValueContainer} is returned. It is suffice to say that + * only one of the {@link ValueContainer} containers may be {@code null}, + * such that
 {@code
+                         * if (original == null) {
+                         * return checkNotNull(replacement);
+                         * } else if (replacement == null) {
+                         * return original;
+                         * } else {
+                         * // do something merging the necessary values
+                         * }
+                         * }
+ * It can be therefor discerned that both values are passed in as copies + * and therefor either one can be modified and returned. + *

Since + * {@link CompositeValueStore#copyFrom(CompositeValueStore, MergeFunction)} + * accepts only a single {@link MergeFunction}, and a + * {@link CompositeValueStore} may have multiple {@link ValueContainer}s, + * as provided by {@link CompositeValueStore#getContainers()}, the merge + * function may be called for every single number of {@link ValueContainer}. + * This way, a {@link MergeFunction} can be fully customized to merge + * specific {@link ValueContainer}s of matching types.

+ */ + // @ts-ignore + merge(original: org.spongepowered.api.data.value.ValueContainer, replacement: org.spongepowered.api.data.value.ValueContainer): org.spongepowered.api.data.value.ValueContainer; + /** + * Creates a new {@link MergeFunction} chaining this current merge function + * with the provided merge function. The order of the merge is this + * performs {@link #merge(ValueContainer, ValueContainer)} then, the + * provided {@link MergeFunction} merges the returned merged + * {@link ValueContainer} and the {@code replacement}. This can be used to + * apply a custom merge strategy after a pre-defined {@link MergeFunction} + * is applied. + */ + // @ts-ignore + andThen(that: org.spongepowered.api.data.merge.MergeFunction): org.spongepowered.api.data.merge.MergeFunction; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.meta.PatternLayer.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.meta.PatternLayer.Builder.d.ts new file mode 100644 index 00000000..b870f0c2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.meta.PatternLayer.Builder.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace meta { + namespace PatternLayer { + // @ts-ignore + interface Builder extends org.spongepowered.api.data.persistence.DataBuilder { + /** + * Sets the {@link BannerPatternShape} to be used. + */ + // @ts-ignore + pattern(shape: org.spongepowered.api.data.type.BannerPatternShape): org.spongepowered.api.data.meta.PatternLayer.Builder; + /** + * Sets the {@link DyeColor} to be used. + */ + // @ts-ignore + color(color: org.spongepowered.api.data.type.DyeColor): org.spongepowered.api.data.meta.PatternLayer.Builder; + /** + * Builds a {@link PatternLayer} provided that the + * color and pattern are set. + */ + // @ts-ignore + build(): org.spongepowered.api.data.meta.PatternLayer; + // @ts-ignore + reset(): org.spongepowered.api.data.meta.PatternLayer.Builder; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.meta.PatternLayer.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.meta.PatternLayer.d.ts new file mode 100644 index 00000000..bbc2ab4a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.meta.PatternLayer.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace meta { + // @ts-ignore + interface PatternLayer extends org.spongepowered.api.data.DataSerializable { + /** + * Creates a {@link PatternLayer} with the desired + * {@link BannerPatternShape} and {@link DyeColor}. + */ + // @ts-ignore + of(shape: org.spongepowered.api.data.type.BannerPatternShape, color: org.spongepowered.api.data.type.DyeColor): org.spongepowered.api.data.meta.PatternLayer; + /** + * Gets the pattern shape for this layer. + */ + // @ts-ignore + getShape(): org.spongepowered.api.data.type.BannerPatternShape; + /** + * Gets the color for this layer. + */ + // @ts-ignore + getColor(): org.spongepowered.api.data.type.DyeColor; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.AbstractDataBuilder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.AbstractDataBuilder.d.ts new file mode 100644 index 00000000..0fab0284 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.AbstractDataBuilder.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace persistence { + // @ts-ignore + abstract class AbstractDataBuilder extends java.lang.Object implements org.spongepowered.api.data.persistence.DataBuilder { + // @ts-ignore + constructor(requiredClass: java.lang.Class, supportedVersion: number) + /** + * Builds the currently {@link #supportedVersion} variant of the intended + * {@link DataSerializable}, such that all content upgrades have already + * been handled by {@link #build(DataView)}. This otherwise follows the + * same contract as {@link DataBuilder#build(DataView)}. + */ + // @ts-ignore + protected abstract buildContent(container: org.spongepowered.api.data.DataView): java.util.Optional; + // @ts-ignore + public build(container: org.spongepowered.api.data.DataView): java.util.Optional; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.DataBuilder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.DataBuilder.d.ts new file mode 100644 index 00000000..cd8e701b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.DataBuilder.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace persistence { + // @ts-ignore + interface DataBuilder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Attempts to build the provided {@link DataSerializable} from the given + * {@link DataView}. If the {@link DataView} is invalid or + * missing necessary information to complete building the + * {@link DataSerializable}, {@link Optional#empty()} may be returned. + */ + // @ts-ignore + build(container: org.spongepowered.api.data.DataView): java.util.Optional; + // @ts-ignore + reset(): org.spongepowered.api.data.persistence.DataBuilder; + // @ts-ignore + from(value: org.spongepowered.api.data.DataSerializable): org.spongepowered.api.data.persistence.DataBuilder; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.DataContentUpdater.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.DataContentUpdater.d.ts new file mode 100644 index 00000000..e8116c55 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.DataContentUpdater.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace persistence { + // @ts-ignore + interface DataContentUpdater extends org.spongepowered.api.util.Updater { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.DataFormat.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.DataFormat.d.ts new file mode 100644 index 00000000..5fbff543 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.DataFormat.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace persistence { + // @ts-ignore + interface DataFormat extends org.spongepowered.api.CatalogType { + /** + * Creates a new {@link DataContainer} from the contents of the given + * {@link InputStream}. + */ + // @ts-ignore + readFrom(input: java.io.InputStream): org.spongepowered.api.data.DataContainer; + /** + * Writes the given {@link DataView} to the given {@link OutputStream} using + * the format specified by this {@link DataFormat}. + */ + // @ts-ignore + writeTo(output: java.io.OutputStream, data: org.spongepowered.api.data.DataView): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.DataFormats.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.DataFormats.d.ts new file mode 100644 index 00000000..224e4aa1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.DataFormats.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace persistence { + // @ts-ignore + class DataFormats extends java.lang.Object { + // @ts-ignore + public static HOCON: org.spongepowered.api.data.persistence.StringDataFormat; + // @ts-ignore + public static JSON: org.spongepowered.api.data.persistence.StringDataFormat; + // @ts-ignore + public static NBT: org.spongepowered.api.data.persistence.DataFormat; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.DataTranslator.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.DataTranslator.d.ts new file mode 100644 index 00000000..20cd412b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.DataTranslator.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace persistence { + // @ts-ignore + interface DataTranslator extends org.spongepowered.api.CatalogType { + /** + * Gets the {@link TypeToken} of this translator. + */ + // @ts-ignore + getToken(): any; + /** + * Attempts to translate the {@code T} object from the provided + * {@link DataView}. + */ + // @ts-ignore + translate(view: org.spongepowered.api.data.DataView): java.lang.Object; + /** + * Serializes the provided object to a {@link DataContainer}. + */ + // @ts-ignore + translate(obj: java.lang.Object): org.spongepowered.api.data.DataContainer; + /** + * Serializes the {@code T} object and applies the provided + * data to the provided {@link DataView} instead of creating + * a new {@link DataContainer}, reducing nested information. + */ + // @ts-ignore + addTo(obj: java.lang.Object, dataView: org.spongepowered.api.data.DataView): org.spongepowered.api.data.DataView; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.DataTranslators.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.DataTranslators.d.ts new file mode 100644 index 00000000..7149f1f2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.DataTranslators.d.ts @@ -0,0 +1,64 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace persistence { + // @ts-ignore + class DataTranslators extends java.lang.Object { + // @ts-ignore + public static SCHEMATIC: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static LEGACY_SCHEMATIC: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static CONFIGURATION_NODE: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static UUID: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static VECTOR_2_D: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static VECTOR_2_F: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static VECTOR_2_I: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static VECTOR_2_L: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static VECTOR_3_D: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static VECTOR_3_F: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static VECTOR_3_I: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static VECTOR_3_L: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static VECTOR_4_D: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static VECTOR_4_F: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static VECTOR_4_I: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static VECTOR_4_L: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static COMPLEXD: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static COMPLEXF: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static QUATERNIOND: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static QUATERNIONF: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static LOCAL_TIME: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static LOCAL_DATE: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static LOCAL_DATE_TIME: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static INSTANT: org.spongepowered.api.data.persistence.DataTranslator; + // @ts-ignore + public static ZONED_DATE_TIME: org.spongepowered.api.data.persistence.DataTranslator; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.InvalidDataException.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.InvalidDataException.d.ts new file mode 100644 index 00000000..2e8de53e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.InvalidDataException.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace persistence { + // @ts-ignore + class InvalidDataException extends java.lang.UnsupportedOperationException { + /** + * Constructs a new {@link InvalidDataException}. + */ + // @ts-ignore + constructor() + /** + * Constructs a new {@link InvalidDataException} with a message. + */ + // @ts-ignore + constructor(message: string) + /** + * Constructs a new {@link InvalidDataException} with the specified message and + * cause. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Constructs a new {@link InvalidDataException} with the specified cause and a + * null message. + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.InvalidDataFormatException.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.InvalidDataFormatException.d.ts new file mode 100644 index 00000000..52064241 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.InvalidDataFormatException.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace persistence { + // @ts-ignore + class InvalidDataFormatException extends java.lang.UnsupportedOperationException { + /** + * Constructs a new {@link InvalidDataFormatException}. + */ + // @ts-ignore + constructor() + /** + * Constructs a new {@link InvalidDataFormatException} with a message. + */ + // @ts-ignore + constructor(message: string) + /** + * Constructs a new {@link InvalidDataFormatException} with the specified + * message and cause. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Constructs a new {@link InvalidDataFormatException} with the specified + * cause and a null message. + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.StringDataFormat.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.StringDataFormat.d.ts new file mode 100644 index 00000000..0752e81e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.persistence.StringDataFormat.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace persistence { + // @ts-ignore + interface StringDataFormat extends org.spongepowered.api.data.persistence.DataFormat { + /** + * Creates a new {@link DataContainer} from the contents of the given + * {@link String}. + */ + // @ts-ignore + read(input: string): org.spongepowered.api.data.DataContainer; + /** + * Creates a new {@link DataContainer} from the contents of the given + * {@link Reader}. + */ + // @ts-ignore + readFrom(input: java.io.Reader): org.spongepowered.api.data.DataContainer; + /** + * Serializes the given {@link DataView} to a {@link String} using + * the format specified by this {@link DataFormat}. + */ + // @ts-ignore + write(data: org.spongepowered.api.data.DataView): string; + /** + * Writes the given {@link DataView} to the given {@link Writer} using + * the format specified by this {@link DataFormat}. + */ + // @ts-ignore + writeTo(output: java.io.Writer, data: org.spongepowered.api.data.DataView): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.AbstractProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.AbstractProperty.d.ts new file mode 100644 index 00000000..5288a6fa --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.AbstractProperty.d.ts @@ -0,0 +1,75 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + // @ts-ignore + abstract class AbstractProperty extends java.lang.Object implements org.spongepowered.api.data.Property { + /** + * Initialise internal values to defaults, use this ctor if you plan to + * override {@link #getKey} and {@link #getValue} yourself. + */ + // @ts-ignore + constructor() + /** + * Initialise key to default, and value to the supplied value. + */ + // @ts-ignore + constructor(value: java.lang.Object) + /** + * Initialise the value to the specified value and use the specified + * operator, use the default key. + */ + // @ts-ignore + constructor(value: java.lang.Object, op: org.spongepowered.api.data.Property.Operator) + /** + * Use the specified key and value and set operator to the default. + */ + // @ts-ignore + constructor(key: java.lang.Object, value: java.lang.Object) + // @ts-ignore + constructor(key: java.lang.Object, value: java.lang.Object, op: org.spongepowered.api.data.Property.Operator) + // @ts-ignore + protected operator: org.spongepowered.api.data.Property.Operator; + // @ts-ignore + protected value: java.lang.Object; + /** + * Gets the default value for {@link #key}, used in case null is passed in + * (since we can't have a null key). In general this should return the class + * name of the property itself but subclasses are free to alter this + * behaviour if they wish. + */ + // @ts-ignore + protected getDefaultKey(value: java.lang.Object): java.lang.Object; + /** + * Return the default operator to use, based on the supplied key and value. + */ + // @ts-ignore + protected getDefaultOperator(key: java.lang.Object, value: java.lang.Object): org.spongepowered.api.data.Property.Operator; + // @ts-ignore + public getKey(): java.lang.Object; + // @ts-ignore + public getValue(): java.lang.Object; + // @ts-ignore + public getOperator(): org.spongepowered.api.data.Property.Operator; + // @ts-ignore + public matches(other: org.spongepowered.api.data.Property): boolean; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + /** + * Convenience method to avoid null-checking. Returns 0 if value is + * null. + */ + // @ts-ignore + protected hashCodeOf(value: java.lang.Object): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.BooleanProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.BooleanProperty.d.ts new file mode 100644 index 00000000..f2f30ffe --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.BooleanProperty.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + // @ts-ignore + class BooleanProperty extends org.spongepowered.api.data.property.AbstractProperty { + /** + * Create a new integer property with the specified value. + */ + // @ts-ignore + constructor(value: boolean) + /** + * Create a new integer property with the specified value and logical + * operator. + */ + // @ts-ignore + constructor(value: boolean, operator: org.spongepowered.api.data.Property.Operator) + /** + * Create a new integer property with the specified value and logical + * operator. + */ + // @ts-ignore + constructor(value: java.lang.Object, operator: org.spongepowered.api.data.Property.Operator) + // @ts-ignore + public compareTo(other: org.spongepowered.api.data.Property): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.DirectionRelativePropertyHolder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.DirectionRelativePropertyHolder.d.ts new file mode 100644 index 00000000..3f1e0fbd --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.DirectionRelativePropertyHolder.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + // @ts-ignore + interface DirectionRelativePropertyHolder { + /** + * Gets the desired property from this property holder when facing towards + * the desired {@link Direction}. + */ + // @ts-ignore + getProperty(direction: org.spongepowered.api.util.Direction, clazz: java.lang.Class): java.util.Optional; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.DisplacementProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.DisplacementProperty.d.ts new file mode 100644 index 00000000..35c1c5d1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.DisplacementProperty.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + // @ts-ignore + class DisplacementProperty extends org.spongepowered.api.data.property.AbstractProperty { + /** + * Creates a {@link DisplacementProperty} with a specific set of + * {@link BlockType}s. + */ + // @ts-ignore + constructor(value: java.util.Set) + /** + * Creates a {@link DisplacementProperty} with a specific set of + * {@link BlockType}s. + */ + // @ts-ignore + constructor(value: java.util.Set, op: org.spongepowered.api.data.Property.Operator) + // @ts-ignore + public compareTo(o: org.spongepowered.api.data.Property): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.DoubleProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.DoubleProperty.d.ts new file mode 100644 index 00000000..b92c3d11 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.DoubleProperty.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + // @ts-ignore + class DoubleProperty extends org.spongepowered.api.data.property.AbstractProperty { + /** + * Create a new integer property with the specified value. + */ + // @ts-ignore + constructor(value: number) + /** + * Create a new integer property with the specified value and logical + * operator. + */ + // @ts-ignore + constructor(value: number, operator: org.spongepowered.api.data.Property.Operator) + /** + * Create a new integer property with the specified value and logical + * operator. + */ + // @ts-ignore + constructor(value: java.lang.Object, operator: org.spongepowered.api.data.Property.Operator) + // @ts-ignore + public compareTo(other: org.spongepowered.api.data.Property): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.IntProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.IntProperty.d.ts new file mode 100644 index 00000000..97c495b5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.IntProperty.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + // @ts-ignore + class IntProperty extends org.spongepowered.api.data.property.AbstractProperty { + /** + * Create a new integer property with the specified value. + */ + // @ts-ignore + constructor(value: number) + /** + * Create a new integer property with the specified value and logical + * operator. + */ + // @ts-ignore + constructor(value: number, operator: org.spongepowered.api.data.Property.Operator) + /** + * Create a new integer property with the specified value and logical + * operator. + */ + // @ts-ignore + constructor(value: java.lang.Object, operator: org.spongepowered.api.data.Property.Operator) + // @ts-ignore + public compareTo(other: org.spongepowered.api.data.Property): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.LocationBasePropertyHolder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.LocationBasePropertyHolder.d.ts new file mode 100644 index 00000000..e185f074 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.LocationBasePropertyHolder.d.ts @@ -0,0 +1,84 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + // @ts-ignore + interface LocationBasePropertyHolder { + /** + * Attempts to retrieve a specific {@link Property} type of the block at the + * specific location. If the property is not applicable, + * {@link Optional#empty()} is returned. + *

{@link Property}s can define various immutable information about a + * {@link PropertyHolder} that is dependent on the instance of the holder. + * As {@link Property}s cannot be changed, the {@link PropertyHolder} can + * not change the information about it's own properties either.

+ */ + // @ts-ignore + getProperty(coords: any /*Vector3i*/, propertyClass: java.lang.Class): java.util.Optional; + /** + * Attempts to retrieve a specific {@link Property} type of this + * {@link PropertyHolder}. If the property is not applicable, + * {@link Optional#empty()} is returned. + *

{@link Property}s can define various immutable information about a + * {@link PropertyHolder} that is dependent on the instance of the holder. + * As {@link Property}s cannot be changed, the {@link PropertyHolder} can + * not change the information about it's own properties either.

+ */ + // @ts-ignore + getProperty(x: number, y: number, z: number, propertyClass: java.lang.Class): java.util.Optional; + /** + * Attempts to retrieve a specific {@link Property} type of the block at the + * specific location on the given block face. If the property is not + * applicable, {@link Optional#empty()} is returned. + *

{@link Property}s can define various immutable information about a + * {@link PropertyHolder} that is dependent on the instance of the holder. + * As {@link Property}s cannot be changed, the {@link PropertyHolder} can + * not change the information about it's own properties either.

+ */ + // @ts-ignore + getProperty(coords: any /*Vector3i*/, direction: org.spongepowered.api.util.Direction, propertyClass: java.lang.Class): java.util.Optional; + /** + * Attempts to retrieve a specific {@link Property} type of the block at the + * specific location on the given block face. If the property is not + * applicable, {@link Optional#empty()} is returned. + *

{@link Property}s can define various immutable information about a + * {@link PropertyHolder} that is dependent on the instance of the holder. + * As {@link Property}s cannot be changed, the {@link PropertyHolder} can + * not change the information about it's own properties either.

+ */ + // @ts-ignore + getProperty(x: number, y: number, z: number, direction: org.spongepowered.api.util.Direction, propertyClass: java.lang.Class): java.util.Optional; + /** + * Gets an immutable collection of all known {@link Property}s pertaining to + * this {@link PropertyHolder}. + *

{@link Property}s can not be changed such that the property is + * attached to the instance of the residing {@link PropertyHolder}.

+ */ + // @ts-ignore + getProperties(coords: any /*Vector3i*/): java.util.Collection; + /** + * Gets an immutable collection of all known {@link Property}s pertaining to + * this {@link PropertyHolder}. + *

{@link Property}s can not be changed such that the property is + * attached to the instance of the residing {@link PropertyHolder}.

+ */ + // @ts-ignore + getProperties(x: number, y: number, z: number): java.util.Collection; + /** + * Gets all the faces of this block that have the given property. + */ + // @ts-ignore + getFacesWithProperty(coords: any /*Vector3i*/, propertyClass: java.lang.Class): java.util.Collection; + /** + * Gets all the faces of this block that have the given property. + */ + // @ts-ignore + getFacesWithProperty(x: number, y: number, z: number, propertyClass: java.lang.Class): java.util.Collection; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.PropertyHolder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.PropertyHolder.d.ts new file mode 100644 index 00000000..bdaed9a6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.PropertyHolder.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + // @ts-ignore + interface PropertyHolder { + /** + * Attempts to retrieve a specific {@link Property} type of this + * {@link PropertyHolder}. If the property is not applicable, + * {@link Optional#empty()} is returned. + *

{@link Property}s can define various immutable information about a + * {@link PropertyHolder} that is dependent on the instance of the holder. + * As {@link Property}s cannot be changed, the {@link PropertyHolder} can + * not change the information about it's own properties either.

+ */ + // @ts-ignore + getProperty(propertyClass: java.lang.Class): java.util.Optional; + /** + * Gets an immutable collection of all known {@link Property}s pertaining + * to this {@link PropertyHolder}. + *

{@link Property}s can not be changed such that the property is + * attached to the instance of the residing {@link PropertyHolder}.

+ */ + // @ts-ignore + getApplicableProperties(): java.util.Collection; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.PropertyRegistry.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.PropertyRegistry.d.ts new file mode 100644 index 00000000..1ac1f0e7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.PropertyRegistry.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + // @ts-ignore + interface PropertyRegistry { + /** + * Registers the provided {@link PropertyStore} for the given + * {@link Property} {@link Class}. Note that only a single + * {@link PropertyStore} can be registered per {@link Property}. Multiple + * registrations will result in exceptions being thrown. + */ + // @ts-ignore + register(propertyClass: java.lang.Class, propertyStore: org.spongepowered.api.data.property.PropertyStore): void; + /** + * Retrieves the {@link PropertyStore} associated for the provided + * {@link Property} class. + */ + // @ts-ignore + getStore(propertyClass: java.lang.Class): java.util.Optional; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.PropertyStore.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.PropertyStore.d.ts new file mode 100644 index 00000000..65be134d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.PropertyStore.d.ts @@ -0,0 +1,47 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + // @ts-ignore + interface PropertyStore { + /** + * Gets the desired property for the provided {@link PropertyHolder} at + * present time. A property may not be the same throughout the course of + * the lifetime of the {@link PropertyHolder}. + */ + // @ts-ignore + getFor(propertyHolder: org.spongepowered.api.data.property.PropertyHolder): java.util.Optional; + /** + * Gets the desired property for the provided {@link Location} at present + * time. A property may not be the same throughout the course of the + * lifetime of the {@link Location}. + */ + // @ts-ignore + getFor(location: org.spongepowered.api.world.Location): java.util.Optional; + /** + * Gets the desired property for the provided {@link Location} at present + * time, in relation to the provided {@link Direction}. + */ + // @ts-ignore + getFor(location: org.spongepowered.api.world.Location, direction: org.spongepowered.api.util.Direction): java.util.Optional; + /** + * Gets the priority of which this {@link PropertyStore} is used for + * handling a particular {@link PropertyHolder}. This is useful for + * multiple possible handlers of a {@link Property} being available + * in customized {@link PropertyHolder}s. + *

The priority is a measurement where the higher the priority, the + * sooner this {@link PropertyStore} is queried such that if + * {@link #getFor(PropertyHolder)} is called and returns a present value, + * that present value is returned. Usually, Sponge implemented + * {@link PropertyStore}s have a priority of 100.

+ */ + // @ts-ignore + getPriority(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.BlastResistanceProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.BlastResistanceProperty.d.ts new file mode 100644 index 00000000..d1598e65 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.BlastResistanceProperty.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace block { + // @ts-ignore + class BlastResistanceProperty extends org.spongepowered.api.data.property.DoubleProperty { + /** + * Creates a new {@link BlastResistanceProperty}. + */ + // @ts-ignore + constructor(value: number) + /** + * Creates a new {@link BlastResistanceProperty}. + */ + // @ts-ignore + constructor(value: number, operator: org.spongepowered.api.data.Property.Operator) + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.CollectiveProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.CollectiveProperty.d.ts new file mode 100644 index 00000000..46c3902c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.CollectiveProperty.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace block { + // @ts-ignore + abstract class CollectiveProperty extends java.lang.Object implements org.spongepowered.api.data.Property { + // @ts-ignore + constructor() + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.FlammableProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.FlammableProperty.d.ts new file mode 100644 index 00000000..9844630d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.FlammableProperty.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace block { + // @ts-ignore + class FlammableProperty extends org.spongepowered.api.data.property.BooleanProperty { + /** + * Creates a new {@link FlammableProperty} with the provided {@code boolean} + * value. + */ + // @ts-ignore + constructor(value: boolean) + /** + * Creates a new {@link FlammableProperty} with the provided {@code boolean} + * value and {@link org.spongepowered.api.data.Property.Operator comparison operator}. + */ + // @ts-ignore + constructor(value: boolean, operator: org.spongepowered.api.data.Property.Operator) + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.FullBlockSelectionBoxProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.FullBlockSelectionBoxProperty.d.ts new file mode 100644 index 00000000..369e815c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.FullBlockSelectionBoxProperty.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace block { + // @ts-ignore + class FullBlockSelectionBoxProperty extends org.spongepowered.api.data.property.BooleanProperty { + /** + * Creates a new {@link FullBlockSelectionBoxProperty} with the provided + * value. + */ + // @ts-ignore + constructor(value: boolean) + /** + * Creates a new {@link FullBlockSelectionBoxProperty} with the provided + * value. + */ + // @ts-ignore + constructor(value: boolean, operator: org.spongepowered.api.data.Property.Operator) + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.GravityAffectedProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.GravityAffectedProperty.d.ts new file mode 100644 index 00000000..cc549fc4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.GravityAffectedProperty.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace block { + // @ts-ignore + class GravityAffectedProperty extends org.spongepowered.api.data.property.BooleanProperty { + /** + * Creates a new {@link GravityAffectedProperty} with the provided {@code value}. + */ + // @ts-ignore + constructor(value: boolean) + /** + * Creates a new {@link GravityAffectedProperty} with the provided {@code value} + * and {@link org.spongepowered.api.data.Property.Operator comparison operator}. + */ + // @ts-ignore + constructor(value: boolean, operator: org.spongepowered.api.data.Property.Operator) + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.GroundLuminanceProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.GroundLuminanceProperty.d.ts new file mode 100644 index 00000000..8f208762 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.GroundLuminanceProperty.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace block { + // @ts-ignore + class GroundLuminanceProperty extends org.spongepowered.api.data.property.DoubleProperty { + /** + * Create a new {@link GroundLuminanceProperty} with the specified value. + */ + // @ts-ignore + constructor(value: number) + /** + * Create a new {@link GroundLuminanceProperty} with the specified value and + * logical operator. + */ + // @ts-ignore + constructor(value: number, operator: org.spongepowered.api.data.Property.Operator) + /** + * Create a new {@link GroundLuminanceProperty} with the specified value and + * logical operator. + */ + // @ts-ignore + constructor(value: java.lang.Object, operator: org.spongepowered.api.data.Property.Operator) + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.HardnessProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.HardnessProperty.d.ts new file mode 100644 index 00000000..5bde7c66 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.HardnessProperty.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace block { + // @ts-ignore + class HardnessProperty extends org.spongepowered.api.data.property.DoubleProperty { + /** + * Creates a new {@link HardnessProperty}. + */ + // @ts-ignore + constructor(value: number) + /** + * Creates a new {@link HardnessProperty}. + */ + // @ts-ignore + constructor(value: number, operator: org.spongepowered.api.data.Property.Operator) + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.HeldItemProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.HeldItemProperty.d.ts new file mode 100644 index 00000000..b6c795ec --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.HeldItemProperty.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace block { + // @ts-ignore + class HeldItemProperty extends org.spongepowered.api.data.property.AbstractProperty { + /** + * Creates a new {@link HeldItemProperty} with the provided {@link ItemType}. + */ + // @ts-ignore + constructor(value: org.spongepowered.api.item.ItemType) + /** + * Creates a new {@link HeldItemProperty} with the provided {@link ItemType} + * and {@link org.spongepowered.api.data.Property.Operator comparison operator}. + */ + // @ts-ignore + constructor(value: org.spongepowered.api.item.ItemType, op: org.spongepowered.api.data.Property.Operator) + // @ts-ignore + public compareTo(o: org.spongepowered.api.data.Property): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.IndirectlyPoweredProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.IndirectlyPoweredProperty.d.ts new file mode 100644 index 00000000..ad64beeb --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.IndirectlyPoweredProperty.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace block { + // @ts-ignore + class IndirectlyPoweredProperty extends org.spongepowered.api.data.property.BooleanProperty { + /** + * Creates a new {@link IndirectlyPoweredProperty}. + */ + // @ts-ignore + constructor(value: boolean) + /** + * Creates a new {@link IndirectlyPoweredProperty}. + */ + // @ts-ignore + constructor(value: boolean, operator: org.spongepowered.api.data.Property.Operator) + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.InstrumentProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.InstrumentProperty.d.ts new file mode 100644 index 00000000..1f06dc9b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.InstrumentProperty.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace block { + // @ts-ignore + class InstrumentProperty extends org.spongepowered.api.data.property.AbstractProperty { + /** + * Constructs a new {@link InstrumentProperty} with the + * specified {@link InstrumentType}. + */ + // @ts-ignore + constructor(instrument: org.spongepowered.api.data.type.InstrumentType) + // @ts-ignore + public compareTo(o: org.spongepowered.api.data.Property): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.LightEmissionProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.LightEmissionProperty.d.ts new file mode 100644 index 00000000..c1d06b95 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.LightEmissionProperty.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace block { + // @ts-ignore + class LightEmissionProperty extends org.spongepowered.api.data.property.IntProperty { + /** + * Create a new {@link LightEmissionProperty} with the specified value. + */ + // @ts-ignore + constructor(value: number) + /** + * Create a new {@link LightEmissionProperty} with the specified value and + * logical operator. + */ + // @ts-ignore + constructor(value: number, operator: org.spongepowered.api.data.Property.Operator) + /** + * Create a new {@link LightEmissionProperty} with the specified value and + * logical operator. + */ + // @ts-ignore + constructor(value: java.lang.Object, operator: org.spongepowered.api.data.Property.Operator) + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.MatterProperty.Matter.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.MatterProperty.Matter.d.ts new file mode 100644 index 00000000..80c2443a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.MatterProperty.Matter.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace block { + namespace MatterProperty { + // @ts-ignore + class Matter extends java.lang.Enum { + // @ts-ignore + public static SOLID: org.spongepowered.api.data.property.block.MatterProperty.Matter; + // @ts-ignore + public static LIQUID: org.spongepowered.api.data.property.block.MatterProperty.Matter; + // @ts-ignore + public static GAS: org.spongepowered.api.data.property.block.MatterProperty.Matter; + // @ts-ignore + public static values(): org.spongepowered.api.data.property.block.MatterProperty.Matter[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.data.property.block.MatterProperty.Matter; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.MatterProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.MatterProperty.d.ts new file mode 100644 index 00000000..8b142323 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.MatterProperty.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace block { + // @ts-ignore + class MatterProperty extends org.spongepowered.api.data.property.AbstractProperty { + /** + * Creates a new {@link MatterProperty} with the provided {@link Matter} + * state. + */ + // @ts-ignore + constructor(value: org.spongepowered.api.data.property.block.MatterProperty.Matter) + /** + * Creates a new {@link MatterProperty} with the provided {@link Matter} + * state. + */ + // @ts-ignore + constructor(value: org.spongepowered.api.data.property.block.MatterProperty.Matter, op: org.spongepowered.api.data.Property.Operator) + // @ts-ignore + public compareTo(o: org.spongepowered.api.data.Property): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.PassableProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.PassableProperty.d.ts new file mode 100644 index 00000000..35cb65aa --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.PassableProperty.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace block { + // @ts-ignore + class PassableProperty extends org.spongepowered.api.data.property.BooleanProperty { + /** + * Creates a new {@link PassableProperty}. + */ + // @ts-ignore + constructor(value: boolean) + /** + * Creates a new {@link PassableProperty}. + */ + // @ts-ignore + constructor(value: boolean, operator: org.spongepowered.api.data.Property.Operator) + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.PoweredProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.PoweredProperty.d.ts new file mode 100644 index 00000000..48e105e2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.PoweredProperty.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace block { + // @ts-ignore + class PoweredProperty extends org.spongepowered.api.data.property.BooleanProperty { + /** + * Creates a new {@link PoweredProperty}. + */ + // @ts-ignore + constructor(value: boolean) + /** + * Creates a new {@link PoweredProperty}. + */ + // @ts-ignore + constructor(value: boolean, operator: org.spongepowered.api.data.Property.Operator) + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.ReplaceableProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.ReplaceableProperty.d.ts new file mode 100644 index 00000000..f78699b6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.ReplaceableProperty.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace block { + // @ts-ignore + class ReplaceableProperty extends org.spongepowered.api.data.property.BooleanProperty { + /** + * Creates a new {@link ReplaceableProperty} with the provided + * {@code value}. + */ + // @ts-ignore + constructor(value: boolean) + /** + * Creates a new {@link ReplaceableProperty} with the provided + * {@code value} and + * {@link org.spongepowered.api.data.Property.Operator operator} for + * comparisons. + */ + // @ts-ignore + constructor(value: boolean, operator: org.spongepowered.api.data.Property.Operator) + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.SkyLuminanceProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.SkyLuminanceProperty.d.ts new file mode 100644 index 00000000..0e7d2f08 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.SkyLuminanceProperty.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace block { + // @ts-ignore + class SkyLuminanceProperty extends org.spongepowered.api.data.property.DoubleProperty { + /** + * Create a new {@link SkyLuminanceProperty} with the specified value. + */ + // @ts-ignore + constructor(value: number) + /** + * Create a new {@link SkyLuminanceProperty} with the specified value and + * logical operator. + */ + // @ts-ignore + constructor(value: number, operator: org.spongepowered.api.data.Property.Operator) + /** + * Create a new {@link SkyLuminanceProperty} with the specified value and + * logical operator. + */ + // @ts-ignore + constructor(value: java.lang.Object, operator: org.spongepowered.api.data.Property.Operator) + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.SolidCubeProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.SolidCubeProperty.d.ts new file mode 100644 index 00000000..66232fb8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.SolidCubeProperty.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace block { + // @ts-ignore + class SolidCubeProperty extends org.spongepowered.api.data.property.BooleanProperty { + /** + * Creates a new {@link SolidCubeProperty} with the provided value. + */ + // @ts-ignore + constructor(value: boolean) + /** + * Creates a new {@link SolidCubeProperty} with the provided value. + */ + // @ts-ignore + constructor(value: boolean, operator: org.spongepowered.api.data.Property.Operator) + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.StatisticsTrackedProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.StatisticsTrackedProperty.d.ts new file mode 100644 index 00000000..0f86b7db --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.StatisticsTrackedProperty.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace block { + // @ts-ignore + class StatisticsTrackedProperty extends org.spongepowered.api.data.property.BooleanProperty { + /** + * Creates a new {@link StatisticsTrackedProperty} for the provided + * {@code value}. Usually applicable to blocks, whether those blocks + * are statistically tracked. + */ + // @ts-ignore + constructor(value: boolean) + /** + * Creates a new {@link StatisticsTrackedProperty} for the provided + * {@code value} and {@link org.spongepowered.api.data.Property.Operator}. + * Usually applicable to blocks, whether those blocks are statistically + * tracked. + */ + // @ts-ignore + constructor(value: boolean, operator: org.spongepowered.api.data.Property.Operator) + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.SurrogateBlockProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.SurrogateBlockProperty.d.ts new file mode 100644 index 00000000..dd449d54 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.SurrogateBlockProperty.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace block { + // @ts-ignore + class SurrogateBlockProperty extends org.spongepowered.api.data.property.BooleanProperty { + /** + * Creates a new {@link SurrogateBlockProperty}. + */ + // @ts-ignore + constructor(value: boolean) + /** + * Creates a new {@link SurrogateBlockProperty}. + */ + // @ts-ignore + constructor(value: boolean, operator: org.spongepowered.api.data.Property.Operator) + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.TemperatureProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.TemperatureProperty.d.ts new file mode 100644 index 00000000..77f1f0c7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.TemperatureProperty.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace block { + // @ts-ignore + class TemperatureProperty extends org.spongepowered.api.data.property.DoubleProperty { + /** + * Creates a new {@link TemperatureProperty}. + */ + // @ts-ignore + constructor(value: number) + /** + * Creates a new {@link TemperatureProperty}. + */ + // @ts-ignore + constructor(value: number, operator: org.spongepowered.api.data.Property.Operator) + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.UnbreakableProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.UnbreakableProperty.d.ts new file mode 100644 index 00000000..ea6bd7e4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.block.UnbreakableProperty.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace block { + // @ts-ignore + class UnbreakableProperty extends org.spongepowered.api.data.property.BooleanProperty { + /** + * Creates a new {@link UnbreakableProperty} with the provided + * {@code value}. + */ + // @ts-ignore + constructor(value: boolean) + /** + * Creates a new {@link UnbreakableProperty} with the provided + * {@code value} and + * {@link org.spongepowered.api.data.Property.Operator}. + */ + // @ts-ignore + constructor(value: boolean, operator: org.spongepowered.api.data.Property.Operator) + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.entity.DominantHandProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.entity.DominantHandProperty.d.ts new file mode 100644 index 00000000..8d259fdd --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.entity.DominantHandProperty.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace entity { + // @ts-ignore + class DominantHandProperty extends org.spongepowered.api.data.property.AbstractProperty { + /** + * Creates a new {@link DominantHandProperty} with the provided + * {@link HandPreference} value. + */ + // @ts-ignore + constructor(value: org.spongepowered.api.data.type.HandPreference) + /** + * Creates a new {@link DominantHandProperty} with the provided + * {@link HandPreference} + * and {@link org.spongepowered.api.data.Property.Operator} value. + */ + // @ts-ignore + constructor(value: org.spongepowered.api.data.type.HandPreference, op: org.spongepowered.api.data.Property.Operator) + // @ts-ignore + public compareTo(o: org.spongepowered.api.data.Property): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.entity.EyeHeightProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.entity.EyeHeightProperty.d.ts new file mode 100644 index 00000000..bc14c9e2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.entity.EyeHeightProperty.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace entity { + // @ts-ignore + class EyeHeightProperty extends org.spongepowered.api.data.property.DoubleProperty { + /** + * Creates a new {@link EyeHeightProperty} based on the provided + * {@code value}. + */ + // @ts-ignore + constructor(value: number) + /** + * Creates a new {@link EyeHeightProperty} based on the provided + * {@code value} and {@link org.spongepowered.api.data.Property.Operator comparison operator}. + */ + // @ts-ignore + constructor(value: number, operator: org.spongepowered.api.data.Property.Operator) + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.entity.EyeLocationProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.entity.EyeLocationProperty.d.ts new file mode 100644 index 00000000..e6d68a60 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.entity.EyeLocationProperty.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace entity { + // @ts-ignore + class EyeLocationProperty extends org.spongepowered.api.data.property.AbstractProperty { + /** + * Creates a new {@link EyeLocationProperty} based on the provided + * {@code position}. + */ + // @ts-ignore + constructor(value: any /*Vector3d*/) + /** + * Creates a new {@link EyeLocationProperty} based on the provided + * {@link Vector3d position} and + * {@link org.spongepowered.api.data.Property.Operator comparison operator}. + */ + // @ts-ignore + constructor(value: any /*Vector3d*/, op: org.spongepowered.api.data.Property.Operator) + // @ts-ignore + public compareTo(o: org.spongepowered.api.data.Property): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.ApplicableEffectProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.ApplicableEffectProperty.d.ts new file mode 100644 index 00000000..4065a693 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.ApplicableEffectProperty.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace item { + // @ts-ignore + class ApplicableEffectProperty extends org.spongepowered.api.data.property.AbstractProperty { + /** + * Creates a {@link ApplicableEffectProperty} with a specific set of {@link PotionEffect}s. + */ + // @ts-ignore + constructor(value: java.util.Set) + /** + * Creates a {@link ApplicableEffectProperty} with a specific set of {@link PotionEffect}s. + */ + // @ts-ignore + constructor(value: java.util.Set, op: org.spongepowered.api.data.Property.Operator) + // @ts-ignore + public compareTo(o: org.spongepowered.api.data.Property): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.ArmorTypeProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.ArmorTypeProperty.d.ts new file mode 100644 index 00000000..2ef99644 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.ArmorTypeProperty.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace item { + // @ts-ignore + class ArmorTypeProperty extends org.spongepowered.api.data.property.AbstractProperty { + /** + * Construct a new {@link ArmorTypeProperty} with the desired + * {@link ArmorType}. + */ + // @ts-ignore + constructor(value: org.spongepowered.api.data.type.ArmorType) + /** + * Construct a new {@link ArmorTypeProperty} with the desired + * {@link ArmorType} and + * {@link org.spongepowered.api.data.Property.Operator}. + */ + // @ts-ignore + constructor(value: org.spongepowered.api.data.type.ArmorType, op: org.spongepowered.api.data.Property.Operator) + // @ts-ignore + public compareTo(o: org.spongepowered.api.data.Property): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.BurningFuelProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.BurningFuelProperty.d.ts new file mode 100644 index 00000000..f8ea1c84 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.BurningFuelProperty.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace item { + // @ts-ignore + class BurningFuelProperty extends org.spongepowered.api.data.property.IntProperty { + /** + * Creates a new {@link BurningFuelProperty} with the given amount of + * fuel ticks. + */ + // @ts-ignore + constructor(value: number) + /** + * Creates a new {@link BurningFuelProperty} with the given amount of + * fuel ticks. + */ + // @ts-ignore + constructor(value: number, op: org.spongepowered.api.data.Property.Operator) + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.DamageAbsorptionProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.DamageAbsorptionProperty.d.ts new file mode 100644 index 00000000..f840c06d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.DamageAbsorptionProperty.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace item { + // @ts-ignore + class DamageAbsorptionProperty extends org.spongepowered.api.data.property.IntProperty { + /** + * Creates a new {@link DamageAbsorptionProperty} with the given amount of + * damage absorption per hit. + */ + // @ts-ignore + constructor(value: number) + /** + * Creates a new {@link DamageAbsorptionProperty} with the given amount of + * damage absorption per hit. + */ + // @ts-ignore + constructor(value: number, operator: org.spongepowered.api.data.Property.Operator) + /** + * Creates a new {@link DamageAbsorptionProperty} with the given amount of + * damage absorption per hit. + */ + // @ts-ignore + constructor(value: java.lang.Object, operator: org.spongepowered.api.data.Property.Operator) + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.EfficiencyProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.EfficiencyProperty.d.ts new file mode 100644 index 00000000..ee6835e1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.EfficiencyProperty.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace item { + // @ts-ignore + class EfficiencyProperty extends org.spongepowered.api.data.property.DoubleProperty { + /** + * Creates a new EfficiencyProperty property for the specified value. + */ + // @ts-ignore + constructor(value: number) + /** + * Creates a new EfficiencyProperty property for the specified value + * and operator. + */ + // @ts-ignore + constructor(value: number, operator: org.spongepowered.api.data.Property.Operator) + /** + * Creates a new EfficiencyProperty property for the specified value + * and operator. + */ + // @ts-ignore + constructor(value: java.lang.Object, operator: org.spongepowered.api.data.Property.Operator) + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.EquipmentProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.EquipmentProperty.d.ts new file mode 100644 index 00000000..29ba21dd --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.EquipmentProperty.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace item { + // @ts-ignore + class EquipmentProperty extends org.spongepowered.api.data.property.AbstractProperty { + /** + * Constructs a new {@link EquipmentProperty}. + */ + // @ts-ignore + constructor(value: org.spongepowered.api.item.inventory.equipment.EquipmentType) + /** + * Constructs a new {@link EquipmentProperty}. + */ + // @ts-ignore + constructor(value: org.spongepowered.api.item.inventory.equipment.EquipmentType, op: org.spongepowered.api.data.Property.Operator) + /** + * Constructs a new {@link EquipmentProperty}. + */ + // @ts-ignore + constructor(value: java.lang.Object, operator: org.spongepowered.api.data.Property.Operator) + // @ts-ignore + public compareTo(o: org.spongepowered.api.data.Property): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.FoodRestorationProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.FoodRestorationProperty.d.ts new file mode 100644 index 00000000..df2f0c19 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.FoodRestorationProperty.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace item { + // @ts-ignore + class FoodRestorationProperty extends org.spongepowered.api.data.property.IntProperty { + /** + * Creates a new {@link FoodRestorationProperty}. + */ + // @ts-ignore + constructor(value: number) + /** + * Creates a new {@link FoodRestorationProperty}. + */ + // @ts-ignore + constructor(value: number, operator: org.spongepowered.api.data.Property.Operator) + /** + * Creates a new {@link FoodRestorationProperty}. + */ + // @ts-ignore + constructor(value: java.lang.Object, operator: org.spongepowered.api.data.Property.Operator) + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.HarvestingProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.HarvestingProperty.d.ts new file mode 100644 index 00000000..fd611bb9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.HarvestingProperty.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace item { + // @ts-ignore + class HarvestingProperty extends org.spongepowered.api.data.property.AbstractProperty { + /** + * Creates a {@link HarvestingProperty} with a specific set of {@link BlockType}s. + */ + // @ts-ignore + constructor(value: java.util.Set) + /** + * Creates a {@link HarvestingProperty} with a specific set of {@link BlockType}s. + */ + // @ts-ignore + constructor(value: java.util.Set, op: org.spongepowered.api.data.Property.Operator) + // @ts-ignore + public compareTo(o: org.spongepowered.api.data.Property): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.RecordProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.RecordProperty.d.ts new file mode 100644 index 00000000..47c92865 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.RecordProperty.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace item { + // @ts-ignore + class RecordProperty extends org.spongepowered.api.data.property.AbstractProperty { + /** + * Constructs a new record property with the specified record type. + */ + // @ts-ignore + constructor(instrument: org.spongepowered.api.effect.sound.record.RecordType) + // @ts-ignore + public compareTo(o: org.spongepowered.api.data.Property): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.SaturationProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.SaturationProperty.d.ts new file mode 100644 index 00000000..a9ae174a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.SaturationProperty.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace item { + // @ts-ignore + class SaturationProperty extends org.spongepowered.api.data.property.DoubleProperty { + /** + * Creates a new {@link SaturationProperty}. + */ + // @ts-ignore + constructor(value: java.lang.Double) + /** + * Creates a new {@link SaturationProperty}. + */ + // @ts-ignore + constructor(value: java.lang.Double, op: org.spongepowered.api.data.Property.Operator) + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.SmeltableProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.SmeltableProperty.d.ts new file mode 100644 index 00000000..32e9dcdc --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.SmeltableProperty.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace item { + // @ts-ignore + class SmeltableProperty extends org.spongepowered.api.data.property.BooleanProperty { + /** + * Creates a new {@link SmeltableProperty}. + */ + // @ts-ignore + constructor(value: boolean) + /** + * Creates a new {@link SmeltableProperty}. + */ + // @ts-ignore + constructor(value: boolean, operator: org.spongepowered.api.data.Property.Operator) + /** + * Creates a new {@link SmeltableProperty}. + */ + // @ts-ignore + constructor(value: java.lang.Object, operator: org.spongepowered.api.data.Property.Operator) + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.ToolTypeProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.ToolTypeProperty.d.ts new file mode 100644 index 00000000..829f4c10 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.ToolTypeProperty.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace item { + // @ts-ignore + class ToolTypeProperty extends org.spongepowered.api.data.property.AbstractProperty { + /** + * Creates a new {@link ToolTypeProperty} with the provided + * {@link ToolType} value. + */ + // @ts-ignore + constructor(value: org.spongepowered.api.data.type.ToolType) + /** + * Creates a new {@link ToolTypeProperty} with the provided + * {@link ToolType} value and + * {@link org.spongepowered.api.data.Property.Operator} + * for comparisons. + */ + // @ts-ignore + constructor(value: org.spongepowered.api.data.type.ToolType, op: org.spongepowered.api.data.Property.Operator) + // @ts-ignore + public compareTo(o: org.spongepowered.api.data.Property): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.UseLimitProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.UseLimitProperty.d.ts new file mode 100644 index 00000000..b201d2f1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.property.item.UseLimitProperty.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace property { + namespace item { + // @ts-ignore + class UseLimitProperty extends org.spongepowered.api.data.property.IntProperty { + /** + * Creates a new {@link UseLimitProperty}. + */ + // @ts-ignore + constructor(value: number) + /** + * Creates a new {@link UseLimitProperty}. + */ + // @ts-ignore + constructor(value: number, operator: org.spongepowered.api.data.Property.Operator) + /** + * Creates a new {@link UseLimitProperty}. + */ + // @ts-ignore + constructor(value: java.lang.Object, operator: org.spongepowered.api.data.Property.Operator) + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ArmorType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ArmorType.d.ts new file mode 100644 index 00000000..2b004c6d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ArmorType.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface ArmorType extends org.spongepowered.api.CatalogType { + /** + * Gets the {@link ItemType} that can be used to + * "repair" the armor type. + */ + // @ts-ignore + getRepairItemType(): java.util.Optional; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ArmorTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ArmorTypes.d.ts new file mode 100644 index 00000000..5c3943cf --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ArmorTypes.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class ArmorTypes extends java.lang.Object { + // @ts-ignore + public static CHAIN: org.spongepowered.api.data.type.ArmorType; + // @ts-ignore + public static DIAMOND: org.spongepowered.api.data.type.ArmorType; + // @ts-ignore + public static GOLD: org.spongepowered.api.data.type.ArmorType; + // @ts-ignore + public static IRON: org.spongepowered.api.data.type.ArmorType; + // @ts-ignore + public static LEATHER: org.spongepowered.api.data.type.ArmorType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Art.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Art.d.ts new file mode 100644 index 00000000..4b3e34ae --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Art.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface Art extends org.spongepowered.api.CatalogType { + /** + * Gets the height in blocks this art piece spans. + */ + // @ts-ignore + getHeight(): number; + /** + * Gets the width in blocks this art piece spans. + */ + // @ts-ignore + getWidth(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Arts.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Arts.d.ts new file mode 100644 index 00000000..a3675194 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Arts.d.ts @@ -0,0 +1,66 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class Arts extends java.lang.Object { + // @ts-ignore + public static ALBAN: org.spongepowered.api.data.type.Art; + // @ts-ignore + public static AZTEC: org.spongepowered.api.data.type.Art; + // @ts-ignore + public static AZTEC_2: org.spongepowered.api.data.type.Art; + // @ts-ignore + public static BOMB: org.spongepowered.api.data.type.Art; + // @ts-ignore + public static BURNING_SKULL: org.spongepowered.api.data.type.Art; + // @ts-ignore + public static BUST: org.spongepowered.api.data.type.Art; + // @ts-ignore + public static COURBET: org.spongepowered.api.data.type.Art; + // @ts-ignore + public static CREEBET: org.spongepowered.api.data.type.Art; + // @ts-ignore + public static DONKEY_KONG: org.spongepowered.api.data.type.Art; + // @ts-ignore + public static FIGHTERS: org.spongepowered.api.data.type.Art; + // @ts-ignore + public static GRAHAM: org.spongepowered.api.data.type.Art; + // @ts-ignore + public static KEBAB: org.spongepowered.api.data.type.Art; + // @ts-ignore + public static MATCH: org.spongepowered.api.data.type.Art; + // @ts-ignore + public static PIGSCENE: org.spongepowered.api.data.type.Art; + // @ts-ignore + public static PLANT: org.spongepowered.api.data.type.Art; + // @ts-ignore + public static POINTER: org.spongepowered.api.data.type.Art; + // @ts-ignore + public static POOL: org.spongepowered.api.data.type.Art; + // @ts-ignore + public static SEA: org.spongepowered.api.data.type.Art; + // @ts-ignore + public static SKELETON: org.spongepowered.api.data.type.Art; + // @ts-ignore + public static SKULL_AND_ROSES: org.spongepowered.api.data.type.Art; + // @ts-ignore + public static STAGE: org.spongepowered.api.data.type.Art; + // @ts-ignore + public static SUNSET: org.spongepowered.api.data.type.Art; + // @ts-ignore + public static VOID: org.spongepowered.api.data.type.Art; + // @ts-ignore + public static WANDERER: org.spongepowered.api.data.type.Art; + // @ts-ignore + public static WASTELAND: org.spongepowered.api.data.type.Art; + // @ts-ignore + public static WITHER: org.spongepowered.api.data.type.Art; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.BannerPatternShape.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.BannerPatternShape.d.ts new file mode 100644 index 00000000..ec0b1365 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.BannerPatternShape.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface BannerPatternShape extends org.spongepowered.api.CatalogType { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.BannerPatternShapes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.BannerPatternShapes.d.ts new file mode 100644 index 00000000..c976a82e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.BannerPatternShapes.d.ts @@ -0,0 +1,92 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class BannerPatternShapes extends java.lang.Object { + // @ts-ignore + public static BASE: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static BORDER: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static BRICKS: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static CIRCLE_MIDDLE: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static CREEPER: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static CROSS: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static CURLY_BORDER: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static DIAGONAL_LEFT: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static DIAGONAL_LEFT_MIRROR: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static DIAGONAL_RIGHT: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static DIAGONAL_RIGHT_MIRROR: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static FLOWER: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static GRADIENT: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static GRADIENT_UP: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static HALF_HORIZONTAL: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static HALF_HORIZONTAL_MIRROR: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static HALF_VERTICAL: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static HALF_VERTICAL_MIRROR: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static MOJANG: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static RHOMBUS_MIDDLE: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static SKULL: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static SQUARE_BOTTOM_LEFT: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static SQUARE_BOTTOM_RIGHT: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static SQUARE_TOP_LEFT: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static SQUARE_TOP_RIGHT: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static STRAIGHT_CROSS: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static STRIPE_BOTTOM: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static STRIPE_CENTER: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static STRIPE_DOWNLEFT: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static STRIPE_DOWNRIGHT: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static STRIPE_LEFT: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static STRIPE_MIDDLE: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static STRIPE_RIGHT: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static STRIPE_SMALL: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static STRIPE_TOP: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static TRIANGLES_BOTTOM: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static TRIANGLES_TOP: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static TRIANGLE_BOTTOM: org.spongepowered.api.data.type.BannerPatternShape; + // @ts-ignore + public static TRIANGLE_TOP: org.spongepowered.api.data.type.BannerPatternShape; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.BigMushroomType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.BigMushroomType.d.ts new file mode 100644 index 00000000..0c44a4af --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.BigMushroomType.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface BigMushroomType extends org.spongepowered.api.CatalogType { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.BigMushroomTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.BigMushroomTypes.d.ts new file mode 100644 index 00000000..bfd32358 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.BigMushroomTypes.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class BigMushroomTypes extends java.lang.Object { + // @ts-ignore + public static ALL_INSIDE: org.spongepowered.api.data.type.BigMushroomType; + // @ts-ignore + public static ALL_OUTSIDE: org.spongepowered.api.data.type.BigMushroomType; + // @ts-ignore + public static ALL_STEM: org.spongepowered.api.data.type.BigMushroomType; + // @ts-ignore + public static CENTER: org.spongepowered.api.data.type.BigMushroomType; + // @ts-ignore + public static EAST: org.spongepowered.api.data.type.BigMushroomType; + // @ts-ignore + public static NORTH: org.spongepowered.api.data.type.BigMushroomType; + // @ts-ignore + public static NORTH_EAST: org.spongepowered.api.data.type.BigMushroomType; + // @ts-ignore + public static NORTH_WEST: org.spongepowered.api.data.type.BigMushroomType; + // @ts-ignore + public static SOUTH: org.spongepowered.api.data.type.BigMushroomType; + // @ts-ignore + public static SOUTH_EAST: org.spongepowered.api.data.type.BigMushroomType; + // @ts-ignore + public static SOUTH_WEST: org.spongepowered.api.data.type.BigMushroomType; + // @ts-ignore + public static STEM: org.spongepowered.api.data.type.BigMushroomType; + // @ts-ignore + public static WEST: org.spongepowered.api.data.type.BigMushroomType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.BodyPart.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.BodyPart.d.ts new file mode 100644 index 00000000..d3cd4dfb --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.BodyPart.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface BodyPart extends org.spongepowered.api.CatalogType { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.BodyParts.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.BodyParts.d.ts new file mode 100644 index 00000000..820a5ccc --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.BodyParts.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class BodyParts extends java.lang.Object { + // @ts-ignore + public static CHEST: org.spongepowered.api.data.type.BodyPart; + // @ts-ignore + public static HEAD: org.spongepowered.api.data.type.BodyPart; + // @ts-ignore + public static LEFT_ARM: org.spongepowered.api.data.type.BodyPart; + // @ts-ignore + public static LEFT_LEG: org.spongepowered.api.data.type.BodyPart; + // @ts-ignore + public static RIGHT_ARM: org.spongepowered.api.data.type.BodyPart; + // @ts-ignore + public static RIGHT_LEG: org.spongepowered.api.data.type.BodyPart; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.BrickType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.BrickType.d.ts new file mode 100644 index 00000000..19ccf7c7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.BrickType.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface BrickType extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.BrickTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.BrickTypes.d.ts new file mode 100644 index 00000000..10ee19f4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.BrickTypes.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class BrickTypes extends java.lang.Object { + // @ts-ignore + public static CHISELED: org.spongepowered.api.data.type.BrickType; + // @ts-ignore + public static CRACKED: org.spongepowered.api.data.type.BrickType; + // @ts-ignore + public static DEFAULT: org.spongepowered.api.data.type.BrickType; + // @ts-ignore + public static MOSSY: org.spongepowered.api.data.type.BrickType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Career.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Career.d.ts new file mode 100644 index 00000000..d1613a7e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Career.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface Career extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + /** + * Gets the parent profession of this career. The profession is permanent + * and can not be changed. + */ + // @ts-ignore + getProfession(): org.spongepowered.api.data.type.Profession; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Careers.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Careers.d.ts new file mode 100644 index 00000000..236d2653 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Careers.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class Careers extends java.lang.Object { + // @ts-ignore + public static ARMORER: org.spongepowered.api.data.type.Career; + // @ts-ignore + public static BUTCHER: org.spongepowered.api.data.type.Career; + // @ts-ignore + public static CARTOGRAPHER: org.spongepowered.api.data.type.Career; + // @ts-ignore + public static CLERIC: org.spongepowered.api.data.type.Career; + // @ts-ignore + public static FARMER: org.spongepowered.api.data.type.Career; + // @ts-ignore + public static FISHERMAN: org.spongepowered.api.data.type.Career; + // @ts-ignore + public static FLETCHER: org.spongepowered.api.data.type.Career; + // @ts-ignore + public static LEATHERWORKER: org.spongepowered.api.data.type.Career; + // @ts-ignore + public static LIBRARIAN: org.spongepowered.api.data.type.Career; + // @ts-ignore + public static SHEPHERD: org.spongepowered.api.data.type.Career; + // @ts-ignore + public static TOOL_SMITH: org.spongepowered.api.data.type.Career; + // @ts-ignore + public static WEAPON_SMITH: org.spongepowered.api.data.type.Career; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.CoalType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.CoalType.d.ts new file mode 100644 index 00000000..f1bac205 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.CoalType.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface CoalType extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.CoalTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.CoalTypes.d.ts new file mode 100644 index 00000000..7bd5676d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.CoalTypes.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class CoalTypes extends java.lang.Object { + // @ts-ignore + public static CHARCOAL: org.spongepowered.api.data.type.CoalType; + // @ts-ignore + public static COAL: org.spongepowered.api.data.type.CoalType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ComparatorType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ComparatorType.d.ts new file mode 100644 index 00000000..837dbf40 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ComparatorType.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface ComparatorType extends org.spongepowered.api.CatalogType { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ComparatorTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ComparatorTypes.d.ts new file mode 100644 index 00000000..9566f35b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ComparatorTypes.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class ComparatorTypes extends java.lang.Object { + // @ts-ignore + public static COMPARE: org.spongepowered.api.data.type.ComparatorType; + // @ts-ignore + public static SUBTRACT: org.spongepowered.api.data.type.ComparatorType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.CookedFish.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.CookedFish.d.ts new file mode 100644 index 00000000..739f3be0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.CookedFish.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface CookedFish extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + /** + * Gets this cooked fish type's corresponding {@link Fish} type. + */ + // @ts-ignore + getRawFish(): org.spongepowered.api.data.type.Fish; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.CookedFishes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.CookedFishes.d.ts new file mode 100644 index 00000000..d151e063 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.CookedFishes.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class CookedFishes extends java.lang.Object { + // @ts-ignore + public static COD: org.spongepowered.api.data.type.CookedFish; + // @ts-ignore + public static SALMON: org.spongepowered.api.data.type.CookedFish; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.DirtType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.DirtType.d.ts new file mode 100644 index 00000000..b8cf988c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.DirtType.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface DirtType extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.DirtTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.DirtTypes.d.ts new file mode 100644 index 00000000..77efd0eb --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.DirtTypes.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class DirtTypes extends java.lang.Object { + // @ts-ignore + public static COARSE_DIRT: org.spongepowered.api.data.type.DirtType; + // @ts-ignore + public static DIRT: org.spongepowered.api.data.type.DirtType; + // @ts-ignore + public static PODZOL: org.spongepowered.api.data.type.DirtType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.DisguisedBlockType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.DisguisedBlockType.d.ts new file mode 100644 index 00000000..2f744e9f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.DisguisedBlockType.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface DisguisedBlockType extends org.spongepowered.api.CatalogType { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.DisguisedBlockTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.DisguisedBlockTypes.d.ts new file mode 100644 index 00000000..346b2a91 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.DisguisedBlockTypes.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class DisguisedBlockTypes extends java.lang.Object { + // @ts-ignore + public static CHISELED_STONEBRICK: org.spongepowered.api.data.type.DisguisedBlockType; + // @ts-ignore + public static COBBLESTONE: org.spongepowered.api.data.type.DisguisedBlockType; + // @ts-ignore + public static CRACKED_STONEBRICK: org.spongepowered.api.data.type.DisguisedBlockType; + // @ts-ignore + public static MOSSY_STONEBRICK: org.spongepowered.api.data.type.DisguisedBlockType; + // @ts-ignore + public static STONE: org.spongepowered.api.data.type.DisguisedBlockType; + // @ts-ignore + public static STONEBRICK: org.spongepowered.api.data.type.DisguisedBlockType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.DoublePlantType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.DoublePlantType.d.ts new file mode 100644 index 00000000..6c0de0dc --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.DoublePlantType.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface DoublePlantType extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.DoublePlantTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.DoublePlantTypes.d.ts new file mode 100644 index 00000000..23be5f60 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.DoublePlantTypes.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class DoublePlantTypes extends java.lang.Object { + // @ts-ignore + public static FERN: org.spongepowered.api.data.type.DoublePlantType; + // @ts-ignore + public static GRASS: org.spongepowered.api.data.type.DoublePlantType; + // @ts-ignore + public static PAEONIA: org.spongepowered.api.data.type.DoublePlantType; + // @ts-ignore + public static ROSE: org.spongepowered.api.data.type.DoublePlantType; + // @ts-ignore + public static SUNFLOWER: org.spongepowered.api.data.type.DoublePlantType; + // @ts-ignore + public static SYRINGA: org.spongepowered.api.data.type.DoublePlantType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.DyeColor.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.DyeColor.d.ts new file mode 100644 index 00000000..9d8b561d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.DyeColor.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface DyeColor extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + /** + * Gets this dye color as a {@link Color} for easy translation. + */ + // @ts-ignore + getColor(): org.spongepowered.api.util.Color; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.DyeColors.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.DyeColors.d.ts new file mode 100644 index 00000000..120b60b4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.DyeColors.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class DyeColors extends java.lang.Object { + // @ts-ignore + public static BLACK: org.spongepowered.api.data.type.DyeColor; + // @ts-ignore + public static BLUE: org.spongepowered.api.data.type.DyeColor; + // @ts-ignore + public static BROWN: org.spongepowered.api.data.type.DyeColor; + // @ts-ignore + public static CYAN: org.spongepowered.api.data.type.DyeColor; + // @ts-ignore + public static GRAY: org.spongepowered.api.data.type.DyeColor; + // @ts-ignore + public static GREEN: org.spongepowered.api.data.type.DyeColor; + // @ts-ignore + public static LIGHT_BLUE: org.spongepowered.api.data.type.DyeColor; + // @ts-ignore + public static LIME: org.spongepowered.api.data.type.DyeColor; + // @ts-ignore + public static MAGENTA: org.spongepowered.api.data.type.DyeColor; + // @ts-ignore + public static ORANGE: org.spongepowered.api.data.type.DyeColor; + // @ts-ignore + public static PINK: org.spongepowered.api.data.type.DyeColor; + // @ts-ignore + public static PURPLE: org.spongepowered.api.data.type.DyeColor; + // @ts-ignore + public static RED: org.spongepowered.api.data.type.DyeColor; + // @ts-ignore + public static SILVER: org.spongepowered.api.data.type.DyeColor; + // @ts-ignore + public static WHITE: org.spongepowered.api.data.type.DyeColor; + // @ts-ignore + public static YELLOW: org.spongepowered.api.data.type.DyeColor; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Fish.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Fish.d.ts new file mode 100644 index 00000000..0c7e8834 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Fish.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface Fish extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + /** + * Gets this raw fish type's corresponding {@link CookedFish} type. + */ + // @ts-ignore + getCookedFish(): java.util.Optional; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Fishes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Fishes.d.ts new file mode 100644 index 00000000..932efb61 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Fishes.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class Fishes extends java.lang.Object { + // @ts-ignore + public static CLOWNFISH: org.spongepowered.api.data.type.Fish; + // @ts-ignore + public static COD: org.spongepowered.api.data.type.Fish; + // @ts-ignore + public static PUFFERFISH: org.spongepowered.api.data.type.Fish; + // @ts-ignore + public static SALMON: org.spongepowered.api.data.type.Fish; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.GoldenApple.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.GoldenApple.d.ts new file mode 100644 index 00000000..115dd89f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.GoldenApple.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface GoldenApple extends org.spongepowered.api.CatalogType { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.GoldenApples.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.GoldenApples.d.ts new file mode 100644 index 00000000..467b48af --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.GoldenApples.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class GoldenApples extends java.lang.Object { + // @ts-ignore + public static ENCHANTED_GOLDEN_APPLE: org.spongepowered.api.data.type.GoldenApple; + // @ts-ignore + public static GOLDEN_APPLE: org.spongepowered.api.data.type.GoldenApple; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.HandPreference.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.HandPreference.d.ts new file mode 100644 index 00000000..b71090e5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.HandPreference.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface HandPreference extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.HandPreferences.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.HandPreferences.d.ts new file mode 100644 index 00000000..1a7958b3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.HandPreferences.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class HandPreferences extends java.lang.Object { + // @ts-ignore + public static LEFT: org.spongepowered.api.data.type.HandPreference; + // @ts-ignore + public static RIGHT: org.spongepowered.api.data.type.HandPreference; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.HandType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.HandType.d.ts new file mode 100644 index 00000000..867f948b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.HandType.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface HandType extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.HandTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.HandTypes.d.ts new file mode 100644 index 00000000..7450d099 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.HandTypes.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class HandTypes extends java.lang.Object { + // @ts-ignore + public static MAIN_HAND: org.spongepowered.api.data.type.HandType; + // @ts-ignore + public static OFF_HAND: org.spongepowered.api.data.type.HandType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Hinge.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Hinge.d.ts new file mode 100644 index 00000000..e956fca0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Hinge.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface Hinge extends org.spongepowered.api.CatalogType, org.spongepowered.api.util.Cycleable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Hinges.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Hinges.d.ts new file mode 100644 index 00000000..02195354 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Hinges.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class Hinges extends java.lang.Object { + // @ts-ignore + public static LEFT: org.spongepowered.api.data.type.Hinge; + // @ts-ignore + public static RIGHT: org.spongepowered.api.data.type.Hinge; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.HorseColor.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.HorseColor.d.ts new file mode 100644 index 00000000..128eb8b5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.HorseColor.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface HorseColor extends org.spongepowered.api.CatalogType { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.HorseColors.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.HorseColors.d.ts new file mode 100644 index 00000000..0e298ed2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.HorseColors.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class HorseColors extends java.lang.Object { + // @ts-ignore + public static BLACK: org.spongepowered.api.data.type.HorseColor; + // @ts-ignore + public static BROWN: org.spongepowered.api.data.type.HorseColor; + // @ts-ignore + public static CHESTNUT: org.spongepowered.api.data.type.HorseColor; + // @ts-ignore + public static CREAMY: org.spongepowered.api.data.type.HorseColor; + // @ts-ignore + public static DARK_BROWN: org.spongepowered.api.data.type.HorseColor; + // @ts-ignore + public static GRAY: org.spongepowered.api.data.type.HorseColor; + // @ts-ignore + public static WHITE: org.spongepowered.api.data.type.HorseColor; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.HorseStyle.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.HorseStyle.d.ts new file mode 100644 index 00000000..01392407 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.HorseStyle.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface HorseStyle extends org.spongepowered.api.CatalogType { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.HorseStyles.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.HorseStyles.d.ts new file mode 100644 index 00000000..e4288b33 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.HorseStyles.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class HorseStyles extends java.lang.Object { + // @ts-ignore + public static BLACK_DOTS: org.spongepowered.api.data.type.HorseStyle; + // @ts-ignore + public static NONE: org.spongepowered.api.data.type.HorseStyle; + // @ts-ignore + public static WHITE: org.spongepowered.api.data.type.HorseStyle; + // @ts-ignore + public static WHITEFIELD: org.spongepowered.api.data.type.HorseStyle; + // @ts-ignore + public static WHITE_DOTS: org.spongepowered.api.data.type.HorseStyle; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.InstrumentType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.InstrumentType.d.ts new file mode 100644 index 00000000..0bb05f56 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.InstrumentType.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface InstrumentType extends org.spongepowered.api.CatalogType { + /** + * Gets the {@link SoundType} that is used by + * this {@link InstrumentType}. + */ + // @ts-ignore + getSound(): org.spongepowered.api.effect.sound.SoundType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.InstrumentTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.InstrumentTypes.d.ts new file mode 100644 index 00000000..8b94fd1b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.InstrumentTypes.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class InstrumentTypes extends java.lang.Object { + // @ts-ignore + public static BASS_ATTACK: org.spongepowered.api.data.type.InstrumentType; + // @ts-ignore + public static BASS_DRUM: org.spongepowered.api.data.type.InstrumentType; + // @ts-ignore + public static BELL: org.spongepowered.api.data.type.InstrumentType; + // @ts-ignore + public static CHIME: org.spongepowered.api.data.type.InstrumentType; + // @ts-ignore + public static FLUTE: org.spongepowered.api.data.type.InstrumentType; + // @ts-ignore + public static GUITAR: org.spongepowered.api.data.type.InstrumentType; + // @ts-ignore + public static HARP: org.spongepowered.api.data.type.InstrumentType; + // @ts-ignore + public static HIGH_HAT: org.spongepowered.api.data.type.InstrumentType; + // @ts-ignore + public static SNARE: org.spongepowered.api.data.type.InstrumentType; + // @ts-ignore + public static XYLOPHONE: org.spongepowered.api.data.type.InstrumentType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.LlamaVariant.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.LlamaVariant.d.ts new file mode 100644 index 00000000..0fbf1851 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.LlamaVariant.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface LlamaVariant extends org.spongepowered.api.CatalogType { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.LlamaVariants.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.LlamaVariants.d.ts new file mode 100644 index 00000000..695be256 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.LlamaVariants.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class LlamaVariants extends java.lang.Object { + // @ts-ignore + public static CREAMY: org.spongepowered.api.data.type.LlamaVariant; + // @ts-ignore + public static WHITE: org.spongepowered.api.data.type.LlamaVariant; + // @ts-ignore + public static BROWN: org.spongepowered.api.data.type.LlamaVariant; + // @ts-ignore + public static GRAY: org.spongepowered.api.data.type.LlamaVariant; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.LogAxes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.LogAxes.d.ts new file mode 100644 index 00000000..04494f9a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.LogAxes.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class LogAxes extends java.lang.Object { + // @ts-ignore + public static NONE: org.spongepowered.api.data.type.LogAxis; + // @ts-ignore + public static X: org.spongepowered.api.data.type.LogAxis; + // @ts-ignore + public static Y: org.spongepowered.api.data.type.LogAxis; + // @ts-ignore + public static Z: org.spongepowered.api.data.type.LogAxis; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.LogAxis.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.LogAxis.d.ts new file mode 100644 index 00000000..7b197ad8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.LogAxis.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface LogAxis extends org.spongepowered.api.CatalogType, org.spongepowered.api.util.Cycleable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.NotePitch.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.NotePitch.d.ts new file mode 100644 index 00000000..5c83c7e1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.NotePitch.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface NotePitch extends org.spongepowered.api.CatalogType, org.spongepowered.api.util.Cycleable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.NotePitches.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.NotePitches.d.ts new file mode 100644 index 00000000..5f5e5c2c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.NotePitches.d.ts @@ -0,0 +1,64 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class NotePitches extends java.lang.Object { + // @ts-ignore + public static A1: org.spongepowered.api.data.type.NotePitch; + // @ts-ignore + public static A2: org.spongepowered.api.data.type.NotePitch; + // @ts-ignore + public static A_SHARP1: org.spongepowered.api.data.type.NotePitch; + // @ts-ignore + public static A_SHARP2: org.spongepowered.api.data.type.NotePitch; + // @ts-ignore + public static B1: org.spongepowered.api.data.type.NotePitch; + // @ts-ignore + public static B2: org.spongepowered.api.data.type.NotePitch; + // @ts-ignore + public static C1: org.spongepowered.api.data.type.NotePitch; + // @ts-ignore + public static C2: org.spongepowered.api.data.type.NotePitch; + // @ts-ignore + public static C_SHARP1: org.spongepowered.api.data.type.NotePitch; + // @ts-ignore + public static C_SHARP2: org.spongepowered.api.data.type.NotePitch; + // @ts-ignore + public static D1: org.spongepowered.api.data.type.NotePitch; + // @ts-ignore + public static D2: org.spongepowered.api.data.type.NotePitch; + // @ts-ignore + public static D_SHARP1: org.spongepowered.api.data.type.NotePitch; + // @ts-ignore + public static D_SHARP2: org.spongepowered.api.data.type.NotePitch; + // @ts-ignore + public static E1: org.spongepowered.api.data.type.NotePitch; + // @ts-ignore + public static E2: org.spongepowered.api.data.type.NotePitch; + // @ts-ignore + public static F1: org.spongepowered.api.data.type.NotePitch; + // @ts-ignore + public static F2: org.spongepowered.api.data.type.NotePitch; + // @ts-ignore + public static F_SHARP0: org.spongepowered.api.data.type.NotePitch; + // @ts-ignore + public static F_SHARP1: org.spongepowered.api.data.type.NotePitch; + // @ts-ignore + public static F_SHARP2: org.spongepowered.api.data.type.NotePitch; + // @ts-ignore + public static G0: org.spongepowered.api.data.type.NotePitch; + // @ts-ignore + public static G1: org.spongepowered.api.data.type.NotePitch; + // @ts-ignore + public static G_SHARP0: org.spongepowered.api.data.type.NotePitch; + // @ts-ignore + public static G_SHARP1: org.spongepowered.api.data.type.NotePitch; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.OcelotType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.OcelotType.d.ts new file mode 100644 index 00000000..65b51ef2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.OcelotType.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface OcelotType extends org.spongepowered.api.CatalogType { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.OcelotTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.OcelotTypes.d.ts new file mode 100644 index 00000000..0ec3d4f0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.OcelotTypes.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class OcelotTypes extends java.lang.Object { + // @ts-ignore + public static BLACK_CAT: org.spongepowered.api.data.type.OcelotType; + // @ts-ignore + public static RED_CAT: org.spongepowered.api.data.type.OcelotType; + // @ts-ignore + public static SIAMESE_CAT: org.spongepowered.api.data.type.OcelotType; + // @ts-ignore + public static WILD_OCELOT: org.spongepowered.api.data.type.OcelotType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ParrotVariant.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ParrotVariant.d.ts new file mode 100644 index 00000000..42880eee --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ParrotVariant.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface ParrotVariant extends org.spongepowered.api.CatalogType { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ParrotVariants.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ParrotVariants.d.ts new file mode 100644 index 00000000..f73377e8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ParrotVariants.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class ParrotVariants extends java.lang.Object { + // @ts-ignore + public static BLUE: org.spongepowered.api.data.type.ParrotVariant; + // @ts-ignore + public static CYAN: org.spongepowered.api.data.type.ParrotVariant; + // @ts-ignore + public static GRAY: org.spongepowered.api.data.type.ParrotVariant; + // @ts-ignore + public static GREEN: org.spongepowered.api.data.type.ParrotVariant; + // @ts-ignore + public static RED: org.spongepowered.api.data.type.ParrotVariant; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PickupRule.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PickupRule.d.ts new file mode 100644 index 00000000..694a3271 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PickupRule.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface PickupRule extends org.spongepowered.api.CatalogType { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PickupRules.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PickupRules.d.ts new file mode 100644 index 00000000..09fbbe58 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PickupRules.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class PickupRules extends java.lang.Object { + // @ts-ignore + public static ALLOWED: org.spongepowered.api.data.type.PickupRule; + // @ts-ignore + public static CREATIVE_ONLY: org.spongepowered.api.data.type.PickupRule; + // @ts-ignore + public static DISALLOWED: org.spongepowered.api.data.type.PickupRule; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PistonType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PistonType.d.ts new file mode 100644 index 00000000..a3cd70b6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PistonType.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface PistonType extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PistonTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PistonTypes.d.ts new file mode 100644 index 00000000..dd8bb916 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PistonTypes.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class PistonTypes extends java.lang.Object { + // @ts-ignore + public static NORMAL: org.spongepowered.api.data.type.PistonType; + // @ts-ignore + public static STICKY: org.spongepowered.api.data.type.PistonType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PlantType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PlantType.d.ts new file mode 100644 index 00000000..516de5b7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PlantType.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface PlantType extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PlantTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PlantTypes.d.ts new file mode 100644 index 00000000..21761d3b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PlantTypes.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class PlantTypes extends java.lang.Object { + // @ts-ignore + public static ALLIUM: org.spongepowered.api.data.type.PlantType; + // @ts-ignore + public static BLUE_ORCHID: org.spongepowered.api.data.type.PlantType; + // @ts-ignore + public static DANDELION: org.spongepowered.api.data.type.PlantType; + // @ts-ignore + public static HOUSTONIA: org.spongepowered.api.data.type.PlantType; + // @ts-ignore + public static ORANGE_TULIP: org.spongepowered.api.data.type.PlantType; + // @ts-ignore + public static OXEYE_DAISY: org.spongepowered.api.data.type.PlantType; + // @ts-ignore + public static PINK_TULIP: org.spongepowered.api.data.type.PlantType; + // @ts-ignore + public static POPPY: org.spongepowered.api.data.type.PlantType; + // @ts-ignore + public static RED_TULIP: org.spongepowered.api.data.type.PlantType; + // @ts-ignore + public static WHITE_TULIP: org.spongepowered.api.data.type.PlantType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PortionType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PortionType.d.ts new file mode 100644 index 00000000..ac4a7650 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PortionType.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface PortionType extends org.spongepowered.api.CatalogType { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PortionTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PortionTypes.d.ts new file mode 100644 index 00000000..b095d386 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PortionTypes.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class PortionTypes extends java.lang.Object { + // @ts-ignore + public static BOTTOM: org.spongepowered.api.data.type.PortionType; + // @ts-ignore + public static TOP: org.spongepowered.api.data.type.PortionType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PrismarineType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PrismarineType.d.ts new file mode 100644 index 00000000..a87b6f73 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PrismarineType.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface PrismarineType extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PrismarineTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PrismarineTypes.d.ts new file mode 100644 index 00000000..ec8040d5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.PrismarineTypes.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class PrismarineTypes extends java.lang.Object { + // @ts-ignore + public static BRICKS: org.spongepowered.api.data.type.PrismarineType; + // @ts-ignore + public static DARK: org.spongepowered.api.data.type.PrismarineType; + // @ts-ignore + public static ROUGH: org.spongepowered.api.data.type.PrismarineType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Profession.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Profession.d.ts new file mode 100644 index 00000000..3e1ea444 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Profession.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface Profession extends org.spongepowered.api.CatalogType { + /** + * Gets the collection of available {@link Career}s. + */ + // @ts-ignore + getCareers(): java.util.Collection; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Professions.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Professions.d.ts new file mode 100644 index 00000000..7daf489a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.Professions.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class Professions extends java.lang.Object { + // @ts-ignore + public static BLACKSMITH: org.spongepowered.api.data.type.Profession; + // @ts-ignore + public static BUTCHER: org.spongepowered.api.data.type.Profession; + // @ts-ignore + public static FARMER: org.spongepowered.api.data.type.Profession; + // @ts-ignore + public static LIBRARIAN: org.spongepowered.api.data.type.Profession; + // @ts-ignore + public static PRIEST: org.spongepowered.api.data.type.Profession; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.QuartzType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.QuartzType.d.ts new file mode 100644 index 00000000..ed667805 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.QuartzType.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface QuartzType extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.QuartzTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.QuartzTypes.d.ts new file mode 100644 index 00000000..f8f34909 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.QuartzTypes.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class QuartzTypes extends java.lang.Object { + // @ts-ignore + public static CHISELED: org.spongepowered.api.data.type.QuartzType; + // @ts-ignore + public static DEFAULT: org.spongepowered.api.data.type.QuartzType; + // @ts-ignore + public static LINES_X: org.spongepowered.api.data.type.QuartzType; + // @ts-ignore + public static LINES_Y: org.spongepowered.api.data.type.QuartzType; + // @ts-ignore + public static LINES_Z: org.spongepowered.api.data.type.QuartzType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.RabbitType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.RabbitType.d.ts new file mode 100644 index 00000000..489e6b2b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.RabbitType.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface RabbitType extends org.spongepowered.api.CatalogType { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.RabbitTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.RabbitTypes.d.ts new file mode 100644 index 00000000..1ea95e9b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.RabbitTypes.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class RabbitTypes extends java.lang.Object { + // @ts-ignore + public static BLACK: org.spongepowered.api.data.type.RabbitType; + // @ts-ignore + public static BLACK_AND_WHITE: org.spongepowered.api.data.type.RabbitType; + // @ts-ignore + public static BROWN: org.spongepowered.api.data.type.RabbitType; + // @ts-ignore + public static GOLD: org.spongepowered.api.data.type.RabbitType; + // @ts-ignore + public static KILLER: org.spongepowered.api.data.type.RabbitType; + // @ts-ignore + public static SALT_AND_PEPPER: org.spongepowered.api.data.type.RabbitType; + // @ts-ignore + public static WHITE: org.spongepowered.api.data.type.RabbitType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.RailDirection.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.RailDirection.d.ts new file mode 100644 index 00000000..3e53537e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.RailDirection.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface RailDirection extends org.spongepowered.api.CatalogType, org.spongepowered.api.util.Cycleable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.RailDirections.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.RailDirections.d.ts new file mode 100644 index 00000000..1d21dd55 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.RailDirections.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class RailDirections extends java.lang.Object { + // @ts-ignore + public static ASCENDING_EAST: org.spongepowered.api.data.type.RailDirection; + // @ts-ignore + public static ASCENDING_NORTH: org.spongepowered.api.data.type.RailDirection; + // @ts-ignore + public static ASCENDING_SOUTH: org.spongepowered.api.data.type.RailDirection; + // @ts-ignore + public static ASCENDING_WEST: org.spongepowered.api.data.type.RailDirection; + // @ts-ignore + public static EAST_WEST: org.spongepowered.api.data.type.RailDirection; + // @ts-ignore + public static NORTH_EAST: org.spongepowered.api.data.type.RailDirection; + // @ts-ignore + public static NORTH_SOUTH: org.spongepowered.api.data.type.RailDirection; + // @ts-ignore + public static NORTH_WEST: org.spongepowered.api.data.type.RailDirection; + // @ts-ignore + public static SOUTH_EAST: org.spongepowered.api.data.type.RailDirection; + // @ts-ignore + public static SOUTH_WEST: org.spongepowered.api.data.type.RailDirection; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SandType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SandType.d.ts new file mode 100644 index 00000000..c4399560 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SandType.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface SandType extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SandTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SandTypes.d.ts new file mode 100644 index 00000000..cf4299aa --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SandTypes.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class SandTypes extends java.lang.Object { + // @ts-ignore + public static NORMAL: org.spongepowered.api.data.type.SandType; + // @ts-ignore + public static RED: org.spongepowered.api.data.type.SandType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SandstoneType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SandstoneType.d.ts new file mode 100644 index 00000000..022679c6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SandstoneType.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface SandstoneType extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SandstoneTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SandstoneTypes.d.ts new file mode 100644 index 00000000..aa1a27e8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SandstoneTypes.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class SandstoneTypes extends java.lang.Object { + // @ts-ignore + public static CHISELED: org.spongepowered.api.data.type.SandstoneType; + // @ts-ignore + public static DEFAULT: org.spongepowered.api.data.type.SandstoneType; + // @ts-ignore + public static SMOOTH: org.spongepowered.api.data.type.SandstoneType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ShrubType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ShrubType.d.ts new file mode 100644 index 00000000..4722d3f7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ShrubType.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface ShrubType extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ShrubTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ShrubTypes.d.ts new file mode 100644 index 00000000..5bcca868 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ShrubTypes.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class ShrubTypes extends java.lang.Object { + // @ts-ignore + public static DEAD_BUSH: org.spongepowered.api.data.type.ShrubType; + // @ts-ignore + public static FERN: org.spongepowered.api.data.type.ShrubType; + // @ts-ignore + public static TALL_GRASS: org.spongepowered.api.data.type.ShrubType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SkinPart.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SkinPart.d.ts new file mode 100644 index 00000000..93094367 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SkinPart.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface SkinPart extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SkinParts.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SkinParts.d.ts new file mode 100644 index 00000000..aa47c0a9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SkinParts.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class SkinParts extends java.lang.Object { + // @ts-ignore + public static CAPE: org.spongepowered.api.data.type.SkinPart; + // @ts-ignore + public static HAT: org.spongepowered.api.data.type.SkinPart; + // @ts-ignore + public static JACKET: org.spongepowered.api.data.type.SkinPart; + // @ts-ignore + public static LEFT_PANTS_LEG: org.spongepowered.api.data.type.SkinPart; + // @ts-ignore + public static LEFT_SLEEVE: org.spongepowered.api.data.type.SkinPart; + // @ts-ignore + public static RIGHT_PANTS_LEG: org.spongepowered.api.data.type.SkinPart; + // @ts-ignore + public static RIGHT_SLEEVE: org.spongepowered.api.data.type.SkinPart; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SkullType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SkullType.d.ts new file mode 100644 index 00000000..d3907d87 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SkullType.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface SkullType extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SkullTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SkullTypes.d.ts new file mode 100644 index 00000000..c1e7f13d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SkullTypes.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class SkullTypes extends java.lang.Object { + // @ts-ignore + public static CREEPER: org.spongepowered.api.data.type.SkullType; + // @ts-ignore + public static ENDER_DRAGON: org.spongepowered.api.data.type.SkullType; + // @ts-ignore + public static PLAYER: org.spongepowered.api.data.type.SkullType; + // @ts-ignore + public static SKELETON: org.spongepowered.api.data.type.SkullType; + // @ts-ignore + public static WITHER_SKELETON: org.spongepowered.api.data.type.SkullType; + // @ts-ignore + public static ZOMBIE: org.spongepowered.api.data.type.SkullType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SlabType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SlabType.d.ts new file mode 100644 index 00000000..f83cb36f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SlabType.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface SlabType extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SlabTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SlabTypes.d.ts new file mode 100644 index 00000000..4706cd2b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.SlabTypes.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class SlabTypes extends java.lang.Object { + // @ts-ignore + public static BRICK: org.spongepowered.api.data.type.SlabType; + // @ts-ignore + public static COBBLESTONE: org.spongepowered.api.data.type.SlabType; + // @ts-ignore + public static NETHERBRICK: org.spongepowered.api.data.type.SlabType; + // @ts-ignore + public static QUARTZ: org.spongepowered.api.data.type.SlabType; + // @ts-ignore + public static RED_SAND: org.spongepowered.api.data.type.SlabType; + // @ts-ignore + public static SAND: org.spongepowered.api.data.type.SlabType; + // @ts-ignore + public static SMOOTH_BRICK: org.spongepowered.api.data.type.SlabType; + // @ts-ignore + public static STONE: org.spongepowered.api.data.type.SlabType; + // @ts-ignore + public static WOOD: org.spongepowered.api.data.type.SlabType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.StairShape.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.StairShape.d.ts new file mode 100644 index 00000000..3e3897a0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.StairShape.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface StairShape extends org.spongepowered.api.CatalogType { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.StairShapes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.StairShapes.d.ts new file mode 100644 index 00000000..61d28628 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.StairShapes.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class StairShapes extends java.lang.Object { + // @ts-ignore + public static INNER_LEFT: org.spongepowered.api.data.type.StairShape; + // @ts-ignore + public static INNER_RIGHT: org.spongepowered.api.data.type.StairShape; + // @ts-ignore + public static OUTER_LEFT: org.spongepowered.api.data.type.StairShape; + // @ts-ignore + public static OUTER_RIGHT: org.spongepowered.api.data.type.StairShape; + // @ts-ignore + public static STRAIGHT: org.spongepowered.api.data.type.StairShape; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.StoneType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.StoneType.d.ts new file mode 100644 index 00000000..09c0dc06 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.StoneType.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface StoneType extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.StoneTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.StoneTypes.d.ts new file mode 100644 index 00000000..70ea092c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.StoneTypes.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class StoneTypes extends java.lang.Object { + // @ts-ignore + public static ANDESITE: org.spongepowered.api.data.type.StoneType; + // @ts-ignore + public static DIORITE: org.spongepowered.api.data.type.StoneType; + // @ts-ignore + public static GRANITE: org.spongepowered.api.data.type.StoneType; + // @ts-ignore + public static SMOOTH_ANDESITE: org.spongepowered.api.data.type.StoneType; + // @ts-ignore + public static SMOOTH_DIORITE: org.spongepowered.api.data.type.StoneType; + // @ts-ignore + public static SMOOTH_GRANITE: org.spongepowered.api.data.type.StoneType; + // @ts-ignore + public static STONE: org.spongepowered.api.data.type.StoneType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.StructureMode.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.StructureMode.d.ts new file mode 100644 index 00000000..1576944a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.StructureMode.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface StructureMode extends org.spongepowered.api.CatalogType { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.StructureModes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.StructureModes.d.ts new file mode 100644 index 00000000..28f1669a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.StructureModes.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class StructureModes extends java.lang.Object { + // @ts-ignore + public static CORNER: org.spongepowered.api.data.type.StructureMode; + // @ts-ignore + public static DATA: org.spongepowered.api.data.type.StructureMode; + // @ts-ignore + public static LOAD: org.spongepowered.api.data.type.StructureMode; + // @ts-ignore + public static SAVE: org.spongepowered.api.data.type.StructureMode; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ToolType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ToolType.d.ts new file mode 100644 index 00000000..f4daf39c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ToolType.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface ToolType extends org.spongepowered.api.CatalogType { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ToolTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ToolTypes.d.ts new file mode 100644 index 00000000..b55d5f96 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.ToolTypes.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class ToolTypes extends java.lang.Object { + // @ts-ignore + public static DIAMOND: org.spongepowered.api.data.type.ToolType; + // @ts-ignore + public static GOLD: org.spongepowered.api.data.type.ToolType; + // @ts-ignore + public static IRON: org.spongepowered.api.data.type.ToolType; + // @ts-ignore + public static STONE: org.spongepowered.api.data.type.ToolType; + // @ts-ignore + public static WOOD: org.spongepowered.api.data.type.ToolType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.TreeType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.TreeType.d.ts new file mode 100644 index 00000000..5007dae6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.TreeType.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface TreeType extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.TreeTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.TreeTypes.d.ts new file mode 100644 index 00000000..19226962 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.TreeTypes.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class TreeTypes extends java.lang.Object { + // @ts-ignore + public static ACACIA: org.spongepowered.api.data.type.TreeType; + // @ts-ignore + public static BIRCH: org.spongepowered.api.data.type.TreeType; + // @ts-ignore + public static DARK_OAK: org.spongepowered.api.data.type.TreeType; + // @ts-ignore + public static JUNGLE: org.spongepowered.api.data.type.TreeType; + // @ts-ignore + public static OAK: org.spongepowered.api.data.type.TreeType; + // @ts-ignore + public static SPRUCE: org.spongepowered.api.data.type.TreeType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.WallType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.WallType.d.ts new file mode 100644 index 00000000..7629a524 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.WallType.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface WallType extends org.spongepowered.api.CatalogType { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.WallTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.WallTypes.d.ts new file mode 100644 index 00000000..47ee53a5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.WallTypes.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class WallTypes extends java.lang.Object { + // @ts-ignore + public static MOSSY: org.spongepowered.api.data.type.WallType; + // @ts-ignore + public static NORMAL: org.spongepowered.api.data.type.WallType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.WireAttachmentType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.WireAttachmentType.d.ts new file mode 100644 index 00000000..025a13e9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.WireAttachmentType.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + interface WireAttachmentType extends org.spongepowered.api.CatalogType { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.WireAttachmentTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.WireAttachmentTypes.d.ts new file mode 100644 index 00000000..6944e2e6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.type.WireAttachmentTypes.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace type { + // @ts-ignore + class WireAttachmentTypes extends java.lang.Object { + // @ts-ignore + public static NONE: org.spongepowered.api.data.type.WireAttachmentType; + // @ts-ignore + public static SIDE: org.spongepowered.api.data.type.WireAttachmentType; + // @ts-ignore + public static UP: org.spongepowered.api.data.type.WireAttachmentType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.BaseValue.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.BaseValue.d.ts new file mode 100644 index 00000000..4c3b2dce --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.BaseValue.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace value { + // @ts-ignore + interface BaseValue { + /** + * Gets the held value. Usually all held values are "filled" and not + * "defaulted"; however, in the case that the actual value is not set or + * {@link #exists()} returns false, the {@link #getDefault()} value is + * returned. + */ + // @ts-ignore + get(): java.lang.Object; + /** + * Checks that the underlying value exists (or "set"). + */ + // @ts-ignore + exists(): boolean; + /** + * Gets the default value. There is always a default value, however, + * usability of the default value may be questionable in certain + * circumstances. + */ + // @ts-ignore + getDefault(): java.lang.Object; + /** + * Gets the direct value. Since some values may be absent for various + * reasons, the {@link #get()} would return the {@link #getDefault()} when + * necessary. + */ + // @ts-ignore + getDirect(): java.util.Optional; + /** + * Gets the key for this {@link BaseValue}. + */ + // @ts-ignore + getKey(): org.spongepowered.api.data.key.Key; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.BoundedValue.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.BoundedValue.d.ts new file mode 100644 index 00000000..06474035 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.BoundedValue.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace value { + // @ts-ignore + interface BoundedValue extends org.spongepowered.api.data.value.BaseValue { + /** + * Gets the required "minimum" value such that the value is only valid if + * the following is true: + *
{@code if (getComparator().compare(getValue(), getMinValue()) <= 0)
+                         * }
. + */ + // @ts-ignore + getMinValue(): java.lang.Object; + /** + * Gets the required "maximum" value such that the value is only valid if + * the following is true: + *
{@code if (getComparator().compare(getValue(), getMaxValue()) >= 0)
+                         * }
. + */ + // @ts-ignore + getMaxValue(): java.lang.Object; + /** + * The comparator used to compare a value of the proper type. Can be used + * for validation with the {@link #getMinValue()} and + * {@link #getMaxValue()}. + */ + // @ts-ignore + getComparator(): java.util.Comparator; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.ValueContainer.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.ValueContainer.d.ts new file mode 100644 index 00000000..a777b82a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.ValueContainer.d.ts @@ -0,0 +1,84 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace value { + // @ts-ignore + interface ValueContainer { + /** + * Attempts to get the underlying value backed by a {@link BaseValue} + * linked to the provided {@link Key}. If the {@link Key} is not + * supported, {@link Optional#empty()} is returned. It is important + * to check for support of a {@link Key} by either calling + * {@link #supports(BaseValue)} or {@link #supports(Key)}. + */ + // @ts-ignore + get(key: org.spongepowered.api.data.key.Key): java.util.Optional; + /** + * Attempts to get the underlying value backed by a {@link BaseValue} + * linked to the provided {@link Key}. + *

If the {@link Key} is not supported or + * available, {@link NoSuchElementException} will be thrown.

+ */ + // @ts-ignore + require(key: org.spongepowered.api.data.key.Key): java.lang.Object; + /** + * Attempts to get the underlying value if available and supported. If the + * {@link BaseValue} is not supported whatsoever by this + * {@link ValueContainer}, an exception is thrown. + */ + // @ts-ignore + getOrNull(key: org.spongepowered.api.data.key.Key): java.lang.Object; + /** + * Attempts to get the underlying value if available. If the value is not + * set, the given {@code defaultValue} is returned, if the + * {@link BaseValue} is even supported. + */ + // @ts-ignore + getOrElse(key: org.spongepowered.api.data.key.Key, defaultValue: java.lang.Object): java.lang.Object; + /** + * Gets the {@link BaseValue} for the given {@link Key}. + */ + // @ts-ignore + getValue(key: org.spongepowered.api.data.key.Key): java.util.Optional; + /** + * Checks if the given {@link Key} is supported by this + * {@link ValueContainer}. + */ + // @ts-ignore + supports(key: org.spongepowered.api.data.key.Key): boolean; + /** + * Checks if the provided {@link BaseValue} is supported. + */ + // @ts-ignore + supports(baseValue: org.spongepowered.api.data.value.BaseValue): boolean; + /** + * Creates a clone copy of this {@link ValueContainer} as a new + * {@link ValueContainer} such that all the {@link BaseValue}s are + * safely duplicated to the new instance. + */ + // @ts-ignore + copy(): org.spongepowered.api.data.value.ValueContainer; + /** + * Gets all applicable {@link Key}s for this {@link ValueContainer}. + * Changes can not be made to the set to alter the {@link ValueContainer}, + * nor can the {@link BaseValue}s be changed with the provided + * {@link ImmutableSet}. + */ + // @ts-ignore + getKeys(): java.util.Set; + /** + * Gets all applicable {@link BaseValue}s associated with this + * {@link ValueContainer}. As the data backed by the values are copied, + * any modifications to the {@link BaseValue}s will not be reflected onto + * this {@link ValueContainer}. + */ + // @ts-ignore + getValues(): java.util.Set; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.ValueFactory.BoundedValueBuilder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.ValueFactory.BoundedValueBuilder.d.ts new file mode 100644 index 00000000..f26c6a6e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.ValueFactory.BoundedValueBuilder.d.ts @@ -0,0 +1,57 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace value { + namespace ValueFactory { + // @ts-ignore + interface BoundedValueBuilder { + /** + * If E is not {@link Comparable}, a {@link Comparator} + * is required. The builder by default will attempt to check if + * the type is a {@link Comparable} and delegate to the default + * {@link Comparable#compareTo(Object)} for comparisons. In short, the + * {@link Comparator} is only required if the element is not + * {@link Comparable}, or custom comparisons are required. + */ + // @ts-ignore + comparator(comparator: java.util.Comparator): org.spongepowered.api.data.value.ValueFactory.BoundedValueBuilder; + /** + * Sets the minimum supported value. + */ + // @ts-ignore + minimum(min: java.lang.Object): org.spongepowered.api.data.value.ValueFactory.BoundedValueBuilder; + /** + * Sets the maximum supported value. + */ + // @ts-ignore + maximum(max: java.lang.Object): org.spongepowered.api.data.value.ValueFactory.BoundedValueBuilder; + /** + * Sets the default value. This is required. If no value is set, + * the default value transitively sets the value. + */ + // @ts-ignore + defaultValue(defaultValue: java.lang.Object): org.spongepowered.api.data.value.ValueFactory.BoundedValueBuilder; + /** + * Sets the actual value. Though not required, if the value is + * different from the {@link #defaultValue(Object)}, it should be + * set. + */ + // @ts-ignore + actualValue(actual: java.lang.Object): org.spongepowered.api.data.value.ValueFactory.BoundedValueBuilder; + /** + * Builds a new {@link MutableBoundedValue}. The requirements are + * that the {@link #minimum(Object)}, {@link #maximum(Object)}, + * {@link #defaultValue(Object)} are set, and if the E is + * not {@link Comparable}, {@link #comparator(Comparator)} is set. + */ + // @ts-ignore + build(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.ValueFactory.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.ValueFactory.d.ts new file mode 100644 index 00000000..1e1ade07 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.ValueFactory.d.ts @@ -0,0 +1,83 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace value { + // @ts-ignore + interface ValueFactory { + /** + * Creates a new {@link Value} with the provided {@link Key} and the + * E element. + */ + // @ts-ignore + createValue(key: org.spongepowered.api.data.key.Key, element: java.lang.Object): org.spongepowered.api.data.value.mutable.Value; + /** + * Creates a new {@link Value} with the provided {@link Key} and the + * E element and the provided E default value. + */ + // @ts-ignore + createValue(key: org.spongepowered.api.data.key.Key, element: java.lang.Object, defaultValue: java.lang.Object): org.spongepowered.api.data.value.mutable.Value; + /** + * Creates a new {@link ListValue} with the provided {@link Key} and + * {@link List} of elements. The default value will be an empty list. + */ + // @ts-ignore + createListValue(key: org.spongepowered.api.data.key.Key, elements: java.util.List): org.spongepowered.api.data.value.mutable.ListValue; + /** + * Creates a new {@link ListValue} with the provided {@link Key} and + * {@link List} of elements. + */ + // @ts-ignore + createListValue(key: org.spongepowered.api.data.key.Key, elements: java.util.List, defaults: java.util.List): org.spongepowered.api.data.value.mutable.ListValue; + /** + * Creates a new {@link SetValue} with the provided {@link Key} and + * {@link Set} of elements. + */ + // @ts-ignore + createSetValue(key: org.spongepowered.api.data.key.Key, elements: java.util.Set): org.spongepowered.api.data.value.mutable.SetValue; + /** + * Creates a new {@link SetValue} with the provided {@link Key} and + * {@link Set} of elements. + */ + // @ts-ignore + createSetValue(key: org.spongepowered.api.data.key.Key, elements: java.util.Set, defaults: java.util.Set): org.spongepowered.api.data.value.mutable.SetValue; + /** + * Creates a new {@link MapValue} of the provided {@link Key} with the + * types K and V. + */ + // @ts-ignore + createMapValue(key: org.spongepowered.api.data.key.Key, map: java.util.Map): org.spongepowered.api.data.value.mutable.MapValue; + /** + * Creates a new {@link MapValue} of the provided {@link Key} with the + * types K and V along with the provided + * {@link Map} defaults. + */ + // @ts-ignore + createMapValue(key: org.spongepowered.api.data.key.Key, map: java.util.Map, defaults: java.util.Map): org.spongepowered.api.data.value.mutable.MapValue; + /** + * Creates a {@link BoundedValueBuilder} + */ + // @ts-ignore + createBoundedValueBuilder(key: org.spongepowered.api.data.key.Key): org.spongepowered.api.data.value.ValueFactory.BoundedValueBuilder; + /** + * Creates an {@link OptionalValue} where even the default value may be + * {@link Optional#empty()}. These types of values should be restricted + * to values that are live, that can be potentially large to retain a + * reference to, and otherwise, not thread safe. + */ + // @ts-ignore + createOptionalValue(key: org.spongepowered.api.data.key.Key, element: java.lang.Object): org.spongepowered.api.data.value.mutable.OptionalValue; + /** + * Creates an {@link OptionalValue} where the default is NOT + * null, such that the actual value may be retained as + * null. + */ + // @ts-ignore + createOptionalValue(key: org.spongepowered.api.data.key.Key, element: java.lang.Object, defaultElement: java.lang.Object): org.spongepowered.api.data.value.mutable.OptionalValue; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableBoundedValue.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableBoundedValue.d.ts new file mode 100644 index 00000000..ab26d490 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableBoundedValue.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace value { + namespace immutable { + // @ts-ignore + interface ImmutableBoundedValue extends org.spongepowered.api.data.value.BoundedValue, org.spongepowered.api.data.value.immutable.ImmutableValue { + // @ts-ignore + transform(func: java.util.function$.Function): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + // @ts-ignore + asMutable(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableCollectionValue.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableCollectionValue.d.ts new file mode 100644 index 00000000..54efcae6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableCollectionValue.d.ts @@ -0,0 +1,85 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace value { + namespace immutable { + // @ts-ignore + interface ImmutableCollectionValue extends org.spongepowered.api.data.value.immutable.ImmutableValue { + /** + * Gets the size of the underlying collection of elements. + */ + // @ts-ignore + size(): number; + /** + * Checks if the backed {@link Collection} is empty. + */ + // @ts-ignore + isEmpty(): boolean; + // @ts-ignore + with(collection: java.util.Collection): org.spongepowered.api.data.value.immutable.ImmutableCollectionValue; + /** + * Creates a new {@link ImmutableCollectionValue} with the given values + * along with any pre-existing values within this value. + */ + // @ts-ignore + withElement(elements: java.lang.Object): org.spongepowered.api.data.value.immutable.ImmutableCollectionValue; + // @ts-ignore + transform(func: java.util.function$.Function): org.spongepowered.api.data.value.immutable.ImmutableCollectionValue; + /** + * Creates a new {@link ImmutableCollectionValue} with the given elements + * along with any pre-existing values within this value. + */ + // @ts-ignore + withAll(elements: java.lang.Iterable): org.spongepowered.api.data.value.immutable.ImmutableCollectionValue; + /** + * Creates a new {@link ImmutableCollectionValue} without the given + * E element. + */ + // @ts-ignore + without(element: java.lang.Object): org.spongepowered.api.data.value.immutable.ImmutableCollectionValue; + /** + * Creates a new {@link ImmutableCollectionValue} without the given + * elements of the provided {@link Iterable}. + */ + // @ts-ignore + withoutAll(elements: java.lang.Iterable): org.spongepowered.api.data.value.immutable.ImmutableCollectionValue; + /** + * Creates a new {@link ImmutableCollectionValue} with elements that + * when the given {@link Predicate} is {@link Predicate#test(Object)} on + * the element and {@code true} is returned, the element will remain in the + * new {@link ImmutableCollectionValue}. + */ + // @ts-ignore + withoutAll(predicate: java.util.function$.Predicate): org.spongepowered.api.data.value.immutable.ImmutableCollectionValue; + /** + * Checks if the given E element is contained within the + * backed {@link Collection}. + */ + // @ts-ignore + contains(element: java.lang.Object): boolean; + /** + * Checks if all of the given elements in the provided {@link Iterable} are + * contained within the backed {@link Collection}. + */ + // @ts-ignore + containsAll(iterable: java.lang.Iterable): boolean; + /** + * Creates a new {@link Collection} of the proper type C with + * all elements copied to the new collection. Any modifications to the new + * collection are not reflected to this {@link ImmutableCollectionValue}. + * Likewise, no modifications to this {@link ImmutableCollectionValue} are + * reflected to the returned {@link Collection}. + */ + // @ts-ignore + getAll(): java.util.Collection; + // @ts-ignore + asMutable(): org.spongepowered.api.data.value.mutable.CollectionValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableListValue.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableListValue.d.ts new file mode 100644 index 00000000..ce7c8015 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableListValue.d.ts @@ -0,0 +1,56 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace value { + namespace immutable { + // @ts-ignore + interface ImmutableListValue extends org.spongepowered.api.data.value.immutable.ImmutableCollectionValue { + /** + * Gets the desired element at the desired index. + */ + // @ts-ignore + get(index: number): java.lang.Object; + /** + * Creates a new {@link ImmutableListValue} with the specified element + * at the specified position in the list. As well, the element at the + * provided index is shifted to the right, increasing its and the elements + * thereafter their indices by one. + */ + // @ts-ignore + with(index: number, value: java.lang.Object): org.spongepowered.api.data.value.immutable.ImmutableListValue; + /** + * Creates a new {@link ImmutableListValue} with the specified elements + * in the order that they are iterated to the list at the specified index. + * The element at the provided index and elements thereafter are shifted to + * the right, increasing their indices by one. + */ + // @ts-ignore + with(index: number, values: java.lang.Iterable): org.spongepowered.api.data.value.immutable.ImmutableListValue; + /** + * Creates a new {@link ImmutableListValue} without the element at the + * specified index. Shifts any subsequent elements to the left, subtracts + * one from their indices. + */ + // @ts-ignore + without(index: number): org.spongepowered.api.data.value.immutable.ImmutableListValue; + /** + * Creates a new {@link ImmutableListValue} with the desired element at + * the desired index. + */ + // @ts-ignore + set(index: number, element: java.lang.Object): org.spongepowered.api.data.value.immutable.ImmutableListValue; + /** + * Queries for the index of the provided element. If the element is + * not contained in this list, -1 is returned. + */ + // @ts-ignore + indexOf(element: java.lang.Object): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableMapValue.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableMapValue.d.ts new file mode 100644 index 00000000..3232e791 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableMapValue.d.ts @@ -0,0 +1,88 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace value { + namespace immutable { + // @ts-ignore + interface ImmutableMapValue extends org.spongepowered.api.data.value.immutable.ImmutableValue { + /** + * Gets the size of this map. + */ + // @ts-ignore + size(): number; + /** + * Associates the provided key to the provided value in the new map. If + * there already exists a value for the provided key, the value is + * replaced. + */ + // @ts-ignore + with(key: java.lang.Object, value: java.lang.Object): org.spongepowered.api.data.value.immutable.ImmutableMapValue; + // @ts-ignore + with(value: java.util.Map): org.spongepowered.api.data.value.immutable.ImmutableMapValue; + /** + * Associates all provided {@link Entry} along with all pre-existing + * map entries in a new {@link ImmutableMapValue}. + */ + // @ts-ignore + withAll(map: java.util.Map): org.spongepowered.api.data.value.immutable.ImmutableMapValue; + /** + * Creates a new {@link ImmutableMapValue} without the provided key and the + * associated value. + */ + // @ts-ignore + without(key: java.lang.Object): org.spongepowered.api.data.value.immutable.ImmutableMapValue; + /** + * Creates a new {@link ImmutableMapValue} without the provided keys and + * their associated values. + */ + // @ts-ignore + withoutAll(keys: java.lang.Iterable): org.spongepowered.api.data.value.immutable.ImmutableMapValue; + /** + * Creates a new {@link ImmutableMapValue} such that all entries are + * filtered by the provided {@link Predicate}, any that return + * {@code true} are retained in the new value. Elements that return + * true from {@link Predicate#test(Object)} are kept, and + * those that return false are excluded. + */ + // @ts-ignore + withoutAll(predicate: java.util.function$.Predicate): org.spongepowered.api.data.value.immutable.ImmutableMapValue; + /** + * Checks if the provided key is contained within this map. + */ + // @ts-ignore + containsKey(key: java.lang.Object): boolean; + /** + * Checks if the provided value is contained within this map. + */ + // @ts-ignore + containsValue(value: java.lang.Object): boolean; + /** + * Gets an {@link ImmutableSet} of all keys contained in this map value. + */ + // @ts-ignore + keySet(): any; + /** + * Retrieves an {@link ImmutableSet} of the {@link Entry}s contained + * within this map value. + */ + // @ts-ignore + entrySet(): any; + /** + * Retrieves an {@link ImmutableCollection} of all available values within + * this map. + */ + // @ts-ignore + values(): any; + // @ts-ignore + transform(func: java.util.function$.Function): org.spongepowered.api.data.value.immutable.ImmutableMapValue; + // @ts-ignore + asMutable(): org.spongepowered.api.data.value.mutable.MapValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableOptionalValue.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableOptionalValue.d.ts new file mode 100644 index 00000000..e112d791 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableOptionalValue.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace value { + namespace immutable { + // @ts-ignore + interface ImmutableOptionalValue extends org.spongepowered.api.data.value.immutable.ImmutableValue { + // @ts-ignore + with(value: java.util.Optional): org.spongepowered.api.data.value.immutable.ImmutableOptionalValue; + // @ts-ignore + transform(func: java.util.function$.Function): org.spongepowered.api.data.value.immutable.ImmutableOptionalValue; + /** + * Creates a new {@link ImmutableOptionalValue} with the provided value, + * may be null. + */ + // @ts-ignore + instead(value: java.lang.Object): org.spongepowered.api.data.value.immutable.ImmutableOptionalValue; + /** + * Provides the value such that if the underlying value is + * {@code null}, the default value is returned as an + * {@link ImmutableValue}, if the underlying value is present, the + * underlying value is returned as a {@link ImmutableValue}. + */ + // @ts-ignore + or(value: java.lang.Object): org.spongepowered.api.data.value.immutable.ImmutableValue; + // @ts-ignore + asMutable(): org.spongepowered.api.data.value.mutable.OptionalValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutablePatternListValue.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutablePatternListValue.d.ts new file mode 100644 index 00000000..0df013e7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutablePatternListValue.d.ts @@ -0,0 +1,60 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace value { + namespace immutable { + // @ts-ignore + interface ImmutablePatternListValue extends org.spongepowered.api.data.value.immutable.ImmutableListValue { + /** + * Creates and adds a {@link PatternLayer} based on the + * {@link BannerPatternShape} and {@link DyeColor} at the desired index + * such that the element at the provided index is shifted to the left. This + * returns a new {@link ImmutablePatternListValue}. + */ + // @ts-ignore + with(patternShape: org.spongepowered.api.data.type.BannerPatternShape, color: org.spongepowered.api.data.type.DyeColor): org.spongepowered.api.data.value.immutable.ImmutablePatternListValue; + // @ts-ignore + with(index: number, value: org.spongepowered.api.data.meta.PatternLayer): org.spongepowered.api.data.value.immutable.ImmutablePatternListValue; + // @ts-ignore + with(index: number, values: java.lang.Iterable): org.spongepowered.api.data.value.immutable.ImmutablePatternListValue; + /** + * Creates and adds a {@link PatternLayer} based on the + * {@link BannerPatternShape} and {@link DyeColor} at the desired index + * such that the element at the provided index is shifted to the left. + */ + // @ts-ignore + with(index: number, patternShape: org.spongepowered.api.data.type.BannerPatternShape, color: org.spongepowered.api.data.type.DyeColor): org.spongepowered.api.data.value.immutable.ImmutablePatternListValue; + // @ts-ignore + with(collection: java.util.List): org.spongepowered.api.data.value.immutable.ImmutablePatternListValue; + // @ts-ignore + withElement(elements: org.spongepowered.api.data.meta.PatternLayer): org.spongepowered.api.data.value.immutable.ImmutablePatternListValue; + // @ts-ignore + withAll(elements: java.lang.Iterable): org.spongepowered.api.data.value.immutable.ImmutablePatternListValue; + /** + * Creates and adds a {@link PatternLayer} based on the + * {@link BannerPatternShape} and {@link DyeColor} at the desired index + * such that the element at the provided index is shifted to the left. + */ + // @ts-ignore + set(index: number, patternShape: org.spongepowered.api.data.type.BannerPatternShape, color: org.spongepowered.api.data.type.DyeColor): org.spongepowered.api.data.value.immutable.ImmutablePatternListValue; + // @ts-ignore + set(index: number, element: org.spongepowered.api.data.meta.PatternLayer): org.spongepowered.api.data.value.immutable.ImmutablePatternListValue; + // @ts-ignore + without(element: org.spongepowered.api.data.meta.PatternLayer): org.spongepowered.api.data.value.immutable.ImmutablePatternListValue; + // @ts-ignore + without(index: number): org.spongepowered.api.data.value.immutable.ImmutablePatternListValue; + // @ts-ignore + withoutAll(elements: java.lang.Iterable): org.spongepowered.api.data.value.immutable.ImmutablePatternListValue; + // @ts-ignore + withoutAll(predicate: java.util.function$.Predicate): org.spongepowered.api.data.value.immutable.ImmutablePatternListValue; + // @ts-ignore + asMutable(): org.spongepowered.api.data.value.mutable.PatternListValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableSetValue.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableSetValue.d.ts new file mode 100644 index 00000000..5d8e6e09 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableSetValue.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace value { + namespace immutable { + // @ts-ignore + interface ImmutableSetValue extends org.spongepowered.api.data.value.immutable.ImmutableCollectionValue { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableValue.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableValue.d.ts new file mode 100644 index 00000000..ef3296f2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableValue.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace value { + namespace immutable { + // @ts-ignore + interface ImmutableValue extends org.spongepowered.api.data.value.BaseValue { + /** + * Creates a new {@link ImmutableValue} with the given E typed + * value, such that if the owning {@link ValueContainer} is immutable, the + * {@link ValueContainer} too is recreated as a new instance with the new + * {@link ImmutableValue}. + */ + // @ts-ignore + with(value: java.lang.Object): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Retrieves the underlying value for this {@link ImmutableValue} and + * applies the given {@link Function} onto that value, after which, the + * product is sent to a new {@link ImmutableValue} replacing this one. + *

If the {@link ValueContainer} too is immutable, a new instance of + * the {@link ValueContainer} may be created. If the {@link ValueContainer} + * is mutable, the same instance of the {@link ValueContainer} is retained. + *

+ */ + // @ts-ignore + transform(func: java.util.function$.Function): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Creates a mutable {@link Value} for this {@link ImmutableValue}. + */ + // @ts-ignore + asMutable(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableValueStore.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableValueStore.d.ts new file mode 100644 index 00000000..1d6d7bbf --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableValueStore.d.ts @@ -0,0 +1,159 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace value { + namespace immutable { + // @ts-ignore + interface ImmutableValueStore extends org.spongepowered.api.data.value.ValueContainer { + /** + *

Gets the desired {@link ValueContainer} of type H if the + * {@link ValueContainer} is compatible. Since the return type is an + * {@link Optional}, a short way of checking compatibility and presence + * of the requested data is to mimic the following:

+ *
// MyCompositeValueStore extends + * CompositeValueStore<MyCompositeValueStore, + * DataManipulator<?>>
MyCompositeValueStore valueStore;
+ * final Optional<DisplayNameData> displayOptional = + * valueStore.get(DisplayNameData.class);
+ * if (displayOptional.isPresent()) {
    + * // We know that we have a present DataManipulator and it's supported + *
    System.out.println( + * displayOptional.get().displayName().get().toString());
+ * }
+ *

This is the equivalent to performing the following:

+ *
+ * MyCompositeValueStore valueStore;
+ * if (valueStore.supports(DisplayNameData.class)) {
+ *     + * System.out.println(valueStore.getOrNull(DisplayNameData.class + * ).displayName().get().toString());
}
+ *

The advantage of this returning an {@link Optional} is that the + * {@link ValueContainer} may be unsupported, the required data missing + * and ignoring the possibility of {@code null}s, it is a guarantee that if + * the {@link Optional#isPresent()} is {@code true}, the + * {@link ValueContainer} not only is supported, but there is already pre- + * existing data for the {@link ValueContainer}.

+ *

If it is necessary to ignore the {@link Optional}, + * {@link Optional#orElse(Object)} can be used to return a potentially + * {@code null} {@link ValueContainer}.

+ */ + // @ts-ignore + get(containerClass: java.lang.Class): java.util.Optional; + /** + *

Gets the desired {@link ValueContainer} of type H if the + * {@link ValueContainer} is compatible. If insufficient data is available + * to provide a {@link ValueContainer} with all {@link ImmutableValue}s + * preset, a new instance of the {@link ValueContainer} is returned with + * "default" values. Since the return type is an {@link Optional}, a short + * way of checking compatibility and presence of the requested data is to + * mimic the following:

+ *
// MyCompositeValueStore extends + * CompositeValueStore<MyCompositeValueStore, + * DataManipulator<?>>
+ * MyCompositeValueStore valueStore;
+ * final Optional<DisplayNameData> displayOptional = + * valueStore.getOrCreate(DisplayNameData.class);
+ * if (displayOptional.isPresent()) {
    // We know that we + * have a present DataManipulator and it's supported
    + * System.out.println(displayOptional.get().displayName().get().toString()); + *
}
+ *

This is the equivalent to performing the following:

+ *
MyCompositeValueStore valueStore;
+ * if (valueStore.supports(DisplayNameData.class)) {
    + * System.out.println(valueStore.getOrNull(DisplayNameData.class + * ).displayName().get().toString());
}
+ *

The advantage of this returning an {@link Optional} is that the + * {@link ValueContainer} may be unsupported, the required data missing + * and ignoring the possibility of {@code null}s, it is a guarantee that if + * the {@link Optional#isPresent()} is {@code true}, the + * {@link ValueContainer} not only is supported, but there is already pre- + * existing data for the {@link ValueContainer}.

+ *

If it is necessary to ignore the {@link Optional}, + * {@link Optional#orElse(Object)} can be used to return a potentially + * {@code null} {@link ValueContainer}.

+ */ + // @ts-ignore + getOrCreate(containerClass: java.lang.Class): java.util.Optional; + /** + * Checks if the given {@link Class} of type {@link ValueContainer} is + * supported by this {@link ImmutableValueStore}. + */ + // @ts-ignore + supports(containerClass: java.lang.Class): boolean; + /** + * Applies a transformation on the provided {@link BaseValue} such that + * the return value of {@link Function#apply(Object)} will become the end + * resulting value set into the newly created {@link ImmutableValueStore}. + */ + // @ts-ignore + transform(key: org.spongepowered.api.data.key.Key, func: java.util.function$.Function): java.util.Optional; + /** + * Creates a new {@link ImmutableValueStore} with the provided + * value by {@link Key}. If the key is supported by this value store, + * the returned value store will be present. + */ + // @ts-ignore + with(key: org.spongepowered.api.data.key.Key, value: java.lang.Object): java.util.Optional; + /** + * Offers the given {@code value} as defined by the provided {@link Key} + * such that if the {@link Key} is supported, a new + * {@link ImmutableValueStore} is created. + */ + // @ts-ignore + with(value: org.spongepowered.api.data.value.BaseValue): java.util.Optional; + /** + * Offers the given {@link ValueContainer} such that all of the available + * {@link BaseValue}s from the given {@link ValueContainer} are offered + * to the newly created {@link ImmutableValueStore}. + */ + // @ts-ignore + with(valueContainer: org.spongepowered.api.data.value.ValueContainer): java.util.Optional; + /** + * Gets an altered copy of this {@link ImmutableValueStore} with the given + * {@link DataManipulator} modified data. If the data is not compatible for + * any reason, {@link Optional#empty()} is returned. + *

This does not alter the current {@link ImmutableValueStore}.

+ */ + // @ts-ignore + with(valueContainers: java.lang.Iterable): java.util.Optional; + /** + * Gets an altered copy of this {@link ImmutableValueStore} without the + * given {@link ValueContainer} class. If the data represented by the + * manipulator can not exist without a "default state" of the + * {@link ValueContainer}, the {@link ValueContainer} is reset to the + * "default" state. + */ + // @ts-ignore + without(containerClass: java.lang.Class): java.util.Optional; + /** + * Attempts to merge the {@link ImmutableValue}s from this + * {@link ImmutableValueStore} and the given {@link ImmutableValueStore} to + * produce a new instance of the merged result. + */ + // @ts-ignore + merge(that: org.spongepowered.api.data.value.immutable.ImmutableValueStore): org.spongepowered.api.data.value.immutable.ImmutableValueStore; + /** + * Attempts to merge the {@link ImmutableValue}s from this + * {@link ImmutableValueStore} and the given {@link ImmutableValueStore} to + * produce a new instance of the merged result. Any overlapping + * {@link ValueContainer}s are merged through the {@link MergeFunction}. + */ + // @ts-ignore + merge(that: org.spongepowered.api.data.value.immutable.ImmutableValueStore, func: org.spongepowered.api.data.merge.MergeFunction): org.spongepowered.api.data.value.immutable.ImmutableValueStore; + /** + * Gets an copied collection of all known {@link ValueContainer}s + * belonging to this {@link ImmutableValueStore}. An individual + * {@link ValueContainer} can be used for data processing for various + * purposes. + */ + // @ts-ignore + getContainers(): java.util.List; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableWeightedCollectionValue.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableWeightedCollectionValue.d.ts new file mode 100644 index 00000000..8dbd9cf5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.immutable.ImmutableWeightedCollectionValue.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace value { + namespace immutable { + // @ts-ignore + interface ImmutableWeightedCollectionValue extends org.spongepowered.api.data.value.immutable.ImmutableCollectionValue { + /** + * Selects a random value from this list based on their weight. + *

If the list is empty then null will be returned.

+ */ + // @ts-ignore + get(random: java.util.Random): java.util.List; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.CollectionValue.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.CollectionValue.d.ts new file mode 100644 index 00000000..69e23875 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.CollectionValue.d.ts @@ -0,0 +1,93 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace value { + namespace mutable { + // @ts-ignore + interface CollectionValue extends org.spongepowered.api.data.value.mutable.Value { + // @ts-ignore + set(value: java.util.Collection): org.spongepowered.api.data.value.mutable.CollectionValue; + // @ts-ignore + transform(func: java.util.function$.Function): org.spongepowered.api.data.value.mutable.CollectionValue; + /** + * Gets the size of the underlying collection of elements. + */ + // @ts-ignore + size(): number; + /** + * Checks if the backed {@link Collection} is empty. + */ + // @ts-ignore + isEmpty(): boolean; + /** + * Adds the given {@code element} to this {@link CollectionValue}. + */ + // @ts-ignore + add(element: java.lang.Object): org.spongepowered.api.data.value.mutable.CollectionValue; + /** + * Adds all the given {@link Iterable} {@code elements} to the underlying + * {@link Collection}. + */ + // @ts-ignore + addAll(elements: java.lang.Iterable): org.spongepowered.api.data.value.mutable.CollectionValue; + /** + * Removes the given {@code element} from the backed {@link Collection}. + */ + // @ts-ignore + remove(element: java.lang.Object): org.spongepowered.api.data.value.mutable.CollectionValue; + /** + * Removes all elements from the {@link Iterable} from the backed + * {@link Collection}. + */ + // @ts-ignore + removeAll(elements: java.lang.Iterable): org.spongepowered.api.data.value.mutable.CollectionValue; + /** + * Iterates over all existing elements and removes any elements that + * {@link Predicate#test(Object)} returns {@code true}. + */ + // @ts-ignore + removeAll(predicate: java.util.function$.Predicate): org.spongepowered.api.data.value.mutable.CollectionValue; + /** + * Checks if the given E element is contained within the backed + * {@link Collection}. + */ + // @ts-ignore + contains(element: java.lang.Object): boolean; + /** + * Checks if all of the given {@link Iterable} elements are contained + * within the backed {@link Collection}. + */ + // @ts-ignore + containsAll(iterable: java.util.Collection): boolean; + /** + * Applies a {@link Predicate} to filter the underlying elements in the + * backed {@link Collection} to create a new {@link CollectionValue} + * separate from this {@link CollectionValue}. This value is not modified, + * nor is the underlying {@link Collection}. Elements that return + * true from {@link Predicate#test(Object)} are kept, and + * those that return false are excluded. + */ + // @ts-ignore + filter(predicate: java.util.function$.Predicate): org.spongepowered.api.data.value.mutable.CollectionValue; + /** + * Creates a new {@link Collection} of the proper type C with + * all elements copied to the new collection. Any modifications to the new + * collection are not reflected to this {@link CollectionValue}. Likewise, + * no modifications to this {@link CollectionValue} are reflected to the + * returned {@link Collection}. + */ + // @ts-ignore + getAll(): java.util.Collection; + // @ts-ignore + asImmutable(): org.spongepowered.api.data.value.immutable.ImmutableCollectionValue; + // @ts-ignore + copy(): org.spongepowered.api.data.value.mutable.CollectionValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.CompositeValueStore.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.CompositeValueStore.d.ts new file mode 100644 index 00000000..76d8fe47 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.CompositeValueStore.d.ts @@ -0,0 +1,262 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace value { + namespace mutable { + // @ts-ignore + interface CompositeValueStore extends org.spongepowered.api.data.value.ValueContainer { + /** + *

Gets the desired {@link ValueContainer} of type H if the + * {@link ValueContainer} is compatible. Since the return type is an + * {@link Optional}, a short way of checking compatibility and presence + * of the requested data is to mimic the following:

+ *
// MyCompositeValueStore extends + * CompositeValueStore<MyCompositeValueStore, + * DataManipulator<?>>
+ * MyCompositeValueStore valueStore;
+ * final Optional<DisplayNameData> displayOptional = + * valueStore.get(DisplayNameData.class);
+ * if (displayOptional.isPresent()) {
+ *     // We know that we have a present DataManipulator and it's + * supported
    + * System.out.println(displayOptional.get().displayName().get().toString()); + *
}
+ *

This is the equivalent to performing the following:

+ *
MyCompositeValueStore valueStore;
+ * if (valueStore.supports(DisplayNameData.class)) {
    + * System.out.println(valueStore.getOrNull(DisplayNameData.class + * ).displayName().get().toString());
}
+ *

The advantage of this returning an {@link Optional} is that the + * {@link ValueContainer} may be unsupported, the required data missing + * and ignoring the possibility of {@code null}s, it is a guarantee that if + * the {@link Optional#isPresent()} is {@code true}, the + * {@link ValueContainer} not only is supported, but there is already pre- + * existing data for the {@link ValueContainer}.

+ *

If it is necessary to ignore the {@link Optional}, + * {@link Optional#orElse(Object)} can be used to return a potentially + * null {@link ValueContainer}.

+ */ + // @ts-ignore + get(containerClass: java.lang.Class): java.util.Optional; + /** + * Gets the desired {@link ValueContainer} of type H if the + * {@link ValueContainer} is compatible. + *

If the container class is not supported or + * available, {@link NoSuchElementException} will be thrown.

+ */ + // @ts-ignore + require(containerClass: java.lang.Class): org.spongepowered.api.data.value.ValueContainer; + /** + *

Gets the desired {@link ValueContainer} of type H if the + * {@link ValueContainer} is compatible. If insufficient data is available + * to provide a {@link ValueContainer} with all {@link Value}s preset, a + * new instance of the {@link ValueContainer} is returned with "default" + * values. Since the return type is an {@link Optional}, a short way of + * checking compatibility and presence of the requested data is to mimic + * the following:

+ *
// MyCompositeValueStore extends + * CompositeValueStore<MyCompositeValueStore, + * DataManipulator<?>>
+ * MyCompositeValueStore valueStore;
+ * final Optional<DisplayNameData> displayOptional = + * valueStore.getOrCreate(DisplayNameData.class);
+ * if (displayOptional.isPresent()) {
+ *     // We know that we have a present DataManipulator and it's + * supported
    + * System.out.println(displayOptional.get().displayName().get().toString() + * );
}
+ *

This is the equivalent to performing the following:

+ *
MyCompositeValueStore valueStore;
+ * if (valueStore.supports(DisplayNameData.class)) {
    + * System.out.println(valueStore.get(DisplayNameData.class + * ).get().displayName().get().toString());
}
+ *

The advantage of this returning an {@link Optional} is that the + * {@link ValueContainer} may be unsupported, the required data missing + * and ignoring the possibility of {@code null}s, it is a guarantee that if + * the {@link Optional#isPresent()} is {@code true}, the + * {@link ValueContainer} not only is supported, but some default values + * can be generated to create the desired {@link ValueContainer}.

+ *

If it is necessary to ignore the {@link Optional}, + * {@link Optional#orElse(Object)} can be used to return a potentially + * null {@link ValueContainer}.

+ */ + // @ts-ignore + getOrCreate(containerClass: java.lang.Class): java.util.Optional; + /** + * Checks if the given {@link Class} of type {@link ValueContainer} is + * supported by this {@link CompositeValueStore}. + */ + // @ts-ignore + supports(holderClass: java.lang.Class): boolean; + /** + * Applies a transformation on the provided {@link BaseValue} such that + * the return value of {@link Function#apply(Object)} will become the end + * resulting value set into this {@link CompositeValueStore}. It is not + * necessary that the input is actually present, in which case the + * {@link Key}ed data is compatible, but not necessarily present. Writing + * a {@link Function} to properly handle the potential for a null input + * is required for this method to execute without exception. + */ + // @ts-ignore + transform(key: org.spongepowered.api.data.key.Key, func: java.util.function$.Function): org.spongepowered.api.data.DataTransactionResult; + /** + * Offers the given {@code value} as defined by the provided {@link Key} + * such that a {@link DataTransactionResult} is returned for any + * successful, rejected, and replaced {@link BaseValue}s from this + * {@link CompositeValueStore}. + */ + // @ts-ignore + offer(key: org.spongepowered.api.data.key.Key, value: java.lang.Object): org.spongepowered.api.data.DataTransactionResult; + /** + * Offers the given {@link BaseValue} as defined by the provided + * {@link Key} such that a {@link DataTransactionResult} is returned for + * any successful, rejected, and replaced {@link BaseValue}s from this + * {@link CompositeValueStore}. + */ + // @ts-ignore + offer(value: org.spongepowered.api.data.value.BaseValue): org.spongepowered.api.data.DataTransactionResult; + /** + * Offers the given {@link ValueContainer} such that all of the available + * {@link BaseValue}s from the given {@link ValueContainer} are offered + * to this {@link CompositeValueStore}. The end result of the values + * successfully offered, rejected, and replaced are stored in the returned + * {@link DataTransactionResult}. + */ + // @ts-ignore + offer(valueContainer: org.spongepowered.api.data.value.ValueContainer): org.spongepowered.api.data.DataTransactionResult; + /** + * Offers the given {@link ValueContainer} such that all of the available + * {@link BaseValue}s from the given {@link ValueContainer} are offered + * to this {@link CompositeValueStore}. The end result of the values + * successfully offered, rejected, and replaced are stored in the returned + * {@link DataTransactionResult}. Any overlaps of data are merged via + * the {@link MergeFunction}. + */ + // @ts-ignore + offer(valueContainer: org.spongepowered.api.data.value.ValueContainer, func: org.spongepowered.api.data.merge.MergeFunction): org.spongepowered.api.data.DataTransactionResult; + /** + * Offers all provided {@link ValueContainer}s to this + * {@link CompositeValueStore} much like {@link #offer(ValueContainer)} + * except all in a single batch. The end result of the values successfully + * offered, rejected, and replaced are stored in the returned + * {@link DataTransactionResult}. + */ + // @ts-ignore + offer(valueContainers: java.lang.Iterable): org.spongepowered.api.data.DataTransactionResult; + /** + * Offers all provided {@link ValueContainer}s to this + * {@link CompositeValueStore} much like {@link #offer(ValueContainer)} + * except all in a single batch. The end result of the values successfully + * offered, rejected, and replaced are stored in the returned + * {@link DataTransactionResult}. Any merge conflicts are resolved through + * the {@link MergeFunction}. + */ + // @ts-ignore + offer(valueContainers: java.lang.Iterable, func: org.spongepowered.api.data.merge.MergeFunction): org.spongepowered.api.data.DataTransactionResult; + /** + * Offers the given {@code value} as defined by the provided {@link Key} + * such that a {@link DataTransactionResult} is returned for any + * successful {@link BaseValue}s from this {@link CompositeValueStore}. + * Intentionally, however, this differs from {@link #offer(Key, Object)} + * as it will intentionally throw an exception if the result was a failure. + */ + // @ts-ignore + tryOffer(key: org.spongepowered.api.data.key.Key, value: java.lang.Object): org.spongepowered.api.data.DataTransactionResult; + /** + * Offers the given {@code value} as defined by the provided {@link Key} + * such that a {@link DataTransactionResult} is returned for any + * successful {@link BaseValue}s from this {@link CompositeValueStore}. + * Intentionally, however, this differs from {@link #offer(Key, Object)} + * as it will intentionally throw an exception if the result was a failure. + */ + // @ts-ignore + tryOffer(value: org.spongepowered.api.data.value.BaseValue): org.spongepowered.api.data.DataTransactionResult; + /** + * Offers the given {@link ValueContainer} such that all of the available + * {@link BaseValue}s from the given {@link ValueContainer} are offered + * to this {@link CompositeValueStore}. Intentionally, however, this differs + * from {@link #offer(ValueContainer)} as it will intentionally throw an + * exception if the result was a failure. + */ + // @ts-ignore + tryOffer(valueContainer: org.spongepowered.api.data.value.ValueContainer): org.spongepowered.api.data.DataTransactionResult; + /** + * Offers the given {@link ValueContainer} such that all of the available + * {@link BaseValue}s from the given {@link ValueContainer} are offered + * to this {@link CompositeValueStore}. Any overlaps of data are merged via + * the {@link MergeFunction}. Intentionally, however, this differs + * from {@link #offer(ValueContainer)} as it will intentionally throw an + * exception if the result was a failure. + */ + // @ts-ignore + tryOffer(valueContainer: org.spongepowered.api.data.value.ValueContainer, func: org.spongepowered.api.data.merge.MergeFunction): org.spongepowered.api.data.DataTransactionResult; + /** + * Attempts to remove all {@link Value}s associated with the class of the + * provided {@link ValueContainer} class. All values that were successfully + * removed will be provided in + * {@link DataTransactionResult#getReplacedData()}. If the data can not be + * removed, the result will be an expected + * {@link org.spongepowered.api.data.DataTransactionResult.Type#FAILURE}. + */ + // @ts-ignore + remove(containerClass: java.lang.Class): org.spongepowered.api.data.DataTransactionResult; + /** + * Attempts to remove the provided {@link BaseValue}. All values that were + * successfully removed will be provided in + * {@link DataTransactionResult#getReplacedData()}. If the data can not be + * removed, the result will be an expected + * {@link org.spongepowered.api.data.DataTransactionResult.Type#FAILURE}. + */ + // @ts-ignore + remove(value: org.spongepowered.api.data.value.BaseValue): org.spongepowered.api.data.DataTransactionResult; + /** + * Attempts to remove the data associated with the provided {@link Key}. + * All values that were successfully removed will be provided in + * {@link DataTransactionResult#getReplacedData()}. If the data can not be + * removed, the result will be an expected + * {@link org.spongepowered.api.data.DataTransactionResult.Type#FAILURE}. + */ + // @ts-ignore + remove(key: org.spongepowered.api.data.key.Key): org.spongepowered.api.data.DataTransactionResult; + /** + * Attempts to "revert" a {@link DataTransactionResult} such that any + * of the {@link DataTransactionResult#getReplacedData()} are offered + * back, and any {@link DataTransactionResult#getSuccessfulData()} are + * removed if they were not the same types as any exising in the + * replaced values. + */ + // @ts-ignore + undo(result: org.spongepowered.api.data.DataTransactionResult): org.spongepowered.api.data.DataTransactionResult; + /** + * Performs an absolute copy of all {@link Value}s and + * {@link ValueContainer}s to this {@link CompositeValueStore} such that + * any overlapping {@link Value}s are offered for replacement. The + * result is provided as a {@link DataTransactionResult}. + */ + // @ts-ignore + copyFrom(that: org.spongepowered.api.data.value.mutable.CompositeValueStore): org.spongepowered.api.data.DataTransactionResult; + /** + * Performs an absolute copy of all {@link Value}s and + * {@link ValueContainer}s to this {@link CompositeValueStore} such that + * any overlapping {@link Value}s are offered for replacement. The + * result is provided as a {@link DataTransactionResult}. + */ + // @ts-ignore + copyFrom(that: org.spongepowered.api.data.value.mutable.CompositeValueStore, func: org.spongepowered.api.data.merge.MergeFunction): org.spongepowered.api.data.DataTransactionResult; + /** + * Gets an copied collection of all known {@link ValueContainer}s + * belonging to this {@link CompositeValueStore}. An individual + * {@link ValueContainer} can be used for data processing for various + * purposes. + */ + // @ts-ignore + getContainers(): java.util.Collection; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.ListValue.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.ListValue.d.ts new file mode 100644 index 00000000..e6d3d715 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.ListValue.d.ts @@ -0,0 +1,55 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace value { + namespace mutable { + // @ts-ignore + interface ListValue extends org.spongepowered.api.data.value.mutable.CollectionValue { + /** + * Gets the desired element at the desired index. + */ + // @ts-ignore + get(index: number): java.lang.Object; + /** + * Adds the specified element at the specified position in the list. + * As well, the element at the provided index is shifted to the right, + * increasing its and the elements thereafter their indices by one. + */ + // @ts-ignore + add(index: number, value: java.lang.Object): org.spongepowered.api.data.value.mutable.ListValue; + /** + * Adds the specified elements in the order that they are iterated + * to the list at the specified index. The element at the provided + * index and elements thereafter are shifted to the right, increasing + * their indices by one. + */ + // @ts-ignore + add(index: number, values: java.lang.Iterable): org.spongepowered.api.data.value.mutable.ListValue; + /** + * Removes the element at the specified position in this list (optional + * operation). Shifts any subsequent elements to the left, subtracts + * one from their indices. + */ + // @ts-ignore + remove(index: number): org.spongepowered.api.data.value.mutable.ListValue; + /** + * Replaces the element at the specified index in this list with the + * specified element. + */ + // @ts-ignore + set(index: number, element: java.lang.Object): org.spongepowered.api.data.value.mutable.ListValue; + /** + * Queries for the index of the provided element. If the element is + * not contained in this list, -1 is returned. + */ + // @ts-ignore + indexOf(element: java.lang.Object): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.MapValue.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.MapValue.d.ts new file mode 100644 index 00000000..91f812c4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.MapValue.d.ts @@ -0,0 +1,83 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace value { + namespace mutable { + // @ts-ignore + interface MapValue extends org.spongepowered.api.data.value.mutable.Value { + /** + * Gets the size of this map. + */ + // @ts-ignore + size(): number; + /** + * Associates the provided key to the provided value. If there already + * exists a value for the provided key, the value is replaced. + */ + // @ts-ignore + put(key: java.lang.Object, value: java.lang.Object): org.spongepowered.api.data.value.mutable.MapValue; + /** + * Associates all provided {@link Entry} to this map value. + */ + // @ts-ignore + putAll(map: java.util.Map): org.spongepowered.api.data.value.mutable.MapValue; + /** + * Removes the association of the provided key to the value currently + * associated. + */ + // @ts-ignore + remove(key: java.lang.Object): org.spongepowered.api.data.value.mutable.MapValue; + /** + * Removes all key value associations of the provided keys. + */ + // @ts-ignore + removeAll(keys: java.lang.Iterable): org.spongepowered.api.data.value.mutable.MapValue; + /** + * Applies the {@link Predicate} to all {@link Entry} within this + * {@link MapValue}. Any entries that are false will be removed from the + * map value. + */ + // @ts-ignore + removeAll(predicate: java.util.function$.Predicate): org.spongepowered.api.data.value.mutable.MapValue; + /** + * Checks if the provided key is contained within this map. + */ + // @ts-ignore + containsKey(key: java.lang.Object): boolean; + /** + * Checks if the provided value is contained within this map. + */ + // @ts-ignore + containsValue(value: java.lang.Object): boolean; + /** + * Gets an {@link ImmutableSet} of all keys contained in this map value. + */ + // @ts-ignore + keySet(): any; + /** + * Retrieves an {@link ImmutableSet} of the {@link Entry}s contained + * within this map value. + */ + // @ts-ignore + entrySet(): any; + /** + * Retrieves an {@link ImmutableCollection} of all available values within + * this map. + */ + // @ts-ignore + values(): any; + // @ts-ignore + transform(func: java.util.function$.Function): org.spongepowered.api.data.value.mutable.MapValue; + // @ts-ignore + asImmutable(): org.spongepowered.api.data.value.immutable.ImmutableMapValue; + // @ts-ignore + copy(): org.spongepowered.api.data.value.mutable.MapValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.MutableBoundedValue.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.MutableBoundedValue.d.ts new file mode 100644 index 00000000..132e10d2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.MutableBoundedValue.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace value { + namespace mutable { + // @ts-ignore + interface MutableBoundedValue extends org.spongepowered.api.data.value.BoundedValue, org.spongepowered.api.data.value.mutable.Value { + // @ts-ignore + asImmutable(): org.spongepowered.api.data.value.immutable.ImmutableBoundedValue; + // @ts-ignore + copy(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.OptionalValue.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.OptionalValue.d.ts new file mode 100644 index 00000000..2963203d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.OptionalValue.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace value { + namespace mutable { + // @ts-ignore + interface OptionalValue extends org.spongepowered.api.data.value.mutable.Value { + // @ts-ignore + set(value: java.util.Optional): org.spongepowered.api.data.value.mutable.OptionalValue; + /** + * Sets the underlying value, may be null. + */ + // @ts-ignore + setTo(value: java.lang.Object): org.spongepowered.api.data.value.mutable.OptionalValue; + /** + * Provides the value such that if the underlying value is + * {@code null}, the default value is returned as a {@link Value}, if + * the underlying value is present, the underlying value is returned + * as a {@link Value}. + */ + // @ts-ignore + or(defaultValue: java.lang.Object): org.spongepowered.api.data.value.mutable.Value; + // @ts-ignore + copy(): org.spongepowered.api.data.value.mutable.OptionalValue; + // @ts-ignore + asImmutable(): org.spongepowered.api.data.value.immutable.ImmutableOptionalValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.PatternListValue.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.PatternListValue.d.ts new file mode 100644 index 00000000..e7b95c26 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.PatternListValue.d.ts @@ -0,0 +1,55 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace value { + namespace mutable { + // @ts-ignore + interface PatternListValue extends org.spongepowered.api.data.value.mutable.ListValue { + // @ts-ignore + add(element: org.spongepowered.api.data.meta.PatternLayer): org.spongepowered.api.data.value.mutable.PatternListValue; + /** + * Creates and adds a new {@link PatternLayer} based on the provided + * {@link BannerPatternShape} and {@link DyeColor}. + */ + // @ts-ignore + add(patternShape: org.spongepowered.api.data.type.BannerPatternShape, color: org.spongepowered.api.data.type.DyeColor): org.spongepowered.api.data.value.mutable.PatternListValue; + // @ts-ignore + add(index: number, value: org.spongepowered.api.data.meta.PatternLayer): org.spongepowered.api.data.value.mutable.PatternListValue; + /** + * Creates and adds a {@link PatternLayer} based on the + * {@link BannerPatternShape} and {@link DyeColor} at the desired index + * such that the element at the provided index is shifted to the left. + */ + // @ts-ignore + add(index: number, patternShape: org.spongepowered.api.data.type.BannerPatternShape, color: org.spongepowered.api.data.type.DyeColor): org.spongepowered.api.data.value.mutable.PatternListValue; + // @ts-ignore + add(index: number, values: java.lang.Iterable): org.spongepowered.api.data.value.mutable.PatternListValue; + // @ts-ignore + set(index: number, element: org.spongepowered.api.data.meta.PatternLayer): org.spongepowered.api.data.value.mutable.PatternListValue; + // @ts-ignore + set(value: java.util.List): org.spongepowered.api.data.value.mutable.PatternListValue; + // @ts-ignore + transform(func: java.util.function$.Function): org.spongepowered.api.data.value.mutable.PatternListValue; + // @ts-ignore + addAll(elements: java.lang.Iterable): org.spongepowered.api.data.value.mutable.PatternListValue; + // @ts-ignore + remove(index: number): org.spongepowered.api.data.value.mutable.PatternListValue; + // @ts-ignore + remove(element: org.spongepowered.api.data.meta.PatternLayer): org.spongepowered.api.data.value.mutable.PatternListValue; + // @ts-ignore + removeAll(elements: java.lang.Iterable): org.spongepowered.api.data.value.mutable.PatternListValue; + // @ts-ignore + removeAll(predicate: java.util.function$.Predicate): org.spongepowered.api.data.value.mutable.PatternListValue; + // @ts-ignore + filter(predicate: java.util.function$.Predicate): org.spongepowered.api.data.value.mutable.PatternListValue; + // @ts-ignore + asImmutable(): org.spongepowered.api.data.value.immutable.ImmutablePatternListValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.SetValue.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.SetValue.d.ts new file mode 100644 index 00000000..f7ff8818 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.SetValue.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace value { + namespace mutable { + // @ts-ignore + interface SetValue extends org.spongepowered.api.data.value.mutable.CollectionValue { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.Value.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.Value.d.ts new file mode 100644 index 00000000..2c92061b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.Value.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace value { + namespace mutable { + // @ts-ignore + interface Value extends org.spongepowered.api.data.value.BaseValue { + /** + * Sets the underlying value to the provided {@code value}. + */ + // @ts-ignore + set(value: java.lang.Object): org.spongepowered.api.data.value.mutable.Value; + /** + * Attempts to transform the underlying value based on the provided + * {@link Function} such that the result of {@link Function#apply(Object)} + * will replace the underlying value. + */ + // @ts-ignore + transform(func: java.util.function$.Function): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link ImmutableValue} version of this {@link Value} such that + * all data is duplicated across to the new {@link ImmutableValue}. Note + * that once created, the {@link ImmutableValue} is not going to change. + */ + // @ts-ignore + asImmutable(): org.spongepowered.api.data.value.immutable.ImmutableValue; + /** + * Makes an independent copy of this {@link Value} with the same initial + * data. Both this value and the new value will refer to the same object + * initially. + */ + // @ts-ignore + copy(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.WeightedCollectionValue.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.WeightedCollectionValue.d.ts new file mode 100644 index 00000000..c18f7e54 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.data.value.mutable.WeightedCollectionValue.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace data { + namespace value { + namespace mutable { + // @ts-ignore + interface WeightedCollectionValue extends org.spongepowered.api.data.value.mutable.CollectionValue { + /** + * Selects a random value from this list based on their weight. + *

If the list is empty then null will be returned.

+ */ + // @ts-ignore + get(random: java.util.Random): java.util.List; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.effect.Viewer.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.Viewer.d.ts new file mode 100644 index 00000000..fe1ec413 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.Viewer.d.ts @@ -0,0 +1,150 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace effect { + // @ts-ignore + interface Viewer { + /** + * Spawn a {@link ParticleEffect} at a given position. + * All players within a default radius around the position will see the + * particles. + */ + // @ts-ignore + spawnParticles(particleEffect: org.spongepowered.api.effect.particle.ParticleEffect, position: any /*Vector3d*/): void; + /** + * Spawn a {@link ParticleEffect} at a given position. + * All players within a given radius around the position will see the + * particles. + */ + // @ts-ignore + spawnParticles(particleEffect: org.spongepowered.api.effect.particle.ParticleEffect, position: any /*Vector3d*/, radius: number): void; + /** + * Plays the given {@link SoundType} at the given position, with the + * category {@link SoundCategories#MASTER}. All players within range + * will hear the sound with the given volume. + */ + // @ts-ignore + playSound(sound: org.spongepowered.api.effect.sound.SoundType, position: any /*Vector3d*/, volume: number): void; + /** + * Plays the given {@link SoundType} at the given position. All + * players within range will hear the sound with the given volume. + */ + // @ts-ignore + playSound(sound: org.spongepowered.api.effect.sound.SoundType, category: org.spongepowered.api.effect.sound.SoundCategory, position: any /*Vector3d*/, volume: number): void; + /** + * Plays the given {@link SoundType} at the given position, with the + * category {@link SoundCategories#MASTER}. All players within range + * will hear the sound with the given volume. + */ + // @ts-ignore + playSound(sound: org.spongepowered.api.effect.sound.SoundType, position: any /*Vector3d*/, volume: number, pitch: number): void; + /** + * Plays the given {@link SoundType} at the given position, with the + * category {@link SoundCategories#MASTER}. All players within range + * will hear the sound with the given volume. + */ + // @ts-ignore + playSound(sound: org.spongepowered.api.effect.sound.SoundType, category: org.spongepowered.api.effect.sound.SoundCategory, position: any /*Vector3d*/, volume: number, pitch: number): void; + /** + * Plays the given {@link SoundType} at the given position, with the + * category {@link SoundCategories#MASTER}. All players within range + * will hear the sound with the given volume. + */ + // @ts-ignore + playSound(sound: org.spongepowered.api.effect.sound.SoundType, position: any /*Vector3d*/, volume: number, pitch: number, minVolume: number): void; + /** + * Plays the given {@link SoundType} at the given position. All + * players within range will hear the sound with the given volume. + */ + // @ts-ignore + playSound(sound: org.spongepowered.api.effect.sound.SoundType, category: org.spongepowered.api.effect.sound.SoundCategory, position: any /*Vector3d*/, volume: number, pitch: number, minVolume: number): void; + /** + * Stops all the sounds. + */ + // @ts-ignore + stopSounds(): void; + /** + * Stops all the sounds of the given {@link SoundType}. + */ + // @ts-ignore + stopSounds(sound: org.spongepowered.api.effect.sound.SoundType): void; + /** + * Stops all the sounds that are played in the + * given {@link SoundCategory}. + */ + // @ts-ignore + stopSounds(category: org.spongepowered.api.effect.sound.SoundCategory): void; + /** + * Stops all the sounds of the given {@link SoundType} that + * are played in the given {@link SoundCategory}. + */ + // @ts-ignore + stopSounds(sound: org.spongepowered.api.effect.sound.SoundType, category: org.spongepowered.api.effect.sound.SoundCategory): void; + /** + * Plays the given {@link RecordType} at the given position. The benefit of playing + * {@link RecordType} instead of a {@link SoundType} allows you to stop them through + * the {@link #stopRecord(Vector3i)}. Playing a new {@link RecordType} at the same + * position will cancel the currently playing one. + */ + // @ts-ignore + playRecord(position: any /*Vector3i*/, recordType: org.spongepowered.api.effect.sound.record.RecordType): void; + /** + * Stops the record that is playing at the given position. + */ + // @ts-ignore + stopRecord(position: any /*Vector3i*/): void; + /** + * Sends a {@link Title} to this player. + */ + // @ts-ignore + sendTitle(title: org.spongepowered.api.text.title.Title): void; + /** + * Removes the currently displayed {@link Title} from the player and resets + * all settings back to default values. + */ + // @ts-ignore + resetTitle(): void; + /** + * Removes the currently displayed {@link Title} from the player's screen. + */ + // @ts-ignore + clearTitle(): void; + /** + * Sends a {@link BookView} to this viewer. + */ + // @ts-ignore + sendBookView(bookView: org.spongepowered.api.text.BookView): void; + /** + * Sends a client-only block change. + *

This will not change the {@link World} in any way.

+ */ + // @ts-ignore + sendBlockChange(vec: any /*Vector3i*/, state: org.spongepowered.api.block.BlockState): void; + /** + * Sends a client-only block change. + *

This will not change the {@link World} in any way.

+ */ + // @ts-ignore + sendBlockChange(x: number, y: number, z: number, state: org.spongepowered.api.block.BlockState): void; + /** + * Resets the client's view of the provided position to what + * actually exists in the {@link World}. + *

This is useful for resetting what the client sees + * after sending a {@link #sendBlockChange block change}.

+ */ + // @ts-ignore + resetBlockChange(vec: any /*Vector3i*/): void; + /** + * Resets the client's view of the provided position to what + * actually exists in the {@link World}. + *

This is useful for resetting what the client sees + * after sending a {@link #sendBlockChange block change}.

+ */ + // @ts-ignore + resetBlockChange(x: number, y: number, z: number): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.effect.particle.ParticleEffect.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.particle.ParticleEffect.Builder.d.ts new file mode 100644 index 00000000..58d82606 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.particle.ParticleEffect.Builder.d.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace effect { + namespace particle { + namespace ParticleEffect { + // @ts-ignore + interface Builder extends org.spongepowered.api.data.persistence.DataBuilder { + // @ts-ignore + from(particleEffect: org.spongepowered.api.effect.particle.ParticleEffect): org.spongepowered.api.effect.particle.ParticleEffect.Builder; + // @ts-ignore + reset(): org.spongepowered.api.effect.particle.ParticleEffect.Builder; + /** + * Sets the particle type for the particle effect. + */ + // @ts-ignore + type(particleType: org.spongepowered.api.effect.particle.ParticleType): org.spongepowered.api.effect.particle.ParticleEffect.Builder; + /** + * Sets the value of the specified {@link ParticleOption}. + */ + // @ts-ignore + option(option: org.spongepowered.api.effect.particle.ParticleOption, value: java.lang.Object): org.spongepowered.api.effect.particle.ParticleEffect.Builder; + /** + * Sets the velocity of the particle effect. + *

The default velocity is {@link Vector3d#ZERO}.

+ */ + // @ts-ignore + velocity(velocity: any /*Vector3d*/): org.spongepowered.api.effect.particle.ParticleEffect.Builder; + /** + * Sets the offset of the particle effect. + *

The default offset is {@link Vector3d#ZERO}.

+ */ + // @ts-ignore + offset(offset: any /*Vector3d*/): org.spongepowered.api.effect.particle.ParticleEffect.Builder; + /** + * Sets the amount of particles of the particle effect. + *

The default quantity is 1.

+ */ + // @ts-ignore + quantity(quantity: number): org.spongepowered.api.effect.particle.ParticleEffect.Builder; + /** + * Builds an instance of a ParticleEffect. + */ + // @ts-ignore + build(): org.spongepowered.api.effect.particle.ParticleEffect; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.effect.particle.ParticleEffect.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.particle.ParticleEffect.d.ts new file mode 100644 index 00000000..437e07da --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.particle.ParticleEffect.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace effect { + namespace particle { + // @ts-ignore + interface ParticleEffect extends org.spongepowered.api.data.DataSerializable { + /** + * Creates a new {@link Builder} to build a {@link ParticleEffect}. + */ + // @ts-ignore + builder(): org.spongepowered.api.effect.particle.ParticleEffect.Builder; + /** + * Gets the type of the particle effect. + */ + // @ts-ignore + getType(): org.spongepowered.api.effect.particle.ParticleType; + /** + * Gets the value for the specified {@link ParticleOption}. + */ + // @ts-ignore + getOption(option: org.spongepowered.api.effect.particle.ParticleOption): java.util.Optional; + /** + * Gets the value for the specified {@link ParticleOption} or + * the default value if not present. + */ + // @ts-ignore + getOptionOrDefault(option: org.spongepowered.api.effect.particle.ParticleOption): java.util.Optional; + /** + * Gets a immutable {@link Map} with all the available + * {@link ParticleOption}s and their values. + */ + // @ts-ignore + getOptions(): java.util.Map; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.effect.particle.ParticleOption.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.particle.ParticleOption.d.ts new file mode 100644 index 00000000..fd1bf4a0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.particle.ParticleOption.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace effect { + namespace particle { + // @ts-ignore + interface ParticleOption extends org.spongepowered.api.CatalogType { + /** + * Gets the type of the value. + */ + // @ts-ignore + getValueType(): java.lang.Class; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.effect.particle.ParticleOptions.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.particle.ParticleOptions.d.ts new file mode 100644 index 00000000..fb7545cd --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.particle.ParticleOptions.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace effect { + namespace particle { + // @ts-ignore + class ParticleOptions extends java.lang.Object { + // @ts-ignore + public static BLOCK_STATE: org.spongepowered.api.effect.particle.ParticleOption; + // @ts-ignore + public static COLOR: org.spongepowered.api.effect.particle.ParticleOption; + // @ts-ignore + public static DIRECTION: org.spongepowered.api.effect.particle.ParticleOption; + // @ts-ignore + public static FIREWORK_EFFECTS: org.spongepowered.api.effect.particle.ParticleOption; + // @ts-ignore + public static ITEM_STACK_SNAPSHOT: org.spongepowered.api.effect.particle.ParticleOption; + // @ts-ignore + public static NOTE: org.spongepowered.api.effect.particle.ParticleOption; + // @ts-ignore + public static OFFSET: org.spongepowered.api.effect.particle.ParticleOption; + // @ts-ignore + public static POTION_EFFECT_TYPE: org.spongepowered.api.effect.particle.ParticleOption; + // @ts-ignore + public static QUANTITY: org.spongepowered.api.effect.particle.ParticleOption; + // @ts-ignore + public static SCALE: org.spongepowered.api.effect.particle.ParticleOption; + // @ts-ignore + public static SLOW_HORIZONTAL_VELOCITY: org.spongepowered.api.effect.particle.ParticleOption; + // @ts-ignore + public static VELOCITY: org.spongepowered.api.effect.particle.ParticleOption; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.effect.particle.ParticleType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.particle.ParticleType.d.ts new file mode 100644 index 00000000..16eab375 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.particle.ParticleType.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace effect { + namespace particle { + // @ts-ignore + interface ParticleType extends org.spongepowered.api.CatalogType { + /** + * Gets the default value for the specified {@link ParticleOption}, it may + * return {@link Optional#empty()} if the particle option isn't supported + * by this particle type. + */ + // @ts-ignore + getDefaultOption(option: org.spongepowered.api.effect.particle.ParticleOption): java.util.Optional; + /** + * Gets a immutable {@link Map} with all the available + * {@link ParticleOption}s and their values. When a option isn't + * available inside this {@link Map} it's most likely not supported + * by this particle type. + */ + // @ts-ignore + getDefaultOptions(): java.util.Map; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.effect.particle.ParticleTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.particle.ParticleTypes.d.ts new file mode 100644 index 00000000..146843e8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.particle.ParticleTypes.d.ts @@ -0,0 +1,122 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace effect { + namespace particle { + // @ts-ignore + class ParticleTypes extends java.lang.Object { + // @ts-ignore + public static AMBIENT_MOB_SPELL: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static ANGRY_VILLAGER: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static BARRIER: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static BLOCK_CRACK: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static BLOCK_DUST: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static BREAK_BLOCK: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static CLOUD: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static CRITICAL_HIT: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static DAMAGE_INDICATOR: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static DRAGON_BREATH: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static DRAGON_BREATH_ATTACK: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static DRIP_LAVA: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static DRIP_WATER: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static ENCHANTING_GLYPHS: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static ENDER_TELEPORT: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static END_ROD: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static EXPLOSION: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static FALLING_DUST: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static FERTILIZER: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static FIREWORKS: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static FIREWORKS_SPARK: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static FIRE_SMOKE: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static FLAME: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static FOOTSTEP: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static GUARDIAN_APPEARANCE: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static HAPPY_VILLAGER: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static HEART: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static HUGE_EXPLOSION: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static INSTANT_SPELL: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static ITEM_CRACK: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static LARGE_EXPLOSION: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static LARGE_SMOKE: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static LAVA: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static MAGIC_CRITICAL_HIT: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static MOBSPAWNER_FLAMES: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static MOB_SPELL: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static NOTE: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static PORTAL: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static REDSTONE_DUST: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static SLIME: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static SMOKE: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static SNOWBALL: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static SNOW_SHOVEL: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static SPELL: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static SPLASH_POTION: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static SUSPENDED: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static SUSPENDED_DEPTH: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static SWEEP_ATTACK: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static TOWN_AURA: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static WATER_BUBBLE: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static WATER_DROP: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static WATER_SPLASH: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static WATER_WAKE: org.spongepowered.api.effect.particle.ParticleType; + // @ts-ignore + public static WITCH_SPELL: org.spongepowered.api.effect.particle.ParticleType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.effect.potion.PotionEffect.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.potion.PotionEffect.Builder.d.ts new file mode 100644 index 00000000..4ab1acd9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.potion.PotionEffect.Builder.d.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace effect { + namespace potion { + namespace PotionEffect { + // @ts-ignore + interface Builder extends org.spongepowered.api.data.persistence.DataBuilder { + // @ts-ignore + from(potionEffect: org.spongepowered.api.effect.potion.PotionEffect): org.spongepowered.api.effect.potion.PotionEffect.Builder; + /** + * Sets the {@link PotionEffectType} of the potion. + */ + // @ts-ignore + potionType(potionEffectType: org.spongepowered.api.effect.potion.PotionEffectType): org.spongepowered.api.effect.potion.PotionEffect.Builder; + /** + * Sets the duration in ticks of the potion effect. + */ + // @ts-ignore + duration(duration: number): org.spongepowered.api.effect.potion.PotionEffect.Builder; + /** + * Sets the amplifier power of the potion effect. + *

Amplifiers must be above zero.

+ */ + // @ts-ignore + amplifier(amplifier: number): org.spongepowered.api.effect.potion.PotionEffect.Builder; + /** + * Sets the potion effect to be ambient or not. + */ + // @ts-ignore + ambience(ambience: boolean): org.spongepowered.api.effect.potion.PotionEffect.Builder; + /** + * Sets the potion effect to show particles when applied or not. + */ + // @ts-ignore + particles(showsParticles: boolean): org.spongepowered.api.effect.potion.PotionEffect.Builder; + /** + * Builds an instance of a PotionEffect. + */ + // @ts-ignore + build(): org.spongepowered.api.effect.potion.PotionEffect; + // @ts-ignore + reset(): org.spongepowered.api.effect.potion.PotionEffect.Builder; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.effect.potion.PotionEffect.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.potion.PotionEffect.d.ts new file mode 100644 index 00000000..825d1c25 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.potion.PotionEffect.d.ts @@ -0,0 +1,54 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace effect { + namespace potion { + // @ts-ignore + interface PotionEffect extends org.spongepowered.api.data.DataSerializable, org.spongepowered.api.data.property.PropertyHolder { + /** + * Creates a new {@link Builder} to build a {@link PotionEffect}. + */ + // @ts-ignore + builder(): org.spongepowered.api.effect.potion.PotionEffect.Builder; + /** + * Creates a new {@link PotionEffect} with the provided + * {@link PotionEffectType}, the provided amplifier, and the provided + * duration in ticks. + */ + // @ts-ignore + of(type: org.spongepowered.api.effect.potion.PotionEffectType, amplifier: number, duration: number): org.spongepowered.api.effect.potion.PotionEffect; + /** + * Gets the {@link PotionEffectType} of this potion. + */ + // @ts-ignore + getType(): org.spongepowered.api.effect.potion.PotionEffectType; + /** + * Gets the duration in ticks for which this potion effect + * will apply for. + */ + // @ts-ignore + getDuration(): number; + /** + * Gets the amplifier at which this potion effect + * will apply effects. + */ + // @ts-ignore + getAmplifier(): number; + /** + * Gets if the potion effect is an ambient effect. + */ + // @ts-ignore + isAmbient(): boolean; + /** + * Gets whether or not this potion effect should + * show particles. + */ + // @ts-ignore + getShowParticles(): boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.effect.potion.PotionEffectType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.potion.PotionEffectType.d.ts new file mode 100644 index 00000000..3c1f3203 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.potion.PotionEffectType.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace effect { + namespace potion { + // @ts-ignore + interface PotionEffectType extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + /** + * Gets whether this potion effect is applied instantly or over time. + */ + // @ts-ignore + isInstant(): boolean; + /** + * Gets the {@link Translation} for this potion effect type as a potion + * name. + */ + // @ts-ignore + getPotionTranslation(): org.spongepowered.api.text.translation.Translation; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.effect.potion.PotionEffectTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.potion.PotionEffectTypes.d.ts new file mode 100644 index 00000000..d2e4e7bc --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.potion.PotionEffectTypes.d.ts @@ -0,0 +1,68 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace effect { + namespace potion { + // @ts-ignore + class PotionEffectTypes extends java.lang.Object { + // @ts-ignore + public static ABSORPTION: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static BLINDNESS: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static FIRE_RESISTANCE: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static GLOWING: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static HASTE: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static HEALTH_BOOST: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static HUNGER: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static INSTANT_DAMAGE: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static INSTANT_HEALTH: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static INVISIBILITY: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static JUMP_BOOST: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static LEVITATION: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static LUCK: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static MINING_FATIGUE: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static NAUSEA: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static NIGHT_VISION: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static POISON: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static REGENERATION: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static RESISTANCE: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static SATURATION: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static SLOWNESS: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static SPEED: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static STRENGTH: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static UNLUCK: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static WATER_BREATHING: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static WEAKNESS: org.spongepowered.api.effect.potion.PotionEffectType; + // @ts-ignore + public static WITHER: org.spongepowered.api.effect.potion.PotionEffectType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.effect.sound.PitchModulation.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.sound.PitchModulation.d.ts new file mode 100644 index 00000000..66d2a008 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.sound.PitchModulation.d.ts @@ -0,0 +1,94 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace effect { + namespace sound { + // @ts-ignore + class PitchModulation extends java.lang.Object { + // @ts-ignore + public static FSHARP0: number; + // @ts-ignore + public static G0: number; + // @ts-ignore + public static GSHARP0: number; + // @ts-ignore + public static A0: number; + // @ts-ignore + public static ASHARP0: number; + // @ts-ignore + public static B0: number; + // @ts-ignore + public static C1: number; + // @ts-ignore + public static CSHARP1: number; + // @ts-ignore + public static D1: number; + // @ts-ignore + public static DSHARP1: number; + // @ts-ignore + public static E1: number; + // @ts-ignore + public static F1: number; + // @ts-ignore + public static FSHARP1: number; + // @ts-ignore + public static G1: number; + // @ts-ignore + public static GSHARP1: number; + // @ts-ignore + public static A1: number; + // @ts-ignore + public static ASHARP1: number; + // @ts-ignore + public static B1: number; + // @ts-ignore + public static C2: number; + // @ts-ignore + public static CSHARP2: number; + // @ts-ignore + public static D2: number; + // @ts-ignore + public static DSHARP2: number; + // @ts-ignore + public static E2: number; + // @ts-ignore + public static F2: number; + // @ts-ignore + public static FSHARP2: number; + // @ts-ignore + public static GFLAT0: number; + // @ts-ignore + public static AFLAT0: number; + // @ts-ignore + public static BFLAT0: number; + // @ts-ignore + public static CFLAT0: number; + // @ts-ignore + public static DFLAT1: number; + // @ts-ignore + public static EFLAT1: number; + // @ts-ignore + public static FFLAT1: number; + // @ts-ignore + public static GFLAT1: number; + // @ts-ignore + public static AFLAT1: number; + // @ts-ignore + public static BFLAT1: number; + // @ts-ignore + public static CFLAT1: number; + // @ts-ignore + public static DFLAT2: number; + // @ts-ignore + public static EFLAT2: number; + // @ts-ignore + public static FFLAT2: number; + // @ts-ignore + public static GFLAT2: number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.effect.sound.SoundCategories.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.sound.SoundCategories.d.ts new file mode 100644 index 00000000..ab1dd4a9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.sound.SoundCategories.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace effect { + namespace sound { + // @ts-ignore + class SoundCategories extends java.lang.Object { + // @ts-ignore + public static AMBIENT: org.spongepowered.api.effect.sound.SoundCategory; + // @ts-ignore + public static BLOCK: org.spongepowered.api.effect.sound.SoundCategory; + // @ts-ignore + public static HOSTILE: org.spongepowered.api.effect.sound.SoundCategory; + // @ts-ignore + public static MASTER: org.spongepowered.api.effect.sound.SoundCategory; + // @ts-ignore + public static MUSIC: org.spongepowered.api.effect.sound.SoundCategory; + // @ts-ignore + public static NEUTRAL: org.spongepowered.api.effect.sound.SoundCategory; + // @ts-ignore + public static PLAYER: org.spongepowered.api.effect.sound.SoundCategory; + // @ts-ignore + public static RECORD: org.spongepowered.api.effect.sound.SoundCategory; + // @ts-ignore + public static VOICE: org.spongepowered.api.effect.sound.SoundCategory; + // @ts-ignore + public static WEATHER: org.spongepowered.api.effect.sound.SoundCategory; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.effect.sound.SoundCategory.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.sound.SoundCategory.d.ts new file mode 100644 index 00000000..4ecb1f60 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.sound.SoundCategory.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace effect { + namespace sound { + // @ts-ignore + interface SoundCategory extends org.spongepowered.api.CatalogType { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.effect.sound.SoundType.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.sound.SoundType.Builder.d.ts new file mode 100644 index 00000000..7bbc7892 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.sound.SoundType.Builder.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace effect { + namespace sound { + namespace SoundType { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Builds a new instance of a {@link SoundType}. + *

Note: If no domain (indicated by the string before ':') is present + * in the id, the default "minecraft" domain will be used.

+ */ + // @ts-ignore + build(id: string): org.spongepowered.api.effect.sound.SoundType; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.effect.sound.SoundType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.sound.SoundType.d.ts new file mode 100644 index 00000000..d075d22e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.sound.SoundType.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace effect { + namespace sound { + // @ts-ignore + interface SoundType extends org.spongepowered.api.CatalogType { + /** + * Creates a new {@link Builder} for building SoundTypes. + */ + // @ts-ignore + builder(): org.spongepowered.api.effect.sound.SoundType.Builder; + /** + * Creates a newSoundType from the given ID. To fetch existing types, + * use {@link GameRegistry#getType(Class, String)}. + */ + // @ts-ignore + of(id: string): org.spongepowered.api.effect.sound.SoundType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.effect.sound.SoundTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.sound.SoundTypes.d.ts new file mode 100644 index 00000000..569b585b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.sound.SoundTypes.d.ts @@ -0,0 +1,1112 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace effect { + namespace sound { + // @ts-ignore + class SoundTypes extends java.lang.Object { + // @ts-ignore + public static AMBIENT_CAVE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_ANVIL_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_ANVIL_DESTROY: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_ANVIL_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_ANVIL_HIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_ANVIL_LAND: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_ANVIL_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_ANVIL_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_ANVIL_USE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_BREWING_STAND_BREW: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_CHEST_CLOSE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_CHEST_LOCKED: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_CHEST_OPEN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_CHORUS_FLOWER_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_CHORUS_FLOWER_GROW: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_CLOTH_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_CLOTH_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_CLOTH_HIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_CLOTH_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_CLOTH_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_COMPARATOR_CLICK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_DISPENSER_DISPENSE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_DISPENSER_FAIL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_DISPENSER_LAUNCH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_ENCHANTMENT_TABLE_USE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_ENDERCHEST_CLOSE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_ENDERCHEST_OPEN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_END_GATEWAY_SPAWN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_END_PORTAL_FRAME_FILL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_END_PORTAL_SPAWN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_FENCE_GATE_CLOSE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_FENCE_GATE_OPEN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_FIRE_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_FIRE_EXTINGUISH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_FURNACE_FIRE_CRACKLE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_GLASS_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_GLASS_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_GLASS_HIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_GLASS_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_GLASS_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_GRASS_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_GRASS_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_GRASS_HIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_GRASS_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_GRASS_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_GRAVEL_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_GRAVEL_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_GRAVEL_HIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_GRAVEL_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_GRAVEL_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_IRON_DOOR_CLOSE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_IRON_DOOR_OPEN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_IRON_TRAPDOOR_CLOSE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_IRON_TRAPDOOR_OPEN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_LADDER_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_LADDER_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_LADDER_HIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_LADDER_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_LADDER_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_LAVA_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_LAVA_EXTINGUISH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_LAVA_POP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_LEVER_CLICK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_METAL_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_METAL_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_METAL_HIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_METAL_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_METAL_PRESSUREPLATE_CLICK_OFF: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_METAL_PRESSUREPLATE_CLICK_ON: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_METAL_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_NOTE_BASEDRUM: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_NOTE_BASS: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_NOTE_BELL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_NOTE_CHIME: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_NOTE_FLUTE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_NOTE_GUITAR: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_NOTE_HARP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_NOTE_HAT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_NOTE_PLING: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_NOTE_SNARE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_NOTE_XYLOPHONE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_PISTON_CONTRACT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_PISTON_EXTEND: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_PORTAL_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_PORTAL_TRAVEL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_PORTAL_TRIGGER: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_REDSTONE_TORCH_BURNOUT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SAND_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SAND_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SAND_HIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SAND_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SAND_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SHULKER_BOX_CLOSE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SHULKER_BOX_OPEN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SLIME_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SLIME_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SLIME_HIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SLIME_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SLIME_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SNOW_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SNOW_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SNOW_HIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SNOW_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_SNOW_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_STONE_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_STONE_BUTTON_CLICK_OFF: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_STONE_BUTTON_CLICK_ON: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_STONE_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_STONE_HIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_STONE_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_STONE_PRESSUREPLATE_CLICK_OFF: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_STONE_PRESSUREPLATE_CLICK_ON: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_STONE_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_TRIPWIRE_ATTACH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_TRIPWIRE_CLICK_OFF: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_TRIPWIRE_CLICK_ON: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_TRIPWIRE_DETACH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_WATERLILY_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_WATER_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_WOODEN_DOOR_CLOSE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_WOODEN_DOOR_OPEN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_WOODEN_TRAPDOOR_CLOSE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_WOODEN_TRAPDOOR_OPEN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_WOOD_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_WOOD_BUTTON_CLICK_OFF: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_WOOD_BUTTON_CLICK_ON: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_WOOD_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_WOOD_HIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_WOOD_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_WOOD_PRESSUREPLATE_CLICK_OFF: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_WOOD_PRESSUREPLATE_CLICK_ON: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static BLOCK_WOOD_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENCHANT_THORNS_HIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ARMORSTAND_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ARMORSTAND_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ARMORSTAND_HIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ARMORSTAND_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ARROW_HIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ARROW_HIT_PLAYER: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ARROW_SHOOT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_BAT_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_BAT_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_BAT_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_BAT_LOOP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_BAT_TAKEOFF: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_BLAZE_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_BLAZE_BURN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_BLAZE_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_BLAZE_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_BLAZE_SHOOT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_BOAT_PADDLE_LAND: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_BOAT_PADDLE_WATER: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_BOBBER_RETRIEVE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_BOBBER_SPLASH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_BOBBER_THROW: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_CAT_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_CAT_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_CAT_HISS: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_CAT_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_CAT_PURR: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_CAT_PURREOW: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_CHICKEN_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_CHICKEN_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_CHICKEN_EGG: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_CHICKEN_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_CHICKEN_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_COW_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_COW_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_COW_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_COW_MILK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_COW_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_CREEPER_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_CREEPER_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_CREEPER_PRIMED: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_DONKEY_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_DONKEY_ANGRY: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_DONKEY_CHEST: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_DONKEY_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_DONKEY_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_EGG_THROW: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ELDER_GUARDIAN_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ELDER_GUARDIAN_AMBIENT_LAND: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ELDER_GUARDIAN_CURSE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ELDER_GUARDIAN_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ELDER_GUARDIAN_DEATH_LAND: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ELDER_GUARDIAN_FLOP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ELDER_GUARDIAN_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ELDER_GUARDIAN_HURT_LAND: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERDRAGON_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERDRAGON_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERDRAGON_FIREBALL_EXPLODE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERDRAGON_FLAP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERDRAGON_GROWL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERDRAGON_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERDRAGON_SHOOT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDEREYE_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDEREYE_LAUNCH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERMEN_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERMEN_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERMEN_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERMEN_SCREAM: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERMEN_STARE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERMEN_TELEPORT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERMITE_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERMITE_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERMITE_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERMITE_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ENDERPEARL_THROW: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_EVOCATION_FANGS_ATTACK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_EVOCATION_ILLAGER_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_EVOCATION_ILLAGER_CAST_SPELL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_EVOCATION_ILLAGER_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_EVOCATION_ILLAGER_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_EVOCATION_ILLAGER_PREPARE_ATTACK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_EVOCATION_ILLAGER_PREPARE_SUMMON: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_EVOCATION_ILLAGER_PREPARE_WOLOLO: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_EXPERIENCE_BOTTLE_THROW: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_EXPERIENCE_ORB_PICKUP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_FIREWORK_BLAST: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_FIREWORK_BLAST_FAR: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_FIREWORK_LARGE_BLAST: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_FIREWORK_LARGE_BLAST_FAR: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_FIREWORK_LAUNCH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_FIREWORK_SHOOT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_FIREWORK_TWINKLE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_FIREWORK_TWINKLE_FAR: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GENERIC_BIG_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GENERIC_BURN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GENERIC_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GENERIC_DRINK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GENERIC_EAT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GENERIC_EXPLODE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GENERIC_EXTINGUISH_FIRE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GENERIC_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GENERIC_SMALL_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GENERIC_SPLASH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GENERIC_SWIM: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GHAST_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GHAST_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GHAST_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GHAST_SCREAM: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GHAST_SHOOT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GHAST_WARN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GUARDIAN_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GUARDIAN_AMBIENT_LAND: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GUARDIAN_ATTACK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GUARDIAN_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GUARDIAN_DEATH_LAND: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GUARDIAN_FLOP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GUARDIAN_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_GUARDIAN_HURT_LAND: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HORSE_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HORSE_ANGRY: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HORSE_ARMOR: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HORSE_BREATHE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HORSE_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HORSE_EAT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HORSE_GALLOP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HORSE_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HORSE_JUMP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HORSE_LAND: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HORSE_SADDLE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HORSE_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HORSE_STEP_WOOD: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HOSTILE_BIG_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HOSTILE_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HOSTILE_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HOSTILE_SMALL_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HOSTILE_SPLASH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HOSTILE_SWIM: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HUSK_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HUSK_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HUSK_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_HUSK_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ILLUSION_ILLAGER_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ILLUSION_ILLAGER_CAST_SPELL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ILLUSION_ILLAGER_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ILLUSION_ILLAGER_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ILLUSION_ILLAGER_MIRROR_MOVE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ILLUSION_ILLAGER_PREPARE_BLINDNESS: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ILLUSION_ILLAGER_PREPARE_MIRROR: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_IRONGOLEM_ATTACK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_IRONGOLEM_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_IRONGOLEM_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_IRONGOLEM_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ITEMFRAME_ADD_ITEM: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ITEMFRAME_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ITEMFRAME_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ITEMFRAME_REMOVE_ITEM: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ITEMFRAME_ROTATE_ITEM: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ITEM_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ITEM_PICKUP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_LEASHKNOT_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_LEASHKNOT_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_LIGHTNING_IMPACT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_LIGHTNING_THUNDER: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_LINGERINGPOTION_THROW: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_LLAMA_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_LLAMA_ANGRY: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_LLAMA_CHEST: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_LLAMA_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_LLAMA_EAT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_LLAMA_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_LLAMA_SPIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_LLAMA_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_LLAMA_SWAG: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_MAGMACUBE_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_MAGMACUBE_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_MAGMACUBE_JUMP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_MAGMACUBE_SQUISH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_MINECART_INSIDE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_MINECART_RIDING: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_MOOSHROOM_SHEAR: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_MULE_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_MULE_CHEST: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_MULE_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_MULE_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PAINTING_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PAINTING_PLACE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_EAT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_FLY: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_BLAZE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_CREEPER: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_ELDER_GUARDIAN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_ENDERDRAGON: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_ENDERMAN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_ENDERMITE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_EVOCATION_ILLAGER: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_GHAST: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_HUSK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_ILLUSION_ILLAGER: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_MAGMACUBE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_POLAR_BEAR: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_SHULKER: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_SILVERFISH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_SKELETON: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_SLIME: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_SPIDER: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_STRAY: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_VEX: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_VINDICATION_ILLAGER: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_WITCH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_WITHER: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_WITHER_SKELETON: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_WOLF: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_ZOMBIE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_ZOMBIE_PIGMAN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_IMITATE_ZOMBIE_VILLAGER: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PARROT_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PIG_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PIG_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PIG_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PIG_SADDLE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PIG_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_ATTACK_CRIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_ATTACK_KNOCKBACK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_ATTACK_NODAMAGE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_ATTACK_STRONG: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_ATTACK_SWEEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_ATTACK_WEAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_BIG_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_BREATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_BURP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_HURT_DROWN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_HURT_ON_FIRE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_LEVELUP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_SMALL_FALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_SPLASH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_PLAYER_SWIM: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_POLAR_BEAR_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_POLAR_BEAR_BABY_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_POLAR_BEAR_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_POLAR_BEAR_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_POLAR_BEAR_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_POLAR_BEAR_WARNING: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_RABBIT_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_RABBIT_ATTACK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_RABBIT_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_RABBIT_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_RABBIT_JUMP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SHEEP_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SHEEP_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SHEEP_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SHEEP_SHEAR: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SHEEP_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SHULKER_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SHULKER_BULLET_HIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SHULKER_BULLET_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SHULKER_CLOSE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SHULKER_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SHULKER_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SHULKER_HURT_CLOSED: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SHULKER_OPEN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SHULKER_SHOOT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SHULKER_TELEPORT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SILVERFISH_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SILVERFISH_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SILVERFISH_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SILVERFISH_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SKELETON_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SKELETON_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SKELETON_HORSE_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SKELETON_HORSE_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SKELETON_HORSE_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SKELETON_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SKELETON_SHOOT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SKELETON_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SLIME_ATTACK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SLIME_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SLIME_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SLIME_JUMP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SLIME_SQUISH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SMALL_MAGMACUBE_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SMALL_MAGMACUBE_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SMALL_MAGMACUBE_SQUISH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SMALL_SLIME_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SMALL_SLIME_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SMALL_SLIME_JUMP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SMALL_SLIME_SQUISH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SNOWBALL_THROW: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SNOWMAN_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SNOWMAN_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SNOWMAN_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SNOWMAN_SHOOT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SPIDER_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SPIDER_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SPIDER_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SPIDER_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SPLASH_POTION_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SPLASH_POTION_THROW: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SQUID_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SQUID_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_SQUID_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_STRAY_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_STRAY_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_STRAY_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_STRAY_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_TNT_PRIMED: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_VEX_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_VEX_CHARGE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_VEX_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_VEX_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_VILLAGER_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_VILLAGER_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_VILLAGER_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_VILLAGER_NO: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_VILLAGER_TRADING: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_VILLAGER_YES: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_VINDICATION_ILLAGER_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_VINDICATION_ILLAGER_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_VINDICATION_ILLAGER_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WITCH_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WITCH_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WITCH_DRINK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WITCH_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WITCH_THROW: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WITHER_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WITHER_BREAK_BLOCK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WITHER_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WITHER_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WITHER_SHOOT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WITHER_SKELETON_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WITHER_SKELETON_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WITHER_SKELETON_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WITHER_SKELETON_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WITHER_SPAWN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WOLF_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WOLF_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WOLF_GROWL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WOLF_HOWL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WOLF_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WOLF_PANT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WOLF_SHAKE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WOLF_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_WOLF_WHINE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_ATTACK_DOOR_WOOD: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_ATTACK_IRON_DOOR: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_BREAK_DOOR_WOOD: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_HORSE_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_HORSE_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_HORSE_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_INFECT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_PIG_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_PIG_ANGRY: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_PIG_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_PIG_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_VILLAGER_AMBIENT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_VILLAGER_CONVERTED: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_VILLAGER_CURE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_VILLAGER_DEATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_VILLAGER_HURT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ENTITY_ZOMBIE_VILLAGER_STEP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_ARMOR_EQUIP_CHAIN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_ARMOR_EQUIP_DIAMOND: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_ARMOR_EQUIP_ELYTRA: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_ARMOR_EQUIP_GENERIC: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_ARMOR_EQUIP_GOLD: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_ARMOR_EQUIP_IRON: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_ARMOR_EQUIP_LEATHER: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_BOTTLE_EMPTY: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_BOTTLE_FILL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_BOTTLE_FILL_DRAGONBREATH: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_BUCKET_EMPTY: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_BUCKET_EMPTY_LAVA: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_BUCKET_FILL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_BUCKET_FILL_LAVA: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_CHORUS_FRUIT_TELEPORT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_ELYTRA_FLYING: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_FIRECHARGE_USE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_FLINTANDSTEEL_USE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_HOE_TILL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_SHIELD_BLOCK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_SHIELD_BREAK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_SHOVEL_FLATTEN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static ITEM_TOTEM_USE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static MUSIC_CREATIVE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static MUSIC_CREDITS: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static MUSIC_DRAGON: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static MUSIC_END: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static MUSIC_GAME: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static MUSIC_MENU: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static MUSIC_NETHER: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static RECORD_11: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static RECORD_13: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static RECORD_BLOCKS: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static RECORD_CAT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static RECORD_CHIRP: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static RECORD_FAR: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static RECORD_MALL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static RECORD_MELLOHI: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static RECORD_STAL: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static RECORD_STRAD: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static RECORD_WAIT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static RECORD_WARD: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static UI_BUTTON_CLICK: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static UI_TOAST_CHALLENGE_COMPLETE: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static UI_TOAST_IN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static UI_TOAST_OUT: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static WEATHER_RAIN: org.spongepowered.api.effect.sound.SoundType; + // @ts-ignore + public static WEATHER_RAIN_ABOVE: org.spongepowered.api.effect.sound.SoundType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.effect.sound.record.RecordType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.sound.record.RecordType.d.ts new file mode 100644 index 00000000..87a3aa18 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.sound.record.RecordType.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace effect { + namespace sound { + namespace record { + // @ts-ignore + interface RecordType extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + /** + * Gets the {@link SoundType} that is used + * by this {@link RecordType}. + */ + // @ts-ignore + getSound(): org.spongepowered.api.effect.sound.SoundType; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.effect.sound.record.RecordTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.sound.record.RecordTypes.d.ts new file mode 100644 index 00000000..a97e304f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.effect.sound.record.RecordTypes.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace effect { + namespace sound { + namespace record { + // @ts-ignore + class RecordTypes extends java.lang.Object { + // @ts-ignore + public static BLOCKS: org.spongepowered.api.effect.sound.record.RecordType; + // @ts-ignore + public static CAT: org.spongepowered.api.effect.sound.record.RecordType; + // @ts-ignore + public static CHIRP: org.spongepowered.api.effect.sound.record.RecordType; + // @ts-ignore + public static ELEVEN: org.spongepowered.api.effect.sound.record.RecordType; + // @ts-ignore + public static FAR: org.spongepowered.api.effect.sound.record.RecordType; + // @ts-ignore + public static MALL: org.spongepowered.api.effect.sound.record.RecordType; + // @ts-ignore + public static MELLOHI: org.spongepowered.api.effect.sound.record.RecordType; + // @ts-ignore + public static STAL: org.spongepowered.api.effect.sound.record.RecordType; + // @ts-ignore + public static STRAD: org.spongepowered.api.effect.sound.record.RecordType; + // @ts-ignore + public static THIRTEEN: org.spongepowered.api.effect.sound.record.RecordType; + // @ts-ignore + public static WAIT: org.spongepowered.api.effect.sound.record.RecordType; + // @ts-ignore + public static WARD: org.spongepowered.api.effect.sound.record.RecordType; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.AreaEffectCloud.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.AreaEffectCloud.d.ts new file mode 100644 index 00000000..8415c1d5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.AreaEffectCloud.d.ts @@ -0,0 +1,84 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + // @ts-ignore + interface AreaEffectCloud extends org.spongepowered.api.entity.Entity { + /** + * Gets the {@link AreaEffectCloudData} for this cloud. + */ + // @ts-ignore + getAreaEffectCloudData(): org.spongepowered.api.data.manipulator.mutable.entity.AreaEffectCloudData; + /** + * Gets the {@link Color} of this cloud, can be changed. + */ + // @ts-ignore + color(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@code radius} value of this cloud. + */ + // @ts-ignore + radius(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link ParticleType} of this cloud. + */ + // @ts-ignore + particleType(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the bounded {@code duration} value of this cloud. + */ + // @ts-ignore + duration(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the bounded {@code waitTime} value of this cloud. The wait time + * dictates how long until this cloud will affect {@link Entity} instances + * with {@link PotionEffect}s. + */ + // @ts-ignore + waitTime(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the bounded {@code radiusOnUse} value of this cloud. The radius is + * reduced per {@link Entity} affected. Once the radius is {@code 0}, the + * cloud dissipates. + */ + // @ts-ignore + radiusOnUse(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the bounded {@code radiusPerTick} value of this cloud. The radius is + * reduced per tick (so technically can be set to {@code 0} to have it + * remain permanent until it's effects have been used up. + */ + // @ts-ignore + radiusPerTick(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the bounded {@code durationOnUse} value of this cloud. The duration + * on use is reduced for every time that this cloud applies its + * {@link PotionEffect}s on an {@link Entity}. + */ + // @ts-ignore + durationOnUse(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the bounded {@code applicationDelay} value of this cloud. What this + * means is the application delay between times of application on an + * {@link Entity}. + */ + // @ts-ignore + applicationDelay(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link ListValue} of {@link PotionEffect}s of this cloud. The + * potion effects will affect any {@link Entity} according to the various + * delays and ticks remaining of this cloud. + */ + // @ts-ignore + effects(): org.spongepowered.api.data.value.mutable.ListValue; + /** + * Gets the bounded {@code age} value of this cloud. + */ + // @ts-ignore + age(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ArmorEquipable.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ArmorEquipable.d.ts new file mode 100644 index 00000000..d580b42c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ArmorEquipable.d.ts @@ -0,0 +1,82 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + // @ts-ignore + interface ArmorEquipable extends org.spongepowered.api.entity.Equipable { + /** + * Gets the helmet currently being worn by this entity. + *

Having the helmet as null will result in having nothing equipped in + * the helmet slot.

+ */ + // @ts-ignore + getHelmet(): java.util.Optional; + /** + * Sets the helmet currently being worn by this entity. + *

Having the helmet as null will result in having nothing equipped in + * the helmet slot.

+ */ + // @ts-ignore + setHelmet(helmet: org.spongepowered.api.item.inventory.ItemStack): void; + /** + * Gets the chestplate currently being worn by this entity. + *

Having the chestplate as null will result in having nothing equipped + * in the chestplate slot.

+ */ + // @ts-ignore + getChestplate(): java.util.Optional; + /** + * Sets the chestplate currently being worn by this entity. + *

Having the chestplate as null will result in having nothing equipped + * in the chestplate slot.

+ */ + // @ts-ignore + setChestplate(chestplate: org.spongepowered.api.item.inventory.ItemStack): void; + /** + * Gets the leggings currently being worn by this entity. + *

Having the leggings as null will result in having nothing equipped in + * the leggings slot.

+ */ + // @ts-ignore + getLeggings(): java.util.Optional; + /** + * Sets the leggings currently being worn by this entity. + *

Having the leggings as null will result in having nothing equipped in + * the leggings slot.

+ */ + // @ts-ignore + setLeggings(leggings: org.spongepowered.api.item.inventory.ItemStack): void; + /** + * Gets the boots currently being worn by this entity. + *

Having the boots as null will result in having nothing equipped in the + * boots slot.

+ */ + // @ts-ignore + getBoots(): java.util.Optional; + /** + * Sets the boots currently being worn by this entity. + *

Having the boots as null will result in having nothing equipped in the + * boots slot.

+ */ + // @ts-ignore + setBoots(boots: org.spongepowered.api.item.inventory.ItemStack): void; + /** + * Gets the current equipped item in hand if available. + *

Having the item in hand as null will result in having nothing equipped + * in the item in hand slot.

+ */ + // @ts-ignore + getItemInHand(handType: org.spongepowered.api.data.type.HandType): java.util.Optional; + /** + * Sets the item in hand for this entity. + *

Having the item in hand as null will result in having nothing equipped + * in the item in hand slot.

+ */ + // @ts-ignore + setItemInHand(hand: org.spongepowered.api.data.type.HandType, itemInHand: org.spongepowered.api.item.inventory.ItemStack): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.EnderCrystal.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.EnderCrystal.d.ts new file mode 100644 index 00000000..9ee5007c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.EnderCrystal.d.ts @@ -0,0 +1,12 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + // @ts-ignore + interface EnderCrystal extends org.spongepowered.api.entity.explosive.Explosive { + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.Entity.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.Entity.d.ts new file mode 100644 index 00000000..70da4892 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.Entity.d.ts @@ -0,0 +1,294 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + // @ts-ignore + interface Entity extends org.spongepowered.api.util.Identifiable, org.spongepowered.api.world.Locatable, org.spongepowered.api.data.DataHolder, org.spongepowered.api.text.translation.Translatable { + /** + * Gets the type of entity. + */ + // @ts-ignore + getType(): org.spongepowered.api.entity.EntityType; + /** + * Creates a {@link EntitySnapshot} containing the {@link EntityType} and + * data of this entity. + */ + // @ts-ignore + createSnapshot(): org.spongepowered.api.entity.EntitySnapshot; + /** + * Gets the Random Number Generator (RNG) for this entity. + */ + // @ts-ignore + getRandom(): java.util.Random; + /** + * Sets the location of this entity. This is equivalent to a teleport, and + * also moves this entity's passengers. + */ + // @ts-ignore + setLocation(location: org.spongepowered.api.world.Location): boolean; + /** + * Sets the location of this entity using a safe one from + * {@link TeleportHelper#getSafeLocation(Location)}. This is equivalent to a + * teleport and also moves this entity's passengers. + */ + // @ts-ignore + setLocationSafely(location: org.spongepowered.api.world.Location): boolean; + /** + * Gets the rotation. + *

The format of the rotation is represented by:

+ *

{@code x -> pitch}, {@code y -> yaw}, {@code z -> roll}

+ */ + // @ts-ignore + getRotation(): any /*Vector3d*/; + /** + * Sets the rotation of this entity. + *

The format of the rotation is represented by:

+ *

{@code x -> pitch}, {@code y -> yaw}, {@code z -> roll}

+ */ + // @ts-ignore + setRotation(rotation: any /*Vector3d*/): void; + /** + * Moves the entity to the specified location, and sets the rotation. + *

The format of the rotation is represented by:

+ *

{@code x -> pitch}, {@code y -> yaw}, {@code z -> roll}

+ */ + // @ts-ignore + setLocationAndRotation(location: org.spongepowered.api.world.Location, rotation: any /*Vector3d*/): boolean; + /** + * Moves the entity to the specified location, and sets the rotation. + * {@link RelativePositions} listed inside the EnumSet are considered + * relative. + *

The format of the rotation is represented by:

+ *

{@code x -> pitch}, {@code y -> yaw}, {@code z -> roll}

+ */ + // @ts-ignore + setLocationAndRotation(location: org.spongepowered.api.world.Location, rotation: any /*Vector3d*/, relativePositions: java.util.EnumSet): boolean; + /** + * Sets the location using a safe one from + * {@link TeleportHelper#getSafeLocation(Location)} and the rotation of this + * entity. + *

The format of the rotation is represented by:

+ *

{@code x -> pitch}, {@code y -> yaw}, {@code z -> roll}

+ */ + // @ts-ignore + setLocationAndRotationSafely(location: org.spongepowered.api.world.Location, rotation: any /*Vector3d*/): boolean; + /** + * Sets the location using a safe one from + * {@link TeleportHelper#getSafeLocation(Location)} and the rotation of this + * entity. {@link RelativePositions} listed inside the EnumSet are + * considered relative. + *

The format of the rotation is represented by:

+ *

{@code x -> pitch}, {@code y -> yaw}, {@code z -> roll}

+ */ + // @ts-ignore + setLocationAndRotationSafely(location: org.spongepowered.api.world.Location, rotation: any /*Vector3d*/, relativePositions: java.util.EnumSet): boolean; + /** + * Gets the entity scale. Not currently used. Returns {@link Vector3d#ONE}. + */ + // @ts-ignore + getScale(): any /*Vector3d*/; + /** + * Sets the entity scale. Not currently used. Does nothing. + */ + // @ts-ignore + setScale(scale: any /*Vector3d*/): void; + /** + * Returns the entity transform as a new copy. Combines the position, + * rotation and scale. + */ + // @ts-ignore + getTransform(): org.spongepowered.api.entity.Transform; + /** + * Sets the entity transform. Sets the position, rotation and scale at once. + */ + // @ts-ignore + setTransform(transform: org.spongepowered.api.entity.Transform): boolean; + /** + * Sets the transformation of this entity using a safe location from + * {@link TeleportHelper#getSafeLocation(Location)}. + */ + // @ts-ignore + setTransformSafely(transform: org.spongepowered.api.entity.Transform): boolean; + /** + * Sets the {@link Location} of this entity to the {@link World}'s spawn + * point. + *

This is equivalent to setting the location via + * {@link TargetedLocationData}.

+ */ + // @ts-ignore + transferToWorld(world: org.spongepowered.api.world.World): boolean; + /** + * Sets the {@link Location} of this entity to a new position in a world. + *

This is equivalent to setting the location via + * {@link TargetedLocationData}.

+ */ + // @ts-ignore + transferToWorld(world: org.spongepowered.api.world.World, position: any /*Vector3d*/): boolean; + /** + * Sets the location of this entity to a new position in a world which does + * not have to be loaded (but must at least be enabled). + *

If the target world is loaded then this is equivalent to + * setting the location via {@link TargetedLocationData}.

+ *

If the target world is unloaded but is enabled according to its + * {@link WorldArchetype#isEnabled()} then this will first load the world + * before transferring the entity to that world.

+ *

If the target world is unloaded and not enabled then the transfer + * will fail.

+ */ + // @ts-ignore + transferToWorld(worldName: string, position: any /*Vector3d*/): boolean; + /** + * Sets the location of this entity to a new position in a world which does + * not have to be loaded (but must at least be enabled). + *

If the target world is loaded then this is equivalent to setting the + * location via {@link TargetedLocationData}.

+ *

If the target world is unloaded but is enabled according to its + * {@link WorldArchetype#isEnabled()} then this will first load the world + * before transferring the entity to that world.

+ *

If the target world is unloaded and not enabled then the transfer + * will fail.

+ */ + // @ts-ignore + transferToWorld(uuid: java.util.UUID, position: any /*Vector3d*/): boolean; + /** + * Gets the entity's bounding box, usually for collisions and interaction. + * The box has an offset matching the entity's positions. That is to say, it + * is absolutely positioned and not relative to the entity. + */ + // @ts-ignore + getBoundingBox(): java.util.Optional; + /** + * Gets the entity passenger that rides this entity, if available. + */ + // @ts-ignore + getPassengers(): java.util.List; + /** + * Checks if the given entity is a passenger. + */ + // @ts-ignore + hasPassenger(entity: org.spongepowered.api.entity.Entity): boolean; + /** + * Sets the passenger entity(the entity that rides this one). + */ + // @ts-ignore + addPassenger(entity: org.spongepowered.api.entity.Entity): boolean; + /** + * Removes the given entity as a passenger. + */ + // @ts-ignore + removePassenger(entity: org.spongepowered.api.entity.Entity): void; + /** + * Removes all currently riding passengers from this entity. + */ + // @ts-ignore + clearPassengers(): void; + /** + * Gets the entity vehicle that this entity is riding, if available. + */ + // @ts-ignore + getVehicle(): java.util.Optional; + /** + * Sets the vehicle entity(the entity that is ridden by this one). + */ + // @ts-ignore + setVehicle(entity: org.spongepowered.api.entity.Entity): boolean; + /** + * Gets the entity vehicle that is the base of what ever stack the current + * entity is a part of. This can be the current entity, if it is not riding + * any vehicle. + *

The returned entity can never ride another entity, that would make the + * ridden entity the base of the stack.

+ */ + // @ts-ignore + getBaseVehicle(): org.spongepowered.api.entity.Entity; + /** + * Gets the {@link Vector3d} representation of this entity's current + * velocity. + */ + // @ts-ignore + getVelocity(): any /*Vector3d*/; + /** + * Sets the velocity for this entity. + */ + // @ts-ignore + setVelocity(vector3d: any /*Vector3d*/): org.spongepowered.api.data.DataTransactionResult; + /** + * Returns whether this entity is on the ground (not in the air) or not. + */ + // @ts-ignore + isOnGround(): boolean; + /** + * Returns whether this entity has been removed. + */ + // @ts-ignore + isRemoved(): boolean; + /** + * Returns whether this entity is still loaded in a world/chunk. + */ + // @ts-ignore + isLoaded(): boolean; + /** + * Mark this entity for removal in the very near future, preferably + * within one game tick. + */ + // @ts-ignore + remove(): void; + /** + * Damages this {@link Entity} with the given {@link DamageSource}. + */ + // @ts-ignore + damage(damage: number, damageSource: org.spongepowered.api.event.cause.entity.damage.source.DamageSource): boolean; + /** + * Gets the nearby entities within the desired distance. + */ + // @ts-ignore + getNearbyEntities(distance: number): java.util.Collection; + /** + * Gets the nearby entities that satisfy the desired predicate. + */ + // @ts-ignore + getNearbyEntities(predicate: java.util.function$.Predicate): java.util.Collection; + /** + * Gets the {@link UUID}, if available, of the user who created this + * {@link Entity}. + */ + // @ts-ignore + getCreator(): java.util.Optional; + /** + * Gets the {@link UUID}, if available, of the user who last notified this + * {@link Entity}. + */ + // @ts-ignore + getNotifier(): java.util.Optional; + /** + * Sets the {@link UUID} of the user who created this {@link Entity}. + */ + // @ts-ignore + setCreator(uuid: java.util.UUID): void; + /** + * Sets the {@link UUID} of the user who last notified this {@link Entity}. + */ + // @ts-ignore + setNotifier(uuid: java.util.UUID): void; + /** + * Returns whether this entity can see the provided {@link Entity}. + */ + // @ts-ignore + canSee(entity: org.spongepowered.api.entity.Entity): boolean; + /** + * Creates a new {@link EntityArchetype} for use with {@link Schematic}s and + * placing the archetype in multiple locations. + */ + // @ts-ignore + createArchetype(): org.spongepowered.api.entity.EntityArchetype; + /** + * Returns whether this entity has gravity. + */ + // @ts-ignore + gravity(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.EntityArchetype.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.EntityArchetype.Builder.d.ts new file mode 100644 index 00000000..6a367980 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.EntityArchetype.Builder.d.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace EntityArchetype { + // @ts-ignore + interface Builder extends org.spongepowered.api.data.persistence.DataBuilder { + // @ts-ignore + reset(): org.spongepowered.api.entity.EntityArchetype.Builder; + // @ts-ignore + from(value: org.spongepowered.api.entity.EntityArchetype): org.spongepowered.api.entity.EntityArchetype.Builder; + /** + * Sets all possible bits of information from the provided {@link Entity}. + */ + // @ts-ignore + from(entity: org.spongepowered.api.entity.Entity): org.spongepowered.api.entity.EntityArchetype.Builder; + /** + * Sets the desired {@link EntityType} of the produced {@link EntityArchetype}. + */ + // @ts-ignore + type(type: org.spongepowered.api.entity.EntityType): org.spongepowered.api.entity.EntityArchetype.Builder; + /** + * Sets the desired {@link EntityType} of the produced {@link EntityArchetype}. + */ + // @ts-ignore + entityData(view: org.spongepowered.api.data.DataView): org.spongepowered.api.entity.EntityArchetype.Builder; + /** + * Sets the desired {@link EntityType} of the produced {@link EntityArchetype}. + */ + // @ts-ignore + setData(manipulator: org.spongepowered.api.data.manipulator.DataManipulator): org.spongepowered.api.entity.EntityArchetype.Builder; + /** + * Sets the desired {@link EntityType} of the produced {@link EntityArchetype}. + */ + // @ts-ignore + set(value: org.spongepowered.api.data.value.BaseValue): org.spongepowered.api.entity.EntityArchetype.Builder; + /** + * Sets the desired {@link EntityType} of the produced {@link EntityArchetype}. + */ + // @ts-ignore + set(key: org.spongepowered.api.data.key.Key, value: java.lang.Object): org.spongepowered.api.entity.EntityArchetype.Builder; + /** + * Constructs a new {@link EntityArchetype}. + */ + // @ts-ignore + build(): org.spongepowered.api.entity.EntityArchetype; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.EntityArchetype.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.EntityArchetype.d.ts new file mode 100644 index 00000000..6038913a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.EntityArchetype.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + // @ts-ignore + interface EntityArchetype extends org.spongepowered.api.data.Archetype { + /** + * Creates a {@link Builder} to get {@link EntityArchetype}s. + */ + // @ts-ignore + builder(): org.spongepowered.api.entity.EntityArchetype.Builder; + /** + * Creates a new {@link EntityArchetype} with the specified {@link EntityType}. + */ + // @ts-ignore + of(type: org.spongepowered.api.entity.EntityType): org.spongepowered.api.entity.EntityArchetype; + /** + * Gets the {@link EntityType} of the entity contained in this archetype. + */ + // @ts-ignore + getType(): org.spongepowered.api.entity.EntityType; + /** + * Gets the raw {@link Entity} data that would be applied to the generated + * entity. Note that this is a copied container. + *

Note: While normally, an archetype does not contain position information, + * it is possible that {@link Queries#POSITION} are included as required by + * {@link Schematic}s. + *

+ */ + // @ts-ignore + getEntityData(): org.spongepowered.api.data.DataContainer; + // @ts-ignore + setRawData(container: org.spongepowered.api.data.DataView): void; + // @ts-ignore + copy(): org.spongepowered.api.entity.EntityArchetype; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.EntitySnapshot.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.EntitySnapshot.Builder.d.ts new file mode 100644 index 00000000..23594aa2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.EntitySnapshot.Builder.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace EntitySnapshot { + // @ts-ignore + interface Builder extends org.spongepowered.api.data.ImmutableDataBuilder { + /** + * Sets the {@link WorldProperties} for this {@link EntitySnapshot}. + *

This is used to grab the {@link UUID} of the World for this + * snapshot.

+ */ + // @ts-ignore + world(worldProperties: org.spongepowered.api.world.storage.WorldProperties): org.spongepowered.api.entity.EntitySnapshot.Builder; + /** + * Sets the {@link EntityType} for this {@link EntitySnapshot}. + */ + // @ts-ignore + type(entityType: org.spongepowered.api.entity.EntityType): org.spongepowered.api.entity.EntitySnapshot.Builder; + /** + * Sets the coordinates of this {@link EntitySnapshot} from a + * {@link Vector3i}. + */ + // @ts-ignore + position(position: any /*Vector3d*/): org.spongepowered.api.entity.EntitySnapshot.Builder; + /** + * Copies over data from an {@link Entity}. + */ + // @ts-ignore + from(entity: org.spongepowered.api.entity.Entity): org.spongepowered.api.entity.EntitySnapshot.Builder; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.EntitySnapshot.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.EntitySnapshot.d.ts new file mode 100644 index 00000000..f8b781c8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.EntitySnapshot.d.ts @@ -0,0 +1,52 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + // @ts-ignore + interface EntitySnapshot extends org.spongepowered.api.data.LocatableSnapshot { + /** + * Creates a new {@link Builder} to build an {@link EntitySnapshot}. + */ + // @ts-ignore + builder(): org.spongepowered.api.entity.EntitySnapshot.Builder; + /** + * Gets an {@link Optional} containing the {@link UUID} of the + * {@link Entity} that this {@link EntitySnapshot} is representing. If the + * {@link Optional} is {@link Optional#empty()}, then this snapshot must + * have been created by an {@link Builder} without an {@link Entity} as a + * source. + */ + // @ts-ignore + getUniqueId(): java.util.Optional; + /** + * Gets the {@link Transform} as an {@link Optional} as the {@link Location} + * may be undefined if this {@link EntitySnapshot} was built without a + * location. This method is linked to {@link #getLocation()} such that if + * there is a {@link Location}, there is usually a {@link Transform}. + */ + // @ts-ignore + getTransform(): java.util.Optional; + /** + * Gets the {@link EntityType}. + */ + // @ts-ignore + getType(): org.spongepowered.api.entity.EntityType; + /** + * Restores the {@link EntitySnapshot} to the {@link Location} stored within + * the snapshot. If the {@link Location} is not available, the snapshot will + * not be restored. + */ + // @ts-ignore + restore(): java.util.Optional; + /** + * Creates a new {@link EntityArchetype} for use with {@link Schematic}s and + * placing the archetype in multiple locations. + */ + // @ts-ignore + createArchetype(): org.spongepowered.api.entity.EntityArchetype; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.EntityType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.EntityType.d.ts new file mode 100644 index 00000000..5695f1c4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.EntityType.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + // @ts-ignore + interface EntityType extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + /** + * Returns the entity class for this type. + */ + // @ts-ignore + getEntityClass(): java.lang.Class; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.EntityTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.EntityTypes.d.ts new file mode 100644 index 00000000..2c09a62a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.EntityTypes.d.ts @@ -0,0 +1,192 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + // @ts-ignore + class EntityTypes extends java.lang.Object { + // @ts-ignore + public static AREA_EFFECT_CLOUD: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static ARMOR_STAND: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static BAT: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static BLAZE: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static BOAT: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static CAVE_SPIDER: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static CHESTED_MINECART: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static CHICKEN: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static COMMANDBLOCK_MINECART: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static COMPLEX_PART: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static COW: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static CREEPER: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static DONKEY: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static DRAGON_FIREBALL: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static EGG: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static ELDER_GUARDIAN: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static ENDERMAN: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static ENDERMITE: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static ENDER_CRYSTAL: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static ENDER_DRAGON: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static ENDER_PEARL: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static EVOCATION_FANGS: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static EVOCATION_ILLAGER: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static EXPERIENCE_ORB: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static EYE_OF_ENDER: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static FALLING_BLOCK: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static FIREBALL: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static FIREWORK: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static FISHING_HOOK: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static FURNACE_MINECART: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static GHAST: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static GIANT: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static GUARDIAN: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static HOPPER_MINECART: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static HORSE: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static HUMAN: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static HUSK: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static ILLUSION_ILLAGER: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static IRON_GOLEM: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static ITEM: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static ITEM_FRAME: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static LEASH_HITCH: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static LIGHTNING: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static LLAMA: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static LLAMA_SPIT: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static MAGMA_CUBE: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static MOB_SPAWNER_MINECART: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static MULE: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static MUSHROOM_COW: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static OCELOT: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static PAINTING: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static PARROT: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static PIG: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static PIG_ZOMBIE: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static PLAYER: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static POLAR_BEAR: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static PRIMED_TNT: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static RABBIT: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static RIDEABLE_MINECART: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static SHEEP: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static SHULKER: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static SHULKER_BULLET: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static SILVERFISH: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static SKELETON: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static SKELETON_HORSE: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static SLIME: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static SMALL_FIREBALL: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static SNOWBALL: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static SNOWMAN: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static SPECTRAL_ARROW: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static SPIDER: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static SPLASH_POTION: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static SQUID: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static STRAY: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static THROWN_EXP_BOTTLE: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static TIPPED_ARROW: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static TNT_MINECART: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static UNKNOWN: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static VEX: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static VILLAGER: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static VINDICATION_ILLAGER: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static WEATHER: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static WITCH: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static WITHER: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static WITHER_SKELETON: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static WITHER_SKULL: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static WOLF: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static ZOMBIE: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static ZOMBIE_HORSE: org.spongepowered.api.entity.EntityType; + // @ts-ignore + public static ZOMBIE_VILLAGER: org.spongepowered.api.entity.EntityType; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.Equipable.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.Equipable.d.ts new file mode 100644 index 00000000..006c2f0b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.Equipable.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + // @ts-ignore + interface Equipable extends org.spongepowered.api.util.Identifiable, org.spongepowered.api.item.inventory.Carrier { + /** + * Gets whether this entity can equip equipment of the specified type (eg. + * whether calling {@link #equip} will fail because the entity doesn't + * have this type of slot. + */ + // @ts-ignore + canEquip(type: org.spongepowered.api.item.inventory.equipment.EquipmentType): boolean; + /** + * Gets whether this entity can equip the supplied equipment in its slot of + * the specified type (eg. whether calling {@link #equip} with the specified + * slot type and item will succeed) + */ + // @ts-ignore + canEquip(type: org.spongepowered.api.item.inventory.equipment.EquipmentType, equipment: org.spongepowered.api.item.inventory.ItemStack): boolean; + /** + * Gets the item currently equipped by this entity in the specified slot. + */ + // @ts-ignore + getEquipped(type: org.spongepowered.api.item.inventory.equipment.EquipmentType): java.util.Optional; + /** + * Sets the item currently equipped by the entity in the specified slot, if + * the entity has such a slot. + *

Supplying null will unequip any currently equipped item.

+ */ + // @ts-ignore + equip(type: org.spongepowered.api.item.inventory.equipment.EquipmentType, equipment: org.spongepowered.api.item.inventory.ItemStack): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ExperienceOrb.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ExperienceOrb.d.ts new file mode 100644 index 00000000..c4f814b0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ExperienceOrb.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + // @ts-ignore + interface ExperienceOrb extends org.spongepowered.api.entity.Entity { + /** + * Gets a copy of the {@link ExpOrbData} associated with this + * {@link ExperienceOrb}. + */ + // @ts-ignore + experienceHeld(): org.spongepowered.api.data.manipulator.mutable.entity.ExpOrbData; + /** + * Gets the {@link Value} for the amount of "experience" stored. + */ + // @ts-ignore + experience(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.FallingBlock.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.FallingBlock.d.ts new file mode 100644 index 00000000..e1deb268 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.FallingBlock.d.ts @@ -0,0 +1,55 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + // @ts-ignore + interface FallingBlock extends org.spongepowered.api.entity.Entity { + /** + * Gets a copy of the currently used {@link FallingBlockData}. + */ + // @ts-ignore + getFallingBlockData(): org.spongepowered.api.data.manipulator.mutable.entity.FallingBlockData; + /** + * Gets the {@link Value} for the damage to deal per block the + * {@link FallingBlock} has fallen. + */ + // @ts-ignore + fallDamagePerBlock(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the maximum damage the {@link FallingBlock} can deal to another + * entity for falling on the entity. + */ + // @ts-ignore + maxFallDamage(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link BlockState} the falling block is representing. + */ + // @ts-ignore + blockState(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets whether this falling block will try to place itself where it lands. + */ + // @ts-ignore + canPlaceAsBlock(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets whether this falling block can drop as an item if it lands in a way + * that it can not be placed. + */ + // @ts-ignore + canDropAsItem(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the time the block has been falling. Defaults to a value of 1. + */ + // @ts-ignore + fallTime(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets whether this falling block will damage entities where it lands. + */ + // @ts-ignore + canHurtEntities(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.Item.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.Item.d.ts new file mode 100644 index 00000000..9826b35b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.Item.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + // @ts-ignore + interface Item extends org.spongepowered.api.entity.Entity { + /** + * Gets a copy of the current {@link RepresentedItemData} this item is + * representing. + */ + // @ts-ignore + getItemData(): org.spongepowered.api.data.manipulator.mutable.RepresentedItemData; + /** + * Gets the {@link Value} for the represented {@link ItemStack} as + * an {@link ItemStackSnapshot}. + */ + // @ts-ignore + item(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link ItemType} represented by this {@link Item} entity. + */ + // @ts-ignore + getItemType(): org.spongepowered.api.item.ItemType; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ShulkerBullet.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ShulkerBullet.d.ts new file mode 100644 index 00000000..cae61ed9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ShulkerBullet.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + // @ts-ignore + interface ShulkerBullet extends org.spongepowered.api.entity.projectile.EntityTargetingProjectile, org.spongepowered.api.entity.projectile.DamagingProjectile { + /** + * Gets a copy of the {@link DirectionalData} being used for this + * {@link ShulkerBullet} entity. + */ + // @ts-ignore + getDirectionalData(): org.spongepowered.api.data.manipulator.mutable.block.DirectionalData; + /** + * Gets the {@link Value} for the current direction this + * {@link ShulkerBullet} is going to. + */ + // @ts-ignore + direction(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.Tamer.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.Tamer.d.ts new file mode 100644 index 00000000..477f829d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.Tamer.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + // @ts-ignore + interface Tamer extends org.spongepowered.api.util.Identifiable { + /** + * Gets the name of this tamer to reference on tamed entities. + */ + // @ts-ignore + getName(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.Transform.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.Transform.d.ts new file mode 100644 index 00000000..bbada4d3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.Transform.d.ts @@ -0,0 +1,212 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + // @ts-ignore + class Transform extends java.lang.Object { + /** + * Creates a new {@link Transform} based on the provided {@link Location}. + */ + // @ts-ignore + constructor(location: org.spongepowered.api.world.Location) + /** + * Creates a new {@link Transform} with the provided {@link Extent extent}. + * The default position is {@link Vector3d#ZERO}. + */ + // @ts-ignore + constructor(extent: org.spongepowered.api.world.extent.Extent) + /** + * Creates a new {@link Transform} with the provided {@link Extent extent} + * and {@link Vector3d position}. + */ + // @ts-ignore + constructor(extent: org.spongepowered.api.world.extent.Extent, position: any /*Vector3d*/) + /** + * Creates a new {@link Transform} with the provided {@link Extent extent}, + * {@link Vector3d position}, and {@link Vector3d rotation}. + */ + // @ts-ignore + constructor(extent: org.spongepowered.api.world.extent.Extent, position: any /*Vector3d*/, rotation: any /*Vector3d*/) + /** + * Creates a new {@link Transform} with the provided {@link Location}, + * {@link Vector3d rotation}, and {@link Vector3d scale}. + */ + // @ts-ignore + constructor(location: org.spongepowered.api.world.Location, rotation: any /*Vector3d*/, scale: any /*Vector3d*/) + /** + * Creates a new {@link Transform}. + */ + // @ts-ignore + constructor(extent: org.spongepowered.api.world.extent.Extent, position: any /*Vector3d*/, rotation: any /*Vector3d*/, scale: any /*Vector3d*/) + /** + * Gets the {@link Location} this transform contains. This is the position + * and the extent. + */ + // @ts-ignore + public getLocation(): org.spongepowered.api.world.Location; + /** + * Creates a copy of this transform and sets the {@link Location}. This sets + * both the position and the extent. + */ + // @ts-ignore + public setLocation(location: org.spongepowered.api.world.Location): org.spongepowered.api.entity.Transform; + /** + * Gets the {@link Extent} this transform contains. + *

Note: This can be null if the {@link Extent} is unloaded and garbage + * collected.

+ */ + // @ts-ignore + public getExtent(): org.spongepowered.api.world.extent.Extent; + /** + * Creates a copy of this transform and sets the {@link Extent}. + */ + // @ts-ignore + public setExtent(extent: org.spongepowered.api.world.extent.Extent): org.spongepowered.api.entity.Transform; + /** + * Gets the coordinates of this transform. + */ + // @ts-ignore + public getPosition(): any /*Vector3d*/; + /** + * Creates a copy of this transform while setting the position of the new + * one. + */ + // @ts-ignore + public setPosition(position: any /*Vector3d*/): org.spongepowered.api.entity.Transform; + /** + * Gets the rotation of this transform, as a {@link Vector3d}. + *

The format of the rotation is represented by:

+ *
    + *
  • x -> pitch
  • + *
  • y -> yaw
  • + *
  • z -> roll
  • + *
+ */ + // @ts-ignore + public getRotation(): any /*Vector3d*/; + /** + * Creates a copy of this transform and sets the rotation. + *

The format of the rotation is represented by:

+ *
    + *
  • x -> pitch
  • + *
  • y -> yaw
  • + *
  • z -> roll
  • + *
+ */ + // @ts-ignore + public setRotation(rotation: any /*Quaterniond*/): org.spongepowered.api.entity.Transform; + /** + * Creates a copy of this transform and sets the rotation as a quaternion. + *

Quaternions are objectively better than the Euler angles preferred by + * Minecraft. This is for compatibility with the flow-math library.

+ */ + // @ts-ignore + public setRotation(rotation: any /*Vector3d*/): org.spongepowered.api.entity.Transform; + /** + * Returns the rotation as a quaternion. + *

Quaternions are objectively better than the Euler angles preferred by + * Minecraft. This is for compatibility with the flow-math library.

+ */ + // @ts-ignore + public getRotationAsQuaternion(): any /*Quaterniond*/; + /** + * Gets the pitch component of this transform rotation. + */ + // @ts-ignore + public getPitch(): number; + /** + * Gets the yaw component of this transform rotation. + */ + // @ts-ignore + public getYaw(): number; + /** + * Gets the roll component of this transform rotation. + */ + // @ts-ignore + public getRoll(): number; + /** + * Gets the scale of the transform for each axis. + */ + // @ts-ignore + public getScale(): any /*Vector3d*/; + /** + * Creates a copy of this transform and sets the scale for each axis. + */ + // @ts-ignore + public setScale(scale: any /*Vector3d*/): org.spongepowered.api.entity.Transform; + /** + * "Adds" another transform to this one. This is equivalent to adding the + * translation, rotation and scale individually. + *

Returns the results as a new copy.

+ */ + // @ts-ignore + public add(other: org.spongepowered.api.entity.Transform): org.spongepowered.api.entity.Transform; + /** + * Adds a translation to this transform. + *

Returns the results as a new copy.

+ */ + // @ts-ignore + public addTranslation(translation: any /*Vector3d*/): org.spongepowered.api.entity.Transform; + /** + * Adds a rotation to this transform. Returns the results as a new copy. + */ + // @ts-ignore + public addRotation(rotation: any /*Vector3d*/): org.spongepowered.api.entity.Transform; + /** + * Adds a rotation to this transform. + *

Quaternions are objectively better than the Euler angles preferred by + * Minecraft. This is the preferred method when dealing with rotation + * additions. This is for compatibility with the flow-math library.

+ *

Returns the results as a new copy.

+ */ + // @ts-ignore + public addRotation(rotation: any /*Quaterniond*/): org.spongepowered.api.entity.Transform; + /** + * "Adds" a scale to this transform. Scales are multiplicative, so this + * actually multiplies the current scale. + *

Returns the results as a new copy.

+ */ + // @ts-ignore + public addScale(scale: any /*Vector3d*/): org.spongepowered.api.entity.Transform; + /** + * Returns a matrix representation of this transform. + *

This includes the position, rotation and scale. To apply the transform + * to a vector, use the following:

+ *
Vector3d original = ...;
+ * Transform transform = ...;

+ * Vector3d transformed = + * transform.toMatrix().transform(original.toVector4(1)).toVector3();
+ * }
+ *

This converts the original 3D vector to 4D by appending 1 as the w + * coordinate, applies the transformation, then converts it back to 3D by + * dropping the w coordinate.

+ *

Using a 4D matrix and a w coordinate with value 1 is what allows for + * the position to be included in the transformation applied by the matrix. + *

+ */ + // @ts-ignore + public toMatrix(): any /*Matrix4d*/; + /** + * Returns if this {@link Transform} is still valid. + *

Examples of invalid Transforms are:

+ *
    + *
  • A Transform without an {@link Extent}
  • + *
  • A Transform whose {@link Extent} object is no longer present
  • + *
  • A Transform whose coordinates are illegal (defined by the + * implementation)
  • + *
+ */ + // @ts-ignore + public isValid(): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(other: java.lang.Object): boolean; + // @ts-ignore + public toString(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.Goal.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.Goal.d.ts new file mode 100644 index 00000000..17f94ad0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.Goal.d.ts @@ -0,0 +1,56 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + // @ts-ignore + interface Goal { + /** + * The type of this goal. + */ + // @ts-ignore + getType(): org.spongepowered.api.entity.ai.GoalType; + /** + * The {@link Agent} that owns this goal. + */ + // @ts-ignore + getOwner(): org.spongepowered.api.entity.living.Agent; + /** + * Adds a new {@link AITask} to this goal. + */ + // @ts-ignore + addTask(priority: number, task: org.spongepowered.api.entity.ai.task.AITask): org.spongepowered.api.entity.ai.Goal; + /** + * Removes a specific {@link AITask} from this goal. + */ + // @ts-ignore + removeTask(task: org.spongepowered.api.entity.ai.task.AITask): org.spongepowered.api.entity.ai.Goal; + /** + * Removes all {@link AITask}s whose {@link AITaskType} matches + * the provided type. + */ + // @ts-ignore + removeTasks(type: org.spongepowered.api.entity.ai.task.AITaskType): org.spongepowered.api.entity.ai.Goal; + /** + * Gets all {@link AITask}s whose {@link AITaskType} matches + * the provided type. + */ + // @ts-ignore + getTasksByType(type: org.spongepowered.api.entity.ai.task.AITaskType): java.util.List; + /** + * Gets all {@link AITask}s in this goal. + */ + // @ts-ignore + getTasks(): java.util.List; + /** + * Clears all {@link AITask}s from this goal. + */ + // @ts-ignore + clear(): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.GoalType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.GoalType.d.ts new file mode 100644 index 00000000..e4ed9341 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.GoalType.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + // @ts-ignore + interface GoalType extends org.spongepowered.api.CatalogType { + /** + * Gets the {@link Goal} class that this type represents. + */ + // @ts-ignore + getGoalClass(): java.lang.Class; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.GoalTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.GoalTypes.d.ts new file mode 100644 index 00000000..f72e971c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.GoalTypes.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + // @ts-ignore + class GoalTypes extends java.lang.Object { + // @ts-ignore + public static NORMAL: org.spongepowered.api.entity.ai.GoalType; + // @ts-ignore + public static TARGET: org.spongepowered.api.entity.ai.GoalType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.AITask.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.AITask.d.ts new file mode 100644 index 00000000..0d43c282 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.AITask.d.ts @@ -0,0 +1,67 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + // @ts-ignore + interface AITask { + /** + * Gets the {@link AITaskType} of this task. + */ + // @ts-ignore + getType(): org.spongepowered.api.entity.ai.task.AITaskType; + /** + * Gets the {@link Goal} that is updating this task, if any. + */ + // @ts-ignore + getGoal(): java.util.Optional; + /** + * Gets the {@link Agent} that owns this task, if any. + */ + // @ts-ignore + getOwner(): java.util.Optional; + /** + * Tests if the provided {@link AITask} is allowed to be ran concurrently + * with this task. + *

This plays a role in determining if tasks should be updated or not. + * If this method + * is being called on this task, that means:

+ *
    + *
  1. This task has higher priority than the provided task for our + * {@link AITask#getGoal()}.
  2. + *
  3. Returning "false" will remove the provided task from the list of + * updated tasks, if not + * there already.
  4. + *
  5. Returning "true" will add the provided task to the list of updated + * tasks, if not there + * already.
  6. + *
+ */ + // @ts-ignore + canRunConcurrentWith(other: org.spongepowered.api.entity.ai.task.AITask): boolean; + /** + * Returns if this task can be interrupted. This determines if this task + * can be added to the list of updated tasks as well as if it should + * continue updating. + *

Thought should be made before blindly returning true or false here. + * In Minecraft, all tasks can be interrupted by higher priority tasks + * (tasks added with lower numerical values in + * {@link Goal#addTask(int, AITask)}) but a task being created by a plugin + * might be deemed critical and as such should return false.

+ *

Due note that the meaning of "true" changes based on the state of the + * {@link Goal}. To put it simply, this value can mean "Should I be added + * as an updating task or "Should I continue updating?". Regardless of the + * question, the next step that happens is transferring from this method to + * {@link AITask#canRunConcurrentWith(AITask)} in the next AI tick loop.

+ */ + // @ts-ignore + canBeInterrupted(): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.AITaskBuilder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.AITaskBuilder.d.ts new file mode 100644 index 00000000..ae4f2030 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.AITaskBuilder.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + // @ts-ignore + interface AITaskBuilder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Builds the {@link AITask}. + */ + // @ts-ignore + build(owner: org.spongepowered.api.entity.living.Agent): org.spongepowered.api.entity.ai.task.AITask; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.AITaskType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.AITaskType.d.ts new file mode 100644 index 00000000..4a30091c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.AITaskType.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + // @ts-ignore + interface AITaskType extends org.spongepowered.api.CatalogType { + /** + * Gets the {@link AITask} class that this type represents. + */ + // @ts-ignore + getAIClass(): java.lang.Class; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.AITaskTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.AITaskTypes.d.ts new file mode 100644 index 00000000..0680196b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.AITaskTypes.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + // @ts-ignore + class AITaskTypes extends java.lang.Object { + // @ts-ignore + public static AVOID_ENTITY: org.spongepowered.api.entity.ai.task.AITaskType; + // @ts-ignore + public static RUN_AROUND_LIKE_CRAZY: org.spongepowered.api.entity.ai.task.AITaskType; + // @ts-ignore + public static SWIMMING: org.spongepowered.api.entity.ai.task.AITaskType; + // @ts-ignore + public static WANDER: org.spongepowered.api.entity.ai.task.AITaskType; + // @ts-ignore + public static WATCH_CLOSEST: org.spongepowered.api.entity.ai.task.AITaskType; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.AbstractAITask.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.AbstractAITask.d.ts new file mode 100644 index 00000000..f2aed4f7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.AbstractAITask.d.ts @@ -0,0 +1,66 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + // @ts-ignore + abstract class AbstractAITask extends java.lang.Object implements org.spongepowered.api.entity.ai.task.AITask { + /** + * Creates a new {@link AbstractAITask} with the provided + * {@link AITask}. + */ + // @ts-ignore + constructor(type: org.spongepowered.api.entity.ai.task.AITaskType) + // @ts-ignore + public getType(): org.spongepowered.api.entity.ai.task.AITaskType; + // @ts-ignore + public getGoal(): java.util.Optional; + /** + * Invoked when the task is "started". A "start" of a task occurs at the + * "start" of the "AI" is "ticking". Depending on the case where + * {@link #shouldUpdate()} returns {@code false}, an {@link AITask} is + * NOT going to be called, so this method would not be + * called at the "start" of the tick to "prepare" for {@link #update()}. + */ + // @ts-ignore + public abstract start(): void; + /** + * Determines whether this {@link AITask} should be considered for "ticking" + * or {@link #start()}, {@link #update()}, and {@link #reset()} are called + * for that "AI" tick. + */ + // @ts-ignore + public abstract shouldUpdate(): boolean; + /** + * Performs any customary logic for this "task" to modify the parent + * {@link Agent} in any way, including navigation, health, potion effects, + * etc. Only called when {@link #shouldUpdate()} returns {@code true}, + * and after {@link #start()} has completed. Likewise, if + * {@link #continueUpdating()} + */ + // @ts-ignore + public abstract update(): void; + /** + * Called to verify that this {@link AITask} needs to {@link #update()} + * in this tick. If this returns {@code false}, this {@link AITask} + * is removed from use and {@link #reset()} is called. + */ + // @ts-ignore + public abstract continueUpdating(): boolean; + /** + * Performs any reset necessary for this task during the current tick. + *

Note that this may be called during any state during {@link #start()} + * or {@link #update()} such that the task is removed from use for the + * current "AI" tick.

+ */ + // @ts-ignore + public abstract reset(): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.LookIdleAITask.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.LookIdleAITask.Builder.d.ts new file mode 100644 index 00000000..46acfeb0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.LookIdleAITask.Builder.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace LookIdleAITask { + // @ts-ignore + interface Builder extends org.spongepowered.api.entity.ai.task.AITaskBuilder { + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.LookIdleAITask.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.LookIdleAITask.d.ts new file mode 100644 index 00000000..6b9b47f3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.LookIdleAITask.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + // @ts-ignore + interface LookIdleAITask extends org.spongepowered.api.entity.ai.task.AITask { + /** + * Creates a new {@link Builder} to build a new {@link LookIdleAITask}. + */ + // @ts-ignore + builder(): org.spongepowered.api.entity.ai.task.builtin.LookIdleAITask.Builder; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.SwimmingAITask.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.SwimmingAITask.Builder.d.ts new file mode 100644 index 00000000..71ee8958 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.SwimmingAITask.Builder.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace SwimmingAITask { + // @ts-ignore + interface Builder extends org.spongepowered.api.entity.ai.task.AITaskBuilder { + // @ts-ignore + swimChance(chance: number): org.spongepowered.api.entity.ai.task.builtin.SwimmingAITask.Builder; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.SwimmingAITask.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.SwimmingAITask.d.ts new file mode 100644 index 00000000..7b21e760 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.SwimmingAITask.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + // @ts-ignore + interface SwimmingAITask extends org.spongepowered.api.entity.ai.task.AITask { + /** + * Creates a new {@link Builder} to build a new + * {@link SwimmingAITask}. + */ + // @ts-ignore + builder(): org.spongepowered.api.entity.ai.task.builtin.SwimmingAITask.Builder; + /** + * Gets the chance that the owning {@link Agent} will perform + * a "jump". The chance is limited between {@code 0} and {@code 1}, + * to where the higher the chance, the more likely the entity will + * "jump" to appear "swimming". + */ + // @ts-ignore + getSwimChance(): number; + /** + * Sets the chance that the owning {@link Agent} will perform + * a "jump". The chance is limited between {@code 0} and {@code 1}, + * to where the higher the chance, the more likely the entity will + * "jump" to appear "swimming". + */ + // @ts-ignore + setSwimChance(chance: number): void; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.WatchClosestAITask.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.WatchClosestAITask.Builder.d.ts new file mode 100644 index 00000000..260f543d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.WatchClosestAITask.Builder.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace WatchClosestAITask { + // @ts-ignore + interface Builder extends org.spongepowered.api.entity.ai.task.AITaskBuilder { + // @ts-ignore + watch(watchClass: java.lang.Class): org.spongepowered.api.entity.ai.task.builtin.WatchClosestAITask.Builder; + // @ts-ignore + maxDistance(maxDistance: number): org.spongepowered.api.entity.ai.task.builtin.WatchClosestAITask.Builder; + // @ts-ignore + chance(chance: number): org.spongepowered.api.entity.ai.task.builtin.WatchClosestAITask.Builder; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.WatchClosestAITask.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.WatchClosestAITask.d.ts new file mode 100644 index 00000000..b65b4401 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.WatchClosestAITask.d.ts @@ -0,0 +1,57 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + // @ts-ignore + interface WatchClosestAITask extends org.spongepowered.api.entity.ai.task.AITask { + /** + * Creates a new {@link Builder} to build a new + * {@link WatchClosestAITask}. + */ + // @ts-ignore + builder(): org.spongepowered.api.entity.ai.task.builtin.WatchClosestAITask.Builder; + /** + * Gets the {@link Class} of the {@link Entity} type to "stare" or + * "watch" when that type of entity is nearby. + */ + // @ts-ignore + getWatchedClass(): java.lang.Class; + /** + * Sets the {@link Class} of the {@link Entity} type to "stare" or + * "watch" when that type of entity is nearby. + */ + // @ts-ignore + setWatchedClass(watchedClass: java.lang.Class): org.spongepowered.api.entity.ai.task.builtin.WatchClosestAITask; + /** + * Gets the maximum distance to "watch" a targeted {@link Entity}. + */ + // @ts-ignore + getMaxDistance(): number; + /** + * Sets the maximum distance to "watch" a targeted {@link Entity}. + */ + // @ts-ignore + setMaxDistance(maxDistance: number): org.spongepowered.api.entity.ai.task.builtin.WatchClosestAITask; + /** + * Gets the chance that an {@link Entity} will "watch" a targeted + * {@link Entity}. + */ + // @ts-ignore + getChance(): number; + /** + * SEts the chance to "watch" a targeted {@link Entity}. + */ + // @ts-ignore + setChance(chance: number): org.spongepowered.api.entity.ai.task.builtin.WatchClosestAITask; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.AttackLivingAITask.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.AttackLivingAITask.Builder.d.ts new file mode 100644 index 00000000..f284aa25 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.AttackLivingAITask.Builder.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace creature { + namespace AttackLivingAITask { + // @ts-ignore + interface Builder extends org.spongepowered.api.entity.ai.task.AITaskBuilder { + /** + * Sets the speed modifier at which the owning {@link Agent} will be + * moving towards a targeted {@link Entity}. + */ + // @ts-ignore + speed(speed: number): org.spongepowered.api.entity.ai.task.builtin.creature.AttackLivingAITask.Builder; + /** + * Sets whether the task will force the owning {@link Agent} to + * persist targeting an {@link Entity} after a direct path is + * no longer available. + */ + // @ts-ignore + longMemory(): org.spongepowered.api.entity.ai.task.builtin.creature.AttackLivingAITask.Builder; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.AttackLivingAITask.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.AttackLivingAITask.d.ts new file mode 100644 index 00000000..46283f25 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.AttackLivingAITask.d.ts @@ -0,0 +1,55 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace creature { + // @ts-ignore + interface AttackLivingAITask extends org.spongepowered.api.entity.ai.task.AITask { + /** + * Creates a new {@link Builder} to build a new + * {@link AttackLivingAITask}. + */ + // @ts-ignore + builder(): org.spongepowered.api.entity.ai.task.builtin.creature.AttackLivingAITask.Builder; + /** + * Gets the "movement" speed modifier when targeting towards a + * targeted {@link Entity}. + */ + // @ts-ignore + getSpeed(): number; + /** + * Sets the movement speed modifier when the parent {@link Creature} + * is targeting an {@link Entity}. + */ + // @ts-ignore + setSpeed(speed: number): org.spongepowered.api.entity.ai.task.builtin.creature.AttackLivingAITask; + /** + * Gets whether the navigator will attempt to continue to "target" + * an {@link Entity} after certain circumstances have been met, + * sometimes whether a targeted {@link Entity} has moved too far away, + * moved to where there is an obstacle between the parent and the + * targeted entity, etc. + */ + // @ts-ignore + hasLongMemory(): boolean; + /** + * Sets whether the task will continue to navigate the parent + * {@link Agent} to continue targeting an {@link Entity} after the + * entity has moved to where a direct navigation path is no longer + * available. + */ + // @ts-ignore + setLongMemory(longMemory: boolean): org.spongepowered.api.entity.ai.task.builtin.creature.AttackLivingAITask; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.AvoidEntityAITask.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.AvoidEntityAITask.Builder.d.ts new file mode 100644 index 00000000..9671f5b1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.AvoidEntityAITask.Builder.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace creature { + namespace AvoidEntityAITask { + // @ts-ignore + interface Builder extends org.spongepowered.api.entity.ai.task.AITaskBuilder { + /** + * Sets the {@link Predicate} for filtering which {@link Entity} instances + * are considered to be "avoided" by the owning {@link Agent}. + */ + // @ts-ignore + targetSelector(predicate: java.util.function$.Predicate): org.spongepowered.api.entity.ai.task.builtin.creature.AvoidEntityAITask.Builder; + /** + * Sets the search distance at which any {@link Entity} instances in a + * radius of the parent {@link Agent} are considered for avoiding. + */ + // @ts-ignore + searchDistance(distance: number): org.spongepowered.api.entity.ai.task.builtin.creature.AvoidEntityAITask.Builder; + /** + * Sets the peed "modifier" for which the parent {@link Agent} will + * move away from a found {@link Entity} to "avoid" when in close + * range. Close range is currently defined as {@code 7} blocks. + */ + // @ts-ignore + closeRangeSpeed(speed: number): org.spongepowered.api.entity.ai.task.builtin.creature.AvoidEntityAITask.Builder; + /** + * Sets the close range speed "modifier" for which the parent {@link Agent} + * will move away from a found {@link Entity} to "avoid" when in + * a farther range than 7 blocks. + */ + // @ts-ignore + farRangeSpeed(speed: number): org.spongepowered.api.entity.ai.task.builtin.creature.AvoidEntityAITask.Builder; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.AvoidEntityAITask.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.AvoidEntityAITask.d.ts new file mode 100644 index 00000000..eb937f2d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.AvoidEntityAITask.d.ts @@ -0,0 +1,79 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace creature { + // @ts-ignore + interface AvoidEntityAITask extends org.spongepowered.api.entity.ai.task.AITask { + /** + * Creates a new {@link Builder} for creating a new {@link AvoidEntityAITask}. + */ + // @ts-ignore + builder(): org.spongepowered.api.entity.ai.task.builtin.creature.AvoidEntityAITask.Builder; + /** + * Gets the {@link Predicate} for filtering which {@link Entity} instances + * are qualified to have the owning {@link Agent} move away from the + * {@link Entity} of which the {@link Predicate#test(Object)} returns + * {@code true}. + */ + // @ts-ignore + getTargetSelector(): java.util.function$.Predicate; + /** + * Sets the {@link Predicate} for filtering which {@link Entity} instances + * are considered to be "avoided" by the owning {@link Agent}. + */ + // @ts-ignore + setTargetSelector(predicate: java.util.function$.Predicate): org.spongepowered.api.entity.ai.task.builtin.creature.AvoidEntityAITask; + /** + * Gets the search distance at which any {@link Entity} instances in a + * radius of the parent {@link Agent} are considered for avoiding. + */ + // @ts-ignore + getSearchDistance(): number; + /** + * Sets the search distance at which any {@link Entity} instances in a + * radius of the parent {@link Agent} are considered for avoiding. + */ + // @ts-ignore + setSearchDistance(distance: number): org.spongepowered.api.entity.ai.task.builtin.creature.AvoidEntityAITask; + /** + * Gets the speed "modifier" for which the parent {@link Agent} will + * move away from a found {@link Entity} to "avoid" when in close + * range. Close range is currently defined as {@code 7} blocks. + */ + // @ts-ignore + getCloseRangeSpeed(): number; + /** + * Sets the peed "modifier" for which the parent {@link Agent} will + * move away from a found {@link Entity} to "avoid" when in close + * range. Close range is currently defined as {@code 7} blocks. + */ + // @ts-ignore + setCloseRangeSpeed(speed: number): org.spongepowered.api.entity.ai.task.builtin.creature.AvoidEntityAITask; + /** + * Gets the close range speed "modifier" for which the parent {@link Agent} + * will move away from a found {@link Entity} to "avoid" when in + * a farther range than 7 blocks. + */ + // @ts-ignore + getFarRangeSpeed(): number; + /** + * Sets the close range speed "modifier" for which the parent {@link Agent} + * will move away from a found {@link Entity} to "avoid" when in + * a farther range than 7 blocks. + */ + // @ts-ignore + setFarRangeSpeed(speed: number): org.spongepowered.api.entity.ai.task.builtin.creature.AvoidEntityAITask; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.RangeAgentAITask.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.RangeAgentAITask.Builder.d.ts new file mode 100644 index 00000000..400364a6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.RangeAgentAITask.Builder.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace creature { + namespace RangeAgentAITask { + // @ts-ignore + interface Builder extends org.spongepowered.api.entity.ai.task.AITaskBuilder { + // @ts-ignore + moveSpeed(speed: number): org.spongepowered.api.entity.ai.task.builtin.creature.RangeAgentAITask.Builder; + // @ts-ignore + delayBetweenAttacks(delay: number): org.spongepowered.api.entity.ai.task.builtin.creature.RangeAgentAITask.Builder; + // @ts-ignore + attackRadius(radius: number): org.spongepowered.api.entity.ai.task.builtin.creature.RangeAgentAITask.Builder; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.RangeAgentAITask.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.RangeAgentAITask.d.ts new file mode 100644 index 00000000..13d26d02 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.RangeAgentAITask.d.ts @@ -0,0 +1,61 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace creature { + // @ts-ignore + interface RangeAgentAITask extends org.spongepowered.api.entity.ai.task.AITask { + /** + * Creates a new {@link Builder} to build a new {@link RangeAgentAITask}. + */ + // @ts-ignore + builder(): org.spongepowered.api.entity.ai.task.builtin.creature.RangeAgentAITask.Builder; + /** + * Gets the movement speed modifier for moving towards a targeted + * {@link Entity}. + */ + // @ts-ignore + getMoveSpeed(): number; + /** + * Sets the movement speed modifier for moving towards a targeted + * {@link Entity}. + */ + // @ts-ignore + setMoveSpeed(speed: number): org.spongepowered.api.entity.ai.task.builtin.creature.RangeAgentAITask; + /** + * Gets the delay in ticks between attempts to attack the targeted + * {@link Entity}. + */ + // @ts-ignore + getDelayBetweenAttacks(): number; + /** + * The time, in ticks, this {@link Ranger} will wait before attacking + * again. + */ + // @ts-ignore + setDelayBetweenAttacks(delay: number): org.spongepowered.api.entity.ai.task.builtin.creature.RangeAgentAITask; + /** + * Gets the radius of which the owning {@link Ranger} will attempt to + * attack a targeted {@link Entity}. + */ + // @ts-ignore + getAttackRadius(): number; + /** + * Sets the radius of which the owning {@link Ranger} will attempt to + * attack a targeted {@link Entity}. + */ + // @ts-ignore + setAttackRadius(radius: number): org.spongepowered.api.entity.ai.task.builtin.creature.RangeAgentAITask; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.WanderAITask.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.WanderAITask.Builder.d.ts new file mode 100644 index 00000000..ad1bcfb9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.WanderAITask.Builder.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace creature { + namespace WanderAITask { + // @ts-ignore + interface Builder extends org.spongepowered.api.entity.ai.task.AITaskBuilder { + // @ts-ignore + speed(speed: number): org.spongepowered.api.entity.ai.task.builtin.creature.WanderAITask.Builder; + // @ts-ignore + executionChance(executionChance: number): org.spongepowered.api.entity.ai.task.builtin.creature.WanderAITask.Builder; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.WanderAITask.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.WanderAITask.d.ts new file mode 100644 index 00000000..18e3edf4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.WanderAITask.d.ts @@ -0,0 +1,49 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace creature { + // @ts-ignore + interface WanderAITask extends org.spongepowered.api.entity.ai.task.AITask { + /** + * Creates a new {@link Builder} to build a new + * {@link WanderAITask}. + */ + // @ts-ignore + builder(): org.spongepowered.api.entity.ai.task.builtin.creature.WanderAITask.Builder; + /** + * Gets the speed modifier at which the owning {@link Entity} + * will move around to appear to "wander". + */ + // @ts-ignore + getSpeed(): number; + /** + * Sets the speed modifier at which the owning {@link Entity} + * will move around to appear to "wander". + */ + // @ts-ignore + setSpeed(speed: number): org.spongepowered.api.entity.ai.task.builtin.creature.WanderAITask; + /** + * Gets the chance that the owning {@link Entity} will "wander". + */ + // @ts-ignore + getExecutionChance(): number; + /** + * Sets the chance that the owning {@link Entity} will perform + * a "wander". + */ + // @ts-ignore + setExecutionChance(executionChance: number): org.spongepowered.api.entity.ai.task.builtin.creature.WanderAITask; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.horse.RunAroundLikeCrazyAITask.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.horse.RunAroundLikeCrazyAITask.Builder.d.ts new file mode 100644 index 00000000..f18eff42 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.horse.RunAroundLikeCrazyAITask.Builder.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace creature { + namespace horse { + namespace RunAroundLikeCrazyAITask { + // @ts-ignore + interface Builder extends org.spongepowered.api.entity.ai.task.AITaskBuilder { + // @ts-ignore + speed(speed: number): org.spongepowered.api.entity.ai.task.builtin.creature.horse.RunAroundLikeCrazyAITask.Builder; + } + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.horse.RunAroundLikeCrazyAITask.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.horse.RunAroundLikeCrazyAITask.d.ts new file mode 100644 index 00000000..29a4eb18 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.horse.RunAroundLikeCrazyAITask.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace creature { + namespace horse { + // @ts-ignore + interface RunAroundLikeCrazyAITask extends org.spongepowered.api.entity.ai.task.AITask { + /** + * Creates a new {@link Builder} to build a new + * {@link RunAroundLikeCrazyAITask}. + */ + // @ts-ignore + builder(): org.spongepowered.api.entity.ai.task.builtin.creature.horse.RunAroundLikeCrazyAITask.Builder; + /** + * Gets the speed modifier at which when an {@link Entity} is running + * around, the movement speed is amplified by this modifier. + */ + // @ts-ignore + getSpeed(): number; + /** + * Sets the speed modifier at which when an {@link Entity} is running + * around, the movement speed is amplified by this modifier. + */ + // @ts-ignore + setSpeed(speed: number): org.spongepowered.api.entity.ai.task.builtin.creature.horse.RunAroundLikeCrazyAITask; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.target.FindNearestAttackableTargetAITask.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.target.FindNearestAttackableTargetAITask.Builder.d.ts new file mode 100644 index 00000000..ddf7b41d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.target.FindNearestAttackableTargetAITask.Builder.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace creature { + namespace target { + namespace FindNearestAttackableTargetAITask { + // @ts-ignore + interface Builder extends org.spongepowered.api.entity.ai.task.builtin.creature.target.TargetAITask.Builder { + // @ts-ignore + target(targetClass: java.lang.Class): org.spongepowered.api.entity.ai.task.builtin.creature.target.FindNearestAttackableTargetAITask.Builder; + // @ts-ignore + chance(chance: number): org.spongepowered.api.entity.ai.task.builtin.creature.target.FindNearestAttackableTargetAITask.Builder; + // @ts-ignore + filter(predicate: java.util.function$.Predicate): org.spongepowered.api.entity.ai.task.builtin.creature.target.FindNearestAttackableTargetAITask.Builder; + } + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.target.FindNearestAttackableTargetAITask.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.target.FindNearestAttackableTargetAITask.d.ts new file mode 100644 index 00000000..9d207119 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.target.FindNearestAttackableTargetAITask.d.ts @@ -0,0 +1,61 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace creature { + namespace target { + // @ts-ignore + interface FindNearestAttackableTargetAITask extends org.spongepowered.api.entity.ai.task.builtin.creature.target.TargetAITask { + /** + * Creates a new {@link Builder} for building a new {@link FindNearestAttackableTargetAITask}. + */ + // @ts-ignore + builder(): org.spongepowered.api.entity.ai.task.builtin.creature.target.FindNearestAttackableTargetAITask.Builder; + /** + * Gets the {@link Class entity class} that can be targeted. + */ + // @ts-ignore + getTargetClass(): java.lang.Class; + /** + * Sets the {@link Class entity class} that can be targeted. + */ + // @ts-ignore + setTargetClass(targetClass: java.lang.Class): org.spongepowered.api.entity.ai.task.builtin.creature.target.FindNearestAttackableTargetAITask; + /** + * Gets the chance that this task will go through and attempt to find a + * new target. + */ + // @ts-ignore + getChance(): number; + /** + * Sets the chance that this task will go through and attempt to find a + * new target. + */ + // @ts-ignore + setChance(chance: number): org.spongepowered.api.entity.ai.task.builtin.creature.target.FindNearestAttackableTargetAITask; + /** + * Sets the {@link Predicate} filter to determine whether a {@link Living} + * entity can be targeted. + */ + // @ts-ignore + filter(predicate: java.util.function$.Predicate): org.spongepowered.api.entity.ai.task.builtin.creature.target.FindNearestAttackableTargetAITask; + /** + * Gets the {@link Predicate} filter to determine whether a {@link Living living entity} + * can be targeted. + */ + // @ts-ignore + getFilter(): java.util.function$.Predicate; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.target.TargetAITask.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.target.TargetAITask.Builder.d.ts new file mode 100644 index 00000000..83641238 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.target.TargetAITask.Builder.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace creature { + namespace target { + namespace TargetAITask { + // @ts-ignore + interface Builder extends org.spongepowered.api.entity.ai.task.AITaskBuilder { + // @ts-ignore + checkSight(): org.spongepowered.api.entity.ai.task.builtin.creature.target.TargetAITask.Builder; + // @ts-ignore + onlyNearby(): org.spongepowered.api.entity.ai.task.builtin.creature.target.TargetAITask.Builder; + // @ts-ignore + reset(): org.spongepowered.api.entity.ai.task.builtin.creature.target.TargetAITask.Builder; + } + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.target.TargetAITask.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.target.TargetAITask.d.ts new file mode 100644 index 00000000..60b59ccc --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.ai.task.builtin.creature.target.TargetAITask.d.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace ai { + namespace task { + namespace builtin { + namespace creature { + namespace target { + // @ts-ignore + interface TargetAITask extends org.spongepowered.api.entity.ai.task.AITask { + /** + * Gets whether the owning {@link Agent} can visibly "see" the + * {@link Entity} being targeted such that any {@link BlockType}s that + * are visibly opaque will prevent the owning {@link Agent} from + * targeting that {@link Entity}. + */ + // @ts-ignore + shouldCheckSight(): boolean; + /** + * Sets whether the owning {@link Agent} can visibly "see" the + * {@link Entity} being targeted such that any {@link BlockType}s that + * are visibly opaque will prevent the owning {@link Agent} from + * targeting that {@link Entity}. + */ + // @ts-ignore + setCheckSight(checkSight: boolean): org.spongepowered.api.entity.ai.task.builtin.creature.target.TargetAITask; + /** + * Gets whether an {@link Entity} can only be targeted within a "short" + * radius from the owning {@link Agent}. + */ + // @ts-ignore + onlyNearby(): boolean; + /** + * Sets whether an {@link Entity} can only be targeted within a "short" + * radius from the owning {@link Agent}. + */ + // @ts-ignore + setOnlyNearby(nearby: boolean): org.spongepowered.api.entity.ai.task.builtin.creature.target.TargetAITask; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.explosive.Explosive.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.explosive.Explosive.d.ts new file mode 100644 index 00000000..efd9adba --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.explosive.Explosive.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace explosive { + // @ts-ignore + interface Explosive extends org.spongepowered.api.entity.Entity { + /** + * Returns the {@link ExplosionRadiusData} for this explosive. + */ + // @ts-ignore + getExplosionRadiusData(): org.spongepowered.api.data.manipulator.mutable.entity.ExplosionRadiusData; + /** + * The radius in blocks that the explosion will affect. This value may be + * missing if the explosion radius is unknown such as when it is generated + * randomly on detonation. Setting this value on such explosives will + * override that behavior. + */ + // @ts-ignore + explosionRadius(): org.spongepowered.api.data.value.mutable.OptionalValue; + /** + * Detonates this explosive as soon as possible. + */ + // @ts-ignore + detonate(): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.explosive.FusedExplosive.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.explosive.FusedExplosive.d.ts new file mode 100644 index 00000000..a36c9368 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.explosive.FusedExplosive.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace explosive { + // @ts-ignore + interface FusedExplosive extends org.spongepowered.api.entity.explosive.Explosive { + /** + * Returns the {@link FuseData} for this explosive. + */ + // @ts-ignore + getFuseData(): org.spongepowered.api.data.manipulator.mutable.entity.FuseData; + /** + * Returns true if this explosive is currently primed. + */ + // @ts-ignore + isPrimed(): boolean; + /** + * Primes this explosive to detonate after the amount of ticks that + * this entity explodes in defined by {@link Keys#FUSE_DURATION}. + */ + // @ts-ignore + prime(): void; + /** + * Cancels an actively primed explosive. + */ + // @ts-ignore + defuse(): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.explosive.PrimedTNT.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.explosive.PrimedTNT.d.ts new file mode 100644 index 00000000..3a88db1c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.explosive.PrimedTNT.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace explosive { + // @ts-ignore + interface PrimedTNT extends org.spongepowered.api.entity.explosive.FusedExplosive { + /** + * Gets the living entity that set off this primed TNT. + */ + // @ts-ignore + getDetonator(): java.util.Optional; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.hanging.Hanging.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.hanging.Hanging.d.ts new file mode 100644 index 00000000..2aea7b82 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.hanging.Hanging.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace hanging { + // @ts-ignore + interface Hanging extends org.spongepowered.api.entity.Entity { + /** + * Gets a copy of the {@link DirectionalData} being used for this + * {@link Hanging} entity. + */ + // @ts-ignore + getDirectionalData(): org.spongepowered.api.data.manipulator.mutable.block.DirectionalData; + /** + * Gets the {@link Value} for the current "facing" {@link Direction}. + */ + // @ts-ignore + direction(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.hanging.ItemFrame.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.hanging.ItemFrame.d.ts new file mode 100644 index 00000000..a05714e6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.hanging.ItemFrame.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace hanging { + // @ts-ignore + interface ItemFrame extends org.spongepowered.api.entity.hanging.Hanging { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.hanging.LeashHitch.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.hanging.LeashHitch.d.ts new file mode 100644 index 00000000..89cea5bf --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.hanging.LeashHitch.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace hanging { + // @ts-ignore + interface LeashHitch extends org.spongepowered.api.entity.hanging.Hanging { + /** + * Gets the currently leashed {@link Entity}. + *

Usually, a {@link LeashHitch} will always exist so long as there is + * a leashed {@link Entity} attached. If the leash is broken, the leash + * hitch is removed.

+ */ + // @ts-ignore + getLeashedEntity(): org.spongepowered.api.entity.Entity; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.hanging.Painting.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.hanging.Painting.d.ts new file mode 100644 index 00000000..a10adb6d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.hanging.Painting.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace hanging { + // @ts-ignore + interface Painting extends org.spongepowered.api.entity.hanging.Hanging { + /** + * Gets a copy of the {@link ArtData} represented by this {@link Painting}. + */ + // @ts-ignore + getArtData(): org.spongepowered.api.data.manipulator.mutable.entity.ArtData; + /** + * Gets the current {@link Art} value represented by this {@link Painting}. + */ + // @ts-ignore + art(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Aerial.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Aerial.d.ts new file mode 100644 index 00000000..05dc772f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Aerial.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + // @ts-ignore + interface Aerial extends org.spongepowered.api.entity.living.Agent { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Ageable.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Ageable.d.ts new file mode 100644 index 00000000..a22f9eed --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Ageable.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + // @ts-ignore + interface Ageable extends org.spongepowered.api.entity.living.Creature { + /** + * Sets the scaling to be 1 if this entity is an adult and 0.5 if it is + * a baby. + */ + // @ts-ignore + setScaleForAge(): void; + /** + * Gets the {@link AgeableData} that represents age determining whether an + * {@link Entity} is a child or an adult. + */ + // @ts-ignore + getAgeData(): org.spongepowered.api.data.manipulator.mutable.entity.AgeableData; + /** + * Gets the {@link MutableBoundedValue} for the "age" state. + */ + // @ts-ignore + age(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link Value} for the "adult" state. + */ + // @ts-ignore + adult(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Agent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Agent.d.ts new file mode 100644 index 00000000..a455ac4c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Agent.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + // @ts-ignore + interface Agent extends org.spongepowered.api.entity.living.Living { + /** + * Gets the current target, usually according to the various + * {@link AITask}s that are acting on this agent. + */ + // @ts-ignore + getTarget(): java.util.Optional; + /** + * Sets the current target, usually to bypass what the {@link AITask}s are + * deciding to be the target. + */ + // @ts-ignore + setTarget(target: org.spongepowered.api.entity.Entity): void; + /** + * Gets a copy of the {@link AgentData} associated with this {@link Agent}. + */ + // @ts-ignore + getAgentData(): org.spongepowered.api.data.manipulator.mutable.entity.AgentData; + /** + * Gets the {@link Value} for whether AI tasks are enabled or not. + */ + // @ts-ignore + aiEnabled(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets a {@link Goal} based on the {@link GoalType}. + */ + // @ts-ignore + getGoal(type: org.spongepowered.api.entity.ai.GoalType): java.util.Optional; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Ambient.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Ambient.d.ts new file mode 100644 index 00000000..a09670b6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Ambient.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + // @ts-ignore + interface Ambient extends org.spongepowered.api.entity.living.Agent { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Aquatic.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Aquatic.d.ts new file mode 100644 index 00000000..72459139 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Aquatic.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + // @ts-ignore + interface Aquatic extends org.spongepowered.api.entity.living.Creature { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.ArmorStand.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.ArmorStand.d.ts new file mode 100644 index 00000000..2e17d9ff --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.ArmorStand.d.ts @@ -0,0 +1,59 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + // @ts-ignore + interface ArmorStand extends org.spongepowered.api.entity.living.Living, org.spongepowered.api.entity.ArmorEquipable { + /** + * Gets a copy of the current {@link BodyPartRotationalData} used by this + * {@link ArmorStand}. + */ + // @ts-ignore + getBodyPartRotationalData(): org.spongepowered.api.data.manipulator.mutable.entity.BodyPartRotationalData; + /** + * Gets the {@link Boolean} {@link Value} of whether this + * {@link ArmorStand} is considered a "marker" stand. If + * {@code true}, the armor stand's bounding box is near + * impossible to see, and the armor stand can no longer be + * interacted with. + */ + // @ts-ignore + marker(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Boolean} {@link Value} of whether this + * {@link ArmorStand} is considered a "small" armor stand. + */ + // @ts-ignore + small(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Boolean} {@link Value} of whether this + * {@link ArmorStand} will show that it has a base plate + * visible to players. + */ + // @ts-ignore + basePlate(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Boolean} {@link Value} of whether this + * {@link ArmorStand} will show that it has "arms". + */ + // @ts-ignore + arms(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link ArmorStandData} for this armor stand. + */ + // @ts-ignore + getArmorStandData(): org.spongepowered.api.data.manipulator.mutable.entity.ArmorStandData; + // @ts-ignore + placingDisabled(): org.spongepowered.api.data.value.mutable.SetValue; + // @ts-ignore + takingDisabled(): org.spongepowered.api.data.value.mutable.SetValue; + // @ts-ignore + getDisabledSlotsData(): org.spongepowered.api.data.manipulator.mutable.entity.DisabledSlotsData; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Bat.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Bat.d.ts new file mode 100644 index 00000000..1571a7db --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Bat.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + // @ts-ignore + interface Bat extends org.spongepowered.api.entity.living.Ambient, org.spongepowered.api.entity.living.Aerial { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Creature.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Creature.d.ts new file mode 100644 index 00000000..23b0a1b1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Creature.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + // @ts-ignore + interface Creature extends org.spongepowered.api.entity.living.Agent { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Hostile.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Hostile.d.ts new file mode 100644 index 00000000..3d0955d0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Hostile.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + // @ts-ignore + interface Hostile extends org.spongepowered.api.entity.living.Living { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Human.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Human.d.ts new file mode 100644 index 00000000..6ff80843 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Human.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + // @ts-ignore + interface Human extends org.spongepowered.api.entity.living.Creature, org.spongepowered.api.entity.living.Humanoid { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Humanoid.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Humanoid.d.ts new file mode 100644 index 00000000..5a8fa093 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Humanoid.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + // @ts-ignore + interface Humanoid extends org.spongepowered.api.entity.living.Living, org.spongepowered.api.entity.projectile.ProjectileLauncher, org.spongepowered.api.entity.ArmorEquipable, org.spongepowered.api.entity.Tamer { + /** + * Gets a copy of the current {@link FoodData} for this {@link Humanoid}. + */ + // @ts-ignore + getFoodData(): org.spongepowered.api.data.manipulator.mutable.entity.FoodData; + /** + * Gets the current food level as an {@link MutableBoundedValue}. + *

Food level has health effects, depending on game difficulty and + * hunger levels. If the food level is high enough, the human entity + * may heal. If the food level is at 0, the human entity may starve.

+ */ + // @ts-ignore + foodLevel(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the "exhaustion" level. + *

When the exhaustion level reaches 0, saturation is usually diminished + * such that saturation is decreased and then exhaustion is reset to the + * maximum. This type of effect occurs over time and can be modified by + * movements and actions performed by the {@link Humanoid} entity.

+ */ + // @ts-ignore + exhaustion(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MutableBoundedValue} for the "saturation" level. + *

When the saturation level reaches 0, the food level is usually + * diminished such that the food level is decreased by 1, then + * saturation is reset to the maximum value. This type of effect occurs + * over time and can be modified by movements and actions performed by the + * {@link Humanoid} entity.

+ */ + // @ts-ignore + saturation(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Living.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Living.d.ts new file mode 100644 index 00000000..a4a77882 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Living.d.ts @@ -0,0 +1,79 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + // @ts-ignore + interface Living extends org.spongepowered.api.entity.Entity, org.spongepowered.api.entity.projectile.source.ProjectileSource, org.spongepowered.api.scoreboard.TeamMember { + /** + * Gets a copy of the current {@link HealthData}. + */ + // @ts-ignore + getHealthData(): org.spongepowered.api.data.manipulator.mutable.entity.HealthData; + /** + * Returns the health amount. + *

The range of the health depends on the object on which this + * method is defined. For players in Minecraft, the nominal range is + * between 0 and 20, inclusive, but the range can be adjusted.

+ *

Convention dictates that health does not follow below 0 but this + * convention may be broken.

+ */ + // @ts-ignore + health(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the current maximum health. + *

The maximum health set here may affect the attribute increasing + * health points. The base health should be minded that it may be lower + * than the total maximum health of this entity.

+ */ + // @ts-ignore + maxHealth(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets a copy of the current {@link DamageableData}. + */ + // @ts-ignore + getDamageableData(): org.spongepowered.api.data.manipulator.mutable.entity.DamageableData; + /** + * Gets the {@link OptionalValue} for the last attacker. + *

This is generally an entity snapshot of a {@link Living}.

+ */ + // @ts-ignore + lastAttacker(): org.spongepowered.api.data.value.mutable.OptionalValue; + /** + * Gets the last amount of damage dealt as an optional value. + */ + // @ts-ignore + lastDamage(): org.spongepowered.api.data.value.mutable.OptionalValue; + /** + * Returns this entity's head rotation. + *

The format of the rotation is represented by:

+ *
    x -> pitch, y -> yaw, z -> roll + *
+ *

Note that the pitch will be the same x value returned by + * {@link Entity#getRotation()} and Minecraft does not currently support + * head roll so the z value will always be zero.

+ */ + // @ts-ignore + getHeadRotation(): any /*Vector3d*/; + /** + * Sets the entity's head rotation. + *

The format of the rotation is represented by:

+ *
    x -> pitch, y -> yaw, z -> roll + *
+ *

Note that the pitch (x value) supplied will update the entity's pitch + * via {@link Entity#setRotation(Vector3d)}.

+ */ + // @ts-ignore + setHeadRotation(rotation: any /*Vector3d*/): void; + /** + * Makes the entity look at the specified target position. + */ + // @ts-ignore + lookAt(targetPos: any /*Vector3d*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Ranger.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Ranger.d.ts new file mode 100644 index 00000000..aa2786b4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Ranger.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + // @ts-ignore + interface Ranger extends org.spongepowered.api.entity.living.Agent, org.spongepowered.api.entity.projectile.ProjectileLauncher { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Squid.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Squid.d.ts new file mode 100644 index 00000000..e14bd863 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Squid.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + // @ts-ignore + interface Squid extends org.spongepowered.api.entity.living.Aquatic { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Villager.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Villager.d.ts new file mode 100644 index 00000000..6ab5d909 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.Villager.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + // @ts-ignore + interface Villager extends org.spongepowered.api.entity.living.Ageable, org.spongepowered.api.item.merchant.Merchant { + /** + * Returns true if this villager is currently trading with another + * {@link Humanoid}. A villager is normally + * unable to trade with multiple HumanEntities at the same time. + */ + // @ts-ignore + isTrading(): boolean; + /** + * Gets a copy of the current {@link CareerData} for this {@link Villager} + * entity. + */ + // @ts-ignore + getCareerData(): org.spongepowered.api.data.manipulator.mutable.entity.CareerData; + /** + * Gets the current {@link Career} of this villager. + */ + // @ts-ignore + career(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Animal.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Animal.d.ts new file mode 100644 index 00000000..ac588d96 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Animal.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface Animal extends org.spongepowered.api.entity.living.Ageable { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Chicken.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Chicken.d.ts new file mode 100644 index 00000000..57a27150 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Chicken.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface Chicken extends org.spongepowered.api.entity.living.animal.Animal { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Cow.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Cow.d.ts new file mode 100644 index 00000000..d49f3802 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Cow.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface Cow extends org.spongepowered.api.entity.living.animal.Animal { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Donkey.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Donkey.d.ts new file mode 100644 index 00000000..2467bb3a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Donkey.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface Donkey extends org.spongepowered.api.entity.living.animal.Horse { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Horse.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Horse.d.ts new file mode 100644 index 00000000..6ce33a55 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Horse.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface Horse extends org.spongepowered.api.entity.living.animal.Animal, org.spongepowered.api.item.inventory.Carrier { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Llama.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Llama.d.ts new file mode 100644 index 00000000..a043ac0e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Llama.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface Llama extends org.spongepowered.api.entity.living.animal.Horse, org.spongepowered.api.entity.projectile.ProjectileLauncher { + /** + * Gets the {@link Value} for the {@link Keys#LLAMA_STRENGTH llama strength} + * when attacking. + */ + // @ts-ignore + strength(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link Value} for the {@link Keys#LLAMA_VARIANT llama variant}. + */ + // @ts-ignore + llamaVariant(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Mooshroom.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Mooshroom.d.ts new file mode 100644 index 00000000..a28563f3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Mooshroom.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface Mooshroom extends org.spongepowered.api.entity.living.animal.Cow { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Mule.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Mule.d.ts new file mode 100644 index 00000000..d96b9414 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Mule.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface Mule extends org.spongepowered.api.entity.living.animal.Horse { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Ocelot.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Ocelot.d.ts new file mode 100644 index 00000000..8c2fe5ea --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Ocelot.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface Ocelot extends org.spongepowered.api.entity.living.animal.Animal { + /** + * Gets a copy of the current {@link OcelotData} being represented by + * this {@link Ocelot}. + */ + // @ts-ignore + getOcelotData(): org.spongepowered.api.data.manipulator.mutable.entity.OcelotData; + /** + * Gets the {@link Value} for the {@link OcelotType} of this + * {@link Ocelot}. + */ + // @ts-ignore + variant(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Parrot.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Parrot.d.ts new file mode 100644 index 00000000..6c9cea8c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Parrot.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface Parrot extends org.spongepowered.api.entity.living.animal.Animal { + /** + * Gets a copy of the current {@link ParrotData} being represented by + * this {@link Parrot}. + */ + // @ts-ignore + getParrotData(): org.spongepowered.api.data.manipulator.mutable.entity.ParrotData; + /** + * Gets the {@link Value} for the {@link ParrotVariant} of this + * {@link Parrot}. + */ + // @ts-ignore + variant(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Pig.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Pig.d.ts new file mode 100644 index 00000000..baebe28d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Pig.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface Pig extends org.spongepowered.api.entity.living.animal.Animal { + /** + * Gets the {@link PigSaddleData} for this {@link Pig}. + */ + // @ts-ignore + getPigSaddleData(): org.spongepowered.api.data.manipulator.mutable.entity.PigSaddleData; + /** + * Gets the {@link Value} for whether this {@link Pig} is saddled. + */ + // @ts-ignore + saddled(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.PolarBear.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.PolarBear.d.ts new file mode 100644 index 00000000..30926aa4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.PolarBear.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface PolarBear extends org.spongepowered.api.entity.living.animal.Animal { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Rabbit.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Rabbit.d.ts new file mode 100644 index 00000000..115792b5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Rabbit.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface Rabbit extends org.spongepowered.api.entity.living.animal.Animal { + /** + * Gets a copy of the {@link RabbitData} representing the specific data for + * this {@link Rabbit}. + */ + // @ts-ignore + getRabbitData(): org.spongepowered.api.data.manipulator.mutable.entity.RabbitData; + /** + * Gets the {@link Value} for the {@link RabbitType} of this {@link Rabbit}. + */ + // @ts-ignore + variant(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.RideableHorse.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.RideableHorse.d.ts new file mode 100644 index 00000000..d02064a9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.RideableHorse.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface RideableHorse extends org.spongepowered.api.entity.living.animal.Horse { + /** + * Gets a copy of the {@link HorseData} representing this {@link RideableHorse}. + */ + // @ts-ignore + getHorseData(): org.spongepowered.api.data.manipulator.mutable.entity.HorseData; + /** + * Gets the style of the horse. + */ + // @ts-ignore + style(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the color of the horse. + */ + // @ts-ignore + color(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Sheep.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Sheep.d.ts new file mode 100644 index 00000000..25124bd8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Sheep.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface Sheep extends org.spongepowered.api.entity.living.animal.Animal { + /** + * Gets a copy of the {@link DyeableData} representing the color of this + * {@link Sheep} entity. + */ + // @ts-ignore + getDyeData(): org.spongepowered.api.data.manipulator.mutable.DyeableData; + /** + * Gets the current {@link Value} of {@link DyeColor} for this + * {@link Sheep}. + */ + // @ts-ignore + color(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.SkeletonHorse.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.SkeletonHorse.d.ts new file mode 100644 index 00000000..5b58cf8a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.SkeletonHorse.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface SkeletonHorse extends org.spongepowered.api.entity.living.animal.Horse { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Wolf.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Wolf.d.ts new file mode 100644 index 00000000..33e5e6ed --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.Wolf.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface Wolf extends org.spongepowered.api.entity.living.animal.Animal { + /** + * Gets a copy of the current {@link AggressiveData} for this + * {@link Wolf}. + */ + // @ts-ignore + getAggressiveData(): org.spongepowered.api.data.manipulator.mutable.entity.AggressiveData; + /** + * Gets if this {@link Wolf} is currently aggressive, as a {@link Value}. + */ + // @ts-ignore + aggressive(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets a copy of the current {@link DyeableData} for this + * {@link Wolf}'s collar. + */ + // @ts-ignore + getCollarColorData(): org.spongepowered.api.data.manipulator.mutable.DyeableData; + /** + * Gets the {@link Wolf}'s {@link DyeColor} of it's collar. + */ + // @ts-ignore + collarColor(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.ZombieHorse.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.ZombieHorse.d.ts new file mode 100644 index 00000000..7e7284cf --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.animal.ZombieHorse.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace animal { + // @ts-ignore + interface ZombieHorse extends org.spongepowered.api.entity.living.animal.Horse { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.complex.ComplexLiving.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.complex.ComplexLiving.d.ts new file mode 100644 index 00000000..0387f067 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.complex.ComplexLiving.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace complex { + // @ts-ignore + interface ComplexLiving extends org.spongepowered.api.entity.living.Living { + /** + * Gets the set of parts belonging to this complex entity. + */ + // @ts-ignore + getParts(): java.util.Set; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.complex.ComplexLivingPart.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.complex.ComplexLivingPart.d.ts new file mode 100644 index 00000000..9511770b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.complex.ComplexLivingPart.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace complex { + // @ts-ignore + interface ComplexLivingPart extends org.spongepowered.api.entity.Entity { + /** + * Gets the associated parent of this part. + */ + // @ts-ignore + getParent(): org.spongepowered.api.entity.living.complex.ComplexLiving; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.complex.EnderDragon.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.complex.EnderDragon.d.ts new file mode 100644 index 00000000..bc54a445 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.complex.EnderDragon.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace complex { + // @ts-ignore + interface EnderDragon extends org.spongepowered.api.entity.living.complex.ComplexLiving, org.spongepowered.api.entity.living.monster.Boss, org.spongepowered.api.entity.living.Aerial, org.spongepowered.api.entity.projectile.ProjectileLauncher { + // @ts-ignore + getParts(): java.util.Set; + /** + * Returns the current {@code EnderCrystal} that is healing this + * ender dragon. + */ + // @ts-ignore + getHealingCrystal(): java.util.Optional; + /** + * Gets the boss bar this dragon uses. + */ + // @ts-ignore + getBossBar(): org.spongepowered.api.boss.ServerBossBar; + /** + * Gets the phase manager. + *

The phase manager controls the active {@link EnderDragonPhase} of + * the dragon in The End.

+ */ + // @ts-ignore + getPhaseManager(): org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseManager; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.complex.EnderDragonPart.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.complex.EnderDragonPart.d.ts new file mode 100644 index 00000000..b7edf9bc --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.complex.EnderDragonPart.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace complex { + // @ts-ignore + interface EnderDragonPart extends org.spongepowered.api.entity.living.complex.ComplexLivingPart { + // @ts-ignore + getParent(): org.spongepowered.api.entity.living.complex.EnderDragon; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhase.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhase.d.ts new file mode 100644 index 00000000..f48c33a7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhase.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace complex { + namespace dragon { + namespace phase { + // @ts-ignore + interface EnderDragonPhase { + /** + * Gets the type of this phase. + */ + // @ts-ignore + getType(): org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseType; + /** + * Gets the position the dragon is flying towards. + */ + // @ts-ignore + getTargetPosition(): java.util.Optional; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseManager.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseManager.d.ts new file mode 100644 index 00000000..ee861800 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseManager.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace complex { + namespace dragon { + namespace phase { + // @ts-ignore + interface EnderDragonPhaseManager { + /** + * Gets the current dragon phase. + */ + // @ts-ignore + getPhase(): org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhase; + /** + * Sets the dragon phase. + */ + // @ts-ignore + setPhase(phase: org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseType): org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhase; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseType.d.ts new file mode 100644 index 00000000..9f95fc91 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseType.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace complex { + namespace dragon { + namespace phase { + // @ts-ignore + interface EnderDragonPhaseType extends org.spongepowered.api.CatalogType { + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseTypes.d.ts new file mode 100644 index 00000000..bb0dd8fb --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseTypes.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace complex { + namespace dragon { + namespace phase { + // @ts-ignore + class EnderDragonPhaseTypes extends java.lang.Object { + // @ts-ignore + public static DYING: org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseType; + // @ts-ignore + public static HOLDING_PATTERN: org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseType; + // @ts-ignore + public static HOVER: org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseType; + // @ts-ignore + public static CHARGING_PLAYER: org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseType; + // @ts-ignore + public static LANDING: org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseType; + // @ts-ignore + public static LANDING_APPROACH: org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseType; + // @ts-ignore + public static SITTING_ATTACKING: org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseType; + // @ts-ignore + public static SITTING_FLAMING: org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseType; + // @ts-ignore + public static SITTING_SCANNING: org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseType; + // @ts-ignore + public static STRAFE_PLAYER: org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseType; + // @ts-ignore + public static TAKEOFF: org.spongepowered.api.entity.living.complex.dragon.phase.EnderDragonPhaseType; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.golem.Golem.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.golem.Golem.d.ts new file mode 100644 index 00000000..a91d3179 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.golem.Golem.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace golem { + // @ts-ignore + interface Golem extends org.spongepowered.api.entity.living.Creature { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.golem.IronGolem.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.golem.IronGolem.d.ts new file mode 100644 index 00000000..3c3a9756 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.golem.IronGolem.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace golem { + // @ts-ignore + interface IronGolem extends org.spongepowered.api.entity.living.golem.Golem { + /** + * Gets the {@link Value} for whether this {@link IronGolem} was created + * by a {@link Player}. + */ + // @ts-ignore + playerCreated(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.golem.Shulker.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.golem.Shulker.d.ts new file mode 100644 index 00000000..c5fac555 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.golem.Shulker.d.ts @@ -0,0 +1,44 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace golem { + // @ts-ignore + interface Shulker extends org.spongepowered.api.entity.living.golem.Golem, org.spongepowered.api.entity.projectile.source.ProjectileSource { + /** + * Gets a copy of the {@link DyeableData} representing the color of this + * {@link Shulker} entity. + */ + // @ts-ignore + getDyeData(): org.spongepowered.api.data.manipulator.mutable.DyeableData; + /** + * Gets the current {@link Value} of {@link DyeColor} for this + * {@link Shulker}. + */ + // @ts-ignore + color(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets a copy of the {@link DirectionalData} representing the direction this + * {@link Shulker} is oriented towards. + */ + // @ts-ignore + getDirectionalData(): org.spongepowered.api.data.manipulator.mutable.block.DirectionalData; + /** + * Gets the current {@link Value} of {@link Direction} for this {@link Shulker}. + */ + // @ts-ignore + direction(): org.spongepowered.api.data.value.mutable.Value; + /** + * Launches a new {@link EntityTargetingProjectile} from this {@link Shulker}. + */ + // @ts-ignore + launchWithTarget(projectileClass: java.lang.Class, target: org.spongepowered.api.entity.Entity): java.util.Optional; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.golem.SnowGolem.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.golem.SnowGolem.d.ts new file mode 100644 index 00000000..11ef3402 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.golem.SnowGolem.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace golem { + // @ts-ignore + interface SnowGolem extends org.spongepowered.api.entity.living.golem.Golem, org.spongepowered.api.entity.living.Ranger { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Blaze.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Blaze.d.ts new file mode 100644 index 00000000..162b3af9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Blaze.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Blaze extends org.spongepowered.api.entity.living.monster.Monster, org.spongepowered.api.entity.living.Aerial, org.spongepowered.api.entity.projectile.ProjectileLauncher { + /** + * Gets the current {@link Value value} for whether this {@link Blaze} + * is considered "aflame". + */ + // @ts-ignore + aflame(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Boss.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Boss.d.ts new file mode 100644 index 00000000..1b7708d3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Boss.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Boss extends org.spongepowered.api.entity.living.Hostile { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.CaveSpider.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.CaveSpider.d.ts new file mode 100644 index 00000000..21df9b49 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.CaveSpider.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface CaveSpider extends org.spongepowered.api.entity.living.monster.Spider { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Creeper.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Creeper.d.ts new file mode 100644 index 00000000..7c1c20ed --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Creeper.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Creeper extends org.spongepowered.api.entity.living.monster.Monster, org.spongepowered.api.entity.explosive.FusedExplosive { + /** + * Gets the current {@link Value value} of whether this {@link Creeper} + * is considered "charged". Note that "charged" creepers will likely + * cause larger than normal explosions. + */ + // @ts-ignore + charged(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Enderman.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Enderman.d.ts new file mode 100644 index 00000000..70e61f01 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Enderman.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Enderman extends org.spongepowered.api.entity.living.monster.Monster, org.spongepowered.api.item.inventory.Carrier { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Endermite.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Endermite.d.ts new file mode 100644 index 00000000..bb183048 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Endermite.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Endermite extends org.spongepowered.api.entity.living.monster.Monster { + /** + * Gets a copy of the {@link ExpirableData} for this endermite. + */ + // @ts-ignore + getExpirableData(): org.spongepowered.api.data.manipulator.mutable.entity.ExpirableData; + /** + * Gets the {@link MutableBoundedValue} for the amount of "ticks" + * remaining before the "expiration" occurs. + */ + // @ts-ignore + expireTicks(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Evoker.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Evoker.d.ts new file mode 100644 index 00000000..c37876e4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Evoker.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Evoker extends org.spongepowered.api.entity.living.monster.Monster { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Ghast.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Ghast.d.ts new file mode 100644 index 00000000..f7eaf1e1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Ghast.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Ghast extends org.spongepowered.api.entity.living.Aerial, org.spongepowered.api.entity.living.Hostile, org.spongepowered.api.entity.projectile.ProjectileLauncher { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Giant.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Giant.d.ts new file mode 100644 index 00000000..d95952b6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Giant.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Giant extends org.spongepowered.api.entity.living.monster.Monster, org.spongepowered.api.entity.ArmorEquipable { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Guardian.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Guardian.d.ts new file mode 100644 index 00000000..8ab90a9d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Guardian.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Guardian extends org.spongepowered.api.entity.living.Aquatic, org.spongepowered.api.entity.living.monster.Monster { + /** + * Gets the target of the guardian's beam or {@link Optional#empty()} otherwise. + */ + // @ts-ignore + getBeamTarget(): java.util.Optional; + /** + * Sets the target of the guardian's beam. Setting a null value removes the + * target. + */ + // @ts-ignore + setBeamTarget(entity: org.spongepowered.api.entity.living.Living): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Husk.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Husk.d.ts new file mode 100644 index 00000000..d4126053 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Husk.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Husk extends org.spongepowered.api.entity.living.monster.Zombie { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Illusioner.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Illusioner.d.ts new file mode 100644 index 00000000..279ff1d8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Illusioner.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Illusioner extends org.spongepowered.api.entity.living.monster.Monster { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.MagmaCube.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.MagmaCube.d.ts new file mode 100644 index 00000000..dae98dfc --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.MagmaCube.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface MagmaCube extends org.spongepowered.api.entity.living.monster.Slime { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Monster.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Monster.d.ts new file mode 100644 index 00000000..57803213 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Monster.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Monster extends org.spongepowered.api.entity.living.Hostile, org.spongepowered.api.entity.living.Creature { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Silverfish.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Silverfish.d.ts new file mode 100644 index 00000000..84b7a000 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Silverfish.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Silverfish extends org.spongepowered.api.entity.living.monster.Monster { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Skeleton.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Skeleton.d.ts new file mode 100644 index 00000000..ad31ebca --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Skeleton.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Skeleton extends org.spongepowered.api.entity.living.monster.Monster, org.spongepowered.api.entity.ArmorEquipable, org.spongepowered.api.entity.living.Ranger { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Slime.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Slime.d.ts new file mode 100644 index 00000000..57d97da9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Slime.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Slime extends org.spongepowered.api.entity.living.monster.Monster { + /** + * Gets a copy of the current {@link SlimeData} for this {@link Slime}. + */ + // @ts-ignore + getSlimeData(): org.spongepowered.api.data.manipulator.mutable.entity.SlimeData; + /** + * Gets the {@link MutableBoundedValue value} of this + * {@link Slime slime's} current size. + */ + // @ts-ignore + slimeSize(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Spider.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Spider.d.ts new file mode 100644 index 00000000..8277fbf3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Spider.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Spider extends org.spongepowered.api.entity.living.monster.Monster { + /** + * Gets whether or not the spider is currently climbing a wall. + */ + // @ts-ignore + isClimbing(): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Stray.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Stray.d.ts new file mode 100644 index 00000000..5b262665 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Stray.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Stray extends org.spongepowered.api.entity.living.monster.Skeleton { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Vex.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Vex.d.ts new file mode 100644 index 00000000..4f43f7c4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Vex.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Vex extends org.spongepowered.api.entity.living.monster.Monster { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Vindicator.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Vindicator.d.ts new file mode 100644 index 00000000..391b6bed --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Vindicator.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Vindicator extends org.spongepowered.api.entity.living.monster.Monster { + /** + * Gets the {@link Value} for whether this vindicator is considered a + * "johnny" vindicator. "Johnny" vindicators will deal more damage and + * often times carry an {@link ItemTypes#IRON_AXE} of sorts. + */ + // @ts-ignore + johnny(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.WhiteSkeleton.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.WhiteSkeleton.d.ts new file mode 100644 index 00000000..43d62a55 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.WhiteSkeleton.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface WhiteSkeleton extends org.spongepowered.api.entity.living.monster.Skeleton { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Witch.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Witch.d.ts new file mode 100644 index 00000000..6f8563f2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Witch.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Witch extends org.spongepowered.api.entity.living.monster.Monster, org.spongepowered.api.entity.living.Ranger { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Wither.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Wither.d.ts new file mode 100644 index 00000000..2baddf6a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Wither.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Wither extends org.spongepowered.api.entity.living.monster.Monster, org.spongepowered.api.entity.living.Ranger, org.spongepowered.api.entity.living.monster.Boss, org.spongepowered.api.entity.living.Aerial, org.spongepowered.api.entity.explosive.FusedExplosive { + /** + * Gets the list of {@link Living} targets that this wither is targeting. + * Usually, as an {@link Agent}, {@link #getTarget()} would be sufficient, + * however, due to a Wither having the possibility of 3 targets, this + * is preferred use. + */ + // @ts-ignore + getTargets(): java.util.List; + /** + * Sets the list of living targets. + */ + // @ts-ignore + setTargets(targets: java.util.List): void; + /** + * Gets the boss bar this wither uses. + */ + // @ts-ignore + getBossBar(): org.spongepowered.api.boss.ServerBossBar; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.WitherSkeleton.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.WitherSkeleton.d.ts new file mode 100644 index 00000000..90677207 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.WitherSkeleton.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface WitherSkeleton extends org.spongepowered.api.entity.living.monster.Skeleton { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Zombie.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Zombie.d.ts new file mode 100644 index 00000000..1c0d62ed --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.Zombie.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface Zombie extends org.spongepowered.api.entity.living.monster.Monster, org.spongepowered.api.entity.ArmorEquipable, org.spongepowered.api.entity.living.Ageable { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.ZombiePigman.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.ZombiePigman.d.ts new file mode 100644 index 00000000..4088de92 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.ZombiePigman.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface ZombiePigman extends org.spongepowered.api.entity.living.monster.Zombie { + /** + * Gets a copy of the {@link AngerableData} for this {@link ZombiePigman}. + */ + // @ts-ignore + getAngerData(): org.spongepowered.api.data.manipulator.mutable.entity.AngerableData; + /** + * Gets the {@link MutableBoundedValue value} of the current "anger" level + * of this {@link ZombiePigman pigzombie}. + */ + // @ts-ignore + angerLevel(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.ZombieVillager.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.ZombieVillager.d.ts new file mode 100644 index 00000000..a55b9413 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.monster.ZombieVillager.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace monster { + // @ts-ignore + interface ZombieVillager extends org.spongepowered.api.entity.living.monster.Zombie { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.player.CooldownTracker.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.player.CooldownTracker.d.ts new file mode 100644 index 00000000..dd6d14bf --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.player.CooldownTracker.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace player { + // @ts-ignore + interface CooldownTracker { + /** + * Checks if the specified {@link ItemType} is currently on cooldown + * for the player. + */ + // @ts-ignore + hasCooldown(type: org.spongepowered.api.item.ItemType): boolean; + /** + * Gets the cooldown of the specified {@link ItemType} in ticks for the + * player, or empty if the the item type is currently not on cooldown. + */ + // @ts-ignore + getCooldown(type: org.spongepowered.api.item.ItemType): java.util.OptionalInt; + /** + * Sets the cooldown for the specified {@link ItemType} for the + * specified amount of ticks. + */ + // @ts-ignore + setCooldown(type: org.spongepowered.api.item.ItemType, ticks: number): boolean; + /** + * Resets the cooldown of the specified {@link ItemType} for the + * player. + */ + // @ts-ignore + resetCooldown(type: org.spongepowered.api.item.ItemType): boolean; + /** + * Gets the fraction of the specified {@link ItemType}'s cooldown that + * is remaining for the player, or empty if the the item type + * is currently not on cooldown. + *

If present, this value will be between 0.0 and 1.0.

+ */ + // @ts-ignore + getFractionRemaining(type: org.spongepowered.api.item.ItemType): java.util.OptionalDouble; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.player.Player.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.player.Player.d.ts new file mode 100644 index 00000000..7f3378b5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.player.Player.d.ts @@ -0,0 +1,229 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace player { + // @ts-ignore + interface Player extends org.spongepowered.api.entity.living.Humanoid, org.spongepowered.api.entity.living.player.User, org.spongepowered.api.command.source.RemoteSource, org.spongepowered.api.effect.Viewer, org.spongepowered.api.text.channel.ChatTypeMessageReceiver { + /** + * Returns whether this player has an open inventory at the moment + * or not. + */ + // @ts-ignore + isViewingInventory(): boolean; + /** + * Gets the currently viewed inventory of this player, if it is + * currently viewing one. + */ + // @ts-ignore + getOpenInventory(): java.util.Optional; + /** + * Opens the given Inventory for the player to view. + */ + // @ts-ignore + openInventory(inventory: org.spongepowered.api.item.inventory.Inventory): java.util.Optional; + /** + * Opens a given Inventory for the player to view with a custom displayName. + *

Note that not all inventories support a custom display name.

+ */ + // @ts-ignore + openInventory(inventory: org.spongepowered.api.item.inventory.Inventory, displayName: org.spongepowered.api.text.Text): java.util.Optional; + /** + * Closes the currently viewed entity of this player, if it is currently + * viewing one. + */ + // @ts-ignore + closeInventory(): boolean; + /** + * Gets the view distance setting of the player. This value represents the + * radius (around the player) in unit chunks. + */ + // @ts-ignore + getViewDistance(): number; + /** + * Gets the current player chat visibility setting. + */ + // @ts-ignore + getChatVisibility(): org.spongepowered.api.text.chat.ChatVisibility; + /** + * Gets whether the player has colors enabled in chat. + */ + // @ts-ignore + isChatColorsEnabled(): boolean; + /** + * Simulates a chat message from a player. + *

This method sends a message as if it came from this player. + * To send a message to this player instead, see + * {@link MessageReceiver#sendMessage(Text)} or + * {@link ChatTypeMessageReceiver#sendMessage(ChatType, Text)}.

+ *

Commands cannot be sent using this method. To send commands, use + * {@link CommandManager#process(CommandSource, String)}.

+ *

If text formatting is not supported in the implementation + * it will be displayed as plain text.

+ */ + // @ts-ignore + simulateChat(message: org.spongepowered.api.text.Text, cause: org.spongepowered.api.event.cause.Cause): org.spongepowered.api.event.message.MessageChannelEvent.Chat; + /** + * Gets the skin parts that this player has allowed to render. + */ + // @ts-ignore + getDisplayedSkinParts(): java.util.Set; + /** + * Gets the appropriate {@link PlayerConnection} linking this Player + * to a client. + */ + // @ts-ignore + getConnection(): org.spongepowered.api.network.PlayerConnection; + /** + * Sends a given {@link ResourcePack} to this player. + */ + // @ts-ignore + sendResourcePack(pack: org.spongepowered.api.resourcepack.ResourcePack): void; + /** + * Gets this player's {@link TabList}. + */ + // @ts-ignore + getTabList(): org.spongepowered.api.entity.living.player.tab.TabList; + /** + * Kicks the player, showing the default kick reason (the translation key + * {@code disconnect.disconnected}). + */ + // @ts-ignore + kick(): void; + /** + * Kicks the player given a reason. + */ + // @ts-ignore + kick(reason: org.spongepowered.api.text.Text): void; + /** + * Gets the {@link Scoreboard} displayed to the player. + */ + // @ts-ignore + getScoreboard(): org.spongepowered.api.scoreboard.Scoreboard; + /** + * Sets the {@link Scoreboard} displayed to the player. + */ + // @ts-ignore + setScoreboard(scoreboard: org.spongepowered.api.scoreboard.Scoreboard): void; + /** + * Gets a copy of the current {@link JoinData}. + *

Since a {@link Player} is already online, it means that the player + * has joined the server at least once, meaning there is a guaranteed + * initial join {@link Instant}. Users may not have ever joined a server + * before.

+ */ + // @ts-ignore + getJoinData(): org.spongepowered.api.data.manipulator.mutable.entity.JoinData; + /** + * Gets the {@link Value} of the {@link Instant} that a {@link Player} + * joined the {@link Server} the first time. + */ + // @ts-ignore + firstPlayed(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets the {@link Value} of the {@link Instant} that a {@link Player} + * joined the {@link Server} the last time. + */ + // @ts-ignore + lastPlayed(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets if the {@link Player} has played on the {@link Server} before. Added + * as a utility. + */ + // @ts-ignore + hasPlayedBefore(): boolean; + /** + * Gets a copy of the current {@link DisplayNameData} for this + * {@link Player}. + */ + // @ts-ignore + getDisplayNameData(): org.spongepowered.api.data.manipulator.mutable.DisplayNameData; + /** + * Gets a copy of the current {@link GameModeData} for this {@link Player}. + */ + // @ts-ignore + getGameModeData(): org.spongepowered.api.data.manipulator.mutable.entity.GameModeData; + /** + * Gets the current {@link GameMode} for this {@link Player}. + */ + // @ts-ignore + gameMode(): org.spongepowered.api.data.value.mutable.Value; + /** + * Gets whether this {@link Player} will be ignored when checking whether to + * skip the night due to players sleeping. The time in a world will be + * advanced to day if all players in it either are sleeping or have this + * tag. + */ + // @ts-ignore + isSleepingIgnored(): boolean; + /** + * Sets whether this {@link Player} will be ignored when checking whether + * to skip the night due to players sleeping. The time in a world will be + * advanced to day if all players in it either are sleeping or have this + * tag. + */ + // @ts-ignore + setSleepingIgnored(sleepingIgnored: boolean): void; + /** + * Gets the {@link Inventory} available for this Player's shared {@link EnderChest} + * contents. + */ + // @ts-ignore + getEnderChestInventory(): org.spongepowered.api.item.inventory.Inventory; + /** + * Manually respawns the player. + *

If the player is not dead, this method will return false

+ */ + // @ts-ignore + respawnPlayer(): boolean; + /** + * Gets the {@link Entity} followed by the camera when in the + * {@link GameModes#SPECTATOR spectator gamemode}. + */ + // @ts-ignore + getSpectatorTarget(): java.util.Optional; + /** + * Sets the {@link Entity} followed by the camera when in the + * {@link GameModes#SPECTATOR spectator gamemode}. + */ + // @ts-ignore + setSpectatorTarget(entity: org.spongepowered.api.entity.Entity): void; + /** + * Gets the {@link WorldBorder} for this player, if present. If no border is + * set, an empty {@code Optional} is returned. + */ + // @ts-ignore + getWorldBorder(): java.util.Optional; + /** + * Sets the {@link WorldBorder} instance for this player to the given world + * border. If {@code null} is passed, the world border is unset. + */ + // @ts-ignore + setWorldBorder(border: org.spongepowered.api.world.WorldBorder, cause: org.spongepowered.api.event.cause.Cause): void; + /** + * Gets the {@link CooldownTracker} for this player, allowing control + * over the player's item cooldowns. + */ + // @ts-ignore + getCooldownTracker(): org.spongepowered.api.entity.living.player.CooldownTracker; + /** + * Gets the {@link AdvancementProgress} for the + * specified {@link Advancement}. + */ + // @ts-ignore + getProgress(advancement: org.spongepowered.api.advancement.Advancement): org.spongepowered.api.advancement.AdvancementProgress; + /** + * Gets all the {@link AdvancementTree}s that this + * {@link Player} already unlocked. + */ + // @ts-ignore + getUnlockedAdvancementTrees(): java.util.Collection; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.player.User.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.player.User.d.ts new file mode 100644 index 00000000..9a9608bc --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.player.User.d.ts @@ -0,0 +1,80 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace player { + // @ts-ignore + interface User extends org.spongepowered.api.data.DataHolder, org.spongepowered.api.entity.ArmorEquipable, org.spongepowered.api.entity.Tamer, org.spongepowered.api.service.permission.Subject { + /** + * Gets the associated {@link GameProfile} of this player. + */ + // @ts-ignore + getProfile(): org.spongepowered.api.profile.GameProfile; + /** + * Gets the player's last known username. + */ + // @ts-ignore + getName(): string; + /** + * Checks if this user is online or not. + */ + // @ts-ignore + isOnline(): boolean; + /** + * Gets the related online {@link Player} if the player is + * in fact online. + */ + // @ts-ignore + getPlayer(): java.util.Optional; + /** + * Gets the position of this User + */ + // @ts-ignore + getPosition(): any /*Vector3d*/; + /** + * Gets the World UUID of this User. + *

May return empty when the world the player is in does not exist anymore

+ */ + // @ts-ignore + getWorldUniqueId(): java.util.Optional; + /** + * Sets the position and world of this User. + *

The UUID must belong to an existing world.

+ *

When the User {@link #isOnline()} this redirects to {@link Entity#setLocation(Location)}

+ */ + // @ts-ignore + setLocation(position: any /*Vector3d*/, world: java.util.UUID): boolean; + /** + * Sets the rotation of this entity. + *

The format of the rotation is represented by:

+ *

{@code x -> pitch}, {@code y -> yaw}, {@code z -> roll}

+ */ + // @ts-ignore + setRotation(rotation: any /*Vector3d*/): void; + /** + * Gets the rotation. + *

The format of the rotation is represented by:

+ *

{@code x -> pitch}, {@code y -> yaw}, {@code z -> roll}

+ */ + // @ts-ignore + getRotation(): any /*Vector3d*/; + /** + * Gets a copy of the {@link StatisticData} for this user. + */ + // @ts-ignore + getStatisticData(): org.spongepowered.api.data.manipulator.mutable.entity.StatisticData; + /** + * Gets the {@link Inventory} available for this Player's shared {@link EnderChest} + * contents. + */ + // @ts-ignore + getEnderChestInventory(): org.spongepowered.api.item.inventory.Inventory; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.player.gamemode.GameMode.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.player.gamemode.GameMode.d.ts new file mode 100644 index 00000000..796b4dc3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.player.gamemode.GameMode.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace player { + namespace gamemode { + // @ts-ignore + interface GameMode extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.player.gamemode.GameModes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.player.gamemode.GameModes.d.ts new file mode 100644 index 00000000..840e1d20 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.player.gamemode.GameModes.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace player { + namespace gamemode { + // @ts-ignore + class GameModes extends java.lang.Object { + // @ts-ignore + public static ADVENTURE: org.spongepowered.api.entity.living.player.gamemode.GameMode; + // @ts-ignore + public static CREATIVE: org.spongepowered.api.entity.living.player.gamemode.GameMode; + // @ts-ignore + public static NOT_SET: org.spongepowered.api.entity.living.player.gamemode.GameMode; + // @ts-ignore + public static SPECTATOR: org.spongepowered.api.entity.living.player.gamemode.GameMode; + // @ts-ignore + public static SURVIVAL: org.spongepowered.api.entity.living.player.gamemode.GameMode; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.player.tab.TabList.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.player.tab.TabList.d.ts new file mode 100644 index 00000000..8c1f564e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.player.tab.TabList.d.ts @@ -0,0 +1,77 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace player { + namespace tab { + // @ts-ignore + interface TabList { + /** + * Gets the associated {@link Player} with this {@link TabList}. + */ + // @ts-ignore + getPlayer(): org.spongepowered.api.entity.living.player.Player; + /** + * Gets this list's header. + */ + // @ts-ignore + getHeader(): java.util.Optional; + /** + * Sets this list's header. + *

When {@code null} is passed, an empty {@link Text} will + * be sent.

+ */ + // @ts-ignore + setHeader(header: org.spongepowered.api.text.Text): org.spongepowered.api.entity.living.player.tab.TabList; + /** + * Gets this list's footer. + */ + // @ts-ignore + getFooter(): java.util.Optional; + /** + * Sets this list's footer. + *

When {@code null} is passed, an empty {@link Text} will + * be sent.

+ */ + // @ts-ignore + setFooter(footer: org.spongepowered.api.text.Text): org.spongepowered.api.entity.living.player.tab.TabList; + /** + * Sets this list's header and footer. + *

When {@code null} is passed, an empty {@link Text} will + * be sent.

+ */ + // @ts-ignore + setHeaderAndFooter(header: org.spongepowered.api.text.Text, footer: org.spongepowered.api.text.Text): org.spongepowered.api.entity.living.player.tab.TabList; + /** + * Gets the entries on the list. + *

The returned collection should be immutable.

+ */ + // @ts-ignore + getEntries(): java.util.Collection; + /** + * Gets a {@link TabListEntry} matching the specified unique id. + */ + // @ts-ignore + getEntry(uniqueId: java.util.UUID): java.util.Optional; + /** + * Adds an entry to the list. + */ + // @ts-ignore + addEntry(entry: org.spongepowered.api.entity.living.player.tab.TabListEntry): org.spongepowered.api.entity.living.player.tab.TabList; + /** + * Removes an entry from the list. + *

Note that if this is used on a player, but they remain visible + * in-game, their skin will not work.

+ */ + // @ts-ignore + removeEntry(uniqueId: java.util.UUID): java.util.Optional; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.player.tab.TabListEntry.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.player.tab.TabListEntry.Builder.d.ts new file mode 100644 index 00000000..4aaecd8e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.player.tab.TabListEntry.Builder.d.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace player { + namespace tab { + namespace TabListEntry { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the {@link TabList} this entry is owned by. + */ + // @ts-ignore + list(list: org.spongepowered.api.entity.living.player.tab.TabList): org.spongepowered.api.entity.living.player.tab.TabListEntry.Builder; + /** + * Sets the profile for entries created by this builder. + */ + // @ts-ignore + profile(profile: org.spongepowered.api.profile.GameProfile): org.spongepowered.api.entity.living.player.tab.TabListEntry.Builder; + /** + * Sets the display name for entries created by this builder. + */ + // @ts-ignore + displayName(displayName: org.spongepowered.api.text.Text): org.spongepowered.api.entity.living.player.tab.TabListEntry.Builder; + /** + * Sets the latency for entries created by this builder. + */ + // @ts-ignore + latency(latency: number): org.spongepowered.api.entity.living.player.tab.TabListEntry.Builder; + /** + * Sets the gamemode for entries created by this builder. + */ + // @ts-ignore + gameMode(gameMode: org.spongepowered.api.entity.living.player.gamemode.GameMode): org.spongepowered.api.entity.living.player.tab.TabListEntry.Builder; + /** + * Builds an entry based off the values of this builder. + */ + // @ts-ignore + build(): org.spongepowered.api.entity.living.player.tab.TabListEntry; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.player.tab.TabListEntry.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.player.tab.TabListEntry.d.ts new file mode 100644 index 00000000..b36535d8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.living.player.tab.TabListEntry.d.ts @@ -0,0 +1,101 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace living { + namespace player { + namespace tab { + // @ts-ignore + interface TabListEntry { + /** + * Creates a new {@link Builder} to create {@link TabListEntry}s. + */ + // @ts-ignore + builder(): org.spongepowered.api.entity.living.player.tab.TabListEntry.Builder; + /** + * Gets the {@link TabList} that owns this entry. + */ + // @ts-ignore + getList(): org.spongepowered.api.entity.living.player.tab.TabList; + /** + * Gets the {@link GameProfile} associated with this entry. + */ + // @ts-ignore + getProfile(): org.spongepowered.api.profile.GameProfile; + /** + * Gets this entry's display name. + */ + // @ts-ignore + getDisplayName(): java.util.Optional; + /** + * Sets this entry's display name. + */ + // @ts-ignore + setDisplayName(displayName: org.spongepowered.api.text.Text): org.spongepowered.api.entity.living.player.tab.TabListEntry; + /** + * Gets the latency for this entry. + */ + // @ts-ignore + getLatency(): number; + /** + * Sets the latency for this entry. + *

The client displays connection bars based on this number.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
BarsTime
0Less than 0
11000+
2600 - 999
3300 - 599
4150 - 299
50 - 149
+ */ + // @ts-ignore + setLatency(latency: number): org.spongepowered.api.entity.living.player.tab.TabListEntry; + /** + * Gets the {@link GameMode} this entry is in. + */ + // @ts-ignore + getGameMode(): org.spongepowered.api.entity.living.player.gamemode.GameMode; + /** + * Sets this entry's gamemode. + *

When using {@link GameModes#SPECTATOR} and this entry is of an + * online {@link Player}, the player will have "spectator effects". Such + * effects can include invisibility and noclip.

+ */ + // @ts-ignore + setGameMode(gameMode: org.spongepowered.api.entity.living.player.gamemode.GameMode): org.spongepowered.api.entity.living.player.tab.TabListEntry; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.DamagingProjectile.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.DamagingProjectile.d.ts new file mode 100644 index 00000000..03a4dc7a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.DamagingProjectile.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + // @ts-ignore + interface DamagingProjectile extends org.spongepowered.api.entity.projectile.Projectile { + /** + * Gets the damaging data for this {@link DamagingProjectile}. + *

The damaging data defines how much damage the projectile will deal + * upon hitting an {@link Entity}, before the explosion.

+ */ + // @ts-ignore + getDamagingData(): org.spongepowered.api.data.manipulator.mutable.entity.DamagingData; + /** + * Gets the damage this projectile will deal to a {@link Living} + * if hit. + */ + // @ts-ignore + damage(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + /** + * Gets the {@link MapValue} for representing the custom damage values to + * use if the owner strikes an entity of that type. + *

Note that in events, the damage defined for the provided + * {@link EntityType} will take priority over the "default" damage as + * defined from {@link #damage()}.

+ */ + // @ts-ignore + damageForEntity(): org.spongepowered.api.data.value.mutable.MapValue; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.Egg.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.Egg.d.ts new file mode 100644 index 00000000..3fc28da3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.Egg.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + // @ts-ignore + interface Egg extends org.spongepowered.api.entity.projectile.DamagingProjectile { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.EnderPearl.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.EnderPearl.d.ts new file mode 100644 index 00000000..85a1bfce --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.EnderPearl.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + // @ts-ignore + interface EnderPearl extends org.spongepowered.api.entity.projectile.DamagingProjectile { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.EntityTargetingProjectile.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.EntityTargetingProjectile.d.ts new file mode 100644 index 00000000..8e3bb750 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.EntityTargetingProjectile.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + // @ts-ignore + interface EntityTargetingProjectile extends org.spongepowered.api.entity.projectile.Projectile { + /** + * Gets the targeted entity data for this {@link EntityTargetingProjectile}. + *

The targeted entity data defines which entity this projectile will target.

+ */ + // @ts-ignore + getTargetData(): org.spongepowered.api.data.manipulator.mutable.entity.TargetedEntityData; + /** + * Gets the entity this projectile will target. + */ + // @ts-ignore + target(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.EyeOfEnder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.EyeOfEnder.d.ts new file mode 100644 index 00000000..b24c04c4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.EyeOfEnder.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + // @ts-ignore + interface EyeOfEnder extends org.spongepowered.api.entity.projectile.Projectile { + /** + * Gets a copy of the {@link TargetedLocationData} this {@link EyeOfEnder} + * is "flying" towards. + */ + // @ts-ignore + getTargetLocationData(): org.spongepowered.api.data.manipulator.mutable.TargetedLocationData; + /** + * Gets the {@link Value} for the targeted {@link Location}. + */ + // @ts-ignore + target(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.Firework.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.Firework.d.ts new file mode 100644 index 00000000..15d2870e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.Firework.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + // @ts-ignore + interface Firework extends org.spongepowered.api.entity.projectile.Projectile, org.spongepowered.api.entity.explosive.FusedExplosive { + /** + * Gets a copy of the {@link FireworkEffectData} for this firework. + */ + // @ts-ignore + getFireworkData(): org.spongepowered.api.data.manipulator.mutable.FireworkEffectData; + /** + * Gets the {@link ListValue} of {@link FireworkEffect}s. + *

Note that for {@link ItemTypes#FIREWORK_CHARGE} only the first effect + * will apply to the charge.

+ */ + // @ts-ignore + effects(): org.spongepowered.api.data.value.mutable.ListValue; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.FishHook.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.FishHook.d.ts new file mode 100644 index 00000000..d3c7386a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.FishHook.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + // @ts-ignore + interface FishHook extends org.spongepowered.api.entity.projectile.Projectile { + /** + * Gets the hooked entity for this fish hook. + *

Fishooks can attach to {@link Entity} objects in the world, as though + * they are temporarily leashed. The hooked entity may also be null.

+ */ + // @ts-ignore + getHookedEntity(): java.util.Optional; + /** + * Sets the hooked entity for this fish hook. + *

Fishhooks can attach to {@link Entity} objects in the world, as though + * they are temporarily leashed. The hooked entity may also be null.

+ */ + // @ts-ignore + setHookedEntity(entity: org.spongepowered.api.entity.Entity): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.LlamaSpit.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.LlamaSpit.d.ts new file mode 100644 index 00000000..6d678546 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.LlamaSpit.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + // @ts-ignore + interface LlamaSpit extends org.spongepowered.api.entity.projectile.Projectile { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.Projectile.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.Projectile.d.ts new file mode 100644 index 00000000..bcc6733a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.Projectile.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + // @ts-ignore + interface Projectile extends org.spongepowered.api.entity.Entity { + /** + * Gets the shooter of this projectile. + *

All projectiles have a {@link ProjectileSource} regardless of whether + * the projectile was launched via plugin or mod.

+ */ + // @ts-ignore + getShooter(): org.spongepowered.api.entity.projectile.source.ProjectileSource; + /** + * Sets the shooter of this projectile. + *

All projectiles have a {@link ProjectileSource} regardless of whether + * the projectile was launched via plugin or mod.

+ */ + // @ts-ignore + setShooter(shooter: org.spongepowered.api.entity.projectile.source.ProjectileSource): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.ProjectileLauncher.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.ProjectileLauncher.d.ts new file mode 100644 index 00000000..3eeeef78 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.ProjectileLauncher.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + // @ts-ignore + interface ProjectileLauncher { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.Snowball.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.Snowball.d.ts new file mode 100644 index 00000000..2030b6d3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.Snowball.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + // @ts-ignore + interface Snowball extends org.spongepowered.api.entity.projectile.DamagingProjectile { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.ThrownExpBottle.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.ThrownExpBottle.d.ts new file mode 100644 index 00000000..ad7fd5a8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.ThrownExpBottle.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + // @ts-ignore + interface ThrownExpBottle extends org.spongepowered.api.entity.projectile.Projectile { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.ThrownPotion.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.ThrownPotion.d.ts new file mode 100644 index 00000000..0ba85f20 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.ThrownPotion.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + // @ts-ignore + interface ThrownPotion extends org.spongepowered.api.entity.projectile.Projectile { + /** + * Gets a copy of the {@link RepresentedItemData} used by this potion. + */ + // @ts-ignore + getPotionItemData(): org.spongepowered.api.data.manipulator.mutable.RepresentedItemData; + /** + * Gets the {@link Value} for the represented {@link ItemStack} as an + * {@link ItemStackSnapshot}. + */ + // @ts-ignore + item(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.arrow.Arrow.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.arrow.Arrow.d.ts new file mode 100644 index 00000000..6f69cd4a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.arrow.Arrow.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + namespace arrow { + // @ts-ignore + interface Arrow extends org.spongepowered.api.entity.projectile.DamagingProjectile { + /** + * Gets a copy of the current {@link KnockbackData} that this arrow + * has. + */ + // @ts-ignore + getKnockbackData(): org.spongepowered.api.data.manipulator.mutable.entity.KnockbackData; + /** + * Gets the {@link MutableBoundedValue} for the "knockback strength" + * that this arrow has. + */ + // @ts-ignore + knockbackStrength(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.arrow.SpectralArrow.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.arrow.SpectralArrow.d.ts new file mode 100644 index 00000000..6e3314f5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.arrow.SpectralArrow.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + namespace arrow { + // @ts-ignore + interface SpectralArrow extends org.spongepowered.api.entity.projectile.arrow.Arrow { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.arrow.TippedArrow.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.arrow.TippedArrow.d.ts new file mode 100644 index 00000000..0dc4e5ef --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.arrow.TippedArrow.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + namespace arrow { + // @ts-ignore + interface TippedArrow extends org.spongepowered.api.entity.projectile.arrow.Arrow { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.explosive.DragonFireball.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.explosive.DragonFireball.d.ts new file mode 100644 index 00000000..c1509123 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.explosive.DragonFireball.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + namespace explosive { + // @ts-ignore + interface DragonFireball extends org.spongepowered.api.entity.projectile.explosive.fireball.Fireball { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.explosive.WitherSkull.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.explosive.WitherSkull.d.ts new file mode 100644 index 00000000..13e48376 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.explosive.WitherSkull.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + namespace explosive { + // @ts-ignore + interface WitherSkull extends org.spongepowered.api.entity.projectile.explosive.fireball.Fireball, org.spongepowered.api.entity.explosive.Explosive { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.explosive.fireball.Fireball.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.explosive.fireball.Fireball.d.ts new file mode 100644 index 00000000..e0057bd4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.explosive.fireball.Fireball.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + namespace explosive { + namespace fireball { + // @ts-ignore + interface Fireball extends org.spongepowered.api.entity.projectile.DamagingProjectile { + // @ts-ignore + acceleration(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.explosive.fireball.LargeFireball.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.explosive.fireball.LargeFireball.d.ts new file mode 100644 index 00000000..0c2cffc5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.explosive.fireball.LargeFireball.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + namespace explosive { + namespace fireball { + // @ts-ignore + interface LargeFireball extends org.spongepowered.api.entity.projectile.explosive.fireball.Fireball, org.spongepowered.api.entity.explosive.Explosive { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.explosive.fireball.SmallFireball.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.explosive.fireball.SmallFireball.d.ts new file mode 100644 index 00000000..59d4d06a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.explosive.fireball.SmallFireball.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + namespace explosive { + namespace fireball { + // @ts-ignore + interface SmallFireball extends org.spongepowered.api.entity.projectile.explosive.fireball.Fireball { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.source.BlockProjectileSource.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.source.BlockProjectileSource.d.ts new file mode 100644 index 00000000..fb9700a0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.source.BlockProjectileSource.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + namespace source { + // @ts-ignore + interface BlockProjectileSource extends org.spongepowered.api.entity.projectile.source.ProjectileSource { + /** + * Gets the {@link Location} where the projectile source is at. + */ + // @ts-ignore + getLocation(): org.spongepowered.api.world.Location; + /** + * Gets the {@link BlockState} of the projectile source. + */ + // @ts-ignore + getBlock(): org.spongepowered.api.block.BlockState; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.source.ProjectileSource.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.source.ProjectileSource.d.ts new file mode 100644 index 00000000..ffdc5ab6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.source.ProjectileSource.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + namespace source { + // @ts-ignore + interface ProjectileSource { + // @ts-ignore + UNKNOWN: org.spongepowered.api.entity.projectile.source.UnknownProjectileSource; + /** + * Launches a {@link Projectile} from this projectile source. + */ + // @ts-ignore + launchProjectile(projectileClass: java.lang.Class): java.util.Optional; + /** + * Launches a {@link Projectile} from this projectile source. + */ + // @ts-ignore + launchProjectile(projectileClass: java.lang.Class, velocity: any /*Vector3d*/): java.util.Optional; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.source.UnknownProjectileSource.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.source.UnknownProjectileSource.d.ts new file mode 100644 index 00000000..fadce6f8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.projectile.source.UnknownProjectileSource.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace projectile { + namespace source { + // @ts-ignore + class UnknownProjectileSource extends java.lang.Object implements org.spongepowered.api.entity.projectile.source.ProjectileSource { + // @ts-ignore + public launchProjectile(projectileClass: java.lang.Class): java.util.Optional; + // @ts-ignore + public launchProjectile(projectileClass: java.lang.Class, velocity: any /*Vector3d*/): java.util.Optional; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.Boat.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.Boat.d.ts new file mode 100644 index 00000000..a8cf35f3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.Boat.d.ts @@ -0,0 +1,61 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace vehicle { + // @ts-ignore + interface Boat extends org.spongepowered.api.entity.Entity { + /** + * Gets whether this boat is currently in water. + */ + // @ts-ignore + isInWater(): boolean; + /** + * Gets the maximum speed that this boat is allowed to travel at. + *

The Default value is 0.4.

+ */ + // @ts-ignore + getMaxSpeed(): number; + /** + * Sets the maximum speed that this boat is allowed to travel at. + *

The Default value is 0.4.

+ */ + // @ts-ignore + setMaxSpeed(maxSpeed: number): void; + /** + * Gets whether or not the boat is able to move freely on land. + */ + // @ts-ignore + canMoveOnLand(): boolean; + /** + * Gets whether or not the boat is able to move freely on land. + */ + // @ts-ignore + setMoveOnLand(moveOnLand: boolean): void; + /** + * Gets the rate at which occupied boats decelerate. + */ + // @ts-ignore + getOccupiedDeceleration(): number; + /** + * Sets the rate at which occupied boats decelerate. + */ + // @ts-ignore + setOccupiedDeceleration(occupiedDeceleration: number): void; + /** + * Gets the rate at which unoccupied boats decelerate. + */ + // @ts-ignore + getUnoccupiedDeceleration(): number; + /** + * Sets the rate at which unoccupied boats decelerate. + */ + // @ts-ignore + setUnoccupiedDeceleration(unoccupiedDeceleration: number): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.ChestMinecart.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.ChestMinecart.d.ts new file mode 100644 index 00000000..d9bd6d2e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.ChestMinecart.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace vehicle { + namespace minecart { + // @ts-ignore + interface ChestMinecart extends org.spongepowered.api.entity.vehicle.minecart.ContainerMinecart { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.CommandBlockMinecart.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.CommandBlockMinecart.d.ts new file mode 100644 index 00000000..e7d3e4bb --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.CommandBlockMinecart.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace vehicle { + namespace minecart { + // @ts-ignore + interface CommandBlockMinecart extends org.spongepowered.api.entity.vehicle.minecart.Minecart, org.spongepowered.api.command.source.CommandBlockSource { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.ContainerMinecart.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.ContainerMinecart.d.ts new file mode 100644 index 00000000..51bba9ec --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.ContainerMinecart.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace vehicle { + namespace minecart { + // @ts-ignore + interface ContainerMinecart extends org.spongepowered.api.entity.vehicle.minecart.Minecart, org.spongepowered.api.item.inventory.Carrier, org.spongepowered.api.item.inventory.type.CarriedInventory { + // @ts-ignore + getInventory(): org.spongepowered.api.item.inventory.type.CarriedInventory; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.FurnaceMinecart.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.FurnaceMinecart.d.ts new file mode 100644 index 00000000..bb76f44e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.FurnaceMinecart.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace vehicle { + namespace minecart { + // @ts-ignore + interface FurnaceMinecart extends org.spongepowered.api.entity.vehicle.minecart.Minecart { + /** + * Gets the current fuel time in ticks. + *

Usually, the fuel time will decay until reaching 0. At zero, the fuel + * minecart will decelerate to a stop.

+ */ + // @ts-ignore + getFuel(): number; + /** + * Sets the fuel time in ticks. + *

Usually, the fuel time will decay until reaching 0. At zero, the fuel + * minecart will decelerate to a stop.

+ */ + // @ts-ignore + setFuel(fuel: number): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.HopperMinecart.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.HopperMinecart.d.ts new file mode 100644 index 00000000..1b46fd00 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.HopperMinecart.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace vehicle { + namespace minecart { + // @ts-ignore + interface HopperMinecart extends org.spongepowered.api.entity.vehicle.minecart.ContainerMinecart { + /** + * Gets a copy of the {@link CooldownData}. The cooldown data represents the + * delay before this {@link HopperMinecart} will attempt to transfer an + * {@link ItemStack}. + */ + // @ts-ignore + getCooldownData(): org.spongepowered.api.data.manipulator.mutable.tileentity.CooldownData; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.Minecart.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.Minecart.d.ts new file mode 100644 index 00000000..3c075462 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.Minecart.d.ts @@ -0,0 +1,72 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace vehicle { + namespace minecart { + // @ts-ignore + interface Minecart extends org.spongepowered.api.entity.Entity { + /** + * Gets whether or not the minecart is currently on a valid rail block. + */ + // @ts-ignore + isOnRail(): boolean; + /** + * Gets the absolute maximum speed that this cart is allowed to travel at. + *

The default value is 0.4.

+ */ + // @ts-ignore + getSwiftness(): number; + /** + * Sets the absolute maximum speed that this cart is allowed to travel at. + *

The default value is 0.4.

+ */ + // @ts-ignore + setSwiftness(swiftness: number): void; + /** + * Gets the maximum speed that this cart is allowed to travel at the instant + * this method is called. + *

This differs from {@link Minecart#getSwiftness()} in that its value is + * affected by the block/rail beneath the cart. However, it is still + * impacted and limited by the cart's swiftness.

+ */ + // @ts-ignore + getPotentialMaxSpeed(): number; + /** + * Gets whether or not the minecart slows down faster without a passenger. + */ + // @ts-ignore + doesSlowWhenEmpty(): boolean; + /** + * Sets whether or not the minecart slows down faster without a passenger. + */ + // @ts-ignore + setSlowWhenEmpty(slowWhenEmpty: boolean): void; + /** + * Gets the velocity modifier applied when the minecart is airborne. + */ + // @ts-ignore + getAirborneVelocityMod(): any /*Vector3d*/; + /** + * Sets the velocity modifier applied when the minecart is airborne. + */ + // @ts-ignore + setAirborneVelocityMod(airborneVelocityMod: any /*Vector3d*/): void; + /** + * Gets the velocity modifier applied when the minecart is not on rails. + */ + // @ts-ignore + getDerailedVelocityMod(): any /*Vector3d*/; + /** + * Sets the velocity modifier applied when the minecart is not on rails. + */ + // @ts-ignore + setDerailedVelocityMod(derailedVelocityMod: any /*Vector3d*/): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.MobSpawnerMinecart.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.MobSpawnerMinecart.d.ts new file mode 100644 index 00000000..6c7a9c21 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.MobSpawnerMinecart.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace vehicle { + namespace minecart { + // @ts-ignore + interface MobSpawnerMinecart extends org.spongepowered.api.entity.vehicle.minecart.Minecart { + /** + * Gets a copy of the {@link MobSpawnerData}. + */ + // @ts-ignore + getSpawnerData(): org.spongepowered.api.data.manipulator.mutable.MobSpawnerData; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.RideableMinecart.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.RideableMinecart.d.ts new file mode 100644 index 00000000..8d38a869 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.RideableMinecart.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace vehicle { + namespace minecart { + // @ts-ignore + interface RideableMinecart extends org.spongepowered.api.entity.vehicle.minecart.Minecart { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.TNTMinecart.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.TNTMinecart.d.ts new file mode 100644 index 00000000..d393d57f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.vehicle.minecart.TNTMinecart.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace vehicle { + namespace minecart { + // @ts-ignore + interface TNTMinecart extends org.spongepowered.api.entity.vehicle.minecart.Minecart, org.spongepowered.api.entity.explosive.FusedExplosive { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.weather.Lightning.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.weather.Lightning.d.ts new file mode 100644 index 00000000..2399d20f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.weather.Lightning.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace weather { + // @ts-ignore + interface Lightning extends org.spongepowered.api.entity.weather.WeatherEffect { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.entity.weather.WeatherEffect.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.weather.WeatherEffect.d.ts new file mode 100644 index 00000000..f6617e4c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.entity.weather.WeatherEffect.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace entity { + namespace weather { + // @ts-ignore + interface WeatherEffect extends org.spongepowered.api.entity.Entity { + /** + * Returns whether this weather effect is an effect and doesn't deal damage. + */ + // @ts-ignore + isEffect(): boolean; + /** + * Sets whether this weather effect is an effect and doesn't deal damage. + */ + // @ts-ignore + setEffect(effect: boolean): void; + /** + * Gets a copy of the {@link ExpirableData} for this weather entity. + */ + // @ts-ignore + getExpiringData(): org.spongepowered.api.data.manipulator.mutable.entity.ExpirableData; + /** + * Gets the {@link MutableBoundedValue} for the amount of "ticks" remaining + * before the "expiration" occurs. + */ + // @ts-ignore + expireTicks(): org.spongepowered.api.data.value.mutable.MutableBoundedValue; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.Cancellable.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.Cancellable.d.ts new file mode 100644 index 00000000..27fd6e11 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.Cancellable.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + // @ts-ignore + interface Cancellable { + /** + * Gets if the {@link Event} has been cancelled. + */ + // @ts-ignore + isCancelled(): boolean; + /** + * Sets the cancelled state of the {@link Event}. + */ + // @ts-ignore + setCancelled(cancel: boolean): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.CauseStackManager.StackFrame.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.CauseStackManager.StackFrame.d.ts new file mode 100644 index 00000000..8f213e0a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.CauseStackManager.StackFrame.d.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace CauseStackManager { + // @ts-ignore + interface StackFrame { + /** + * Gets the current {@link Cause} object from the current cause stack. + */ + // @ts-ignore + getCurrentCause(): org.spongepowered.api.event.cause.Cause; + /** + * Gets an {@link EventContext} object on the current contextual + * information. + */ + // @ts-ignore + getCurrentContext(): org.spongepowered.api.event.cause.EventContext; + /** + * Pushes an object to the current cause stack which will associate + * it with all events through from api actions until it is + * popped off again. + */ + // @ts-ignore + pushCause(obj: java.lang.Object): org.spongepowered.api.event.CauseStackManager.StackFrame; + /** + * Pops the most recently pushed cause object off of the stack and + * returns it. + */ + // @ts-ignore + popCause(): java.lang.Object; + /** + * Adds the given object to the current context under the given key. + */ + // @ts-ignore + addContext(key: org.spongepowered.api.event.cause.EventContextKey, value: java.lang.Object): org.spongepowered.api.event.CauseStackManager.StackFrame; + /** + * Removes the given context key from the current context. + */ + // @ts-ignore + removeContext(key: org.spongepowered.api.event.cause.EventContextKey): java.util.Optional; + // @ts-ignore + close(): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.CauseStackManager.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.CauseStackManager.d.ts new file mode 100644 index 00000000..ac11baa4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.CauseStackManager.d.ts @@ -0,0 +1,82 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + // @ts-ignore + interface CauseStackManager { + /** + * Gets the current {@link Cause} object from the current cause stack. + */ + // @ts-ignore + getCurrentCause(): org.spongepowered.api.event.cause.Cause; + /** + * Gets an {@link EventContext} object on the current contextual + * information. + */ + // @ts-ignore + getCurrentContext(): org.spongepowered.api.event.cause.EventContext; + /** + * Pushes an object to the current cause stack which will associate it with + * all events through from api actions until it is popped off again. + */ + // @ts-ignore + pushCause(obj: java.lang.Object): org.spongepowered.api.event.CauseStackManager; + /** + * Pops the most recently pushed cause object off of the stack and returns + * it. + */ + // @ts-ignore + popCause(): java.lang.Object; + /** + * Pops the most recently n pushed cause objects off of the stack. + */ + // @ts-ignore + popCauses(n: number): void; + /** + * Retrieves but does not remove the most recently pushed cause object. + */ + // @ts-ignore + peekCause(): java.lang.Object; + /** + * Pushes a frame of the current cause stack and context state. + */ + // @ts-ignore + pushCauseFrame(): org.spongepowered.api.event.CauseStackManager.StackFrame; + /** + * Replaces the current cause stack and context with the cause frame at the + * top of the frame stack. + *

The frame handle is required to ensure that frames are popped of in + * order and are not left in the stack. If an attempt is made to pop a frame + * which is not the head of the frame stack then an error will be thrown as + * this indicates that a frame was not popped properly.

+ */ + // @ts-ignore + popCauseFrame(handle: org.spongepowered.api.event.CauseStackManager.StackFrame): void; + /** + * Adds the given object to the current context under the given key. + */ + // @ts-ignore + addContext(key: org.spongepowered.api.event.cause.EventContextKey, value: java.lang.Object): org.spongepowered.api.event.CauseStackManager; + /** + * Gets the context value with the given key. + */ + // @ts-ignore + getContext(key: org.spongepowered.api.event.cause.EventContextKey): java.util.Optional; + /** + * Gets the context value with the given key. + *

If the key is not available, {@link NoSuchElementException} will be + * thrown.

+ */ + // @ts-ignore + requireContext(key: org.spongepowered.api.event.cause.EventContextKey): java.lang.Object; + /** + * Removes the given context key from the current context. + */ + // @ts-ignore + removeContext(key: org.spongepowered.api.event.cause.EventContextKey): java.util.Optional; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.Event.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.Event.d.ts new file mode 100644 index 00000000..21158331 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.Event.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + // @ts-ignore + interface Event { + /** + * Gets the cause for the event. The Cause of the event + * is an object which implements the Iterable interface. + * So, when investigating the Cause of the event a common + * idiom is to use operations (functions) on the result + * of getCause as follows: + * Use-case: Getting the Player (if any) responsible: + * {@code Optional optPlayer = event.getCause().first(Player.class);} + */ + // @ts-ignore + getCause(): org.spongepowered.api.event.cause.Cause; + /** + * Gets the source of the event (the first object in the cause). + */ + // @ts-ignore + getSource(): java.lang.Object; + /** + * Gets the context of the event. + */ + // @ts-ignore + getContext(): org.spongepowered.api.event.cause.EventContext; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.EventListener.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.EventListener.d.ts new file mode 100644 index 00000000..f2e68295 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.EventListener.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + // @ts-ignore + interface EventListener { + /** + * Called when a {@link Event} registered to this listener is called. + */ + // @ts-ignore + handle(event: org.spongepowered.api.event.Event): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.EventManager.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.EventManager.d.ts new file mode 100644 index 00000000..a896f82d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.EventManager.d.ts @@ -0,0 +1,93 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + // @ts-ignore + interface EventManager { + /** + * Registers {@link Event} methods annotated with @{@link Listener} in the + * specified object. + *

Only methods that are public will be registered and the class must be + * public as well.

+ */ + // @ts-ignore + registerListeners(plugin: java.lang.Object, obj: java.lang.Object): void; + /** + * Registers an event listener for a specific event class. + *

Normally, the annotation-based way in + * {@link #registerListeners(Object, Object)} should be preferred over this way. This + * method exists primarily to support dynamic event registration like needed + * in scripting plugins.

+ */ + // @ts-ignore + registerListener(plugin: java.lang.Object, eventClass: java.lang.Class, listener: org.spongepowered.api.event.EventListener): void; + /** + * Registers an event listener for a specific event {@link TypeToken}. + *

Normally, the annotation-based way in + * {@link #registerListeners(Object, Object)} should be preferred over this way. This + * method exists primarily to support dynamic event registration like needed + * in scripting plugins.

+ */ + // @ts-ignore + registerListener(plugin: java.lang.Object, eventType: any, listener: org.spongepowered.api.event.EventListener): void; + /** + * Registers an event listener with the specified order for a specific event + * class. + *

Normally, the annotation-based way in + * {@link #registerListeners(Object, Object)} should be preferred over this way. This + * method exists primarily to support dynamic event registration like needed + * in scripting plugins.

+ */ + // @ts-ignore + registerListener(plugin: java.lang.Object, eventClass: java.lang.Class, order: org.spongepowered.api.event.Order, listener: org.spongepowered.api.event.EventListener): void; + /** + * Registers an event listener with the specified order for a specific event + * {@link TypeToken}. + *

Normally, the annotation-based way in + * {@link #registerListeners(Object, Object)} should be preferred over this way. This + * method exists primarily to support dynamic event registration like needed + * in scripting plugins.

+ */ + // @ts-ignore + registerListener(plugin: java.lang.Object, eventType: any, order: org.spongepowered.api.event.Order, listener: org.spongepowered.api.event.EventListener): void; + /** + * Registers an event listener with the specified order for a specific event + * class. + *

Normally, the annotation-based way in + * {@link #registerListeners(Object, Object)} should be preferred over this way. This + * method exists primarily to support dynamic event registration like needed + * in scripting plugins.

+ */ + // @ts-ignore + registerListener(plugin: java.lang.Object, eventClass: java.lang.Class, order: org.spongepowered.api.event.Order, beforeModifications: boolean, listener: org.spongepowered.api.event.EventListener): void; + /** + * Registers an event listener with the specified order for a specific event + * class. + *

Normally, the annotation-based way in + * {@link #registerListeners(Object, Object)} should be preferred over this way. This + * method exists primarily to support dynamic event registration like needed + * in scripting plugins.

+ */ + // @ts-ignore + registerListener(plugin: java.lang.Object, eventType: any, order: org.spongepowered.api.event.Order, beforeModifications: boolean, listener: org.spongepowered.api.event.EventListener): void; + /** + * Un-registers an object from receiving {@link Event}s. + */ + // @ts-ignore + unregisterListeners(obj: java.lang.Object): void; + /** + * Un-registers all event listeners of a plugin. + */ + // @ts-ignore + unregisterPluginListeners(plugin: java.lang.Object): void; + /** + * Calls a {@link Event} to all listeners that listen to it. + */ + // @ts-ignore + post(event: org.spongepowered.api.event.Event): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.GenericEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.GenericEvent.d.ts new file mode 100644 index 00000000..ff219532 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.GenericEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + // @ts-ignore + interface GenericEvent extends org.spongepowered.api.event.Event { + /** + * Gets the generic {@link TypeToken} used + * by this {@link Event}. + */ + // @ts-ignore + getGenericType(): any; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.Listener.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.Listener.d.ts new file mode 100644 index 00000000..6129ca15 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.Listener.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + // @ts-ignore + interface Listener { + /** + * The order this listener should be called in relation to other listeners + * in the {@link EventManager}. + */ + // @ts-ignore + order(): org.spongepowered.api.event.Order; + /** + * Whether this listener should be called before any other server mods, such + * as Forge mods. All Sponge event listeners are called after mods, unless + * they specify the {@code #beforeModifications()} flag to be true. + */ + // @ts-ignore + beforeModifications(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.Order.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.Order.d.ts new file mode 100644 index 00000000..0b6401e8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.Order.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + // @ts-ignore + class Order extends java.lang.Enum { + // @ts-ignore + public static PRE: org.spongepowered.api.event.Order; + // @ts-ignore + public static AFTER_PRE: org.spongepowered.api.event.Order; + // @ts-ignore + public static FIRST: org.spongepowered.api.event.Order; + // @ts-ignore + public static EARLY: org.spongepowered.api.event.Order; + // @ts-ignore + public static DEFAULT: org.spongepowered.api.event.Order; + // @ts-ignore + public static LATE: org.spongepowered.api.event.Order; + // @ts-ignore + public static LAST: org.spongepowered.api.event.Order; + // @ts-ignore + public static BEFORE_POST: org.spongepowered.api.event.Order; + // @ts-ignore + public static POST: org.spongepowered.api.event.Order; + // @ts-ignore + public static values(): org.spongepowered.api.event.Order[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.event.Order; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.TristateResult.Result.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.TristateResult.Result.d.ts new file mode 100644 index 00000000..375b9cf5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.TristateResult.Result.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace TristateResult { + // @ts-ignore + class Result extends java.lang.Enum { + // @ts-ignore + public static DENY: org.spongepowered.api.event.TristateResult.Result; + // @ts-ignore + public static DEFAULT: org.spongepowered.api.event.TristateResult.Result; + // @ts-ignore + public static ALLOW: org.spongepowered.api.event.TristateResult.Result; + // @ts-ignore + public static values(): org.spongepowered.api.event.TristateResult.Result[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.event.TristateResult.Result; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.TristateResult.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.TristateResult.d.ts new file mode 100644 index 00000000..ecbfa5c6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.TristateResult.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + // @ts-ignore + interface TristateResult { + /** + * Returns whether the + * {@link TristateResult.Result#ALLOW} can be + * used. + */ + // @ts-ignore + hasAllowResult(): boolean; + /** + * Returns the original {@link Result} of this event. + */ + // @ts-ignore + getOriginalResult(): org.spongepowered.api.event.TristateResult.Result; + /** + * Returns the {@link Result} of this event. + */ + // @ts-ignore + getResult(): org.spongepowered.api.event.TristateResult.Result; + /** + * Sets the result value for this event. + *

Note: The functionality of setting the {@link Result} is defined on a + * per-event basis.

+ */ + // @ts-ignore + setResult(value: org.spongepowered.api.event.TristateResult.Result): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.CollideEvent.Impact.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.CollideEvent.Impact.d.ts new file mode 100644 index 00000000..a572d899 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.CollideEvent.Impact.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace action { + namespace CollideEvent { + // @ts-ignore + interface Impact extends org.spongepowered.api.event.action.CollideEvent { + /** + * Gets the {@link Location} where the impact took place. + */ + // @ts-ignore + getImpactPoint(): org.spongepowered.api.world.Location; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.CollideEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.CollideEvent.d.ts new file mode 100644 index 00000000..e78746ce --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.CollideEvent.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace action { + // @ts-ignore + interface CollideEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.FishingEvent.HookEntity.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.FishingEvent.HookEntity.d.ts new file mode 100644 index 00000000..2e430f20 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.FishingEvent.HookEntity.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace action { + namespace FishingEvent { + // @ts-ignore + interface HookEntity extends org.spongepowered.api.event.action.FishingEvent, org.spongepowered.api.event.entity.TargetEntityEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.FishingEvent.Start.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.FishingEvent.Start.d.ts new file mode 100644 index 00000000..6216de9d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.FishingEvent.Start.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace action { + namespace FishingEvent { + // @ts-ignore + interface Start extends org.spongepowered.api.event.action.FishingEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.FishingEvent.Stop.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.FishingEvent.Stop.d.ts new file mode 100644 index 00000000..3dfba536 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.FishingEvent.Stop.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace action { + namespace FishingEvent { + // @ts-ignore + interface Stop extends org.spongepowered.api.event.action.FishingEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets a list of {@link Transaction}s for each {@link ItemStackSnapshot} + * that will be spawned if this event is not cancelled. + */ + // @ts-ignore + getTransactions(): java.util.List; + /** + * Gets a list of {@link Transaction}s for each {@link ItemStackSnapshot} + * that will be spawned if this event is not cancelled. + */ + // @ts-ignore + getItemStackTransaction(): java.util.List; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.FishingEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.FishingEvent.d.ts new file mode 100644 index 00000000..324cdd6e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.FishingEvent.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace action { + // @ts-ignore + interface FishingEvent extends org.spongepowered.api.event.Event { + /** + * Gets the {@link FishHook} related with this event. + */ + // @ts-ignore + getFishHook(): org.spongepowered.api.entity.projectile.FishHook; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.InteractEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.InteractEvent.d.ts new file mode 100644 index 00000000..9a69ade7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.InteractEvent.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace action { + // @ts-ignore + interface InteractEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + /** + * Gets the point of interaction where the interaction occurred as + * a {@link Vector3d}. + */ + // @ts-ignore + getInteractionPoint(): java.util.Optional; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.LightningEvent.Post.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.LightningEvent.Post.d.ts new file mode 100644 index 00000000..63a4d8d4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.LightningEvent.Post.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace action { + namespace LightningEvent { + // @ts-ignore + interface Post extends org.spongepowered.api.event.action.LightningEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.LightningEvent.Pre.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.LightningEvent.Pre.d.ts new file mode 100644 index 00000000..a20b9ef7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.LightningEvent.Pre.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace action { + namespace LightningEvent { + // @ts-ignore + interface Pre extends org.spongepowered.api.event.action.LightningEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.LightningEvent.Strike.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.LightningEvent.Strike.d.ts new file mode 100644 index 00000000..5e50cdb0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.LightningEvent.Strike.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace action { + namespace LightningEvent { + // @ts-ignore + interface Strike extends org.spongepowered.api.event.action.LightningEvent, org.spongepowered.api.event.entity.AffectEntityEvent, org.spongepowered.api.event.block.ChangeBlockEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.LightningEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.LightningEvent.d.ts new file mode 100644 index 00000000..70c0fd33 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.LightningEvent.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace action { + // @ts-ignore + interface LightningEvent extends org.spongepowered.api.event.Event { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.SleepingEvent.Finish.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.SleepingEvent.Finish.d.ts new file mode 100644 index 00000000..15ec1c11 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.SleepingEvent.Finish.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace action { + namespace SleepingEvent { + // @ts-ignore + interface Finish extends org.spongepowered.api.event.action.SleepingEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.SleepingEvent.Post.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.SleepingEvent.Post.d.ts new file mode 100644 index 00000000..e6b270f6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.SleepingEvent.Post.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace action { + namespace SleepingEvent { + // @ts-ignore + interface Post extends org.spongepowered.api.event.action.SleepingEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets whether the spawn transform for the human was set. + *

The case that spawn may have not been set includes:

+ *
  • A player attempting to sleep in a bed in the nether
+ */ + // @ts-ignore + isSpawnSet(): boolean; + /** + * Gets a copy of the spawn transform of the human when leaving the bed. + *

This may have not been set by the event, so checking + * {@link #isSpawnSet()} is advisable. If spawn has not been set, + * it will return {@link Optional#empty()}.

+ */ + // @ts-ignore + getSpawnTransform(): java.util.Optional; + /** + * Sets the new spawn transform of the human leaving the bed. + *

If spawn {@link #isSpawnSet()} was not in fact set by this event, + * this does not override the return value. The given spawn should be + * a valid location.

+ */ + // @ts-ignore + setSpawnTransform(transform: org.spongepowered.api.entity.Transform): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.SleepingEvent.Pre.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.SleepingEvent.Pre.d.ts new file mode 100644 index 00000000..2fe0ddc5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.SleepingEvent.Pre.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace action { + namespace SleepingEvent { + // @ts-ignore + interface Pre extends org.spongepowered.api.event.action.SleepingEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.SleepingEvent.Tick.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.SleepingEvent.Tick.d.ts new file mode 100644 index 00000000..8cfaa747 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.SleepingEvent.Tick.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace action { + namespace SleepingEvent { + // @ts-ignore + interface Tick extends org.spongepowered.api.event.action.SleepingEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.SleepingEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.SleepingEvent.d.ts new file mode 100644 index 00000000..a3ca7ede --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.action.SleepingEvent.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace action { + // @ts-ignore + interface SleepingEvent extends org.spongepowered.api.event.entity.TargetEntityEvent { + /** + * Gets the {@link BlockSnapshot} of the bed being used to sleep. + */ + // @ts-ignore + getBed(): org.spongepowered.api.block.BlockSnapshot; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.AdvancementEvent.Grant.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.AdvancementEvent.Grant.d.ts new file mode 100644 index 00000000..f0b235fc --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.AdvancementEvent.Grant.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace advancement { + namespace AdvancementEvent { + // @ts-ignore + interface Grant extends org.spongepowered.api.event.advancement.AdvancementEvent, org.spongepowered.api.event.message.MessageChannelEvent { + /** + * Gets the {@link Instant} at which the {@link Advancement} + * was unlocked. + */ + // @ts-ignore + getTime(): java.time.Instant; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.AdvancementEvent.Revoke.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.AdvancementEvent.Revoke.d.ts new file mode 100644 index 00000000..7c3d4787 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.AdvancementEvent.Revoke.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace advancement { + namespace AdvancementEvent { + // @ts-ignore + interface Revoke extends org.spongepowered.api.event.advancement.AdvancementEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.AdvancementEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.AdvancementEvent.d.ts new file mode 100644 index 00000000..1cd94759 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.AdvancementEvent.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace advancement { + // @ts-ignore + interface AdvancementEvent extends org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent { + /** + * Gets the {@link Advancement} that is being targeted. + */ + // @ts-ignore + getAdvancement(): org.spongepowered.api.advancement.Advancement; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.AdvancementTreeEvent.GenerateLayout.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.AdvancementTreeEvent.GenerateLayout.d.ts new file mode 100644 index 00000000..4398c14d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.AdvancementTreeEvent.GenerateLayout.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace advancement { + namespace AdvancementTreeEvent { + // @ts-ignore + interface GenerateLayout extends org.spongepowered.api.event.advancement.AdvancementTreeEvent { + /** + * Gets the {@link TreeLayout} that got generated. + */ + // @ts-ignore + getLayout(): org.spongepowered.api.advancement.TreeLayout; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.AdvancementTreeEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.AdvancementTreeEvent.d.ts new file mode 100644 index 00000000..f8ddbaa4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.AdvancementTreeEvent.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace advancement { + // @ts-ignore + interface AdvancementTreeEvent extends org.spongepowered.api.event.Event { + /** + * Gets the {@link AdvancementTree}. + */ + // @ts-ignore + getTree(): org.spongepowered.api.advancement.AdvancementTree; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.CriterionEvent.Grant.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.CriterionEvent.Grant.d.ts new file mode 100644 index 00000000..79ccd32a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.CriterionEvent.Grant.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace advancement { + namespace CriterionEvent { + // @ts-ignore + interface Grant extends org.spongepowered.api.event.advancement.CriterionEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the {@link Instant} at which the {@link AdvancementCriterion} + * was unlocked. + */ + // @ts-ignore + getTime(): java.time.Instant; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.CriterionEvent.Revoke.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.CriterionEvent.Revoke.d.ts new file mode 100644 index 00000000..724d7288 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.CriterionEvent.Revoke.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace advancement { + namespace CriterionEvent { + // @ts-ignore + interface Revoke extends org.spongepowered.api.event.advancement.CriterionEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.CriterionEvent.Score.Change.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.CriterionEvent.Score.Change.d.ts new file mode 100644 index 00000000..583b4e4d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.CriterionEvent.Score.Change.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace advancement { + namespace CriterionEvent { + namespace Score { + // @ts-ignore + interface Change extends org.spongepowered.api.event.advancement.CriterionEvent.Score, org.spongepowered.api.event.Cancellable { + /** + * Gets the previous score. + */ + // @ts-ignore + getPreviousScore(): number; + /** + * Gets the new score. + */ + // @ts-ignore + getNewScore(): number; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.CriterionEvent.Score.Grant.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.CriterionEvent.Score.Grant.d.ts new file mode 100644 index 00000000..5a2c6f31 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.CriterionEvent.Score.Grant.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace advancement { + namespace CriterionEvent { + namespace Score { + // @ts-ignore + interface Grant extends org.spongepowered.api.event.advancement.CriterionEvent.Score.Change, org.spongepowered.api.event.advancement.CriterionEvent.Grant { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.CriterionEvent.Score.Revoke.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.CriterionEvent.Score.Revoke.d.ts new file mode 100644 index 00000000..8a2165fe --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.CriterionEvent.Score.Revoke.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace advancement { + namespace CriterionEvent { + namespace Score { + // @ts-ignore + interface Revoke extends org.spongepowered.api.event.advancement.CriterionEvent.Score.Change, org.spongepowered.api.event.advancement.CriterionEvent.Revoke { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.CriterionEvent.Score.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.CriterionEvent.Score.d.ts new file mode 100644 index 00000000..430a863f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.CriterionEvent.Score.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace advancement { + namespace CriterionEvent { + // @ts-ignore + interface Score extends org.spongepowered.api.event.advancement.CriterionEvent { + // @ts-ignore + getCriterion(): org.spongepowered.api.advancement.criteria.ScoreAdvancementCriterion; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.CriterionEvent.Trigger.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.CriterionEvent.Trigger.d.ts new file mode 100644 index 00000000..40161749 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.CriterionEvent.Trigger.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace advancement { + namespace CriterionEvent { + // @ts-ignore + interface Trigger extends org.spongepowered.api.event.advancement.CriterionEvent, org.spongepowered.api.event.GenericEvent { + /** + * Gets the {@link FilteredTrigger} + * that is being processed. + */ + // @ts-ignore + getTrigger(): org.spongepowered.api.advancement.criteria.trigger.FilteredTrigger; + /** + * Gets the result of the trigger event. + */ + // @ts-ignore + getResult(): boolean; + /** + * Sets the result of the trigger event. + */ + // @ts-ignore + setResult(result: boolean): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.CriterionEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.CriterionEvent.d.ts new file mode 100644 index 00000000..7fcdee4e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.advancement.CriterionEvent.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace advancement { + // @ts-ignore + interface CriterionEvent extends org.spongepowered.api.event.advancement.AdvancementEvent { + /** + * Gets the {@link AdvancementCriterion} that was met. + */ + // @ts-ignore + getCriterion(): org.spongepowered.api.advancement.criteria.AdvancementCriterion; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.ChangeBlockEvent.Break.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.ChangeBlockEvent.Break.d.ts new file mode 100644 index 00000000..85a10227 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.ChangeBlockEvent.Break.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace ChangeBlockEvent { + // @ts-ignore + interface Break extends org.spongepowered.api.event.block.ChangeBlockEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.ChangeBlockEvent.Decay.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.ChangeBlockEvent.Decay.d.ts new file mode 100644 index 00000000..1fdbd25e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.ChangeBlockEvent.Decay.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace ChangeBlockEvent { + // @ts-ignore + interface Decay extends org.spongepowered.api.event.block.ChangeBlockEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.ChangeBlockEvent.Grow.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.ChangeBlockEvent.Grow.d.ts new file mode 100644 index 00000000..b23b9396 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.ChangeBlockEvent.Grow.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace ChangeBlockEvent { + // @ts-ignore + interface Grow extends org.spongepowered.api.event.block.ChangeBlockEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.ChangeBlockEvent.Modify.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.ChangeBlockEvent.Modify.d.ts new file mode 100644 index 00000000..589017ae --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.ChangeBlockEvent.Modify.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace ChangeBlockEvent { + // @ts-ignore + interface Modify extends org.spongepowered.api.event.block.ChangeBlockEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.ChangeBlockEvent.Place.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.ChangeBlockEvent.Place.d.ts new file mode 100644 index 00000000..a4a1be80 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.ChangeBlockEvent.Place.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace ChangeBlockEvent { + // @ts-ignore + interface Place extends org.spongepowered.api.event.block.ChangeBlockEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.ChangeBlockEvent.Post.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.ChangeBlockEvent.Post.d.ts new file mode 100644 index 00000000..f3dfaac0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.ChangeBlockEvent.Post.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace ChangeBlockEvent { + // @ts-ignore + interface Post extends org.spongepowered.api.event.block.ChangeBlockEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.ChangeBlockEvent.Pre.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.ChangeBlockEvent.Pre.d.ts new file mode 100644 index 00000000..a23bae7e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.ChangeBlockEvent.Pre.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace ChangeBlockEvent { + // @ts-ignore + interface Pre extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + /** + * Represents a list of one or more {@link Location}'s where + * {@link BlockState} changes can occur. + *

Canceling this event will prevent block logic from running + * and also stop {@link BlockSnapshot}'s from being generated.

+ *

Note: This event is not intended to always be fired before + * changing a {@link BlockState} but rather it is primarily used to + * prevent one or more {@link BlockState}'s from being changed.

+ */ + // @ts-ignore + getLocations(): java.util.List; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.ChangeBlockEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.ChangeBlockEvent.d.ts new file mode 100644 index 00000000..71120caa --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.ChangeBlockEvent.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + // @ts-ignore + interface ChangeBlockEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + /** + * Gets a list of the {@link Transaction}s for this event. If a + * transaction is requested to be marked as "invalid", + * {@link Transaction#setValid(boolean)} can be used. + */ + // @ts-ignore + getTransactions(): java.util.List; + /** + * Applies the provided {@link Predicate} to the {@link List} of + * {@link Transaction}s from {@link #getTransactions()} such that + * any time that {@link Predicate#test(Object)} returns false + * on the location of the {@link Transaction}, the {@link Transaction} is + * marked as "invalid" and will not apply post event. + *

{@link Transaction#getOriginal()} is used to get the {@link Location}

+ */ + // @ts-ignore + filter(predicate: java.util.function$.Predicate): java.util.List; + /** + * Invalidates the list as such that all {@link Transaction}s are + * marked as "invalid" and will not apply post event. + */ + // @ts-ignore + filterAll(): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.CollideBlockEvent.Impact.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.CollideBlockEvent.Impact.d.ts new file mode 100644 index 00000000..abb5f0f0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.CollideBlockEvent.Impact.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace CollideBlockEvent { + // @ts-ignore + interface Impact extends org.spongepowered.api.event.block.CollideBlockEvent, org.spongepowered.api.event.action.CollideEvent.Impact { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.CollideBlockEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.CollideBlockEvent.d.ts new file mode 100644 index 00000000..0d43d5cb --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.CollideBlockEvent.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + // @ts-ignore + interface CollideBlockEvent extends org.spongepowered.api.event.action.CollideEvent { + /** + * Gets the target {@link Location} being interacted with. + */ + // @ts-ignore + getTargetLocation(): org.spongepowered.api.world.Location; + /** + * Gets the target {@link BlockState} being interacted with. + */ + // @ts-ignore + getTargetBlock(): org.spongepowered.api.block.BlockState; + /** + * Gets the target "side" of the {@link BlockState} being interacted with + * or {@link Direction#NONE} if not known. + */ + // @ts-ignore + getTargetSide(): org.spongepowered.api.util.Direction; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.InteractBlockEvent.Primary.MainHand.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.InteractBlockEvent.Primary.MainHand.d.ts new file mode 100644 index 00000000..389c458d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.InteractBlockEvent.Primary.MainHand.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace InteractBlockEvent { + namespace Primary { + // @ts-ignore + interface MainHand extends org.spongepowered.api.event.block.InteractBlockEvent.Primary { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.InteractBlockEvent.Primary.OffHand.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.InteractBlockEvent.Primary.OffHand.d.ts new file mode 100644 index 00000000..342a4241 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.InteractBlockEvent.Primary.OffHand.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace InteractBlockEvent { + namespace Primary { + // @ts-ignore + interface OffHand extends org.spongepowered.api.event.block.InteractBlockEvent.Primary { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.InteractBlockEvent.Primary.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.InteractBlockEvent.Primary.d.ts new file mode 100644 index 00000000..5856a32c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.InteractBlockEvent.Primary.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace InteractBlockEvent { + // @ts-ignore + interface Primary extends org.spongepowered.api.event.block.InteractBlockEvent, org.spongepowered.api.event.entity.living.humanoid.HandInteractEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.InteractBlockEvent.Secondary.MainHand.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.InteractBlockEvent.Secondary.MainHand.d.ts new file mode 100644 index 00000000..bfc72ae6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.InteractBlockEvent.Secondary.MainHand.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace InteractBlockEvent { + namespace Secondary { + // @ts-ignore + interface MainHand extends org.spongepowered.api.event.block.InteractBlockEvent.Secondary { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.InteractBlockEvent.Secondary.OffHand.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.InteractBlockEvent.Secondary.OffHand.d.ts new file mode 100644 index 00000000..7527c601 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.InteractBlockEvent.Secondary.OffHand.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace InteractBlockEvent { + namespace Secondary { + // @ts-ignore + interface OffHand extends org.spongepowered.api.event.block.InteractBlockEvent.Secondary { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.InteractBlockEvent.Secondary.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.InteractBlockEvent.Secondary.d.ts new file mode 100644 index 00000000..129aee20 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.InteractBlockEvent.Secondary.d.ts @@ -0,0 +1,69 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace InteractBlockEvent { + // @ts-ignore + interface Secondary extends org.spongepowered.api.event.block.InteractBlockEvent, org.spongepowered.api.event.entity.living.humanoid.HandInteractEvent { + // @ts-ignore + getOriginalUseItemResult(): org.spongepowered.api.util.Tristate; + /** + * Gets the original {@link #getUseBlockResult}. + */ + // @ts-ignore + getOriginalUseBlockResult(): org.spongepowered.api.util.Tristate; + /** + * Gets whether the {@link Player#getItemInHand} should be used. + *
    + *
  • FALSE: The {@link ItemStack} will never be used.
  • + *
  • UNDEFINED: The {@link ItemStack} will be used if the block fails. + *
  • + *
  • TRUE: The {@link ItemStack} will always be used.
  • + *
+ *

Note: These results may differ depending on implementation.

+ */ + // @ts-ignore + getUseItemResult(): org.spongepowered.api.util.Tristate; + /** + * Gets whether the interacted {@link BlockSnapshot} should be used. + *
    + *
  • FALSE: {@link BlockSnapshot} will never be used.
  • + *
  • UNDEFINED: {@link BlockSnapshot} will be used as normal.
  • + *
  • TRUE: {@link BlockSnapshot} will always be used.
  • + *
+ *

Note: These results may differ depending on implementation.

+ */ + // @ts-ignore + getUseBlockResult(): org.spongepowered.api.util.Tristate; + /** + * Sets whether the {@link Player#getItemInHand} should be used. + *
    + *
  • FALSE: The {@link ItemStack} will never be used.
  • + *
  • UNDEFINED: The {@link ItemStack} will be used if the block fails. + *
  • + *
  • TRUE: The {@link ItemStack} will always be used.
  • + *
+ *

Note: These results may differ depending on implementation.

+ */ + // @ts-ignore + setUseItemResult(result: org.spongepowered.api.util.Tristate): void; + /** + * Sets whether the interacted {@link BlockSnapshot} should be used. + *
    + *
  • FALSE: {@link BlockSnapshot} will never be used.
  • + *
  • UNDEFINED: {@link BlockSnapshot} will be used as normal.
  • + *
  • TRUE: {@link BlockSnapshot} will always be used.
  • + *
+ *

Note: These results may differ depending on implementation.

+ */ + // @ts-ignore + setUseBlockResult(result: org.spongepowered.api.util.Tristate): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.InteractBlockEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.InteractBlockEvent.d.ts new file mode 100644 index 00000000..c3b2e400 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.InteractBlockEvent.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + // @ts-ignore + interface InteractBlockEvent extends org.spongepowered.api.event.action.InteractEvent, org.spongepowered.api.event.block.TargetBlockEvent { + /** + * Gets the target "side" of the {@link BlockState} being interacted with + * or {@link Direction#NONE} if not known. + */ + // @ts-ignore + getTargetSide(): org.spongepowered.api.util.Direction; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.NotifyNeighborBlockEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.NotifyNeighborBlockEvent.d.ts new file mode 100644 index 00000000..ad0484af --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.NotifyNeighborBlockEvent.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + // @ts-ignore + interface NotifyNeighborBlockEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + /** + * Gets the immutable {@link Map} of {@link Direction} to {@link + * BlockState} of the {@link BlockType} that would normally be + * notified of changes. + */ + // @ts-ignore + getOriginalNeighbors(): java.util.Map; + /** + * Gets an immutable {@link Map} of {@link Direction} to + * {@link BlockState} of the {@link BlockType} that will be notified of + * an update. If a {@link Direction} is not required or needing to be + * excluded from an update, {@link #filterDirections(Predicate)} will + * perform that exclusion. + */ + // @ts-ignore + getNeighbors(): java.util.Map; + /** + * Filters out {@link Direction}s of the {@link BlockState}s to be + * marked as "valid" after this event. If the + * {@link Predicate#test(Object)} returns false, the + * {@link BlockState} is removed from {@link #getNeighbors()} map. + */ + // @ts-ignore + filterDirections(predicate: java.util.function$.Predicate): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.TargetBlockEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.TargetBlockEvent.d.ts new file mode 100644 index 00000000..e4b232e8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.TargetBlockEvent.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + // @ts-ignore + interface TargetBlockEvent extends org.spongepowered.api.event.Event { + /** + * Gets the target {@link BlockSnapshot} of this {@link Event}. + */ + // @ts-ignore + getTargetBlock(): org.spongepowered.api.block.BlockSnapshot; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.TickBlockEvent.Random.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.TickBlockEvent.Random.d.ts new file mode 100644 index 00000000..0ab789d4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.TickBlockEvent.Random.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace TickBlockEvent { + // @ts-ignore + interface Random extends org.spongepowered.api.event.block.TickBlockEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.TickBlockEvent.Scheduled.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.TickBlockEvent.Scheduled.d.ts new file mode 100644 index 00000000..b7dc7977 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.TickBlockEvent.Scheduled.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace TickBlockEvent { + // @ts-ignore + interface Scheduled extends org.spongepowered.api.event.block.TickBlockEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.TickBlockEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.TickBlockEvent.d.ts new file mode 100644 index 00000000..15961ab5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.TickBlockEvent.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + // @ts-ignore + interface TickBlockEvent extends org.spongepowered.api.event.block.TargetBlockEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.BrewingEvent.Finish.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.BrewingEvent.Finish.d.ts new file mode 100644 index 00000000..c700eca8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.BrewingEvent.Finish.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace tileentity { + namespace BrewingEvent { + // @ts-ignore + interface Finish extends org.spongepowered.api.event.block.tileentity.BrewingEvent { + /** + * Gets an immutable {@link List} of {@link ItemStackSnapshot}s that are the result + * of the brew. + */ + // @ts-ignore + getBrewedItemStacks(): java.util.List; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.BrewingEvent.Interrupt.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.BrewingEvent.Interrupt.d.ts new file mode 100644 index 00000000..8c5a076f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.BrewingEvent.Interrupt.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace tileentity { + namespace BrewingEvent { + // @ts-ignore + interface Interrupt extends org.spongepowered.api.event.block.tileentity.BrewingEvent { + /** + * Gets an immutable {@link List} of {@link ItemStackSnapshot}s that are the result + * of the brew. + */ + // @ts-ignore + getBrewedItemStacks(): java.util.List; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.BrewingEvent.Start.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.BrewingEvent.Start.d.ts new file mode 100644 index 00000000..c806d506 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.BrewingEvent.Start.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace tileentity { + namespace BrewingEvent { + // @ts-ignore + interface Start extends org.spongepowered.api.event.block.tileentity.BrewingEvent, org.spongepowered.api.event.item.inventory.AffectItemStackEvent { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.BrewingEvent.Tick.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.BrewingEvent.Tick.d.ts new file mode 100644 index 00000000..6b5c6d40 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.BrewingEvent.Tick.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace tileentity { + namespace BrewingEvent { + // @ts-ignore + interface Tick extends org.spongepowered.api.event.block.tileentity.BrewingEvent, org.spongepowered.api.event.item.inventory.AffectItemStackEvent { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.BrewingEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.BrewingEvent.d.ts new file mode 100644 index 00000000..91038dc6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.BrewingEvent.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace tileentity { + // @ts-ignore + interface BrewingEvent extends org.spongepowered.api.event.block.tileentity.TargetTileEntityEvent { + // @ts-ignore + getTargetTile(): org.spongepowered.api.block.tileentity.carrier.BrewingStand; + /** + * Gets the {@link ItemStackSnapshot} as the ingredient used. + */ + // @ts-ignore + getIngredient(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.ChangeSignEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.ChangeSignEvent.d.ts new file mode 100644 index 00000000..50238cdb --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.ChangeSignEvent.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace tileentity { + // @ts-ignore + interface ChangeSignEvent extends org.spongepowered.api.event.block.tileentity.TargetTileEntityEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the target {@link Sign} being changed. + */ + // @ts-ignore + getTargetTile(): org.spongepowered.api.block.tileentity.Sign; + /** + * Gets the original {@link ImmutableSignData} before event changes. + */ + // @ts-ignore + getOriginalText(): org.spongepowered.api.data.manipulator.immutable.tileentity.ImmutableSignData; + /** + * Gets the {@link SignData} to be applied to the {@link Sign} after event resolution. + */ + // @ts-ignore + getText(): org.spongepowered.api.data.manipulator.mutable.tileentity.SignData; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.SmeltEvent.ConsumeFuel.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.SmeltEvent.ConsumeFuel.d.ts new file mode 100644 index 00000000..85f49c4e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.SmeltEvent.ConsumeFuel.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace tileentity { + namespace SmeltEvent { + // @ts-ignore + interface ConsumeFuel extends org.spongepowered.api.event.block.tileentity.SmeltEvent, org.spongepowered.api.event.item.inventory.AffectItemStackEvent { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.SmeltEvent.Finish.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.SmeltEvent.Finish.d.ts new file mode 100644 index 00000000..fb895860 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.SmeltEvent.Finish.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace tileentity { + namespace SmeltEvent { + // @ts-ignore + interface Finish extends org.spongepowered.api.event.block.tileentity.SmeltEvent { + /** + * Gets an immutable {@link List} of {@link ItemStackSnapshot}s that are the result of the smelt. + * Always exactly one item. + */ + // @ts-ignore + getSmeltedItems(): java.util.List; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.SmeltEvent.Interrupt.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.SmeltEvent.Interrupt.d.ts new file mode 100644 index 00000000..0d2c5b49 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.SmeltEvent.Interrupt.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace tileentity { + namespace SmeltEvent { + // @ts-ignore + interface Interrupt extends org.spongepowered.api.event.block.tileentity.SmeltEvent { + /** + * Gets an immutable {@link List} of {@link ItemStackSnapshot}s that are the result + * of the smelt. + */ + // @ts-ignore + getSmeltedItems(): java.util.List; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.SmeltEvent.Start.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.SmeltEvent.Start.d.ts new file mode 100644 index 00000000..a0ea81ca --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.SmeltEvent.Start.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace tileentity { + namespace SmeltEvent { + // @ts-ignore + interface Start extends org.spongepowered.api.event.block.tileentity.SmeltEvent, org.spongepowered.api.event.item.inventory.AffectItemStackEvent { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.SmeltEvent.Tick.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.SmeltEvent.Tick.d.ts new file mode 100644 index 00000000..33160126 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.SmeltEvent.Tick.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace tileentity { + namespace SmeltEvent { + // @ts-ignore + interface Tick extends org.spongepowered.api.event.block.tileentity.SmeltEvent, org.spongepowered.api.event.item.inventory.AffectItemStackEvent { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.SmeltEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.SmeltEvent.d.ts new file mode 100644 index 00000000..1e858863 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.SmeltEvent.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace tileentity { + // @ts-ignore + interface SmeltEvent extends org.spongepowered.api.event.block.tileentity.TargetTileEntityEvent { + // @ts-ignore + getTargetTile(): org.spongepowered.api.block.tileentity.carrier.Furnace; + /** + * Gets the fuel represented as an {@link ItemStackSnapshot}. + */ + // @ts-ignore + getFuel(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.TargetTileEntityEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.TargetTileEntityEvent.d.ts new file mode 100644 index 00000000..6caf9ed6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.block.tileentity.TargetTileEntityEvent.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace block { + namespace tileentity { + // @ts-ignore + interface TargetTileEntityEvent extends org.spongepowered.api.event.Event { + /** + * Gets the target tile entity. + */ + // @ts-ignore + getTargetTile(): org.spongepowered.api.block.tileentity.TileEntity; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.Cause.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.Cause.Builder.d.ts new file mode 100644 index 00000000..24414db1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.Cause.Builder.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace Cause { + // @ts-ignore + class Builder extends java.lang.Object implements org.spongepowered.api.util.ResettableBuilder { + /** + * Appends the specified object to the cause. + */ + // @ts-ignore + public append(cause: java.lang.Object): org.spongepowered.api.event.cause.Cause.Builder; + /** + * Inserts the specified object into the cause. + */ + // @ts-ignore + public insert(position: number, cause: java.lang.Object): org.spongepowered.api.event.cause.Cause.Builder; + /** + * Appends all specified objects onto the cause. + */ + // @ts-ignore + public appendAll(causes: java.util.Collection): org.spongepowered.api.event.cause.Cause.Builder; + /** + * Constructs a new {@link Cause} with information added to the builder. + */ + // @ts-ignore + public build(ctx: org.spongepowered.api.event.cause.EventContext): org.spongepowered.api.event.cause.Cause; + // @ts-ignore + public from(value: org.spongepowered.api.event.cause.Cause): org.spongepowered.api.event.cause.Cause.Builder; + // @ts-ignore + public reset(): org.spongepowered.api.event.cause.Cause.Builder; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.Cause.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.Cause.d.ts new file mode 100644 index 00000000..d523107b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.Cause.d.ts @@ -0,0 +1,128 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + // @ts-ignore + class Cause extends java.lang.Object { + /** + * Creates a new {@link Builder} to make a new {@link Cause}. + */ + // @ts-ignore + public static builder(): org.spongepowered.api.event.cause.Cause.Builder; + /** + * Constructs a new cause with the specified event context and cause. + */ + // @ts-ignore + public static of(ctx: org.spongepowered.api.event.cause.EventContext, cause: java.lang.Object): org.spongepowered.api.event.cause.Cause; + /** + * Constructs a new cause with the specified event context and causes. + */ + // @ts-ignore + public static of(ctx: org.spongepowered.api.event.cause.EventContext, cause: java.lang.Object, causes: java.lang.Object): org.spongepowered.api.event.cause.Cause; + /** + * Constructs a new cause with the specified event context and causes. + */ + // @ts-ignore + public static of(ctx: org.spongepowered.api.event.cause.EventContext, iterable: java.lang.Iterable): org.spongepowered.api.event.cause.Cause; + /** + * Gets the event context relating to this cause. + */ + // @ts-ignore + public getContext(): org.spongepowered.api.event.cause.EventContext; + /** + * Gets the root {@link Object} of this cause. + */ + // @ts-ignore + public root(): java.lang.Object; + /** + * Gets the first T object of this {@link Cause}, if available. + */ + // @ts-ignore + public first(target: java.lang.Class): java.util.Optional; + /** + * Gets the last object instance of the {@link Class} of type + * T. + */ + // @ts-ignore + public last(target: java.lang.Class): java.util.Optional; + /** + * Gets the object immediately before the object that is an instance of the + * {@link Class} passed in. + */ + // @ts-ignore + public before(clazz: java.lang.Class): java.util.Optional; + /** + * Gets the object immediately after the object that is an instance of the + * {@link Class} passed in. + */ + // @ts-ignore + public after(clazz: java.lang.Class): java.util.Optional; + /** + * Returns whether the target class matches any object of this {@link Cause} + * . + */ + // @ts-ignore + public containsType(target: java.lang.Class): boolean; + /** + * Checks if this cause contains of any of the provided {@link Object}. This + * is the equivalent to checking based on {@link #equals(Object)} for each + * object in this cause. + */ + // @ts-ignore + public contains(object: java.lang.Object): boolean; + /** + * Gets an {@link ImmutableList} of all objects that are instances of the + * given {@link Class} type T. + */ + // @ts-ignore + public allOf(target: java.lang.Class): java.util.List; + /** + * Gets an immutable {@link List} with all object causes that are not + * instances of the provided {@link Class}. + */ + // @ts-ignore + public noneOf(ignoredClass: java.lang.Class): java.util.List; + /** + * Gets an {@link List} of all causes within this {@link Cause}. + */ + // @ts-ignore + public all(): java.util.List; + /** + * Creates a new {@link Cause} where the objects are added at the end of the + * cause array of objects. + */ + // @ts-ignore + public with(additional: java.lang.Object): org.spongepowered.api.event.cause.Cause; + /** + * Creates a new {@link Cause} where the objects are added at the end of the + * cause array of objects. + */ + // @ts-ignore + public with(additional: java.lang.Object, additionals: java.lang.Object): org.spongepowered.api.event.cause.Cause; + /** + * Creates a new {@link Cause} where the objects are added at the end of the + * cause array of objects. + */ + // @ts-ignore + public with(iterable: java.lang.Iterable): org.spongepowered.api.event.cause.Cause; + /** + * Merges this cause with the other cause. + */ + // @ts-ignore + public with(cause: org.spongepowered.api.event.cause.Cause): org.spongepowered.api.event.cause.Cause; + // @ts-ignore + public iterator(): java.util.Iterator; + // @ts-ignore + public equals(object: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.EventContext.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.EventContext.Builder.d.ts new file mode 100644 index 00000000..d447da4d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.EventContext.Builder.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace EventContext { + // @ts-ignore + class Builder extends java.lang.Object implements org.spongepowered.api.util.ResettableBuilder { + /** + * Adds the given context key value pair to the context. + */ + // @ts-ignore + public add(key: org.spongepowered.api.event.cause.EventContextKey, value: java.lang.Object): org.spongepowered.api.event.cause.EventContext.Builder; + // @ts-ignore + public from(value: org.spongepowered.api.event.cause.EventContext): org.spongepowered.api.event.cause.EventContext.Builder; + // @ts-ignore + public reset(): org.spongepowered.api.event.cause.EventContext.Builder; + /** + * Creates a new {@link EventContext}. + */ + // @ts-ignore + public build(): org.spongepowered.api.event.cause.EventContext; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.EventContext.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.EventContext.d.ts new file mode 100644 index 00000000..0dd1cdf0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.EventContext.d.ts @@ -0,0 +1,63 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + // @ts-ignore + class EventContext extends java.lang.Object { + /** + * Gets an empty context. + */ + // @ts-ignore + public static empty(): org.spongepowered.api.event.cause.EventContext; + /** + * Creates a new {@link EventContext} from the given map of entries. + */ + // @ts-ignore + public static of(entries: java.util.Map): org.spongepowered.api.event.cause.EventContext; + /** + * Creates a new builder for creating an {@link EventContext}. + */ + // @ts-ignore + public static builder(): org.spongepowered.api.event.cause.EventContext.Builder; + /** + * Gets the value corresponding to the given key from the context. + */ + // @ts-ignore + public get(key: org.spongepowered.api.event.cause.EventContextKey): java.util.Optional; + /** + * Gets the value corresponding to the given key from the context. + *

If the key is not available, {@link NoSuchElementException} will be + * thrown.

+ */ + // @ts-ignore + public require(key: org.spongepowered.api.event.cause.EventContextKey): java.lang.Object; + /** + * Gets whether the provided {@link EventContextKey} is included in this + * context. + */ + // @ts-ignore + public containsKey(key: org.spongepowered.api.event.cause.EventContextKey): boolean; + /** + * Gets all {@link EventContextKey}s present in this context. + */ + // @ts-ignore + public keySet(): java.util.Set; + /** + * Gets this event context as a {@link Map} of EventContextKeys to Objects. + */ + // @ts-ignore + public asMap(): java.util.Map; + // @ts-ignore + public equals(object: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.EventContextKey.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.EventContextKey.Builder.d.ts new file mode 100644 index 00000000..8288ae0c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.EventContextKey.Builder.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace EventContextKey { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + // @ts-ignore + type(tClass: java.lang.Class): org.spongepowered.api.event.cause.EventContextKey.Builder; + // @ts-ignore + id(id: string): org.spongepowered.api.event.cause.EventContextKey.Builder; + // @ts-ignore + name(name: string): org.spongepowered.api.event.cause.EventContextKey.Builder; + // @ts-ignore + build(): org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + from(value: org.spongepowered.api.event.cause.EventContextKey): org.spongepowered.api.event.cause.EventContextKey.Builder; + // @ts-ignore + reset(): org.spongepowered.api.event.cause.EventContextKey.Builder; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.EventContextKey.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.EventContextKey.d.ts new file mode 100644 index 00000000..ef602c3d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.EventContextKey.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + // @ts-ignore + interface EventContextKey extends org.spongepowered.api.CatalogType { + /** + * Creates a builder to be used for creating a new {@link EventContextKey}. + */ + // @ts-ignore + builder(clazz: java.lang.Class): org.spongepowered.api.event.cause.EventContextKey.Builder; + /** + * Gets the allowed type for the value of this key. + */ + // @ts-ignore + getAllowedType(): java.lang.Class; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.EventContextKeys.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.EventContextKeys.d.ts new file mode 100644 index 00000000..5866b0fd --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.EventContextKeys.d.ts @@ -0,0 +1,92 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + // @ts-ignore + class EventContextKeys extends java.lang.Object { + // @ts-ignore + public static BLOCK_EVENT_QUEUE: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static BLOCK_EVENT_PROCESS: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static BLOCK_HIT: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static BREAK_EVENT: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static PLACE_EVENT: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static MODIFY_EVENT: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static DECAY_EVENT: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static GROW_EVENT: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static GROWTH_ORIGIN: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static CREATOR: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static DAMAGE_TYPE: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static DISMOUNT_TYPE: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static ENTITY_HIT: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static FAKE_PLAYER: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static FIRE_SPREAD: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static IGNITER: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static LAST_DAMAGE_SOURCE: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static LEAVES_DECAY: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static LIQUID_BREAK: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static LIQUID_FLOW: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static LIQUID_MIX: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static NEIGHBOR_NOTIFY_SOURCE: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static NOTIFIER: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static OWNER: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static PISTON_EXTEND: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static PISTON_RETRACT: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static PLAYER: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static PLAYER_BREAK: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static PLAYER_PLACE: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static PLAYER_SIMULATED: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static PLUGIN: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static PROJECTILE_SOURCE: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static SERVICE_MANAGER: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static SPAWN_TYPE: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static TELEPORT_TYPE: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static THROWER: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static USED_ITEM: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static USED_HAND: org.spongepowered.api.event.cause.EventContextKey; + // @ts-ignore + public static WEAPON: org.spongepowered.api.event.cause.EventContextKey; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.ModifierFunction.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.ModifierFunction.d.ts new file mode 100644 index 00000000..e6a7a94c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.ModifierFunction.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + // @ts-ignore + interface ModifierFunction { + /** + * Gets the modifier used by this modifier function. + */ + // @ts-ignore + getModifier(): java.lang.Object; + /** + * Gets the double unary operator used by this function. + */ + // @ts-ignore + getFunction(): java.util.function$.DoubleUnaryOperator; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.DamageFunction.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.DamageFunction.d.ts new file mode 100644 index 00000000..3cfcc980 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.DamageFunction.d.ts @@ -0,0 +1,55 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + // @ts-ignore + class DamageFunction extends java.lang.Object implements org.spongepowered.api.event.cause.entity.ModifierFunction { + /** + * Creates a new {@link DamageFunction} with the provided + * {@link DamageModifier}. The caveat is that the provided + * {@link DamageFunction} is by default going to provide {@code 0} + * damage modifications. + */ + // @ts-ignore + constructor(modifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier) + /** + * Creates a new {@link DamageFunction} with the provided + * {@link DamageModifier} and {@link DoubleUnaryOperator}. + */ + // @ts-ignore + constructor(modifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier, func: java.util.function$.DoubleUnaryOperator) + // @ts-ignore + public static ZERO_DAMAGE: java.util.function$.DoubleUnaryOperator; + /** + * Constructs a new damage function. + */ + // @ts-ignore + public static of(first: org.spongepowered.api.event.cause.entity.damage.DamageModifier, second: java.util.function$.DoubleUnaryOperator): org.spongepowered.api.event.cause.entity.damage.DamageFunction; + /** + * Gets the {@link DamageModifier} for this function. + */ + // @ts-ignore + public getModifier(): org.spongepowered.api.event.cause.entity.damage.DamageModifier; + /** + * Gets the {@link DoubleUnaryOperator} for this function. + */ + // @ts-ignore + public getFunction(): java.util.function$.DoubleUnaryOperator; + // @ts-ignore + public toString(): string; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.DamageModifier.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.DamageModifier.Builder.d.ts new file mode 100644 index 00000000..7ea660e3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.DamageModifier.Builder.d.ts @@ -0,0 +1,45 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace DamageModifier { + // @ts-ignore + class Builder extends java.lang.Object implements org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the {@link DamageModifierType} for the {@link DamageModifier} to + * build. + */ + // @ts-ignore + public type(damageModifierType: org.spongepowered.api.event.cause.entity.damage.DamageModifierType): org.spongepowered.api.event.cause.entity.damage.DamageModifier.Builder; + // @ts-ignore + public item(itemStack: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.event.cause.entity.damage.DamageModifier.Builder; + // @ts-ignore + public item(snapshot: org.spongepowered.api.item.inventory.ItemStackSnapshot): org.spongepowered.api.event.cause.entity.damage.DamageModifier.Builder; + /** + * Sets the {@link Cause} for the {@link DamageModifier} to build. + */ + // @ts-ignore + public cause(cause: org.spongepowered.api.event.cause.Cause): org.spongepowered.api.event.cause.entity.damage.DamageModifier.Builder; + /** + * Creates a new {@link DamageModifier} with this builder's provided + * {@link Cause} and {@link DamageModifierType}. + */ + // @ts-ignore + public build(): org.spongepowered.api.event.cause.entity.damage.DamageModifier; + // @ts-ignore + public from(value: org.spongepowered.api.event.cause.entity.damage.DamageModifier): org.spongepowered.api.event.cause.entity.damage.DamageModifier.Builder; + // @ts-ignore + public reset(): org.spongepowered.api.event.cause.entity.damage.DamageModifier.Builder; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.DamageModifier.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.DamageModifier.d.ts new file mode 100644 index 00000000..9783eb95 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.DamageModifier.d.ts @@ -0,0 +1,45 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + // @ts-ignore + interface DamageModifier { + /** + * Creates a new {@link Builder} for constructing a {@link DamageModifier}. + */ + // @ts-ignore + builder(): org.spongepowered.api.event.cause.entity.damage.DamageModifier.Builder; + /** + * Gets the {@link DamageModifierType} for this {@link DamageModifier}. + */ + // @ts-ignore + getType(): org.spongepowered.api.event.cause.entity.damage.DamageModifierType; + /** + * Gets the cause of this {@link DamageModifier}. + */ + // @ts-ignore + getCause(): org.spongepowered.api.event.cause.Cause; + /** + * Gets the contributing {@link ItemStackSnapshot} that provided the + * "reason" for this {@link DamageModifier} to exist. An example of a + * contributing {@link ItemStack} is if an {@link ItemTypes#DIAMOND_SWORD} + * provided an {@link Enchantment} that provided a + * {@link DamageModifierTypes#WEAPON_ENCHANTMENT}, this modifier would have + * the {@link ItemStackSnapshot} for the weapon used. Some modifiers however, + * do not require an {@link ItemStack} to be the contributing factor for + * this modifier to exist. + */ + // @ts-ignore + getContributingItem(): java.util.Optional; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.DamageModifierType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.DamageModifierType.d.ts new file mode 100644 index 00000000..06776d0f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.DamageModifierType.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + // @ts-ignore + interface DamageModifierType extends org.spongepowered.api.CatalogType { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.DamageModifierTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.DamageModifierTypes.d.ts new file mode 100644 index 00000000..cfcab5f2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.DamageModifierTypes.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + // @ts-ignore + class DamageModifierTypes extends java.lang.Object { + // @ts-ignore + public static ABSORPTION: org.spongepowered.api.event.cause.entity.damage.DamageModifierType; + // @ts-ignore + public static ARMOR: org.spongepowered.api.event.cause.entity.damage.DamageModifierType; + // @ts-ignore + public static ARMOR_ENCHANTMENT: org.spongepowered.api.event.cause.entity.damage.DamageModifierType; + // @ts-ignore + public static ATTACK_COOLDOWN: org.spongepowered.api.event.cause.entity.damage.DamageModifierType; + // @ts-ignore + public static CRITICAL_HIT: org.spongepowered.api.event.cause.entity.damage.DamageModifierType; + // @ts-ignore + public static DEFENSIVE_POTION_EFFECT: org.spongepowered.api.event.cause.entity.damage.DamageModifierType; + // @ts-ignore + public static DIFFICULTY: org.spongepowered.api.event.cause.entity.damage.DamageModifierType; + // @ts-ignore + public static HARD_HAT: org.spongepowered.api.event.cause.entity.damage.DamageModifierType; + // @ts-ignore + public static MAGIC: org.spongepowered.api.event.cause.entity.damage.DamageModifierType; + // @ts-ignore + public static NEGATIVE_POTION_EFFECT: org.spongepowered.api.event.cause.entity.damage.DamageModifierType; + // @ts-ignore + public static OFFENSIVE_POTION_EFFECT: org.spongepowered.api.event.cause.entity.damage.DamageModifierType; + // @ts-ignore + public static SHIELD: org.spongepowered.api.event.cause.entity.damage.DamageModifierType; + // @ts-ignore + public static SWEEPING: org.spongepowered.api.event.cause.entity.damage.DamageModifierType; + // @ts-ignore + public static SWEAPING: org.spongepowered.api.event.cause.entity.damage.DamageModifierType; + // @ts-ignore + public static WEAPON_ENCHANTMENT: org.spongepowered.api.event.cause.entity.damage.DamageModifierType; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.DamageType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.DamageType.d.ts new file mode 100644 index 00000000..8721e094 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.DamageType.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + // @ts-ignore + interface DamageType extends org.spongepowered.api.CatalogType { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.DamageTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.DamageTypes.d.ts new file mode 100644 index 00000000..15815b42 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.DamageTypes.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + // @ts-ignore + class DamageTypes extends java.lang.Object { + // @ts-ignore + public static ATTACK: org.spongepowered.api.event.cause.entity.damage.DamageType; + // @ts-ignore + public static CONTACT: org.spongepowered.api.event.cause.entity.damage.DamageType; + // @ts-ignore + public static CUSTOM: org.spongepowered.api.event.cause.entity.damage.DamageType; + // @ts-ignore + public static DROWN: org.spongepowered.api.event.cause.entity.damage.DamageType; + // @ts-ignore + public static EXPLOSIVE: org.spongepowered.api.event.cause.entity.damage.DamageType; + // @ts-ignore + public static FALL: org.spongepowered.api.event.cause.entity.damage.DamageType; + // @ts-ignore + public static FIRE: org.spongepowered.api.event.cause.entity.damage.DamageType; + // @ts-ignore + public static GENERIC: org.spongepowered.api.event.cause.entity.damage.DamageType; + // @ts-ignore + public static HUNGER: org.spongepowered.api.event.cause.entity.damage.DamageType; + // @ts-ignore + public static MAGIC: org.spongepowered.api.event.cause.entity.damage.DamageType; + // @ts-ignore + public static MAGMA: org.spongepowered.api.event.cause.entity.damage.DamageType; + // @ts-ignore + public static PROJECTILE: org.spongepowered.api.event.cause.entity.damage.DamageType; + // @ts-ignore + public static SUFFOCATE: org.spongepowered.api.event.cause.entity.damage.DamageType; + // @ts-ignore + public static SWEEPING_ATTACK: org.spongepowered.api.event.cause.entity.damage.DamageType; + // @ts-ignore + public static VOID: org.spongepowered.api.event.cause.entity.damage.DamageType; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.BlockDamageSource.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.BlockDamageSource.Builder.d.ts new file mode 100644 index 00000000..f7cd64d4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.BlockDamageSource.Builder.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + namespace BlockDamageSource { + // @ts-ignore + interface Builder extends org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder { + /** + * Sets the {@link Location} to use as a "source". + */ + // @ts-ignore + block(location: org.spongepowered.api.world.Location): org.spongepowered.api.event.cause.entity.damage.source.BlockDamageSource.Builder; + /** + * Sets the {@link BlockSnapshot} to act as the "damage source". + */ + // @ts-ignore + block(blockState: org.spongepowered.api.block.BlockSnapshot): org.spongepowered.api.event.cause.entity.damage.source.BlockDamageSource.Builder; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.BlockDamageSource.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.BlockDamageSource.d.ts new file mode 100644 index 00000000..7b28423e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.BlockDamageSource.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + // @ts-ignore + interface BlockDamageSource extends org.spongepowered.api.event.cause.entity.damage.source.DamageSource { + /** + * Creates a new {@link Builder builder} for building a + * {@link BlockDamageSource}. + */ + // @ts-ignore + builder(): org.spongepowered.api.event.cause.entity.damage.source.BlockDamageSource.Builder; + /** + * Gets the location of the {@link BlockSnapshot}. + */ + // @ts-ignore + getLocation(): org.spongepowered.api.world.Location; + /** + * Gets the {@link BlockSnapshot} of the source. + */ + // @ts-ignore + getBlockSnapshot(): org.spongepowered.api.block.BlockSnapshot; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.DamageSource.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.DamageSource.Builder.d.ts new file mode 100644 index 00000000..9ec667e5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.DamageSource.Builder.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + namespace DamageSource { + // @ts-ignore + interface Builder extends org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder { + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder.d.ts new file mode 100644 index 00000000..ad1ded55 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder.d.ts @@ -0,0 +1,88 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + namespace DamageSource { + // @ts-ignore + interface DamageSourceBuilder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets this {@link DamageSource}'s damage to be scaled + * by {@link Difficulty}. + */ + // @ts-ignore + scalesWithDifficulty(): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + /** + * Sets this {@link DamageSource} as dealing damage that + * bypasses armor modifiers. + *

This sets the exhaustion increase caused + * by this source to 0. You can override this + * with {@link #exhaustion(double)}.

+ */ + // @ts-ignore + bypassesArmor(): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + /** + * Sets this {@link DamageSource} as an explosion. + */ + // @ts-ignore + explosion(): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + /** + * Sets whether this {@link DamageSource}'s damage is absolute and + * will ignore potion effects and enchantments. + *

This sets the exhaustion increase caused + * by this source to 0. You can override this + * with {@link #exhaustion(double)}.

+ */ + // @ts-ignore + absolute(): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + /** + * Sets this {@link DamageSource} as considered to be magical + * damage. An example is potions. + */ + // @ts-ignore + magical(): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + /** + * Sets this {@link DamageSource} as considered to damage creative, or + * otherwise "normally unharmable" players. + */ + // @ts-ignore + creative(): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + /** + * Sets the amount of exhaustion this {@link DamageSource} will + * add to the entity, generally only to players. + *

In vanilla gameplay, the default is 0.1, unless if the damage + * is absolute or bypasses armor, where the exhaustion gets set to 0. + * This builder follows this mechanic, but if you set the exhaustion + * through this method that will be overridden.

+ *

If you don't set this exhaustion manually, calling + * {@link #absolute()} or {@link #bypassesArmor()} will + * set this 0 and if you don't this will default to 0.1.

+ */ + // @ts-ignore + exhaustion(exhaustion: number): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + /** + * Sets the {@link DamageType} of this source. + *

This is required to be set.

+ */ + // @ts-ignore + type(damageType: org.spongepowered.api.event.cause.entity.damage.DamageType): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + /** + * Builds an instance of this damage source, based on + * the values you inputted into the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.event.cause.entity.damage.source.DamageSource; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.DamageSource.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.DamageSource.d.ts new file mode 100644 index 00000000..3bef5965 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.DamageSource.d.ts @@ -0,0 +1,75 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + // @ts-ignore + interface DamageSource { + /** + * Creates a new {@link Builder builder} to build a {@link DamageSource}. + */ + // @ts-ignore + builder(): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.Builder; + /** + * Gets the {@link DamageType} of this source. + */ + // @ts-ignore + getType(): org.spongepowered.api.event.cause.entity.damage.DamageType; + /** + * Gets whether this {@link DamageSource}'s damage is absolute and + * will ignore potion effects and enchantments. + */ + // @ts-ignore + isAbsolute(): boolean; + /** + * Gets whether this {@link DamageSource} will deal damage that + * bypasses any armor. + */ + // @ts-ignore + isBypassingArmor(): boolean; + /** + * Gets whether this {@link DamageSource}'s damage is scaled by + * {@link Difficulty}. + */ + // @ts-ignore + isScaledByDifficulty(): boolean; + /** + * Gets whether this {@link DamageSource} is an explosion. + */ + // @ts-ignore + isExplosive(): boolean; + /** + * Gets whether this {@link DamageSource} is considered to be magical + * damage, such as potions, or other sources. + */ + // @ts-ignore + isMagic(): boolean; + /** + * Gets whether this {@link DamageSource} is considered to damage creative, or + * otherwise "normally unharmable" players. Usually associated with + * {@link DamageTypes#VOID}. + */ + // @ts-ignore + doesAffectCreative(): boolean; + /** + * Gets the amount of exhaustion this {@link DamageSource} will + * add to the entity, generally only to players. + *

In vanilla gameplay this is set to 0.1 by default and + * overridden to 0 if the source is set to be absolute or + * as overriding armor.

+ */ + // @ts-ignore + getExhaustion(): number; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.DamageSources.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.DamageSources.d.ts new file mode 100644 index 00000000..345a9e1a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.DamageSources.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + // @ts-ignore + class DamageSources extends java.lang.Object { + // @ts-ignore + public static DRAGON_BREATH: org.spongepowered.api.event.cause.entity.damage.source.DamageSource; + // @ts-ignore + public static DROWNING: org.spongepowered.api.event.cause.entity.damage.source.DamageSource; + // @ts-ignore + public static FALLING: org.spongepowered.api.event.cause.entity.damage.source.DamageSource; + // @ts-ignore + public static FIRE_TICK: org.spongepowered.api.event.cause.entity.damage.source.DamageSource; + // @ts-ignore + public static GENERIC: org.spongepowered.api.event.cause.entity.damage.source.DamageSource; + // @ts-ignore + public static MAGIC: org.spongepowered.api.event.cause.entity.damage.source.DamageSource; + // @ts-ignore + public static MELTING: org.spongepowered.api.event.cause.entity.damage.source.DamageSource; + // @ts-ignore + public static POISON: org.spongepowered.api.event.cause.entity.damage.source.DamageSource; + // @ts-ignore + public static STARVATION: org.spongepowered.api.event.cause.entity.damage.source.DamageSource; + // @ts-ignore + public static VOID: org.spongepowered.api.event.cause.entity.damage.source.DamageSource; + // @ts-ignore + public static WITHER: org.spongepowered.api.event.cause.entity.damage.source.DamageSource; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.Builder.d.ts new file mode 100644 index 00000000..229317fa --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.Builder.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + namespace EntityDamageSource { + // @ts-ignore + interface Builder extends org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.EntityDamageSourceBuilder { + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.EntityDamageSourceBuilder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.EntityDamageSourceBuilder.d.ts new file mode 100644 index 00000000..17210c4f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.EntityDamageSourceBuilder.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + namespace EntityDamageSource { + // @ts-ignore + interface EntityDamageSourceBuilder extends org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder { + /** + * Sets the {@link Entity} as the damage "source". + */ + // @ts-ignore + entity(entity: org.spongepowered.api.entity.Entity): org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.EntityDamageSourceBuilder; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.d.ts new file mode 100644 index 00000000..e952bd3d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + // @ts-ignore + interface EntityDamageSource extends org.spongepowered.api.event.cause.entity.damage.source.DamageSource { + /** + * Creates a new {@link Builder} for building an {@link EntityDamageSource}. + */ + // @ts-ignore + builder(): org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.Builder; + /** + * Gets the {@link Entity} that is the source. + */ + // @ts-ignore + getSource(): org.spongepowered.api.entity.Entity; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.FallingBlockDamageSource.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.FallingBlockDamageSource.Builder.d.ts new file mode 100644 index 00000000..31cca309 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.FallingBlockDamageSource.Builder.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + namespace FallingBlockDamageSource { + // @ts-ignore + interface Builder extends org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.EntityDamageSourceBuilder { + /** + * Sets the {@link ImmutableFallingBlockData} for the damage source. + */ + // @ts-ignore + fallingBlock(fallingBlock: org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFallingBlockData): org.spongepowered.api.event.cause.entity.damage.source.FallingBlockDamageSource.Builder; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.FallingBlockDamageSource.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.FallingBlockDamageSource.d.ts new file mode 100644 index 00000000..4d912d75 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.FallingBlockDamageSource.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + // @ts-ignore + interface FallingBlockDamageSource extends org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource { + /** + * Creates a new {@link Builder} for constructing a new {@link FallingBlockDamageSource}. + */ + // @ts-ignore + builder(): org.spongepowered.api.event.cause.entity.damage.source.FallingBlockDamageSource.Builder; + // @ts-ignore + getSource(): org.spongepowered.api.entity.FallingBlock; + /** + * Gets the {@link ImmutableFallingBlockData} backing the + * {@link FallingBlock}. + */ + // @ts-ignore + getFallingBlockData(): org.spongepowered.api.data.manipulator.immutable.entity.ImmutableFallingBlockData; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.AbstractBuilder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.AbstractBuilder.d.ts new file mode 100644 index 00000000..2a285d12 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.AbstractBuilder.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + namespace IndirectEntityDamageSource { + // @ts-ignore + interface AbstractBuilder extends org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.EntityDamageSourceBuilder { + /** + * Sets the {@link Entity} that is indirectly damaging. + */ + // @ts-ignore + proxySource(proxy: org.spongepowered.api.entity.Entity): org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.AbstractBuilder; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.Builder.d.ts new file mode 100644 index 00000000..18fe4510 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.Builder.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + namespace IndirectEntityDamageSource { + // @ts-ignore + interface Builder extends org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.AbstractBuilder { + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.d.ts new file mode 100644 index 00000000..cb4c0086 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + // @ts-ignore + interface IndirectEntityDamageSource extends org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource { + /** + * Creates a new {@link Builder} for constructing + * {@link IndirectEntityDamageSource}s. + */ + // @ts-ignore + builder(): org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.Builder; + /** + * Gets the {@link Entity} that is indirectly using the {@link #getSource()} + * to cause damage. + */ + // @ts-ignore + getIndirectSource(): org.spongepowered.api.entity.Entity; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractDamageSource.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractDamageSource.d.ts new file mode 100644 index 00000000..0a4f30b8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractDamageSource.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + namespace common { + // @ts-ignore + abstract class AbstractDamageSource extends java.lang.Object implements org.spongepowered.api.event.cause.entity.damage.source.DamageSource { + // @ts-ignore + constructor(builder: org.spongepowered.api.event.cause.entity.damage.source.common.AbstractDamageSourceBuilder) + // @ts-ignore + public getType(): org.spongepowered.api.event.cause.entity.damage.DamageType; + // @ts-ignore + public isAbsolute(): boolean; + // @ts-ignore + public isBypassingArmor(): boolean; + // @ts-ignore + public isScaledByDifficulty(): boolean; + // @ts-ignore + public isExplosive(): boolean; + // @ts-ignore + public isMagic(): boolean; + // @ts-ignore + public doesAffectCreative(): boolean; + // @ts-ignore + public getExhaustion(): number; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractDamageSourceBuilder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractDamageSourceBuilder.d.ts new file mode 100644 index 00000000..1853b6a1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractDamageSourceBuilder.d.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + namespace common { + // @ts-ignore + abstract class AbstractDamageSourceBuilder extends java.lang.Object implements org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder { + // @ts-ignore + constructor() + // @ts-ignore + protected scales: boolean; + // @ts-ignore + protected bypasses: boolean; + // @ts-ignore + protected damageType: org.spongepowered.api.event.cause.entity.damage.DamageType; + // @ts-ignore + public scalesWithDifficulty(): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + // @ts-ignore + public bypassesArmor(): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + // @ts-ignore + public explosion(): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + // @ts-ignore + public absolute(): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + // @ts-ignore + public magical(): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + // @ts-ignore + public creative(): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + // @ts-ignore + public exhaustion(exhaustion: number): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + // @ts-ignore + public type(damageType: org.spongepowered.api.event.cause.entity.damage.DamageType): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + // @ts-ignore + public from(value: org.spongepowered.api.event.cause.entity.damage.source.DamageSource): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + // @ts-ignore + public reset(): org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractEntityDamageSource.AbstractEntityDamageSourceBuilder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractEntityDamageSource.AbstractEntityDamageSourceBuilder.d.ts new file mode 100644 index 00000000..9d9a07d5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractEntityDamageSource.AbstractEntityDamageSourceBuilder.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + namespace common { + namespace AbstractEntityDamageSource { + // @ts-ignore + abstract class AbstractEntityDamageSourceBuilder extends org.spongepowered.api.event.cause.entity.damage.source.common.AbstractDamageSourceBuilder implements org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.EntityDamageSourceBuilder { + // @ts-ignore + constructor() + // @ts-ignore + protected source: org.spongepowered.api.entity.Entity; + // @ts-ignore + public entity(entity: org.spongepowered.api.entity.Entity): org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.EntityDamageSourceBuilder; + // @ts-ignore + public reset(): org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource.EntityDamageSourceBuilder; + } + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractEntityDamageSource.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractEntityDamageSource.d.ts new file mode 100644 index 00000000..0e8f57f1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractEntityDamageSource.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + namespace common { + // @ts-ignore + abstract class AbstractEntityDamageSource extends java.lang.Object implements org.spongepowered.api.event.cause.entity.damage.source.EntityDamageSource { + // @ts-ignore + constructor(builder: org.spongepowered.api.event.cause.entity.damage.source.common.AbstractEntityDamageSource.AbstractEntityDamageSourceBuilder) + // @ts-ignore + public getSource(): org.spongepowered.api.entity.Entity; + // @ts-ignore + public getType(): org.spongepowered.api.event.cause.entity.damage.DamageType; + // @ts-ignore + public isAbsolute(): boolean; + // @ts-ignore + public isBypassingArmor(): boolean; + // @ts-ignore + public isScaledByDifficulty(): boolean; + // @ts-ignore + public isExplosive(): boolean; + // @ts-ignore + public isMagic(): boolean; + // @ts-ignore + public doesAffectCreative(): boolean; + // @ts-ignore + public getExhaustion(): number; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractIndirectEntityDamageSource.AbstractIndirectEntityDamageSourceBuilder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractIndirectEntityDamageSource.AbstractIndirectEntityDamageSourceBuilder.d.ts new file mode 100644 index 00000000..2f91a3a3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractIndirectEntityDamageSource.AbstractIndirectEntityDamageSourceBuilder.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + namespace common { + namespace AbstractIndirectEntityDamageSource { + // @ts-ignore + abstract class AbstractIndirectEntityDamageSourceBuilder extends org.spongepowered.api.event.cause.entity.damage.source.common.AbstractEntityDamageSource.AbstractEntityDamageSourceBuilder implements org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.AbstractBuilder { + // @ts-ignore + constructor() + // @ts-ignore + protected sourceEntity: org.spongepowered.api.entity.Entity; + // @ts-ignore + protected indirect: org.spongepowered.api.entity.Entity; + // @ts-ignore + public entity(entity: org.spongepowered.api.entity.Entity): org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.AbstractBuilder; + // @ts-ignore + public proxySource(projectile: org.spongepowered.api.entity.Entity): org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.AbstractBuilder; + // @ts-ignore + public reset(): org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource.AbstractBuilder; + } + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractIndirectEntityDamageSource.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractIndirectEntityDamageSource.d.ts new file mode 100644 index 00000000..ca6fb544 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.damage.source.common.AbstractIndirectEntityDamageSource.d.ts @@ -0,0 +1,44 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace damage { + namespace source { + namespace common { + // @ts-ignore + abstract class AbstractIndirectEntityDamageSource extends java.lang.Object implements org.spongepowered.api.event.cause.entity.damage.source.IndirectEntityDamageSource { + // @ts-ignore + constructor(builder: org.spongepowered.api.event.cause.entity.damage.source.common.AbstractIndirectEntityDamageSource.AbstractIndirectEntityDamageSourceBuilder) + // @ts-ignore + public getSource(): org.spongepowered.api.entity.Entity; + // @ts-ignore + public getType(): org.spongepowered.api.event.cause.entity.damage.DamageType; + // @ts-ignore + public isAbsolute(): boolean; + // @ts-ignore + public isBypassingArmor(): boolean; + // @ts-ignore + public isScaledByDifficulty(): boolean; + // @ts-ignore + public isExplosive(): boolean; + // @ts-ignore + public isMagic(): boolean; + // @ts-ignore + public doesAffectCreative(): boolean; + // @ts-ignore + public getIndirectSource(): org.spongepowered.api.entity.Entity; + // @ts-ignore + public getExhaustion(): number; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.dismount.DismountType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.dismount.DismountType.d.ts new file mode 100644 index 00000000..2382ce75 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.dismount.DismountType.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace dismount { + // @ts-ignore + interface DismountType extends org.spongepowered.api.CatalogType { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.dismount.DismountTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.dismount.DismountTypes.d.ts new file mode 100644 index 00000000..b5e7496e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.dismount.DismountTypes.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace dismount { + // @ts-ignore + class DismountTypes extends java.lang.Object { + // @ts-ignore + public static DEATH: org.spongepowered.api.event.cause.entity.dismount.DismountType; + // @ts-ignore + public static DERAIL: org.spongepowered.api.event.cause.entity.dismount.DismountType; + // @ts-ignore + public static PLAYER: org.spongepowered.api.event.cause.entity.dismount.DismountType; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.HealingType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.HealingType.d.ts new file mode 100644 index 00000000..d5e28460 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.HealingType.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + // @ts-ignore + interface HealingType extends org.spongepowered.api.CatalogType { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.HealingTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.HealingTypes.d.ts new file mode 100644 index 00000000..f741b2b3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.HealingTypes.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + // @ts-ignore + class HealingTypes extends java.lang.Object { + // @ts-ignore + public static BOSS: org.spongepowered.api.event.cause.entity.health.HealingType; + // @ts-ignore + public static FOOD: org.spongepowered.api.event.cause.entity.health.HealingType; + // @ts-ignore + public static PLUGIN: org.spongepowered.api.event.cause.entity.health.HealingType; + // @ts-ignore + public static POTION: org.spongepowered.api.event.cause.entity.health.HealingType; + // @ts-ignore + public static UNDEAD: org.spongepowered.api.event.cause.entity.health.HealingType; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.HealthFunction.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.HealthFunction.d.ts new file mode 100644 index 00000000..eb4d9892 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.HealthFunction.d.ts @@ -0,0 +1,55 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + // @ts-ignore + class HealthFunction extends java.lang.Object implements org.spongepowered.api.event.cause.entity.ModifierFunction { + /** + * Creates a new {@link HealthFunction} with the provided + * {@link HealthModifier}. The caveat is that the provided + * {@link DoubleUnaryOperator} is by default going to provide {@code 0} + * healing modifications. + */ + // @ts-ignore + constructor(modifier: org.spongepowered.api.event.cause.entity.health.HealthModifier) + /** + * Creates a new {@link HealthFunction} with the provided + * {@link HealthModifier} and function. + */ + // @ts-ignore + constructor(modifier: org.spongepowered.api.event.cause.entity.health.HealthModifier, func: java.util.function$.DoubleUnaryOperator) + // @ts-ignore + public static NO_HEALTH: java.util.function$.DoubleUnaryOperator; + /** + * Constructs a new health function. + */ + // @ts-ignore + public static of(first: org.spongepowered.api.event.cause.entity.health.HealthModifier, second: java.util.function$.DoubleUnaryOperator): org.spongepowered.api.event.cause.entity.health.HealthFunction; + /** + * Gets the {@link HealthModifier} for this function. + */ + // @ts-ignore + public getModifier(): org.spongepowered.api.event.cause.entity.health.HealthModifier; + /** + * Gets the {@link DoubleUnaryOperator} for this function. + */ + // @ts-ignore + public getFunction(): java.util.function$.DoubleUnaryOperator; + // @ts-ignore + public toString(): string; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.HealthModifier.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.HealthModifier.Builder.d.ts new file mode 100644 index 00000000..d0ab84f0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.HealthModifier.Builder.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace HealthModifier { + // @ts-ignore + class Builder extends java.lang.Object implements org.spongepowered.api.util.ResettableBuilder { + /** + * Creates a new {@link Builder}. + */ + // @ts-ignore + public static builder(): org.spongepowered.api.event.cause.entity.health.HealthModifier.Builder; + /** + * Sets the {@link HealthModifierType} for the {@link HealthModifier} to + * build. + */ + // @ts-ignore + public type(healthModifierType: org.spongepowered.api.event.cause.entity.health.HealthModifierType): org.spongepowered.api.event.cause.entity.health.HealthModifier.Builder; + /** + * Sets the {@link Cause} for the {@link HealthModifier} to build. + */ + // @ts-ignore + public cause(cause: org.spongepowered.api.event.cause.Cause): org.spongepowered.api.event.cause.entity.health.HealthModifier.Builder; + /** + * Creates a new {@link HealthModifier} with this builder's provided + * {@link Cause} and {@link HealthModifierType}. + */ + // @ts-ignore + public build(): org.spongepowered.api.event.cause.entity.health.HealthModifier; + // @ts-ignore + public from(value: org.spongepowered.api.event.cause.entity.health.HealthModifier): org.spongepowered.api.event.cause.entity.health.HealthModifier.Builder; + // @ts-ignore + public reset(): org.spongepowered.api.event.cause.entity.health.HealthModifier.Builder; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.HealthModifier.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.HealthModifier.d.ts new file mode 100644 index 00000000..e93e82c5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.HealthModifier.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + // @ts-ignore + interface HealthModifier { + /** + * Creates a new {@link Builder} for constructing new {@link HealthModifier}s. + */ + // @ts-ignore + builder(): org.spongepowered.api.event.cause.entity.health.HealthModifier.Builder; + /** + * Gets the {@link HealthModifierType} for this {@link HealthModifier}. + */ + // @ts-ignore + getType(): org.spongepowered.api.event.cause.entity.health.HealthModifierType; + /** + * Gets the cause of this {@link HealthModifier}. + */ + // @ts-ignore + getCause(): org.spongepowered.api.event.cause.Cause; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.HealthModifierType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.HealthModifierType.d.ts new file mode 100644 index 00000000..e82c2865 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.HealthModifierType.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + // @ts-ignore + interface HealthModifierType extends org.spongepowered.api.CatalogType { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.HealthModifierTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.HealthModifierTypes.d.ts new file mode 100644 index 00000000..afca50e6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.HealthModifierTypes.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + // @ts-ignore + class HealthModifierTypes extends java.lang.Object { + // @ts-ignore + public static ABSORPTION: org.spongepowered.api.event.cause.entity.health.HealthModifierType; + // @ts-ignore + public static ARMOR: org.spongepowered.api.event.cause.entity.health.HealthModifierType; + // @ts-ignore + public static DEFENSIVE_POTION_EFFECT: org.spongepowered.api.event.cause.entity.health.HealthModifierType; + // @ts-ignore + public static DIFFICULTY: org.spongepowered.api.event.cause.entity.health.HealthModifierType; + // @ts-ignore + public static MAGIC: org.spongepowered.api.event.cause.entity.health.HealthModifierType; + // @ts-ignore + public static OFFENSIVE_POTION_EFFECT: org.spongepowered.api.event.cause.entity.health.HealthModifierType; + // @ts-ignore + public static WEAPON_ENCHANTMENT: org.spongepowered.api.event.cause.entity.health.HealthModifierType; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.BlockHealingSource.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.BlockHealingSource.Builder.d.ts new file mode 100644 index 00000000..35429fb3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.BlockHealingSource.Builder.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + namespace BlockHealingSource { + // @ts-ignore + interface Builder extends org.spongepowered.api.event.cause.entity.health.source.HealingSource.HealingSourceBuilder { + // @ts-ignore + block(location: org.spongepowered.api.world.Location): org.spongepowered.api.event.cause.entity.health.source.BlockHealingSource.Builder; + // @ts-ignore + block(blockState: org.spongepowered.api.block.BlockSnapshot): org.spongepowered.api.event.cause.entity.health.source.BlockHealingSource.Builder; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.BlockHealingSource.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.BlockHealingSource.d.ts new file mode 100644 index 00000000..e81aa162 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.BlockHealingSource.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + // @ts-ignore + interface BlockHealingSource extends org.spongepowered.api.event.cause.entity.health.source.HealingSource { + /** + * Creates a builder for building a {@link BlockHealingSource}. + */ + // @ts-ignore + builder(): org.spongepowered.api.event.cause.entity.health.source.BlockHealingSource.Builder; + /** + * Gets the location of the block that acted as the healing source. + */ + // @ts-ignore + getLocation(): org.spongepowered.api.world.Location; + /** + * Gets the block snapshot that is acting as the healing source. + */ + // @ts-ignore + getBlock(): org.spongepowered.api.block.BlockSnapshot; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.Builder.d.ts new file mode 100644 index 00000000..2c2e2054 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.Builder.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + namespace EntityHealingSource { + // @ts-ignore + interface Builder extends org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.EntityHealingSourceBuilder { + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.EntityHealingSourceBuilder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.EntityHealingSourceBuilder.d.ts new file mode 100644 index 00000000..1b6b0666 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.EntityHealingSourceBuilder.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + namespace EntityHealingSource { + // @ts-ignore + interface EntityHealingSourceBuilder extends org.spongepowered.api.event.cause.entity.health.source.HealingSource.HealingSourceBuilder { + // @ts-ignore + entity(entity: org.spongepowered.api.entity.Entity): org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.EntityHealingSourceBuilder; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.d.ts new file mode 100644 index 00000000..b418cb6f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + // @ts-ignore + interface EntityHealingSource extends org.spongepowered.api.event.cause.entity.health.source.HealingSource { + /** + * Gets a new builder to build a new {@link EntityHealingSource}. + */ + // @ts-ignore + builder(): org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.Builder; + /** + * Gets the source entity acting as the healing source. + */ + // @ts-ignore + getSource(): org.spongepowered.api.entity.Entity; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.HealingSource.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.HealingSource.Builder.d.ts new file mode 100644 index 00000000..0476fca2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.HealingSource.Builder.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + namespace HealingSource { + // @ts-ignore + interface Builder extends org.spongepowered.api.event.cause.entity.health.source.HealingSource.HealingSourceBuilder { + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.HealingSource.HealingSourceBuilder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.HealingSource.HealingSourceBuilder.d.ts new file mode 100644 index 00000000..72213829 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.HealingSource.HealingSourceBuilder.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + namespace HealingSource { + // @ts-ignore + interface HealingSourceBuilder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets for the built {@link HealingSource} to have scaled with + * difficulty, usually meaning that the amount is scaled. + */ + // @ts-ignore + scalesWithDifficulty(): org.spongepowered.api.event.cause.entity.health.source.HealingSource.HealingSourceBuilder; + /** + * Sets that the built {@link HealingSource} to have been a "magical" + * source. + */ + // @ts-ignore + magical(): org.spongepowered.api.event.cause.entity.health.source.HealingSource.HealingSourceBuilder; + /** + * Sets the {@link HealingType}. + */ + // @ts-ignore + type(healingType: org.spongepowered.api.event.cause.entity.health.HealingType): org.spongepowered.api.event.cause.entity.health.source.HealingSource.HealingSourceBuilder; + // @ts-ignore + build(): org.spongepowered.api.event.cause.entity.health.source.HealingSource; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.HealingSource.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.HealingSource.d.ts new file mode 100644 index 00000000..f1d42be3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.HealingSource.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + // @ts-ignore + interface HealingSource { + /** + * Creates a new {@link Builder} to construct a new {@link HealingSource}. + */ + // @ts-ignore + builder(): org.spongepowered.api.event.cause.entity.health.source.HealingSource.Builder; + /** + * Gets the {@link HealingType} for this source. + */ + // @ts-ignore + getHealingType(): org.spongepowered.api.event.cause.entity.health.HealingType; + /** + * Gets whether this {@link HealingSource}'s healing amount is scaled by + * {@link Difficulty}. + */ + // @ts-ignore + isDifficultyScaled(): boolean; + /** + * Gets whether this {@link HealingSource} is considered to be magical + * healing, such as potions, or other sources. + */ + // @ts-ignore + isMagic(): boolean; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.HealingSources.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.HealingSources.d.ts new file mode 100644 index 00000000..9f96529b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.HealingSources.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + // @ts-ignore + class HealingSources extends java.lang.Object { + // @ts-ignore + public static FOOD: org.spongepowered.api.event.cause.entity.health.source.HealingSource; + // @ts-ignore + public static GENERIC: org.spongepowered.api.event.cause.entity.health.source.HealingSource; + // @ts-ignore + public static MAGIC: org.spongepowered.api.event.cause.entity.health.source.HealingSource; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.IndirectEntityHealingSource.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.IndirectEntityHealingSource.Builder.d.ts new file mode 100644 index 00000000..bb62f6f9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.IndirectEntityHealingSource.Builder.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + namespace IndirectEntityHealingSource { + // @ts-ignore + interface Builder extends org.spongepowered.api.event.cause.entity.health.source.IndirectEntityHealingSource.IndirectEntityHealingSourceBuilder { + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.IndirectEntityHealingSource.IndirectEntityHealingSourceBuilder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.IndirectEntityHealingSource.IndirectEntityHealingSourceBuilder.d.ts new file mode 100644 index 00000000..7131bf33 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.IndirectEntityHealingSource.IndirectEntityHealingSourceBuilder.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + namespace IndirectEntityHealingSource { + // @ts-ignore + interface IndirectEntityHealingSourceBuilder extends org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.EntityHealingSourceBuilder { + /** + * Sets the indirect {@link Entity} that is providing healing. + */ + // @ts-ignore + indirectEntity(entity: org.spongepowered.api.entity.Entity): org.spongepowered.api.event.cause.entity.health.source.IndirectEntityHealingSource.IndirectEntityHealingSourceBuilder; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.IndirectEntityHealingSource.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.IndirectEntityHealingSource.d.ts new file mode 100644 index 00000000..a7c53731 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.IndirectEntityHealingSource.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + // @ts-ignore + interface IndirectEntityHealingSource extends org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource { + /** + * Creates a new {@link Builder} for constructing an {@link IndirectEntityHealingSource}. + */ + // @ts-ignore + builder(): org.spongepowered.api.event.cause.entity.health.source.IndirectEntityHealingSource.Builder; + /** + * Gets the {@link Entity} indirect source of healing. + */ + // @ts-ignore + getIndirectSource(): org.spongepowered.api.entity.Entity; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.common.AbstractEntityHealingSource.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.common.AbstractEntityHealingSource.d.ts new file mode 100644 index 00000000..3f1684b7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.common.AbstractEntityHealingSource.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + namespace common { + // @ts-ignore + class AbstractEntityHealingSource extends org.spongepowered.api.event.cause.entity.health.source.common.AbstractHealingSource implements org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource { + /** + * Create an {@link EntityHealingSource} based on this abstract one. + */ + // @ts-ignore + constructor(builder: org.spongepowered.api.event.cause.entity.health.source.common.AbstractEntityHealingSourceBuilder) + // @ts-ignore + public getSource(): org.spongepowered.api.entity.Entity; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.common.AbstractEntityHealingSourceBuilder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.common.AbstractEntityHealingSourceBuilder.d.ts new file mode 100644 index 00000000..38603803 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.common.AbstractEntityHealingSourceBuilder.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + namespace common { + // @ts-ignore + abstract class AbstractEntityHealingSourceBuilder extends org.spongepowered.api.event.cause.entity.health.source.common.AbstractHealingSourceBuilder implements org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.EntityHealingSourceBuilder { + // @ts-ignore + constructor() + // @ts-ignore + public from(value: org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource): org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.EntityHealingSourceBuilder; + // @ts-ignore + public reset(): org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.EntityHealingSourceBuilder; + // @ts-ignore + public entity(entity: org.spongepowered.api.entity.Entity): org.spongepowered.api.event.cause.entity.health.source.EntityHealingSource.EntityHealingSourceBuilder; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.common.AbstractHealingSource.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.common.AbstractHealingSource.d.ts new file mode 100644 index 00000000..749a983e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.common.AbstractHealingSource.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + namespace common { + // @ts-ignore + abstract class AbstractHealingSource extends java.lang.Object implements org.spongepowered.api.event.cause.entity.health.source.HealingSource { + // @ts-ignore + constructor(builder: org.spongepowered.api.event.cause.entity.health.source.common.AbstractHealingSourceBuilder) + // @ts-ignore + public getHealingType(): org.spongepowered.api.event.cause.entity.health.HealingType; + // @ts-ignore + public isDifficultyScaled(): boolean; + // @ts-ignore + public isMagic(): boolean; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.common.AbstractHealingSourceBuilder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.common.AbstractHealingSourceBuilder.d.ts new file mode 100644 index 00000000..6691e611 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.common.AbstractHealingSourceBuilder.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + namespace common { + // @ts-ignore + abstract class AbstractHealingSourceBuilder extends java.lang.Object implements org.spongepowered.api.event.cause.entity.health.source.HealingSource.HealingSourceBuilder { + // @ts-ignore + constructor() + // @ts-ignore + protected scales: boolean; + // @ts-ignore + protected healingType: org.spongepowered.api.event.cause.entity.health.HealingType; + // @ts-ignore + public scalesWithDifficulty(): org.spongepowered.api.event.cause.entity.health.source.HealingSource.HealingSourceBuilder; + // @ts-ignore + public magical(): org.spongepowered.api.event.cause.entity.health.source.HealingSource.HealingSourceBuilder; + // @ts-ignore + public type(healingType: org.spongepowered.api.event.cause.entity.health.HealingType): org.spongepowered.api.event.cause.entity.health.source.HealingSource.HealingSourceBuilder; + // @ts-ignore + public from(value: org.spongepowered.api.event.cause.entity.health.source.HealingSource): org.spongepowered.api.event.cause.entity.health.source.HealingSource.HealingSourceBuilder; + // @ts-ignore + public reset(): org.spongepowered.api.event.cause.entity.health.source.HealingSource.HealingSourceBuilder; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.common.AbstractIndirectEntityHealingSource.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.common.AbstractIndirectEntityHealingSource.d.ts new file mode 100644 index 00000000..b6dcfd13 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.health.source.common.AbstractIndirectEntityHealingSource.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace health { + namespace source { + namespace common { + // @ts-ignore + class AbstractIndirectEntityHealingSource extends java.lang.Object { + // @ts-ignore + constructor() + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.spawn.SpawnType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.spawn.SpawnType.d.ts new file mode 100644 index 00000000..abdc2a57 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.spawn.SpawnType.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace spawn { + // @ts-ignore + interface SpawnType extends org.spongepowered.api.CatalogType { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.spawn.SpawnTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.spawn.SpawnTypes.d.ts new file mode 100644 index 00000000..a875d695 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.spawn.SpawnTypes.d.ts @@ -0,0 +1,54 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace spawn { + // @ts-ignore + class SpawnTypes extends java.lang.Object { + // @ts-ignore + public static BLOCK_SPAWNING: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static BREEDING: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static CHUNK_LOAD: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static CUSTOM: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static DISPENSE: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static DROPPED_ITEM: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static EXPERIENCE: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static FALLING_BLOCK: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static MOB_SPAWNER: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static PASSIVE: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static PLACEMENT: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static PLUGIN: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static PROJECTILE: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static SPAWN_EGG: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static STRUCTURE: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static TNT_IGNITE: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static WEATHER: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + // @ts-ignore + public static WORLD_SPAWNER: org.spongepowered.api.event.cause.entity.spawn.SpawnType; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.teleport.TeleportType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.teleport.TeleportType.d.ts new file mode 100644 index 00000000..32aa850a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.teleport.TeleportType.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace teleport { + // @ts-ignore + interface TeleportType extends org.spongepowered.api.CatalogType { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.teleport.TeleportTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.teleport.TeleportTypes.d.ts new file mode 100644 index 00000000..b0f8c3e3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.cause.entity.teleport.TeleportTypes.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace cause { + namespace entity { + namespace teleport { + // @ts-ignore + class TeleportTypes extends java.lang.Object { + // @ts-ignore + public static COMMAND: org.spongepowered.api.event.cause.entity.teleport.TeleportType; + // @ts-ignore + public static ENTITY_TELEPORT: org.spongepowered.api.event.cause.entity.teleport.TeleportType; + // @ts-ignore + public static PLUGIN: org.spongepowered.api.event.cause.entity.teleport.TeleportType; + // @ts-ignore + public static PORTAL: org.spongepowered.api.event.cause.entity.teleport.TeleportType; + // @ts-ignore + public static UNKNOWN: org.spongepowered.api.event.cause.entity.teleport.TeleportType; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.command.SendCommandEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.command.SendCommandEvent.d.ts new file mode 100644 index 00000000..293afd38 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.command.SendCommandEvent.d.ts @@ -0,0 +1,52 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace command { + // @ts-ignore + interface SendCommandEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + /** + * Gets the command as a string, without any sort of command prefix. + *

For example, if the message was {@code /example bob 3 -f}, then + * the command would be {@code example}.

+ */ + // @ts-ignore + getCommand(): string; + /** + * Sets the command as a string, without any sort of command prefix. + *

For example, if the message was {@code /example bob 3 -f}, then + * the command would be {@code example}.

+ */ + // @ts-ignore + setCommand(command: string): void; + /** + * Gets the arguments as a string. + *

For example, if the message was {@code /example bob 3 -f}, then + * the arguments would be {@code bob 3 -f}.

+ */ + // @ts-ignore + getArguments(): string; + /** + * Sets the arguments as a string. + *

For example, if the message was {@code /example bob 3 -f}, then + * the arguments would be {@code bob 3 -f}.

+ */ + // @ts-ignore + setArguments(arguments: string): void; + /** + * The result of the command. + */ + // @ts-ignore + getResult(): org.spongepowered.api.command.CommandResult; + /** + * Sets the result of the command. + */ + // @ts-ignore + setResult(result: org.spongepowered.api.command.CommandResult): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.command.TabCompleteEvent.Chat.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.command.TabCompleteEvent.Chat.d.ts new file mode 100644 index 00000000..01bd547e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.command.TabCompleteEvent.Chat.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace command { + namespace TabCompleteEvent { + // @ts-ignore + interface Chat extends org.spongepowered.api.event.command.TabCompleteEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.command.TabCompleteEvent.Command.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.command.TabCompleteEvent.Command.d.ts new file mode 100644 index 00000000..00e2c4c8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.command.TabCompleteEvent.Command.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace command { + namespace TabCompleteEvent { + // @ts-ignore + interface Command extends org.spongepowered.api.event.command.TabCompleteEvent { + /** + * Gets the command as a string, without any sort of command prefix. + *

For example, if the message was {@code /example bob 3 -f}, + * then the command would be {@code example}.

+ */ + // @ts-ignore + getCommand(): string; + /** + * Gets the arguments as a string. + *

For example, if the message was {@code /example bob 3 -f}, + * then the arguments would be {@code bob 3 -f}.

+ */ + // @ts-ignore + getArguments(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.command.TabCompleteEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.command.TabCompleteEvent.d.ts new file mode 100644 index 00000000..95be10b4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.command.TabCompleteEvent.d.ts @@ -0,0 +1,57 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace command { + // @ts-ignore + interface TabCompleteEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + /** + * Gets the message sent to the server for tab completion. + *

The Vanilla client does not send the entire contents of the chat box. + * Instead, it sends the contents of the chat box up to the cursor position + * (excluding the character after the cursor). + */ + // @ts-ignore + getRawMessage(): string; + /** + * Gets the immutable list of the suggestions originally generated. + *

In Vanilla, these suggestions are usually player names, in the case + * of {@link Chat}.

+ *

Note: Entries *should not* contain spaces, as they produce strange + * behavior on the Vanilla client (tabbing between entries causes them + * to be appended to the text box, instead of replacing the existing + * entry.

+ */ + // @ts-ignore + getOriginalTabCompletions(): java.util.List; + /** + * Gets the list of available suggestions. This list is mutable, so + * any modifications should happen to this list. All suggestions will + * replace the last word in the arguments on the client. + */ + // @ts-ignore + getTabCompletions(): java.util.List; + /** + * Gets the location of the block that the player is looking at, if + * available. + *

In Vanilla, this will be available if the player is looking at + * a block within mineable range (the wireframe is displayed on + * the client).

+ */ + // @ts-ignore + getTargetPos(): java.util.Optional; + /** + * Gets whether the player is tab completing from a block's GUI. + *

In Vanilla, this will be true if the player is tab + * completing in a commandblock or commandblock minecart's GUI, and + * false otherwise.

+ */ + // @ts-ignore + isUsingBlock(): boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.data.ChangeDataHolderEvent.ValueChange.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.data.ChangeDataHolderEvent.ValueChange.d.ts new file mode 100644 index 00000000..d8d4cb3b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.data.ChangeDataHolderEvent.ValueChange.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace data { + namespace ChangeDataHolderEvent { + // @ts-ignore + interface ValueChange extends org.spongepowered.api.event.data.ChangeDataHolderEvent { + /** + * Gets the original {@link DataTransactionResult} of the {@link Value}s + * that have changed in this event. + */ + // @ts-ignore + getOriginalChanges(): org.spongepowered.api.data.DataTransactionResult; + /** + * Submits a new {@link DataTransactionResult} as a proposal of various + * {@link Value}s to be successfully offered/changed on the original + * {@link DataHolder}. + *

If the proposed {@link DataTransactionResult} provides additional + * values that were not changed in the {@link #getOriginalChanges()}, + * the provided changes suggested to be successfully offered will be + * re-offered

+ */ + // @ts-ignore + proposeChanges(result: org.spongepowered.api.data.DataTransactionResult): org.spongepowered.api.event.data.ChangeDataHolderEvent.ValueChange; + /** + * Gets the ending resulting {@link DataTransactionResult} that will be + * offered to the {@link DataHolder}. + */ + // @ts-ignore + getEndResult(): org.spongepowered.api.data.DataTransactionResult; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.data.ChangeDataHolderEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.data.ChangeDataHolderEvent.d.ts new file mode 100644 index 00000000..153a297a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.data.ChangeDataHolderEvent.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace data { + // @ts-ignore + interface ChangeDataHolderEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + /** + * Gets the {@link DataHolder} targeted in this event. + */ + // @ts-ignore + getTargetHolder(): org.spongepowered.api.data.DataHolder; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.economy.EconomyTransactionEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.economy.EconomyTransactionEvent.d.ts new file mode 100644 index 00000000..2ddbd0a6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.economy.EconomyTransactionEvent.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace economy { + // @ts-ignore + interface EconomyTransactionEvent extends org.spongepowered.api.event.Event { + /** + * Gets the {@link TransactionResult} for the transaction that occurred. + */ + // @ts-ignore + getTransactionResult(): org.spongepowered.api.service.economy.transaction.TransactionResult; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.AffectEntityEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.AffectEntityEvent.d.ts new file mode 100644 index 00000000..3cd86899 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.AffectEntityEvent.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface AffectEntityEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + /** + * Gets an {@link List} of the entity data + * un-affected by event changes. + *

This method MUST be called at {@link Order#PRE} in order + * to be properly initialized, after which it can be called at any time. + * If it is not first called at {@link Order#PRE}, it will throw an {@link IllegalStateException} + * when invoked.

+ */ + // @ts-ignore + getEntitySnapshots(): java.util.List; + /** + * Gets the {@link List} who will be affected after event + * resolution. + */ + // @ts-ignore + getEntities(): java.util.List; + /** + * Filters out {@link Location}'s from + * {@link AffectEntityEvent#getEntities()} to be affected by this event. + *

Locations for which the predicate returns false will + * be removed from {@link #getEntities()}.

+ */ + // @ts-ignore + filterEntityLocations(predicate: java.util.function$.Predicate): java.util.List; + /** + * Filters out {@link Entity}'s from {@link AffectEntityEvent#getEntities()} + * to be affected by this event. + *

Entities for which the predicate returns false will + * be removed from {@link #getEntities()}.

+ */ + // @ts-ignore + filterEntities(predicate: java.util.function$.Predicate): java.util.List; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.AttackEntityEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.AttackEntityEvent.d.ts new file mode 100644 index 00000000..32582345 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.AttackEntityEvent.d.ts @@ -0,0 +1,160 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface AttackEntityEvent extends org.spongepowered.api.event.entity.TargetEntityEvent, org.spongepowered.api.event.Cancellable { + // @ts-ignore + SOURCE: string; + // @ts-ignore + HARD_HAT_ARMOR: string; + // @ts-ignore + SHIELD: string; + // @ts-ignore + GENERAL_ARMOR: string; + // @ts-ignore + HELMET: string; + // @ts-ignore + CHESTPLATE: string; + // @ts-ignore + LEGGINGS: string; + // @ts-ignore + BOOTS: string; + // @ts-ignore + RESISTANCE: string; + // @ts-ignore + ABSORPTION: string; + // @ts-ignore + CREATOR: string; + // @ts-ignore + NOTIFIER: string; + /** + * Gets the original "raw" amount of damage to deal to the targeted + * {@link Entity}. + */ + // @ts-ignore + getOriginalDamage(): number; + /** + * Gets the original "final" amount of damage after all original + * {@link DamageModifier}s are applied to {@link #getOriginalDamage()}. + * The "final" damage is considered the amount of health being lost by + * the {@link Entity}, if health is tracked. + */ + // @ts-ignore + getOriginalFinalDamage(): number; + /** + * Gets an {@link ImmutableMap} of all original {@link DamageModifier}s + * and their associated "modified" damage. Note that ordering is not + * retained. + */ + // @ts-ignore + getOriginalDamages(): java.util.Map; + /** + * Gets the original damage for the provided {@link DamageModifier}. If + * the provided {@link DamageModifier} was not included in + * {@link #getOriginalDamages()}, an {@link IllegalArgumentException} is + * thrown. + */ + // @ts-ignore + getOriginalModifierDamage(damageModifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier): number; + /** + * Gets the original {@link List} of {@link DamageModifier} to + * {@link Function} that was originally passed into the event. + */ + // @ts-ignore + getOriginalFunctions(): java.util.List; + /** + * Gets the "base" damage to deal to the targeted {@link Entity}. The + * "base" damage is the original value before passing along the chain of + * {@link Function}s for all known {@link DamageModifier}s. + */ + // @ts-ignore + getBaseOutputDamage(): number; + /** + * Sets the "base" damage to deal to the targeted {@link Entity}. The + * "base" damage is the original value before passing along the chain of + * {@link Function}s for all known {@link DamageModifier}s. + */ + // @ts-ignore + setBaseOutputDamage(baseDamage: number): void; + /** + * Gets the final damage that will be passed into the proceeding + * {@link AttackEntityEvent}. The final damage is the end result of the + * {@link #getBaseOutputDamage()} being applied in {@link Function#apply(Object)} + * available from all the {@link Tuple}s of {@link DamageModifier} to + * {@link Function} in {@link #getOriginalFunctions()}. + */ + // @ts-ignore + getFinalOutputDamage(): number; + /** + * Checks whether the provided {@link DamageModifier} is applicable to the + * current available {@link DamageModifier}s. + */ + // @ts-ignore + isModifierApplicable(damageModifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier): boolean; + /** + * Gets the damage for the provided {@link DamageModifier}. Providing that + * {@link #isModifierApplicable(DamageModifier)} returns true, + * the cached "damage" for the {@link DamageModifier} is returned. + */ + // @ts-ignore + getOutputDamage(damageModifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier): number; + /** + * Sets the provided {@link Function} to be used for the given + * {@link DamageModifier}. If the {@link DamageModifier} is already + * included in {@link #getModifiers()}, the {@link Function} replaces + * the existing function. If there is no {@link Tuple} for the + * {@link DamageModifier}, a new one is created and added to the end + * of the list of {@link Function}s to be applied to the + * {@link #getBaseOutputDamage()}. + *

If needing to create a custom {@link DamageModifier} is required, + * usage of the + * {@link org.spongepowered.api.event.cause.entity.damage.DamageModifier.Builder} + * is recommended.

+ */ + // @ts-ignore + setOutputDamage(damageModifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier, func: java.util.function$.DoubleUnaryOperator): void; + /** + * Adds the provided {@link DamageModifier} and {@link Function} to the + * list of modifiers, such that the {@link Set} containing + * {@link DamageModifierType}s provided in {@code before} will appear + * after the provided damage modifier. + */ + // @ts-ignore + addDamageModifierBefore(damageModifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier, func: java.util.function$.DoubleUnaryOperator, before: java.util.Set): void; + /** + * Adds the provided {@link DamageModifier} and {@link Function} to the list + * of modifiers, such that the modifier will appear in order after any + * current modifiers whose type are included in the provided {@link Set} + * of {@link DamageModifierType}s. + */ + // @ts-ignore + addDamageModifierAfter(damageModifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier, func: java.util.function$.DoubleUnaryOperator, after: java.util.Set): void; + /** + * Gets a list of simple {@link Tuple}s of {@link DamageModifier} keyed to + * their representative {@link Function}s. All {@link DamageModifier}s are + * applicable to the entity based on the {@link DamageSource} and any + * possible invulnerabilities due to the {@link DamageSource}. + */ + // @ts-ignore + getModifiers(): java.util.List; + /** + * Gets the knock back modifier. The modifier itself will apply to the + * momentum of the attacked entity. + */ + // @ts-ignore + getKnockbackModifier(): number; + /** + * Sets the knock back modifier. The modifier itself will apply to the + * momentum of the attacked entity. + */ + // @ts-ignore + setKnockbackModifier(modifier: number): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.BreedEntityEvent.Breed.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.BreedEntityEvent.Breed.d.ts new file mode 100644 index 00000000..f20f9469 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.BreedEntityEvent.Breed.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace BreedEntityEvent { + // @ts-ignore + interface Breed extends org.spongepowered.api.event.entity.BreedEntityEvent { + /** + * Gets the offspring {@link Entity}. + */ + // @ts-ignore + getOffspringEntity(): org.spongepowered.api.entity.living.Ageable; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.BreedEntityEvent.FindMate.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.BreedEntityEvent.FindMate.d.ts new file mode 100644 index 00000000..d2cfea6b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.BreedEntityEvent.FindMate.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace BreedEntityEvent { + // @ts-ignore + interface FindMate extends org.spongepowered.api.event.entity.BreedEntityEvent, org.spongepowered.api.event.TristateResult { + /** + * Returns the {@link Animal} this entity will mate with. + */ + // @ts-ignore + getMatingEntity(): org.spongepowered.api.entity.living.animal.Animal; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.BreedEntityEvent.ReadyToMate.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.BreedEntityEvent.ReadyToMate.d.ts new file mode 100644 index 00000000..298200f1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.BreedEntityEvent.ReadyToMate.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace BreedEntityEvent { + // @ts-ignore + interface ReadyToMate extends org.spongepowered.api.event.entity.BreedEntityEvent { + // @ts-ignore + getTargetEntity(): org.spongepowered.api.entity.living.animal.Animal; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.BreedEntityEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.BreedEntityEvent.d.ts new file mode 100644 index 00000000..e3bd677d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.BreedEntityEvent.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface BreedEntityEvent extends org.spongepowered.api.event.entity.InteractEntityEvent { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.Break.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.Break.d.ts new file mode 100644 index 00000000..62d0d141 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.Break.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace ChangeEntityEquipmentEvent { + // @ts-ignore + interface Break extends org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent, org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.TargetPlayer { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.TargetHumanoid.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.TargetHumanoid.d.ts new file mode 100644 index 00000000..7fad8427 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.TargetHumanoid.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace ChangeEntityEquipmentEvent { + // @ts-ignore + interface TargetHumanoid extends org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.TargetLiving, org.spongepowered.api.event.entity.living.humanoid.TargetHumanoidEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.TargetLiving.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.TargetLiving.d.ts new file mode 100644 index 00000000..b8f8662c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.TargetLiving.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace ChangeEntityEquipmentEvent { + // @ts-ignore + interface TargetLiving extends org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent, org.spongepowered.api.event.entity.living.TargetLivingEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.TargetPlayer.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.TargetPlayer.d.ts new file mode 100644 index 00000000..7e172d4a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.TargetPlayer.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace ChangeEntityEquipmentEvent { + // @ts-ignore + interface TargetPlayer extends org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.TargetHumanoid, org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.d.ts new file mode 100644 index 00000000..ab1f486e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface ChangeEntityEquipmentEvent extends org.spongepowered.api.event.entity.TargetEntityEvent, org.spongepowered.api.event.item.inventory.TargetInventoryEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the previously equipped {@link ItemStack} as an + * {@link ItemStackSnapshot}. + *

The previously equipped item may have been empty.

+ */ + // @ts-ignore + getOriginalItemStack(): java.util.Optional; + /** + * Gets the new {@link ItemStack} that is being equipped in the relative + * armor slot. + *

The itemstack may not exist or the slot is being emptied.

+ */ + // @ts-ignore + getItemStack(): java.util.Optional; + /** + * Gets the {@link Transaction} of {@link ItemStackSnapshot}s for this event. + */ + // @ts-ignore + getTransaction(): org.spongepowered.api.data.Transaction; + // @ts-ignore + getTargetInventory(): org.spongepowered.api.item.inventory.Slot; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityExperienceEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityExperienceEvent.d.ts new file mode 100644 index 00000000..4c6b5ed3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityExperienceEvent.d.ts @@ -0,0 +1,47 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface ChangeEntityExperienceEvent extends org.spongepowered.api.event.entity.TargetEntityEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the original total experience unmodified by event changes. + */ + // @ts-ignore + getOriginalExperience(): number; + /** + * Gets the original values for the experience unmodified by event changes. + */ + // @ts-ignore + getOriginalData(): org.spongepowered.api.data.manipulator.immutable.entity.ImmutableExperienceHolderData; + /** + * Gets the total experience after event changes. + */ + // @ts-ignore + getExperience(): number; + /** + * Sets the final total experience after event changes. + */ + // @ts-ignore + setExperience(experience: number): void; + /** + * Gets the experience after an event has been processed. Modify this + * data manipulator to change the final experience. + */ + // @ts-ignore + getFinalData(): org.spongepowered.api.data.manipulator.mutable.entity.ExperienceHolderData; + /** + * This method exists solely to provide backwards-compatibility with existing plugins + * using the old ChangeExperienceEvent. It should not be called directly - instead, + * plugins should use {@link SpongeEventFactory#createChangeEntityExperienceEvent(Cause, ImmutableExperienceHolderData, ExperienceHolderData, Entity)} + */ + // @ts-ignore + createChangeEntityExperienceEvent(cause: org.spongepowered.api.event.cause.Cause, originalExperience: number, experience: number, targetEntity: org.spongepowered.api.entity.Entity): org.spongepowered.api.event.entity.ChangeEntityExperienceEvent; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent.Expire.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent.Expire.d.ts new file mode 100644 index 00000000..dc410a1c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent.Expire.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace ChangeEntityPotionEffectEvent { + // @ts-ignore + interface Expire extends org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent.Gain.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent.Gain.d.ts new file mode 100644 index 00000000..d09c10b4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent.Gain.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace ChangeEntityPotionEffectEvent { + // @ts-ignore + interface Gain extends org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent { + /** + * Gets the original potion effect involved in this event. + */ + // @ts-ignore + getOriginalPotionEffect(): org.spongepowered.api.effect.potion.PotionEffect; + /** + * Sets the potion effect to be used in this event. + */ + // @ts-ignore + setPotionEffect(effect: org.spongepowered.api.effect.potion.PotionEffect): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent.Remove.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent.Remove.d.ts new file mode 100644 index 00000000..b96beabc --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent.Remove.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace ChangeEntityPotionEffectEvent { + // @ts-ignore + interface Remove extends org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent.d.ts new file mode 100644 index 00000000..15e3d3f5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ChangeEntityPotionEffectEvent.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface ChangeEntityPotionEffectEvent extends org.spongepowered.api.event.entity.TargetEntityEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets a copy of all current effects applied on the entity. + */ + // @ts-ignore + getCurrentEffects(): java.util.List; + /** + * Gets the potion effect involved in this event. + */ + // @ts-ignore + getPotionEffect(): org.spongepowered.api.effect.potion.PotionEffect; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.CollideEntityEvent.Impact.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.CollideEntityEvent.Impact.d.ts new file mode 100644 index 00000000..8c98d6e7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.CollideEntityEvent.Impact.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace CollideEntityEvent { + // @ts-ignore + interface Impact extends org.spongepowered.api.event.entity.CollideEntityEvent, org.spongepowered.api.event.action.CollideEvent.Impact { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.CollideEntityEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.CollideEntityEvent.d.ts new file mode 100644 index 00000000..ba3b85a4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.CollideEntityEvent.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface CollideEntityEvent extends org.spongepowered.api.event.action.CollideEvent, org.spongepowered.api.event.entity.AffectEntityEvent { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ConstructEntityEvent.Post.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ConstructEntityEvent.Post.d.ts new file mode 100644 index 00000000..193a8c8d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ConstructEntityEvent.Post.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace ConstructEntityEvent { + // @ts-ignore + interface Post extends org.spongepowered.api.event.entity.ConstructEntityEvent, org.spongepowered.api.event.entity.TargetEntityEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ConstructEntityEvent.Pre.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ConstructEntityEvent.Pre.d.ts new file mode 100644 index 00000000..14fc5f2e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ConstructEntityEvent.Pre.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace ConstructEntityEvent { + // @ts-ignore + interface Pre extends org.spongepowered.api.event.entity.ConstructEntityEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ConstructEntityEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ConstructEntityEvent.d.ts new file mode 100644 index 00000000..bc32106a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ConstructEntityEvent.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface ConstructEntityEvent extends org.spongepowered.api.event.Event { + /** + * Gets the {@link Transform} that the {@link Entity} will be constructed with. + */ + // @ts-ignore + getTransform(): org.spongepowered.api.entity.Transform; + /** + * Gets the {@link EntityType} of the target {@link Entity} that is going to be + * constructed. + */ + // @ts-ignore + getTargetType(): org.spongepowered.api.entity.EntityType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.DamageEntityEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.DamageEntityEvent.d.ts new file mode 100644 index 00000000..9f55b102 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.DamageEntityEvent.d.ts @@ -0,0 +1,129 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface DamageEntityEvent extends org.spongepowered.api.event.entity.TargetEntityEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the original "raw" amount of damage to deal to the targeted + * {@link Entity}. + */ + // @ts-ignore + getOriginalDamage(): number; + /** + * Gets the original "final" amount of damage after all original + * {@link DamageModifier}s are applied to {@link #getOriginalDamage()}. + * The "final" damage is considered the amount of health being lost by + * the {@link Entity}, if health is tracked. + */ + // @ts-ignore + getOriginalFinalDamage(): number; + /** + * Gets an {@link ImmutableMap} of all original {@link DamageModifier}s + * and their associated "modified" damage. Note that ordering is not + * retained. + */ + // @ts-ignore + getOriginalDamages(): java.util.Map; + /** + * Gets the original damage for the provided {@link DamageModifier}. If + * the provided {@link DamageModifier} was not included in + * {@link #getOriginalDamages()}, an {@link IllegalArgumentException} is + * thrown. + */ + // @ts-ignore + getOriginalModifierDamage(damageModifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier): number; + /** + * Gets the original {@link List} of {@link DamageModifier} to + * {@link DamageFunction} that was originally passed into the event. + */ + // @ts-ignore + getOriginalFunctions(): java.util.List; + /** + * Gets the "base" damage to deal to the targeted {@link Entity}. The + * "base" damage is the original value before passing along the chain of + * {@link DamageFunction}s for all known {@link DamageModifier}s. + */ + // @ts-ignore + getBaseDamage(): number; + /** + * Sets the "base" damage to deal to the targeted {@link Entity}. The + * "base" damage is the original value before passing along the chain of + * {@link DamageFunction}s for all known {@link DamageModifier}s. + */ + // @ts-ignore + setBaseDamage(baseDamage: number): void; + /** + * Gets the final damage that will be passed into the proceeding + * {@link DamageEntityEvent}. The final damage is the end result of the + * {@link #getBaseDamage()} being applied in {@link DoubleUnaryOperator#applyAsDouble(double)} + * available from all the {@link Tuple}s of {@link DamageModifier} to + * {@link DamageFunction} in {@link #getOriginalFunctions()}. + */ + // @ts-ignore + getFinalDamage(): number; + /** + * Checks whether the provided {@link DamageModifier} is applicable to the + * current available {@link DamageModifier}s. + */ + // @ts-ignore + isModifierApplicable(damageModifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier): boolean; + /** + * Gets the damage for the provided {@link DamageModifier}. Providing that + * {@link #isModifierApplicable(DamageModifier)} returns true, + * the cached "damage" for the {@link DamageModifier} is returned. + */ + // @ts-ignore + getDamage(damageModifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier): number; + /** + * Sets the provided {@link DamageFunction} to be used for the given + * {@link DamageModifier}. If the {@link DamageModifier} is already + * included in {@link #getModifiers()}, the {@link DoubleUnaryOperator} replaces + * the existing function. If there is no {@link Tuple} for the + * {@link DamageModifier}, a new one is created and added to the end + * of the list of {@link DoubleUnaryOperator}s to be applied to the + * {@link #getBaseDamage()}. + *

If needing to create a custom {@link DamageModifier} is required, + * usage of the {@link Builder} is recommended.

+ */ + // @ts-ignore + setDamage(damageModifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier, func: java.util.function$.DoubleUnaryOperator): void; + /** + * Adds the provided {@link DamageModifier} and {@link DoubleUnaryOperator} to the + * list of modifiers, such that the {@link Set} containing + * {@link DamageModifierType}s provided in {@code before} will appear + * after the provided damage modifier. + */ + // @ts-ignore + addDamageModifierBefore(damageModifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier, func: java.util.function$.DoubleUnaryOperator, before: java.util.Set): void; + /** + * Adds the provided {@link DamageModifier} and {@link DoubleUnaryOperator} to the list + * of modifiers, such that the modifier will appear in order after any + * current modifiers whose type are included in the provided {@link Set} of + * {@link DamageModifierType}s. + */ + // @ts-ignore + addModifierAfter(damageModifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier, func: java.util.function$.DoubleUnaryOperator, after: java.util.Set): void; + /** + * Gets a list of simple {@link Tuple}s of {@link DamageModifier} keyed to + * their representative {@link DamageFunction}s. All {@link DamageModifier}s are + * applicable to the entity based on the {@link DamageSource} and any + * possible invulnerabilities due to the {@link DamageSource}. + */ + // @ts-ignore + getModifiers(): java.util.List; + /** + * Returns whether or not this event will cause the entity to die if the + * event is not cancelled. Only supported for living entities, returns false + * if {@link #getTargetEntity()} is not a living entity. + */ + // @ts-ignore + willCauseDeath(): boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.DestructEntityEvent.Death.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.DestructEntityEvent.Death.d.ts new file mode 100644 index 00000000..2133017f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.DestructEntityEvent.Death.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace DestructEntityEvent { + // @ts-ignore + interface Death extends org.spongepowered.api.event.entity.DestructEntityEvent, org.spongepowered.api.event.entity.living.TargetLivingEvent, org.spongepowered.api.event.Cancellable { + /** + * Applies the {@link DefaultGameRules#KEEP_INVENTORY} gamerule to this + * entity alone. + *

This only works for players

+ */ + // @ts-ignore + setKeepInventory(keepInventory: boolean): void; + /** + * Returns whether the inventory is kept after death. + *

By default this is the same as the + * {@link DefaultGameRules#KEEP_INVENTORY} gamerule.

+ */ + // @ts-ignore + getKeepInventory(): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.DestructEntityEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.DestructEntityEvent.d.ts new file mode 100644 index 00000000..4a6458b6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.DestructEntityEvent.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface DestructEntityEvent extends org.spongepowered.api.event.entity.TargetEntityEvent, org.spongepowered.api.event.message.MessageChannelEvent { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ExpireEntityEvent.TargetItem.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ExpireEntityEvent.TargetItem.d.ts new file mode 100644 index 00000000..041816d4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ExpireEntityEvent.TargetItem.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace ExpireEntityEvent { + // @ts-ignore + interface TargetItem extends org.spongepowered.api.event.entity.ExpireEntityEvent, org.spongepowered.api.event.entity.item.TargetItemEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ExpireEntityEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ExpireEntityEvent.d.ts new file mode 100644 index 00000000..082392c5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ExpireEntityEvent.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface ExpireEntityEvent extends org.spongepowered.api.event.entity.TargetEntityEvent { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.HarvestEntityEvent.TargetHumanoid.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.HarvestEntityEvent.TargetHumanoid.d.ts new file mode 100644 index 00000000..444b4b20 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.HarvestEntityEvent.TargetHumanoid.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace HarvestEntityEvent { + // @ts-ignore + interface TargetHumanoid extends org.spongepowered.api.event.entity.HarvestEntityEvent.TargetLiving, org.spongepowered.api.event.entity.living.humanoid.TargetHumanoidEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.HarvestEntityEvent.TargetLiving.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.HarvestEntityEvent.TargetLiving.d.ts new file mode 100644 index 00000000..a5ece600 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.HarvestEntityEvent.TargetLiving.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace HarvestEntityEvent { + // @ts-ignore + interface TargetLiving extends org.spongepowered.api.event.entity.HarvestEntityEvent, org.spongepowered.api.event.entity.living.TargetLivingEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.HarvestEntityEvent.TargetPlayer.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.HarvestEntityEvent.TargetPlayer.d.ts new file mode 100644 index 00000000..56f0e518 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.HarvestEntityEvent.TargetPlayer.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace HarvestEntityEvent { + // @ts-ignore + interface TargetPlayer extends org.spongepowered.api.event.entity.HarvestEntityEvent.TargetHumanoid, org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent { + /** + * Gets whether the player keeps their inventory on death. + */ + // @ts-ignore + keepsInventory(): boolean; + /** + * Sets if the player keeps their inventory on death. + */ + // @ts-ignore + setKeepsInventory(keepInventory: boolean): void; + /** + * Gets whether the player keeps all of their EXP on death. + */ + // @ts-ignore + keepsLevel(): boolean; + /** + * Sets if the player keeps all of their EXP on death. + */ + // @ts-ignore + setKeepsLevel(keepLevel: boolean): void; + /** + * Gets the new level the player will have after death. + */ + // @ts-ignore + getLevel(): number; + /** + * Sets the new level the player will have after death. + */ + // @ts-ignore + setLevel(level: number): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.HarvestEntityEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.HarvestEntityEvent.d.ts new file mode 100644 index 00000000..1bcca466 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.HarvestEntityEvent.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface HarvestEntityEvent extends org.spongepowered.api.event.entity.ChangeEntityExperienceEvent { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.HealEntityEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.HealEntityEvent.d.ts new file mode 100644 index 00000000..338ac0d9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.HealEntityEvent.d.ts @@ -0,0 +1,107 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface HealEntityEvent extends org.spongepowered.api.event.entity.TargetEntityEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the original amount to "heal" the targeted {@link Entity}. + */ + // @ts-ignore + getOriginalHealAmount(): number; + /** + * Gets the original "final" amount of healing after all original + * {@link HealthModifier}s are applied to {@link #getOriginalHealAmount()}. + * The "final" heal amount is considered the amount gained by the + * {@link Entity}, if health is tracked. + */ + // @ts-ignore + getOriginalFinalHealAmount(): number; + /** + * Gets an {@link Map} of all original {@link HealthModifier}s and their + * associated "modified" heal amount. Note that ordering is not retained. + */ + // @ts-ignore + getOriginalHealingAmounts(): java.util.Map; + /** + * Gets the final heal amount that will be applied to the entity. The final + * heal amount is the end result of the {@link #getBaseHealAmount()} being + * applied in {@link DoubleUnaryOperator#applyAsDouble(double)} available + * from all the {@link Tuple}s of {@link HealthModifier} to + * {@link DoubleUnaryOperator} in {@link #getOriginalFunctions()}. + */ + // @ts-ignore + getFinalHealAmount(): number; + /** + * Gets the original healing amount for the provided {@link HealthModifier}. + * If the provided {@link HealthModifier} was not included in + * {@link #getOriginalHealingAmounts()}, an {@link IllegalArgumentException} + * is thrown. + */ + // @ts-ignore + getOriginalHealingModifierAmount(healthModifier: org.spongepowered.api.event.cause.entity.health.HealthModifier): number; + /** + * Gets the original {@link List} of {@link HealthFunction}s that was + * originally passed into the event. + */ + // @ts-ignore + getOriginalFunctions(): java.util.List; + /** + * Gets the "base" healing amount to apply to the targeted {@link Entity}. + * The "base" heal amount is the original value before passing along the + * chain of {@link DoubleUnaryOperator}s for all known + * {@link HealthModifier}s. + */ + // @ts-ignore + getBaseHealAmount(): number; + /** + * Sets the "base" healing amount to apply to the targeted {@link Entity}. + * The "base" heal amount is the original value passed along the chain of + * {@link DoubleUnaryOperator}s for all known {@link HealthModifier}s. + */ + // @ts-ignore + setBaseHealAmount(healAmount: number): void; + /** + * Checks whether the provided {@link HealthModifier} is applicable to the + * current available {@link HealthModifier}s. + */ + // @ts-ignore + isModifierApplicable(healthModifier: org.spongepowered.api.event.cause.entity.health.HealthModifier): boolean; + /** + * Gets the heal amount for the provided {@link HealthModifier}. Providing + * that {@link #isModifierApplicable(HealthModifier)} returns + * true, the cached "heal amount" for the + * {@link HealthModifier} is returned. + */ + // @ts-ignore + getHealAmount(healthModifier: org.spongepowered.api.event.cause.entity.health.HealthModifier): number; + /** + * Sets the provided {@link DoubleUnaryOperator} to be used for the given + * {@link HealthModifier}. If the {@link HealthModifier} is already included + * in {@link #getModifiers()}, the {@link DoubleUnaryOperator} replaces the + * existing function. If there is no {@link HealthFunction} for the + * {@link HealthModifier}, a new one is created and added to the end of the + * list of {@link DoubleUnaryOperator}s to be applied to the + * {@link #getBaseHealAmount()}. + *

If needing to create a custom {@link HealthModifier} is required, + * usage of the + * {@link org.spongepowered.api.event.cause.entity.health.HealthModifier.Builder} + * is recommended.

+ */ + // @ts-ignore + setHealAmount(healthModifier: org.spongepowered.api.event.cause.entity.health.HealthModifier, func: java.util.function$.DoubleUnaryOperator): void; + /** + * Gets a list of simple {@link HealthFunction}s. All {@link HealthModifier} + * s are applicable to the entity based on the {@link HealingSource} and any + * possible invulnerabilities due to the {@link HealingSource}. + */ + // @ts-ignore + getModifiers(): java.util.List; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.IgniteEntityEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.IgniteEntityEvent.d.ts new file mode 100644 index 00000000..e34750ba --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.IgniteEntityEvent.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface IgniteEntityEvent extends org.spongepowered.api.event.entity.TargetEntityEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the original amount of fire ticks the entity will remain on fire. + */ + // @ts-ignore + getOriginalFireTicks(): number; + /** + * Gets the amount of ticks the entity will remain on fire. + */ + // @ts-ignore + getFireTicks(): number; + /** + * Sets the amount of ticks the entity will remain on fire. + */ + // @ts-ignore + setFireTicks(fireTicks: number): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.InteractEntityEvent.Primary.MainHand.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.InteractEntityEvent.Primary.MainHand.d.ts new file mode 100644 index 00000000..4dd8a34a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.InteractEntityEvent.Primary.MainHand.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace InteractEntityEvent { + namespace Primary { + // @ts-ignore + interface MainHand extends org.spongepowered.api.event.entity.InteractEntityEvent.Primary { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.InteractEntityEvent.Primary.OffHand.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.InteractEntityEvent.Primary.OffHand.d.ts new file mode 100644 index 00000000..62e87897 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.InteractEntityEvent.Primary.OffHand.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace InteractEntityEvent { + namespace Primary { + // @ts-ignore + interface OffHand extends org.spongepowered.api.event.entity.InteractEntityEvent.Primary { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.InteractEntityEvent.Primary.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.InteractEntityEvent.Primary.d.ts new file mode 100644 index 00000000..b725f1d2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.InteractEntityEvent.Primary.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace InteractEntityEvent { + // @ts-ignore + interface Primary extends org.spongepowered.api.event.entity.InteractEntityEvent, org.spongepowered.api.event.entity.living.humanoid.HandInteractEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.InteractEntityEvent.Secondary.MainHand.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.InteractEntityEvent.Secondary.MainHand.d.ts new file mode 100644 index 00000000..c6335478 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.InteractEntityEvent.Secondary.MainHand.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace InteractEntityEvent { + namespace Secondary { + // @ts-ignore + interface MainHand extends org.spongepowered.api.event.entity.InteractEntityEvent.Secondary { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.InteractEntityEvent.Secondary.OffHand.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.InteractEntityEvent.Secondary.OffHand.d.ts new file mode 100644 index 00000000..8c4e1615 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.InteractEntityEvent.Secondary.OffHand.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace InteractEntityEvent { + namespace Secondary { + // @ts-ignore + interface OffHand extends org.spongepowered.api.event.entity.InteractEntityEvent.Secondary { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.InteractEntityEvent.Secondary.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.InteractEntityEvent.Secondary.d.ts new file mode 100644 index 00000000..c623bd1e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.InteractEntityEvent.Secondary.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace InteractEntityEvent { + // @ts-ignore + interface Secondary extends org.spongepowered.api.event.entity.InteractEntityEvent, org.spongepowered.api.event.entity.living.humanoid.HandInteractEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.InteractEntityEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.InteractEntityEvent.d.ts new file mode 100644 index 00000000..c36aaf05 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.InteractEntityEvent.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface InteractEntityEvent extends org.spongepowered.api.event.action.InteractEvent, org.spongepowered.api.event.entity.TargetEntityEvent { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.LeashEntityEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.LeashEntityEvent.d.ts new file mode 100644 index 00000000..880e1816 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.LeashEntityEvent.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface LeashEntityEvent extends org.spongepowered.api.event.entity.TargetEntityEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.MoveEntityEvent.Position.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.MoveEntityEvent.Position.d.ts new file mode 100644 index 00000000..b6ad5840 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.MoveEntityEvent.Position.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace MoveEntityEvent { + // @ts-ignore + interface Position extends org.spongepowered.api.event.entity.MoveEntityEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.MoveEntityEvent.Teleport.Portal.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.MoveEntityEvent.Teleport.Portal.d.ts new file mode 100644 index 00000000..3307997d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.MoveEntityEvent.Teleport.Portal.d.ts @@ -0,0 +1,65 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace MoveEntityEvent { + namespace Teleport { + // @ts-ignore + interface Portal extends org.spongepowered.api.event.entity.MoveEntityEvent.Teleport { + /** + * Sets whether the {@link PortalAgent} will be used. + *

+ * If this is set to true, the {@link PortalAgent} will search for a + * portal at the {@link #getToTransform()} location and will attempt to + * create one if not found. + *

+ *

+ * If this is set to false, the {@link #getTargetEntity()} will only be + * teleported to the {@link #getToTransform()} location. + *

+ */ + // @ts-ignore + setUsePortalAgent(usePortalAgent: boolean): void; + /** + * Gets whether the {@link PortalAgent} will be used. + *

+ * If this is set to true, the {@link PortalAgent} will search for a + * Portal at the {@link #getToTransform()} location, and will attempt to + * create one if not found. + *

+ *

+ * If this is set to false, the {@link #getTargetEntity()} will only be + * teleported to the {@link #getToTransform()} location. + *

+ */ + // @ts-ignore + getUsePortalAgent(): boolean; + /** + * Gets the {@link PortalAgent} that will be responsible for teleporting + * the {@link #getTargetEntity()} through a Portal. + */ + // @ts-ignore + getPortalAgent(): org.spongepowered.api.world.PortalAgent; + /** + * Sets the {@link PortalAgent} that will be responsible for teleporting + * the {@link #getTargetEntity()} through a Portal. + */ + // @ts-ignore + setPortalAgent(portalAgent: org.spongepowered.api.world.PortalAgent): void; + /** + * This method exists solely to provide backwards-compatibility with existing plugins + * using the old Teleport event. It should not be called directly - instead, + * plugins should use {@link SpongeEventFactory#createMoveEntityEventTeleportPortal(Cause, Transform, Transform, PortalAgent, Entity, boolean, boolean)} + */ + // @ts-ignore + createMoveEntityEventTeleportPortal(cause: org.spongepowered.api.event.cause.Cause, fromTransform: org.spongepowered.api.entity.Transform, toTransform: org.spongepowered.api.entity.Transform, portalAgent: org.spongepowered.api.world.PortalAgent, targetEntity: org.spongepowered.api.entity.Entity, usePortalAgent: boolean): org.spongepowered.api.event.entity.MoveEntityEvent.Teleport.Portal; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.MoveEntityEvent.Teleport.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.MoveEntityEvent.Teleport.d.ts new file mode 100644 index 00000000..5563a3a5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.MoveEntityEvent.Teleport.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace MoveEntityEvent { + // @ts-ignore + interface Teleport extends org.spongepowered.api.event.entity.MoveEntityEvent { + /** + * Gets whether the entity teleporting will maintain its velocity + * after teleport. + */ + // @ts-ignore + getKeepsVelocity(): boolean; + /** + * Sets whether the entity teleporting will maintain its velocity + * after teleport. + */ + // @ts-ignore + setKeepsVelocity(keepsVelocity: boolean): void; + /** + * This method exists solely to provide backwards-compatibility with existing plugins + * using the old Teleport Event. It should not be called directly - instead, + * plugins should use {@link SpongeEventFactory#createMoveEntityEventTeleport(Cause, Transform, Transform, Entity, boolean)} + */ + // @ts-ignore + createMoveEntityEventTeleport(cause: org.spongepowered.api.event.cause.Cause, fromTransform: org.spongepowered.api.entity.Transform, toTransform: org.spongepowered.api.entity.Transform, targetEntity: org.spongepowered.api.entity.Entity): org.spongepowered.api.event.entity.MoveEntityEvent.Teleport; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.MoveEntityEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.MoveEntityEvent.d.ts new file mode 100644 index 00000000..123df66b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.MoveEntityEvent.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface MoveEntityEvent extends org.spongepowered.api.event.entity.TargetEntityEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the transform that the {@link Entity} came from. + */ + // @ts-ignore + getFromTransform(): org.spongepowered.api.entity.Transform; + /** + * Gets the new transform that the {@link Entity} will change to. + */ + // @ts-ignore + getToTransform(): org.spongepowered.api.entity.Transform; + /** + * Sets the new transform that the {@link Entity} will change to. + */ + // @ts-ignore + setToTransform(transform: org.spongepowered.api.entity.Transform): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.RideEntityEvent.Dismount.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.RideEntityEvent.Dismount.d.ts new file mode 100644 index 00000000..0a48c77d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.RideEntityEvent.Dismount.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace RideEntityEvent { + // @ts-ignore + interface Dismount extends org.spongepowered.api.event.entity.RideEntityEvent { + /** + * Gets the {@link DismountType} when entity is dismounted. + */ + // @ts-ignore + getDismountType(): org.spongepowered.api.event.cause.entity.dismount.DismountType; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.RideEntityEvent.Mount.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.RideEntityEvent.Mount.d.ts new file mode 100644 index 00000000..ba1c0dc2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.RideEntityEvent.Mount.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace RideEntityEvent { + // @ts-ignore + interface Mount extends org.spongepowered.api.event.entity.RideEntityEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.RideEntityEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.RideEntityEvent.d.ts new file mode 100644 index 00000000..3fd1064c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.RideEntityEvent.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface RideEntityEvent extends org.spongepowered.api.event.entity.TargetEntityEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.RotateEntityEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.RotateEntityEvent.d.ts new file mode 100644 index 00000000..d12200c2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.RotateEntityEvent.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface RotateEntityEvent extends org.spongepowered.api.event.entity.TargetEntityEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the transform that the {@link Entity} rotated from. + */ + // @ts-ignore + getFromTransform(): org.spongepowered.api.entity.Transform; + /** + * Gets the new transform that the {@link Entity} will change to. + */ + // @ts-ignore + getToTransform(): org.spongepowered.api.entity.Transform; + /** + * Sets the new transform that the {@link Entity} will change to. + */ + // @ts-ignore + setToTransform(transform: org.spongepowered.api.entity.Transform): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.SpawnEntityEvent.ChunkLoad.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.SpawnEntityEvent.ChunkLoad.d.ts new file mode 100644 index 00000000..a6d5b909 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.SpawnEntityEvent.ChunkLoad.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace SpawnEntityEvent { + // @ts-ignore + interface ChunkLoad extends org.spongepowered.api.event.entity.SpawnEntityEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.SpawnEntityEvent.Custom.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.SpawnEntityEvent.Custom.d.ts new file mode 100644 index 00000000..fc458438 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.SpawnEntityEvent.Custom.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace SpawnEntityEvent { + // @ts-ignore + interface Custom extends org.spongepowered.api.event.entity.SpawnEntityEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.SpawnEntityEvent.Spawner.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.SpawnEntityEvent.Spawner.d.ts new file mode 100644 index 00000000..7b8d9759 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.SpawnEntityEvent.Spawner.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace SpawnEntityEvent { + // @ts-ignore + interface Spawner extends org.spongepowered.api.event.entity.SpawnEntityEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.SpawnEntityEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.SpawnEntityEvent.d.ts new file mode 100644 index 00000000..f3053838 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.SpawnEntityEvent.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface SpawnEntityEvent extends org.spongepowered.api.event.entity.AffectEntityEvent { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.TameEntityEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.TameEntityEvent.d.ts new file mode 100644 index 00000000..70f58e4e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.TameEntityEvent.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface TameEntityEvent extends org.spongepowered.api.event.entity.TargetEntityEvent, org.spongepowered.api.event.Cancellable { + // @ts-ignore + USED_ITEM: string; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.TargetEntityEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.TargetEntityEvent.d.ts new file mode 100644 index 00000000..75a14829 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.TargetEntityEvent.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface TargetEntityEvent extends org.spongepowered.api.event.Event { + /** + * Gets the target {@link Entity}. + */ + // @ts-ignore + getTargetEntity(): org.spongepowered.api.entity.Entity; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.UnleashEntityEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.UnleashEntityEvent.d.ts new file mode 100644 index 00000000..6f94aafd --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.UnleashEntityEvent.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + // @ts-ignore + interface UnleashEntityEvent extends org.spongepowered.api.event.entity.TargetEntityEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ai.AITaskEvent.Add.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ai.AITaskEvent.Add.d.ts new file mode 100644 index 00000000..d3797d35 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ai.AITaskEvent.Add.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace ai { + namespace AITaskEvent { + // @ts-ignore + interface Add extends org.spongepowered.api.event.entity.ai.AITaskEvent { + /** + * Gets the original priority that {@link AITaskEvent#getTask()} will + * be assigned to. See {@link AITaskEvent#getPriority()}. + */ + // @ts-ignore + getOriginalPriority(): number; + /** + * Sets the priority the task will be assigned to. See + * {@link AITaskEvent#getPriority()}. + */ + // @ts-ignore + setPriority(priority: number): void; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ai.AITaskEvent.Remove.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ai.AITaskEvent.Remove.d.ts new file mode 100644 index 00000000..f5d9f83c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ai.AITaskEvent.Remove.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace ai { + namespace AITaskEvent { + // @ts-ignore + interface Remove extends org.spongepowered.api.event.entity.ai.AITaskEvent { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ai.AITaskEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ai.AITaskEvent.d.ts new file mode 100644 index 00000000..7245d895 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ai.AITaskEvent.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace ai { + // @ts-ignore + interface AITaskEvent extends org.spongepowered.api.event.entity.living.TargetAgentEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the {@link Goal} the task will be assigned to. + */ + // @ts-ignore + getGoal(): org.spongepowered.api.entity.ai.Goal; + /** + * Gets the {@link AITask} to be assigned. + */ + // @ts-ignore + getTask(): org.spongepowered.api.entity.ai.task.AITask; + /** + * Gets the priority the task will be assigned to. Lower numbers mean + * higher priority. + */ + // @ts-ignore + getPriority(): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ai.SetAITargetEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ai.SetAITargetEvent.d.ts new file mode 100644 index 00000000..22c6f0f5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.ai.SetAITargetEvent.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace ai { + // @ts-ignore + interface SetAITargetEvent extends org.spongepowered.api.event.entity.living.TargetAgentEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the {@link Agent}s new target {@link Entity}. + */ + // @ts-ignore + getTarget(): java.util.Optional; + /** + * Sets the {@link Agent}s new target {@link Entity}. + *

This target is set after the event when it is not cancelled.

+ *

Setting a {@code null} target removes the target.

+ */ + // @ts-ignore + setTarget(target: org.spongepowered.api.entity.Entity): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.DefuseExplosiveEvent.Post.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.DefuseExplosiveEvent.Post.d.ts new file mode 100644 index 00000000..4c0de848 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.DefuseExplosiveEvent.Post.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace explosive { + namespace DefuseExplosiveEvent { + // @ts-ignore + interface Post extends org.spongepowered.api.event.entity.explosive.DefuseExplosiveEvent { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.DefuseExplosiveEvent.Pre.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.DefuseExplosiveEvent.Pre.d.ts new file mode 100644 index 00000000..3ed13571 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.DefuseExplosiveEvent.Pre.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace explosive { + namespace DefuseExplosiveEvent { + // @ts-ignore + interface Pre extends org.spongepowered.api.event.entity.explosive.DefuseExplosiveEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.DefuseExplosiveEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.DefuseExplosiveEvent.d.ts new file mode 100644 index 00000000..0ab6657a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.DefuseExplosiveEvent.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace explosive { + // @ts-ignore + interface DefuseExplosiveEvent extends org.spongepowered.api.event.entity.explosive.TargetFusedExplosiveEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.DetonateExplosiveEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.DetonateExplosiveEvent.d.ts new file mode 100644 index 00000000..6e376b50 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.DetonateExplosiveEvent.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace explosive { + // @ts-ignore + interface DetonateExplosiveEvent extends org.spongepowered.api.event.entity.explosive.TargetExplosiveEvent, org.spongepowered.api.event.Cancellable { + /** + * Returns the explosion of the vanilla behavior that this event was + * initialized with. + */ + // @ts-ignore + getOriginalExplosion(): org.spongepowered.api.world.explosion.Explosion; + /** + * Returns the {@link Builder} that will be used to build the + * explosion for the impending detonation. + */ + // @ts-ignore + getExplosionBuilder(): org.spongepowered.api.world.explosion.Explosion.Builder; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.PrimeExplosiveEvent.Post.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.PrimeExplosiveEvent.Post.d.ts new file mode 100644 index 00000000..a3ebb18e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.PrimeExplosiveEvent.Post.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace explosive { + namespace PrimeExplosiveEvent { + // @ts-ignore + interface Post extends org.spongepowered.api.event.entity.explosive.PrimeExplosiveEvent { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.PrimeExplosiveEvent.Pre.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.PrimeExplosiveEvent.Pre.d.ts new file mode 100644 index 00000000..8b5a0d1b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.PrimeExplosiveEvent.Pre.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace explosive { + namespace PrimeExplosiveEvent { + // @ts-ignore + interface Pre extends org.spongepowered.api.event.entity.explosive.PrimeExplosiveEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.PrimeExplosiveEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.PrimeExplosiveEvent.d.ts new file mode 100644 index 00000000..be641da6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.PrimeExplosiveEvent.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace explosive { + // @ts-ignore + interface PrimeExplosiveEvent extends org.spongepowered.api.event.entity.explosive.TargetFusedExplosiveEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.TargetExplosiveEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.TargetExplosiveEvent.d.ts new file mode 100644 index 00000000..146530d6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.TargetExplosiveEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace explosive { + // @ts-ignore + interface TargetExplosiveEvent extends org.spongepowered.api.event.entity.TargetEntityEvent { + // @ts-ignore + getTargetEntity(): org.spongepowered.api.entity.explosive.Explosive; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.TargetFusedExplosiveEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.TargetFusedExplosiveEvent.d.ts new file mode 100644 index 00000000..99b0aa79 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.explosive.TargetFusedExplosiveEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace explosive { + // @ts-ignore + interface TargetFusedExplosiveEvent extends org.spongepowered.api.event.entity.explosive.TargetExplosiveEvent { + // @ts-ignore + getTargetEntity(): org.spongepowered.api.entity.explosive.FusedExplosive; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.item.ItemMergeItemEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.item.ItemMergeItemEvent.d.ts new file mode 100644 index 00000000..3f689713 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.item.ItemMergeItemEvent.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace item { + // @ts-ignore + interface ItemMergeItemEvent extends org.spongepowered.api.event.entity.item.TargetItemEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets a copy of the second item to be merged. + */ + // @ts-ignore + getItemToMerge(): org.spongepowered.api.entity.Item; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.item.TargetItemEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.item.TargetItemEvent.d.ts new file mode 100644 index 00000000..ef8e6fb0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.item.TargetItemEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace item { + // @ts-ignore + interface TargetItemEvent extends org.spongepowered.api.event.entity.TargetEntityEvent { + // @ts-ignore + getTargetEntity(): org.spongepowered.api.entity.Item; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.TargetAgentEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.TargetAgentEvent.d.ts new file mode 100644 index 00000000..1b6daeb0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.TargetAgentEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + // @ts-ignore + interface TargetAgentEvent extends org.spongepowered.api.event.entity.living.TargetLivingEvent { + // @ts-ignore + getTargetEntity(): org.spongepowered.api.entity.living.Agent; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.TargetLivingEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.TargetLivingEvent.d.ts new file mode 100644 index 00000000..6fdf764e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.TargetLivingEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + // @ts-ignore + interface TargetLivingEvent extends org.spongepowered.api.event.entity.TargetEntityEvent { + // @ts-ignore + getTargetEntity(): org.spongepowered.api.entity.living.Living; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.AnimateHandEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.AnimateHandEvent.d.ts new file mode 100644 index 00000000..394708d6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.AnimateHandEvent.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + namespace humanoid { + // @ts-ignore + interface AnimateHandEvent extends org.spongepowered.api.event.entity.living.humanoid.TargetHumanoidEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the {@link HandType} used for animation. + */ + // @ts-ignore + getHandType(): org.spongepowered.api.data.type.HandType; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.ChangeGameModeEvent.TargetPlayer.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.ChangeGameModeEvent.TargetPlayer.d.ts new file mode 100644 index 00000000..5719cf30 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.ChangeGameModeEvent.TargetPlayer.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + namespace humanoid { + namespace ChangeGameModeEvent { + // @ts-ignore + interface TargetPlayer extends org.spongepowered.api.event.entity.living.humanoid.ChangeGameModeEvent, org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent { + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.ChangeGameModeEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.ChangeGameModeEvent.d.ts new file mode 100644 index 00000000..ab2426df --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.ChangeGameModeEvent.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + namespace humanoid { + // @ts-ignore + interface ChangeGameModeEvent extends org.spongepowered.api.event.entity.living.humanoid.TargetHumanoidEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the original {@link GameMode}. + */ + // @ts-ignore + getOriginalGameMode(): org.spongepowered.api.entity.living.player.gamemode.GameMode; + /** + * Gets the new {@link GameMode}. + */ + // @ts-ignore + getGameMode(): org.spongepowered.api.entity.living.player.gamemode.GameMode; + /** + * Sets the new {@link GameMode}. + */ + // @ts-ignore + setGameMode(gameMode: org.spongepowered.api.entity.living.player.gamemode.GameMode): void; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.ChangeLevelEvent.TargetPlayer.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.ChangeLevelEvent.TargetPlayer.d.ts new file mode 100644 index 00000000..04ba37a3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.ChangeLevelEvent.TargetPlayer.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + namespace humanoid { + namespace ChangeLevelEvent { + // @ts-ignore + interface TargetPlayer extends org.spongepowered.api.event.entity.living.humanoid.ChangeLevelEvent, org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent { + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.ChangeLevelEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.ChangeLevelEvent.d.ts new file mode 100644 index 00000000..3243cde8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.ChangeLevelEvent.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + namespace humanoid { + // @ts-ignore + interface ChangeLevelEvent extends org.spongepowered.api.event.entity.living.humanoid.TargetHumanoidEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the original level of the human. + */ + // @ts-ignore + getOriginalLevel(): number; + /** + * Gets the new level of the human. + */ + // @ts-ignore + getLevel(): number; + /** + * Sets the new level of the human. + *

Technically, this can be set to the same level to + * cancel effects of the level being changed.

+ */ + // @ts-ignore + setLevel(level: number): void; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.HandInteractEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.HandInteractEvent.d.ts new file mode 100644 index 00000000..2f10945d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.HandInteractEvent.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + namespace humanoid { + // @ts-ignore + interface HandInteractEvent extends org.spongepowered.api.event.action.InteractEvent { + /** + * Gets the {@link HandType} used for interaction. + */ + // @ts-ignore + getHandType(): org.spongepowered.api.data.type.HandType; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.TargetHumanoidEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.TargetHumanoidEvent.d.ts new file mode 100644 index 00000000..6754b36f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.TargetHumanoidEvent.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + namespace humanoid { + // @ts-ignore + interface TargetHumanoidEvent extends org.spongepowered.api.event.entity.living.TargetLivingEvent { + /** + * Gets the target {@link Entity}. + */ + // @ts-ignore + getTargetEntity(): org.spongepowered.api.entity.living.Humanoid; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.CooldownEvent.End.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.CooldownEvent.End.d.ts new file mode 100644 index 00000000..8d756398 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.CooldownEvent.End.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + namespace humanoid { + namespace player { + namespace CooldownEvent { + // @ts-ignore + interface End extends org.spongepowered.api.event.entity.living.humanoid.player.CooldownEvent { + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.CooldownEvent.Set.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.CooldownEvent.Set.d.ts new file mode 100644 index 00000000..f23049ed --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.CooldownEvent.Set.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + namespace humanoid { + namespace player { + namespace CooldownEvent { + // @ts-ignore + interface Set extends org.spongepowered.api.event.entity.living.humanoid.player.CooldownEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the cooldown the item type had beforehand, if it had one at all. + */ + // @ts-ignore + getStartingCooldown(): java.util.OptionalInt; + /** + * Gets the original new set cooldown at the beginning of the event. + */ + // @ts-ignore + getOriginalNewCooldown(): number; + /** + * Gets the new cooldown the item type has for the player. + */ + // @ts-ignore + getNewCooldown(): number; + /** + * Sets the new cooldown for the item type for the player. + */ + // @ts-ignore + setNewCooldown(ticks: number): void; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.CooldownEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.CooldownEvent.d.ts new file mode 100644 index 00000000..dd446960 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.CooldownEvent.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + namespace humanoid { + namespace player { + // @ts-ignore + interface CooldownEvent extends org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent { + /** + * Gets the associated item type whose cooldown is being set or removed. + */ + // @ts-ignore + getItemType(): org.spongepowered.api.item.ItemType; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.KickPlayerEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.KickPlayerEvent.d.ts new file mode 100644 index 00000000..fc8858c0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.KickPlayerEvent.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + namespace humanoid { + namespace player { + // @ts-ignore + interface KickPlayerEvent extends org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent, org.spongepowered.api.event.message.MessageChannelEvent { + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.PlayerChangeClientSettingsEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.PlayerChangeClientSettingsEvent.d.ts new file mode 100644 index 00000000..971094af --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.PlayerChangeClientSettingsEvent.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + namespace humanoid { + namespace player { + // @ts-ignore + interface PlayerChangeClientSettingsEvent extends org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent { + /** + * Gets the new locale of the player. + */ + // @ts-ignore + getLocale(): java.util.Locale; + /** + * Gets the new view distance of the player. This value represents the + * radius in unit chunks. + */ + // @ts-ignore + getViewDistance(): number; + /** + * Gets the new chat visibility setting of the player. + */ + // @ts-ignore + getChatVisibility(): org.spongepowered.api.text.chat.ChatVisibility; + /** + * Gets the new value for whether the player has colors enabled in chat. + */ + // @ts-ignore + isChatColorsEnabled(): boolean; + /** + * Gets the new skin part's displayed. + */ + // @ts-ignore + getDisplayedSkinParts(): java.util.Set; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.ResourcePackStatusEvent.ResourcePackStatus.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.ResourcePackStatusEvent.ResourcePackStatus.d.ts new file mode 100644 index 00000000..93a81413 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.ResourcePackStatusEvent.ResourcePackStatus.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + namespace humanoid { + namespace player { + namespace ResourcePackStatusEvent { + // @ts-ignore + class ResourcePackStatus extends java.lang.Enum { + // @ts-ignore + public static ACCEPTED: org.spongepowered.api.event.entity.living.humanoid.player.ResourcePackStatusEvent.ResourcePackStatus; + // @ts-ignore + public static DECLINED: org.spongepowered.api.event.entity.living.humanoid.player.ResourcePackStatusEvent.ResourcePackStatus; + // @ts-ignore + public static FAILED: org.spongepowered.api.event.entity.living.humanoid.player.ResourcePackStatusEvent.ResourcePackStatus; + // @ts-ignore + public static SUCCESSFULLY_LOADED: org.spongepowered.api.event.entity.living.humanoid.player.ResourcePackStatusEvent.ResourcePackStatus; + // @ts-ignore + public static values(): org.spongepowered.api.event.entity.living.humanoid.player.ResourcePackStatusEvent.ResourcePackStatus[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.event.entity.living.humanoid.player.ResourcePackStatusEvent.ResourcePackStatus; + /** + * Gets if this status indicates that the pack was successfully set. + */ + // @ts-ignore + public wasSuccessful(): java.util.Optional; + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.ResourcePackStatusEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.ResourcePackStatusEvent.d.ts new file mode 100644 index 00000000..da857767 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.ResourcePackStatusEvent.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + namespace humanoid { + namespace player { + // @ts-ignore + interface ResourcePackStatusEvent extends org.spongepowered.api.event.Event { + /** + * Get the player for this event. + */ + // @ts-ignore + getPlayer(): org.spongepowered.api.entity.living.player.Player; + /** + * Gets the pack that this status corresponds to. + */ + // @ts-ignore + getPack(): org.spongepowered.api.resourcepack.ResourcePack; + /** + * Gets the status of the sent pack. + */ + // @ts-ignore + getStatus(): org.spongepowered.api.event.entity.living.humanoid.player.ResourcePackStatusEvent.ResourcePackStatus; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.RespawnPlayerEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.RespawnPlayerEvent.d.ts new file mode 100644 index 00000000..bc7f28d1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.RespawnPlayerEvent.d.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + namespace humanoid { + namespace player { + // @ts-ignore + interface RespawnPlayerEvent extends org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent { + /** + * The original {@link Player} that this new player is a clone of. + *

When a player dies, or leaves The End, their {@link Player} is re-created.

+ */ + // @ts-ignore + getOriginalPlayer(): org.spongepowered.api.entity.living.player.Player; + /** + * Gets a copy of the transform that the entity came from. + */ + // @ts-ignore + getFromTransform(): org.spongepowered.api.entity.Transform; + /** + * Gets the new transform that the {@link Player} will change to. + */ + // @ts-ignore + getToTransform(): org.spongepowered.api.entity.Transform; + /** + * Sets the new transform that the entity will change to. + */ + // @ts-ignore + setToTransform(respawnTransform: org.spongepowered.api.entity.Transform): void; + /** + * Gets whether the transform was set by a bed or not. + */ + // @ts-ignore + isBedSpawn(): boolean; + /** + * Gets whether this event was fired because the {@link Player} died. + */ + // @ts-ignore + isDeath(): boolean; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent.d.ts new file mode 100644 index 00000000..55e4da6c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace living { + namespace humanoid { + namespace player { + // @ts-ignore + interface TargetPlayerEvent extends org.spongepowered.api.event.entity.living.humanoid.TargetHumanoidEvent { + /** + * Gets the target {@link Player}. + */ + // @ts-ignore + getTargetEntity(): org.spongepowered.api.entity.living.player.Player; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.projectile.LaunchProjectileEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.projectile.LaunchProjectileEvent.d.ts new file mode 100644 index 00000000..e6c5653e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.projectile.LaunchProjectileEvent.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace projectile { + // @ts-ignore + interface LaunchProjectileEvent extends org.spongepowered.api.event.entity.projectile.TargetProjectileEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.projectile.TargetProjectileEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.projectile.TargetProjectileEvent.d.ts new file mode 100644 index 00000000..157922c8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.entity.projectile.TargetProjectileEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace entity { + namespace projectile { + // @ts-ignore + interface TargetProjectileEvent extends org.spongepowered.api.event.entity.TargetEntityEvent { + // @ts-ignore + getTargetEntity(): org.spongepowered.api.entity.projectile.Projectile; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.Getter.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.Getter.d.ts new file mode 100644 index 00000000..9f8875f4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.Getter.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace filter { + // @ts-ignore + interface Getter { + /** + * The name of the method to fetch the value from within the event type. + */ + // @ts-ignore + value(): string; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.IsCancelled.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.IsCancelled.d.ts new file mode 100644 index 00000000..38cf60ab --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.IsCancelled.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace filter { + // @ts-ignore + interface IsCancelled { + /** + * Gets the required cancellation state of the event for the annotated + * listener to be called. + */ + // @ts-ignore + value(): org.spongepowered.api.util.Tristate; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.cause.After.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.cause.After.d.ts new file mode 100644 index 00000000..8a481310 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.cause.After.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace filter { + namespace cause { + // @ts-ignore + interface After { + /** + * Gets the class to use with {@link Cause#after(Class)}. + */ + // @ts-ignore + value(): java.lang.Class; + /** + * If specified the possible type for the returned object (normally + * specified by the type of the annotated parameter) is restricted + * to only the specified types. + *

For exampled annotating a parameter of type Monster would + * normally accept all entities extending Monster, however with the + * includes specified as Enderman and Zombie the possible Monsters returned + * would be restricted to entities extending either Enderman and Zombie.

+ */ + // @ts-ignore + typeFilter(): java.lang.Class[]; + /** + * If true then the behavior of the typeFilter is reversed and the + * specified types are excluded rather than included. + */ + // @ts-ignore + inverse(): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.cause.All.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.cause.All.d.ts new file mode 100644 index 00000000..e86d779d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.cause.All.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace filter { + namespace cause { + // @ts-ignore + interface All { + /** + * Whether this listener should be skipped if the array would be empty. + */ + // @ts-ignore + ignoreEmpty(): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.cause.Before.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.cause.Before.d.ts new file mode 100644 index 00000000..fcde15d0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.cause.Before.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace filter { + namespace cause { + // @ts-ignore + interface Before { + /** + * Gets the class to use with {@link Cause#before(Class)}. + */ + // @ts-ignore + value(): java.lang.Class; + /** + * If specified the possible type for the returned object (normally + * specified by the type of the annotated parameter) is restricted + * to only the specified types. + *

For exampled annotating a parameter of type Monster would + * normally accept all entities extending Monster, however with the + * includes specified as Enderman and Zombie the possible Monsters returned + * would be restricted to entities extending either Enderman and Zombie.

+ */ + // @ts-ignore + typeFilter(): java.lang.Class[]; + /** + * If true then the behavior of the typeFilter is reversed and the + * specified types are excluded rather than included. + */ + // @ts-ignore + inverse(): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.cause.ContextValue.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.cause.ContextValue.d.ts new file mode 100644 index 00000000..510055a7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.cause.ContextValue.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace filter { + namespace cause { + // @ts-ignore + interface ContextValue { + /** + * Gets the name to use with the {@link EventContextKey}. + */ + // @ts-ignore + value(): string; + /** + * If specified the possible type for the returned object (normally + * specified by the type of the annotated parameter) is restricted to only + * the specified types. + *

For exampled annotating a parameter of type Monster would normally + * accept all entities extending Monster, however with the includes + * specified as Enderman and Zombie the possible Monsters returned would be + * restricted to entities extending either Enderman and Zombie.

+ */ + // @ts-ignore + typeFilter(): java.lang.Class[]; + /** + * If true then the behavior of the typeFilter is reversed and the specified + * types are excluded rather than included. + */ + // @ts-ignore + inverse(): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.cause.First.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.cause.First.d.ts new file mode 100644 index 00000000..8d3dea98 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.cause.First.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace filter { + namespace cause { + // @ts-ignore + interface First { + /** + * If specified the possible type for the returned object (normally + * specified by the type of the annotated parameter) is restricted to only + * the specified types. + *

For exampled annotating a parameter of type Monster would normally + * accept all entities extending Monster, however with the includes + * specified as Enderman and Zombie the possible Monsters returned would be + * restricted to entities extending either Enderman and Zombie.

+ */ + // @ts-ignore + typeFilter(): java.lang.Class[]; + /** + * If true then the behavior of the typeFilter is reversed and the specified + * types are excluded rather than included. + */ + // @ts-ignore + inverse(): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.cause.Last.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.cause.Last.d.ts new file mode 100644 index 00000000..d22662c6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.cause.Last.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace filter { + namespace cause { + // @ts-ignore + interface Last { + /** + * If specified the possible type for the returned object (normally + * specified by the type of the annotated parameter) is restricted to only + * the specified types. + *

For exampled annotating a parameter of type Monster would normally + * accept all entities extending Monster, however with the includes + * specified as Enderman and Zombie the possible Monsters returned would be + * restricted to entities extending either Enderman and Zombie.

+ */ + // @ts-ignore + typeFilter(): java.lang.Class[]; + /** + * If true then the behavior of the typeFilter is reversed and the specified + * types are excluded rather than included. + */ + // @ts-ignore + inverse(): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.cause.Root.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.cause.Root.d.ts new file mode 100644 index 00000000..0471c3c2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.cause.Root.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace filter { + namespace cause { + // @ts-ignore + interface Root { + /** + * If specified the possible type for the returned object (normally + * specified by the type of the annotated parameter) is restricted to only + * the specified types. + *

For example annotating a parameter of type Monster would normally + * accept all entities extending Monster, however with the includes + * specified as Enderman and Zombie the possible Monsters returned would be + * restricted to entities extending either Enderman and Zombie.

+ */ + // @ts-ignore + typeFilter(): java.lang.Class[]; + /** + * If true then the behavior of the typeFilter is reversed and the specified + * types are excluded rather than included. + */ + // @ts-ignore + inverse(): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.data.Has.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.data.Has.d.ts new file mode 100644 index 00000000..6e03bd61 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.data.Has.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace filter { + namespace data { + // @ts-ignore + interface Has { + /** + * Gets the {@link DataManipulator} type to test for. + */ + // @ts-ignore + value(): java.lang.Class; + /** + * If true the standard behavior of this filter is reversed and events where + * the annotated parameter does have the specified data + * manipulator type are filtered out. + */ + // @ts-ignore + inverse(): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.data.Supports.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.data.Supports.d.ts new file mode 100644 index 00000000..209f6986 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.data.Supports.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace filter { + namespace data { + // @ts-ignore + interface Supports { + /** + * Gets the {@link DataManipulator} type to test for. + */ + // @ts-ignore + value(): java.lang.Class; + /** + * If true the standard behavior of this filter is reversed and events where + * the annotated parameter does support the specified data + * manipulator type are filtered out. + */ + // @ts-ignore + inverse(): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.type.Exclude.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.type.Exclude.d.ts new file mode 100644 index 00000000..d8e8dda3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.type.Exclude.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace filter { + namespace type { + // @ts-ignore + interface Exclude { + /** + * Gets the event types to exclude. + */ + // @ts-ignore + value(): java.lang.Class[]; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.type.Include.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.type.Include.d.ts new file mode 100644 index 00000000..b6b488cb --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.filter.type.Include.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace filter { + namespace type { + // @ts-ignore + interface Include { + /** + * Gets the included event types. + */ + // @ts-ignore + value(): java.lang.Class[]; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.GameRegistryEvent.Register.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.GameRegistryEvent.Register.d.ts new file mode 100644 index 00000000..fa832c34 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.GameRegistryEvent.Register.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace game { + namespace GameRegistryEvent { + // @ts-ignore + interface Register extends org.spongepowered.api.event.game.GameRegistryEvent, org.spongepowered.api.event.GenericEvent { + /** + * Gets the {@link CatalogType} that + * is allowing registrations. + */ + // @ts-ignore + getCatalogType(): java.lang.Class; + /** + * Gets the registry module. + */ + // @ts-ignore + getRegistryModule(): org.spongepowered.api.registry.CatalogRegistryModule; + /** + * Registers the {@link CatalogType}. + */ + // @ts-ignore + register(catalogType: org.spongepowered.api.CatalogType): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.GameRegistryEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.GameRegistryEvent.d.ts new file mode 100644 index 00000000..ca307fb9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.GameRegistryEvent.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace game { + // @ts-ignore + interface GameRegistryEvent extends org.spongepowered.api.event.Event { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.GameReloadEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.GameReloadEvent.d.ts new file mode 100644 index 00000000..69078f75 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.GameReloadEvent.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace game { + // @ts-ignore + interface GameReloadEvent extends org.spongepowered.api.event.Event { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameAboutToStartServerEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameAboutToStartServerEvent.d.ts new file mode 100644 index 00000000..03b85e18 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameAboutToStartServerEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace game { + namespace state { + // @ts-ignore + interface GameAboutToStartServerEvent extends org.spongepowered.api.event.game.state.GameStateEvent { + // @ts-ignore + getState(): org.spongepowered.api.GameState; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameConstructionEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameConstructionEvent.d.ts new file mode 100644 index 00000000..9c480819 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameConstructionEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace game { + namespace state { + // @ts-ignore + interface GameConstructionEvent extends org.spongepowered.api.event.game.state.GameStateEvent { + // @ts-ignore + getState(): org.spongepowered.api.GameState; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameInitializationEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameInitializationEvent.d.ts new file mode 100644 index 00000000..7f451b67 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameInitializationEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace game { + namespace state { + // @ts-ignore + interface GameInitializationEvent extends org.spongepowered.api.event.game.state.GameStateEvent { + // @ts-ignore + getState(): org.spongepowered.api.GameState; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameLoadCompleteEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameLoadCompleteEvent.d.ts new file mode 100644 index 00000000..51aad3b9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameLoadCompleteEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace game { + namespace state { + // @ts-ignore + interface GameLoadCompleteEvent extends org.spongepowered.api.event.game.state.GameStateEvent { + // @ts-ignore + getState(): org.spongepowered.api.GameState; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GamePostInitializationEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GamePostInitializationEvent.d.ts new file mode 100644 index 00000000..0d8fc7d2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GamePostInitializationEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace game { + namespace state { + // @ts-ignore + interface GamePostInitializationEvent extends org.spongepowered.api.event.game.state.GameStateEvent { + // @ts-ignore + getState(): org.spongepowered.api.GameState; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GamePreInitializationEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GamePreInitializationEvent.d.ts new file mode 100644 index 00000000..fbdf2418 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GamePreInitializationEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace game { + namespace state { + // @ts-ignore + interface GamePreInitializationEvent extends org.spongepowered.api.event.game.state.GameStateEvent { + // @ts-ignore + getState(): org.spongepowered.api.GameState; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameStartedServerEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameStartedServerEvent.d.ts new file mode 100644 index 00000000..0cc2ce32 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameStartedServerEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace game { + namespace state { + // @ts-ignore + interface GameStartedServerEvent extends org.spongepowered.api.event.game.state.GameStateEvent { + // @ts-ignore + getState(): org.spongepowered.api.GameState; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameStartingServerEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameStartingServerEvent.d.ts new file mode 100644 index 00000000..52a122cb --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameStartingServerEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace game { + namespace state { + // @ts-ignore + interface GameStartingServerEvent extends org.spongepowered.api.event.game.state.GameStateEvent { + // @ts-ignore + getState(): org.spongepowered.api.GameState; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameStateEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameStateEvent.d.ts new file mode 100644 index 00000000..aabae826 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameStateEvent.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace game { + namespace state { + // @ts-ignore + interface GameStateEvent extends org.spongepowered.api.event.Event { + /** + * Gets the {@link GameState} that this event represents. + */ + // @ts-ignore + getState(): org.spongepowered.api.GameState; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameStoppedEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameStoppedEvent.d.ts new file mode 100644 index 00000000..556e43e4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameStoppedEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace game { + namespace state { + // @ts-ignore + interface GameStoppedEvent extends org.spongepowered.api.event.game.state.GameStateEvent { + // @ts-ignore + getState(): org.spongepowered.api.GameState; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameStoppedServerEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameStoppedServerEvent.d.ts new file mode 100644 index 00000000..bcb9637f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameStoppedServerEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace game { + namespace state { + // @ts-ignore + interface GameStoppedServerEvent extends org.spongepowered.api.event.game.state.GameStateEvent { + // @ts-ignore + getState(): org.spongepowered.api.GameState; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameStoppingEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameStoppingEvent.d.ts new file mode 100644 index 00000000..96445616 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameStoppingEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace game { + namespace state { + // @ts-ignore + interface GameStoppingEvent extends org.spongepowered.api.event.game.state.GameStateEvent { + // @ts-ignore + getState(): org.spongepowered.api.GameState; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameStoppingServerEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameStoppingServerEvent.d.ts new file mode 100644 index 00000000..f90618de --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.game.state.GameStoppingServerEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace game { + namespace state { + // @ts-ignore + interface GameStoppingServerEvent extends org.spongepowered.api.event.game.state.GameStateEvent { + // @ts-ignore + getState(): org.spongepowered.api.GameState; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractAITaskEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractAITaskEvent.d.ts new file mode 100644 index 00000000..ffde05fd --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractAITaskEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace impl { + // @ts-ignore + abstract class AbstractAITaskEvent extends org.spongepowered.api.event.impl.AbstractEvent implements org.spongepowered.api.event.entity.ai.AITaskEvent { + // @ts-ignore + constructor() + // @ts-ignore + public init(): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractAffectEntityEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractAffectEntityEvent.d.ts new file mode 100644 index 00000000..eb228f66 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractAffectEntityEvent.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace impl { + // @ts-ignore + abstract class AbstractAffectEntityEvent extends org.spongepowered.api.event.impl.AbstractEvent implements org.spongepowered.api.event.entity.AffectEntityEvent { + // @ts-ignore + constructor() + // @ts-ignore + protected entities: java.util.List; + // @ts-ignore + protected entitySnapshots: java.util.List; + // @ts-ignore + public getEntitySnapshots(): java.util.List; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractAttackEntityEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractAttackEntityEvent.d.ts new file mode 100644 index 00000000..dca4c0ad --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractAttackEntityEvent.d.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace impl { + // @ts-ignore + abstract class AbstractAttackEntityEvent extends org.spongepowered.api.event.impl.AbstractModifierEvent implements org.spongepowered.api.event.entity.AttackEntityEvent { + // @ts-ignore + constructor() + // @ts-ignore + protected originalDamage: number; + // @ts-ignore + protected originalFunctions: java.util.List; + // @ts-ignore + protected baseDamage: number; + // @ts-ignore + protected init(): void; + // @ts-ignore + public getOriginalModifierDamage(damageModifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier): number; + // @ts-ignore + public getOriginalFinalDamage(): number; + // @ts-ignore + public getOriginalDamages(): java.util.Map; + // @ts-ignore + public getFinalOutputDamage(): number; + // @ts-ignore + public isModifierApplicable(damageModifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier): boolean; + // @ts-ignore + public getOutputDamage(damageModifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier): number; + // @ts-ignore + public setOutputDamage(damageModifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier, func: java.util.function$.DoubleUnaryOperator): void; + // @ts-ignore + public addDamageModifierBefore(damageModifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier, func: java.util.function$.DoubleUnaryOperator, before: java.util.Set): void; + // @ts-ignore + public addDamageModifierAfter(damageModifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier, func: java.util.function$.DoubleUnaryOperator, after: java.util.Set): void; + // @ts-ignore + public getBaseOutputDamage(): number; + // @ts-ignore + public setBaseOutputDamage(baseDamage: number): void; + // @ts-ignore + protected convertTuple(obj: org.spongepowered.api.event.cause.entity.damage.DamageModifier, func: java.util.function$.DoubleUnaryOperator): org.spongepowered.api.event.cause.entity.damage.DamageFunction; + // @ts-ignore + public getModifiers(): java.util.List; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractChangeEntityEquipmentEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractChangeEntityEquipmentEvent.d.ts new file mode 100644 index 00000000..99df8a58 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractChangeEntityEquipmentEvent.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace impl { + // @ts-ignore + abstract class AbstractChangeEntityEquipmentEvent extends org.spongepowered.api.event.impl.AbstractEvent implements org.spongepowered.api.event.entity.ChangeEntityEquipmentEvent { + // @ts-ignore + constructor() + // @ts-ignore + protected transaction: org.spongepowered.api.data.Transaction; + // @ts-ignore + public getOriginalItemStack(): java.util.Optional; + // @ts-ignore + public getItemStack(): java.util.Optional; + // @ts-ignore + public getTransaction(): org.spongepowered.api.data.Transaction; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractDamageEntityEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractDamageEntityEvent.d.ts new file mode 100644 index 00000000..73fd121c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractDamageEntityEvent.d.ts @@ -0,0 +1,52 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace impl { + // @ts-ignore + abstract class AbstractDamageEntityEvent extends org.spongepowered.api.event.impl.AbstractModifierEvent implements org.spongepowered.api.event.entity.DamageEntityEvent { + // @ts-ignore + constructor() + // @ts-ignore + protected originalDamage: number; + // @ts-ignore + protected originalFunctions: java.util.List; + // @ts-ignore + protected baseDamage: number; + // @ts-ignore + protected init(): void; + // @ts-ignore + public getOriginalModifierDamage(damageModifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier): number; + // @ts-ignore + public getOriginalFinalDamage(): number; + // @ts-ignore + public getOriginalDamages(): java.util.Map; + // @ts-ignore + public getFinalDamage(): number; + // @ts-ignore + public isModifierApplicable(damageModifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier): boolean; + // @ts-ignore + public getDamage(damageModifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier): number; + // @ts-ignore + public setDamage(damageModifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier, func: java.util.function$.DoubleUnaryOperator): void; + // @ts-ignore + public addDamageModifierBefore(damageModifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier, func: java.util.function$.DoubleUnaryOperator, before: java.util.Set): void; + // @ts-ignore + public addModifierAfter(damageModifier: org.spongepowered.api.event.cause.entity.damage.DamageModifier, func: java.util.function$.DoubleUnaryOperator, after: java.util.Set): void; + // @ts-ignore + protected convertTuple(obj: org.spongepowered.api.event.cause.entity.damage.DamageModifier, func: java.util.function$.DoubleUnaryOperator): org.spongepowered.api.event.cause.entity.damage.DamageFunction; + // @ts-ignore + public getModifiers(): java.util.List; + // @ts-ignore + public getBaseDamage(): number; + // @ts-ignore + public setBaseDamage(baseDamage: number): void; + // @ts-ignore + public willCauseDeath(): boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractEvent.d.ts new file mode 100644 index 00000000..404e63b1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractEvent.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace impl { + // @ts-ignore + abstract class AbstractEvent extends java.lang.Object implements org.spongepowered.api.event.Event { + // @ts-ignore + constructor() + // @ts-ignore + public currentOrder: org.spongepowered.api.event.Order; + /** + * Called once all fields have been set by the generated + * constructor in a subclass. + *

This method should be used + * to initialize any fields that depend on parameters + * passed to the constructor.

+ */ + // @ts-ignore + protected init(): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractGameRegistryRegisterEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractGameRegistryRegisterEvent.d.ts new file mode 100644 index 00000000..9e81d877 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractGameRegistryRegisterEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace impl { + // @ts-ignore + abstract class AbstractGameRegistryRegisterEvent extends org.spongepowered.api.event.impl.AbstractEvent implements org.spongepowered.api.event.game.GameRegistryEvent.Register { + // @ts-ignore + constructor() + // @ts-ignore + public register(catalogType: org.spongepowered.api.CatalogType): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractHealEntityEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractHealEntityEvent.d.ts new file mode 100644 index 00000000..d04fa250 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractHealEntityEvent.d.ts @@ -0,0 +1,44 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace impl { + // @ts-ignore + abstract class AbstractHealEntityEvent extends org.spongepowered.api.event.impl.AbstractModifierEvent implements org.spongepowered.api.event.entity.HealEntityEvent { + // @ts-ignore + constructor() + // @ts-ignore + protected originalHealAmount: number; + // @ts-ignore + protected originalFunctions: java.util.List; + // @ts-ignore + protected baseHealAmount: number; + // @ts-ignore + protected init(): void; + // @ts-ignore + public getOriginalHealingModifierAmount(healthModifier: org.spongepowered.api.event.cause.entity.health.HealthModifier): number; + // @ts-ignore + public getOriginalFinalHealAmount(): number; + // @ts-ignore + public getOriginalHealingAmounts(): java.util.Map; + // @ts-ignore + public getFinalHealAmount(): number; + // @ts-ignore + public isModifierApplicable(healthModifier: org.spongepowered.api.event.cause.entity.health.HealthModifier): boolean; + // @ts-ignore + public getHealAmount(healthModifier: org.spongepowered.api.event.cause.entity.health.HealthModifier): number; + // @ts-ignore + public setHealAmount(healthModifier: org.spongepowered.api.event.cause.entity.health.HealthModifier, func: java.util.function$.DoubleUnaryOperator): void; + // @ts-ignore + public getBaseHealAmount(): number; + // @ts-ignore + public setBaseHealAmount(baseHealAmount: number): void; + // @ts-ignore + protected convertTuple(obj: org.spongepowered.api.event.cause.entity.health.HealthModifier, func: java.util.function$.DoubleUnaryOperator): org.spongepowered.api.event.cause.entity.health.HealthFunction; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractMessageEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractMessageEvent.d.ts new file mode 100644 index 00000000..480ffb2b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractMessageEvent.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace impl { + // @ts-ignore + abstract class AbstractMessageEvent extends org.spongepowered.api.event.impl.AbstractEvent implements org.spongepowered.api.event.message.MessageEvent { + // @ts-ignore + constructor() + // @ts-ignore + protected formatter: org.spongepowered.api.event.message.MessageEvent.MessageFormatter; + // @ts-ignore + protected originalMessage: org.spongepowered.api.text.Text; + // @ts-ignore + protected init(): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractModifierEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractModifierEvent.d.ts new file mode 100644 index 00000000..b97a0b5c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractModifierEvent.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace impl { + // @ts-ignore + abstract class AbstractModifierEvent extends org.spongepowered.api.event.impl.AbstractEvent { + // @ts-ignore + constructor() + // @ts-ignore + protected originalFinalAmount: number; + // @ts-ignore + protected originalModifiers: java.util.List; + // @ts-ignore + protected originalModifierMap: java.util.Map; + // @ts-ignore + protected modifiers: java.util.LinkedHashMap; + // @ts-ignore + protected modifierFunctions: java.util.List; + // @ts-ignore + protected init(originalValue: number, originalFunctions: java.util.List): any; + // @ts-ignore + protected abstract convertTuple(obj: java.lang.Object, func: java.util.function$.DoubleUnaryOperator): org.spongepowered.api.event.cause.entity.ModifierFunction; + // @ts-ignore + protected recalculateDamages(baseAmount: number): void; + // @ts-ignore + protected getFinalAmount(baseAmount: number): number; + /** + * Gets the modifiers affecting this event. + */ + // @ts-ignore + public getModifiers(): java.util.List; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractSpawnEntityEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractSpawnEntityEvent.d.ts new file mode 100644 index 00000000..f3e7453d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractSpawnEntityEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace impl { + // @ts-ignore + abstract class AbstractSpawnEntityEvent extends org.spongepowered.api.event.impl.AbstractEvent implements org.spongepowered.api.event.entity.SpawnEntityEvent { + // @ts-ignore + constructor() + // @ts-ignore + protected init(): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractValueChangeEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractValueChangeEvent.d.ts new file mode 100644 index 00000000..03c27de4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.impl.AbstractValueChangeEvent.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace impl { + // @ts-ignore + abstract class AbstractValueChangeEvent extends java.lang.Object implements org.spongepowered.api.event.data.ChangeDataHolderEvent.ValueChange { + // @ts-ignore + constructor() + // @ts-ignore + protected originalChanges: org.spongepowered.api.data.DataTransactionResult; + // @ts-ignore + protected endResult: org.spongepowered.api.data.DataTransactionResult; + // @ts-ignore + protected init(): void; + // @ts-ignore + public proposeChanges(result: org.spongepowered.api.data.DataTransactionResult): org.spongepowered.api.event.data.ChangeDataHolderEvent.ValueChange; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.AffectItemStackEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.AffectItemStackEvent.d.ts new file mode 100644 index 00000000..c8a8843c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.AffectItemStackEvent.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + // @ts-ignore + interface AffectItemStackEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + /** + * Gets a list of the {@link Transaction}s for this event. If a + * transaction is requested to be marked as "invalid", + * {@link Transaction#setValid(boolean)} can be used. + */ + // @ts-ignore + getTransactions(): java.util.List; + /** + * Applies the provided {@link Predicate} to the {@link List} of + * {@link Transaction}s from {@link #getTransactions()} such that + * any time that {@link Predicate#test(Object)} returns false + * on a {@link Transaction}, the {@link Transaction} is + * marked as "invalid" and will not apply post event. + *

{@link Transaction#getFinal()} is used to construct + * the {@link ItemStack} to pass to the predicate

+ */ + // @ts-ignore + filter(predicate: java.util.function$.Predicate): java.util.List; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.AffectSlotEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.AffectSlotEvent.d.ts new file mode 100644 index 00000000..3c73d0ae --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.AffectSlotEvent.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + // @ts-ignore + interface AffectSlotEvent extends org.spongepowered.api.event.item.inventory.AffectItemStackEvent { + // @ts-ignore + getTransactions(): java.util.List; + // @ts-ignore + filter(predicate: java.util.function$.Predicate): java.util.List; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Equipment.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Equipment.d.ts new file mode 100644 index 00000000..695e3bb7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Equipment.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ChangeInventoryEvent { + // @ts-ignore + interface Equipment extends org.spongepowered.api.event.item.inventory.ChangeInventoryEvent { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Held.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Held.d.ts new file mode 100644 index 00000000..ea0f1ae8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Held.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ChangeInventoryEvent { + // @ts-ignore + interface Held extends org.spongepowered.api.event.item.inventory.ChangeInventoryEvent { + /** + * The previously selected slot. + */ + // @ts-ignore + getOriginalSlot(): org.spongepowered.api.item.inventory.Slot; + /** + * The new selected slot. + */ + // @ts-ignore + getFinalSlot(): org.spongepowered.api.item.inventory.Slot; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Pickup.Pre.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Pickup.Pre.d.ts new file mode 100644 index 00000000..f3c691be --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Pickup.Pre.d.ts @@ -0,0 +1,45 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ChangeInventoryEvent { + namespace Pickup { + // @ts-ignore + interface Pre extends org.spongepowered.api.event.item.inventory.TargetInventoryEvent, org.spongepowered.api.event.entity.item.TargetItemEvent, org.spongepowered.api.event.Cancellable { + /** + * Returns the original picked up {@link ItemStackSnapshot} + * to add to the inventory. + */ + // @ts-ignore + getOriginalStack(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + /** + * Returns the custom set list of items to add to the inventory or {@link Optional#empty()} if not set. + */ + // @ts-ignore + getCustom(): java.util.Optional; + /** + * Sets the items to add to the inventory. + *

If all items do not fit the inventory this event will be + * automatically canceled.

+ */ + // @ts-ignore + setCustom(items: java.util.List): void; + /** + * Returns the proposed final list of items to add to the inventory. + *

If a custom list was set all items have to fit the inventory + * or this event will be automatically canceled.

+ */ + // @ts-ignore + getFinal(): java.util.List; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Pickup.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Pickup.d.ts new file mode 100644 index 00000000..319be34e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Pickup.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ChangeInventoryEvent { + // @ts-ignore + interface Pickup extends org.spongepowered.api.event.item.inventory.ChangeInventoryEvent { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.SwapHand.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.SwapHand.d.ts new file mode 100644 index 00000000..75584dae --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.SwapHand.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ChangeInventoryEvent { + // @ts-ignore + interface SwapHand extends org.spongepowered.api.event.item.inventory.ChangeInventoryEvent { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Transfer.Post.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Transfer.Post.d.ts new file mode 100644 index 00000000..ab3e1d0c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Transfer.Post.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ChangeInventoryEvent { + namespace Transfer { + // @ts-ignore + interface Post extends org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Transfer { + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Transfer.Pre.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Transfer.Pre.d.ts new file mode 100644 index 00000000..5cb1521d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Transfer.Pre.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ChangeInventoryEvent { + namespace Transfer { + // @ts-ignore + interface Pre extends org.spongepowered.api.event.item.inventory.TargetInventoryEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the source {@link Inventory} of this {@link Event}. + */ + // @ts-ignore + getSourceInventory(): org.spongepowered.api.item.inventory.Inventory; + /** + * Gets the target {@link Inventory} of this {@link Event}. + */ + // @ts-ignore + getTargetInventory(): org.spongepowered.api.item.inventory.Inventory; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Transfer.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Transfer.d.ts new file mode 100644 index 00000000..8ff5780c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Transfer.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ChangeInventoryEvent { + // @ts-ignore + interface Transfer extends org.spongepowered.api.event.item.inventory.ChangeInventoryEvent { + /** + * Gets the source {@link Inventory} of this {@link Event}. + */ + // @ts-ignore + getSourceInventory(): org.spongepowered.api.item.inventory.Inventory; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.d.ts new file mode 100644 index 00000000..c2fe5dd7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + // @ts-ignore + interface ChangeInventoryEvent extends org.spongepowered.api.event.item.inventory.TargetInventoryEvent, org.spongepowered.api.event.item.inventory.AffectSlotEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Creative.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Creative.d.ts new file mode 100644 index 00000000..b28cddea --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Creative.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + // @ts-ignore + interface Creative extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Double.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Double.d.ts new file mode 100644 index 00000000..87912bf8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Double.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + // @ts-ignore + interface Double extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Primary { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag.Middle.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag.Middle.d.ts new file mode 100644 index 00000000..bb784ae5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag.Middle.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + namespace Drag { + // @ts-ignore + interface Middle extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag, org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Middle { + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag.Primary.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag.Primary.d.ts new file mode 100644 index 00000000..9b8e3da6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag.Primary.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + namespace Drag { + // @ts-ignore + interface Primary extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag, org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Primary { + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag.Secondary.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag.Secondary.d.ts new file mode 100644 index 00000000..b2465afb --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag.Secondary.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + namespace Drag { + // @ts-ignore + interface Secondary extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag, org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Secondary { + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag.d.ts new file mode 100644 index 00000000..48a45e17 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drag.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + // @ts-ignore + interface Drag extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Full.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Full.d.ts new file mode 100644 index 00000000..fbef9b62 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Full.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + namespace Drop { + // @ts-ignore + interface Full extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop { + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside.Creative.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside.Creative.d.ts new file mode 100644 index 00000000..cf191427 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside.Creative.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + namespace Drop { + namespace Outside { + // @ts-ignore + interface Creative extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside, org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Creative { + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside.Primary.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside.Primary.d.ts new file mode 100644 index 00000000..8f4651ac --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside.Primary.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + namespace Drop { + namespace Outside { + // @ts-ignore + interface Primary extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside, org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Primary { + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside.Secondary.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside.Secondary.d.ts new file mode 100644 index 00000000..69a123a8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside.Secondary.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + namespace Drop { + namespace Outside { + // @ts-ignore + interface Secondary extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside, org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Secondary { + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside.d.ts new file mode 100644 index 00000000..53b4fc80 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Outside.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + namespace Drop { + // @ts-ignore + interface Outside extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop { + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Single.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Single.d.ts new file mode 100644 index 00000000..112d15b5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.Single.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + namespace Drop { + // @ts-ignore + interface Single extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop { + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.d.ts new file mode 100644 index 00000000..b1f9d2f8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Drop.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + // @ts-ignore + interface Drop extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent, org.spongepowered.api.event.item.inventory.DropItemEvent.Dispense { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Middle.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Middle.d.ts new file mode 100644 index 00000000..e6542213 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Middle.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + // @ts-ignore + interface Middle extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.NumberPress.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.NumberPress.d.ts new file mode 100644 index 00000000..724c1a33 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.NumberPress.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + // @ts-ignore + interface NumberPress extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent { + // @ts-ignore + getNumber(): number; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Primary.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Primary.d.ts new file mode 100644 index 00000000..2cac41a6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Primary.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + // @ts-ignore + interface Primary extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Recipe.All.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Recipe.All.d.ts new file mode 100644 index 00000000..2332c800 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Recipe.All.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + namespace Recipe { + // @ts-ignore + interface All extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Recipe { + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Recipe.Single.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Recipe.Single.d.ts new file mode 100644 index 00000000..7df9419d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Recipe.Single.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + namespace Recipe { + // @ts-ignore + interface Single extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Recipe { + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Recipe.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Recipe.d.ts new file mode 100644 index 00000000..856ce557 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Recipe.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + // @ts-ignore + interface Recipe extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent { + /** + * Returns the requested recipe. + */ + // @ts-ignore + getRecipe(): org.spongepowered.api.item.recipe.Recipe; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Secondary.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Secondary.d.ts new file mode 100644 index 00000000..2070b21f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Secondary.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + // @ts-ignore + interface Secondary extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Shift.Primary.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Shift.Primary.d.ts new file mode 100644 index 00000000..eb51bf85 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Shift.Primary.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + namespace Shift { + // @ts-ignore + interface Primary extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Shift, org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Primary { + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Shift.Secondary.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Shift.Secondary.d.ts new file mode 100644 index 00000000..650fb451 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Shift.Secondary.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + namespace Shift { + // @ts-ignore + interface Secondary extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Shift, org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Secondary { + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Shift.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Shift.d.ts new file mode 100644 index 00000000..1fc59d0a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.Shift.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace ClickInventoryEvent { + // @ts-ignore + interface Shift extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.d.ts new file mode 100644 index 00000000..620a3628 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.ClickInventoryEvent.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + // @ts-ignore + interface ClickInventoryEvent extends org.spongepowered.api.event.item.inventory.ChangeInventoryEvent, org.spongepowered.api.event.item.inventory.InteractInventoryEvent { + /** + * Returns the primary interaction Slot. + *

May return {@link Optional#empty()} for events that do not directly interact with a Slot

+ */ + // @ts-ignore + getSlot(): java.util.Optional; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.CraftItemEvent.Craft.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.CraftItemEvent.Craft.d.ts new file mode 100644 index 00000000..a4ddc2f7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.CraftItemEvent.Craft.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace CraftItemEvent { + // @ts-ignore + interface Craft extends org.spongepowered.api.event.item.inventory.CraftItemEvent, org.spongepowered.api.event.item.inventory.ClickInventoryEvent { + /** + * The item crafted with this event. + */ + // @ts-ignore + getCrafted(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + /** + * Returns the crafting output Slot. + */ + // @ts-ignore + getSlot(): java.util.Optional; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.CraftItemEvent.Preview.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.CraftItemEvent.Preview.d.ts new file mode 100644 index 00000000..bab92ca0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.CraftItemEvent.Preview.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace CraftItemEvent { + // @ts-ignore + interface Preview extends org.spongepowered.api.event.item.inventory.CraftItemEvent { + /** + * The SlotTransaction on the output slot. + *

Setting a custom Item here changes the result of the recipe replacing the default result

+ */ + // @ts-ignore + getPreview(): org.spongepowered.api.item.inventory.transaction.SlotTransaction; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.CraftItemEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.CraftItemEvent.d.ts new file mode 100644 index 00000000..438b0fbc --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.CraftItemEvent.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + // @ts-ignore + interface CraftItemEvent extends org.spongepowered.api.event.item.inventory.ChangeInventoryEvent { + /** + * Returns the crafting inventory. + *

This includes the crafting grid and one output slot

+ */ + // @ts-ignore + getCraftingInventory(): org.spongepowered.api.item.inventory.crafting.CraftingInventory; + /** + * Returns the {@link Recipe} used for crafting + */ + // @ts-ignore + getRecipe(): java.util.Optional; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.DropItemEvent.Close.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.DropItemEvent.Close.d.ts new file mode 100644 index 00000000..32859994 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.DropItemEvent.Close.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace DropItemEvent { + // @ts-ignore + interface Close extends org.spongepowered.api.event.item.inventory.DropItemEvent, org.spongepowered.api.event.entity.SpawnEntityEvent { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.DropItemEvent.Custom.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.DropItemEvent.Custom.d.ts new file mode 100644 index 00000000..8d694252 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.DropItemEvent.Custom.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace DropItemEvent { + // @ts-ignore + interface Custom extends org.spongepowered.api.event.item.inventory.DropItemEvent, org.spongepowered.api.event.entity.SpawnEntityEvent.Custom { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.DropItemEvent.Destruct.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.DropItemEvent.Destruct.d.ts new file mode 100644 index 00000000..2a721ba5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.DropItemEvent.Destruct.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace DropItemEvent { + // @ts-ignore + interface Destruct extends org.spongepowered.api.event.item.inventory.DropItemEvent, org.spongepowered.api.event.entity.SpawnEntityEvent { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.DropItemEvent.Dispense.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.DropItemEvent.Dispense.d.ts new file mode 100644 index 00000000..f4dceb30 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.DropItemEvent.Dispense.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace DropItemEvent { + // @ts-ignore + interface Dispense extends org.spongepowered.api.event.item.inventory.DropItemEvent, org.spongepowered.api.event.entity.SpawnEntityEvent { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.DropItemEvent.Pre.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.DropItemEvent.Pre.d.ts new file mode 100644 index 00000000..57c6736e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.DropItemEvent.Pre.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace DropItemEvent { + // @ts-ignore + interface Pre extends org.spongepowered.api.event.item.inventory.DropItemEvent { + /** + * Gets the original immutable list of {@link ItemStackSnapshot}s to be + * dropped. + */ + // @ts-ignore + getOriginalDroppedItems(): java.util.List; + /** + * Gets the mutable list of {@link ItemStackSnapshot}s to be dropped. + */ + // @ts-ignore + getDroppedItems(): java.util.List; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.DropItemEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.DropItemEvent.d.ts new file mode 100644 index 00000000..43b97626 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.DropItemEvent.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + // @ts-ignore + interface DropItemEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.EnchantItemEvent.CalculateEnchantment.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.EnchantItemEvent.CalculateEnchantment.d.ts new file mode 100644 index 00000000..6ade29d1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.EnchantItemEvent.CalculateEnchantment.d.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace EnchantItemEvent { + // @ts-ignore + interface CalculateEnchantment extends org.spongepowered.api.event.item.inventory.EnchantItemEvent { + /** + * The itemstack to enchant. + */ + // @ts-ignore + getItem(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + /** + * The final level requirement from {@link CalculateLevelRequirement}. + *

In vanilla the maximum value is 30.

+ */ + // @ts-ignore + getLevelRequirement(): number; + /** + * Returns the original list of enchantments to apply to the item. + *

The first item in the list is used for display when previewing the enchantments.

+ */ + // @ts-ignore + getOriginalEnchantments(): java.util.List; + /** + * Returns the list of enchantments to apply to the item. + *

The first item in the list is used for display when previewing the enchantments.

+ */ + // @ts-ignore + getEnchantments(): java.util.List; + /** + * Sets the list of enchantments to apply to the item. + *

The first item in the list is used for display when previewing the enchantments.

+ *

Note that when modifying the enchantment list you should + * return the same enchantments for the same seed and option.

+ *

See {@link Enchantment#randomListBuilder()} to generate enchantment lists.

+ */ + // @ts-ignore + setEnchantments(enchantments: java.util.List): void; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.EnchantItemEvent.CalculateLevelRequirement.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.EnchantItemEvent.CalculateLevelRequirement.d.ts new file mode 100644 index 00000000..3324529e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.EnchantItemEvent.CalculateLevelRequirement.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace EnchantItemEvent { + // @ts-ignore + interface CalculateLevelRequirement extends org.spongepowered.api.event.item.inventory.EnchantItemEvent { + /** + * The enchantment power based on bookshelves around the enchantment table. + */ + // @ts-ignore + getPower(): number; + /** + * The itemstack to enchant. + */ + // @ts-ignore + getItem(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + /** + * Returns the original level requirement + */ + // @ts-ignore + getOriginalLevelRequirement(): number; + /** + * Returns the level requirement + */ + // @ts-ignore + getLevelRequirement(): number; + /** + * Sets the new level requirement + *

In vanilla the maximum value is 30.

+ *

Returning a much higher level may result in no enchantments + * because the existing enchantments are too weak.

+ */ + // @ts-ignore + setLevelRequirement(value: number): void; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.EnchantItemEvent.Post.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.EnchantItemEvent.Post.d.ts new file mode 100644 index 00000000..abe97ecd --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.EnchantItemEvent.Post.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace EnchantItemEvent { + // @ts-ignore + interface Post extends org.spongepowered.api.event.item.inventory.ClickInventoryEvent, org.spongepowered.api.event.item.inventory.EnchantItemEvent { + /** + * Returns the slot of the enchanted item. + */ + // @ts-ignore + getEnchantingSlot(): org.spongepowered.api.item.inventory.Slot; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.EnchantItemEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.EnchantItemEvent.d.ts new file mode 100644 index 00000000..b5456115 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.EnchantItemEvent.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + // @ts-ignore + interface EnchantItemEvent extends org.spongepowered.api.event.item.inventory.TargetContainerEvent { + /** + * The seed for pseudo random enchantment generation. + */ + // @ts-ignore + getSeed(): number; + /** + * The enchantment option. 1, 2 or 3 + */ + // @ts-ignore + getOption(): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractInventoryEvent.Close.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractInventoryEvent.Close.d.ts new file mode 100644 index 00000000..29f27446 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractInventoryEvent.Close.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace InteractInventoryEvent { + // @ts-ignore + interface Close extends org.spongepowered.api.event.item.inventory.InteractInventoryEvent { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractInventoryEvent.Open.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractInventoryEvent.Open.d.ts new file mode 100644 index 00000000..a6a22a40 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractInventoryEvent.Open.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace InteractInventoryEvent { + // @ts-ignore + interface Open extends org.spongepowered.api.event.item.inventory.InteractInventoryEvent { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractInventoryEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractInventoryEvent.d.ts new file mode 100644 index 00000000..76990835 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractInventoryEvent.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + // @ts-ignore + interface InteractInventoryEvent extends org.spongepowered.api.event.item.inventory.TargetContainerEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the {@link Transaction} of {@link ItemStackSnapshot}s for this event. + */ + // @ts-ignore + getCursorTransaction(): org.spongepowered.api.data.Transaction; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractItemEvent.Primary.MainHand.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractItemEvent.Primary.MainHand.d.ts new file mode 100644 index 00000000..af090a7d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractItemEvent.Primary.MainHand.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace InteractItemEvent { + namespace Primary { + // @ts-ignore + interface MainHand extends org.spongepowered.api.event.item.inventory.InteractItemEvent.Primary { + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractItemEvent.Primary.OffHand.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractItemEvent.Primary.OffHand.d.ts new file mode 100644 index 00000000..ad76fa51 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractItemEvent.Primary.OffHand.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace InteractItemEvent { + namespace Primary { + // @ts-ignore + interface OffHand extends org.spongepowered.api.event.item.inventory.InteractItemEvent.Primary { + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractItemEvent.Primary.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractItemEvent.Primary.d.ts new file mode 100644 index 00000000..cfdb75ec --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractItemEvent.Primary.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace InteractItemEvent { + // @ts-ignore + interface Primary extends org.spongepowered.api.event.item.inventory.InteractItemEvent, org.spongepowered.api.event.entity.living.humanoid.HandInteractEvent { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractItemEvent.Secondary.MainHand.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractItemEvent.Secondary.MainHand.d.ts new file mode 100644 index 00000000..1b8e8b6c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractItemEvent.Secondary.MainHand.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace InteractItemEvent { + namespace Secondary { + // @ts-ignore + interface MainHand extends org.spongepowered.api.event.item.inventory.InteractItemEvent.Secondary { + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractItemEvent.Secondary.OffHand.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractItemEvent.Secondary.OffHand.d.ts new file mode 100644 index 00000000..83f792d5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractItemEvent.Secondary.OffHand.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace InteractItemEvent { + namespace Secondary { + // @ts-ignore + interface OffHand extends org.spongepowered.api.event.item.inventory.InteractItemEvent.Secondary { + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractItemEvent.Secondary.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractItemEvent.Secondary.d.ts new file mode 100644 index 00000000..7b0a497d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractItemEvent.Secondary.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace InteractItemEvent { + // @ts-ignore + interface Secondary extends org.spongepowered.api.event.item.inventory.InteractItemEvent, org.spongepowered.api.event.entity.living.humanoid.HandInteractEvent { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractItemEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractItemEvent.d.ts new file mode 100644 index 00000000..4e17d1aa --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.InteractItemEvent.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + // @ts-ignore + interface InteractItemEvent extends org.spongepowered.api.event.action.InteractEvent { + /** + * Gets the {@link ItemStackSnapshot} being interacted with. + */ + // @ts-ignore + getItemStack(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.TargetContainerEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.TargetContainerEvent.d.ts new file mode 100644 index 00000000..6e5bd61d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.TargetContainerEvent.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + // @ts-ignore + interface TargetContainerEvent extends org.spongepowered.api.event.item.inventory.TargetInventoryEvent { + // @ts-ignore + getTargetInventory(): org.spongepowered.api.item.inventory.Container; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.TargetInventoryEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.TargetInventoryEvent.d.ts new file mode 100644 index 00000000..8febe6e3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.TargetInventoryEvent.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + // @ts-ignore + interface TargetInventoryEvent extends org.spongepowered.api.event.Event { + /** + * Gets the target {@link Inventory} of this {@link Event}. + */ + // @ts-ignore + getTargetInventory(): org.spongepowered.api.item.inventory.Inventory; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.UpdateAnvilEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.UpdateAnvilEvent.d.ts new file mode 100644 index 00000000..def0c43e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.UpdateAnvilEvent.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + // @ts-ignore + interface UpdateAnvilEvent extends org.spongepowered.api.event.item.inventory.TargetInventoryEvent, org.spongepowered.api.event.Cancellable { + /** + * Returns the new item name. + */ + // @ts-ignore + getItemName(): string; + /** + * Returns the left input item. + */ + // @ts-ignore + getLeft(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + /** + * Returns the right input item. + */ + // @ts-ignore + getRight(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + /** + * Returns the transaction for the resulting item. + */ + // @ts-ignore + getResult(): org.spongepowered.api.data.Transaction; + /** + * Returns the transaction for the repair costs. + */ + // @ts-ignore + getCosts(): org.spongepowered.api.data.Transaction; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Finish.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Finish.d.ts new file mode 100644 index 00000000..a552ccb1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Finish.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace UseItemStackEvent { + // @ts-ignore + interface Finish extends org.spongepowered.api.event.item.inventory.UseItemStackEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Replace.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Replace.d.ts new file mode 100644 index 00000000..b5106cf0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Replace.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace UseItemStackEvent { + // @ts-ignore + interface Replace extends org.spongepowered.api.event.item.inventory.UseItemStackEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the {@link ItemStack} that is placed in the player's + * inventory in replacement of the stack that is currently being used. + */ + // @ts-ignore + getItemStackResult(): org.spongepowered.api.data.Transaction; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Reset.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Reset.d.ts new file mode 100644 index 00000000..b180499c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Reset.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace UseItemStackEvent { + // @ts-ignore + interface Reset extends org.spongepowered.api.event.item.inventory.UseItemStackEvent { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Start.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Start.d.ts new file mode 100644 index 00000000..5c446d8f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Start.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace UseItemStackEvent { + // @ts-ignore + interface Start extends org.spongepowered.api.event.item.inventory.UseItemStackEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Stop.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Stop.d.ts new file mode 100644 index 00000000..1d94018c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Stop.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace UseItemStackEvent { + // @ts-ignore + interface Stop extends org.spongepowered.api.event.item.inventory.UseItemStackEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Tick.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Tick.d.ts new file mode 100644 index 00000000..c16a664f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.UseItemStackEvent.Tick.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + namespace UseItemStackEvent { + // @ts-ignore + interface Tick extends org.spongepowered.api.event.item.inventory.UseItemStackEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.UseItemStackEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.UseItemStackEvent.d.ts new file mode 100644 index 00000000..de3d031f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.item.inventory.UseItemStackEvent.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace item { + namespace inventory { + // @ts-ignore + interface UseItemStackEvent extends org.spongepowered.api.event.Event { + /** + * Gets the original remaining duration of {@link ItemStack} in use. + */ + // @ts-ignore + getOriginalRemainingDuration(): number; + /** + * Gets the remaining duration of {@link ItemStack} in use. + */ + // @ts-ignore + getRemainingDuration(): number; + /** + * Sets the remaining duration of {@link ItemStack} in use. + */ + // @ts-ignore + setRemainingDuration(duration: number): void; + /** + * Gets the {@link ItemStack} being consumed. + */ + // @ts-ignore + getItemStackInUse(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.message.MessageChannelEvent.Chat.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.message.MessageChannelEvent.Chat.d.ts new file mode 100644 index 00000000..19c95e69 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.message.MessageChannelEvent.Chat.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace message { + namespace MessageChannelEvent { + // @ts-ignore + interface Chat extends org.spongepowered.api.event.message.MessageChannelEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the 'raw' chat message. + *

This message is the original chat message, without any formatting + * whatsoever.

+ *

In Vanilla, this is equivalent to what a player typed into the + * chat box (no name prefix or other elements).

+ */ + // @ts-ignore + getRawMessage(): org.spongepowered.api.text.Text; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.message.MessageChannelEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.message.MessageChannelEvent.d.ts new file mode 100644 index 00000000..d5b09b53 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.message.MessageChannelEvent.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace message { + // @ts-ignore + interface MessageChannelEvent extends org.spongepowered.api.event.message.MessageEvent { + /** + * Gets the original channel that this message will be sent to. + */ + // @ts-ignore + getOriginalChannel(): org.spongepowered.api.text.channel.MessageChannel; + /** + * Gets the current channel that this message will be sent to. + *

Note that an {@link Optional#empty()} channel is different from a + * {@link MessageChannel#TO_NONE} channel.

+ */ + // @ts-ignore + getChannel(): java.util.Optional; + /** + * Sets the channel for this message to go to. + *

Note that an {@link Optional#empty()} channel is different from a + * {@link MessageChannel#TO_NONE} channel.

+ */ + // @ts-ignore + setChannel(channel: org.spongepowered.api.text.channel.MessageChannel): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.message.MessageEvent.DefaultBodyApplier.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.message.MessageEvent.DefaultBodyApplier.d.ts new file mode 100644 index 00000000..784c5a67 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.message.MessageEvent.DefaultBodyApplier.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace message { + namespace MessageEvent { + // @ts-ignore + class DefaultBodyApplier extends org.spongepowered.api.text.transform.SimpleTextTemplateApplier { + // @ts-ignore + constructor(value: org.spongepowered.api.text.TextRepresentable) + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.message.MessageEvent.DefaultHeaderApplier.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.message.MessageEvent.DefaultHeaderApplier.d.ts new file mode 100644 index 00000000..123bc315 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.message.MessageEvent.DefaultHeaderApplier.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace message { + namespace MessageEvent { + // @ts-ignore + class DefaultHeaderApplier extends org.spongepowered.api.text.transform.SimpleTextTemplateApplier { + // @ts-ignore + constructor(value: org.spongepowered.api.text.TextRepresentable) + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.message.MessageEvent.MessageFormatter.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.message.MessageEvent.MessageFormatter.d.ts new file mode 100644 index 00000000..4d07cc6d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.message.MessageEvent.MessageFormatter.d.ts @@ -0,0 +1,58 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace message { + namespace MessageEvent { + // @ts-ignore + class MessageFormatter extends org.spongepowered.api.text.transform.FixedPartitionedTextFormatter { + // @ts-ignore + constructor() + // @ts-ignore + constructor(header: org.spongepowered.api.text.Text, body: org.spongepowered.api.text.Text) + // @ts-ignore + constructor(body: org.spongepowered.api.text.Text) + /** + * Returns the header partition within this formatter. + */ + // @ts-ignore + public getHeader(): org.spongepowered.api.text.transform.SimpleTextFormatter; + /** + * Clears any existing components within the header partition and adds + * a new {@link TextTemplateApplier} to the partition with the + * specified value. + */ + // @ts-ignore + public setHeader(header: org.spongepowered.api.text.TextRepresentable): void; + /** + * Returns the body partition within this formatter. + */ + // @ts-ignore + public getBody(): org.spongepowered.api.text.transform.SimpleTextFormatter; + /** + * Clears any existing components within the body partition and adds + * a new {@link TextTemplateApplier} to the partition with the + * specified value. + */ + // @ts-ignore + public setBody(body: org.spongepowered.api.text.TextRepresentable): void; + /** + * Returns the footer partition within this formatter. + */ + // @ts-ignore + public getFooter(): org.spongepowered.api.text.transform.SimpleTextFormatter; + /** + * Clears any existing components within the footer partition and adds + * a new {@link TextTemplateApplier} to the partition with the + * specified value. + */ + // @ts-ignore + public setFooter(footer: org.spongepowered.api.text.TextRepresentable): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.message.MessageEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.message.MessageEvent.d.ts new file mode 100644 index 00000000..819c8976 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.message.MessageEvent.d.ts @@ -0,0 +1,69 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace message { + // @ts-ignore + interface MessageEvent extends org.spongepowered.api.event.Event { + // @ts-ignore + PARAM_MESSAGE_HEADER: string; + // @ts-ignore + PARAM_MESSAGE_BODY: string; + // @ts-ignore + PARAM_MESSAGE_FOOTER: string; + /** + * Gets the original {@link Text} message. + */ + // @ts-ignore + getOriginalMessage(): org.spongepowered.api.text.Text; + /** + * Returns true if the {@link Text} returned by + * {@link #getMessage()} should not be sent. + */ + // @ts-ignore + isMessageCancelled(): boolean; + /** + * Sets whether the {@link Text} returned by + * {@link #getMessage()} should be sent. + */ + // @ts-ignore + setMessageCancelled(cancelled: boolean): void; + /** + * Returns the {@link MessageFormatter} used to mutate the event's message. + */ + // @ts-ignore + getFormatter(): org.spongepowered.api.event.message.MessageEvent.MessageFormatter; + /** + * Returns the formatted message. + */ + // @ts-ignore + getMessage(): org.spongepowered.api.text.Text; + /** + * Clears the currently set message and returns the empty formatter. + */ + // @ts-ignore + clearMessage(): org.spongepowered.api.event.message.MessageEvent.MessageFormatter; + /** + * Clears any existing components and sets the header, body, and footer + * respectively. + */ + // @ts-ignore + setMessage(header: org.spongepowered.api.text.TextRepresentable, body: org.spongepowered.api.text.TextRepresentable, footer: org.spongepowered.api.text.TextRepresentable): void; + /** + * Clears any existing components and sets the header and body + * respectively. + */ + // @ts-ignore + setMessage(header: org.spongepowered.api.text.TextRepresentable, body: org.spongepowered.api.text.TextRepresentable): void; + /** + * Clears any existing components and sets the body. + */ + // @ts-ignore + setMessage(body: org.spongepowered.api.text.TextRepresentable): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.BanIpEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.BanIpEvent.d.ts new file mode 100644 index 00000000..b23ed4e0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.BanIpEvent.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace network { + // @ts-ignore + interface BanIpEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + /** + * Gets the ban made in this event. + */ + // @ts-ignore + getBan(): org.spongepowered.api.util.ban.Ban.Ip; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.ChannelRegistrationEvent.Register.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.ChannelRegistrationEvent.Register.d.ts new file mode 100644 index 00000000..3e8fc2ed --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.ChannelRegistrationEvent.Register.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace network { + namespace ChannelRegistrationEvent { + // @ts-ignore + interface Register extends org.spongepowered.api.event.network.ChannelRegistrationEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.ChannelRegistrationEvent.Unregister.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.ChannelRegistrationEvent.Unregister.d.ts new file mode 100644 index 00000000..9adedba9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.ChannelRegistrationEvent.Unregister.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace network { + namespace ChannelRegistrationEvent { + // @ts-ignore + interface Unregister extends org.spongepowered.api.event.network.ChannelRegistrationEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.ChannelRegistrationEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.ChannelRegistrationEvent.d.ts new file mode 100644 index 00000000..d1cf6c88 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.ChannelRegistrationEvent.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace network { + // @ts-ignore + interface ChannelRegistrationEvent extends org.spongepowered.api.event.Event { + /** + * Gets the name of the channel being registered or unregistered. + */ + // @ts-ignore + getChannel(): string; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.ClientConnectionEvent.Auth.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.ClientConnectionEvent.Auth.d.ts new file mode 100644 index 00000000..c0f3b527 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.ClientConnectionEvent.Auth.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace network { + namespace ClientConnectionEvent { + // @ts-ignore + interface Auth extends org.spongepowered.api.event.network.ClientConnectionEvent, org.spongepowered.api.event.message.MessageEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the {@link RemoteConnection} representing the client connection. + */ + // @ts-ignore + getConnection(): org.spongepowered.api.network.RemoteConnection; + /** + * Gets the profile of the client attempting to connect. + */ + // @ts-ignore + getProfile(): org.spongepowered.api.profile.GameProfile; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.ClientConnectionEvent.Disconnect.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.ClientConnectionEvent.Disconnect.d.ts new file mode 100644 index 00000000..8eff88d1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.ClientConnectionEvent.Disconnect.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace network { + namespace ClientConnectionEvent { + // @ts-ignore + interface Disconnect extends org.spongepowered.api.event.network.ClientConnectionEvent, org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent, org.spongepowered.api.event.message.MessageChannelEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.ClientConnectionEvent.Join.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.ClientConnectionEvent.Join.d.ts new file mode 100644 index 00000000..1ba2544d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.ClientConnectionEvent.Join.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace network { + namespace ClientConnectionEvent { + // @ts-ignore + interface Join extends org.spongepowered.api.event.network.ClientConnectionEvent, org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent, org.spongepowered.api.event.message.MessageChannelEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.ClientConnectionEvent.Login.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.ClientConnectionEvent.Login.d.ts new file mode 100644 index 00000000..83ffae44 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.ClientConnectionEvent.Login.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace network { + namespace ClientConnectionEvent { + // @ts-ignore + interface Login extends org.spongepowered.api.event.network.ClientConnectionEvent, org.spongepowered.api.event.message.MessageEvent, org.spongepowered.api.event.user.TargetUserEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the {@link RemoteConnection} representing the client connection. + */ + // @ts-ignore + getConnection(): org.spongepowered.api.network.RemoteConnection; + /** + * Gets the profile of the client attempting to connect. + */ + // @ts-ignore + getProfile(): org.spongepowered.api.profile.GameProfile; + /** + * Gets the transform that the {@link Player} came from. + */ + // @ts-ignore + getFromTransform(): org.spongepowered.api.entity.Transform; + /** + * Gets the new transform that the {@link Player} will change to. + */ + // @ts-ignore + getToTransform(): org.spongepowered.api.entity.Transform; + /** + * Sets the new transform that the {@link Player} will change to. + */ + // @ts-ignore + setToTransform(transform: org.spongepowered.api.entity.Transform): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.ClientConnectionEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.ClientConnectionEvent.d.ts new file mode 100644 index 00000000..2db79145 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.ClientConnectionEvent.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace network { + // @ts-ignore + interface ClientConnectionEvent extends org.spongepowered.api.event.Event { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.PardonIpEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.PardonIpEvent.d.ts new file mode 100644 index 00000000..c4729125 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.PardonIpEvent.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace network { + // @ts-ignore + interface PardonIpEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + /** + * Gets the ban pardoned in this event. + */ + // @ts-ignore + getBan(): org.spongepowered.api.util.ban.Ban.Ip; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.rcon.RconConnectionEvent.Connect.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.rcon.RconConnectionEvent.Connect.d.ts new file mode 100644 index 00000000..f0025f16 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.rcon.RconConnectionEvent.Connect.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace network { + namespace rcon { + namespace RconConnectionEvent { + // @ts-ignore + interface Connect extends org.spongepowered.api.event.network.rcon.RconConnectionEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.rcon.RconConnectionEvent.Disconnect.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.rcon.RconConnectionEvent.Disconnect.d.ts new file mode 100644 index 00000000..6ecd6548 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.rcon.RconConnectionEvent.Disconnect.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace network { + namespace rcon { + namespace RconConnectionEvent { + // @ts-ignore + interface Disconnect extends org.spongepowered.api.event.network.rcon.RconConnectionEvent { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.rcon.RconConnectionEvent.Login.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.rcon.RconConnectionEvent.Login.d.ts new file mode 100644 index 00000000..6ce05642 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.rcon.RconConnectionEvent.Login.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace network { + namespace rcon { + namespace RconConnectionEvent { + // @ts-ignore + interface Login extends org.spongepowered.api.event.network.rcon.RconConnectionEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.rcon.RconConnectionEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.rcon.RconConnectionEvent.d.ts new file mode 100644 index 00000000..d077436b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.network.rcon.RconConnectionEvent.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace network { + namespace rcon { + // @ts-ignore + interface RconConnectionEvent extends org.spongepowered.api.event.Event { + /** + * Gets the {@link RconSource} responsible for the event. + */ + // @ts-ignore + getSource(): org.spongepowered.api.command.source.RconSource; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.server.ClientPingServerEvent.Response.Players.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.server.ClientPingServerEvent.Response.Players.d.ts new file mode 100644 index 00000000..b5551805 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.server.ClientPingServerEvent.Response.Players.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace server { + namespace ClientPingServerEvent { + namespace Response { + // @ts-ignore + interface Players extends org.spongepowered.api.network.status.StatusResponse.Players { + /** + * Sets the amount of online players to display on the client. + */ + // @ts-ignore + setOnline(online: number): void; + /** + * Sets the maximum amount of allowed players to display on the + * client. + */ + // @ts-ignore + setMax(max: number): void; + /** + * Gets an mutable list of online players on the server to display + * on the client. + */ + // @ts-ignore + getProfiles(): java.util.List; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.server.ClientPingServerEvent.Response.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.server.ClientPingServerEvent.Response.d.ts new file mode 100644 index 00000000..8d44b72d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.server.ClientPingServerEvent.Response.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace server { + namespace ClientPingServerEvent { + // @ts-ignore + interface Response extends org.spongepowered.api.network.status.StatusResponse { + /** + * Sets the description (MOTD) of the status response. + */ + // @ts-ignore + setDescription(description: org.spongepowered.api.text.Text): void; + // @ts-ignore + getPlayers(): java.util.Optional; + /** + * Sets whether the player count and the list of players on this server + * is hidden and doesn't get sent to the client. This will restore + * {@link #getPlayers()} if the players were previously hidden. + *

Use {@link #getPlayers()}.{@link Optional#isPresent() isPresent()} to + * check if the players are already hidden.

+ *

In Vanilla, this will display {@code ???} instead of the player + * count in the server list.

+ */ + // @ts-ignore + setHidePlayers(hide: boolean): void; + /** + * Sets the {@link Favicon} to display on the client. + */ + // @ts-ignore + setFavicon(favicon: org.spongepowered.api.network.status.Favicon): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.server.ClientPingServerEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.server.ClientPingServerEvent.d.ts new file mode 100644 index 00000000..335220e1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.server.ClientPingServerEvent.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace server { + // @ts-ignore + interface ClientPingServerEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + /** + * Gets the client pinging the server. + */ + // @ts-ignore + getClient(): org.spongepowered.api.network.status.StatusClient; + /** + * Gets the response that is about to be sent to the client. + */ + // @ts-ignore + getResponse(): org.spongepowered.api.event.server.ClientPingServerEvent.Response; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.server.query.QueryServerEvent.Basic.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.server.query.QueryServerEvent.Basic.d.ts new file mode 100644 index 00000000..26b639c2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.server.query.QueryServerEvent.Basic.d.ts @@ -0,0 +1,115 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace server { + namespace query { + namespace QueryServerEvent { + // @ts-ignore + interface Basic extends org.spongepowered.api.event.server.query.QueryServerEvent { + /** + * Gets the MOTD to respond with. + *

By default, this is the server's current MOTD

+ */ + // @ts-ignore + getMotd(): string; + /** + * Sets the MOTD to respond with. + *

If setting the string causes the message to go over the + * maximum size, the message will be automatically truncated.

+ */ + // @ts-ignore + setMotd(motd: string): void; + /** + * Gets the GameType to respond with. + *

By default, this is SMP. + * If setting the string causes the message to go over the + * maximum size, the message will be automatically truncated.

+ */ + // @ts-ignore + getGameType(): string; + /** + * Sets the GameType to respond with. + *

If setting the string causes the message to go over the + * maximum size, the message will be automatically truncated.

+ */ + // @ts-ignore + setGameType(gameType: string): void; + /** + * Gets the map (world) to respond with. + *

By default, this is the current world on the server.

+ */ + // @ts-ignore + getMap(): string; + /** + * Sets the map (world) to respond with. + *

If setting the string causes the message to go over the + * maximum size, the message will be automatically truncated.

+ */ + // @ts-ignore + setMap(map: string): void; + /** + * Gets the player count to respond with. + *

By default, this is the number of players present on the server. + * If setting the string causes the message to go over the + * maximum size, the message will be automatically truncated.

+ */ + // @ts-ignore + getPlayerCount(): number; + /** + * Sets the player count to respond with. + *

If setting the int causes the message to go over the + * maximum size, the message will be automatically truncated.

+ */ + // @ts-ignore + setPlayerCount(playerCount: number): void; + /** + * Gets the max player count to respond with. + *

By default, this is the maximum number of players allowed on the + * server.

+ */ + // @ts-ignore + getMaxPlayerCount(): number; + /** + * Sets the max player count to respond with. + *

If setting the int causes the message to go over the + * maximum size, the message will be automatically truncated.

+ */ + // @ts-ignore + setMaxPlayerCount(maxPlayerCount: number): void; + /** + * Gets the address to respond with. + *

By default, this is the address the server is listening on.

+ */ + // @ts-ignore + getAddress(): java.net.InetSocketAddress; + /** + * Sets the address to respond with. + */ + // @ts-ignore + setAddress(address: java.net.InetSocketAddress): void; + /** + * Gets the current size of the data to respond with. + *

This value is implementation-defined - it is only meaningful when + * compared with {@link #getMaxSize()}.

+ */ + // @ts-ignore + getSize(): number; + /** + * Gets the maximum size of the data to respond with. + *

If the size of the data is greater than the returned value, + * it will be automatically truncated. + * This value is implementation-defined - it is only meaningful when + * compared with {@link #getSize()} ()}.

+ */ + // @ts-ignore + getMaxSize(): number; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.server.query.QueryServerEvent.Full.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.server.query.QueryServerEvent.Full.d.ts new file mode 100644 index 00000000..164072a8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.server.query.QueryServerEvent.Full.d.ts @@ -0,0 +1,63 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace server { + namespace query { + namespace QueryServerEvent { + // @ts-ignore + interface Full extends org.spongepowered.api.event.server.query.QueryServerEvent.Basic { + /** + * Gets the GameId to respond with. + *

This is currently hardcoded to MINECRAFT.

+ */ + // @ts-ignore + getGameId(): string; + /** + * Gets the version to respond with. + *

By default, this is the server's Minecraft version (e.g 1.8.1). + *

+ */ + // @ts-ignore + getVersion(): string; + /** + * Sets the version to respond with. + *

If setting the string causes the message to go over the + * maximum size, the message will be automatically truncated.

+ */ + // @ts-ignore + setVersion(version: string): void; + /** + * Gets the list of plugins to respond with. + */ + // @ts-ignore + getPlugins(): string; + /** + * Sets the list of plugins to respond with. + *

If setting the string causes the message to go over the + * maximum size, the message will be automatically truncated.

+ */ + // @ts-ignore + setPlugins(plugins: string): void; + /** + * Gets the map of custom keys and values to respond with. + *

If settings any of the keys or values causes the message + * to go over the maximum size, the message will be automatically + * truncated.

+ */ + // @ts-ignore + getCustomValuesMap(): java.util.Map; + /** + * Gets the list of player names to respond with. + */ + // @ts-ignore + getPlayers(): java.util.List; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.server.query.QueryServerEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.server.query.QueryServerEvent.d.ts new file mode 100644 index 00000000..f2f44444 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.server.query.QueryServerEvent.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace server { + namespace query { + // @ts-ignore + interface QueryServerEvent extends org.spongepowered.api.event.Event { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.service.ChangeServiceProviderEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.service.ChangeServiceProviderEvent.d.ts new file mode 100644 index 00000000..3e3ec09c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.service.ChangeServiceProviderEvent.d.ts @@ -0,0 +1,44 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace service { + // @ts-ignore + interface ChangeServiceProviderEvent extends org.spongepowered.api.event.Event { + /** + * Gets the previous provider registration for the service, if available. + *

If a provider is being registered for the first time for the service, + * this will return {@link Optional#empty()}.

+ *

If this is present, then it will always have the same + * provider as {@link #getNewProviderRegistration()}.

+ */ + // @ts-ignore + getPreviousProviderRegistration(): java.util.Optional; + /** + * Gets the new provider registration for the service. + */ + // @ts-ignore + getNewProviderRegistration(): org.spongepowered.api.service.ProviderRegistration; + /** + * Gets whether a previous provider existed, which was replaced by the new + * provider. + */ + // @ts-ignore + isReplacement(): boolean; + /** + * Gets the service that a provider is being registered for. + */ + // @ts-ignore + getService(): java.lang.Class; + /** + * Gets the new provider being registered. + */ + // @ts-ignore + getNewProvider(): java.lang.Object; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.sound.PlaySoundEvent.AtEntity.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.sound.PlaySoundEvent.AtEntity.d.ts new file mode 100644 index 00000000..821277b2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.sound.PlaySoundEvent.AtEntity.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace sound { + namespace PlaySoundEvent { + // @ts-ignore + interface AtEntity extends org.spongepowered.api.event.sound.PlaySoundEvent { + // @ts-ignore + getPlayer(): java.util.Optional; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.sound.PlaySoundEvent.Broadcast.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.sound.PlaySoundEvent.Broadcast.d.ts new file mode 100644 index 00000000..695894d4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.sound.PlaySoundEvent.Broadcast.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace sound { + namespace PlaySoundEvent { + // @ts-ignore + interface Broadcast extends org.spongepowered.api.event.sound.PlaySoundEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.sound.PlaySoundEvent.Record.Start.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.sound.PlaySoundEvent.Record.Start.d.ts new file mode 100644 index 00000000..53ff0982 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.sound.PlaySoundEvent.Record.Start.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace sound { + namespace PlaySoundEvent { + namespace Record { + // @ts-ignore + interface Start extends org.spongepowered.api.event.sound.PlaySoundEvent.Record { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.sound.PlaySoundEvent.Record.Stop.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.sound.PlaySoundEvent.Record.Stop.d.ts new file mode 100644 index 00000000..f59cf795 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.sound.PlaySoundEvent.Record.Stop.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace sound { + namespace PlaySoundEvent { + namespace Record { + // @ts-ignore + interface Stop extends org.spongepowered.api.event.sound.PlaySoundEvent.Record { + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.sound.PlaySoundEvent.Record.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.sound.PlaySoundEvent.Record.d.ts new file mode 100644 index 00000000..d38aaafd --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.sound.PlaySoundEvent.Record.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace sound { + namespace PlaySoundEvent { + // @ts-ignore + interface Record extends org.spongepowered.api.event.sound.PlaySoundEvent { + /** + * Gets the {@link Jukebox} associated with this event. + */ + // @ts-ignore + getJukebox(): org.spongepowered.api.block.tileentity.Jukebox; + /** + * Gets the {@link RecordType} associated with this event. + */ + // @ts-ignore + getRecordType(): org.spongepowered.api.effect.sound.record.RecordType; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.sound.PlaySoundEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.sound.PlaySoundEvent.d.ts new file mode 100644 index 00000000..108ee3fc --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.sound.PlaySoundEvent.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace sound { + // @ts-ignore + interface PlaySoundEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + /** + * Gets the location of the sound being played. + */ + // @ts-ignore + getLocation(): org.spongepowered.api.world.Location; + /** + * Gets the {@link SoundCategory} for the sound being played + */ + // @ts-ignore + getSoundCategory(): org.spongepowered.api.effect.sound.SoundCategory; + /** + * Gets the {@link SoundType} for the sound being played + */ + // @ts-ignore + getSoundType(): org.spongepowered.api.effect.sound.SoundType; + /** + * Gets the volume of the sound being played + */ + // @ts-ignore + getVolume(): number; + /** + * Gets the pitch of the sound being played + */ + // @ts-ignore + getPitch(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.statistic.ChangeStatisticEvent.TargetPlayer.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.statistic.ChangeStatisticEvent.TargetPlayer.d.ts new file mode 100644 index 00000000..16440085 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.statistic.ChangeStatisticEvent.TargetPlayer.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace statistic { + namespace ChangeStatisticEvent { + // @ts-ignore + interface TargetPlayer extends org.spongepowered.api.event.statistic.ChangeStatisticEvent, org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.statistic.ChangeStatisticEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.statistic.ChangeStatisticEvent.d.ts new file mode 100644 index 00000000..0a05eb3e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.statistic.ChangeStatisticEvent.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace statistic { + // @ts-ignore + interface ChangeStatisticEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + /** + * Gets the {@link Statistic}. + */ + // @ts-ignore + getStatistic(): org.spongepowered.api.statistic.Statistic; + /** + * Gets the original value of the statistic. + */ + // @ts-ignore + getOriginalValue(): number; + /** + * Gets the new value of the statistic. + */ + // @ts-ignore + getValue(): number; + /** + * Sets the new value of the statistic to the given value. + */ + // @ts-ignore + setValue(value: number): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.user.BanUserEvent.TargetPlayer.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.user.BanUserEvent.TargetPlayer.d.ts new file mode 100644 index 00000000..915e9674 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.user.BanUserEvent.TargetPlayer.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace user { + namespace BanUserEvent { + // @ts-ignore + interface TargetPlayer extends org.spongepowered.api.event.user.BanUserEvent, org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.user.BanUserEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.user.BanUserEvent.d.ts new file mode 100644 index 00000000..4a9d8dcf --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.user.BanUserEvent.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace user { + // @ts-ignore + interface BanUserEvent extends org.spongepowered.api.event.user.TargetUserEvent { + /** + * Gets the ban involved in this event. + */ + // @ts-ignore + getBan(): org.spongepowered.api.util.ban.Ban.Profile; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.user.PardonUserEvent.TargetPlayer.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.user.PardonUserEvent.TargetPlayer.d.ts new file mode 100644 index 00000000..3affbd2e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.user.PardonUserEvent.TargetPlayer.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace user { + namespace PardonUserEvent { + // @ts-ignore + interface TargetPlayer extends org.spongepowered.api.event.user.PardonUserEvent, org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent { + // @ts-ignore + getTargetUser(): org.spongepowered.api.entity.living.player.Player; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.user.PardonUserEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.user.PardonUserEvent.d.ts new file mode 100644 index 00000000..44bda5d2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.user.PardonUserEvent.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace user { + // @ts-ignore + interface PardonUserEvent extends org.spongepowered.api.event.user.TargetUserEvent { + /** + * Gets the ban involved in this event. + */ + // @ts-ignore + getBan(): org.spongepowered.api.util.ban.Ban.Profile; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.user.TargetUserEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.user.TargetUserEvent.d.ts new file mode 100644 index 00000000..6548347a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.user.TargetUserEvent.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace user { + // @ts-ignore + interface TargetUserEvent extends org.spongepowered.api.event.Event { + /** + * Gets the targeted {@link User}. + */ + // @ts-ignore + getTargetUser(): org.spongepowered.api.entity.living.player.User; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChangeWorldBorderEvent.TargetPlayer.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChangeWorldBorderEvent.TargetPlayer.d.ts new file mode 100644 index 00000000..e900e0c1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChangeWorldBorderEvent.TargetPlayer.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace ChangeWorldBorderEvent { + // @ts-ignore + interface TargetPlayer extends org.spongepowered.api.event.world.ChangeWorldBorderEvent, org.spongepowered.api.event.entity.living.humanoid.player.TargetPlayerEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChangeWorldBorderEvent.TargetWorld.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChangeWorldBorderEvent.TargetWorld.d.ts new file mode 100644 index 00000000..7361e3c1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChangeWorldBorderEvent.TargetWorld.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace ChangeWorldBorderEvent { + // @ts-ignore + interface TargetWorld extends org.spongepowered.api.event.world.ChangeWorldBorderEvent, org.spongepowered.api.event.world.TargetWorldEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChangeWorldBorderEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChangeWorldBorderEvent.d.ts new file mode 100644 index 00000000..66eb1caa --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChangeWorldBorderEvent.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + // @ts-ignore + interface ChangeWorldBorderEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + /** + * Gets the border that was previously used as an {@link Optional}. There + * may be no border set for the target (especially, if it is a player), in + * which case, an empty {@code Optional} is returned. + */ + // @ts-ignore + getPreviousBorder(): java.util.Optional; + /** + * Gets the border that will be used as an {@link Optional}. For some + * targets, the border may be unset and therefore they may not always have a + * border. It is in these instances that an empty {@code Optional} is + * returned. + */ + // @ts-ignore + getNewBorder(): java.util.Optional; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChangeWorldGameRuleEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChangeWorldGameRuleEvent.d.ts new file mode 100644 index 00000000..78ea18e7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChangeWorldGameRuleEvent.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + // @ts-ignore + interface ChangeWorldGameRuleEvent extends org.spongepowered.api.event.world.TargetWorldEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the original value of the GameRule. + */ + // @ts-ignore + getOriginalValue(): string; + /** + * Gets the new value of the GameRule. + */ + // @ts-ignore + getValue(): string; + /** + * Gets the name of this GameRule. + */ + // @ts-ignore + getName(): string; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChangeWorldWeatherEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChangeWorldWeatherEvent.d.ts new file mode 100644 index 00000000..abe11e5b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChangeWorldWeatherEvent.d.ts @@ -0,0 +1,49 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + // @ts-ignore + interface ChangeWorldWeatherEvent extends org.spongepowered.api.event.world.TargetWorldEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the original {@link Weather} that the event is creating. + */ + // @ts-ignore + getOriginalWeather(): org.spongepowered.api.world.weather.Weather; + /** + * Gets the {@link Weather} that was happening before this event. + */ + // @ts-ignore + getInitialWeather(): org.spongepowered.api.world.weather.Weather; + /** + * Gets the {@link Weather} that this event is creating. + */ + // @ts-ignore + getWeather(): org.spongepowered.api.world.weather.Weather; + /** + * Sets what the new {@link Weather} should be with a random duration. + */ + // @ts-ignore + setWeather(weather: org.spongepowered.api.world.weather.Weather): void; + /** + * Gets the original duration of {@link ChangeWorldWeatherEvent#getWeather()} that would run after event. + */ + // @ts-ignore + getOriginalDuration(): number; + /** + * Sets the duration of the {@link Weather} (in ticks). + */ + // @ts-ignore + getDuration(): number; + /** + * Sets the duration of the {@link Weather} (in ticks). + */ + // @ts-ignore + setDuration(duration: number): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChunkPreGenerationEvent.Cancelled.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChunkPreGenerationEvent.Cancelled.d.ts new file mode 100644 index 00000000..e091bf5f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChunkPreGenerationEvent.Cancelled.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace ChunkPreGenerationEvent { + // @ts-ignore + interface Cancelled extends org.spongepowered.api.event.world.ChunkPreGenerationEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChunkPreGenerationEvent.Complete.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChunkPreGenerationEvent.Complete.d.ts new file mode 100644 index 00000000..cf2b3873 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChunkPreGenerationEvent.Complete.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace ChunkPreGenerationEvent { + // @ts-ignore + interface Complete extends org.spongepowered.api.event.world.ChunkPreGenerationEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChunkPreGenerationEvent.Post.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChunkPreGenerationEvent.Post.d.ts new file mode 100644 index 00000000..a64b98b2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChunkPreGenerationEvent.Post.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace ChunkPreGenerationEvent { + // @ts-ignore + interface Post extends org.spongepowered.api.event.world.ChunkPreGenerationEvent, org.spongepowered.api.event.Cancellable { + /** + * The number of chunks generated during the previous step. + */ + // @ts-ignore + getChunksGeneratedThisStep(): number; + /** + * The number of chunks generated that did not need to be generated and + * were skipped over. + */ + // @ts-ignore + getChunksSkippedThisStep(): number; + /** + * The {@link Duration} of the previous step. + */ + // @ts-ignore + getTimeTakenForStep(): java.time.Duration; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChunkPreGenerationEvent.Pre.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChunkPreGenerationEvent.Pre.d.ts new file mode 100644 index 00000000..3c232403 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChunkPreGenerationEvent.Pre.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace ChunkPreGenerationEvent { + // @ts-ignore + interface Pre extends org.spongepowered.api.event.world.ChunkPreGenerationEvent, org.spongepowered.api.event.Cancellable { + /** + * Returns whether the chunk generator will skip generation this time + * around. This only prevents the next step from being performed. + *

Use {@link #isCancelled()} to check for cancellation of the + * entire generation task.

+ */ + // @ts-ignore + getSkipStep(): boolean; + /** + * Sets whether the next step should be skipped. + *

Use {@link #setCancelled(boolean)} to cancel the entire pre + * generation task.

+ */ + // @ts-ignore + setSkipStep(skipStep: boolean): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChunkPreGenerationEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChunkPreGenerationEvent.d.ts new file mode 100644 index 00000000..82897d03 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ChunkPreGenerationEvent.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + // @ts-ignore + interface ChunkPreGenerationEvent extends org.spongepowered.api.event.world.TargetWorldEvent { + /** + * The object that contains the progress information for the + * current {@link ChunkPreGenerate}. + */ + // @ts-ignore + getChunkPreGenerate(): org.spongepowered.api.world.ChunkPreGenerate; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ConstructPortalEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ConstructPortalEvent.d.ts new file mode 100644 index 00000000..81abad99 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ConstructPortalEvent.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + // @ts-ignore + interface ConstructPortalEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + /** + * Gets the position location of a portal. + */ + // @ts-ignore + getPortalLocation(): org.spongepowered.api.world.Location; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ConstructWorldPropertiesEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ConstructWorldPropertiesEvent.d.ts new file mode 100644 index 00000000..3c954d49 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ConstructWorldPropertiesEvent.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + // @ts-ignore + interface ConstructWorldPropertiesEvent extends org.spongepowered.api.event.Event { + /** + * Gets the properties of the newly created world. + */ + // @ts-ignore + getWorldProperties(): org.spongepowered.api.world.storage.WorldProperties; + /** + * Gets the {@link WorldArchetype} used to create the world. + */ + // @ts-ignore + getWorldArchetype(): org.spongepowered.api.world.WorldArchetype; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ExplosionEvent.Detonate.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ExplosionEvent.Detonate.d.ts new file mode 100644 index 00000000..c0aaffa9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ExplosionEvent.Detonate.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace ExplosionEvent { + // @ts-ignore + interface Detonate extends org.spongepowered.api.event.world.ExplosionEvent, org.spongepowered.api.event.world.TargetWorldEvent, org.spongepowered.api.event.entity.AffectEntityEvent { + /** + * Gets the list of calculated affected locations for blocks that will + * be removed due to the explosion. Note that the list is mutable. + * However, adding new locations may cause unknown effects. + */ + // @ts-ignore + getAffectedLocations(): java.util.List; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ExplosionEvent.Post.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ExplosionEvent.Post.d.ts new file mode 100644 index 00000000..aa5c8e9d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ExplosionEvent.Post.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace ExplosionEvent { + // @ts-ignore + interface Post extends org.spongepowered.api.event.world.ExplosionEvent, org.spongepowered.api.event.block.ChangeBlockEvent.Post { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ExplosionEvent.Pre.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ExplosionEvent.Pre.d.ts new file mode 100644 index 00000000..5fe0e4c9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ExplosionEvent.Pre.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace ExplosionEvent { + // @ts-ignore + interface Pre extends org.spongepowered.api.event.world.ExplosionEvent, org.spongepowered.api.event.world.TargetWorldEvent, org.spongepowered.api.event.Cancellable { + /** + * Sets the {@link Explosion} involved for this event. This will + * override the explosion used before calculations take place with + * regards to the blocks and entities affected. + */ + // @ts-ignore + setExplosion(explosion: org.spongepowered.api.world.explosion.Explosion): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ExplosionEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ExplosionEvent.d.ts new file mode 100644 index 00000000..420ced56 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.ExplosionEvent.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + // @ts-ignore + interface ExplosionEvent extends org.spongepowered.api.event.Event { + /** + * Gets the {@link Explosion} involved in this event. + */ + // @ts-ignore + getExplosion(): org.spongepowered.api.world.explosion.Explosion; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.GenerateChunkEvent.Post.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.GenerateChunkEvent.Post.d.ts new file mode 100644 index 00000000..d4d528c8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.GenerateChunkEvent.Post.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace GenerateChunkEvent { + // @ts-ignore + interface Post extends org.spongepowered.api.event.world.GenerateChunkEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.GenerateChunkEvent.Pre.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.GenerateChunkEvent.Pre.d.ts new file mode 100644 index 00000000..f1f6fee2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.GenerateChunkEvent.Pre.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace GenerateChunkEvent { + // @ts-ignore + interface Pre extends org.spongepowered.api.event.world.GenerateChunkEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.GenerateChunkEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.GenerateChunkEvent.d.ts new file mode 100644 index 00000000..0160b4e4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.GenerateChunkEvent.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + // @ts-ignore + interface GenerateChunkEvent extends org.spongepowered.api.event.world.chunk.TargetChunkEvent { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.LoadWorldEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.LoadWorldEvent.d.ts new file mode 100644 index 00000000..7e05ccab --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.LoadWorldEvent.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + // @ts-ignore + interface LoadWorldEvent extends org.spongepowered.api.event.world.TargetWorldEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.SaveWorldEvent.Post.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.SaveWorldEvent.Post.d.ts new file mode 100644 index 00000000..596b9adf --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.SaveWorldEvent.Post.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace SaveWorldEvent { + // @ts-ignore + interface Post extends org.spongepowered.api.event.world.SaveWorldEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.SaveWorldEvent.Pre.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.SaveWorldEvent.Pre.d.ts new file mode 100644 index 00000000..e7d93981 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.SaveWorldEvent.Pre.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace SaveWorldEvent { + // @ts-ignore + interface Pre extends org.spongepowered.api.event.world.SaveWorldEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.SaveWorldEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.SaveWorldEvent.d.ts new file mode 100644 index 00000000..2f7c7333 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.SaveWorldEvent.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + // @ts-ignore + interface SaveWorldEvent extends org.spongepowered.api.event.world.TargetWorldEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.TargetWorldEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.TargetWorldEvent.d.ts new file mode 100644 index 00000000..76af226b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.TargetWorldEvent.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + // @ts-ignore + interface TargetWorldEvent extends org.spongepowered.api.event.Event { + /** + * Gets the target world of this {@link Event}. + */ + // @ts-ignore + getTargetWorld(): org.spongepowered.api.world.World; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.UnloadWorldEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.UnloadWorldEvent.d.ts new file mode 100644 index 00000000..c00a6823 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.UnloadWorldEvent.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + // @ts-ignore + interface UnloadWorldEvent extends org.spongepowered.api.event.world.TargetWorldEvent, org.spongepowered.api.event.Cancellable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.ForcedChunkEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.ForcedChunkEvent.d.ts new file mode 100644 index 00000000..7121d3d6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.ForcedChunkEvent.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace chunk { + // @ts-ignore + interface ForcedChunkEvent extends org.spongepowered.api.event.Event { + /** + * Gets the ticket that the chunk was added to. + */ + // @ts-ignore + getTicket(): org.spongepowered.api.world.ChunkTicketManager.LoadingTicket; + /** + * Gets the chunk coordinates. + */ + // @ts-ignore + getChunkCoords(): any /*Vector3i*/; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.LoadChunkEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.LoadChunkEvent.d.ts new file mode 100644 index 00000000..e360c91c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.LoadChunkEvent.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace chunk { + // @ts-ignore + interface LoadChunkEvent extends org.spongepowered.api.event.world.chunk.TargetChunkEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.PopulateChunkEvent.Populate.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.PopulateChunkEvent.Populate.d.ts new file mode 100644 index 00000000..65fe307f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.PopulateChunkEvent.Populate.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace chunk { + namespace PopulateChunkEvent { + // @ts-ignore + interface Populate extends org.spongepowered.api.event.world.chunk.PopulateChunkEvent, org.spongepowered.api.event.Cancellable { + /** + * Gets the populator which is about to be run. + */ + // @ts-ignore + getPopulator(): org.spongepowered.api.world.gen.Populator; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.PopulateChunkEvent.Post.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.PopulateChunkEvent.Post.d.ts new file mode 100644 index 00000000..a854f727 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.PopulateChunkEvent.Post.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace chunk { + namespace PopulateChunkEvent { + // @ts-ignore + interface Post extends org.spongepowered.api.event.world.chunk.PopulateChunkEvent { + /** + * Returns a copy of the {@link Populator}s that ran + * on this {@link Chunk}. + */ + // @ts-ignore + getAppliedPopulators(): java.util.List; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.PopulateChunkEvent.Pre.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.PopulateChunkEvent.Pre.d.ts new file mode 100644 index 00000000..aa89458b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.PopulateChunkEvent.Pre.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace chunk { + namespace PopulateChunkEvent { + // @ts-ignore + interface Pre extends org.spongepowered.api.event.world.chunk.PopulateChunkEvent { + /** + * Returns a mutable list of all pending populators. + */ + // @ts-ignore + getPendingPopulators(): java.util.List; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.PopulateChunkEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.PopulateChunkEvent.d.ts new file mode 100644 index 00000000..c93be71c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.PopulateChunkEvent.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace chunk { + // @ts-ignore + interface PopulateChunkEvent extends org.spongepowered.api.event.world.chunk.TargetChunkEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.TargetChunkEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.TargetChunkEvent.d.ts new file mode 100644 index 00000000..4d7673a7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.TargetChunkEvent.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace chunk { + // @ts-ignore + interface TargetChunkEvent extends org.spongepowered.api.event.Event { + /** + * Gets the {@link Chunk} being changed. + */ + // @ts-ignore + getTargetChunk(): org.spongepowered.api.world.Chunk; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.UnforcedChunkEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.UnforcedChunkEvent.d.ts new file mode 100644 index 00000000..3c962ce1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.UnforcedChunkEvent.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace chunk { + // @ts-ignore + interface UnforcedChunkEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable { + /** + * Gets the ticket that the chunk was removed from. + */ + // @ts-ignore + getTicket(): org.spongepowered.api.world.ChunkTicketManager.LoadingTicket; + /** + * Gets the chunk coordinates. + */ + // @ts-ignore + getChunkCoords(): any /*Vector3i*/; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.UnloadChunkEvent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.UnloadChunkEvent.d.ts new file mode 100644 index 00000000..74a672d8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.event.world.chunk.UnloadChunkEvent.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace event { + namespace world { + namespace chunk { + // @ts-ignore + interface UnloadChunkEvent extends org.spongepowered.api.event.world.chunk.TargetChunkEvent { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.FluidStack.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.FluidStack.Builder.d.ts new file mode 100644 index 00000000..2a457539 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.FluidStack.Builder.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace fluid { + namespace FluidStack { + // @ts-ignore + interface Builder extends org.spongepowered.api.data.persistence.DataBuilder { + /** + * Sets the {@link FluidType} to use to build the {@link FluidStack}. + */ + // @ts-ignore + fluid(fluidType: org.spongepowered.api.extra.fluid.FluidType): org.spongepowered.api.extra.fluid.FluidStack.Builder; + /** + * Sets the desired volume of the {@link FluidStack}. + *

Note that the volume is measured in "milli buckets", otherwise + * read as {@code mB}. The scaling is as follows: 1 bucket = 1000mB, + * whereas 1 block usually equals 1000mB.

+ */ + // @ts-ignore + volume(volume: number): org.spongepowered.api.extra.fluid.FluidStack.Builder; + /** + * Builds a new {@link FluidStack} based on the desired volume and + * {@link FluidType}. If either are not set (invalid), an + * {@link IllegalStateException} may be thrown. + */ + // @ts-ignore + build(): org.spongepowered.api.extra.fluid.FluidStack; + /** + * Resets and fills this builder with all the information from the + * provided {@link FluidStackSnapshot}. + */ + // @ts-ignore + from(fluidStackSnapshot: org.spongepowered.api.extra.fluid.FluidStackSnapshot): org.spongepowered.api.extra.fluid.FluidStack.Builder; + // @ts-ignore + from(value: org.spongepowered.api.extra.fluid.FluidStack): org.spongepowered.api.extra.fluid.FluidStack.Builder; + // @ts-ignore + reset(): org.spongepowered.api.extra.fluid.FluidStack.Builder; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.FluidStack.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.FluidStack.d.ts new file mode 100644 index 00000000..1e258742 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.FluidStack.d.ts @@ -0,0 +1,45 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace fluid { + // @ts-ignore + interface FluidStack extends org.spongepowered.api.data.DataHolder { + /** + * Creates a new {@link Builder} to make fluid stacks. + */ + // @ts-ignore + builder(): org.spongepowered.api.extra.fluid.FluidStack.Builder; + /** + * Gets the {@link FluidType} for this fluid stack. + */ + // @ts-ignore + getFluid(): org.spongepowered.api.extra.fluid.FluidType; + /** + * Gets the "volume" of this {@link FluidStack}. + *

Note that the volume is measured in "milli buckets", otherwise read + * as {@code mB}. The scaling is as follows: 1 bucket = 1000mB, whereas 1 + * block usually equals 1000mB.

+ */ + // @ts-ignore + getVolume(): number; + /** + * Sets the desired volume for this stack. + *

Note that the volume is measured in "milli buckets", otherwise read + * as {@code mB}. The scaling is as follows: 1 bucket = 1000mB, whereas 1 + * block usually equals 1000mB.

+ */ + // @ts-ignore + setVolume(volume: number): org.spongepowered.api.extra.fluid.FluidStack; + /** + * Creates a snapshot of this {@link FluidStack}. + */ + // @ts-ignore + createSnapshot(): org.spongepowered.api.extra.fluid.FluidStackSnapshot; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.FluidStackSnapshot.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.FluidStackSnapshot.Builder.d.ts new file mode 100644 index 00000000..b0de2f4f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.FluidStackSnapshot.Builder.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace fluid { + namespace FluidStackSnapshot { + // @ts-ignore + interface Builder extends org.spongepowered.api.data.ImmutableDataBuilder { + // @ts-ignore + fluid(fluidType: org.spongepowered.api.extra.fluid.FluidType): org.spongepowered.api.extra.fluid.FluidStackSnapshot.Builder; + // @ts-ignore + volume(volume: number): org.spongepowered.api.extra.fluid.FluidStackSnapshot.Builder; + /** + * Resets this builder and accepts all data from the incoming {@link FluidStack}. + */ + // @ts-ignore + from(fluidStack: org.spongepowered.api.extra.fluid.FluidStack): org.spongepowered.api.extra.fluid.FluidStackSnapshot.Builder; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.FluidStackSnapshot.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.FluidStackSnapshot.d.ts new file mode 100644 index 00000000..8ab95098 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.FluidStackSnapshot.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace fluid { + // @ts-ignore + interface FluidStackSnapshot extends org.spongepowered.api.data.ImmutableDataHolder { + /** + * Creates a new {@link Builder} to build a new {@link FluidStackSnapshot}. + */ + // @ts-ignore + builder(): org.spongepowered.api.extra.fluid.FluidStackSnapshot.Builder; + /** + * Gets the {@link FluidType} of this snapshot. + */ + // @ts-ignore + getFluid(): org.spongepowered.api.extra.fluid.FluidType; + /** + * Gets the volume of this snapshot. + *

Note that the volume is measured in "milli buckets", otherwise read + * as {@code mB}. The scaling is as follows: 1 bucket = 1000mB, whereas 1 + * block usually equals 1000mB.

+ */ + // @ts-ignore + getVolume(): number; + /** + * Creates a new {@link FluidStack} based on this snapshot. + */ + // @ts-ignore + createStack(): org.spongepowered.api.extra.fluid.FluidStack; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.FluidType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.FluidType.d.ts new file mode 100644 index 00000000..86f6ca1b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.FluidType.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace fluid { + // @ts-ignore + interface FluidType extends org.spongepowered.api.CatalogType, org.spongepowered.api.data.property.PropertyHolder { + /** + * Gets the {@link BlockType} that normally would represent this fluid + * type if it exists as a block in the world. + */ + // @ts-ignore + getBlockTypeBase(): java.util.Optional; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.FluidTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.FluidTypes.d.ts new file mode 100644 index 00000000..2be86ca4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.FluidTypes.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace fluid { + // @ts-ignore + class FluidTypes extends java.lang.Object { + // @ts-ignore + public static WATER: org.spongepowered.api.extra.fluid.FluidType; + // @ts-ignore + public static LAVA: org.spongepowered.api.extra.fluid.FluidType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.data.manipulator.immutable.ImmutableFluidItemData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.data.manipulator.immutable.ImmutableFluidItemData.d.ts new file mode 100644 index 00000000..6f0191a3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.data.manipulator.immutable.ImmutableFluidItemData.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace fluid { + namespace data { + namespace manipulator { + namespace immutable { + // @ts-ignore + interface ImmutableFluidItemData extends org.spongepowered.api.data.manipulator.ImmutableDataManipulator { + /** + * Gets the {@link ImmutableValue} of the {@link FluidStackSnapshot}. + */ + // @ts-ignore + fluid(): org.spongepowered.api.data.value.immutable.ImmutableValue; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.data.manipulator.immutable.ImmutableFluidTankData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.data.manipulator.immutable.ImmutableFluidTankData.d.ts new file mode 100644 index 00000000..1c580369 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.data.manipulator.immutable.ImmutableFluidTankData.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace fluid { + namespace data { + namespace manipulator { + namespace immutable { + // @ts-ignore + interface ImmutableFluidTankData extends org.spongepowered.api.data.manipulator.immutable.ImmutableMappedData { + /** + * Gets the {@link MapValue} of the various {@link FluidStackSnapshot}s + * available from the owner. Note that a fluid tank may have multiple + * {@link FluidStack}s differing based on {@link Direction}. + */ + // @ts-ignore + fluids(): org.spongepowered.api.data.value.immutable.ImmutableMapValue; + /** + * Gets the {@link List} of {@link FluidStackSnapshot}s at a defined + * {@link Direction}. + */ + // @ts-ignore + fluidAtDirection(direction: org.spongepowered.api.util.Direction): java.util.Optional; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.data.manipulator.mutable.FluidItemData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.data.manipulator.mutable.FluidItemData.d.ts new file mode 100644 index 00000000..655a3f0b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.data.manipulator.mutable.FluidItemData.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace fluid { + namespace data { + namespace manipulator { + namespace mutable { + // @ts-ignore + interface FluidItemData extends org.spongepowered.api.data.manipulator.DataManipulator { + /** + * Gets the {@link FluidStackSnapshot} from the owner as a value. + */ + // @ts-ignore + fluid(): org.spongepowered.api.data.value.mutable.Value; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.data.manipulator.mutable.FluidTankData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.data.manipulator.mutable.FluidTankData.d.ts new file mode 100644 index 00000000..23bb0289 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.data.manipulator.mutable.FluidTankData.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace fluid { + namespace data { + namespace manipulator { + namespace mutable { + // @ts-ignore + interface FluidTankData extends org.spongepowered.api.data.manipulator.mutable.MappedData { + /** + * Gets the {@link MapValue} of the various {@link FluidStackSnapshot}s + * available from the owner. Note that a fluid tank may have multiple + * {@link FluidStack}s differing based on {@link Direction}. + */ + // @ts-ignore + fluids(): org.spongepowered.api.data.value.mutable.MapValue; + /** + * Gets the {@link List} of {@link FluidStackSnapshot}s at a defined + * {@link Direction}. + */ + // @ts-ignore + fluidAtDirection(direction: org.spongepowered.api.util.Direction): java.util.Optional; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.data.property.FluidTemperatureProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.data.property.FluidTemperatureProperty.d.ts new file mode 100644 index 00000000..7a088f0f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.data.property.FluidTemperatureProperty.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace fluid { + namespace data { + namespace property { + // @ts-ignore + class FluidTemperatureProperty extends org.spongepowered.api.data.property.IntProperty { + /** + * Creates a new {@link FluidTemperatureProperty} with the desired temperature. + */ + // @ts-ignore + constructor(value: number) + /** + * Creates a new {@link FluidTemperatureProperty} with the desired temperature + * and {@link org.spongepowered.api.data.Property.Operator} for comparisons. + */ + // @ts-ignore + constructor(value: number, operator: org.spongepowered.api.data.Property.Operator) + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.data.property.FluidViscosityProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.data.property.FluidViscosityProperty.d.ts new file mode 100644 index 00000000..732f246d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.fluid.data.property.FluidViscosityProperty.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace fluid { + namespace data { + namespace property { + // @ts-ignore + class FluidViscosityProperty extends org.spongepowered.api.data.property.IntProperty { + /** + * Creates a new {@link FluidViscosityProperty} with the desired viscosity. + */ + // @ts-ignore + constructor(value: number) + /** + * Creates a new {@link FluidViscosityProperty} with the desired viscosity + * and {@link org.spongepowered.api.data.Property.Operator} for comparisons. + */ + // @ts-ignore + constructor(value: number, operator: org.spongepowered.api.data.Property.Operator) + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.extra.modifier.empty.VoidWorldGeneratorModifier.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.modifier.empty.VoidWorldGeneratorModifier.d.ts new file mode 100644 index 00000000..e44bc4ca --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.modifier.empty.VoidWorldGeneratorModifier.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace modifier { + namespace empty { + // @ts-ignore + class VoidWorldGeneratorModifier extends java.lang.Object implements org.spongepowered.api.world.gen.WorldGeneratorModifier { + // @ts-ignore + constructor() + // @ts-ignore + public modifyWorldGenerator(world: org.spongepowered.api.world.storage.WorldProperties, settings: org.spongepowered.api.data.DataContainer, worldGenerator: org.spongepowered.api.world.gen.WorldGenerator): void; + // @ts-ignore + public getId(): string; + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.extra.modifier.skylands.SkylandsBiomeGenerator.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.modifier.skylands.SkylandsBiomeGenerator.d.ts new file mode 100644 index 00000000..aff2aa2b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.modifier.skylands.SkylandsBiomeGenerator.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace modifier { + namespace skylands { + // @ts-ignore + class SkylandsBiomeGenerator extends java.lang.Object implements org.spongepowered.api.world.gen.BiomeGenerator { + // @ts-ignore + constructor() + // @ts-ignore + public generateBiomes(buffer: org.spongepowered.api.world.extent.MutableBiomeVolume): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.extra.modifier.skylands.SkylandsGrassPopulator.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.modifier.skylands.SkylandsGrassPopulator.d.ts new file mode 100644 index 00000000..986efbad --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.modifier.skylands.SkylandsGrassPopulator.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace modifier { + namespace skylands { + // @ts-ignore + class SkylandsGrassPopulator extends java.lang.Object implements org.spongepowered.api.world.gen.GenerationPopulator { + /** + * Constructs a new grass populator for the Skylands. + */ + // @ts-ignore + constructor() + // @ts-ignore + public populate(world: org.spongepowered.api.world.World, buffer: org.spongepowered.api.world.extent.MutableBlockVolume, biomes: org.spongepowered.api.world.extent.ImmutableBiomeVolume): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.extra.modifier.skylands.SkylandsGroundCoverPopulator.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.modifier.skylands.SkylandsGroundCoverPopulator.d.ts new file mode 100644 index 00000000..17fd3e31 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.modifier.skylands.SkylandsGroundCoverPopulator.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace modifier { + namespace skylands { + // @ts-ignore + class SkylandsGroundCoverPopulator extends java.lang.Object implements org.spongepowered.api.world.gen.GenerationPopulator { + // @ts-ignore + constructor() + // @ts-ignore + public populate(world: org.spongepowered.api.world.World, buffer: org.spongepowered.api.world.extent.MutableBlockVolume, biomes: org.spongepowered.api.world.extent.ImmutableBiomeVolume): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.extra.modifier.skylands.SkylandsTerrainGenerator.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.modifier.skylands.SkylandsTerrainGenerator.d.ts new file mode 100644 index 00000000..bc9f3324 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.modifier.skylands.SkylandsTerrainGenerator.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace modifier { + namespace skylands { + // @ts-ignore + class SkylandsTerrainGenerator extends java.lang.Object implements org.spongepowered.api.world.gen.GenerationPopulator { + /** + * Constructs a new Skylands terrain generator. + */ + // @ts-ignore + constructor() + // @ts-ignore + public static MAX_HEIGHT: number; + // @ts-ignore + public static MIN_HEIGHT: number; + // @ts-ignore + public populate(world: org.spongepowered.api.world.World, buffer: org.spongepowered.api.world.extent.MutableBlockVolume, biomes: org.spongepowered.api.world.extent.ImmutableBiomeVolume): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.extra.modifier.skylands.SkylandsWorldGeneratorModifier.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.modifier.skylands.SkylandsWorldGeneratorModifier.d.ts new file mode 100644 index 00000000..70a84b75 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.extra.modifier.skylands.SkylandsWorldGeneratorModifier.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace extra { + namespace modifier { + namespace skylands { + // @ts-ignore + class SkylandsWorldGeneratorModifier extends java.lang.Object implements org.spongepowered.api.world.gen.WorldGeneratorModifier { + // @ts-ignore + constructor() + // @ts-ignore + public modifyWorldGenerator(properties: org.spongepowered.api.world.storage.WorldProperties, settings: org.spongepowered.api.data.DataContainer, worldGenerator: org.spongepowered.api.world.gen.WorldGenerator): void; + // @ts-ignore + public getId(): string; + // @ts-ignore + public getName(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.FireworkEffect.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.FireworkEffect.Builder.d.ts new file mode 100644 index 00000000..75028e5a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.FireworkEffect.Builder.d.ts @@ -0,0 +1,79 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace FireworkEffect { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets whether the {@link FireworkEffect} is going to have a trail + * or not. + */ + // @ts-ignore + trail(trail: boolean): org.spongepowered.api.item.FireworkEffect.Builder; + /** + * Sets whether the {@link FireworkEffect} is going to flicker + * on explosion. + */ + // @ts-ignore + flicker(flicker: boolean): org.spongepowered.api.item.FireworkEffect.Builder; + /** + * Adds the given {@link Color} to the initial explosion colors. + *

Colors can be mixed and matched in the order they are added + * in.

+ */ + // @ts-ignore + color(color: org.spongepowered.api.util.Color): org.spongepowered.api.item.FireworkEffect.Builder; + /** + * Adds the given {@link Color}s to the initial explosion colors. + *

Colors can be mixed and matched in the order they are added + * in.

+ */ + // @ts-ignore + colors(colors: org.spongepowered.api.util.Color): org.spongepowered.api.item.FireworkEffect.Builder; + /** + * Adds the given {@link Color}s to the initial explosion colors. + *

Colors can be mixed and matched in the order they are added + * in.

+ */ + // @ts-ignore + colors(colors: java.lang.Iterable): org.spongepowered.api.item.FireworkEffect.Builder; + /** + * Adds the given {@link Color} to the fade colors. + *

Colors can be mixed and matched in the order they are added + * in.

+ */ + // @ts-ignore + fade(color: org.spongepowered.api.util.Color): org.spongepowered.api.item.FireworkEffect.Builder; + /** + * Adds the given {@link Color}s to the fade colors. + *

Colors can be mixed and matched in the order they are added + * in.

+ */ + // @ts-ignore + fades(colors: org.spongepowered.api.util.Color): org.spongepowered.api.item.FireworkEffect.Builder; + /** + * Adds the given {@link Color}s to the fade colors. + *

Colors can be mixed and matched in the order they are added + * in.

+ */ + // @ts-ignore + fades(colors: java.lang.Iterable): org.spongepowered.api.item.FireworkEffect.Builder; + /** + * Sets the shape of the {@link FireworkEffect} explosion. + */ + // @ts-ignore + shape(shape: org.spongepowered.api.item.FireworkShape): org.spongepowered.api.item.FireworkEffect.Builder; + /** + * Builds a {@link FireworkEffect} based on the current state of this + * builder. + */ + // @ts-ignore + build(): org.spongepowered.api.item.FireworkEffect; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.FireworkEffect.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.FireworkEffect.d.ts new file mode 100644 index 00000000..49c52c49 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.FireworkEffect.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + // @ts-ignore + interface FireworkEffect extends org.spongepowered.api.data.DataSerializable { + /** + * Creates a new {@link Builder} to build a {@link FireworkEffect}. + */ + // @ts-ignore + builder(): org.spongepowered.api.item.FireworkEffect.Builder; + /** + * Gets whether this {@link FireworkEffect} will flicker when + * detonated. + */ + // @ts-ignore + flickers(): boolean; + /** + * Gets whether this {@link FireworkEffect} will have a trail + * when detonated. + */ + // @ts-ignore + hasTrail(): boolean; + /** + * Gets the ordered list of colors. + *

In some implementations, the order of colors defines the colors + * showing from edge to center of the firework explosion.

+ */ + // @ts-ignore + getColors(): java.util.List; + /** + * Gets the ordered list of colors. + *

Normally in vanilla, the order of colors defines the colors + * showing from edge to center of the firework explosion.

+ */ + // @ts-ignore + getFadeColors(): java.util.List; + /** + * Gets the explosion shape. + */ + // @ts-ignore + getShape(): org.spongepowered.api.item.FireworkShape; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.FireworkShape.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.FireworkShape.d.ts new file mode 100644 index 00000000..d89cf089 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.FireworkShape.d.ts @@ -0,0 +1,12 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + // @ts-ignore + interface FireworkShape extends org.spongepowered.api.CatalogType { + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.FireworkShapes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.FireworkShapes.d.ts new file mode 100644 index 00000000..7d28cc78 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.FireworkShapes.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + // @ts-ignore + class FireworkShapes extends java.lang.Object { + // @ts-ignore + public static BALL: org.spongepowered.api.item.FireworkShape; + // @ts-ignore + public static BURST: org.spongepowered.api.item.FireworkShape; + // @ts-ignore + public static CREEPER: org.spongepowered.api.item.FireworkShape; + // @ts-ignore + public static LARGE_BALL: org.spongepowered.api.item.FireworkShape; + // @ts-ignore + public static STAR: org.spongepowered.api.item.FireworkShape; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.ItemType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.ItemType.d.ts new file mode 100644 index 00000000..c7cdefa6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.ItemType.d.ts @@ -0,0 +1,49 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + // @ts-ignore + interface ItemType extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable, org.spongepowered.api.GameDictionary.Entry { + /** + * Gets the corresponding {@link BlockType} of this item if one exists. + */ + // @ts-ignore + getBlock(): java.util.Optional; + /** + * Gets the id of this item. + *

Ex. Minecraft registers a golden carrot as + * "minecraft:golden_carrot".

+ */ + // @ts-ignore + getName(): string; + /** + * Gets the default maximum quantity for + * {@link ItemStack}s of this item. + */ + // @ts-ignore + getMaxStackQuantity(): number; + /** + * Gets the default {@link Property} of this {@link ItemType}. + *

While item stacks do have properties, generally, there is an + * intrinsic default property for many item types. However, it should be + * considered that when mods are introducing their own custom items, they + * too could introduce different item properties based on various data on + * the item stack. The default properties retrieved from here should merely + * be considered as a default, not as a definitive property.

+ */ + // @ts-ignore + getDefaultProperty(propertyClass: java.lang.Class): java.util.Optional; + // @ts-ignore + getType(): org.spongepowered.api.item.ItemType; + // @ts-ignore + matches(stack: org.spongepowered.api.item.inventory.ItemStack): boolean; + // @ts-ignore + isSpecific(): boolean; + // @ts-ignore + getTemplate(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.ItemTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.ItemTypes.d.ts new file mode 100644 index 00000000..af11b8b7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.ItemTypes.d.ts @@ -0,0 +1,836 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + // @ts-ignore + class ItemTypes extends java.lang.Object { + // @ts-ignore + public static ACACIA_BOAT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ACACIA_DOOR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ACACIA_FENCE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ACACIA_FENCE_GATE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ACACIA_STAIRS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ACTIVATOR_RAIL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static AIR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ANVIL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static APPLE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ARMOR_STAND: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ARROW: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BAKED_POTATO: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BANNER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BARRIER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BEACON: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BED: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BEDROCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BEEF: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BEETROOT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BEETROOT_SEEDS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BEETROOT_SOUP: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BIRCH_BOAT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BIRCH_DOOR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BIRCH_FENCE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BIRCH_FENCE_GATE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BIRCH_STAIRS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BLACK_GLAZED_TERRACOTTA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BLACK_SHULKER_BOX: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BLAZE_POWDER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BLAZE_ROD: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BLUE_GLAZED_TERRACOTTA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BLUE_SHULKER_BOX: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BOAT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BONE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BONE_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BOOK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BOOKSHELF: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BOW: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BOWL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BREAD: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BREWING_STAND: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BRICK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BRICK_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BRICK_STAIRS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BROWN_GLAZED_TERRACOTTA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BROWN_MUSHROOM: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BROWN_MUSHROOM_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BROWN_SHULKER_BOX: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static BUCKET: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CACTUS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CAKE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CARPET: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CARROT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CARROT_ON_A_STICK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CAULDRON: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CHAINMAIL_BOOTS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CHAINMAIL_CHESTPLATE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CHAINMAIL_HELMET: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CHAINMAIL_LEGGINGS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CHAIN_COMMAND_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CHEST: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CHEST_MINECART: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CHICKEN: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CHORUS_FLOWER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CHORUS_FRUIT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CHORUS_FRUIT_POPPED: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CHORUS_PLANT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CLAY: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CLAY_BALL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static COAL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static COAL_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static COAL_ORE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static COBBLESTONE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static COBBLESTONE_WALL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static COMMAND_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static COMMAND_BLOCK_MINECART: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static COMPARATOR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static COMPASS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CONCRETE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CONCRETE_POWDER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static COOKED_BEEF: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static COOKED_CHICKEN: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static COOKED_FISH: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static COOKED_MUTTON: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static COOKED_PORKCHOP: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static COOKED_RABBIT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static COOKIE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CRAFTING_TABLE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CYAN_GLAZED_TERRACOTTA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static CYAN_SHULKER_BOX: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DARK_OAK_BOAT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DARK_OAK_DOOR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DARK_OAK_FENCE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DARK_OAK_FENCE_GATE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DARK_OAK_STAIRS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DAYLIGHT_DETECTOR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DEADBUSH: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DETECTOR_RAIL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DIAMOND: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DIAMOND_AXE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DIAMOND_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DIAMOND_BOOTS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DIAMOND_CHESTPLATE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DIAMOND_HELMET: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DIAMOND_HOE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DIAMOND_HORSE_ARMOR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DIAMOND_LEGGINGS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DIAMOND_ORE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DIAMOND_PICKAXE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DIAMOND_SHOVEL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DIAMOND_SWORD: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DIRT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DISPENSER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DOUBLE_PLANT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DRAGON_BREATH: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DRAGON_EGG: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DROPPER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static DYE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static EGG: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ELYTRA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static EMERALD: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static EMERALD_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static EMERALD_ORE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ENCHANTED_BOOK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ENCHANTING_TABLE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ENDER_CHEST: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ENDER_EYE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ENDER_PEARL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static END_BRICKS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static END_CRYSTAL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static END_PORTAL_FRAME: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static END_ROD: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static END_STONE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static EXPERIENCE_BOTTLE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static FARMLAND: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static FEATHER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static FENCE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static FENCE_GATE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static FERMENTED_SPIDER_EYE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static FILLED_MAP: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static FIREWORKS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static FIREWORK_CHARGE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static FIRE_CHARGE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static FISH: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static FISHING_ROD: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static FLINT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static FLINT_AND_STEEL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static FLOWER_POT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static FURNACE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static FURNACE_MINECART: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GHAST_TEAR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GLASS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GLASS_BOTTLE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GLASS_PANE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GLOWSTONE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GLOWSTONE_DUST: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLDEN_APPLE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLDEN_AXE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLDEN_BOOTS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLDEN_CARROT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLDEN_CHESTPLATE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLDEN_HELMET: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLDEN_HOE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLDEN_HORSE_ARMOR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLDEN_LEGGINGS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLDEN_PICKAXE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLDEN_RAIL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLDEN_SHOVEL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLDEN_SWORD: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLD_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLD_INGOT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLD_NUGGET: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GOLD_ORE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GRASS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GRASS_PATH: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GRAVEL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GRAY_GLAZED_TERRACOTTA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GRAY_SHULKER_BOX: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GREEN_GLAZED_TERRACOTTA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GREEN_SHULKER_BOX: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static GUNPOWDER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static HARDENED_CLAY: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static HAY_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static HEAVY_WEIGHTED_PRESSURE_PLATE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static HOPPER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static HOPPER_MINECART: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ICE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_AXE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_BARS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_BOOTS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_CHESTPLATE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_DOOR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_HELMET: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_HOE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_HORSE_ARMOR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_INGOT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_LEGGINGS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_NUGGET: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_ORE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_PICKAXE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_SHOVEL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_SWORD: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static IRON_TRAPDOOR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ITEM_FRAME: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static JUKEBOX: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static JUNGLE_BOAT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static JUNGLE_DOOR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static JUNGLE_FENCE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static JUNGLE_FENCE_GATE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static JUNGLE_STAIRS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static KNOWLEDGE_BOOK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LADDER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LAPIS_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LAPIS_ORE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LAVA_BUCKET: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LEAD: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LEATHER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LEATHER_BOOTS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LEATHER_CHESTPLATE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LEATHER_HELMET: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LEATHER_LEGGINGS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LEAVES: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LEAVES2: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LEVER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LIGHT_BLUE_GLAZED_TERRACOTTA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LIGHT_BLUE_SHULKER_BOX: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LIGHT_WEIGHTED_PRESSURE_PLATE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LIME_GLAZED_TERRACOTTA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LIME_SHULKER_BOX: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LINGERING_POTION: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LIT_PUMPKIN: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LOG: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static LOG2: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static MAGENTA_GLAZED_TERRACOTTA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static MAGENTA_SHULKER_BOX: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static MAGMA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static MAGMA_CREAM: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static MAP: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static MELON: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static MELON_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static MELON_SEEDS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static MILK_BUCKET: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static MINECART: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static MOB_SPAWNER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static MONSTER_EGG: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static MOSSY_COBBLESTONE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static MUSHROOM_STEW: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static MUTTON: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static MYCELIUM: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static NAME_TAG: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static NETHERBRICK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static NETHERRACK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static NETHER_BRICK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static NETHER_BRICK_FENCE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static NETHER_BRICK_STAIRS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static NETHER_STAR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static NETHER_WART: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static NETHER_WART_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static NONE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static NOTEBLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static OAK_STAIRS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static OBSERVER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static OBSIDIAN: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ORANGE_GLAZED_TERRACOTTA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ORANGE_SHULKER_BOX: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PACKED_ICE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PAINTING: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PAPER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PINK_GLAZED_TERRACOTTA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PINK_SHULKER_BOX: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PISTON: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PLANKS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static POISONOUS_POTATO: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PORKCHOP: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static POTATO: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static POTION: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PRISMARINE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PRISMARINE_CRYSTALS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PRISMARINE_SHARD: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PUMPKIN: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PUMPKIN_PIE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PUMPKIN_SEEDS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PURPLE_GLAZED_TERRACOTTA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PURPLE_SHULKER_BOX: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PURPUR_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PURPUR_PILLAR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PURPUR_SLAB: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static PURPUR_STAIRS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static QUARTZ: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static QUARTZ_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static QUARTZ_ORE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static QUARTZ_STAIRS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RABBIT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RABBIT_FOOT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RABBIT_HIDE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RABBIT_STEW: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RAIL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RECORD_11: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RECORD_13: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RECORD_BLOCKS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RECORD_CAT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RECORD_CHIRP: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RECORD_FAR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RECORD_MALL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RECORD_MELLOHI: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RECORD_STAL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RECORD_STRAD: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RECORD_WAIT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RECORD_WARD: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static REDSTONE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static REDSTONE_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static REDSTONE_LAMP: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static REDSTONE_ORE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static REDSTONE_TORCH: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RED_FLOWER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RED_GLAZED_TERRACOTTA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RED_MUSHROOM: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RED_MUSHROOM_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RED_NETHER_BRICK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RED_SANDSTONE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RED_SANDSTONE_STAIRS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static RED_SHULKER_BOX: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static REEDS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static REPEATER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static REPEATING_COMMAND_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static ROTTEN_FLESH: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SADDLE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SAND: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SANDSTONE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SANDSTONE_STAIRS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SAPLING: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SEA_LANTERN: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SHEARS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SHIELD: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SHULKER_SHELL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SIGN: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SILVER_GLAZED_TERRACOTTA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SILVER_SHULKER_BOX: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SKULL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SLIME: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SLIME_BALL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SNOW: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SNOWBALL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SNOW_LAYER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SOUL_SAND: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SPAWN_EGG: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SPECKLED_MELON: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SPECTRAL_ARROW: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SPIDER_EYE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SPLASH_POTION: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SPONGE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SPRUCE_BOAT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SPRUCE_DOOR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SPRUCE_FENCE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SPRUCE_FENCE_GATE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SPRUCE_STAIRS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STAINED_GLASS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STAINED_GLASS_PANE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STAINED_HARDENED_CLAY: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STICK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STICKY_PISTON: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STONE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STONEBRICK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STONE_AXE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STONE_BRICK_STAIRS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STONE_BUTTON: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STONE_HOE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STONE_PICKAXE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STONE_PRESSURE_PLATE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STONE_SHOVEL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STONE_SLAB: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STONE_SLAB2: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STONE_STAIRS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STONE_SWORD: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STRING: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STRUCTURE_BLOCK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static STRUCTURE_VOID: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static SUGAR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static TALLGRASS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static TIPPED_ARROW: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static TNT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static TNT_MINECART: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static TORCH: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static TOTEM_OF_UNDYING: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static TRAPDOOR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static TRAPPED_CHEST: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static TRIPWIRE_HOOK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static VINE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WATERLILY: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WATER_BUCKET: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WEB: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WHEAT: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WHEAT_SEEDS: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WHITE_GLAZED_TERRACOTTA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WHITE_SHULKER_BOX: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WOODEN_AXE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WOODEN_BUTTON: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WOODEN_DOOR: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WOODEN_HOE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WOODEN_PICKAXE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WOODEN_PRESSURE_PLATE: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WOODEN_SHOVEL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WOODEN_SLAB: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WOODEN_SWORD: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WOOL: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WRITABLE_BOOK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static WRITTEN_BOOK: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static YELLOW_FLOWER: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static YELLOW_GLAZED_TERRACOTTA: org.spongepowered.api.item.ItemType; + // @ts-ignore + public static YELLOW_SHULKER_BOX: org.spongepowered.api.item.ItemType; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.enchantment.Enchantment.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.enchantment.Enchantment.Builder.d.ts new file mode 100644 index 00000000..4388d11e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.enchantment.Enchantment.Builder.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace enchantment { + namespace Enchantment { + // @ts-ignore + interface Builder extends org.spongepowered.api.data.persistence.DataBuilder { + /** + * Sets the {@link EnchantmentType} for this enchantment. + */ + // @ts-ignore + type(enchantmentType: org.spongepowered.api.item.enchantment.EnchantmentType): org.spongepowered.api.item.enchantment.Enchantment.Builder; + /** + * Sets the level for this enchantment. + *

This level must be between {@link Short#MIN_VALUE} and + * {@link Short#MAX_VALUE}, but there is no guarantee all levels will + * work properly without error. It is recommended for reliable results + * you stay between {@link EnchantmentType#getMinimumLevel()} and + * {@link EnchantmentType#getMaximumLevel()}, or at least larger + * than 0 and less than {@link Short#MAX_VALUE}.

+ */ + // @ts-ignore + level(level: number): org.spongepowered.api.item.enchantment.Enchantment.Builder; + /** + * Builds an instance of a {@link Enchantment} based on the entered + * information. + */ + // @ts-ignore + build(): org.spongepowered.api.item.enchantment.Enchantment; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.enchantment.Enchantment.RandomListBuilder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.enchantment.Enchantment.RandomListBuilder.d.ts new file mode 100644 index 00000000..d0bdb2df --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.enchantment.Enchantment.RandomListBuilder.d.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace enchantment { + namespace Enchantment { + // @ts-ignore + interface RandomListBuilder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the random seed. + */ + // @ts-ignore + seed(seed: number): org.spongepowered.api.item.enchantment.Enchantment.RandomListBuilder; + /** + * Sets the enchanting option. (1-3 in vanilla) + */ + // @ts-ignore + option(option: number): org.spongepowered.api.item.enchantment.Enchantment.RandomListBuilder; + /** + * Sets the enchanting level. (max. 30 in vanilla) + */ + // @ts-ignore + level(level: number): org.spongepowered.api.item.enchantment.Enchantment.RandomListBuilder; + /** + * Sets whether to include treasure enchantments or not + */ + // @ts-ignore + treasure(treasure: boolean): org.spongepowered.api.item.enchantment.Enchantment.RandomListBuilder; + /** + * Sets a fixed pool for the random enchantments to pick from. + *

If empty a pool will be calculated based on the other values instead.

+ */ + // @ts-ignore + fixedPool(pool: java.util.List): org.spongepowered.api.item.enchantment.Enchantment.RandomListBuilder; + /** + * Sets the item for which the enchantments are chosen + */ + // @ts-ignore + item(item: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.enchantment.Enchantment.RandomListBuilder; + /** + * Builds an instance of a {@link Enchantment} based on the entered + * information. + */ + // @ts-ignore + build(): java.util.List; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.enchantment.Enchantment.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.enchantment.Enchantment.d.ts new file mode 100644 index 00000000..cd77a791 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.enchantment.Enchantment.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace enchantment { + // @ts-ignore + interface Enchantment extends org.spongepowered.api.data.DataSerializable { + /** + * Creates a new {@link Builder} to create an {@link Enchantment}. + */ + // @ts-ignore + builder(): org.spongepowered.api.item.enchantment.Enchantment.Builder; + // @ts-ignore + randomListBuilder(): org.spongepowered.api.item.enchantment.Enchantment.RandomListBuilder; + /** + * Creates a new {@link Enchantment} with the provided + * {@link EnchantmentType} and level. + */ + // @ts-ignore + of(enchantmentType: org.spongepowered.api.item.enchantment.EnchantmentType, level: number): org.spongepowered.api.item.enchantment.Enchantment; + /** + * Gets the {@link EnchantmentType} for this enchantment. + */ + // @ts-ignore + getType(): org.spongepowered.api.item.enchantment.EnchantmentType; + /** + * Gets the level of this enchantment. + */ + // @ts-ignore + getLevel(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.enchantment.EnchantmentType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.enchantment.EnchantmentType.d.ts new file mode 100644 index 00000000..63534371 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.enchantment.EnchantmentType.d.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace enchantment { + // @ts-ignore + interface EnchantmentType extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + /** + * Gets the weight of this enchantment type. + *

Higher values are more common. This value is also used in the repair + * cost calculation.

+ */ + // @ts-ignore + getWeight(): number; + /** + * Gets the minimum level of this enchantment type allowed where + * it is present. + */ + // @ts-ignore + getMinimumLevel(): number; + /** + * Gets the maximum level of this enchantment type normally allowed. + */ + // @ts-ignore + getMaximumLevel(): number; + /** + * Gets the minimum item enchantability for this level to be normally added + * by enchanting tables. + */ + // @ts-ignore + getMinimumEnchantabilityForLevel(level: number): number; + /** + * Gets the maximum item enchantability for this level to be normally added + * by enchanting tables. + */ + // @ts-ignore + getMaximumEnchantabilityForLevel(level: number): number; + /** + * Test if this enchantment type can be applied to an {@link ItemStack}. + */ + // @ts-ignore + canBeAppliedToStack(stack: org.spongepowered.api.item.inventory.ItemStack): boolean; + /** + * Test if this enchantment type can be applied to an {@link ItemStack} by + * the {@link EnchantmentTable}. + */ + // @ts-ignore + canBeAppliedByTable(stack: org.spongepowered.api.item.inventory.ItemStack): boolean; + /** + * Test if this enchantment type can be applied along with + * another enchantment type. + */ + // @ts-ignore + isCompatibleWith(enchantmentType: org.spongepowered.api.item.enchantment.EnchantmentType): boolean; + /** + * Gets whether or not this enchantment type is considered a "treasure" + * enchantment. + *

These do not occur naturally in enchantment tables.

+ */ + // @ts-ignore + isTreasure(): boolean; + /** + * Gets whether or not this enchantment type is considered a "curse" + * enchantment. + */ + // @ts-ignore + isCurse(): boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.enchantment.EnchantmentTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.enchantment.EnchantmentTypes.d.ts new file mode 100644 index 00000000..8bb433be --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.enchantment.EnchantmentTypes.d.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace enchantment { + // @ts-ignore + class EnchantmentTypes extends java.lang.Object { + // @ts-ignore + public static AQUA_AFFINITY: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static BANE_OF_ARTHROPODS: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static BINDING_CURSE: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static BLAST_PROTECTION: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static DEPTH_STRIDER: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static EFFICIENCY: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static FEATHER_FALLING: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static FIRE_ASPECT: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static FIRE_PROTECTION: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static FLAME: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static FORTUNE: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static FROST_WALKER: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static INFINITY: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static KNOCKBACK: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static LOOTING: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static LUCK_OF_THE_SEA: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static LURE: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static MENDING: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static POWER: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static PROJECTILE_PROTECTION: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static PROTECTION: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static PUNCH: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static RESPIRATION: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static SHARPNESS: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static SILK_TOUCH: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static SMITE: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static SWEEPING: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static THORNS: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static UNBREAKING: org.spongepowered.api.item.enchantment.EnchantmentType; + // @ts-ignore + public static VANISHING_CURSE: org.spongepowered.api.item.enchantment.EnchantmentType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.AnvilCost.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.AnvilCost.d.ts new file mode 100644 index 00000000..0b542e10 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.AnvilCost.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + // @ts-ignore + interface AnvilCost extends org.spongepowered.api.data.DataSerializable { + /** + * Returns the level cost. + */ + // @ts-ignore + getLevelCost(): number; + /** + * Returns the material cost. + */ + // @ts-ignore + getMaterialCost(): number; + /** + * Returns a modified copy of the Costs + */ + // @ts-ignore + withLevelCost(levelCost: number): org.spongepowered.api.item.inventory.AnvilCost; + /** + * Returns a modified copy of the Costs + */ + // @ts-ignore + withMaterialCost(materialCost: number): org.spongepowered.api.item.inventory.AnvilCost; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.BlockCarrier.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.BlockCarrier.d.ts new file mode 100644 index 00000000..fe3f8e49 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.BlockCarrier.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + // @ts-ignore + interface BlockCarrier extends org.spongepowered.api.item.inventory.Carrier, org.spongepowered.api.world.Locatable { + /** + * Returns the Location of the Block. + */ + // @ts-ignore + getLocation(): org.spongepowered.api.world.Location; + /** + * Returns the Inventory owned by this Carrier and accessible from + * the given direction. + *

e.g. A Furnace accessed from {@link Direction#DOWN} will return its Fuel Slot

+ *

When no inventory is accessible a {@link EmptyInventory} is returned

+ */ + // @ts-ignore + getInventory(from: org.spongepowered.api.util.Direction): org.spongepowered.api.item.inventory.Inventory; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.Carrier.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.Carrier.d.ts new file mode 100644 index 00000000..08ce2618 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.Carrier.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + // @ts-ignore + interface Carrier { + /** + * Returns the inventory that this Carrier is holding. + */ + // @ts-ignore + getInventory(): org.spongepowered.api.item.inventory.type.CarriedInventory; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.Container.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.Container.d.ts new file mode 100644 index 00000000..8b3ba7b0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.Container.d.ts @@ -0,0 +1,43 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + // @ts-ignore + interface Container extends org.spongepowered.api.item.inventory.type.Interactable { + /** + * Gets the current viewers looking at this Inventory. + */ + // @ts-ignore + getViewers(): java.util.Set; + /** + * Checks for whether this Inventory currently has viewers. + */ + // @ts-ignore + hasViewers(): boolean; + /** + * Shows this Inventory to the given viewer. + */ + // @ts-ignore + open(viewer: org.spongepowered.api.entity.living.player.Player): void; + /** + * Stops showing this Inventory to the given viewer. + */ + // @ts-ignore + close(viewer: org.spongepowered.api.entity.living.player.Player): void; + /** + * Returns whether given slot is part of the viewed inventories + * but not part of the viewers own inventory. + *

Examples for viewed inventory slots:

+ *

All the slots of the opened chest and not the player grid below.

+ *

The slots of the crafting grid in the opened player inventory.

+ */ + // @ts-ignore + isViewedSlot(slot: org.spongepowered.api.item.inventory.Slot): boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.EmptyInventory.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.EmptyInventory.d.ts new file mode 100644 index 00000000..dcda3b00 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.EmptyInventory.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + // @ts-ignore + interface EmptyInventory extends org.spongepowered.api.item.inventory.Inventory { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.Inventory.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.Inventory.Builder.d.ts new file mode 100644 index 00000000..a23bcc30 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.Inventory.Builder.d.ts @@ -0,0 +1,58 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace Inventory { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the base {@link InventoryArchetype} for the Inventory. + */ + // @ts-ignore + of(archetype: org.spongepowered.api.item.inventory.InventoryArchetype): org.spongepowered.api.item.inventory.Inventory.Builder; + /** + * Sets an {@link InventoryProperty}. + */ + // @ts-ignore + property(name: string, property: org.spongepowered.api.item.inventory.InventoryProperty): org.spongepowered.api.item.inventory.Inventory.Builder; + /** + * Sets an {@link InventoryProperty} with its default key. + */ + // @ts-ignore + property(property: org.spongepowered.api.item.inventory.InventoryProperty): org.spongepowered.api.item.inventory.Inventory.Builder; + /** + * Sets the {@link Carrier} that carries the Inventory. + */ + // @ts-ignore + withCarrier(carrier: org.spongepowered.api.item.inventory.Carrier): org.spongepowered.api.item.inventory.Inventory.Builder; + /** + * Registers a listener for given Event type + */ + // @ts-ignore + listener(type: java.lang.Class, listener: java.util.function$.Consumer): org.spongepowered.api.item.inventory.Inventory.Builder; + /** + * Sets the InventoryArchetype and Properties according to the + * {@link Carrier}s Inventory. + */ + // @ts-ignore + forCarrier(carrier: org.spongepowered.api.item.inventory.Carrier): org.spongepowered.api.item.inventory.Inventory.Builder; + /** + * Sets the InventoryArchetype and Properties for a default Inventory of + * given {@link Carrier}. + */ + // @ts-ignore + forCarrier(carrier: java.lang.Class): org.spongepowered.api.item.inventory.Inventory.Builder; + /** + * Builds the {@link Inventory}. + */ + // @ts-ignore + build(plugin: java.lang.Object): org.spongepowered.api.item.inventory.Inventory; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.Inventory.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.Inventory.d.ts new file mode 100644 index 00000000..c50d1bd7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.Inventory.d.ts @@ -0,0 +1,385 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + // @ts-ignore + interface Inventory extends org.spongepowered.api.Nameable { + /** + * Creates a new {@link Inventory.Builder} to build an {@link Inventory}. + */ + // @ts-ignore + builder(): org.spongepowered.api.item.inventory.Inventory.Builder; + /** + * Gets the parent {@link Inventory} of this {@link Inventory}. + */ + // @ts-ignore + parent(): org.spongepowered.api.item.inventory.Inventory; + /** + * Gets the root {@link Inventory} of this {@link Inventory}. + * This is equivalent to calling {@link #parent()} until it returns itself. + */ + // @ts-ignore + root(): org.spongepowered.api.item.inventory.Inventory; + /** + * Returns an iterable view of all {@link Slot}s (leaf nodes) in this + * Inventory. + */ + // @ts-ignore + slots(): java.lang.Iterable; + /** + * Return the first child inventory, effectively the same as + * Inventory::iterator().next() but more convenient when we are + * expecting a result set with only a single entry. Also use type specifier + * to allow easy pseudo-duck-typing. If no children, then returns + * this. + */ + // @ts-ignore + first(): org.spongepowered.api.item.inventory.Inventory; + /** + * Return the next sibling inventory, allows traversing the inventory + * hierarchy without using an iterator. If no more siblings, returns an + * {@link EmptyInventory}. + */ + // @ts-ignore + next(): org.spongepowered.api.item.inventory.Inventory; + /** + * Gets and remove the first available stack from this Inventory. + *

'Available' has a different meaning for different inventory types. In + * a single-slot inventory this has a fixed implication. However larger and + * more complex inventories are at liberty to implement whatever logic they + * wish to back this method. If an inventory cannot provide a meaningful + * implementation of this method then it should return + * {@link Optional#empty()} instead.

+ *

For consumers, this means that just because an inventory doesn't + * return anything here, this does not imply that the inventory is empty, + * just that a more specific query is required to obtain items from it.

+ */ + // @ts-ignore + poll(): java.util.Optional; + /** + *

Get and remove up to limit items of the type in the first + * available stack in this Inventory from all stacks in this Inventory. If + * no stack is available then {@link Optional#empty()} is returned (as per + * the usual behaviour of {@link #poll()}, otherwise a new {@link ItemStack} + * is returned containing the removed items, the contents of the stack in + * the inventory are reduced by the number of items consumed. Note that this + * method attempts to consume items into the output up to + * limit, which may consume items from an arbitrary number + * of internal slots.

+ *

For example, assume an inventory containing 4 slots contains stacks as + * follows:

+ *
+ *
[Stone x10] [Dirt x3] [Arrows x9] [Stone x32]
+ *
+ *

Calling poll(16) on this inventory will consume Stone + * from the Inventory (because the first stack contains stone), and + * will then consume the remaining 6 items from the 4th slot.

+ *

It is intended that this method is used in conjunction with a query + * which returns a set of slots containing a specific item type:

+ *
+ *
Optional<ItemStack> q = inv.query(ItemTypes.DIRT).poll(1);
+                         * 
+ *
+ */ + // @ts-ignore + poll(limit: number): java.util.Optional; + /** + * Gets without removing the first available stack from this Inventory. For + * the definition of 'available', see {@link #poll}. + */ + // @ts-ignore + peek(): java.util.Optional; + /** + * Uses the same semantics as {@link #poll(int)} but does not remove the + * items from the inventory. The {@link ItemStack} returned is thus a + * new ItemStack containing a copy of the items in inventory. Use + * this method only if you wish to determine whether a call to + * {@link #poll(int)} is likely to succeed. + */ + // @ts-ignore + peek(limit: number): java.util.Optional; + /** + * Try to put an ItemStack into this Inventory. Just like + * {@link Queue}, this method returns true if the Inventory + * accepted the stack and false if not, the size of the supplied stack is + * reduced by the number of items successfully consumed by the Inventory. + *

Unlike {@link #set}, this method's general contract does not permit + * items in the Inventory to be replaced. However trying to insert items + * that an Inventory cannot accept is not an error condition, the size of + * the supplied stack will simply not be reduced if no items are consumed by + * the Inventory.

+ */ + // @ts-ignore + offer(stack: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult; + /** + * Returns true if the entire stack can fit in this inventory. + *

If this returns {@code true} {@link #offer(ItemStack)} should always succeed.

+ */ + // @ts-ignore + canFit(stack: org.spongepowered.api.item.inventory.ItemStack): boolean; + /** + * Forcibly put the supplied stack into this inventory. Overwrites existing + * objects in the inventory as required to accommodate the entire stack. The + * entire stack is always consumed. + *

The general contract of this method is to prioritise insertion of the + * supplied items over items already in the Inventory. However the Inventory + * may still reject the supplied items if they are of an unsupported type + * for the target (for example trying to insert non-fuel items into a fuel + * slot) or if the number of items is larger than the total capacity of the + * inventory and not all items from the supplied stack can be consumed.

+ *

For {@link Slot}s, the supplied stack is generally consumed and the + * existing contents ejected (at the discretion of the target Inventory). + * For multi-slot inventories the insertion order is up to the target + * inventory to decide, and does not have to match the traversal order of + * the leaf nodes as supplied by {@link #slots()}, although this is + * generally recommended. Inventories should document their specific + * insertion logic where the insertion order differs from the traversal + * order.

+ *

Consumers should inspect the returned + * {@link InventoryTransactionResult} and act accordingly. Ejected items + * should generally be "thrown" into the world or deposited into another + * Inventory (depending on the operation in question. The supplied stack is + * not adjusted, any rejected items are returned in the operation result + * struct.

+ */ + // @ts-ignore + set(stack: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult; + /** + * Clears this inventory if it is clearable. + */ + // @ts-ignore + clear(): void; + /** + * The number of non-empty slots in the Inventory. Either 1 or 0 for + * {@link Slot}s and always 0 for {@link EmptyInventory}s. + */ + // @ts-ignore + size(): number; + /** + * Returns the number total number of individual items in this + * inventory. + *

This equivalent to counting up the stack sizes of all slots.

+ */ + // @ts-ignore + totalItems(): number; + /** + * The maximum number of stacks the Inventory can hold. Always 1 for + * {@link Slot}s and always 0 for {@link EmptyInventory}s. + */ + // @ts-ignore + capacity(): number; + /** + * Returns true if this Inventory contains children. If false, this does not + * imply that the Inventory accepts no items, and an Inventory is perfectly + * at liberty to provide {@link #peek}, {@link #poll}, {@link #offer} and + * {@link #set} semantics even if it has no internal storage of its own. + */ + // @ts-ignore + hasChildren(): boolean; + /** + * Checks whether the stacks quantity or more of given stack is + * contained in this Inventory. This is equivalent to calling + * !inv.query(stack).hasChildren(); To check if an + * inventory contains any amount use {@link #containsAny(ItemStack)}. + */ + // @ts-ignore + contains(stack: org.spongepowered.api.item.inventory.ItemStack): boolean; + /** + * Checks for whether there is a stack in this Inventory with the given + * ItemType. This is equivalent to calling !inv.query(stack) + * .hasChildren(); + */ + // @ts-ignore + contains(type: org.spongepowered.api.item.ItemType): boolean; + /** + * Checks whether the given stack is contained in this Inventory. + * The stack size is ignored. Note this will return true if any amount + * of the supplied stack is found. To check if an inventory contains at + * least an amount use {@link #contains(ItemStack)}. + */ + // @ts-ignore + containsAny(stack: org.spongepowered.api.item.inventory.ItemStack): boolean; + /** + * Returns the maximum size of any stack in this Inventory. + */ + // @ts-ignore + getMaxStackSize(): number; + /** + * Sets the maximum stack size of any stack in this ItemList. + */ + // @ts-ignore + setMaxStackSize(size: number): void; + /** + * Returns all properties matching the supplied type defined in + * this inventory for the specified (immediate) sub-inventory. If + * no matching properties are defined an empty collection is returned. + */ + // @ts-ignore + getProperties(child: org.spongepowered.api.item.inventory.Inventory, property: java.lang.Class): java.util.Collection; + /** + * Gets all properties of the specified type defined directly on this + * Inventory. For sub-inventories this is effectively the same as + * inv.getParent().getProperty(inv, property); but for + * top-level inventories may include properties defined on the inventory + * directly. + */ + // @ts-ignore + getProperties(property: java.lang.Class): java.util.Collection; + /** + * Gets the property with the specified key defined in this + * inventory for the specified (immediate) sub-inventory. + */ + // @ts-ignore + getProperty(child: org.spongepowered.api.item.inventory.Inventory, property: java.lang.Class, key: java.lang.Object): java.util.Optional; + /** + * Gets a property with the specified key defined directly on this Inventory + * if one is defined. For sub-inventories this is effectively the same as + * inv.getParent().getProperty(inv, property, key); but for + * top-level inventories may include properties defined on the inventory + * directly. + */ + // @ts-ignore + getProperty(property: java.lang.Class, key: java.lang.Object): java.util.Optional; + /** + * Gets the property with the default key defined in this + * inventory for the specified (immediate) sub-inventory. + */ + // @ts-ignore + getInventoryProperty(child: org.spongepowered.api.item.inventory.Inventory, property: java.lang.Class): java.util.Optional; + /** + * Gets a property with the default key defined directly on this Inventory + * if one is defined. For sub-inventories this is effectively the same as + * inv.getParent().getProperty(inv, property); but for + * top-level inventories may include properties defined on the inventory + * directly. + */ + // @ts-ignore + getInventoryProperty(property: java.lang.Class): java.util.Optional; + /** + * Query this inventory for inventories matching any of the supplied types. + * This is effectively an instanceof check against each child + * inventory. Logical OR is applied between operands. + */ + // @ts-ignore + query(types: java.lang.Class): org.spongepowered.api.item.inventory.Inventory; + /** + * Query this inventory for inventories containing any of the supplied item + * types. This query operates directly on {@link Slot} leaf nodes in the + * inventory and will always return a collection containing only + * {@link Slot} instances. Logical OR is applied between + * operands. + */ + // @ts-ignore + query(types: org.spongepowered.api.item.ItemType): org.spongepowered.api.item.inventory.Inventory; + /** + * Query this inventory for inventories containing stacks which match the + * supplied stack operand. This query operates directly on {@link Slot} + * leaf nodes in the inventory and will always return a collection + * containing only {@link Slot} instances. + * To query for stacks of any size use {@link #queryAny(ItemStack...)}. + */ + // @ts-ignore + query(types: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.inventory.Inventory; + /** + * Query this inventory for inventories which match any of the supplied + * properties. The equals method of each property is called on + * each child inventory which has the supplied property. Logical + * OR is applied between operands. This method is effectively + * the same as calling {@link #query} with an + * {@link org.spongepowered.api.data.Property.Operator} of + * {@link org.spongepowered.api.data.Property.Operator#EQUAL}. + */ + // @ts-ignore + query(props: org.spongepowered.api.item.inventory.InventoryProperty): org.spongepowered.api.item.inventory.Inventory; + /** + * Query this inventory for inventories matching any of the supplied titles. + * Logical OR is applied between operands. + */ + // @ts-ignore + query(names: org.spongepowered.api.text.translation.Translation): org.spongepowered.api.item.inventory.Inventory; + /** + *

Query this inventory by dynamically inspecting each operand. Each + * operand in turn is checked for a match against the other query methods, + * and if a matching method is found the query is performed using the + * operand. This is repeated until all operands are consumed and allows a + * union of multiple query types to be aggregated into a single view.

+ *

For operands with no matching type, the behaviour is determined by the + * individual inventory. A naive match may be obtained by calling .equals() + * against the child inventory passing the unknown operand as an argument. + *

+ */ + // @ts-ignore + query(args: java.lang.Object): org.spongepowered.api.item.inventory.Inventory; + /** + * Query this inventory for inventories containing any stacks which match + * the supplied stack operands ignoring its quantity. This query operates + * directly on {@link Slot} leaf nodes in the inventory and will always + * return a collection containing only {@link Slot} instances. Logical + * OR is applied between operands. + * This ignores stack sizes. To query for stacks of a specific size use + * {@link #query(ItemStack...)}. + */ + // @ts-ignore + queryAny(types: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.inventory.Inventory; + /** + * Query this inventory for inventories matching any of the supplied + * queries. Logical OR is applied between operands. + */ + // @ts-ignore + query(operations: org.spongepowered.api.item.inventory.query.QueryOperation): org.spongepowered.api.item.inventory.Inventory; + /** + * Returns the {@link PluginContainer} who built this inventory. + */ + // @ts-ignore + getPlugin(): org.spongepowered.api.plugin.PluginContainer; + /** + * Creates an {@link InventoryArchetype} based on this {@link Inventory}. + */ + // @ts-ignore + getArchetype(): org.spongepowered.api.item.inventory.InventoryArchetype; + /** + * Intersects the slots of both inventories. + * The resulting inventory will only contain slots + * that are present in both inventories. + */ + // @ts-ignore + intersect(inventory: org.spongepowered.api.item.inventory.Inventory): org.spongepowered.api.item.inventory.Inventory; + /** + * Constructs a union of the slots in both inventories. + *

The resulting inventory will contain all slots from + * both inventories.

+ *

The slots of this inventory are ordered before the slots of the + * given inventory.

+ *

If the same slot is contained in both inventories the duplicate + * in the second one is removed.

+ */ + // @ts-ignore + union(inventory: org.spongepowered.api.item.inventory.Inventory): org.spongepowered.api.item.inventory.Inventory; + /** + * Returns true if the given inventory is a descendant of this one. + * This method will check for deeply nested inventories but + * will only return true if the entire inventory structure is contained. + * This means that e.g. for a query result of multiple slots the + * inventory will not return true even if all slots are contained. + * If you want to check if all slots of an inventory are contained in + * another one use {@link #intersect(Inventory)} instead. + *

+ * You can use this if you want to check if a single Slot is contained + * in an inventory or an entire row is contained in a Grid. + *

+ */ + // @ts-ignore + containsInventory(inventory: org.spongepowered.api.item.inventory.Inventory): boolean; + /** + * Transforms this inventory using the given transformation. + */ + // @ts-ignore + transform(transformation: org.spongepowered.api.item.inventory.InventoryTransformation): org.spongepowered.api.item.inventory.Inventory; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.InventoryArchetype.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.InventoryArchetype.Builder.d.ts new file mode 100644 index 00000000..a2ac6e9d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.InventoryArchetype.Builder.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace InventoryArchetype { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Adds a {@link InventoryTitle} to this Archetype. + */ + // @ts-ignore + title(title: org.spongepowered.api.text.translation.Translation): org.spongepowered.api.item.inventory.InventoryArchetype.Builder; + /** + * Adds a {@link InventoryTitle} to this Archetype. + */ + // @ts-ignore + title(title: org.spongepowered.api.text.Text): org.spongepowered.api.item.inventory.InventoryArchetype.Builder; + /** + * Adds an {@link InventoryProperty} to this Archetype. + */ + // @ts-ignore + property(property: org.spongepowered.api.item.inventory.InventoryProperty): org.spongepowered.api.item.inventory.InventoryArchetype.Builder; + /** + * Adds an {@link InventoryArchetype} to this Archetype. + */ + // @ts-ignore + with(archetype: org.spongepowered.api.item.inventory.InventoryArchetype): org.spongepowered.api.item.inventory.InventoryArchetype.Builder; + /** + * Adds multiple {@link InventoryArchetype} to this Archetype. + */ + // @ts-ignore + with(archetypes: org.spongepowered.api.item.inventory.InventoryArchetype): org.spongepowered.api.item.inventory.InventoryArchetype.Builder; + /** + * Registers the InventoryArchetype. + */ + // @ts-ignore + build(id: string, name: string): org.spongepowered.api.item.inventory.InventoryArchetype; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.InventoryArchetype.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.InventoryArchetype.d.ts new file mode 100644 index 00000000..9bac02b9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.InventoryArchetype.d.ts @@ -0,0 +1,44 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + // @ts-ignore + interface InventoryArchetype extends org.spongepowered.api.CatalogType { + /** + * Creates a new {@link Builder} to build an {@link InventoryArchetype}. + */ + // @ts-ignore + builder(): org.spongepowered.api.item.inventory.InventoryArchetype.Builder; + /** + * Gets all child InventoryArchetypes. + */ + // @ts-ignore + getChildArchetypes(): java.util.List; + /** + * Returns all properties defined on this Archetype. + */ + // @ts-ignore + getProperties(): java.util.Map; + /** + * Returns the Property with given key. + */ + // @ts-ignore + getProperty(key: string): java.util.Optional; + /** + * Returns the property with the Properties default key. + */ + // @ts-ignore + getProperty(type: java.lang.Class): java.util.Optional; + /** + * Returns the property + */ + // @ts-ignore + getProperty(type: java.lang.Class, key: string): java.util.Optional; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.InventoryArchetypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.InventoryArchetypes.d.ts new file mode 100644 index 00000000..7b0384cd --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.InventoryArchetypes.d.ts @@ -0,0 +1,68 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + // @ts-ignore + class InventoryArchetypes extends java.lang.Object { + /** + * You should not be using this constructor, it will be made private in + * API 8. + */ + // @ts-ignore + constructor() + // @ts-ignore + public static SLOT: org.spongepowered.api.item.inventory.InventoryArchetype; + // @ts-ignore + public static MENU_ROW: org.spongepowered.api.item.inventory.InventoryArchetype; + // @ts-ignore + public static MENU_GRID: org.spongepowered.api.item.inventory.InventoryArchetype; + // @ts-ignore + public static MENU_COLUMN: org.spongepowered.api.item.inventory.InventoryArchetype; + // @ts-ignore + public static MENU_BUTTON: org.spongepowered.api.item.inventory.InventoryArchetype; + // @ts-ignore + public static MENU_ICON: org.spongepowered.api.item.inventory.InventoryArchetype; + // @ts-ignore + public static MENU_CHECKBOX: org.spongepowered.api.item.inventory.InventoryArchetype; + // @ts-ignore + public static MENU_SPINNER: org.spongepowered.api.item.inventory.InventoryArchetype; + // @ts-ignore + public static CRAFTING: org.spongepowered.api.item.inventory.InventoryArchetype; + // @ts-ignore + public static CHEST: org.spongepowered.api.item.inventory.InventoryArchetype; + // @ts-ignore + public static DOUBLE_CHEST: org.spongepowered.api.item.inventory.InventoryArchetype; + // @ts-ignore + public static HOPPER: org.spongepowered.api.item.inventory.InventoryArchetype; + // @ts-ignore + public static DISPENSER: org.spongepowered.api.item.inventory.InventoryArchetype; + // @ts-ignore + public static WORKBENCH: org.spongepowered.api.item.inventory.InventoryArchetype; + // @ts-ignore + public static FURNACE: org.spongepowered.api.item.inventory.InventoryArchetype; + // @ts-ignore + public static ENCHANTING_TABLE: org.spongepowered.api.item.inventory.InventoryArchetype; + // @ts-ignore + public static ANVIL: org.spongepowered.api.item.inventory.InventoryArchetype; + // @ts-ignore + public static BREWING_STAND: org.spongepowered.api.item.inventory.InventoryArchetype; + // @ts-ignore + public static BEACON: org.spongepowered.api.item.inventory.InventoryArchetype; + // @ts-ignore + public static HORSE: org.spongepowered.api.item.inventory.InventoryArchetype; + // @ts-ignore + public static VILLAGER: org.spongepowered.api.item.inventory.InventoryArchetype; + // @ts-ignore + public static HORSE_WITH_CHEST: org.spongepowered.api.item.inventory.InventoryArchetype; + // @ts-ignore + public static PLAYER: org.spongepowered.api.item.inventory.InventoryArchetype; + // @ts-ignore + public static UNKNOWN: org.spongepowered.api.item.inventory.InventoryArchetype; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.InventoryProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.InventoryProperty.d.ts new file mode 100644 index 00000000..8b303ae5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.InventoryProperty.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + // @ts-ignore + interface InventoryProperty extends org.spongepowered.api.data.Property { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.InventoryTransformation.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.InventoryTransformation.Builder.d.ts new file mode 100644 index 00000000..3a89f218 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.InventoryTransformation.Builder.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace InventoryTransformation { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Appends one or more {@link QueryOperation}s + */ + // @ts-ignore + append(operation: org.spongepowered.api.item.inventory.query.QueryOperation): org.spongepowered.api.item.inventory.InventoryTransformation.Builder; + /** + * Builds the transformation + */ + // @ts-ignore + build(): org.spongepowered.api.item.inventory.InventoryTransformation; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.InventoryTransformation.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.InventoryTransformation.d.ts new file mode 100644 index 00000000..02edb032 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.InventoryTransformation.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + // @ts-ignore + interface InventoryTransformation { + /** + * Transforms an Inventory + */ + // @ts-ignore + transform(inventory: org.spongepowered.api.item.inventory.Inventory): org.spongepowered.api.item.inventory.Inventory; + // @ts-ignore + builder(): org.spongepowered.api.item.inventory.InventoryTransformation.Builder; + /** + * Creates a new transformation based on QueryOperations. + */ + // @ts-ignore + of(operations: org.spongepowered.api.item.inventory.query.QueryOperation): org.spongepowered.api.item.inventory.InventoryTransformation; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.InventoryTransformations.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.InventoryTransformations.d.ts new file mode 100644 index 00000000..fe8c1206 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.InventoryTransformations.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + // @ts-ignore + class InventoryTransformations extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static PLAYER_MAIN_HOTBAR_FIRST: org.spongepowered.api.item.inventory.InventoryTransformation; + // @ts-ignore + public static REVERSE: org.spongepowered.api.item.inventory.InventoryTransformation; + // @ts-ignore + public static NO_OP: org.spongepowered.api.item.inventory.InventoryTransformation; + // @ts-ignore + public static EMPTY: org.spongepowered.api.item.inventory.InventoryTransformation; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.ItemStack.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.ItemStack.Builder.d.ts new file mode 100644 index 00000000..8c67a8ae --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.ItemStack.Builder.d.ts @@ -0,0 +1,100 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace ItemStack { + // @ts-ignore + interface Builder extends org.spongepowered.api.data.persistence.DataBuilder { + // @ts-ignore + from(value: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.inventory.ItemStack.Builder; + /** + * Sets the {@link ItemType} of the item stack. + */ + // @ts-ignore + itemType(itemType: org.spongepowered.api.item.ItemType): org.spongepowered.api.item.inventory.ItemStack.Builder; + // @ts-ignore + getCurrentItem(): org.spongepowered.api.item.ItemType; + /** + * Sets the quantity of the item stack. + */ + // @ts-ignore + quantity(quantity: number): org.spongepowered.api.item.inventory.ItemStack.Builder; + /** + * Adds a {@link Key} and related {@link Object} value to apply to the + * resulting {@link ItemStack}. Note that the resulting + * {@link ItemStack} may not actually accept the provided {@code Key} + * for various reasons due to support or simply that the value itself + * is not supported. Offering custom data is not supported through this, + * use {@link #itemData(DataManipulator)} instead. + */ + // @ts-ignore + keyValue(key: org.spongepowered.api.data.key.Key, value: java.lang.Object): org.spongepowered.api.item.inventory.ItemStack.Builder; + /** + * Sets the {@link DataManipulator} to add to the {@link ItemStack}. + */ + // @ts-ignore + itemData(itemData: org.spongepowered.api.data.manipulator.DataManipulator): org.spongepowered.api.item.inventory.ItemStack.Builder; + /** + * Sets the {@link ImmutableDataManipulator} to add to the + * {@link ItemStack}. + */ + // @ts-ignore + itemData(itemData: org.spongepowered.api.data.manipulator.ImmutableDataManipulator): org.spongepowered.api.item.inventory.ItemStack.Builder; + /** + * Adds a {@link Key} and related {@link Object} value to apply to the + * resulting {@link ItemStack}. Note that the resulting + * {@link ItemStack} may not actually accept the provided {@code Key} + * for various reasons due to support or simply that the value itself + * is not supported. Offering custom data is not supported through this, + * use {@link #itemData(DataManipulator)} instead. + */ + // @ts-ignore + add(key: org.spongepowered.api.data.key.Key, value: java.lang.Object): org.spongepowered.api.item.inventory.ItemStack.Builder; + /** + * Sets all the settings in this builder from the item stack blueprint. + */ + // @ts-ignore + fromItemStack(itemStack: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.inventory.ItemStack.Builder; + /** + * Sets the data to recreate a {@link BlockState} in a held {@link ItemStack} + * state. + */ + // @ts-ignore + fromBlockState(blockState: org.spongepowered.api.block.BlockState): org.spongepowered.api.item.inventory.ItemStack.Builder; + /** + * Attempts to reconstruct the builder with all of the data from + * {@link ItemStack#toContainer()} including all custom data. + */ + // @ts-ignore + fromContainer(container: org.spongepowered.api.data.DataView): org.spongepowered.api.item.inventory.ItemStack.Builder; + /** + * Reconstructs this builder to use the {@link ItemStackSnapshot} + * for all the values and data it may contain. + */ + // @ts-ignore + fromSnapshot(snapshot: org.spongepowered.api.item.inventory.ItemStackSnapshot): org.spongepowered.api.item.inventory.ItemStack.Builder; + /** + * Attempts to reconstruct a {@link BlockSnapshot} including all data + * and {@link TileEntity} related data if necessary for creating an + * {@link ItemStack} representation. + */ + // @ts-ignore + fromBlockSnapshot(blockSnapshot: org.spongepowered.api.block.BlockSnapshot): org.spongepowered.api.item.inventory.ItemStack.Builder; + // @ts-ignore + remove(manipulatorClass: java.lang.Class): org.spongepowered.api.item.inventory.ItemStack.Builder; + // @ts-ignore + apply(predicate: java.util.function$.Predicate, consumer: java.util.function$.Consumer): org.spongepowered.api.item.inventory.ItemStack.Builder; + /** + * Builds an instance of an ItemStack. + */ + // @ts-ignore + build(): org.spongepowered.api.item.inventory.ItemStack; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.ItemStack.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.ItemStack.d.ts new file mode 100644 index 00000000..5138ae5a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.ItemStack.d.ts @@ -0,0 +1,90 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + // @ts-ignore + interface ItemStack extends org.spongepowered.api.data.DataHolder, org.spongepowered.api.text.translation.Translatable { + /** + * Creates a new {@link Builder} to build an {@link ItemStack}. + */ + // @ts-ignore + builder(): org.spongepowered.api.item.inventory.ItemStack.Builder; + /** + * Creates a new {@link ItemStack} of the provided {@link ItemType} + * and quantity. + */ + // @ts-ignore + of(itemType: org.spongepowered.api.item.ItemType, quantity: number): org.spongepowered.api.item.inventory.ItemStack; + /** + * Creates a new {@link ItemStack} of the provided {@link ItemType} and quantity of 1 + */ + // @ts-ignore + of(itemType: org.spongepowered.api.item.ItemType): org.spongepowered.api.item.inventory.ItemStack; + /** + * Returns an empty {@link ItemStack}. + */ + // @ts-ignore + empty(): org.spongepowered.api.item.inventory.ItemStack; + /** + * Gets the {@link ItemType} of this {@link ItemStack}. + */ + // @ts-ignore + getItem(): org.spongepowered.api.item.ItemType; + /** + * Gets the {@link ItemType} of this {@link ItemStack}. + */ + // @ts-ignore + getType(): org.spongepowered.api.item.ItemType; + /** + * Gets the quantity of items in this stack. This may exceed the max stack + * size of the item, and if added to an inventory will then be divided by + * the max stack. + */ + // @ts-ignore + getQuantity(): number; + /** + * Sets the quantity in this stack. + */ + // @ts-ignore + setQuantity(quantity: number): void; + /** + * Gets the maximum quantity per stack. By default, returns + * {@link ItemType#getMaxStackQuantity()}, unless a + * different value has been set for this specific stack. + */ + // @ts-ignore + getMaxStackQuantity(): number; + /** + * Gets the {@link ItemStackSnapshot} of this {@link ItemStack}. All known + * {@link DataManipulator}s existing on this {@link ItemStack} are added + * as copies to the {@link ItemStackSnapshot}. + */ + // @ts-ignore + createSnapshot(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + /** + * Returns true if the specified {@link ItemStack} has the same stack + * size, {@link ItemType}, and data. Note that this method is not an + * overrider of {@link Object#equals(Object)} in order to maintain + * compatibility with the base game. Therefore, ItemStacks may not behave + * as expected when using them in equality based constructs such as + * {@link Map}s or {@link Set}s. + */ + // @ts-ignore + equalTo(that: org.spongepowered.api.item.inventory.ItemStack): boolean; + /** + * Returns true if {@link #getQuantity()} is zero and therefore this + * ItemStack is empty. + *

In Vanilla empty ItemStacks are not rendered by the client.

+ */ + // @ts-ignore + isEmpty(): boolean; + // @ts-ignore + copy(): org.spongepowered.api.item.inventory.ItemStack; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.ItemStackBuilderPopulators.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.ItemStackBuilderPopulators.d.ts new file mode 100644 index 00000000..b0d76fec --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.ItemStackBuilderPopulators.d.ts @@ -0,0 +1,271 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + // @ts-ignore + class ItemStackBuilderPopulators extends java.lang.Object { + /** + * Creates a new {@link BiConsumer} to set the {@link ItemStack.Builder} + * to use the provided {@link ItemStackSnapshot} as a "default". Note + * that the normal behavior of the builder is to reset according to + * the snapshot. + */ + // @ts-ignore + public static itemStack(snapshot: org.spongepowered.api.item.inventory.ItemStackSnapshot): java.util.function$.BiConsumer; + /** + * Creates a new {@link BiConsumer} that uses a randomized selection + * of the provided {@link ItemStackSnapshot}s. The builder, when called will + * only use one at random selection to default to. + */ + // @ts-ignore + public static itemStacks(snapshot: org.spongepowered.api.item.inventory.ItemStackSnapshot, snapshots: org.spongepowered.api.item.inventory.ItemStackSnapshot): java.util.function$.BiConsumer; + /** + * Creates a new {@link BiConsumer} that defines the provided + * {@link ItemType}. + */ + // @ts-ignore + public static item(itemType: org.spongepowered.api.item.ItemType): java.util.function$.BiConsumer; + /** + * Creates a new {@link BiConsumer} that defines the provided + * {@link ItemType}, provided that the {@link Supplier} does not + * return null. + *

Note that the {@link Supplier} is not queried for an + * {@link ItemType} until the generated {@link BiConsumer} is + * called.

+ */ + // @ts-ignore + public static item(supplier: java.util.function$.Supplier): java.util.function$.BiConsumer; + /** + * Creates a new {@link BiConsumer} that provides a random + * {@link ItemType} of the provided item types. + *

Note that the desired {@link ItemType} given to the builder is only + * defined at the time of calling {@link BiConsumer#accept(Object, Object)}. + *

+ */ + // @ts-ignore + public static items(itemType: org.spongepowered.api.item.ItemType, itemTypes: org.spongepowered.api.item.ItemType): java.util.function$.BiConsumer; + /** + * Creates a new {@link BiConsumer} that provides a random + * {@link ItemType} from the provided collection of item types. + */ + // @ts-ignore + public static items(itemTypes: java.util.Collection): java.util.function$.BiConsumer; + /** + * Creates a new {@link BiConsumer} that sets the desired quantity + * for creating an {@link ItemStack}. + *

Note that the default behavior of the item stack builder is still + * expected to take place. Negative values are not allowed.

+ */ + // @ts-ignore + public static quantity(amount: org.spongepowered.api.util.weighted.VariableAmount): java.util.function$.BiConsumer; + /** + * Creates a new {@link BiConsumer} that sets the desired quantity + * for creating an {@link ItemStack}. The supplier is not queried for + * a {@link VariableAmount} until the generated bi consumer is + * called on. + *

Note that the default behavior of an item stack builder is still + * expected to take place. Negative values are not allowed.

+ */ + // @ts-ignore + public static quantity(supplier: java.util.function$.Supplier): java.util.function$.BiConsumer; + /** + * Creates a new {@link BiConsumer} that sets the provided {@link Key}'ed + * object where the value is possibly ignored or not supported. No checks + * on whether the key or object is supported until called upon. + *

Note that custom data is not supported through this method, use + * {@link #data(Collection)} or any variant thereof for applying custom data.

+ */ + // @ts-ignore + public static keyValue(key: org.spongepowered.api.data.key.Key, value: java.lang.Object): java.util.function$.BiConsumer; + /** + * Creates a new {@link BiConsumer} that sets a single provided + * value with the provided {@link Key}. Only a single value is chosen + * to provide to the itemstack builder. + *

Note that custom data is not supported through this method, use + * {@link #data(Collection)} or any variant thereof for applying custom data.

+ */ + // @ts-ignore + public static keyValues(key: org.spongepowered.api.data.key.Key, values: java.lang.Iterable): java.util.function$.BiConsumer; + /** + * Creates a new {@link BiConsumer} where the {@link Key} is responsible + * for a {@link List} based {@link Value}. Given that the provided elements + * are chosen with a {@link Random}, it's not clear that the elements will + * be added in bundles or in the same iteration order. + *

Note that custom data is not supported through this method, use + * {@link #data(Collection)} or any variant thereof for applying custom data.

+ */ + // @ts-ignore + public static listValues(key: org.spongepowered.api.data.key.Key, elementPool: java.util.List, amount: org.spongepowered.api.util.weighted.VariableAmount): java.util.function$.BiConsumer; + /** + * Creates a new {@link BiConsumer} where the {@link Key} is responsible + * for a {@link List} based {@link Value}. Given that the provided elements + * are chosen with a {@link Random}, it's not clear that the elements will + * be added in bundles or in the same iteration order. The default variance + * is provided as {@link VariableAmount#baseWithRandomAddition(double, double)} + * where at the least, a single element is chosen, and at most the entire + * collection is chosen. + *

Note that custom data is not supported through this method, use + * {@link #data(Collection)} or any variant thereof for applying custom data.

+ */ + // @ts-ignore + public static listValues(key: org.spongepowered.api.data.key.Key, elementPool: java.util.List): java.util.function$.BiConsumer; + /** + * Creates a new {@link BiConsumer} where the {@link Key} is responsible + * for a {@link List} based {@link Value}. Given the {@link WeightedTable} + * is already generated, the values requested are only retrieved when + * the generated biconsumer is called upon. + *

Note that custom data is not supported through this method, use + * {@link #data(Collection)} or any variant thereof for applying custom data.

+ */ + // @ts-ignore + public static listValues(key: org.spongepowered.api.data.key.Key, weightedTable: org.spongepowered.api.util.weighted.WeightedTable): java.util.function$.BiConsumer; + /** + * Creates a new {@link BiConsumer} where the {@link Key} is responsible + * for a {@link List} based {@link Value}. Given the + * {@link WeightedTable} is exclusively used with {@link Function}s, + * the {@link Function}s themselves are queried with a {@link Random} + * and expected to present a singular element of the defined type. It's + * expected that there are multiple functions to provide additional + * elements for a particular key'ed {@link ListValue}. + *

An example usage of this can be for generating a randomized list + * of {@link Enchantment}s with varying enchantment levels.

+ *

Note that custom data is not supported through this method, use + * {@link #data(Collection)} or any variant thereof for applying custom data.

+ */ + // @ts-ignore + public static listValueSuppliers(key: org.spongepowered.api.data.key.Key, weightedTable: org.spongepowered.api.util.weighted.WeightedTable): java.util.function$.BiConsumer; + /** + * Creates a new {@link BiConsumer} where the {@link Key} is responsible + * for a {@link Set} based {@link Value}. Given the {@link Set} of element + * to act as a pool, the consumer will pull a random amount of the + * given pool and apply it as a new {@link Set}. + *

Note that custom data is not supported through this method, use + * {@link #data(Collection)} or any variant thereof for applying custom data.

+ */ + // @ts-ignore + public static setValues(key: org.spongepowered.api.data.key.Key, elementPool: java.util.Set): java.util.function$.BiConsumer; + /** + * Creates a new {@link BiConsumer} where the {@link Key} is responsible + * for a {@link Set} based {@link Value}. Given the {@link Set} of + * elements to act as a pool, the consumer will pull a variable amount + * based on the provided {@link VariableAmount}, and apply it as a new + * {@link Set}. + *

Note that custom data is not supported through this method, use + * {@link #data(Collection)} or any variant thereof for applying custom data.

+ */ + // @ts-ignore + public static setValues(key: org.spongepowered.api.data.key.Key, elementPool: java.util.Set, amount: org.spongepowered.api.util.weighted.VariableAmount): java.util.function$.BiConsumer; + /** + * Creates a new {@link BiConsumer} where the {@link Key} is + * responsible for a {@link Set} based {@link Value}. Given + * the provided {@link WeightedTable}, the consumer will retrieve + * a {@link List} of values and add them as a new {@link Set}. + *

Note that custom data is not supported through this method, use + * {@link #data(Collection)} or any variant thereof for applying custom data.

+ */ + // @ts-ignore + public static setValues(key: org.spongepowered.api.data.key.Key, weightedTable: org.spongepowered.api.util.weighted.WeightedTable): java.util.function$.BiConsumer; + /** + * Creates a new {@link BiConsumer} that applies the provided {@link Value} + * to the generated {@link ItemStack}. + *

Note that custom data is not supported through this method, use + * {@link #data(Collection)} or any variant thereof for applying custom data.

+ */ + // @ts-ignore + public static value(value: org.spongepowered.api.data.value.BaseValue): java.util.function$.BiConsumer; + /** + * Creates a new {@link BiConsumer} that applies a random selection of the + * provided {@link BaseValue}s. + *

Note that custom data is not supported through this method, use + * {@link #data(Collection)} or any variant thereof for applying custom data.

+ */ + // @ts-ignore + public static values(values: java.lang.Iterable): java.util.function$.BiConsumer; + /** + * Creates a new {@link BiConsumer} that sets a particular + * {@link DataManipulator} onto an {@link ItemStack}. Note + * that no validation can be performed, however the builder + * will ignore unsupported data. This can be used to provide + * custom data manipulators. + */ + // @ts-ignore + public static data(manipulator: org.spongepowered.api.data.manipulator.DataManipulator): java.util.function$.BiConsumer; + /** + * Creates a new {@link BiConsumer} that sets a single + * {@link DataManipulator} form the provided collection of manipulators. + * Note that no validation can be performed, however the builder will + * ignore unsupported data. This can be used to provide custom data + * manipulators. To apply multiple manipulators, use + * {@link #data(Collection, VariableAmount)}. + */ + // @ts-ignore + public static data(manipulators: java.util.Collection): java.util.function$.BiConsumer; + /** + * Creates a new {@link BiConsumer} that provides a {@link VariableAmount} + * of {@link DataManipulator}s from the provided pool. Note that no + * validation can be performed, however the builder will ignore unsupported + * data. This can be used to provide custom data manipulators. + */ + // @ts-ignore + public static data(manipulators: java.util.Collection, rolls: org.spongepowered.api.util.weighted.VariableAmount): java.util.function$.BiConsumer; + /** + * Creates a new {@link BiConsumer} that provides a variable + * amount of {@link DataManipulator}s from the provided + * {@link WeightedTable}. Note that no validation can be performed, however + * the builder will ignore unsupported data. This can be used to provide + * custom data manipulators. + */ + // @ts-ignore + public static data(weightedTable: org.spongepowered.api.util.weighted.WeightedTable): java.util.function$.BiConsumer; + /** + * Creates a new {@link BiConsumer} that takes the provided + * {@link EnchantmentType} and applies it to the generated {@link ItemStack}. + * The enchantmentType level is varied based on vanilla mechanics. + */ + // @ts-ignore + public static enchantment(enchantmentType: org.spongepowered.api.item.enchantment.EnchantmentType): java.util.function$.BiConsumer; + /** + * Creates a new {@link BiConsumer} that takes the provided + * {@link EnchantmentType} and applies it to the generated {@link ItemStack}. + * The enchantmentType level is defined by the variable amount provided. + */ + // @ts-ignore + public static enchantment(level: org.spongepowered.api.util.weighted.VariableAmount, enchantmentType: org.spongepowered.api.item.enchantment.EnchantmentType): java.util.function$.BiConsumer; + /** + * Creates a new {@link BiConsumer} that takes the provided + * {@link Collection} of {@link EnchantmentType}s and applies a + * singular {@link EnchantmentType} with varying levels to the generated + * {@link ItemStack}. + */ + // @ts-ignore + public static enchantmentsWithVanillaLevelVariance(enchantmentTypes: java.util.Collection): java.util.function$.BiConsumer; + /** + * Creates a new {@link BiConsumer} that takes the provided + * {@link EnchantmentType}s and applies a variable amount of enchantmentTypes + * with varying levels to the generated {@link ItemStack}. + */ + // @ts-ignore + public static enchantmentsWithVanillaLevelVariance(amount: org.spongepowered.api.util.weighted.VariableAmount, enchantmentType: org.spongepowered.api.item.enchantment.EnchantmentType, enchantmentTypes: org.spongepowered.api.item.enchantment.EnchantmentType): java.util.function$.BiConsumer; + /** + * Creates a new {@link BiConsumer} that takes the provided + * {@link Collection} of {@link EnchantmentType}s and applies a varying amount + * of generated enchantments to the generated {@link ItemStack}. + */ + // @ts-ignore + public static enchantmentsWithVanillaLevelVariance(amount: org.spongepowered.api.util.weighted.VariableAmount, itemEnchantmentTypes: java.util.Collection): java.util.function$.BiConsumer; + /** + * Creates a new {@link BiConsumer} that takes the provided + * {@link Collection} of coupled {@link EnchantmentType} and + * {@link VariableAmount} to apply varying enchantments of varying amounts + * to the generated {@link ItemStack}. + */ + // @ts-ignore + public static enchantments(amount: org.spongepowered.api.util.weighted.VariableAmount, enchantments: java.util.Collection): java.util.function$.BiConsumer; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.ItemStackComparators.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.ItemStackComparators.d.ts new file mode 100644 index 00000000..05e371bd --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.ItemStackComparators.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + // @ts-ignore + class ItemStackComparators extends java.lang.Object { + // @ts-ignore + public static TYPE: java.util.Comparator; + // @ts-ignore + public static SIZE: java.util.Comparator; + // @ts-ignore + public static TYPE_SIZE: java.util.Comparator; + // @ts-ignore + public static DEFAULT: java.util.Comparator; + // @ts-ignore + public static PROPERTIES: java.util.Comparator; + // @ts-ignore + public static ITEM_DATA: java.util.Comparator; + // @ts-ignore + public static ITEM_DATA_IGNORE_DAMAGE: java.util.Comparator; + // @ts-ignore + public static IGNORE_SIZE: java.util.Comparator; + // @ts-ignore + public static ALL: java.util.Comparator; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.ItemStackGenerator.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.ItemStackGenerator.Builder.d.ts new file mode 100644 index 00000000..26f54c5c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.ItemStackGenerator.Builder.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace ItemStackGenerator { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Adds a new biconsumer in the current order. + */ + // @ts-ignore + add(consumer: java.util.function$.BiConsumer): org.spongepowered.api.item.inventory.ItemStackGenerator.Builder; + /** + * Adds all the provided biconsumers from the provided collection. + */ + // @ts-ignore + addAll(collection: java.util.Collection): org.spongepowered.api.item.inventory.ItemStackGenerator.Builder; + /** + * Sets the base {@link ItemType} for the {@link ItemStackGenerator}. A + * base type must be set to avoid issues. + */ + // @ts-ignore + baseItem(itemType: org.spongepowered.api.item.ItemType): org.spongepowered.api.item.inventory.ItemStackGenerator.Builder; + /** + * Creates a new {@link ItemStackGenerator} with all of the added + * {@link BiConsumer}s. + */ + // @ts-ignore + build(): org.spongepowered.api.item.inventory.ItemStackGenerator; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.ItemStackGenerator.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.ItemStackGenerator.d.ts new file mode 100644 index 00000000..8893ad63 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.ItemStackGenerator.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + // @ts-ignore + interface ItemStackGenerator { + /** + * Creates a new builder to build an {@link ItemStackGenerator}. + */ + // @ts-ignore + builder(): org.spongepowered.api.item.inventory.ItemStackGenerator.Builder; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.ItemStackSnapshot.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.ItemStackSnapshot.d.ts new file mode 100644 index 00000000..578a1ea2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.ItemStackSnapshot.d.ts @@ -0,0 +1,54 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + // @ts-ignore + interface ItemStackSnapshot extends org.spongepowered.api.data.ImmutableDataHolder, org.spongepowered.api.text.translation.Translatable { + // @ts-ignore + NONE: org.spongepowered.api.item.inventory.ItemStackSnapshot; + /** + * Gets the {@link ItemType} of this {@link ItemStackSnapshot}. The + * {@link ItemType} is always available. + */ + // @ts-ignore + getType(): org.spongepowered.api.item.ItemType; + /** + * Gets the current stack size count of the {@link ItemStack} this + * {@link ItemStackSnapshot} is representing. + */ + // @ts-ignore + getCount(): number; + /** + * Gets the quantity of items in this the {@link ItemStack} this + * {@link ItemStackSnapshot} is representing. + */ + // @ts-ignore + getQuantity(): number; + /** + * Returns true if {@link #getQuantity()} is zero and therefore this + * ItemStackSnapshot is empty. + */ + // @ts-ignore + isEmpty(): boolean; + /** + * Creates a new {@link ItemStack} with all the data currently available + * on this {@link ItemStackSnapshot}. + */ + // @ts-ignore + createStack(): org.spongepowered.api.item.inventory.ItemStack; + /** + * Creates a {@link org.spongepowered.api.GameDictionary.Entry} that + * compares stacks to this {@link ItemStackSnapshot}. Note that not all + * data stored in this {@link ItemStackSnapshot} may be stored in the + * returned entry. + */ + // @ts-ignore + createGameDictionaryEntry(): org.spongepowered.api.GameDictionary.Entry; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.MultiBlockCarrier.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.MultiBlockCarrier.d.ts new file mode 100644 index 00000000..222f0ca0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.MultiBlockCarrier.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + // @ts-ignore + interface MultiBlockCarrier extends org.spongepowered.api.item.inventory.BlockCarrier { + /** + * Returns the Locations of the Blocks. + */ + // @ts-ignore + getLocations(): java.util.List; + /** + * Returns the Inventory at given location if owned by this Carrier. + */ + // @ts-ignore + getInventory(at: org.spongepowered.api.world.Location): java.util.Optional; + /** + * Returns the Inventory at given location if owned by this Carrier and + * accessible from given direction. + *

e.g. A Furnace accessed from {@link Direction#DOWN} will return + * its Fuel Slot

+ */ + // @ts-ignore + getInventory(at: org.spongepowered.api.world.Location, from: org.spongepowered.api.util.Direction): java.util.Optional; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.SingleBlockCarrier.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.SingleBlockCarrier.d.ts new file mode 100644 index 00000000..b0fb0f30 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.SingleBlockCarrier.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + // @ts-ignore + interface SingleBlockCarrier extends org.spongepowered.api.item.inventory.BlockCarrier { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.Slot.Type.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.Slot.Type.d.ts new file mode 100644 index 00000000..99687f55 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.Slot.Type.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace Slot { + // @ts-ignore + class Type extends java.lang.Enum { + // @ts-ignore + public static INVENTORY: org.spongepowered.api.item.inventory.Slot.Type; + // @ts-ignore + public static values(): org.spongepowered.api.item.inventory.Slot.Type[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.item.inventory.Slot.Type; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.Slot.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.Slot.d.ts new file mode 100644 index 00000000..d78fb350 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.Slot.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + // @ts-ignore + interface Slot extends org.spongepowered.api.item.inventory.Inventory { + /** + * Gets the size of the stack in this slot. Essentially the same as calling + * slot.peek().getQuantity(); but faster because it avoids the Optional + * boxing. + */ + // @ts-ignore + getStackSize(): number; + /** + * Transforms this Slot into given Type. + *
+ *
Example
+ *
In a InventoryEvent with a Container to get the actual inventory + * from Slot, you may call this with {@link Type#INVENTORY}.
+ *
+ */ + // @ts-ignore + transform(type: org.spongepowered.api.item.inventory.Slot.Type): org.spongepowered.api.item.inventory.Slot; + /** + * Transforms this Slot into the default Type. + */ + // @ts-ignore + transform(): org.spongepowered.api.item.inventory.Slot; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.crafting.CraftingGridInventory.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.crafting.CraftingGridInventory.d.ts new file mode 100644 index 00000000..dd72ef1a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.crafting.CraftingGridInventory.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace crafting { + // @ts-ignore + interface CraftingGridInventory extends org.spongepowered.api.item.inventory.type.GridInventory { + /** + * Retrieves the recipe formed by this CraftingGridInventory, if any. + */ + // @ts-ignore + getRecipe(world: org.spongepowered.api.world.World): java.util.Optional; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.crafting.CraftingInventory.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.crafting.CraftingInventory.d.ts new file mode 100644 index 00000000..dc086e0b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.crafting.CraftingInventory.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace crafting { + // @ts-ignore + interface CraftingInventory extends org.spongepowered.api.item.inventory.type.OrderedInventory { + /** + * Gets the crafting matrix of this CraftingInventory. + */ + // @ts-ignore + getCraftingGrid(): org.spongepowered.api.item.inventory.crafting.CraftingGridInventory; + /** + * Gets the result slot of this CraftingInventory. + */ + // @ts-ignore + getResult(): org.spongepowered.api.item.inventory.crafting.CraftingOutput; + /** + * Retrieves the recipe formed by this CraftingInventory, if any. + */ + // @ts-ignore + getRecipe(world: org.spongepowered.api.world.World): java.util.Optional; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.crafting.CraftingOutput.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.crafting.CraftingOutput.d.ts new file mode 100644 index 00000000..6beef01d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.crafting.CraftingOutput.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace crafting { + // @ts-ignore + interface CraftingOutput extends org.spongepowered.api.item.inventory.slot.OutputSlot { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.entity.Hotbar.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.entity.Hotbar.d.ts new file mode 100644 index 00000000..4bddc2f6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.entity.Hotbar.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace entity { + // @ts-ignore + interface Hotbar extends org.spongepowered.api.item.inventory.type.InventoryRow { + /** + * Gets the index of the slot that is currently selected by the Humanoid. + */ + // @ts-ignore + getSelectedSlotIndex(): number; + /** + * Sets the slot selected by the Humanoid. + */ + // @ts-ignore + setSelectedSlotIndex(index: number): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.entity.MainPlayerInventory.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.entity.MainPlayerInventory.d.ts new file mode 100644 index 00000000..5fb0da34 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.entity.MainPlayerInventory.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace entity { + // @ts-ignore + interface MainPlayerInventory extends org.spongepowered.api.item.inventory.type.GridInventory { + /** + * Gets the hotbar of the player. + */ + // @ts-ignore + getHotbar(): org.spongepowered.api.item.inventory.entity.Hotbar; + /** + * Gets the grid of the player's main inventory. + */ + // @ts-ignore + getGrid(): org.spongepowered.api.item.inventory.type.GridInventory; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.entity.PlayerInventory.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.entity.PlayerInventory.d.ts new file mode 100644 index 00000000..8bef98b7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.entity.PlayerInventory.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace entity { + // @ts-ignore + interface PlayerInventory extends org.spongepowered.api.item.inventory.entity.UserInventory { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.entity.UserInventory.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.entity.UserInventory.d.ts new file mode 100644 index 00000000..6bbabd11 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.entity.UserInventory.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace entity { + // @ts-ignore + interface UserInventory extends org.spongepowered.api.item.inventory.type.CarriedInventory { + /** + * Gets the main inventory including the Hotbar. + */ + // @ts-ignore + getMain(): org.spongepowered.api.item.inventory.entity.MainPlayerInventory; + /** + * Gets the hotbar inventory. + */ + // @ts-ignore + getHotbar(): org.spongepowered.api.item.inventory.entity.Hotbar; + /** + * Gets the main inventory excluding the Hotbar. + */ + // @ts-ignore + getMainGrid(): org.spongepowered.api.item.inventory.type.GridInventory; + /** + * Gets the equipment inventory. + */ + // @ts-ignore + getEquipment(): org.spongepowered.api.item.inventory.equipment.EquipmentInventory; + /** + * Gets the offhand inventory. + */ + // @ts-ignore + getOffhand(): org.spongepowered.api.item.inventory.Slot; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.equipment.EquipmentInventory.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.equipment.EquipmentInventory.d.ts new file mode 100644 index 00000000..0407051f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.equipment.EquipmentInventory.d.ts @@ -0,0 +1,84 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace equipment { + // @ts-ignore + interface EquipmentInventory extends org.spongepowered.api.item.inventory.type.OrderedInventory, org.spongepowered.api.item.inventory.type.CarriedInventory { + /** + * Gets and remove the stack for the specified equipment type in this + * Inventory. + */ + // @ts-ignore + poll(equipmentType: org.spongepowered.api.item.inventory.property.EquipmentSlotType): java.util.Optional; + /** + * Gets and remove the items from the stack for the specified equipment type + * in this Inventory. + */ + // @ts-ignore + poll(equipmentType: org.spongepowered.api.item.inventory.property.EquipmentSlotType, limit: number): java.util.Optional; + /** + * Gets and remove the stack for the specified equipment type in this + * Inventory. + */ + // @ts-ignore + poll(equipmentType: org.spongepowered.api.item.inventory.equipment.EquipmentType): java.util.Optional; + /** + * Gets and remove the items from the stack for the specified equipment type + * in this Inventory. + */ + // @ts-ignore + poll(equipmentType: org.spongepowered.api.item.inventory.equipment.EquipmentType, limit: number): java.util.Optional; + /** + * Gets without removing the stack for the specified equipment type in this + * Inventory. + */ + // @ts-ignore + peek(equipmentType: org.spongepowered.api.item.inventory.property.EquipmentSlotType): java.util.Optional; + /** + * Gets without removing the items from the stack for the specified + * equipment type in this Inventory. + */ + // @ts-ignore + peek(equipmentType: org.spongepowered.api.item.inventory.property.EquipmentSlotType, limit: number): java.util.Optional; + /** + * Gets without removing the stack for the specified equipment type in this + * Inventory. + */ + // @ts-ignore + peek(equipmentType: org.spongepowered.api.item.inventory.equipment.EquipmentType): java.util.Optional; + /** + * Gets without removing the items from the stack for the specified + * equipment type in this Inventory. + */ + // @ts-ignore + peek(equipmentType: org.spongepowered.api.item.inventory.equipment.EquipmentType, limit: number): java.util.Optional; + /** + * Sets the item for the specified equipment type. + */ + // @ts-ignore + set(equipmentType: org.spongepowered.api.item.inventory.property.EquipmentSlotType, stack: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult; + /** + * Sets the item for the specified equipment type. + */ + // @ts-ignore + set(equipmentType: org.spongepowered.api.item.inventory.equipment.EquipmentType, stack: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult; + /** + * Gets the {@link Slot} for the specified equipment type. + */ + // @ts-ignore + getSlot(equipmentType: org.spongepowered.api.item.inventory.property.EquipmentSlotType): java.util.Optional; + /** + * Gets the {@link Slot} for the specified equipment type. + */ + // @ts-ignore + getSlot(equipmentType: org.spongepowered.api.item.inventory.equipment.EquipmentType): java.util.Optional; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.equipment.EquipmentType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.equipment.EquipmentType.d.ts new file mode 100644 index 00000000..205e563e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.equipment.EquipmentType.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace equipment { + // @ts-ignore + interface EquipmentType extends org.spongepowered.api.CatalogType { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.equipment.EquipmentTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.equipment.EquipmentTypes.d.ts new file mode 100644 index 00000000..97b58276 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.equipment.EquipmentTypes.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace equipment { + // @ts-ignore + class EquipmentTypes extends java.lang.Object { + // @ts-ignore + public static ANY: org.spongepowered.api.item.inventory.equipment.EquipmentType; + // @ts-ignore + public static EQUIPPED: org.spongepowered.api.item.inventory.equipment.EquipmentType; + // @ts-ignore + public static HELD: org.spongepowered.api.item.inventory.equipment.HeldEquipmentType; + // @ts-ignore + public static MAIN_HAND: org.spongepowered.api.item.inventory.equipment.HeldEquipmentType; + // @ts-ignore + public static OFF_HAND: org.spongepowered.api.item.inventory.equipment.HeldEquipmentType; + // @ts-ignore + public static WORN: org.spongepowered.api.item.inventory.equipment.WornEquipmentType; + // @ts-ignore + public static BOOTS: org.spongepowered.api.item.inventory.equipment.WornEquipmentType; + // @ts-ignore + public static CHESTPLATE: org.spongepowered.api.item.inventory.equipment.WornEquipmentType; + // @ts-ignore + public static HEADWEAR: org.spongepowered.api.item.inventory.equipment.WornEquipmentType; + // @ts-ignore + public static LEGGINGS: org.spongepowered.api.item.inventory.equipment.WornEquipmentType; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.equipment.HeldEquipmentType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.equipment.HeldEquipmentType.d.ts new file mode 100644 index 00000000..280a6f3c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.equipment.HeldEquipmentType.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace equipment { + // @ts-ignore + interface HeldEquipmentType extends org.spongepowered.api.item.inventory.equipment.EquipmentType { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.equipment.WornEquipmentType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.equipment.WornEquipmentType.d.ts new file mode 100644 index 00000000..d2bb102b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.equipment.WornEquipmentType.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace equipment { + // @ts-ignore + interface WornEquipmentType extends org.spongepowered.api.item.inventory.equipment.EquipmentType { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.AbstractInventoryProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.AbstractInventoryProperty.d.ts new file mode 100644 index 00000000..425a4cc7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.AbstractInventoryProperty.d.ts @@ -0,0 +1,80 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace property { + // @ts-ignore + abstract class AbstractInventoryProperty extends java.lang.Object implements org.spongepowered.api.item.inventory.InventoryProperty { + /** + * Initialise internal values to defaults, use this ctor if you plan to + * override {@link #getKey} and {@link #getValue} yourself. + */ + // @ts-ignore + constructor() + /** + * Initialise key to default, and value to the supplied value. + */ + // @ts-ignore + constructor(value: java.lang.Object) + /** + * Initialise the value to the specified value and use the specified + * operator, use the default key. + */ + // @ts-ignore + constructor(value: java.lang.Object, op: org.spongepowered.api.data.Property.Operator) + /** + * Use the specified key and value and set operator to the default. + */ + // @ts-ignore + constructor(key: java.lang.Object, value: java.lang.Object) + // @ts-ignore + constructor(key: java.lang.Object, value: java.lang.Object, op: org.spongepowered.api.data.Property.Operator) + // @ts-ignore + protected operator: org.spongepowered.api.data.Property.Operator; + // @ts-ignore + protected value: java.lang.Object; + /** + * Gets the default value for {@link #key}, used in case null is passed in + * (since we can't have a null key). In general this should return the class + * name of the property itself but subclasses are free to alter this + * behaviour if they wish. + */ + // @ts-ignore + protected getDefaultKey(value: java.lang.Object): java.lang.Object; + /** + * Gets the default key for the provided InventoryProperty class. + */ + // @ts-ignore + public static getDefaultKey(clazz: java.lang.Class): java.lang.Object; + /** + * Return the default operator to use, based on the supplied key and value. + */ + // @ts-ignore + protected getDefaultOperator(key: java.lang.Object, value: java.lang.Object): org.spongepowered.api.data.Property.Operator; + // @ts-ignore + public getKey(): java.lang.Object; + // @ts-ignore + public getValue(): java.lang.Object; + // @ts-ignore + public getOperator(): org.spongepowered.api.data.Property.Operator; + // @ts-ignore + public matches(other: org.spongepowered.api.data.Property): boolean; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + /** + * Convenience method to avoid null-checking. Returns 0 if value is + * null. + */ + // @ts-ignore + protected hashCodeOf(value: java.lang.Object): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.AcceptsItems.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.AcceptsItems.d.ts new file mode 100644 index 00000000..f775231b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.AcceptsItems.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace property { + // @ts-ignore + class AcceptsItems extends org.spongepowered.api.item.inventory.property.AbstractInventoryProperty { + /** + * Create a new AcceptsItems property with the supplied value. + */ + // @ts-ignore + constructor(value: java.util.Collection) + /** + * Create a new AcceptsItems property with the supplied value and operator. + */ + // @ts-ignore + constructor(value: java.util.Collection, operator: org.spongepowered.api.data.Property.Operator) + /** + * Create a new AcceptsItems property with the supplied value and operator. + */ + // @ts-ignore + constructor(value: java.lang.Object, operator: org.spongepowered.api.data.Property.Operator) + // @ts-ignore + public compareTo(other: org.spongepowered.api.data.Property): number; + /** + * Returns true if other is also an {@link AcceptsItems} property + * and any item appearing in the other property's collection appears + * in this property's collection. In formal terms, the method returns true + * if the size of the intersection between the two item type collections is + * greater than zero. + */ + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + /** + * Create an AcceptsItems property which matches AcceptsItems properties + * with containing one or more of the supplied values. + */ + // @ts-ignore + public static of(value: java.lang.Object): org.spongepowered.api.item.inventory.property.AcceptsItems; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.ArmorSlotType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.ArmorSlotType.d.ts new file mode 100644 index 00000000..4daaefb6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.ArmorSlotType.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace property { + // @ts-ignore + class ArmorSlotType extends org.spongepowered.api.item.inventory.property.EquipmentSlotType { + /** + * Create a new ArmorSlotType property which matches armour slots of the + * specified type. + */ + // @ts-ignore + constructor(value: org.spongepowered.api.item.inventory.equipment.WornEquipmentType) + /** + * Create a new ArmorSlotType property which matches armour slots of the + * specified type. + */ + // @ts-ignore + constructor(value: org.spongepowered.api.item.inventory.equipment.WornEquipmentType, operator: org.spongepowered.api.data.Property.Operator) + /** + * Create a new ArmorSlotType property which matches armour slots of the + * specified type. + */ + // @ts-ignore + constructor(value: java.lang.Object, operator: org.spongepowered.api.data.Property.Operator) + /** + * Create an ArmourSlotType property which matches ArmourSlotType properties + * with equal value. + */ + // @ts-ignore + public static of(value: java.lang.Object): org.spongepowered.api.item.inventory.property.ArmorSlotType; + /** + * Create an ArmourSlotType property which matches ArmourSlotType properties + * with unequal value. + */ + // @ts-ignore + public static not(value: java.lang.Object): org.spongepowered.api.item.inventory.property.ArmorSlotType; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.EquipmentSlotType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.EquipmentSlotType.d.ts new file mode 100644 index 00000000..203620be --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.EquipmentSlotType.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace property { + // @ts-ignore + class EquipmentSlotType extends org.spongepowered.api.item.inventory.property.AbstractInventoryProperty { + /** + * Create a new EquipmentSlotType property to match items of the specified + * value. + */ + // @ts-ignore + constructor(value: org.spongepowered.api.item.inventory.equipment.EquipmentType) + /** + * Create a new EquipmentSlotType property to match items of the specified + * value. + */ + // @ts-ignore + constructor(value: org.spongepowered.api.item.inventory.equipment.EquipmentType, operator: org.spongepowered.api.data.Property.Operator) + /** + * Create a new EquipmentSlotType property to match items of the specified + * value. + */ + // @ts-ignore + constructor(value: java.lang.Object, operator: org.spongepowered.api.data.Property.Operator) + // @ts-ignore + public compareTo(other: org.spongepowered.api.data.Property): number; + /** + * Create an EquipmentSlotType property which matches EquipmentSlotType + * properties with equal value. + */ + // @ts-ignore + public static of(value: java.lang.Object): org.spongepowered.api.item.inventory.property.EquipmentSlotType; + /** + * Create an EquipmentSlotType property which matches EquipmentSlotType + * properties with unequal value. + */ + // @ts-ignore + public static not(value: java.lang.Object): org.spongepowered.api.item.inventory.property.EquipmentSlotType; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.GuiId.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.GuiId.d.ts new file mode 100644 index 00000000..610f3488 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.GuiId.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace property { + // @ts-ignore + interface GuiId extends org.spongepowered.api.CatalogType { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.GuiIdProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.GuiIdProperty.d.ts new file mode 100644 index 00000000..774df4af --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.GuiIdProperty.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace property { + // @ts-ignore + class GuiIdProperty extends org.spongepowered.api.item.inventory.property.AbstractInventoryProperty { + /** + * Creates a GuiID property from the specified GUI ID. + */ + // @ts-ignore + constructor(value: org.spongepowered.api.item.inventory.property.GuiId) + // @ts-ignore + public compareTo(other: org.spongepowered.api.data.Property): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.GuiIds.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.GuiIds.d.ts new file mode 100644 index 00000000..04b4e475 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.GuiIds.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace property { + // @ts-ignore + class GuiIds extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static CHEST: org.spongepowered.api.item.inventory.property.GuiId; + // @ts-ignore + public static FURNACE: org.spongepowered.api.item.inventory.property.GuiId; + // @ts-ignore + public static DISPENSER: org.spongepowered.api.item.inventory.property.GuiId; + // @ts-ignore + public static CRAFTING_TABLE: org.spongepowered.api.item.inventory.property.GuiId; + // @ts-ignore + public static BREWING_STAND: org.spongepowered.api.item.inventory.property.GuiId; + // @ts-ignore + public static HOPPER: org.spongepowered.api.item.inventory.property.GuiId; + // @ts-ignore + public static BEACON: org.spongepowered.api.item.inventory.property.GuiId; + // @ts-ignore + public static ENCHANTING_TABLE: org.spongepowered.api.item.inventory.property.GuiId; + // @ts-ignore + public static ANVIL: org.spongepowered.api.item.inventory.property.GuiId; + // @ts-ignore + public static VILLAGER: org.spongepowered.api.item.inventory.property.GuiId; + // @ts-ignore + public static HORSE: org.spongepowered.api.item.inventory.property.GuiId; + // @ts-ignore + public static SHULKER_BOX: org.spongepowered.api.item.inventory.property.GuiId; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.Identifiable.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.Identifiable.d.ts new file mode 100644 index 00000000..ffd38857 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.Identifiable.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace property { + // @ts-ignore + class Identifiable extends org.spongepowered.api.item.inventory.property.AbstractInventoryProperty { + /** + * Creates an Identifiable with a random UUID. + */ + // @ts-ignore + constructor() + /** + * Creates an Identifiable with given UUID. + */ + // @ts-ignore + constructor(value: java.util.UUID) + /** + * Creates an Identifiable with given UUID. + */ + // @ts-ignore + constructor(value: java.util.UUID, op: org.spongepowered.api.data.Property.Operator) + // @ts-ignore + public compareTo(other: org.spongepowered.api.data.Property): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.IntProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.IntProperty.d.ts new file mode 100644 index 00000000..5d1faa3b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.IntProperty.d.ts @@ -0,0 +1,71 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace property { + // @ts-ignore + class IntProperty extends org.spongepowered.api.item.inventory.property.AbstractInventoryProperty { + /** + * Create a new integer property with the specified value. + */ + // @ts-ignore + constructor(value: number) + /** + * Create a new integer property with the specified value and logical + * operator. + */ + // @ts-ignore + constructor(value: number, operator: org.spongepowered.api.data.Property.Operator) + /** + * Create a new integer property with the specified value and logical + * operator. + */ + // @ts-ignore + constructor(value: java.lang.Object, operator: org.spongepowered.api.data.Property.Operator) + // @ts-ignore + public compareTo(other: org.spongepowered.api.data.Property): number; + /** + * Create an {@link IntProperty} property which matches {@link IntProperty} + * properties with equal value. + */ + // @ts-ignore + public static of(value: java.lang.Object): org.spongepowered.api.item.inventory.property.IntProperty; + /** + * Create an {@link IntProperty} property which matches {@link IntProperty} + * properties with unequal value. + */ + // @ts-ignore + public static not(value: java.lang.Object): org.spongepowered.api.item.inventory.property.IntProperty; + /** + * Create an {@link IntProperty} property which matches {@link IntProperty} + * properties with value greater than this value. + */ + // @ts-ignore + public static greaterThan(value: java.lang.Object): org.spongepowered.api.item.inventory.property.IntProperty; + /** + * Create an {@link IntProperty} property which matches {@link IntProperty} + * properties with value greater than or equal to this value. + */ + // @ts-ignore + public static greaterThanOrEqual(value: java.lang.Object): org.spongepowered.api.item.inventory.property.IntProperty; + /** + * Create an {@link IntProperty} property which matches {@link IntProperty} + * properties with value less than this value. + */ + // @ts-ignore + public static lessThan(value: java.lang.Object): org.spongepowered.api.item.inventory.property.IntProperty; + /** + * Create an {@link IntProperty} property which matches {@link IntProperty} + * properties with value less than or equal to this value. + */ + // @ts-ignore + public static lessThanOrEqual(value: java.lang.Object): org.spongepowered.api.item.inventory.property.IntProperty; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.InventoryCapacity.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.InventoryCapacity.d.ts new file mode 100644 index 00000000..5ec695b6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.InventoryCapacity.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace property { + // @ts-ignore + class InventoryCapacity extends org.spongepowered.api.item.inventory.property.IntProperty { + /** + * Creates a new InventoryCapacity property with the specified value. + */ + // @ts-ignore + constructor(capacity: number) + /** + * Create a new InventoryCapacity property with the specified value. + */ + // @ts-ignore + constructor(capacity: number, operator: org.spongepowered.api.data.Property.Operator) + /** + * Create an InventoryCapacity property which matches InventoryCapacity + * properties with equal value. + */ + // @ts-ignore + public static of(capacity: number): org.spongepowered.api.item.inventory.property.InventoryCapacity; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.InventoryDimension.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.InventoryDimension.d.ts new file mode 100644 index 00000000..7e7c92fc --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.InventoryDimension.d.ts @@ -0,0 +1,92 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace property { + // @ts-ignore + class InventoryDimension extends org.spongepowered.api.item.inventory.property.AbstractInventoryProperty { + /** + * Create a new InventoryDimension property with the specified value. + */ + // @ts-ignore + constructor(value: any /*Vector2i*/) + /** + * Create a new InventoryDimension property with the specified dimensions. + */ + // @ts-ignore + constructor(width: number, height: number) + /** + * Create a new InventoryDimension property with the specified value. + */ + // @ts-ignore + constructor(value: any /*Vector2i*/, operator: org.spongepowered.api.data.Property.Operator) + /** + * Create a new InventoryDimension property with the specified dimensions. + */ + // @ts-ignore + constructor(width: number, height: number, operator: org.spongepowered.api.data.Property.Operator) + // @ts-ignore + public static PROPERTY_NAME: string; + /** + * Gets the number of columns in this inventory. + */ + // @ts-ignore + public getColumns(): number; + /** + * Gets the number of rows in this inventory. + */ + // @ts-ignore + public getRows(): number; + // @ts-ignore + public compareTo(other: org.spongepowered.api.data.Property): number; + /** + * Create an InventoryDimension property which matches InventoryDimension + * properties with equal value. + */ + // @ts-ignore + public static of(value: java.lang.Object): org.spongepowered.api.item.inventory.property.InventoryDimension; + /** + * Create an InventoryDimension property which matches InventoryDimension + * properties with equal value. + */ + // @ts-ignore + public static of(width: number, height: number): org.spongepowered.api.item.inventory.property.InventoryDimension; + /** + * Create an InventoryDimension property which matches InventoryDimension + * properties with unequal value. + */ + // @ts-ignore + public static not(value: java.lang.Object): org.spongepowered.api.item.inventory.property.InventoryDimension; + /** + * Create an InventoryDimension property which matches InventoryDimension + * properties with value greater than this value. + */ + // @ts-ignore + public static greaterThan(value: java.lang.Object): org.spongepowered.api.item.inventory.property.InventoryDimension; + /** + * Create an InventoryDimension property which matches InventoryDimension + * properties with value greater than or equal to this value. + */ + // @ts-ignore + public static greaterThanOrEqual(value: java.lang.Object): org.spongepowered.api.item.inventory.property.InventoryDimension; + /** + * Create an InventoryDimension property which matches InventoryDimension + * properties with value less than this value. + */ + // @ts-ignore + public static lessThan(value: java.lang.Object): org.spongepowered.api.item.inventory.property.InventoryDimension; + /** + * Create an InventoryDimension property which matches InventoryDimension + * properties with value less than or equal to this value. + */ + // @ts-ignore + public static lessThanOrEqual(value: java.lang.Object): org.spongepowered.api.item.inventory.property.InventoryDimension; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.InventoryTitle.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.InventoryTitle.d.ts new file mode 100644 index 00000000..93f345f5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.InventoryTitle.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace property { + // @ts-ignore + class InventoryTitle extends org.spongepowered.api.item.inventory.property.AbstractInventoryProperty { + /** + * Creates a new {@link InventoryTitle} to be displayed on an {@link Inventory}. + */ + // @ts-ignore + constructor(value: org.spongepowered.api.text.Text) + // @ts-ignore + public static PROPERTY_NAME: string; + // @ts-ignore + public compareTo(other: org.spongepowered.api.data.Property): number; + /** + * Creates a new {@link InventoryTitle} with the provided {@link Text}. + */ + // @ts-ignore + public static of(value: org.spongepowered.api.text.Text): org.spongepowered.api.item.inventory.property.InventoryTitle; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.MappedIntProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.MappedIntProperty.d.ts new file mode 100644 index 00000000..ec363883 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.MappedIntProperty.d.ts @@ -0,0 +1,70 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace property { + // @ts-ignore + class MappedIntProperty extends org.spongepowered.api.item.inventory.property.AbstractInventoryProperty { + /** + * Create a new MappedIntproperty with the specified key and value. + */ + // @ts-ignore + constructor(key: java.lang.Integer, value: java.lang.Integer) + /** + * Create a new MappedIntproperty with the specified key and value. + */ + // @ts-ignore + constructor(key: java.lang.Integer, value: java.lang.Integer, operator: org.spongepowered.api.data.Property.Operator) + /** + * Create a new MappedIntproperty with the specified key and value. + */ + // @ts-ignore + constructor(key: java.lang.Object, value: java.lang.Object, operator: org.spongepowered.api.data.Property.Operator) + // @ts-ignore + public compareTo(other: org.spongepowered.api.data.Property): number; + /** + * Create a MappedIntproperty property which matches MappedIntproperty + * properties with equal value and matching key. + */ + // @ts-ignore + public static of(key: java.lang.Object, value: java.lang.Object): org.spongepowered.api.item.inventory.property.MappedIntProperty; + /** + * Create a MappedIntproperty property which matches MappedIntproperty + * properties with unequal value and matching key. + */ + // @ts-ignore + public static not(key: java.lang.Object, value: java.lang.Object): org.spongepowered.api.item.inventory.property.MappedIntProperty; + /** + * Create a MappedIntproperty property which matches MappedIntproperty + * properties with value greater than this value and matching key. + */ + // @ts-ignore + public static greaterThan(key: java.lang.Object, value: java.lang.Object): org.spongepowered.api.item.inventory.property.MappedIntProperty; + /** + * Create a MappedIntproperty property which matches MappedIntproperty + * properties with value greater than or equal to this value and matching + * key. + */ + // @ts-ignore + public static greaterThanOrEqual(key: java.lang.Object, value: java.lang.Object): org.spongepowered.api.item.inventory.property.MappedIntProperty; + /** + * Create a MappedIntproperty property which matches MappedIntproperty + * properties with value less than this value and matching key. + */ + // @ts-ignore + public static lessThan(key: java.lang.Object, value: java.lang.Object): org.spongepowered.api.item.inventory.property.MappedIntProperty; + /** + * Create a MappedIntproperty property which matches MappedIntproperty + * properties with value less than or equal to this value and matching key. + */ + // @ts-ignore + public static lessThanOrEqual(key: java.lang.Object, value: java.lang.Object): org.spongepowered.api.item.inventory.property.MappedIntProperty; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.SlotIndex.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.SlotIndex.d.ts new file mode 100644 index 00000000..94434417 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.SlotIndex.d.ts @@ -0,0 +1,67 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace property { + // @ts-ignore + class SlotIndex extends org.spongepowered.api.item.inventory.property.IntProperty { + /** + * Creates a new SlotIndex property for the specified value. + */ + // @ts-ignore + constructor(value: number) + /** + * Creates a new SlotIndex property for the specified value and operator. + */ + // @ts-ignore + constructor(value: number, operator: org.spongepowered.api.data.Property.Operator) + /** + * Creates a new SlotIndex property for the specified value and operator. + */ + // @ts-ignore + constructor(value: java.lang.Object, operator: org.spongepowered.api.data.Property.Operator) + /** + * Create a SlotIndex property which matches SlotIndex properties with + * equal value. + */ + // @ts-ignore + public static of(value: java.lang.Object): org.spongepowered.api.item.inventory.property.SlotIndex; + /** + * Create a SlotIndex property which matches SlotIndex properties with + * unequal value. + */ + // @ts-ignore + public static not(value: java.lang.Object): org.spongepowered.api.item.inventory.property.SlotIndex; + /** + * Create a SlotIndex property which matches SlotIndex properties with + * value greater than this value. + */ + // @ts-ignore + public static greaterThan(value: java.lang.Object): org.spongepowered.api.item.inventory.property.SlotIndex; + /** + * Create a SlotIndex property which matches SlotIndex properties with + * value greater than or equal to this value. + */ + // @ts-ignore + public static greaterThanOrEqual(value: java.lang.Object): org.spongepowered.api.item.inventory.property.SlotIndex; + /** + * Create a SlotIndex property which matches SlotIndex properties with + * value less than this value. + */ + // @ts-ignore + public static lessThan(value: java.lang.Object): org.spongepowered.api.item.inventory.property.SlotIndex; + /** + * Create a SlotIndex property which matches SlotIndex properties with + * value less than or equal to this value. + */ + // @ts-ignore + public static lessThanOrEqual(value: java.lang.Object): org.spongepowered.api.item.inventory.property.SlotIndex; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.SlotPos.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.SlotPos.d.ts new file mode 100644 index 00000000..971f6a08 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.SlotPos.d.ts @@ -0,0 +1,92 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace property { + // @ts-ignore + class SlotPos extends org.spongepowered.api.item.inventory.property.AbstractInventoryProperty { + /** + * Create a new SlotPos property for matching the specified value. + */ + // @ts-ignore + constructor(value: any /*Vector2i*/) + /** + * Create a new SlotPos property for matching the specified value. + */ + // @ts-ignore + constructor(x: number, y: number) + /** + * Create a new SlotPos property for matching the specified value with the + * specified operator. + */ + // @ts-ignore + constructor(value: any /*Vector2i*/, operator: org.spongepowered.api.data.Property.Operator) + /** + * Create a new SlotPos property for matching the specified value with the + * specified operator. + */ + // @ts-ignore + constructor(x: number, y: number, operator: org.spongepowered.api.data.Property.Operator) + /** + * Gets the X position of this slot within the queried parent. + */ + // @ts-ignore + public getX(): number; + /** + * Gets the Y position of this slot within the queried parent. + */ + // @ts-ignore + public getY(): number; + // @ts-ignore + public compareTo(other: org.spongepowered.api.data.Property): number; + /** + * Create an SlotPos property which matches SlotPos properties with equal + * value. + */ + // @ts-ignore + public static of(value: java.lang.Object): org.spongepowered.api.item.inventory.property.SlotPos; + /** + * Create an SlotPos property which matches SlotPos properties with equal + * value. + */ + // @ts-ignore + public static of(x: number, y: number): org.spongepowered.api.item.inventory.property.SlotPos; + /** + * Create an SlotPos property which matches SlotPos properties with unequal + * value. + */ + // @ts-ignore + public static not(value: java.lang.Object): org.spongepowered.api.item.inventory.property.SlotPos; + /** + * Create an SlotPos property which matches SlotPos properties with value + * greater than this value. + */ + // @ts-ignore + public static greaterThan(value: java.lang.Object): org.spongepowered.api.item.inventory.property.SlotPos; + /** + * Create an SlotPos property which matches SlotPos properties with value + * greater than or equal to this value. + */ + // @ts-ignore + public static greaterThanOrEqual(value: java.lang.Object): org.spongepowered.api.item.inventory.property.SlotPos; + /** + * Create an SlotPos property which matches SlotPos properties with value + * less than this value. + */ + // @ts-ignore + public static lessThan(value: java.lang.Object): org.spongepowered.api.item.inventory.property.SlotPos; + /** + * Create an SlotPos property which matches SlotPos properties with value + * less than or equal to this value. + */ + // @ts-ignore + public static lessThanOrEqual(value: java.lang.Object): org.spongepowered.api.item.inventory.property.SlotPos; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.SlotSide.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.SlotSide.d.ts new file mode 100644 index 00000000..70ff9920 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.SlotSide.d.ts @@ -0,0 +1,47 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace property { + // @ts-ignore + class SlotSide extends org.spongepowered.api.item.inventory.property.AbstractInventoryProperty { + /** + * Create a new SlotSide property for matching the specified value. + */ + // @ts-ignore + constructor(value: org.spongepowered.api.util.Direction) + /** + * Create a new SlotSide property for matching the specified value with the + * specified operator. + */ + // @ts-ignore + constructor(value: org.spongepowered.api.util.Direction, operator: org.spongepowered.api.data.Property.Operator) + /** + * Create a new SlotSide property for matching the specified value with the + * specified operator. + */ + // @ts-ignore + constructor(value: java.lang.Object, operator: org.spongepowered.api.data.Property.Operator) + // @ts-ignore + public compareTo(other: org.spongepowered.api.data.Property): number; + /** + * Create a SlotSide property which matches SlotSide properties with equal + * value. + */ + // @ts-ignore + public static of(value: java.lang.Object): org.spongepowered.api.item.inventory.property.SlotSide; + /** + * Create a SlotSide property which matches SlotSide properties with unequal + * value. + */ + // @ts-ignore + public static not(value: java.lang.Object): org.spongepowered.api.item.inventory.property.SlotSide; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.StringProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.StringProperty.d.ts new file mode 100644 index 00000000..88a3dd9b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.property.StringProperty.d.ts @@ -0,0 +1,72 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace property { + // @ts-ignore + class StringProperty extends org.spongepowered.api.item.inventory.property.AbstractInventoryProperty { + /** + * Create a new {@link StringProperty} for matching the specified value. + */ + // @ts-ignore + constructor(value: string) + /** + * Create a new {@link StringProperty} for matching the specified value + * with the specified operator. + */ + // @ts-ignore + constructor(value: string, operator: org.spongepowered.api.data.Property.Operator) + /** + * Create a new {@link StringProperty} for matching the specified value + * with the specified operator. + */ + // @ts-ignore + constructor(value: java.lang.Object, operator: org.spongepowered.api.data.Property.Operator) + // @ts-ignore + public compareTo(other: org.spongepowered.api.data.Property): number; + /** + * Create a {@link StringProperty} which matches {@link StringProperty} + * properties with equal value. + */ + // @ts-ignore + public static of(value: java.lang.Object): org.spongepowered.api.item.inventory.property.StringProperty; + /** + * Create a {@link StringProperty} which matches {@link StringProperty} + * properties with unequal value. + */ + // @ts-ignore + public static not(value: java.lang.Object): org.spongepowered.api.item.inventory.property.StringProperty; + /** + * Create a {@link StringProperty} which matches {@link StringProperty} + * properties with value greater than this value. + */ + // @ts-ignore + public static greaterThan(value: java.lang.Object): org.spongepowered.api.item.inventory.property.StringProperty; + /** + * Create a {@link StringProperty} which matches {@link StringProperty} + * properties with value greater than or equal to this + * value. + */ + // @ts-ignore + public static greaterThanOrEqual(value: java.lang.Object): org.spongepowered.api.item.inventory.property.StringProperty; + /** + * Create a {@link StringProperty} which matches {@link StringProperty} + * properties with value less than this value. + */ + // @ts-ignore + public static lessThan(value: java.lang.Object): org.spongepowered.api.item.inventory.property.StringProperty; + /** + * Create a {@link StringProperty} which matches {@link StringProperty} + * properties with value less than or equal to this value. + */ + // @ts-ignore + public static lessThanOrEqual(value: java.lang.Object): org.spongepowered.api.item.inventory.property.StringProperty; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.query.QueryOperation.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.query.QueryOperation.d.ts new file mode 100644 index 00000000..afedb0c6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.query.QueryOperation.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace query { + // @ts-ignore + interface QueryOperation { + /** + * Returns the {@link QueryOperationType} used to + * {@linkplain QueryOperationType#of(Object) create} this query operation. + */ + // @ts-ignore + getType(): org.spongepowered.api.item.inventory.query.QueryOperationType; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.query.QueryOperationType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.query.QueryOperationType.d.ts new file mode 100644 index 00000000..a6ce2f66 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.query.QueryOperationType.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace query { + // @ts-ignore + interface QueryOperationType extends org.spongepowered.api.CatalogType { + /** + * Returns a query operation that tests for the specified argument. + */ + // @ts-ignore + of(arg: java.lang.Object): org.spongepowered.api.item.inventory.query.QueryOperation; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.query.QueryOperationTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.query.QueryOperationTypes.d.ts new file mode 100644 index 00000000..77f6884d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.query.QueryOperationTypes.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace query { + // @ts-ignore + class QueryOperationTypes extends java.lang.Object { + // @ts-ignore + public static INVENTORY_PROPERTY: org.spongepowered.api.item.inventory.query.QueryOperationType; + // @ts-ignore + public static INVENTORY_TRANSLATION: org.spongepowered.api.item.inventory.query.QueryOperationType; + // @ts-ignore + public static INVENTORY_TYPE: org.spongepowered.api.item.inventory.query.QueryOperationType; + // @ts-ignore + public static ITEM_STACK_CUSTOM: org.spongepowered.api.item.inventory.query.QueryOperationType; + // @ts-ignore + public static ITEM_STACK_EXACT: org.spongepowered.api.item.inventory.query.QueryOperationType; + // @ts-ignore + public static ITEM_STACK_IGNORE_QUANTITY: org.spongepowered.api.item.inventory.query.QueryOperationType; + // @ts-ignore + public static ITEM_TYPE: org.spongepowered.api.item.inventory.query.QueryOperationType; + // @ts-ignore + public static TYPE: org.spongepowered.api.item.inventory.query.QueryOperationType; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.slot.EquipmentSlot.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.slot.EquipmentSlot.d.ts new file mode 100644 index 00000000..f0d0594e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.slot.EquipmentSlot.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace slot { + // @ts-ignore + interface EquipmentSlot extends org.spongepowered.api.item.inventory.slot.FilteringSlot { + /** + * Check whether the supplied equipment type can be inserted into this slot. + * Returning false from this method implies that {@link #offer} would + * always return false for items of this type. + */ + // @ts-ignore + isValidItem(type: org.spongepowered.api.item.inventory.equipment.EquipmentType): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.slot.FilteringSlot.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.slot.FilteringSlot.d.ts new file mode 100644 index 00000000..5f591b98 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.slot.FilteringSlot.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace slot { + // @ts-ignore + interface FilteringSlot extends org.spongepowered.api.item.inventory.Slot { + /** + * Check whether the supplied item can be inserted into this slot. Returning + * false from this method implies that {@link #offer} would always return + * false for this item. + */ + // @ts-ignore + isValidItem(stack: org.spongepowered.api.item.inventory.ItemStack): boolean; + /** + * Check whether the supplied item can be inserted into this slot. Returning + * false from this method implies that {@link #offer} would always return + * false for items of this type. + */ + // @ts-ignore + isValidItem(type: org.spongepowered.api.item.ItemType): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.slot.FuelSlot.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.slot.FuelSlot.d.ts new file mode 100644 index 00000000..bb09af35 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.slot.FuelSlot.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace slot { + // @ts-ignore + interface FuelSlot extends org.spongepowered.api.item.inventory.slot.InputSlot { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.slot.InputSlot.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.slot.InputSlot.d.ts new file mode 100644 index 00000000..0529a6f5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.slot.InputSlot.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace slot { + // @ts-ignore + interface InputSlot extends org.spongepowered.api.item.inventory.slot.FilteringSlot { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.slot.OutputSlot.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.slot.OutputSlot.d.ts new file mode 100644 index 00000000..b6cd71da --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.slot.OutputSlot.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace slot { + // @ts-ignore + interface OutputSlot extends org.spongepowered.api.item.inventory.Slot { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.slot.SidedSlot.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.slot.SidedSlot.d.ts new file mode 100644 index 00000000..f747ec27 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.slot.SidedSlot.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace slot { + // @ts-ignore + interface SidedSlot extends org.spongepowered.api.item.inventory.Slot { + /** + * Gets whether this slot can accept the specified item from the specified + * direction. + */ + // @ts-ignore + canAccept(stack: org.spongepowered.api.item.inventory.ItemStack, from: org.spongepowered.api.util.Direction): boolean; + /** + * Attempts to insert the supplied stack into this inventory from the + * specified direction. + */ + // @ts-ignore + offer(stack: org.spongepowered.api.item.inventory.ItemStack, from: org.spongepowered.api.util.Direction): boolean; + /** + * Gets whether automation can extract the specified item from the specified + * direction. + */ + // @ts-ignore + canGet(stack: org.spongepowered.api.item.inventory.ItemStack, from: org.spongepowered.api.util.Direction): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult.Builder.d.ts new file mode 100644 index 00000000..9813cbaf --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult.Builder.d.ts @@ -0,0 +1,44 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace transaction { + namespace InventoryTransactionResult { + // @ts-ignore + class Builder extends java.lang.Object implements org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the {@link Type} of transaction result being built. + */ + // @ts-ignore + public type(type: org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult.Type): org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult.Builder; + /** + * Adds the provided {@link ItemStack itemstacks} as stacks that have been + * "rejected". + */ + // @ts-ignore + public reject(itemStacks: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult.Builder; + /** + * Adds the provided {@link ItemStack itemstacks} as stacks that are + * being replaced. + */ + // @ts-ignore + public replace(itemStacks: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult.Builder; + /** + * Creates a new {@link InventoryTransactionResult}. + */ + // @ts-ignore + public build(): org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult; + // @ts-ignore + public from(value: org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult): org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult.Builder; + // @ts-ignore + public reset(): org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult.Builder; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult.Type.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult.Type.d.ts new file mode 100644 index 00000000..9e8bec20 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult.Type.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace transaction { + namespace InventoryTransactionResult { + // @ts-ignore + class Type extends java.lang.Enum { + // @ts-ignore + public static UNDEFINED: org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult.Type; + // @ts-ignore + public static SUCCESS: org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult.Type; + // @ts-ignore + public static FAILURE: org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult.Type; + // @ts-ignore + public static ERROR: org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult.Type; + // @ts-ignore + public static CANCELLED: org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult.Type; + // @ts-ignore + public static values(): org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult.Type[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult.Type; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult.d.ts new file mode 100644 index 00000000..8bccf27e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult.d.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace transaction { + // @ts-ignore + class InventoryTransactionResult extends java.lang.Object { + /** + * Begin building a new InventoryTransactionResult. + */ + // @ts-ignore + public static builder(): org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult.Builder; + /** + * Returns a builder which indicates that the transaction succeeded, but the + * transaction result was no-op. + */ + // @ts-ignore + public static successNoTransactions(): org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult; + /** + * Returns a builder which indicates that the transaction failed, and the + * transaction result was no-op. + */ + // @ts-ignore + public static failNoTransactions(): org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult; + /** + * Gets the type of result. + */ + // @ts-ignore + public getType(): org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult.Type; + /** + * If items were supplied to the operation, this collection will return any + * items which were rejected by the target inventory. + */ + // @ts-ignore + public getRejectedItems(): java.util.Collection; + /** + * If the operation replaced items in the inventory, this collection returns + * the ItemStacks which were replaced. + */ + // @ts-ignore + public getReplacedItems(): java.util.Collection; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.transaction.SlotTransaction.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.transaction.SlotTransaction.d.ts new file mode 100644 index 00000000..2a4030e5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.transaction.SlotTransaction.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace transaction { + // @ts-ignore + class SlotTransaction extends org.spongepowered.api.data.Transaction { + /** + * Creates a new {@link SlotTransaction} with the provided {@link Slot}, + * {@link ItemStackSnapshot original snapshot}, and + * {@link ItemStackSnapshot replacement snapshot}. + */ + // @ts-ignore + constructor(slot: org.spongepowered.api.item.inventory.Slot, original: org.spongepowered.api.item.inventory.ItemStackSnapshot, defaultReplacement: org.spongepowered.api.item.inventory.ItemStackSnapshot) + /** + * Sets the custom {@link ItemStack} output of this + * {@link SlotTransaction}. + */ + // @ts-ignore + public setCustom(stack: org.spongepowered.api.item.inventory.ItemStack): void; + /** + * Gets the {@link Slot} of this {@link SlotTransaction}. + */ + // @ts-ignore + public getSlot(): org.spongepowered.api.item.inventory.Slot; + // @ts-ignore + public toString(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.CarriedInventory.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.CarriedInventory.d.ts new file mode 100644 index 00000000..9227c24a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.CarriedInventory.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace type { + // @ts-ignore + interface CarriedInventory extends org.spongepowered.api.item.inventory.Inventory { + /** + * Returns the Carrier of this Inventory. It can be an entity, block, or + * other object. + */ + // @ts-ignore + getCarrier(): java.util.Optional; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.GridInventory.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.GridInventory.d.ts new file mode 100644 index 00000000..0fd14b13 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.GridInventory.d.ts @@ -0,0 +1,73 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace type { + // @ts-ignore + interface GridInventory extends org.spongepowered.api.item.inventory.type.Inventory2D { + /** + * Gets the number of columns in the inventory. + */ + // @ts-ignore + getColumns(): number; + /** + * Gets the number of rows in the inventory. + */ + // @ts-ignore + getRows(): number; + /** + * Returns the dimensions of this GridInventory as a {@link Vector2i}. + */ + // @ts-ignore + getDimensions(): any /*Vector2i*/; + /** + * Gets and remove the stack at the supplied position in this Inventory. + */ + // @ts-ignore + poll(x: number, y: number): java.util.Optional; + /** + * Gets and remove the stack at the supplied position in this Inventory. + */ + // @ts-ignore + poll(x: number, y: number, limit: number): java.util.Optional; + /** + * Gets without removing the stack at the supplied position in this + * Inventory. + */ + // @ts-ignore + peek(x: number, y: number): java.util.Optional; + /** + * Gets without removing the stack at the supplied position in this + * Inventory. + */ + // @ts-ignore + peek(x: number, y: number, limit: number): java.util.Optional; + /** + * Sets the item in the specified slot. + */ + // @ts-ignore + set(x: number, y: number, stack: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult; + /** + * Gets the {@link Slot} at the specified position. + */ + // @ts-ignore + getSlot(x: number, y: number): java.util.Optional; + /** + * Gets the row at the specified index. + */ + // @ts-ignore + getRow(y: number): java.util.Optional; + /** + * Gets the column at the specified index. + */ + // @ts-ignore + getColumn(x: number): java.util.Optional; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.Interactable.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.Interactable.d.ts new file mode 100644 index 00000000..bbd82aec --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.Interactable.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace type { + // @ts-ignore + interface Interactable extends org.spongepowered.api.item.inventory.Inventory { + /** + * Gets whether the specified player can interact with this object. + */ + // @ts-ignore + canInteractWith(player: org.spongepowered.api.entity.living.player.Player): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.Inventory2D.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.Inventory2D.d.ts new file mode 100644 index 00000000..deddcea6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.Inventory2D.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace type { + // @ts-ignore + interface Inventory2D extends org.spongepowered.api.item.inventory.type.OrderedInventory { + /** + * Gets and remove the stack at the supplied position in this Inventory. + */ + // @ts-ignore + poll(pos: org.spongepowered.api.item.inventory.property.SlotPos): java.util.Optional; + /** + * Gets and remove the stack at the supplied position in this Inventory. + */ + // @ts-ignore + poll(pos: org.spongepowered.api.item.inventory.property.SlotPos, limit: number): java.util.Optional; + /** + * Gets without removing the stack at the supplied position in this + * Inventory. + */ + // @ts-ignore + peek(pos: org.spongepowered.api.item.inventory.property.SlotPos): java.util.Optional; + /** + * Gets without removing the stack at the supplied position in this + * Inventory. + */ + // @ts-ignore + peek(pos: org.spongepowered.api.item.inventory.property.SlotPos, limit: number): java.util.Optional; + /** + * Sets the item in the specified slot. + */ + // @ts-ignore + set(pos: org.spongepowered.api.item.inventory.property.SlotPos, stack: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult; + /** + * Gets the {@link Slot} at the specified position. + */ + // @ts-ignore + getSlot(pos: org.spongepowered.api.item.inventory.property.SlotPos): java.util.Optional; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.InventoryColumn.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.InventoryColumn.d.ts new file mode 100644 index 00000000..76081f13 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.InventoryColumn.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace type { + // @ts-ignore + interface InventoryColumn extends org.spongepowered.api.item.inventory.type.Inventory2D { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.InventoryRow.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.InventoryRow.d.ts new file mode 100644 index 00000000..8812a903 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.InventoryRow.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace type { + // @ts-ignore + interface InventoryRow extends org.spongepowered.api.item.inventory.type.Inventory2D { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.OrderedInventory.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.OrderedInventory.d.ts new file mode 100644 index 00000000..c83dc768 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.OrderedInventory.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace type { + // @ts-ignore + interface OrderedInventory extends org.spongepowered.api.item.inventory.Inventory { + /** + * Gets and remove the stack at the supplied index in this Inventory. + */ + // @ts-ignore + poll(index: org.spongepowered.api.item.inventory.property.SlotIndex): java.util.Optional; + /** + * Gets and remove the stack at the supplied index in this Inventory. + */ + // @ts-ignore + poll(index: org.spongepowered.api.item.inventory.property.SlotIndex, limit: number): java.util.Optional; + /** + * Gets without removing the stack at the supplied index in this Inventory. + */ + // @ts-ignore + peek(index: org.spongepowered.api.item.inventory.property.SlotIndex): java.util.Optional; + /** + * Gets without removing the stack at the supplied index in this Inventory. + */ + // @ts-ignore + peek(index: org.spongepowered.api.item.inventory.property.SlotIndex, limit: number): java.util.Optional; + /** + * Sets the item in the specified slot. + */ + // @ts-ignore + set(index: org.spongepowered.api.item.inventory.property.SlotIndex, stack: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.inventory.transaction.InventoryTransactionResult; + /** + * Gets the {@link Slot} at the specified position. + */ + // @ts-ignore + getSlot(index: org.spongepowered.api.item.inventory.property.SlotIndex): java.util.Optional; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.PersistentInventory.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.PersistentInventory.d.ts new file mode 100644 index 00000000..117563f1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.PersistentInventory.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace type { + // @ts-ignore + interface PersistentInventory extends org.spongepowered.api.item.inventory.Inventory { + /** + * Mark this inventory as dirty to serve as a flag to the serialisation + * mechanism. + */ + // @ts-ignore + markDirty(): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.TileEntityInventory.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.TileEntityInventory.d.ts new file mode 100644 index 00000000..6e23c59c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.inventory.type.TileEntityInventory.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace inventory { + namespace type { + // @ts-ignore + interface TileEntityInventory extends org.spongepowered.api.item.inventory.type.PersistentInventory, org.spongepowered.api.item.inventory.type.Interactable, org.spongepowered.api.item.inventory.type.CarriedInventory { + /** + * Returns the owner of this Inventory. + */ + // @ts-ignore + getTileEntity(): java.util.Optional; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.merchant.Merchant.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.merchant.Merchant.d.ts new file mode 100644 index 00000000..544c585b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.merchant.Merchant.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace merchant { + // @ts-ignore + interface Merchant extends org.spongepowered.api.data.DataHolder, org.spongepowered.api.item.inventory.Carrier, org.spongepowered.api.world.Locatable { + /** + * Gets the currently trading customer with this merchant. + */ + // @ts-ignore + getCustomer(): java.util.Optional; + /** + * Sets the currently trading customer with this merchant. + *

If the humanoid entity is available, a new trading window may open + * with this merchant.

+ */ + // @ts-ignore + setCustomer(humanoid: org.spongepowered.api.entity.living.Humanoid): void; + /** + * Gets a copy of the used {@link TradeOfferData} containing all available + * {@link TradeOffer}s this {@link Merchant} may use. + */ + // @ts-ignore + getTradeOfferData(): org.spongepowered.api.data.manipulator.mutable.entity.TradeOfferData; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.merchant.TradeOffer.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.merchant.TradeOffer.Builder.d.ts new file mode 100644 index 00000000..e8ad031f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.merchant.TradeOffer.Builder.d.ts @@ -0,0 +1,67 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace merchant { + namespace TradeOffer { + // @ts-ignore + interface Builder extends org.spongepowered.api.data.persistence.DataBuilder { + /** + *

Sets the first selling item of the trade offer to be + * generated.

+ *

Trade offers require at least one item to be generated.

+ */ + // @ts-ignore + firstBuyingItem(item: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.merchant.TradeOffer.Builder; + /** + * Sets the second selling item of the trade offer to be generated. + */ + // @ts-ignore + secondBuyingItem(item: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.merchant.TradeOffer.Builder; + /** + * Sets the selling item of the trade offer to be generated. + */ + // @ts-ignore + sellingItem(item: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.merchant.TradeOffer.Builder; + /** + * Sets the existing uses of the trade offer to be generated. A trade + * offer will become unusable when the uses surpasses the max uses. + */ + // @ts-ignore + uses(uses: number): org.spongepowered.api.item.merchant.TradeOffer.Builder; + /** + * Sets the maximum uses the generated trade offer will have. A trade + * offer will become unusable when the uses surpasses the max uses. + */ + // @ts-ignore + maxUses(maxUses: number): org.spongepowered.api.item.merchant.TradeOffer.Builder; + /** + * Sets the trade offer to be generated to grant experience upon use. + */ + // @ts-ignore + canGrantExperience(experience: boolean): org.spongepowered.api.item.merchant.TradeOffer.Builder; + /** + * Creates a new TradeOffer instance with the current state of the + * builder. + */ + // @ts-ignore + build(): org.spongepowered.api.item.merchant.TradeOffer; + /** + * Sets all the settings of this builder with the provided trade offer + * as a blueprint. + */ + // @ts-ignore + from(offer: org.spongepowered.api.item.merchant.TradeOffer): org.spongepowered.api.item.merchant.TradeOffer.Builder; + /** + * Clears all settings of this builder. + */ + // @ts-ignore + reset(): org.spongepowered.api.item.merchant.TradeOffer.Builder; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.merchant.TradeOffer.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.merchant.TradeOffer.d.ts new file mode 100644 index 00000000..cb7f1932 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.merchant.TradeOffer.d.ts @@ -0,0 +1,75 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace merchant { + // @ts-ignore + interface TradeOffer extends org.spongepowered.api.data.DataSerializable { + /** + * Creates a new {@link Builder} to build a {@link TradeOffer}. + */ + // @ts-ignore + builder(): org.spongepowered.api.item.merchant.TradeOffer.Builder; + /** + * Gets the first buying item. + *

The first buying item is an item that the customer is selling to the + * merchant in exchange for {@link #getSellingItem()}.

+ */ + // @ts-ignore + getFirstBuyingItem(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + /** + * Returns whether this trade offer has a second item the merchant is buying + * from the customer. + */ + // @ts-ignore + hasSecondItem(): boolean; + /** + *

Gets the second buying item.

+ *

The second buying item is an item that the customer is selling to the + * merchant, along with the {@link #getFirstBuyingItem()}, in exchange for + * {@link #getSellingItem()}.

+ */ + // @ts-ignore + getSecondBuyingItem(): java.util.Optional; + /** + * Gets the selling item the {@link Merchant} will give to the customer + * often in exchange for a single item or sometimes, two items from the + * following methods: {@link #getFirstBuyingItem()} and + * {@link #getSecondBuyingItem}. + */ + // @ts-ignore + getSellingItem(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + /** + *

Gets the current uses of this offer.

+ *

Usually, the uses of an offer are limited by the amount of + * {@link #getMaxUses()}. Once the uses reaches the max uses, the offer may + * temporarily become disabled.

+ */ + // @ts-ignore + getUses(): number; + /** + *

Gets the current maximum uses of this offer.

+ *

Usually, the uses of an offer are limited by the amount of maximum + * uses. Once the uses reaches the max uses, the offer may temporarily + * become disabled.

+ */ + // @ts-ignore + getMaxUses(): number; + /** + * Checks if this trade offer has indeed passed the time of which the uses + * surpassed the maximum uses. + */ + // @ts-ignore + hasExpired(): boolean; + /** + * Gets whether this trade offer will grant experience upon usage or not. + */ + // @ts-ignore + doesGrantExperience(): boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.merchant.TradeOfferGenerator.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.merchant.TradeOfferGenerator.Builder.d.ts new file mode 100644 index 00000000..2becb8fb --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.merchant.TradeOfferGenerator.Builder.d.ts @@ -0,0 +1,59 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace merchant { + namespace TradeOfferGenerator { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the {@link ItemStackGenerator} for creating the primary item + * to be bought by the merchant. + */ + // @ts-ignore + setPrimaryItemGenerator(generator: org.spongepowered.api.item.inventory.ItemStackGenerator): org.spongepowered.api.item.merchant.TradeOfferGenerator.Builder; + /** + * Sets the second {@link ItemStackGenerator} for creating the secondary + * item to be bought by the merchant. + */ + // @ts-ignore + setSecondItemGenerator(generator: org.spongepowered.api.item.inventory.ItemStackGenerator): org.spongepowered.api.item.merchant.TradeOfferGenerator.Builder; + /** + * Sets the buying {@link ItemStackGenerator} for creating the selling + * item that players are buying. + */ + // @ts-ignore + setSellingGenerator(sellingGenerator: org.spongepowered.api.item.inventory.ItemStackGenerator): org.spongepowered.api.item.merchant.TradeOfferGenerator.Builder; + /** + * Sets the chance when {@link Random#nextDouble()} is called where + * if the double is greater than the desired experience chance, the + * generated {@link TradeOffer} will grant experience upon a + * successful trade. + */ + // @ts-ignore + experienceChance(experienceChance: number): org.spongepowered.api.item.merchant.TradeOfferGenerator.Builder; + /** + * Sets the {@link VariableAmount} of starting uses for the generated + * {@link TradeOffer}. + */ + // @ts-ignore + startingUses(amount: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.item.merchant.TradeOfferGenerator.Builder; + /** + * Sets the {@link VariableAmount} of maximum uses of the generated + * {@link TradeOffer}. + */ + // @ts-ignore + maxUses(amount: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.item.merchant.TradeOfferGenerator.Builder; + /** + * Builds a new {@link TradeOfferGenerator}. + */ + // @ts-ignore + build(): org.spongepowered.api.item.merchant.TradeOfferGenerator; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.merchant.TradeOfferGenerator.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.merchant.TradeOfferGenerator.d.ts new file mode 100644 index 00000000..68c5fa2f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.merchant.TradeOfferGenerator.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace merchant { + // @ts-ignore + interface TradeOfferGenerator extends org.spongepowered.api.item.merchant.TradeOfferListMutator { + /** + * Gets a new {@link Builder} to create a new {@link TradeOfferGenerator}. + */ + // @ts-ignore + builder(): org.spongepowered.api.item.merchant.TradeOfferGenerator.Builder; + // @ts-ignore + accept(owner: org.spongepowered.api.item.merchant.Merchant, tradeOffers: java.util.List, random: java.util.Random): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.merchant.TradeOfferListMutator.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.merchant.TradeOfferListMutator.d.ts new file mode 100644 index 00000000..17718337 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.merchant.TradeOfferListMutator.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace merchant { + // @ts-ignore + interface TradeOfferListMutator { + /** + * Mutates the provided {@link List list} of {@link TradeOffer}s + * with the provided {@link Merchant} and {@link Random} to provide + * possible contextualized information. + */ + // @ts-ignore + accept(owner: org.spongepowered.api.item.merchant.Merchant, tradeOffers: java.util.List, random: java.util.Random): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.merchant.VillagerRegistry.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.merchant.VillagerRegistry.d.ts new file mode 100644 index 00000000..8577bb5f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.merchant.VillagerRegistry.d.ts @@ -0,0 +1,76 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace merchant { + // @ts-ignore + interface VillagerRegistry { + /** + * Gets an immutable {@link Multimap} of the {@link Career}'s registered + * {code level} to {@link TradeOfferListMutator}s. Note that the map is + * immutable and cannot be modified directly. + */ + // @ts-ignore + getTradeOfferLevelMap(career: org.spongepowered.api.data.type.Career): any; + /** + * Gets the available {@link TradeOfferListMutator}s for the desired + * {@link Career} and {@code level}. + */ + // @ts-ignore + getMutatorsForCareer(career: org.spongepowered.api.data.type.Career, level: number): java.util.Collection; + /** + * Adds the provided {@link TradeOfferListMutator} for the given + * {@link Career} and {@code level}. Note that the level + * must be at least 1. There can be multiple {@link TradeOfferListMutator}s + * per level. + */ + // @ts-ignore + addMutator(career: org.spongepowered.api.data.type.Career, level: number, mutator: org.spongepowered.api.item.merchant.TradeOfferListMutator): org.spongepowered.api.item.merchant.VillagerRegistry; + /** + * Adds the provided {@link TradeOfferListMutator}s for the given + * {@link Career} and {@code level}. Note that the level + * must be at least 1. There can be multiple {@link TradeOfferListMutator}s + * per level. + */ + // @ts-ignore + addMutators(career: org.spongepowered.api.data.type.Career, level: number, mutator: org.spongepowered.api.item.merchant.TradeOfferListMutator, mutators: org.spongepowered.api.item.merchant.TradeOfferListMutator): org.spongepowered.api.item.merchant.VillagerRegistry; + /** + * Sets the provided {@link TradeOfferListMutator} for the given + * {@link Career} and {@code level}. Note that the level + * must be at least 1. There can be multiple {@link TradeOfferListMutator}s + * per level. Any previously provided {@link TradeOfferListMutator}s will + * be erased. + */ + // @ts-ignore + setMutators(career: org.spongepowered.api.data.type.Career, level: number, mutators: java.util.List): org.spongepowered.api.item.merchant.VillagerRegistry; + /** + * Sets the provided {@link TradeOfferListMutator} for the given + * {@link Career} and {@code level}. Note that the level + * must be at least 1. There can be multiple {@link TradeOfferListMutator}s + * per level. Any previously provided {@link TradeOfferListMutator}s will + * be erased. + */ + // @ts-ignore + setMutators(career: org.spongepowered.api.data.type.Career, mutatorMap: any): org.spongepowered.api.item.merchant.VillagerRegistry; + /** + * Generates a new {@link List} of {@link TradeOffer}s based on the + * provided {@link Career}, {@code level}, and {@link Random}. + */ + // @ts-ignore + generateTradeOffers(merchant: org.spongepowered.api.item.merchant.Merchant, career: org.spongepowered.api.data.type.Career, level: number, random: java.util.Random): java.util.Collection; + /** + * Populates the provided {@link List} of {@link TradeOffer}s with + * potentially new {@link TradeOffer}s based on the + * {@link TradeOfferListMutator}s and {@code level}. If there are no + * {@link TradeOfferListMutator}s registered for the desired level + * and {@link Career}, the list remains unmodified. + */ + // @ts-ignore + populateOffers(merchant: org.spongepowered.api.item.merchant.Merchant, currentOffers: java.util.List, career: org.spongepowered.api.data.type.Career, level: number, random: java.util.Random): java.util.List; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.potion.PotionType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.potion.PotionType.d.ts new file mode 100644 index 00000000..2b98d9d6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.potion.PotionType.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace potion { + // @ts-ignore + interface PotionType extends org.spongepowered.api.CatalogType { + // @ts-ignore + getEffects(): java.util.List; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.potion.PotionTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.potion.PotionTypes.d.ts new file mode 100644 index 00000000..5570d7bc --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.potion.PotionTypes.d.ts @@ -0,0 +1,86 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace potion { + // @ts-ignore + class PotionTypes extends java.lang.Object { + // @ts-ignore + public static AWKWARD: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static EMPTY: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static FIRE_RESISTANCE: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static HARMING: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static HEALING: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static INVISIBILITY: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static LEAPING: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static LONG_FIRE_RESISTANCE: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static LONG_INVISIBILITY: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static LONG_LEAPING: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static LONG_NIGHT_VISION: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static LONG_POISON: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static LONG_REGENERATION: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static LONG_SLOWNESS: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static LONG_STRENGTH: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static LONG_SWIFTNESS: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static LONG_WATER_BREATHING: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static LONG_WEAKNESS: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static MUNDANE: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static NIGHT_VISION: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static POISON: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static REGENERATION: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static SLOWNESS: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static STRENGTH: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static STRONG_HARMING: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static STRONG_HEALING: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static STRONG_LEAPING: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static STRONG_POISON: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static STRONG_REGENERATION: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static STRONG_STRENGTH: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static STRONG_SWIFTNESS: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static SWIFTNESS: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static THICK: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static WATER: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static WATER_BREATHING: org.spongepowered.api.item.potion.PotionType; + // @ts-ignore + public static WEAKNESS: org.spongepowered.api.item.potion.PotionType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.Recipe.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.Recipe.d.ts new file mode 100644 index 00000000..cf52272e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.Recipe.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + // @ts-ignore + interface Recipe extends org.spongepowered.api.CatalogType { + /** + * A general result of this recipe. This result may be customized depending + * on the context. + */ + // @ts-ignore + getExemplaryResult(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.RecipeRegistry.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.RecipeRegistry.d.ts new file mode 100644 index 00000000..fae62135 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.RecipeRegistry.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + // @ts-ignore + interface RecipeRegistry extends org.spongepowered.api.registry.CatalogRegistryModule { + /** + * Registers the given {@link Recipe} to make it available to craft. + */ + // @ts-ignore + register(recipe: org.spongepowered.api.item.recipe.Recipe): void; + /** + * Retrieves all recipes registered in this registry. + */ + // @ts-ignore + getRecipes(): java.util.Collection; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.CraftingRecipe.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.CraftingRecipe.d.ts new file mode 100644 index 00000000..54f06b56 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.CraftingRecipe.d.ts @@ -0,0 +1,69 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace crafting { + // @ts-ignore + interface CraftingRecipe extends org.spongepowered.api.item.recipe.Recipe, org.spongepowered.api.CatalogType { + /** + * Checks if the given {@link CraftingGridInventory} fits the required + * constraints to craft this {@link CraftingGridInventory}. + */ + // @ts-ignore + isValid(grid: org.spongepowered.api.item.inventory.crafting.CraftingGridInventory, world: org.spongepowered.api.world.World): boolean; + /** + * This method should only be called if + * {@link #isValid(CraftingGridInventory, World)} returns {@code true}. + *

This method is preferred over the + * {@link CraftingRecipe#getExemplaryResult()} method, as it customizes + * the result further depending on the context.

+ *

Implementing classes are advised to use the output of + * {@link CraftingRecipe#getExemplaryResult()}, modify it accordingly, + * and {@code return} it.

+ */ + // @ts-ignore + getResult(grid: org.spongepowered.api.item.inventory.crafting.CraftingGridInventory): org.spongepowered.api.item.inventory.ItemStackSnapshot; + /** + * Returns the {@link CraftingResult} for the current crafting grid + * configuration and the {@link World} the player is in. + *

Returns + * {@link Optional#empty()} if the arguments do not satisfy + * {@link #isValid(CraftingGridInventory, World)}.

+ */ + // @ts-ignore + getResult(grid: org.spongepowered.api.item.inventory.crafting.CraftingGridInventory, world: org.spongepowered.api.world.World): java.util.Optional; + /** + * This method should only be called if + * {@link #isValid(CraftingGridInventory, World)} returns {@code true}. + *

A list of items to be added to the inventory of the player when they + * craft the result. For example, if a player crafts a + * {@link ItemTypes#CAKE}, the empty buckets are returned to their + * inventory.

+ */ + // @ts-ignore + getRemainingItems(grid: org.spongepowered.api.item.inventory.crafting.CraftingGridInventory): java.util.List; + /** + * The group this CraftingRecipe belongs to or {@link Optional#empty()} + * if not defined. + */ + // @ts-ignore + getGroup(): java.util.Optional; + /** + * Provides a Builder for a {@link ShapedCraftingRecipe}. + */ + // @ts-ignore + shapedBuilder(): org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder; + /** + * Provides a Builder for a {@link ShapelessCraftingRecipe}. + */ + // @ts-ignore + shapelessBuilder(): org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.CraftingRecipeRegistry.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.CraftingRecipeRegistry.d.ts new file mode 100644 index 00000000..3a5618c3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.CraftingRecipeRegistry.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace crafting { + // @ts-ignore + interface CraftingRecipeRegistry extends org.spongepowered.api.item.recipe.RecipeRegistry { + /** + * Retrieves the recipe which would be crafted when the player clicks + * the output slot. + */ + // @ts-ignore + findMatchingRecipe(grid: org.spongepowered.api.item.inventory.crafting.CraftingGridInventory, world: org.spongepowered.api.world.World): java.util.Optional; + /** + * Finds the matching recipe and creates the {@link CraftingResult}, + * which is then returned. + */ + // @ts-ignore + getResult(grid: org.spongepowered.api.item.inventory.crafting.CraftingGridInventory, world: org.spongepowered.api.world.World): java.util.Optional; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.CraftingRecipes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.CraftingRecipes.d.ts new file mode 100644 index 00000000..3b4e45e1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.CraftingRecipes.d.ts @@ -0,0 +1,902 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace crafting { + // @ts-ignore + class CraftingRecipes extends java.lang.Object { + // @ts-ignore + public static ACACIA_BOAT: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ACACIA_DOOR: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ACACIA_FENCE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ACACIA_FENCE_GATE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ACACIA_PLANKS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ACACIA_STAIRS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ACACIA_WOODEN_SLAB: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ACTIVATOR_RAIL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ANDESITE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ANVIL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ARMORDYE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ARMOR_STAND: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ARROW: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BANNERADDPATTERN: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BANNERDUPLICATE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BEACON: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BEETROOT_SOUP: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BIRCH_BOAT: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BIRCH_DOOR: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BIRCH_FENCE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BIRCH_FENCE_GATE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BIRCH_PLANKS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BIRCH_STAIRS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BIRCH_WOODEN_SLAB: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLACK_BANNER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLACK_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLACK_BED_FROM_WHITE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLACK_CARPET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLACK_CONCRETE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLACK_STAINED_GLASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLACK_STAINED_GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLACK_STAINED_HARDENED_CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLACK_WOOL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLAZE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLUE_BANNER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLUE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLUE_BED_FROM_WHITE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLUE_CARPET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLUE_CONCRETE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLUE_STAINED_GLASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLUE_STAINED_GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLUE_STAINED_HARDENED_CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BLUE_WOOL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BOAT: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BONE_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BONE_MEAL_FROM_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BONE_MEAL_FROM_BONE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BOOK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BOOKCLONING: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BOOKSHELF: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BOW: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BOWL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BREAD: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BREWING_STAND: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BRICK_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BRICK_SLAB: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BRICK_STAIRS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BROWN_BANNER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BROWN_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BROWN_BED_FROM_WHITE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BROWN_CARPET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BROWN_CONCRETE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BROWN_STAINED_GLASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BROWN_STAINED_GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BROWN_STAINED_HARDENED_CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BROWN_WOOL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static BUCKET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CAKE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CARROT_ON_A_STICK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CAULDRON: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CHEST: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CHEST_MINECART: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CHISELED_QUARTZ_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CHISELED_RED_SANDSTONE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CHISELED_SANDSTONE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CHISELED_STONEBRICK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static COAL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static COAL_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static COARSE_DIRT: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static COBBLESTONE_SLAB: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static COBBLESTONE_WALL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static COMPARATOR: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static COMPASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static COOKIE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CRAFTING_TABLE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CYAN_BANNER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CYAN_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CYAN_BED_FROM_WHITE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CYAN_CARPET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CYAN_CONCRETE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CYAN_DYE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CYAN_STAINED_GLASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CYAN_STAINED_GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CYAN_STAINED_HARDENED_CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static CYAN_WOOL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DARK_OAK_BOAT: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DARK_OAK_DOOR: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DARK_OAK_FENCE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DARK_OAK_FENCE_GATE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DARK_OAK_PLANKS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DARK_OAK_STAIRS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DARK_OAK_WOODEN_SLAB: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DARK_PRISMARINE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DAYLIGHT_DETECTOR: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DETECTOR_RAIL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DIAMOND: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DIAMOND_AXE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DIAMOND_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DIAMOND_BOOTS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DIAMOND_CHESTPLATE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DIAMOND_HELMET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DIAMOND_HOE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DIAMOND_LEGGINGS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DIAMOND_PICKAXE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DIAMOND_SHOVEL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DIAMOND_SWORD: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DIORITE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DISPENSER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static DROPPER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static EMERALD: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static EMERALD_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ENCHANTING_TABLE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ENDER_CHEST: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ENDER_EYE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static END_BRICKS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static END_CRYSTAL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static END_ROD: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static FENCE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static FENCE_GATE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static FERMENTED_SPIDER_EYE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static FIREWORKS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static FIRE_CHARGE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static FISHING_ROD: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static FLINT_AND_STEEL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static FLOWER_POT: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static FURNACE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static FURNACE_MINECART: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GLASS_BOTTLE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GLOWSTONE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GOLDEN_APPLE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GOLDEN_AXE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GOLDEN_BOOTS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GOLDEN_CARROT: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GOLDEN_CHESTPLATE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GOLDEN_HELMET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GOLDEN_HOE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GOLDEN_LEGGINGS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GOLDEN_PICKAXE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GOLDEN_RAIL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GOLDEN_SHOVEL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GOLDEN_SWORD: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GOLD_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GOLD_INGOT_FROM_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GOLD_INGOT_FROM_NUGGETS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GOLD_NUGGET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GRANITE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GRAY_BANNER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GRAY_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GRAY_BED_FROM_WHITE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GRAY_CARPET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GRAY_CONCRETE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GRAY_DYE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GRAY_STAINED_GLASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GRAY_STAINED_GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GRAY_STAINED_HARDENED_CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GRAY_WOOL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GREEN_BANNER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GREEN_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GREEN_BED_FROM_WHITE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GREEN_CARPET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GREEN_CONCRETE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GREEN_STAINED_GLASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GREEN_STAINED_GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GREEN_STAINED_HARDENED_CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static GREEN_WOOL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static HAY_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static HEAVY_WEIGHTED_PRESSURE_PLATE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static HOPPER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static HOPPER_MINECART: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static IRON_AXE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static IRON_BARS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static IRON_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static IRON_BOOTS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static IRON_CHESTPLATE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static IRON_DOOR: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static IRON_HELMET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static IRON_HOE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static IRON_INGOT_FROM_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static IRON_INGOT_FROM_NUGGETS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static IRON_LEGGINGS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static IRON_NUGGET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static IRON_PICKAXE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static IRON_SHOVEL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static IRON_SWORD: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static IRON_TRAPDOOR: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ITEM_FRAME: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static JUKEBOX: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static JUNGLE_BOAT: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static JUNGLE_DOOR: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static JUNGLE_FENCE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static JUNGLE_FENCE_GATE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static JUNGLE_PLANKS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static JUNGLE_STAIRS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static JUNGLE_WOODEN_SLAB: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LADDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LAPIS_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LAPIS_LAZULI: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LEAD: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LEATHER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LEATHER_BOOTS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LEATHER_CHESTPLATE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LEATHER_HELMET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LEATHER_LEGGINGS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LEVER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_BLUE_BANNER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_BLUE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_BLUE_BED_FROM_WHITE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_BLUE_CARPET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_BLUE_CONCRETE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_BLUE_DYE_FROM_BLUE_ORCHID: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_BLUE_DYE_FROM_LAPIS_BONEMEAL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_BLUE_STAINED_GLASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_BLUE_STAINED_GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_BLUE_STAINED_HARDENED_CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_BLUE_WOOL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_GRAY_BANNER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_GRAY_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_GRAY_BED_FROM_WHITE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_GRAY_CARPET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_GRAY_CONCRETE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_GRAY_DYE_FROM_AZURE_BLUET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_GRAY_DYE_FROM_GRAY_BONEMEAL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_GRAY_DYE_FROM_INK_BONEMEAL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_GRAY_DYE_FROM_OXEYE_DAISY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_GRAY_DYE_FROM_WHITE_TULIP: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_GRAY_STAINED_GLASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_GRAY_STAINED_GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_GRAY_STAINED_HARDENED_CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_GRAY_WOOL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIGHT_WEIGHTED_PRESSURE_PLATE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIME_BANNER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIME_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIME_BED_FROM_WHITE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIME_CARPET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIME_CONCRETE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIME_DYE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIME_STAINED_GLASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIME_STAINED_GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIME_STAINED_HARDENED_CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIME_WOOL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static LIT_PUMPKIN: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAGENTA_BANNER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAGENTA_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAGENTA_BED_FROM_WHITE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAGENTA_CARPET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAGENTA_CONCRETE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAGENTA_DYE_FROM_ALLIUM: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAGENTA_DYE_FROM_LAPIS_INK_BONEMEAL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAGENTA_DYE_FROM_LAPIS_RED_PINK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAGENTA_DYE_FROM_LILAC: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAGENTA_DYE_FROM_PURPLE_AND_PINK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAGENTA_STAINED_GLASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAGENTA_STAINED_GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAGENTA_STAINED_HARDENED_CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAGENTA_WOOL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAGMA: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAGMA_CREAM: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAP: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAPCLONING: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MAPEXTENDING: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MELON_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MELON_SEEDS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MINECART: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MOSSY_COBBLESTONE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MOSSY_COBBLESTONE_WALL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MOSSY_STONEBRICK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static MUSHROOM_STEW: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static NETHER_BRICK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static NETHER_BRICK_FENCE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static NETHER_BRICK_SLAB: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static NETHER_BRICK_STAIRS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static NETHER_WART_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static NOTEBLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static OAK_PLANKS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static OAK_STAIRS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static OAK_WOODEN_SLAB: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static OBSERVER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ORANGE_BANNER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ORANGE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ORANGE_BED_FROM_WHITE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ORANGE_CARPET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ORANGE_CONCRETE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ORANGE_DYE_FROM_ORANGE_TULIP: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ORANGE_DYE_FROM_RED_YELLOW: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ORANGE_STAINED_GLASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ORANGE_STAINED_GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ORANGE_STAINED_HARDENED_CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static ORANGE_WOOL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PAINTING: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PAPER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PILLAR_QUARTZ_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PINK_BANNER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PINK_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PINK_BED_FROM_WHITE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PINK_CARPET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PINK_CONCRETE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PINK_DYE_FROM_PEONY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PINK_DYE_FROM_PINK_TULIP: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PINK_DYE_FROM_RED_BONEMEAL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PINK_STAINED_GLASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PINK_STAINED_GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PINK_STAINED_HARDENED_CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PINK_WOOL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PISTON: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static POLISHED_ANDESITE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static POLISHED_DIORITE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static POLISHED_GRANITE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PRISMARINE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PRISMARINE_BRICKS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PUMPKIN_PIE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PUMPKIN_SEEDS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PURPLE_BANNER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PURPLE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PURPLE_BED_FROM_WHITE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PURPLE_CARPET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PURPLE_CONCRETE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PURPLE_DYE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PURPLE_SHULKER_BOX: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PURPLE_STAINED_GLASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PURPLE_STAINED_GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PURPLE_STAINED_HARDENED_CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PURPLE_WOOL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PURPUR_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PURPUR_PILLAR: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PURPUR_SLAB: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static PURPUR_STAIRS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static QUARTZ_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static QUARTZ_SLAB: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static QUARTZ_STAIRS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RABBIT_STEW_FROM_BROWN_MUSHROOM: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RABBIT_STEW_FROM_RED_MUSHROOM: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RAIL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static REDSTONE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static REDSTONE_BLOCK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static REDSTONE_LAMP: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static REDSTONE_TORCH: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_BANNER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_BED_FROM_WHITE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_CARPET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_CONCRETE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_DYE_FROM_BEETROOT: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_DYE_FROM_POPPY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_DYE_FROM_ROSE_BUSH: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_DYE_FROM_TULIP: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_NETHER_BRICK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_SANDSTONE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_SANDSTONE_SLAB: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_SANDSTONE_STAIRS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_STAINED_GLASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_STAINED_GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_STAINED_HARDENED_CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static RED_WOOL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static REPAIRITEM: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static REPEATER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SANDSTONE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SANDSTONE_SLAB: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SANDSTONE_STAIRS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SEA_LANTERN: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SHEARS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SHIELD: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SHIELDDECORATION: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SHULKERBOXCOLORING: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SIGN: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SLIME: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SLIME_BALL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SMOOTH_RED_SANDSTONE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SMOOTH_SANDSTONE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SNOW: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SNOW_LAYER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SPECKLED_MELON: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SPECTRAL_ARROW: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SPRUCE_BOAT: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SPRUCE_DOOR: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SPRUCE_FENCE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SPRUCE_FENCE_GATE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SPRUCE_PLANKS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SPRUCE_STAIRS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SPRUCE_WOODEN_SLAB: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static STICK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static STICKY_PISTON: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static STONEBRICK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static STONE_AXE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static STONE_BRICK_SLAB: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static STONE_BRICK_STAIRS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static STONE_BUTTON: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static STONE_HOE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static STONE_PICKAXE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static STONE_PRESSURE_PLATE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static STONE_SHOVEL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static STONE_SLAB: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static STONE_STAIRS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static STONE_SWORD: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static STRING_TO_WOOL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static SUGAR: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static TIPPEDARROW: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static TNT: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static TNT_MINECART: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static TORCH: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static TRAPDOOR: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static TRAPPED_CHEST: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static TRIPWIRE_HOOK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WHEAT: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WHITE_BANNER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WHITE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WHITE_CARPET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WHITE_CONCRETE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WHITE_STAINED_GLASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WHITE_STAINED_GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WHITE_STAINED_HARDENED_CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WOODEN_AXE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WOODEN_BUTTON: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WOODEN_DOOR: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WOODEN_HOE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WOODEN_PICKAXE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WOODEN_PRESSURE_PLATE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WOODEN_SHOVEL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WOODEN_SWORD: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static WRITABLE_BOOK: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static YELLOW_BANNER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static YELLOW_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static YELLOW_BED_FROM_WHITE_BED: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static YELLOW_CARPET: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static YELLOW_CONCRETE_POWDER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static YELLOW_DYE_FROM_DANDELION: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static YELLOW_DYE_FROM_SUNFLOWER: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static YELLOW_STAINED_GLASS: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static YELLOW_STAINED_GLASS_PANE: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static YELLOW_STAINED_HARDENED_CLAY: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + // @ts-ignore + public static YELLOW_WOOL: org.spongepowered.api.item.recipe.crafting.CraftingRecipe; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.CraftingResult.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.CraftingResult.d.ts new file mode 100644 index 00000000..285ee8d7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.CraftingResult.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace crafting { + // @ts-ignore + class CraftingResult extends java.lang.Object { + /** + * Creates a new {@link CraftingResult}. + *

Note that this may be replaced with a static of method in the + * future.

+ */ + // @ts-ignore + constructor(result: org.spongepowered.api.item.inventory.ItemStackSnapshot, remainingItems: java.util.List) + /** + * This method should be used instead of the + * {@link CraftingRecipe#getExemplaryResult()} method, as it customizes the + * result further depending on the specified ingredient + * {@link ItemStackSnapshot}. It is advised to use the output of + * {@link CraftingRecipe#getExemplaryResult()}, modify it accordingly, and + * {@code return} it. + */ + // @ts-ignore + public getResult(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + /** + * Returns a list of {@link ItemStackSnapshot} to be set in the input + * {@link CraftingGridInventory}, contains {@link ItemStackSnapshot#NONE}s for + * slots which should be cleared. + */ + // @ts-ignore + public getRemainingItems(): java.util.List; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.Ingredient.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.Ingredient.Builder.d.ts new file mode 100644 index 00000000..ec0d6e26 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.Ingredient.Builder.d.ts @@ -0,0 +1,79 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace crafting { + namespace Ingredient { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Adds a predicate for matching the ingredient. + *

Also clears all previously set {@link #withDisplay} items.

+ *

All predicates and items are ORed together.

+ *

Use {@link #from} to create an ingredient from another one.

+ */ + // @ts-ignore + with(predicate: java.util.function$.Predicate): org.spongepowered.api.item.recipe.crafting.Ingredient.Builder; + /** + * Adds a GameDictionary Entry as Predicate for matching the ingredient. + * Also clears all previously set {@link #withDisplay} items and then + * adds {@link org.spongepowered.api.GameDictionary.Entry#getTemplate()} + * to it. + *

All predicates and items are ORed together.

+ */ + // @ts-ignore + with(entry: org.spongepowered.api.GameDictionary.Entry): org.spongepowered.api.item.recipe.crafting.Ingredient.Builder; + /** + * Adds one or more ItemTypes for matching the ingredient. + * The ItemTypes are also used as display items. + * All predicates and items are ORed together. + */ + // @ts-ignore + with(types: org.spongepowered.api.item.ItemType): org.spongepowered.api.item.recipe.crafting.Ingredient.Builder; + /** + * Adds one or more ItemStacks for matching the ingredient. + * The ItemStacks are also used as display items. + * All predicates and items are ORed together. + */ + // @ts-ignore + with(items: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.recipe.crafting.Ingredient.Builder; + /** + * Adds one or more ItemStackSnapshots for matching the ingredient. + * The Snapshots are also used as display items. + * All predicates and items are ORed together. + */ + // @ts-ignore + with(items: org.spongepowered.api.item.inventory.ItemStackSnapshot): org.spongepowered.api.item.recipe.crafting.Ingredient.Builder; + /** + * Adds ItemTypes used to display this Ingredient in a recipe. + * These are not used for matching the recipe. + */ + // @ts-ignore + withDisplay(types: org.spongepowered.api.item.ItemType): org.spongepowered.api.item.recipe.crafting.Ingredient.Builder; + /** + * Adds ItemStacks used to display this Ingredient in a recipe. + * These are not used for matching the recipe. + */ + // @ts-ignore + withDisplay(items: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.recipe.crafting.Ingredient.Builder; + /** + * Adds ItemStackSnasphots used to display this Ingredient in a recipe. + * These are not used for matching the recipe. + */ + // @ts-ignore + withDisplay(items: org.spongepowered.api.item.inventory.ItemStackSnapshot): org.spongepowered.api.item.recipe.crafting.Ingredient.Builder; + /** + * Builds the {@link Ingredient} with the specified items and or predicates. + */ + // @ts-ignore + build(): org.spongepowered.api.item.recipe.crafting.Ingredient; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.Ingredient.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.Ingredient.d.ts new file mode 100644 index 00000000..130c79e4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.Ingredient.d.ts @@ -0,0 +1,52 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace crafting { + // @ts-ignore + interface Ingredient { + // @ts-ignore + NONE: org.spongepowered.api.item.recipe.crafting.Ingredient; + // @ts-ignore + test(itemStack: org.spongepowered.api.item.inventory.ItemStack): boolean; + /** + * Returns the list of {@link ItemStack}s used to display the ingredient in a recipe. + * These are not necessarily all the items that this Ingredient can match. + */ + // @ts-ignore + displayedItems(): java.util.List; + /** + * Creates a new {@link Builder} to build an {@link Ingredient}. + */ + // @ts-ignore + builder(): org.spongepowered.api.item.recipe.crafting.Ingredient.Builder; + /** + * Creates a new {@link Ingredient} for the provided {@link ItemStackSnapshot}s. + */ + // @ts-ignore + of(snapshots: org.spongepowered.api.item.inventory.ItemStackSnapshot): org.spongepowered.api.item.recipe.crafting.Ingredient; + /** + * Creates a new {@link Ingredient} for the provided {@link ItemStack}s. + */ + // @ts-ignore + of(itemStacks: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.recipe.crafting.Ingredient; + /** + * Creates a new {@link Ingredient} for the provided {@link ItemType}s. + */ + // @ts-ignore + of(itemTypes: org.spongepowered.api.item.ItemType): org.spongepowered.api.item.recipe.crafting.Ingredient; + /** + * Creates a new {@link Ingredient} for the provided + * {@link org.spongepowered.api.GameDictionary.Entry}s. + */ + // @ts-ignore + of(entries: org.spongepowered.api.GameDictionary.Entry): org.spongepowered.api.item.recipe.crafting.Ingredient; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.AisleStep.ResultStep.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.AisleStep.ResultStep.d.ts new file mode 100644 index 00000000..416eb4f8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.AisleStep.ResultStep.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace crafting { + namespace ShapedCraftingRecipe { + namespace Builder { + namespace AisleStep { + // @ts-ignore + interface ResultStep extends org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.AisleStep, org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.ResultStep { + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.AisleStep.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.AisleStep.d.ts new file mode 100644 index 00000000..edb3ea92 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.AisleStep.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace crafting { + namespace ShapedCraftingRecipe { + namespace Builder { + // @ts-ignore + interface AisleStep extends org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder { + /** + * Sets an ingredient based on the aisle pattern. + *

Sets the ingredient to {@link Ingredient#NONE} if + * {@code null} is specified.

+ */ + // @ts-ignore + where(symbol: string, ingredient: org.spongepowered.api.item.recipe.crafting.Ingredient): org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.AisleStep.ResultStep; + /** + * Sets multiple ingredients based on the aisle pattern. + */ + // @ts-ignore + where(ingredientMap: java.util.Map): org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.AisleStep.ResultStep; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.EndStep.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.EndStep.d.ts new file mode 100644 index 00000000..fa52e628 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.EndStep.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace crafting { + namespace ShapedCraftingRecipe { + namespace Builder { + // @ts-ignore + interface EndStep extends org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder, org.spongepowered.api.util.CatalogBuilder { + /** + * Sets the group of the recipe. + */ + // @ts-ignore + group(name: string): org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.EndStep; + // @ts-ignore + id(id: string): org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.EndStep; + // @ts-ignore + name(name: string): org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.EndStep; + // @ts-ignore + name(name: org.spongepowered.api.text.translation.Translation): org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.EndStep; + /** + * Builds a {@link ShapedCraftingRecipe} from this builder. + */ + // @ts-ignore + build(id: string, plugin: java.lang.Object): org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.ResultStep.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.ResultStep.d.ts new file mode 100644 index 00000000..6ebad034 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.ResultStep.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace crafting { + namespace ShapedCraftingRecipe { + namespace Builder { + // @ts-ignore + interface ResultStep extends org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder { + /** + * Sets the resultant {@link ItemStackSnapshot} for when this shaped + * recipe is correctly crafted. + */ + // @ts-ignore + result(result: org.spongepowered.api.item.inventory.ItemStackSnapshot): org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.EndStep; + /** + * Sets the resultant {@link ItemStack} for when this shaped recipe + * is correctly crafted. + */ + // @ts-ignore + result(result: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.EndStep; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.RowsStep.ResultStep.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.RowsStep.ResultStep.d.ts new file mode 100644 index 00000000..9dedb89a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.RowsStep.ResultStep.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace crafting { + namespace ShapedCraftingRecipe { + namespace Builder { + namespace RowsStep { + // @ts-ignore + interface ResultStep extends org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.RowsStep, org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.ResultStep { + } + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.RowsStep.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.RowsStep.d.ts new file mode 100644 index 00000000..8497da18 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.RowsStep.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace crafting { + namespace ShapedCraftingRecipe { + namespace Builder { + // @ts-ignore + interface RowsStep extends org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder { + /** + * Adds a row of ingredients. + */ + // @ts-ignore + row(ingredients: org.spongepowered.api.item.recipe.crafting.Ingredient): org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.RowsStep.ResultStep; + /** + * Adds a row of ingredients filling the skipped + * columns with {@link Ingredient#NONE}. + */ + // @ts-ignore + row(skip: number, ingredients: org.spongepowered.api.item.recipe.crafting.Ingredient): org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.RowsStep.ResultStep; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.d.ts new file mode 100644 index 00000000..a1cd08f3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace crafting { + namespace ShapedCraftingRecipe { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Start building a new recipe based on the aisle pattern. + *

Use {@link AisleStep#where} to assign ingredients to characters + * of the aisles.

+ *

The space character will be defaulted to {@link Ingredient#NONE} + * if not specified.

+ *

Any other not assigned characters will cause an Exception + * when {@link EndStep#build}ing the Recipe.

+ */ + // @ts-ignore + aisle(aisle: string): org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.AisleStep; + /** + * Start building a new recipe with ingredients based on rows. + * After this call {@link RowsStep#row} for each row of your recipe. + */ + // @ts-ignore + rows(): org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder.RowsStep; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.d.ts new file mode 100644 index 00000000..6f37cb28 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace crafting { + // @ts-ignore + interface ShapedCraftingRecipe extends org.spongepowered.api.item.recipe.crafting.CraftingRecipe { + /** + * Creates a new {@link ShapedCraftingRecipe.Builder} to build a {@link ShapedCraftingRecipe}. + */ + // @ts-ignore + builder(): org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder; + /** + * Returns the ingredient predicate at the specified location in this + * recipe. + */ + // @ts-ignore + getIngredient(x: number, y: number): org.spongepowered.api.item.recipe.crafting.Ingredient; + /** + * Gets the width of the grid this ShapedCraftingRecipe fits into. + */ + // @ts-ignore + getWidth(): number; + /** + * Gets the height of the grid this ShapedCraftingRecipe fits into. + */ + // @ts-ignore + getHeight(): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.EndStep.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.EndStep.d.ts new file mode 100644 index 00000000..0f4ecc6c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.EndStep.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace crafting { + namespace ShapelessCraftingRecipe { + namespace Builder { + // @ts-ignore + interface EndStep extends org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder, org.spongepowered.api.util.CatalogBuilder { + /** + * Sets the group of the recipe. + */ + // @ts-ignore + group(name: string): org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.EndStep; + // @ts-ignore + id(id: string): org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.EndStep; + // @ts-ignore + name(name: string): org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.EndStep; + // @ts-ignore + name(name: org.spongepowered.api.text.translation.Translation): org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.EndStep; + /** + * Builds a new {@link ShapelessCraftingRecipe} from this builder. + */ + // @ts-ignore + build(id: string, plugin: java.lang.Object): org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.ResultStep.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.ResultStep.d.ts new file mode 100644 index 00000000..2af2f0e3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.ResultStep.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace crafting { + namespace ShapelessCraftingRecipe { + namespace Builder { + // @ts-ignore + interface ResultStep extends org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder { + /** + * Changes the result and returns this builder. The result is the + * {@link ItemStack} created when the recipe is fulfilled. + */ + // @ts-ignore + result(result: org.spongepowered.api.item.inventory.ItemStackSnapshot): org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.EndStep; + /** + * Changes the result and returns this builder. The result is the + * {@link ItemStack} created when the recipe is fulfilled. + */ + // @ts-ignore + result(result: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.EndStep; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.d.ts new file mode 100644 index 00000000..7527cc0c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace crafting { + namespace ShapelessCraftingRecipe { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Adds an ingredient predicate to the requirements of this + * {@link ShapelessCraftingRecipe}. + */ + // @ts-ignore + addIngredient(ingredient: org.spongepowered.api.item.recipe.crafting.Ingredient): org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder.ResultStep; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.d.ts new file mode 100644 index 00000000..ad38f72f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace crafting { + // @ts-ignore + interface ShapelessCraftingRecipe extends org.spongepowered.api.item.recipe.crafting.CraftingRecipe { + /** + * Creates a new {@link Builder} to build a {@link ShapelessCraftingRecipe}. + */ + // @ts-ignore + builder(): org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder; + /** + * Gets the ingredient predicates for this ShapelessCraftingRecipe. + */ + // @ts-ignore + getIngredientPredicates(): java.util.List; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.EndStep.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.EndStep.d.ts new file mode 100644 index 00000000..2ea8d964 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.EndStep.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace smelting { + namespace SmeltingRecipe { + namespace Builder { + // @ts-ignore + interface EndStep extends org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder, org.spongepowered.api.util.CatalogBuilder { + /** + * Changes the experience and returns this builder. It is the + * required amount of experience the user must possess in order to + * be able to fulfill the recipe. + */ + // @ts-ignore + experience(experience: number): org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.EndStep; + // @ts-ignore + id(id: string): org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.EndStep; + // @ts-ignore + name(name: string): org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.EndStep; + // @ts-ignore + name(name: org.spongepowered.api.text.translation.Translation): org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.EndStep; + // @ts-ignore + build(): org.spongepowered.api.item.recipe.smelting.SmeltingRecipe; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.ResultStep.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.ResultStep.d.ts new file mode 100644 index 00000000..08603e43 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.ResultStep.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace smelting { + namespace SmeltingRecipe { + namespace Builder { + // @ts-ignore + interface ResultStep extends org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder { + /** + * Changes the result and returns this builder. The result is the + * {@link ItemStack} created when the recipe is fulfilled. + */ + // @ts-ignore + result(result: org.spongepowered.api.item.inventory.ItemStackSnapshot): org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.EndStep; + /** + * Changes the result and returns this builder. The result is the + * {@link ItemStack} created when the recipe is fulfilled. + */ + // @ts-ignore + result(result: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.EndStep; + } + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.d.ts new file mode 100644 index 00000000..da714b09 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace smelting { + namespace SmeltingRecipe { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Changes the ingredient predicate and returns this builder. + * The ingredient predicate is the predicate which must return + * {@code true} in order for this recipe to be fulfilled. + */ + // @ts-ignore + ingredient(ingredientPredicate: java.util.function$.Predicate, exemplaryIngredient: org.spongepowered.api.item.inventory.ItemStackSnapshot): org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.ResultStep; + /** + * Changes the ingredient predicate and returns this builder. + * The ingredient predicate is the predicate which must return + * {@code true} in order for this recipe to be fulfilled. + *

The vanilla {@link ItemStack} matching behavior is used as the + * ingredient predicate.

+ */ + // @ts-ignore + ingredient(ingredient: org.spongepowered.api.item.inventory.ItemStackSnapshot): org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.ResultStep; + /** + * Changes the ingredient and returns this builder. The ingredient is + * the {@link ItemStack} required in order for the recipe to be + * fulfilled. + */ + // @ts-ignore + ingredient(ingredient: org.spongepowered.api.item.inventory.ItemStack): org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.ResultStep; + /** + * Changes the ingredient and returns this builder. The ingredient is + * the {@link ItemStack} required in order for the recipe to be + * fulfilled. + */ + // @ts-ignore + ingredient(ingredient: org.spongepowered.api.item.ItemType): org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder.ResultStep; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.d.ts new file mode 100644 index 00000000..acda3dfa --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.d.ts @@ -0,0 +1,49 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace smelting { + // @ts-ignore + interface SmeltingRecipe extends org.spongepowered.api.item.recipe.Recipe, org.spongepowered.api.CatalogType { + /** + * Builds a simple furnace recipe. Note, that you can implement the + * {@link SmeltingRecipe} manually, too. + */ + // @ts-ignore + builder(): org.spongepowered.api.item.recipe.smelting.SmeltingRecipe.Builder; + // @ts-ignore + getId(): string; + // @ts-ignore + getName(): string; + /** + * An exemplary {@link ItemStackSnapshot}, which will always make + * {@link #isValid(ItemStackSnapshot)} return {@code true}. + */ + // @ts-ignore + getExemplaryIngredient(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + /** + * Checks if the given {@link ItemStackSnapshot} fits the required + * constraints to craft this {@link SmeltingRecipe}. + */ + // @ts-ignore + isValid(ingredient: org.spongepowered.api.item.inventory.ItemStackSnapshot): boolean; + /** + *

Returns the {@link SmeltingResult} containing the resulting + * {@link ItemStackSnapshot} and the amount of experience released.

+ *

This method should be used instead of the {@link #getExemplaryResult()} + * method, as it customizes the result further depending on the specified + * ingredient {@link ItemStackSnapshot}. It is advised to use + * the output of {@link #getExemplaryResult()}, modify it accordingly, + * and {@code return} it.

+ */ + // @ts-ignore + getResult(ingredient: org.spongepowered.api.item.inventory.ItemStackSnapshot): java.util.Optional; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.smelting.SmeltingRecipeRegistry.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.smelting.SmeltingRecipeRegistry.d.ts new file mode 100644 index 00000000..ebd686df --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.smelting.SmeltingRecipeRegistry.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace smelting { + // @ts-ignore + interface SmeltingRecipeRegistry extends org.spongepowered.api.item.recipe.RecipeRegistry { + /** + * Retrieves the recipe used when smelting the given ingredient. + */ + // @ts-ignore + findMatchingRecipe(ingredient: org.spongepowered.api.item.inventory.ItemStackSnapshot): java.util.Optional; + /** + * Finds the matching recipe and creates the {@link SmeltingResult}, + * which is then returned. + */ + // @ts-ignore + getResult(ingredient: org.spongepowered.api.item.inventory.ItemStackSnapshot): java.util.Optional; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.smelting.SmeltingResult.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.smelting.SmeltingResult.d.ts new file mode 100644 index 00000000..31848d0f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.item.recipe.smelting.SmeltingResult.d.ts @@ -0,0 +1,44 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace item { + namespace recipe { + namespace smelting { + // @ts-ignore + class SmeltingResult extends java.lang.Object { + /** + * Creates a new {@link SmeltingResult}. + *

Note that this may be replaced with a static of method in the + * future.

+ */ + // @ts-ignore + constructor(result: org.spongepowered.api.item.inventory.ItemStackSnapshot, experience: number) + /** + * This method should be used instead of the + * {@link SmeltingRecipe#getExemplaryResult()} method, as it customizes the + * result further depending on the specified ingredient + * {@link ItemStackSnapshot}. It is advised to use the output of + * {@link SmeltingRecipe#getExemplaryResult()}, modify it accordingly, and + * {@code return} it. + */ + // @ts-ignore + public getResult(): org.spongepowered.api.item.inventory.ItemStackSnapshot; + /** + * Returns the amount of experience released after completing a recipe. + */ + // @ts-ignore + public getExperience(): number; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.network.ChannelBinding.IndexedMessageChannel.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.network.ChannelBinding.IndexedMessageChannel.d.ts new file mode 100644 index 00000000..2062bd90 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.network.ChannelBinding.IndexedMessageChannel.d.ts @@ -0,0 +1,66 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace network { + namespace ChannelBinding { + // @ts-ignore + interface IndexedMessageChannel extends org.spongepowered.api.network.ChannelBinding { + /** + * Register a message class to this channel without a receiving handler. + * This will only allow the message to be sent, this channel binding + * will not be able to receive the message. + *

The message ID is used to identify this message class as it is + * sent and received across the network, it is a single byte and thus + * has a range of 0 to 255.

+ */ + // @ts-ignore + registerMessage(messageClass: java.lang.Class, messageId: number): void; + /** + * Register a message class to this channel and a handler for receiving + * the message. The handler is invoked every time the message is sent to + * either side. + */ + // @ts-ignore + registerMessage(messageClass: java.lang.Class, messageId: number, handler: org.spongepowered.api.network.MessageHandler): void; + /** + * Register a message class to this channel and a handler for receiving + * the message. The handler is invoked every time the message is sent to + * the given side. + */ + // @ts-ignore + registerMessage(messageClass: java.lang.Class, messageId: number, side: org.spongepowered.api.Platform.Type, handler: org.spongepowered.api.network.MessageHandler): void; + /** + * Register a {@link MessageHandler} for a {@link Message}. + */ + // @ts-ignore + addHandler(messageClass: java.lang.Class, side: org.spongepowered.api.Platform.Type, handler: org.spongepowered.api.network.MessageHandler): void; + /** + * Register a {@link MessageHandler} for a {@link Message} + */ + // @ts-ignore + addHandler(messageClass: java.lang.Class, handler: org.spongepowered.api.network.MessageHandler): void; + /** + * Sends the message to the player across this channel. The message may + * not be sent if the player doesn't have a registered handler. + */ + // @ts-ignore + sendTo(player: org.spongepowered.api.entity.living.player.Player, message: org.spongepowered.api.network.Message): void; + /** + * Sends the message to the server. The message may not be sent if there + * is no registered handler. This must be called from + * the client side. + */ + // @ts-ignore + sendToServer(message: org.spongepowered.api.network.Message): void; + /** + * Sends the message to all players on the server. + */ + // @ts-ignore + sendToAll(message: org.spongepowered.api.network.Message): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.network.ChannelBinding.RawDataChannel.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.network.ChannelBinding.RawDataChannel.d.ts new file mode 100644 index 00000000..43ca2dd7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.network.ChannelBinding.RawDataChannel.d.ts @@ -0,0 +1,49 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace network { + namespace ChannelBinding { + // @ts-ignore + interface RawDataChannel extends org.spongepowered.api.network.ChannelBinding { + /** + * Adds a listener to this channel that is invoked every time data is + * sent to it on either side. + */ + // @ts-ignore + addListener(listener: org.spongepowered.api.network.RawDataListener): void; + /** + * Adds a listener to this channel that is invoked every time data is + * sent to it on the given side. + */ + // @ts-ignore + addListener(side: org.spongepowered.api.Platform.Type, listener: org.spongepowered.api.network.RawDataListener): void; + /** + * Removes the listener from handling data. + */ + // @ts-ignore + removeListener(listener: org.spongepowered.api.network.RawDataListener): void; + /** + * Sends the raw payload to the player across this channel. The data may + * not be sent if the player doesn't have a registered handler. + */ + // @ts-ignore + sendTo(player: org.spongepowered.api.entity.living.player.Player, payload: java.util.function$.Consumer): void; + /** + * Sends the raw payload to the server. The data may not be sent if + * there is no registered handler. This must be called + * from the client side. + */ + // @ts-ignore + sendToServer(payload: java.util.function$.Consumer): void; + /** + * Sends the raw payload to all players on the server. + */ + // @ts-ignore + sendToAll(payload: java.util.function$.Consumer): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.network.ChannelBinding.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.network.ChannelBinding.d.ts new file mode 100644 index 00000000..6454b54a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.network.ChannelBinding.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace network { + // @ts-ignore + interface ChannelBinding { + /** + * Gets the registrar that this channel is bound to. + */ + // @ts-ignore + getRegistrar(): org.spongepowered.api.network.ChannelRegistrar; + /** + * Gets this channel's bound name. + */ + // @ts-ignore + getName(): string; + /** + * Gets the plugin that created this binding. + */ + // @ts-ignore + getOwner(): org.spongepowered.api.plugin.PluginContainer; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.network.ChannelBuf.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.network.ChannelBuf.d.ts new file mode 100644 index 00000000..48492324 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.network.ChannelBuf.d.ts @@ -0,0 +1,556 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace network { + // @ts-ignore + interface ChannelBuf { + /** + * Gets the number of bytes this buffer can contain. + */ + // @ts-ignore + getCapacity(): number; + /** + * Gets the number of bytes available between the reader and the writer. + */ + // @ts-ignore + available(): number; + /** + * Returns a buffer with the specified endianness which shares the whole + * region, indexes, and marks of this buffer. Modifying the content, the + * indexes, or the marks of the returned buffer or this buffer affects + * each other's content, indexes, and marks. + *

If the specified endianness is identical to this buffer's byte + * order, this method can return this.

+ *

This method does not modify readerIndex or writerIndex of this + * buffer.

+ */ + // @ts-ignore + order(order: java.nio.ByteOrder): org.spongepowered.api.network.ChannelBuf; + /** + * Returns the endianness ({@link ByteOrder}) of this buffer. + */ + // @ts-ignore + getByteOrder(): java.nio.ByteOrder; + /** + * Gets the readerIndex of this buffer. + */ + // @ts-ignore + readerIndex(): number; + /** + * Sets the readerIndex of this buffer. + */ + // @ts-ignore + setReadIndex(index: number): org.spongepowered.api.network.ChannelBuf; + /** + * Gets the writerIndex of this buffer. + */ + // @ts-ignore + writerIndex(): number; + /** + * Sets the writerIndex of this buffer. + */ + // @ts-ignore + setWriteIndex(index: number): org.spongepowered.api.network.ChannelBuf; + /** + * Sets both the reader and writer indices. + */ + // @ts-ignore + setIndex(readIndex: number, writeIndex: number): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the readerIndex and writerIndex of this buffer to 0. + * This method is identical to {@link #setIndex(int, int)}. + */ + // @ts-ignore + clear(): org.spongepowered.api.network.ChannelBuf; + /** + * Marks the current readerIndex in this buffer. You can reposition + * the current readerIndex to the marked readerIndex by calling + * resetRead(). The initial value of the marked readerIndex is 0. + */ + // @ts-ignore + markRead(): org.spongepowered.api.network.ChannelBuf; + /** + * Marks the current writerIndex in this buffer. You can reposition + * the current writerIndex to the marked writerIndex by calling + * resetWrite(). The initial value of the marked writerIndex is 0. + */ + // @ts-ignore + markWrite(): org.spongepowered.api.network.ChannelBuf; + /** + * Resets the current readerIndex in this buffer to the marked reader + * index. + */ + // @ts-ignore + resetRead(): org.spongepowered.api.network.ChannelBuf; + /** + * Resets the current writerIndex in this buffer to the marked writer + * index. + */ + // @ts-ignore + resetWrite(): org.spongepowered.api.network.ChannelBuf; + /** + * Returns a slice of this buffer's readable bytes. Modifying the content + * of the returned buffer or this buffer affects each other's content + * while they maintain separate indexes and marks. This method is + * identical to buf.slice(buf.readerIndex(), buf.readableBytes()). + * This method does not modify readerIndex or writerIndex of this buffer. + */ + // @ts-ignore + slice(): org.spongepowered.api.network.ChannelBuf; + /** + * Returns a slice of this buffer's sub-region. Modifying the content of + * the returned buffer or this buffer affects each other's content while + * they maintain separate indexes and marks. This method does not modify + * readerIndex or writerIndex of this buffer. + */ + // @ts-ignore + slice(index: number, length: number): org.spongepowered.api.network.ChannelBuf; + /** + * Returns {@code true} if and only if this buffer has a backing byte array. + *

If this method returns true, you can safely call {@link #array()}.

+ */ + // @ts-ignore + hasArray(): boolean; + /** + * Gets the backing byte array of this stream. + */ + // @ts-ignore + array(): number[]; + /** + * Sets the specified boolean at the current writerIndex and increases + * the writerIndex by 1 in this buffer. + */ + // @ts-ignore + writeBoolean(data: boolean): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the boolean at the specified absolute index in this + * buffer. This method does not modify readerIndex or writerIndex + * of this buffer. + */ + // @ts-ignore + setBoolean(index: number, data: boolean): org.spongepowered.api.network.ChannelBuf; + /** + * Gets a boolean at the current readerIndex and increases the + * readerIndex by 1 in this buffer. + */ + // @ts-ignore + readBoolean(): boolean; + /** + * Gets a boolean at the specified absolute index in this buffer. + */ + // @ts-ignore + getBoolean(index: number): boolean; + /** + * Sets the specified byte at the current writerIndex and increases + * the writerIndex by 1 in this buffer. + */ + // @ts-ignore + writeByte(data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the byte at the specified absolute index in this + * buffer. This method does not modify readerIndex or writerIndex + * of this buffer. + */ + // @ts-ignore + setByte(index: number, data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Gets a byte at the current readerIndex and increases the + * readerIndex by 1 in this buffer. + */ + // @ts-ignore + readByte(): number; + /** + * Gets a byte at the specified absolute index in this buffer. + */ + // @ts-ignore + getByte(index: number): number; + /** + * Sets the specified byte array at the current writerIndex and increases + * the writerIndex by the number of bytes and the size of the length as a + * varint. + *

The length of the array is written preceding the data as a varint.

+ */ + // @ts-ignore + writeByteArray(data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the specified byte array at the current writerIndex and increases + * the writerIndex by the length specified and the size of the length as a + * varint. + *

The length of the array is written preceding the data as a varint.

+ */ + // @ts-ignore + writeByteArray(data: number, start: number, length: number): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the specified byte array at the specified absolute index in this + * buffer. This method does not modify readerIndex or writerIndex + * of this buffer. + *

The length of the array is written preceding the data as a varint.

+ */ + // @ts-ignore + setByteArray(index: number, data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the specified byte array at the specified absolute index in this + * buffer. This method does not modify readerIndex or writerIndex + * of this buffer. + *

The length of the array is written preceding the data as a varint.

+ */ + // @ts-ignore + setByteArray(index: number, data: number, start: number, length: number): org.spongepowered.api.network.ChannelBuf; + /** + * Gets a byte array at the current readerIndex and increases the + * readerIndex by the length of the array and the length of the array size. + *

The length of the array is expected to be preceding the array as a + * varint.

+ */ + // @ts-ignore + readByteArray(): number[]; + /** + * Gets a byte array at the specified absolute index in this buffer. + *

The length of the array is expected to be preceding the array as a + * varint.

+ */ + // @ts-ignore + readByteArray(index: number): number[]; + /** + * Sets the specified byte array at the current writerIndex and increases + * the writerIndex by the number of bytes. + */ + // @ts-ignore + writeBytes(data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the specified byte array at the current writerIndex and increases + * the writerIndex by the length specified. + */ + // @ts-ignore + writeBytes(data: number, start: number, length: number): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the specified byte array at the specified absolute index in this + * buffer. This method does not modify readerIndex or writerIndex + * of this buffer. + */ + // @ts-ignore + setBytes(index: number, data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the specified byte array at the specified absolute index in this + * buffer. This method does not modify readerIndex or writerIndex + * of this buffer. + */ + // @ts-ignore + setBytes(index: number, data: number, start: number, length: number): org.spongepowered.api.network.ChannelBuf; + /** + * Gets a byte array at the current readerIndex and increases the + * readerIndex by the length of the array. + */ + // @ts-ignore + readBytes(length: number): number[]; + /** + * Gets a byte array at the specified absolute index in this buffer. + */ + // @ts-ignore + readBytes(index: number, length: number): number[]; + /** + * Sets the specified short integer at the current writerIndex and + * increases the writerIndex by 2 in this buffer. + */ + // @ts-ignore + writeShort(data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the short at the specified absolute index in this + * buffer. This method does not modify readerIndex or writerIndex + * of this buffer. + */ + // @ts-ignore + setShort(index: number, data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Gets a short integer at the current readerIndex and increases the + * readerIndex by 2 in this buffer. + */ + // @ts-ignore + readShort(): number; + /** + * Gets a short integer at the specified absolute index in this buffer. + */ + // @ts-ignore + getShort(index: number): number; + /** + * Sets the specified character at the current writerIndex and + * increases the writerIndex by 2 in this buffer. + */ + // @ts-ignore + writeChar(data: string): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the char at the specified absolute index in this + * buffer. This method does not modify readerIndex or writerIndex + * of this buffer. + */ + // @ts-ignore + setChar(index: number, data: string): org.spongepowered.api.network.ChannelBuf; + /** + * Gets a character at the current readerIndex and increases the + * readerIndex by 2 in this buffer. + */ + // @ts-ignore + readChar(): string; + /** + * Gets a character at the specified absolute index in this buffer. + */ + // @ts-ignore + getChar(index: number): string; + /** + * Sets the specified integer at the current writerIndex and increases + * the writerIndex by 4 in this buffer. + */ + // @ts-ignore + writeInteger(data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the integer at the specified absolute index in this + * buffer. This method does not modify readerIndex or writerIndex + * of this buffer. + */ + // @ts-ignore + setInteger(index: number, data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Gets an integer at the current readerIndex and increases the + * readerIndex by 4 in this buffer. + */ + // @ts-ignore + readInteger(): number; + /** + * Gets an integer at the specified absolute index in this buffer. + */ + // @ts-ignore + getInteger(index: number): number; + /** + * Sets the specified long integer at the current writerIndex and + * increases the writerIndex by 8 in this buffer. + */ + // @ts-ignore + writeLong(data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the long integer at the specified absolute index in this + * buffer. This method does not modify readerIndex or writerIndex + * of this buffer. + */ + // @ts-ignore + setLong(index: number, data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Gets a long integer at the current readerIndex and increases the + * readerIndex by 8 in this buffer. + */ + // @ts-ignore + readLong(): number; + /** + * Gets a long integer at the specified absolute index in this buffer. + */ + // @ts-ignore + getLong(index: number): number; + /** + * Sets the specified float at the current writerIndex and increases + * the writerIndex by 4 in this buffer. + */ + // @ts-ignore + writeFloat(data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the float at the specified absolute index in this + * buffer. This method does not modify readerIndex or writerIndex + * of this buffer. + */ + // @ts-ignore + setFloat(index: number, data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Gets a float at the current readerIndex and increases the + * readerIndex by 4 in this buffer. + */ + // @ts-ignore + readFloat(): number; + /** + * Gets a float at the specified absolute index in this buffer. + */ + // @ts-ignore + getFloat(index: number): number; + /** + * Sets the specified double at the current writerIndex and increases + * the writerIndex by 8 in this buffer. + */ + // @ts-ignore + writeDouble(data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the double at the specified absolute index in this + * buffer. This method does not modify readerIndex or writerIndex + * of this buffer. + */ + // @ts-ignore + setDouble(index: number, data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Gets a double at the current readerIndex and increases the + * readerIndex by 8 in this buffer. + */ + // @ts-ignore + readDouble(): number; + /** + * Gets a double at the specified absolute index in this buffer. + */ + // @ts-ignore + getDouble(index: number): number; + /** + * Sets the specified varint at the current writerIndex and increases the + * writerIndex by the number of bytes written. + *

The number of bytes written depends on the size of the value, see + * https://developers.google.com/protocol-buffers/docs/encoding#varints + * for a full description.

+ */ + // @ts-ignore + writeVarInt(data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the specified varint at the specified absolute index in this buffer. + * This method does not modify readerIndex or writerIndex of this buffer. + *

The number of bytes written depends on the size of the value, see + * https://developers.google.com/protocol-buffers/docs/encoding#varints + * for a full description.

+ */ + // @ts-ignore + setVarInt(index: number, data: number): org.spongepowered.api.network.ChannelBuf; + /** + * Gets a varint at the current readerIndex and increases the readerIndex by + * the number of bytes read. + *

The number of bytes read depends on the size of the value, see + * https://developers.google.com/protocol-buffers/docs/encoding#varints + * for a full description.

+ */ + // @ts-ignore + readVarInt(): number; + /** + * Gets a varint at the specified absolute index in this buffer. + *

The number of bytes read depends on the size of the value, see + * https://developers.google.com/protocol-buffers/docs/encoding#varints + * for a full description.

+ */ + // @ts-ignore + getVarInt(index: number): number; + /** + * Sets the specified string at the current writerIndex and increases the + * writerIndex by the length of the string. + *

The string will be encoded as the utf length as a varint followed by + * the UTF-8 bytes of the string.

+ */ + // @ts-ignore + writeString(data: string): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the string at the specified absolute index in this + * buffer. This method does not modify readerIndex or writerIndex + * of this buffer. + *

The string will be encoded as the utf length as a varint followed by + * the UTF-8 bytes of the string.

+ */ + // @ts-ignore + setString(index: number, data: string): org.spongepowered.api.network.ChannelBuf; + /** + * Gets a string at the current readerIndex and increases the readerIndex by + * the length of a varint followed by the utf-8 bytes of the string. + *

The string will be encoded as the utf length as a varint followed by + * the UTF-8 bytes of the string.

+ */ + // @ts-ignore + readString(): string; + /** + * Gets a string at the specified absolute index in this buffer. + *

The string will be encoded as the utf length as a varint followed by + * the UTF-8 bytes of the string.

+ */ + // @ts-ignore + getString(index: number): string; + /** + * Sets the specified string at the current writerIndex and increases the + * writerIndex by the length of the string. + *

The string will be encoded as the utf length as a short followed by + * the UTF-8 bytes of the string.

+ */ + // @ts-ignore + writeUTF(data: string): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the string at the specified absolute index in this + * buffer. This method does not modify readerIndex or writerIndex + * of this buffer. + *

The string will be encoded as the utf length as a short followed by + * the UTF-8 bytes of the string.

+ */ + // @ts-ignore + setUTF(index: number, data: string): org.spongepowered.api.network.ChannelBuf; + /** + * Gets a string at the current readerIndex and increases the readerIndex by + * the length of a varint followed by the utf-8 bytes of the string. + *

The string will be encoded as the utf length as a short followed by + * the UTF-8 bytes of the string.

+ */ + // @ts-ignore + readUTF(): string; + /** + * Gets a string at the specified absolute index in this buffer. + *

The string will be encoded as the utf length as a short followed by + * the UTF-8 bytes of the string.

+ */ + // @ts-ignore + getUTF(index: number): string; + /** + * Sets the specified {@link UUID} at the current writerIndex and + * increases the writerIndex by 16 in this buffer. + */ + // @ts-ignore + writeUniqueId(data: java.util.UUID): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the {@link UUID} at the specified absolute index in this + * buffer. This method does not modify readerIndex or writerIndex + * of this buffer. + */ + // @ts-ignore + setUniqueId(index: number, data: java.util.UUID): org.spongepowered.api.network.ChannelBuf; + /** + * Gets a UUID at the current readerIndex and increases the + * readerIndex by 16 in this buffer. + */ + // @ts-ignore + readUniqueId(): java.util.UUID; + /** + * Gets a {@link UUID} at the specified absolute index in this buffer. + */ + // @ts-ignore + getUniqueId(index: number): java.util.UUID; + /** + * Sets the specified {@link DataView} at the current writerIndex and + * increases the writerIndex according to the length of the data view + * in this buffer. + */ + // @ts-ignore + writeDataView(data: org.spongepowered.api.data.DataView): org.spongepowered.api.network.ChannelBuf; + /** + * Sets the {@link DataView} at the specified absolute index in this + * buffer. This method does not modify readerIndex or writerIndex + * of this buffer. + */ + // @ts-ignore + setDataView(index: number, data: org.spongepowered.api.data.DataView): org.spongepowered.api.network.ChannelBuf; + /** + * Gets a {@link DataView} at the current readerIndex and increases the + * readerIndex according to the length of the data view in this buffer. + */ + // @ts-ignore + readDataView(): org.spongepowered.api.data.DataView; + /** + * Gets a {@link DataView} at the specified absolute index in this buffer. + */ + // @ts-ignore + getDataView(index: number): org.spongepowered.api.data.DataView; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.network.ChannelId.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.network.ChannelId.d.ts new file mode 100644 index 00000000..c311e5b6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.network.ChannelId.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace network { + // @ts-ignore + interface ChannelId { + /** + * Gets the channel id. + */ + // @ts-ignore + value(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.network.ChannelRegistrar.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.network.ChannelRegistrar.d.ts new file mode 100644 index 00000000..438170b8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.network.ChannelRegistrar.d.ts @@ -0,0 +1,65 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace network { + // @ts-ignore + interface ChannelRegistrar { + /** + * Creates a new channel binding for the given channel name. The channel can + * be used to send and receive messages. + */ + // @ts-ignore + createChannel(plugin: java.lang.Object, channel: string): org.spongepowered.api.network.ChannelBinding.IndexedMessageChannel; + /** + * Creates a new raw channel binding. The channel can be used to send and + * Receive data from {@link ChannelBuf} objects. + */ + // @ts-ignore + createRawChannel(plugin: java.lang.Object, channel: string): org.spongepowered.api.network.ChannelBinding.RawDataChannel; + /** + * Gets a channel binding if a channel registered by that name exists. + */ + // @ts-ignore + getChannel(channel: string): java.util.Optional; + /** + * Gets or creates a {@link ChannelBinding.IndexedMessageChannel} by the + * given name. If the channel exists and is a indexed message channel, then + * it is returned. If the channel is not an indexed message channel, then + * {@link IllegalStateException} is thrown. Otherwise, a new channel is + * created. + */ + // @ts-ignore + getOrCreate(plugin: java.lang.Object, channel: string): org.spongepowered.api.network.ChannelBinding.IndexedMessageChannel; + /** + * Gets or creates a {@link ChannelBinding.RawDataChannel} by the given + * name. If the channel exists and is a raw data channel, then it is + * returned. If the channel is not a raw data channel, then + * {@link IllegalStateException} is thrown. Otherwise, a new channel is + * created. + */ + // @ts-ignore + getOrCreateRaw(plugin: java.lang.Object, channel: string): org.spongepowered.api.network.ChannelBinding.RawDataChannel; + /** + * Remove the channel binding from this registrar, freeing up the channel + * name. All method calls on the channel binding instance will now throw + * {@link IllegalStateException}. + */ + // @ts-ignore + unbindChannel(channel: org.spongepowered.api.network.ChannelBinding): void; + /** + * Gets the set of registered channels. + */ + // @ts-ignore + getRegisteredChannels(side: org.spongepowered.api.Platform.Type): java.util.Set; + /** + * Returns whether the given channel name is available for creating with + * {@link #createChannel}. + */ + // @ts-ignore + isChannelAvailable(channelName: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.network.ChannelRegistrationException.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.network.ChannelRegistrationException.d.ts new file mode 100644 index 00000000..c011c1d3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.network.ChannelRegistrationException.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace network { + // @ts-ignore + class ChannelRegistrationException extends java.lang.RuntimeException { + /** + * Constructs a new {@link ChannelRegistrationException}. + */ + // @ts-ignore + constructor() + /** + * Constructs a new {@link ChannelRegistrationException} with a message. + */ + // @ts-ignore + constructor(message: string) + /** + * Constructs a new {@link ChannelRegistrationException} with the specified message and + * cause. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Constructs a new {@link ChannelRegistrationException} with the specified cause and a + * null message. + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.network.Message.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.network.Message.d.ts new file mode 100644 index 00000000..1a02db05 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.network.Message.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace network { + // @ts-ignore + interface Message { + /** + * Read the data from the channel buffer into this message. + */ + // @ts-ignore + readFrom(buf: org.spongepowered.api.network.ChannelBuf): void; + /** + * Write the data from this message to the channel buffer. + */ + // @ts-ignore + writeTo(buf: org.spongepowered.api.network.ChannelBuf): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.network.MessageHandler.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.network.MessageHandler.d.ts new file mode 100644 index 00000000..c03d8d21 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.network.MessageHandler.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace network { + // @ts-ignore + interface MessageHandler { + /** + * Handles the message sent by a remote connection. + */ + // @ts-ignore + handleMessage(message: org.spongepowered.api.network.Message, connection: org.spongepowered.api.network.RemoteConnection, side: org.spongepowered.api.Platform.Type): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.network.PlayerConnection.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.network.PlayerConnection.d.ts new file mode 100644 index 00000000..65e0bcc0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.network.PlayerConnection.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace network { + // @ts-ignore + interface PlayerConnection extends org.spongepowered.api.network.RemoteConnection { + /** + * Gets the associated {@link Player} for this connection. + */ + // @ts-ignore + getPlayer(): org.spongepowered.api.entity.living.player.Player; + /** + * Gets the connection latency. This is constantly calculated by the server. + */ + // @ts-ignore + getLatency(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.network.RawDataListener.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.network.RawDataListener.d.ts new file mode 100644 index 00000000..124e2499 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.network.RawDataListener.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace network { + // @ts-ignore + interface RawDataListener { + /** + * Handles the given {@link ChannelBuf} data sent by a remote connection. + */ + // @ts-ignore + handlePayload(data: org.spongepowered.api.network.ChannelBuf, connection: org.spongepowered.api.network.RemoteConnection, side: org.spongepowered.api.Platform.Type): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.network.RemoteConnection.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.network.RemoteConnection.d.ts new file mode 100644 index 00000000..65fd19f1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.network.RemoteConnection.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace network { + // @ts-ignore + interface RemoteConnection { + /** + * Gets the {@link InetSocketAddress} of this connection. + */ + // @ts-ignore + getAddress(): java.net.InetSocketAddress; + /** + * Gets the host name the connection is connecting to the server with. + *

Examples include: If a player is connecting to `mc.example.com`, + * the hostname will show `mc.example.com`. This is NOT the originating + * hostname of the client.

+ */ + // @ts-ignore + getVirtualHost(): java.net.InetSocketAddress; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.network.status.Favicon.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.network.status.Favicon.d.ts new file mode 100644 index 00000000..2d91ff78 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.network.status.Favicon.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace network { + namespace status { + // @ts-ignore + interface Favicon { + /** + * Gets the decoded image of this favicon. + */ + // @ts-ignore + getImage(): java.awt.image.BufferedImage; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.network.status.StatusClient.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.network.status.StatusClient.d.ts new file mode 100644 index 00000000..b23ac97d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.network.status.StatusClient.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace network { + namespace status { + // @ts-ignore + interface StatusClient { + /** + * Gets the address of the client. + */ + // @ts-ignore + getAddress(): java.net.InetSocketAddress; + /** + * Gets the game version of the client. + */ + // @ts-ignore + getVersion(): org.spongepowered.api.MinecraftVersion; + /** + * Gets the address the player is connecting to. + */ + // @ts-ignore + getVirtualHost(): java.util.Optional; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.network.status.StatusResponse.Players.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.network.status.StatusResponse.Players.d.ts new file mode 100644 index 00000000..ec85dbad --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.network.status.StatusResponse.Players.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace network { + namespace status { + namespace StatusResponse { + // @ts-ignore + interface Players { + /** + * Gets the amount of online players on the server. + */ + // @ts-ignore + getOnline(): number; + /** + * Gets the maximum amount of allowed players on the server. + */ + // @ts-ignore + getMax(): number; + /** + * Gets an immutable list of online players on the server to display on + * the client. + */ + // @ts-ignore + getProfiles(): java.util.List; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.network.status.StatusResponse.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.network.status.StatusResponse.d.ts new file mode 100644 index 00000000..bc0fc169 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.network.status.StatusResponse.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace network { + namespace status { + // @ts-ignore + interface StatusResponse { + /** + * Gets the description (MOTD) of the status response. + */ + // @ts-ignore + getDescription(): org.spongepowered.api.text.Text; + /** + * Gets player count and the list of players currently playing on the + * server. + */ + // @ts-ignore + getPlayers(): java.util.Optional; + /** + * Gets the version of the server displayed when the client or the server + * are outdated. + */ + // @ts-ignore + getVersion(): org.spongepowered.api.MinecraftVersion; + /** + * Gets the {@link Favicon} of the server. + */ + // @ts-ignore + getFavicon(): java.util.Optional; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.plugin.Dependency.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.plugin.Dependency.d.ts new file mode 100644 index 00000000..c390f317 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.plugin.Dependency.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace plugin { + // @ts-ignore + interface Dependency { + /** + * The plugin ID of the dependency. + */ + // @ts-ignore + id(): string; + /** + * The required version range of the dependency. + *

The version range will be specified in Maven version range + * syntax:

+ * + * + * + * + * + * + * + * + * + * + *
RangeMeaning
1.0Any dependency version, 1.0 is recommended
[1.0]x == 1.0
[1.0,)x >= 1.0
(1.0,)x > 1.0
(,1.0]x <= 1.0
(,1.0)x < 1.0
(1.0,2.0)1.0 < x < 2.0
[1.0,2.0]1.0 <= x <= 2.0
+ */ + // @ts-ignore + version(): string; + /** + * If this dependency is optional for the plugin to work. By default + * this is {@code false}. + */ + // @ts-ignore + optional(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.plugin.Plugin.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.plugin.Plugin.d.ts new file mode 100644 index 00000000..d9f96f2a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.plugin.Plugin.d.ts @@ -0,0 +1,52 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace plugin { + // @ts-ignore + interface Plugin { + // @ts-ignore + ID_PATTERN: java.util.regex.Pattern; + /** + * An ID for the plugin to be used internally. The ID should be unique as to + * not conflict with other plugins. + *

The plugin ID must match the {@link #ID_PATTERN}.

+ */ + // @ts-ignore + id(): string; + /** + * The human readable name of the plugin as to be used in descriptions and + * similar things. + */ + // @ts-ignore + name(): string; + /** + * The version of the plugin. + */ + // @ts-ignore + version(): string; + /** + * The dependencies required to load before this plugin. + */ + // @ts-ignore + dependencies(): org.spongepowered.api.plugin.Dependency[]; + /** + * The description of the plugin, explaining what it can be used for. + */ + // @ts-ignore + description(): string; + /** + * The URL or website of the plugin. + */ + // @ts-ignore + url(): string; + /** + * The authors of the plugin. + */ + // @ts-ignore + authors(): java.lang.String[]; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.plugin.PluginContainer.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.plugin.PluginContainer.d.ts new file mode 100644 index 00000000..cff8a42e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.plugin.PluginContainer.d.ts @@ -0,0 +1,75 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace plugin { + // @ts-ignore + interface PluginContainer { + /** + * Gets the qualified ID of the {@link Plugin} within this container. + */ + // @ts-ignore + getId(): string; + /** + * Gets the name of the {@link Plugin} within this container. + */ + // @ts-ignore + getName(): string; + /** + * Gets the version of the {@link Plugin} within this container. + */ + // @ts-ignore + getVersion(): java.util.Optional; + /** + * Gets the description of the {@link Plugin} within this container. + */ + // @ts-ignore + getDescription(): java.util.Optional; + /** + * Gets the url or website of the {@link Plugin} within this container. + */ + // @ts-ignore + getUrl(): java.util.Optional; + /** + * Gets the authors of the {@link Plugin} within this container. + */ + // @ts-ignore + getAuthors(): java.util.List; + /** + * Gets a {@link Set} of all dependencies of the {@link Plugin} within this + * container. + */ + // @ts-ignore + getDependencies(): java.util.Set; + /** + * Gets the {@link PluginDependency} the plugin in this container has on + * the plugin with the specified plugin ID. + */ + // @ts-ignore + getDependency(id: string): java.util.Optional; + /** + * Retrieves the {@link Asset} of the specified name from the + * {@link AssetManager} for this {@link Plugin}. + */ + // @ts-ignore + getAsset(name: string): java.util.Optional; + /** + * Returns the source the plugin was loaded from. + */ + // @ts-ignore + getSource(): java.util.Optional; + /** + * Returns the created instance of {@link Plugin} if it is available. + */ + // @ts-ignore + getInstance(): java.util.Optional; + /** + * Returns the assigned logger to this {@link Plugin}. + */ + // @ts-ignore + getLogger(): any /*Logger*/; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.plugin.PluginManager.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.plugin.PluginManager.d.ts new file mode 100644 index 00000000..eaedce10 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.plugin.PluginManager.d.ts @@ -0,0 +1,37 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace plugin { + // @ts-ignore + interface PluginManager { + // @ts-ignore + MINECRAFT_PLUGIN_ID: string; + // @ts-ignore + SPONGE_PLUGIN_ID: string; + /** + * Gets the plugin container from an instance. + */ + // @ts-ignore + fromInstance(instance: java.lang.Object): java.util.Optional; + /** + * Retrieves a {@link PluginContainer} based on its ID. + */ + // @ts-ignore + getPlugin(id: string): java.util.Optional; + /** + * Gets a {@link Collection} of all {@link PluginContainer}s. + */ + // @ts-ignore + getPlugins(): java.util.Collection; + /** + * Checks if a plugin is loaded based on its ID. + * This may contain plugins/mods from other systems in some implementations. + */ + // @ts-ignore + isLoaded(id: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.profile.GameProfile.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.profile.GameProfile.d.ts new file mode 100644 index 00000000..9c13bc78 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.profile.GameProfile.d.ts @@ -0,0 +1,64 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace profile { + // @ts-ignore + interface GameProfile extends org.spongepowered.api.util.Identifiable, org.spongepowered.api.data.DataSerializable { + /** + * Creates a {@link GameProfile} from the provided ID. + *

The name of the created profile will be {@code null}.

+ */ + // @ts-ignore + of(uniqueId: java.util.UUID): org.spongepowered.api.profile.GameProfile; + /** + * Creates a {@link GameProfile} from the provided ID and name. + */ + // @ts-ignore + of(uniqueId: java.util.UUID, name: string): org.spongepowered.api.profile.GameProfile; + /** + * Gets the name associated with this profile. + */ + // @ts-ignore + getName(): java.util.Optional; + /** + * Gets the property map for this profile. + *

This is a mutable map.

+ */ + // @ts-ignore + getPropertyMap(): any; + /** + * Adds a profile property to this game profile. + *

The {@link ProfileProperty#getName() name} of the property is used when + * adding the profile property to the {@link #getPropertyMap() property map}.

+ */ + // @ts-ignore + addProperty(property: org.spongepowered.api.profile.property.ProfileProperty): org.spongepowered.api.profile.GameProfile; + /** + * Adds a profile property to this game profile. + */ + // @ts-ignore + addProperty(name: string, property: org.spongepowered.api.profile.property.ProfileProperty): org.spongepowered.api.profile.GameProfile; + /** + * Removes a profile property to this game profile. + *

The {@link ProfileProperty#getName() name} of the property is used when + * removing the profile property from the {@link #getPropertyMap() property map}.

+ */ + // @ts-ignore + removeProperty(property: org.spongepowered.api.profile.property.ProfileProperty): boolean; + /** + * Removes a profile property to this game profile. + */ + // @ts-ignore + removeProperty(name: string, property: org.spongepowered.api.profile.property.ProfileProperty): boolean; + /** + * Checks if this profile is filled. + *

A filled profile contains both a unique id and name.

+ */ + // @ts-ignore + isFilled(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.profile.GameProfileCache.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.profile.GameProfileCache.d.ts new file mode 100644 index 00000000..0baee592 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.profile.GameProfileCache.d.ts @@ -0,0 +1,147 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace profile { + // @ts-ignore + interface GameProfileCache { + /** + * Add an entry to this cache. + */ + // @ts-ignore + add(profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Add an entry to this cache, with an optional expiration date. + */ + // @ts-ignore + add(profile: org.spongepowered.api.profile.GameProfile, expiry: java.util.Date): boolean; + /** + * Add an entry to this cache, with an optional expiration date. + */ + // @ts-ignore + add(profile: org.spongepowered.api.profile.GameProfile, expiry: java.time.Instant): boolean; + /** + * Add an entry to this cache, with an optional expiration date. + */ + // @ts-ignore + add(profile: org.spongepowered.api.profile.GameProfile, overwrite: boolean, expiry: java.util.Date): boolean; + /** + * Add an entry to this cache, with an optional expiration date. + */ + // @ts-ignore + add(profile: org.spongepowered.api.profile.GameProfile, overwrite: boolean, expiry: java.time.Instant): boolean; + /** + * Remove an entry from this cache. + */ + // @ts-ignore + remove(profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Remove entries from this cache in bulk. + */ + // @ts-ignore + remove(profiles: java.lang.Iterable): java.util.Collection; + /** + * Clear all entries from this cache. + */ + // @ts-ignore + clear(): void; + /** + * Gets a {@link GameProfile} from this cache by its unique id. + */ + // @ts-ignore + getById(uniqueId: java.util.UUID): java.util.Optional; + /** + * Gets {@link GameProfile}s in bulk by their unique id. + */ + // @ts-ignore + getByIds(uniqueIds: java.lang.Iterable): java.util.Map; + /** + * Looks a {@link GameProfile} up by its unique id and + * loads it into this cache. + */ + // @ts-ignore + lookupById(uniqueId: java.util.UUID): java.util.Optional; + /** + * Looks up {@link GameProfile}s in bulk by their unique id and + * loads them into this cache. + */ + // @ts-ignore + lookupByIds(uniqueIds: java.lang.Iterable): java.util.Map; + /** + * Gets a {@link GameProfile} from this cache by its id if available, + * or lookups the profile by its unique id. + */ + // @ts-ignore + getOrLookupById(uniqueId: java.util.UUID): java.util.Optional; + /** + * Gets {@link GameProfile}s in bulk from this cache by when available, + * and lookups the profiles by their unique id when not cached. + */ + // @ts-ignore + getOrLookupByIds(uniqueIds: java.lang.Iterable): java.util.Map; + /** + * Gets a {@link GameProfile} from this cache by its name. + */ + // @ts-ignore + getByName(name: string): java.util.Optional; + /** + * Gets {@link GameProfile}s in bulk by their name. + */ + // @ts-ignore + getByNames(names: java.lang.Iterable): java.util.Map; + /** + * Looks a {@link GameProfile} up by its name and + * loads it into this cache. + */ + // @ts-ignore + lookupByName(name: string): java.util.Optional; + /** + * Looks up {@link GameProfile}s in bulk by their name and + * loads them into this cache. + */ + // @ts-ignore + lookupByNames(names: java.lang.Iterable): java.util.Map; + /** + * Gets a {@link GameProfile} from this cache by its if available, + * or lookups the profile by its name. + */ + // @ts-ignore + getOrLookupByName(name: string): java.util.Optional; + /** + * Gets {@link GameProfile}s in bulk from this cache by when available, + * and lookups the profiles by their unique id when not cached. + */ + // @ts-ignore + getOrLookupByNames(names: java.lang.Iterable): java.util.Map; + /** + * Fills a {@link GameProfile} from cached values. + */ + // @ts-ignore + fillProfile(profile: org.spongepowered.api.profile.GameProfile): java.util.Optional; + /** + * Fills a {@link GameProfile} from cached values. + */ + // @ts-ignore + fillProfile(profile: org.spongepowered.api.profile.GameProfile, signed: boolean): java.util.Optional; + /** + * Gets a collection of all cached {@link GameProfile}s. + */ + // @ts-ignore + getProfiles(): java.util.Collection; + /** + * Returns a collection of matching cached {@link GameProfile}s whose last + * known names start with the given string (case-insensitive). + *

This collection may also contain profiles of players who never played + * on the server!

+ *

Use {@link UserStorageService#match(String)} for a collection that + * only contains {@link GameProfile}s with attached {@link User} data.

+ *

This method only searches the local cache, so the data may not be up + * to date.

+ */ + // @ts-ignore + match(name: string): java.util.Collection; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.profile.GameProfileManager.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.profile.GameProfileManager.d.ts new file mode 100644 index 00000000..69748476 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.profile.GameProfileManager.d.ts @@ -0,0 +1,118 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace profile { + // @ts-ignore + interface GameProfileManager { + /** + * Creates a {@link GameProfile} from the provided ID and name. + */ + // @ts-ignore + createProfile(uniqueId: java.util.UUID, name: string): org.spongepowered.api.profile.GameProfile; + /** + * Creates a {@link ProfileProperty} from the provided name, value, + * and optional signature. + */ + // @ts-ignore + createProfileProperty(name: string, value: string, signature: string): org.spongepowered.api.profile.property.ProfileProperty; + /** + * Looks up a {@link GameProfile} by its unique ID. + *

This method checks the local profile cache before contacting the + * profile servers. Use {@link #get(UUID, boolean)} to disable the cache + * lookup.

+ *

The returned {@link CompletableFuture} throws an {@link ExecutionException} + * caused by a {@link ProfileNotFoundException} if the profile does not exist or + * an {@link IOException} if a network error occurred.

+ */ + // @ts-ignore + get(uniqueId: java.util.UUID): java.util.concurrent.CompletableFuture; + /** + * Looks up a {@link GameProfile} by its user name (case-insensitive). + *

This method checks the local profile cache before contacting the + * profile servers. Use {@link #get(String, boolean)} to disable the cache + * lookup.

+ *

The returned {@link CompletableFuture} throws an {@link ExecutionException} + * caused by a {@link ProfileNotFoundException} if the profile does not exist or + * an {@link IOException} if a network error occurred.

+ */ + // @ts-ignore + get(name: string): java.util.concurrent.CompletableFuture; + /** + * Looks up a {@link GameProfile} by its unique ID. + *

The returned {@link CompletableFuture} throws an {@link ExecutionException} + * caused by a {@link ProfileNotFoundException} if the profile does not exist or + * an {@link IOException} if a network error occurred.

+ */ + // @ts-ignore + get(uniqueId: java.util.UUID, useCache: boolean): java.util.concurrent.CompletableFuture; + /** + * Looks up a {@link GameProfile} by its user name (case-insensitive). + *

The returned {@link CompletableFuture} throws an {@link ExecutionException} + * caused by a {@link ProfileNotFoundException} if the profile does not exist or + * an {@link IOException} if a network error occurred.

+ */ + // @ts-ignore + get(name: string, useCache: boolean): java.util.concurrent.CompletableFuture; + /** + * Gets a collection of {@link GameProfile}s by their unique IDs. + *

The returned {@link CompletableFuture} throws an {@link ExecutionException} + * caused by a {@link ProfileNotFoundException} if the profile does not exist or + * an {@link IOException} if a network error occurred.

+ */ + // @ts-ignore + getAllById(uniqueIds: java.lang.Iterable, useCache: boolean): java.util.concurrent.CompletableFuture; + /** + * Gets a collection of {@link GameProfile}s by their user names + * (case-insensitive). + *

The returned {@link CompletableFuture} throws an {@link ExecutionException} + * caused by a {@link ProfileNotFoundException} if the profile does not exist or + * an {@link IOException} if a network error occurred.

+ */ + // @ts-ignore + getAllByName(names: java.lang.Iterable, useCache: boolean): java.util.concurrent.CompletableFuture; + /** + * Fills a {@link GameProfile}. + *

The returned {@link CompletableFuture} throws an {@link ExecutionException} + * caused by a {@link ProfileNotFoundException} if the profile does not exist or + * an {@link IOException} if a network error occurred.

+ */ + // @ts-ignore + fill(profile: org.spongepowered.api.profile.GameProfile): java.util.concurrent.CompletableFuture; + /** + * Fills a {@link GameProfile}. + *

The returned {@link CompletableFuture} throws an {@link ExecutionException} + * caused by a {@link ProfileNotFoundException} if the profile does not exist or + * an {@link IOException} if a network error occurred.

+ */ + // @ts-ignore + fill(profile: org.spongepowered.api.profile.GameProfile, signed: boolean): java.util.concurrent.CompletableFuture; + /** + * Fills a {@link GameProfile}. + *

The returned {@link CompletableFuture} throws an {@link ExecutionException} + * caused by a {@link ProfileNotFoundException} if the profile does not exist or + * an {@link IOException} if a network error occurred.

+ */ + // @ts-ignore + fill(profile: org.spongepowered.api.profile.GameProfile, signed: boolean, useCache: boolean): java.util.concurrent.CompletableFuture; + /** + * Gets the active {@link GameProfile} cache. + */ + // @ts-ignore + getCache(): org.spongepowered.api.profile.GameProfileCache; + /** + * Sets the {@link GameProfile} cache. + *

To restore the original cache, pass the result of {@link #getDefaultCache()}.

+ */ + // @ts-ignore + setCache(cache: org.spongepowered.api.profile.GameProfileCache): void; + /** + * Gets the default cache. + */ + // @ts-ignore + getDefaultCache(): org.spongepowered.api.profile.GameProfileCache; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.profile.ProfileNotFoundException.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.profile.ProfileNotFoundException.d.ts new file mode 100644 index 00000000..eea2cfc1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.profile.ProfileNotFoundException.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace profile { + // @ts-ignore + class ProfileNotFoundException extends java.lang.Exception { + /** + * Constructs a new {@link ProfileNotFoundException}. + */ + // @ts-ignore + constructor() + /** + * Constructs a new {@link ProfileNotFoundException} with the specified + * message. + */ + // @ts-ignore + constructor(message: string) + /** + * Constructs a new {@link ProfileNotFoundException} with the specified + * cause and a null message. + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + /** + * Constructs a new {@link ProfileNotFoundException} with the specified + * message and cause. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.profile.property.ProfileProperty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.profile.property.ProfileProperty.d.ts new file mode 100644 index 00000000..df013e26 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.profile.property.ProfileProperty.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace profile { + namespace property { + // @ts-ignore + interface ProfileProperty { + /** + * Creates a new property. + */ + // @ts-ignore + of(name: string, value: string): org.spongepowered.api.profile.property.ProfileProperty; + /** + * Creates a new signed property. + *

Depending on the property name, if the signature is provided it must + * originate from Mojang.

+ */ + // @ts-ignore + of(name: string, value: string, signature: string): org.spongepowered.api.profile.property.ProfileProperty; + /** + * Gets the name of this property. + */ + // @ts-ignore + getName(): string; + /** + * Gets the value of this property. + */ + // @ts-ignore + getValue(): string; + /** + * Gets the signature of this property. + *

Depending on the property name, if the signature is provided it must + * originate from Mojang.

+ */ + // @ts-ignore + getSignature(): java.util.Optional; + /** + * Tests if this property has a signature. + */ + // @ts-ignore + hasSignature(): boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.registry.AdditionalCatalogRegistryModule.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.AdditionalCatalogRegistryModule.d.ts new file mode 100644 index 00000000..6f7eac5a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.AdditionalCatalogRegistryModule.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace registry { + // @ts-ignore + interface AdditionalCatalogRegistryModule extends org.spongepowered.api.registry.CatalogRegistryModule { + /** + * Performs additional registration after initial registration of + * the pertaining {@link CatalogType}. + */ + // @ts-ignore + registerAdditionalCatalog(extraCatalog: org.spongepowered.api.CatalogType): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.registry.AlternateCatalogRegistryModule.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.AlternateCatalogRegistryModule.d.ts new file mode 100644 index 00000000..1c59f7e5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.AlternateCatalogRegistryModule.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace registry { + // @ts-ignore + interface AlternateCatalogRegistryModule extends org.spongepowered.api.registry.CatalogRegistryModule { + /** + * Gets the catalog {@link Map map} instead of defaulting to utilizing + * {@link RegisterCatalog} annotated field for the map of catalog types. + */ + // @ts-ignore + provideCatalogMap(): java.util.Map; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.registry.CatalogRegistryModule.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.CatalogRegistryModule.d.ts new file mode 100644 index 00000000..32ff970c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.CatalogRegistryModule.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace registry { + // @ts-ignore + interface CatalogRegistryModule extends org.spongepowered.api.registry.RegistryModule { + /** + * Gets the desired {@link CatalogType} from the provided {@link String} id. + * If a {@link CatalogType catalog type} is not registered for the given {@code id}, + * {@link Optional#empty()} is returned. + */ + // @ts-ignore + getById(id: string): java.util.Optional; + /** + * Gets all registered {@link CatalogType}s registered in this + * {@link RegistryModule}. + */ + // @ts-ignore + getAll(): java.util.Collection; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.registry.CatalogTypeAlreadyRegisteredException.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.CatalogTypeAlreadyRegisteredException.d.ts new file mode 100644 index 00000000..6e95d4a3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.CatalogTypeAlreadyRegisteredException.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace registry { + // @ts-ignore + class CatalogTypeAlreadyRegisteredException extends org.spongepowered.api.registry.RegistryException { + /** + * Creates a new {@link CatalogTypeAlreadyRegisteredException} with the + * provided {@link CatalogType} {@link String} id. + */ + // @ts-ignore + constructor(id: string) + /** + * Gets the {@link CatalogType} id already registered. + */ + // @ts-ignore + public getAlreadyRegisteredId(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.registry.ExtraClassCatalogRegistryModule.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.ExtraClassCatalogRegistryModule.d.ts new file mode 100644 index 00000000..e6f6195e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.ExtraClassCatalogRegistryModule.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace registry { + // @ts-ignore + interface ExtraClassCatalogRegistryModule extends org.spongepowered.api.registry.AdditionalCatalogRegistryModule { + /** + * Gets whether the provided {@link Class} is already registered. + */ + // @ts-ignore + hasRegistrationFor(mappedClass: java.lang.Class): boolean; + /** + * Gets the {@link CatalogType} based on the provided {@link Class}. + */ + // @ts-ignore + getForClass(clazz: java.lang.Class): org.spongepowered.api.CatalogType; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.registry.FactoryRegistry.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.FactoryRegistry.d.ts new file mode 100644 index 00000000..b1613885 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.FactoryRegistry.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace registry { + // @ts-ignore + interface FactoryRegistry extends org.spongepowered.api.registry.RegistryModule { + /** + * Gets the owning {@link Class} of the factory in question. + */ + // @ts-ignore + getFactoryOwner(): java.lang.Class; + /** + * Provides the new factory instance. + */ + // @ts-ignore + provideFactory(): java.lang.Object; + /** + * Initialize this registry module to perform any required operations + * prior to initializing the factory, and or constructing the factory. + */ + // @ts-ignore + initialize(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.registry.RegistrationPhase.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.RegistrationPhase.d.ts new file mode 100644 index 00000000..e0dfc574 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.RegistrationPhase.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace registry { + // @ts-ignore + class RegistrationPhase extends java.lang.Enum { + // @ts-ignore + public static PRE_REGISTRY: org.spongepowered.api.registry.RegistrationPhase; + // @ts-ignore + public static PRE_INIT: org.spongepowered.api.registry.RegistrationPhase; + // @ts-ignore + public static INIT: org.spongepowered.api.registry.RegistrationPhase; + // @ts-ignore + public static POST_INIT: org.spongepowered.api.registry.RegistrationPhase; + // @ts-ignore + public static LOADED: org.spongepowered.api.registry.RegistrationPhase; + // @ts-ignore + public static values(): org.spongepowered.api.registry.RegistrationPhase[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.registry.RegistrationPhase; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.registry.RegistryException.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.RegistryException.d.ts new file mode 100644 index 00000000..02537888 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.RegistryException.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace registry { + // @ts-ignore + class RegistryException extends java.lang.UnsupportedOperationException { + /** + * Creates a new {@link RegistryException}. + */ + // @ts-ignore + constructor() + /** + * Creates a new {@link RegistryException} with the provided {@code message}. + */ + // @ts-ignore + constructor(message: string) + /** + * Creates a new {@link RegistryException} with the provided {@code message} + * and propagated {@link Throwable cause}. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Creates a new {@link RegistryException} with the provided {@link Throwable cause}. + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.registry.RegistryModule.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.RegistryModule.d.ts new file mode 100644 index 00000000..c0bae047 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.RegistryModule.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace registry { + // @ts-ignore + interface RegistryModule { + /** + * Performs default registrations of objects for use with either + * companion objects, or the {@link GameRegistry}. This is only + * called once, either at the pre-initialization phase of the + * {@link GameRegistry}, or if annotated with + * {@link DelayedRegistration}, at a later {@link RegistrationPhase}. + */ + // @ts-ignore + registerDefaults(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.registry.RegistryModuleAlreadyRegisteredException.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.RegistryModuleAlreadyRegisteredException.d.ts new file mode 100644 index 00000000..a092f934 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.RegistryModuleAlreadyRegisteredException.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace registry { + // @ts-ignore + class RegistryModuleAlreadyRegisteredException extends org.spongepowered.api.registry.RegistryException { + /** + * Creates a new {@link RegistryModuleAlreadyRegisteredException} based on + * the fact that the provided {@link RegistryModule} is already registered, + * either due to the fact that the object it covers is already associated + * with a different {@link RegistryModule module}, or that the module itself + * has already been registered. + */ + // @ts-ignore + constructor(message: string, module: org.spongepowered.api.registry.RegistryModule) + /** + * Gets the {@link RegistryModule} associated with this exception. + */ + // @ts-ignore + public getModule(): org.spongepowered.api.registry.RegistryModule; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.registry.util.AdditionalRegistration.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.util.AdditionalRegistration.d.ts new file mode 100644 index 00000000..3208e475 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.util.AdditionalRegistration.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace registry { + namespace util { + // @ts-ignore + interface AdditionalRegistration { + /** + * Gets the desired {@link RegistrationPhase} to perform any + * additional registration of {@link CatalogType}s. + */ + // @ts-ignore + value(): org.spongepowered.api.registry.RegistrationPhase; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.registry.util.CustomCatalogRegistration.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.util.CustomCatalogRegistration.d.ts new file mode 100644 index 00000000..782e61f1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.util.CustomCatalogRegistration.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace registry { + namespace util { + // @ts-ignore + interface CustomCatalogRegistration { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.registry.util.DelayedRegistration.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.util.DelayedRegistration.d.ts new file mode 100644 index 00000000..3e64a5a1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.util.DelayedRegistration.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace registry { + namespace util { + // @ts-ignore + interface DelayedRegistration { + /** + * Gets the {@link RegistrationPhase} at which default registration + * of {@link CatalogType}s should take place. + */ + // @ts-ignore + value(): org.spongepowered.api.registry.RegistrationPhase; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.registry.util.OverrideRegistration.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.util.OverrideRegistration.d.ts new file mode 100644 index 00000000..e00b8f2e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.util.OverrideRegistration.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace registry { + namespace util { + // @ts-ignore + interface OverrideRegistration { + /** + * The class of the other registry module. + */ + // @ts-ignore + value(): java.lang.Class; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.registry.util.PluginProvidedRegistryModule.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.util.PluginProvidedRegistryModule.d.ts new file mode 100644 index 00000000..7d9ba247 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.util.PluginProvidedRegistryModule.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace registry { + namespace util { + // @ts-ignore + interface PluginProvidedRegistryModule { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.registry.util.RegisterCatalog.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.util.RegisterCatalog.d.ts new file mode 100644 index 00000000..973b7c43 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.util.RegisterCatalog.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace registry { + namespace util { + // @ts-ignore + interface RegisterCatalog { + /** + * The class to register the values to. + */ + // @ts-ignore + value(): java.lang.Class; + /** + * Gets an array of field names that are to be ignored when mapping fields + * on the target class. + */ + // @ts-ignore + ignoredFields(): java.lang.String[]; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.registry.util.RegistrationDependency.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.util.RegistrationDependency.d.ts new file mode 100644 index 00000000..7a495ab5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.registry.util.RegistrationDependency.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace registry { + namespace util { + // @ts-ignore + interface RegistrationDependency { + /** + * Gets the array of {@link RegistryModule}s that the owning + * {@link RegistryModule} relies on having completed their own + * registrations prior to this module performing registrations. + *

Note that this is different from having a module performing + * a {@link DelayedRegistration}, as the module in question can still + * perform it's registrations in the same {@link RegistrationPhase} + * as the depending modules. It is guaranteed that the depending + * modules will perform their registrations prior to the owning module. + *

+ */ + // @ts-ignore + value(): java.lang.Class[]; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.resourcepack.ResourcePack.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.resourcepack.ResourcePack.d.ts new file mode 100644 index 00000000..266ad41b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.resourcepack.ResourcePack.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace resourcepack { + // @ts-ignore + interface ResourcePack { + /** + * Gets the URI associated with this ResourcePack. + */ + // @ts-ignore + getUri(): java.net.URI; + /** + * Gets the name of this resource pack. This is the filename of the pack + * zipfile, with all non-word characters removed. Note to implementers: The + * name MUST be calculated like above, or this API will not + * work. + */ + // @ts-ignore + getName(): string; + /** + * Gets the ID of this resource pack. + */ + // @ts-ignore + getId(): string; + /** + * If this resource pack was initialized through + * {@link ResourcePackFactory#fromUri(URI)}, the hash, as calculated with + * com.google.common.hash.Hashing.sha1().hashBytes( + * com.google.common.io.Files.toByteArray(resourcepackfile) + * ).toString();. + */ + // @ts-ignore + getHash(): java.util.Optional; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.resourcepack.ResourcePackFactory.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.resourcepack.ResourcePackFactory.d.ts new file mode 100644 index 00000000..53618940 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.resourcepack.ResourcePackFactory.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace resourcepack { + // @ts-ignore + interface ResourcePackFactory { + /** + * Creates a {@link ResourcePack} from a URI and tries to download and hash + * it. + */ + // @ts-ignore + fromUri(uri: java.net.URI): org.spongepowered.api.resourcepack.ResourcePack; + /** + * Creates a {@link ResourcePack} from a URI. + */ + // @ts-ignore + fromUriUnchecked(uri: java.net.URI): org.spongepowered.api.resourcepack.ResourcePack; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.resourcepack.ResourcePacks.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.resourcepack.ResourcePacks.d.ts new file mode 100644 index 00000000..fe3f9601 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.resourcepack.ResourcePacks.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace resourcepack { + // @ts-ignore + class ResourcePacks extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Creates a {@link ResourcePack} from a URI and tries to download and hash + * it. + */ + // @ts-ignore + public static fromUri(uri: java.net.URI): org.spongepowered.api.resourcepack.ResourcePack; + /** + * Creates a {@link ResourcePack} from a URI, without checking ("unchecked") + * if there is a valid pack at the URI. + */ + // @ts-ignore + public static fromUriUnchecked(uri: java.net.URI): org.spongepowered.api.resourcepack.ResourcePack; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.scheduler.AsynchronousExecutor.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.scheduler.AsynchronousExecutor.d.ts new file mode 100644 index 00000000..5ded8965 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.scheduler.AsynchronousExecutor.d.ts @@ -0,0 +1,12 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace scheduler { + // @ts-ignore + interface AsynchronousExecutor { + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.scheduler.Scheduler.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.scheduler.Scheduler.d.ts new file mode 100644 index 00000000..5703bc43 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.scheduler.Scheduler.d.ts @@ -0,0 +1,61 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace scheduler { + // @ts-ignore + interface Scheduler { + /** + * Gets a new instance of a {@link Task.Builder}. + */ + // @ts-ignore + createTaskBuilder(): org.spongepowered.api.scheduler.Task.Builder; + /** + * Retrieves a scheduled or running task by its unique ID. + */ + // @ts-ignore + getTaskById(id: java.util.UUID): java.util.Optional; + /** + * Returns a set of {@link Task}s that match the Regular Expression pattern. + */ + // @ts-ignore + getTasksByName(pattern: string): java.util.Set; + /** + * Returns a set of all currently scheduled tasks. + */ + // @ts-ignore + getScheduledTasks(): java.util.Set; + /** + * Returns a set of all currently scheduled tasks for either asynchronous or + * synchronous execution. + */ + // @ts-ignore + getScheduledTasks(async: boolean): java.util.Set; + /** + * Returns a set of all currently scheduled tasks owned by the given plugin. + */ + // @ts-ignore + getScheduledTasks(plugin: java.lang.Object): java.util.Set; + /** + * Gets the ideal delay between ticks in milliseconds. The server aims to + * stabilise at this value. + */ + // @ts-ignore + getPreferredTickInterval(): number; + /** + * Creates a new {@link ExecutorService} that can be used to schedule + * synchronous tasks through the standard Java concurrency interfaces. + */ + // @ts-ignore + createSyncExecutor(plugin: java.lang.Object): org.spongepowered.api.scheduler.SpongeExecutorService; + /** + * Creates a new {@link ExecutorService} that can be used to schedule + * asynchronous tasks through the standard Java concurrency interfaces. + */ + // @ts-ignore + createAsyncExecutor(plugin: java.lang.Object): org.spongepowered.api.scheduler.SpongeExecutorService; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.scheduler.SpongeExecutorService.SpongeFuture.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.scheduler.SpongeExecutorService.SpongeFuture.d.ts new file mode 100644 index 00000000..174a5529 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.scheduler.SpongeExecutorService.SpongeFuture.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace scheduler { + namespace SpongeExecutorService { + // @ts-ignore + interface SpongeFuture { + /** + * Retrieves the {@link Scheduler} {@link Task} instance that + * is responsible for the execution of this future. + */ + // @ts-ignore + getTask(): org.spongepowered.api.scheduler.Task; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.scheduler.SpongeExecutorService.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.scheduler.SpongeExecutorService.d.ts new file mode 100644 index 00000000..c2ccd783 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.scheduler.SpongeExecutorService.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace scheduler { + // @ts-ignore + interface SpongeExecutorService { + // @ts-ignore + schedule(command: java.lang.Runnable, delay: number, unit: java.util.concurrent.TimeUnit): org.spongepowered.api.scheduler.SpongeExecutorService.SpongeFuture; + // @ts-ignore + schedule(callable: java.util.concurrent.Callable, delay: number, unit: java.util.concurrent.TimeUnit): org.spongepowered.api.scheduler.SpongeExecutorService.SpongeFuture; + // @ts-ignore + scheduleAtFixedRate(command: java.lang.Runnable, initialDelay: number, period: number, unit: java.util.concurrent.TimeUnit): org.spongepowered.api.scheduler.SpongeExecutorService.SpongeFuture; + // @ts-ignore + scheduleWithFixedDelay(command: java.lang.Runnable, initialDelay: number, delay: number, unit: java.util.concurrent.TimeUnit): org.spongepowered.api.scheduler.SpongeExecutorService.SpongeFuture; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.scheduler.SynchronousExecutor.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.scheduler.SynchronousExecutor.d.ts new file mode 100644 index 00000000..5500d91d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.scheduler.SynchronousExecutor.d.ts @@ -0,0 +1,12 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace scheduler { + // @ts-ignore + interface SynchronousExecutor { + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.scheduler.Task.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.scheduler.Task.Builder.d.ts new file mode 100644 index 00000000..49b1a079 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.scheduler.Task.Builder.d.ts @@ -0,0 +1,92 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace scheduler { + namespace Task { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets whether the task should run asynchronous, outside of the main + * loop, and in it's own thread. By default, tasks are synchronous. + *

A synchronous task is ran in alignment with the game's main loop, + * in the same thread. Each synchronous task is ran in series with the + * tick cycle. It is safe to manipulate game data when running in this + * mode.

+ *

In contrast, a task set to run asynchronously will run + * independently of the tick cycle and in it's own thread. Therefore the + * task is not thread safe with game data and care must be taken. + * It is strongly advised to not manipulate game data in + * asynchronous tasks.

+ *

It is not possible to schedule a task in unit ticks when running + * asynchronously. If the delay or interval is specified in ticks, it + * will be converted to the equivalent wall clock time by multiplying + * the value by {@link Scheduler#getPreferredTickInterval()}.

+ */ + // @ts-ignore + async(): org.spongepowered.api.scheduler.Task.Builder; + /** + * Sets the {@link Runnable} to run when this task executes. + */ + // @ts-ignore + execute(runnable: java.lang.Runnable): org.spongepowered.api.scheduler.Task.Builder; + /** + * Sets the consumer that runs when this task executes. + */ + // @ts-ignore + execute(executor: java.util.function$.Consumer): org.spongepowered.api.scheduler.Task.Builder; + /** + * Sets the delay before the task runs. This delay is an initial offset, + * subsequent runs (when the interval is not 0) will not be offset. By + * default, the delay is 0. + */ + // @ts-ignore + delay(delay: number, unit: java.util.concurrent.TimeUnit): org.spongepowered.api.scheduler.Task.Builder; + /** + * Sets the delay before the task runs, in unit ticks. + */ + // @ts-ignore + delayTicks(ticks: number): org.spongepowered.api.scheduler.Task.Builder; + /** + * Sets the interval between repetitions of the task. The task will not + * repeat if the interval is 0. By default, the interval is 0. + *

If the scheduler detects that two tasks will overlap, the 2nd task + * will not be started. The next time the task is due to run, the test + * will be made again to determine if the previous occurrence of the + * task is still alive (running). As long as a previous occurrence is + * running no new occurrences of that specific task will start, although + * the scheduler will never cease in trying to start it a 2nd time.

+ */ + // @ts-ignore + interval(interval: number, unit: java.util.concurrent.TimeUnit): org.spongepowered.api.scheduler.Task.Builder; + /** + * Sets the interval in unit ticks between repetitions of the task. + */ + // @ts-ignore + intervalTicks(ticks: number): org.spongepowered.api.scheduler.Task.Builder; + /** + * Sets the name of the task, the name cannot be blank. + *

If the name is not set in the builder, the name of the task + * will be the form:
PLUGIN_ID "-" ( "A-" | "S-" ) SERIAL_ID + *

+ *

Examples of default Task names:
+ * "FooPlugin-A-12"
"BarPlugin-S-4322"

+ *

No two active tasks will have the same serial ID for the same + * synchronisation type.
i.e APlugin-A-15 and + * BPlugin-A-15 is not possible but BPlugin-S-15 + * is.

+ */ + // @ts-ignore + name(name: string): org.spongepowered.api.scheduler.Task.Builder; + /** + * Submits the task to the scheduler and returns the task that was + * created. + */ + // @ts-ignore + submit(plugin: java.lang.Object): org.spongepowered.api.scheduler.Task; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.scheduler.Task.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.scheduler.Task.d.ts new file mode 100644 index 00000000..6192aa45 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.scheduler.Task.d.ts @@ -0,0 +1,55 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace scheduler { + // @ts-ignore + interface Task extends org.spongepowered.api.util.Identifiable { + /** + * Creates a new {@link Builder} to build a {@link Task}. + */ + // @ts-ignore + builder(): org.spongepowered.api.scheduler.Task.Builder; + /** + * Gets the name of this task. + */ + // @ts-ignore + getName(): string; + /** + * Returns the plugin that scheduled this task. + */ + // @ts-ignore + getOwner(): org.spongepowered.api.plugin.PluginContainer; + /** + * Gets the delay that the task was scheduled to run after. A delay of 0 + * represents that the task started immediately. + */ + // @ts-ignore + getDelay(): number; + /** + * Gets the interval for repeating tasks. An interval of 0 represents that + * the task does not repeat. + */ + // @ts-ignore + getInterval(): number; + /** + * Cancels the task. Cancelling a repeating task will prevent any further + * repetitions of the task. + */ + // @ts-ignore + cancel(): boolean; + /** + * Gets the {@link Consumer}<{@link Task}> that this task is running. + */ + // @ts-ignore + getConsumer(): java.util.function$.Consumer; + /** + * Gets whether this task is asynchronous. + */ + // @ts-ignore + isAsynchronous(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.CollisionRule.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.CollisionRule.d.ts new file mode 100644 index 00000000..3946db3d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.CollisionRule.d.ts @@ -0,0 +1,12 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + // @ts-ignore + interface CollisionRule extends org.spongepowered.api.CatalogType { + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.CollisionRules.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.CollisionRules.d.ts new file mode 100644 index 00000000..49ff3471 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.CollisionRules.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + // @ts-ignore + class CollisionRules extends java.lang.Object { + // @ts-ignore + public static ALWAYS: org.spongepowered.api.scoreboard.CollisionRule; + // @ts-ignore + public static NEVER: org.spongepowered.api.scoreboard.CollisionRule; + // @ts-ignore + public static PUSH_OTHER_TEAMS: org.spongepowered.api.scoreboard.CollisionRule; + // @ts-ignore + public static PUSH_OWN_TEAM: org.spongepowered.api.scoreboard.CollisionRule; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.Score.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.Score.d.ts new file mode 100644 index 00000000..88e61f76 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.Score.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + // @ts-ignore + interface Score { + /** + * Gets the name of this score. + */ + // @ts-ignore + getName(): org.spongepowered.api.text.Text; + /** + * Gets the current score value. + */ + // @ts-ignore + getScore(): number; + /** + * Sets the current score value. + */ + // @ts-ignore + setScore(score: number): void; + /** + * Returns a {@link Set} of parent {@link Objective}s this {@link Score} is + * registered to. + */ + // @ts-ignore + getObjectives(): java.util.Set; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.Scoreboard.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.Scoreboard.Builder.d.ts new file mode 100644 index 00000000..4bdae279 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.Scoreboard.Builder.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + namespace Scoreboard { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the list of {@link Objective}s of the {@link Scoreboard}. + *

By default, this is the empty list.

+ */ + // @ts-ignore + objectives(objectives: java.util.List): org.spongepowered.api.scoreboard.Scoreboard.Builder; + /** + * Sets the list of {@link Team}s of the {@link Scoreboard}. + *

By default, this is the empty list.

+ */ + // @ts-ignore + teams(teams: java.util.List): org.spongepowered.api.scoreboard.Scoreboard.Builder; + /** + * Builds an instance of a {@link Scoreboard}. + */ + // @ts-ignore + build(): org.spongepowered.api.scoreboard.Scoreboard; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.Scoreboard.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.Scoreboard.d.ts new file mode 100644 index 00000000..ba26a103 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.Scoreboard.d.ts @@ -0,0 +1,101 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + // @ts-ignore + interface Scoreboard { + /** + * Creates a new {@link Builder} to build a {@link Scoreboard}. + */ + // @ts-ignore + builder(): org.spongepowered.api.scoreboard.Scoreboard.Builder; + /** + * Gets an {@link Objective} on this scoreboard by name, if it exists. + */ + // @ts-ignore + getObjective(name: string): java.util.Optional; + /** + * Gets the {@link Objective} currently displayed in a {@link DisplaySlot} on this + * scoreboard, if one is present. + */ + // @ts-ignore + getObjective(slot: org.spongepowered.api.scoreboard.displayslot.DisplaySlot): java.util.Optional; + /** + * Adds the specified {@link Objective} to this scoreboard. + */ + // @ts-ignore + addObjective(objective: org.spongepowered.api.scoreboard.objective.Objective): void; + /** + * Sets the specified {@link Objective} in the specified {@link DisplaySlot}. + *

If the {@link Objective} is null, then the specified + * {@link DisplaySlot} will be cleared.

+ */ + // @ts-ignore + updateDisplaySlot(objective: org.spongepowered.api.scoreboard.objective.Objective, displaySlot: org.spongepowered.api.scoreboard.displayslot.DisplaySlot): void; + /** + * Clears any {@link Objective} in the specified slot. + */ + // @ts-ignore + clearSlot(slot: org.spongepowered.api.scoreboard.displayslot.DisplaySlot): void; + /** + * Gets all {@link Objective}s of a Criteria on this scoreboard. + */ + // @ts-ignore + getObjectivesByCriteria(criteria: org.spongepowered.api.scoreboard.critieria.Criterion): java.util.Set; + /** + * Gets all {@link Objective}s on this scoreboard. + */ + // @ts-ignore + getObjectives(): java.util.Set; + /** + * Removes the specified {@link Objective} from this scoreboard. + */ + // @ts-ignore + removeObjective(objective: org.spongepowered.api.scoreboard.objective.Objective): void; + /** + * Gets all the scores on this scoreboard, across all objectives. + *

If the same {@link Score} has been added to multiple objectives, + * it will only appear once in the set.

+ */ + // @ts-ignore + getScores(): java.util.Set; + /** + * Gets all scores with the specified name on this scoreboard, + * across all objectives. + *

If the same {@link Score} has been added to multiple objectives, + * it will only appear once in the set.

+ */ + // @ts-ignore + getScores(name: org.spongepowered.api.text.Text): java.util.Set; + /** + * Removes all scores with the specified name on this scoreboard, + * across all objectives. + */ + // @ts-ignore + removeScores(name: org.spongepowered.api.text.Text): void; + /** + * Gets a {@link Team} by name on this scoreboard. + */ + // @ts-ignore + getTeam(teamName: string): java.util.Optional; + /** + * Registers the specified {@link Team} to this scoreboard. + */ + // @ts-ignore + registerTeam(team: org.spongepowered.api.scoreboard.Team): void; + /** + * Gets all the {@link Team}s on this scoreboard. + */ + // @ts-ignore + getTeams(): java.util.Set; + /** + * Gets a {@link Text} member's {@link Team} on this scoreboard. + */ + // @ts-ignore + getMemberTeam(member: org.spongepowered.api.text.Text): java.util.Optional; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.Team.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.Team.Builder.d.ts new file mode 100644 index 00000000..63b28e33 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.Team.Builder.d.ts @@ -0,0 +1,93 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + namespace Team { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the name of the {@link Team}. + */ + // @ts-ignore + name(name: string): org.spongepowered.api.scoreboard.Team.Builder; + /** + * Sets the color of the {@link Team}. + *

The team's color is a distinct concept from its prefix or suffix. + * It is only used for colored sidebar display slots, and certain + * statistic criteria.

+ */ + // @ts-ignore + color(color: org.spongepowered.api.text.format.TextColor): org.spongepowered.api.scoreboard.Team.Builder; + /** + * Sets the name displayed to users for the {@link Team}. + *

Display names may be truncated in order to meet an + * implementation-defined length limit. In Vanilla, this is sixteen + * characters.

+ *

By default, this is set to {@link #name(String)}

+ */ + // @ts-ignore + displayName(displayName: org.spongepowered.api.text.Text): org.spongepowered.api.scoreboard.Team.Builder; + /** + * Sets the prefix prepended to the display name of users on the + * {@link Team}. + *

Display names may be truncated in order to meet an + * implementation-defined length limit. In Vanilla, this is sixteen + * characters.

+ */ + // @ts-ignore + prefix(prefix: org.spongepowered.api.text.Text): org.spongepowered.api.scoreboard.Team.Builder; + /** + * Sets the suffix appended to the display name of users on the + * {@link Team}. + *

Display names may be truncated in order to meet an + * implementation-defined length limit. In Vanilla, this is sixteen + * characters.

+ */ + // @ts-ignore + suffix(suffix: org.spongepowered.api.text.Text): org.spongepowered.api.scoreboard.Team.Builder; + /** + * Sets whether friendly fire is enabled for the {@link Team}. + */ + // @ts-ignore + allowFriendlyFire(enabled: boolean): org.spongepowered.api.scoreboard.Team.Builder; + /** + * Sets whether invisible team members are shown for the + * {@link Team}. + */ + // @ts-ignore + canSeeFriendlyInvisibles(enabled: boolean): org.spongepowered.api.scoreboard.Team.Builder; + /** + * Sets the {@link Visibility} which controls to who nametags + * of players on the {@link Team} are visible to. + */ + // @ts-ignore + nameTagVisibility(visibility: org.spongepowered.api.scoreboard.Visibility): org.spongepowered.api.scoreboard.Team.Builder; + /** + * Sets the {@link Visibility} which controls who death Texts + * of players on the {@link Team} are visible to. + */ + // @ts-ignore + deathTextVisibility(visibility: org.spongepowered.api.scoreboard.Visibility): org.spongepowered.api.scoreboard.Team.Builder; + /** + * Sets the {@link CollisionRule} for this team's members. + */ + // @ts-ignore + collisionRule(rule: org.spongepowered.api.scoreboard.CollisionRule): org.spongepowered.api.scoreboard.Team.Builder; + /** + * Sets the set of {@link Text} members on the {@link Team}. + *

By default, this is the empty set.

+ */ + // @ts-ignore + members(users: java.util.Set): org.spongepowered.api.scoreboard.Team.Builder; + /** + * Builds an instance of a {@link Team}. + */ + // @ts-ignore + build(): org.spongepowered.api.scoreboard.Team; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.Team.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.Team.d.ts new file mode 100644 index 00000000..3100941e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.Team.d.ts @@ -0,0 +1,164 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + // @ts-ignore + interface Team { + /** + * Creates a new {@link Builder} to build a {@link Team}. + */ + // @ts-ignore + builder(): org.spongepowered.api.scoreboard.Team.Builder; + /** + * Gets the name of this team. + */ + // @ts-ignore + getName(): string; + /** + * Gets the name displayed to users for this team. + */ + // @ts-ignore + getDisplayName(): org.spongepowered.api.text.Text; + /** + * Sets the name displayed to users for this team. + */ + // @ts-ignore + setDisplayName(displayName: org.spongepowered.api.text.Text): void; + /** + * Gets the color of this team. + *

The team's color is a distinct concept from its prefix or suffix. + * It is only used for colored sidebar display slots, and certain statistic + * criteria.

+ */ + // @ts-ignore + getColor(): org.spongepowered.api.text.format.TextColor; + /** + * Sets the color of this team. + *

The team's color is a distinct concept from its prefix or suffix. + * It is only used for colored sidebar display slots, and certain statistic + * criteria.

+ */ + // @ts-ignore + setColor(color: org.spongepowered.api.text.format.TextColor): void; + /** + * Gets the prefix prepended to the display name of users on this team. + */ + // @ts-ignore + getPrefix(): org.spongepowered.api.text.Text; + /** + * Sets the prefix prepended to the display name of users on this team. + */ + // @ts-ignore + setPrefix(prefix: org.spongepowered.api.text.Text): void; + /** + * Gets the suffix appended to the display name of users on this team. + */ + // @ts-ignore + getSuffix(): org.spongepowered.api.text.Text; + /** + * Sets the suffix appended to the display name of users on this team. + */ + // @ts-ignore + setSuffix(suffix: org.spongepowered.api.text.Text): void; + /** + * Gets whether friendly fire is enabled. + *

This option only controls players attacking other players. It has no + * affect other entities attacking other entities, or players attacking + * other entities (or vice-versa).

+ */ + // @ts-ignore + allowFriendlyFire(): boolean; + /** + * Sets whether friendly fire is enabled. + */ + // @ts-ignore + setAllowFriendlyFire(enabled: boolean): void; + /** + * Gets whether invisible team members are shown. + */ + // @ts-ignore + canSeeFriendlyInvisibles(): boolean; + /** + * Sets whether invisible team members are shown. + */ + // @ts-ignore + setCanSeeFriendlyInvisibles(enabled: boolean): void; + /** + * Gets the {@link Visibility} which controls to who nametags + * of players on this team are visible to. + */ + // @ts-ignore + getNameTagVisibility(): org.spongepowered.api.scoreboard.Visibility; + /** + * Sets the {@link Visibility} which controls to who nametags + * of players on this team are visible to. + */ + // @ts-ignore + setNameTagVisibility(visibility: org.spongepowered.api.scoreboard.Visibility): void; + /** + * Gets the {@link Visibility} which controls who death Texts + * for players on this team are visible to. + */ + // @ts-ignore + getDeathMessageVisibility(): org.spongepowered.api.scoreboard.Visibility; + /** + * Sets the {@link Visibility} which controls who death Texts + * of players on this team are visible to. + */ + // @ts-ignore + setDeathMessageVisibility(visibility: org.spongepowered.api.scoreboard.Visibility): void; + /** + * Gets the {@link CollisionRule} for entities on this team. + */ + // @ts-ignore + getCollisionRule(): org.spongepowered.api.scoreboard.CollisionRule; + /** + * Sets the {@link CollisionRule} for entities on this team. + */ + // @ts-ignore + setCollisionRule(rule: org.spongepowered.api.scoreboard.CollisionRule): void; + /** + * Gets the {@link Text}s representing the members of this team. + */ + // @ts-ignore + getMembers(): java.util.Set; + /** + * Adds the specified {@link Text} to this team. + *

While any {@link Text} may be added, the {@link Text} to use should + * normally be obtained by calling + * {@link TeamMember#getTeamRepresentation()} on a {@link TeamMember}, such + * as a {@link Player}.

+ */ + // @ts-ignore + addMember(member: org.spongepowered.api.text.Text): void; + /** + * Removes the specified {@link Text} from this team. + *

While any {@link Text} may be removed, the {@link Text} + * to use should normally be obtained by calling {@link TeamMember#getTeamRepresentation()} + * on a {@link TeamMember}, such as a {@link Player}.

+ */ + // @ts-ignore + removeMember(member: org.spongepowered.api.text.Text): boolean; + /** + * Returns the scoreboard this team is registered on, if available. + *

This will return {@link Optional#empty()} when a team has + * been removed from its {@link Scoreboard}, or has been created + * but not yet registered.

+ */ + // @ts-ignore + getScoreboard(): java.util.Optional; + /** + * Unregisters this team from its {@link Scoreboard}, if present. + *

A team can still be fully used after being unregistered. However, + * it will not affect the game in any way until registered to a + * {@link Scoreboard} again, through + * {@link Scoreboard#registerTeam(Team)}.

+ */ + // @ts-ignore + unregister(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.TeamMember.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.TeamMember.d.ts new file mode 100644 index 00000000..2f57be46 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.TeamMember.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + // @ts-ignore + interface TeamMember { + /** + * Gets a {@link Text} representing this team member, suitable for adding + * to an {@link Team} with {@link Team#addMember(Text)}. + */ + // @ts-ignore + getTeamRepresentation(): org.spongepowered.api.text.Text; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.Visibilities.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.Visibilities.d.ts new file mode 100644 index 00000000..3b635468 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.Visibilities.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + // @ts-ignore + class Visibilities extends java.lang.Object { + // @ts-ignore + public static ALWAYS: org.spongepowered.api.scoreboard.Visibility; + // @ts-ignore + public static HIDE_FOR_OTHER_TEAMS: org.spongepowered.api.scoreboard.Visibility; + // @ts-ignore + public static HIDE_FOR_OWN_TEAM: org.spongepowered.api.scoreboard.Visibility; + // @ts-ignore + public static NEVER: org.spongepowered.api.scoreboard.Visibility; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.Visibility.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.Visibility.d.ts new file mode 100644 index 00000000..7474e15e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.Visibility.d.ts @@ -0,0 +1,12 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + // @ts-ignore + interface Visibility extends org.spongepowered.api.CatalogType { + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.critieria.Criteria.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.critieria.Criteria.d.ts new file mode 100644 index 00000000..16c3b3f2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.critieria.Criteria.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + namespace critieria { + // @ts-ignore + class Criteria extends java.lang.Object { + // @ts-ignore + public static DEATHS: org.spongepowered.api.scoreboard.critieria.Criterion; + // @ts-ignore + public static DUMMY: org.spongepowered.api.scoreboard.critieria.Criterion; + // @ts-ignore + public static HEALTH: org.spongepowered.api.scoreboard.critieria.Criterion; + // @ts-ignore + public static PLAYER_KILLS: org.spongepowered.api.scoreboard.critieria.Criterion; + // @ts-ignore + public static TOTAL_KILLS: org.spongepowered.api.scoreboard.critieria.Criterion; + // @ts-ignore + public static TRIGGER: org.spongepowered.api.scoreboard.critieria.Criterion; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.critieria.Criterion.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.critieria.Criterion.d.ts new file mode 100644 index 00000000..f7f030cd --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.critieria.Criterion.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + namespace critieria { + // @ts-ignore + interface Criterion extends org.spongepowered.api.CatalogType { + /** + * Gets the name of this criterion. + */ + // @ts-ignore + getName(): string; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.displayslot.DisplaySlot.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.displayslot.DisplaySlot.Builder.d.ts new file mode 100644 index 00000000..6358e7ee --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.displayslot.DisplaySlot.Builder.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + namespace displayslot { + namespace DisplaySlot { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the {@link TextColor} of the display slot. + */ + // @ts-ignore + sidebarTeamColor(color: org.spongepowered.api.text.format.TextColor): org.spongepowered.api.scoreboard.displayslot.DisplaySlot.Builder; + /** + * Builds an instance of a {@link DisplaySlot}. + */ + // @ts-ignore + build(): org.spongepowered.api.scoreboard.displayslot.DisplaySlot; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.displayslot.DisplaySlot.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.displayslot.DisplaySlot.d.ts new file mode 100644 index 00000000..589a4a5d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.displayslot.DisplaySlot.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + namespace displayslot { + // @ts-ignore + interface DisplaySlot extends org.spongepowered.api.CatalogType { + /** + * Gets the {@link Team} color that this objective will display for, if set. + */ + // @ts-ignore + getTeamColor(): java.util.Optional; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.displayslot.DisplaySlots.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.displayslot.DisplaySlots.d.ts new file mode 100644 index 00000000..d385d8bd --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.displayslot.DisplaySlots.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + namespace displayslot { + // @ts-ignore + class DisplaySlots extends java.lang.Object { + // @ts-ignore + public static BELOW_NAME: org.spongepowered.api.scoreboard.displayslot.DisplaySlot; + // @ts-ignore + public static LIST: org.spongepowered.api.scoreboard.displayslot.DisplaySlot; + // @ts-ignore + public static SIDEBAR: org.spongepowered.api.scoreboard.displayslot.DisplaySlot; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.objective.Objective.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.objective.Objective.Builder.d.ts new file mode 100644 index 00000000..8bf45f42 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.objective.Objective.Builder.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + namespace objective { + namespace Objective { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the name of the {@link Objective}. + */ + // @ts-ignore + name(name: string): org.spongepowered.api.scoreboard.objective.Objective.Builder; + /** + * Sets the display name of the {@link Objective}. + */ + // @ts-ignore + displayName(displayName: org.spongepowered.api.text.Text): org.spongepowered.api.scoreboard.objective.Objective.Builder; + /** + * Sets the {@link Criterion} of the {@link Objective}. + */ + // @ts-ignore + criterion(criterion: org.spongepowered.api.scoreboard.critieria.Criterion): org.spongepowered.api.scoreboard.objective.Objective.Builder; + /** + * Sets the {@link ObjectiveDisplayMode} of the {@link Objective}. + */ + // @ts-ignore + objectiveDisplayMode(objectiveDisplayMode: org.spongepowered.api.scoreboard.objective.displaymode.ObjectiveDisplayMode): org.spongepowered.api.scoreboard.objective.Objective.Builder; + /** + * Builds an instance of an {@link Objective}. + */ + // @ts-ignore + build(): org.spongepowered.api.scoreboard.objective.Objective; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.objective.Objective.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.objective.Objective.d.ts new file mode 100644 index 00000000..06b0c028 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.objective.Objective.d.ts @@ -0,0 +1,91 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + namespace objective { + // @ts-ignore + interface Objective { + /** + * Creates a new {@link Builder} to build a {@link Objective}. + */ + // @ts-ignore + builder(): org.spongepowered.api.scoreboard.objective.Objective.Builder; + /** + * Gets the name of this Objective. + */ + // @ts-ignore + getName(): string; + /** + * Gets the name displayed to players. + */ + // @ts-ignore + getDisplayName(): org.spongepowered.api.text.Text; + /** + * Sets the name displayed to players. + */ + // @ts-ignore + setDisplayName(displayName: org.spongepowered.api.text.Text): void; + /** + * Gets the criterion for this objective. + */ + // @ts-ignore + getCriterion(): org.spongepowered.api.scoreboard.critieria.Criterion; + /** + * Gets the {@link ObjectiveDisplayMode} used to display this objective. + */ + // @ts-ignore + getDisplayMode(): org.spongepowered.api.scoreboard.objective.displaymode.ObjectiveDisplayMode; + /** + * Sets the {@link ObjectiveDisplayMode} used to display this objective. + */ + // @ts-ignore + setDisplayMode(displayMode: org.spongepowered.api.scoreboard.objective.displaymode.ObjectiveDisplayMode): void; + /** + * Gets the set of {@link Score}s for this objective. + */ + // @ts-ignore + getScores(): java.util.Map; + /** + * Returns whether this objective has a {@link Score} with the given name. + */ + // @ts-ignore + hasScore(name: org.spongepowered.api.text.Text): boolean; + /** + * Adds the specified {@link Score} to this objective. + */ + // @ts-ignore + addScore(score: org.spongepowered.api.scoreboard.Score): void; + /** + * Gets an entry's {@link Score} for this objective, if it exists. + */ + // @ts-ignore + getScore(name: org.spongepowered.api.text.Text): java.util.Optional; + /** + * Gets an entry's {@link Score} for this objective. + *

If the {@link Score} does not exist, it will be created.

+ */ + // @ts-ignore + getOrCreateScore(name: org.spongepowered.api.text.Text): org.spongepowered.api.scoreboard.Score; + /** + * Removes the specified {@link Score} from this objective, if present. + */ + // @ts-ignore + removeScore(score: org.spongepowered.api.scoreboard.Score): boolean; + /** + * Removes the {@link Score} with the specified name from this objective, if present. + */ + // @ts-ignore + removeScore(name: org.spongepowered.api.text.Text): boolean; + /** + * Returns a {@link Set} of parent {@link Scoreboard}s this + * {@link Objective} is registered to. + */ + // @ts-ignore + getScoreboards(): java.util.Set; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.objective.displaymode.ObjectiveDisplayMode.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.objective.displaymode.ObjectiveDisplayMode.d.ts new file mode 100644 index 00000000..3b1bfc61 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.objective.displaymode.ObjectiveDisplayMode.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + namespace objective { + namespace displaymode { + // @ts-ignore + interface ObjectiveDisplayMode extends org.spongepowered.api.CatalogType { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.objective.displaymode.ObjectiveDisplayModes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.objective.displaymode.ObjectiveDisplayModes.d.ts new file mode 100644 index 00000000..21f88f71 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.scoreboard.objective.displaymode.ObjectiveDisplayModes.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace scoreboard { + namespace objective { + namespace displaymode { + // @ts-ignore + class ObjectiveDisplayModes extends java.lang.Object { + // @ts-ignore + public static HEARTS: org.spongepowered.api.scoreboard.objective.displaymode.ObjectiveDisplayMode; + // @ts-ignore + public static INTEGER: org.spongepowered.api.scoreboard.objective.displaymode.ObjectiveDisplayMode; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.ProviderRegistration.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.ProviderRegistration.d.ts new file mode 100644 index 00000000..6d801c2e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.ProviderRegistration.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + // @ts-ignore + interface ProviderRegistration { + /** + * Gets the service of this provider registration. + */ + // @ts-ignore + getService(): java.lang.Class; + /** + * Gets the service provider of this provider registration. + */ + // @ts-ignore + getProvider(): java.lang.Object; + /** + * Gets the {@link PluginContainer} that registered the provider of this + * provider registration. + */ + // @ts-ignore + getPlugin(): org.spongepowered.api.plugin.PluginContainer; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.ProvisioningException.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.ProvisioningException.d.ts new file mode 100644 index 00000000..03c3ef0e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.ProvisioningException.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + // @ts-ignore + class ProvisioningException extends java.lang.RuntimeException { + /** + * Constructs a new {@link ProvisioningException} for the specified service. + */ + // @ts-ignore + constructor(service: java.lang.Class) + /** + * Constructs a new {@link ProvisioningException} for the specified service with + * the specified message. + */ + // @ts-ignore + constructor(message: string, service: java.lang.Class) + /** + * Constructs a new {@link ProvisioningException} for the specified service with + * the specified service and cause. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable, service: java.lang.Class) + /** + * Constructs a new {@link ProvisioningException} for the specified service with + * the specified cause and a null message. + */ + // @ts-ignore + constructor(cause: java.lang.Throwable, service: java.lang.Class) + /** + * Gets the service that was requested. + */ + // @ts-ignore + public getService(): java.lang.Class; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.ServiceManager.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.ServiceManager.d.ts new file mode 100644 index 00000000..d1bf65a6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.ServiceManager.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + // @ts-ignore + interface ServiceManager { + /** + * Register a provider with the service manager. + *

Services are by definition replaceable at any given time.

+ *

Services should only be registered during initialization. If services + * are registered later, then they may not be utilized.

+ */ + // @ts-ignore + setProvider(plugin: java.lang.Object, service: java.lang.Class, provider: java.lang.Object): void; + /** + * Return a provider for the given service, if one is available. + *

The returned provider may be a proxy to the real underlying proxy, + * depending on the implementation of the service manager.

+ */ + // @ts-ignore + provide(service: java.lang.Class): java.util.Optional; + /** + * Gets the {@link ProviderRegistration} for the given service, if available. + */ + // @ts-ignore + getRegistration(service: java.lang.Class): java.util.Optional; + /** + * Gets whether the class of the type of service is already registered with + * this manager. This does not register or unregister any services. + */ + // @ts-ignore + isRegistered(service: java.lang.Class): boolean; + /** + * Return a provider for the given service, raising an unchecked exception + * if a provider does not exist. + *

The returned provider may be a proxy to the real underlying proxy, + * depending on the implementation of the service manager.

+ */ + // @ts-ignore + provideUnchecked(service: java.lang.Class): java.lang.Object; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.SimpleServiceManager.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.SimpleServiceManager.d.ts new file mode 100644 index 00000000..8e03c5f6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.SimpleServiceManager.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + // @ts-ignore + class SimpleServiceManager extends java.lang.Object implements org.spongepowered.api.service.ServiceManager { + /** + * Construct a simple {@link ServiceManager}. + */ + // @ts-ignore + constructor(pluginManager: org.spongepowered.api.plugin.PluginManager) + // @ts-ignore + public setProvider(plugin: java.lang.Object, service: java.lang.Class, provider: java.lang.Object): void; + // @ts-ignore + public provide(service: java.lang.Class): java.util.Optional; + // @ts-ignore + public getRegistration(service: java.lang.Class): java.util.Optional; + // @ts-ignore + public provideUnchecked(service: java.lang.Class): java.lang.Object; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.ban.BanService.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.ban.BanService.d.ts new file mode 100644 index 00000000..3bd93417 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.ban.BanService.d.ts @@ -0,0 +1,76 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace ban { + // @ts-ignore + interface BanService { + /** + * Gets all bans registered. + */ + // @ts-ignore + getBans(): java.util.Collection; + /** + * Gets all {@link GameProfile} bans registered. + */ + // @ts-ignore + getProfileBans(): java.util.Collection; + /** + * Gets all IP bans registered. + */ + // @ts-ignore + getIpBans(): java.util.Collection; + /** + * Gets the ban for the given {@link GameProfile}, if available. + */ + // @ts-ignore + getBanFor(profile: org.spongepowered.api.profile.GameProfile): java.util.Optional; + /** + * Gets the ban for the given address, if available. + */ + // @ts-ignore + getBanFor(address: java.net.InetAddress): java.util.Optional; + /** + * Checks if a {@link GameProfile} has a ban. + */ + // @ts-ignore + isBanned(profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Checks if an IP has a ban. + */ + // @ts-ignore + isBanned(address: java.net.InetAddress): boolean; + /** + * Pardons a profile, or removes its ban, if present. + */ + // @ts-ignore + pardon(profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Pardons an IP address, or removes its ban, if present. + */ + // @ts-ignore + pardon(address: java.net.InetAddress): boolean; + /** + * Removes a ban. + */ + // @ts-ignore + removeBan(ban: org.spongepowered.api.util.ban.Ban): boolean; + /** + * Adds a ban. + *

If the GameProfile or IP address of the ban already has a ban set, + * the passed in ban will replace the existing ban.

+ */ + // @ts-ignore + addBan(ban: org.spongepowered.api.util.ban.Ban): java.util.Optional; + /** + * Checks if the specified ban is present. + */ + // @ts-ignore + hasBan(ban: org.spongepowered.api.util.ban.Ban): boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.context.Context.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.context.Context.d.ts new file mode 100644 index 00000000..7979f677 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.context.Context.d.ts @@ -0,0 +1,61 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace context { + // @ts-ignore + class Context extends java.lang.Object { + /** + * Create a new context instance. + */ + // @ts-ignore + constructor(key: string, value: string) + // @ts-ignore + public static USER_KEY: string; + // @ts-ignore + public static WORLD_KEY: string; + // @ts-ignore + public static DIMENSION_KEY: string; + // @ts-ignore + public static REMOTE_IP_KEY: string; + // @ts-ignore + public static LOCAL_HOST_KEY: string; + // @ts-ignore + public static LOCAL_IP_KEY: string; + // @ts-ignore + public static LOCAL_PORT_KEY: string; + /** + * Gets the context key. + */ + // @ts-ignore + public getKey(): string; + /** + * Gets the context value. + */ + // @ts-ignore + public getValue(): string; + /** + * Alias method for {@link #getKey()}. + */ + // @ts-ignore + public getType(): string; + /** + * Alias method for {@link #getValue()}. + */ + // @ts-ignore + public getName(): string; + // @ts-ignore + public setValue(value: string): string; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.context.ContextCalculator.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.context.ContextCalculator.d.ts new file mode 100644 index 00000000..0c5370bf --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.context.ContextCalculator.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace context { + // @ts-ignore + interface ContextCalculator { + /** + * Creates a new {@link ContextCalculator} that provides a single context. + */ + // @ts-ignore + forSingleContext(key: string, valueFunction: java.util.function$.Function): org.spongepowered.api.service.context.ContextCalculator; + /** + * Adds any {@link Context}s this calculator determines to be applicable to + * the {@code target} contextual. + *

Care should be taken to ensure implementations of this method meet the + * general requirements for {@link ContextCalculator}, defined in the class + * doc.

+ *

Calculators should not rely on the state of {@code accumulator} during + * this call, and also shouldn't make calls to remove contexts added by + * other calculators.

+ */ + // @ts-ignore + accumulateContexts(target: org.spongepowered.api.service.context.Contextual, accumulator: java.util.Set): void; + /** + * Checks if a {@link Context} is currently applicable to a + * {@link Contextual}. + *

If this calculator does not handle the given type of context, this + * method should return false.

+ *

For the given set of contexts which would be accumulated using + * {@link #accumulateContexts(Contextual, Set)}, this method should return + * true if the given context would be included in the accumulated set.

+ */ + // @ts-ignore + matches(context: org.spongepowered.api.service.context.Context, target: org.spongepowered.api.service.context.Contextual): boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.context.ContextSource.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.context.ContextSource.d.ts new file mode 100644 index 00000000..bd231c46 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.context.ContextSource.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace context { + // @ts-ignore + interface ContextSource { + /** + * Returns the context most relevant to this object. + *

This context may or may not be the same across multiple invocations.

+ */ + // @ts-ignore + getContext(): org.spongepowered.api.service.context.Context; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.context.Contextual.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.context.Contextual.d.ts new file mode 100644 index 00000000..8a7bb690 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.context.Contextual.d.ts @@ -0,0 +1,43 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace context { + // @ts-ignore + interface Contextual { + /** + * Returns the identifier associated with this Contextual. + *

The identifier of each distinct Contextual within a collection of + * contextuals should be unique.

+ *

Not guaranteed to be human-readable. Use + * {@link #getFriendlyIdentifier()} for a more readable alternative.

+ */ + // @ts-ignore + getIdentifier(): string; + /** + * Returns the friendly identifier associated with this Contextual. + *

Unlike {@link #getIdentifier()}, this value is not guaranteed to be + * unique.

+ *

If the friendly identifier is equal to the normal identifier, + * this method should return {@link Optional#empty()}.

+ *

Contextuals which represent a Player or a User should return the + * username here, if available.

+ */ + // @ts-ignore + getFriendlyIdentifier(): java.util.Optional; + /** + * Calculates the objects active contexts at the given moment, using the + * {@link ContextCalculator}s held by the {@link ContextualService}. + *

"Active" contexts refers to the contexts currently applicable to the + * contextual.

+ *

The result of these calculations may be cached.

+ */ + // @ts-ignore + getActiveContexts(): java.util.Set; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.context.ContextualService.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.context.ContextualService.d.ts new file mode 100644 index 00000000..186339c9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.context.ContextualService.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace context { + // @ts-ignore + interface ContextualService { + /** + * Registers a {@link ContextCalculator} for use by this service. + *

It is not guaranteed that the calculator will be used by the service, + * as some implementations may not support contexts.

+ */ + // @ts-ignore + registerContextCalculator(calculator: org.spongepowered.api.service.context.ContextCalculator): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.Currency.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.Currency.d.ts new file mode 100644 index 00000000..43e4f355 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.Currency.d.ts @@ -0,0 +1,57 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace economy { + // @ts-ignore + interface Currency extends org.spongepowered.api.CatalogType { + /** + * The currency's display name, in singular form. Ex: Dollar. + *

This should be preferred over {@link CatalogType#getName()} + * for display purposes.

+ */ + // @ts-ignore + getDisplayName(): org.spongepowered.api.text.Text; + /** + * The currency's display name in plural form. Ex: Dollars. + *

Not all currencies will have a plural name that differs from the + * display name.

+ */ + // @ts-ignore + getPluralDisplayName(): org.spongepowered.api.text.Text; + /** + * The currency's symbol. Ex. $ + */ + // @ts-ignore + getSymbol(): org.spongepowered.api.text.Text; + /** + * Formats the given amount using the default number of fractional digits. + *

Should include the symbol if it is present

+ */ + // @ts-ignore + format(amount: java.math.BigDecimal): org.spongepowered.api.text.Text; + /** + * Formats the given amount using the specified number of fractional digits. + *

Should include the symbol if it is present

+ */ + // @ts-ignore + format(amount: java.math.BigDecimal, numFractionDigits: number): org.spongepowered.api.text.Text; + /** + * This is the default number of fractional digits that is utilized for + * formatting purposes. + */ + // @ts-ignore + getDefaultFractionDigits(): number; + /** + * Returns true if this currency is the default currency for the economy, + * otherwise false. + */ + // @ts-ignore + isDefault(): boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.EconomyService.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.EconomyService.d.ts new file mode 100644 index 00000000..d7cef3d9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.EconomyService.d.ts @@ -0,0 +1,60 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace economy { + // @ts-ignore + interface EconomyService extends org.spongepowered.api.service.context.ContextualService { + /** + * Retrieves the default {@link Currency} used by the {@link EconomyService}. + */ + // @ts-ignore + getDefaultCurrency(): org.spongepowered.api.service.economy.Currency; + /** + * Returns the {@link Set} of supported {@link Currency} objects that are + * implemented by this EconomyService. + *

The economy service provider may only support one currency, in which + * case {@link #getDefaultCurrency()} will be the only member of the set.

+ *

The set returned is a read-only a view of all currencies available in + * the EconomyService.

+ */ + // @ts-ignore + getCurrencies(): java.util.Set; + /** + * Returns whether a {@link UniqueAccount} exists with the specified {@link UUID}. + */ + // @ts-ignore + hasAccount(uuid: java.util.UUID): boolean; + /** + * Returns whether an {@link Account} with the specified identifier exists. + *

Depending on the implementation, the {@link Account} may be a + * {@link UniqueAccount} or a {@link VirtualAccount}. + */ + // @ts-ignore + hasAccount(identifier: string): boolean; + /** + * Gets the {@link UniqueAccount} for the user with the specified {@link UUID}. + *

If an account does not already exists with the specified {@link UUID}, + * it will be created.

+ *

Creation might fail if the provided {@link UUID} does not correspond to + * an actual player, or for an implementation-defined reason.

+ */ + // @ts-ignore + getOrCreateAccount(uuid: java.util.UUID): java.util.Optional; + /** + * Gets the {@link VirtualAccount} with the specified identifier. + *

Depending on the implementation, the {@link Account} may be a + * {@link UniqueAccount} or a {@link VirtualAccount}.

+ *

If an account does not already exists with the specified identifier, + * it will be created.

+ *

Creation may fail for an implementation-defined reason.

+ */ + // @ts-ignore + getOrCreateAccount(identifier: string): java.util.Optional; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.account.Account.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.account.Account.d.ts new file mode 100644 index 00000000..1f828048 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.account.Account.d.ts @@ -0,0 +1,191 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace economy { + namespace account { + // @ts-ignore + interface Account extends org.spongepowered.api.service.context.Contextual { + /** + * Gets the display name for this account. + *

This should be used by plugins to get a human-readable name for an + * account, regardless of the specific type ({@link UniqueAccount} or + * {@link VirtualAccount}).

+ *

Its contents are dependent on the provider of {@link EconomyService}. + * For example, an economy plugin could allow players to configure the + * display name of their account

. + */ + // @ts-ignore + getDisplayName(): org.spongepowered.api.text.Text; + /** + * Gets the default balance of this account for the specified + * {@link Currency}. + *

The default balance is used when the balance is retrieved for the + * first time for a given {@link Currency} on this account, or if no + * balance is available for the {@link Context}s used when retrieving + * a balance.

+ */ + // @ts-ignore + getDefaultBalance(currency: org.spongepowered.api.service.economy.Currency): java.math.BigDecimal; + /** + * Returns whether this account has a set balance for the specified + * {@link Currency}, with the specified {@link Context}s. + *

If this method returns false, then + * {@link #getDefaultBalance(Currency)} will be used when + * retrieving a balance for the specified {@link Currency} with + * the specified {@link Context}s.

+ */ + // @ts-ignore + hasBalance(currency: org.spongepowered.api.service.economy.Currency, contexts: java.util.Set): boolean; + /** + * Returns whether this account has a set balance for the specified + * {@link Currency}, with the current active contexts. + *

If this method returns false, then + * {@link #getDefaultBalance(Currency)} will be used when retrieving + * a balance for the specifid {@link Currency} with + * the current active contexts

. + */ + // @ts-ignore + hasBalance(currency: org.spongepowered.api.service.economy.Currency): boolean; + /** + * Returns a {@link BigDecimal} representative of the balance stored within this + * {@link Account} for the {@link Currency} given and the set of {@link Context}s. + *

The default result when the account does not have a balance of the + * given {@link Currency} should be {@link BigDecimal#ZERO}.

+ *

The balance may be unavailable depending on the set of + * {@link Context}s used.

+ */ + // @ts-ignore + getBalance(currency: org.spongepowered.api.service.economy.Currency, contexts: java.util.Set): java.math.BigDecimal; + /** + * Returns a {@link BigDecimal} representative of the balance stored + * within this {@link Account} for the {@link Currency} given, with + * the current active contexts. + *

The default result when the account does not have a balance of the + * given {@link Currency} will be {@link #getDefaultBalance(Currency)}.

+ */ + // @ts-ignore + getBalance(currency: org.spongepowered.api.service.economy.Currency): java.math.BigDecimal; + /** + * Returns a {@link Map} of all currently set balances the account holds + * within the set of {@link Context}s. + *

Amounts may differ depending on the {@link Context}s specified and + * the implementation. The set of {@link Context}s may be empty.

+ *

{@link Currency} amounts which are 0 may or may not be included in + * the returned mapping.

+ *

Changes to the returned {@link Map} will not be reflected in + * the underlying {@link Account}. See + * {@link #setBalance(Currency, BigDecimal, Cause, Set)} to set values.

+ */ + // @ts-ignore + getBalances(contexts: java.util.Set): java.util.Map; + /** + * Returns a {@link Map} of all currently set balances the account holds + * within the current active {@link Context}s.2 + *

Amounts may differ depending on the {@link Context}s specified and + * the implementation. The set of {@link Context}s may be empty.

+ *

{@link Currency} amounts which are 0 may or may not be included in + * the returned mapping.

+ *

Changes to the returned {@link Map} will not be reflected in + * the underlying {@link Account} and may result in runtime exceptions + * depending on implementation. See + * {@link #setBalance(Currency, BigDecimal, Cause, Set)} to set values.

+ */ + // @ts-ignore + getBalances(): java.util.Map; + /** + * Sets the balance for this account to the specified amount for + * the specified {@link Currency}, with the specified set of {@link Context}s. + *

Negative balances may or may not be supported depending on + * the {@link Currency} specified and the implementation.

+ */ + // @ts-ignore + setBalance(currency: org.spongepowered.api.service.economy.Currency, amount: java.math.BigDecimal, cause: org.spongepowered.api.event.cause.Cause, contexts: java.util.Set): org.spongepowered.api.service.economy.transaction.TransactionResult; + /** + * Sets the balance for this account to the specified amount for the + * specified {@link Currency}, with the current active {@link Context}s. + *

Negative balances may or may not be supported depending on + * the {@link Currency} specified and the implementation.

+ */ + // @ts-ignore + setBalance(currency: org.spongepowered.api.service.economy.Currency, amount: java.math.BigDecimal, cause: org.spongepowered.api.event.cause.Cause): org.spongepowered.api.service.economy.transaction.TransactionResult; + /** + * Resets the balances for all {@link Currency}s used on this account + * to their default values ({@link #getDefaultBalance(Currency)}), + * using the specified {@link Context}s. + */ + // @ts-ignore + resetBalances(cause: org.spongepowered.api.event.cause.Cause, contexts: java.util.Set): java.util.Map; + /** + * Resets the balances for all {@link Currency}s used on this account to + * their default values ({@link #getDefaultBalance(Currency)}), using + * the current active {@link Context}. + */ + // @ts-ignore + resetBalances(cause: org.spongepowered.api.event.cause.Cause): java.util.Map; + /** + * Resets the balance for the specified {@link Currency} to its default + * value ({@link #getDefaultBalance(Currency)}), using + * the specified {@link Context}s. + */ + // @ts-ignore + resetBalance(currency: org.spongepowered.api.service.economy.Currency, cause: org.spongepowered.api.event.cause.Cause, contexts: java.util.Set): org.spongepowered.api.service.economy.transaction.TransactionResult; + /** + * Resets the balance for the specified {@link Currency} to its default + * value ({@link #getDefaultBalance(Currency)}), + * using the current active {@link Context}s. + */ + // @ts-ignore + resetBalance(currency: org.spongepowered.api.service.economy.Currency, cause: org.spongepowered.api.event.cause.Cause): org.spongepowered.api.service.economy.transaction.TransactionResult; + /** + * Deposits the specified amount of the specified {@link Currency} to + * this account, using the specified {@link Context}s. + */ + // @ts-ignore + deposit(currency: org.spongepowered.api.service.economy.Currency, amount: java.math.BigDecimal, cause: org.spongepowered.api.event.cause.Cause, contexts: java.util.Set): org.spongepowered.api.service.economy.transaction.TransactionResult; + /** + * Deposits the given amount of the specified {@link Currency} to + * this account, using the current active {@link Context}s. + */ + // @ts-ignore + deposit(currency: org.spongepowered.api.service.economy.Currency, amount: java.math.BigDecimal, cause: org.spongepowered.api.event.cause.Cause): org.spongepowered.api.service.economy.transaction.TransactionResult; + /** + * Withdraws the specified amount of the specified {@link Currency} from + * this account, using the specified {@link Context}s. + */ + // @ts-ignore + withdraw(currency: org.spongepowered.api.service.economy.Currency, amount: java.math.BigDecimal, cause: org.spongepowered.api.event.cause.Cause, contexts: java.util.Set): org.spongepowered.api.service.economy.transaction.TransactionResult; + /** + * Withdraws the specified amount of the specified {@link Currency} from + * this account, using the current active {@link Context}s. + */ + // @ts-ignore + withdraw(currency: org.spongepowered.api.service.economy.Currency, amount: java.math.BigDecimal, cause: org.spongepowered.api.event.cause.Cause): org.spongepowered.api.service.economy.transaction.TransactionResult; + /** + * Transfers the specified amount of the specified {@link Currency} + * from this account the destination account, + * using the specified {@link Context}s. + *

This operation is a merged {@link #withdraw(Currency, BigDecimal, Cause, Set)} + * from this account with a {@link #deposit(Currency, BigDecimal, Cause, Set)} + * into the specified account.

+ */ + // @ts-ignore + transfer(to: org.spongepowered.api.service.economy.account.Account, currency: org.spongepowered.api.service.economy.Currency, amount: java.math.BigDecimal, cause: org.spongepowered.api.event.cause.Cause, contexts: java.util.Set): org.spongepowered.api.service.economy.transaction.TransferResult; + /** + * Transfers the specified amount of the specified {@link Currency} + * from this account the destination account, + * using the current active {@link Context}s. + *

This operation is a merged {@link #withdraw(Currency, BigDecimal, Cause, Set)} + * from this account with a {@link #deposit(Currency, BigDecimal, Cause, Set)} + * into the specified account.

+ */ + // @ts-ignore + transfer(to: org.spongepowered.api.service.economy.account.Account, currency: org.spongepowered.api.service.economy.Currency, amount: java.math.BigDecimal, cause: org.spongepowered.api.event.cause.Cause): org.spongepowered.api.service.economy.transaction.TransferResult; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.account.UniqueAccount.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.account.UniqueAccount.d.ts new file mode 100644 index 00000000..fd2f1c32 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.account.UniqueAccount.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace economy { + namespace account { + // @ts-ignore + interface UniqueAccount extends org.spongepowered.api.service.economy.account.Account, org.spongepowered.api.util.Identifiable { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.account.VirtualAccount.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.account.VirtualAccount.d.ts new file mode 100644 index 00000000..5351abe8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.account.VirtualAccount.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace economy { + namespace account { + // @ts-ignore + interface VirtualAccount extends org.spongepowered.api.service.economy.account.Account { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.transaction.ResultType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.transaction.ResultType.d.ts new file mode 100644 index 00000000..aa95f2ee --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.transaction.ResultType.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace economy { + namespace transaction { + // @ts-ignore + class ResultType extends java.lang.Enum { + // @ts-ignore + public static SUCCESS: org.spongepowered.api.service.economy.transaction.ResultType; + // @ts-ignore + public static CONTEXT_MISMATCH: org.spongepowered.api.service.economy.transaction.ResultType; + // @ts-ignore + public static FAILED: org.spongepowered.api.service.economy.transaction.ResultType; + // @ts-ignore + public static ACCOUNT_NO_FUNDS: org.spongepowered.api.service.economy.transaction.ResultType; + // @ts-ignore + public static ACCOUNT_NO_SPACE: org.spongepowered.api.service.economy.transaction.ResultType; + // @ts-ignore + public static values(): org.spongepowered.api.service.economy.transaction.ResultType[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.service.economy.transaction.ResultType; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.transaction.TransactionResult.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.transaction.TransactionResult.d.ts new file mode 100644 index 00000000..c5d3d3e1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.transaction.TransactionResult.d.ts @@ -0,0 +1,47 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace economy { + namespace transaction { + // @ts-ignore + interface TransactionResult { + /** + * Gets the {@link Account} involved in the transaction. + */ + // @ts-ignore + getAccount(): org.spongepowered.api.service.economy.account.Account; + /** + * Gets the {@link Currency} involved in the transaction. + */ + // @ts-ignore + getCurrency(): org.spongepowered.api.service.economy.Currency; + /** + * Gets the amount of the {@link Currency} involved in the transaction. + */ + // @ts-ignore + getAmount(): java.math.BigDecimal; + /** + * Returns the set of {@link Context}s used to perform the + * transaction. + */ + // @ts-ignore + getContexts(): java.util.Set; + /** + * Gets the {@link ResultType} of this transaction. + */ + // @ts-ignore + getResult(): org.spongepowered.api.service.economy.transaction.ResultType; + /** + * Returns the {@link TransactionType} of this result. + */ + // @ts-ignore + getType(): org.spongepowered.api.service.economy.transaction.TransactionType; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.transaction.TransactionType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.transaction.TransactionType.d.ts new file mode 100644 index 00000000..67f6ae22 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.transaction.TransactionType.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace economy { + namespace transaction { + // @ts-ignore + interface TransactionType extends org.spongepowered.api.CatalogType { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.transaction.TransactionTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.transaction.TransactionTypes.d.ts new file mode 100644 index 00000000..a4433c7a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.transaction.TransactionTypes.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace economy { + namespace transaction { + // @ts-ignore + class TransactionTypes extends java.lang.Object { + // @ts-ignore + public static DEPOSIT: org.spongepowered.api.service.economy.transaction.TransactionType; + // @ts-ignore + public static TRANSFER: org.spongepowered.api.service.economy.transaction.TransactionType; + // @ts-ignore + public static WITHDRAW: org.spongepowered.api.service.economy.transaction.TransactionType; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.transaction.TransferResult.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.transaction.TransferResult.d.ts new file mode 100644 index 00000000..16368211 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.economy.transaction.TransferResult.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace economy { + namespace transaction { + // @ts-ignore + interface TransferResult extends org.spongepowered.api.service.economy.transaction.TransactionResult { + /** + * Gets the {@link Account} that an amount of a {@link Currency} is being transferred to. + *

{@link #getAccount()} can be used to get the {@link Account} that the currency + * is being transferred from.

+ */ + // @ts-ignore + getAccountTo(): org.spongepowered.api.service.economy.account.Account; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.pagination.PaginationList.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.pagination.PaginationList.Builder.d.ts new file mode 100644 index 00000000..fb041e3c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.pagination.PaginationList.Builder.d.ts @@ -0,0 +1,82 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace pagination { + namespace PaginationList { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the contents of this output as an iterable. + *

If this {@link Iterable} is a {@link List}, bidirectional + * navigation is supported. Otherwise, only going to the next page will + * be supported.

+ */ + // @ts-ignore + contents(contents: java.lang.Iterable): org.spongepowered.api.service.pagination.PaginationList.Builder; + /** + * Sets the contents of this output to be the given array of contents. + */ + // @ts-ignore + contents(contents: org.spongepowered.api.text.Text): org.spongepowered.api.service.pagination.PaginationList.Builder; + /** + * Sets the title text to be used in the title bar of this pagination. + *

This should be less than one line long.

+ */ + // @ts-ignore + title(title: org.spongepowered.api.text.Text): org.spongepowered.api.service.pagination.PaginationList.Builder; + /** + * Sets the header to be displayed for this output on all pages after + * the title bar but before the contents. + *

The header and footer will use this Text's style and color for + * formatting.

+ *

If the header is not specified, or passed in as null, + * it will be omitted when displaying the list.

+ */ + // @ts-ignore + header(header: org.spongepowered.api.text.Text): org.spongepowered.api.service.pagination.PaginationList.Builder; + /** + * Sets the footer to be displayed for this output on all pages after + * the contents and page navigation bar. + *

If the footer is not specified, or passed in as null, + * it will be omitted when displaying the list.

+ */ + // @ts-ignore + footer(footer: org.spongepowered.api.text.Text): org.spongepowered.api.service.pagination.PaginationList.Builder; + /** + * Sets the padding character to be used when centering headers and + * footers. + */ + // @ts-ignore + padding(padding: org.spongepowered.api.text.Text): org.spongepowered.api.service.pagination.PaginationList.Builder; + /** + * Sets the maximum number of lines that can be displayed per page. + *

This defaults to the maximum amount of lines that can be displayed + * on a source's screen at one time if not specified.

+ */ + // @ts-ignore + linesPerPage(linesPerPage: number): org.spongepowered.api.service.pagination.PaginationList.Builder; + /** + * Creates a {@link PaginationList} from this pagination builder. + */ + // @ts-ignore + build(): org.spongepowered.api.service.pagination.PaginationList; + /** + * Sends the constructed pagination list to the given receiver. + */ + // @ts-ignore + sendTo(receiver: org.spongepowered.api.text.channel.MessageReceiver): org.spongepowered.api.service.pagination.PaginationList; + /** + * Sends the constructed pagination list to all + * {@link MessageReceiver}s within an {@link Iterable}. + */ + // @ts-ignore + sendTo(receivers: java.lang.Iterable): org.spongepowered.api.service.pagination.PaginationList; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.pagination.PaginationList.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.pagination.PaginationList.d.ts new file mode 100644 index 00000000..fb3b385e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.pagination.PaginationList.d.ts @@ -0,0 +1,82 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace pagination { + // @ts-ignore + interface PaginationList { + /** + * Creates a new {@link Builder} to build a pagination list. + */ + // @ts-ignore + builder(): org.spongepowered.api.service.pagination.PaginationList.Builder; + /** + * Gets the contents of this pagination list. + */ + // @ts-ignore + getContents(): java.lang.Iterable; + /** + * Gets the title text to be used in the title bar of this pagination. + */ + // @ts-ignore + getTitle(): java.util.Optional; + /** + * Gets the header to be displayed for this output on all pages after the + * title bar but before the contents, if available. + *

Header and footer will use this Text's style and color for + * formatting.

+ */ + // @ts-ignore + getHeader(): java.util.Optional; + /** + * Gets the footer to be displayed for this output on all pages after the + * contents and page navigation bar, if available. + */ + // @ts-ignore + getFooter(): java.util.Optional; + /** + * Gets the padding character to be used when centering headers and footers. + */ + // @ts-ignore + getPadding(): org.spongepowered.api.text.Text; + /** + * Gets the maximum amount of lines that will be sent per page. + *

This defaults to the maximum amount of lines that can be displayed + * on a source's screen at one time if not specified.

+ */ + // @ts-ignore + getLinesPerPage(): number; + /** + * Sends the first page of the constructed pagination list + * to the specified message receiver. + */ + // @ts-ignore + sendTo(receiver: org.spongepowered.api.text.channel.MessageReceiver): void; + /** + * Send the specified page of the constructed pagination list + * to the specified message receiver. + *

A page that is out of bounds will result in a friendly + * error message being sent to the receiver.

+ *

Pages start at an index of 1.

+ */ + // @ts-ignore + sendTo(receiver: org.spongepowered.api.text.channel.MessageReceiver, page: number): void; + /** + * Sends the first page of the constructed pagination list to + * all {@link MessageReceiver}s within an {@link Iterable}. + */ + // @ts-ignore + sendTo(receivers: java.lang.Iterable): void; + /** + * Sends the specified page of the constructed pagination list + * all {@link MessageReceiver}s within an {@link Iterable}. + */ + // @ts-ignore + sendTo(receivers: java.lang.Iterable, page: number): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.pagination.PaginationService.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.pagination.PaginationService.d.ts new file mode 100644 index 00000000..6a77027b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.pagination.PaginationService.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace pagination { + // @ts-ignore + interface PaginationService { + /** + * Gets a new pagination builder to send paginated output to a player. + */ + // @ts-ignore + builder(): org.spongepowered.api.service.pagination.PaginationList.Builder; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.MemorySubjectData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.MemorySubjectData.d.ts new file mode 100644 index 00000000..08462071 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.MemorySubjectData.d.ts @@ -0,0 +1,59 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace permission { + // @ts-ignore + class MemorySubjectData extends java.lang.Object implements org.spongepowered.api.service.permission.SubjectData { + /** + * Creates a new subject data instance, using the provided service to + * request instances of permission subjects. + */ + // @ts-ignore + constructor(service: org.spongepowered.api.service.permission.PermissionService) + // @ts-ignore + public getAllPermissions(): java.util.Map; + /** + * Gets the calculated node tree representation of the permissions for this + * subject data instance. If no data is present for the given context, + * returns null. + */ + // @ts-ignore + public getNodeTree(contexts: java.util.Set): org.spongepowered.api.service.permission.NodeTree; + // @ts-ignore + public getPermissions(contexts: java.util.Set): java.util.Map; + // @ts-ignore + public setPermission(contexts: java.util.Set, permission: string, value: org.spongepowered.api.util.Tristate): java.util.concurrent.CompletableFuture; + // @ts-ignore + public clearPermissions(): java.util.concurrent.CompletableFuture; + // @ts-ignore + public clearPermissions(context: java.util.Set): java.util.concurrent.CompletableFuture; + // @ts-ignore + public getAllParents(): java.util.Map; + // @ts-ignore + public getParents(contexts: java.util.Set): java.util.List; + // @ts-ignore + public addParent(contexts: java.util.Set, parent: org.spongepowered.api.service.permission.SubjectReference): java.util.concurrent.CompletableFuture; + // @ts-ignore + public removeParent(contexts: java.util.Set, parent: org.spongepowered.api.service.permission.SubjectReference): java.util.concurrent.CompletableFuture; + // @ts-ignore + public clearParents(): java.util.concurrent.CompletableFuture; + // @ts-ignore + public clearParents(contexts: java.util.Set): java.util.concurrent.CompletableFuture; + // @ts-ignore + public getAllOptions(): java.util.Map; + // @ts-ignore + public getOptions(contexts: java.util.Set): java.util.Map; + // @ts-ignore + public setOption(contexts: java.util.Set, key: string, value: string): java.util.concurrent.CompletableFuture; + // @ts-ignore + public clearOptions(contexts: java.util.Set): java.util.concurrent.CompletableFuture; + // @ts-ignore + public clearOptions(): java.util.concurrent.CompletableFuture; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.NodeTree.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.NodeTree.d.ts new file mode 100644 index 00000000..dcf44db4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.NodeTree.d.ts @@ -0,0 +1,47 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace permission { + // @ts-ignore + class NodeTree extends java.lang.Object { + /** + * Create a new node tree with the given values, and a default value of + * {@link Tristate#UNDEFINED}. + */ + // @ts-ignore + public static of(values: java.util.Map): org.spongepowered.api.service.permission.NodeTree; + /** + * Create a new node tree with the given values, and the specified root + * fallback value. + */ + // @ts-ignore + public static of(values: java.util.Map, defaultValue: org.spongepowered.api.util.Tristate): org.spongepowered.api.service.permission.NodeTree; + /** + * Returns the value assigned to a specific node, or the nearest parent + * value in the tree if the node itself is undefined. + */ + // @ts-ignore + public get(node: string): org.spongepowered.api.util.Tristate; + /** + * Convert this node tree into a map of the defined nodes in this tree. + */ + // @ts-ignore + public asMap(): java.util.Map; + /** + * Return a new NodeTree instance with a single changed value. + */ + // @ts-ignore + public withValue(node: string, value: org.spongepowered.api.util.Tristate): org.spongepowered.api.service.permission.NodeTree; + /** + * Return a modified new node tree with the specified values set. + */ + // @ts-ignore + public withAll(values: java.util.Map): org.spongepowered.api.service.permission.NodeTree; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.PermissionDescription.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.PermissionDescription.Builder.d.ts new file mode 100644 index 00000000..a5a92ab7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.PermissionDescription.Builder.d.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace permission { + namespace PermissionDescription { + // @ts-ignore + interface Builder { + /** + * Sets the permission id for the description this builder creates. + *

See {@link PermissionDescription#getId()} for format + * specifications.

+ */ + // @ts-ignore + id(permissionId: string): org.spongepowered.api.service.permission.PermissionDescription.Builder; + /** + * Sets the short description to use. + *

May include a link to a more detailed description on the plugin's + * web page.

+ *

Can be null if the permission does not have a description.

+ */ + // @ts-ignore + description(description: org.spongepowered.api.text.Text): org.spongepowered.api.service.permission.PermissionDescription.Builder; + /** + * Assigns this permission to the given role-template {@link Subject}. + *

If the given subject does not exist it will be created. Permission + * templates should not be assigned to regular subjects.

+ *

It is recommended to use the standard role suggestions expressed + * as static parameters in {@link PermissionDescription}.

+ *

Do not assign a permission to user, staff and admin at the same + * time but solve this with subject inheritance if possible.

+ *

Note: The permissions are only assigned during + * {@link #register()}.

+ */ + // @ts-ignore + assign(role: string, value: boolean): org.spongepowered.api.service.permission.PermissionDescription.Builder; + /** + * Creates and registers a new {@link PermissionDescription} instance + * with the given settings. + */ + // @ts-ignore + register(): org.spongepowered.api.service.permission.PermissionDescription; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.PermissionDescription.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.PermissionDescription.d.ts new file mode 100644 index 00000000..780f70cf --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.PermissionDescription.d.ts @@ -0,0 +1,104 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace permission { + // @ts-ignore + interface PermissionDescription { + // @ts-ignore + ROLE_USER: string; + // @ts-ignore + ROLE_STAFF: string; + // @ts-ignore + ROLE_ADMIN: string; + /** + * Gets the permission id this description belongs to. + *

The permission id must be of the specified format as specified using + * EBNF: + *

    + *
  • CHARACTER = "A" - "Z" | "a" - "z" | "0" - "9" | "_" | "-"
  • + *
  • NAME = CHARACTER , { CHARACTER }
  • + *
  • TEMPLATE = "<" , NAME , ">"
  • + *
  • PART = NAME | TEMPLATE
  • + *
  • PERMISSION = NAME , { "." , PART }
  • + *
+ *

+ *

The following examples shall help you to structure your permissions + * well: + *

    + *
  • "myplugin" - Grants everything in myPlugin
  • + *
  • "myplugin.give" - Grants everything related to give including + * all ItemTypes and Enchantments
  • + *
  • "myplugin.give.execute" - Allows the execution of give
  • + *
  • "myplugin.give.type" - Grants all ItemTypes
  • + *
  • "myplugin.give.type.<ItemType>" - A template should not be + * granted to anybody
  • + *
  • "myplugin.give.type.minecraft.diamond" - Only + * grants minecraft:diamond
  • + *
  • "myplugin.give.enchantment" - Grants all Enchantments
  • + *
  • "myplugin.give.others" - Allow giving to other players
  • + *
+ * The addition of the "execute" permission instead of just "myPlugin.give" + * permission is useful to prevent unauthorized access to sub-permissions + * that are not documented or have been added lately. + *

+ *

+ * So if you want to allow someone to give themself only DIAMONDs, you would + * assign them the following permissions: + *

    + *
  • "myPlugin.give.execute"
  • + *
  • "myPlugin.give.type.DIAMOND"
  • + *
+ *

+ *

Note: Permission ids are case insensitive! Permission ids + * should start with the owning plugin's id.

+ */ + // @ts-ignore + getId(): string; + /** + * Gets a short description of the linked permission. + *

May include a link to a more detailed description on the plugin's + * web page.

+ *

Will return an empty optional for descriptions which have been + * automatically generated, or where a description was omitted when the + * {@link PermissionDescription} was created.

+ */ + // @ts-ignore + getDescription(): java.util.Optional; + /** + * Gets the owning plugin the permission belongs to. + *

Will return an empty optional for descriptions which have been + * automatically generated.

+ */ + // @ts-ignore + getOwner(): java.util.Optional; + /** + * Gets all subjects that have this permission set in the given collection. + *

If you want to know to which role-templates this permission is + * assigned, use {@link PermissionService#SUBJECTS_ROLE_TEMPLATE}. + *

This method is equivalent to calling + * {@link SubjectCollection#getAllWithPermission(String)} for the given + * collection, using {@link #getId()} as the permission.

+ */ + // @ts-ignore + findAssignedSubjects(collectionIdentifier: string): java.util.concurrent.CompletableFuture; + /** + * Gets all loaded subjects that have this permission set in the given + * collection. + *

If you want to know to which role-templates this permission is + * assigned, use {@link PermissionService#SUBJECTS_ROLE_TEMPLATE}.

+ *

This method is equivalent to calling + * {@link SubjectCollection#getLoadedWithPermission(String)} for the given + * collection, using {@link #getId()} as the permission.

+ *

This method will return an empty map if the given collection is not + * loaded or does not exist.

+ */ + // @ts-ignore + getAssignedSubjects(collectionIdentifier: string): java.util.Map; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.PermissionService.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.PermissionService.d.ts new file mode 100644 index 00000000..d720c663 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.PermissionService.d.ts @@ -0,0 +1,142 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace permission { + // @ts-ignore + interface PermissionService extends org.spongepowered.api.service.context.ContextualService { + // @ts-ignore + SUBJECTS_USER: string; + // @ts-ignore + SUBJECTS_GROUP: string; + // @ts-ignore + SUBJECTS_SYSTEM: string; + // @ts-ignore + SUBJECTS_DEFAULT: string; + // @ts-ignore + SUBJECTS_COMMAND_BLOCK: string; + // @ts-ignore + SUBJECTS_ROLE_TEMPLATE: string; + /** + * Returns the subject collection which holds users. + *

User identifiers are expected to be UUIDs in RFC4122 string format + * (This *does* have dashes).

+ *

This method should return the same SubjectCollection as the result of + * invoking {@link #loadCollection(String)} with {@link #SUBJECTS_USER}.

+ */ + // @ts-ignore + getUserSubjects(): org.spongepowered.api.service.permission.SubjectCollection; + /** + * Returns the subject collection which holds groups. + *

This method should return the same SubjectCollection as the result of + * invoking {@link #loadCollection(String)} with {@link #SUBJECTS_GROUP}.

+ */ + // @ts-ignore + getGroupSubjects(): org.spongepowered.api.service.permission.SubjectCollection; + /** + * Gets the subject holding data that is applied by default to all + * subjects. + *

This subject is at the root of all inheritance trees, below + * even SubjectCollection defaults, meaning it has the lowest + * priority when all other weighting is equal.

+ *

Note: This data may be persisted, so plugins that add + * permissions to this subject must take care to not override + * permissions already set or modified.

+ *

It is also recommended to use + * {@link Subject#getTransientSubjectData()} where possible to avoid + * persisting unnecessary data.

+ *

Assigning default permissions should be used sparingly, and by + * convention, only in situations where "default" game behaviour is restored + * by granting a certain permission.

+ */ + // @ts-ignore + getDefaults(): org.spongepowered.api.service.permission.Subject; + /** + * Returns a predicate which determines whether or not a given identifier + * is valid for a subject collection held by this service. + *

It is expected that as a minimum, the standard identifiers expressed + * as static parameters in this class will pass the predicate.

+ */ + // @ts-ignore + getIdentifierValidityPredicate(): java.util.function$.Predicate; + /** + * Loads and returns a subject collection with the given identifier. + *

The returned future will complete exceptionally if the subject + * collection with the given identifier cannot be loaded.

+ *

A {@link IllegalArgumentException} will be thrown directly by this + * method if the identifier does not pass the identifier validity + * predicate.

+ */ + // @ts-ignore + loadCollection(identifier: string): java.util.concurrent.CompletableFuture; + /** + * Returns a subject collection with the given identifier, if the + * collection is already loaded within this service. + *

It is important to note that a subject collection with the given + * identifier may still exist, even if this method returns an empty + * optional. Checking for the presence of a subject collection should + * be done using {@link #hasCollection(String)}.

+ *

If the collection identifier does not pass the validity predicate, + * this method will return an empty optional, and not throw an + * exception.

+ */ + // @ts-ignore + getCollection(identifier: string): java.util.Optional; + /** + * Returns whether a subject collection with the given identifier currently + * exists. + */ + // @ts-ignore + hasCollection(identifier: string): java.util.concurrent.CompletableFuture; + /** + * Returns an immutable copy of all currently loaded subject collections + * held by this permission service. + */ + // @ts-ignore + getLoadedCollections(): java.util.Map; + /** + * Returns a set of the subject collection identifiers known to this + * service. + */ + // @ts-ignore + getAllIdentifiers(): java.util.concurrent.CompletableFuture; + /** + * Creates a new subject reference to represent the expressed subject. + *

Note that instances of SubjectReference must be capable of resolving + * the identifier to a Subject without being passed a reference to the + * service.

+ *

A {@link IllegalArgumentException} will be thrown directly by this + * method if either identifiers do not pass the identifier validity + * predicates.

+ */ + // @ts-ignore + newSubjectReference(collectionIdentifier: string, subjectIdentifier: string): org.spongepowered.api.service.permission.SubjectReference; + /** + * Creates a new description builder for the given plugin's permission. + */ + // @ts-ignore + newDescriptionBuilder(plugin: java.lang.Object): org.spongepowered.api.service.permission.PermissionDescription.Builder; + /** + * Gets the registered or generated {@link PermissionDescription} for the + * given permission if available. + *

If the given permission is not defined itself this might also return + * the associated permission template.

+ */ + // @ts-ignore + getDescription(permission: string): java.util.Optional; + /** + * Gets a immutable collection containing all registered or generated + * {@link PermissionDescription}s. + *

Implementations may generate descriptions automatically for + * permissions in use on the server, based upon permissions stored in + * subject data, or based upon checks being performed.

+ */ + // @ts-ignore + getDescriptions(): java.util.Collection; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.Subject.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.Subject.d.ts new file mode 100644 index 00000000..83379ef8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.Subject.d.ts @@ -0,0 +1,147 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace permission { + // @ts-ignore + interface Subject extends org.spongepowered.api.service.context.Contextual { + /** + * Returns a possible {@link CommandSource} for the subject, if it relates + * to one. + *

If this subject represents an actual user currently connected, this + * method returns this user. This user may in fact be the same as this + * subject. Some subjects may never directly map to a command source, while + * others may temporarily not have an accessible command source.

+ */ + // @ts-ignore + getCommandSource(): java.util.Optional; + /** + * Returns the subject collection this subject is a member of. + */ + // @ts-ignore + getContainingCollection(): org.spongepowered.api.service.permission.SubjectCollection; + /** + * Gets a SubjectReference representing this subject. + */ + // @ts-ignore + asSubjectReference(): org.spongepowered.api.service.permission.SubjectReference; + /** + * Returns if this Subject has persistent, non-transient data. + *

If true, this subject should have two distinct stores of SubjectData, + * and the non-transient form should be saved between sessions.

+ *

If false, this subject will have only one store of SubjectData, which + * will not be persisted between sessions.

+ */ + // @ts-ignore + isSubjectDataPersisted(): boolean; + /** + * Returns the primary data backing for this Subject. + *

If this Subject is not persisted, this data will not be saved + * between sessions.

+ *

For subjects which are not persisted, the same store will be returned + * by {@link #getTransientSubjectData()}.

+ */ + // @ts-ignore + getSubjectData(): org.spongepowered.api.service.permission.SubjectData; + /** + * Returns the transient data backing for this Subject. + *

Transient data is guaranteed to only last for the duration of the + * subject's session, and is not persisted.

+ *

For subjects which are not persisted, the same store will be returned + * by {@link #getSubjectData()}.

+ */ + // @ts-ignore + getTransientSubjectData(): org.spongepowered.api.service.permission.SubjectData; + /** + * Test whether the subject is permitted to perform an action corresponding + * to the given permission string. + *

This must return the same boolean equivalent as + * {@link #getPermissionValue(Set, String)}.

+ */ + // @ts-ignore + hasPermission(contexts: java.util.Set, permission: string): boolean; + /** + * Test whether the subject is permitted to perform an action given as the + * given permission string. + *

This must return the same value as {@link #hasPermission(Set, String)} + * using {@link #getActiveContexts()}.

+ */ + // @ts-ignore + hasPermission(permission: string): boolean; + /** + * Returns the calculated value set for a given permission. + *

It is expected that this method will also account for values + * inherited from parent subjects, as well as permission nodes inherited + * implicitly from a more generic level.

+ *

Additionally, the defaults defined the {@link SubjectCollection} + * that holds this subject, as well as defaults defined in + * {@link PermissionService#getDefaults()} should be considered for this + * lookup.

+ *

This method is likely to be called frequently, so it is desirable + * that implementations cache the results to method calls.

+ */ + // @ts-ignore + getPermissionValue(contexts: java.util.Set, permission: string): org.spongepowered.api.util.Tristate; + /** + * Check if this subject is a child of the given parent in the subject's + * current context, traversing inheritance. + *

This must return the same value as + * {@link #isChildOf(Set, SubjectReference)} using + * {@link #getActiveContexts()}.

+ */ + // @ts-ignore + isChildOf(parent: org.spongepowered.api.service.permission.SubjectReference): boolean; + /** + * Check if this subject is a child of the given parent in the given context + * combination, traversing inheritance. + *

It is expected that this method will also account for data from + * distant parents, inherited from direct parent subjects. + *

Additionally, the defaults defined the {@link SubjectCollection} + * that holds this subject, as well as defaults defined in + * {@link PermissionService#getDefaults()} should be considered for this + * lookup.

+ */ + // @ts-ignore + isChildOf(contexts: java.util.Set, parent: org.spongepowered.api.service.permission.SubjectReference): boolean; + /** + * Return all parents that this group has in its current context + * combination. + *

This must include inherited values if the permissions + * service supports inheritance.

+ *

It must also must return the same value as {@link #getParents(Set)} + * using {@link #getActiveContexts()}.

+ */ + // @ts-ignore + getParents(): java.util.List; + /** + * Return all parents that this group has in the given context combination. + *

This must include inherited values if the permissions + * service supports inheritance.

+ */ + // @ts-ignore + getParents(contexts: java.util.Set): java.util.List; + /** + * Gets the value of a given option in the given context. + *

It is expected that this method will account for options + * inherited from parent subjects. + *

Additionally, the default options defined by the + * {@link SubjectCollection} that holds this subject, as well as defaults + * defined in {@link PermissionService#getDefaults()} should be considered + * for this lookup. + */ + // @ts-ignore + getOption(contexts: java.util.Set, key: string): java.util.Optional; + /** + * Gets the value of a given option in the subject's current context. + *

This must return the same value as {@link #getOption(Set, String)} + * using {@link #getActiveContexts()}.

+ */ + // @ts-ignore + getOption(key: string): java.util.Optional; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.SubjectCollection.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.SubjectCollection.d.ts new file mode 100644 index 00000000..f4276d5f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.SubjectCollection.d.ts @@ -0,0 +1,190 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace permission { + // @ts-ignore + interface SubjectCollection { + /** + * Return the identifier for this collection. + */ + // @ts-ignore + getIdentifier(): string; + /** + * Returns a predicate which determines whether or not a given identifier is + * valid for a subject held by this collection. + *

It is expected that the {@link PermissionService#SUBJECTS_USER} + * collection should accept identifiers in UUID RFC4122 string format. (In + * the format produced by {@link UUID#toString()}

+ */ + // @ts-ignore + getIdentifierValidityPredicate(): java.util.function$.Predicate; + /** + * Loads and returns a subject with the given identifier. + *

The returned future will complete exceptionally if the subject with + * the given identifier cannot be loaded.

+ *

A {@link IllegalArgumentException} will be thrown directly by this + * method if the identifier does not pass the identifier validity + * predicate.

+ */ + // @ts-ignore + loadSubject(identifier: string): java.util.concurrent.CompletableFuture; + /** + * Returns a subject with the given identifier, if the subject is already + * loaded within this collection. + *

It is important to note that a subject with the given identifier + * may still exist, even if this method returns an empty + * optional. Checking for the presence of a subject should be + * done using {@link #hasSubject(String)}.

+ *

If the subject identifier does not pass the validity predicate, this + * method will return an empty optional, and not throw an exception.

+ */ + // @ts-ignore + getSubject(identifier: string): java.util.Optional; + /** + * Returns whether a subject with the given identifier currently exists. + *

The return value of this function does not influence whether or + * not the results from any subject lookups should be obtained. + */ + // @ts-ignore + hasSubject(identifier: string): java.util.concurrent.CompletableFuture; + /** + * Gets a map of subjects from the provided set of identifiers. + *

If any of the identifiers do not pass the collections + * {@link #getIdentifierValidityPredicate()}, a subject will not be returned + * for that identifier.

+ */ + // @ts-ignore + loadSubjects(identifiers: java.util.Set): java.util.concurrent.CompletableFuture; + /** + * Returns an immutable copy of all subjects currently loaded in this + * collection. + */ + // @ts-ignore + getLoadedSubjects(): java.util.Collection; + /** + * Gets a set of Subject identifiers being stored in the collection. This + * method must return a complete list, including identifiers of subjects not + * currently loaded. + *

The results of this method should not be passed directly to + * {@link #loadSubjects(Set)}. Instead, each individual subject should be + * loaded, processed, and then allowed to be unloaded using + * {@link #suggestUnload(String)}.

+ *

If you simply need to process each subject in the collection, you can + * use {@link #applyToAll(Consumer)} and gather data.

+ */ + // @ts-ignore + getAllIdentifiers(): java.util.concurrent.CompletableFuture; + /** + * Creates a new subject reference to represent the expressed subject. + *

Note that instances of SubjectReference must be capable of resolving + * the identifier to a Subject without being passed a reference to the + * service.

+ *

A {@link IllegalArgumentException} will be thrown directly by this + * method if the identifier does not pass the identifier validity + * predicate.

+ */ + // @ts-ignore + newSubjectReference(subjectIdentifier: string): org.spongepowered.api.service.permission.SubjectReference; + /** + * Performs an action on each Subject in the collection. + *

Subjects are loaded, supplied to the consumer, and then allowed to be + * uncached by the implementation.

+ *

This should be used to apply bulk changes or gather data about all + * Subjects in the collection. The provided consumer will be supplied + * asynchronously. Acting upon a large collection may be particularly + * resource intensive.

+ *

Implementations may choose to load and process subjects in + * parallel.

+ */ + // @ts-ignore + applyToAll(action: java.util.function$.Consumer): java.util.concurrent.CompletableFuture; + /** + * Performs an action on each Subject in the provided set. + *

Subjects are loaded, supplied to the consumer, and then allowed to be + * uncached by the implementation.

+ *

This should be used to apply bulk changes or gather data about all + * Subjects in the collection. The provided consumer will be supplied + * asynchronously. Acting upon a large collection may be particularly + * resource intensive.

+ *

Implementations may choose to load and process subjects in + * parallel.

+ */ + // @ts-ignore + applyToAll(action: java.util.function$.Consumer, identifiers: java.util.Set): java.util.concurrent.CompletableFuture; + /** + * Return the identifiers of all known subjects with the given permission + * set. + *

This method

DOES NOT

consider inheritance, and will only query + * the data set to the subjects {@link Subject#getSubjectData()}. Transient + * data is not considered.

+ *

As no context is passed, it is up to the implementation to decide + * which contexts to use. When available, + * {@link Subject#getActiveContexts()} is used for the lookup. Otherwise, it + * is likely that {@link SubjectData#GLOBAL_CONTEXT} will be + * used.

+ */ + // @ts-ignore + getAllWithPermission(permission: string): java.util.concurrent.CompletableFuture; + /** + * Return the identifiers of all known subjects with the given permission + * set. + *

This method

DOES NOT

consider inheritance, and will only query + * the data set to the subjects {@link Subject#getSubjectData()}. Transient + * data is not considered.

+ */ + // @ts-ignore + getAllWithPermission(contexts: java.util.Set, permission: string): java.util.concurrent.CompletableFuture; + /** + * Return all loaded subjects with the given permission set. + *

This method

DOES NOT

consider inheritance, and will only query + * the data set to the subjects {@link Subject#getSubjectData()}. Transient + * data is not considered.

+ *

As no context is passed, it is up to the implementation to decide + * which contexts to use. When available, + * {@link Subject#getActiveContexts()} is used for the lookup. Otherwise, it + * is likely that {@link SubjectData#GLOBAL_CONTEXT} will be + * used.

+ */ + // @ts-ignore + getLoadedWithPermission(permission: string): java.util.Map; + /** + * Return all loaded subjects with the given permission set. + *

This method

DOES NOT

consider inheritance, and will only query + * the data set to the subjects {@link Subject#getSubjectData()}. Transient + * data is not considered.

+ */ + // @ts-ignore + getLoadedWithPermission(contexts: java.util.Set, permission: string): java.util.Map; + /** + * Gets the subject holding data that is applied by default to all + * subjects in this collection. + *

This subject is at the root of all inheritance trees for subjects in + * this collection, but at a higher priority chan defaults expressed to + * {@link PermissionService#getDefaults()}.

+ *

Note: This data may be persisted, so plugins that add + * permissions to this subject must take care to not override + * permissions already set or modified.

+ *

It is also recommended to use + * {@link Subject#getTransientSubjectData()} where possible to avoid + * persisting unnecessary data.

+ *

Assigning default permissions should be used sparingly, and by + * convention, only in situations where "default" game behaviour is restored + * by granting a certain permission.

+ */ + // @ts-ignore + getDefaults(): org.spongepowered.api.service.permission.Subject; + /** + * Indicate that a certain subject may be unloaded by the implementation. + *

This is only a hint to the implementation, and does not guarantee that + * the subject will be unloaded.

+ */ + // @ts-ignore + suggestUnload(identifier: string): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.SubjectData.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.SubjectData.d.ts new file mode 100644 index 00000000..00da9bee --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.SubjectData.d.ts @@ -0,0 +1,118 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace permission { + // @ts-ignore + interface SubjectData { + // @ts-ignore + GLOBAL_CONTEXT: java.util.Set; + /** + * Return all permissions associated with this data object. + */ + // @ts-ignore + getAllPermissions(): java.util.Map; + /** + * Returns the list of permissions set for the given context. + *

This list is immutable and is not a live view. If no permissions have + * been set, it returns an empty list.

+ */ + // @ts-ignore + getPermissions(contexts: java.util.Set): java.util.Map; + /** + * Sets a permission to a given value. + *

Setting value as {@link Tristate#UNDEFINED} unsets the permission.

+ *

An empty set of contexts applies this permission to the global + * context.

+ */ + // @ts-ignore + setPermission(contexts: java.util.Set, permission: string, value: org.spongepowered.api.util.Tristate): java.util.concurrent.CompletableFuture; + /** + * Clear all permissions set in any context. + */ + // @ts-ignore + clearPermissions(): java.util.concurrent.CompletableFuture; + /** + * Clear all permissions set in a given context combination. + *

Passing an empty context set clears permissions in the global + * context.

+ */ + // @ts-ignore + clearPermissions(contexts: java.util.Set): java.util.concurrent.CompletableFuture; + /** + * Return all registered parent subjects for all contexts. + *

The returned map is immutable and not a live view. The results of this + * method do not traverse any sort of inheritance structure a permissions + * plugin may implement.

+ */ + // @ts-ignore + getAllParents(): java.util.Map; + /** + * Return all registered parent subjects for a given context. + *

The returned map is immutable and not a live view. The results of this + * method do not traverse any sort of inheritance structure a permissions + * plugin may implement.

+ */ + // @ts-ignore + getParents(contexts: java.util.Set): java.util.List; + /** + * Adds a parent in a particular context combination. + *

Passing an empty context combination means the parent is added in the + * global context.

+ */ + // @ts-ignore + addParent(contexts: java.util.Set, parent: org.spongepowered.api.service.permission.SubjectReference): java.util.concurrent.CompletableFuture; + /** + * Removes a parent in a particular context combination. + *

Passing an empty context combination means the parent is removed in + * the global context.

+ */ + // @ts-ignore + removeParent(contexts: java.util.Set, parent: org.spongepowered.api.service.permission.SubjectReference): java.util.concurrent.CompletableFuture; + /** + * Remove all parents in any context combination. + */ + // @ts-ignore + clearParents(): java.util.concurrent.CompletableFuture; + /** + * Remove all parents in a given context combination. + *

Passing an empty context set clears parents in the global + * context.

+ */ + // @ts-ignore + clearParents(contexts: java.util.Set): java.util.concurrent.CompletableFuture; + /** + * Return all options for all context combinations currently registered. + */ + // @ts-ignore + getAllOptions(): java.util.Map; + /** + * Gets options for a specific context combination. + */ + // @ts-ignore + getOptions(contexts: java.util.Set): java.util.Map; + /** + * Sets a specific option to a value. + *

Passing a null value will unset the option.

+ */ + // @ts-ignore + setOption(contexts: java.util.Set, key: string, value: string): java.util.concurrent.CompletableFuture; + /** + * Clear all options. + */ + // @ts-ignore + clearOptions(): java.util.concurrent.CompletableFuture; + /** + * Clear all options in the given context combination. + *

Passing an empty context set clears options in the global + * context.

+ */ + // @ts-ignore + clearOptions(contexts: java.util.Set): java.util.concurrent.CompletableFuture; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.SubjectReference.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.SubjectReference.d.ts new file mode 100644 index 00000000..484ba799 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.permission.SubjectReference.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace permission { + // @ts-ignore + interface SubjectReference { + /** + * Gets the identifier of the collection containing the subject + * being referenced. + */ + // @ts-ignore + getCollectionIdentifier(): string; + /** + * Gets the identifier of the subject. + */ + // @ts-ignore + getSubjectIdentifier(): string; + /** + * Resolves and returns the Subject being referenced. + *

The returned future will complete exceptionally if the subject + * collection with the given identifier cannot be loaded.

+ */ + // @ts-ignore + resolve(): java.util.concurrent.CompletableFuture; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.rcon.RconService.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.rcon.RconService.d.ts new file mode 100644 index 00000000..ecac2fe3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.rcon.RconService.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace rcon { + // @ts-ignore + interface RconService { + /** + * Tests whether Rcon is enabled for this service. + *

Rcon allows commands to be remotely run on the server, after Rcon + * client have authenticated with a password.

+ */ + // @ts-ignore + isRconEnabled(): boolean; + /** + * Gets the Rcon password for this service. + *

This password is used by Rcon clients to authenticate.

+ */ + // @ts-ignore + getRconPassword(): string; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.sql.SqlService.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.sql.SqlService.d.ts new file mode 100644 index 00000000..adc2fbe6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.sql.SqlService.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace sql { + // @ts-ignore + interface SqlService { + /** + * Returns a data source for the provided JDBC connection string or + * an alias. + *

A jdbc connection url is expected to be of the form: + * jdbc:<engine>://[<username>[:<password>]@]<host + * >/<database> or an alias (available aliases are known only by + * the service provider)

+ */ + // @ts-ignore + getDataSource(jdbcConnection: string): any /*javax.sql.DataSource*/; + /** + * Returns a data source for the provided JDBC connection string or an + * alias. + *

A jdbc connection url is expected to be of the form: + * jdbc:<engine>://[<username>[:<password>]@] + * <host>/<database> + * or an alias (available aliases are known only by the service + * provider)

+ */ + // @ts-ignore + getDataSource(plugin: java.lang.Object, jdbcConnection: string): any /*javax.sql.DataSource*/; + /** + * Returns a possible connection URL for a given alias. + */ + // @ts-ignore + getConnectionUrlFromAlias(alias: string): java.util.Optional; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.user.UserStorageService.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.user.UserStorageService.d.ts new file mode 100644 index 00000000..832e1dd3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.user.UserStorageService.d.ts @@ -0,0 +1,71 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace user { + // @ts-ignore + interface UserStorageService { + /** + * Gets the data of a {@link User} by their unique id. + */ + // @ts-ignore + get(uniqueId: java.util.UUID): java.util.Optional; + /** + * Gets the data of a {@link User} by their last known user name + * (case-insensitive). + *

To get the current name of a player, use the + * {@link GameProfileManager} service.

+ */ + // @ts-ignore + get(lastKnownName: string): java.util.Optional; + /** + * Gets the data of a {@link User} by their {@link GameProfile}. + */ + // @ts-ignore + get(profile: org.spongepowered.api.profile.GameProfile): java.util.Optional; + /** + * Gets or creates a persistent {@link User} associated with the given + * {@link GameProfile}. + *

To obtain a {@link GameProfile}, use the {@link GameProfileManager}. + *

+ */ + // @ts-ignore + getOrCreate(profile: org.spongepowered.api.profile.GameProfile): org.spongepowered.api.entity.living.player.User; + /** + * Gets the collection of all {@link GameProfile}s with stored {@link User} + * data. + *

Note that this method is resource-intensive depending on the amount of + * stored data.

+ *

Use {@link #get(GameProfile)} to get the {@link User} data + * corresponding to a {@link GameProfile}.

+ */ + // @ts-ignore + getAll(): java.util.Collection; + /** + * Deletes the data associated with a {@link User}. + *

This may not work if the user is logged in.

+ */ + // @ts-ignore + delete(profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Deletes the data associated with a {@link User}. + *

This may not work if the user is logged in.

+ */ + // @ts-ignore + delete(user: org.spongepowered.api.entity.living.player.User): boolean; + /** + * Returns a collection of matching {@link GameProfile}s with stored + * {@link User} data whose last known user names start with the given string + * (case-insensitive). + *

Use {@link #get(GameProfile)} to get the {@link User} data + * corresponding to a {@link GameProfile}.

+ */ + // @ts-ignore + match(lastKnownName: string): java.util.Collection; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.service.whitelist.WhitelistService.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.service.whitelist.WhitelistService.d.ts new file mode 100644 index 00000000..c4a46383 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.service.whitelist.WhitelistService.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace service { + namespace whitelist { + // @ts-ignore + interface WhitelistService { + /** + * Gets the collection of {@link GameProfile}s present on this whitelist. + */ + // @ts-ignore + getWhitelistedProfiles(): java.util.Collection; + /** + * Gets whether the specified {@link GameProfile} is present on this + * whitelist. + */ + // @ts-ignore + isWhitelisted(profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Adds the specified {@link GameProfile} to this whitelist. + */ + // @ts-ignore + addProfile(profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Removes the specified {@link GameProfile} from this whitelist, if present. + */ + // @ts-ignore + removeProfile(profile: org.spongepowered.api.profile.GameProfile): boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.statistic.BlockStatistic.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.statistic.BlockStatistic.d.ts new file mode 100644 index 00000000..63ad2b60 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.statistic.BlockStatistic.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace statistic { + // @ts-ignore + interface BlockStatistic extends org.spongepowered.api.statistic.ItemStatistic { + /** + * Returns the statistic's {@link BlockType}. + */ + // @ts-ignore + getBlockType(): org.spongepowered.api.block.BlockType; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.statistic.EntityStatistic.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.statistic.EntityStatistic.d.ts new file mode 100644 index 00000000..63be00d3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.statistic.EntityStatistic.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace statistic { + // @ts-ignore + interface EntityStatistic extends org.spongepowered.api.statistic.Statistic { + /** + * Returns the {@link EntityType} of this statistic. + */ + // @ts-ignore + getEntityType(): org.spongepowered.api.entity.EntityType; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.statistic.ItemStatistic.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.statistic.ItemStatistic.d.ts new file mode 100644 index 00000000..5bc81f71 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.statistic.ItemStatistic.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace statistic { + // @ts-ignore + interface ItemStatistic extends org.spongepowered.api.statistic.Statistic { + /** + * Returns the {@link ItemType} this statistic is associated with. + */ + // @ts-ignore + getItemType(): org.spongepowered.api.item.ItemType; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.statistic.Statistic.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.statistic.Statistic.d.ts new file mode 100644 index 00000000..1f604fa3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.statistic.Statistic.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace statistic { + // @ts-ignore + interface Statistic extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + /** + * Returns the objective {@link Criterion} for this statistic. + */ + // @ts-ignore + getCriterion(): java.util.Optional; + /** + * Returns the {@link NumberFormat} used to format the value of this + * statistic. + */ + // @ts-ignore + getFormat(): java.text.NumberFormat; + /** + * Returns this statistic's {@link StatisticType}. + */ + // @ts-ignore + getType(): org.spongepowered.api.statistic.StatisticType; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.statistic.StatisticType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.statistic.StatisticType.d.ts new file mode 100644 index 00000000..6c4f9a73 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.statistic.StatisticType.d.ts @@ -0,0 +1,12 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace statistic { + // @ts-ignore + interface StatisticType extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.statistic.StatisticTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.statistic.StatisticTypes.d.ts new file mode 100644 index 00000000..faa21fb5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.statistic.StatisticTypes.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace statistic { + // @ts-ignore + class StatisticTypes extends java.lang.Object { + // @ts-ignore + public static BASIC: org.spongepowered.api.statistic.StatisticType; + // @ts-ignore + public static BLOCKS_BROKEN: org.spongepowered.api.statistic.StatisticType; + // @ts-ignore + public static ENTITIES_KILLED: org.spongepowered.api.statistic.StatisticType; + // @ts-ignore + public static ITEMS_BROKEN: org.spongepowered.api.statistic.StatisticType; + // @ts-ignore + public static ITEMS_CRAFTED: org.spongepowered.api.statistic.StatisticType; + // @ts-ignore + public static ITEMS_DROPPED: org.spongepowered.api.statistic.StatisticType; + // @ts-ignore + public static ITEMS_PICKED_UP: org.spongepowered.api.statistic.StatisticType; + // @ts-ignore + public static ITEMS_USED: org.spongepowered.api.statistic.StatisticType; + // @ts-ignore + public static KILLED_BY_ENTITY: org.spongepowered.api.statistic.StatisticType; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.statistic.Statistics.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.statistic.Statistics.d.ts new file mode 100644 index 00000000..d3191b23 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.statistic.Statistics.d.ts @@ -0,0 +1,110 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace statistic { + // @ts-ignore + class Statistics extends java.lang.Object { + // @ts-ignore + public static ANIMALS_BRED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static ARMOR_CLEANED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static AVIATE_ONE_CM: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static BANNER_CLEANED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static BEACON_INTERACTION: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static BOAT_ONE_CM: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static BREWINGSTAND_INTERACTION: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static CAKE_SLICES_EATEN: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static CAULDRON_FILLED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static CAULDRON_USED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static CHEST_OPENED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static CLIMB_ONE_CM: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static CRAFTING_TABLE_INTERACTION: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static CROUCH_ONE_CM: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static DAMAGE_DEALT: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static DAMAGE_TAKEN: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static DEATHS: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static DISPENSER_INSPECTED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static DIVE_ONE_CM: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static DROP: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static DROPPER_INSPECTED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static ENDERCHEST_OPENED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static FALL_ONE_CM: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static FISH_CAUGHT: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static FLOWER_POTTED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static FURNACE_INTERACTION: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static HOPPER_INSPECTED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static HORSE_ONE_CM: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static ITEM_ENCHANTED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static JUMP: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static LEAVE_GAME: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static MINECART_ONE_CM: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static MOB_KILLS: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static NOTEBLOCK_PLAYED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static NOTEBLOCK_TUNED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static OPEN_SHULKER_BOX: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static PIG_ONE_CM: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static PLAYER_KILLS: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static RECORD_PLAYED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static SLEEP_IN_BED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static SNEAK_TIME: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static SPRINT_ONE_CM: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static SWIM_ONE_CM: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static TALKED_TO_VILLAGER: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static TIME_PLAYED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static TIME_SINCE_DEATH: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static TRADED_WITH_VILLAGER: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static TRAPPED_CHEST_TRIGGERED: org.spongepowered.api.statistic.Statistic; + // @ts-ignore + public static WALK_ONE_CM: org.spongepowered.api.statistic.Statistic; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.BookView.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.BookView.Builder.d.ts new file mode 100644 index 00000000..1ecda901 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.BookView.Builder.d.ts @@ -0,0 +1,93 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace BookView { + // @ts-ignore + class Builder extends java.lang.Object implements org.spongepowered.api.util.ResettableBuilder { + // @ts-ignore + constructor() + /** + * Sets the title of the {@link BookView}. + */ + // @ts-ignore + public title(title: org.spongepowered.api.text.Text): org.spongepowered.api.text.BookView.Builder; + /** + * Sets the author of the {@link BookView}. + */ + // @ts-ignore + public author(author: org.spongepowered.api.text.Text): org.spongepowered.api.text.BookView.Builder; + /** + * Adds a page to the end of the {@link BookView}. + */ + // @ts-ignore + public addPage(page: org.spongepowered.api.text.Text): org.spongepowered.api.text.BookView.Builder; + /** + * Adds multiple pages to the end of the {@link BookView}. + */ + // @ts-ignore + public addPages(pages: java.util.Collection): org.spongepowered.api.text.BookView.Builder; + /** + * Adds multiple pages to the end of the {@link BookView}. + */ + // @ts-ignore + public addPages(pages: org.spongepowered.api.text.Text): org.spongepowered.api.text.BookView.Builder; + /** + * Inserts a page at the specified index of the {@link BookView}. + */ + // @ts-ignore + public insertPage(i: number, page: org.spongepowered.api.text.Text): org.spongepowered.api.text.BookView.Builder; + /** + * Inserts multiple pages at the specified index of the + * {@link BookView}. + */ + // @ts-ignore + public insertPages(i: number, pages: java.util.Collection): org.spongepowered.api.text.BookView.Builder; + /** + * Inserts multiple pages at the specified index of the + * {@link BookView}. + */ + // @ts-ignore + public insertPages(i: number, pages: org.spongepowered.api.text.Text): org.spongepowered.api.text.BookView.Builder; + /** + * Removes a page from the {@link BookView}. + */ + // @ts-ignore + public removePage(page: org.spongepowered.api.text.Text): org.spongepowered.api.text.BookView.Builder; + /** + * Removes the page at the specified index of the {@link BookView}. + */ + // @ts-ignore + public removePage(i: number): org.spongepowered.api.text.BookView.Builder; + /** + * Removes multiple pages from the {@link BookView}. + */ + // @ts-ignore + public removePages(pages: java.util.Collection): org.spongepowered.api.text.BookView.Builder; + /** + * Removes multiple pages from the {@link BookView}. + */ + // @ts-ignore + public removePages(pages: org.spongepowered.api.text.Text): org.spongepowered.api.text.BookView.Builder; + /** + * Removes all pages from the {@link BookView}. + */ + // @ts-ignore + public clearPages(): org.spongepowered.api.text.BookView.Builder; + /** + * Creates a new {@link BookView} from the current state of this + * builder. + */ + // @ts-ignore + public build(): org.spongepowered.api.text.BookView; + // @ts-ignore + public from(value: org.spongepowered.api.text.BookView): org.spongepowered.api.text.BookView.Builder; + // @ts-ignore + public reset(): org.spongepowered.api.text.BookView.Builder; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.BookView.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.BookView.d.ts new file mode 100644 index 00000000..e2860cfc --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.BookView.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + // @ts-ignore + class BookView extends java.lang.Object implements org.spongepowered.api.data.DataSerializable { + /** + * Returns the title of the book to be displayed. + */ + // @ts-ignore + public getTitle(): org.spongepowered.api.text.Text; + /** + * Returns the author of the book to be displayed. + */ + // @ts-ignore + public getAuthor(): org.spongepowered.api.text.Text; + /** + * Returns a list of pages that will be displayed to the client. + */ + // @ts-ignore + public getPages(): any; + /** + * Returns a new {@link Builder} for chaining. + */ + // @ts-ignore + public static builder(): org.spongepowered.api.text.BookView.Builder; + // @ts-ignore + public getContentVersion(): number; + // @ts-ignore + public toContainer(): org.spongepowered.api.data.DataContainer; + // @ts-ignore + public toString(): string; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.LiteralText.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.LiteralText.Builder.d.ts new file mode 100644 index 00000000..ee1f76fe --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.LiteralText.Builder.d.ts @@ -0,0 +1,68 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace LiteralText { + // @ts-ignore + class Builder extends org.spongepowered.api.text.Text.Builder { + /** + * Returns the current content of this builder. + */ + // @ts-ignore + public getContent(): string; + /** + * Sets the plain text content of this text. + */ + // @ts-ignore + public content(content: string): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public build(): org.spongepowered.api.text.LiteralText; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public format(format: org.spongepowered.api.text.format.TextFormat): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public color(color: org.spongepowered.api.text.format.TextColor): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public style(styles: org.spongepowered.api.text.format.TextStyle): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public onClick(clickAction: org.spongepowered.api.text.action.ClickAction): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public onHover(hoverAction: org.spongepowered.api.text.action.HoverAction): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public onShiftClick(shiftClickAction: org.spongepowered.api.text.action.ShiftClickAction): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public append(children: org.spongepowered.api.text.Text): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public append(children: java.util.Collection): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public append(children: java.lang.Iterable): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public append(children: java.util.Iterator): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public insert(pos: number, children: org.spongepowered.api.text.Text): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public insert(pos: number, children: java.util.Collection): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public insert(pos: number, children: java.lang.Iterable): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public insert(pos: number, children: java.util.Iterator): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public remove(children: org.spongepowered.api.text.Text): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public remove(children: java.util.Collection): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public remove(children: java.lang.Iterable): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public remove(children: java.util.Iterator): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public removeAll(): org.spongepowered.api.text.LiteralText.Builder; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.LiteralText.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.LiteralText.d.ts new file mode 100644 index 00000000..f6ae9c78 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.LiteralText.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + // @ts-ignore + class LiteralText extends org.spongepowered.api.text.Text { + /** + * Returns the plain text content of this {@link Text}. + */ + // @ts-ignore + public getContent(): string; + // @ts-ignore + public toBuilder(): org.spongepowered.api.text.LiteralText.Builder; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.ScoreText.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.ScoreText.Builder.d.ts new file mode 100644 index 00000000..b046e3e7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.ScoreText.Builder.d.ts @@ -0,0 +1,78 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace ScoreText { + // @ts-ignore + class Builder extends org.spongepowered.api.text.Text.Builder { + /** + * Returns the current score of this builder. + */ + // @ts-ignore + public getScore(): org.spongepowered.api.scoreboard.Score; + /** + * Sets the score of the text. + */ + // @ts-ignore + public score(score: org.spongepowered.api.scoreboard.Score): org.spongepowered.api.text.ScoreText.Builder; + /** + * Returns the current override of this builder. + */ + // @ts-ignore + public getOverride(): java.util.Optional; + /** + * Overrides the real score and displays a custom text instead. + */ + // @ts-ignore + public override(override: string): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public build(): org.spongepowered.api.text.ScoreText; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public format(format: org.spongepowered.api.text.format.TextFormat): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public color(color: org.spongepowered.api.text.format.TextColor): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public style(styles: org.spongepowered.api.text.format.TextStyle): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public onClick(clickAction: org.spongepowered.api.text.action.ClickAction): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public onHover(hoverAction: org.spongepowered.api.text.action.HoverAction): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public onShiftClick(shiftClickAction: org.spongepowered.api.text.action.ShiftClickAction): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public append(children: org.spongepowered.api.text.Text): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public append(children: java.util.Collection): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public append(children: java.lang.Iterable): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public append(children: java.util.Iterator): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public insert(pos: number, children: org.spongepowered.api.text.Text): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public insert(pos: number, children: java.util.Collection): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public insert(pos: number, children: java.lang.Iterable): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public insert(pos: number, children: java.util.Iterator): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public remove(children: org.spongepowered.api.text.Text): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public remove(children: java.util.Collection): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public remove(children: java.lang.Iterable): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public remove(children: java.util.Iterator): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public removeAll(): org.spongepowered.api.text.ScoreText.Builder; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.ScoreText.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.ScoreText.d.ts new file mode 100644 index 00000000..8a40815b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.ScoreText.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + // @ts-ignore + class ScoreText extends org.spongepowered.api.text.Text { + /** + * Returns the score displayed by this {@link Text}. + */ + // @ts-ignore + public getScore(): org.spongepowered.api.scoreboard.Score; + /** + * Returns a value that is displayed instead of the real score. + */ + // @ts-ignore + public getOverride(): java.util.Optional; + // @ts-ignore + public toBuilder(): org.spongepowered.api.text.ScoreText.Builder; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.SelectorText.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.SelectorText.Builder.d.ts new file mode 100644 index 00000000..3f0e7fdd --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.SelectorText.Builder.d.ts @@ -0,0 +1,68 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace SelectorText { + // @ts-ignore + class Builder extends org.spongepowered.api.text.Text.Builder { + /** + * Returns the current selector of this builder. + */ + // @ts-ignore + public getSelector(): org.spongepowered.api.text.selector.Selector; + /** + * Sets the selector of the text. + */ + // @ts-ignore + public selector(selector: org.spongepowered.api.text.selector.Selector): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public build(): org.spongepowered.api.text.SelectorText; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public format(format: org.spongepowered.api.text.format.TextFormat): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public color(color: org.spongepowered.api.text.format.TextColor): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public style(styles: org.spongepowered.api.text.format.TextStyle): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public onClick(clickAction: org.spongepowered.api.text.action.ClickAction): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public onHover(hoverAction: org.spongepowered.api.text.action.HoverAction): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public onShiftClick(shiftClickAction: org.spongepowered.api.text.action.ShiftClickAction): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public append(children: org.spongepowered.api.text.Text): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public append(children: java.util.Collection): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public append(children: java.lang.Iterable): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public append(children: java.util.Iterator): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public insert(pos: number, children: org.spongepowered.api.text.Text): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public insert(pos: number, children: java.util.Collection): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public insert(pos: number, children: java.lang.Iterable): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public insert(pos: number, children: java.util.Iterator): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public remove(children: org.spongepowered.api.text.Text): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public remove(children: java.util.Collection): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public remove(children: java.lang.Iterable): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public remove(children: java.util.Iterator): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public removeAll(): org.spongepowered.api.text.SelectorText.Builder; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.SelectorText.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.SelectorText.d.ts new file mode 100644 index 00000000..46800ae8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.SelectorText.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + // @ts-ignore + class SelectorText extends org.spongepowered.api.text.Text { + /** + * Returns the selector used in this {@link Text}. + */ + // @ts-ignore + public getSelector(): org.spongepowered.api.text.selector.Selector; + // @ts-ignore + public toBuilder(): org.spongepowered.api.text.SelectorText.Builder; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.Text.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.Text.Builder.d.ts new file mode 100644 index 00000000..a5b90626 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.Text.Builder.d.ts @@ -0,0 +1,185 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace Text { + // @ts-ignore + abstract class Builder extends java.lang.Object implements org.spongepowered.api.text.TextRepresentable { + /** + * Returns the current format of the {@link Text} in this builder. + */ + // @ts-ignore + public getFormat(): org.spongepowered.api.text.format.TextFormat; + /** + * Sets the {@link TextFormat} of this text. + */ + // @ts-ignore + public format(format: org.spongepowered.api.text.format.TextFormat): org.spongepowered.api.text.Text.Builder; + /** + * Returns the current color of the {@link Text} in this builder. + */ + // @ts-ignore + public getColor(): org.spongepowered.api.text.format.TextColor; + /** + * Sets the {@link TextColor} of this text. + */ + // @ts-ignore + public color(color: org.spongepowered.api.text.format.TextColor): org.spongepowered.api.text.Text.Builder; + /** + * Returns the current style of the {@link Text} in this builder. + */ + // @ts-ignore + public getStyle(): org.spongepowered.api.text.format.TextStyle; + /** + * Sets the text styles of this text. This will construct a composite + * {@link TextStyle} of the current style and the specified styles first + * and set it to the text. + */ + // @ts-ignore + public style(styles: org.spongepowered.api.text.format.TextStyle): org.spongepowered.api.text.Text.Builder; + /** + * Returns the current {@link ClickAction} of this builder. + */ + // @ts-ignore + public getClickAction(): java.util.Optional; + /** + * Sets the {@link ClickAction} that will be executed if the text is + * clicked in the chat. + */ + // @ts-ignore + public onClick(clickAction: org.spongepowered.api.text.action.ClickAction): org.spongepowered.api.text.Text.Builder; + /** + * Returns the current {@link HoverAction} of this builder. + */ + // @ts-ignore + public getHoverAction(): java.util.Optional; + /** + * Sets the {@link HoverAction} that will be executed if the text is + * hovered in the chat. + */ + // @ts-ignore + public onHover(hoverAction: org.spongepowered.api.text.action.HoverAction): org.spongepowered.api.text.Text.Builder; + /** + * Returns the current {@link ShiftClickAction} of this builder. + */ + // @ts-ignore + public getShiftClickAction(): java.util.Optional; + /** + * Sets the {@link ShiftClickAction} that will be executed if the text + * is shift-clicked in the chat. + */ + // @ts-ignore + public onShiftClick(shiftClickAction: org.spongepowered.api.text.action.ShiftClickAction): org.spongepowered.api.text.Text.Builder; + /** + * Returns a view of the current children of this builder. + *

The returned list is unmodifiable, but not immutable. It will + * change if new children get added through this builder.

+ */ + // @ts-ignore + public getChildren(): java.util.List; + /** + * Appends the specified {@link Text} to the end of this text. + */ + // @ts-ignore + public append(children: org.spongepowered.api.text.Text): org.spongepowered.api.text.Text.Builder; + /** + * Appends the specified {@link Text} to the end of this text. + */ + // @ts-ignore + public append(children: java.util.Collection): org.spongepowered.api.text.Text.Builder; + /** + * Appends the specified {@link Text} to the end of this text. + */ + // @ts-ignore + public append(children: java.lang.Iterable): org.spongepowered.api.text.Text.Builder; + /** + * Appends the specified {@link Text} to the end of this text. + */ + // @ts-ignore + public append(children: java.util.Iterator): org.spongepowered.api.text.Text.Builder; + /** + * Inserts the specified {@link Text} at the given position of this + * builder. + */ + // @ts-ignore + public insert(pos: number, children: org.spongepowered.api.text.Text): org.spongepowered.api.text.Text.Builder; + /** + * Inserts the specified {@link Text} at the given position of this + * builder. + */ + // @ts-ignore + public insert(pos: number, children: java.util.Collection): org.spongepowered.api.text.Text.Builder; + /** + * Inserts the specified {@link Text} at the given position of this + * builder. + */ + // @ts-ignore + public insert(pos: number, children: java.lang.Iterable): org.spongepowered.api.text.Text.Builder; + /** + * Inserts the specified {@link Text} at the given position of this + * builder. + */ + // @ts-ignore + public insert(pos: number, children: java.util.Iterator): org.spongepowered.api.text.Text.Builder; + /** + * Removes the last child in this builder. + */ + // @ts-ignore + public removeLastChild(): org.spongepowered.api.text.Text.Builder; + /** + * Removes the child at the given index. + */ + // @ts-ignore + public remove(index: number): org.spongepowered.api.text.Text.Builder; + /** + * Removes the specified {@link Text} from this builder. + */ + // @ts-ignore + public remove(children: org.spongepowered.api.text.Text): org.spongepowered.api.text.Text.Builder; + /** + * Removes the specified {@link Text} from this builder. + */ + // @ts-ignore + public remove(children: java.util.Collection): org.spongepowered.api.text.Text.Builder; + /** + * Removes the specified {@link Text} from this builder. + */ + // @ts-ignore + public remove(children: java.lang.Iterable): org.spongepowered.api.text.Text.Builder; + /** + * Removes the specified {@link Text} from this builder. + */ + // @ts-ignore + public remove(children: java.util.Iterator): org.spongepowered.api.text.Text.Builder; + /** + * Removes all children from this builder. + */ + // @ts-ignore + public removeAll(): org.spongepowered.api.text.Text.Builder; + /** + * Removes all empty texts from the beginning and end of this + * builder. + */ + // @ts-ignore + public trim(): org.spongepowered.api.text.Text.Builder; + /** + * Builds an immutable instance of the current state of this text + * builder. + */ + // @ts-ignore + public abstract build(): org.spongepowered.api.text.Text; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + // @ts-ignore + public toText(): org.spongepowered.api.text.Text; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.Text.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.Text.d.ts new file mode 100644 index 00000000..2e79e2b6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.Text.d.ts @@ -0,0 +1,312 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + // @ts-ignore + abstract class Text extends java.lang.Object implements org.spongepowered.api.text.TextRepresentable, org.spongepowered.api.data.DataSerializable { + // @ts-ignore + public static EMPTY: org.spongepowered.api.text.Text; + // @ts-ignore + public static NEW_LINE: org.spongepowered.api.text.LiteralText; + // @ts-ignore + public static PLAIN_COMPARATOR: java.util.Comparator; + /** + * Returns the format of this {@link Text}. + */ + // @ts-ignore + public getFormat(): org.spongepowered.api.text.format.TextFormat; + /** + * Returns the color of this {@link Text}. + */ + // @ts-ignore + public getColor(): org.spongepowered.api.text.format.TextColor; + /** + * Returns the style of this {@link Text}. This will return a compound + * {@link TextStyle} if multiple different styles have been set. + */ + // @ts-ignore + public getStyle(): org.spongepowered.api.text.format.TextStyle; + /** + * Returns the immutable list of children appended after the content of this + * {@link Text}. + */ + // @ts-ignore + public getChildren(): any; + /** + * Returns an immutable {@link Iterable} over this text and all of its + * children. This is recursive, the children of the children will be also + * included. + */ + // @ts-ignore + public withChildren(): java.lang.Iterable; + /** + * Returns the {@link ClickAction} executed on the client when this + * {@link Text} gets clicked. + */ + // @ts-ignore + public getClickAction(): java.util.Optional; + /** + * Returns the {@link HoverAction} executed on the client when this + * {@link Text} gets hovered. + */ + // @ts-ignore + public getHoverAction(): java.util.Optional; + /** + * Returns the {@link ShiftClickAction} executed on the client when this + * {@link Text} gets shift-clicked. + */ + // @ts-ignore + public getShiftClickAction(): java.util.Optional; + /** + * Returns whether this {@link Text} is empty. + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * Returns a new {@link Builder} with the content, formatting and actions of + * this text. This can be used to edit an otherwise immutable {@link Text} + * instance. + */ + // @ts-ignore + public abstract toBuilder(): org.spongepowered.api.text.Text.Builder; + /** + * Returns a plain text representation of this {@link Text} without any + * formatting. + */ + // @ts-ignore + public toPlain(): string; + /** + * Returns a plain text representation of this {@link Text} without any + * children. + */ + // @ts-ignore + public toPlainSingle(): string; + /** + * Concatenates the specified {@link Text} to this Text and returns the + * result. + */ + // @ts-ignore + public concat(other: org.spongepowered.api.text.Text): org.spongepowered.api.text.Text; + /** + * Removes all empty texts from the beginning and end of this + * text. + */ + // @ts-ignore + public trim(): org.spongepowered.api.text.Text; + /** + * Replaces a pattern in this text with a {@link Text}, preserving + * formatting where possible. + *

If {@code lossy} is true, this will replace the pattern if this finds + * it spanning multiple child {@link Text}s, resulting in a potential loss + * of formatting; if false, it will only replace the pattern where it is + * contained within one child {@link Text}, to preserve all formatting.

+ *

This method produces a copy with the specified replacements. The + * original is not modified.

+ */ + // @ts-ignore + public replace(oldValue: java.util.regex.Pattern, newValue: org.spongepowered.api.text.Text, lossy: boolean): org.spongepowered.api.text.Text; + /** + * Replaces a pattern in this text with a {@link Text}, preserving all + * formatting. + *

This method produces a copy with the specified replacements. The + * original is not modified.

+ */ + // @ts-ignore + public replace(oldValue: java.util.regex.Pattern, newValue: org.spongepowered.api.text.Text): org.spongepowered.api.text.Text; + /** + * Replaces a string within this text with a {@link Text}, preserving + * formatting where possible. + *

If {@code lossy} is true, this will replace the pattern if this finds + * it spanning multiple child {@link Text}s, resulting in a potential loss + * of formatting; if false, it will only replace the pattern where it is + * contained within one child {@link Text}, to preserve all formatting.

+ *

This method produces a copy with the specified replacements. The + * original is not modified.

+ */ + // @ts-ignore + public replace(oldValue: string, newValue: org.spongepowered.api.text.Text, lossy: boolean): org.spongepowered.api.text.Text; + /** + * Replaces a string within this text with a {@link Text}, preserving all + * formatting. + *

This method produces a copy with the specified replacements. The + * original is not modified.

+ */ + // @ts-ignore + public replace(oldValue: string, newValue: org.spongepowered.api.text.Text): org.spongepowered.api.text.Text; + // @ts-ignore + public getContentVersion(): number; + // @ts-ignore + public toContainer(): org.spongepowered.api.data.DataContainer; + // @ts-ignore + public compareTo(o: org.spongepowered.api.text.Text): number; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + // @ts-ignore + public toText(): org.spongepowered.api.text.Text; + /** + * Returns an empty, unformatted {@link Text} instance. + */ + // @ts-ignore + public static of(): org.spongepowered.api.text.Text; + /** + * Creates a {@link Text} with the specified plain text. The created text + * won't have any formatting or events configured. + */ + // @ts-ignore + public static of(content: string): org.spongepowered.api.text.LiteralText; + /** + * Creates a {@link Text} with the specified char as plain text. The created + * text won't have any formatting or events configured. + */ + // @ts-ignore + public static of(content: string): org.spongepowered.api.text.LiteralText; + /** + * Creates a new unformatted {@link TranslatableText} with the given + * {@link Translation} and arguments. + */ + // @ts-ignore + public static of(translation: org.spongepowered.api.text.translation.Translation, args: java.lang.Object): org.spongepowered.api.text.TranslatableText; + /** + * Creates a new unformatted {@link TranslatableText} from the given + * {@link Translatable}. + */ + // @ts-ignore + public static of(translatable: org.spongepowered.api.text.translation.Translatable, args: java.lang.Object): org.spongepowered.api.text.TranslatableText; + /** + * Creates a new unformatted {@link SelectorText} with the given selector. + */ + // @ts-ignore + public static of(selector: org.spongepowered.api.text.selector.Selector): org.spongepowered.api.text.SelectorText; + /** + * Creates a new unformatted {@link ScoreText} with the given score. + */ + // @ts-ignore + public static of(score: org.spongepowered.api.scoreboard.Score): org.spongepowered.api.text.ScoreText; + /** + * Builds a {@link Text} from a given array of objects. + *

For instance, you can use this like + * Text.of(TextColors.DARK_AQUA, "Hi", TextColors.AQUA, "Bye") + *

+ *

This will create the correct {@link Text} instance if the input object + * is the input for one of the {@link Text} types or convert the object to a + * string otherwise.

+ *

For instances of type {@link TextRepresentable} (e.g. {@link Text}, + * {@link Builder}, ...) the formatting of appended text has priority over + * the current formatting in the method, e.g. the following results in a + * green, then yellow and at the end green again {@link Text}:

+ * Text.of(TextColors.GREEN, "Hello ", Text.of(TextColors.YELLOW, + * "Spongie"), '!'); + */ + // @ts-ignore + public static of(objects: java.lang.Object): org.spongepowered.api.text.Text; + /** + * Creates a {@link Text.Builder} with empty text. + */ + // @ts-ignore + public static builder(): org.spongepowered.api.text.Text.Builder; + /** + * Creates a new unformatted {@link LiteralText.Builder} with the specified + * content. + */ + // @ts-ignore + public static builder(content: string): org.spongepowered.api.text.LiteralText.Builder; + /** + * Creates a new unformatted {@link LiteralText.Builder} with the specified + * content. + */ + // @ts-ignore + public static builder(content: string): org.spongepowered.api.text.LiteralText.Builder; + /** + * Creates a new {@link LiteralText.Builder} with the formatting and actions + * of the specified {@link Text} and the given content. + */ + // @ts-ignore + public static builder(text: org.spongepowered.api.text.Text, content: string): org.spongepowered.api.text.LiteralText.Builder; + /** + * Creates a new unformatted {@link TranslatableText.Builder} with the given + * {@link Translation} and arguments. + */ + // @ts-ignore + public static builder(translation: org.spongepowered.api.text.translation.Translation, args: java.lang.Object): org.spongepowered.api.text.TranslatableText.Builder; + /** + * Creates a new unformatted {@link TranslatableText.Builder} from the given + * {@link Translatable}. + */ + // @ts-ignore + public static builder(translatable: org.spongepowered.api.text.translation.Translatable, args: java.lang.Object): org.spongepowered.api.text.TranslatableText.Builder; + /** + * Creates a new {@link TranslatableText.Builder} with the formatting and + * actions of the specified {@link Text} and the given {@link Translation} + * and arguments. + */ + // @ts-ignore + public static builder(text: org.spongepowered.api.text.Text, translation: org.spongepowered.api.text.translation.Translation, args: java.lang.Object): org.spongepowered.api.text.TranslatableText.Builder; + /** + * Creates a new {@link TranslatableText.Builder} with the formatting and + * actions of the specified {@link Text} and the given {@link Translatable}. + */ + // @ts-ignore + public static builder(text: org.spongepowered.api.text.Text, translatable: org.spongepowered.api.text.translation.Translatable, args: java.lang.Object): org.spongepowered.api.text.TranslatableText.Builder; + /** + * Creates a new unformatted {@link SelectorText.Builder} with the given + * selector. + */ + // @ts-ignore + public static builder(selector: org.spongepowered.api.text.selector.Selector): org.spongepowered.api.text.SelectorText.Builder; + /** + * Creates a new {@link SelectorText.Builder} with the formatting and + * actions of the specified {@link Text} and the given selector. + */ + // @ts-ignore + public static builder(text: org.spongepowered.api.text.Text, selector: org.spongepowered.api.text.selector.Selector): org.spongepowered.api.text.SelectorText.Builder; + /** + * Creates a new unformatted {@link ScoreText.Builder} with the given score. + */ + // @ts-ignore + public static builder(score: org.spongepowered.api.scoreboard.Score): org.spongepowered.api.text.ScoreText.Builder; + /** + * Creates a new {@link ScoreText.Builder} with the formatting and actions + * of the specified {@link Text} and the given score. + */ + // @ts-ignore + public static builder(text: org.spongepowered.api.text.Text, score: org.spongepowered.api.scoreboard.Score): org.spongepowered.api.text.ScoreText.Builder; + /** + * Joins a sequence of text objects together. + */ + // @ts-ignore + public static join(texts: org.spongepowered.api.text.Text): org.spongepowered.api.text.Text; + /** + * Joins a sequence of text objects together. + */ + // @ts-ignore + public static join(texts: java.lang.Iterable): org.spongepowered.api.text.Text; + /** + * Joins a sequence of text objects together. + */ + // @ts-ignore + public static join(texts: java.util.Iterator): org.spongepowered.api.text.Text; + /** + * Joins a sequence of text objects together along with a separator. + */ + // @ts-ignore + public static joinWith(separator: org.spongepowered.api.text.Text, texts: org.spongepowered.api.text.Text): org.spongepowered.api.text.Text; + /** + * Joins a sequence of text objects together along with a separator. + */ + // @ts-ignore + public static joinWith(separator: org.spongepowered.api.text.Text, texts: java.lang.Iterable): org.spongepowered.api.text.Text; + /** + * Joins a sequence of text objects together along with a separator. + */ + // @ts-ignore + public static joinWith(separator: org.spongepowered.api.text.Text, texts: java.util.Iterator): org.spongepowered.api.text.Text; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.TextElement.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.TextElement.d.ts new file mode 100644 index 00000000..800d7b6f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.TextElement.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + // @ts-ignore + interface TextElement { + /** + * Applies this element to the end of the specified builder. + */ + // @ts-ignore + applyTo(builder: org.spongepowered.api.text.Text.Builder): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.TextRepresentable.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.TextRepresentable.d.ts new file mode 100644 index 00000000..a0a57e45 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.TextRepresentable.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + // @ts-ignore + interface TextRepresentable extends org.spongepowered.api.text.TextElement { + /** + * Gets the textual representation of this instance for its usage in other + * {@link Text} objects. This may but does not need to include + * {@link HoverAction hover texts} or other {@link TextAction actions}. This + * method is basically the {@link Object#toString() toString()} equivalent + * for {@link Text}s. + */ + // @ts-ignore + toText(): org.spongepowered.api.text.Text; + // @ts-ignore + applyTo(builder: org.spongepowered.api.text.Text.Builder): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.TextTemplate.Arg.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.TextTemplate.Arg.Builder.d.ts new file mode 100644 index 00000000..ae4d46d1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.TextTemplate.Arg.Builder.d.ts @@ -0,0 +1,59 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace TextTemplate { + namespace Arg { + // @ts-ignore + class Builder extends java.lang.Object { + /** + * Builds a new {@link Arg}. Note that it is not necessary to call + * this method when supplying an argument to a template. You may + * pass the builder to {@link TextTemplate#of(Object...)} directly. + */ + // @ts-ignore + public build(): org.spongepowered.api.text.TextTemplate.Arg; + /** + * Sets whether the Arg should be optional (false by default). + */ + // @ts-ignore + public optional(optional: boolean): org.spongepowered.api.text.TextTemplate.Arg.Builder; + /** + * Makes the Arg optional. + */ + // @ts-ignore + public optional(): org.spongepowered.api.text.TextTemplate.Arg.Builder; + /** + * Sets the default value for the Argument. The argument must by + * optional in order for this value to be used. + */ + // @ts-ignore + public defaultValue(defaultValue: org.spongepowered.api.text.Text): org.spongepowered.api.text.TextTemplate.Arg.Builder; + /** + * Sets the "base" format of the Arg. This acts as a default format + * when no formatting data is provided by the parameter. + */ + // @ts-ignore + public format(format: org.spongepowered.api.text.format.TextFormat): org.spongepowered.api.text.TextTemplate.Arg.Builder; + /** + * Sets the "base" color of the Arg. This acts as a default color + * when no color data is provided by the parameter. + */ + // @ts-ignore + public color(color: org.spongepowered.api.text.format.TextColor): org.spongepowered.api.text.TextTemplate.Arg.Builder; + /** + * Sets the "base" style of the Arg. This acts as a default style + * when no style data is provided by the parameter. + */ + // @ts-ignore + public style(style: org.spongepowered.api.text.format.TextStyle): org.spongepowered.api.text.TextTemplate.Arg.Builder; + // @ts-ignore + public toString(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.TextTemplate.Arg.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.TextTemplate.Arg.d.ts new file mode 100644 index 00000000..9291b043 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.TextTemplate.Arg.d.ts @@ -0,0 +1,56 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace TextTemplate { + // @ts-ignore + class Arg extends java.lang.Object implements org.spongepowered.api.text.TextRepresentable { + /** + * Returns the name of this argument to be matched with incoming + * parameters. + */ + // @ts-ignore + public getName(): string; + /** + * Returns true if this Arg is optional. If a parameter is missing for + * a non-optional Arg, a {@link TextTemplateArgumentException} will be + * thrown. + */ + // @ts-ignore + public isOptional(): boolean; + /** + * Returns the default value to use if the Arg {@link #isOptional()} + * and no parameter is supplied. + */ + // @ts-ignore + public getDefaultValue(): java.util.Optional; + /** + * Returns the base format to be applied to this Arg. + */ + // @ts-ignore + public getFormat(): org.spongepowered.api.text.format.TextFormat; + /** + * Returns the beginning string of the Arg's container. + */ + // @ts-ignore + public getOpenArgString(): string; + /** + * Returns the end string of the Arg's container. + */ + // @ts-ignore + public getCloseArgString(): string; + // @ts-ignore + public toText(): org.spongepowered.api.text.Text; + // @ts-ignore + public toString(): string; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.TextTemplate.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.TextTemplate.d.ts new file mode 100644 index 00000000..0a2c7021 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.TextTemplate.d.ts @@ -0,0 +1,113 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + // @ts-ignore + class TextTemplate extends java.lang.Object implements org.spongepowered.api.text.TextRepresentable { + // @ts-ignore + public static DEFAULT_OPEN_ARG: string; + // @ts-ignore + public static DEFAULT_CLOSE_ARG: string; + // @ts-ignore + public static EMPTY: org.spongepowered.api.text.TextTemplate; + /** + * Returns the elements contained in this TextTemplate. + */ + // @ts-ignore + public getElements(): java.util.List; + /** + * Returns the arguments contained within the TextTemplate. + */ + // @ts-ignore + public getArguments(): java.util.Map; + /** + * Returns the string used for containing Args within the template. + */ + // @ts-ignore + public getOpenArgString(): string; + /** + * Returns the string used for containing Args within the template. + */ + // @ts-ignore + public getCloseArgString(): string; + /** + * Concatenates the specified {@link TextTemplate} to this template and + * returns the result. In the event that the two templates' open/close + * argument containers vary, this template's argument containers will be + * used. + */ + // @ts-ignore + public concat(other: org.spongepowered.api.text.TextTemplate): org.spongepowered.api.text.TextTemplate; + /** + * Applies an empty map of parameters to this TextTemplate and returns the + * result in a {@link Text.Builder}. + */ + // @ts-ignore + public apply(): org.spongepowered.api.text.Text.Builder; + /** + * Applies the specified parameters to this TextTemplate and returns the + * result in a {@link Text.Builder}. + */ + // @ts-ignore + public apply(params: java.util.Map): org.spongepowered.api.text.Text.Builder; + /** + * Constructs a new TextTemplate for the given elements. The order of the + * elements is the order in which they will be appended to the result + * builder via {@link #apply(Map)}. + *

The provided elements may be of any type.

+ *

In the case that an element is a {@link TextElement}, + * {@link TextElement#applyTo(Text.Builder)} will be used to append the + * element to the builder.

+ *

In the case that an element is an {@link Arg} the argument will be + * replaced with the {@link TextElement} provided by the corresponding + * parameter supplied by {@link #apply(Map)}

+ *

In the case that an element is any other type, the parameter value's + * {@link Object#toString()} method will be used to create a {@link Text} + * object.

+ */ + // @ts-ignore + public static of(openArg: string, closeArg: string, elements: java.lang.Object): org.spongepowered.api.text.TextTemplate; + /** + * Constructs a new TextTemplate for the given elements. The order of the + * elements is the order in which they will be appended to the result + * builder via {@link #apply(Map)}. + *

The provided elements may be of any type.

+ *

In the case that an element is a {@link TextElement}, + * {@link TextElement#applyTo(Text.Builder)} will be used to append the + * element to the builder.

+ *

In the case that an element is an {@link Arg} the argument will be + * replaced with the {@link TextElement} provided by the corresponding + * parameter supplied by {@link #apply(Map)}

+ *

In the case that an element is any other type, the parameter value's + * {@link Object#toString()} method will be used to create a {@link Text} + * object.

+ */ + // @ts-ignore + public static of(elements: java.lang.Object): org.spongepowered.api.text.TextTemplate; + /** + * Returns the empty representation of a TextTemplate. + */ + // @ts-ignore + public static of(): org.spongepowered.api.text.TextTemplate; + /** + * Constructs a new {@link Arg} to be supplied to {@link #of(Object...)}. + * This argument expects a {@link TextElement} parameter. + */ + // @ts-ignore + public static arg(name: string): org.spongepowered.api.text.TextTemplate.Arg.Builder; + // @ts-ignore + public toText(): org.spongepowered.api.text.Text; + // @ts-ignore + public iterator(): java.util.Iterator; + // @ts-ignore + public toString(): string; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.TextTemplateArgumentException.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.TextTemplateArgumentException.d.ts new file mode 100644 index 00000000..cb0ca6c1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.TextTemplateArgumentException.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + // @ts-ignore + class TextTemplateArgumentException extends java.lang.IllegalArgumentException { + /** + * Creates exception with the specified message. + */ + // @ts-ignore + constructor(msg: string) + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.TranslatableText.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.TranslatableText.Builder.d.ts new file mode 100644 index 00000000..f3d60e19 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.TranslatableText.Builder.d.ts @@ -0,0 +1,78 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace TranslatableText { + // @ts-ignore + class Builder extends org.spongepowered.api.text.Text.Builder { + /** + * Returns the current translation of this builder. + */ + // @ts-ignore + public getTranslation(): org.spongepowered.api.text.translation.Translation; + /** + * Returns the current translation arguments of this builder. + */ + // @ts-ignore + public getArguments(): any; + /** + * Sets the translation of the text. + */ + // @ts-ignore + public translation(translation: org.spongepowered.api.text.translation.Translation, args: java.lang.Object): org.spongepowered.api.text.TranslatableText.Builder; + /** + * Sets the translation of the text. + */ + // @ts-ignore + public translation(translatable: org.spongepowered.api.text.translation.Translatable, args: java.lang.Object): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public build(): org.spongepowered.api.text.TranslatableText; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public format(format: org.spongepowered.api.text.format.TextFormat): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public color(color: org.spongepowered.api.text.format.TextColor): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public style(styles: org.spongepowered.api.text.format.TextStyle): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public onClick(clickAction: org.spongepowered.api.text.action.ClickAction): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public onHover(hoverAction: org.spongepowered.api.text.action.HoverAction): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public onShiftClick(shiftClickAction: org.spongepowered.api.text.action.ShiftClickAction): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public append(children: org.spongepowered.api.text.Text): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public append(children: java.util.Collection): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public append(children: java.lang.Iterable): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public append(children: java.util.Iterator): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public insert(pos: number, children: org.spongepowered.api.text.Text): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public insert(pos: number, children: java.util.Collection): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public insert(pos: number, children: java.lang.Iterable): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public insert(pos: number, children: java.util.Iterator): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public remove(children: org.spongepowered.api.text.Text): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public remove(children: java.util.Collection): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public remove(children: java.lang.Iterable): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public remove(children: java.util.Iterator): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public removeAll(): org.spongepowered.api.text.TranslatableText.Builder; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.TranslatableText.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.TranslatableText.d.ts new file mode 100644 index 00000000..42927c60 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.TranslatableText.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + // @ts-ignore + class TranslatableText extends org.spongepowered.api.text.Text { + /** + * Returns the translation of this {@link Text}. + */ + // @ts-ignore + public getTranslation(): org.spongepowered.api.text.translation.Translation; + /** + * Returns the list of {@link Translation} arguments used to format this + * {@link Text}. + */ + // @ts-ignore + public getArguments(): any; + // @ts-ignore + public toBuilder(): org.spongepowered.api.text.TranslatableText.Builder; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.ClickAction.ChangePage.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.ClickAction.ChangePage.d.ts new file mode 100644 index 00000000..5c581591 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.ClickAction.ChangePage.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace action { + namespace ClickAction { + // @ts-ignore + class ChangePage extends org.spongepowered.api.text.action.ClickAction { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.ClickAction.ExecuteCallback.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.ClickAction.ExecuteCallback.d.ts new file mode 100644 index 00000000..cab8d25a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.ClickAction.ExecuteCallback.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace action { + namespace ClickAction { + // @ts-ignore + class ExecuteCallback extends org.spongepowered.api.text.action.ClickAction { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.ClickAction.OpenUrl.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.ClickAction.OpenUrl.d.ts new file mode 100644 index 00000000..c5757a17 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.ClickAction.OpenUrl.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace action { + namespace ClickAction { + // @ts-ignore + class OpenUrl extends org.spongepowered.api.text.action.ClickAction { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.ClickAction.RunCommand.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.ClickAction.RunCommand.d.ts new file mode 100644 index 00000000..82642f66 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.ClickAction.RunCommand.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace action { + namespace ClickAction { + // @ts-ignore + class RunCommand extends org.spongepowered.api.text.action.ClickAction { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.ClickAction.SuggestCommand.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.ClickAction.SuggestCommand.d.ts new file mode 100644 index 00000000..aef7bc3a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.ClickAction.SuggestCommand.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace action { + namespace ClickAction { + // @ts-ignore + class SuggestCommand extends org.spongepowered.api.text.action.ClickAction { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.ClickAction.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.ClickAction.d.ts new file mode 100644 index 00000000..13cdb98e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.ClickAction.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace action { + // @ts-ignore + abstract class ClickAction extends org.spongepowered.api.text.action.TextAction { + // @ts-ignore + public applyTo(builder: org.spongepowered.api.text.Text.Builder): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.HoverAction.ShowEntity.Ref.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.HoverAction.ShowEntity.Ref.d.ts new file mode 100644 index 00000000..da65afe6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.HoverAction.ShowEntity.Ref.d.ts @@ -0,0 +1,59 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace action { + namespace HoverAction { + namespace ShowEntity { + // @ts-ignore + class Ref extends java.lang.Object implements org.spongepowered.api.util.Identifiable { + /** + * Constructs a Ref to an entity. + */ + // @ts-ignore + constructor(uuid: java.util.UUID, name: string, type: org.spongepowered.api.entity.EntityType) + /** + * Constructs a Ref to an entity. + */ + // @ts-ignore + constructor(uuid: java.util.UUID, name: string) + /** + * Constructs a Ref, given an {@link Entity}. + */ + // @ts-ignore + constructor(entity: org.spongepowered.api.entity.Entity, name: string) + /** + * Constructs a Ref directly. + */ + // @ts-ignore + constructor(uuid: java.util.UUID, name: string, type: java.util.Optional) + /** + * Retrieves the UUID that this {@link Ref} refers to. + */ + // @ts-ignore + public getUniqueId(): java.util.UUID; + /** + * Retrieves the name that this {@link Ref} refers to. + */ + // @ts-ignore + public getName(): string; + /** + * Retrieves the type that this {@link Ref} refers to, if it exists. + */ + // @ts-ignore + public getType(): java.util.Optional; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.HoverAction.ShowEntity.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.HoverAction.ShowEntity.d.ts new file mode 100644 index 00000000..f6c3def9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.HoverAction.ShowEntity.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace action { + namespace HoverAction { + // @ts-ignore + class ShowEntity extends org.spongepowered.api.text.action.HoverAction { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.HoverAction.ShowItem.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.HoverAction.ShowItem.d.ts new file mode 100644 index 00000000..35e47e9a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.HoverAction.ShowItem.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace action { + namespace HoverAction { + // @ts-ignore + class ShowItem extends org.spongepowered.api.text.action.HoverAction { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.HoverAction.ShowText.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.HoverAction.ShowText.d.ts new file mode 100644 index 00000000..4a7cbcc4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.HoverAction.ShowText.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace action { + namespace HoverAction { + // @ts-ignore + class ShowText extends org.spongepowered.api.text.action.HoverAction { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.HoverAction.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.HoverAction.d.ts new file mode 100644 index 00000000..c61e1337 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.HoverAction.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace action { + // @ts-ignore + abstract class HoverAction extends org.spongepowered.api.text.action.TextAction { + // @ts-ignore + public applyTo(builder: org.spongepowered.api.text.Text.Builder): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.ShiftClickAction.InsertText.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.ShiftClickAction.InsertText.d.ts new file mode 100644 index 00000000..2b346aef --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.ShiftClickAction.InsertText.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace action { + namespace ShiftClickAction { + // @ts-ignore + class InsertText extends org.spongepowered.api.text.action.ShiftClickAction { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.ShiftClickAction.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.ShiftClickAction.d.ts new file mode 100644 index 00000000..ba0e832d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.ShiftClickAction.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace action { + // @ts-ignore + abstract class ShiftClickAction extends org.spongepowered.api.text.action.TextAction { + // @ts-ignore + public applyTo(builder: org.spongepowered.api.text.Text.Builder): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.TextAction.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.TextAction.d.ts new file mode 100644 index 00000000..efc6d41d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.TextAction.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace action { + // @ts-ignore + abstract class TextAction extends java.lang.Object implements org.spongepowered.api.text.TextElement { + /** + * Constructs a new {@link TextAction} with the given result. + */ + // @ts-ignore + constructor(result: java.lang.Object) + // @ts-ignore + protected result: java.lang.Object; + /** + * Returns the result of this {@link TextAction}. + */ + // @ts-ignore + public getResult(): java.lang.Object; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.TextActions.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.TextActions.d.ts new file mode 100644 index 00000000..e771e266 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.action.TextActions.d.ts @@ -0,0 +1,87 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace action { + // @ts-ignore + class TextActions extends java.lang.Object { + /** + * Creates a new {@link ClickAction} that will ask the player to open an URL + * when it is clicked. + */ + // @ts-ignore + public static openUrl(url: java.net.URL): org.spongepowered.api.text.action.ClickAction.OpenUrl; + /** + * Creates a new {@link ClickAction} that will type a command on the client + * when it is clicked. + */ + // @ts-ignore + public static runCommand(command: string): org.spongepowered.api.text.action.ClickAction.RunCommand; + /** + * Creates a new {@link ClickAction} that will change the page in a book + * when it is clicked. + */ + // @ts-ignore + public static changePage(page: number): org.spongepowered.api.text.action.ClickAction.ChangePage; + /** + * Creates a new {@link ClickAction} that will suggest the player a command + * when it is clicked. + */ + // @ts-ignore + public static suggestCommand(command: string): org.spongepowered.api.text.action.ClickAction.SuggestCommand; + /** + * Creates a new {@link ClickAction} that will execute the given runnable on + * the server when clicked. The callback will expire after some amount of + * time (not particularly instantly, but not like overnight really either). + */ + // @ts-ignore + public static executeCallback(callback: java.util.function$.Consumer): org.spongepowered.api.text.action.ClickAction.ExecuteCallback; + /** + * Creates a new {@link HoverAction} that will show a text on the client + * when it is hovered. + */ + // @ts-ignore + public static showText(text: org.spongepowered.api.text.Text): org.spongepowered.api.text.action.HoverAction.ShowText; + /** + * Creates a new {@link HoverAction} that will show information about an + * item when it is hovered. + */ + // @ts-ignore + public static showItem(item: org.spongepowered.api.item.inventory.ItemStackSnapshot): org.spongepowered.api.text.action.HoverAction.ShowItem; + /** + * Creates a new {@link HoverAction} that will show information about an + * entity when it is hovered. + */ + // @ts-ignore + public static showEntity(entity: org.spongepowered.api.text.action.HoverAction.ShowEntity.Ref): org.spongepowered.api.text.action.HoverAction.ShowEntity; + /** + * Creates a new {@link HoverAction} that will show information about an + * entity when it is hovered. + */ + // @ts-ignore + public static showEntity(uuid: java.util.UUID, name: string, type: org.spongepowered.api.entity.EntityType): org.spongepowered.api.text.action.HoverAction.ShowEntity; + /** + * Creates a new {@link HoverAction} that will show information about an + * entity when it is hovered. + */ + // @ts-ignore + public static showEntity(uuid: java.util.UUID, name: string): org.spongepowered.api.text.action.HoverAction.ShowEntity; + /** + * Creates a new {@link HoverAction} that will show information about an + * entity when it is hovered. + */ + // @ts-ignore + public static showEntity(entity: org.spongepowered.api.entity.Entity, name: string): org.spongepowered.api.text.action.HoverAction.ShowEntity; + /** + * Creates a new {@link ShiftClickAction} that will insert text at the + * current cursor position in the chat when it is shift-clicked. + */ + // @ts-ignore + public static insertText(text: string): org.spongepowered.api.text.action.ShiftClickAction.InsertText; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.AbstractMutableMessageChannel.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.AbstractMutableMessageChannel.d.ts new file mode 100644 index 00000000..9c436dee --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.AbstractMutableMessageChannel.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace channel { + // @ts-ignore + abstract class AbstractMutableMessageChannel extends java.lang.Object implements org.spongepowered.api.text.channel.MutableMessageChannel { + /** + * The default implementation uses a {@link WeakHashMap} implementation of {@link Set}. + */ + // @ts-ignore + constructor() + /** + * Creates a new instance of {@link AbstractMutableMessageChannel} with the + * provided {@link Collection} as the underlying member list. + *

The passed {@link Collection} directly affects the members of this + * channel.

+ *

It is recommended to use a weak collection to avoid memory leaks. If + * you do not use a weak collection, please ensure that members are cleaned + * up properly.

+ */ + // @ts-ignore + constructor(members: java.util.Collection) + // @ts-ignore + protected members: java.util.Collection; + // @ts-ignore + public addMember(member: org.spongepowered.api.text.channel.MessageReceiver): boolean; + // @ts-ignore + public removeMember(member: org.spongepowered.api.text.channel.MessageReceiver): boolean; + // @ts-ignore + public clearMembers(): void; + // @ts-ignore + public getMembers(): java.util.Collection; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.ChatTypeMessageReceiver.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.ChatTypeMessageReceiver.d.ts new file mode 100644 index 00000000..4175be4b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.ChatTypeMessageReceiver.d.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace channel { + // @ts-ignore + interface ChatTypeMessageReceiver { + /** + * Sends a message with the specified {@link ChatType} to this receiver. + *

If text formatting is not supported in the implementation + * it will be displayed as plain text.

+ */ + // @ts-ignore + sendMessage(type: org.spongepowered.api.text.chat.ChatType, message: org.spongepowered.api.text.Text): void; + /** + * Sends a message constructed from the {@link TextTemplate} with the + * specified {@link ChatType} to this receiver. + *

If text formatting is not supported in the implementation + * it will be displayed as plain text.

+ */ + // @ts-ignore + sendMessage(type: org.spongepowered.api.text.chat.ChatType, template: org.spongepowered.api.text.TextTemplate): void; + /** + * Sends a message constructed from the {@link TextTemplate} and + * {@code parameters} with the specified {@link ChatType} to this receiver. + *

If text formatting is not supported in the implementation + * it will be displayed as plain text.

+ */ + // @ts-ignore + sendMessage(type: org.spongepowered.api.text.chat.ChatType, template: org.spongepowered.api.text.TextTemplate, parameters: java.util.Map): void; + /** + * Sends the message(s) with the specified {@link ChatType} to this receiver. + *

If text formatting is not supported in the implementation + * it will be displayed as plain text.

+ */ + // @ts-ignore + sendMessages(type: org.spongepowered.api.text.chat.ChatType, messages: org.spongepowered.api.text.Text): void; + /** + * Sends the message(s) with the specified {@link ChatType} to this receiver. + *

If text formatting is not supported in the implementation + * it will be displayed as plain text.

+ */ + // @ts-ignore + sendMessages(type: org.spongepowered.api.text.chat.ChatType, messages: java.lang.Iterable): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.MessageChannel.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.MessageChannel.d.ts new file mode 100644 index 00000000..8d9d7621 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.MessageChannel.d.ts @@ -0,0 +1,102 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace channel { + // @ts-ignore + interface MessageChannel { + // @ts-ignore + TO_NONE: org.spongepowered.api.text.channel.MessageChannel; + // @ts-ignore + TO_PLAYERS: org.spongepowered.api.text.channel.MessageChannel; + // @ts-ignore + TO_CONSOLE: org.spongepowered.api.text.channel.MessageChannel; + // @ts-ignore + TO_ALL: org.spongepowered.api.text.channel.MessageChannel; + /** + * Creates a message channel that targets all subjects with the given + * permission. + */ + // @ts-ignore + permission(permission: string): org.spongepowered.api.text.channel.MessageChannel; + /** + * Creates a message channel that targets all subjects contained within the + * given channels and applies the message transformations of each channel in + * order. + */ + // @ts-ignore + combined(channels: org.spongepowered.api.text.channel.MessageChannel): org.spongepowered.api.text.channel.MessageChannel; + /** + * Gets a message channel that targets all subjects contained within the + * given channels and applies the message transformations of each channel in + * order. + */ + // @ts-ignore + combined(channels: java.util.Collection): org.spongepowered.api.text.channel.MessageChannel; + /** + * Creates a message channel that targets the given sources. + */ + // @ts-ignore + fixed(recipients: org.spongepowered.api.text.channel.MessageReceiver): org.spongepowered.api.text.channel.MessageChannel; + /** + * Creates a message channel that targets the given recipients. + */ + // @ts-ignore + fixed(recipients: java.util.Collection): org.spongepowered.api.text.channel.MessageChannel; + /** + * Creates a message channel that targets the given world. + */ + // @ts-ignore + world(world: org.spongepowered.api.world.World): org.spongepowered.api.text.channel.MessageChannel; + /** + * Broadcast a message to this channel, transforming and sending it to + * the members. + */ + // @ts-ignore + send(original: org.spongepowered.api.text.Text): void; + /** + * Sends a message to this channel, transforming and sending it to + * the members. + *

By default, the {@link ChatTypes#SYSTEM} type is used when sending + * messages to applicable recipients of this channel.

+ */ + // @ts-ignore + send(original: org.spongepowered.api.text.Text, type: org.spongepowered.api.text.chat.ChatType): void; + /** + * Send a message to this channel, transforming and sending it to the + * members. + */ + // @ts-ignore + send(sender: java.lang.Object, original: org.spongepowered.api.text.Text): void; + /** + * Send a message to this channel, transforming and sending it to the + * members. + */ + // @ts-ignore + send(sender: java.lang.Object, original: org.spongepowered.api.text.Text, type: org.spongepowered.api.text.chat.ChatType): void; + /** + * Handle transforming the input message appropriately. + */ + // @ts-ignore + transformMessage(sender: java.lang.Object, recipient: org.spongepowered.api.text.channel.MessageReceiver, original: org.spongepowered.api.text.Text, type: org.spongepowered.api.text.chat.ChatType): java.util.Optional; + /** + * Gets a collection of all members in this channel. + */ + // @ts-ignore + getMembers(): java.util.Collection; + /** + * Gets or creates a mutable version of this channel. + *

The default behaviour of this method is to copy the current member + * list into a {@link DelegateMutableMessageChannel}, which calls the + * {@link #transformMessage(Object, MessageReceiver, Text, ChatType)} method + * on this channel.

+ */ + // @ts-ignore + asMutable(): org.spongepowered.api.text.channel.MutableMessageChannel; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.MessageReceiver.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.MessageReceiver.d.ts new file mode 100644 index 00000000..78f8dd9b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.MessageReceiver.d.ts @@ -0,0 +1,63 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace channel { + // @ts-ignore + interface MessageReceiver { + /** + * Sends a message to this receiver. + *

If text formatting is not supported in the implementation + * it will be displayed as plain text.

+ */ + // @ts-ignore + sendMessage(message: org.spongepowered.api.text.Text): void; + /** + * Sends a message constructed from the {@link TextTemplate} to + * this receiver. + *

If text formatting is not supported in the implementation + * it will be displayed as plain text.

+ */ + // @ts-ignore + sendMessage(template: org.spongepowered.api.text.TextTemplate): void; + /** + * Sends a message constructed from the {@link TextTemplate} and + * {@code parameters} to this receiver. + *

If text formatting is not supported in the implementation + * it will be displayed as plain text.

+ */ + // @ts-ignore + sendMessage(template: org.spongepowered.api.text.TextTemplate, parameters: java.util.Map): void; + /** + * Sends the message(s) to this receiver. + *

If text formatting is not supported in the implementation + * it will be displayed as plain text.

+ */ + // @ts-ignore + sendMessages(messages: org.spongepowered.api.text.Text): void; + /** + * Sends the message(s) to this receiver. + *

If text formatting is not supported in the implementation + * it will be displayed as plain text.

+ */ + // @ts-ignore + sendMessages(messages: java.lang.Iterable): void; + /** + * Return the message channel that messages from this source should be sent + * to. + */ + // @ts-ignore + getMessageChannel(): org.spongepowered.api.text.channel.MessageChannel; + /** + * Sets the message channel that messages sent by this source should be sent + * to. + */ + // @ts-ignore + setMessageChannel(channel: org.spongepowered.api.text.channel.MessageChannel): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.MutableMessageChannel.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.MutableMessageChannel.d.ts new file mode 100644 index 00000000..ed89d2f4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.MutableMessageChannel.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace channel { + // @ts-ignore + interface MutableMessageChannel extends org.spongepowered.api.text.channel.MessageChannel { + /** + * Adds a member to this channel. + */ + // @ts-ignore + addMember(member: org.spongepowered.api.text.channel.MessageReceiver): boolean; + /** + * Removes a member from this channel. + */ + // @ts-ignore + removeMember(member: org.spongepowered.api.text.channel.MessageReceiver): boolean; + /** + * Removes all of the members from this channel. + */ + // @ts-ignore + clearMembers(): void; + // @ts-ignore + asMutable(): org.spongepowered.api.text.channel.MutableMessageChannel; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.impl.DelegateMessageChannel.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.impl.DelegateMessageChannel.d.ts new file mode 100644 index 00000000..cf868b84 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.impl.DelegateMessageChannel.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace channel { + namespace impl { + // @ts-ignore + class DelegateMessageChannel extends java.lang.Object implements org.spongepowered.api.text.channel.MessageChannel { + /** + * Creates a delegate {@link MessageChannel} that delegates all functions + * to the delegated message channel. + */ + // @ts-ignore + constructor(delegate: org.spongepowered.api.text.channel.MessageChannel) + // @ts-ignore + protected delegate: org.spongepowered.api.text.channel.MessageChannel; + // @ts-ignore + public transformMessage(sender: java.lang.Object, recipient: org.spongepowered.api.text.channel.MessageReceiver, original: org.spongepowered.api.text.Text, type: org.spongepowered.api.text.chat.ChatType): java.util.Optional; + // @ts-ignore + public getMembers(): java.util.Collection; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.impl.DelegateMutableMessageChannel.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.impl.DelegateMutableMessageChannel.d.ts new file mode 100644 index 00000000..5a181f14 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.impl.DelegateMutableMessageChannel.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace channel { + namespace impl { + // @ts-ignore + class DelegateMutableMessageChannel extends org.spongepowered.api.text.channel.AbstractMutableMessageChannel { + /** + * Constructs a delegate mutable message channel. + *

The members from the provided channel are copied into our + * own local collection.

+ */ + // @ts-ignore + constructor(delegate: org.spongepowered.api.text.channel.MessageChannel) + // @ts-ignore + protected delegate: org.spongepowered.api.text.channel.MessageChannel; + // @ts-ignore + public transformMessage(sender: java.lang.Object, recipient: org.spongepowered.api.text.channel.MessageReceiver, original: org.spongepowered.api.text.Text, type: org.spongepowered.api.text.chat.ChatType): java.util.Optional; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.impl.SimpleMutableMessageChannel.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.impl.SimpleMutableMessageChannel.d.ts new file mode 100644 index 00000000..ddc9fbf9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.impl.SimpleMutableMessageChannel.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace channel { + namespace impl { + // @ts-ignore + class SimpleMutableMessageChannel extends org.spongepowered.api.text.channel.AbstractMutableMessageChannel { + /** + * Creates a new mutable {@link MessageChannel}. + */ + // @ts-ignore + constructor() + /** + * Creates a new mutable {@link MessageChannel} with the provided + * {@link Collection} of {@link MessageReceiver}s. + */ + // @ts-ignore + constructor(members: java.util.Collection) + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.type.CombinedMessageChannel.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.type.CombinedMessageChannel.d.ts new file mode 100644 index 00000000..5db2f64b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.type.CombinedMessageChannel.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace channel { + namespace type { + // @ts-ignore + class CombinedMessageChannel extends java.lang.Object implements org.spongepowered.api.text.channel.MessageChannel { + /** + * Creates a new combined message channel of the provided + * {@link MessageChannel}s. + */ + // @ts-ignore + constructor(channels: org.spongepowered.api.text.channel.MessageChannel) + /** + * Creates a new combined message channel of the provided {@link Collection} + * of {@link MessageChannel}s. + */ + // @ts-ignore + constructor(channels: java.util.Collection) + // @ts-ignore + protected channels: java.util.Collection; + // @ts-ignore + public transformMessage(sender: java.lang.Object, recipient: org.spongepowered.api.text.channel.MessageReceiver, original: org.spongepowered.api.text.Text, type: org.spongepowered.api.text.chat.ChatType): java.util.Optional; + // @ts-ignore + public getMembers(): java.util.Collection; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.type.FixedMessageChannel.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.type.FixedMessageChannel.d.ts new file mode 100644 index 00000000..8a2979e7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.type.FixedMessageChannel.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace channel { + namespace type { + // @ts-ignore + class FixedMessageChannel extends java.lang.Object implements org.spongepowered.api.text.channel.MessageChannel { + /** + * Creates an unmodifiable {@link MessageChannel} with the + * provided {@link MessageReceiver}s. + */ + // @ts-ignore + constructor(recipients: org.spongepowered.api.text.channel.MessageReceiver) + /** + * Creates an unmodifiable {@link MessageChannel} with the provided + * {@link Collection} of {@link MessageReceiver}s. + */ + // @ts-ignore + constructor(provided: java.util.Collection) + // @ts-ignore + protected recipients: java.util.Set; + // @ts-ignore + public getMembers(): java.util.Collection; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.type.PermissionMessageChannel.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.type.PermissionMessageChannel.d.ts new file mode 100644 index 00000000..172ab337 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.type.PermissionMessageChannel.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace channel { + namespace type { + // @ts-ignore + class PermissionMessageChannel extends java.lang.Object implements org.spongepowered.api.text.channel.MessageChannel { + /** + * Creates a new {@link MessageChannel} with the provided {@link String permission} + * required to be considered a "target" {@link MessageReceiver}. + */ + // @ts-ignore + constructor(permission: string) + // @ts-ignore + protected permission: string; + /** + * Gets the {@link String} permission required to be included in this + * {@link MessageChannel}. + */ + // @ts-ignore + public getPermission(): string; + // @ts-ignore + public getMembers(): java.util.Collection; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.type.WorldMessageChannel.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.type.WorldMessageChannel.d.ts new file mode 100644 index 00000000..32329bdd --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.channel.type.WorldMessageChannel.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace channel { + namespace type { + // @ts-ignore + class WorldMessageChannel extends java.lang.Object implements org.spongepowered.api.text.channel.MessageChannel { + /** + * Creates a new {@link MessageChannel channel} specific to the provided + * {@link World world}. + */ + // @ts-ignore + constructor(world: org.spongepowered.api.world.World) + // @ts-ignore + public getMembers(): java.util.Collection; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.chat.ChatType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.chat.ChatType.d.ts new file mode 100644 index 00000000..017e865b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.chat.ChatType.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace chat { + // @ts-ignore + interface ChatType extends org.spongepowered.api.CatalogType { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.chat.ChatTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.chat.ChatTypes.d.ts new file mode 100644 index 00000000..62ef470c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.chat.ChatTypes.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace chat { + // @ts-ignore + class ChatTypes extends java.lang.Object { + // @ts-ignore + public static ACTION_BAR: org.spongepowered.api.text.chat.ChatType; + // @ts-ignore + public static CHAT: org.spongepowered.api.text.chat.ChatType; + // @ts-ignore + public static SYSTEM: org.spongepowered.api.text.chat.ChatType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.chat.ChatVisibilities.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.chat.ChatVisibilities.d.ts new file mode 100644 index 00000000..0aa8c831 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.chat.ChatVisibilities.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace chat { + // @ts-ignore + class ChatVisibilities extends java.lang.Object { + // @ts-ignore + public static FULL: org.spongepowered.api.text.chat.ChatVisibility; + // @ts-ignore + public static HIDDEN: org.spongepowered.api.text.chat.ChatVisibility; + // @ts-ignore + public static SYSTEM: org.spongepowered.api.text.chat.ChatVisibility; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.chat.ChatVisibility.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.chat.ChatVisibility.d.ts new file mode 100644 index 00000000..e4c9cd10 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.chat.ChatVisibility.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace chat { + // @ts-ignore + interface ChatVisibility extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + /** + * Tests whether the given chat type will be visible to a player's chat. + */ + // @ts-ignore + isVisible(chatType: org.spongepowered.api.text.chat.ChatType): boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.format.TextColor.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.format.TextColor.d.ts new file mode 100644 index 00000000..7d896de2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.format.TextColor.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace format { + // @ts-ignore + interface TextColor extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.TextElement { + /** + * Returns the corresponding {@link Color} for this {@link TextColor}. + */ + // @ts-ignore + getColor(): org.spongepowered.api.util.Color; + // @ts-ignore + applyTo(builder: org.spongepowered.api.text.Text.Builder): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.format.TextColors.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.format.TextColors.d.ts new file mode 100644 index 00000000..befe809e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.format.TextColors.d.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace format { + // @ts-ignore + class TextColors extends java.lang.Object { + // @ts-ignore + public static NONE: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static AQUA: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static BLACK: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static BLUE: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static DARK_AQUA: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static DARK_BLUE: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static DARK_GRAY: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static DARK_GREEN: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static DARK_PURPLE: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static DARK_RED: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static GOLD: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static GRAY: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static GREEN: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static LIGHT_PURPLE: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static RED: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static RESET: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static WHITE: org.spongepowered.api.text.format.TextColor; + // @ts-ignore + public static YELLOW: org.spongepowered.api.text.format.TextColor; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.format.TextFormat.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.format.TextFormat.d.ts new file mode 100644 index 00000000..59c0461e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.format.TextFormat.d.ts @@ -0,0 +1,80 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace format { + // @ts-ignore + class TextFormat extends java.lang.Object implements org.spongepowered.api.text.TextElement { + // @ts-ignore + public static NONE: org.spongepowered.api.text.format.TextFormat; + /** + * Gets the {@link TextFormat} with the default style and color. + */ + // @ts-ignore + public static of(): org.spongepowered.api.text.format.TextFormat; + /** + * Constructs a new {@link TextFormat} with the specific style. + */ + // @ts-ignore + public static of(style: org.spongepowered.api.text.format.TextStyle): org.spongepowered.api.text.format.TextFormat; + /** + * Constructs a new {@link TextFormat} with the specific color. + */ + // @ts-ignore + public static of(color: org.spongepowered.api.text.format.TextColor): org.spongepowered.api.text.format.TextFormat; + /** + * Constructs a new {@link TextFormat} with the specific color and style. + */ + // @ts-ignore + public static of(color: org.spongepowered.api.text.format.TextColor, style: org.spongepowered.api.text.format.TextStyle): org.spongepowered.api.text.format.TextFormat; + /** + * Returns the {@link TextColor} in this format. + */ + // @ts-ignore + public getColor(): org.spongepowered.api.text.format.TextColor; + /** + * Returns the {@link TextStyle} in this format. + */ + // @ts-ignore + public getStyle(): org.spongepowered.api.text.format.TextStyle; + /** + * Returns a new {@link TextFormat} with the given color. + */ + // @ts-ignore + public color(color: org.spongepowered.api.text.format.TextColor): org.spongepowered.api.text.format.TextFormat; + /** + * Returns a new {@link TextFormat} with the given style. + */ + // @ts-ignore + public style(style: org.spongepowered.api.text.format.TextStyle): org.spongepowered.api.text.format.TextFormat; + /** + * Returns a new {@link TextFormat} that combines this and the given format. + * The given format takes higher priority than this one. Due to this the + * color will only fallback to this one if the given format's color is + * {@link TextColors#NONE}. If the given format's color is + * {@link TextColors#RESET} then {@link TextColors#NONE} will be used. + * Styles are combined using {@link TextStyle#and(TextStyle...)}. + */ + // @ts-ignore + public merge(format: org.spongepowered.api.text.format.TextFormat): org.spongepowered.api.text.format.TextFormat; + /** + * Returns whether this {@link TextFormat} has no color and format + * specified. + */ + // @ts-ignore + public isEmpty(): boolean; + // @ts-ignore + public applyTo(builder: org.spongepowered.api.text.Text.Builder): void; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.format.TextStyle.Base.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.format.TextStyle.Base.d.ts new file mode 100644 index 00000000..2f42072a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.format.TextStyle.Base.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace format { + namespace TextStyle { + // @ts-ignore + abstract class Base extends org.spongepowered.api.text.format.TextStyle implements org.spongepowered.api.CatalogType { + /** + * Constructs a new {@link Base}. + */ + // @ts-ignore + constructor(bold: java.lang.Boolean, italic: java.lang.Boolean, underline: java.lang.Boolean, strikethrough: java.lang.Boolean, obfuscated: java.lang.Boolean) + // @ts-ignore + public isComposite(): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.format.TextStyle.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.format.TextStyle.d.ts new file mode 100644 index 00000000..0241221e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.format.TextStyle.d.ts @@ -0,0 +1,120 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace format { + // @ts-ignore + class TextStyle extends java.lang.Object implements org.spongepowered.api.text.TextElement { + /** + * Constructs a new {@link TextStyle}. + */ + // @ts-ignore + constructor(bold: java.lang.Boolean, italic: java.lang.Boolean, underline: java.lang.Boolean, strikethrough: java.lang.Boolean, obfuscated: java.lang.Boolean) + /** + * Returns whether this {@link TextStyle} is a composite of multiple text + * styles. + */ + // @ts-ignore + public isComposite(): boolean; + /** + * Returns whether this {@link TextStyle} has no set properties. + */ + // @ts-ignore + public isEmpty(): boolean; + /** + * Returns a new {@link TextStyle} with the bold property changed. + */ + // @ts-ignore + public bold(bold: java.lang.Boolean): org.spongepowered.api.text.format.TextStyle; + /** + * Returns a new {@link TextStyle} with the italic property changed. + */ + // @ts-ignore + public italic(italic: java.lang.Boolean): org.spongepowered.api.text.format.TextStyle; + /** + * Returns a new {@link TextStyle} with the underline property changed. + */ + // @ts-ignore + public underline(underline: java.lang.Boolean): org.spongepowered.api.text.format.TextStyle; + /** + * Returns a new {@link TextStyle} with the strikethrough property changed. + */ + // @ts-ignore + public strikethrough(strikethrough: java.lang.Boolean): org.spongepowered.api.text.format.TextStyle; + /** + * Returns a new {@link TextStyle} with the obfuscated property changed. + */ + // @ts-ignore + public obfuscated(obfuscated: java.lang.Boolean): org.spongepowered.api.text.format.TextStyle; + /** + * Checks for whether text where this style is applied is bolded. + */ + // @ts-ignore + public isBold(): java.util.Optional; + /** + * Checks for whether text where this style is applied is italicized. + */ + // @ts-ignore + public isItalic(): java.util.Optional; + /** + * Checks for whether text where this style is applied has an underline. + */ + // @ts-ignore + public hasUnderline(): java.util.Optional; + /** + * Checks for whether text where this style is applied has a strikethrough. + */ + // @ts-ignore + public hasStrikethrough(): java.util.Optional; + /** + * Checks for whether text where this style is obfuscated. + */ + // @ts-ignore + public isObfuscated(): java.util.Optional; + /** + * Returns whether the given {@link TextStyle} is contained in this + * {@link TextStyle}. + *

For example, a {@link TextStyle} with {@code bold: true, italic: + * true}} would return {@code true} for contains( + * {@link TextStyles#BOLD}) and contains( + * {@link TextStyles#ITALIC}).

+ *

If the specified {@link TextStyle} is a composite of multiple styles + * it returns {@code true} if this style has at least all of the properties + * set in the specified style.

+ */ + // @ts-ignore + public contains(styles: org.spongepowered.api.text.format.TextStyle): boolean; + /** + * Negates this {@link TextStyle}. This is useful for undoing text styles + * that are inherited from parent messages. + */ + // @ts-ignore + public negate(): org.spongepowered.api.text.format.TextStyle; + /** + * Composes this {@link TextStyle} with the specified text styles. + */ + // @ts-ignore + public and(styles: org.spongepowered.api.text.format.TextStyle): org.spongepowered.api.text.format.TextStyle; + /** + * Composes this {@link TextStyle} with the passed in TextStyles, but + * negates them before composition. This is the same as negating all the + * passed in {@link TextStyle} and then using the {@link #and(TextStyle...)} + * method. + */ + // @ts-ignore + public andNot(styles: org.spongepowered.api.text.format.TextStyle): org.spongepowered.api.text.format.TextStyle; + // @ts-ignore + public applyTo(builder: org.spongepowered.api.text.Text.Builder): void; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.format.TextStyles.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.format.TextStyles.d.ts new file mode 100644 index 00000000..149f38b9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.format.TextStyles.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace format { + // @ts-ignore + class TextStyles extends java.lang.Object { + // @ts-ignore + public static NONE: org.spongepowered.api.text.format.TextStyle; + // @ts-ignore + public static OBFUSCATED: org.spongepowered.api.text.format.TextStyle.Base; + // @ts-ignore + public static BOLD: org.spongepowered.api.text.format.TextStyle.Base; + // @ts-ignore + public static STRIKETHROUGH: org.spongepowered.api.text.format.TextStyle.Base; + // @ts-ignore + public static UNDERLINE: org.spongepowered.api.text.format.TextStyle.Base; + // @ts-ignore + public static ITALIC: org.spongepowered.api.text.format.TextStyle.Base; + // @ts-ignore + public static RESET: org.spongepowered.api.text.format.TextStyle.Base; + /** + * Returns an empty {@link TextStyle}. + */ + // @ts-ignore + public static of(): org.spongepowered.api.text.format.TextStyle; + /** + * Constructs a composite text style from the specified styles. This will + * result in the same as calling {@link TextStyle#and(TextStyle...)} on all + * of the text styles. + */ + // @ts-ignore + public static of(styles: org.spongepowered.api.text.format.TextStyle): org.spongepowered.api.text.format.TextStyle; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.Argument.Invertible.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.Argument.Invertible.d.ts new file mode 100644 index 00000000..e56accfa --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.Argument.Invertible.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace selector { + namespace Argument { + // @ts-ignore + interface Invertible extends org.spongepowered.api.text.selector.Argument { + /** + * Returns whether this {@link Argument} is inverted and will select all + * targets not matching the filter. + */ + // @ts-ignore + isInverted(): boolean; + /** + * Inverts this {@link Argument.Invertible} argument and returns the new + * {@link Argument}. The new argument will select all targets this + * argument didn't select. + */ + // @ts-ignore + invert(): org.spongepowered.api.text.selector.Argument.Invertible; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.Argument.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.Argument.d.ts new file mode 100644 index 00000000..3d293f7c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.Argument.d.ts @@ -0,0 +1,55 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace selector { + // @ts-ignore + interface Argument { + /** + * Creates a new {@link Argument} using the specified type and value. + *

If the type is invertible, the {@link Argument} will not be + * inverted.

+ */ + // @ts-ignore + create(type: org.spongepowered.api.text.selector.ArgumentType, value: java.lang.Object): org.spongepowered.api.text.selector.Argument; + /** + * Creates a new {@link Argument.Invertible} using the specified type and + * value. The created {@link Argument} will be inverted based on the given + * parameter. + */ + // @ts-ignore + create(type: org.spongepowered.api.text.selector.ArgumentType.Invertible, value: java.lang.Object, inverted: boolean): org.spongepowered.api.text.selector.Argument.Invertible; + /** + * Creates a new set of {@link Argument}s using the specified type and + * value. + */ + // @ts-ignore + createSet(type: org.spongepowered.api.text.selector.ArgumentHolder, value: java.lang.Object): java.util.Set; + /** + * Parses an {@link Argument} from the given argument string. + *

In Vanilla, it should be formatted like {@code key=value}.

+ */ + // @ts-ignore + parse(argument: string): org.spongepowered.api.text.selector.Argument; + /** + * Returns the type of this {@link Argument}. + */ + // @ts-ignore + getType(): org.spongepowered.api.text.selector.ArgumentType; + /** + * Returns the value of this {@link Argument}. + */ + // @ts-ignore + getValue(): java.lang.Object; + /** + * Converts this {@link Argument} to a valid argument string. + */ + // @ts-ignore + toPlain(): string; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.ArgumentHolder.Limit.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.ArgumentHolder.Limit.d.ts new file mode 100644 index 00000000..70eea5d6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.ArgumentHolder.Limit.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace selector { + namespace ArgumentHolder { + // @ts-ignore + interface Limit extends org.spongepowered.api.text.selector.ArgumentHolder { + /** + * Returns the minimum object of this {@link ArgumentHolder.Limit}. + */ + // @ts-ignore + minimum(): org.spongepowered.api.text.selector.ArgumentHolder; + /** + * Returns the maximum object of this {@link ArgumentHolder.Limit}. + */ + // @ts-ignore + maximum(): org.spongepowered.api.text.selector.ArgumentHolder; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.ArgumentHolder.Vector3.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.ArgumentHolder.Vector3.d.ts new file mode 100644 index 00000000..b5d385f2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.ArgumentHolder.Vector3.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace selector { + namespace ArgumentHolder { + // @ts-ignore + interface Vector3 extends org.spongepowered.api.text.selector.ArgumentHolder { + /** + * Gets the {@link ArgumentType} for the x coordinate of this + * {@link ArgumentHolder.Vector3}. + */ + // @ts-ignore + x(): org.spongepowered.api.text.selector.ArgumentType; + /** + * Gets the {@link ArgumentType} for the y coordinate of this + * {@link ArgumentHolder.Vector3}. + */ + // @ts-ignore + y(): org.spongepowered.api.text.selector.ArgumentType; + /** + * Gets the {@link ArgumentType} for the z coordinate of this + * {@link ArgumentHolder.Vector3}. + */ + // @ts-ignore + z(): org.spongepowered.api.text.selector.ArgumentType; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.ArgumentHolder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.ArgumentHolder.d.ts new file mode 100644 index 00000000..4b7f8f7d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.ArgumentHolder.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace selector { + // @ts-ignore + interface ArgumentHolder { + /** + * Returns the size of the Set from {@link #getTypes()}. + */ + // @ts-ignore + getCount(): number; + /** + * Returns a set containing all the {@link ArgumentHolder}s this + * {@link ArgumentHolder} holds. + */ + // @ts-ignore + getTypes(): java.util.Set; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.ArgumentType.Invertible.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.ArgumentType.Invertible.d.ts new file mode 100644 index 00000000..7033f987 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.ArgumentType.Invertible.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace selector { + namespace ArgumentType { + // @ts-ignore + interface Invertible extends org.spongepowered.api.text.selector.ArgumentType { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.ArgumentType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.ArgumentType.d.ts new file mode 100644 index 00000000..fe422e68 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.ArgumentType.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace selector { + // @ts-ignore + interface ArgumentType extends org.spongepowered.api.text.selector.ArgumentHolder { + /** + * Returns the key associated with this {@link ArgumentType}. + */ + // @ts-ignore + getKey(): string; + /** + * Returns 1. + */ + // @ts-ignore + getCount(): number; + /** + * Returns a set containing this {@link ArgumentType}. + */ + // @ts-ignore + getTypes(): java.util.Set; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.ArgumentTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.ArgumentTypes.d.ts new file mode 100644 index 00000000..44475929 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.ArgumentTypes.d.ts @@ -0,0 +1,60 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace selector { + // @ts-ignore + class ArgumentTypes extends java.lang.Object { + // @ts-ignore + public static POSITION: org.spongepowered.api.text.selector.ArgumentHolder.Vector3; + // @ts-ignore + public static RADIUS: org.spongepowered.api.text.selector.ArgumentHolder.Limit; + // @ts-ignore + public static GAME_MODE: org.spongepowered.api.text.selector.ArgumentType; + // @ts-ignore + public static COUNT: org.spongepowered.api.text.selector.ArgumentType; + // @ts-ignore + public static LEVEL: org.spongepowered.api.text.selector.ArgumentHolder.Limit; + // @ts-ignore + public static TEAM: org.spongepowered.api.text.selector.ArgumentType.Invertible; + // @ts-ignore + public static NAME: org.spongepowered.api.text.selector.ArgumentType.Invertible; + // @ts-ignore + public static DIMENSION: org.spongepowered.api.text.selector.ArgumentHolder.Vector3; + // @ts-ignore + public static ROTATION: org.spongepowered.api.text.selector.ArgumentHolder.Limit; + // @ts-ignore + public static ENTITY_TYPE: org.spongepowered.api.text.selector.ArgumentType.Invertible; + /** + * Creates a minimum and maximum {@link ArgumentType} filtering depending on + * the score of the specified objective. + */ + // @ts-ignore + public static score(name: string): org.spongepowered.api.text.selector.ArgumentHolder.Limit; + /** + * Gets the {@link ArgumentType} with the provided name. + */ + // @ts-ignore + public static valueOf(name: string): java.util.Optional; + /** + * Gets a {@link Collection} of all possible {@link ArgumentType}s. + */ + // @ts-ignore + public static values(): java.util.Collection; + /** + * Creates a custom {@link ArgumentType} with the specified key. + */ + // @ts-ignore + public static create(key: string): org.spongepowered.api.text.selector.ArgumentType; + /** + * Creates a custom {@link ArgumentType} with the specified key and value. + */ + // @ts-ignore + public static create(key: string, type: java.lang.Class): org.spongepowered.api.text.selector.ArgumentType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.Selector.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.Selector.Builder.d.ts new file mode 100644 index 00000000..1d55e647 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.Selector.Builder.d.ts @@ -0,0 +1,59 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace selector { + namespace Selector { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the type of this selector. + */ + // @ts-ignore + type(type: org.spongepowered.api.text.selector.SelectorType): org.spongepowered.api.text.selector.Selector.Builder; + /** + * Adds some arguments to this selector. + */ + // @ts-ignore + add(arguments: org.spongepowered.api.text.selector.Argument): org.spongepowered.api.text.selector.Selector.Builder; + /** + * Adds some arguments to this selector. + */ + // @ts-ignore + add(arguments: java.lang.Iterable): org.spongepowered.api.text.selector.Selector.Builder; + /** + * Adds a new {@link Argument} with the specified {@link ArgumentType} and + * value to this selector. + */ + // @ts-ignore + add(type: org.spongepowered.api.text.selector.ArgumentType, value: java.lang.Object): org.spongepowered.api.text.selector.Selector.Builder; + /** + * Removes the specified arguments, if they exist. + */ + // @ts-ignore + remove(arguments: org.spongepowered.api.text.selector.Argument): org.spongepowered.api.text.selector.Selector.Builder; + /** + * Removes the specified arguments, if they exist. + */ + // @ts-ignore + remove(arguments: java.lang.Iterable): org.spongepowered.api.text.selector.Selector.Builder; + /** + * Removes the arguments with the specified {@link ArgumentType}, if they + * exist. + */ + // @ts-ignore + remove(types: org.spongepowered.api.text.selector.ArgumentType): org.spongepowered.api.text.selector.Selector.Builder; + /** + * Builds an immutable instance of the current state of this selector + * builder. + */ + // @ts-ignore + build(): org.spongepowered.api.text.selector.Selector; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.Selector.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.Selector.d.ts new file mode 100644 index 00000000..cbe5a125 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.Selector.d.ts @@ -0,0 +1,135 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace selector { + // @ts-ignore + interface Selector { + /** + * Creates a {@link Selector.Builder}. + */ + // @ts-ignore + builder(): org.spongepowered.api.text.selector.Selector.Builder; + /** + * Parses a {@link Selector} from the given selector string. + */ + // @ts-ignore + parse(selector: string): org.spongepowered.api.text.selector.Selector; + /** + * Fetch completions for a selector command argument. + */ + // @ts-ignore + complete(selector: string): java.util.List; + /** + * Returns the type of this {@link Selector}. + */ + // @ts-ignore + getType(): org.spongepowered.api.text.selector.SelectorType; + /** + * Returns the argument value for the specified {@link ArgumentType} in this + * {@link Selector}. May be used for {@link ArgumentType.Invertible}, but + * the inverted state must be checked with + * {@link #isInverted(ArgumentType.Invertible)}. + */ + // @ts-ignore + get(type: org.spongepowered.api.text.selector.ArgumentType): java.util.Optional; + /** + * Returns the {@link Argument} for the specified {@link ArgumentType} in + * this {@link Selector}. + */ + // @ts-ignore + getArgument(type: org.spongepowered.api.text.selector.ArgumentType): java.util.Optional; + /** + * Returns the {@link Argument.Invertible} for the specified + * {@link ArgumentType.Invertible} in this {@link Selector}. + */ + // @ts-ignore + getArgument(type: org.spongepowered.api.text.selector.ArgumentType.Invertible): java.util.Optional; + /** + * Returns the arguments for this {@link Selector}. + */ + // @ts-ignore + getArguments(): java.util.List; + /** + * Checks for the presence of {@code type} in this {@link Selector}. + */ + // @ts-ignore + has(type: org.spongepowered.api.text.selector.ArgumentType): boolean; + /** + * Checks for the inversion state of {@code type} in this {@link Selector}. + */ + // @ts-ignore + isInverted(type: org.spongepowered.api.text.selector.ArgumentType.Invertible): boolean; + /** + * Resolves this {@link Selector} to a list of entities around the origin. + *

The returned set may be ordered based on distance from the origin + * (with the nearest first).

+ */ + // @ts-ignore + resolve(origin: org.spongepowered.api.command.CommandSource): java.util.Set; + /** + * Resolves this {@link Selector} to a list of entities around (0|0|0) in + * the given {@link Extent Extent(s)}. + *

The returned set may be ordered based on distance from the origin + * (with the nearest first).

+ */ + // @ts-ignore + resolve(extent: org.spongepowered.api.world.extent.Extent): java.util.Set; + /** + * Resolves this {@link Selector} to a list of entities around (0|0|0) in + * the given {@link Extent Extent(s)}. + *

The returned set may be ordered based on distance from the origin + * (with the nearest first).

+ */ + // @ts-ignore + resolve(extent: java.util.Collection): java.util.Set; + /** + * Resolves this {@link Selector} to a list of entities around the given + * {@link Location}. + *

The returned set may be ordered based on distance from the origin + * (with the nearest first).

+ */ + // @ts-ignore + resolve(location: org.spongepowered.api.world.Location): java.util.Set; + /** + * Resolves this {@link Selector} to a list of entities around the origin. + */ + // @ts-ignore + resolveForce(origin: org.spongepowered.api.command.CommandSource): java.util.Set; + /** + * Resolves this {@link Selector} to a list of entities around (0|0|0) in + * the given {@link Extent Extent(s)}. + */ + // @ts-ignore + resolveForce(extent: org.spongepowered.api.world.extent.Extent): java.util.Set; + /** + * Resolves this {@link Selector} to a list of entities around (0|0|0) in + * the given {@link Extent Extent(s)}. + */ + // @ts-ignore + resolveForce(extent: java.util.Collection): java.util.Set; + /** + * Resolves this {@link Selector} to a list of entities around the given + * {@link Location}. + */ + // @ts-ignore + resolveForce(location: org.spongepowered.api.world.Location): java.util.Set; + /** + * Converts this {@link Selector} to a valid selector string. + */ + // @ts-ignore + toPlain(): string; + /** + * Returns a new {@link org.spongepowered.api.text.selector.Selector.Builder} + * with the content of this selector. This can be used to edit an immutable + * {@link Selector} instance. + */ + // @ts-ignore + toBuilder(): org.spongepowered.api.text.selector.Selector.Builder; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.SelectorFactory.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.SelectorFactory.d.ts new file mode 100644 index 00000000..f0c9a536 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.SelectorFactory.d.ts @@ -0,0 +1,79 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace selector { + // @ts-ignore + interface SelectorFactory { + /** + * Creates a {@link Selector.Builder}. + */ + // @ts-ignore + createBuilder(): org.spongepowered.api.text.selector.Selector.Builder; + /** + * Parses a {@link Selector} from the given selector string. + */ + // @ts-ignore + parseRawSelector(selector: string): org.spongepowered.api.text.selector.Selector; + /** + * Creates a minimum and maximum {@link ArgumentType} filtering depending on + * the score of the specified objective. + */ + // @ts-ignore + createScoreArgumentType(name: string): org.spongepowered.api.text.selector.ArgumentHolder.Limit; + /** + * Gets the {@link ArgumentType} with the provided name. + */ + // @ts-ignore + getArgumentType(name: string): java.util.Optional; + /** + * Gets a {@link Collection} of all possible {@link ArgumentType}s. + */ + // @ts-ignore + getArgumentTypes(): java.util.Collection; + /** + * Creates a custom {@link ArgumentType} with the specified key. + */ + // @ts-ignore + createArgumentType(key: string): org.spongepowered.api.text.selector.ArgumentType; + /** + * Creates a custom {@link ArgumentType} with the specified key and value. + */ + // @ts-ignore + createArgumentType(key: string, type: java.lang.Class): org.spongepowered.api.text.selector.ArgumentType; + /** + * Creates a new {@link Argument} using the specified type and value. + */ + // @ts-ignore + createArgument(type: org.spongepowered.api.text.selector.ArgumentType, value: java.lang.Object): org.spongepowered.api.text.selector.Argument; + /** + * Creates a new {@link Argument.Invertible} using the specified type and + * value. The created {@link Argument} will be inverted based on the given + * parameter. + */ + // @ts-ignore + createArgument(type: org.spongepowered.api.text.selector.ArgumentType.Invertible, value: java.lang.Object, inverted: boolean): org.spongepowered.api.text.selector.Argument.Invertible; + /** + * Creates a new set of {@link Argument}s using the specified type and + * value. + */ + // @ts-ignore + createArguments(type: org.spongepowered.api.text.selector.ArgumentHolder, value: java.lang.Object): java.util.Set; + /** + * Parses an {@link Argument} from the given argument string. + *

In Vanilla, it should be formatted like {@code key=value}.

+ */ + // @ts-ignore + parseArgument(argument: string): org.spongepowered.api.text.selector.Argument; + /** + * Fetch completions for a selector command argument. + */ + // @ts-ignore + complete(selector: string): java.util.List; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.SelectorType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.SelectorType.d.ts new file mode 100644 index 00000000..2b9c89d4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.SelectorType.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace selector { + // @ts-ignore + interface SelectorType extends org.spongepowered.api.CatalogType { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.SelectorTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.SelectorTypes.d.ts new file mode 100644 index 00000000..26f6900a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.selector.SelectorTypes.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace selector { + // @ts-ignore + class SelectorTypes extends java.lang.Object { + // @ts-ignore + public static ALL_ENTITIES: org.spongepowered.api.text.selector.SelectorType; + // @ts-ignore + public static ALL_PLAYERS: org.spongepowered.api.text.selector.SelectorType; + // @ts-ignore + public static NEAREST_PLAYER: org.spongepowered.api.text.selector.SelectorType; + // @ts-ignore + public static RANDOM: org.spongepowered.api.text.selector.SelectorType; + // @ts-ignore + public static SOURCE: org.spongepowered.api.text.selector.SelectorType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.BookViewDataBuilder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.BookViewDataBuilder.d.ts new file mode 100644 index 00000000..4af7e482 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.BookViewDataBuilder.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace serializer { + // @ts-ignore + class BookViewDataBuilder extends org.spongepowered.api.data.persistence.AbstractDataBuilder { + /** + * Constructs a new {@link BookViewDataBuilder} to build + * {@link BookView}s. + */ + // @ts-ignore + constructor() + // @ts-ignore + protected buildContent(container: org.spongepowered.api.data.DataView): java.util.Optional; + // @ts-ignore + public deserialize(type: any, value: any /*ConfigurationNode*/): org.spongepowered.api.text.BookView; + // @ts-ignore + public serialize(type: any, bookView: org.spongepowered.api.text.BookView, value: any /*ConfigurationNode*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.FormattingCodeTextSerializer.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.FormattingCodeTextSerializer.d.ts new file mode 100644 index 00000000..3b0ba72c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.FormattingCodeTextSerializer.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace serializer { + // @ts-ignore + interface FormattingCodeTextSerializer extends org.spongepowered.api.text.serializer.SafeTextSerializer { + /** + * Returns the formatting character for this + * {@link FormattingCodeTextSerializer}. + */ + // @ts-ignore + getCharacter(): string; + /** + * Removes the color codes for this {@link FormattingCodeTextSerializer} + * from a string. + */ + // @ts-ignore + stripCodes(text: string): string; + /** + * Replaces the formatting codes in the specified string with a different + * specified character, e.g. {@code &cHello &eSponge! -> $cHello $eSponge!} + */ + // @ts-ignore + replaceCodes(text: string, to: string): string; + /** + * Replaces the formatting codes in the specified string with a different + * character for the specified {@link FormattingCodeTextSerializer}, + * e.g. {@code &cHello &eSponge! -> $cHello $eSponge!} + */ + // @ts-ignore + replaceCodes(text: string, serializer: org.spongepowered.api.text.serializer.FormattingCodeTextSerializer): string; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.SafeTextSerializer.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.SafeTextSerializer.d.ts new file mode 100644 index 00000000..7103b583 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.SafeTextSerializer.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace serializer { + // @ts-ignore + interface SafeTextSerializer extends org.spongepowered.api.text.serializer.TextSerializer { + // @ts-ignore + deserialize(input: string): org.spongepowered.api.text.Text; + // @ts-ignore + deserializeUnchecked(input: string): org.spongepowered.api.text.Text; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.TextConfigSerializer.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.TextConfigSerializer.d.ts new file mode 100644 index 00000000..7451a3e4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.TextConfigSerializer.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace serializer { + // @ts-ignore + class TextConfigSerializer extends org.spongepowered.api.data.persistence.AbstractDataBuilder { + /** + * Creates a new {@link TextConfigSerializer}. Normally this should not + * need to be created more than once. + */ + // @ts-ignore + constructor() + // @ts-ignore + public deserialize(type: any, value: any /*ConfigurationNode*/): org.spongepowered.api.text.Text; + // @ts-ignore + public serialize(type: any, obj: org.spongepowered.api.text.Text, value: any /*ConfigurationNode*/): void; + // @ts-ignore + protected buildContent(container: org.spongepowered.api.data.DataView): java.util.Optional; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.TextFormatConfigSerializer.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.TextFormatConfigSerializer.d.ts new file mode 100644 index 00000000..ed3d2e24 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.TextFormatConfigSerializer.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace serializer { + // @ts-ignore + class TextFormatConfigSerializer extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public deserialize(type: any, value: any /*ConfigurationNode*/): org.spongepowered.api.text.format.TextFormat; + // @ts-ignore + public serialize(type: any, obj: org.spongepowered.api.text.format.TextFormat, value: any /*ConfigurationNode*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.TextParseException.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.TextParseException.d.ts new file mode 100644 index 00000000..9df8e484 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.TextParseException.d.ts @@ -0,0 +1,35 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace serializer { + // @ts-ignore + class TextParseException extends java.lang.RuntimeException { + /** + * Constructs a new {@link TextParseException}. + */ + // @ts-ignore + constructor() + /** + * Constructs a new {@link TextParseException} with the specified message. + */ + // @ts-ignore + constructor(message: string) + /** + * Constructs a new {@link TextParseException} with the specified message + * and cause. + */ + // @ts-ignore + constructor(message: string, cause: java.lang.Throwable) + /** + * Constructs a new {@link TextParseException} with the specified cause. + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.TextSerializer.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.TextSerializer.d.ts new file mode 100644 index 00000000..cb275a8a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.TextSerializer.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace serializer { + // @ts-ignore + interface TextSerializer extends org.spongepowered.api.CatalogType { + /** + * Returns a string representation of the provided {@link Text} in a format + * that will be accepted by this {@link TextSerializer}'s + * {@link #deserialize(String)} method. + */ + // @ts-ignore + serialize(text: org.spongepowered.api.text.Text): string; + /** + * Returns a string representation of only the provided {@link Text} + * (without any children) in a format that will be accepted by this + * {@link TextSerializer}'s {@link #deserialize(String)} method. + */ + // @ts-ignore + serializeSingle(text: org.spongepowered.api.text.Text): string; + /** + * Returns a {@link Text} instance from an appropriately formatted string. + */ + // @ts-ignore + deserialize(input: string): org.spongepowered.api.text.Text; + /** + * Tries to return a {@link Text} instance from the provided input string. + * However, if the input string is not of a valid format, the returned + * {@link Text} object will be of the raw input, rather than throwing an + * exception. + */ + // @ts-ignore + deserializeUnchecked(input: string): org.spongepowered.api.text.Text; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.TextSerializerFactory.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.TextSerializerFactory.d.ts new file mode 100644 index 00000000..563e7107 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.TextSerializerFactory.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace serializer { + // @ts-ignore + interface TextSerializerFactory { + /** + * Returns a representation that accepts and outputs legacy color codes, + * using the provided legacy character. + */ + // @ts-ignore + getFormattingCodeTextSerializer(legacyChar: string): org.spongepowered.api.text.serializer.FormattingCodeTextSerializer; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.TextSerializers.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.TextSerializers.d.ts new file mode 100644 index 00000000..1a2e3dee --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.TextSerializers.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace serializer { + // @ts-ignore + class TextSerializers extends java.lang.Object { + // @ts-ignore + public static PLAIN: org.spongepowered.api.text.serializer.SafeTextSerializer; + // @ts-ignore + public static LEGACY_FORMATTING_CODE: org.spongepowered.api.text.serializer.FormattingCodeTextSerializer; + // @ts-ignore + public static FORMATTING_CODE: org.spongepowered.api.text.serializer.FormattingCodeTextSerializer; + // @ts-ignore + public static JSON: org.spongepowered.api.text.serializer.TextSerializer; + /** + * Returns a representation that accepts and outputs formatting codes, using + * the provided formatting character. + */ + // @ts-ignore + public static formattingCode(formattingChar: string): org.spongepowered.api.text.serializer.FormattingCodeTextSerializer; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.TextTemplateConfigSerializer.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.TextTemplateConfigSerializer.d.ts new file mode 100644 index 00000000..e7c78d0e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.serializer.TextTemplateConfigSerializer.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace serializer { + // @ts-ignore + class TextTemplateConfigSerializer extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public deserialize(type: any, value: any /*ConfigurationNode*/): org.spongepowered.api.text.TextTemplate; + // @ts-ignore + public serialize(type: any, obj: org.spongepowered.api.text.TextTemplate, value: any /*ConfigurationNode*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.title.Title.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.title.Title.Builder.d.ts new file mode 100644 index 00000000..d591a867 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.title.Title.Builder.d.ts @@ -0,0 +1,129 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace title { + namespace Title { + // @ts-ignore + class Builder extends java.lang.Object { + /** + * Returns the current title of this builder. + */ + // @ts-ignore + public getTitle(): java.util.Optional; + /** + * Sets the title to send to the player. + */ + // @ts-ignore + public title(title: org.spongepowered.api.text.Text): org.spongepowered.api.text.title.Title.Builder; + /** + * Returns the current subtitle of this builder. + */ + // @ts-ignore + public getSubtitle(): java.util.Optional; + /** + * Sets the subtitle to send to the player. + */ + // @ts-ignore + public subtitle(subtitle: org.spongepowered.api.text.Text): org.spongepowered.api.text.title.Title.Builder; + /** + * Returns the current action bar text of this builder. + */ + // @ts-ignore + public getActionBar(): java.util.Optional; + /** + * Sets the action bar text to send to the player. + */ + // @ts-ignore + public actionBar(actionBar: org.spongepowered.api.text.Text): org.spongepowered.api.text.title.Title.Builder; + /** + * Returns the current fade in effect time of the title. + */ + // @ts-ignore + public getFadeIn(): java.util.Optional; + /** + * Sets the duration in ticks of the fade in effect of the title. Once + * this period of time is over the title will stay for the amount of + * time specified in {@link #stay(Integer)}. + *

The default value for Vanilla is 20 (1 second).

+ */ + // @ts-ignore + public fadeIn(fadeIn: java.lang.Integer): org.spongepowered.api.text.title.Title.Builder; + /** + * Returns the current stay effect time of the title. + */ + // @ts-ignore + public getStay(): java.util.Optional; + /** + * Sets the duration in ticks how long the title should stay on the + * screen. Once this period of time is over the title will fade out + * using the duration specified in {@link #fadeOut(Integer)}. + *

The default value for Vanilla is 60 (3 seconds).

+ */ + // @ts-ignore + public stay(stay: java.lang.Integer): org.spongepowered.api.text.title.Title.Builder; + /** + * Returns the current fade out effect time of the title. + */ + // @ts-ignore + public getFadeOut(): java.util.Optional; + /** + * Sets the duration in ticks of the fade out effect of the title. + *

The default value for Vanilla is 20 (1 second).

+ */ + // @ts-ignore + public fadeOut(fadeOut: java.lang.Integer): org.spongepowered.api.text.title.Title.Builder; + /** + * Returns whether this builder is currently configured to clear. + */ + // @ts-ignore + public isClear(): boolean; + /** + * Removes the currently displayed title from the player's screen. This + * will keep the currently used display times and will only remove the + * title. + */ + // @ts-ignore + public clear(): org.spongepowered.api.text.title.Title.Builder; + /** + * Sets whether the the currently displayed title should be removed from + * the player's screen and will keep the currently used display times. + */ + // @ts-ignore + public clear(clear: boolean): org.spongepowered.api.text.title.Title.Builder; + /** + * Returns whether this builder is currently configured to reset. + */ + // @ts-ignore + public isReset(): boolean; + /** + * Removes the currently displayed title from the player's screen and + * set the configuration back to the default values. + */ + // @ts-ignore + public reset(): org.spongepowered.api.text.title.Title.Builder; + /** + * Sets whether the currently displayed title should be removed from the + * player's screen and the configuration set back to the default values. + */ + // @ts-ignore + public reset(reset: boolean): org.spongepowered.api.text.title.Title.Builder; + /** + * Builds an immutable instance of the current configuration. + */ + // @ts-ignore + public build(): org.spongepowered.api.text.title.Title; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.title.Title.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.title.Title.d.ts new file mode 100644 index 00000000..e234845f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.title.Title.d.ts @@ -0,0 +1,127 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace title { + // @ts-ignore + class Title extends java.lang.Object { + // @ts-ignore + public static EMPTY: org.spongepowered.api.text.title.Title; + // @ts-ignore + public static CLEAR: org.spongepowered.api.text.title.Title; + // @ts-ignore + public static RESET: org.spongepowered.api.text.title.Title; + /** + * Returns the title of this title configuration. + */ + // @ts-ignore + public getTitle(): java.util.Optional; + /** + * Returns the subtitle of this title configuration. + */ + // @ts-ignore + public getSubtitle(): java.util.Optional; + /** + * Returns the action bar text of this title configuration. + */ + // @ts-ignore + public getActionBar(): java.util.Optional; + /** + * Returns the specified time to fade in the title on the client. Once this + * period of time is over, the title will stay for the amount of time from + * {@link #getStay}. + *

The default value for Vanilla is 20 (1 second).

+ */ + // @ts-ignore + public getFadeIn(): java.util.Optional; + /** + * Returns the specified time how long the title should stay on the client. + * Once this period of time is over, the title will fade out using the + * duration specified from {@link #getFadeOut}. + *

The default value for Vanilla is 60 (3 second).

+ */ + // @ts-ignore + public getStay(): java.util.Optional; + /** + * Returns the specified time to fade out the title on the client. + *

The default value for Vanilla is 20 (1 second).

+ */ + // @ts-ignore + public getFadeOut(): java.util.Optional; + /** + * Returns whether this configuration is clearing the current title from the + * screen. + */ + // @ts-ignore + public isClear(): boolean; + /** + * Returns whether this configuration is clearing the current title from the + * screen and resetting the current configuration to the default values. + *

This is recommended when you want to make sure to display a single + * title.

+ */ + // @ts-ignore + public isReset(): boolean; + /** + * Creates a new {@link Builder} using the configuration of this instance. + */ + // @ts-ignore + public toBuilder(): org.spongepowered.api.text.title.Title.Builder; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + /** + * Returns a {@link Title} that will simply do nothing when it is sent to + * the client. + */ + // @ts-ignore + public static of(): org.spongepowered.api.text.title.Title; + /** + * Returns a {@link Title} that will display the given main title on the + * player's screen. + */ + // @ts-ignore + public static of(title: org.spongepowered.api.text.Text): org.spongepowered.api.text.title.Title; + /** + * Returns a {@link Title} that will display the given main and subtitle on + * the player's screen. + */ + // @ts-ignore + public static of(title: org.spongepowered.api.text.Text, subtitle: org.spongepowered.api.text.Text): org.spongepowered.api.text.title.Title; + /** + * Returns a {@link Title} that will clear the currently displayed + * {@link Title} from the player's screen. + */ + // @ts-ignore + public static clear(): org.spongepowered.api.text.title.Title; + /** + * Returns a {@link Title} that will reset the current title back to default + * values on the client. + */ + // @ts-ignore + public static reset(): org.spongepowered.api.text.title.Title; + /** + * Creates a new {@link Title} configuration builder that will reset the + * currently displayed Title on the client before displaying the new + * configured one. + */ + // @ts-ignore + public static builder(): org.spongepowered.api.text.title.Title.Builder; + /** + * Creates a new empty {@link Title} configuration builder. Unlike + * {@link #builder} this won't reset the current Title on the client before + * displaying the current one. This has less use cases but should be used if + * just the previously sent Title should be updated. + */ + // @ts-ignore + public static update(): org.spongepowered.api.text.title.Title.Builder; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.transform.DynamicPartitionedTextFormatter.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.transform.DynamicPartitionedTextFormatter.d.ts new file mode 100644 index 00000000..5cef5515 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.transform.DynamicPartitionedTextFormatter.d.ts @@ -0,0 +1,54 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace transform { + // @ts-ignore + class DynamicPartitionedTextFormatter extends java.lang.Object implements org.spongepowered.api.text.transform.PartitionedTextFormatter { + /** + * Creates a new {@link DynamicPartitionedTextFormatter}. + */ + // @ts-ignore + constructor(initialSize: number) + /** + * creates a new partitioned text formatter. + */ + // @ts-ignore + constructor() + // @ts-ignore + protected partitions: java.util.List; + // @ts-ignore + public getAll(): any; + // @ts-ignore + public get(i: number): org.spongepowered.api.text.transform.SimpleTextFormatter; + // @ts-ignore + public set(i: number, element: org.spongepowered.api.text.transform.SimpleTextFormatter): org.spongepowered.api.text.transform.SimpleTextFormatter; + // @ts-ignore + public size(): number; + // @ts-ignore + public isEmpty(): boolean; + // @ts-ignore + public contains(element: org.spongepowered.api.text.transform.SimpleTextFormatter): boolean; + // @ts-ignore + public clear(): void; + // @ts-ignore + public add(element: org.spongepowered.api.text.transform.SimpleTextFormatter): boolean; + // @ts-ignore + public add(elements: java.util.Collection): boolean; + // @ts-ignore + public insert(i: number, element: org.spongepowered.api.text.transform.SimpleTextFormatter): void; + // @ts-ignore + public insert(i: number, elements: java.util.Collection): void; + // @ts-ignore + public remove(element: org.spongepowered.api.text.transform.SimpleTextFormatter): boolean; + // @ts-ignore + public remove(elements: java.util.Collection): boolean; + // @ts-ignore + public retain(elements: java.util.Collection): boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.transform.FixedPartitionedTextFormatter.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.transform.FixedPartitionedTextFormatter.d.ts new file mode 100644 index 00000000..db7c3dca --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.transform.FixedPartitionedTextFormatter.d.ts @@ -0,0 +1,60 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace transform { + // @ts-ignore + class FixedPartitionedTextFormatter extends java.lang.Object implements org.spongepowered.api.text.transform.PartitionedTextFormatter { + /** + * Creates a new {@link FixedPartitionedTextFormatter} with + * the provided size of partitions. + */ + // @ts-ignore + constructor(size: number) + /** + * Creates a new {@link FixedPartitionedTextFormatter} with + * the provided size of partitions. + */ + // @ts-ignore + constructor() + // @ts-ignore + public getAll(): any; + // @ts-ignore + public get(i: number): org.spongepowered.api.text.transform.SimpleTextFormatter; + // @ts-ignore + public set(i: number, element: org.spongepowered.api.text.transform.SimpleTextFormatter): org.spongepowered.api.text.transform.SimpleTextFormatter; + // @ts-ignore + public size(): number; + /** + * Returns true if each partition is empty. + */ + // @ts-ignore + public isEmpty(): boolean; + // @ts-ignore + public contains(element: org.spongepowered.api.text.transform.SimpleTextFormatter): boolean; + /** + * Clears each partition. Retains the actual partitions themselves. + */ + // @ts-ignore + public clear(): void; + // @ts-ignore + public add(element: org.spongepowered.api.text.transform.SimpleTextFormatter): boolean; + // @ts-ignore + public add(elements: java.util.Collection): boolean; + // @ts-ignore + public insert(i: number, element: org.spongepowered.api.text.transform.SimpleTextFormatter): void; + // @ts-ignore + public insert(i: number, elements: java.util.Collection): void; + // @ts-ignore + public remove(element: org.spongepowered.api.text.transform.SimpleTextFormatter): boolean; + // @ts-ignore + public remove(elements: java.util.Collection): boolean; + // @ts-ignore + public retain(elements: java.util.Collection): boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.transform.PartitionedTextFormatter.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.transform.PartitionedTextFormatter.d.ts new file mode 100644 index 00000000..3eabe78d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.transform.PartitionedTextFormatter.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace transform { + // @ts-ignore + interface PartitionedTextFormatter extends org.spongepowered.api.text.transform.TextFormatter { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.transform.SimpleTextFormatter.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.transform.SimpleTextFormatter.d.ts new file mode 100644 index 00000000..02aa4570 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.transform.SimpleTextFormatter.d.ts @@ -0,0 +1,55 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace transform { + // @ts-ignore + class SimpleTextFormatter extends java.lang.Object implements org.spongepowered.api.text.transform.TextFormatter { + /** + * Constructs a new {@link SimpleTextFormatter} with the specified amount + * of initial {@link TextTemplateApplier}s. + */ + // @ts-ignore + constructor(initialSize: number) + /** + * Constructs an empty text formatter. + */ + // @ts-ignore + constructor() + // @ts-ignore + protected parts: java.util.List; + // @ts-ignore + public getAll(): any; + // @ts-ignore + public get(i: number): org.spongepowered.api.text.transform.SimpleTextTemplateApplier; + // @ts-ignore + public set(i: number, element: org.spongepowered.api.text.transform.SimpleTextTemplateApplier): org.spongepowered.api.text.transform.SimpleTextTemplateApplier; + // @ts-ignore + public size(): number; + // @ts-ignore + public isEmpty(): boolean; + // @ts-ignore + public contains(element: org.spongepowered.api.text.transform.SimpleTextTemplateApplier): boolean; + // @ts-ignore + public clear(): void; + // @ts-ignore + public add(element: org.spongepowered.api.text.transform.SimpleTextTemplateApplier): boolean; + // @ts-ignore + public add(elements: java.util.Collection): boolean; + // @ts-ignore + public insert(i: number, element: org.spongepowered.api.text.transform.SimpleTextTemplateApplier): void; + // @ts-ignore + public insert(i: number, elements: java.util.Collection): void; + // @ts-ignore + public remove(element: org.spongepowered.api.text.transform.SimpleTextTemplateApplier): boolean; + // @ts-ignore + public remove(elements: java.util.Collection): boolean; + // @ts-ignore + public retain(elements: java.util.Collection): boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.transform.SimpleTextTemplateApplier.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.transform.SimpleTextTemplateApplier.d.ts new file mode 100644 index 00000000..0d58d83d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.transform.SimpleTextTemplateApplier.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace transform { + // @ts-ignore + class SimpleTextTemplateApplier extends java.lang.Object implements org.spongepowered.api.text.transform.TextTemplateApplier { + /** + * Creates a new {@link SimpleTextTemplateApplier} with the provided + * {@link TextTemplate}. + */ + // @ts-ignore + constructor(template: org.spongepowered.api.text.TextTemplate) + /** + * Creates a new {@link SimpleTextTemplateApplier} with an empty + * {@link TextTemplate}. + */ + // @ts-ignore + constructor() + // @ts-ignore + protected params: java.util.Map; + // @ts-ignore + protected template: org.spongepowered.api.text.TextTemplate; + // @ts-ignore + public getParameters(): any; + // @ts-ignore + public setParameter(key: string, value: org.spongepowered.api.text.TextElement): void; + // @ts-ignore + public getTemplate(): org.spongepowered.api.text.TextTemplate; + // @ts-ignore + public setTemplate(template: org.spongepowered.api.text.TextTemplate): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.transform.TextFormatter.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.transform.TextFormatter.d.ts new file mode 100644 index 00000000..3c5a87b8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.transform.TextFormatter.d.ts @@ -0,0 +1,166 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace transform { + // @ts-ignore + interface TextFormatter extends org.spongepowered.api.text.TextRepresentable { + /** + * Returns an {@link ImmutableList} of this formatter's elements. + */ + // @ts-ignore + getAll(): any; + /** + * Returns the element at the specified index. + */ + // @ts-ignore + get(i: number): org.spongepowered.api.text.TextRepresentable; + /** + * Returns the first element of the specified type after the specified + * index. + */ + // @ts-ignore + firstAfter(index: number, clazz: java.lang.Class): java.util.Optional; + /** + * Returns the first element of the specified type. + */ + // @ts-ignore + first(clazz: java.lang.Class): java.util.Optional; + /** + * Applies the specified consumer to each element of the specified type + * after the specified index. + */ + // @ts-ignore + forEachAfter(index: number, clazz: java.lang.Class, consumer: java.util.function$.Consumer): void; + /** + * Applies the specified consumer to each element of the specified type + * after the specified index. + */ + // @ts-ignore + forEach(clazz: java.lang.Class, consumer: java.util.function$.Consumer): void; + /** + * Replaces the element previously at the specified index with the + * specified element. + */ + // @ts-ignore + set(i: number, e: org.spongepowered.api.text.TextRepresentable): org.spongepowered.api.text.TextRepresentable; + /** + * Returns the amount of elements in this formatter. + */ + // @ts-ignore + size(): number; + /** + * Returns true if the formatter contains no elements. + */ + // @ts-ignore + isEmpty(): boolean; + /** + * Returns true if the specified element is in the formatter. + */ + // @ts-ignore + contains(e: org.spongepowered.api.text.TextRepresentable): boolean; + /** + * Clears all elements from this formatter. + */ + // @ts-ignore + clear(): void; + /** + * Adds the specified element to the end of this formatter. + */ + // @ts-ignore + add(element: org.spongepowered.api.text.TextRepresentable): boolean; + /** + * Adds the specified elements to the end of this formatter. + */ + // @ts-ignore + add(elements: java.util.Collection): boolean; + /** + * Adds the specified elements to the end of this formatter. + */ + // @ts-ignore + add(elements: java.lang.Iterable): boolean; + /** + * Adds the specified elements to the end of this formatter. + */ + // @ts-ignore + add(elements: java.util.Iterator): boolean; + /** + * Inserts the specified element at the specified index within the + * formatter. + */ + // @ts-ignore + insert(i: number, element: org.spongepowered.api.text.TextRepresentable): void; + /** + * Inserts the specified elements at the specified index within the + * formatter. + */ + // @ts-ignore + insert(i: number, elements: java.util.Collection): void; + /** + * Inserts the specified elements at the specified index within the + * formatter. + */ + // @ts-ignore + insert(i: number, elements: java.lang.Iterable): void; + /** + * Inserts the specified elements at the specified index within the + * formatter. + */ + // @ts-ignore + insert(i: number, elements: java.util.Iterator): void; + /** + * Removes the specified element from the formatter. + */ + // @ts-ignore + remove(element: org.spongepowered.api.text.TextRepresentable): boolean; + /** + * Removes the specified elements from the formatter. + */ + // @ts-ignore + remove(elements: java.util.Collection): boolean; + /** + * Removes the specified elements from the formatter. + */ + // @ts-ignore + remove(elements: java.lang.Iterable): boolean; + /** + * Removes the specified elements from the formatter. + */ + // @ts-ignore + remove(elements: java.util.Iterator): boolean; + /** + * Removes all elements from the formatter except for these specified + * elements. + */ + // @ts-ignore + retain(elements: java.util.Collection): boolean; + /** + * Removes all elements from the formatter except for these specified + * elements. + */ + // @ts-ignore + retain(elements: java.lang.Iterable): boolean; + /** + * Removes all elements from the formatter except for these specified + * elements. + */ + // @ts-ignore + retain(elements: java.util.Iterator): boolean; + /** + * Builds the result {@link Text} for this formatter using the current + * configuration of each element. The result of each element is + * concatenated to an empty {@link Text} to yield the result. + */ + // @ts-ignore + format(): org.spongepowered.api.text.Text; + // @ts-ignore + iterator(): java.util.Iterator; + // @ts-ignore + toText(): org.spongepowered.api.text.Text; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.transform.TextTemplateApplier.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.transform.TextTemplateApplier.d.ts new file mode 100644 index 00000000..31fc7fe2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.transform.TextTemplateApplier.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace transform { + // @ts-ignore + interface TextTemplateApplier extends org.spongepowered.api.text.TextRepresentable { + /** + * Returns an {@link ImmutableList} of this applier's parameters. + */ + // @ts-ignore + getParameters(): any; + /** + * Returns the current value of the parameter with the specified key. + */ + // @ts-ignore + getParameter(key: string): org.spongepowered.api.text.TextElement; + /** + * Sets the value of the specified parameter key within this applier. + */ + // @ts-ignore + setParameter(key: string, value: org.spongepowered.api.text.TextElement): void; + /** + * Returns the current {@link TextTemplate} for this applier. + */ + // @ts-ignore + getTemplate(): org.spongepowered.api.text.TextTemplate; + /** + * Sets the {@link TextTemplate} to use for this applier. + */ + // @ts-ignore + setTemplate(template: org.spongepowered.api.text.TextTemplate): void; + // @ts-ignore + toText(): org.spongepowered.api.text.Text; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.translation.FixedTranslation.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.translation.FixedTranslation.d.ts new file mode 100644 index 00000000..babe87a9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.translation.FixedTranslation.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace translation { + // @ts-ignore + class FixedTranslation extends java.lang.Object implements org.spongepowered.api.text.translation.Translation { + /** + * Create a new translation with an id and value that are the same. + */ + // @ts-ignore + constructor(value: string) + // @ts-ignore + public getId(): string; + // @ts-ignore + public get(locale: java.util.Locale): string; + // @ts-ignore + public get(locale: java.util.Locale, args: java.lang.Object): string; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.translation.ResourceBundleTranslation.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.translation.ResourceBundleTranslation.d.ts new file mode 100644 index 00000000..74b0e241 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.translation.ResourceBundleTranslation.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace translation { + // @ts-ignore + class ResourceBundleTranslation extends java.lang.Object implements org.spongepowered.api.text.translation.Translation { + /** + * Create a ResourceBundle-backed translation for the given key and bundle + * factory. + */ + // @ts-ignore + constructor(key: string, bundleFunction: java.util.function$.Function) + // @ts-ignore + public getId(): string; + // @ts-ignore + public get(locale: java.util.Locale): string; + // @ts-ignore + public get(locale: java.util.Locale, args: java.lang.Object): string; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.translation.Translatable.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.translation.Translatable.d.ts new file mode 100644 index 00000000..2bf7d956 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.translation.Translatable.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace translation { + // @ts-ignore + interface Translatable { + /** + * Returns the Translation that corresponds to this {@link Translatable}. + */ + // @ts-ignore + getTranslation(): org.spongepowered.api.text.translation.Translation; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.translation.Translation.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.translation.Translation.d.ts new file mode 100644 index 00000000..0a9d1e67 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.translation.Translation.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace translation { + // @ts-ignore + interface Translation { + /** + * Gets the identifier for this {@link Translation}. + */ + // @ts-ignore + getId(): string; + /** + * Gets the default translation without extra parameters. + */ + // @ts-ignore + get(): string; + /** + * Gets the default translation format with the specified parameters. + */ + // @ts-ignore + get(args: java.lang.Object): string; + /** + * Gets the translation without any parameters replaced. + */ + // @ts-ignore + get(locale: java.util.Locale): string; + /** + * Gets the translation format with the specified parameters. + */ + // @ts-ignore + get(locale: java.util.Locale, args: java.lang.Object): string; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.translation.locale.Locales.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.translation.locale.Locales.d.ts new file mode 100644 index 00000000..f4c2df23 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.translation.locale.Locales.d.ts @@ -0,0 +1,173 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace translation { + namespace locale { + // @ts-ignore + class Locales extends java.lang.Object { + // @ts-ignore + public static AF_ZA: java.util.Locale; + // @ts-ignore + public static AR_SA: java.util.Locale; + // @ts-ignore + public static AST_ES: java.util.Locale; + // @ts-ignore + public static AZ_AZ: java.util.Locale; + // @ts-ignore + public static BG_BG: java.util.Locale; + // @ts-ignore + public static CA_ES: java.util.Locale; + // @ts-ignore + public static CS_CZ: java.util.Locale; + // @ts-ignore + public static CY_GB: java.util.Locale; + // @ts-ignore + public static DA_DK: java.util.Locale; + // @ts-ignore + public static DE_DE: java.util.Locale; + // @ts-ignore + public static EL_GR: java.util.Locale; + // @ts-ignore + public static EN_AU: java.util.Locale; + // @ts-ignore + public static EN_CA: java.util.Locale; + // @ts-ignore + public static EN_GB: java.util.Locale; + // @ts-ignore + public static EN_PT: java.util.Locale; + // @ts-ignore + public static EN_US: java.util.Locale; + // @ts-ignore + public static EO_UY: java.util.Locale; + // @ts-ignore + public static ES_AR: java.util.Locale; + // @ts-ignore + public static ES_ES: java.util.Locale; + // @ts-ignore + public static ES_MX: java.util.Locale; + // @ts-ignore + public static ES_UY: java.util.Locale; + // @ts-ignore + public static ES_VE: java.util.Locale; + // @ts-ignore + public static ET_EE: java.util.Locale; + // @ts-ignore + public static EU_ES: java.util.Locale; + // @ts-ignore + public static FA_IR: java.util.Locale; + // @ts-ignore + public static FI_FI: java.util.Locale; + // @ts-ignore + public static FIL_PH: java.util.Locale; + // @ts-ignore + public static FR_CA: java.util.Locale; + // @ts-ignore + public static FR_FR: java.util.Locale; + // @ts-ignore + public static GA_IE: java.util.Locale; + // @ts-ignore + public static GL_ES: java.util.Locale; + // @ts-ignore + public static GV_IM: java.util.Locale; + // @ts-ignore + public static HE_IL: java.util.Locale; + // @ts-ignore + public static HI_IN: java.util.Locale; + // @ts-ignore + public static HR_HR: java.util.Locale; + // @ts-ignore + public static HU_HU: java.util.Locale; + // @ts-ignore + public static HY_AM: java.util.Locale; + // @ts-ignore + public static ID_ID: java.util.Locale; + // @ts-ignore + public static IS_IS: java.util.Locale; + // @ts-ignore + public static IT_IT: java.util.Locale; + // @ts-ignore + public static JA_JP: java.util.Locale; + // @ts-ignore + public static KA_GE: java.util.Locale; + // @ts-ignore + public static KO_KR: java.util.Locale; + // @ts-ignore + public static KW_GB: java.util.Locale; + // @ts-ignore + public static LA_LA: java.util.Locale; + // @ts-ignore + public static LB_LU: java.util.Locale; + // @ts-ignore + public static LT_LT: java.util.Locale; + // @ts-ignore + public static LV_LV: java.util.Locale; + // @ts-ignore + public static MI_NZ: java.util.Locale; + // @ts-ignore + public static MS_MY: java.util.Locale; + // @ts-ignore + public static MT_MT: java.util.Locale; + // @ts-ignore + public static NDS_DE: java.util.Locale; + // @ts-ignore + public static NL_NL: java.util.Locale; + // @ts-ignore + public static NN_NO: java.util.Locale; + // @ts-ignore + public static NO_NO: java.util.Locale; + // @ts-ignore + public static OC_FR: java.util.Locale; + // @ts-ignore + public static PL_PL: java.util.Locale; + // @ts-ignore + public static PT_BR: java.util.Locale; + // @ts-ignore + public static PT_PT: java.util.Locale; + // @ts-ignore + public static QYA_AA: java.util.Locale; + // @ts-ignore + public static RO_RO: java.util.Locale; + // @ts-ignore + public static RU_RU: java.util.Locale; + // @ts-ignore + public static SE_NO: java.util.Locale; + // @ts-ignore + public static SK_SK: java.util.Locale; + // @ts-ignore + public static SL_SI: java.util.Locale; + // @ts-ignore + public static SR_SP: java.util.Locale; + // @ts-ignore + public static SV_SE: java.util.Locale; + // @ts-ignore + public static TH_TH: java.util.Locale; + // @ts-ignore + public static TLH_AA: java.util.Locale; + // @ts-ignore + public static TR_TR: java.util.Locale; + // @ts-ignore + public static UK_UA: java.util.Locale; + // @ts-ignore + public static VAL_ES: java.util.Locale; + // @ts-ignore + public static VI_VN: java.util.Locale; + // @ts-ignore + public static ZH_CN: java.util.Locale; + // @ts-ignore + public static ZH_TW: java.util.Locale; + // @ts-ignore + public static DEFAULT: java.util.Locale; + /** + * Gets a locale for the specified locale code, e.g. {@code en_US}. + */ + // @ts-ignore + public static of(locale: string): java.util.Locale; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.text.translation.locale.NamedLocales.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.text.translation.locale.NamedLocales.d.ts new file mode 100644 index 00000000..971eb2d0 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.text.translation.locale.NamedLocales.d.ts @@ -0,0 +1,168 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace text { + namespace translation { + namespace locale { + // @ts-ignore + class NamedLocales extends java.lang.Object { + // @ts-ignore + public static DEFAULT: java.util.Locale; + // @ts-ignore + public static AFRIKAANS: java.util.Locale; + // @ts-ignore + public static ARABIC: java.util.Locale; + // @ts-ignore + public static ASTURIAN: java.util.Locale; + // @ts-ignore + public static AZERBAIJANI: java.util.Locale; + // @ts-ignore + public static BULGARIAN: java.util.Locale; + // @ts-ignore + public static CATALAN: java.util.Locale; + // @ts-ignore + public static CZECH: java.util.Locale; + // @ts-ignore + public static WELSH: java.util.Locale; + // @ts-ignore + public static DANISH: java.util.Locale; + // @ts-ignore + public static GERMAN: java.util.Locale; + // @ts-ignore + public static GREEK: java.util.Locale; + // @ts-ignore + public static AUSTRALIAN_ENGLISH: java.util.Locale; + // @ts-ignore + public static CANADIAN_ENGLISH: java.util.Locale; + // @ts-ignore + public static BRITISH_ENGLISH: java.util.Locale; + // @ts-ignore + public static PIRATE_ENGLISH: java.util.Locale; + // @ts-ignore + public static AMERICAN_ENGLISH: java.util.Locale; + // @ts-ignore + public static ESPERANTO: java.util.Locale; + // @ts-ignore + public static ARGENTINIAN_SPANISH: java.util.Locale; + // @ts-ignore + public static SPANISH: java.util.Locale; + // @ts-ignore + public static MEXICAN_SPANISH: java.util.Locale; + // @ts-ignore + public static URUGUAYAN_SPANISH: java.util.Locale; + // @ts-ignore + public static VENEZUELAN_SPANISH: java.util.Locale; + // @ts-ignore + public static ESTONIAN: java.util.Locale; + // @ts-ignore + public static BASQUE: java.util.Locale; + // @ts-ignore + public static PERSIAN: java.util.Locale; + // @ts-ignore + public static FINNISH: java.util.Locale; + // @ts-ignore + public static FILIPINO: java.util.Locale; + // @ts-ignore + public static CANADIAN_FRENCH: java.util.Locale; + // @ts-ignore + public static FRENCH: java.util.Locale; + // @ts-ignore + public static IRISH: java.util.Locale; + // @ts-ignore + public static GALICIAN: java.util.Locale; + // @ts-ignore + public static MANX: java.util.Locale; + // @ts-ignore + public static HEBREW: java.util.Locale; + // @ts-ignore + public static HINDI: java.util.Locale; + // @ts-ignore + public static CROATIAN: java.util.Locale; + // @ts-ignore + public static HUNGARIAN: java.util.Locale; + // @ts-ignore + public static ARMENIAN: java.util.Locale; + // @ts-ignore + public static INDONESIAN: java.util.Locale; + // @ts-ignore + public static ICELANDIC: java.util.Locale; + // @ts-ignore + public static ITALIAN: java.util.Locale; + // @ts-ignore + public static JAPANESE: java.util.Locale; + // @ts-ignore + public static GEORGIAN: java.util.Locale; + // @ts-ignore + public static KOREAN: java.util.Locale; + // @ts-ignore + public static CORNISH: java.util.Locale; + // @ts-ignore + public static LATIN: java.util.Locale; + // @ts-ignore + public static LUXEMBOURGISH: java.util.Locale; + // @ts-ignore + public static LITHUANIAN: java.util.Locale; + // @ts-ignore + public static LATVIAN: java.util.Locale; + // @ts-ignore + public static MAORI: java.util.Locale; + // @ts-ignore + public static MALAY: java.util.Locale; + // @ts-ignore + public static MALTESE: java.util.Locale; + // @ts-ignore + public static LOW_GERMAN: java.util.Locale; + // @ts-ignore + public static DUTCH: java.util.Locale; + // @ts-ignore + public static NORWEGIAN_NYNORSK: java.util.Locale; + // @ts-ignore + public static NORWEGIAN: java.util.Locale; + // @ts-ignore + public static OCCITAN: java.util.Locale; + // @ts-ignore + public static POLISH: java.util.Locale; + // @ts-ignore + public static BRAZILIAN_PORTUGUESE: java.util.Locale; + // @ts-ignore + public static PORTUGUESE: java.util.Locale; + // @ts-ignore + public static QUENYA: java.util.Locale; + // @ts-ignore + public static ROMANIAN: java.util.Locale; + // @ts-ignore + public static RUSSIAN: java.util.Locale; + // @ts-ignore + public static NORTHERN_SAMI: java.util.Locale; + // @ts-ignore + public static SLOVAK: java.util.Locale; + // @ts-ignore + public static SLOVENE: java.util.Locale; + // @ts-ignore + public static SERBIAN: java.util.Locale; + // @ts-ignore + public static SWEDISH: java.util.Locale; + // @ts-ignore + public static THAI: java.util.Locale; + // @ts-ignore + public static KLINGON: java.util.Locale; + // @ts-ignore + public static TURKISH: java.util.Locale; + // @ts-ignore + public static UKRAINIAN: java.util.Locale; + // @ts-ignore + public static VALENCIAN: java.util.Locale; + // @ts-ignore + public static VIETNAMESE: java.util.Locale; + // @ts-ignore + public static SIMPLIFIED_CHINESE: java.util.Locale; + // @ts-ignore + public static TRADITIONAL_CHINESE: java.util.Locale; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.AABB.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.AABB.d.ts new file mode 100644 index 00000000..6980f535 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.AABB.d.ts @@ -0,0 +1,118 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class AABB extends java.lang.Object { + /** + * Constructs a new bounding box from two opposite corners. + * Fails the resulting box would be degenerate (a dimension is 0). + */ + // @ts-ignore + constructor(firstCorner: any /*Vector3i*/, secondCorner: any /*Vector3i*/) + /** + * Constructs a new bounding box from two opposite corners. + * Fails the resulting box would be degenerate (a dimension is 0). + */ + // @ts-ignore + constructor(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number) + /** + * Constructs a new bounding box from two opposite corners. + * Fails the resulting box would be degenerate (a dimension is 0). + */ + // @ts-ignore + constructor(firstCorner: any /*Vector3d*/, secondCorner: any /*Vector3d*/) + /** + * The minimum corner of the box. + */ + // @ts-ignore + public getMin(): any /*Vector3d*/; + /** + * The maximum corner of the box. + */ + // @ts-ignore + public getMax(): any /*Vector3d*/; + /** + * Returns the center of the box, halfway between each corner. + */ + // @ts-ignore + public getCenter(): any /*Vector3d*/; + /** + * Gets the size of the box. + */ + // @ts-ignore + public getSize(): any /*Vector3d*/; + /** + * Checks if the bounding box contains a point. + */ + // @ts-ignore + public contains(point: any /*Vector3i*/): boolean; + /** + * Checks if the bounding box contains a point. + */ + // @ts-ignore + public contains(point: any /*Vector3d*/): boolean; + /** + * Checks if the bounding box contains a point. + */ + // @ts-ignore + public contains(x: number, y: number, z: number): boolean; + /** + * Checks if the bounding box intersects another. + */ + // @ts-ignore + public intersects(other: org.spongepowered.api.util.AABB): boolean; + /** + * Tests for intersection between the box and a ray defined by a starting + * point and a direction. + */ + // @ts-ignore + public intersects(start: any /*Vector3d*/, direction: any /*Vector3d*/): java.util.Optional; + /** + * Offsets this bounding box by a given amount and returns a new box. + */ + // @ts-ignore + public offset(offset: any /*Vector3i*/): org.spongepowered.api.util.AABB; + /** + * Offsets this bounding box by a given amount and returns a new box. + */ + // @ts-ignore + public offset(offset: any /*Vector3d*/): org.spongepowered.api.util.AABB; + /** + * Offsets this bounding box by a given amount and returns a new box. + */ + // @ts-ignore + public offset(x: number, y: number, z: number): org.spongepowered.api.util.AABB; + /** + * Expands this bounding box by a given amount in both directions and + * returns a new box. The expansion is applied half and half to the + * minimum and maximum corners. + */ + // @ts-ignore + public expand(amount: any /*Vector3i*/): org.spongepowered.api.util.AABB; + /** + * Expands this bounding box by a given amount in both directions and + * returns a new box. The expansion is applied half and half to the + * minimum and maximum corners. + */ + // @ts-ignore + public expand(amount: any /*Vector3d*/): org.spongepowered.api.util.AABB; + /** + * Expands this bounding box by a given amount in both directions and + * returns a new box. The expansion is applied half and half to the + * minimum and maximum corners. + */ + // @ts-ignore + public expand(x: number, y: number, z: number): org.spongepowered.api.util.AABB; + // @ts-ignore + public equals(other: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.Axis.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.Axis.d.ts new file mode 100644 index 00000000..1f09e1ea --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.Axis.d.ts @@ -0,0 +1,58 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class Axis extends java.lang.Enum implements org.spongepowered.api.util.Cycleable { + // @ts-ignore + public static X: org.spongepowered.api.util.Axis; + // @ts-ignore + public static Y: org.spongepowered.api.util.Axis; + // @ts-ignore + public static Z: org.spongepowered.api.util.Axis; + // @ts-ignore + public static values(): org.spongepowered.api.util.Axis[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.util.Axis; + /** + * Gets the closest horizontal direction from the given vector. If the + * vector is the 0-Vector, this method returns {@link #X}. If the vector has + * the same length in a horizontal and vertical direction, a horizontal axis + * will be returned. If the vector has the same length in x and in z + * direction {@link #X} will be returned. + */ + // @ts-ignore + public static getClosest(vector: any /*Vector3d*/): org.spongepowered.api.util.Axis; + /** + * Returns whether the given vector is along this axis. + */ + // @ts-ignore + public isVectorAlongAxis(vector: any /*Vector3d*/): boolean; + /** + * Gets the component of the vector denoted by this axis. + */ + // @ts-ignore + public getComponent(vector3d: any /*Vector3d*/): number; + /** + * Gets the direction of the vector's component denoted by this axis. + */ + // @ts-ignore + public getDirection(vector3d: any /*Vector3d*/): org.spongepowered.api.util.AxisDirection; + /** + * Gets the Vector3d backing this axis. + */ + // @ts-ignore + public toVector3d(): any /*Vector3d*/; + /** + * Gets the Vector3d with the given {@link AxisDirection}. + */ + // @ts-ignore + public toVector3dWithDirection(axisDirection: org.spongepowered.api.util.AxisDirection): any /*Vector3d*/; + // @ts-ignore + public cycleNext(): org.spongepowered.api.util.Axis; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.AxisDirection.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.AxisDirection.d.ts new file mode 100644 index 00000000..22c1880b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.AxisDirection.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class AxisDirection extends java.lang.Enum { + // @ts-ignore + public static PLUS: org.spongepowered.api.util.AxisDirection; + // @ts-ignore + public static ZERO: org.spongepowered.api.util.AxisDirection; + // @ts-ignore + public static MINUS: org.spongepowered.api.util.AxisDirection; + // @ts-ignore + public static values(): org.spongepowered.api.util.AxisDirection[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.util.AxisDirection; + /** + * Gets the signum for this direction. + *

+ * A positive direction has a value of 1, negative direction -1 and 0 for no + * direction. + *

+ */ + // @ts-ignore + public getSignum(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.CatalogBuilder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.CatalogBuilder.d.ts new file mode 100644 index 00000000..874ab497 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.CatalogBuilder.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + interface CatalogBuilder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the id of the {@link CatalogType} (without the namespace/plugin id). + */ + // @ts-ignore + id(id: string): org.spongepowered.api.util.ResettableBuilder; + /** + * Sets the name of the {@link CatalogType}. Defaults to {@link #id(String)}. + */ + // @ts-ignore + name(name: string): org.spongepowered.api.util.ResettableBuilder; + /** + * Sets the name of the {@link CatalogType} as a {@link Translation}. Defaults to {@link #id}. + */ + // @ts-ignore + name(translation: org.spongepowered.api.text.translation.Translation): org.spongepowered.api.util.ResettableBuilder; + /** + * Builds the {@link CatalogType} of type {@code C}. + *

The last {@link PluginContainer} in the cause stack will be used to + * determine which plugin was used to construct the {@link CatalogType}.

+ */ + // @ts-ignore + build(): org.spongepowered.api.CatalogType; + // @ts-ignore + from(value: org.spongepowered.api.CatalogType): org.spongepowered.api.util.ResettableBuilder; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.Coerce.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.Coerce.d.ts new file mode 100644 index 00000000..13ebf02d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.Coerce.d.ts @@ -0,0 +1,153 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class Coerce extends java.lang.Object { + /** + * Coerce the supplied object to a string. + */ + // @ts-ignore + public static toString(obj: java.lang.Object): string; + /** + * Gets the given object as a {@link String}. + */ + // @ts-ignore + public static asString(obj: java.lang.Object): java.util.Optional; + /** + * Coerce the supplied object to a list. Accepts lists and all types of 1D + * arrays. Also (naively) supports lists in Strings in a format like + * {1,2,3,I,am,a,list} + */ + // @ts-ignore + public static toList(obj: java.lang.Object): java.util.List; + /** + * Gets the given object as a {@link List}. + */ + // @ts-ignore + public static asList(obj: java.lang.Object): java.util.Optional; + /** + * Coerce the specified object to a list containing only objects of type + * specified by ofClass. Also coerces list values where + * possible. + */ + // @ts-ignore + public static toListOf(obj: java.lang.Object, ofClass: java.lang.Class): java.util.List; + /** + * Coerce the supplied object to a boolean, matches strings such as "yes" as + * well as literal boolean values. + */ + // @ts-ignore + public static toBoolean(obj: java.lang.Object): boolean; + /** + * Gets the given object as a {@link Boolean}. + */ + // @ts-ignore + public static asBoolean(obj: java.lang.Object): java.util.Optional; + /** + * Coerce the supplied object to an integer, parse it if necessary. + */ + // @ts-ignore + public static toInteger(obj: java.lang.Object): number; + /** + * Gets the given object as a {@link Integer}. + *

Note that this does not translate numbers spelled out as strings.

+ */ + // @ts-ignore + public static asInteger(obj: java.lang.Object): java.util.Optional; + /** + * Coerce the supplied object to a double-precision floating-point number, + * parse it if necessary. + */ + // @ts-ignore + public static toDouble(obj: java.lang.Object): number; + /** + * Gets the given object as a {@link Double}. + *

Note that this does not translate numbers spelled out as strings.

+ */ + // @ts-ignore + public static asDouble(obj: java.lang.Object): java.util.Optional; + /** + * Coerce the supplied object to a single-precision floating-point number, + * parse it if necessary. + */ + // @ts-ignore + public static toFloat(obj: java.lang.Object): number; + /** + * Gets the given object as a {@link Float}. + *

Note that this does not translate numbers spelled out as strings.

+ */ + // @ts-ignore + public static asFloat(obj: java.lang.Object): java.util.Optional; + /** + * Coerce the supplied object to a short number, parse it if necessary. + */ + // @ts-ignore + public static toShort(obj: java.lang.Object): number; + /** + * Gets the given object as a {@link Short}. + *

Note that this does not translate numbers spelled out as strings.

+ */ + // @ts-ignore + public static asShort(obj: java.lang.Object): java.util.Optional; + /** + * Coerce the supplied object to a byte number, parse it if necessary. + */ + // @ts-ignore + public static toByte(obj: java.lang.Object): number; + /** + * Gets the given object as a {@link Byte}. + *

Note that this does not translate numbers spelled out as strings.

+ */ + // @ts-ignore + public static asByte(obj: java.lang.Object): java.util.Optional; + /** + * Coerce the supplied object to a long number, parse it if necessary. + */ + // @ts-ignore + public static toLong(obj: java.lang.Object): number; + /** + * Gets the given object as a {@link Long}. + *

Note that this does not translate numbers spelled out as strings.

+ */ + // @ts-ignore + public static asLong(obj: java.lang.Object): java.util.Optional; + /** + * Coerce the supplied object to a character, parse it if necessary. + */ + // @ts-ignore + public static toChar(obj: java.lang.Object): string; + /** + * Gets the given object as a {@link Character}. + */ + // @ts-ignore + public static asChar(obj: java.lang.Object): java.util.Optional; + /** + * Coerce the specified object to an enum of the supplied type, returns the + * first enum constant in the enum if parsing fails. + */ + // @ts-ignore + public static toEnum(obj: java.lang.Object, enumClass: java.lang.Class): java.lang.Enum; + /** + * Coerce the specified object to an enum of the supplied type, returns the + * specified default value if parsing fails. + */ + // @ts-ignore + public static toEnum(obj: java.lang.Object, enumClass: java.lang.Class, defaultValue: java.lang.Enum): java.lang.Enum; + /** + * Coerce the specified object to the specified pseudo-enum type using the + * supplied pseudo-enum dictionary class. + */ + // @ts-ignore + public static toPseudoEnum(obj: java.lang.Object, pseudoEnumClass: java.lang.Class, dictionaryClass: java.lang.Class, defaultValue: java.lang.Object): java.lang.Object; + /** + * Coerce the supplied object to a Vector2i. + */ + // @ts-ignore + public static toVector2i(obj: java.lang.Object): any /*Vector2i*/; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.CollectionUtils.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.CollectionUtils.d.ts new file mode 100644 index 00000000..c4558645 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.CollectionUtils.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class CollectionUtils extends java.lang.Object { + /** + * Attempts to use native {@link Object#clone()} methods on available map + * types. If a map cannot be properly cloned, a new {@link HashMap} is + * returned. + */ + // @ts-ignore + public static copyMap(map: java.util.Map): java.util.Map; + /** + * Attempts to use native {@link Object#clone()} methods on available map + * types. If a list cannot be properly cloned, a new {@link ArrayList} is + * returned. + */ + // @ts-ignore + public static copyList(list: java.util.List): java.util.List; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.Color.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.Color.Builder.d.ts new file mode 100644 index 00000000..f5ff5995 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.Color.Builder.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace Color { + // @ts-ignore + class Builder extends org.spongepowered.api.data.persistence.AbstractDataBuilder { + /** + * Creates a new {@link Builder} for building {@link Color} objects, either + * from {@link DataView}s, or otherwise. + */ + // @ts-ignore + constructor() + // @ts-ignore + protected buildContent(container: org.spongepowered.api.data.DataView): java.util.Optional; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.Color.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.Color.d.ts new file mode 100644 index 00000000..471915ea --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.Color.d.ts @@ -0,0 +1,163 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class Color extends java.lang.Object implements org.spongepowered.api.data.DataSerializable { + // @ts-ignore + public static BLACK: org.spongepowered.api.util.Color; + // @ts-ignore + public static GRAY: org.spongepowered.api.util.Color; + // @ts-ignore + public static WHITE: org.spongepowered.api.util.Color; + // @ts-ignore + public static BLUE: org.spongepowered.api.util.Color; + // @ts-ignore + public static GREEN: org.spongepowered.api.util.Color; + // @ts-ignore + public static LIME: org.spongepowered.api.util.Color; + // @ts-ignore + public static RED: org.spongepowered.api.util.Color; + // @ts-ignore + public static YELLOW: org.spongepowered.api.util.Color; + // @ts-ignore + public static MAGENTA: org.spongepowered.api.util.Color; + // @ts-ignore + public static PURPLE: org.spongepowered.api.util.Color; + // @ts-ignore + public static DARK_CYAN: org.spongepowered.api.util.Color; + // @ts-ignore + public static DARK_GREEN: org.spongepowered.api.util.Color; + // @ts-ignore + public static DARK_MAGENTA: org.spongepowered.api.util.Color; + // @ts-ignore + public static CYAN: org.spongepowered.api.util.Color; + // @ts-ignore + public static NAVY: org.spongepowered.api.util.Color; + // @ts-ignore + public static PINK: org.spongepowered.api.util.Color; + /** + * Gets a new {@link Color} based on the hexadecimal value + * for a combined {@code red}, {@code green}, and {@code blue} + * color. Note that colors do not utilize an alpha modifier + */ + // @ts-ignore + public static ofRgb(hex: number): org.spongepowered.api.util.Color; + /** + * Gets a new {@link Color} based on the hexadecimal value + * for a combined {@code red}, {@code green}, and {@code blue} + * color. Note that colors do not utilize an alpha modifier + */ + // @ts-ignore + public static ofRgb(red: number, green: number, blue: number): org.spongepowered.api.util.Color; + /** + * Converts the provided {@link java.awt.Color} object into a valid + * {@link Color} object to be used throughout the API. + */ + // @ts-ignore + public static of(color: java.awt.Color): org.spongepowered.api.util.Color; + /** + * Converts the provided {@link Vector3i} into a {@link Color} object. + */ + // @ts-ignore + public static of(vector3i: any /*Vector3i*/): org.spongepowered.api.util.Color; + /** + * converts the provided {@link Vector3f} into a {@link Color} object. + */ + // @ts-ignore + public static of(vector3f: any /*Vector3f*/): org.spongepowered.api.util.Color; + /** + * converts the provided {@link Vector3d} into a {@link Color} object. + */ + // @ts-ignore + public static of(vector3d: any /*Vector3d*/): org.spongepowered.api.util.Color; + /** + * Creates a new {@link Color} combining the provided {@link DyeColor} + * objects. Since {@link DyeColor}s can be converted into {@link Color} + * objects themselves, their summation and average is taken into effect + * to properly mix the colors together. + */ + // @ts-ignore + public static mixDyeColors(colors: org.spongepowered.api.data.type.DyeColor): org.spongepowered.api.util.Color; + /** + * Creates a new {@link Color} combining the provided {@link Color} + * objects, their summation and average is taken into effect + * to properly mix the colors together. + */ + // @ts-ignore + public static mixColors(colors: org.spongepowered.api.util.Color): org.spongepowered.api.util.Color; + /** + * Gets the {@code red} value of this {@link Color}. + */ + // @ts-ignore + public getRed(): number; + /** + * Creates a new {@link Color} by using the provided + * {@code red} color, while retaining the current {@link #getGreen()} + * and {@link #getBlue()} values. + */ + // @ts-ignore + public withRed(red: number): org.spongepowered.api.util.Color; + /** + * Gets the {@code red} value of this {@link Color}. + */ + // @ts-ignore + public getGreen(): number; + /** + * Creates a new {@link Color} by using the provided + * {@code green} color, while retaining the current {@link #getRed()} + * and {@link #getBlue()} values. + */ + // @ts-ignore + public withGreen(green: number): org.spongepowered.api.util.Color; + /** + * Gets the current {@code blue} value of this {@link Color}. + */ + // @ts-ignore + public getBlue(): number; + /** + * Creates a new {@link Color} by using the provided + * {@code blue} color, while retaining the current {@link #getGreen()} + * and {@link #getRed()} ()} values. + */ + // @ts-ignore + public withBlue(blue: number): org.spongepowered.api.util.Color; + /** + * Converts this {@link Color} into a {@link java.awt.Color} object for use + * in other APIs. + */ + // @ts-ignore + public asJavaColor(): java.awt.Color; + /** + * Gets the {@code red green blue} representation of this color in + * a "hexadecimal" format. + */ + // @ts-ignore + public getRgb(): number; + /** + * Creates a new color with the provided {@code Colors}. + */ + // @ts-ignore + public mixWithColors(colors: org.spongepowered.api.util.Color): org.spongepowered.api.util.Color; + /** + * Similar to {@link #mixWithColors(Color...)}, mixes the + * provided {@link DyeColor}s with this {@link Color}. + */ + // @ts-ignore + public mixWithDyes(dyeColors: org.spongepowered.api.data.type.DyeColor): org.spongepowered.api.util.Color; + // @ts-ignore + public getContentVersion(): number; + // @ts-ignore + public toContainer(): org.spongepowered.api.data.DataContainer; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public toString(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.Cycleable.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.Cycleable.d.ts new file mode 100644 index 00000000..de333193 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.Cycleable.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + interface Cycleable { + /** + * Gets the "next" {@link Cycleable} instance to be considered + * for cycling. + */ + // @ts-ignore + cycleNext(): org.spongepowered.api.util.Cycleable; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.Direction.Division.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.Direction.Division.d.ts new file mode 100644 index 00000000..80cfc339 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.Direction.Division.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace Direction { + // @ts-ignore + class Division extends java.lang.Enum { + // @ts-ignore + public static CARDINAL: org.spongepowered.api.util.Direction.Division; + // @ts-ignore + public static ORDINAL: org.spongepowered.api.util.Direction.Division; + // @ts-ignore + public static SECONDARY_ORDINAL: org.spongepowered.api.util.Direction.Division; + // @ts-ignore + public static NONE: org.spongepowered.api.util.Direction.Division; + // @ts-ignore + public static values(): org.spongepowered.api.util.Direction.Division[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.util.Direction.Division; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.Direction.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.Direction.d.ts new file mode 100644 index 00000000..0749c431 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.Direction.d.ts @@ -0,0 +1,148 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class Direction extends java.lang.Enum { + // @ts-ignore + public static NORTH: org.spongepowered.api.util.Direction; + // @ts-ignore + public static NORTH_NORTHEAST: org.spongepowered.api.util.Direction; + // @ts-ignore + public static NORTHEAST: org.spongepowered.api.util.Direction; + // @ts-ignore + public static EAST_NORTHEAST: org.spongepowered.api.util.Direction; + // @ts-ignore + public static EAST: org.spongepowered.api.util.Direction; + // @ts-ignore + public static EAST_SOUTHEAST: org.spongepowered.api.util.Direction; + // @ts-ignore + public static SOUTHEAST: org.spongepowered.api.util.Direction; + // @ts-ignore + public static SOUTH_SOUTHEAST: org.spongepowered.api.util.Direction; + // @ts-ignore + public static SOUTH: org.spongepowered.api.util.Direction; + // @ts-ignore + public static SOUTH_SOUTHWEST: org.spongepowered.api.util.Direction; + // @ts-ignore + public static SOUTHWEST: org.spongepowered.api.util.Direction; + // @ts-ignore + public static WEST_SOUTHWEST: org.spongepowered.api.util.Direction; + // @ts-ignore + public static WEST: org.spongepowered.api.util.Direction; + // @ts-ignore + public static WEST_NORTHWEST: org.spongepowered.api.util.Direction; + // @ts-ignore + public static NORTHWEST: org.spongepowered.api.util.Direction; + // @ts-ignore + public static NORTH_NORTHWEST: org.spongepowered.api.util.Direction; + // @ts-ignore + public static UP: org.spongepowered.api.util.Direction; + // @ts-ignore + public static DOWN: org.spongepowered.api.util.Direction; + // @ts-ignore + public static NONE: org.spongepowered.api.util.Direction; + // @ts-ignore + public static values(): org.spongepowered.api.util.Direction[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.util.Direction; + /** + * Gets the closest direction from the given vector. If the vector is the + * 0-Vector, this method returns {@link #NONE}. If the vector has the same + * horizontal and vertical length, a horizontal direction will be returned. + * If the vector is halfway between two directions the clockwise next will + * be selected. + */ + // @ts-ignore + public static getClosest(vector: any /*Vector3d*/): org.spongepowered.api.util.Direction; + /** + * Gets the closest direction from the given vector. If the vector is the + * 0-Vector, this method returns {@link #NONE}. If the vector has the same + * horizontal and vertical length, a horizontal direction will be returned. + * If the vector is halfway between two directions the clockwise next will + * be selected. + */ + // @ts-ignore + public static getClosest(vector: any /*Vector3d*/, smallestDivision: org.spongepowered.api.util.Direction.Division): org.spongepowered.api.util.Direction; + /** + * Gets the closest horizontal direction from the given vector. If the + * vector is the 0-Vector (ignoring y), this method returns {@link #NONE}. + * If the vector is halfway between two directions the clockwise next will + * be selected. + */ + // @ts-ignore + public static getClosestHorizontal(vector: any /*Vector3d*/): org.spongepowered.api.util.Direction; + /** + * Gets the closest horizontal direction from the given vector. If the + * vector is the 0-Vector (ignoring y), this method returns {@link #NONE}. + * If the vector is halfway between two directions the clockwise next will + * be selected. + */ + // @ts-ignore + public static getClosestHorizontal(vector: any /*Vector3d*/, smallestDivision: org.spongepowered.api.util.Direction.Division): org.spongepowered.api.util.Direction; + /** + * Gets the direction associated with the given axis. + */ + // @ts-ignore + public static getFromAxis(axis: org.spongepowered.api.util.Axis): org.spongepowered.api.util.Direction; + /** + * Gets the direction of the axis along the given {@link AxisDirection}. + */ + // @ts-ignore + public static getFromAxis(axis: org.spongepowered.api.util.Axis, direction: org.spongepowered.api.util.AxisDirection): org.spongepowered.api.util.Direction; + /** + * Gets the opposite direction i.e. 180 degrees from this direction. + */ + // @ts-ignore + public getOpposite(): org.spongepowered.api.util.Direction; + /** + * Returns whether the given direction is opposite this. + */ + // @ts-ignore + public isOpposite(d: org.spongepowered.api.util.Direction): boolean; + /** + * Return true if the direction is of a cardinal direction (north, west + * east, and south). + *

This evaluates as false for directions that have a non-zero + * Y-component.

+ */ + // @ts-ignore + public isCardinal(): boolean; + /** + * Return true if the direction is of an ordinal direction (northwest, + * southwest, southeast, northeast). + */ + // @ts-ignore + public isOrdinal(): boolean; + /** + * Return true if the direction is of a secondary ordinal direction + * (north-northwest, north-northeast, south-southwest, etc.). + */ + // @ts-ignore + public isSecondaryOrdinal(): boolean; + /** + * Return whether Y component is non-zero. + */ + // @ts-ignore + public isUpright(): boolean; + /** + * Returns the direction as a unit offset vector. + * This vector is also suitable as a unit direction vector. + */ + // @ts-ignore + public asOffset(): any /*Vector3d*/; + /** + * Returns the direction as a block offset vector. + * For secondary ordinals the results are approximated to the nearest + * block. + *

The difference between this offset and {@link #asOffset()} is that + * a block offset has unit components instead of unit length.

+ */ + // @ts-ignore + public asBlockOffset(): any /*Vector3i*/; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.DiscreteTransform2.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.DiscreteTransform2.d.ts new file mode 100644 index 00000000..dae33c61 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.DiscreteTransform2.d.ts @@ -0,0 +1,204 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class DiscreteTransform2 extends java.lang.Object { + // @ts-ignore + public static IDENTITY: org.spongepowered.api.util.DiscreteTransform2; + /** + * Returns the matrix representation of the transform. It is 3D to allow it + * to include a translation. + */ + // @ts-ignore + public getMatrix(): any /*Matrix3d*/; + /** + * Transforms a vector using this transforms. + */ + // @ts-ignore + public transform(vector: any /*Vector2i*/): any /*Vector2i*/; + /** + * Transform a vector represented as a pair of coordinates using this + * transform. + */ + // @ts-ignore + public transform(x: number, y: number): any /*Vector2i*/; + /** + * Transforms the x coordinate of a vector using this transform. Only + * creates a new object on the first call. + */ + // @ts-ignore + public transformX(vector: any /*Vector2i*/): number; + /** + * Transforms the x coordinate of a vector using this transform. Only + * creates a new object on the first call. + */ + // @ts-ignore + public transformX(x: number, y: number): number; + /** + * Transforms the y coordinate of a vector using this transform. Only + * creates a new object on the first call. + */ + // @ts-ignore + public transformY(vector: any /*Vector2i*/): number; + /** + * Transforms the y coordinate of a vector using this transform. Only + * creates a new object on the first call. + */ + // @ts-ignore + public transformY(x: number, y: number): number; + /** + * Inverts the transform and returns it as a new transform. + */ + // @ts-ignore + public invert(): org.spongepowered.api.util.DiscreteTransform2; + /** + * Returns a transform that is the composition of this transform and the + * given transform. The result will apply this transformation after the + * given one. + */ + // @ts-ignore + public compose(that: org.spongepowered.api.util.DiscreteTransform2): org.spongepowered.api.util.DiscreteTransform2; + /** + * Returns a transform that is the composition of the given transform with + * this transform. The result will apply the given transformation after + * this one. + */ + // @ts-ignore + public andThen(that: org.spongepowered.api.util.DiscreteTransform2): org.spongepowered.api.util.DiscreteTransform2; + /** + * Adds a translation to this transform and returns it as a new transform. + */ + // @ts-ignore + public withTranslation(vector: any /*Vector2i*/): org.spongepowered.api.util.DiscreteTransform2; + /** + * Adds a translation to this transform and returns it as a new transform. + */ + // @ts-ignore + public withTranslation(x: number, y: number): org.spongepowered.api.util.DiscreteTransform2; + /** + * Adds a scale factor to this transform and returns it as a new transform. + * This factor must be non-zero. + */ + // @ts-ignore + public withScale(a: number): org.spongepowered.api.util.DiscreteTransform2; + /** + * Adds a scale factor for each axis to this transform and returns it as a + * new transform. The factors must be non-zero. + */ + // @ts-ignore + public withScale(vector: any /*Vector2i*/): org.spongepowered.api.util.DiscreteTransform2; + /** + * Adds a scale factor for each axis to this transform and returns it as a + * new transform. The factors must be non-zero. + */ + // @ts-ignore + public withScale(x: number, y: number): org.spongepowered.api.util.DiscreteTransform2; + /** + * Adds a rotation to this transform, in the xy plane, around the origin and + * returns it as a new transform. The rotation is given is quarter turns. + * The actual rotation is {@code quarterTurns * 90}. The rotation is around + * the block center, not the corner. + */ + // @ts-ignore + public withRotation(quarterTurns: number): org.spongepowered.api.util.DiscreteTransform2; + /** + * Adds a a rotation to this transform, in the xy plane, around a given + * point, and returns it as a new transform. The rotation is given is + * quarter turns. The actual rotation is {@code quarterTurns * 90}. The tile + * corner flag changes the point to be the tile upper corner instead of the + * center. + */ + // @ts-ignore + public withRotation(quarterTurns: number, point: any /*Vector2i*/, tileCorner: boolean): org.spongepowered.api.util.DiscreteTransform2; + /** + * Adds a a rotation to this transform, in the xy plane, around a given + * point, and returns it as a new transform. The rotation is given is half + * turns. The actual rotation is {@code halfTurns * 180}. The tile corner + * flags change the point to be the tile corner or edge instead of the + * center. When both flags are false, the center is used. When only one is + * true the edge on the opposite axis to the flag is used. When both are + * true the upper corner is used. + */ + // @ts-ignore + public withRotation(halfTurns: number, point: any /*Vector2i*/, tileCornerX: boolean, tileCornerY: boolean): org.spongepowered.api.util.DiscreteTransform2; + /** + * Adds another transformation to this transformation and returns int as a + * new transform. + */ + // @ts-ignore + public withTransformation(transform: org.spongepowered.api.util.DiscreteTransform2): org.spongepowered.api.util.DiscreteTransform2; + /** + * Returns a new transform from the given transformation matrix, if the + * resulting transform would be discrete. + */ + // @ts-ignore + public static of(matrix: any /*Matrix3d*/): java.util.Optional; + /** + * Returns a new transform representing a translation. + */ + // @ts-ignore + public static fromTranslation(vector: any /*Vector2i*/): org.spongepowered.api.util.DiscreteTransform2; + /** + * Returns a new transform representing a translation. + */ + // @ts-ignore + public static fromTranslation(x: number, y: number): org.spongepowered.api.util.DiscreteTransform2; + /** + * Returns a new transform representing a scaling. + * The scale factor must be non-zero. + */ + // @ts-ignore + public static fromScale(a: number): org.spongepowered.api.util.DiscreteTransform2; + /** + * Returns a new transform representing a scaling on each axis. The scale + * factors must be non-zero. + */ + // @ts-ignore + public static fromScale(vector: any /*Vector2i*/): org.spongepowered.api.util.DiscreteTransform2; + /** + * Returns a new transform representing a scaling on each axis. The scale + * factors must be non-zero. + */ + // @ts-ignore + public static fromScale(x: number, y: number): org.spongepowered.api.util.DiscreteTransform2; + /** + * Returns a new transform representing a rotation in the xy plane around + * the origin. The rotation is given is quarter turns. The actual rotation + * is {@code quarterTurns * 90}. The rotation is around the block center, + * not the corner. + */ + // @ts-ignore + public static fromRotation(quarterTurns: number): org.spongepowered.api.util.DiscreteTransform2; + /** + * Returns a new transform representing a rotation in the xy plane, around a + * given point. The rotation is given is quarter turns. The actual rotation + * is {@code quarterTurns * 90}. The tile corner flag change the point to be + * the tile corner instead of the center. + */ + // @ts-ignore + public static fromRotation(quarterTurns: number, point: any /*Vector2i*/, tileCorner: boolean): org.spongepowered.api.util.DiscreteTransform2; + /** + * Returns a new transform representing a rotation in the xy plane, around a + * given point. The rotation is given is half turns. The actual rotation is + * {@code halfTurns * 180}. The tile corner flags change the point to be the + * tile corner or edge instead of the center. When both flags are false, the + * center is used. When only one is true the edge on the opposite axis to + * the flag is used. When both are true the upper corner is used. + */ + // @ts-ignore + public static fromRotation(halfTurns: number, point: any /*Vector2i*/, tileCornerX: boolean, tileCornerY: boolean): org.spongepowered.api.util.DiscreteTransform2; + /** + * Returns a new transform representing a centered rotation of an area of + * tiles. The rotation is given is quarter turns. The actual rotation is + * {@code quarterTurns * 90}. Areas with differing parities on the axes can + * only be rotated by multiples of 180 degrees. + */ + // @ts-ignore + public static rotationAroundCenter(quarterTurns: number, size: any /*Vector2i*/): org.spongepowered.api.util.DiscreteTransform2; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.DiscreteTransform3.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.DiscreteTransform3.d.ts new file mode 100644 index 00000000..fab1c811 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.DiscreteTransform3.d.ts @@ -0,0 +1,229 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class DiscreteTransform3 extends java.lang.Object { + // @ts-ignore + public static IDENTITY: org.spongepowered.api.util.DiscreteTransform3; + /** + * Returns the matrix representation of the transform. + * It is 4D to allow it to include a translation. + */ + // @ts-ignore + public getMatrix(): any /*Matrix4d*/; + /** + * Transforms a vector using this transforms. + */ + // @ts-ignore + public transform(vector: any /*Vector3i*/): any /*Vector3i*/; + /** + * Transform a vector represented as a pair of + * coordinates using this transform. + */ + // @ts-ignore + public transform(x: number, y: number, z: number): any /*Vector3i*/; + /** + * Transforms the x coordinate of a vector + * using this transform. Only creates a new + * object on the first call. + */ + // @ts-ignore + public transformX(vector: any /*Vector3i*/): number; + /** + * Transforms the x coordinate of a vector + * using this transform. Only creates a new + * object on the first call. + */ + // @ts-ignore + public transformX(x: number, y: number, z: number): number; + /** + * Transforms the y coordinate of a vector + * using this transform. Only creates a new + * object on the first call. + */ + // @ts-ignore + public transformY(vector: any /*Vector3i*/): number; + /** + * Transforms the y coordinate of a vector + * using this transform. Only creates a new + * object on the first call. + */ + // @ts-ignore + public transformY(x: number, y: number, z: number): number; + /** + * Transforms the z coordinate of a vector + * using this transform. Only creates a new + * object on the first call. + */ + // @ts-ignore + public transformZ(vector: any /*Vector3i*/): number; + /** + * Transforms the z coordinate of a vector + * using this transform. Only creates a new + * object on the first call. + */ + // @ts-ignore + public transformZ(x: number, y: number, z: number): number; + /** + * Inverts the transform and returns it as a new transform. + */ + // @ts-ignore + public invert(): org.spongepowered.api.util.DiscreteTransform3; + /** + * Returns a transform that is the composition of this transform and the + * given transform. The result will apply this transformation after the + * given one. + */ + // @ts-ignore + public compose(that: org.spongepowered.api.util.DiscreteTransform3): org.spongepowered.api.util.DiscreteTransform3; + /** + * Returns a transform that is the composition of the given transform with + * this transform. The result will apply the given transformation after this + * one. + */ + // @ts-ignore + public andThen(that: org.spongepowered.api.util.DiscreteTransform3): org.spongepowered.api.util.DiscreteTransform3; + /** + * Adds a translation to this transform and returns + * it as a new transform. + */ + // @ts-ignore + public withTranslation(vector: any /*Vector3i*/): org.spongepowered.api.util.DiscreteTransform3; + /** + * Adds a translation to this transform and returns + * it as a new transform. + */ + // @ts-ignore + public withTranslation(x: number, y: number, z: number): org.spongepowered.api.util.DiscreteTransform3; + /** + * Adds a scale factor to this transform and returns + * it as a new transform. This factor must be non-zero. + */ + // @ts-ignore + public withScale(a: number): org.spongepowered.api.util.DiscreteTransform3; + /** + * Adds a scale factor for each axis to this transform + * and returns it as a new transform. The factors must + * be non-zero. + */ + // @ts-ignore + public withScale(vector: any /*Vector3i*/): org.spongepowered.api.util.DiscreteTransform3; + /** + * Adds a scale factor for each axis to this transform + * and returns it as a new transform. The factors must + * be non-zero. + */ + // @ts-ignore + public withScale(x: number, y: number, z: number): org.spongepowered.api.util.DiscreteTransform3; + /** + * Adds a rotation to this transform, around an axis, + * around the origin and returns it as a new transform. + * The rotation is given is quarter turns. + * The actual rotation is {@code quarterTurns * 90}. + * The rotation is around the block center, not the corner. + */ + // @ts-ignore + public withRotation(quarterTurns: number, axis: org.spongepowered.api.util.Axis): org.spongepowered.api.util.DiscreteTransform3; + /** + * Adds a a rotation to this transform, around an axis, + * around a given point, and returns it as a new transform. + * The rotation is given is quarter turns. The actual rotation + * is {@code quarterTurns * 90}. The block corner flag changes + * the point to be the block upper corner instead of the center. + */ + // @ts-ignore + public withRotation(quarterTurns: number, axis: org.spongepowered.api.util.Axis, point: any /*Vector3i*/, blockCorner: boolean): org.spongepowered.api.util.DiscreteTransform3; + /** + * Adds a a rotation to this transform, around an axis, + * around a given point. The rotation is given is half turns. + * The actual rotation is {@code halfTurns * 180}. The block corner + * flags change the point to be the block corner or edge instead + * of the center. When all flags are false, the center is used. + * When only one is true the face traversed by the axis of flag is used. + * When two are true the edge in the direction of the remaining flag + * is used. When all are true the upper corner is used. + */ + // @ts-ignore + public withRotation(halfTurns: number, axis: org.spongepowered.api.util.Axis, point: any /*Vector3i*/, blockCornerX: boolean, blockCornerY: boolean, blockCornerZ: boolean): org.spongepowered.api.util.DiscreteTransform3; + /** + * Adds another transformation to this transformation and + * returns int as a new transform. + */ + // @ts-ignore + public withTransformation(transform: org.spongepowered.api.util.DiscreteTransform3): org.spongepowered.api.util.DiscreteTransform3; + /** + * Returns a new transform from the given transformation matrix, if the + * resulting transform would be discrete. + */ + // @ts-ignore + public static of(matrix: any /*Matrix4d*/): java.util.Optional; + /** + * Returns a new transform representing a translation. + */ + // @ts-ignore + public static fromTranslation(vector: any /*Vector3i*/): org.spongepowered.api.util.DiscreteTransform3; + /** + * Returns a new transform representing a translation. + */ + // @ts-ignore + public static fromTranslation(x: number, y: number, z: number): org.spongepowered.api.util.DiscreteTransform3; + /** + * Returns a new transform representing a scaling. + * The scale factor must be non-zero. + */ + // @ts-ignore + public static fromScale(a: number): org.spongepowered.api.util.DiscreteTransform3; + /** + * Returns a new transform representing a scaling on each axis. + * The scale factors must be non-zero. + */ + // @ts-ignore + public static fromScale(vector: any /*Vector3i*/): org.spongepowered.api.util.DiscreteTransform3; + /** + * Returns a new transform representing a scaling on each axis. + * The scale factors must be non-zero. + */ + // @ts-ignore + public static fromScale(x: number, y: number, z: number): org.spongepowered.api.util.DiscreteTransform3; + /** + * Returns a new transform representing a rotation around an + * axis around the origin. The rotation is given is quarter turns. + * The actual rotation is {@code quarterTurns * 90}. + * The rotation is around the block center, not the corner. + */ + // @ts-ignore + public static fromRotation(quarterTurns: number, axis: org.spongepowered.api.util.Axis): org.spongepowered.api.util.DiscreteTransform3; + /** + * Returns a new transform representing a rotation around an axis, + * around a given point. The rotation is given is quarter turns. + * The actual rotation is {@code quarterTurns * 90}. The block corner + * flag change the point to be the block corner instead of the center. + */ + // @ts-ignore + public static fromRotation(quarterTurns: number, axis: org.spongepowered.api.util.Axis, point: any /*Vector3i*/, blockCorner: boolean): org.spongepowered.api.util.DiscreteTransform3; + /** + * Returns a new transform representing a rotation around an axis, + * around a given point. The rotation is given in half turns. + * The actual rotation is {@code halfTurns * 180}. When all flags are + * false, the center is used. When only one is true the face traversed + * by the axis of flag is used. When two are true the edge in the + * direction of the remaining flag is used. When all are true the + * upper corner is used. + */ + // @ts-ignore + public static fromRotation(halfTurns: number, axis: org.spongepowered.api.util.Axis, point: any /*Vector3i*/, blockCornerX: boolean, blockCornerY: boolean, blockCornerZ: boolean): org.spongepowered.api.util.DiscreteTransform3; + /** + * Returns a new transform representing a centered rotation of an volume + * of blocks. The rotation is given is quarter turns. The actual rotation + * is {@code quarterTurns * 90}. Volumes with differing parities on the + * axes can only be rotated by multiples of 180 degrees. + */ + // @ts-ignore + public static rotationAroundCenter(quarterTurns: number, axis: org.spongepowered.api.util.Axis, size: any /*Vector3i*/): org.spongepowered.api.util.DiscreteTransform3; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.Functional.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.Functional.d.ts new file mode 100644 index 00000000..4374aa92 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.Functional.d.ts @@ -0,0 +1,69 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class Functional extends java.lang.Object { + /** + * Perform an AND using an array of predicates. + */ + // @ts-ignore + public static predicateAnd(predicates: java.util.function$.Predicate): java.util.function$.Predicate; + /** + * Perform an AND using an iterable of predicates. + */ + // @ts-ignore + public static predicateAnd(predicates: java.lang.Iterable): java.util.function$.Predicate; + /** + * Perform an AND using an array of bi-predicates. + */ + // @ts-ignore + public static biPredicateAnd(predicates: java.util.function$.BiPredicate): java.util.function$.BiPredicate; + /** + * Perform an AND using an iterable of bi-predicates. + */ + // @ts-ignore + public static biPredicateAnd(predicates: java.lang.Iterable): java.util.function$.BiPredicate; + /** + * Creates a new {@link Predicate} defining whether an {@link Object} + * is contained within the provided {@link Collection}. + */ + // @ts-ignore + public static predicateIn(collection: java.util.Collection): java.util.function$.Predicate; + /** + * Creates a {@link com.google.common.base.Predicate} based on the provided {@link Predicate}, used + * to transform between Java 8 specific code to those from the guava + * library. + */ + // @ts-ignore + public static java8ToGuava(predicate: java.util.function$.Predicate): any; + /** + * Creates a new {@link Predicate} based on the provided {@link com.google.common.base.Predicate}, + * used to transform between Java 8 specific code to those from the guava + * library. + */ + // @ts-ignore + public static guavaToJava8(p: any): java.util.function$.Predicate; + /** + * Gets the value of an {@link Optional} as either a zero- or one-element immutable set. + */ + // @ts-ignore + public static optionalAsSet(value: java.util.Optional): java.util.Set; + /** + * Execute a callable on the current thread, capturing the result or any exceptions that may be thrown into a {@link + * CompletableFuture}. + */ + // @ts-ignore + public static failableFuture(call: java.util.concurrent.Callable): java.util.concurrent.CompletableFuture; + /** + * Execute a callable on the provided executor, capturing the result or any exceptions that may be thrown into a {@link + * CompletableFuture}. + */ + // @ts-ignore + public static asyncFailableFuture(call: java.util.concurrent.Callable, exec: java.util.concurrent.Executor): java.util.concurrent.CompletableFuture; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.GuavaCollectors.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.GuavaCollectors.d.ts new file mode 100644 index 00000000..70388125 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.GuavaCollectors.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class GuavaCollectors extends java.lang.Object { + /** + * Collect the values from a stream to an {@link ImmutableList}. + */ + // @ts-ignore + public static toImmutableList(): java.util.stream.Collector; + /** + * Collect the values from a stream to an {@link ImmutableSet}. + */ + // @ts-ignore + public static toImmutableSet(): java.util.stream.Collector; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.Identifiable.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.Identifiable.d.ts new file mode 100644 index 00000000..384f68c3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.Identifiable.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + interface Identifiable { + /** + * Gets the unique ID for this object. + */ + // @ts-ignore + getUniqueId(): java.util.UUID; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.InformativeMain.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.InformativeMain.d.ts new file mode 100644 index 00000000..c38d38b7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.InformativeMain.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class InformativeMain extends java.lang.Object { + // @ts-ignore + constructor() + /** + * The main method which throws a {@link PEBKACException} with some basic + * information on how sponge works. + */ + // @ts-ignore + public static main(args: string): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.OptBool.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.OptBool.d.ts new file mode 100644 index 00000000..b0ffbaa1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.OptBool.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class OptBool extends java.lang.Object { + // @ts-ignore + public static TRUE: java.util.Optional; + // @ts-ignore + public static FALSE: java.util.Optional; + // @ts-ignore + public static ABSENT: java.util.Optional; + /** + * Constructs a new {@code Optional<Boolean>} from the given boolean. + */ + // @ts-ignore + public static of(bool: boolean): java.util.Optional; + /** + * Constructs a new {@code Optional<Boolean>} from the given {@link Boolean}. + */ + // @ts-ignore + public static of(bool: java.lang.Boolean): java.util.Optional; + /** + * Coerces the given {@code Optional<Boolean>} into one of the three + * stored states. + */ + // @ts-ignore + public static of(bool: java.util.Optional): java.util.Optional; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.PEBKACException.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.PEBKACException.d.ts new file mode 100644 index 00000000..f0175239 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.PEBKACException.d.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class PEBKACException extends java.lang.UnsupportedOperationException { + /** + * Constructs a new {@link PEBKACException}. + */ + // @ts-ignore + constructor() + /** + * Constructs a new {@link PEBKACException} with the given message. + */ + // @ts-ignore + constructor(msg: string) + /** + * Constructs a new {@link PEBKACException} with the given message and + * cause. + */ + // @ts-ignore + constructor(msg: string, cause: java.lang.Throwable) + /** + * Constructs a new {@link PEBKACException} with the given cause. + */ + // @ts-ignore + constructor(cause: java.lang.Throwable) + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.PositionOutOfBoundsException.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.PositionOutOfBoundsException.d.ts new file mode 100644 index 00000000..bce98c47 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.PositionOutOfBoundsException.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class PositionOutOfBoundsException extends java.lang.RuntimeException { + /** + * Constructs the exception from int coordinate vectors. + */ + // @ts-ignore + constructor(position: any /*Vector3i*/, min: any /*Vector3i*/, max: any /*Vector3i*/) + /** + * Constructs the exception from float coordinate vectors. + */ + // @ts-ignore + constructor(position: any /*Vector3f*/, min: any /*Vector3f*/, max: any /*Vector3f*/) + /** + * Constructs the exception from double coordinate vectors. + */ + // @ts-ignore + constructor(position: any /*Vector3d*/, min: any /*Vector3d*/, max: any /*Vector3d*/) + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.RelativePositions.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.RelativePositions.d.ts new file mode 100644 index 00000000..18e22843 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.RelativePositions.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class RelativePositions extends java.lang.Enum { + // @ts-ignore + public static X: org.spongepowered.api.util.RelativePositions; + // @ts-ignore + public static Y: org.spongepowered.api.util.RelativePositions; + // @ts-ignore + public static Z: org.spongepowered.api.util.RelativePositions; + // @ts-ignore + public static PITCH: org.spongepowered.api.util.RelativePositions; + // @ts-ignore + public static YAW: org.spongepowered.api.util.RelativePositions; + // @ts-ignore + public static values(): org.spongepowered.api.util.RelativePositions[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.util.RelativePositions; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.ResettableBuilder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.ResettableBuilder.d.ts new file mode 100644 index 00000000..6fa9567b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.ResettableBuilder.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + interface ResettableBuilder { + /** + * Resets this builder to the values of the given built object. + */ + // @ts-ignore + from(value: java.lang.Object): org.spongepowered.api.util.ResettableBuilder; + /** + * Resets this builder to a "default" state such that there is no + * remaining data to set. This is to be the presumed "default" + * state. + */ + // @ts-ignore + reset(): org.spongepowered.api.util.ResettableBuilder; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.RespawnLocation.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.RespawnLocation.Builder.d.ts new file mode 100644 index 00000000..ca209c7c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.RespawnLocation.Builder.d.ts @@ -0,0 +1,60 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace RespawnLocation { + // @ts-ignore + class Builder extends org.spongepowered.api.data.persistence.AbstractDataBuilder { + /** + * Creates a new {@link Builder}. + */ + // @ts-ignore + constructor() + /** + * Sets the {@link UUID} of the provided {@link World} into this + * builder. + */ + // @ts-ignore + public world(world: org.spongepowered.api.world.World): org.spongepowered.api.util.RespawnLocation.Builder; + /** + * Sets the {@link UUID} of the desired {@link World}. There are no + * validation checks to whether a world exists with the provided uuid, + * mainly for reasons when multiple worlds are loaded and unloaded. + */ + // @ts-ignore + public world(worldId: java.util.UUID): org.spongepowered.api.util.RespawnLocation.Builder; + /** + * Sets the {@link UUID} of the {@link Location} provided {@link World}, + * and the {@link Vector3d} position to respawn at. + */ + // @ts-ignore + public location(location: org.spongepowered.api.world.Location): org.spongepowered.api.util.RespawnLocation.Builder; + /** + * Sets the {@link Vector3d} position of where to respawn at. + */ + // @ts-ignore + public position(position: any /*Vector3d*/): org.spongepowered.api.util.RespawnLocation.Builder; + /** + * Sets whether the position to respawn at is forced or can be varied + * for safety. + */ + // @ts-ignore + public forceSpawn(isForced: boolean): org.spongepowered.api.util.RespawnLocation.Builder; + // @ts-ignore + protected buildContent(container: org.spongepowered.api.data.DataView): java.util.Optional; + // @ts-ignore + public reset(): org.spongepowered.api.util.RespawnLocation.Builder; + // @ts-ignore + public from(value: org.spongepowered.api.util.RespawnLocation): org.spongepowered.api.util.RespawnLocation.Builder; + /** + * Creates a new {@link RespawnLocation} from this builder. + */ + // @ts-ignore + public build(): org.spongepowered.api.util.RespawnLocation; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.RespawnLocation.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.RespawnLocation.d.ts new file mode 100644 index 00000000..e0e23633 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.RespawnLocation.d.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class RespawnLocation extends java.lang.Object implements org.spongepowered.api.data.DataSerializable { + /** + * Creates a new {@link Builder} to build a {@link RespawnLocation}. + */ + // @ts-ignore + public static builder(): org.spongepowered.api.util.RespawnLocation.Builder; + /** + * Gets the {@link UUID} of the world this position refers to. + */ + // @ts-ignore + public getWorldUniqueId(): java.util.UUID; + /** + * Gets the position within the world of this spawn point. + */ + // @ts-ignore + public getPosition(): any /*Vector3d*/; + /** + * Gets whether the spawn position is forced in the given world, if + * available. A forced position will spawn the player there even if a bed is + * missing or obstructed. + */ + // @ts-ignore + public isForced(): boolean; + /** + * Gets this spawn position as a {@link Location} object, if the world is + * available. + */ + // @ts-ignore + public asLocation(): java.util.Optional; + // @ts-ignore + public getContentVersion(): number; + // @ts-ignore + public toContainer(): org.spongepowered.api.data.DataContainer; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.SpongeApiTranslationHelper.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.SpongeApiTranslationHelper.d.ts new file mode 100644 index 00000000..722bbbf7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.SpongeApiTranslationHelper.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class SpongeApiTranslationHelper extends java.lang.Object { + /** + * Gets the translated text for a given string. + */ + // @ts-ignore + public static t(key: string, args: java.lang.Object): org.spongepowered.api.text.Text; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.StartsWithPredicate.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.StartsWithPredicate.d.ts new file mode 100644 index 00000000..bc43ef28 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.StartsWithPredicate.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class StartsWithPredicate extends java.lang.Object { + /** + * Create an new predicate. + */ + // @ts-ignore + constructor(test: string) + // @ts-ignore + public test(input: string): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.TextMessageException.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.TextMessageException.d.ts new file mode 100644 index 00000000..a87b0ac2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.TextMessageException.d.ts @@ -0,0 +1,43 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class TextMessageException extends java.lang.Exception { + /** + * Constructs a new {@link TextMessageException}. + */ + // @ts-ignore + constructor() + /** + * Constructs a new {@link TextMessageException} with the given message. + */ + // @ts-ignore + constructor(message: org.spongepowered.api.text.Text) + /** + * Constructs a new {@link TextMessageException} with the given message and + * cause. + */ + // @ts-ignore + constructor(message: org.spongepowered.api.text.Text, throwable: java.lang.Throwable) + /** + * Constructs a new {@link TextMessageException} with the given cause. + */ + // @ts-ignore + constructor(throwable: java.lang.Throwable) + // @ts-ignore + public getMessage(): string; + /** + * Returns the text message for this exception, or null if nothing is + * present. + */ + // @ts-ignore + public getText(): org.spongepowered.api.text.Text; + // @ts-ignore + public getLocalizedMessage(): string; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.Tristate.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.Tristate.d.ts new file mode 100644 index 00000000..41e30b0b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.Tristate.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class Tristate extends java.lang.Enum { + // @ts-ignore + public static TRUE: org.spongepowered.api.util.Tristate; + // @ts-ignore + public static FALSE: org.spongepowered.api.util.Tristate; + // @ts-ignore + public static UNDEFINED: org.spongepowered.api.util.Tristate; + // @ts-ignore + public static values(): org.spongepowered.api.util.Tristate[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.util.Tristate; + /** + * Return the appropriate tristate for a given boolean value. + */ + // @ts-ignore + public static fromBoolean(val: boolean): org.spongepowered.api.util.Tristate; + /** + * ANDs this tristate with another tristate. + */ + // @ts-ignore + public and(other: org.spongepowered.api.util.Tristate): org.spongepowered.api.util.Tristate; + /** + * ORs this tristate with another tristate. + */ + // @ts-ignore + public or(other: org.spongepowered.api.util.Tristate): org.spongepowered.api.util.Tristate; + /** + * Returns the boolean representation of this tristate. + */ + // @ts-ignore + public asBoolean(): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.Tuple.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.Tuple.d.ts new file mode 100644 index 00000000..ec1121c9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.Tuple.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class Tuple extends java.lang.Object { + /** + * Creates a new {@link Tuple}. + */ + // @ts-ignore + constructor(first: java.lang.Object, second: java.lang.Object) + /** + * Creates a new {@link Tuple} with the desired {@code first} and + * {@code second} objects. + */ + // @ts-ignore + public static of(first: java.lang.Object, second: java.lang.Object): org.spongepowered.api.util.Tuple; + /** + * Gets the first object, otherwise known as "key". + */ + // @ts-ignore + public getFirst(): java.lang.Object; + /** + * Gets the second object, otherwise known as "value". + */ + // @ts-ignore + public getSecond(): java.lang.Object; + // @ts-ignore + public toString(): string; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.TypeTokens.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.TypeTokens.d.ts new file mode 100644 index 00000000..65eb7a2b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.TypeTokens.d.ts @@ -0,0 +1,386 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + class TypeTokens extends java.lang.Object { + // @ts-ignore + public static ART_TOKEN: any; + // @ts-ignore + public static ART_VALUE_TOKEN: any; + // @ts-ignore + public static AXIS_TOKEN: any; + // @ts-ignore + public static AXIS_VALUE_TOKEN: any; + // @ts-ignore + public static BLOCK_TOKEN: any; + // @ts-ignore + public static BLOCK_VALUE_TOKEN: any; + // @ts-ignore + public static BOOLEAN_TOKEN: any; + // @ts-ignore + public static BOOLEAN_VALUE_TOKEN: any; + // @ts-ignore + public static BOUNDED_DOUBLE_VALUE_TOKEN: any; + // @ts-ignore + public static BOUNDED_INTEGER_VALUE_TOKEN: any; + // @ts-ignore + public static BOUNDED_SHORT_VALUE_TOKEN: any; + // @ts-ignore + public static BRICK_TOKEN: any; + // @ts-ignore + public static BRICK_VALUE_TOKEN: any; + // @ts-ignore + public static CAREER_TOKEN: any; + // @ts-ignore + public static CAREER_VALUE_TOKEN: any; + // @ts-ignore + public static COAL_TOKEN: any; + // @ts-ignore + public static COAL_VALUE_TOKEN: any; + // @ts-ignore + public static COLOR_TOKEN: any; + // @ts-ignore + public static COLOR_VALUE_TOKEN: any; + // @ts-ignore + public static COMPARATOR_TOKEN: any; + // @ts-ignore + public static COMPARATOR_VALUE_TOKEN: any; + // @ts-ignore + public static COOKED_FISH_TOKEN: any; + // @ts-ignore + public static COOKED_FISH_VALUE_TOKEN: any; + // @ts-ignore + public static DIRECTION_TOKEN: any; + // @ts-ignore + public static DIRECTION_VALUE_TOKEN: any; + // @ts-ignore + public static DIRT_TOKEN: any; + // @ts-ignore + public static DIRT_VALUE_TOKEN: any; + // @ts-ignore + public static DISGUISED_BLOCK_TOKEN: any; + // @ts-ignore + public static DISGUISED_BLOCK_VALUE_TOKEN: any; + // @ts-ignore + public static DOUBLE_PLANT_TOKEN: any; + // @ts-ignore + public static DOUBLE_PLANT_VALUE_TOKEN: any; + // @ts-ignore + public static DOUBLE_TOKEN: any; + // @ts-ignore + public static DOUBLE_VALUE_TOKEN: any; + // @ts-ignore + public static DYE_COLOR_TOKEN: any; + // @ts-ignore + public static DYE_COLOR_VALUE_TOKEN: any; + // @ts-ignore + public static ENTITY_TOKEN: any; + // @ts-ignore + public static ENTITY_TYPE_DOUBLE_MAP_TOKEN: any; + // @ts-ignore + public static ENTITY_TYPE_DOUBLE_MAP_VALUE_TOKEN: any; + // @ts-ignore + public static ENTITY_TYPE_TOKEN: any; + // @ts-ignore + public static ENTITY_TYPE_VALUE_TOKEN: any; + // @ts-ignore + public static ENTITY_VALUE_TOKEN: any; + // @ts-ignore + public static FISH_TOKEN: any; + // @ts-ignore + public static FISH_VALUE_TOKEN: any; + // @ts-ignore + public static FLOAT_TOKEN: any; + // @ts-ignore + public static FLOAT_VALUE_TOKEN: any; + // @ts-ignore + public static FLUID_TOKEN: any; + // @ts-ignore + public static FLUID_VALUE_TOKEN: any; + // @ts-ignore + public static GAME_MODE_TOKEN: any; + // @ts-ignore + public static GAME_MODE_VALUE_TOKEN: any; + // @ts-ignore + public static GAME_PROFILE_TOKEN: any; + // @ts-ignore + public static GAME_PROFILE_VALUE_TOKEN: any; + // @ts-ignore + public static GOLDEN_APPLE_TOKEN: any; + // @ts-ignore + public static GOLDEN_APPLE_VALUE_TOKEN: any; + // @ts-ignore + public static HAND_PREFERENCE_TYPE_TOKEN: any; + // @ts-ignore + public static HAND_PREFERENCE_VALUE_TOKEN: any; + // @ts-ignore + public static HINGE_TOKEN: any; + // @ts-ignore + public static HINGE_VALUE_TOKEN: any; + // @ts-ignore + public static HORSE_COLOR_TOKEN: any; + // @ts-ignore + public static HORSE_COLOR_VALUE_TOKEN: any; + // @ts-ignore + public static HORSE_STYLE_TOKEN: any; + // @ts-ignore + public static HORSE_STYLE_VALUE_TOKEN: any; + // @ts-ignore + public static INSTANT_TOKEN: any; + // @ts-ignore + public static INSTANT_VALUE_TOKEN: any; + // @ts-ignore + public static INTEGER_TOKEN: any; + // @ts-ignore + public static INTEGER_VALUE_TOKEN: any; + // @ts-ignore + public static ITEM_SNAPSHOT_TOKEN: any; + // @ts-ignore + public static ITEM_SNAPSHOT_VALUE_TOKEN: any; + // @ts-ignore + public static LAST_ATTACKER_TOKEN: any; + // @ts-ignore + public static LAST_ATTACKER_VALUE_TOKEN: any; + // @ts-ignore + public static LIST_DATA_SERIALIZEABLE_TOKEN: any; + // @ts-ignore + public static LIST_DYE_COLOR_TOKEN: any; + // @ts-ignore + public static LIST_DYE_COLOR_VALUE_TOKEN: any; + // @ts-ignore + public static LIST_ENCHANTMENT_TOKEN: any; + // @ts-ignore + public static LIST_ENCHANTMENT_VALUE_TOKEN: any; + // @ts-ignore + public static LIST_FIREWORK_TOKEN: any; + // @ts-ignore + public static LIST_PATTERN_TOKEN: any; + // @ts-ignore + public static LIST_PATTERN_VALUE_TOKEN: any; + // @ts-ignore + public static LIST_POTION_TOKEN: any; + // @ts-ignore + public static LIST_POTION_VALUE_TOKEN: any; + // @ts-ignore + public static LIST_STRING_VALUE_TOKEN: any; + // @ts-ignore + public static LIST_TEXT_TOKEN: any; + // @ts-ignore + public static LIST_TEXT_VALUE_TOKEN: any; + // @ts-ignore + public static LIST_TRADE_OFFER_TOKEN: any; + // @ts-ignore + public static LIST_VALUE_FIREWORK_TOKEN: any; + // @ts-ignore + public static LIST_VALUE_TRADE_OFFER_TOKEN: any; + // @ts-ignore + public static LLAMA_VARIANT_TOKEN: any; + // @ts-ignore + public static LLAMA_VARIANT_VALUE_TOKEN: any; + // @ts-ignore + public static LOG_AXIS_TOKEN: any; + // @ts-ignore + public static LOG_AXIS_VALUE_TOKEN: any; + // @ts-ignore + public static LONG_TOKEN: any; + // @ts-ignore + public static LONG_VALUE_TOKEN: any; + // @ts-ignore + public static MAP_BODY_VECTOR3D_TOKEN: any; + // @ts-ignore + public static MAP_BODY_VECTOR3D_VALUE_TOKEN: any; + // @ts-ignore + public static MAP_DIRECTION_FLUID_TOKEN: any; + // @ts-ignore + public static MAP_DIRECTION_FLUID_VALUE_TOKEN: any; + // @ts-ignore + public static MAP_UUID_VECTOR3D_TOKEN: any; + // @ts-ignore + public static MAP_UUID_VECTOR3D_VALUE_TOKEN: any; + // @ts-ignore + public static MUSHROOM_TOKEN: any; + // @ts-ignore + public static MUSHROOM_VALUE_TOKEN: any; + // @ts-ignore + public static NOTE_TOKEN: any; + // @ts-ignore + public static NOTE_VALUE_TOKEN: any; + // @ts-ignore + public static OCELOT_TOKEN: any; + // @ts-ignore + public static OCELOT_VALUE_TOKEN: any; + // @ts-ignore + public static OPTIONAL_DOUBLE_TOKEN: any; + // @ts-ignore + public static OPTIONAL_DOUBLE_VALUE_TOKEN: any; + // @ts-ignore + public static OPTIONAL_ENTITY_SNAPSHOT_TOKEN: any; + // @ts-ignore + public static OPTIONAL_ENTITY_SNAPSHOT_VALUE_TOKEN: any; + // @ts-ignore + public static OPTIONAL_ENTITY_VALUE_TOKEN: any; + // @ts-ignore + public static OPTIONAL_POTION_TOKEN: any; + // @ts-ignore + public static OPTIONAL_POTION_VALUE_TOKEN: any; + // @ts-ignore + public static OPTIONAL_PROFESSION_TOKEN: any; + // @ts-ignore + public static OPTIONAL_PROFESSION_VALUE_TOKEN: any; + // @ts-ignore + public static OPTIONAL_TEXT_TOKEN: any; + // @ts-ignore + public static OPTIONAL_TEXT_VALUE_TOKEN: any; + // @ts-ignore + public static OPTIONAL_UUID_TOKEN: any; + // @ts-ignore + public static OPTIONAL_UUID_VALUE_TOKEN: any; + // @ts-ignore + public static PARROT_VARIANT_TOKEN: any; + // @ts-ignore + public static PARROT_VARIANT_VALUE_TOKEN: any; + // @ts-ignore + public static PARTICLE_TYPE_TOKEN: any; + // @ts-ignore + public static PARTICLE_TYPE_VALUE_TOKEN: any; + // @ts-ignore + public static PATTERN_LIST_VALUE_TOKEN: any; + // @ts-ignore + public static PICKUP_TOKEN: any; + // @ts-ignore + public static PICKUP_VALUE_TOKEN: any; + // @ts-ignore + public static PISTON_TOKEN: any; + // @ts-ignore + public static PISTON_VALUE_TOKEN: any; + // @ts-ignore + public static PLANT_TOKEN: any; + // @ts-ignore + public static PLANT_VALUE_TOKEN: any; + // @ts-ignore + public static PORTION_TOKEN: any; + // @ts-ignore + public static PORTION_VALUE_TOKEN: any; + // @ts-ignore + public static POTION_TOKEN: any; + // @ts-ignore + public static POTION_VALUE_TOKEN: any; + // @ts-ignore + public static PRISMARINE_TOKEN: any; + // @ts-ignore + public static PRISMARINE_VALUE_TOKEN: any; + // @ts-ignore + public static QUARTZ_TOKEN: any; + // @ts-ignore + public static QUARTZ_VALUE_TOKEN: any; + // @ts-ignore + public static RABBIT_TOKEN: any; + // @ts-ignore + public static RABBIT_VALUE_TOKEN: any; + // @ts-ignore + public static RAIL_TOKEN: any; + // @ts-ignore + public static RAIL_VALUE_TOKEN: any; + // @ts-ignore + public static ROTATION_TOKEN: any; + // @ts-ignore + public static ROTATION_VALUE_TOKEN: any; + // @ts-ignore + public static SAND_STONE_TOKEN: any; + // @ts-ignore + public static SAND_STONE_VALUE_TOKEN: any; + // @ts-ignore + public static SAND_TOKEN: any; + // @ts-ignore + public static SAND_VALUE_TOKEN: any; + // @ts-ignore + public static SET_BLOCK_TOKEN: any; + // @ts-ignore + public static SET_BLOCK_VALUE_TOKEN: any; + // @ts-ignore + public static SET_DIRECTION_TOKEN: any; + // @ts-ignore + public static SET_DIRECTION_VALUE_TOKEN: any; + // @ts-ignore + public static SET_EQUIPMENT_TYPE_TOKEN: any; + // @ts-ignore + public static SHORT_TOKEN: any; + // @ts-ignore + public static SHRUB_TOKEN: any; + // @ts-ignore + public static SHRUB_VALUE_TOKEN: any; + // @ts-ignore + public static SKULL_TOKEN: any; + // @ts-ignore + public static SKULL_VALUE_TOKEN: any; + // @ts-ignore + public static SLAB_TOKEN: any; + // @ts-ignore + public static SLAB_VALUE_TOKEN: any; + // @ts-ignore + public static STAIR_TOKEN: any; + // @ts-ignore + public static STAIR_VALUE_TOKEN: any; + // @ts-ignore + public static STATISTIC_MAP_TOKEN: any; + // @ts-ignore + public static STATISTIC_MAP_VALUE_TOKEN: any; + // @ts-ignore + public static STONE_TOKEN: any; + // @ts-ignore + public static STONE_VALUE_TOKEN: any; + // @ts-ignore + public static STRING_TOKEN: any; + // @ts-ignore + public static STRING_VALUE_TOKEN: any; + // @ts-ignore + public static STRUCTURE_MODE_TOKEN: any; + // @ts-ignore + public static STRUCTURE_MODE_VALUE_TOKEN: any; + // @ts-ignore + public static TEXT_TOKEN: any; + // @ts-ignore + public static TEXT_VALUE_TOKEN: any; + // @ts-ignore + public static TREE_TOKEN: any; + // @ts-ignore + public static TREE_VALUE_TOKEN: any; + // @ts-ignore + public static UUID_TOKEN: any; + // @ts-ignore + public static UUID_VALUE_TOKEN: any; + // @ts-ignore + public static VECTOR_3D_TOKEN: any; + // @ts-ignore + public static VECTOR_3D_VALUE_TOKEN: any; + // @ts-ignore + public static VECTOR_3I_TOKEN: any; + // @ts-ignore + public static VECTOR_3I_VALUE_TOKEN: any; + // @ts-ignore + public static WALL_TOKEN: any; + // @ts-ignore + public static WALL_VALUE_TOKEN: any; + // @ts-ignore + public static WEIGHTED_ENTITY_ARCHETYPE_COLLECTION_VALUE_TOKEN: any; + // @ts-ignore + public static WEIGHTED_ENTITY_ARCHETYPE_TABLE_TOKEN: any; + // @ts-ignore + public static WEIGHTED_ENTITY_ARCHETYPE_TOKEN: any; + // @ts-ignore + public static WEIGHTED_ENTITY_ARCHETYPE_VALUE_TOKEN: any; + // @ts-ignore + public static WIRE_ATTACHMENT_MAP_TOKEN: any; + // @ts-ignore + public static WIRE_ATTACHMENT_MAP_VALUE_TOKEN: any; + // @ts-ignore + public static WIRE_ATTACHMENT_TYPE_TOKEN: any; + // @ts-ignore + public static WIRE_ATTACHMENT_TYPE_VALUE_TOKEN: any; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.Updater.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.Updater.d.ts new file mode 100644 index 00000000..f65ad577 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.Updater.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + // @ts-ignore + interface Updater { + /** + * Gets the numerical {@code version} that this {@link Updater} + * can accept. + */ + // @ts-ignore + getInputVersion(): number; + /** + * The outputted {@code version} that this {@link Updater} will + * output to. Note that it is possible multiple updaters are able to + * cross between different versions. + */ + // @ts-ignore + getOutputVersion(): number; + /** + * Attempts to update the content of {@code C} as long as the content + * version itself has been abided by. + */ + // @ts-ignore + update(content: java.lang.Object): java.lang.Object; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.CatalogedBy.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.CatalogedBy.d.ts new file mode 100644 index 00000000..4c64f373 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.CatalogedBy.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace annotation { + // @ts-ignore + interface CatalogedBy { + /** + * Gets the class that is the catalog for this {@link CatalogedBy} type. + * Since the type class annotated with {@link CatalogedBy} knows what the + * catalog class is, we can safely rely on the value to get all known + * instances of the {@link CatalogedBy}. + *

This is similar to knowing at runtime that all available + * "EntityType"(s) are cataloged in the "EntityTypes" class.

+ */ + // @ts-ignore + value(): java.lang.Class[]; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.NonnullByDefault.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.NonnullByDefault.d.ts new file mode 100644 index 00000000..958792c6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.NonnullByDefault.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace annotation { + // @ts-ignore + interface NonnullByDefault { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.eventgen.AbsoluteSortPosition.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.eventgen.AbsoluteSortPosition.d.ts new file mode 100644 index 00000000..259208cb --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.eventgen.AbsoluteSortPosition.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace annotation { + namespace eventgen { + // @ts-ignore + interface AbsoluteSortPosition { + /** + * Gets the absolute position for the annotated property. + */ + // @ts-ignore + value(): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.eventgen.FactoryMethod.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.eventgen.FactoryMethod.d.ts new file mode 100644 index 00000000..bd68dc54 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.eventgen.FactoryMethod.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace annotation { + namespace eventgen { + // @ts-ignore + interface FactoryMethod { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.eventgen.GenerateFactoryMethod.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.eventgen.GenerateFactoryMethod.d.ts new file mode 100644 index 00000000..c6dc737a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.eventgen.GenerateFactoryMethod.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace annotation { + namespace eventgen { + // @ts-ignore + interface GenerateFactoryMethod { + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.eventgen.ImplementedBy.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.eventgen.ImplementedBy.d.ts new file mode 100644 index 00000000..7c7c10e4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.eventgen.ImplementedBy.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace annotation { + namespace eventgen { + // @ts-ignore + interface ImplementedBy { + /** + * Gets the class which serves as the base class which the generated class + * for this event interface will extend. + */ + // @ts-ignore + value(): java.lang.Class; + /** + * Gets the priority for this annotation, relative to other annotations in + * the same hierarchy of the event interface. + *

The annotation with the highest priority will be used.

+ */ + // @ts-ignore + priority(): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.eventgen.PropertySettings.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.eventgen.PropertySettings.d.ts new file mode 100644 index 00000000..209b6edb --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.eventgen.PropertySettings.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace annotation { + namespace eventgen { + // @ts-ignore + interface PropertySettings { + /** + * Indicates whether the annotated property is required to be passed in + * to the generated constructor. + */ + // @ts-ignore + requiredParameter(): boolean; + /** + * Indicates whether the annotated property should have methods generated + * for it. + *

If this value is set to true, + * {@link #requiredParameter()} can only be set to false if + * the annotated property is a primitive.

+ */ + // @ts-ignore + generateMethods(): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.eventgen.TransformResult.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.eventgen.TransformResult.d.ts new file mode 100644 index 00000000..b720b508 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.eventgen.TransformResult.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace annotation { + namespace eventgen { + // @ts-ignore + interface TransformResult { + /** + * Gets the name used to match this annotation to a {@link TransformWith} + * annotation. + *

Changing this is only necessary when multiple {@link TransformWith} + * annotations are present in the annotated method's return type's class. + *

+ */ + // @ts-ignore + value(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.eventgen.TransformWith.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.eventgen.TransformWith.d.ts new file mode 100644 index 00000000..84cf8e87 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.eventgen.TransformWith.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace annotation { + namespace eventgen { + // @ts-ignore + interface TransformWith { + /** + * Gets the name used to match this annotation to a {@link TransformResult} + * annotation. + *

Changing this is only necessary when this annotation is present on + * multiple methods in a class, or its superinterfaces/superclass.

+ */ + // @ts-ignore + value(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.eventgen.UseField.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.eventgen.UseField.d.ts new file mode 100644 index 00000000..9f2f560e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.annotation.eventgen.UseField.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace annotation { + namespace eventgen { + // @ts-ignore + interface UseField { + /** + * Indicates whether to use the annotated field directly in the + * generated '{@link #toString()}' method, rather than calling the + * normal accessor method. + *

This should only be used when there are special restrictions + * on calling the accessor (for example, + * {@link AffectEntityEvent#getEntitySnapshots()}).

+ */ + // @ts-ignore + overrideToString(): boolean; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.ban.Ban.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.ban.Ban.Builder.d.ts new file mode 100644 index 00000000..cbd18751 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.ban.Ban.Builder.d.ts @@ -0,0 +1,67 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace ban { + namespace Ban { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the profile to be banned. + *

This can only be done if the {@link BanType} has been set to {@link BanTypes#PROFILE}.

+ */ + // @ts-ignore + profile(profile: org.spongepowered.api.profile.GameProfile): org.spongepowered.api.util.ban.Ban.Builder; + /** + * Sets the IP address to be banned. + *

This can only be done if the {@link BanType} has been set to {@link BanTypes#IP}.

+ */ + // @ts-ignore + address(address: java.net.InetAddress): org.spongepowered.api.util.ban.Ban.Builder; + /** + * Sets the type of the ban. + */ + // @ts-ignore + type(type: org.spongepowered.api.util.ban.BanType): org.spongepowered.api.util.ban.Ban.Builder; + /** + * Sets the reason for the ban. + *

If the specified reason is null, or not provided, + * then the reason will be be available on the created ban.

+ */ + // @ts-ignore + reason(reason: org.spongepowered.api.text.Text): org.spongepowered.api.util.ban.Ban.Builder; + /** + * Sets the date that the ban starts. + */ + // @ts-ignore + startDate(instant: java.time.Instant): org.spongepowered.api.util.ban.Ban.Builder; + /** + * Sets the expiration date of the ban, or removes it. + */ + // @ts-ignore + expirationDate(instant: java.time.Instant): org.spongepowered.api.util.ban.Ban.Builder; + /** + * Sets the source of the ban, or removes it if {@code null} is passed + * in. + */ + // @ts-ignore + source(source: org.spongepowered.api.command.CommandSource): org.spongepowered.api.util.ban.Ban.Builder; + /** + * Sets the source of the ban as a {@link Text}, or removes it if + * {@code null} is passed in. + */ + // @ts-ignore + source(source: org.spongepowered.api.text.Text): org.spongepowered.api.util.ban.Ban.Builder; + /** + * Creates a new Ban from this builder. + */ + // @ts-ignore + build(): org.spongepowered.api.util.ban.Ban; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.ban.Ban.Ip.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.ban.Ban.Ip.d.ts new file mode 100644 index 00000000..7ffe3d77 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.ban.Ban.Ip.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace ban { + namespace Ban { + // @ts-ignore + interface Ip extends org.spongepowered.api.util.ban.Ban { + /** + * Gets the address this ban applies to. + */ + // @ts-ignore + getAddress(): java.net.InetAddress; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.ban.Ban.Profile.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.ban.Ban.Profile.d.ts new file mode 100644 index 00000000..4394ab20 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.ban.Ban.Profile.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace ban { + namespace Ban { + // @ts-ignore + interface Profile extends org.spongepowered.api.util.ban.Ban { + /** + * Gets the {@link GameProfile} this ban applies to. + */ + // @ts-ignore + getProfile(): org.spongepowered.api.profile.GameProfile; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.ban.Ban.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.ban.Ban.d.ts new file mode 100644 index 00000000..02f73d26 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.ban.Ban.d.ts @@ -0,0 +1,76 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace ban { + // @ts-ignore + interface Ban { + /** + * Creates a new Builder. + */ + // @ts-ignore + builder(): org.spongepowered.api.util.ban.Ban.Builder; + /** + * Creates an indefinite ban on a profile. + */ + // @ts-ignore + of(profile: org.spongepowered.api.profile.GameProfile): org.spongepowered.api.util.ban.Ban; + /** + * Creates an indefinite ban with a reason on a profile. + */ + // @ts-ignore + of(profile: org.spongepowered.api.profile.GameProfile, reason: org.spongepowered.api.text.Text): org.spongepowered.api.util.ban.Ban; + /** + * Gets the type of this ban. + */ + // @ts-ignore + getType(): org.spongepowered.api.util.ban.BanType; + /** + * Gets the reason for the ban, if available. + */ + // @ts-ignore + getReason(): java.util.Optional; + /** + * Gets the creation date of the ban. + *

Note that this {@link Instant} has no effect on whether or not a ban is + * active. Any ban for which {@link BanService#hasBan(Ban)} returns + * true will be used (when checking if a player can join, + * for example), regardless of its creation date.

+ */ + // @ts-ignore + getCreationDate(): java.time.Instant; + /** + * Gets the source that created this ban, if available. + *

Depending on the implementation, the returned {@link Text} + * may represent a {@link CommandSource}. {@link #getBanCommandSource()} can be + * used to attempt to convert the source to a {@link CommandSource}.

+ */ + // @ts-ignore + getBanSource(): java.util.Optional; + /** + * Gets the source that created this ban in {@link CommandSource} form, + * if available. + *

Depending on the implementation, it may not be possible to determine + * the {@link CommandSource} responsible for this ban. Because of this, + * it is recommended to check {@link #getBanSource()} if this method + * returns {@link Optional#empty()}.

+ */ + // @ts-ignore + getBanCommandSource(): java.util.Optional; + /** + * Gets the expiration date of this ban, if available. + */ + // @ts-ignore + getExpirationDate(): java.util.Optional; + /** + * Gets whether this ban is indefinitely long, e.g. has no expiration date. + */ + // @ts-ignore + isIndefinite(): boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.ban.BanType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.ban.BanType.d.ts new file mode 100644 index 00000000..5a140c8a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.ban.BanType.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace ban { + // @ts-ignore + interface BanType extends org.spongepowered.api.CatalogType { + /** + * Gets the {@link Ban} class that this type represents. + */ + // @ts-ignore + getBanClass(): java.lang.Class; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.ban.BanTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.ban.BanTypes.d.ts new file mode 100644 index 00000000..de7876b9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.ban.BanTypes.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace ban { + // @ts-ignore + class BanTypes extends java.lang.Object { + // @ts-ignore + public static IP: org.spongepowered.api.util.ban.BanType; + // @ts-ignore + public static PROFILE: org.spongepowered.api.util.ban.BanType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.blockray.BlockRay.BlockRayBuilder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.blockray.BlockRay.BlockRayBuilder.d.ts new file mode 100644 index 00000000..14975477 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.blockray.BlockRay.BlockRayBuilder.d.ts @@ -0,0 +1,96 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace blockray { + namespace BlockRay { + // @ts-ignore + class BlockRayBuilder extends java.lang.Object { + /** + * Adds the filter to the block ray. + * The block ray will skip over blocks that do not pass this predicate. + * This is optional. + * Multiple filters will be ANDed together. + */ + // @ts-ignore + public skipFilter(skipFilter: java.util.function$.Predicate): org.spongepowered.api.util.blockray.BlockRay.BlockRayBuilder; + /** + * Adds filters to the block ray. + * The block ray will skip over blocks that do not pass this predicate. + * This is optional. + * Multiple filters will be ANDed together. + */ + // @ts-ignore + public skipFilter(skipFilters: java.util.function$.Predicate): org.spongepowered.api.util.blockray.BlockRay.BlockRayBuilder; + /** + * Adds the filter to the block ray. + * The block ray will end if a block does not pass this predicate. + * This is optional. + * Multiple filters will be ANDed together. + */ + // @ts-ignore + public stopFilter(stopFilter: java.util.function$.Predicate): org.spongepowered.api.util.blockray.BlockRay.BlockRayBuilder; + /** + * Adds filters to the block ray. + * The block ray will end if a block does not pass this predicate. + * This is optional. + * Multiple filters will be ANDed together. + */ + // @ts-ignore + public stopFilter(stopFilters: java.util.function$.Predicate): org.spongepowered.api.util.blockray.BlockRay.BlockRayBuilder; + /** + * Sets the direction and ending location. This or setting the direction + * is required and can only be done once. + */ + // @ts-ignore + public to(end: any /*Vector3d*/): org.spongepowered.api.util.blockray.BlockRay.BlockRayBuilder; + /** + * Sets the direction. This or setting the ending location is required + * and can only be done once. + */ + // @ts-ignore + public direction(direction: any /*Vector3d*/): org.spongepowered.api.util.blockray.BlockRay.BlockRayBuilder; + /** + * Sets the maximum distance before stopping. + * This is a safeguard to prevent infinite iteration. + * Default value is 1000. Use a negative value to disable this. + */ + // @ts-ignore + public distanceLimit(distanceLimit: number): org.spongepowered.api.util.blockray.BlockRay.BlockRayBuilder; + /** + * Sets whether or not to perform narrow phase intersections. The + * narrow phase performs intersections with the block selection boxes + * if they are smaller than a voxel. This is necessary to obtain + * correct intersections with small blocks like: signs, buttons, + * fences, etc. This is enabled by default. + */ + // @ts-ignore + public narrowPhase(enable: boolean): org.spongepowered.api.util.blockray.BlockRay.BlockRayBuilder; + /** + * Gets the starting position of the block ray. Given here since some + * filters might require it. + */ + // @ts-ignore + public position(): any /*Vector3d*/; + /** + * Returns a block ray build from the settings. An ending location or + * direction needs to have been set. + */ + // @ts-ignore + public build(): org.spongepowered.api.util.blockray.BlockRay; + // @ts-ignore + public iterator(): java.util.Iterator; + /** + * Iterates the built block ray until the end + * and returns the last hit, if any. + */ + // @ts-ignore + public end(): java.util.Optional; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.blockray.BlockRay.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.blockray.BlockRay.d.ts new file mode 100644 index 00000000..f76203e3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.blockray.BlockRay.d.ts @@ -0,0 +1,73 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace blockray { + // @ts-ignore + class BlockRay extends java.lang.Object { + /** + * Resets the iterator; it will iterate from the starting location again. + */ + // @ts-ignore + public reset(): void; + // @ts-ignore + public hasNext(): boolean; + // @ts-ignore + public next(): org.spongepowered.api.util.blockray.BlockRayHit; + /** + * Traces the block ray to the end and returns the last block + * accepted by the filter, or none if the extent or block limit was reached. + * This advances the iterator. + */ + // @ts-ignore + public end(): java.util.Optional; + /** + * Initializes a block ray builder with the given starting location. + */ + // @ts-ignore + public static from(start: org.spongepowered.api.world.Location): org.spongepowered.api.util.blockray.BlockRay.BlockRayBuilder; + /** + * Initializes a block ray builder with the given starting location. + */ + // @ts-ignore + public static from(extent: org.spongepowered.api.world.extent.Extent, start: any /*Vector3d*/): org.spongepowered.api.util.blockray.BlockRay.BlockRayBuilder; + /** + * Initializes a block ray builder for the entity's eye. + * If the eye location isn't defined for the entity, the + * regular location is used. This sets both the starting + * point and direction. + */ + // @ts-ignore + public static from(entity: org.spongepowered.api.entity.Entity): org.spongepowered.api.util.blockray.BlockRay.BlockRayBuilder; + /** + * A filter that accepts all blocks. A {@link BlockRay} combined with no + * other filter than this one could run endlessly. + */ + // @ts-ignore + public static allFilter(): java.util.function$.Predicate; + /** + * A block type filter that only permits air as a transparent block. + *

This is provided for convenience, as the default behavior in previous + * systems was to pass through air blocks only until a non-air block was + * hit.

+ */ + // @ts-ignore + public static onlyAirFilter(): java.util.function$.Predicate; + /** + * A filter that only allows blocks of a certain type. + */ + // @ts-ignore + public static blockTypeFilter(type: org.spongepowered.api.block.BlockType): java.util.function$.Predicate; + /** + * Extends a filter by a number of blocks, regardless of what the extended + * filter does. + */ + // @ts-ignore + public static continueAfterFilter(filter: java.util.function$.Predicate, numberOfBlocks: number): java.util.function$.Predicate; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.blockray.BlockRayHit.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.blockray.BlockRayHit.d.ts new file mode 100644 index 00000000..ae3ea24c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.blockray.BlockRayHit.d.ts @@ -0,0 +1,101 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace blockray { + // @ts-ignore + class BlockRayHit extends java.lang.Object { + /** + * Constructs a new block ray hit from the extent that contains it, the + * coordinates and the face that was entered. + */ + // @ts-ignore + constructor(extent: org.spongepowered.api.world.extent.Extent, x: number, y: number, z: number, direction: any /*Vector3d*/, normal: any /*Vector3d*/) + /** + * Returns the extent that contains the block. + */ + // @ts-ignore + public getExtent(): org.spongepowered.api.world.extent.Extent; + /** + * Returns the x coordinate of the intersection. + */ + // @ts-ignore + public getX(): number; + /** + * Returns the y coordinate of the intersection. + */ + // @ts-ignore + public getY(): number; + /** + * Returns the z coordinate of the intersection. + */ + // @ts-ignore + public getZ(): number; + /** + * Returns the position of the intersection. + */ + // @ts-ignore + public getPosition(): any /*Vector3d*/; + /** + * Returns the x coordinate of the block that was hit. + */ + // @ts-ignore + public getBlockX(): number; + /** + * Returns the y coordinate of the block that was hit. + */ + // @ts-ignore + public getBlockY(): number; + /** + * Returns the z coordinate of the block that was hit. + */ + // @ts-ignore + public getBlockZ(): number; + /** + * Returns the position of the block that was hit. + */ + // @ts-ignore + public getBlockPosition(): any /*Vector3i*/; + /** + * Returns the location of the hit block, not the intersection + * location. + */ + // @ts-ignore + public getLocation(): org.spongepowered.api.world.Location; + /** + * Returns the direction of the ray as a normalized vector. + */ + // @ts-ignore + public getDirection(): any /*Vector3d*/; + /** + * Returns the normal of the entered face, edge or corner. + * Edges and corners use the average of the surrounding faces. + */ + // @ts-ignore + public getNormal(): any /*Vector3d*/; + /** + * Returns all the intersected faces. In most cases, this is only one face, + * but if the ray enters an edge, two faces are returned (the ones + * that form it). Similarly for corners, but three faces. + */ + // @ts-ignore + public getFaces(): org.spongepowered.api.util.Direction[]; + /** + * Calls the mapper function on the extent and position. + */ + // @ts-ignore + public map(mapper: java.util.function$.BiFunction): java.lang.Object; + /** + * Calls the mapper function on the extent and block position. + */ + // @ts-ignore + public mapBlock(mapper: java.util.function$.BiFunction): java.lang.Object; + // @ts-ignore + public toString(): string; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.file.CopyFileVisitor.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.file.CopyFileVisitor.d.ts new file mode 100644 index 00000000..6aa4a768 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.file.CopyFileVisitor.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace file { + // @ts-ignore + class CopyFileVisitor extends java.nio.file.SimpleFileVisitor { + /** + * Constructs a new {@link CopyFileVisitor} which will copy the visited + * file paths to the specified target directory. + *

Note: The target directory must not exist since the visitor + * will also copy the root directory to the specified location.

+ */ + // @ts-ignore + constructor(target: java.nio.file.Path, options: java.nio.file.CopyOption) + // @ts-ignore + public preVisitDirectory(dir: java.nio.file.Path, attrs: java.nio.file.attribute.BasicFileAttributes): java.nio.file.FileVisitResult; + // @ts-ignore + public visitFile(file: java.nio.file.Path, attrs: java.nio.file.attribute.BasicFileAttributes): java.nio.file.FileVisitResult; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.file.DeleteFileVisitor.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.file.DeleteFileVisitor.d.ts new file mode 100644 index 00000000..b5042291 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.file.DeleteFileVisitor.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace file { + // @ts-ignore + class DeleteFileVisitor extends java.nio.file.SimpleFileVisitor { + // @ts-ignore + constructor() + // @ts-ignore + public static INSTANCE: org.spongepowered.api.util.file.DeleteFileVisitor; + // @ts-ignore + public visitFile(file: java.nio.file.Path, attrs: java.nio.file.attribute.BasicFileAttributes): java.nio.file.FileVisitResult; + // @ts-ignore + public postVisitDirectory(dir: java.nio.file.Path, exc: java.io.IOException): java.nio.file.FileVisitResult; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.file.ForwardingFileVisitor.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.file.ForwardingFileVisitor.d.ts new file mode 100644 index 00000000..1e77236d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.file.ForwardingFileVisitor.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace file { + // @ts-ignore + abstract class ForwardingFileVisitor extends java.lang.Object { + // @ts-ignore + constructor(visitor: java.nio.file.FileVisitor) + // @ts-ignore + public preVisitDirectory(dir: java.lang.Object, attrs: java.nio.file.attribute.BasicFileAttributes): java.nio.file.FileVisitResult; + // @ts-ignore + public visitFile(file: java.lang.Object, attrs: java.nio.file.attribute.BasicFileAttributes): java.nio.file.FileVisitResult; + // @ts-ignore + public visitFileFailed(file: java.lang.Object, exc: java.io.IOException): java.nio.file.FileVisitResult; + // @ts-ignore + public postVisitDirectory(dir: java.lang.Object, exc: java.io.IOException): java.nio.file.FileVisitResult; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.generator.GeneratorUtils.LocalClassLoader.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.generator.GeneratorUtils.LocalClassLoader.d.ts new file mode 100644 index 00000000..d482f8f3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.generator.GeneratorUtils.LocalClassLoader.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace generator { + namespace GeneratorUtils { + // @ts-ignore + class LocalClassLoader extends java.lang.ClassLoader { + /** + * Creates a new {@link LocalClassLoader}. + */ + // @ts-ignore + constructor(parent: java.lang.ClassLoader) + /** + * Defines the class by name and bytecode array. + */ + // @ts-ignore + public defineClass(name: string, b: number): java.lang.Class; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.generator.GeneratorUtils.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.generator.GeneratorUtils.d.ts new file mode 100644 index 00000000..3a8b3b56 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.generator.GeneratorUtils.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace generator { + // @ts-ignore + class GeneratorUtils extends java.lang.Object { + /** + * Gets a class name with the provided classifier. + */ + // @ts-ignore + public static getClassName(targetPackage: string, clazz: java.lang.Class, classifier: string): string; + /** + * Insert the necessary methods to box a primitive type (if the given type + * is a primitive object). + */ + // @ts-ignore + public static visitBoxingMethod(mv: any /*MethodVisitor*/, type: any /*Type*/): void; + /** + * Insert the necessary methods to unbox a primitive type (if the given type + * is a primitive). + */ + // @ts-ignore + public static visitUnboxingMethod(mv: any /*MethodVisitor*/, type: any /*Type*/): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.generator.dummy.DummyClassGenerator.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.generator.dummy.DummyClassGenerator.d.ts new file mode 100644 index 00000000..462ca573 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.generator.dummy.DummyClassGenerator.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace generator { + namespace dummy { + // @ts-ignore + class DummyClassGenerator extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Creates a new class prepared to be loaded into the {@link ClassLoader}. + */ + // @ts-ignore + public createClass(type: java.lang.Class, name: string, exceptionType: java.lang.Class): number[]; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.generator.dummy.DummyClassGeneratorProvider.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.generator.dummy.DummyClassGeneratorProvider.d.ts new file mode 100644 index 00000000..20d72283 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.generator.dummy.DummyClassGeneratorProvider.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace generator { + namespace dummy { + // @ts-ignore + class DummyClassGeneratorProvider extends java.lang.Object { + /** + * Creates a new dummy class provider. + */ + // @ts-ignore + constructor(targetPackage: string) + /** + * Creates a new class extended based on the provided {@code type} with the + * provided {@code exceptionType} to throw for all methods provided by the + * target class. + */ + // @ts-ignore + public create(type: java.lang.Class, exceptionType: java.lang.Class): java.lang.Class; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.generator.dummy.DummyObjectProvider.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.generator.dummy.DummyObjectProvider.d.ts new file mode 100644 index 00000000..f2dbfe56 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.generator.dummy.DummyObjectProvider.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace generator { + namespace dummy { + // @ts-ignore + class DummyObjectProvider extends java.lang.Object { + // @ts-ignore + constructor() + /** + * Creates a new dummy class implementing the specified interface. + */ + // @ts-ignore + public static createFor(type: java.lang.Class, fieldName: string): java.lang.Object; + /** + * Creates a new dummy class implementing the specified interface. + */ + // @ts-ignore + public static createExtendedFor(type: java.lang.Class, fieldName: string): java.lang.Object; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.metric.MetricsConfigManager.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.metric.MetricsConfigManager.d.ts new file mode 100644 index 00000000..9908f99c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.metric.MetricsConfigManager.d.ts @@ -0,0 +1,54 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace metric { + // @ts-ignore + interface MetricsConfigManager { + /** + * Gets whether permission for third-party metrics gathering has been + * granted for a specific plugin (or the global permission if the plugin + * has not got a specific permission or lack thereof). + *

The value returned from this should not be stored. As the + * configuration/permission can be updated at any time, it is best to + * check this each time metrics collection is due to occur.

+ */ + // @ts-ignore + areMetricsEnabled(container: org.spongepowered.api.plugin.PluginContainer): boolean; + /** + * Gets whether permission for third-party metrics gathering has been + * granted for a specific plugin (or the global permission if the plugin + * has not got a specific permission or lack thereof). + *

The value returned from this should not be stored. As the + * configuration/permission can be updated at any time, it is best to + * check this each time server metric collection is due to occur.

+ */ + // @ts-ignore + areMetricsEnabled(plugin: java.lang.Object): boolean; + /** + * Gets the current global state of collection. The collection state determines + * how data collection should be handled. + * Global state determines how an undefined state for a specific plugin should be handled. + * If a plugin has a state specified then it will override the global state. + * {@link Tristate#TRUE} Permits data collection + * {@link Tristate#FALSE} Disallows data collection, this has been explicitly set + * {@link Tristate#UNDEFINED} Disallows data collection, this is set by default + */ + // @ts-ignore + getGlobalCollectionState(): org.spongepowered.api.util.Tristate; + /** + * Gets the current state of collection for the specified plugin. The collection state + * determines how data collection should be handled. + * {@link Tristate#TRUE} Permits data collection + * {@link Tristate#FALSE} Disallows data collection, this has been explicitly set + * {@link Tristate#UNDEFINED} Inherit from {@link MetricsConfigManager#getGlobalCollectionState()}, this is set by default + */ + // @ts-ignore + getCollectionState(container: org.spongepowered.api.plugin.PluginContainer): org.spongepowered.api.util.Tristate; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.rotation.Rotation.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.rotation.Rotation.d.ts new file mode 100644 index 00000000..24f7218e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.rotation.Rotation.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace rotation { + // @ts-ignore + interface Rotation extends org.spongepowered.api.CatalogType { + /** + * The angle in degrees. + */ + // @ts-ignore + getAngle(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.rotation.Rotations.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.rotation.Rotations.d.ts new file mode 100644 index 00000000..8585ac4d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.rotation.Rotations.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace rotation { + // @ts-ignore + class Rotations extends java.lang.Object { + // @ts-ignore + public static BOTTOM: org.spongepowered.api.util.rotation.Rotation; + // @ts-ignore + public static BOTTOM_LEFT: org.spongepowered.api.util.rotation.Rotation; + // @ts-ignore + public static BOTTOM_RIGHT: org.spongepowered.api.util.rotation.Rotation; + // @ts-ignore + public static LEFT: org.spongepowered.api.util.rotation.Rotation; + // @ts-ignore + public static RIGHT: org.spongepowered.api.util.rotation.Rotation; + // @ts-ignore + public static TOP: org.spongepowered.api.util.rotation.Rotation; + // @ts-ignore + public static TOP_LEFT: org.spongepowered.api.util.rotation.Rotation; + // @ts-ignore + public static TOP_RIGHT: org.spongepowered.api.util.rotation.Rotation; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.ChanceTable.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.ChanceTable.d.ts new file mode 100644 index 00000000..22012a48 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.ChanceTable.d.ts @@ -0,0 +1,32 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + // @ts-ignore + class ChanceTable extends org.spongepowered.api.util.weighted.RandomObjectTable { + /** + * Creates a new {@link ChanceTable} with a default roll count of 1. + */ + // @ts-ignore + constructor() + /** + * Creates a new {@link ChanceTable}. + */ + // @ts-ignore + constructor(rolls: number) + // @ts-ignore + public get(rand: java.util.Random): java.util.List; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.EmptyObject.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.EmptyObject.d.ts new file mode 100644 index 00000000..a3cd3f25 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.EmptyObject.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + // @ts-ignore + class EmptyObject extends org.spongepowered.api.util.weighted.TableEntry implements org.spongepowered.api.data.DataSerializable { + /** + * Creates a new {@link EmptyObject} with the given weight. + */ + // @ts-ignore + constructor(weight: number) + // @ts-ignore + public getContentVersion(): number; + // @ts-ignore + public toContainer(): org.spongepowered.api.data.DataContainer; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.LootTable.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.LootTable.d.ts new file mode 100644 index 00000000..24bca15c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.LootTable.d.ts @@ -0,0 +1,55 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + // @ts-ignore + class LootTable extends java.lang.Object { + /** + * Creates a new {@link LootTable}. + */ + // @ts-ignore + constructor() + /** + * Adds a table to the pool. + */ + // @ts-ignore + public addTable(table: org.spongepowered.api.util.weighted.RandomObjectTable): void; + /** + * Adds all tables from the given {@link LootTable} to this LootTable's pool. + */ + // @ts-ignore + public addAll(other: org.spongepowered.api.util.weighted.LootTable): void; + /** + * Removes a table from the pool. + */ + // @ts-ignore + public removeTable(table: org.spongepowered.api.util.weighted.RandomObjectTable): boolean; + /** + * Gets all tables in the pool. + */ + // @ts-ignore + public getTables(): java.util.List; + /** + * Clears all tables from the pool. + */ + // @ts-ignore + public clearPool(): void; + /** + * Gets a List of objects as retrieved from all pools. + */ + // @ts-ignore + public get(rand: java.util.Random): java.util.List; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.NestedTableEntry.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.NestedTableEntry.d.ts new file mode 100644 index 00000000..157f0fe1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.NestedTableEntry.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + // @ts-ignore + class NestedTableEntry extends org.spongepowered.api.util.weighted.TableEntry { + /** + * Creates a new {@link NestedTableEntry} with the provided + * {@code weight} and {@link RandomObjectTable table}. + */ + // @ts-ignore + constructor(weight: number, table: org.spongepowered.api.util.weighted.RandomObjectTable) + /** + * Retrieves entries from the nested table. + */ + // @ts-ignore + public get(rand: java.util.Random): java.util.List; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.RandomObjectTable.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.RandomObjectTable.d.ts new file mode 100644 index 00000000..43573e18 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.RandomObjectTable.d.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + // @ts-ignore + abstract class RandomObjectTable extends java.lang.Object { + /** + * Creates a new {@link RandomObjectTable} with the provided number of rolls. + */ + // @ts-ignore + constructor(rolls: number) + /** + * Creates a new {@link RandomObjectTable} with the provided number of rolls. + */ + // @ts-ignore + constructor(rolls: org.spongepowered.api.util.weighted.VariableAmount) + /** + * Gets the number of times this table will roll while retrieving items. For + * each roll a complete pass through of the table will occur. + */ + // @ts-ignore + public getRolls(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of times this table will roll while retrieving items. + */ + // @ts-ignore + public setRolls(rolls: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of times this table will roll while retrieving items. + */ + // @ts-ignore + public setRolls(rolls: number): void; + // @ts-ignore + public add(entry: org.spongepowered.api.util.weighted.TableEntry): boolean; + /** + * Adds the given object to the table with the given weight. + */ + // @ts-ignore + public add(object: java.lang.Object, weight: number): boolean; + // @ts-ignore + public addAll(c: java.util.Collection): boolean; + // @ts-ignore + public contains(o: java.lang.Object): boolean; + /** + * Gets if this table contains the given object, the object may either be a + * {@link TableEntry} or the object contained within. + */ + // @ts-ignore + public containsObject(obj: java.lang.Object): boolean; + // @ts-ignore + public containsAll(c: java.util.Collection): boolean; + /** + * Gets if this table contains all of the given objects, the objects may + * either be {@link TableEntry}s or the objects contained within the + * entries. + */ + // @ts-ignore + public containsAllObjects(c: java.util.Collection): boolean; + // @ts-ignore + public isEmpty(): boolean; + // @ts-ignore + public remove(entry: java.lang.Object): boolean; + /** + * Removes the first instance of an entry in this table which is a + * {@link WeightedObject} entry and contains the given object. + */ + // @ts-ignore + public removeObject(object: java.lang.Object): boolean; + // @ts-ignore + public removeAll(c: java.util.Collection): boolean; + // @ts-ignore + public retainAll(c: java.util.Collection): boolean; + // @ts-ignore + public clear(): void; + // @ts-ignore + public size(): number; + /** + * Performs a number of rolls according to the number of rolls defined by + * {@link #getRolls()} and returns items from the table for each roll. + */ + // @ts-ignore + public abstract get(rand: java.util.Random): java.util.List; + /** + * Gets the entries in the table. Note that the specific sub class of this + * abstract table will determine the context that the entry weights should + * be interpreted in (either weights or chances). + */ + // @ts-ignore + public getEntries(): java.util.List; + // @ts-ignore + public iterator(): java.util.Iterator; + // @ts-ignore + public toArray(): java.lang.Object[]; + // @ts-ignore + public toArray(a: java.lang.Object): java.lang.Object[]; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.SeededVariableAmount.WrappedVariableAmount.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.SeededVariableAmount.WrappedVariableAmount.d.ts new file mode 100644 index 00000000..09f8d26c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.SeededVariableAmount.WrappedVariableAmount.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + namespace SeededVariableAmount { + // @ts-ignore + class WrappedVariableAmount extends java.lang.Object implements org.spongepowered.api.util.weighted.SeededVariableAmount { + /** + * Creates a new WrappedVariableAmount wrapping the given + * {@link VariableAmount}. + */ + // @ts-ignore + constructor(inner: org.spongepowered.api.util.weighted.VariableAmount) + // @ts-ignore + public getAmount(rand: java.util.Random, seed: java.lang.Object): number; + // @ts-ignore + public toString(): string; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.SeededVariableAmount.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.SeededVariableAmount.d.ts new file mode 100644 index 00000000..a594b716 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.SeededVariableAmount.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + // @ts-ignore + interface SeededVariableAmount { + /** + * Creates a new 'fixed' variable amount, calls to {@link #getAmount} will + * always return the fixed value. + */ + // @ts-ignore + fixed(value: number): org.spongepowered.api.util.weighted.SeededVariableAmount; + /** + * Creates a new variable amount wrapping the given {@link VariableAmount}, + * calls to {@link #getAmount} will always return wrapped amounts value. + */ + // @ts-ignore + wrapped(value: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.util.weighted.SeededVariableAmount; + /** + * Gets an instance of the variable amount depending on the given random + * object and the seed object. + */ + // @ts-ignore + getAmount(rand: java.util.Random, seed: java.lang.Object): number; + /** + * Gets the amount as if from {@link #getAmount(Random, Object)} but floored + * to the nearest integer equivalent. + */ + // @ts-ignore + getFlooredAmount(rand: java.util.Random, seed: java.lang.Object): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.TableEntry.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.TableEntry.d.ts new file mode 100644 index 00000000..125dc2ff --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.TableEntry.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + // @ts-ignore + abstract class TableEntry extends java.lang.Object { + /** + * Creates a new {@link TableEntry} with the desired {@code weight}. + */ + // @ts-ignore + constructor(weight: number) + /** + * Gets the weight of this entry. + */ + // @ts-ignore + public getWeight(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.UnmodifiableWeightedTable.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.UnmodifiableWeightedTable.d.ts new file mode 100644 index 00000000..976417d7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.UnmodifiableWeightedTable.d.ts @@ -0,0 +1,92 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + // @ts-ignore + class UnmodifiableWeightedTable extends org.spongepowered.api.util.weighted.WeightedTable { + /** + * Creates a new {@link UnmodifiableWeightedTable} with the provided + * {@link WeightedTable}. + */ + // @ts-ignore + constructor(table: org.spongepowered.api.util.weighted.WeightedTable) + /** + * Creates a new {@link UnmodifiableWeightedTable} with the provided + * {@link WeightedTable} and {@code rolls}. + */ + // @ts-ignore + constructor(table: org.spongepowered.api.util.weighted.WeightedTable, rolls: number) + /** + * Creates a new {@link UnmodifiableWeightedTable} with the provided + * {@link WeightedTable} and {@link VariableAmount rolls}. + */ + // @ts-ignore + constructor(table: org.spongepowered.api.util.weighted.WeightedTable, rolls: org.spongepowered.api.util.weighted.VariableAmount) + // @ts-ignore + public add(entry: org.spongepowered.api.util.weighted.TableEntry): boolean; + // @ts-ignore + public add(object: java.lang.Object, weight: number): boolean; + // @ts-ignore + public addAll(c: java.util.Collection): boolean; + // @ts-ignore + public setRolls(rolls: org.spongepowered.api.util.weighted.VariableAmount): void; + // @ts-ignore + public setRolls(rolls: number): void; + // @ts-ignore + public remove(entry: java.lang.Object): boolean; + // @ts-ignore + public removeObject(entry: java.lang.Object): boolean; + // @ts-ignore + public removeAll(c: java.util.Collection): boolean; + // @ts-ignore + public removeIf(filter: java.util.function$.Predicate): boolean; + // @ts-ignore + public retainAll(c: java.util.Collection): boolean; + // @ts-ignore + public clear(): void; + // @ts-ignore + public iterator(): java.util.Iterator; + // @ts-ignore + public contains(o: java.lang.Object): boolean; + // @ts-ignore + public getRolls(): org.spongepowered.api.util.weighted.VariableAmount; + // @ts-ignore + public get(rand: java.util.Random): java.util.List; + // @ts-ignore + public containsObject(obj: java.lang.Object): boolean; + // @ts-ignore + public containsAll(c: java.util.Collection): boolean; + // @ts-ignore + public containsAllObjects(c: java.util.Collection): boolean; + // @ts-ignore + public isEmpty(): boolean; + // @ts-ignore + public size(): number; + // @ts-ignore + public getEntries(): java.util.List; + // @ts-ignore + public toArray(): java.lang.Object[]; + // @ts-ignore + public toArray(a: java.lang.Object): java.lang.Object[]; + // @ts-ignore + public spliterator(): java.util.Spliterator; + // @ts-ignore + public stream(): java.util.stream.Stream; + // @ts-ignore + public parallelStream(): java.util.stream.Stream; + // @ts-ignore + public forEach(action: java.util.function$.Consumer): void; + // @ts-ignore + public toString(): string; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.VariableAmount.BaseAndAddition.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.VariableAmount.BaseAndAddition.d.ts new file mode 100644 index 00000000..c8c11060 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.VariableAmount.BaseAndAddition.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + namespace VariableAmount { + // @ts-ignore + class BaseAndAddition extends java.lang.Object implements org.spongepowered.api.util.weighted.VariableAmount { + // @ts-ignore + public getAmount(rand: java.util.Random): number; + // @ts-ignore + public toString(): string; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toContainer(): org.spongepowered.api.data.DataContainer; + // @ts-ignore + public getContentVersion(): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.VariableAmount.BaseAndVariance.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.VariableAmount.BaseAndVariance.d.ts new file mode 100644 index 00000000..eb140848 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.VariableAmount.BaseAndVariance.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + namespace VariableAmount { + // @ts-ignore + class BaseAndVariance extends java.lang.Object implements org.spongepowered.api.util.weighted.VariableAmount { + // @ts-ignore + public getAmount(rand: java.util.Random): number; + // @ts-ignore + public toString(): string; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toContainer(): org.spongepowered.api.data.DataContainer; + // @ts-ignore + public getContentVersion(): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.VariableAmount.Fixed.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.VariableAmount.Fixed.d.ts new file mode 100644 index 00000000..3be0f2da --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.VariableAmount.Fixed.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + namespace VariableAmount { + // @ts-ignore + class Fixed extends java.lang.Object implements org.spongepowered.api.util.weighted.VariableAmount { + // @ts-ignore + public getAmount(rand: java.util.Random): number; + // @ts-ignore + public toString(): string; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toContainer(): org.spongepowered.api.data.DataContainer; + // @ts-ignore + public getContentVersion(): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.VariableAmount.OptionalAmount.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.VariableAmount.OptionalAmount.d.ts new file mode 100644 index 00000000..b7f3de1e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.VariableAmount.OptionalAmount.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + namespace VariableAmount { + // @ts-ignore + class OptionalAmount extends java.lang.Object implements org.spongepowered.api.util.weighted.VariableAmount { + // @ts-ignore + public getAmount(rand: java.util.Random): number; + // @ts-ignore + public toString(): string; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toContainer(): org.spongepowered.api.data.DataContainer; + // @ts-ignore + public getContentVersion(): number; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.VariableAmount.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.VariableAmount.d.ts new file mode 100644 index 00000000..9dff9a48 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.VariableAmount.d.ts @@ -0,0 +1,112 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + // @ts-ignore + interface VariableAmount extends org.spongepowered.api.data.DataSerializable { + /** + * Creates a new 'fixed' variable amount, calls to {@link #getAmount} will + * always return the fixed value. + */ + // @ts-ignore + fixed(value: number): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Creates a new variable amount which return values between the given min + * (inclusive) and max (exclusive). + */ + // @ts-ignore + range(min: number, max: number): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Creates a new variable about which has a base and variance. The final + * amount will be the base amount plus or minus a random amount between zero + * (inclusive) and the variance (exclusive). + */ + // @ts-ignore + baseWithVariance(base: number, variance: number): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Creates a new variable about which has a base and variance. The final + * amount will be the base amount plus or minus a random amount between zero + * (inclusive) and the variance (exclusive). + */ + // @ts-ignore + baseWithVariance(base: number, variance: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Creates a new variable amount which has a base and an additional amount. + * The final amount will be the base amount plus a random amount between + * zero (inclusive) and the additional amount (exclusive). + */ + // @ts-ignore + baseWithRandomAddition(base: number, addition: number): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Creates a new variable amount which has a base and an additional amount. + * The final amount will be the base amount plus a random amount between + * zero (inclusive) and the additional amount (exclusive). + */ + // @ts-ignore + baseWithRandomAddition(base: number, addition: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Creates a new variable about which has a base and a chance to apply a + * random variance. The chance should be between zero and one with a chance + * of one signifying that the variance will always be applied. If the chance + * succeeds then the final amount will be the base amount plus or minus a + * random amount between zero (inclusive) and the variance (exclusive). If + * the chance fails then the final amount will just be the base value. + */ + // @ts-ignore + baseWithOptionalVariance(base: number, variance: number, chance: number): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Creates a new variable about which has a base and a chance to apply a + * random variance. The chance should be between zero and one with a chance + * of one signifying that the variance will always be applied. If the chance + * succeeds then the final amount will be the base amount plus or minus a + * random amount between zero (inclusive) and the variance (exclusive). If + * the chance fails then the final amount will just be the base value. + */ + // @ts-ignore + baseWithOptionalVariance(base: number, variance: org.spongepowered.api.util.weighted.VariableAmount, chance: number): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Creates a new variable about which has a base and a chance to apply a + * random additional amount. The chance should be between zero and one with + * a chance of one signifying that the additional amount will always be + * applied. If the chance succeeds then the final amount will be the base + * amount plus a random amount between zero (inclusive) and the additional + * amount (exclusive). If the chance fails then the final amount will just + * be the base value. + */ + // @ts-ignore + baseWithOptionalAddition(base: number, addition: number, chance: number): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Creates a new variable about which has a base and a chance to apply a + * random additional amount. The chance should be between zero and one with + * a chance of one signifying that the additional amount will always be + * applied. If the chance succeeds then the final amount will be the base + * amount plus a random amount between zero (inclusive) and the additional + * amount (exclusive). If the chance fails then the final amount will just + * be the base value. + */ + // @ts-ignore + baseWithOptionalAddition(base: number, addition: org.spongepowered.api.util.weighted.VariableAmount, chance: number): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Gets an instance of the variable amount depending on the given random + * object. + */ + // @ts-ignore + getAmount(rand: java.util.Random): number; + /** + * Gets the amount as if from {@link #getAmount(Random)} but floored to the + * nearest integer equivalent. + */ + // @ts-ignore + getFlooredAmount(rand: java.util.Random): number; + // @ts-ignore + toContainer(): org.spongepowered.api.data.DataContainer; + // @ts-ignore + getContentVersion(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.WeightedObject.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.WeightedObject.d.ts new file mode 100644 index 00000000..1734618d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.WeightedObject.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + // @ts-ignore + class WeightedObject extends org.spongepowered.api.util.weighted.TableEntry { + /** + * Creates a new {@link WeightedObject} of the provided + * {@code object} and {@code weight}. + */ + // @ts-ignore + constructor(obj: java.lang.Object, weight: number) + /** + * Gets the entry contained in this entry. + */ + // @ts-ignore + public get(): java.lang.Object; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.WeightedSerializableObject.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.WeightedSerializableObject.d.ts new file mode 100644 index 00000000..3aa53b67 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.WeightedSerializableObject.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + // @ts-ignore + class WeightedSerializableObject extends org.spongepowered.api.util.weighted.WeightedObject implements org.spongepowered.api.data.DataSerializable { + /** + * Creates a new {@link WeightedSerializableObject} with the provided + * {@link DataSerializable}. + */ + // @ts-ignore + constructor(object: org.spongepowered.api.data.DataSerializable, weight: number) + // @ts-ignore + public toString(): string; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public getContentVersion(): number; + // @ts-ignore + public toContainer(): org.spongepowered.api.data.DataContainer; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.WeightedTable.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.WeightedTable.d.ts new file mode 100644 index 00000000..5a00a795 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.util.weighted.WeightedTable.d.ts @@ -0,0 +1,63 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace util { + namespace weighted { + // @ts-ignore + class WeightedTable extends org.spongepowered.api.util.weighted.RandomObjectTable { + /** + * Creates a new {@link WeightedTable} with a default roll + * count of {@code 1}. + */ + // @ts-ignore + constructor() + /** + * Creates a new {@link WeightedTable} with the provided + * number of {@code rolls}. + */ + // @ts-ignore + constructor(rolls: number) + /** + * Creates a new {@link WeightedTable} with the provided + * {@link VariableAmount} for the amount of rolls and variance. + */ + // @ts-ignore + constructor(rolls: org.spongepowered.api.util.weighted.VariableAmount) + // @ts-ignore + public add(entry: org.spongepowered.api.util.weighted.TableEntry): boolean; + // @ts-ignore + public add(object: java.lang.Object, weight: number): boolean; + // @ts-ignore + public addAll(c: java.util.Collection): boolean; + // @ts-ignore + public remove(entry: java.lang.Object): boolean; + // @ts-ignore + public removeObject(entry: java.lang.Object): boolean; + // @ts-ignore + public removeAll(c: java.util.Collection): boolean; + // @ts-ignore + public retainAll(c: java.util.Collection): boolean; + // @ts-ignore + public clear(): void; + /** + * Recalculates the total weight of all entries in this table. + */ + // @ts-ignore + protected recalculateWeight(): void; + // @ts-ignore + public get(rand: java.util.Random): java.util.List; + // @ts-ignore + public iterator(): java.util.Iterator; + // @ts-ignore + public equals(o: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.BlockChangeFlag.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.BlockChangeFlag.d.ts new file mode 100644 index 00000000..0d7ce726 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.BlockChangeFlag.d.ts @@ -0,0 +1,95 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface BlockChangeFlag { + /** + * Gets whether this flag defines that a block change should + * notify neighboring blocks. + */ + // @ts-ignore + updateNeighbors(): boolean; + /** + * Gets whether this flag defines that a block change should + * perform block physics checks or not. If not, no checks + * are performed. + */ + // @ts-ignore + performBlockPhysics(): boolean; + /** + * Gets whether this flag will update observer blocks, different + * from notifying neighbors in that neighbor notifications + * can cause further block notification loops (like redstone), + * whereas this focuses on {@link BlockTypes#OBSERVER} blocks + * being told of updates. + */ + // @ts-ignore + notifyObservers(): boolean; + /** + * Gets the equivalent {@link BlockChangeFlag} of this flag with all + * other flags while having the desired {@code updateNeighbors} + * as defined by the parameter. + */ + // @ts-ignore + withUpdateNeighbors(updateNeighbors: boolean): org.spongepowered.api.world.BlockChangeFlag; + /** + * Gets the equivalent {@link BlockChangeFlag} of this flag + * with all other flags while having the desired {@code performBlockPhysics} + * as defined by the parameter. + */ + // @ts-ignore + withPhysics(performBlockPhysics: boolean): org.spongepowered.api.world.BlockChangeFlag; + /** + * Gets the equivalent {@link BlockChangeFlag} of this flag with all + * other flags while having the desired {@code notifyObservers} + * as defined by the parameter. + */ + // @ts-ignore + withNotifyObservers(notifyObservers: boolean): org.spongepowered.api.world.BlockChangeFlag; + /** + * Gets the inverted {@link BlockChangeFlag} of this flag. + * Normally, this may cancel out certain interactions, such + * as physics, neighbor notifications, or even observer + * notifications. In certain circumstances, some flags may + * even require clients to rejoin the world or restart their + * connections to the server. + */ + // @ts-ignore + inverse(): org.spongepowered.api.world.BlockChangeFlag; + /** + * Gets the equivalent {@link BlockChangeFlag} of this flag + * with the {@code true}s set for this flag and the provided + * {@code flag}, such that only if both flags have the same + * {@code true} flags set will persist. + *

For example, if this flag has {@link #notifyObservers()} + * and the incoming flag has {@link #notifyObservers()} returning + * {@code true}, the resulting flag will have + * {@link #notifyObservers()} return {@code true} as well. The + * inverse is also true. If either has differing flags for any + * of the above methods, the resulting flag will have a + * {@code false} value.

+ */ + // @ts-ignore + andFlag(flag: org.spongepowered.api.world.BlockChangeFlag): org.spongepowered.api.world.BlockChangeFlag; + /** + * Gets the equivalent {@link BlockChangeFlag} of this flag + * with the {@code true}s set for this flag and the provided + * {@code flag}, such that only if both flags have the same + * {@code true} flags set will persist. + *

For example, if this flag has {@link #notifyObservers()} + * and the incoming flag has {@link #notifyObservers()} returning + * {@code true}, the resulting flag will have + * {@link #notifyObservers()} return {@code true} as well. The + * inverse is also true. If either has differing flags for any + * of the above methods, the resulting flag will have a + * {@code false} value.

+ */ + // @ts-ignore + andNotFlag(flag: org.spongepowered.api.world.BlockChangeFlag): org.spongepowered.api.world.BlockChangeFlag; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.BlockChangeFlags.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.BlockChangeFlags.d.ts new file mode 100644 index 00000000..6f0a5f26 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.BlockChangeFlags.d.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + class BlockChangeFlags extends java.lang.Object { + // @ts-ignore + public static ALL: org.spongepowered.api.world.BlockChangeFlag; + // @ts-ignore + public static NEIGHBOR: org.spongepowered.api.world.BlockChangeFlag; + // @ts-ignore + public static NEIGHBOR_OBSERVER: org.spongepowered.api.world.BlockChangeFlag; + // @ts-ignore + public static NEIGHBOR_PHYSICS: org.spongepowered.api.world.BlockChangeFlag; + // @ts-ignore + public static NEIGHBOR_PHYSICS_OBSERVER: org.spongepowered.api.world.BlockChangeFlag; + // @ts-ignore + public static NONE: org.spongepowered.api.world.BlockChangeFlag; + // @ts-ignore + public static OBSERVER: org.spongepowered.api.world.BlockChangeFlag; + // @ts-ignore + public static PHYSICS: org.spongepowered.api.world.BlockChangeFlag; + // @ts-ignore + public static PHYSICS_OBSERVER: org.spongepowered.api.world.BlockChangeFlag; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.Chunk.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.Chunk.d.ts new file mode 100644 index 00000000..913a6474 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.Chunk.d.ts @@ -0,0 +1,99 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface Chunk extends org.spongepowered.api.world.extent.Extent { + // @ts-ignore + getLocation(position: any /*Vector3i*/): org.spongepowered.api.world.Location; + // @ts-ignore + getLocation(x: number, y: number, z: number): org.spongepowered.api.world.Location; + // @ts-ignore + getLocation(position: any /*Vector3d*/): org.spongepowered.api.world.Location; + // @ts-ignore + getLocation(x: number, y: number, z: number): org.spongepowered.api.world.Location; + /** + * Gets the position of the chunk. + *

The returned position is 3-dimensional with the Y-coordinate set to be + * the base (lowest) Y-position of the chunk. As 3-dimensional chunks do not + * yet exist in Minecraft, the returned position will always have a + * {@code y} set to 0.

+ */ + // @ts-ignore + getPosition(): any /*Vector3i*/; + /** + * Gets the world the chunk is in. + */ + // @ts-ignore + getWorld(): org.spongepowered.api.world.World; + /** + * Gets if the chunk has been populated by the generator. + */ + // @ts-ignore + isPopulated(): boolean; + /** + * Loads this chunk, and generates if specified and required. + */ + // @ts-ignore + loadChunk(generate: boolean): boolean; + /** + * Unloads this chunk, if possible. + */ + // @ts-ignore + unloadChunk(): boolean; + /** + * Gets the number of ticks players have been present in this chunk, used + * for calculation of the regional difficulty factor. In vanilla, it is + * increased by the number of players in the chunk every tick, and is capped + * at 3,600,000 ticks (50 hours). + */ + // @ts-ignore + getInhabittedTime(): number; + /** + * Gets the number of ticks players have been present in this chunk, used + * for calculation of the regional difficulty factor. In vanilla, it is + * increased by the number of players in the chunk every tick, and is capped + * at 3,600,000 ticks (50 hours). + */ + // @ts-ignore + getInhabitedTime(): number; + /** + * Gets the regional difficulty factor for this chunk. In vanilla, it is + * dependent on the playtime of the world, inhabited time of the chunk, the + * phase of the moon, and the current difficulty setting. This number ranges + * from 0.75-1.5 on easy, 1.5-4.0 on normal, and 2.25-6.75 on hard. + *

This value is used for display only in vanilla.

+ */ + // @ts-ignore + getRegionalDifficultyFactor(): number; + /** + * Gets the regional difficulty percentage for this chunk. It is calculated + * by taking the regional difficulty factor and using the following rules: + * If the factor is less than 2.0, the percentage is 0%. If the factor is + * greater than 4.0, the percentage is 100%. Otherwise, the percentage is + * the factor minus 2.0, divided by 2.0. + *

This is the value that is used in vanilla to find which effects are + * caused by the regional difficulty.

+ */ + // @ts-ignore + getRegionalDifficultyPercentage(): number; + /** + * Gets the chunk in the given direction from this chunk, if it exists. + */ + // @ts-ignore + getNeighbor(direction: org.spongepowered.api.util.Direction): java.util.Optional; + /** + * Gets the chunk in the given direction from this chunk. + */ + // @ts-ignore + getNeighbor(direction: org.spongepowered.api.util.Direction, shouldLoad: boolean): java.util.Optional; + // @ts-ignore + getBiomeWorker(): org.spongepowered.api.world.extent.worker.MutableBiomeVolumeWorker; + // @ts-ignore + getBlockWorker(): org.spongepowered.api.world.extent.worker.MutableBlockVolumeWorker; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkPreGenerate.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkPreGenerate.Builder.d.ts new file mode 100644 index 00000000..0b059442 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkPreGenerate.Builder.d.ts @@ -0,0 +1,68 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace ChunkPreGenerate { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the owner of the resulting task. + *

Mandatory.

+ */ + // @ts-ignore + owner(plugin: java.lang.Object): org.spongepowered.api.world.ChunkPreGenerate.Builder; + /** + * Adds a logger for logging generator efforts. + *

Optional. No effect if null is passed.

+ */ + // @ts-ignore + logger(logger: any /*Logger*/): org.spongepowered.api.world.ChunkPreGenerate.Builder; + /** + * Sets the number of ticks between generation runs. + *

Must be greater than 0.

+ *

Optional.

+ *

Default is 4.

+ */ + // @ts-ignore + tickInterval(tickInterval: number): org.spongepowered.api.world.ChunkPreGenerate.Builder; + /** + * Sets maximum number of chunks per tick to generate. + *

Use a value smaller or equal to 0 to disable.

+ *

Optional if {@link #tickPercentLimit(float)} is used.

+ *

Default is disabled.

+ */ + // @ts-ignore + chunksPerTick(chunkCount: number): org.spongepowered.api.world.ChunkPreGenerate.Builder; + /** + * Sets the limit of tick time that can be used to generate chunks as a + * percentage of {@link Scheduler#getPreferredTickInterval()}. The + * percentage must be a value in the range (0, 1]. No estimation is + * used to decide when to stop so the actual value will always be + * somewhere above the given percentage. + *

Use a value smaller or equal to 0 to disable.

+ *

Optional if {@link #chunksPerTick(int)} is used.

+ *

Default is 80%.

+ */ + // @ts-ignore + tickPercentLimit(tickPercent: number): org.spongepowered.api.world.ChunkPreGenerate.Builder; + /** + * Adds a {@link ChunkPreGenerationEvent} listener callback that will be + * called for this, and only this, pre-generation routine. Note that + * this does not change whether the various {@link ChunkPreGenerationEvent} + * events will be called, this is a convenience method to simply setup + * a listener bound to this pre-generation. + */ + // @ts-ignore + addListener(listener: java.util.function$.Consumer): org.spongepowered.api.world.ChunkPreGenerate.Builder; + /** + * Schedules the task with the {@link Game#getScheduler()}. + */ + // @ts-ignore + start(): org.spongepowered.api.world.ChunkPreGenerate; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkPreGenerate.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkPreGenerate.d.ts new file mode 100644 index 00000000..b94f5ab9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkPreGenerate.d.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface ChunkPreGenerate { + /** + * The {@link WorldProperties} of the world that this task is operating on. + */ + // @ts-ignore + getWorldProperties(): org.spongepowered.api.world.storage.WorldProperties; + /** + * The total number of chunks generated during this generation. + */ + // @ts-ignore + getTotalGeneratedChunks(): number; + /** + * The total number of chunks skipped during this generation. + */ + // @ts-ignore + getTotalSkippedChunks(): number; + /** + * The target number of chunks that will be generated or skipped + * during this generation. This includes chunks already generated + * or skipped. + */ + // @ts-ignore + getTargetTotalChunks(): number; + /** + * Gets the total wall clock time it has taken (so far) to generate + * chunks. + */ + // @ts-ignore + getTotalTime(): java.time.Duration; + /** + * Gets whether the task for this world has been cancelled + * (or completed). + */ + // @ts-ignore + isCancelled(): boolean; + /** + * Cancels this pre-generation if it is still running. + */ + // @ts-ignore + cancel(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkRegenerateFlag.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkRegenerateFlag.d.ts new file mode 100644 index 00000000..c3cb781d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkRegenerateFlag.d.ts @@ -0,0 +1,64 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface ChunkRegenerateFlag { + /** + * Gets whether this flag defines that a chunk should be created if it does + * not exist. + */ + // @ts-ignore + create(): boolean; + /** + * Gets whether this flag will preserve entities in chunks that are + * regenerated. + * Note: It is up to the implementation to decide whether this will + * include moving entities to safe locations. + */ + // @ts-ignore + entities(): boolean; + /** + * Gets the equivalent {@link ChunkRegenerateFlag} of this flag with all + * other flags while having the desired {@code create} as defined by the + * parameter. + */ + // @ts-ignore + withCreate(create: boolean): org.spongepowered.api.world.ChunkRegenerateFlag; + /** + * Gets the equivalent {@link ChunkRegenerateFlag} of this flag with all + * other flags while having the desired {@code entities} as defined by the + * parameter. + */ + // @ts-ignore + withEntities(entities: boolean): org.spongepowered.api.world.ChunkRegenerateFlag; + /** + * Gets the equivalent {@link ChunkRegenerateFlag} of this flag with the + * {@code true}s set for this flag and the provided {@code flag}, such that + * only if both flags have the same {@code true} flags set will persist. + *

For example, if this flag has {@link #create()} and the incoming flag + * has {@link #create()} returning {@code true}, the resulting flag will + * have {@link #create()} return {@code true} as well. The inverse is also + * true. If either has differing flags for any of the above methods, the + * resulting flag will have a {@code false} value.

+ */ + // @ts-ignore + andFlag(flag: org.spongepowered.api.world.ChunkRegenerateFlag): org.spongepowered.api.world.ChunkRegenerateFlag; + /** + * Gets the equivalent {@link ChunkRegenerateFlag} of this flag with the + * {@code true}s set for this flag and the provided {@code flag}, such that + * only if both flags have the same {@code true} flags set will persist. + *

For example, if this flag has {@link #create()} and the incoming flag + * has {@link #create()} returning {@code true}, the resulting flag will + * have {@link #create()} return {@code true} as well. The inverse is also + * true. If either has differing flags for any of the above methods, the + * resulting flag will have a {@code false} value.

+ */ + // @ts-ignore + andNotFlag(flag: org.spongepowered.api.world.ChunkRegenerateFlag): org.spongepowered.api.world.ChunkRegenerateFlag; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkRegenerateFlags.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkRegenerateFlags.d.ts new file mode 100644 index 00000000..0a2c0188 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkRegenerateFlags.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + class ChunkRegenerateFlags extends java.lang.Object { + // @ts-ignore + public static ALL: org.spongepowered.api.world.ChunkRegenerateFlag; + // @ts-ignore + public static CREATE: org.spongepowered.api.world.ChunkRegenerateFlag; + // @ts-ignore + public static ENTITIES: org.spongepowered.api.world.ChunkRegenerateFlag; + // @ts-ignore + public static NONE: org.spongepowered.api.world.ChunkRegenerateFlag; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkState.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkState.d.ts new file mode 100644 index 00000000..c55c8264 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkState.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + class ChunkState extends java.lang.Enum { + // @ts-ignore + public static UNLOADED: org.spongepowered.api.world.ChunkState; + // @ts-ignore + public static NOT_GENERATED: org.spongepowered.api.world.ChunkState; + // @ts-ignore + public static NOT_POPULATED: org.spongepowered.api.world.ChunkState; + // @ts-ignore + public static LOADED: org.spongepowered.api.world.ChunkState; + // @ts-ignore + public static values(): org.spongepowered.api.world.ChunkState[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.world.ChunkState; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkTicketManager.Callback.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkTicketManager.Callback.d.ts new file mode 100644 index 00000000..d819d729 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkTicketManager.Callback.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace ChunkTicketManager { + // @ts-ignore + interface Callback { + /** + * Callback for loading Tickets during world load. + *

The list of forced chunks is not saved with Tickets, this callback + * is your place to reassociate chunks to Tickets, using the extra + * information saved with the ticket or your own external configuration. + * Any unneeded tickets must be manually released.

+ *

The list of tickets contains both standard plugin and + * player-associated tickets that were registered by this plugin.

+ *

The list of tickets has been truncated to the maximum allowed for + * your plugin, so may not be all saved tickets in the event that the + * maximum tickets for your plugin was decreased.

+ */ + // @ts-ignore + onLoaded(tickets: any, world: org.spongepowered.api.world.World): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkTicketManager.EntityLoadingTicket.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkTicketManager.EntityLoadingTicket.d.ts new file mode 100644 index 00000000..32e4c290 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkTicketManager.EntityLoadingTicket.d.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace ChunkTicketManager { + // @ts-ignore + interface EntityLoadingTicket extends org.spongepowered.api.world.ChunkTicketManager.LoadingTicket { + /** + * Binds an Entity to this Ticket, causing the chunk the Entity is in to + * be initially loaded with the World. This makes the Entity available + * during callbacks. + */ + // @ts-ignore + bindToEntity(entity: org.spongepowered.api.entity.Entity): void; + /** + * Gets the Entity bound to this ticket. + */ + // @ts-ignore + getBoundEntity(): org.spongepowered.api.entity.Entity; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkTicketManager.LoadingTicket.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkTicketManager.LoadingTicket.d.ts new file mode 100644 index 00000000..44a626d3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkTicketManager.LoadingTicket.d.ts @@ -0,0 +1,97 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace ChunkTicketManager { + // @ts-ignore + interface LoadingTicket { + /** + * Sets the number of chunks this ticket will load at once. + */ + // @ts-ignore + setNumChunks(numChunks: number): boolean; + /** + * Gets the number of chunks this ticket can load at once. + */ + // @ts-ignore + getNumChunks(): number; + /** + * Gets the maximum limit on the number of concurrently loaded chunks + * this ticket can have. + */ + // @ts-ignore + getMaxNumChunks(): number; + /** + * Gets the {@link World} passed when creating this ticket. + */ + // @ts-ignore + getWorld(): org.spongepowered.api.world.World; + /** + * Gets the companion data stored in a {@link DataContainer}. Note that + * the provided {@link DataContainer} is modifiable, but a copy of the + * internal container, and as such may need to be + * {@link #setCompanionData(DataContainer)} before modifications can + * be handled. + *

The sort of data stored in the container is plugin/mod dependent + * and is based on the original creator of this {@link LoadingTicket}. + * As such, the structure and particular data stored in the container + * is not concrete or defined in any specific way.

+ */ + // @ts-ignore + getCompanionData(): org.spongepowered.api.data.DataContainer; + /** + * Sets the companion data for this loading ticket. + *

The sort of data stored in the container is plugin/mod dependent + * and is based on the original creator of this {@link LoadingTicket}. + * As such, the structure and particular data stored in the container + * is not concrete or defined in any specific way.

+ */ + // @ts-ignore + setCompanionData(container: org.spongepowered.api.data.DataContainer): void; + /** + * Gets the ID of the plugin that this ticket belongs to. + */ + // @ts-ignore + getPlugin(): string; + /** + * Gets the set of chunks that are being force-loaded by this ticket. + */ + // @ts-ignore + getChunkList(): any; + /** + * Force-loads a chunk using this ticket. If the configured concurrently + * loaded chunk limit is reached, the oldest loaded chunk will be + * removed. + *

This does not cause an immediate load of the chunk. Forced chunks + * will be loaded eventually, but may not be available for a few ticks. + * Forced chunk loading is equivalent to the loading caused by a + * player.

+ */ + // @ts-ignore + forceChunk(chunk: any /*Vector3i*/): void; + /** + * Removes a chunk from the force-loaded set of this ticket. + */ + // @ts-ignore + unforceChunk(chunk: any /*Vector3i*/): void; + /** + * Reorders a chunk to count as the 'newest' loaded chunk, making it the + * last chunk to be removed when adding more chunks for force-loading. + */ + // @ts-ignore + prioritizeChunk(chunk: any /*Vector3i*/): void; + /** + * Releases this ticket, removing all associated chunks and freeing up + * the ticket slot for later use by a new ticket. + *

After this operation the ticket is invalid and cannot be used to + * force-load chunks.

+ */ + // @ts-ignore + release(): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkTicketManager.OrderedCallback.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkTicketManager.OrderedCallback.d.ts new file mode 100644 index 00000000..e1058950 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkTicketManager.OrderedCallback.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace ChunkTicketManager { + // @ts-ignore + interface OrderedCallback extends org.spongepowered.api.world.ChunkTicketManager.Callback { + /** + * Callback for loading Tickets during world load. + *

During this callback you cannot associate chunks to tickets. This + * callback gets all loaded non-player tickets. The returned list will + * be truncated to maxTickets after this callback is called, and and + * tickets absent from the list will be released.

+ */ + // @ts-ignore + onLoaded(tickets: any, world: org.spongepowered.api.world.World, maxTickets: number): java.util.List; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkTicketManager.PlayerEntityLoadingTicket.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkTicketManager.PlayerEntityLoadingTicket.d.ts new file mode 100644 index 00000000..c0549836 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkTicketManager.PlayerEntityLoadingTicket.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace ChunkTicketManager { + // @ts-ignore + interface PlayerEntityLoadingTicket extends org.spongepowered.api.world.ChunkTicketManager.PlayerLoadingTicket, org.spongepowered.api.world.ChunkTicketManager.EntityLoadingTicket { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkTicketManager.PlayerLoadingTicket.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkTicketManager.PlayerLoadingTicket.d.ts new file mode 100644 index 00000000..652e5c6c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkTicketManager.PlayerLoadingTicket.d.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace ChunkTicketManager { + // @ts-ignore + interface PlayerLoadingTicket extends org.spongepowered.api.world.ChunkTicketManager.LoadingTicket { + /** + * Gets the UUID of the player associated with this ticket. + */ + // @ts-ignore + getPlayerUniqueId(): java.util.UUID; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkTicketManager.PlayerOrderedCallback.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkTicketManager.PlayerOrderedCallback.d.ts new file mode 100644 index 00000000..be3018cd --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkTicketManager.PlayerOrderedCallback.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace ChunkTicketManager { + // @ts-ignore + interface PlayerOrderedCallback extends org.spongepowered.api.world.ChunkTicketManager.Callback { + /** + * Callback for loading player Tickets during world load. + *

During this callback you cannot associate chunks to tickets. This + * callback gets all player-associated tickets registered by the plugin. + * Tickets absent from the returned Multimap will be released.

+ */ + // @ts-ignore + onPlayerLoaded(tickets: any, world: org.spongepowered.api.world.World): any; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkTicketManager.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkTicketManager.d.ts new file mode 100644 index 00000000..7edfc642 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.ChunkTicketManager.d.ts @@ -0,0 +1,79 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface ChunkTicketManager { + /** + * Sets the callback for handling loading forced chunk tickets on world + * load. + *

Required for any plugin that wants to force-load chunks. Any + * plugin that does not have a registered callback will have all saved + * tickets dropped on world load.

+ */ + // @ts-ignore + registerCallback(plugin: java.lang.Object, callback: org.spongepowered.api.world.ChunkTicketManager.Callback): void; + /** + * Attempts to create a new loading ticket for a plugin to load chunks in a + * world. + *

Plugins can be limited in the number of tickets they can create per + * world.

+ */ + // @ts-ignore + createTicket(plugin: java.lang.Object, world: org.spongepowered.api.world.World): java.util.Optional; + /** + * Attempts to create a new loading ticket for a plugin to load chunks in a + * world. + *

This version is to create tickets that are bound to the existence of + * an Entity. For instance, a ticket to load the chunks a minecart is + * travelling through.

+ *

Plugins can be limited in the number of tickets they can create per + * world.

+ */ + // @ts-ignore + createEntityTicket(plugin: java.lang.Object, world: org.spongepowered.api.world.World): java.util.Optional; + /** + * Attempts to create a new loading ticket for a plugin to load chunks in a + * world. The returned ticket will be associated with the given player. + *

.

+ */ + // @ts-ignore + createPlayerTicket(plugin: java.lang.Object, world: org.spongepowered.api.world.World, player: java.util.UUID): java.util.Optional; + /** + * Attempts to create a new loading ticket for a plugin to load chunks in a + * world. The returned ticket will be associated with the given player. + *

This version is to create tickets that are bound to the existence of + * an Entity. For instance, a ticket to load the chunks a minecart is + * travelling through.

+ *

Plugins can be limited in the number of tickets they can create per + * world.

+ */ + // @ts-ignore + createPlayerEntityTicket(plugin: java.lang.Object, world: org.spongepowered.api.world.World, player: java.util.UUID): java.util.Optional; + /** + * Gets the maximum allowed per-world tickets for a plugin. + */ + // @ts-ignore + getMaxTickets(plugin: java.lang.Object): number; + /** + * Gets the amount of remaining tickets a plugin can have in the world + * before hitting the maximum. + */ + // @ts-ignore + getAvailableTickets(plugin: java.lang.Object, world: org.spongepowered.api.world.World): number; + /** + * Gets the amount of tickets remaining available for a player. + */ + // @ts-ignore + getAvailableTickets(player: java.util.UUID): number; + /** + * Gets the set of currently force-loaded chunks in a world. + */ + // @ts-ignore + getForcedChunks(world: org.spongepowered.api.world.World): any; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.Dimension.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.Dimension.d.ts new file mode 100644 index 00000000..32162f22 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.Dimension.d.ts @@ -0,0 +1,54 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface Dimension extends org.spongepowered.api.service.context.ContextSource { + /** + * Gets the type of dimension. + */ + // @ts-ignore + getType(): org.spongepowered.api.world.DimensionType; + /** + * Gets the generator type of dimension. + */ + // @ts-ignore + getGeneratorType(): org.spongepowered.api.world.GeneratorType; + /** + * Returns whether players can respawn within {@link Dimension} after death. + */ + // @ts-ignore + allowsPlayerRespawns(): boolean; + /** + * Returns the minimum spawn height for {@link Dimension}. + */ + // @ts-ignore + getMinimumSpawnHeight(): number; + /** + * Returns whether water evaporates for {@link Dimension}. + */ + // @ts-ignore + doesWaterEvaporate(): boolean; + /** + * Returns whether this {@link Dimension} has a sky (lack of bedrock). + */ + // @ts-ignore + hasSky(): boolean; + /** + * Gets the highest naturally generated y-coordinate of {@link World}s in + * this dimension. Usually 128 (no sky) or 256 (sky). + */ + // @ts-ignore + getHeight(): number; + /** + * Gets the maximum y-coordinate a non-air cuboid can exist at of + * {@link World}s in this dimension. Usually 256. + */ + // @ts-ignore + getBuildHeight(): number; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.DimensionType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.DimensionType.d.ts new file mode 100644 index 00000000..bd45d6af --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.DimensionType.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface DimensionType extends org.spongepowered.api.CatalogType { + /** + * Returns the dimension class for this type. + */ + // @ts-ignore + getDimensionClass(): java.lang.Class; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.DimensionTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.DimensionTypes.d.ts new file mode 100644 index 00000000..5073dcde --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.DimensionTypes.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + class DimensionTypes extends java.lang.Object { + // @ts-ignore + public static NETHER: org.spongepowered.api.world.DimensionType; + // @ts-ignore + public static OVERWORLD: org.spongepowered.api.world.DimensionType; + // @ts-ignore + public static THE_END: org.spongepowered.api.world.DimensionType; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.GeneratorType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.GeneratorType.d.ts new file mode 100644 index 00000000..a0026d02 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.GeneratorType.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface GeneratorType extends org.spongepowered.api.CatalogType { + /** + * Gets a copy of the default settings for this generator type. + */ + // @ts-ignore + getGeneratorSettings(): org.spongepowered.api.data.DataContainer; + /** + * Creates a new {@link WorldGenerator} for this generator type. + *

This will use the default settings of this generator type.

+ */ + // @ts-ignore + createGenerator(world: org.spongepowered.api.world.World): org.spongepowered.api.world.gen.WorldGenerator; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.GeneratorTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.GeneratorTypes.d.ts new file mode 100644 index 00000000..e35697e6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.GeneratorTypes.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + class GeneratorTypes extends java.lang.Object { + // @ts-ignore + public static AMPLIFIED: org.spongepowered.api.world.GeneratorType; + // @ts-ignore + public static DEBUG: org.spongepowered.api.world.GeneratorType; + // @ts-ignore + public static DEFAULT: org.spongepowered.api.world.GeneratorType; + // @ts-ignore + public static FLAT: org.spongepowered.api.world.GeneratorType; + // @ts-ignore + public static LARGE_BIOMES: org.spongepowered.api.world.GeneratorType; + // @ts-ignore + public static NETHER: org.spongepowered.api.world.GeneratorType; + // @ts-ignore + public static OVERWORLD: org.spongepowered.api.world.GeneratorType; + // @ts-ignore + public static THE_END: org.spongepowered.api.world.GeneratorType; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.Locatable.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.Locatable.d.ts new file mode 100644 index 00000000..2e3e101c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.Locatable.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface Locatable { + /** + * Gets the location of the source. + */ + // @ts-ignore + getLocation(): org.spongepowered.api.world.Location; + /** + * Gets the world that this source resides in. + */ + // @ts-ignore + getWorld(): org.spongepowered.api.world.World; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.LocatableBlock.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.LocatableBlock.Builder.d.ts new file mode 100644 index 00000000..b0dd0e8c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.LocatableBlock.Builder.d.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace LocatableBlock { + // @ts-ignore + interface Builder extends org.spongepowered.api.data.persistence.DataBuilder { + /** + * Sets the {@link BlockState} for this builder. + */ + // @ts-ignore + state(blockState: org.spongepowered.api.block.BlockState): org.spongepowered.api.world.LocatableBlock.Builder; + /** + * Sets the {@link BlockState} and {@link Vector3i position} for this + * builder. + */ + // @ts-ignore + location(location: org.spongepowered.api.world.Location): org.spongepowered.api.world.LocatableBlock.Builder; + /** + * Sets the {@link Vector3i position} for this builder. + */ + // @ts-ignore + position(position: any /*Vector3i*/): org.spongepowered.api.world.LocatableBlock.Builder; + /** + * Sets the {@code x} {@code y} {@code z} positions for this builder. + */ + // @ts-ignore + position(x: number, y: number, z: number): org.spongepowered.api.world.LocatableBlock.Builder; + /** + * Sets the {@link World} for this builder, used to get the {@link BlockState} + * for a desired position. + */ + // @ts-ignore + world(world: org.spongepowered.api.world.World): org.spongepowered.api.world.LocatableBlock.Builder; + // @ts-ignore + reset(): org.spongepowered.api.world.LocatableBlock.Builder; + // @ts-ignore + from(value: org.spongepowered.api.world.LocatableBlock): org.spongepowered.api.world.LocatableBlock.Builder; + /** + * Creates a new {@link LocatableBlock}. + */ + // @ts-ignore + build(): org.spongepowered.api.world.LocatableBlock; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.LocatableBlock.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.LocatableBlock.d.ts new file mode 100644 index 00000000..e09c7f4a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.LocatableBlock.d.ts @@ -0,0 +1,27 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface LocatableBlock extends org.spongepowered.api.data.ImmutableDataHolder, org.spongepowered.api.world.Locatable { + /** + * Creates a new {@link Builder} for creating new {@link LocatableBlock}s. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.LocatableBlock.Builder; + /** + * Gets the {@link BlockState} for this locatable block. + */ + // @ts-ignore + getBlockState(): org.spongepowered.api.block.BlockState; + /** + * Gets the {@link Vector3i position} for this locatable block. + */ + // @ts-ignore + getPosition(): any /*Vector3i*/; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.Location.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.Location.d.ts new file mode 100644 index 00000000..61d55616 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.Location.d.ts @@ -0,0 +1,392 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + class Location extends java.lang.Object implements org.spongepowered.api.data.DataHolder { + /** + * Create a new instance. + */ + // @ts-ignore + constructor(extent: org.spongepowered.api.world.extent.Extent, position: any /*Vector3d*/) + /** + * Create a new instance. + */ + // @ts-ignore + constructor(extent: org.spongepowered.api.world.extent.Extent, x: number, y: number, z: number) + /** + * Create a new instance. + */ + // @ts-ignore + constructor(extent: org.spongepowered.api.world.extent.Extent, blockPosition: any /*Vector3i*/) + /** + * Create a new instance. + */ + // @ts-ignore + constructor(extent: org.spongepowered.api.world.extent.Extent, x: number, y: number, z: number) + /** + * Gets the underlying extent. + *

Note: This can be null if the {@link Extent} is unloaded and garbage + * collected.

+ */ + // @ts-ignore + public getExtent(): org.spongepowered.api.world.extent.Extent; + /** + * Gets the underlying position. + */ + // @ts-ignore + public getPosition(): any /*Vector3d*/; + /** + * Gets the underlying block position. + */ + // @ts-ignore + public getBlockPosition(): any /*Vector3i*/; + /** + * Gets the underlying chunk position. + */ + // @ts-ignore + public getChunkPosition(): any /*Vector3i*/; + /** + * Gets the underlying biome position. + */ + // @ts-ignore + public getBiomePosition(): any /*Vector3i*/; + /** + * Gets the X component of this instance's position. + */ + // @ts-ignore + public getX(): number; + /** + * Gets the Y component of this instance's position. + */ + // @ts-ignore + public getY(): number; + /** + * Gets the Z component of this instance's position. + */ + // @ts-ignore + public getZ(): number; + /** + * Gets the floored X component of this instance's position. + */ + // @ts-ignore + public getBlockX(): number; + /** + * Gets the floored Y component of this instance's position. + */ + // @ts-ignore + public getBlockY(): number; + /** + * Gets the floored Z component of this instance's position. + */ + // @ts-ignore + public getBlockZ(): number; + /** + * Returns true if this location is in the given extent. This is implemented + * as an {@link Object#equals(Object)} check. + */ + // @ts-ignore + public inExtent(extent: org.spongepowered.api.world.extent.Extent): boolean; + /** + * Returns true if this location has a biome at its + * {@link #getBiomePosition()}. + */ + // @ts-ignore + public hasBiome(): boolean; + /** + * Returns true if this location has a block at its + * {@link #getBlockPosition()} ()}. + */ + // @ts-ignore + public hasBlock(): boolean; + /** + * Gets a {@link LocatableBlock} if the parent {@link Extent} of this + * {@link Location} is a {@link World}. + */ + // @ts-ignore + public getLocatableBlock(): java.util.Optional; + /** + * Create a new instance with a new extent. + */ + // @ts-ignore + public setExtent(extent: org.spongepowered.api.world.extent.Extent): org.spongepowered.api.world.Location; + /** + * Create a new instance with a new position. + */ + // @ts-ignore + public setPosition(position: any /*Vector3d*/): org.spongepowered.api.world.Location; + /** + * Create a new instance with a new block position. + */ + // @ts-ignore + public setBlockPosition(position: any /*Vector3i*/): org.spongepowered.api.world.Location; + /** + * Subtract another Vector3d to the position on this instance, returning + * a new Location instance. + */ + // @ts-ignore + public sub(v: any /*Vector3d*/): org.spongepowered.api.world.Location; + /** + * Subtract another Vector3i to the position on this instance, returning + * a new Location instance. + */ + // @ts-ignore + public sub(v: any /*Vector3i*/): org.spongepowered.api.world.Location; + /** + * Subtract vector components to the position on this instance, returning a + * new Location instance. + */ + // @ts-ignore + public sub(x: number, y: number, z: number): org.spongepowered.api.world.Location; + /** + * Add another Vector3d to the position on this instance, returning a new + * Location instance. + */ + // @ts-ignore + public add(v: any /*Vector3d*/): org.spongepowered.api.world.Location; + /** + * Add another Vector3i to the position on this instance, returning a new + * Location instance. + */ + // @ts-ignore + public add(v: any /*Vector3i*/): org.spongepowered.api.world.Location; + /** + * Add vector components to the position on this instance, returning a new + * Location instance. + */ + // @ts-ignore + public add(x: number, y: number, z: number): org.spongepowered.api.world.Location; + /** + * Calls the mapper function on the extent and position. + */ + // @ts-ignore + public map(mapper: java.util.function$.BiFunction): java.lang.Object; + /** + * Calls the mapper function on the extent and block position. + */ + // @ts-ignore + public mapBlock(mapper: java.util.function$.BiFunction): java.lang.Object; + /** + * Calls the mapper function on the extent and chunk position. + */ + // @ts-ignore + public mapChunk(mapper: java.util.function$.BiFunction): java.lang.Object; + /** + * Calls the mapper function on the extent and biome position. + */ + // @ts-ignore + public mapBiome(mapper: java.util.function$.BiFunction): java.lang.Object; + /** + * Gets the location next to this one in the given direction. + * Always moves by a unit amount, even diagonally. + */ + // @ts-ignore + public getRelative(direction: org.spongepowered.api.util.Direction): org.spongepowered.api.world.Location; + /** + * Gets the location next to this one in the given direction. + * Always moves by a block amount, even diagonally. + *

{@link org.spongepowered.api.util.Direction.Division#SECONDARY_ORDINAL} + * directions are not a valid argument. These will throw an exception. + *

+ */ + // @ts-ignore + public getBlockRelative(direction: org.spongepowered.api.util.Direction): org.spongepowered.api.world.Location; + /** + * Gets the block at this location. + */ + // @ts-ignore + public getBiome(): org.spongepowered.api.world.biome.BiomeType; + /** + * Gets the base type of block. + *

The type does not include block data such as the contents of + * inventories.

+ */ + // @ts-ignore + public getBlockType(): org.spongepowered.api.block.BlockType; + /** + * Gets the {@link BlockState} for this position. + */ + // @ts-ignore + public getBlock(): org.spongepowered.api.block.BlockState; + /** + * Checks for whether the block at this position contains tile entity data. + */ + // @ts-ignore + public hasTileEntity(): boolean; + /** + * Gets the associated {@link TileEntity} on this block. + */ + // @ts-ignore + public getTileEntity(): java.util.Optional; + /** + * Replace the block at this position with a new state. + *

This will remove any extended block data at the given position.

+ */ + // @ts-ignore + public setBlock(state: org.spongepowered.api.block.BlockState): boolean; + /** + * Replace the block at this position with a new state. + *

This will remove any extended block data at the given position.

+ */ + // @ts-ignore + public setBlock(state: org.spongepowered.api.block.BlockState, flag: org.spongepowered.api.world.BlockChangeFlag): boolean; + /** + * Replace the block type at this position by a new type. + *

This will remove any extended block data at the given position.

+ */ + // @ts-ignore + public setBlockType(type: org.spongepowered.api.block.BlockType): boolean; + /** + * Replace the block type at this position by a new type. + *

This will remove any extended block data at the given position.

+ */ + // @ts-ignore + public setBlockType(type: org.spongepowered.api.block.BlockType, flag: org.spongepowered.api.world.BlockChangeFlag): boolean; + /** + * Replace the block at this position with a copy of the given snapshot. + *

Changing the snapshot afterwards will not affect the block that has + * been placed at this location.

+ */ + // @ts-ignore + public restoreSnapshot(snapshot: org.spongepowered.api.block.BlockSnapshot, force: boolean, flag: org.spongepowered.api.world.BlockChangeFlag): boolean; + /** + * Remove the block at this position by replacing it with + * {@link BlockTypes#AIR}. + *

This will remove any extended block data at the given position.

+ */ + // @ts-ignore + public removeBlock(): boolean; + /** + * Create an entity instance at the given position. + *

Creating an entity does not spawn the entity into the world. An entity + * created means the entity can be spawned at the given location. If + * {@link Optional#empty()} was returned, the entity is not able to spawn at + * the given location. Furthermore, this allows for the {@link Entity} to be + * customized further prior to traditional "ticking" and processing by core + * systems.

+ */ + // @ts-ignore + public createEntity(type: org.spongepowered.api.entity.EntityType): org.spongepowered.api.entity.Entity; + /** + * Spawns an {@link Entity} using the already set properties (extent, + * position, rotation) and applicable {@link DataManipulator}s with the + * specified {@link Cause} for spawning the entity. + *

Note that for the {@link Cause} to be useful in the expected + * {@link SpawnEntityEvent}, a {@link SpawnType} should be provided in the + * {@link EventContext} for other plugins to understand and have finer + * control over the event.

+ *

The requirements involve that all necessary setup of states and data + * is already preformed on the entity retrieved from the various + * {@link EntityUniverse#createEntity(EntityType,Vector3d)} methods. Calling + * this will make the now-spawned entity able to be processed by various + * systems.

+ *

If the entity was unable to spawn, the entity is not removed, but it + * should be taken note that there can be many reasons for a failure.

+ */ + // @ts-ignore + public spawnEntity(entity: org.spongepowered.api.entity.Entity): boolean; + /** + * Similar to {@link #spawnEntity(Entity)} except where multiple + * entities can be attempted to be spawned with a customary {@link Cause}. + * The recommended use is to easily process the entity spawns without + * interference with the cause tracking system. + */ + // @ts-ignore + public spawnEntities(entities: java.lang.Iterable): java.util.Collection; + /** + * Gets the highest {@link Location} at this location. + */ + // @ts-ignore + public asHighestLocation(): org.spongepowered.api.world.Location; + // @ts-ignore + public remove(containerClass: java.lang.Class): org.spongepowered.api.data.DataTransactionResult; + // @ts-ignore + public remove(value: org.spongepowered.api.data.value.BaseValue): org.spongepowered.api.data.DataTransactionResult; + // @ts-ignore + public remove(key: org.spongepowered.api.data.key.Key): org.spongepowered.api.data.DataTransactionResult; + /** + * Gets a snapshot of this block at the current point in time. + *

A snapshot is disconnected from the {@link Extent} that it was taken + * from so changes to the original block do not affect the snapshot.

+ */ + // @ts-ignore + public createSnapshot(): org.spongepowered.api.block.BlockSnapshot; + /** + * Gets a list of {@link ScheduledBlockUpdate}s on this block. + */ + // @ts-ignore + public getScheduledUpdates(): java.util.Collection; + /** + * Adds a new {@link ScheduledBlockUpdate} to this block. + */ + // @ts-ignore + public addScheduledUpdate(priority: number, ticks: number): org.spongepowered.api.block.ScheduledBlockUpdate; + /** + * Removes a {@link ScheduledBlockUpdate} from this block. + */ + // @ts-ignore + public removeScheduledUpdate(update: org.spongepowered.api.block.ScheduledBlockUpdate): void; + // @ts-ignore + public getProperty(propertyClass: java.lang.Class): java.util.Optional; + // @ts-ignore + public getApplicableProperties(): java.util.Collection; + // @ts-ignore + public validateRawData(container: org.spongepowered.api.data.DataView): boolean; + // @ts-ignore + public setRawData(container: org.spongepowered.api.data.DataView): void; + // @ts-ignore + public getContentVersion(): number; + // @ts-ignore + public toContainer(): org.spongepowered.api.data.DataContainer; + // @ts-ignore + public get(containerClass: java.lang.Class): java.util.Optional; + // @ts-ignore + public get(key: org.spongepowered.api.data.key.Key): java.util.Optional; + // @ts-ignore + public getOrCreate(containerClass: java.lang.Class): java.util.Optional; + // @ts-ignore + public offer(key: org.spongepowered.api.data.key.Key, value: java.lang.Object): org.spongepowered.api.data.DataTransactionResult; + // @ts-ignore + public offer(valueHolders: java.lang.Iterable): org.spongepowered.api.data.DataTransactionResult; + // @ts-ignore + public offer(values: java.lang.Iterable, func: org.spongepowered.api.data.merge.MergeFunction): org.spongepowered.api.data.DataTransactionResult; + // @ts-ignore + public offer(value: org.spongepowered.api.data.value.BaseValue): org.spongepowered.api.data.DataTransactionResult; + // @ts-ignore + public offer(valueContainer: org.spongepowered.api.data.manipulator.DataManipulator): org.spongepowered.api.data.DataTransactionResult; + // @ts-ignore + public offer(valueContainer: org.spongepowered.api.data.manipulator.DataManipulator, func: org.spongepowered.api.data.merge.MergeFunction): org.spongepowered.api.data.DataTransactionResult; + // @ts-ignore + public undo(result: org.spongepowered.api.data.DataTransactionResult): org.spongepowered.api.data.DataTransactionResult; + // @ts-ignore + public supports(holderClass: java.lang.Class): boolean; + // @ts-ignore + public supports(key: org.spongepowered.api.data.key.Key): boolean; + // @ts-ignore + public transform(key: org.spongepowered.api.data.key.Key, func: java.util.function$.Function): org.spongepowered.api.data.DataTransactionResult; + // @ts-ignore + public copyFrom(that: org.spongepowered.api.data.DataHolder): org.spongepowered.api.data.DataTransactionResult; + // @ts-ignore + public copyFrom(that: org.spongepowered.api.data.DataHolder, strategy: org.spongepowered.api.data.merge.MergeFunction): org.spongepowered.api.data.DataTransactionResult; + // @ts-ignore + public getContainers(): java.util.Collection; + // @ts-ignore + public getValue(key: org.spongepowered.api.data.key.Key): java.util.Optional; + // @ts-ignore + public copy(): org.spongepowered.api.world.Location; + // @ts-ignore + public getKeys(): java.util.Set; + // @ts-ignore + public getValues(): java.util.Set; + // @ts-ignore + public toString(): string; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public equals(other: java.lang.Object): boolean; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.PortalAgent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.PortalAgent.d.ts new file mode 100644 index 00000000..a054857a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.PortalAgent.d.ts @@ -0,0 +1,63 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface PortalAgent { + /** + * Gets the search radius before a new acceptable "portal" location is + * created. + */ + // @ts-ignore + getSearchRadius(): number; + /** + * Sets the search radius before a new acceptable "portal" location is + * created. + */ + // @ts-ignore + setSearchRadius(radius: number): org.spongepowered.api.world.PortalAgent; + /** + * Gets the radius of where a "portal" can be created. + */ + // @ts-ignore + getCreationRadius(): number; + /** + * Sets the creation radius of where a portal may be created. + */ + // @ts-ignore + setCreationRadius(radius: number): org.spongepowered.api.world.PortalAgent; + /** + * Attempts to find a "portal" location, or if none are available, creates + * one. Returns {@link Optional#empty()} if none are found. + */ + // @ts-ignore + findOrCreatePortal(targetLocation: org.spongepowered.api.world.Location): java.util.Optional; + /** + * Attempts to find a "portal" location. Returns {@link Optional#empty()} if + * none are found. + */ + // @ts-ignore + findPortal(targetLocation: org.spongepowered.api.world.Location): java.util.Optional; + /** + * Tells this agent to create a new "portal" location at the suggested + * {@link Location}. + * If {@link org.spongepowered.api.event.block.ChangeBlockEvent.Place} + * is cancelled, {@link Optional#empty()} is returned. + *

Note: In order to adjust or prevent the {@link Location}'s of each + * {@link BlockState} set, listen to + * {@link org.spongepowered.api.event.block.ChangeBlockEvent.Place} and + * check for the root cause of this portal agent. + */ + // @ts-ignore + createPortal(targetLocation: org.spongepowered.api.world.Location): java.util.Optional; + /** + * Gets the type of {@link PortalAgent}. + */ + // @ts-ignore + getType(): org.spongepowered.api.world.PortalAgentType; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.PortalAgentType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.PortalAgentType.d.ts new file mode 100644 index 00000000..f43857df --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.PortalAgentType.d.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface PortalAgentType extends org.spongepowered.api.CatalogType { + /** + * Returns the {@link PortalAgent} class for this type. + */ + // @ts-ignore + getPortalAgentClass(): java.lang.Class; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.PortalAgentTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.PortalAgentTypes.d.ts new file mode 100644 index 00000000..896ca35f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.PortalAgentTypes.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + class PortalAgentTypes extends java.lang.Object { + // @ts-ignore + public static DEFAULT: org.spongepowered.api.world.PortalAgentType; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.SerializationBehavior.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.SerializationBehavior.d.ts new file mode 100644 index 00000000..213cfd7e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.SerializationBehavior.d.ts @@ -0,0 +1,12 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface SerializationBehavior extends org.spongepowered.api.CatalogType { + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.SerializationBehaviors.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.SerializationBehaviors.d.ts new file mode 100644 index 00000000..93b2c190 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.SerializationBehaviors.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + class SerializationBehaviors extends java.lang.Object { + /** + * You should not be using this constructor, it will be made private in + * API 8. + */ + // @ts-ignore + constructor() + // @ts-ignore + public static AUTOMATIC: org.spongepowered.api.world.SerializationBehavior; + // @ts-ignore + public static MANUAL: org.spongepowered.api.world.SerializationBehavior; + // @ts-ignore + public static NONE: org.spongepowered.api.world.SerializationBehavior; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.TeleportHelper.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.TeleportHelper.d.ts new file mode 100644 index 00000000..95b2a2e8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.TeleportHelper.d.ts @@ -0,0 +1,76 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface TeleportHelper { + // @ts-ignore + DEFAULT_HEIGHT: number; + // @ts-ignore + DEFAULT_WIDTH: number; + // @ts-ignore + DEFAULT_FLOOR_CHECK_DISTANCE: number; + /** + * Gets the next safe {@link Location} around the given location. + *

Safe entails that the returned location will not be somewhere that + * would harm an {@link Entity}. This method will use the default height and + * width for a search area, and will check for a suitable floor up to two + * blocks below any selected block.

+ *

It's possible the same location will be returned that was passed in. + * This means it was safe.

+ */ + // @ts-ignore + getSafeLocation(location: org.spongepowered.api.world.Location): java.util.Optional; + /** + * Gets the next safe {@link Location} around the given location with a + * given tolerance and search radius. + *

Safe entails that the returned location will not be somewhere that + * would harm an {@link Entity}.

+ *

It's possible the same location will be returned that was passed in. + * This means it was safe.

+ *

This method will check for a suitable floor up to two blocks below + * any selected block.

+ *

This method will use the default {@link TeleportHelperFilter}

+ */ + // @ts-ignore + getSafeLocation(location: org.spongepowered.api.world.Location, height: number, width: number): java.util.Optional; + /** + * Gets the next safe {@link Location} around the given location with a + * given tolerance and search radius. + *

Safe entails that the returned location will not be somewhere that + * would harm an {@link Entity}.

+ *

It's possible the same location will be returned that was passed in. + * This means it was safe.

+ *

This method will use the default {@link TeleportHelperFilter} and will + * respect the blacklist.

+ */ + // @ts-ignore + getSafeLocation(location: org.spongepowered.api.world.Location, height: number, width: number, floorDistance: number): java.util.Optional; + /** + * Gets the next safe {@link Location} around the given location with a + * given tolerance and search radius. + *

Safe entails that the returned location will not be somewhere that + * would harm an {@link Entity}.

+ *

It's possible the same location will be returned that was passed in. + * This means it was safe.

+ */ + // @ts-ignore + getSafeLocation(location: org.spongepowered.api.world.Location, height: number, width: number, floorDistance: number, filter: org.spongepowered.api.world.teleport.TeleportHelperFilter, additionalFilters: org.spongepowered.api.world.teleport.TeleportHelperFilter): java.util.Optional; + /** + * Gets the next safe {@link Location} around the given location with a + * given tolerance and search radius. + *

Safe entails that the returned location will not be somewhere that + * would harm an {@link Entity}.

+ *

It's possible the same location will be returned that was passed in. + * This means it was safe.

+ *

This method will use the defined blacklist, effectively an equivalent + * to adding {@link TeleportHelperFilters#CONFIG} to the filter set.

+ */ + // @ts-ignore + getSafeLocationWithBlacklist(location: org.spongepowered.api.world.Location, height: number, width: number, floorDistance: number, filters: org.spongepowered.api.world.teleport.TeleportHelperFilter): java.util.Optional; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.World.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.World.d.ts new file mode 100644 index 00000000..eefae054 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.World.d.ts @@ -0,0 +1,267 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface World extends org.spongepowered.api.world.extent.Extent, org.spongepowered.api.world.weather.WeatherUniverse, org.spongepowered.api.effect.Viewer, org.spongepowered.api.service.context.ContextSource, org.spongepowered.api.text.channel.MessageReceiver, org.spongepowered.api.text.channel.ChatTypeMessageReceiver { + /** + * Gets an unmodifiable collection of {@link Player}s currently in this world. + */ + // @ts-ignore + getPlayers(): java.util.Collection; + // @ts-ignore + getLocation(position: any /*Vector3i*/): org.spongepowered.api.world.Location; + // @ts-ignore + getLocation(x: number, y: number, z: number): org.spongepowered.api.world.Location; + // @ts-ignore + getLocation(position: any /*Vector3d*/): org.spongepowered.api.world.Location; + // @ts-ignore + getLocation(x: number, y: number, z: number): org.spongepowered.api.world.Location; + /** + * Gets a {@link LocatableBlock} for the desired {@link Vector3i} position. + */ + // @ts-ignore + getLocatableBlock(position: any /*Vector3i*/): org.spongepowered.api.world.LocatableBlock; + /** + * Gets a {@link LocatableBlock} for the desired {@code x, y, z} coordinates. + */ + // @ts-ignore + getLocatableBlock(x: number, y: number, z: number): org.spongepowered.api.world.LocatableBlock; + /** + * Gets the loaded chunk at the given block coordinate position. + */ + // @ts-ignore + getChunkAtBlock(blockPosition: any /*Vector3i*/): java.util.Optional; + /** + * Gets the loaded chunk at the given block coordinate position. + */ + // @ts-ignore + getChunkAtBlock(bx: number, by: number, bz: number): java.util.Optional; + /** + * Gets the loaded chunk at the given chunk coordinate position. + */ + // @ts-ignore + getChunk(chunkPosition: any /*Vector3i*/): java.util.Optional; + /** + * Gets the loaded chunk at the given chunk coordinate position. + *

In Vanilla, the y coordinate will always be 0.

+ */ + // @ts-ignore + getChunk(cx: number, cy: number, cz: number): java.util.Optional; + /** + * Gets the chunk at the given chunk coordinate position if it exists or if + * {@code shouldGenerate} is true and the chunk is generated. + */ + // @ts-ignore + loadChunk(chunkPosition: any /*Vector3i*/, shouldGenerate: boolean): java.util.Optional; + /** + * Gets the chunk at the given chunk coordinate position if it exists or if + * {@code shouldGenerate} is true and the chunk is generated. + *

In Vanilla, the y coordinate will always be 0.

+ */ + // @ts-ignore + loadChunk(cx: number, cy: number, cz: number, shouldGenerate: boolean): java.util.Optional; + /** + * Gets the chunk at the given chunk coordinate position if it exists or if + * {@code shouldGenerate} is true and the chunk is generated. + *

Unlike {@link #loadChunk(Vector3i, boolean)} this method allows the + * implementation to load the chunk asynchronously without blocking the + * main server thread. The {@link Future} will be called with the chunk once + * the operation was completed.

+ *

Note: If asynchronous chunk loading is not supported by + * the implementation, the chunk will be loaded synchronously and the + * {@link Future} will be called immediately.

+ */ + // @ts-ignore + loadChunkAsync(chunkPosition: any /*Vector3i*/, shouldGenerate: boolean): java.util.concurrent.CompletableFuture; + /** + * Gets the chunk at the given chunk coordinate position if it exists or if + * {@code shouldGenerate} is true and the chunk is generated. + *

Unlike {@link #loadChunk(Vector3i, boolean)} this method allows the + * implementation to load the chunk asynchronously without blocking the + * main server thread. The {@link Future} will be called with the chunk once + * the operation was completed.

+ *

Note: If asynchronous chunk loading is not supported by + * the implementation, the chunk will be loaded synchronously and the + * {@link Future} will be called immediately.

+ */ + // @ts-ignore + loadChunkAsync(cx: number, cy: number, cz: number, shouldGenerate: boolean): java.util.concurrent.CompletableFuture; + /** + * Regenerates a chunk at the given chunk coordinate position. + */ + // @ts-ignore + regenerateChunk(chunkPosition: any /*Vector3i*/): java.util.Optional; + /** + * Regenerates a chunk at the given chunk coordinates. + */ + // @ts-ignore + regenerateChunk(cx: number, cy: number, cz: number): java.util.Optional; + /** + * Regenerates a chunk at the given chunk coordinate position. + */ + // @ts-ignore + regenerateChunk(chunkPosition: any /*Vector3i*/, flag: org.spongepowered.api.world.ChunkRegenerateFlag): java.util.Optional; + /** + * Regenerates a chunk at the given chunk coordinates. + */ + // @ts-ignore + regenerateChunk(cx: number, cy: number, cz: number, flag: org.spongepowered.api.world.ChunkRegenerateFlag): java.util.Optional; + /** + * Unloads the given chunk from the world. Returns a {@code boolean} flag + * for whether the operation was successful. + */ + // @ts-ignore + unloadChunk(chunk: org.spongepowered.api.world.Chunk): boolean; + /** + * Returns a Collection of all actively loaded chunks in this world. + *

The ordering of the returned chunks is undefined.

+ */ + // @ts-ignore + getLoadedChunks(): java.lang.Iterable; + /** + * Gets the entity whose {@link UUID} matches the provided id, possibly + * returning no entity if the entity is not loaded or non-existent. + *

For world implementations, only some parts of the world is usually + * loaded, so this method may return no entity if the entity is not + * loaded.

+ */ + // @ts-ignore + getEntity(uuid: java.util.UUID): java.util.Optional; + /** + * Gets the world border for the world. + */ + // @ts-ignore + getWorldBorder(): org.spongepowered.api.world.WorldBorder; + /** + * Returns a new builder for creating a task to pre-generate the chunks + * inside a square border with a given center and diameter. + */ + // @ts-ignore + newChunkPreGenerate(center: any /*Vector3d*/, diameter: number): org.spongepowered.api.world.ChunkPreGenerate.Builder; + /** + * Returns the {@link Dimension} of this world. + */ + // @ts-ignore + getDimension(): org.spongepowered.api.world.Dimension; + /** + * Gets the {@link WorldGenerator} for this world. + *

Any changes made to the world generator will only affect newly + * generated chunks.

+ */ + // @ts-ignore + getWorldGenerator(): org.spongepowered.api.world.gen.WorldGenerator; + /** + * Gets the properties for this world. + */ + // @ts-ignore + getProperties(): org.spongepowered.api.world.storage.WorldProperties; + /** + * Gets the {@link Path} pointing to the root of where the world's data + * is being stored. + */ + // @ts-ignore + getDirectory(): java.nio.file.Path; + /** + * Gets this {@link World}'s {@link UUID}. + */ + // @ts-ignore + getUniqueId(): java.util.UUID; + /** + * Gets the name of this {@link World world}. + */ + // @ts-ignore + getName(): string; + /** + * Gets the current {@link Difficulty}. + */ + // @ts-ignore + getDifficulty(): org.spongepowered.api.world.difficulty.Difficulty; + /** + * Gets a set game rule's current value, if available and set. + */ + // @ts-ignore + getGameRule(gameRule: string): java.util.Optional; + /** + * Gets the current {@link Map map} of game rules and their + * values. Most game rules can be found in {@link DefaultGameRules}. + */ + // @ts-ignore + getGameRules(): java.util.Map; + /** + * Gets whether the spawn chunks should remain loaded. + */ + // @ts-ignore + doesKeepSpawnLoaded(): boolean; + /** + * Sets whether the spawn chunks should remain loaded. + */ + // @ts-ignore + setKeepSpawnLoaded(keepLoaded: boolean): void; + /** + * Gets the {@link Location} of the spawn point. + */ + // @ts-ignore + getSpawnLocation(): org.spongepowered.api.world.Location; + /** + * Gets the {@link SerializationBehavior} to use. + */ + // @ts-ignore + getSerializationBehavior(): org.spongepowered.api.world.SerializationBehavior; + /** + * Sets the {@link SerializationBehavior} for use. + */ + // @ts-ignore + setSerializationBehavior(behavior: org.spongepowered.api.world.SerializationBehavior): void; + /** + * Gets the associated {@link WorldStorage} persisting this world. + */ + // @ts-ignore + getWorldStorage(): org.spongepowered.api.world.storage.WorldStorage; + /** + * Causes an {@link Explosion} in a world. + */ + // @ts-ignore + triggerExplosion(explosion: org.spongepowered.api.world.explosion.Explosion): void; + /** + * Gets the portal agent, used for manipulating teleporters. + */ + // @ts-ignore + getPortalAgent(): org.spongepowered.api.world.PortalAgent; + /** + * Gets the sea level of the world. + */ + // @ts-ignore + getSeaLevel(): number; + // @ts-ignore + getBiomeWorker(): org.spongepowered.api.world.extent.worker.MutableBiomeVolumeWorker; + // @ts-ignore + getBlockWorker(): org.spongepowered.api.world.extent.worker.MutableBlockVolumeWorker; + /** + * Instructs the world to save all data. + */ + // @ts-ignore + save(): boolean; + /** + * Gets the view distance (in chunks) for this world. + */ + // @ts-ignore + getViewDistance(): number; + /** + * Sets the view distance (in chunks) for this world. + *

The view distance must be greater than or equal to 3, + * and less than or equal to 32.

+ */ + // @ts-ignore + setViewDistance(viewDistance: number): void; + /** + * Resets the view distance to the default value for this world. + */ + // @ts-ignore + resetViewDistance(): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.WorldArchetype.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.WorldArchetype.Builder.d.ts new file mode 100644 index 00000000..706d80ad --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.WorldArchetype.Builder.d.ts @@ -0,0 +1,134 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace WorldArchetype { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets enabled status. Built worlds who are enabled but unloaded may + * be loaded automatically if an attempt is made to transfer an entity + * to the world using {@link Entity#transferToWorld} . + */ + // @ts-ignore + enabled(state: boolean): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets whether to load when the server starts. + */ + // @ts-ignore + loadsOnStartup(state: boolean): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets whether the spawn chunks should remain loaded when + * no players are present. + */ + // @ts-ignore + keepsSpawnLoaded(state: boolean): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets whether the spawn chunks generate on load. + */ + // @ts-ignore + generateSpawnOnLoad(state: boolean): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets the seed. See {@link #randomSeed()} if a random seed is desired. + */ + // @ts-ignore + seed(seed: number): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets the seed to be randomized for each world created. + */ + // @ts-ignore + randomSeed(): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets the default {@link GameMode}. If not specified this + * will default to {@link GameModes#SURVIVAL}. + */ + // @ts-ignore + gameMode(gameMode: org.spongepowered.api.entity.living.player.gamemode.GameMode): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets the generator type. If not specified this will default + * to {@link GeneratorTypes#DEFAULT} + */ + // @ts-ignore + generator(type: org.spongepowered.api.world.GeneratorType): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets the generator modifiers. + */ + // @ts-ignore + generatorModifiers(modifier: org.spongepowered.api.world.gen.WorldGeneratorModifier): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets the dimension type. + */ + // @ts-ignore + dimension(type: org.spongepowered.api.world.DimensionType): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets the difficulty. + */ + // @ts-ignore + difficulty(difficulty: org.spongepowered.api.world.difficulty.Difficulty): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets whether this should generate map features such as villages + * and strongholds. If not specified this will default to true. + */ + // @ts-ignore + usesMapFeatures(state: boolean): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets whether hardcore mode is enabled. On servers this will cause + * players to be banned upon death, on clients the world will be + * deleted! If not specified this will default to false. + */ + // @ts-ignore + hardcore(state: boolean): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets any extra settings required by the {@link GeneratorType} or by + * the {@link WorldGeneratorModifier}s. If not specified these will + * default to the settings within {@link GeneratorType#getGeneratorSettings()}. + */ + // @ts-ignore + generatorSettings(settings: org.spongepowered.api.data.DataContainer): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets the desired {@link PortalAgentType} for the world. + */ + // @ts-ignore + portalAgent(type: org.spongepowered.api.world.PortalAgentType): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets whether PVP combat is enabled in this world. + */ + // @ts-ignore + pvp(state: boolean): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets whether commands are allowed to be executed. + */ + // @ts-ignore + commandsAllowed(state: boolean): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets whether the bonus chest should be created. + */ + // @ts-ignore + generateBonusChest(state: boolean): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Sets the serialization behavior that will be used when saving. + */ + // @ts-ignore + serializationBehavior(behavior: org.spongepowered.api.world.SerializationBehavior): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Fills this {@link Builder} for creating {@link WorldArchetype}s, + * the builder is then seeded with the values from the given + * {@link WorldProperties} object. + */ + // @ts-ignore + from(properties: org.spongepowered.api.world.storage.WorldProperties): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Builds the {@link WorldArchetype} which can be used to create + * a {@link World} in {@link Server#createWorldProperties(String, WorldArchetype)}. + *

This will also register the settings as a new type in the + * {@link GameRegistry}.

+ */ + // @ts-ignore + build(id: string, name: string): org.spongepowered.api.world.WorldArchetype; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.WorldArchetype.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.WorldArchetype.d.ts new file mode 100644 index 00000000..f1374a00 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.WorldArchetype.d.ts @@ -0,0 +1,118 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface WorldArchetype extends org.spongepowered.api.CatalogType { + /** + * Gets a new Builder instance for {@link WorldArchetype}. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.WorldArchetype.Builder; + /** + * Gets enabled status. Built worlds who are enabled but unloaded may + * be loaded automatically if an attempt is made to transfer an entity + * to the world using {@link Entity#transferToWorld} . + */ + // @ts-ignore + isEnabled(): boolean; + /** + * Gets whether to load when the server starts. + */ + // @ts-ignore + loadOnStartup(): boolean; + /** + * Gets whether spawn chunks remain loaded when no players are present. + */ + // @ts-ignore + doesKeepSpawnLoaded(): boolean; + /** + * Gets whether spawn chunks will generate on load. + */ + // @ts-ignore + doesGenerateSpawnOnLoad(): boolean; + /** + * Gets the seed. + */ + // @ts-ignore + getSeed(): number; + /** + * Gets if the seed will be randomized for each world generated. + */ + // @ts-ignore + isSeedRandomized(): boolean; + /** + * Gets the gamemode. + */ + // @ts-ignore + getGameMode(): org.spongepowered.api.entity.living.player.gamemode.GameMode; + /** + * Gets the generator type. + */ + // @ts-ignore + getGeneratorType(): org.spongepowered.api.world.GeneratorType; + /** + * Gets an immutable collection of the world generator modifiers. + */ + // @ts-ignore + getGeneratorModifiers(): java.util.Collection; + /** + * Gets whether map features are enabled. + *

Examples include Villages, Temples, etc.

+ */ + // @ts-ignore + usesMapFeatures(): boolean; + /** + * Gets whether hardcore mode is enabled. + */ + // @ts-ignore + isHardcore(): boolean; + /** + * Gets whether commands are allowed. + */ + // @ts-ignore + areCommandsAllowed(): boolean; + /** + * Gets whether the bonus chest should be generated. + *

This only applies on the initial load of the {@link World} + * created via the {@link WorldProperties} created from this settings.

+ */ + // @ts-ignore + doesGenerateBonusChest(): boolean; + /** + * Gets the dimension type. + */ + // @ts-ignore + getDimensionType(): org.spongepowered.api.world.DimensionType; + /** + * Gets the {@link PortalAgentType} for the world. + */ + // @ts-ignore + getPortalAgentType(): org.spongepowered.api.world.PortalAgentType; + /** + * Gets the difficulty. + */ + // @ts-ignore + getDifficulty(): org.spongepowered.api.world.difficulty.Difficulty; + /** + * Gets whether PVP combat is enabled. + */ + // @ts-ignore + isPVPEnabled(): boolean; + /** + * Gets a {@link DataContainer} of any extra settings required by the + * generator. + */ + // @ts-ignore + getGeneratorSettings(): org.spongepowered.api.data.DataContainer; + /** + * Gets the {@link SerializationBehavior} that worlds built from this will use. + */ + // @ts-ignore + getSerializationBehavior(): org.spongepowered.api.world.SerializationBehavior; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.WorldArchetypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.WorldArchetypes.d.ts new file mode 100644 index 00000000..d93895c7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.WorldArchetypes.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + class WorldArchetypes extends java.lang.Object { + // @ts-ignore + public static OVERWORLD: org.spongepowered.api.world.WorldArchetype; + // @ts-ignore + public static THE_NETHER: org.spongepowered.api.world.WorldArchetype; + // @ts-ignore + public static THE_END: org.spongepowered.api.world.WorldArchetype; + // @ts-ignore + public static THE_SKYLANDS: org.spongepowered.api.world.WorldArchetype; + // @ts-ignore + public static THE_VOID: org.spongepowered.api.world.WorldArchetype; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.WorldBorder.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.WorldBorder.Builder.d.ts new file mode 100644 index 00000000..d5df86d7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.WorldBorder.Builder.d.ts @@ -0,0 +1,55 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace WorldBorder { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Copies the required data from the passed {@code WorldBorder}. + */ + // @ts-ignore + from(border: org.spongepowered.api.world.WorldBorder): org.spongepowered.api.world.WorldBorder.Builder; + /** + * Sets the diameter of this world border. + */ + // @ts-ignore + diameter(diameter: number): org.spongepowered.api.world.WorldBorder.Builder; + /** + * Sets the centre of this world border. + */ + // @ts-ignore + center(x: number, z: number): org.spongepowered.api.world.WorldBorder.Builder; + /** + * Sets the warning time of this world border. + */ + // @ts-ignore + warningTime(time: number): org.spongepowered.api.world.WorldBorder.Builder; + /** + * Sets the warning distance of this world border. + */ + // @ts-ignore + warningDistance(distance: number): org.spongepowered.api.world.WorldBorder.Builder; + /** + * Sets the damage threshold of this world border. + */ + // @ts-ignore + damageThreshold(distance: number): org.spongepowered.api.world.WorldBorder.Builder; + /** + * Sets the damage amount of this world border. + */ + // @ts-ignore + damageAmount(damage: number): org.spongepowered.api.world.WorldBorder.Builder; + /** + * Builds the world border from the information given. If no information + * is given, a {@code WorldBorder} with default properties is built. + */ + // @ts-ignore + build(): org.spongepowered.api.world.WorldBorder; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.WorldBorder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.WorldBorder.d.ts new file mode 100644 index 00000000..1045cb5a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.WorldBorder.d.ts @@ -0,0 +1,143 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + // @ts-ignore + interface WorldBorder { + /** + * Creates a new {@link Builder} instance for making {@link WorldBorder}s. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.WorldBorder.Builder; + /** + * Gets the diameter the world border is expanding or contracting to. + *

This will return the same value as {@link #getDiameter} unless + * {@link #getTimeRemaining} is greater than 0.

+ */ + // @ts-ignore + getNewDiameter(): number; + /** + * Gets the diameter of the world border. + *

The returned diameter applies to the x and z axis. The world border + * extends over the entire y-axis.

+ */ + // @ts-ignore + getDiameter(): number; + /** + * Sets the diameter of the world border. + *

The specified diameter applies to the x and z axis. The world border + * extends over the entire y-axis.

+ */ + // @ts-ignore + setDiameter(diameter: number): void; + /** + * Sets the diameter of the world border, over the given period of time. + *

The world border diameter increases/decrease linearly over the + * specified time. The specified diameter applies to the x and z axis. The + * world border extends over the entire y-axis.

+ */ + // @ts-ignore + setDiameter(diameter: number, time: number): void; + /** + * Sets the starting diameter and the ending diameter of the world border, + * over the given period of time. + *

The world border diameter increases/diameter linearly over the + * specified time. The specified diameter applies to the x and z axis. The + * world border extends over the entire y-axis.

+ */ + // @ts-ignore + setDiameter(startDiameter: number, endDiameter: number, time: number): void; + /** + * Gets the time remaining until the world border stops expanding or + * contracting. + */ + // @ts-ignore + getTimeRemaining(): number; + /** + * Sets the center of the world border. + */ + // @ts-ignore + setCenter(x: number, z: number): void; + /** + * Gets the center of the world border. + *

The returned position is three-dimensional. As the world border + * extends over the entire y-axis, the returned position will always have a + * {@code y} set to 0.

+ */ + // @ts-ignore + getCenter(): any /*Vector3d*/; + /** + * Gets the time when a contracting world border will warn a player for whom + * the world border will reach in {@code time} seconds. + *

In Minecraft, the warning is displayed in the form of a reddish + * tint.

+ */ + // @ts-ignore + getWarningTime(): number; + /** + * Sets the time when a contracting world border will warn a player for whom + * the world border will reach in {@code time} seconds. + *

In Minecraft, the warning is displayed in the form of a reddish + * tint.

+ */ + // @ts-ignore + setWarningTime(time: number): void; + /** + * Gets the distance when a contracting world border will warn a player for + * whom the world border is {@code distance} blocks away. + *

In Minecraft, the warning is displayed in the form of a reddish + * tint.

+ */ + // @ts-ignore + getWarningDistance(): number; + /** + * Sets the distance when a contracting world border will warn a player for + * whom the world border is {@code distance} blocks away. + *

In Minecraft, the warning is displayed in the form of a reddish + * tint.

+ */ + // @ts-ignore + setWarningDistance(distance: number): void; + /** + * Gets the distance a player may be outside the world border before taking + * damage. + */ + // @ts-ignore + getDamageThreshold(): number; + /** + * Sets the distance a player may be be outside the world border before + * taking damage. + */ + // @ts-ignore + setDamageThreshold(distance: number): void; + /** + * Gets the damage done to a player per block per tick when outside the + * buffer. + */ + // @ts-ignore + getDamageAmount(): number; + /** + * Sets the damage done to a player per block per tick when outside the + * buffer. + */ + // @ts-ignore + setDamageAmount(damage: number): void; + /** + * Returns a new builder for creating a task to pre-generate the chunks + * inside the border. The current state of the border is "snapshotted" for + * the builder. It is not backed by this instance. If the border size is + * changing then the target size is used. + */ + // @ts-ignore + newChunkPreGenerate(world: org.spongepowered.api.world.World): org.spongepowered.api.world.ChunkPreGenerate.Builder; + /** + * Copies the properties of the passed border onto this border. + */ + // @ts-ignore + copyPropertiesFrom(border: org.spongepowered.api.world.WorldBorder): void; + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.biome.BiomeGenerationSettings.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.biome.BiomeGenerationSettings.Builder.d.ts new file mode 100644 index 00000000..00d40f0e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.biome.BiomeGenerationSettings.Builder.d.ts @@ -0,0 +1,61 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace biome { + namespace BiomeGenerationSettings { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the min height for the biome. + */ + // @ts-ignore + minHeight(height: number): org.spongepowered.api.world.biome.BiomeGenerationSettings.Builder; + /** + * Sets the max height for the biome. + */ + // @ts-ignore + maxHeight(height: number): org.spongepowered.api.world.biome.BiomeGenerationSettings.Builder; + /** + * Sets the ground cover layers. + */ + // @ts-ignore + groundCover(coverLayers: org.spongepowered.api.world.biome.GroundCoverLayer): org.spongepowered.api.world.biome.BiomeGenerationSettings.Builder; + /** + * Sets the ground cover layers. + */ + // @ts-ignore + groundCover(coverLayers: java.lang.Iterable): org.spongepowered.api.world.biome.BiomeGenerationSettings.Builder; + /** + * Sets the generation populators. + */ + // @ts-ignore + generationPopulators(genpop: org.spongepowered.api.world.gen.GenerationPopulator): org.spongepowered.api.world.biome.BiomeGenerationSettings.Builder; + /** + * Sets the generation populators. + */ + // @ts-ignore + generationPopulators(genpop: java.lang.Iterable): org.spongepowered.api.world.biome.BiomeGenerationSettings.Builder; + /** + * Sets the populators. + */ + // @ts-ignore + populators(populators: org.spongepowered.api.world.gen.Populator): org.spongepowered.api.world.biome.BiomeGenerationSettings.Builder; + /** + * Sets the populators. + */ + // @ts-ignore + populators(populators: java.lang.Iterable): org.spongepowered.api.world.biome.BiomeGenerationSettings.Builder; + /** + * Creates a new set of {@link BiomeGenerationSettings}s. + */ + // @ts-ignore + build(): org.spongepowered.api.world.biome.BiomeGenerationSettings; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.biome.BiomeGenerationSettings.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.biome.BiomeGenerationSettings.d.ts new file mode 100644 index 00000000..556df16d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.biome.BiomeGenerationSettings.d.ts @@ -0,0 +1,79 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace biome { + // @ts-ignore + interface BiomeGenerationSettings { + /** + * Gets a new builder for creating new BiomeGenerationSettings. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.biome.BiomeGenerationSettings.Builder; + /** + * Gets the minimum terrain height of this biome. + */ + // @ts-ignore + getMinHeight(): number; + /** + * Sets the minimum terrain height of this biome. + */ + // @ts-ignore + setMinHeight(height: number): void; + /** + * Gets the maximum terrain height of this biome. + */ + // @ts-ignore + getMaxHeight(): number; + /** + * Sets the maximum terrain height of this biome. + */ + // @ts-ignore + setMaxHeight(height: number): void; + /** + * Gets a mutable ordered list of {@link GroundCoverLayer}s. These layers + * will be applied to the base terrain during the generation phase starting + * at the topmost stone block in each column. + */ + // @ts-ignore + getGroundCoverLayers(): java.util.List; + /** + * Gets a mutable list of {@link GenerationPopulator}s. These populators + * work strictly on a single chunk. They will be executed directly after the + * {@link #getGroundCoverLayers() ground cover layers} are applied. These + * generation populators are typically used to generate large terrain + * features, like caves and ravines. + */ + // @ts-ignore + getGenerationPopulators(): java.util.List; + /** + * Gets an immutable list of {@link GenerationPopulator}s matching the given + * class type. + */ + // @ts-ignore + getGenerationPopulators(type: java.lang.Class): java.util.List; + /** + * Returns a mutable list of {@link Populator}s specific to this biome. + * Changing this list will affect population of all new chunks. + */ + // @ts-ignore + getPopulators(): java.util.List; + /** + * Returns an immutable list of {@link Populator}s specific to this biome + * which match the given class type. + */ + // @ts-ignore + getPopulators(type: java.lang.Class): java.util.List; + /** + * Returns a new biome generation settings which is a copy of this set of + * generation settings at this point in time. + */ + // @ts-ignore + copy(): org.spongepowered.api.world.biome.BiomeGenerationSettings; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.biome.BiomeType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.biome.BiomeType.d.ts new file mode 100644 index 00000000..b07bed02 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.biome.BiomeType.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace biome { + // @ts-ignore + interface BiomeType extends org.spongepowered.api.CatalogType { + /** + * Gets the temperature of this biome. + */ + // @ts-ignore + getTemperature(): number; + /** + * Gets the humidity of this biome. + */ + // @ts-ignore + getHumidity(): number; + /** + * Gets the default generation settings of this biome for the given world. + */ + // @ts-ignore + createDefaultGenerationSettings(world: org.spongepowered.api.world.World): org.spongepowered.api.world.biome.BiomeGenerationSettings; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.biome.BiomeTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.biome.BiomeTypes.d.ts new file mode 100644 index 00000000..64dd7db8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.biome.BiomeTypes.d.ts @@ -0,0 +1,138 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace biome { + // @ts-ignore + class BiomeTypes extends java.lang.Object { + // @ts-ignore + public static BEACH: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static BIRCH_FOREST: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static BIRCH_FOREST_HILLS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static COLD_BEACH: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static COLD_TAIGA: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static COLD_TAIGA_HILLS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static DEEP_OCEAN: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static DESERT: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static DESERT_HILLS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static EXTREME_HILLS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static EXTREME_HILLS_EDGE: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static EXTREME_HILLS_PLUS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static FOREST: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static FOREST_HILLS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static FROZEN_OCEAN: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static FROZEN_RIVER: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static HELL: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static ICE_MOUNTAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static ICE_PLAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static JUNGLE: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static JUNGLE_EDGE: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static JUNGLE_HILLS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static MEGA_TAIGA: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static MEGA_TAIGA_HILLS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static MESA: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static MESA_PLATEAU: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static MESA_PLATEAU_FOREST: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static MUSHROOM_ISLAND: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static MUSHROOM_ISLAND_SHORE: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static OCEAN: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static PLAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static RIVER: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static ROOFED_FOREST: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static SAVANNA: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static SAVANNA_PLATEAU: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static SKY: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static STONE_BEACH: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static SWAMPLAND: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static TAIGA: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static TAIGA_HILLS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static BIRCH_FOREST_HILLS_MOUNTAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static BIRCH_FOREST_MOUNTAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static COLD_TAIGA_MOUNTAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static DESERT_MOUNTAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static EXTREME_HILLS_MOUNTAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static EXTREME_HILLS_PLUS_MOUNTAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static FLOWER_FOREST: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static ICE_PLAINS_SPIKES: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static JUNGLE_EDGE_MOUNTAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static JUNGLE_MOUNTAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static MEGA_SPRUCE_TAIGA: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static MEGA_SPRUCE_TAIGA_HILLS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static MESA_BRYCE: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static MESA_PLATEAU_FOREST_MOUNTAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static MESA_PLATEAU_MOUNTAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static ROOFED_FOREST_MOUNTAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static SAVANNA_MOUNTAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static SAVANNA_PLATEAU_MOUNTAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static SUNFLOWER_PLAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static SWAMPLAND_MOUNTAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static TAIGA_MOUNTAINS: org.spongepowered.api.world.biome.BiomeType; + // @ts-ignore + public static VOID: org.spongepowered.api.world.biome.BiomeType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.biome.GroundCoverLayer.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.biome.GroundCoverLayer.d.ts new file mode 100644 index 00000000..0a461234 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.biome.GroundCoverLayer.d.ts @@ -0,0 +1,76 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace biome { + // @ts-ignore + class GroundCoverLayer extends java.lang.Object { + /** + * Creates a new {@link GroundCoverLayer}. + */ + // @ts-ignore + constructor(block: org.spongepowered.api.block.BlockState, depth: org.spongepowered.api.util.weighted.SeededVariableAmount) + /** + * Creates a new {@link GroundCoverLayer}. + */ + // @ts-ignore + constructor(block: java.util.function$.Function, depth: org.spongepowered.api.util.weighted.SeededVariableAmount) + /** + * Gets the {@link BlockState} for this layer. + */ + // @ts-ignore + public getBlockState(): java.util.function$.Function; + /** + * Sets the function which is used to determine the blockstate to place at + * this layer. The input to the function is a noise value. + */ + // @ts-ignore + public setBlockState(block: java.util.function$.Function): void; + /** + * Sets the {@link BlockState} for this layer. + */ + // @ts-ignore + public setBlockState(block: org.spongepowered.api.block.BlockState): void; + /** + * Gets a representation of the depth of this layer. The variable amount + * will be seeded with the stone noise at generation time. + */ + // @ts-ignore + public getDepth(): org.spongepowered.api.util.weighted.SeededVariableAmount; + /** + * Gets a representation of the depth of this layer. The variable amount + * will be seeded with the stone noise at generation time. This depth may + * vary based on the Y position. + */ + // @ts-ignore + public getDepth(topYCoordinate: number): org.spongepowered.api.util.weighted.SeededVariableAmount; + /** + * Sets the {@link SeededVariableAmount} representing the depth of this + * layer. The variable amount will be seeded with the stone noise at + * generation time. + */ + // @ts-ignore + public setDepth(depth: org.spongepowered.api.util.weighted.SeededVariableAmount): void; + /** + * Sets the {@link VariableAmount} representing the depth of this layer. + */ + // @ts-ignore + public setDepth(depth: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the depth of this layer to the given constant value. + */ + // @ts-ignore + public setDepth(depth: number): void; + // @ts-ignore + public toString(): string; + // @ts-ignore + public equals(obj: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.biome.VirtualBiomeType.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.biome.VirtualBiomeType.Builder.d.ts new file mode 100644 index 00000000..f3379763 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.biome.VirtualBiomeType.Builder.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace biome { + namespace VirtualBiomeType { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the name of the new virtual biome. + */ + // @ts-ignore + name(name: string): org.spongepowered.api.world.biome.VirtualBiomeType.Builder; + /** + * Sets the temperature of the virtual biome. + */ + // @ts-ignore + temperature(temp: number): org.spongepowered.api.world.biome.VirtualBiomeType.Builder; + /** + * Sets the humidity of the virtual biome. + */ + // @ts-ignore + humidity(humidity: number): org.spongepowered.api.world.biome.VirtualBiomeType.Builder; + /** + * Sets the {@link BiomeType} that this virtual biome is persisted as + * after generation is complete. + */ + // @ts-ignore + persistedType(biome: org.spongepowered.api.world.biome.BiomeType): org.spongepowered.api.world.biome.VirtualBiomeType.Builder; + /** + * Sets the function used for creating new + * {@link BiomeGenerationSettings}s for this virtual biome. + */ + // @ts-ignore + settingsBuilder(settingsBuilder: java.util.function$.Function): org.spongepowered.api.world.biome.VirtualBiomeType.Builder; + /** + * Builds a new {@link VirtualBiomeType} with the given unique id. + */ + // @ts-ignore + build(id: string): org.spongepowered.api.world.biome.VirtualBiomeType; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.biome.VirtualBiomeType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.biome.VirtualBiomeType.d.ts new file mode 100644 index 00000000..4df57b1b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.biome.VirtualBiomeType.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace biome { + // @ts-ignore + interface VirtualBiomeType extends org.spongepowered.api.world.biome.BiomeType { + /** + * Gets a new builder for creating new VirtualBiomeTypes. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.biome.VirtualBiomeType.Builder; + /** + * Gets the biome type which this virtual biome is persisted as. + */ + // @ts-ignore + getPersistedType(): org.spongepowered.api.world.biome.BiomeType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.difficulty.Difficulties.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.difficulty.Difficulties.d.ts new file mode 100644 index 00000000..381343d2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.difficulty.Difficulties.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace difficulty { + // @ts-ignore + class Difficulties extends java.lang.Object { + // @ts-ignore + public static EASY: org.spongepowered.api.world.difficulty.Difficulty; + // @ts-ignore + public static HARD: org.spongepowered.api.world.difficulty.Difficulty; + // @ts-ignore + public static NORMAL: org.spongepowered.api.world.difficulty.Difficulty; + // @ts-ignore + public static PEACEFUL: org.spongepowered.api.world.difficulty.Difficulty; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.difficulty.Difficulty.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.difficulty.Difficulty.d.ts new file mode 100644 index 00000000..f63fffc9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.difficulty.Difficulty.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace difficulty { + // @ts-ignore + interface Difficulty extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.explosion.Explosion.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.explosion.Explosion.Builder.d.ts new file mode 100644 index 00000000..828ddfb8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.explosion.Explosion.Builder.d.ts @@ -0,0 +1,56 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace explosion { + namespace Explosion { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the location origin of the explosion. + */ + // @ts-ignore + location(location: org.spongepowered.api.world.Location): org.spongepowered.api.world.explosion.Explosion.Builder; + /** + * Sets the source explosive of the explosion. + */ + // @ts-ignore + sourceExplosive(source: org.spongepowered.api.entity.explosive.Explosive): org.spongepowered.api.world.explosion.Explosion.Builder; + /** + * Sets the radius of the explosion. + */ + // @ts-ignore + radius(radius: number): org.spongepowered.api.world.explosion.Explosion.Builder; + /** + * Sets whether the affected blocks have a chance to catch on fire. + */ + // @ts-ignore + canCauseFire(fire: boolean): org.spongepowered.api.world.explosion.Explosion.Builder; + /** + * Sets whether the explosion will damage entities nearby. + */ + // @ts-ignore + shouldDamageEntities(damage: boolean): org.spongepowered.api.world.explosion.Explosion.Builder; + /** + * Sets whether the explosion will have smoke particles. + */ + // @ts-ignore + shouldPlaySmoke(smoke: boolean): org.spongepowered.api.world.explosion.Explosion.Builder; + /** + * Sets whether the affected blocks should be destroyed on explosion. + */ + // @ts-ignore + shouldBreakBlocks(destroy: boolean): org.spongepowered.api.world.explosion.Explosion.Builder; + /** + * Attempts to create a {@link Explosion} from the specified parameters. + */ + // @ts-ignore + build(): org.spongepowered.api.world.explosion.Explosion; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.explosion.Explosion.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.explosion.Explosion.d.ts new file mode 100644 index 00000000..c427bf98 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.explosion.Explosion.d.ts @@ -0,0 +1,49 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace explosion { + // @ts-ignore + interface Explosion extends org.spongepowered.api.world.Locatable { + /** + * Creates a new {@link Builder} to build a {@link Explosion}. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.explosion.Explosion.Builder; + /** + * Gets the source {@link Explosive} of the explosion. + */ + // @ts-ignore + getSourceExplosive(): java.util.Optional; + /** + * Gets the radius of the explosion. + */ + // @ts-ignore + getRadius(): number; + /** + * Gets whether the affected blocks have a chance to catch on fire. + */ + // @ts-ignore + canCauseFire(): boolean; + /** + * Gets whether the explosion will play a smoke effect. + */ + // @ts-ignore + shouldPlaySmoke(): boolean; + /** + * Gets whether the affected blocks should be destroyed on explosion. + */ + // @ts-ignore + shouldBreakBlocks(): boolean; + /** + * Gets whether this explosion will damage entities. + */ + // @ts-ignore + shouldDamageEntities(): boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.ArchetypeVolume.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.ArchetypeVolume.d.ts new file mode 100644 index 00000000..79a3f096 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.ArchetypeVolume.d.ts @@ -0,0 +1,47 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + // @ts-ignore + interface ArchetypeVolume extends org.spongepowered.api.world.extent.MutableBlockVolume { + /** + * Applies this archetype at the given location. The archetype will be + * mapped onto the given world such that the origin on the archetype lines + * up with the given position. + */ + // @ts-ignore + apply(location: org.spongepowered.api.world.Location, changeFlag: org.spongepowered.api.world.BlockChangeFlag): void; + /** + * Gets the {@link TileEntityArchetype} for the tile entity carrying block + * at the given coordinates. + */ + // @ts-ignore + getTileEntityArchetype(x: number, y: number, z: number): java.util.Optional; + /** + * Gets the {@link TileEntityArchetype} for the tile entity carrying block + * at the given coordinates. + */ + // @ts-ignore + getTileEntityArchetype(position: any /*Vector3i*/): java.util.Optional; + /** + * Gets a map containing all tile entity archetypes within this volume, + * keyed by their positions within the volume. + */ + // @ts-ignore + getTileEntityArchetypes(): java.util.Map; + // @ts-ignore + getEntityArchetype(x: number, y: number, z: number): java.util.Optional; + // @ts-ignore + getEntitiesByPosition(): any; + // @ts-ignore + getEntityArchetypes(): java.util.Collection; + // @ts-ignore + getBlockWorker(): org.spongepowered.api.world.extent.worker.MutableBlockVolumeWorker; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.BiomeVolume.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.BiomeVolume.d.ts new file mode 100644 index 00000000..51cb4eaf --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.BiomeVolume.d.ts @@ -0,0 +1,106 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + // @ts-ignore + interface BiomeVolume { + /** + * Gets the biome location with the lowest x and y that is still a valid + * position for {@link #getBiome(Vector3i)}. + */ + // @ts-ignore + getBiomeMin(): any /*Vector3i*/; + /** + * Gets the biome location with the highest x and y that is still a valid + * position for {@link #getBiome(Vector3i)}. + */ + // @ts-ignore + getBiomeMax(): any /*Vector3i*/; + /** + * Gets the size of the volume. Defined as {@link #getBiomeMax()} - + * {@link #getBiomeMin()} + (1, 1). + */ + // @ts-ignore + getBiomeSize(): any /*Vector3i*/; + /** + * Returns true if the biome volume contains a biome at the specified + * position. This is defined as {{@link #getBiomeMin()} <= position + * <= {@link #getBiomeMax()} + */ + // @ts-ignore + containsBiome(position: any /*Vector3i*/): boolean; + /** + * Returns true if the biome volume contains a biome at the specified + * position. This is defined as {{@link #getBiomeMin()} <= (x, y, z) + * <= {@link #getBiomeMax()} + */ + // @ts-ignore + containsBiome(x: number, y: number, z: number): boolean; + /** + * Gets an object representing the biome at the given position. + */ + // @ts-ignore + getBiome(position: any /*Vector3i*/): org.spongepowered.api.world.biome.BiomeType; + /** + * Gets the {@link BiomeType} at the given location. + */ + // @ts-ignore + getBiome(x: number, y: number, z: number): org.spongepowered.api.world.biome.BiomeType; + /** + * Returns a new volume that is the same or smaller than the current volume. + * This does not copy the biomes, it only provides a new view of the + * storage. + */ + // @ts-ignore + getBiomeView(newMin: any /*Vector3i*/, newMax: any /*Vector3i*/): org.spongepowered.api.world.extent.BiomeVolume; + /** + * Returns a new volume that is viewed through some transformation. This + * does not copy the biomes, it only provides a new view of the storage. + */ + // @ts-ignore + getBiomeView(transform: org.spongepowered.api.util.DiscreteTransform3): org.spongepowered.api.world.extent.BiomeVolume; + /** + * Returns a new volume that is translated so that + * {@link BiomeVolume#getBiomeMin()} returns {@link Vector2i#ZERO}. This + * does not copy the biomes, it only provides a new view of the storage. + */ + // @ts-ignore + getRelativeBiomeView(): org.spongepowered.api.world.extent.BiomeVolume; + /** + * Returns a new volume that cannot be modified through this view. Unlike + * immutable storage, it can be changed by holders of mutable views. This + * does not copy the biomes, it only provides a new view of the storage. + */ + // @ts-ignore + getUnmodifiableBiomeView(): org.spongepowered.api.world.extent.UnmodifiableBiomeVolume; + /** + * Returns a mutable copy of the biomes stored in this volume. This uses the + * default storage type of {@link StorageType#STANDARD}. + */ + // @ts-ignore + getBiomeCopy(): org.spongepowered.api.world.extent.MutableBiomeVolume; + /** + * Returns a mutable copy of the biomes stored in this volume. This uses the + * provided storage type. + */ + // @ts-ignore + getBiomeCopy(type: org.spongepowered.api.world.extent.StorageType): org.spongepowered.api.world.extent.MutableBiomeVolume; + /** + * Returns an immutable copy of the biomes stored in this volume. This uses + * some internal storage solution that is thread-safe by nature. + */ + // @ts-ignore + getImmutableBiomeCopy(): org.spongepowered.api.world.extent.ImmutableBiomeVolume; + /** + * Gets a new biome worker for this biome volume. + */ + // @ts-ignore + getBiomeWorker(): org.spongepowered.api.world.extent.worker.BiomeVolumeWorker; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.BlockVolume.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.BlockVolume.d.ts new file mode 100644 index 00000000..c63b8566 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.BlockVolume.d.ts @@ -0,0 +1,120 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + // @ts-ignore + interface BlockVolume { + /** + * Gets the block location with the lowest x, y and z that is still a valid + * position for {@link #getBlock(Vector3i)}. + */ + // @ts-ignore + getBlockMin(): any /*Vector3i*/; + /** + * Gets the block location with the highest x, y and z that is still a valid + * position for {@link #getBlock(Vector3i)}. + */ + // @ts-ignore + getBlockMax(): any /*Vector3i*/; + /** + * Gets the size of the whole volume. Defined as + * {@link #getBlockMax()} - {@link #getBlockMin()} + (1, 1, 1) . + */ + // @ts-ignore + getBlockSize(): any /*Vector3i*/; + /** + * Returns true if the block volume contains a block at the specified + * position. This is defined as {{@link #getBlockMin()} <= position <= + * {@link #getBlockMax()} + */ + // @ts-ignore + containsBlock(position: any /*Vector3i*/): boolean; + /** + * Returns true if the block volume contains a block at the specified + * position. This is defined as {{@link #getBlockMin()} <= (x, y, z) + * <= {@link #getBlockMax()} + */ + // @ts-ignore + containsBlock(x: number, y: number, z: number): boolean; + /** + * Gets a representation of the block at the given position. + */ + // @ts-ignore + getBlock(position: any /*Vector3i*/): org.spongepowered.api.block.BlockState; + /** + * Gets a representation of the block at the given position. + */ + // @ts-ignore + getBlock(x: number, y: number, z: number): org.spongepowered.api.block.BlockState; + /** + * Gets the base type of block. + *

The type does not include block data such as the contents of + * inventories.

+ */ + // @ts-ignore + getBlockType(position: any /*Vector3i*/): org.spongepowered.api.block.BlockType; + /** + * Gets the base type of block. + *

The type does not include block data such as the contents of + * inventories.

+ */ + // @ts-ignore + getBlockType(x: number, y: number, z: number): org.spongepowered.api.block.BlockType; + /** + * Returns a new volume that is the same or smaller than the current volume. + * This does not copy the blocks, it only provides a new view of the + * storage. + */ + // @ts-ignore + getBlockView(newMin: any /*Vector3i*/, newMax: any /*Vector3i*/): org.spongepowered.api.world.extent.BlockVolume; + /** + * Returns a new volume that is viewed through some transformation. This + * does not copy the blocks, it only provides a new view of the storage. + */ + // @ts-ignore + getBlockView(transform: org.spongepowered.api.util.DiscreteTransform3): org.spongepowered.api.world.extent.BlockVolume; + /** + * Returns a new volume that is translated so that + * {@link BlockVolume#getBlockMin()} returns {@link Vector3i#ZERO}. This + * does not copy the blocks, it only provides a new view of the storage. + */ + // @ts-ignore + getRelativeBlockView(): org.spongepowered.api.world.extent.BlockVolume; + /** + * Returns a new volume that cannot be modified through this view. Unlike + * immutable storage, it can be changed by holders of mutable views. This + * does not copy the blocks, it only provides a new view of the storage. + */ + // @ts-ignore + getUnmodifiableBlockView(): org.spongepowered.api.world.extent.UnmodifiableBlockVolume; + /** + * Returns a mutable copy of the blocks stored in this volume. This uses the + * default storage type of {@link StorageType#STANDARD}. + */ + // @ts-ignore + getBlockCopy(): org.spongepowered.api.world.extent.MutableBlockVolume; + /** + * Returns a mutable copy of the blocks stored in this volume. This uses the + * provided storage type. + */ + // @ts-ignore + getBlockCopy(type: org.spongepowered.api.world.extent.StorageType): org.spongepowered.api.world.extent.MutableBlockVolume; + /** + * Returns an immutable copy of the blocks stored in this volume. This uses + * some internal storage solution that is thread-safe by nature. + */ + // @ts-ignore + getImmutableBlockCopy(): org.spongepowered.api.world.extent.ImmutableBlockVolume; + /** + * Gets a new block worker for this block volume. + */ + // @ts-ignore + getBlockWorker(): org.spongepowered.api.world.extent.worker.BlockVolumeWorker; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.EntityUniverse.EntityHit.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.EntityUniverse.EntityHit.d.ts new file mode 100644 index 00000000..761af155 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.EntityUniverse.EntityHit.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + namespace EntityUniverse { + // @ts-ignore + class EntityHit extends java.lang.Object { + /** + * Creates a new entity hit from the entity, the intersection point and + * the normal. + */ + // @ts-ignore + constructor(entity: org.spongepowered.api.entity.Entity, intersection: any /*Vector3d*/, normal: any /*Vector3d*/, distance: number) + /** + * Gets the intersected entity. + */ + // @ts-ignore + public getEntity(): org.spongepowered.api.entity.Entity; + /** + * Gets the intersection point. + */ + // @ts-ignore + public getIntersection(): any /*Vector3d*/; + /** + * Gets the intersection normal. + */ + // @ts-ignore + public getNormal(): any /*Vector3d*/; + /** + * Gets the distance from the start to the intersection. + */ + // @ts-ignore + public getDistance(): number; + // @ts-ignore + public equals(other: java.lang.Object): boolean; + // @ts-ignore + public hashCode(): number; + // @ts-ignore + public toString(): string; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.EntityUniverse.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.EntityUniverse.d.ts new file mode 100644 index 00000000..69862a38 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.EntityUniverse.d.ts @@ -0,0 +1,188 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + // @ts-ignore + interface EntityUniverse { + /** + * Gets the entity whose {@link UUID} matches the provided id, possibly + * returning no entity if the entity is not loaded or non-existent. + *

For world implementations, only some parts of the world is usually + * loaded, so this method may return no entity if the entity is not + * loaded.

+ */ + // @ts-ignore + getEntity(uuid: java.util.UUID): java.util.Optional; + /** + * Return a collection of entities contained within this universe, possibly + * only returning entities only in loaded areas. + *

For world implementations, only some parts of the world is usually + * loaded, so this method will only return entities within those loaded + * parts.

+ */ + // @ts-ignore + getEntities(): java.util.Collection; + /** + * Return a collection of entities contained within this universe, possibly + * only returning entities only in loaded areas. The returned entities are + * filtered by the given {@link Predicate} before being returned. + *

For world implementations, only some parts of the world is usually + * loaded, so this method will only return entities within those loaded + * parts.

+ */ + // @ts-ignore + getEntities(filter: java.util.function$.Predicate): java.util.Collection; + /** + * Return a collection of entities contained within {@code distance} blocks + * of the specified location. This uses a sphere to test distances. + *

For world implementations, only some parts of the world is usually + * loaded, so this method will only return entities within those loaded + * parts.

+ */ + // @ts-ignore + getNearbyEntities(location: any /*Vector3d*/, distance: number): java.util.Collection; + /** + * Create an entity instance at the given position. + *

Creating an entity does not spawn the entity into the world. An entity + * created means the entity can be spawned at the given location. If + * {@link Optional#empty()} was returned, the entity is not able to spawn at + * the given location. Furthermore, this allows for the {@link Entity} to be + * customized further prior to traditional "ticking" and processing by core + * systems.

+ */ + // @ts-ignore + createEntity(type: org.spongepowered.api.entity.EntityType, position: any /*Vector3d*/): org.spongepowered.api.entity.Entity; + /** + * Create an entity instance at the given position. + *

Creating an entity does not spawn the entity into the world. An entity + * created means the entity can be spawned at the given location. If + * {@link Optional#empty()} was returned, the entity is not able to spawn at + * the given location. Furthermore, this allows for the {@link Entity} to be + * customized further prior to traditional "ticking" and processing by core + * systems.

+ */ + // @ts-ignore + createEntity(type: org.spongepowered.api.entity.EntityType, position: any /*Vector3i*/): org.spongepowered.api.entity.Entity; + /** + * Create an entity instance at the given position. + *

Creating an entity does not spawn the entity into the world. An entity + * created means the entity can be spawned at the given location. If + * {@link Optional#empty()} was returned, the entity is not able to spawn at + * the given location. Furthermore, this allows for the {@link Entity} to be + * customized further prior to traditional "ticking" and processing by core + * systems.

+ */ + // @ts-ignore + createEntity(entityContainer: org.spongepowered.api.data.DataContainer): java.util.Optional; + /** + * Create an entity instance at the given position. + *

Creating an entity does not spawn the entity into the world. An entity + * created means the entity can be spawned at the given location. If + * {@link Optional#empty()} was returned, the entity is not able to spawn at + * the given location. Furthermore, this allows for the {@link Entity} to be + * customized further prior to traditional "ticking" and processing by core + * systems.

+ */ + // @ts-ignore + createEntity(entityContainer: org.spongepowered.api.data.DataContainer, position: any /*Vector3d*/): java.util.Optional; + /** + * Create an entity instance at the given position with the default + * equipment. + *

Creating an entity does not spawn the entity into the world. An entity + * created means the entity can be spawned at the given location. If + * {@link Optional#empty()} was returned, the entity is not able to spawn at + * the given location. Furthermore, this allows for the {@link Entity} to be + * customized further prior to traditional "ticking" and processing by core + * systems.

+ */ + // @ts-ignore + createEntityNaturally(type: org.spongepowered.api.entity.EntityType, position: any /*Vector3d*/): org.spongepowered.api.entity.Entity; + /** + * Create an entity instance at the given position with the default + * equipment. + *

Creating an entity does not spawn the entity into the world. An entity + * created means the entity can be spawned at the given location. If + * {@link Optional#empty()} was returned, the entity is not able to spawn at + * the given location. Furthermore, this allows for the {@link Entity} to be + * customized further prior to traditional "ticking" and processing by core + * systems.

+ */ + // @ts-ignore + createEntityNaturally(type: org.spongepowered.api.entity.EntityType, position: any /*Vector3i*/): org.spongepowered.api.entity.Entity; + /** + * Creates and restores an {@link Entity} from the provided + * {@link EntitySnapshot} at the provided {@link Vector3d} position. + *

Creating an entity does not spawn the entity into the world. An entity + * created means the entity can be spawned at the given location. If + * {@link Optional#empty()} was returned, the entity is not able to spawn at + * the given location. Furthermore, this allows for the {@link Entity} to be + * customized further prior to traditional "ticking" and processing by core + * systems.

+ */ + // @ts-ignore + restoreSnapshot(snapshot: org.spongepowered.api.entity.EntitySnapshot, position: any /*Vector3d*/): java.util.Optional; + /** + * Spawns an {@link Entity} using the already set properties (extent, + * position, rotation) and applicable {@link DataManipulator}s for spawning + * the entity. + *

The requirements involve that all necessary setup of states and data + * is already preformed on the entity retrieved from the various + * {@link #createEntity(EntityType,Vector3d)} methods. Calling this will + * make the now-spawned entity able to be processed by various systems.

+ *

If the entity was unable to spawn, the entity is not removed, but it + * should be taken note that there can be many reasons for a failure.

+ */ + // @ts-ignore + spawnEntity(entity: org.spongepowered.api.entity.Entity): boolean; + /** + * Similar to {@link #spawnEntity(Entity)} except where multiple entities + * can be attempted to be spawned. + */ + // @ts-ignore + spawnEntities(entities: java.lang.Iterable): java.util.Collection; + /** + * Gets all the entities that intersect the bounding box, in no particular + * order. + */ + // @ts-ignore + getIntersectingEntities(box: org.spongepowered.api.util.AABB): java.util.Set; + /** + * Gets all the entities that intersect the bounding box, in no particular + * order, as long as the pass the given filter test. + */ + // @ts-ignore + getIntersectingEntities(box: org.spongepowered.api.util.AABB, filter: java.util.function$.Predicate): java.util.Set; + /** + * Gets all the entities that intersect the ray (by their bounding box) + * The ray is defined by its start and end point. + */ + // @ts-ignore + getIntersectingEntities(start: any /*Vector3d*/, end: any /*Vector3d*/): java.util.Set; + /** + * Gets all the entities that intersect the ray (by their bounding box) + * The ray is defined by its start and end point. Only the entities that + * pass the filter test are added. + */ + // @ts-ignore + getIntersectingEntities(start: any /*Vector3d*/, end: any /*Vector3d*/, filter: java.util.function$.Predicate): java.util.Set; + /** + * Gets all the entities that intersect the ray (by their bounding box) + * The ray is defined by its start, direction and distance. + */ + // @ts-ignore + getIntersectingEntities(start: any /*Vector3d*/, direction: any /*Vector3d*/, distance: number): java.util.Set; + /** + * Gets all the entities that intersect the ray (by their bounding box) + * The ray is defined by its start, direction and distance. Only the + * entities that pass the filter test are added. + */ + // @ts-ignore + getIntersectingEntities(start: any /*Vector3d*/, direction: any /*Vector3d*/, distance: number, filter: java.util.function$.Predicate): java.util.Set; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.Extent.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.Extent.d.ts new file mode 100644 index 00000000..44c6d75f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.Extent.d.ts @@ -0,0 +1,284 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + // @ts-ignore + interface Extent extends org.spongepowered.api.world.extent.EntityUniverse, org.spongepowered.api.world.extent.TileEntityVolume, org.spongepowered.api.world.extent.InteractableVolume, org.spongepowered.api.world.extent.MutableBiomeVolume, org.spongepowered.api.world.extent.LocationCompositeValueStore, org.spongepowered.api.util.Identifiable, org.spongepowered.api.data.property.LocationBasePropertyHolder { + /** + * Gets a location in this extent at the given position. Essentially, this + * is a 3D pointer in the extent. + */ + // @ts-ignore + getLocation(position: any /*Vector3i*/): org.spongepowered.api.world.Location; + /** + * Gets a location in this extent at the given position. Essentially, this + * is a 3D pointer in the extent. + */ + // @ts-ignore + getLocation(x: number, y: number, z: number): org.spongepowered.api.world.Location; + /** + * Gets a location in this extent at the given position. Essentially, this + * is a 3D pointer in the extent. This method supports sub-block positions. + * Block-related methods use flooring to get integer coordinates. + */ + // @ts-ignore + getLocation(position: any /*Vector3d*/): org.spongepowered.api.world.Location; + /** + * Gets a location in this extent at the given position. Essentially, this + * is a 3D pointer in the extent. This method supports sub-block positions. + * Block-related methods use flooring to get integer coordinates. + */ + // @ts-ignore + getLocation(x: number, y: number, z: number): org.spongepowered.api.world.Location; + /** + * Get the y value of the highest block that sunlight can reach in the given + * column. + *

This method ignores all transparent blocks, providing the highest + * opaque block.

+ */ + // @ts-ignore + getHighestYAt(x: number, z: number): number; + /** + * Get the y value of the highest block that sunlight can reach in the given + * column. + *

This method ignores all transparent blocks, providing the highest + * opaque block.

+ */ + // @ts-ignore + getHighestYAt(column: any /*Vector2i*/): number; + /** + * Get the {@link Location} of the highest block that sunlight can reach in + * the given column. + *

This method ignores all transparent blocks, providing the highest + * opaque block.

+ */ + // @ts-ignore + getHighestPositionAt(position: any /*Vector3i*/): any /*Vector3i*/; + /** + * Returns the y level that precipitation ends falling in the given column. + *

A value is still returned for columns in biomes which do not + * receive precipitation.

+ */ + // @ts-ignore + getPrecipitationLevelAt(x: number, z: number): number; + /** + * Returns the y level that precipitation ends falling in the given column. + *

A value is still returned for columns in biomes which do not + * receive precipitation.

+ */ + // @ts-ignore + getPrecipitationLevelAt(column: any /*Vector2i*/): number; + /** + * Returns the position that precipitation ends falling in the column + * of the given position. + *

A position is still returned for positions in biomes which do not + * receive precipitation.

+ */ + // @ts-ignore + getPrecipitationLevelAt(position: any /*Vector3i*/): any /*Vector3i*/; + /** + * Sets the block at the given position in the world. + */ + // @ts-ignore + setBlock(position: any /*Vector3i*/, blockState: org.spongepowered.api.block.BlockState, flag: org.spongepowered.api.world.BlockChangeFlag): boolean; + /** + * Sets the block at the given position in the world. + */ + // @ts-ignore + setBlock(x: number, y: number, z: number, blockState: org.spongepowered.api.block.BlockState, flag: org.spongepowered.api.world.BlockChangeFlag): boolean; + /** + * Sets the block at the given position in the world. + */ + // @ts-ignore + setBlockType(position: any /*Vector3i*/, type: org.spongepowered.api.block.BlockType, flag: org.spongepowered.api.world.BlockChangeFlag): boolean; + /** + * Sets the block at the given position in the world. + */ + // @ts-ignore + setBlockType(x: number, y: number, z: number, type: org.spongepowered.api.block.BlockType, flag: org.spongepowered.api.world.BlockChangeFlag): boolean; + /** + * Gets a snapshot of this block at the current point in time. + *

A snapshot is disconnected from the {@link Extent} that it was taken + * from so changes to the original block do not affect the snapshot.

+ */ + // @ts-ignore + createSnapshot(position: any /*Vector3i*/): org.spongepowered.api.block.BlockSnapshot; + /** + * Gets a snapshot of this block at the current point in time. + *

A snapshot is disconnected from the {@link Extent} that it was taken + * from so changes to the original block do not affect the snapshot.

+ */ + // @ts-ignore + createSnapshot(x: number, y: number, z: number): org.spongepowered.api.block.BlockSnapshot; + /** + * Restores the given {@link BlockSnapshot} using the saved block position + * stored within the snapshot. + *

If forced, the state of the block will change its {@link BlockType} to + * match that of the snapshot then set the state. However, if force is set + * to false and the {@link BlockType}s does not match, false will be + * returned. If notifyNeighbors is true, neighboring blocks will be notified + * of changes at the restored block location triggering physic updates.

+ */ + // @ts-ignore + restoreSnapshot(snapshot: org.spongepowered.api.block.BlockSnapshot, force: boolean, flag: org.spongepowered.api.world.BlockChangeFlag): boolean; + /** + * Restores the {@link BlockSnapshot} at the given position. + *

If forced, the state of the block will change its {@link BlockType} to + * match that of the snapshot then set the state. However, if force is set + * to false and the {@link BlockType}s does not match, false will be + * returned. If notifyNeighbors is true, neighboring blocks will be notified + * of changes at the restored block location triggering physic updates.

+ */ + // @ts-ignore + restoreSnapshot(position: any /*Vector3i*/, snapshot: org.spongepowered.api.block.BlockSnapshot, force: boolean, flag: org.spongepowered.api.world.BlockChangeFlag): boolean; + /** + * Restores the {@link BlockSnapshot} at the given position. + *

If forced, the state of the block will change its {@link BlockType} to + * match that of the snapshot then set the state. However, if force is set + * to false and the {@link BlockType}s does not match, false will be + * returned. If notifyNeighbors is true, neighboring blocks will be notified + * of changes at the restored block location triggering physic updates.

+ */ + // @ts-ignore + restoreSnapshot(x: number, y: number, z: number, snapshot: org.spongepowered.api.block.BlockSnapshot, force: boolean, flag: org.spongepowered.api.world.BlockChangeFlag): boolean; + /** + * Gets a list of {@link ScheduledBlockUpdate}s on this block. + */ + // @ts-ignore + getScheduledUpdates(position: any /*Vector3i*/): java.util.Collection; + /** + * Gets a list of {@link ScheduledBlockUpdate}s on this block. + */ + // @ts-ignore + getScheduledUpdates(x: number, y: number, z: number): java.util.Collection; + /** + * Adds a new {@link ScheduledBlockUpdate} to this block. + */ + // @ts-ignore + addScheduledUpdate(position: any /*Vector3i*/, priority: number, ticks: number): org.spongepowered.api.block.ScheduledBlockUpdate; + /** + * Adds a new {@link ScheduledBlockUpdate} to this block. + */ + // @ts-ignore + addScheduledUpdate(x: number, y: number, z: number, priority: number, ticks: number): org.spongepowered.api.block.ScheduledBlockUpdate; + /** + * Removes a {@link ScheduledBlockUpdate} from this block. + */ + // @ts-ignore + removeScheduledUpdate(position: any /*Vector3i*/, update: org.spongepowered.api.block.ScheduledBlockUpdate): void; + /** + * Removes a {@link ScheduledBlockUpdate} from this block. + */ + // @ts-ignore + removeScheduledUpdate(x: number, y: number, z: number, update: org.spongepowered.api.block.ScheduledBlockUpdate): void; + /** + * Gets whether or not this extent is currently loaded. + */ + // @ts-ignore + isLoaded(): boolean; + /** + * Returns a new extent that is the same or smaller than the current extent. + * This does not copy the data, it only provides a new view of the extent. + */ + // @ts-ignore + getExtentView(newMin: any /*Vector3i*/, newMax: any /*Vector3i*/): org.spongepowered.api.world.extent.Extent; + // @ts-ignore + getBiomeWorker(): org.spongepowered.api.world.extent.worker.MutableBiomeVolumeWorker; + // @ts-ignore + getBlockWorker(): org.spongepowered.api.world.extent.worker.MutableBlockVolumeWorker; + /** + * Gets the {@link UUID}, if available, of the user who created the + * {@link BlockSnapshot} at passed block position. + */ + // @ts-ignore + getCreator(pos: any /*Vector3i*/): java.util.Optional; + /** + * Gets the {@link UUID}, if available, of the user who created the + * {@link BlockSnapshot} at passed block position. + */ + // @ts-ignore + getCreator(x: number, y: number, z: number): java.util.Optional; + /** + * Gets the {@link UUID}, if available, of the user who last notified the + * {@link BlockSnapshot} located at passed block position. + */ + // @ts-ignore + getNotifier(pos: any /*Vector3i*/): java.util.Optional; + /** + * Gets the {@link UUID}, if available, of the user who last notified the + * {@link BlockSnapshot} located at passed block coordinates. + */ + // @ts-ignore + getNotifier(x: number, y: number, z: number): java.util.Optional; + /** + * Sets the {@link UUID} of the user who created the {@link BlockSnapshot} + * located at passed block position. + */ + // @ts-ignore + setCreator(pos: any /*Vector3i*/, uuid: java.util.UUID): void; + /** + * Sets the {@link UUID} of the user who created the {@link BlockSnapshot} + * located at passed block coordinates. + */ + // @ts-ignore + setCreator(x: number, y: number, z: number, uuid: java.util.UUID): void; + /** + * Sets the {@link UUID} of the user who last notified the + * {@link BlockSnapshot} located at passed block position. + */ + // @ts-ignore + setNotifier(pos: any /*Vector3i*/, uuid: java.util.UUID): void; + /** + * Sets the {@link UUID} of the user who last notified the + * {@link BlockSnapshot} located at passed block coordinates. + */ + // @ts-ignore + setNotifier(x: number, y: number, z: number, uuid: java.util.UUID): void; + /** + * Gets the bounding box used to select blocks, which appears + * as a black outline on a vanilla client. + */ + // @ts-ignore + getBlockSelectionBox(pos: any /*Vector3i*/): java.util.Optional; + /** + * Gets the bounding box used to select blocks, which appears + * as a black outline on a vanilla client. + */ + // @ts-ignore + getBlockSelectionBox(x: number, y: number, z: number): java.util.Optional; + /** + * Gets all the block collision boxes that intersect the bounding box, in + * no particular order. There may be more than one box per block. + */ + // @ts-ignore + getIntersectingBlockCollisionBoxes(box: org.spongepowered.api.util.AABB): java.util.Set; + /** + * Gets all the collision boxes that intersect the bounding box owned by + * the entity, in no particular order. There may be more than one box per + * block. This also includes entities. Will return an empty set if the + * owner does not have a bounding box. + */ + // @ts-ignore + getIntersectingCollisionBoxes(owner: org.spongepowered.api.entity.Entity): java.util.Set; + /** + * Gets all the collision boxes that intersect the bounding box owned by + * the entity, in no particular order. There may be more than one box per + * block. This also includes entities. + */ + // @ts-ignore + getIntersectingCollisionBoxes(owner: org.spongepowered.api.entity.Entity, box: org.spongepowered.api.util.AABB): java.util.Set; + /** + * Creates a new archetype volume from the specified section of this extent. + * The archetype's volume will be shifted such that the position given in + * the origin will be the origin of the volume. + */ + // @ts-ignore + createArchetypeVolume(min: any /*Vector3i*/, max: any /*Vector3i*/, origin: any /*Vector3i*/): org.spongepowered.api.world.extent.ArchetypeVolume; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.ExtentBufferFactory.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.ExtentBufferFactory.d.ts new file mode 100644 index 00000000..73097357 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.ExtentBufferFactory.d.ts @@ -0,0 +1,112 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + // @ts-ignore + interface ExtentBufferFactory { + /** + * Returns a new biome buffer of the desired size. + */ + // @ts-ignore + createBiomeBuffer(size: any /*Vector3i*/): org.spongepowered.api.world.extent.MutableBiomeVolume; + /** + * Returns a new biome buffer of the desired size and minimum position. + */ + // @ts-ignore + createBiomeBuffer(min: any /*Vector3i*/, size: any /*Vector3i*/): org.spongepowered.api.world.extent.MutableBiomeVolume; + /** + * Returns a new biome buffer of the desired size. + */ + // @ts-ignore + createBiomeBuffer(xSize: number, ySize: number, zSize: number): org.spongepowered.api.world.extent.MutableBiomeVolume; + /** + * Returns a new biome buffer of the desired size and minimum position. + */ + // @ts-ignore + createBiomeBuffer(xMin: number, yMin: number, zMin: number, xSize: number, ySize: number, zSize: number): org.spongepowered.api.world.extent.MutableBiomeVolume; + /** + * Returns a new biome buffer of the desired size. This buffer is thread + * safe. + */ + // @ts-ignore + createThreadSafeBiomeBuffer(size: any /*Vector3i*/): org.spongepowered.api.world.extent.MutableBiomeVolume; + /** + * Returns a new biome buffer of the desired size an minimum position. This + * buffer is thread safe. + */ + // @ts-ignore + createThreadSafeBiomeBuffer(min: any /*Vector3i*/, size: any /*Vector3i*/): org.spongepowered.api.world.extent.MutableBiomeVolume; + /** + * Returns a new biome buffer of the desired size. This buffer is thread + * safe. + */ + // @ts-ignore + createThreadSafeBiomeBuffer(xSize: number, ySize: number, zSize: number): org.spongepowered.api.world.extent.MutableBiomeVolume; + /** + * Returns a new biome buffer of the desired size. This buffer is thread + * safe. + */ + // @ts-ignore + createThreadSafeBiomeBuffer(xMin: number, yMin: number, zMin: number, xSize: number, ySize: number, zSize: number): org.spongepowered.api.world.extent.MutableBiomeVolume; + /** + * Returns a new block buffer of the desired size. + */ + // @ts-ignore + createBlockBuffer(size: any /*Vector3i*/): org.spongepowered.api.world.extent.MutableBlockVolume; + /** + * Returns a new block buffer of the desired size and minimum position. + */ + // @ts-ignore + createBlockBuffer(min: any /*Vector3i*/, size: any /*Vector3i*/): org.spongepowered.api.world.extent.MutableBlockVolume; + /** + * Returns a new block buffer of the desired size. + */ + // @ts-ignore + createBlockBuffer(xSize: number, ySize: number, zSize: number): org.spongepowered.api.world.extent.MutableBlockVolume; + /** + * Returns a new block buffer of the desired size and minimum position. + */ + // @ts-ignore + createBlockBuffer(xMin: number, yMin: number, zMin: number, xSize: number, ySize: number, zSize: number): org.spongepowered.api.world.extent.MutableBlockVolume; + /** + * Returns a new block buffer of the desired size. This buffer is thread + * safe. + */ + // @ts-ignore + createThreadSafeBlockBuffer(size: any /*Vector3i*/): org.spongepowered.api.world.extent.MutableBlockVolume; + /** + * Returns a new block buffer of the desired size and minimum position. This + * buffer is thread safe. + */ + // @ts-ignore + createThreadSafeBlockBuffer(min: any /*Vector3i*/, size: any /*Vector3i*/): org.spongepowered.api.world.extent.MutableBlockVolume; + /** + * Returns a new block buffer of the desired size. This buffer is thread + * safe. + */ + // @ts-ignore + createThreadSafeBlockBuffer(xSize: number, ySize: number, zSize: number): org.spongepowered.api.world.extent.MutableBlockVolume; + /** + * Returns a new block buffer of the desired size and minimum position. This + * buffer is thread safe. + */ + // @ts-ignore + createThreadSafeBlockBuffer(xMin: number, yMin: number, zMin: number, xSize: number, ySize: number, zSize: number): org.spongepowered.api.world.extent.MutableBlockVolume; + /** + * Returns a new archetype volume of the desired size. + */ + // @ts-ignore + createArchetypeVolume(size: any /*Vector3i*/, origin: any /*Vector3i*/): org.spongepowered.api.world.extent.ArchetypeVolume; + /** + * Returns a new archetype volume of the desired size. + */ + // @ts-ignore + createArchetypeVolume(size: any /*Vector3i*/): org.spongepowered.api.world.extent.ArchetypeVolume; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.ImmutableBiomeVolume.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.ImmutableBiomeVolume.d.ts new file mode 100644 index 00000000..d74906ab --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.ImmutableBiomeVolume.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + // @ts-ignore + interface ImmutableBiomeVolume extends org.spongepowered.api.world.extent.UnmodifiableBiomeVolume { + /** + * Returns a new volume that is the same or smaller than the current volume. + * This does not copy the biomes, it only provides a new view of the + * storage. + */ + // @ts-ignore + getBiomeView(newMin: any /*Vector3i*/, newMax: any /*Vector3i*/): org.spongepowered.api.world.extent.ImmutableBiomeVolume; + /** + * Returns a new volume that is viewed through some transformation. This + * does not copy the biomes, it only provides a new view of the storage. + */ + // @ts-ignore + getBiomeView(transform: org.spongepowered.api.util.DiscreteTransform3): org.spongepowered.api.world.extent.ImmutableBiomeVolume; + /** + * Returns a new volume that is translated so that + * {@link BiomeVolume#getBiomeMin()} returns {@link Vector2i#ZERO}. This + * does not copy the biomes, it only provides a new view of the storage. + */ + // @ts-ignore + getRelativeBiomeView(): org.spongepowered.api.world.extent.ImmutableBiomeVolume; + // @ts-ignore + getImmutableBiomeCopy(): org.spongepowered.api.world.extent.ImmutableBiomeVolume; + // @ts-ignore + getBiomeWorker(): org.spongepowered.api.world.extent.worker.BiomeVolumeWorker; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.ImmutableBlockVolume.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.ImmutableBlockVolume.d.ts new file mode 100644 index 00000000..3e77e052 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.ImmutableBlockVolume.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + // @ts-ignore + interface ImmutableBlockVolume extends org.spongepowered.api.world.extent.UnmodifiableBlockVolume { + /** + * Returns a new volume that is the same or smaller than the current volume. + * This does not copy the blocks, it only provides a new view of the + * storage. + */ + // @ts-ignore + getBlockView(newMin: any /*Vector3i*/, newMax: any /*Vector3i*/): org.spongepowered.api.world.extent.ImmutableBlockVolume; + /** + * Returns a new volume that is viewed through some transformation. This + * does not copy the blocks, it only provides a new view of the storage. + */ + // @ts-ignore + getBlockView(transform: org.spongepowered.api.util.DiscreteTransform3): org.spongepowered.api.world.extent.ImmutableBlockVolume; + /** + * Returns a new volume that is translated so that + * {@link BlockVolume#getBlockMin()} returns {@link Vector3i#ZERO}. This + * does not copy the blocks, it only provides a new view of the storage. + */ + // @ts-ignore + getRelativeBlockView(): org.spongepowered.api.world.extent.ImmutableBlockVolume; + // @ts-ignore + getImmutableBlockCopy(): org.spongepowered.api.world.extent.ImmutableBlockVolume; + // @ts-ignore + getBlockWorker(): org.spongepowered.api.world.extent.worker.BlockVolumeWorker; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.InteractableVolume.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.InteractableVolume.d.ts new file mode 100644 index 00000000..b2fb9ea6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.InteractableVolume.d.ts @@ -0,0 +1,100 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + // @ts-ignore + interface InteractableVolume extends org.spongepowered.api.world.extent.MutableBlockVolume { + /** + * Simulates hitting a block as if a player had done so. + *

The difference between this and {@link #digBlock} is that this will + * only do a single instantaneous "click" whereas digBlock will simulate + * holding the primary mouse button until the block breaks.

+ */ + // @ts-ignore + hitBlock(position: any /*Vector3i*/, side: org.spongepowered.api.util.Direction, profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Simulates hitting a block as if a player had done so. + *

The difference between this and {@link #digBlock} is that this will + * only do a single instantaneous "click" whereas digBlock will simulate + * holding the primary mouse button until the block breaks.

+ */ + // @ts-ignore + hitBlock(x: number, y: number, z: number, side: org.spongepowered.api.util.Direction, profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Simulates the interaction the block as if a player had done so. + */ + // @ts-ignore + interactBlock(position: any /*Vector3i*/, side: org.spongepowered.api.util.Direction, profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Simulates the interaction the block as if a player had done so. + */ + // @ts-ignore + interactBlock(x: number, y: number, z: number, side: org.spongepowered.api.util.Direction, profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Simulates the interaction the block using the given item as if the player + * had done so. + */ + // @ts-ignore + interactBlockWith(position: any /*Vector3i*/, itemStack: org.spongepowered.api.item.inventory.ItemStack, side: org.spongepowered.api.util.Direction, profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Simulates the interaction the block using the given item as if the player + * had done so. + */ + // @ts-ignore + interactBlockWith(x: number, y: number, z: number, itemStack: org.spongepowered.api.item.inventory.ItemStack, side: org.spongepowered.api.util.Direction, profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Simulates the placement of a block at the given location as if a player + * had done so. + */ + // @ts-ignore + placeBlock(position: any /*Vector3i*/, block: org.spongepowered.api.block.BlockState, side: org.spongepowered.api.util.Direction, profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Simulates the placement of a block at the given location as if a player + * had done so. + */ + // @ts-ignore + placeBlock(x: number, y: number, z: number, block: org.spongepowered.api.block.BlockState, side: org.spongepowered.api.util.Direction, profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Simulate the digging of the block as if a player had done so. + */ + // @ts-ignore + digBlock(position: any /*Vector3i*/, profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Simulate the digging of the block as if a player had done so. + */ + // @ts-ignore + digBlock(x: number, y: number, z: number, profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Simulate the digging of the block with the given tool as if a player had + * done so. + */ + // @ts-ignore + digBlockWith(position: any /*Vector3i*/, itemStack: org.spongepowered.api.item.inventory.ItemStack, profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Simulate the digging of the block with the given tool as if a player had + * done so. + */ + // @ts-ignore + digBlockWith(x: number, y: number, z: number, itemStack: org.spongepowered.api.item.inventory.ItemStack, profile: org.spongepowered.api.profile.GameProfile): boolean; + /** + * Gets the time it takes to dig this block with the specified item in + * ticks. + */ + // @ts-ignore + getBlockDigTimeWith(position: any /*Vector3i*/, itemStack: org.spongepowered.api.item.inventory.ItemStack, profile: org.spongepowered.api.profile.GameProfile): number; + /** + * Gets the time it takes to dig this block with the specified item in + * ticks. + */ + // @ts-ignore + getBlockDigTimeWith(x: number, y: number, z: number, itemStack: org.spongepowered.api.item.inventory.ItemStack, profile: org.spongepowered.api.profile.GameProfile): number; + // @ts-ignore + getBlockWorker(): org.spongepowered.api.world.extent.worker.MutableBlockVolumeWorker; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.LocationCompositeValueStore.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.LocationCompositeValueStore.d.ts new file mode 100644 index 00000000..cb681a46 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.LocationCompositeValueStore.d.ts @@ -0,0 +1,443 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + // @ts-ignore + interface LocationCompositeValueStore { + /** + * Gets the value of data that is keyed to the provided {@link Key} at the + * give block location. + */ + // @ts-ignore + get(coordinates: any /*Vector3i*/, key: org.spongepowered.api.data.key.Key): java.util.Optional; + /** + * Gets the value of data that is keyed to the provided {@link Key} at the + * give block location. + */ + // @ts-ignore + get(x: number, y: number, z: number, key: org.spongepowered.api.data.key.Key): java.util.Optional; + /** + * Gets an instance of the given data class for given block at the location. + *

If there is no pre-existing data that can be represented by the given + * {@link DataManipulator} class, {@link Optional#empty()} is returned.

+ */ + // @ts-ignore + get(coordinates: any /*Vector3i*/, manipulatorClass: java.lang.Class): java.util.Optional; + /** + * Gets an instance of the given data class for given block at the location. + *

If there is no pre-existing data that can be represented by the given + * {@link DataManipulator} class, {@link Optional#empty()} is returned.

+ */ + // @ts-ignore + get(x: number, y: number, z: number, manipulatorClass: java.lang.Class): java.util.Optional; + /** + * Gets or creates a new {@link DataManipulator} that can be accepted by the + * block at the location. In the event that there is no data that can be + * represented by the given {@link DataManipulator}, a new + * {@link DataManipulator} object is created with default values. + *

In the event the {@link DataManipulator} can not represent any data + * pertaining to the block at the location, {@link Optional#empty()} is + * returned.

+ */ + // @ts-ignore + getOrCreate(coordinates: any /*Vector3i*/, manipulatorClass: java.lang.Class): java.util.Optional; + /** + * Gets or creates a new {@link DataManipulator} that can be accepted by the + * block at the location. In the event that there is no data that can be + * represented by the given {@link DataManipulator}, a new + * {@link DataManipulator} object is created with default values. + *

In the event the {@link DataManipulator} can not represent any data + * pertaining to the block at the location, {@link Optional#empty()} is + * returned.

+ */ + // @ts-ignore + getOrCreate(x: number, y: number, z: number, manipulatorClass: java.lang.Class): java.util.Optional; + /** + * Gets the value of data that is keyed to the provided {@link Key} at the + * give block location. The data may not exist, or may not be compatible in + * which case null may be returned. + */ + // @ts-ignore + getOrNull(coordinates: any /*Vector3i*/, key: org.spongepowered.api.data.key.Key): java.lang.Object; + /** + * Gets the value of data that is keyed to the provided {@link Key} at the + * give block location. The data may not exist, or may not be compatible in + * which case null may be returned. + */ + // @ts-ignore + getOrNull(x: number, y: number, z: number, key: org.spongepowered.api.data.key.Key): java.lang.Object; + /** + * Gets the value of data that is keyed to the provided {@link Key} at the + * give block location. The data may not exist, or may not be compatible in + * which case the default value may be returned. + */ + // @ts-ignore + getOrElse(coordinates: any /*Vector3i*/, key: org.spongepowered.api.data.key.Key, defaultValue: java.lang.Object): java.lang.Object; + /** + * Gets the value of data that is keyed to the provided {@link Key} at the + * give block location. The data may not exist, or may not be compatible in + * which case the default value may be returned. + */ + // @ts-ignore + getOrElse(x: number, y: number, z: number, key: org.spongepowered.api.data.key.Key, defaultValue: java.lang.Object): java.lang.Object; + /** + * Gets the value of data that is keyed to the provided {@link Key} at the + * give block location. The data may not exist, or may not be compatible in + * which case null may be returned. + */ + // @ts-ignore + getValue(coordinates: any /*Vector3i*/, key: org.spongepowered.api.data.key.Key): java.util.Optional; + /** + * Gets the value of data that is keyed to the provided {@link Key} at the + * give block location. + */ + // @ts-ignore + getValue(x: number, y: number, z: number, key: org.spongepowered.api.data.key.Key): java.util.Optional; + /** + * Checks if the provided {@link Key} to the data is supported by the block + * at the provided location. + */ + // @ts-ignore + supports(coordinates: any /*Vector3i*/, key: org.spongepowered.api.data.key.Key): boolean; + /** + * Checks if the provided {@link Key} to the data is supported by the block + * at the provided location. + */ + // @ts-ignore + supports(x: number, y: number, z: number, key: org.spongepowered.api.data.key.Key): boolean; + /** + * Checks if the provided {@link BaseValue} is supported by the block at the + * provided location. + */ + // @ts-ignore + supports(coordinates: any /*Vector3i*/, value: org.spongepowered.api.data.value.BaseValue): boolean; + /** + * Checks if the provided {@link BaseValue} is supported by the block at the + * provided location. + */ + // @ts-ignore + supports(x: number, y: number, z: number, value: org.spongepowered.api.data.value.BaseValue): boolean; + /** + * Checks if the given {@link DataManipulator} class is able to represent + * data within the block at the given position. + */ + // @ts-ignore + supports(coordinates: any /*Vector3i*/, manipulatorClass: java.lang.Class): boolean; + /** + * Checks if the given {@link DataManipulator} class is able to represent + * data within the block at the given position. + */ + // @ts-ignore + supports(x: number, y: number, z: number, manipulatorClass: java.lang.Class): boolean; + /** + * Checks if the given {@link DataManipulator} class is able to represent + * data within the block at the given position. + */ + // @ts-ignore + supports(coordinates: any /*Vector3i*/, manipulator: org.spongepowered.api.data.manipulator.DataManipulator): boolean; + /** + * Checks if the given {@link DataManipulator} class is able to represent + * data within the block at the given position. + */ + // @ts-ignore + supports(x: number, y: number, z: number, manipulator: org.spongepowered.api.data.manipulator.DataManipulator): boolean; + /** + * Gets an {@link ImmutableSet} of {@link Key}s for the block at the given + * location. + */ + // @ts-ignore + getKeys(coordinates: any /*Vector3i*/): java.util.Set; + /** + * Gets an {@link ImmutableSet} of {@link Key}s for the block at the given + * location. + */ + // @ts-ignore + getKeys(x: number, y: number, z: number): java.util.Set; + /** + * Gets an {@link ImmutableSet} of {@link ImmutableValue}s for the block at + * the given location. + */ + // @ts-ignore + getValues(coordinates: any /*Vector3i*/): java.util.Set; + /** + * Gets an {@link ImmutableSet} of {@link ImmutableValue}s for the block at + * the given location. + */ + // @ts-ignore + getValues(x: number, y: number, z: number): java.util.Set; + /** + * Applies a transformation on the pre-existing value of the data keyed by + * the provided {@link Key} and returns a {@link DataTransactionResult} of + * said transformation. + */ + // @ts-ignore + transform(coordinates: any /*Vector3i*/, key: org.spongepowered.api.data.key.Key, func: java.util.function$.Function): org.spongepowered.api.data.DataTransactionResult; + /** + * Applies a transformation on the pre-existing value of the data keyed by + * the provided {@link Key} and returns a {@link DataTransactionResult} of + * said transformation. + */ + // @ts-ignore + transform(x: number, y: number, z: number, key: org.spongepowered.api.data.key.Key, func: java.util.function$.Function): org.spongepowered.api.data.DataTransactionResult; + /** + * Offers the given E value that is keyed by the provided + * {@link Key} to the block at the provided location. + *

If any data is rejected or existing data is replaced, the + * {@link DataTransactionResult} will retain the rejected and replaced + * data.

+ */ + // @ts-ignore + offer(coordinates: any /*Vector3i*/, key: org.spongepowered.api.data.key.Key, value: java.lang.Object): org.spongepowered.api.data.DataTransactionResult; + /** + * Offers the given E value that is keyed by the provided + * {@link Key} to the block at the provided location. + *

If any data is rejected or existing data is replaced, the + * {@link DataTransactionResult} will retain the rejected and replaced + * data.

+ */ + // @ts-ignore + offer(x: number, y: number, z: number, key: org.spongepowered.api.data.key.Key, value: java.lang.Object): org.spongepowered.api.data.DataTransactionResult; + /** + * Offers the given {@link BaseValue} to the block at the given position. + *

If any data is rejected or existing data is replaced, the + * {@link DataTransactionResult} will retain the rejected and replaced + * data.

+ */ + // @ts-ignore + offer(coordinates: any /*Vector3i*/, value: org.spongepowered.api.data.value.BaseValue): org.spongepowered.api.data.DataTransactionResult; + /** + * Offers the given {@link BaseValue} to the block at the given position. + *

If any data is rejected or existing data is replaced, the + * {@link DataTransactionResult} will retain the rejected and replaced + * data.

+ */ + // @ts-ignore + offer(x: number, y: number, z: number, value: org.spongepowered.api.data.value.BaseValue): org.spongepowered.api.data.DataTransactionResult; + /** + * Offers the given {@link DataManipulator} to the block at the given + * position. + *

If any data is rejected or existing data is replaced, the + * {@link DataTransactionResult} will retain the rejected and replaced + * data.

+ */ + // @ts-ignore + offer(coordinates: any /*Vector3i*/, manipulator: org.spongepowered.api.data.manipulator.DataManipulator): org.spongepowered.api.data.DataTransactionResult; + /** + * Offers the given {@link DataManipulator} to the block at the given + * position. + *

If any data is rejected or existing data is replaced, the + * {@link DataTransactionResult} will retain the rejected and replaced + * data.

+ */ + // @ts-ignore + offer(x: number, y: number, z: number, manipulator: org.spongepowered.api.data.manipulator.DataManipulator): org.spongepowered.api.data.DataTransactionResult; + /** + * Offers the given {@link DataManipulator} to the block at the given + * position. + *

If any data is rejected or existing data is replaced, the + * {@link DataTransactionResult} will retain the rejected and replaced + * data.

+ */ + // @ts-ignore + offer(coordinates: any /*Vector3i*/, manipulator: org.spongepowered.api.data.manipulator.DataManipulator, func: org.spongepowered.api.data.merge.MergeFunction): org.spongepowered.api.data.DataTransactionResult; + /** + * Offers the given {@link DataManipulator} to the block at the given + * position. + *

If any data is rejected or existing data is replaced, the + * {@link DataTransactionResult} will retain the rejected and replaced + * data.

+ */ + // @ts-ignore + offer(x: number, y: number, z: number, manipulator: org.spongepowered.api.data.manipulator.DataManipulator, func: org.spongepowered.api.data.merge.MergeFunction): org.spongepowered.api.data.DataTransactionResult; + /** + * Offers the provided {@link DataManipulator}s to the block at the given + * position. + *

If any data is rejected or existing data is replaced, the + * {@link DataTransactionResult} will retain the rejected, replaced, and + * successfully offered data.

+ */ + // @ts-ignore + offer(coordinates: any /*Vector3i*/, manipulators: java.lang.Iterable): org.spongepowered.api.data.DataTransactionResult; + /** + * Offers the provided {@link DataManipulator}s to the block at the given + * position. + *

If any data is rejected or existing data is replaced, the + * {@link DataTransactionResult} will retain the rejected, replaced, and + * successfully offered data.

+ */ + // @ts-ignore + offer(x: number, y: number, z: number, manipulators: java.lang.Iterable): org.spongepowered.api.data.DataTransactionResult; + /** + * Offers the provided {@link DataManipulator}s to the block at the given + * position. If there's any overlaps of data, the provided + * {@link MergeFunction} is used to delegate the merges. It is possible to + * recycle {@link MergeFunction}s provided that the {@link MergeFunction} is + * aware of being usable in multiple environments. + *

If any data is rejected or existing data is replaced, the + * {@link DataTransactionResult} will retain the rejected, replaced, and + * successfully offered data.

+ */ + // @ts-ignore + offer(blockPosition: any /*Vector3i*/, values: java.lang.Iterable, func: org.spongepowered.api.data.merge.MergeFunction): org.spongepowered.api.data.DataTransactionResult; + /** + * Attempts to remove the given {@link DataManipulator} represented by the + * block at the given location if possible. + *

Certain {@link DataManipulator}s can not be removed due to certain + * dependencies relying on the particular data to function.

+ */ + // @ts-ignore + remove(coordinates: any /*Vector3i*/, manipulatorClass: java.lang.Class): org.spongepowered.api.data.DataTransactionResult; + /** + * Attempts to remove the given {@link DataManipulator} represented by the + * block at the given location if possible. + *

Certain {@link DataManipulator}s can not be removed due to certain + * dependencies relying on the particular data to function.

+ */ + // @ts-ignore + remove(x: number, y: number, z: number, manipulatorClass: java.lang.Class): org.spongepowered.api.data.DataTransactionResult; + /** + * Attempts to remove the data associated with the provided {@link Key} from + * the block at the provided location. + */ + // @ts-ignore + remove(coordinates: any /*Vector3i*/, key: org.spongepowered.api.data.key.Key): org.spongepowered.api.data.DataTransactionResult; + /** + * Attempts to remove the data associated with the provided {@link Key} from + * the block at the provided location. + */ + // @ts-ignore + remove(x: number, y: number, z: number, key: org.spongepowered.api.data.key.Key): org.spongepowered.api.data.DataTransactionResult; + /** + * Attempts to undo a {@link DataTransactionResult}. Specifically, all + * {@link ImmutableValue}s that were successfully added are removed, and all + * replaced {@link ImmutableValue}s are offered. + */ + // @ts-ignore + undo(coordinates: any /*Vector3i*/, result: org.spongepowered.api.data.DataTransactionResult): org.spongepowered.api.data.DataTransactionResult; + /** + * Attempts to undo a {@link DataTransactionResult}. Specifically, all + * {@link ImmutableValue}s that were successfully added are removed, and all + * replaced {@link ImmutableValue}s are offered. + */ + // @ts-ignore + undo(x: number, y: number, z: number, result: org.spongepowered.api.data.DataTransactionResult): org.spongepowered.api.data.DataTransactionResult; + /** + * Attempts to copy all the relevant data from the provided + * {@link DataHolder} to the block at the provided coordinates. + */ + // @ts-ignore + copyFrom(to: any /*Vector3i*/, from: org.spongepowered.api.data.DataHolder): org.spongepowered.api.data.DataTransactionResult; + /** + * Attempts to copy all the relevant data from the provided + * {@link DataHolder} to the block at the provided coordinates. + */ + // @ts-ignore + copyFrom(xTo: number, yTo: number, zTo: number, from: org.spongepowered.api.data.DataHolder): org.spongepowered.api.data.DataTransactionResult; + /** + * Attempts to copy all the relevant data from the provided + * {@link DataHolder} to the block at the provided coordinates. + */ + // @ts-ignore + copyFrom(coordinatesTo: any /*Vector3i*/, coordinatesFrom: any /*Vector3i*/): org.spongepowered.api.data.DataTransactionResult; + /** + * Attempts to copy all {@link ImmutableValue}s from the provided block to + * provided block to the provided block coordinates. + */ + // @ts-ignore + copyFrom(xTo: number, yTo: number, zTo: number, xFrom: number, yFrom: number, zFrom: number): org.spongepowered.api.data.DataTransactionResult; + /** + * Attempts to copy all {@link ImmutableValue}s from the provided block to + * provided block to the provided block coordinates. Any conflicting data is + * handled through the provided {@link MergeFunction}. + */ + // @ts-ignore + copyFrom(to: any /*Vector3i*/, from: org.spongepowered.api.data.DataHolder, func: org.spongepowered.api.data.merge.MergeFunction): org.spongepowered.api.data.DataTransactionResult; + /** + * Attempts to copy all {@link ImmutableValue}s from the provided block to + * provided block to the provided block coordinates. Any conflicting data is + * handled through the provided {@link MergeFunction}. + */ + // @ts-ignore + copyFrom(xTo: number, yTo: number, zTo: number, from: org.spongepowered.api.data.DataHolder, func: org.spongepowered.api.data.merge.MergeFunction): org.spongepowered.api.data.DataTransactionResult; + /** + * Attempts to copy all {@link ImmutableValue}s from the provided block to + * provided block to the provided block coordinates. Any conflicting data is + * handled through the provided {@link MergeFunction}. + */ + // @ts-ignore + copyFrom(coordinatesTo: any /*Vector3i*/, coordinatesFrom: any /*Vector3i*/, func: org.spongepowered.api.data.merge.MergeFunction): org.spongepowered.api.data.DataTransactionResult; + /** + * Attempts to copy all {@link ImmutableValue}s from the provided block to + * provided block to the provided block coordinates. Any conflicting data is + * handled through the provided {@link MergeFunction}. + */ + // @ts-ignore + copyFrom(xTo: number, yTo: number, zTo: number, xFrom: number, yFrom: number, zFrom: number, func: org.spongepowered.api.data.merge.MergeFunction): org.spongepowered.api.data.DataTransactionResult; + /** + * Gets an copied collection of all known {@link DataManipulator}s belonging + * to the block at the given position. An individual {@link DataManipulator} + * can be used for creating new data to replace on the block at the given + * position. + */ + // @ts-ignore + getManipulators(coordinates: any /*Vector3i*/): java.util.Collection; + /** + * Gets an copied collection of all known {@link DataManipulator}s belonging + * to the block at the given position. An individual {@link DataManipulator} + * can be used for creating new data to replace on the block at the given + * position. + */ + // @ts-ignore + getManipulators(x: number, y: number, z: number): java.util.Collection; + /** + * Validates the container with known data required to set the raw data to + * the block at the given position. If the container is incomplete or + * contains invalid data, false is returned. + *

This validation should be checked prior to calling + * {@link #setRawData(Vector3i, DataView)} to avoid exceptions.

+ */ + // @ts-ignore + validateRawData(position: any /*Vector3i*/, container: org.spongepowered.api.data.DataView): boolean; + /** + * Validates the container with known data required to set the raw data to + * the block at the given position. If the container is incomplete or + * contains invalid data, false is returned. + *

This validation should be checked prior to calling + * {@link #setRawData(Vector3i, DataView)} to avoid exceptions.

+ */ + // @ts-ignore + validateRawData(x: number, y: number, z: number, container: org.spongepowered.api.data.DataView): boolean; + /** + * Attempts to set all data of the block at the given position according to + * the {@link DataContainer}'s held information. Using this to modify known + * {@link DataManipulator}s is unsupported and if the data is invalid, an + * {@link InvalidDataException} is thrown. + *

This setter is used to provide setting custom data that is not + * represented by the Data API, including forge mods and other unknown data. + * Attempts at validating known {@link DataManipulator}s contained in the + * data container are made with the assumption that all necessary data + * exists.

+ */ + // @ts-ignore + setRawData(position: any /*Vector3i*/, container: org.spongepowered.api.data.DataView): void; + /** + * Attempts to set all data of the block at the given position according to + * the {@link DataContainer}'s held information. Using this to modify known + * {@link DataManipulator}s is unsupported and if the data is invalid, an + * {@link InvalidDataException} is thrown. + *

This setter is used to provide setting custom data that is not + * represented by the Data API, including forge mods and other unknown data. + * Attempts at validating known {@link DataManipulator}s contained in the + * data container are made with the assumption that all necessary data + * exists.

+ */ + // @ts-ignore + setRawData(x: number, y: number, z: number, container: org.spongepowered.api.data.DataView): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.MutableBiomeVolume.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.MutableBiomeVolume.d.ts new file mode 100644 index 00000000..d756490a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.MutableBiomeVolume.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + // @ts-ignore + interface MutableBiomeVolume extends org.spongepowered.api.world.extent.BiomeVolume { + /** + * Sets the biome at the given position in the world. + */ + // @ts-ignore + setBiome(position: any /*Vector3i*/, biome: org.spongepowered.api.world.biome.BiomeType): void; + /** + * Sets the biome at the given position in the world. + */ + // @ts-ignore + setBiome(x: number, y: number, z: number, biome: org.spongepowered.api.world.biome.BiomeType): void; + /** + * Returns a new volume that is the same or smaller than the current volume. + * This does not copy the biomes, it only provides a new view of the + * storage. + */ + // @ts-ignore + getBiomeView(newMin: any /*Vector3i*/, newMax: any /*Vector3i*/): org.spongepowered.api.world.extent.MutableBiomeVolume; + /** + * Returns a new volume that is viewed through some transformation. This + * does not copy the biomes, it only provides a new view of the storage. + */ + // @ts-ignore + getBiomeView(transform: org.spongepowered.api.util.DiscreteTransform3): org.spongepowered.api.world.extent.MutableBiomeVolume; + /** + * Returns a new volume that is translated so that + * {@link BiomeVolume#getBiomeMin()} returns {@link Vector2i#ZERO}. This does + * not copy the biomes, it only provides a new view of the storage. + */ + // @ts-ignore + getRelativeBiomeView(): org.spongepowered.api.world.extent.MutableBiomeVolume; + // @ts-ignore + getBiomeWorker(): org.spongepowered.api.world.extent.worker.MutableBiomeVolumeWorker; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.MutableBlockVolume.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.MutableBlockVolume.d.ts new file mode 100644 index 00000000..a0639454 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.MutableBlockVolume.d.ts @@ -0,0 +1,58 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + // @ts-ignore + interface MutableBlockVolume extends org.spongepowered.api.world.extent.BlockVolume { + /** + * Sets the block at the given position in the world. + */ + // @ts-ignore + setBlock(position: any /*Vector3i*/, block: org.spongepowered.api.block.BlockState): boolean; + /** + * Sets the block at the given position in the world. + */ + // @ts-ignore + setBlock(x: number, y: number, z: number, block: org.spongepowered.api.block.BlockState): boolean; + /** + * Replace the block at this position by a new type. + *

This will remove any extended block data at the given position.

+ */ + // @ts-ignore + setBlockType(position: any /*Vector3i*/, type: org.spongepowered.api.block.BlockType): boolean; + /** + * Replace the block at this position by a new type. + *

This will remove any extended block data at the given position.

+ */ + // @ts-ignore + setBlockType(x: number, y: number, z: number, type: org.spongepowered.api.block.BlockType): boolean; + /** + * Returns a new volume that is the same or smaller than the current volume. + * This does not copy the blocks, it only provides a new view of the + * storage. + */ + // @ts-ignore + getBlockView(newMin: any /*Vector3i*/, newMax: any /*Vector3i*/): org.spongepowered.api.world.extent.MutableBlockVolume; + /** + * Returns a new volume that is viewed through some transformation. This + * does not copy the blocks, it only provides a new view of the storage. + */ + // @ts-ignore + getBlockView(transform: org.spongepowered.api.util.DiscreteTransform3): org.spongepowered.api.world.extent.MutableBlockVolume; + /** + * Returns a new volume that is translated so that + * {@link BlockVolume#getBlockMin()} returns {@link Vector3i#ZERO}. This + * does not copy the blocks, it only provides a new view of the storage. + */ + // @ts-ignore + getRelativeBlockView(): org.spongepowered.api.world.extent.MutableBlockVolume; + // @ts-ignore + getBlockWorker(): org.spongepowered.api.world.extent.worker.MutableBlockVolumeWorker; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.StorageType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.StorageType.d.ts new file mode 100644 index 00000000..1b8023af --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.StorageType.d.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + // @ts-ignore + class StorageType extends java.lang.Enum { + // @ts-ignore + public static STANDARD: org.spongepowered.api.world.extent.StorageType; + // @ts-ignore + public static THREAD_SAFE: org.spongepowered.api.world.extent.StorageType; + // @ts-ignore + public static values(): org.spongepowered.api.world.extent.StorageType[]; + // @ts-ignore + public static valueOf(name: string): org.spongepowered.api.world.extent.StorageType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.TileEntityVolume.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.TileEntityVolume.d.ts new file mode 100644 index 00000000..9b2172f4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.TileEntityVolume.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + // @ts-ignore + interface TileEntityVolume extends org.spongepowered.api.world.extent.MutableBlockVolume { + /** + * Return a collection of tile entities contained within this volume, + * possibly only returning tile entities only in loaded areas. + *

For world implementations, only some parts of the world is usually + * loaded, so this method will only return tile entities within those loaded + * parts.

+ */ + // @ts-ignore + getTileEntities(): java.util.Collection; + /** + * Return a collection of tile entities contained within this volume, + * possibly only returning tile entities only in loaded areas. The returned + * tile entities are filtered by the given {@link Predicate} before being + * returned. + *

For world implementations, only some parts of the world is usually + * loaded, so this method will only return tile entities within those loaded + * parts.

+ */ + // @ts-ignore + getTileEntities(filter: java.util.function$.Predicate): java.util.Collection; + /** + * Gets the tile entity at the given position, if it exists. + */ + // @ts-ignore + getTileEntity(position: any /*Vector3i*/): java.util.Optional; + /** + * Gets the tile entity at the given position, if it exists. + */ + // @ts-ignore + getTileEntity(x: number, y: number, z: number): java.util.Optional; + // @ts-ignore + getBlockWorker(): org.spongepowered.api.world.extent.worker.MutableBlockVolumeWorker; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.UnmodifiableBiomeVolume.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.UnmodifiableBiomeVolume.d.ts new file mode 100644 index 00000000..d21978c1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.UnmodifiableBiomeVolume.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + // @ts-ignore + interface UnmodifiableBiomeVolume extends org.spongepowered.api.world.extent.BiomeVolume { + /** + * Returns a new volume that is the same or smaller than the current volume. + * This does not copy the biomes, it only provides a new view of the + * storage. + */ + // @ts-ignore + getBiomeView(newMin: any /*Vector3i*/, newMax: any /*Vector3i*/): org.spongepowered.api.world.extent.UnmodifiableBiomeVolume; + /** + * Returns a new volume that is viewed through some transformation. This + * does not copy the biomes, it only provides a new view of the storage. + */ + // @ts-ignore + getBiomeView(transform: org.spongepowered.api.util.DiscreteTransform3): org.spongepowered.api.world.extent.UnmodifiableBiomeVolume; + /** + * Returns a new volume that is translated so that + * {@link BiomeVolume#getBiomeMin()} returns {@link Vector2i#ZERO}. This + * does not copy the biomes, it only provides a new view of the storage. + */ + // @ts-ignore + getRelativeBiomeView(): org.spongepowered.api.world.extent.UnmodifiableBiomeVolume; + // @ts-ignore + getUnmodifiableBiomeView(): org.spongepowered.api.world.extent.UnmodifiableBiomeVolume; + // @ts-ignore + getBiomeWorker(): org.spongepowered.api.world.extent.worker.BiomeVolumeWorker; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.UnmodifiableBlockVolume.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.UnmodifiableBlockVolume.d.ts new file mode 100644 index 00000000..4413fd22 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.UnmodifiableBlockVolume.d.ts @@ -0,0 +1,38 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + // @ts-ignore + interface UnmodifiableBlockVolume extends org.spongepowered.api.world.extent.BlockVolume { + /** + * Returns a new volume that is the same or smaller than the current volume. + * This does not copy the blocks, it only provides a new view of the + * storage. + */ + // @ts-ignore + getBlockView(newMin: any /*Vector3i*/, newMax: any /*Vector3i*/): org.spongepowered.api.world.extent.UnmodifiableBlockVolume; + /** + * Returns a new volume that is viewed through some transformation. This + * does not copy the blocks, it only provides a new view of the storage. + */ + // @ts-ignore + getBlockView(transform: org.spongepowered.api.util.DiscreteTransform3): org.spongepowered.api.world.extent.UnmodifiableBlockVolume; + /** + * Returns a new volume that is translated so that + * {@link BlockVolume#getBlockMin()} returns {@link Vector3i#ZERO}. This + * does not copy the blocks, it only provides a new view of the storage. + */ + // @ts-ignore + getRelativeBlockView(): org.spongepowered.api.world.extent.UnmodifiableBlockVolume; + // @ts-ignore + getUnmodifiableBlockView(): org.spongepowered.api.world.extent.UnmodifiableBlockVolume; + // @ts-ignore + getBlockWorker(): org.spongepowered.api.world.extent.worker.BlockVolumeWorker; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.BiomeVolumeWorker.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.BiomeVolumeWorker.d.ts new file mode 100644 index 00000000..f3af29f2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.BiomeVolumeWorker.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + namespace worker { + // @ts-ignore + interface BiomeVolumeWorker { + /** + * Returns the volume this worker operates on. + */ + // @ts-ignore + getVolume(): org.spongepowered.api.world.extent.BiomeVolume; + /** + * Applies a mapping operation to all the biomes in the volume and saves the + * results to the destination volume. + */ + // @ts-ignore + map(mapper: org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeMapper, destination: org.spongepowered.api.world.extent.MutableBiomeVolume): void; + /** + * Applies a merging operation to the biomes of the operating volume and an + * external one. Saves the results to the destination volume. + */ + // @ts-ignore + merge(second: org.spongepowered.api.world.extent.BiomeVolume, merger: org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeMerger, destination: org.spongepowered.api.world.extent.MutableBiomeVolume): void; + /** + * Iterates this biome volume, calling the visitor on each coordinate pair. + */ + // @ts-ignore + iterate(visitor: org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeVisitor): void; + /** + * Applies a reduction operation to the volume. The identity should be the + * result of no reduction being applied. For example, the additive identity + * is 0, the multiplicative one is 1 and the set union one is the empty + * set. + */ + // @ts-ignore + reduce(reducer: org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeReducer, merge: java.util.function$.BiFunction, identity: java.lang.Object): java.lang.Object; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.BlockVolumeWorker.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.BlockVolumeWorker.d.ts new file mode 100644 index 00000000..706a5324 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.BlockVolumeWorker.d.ts @@ -0,0 +1,47 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + namespace worker { + // @ts-ignore + interface BlockVolumeWorker { + /** + * Returns the volume this worker operates on. + */ + // @ts-ignore + getVolume(): org.spongepowered.api.world.extent.BlockVolume; + /** + * Applies a mapping operation to all the blocks in the volume and saves the + * results to the destination volume. + */ + // @ts-ignore + map(mapper: org.spongepowered.api.world.extent.worker.procedure.BlockVolumeMapper, destination: org.spongepowered.api.world.extent.MutableBlockVolume): void; + /** + * Applies a merging operation to the blocks of the operating volume and an + * external one. Saves the results to the destination volume. + */ + // @ts-ignore + merge(second: org.spongepowered.api.world.extent.BlockVolume, merger: org.spongepowered.api.world.extent.worker.procedure.BlockVolumeMerger, destination: org.spongepowered.api.world.extent.MutableBlockVolume): void; + /** + * Iterates this block volume, calling the visitor on each coordinate + * triplet. + */ + // @ts-ignore + iterate(visitor: org.spongepowered.api.world.extent.worker.procedure.BlockVolumeVisitor): void; + /** + * Applies a reduction operation to the volume. The identity should be the + * result of no reduction being applied. For example, the additive identity + * is 0, the multiplicative one is 1 and the set union one is the empty + * set. + */ + // @ts-ignore + reduce(reducer: org.spongepowered.api.world.extent.worker.procedure.BlockVolumeReducer, merge: java.util.function$.BiFunction, identity: java.lang.Object): java.lang.Object; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.MutableBiomeVolumeWorker.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.MutableBiomeVolumeWorker.d.ts new file mode 100644 index 00000000..4ad56768 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.MutableBiomeVolumeWorker.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + namespace worker { + // @ts-ignore + interface MutableBiomeVolumeWorker extends org.spongepowered.api.world.extent.worker.BiomeVolumeWorker { + /** + * Similar to {@link BiomeVolumeWorker#map(BiomeVolumeMapper, + * MutableBiomeVolume)} but uses the operating volume as the destination. + * Precautions must be taken as the volume is modified while the operation + * is being performed, and so the surrounding blocks might not be the + * original ones. + */ + // @ts-ignore + map(mapper: org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeMapper): void; + /** + * Similar to {@link BiomeVolumeWorker#merge(BiomeVolume, BiomeVolumeMerger, + * MutableBiomeVolume)} but uses the operating volume as the destination. + * Precautions must be taken as the volume is modified while the operation + * is being performed, and so the surrounding blocks might not be the + * original ones. + */ + // @ts-ignore + merge(right: org.spongepowered.api.world.extent.BiomeVolume, merger: org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeMerger): void; + /** + * Applies a filler operation to the volume. + */ + // @ts-ignore + fill(filler: org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeFiller): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.MutableBlockVolumeWorker.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.MutableBlockVolumeWorker.d.ts new file mode 100644 index 00000000..42b22b59 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.MutableBlockVolumeWorker.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + namespace worker { + // @ts-ignore + interface MutableBlockVolumeWorker extends org.spongepowered.api.world.extent.worker.BlockVolumeWorker { + /** + * Similar to {@link BlockVolumeWorker#map(BlockVolumeMapper, + * MutableBlockVolume)} but uses the operating volume as the destination. + * Precautions must be taken as the volume is modified while the operation + * is being performed, and so the surrounding blocks might not be the + * original ones. + */ + // @ts-ignore + map(mapper: org.spongepowered.api.world.extent.worker.procedure.BlockVolumeMapper): void; + /** + * Similar to {@link BlockVolumeWorker#merge(BlockVolume, BlockVolumeMerger, + * MutableBlockVolume)} but uses the operating volume as the destination. + * Precautions must be taken as the volume is modified while the operation + * is being performed, and so the surrounding blocks might not be the + * original ones. + */ + // @ts-ignore + merge(right: org.spongepowered.api.world.extent.BlockVolume, merger: org.spongepowered.api.world.extent.worker.procedure.BlockVolumeMerger): void; + /** + * Applies a filler operation to the volume. + */ + // @ts-ignore + fill(filler: org.spongepowered.api.world.extent.worker.procedure.BlockVolumeFiller): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeFiller.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeFiller.d.ts new file mode 100644 index 00000000..20fb2221 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeFiller.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + namespace worker { + namespace procedure { + // @ts-ignore + interface BiomeVolumeFiller { + /** + * Produces a biome for the coordinate pair. + */ + // @ts-ignore + produce(x: number, y: number, z: number): org.spongepowered.api.world.biome.BiomeType; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeMapper.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeMapper.d.ts new file mode 100644 index 00000000..2b06a7a6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeMapper.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + namespace worker { + namespace procedure { + // @ts-ignore + interface BiomeVolumeMapper { + /** + * Produces a new biome from the original biome given as its volume and + * coordinates. + */ + // @ts-ignore + map(volume: org.spongepowered.api.world.extent.UnmodifiableBiomeVolume, x: number, y: number, z: number): org.spongepowered.api.world.biome.BiomeType; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeMerger.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeMerger.d.ts new file mode 100644 index 00000000..0637a8d6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeMerger.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + namespace worker { + namespace procedure { + // @ts-ignore + interface BiomeVolumeMerger { + /** + * Produces a new biome from two original biomes given as their volumes and + * their coordinates. + */ + // @ts-ignore + merge(firstVolume: org.spongepowered.api.world.extent.UnmodifiableBiomeVolume, xFirst: number, yFirst: number, zFirst: number, secondVolume: org.spongepowered.api.world.extent.UnmodifiableBiomeVolume, xSecond: number, ySecond: number, zSecond: number): org.spongepowered.api.world.biome.BiomeType; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeReducer.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeReducer.d.ts new file mode 100644 index 00000000..5f2c3787 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeReducer.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + namespace worker { + namespace procedure { + // @ts-ignore + interface BiomeVolumeReducer { + /** + * Reduces a biome given as its volume and coordinates into the ongoing + * reduction. + */ + // @ts-ignore + reduce(volume: org.spongepowered.api.world.extent.UnmodifiableBiomeVolume, x: number, y: number, z: number, reduction: java.lang.Object): java.lang.Object; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeVisitor.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeVisitor.d.ts new file mode 100644 index 00000000..0f1ac782 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BiomeVolumeVisitor.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + namespace worker { + namespace procedure { + // @ts-ignore + interface BiomeVolumeVisitor { + /** + * Visits a biome given as its volume and coordinates. + */ + // @ts-ignore + visit(volume: org.spongepowered.api.world.extent.BiomeVolume, x: number, y: number, z: number): void; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeFiller.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeFiller.d.ts new file mode 100644 index 00000000..37c4fef6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeFiller.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + namespace worker { + namespace procedure { + // @ts-ignore + interface BlockVolumeFiller { + /** + * Produces a block for the coordinate triplet. + */ + // @ts-ignore + produce(x: number, y: number, z: number): org.spongepowered.api.block.BlockState; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeMapper.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeMapper.d.ts new file mode 100644 index 00000000..b12978e4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeMapper.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + namespace worker { + namespace procedure { + // @ts-ignore + interface BlockVolumeMapper { + /** + * Produces a new block from the original block given as its volume and + * coordinates. + */ + // @ts-ignore + map(volume: org.spongepowered.api.world.extent.UnmodifiableBlockVolume, x: number, y: number, z: number): org.spongepowered.api.block.BlockState; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeMerger.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeMerger.d.ts new file mode 100644 index 00000000..afa73936 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeMerger.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + namespace worker { + namespace procedure { + // @ts-ignore + interface BlockVolumeMerger { + /** + * Produces a new block from two original blocks given as their volumes and + * their coordinates. + */ + // @ts-ignore + merge(firstVolume: org.spongepowered.api.world.extent.UnmodifiableBlockVolume, xFirst: number, yFirst: number, zFirst: number, secondVolume: org.spongepowered.api.world.extent.UnmodifiableBlockVolume, xSecond: number, ySecond: number, zSecond: number): org.spongepowered.api.block.BlockState; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeReducer.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeReducer.d.ts new file mode 100644 index 00000000..d807c19f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeReducer.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + namespace worker { + namespace procedure { + // @ts-ignore + interface BlockVolumeReducer { + /** + * Reduces a block given as its volume and coordinates into the ongoing + * reduction. + */ + // @ts-ignore + reduce(volume: org.spongepowered.api.world.extent.UnmodifiableBlockVolume, x: number, y: number, z: number, reduction: java.lang.Object): java.lang.Object; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeVisitor.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeVisitor.d.ts new file mode 100644 index 00000000..6cfb9cfb --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.extent.worker.procedure.BlockVolumeVisitor.d.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace extent { + namespace worker { + namespace procedure { + // @ts-ignore + interface BlockVolumeVisitor { + /** + * Visits a block given as its volume and coordinates. + */ + // @ts-ignore + visit(volume: org.spongepowered.api.world.extent.BlockVolume, x: number, y: number, z: number): void; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gamerule.DefaultGameRules.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gamerule.DefaultGameRules.d.ts new file mode 100644 index 00000000..33f2762b --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gamerule.DefaultGameRules.d.ts @@ -0,0 +1,64 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gamerule { + // @ts-ignore + class DefaultGameRules extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static ANNOUNCE_ADVANCEMENTS: string; + // @ts-ignore + public static COMMAND_BLOCK_OUTPUT: string; + // @ts-ignore + public static DISABLE_ELYTRA_MOVEMENT_CHECK: string; + // @ts-ignore + public static DO_DAYLIGHT_CYCLE: string; + // @ts-ignore + public static DO_ENTITY_DROPS: string; + // @ts-ignore + public static DO_FIRE_TICK: string; + // @ts-ignore + public static DO_LIMITED_CRAFTING: string; + // @ts-ignore + public static DO_MOB_LOOT: string; + // @ts-ignore + public static DO_MOB_SPAWNING: string; + // @ts-ignore + public static DO_TILE_DROPS: string; + // @ts-ignore + public static DO_WEATHER_CYCLE: string; + // @ts-ignore + public static GAME_LOOP_FUNCTION: string; + // @ts-ignore + public static KEEP_INVENTORY: string; + // @ts-ignore + public static LOG_ADMIN_COMMANDS: string; + // @ts-ignore + public static MAX_COMMAND_CHAIN_LENGTH: string; + // @ts-ignore + public static MAX_ENTITY_CRAMMING: string; + // @ts-ignore + public static MOB_GRIEFING: string; + // @ts-ignore + public static NATURAL_REGENERATION: string; + // @ts-ignore + public static RANDOM_TICK_SPEED: string; + // @ts-ignore + public static REDUCED_DEBUG_INFO: string; + // @ts-ignore + public static SEND_COMMAND_FEEDBACK: string; + // @ts-ignore + public static SHOW_DEATH_MESSAGES: string; + // @ts-ignore + public static SPAWN_RADIUS: string; + // @ts-ignore + public static SPECTATORS_GENERATE_CHUNKS: string; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.BiomeGenerator.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.BiomeGenerator.d.ts new file mode 100644 index 00000000..6ef1abb9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.BiomeGenerator.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + // @ts-ignore + interface BiomeGenerator { + /** + * Generates the biomes for the whole buffer using only biomes from the + * given array of available biomes. The resultant biomes are placed into the + * given buffer. + *

The biome generator can be called multiple times for the same + * position. The biome generator should, for any position/world seed + * combination, always return the same biome.

+ */ + // @ts-ignore + generateBiomes(buffer: org.spongepowered.api.world.extent.MutableBiomeVolume): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.GenerationPopulator.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.GenerationPopulator.d.ts new file mode 100644 index 00000000..9e8619f9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.GenerationPopulator.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + // @ts-ignore + interface GenerationPopulator { + /** + * Operates on a {@link MutableBlockVolume} either forming the base terrain + * or performing modifications during the generation phase. + */ + // @ts-ignore + populate(world: org.spongepowered.api.world.World, buffer: org.spongepowered.api.world.extent.MutableBlockVolume, biomes: org.spongepowered.api.world.extent.ImmutableBiomeVolume): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.Populator.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.Populator.d.ts new file mode 100644 index 00000000..c02783de --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.Populator.d.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + // @ts-ignore + interface Populator { + /** + * Gets the type of this populator. + *

It should be noted that the relationship of classes implementing + * {@link Populator} and {@link PopulatorType}s is not a one-to-one + * relationship. That is to say that multiple different populators could + * return the same {@link PopulatorType} for the purposes of grouping (A + * plugin populator creating custom glowstone clusters may want to return + * {@link PopulatorTypes#GLOWSTONE} so that other plugins can recognize + * changes that it makes as being part of the generation of glowstone).

+ */ + // @ts-ignore + getType(): org.spongepowered.api.world.gen.PopulatorType; + /** + * Applies the populator to the given {@link Extent} volume. The entire volume + * of the given extent should be populated. + *

Due to their transitive nature virtual biomes cannot be fetched from + * the given extent, instead your populator should override + * {@link #populate(World, Extent, Random, ImmutableBiomeVolume)} to make use + * of the ImmutableBiomeArea which does contain virtual biome types.

+ */ + // @ts-ignore + populate(world: org.spongepowered.api.world.World, volume: org.spongepowered.api.world.extent.Extent, random: java.util.Random): void; + /** + * Applies the populator to the given {@link Extent} volume. The entire volume + * of the given extent should be populated. + */ + // @ts-ignore + populate(world: org.spongepowered.api.world.World, volume: org.spongepowered.api.world.extent.Extent, random: java.util.Random, virtualBiomes: org.spongepowered.api.world.extent.ImmutableBiomeVolume): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.PopulatorObject.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.PopulatorObject.d.ts new file mode 100644 index 00000000..d0b7a4ce --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.PopulatorObject.d.ts @@ -0,0 +1,25 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + // @ts-ignore + interface PopulatorObject extends org.spongepowered.api.CatalogType { + /** + * Returns whether this object can be placed into the world at the given + * position. + */ + // @ts-ignore + canPlaceAt(world: org.spongepowered.api.world.World, x: number, y: number, z: number): boolean; + /** + * Places the object into the world at the given location. + */ + // @ts-ignore + placeObject(world: org.spongepowered.api.world.World, random: java.util.Random, x: number, y: number, z: number): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.PopulatorObjects.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.PopulatorObjects.d.ts new file mode 100644 index 00000000..120cd2fe --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.PopulatorObjects.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + // @ts-ignore + class PopulatorObjects extends java.lang.Object { + // @ts-ignore + public static DESERT_WELL: org.spongepowered.api.world.gen.PopulatorObject; + // @ts-ignore + public static BIRCH: org.spongepowered.api.world.gen.PopulatorObject; + // @ts-ignore + public static CANOPY: org.spongepowered.api.world.gen.PopulatorObject; + // @ts-ignore + public static JUNGLE: org.spongepowered.api.world.gen.PopulatorObject; + // @ts-ignore + public static JUNGLE_BUSH: org.spongepowered.api.world.gen.PopulatorObject; + // @ts-ignore + public static MEGA_BIRCH: org.spongepowered.api.world.gen.PopulatorObject; + // @ts-ignore + public static MEGA_JUNGLE: org.spongepowered.api.world.gen.PopulatorObject; + // @ts-ignore + public static MEGA_OAK: org.spongepowered.api.world.gen.PopulatorObject; + // @ts-ignore + public static MEGA_POINTY_TAIGA: org.spongepowered.api.world.gen.PopulatorObject; + // @ts-ignore + public static MEGA_TALL_TAIGA: org.spongepowered.api.world.gen.PopulatorObject; + // @ts-ignore + public static OAK: org.spongepowered.api.world.gen.PopulatorObject; + // @ts-ignore + public static POINTY_TAIGA: org.spongepowered.api.world.gen.PopulatorObject; + // @ts-ignore + public static SAVANNA: org.spongepowered.api.world.gen.PopulatorObject; + // @ts-ignore + public static SWAMP: org.spongepowered.api.world.gen.PopulatorObject; + // @ts-ignore + public static TALL_TAIGA: org.spongepowered.api.world.gen.PopulatorObject; + // @ts-ignore + public static BROWN: org.spongepowered.api.world.gen.PopulatorObject; + // @ts-ignore + public static RED: org.spongepowered.api.world.gen.PopulatorObject; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.PopulatorType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.PopulatorType.d.ts new file mode 100644 index 00000000..2374f173 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.PopulatorType.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + // @ts-ignore + interface PopulatorType extends org.spongepowered.api.CatalogType, org.spongepowered.api.text.translation.Translatable { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.PopulatorTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.PopulatorTypes.d.ts new file mode 100644 index 00000000..23ab12b1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.PopulatorTypes.d.ts @@ -0,0 +1,70 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + // @ts-ignore + class PopulatorTypes extends java.lang.Object { + // @ts-ignore + public static BIG_MUSHROOM: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static BLOCK_BLOB: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static CACTUS: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static CHORUS_FLOWER: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static DEAD_BUSH: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static DESERT_WELL: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static DOUBLE_PLANT: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static DUNGEON: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static END_ISLAND: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static FLOWER: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static FOREST: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static FOSSIL: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static GENERIC_BLOCK: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static GENERIC_OBJECT: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static GLOWSTONE: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static ICE_PATH: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static ICE_SPIKE: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static LAKE: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static MELON: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static MUSHROOM: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static NETHER_FIRE: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static ORE: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static PUMPKIN: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static REED: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static SEA_FLOOR: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static SHRUB: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static VINE: org.spongepowered.api.world.gen.PopulatorType; + // @ts-ignore + public static WATER_LILY: org.spongepowered.api.world.gen.PopulatorType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.WorldGenerator.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.WorldGenerator.d.ts new file mode 100644 index 00000000..cfe2a141 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.WorldGenerator.d.ts @@ -0,0 +1,72 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + // @ts-ignore + interface WorldGenerator { + /** + * Gets the main {@link GenerationPopulator}. This generator populator is + * responsible for generating the base terrain of the chunk. + */ + // @ts-ignore + getBaseGenerationPopulator(): org.spongepowered.api.world.gen.GenerationPopulator; + /** + * Sets the {@link GenerationPopulator}. This generator populator is + * responsible for generating the base terrain of the chunk. + */ + // @ts-ignore + setBaseGenerationPopulator(generator: org.spongepowered.api.world.gen.GenerationPopulator): void; + /** + * Gets a mutable list of {@link GenerationPopulator}s. These populators + * work strictly on a single chunk. They will be executed directly after the + * {@link BiomeGenerationSettings#getGroundCoverLayers() biome ground cover + * layers} and the {@link BiomeGenerationSettings#getGenerationPopulators() + * biome generator populators} have been called. These generator populators + * are typically used to generate large terrain features, like caves and + * ravines. + *

This list does not include {@link #getBaseGenerationPopulator() the + * base generator}.

+ */ + // @ts-ignore + getGenerationPopulators(): java.util.List; + /** + * Gets an immutable list of {@link GenerationPopulator}s which match the + * given class type. + */ + // @ts-ignore + getGenerationPopulators(type: java.lang.Class): java.util.List; + /** + * Gets a mutable list of {@link Populator}s which are applied globally (in + * the whole world). + */ + // @ts-ignore + getPopulators(): java.util.List; + /** + * Gets an immutable list of {@link Populator}s which match the given class + * type. + */ + // @ts-ignore + getPopulators(type: java.lang.Class): java.util.List; + /** + * Gets the {@link BiomeGenerator} for this world generator. + */ + // @ts-ignore + getBiomeGenerator(): org.spongepowered.api.world.gen.BiomeGenerator; + /** + * Sets the {@link BiomeGenerator} for this world generator. + */ + // @ts-ignore + setBiomeGenerator(biomeGenerator: org.spongepowered.api.world.gen.BiomeGenerator): void; + /** + * Gets this world generator settings for the given {@link BiomeType}.. + */ + // @ts-ignore + getBiomeSettings(type: org.spongepowered.api.world.biome.BiomeType): org.spongepowered.api.world.biome.BiomeGenerationSettings; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.WorldGeneratorModifier.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.WorldGeneratorModifier.d.ts new file mode 100644 index 00000000..448ba707 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.WorldGeneratorModifier.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + // @ts-ignore + interface WorldGeneratorModifier extends org.spongepowered.api.CatalogType { + /** + * Modifies the given world generator. This method is called by the + * implementation when the server is set to use this plugin for world + * generation. + *

To replace the base chunk generator, replace the main generator + * populator using + * {@link WorldGenerator#setBaseGenerationPopulator(GenerationPopulator)}. + * To replace the biome generator, use + * {@link WorldGenerator#setBiomeGenerator(BiomeGenerator)}. To change + * terrain population, modify the populator list returned by + * {@link WorldGenerator#getPopulators()} or + * {@link WorldGenerator#getGenerationPopulators()}.

+ */ + // @ts-ignore + modifyWorldGenerator(world: org.spongepowered.api.world.storage.WorldProperties, settings: org.spongepowered.api.data.DataContainer, worldGenerator: org.spongepowered.api.world.gen.WorldGenerator): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.WorldGeneratorModifiers.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.WorldGeneratorModifiers.d.ts new file mode 100644 index 00000000..4bf7ea26 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.WorldGeneratorModifiers.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + // @ts-ignore + class WorldGeneratorModifiers extends java.lang.Object { + // @ts-ignore + public static SKYLANDS: org.spongepowered.api.world.gen.WorldGeneratorModifier; + // @ts-ignore + public static VOID: org.spongepowered.api.world.gen.WorldGeneratorModifier; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.BigMushroom.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.BigMushroom.Builder.d.ts new file mode 100644 index 00000000..36fdb4c3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.BigMushroom.Builder.d.ts @@ -0,0 +1,58 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace BigMushroom { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the weighted {@link PopulatorObject}s to select from during + * generation. + */ + // @ts-ignore + types(types: org.spongepowered.api.util.weighted.WeightedTable): org.spongepowered.api.world.gen.populator.BigMushroom.Builder; + /** + * Adds the weighted {@link PopulatorObject} to the list of available + * types. + */ + // @ts-ignore + type(type: org.spongepowered.api.world.gen.PopulatorObject, weight: number): org.spongepowered.api.world.gen.populator.BigMushroom.Builder; + /** + * Sets the number of mushrooms which will be attempted to be spawned. + *

Note: This number is not a definite number and + * the final count of mushrooms which are successfully spawned by the + * populator will almost always be lower.

+ */ + // @ts-ignore + mushroomsPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.BigMushroom.Builder; + /** + * Sets the number of mushrooms which will be attempted to be spawned. + *

Note: This number is not a definite number and + * the final count of mushrooms which are successfully spawned by the + * populator will almost always be lower.

+ */ + // @ts-ignore + mushroomsPerChunk(count: number): org.spongepowered.api.world.gen.populator.BigMushroom.Builder; + /** + * Sets the overriding supplier. If the supplier is present then it is + * used in place of the weighted table. + */ + // @ts-ignore + supplier(override: java.util.function$.Function): org.spongepowered.api.world.gen.populator.BigMushroom.Builder; + /** + * Builds a new instance of a {@link BigMushroom} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.BigMushroom; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.BigMushroom.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.BigMushroom.d.ts new file mode 100644 index 00000000..72f5a638 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.BigMushroom.d.ts @@ -0,0 +1,73 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface BigMushroom extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link BigMushroom} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.BigMushroom.Builder; + /** + * Gets a mutable {@link WeightedTable} of possible mushroom types to spawn. + */ + // @ts-ignore + getTypes(): org.spongepowered.api.util.weighted.WeightedTable; + /** + * Gets a representation of the amount of mushrooms which will be attempted + * to be spawned per chunk. + *

Note: This number is not a definite number and the + * final count of mushrooms which are successfully spawned by the populator + * will almost always be lower.

+ */ + // @ts-ignore + getMushroomsPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the representation of the amount of mushrooms which will be + * attempted to be spawned per chunk. + *

Note: This number is not a definite number and the + * final count of mushrooms which are successfully spawned by the populator + * will almost always be lower.

+ */ + // @ts-ignore + setMushroomsPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the amount of mushrooms which will be attempted to be spawned per + * chunk. + *

Note: This number is not a definite number and the + * final count of mushrooms which are successfully spawned by the populator + * will almost always be lower.

+ */ + // @ts-ignore + setMushroomsPerChunk(count: number): void; + /** + * Gets the overriding supplier if it exists. If the supplier is present + * then it is used in place of the weighted table while determining what + * PopulatorObject to place. + */ + // @ts-ignore + getSupplierOverride(): java.util.Optional; + /** + * Sets the overriding supplier. If the supplier is present then it is used + * in place of the weighted table while determining what PopulatorObject to + * place. + */ + // @ts-ignore + setSupplierOverride(override: java.util.function$.Function): void; + /** + * Clears the supplier override to force the weighted table to be used + * instead. + */ + // @ts-ignore + clearSupplierOverride(): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.BlockBlob.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.BlockBlob.Builder.d.ts new file mode 100644 index 00000000..a0f7d092 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.BlockBlob.Builder.d.ts @@ -0,0 +1,52 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace BlockBlob { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the {@link BlockState} that this populator will place down to + * form the blob. + */ + // @ts-ignore + block(block: org.spongepowered.api.block.BlockState): org.spongepowered.api.world.gen.populator.BlockBlob.Builder; + /** + * Sets the radius of the area for the blob, cannot be negative. + */ + // @ts-ignore + radius(radius: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.BlockBlob.Builder; + /** + * Sets the radius of the area for the blob, cannot be negative. + */ + // @ts-ignore + radius(radius: number): org.spongepowered.api.world.gen.populator.BlockBlob.Builder; + /** + * Sets the number of blobs to spawn per chunk, must be greater than + * zero. + */ + // @ts-ignore + blobCount(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.BlockBlob.Builder; + /** + * Sets the number of blobs to spawn per chunk, must be greater than + * zero. + */ + // @ts-ignore + blobCount(count: number): org.spongepowered.api.world.gen.populator.BlockBlob.Builder; + /** + * Builds a new instance of a {@link BlockBlob} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.BlockBlob; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.BlockBlob.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.BlockBlob.d.ts new file mode 100644 index 00000000..d8cffb44 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.BlockBlob.d.ts @@ -0,0 +1,63 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface BlockBlob extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link BlockBlob} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.BlockBlob.Builder; + /** + * Gets the {@link BlockState} that this populator will place down to form + * the blob. + */ + // @ts-ignore + getBlock(): org.spongepowered.api.block.BlockState; + /** + * Sets the {@link BlockState} that this populator will place down to form + * the blob. + */ + // @ts-ignore + setBlock(state: org.spongepowered.api.block.BlockState): void; + /** + * Gets the radius of the area for the blob. + */ + // @ts-ignore + getRadius(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the radius of the area for the blob, cannot be negative. + */ + // @ts-ignore + setRadius(radius: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the radius of the area for the blob, cannot be negative. + */ + // @ts-ignore + setRadius(radius: number): void; + /** + * Gets the number of blobs which will be placed per chunk. + */ + // @ts-ignore + getCount(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of blobs to spawn per chunk, must be greater than zero. + */ + // @ts-ignore + setCount(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of blobs to spawn per chunk, must be greater than zero. + */ + // @ts-ignore + setCount(count: number): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Cactus.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Cactus.Builder.d.ts new file mode 100644 index 00000000..f0ab1679 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Cactus.Builder.d.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace Cactus { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the number of cacti to spawn per chunk, cannot be negative. + *

Note: This number is not a definite number and + * the final count of cacti which are successfully spawned by the + * populator will almost always be lower.

+ */ + // @ts-ignore + cactiPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Cactus.Builder; + /** + * Sets the number of cacti to spawn per chunk, cannot be negative. + *

Note: This number is not a definite number and + * the final count of cacti which are successfully spawned by the + * populator will almost always be lower.

+ */ + // @ts-ignore + cactiPerChunk(count: number): org.spongepowered.api.world.gen.populator.Cactus.Builder; + /** + * Sets the height of the cacti. + */ + // @ts-ignore + height(height: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Cactus.Builder; + /** + * Sets the height of the cacti. + */ + // @ts-ignore + height(height: number): org.spongepowered.api.world.gen.populator.Cactus.Builder; + /** + * Builds a new instance of a {@link Cactus} populator with the settings + * set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.Cactus; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Cactus.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Cactus.d.ts new file mode 100644 index 00000000..555c2959 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Cactus.d.ts @@ -0,0 +1,57 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface Cactus extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link Cactus} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.Cactus.Builder; + /** + * Gets the number of cacti to spawn per chunk. + */ + // @ts-ignore + getCactiPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of cacti to spawn per chunk, cannot be negative. + *

Note: This number is not a definite number and the + * final count of cacti which are successfully spawned by the populator will + * almost always be lower.

+ */ + // @ts-ignore + setCactiPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of cacti to spawn per chunk, cannot be negative. + *

Note: This number is not a definite number and the + * final count of cacti which are successfully spawned by the populator will + * almost always be lower.

+ */ + // @ts-ignore + setCactiPerChunk(count: number): void; + /** + * Gets the height of the cacti. + */ + // @ts-ignore + getHeight(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the height of the cacti. + */ + // @ts-ignore + setHeight(height: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the height of the cacti. + */ + // @ts-ignore + setHeight(count: number): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.ChorusFlower.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.ChorusFlower.Builder.d.ts new file mode 100644 index 00000000..ad594942 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.ChorusFlower.Builder.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace ChorusFlower { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the radius around the center (0, 0) of the world that this + * populator will not apply to. + *

This must be a positive value or zero.

+ */ + // @ts-ignore + exclusionRadius(radius: number): org.spongepowered.api.world.gen.populator.ChorusFlower.Builder; + /** + * Builds a new instance of a {@link ChorusFlower} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.ChorusFlower; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.ChorusFlower.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.ChorusFlower.d.ts new file mode 100644 index 00000000..0c8481ec --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.ChorusFlower.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface ChorusFlower extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link ChorusFlower} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.ChorusFlower.Builder; + /** + * Gets the radius around the center (0, 0) of the world that this populator + * will not apply to. + *

This is used to prevent the islands from generating around the ender + * dragon fight area.

+ */ + // @ts-ignore + getExclusionRadius(): number; + /** + * Sets the radius around the center (0, 0) of the world that this populator + * will not apply to. + *

This must be a positive value or zero.

+ */ + // @ts-ignore + setExclusionRadius(radius: number): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.DeadBush.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.DeadBush.Builder.d.ts new file mode 100644 index 00000000..093b060c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.DeadBush.Builder.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace DeadBush { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the number of bushes to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.DeadBush.Builder; + /** + * Sets the number of bushes to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: number): org.spongepowered.api.world.gen.populator.DeadBush.Builder; + /** + * Builds a new instance of a {@link DeadBush} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.DeadBush; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.DeadBush.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.DeadBush.d.ts new file mode 100644 index 00000000..191bc2e4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.DeadBush.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface DeadBush extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link DeadBush} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.DeadBush.Builder; + /** + * Gets the number of bushes to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + getShrubsPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of bushes to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setShrubsPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of bushes to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setShrubsPerChunk(count: number): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.DesertWell.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.DesertWell.Builder.d.ts new file mode 100644 index 00000000..55db03f3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.DesertWell.Builder.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace DesertWell { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the probability of a desert well spawning. + */ + // @ts-ignore + probability(p: number): org.spongepowered.api.world.gen.populator.DesertWell.Builder; + /** + * Sets the {@link PopulatorObject} representing the well. + */ + // @ts-ignore + wellObject(obj: org.spongepowered.api.world.gen.PopulatorObject): org.spongepowered.api.world.gen.populator.DesertWell.Builder; + /** + * Builds a new instance of a {@link DesertWell} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.DesertWell; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.DesertWell.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.DesertWell.d.ts new file mode 100644 index 00000000..eda64a25 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.DesertWell.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface DesertWell extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link DesertWell} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.DesertWell.Builder; + /** + * Gets the probability of a desert well spawning. + */ + // @ts-ignore + getSpawnProbability(): number; + /** + * Sets the probability of a desert well spawning. + */ + // @ts-ignore + setSpawnProbability(p: number): void; + /** + * Gets the {@link PopulatorObject} representing the well. + */ + // @ts-ignore + getWellObject(): org.spongepowered.api.world.gen.PopulatorObject; + /** + * Sets the {@link PopulatorObject} representing the well. + */ + // @ts-ignore + setWellObject(obj: org.spongepowered.api.world.gen.PopulatorObject): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.DoublePlant.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.DoublePlant.Builder.d.ts new file mode 100644 index 00000000..773a463f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.DoublePlant.Builder.d.ts @@ -0,0 +1,57 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace DoublePlant { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets which plant types may be spawned in by this populator. + */ + // @ts-ignore + types(types: org.spongepowered.api.util.weighted.WeightedTable): org.spongepowered.api.world.gen.populator.DoublePlant.Builder; + /** + * Adds a plant type to the list that may be spawned in by this + * populator. + */ + // @ts-ignore + type(type: org.spongepowered.api.data.type.DoublePlantType, weight: number): org.spongepowered.api.world.gen.populator.DoublePlant.Builder; + /** + * Sets the number of plants to create, cannot be negative. + *

Note: This number is not a definite number and + * the final count of plants which are successfully spawned by the + * populator will almost always be lower.

+ */ + // @ts-ignore + perChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.DoublePlant.Builder; + /** + * Sets the number of plants to create, cannot be negative. + *

Note: This number is not a definite number and + * the final count of plants which are successfully spawned by the + * populator will almost always be lower.

+ */ + // @ts-ignore + perChunk(count: number): org.spongepowered.api.world.gen.populator.DoublePlant.Builder; + /** + * Sets the overriding supplier. If the supplier is present then it is + * used in place of the weighted table. + */ + // @ts-ignore + supplier(override: java.util.function$.Function): org.spongepowered.api.world.gen.populator.DoublePlant.Builder; + /** + * Builds a new instance of a {@link DoublePlant} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.DoublePlant; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.DoublePlant.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.DoublePlant.d.ts new file mode 100644 index 00000000..ed87d189 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.DoublePlant.d.ts @@ -0,0 +1,68 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface DoublePlant extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link DoublePlant} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.DoublePlant.Builder; + /** + * Gets a mutable weighted collection of possible plants which may be + * selected to be spawned in by this populator. + */ + // @ts-ignore + getPossibleTypes(): org.spongepowered.api.util.weighted.WeightedTable; + /** + * Gets the number of plants to create per chunk. + */ + // @ts-ignore + getPlantsPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of plants to create per chunk, cannot be negative. + *

Note: This number is not a definite number and the + * final count of plants which are successfully spawned by the populator + * will almost always be lower.

+ */ + // @ts-ignore + setPlantsPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of plants to create per chunk, cannot be negative. + *

Note: This number is not a definite number and the + * final count of plants which are successfully spawned by the populator + * will almost always be lower.

+ */ + // @ts-ignore + setPlantsPerChunk(count: number): void; + /** + * Gets the overriding supplier if it exists. If the supplier is present + * then it is used in place of the weighted table while determining what + * DoublePlantType to place. + */ + // @ts-ignore + getSupplierOverride(): java.util.Optional; + /** + * Sets the overriding supplier. If the supplier is present then it is used + * in place of the weighted table while determining what DoublePlantType to + * place. + */ + // @ts-ignore + setSupplierOverride(override: java.util.function$.Function): void; + /** + * Clears the supplier override to force the weighted table to be used + * instead. + */ + // @ts-ignore + clearSupplierOverride(): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Dungeon.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Dungeon.Builder.d.ts new file mode 100644 index 00000000..bbf2a743 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Dungeon.Builder.d.ts @@ -0,0 +1,62 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace Dungeon { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the number of attempts at randomly spawning a generator per + * chunk. + */ + // @ts-ignore + attempts(attempts: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Dungeon.Builder; + /** + * Sets the number of attempts at randomly spawning a generator per + * chunk. + */ + // @ts-ignore + attempts(attempts: number): org.spongepowered.api.world.gen.populator.Dungeon.Builder; + /** + *

Sets {@link MobSpawnerData} that will be used to create the spawner + * within the dungeon.

+ *

Note: Only one of choices or mob spawner data + * will be present.

+ */ + // @ts-ignore + mobSpawnerData(data: org.spongepowered.api.data.manipulator.mutable.MobSpawnerData): org.spongepowered.api.world.gen.populator.Dungeon.Builder; + /** + *

Sets the possible {@link EntityArchetype}s that could be spawned. + * One type is chosen when creating the dungeon, for more complex + * spawners see {@link #mobSpawnerData(MobSpawnerData)}}

+ *

To use the default set of choices, pass null instead + * of a table.

+ *

Note: Only one of choices or mob spawner data + * will be present.

+ */ + // @ts-ignore + choices(choices: org.spongepowered.api.util.weighted.WeightedTable): org.spongepowered.api.world.gen.populator.Dungeon.Builder; + /** + * Defines a {@link LootTable} of {@link ItemStackSnapshot}s from which + * items will be randomly selected based on weight in order to calculate + * the contents of chests placed within the dungeon. + */ + // @ts-ignore + possibleItems(items: org.spongepowered.api.util.weighted.LootTable): org.spongepowered.api.world.gen.populator.Dungeon.Builder; + /** + * Builds a new instance of a {@link Dungeon} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.Dungeon; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Dungeon.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Dungeon.d.ts new file mode 100644 index 00000000..f5a42576 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Dungeon.d.ts @@ -0,0 +1,78 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface Dungeon extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link Dungeon} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.Dungeon.Builder; + /** + * Gets the number of attempts at randomly spawning a generator per chunk. + */ + // @ts-ignore + getAttemptsPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of attempts at randomly spawning a generator per chunk. + */ + // @ts-ignore + setAttemptsPerChunk(attempts: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of attempts at randomly spawning a generator per chunk. + */ + // @ts-ignore + setAttemptsPerChunk(attempts: number): void; + /** + *

Gets the {@link MobSpawnerData} which represents the MobSpawner which + * will be created within the dungeon.

+ *

Note: Only one of choices or mob spawner data + * will be present.

+ */ + // @ts-ignore + getMobSpawnerData(): java.util.Optional; + /** + *

Sets {@link MobSpawnerData} which will be used to create the spawner + * within the dungeon.

+ *

Note: Only one of choices or mob spawner data + * will be present.

+ */ + // @ts-ignore + setMobSpawnerData(data: org.spongepowered.api.data.manipulator.mutable.MobSpawnerData): void; + /** + *

Gets a weighted collection of possible + * {@link EntityArchetype}s that could be spawned. One type is chosen when + * creating the dungeon, for more complex spawners see + * {@link #getMobSpawnerData()}.

+ *

Note: Only one of choices or mob spawner data + * will be present.

+ */ + // @ts-ignore + getChoices(): java.util.Optional; + /** + *

Sets the possible {@link EntityArchetype}s that could be spawned. + * One type is chosen when creating the dungeon, for more complex + * spawners see {@link #setMobSpawnerData(MobSpawnerData)}

+ *

Note: Only one of choices or mob spawner data + * will be present.

+ */ + // @ts-ignore + setChoices(choices: org.spongepowered.api.util.weighted.WeightedTable): void; + /** + * Gets a mutable weighted collection of possible contents of the chests. + * Items will be randomly selected from this list based on weight in order + * to calculate the contents of chests placed within the dungeon. + */ + // @ts-ignore + getPossibleContents(): org.spongepowered.api.util.weighted.LootTable; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.EndIsland.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.EndIsland.Builder.d.ts new file mode 100644 index 00000000..b54df221 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.EndIsland.Builder.d.ts @@ -0,0 +1,56 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace EndIsland { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the initial starting radius range of the island. + */ + // @ts-ignore + startingRadius(radius: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.EndIsland.Builder; + /** + * Sets the initial starting radius of the island. + */ + // @ts-ignore + startingRadius(radius: number): org.spongepowered.api.world.gen.populator.EndIsland.Builder; + /** + * Sets the amount that the radius decreases for every downward step. + */ + // @ts-ignore + radiusDecrement(radius: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.EndIsland.Builder; + /** + * Sets the amount that the radius decreases for every downward step. + */ + // @ts-ignore + radiusDecrement(radius: number): org.spongepowered.api.world.gen.populator.EndIsland.Builder; + /** + * Sets the block state that the island will be formed from. + */ + // @ts-ignore + islandBlock(state: org.spongepowered.api.block.BlockState): org.spongepowered.api.world.gen.populator.EndIsland.Builder; + /** + * Sets the radius around the center (0, 0) of the world that this + * populator will not apply to. + *

This must be a positive value or zero.

+ */ + // @ts-ignore + exclusionRadius(radius: number): org.spongepowered.api.world.gen.populator.EndIsland.Builder; + /** + * Builds a new instance of a {@link EndIsland} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.EndIsland; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.EndIsland.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.EndIsland.d.ts new file mode 100644 index 00000000..095e6d1a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.EndIsland.d.ts @@ -0,0 +1,76 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface EndIsland extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link EndIsland} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.EndIsland.Builder; + /** + * Gets the initial starting radius range of the island. + */ + // @ts-ignore + getStartingRadius(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the initial starting radius range of the island. + */ + // @ts-ignore + setStartingRadius(radius: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the initial starting radius of the island. + */ + // @ts-ignore + setStartingRadius(radius: number): void; + /** + * Gets the amount that the radius decreases for every downward step. + */ + // @ts-ignore + getRadiusDecrement(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the amount that the radius decreases for every downward step. + */ + // @ts-ignore + setRadiusDecrement(decrement: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the amount that the radius decreases for every downward step. + */ + // @ts-ignore + setRadiusDecrement(decrement: number): void; + /** + * Gets the block state that the island will be formed from. + */ + // @ts-ignore + getIslandBlock(): org.spongepowered.api.block.BlockState; + /** + * Sets the block state that the island will be formed from. + */ + // @ts-ignore + setIslandBlock(state: org.spongepowered.api.block.BlockState): void; + /** + * Gets the radius around the center (0, 0) of the world that this populator + * will not apply to. + *

This is used to prevent the islands from generating around the ender + * dragon fight area.

+ */ + // @ts-ignore + getExclusionRadius(): number; + /** + * Sets the radius around the center (0, 0) of the world that this populator + * will not apply to. + *

This must be a positive value or zero.

+ */ + // @ts-ignore + setExclusionRadius(radius: number): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Flower.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Flower.Builder.d.ts new file mode 100644 index 00000000..073166c2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Flower.Builder.d.ts @@ -0,0 +1,59 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace Flower { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the number of flowers to attempt to spawn per chunk, must be + * greater than zero. + *

Note: This number is not a definite number and + * the final count of flowers which are successfully spawned by the + * populator will almost always be lower.

+ */ + // @ts-ignore + perChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Flower.Builder; + /** + * Sets the number of flowers to attempt to spawn per chunk, must be + * greater than zero. + *

Note: This number is not a definite number and + * the final count of flowers which are successfully spawned by the + * populator will almost always be lower.

+ */ + // @ts-ignore + perChunk(count: number): org.spongepowered.api.world.gen.populator.Flower.Builder; + /** + * Sets the plant types for this populator to spawn. + */ + // @ts-ignore + types(types: org.spongepowered.api.util.weighted.WeightedTable): org.spongepowered.api.world.gen.populator.Flower.Builder; + /** + * Adds the plant type to the list of types to spawn with the given + * weight. + */ + // @ts-ignore + type(type: org.spongepowered.api.data.type.PlantType, weight: number): org.spongepowered.api.world.gen.populator.Flower.Builder; + /** + * Sets the overriding supplier. If the supplier is present then it is + * used in place of the weighted table. + */ + // @ts-ignore + supplier(override: java.util.function$.Function): org.spongepowered.api.world.gen.populator.Flower.Builder; + /** + * Builds a new instance of a {@link Flower} populator with the settings + * set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.Flower; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Flower.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Flower.d.ts new file mode 100644 index 00000000..c7937b80 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Flower.d.ts @@ -0,0 +1,70 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface Flower extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link Flower} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.Flower.Builder; + /** + * Gets the number of flowers to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + getFlowersPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of flowers to attempt to spawn per chunk, must be greater + * than zero. + *

Note: This number is not a definite number and the + * final count of flowers which are successfully spawned by the populator + * will almost always be lower.

+ */ + // @ts-ignore + setFlowersPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of flowers to attempt to spawn per chunk, must be greater + * than zero. + *

Note: This number is not a definite number and the + * final count of flowers which are successfully spawned by the populator + * will almost always be lower.

+ */ + // @ts-ignore + setFlowersPerChunk(count: number): void; + /** + * Gets a mutable weighted collection of plant type for this populator to + * spawn. + */ + // @ts-ignore + getFlowerTypes(): org.spongepowered.api.util.weighted.WeightedTable; + /** + * Gets the overriding supplier if it exists. If the supplier is present + * then it is used in place of the weighted table while determining what + * PlantType to place. + */ + // @ts-ignore + getSupplierOverride(): java.util.Optional; + /** + * Sets the overriding supplier. If the supplier is present then it is used + * in place of the weighted table while determining what PlantType to place. + */ + // @ts-ignore + setSupplierOverride(override: java.util.function$.Function): void; + /** + * Clears the supplier override to force the weighted table to be used + * instead. + */ + // @ts-ignore + clearSupplierOverride(): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Forest.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Forest.Builder.d.ts new file mode 100644 index 00000000..30f22014 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Forest.Builder.d.ts @@ -0,0 +1,52 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace Forest { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the number of trees to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Forest.Builder; + /** + * Sets the number of trees to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: number): org.spongepowered.api.world.gen.populator.Forest.Builder; + /** + * Sets the {@link BiomeTreeType}s to spawn. + */ + // @ts-ignore + types(types: org.spongepowered.api.util.weighted.WeightedTable): org.spongepowered.api.world.gen.populator.Forest.Builder; + /** + * Sets the {@link BiomeTreeType} to the list of weighted types. + */ + // @ts-ignore + type(type: org.spongepowered.api.world.gen.PopulatorObject, weight: number): org.spongepowered.api.world.gen.populator.Forest.Builder; + /** + * Sets the overriding supplier. If the supplier is present then it is + * used in place of the weighted table. + */ + // @ts-ignore + supplier(override: java.util.function$.Function): org.spongepowered.api.world.gen.populator.Forest.Builder; + /** + * Builds a new instance of a {@link Forest} populator with the settings + * set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.Forest; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Forest.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Forest.d.ts new file mode 100644 index 00000000..7528c214 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Forest.d.ts @@ -0,0 +1,65 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface Forest extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link Forest} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.Forest.Builder; + /** + * Gets the number of trees to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + getTreesPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of trees to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setTreesPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of trees to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setTreesPerChunk(count: number): void; + /** + * Gets the a mutable weighted collection of {@link PopulatorObject}s to + * spawn. + */ + // @ts-ignore + getTypes(): org.spongepowered.api.util.weighted.WeightedTable; + /** + * Gets the overriding supplier if it exists. If the supplier is present + * then it is used in place of the weighted table while determining what + * PopulatorObject to place. + */ + // @ts-ignore + getSupplierOverride(): java.util.Optional; + /** + * Sets the overriding supplier. If the supplier is present then it is used + * in place of the weighted table while determining what PopulatorObject to + * place. + */ + // @ts-ignore + setSupplierOverride(override: java.util.function$.Function): void; + /** + * Clears the supplier override to force the weighted table to be used + * instead. + */ + // @ts-ignore + clearSupplierOverride(): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Fossil.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Fossil.Builder.d.ts new file mode 100644 index 00000000..a0321977 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Fossil.Builder.d.ts @@ -0,0 +1,29 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace Fossil { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the probability of a fossil spawning. + */ + // @ts-ignore + probability(p: number): org.spongepowered.api.world.gen.populator.Fossil.Builder; + /** + * Builds a new instance of a {@link Fossil} populator with the settings + * set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.Fossil; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Fossil.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Fossil.d.ts new file mode 100644 index 00000000..1ef1024c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Fossil.d.ts @@ -0,0 +1,31 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface Fossil extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link Fossil} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.Fossil.Builder; + /** + * Gets the probability of a fossil being generated. + */ + // @ts-ignore + getSpawnProbability(): number; + /** + * Sets the spawn probability, must be be between 0 and 1. + */ + // @ts-ignore + setSpawnProbability(chance: number): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Glowstone.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Glowstone.Builder.d.ts new file mode 100644 index 00000000..4ded9d79 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Glowstone.Builder.d.ts @@ -0,0 +1,63 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace Glowstone { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the number of clusters to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Glowstone.Builder; + /** + * Sets the number of clusters to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: number): org.spongepowered.api.world.gen.populator.Glowstone.Builder; + /** + * Sets the amount of glowstone to attempt to spawn per cluster, must be + * greater than zero. + */ + // @ts-ignore + blocksPerCluster(attempts: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Glowstone.Builder; + /** + * Sets the amount of glowstone to attempt to spawn per cluster, must be + * greater than zero. + */ + // @ts-ignore + blocksPerCluster(attempts: number): org.spongepowered.api.world.gen.populator.Glowstone.Builder; + /** + * Sets the height of the glowstone cluster. + */ + // @ts-ignore + clusterHeight(height: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Glowstone.Builder; + /** + * Sets the height of the glowstone cluster. + */ + // @ts-ignore + clusterHeight(height: number): org.spongepowered.api.world.gen.populator.Glowstone.Builder; + /** + * Sets the height that the cluster may generate at. + */ + // @ts-ignore + height(height: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Glowstone.Builder; + /** + * Builds a new instance of a {@link Glowstone} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.Glowstone; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Glowstone.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Glowstone.d.ts new file mode 100644 index 00000000..523e946c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Glowstone.d.ts @@ -0,0 +1,82 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface Glowstone extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link Glowstone} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.Glowstone.Builder; + /** + * Gets the number of clusters to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + getClustersPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of clusters to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + setClustersPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of clusters to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + setClustersPerChunk(count: number): void; + /** + * Gets the amount of glowstone to attempt to spawn per cluster, must be + * greater than zero. + */ + // @ts-ignore + getAttemptsPerCluster(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the amount of glowstone to attempt to spawn per cluster, must be + * greater than zero. + */ + // @ts-ignore + setAttemptsPerCluster(attempts: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the amount of glowstone to attempt to spawn per cluster, must be + * greater than zero. + */ + // @ts-ignore + setAttemptsPerCluster(attempts: number): void; + /** + * Gets the height of the glowstone cluster. + */ + // @ts-ignore + getClusterHeight(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the height of the glowstone cluster. + */ + // @ts-ignore + setClusterHeight(height: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the height of the glowstone cluster. + */ + // @ts-ignore + setClusterHeight(height: number): void; + /** + * Gets the height that the cluster may generate at. + */ + // @ts-ignore + getHeight(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the height that the cluster may generate at. + */ + // @ts-ignore + setHeight(height: org.spongepowered.api.util.weighted.VariableAmount): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.IcePath.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.IcePath.Builder.d.ts new file mode 100644 index 00000000..7ec45c37 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.IcePath.Builder.d.ts @@ -0,0 +1,46 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace IcePath { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the radius of the path to spawn, cannot be negative. + */ + // @ts-ignore + radius(radius: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.IcePath.Builder; + /** + * Sets the radius of the path to spawn, cannot be negative. + */ + // @ts-ignore + radius(radius: number): org.spongepowered.api.world.gen.populator.IcePath.Builder; + /** + * Sets the number of sections to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(sections: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.IcePath.Builder; + /** + * Sets the number of sections to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(sections: number): org.spongepowered.api.world.gen.populator.IcePath.Builder; + /** + * Builds a new instance of a {@link IcePath} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.IcePath; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.IcePath.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.IcePath.d.ts new file mode 100644 index 00000000..18392908 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.IcePath.d.ts @@ -0,0 +1,54 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface IcePath extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link IcePath} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.IcePath.Builder; + /** + * Gets the radius of the path to spawn. + */ + // @ts-ignore + getRadius(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the radius of the path to spawn, cannot be negative. + */ + // @ts-ignore + setRadius(radius: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the radius of the path to spawn, cannot be negative. + */ + // @ts-ignore + setRadius(radius: number): void; + /** + * Gets the number of sections to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + getSectionsPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of sections to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + setSectionsPerChunk(sections: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of sections to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + setSectionsPerChunk(sections: number): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.IceSpike.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.IceSpike.Builder.d.ts new file mode 100644 index 00000000..fdee5d5f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.IceSpike.Builder.d.ts @@ -0,0 +1,59 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace IceSpike { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the number of spikes to generate per chunk. + */ + // @ts-ignore + spikesPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.IceSpike.Builder; + /** + * Sets the number of spikes to generate per chunk. + */ + // @ts-ignore + spikesPerChunk(count: number): org.spongepowered.api.world.gen.populator.IceSpike.Builder; + /** + * Sets the base height of the spike. + */ + // @ts-ignore + height(height: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.IceSpike.Builder; + /** + * Sets the base height of the spike. + */ + // @ts-ignore + height(height: number): org.spongepowered.api.world.gen.populator.IceSpike.Builder; + /** + * Gets the probability of the spike much larger than normal. + */ + // @ts-ignore + extremeSpikeProbability(p: number): org.spongepowered.api.world.gen.populator.IceSpike.Builder; + /** + * Sets the base height increase of the extreme spikes. + */ + // @ts-ignore + extremeSpikeIncrease(increase: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.IceSpike.Builder; + /** + * Sets the base height increase of the extreme spikes. + */ + // @ts-ignore + extremeSpikeIncrease(increase: number): org.spongepowered.api.world.gen.populator.IceSpike.Builder; + /** + * Builds a new instance of a {@link IceSpike} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.IceSpike; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.IceSpike.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.IceSpike.d.ts new file mode 100644 index 00000000..224ffc8c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.IceSpike.d.ts @@ -0,0 +1,76 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface IceSpike extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link IceSpike} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.IceSpike.Builder; + /** + * Gets the number of spikes to generate per chunk. + */ + // @ts-ignore + getSpikesPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of spikes to attempt to generate per chunk. + */ + // @ts-ignore + setSpikesPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of spikes to attempt to generate per chunk. + */ + // @ts-ignore + setSpikesPerChunk(count: number): void; + /** + * Gets the base height of the spike. + */ + // @ts-ignore + getHeight(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the base height of the spike. + */ + // @ts-ignore + setHeight(height: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the base height of the spike. + */ + // @ts-ignore + setHeight(height: number): void; + /** + * Gets the probability of the spike much larger than normal. + */ + // @ts-ignore + getExtremeSpikeProbability(): number; + /** + * Gets the probability of the spike much larger than normal. + */ + // @ts-ignore + setExtremeSpikeProbability(p: number): void; + /** + * Gets the height increase of the extreme spikes. + */ + // @ts-ignore + getExtremeSpikeIncrease(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the height increase of the extreme spikes. + */ + // @ts-ignore + setExtremeSpikeIncrease(increase: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the height increase of the extreme spikes. + */ + // @ts-ignore + setExtremeSpikeIncrease(increase: number): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Lake.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Lake.Builder.d.ts new file mode 100644 index 00000000..043bc008 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Lake.Builder.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace Lake { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the {@link BlockState} of the liquid to fill the lake with. + */ + // @ts-ignore + liquidType(liquid: org.spongepowered.api.block.BlockState): org.spongepowered.api.world.gen.populator.Lake.Builder; + /** + * Sets the probability of a lake spawning in a chunk. + */ + // @ts-ignore + chance(p: number): org.spongepowered.api.world.gen.populator.Lake.Builder; + /** + * Sets the height that the lake will be spawned at. + */ + // @ts-ignore + height(height: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Lake.Builder; + /** + * Builds a new instance of a {@link Lake} populator with the settings + * set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.Lake; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Lake.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Lake.d.ts new file mode 100644 index 00000000..05f685b4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Lake.d.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface Lake extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link Lake} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.Lake.Builder; + /** + * Gets the {@link BlockState} of the liquid to fill the lake with. + */ + // @ts-ignore + getLiquidType(): org.spongepowered.api.block.BlockState; + /** + * Sets the {@link BlockState} of the liquid to fill the lake with. + */ + // @ts-ignore + setLiquidType(liquid: org.spongepowered.api.block.BlockState): void; + /** + * Gets the probability of a lake spawning in a chunk. + */ + // @ts-ignore + getLakeProbability(): number; + /** + * Sets the probability of a lake spawning in a chunk. + */ + // @ts-ignore + setLakeProbability(p: number): void; + /** + * Gets the height that this lake will be spawned at. + */ + // @ts-ignore + getHeight(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the height that this lake will be spawned at. + */ + // @ts-ignore + setHeight(height: org.spongepowered.api.util.weighted.VariableAmount): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Melon.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Melon.Builder.d.ts new file mode 100644 index 00000000..112a905e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Melon.Builder.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace Melon { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the number of melons to attempt to spawn per chunk. + */ + // @ts-ignore + perChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Melon.Builder; + /** + * Sets the number of melons to attempt to spawn per chunk. + */ + // @ts-ignore + perChunk(count: number): org.spongepowered.api.world.gen.populator.Melon.Builder; + /** + * Builds a new instance of a {@link Melon} populator with the settings + * set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.Melon; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Melon.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Melon.d.ts new file mode 100644 index 00000000..658bb176 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Melon.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface Melon extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link Melon} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.Melon.Builder; + /** + * Gets the number of melons to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + getMelonsPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of melons to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setMelonsPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of melons to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setMelonsPerChunk(count: number): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Mushroom.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Mushroom.Builder.d.ts new file mode 100644 index 00000000..f1536ab3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Mushroom.Builder.d.ts @@ -0,0 +1,58 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace Mushroom { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the weighted {@link MushroomType}s to select from during + * generation. + */ + // @ts-ignore + types(types: org.spongepowered.api.util.weighted.ChanceTable): org.spongepowered.api.world.gen.populator.Mushroom.Builder; + /** + * Adds the weighted {@link MushroomType} to the list of available + * types. + */ + // @ts-ignore + type(type: org.spongepowered.api.world.gen.type.MushroomType, weight: number): org.spongepowered.api.world.gen.populator.Mushroom.Builder; + /** + * Sets the number of mushrooms which will be attempted to be spawned. + *

Note: This number is not a definite number and + * the final count of mushrooms which are successfully spawned by the + * populator will almost always be lower.

+ */ + // @ts-ignore + mushroomsPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Mushroom.Builder; + /** + * Sets the number of mushrooms which will be attempted to be spawned. + *

Note: This number is not a definite number and + * the final count of mushrooms which are successfully spawned by the + * populator will almost always be lower.

+ */ + // @ts-ignore + mushroomsPerChunk(count: number): org.spongepowered.api.world.gen.populator.Mushroom.Builder; + /** + * Sets the overriding supplier. If the supplier is present then it is + * used in place of the chance table. + */ + // @ts-ignore + supplier(override: java.util.function$.Function): org.spongepowered.api.world.gen.populator.Mushroom.Builder; + /** + * Builds a new instance of a {@link Mushroom} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.Mushroom; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Mushroom.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Mushroom.d.ts new file mode 100644 index 00000000..82ef457e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Mushroom.d.ts @@ -0,0 +1,75 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface Mushroom extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link Mushroom} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.Mushroom.Builder; + /** + * Gets a mutable {@link ChanceTable} of possible mushroom types to spawn. + * If the list is empty then a {@link MushroomType} will be selected at + * random from all available {@link MushroomTypes}. + */ + // @ts-ignore + getTypes(): org.spongepowered.api.util.weighted.ChanceTable; + /** + * Gets a representation of the amount of mushrooms which will be attempted + * to be spawned per chunk. + *

Note: This number is not a definite number and the + * final count of mushrooms which are successfully spawned by the populator + * will almost always be lower.

+ */ + // @ts-ignore + getMushroomsPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the representation of the amount of mushrooms which will be + * attempted to be spawned per chunk. + *

Note: This number is not a definite number and the + * final count of mushrooms which are successfully spawned by the populator + * will almost always be lower.

+ */ + // @ts-ignore + setMushroomsPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the amount of mushrooms which will be attempted to be spawned per + * chunk. + *

Note: This number is not a definite number and the + * final count of mushrooms which are successfully spawned by the populator + * will almost always be lower.

+ */ + // @ts-ignore + setMushroomsPerChunk(count: number): void; + /** + * Gets the overriding supplier if it exists. If the supplier is present + * then it is used in place of the weighted table while determining what + * MushroomType to place. + */ + // @ts-ignore + getSupplierOverride(): java.util.Optional; + /** + * Sets the overriding supplier. If the supplier is present then it is used + * in place of the chance table while determining what MushroomType to + * place. + */ + // @ts-ignore + setSupplierOverride(override: java.util.function$.Function): void; + /** + * Clears the supplier override to force the chance table to be used + * instead. + */ + // @ts-ignore + clearSupplierOverride(): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.NetherFire.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.NetherFire.Builder.d.ts new file mode 100644 index 00000000..e5907f3a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.NetherFire.Builder.d.ts @@ -0,0 +1,48 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace NetherFire { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the number of clusters to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.NetherFire.Builder; + /** + * Sets the number of clusters to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: number): org.spongepowered.api.world.gen.populator.NetherFire.Builder; + /** + * Sets the number of fire to attempt to spawn per cluster, must be + * greater than zero. + */ + // @ts-ignore + perCluster(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.NetherFire.Builder; + /** + * Sets the number of fire to attempt to spawn per cluster, must be + * greater than zero. + */ + // @ts-ignore + perCluster(count: number): org.spongepowered.api.world.gen.populator.NetherFire.Builder; + /** + * Builds a new instance of a {@link NetherFire} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.NetherFire; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.NetherFire.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.NetherFire.d.ts new file mode 100644 index 00000000..ccc70965 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.NetherFire.d.ts @@ -0,0 +1,57 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface NetherFire extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link NetherFire} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.NetherFire.Builder; + /** + * Gets the number of clusters to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + getClustersPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of clusters to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + setClustersPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of clusters to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + setClustersPerChunk(count: number): void; + /** + * Gets the number of fire to attempt to spawn per patch, must be greater + * than zero. + */ + // @ts-ignore + getFirePerCluster(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of fire to attempt to spawn per patch, must be greater + * than zero. + */ + // @ts-ignore + setFirePerCluster(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of Fire to attempt to spawn per patch, must be greater + * than zero. + */ + // @ts-ignore + setFirePerCluster(count: number): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Ore.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Ore.Builder.d.ts new file mode 100644 index 00000000..85e70d44 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Ore.Builder.d.ts @@ -0,0 +1,64 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace Ore { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the block to place as ore. + */ + // @ts-ignore + ore(block: org.spongepowered.api.block.BlockState): org.spongepowered.api.world.gen.populator.Ore.Builder; + /** + * Sets the size of deposit of ore. This is the number of blocks per + * clump of ores spawned. + */ + // @ts-ignore + size(size: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Ore.Builder; + /** + * Sets the size of deposit of ore. This is the number of blocks per + * clump of ores spawned. + */ + // @ts-ignore + size(size: number): org.spongepowered.api.world.gen.populator.Ore.Builder; + /** + * Sets the number of ore clumps to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Ore.Builder; + /** + * Sets the number of ore clumps to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: number): org.spongepowered.api.world.gen.populator.Ore.Builder; + /** + * Sets the height that the ore can generate at. + */ + // @ts-ignore + height(height: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Ore.Builder; + /** + * Sets a predicate which checks for the placement conditions for this + * ore. + */ + // @ts-ignore + placementCondition(condition: java.util.function$.Predicate): org.spongepowered.api.world.gen.populator.Ore.Builder; + /** + * Builds a new instance of a {@link Ore} populator with the settings + * set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.Ore; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Ore.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Ore.d.ts new file mode 100644 index 00000000..e5ea3065 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Ore.d.ts @@ -0,0 +1,87 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface Ore extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link Ore} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.Ore.Builder; + /** + * Gets the block to place as ore. + */ + // @ts-ignore + getOreBlock(): org.spongepowered.api.block.BlockState; + /** + * Sets the block to place as ore. + */ + // @ts-ignore + setOreBlock(block: org.spongepowered.api.block.BlockState): void; + /** + * Gets the size of deposit of ore. This is the number of blocks per clump + * of ores spawned. + */ + // @ts-ignore + getDepositSize(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the size of deposit of ore. This is the number of blocks per clump + * of ores spawned. + */ + // @ts-ignore + setDepositSize(size: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the size of deposit of ore. This is the number of blocks per clump + * of ores spawned. + */ + // @ts-ignore + setDepositSize(size: number): void; + /** + * Gets the number of ore clumps to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + getDepositsPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of ore clumps to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + setDepositsPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of ore clumps to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + setDepositsPerChunk(count: number): void; + /** + * Gets the height that the ore will generate at. + */ + // @ts-ignore + getHeight(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the height that the ore will generate at. + */ + // @ts-ignore + setHeight(height: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Gets a predicate which checks for the placement conditions for this ore. + */ + // @ts-ignore + getPlacementCondition(): java.util.function$.Predicate; + /** + * Sets a predicate which checks for the placement conditions for this ore. + */ + // @ts-ignore + setPlacementCondition(condition: java.util.function$.Predicate): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Pumpkin.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Pumpkin.Builder.d.ts new file mode 100644 index 00000000..563968eb --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Pumpkin.Builder.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace Pumpkin { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the number of pumpkins to attempt to spawn per patch, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Pumpkin.Builder; + /** + * Sets the number of pumpkins to attempt to spawn per patch, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: number): org.spongepowered.api.world.gen.populator.Pumpkin.Builder; + /** + * Sets the probability of a pumpkin patch spawning within a chunk. + */ + // @ts-ignore + chance(p: number): org.spongepowered.api.world.gen.populator.Pumpkin.Builder; + /** + * Builds a new instance of a {@link Pumpkin} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.Pumpkin; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Pumpkin.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Pumpkin.d.ts new file mode 100644 index 00000000..07941642 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Pumpkin.d.ts @@ -0,0 +1,49 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface Pumpkin extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link Pumpkin} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.Pumpkin.Builder; + /** + * Gets the number of pumpkins to attempt to spawn per patch, must be + * greater than zero. + */ + // @ts-ignore + getPumpkinsPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of pumpkins to attempt to spawn per patch, must be + * greater than zero. + */ + // @ts-ignore + setPumpkinsPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of pumpkins to attempt to spawn per patch, must be + * greater than zero. + */ + // @ts-ignore + setPumpkinsPerChunk(count: number): void; + /** + * Gets the probability of a pumpkin patch spawning within a chunk. + */ + // @ts-ignore + getPumpkinChance(): number; + /** + * Sets the probability of a pumpkin patch spawning within a chunk. + */ + // @ts-ignore + setPumpkinChance(p: number): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.RandomBlock.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.RandomBlock.Builder.d.ts new file mode 100644 index 00000000..fa26bc22 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.RandomBlock.Builder.d.ts @@ -0,0 +1,54 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace RandomBlock { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the {@link BlockState} that this populator will randomly + * distribute. + */ + // @ts-ignore + block(block: org.spongepowered.api.block.BlockState): org.spongepowered.api.world.gen.populator.RandomBlock.Builder; + /** + * Sets the number of blocks to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.RandomBlock.Builder; + /** + * Sets the number of blocks to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: number): org.spongepowered.api.world.gen.populator.RandomBlock.Builder; + /** + * Sets the {@link Predicate} that this populator used to determine of a + * given {@link BlockType} is valid to attempt to place a block of fire + * on top of. + */ + // @ts-ignore + placementTarget(target: java.util.function$.Predicate): org.spongepowered.api.world.gen.populator.RandomBlock.Builder; + /** + * Sets the height range of the random block placement. + */ + // @ts-ignore + height(height: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.RandomBlock.Builder; + /** + * Builds a new instance of a {@link RandomBlock} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.RandomBlock; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.RandomBlock.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.RandomBlock.d.ts new file mode 100644 index 00000000..04d2898f --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.RandomBlock.d.ts @@ -0,0 +1,71 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface RandomBlock extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link RandomBlock} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.RandomBlock.Builder; + /** + * Gets the {@link BlockState} that this populator will randomly distribute. + */ + // @ts-ignore + getBlock(): org.spongepowered.api.block.BlockState; + /** + * Sets the {@link BlockState} that this populator will randomly distribute. + */ + // @ts-ignore + setBlock(block: org.spongepowered.api.block.BlockState): void; + /** + * Gets the number of blocks to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + getAttemptsPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of blocks to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setAttemptsPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of blocks to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setAttemptsPerChunk(count: number): void; + /** + * Gets the height that the block will be randomly placed within. + */ + // @ts-ignore + getHeightRange(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the height that the blocks will be randomly placed within. + */ + // @ts-ignore + setHeightRange(height: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Gets the {@link Predicate} that this populator used to determine of a + * given {@link Location} is valid to attempt to place a block at. + */ + // @ts-ignore + getPlacementTarget(): java.util.function$.Predicate; + /** + * Sets the {@link Predicate} that this populator used to determine of a + * given {@link Location} is valid to attempt to place a block at. + */ + // @ts-ignore + getPlacementTarget(target: java.util.function$.Predicate): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.RandomObject.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.RandomObject.Builder.d.ts new file mode 100644 index 00000000..f7463c5c --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.RandomObject.Builder.d.ts @@ -0,0 +1,56 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace RandomObject { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the number of fires to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.RandomObject.Builder; + /** + * Sets the number of fires to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: number): org.spongepowered.api.world.gen.populator.RandomObject.Builder; + /** + * Sets the height range that the object will be placed within. + */ + // @ts-ignore + height(height: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.RandomObject.Builder; + /** + * Sets the {@link PopulatorObject} for the populator to attempt to + * place. + */ + // @ts-ignore + object(obj: org.spongepowered.api.world.gen.PopulatorObject): org.spongepowered.api.world.gen.populator.RandomObject.Builder; + /** + * Sets the chance of spawning the object for each attempt. This chance + * is applied before the checks for if the placement is valid. This + * value must be between zero and one (inclusive) with a chance of zero + * representing no chance of the object being placed, and a chance of 1 + * representing a 100% chance of the object being placed. + */ + // @ts-ignore + spawnChance(chance: number): org.spongepowered.api.world.gen.populator.RandomObject.Builder; + /** + * Builds a new instance of a {@link RandomBlock} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.RandomObject; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.RandomObject.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.RandomObject.d.ts new file mode 100644 index 00000000..d94f631a --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.RandomObject.d.ts @@ -0,0 +1,78 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface RandomObject extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link RandomObject} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.RandomObject.Builder; + /** + * Gets the number of fires to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + getAttemptsPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of fires to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setAttemptsPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of fires to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setAttemptsPerChunk(count: number): void; + /** + * Gets the height range that the object will be placed within. + */ + // @ts-ignore + getHeightRange(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the height range that the object will be placed within. + */ + // @ts-ignore + setHeightRange(height: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Gets the {@link PopulatorObject} that this populator will attempt to + * place. + */ + // @ts-ignore + getObject(): org.spongepowered.api.world.gen.PopulatorObject; + /** + * Sets the {@link PopulatorObject} for this populator to attempt to place. + */ + // @ts-ignore + setObject(obj: org.spongepowered.api.world.gen.PopulatorObject): void; + /** + * Gets the chance of spawning the object for each attempt. This chance is + * applied before the checks for if the placement is valid. This value must + * be between zero and one (inclusive) with a chance of zero representing no + * chance of the object being placed, and a chance of 1 representing a 100% + * chance of the object being placed. + */ + // @ts-ignore + getSpawnChance(): number; + /** + * Sets the chance of spawning the object for each attempt. This chance is + * applied before the checks for if the placement is valid. This value must + * be between zero and one (inclusive) with a chance of zero representing no + * chance of the object being placed, and a chance of 1 representing a 100% + * chance of the object being placed. + */ + // @ts-ignore + setSpawnChance(chance: number): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Reed.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Reed.Builder.d.ts new file mode 100644 index 00000000..b7252f14 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Reed.Builder.d.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace Reed { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the number of reeds to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Reed.Builder; + /** + * Sets the number of reeds to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: number): org.spongepowered.api.world.gen.populator.Reed.Builder; + /** + * Sets the height of the reeds to generate. + */ + // @ts-ignore + reedHeight(height: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Reed.Builder; + /** + * Builds a new instance of a {@link Reed} populator with the settings + * set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.Reed; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Reed.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Reed.d.ts new file mode 100644 index 00000000..7bd6bcb7 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Reed.d.ts @@ -0,0 +1,49 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface Reed extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link Reed} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.Reed.Builder; + /** + * Gets the number of reeds to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + getReedsPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of reeds to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setReedsPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of reeds to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setReedsPerChunk(count: number): void; + /** + * Gets the height of the reeds to generate. + */ + // @ts-ignore + getReedHeight(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the height of the reeds to generate. + */ + // @ts-ignore + setReedHeight(height: org.spongepowered.api.util.weighted.VariableAmount): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.SeaFloor.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.SeaFloor.Builder.d.ts new file mode 100644 index 00000000..275ab2aa --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.SeaFloor.Builder.d.ts @@ -0,0 +1,68 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace SeaFloor { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the {@link BlockState} to place down. + */ + // @ts-ignore + block(block: org.spongepowered.api.block.BlockState): org.spongepowered.api.world.gen.populator.SeaFloor.Builder; + /** + * Sets the number of discs to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.SeaFloor.Builder; + /** + * Sets the number of discs to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: number): org.spongepowered.api.world.gen.populator.SeaFloor.Builder; + /** + * Sets the radius of the discs being spawned. + */ + // @ts-ignore + radius(radius: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.SeaFloor.Builder; + /** + * Sets the radius of the discs being spawned. + */ + // @ts-ignore + radius(radius: number): org.spongepowered.api.world.gen.populator.SeaFloor.Builder; + /** + * Sets the depth of the sea floor cover to generate. + */ + // @ts-ignore + depth(depth: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.SeaFloor.Builder; + /** + * Sets the depth of the sea floor cover to generate. + */ + // @ts-ignore + depth(depth: number): org.spongepowered.api.world.gen.populator.SeaFloor.Builder; + /** + * Sets the predicate which will be applied to all {@link BlockState}s + * that this populator attempts to replace in order to determine if they + * are valid. + */ + // @ts-ignore + replace(check: java.util.function$.Predicate): org.spongepowered.api.world.gen.populator.SeaFloor.Builder; + /** + * Builds a new instance of a {@link SeaFloor} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.SeaFloor; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.SeaFloor.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.SeaFloor.d.ts new file mode 100644 index 00000000..d7f95b52 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.SeaFloor.d.ts @@ -0,0 +1,92 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface SeaFloor extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link SeaFloor} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.SeaFloor.Builder; + /** + * Gets the {@link BlockState} to place down. + */ + // @ts-ignore + getBlock(): org.spongepowered.api.block.BlockState; + /** + * Sets the {@link BlockState} to place down. + */ + // @ts-ignore + setBlock(block: org.spongepowered.api.block.BlockState): void; + /** + * Gets the number of discs to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + getDiscsPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of discs to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setDiscsPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of discs to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setDiscsPerChunk(count: number): void; + /** + * Gets the radius of the discs being spawned. + */ + // @ts-ignore + getRadius(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the radius of the discs being spawned. + */ + // @ts-ignore + setRadius(radius: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the radius of the discs being spawned. + */ + // @ts-ignore + setRadius(radius: number): void; + /** + * Gets the depth of the sea floor cover to generate. + */ + // @ts-ignore + getDepth(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the depth of the sea floor cover to generate. + */ + // @ts-ignore + setDepth(depth: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the depth of the sea floor cover to generate. + */ + // @ts-ignore + setDepth(depth: number): void; + /** + * Gets the predicate which is applied to determine what {@link BlockState}s + * this populator may replace. + */ + // @ts-ignore + getValidBlocksToReplace(): java.util.function$.Predicate; + /** + * Sets the predicate which will be applied to all {@link BlockState}s that + * this populator attempts to replace in order to determine if they are + * valid. + */ + // @ts-ignore + setValidBlocksToReplace(check: java.util.function$.Predicate): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Shrub.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Shrub.Builder.d.ts new file mode 100644 index 00000000..1d0835be --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Shrub.Builder.d.ts @@ -0,0 +1,52 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace Shrub { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the number of shrubs to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Shrub.Builder; + /** + * Sets the number of shrubs to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + perChunk(count: number): org.spongepowered.api.world.gen.populator.Shrub.Builder; + /** + * Sets the weighted {@link ShrubType}s to place. + */ + // @ts-ignore + types(types: org.spongepowered.api.util.weighted.WeightedTable): org.spongepowered.api.world.gen.populator.Shrub.Builder; + /** + * Adds the weighted {@link ShrubType}s to the list of types. + */ + // @ts-ignore + type(type: org.spongepowered.api.data.type.ShrubType, weight: number): org.spongepowered.api.world.gen.populator.Shrub.Builder; + /** + * Sets the overriding supplier. If the supplier is present then it is + * used in place of the weighted table. + */ + // @ts-ignore + supplier(override: java.util.function$.Function): org.spongepowered.api.world.gen.populator.Shrub.Builder; + /** + * Builds a new instance of a {@link Shrub} populator with the settings + * set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.Shrub; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Shrub.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Shrub.d.ts new file mode 100644 index 00000000..f89d821d --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Shrub.d.ts @@ -0,0 +1,63 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface Shrub extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link Shrub} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.Shrub.Builder; + /** + * Gets a weighted collection of {@link ShrubType}s to place. + */ + // @ts-ignore + getTypes(): org.spongepowered.api.util.weighted.WeightedTable; + /** + * Gets the number of shrubs to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + getShrubsPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of shrubs to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setShrubsPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of shrubs to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setShrubsPerChunk(count: number): void; + /** + * Gets the overriding supplier if it exists. If the supplier is present + * then it is used in place of the weighted table while determining what + * ShrubType to place. + */ + // @ts-ignore + getSupplierOverride(): java.util.Optional; + /** + * Sets the overriding supplier. If the supplier is present then it is used + * in place of the weighted table while determining what ShrubType to place. + */ + // @ts-ignore + setSupplierOverride(override: java.util.function$.Function): void; + /** + * Clears the supplier override to force the weighted table to be used + * instead. + */ + // @ts-ignore + clearSupplierOverride(): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Vine.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Vine.Builder.d.ts new file mode 100644 index 00000000..db5dbc83 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Vine.Builder.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace Vine { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the number of vines to attempt to spawn per chunk. + */ + // @ts-ignore + perChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.Vine.Builder; + /** + * Sets the number of vines to attempt to spawn per chunk. + */ + // @ts-ignore + perChunk(count: number): org.spongepowered.api.world.gen.populator.Vine.Builder; + /** + * Builds a new instance of a {@link Vine} populator with the settings + * set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.Vine; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Vine.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Vine.d.ts new file mode 100644 index 00000000..60ed9e76 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.Vine.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface Vine extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link Vine} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.Vine.Builder; + /** + * Gets the number of vines to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + getVinesPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of vines to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setVinesPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of vines to attempt to spawn per chunk, must be greater + * than zero. + */ + // @ts-ignore + setVinesPerChunk(count: number): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.WaterLily.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.WaterLily.Builder.d.ts new file mode 100644 index 00000000..c3656014 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.WaterLily.Builder.d.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + namespace WaterLily { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Sets the number of water lilies to attempt to spawn per chunk, must + * be greater than zero. + */ + // @ts-ignore + perChunk(count: org.spongepowered.api.util.weighted.VariableAmount): org.spongepowered.api.world.gen.populator.WaterLily.Builder; + /** + * Sets the number of water lilies to attempt to spawn per chunk, must + * be greater than zero. + */ + // @ts-ignore + perChunk(count: number): org.spongepowered.api.world.gen.populator.WaterLily.Builder; + /** + * Builds a new instance of a {@link WaterLily} populator with the + * settings set within the builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.gen.populator.WaterLily; + } + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.WaterLily.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.WaterLily.d.ts new file mode 100644 index 00000000..e8195962 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.populator.WaterLily.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace populator { + // @ts-ignore + interface WaterLily extends org.spongepowered.api.world.gen.Populator { + /** + * Creates a new {@link Builder} to build a {@link WaterLily} populator. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.gen.populator.WaterLily.Builder; + /** + * Gets the number of water lilies to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + getWaterLilyPerChunk(): org.spongepowered.api.util.weighted.VariableAmount; + /** + * Sets the number of water lilies to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + setWaterLilyPerChunk(count: org.spongepowered.api.util.weighted.VariableAmount): void; + /** + * Sets the number of water lilies to attempt to spawn per chunk, must be + * greater than zero. + */ + // @ts-ignore + setWaterLilyPerChunk(count: number): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.type.BiomeTreeType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.type.BiomeTreeType.d.ts new file mode 100644 index 00000000..4187f4f5 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.type.BiomeTreeType.d.ts @@ -0,0 +1,45 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace type { + // @ts-ignore + interface BiomeTreeType extends org.spongepowered.api.CatalogType { + /** + * Gets the {@link PopulatorObject} which is used to generate this tree into + * the world. + */ + // @ts-ignore + getPopulatorObject(): org.spongepowered.api.world.gen.PopulatorObject; + /** + * Sets the {@link PopulatorObject} which is used to generate this tree into + * the world. + */ + // @ts-ignore + setPopulatorObject(object: org.spongepowered.api.world.gen.PopulatorObject): void; + /** + * Gets whether this tree type has a larger equivalent. + */ + // @ts-ignore + hasLargeEquivalent(): boolean; + /** + * Gets the {@link PopulatorObject} which is used to generate the larger + * equivalent of this tree into the world. + */ + // @ts-ignore + getLargePopulatorObject(): java.util.Optional; + /** + * Sets the {@link PopulatorObject} which is used to generate the larger + * equivalent of this tree into the world. + */ + // @ts-ignore + setLargePopulatorObject(object: org.spongepowered.api.world.gen.PopulatorObject): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.type.BiomeTreeTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.type.BiomeTreeTypes.d.ts new file mode 100644 index 00000000..2ea24cd1 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.type.BiomeTreeTypes.d.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace type { + // @ts-ignore + class BiomeTreeTypes extends java.lang.Object { + // @ts-ignore + public static BIRCH: org.spongepowered.api.world.gen.type.BiomeTreeType; + // @ts-ignore + public static CANOPY: org.spongepowered.api.world.gen.type.BiomeTreeType; + // @ts-ignore + public static JUNGLE: org.spongepowered.api.world.gen.type.BiomeTreeType; + // @ts-ignore + public static JUNGLE_BUSH: org.spongepowered.api.world.gen.type.BiomeTreeType; + // @ts-ignore + public static OAK: org.spongepowered.api.world.gen.type.BiomeTreeType; + // @ts-ignore + public static POINTY_TAIGA: org.spongepowered.api.world.gen.type.BiomeTreeType; + // @ts-ignore + public static SAVANNA: org.spongepowered.api.world.gen.type.BiomeTreeType; + // @ts-ignore + public static SWAMP: org.spongepowered.api.world.gen.type.BiomeTreeType; + // @ts-ignore + public static TALL_TAIGA: org.spongepowered.api.world.gen.type.BiomeTreeType; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.type.MushroomType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.type.MushroomType.d.ts new file mode 100644 index 00000000..440f2f32 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.type.MushroomType.d.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace type { + // @ts-ignore + interface MushroomType extends org.spongepowered.api.CatalogType { + /** + * Gets the {@link PopulatorObject} which is used to generate the large + * variant of this mushroom into the world. + */ + // @ts-ignore + getPopulatorObject(): org.spongepowered.api.world.gen.PopulatorObject; + /** + * Sets the {@link PopulatorObject} which is used to generate the large + * variant of this mushroom into the world. + */ + // @ts-ignore + setPopulatorObject(object: org.spongepowered.api.world.gen.PopulatorObject): void; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.type.MushroomTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.type.MushroomTypes.d.ts new file mode 100644 index 00000000..7bd251f4 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.gen.type.MushroomTypes.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace gen { + namespace type { + // @ts-ignore + class MushroomTypes extends java.lang.Object { + // @ts-ignore + public static BROWN: org.spongepowered.api.world.gen.type.MushroomType; + // @ts-ignore + public static RED: org.spongepowered.api.world.gen.type.MushroomType; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.schematic.BlockPalette.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.schematic.BlockPalette.d.ts new file mode 100644 index 00000000..ed0c61c6 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.schematic.BlockPalette.d.ts @@ -0,0 +1,54 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace schematic { + // @ts-ignore + interface BlockPalette extends org.spongepowered.api.world.schematic.Palette { + /** + * Gets the type of this palette. + */ + // @ts-ignore + getType(): org.spongepowered.api.world.schematic.BlockPaletteType; + /** + * Gets the highest identifier in this palette. + */ + // @ts-ignore + getHighestId(): number; + /** + * Gets the blockstate represented by the given identifier from the mapping. + */ + // @ts-ignore + get(id: number): java.util.Optional; + /** + * Gets the identifier for the given blockstate if it exists within the + * mapping. + */ + // @ts-ignore + get(state: org.spongepowered.api.block.BlockState): java.util.Optional; + /** + * Gets the identifier for the given blockstate from the mapping. If the + * blockstate is not yet registered in the mapping then it is registered and + * given the next available identifier. + */ + // @ts-ignore + getOrAssign(state: org.spongepowered.api.block.BlockState): number; + /** + * Removes the given blockstate from the mapping. + *

If this palette is the {@link BlockPaletteTypes#GLOBAL} palette then + * removal is not supported.

+ */ + // @ts-ignore + remove(state: org.spongepowered.api.block.BlockState): boolean; + /** + * Gets all {@link BlockState}s contained in this palette. + */ + // @ts-ignore + getEntries(): java.util.Collection; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.schematic.BlockPaletteType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.schematic.BlockPaletteType.d.ts new file mode 100644 index 00000000..d03836bd --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.schematic.BlockPaletteType.d.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace schematic { + // @ts-ignore + interface BlockPaletteType extends org.spongepowered.api.CatalogType, org.spongepowered.api.world.schematic.PaletteType { + /** + * Gets an instance of this palette type. + *

If this is the global type then the global palette instance will be + * returned, otherwise a new instance will be created.

+ */ + // @ts-ignore + create(): org.spongepowered.api.world.schematic.BlockPalette; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.schematic.BlockPaletteTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.schematic.BlockPaletteTypes.d.ts new file mode 100644 index 00000000..dc36c0b2 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.schematic.BlockPaletteTypes.d.ts @@ -0,0 +1,18 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace schematic { + // @ts-ignore + class BlockPaletteTypes extends java.lang.Object { + // @ts-ignore + public static GLOBAL: org.spongepowered.api.world.schematic.BlockPaletteType; + // @ts-ignore + public static LOCAL: org.spongepowered.api.world.schematic.BlockPaletteType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.schematic.Palette.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.schematic.Palette.d.ts new file mode 100644 index 00000000..6a0160c3 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.schematic.Palette.d.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace schematic { + // @ts-ignore + interface Palette { + /** + * Gets the type of this palette. + */ + // @ts-ignore + getType(): org.spongepowered.api.world.schematic.PaletteType; + /** + * Gets the highest identifier in this palette. + */ + // @ts-ignore + getHighestId(): number; + /** + * Gets the {@code type} represented by the given identifier from the mapping. + */ + // @ts-ignore + get(id: number): java.util.Optional; + /** + * Gets the identifier for the given {@code type T} if it exists within the + * mapping. + */ + // @ts-ignore + get(type: org.spongepowered.api.CatalogType): java.util.Optional; + /** + * Gets the identifier for the given {@code type T} from the mapping. If the + * {@code type T} is not yet registered in the mapping then it is registered and + * given the next available identifier. + */ + // @ts-ignore + getOrAssign(type: org.spongepowered.api.CatalogType): number; + /** + * Removes the given {@code type T} from the mapping. + *

Note that if this palette is considered a global palette, removal is not supported.

+ */ + // @ts-ignore + remove(type: org.spongepowered.api.CatalogType): boolean; + /** + * Gets all {@code type T}s contained in this palette. + */ + // @ts-ignore + getEntries(): java.util.Collection; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.schematic.PaletteType.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.schematic.PaletteType.d.ts new file mode 100644 index 00000000..bc87a34e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.schematic.PaletteType.d.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace schematic { + // @ts-ignore + interface PaletteType extends org.spongepowered.api.CatalogType { + // @ts-ignore + create(): org.spongepowered.api.world.schematic.Palette; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.schematic.PaletteTypes.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.schematic.PaletteTypes.d.ts new file mode 100644 index 00000000..764acd98 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.schematic.PaletteTypes.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace schematic { + // @ts-ignore + class PaletteTypes extends java.lang.Object { + // @ts-ignore + constructor() + // @ts-ignore + public static GLOBAL_BLOCKS: org.spongepowered.api.world.schematic.PaletteType; + // @ts-ignore + public static LOCAL_BLOCKS: org.spongepowered.api.world.schematic.PaletteType; + // @ts-ignore + public static LOCAL_BIOMES: org.spongepowered.api.world.schematic.PaletteType; + // @ts-ignore + public static GLOBAL_BIOMES: org.spongepowered.api.world.schematic.PaletteType; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.schematic.Schematic.Builder.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.schematic.Schematic.Builder.d.ts new file mode 100644 index 00000000..8383ca39 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.schematic.Schematic.Builder.d.ts @@ -0,0 +1,93 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace schematic { + namespace Schematic { + // @ts-ignore + interface Builder extends org.spongepowered.api.util.ResettableBuilder { + /** + * Specifies an archetype volume for the world data of the schematic. + *

If purely creating a schematic it is recommended to instead use + * the {@link #volume(Extent)} method and pass in an extent view (See + * {@link Extent#getExtentView}) of the volume to prevent creating + * multiple copies of the world data. Likewise, if {@link BiomeType}s + * are needed to be copied, only {@link #volume(Extent)} will support + * copying the {@link BiomeType}s at the desired positions. This also + * has the same limit for capturing {@link EntityArchetype}s, unless + * otherwise manually placed in with {@link #entity(EntityArchetype)}. + *

+ */ + // @ts-ignore + volume(volume: org.spongepowered.api.world.extent.ArchetypeVolume): org.spongepowered.api.world.schematic.Schematic.Builder; + /** + * Specifies an extent view for the schematic to load its world data + * from. + */ + // @ts-ignore + volume(volume: org.spongepowered.api.world.extent.Extent): org.spongepowered.api.world.schematic.Schematic.Builder; + /** + * Specifies a palette for the schematic to use for serialization. This + * overrides the {@link #paletteType} value. + */ + // @ts-ignore + palette(palette: org.spongepowered.api.world.schematic.BlockPalette): org.spongepowered.api.world.schematic.Schematic.Builder; + /** + * Specifies a palette for the schematic to use for serialization. This + * overrides the {@link #paletteType} value. + */ + // @ts-ignore + blockPalette(palette: org.spongepowered.api.world.schematic.Palette): org.spongepowered.api.world.schematic.Schematic.Builder; + /** + * Specifies a palette for the schemtic to use for serialization. + */ + // @ts-ignore + biomePalette(palette: org.spongepowered.api.world.schematic.Palette): org.spongepowered.api.world.schematic.Schematic.Builder; + /** + * Specifies the palette type to use if the {@link #palette} is not + * specified. + */ + // @ts-ignore + paletteType(type: org.spongepowered.api.world.schematic.BlockPaletteType): org.spongepowered.api.world.schematic.Schematic.Builder; + /** + * Specifies the palette type to use if the {@link #palette} is not + * specified. + */ + // @ts-ignore + blockPaletteType(type: org.spongepowered.api.world.schematic.PaletteType): org.spongepowered.api.world.schematic.Schematic.Builder; + /** + * Specifies the palette type to use for biomes if the {@link #biomePalette(Palette)} + * is not specified. + */ + // @ts-ignore + biomePaletteType(type: org.spongepowered.api.world.schematic.PaletteType): org.spongepowered.api.world.schematic.Schematic.Builder; + // @ts-ignore + entity(entityArchetype: org.spongepowered.api.entity.EntityArchetype): org.spongepowered.api.world.schematic.Schematic.Builder; + // @ts-ignore + entity(entityArchetype: org.spongepowered.api.entity.EntityArchetype, position: any /*Vector3d*/): org.spongepowered.api.world.schematic.Schematic.Builder; + // @ts-ignore + entities(entities: java.util.Collection): org.spongepowered.api.world.schematic.Schematic.Builder; + /** + * Specifies the metadata container. + */ + // @ts-ignore + metadata(metadata: org.spongepowered.api.data.DataView): org.spongepowered.api.world.schematic.Schematic.Builder; + /** + * Specifies a metadata value which will be included in the metadata of + * the schematic. + */ + // @ts-ignore + metaValue(key: string, value: java.lang.Object): org.spongepowered.api.world.schematic.Schematic.Builder; + /** + * Constructs a new {@link Schematic} from this builder. + */ + // @ts-ignore + build(): org.spongepowered.api.world.schematic.Schematic; + } + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.schematic.Schematic.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.schematic.Schematic.d.ts new file mode 100644 index 00000000..df9cae77 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.schematic.Schematic.d.ts @@ -0,0 +1,61 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace schematic { + // @ts-ignore + interface Schematic extends org.spongepowered.api.world.extent.ArchetypeVolume { + // @ts-ignore + METADATA_NAME: string; + // @ts-ignore + METADATA_AUTHOR: string; + // @ts-ignore + METADATA_DATE: string; + // @ts-ignore + METADATA_REQUIRED_MODS: string; + /** + * Gets a new builder for schematics. + */ + // @ts-ignore + builder(): org.spongepowered.api.world.schematic.Schematic.Builder; + /** + * Gets the {@link BlockPalette} used by this schematic for serialization. + */ + // @ts-ignore + getPalette(): org.spongepowered.api.world.schematic.BlockPalette; + /** + * Gets the {@link BlockPalette} used by this schematic for serialization. + */ + // @ts-ignore + getBlockPalette(): org.spongepowered.api.world.schematic.Palette; + /** + * Gets the {@link Palette Palette} used by this schematic for serialization. + */ + // @ts-ignore + getBiomePalette(): org.spongepowered.api.world.schematic.Palette; + /** + * Gets any additional metadata attached to this schematic. + */ + // @ts-ignore + getMetadata(): org.spongepowered.api.data.DataView; + // @ts-ignore + getBlockWorker(): org.spongepowered.api.world.extent.worker.MutableBlockVolumeWorker; + /** + * Gets the {@link MutableBiomeVolume} of this schematic. As biomes are + * {@link Optional optionally} included and not required, they may be + * optionally excluded. If the schematic would contain them, they will be + * present during deserialization via {@link DataTranslator}. + */ + // @ts-ignore + getBiomes(): java.util.Optional; + // @ts-ignore + getEntitiesByPosition(): any; + // @ts-ignore + getEntityArchetypes(): java.util.Collection; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.storage.ChunkDataStream.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.storage.ChunkDataStream.d.ts new file mode 100644 index 00000000..efe96763 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.storage.ChunkDataStream.d.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace storage { + // @ts-ignore + interface ChunkDataStream { + /** + * Gets the next {@link Chunk} represented by a read only + * {@link DataContainer}. + *

This method BLOCKS the thread until the next available data has been + * read.

+ *

This may not return a {@link DataContainer} in the event there is no + * chunk data available to read.

+ */ + // @ts-ignore + next(): org.spongepowered.api.data.DataContainer; + /** + * Checks if there is an available chunk to represent. + */ + // @ts-ignore + hasNext(): boolean; + /** + * Gets the number of chunks available to read as {@link DataContainer}s. + */ + // @ts-ignore + available(): number; + /** + * Resets this stream to read from the beginning of the collection of + * chunks. + */ + // @ts-ignore + reset(): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.storage.ChunkLayout.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.storage.ChunkLayout.d.ts new file mode 100644 index 00000000..a5d377f9 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.storage.ChunkLayout.d.ts @@ -0,0 +1,173 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace storage { + // @ts-ignore + interface ChunkLayout { + /** + * Returns the size of the chunks in blocks. The axes are matched to the + * corresponding vector components. + */ + // @ts-ignore + getChunkSize(): any /*Vector3i*/; + /** + * Returns the maximum coordinates for chunks for each axis. The axes are + * matched to the corresponding vector components. Due to the limited + * precision of 32bit integers, there always is a practical limit. + */ + // @ts-ignore + getSpaceMax(): any /*Vector3i*/; + /** + * Returns the minimum coordinates for chunks for each axis. The axes are + * matched to the corresponding vector components. Due to the limited + * precision of 32bit integers, there always is a practical limit. + */ + // @ts-ignore + getSpaceMin(): any /*Vector3i*/; + /** + * Gets the total size of the chunk space, which is equivalent to + * {@link #getSpaceMax()} - {@link #getSpaceMin()} + 1. + */ + // @ts-ignore + getSpaceSize(): any /*Vector3i*/; + /** + * Returns the origin of the chunk coordinate space. Normally + * {@link Vector3i#ZERO}. + */ + // @ts-ignore + getSpaceOrigin(): any /*Vector3i*/; + /** + * Returns true if the coordinates are valid chunk coordinates. False if + * otherwise. + */ + // @ts-ignore + isValidChunk(coords: any /*Vector3i*/): boolean; + /** + * Returns true if the coordinates are valid chunk coordinates. False if + * otherwise. + */ + // @ts-ignore + isValidChunk(x: number, y: number, z: number): boolean; + /** + * Returns true if the local coordinates fit in a chunk. That is they are + * positive and smaller than the chunk's size. + */ + // @ts-ignore + isInChunk(localCoords: any /*Vector3i*/): boolean; + /** + * Returns true if the local coordinates fit in a chunk. That is they are + * positive and smaller than the chunk's size. + */ + // @ts-ignore + isInChunk(x: number, y: number, z: number): boolean; + /** + * Returns true if the world coordinates fit in the chunk at the given + * coordinates. + */ + // @ts-ignore + isInChunk(worldCoords: any /*Vector3i*/, chunkCoords: any /*Vector3i*/): boolean; + /** + * Returns true if the world coordinates fit in the chunk at the given + * coordinates. + */ + // @ts-ignore + isInChunk(wx: number, wy: number, wz: number, cx: number, cy: number, cz: number): boolean; + /** + * Converts world coordinates to chunk coordinates. Returns nothing if the + * conversion failed because the resulting chunk coordinates aren't valid. + */ + // @ts-ignore + toChunk(worldCoords: any /*Vector3i*/): java.util.Optional; + /** + * Converts world coordinates to chunk coordinates. Returns nothing if the + * conversion failed because the resulting chunk coordinates aren't valid. + */ + // @ts-ignore + toChunk(x: number, y: number, z: number): java.util.Optional; + /** + * Converts chunk coordinates to world coordinates. Returns nothing if the + * conversion failed because the given chunk coordinates aren't valid. + */ + // @ts-ignore + toWorld(chunkCoords: any /*Vector3i*/): java.util.Optional; + /** + * Converts chunk coordinates to world coordinates. Returns nothing if the + * conversion failed because the given chunk coordinates aren't valid. + */ + // @ts-ignore + toWorld(x: number, y: number, z: number): java.util.Optional; + /** + * Converts world coordinates to chunk coordinates. This method never fails + * and can returns invalid chunk coordinates. + */ + // @ts-ignore + forceToChunk(worldCoords: any /*Vector3i*/): any /*Vector3i*/; + /** + * Converts world coordinates to chunk coordinates. This method never fails + * and can returns invalid chunk coordinates. + */ + // @ts-ignore + forceToChunk(x: number, y: number, z: number): any /*Vector3i*/; + /** + * Converts chunk coordinates to world coordinates. This method never fails + * and can returns invalid world coordinates. + */ + // @ts-ignore + forceToWorld(chunkCoords: any /*Vector3i*/): any /*Vector3i*/; + /** + * Converts chunk coordinates to world coordinates. This method never fails + * and can returns invalid world coordinates. + */ + // @ts-ignore + forceToWorld(x: number, y: number, z: number): any /*Vector3i*/; + /** + * Adds the chunk offset to the chunk coordinates. Returns nothing if the + * new coordinates are not valid. + */ + // @ts-ignore + addToChunk(chunkCoords: any /*Vector3i*/, chunkOffset: any /*Vector3i*/): java.util.Optional; + /** + * Adds the chunk offset to the chunk coordinates. Returns nothing if the + * new coordinates are not valid. + */ + // @ts-ignore + addToChunk(cx: number, cy: number, cz: number, ox: number, oy: number, oz: number): java.util.Optional; + /** + * Moves chunk coordinates one step in the given direction. Returns nothing + * if the new coordinates are not valid. {@link Division#SECONDARY_ORDINAL} + * directions are not a valid argument. These will throw an exception. + */ + // @ts-ignore + moveToChunk(chunkCoords: any /*Vector3i*/, direction: org.spongepowered.api.util.Direction): java.util.Optional; + /** + * Moves chunk coordinates one step in the given direction. Returns nothing + * if the new coordinates are not valid. + * {@link Division#SECONDARY_ORDINAL} directions are not a valid + * argument. These will throw an exception. + */ + // @ts-ignore + moveToChunk(x: number, y: number, z: number, direction: org.spongepowered.api.util.Direction): java.util.Optional; + /** + * Moves chunk coordinates a number of steps in the given direction. Returns + * nothing if the new coordinates are not valid. + * {@link Division#SECONDARY_ORDINAL} directions are not a valid + * argument. These will throw an exception. + */ + // @ts-ignore + moveToChunk(chunkCoords: any /*Vector3i*/, direction: org.spongepowered.api.util.Direction, steps: number): java.util.Optional; + /** + * Moves chunk coordinates a number of steps in the given direction. Returns + * nothing if the new coordinates are not valid. + * {@link Division#SECONDARY_ORDINAL} directions are not a valid + * argument. These will throw an exception. + */ + // @ts-ignore + moveToChunk(x: number, y: number, z: number, direction: org.spongepowered.api.util.Direction, steps: number): java.util.Optional; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.storage.WorldProperties.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.storage.WorldProperties.d.ts new file mode 100644 index 00000000..8a9c12c8 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.storage.WorldProperties.d.ts @@ -0,0 +1,432 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace storage { + // @ts-ignore + interface WorldProperties extends org.spongepowered.api.data.DataSerializable { + /** + * Gets whether this world has been initialized. + */ + // @ts-ignore + isInitialized(): boolean; + /** + * Gets the name of this world. + */ + // @ts-ignore + getWorldName(): string; + /** + * Gets the {@link UUID} of the world. + */ + // @ts-ignore + getUniqueId(): java.util.UUID; + /** + * Gets whether this world is enabled. A world which is enabled but unloaded + * may be loaded automatically if an attempt is made to transfer an entity + * to the world using {@link Entity#transferToWorld} . + */ + // @ts-ignore + isEnabled(): boolean; + /** + * Sets this world as enabled. A world which is enabled but unloaded may be + * loaded automatically if an attempt is made to transfer an entity to the + * world using {@link Entity#transferToWorld} . + */ + // @ts-ignore + setEnabled(state: boolean): void; + /** + * Gets whether this world will load when the server starts up. + */ + // @ts-ignore + loadOnStartup(): boolean; + /** + * Sets whether this world should load when the server starts up. + */ + // @ts-ignore + setLoadOnStartup(state: boolean): void; + /** + * Gets whether spawn chunks of this world remain loaded when no players are + * present. + */ + // @ts-ignore + doesKeepSpawnLoaded(): boolean; + /** + * Sets whether the spawn chunks of the world should remain loaded when no + * players are present. + */ + // @ts-ignore + setKeepSpawnLoaded(state: boolean): void; + /** + * Gets whether spawn chunks of this world will generate on load. + */ + // @ts-ignore + doesGenerateSpawnOnLoad(): boolean; + /** + * Sets whether the spawn chunks of the world will generate on load. + */ + // @ts-ignore + setGenerateSpawnOnLoad(state: boolean): void; + /** + * Gets the default spawn position of this world. + */ + // @ts-ignore + getSpawnPosition(): any /*Vector3i*/; + /** + * Sets the default spawn position of this world. + */ + // @ts-ignore + setSpawnPosition(position: any /*Vector3i*/): void; + /** + * Gets the {@link GeneratorType} of this world. + */ + // @ts-ignore + getGeneratorType(): org.spongepowered.api.world.GeneratorType; + /** + * Sets the {@link GeneratorType} of this world. + */ + // @ts-ignore + setGeneratorType(type: org.spongepowered.api.world.GeneratorType): void; + /** + * Gets the seed of this world. + */ + // @ts-ignore + getSeed(): number; + /** + * Sets the seed of this world. + *

Warning: this may cause the edge of currently generated chunks to no + * longer align with newly generated chunks.

+ */ + // @ts-ignore + setSeed(seed: number): void; + /** + * Gets the number of ticks which have occurred since the world was created. + */ + // @ts-ignore + getTotalTime(): number; + /** + * Gets the time of day, in ticks. The total number of ticks in a day is + * 24000, however this value does not reset to zero at the start of each day + * but rather keeps counting passed 24000. + */ + // @ts-ignore + getWorldTime(): number; + /** + * Sets the time of day, in ticks. The total number of ticks in a day is + * 24000, however this value does not reset to zero at the start of each day + * but rather keeps counting passed 24000. + */ + // @ts-ignore + setWorldTime(time: number): void; + /** + * Gets the {@link DimensionType} of this world. + */ + // @ts-ignore + getDimensionType(): org.spongepowered.api.world.DimensionType; + /** + * Gets the {@link PortalAgentType} for the world. + */ + // @ts-ignore + getPortalAgentType(): org.spongepowered.api.world.PortalAgentType; + /** + * Gets whether PVP combat is enabled in this world. + */ + // @ts-ignore + isPVPEnabled(): boolean; + /** + * Sets whether PVP combat is enabled in this world. + */ + // @ts-ignore + setPVPEnabled(enabled: boolean): void; + /** + * Gets whether this world is currently experiencing rain/snow/cloud-cover + * (depending on the biome of a specific location). + */ + // @ts-ignore + isRaining(): boolean; + /** + * Sets whether this world is currently experiencing rain/snow/cloud-cover + * (depending on the biome of a specific location). + */ + // @ts-ignore + setRaining(state: boolean): void; + /** + * Gets the number of ticks until the weather is next toggled to a new + * random value. + */ + // @ts-ignore + getRainTime(): number; + /** + * Sets the number of ticks until the weather is next toggled to a new + * random value. + */ + // @ts-ignore + setRainTime(time: number): void; + /** + * Gets whether this world is currently experiencing a lightning storm. + */ + // @ts-ignore + isThundering(): boolean; + /** + * Sets whether this world is currently experiencing a lightning storm. + */ + // @ts-ignore + setThundering(state: boolean): void; + /** + * Gets the number of ticks until the {@link #isThundering()} state is + * toggled to a new random value. + */ + // @ts-ignore + getThunderTime(): number; + /** + * Sets the number of ticks until the {@link #isThundering()} state is + * toggled to a new random value. + */ + // @ts-ignore + setThunderTime(time: number): void; + /** + * Gets the default {@link GameMode} of this world. + */ + // @ts-ignore + getGameMode(): org.spongepowered.api.entity.living.player.gamemode.GameMode; + /** + * Sets the default {@link GameMode} of this world. + */ + // @ts-ignore + setGameMode(gamemode: org.spongepowered.api.entity.living.player.gamemode.GameMode): void; + /** + * Gets whether this world will generate map features such as villages and + * strongholds. + */ + // @ts-ignore + usesMapFeatures(): boolean; + /** + * Sets whether this world will generate map features such as villages and + * strongholds. + */ + // @ts-ignore + setMapFeaturesEnabled(state: boolean): void; + /** + * Gets whether this world is set to hardcore mode. + */ + // @ts-ignore + isHardcore(): boolean; + /** + * Sets whether this world is set to hardcore mode. + */ + // @ts-ignore + setHardcore(state: boolean): void; + /** + * Gets whether commands are allowed within this world. May not be respected + * when not in single player. + */ + // @ts-ignore + areCommandsAllowed(): boolean; + /** + * Sets whether commands are allowed within this world. May not be respected + * when not in single player. + */ + // @ts-ignore + setCommandsAllowed(state: boolean): void; + /** + * Gets the difficulty of this world. + */ + // @ts-ignore + getDifficulty(): org.spongepowered.api.world.difficulty.Difficulty; + /** + * Sets the difficulty of this world. + */ + // @ts-ignore + setDifficulty(difficulty: org.spongepowered.api.world.difficulty.Difficulty): void; + /** + * Gets whether the bonus chest should be generated. + *

This only applies on the initial load of the {@link World} + * created via this properties.

+ */ + // @ts-ignore + doesGenerateBonusChest(): boolean; + /** + * Gets the center of the world border. + *

The returned position is three-dimensional. As the world border + * extends over the entire y-axis, the returned position will always have a + * {@code y} set to 0.

+ */ + // @ts-ignore + getWorldBorderCenter(): any /*Vector3d*/; + /** + * Sets the center of the world border. + */ + // @ts-ignore + setWorldBorderCenter(x: number, z: number): void; + /** + * Gets the diameter of the world border. + *

The returned diameter applies to the x and z axis. The world border + * extends over the entire y-axis.

+ */ + // @ts-ignore + getWorldBorderDiameter(): number; + /** + * Sets the diameter of the world border. + *

The specified diameter applies to the x and z axis. The world border + * extends over the entire y-axis.

+ */ + // @ts-ignore + setWorldBorderDiameter(diameter: number): void; + /** + * Gets the time remaining until the world border stops expanding or + * contracting. + */ + // @ts-ignore + getWorldBorderTimeRemaining(): number; + /** + * Sets the time remaining until the world border stops expanding or + * contracting. + */ + // @ts-ignore + setWorldBorderTimeRemaining(time: number): void; + /** + * Gets the diameter the world border is expanding or contracting to. + *

This will return the same value as {@link #getWorldBorderDiameter} + * unless {@link #getWorldBorderTimeRemaining} is greater than 0.

+ */ + // @ts-ignore + getWorldBorderTargetDiameter(): number; + /** + * Sets the target diameter of the world border. + *

The world border diameter increases/decrease linearly over time + * specified in {@link #getWorldBorderTimeRemaining()}. The specified + * diameter applies to the x and z axis. The world border extends over the + * entire y-axis.

+ */ + // @ts-ignore + setWorldBorderTargetDiameter(diameter: number): void; + /** + * Gets the distance a player may be outside the world border before taking + * damage. + */ + // @ts-ignore + getWorldBorderDamageThreshold(): number; + /** + * Sets the distance a player may be be outside the world border before + * taking damage. + */ + // @ts-ignore + setWorldBorderDamageThreshold(distance: number): void; + /** + * Gets the damage done to a player per block per tick when outside the + * buffer. + */ + // @ts-ignore + getWorldBorderDamageAmount(): number; + /** + * Sets the damage done to a player per block per tick when outside the + * buffer. + */ + // @ts-ignore + setWorldBorderDamageAmount(damage: number): void; + /** + * Gets the time when a contracting world border will warn a player for whom + * the world border will reach in {@code time} seconds. + *

In Minecraft, the warning is displayed in the form of a reddish + * tint.

+ */ + // @ts-ignore + getWorldBorderWarningTime(): number; + /** + * Sets the time when a contracting world border will warn a player for whom + * the world border will reach in {@code time} seconds. + *

In Minecraft, the warning is displayed in the form of a reddish + * tint.

+ */ + // @ts-ignore + setWorldBorderWarningTime(time: number): void; + /** + * Gets the distance when a contracting world border will warn a player for + * whom the world border is {@code distance} blocks away. + *

In Minecraft, the warning is displayed in the form of a reddish + * tint.

+ */ + // @ts-ignore + getWorldBorderWarningDistance(): number; + /** + * Sets the distance when a contracting world border will warn a player for + * whom the world border is {@code distance} blocks away. + *

In Minecraft, the warning is displayed in the form of a reddish + * tint.

+ */ + // @ts-ignore + setWorldBorderWarningDistance(distance: number): void; + /** + * Gets the specified GameRule value. + */ + // @ts-ignore + getGameRule(gameRule: string): java.util.Optional; + /** + * Gets a map of the currently set game rules and their values. + */ + // @ts-ignore + getGameRules(): java.util.Map; + /** + * Sets the specified GameRule value. If one with this name does not exist, + * it will be created. + */ + // @ts-ignore + setGameRule(gameRule: string, value: string): void; + /** + * Removes custom GameRule. + */ + // @ts-ignore + removeGameRule(gameRule: string): boolean; + /** + * Gets a {@link DataContainer} containing any additional properties for + * this world. The returned data is a snapshot of the data and is not live. + */ + // @ts-ignore + getAdditionalProperties(): org.spongepowered.api.data.DataContainer; + /** + * Gets a section of the additional properties returned by + * {@link #getAdditionalProperties()}. The returned data is a snapshot of + * the data and is not live. + */ + // @ts-ignore + getPropertySection(path: org.spongepowered.api.data.DataQuery): java.util.Optional; + /** + * Sets a path within the additional data to the given {@link DataView}. If + * you are using this to store data related to your mod/plugin is is HIGHLY + * recommended that the identifier you pass in be your mod/plugin id. + */ + // @ts-ignore + setPropertySection(path: org.spongepowered.api.data.DataQuery, data: org.spongepowered.api.data.DataView): void; + /** + * Gets an immutable collection of the world generator modifiers currently + * in use. + */ + // @ts-ignore + getGeneratorModifiers(): java.util.Collection; + /** + * Sets the given world generator modifiers to be used. + */ + // @ts-ignore + setGeneratorModifiers(modifiers: java.util.Collection): void; + /** + * Gets the generator settings. These can be used by the generator type + * and/or by the generator modifiers. + */ + // @ts-ignore + getGeneratorSettings(): org.spongepowered.api.data.DataContainer; + /** + * Gets the {@link SerializationBehavior} in use. + */ + // @ts-ignore + getSerializationBehavior(): org.spongepowered.api.world.SerializationBehavior; + /** + * Sets the {@link SerializationBehavior} for use. + */ + // @ts-ignore + setSerializationBehavior(behavior: org.spongepowered.api.world.SerializationBehavior): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.storage.WorldStorage.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.storage.WorldStorage.d.ts new file mode 100644 index 00000000..ec40e44e --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.storage.WorldStorage.d.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace storage { + // @ts-ignore + interface WorldStorage { + /** + * Gets a {@link ChunkDataStream}. + *

Usage of a {@link ChunkDataStream} should be limited to asynchronous + * tasks to avoid hanging the main thread.

+ */ + // @ts-ignore + getGeneratedChunks(): org.spongepowered.api.world.storage.ChunkDataStream; + /** + * Checks if the given chunk coordinates represented by {@link Vector3i} + * exist in the world. + *

Note that this is an asynchronous check as the storage of chunks can + * not be guaranteed to remain in sync with the server, let alone on the + * server thread.

+ *

It is imperative to understand that the {@link CompletableFuture} task + * is blocking, and should avoid using {@link CompletableFuture#get()} while + * on the main thread.

+ */ + // @ts-ignore + doesChunkExist(chunkCoords: any /*Vector3i*/): java.util.concurrent.CompletableFuture; + /** + * Gets a {@link DataContainer} including all data related to a + * {@link Chunk}. + *

The container is a read only instance of the data, and therefor should + * not be considered as mutable data. Changes are NOT saved, and the data + * may not be in sync with the server if the chunk is currently loaded.

+ *

This may not return a {@link DataContainer} in the event there is no + * chunk data generated at the desired coordinates.

+ *

It is imperative to understand that the {@link CompletableFuture} task + * is blocking, and should avoid using {@link CompletableFuture#get()} while + * on the main thread.

+ */ + // @ts-ignore + getChunkData(chunkCoords: any /*Vector3i*/): java.util.concurrent.CompletableFuture; + /** + * Gets the {@link WorldProperties} of this storage. In the vanilla storage + * medium this represents the data available in the level.dat file. + */ + // @ts-ignore + getWorldProperties(): org.spongepowered.api.world.storage.WorldProperties; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.teleport.TeleportHelperFilter.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.teleport.TeleportHelperFilter.d.ts new file mode 100644 index 00000000..986bcb01 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.teleport.TeleportHelperFilter.d.ts @@ -0,0 +1,59 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace teleport { + // @ts-ignore + interface TeleportHelperFilter extends org.spongepowered.api.CatalogType { + /** + * Tests whether the location in question is valid, regardless of whether + * the block is safe or not. This is only intended to be used by + * kernels that blacklist/whitelist certain locations, and any block checks + * should be performed by {@link #isSafeFloorMaterial(BlockState)} and + * {@link #isSafeBodyMaterial(BlockState)} instead, to obtain the full + * benefits of the {@link TeleportHelper}. + *
    + *
  • Returning {@link Tristate#UNDEFINED} denotes that the filter + * does not regard the location as valid or otherwise, and that the + * helper should determine if the location is suitable using the + * {@link #isSafeBodyMaterial(BlockState)} and + * {@link #isSafeFloorMaterial(BlockState)} methods. Implementations + * should generally return this result.
  • + *
  • Returning {@link Tristate#TRUE} marks the location as valid and + * will causes the parent {@link TeleportHelper} to return this + * location. No checks using {@link #isSafeBodyMaterial(BlockState)} + * and {@link #isSafeFloorMaterial(BlockState)} will be performed.
  • + *
  • Returning {@link Tristate#FALSE} marks the location as invalid + * and causes the parent {@link TeleportHelper} to move onto the next + * block to check, regardless of whether it would have otherwise been + * marked as safe.
  • + *
+ *

This method has a default implementation of always returning + * {@link Tristate#UNDEFINED}, that is, such a filter is not location + * specific.

+ *

This will be called before any other check on the target location is + * performed, this is the first check performed when investigating a + * location.

+ */ + // @ts-ignore + isValidLocation(world: org.spongepowered.api.world.World, position: any /*Vector3i*/): org.spongepowered.api.util.Tristate; + /** + * Tests whether a {@link BlockState} should be considered a safe block + * to land on. + */ + // @ts-ignore + isSafeFloorMaterial(blockState: org.spongepowered.api.block.BlockState): boolean; + /** + * Tests whether a {@link BlockState} should be considered a safe block + * for the body to be inside of. + *

Generally, you want this to be a passable block!

+ */ + // @ts-ignore + isSafeBodyMaterial(blockState: org.spongepowered.api.block.BlockState): boolean; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.teleport.TeleportHelperFilters.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.teleport.TeleportHelperFilters.d.ts new file mode 100644 index 00000000..501a5bbb --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.teleport.TeleportHelperFilters.d.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace teleport { + // @ts-ignore + class TeleportHelperFilters extends java.lang.Object { + // @ts-ignore + public static CONFIG: org.spongepowered.api.world.teleport.TeleportHelperFilter; + // @ts-ignore + public static DEFAULT: org.spongepowered.api.world.teleport.TeleportHelperFilter; + // @ts-ignore + public static FLYING: org.spongepowered.api.world.teleport.TeleportHelperFilter; + // @ts-ignore + public static NO_PORTAL: org.spongepowered.api.world.teleport.TeleportHelperFilter; + // @ts-ignore + public static SURFACE_ONLY: org.spongepowered.api.world.teleport.TeleportHelperFilter; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.weather.Weather.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.weather.Weather.d.ts new file mode 100644 index 00000000..48757b31 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.weather.Weather.d.ts @@ -0,0 +1,14 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace weather { + // @ts-ignore + interface Weather extends org.spongepowered.api.CatalogType { + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.weather.WeatherUniverse.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.weather.WeatherUniverse.d.ts new file mode 100644 index 00000000..2397b449 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.weather.WeatherUniverse.d.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace weather { + // @ts-ignore + interface WeatherUniverse { + /** + * Gets the current {@link Weather} in this volume. + */ + // @ts-ignore + getWeather(): org.spongepowered.api.world.weather.Weather; + /** + * Gets the remaining duration of the current {@link Weather}. + */ + // @ts-ignore + getRemainingDuration(): number; + /** + * Gets the duration the current {@link Weather} has been running for. + */ + // @ts-ignore + getRunningDuration(): number; + /** + * Sets the {@link Weather} of the volume with a random duration. + */ + // @ts-ignore + setWeather(weather: org.spongepowered.api.world.weather.Weather): void; + /** + * Sets the {@link Weather} of the volume with the specified duration. + */ + // @ts-ignore + setWeather(weather: org.spongepowered.api.world.weather.Weather, duration: number): void; + } + } + } + } + } +} diff --git a/packages/types/dist/typings/sponge/org.spongepowered.api.world.weather.Weathers.d.ts b/packages/types/dist/typings/sponge/org.spongepowered.api.world.weather.Weathers.d.ts new file mode 100644 index 00000000..1d478d70 --- /dev/null +++ b/packages/types/dist/typings/sponge/org.spongepowered.api.world.weather.Weathers.d.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +declare namespace org { + namespace spongepowered { + namespace api { + namespace world { + namespace weather { + // @ts-ignore + class Weathers extends java.lang.Object { + // @ts-ignore + public static CLEAR: org.spongepowered.api.world.weather.Weather; + // @ts-ignore + public static RAIN: org.spongepowered.api.world.weather.Weather; + // @ts-ignore + public static THUNDER_STORM: org.spongepowered.api.world.weather.Weather; + } + } + } + } + } +} diff --git a/packages/types/package.json b/packages/types/package.json new file mode 100644 index 00000000..393d166c --- /dev/null +++ b/packages/types/package.json @@ -0,0 +1,19 @@ +{ + "private": true, + "name": "@ms/types", + "version": "0.1.1", + "description": "MiaoScript types package", + "keywords": [ + "miaoscript", + "minecraft", + "bukkit", + "sponge" + ], + "author": "MiaoWoo ", + "homepage": "https://github.com/circlecloud/ms.git", + "license": "ISC", + "main": "dist/index.js", + "publishConfig": { + "registry": "https://repo.yumc.pw/repository/npm-hosted/" + } +} \ No newline at end of file